@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231003.0 → 0.0.0-nightly-20231005.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x9c80=['dataToMarker','high','processor','data','revisionHistory','restoreRevision','_makeTape','span','_markMarkers','adapter','restoreRevisionCallback','addRevision','_removeUnsupportedChanges','markersEnd','removeMarker:revision','target','getRevision','addRoot','insertions','_sortAndFilterDiffChanges','find','getClientRects','done','toModel','revision-viewer','getIndex','data-change-id','getCustomProperty','sort','_update','attributesAfter','_step','offsetSize','push','isReady','oldRevisionId','delete','hasClass','attachChange','suggestion','domEvent','elementEnd','downcastDispatcher','requires','showNextChange','end','getAttribute','parse','distance','includes','pairId','activeView','length','markerNameToElements','_getDiff','unbindElementFromMarkerName','index','wrap','_initInteractions','slice','createAttributeElement','maxOffset','revision-start','mousedown','isEqual','addHighlight','_markMismatchedRemovedTags','isAtEnd','return','removeMarker','markerRange','attributes','hasAttribute','all','ck-suggestion-marker--active','insertion','previousPosition','_cleanUp','getRevisionRootsAttributes','elementStart','markerName','splice','refresh','plugins','locale','POSITIVE_INFINITY','ck-revision-history-root--active','repository','deletions','from','then','keys','upcast','observeMarkers','config','vid','ck-suggestion-marker-split','isAfter','writer','toViewRange','isLimit','execute','enableReadOnlyMode','revision:','createRevision','consumable','map','suggestion:','createPositionFromPath','shift','change:isReady','filter','_makeModelFromTape','_findChangeIdFromDomTarget','code','document','abs','change','init','error','toViewElement','range','_appendChild','model','getAttributes','useFillerType','values','for','loadRevisionData','isRemoveSuggestion','isInline','_balloon','item','_getRevisionsRange','getDomRoot','_cleanMarkers','removeClass','indexOf','pop','unshift','revisionHistoryAttachChange','isBefore','isBlock','compare','mouseover','mapper','_makeModelFromViewString','userId','_markSuggestions','_changeView','detachRoot','_markInsertions','change:isEnabled','getRootNames','name','forEach','numberOfChanges','bind','isSuggestion','markersStart','isIncorrect','addMarker:revision-suggestion:deletion','_getViewObj','resolve','attributesBefore','test','viewItem','next','ck-editor__editable__overlay','editingDowncast','isAddSuggestion','conversion','editor','_threeWayMerge','backward','roots','enqueueChange','markers','addMarker:revision-suggestion:insertion','ck-suggestion-marker-merge','vid_end','add','ck-revision-history-root-remove','changes','createRange','createUIElement','_setDistance','_getChangeFromId','_removeRevisionMarkers','createPositionBefore','nodeAfter','element','remove','toViewPosition','_processTape','has','attribute:vid','insert','string','children','revisionHistoryLabel','_removeMissingPairs','side','isRemoved','diffData','updatePosition','WidgetToolbarRepository','merge','reconvertMarker','markerToHighlight','diff','consume','ck-suggestion-marker-','bindElementToMarker','view','activeChange','RevisionsRepository','deletion','isObject','revision-suggestion','isOnRoot','createRangeIn','isEnabled','removeMarker:revision-suggestion','set','findIndex','-new','isAttached','schema','removeAttribute','RevisionViewer','softBreak','data-revision-','highest','text','start','default','nextPosition','_activeViewTarget','uiElement','isAdded','destroy','getChild','get','ck-revision-history-root-add','level','markerToData','newRevisionId','showStack','_refreshStartEndIndex','bottom','_changeIdToChange','showPreviousChange','clear','vid_start','editing','first','rootName','type','currentChangeNumber','addClass','flat','startIndex','endIndex','_data','listenTo','ck-suggestion-preview-marker-','collaboration.channelId','concat','setAttribute','selection','forward','commands','_fixObsoleteTags','low','parent','changeId','element:pre','_getViewForChange','stop','ck-suggestion-marker','getRoot','_revisions','split','startsWith','isContent','dataDowncast','modelRange','revision','nextSibling'];(function(_0x132fd4,_0x9c80d4){const _0x3878d9=function(_0x50f4b5){while(--_0x50f4b5){_0x132fd4['push'](_0x132fd4['shift']());}};_0x3878d9(++_0x9c80d4);}(_0x9c80,0xb4));const _0x3878=function(_0x132fd4,_0x9c80d4){_0x132fd4=_0x132fd4-0x0;let _0x3878d9=_0x9c80[_0x132fd4];return _0x3878d9;};import{Plugin as _0x1fa2b3,Command as _0x3e15ab}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x483bb9}from'ckeditor5/src/utils';import{ContextualBalloon as _0x447fd1}from'ckeditor5/src/ui';import{DocumentFragment as _0x423ec4,Element as _0x1babb1,Text as _0x3d0803,ViewDocumentFragment as _0x26868d,ViewText as _0x34a9fe,ViewElement as _0x120c4a,ViewContainerElement as _0x3c693a,ViewAttributeElement as _0x63f4a9,ViewEmptyElement as _0x366ea0,ViewRawElement as _0x4c8340,ViewUIElement as _0x269adb}from'ckeditor5/src/engine';import{Users as _0x4af7d7,getMarkerDomElement as _0xbc3fb0}from'ckeditor5-collaboration/src/collaboration-core';import _0x1fb614 from'./ui/revisionviewer/changedetailsview';import _0x1890ae from'./revisionsrepository';import _0x2cd055 from'./changeitem';import{default as _0x3324a3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3d95ca}from'lodash-es';const tt={'c':_0x3c693a,'a':_0x63f4a9,'e':_0x366ea0,'r':_0x4c8340,'u':_0x269adb};export default class d extends _0x1fa2b3{static get['pluginName'](){return _0x3878('0x32');}static get[_0x3878('0x99')](){return[_0x4af7d7,_0x447fd1,_0x1890ae];}constructor(_0x9e5321){super(_0x9e5321),this[_0x3878('0xc5')]=this[_0x3878('0x11a')]['plugins'][_0x3878('0x3f')](_0x3878('0x24')),this['set'](_0x3878('0x23'),null),this['set'](_0x3878('0xa1'),null),this[_0x3878('0x3a')]=null,this[_0x3878('0x2c')]('diff',null),this['set'](_0x3878('0x90'),!0x1),this[_0x3878('0x2c')](_0x3878('0x2a'),!0x0),this['on'](_0x3878('0x106'),(_0x2d6404,_0x1ee9c5,_0x5e3138)=>{this['activeChange']=null,this[_0x3878('0xa1')]=null,this[_0x3878('0x11a')]['editing']['view']['change'](_0x44df6c=>{for(const _0x1d0b02 of this[_0x3878('0x11a')][_0x3878('0x4b')][_0x3878('0x22')][_0x3878('0xe1')][_0x3878('0x11d')])_0x5e3138?_0x44df6c[_0x3878('0xf6')](_0x3878('0x116'),_0x1d0b02):_0x44df6c[_0x3878('0x50')](_0x3878('0x116'),_0x1d0b02);});}),this[_0x3878('0x10b')]('isNavigationMode')['to'](this,_0x3878('0x23'),_0x24fbc8=>null!==_0x24fbc8),this[_0x3878('0x10b')](_0x3878('0x4f'))['to'](this,_0x3878('0x90'),this,_0x3878('0x1e'),this,'activeChange',(_0xed065e,_0x3af010,_0x5b7651)=>_0xed065e&&_0x5b7651?_0x3af010[_0x3878('0x3')][_0x3878('0x87')](_0x5b7651):0x0),this[_0x3878('0x10b')](_0x3878('0x10a'))['to'](this,_0x3878('0x90'),this,_0x3878('0x1e'),(_0x873003,_0x13abfe)=>_0x873003?_0x13abfe[_0x3878('0x3')][_0x3878('0xa2')]:0x0),this['_changeView']=null,this[_0x3878('0x47')]=new Map(),this[_0x3878('0x77')]=null,this[_0x3878('0xf1')]=this[_0x3878('0x11a')][_0x3878('0xc1')]['get'](_0x447fd1);}[_0x3878('0xe4')](){const _0x3a3104=this['editor'],_0x11cc5c=new ShowChangeCommand(_0x3a3104,{'direction':_0x3878('0x11c')}),_0x14f4b8=new ShowChangeCommand(_0x3a3104,{'direction':_0x3878('0x5b')});(_0x3a3104[_0x3878('0x5c')][_0x3878('0x1')](_0x3878('0x48'),_0x11cc5c),_0x3a3104[_0x3878('0x5c')][_0x3878('0x1')](_0x3878('0x9a'),_0x14f4b8),_0x3a3104['commands'][_0x3878('0x1')](_0x3878('0x73'),new RestoreRevisionCommand(_0x3a3104)),this['on']('change:numberOfChanges',()=>{_0x11cc5c[_0x3878('0xc0')](),_0x14f4b8[_0x3878('0xc0')]();}),this['_setConversion'](),this[_0x3878('0xa8')](),_0x3a3104[_0x3878('0xd4')](_0x3878('0x86')),_0x3a3104[_0x3878('0xc1')][_0x3878('0xf')]('WidgetToolbarRepository'))&&_0x3a3104[_0x3878('0xc1')][_0x3878('0x3f')](_0x3878('0x1a'))['forceDisabled'](_0x3878('0x86'));}async['getRevisionData'](_0x1e92a3){await this[_0x3878('0xee')](_0x1e92a3);const _0x47f429={};for(const _0x2ee180 in _0x1e92a3[_0x3878('0x18')]){if(_0x1e92a3[_0x3878('0x18')][_0x2ee180][_0x3878('0x94')]&&!_0x1e92a3['diffData'][_0x2ee180][_0x3878('0x94')]['isAttached'])continue;const _0x2f361b=this[_0x3878('0x8')](JSON['parse'](_0x1e92a3[_0x3878('0x18')][_0x2ee180][_0x3878('0x80')])),_0x12525d=this[_0x3878('0x11a')][_0x3878('0x4b')][_0x3878('0x22')]['document'],_0x347d3a=new _0x26868d(_0x12525d,_0x2f361b[_0x3878('0xd8')](_0x98f106=>this['_getViewObj'](_0x98f106)));this[_0x3878('0x11a')][_0x3878('0x71')][_0x3878('0x70')][_0x3878('0xeb')]('marked'),_0x47f429[_0x2ee180]=this[_0x3878('0x11a')][_0x3878('0x71')]['processor']['toData'](_0x347d3a),this[_0x3878('0x11a')][_0x3878('0x71')][_0x3878('0x70')][_0x3878('0xeb')](_0x3878('0x38'));}return _0x47f429;}async[_0x3878('0xbc')](_0x40a939){await this[_0x3878('0xee')](_0x40a939);const _0x234d7e={};for(const _0x3f0cd2 in _0x40a939[_0x3878('0x18')])_0x40a939[_0x3878('0x18')][_0x3f0cd2][_0x3878('0x94')]&&!_0x40a939[_0x3878('0x18')][_0x3f0cd2][_0x3878('0x94')]['isAttached']||(_0x234d7e[_0x3f0cd2]=_0x40a939[_0x3878('0x18')][_0x3f0cd2][_0x3878('0x8c')]||{});return _0x234d7e;}[_0x3878('0x8')](_0x5bbd16){return(_0x5bbd16=_0x5bbd16['filter'](_0x569f03=>!_0x569f03[_0x3878('0x108')]||_0x3878('0xac')!==_0x569f03['name']&&'revision-end'!==_0x569f03['name']))[_0x3878('0x109')](_0x24d99d=>{_0x3878('0x12')!=typeof _0x24d99d&&(_0x24d99d['children']=this[_0x3878('0x8')](_0x24d99d['children']),_0x24d99d[_0x3878('0xb5')]=_0x24d99d[_0x3878('0xb5')][_0x3878('0xdd')](_0x3ef192=>!_0x3ef192[0x0]['startsWith'](_0x3878('0x34'))));}),_0x5bbd16;}async[_0x3878('0xfd')](_0x4bbd1e,_0x37890e,_0x6cf3f1=!0x1){if(!this['isEnabled'])return;const _0x35086d=this['diff'],_0x5c6677=this[_0x3878('0xc5')],_0x56a8f7=_0x3878('0x12')==typeof _0x4bbd1e?_0x5c6677['getRevision'](_0x4bbd1e):_0x4bbd1e,_0x5265f9=_0x3878('0x12')==typeof _0x37890e?_0x5c6677[_0x3878('0x7e')](_0x37890e):_0x37890e,_0x458767=_0x56a8f7['id'],_0x2210bb=_0x5265f9?_0x5265f9['id']:null;if(!_0x6cf3f1&&this[_0x3878('0x1e')]&&this[_0x3878('0x1e')][_0x3878('0x43')]===_0x458767&&this['diff'][_0x3878('0x91')]===_0x2210bb)return Promise[_0x3878('0x111')]();this['isReady']=!0x1,this[_0x3878('0xa1')]=null,this[_0x3878('0x23')]=null,this[_0x3878('0x1e')]=new _0x3324a3(_0x458767,_0x2210bb);const _0x5dc8ca=this[_0x3878('0xf3')](_0x56a8f7,_0x5265f9,!0x0)['map'](_0x5ac786=>this['loadRevisionData'](_0x5ac786));return _0x5dc8ca['push'](new Promise(_0x55f21b=>{setTimeout(_0x55f21b,0x14);})),Promise[_0x3878('0xb7')](_0x5dc8ca)[_0x3878('0xc8')](()=>{if(!this[_0x3878('0x2a')])return;this[_0x3878('0xbb')]();const _0x597b04=this['_getDiff'](_0x458767,_0x2210bb);for(const _0x151664 of _0x597b04[_0x3878('0x3')])this['_changeIdToChange'][_0x3878('0x2c')](_0x151664['id'],_0x151664);this[_0x3878('0x11a')][_0x3878('0xe9')][_0x3878('0x11e')]({'isUndoable':!0x1},_0x2d0522=>{for(const _0x573563 of this[_0x3878('0x11a')]['model'][_0x3878('0xe1')]['getRootNames']())_0x2d0522['detachRoot'](_0x573563);for(const _0x20ad86 of Object['keys'](_0x597b04[_0x3878('0xe9')])){const _0x1c98c6=_0x2d0522[_0x3878('0x7f')](_0x20ad86);for(const _0x22b65d of Object['keys'](_0x597b04[_0x3878('0xb5')][_0x20ad86]))_0x2d0522[_0x3878('0x59')](_0x22b65d,_0x597b04[_0x3878('0xb5')][_0x20ad86][_0x22b65d],_0x1c98c6);_0x2d0522[_0x3878('0x11')](_0x597b04[_0x3878('0xe9')][_0x20ad86],_0x1c98c6,0x0);}}),this[_0x3878('0x1e')]['_setChanges'](this['_sortAndFilterDiffChanges'](_0x597b04[_0x3878('0x3')])),this['isReady']=!0x0;})['catch'](_0xf8d5b5=>{console[_0x3878('0xe5')](_0xf8d5b5),this['_cleanUp'](),_0x35086d&&(this[_0x3878('0x1e')]=_0x35086d),this[_0x3878('0x90')]=!0x0;});}['addRevisionData'](_0x1da938,_0x43d316){const _0x5a8b1d=this[_0x3878('0xc5')][_0x3878('0xd6')](_0x1da938);return _0x5a8b1d['on'](_0x3878('0x8b'),(_0x4e3c5c,_0x50ca6c,_0x5524cc)=>_0x43d316(_0x50ca6c,_0x5524cc,_0x5a8b1d)),this['repository'][_0x3878('0x79')](_0x5a8b1d),_0x5a8b1d;}[_0x3878('0xee')](_0x5f20ed){if(!_0x5f20ed||_0x5f20ed[_0x3878('0x18')])return Promise[_0x3878('0x111')]();{const _0x58675b=this['editor'][_0x3878('0xcc')]['get'](_0x3878('0x57'));return this[_0x3878('0x77')][_0x3878('0x7e')]({'channelId':_0x58675b,'revisionId':_0x5f20ed['id']})[_0x3878('0xc8')](_0x2f894a=>{_0x5f20ed[_0x3878('0x8b')]({'diffData':_0x2f894a[_0x3878('0x18')]},!0x0);});}}['_cleanUp'](){this[_0x3878('0x23')]=null,this['_cleanMarkers'](),this[_0x3878('0x103')]&&this[_0x3878('0x103')][_0x3878('0x3d')](),this[_0x3878('0x103')]=null,this[_0x3878('0x47')][_0x3878('0x49')](),this[_0x3878('0x11a')][_0x3878('0xe9')][_0x3878('0x11e')]({'isUndoable':!0x1},_0x53a4c2=>{for(const _0x8d3ff3 of this[_0x3878('0x11a')]['model'][_0x3878('0xe1')][_0x3878('0x107')]())_0x53a4c2[_0x3878('0x104')](_0x8d3ff3);});}[_0x3878('0x81')](_0x433149){const _0x8df21c=[],_0x64d51a=new Map();for(const _0x326cf7 of this['editor'][_0x3878('0xe9')]['document']['getRootNames']()){const _0x24383f=this[_0x3878('0x11a')]['editing']['view']['getDomRoot'](_0x326cf7);if(!_0x24383f)continue;const _0x3ab644=_0x24383f[_0x3878('0x83')]()['item'](0x0);_0x3ab644&&(_0x8df21c[_0x3878('0x8f')](_0x326cf7),_0x64d51a['set'](_0x326cf7,_0x3ab644));}return _0x8df21c['sort']((_0x5d7411,_0x5896e9)=>{const _0x13dc06=_0x64d51a[_0x3878('0x3f')](_0x5d7411),_0x5dfc1a=_0x64d51a[_0x3878('0x3f')](_0x5896e9);return _0x13dc06['y']-_0x5dfc1a['y']||_0x13dc06['x']-_0x5dfc1a['x'];}),(_0x433149=_0x433149[_0x3878('0xdd')](_0xb9aff=>_0x8df21c[_0x3878('0x9f')](_0xb9aff['rootName'])))[_0x3878('0x8a')]((_0x2655de,_0x525206)=>_0x8df21c[_0x3878('0xf7')](_0x2655de['rootName'])-_0x8df21c[_0x3878('0xf7')](_0x525206[_0x3878('0x4d')])),_0x433149;}['_makeTape'](_0x343fda){const _0x391d6d=Array['from'](_0x343fda[_0x3878('0x11f')])[_0x3878('0xdd')](([_0x409a30,_0x19095e])=>_0x409a30[_0x3878('0x68')]('revision:')&&!_0x19095e['isCollapsed']),_0x146fad=Array['from'](this[_0x3878('0x11a')]['model'][_0x3878('0x29')](_0x343fda)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x391d6d[_0x3878('0xa2')])for(const _0x3c2b8a of _0x146fad){const [_0x25a8fe,_0x14bab2]=_0x391d6d[0x0],[,_0x517c8c,_0xf40925]=_0x25a8fe[_0x3878('0x67')](':');if(_0x14bab2[_0x3878('0x9b')]['isEqual'](_0x3c2b8a[_0x3878('0x39')])&&_0x391d6d[_0x3878('0xdb')](),(_0x3c2b8a[_0x3878('0xba')][_0x3878('0xae')](_0x14bab2[_0x3878('0x37')])||_0x3c2b8a[_0x3878('0xba')][_0x3878('0xcf')](_0x14bab2[_0x3878('0x37')]))&&(_0x3878('0xb9')==_0x517c8c?_0x3c2b8a['isAdded']={'userId':_0xf40925}:_0x3878('0x25')==_0x517c8c&&(_0x3c2b8a[_0x3878('0x17')]={'userId':_0xf40925})),0x0==_0x391d6d[_0x3878('0xa2')])break;}return _0x146fad;}[_0x3878('0x45')](_0x517c22){const _0x3e3071=new Map();for(let _0x24c454=0x0;_0x24c454<_0x517c22[_0x3878('0xa2')];_0x24c454++)_0x3878('0x36')===_0x517c22[_0x24c454][_0x3878('0x4e')]?(_0x517c22[_0x24c454][_0x3878('0xf2')][_0x3878('0x52')]=_0x24c454,_0x517c22[_0x24c454][_0x3878('0xf2')][_0x3878('0x53')]=_0x24c454):(_0x3878('0xbd')===_0x517c22[_0x24c454][_0x3878('0x4e')]?_0x517c22[_0x24c454][_0x3878('0xf2')]['startIndex']=_0x24c454:_0x3878('0x97')===_0x517c22[_0x24c454][_0x3878('0x4e')]&&(_0x517c22[_0x24c454][_0x3878('0xf2')][_0x3878('0x53')]=_0x24c454),_0x3e3071[_0x3878('0x2c')](_0x517c22[_0x24c454]['id'],_0x24c454));for(const _0x56150b of _0x3e3071[_0x3878('0xec')]())_0x3878('0xbd')===_0x517c22[_0x56150b][_0x3878('0x4e')]?_0x517c22[_0x56150b]['item'][_0x3878('0x53')]=_0x3e3071['get'](_0x517c22[_0x56150b]['pairId']):_0x3878('0x97')===_0x517c22[_0x56150b]['type']&&(_0x517c22[_0x56150b]['item'][_0x3878('0x52')]=_0x3e3071[_0x3878('0x3f')](_0x517c22[_0x56150b][_0x3878('0xa0')]));}['_processTape'](_0x5727b4){for(let _0x214043=0x0;_0x214043<_0x5727b4[_0x3878('0xa2')];_0x214043++){if(_0x3878('0xbd')===_0x5727b4[_0x214043]['type'])_0x5727b4[_0x214043][_0x3878('0xf2')]['startIndex']=_0x214043;else{if(_0x3878('0x97')===_0x5727b4[_0x214043][_0x3878('0x4e')]){_0x5727b4[_0x214043][_0x3878('0xf2')]['endIndex']=_0x214043;const _0x164d30=_0x5727b4[_0x214043][_0x3878('0xf2')][_0x3878('0x52')];_0x5727b4[_0x164d30]['pairId']=_0x5727b4[_0x214043]['id'],_0x5727b4[_0x214043][_0x3878('0xa0')]=_0x5727b4[_0x164d30]['id'];}else _0x5727b4[_0x214043][_0x3878('0xf2')][_0x3878('0x52')]=_0x214043,_0x5727b4[_0x214043]['item'][_0x3878('0x53')]=_0x214043,_0x5727b4[_0x214043][_0x3878('0xa0')]=null;}_0x5727b4[_0x214043][_0x3878('0x10d')]||(_0x5727b4[_0x214043]['markersStart']=[],_0x5727b4[_0x214043][_0x3878('0x7b')]=[]);}}['_markInsertions'](_0x359a4c,_0x22bb17){const _0x6e89d8=_0x359a4c[_0x3878('0xdd')](_0x187073=>!_0x187073['isAdded']);for(let _0x4ab073=0x0;_0x4ab073<_0x22bb17[_0x3878('0xa2')];_0x4ab073++)_0x22bb17[_0x4ab073][_0x3878('0x3c')]&&(_0x6e89d8[_0x4ab073][_0x3878('0x3c')]=_0x22bb17[_0x4ab073]['isAdded']);}['_makeModelFromViewString'](_0x25bc82){const _0x56196e=JSON[_0x3878('0x9d')](_0x25bc82),_0x5b3107=this[_0x3878('0x11a')]['editing']['view'][_0x3878('0xe1')],_0x1e466a=new _0x26868d(_0x5b3107,_0x56196e[_0x3878('0xd8')](_0x56bbe5=>this[_0x3878('0x110')](_0x56bbe5)));return this['editor'][_0x3878('0x71')][_0x3878('0x85')](_0x1e466a);}[_0x3878('0x110')](_0x4331db){const _0x5b8d96=this['editor']['editing'][_0x3878('0x22')][_0x3878('0xe1')];if(_0x3878('0x12')==typeof _0x4331db)return new _0x34a9fe(_0x5b8d96,_0x4331db);{const _0x4ba9cb=_0x4331db[_0x3878('0x13')][_0x3878('0xd8')](_0x4e7d43=>this[_0x3878('0x110')](_0x4e7d43));return new(tt[_0x4331db[(_0x3878('0x4e'))]]||_0x120c4a)(_0x5b8d96,_0x4331db[_0x3878('0x108')],_0x4331db[_0x3878('0xb5')],_0x4ba9cb);}}[_0x3878('0xa4')](_0x28accf,_0x5f5a22=null){const _0x59a369=this[_0x3878('0xc5')]['getRevision'](_0x28accf),_0x12e23d=_0x5f5a22?this[_0x3878('0xc5')][_0x3878('0x7e')](_0x5f5a22):null,_0x3f4c46=this[_0x3878('0xf3')](_0x59a369,_0x12e23d),_0x572399=_0x3f4c46[_0x3f4c46[_0x3878('0xa2')]-0x1],_0x5ee812=new Map(),_0x4dbf8c={'model':{},'attributes':{},'changes':[]},_0x5bc62c=new Set(),_0x3dd1a2=new Map();for(let _0x150a11=_0x3f4c46[_0x3878('0xa2')]-0x1;_0x150a11>=0x0;_0x150a11--){const _0x3d8a6c=_0x3f4c46[_0x150a11];for(const _0x338fa8 of Object[_0x3878('0xc9')](_0x3d8a6c[_0x3878('0x18')]))if(_0x3d8a6c[_0x3878('0x18')][_0x338fa8][_0x3878('0x94')]){const _0x597b4d=_0x3d8a6c[_0x3878('0x18')][_0x338fa8][_0x3878('0x94')];_0x597b4d['isAttached']?(_0x5bc62c[_0x3878('0x1')](_0x338fa8),_0x3dd1a2[_0x3878('0xf')](_0x338fa8)&&_0x3dd1a2[_0x3878('0x3f')](_0x338fa8)['userId']==_0x597b4d[_0x3878('0x101')]?_0x3dd1a2[_0x3878('0x92')](_0x338fa8):_0x3dd1a2['set'](_0x338fa8,_0x597b4d)):_0x3dd1a2[_0x3878('0xf')](_0x338fa8)?(_0x5bc62c[_0x3878('0x92')](_0x338fa8),_0x3dd1a2[_0x3878('0x92')](_0x338fa8)):(_0x5bc62c[_0x3878('0x1')](_0x338fa8),_0x3dd1a2[_0x3878('0x2c')](_0x338fa8,_0x597b4d));}else _0x5bc62c[_0x3878('0x1')](_0x338fa8);}for(const _0x16f712 of _0x5bc62c){const _0x4c065e=_0x3dd1a2['has'](_0x16f712)&&!_0x3dd1a2[_0x3878('0x3f')](_0x16f712)[_0x3878('0x2f')];let _0x56640=_0x4c065e?_0x3f4c46[_0x3878('0xa2')]-0x1:0x0;const _0x3951de=_0x4c065e?-0x1:0x1;for(;_0x3f4c46[_0x56640];){const _0x18070a=_0x3f4c46[_0x56640];if(_0x18070a[_0x3878('0x18')][_0x16f712]){const _0x454c45=_0x4c065e?_0x18070a[_0x3878('0x18')][_0x16f712][_0x3878('0x112')]:_0x18070a[_0x3878('0x18')][_0x16f712]['attributesAfter'];_0x4dbf8c['attributes'][_0x16f712]=_0x454c45?_0x3d95ca(_0x454c45):{};break;}_0x56640+=_0x3951de;}}for(const _0x1d42c9 of _0x3f4c46){_0x1d42c9['model']={};for(const _0x4bdb95 of _0x1d42c9['authors'])_0x5ee812['set'](_0x4bdb95['id'],_0x4bdb95);for(const _0x58b92c of _0x5bc62c){const _0x5a00f9=_0x1d42c9[_0x3878('0x18')][_0x58b92c]?_0x1d42c9[_0x3878('0x18')][_0x58b92c][_0x3878('0x80')]:'[]',_0x10f72a=_0x1d42c9[_0x3878('0x18')][_0x58b92c]?_0x1d42c9[_0x3878('0x18')][_0x58b92c][_0x3878('0xc6')]:'[]';_0x1d42c9[_0x3878('0xe9')][_0x58b92c]={'insertions':this[_0x3878('0x100')](_0x5a00f9),'deletions':this[_0x3878('0x100')](_0x10f72a)};}}for(const _0x19a884 of _0x5bc62c){let _0x4022b8=null,_0x59c478=0x0;const _0x21ba0e=new Map(Array[_0x3878('0xc7')](_0x59a369[_0x3878('0xe9')][_0x19a884][_0x3878('0x80')][_0x3878('0x11f')])[_0x3878('0xdd')](([_0x5e1022])=>!_0x5e1022[_0x3878('0x68')](_0x3878('0xd5'))));let _0x1869d8=0x0;for(const _0x3248d5 of _0x3f4c46){const _0x41f08c=this[_0x3878('0x74')](_0x3248d5[_0x3878('0xe9')][_0x19a884][_0x3878('0x80')]);_0x3248d5==_0x59a369?(_0x4022b8=_0x41f08c,_0x59c478=_0x4022b8['length'],_0x4022b8[_0x3878('0x109')](_0x4700a1=>{_0x4700a1['id']=_0x1869d8++;}),this[_0x3878('0xe')](_0x4022b8)):this[_0x3878('0x105')](_0x4022b8,_0x41f08c);const _0x2d9e67=_0x4022b8['filter'](_0x454bfc=>!_0x454bfc[_0x3878('0x3c')])[_0x3878('0xd8')](_0x29eed9=>_0x29eed9['id']);let _0x4bc8c6=0x0;const _0x4857a6=this[_0x3878('0x74')](_0x3248d5[_0x3878('0xe9')][_0x19a884][_0x3878('0xc6')]);_0x4857a6[_0x3878('0x109')](_0x44b60c=>{_0x44b60c[_0x3878('0x17')]?_0x44b60c['id']=_0x59c478++:_0x44b60c['id']=_0x2d9e67[_0x4bc8c6++];}),this[_0x3878('0xe')](_0x4857a6),this[_0x3878('0x6')](_0x4022b8,_0x3878('0x3c')),this[_0x3878('0x6')](_0x4857a6,_0x3878('0x17')),_0x3248d5==_0x59a369&&this[_0x3878('0x76')](_0x4022b8,_0x21ba0e),_0x4022b8=this['_joinTapes'](_0x4022b8,_0x4857a6),this['_refreshStartEndIndex'](_0x4022b8),this[_0x3878('0x6')](_0x4022b8,_0x3878('0x17'));}_0x4022b8=_0x4022b8[_0x3878('0xdd')](_0x4b9d2e=>!(_0x4b9d2e[_0x3878('0x3c')]&&_0x4b9d2e[_0x3878('0x17')]));const _0x2422a9=new Map(_0x572399[_0x3878('0xe9')][_0x19a884][_0x3878('0xc6')][_0x3878('0x11f')]),_0x52c9a7=new Set(_0x21ba0e[_0x3878('0xc9')]());for(const _0x32e77a of _0x2422a9['keys']())_0x52c9a7[_0x3878('0x92')](_0x32e77a);this[_0x3878('0x102')](_0x4022b8,_0x52c9a7),this[_0x3878('0x5d')](_0x4022b8),_0x4022b8=this[_0x3878('0x15')](_0x4022b8),_0x4022b8=this[_0x3878('0xb0')](_0x4022b8),_0x4022b8=this['_removeUnsupportedChanges'](_0x4022b8);const {root:_0x2111dc,changes:_0x12dc46}=this['_makeModelFromTape'](_0x4022b8,_0x5ee812,_0x19a884);_0x4dbf8c[_0x3878('0xe9')][_0x19a884]=_0x2111dc;const _0x36a2a2=_0x3dd1a2[_0x3878('0x3f')](_0x19a884);if(_0x36a2a2){const _0x2f7044=_0x5ee812[_0x3878('0x3f')](_0x36a2a2[_0x3878('0x101')]),_0x13ee9f=new _0x2cd055({'author':_0x2f7044,'type':_0x36a2a2[_0x3878('0x2f')]?_0x3878('0x1'):_0x3878('0xc'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x19a884});_0x12dc46['unshift'](_0x13ee9f),_0x4dbf8c[_0x3878('0xb5')][_0x19a884]['revisionHistoryAttachChange']=_0x13ee9f['id'];}_0x4dbf8c[_0x3878('0x3')]=_0x4dbf8c[_0x3878('0x3')][_0x3878('0x58')](_0x12dc46);}return _0x4dbf8c;}[_0x3878('0x76')](_0x134f5c,_0x7229da){for(let _0x57cf61=0x0;_0x57cf61<_0x134f5c['length'];_0x57cf61++)for(const [_0x1f4e9d,_0x3c1271]of _0x7229da)_0x3c1271['start'][_0x3878('0xae')](_0x134f5c[_0x57cf61][_0x3878('0xba')])&&_0x134f5c[_0x57cf61][_0x3878('0x10d')][_0x3878('0x8f')](_0x1f4e9d),_0x3c1271[_0x3878('0x9b')][_0x3878('0xae')](_0x134f5c[_0x57cf61][_0x3878('0x39')])&&_0x134f5c[_0x57cf61][_0x3878('0x7b')]['push'](_0x1f4e9d);}['_joinTapes'](_0x38c4c2,_0x3f02b8){let _0x414165=[],_0x38890a=0x0,_0x38520a=0x0;for(;_0x38890a<_0x38c4c2[_0x3878('0xa2')]||_0x38520a<_0x3f02b8[_0x3878('0xa2')];){const _0x3f2731=_0x38c4c2[_0x38890a]||{},_0x3dcc6c=_0x3f02b8[_0x38520a]||{};if(_0x3f2731['id']==_0x3dcc6c['id'])_0x38890a++,_0x38520a++,_0x414165['push'](_0x3f2731);else{if(_0x3dcc6c['isRemoved']&&_0x3f2731[_0x3878('0x3c')]){const {commonTape:_0x135145,iEnd:_0x323705,jEnd:_0x50eab6}=this[_0x3878('0x11b')](_0x38c4c2,_0x38890a,_0x3f02b8,_0x38520a);_0x414165=_0x414165[_0x3878('0x58')](_0x135145),_0x38890a=_0x323705,_0x38520a=_0x50eab6;}else _0x3dcc6c['isRemoved']?(_0x38520a++,_0x414165[_0x3878('0x8f')](_0x3dcc6c)):(_0x38890a++,_0x414165[_0x3878('0x8f')](_0x3f2731));}}return _0x414165;}['_markSuggestions'](_0x236c94,_0x2d813e){const _0x3d307b=[];for(let _0x3f28cd=0x0;_0x3f28cd<_0x236c94['length'];_0x3f28cd++){for(let _0x361b4c=0x0;_0x361b4c<_0x236c94[_0x3f28cd]['markersStart'][_0x3878('0xa2')];_0x361b4c++){const _0x58de03=_0x236c94[_0x3f28cd][_0x3878('0x10d')][_0x361b4c];if(!_0x2d813e[_0x3878('0xf')](_0x58de03))continue;const {group:_0x41af76,type:_0x26c6ee,authorId:_0x1f8314}=_0x2a1722(_0x58de03);_0x3878('0x27')!=_0x41af76||_0x3878('0xb9')!=_0x26c6ee&&'deletion'!=_0x26c6ee||(_0x3d307b[_0x3878('0xf9')]({'type':_0x26c6ee,'name':_0x58de03,'userId':_0x1f8314}),_0x236c94[_0x3f28cd][_0x3878('0x10d')]['splice'](_0x361b4c,0x1),_0x361b4c--);}_0x3c4eb1(_0x236c94[_0x3f28cd]);for(let _0x297738=0x0;_0x297738<_0x236c94[_0x3f28cd][_0x3878('0x7b')][_0x3878('0xa2')];_0x297738++){const _0x2ce228=_0x236c94[_0x3f28cd][_0x3878('0x7b')][_0x297738];if(!_0x2d813e[_0x3878('0xf')](_0x2ce228))continue;const {group:_0x1299de,type:_0x29b0b7}=_0x2a1722(_0x2ce228);if(_0x3878('0x27')!=_0x1299de||_0x3878('0xb9')!=_0x29b0b7&&'deletion'!=_0x29b0b7)continue;_0x236c94[_0x3f28cd][_0x3878('0x7b')][_0x3878('0xbf')](_0x297738,0x1),_0x297738--;const _0xb7f38=_0x3d307b[_0x3878('0x2d')](_0x5a6f2a=>_0x5a6f2a['name']==_0x2ce228);_0xb7f38>-0x1&&_0x3d307b[_0x3878('0xbf')](_0xb7f38,0x1);}}function _0x2a1722(_0x20bd5a){const _0xb5da4b=_0x20bd5a[_0x3878('0x67')](':');return{'group':_0xb5da4b[0x0],'type':_0xb5da4b[0x1],'subType':_0xb5da4b[_0x3878('0xa2')]>=0x5?_0xb5da4b[0x2]:null,'id':_0xb5da4b[_0x3878('0xa2')]<0x5?_0xb5da4b[0x2]:_0xb5da4b[0x3],'authorId':_0xb5da4b[_0x3878('0xa2')]<0x5?_0xb5da4b[0x3]:_0xb5da4b[0x4],'markerCount':0x6==_0xb5da4b[_0x3878('0xa2')]?_0xb5da4b[0x5]:null};}function _0x3c4eb1(_0x1ddf2b){for(let _0x4e096b=0x0;_0x4e096b<_0x3d307b[_0x3878('0xa2')];_0x4e096b++){if(_0x1ddf2b[_0x3878('0x3c')]&&'insertion'==_0x3d307b[_0x4e096b]['type'])return _0x1ddf2b[_0x3878('0x118')]=_0x3d307b[_0x4e096b],void delete _0x1ddf2b[_0x3878('0x3c')];if(!_0x1ddf2b[_0x3878('0x3c')]&&!_0x1ddf2b[_0x3878('0x17')]&&_0x3878('0x25')==_0x3d307b[_0x4e096b]['type'])return void(_0x1ddf2b[_0x3878('0xef')]=_0x3d307b[_0x4e096b]);}}}[_0x3878('0x6')](_0x720699,_0x21e383){let _0x409f46=0x0,_0x246655=!0x1;const _0x56c573=new Map();for(const _0x78230d of _0x720699)_0x78230d[_0x21e383]?_0x246655&&(_0x409f46++,_0x246655=!0x1):(_0x409f46++,_0x246655=!0x0),_0x56c573[_0x3878('0x2c')](_0x78230d['id'],_0x409f46);for(let _0xed1af2=0x0;_0xed1af2<_0x720699['length'];_0xed1af2++){if(_0x3878('0x17')==_0x21e383&&_0x720699[_0xed1af2][_0x3878('0x3c')]||'isAdded'==_0x21e383&&_0x720699[_0xed1af2][_0x3878('0x17')])continue;if(_0x3878('0x36')==_0x720699[_0xed1af2][_0x3878('0x4e')]){_0x720699[_0xed1af2][_0x3878('0x9e')]=0x0;continue;}const _0x123739=_0x56c573[_0x3878('0x3f')](_0x720699[_0xed1af2][_0x3878('0xa0')]),_0x40ed3c=_0x56c573[_0x3878('0x3f')](_0x720699[_0xed1af2]['id']);_0x720699[_0xed1af2][_0x3878('0x9e')]=_0x123739-_0x40ed3c;}}[_0x3878('0xf3')](_0x5b4aff,_0x1d9ea9,_0x3c8326=!0x1){const _0x405568=[];let _0x15b0e0=this[_0x3878('0xc5')][_0x3878('0x87')](_0x5b4aff),_0xe67f26=this[_0x3878('0xc5')][_0x3878('0x87')](_0x1d9ea9);for(-0x1==_0xe67f26&&(_0xe67f26=this[_0x3878('0xc5')][_0x3878('0x66')][_0x3878('0xa2')],_0x3c8326=!0x1);_0x15b0e0<_0xe67f26;)_0x405568['push'](this[_0x3878('0xc5')]['getRevision'](_0x15b0e0)),_0x15b0e0++;return _0x3c8326&&_0x405568[_0x3878('0x8f')](this['repository'][_0x3878('0x7e')](_0x15b0e0)),_0x405568;}[_0x3878('0x11b')](_0xa92686,_0x10b732,_0x5d03ad,_0x284a13){const _0x568cd5=this[_0x3878('0x11a')][_0x3878('0xe9')][_0x3878('0x30')];let _0x4ea46e=_0x10b732;for(;_0xa92686[_0x4ea46e]&&_0xa92686[_0x4ea46e][_0x3878('0x3c')];)_0x4ea46e++;let _0x4daaca=_0x284a13;for(;_0x5d03ad[_0x4daaca]&&_0x5d03ad[_0x4daaca]['isRemoved'];)_0x4daaca++;_0x1d4f64(_0xa92686,_0x10b732,_0x4ea46e),_0x1d4f64(_0x5d03ad,_0x284a13,_0x4daaca);const _0x5c04dc=_0x5d03ad[_0x3878('0xa9')](_0x284a13,_0x4daaca)[_0x3878('0x58')](_0xa92686[_0x3878('0xa9')](_0x10b732,_0x4ea46e));return _0x5c04dc[_0x3878('0x8a')]((_0x5cb572,_0x4c0fc6)=>_0x5cb572[_0x3878('0x16')]!=_0x4c0fc6['side']?_0x5cb572[_0x3878('0x16')]-_0x4c0fc6['side']:_0x5cb572[_0x3878('0x41')]!=_0x4c0fc6[_0x3878('0x41')]?_0x5cb572['level']-_0x4c0fc6[_0x3878('0x41')]:_0x5cb572['distance']!=_0x4c0fc6[_0x3878('0x9e')]?_0x4c0fc6['distance']-_0x5cb572['distance']:!!_0x5cb572[_0x3878('0x3c')]!=!!_0x4c0fc6['isAdded']?-0x1==_0x5cb572[_0x3878('0x16')]||0x0==_0x5cb572[_0x3878('0x16')]?_0x5cb572[_0x3878('0x3c')]?-0x1:0x1:_0x5cb572['isAdded']?0x1:-0x1:_0x5cb572[_0x3878('0xa6')]-_0x4c0fc6['index']),{'commonTape':_0x5c04dc,'iEnd':_0x4ea46e,'jEnd':_0x4daaca};function _0x1d4f64(_0x3f2019,_0x2897da,_0x405b24){let _0x2c726a=-0x1,_0x1205ed=Number[_0x3878('0xc3')],_0x24f1c8=!0x0;for(let _0x2965c2=_0x2897da;_0x2965c2<_0x405b24;_0x2965c2++)if(_0x568cd5[_0x3878('0xf0')](_0x3f2019[_0x2965c2][_0x3878('0xf2')])||(_0x24f1c8=!0x1),_0x3f2019[_0x2965c2][_0x3878('0xf2')][_0x3878('0x52')]<_0x2897da&&(_0x2c726a=_0x2965c2),_0x3f2019[_0x2965c2]['item']['endIndex']>=_0x405b24){_0x1205ed=_0x2965c2;break;}_0x24f1c8&&(_0x2c726a=_0x405b24-0x1);for(let _0x54ca64=_0x2897da;_0x54ca64<_0x405b24;_0x54ca64++)_0x3f2019[_0x54ca64][_0x3878('0x16')]=_0x54ca64<=_0x2c726a?-0x1:_0x54ca64<_0x1205ed?0x0:0x1,_0x3f2019[_0x54ca64][_0x3878('0xa6')]=_0x54ca64;let _0xc7647d=0x0;for(let _0x2af8a0=_0x2897da;_0x2af8a0<=_0x2c726a;_0x2af8a0++)0x0==_0x3f2019[_0x2af8a0][_0x3878('0x9e')]?_0x3f2019[_0x2af8a0][_0x3878('0x41')]=_0xc7647d:(_0xc7647d++,_0x3f2019[_0x2af8a0]['level']=_0xc7647d,_0xc7647d++);for(let _0xaf5022=_0x2897da;_0xaf5022<_0x405b24;_0xaf5022++)0x0==_0x3f2019[_0xaf5022][_0x3878('0x16')]&&(_0x3f2019[_0xaf5022][_0x3878('0x41')]=_0xc7647d);_0xc7647d=0x0;for(let _0x59c274=_0x405b24-0x1;_0x59c274>=_0x1205ed;_0x59c274--)0x0==_0x3f2019[_0x59c274][_0x3878('0x9e')]?_0x3f2019[_0x59c274][_0x3878('0x41')]=_0xc7647d:(_0xc7647d--,_0x3f2019[_0x59c274][_0x3878('0x41')]=_0xc7647d,_0xc7647d--);}}['_fixObsoleteTags'](_0x5dd62e){const _0x595ad6=new Map(),_0x21c949=this[_0x3878('0x11a')][_0x3878('0xe9')][_0x3878('0x30')];for(let _0x5db15f=0x1;_0x5db15f<_0x5dd62e[_0x3878('0xa2')];_0x5db15f++){let _0x609189,_0x47d84e,_0x80f20a;const _0x2f5af4=_0x5dd62e[_0x5db15f],_0x4fa87f=_0x5dd62e[_0x5db15f-0x1];if(_0x3878('0x36')==_0x2f5af4[_0x3878('0x4e')])continue;if(_0x2f5af4[_0x3878('0x4e')]!=_0x4fa87f[_0x3878('0x4e')])continue;if(!_0x21c949[_0x3878('0xfc')](_0x4fa87f[_0x3878('0xf2')])||_0x21c949[_0x3878('0xd2')](_0x4fa87f['item']))continue;if(!_0x21c949['isBlock'](_0x2f5af4[_0x3878('0xf2')])||_0x21c949['isLimit'](_0x2f5af4[_0x3878('0xf2')]))continue;if((_0x5dd62e[_0x5db15f][_0x3878('0x3c')]||_0x5dd62e[_0x5db15f]['isAddSuggestion'])&&_0x5dd62e[_0x5db15f-0x1][_0x3878('0x17')])_0x609189=_0x5dd62e[_0x5db15f],_0x47d84e=_0x5dd62e[_0x5db15f-0x1],_0x80f20a=_0x5db15f-0x1;else{if(!_0x5dd62e[_0x5db15f]['isRemoved']||!_0x5dd62e[_0x5db15f-0x1]['isAdded']&&!_0x5dd62e[_0x5db15f-0x1][_0x3878('0x118')])continue;_0x609189=_0x5dd62e[_0x5db15f-0x1],_0x47d84e=_0x5dd62e[_0x5db15f],_0x80f20a=_0x5db15f;}const _0x36b778=_0x609189[_0x3878('0x41')]==_0x47d84e['level'],_0x32d646=Math[_0x3878('0xe2')](_0x609189['level'])<Math[_0x3878('0xe2')](_0x47d84e[_0x3878('0x41')])&&0x0==_0x47d84e[_0x3878('0x9e')];(_0x36b778||_0x32d646)&&(_0x595ad6['set'](_0x47d84e['id'],_0x609189['id']),_0x5dd62e[_0x3878('0xbf')](_0x80f20a,0x1),_0x5db15f--,_0x609189[_0x3878('0x3c')]=!0x1);}for(let _0x332d22=0x0;_0x332d22<_0x5dd62e['length'];_0x332d22++)_0x595ad6[_0x3878('0xf')](_0x5dd62e[_0x332d22][_0x3878('0xa0')])&&(_0x5dd62e[_0x332d22]['pairId']=_0x595ad6[_0x3878('0x3f')](_0x5dd62e[_0x332d22]['pairId']));}[_0x3878('0x15')](_0x5f163e){const _0x1fdd9e=new Set(_0x5f163e[_0x3878('0xd8')](_0x319c88=>_0x319c88['id']));for(let _0x21f95b=0x0;_0x21f95b<_0x5f163e[_0x3878('0xa2')];_0x21f95b++)_0x1fdd9e['has'](_0x5f163e[_0x21f95b][_0x3878('0xa0')])||0x0==_0x5f163e[_0x21f95b]['distance']||(_0x5f163e[_0x21f95b][_0x3878('0x10e')]=!0x0);return _0x5f163e[_0x3878('0xdd')](_0x44885e=>!_0x44885e[_0x3878('0x10e')]);}[_0x3878('0xb0')](_0x92151d){const _0x515418=new Set();for(let _0x411104=0x0;_0x411104<_0x92151d[_0x3878('0xa2')];_0x411104++){if(_0x515418[_0x3878('0xf')](_0x92151d[_0x411104]['id'])&&_0x92151d[_0x411104][_0x3878('0x17')]&&(_0x92151d[_0x411104][_0x3878('0x10e')]=!0x0),_0x92151d[_0x411104][_0x3878('0x10e')])continue;if(0x0==_0x92151d[_0x411104][_0x3878('0x9e')])continue;if(_0x3878('0xbd')!=_0x92151d[_0x411104]['type'])continue;if(null==_0x92151d[_0x411104]['pairId'])continue;let _0x320b55=_0x411104+0x1,_0x353c06=0x0;for(;_0x92151d[_0x320b55]['id']!=_0x92151d[_0x411104][_0x3878('0xa0')];)_0x3878('0xbd')==_0x92151d[_0x320b55][_0x3878('0x4e')]?_0x353c06++:_0x3878('0x97')==_0x92151d[_0x320b55][_0x3878('0x4e')]&&_0x353c06--,_0x320b55++;if(0x0!=_0x353c06){if(_0x92151d[_0x411104][_0x3878('0x17')])_0x92151d[_0x411104]['isIncorrect']=!0x0;else for(;_0x320b55!=_0x411104;)_0x92151d[_0x320b55][_0x3878('0x17')]&&0x0!=_0x92151d[_0x320b55][_0x3878('0x9e')]&&(_0x92151d[_0x320b55][_0x3878('0x10e')]=!0x0,_0x515418[_0x3878('0x1')](_0x92151d[_0x320b55]['pairId'])),_0x320b55--;}}return _0x92151d[_0x3878('0xdd')](_0x4d075d=>!_0x4d075d[_0x3878('0x10e')]);}[_0x3878('0x7a')](_0x218841){const _0x2e7985=this[_0x3878('0x11a')][_0x3878('0xe9')]['schema'];for(let _0x369a1b=0x0;_0x369a1b<_0x218841['length'];_0x369a1b++){if(!(_0x218841[_0x369a1b]['isAdded']||_0x218841[_0x369a1b][_0x3878('0x118')]||_0x218841[_0x369a1b][_0x3878('0x17')]||_0x218841[_0x369a1b][_0x3878('0xef')]))continue;if(0x0==_0x218841[_0x369a1b]['distance'])continue;const _0x319c8a=_0x218841[_0x369a1b][_0x3878('0xf2')];_0x2e7985[_0x3878('0xfc')](_0x319c8a)||_0x2e7985[_0x3878('0xd2')](_0x319c8a)||(_0x218841[_0x369a1b][_0x3878('0x3c')]&&delete _0x218841[_0x369a1b][_0x3878('0x3c')],_0x218841[_0x369a1b][_0x3878('0x118')]&&delete _0x218841[_0x369a1b][_0x3878('0x118')],_0x218841[_0x369a1b][_0x3878('0xef')]&&delete _0x218841[_0x369a1b][_0x3878('0xef')],_0x218841[_0x369a1b][_0x3878('0x17')]&&(_0x218841[_0x369a1b]['isIncorrect']=!0x0));}return _0x218841['filter'](_0x426030=>!_0x426030['isIncorrect']);}[_0x3878('0xde')](_0x42ec07,_0x3298e1,_0x52a0b3){const _0x33c7c0=new _0x423ec4(),_0x51249c=[],_0x5e8053=new Map(),_0x2cb8fa=this[_0x3878('0x11a')][_0x3878('0xe9')],_0x2ca3e0=_0x2cb8fa[_0x3878('0x30')],_0x143b34=[_0x33c7c0],_0x108104={},_0x1bf075={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4117a4=null;const _0x1dbdad=[0x0];for(let _0x473573=0x0;_0x473573<_0x42ec07[_0x3878('0xa2')];_0x473573++){let _0x33faa2,_0x500793;if('elementStart'===_0x42ec07[_0x473573][_0x3878('0x4e')]){_0x33faa2=_0x2cb8fa[_0x3878('0xda')](_0x33c7c0,_0x1dbdad);const _0x52d95b=new _0x1babb1(_0x42ec07[_0x473573][_0x3878('0xf2')][_0x3878('0x108')],_0x42ec07[_0x473573]['item'][_0x3878('0xea')]());_0x143b34[0x0]['_appendChild'](_0x52d95b),_0x1dbdad['push'](0x0),_0x143b34['unshift'](_0x52d95b),_0x500793=_0x2cb8fa[_0x3878('0xda')](_0x33c7c0,_0x1dbdad),_0x4117a4=null;}else{if(_0x3878('0x97')===_0x42ec07[_0x473573][_0x3878('0x4e')])_0x143b34[_0x3878('0xdb')](),_0x33faa2=_0x2cb8fa['createPositionFromPath'](_0x33c7c0,_0x1dbdad),_0x1dbdad[_0x3878('0xf8')](),_0x1dbdad[_0x1dbdad[_0x3878('0xa2')]-0x1]++,_0x500793=_0x2cb8fa[_0x3878('0xda')](_0x33c7c0,_0x1dbdad),_0x4117a4=null;else{if(_0x33faa2=_0x2cb8fa[_0x3878('0xda')](_0x33c7c0,_0x1dbdad),_0x4117a4&&_0xc492a6(_0x4117a4,_0x42ec07[_0x473573]['item']))_0x4117a4[_0x3878('0x54')]+=_0x42ec07[_0x473573][_0x3878('0xf2')]['data'];else{const _0x35fb0b=new _0x3d0803(_0x42ec07[_0x473573][_0x3878('0xf2')][_0x3878('0x71')],_0x42ec07[_0x473573][_0x3878('0xf2')][_0x3878('0xea')]());_0x143b34[0x0][_0x3878('0xe8')](_0x35fb0b),_0x4117a4=_0x35fb0b;}_0x1dbdad[_0x1dbdad['length']-0x1]+=_0x42ec07[_0x473573]['item'][_0x3878('0x8e')],_0x500793=_0x2cb8fa[_0x3878('0xda')](_0x33c7c0,_0x1dbdad);}}for(const _0x15a585 of _0x42ec07[_0x473573][_0x3878('0x10d')])_0x5e8053[_0x3878('0x2c')](_0x15a585,{'start':_0x33faa2,'end':null});_0x501166(_0x3878('0xef'),_0x473573,_0x33faa2,_0x500793),_0x501166(_0x3878('0x118'),_0x473573,_0x33faa2,_0x500793),_0x501166(_0x3878('0x17'),_0x473573,_0x33faa2,_0x500793),_0x501166(_0x3878('0x3c'),_0x473573,_0x33faa2,_0x500793);for(const _0x3f4fa7 of _0x42ec07[_0x473573][_0x3878('0x7b')]){_0x5e8053['get'](_0x3f4fa7)['end']=_0x500793;}}for(const [_0x191635,_0x2cfdc9]of _0x5e8053){const _0x22074f=this[_0x3878('0x11a')][_0x3878('0xe9')][_0x3878('0x4')](_0x2cfdc9['start'],_0x2cfdc9['end']);_0x33c7c0[_0x3878('0x11f')][_0x3878('0x2c')](_0x191635,_0x22074f);}return _0x51249c[_0x3878('0x8a')]((_0x2fc197,_0x5c588d)=>{const _0x48203c=_0x33c7c0[_0x3878('0x11f')][_0x3878('0x3f')](_0x3878('0xd5')+_0x2fc197['id']),_0x20efda=_0x33c7c0['markers']['get']('revision:'+_0x5c588d['id']);return _0x48203c[_0x3878('0x37')]['isBefore'](_0x20efda[_0x3878('0x37')])?-0x1:_0x48203c[_0x3878('0x37')][_0x3878('0xcf')](_0x20efda[_0x3878('0x37')])?0x1:_0x48203c[_0x3878('0x9b')][_0x3878('0xfb')](_0x20efda[_0x3878('0x9b')])?-0x1:_0x48203c[_0x3878('0x9b')]['isAfter'](_0x20efda[_0x3878('0x9b')])?0x1:_0x3878('0x1')===_0x2fc197[_0x3878('0x4e')]?-0x1:0x1;}),{'root':_0x33c7c0,'changes':_0x51249c};function _0x501166(_0x48e595,_0x858b02,_0x5a8355,_0x20f232){const _0x5ce907=!!_0x42ec07[_0x858b02][_0x48e595],_0x5f4eda=_0x5ce907?_0x42ec07[_0x858b02][_0x48e595][_0x3878('0x101')]:null,_0x3869f0=_0x858b02===_0x42ec07['length']-0x1,_0x47a043=_0x1bf075[_0x48e595][0x0],_0x2891a6=_0x2ca3e0[_0x3878('0x26')](_0x42ec07[_0x858b02][_0x3878('0xf2')]);!_0x108104[_0x48e595]&&_0x5ce907?_0x108104[_0x48e595]={'start':_0x5a8355,'tapeItem':_0x42ec07[_0x858b02],'userId':_0x5f4eda,'type':_0x48e595}:_0x108104[_0x48e595]&&!_0x5ce907?(_0x108104[_0x48e595][_0x3878('0x9b')]=_0x5a8355,_0x5c065a(_0x108104[_0x48e595]),_0x108104[_0x48e595]=null):_0x108104[_0x48e595]&&_0x5ce907&&_0x108104[_0x48e595][_0x3878('0x101')]!==_0x5f4eda&&(_0x108104[_0x48e595]['end']=_0x5a8355,_0x47a043&&_0x47a043[_0x3878('0x101')]===_0x108104[_0x48e595][_0x3878('0x101')]||_0x5c065a(_0x108104[_0x48e595]),_0x108104[_0x48e595]={'start':_0x5a8355,'tapeItem':_0x42ec07[_0x858b02],'userId':_0x5f4eda,'type':_0x48e595}),_0x108104[_0x48e595]&&_0x2891a6&&(_0x3878('0xbd')!==_0x42ec07[_0x858b02]['type']||_0x47a043&&_0x47a043[_0x3878('0x101')]===_0x5f4eda||_0x1bf075[_0x48e595]['unshift']({'userId':_0x5f4eda,'object':_0x42ec07[_0x858b02][_0x3878('0xf2')],'change':_0x108104[_0x48e595]}),_0x3878('0x97')===_0x42ec07[_0x858b02][_0x3878('0x4e')]&&_0x47a043&&_0x47a043['object']===_0x42ec07[_0x858b02][_0x3878('0xf2')]&&(_0x1bf075[_0x48e595][_0x3878('0xdb')](),_0x108104[_0x48e595]=_0x47a043[_0x3878('0xe3')])),_0x108104[_0x48e595]&&_0x3869f0&&(_0x108104[_0x48e595][_0x3878('0x9b')]=_0x20f232,_0x5c065a(_0x108104[_0x48e595]),_0x108104[_0x48e595]=null);}function _0x5c065a({start:_0x377630,end:_0x875614,tapeItem:_0x5ae8b7,userId:_0x10ac50,type:_0x213481}){const _0x1d403f=_0x5ae8b7['item'],_0x4f61f0=_0x2cb8fa[_0x3878('0x30')]['isBlock'](_0x1d403f)&&!_0x2cb8fa[_0x3878('0x30')][_0x3878('0xd2')](_0x1d403f),_0x105176=_0x377630['nodeAfter']==_0x875614[_0x3878('0x5f')]&&_0x875614['isAtStart'];if(_0x4f61f0&&_0x105176)return;const _0x3e3174=_0x2cb8fa[_0x3878('0x4')](_0x377630,_0x875614),_0xc8ff03=_0x3298e1['get'](_0x10ac50),_0xfb330f=new _0x2cd055({'author':_0xc8ff03,'type':'isAdded'==_0x213481||_0x3878('0x118')==_0x213481?_0x3878('0x1'):_0x3878('0xc'),'data':{'isSuggestion':_0x3878('0x118')==_0x213481||'isRemoveSuggestion'==_0x213481},'createdAt':new Date(),'rootName':_0x52a0b3});_0x51249c[_0x3878('0x8f')](_0xfb330f),_0x33c7c0[_0x3878('0x11f')]['set']('revision:'+_0xfb330f['id'],_0x3e3174);}function _0xc492a6(_0x27abb2,_0x3f7145){const _0x53c9c4=_0x27abb2[_0x3878('0xea')](),_0x21ed17=_0x3f7145[_0x3878('0xea')]();for(const _0x3fe6a9 of _0x53c9c4){if(_0x3fe6a9[0x1]!==_0x3f7145[_0x3878('0x9c')](_0x3fe6a9[0x0]))return!0x1;_0x21ed17[_0x3878('0x115')]();}return _0x21ed17['next']()[_0x3878('0x84')];}}['_setConversion'](){this[_0x3878('0x11a')][_0x3878('0x119')][_0x3878('0xed')]('upcast')[_0x3878('0x6e')]({'view':'revision'}),this[_0x3878('0x11a')]['conversion'][_0x3878('0xed')](_0x3878('0x117'))[_0x3878('0x1d')]({'model':'revision','view':_0x39ed6f=>{const _0x3a6a62=_0x39ed6f[_0x3878('0xbe')][_0x3878('0x67')](':')[0x1],_0xefbc84=this[_0x3878('0x7')](_0x3a6a62);if(!_0xefbc84)return null;const _0x6c10d6='add'==_0xefbc84[_0x3878('0x4e')]?'insertion':_0x3878('0x25'),_0x28f538=[_0x3878('0x64'),'ck-suggestion-marker-'+_0x6c10d6];return _0xefbc84[_0x3878('0x71')]['isSuggestion']&&_0x28f538[_0x3878('0x8f')](_0x3878('0x20')+_0x6c10d6+_0x3878('0x2e')),this[_0x3878('0x23')]==_0xefbc84&&_0x28f538[_0x3878('0x8f')](_0x3878('0xb8')),{'classes':_0x28f538,'attributes':{'data-change-id':_0x3a6a62}};}}),this[_0x3878('0x11a')][_0x3878('0x119')]['for']('upcast')[_0x3878('0x1')](_0x573fc4=>{_0x573fc4['on'](_0x3878('0x61'),(_0x30ed89,_0x63a457,_0x36f11b)=>{const _0x4a677c=_0x63a457[_0x3878('0x114')][_0x3878('0x3e')](0x0);if(!_0x4a677c||!_0x4a677c['is'](_0x3878('0xb'),_0x3878('0xe0')))return;if(!_0x36f11b[_0x3878('0xd7')]['consume'](_0x4a677c,{'attributes':[_0x3878('0x4a'),_0x3878('0x0')]}))return;const _0x8e1fe2=_0x63a457[_0x3878('0x6b')][_0x3878('0x37')][_0x3878('0xa')];_0x36f11b[_0x3878('0xd0')][_0x3878('0x59')]('vid_start',_0x4a677c[_0x3878('0x9c')](_0x3878('0x4a')),_0x8e1fe2),_0x36f11b['writer']['setAttribute']('vid_end',_0x4a677c[_0x3878('0x9c')](_0x3878('0x0')),_0x8e1fe2);},{'priority':_0x3878('0x5e')});}),this[_0x3878('0x11a')][_0x3878('0x119')][_0x3878('0xed')](_0x3878('0xca'))[_0x3878('0x1')](_0x20db4f=>{_0x20db4f['on']('element',(_0x3742a6,_0x1622e2,_0x5b2d1c)=>{if(!_0x5b2d1c[_0x3878('0xd7')][_0x3878('0x1f')](_0x1622e2['viewItem'],{'attributes':[_0x3878('0x4a'),_0x3878('0x0')]}))return;if(_0x1622e2[_0x3878('0x6b')]['isCollapsed'])return;const _0x184dfe=_0x1622e2[_0x3878('0x6b')][_0x3878('0x37')][_0x3878('0xa')];_0x184dfe[_0x3878('0xb6')](_0x3878('0x4a'))||_0x184dfe[_0x3878('0xb6')](_0x3878('0xcd'))||(_0x5b2d1c[_0x3878('0xd0')][_0x3878('0x59')]('vid_start',_0x1622e2[_0x3878('0x114')]['getAttribute'](_0x3878('0x4a')),_0x184dfe),_0x5b2d1c[_0x3878('0xd0')][_0x3878('0x59')](_0x3878('0x0'),_0x1622e2['viewItem'][_0x3878('0x9c')](_0x3878('0x0')),_0x184dfe));},{'priority':'low'});}),this[_0x3878('0x11a')][_0x3878('0x119')][_0x3878('0xed')](_0x3878('0xca'))['elementToAttribute']({'view':{'name':_0x3878('0x75'),'attributes':{'vid':!0x0}},'model':{'key':_0x3878('0xcd'),'value':_0x28b142=>_0x28b142[_0x3878('0x9c')](_0x3878('0xcd'))}}),this[_0x3878('0x11a')][_0x3878('0xe9')][_0x3878('0x30')]['on']('checkAttribute',(_0x1b14a4,[,_0x10ffde])=>{['vid_start',_0x3878('0x0'),_0x3878('0xcd')][_0x3878('0x9f')](_0x10ffde)&&(_0x1b14a4[_0x3878('0xb2')]=!0x0,_0x1b14a4[_0x3878('0x63')]());},{'priority':_0x3878('0x35')}),this[_0x3878('0x11a')]['conversion']['for'](_0x3878('0x6a'))[_0x3878('0x1')](_0x3a45b7=>{_0x3a45b7['on'](_0x3878('0x10'),(_0x57f358,_0x54fa4c,_0x49e714)=>{if('\x20'!=_0x54fa4c[_0x3878('0xf2')][_0x3878('0x71')]||_0x54fa4c[_0x3878('0xf2')]['parent'][_0x3878('0xab')]>0x1)return;if(!_0x49e714['consumable'][_0x3878('0x1f')](_0x54fa4c[_0x3878('0xf2')],_0x57f358['name']))return;const _0x125805=_0x49e714[_0x3878('0xd0')],_0x4e4c68=_0x49e714[_0x3878('0xff')][_0x3878('0xd1')](_0x54fa4c[_0x3878('0xe7')]);_0x125805[_0x3878('0xa7')](_0x4e4c68,_0x125805[_0x3878('0xaa')]('span'));});}),this['editor'][_0x3878('0x119')]['for'](_0x3878('0x6a'))[_0x3878('0x42')]({'model':'revision'}),this['editor'][_0x3878('0x4b')][_0x3878('0x98')]['on']('addMarker:revision',function(_0x25c97c){const _0x169bf2=_0x25c97c[_0x3878('0xc1')][_0x3878('0x3f')]('RevisionViewer');return(_0xed5aff,_0x53d668,_0x593a97)=>{const _0x55bf47=_0x53d668[_0x3878('0xbe')]['split'](':')[0x1],_0x329b02=_0x169bf2[_0x3878('0x7')](_0x55bf47);if(!_0x329b02)return null;const _0x5c4db=_0x3878('0x1')==_0x329b02['type']?_0x3878('0x67'):_0x3878('0x1b');if(!_0x593a97[_0x3878('0xd7')][_0x3878('0x113')](_0x53d668['markerRange'],_0xed5aff[_0x3878('0x108')]))return;const _0x403b68=_0x53d668[_0x3878('0xb4')]['getWalker'](),_0x9fc6a5=_0x53d668['markerRange'][_0x3878('0x37')],_0x174e32=_0x25c97c[_0x3878('0xe9')][_0x3878('0x30')];let _0x2d8555=null,_0x269c17=null,_0x198652=!0x1,_0x4e70c9=!0x1;for(const _0x1ceef8 of _0x403b68){const _0x474575=_0x1ceef8[_0x3878('0xf2')];_0x198652=_0x198652||_0x174e32[_0x3878('0x69')](_0x474575);const _0x45ae3f=_0x593a97[_0x3878('0xff')]['toViewElement'](_0x474575);if(_0x45ae3f&&_0x45ae3f[_0x3878('0x89')](_0x3878('0xaf')))return;_0x3878('0x97')==_0x1ceef8['type']&&(_0x174e32['isBlock'](_0x474575)&&!_0x174e32[_0x3878('0xd2')](_0x474575)&&(_0x474575[_0x3878('0x6d')]||_0x9fc6a5[_0x3878('0xb1')]?_0x2d8555&&_0x2d8555['parent']==_0x474575||(_0x2d8555=_0x474575,_0x1486d5(_0x1ceef8[_0x3878('0xba')]),_0x4e70c9=!0x0):_0x269c17=_0x269c17||_0x1ceef8[_0x3878('0xba')]));}function _0x1486d5(_0x4ae7a7){const _0x530d7b=_0x593a97[_0x3878('0xd0')][_0x3878('0x5')](_0x3878('0x75'),{'class':_0x3878('0x20')+_0x5c4db}),_0x28a837=_0x593a97[_0x3878('0xff')][_0x3878('0xd')](_0x4ae7a7);_0x329b02[_0x3878('0x71')]['isSuggestion']&&_0x593a97[_0x3878('0xd0')]['addClass'](_0x3878('0x20')+_0x5c4db+_0x3878('0x2e'),_0x530d7b),_0x169bf2['activeChange']==_0x329b02&&_0x593a97[_0x3878('0xd0')][_0x3878('0x50')](_0x3878('0xb8'),_0x530d7b),_0x593a97[_0x3878('0xd0')][_0x3878('0x11')](_0x28a837,_0x530d7b),_0x593a97[_0x3878('0xff')]['bindElementToMarker'](_0x530d7b,_0x53d668[_0x3878('0xbe')]);}_0x198652||_0x4e70c9||!_0x269c17||_0x1486d5(_0x269c17);};}(this['editor']),{'priority':_0x3878('0x6f')}),this['editor'][_0x3878('0x4b')][_0x3878('0x98')]['on'](_0x3878('0x7c'),(_0xdab1c3,_0x4eca6f,_0x5c2c94)=>{const _0x115c2e=_0x5c2c94['mapper']['markerNameToElements'](_0x4eca6f['markerName']);if(_0x115c2e)for(const _0x394b03 of _0x115c2e)(_0x394b03[_0x3878('0x93')](_0x3878('0xce'))||_0x394b03[_0x3878('0x93')](_0x3878('0x121')))&&(_0x5c2c94[_0x3878('0xff')][_0x3878('0xa5')](_0x394b03,_0x4eca6f[_0x3878('0xbe')]),_0x5c2c94[_0x3878('0xd0')]['remove'](_0x394b03));},{'priority':_0x3878('0x6f')}),this['editor'][_0x3878('0x4b')][_0x3878('0x98')]['on']('addMarker:revision',(_0x59f51f,_0x2804f8,_0x3b9126)=>{const _0x1af81a=_0x2804f8[_0x3878('0xbe')][_0x3878('0x67')](':')[0x1],_0x29243e=this[_0x3878('0x7')](_0x1af81a);if(!_0x29243e)return null;const _0x3e199c=_0x3878('0x1')==_0x29243e[_0x3878('0x4e')]?_0x3878('0x67'):'merge';if(_0x3b9126['consumable']['test'](_0x2804f8[_0x3878('0xb4')],_0x59f51f[_0x3878('0x108')]))for(const _0x39cfa2 of _0x2804f8['markerRange']['getItems']()){if(!_0x39cfa2['is'](_0x3878('0xb'),_0x3878('0x33')))continue;const _0x393cf1=_0x3b9126[_0x3878('0xd0')][_0x3878('0x5')](_0x3878('0x75'),{'class':_0x3878('0x20')+_0x3e199c}),_0x582ff1=_0x3b9126[_0x3878('0xff')][_0x3878('0xd')](this[_0x3878('0x11a')][_0x3878('0xe9')][_0x3878('0x9')](_0x39cfa2));_0x29243e['data'][_0x3878('0x10c')]&&_0x3b9126[_0x3878('0xd0')]['addClass'](_0x3878('0x20')+_0x3e199c+_0x3878('0x2e'),_0x393cf1),this['activeChange']==_0x29243e&&_0x3b9126[_0x3878('0xd0')][_0x3878('0x50')]('ck-suggestion-marker--active',_0x393cf1),_0x3b9126[_0x3878('0xd0')][_0x3878('0x11')](_0x582ff1,_0x393cf1),_0x3b9126[_0x3878('0xff')][_0x3878('0x21')](_0x393cf1,_0x2804f8['markerName']);}},{'priority':_0x3878('0x6f')}),this[_0x3878('0x11a')][_0x3878('0xe9')][_0x3878('0xe1')]['on'](_0x3878('0xe3'),()=>{this[_0x3878('0x11a')]['editing']['view'][_0x3878('0xe3')](_0x685bd7=>{for(const _0x505903 of this[_0x3878('0x11a')][_0x3878('0xe9')]['document'][_0x3878('0x107')]()){const _0x334f2d=this[_0x3878('0x11a')][_0x3878('0xe9')]['document'][_0x3878('0x65')](_0x505903),_0x1ab114=this[_0x3878('0x11a')][_0x3878('0x4b')][_0x3878('0x22')][_0x3878('0xe1')]['getRoot'](_0x505903);if(_0x1ab114){const _0x56517b=_0x334f2d[_0x3878('0x9c')](_0x3878('0xfa'));if(_0x685bd7[_0x3878('0x31')](_0x3878('0x88'),_0x1ab114),_0x685bd7['removeClass'](_0x3878('0x40'),_0x1ab114),_0x685bd7[_0x3878('0xf6')](_0x3878('0x2'),_0x1ab114),_0x685bd7[_0x3878('0xf6')]('ck-revision-history-root--active',_0x1ab114),_0x56517b){const _0x48ea6d=this[_0x3878('0x7')](_0x56517b);if(!_0x48ea6d)return null;_0x685bd7['setAttribute'](_0x3878('0x88'),_0x56517b,_0x1ab114),_0x685bd7['addClass']('ck-revision-history-root-'+_0x48ea6d[_0x3878('0x4e')],_0x1ab114),this['activeChange']==_0x48ea6d&&_0x685bd7[_0x3878('0x50')](_0x3878('0xc4'),_0x1ab114);}}}});}),this[_0x3878('0x11a')][_0x3878('0x119')][_0x3878('0xed')]('upcast')[_0x3878('0x6e')]({'view':'comment','model':_0x3e5b48=>'revision-comment:'+_0x3e5b48,'converterPriority':_0x3878('0x35')}),this[_0x3878('0x11a')][_0x3878('0x119')][_0x3878('0xed')](_0x3878('0xca'))[_0x3878('0x6e')]({'view':_0x3878('0x95'),'model':_0x5cbae2=>'revision-suggestion:'+_0x5cbae2,'converterPriority':_0x3878('0x35')}),this[_0x3878('0x11a')][_0x3878('0x119')][_0x3878('0xed')](_0x3878('0x6a'))[_0x3878('0x42')]({'model':'revision-suggestion','view':_0x32faaf=>({'name':_0x3878('0xd9')+_0x32faaf,'group':_0x3878('0x27')}),'converterPriority':_0x3878('0x35')}),this[_0x3878('0x11a')][_0x3878('0x119')][_0x3878('0xed')](_0x3878('0x117'))[_0x3878('0x1d')]({'model':_0x3878('0x27'),'view':_0x15cfea=>{const _0x1f928a=_0x15cfea[_0x3878('0xbe')]['split'](':')[0x1];return _0x3878('0xb9')!=_0x1f928a&&_0x3878('0x25')!=_0x1f928a?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1f928a]};}}),this['editor'][_0x3878('0x4b')][_0x3878('0x98')]['on'](_0x3878('0x10f'),et(this[_0x3878('0x11a')],_0x3878('0x1b')),{'priority':_0x3878('0x6f')}),this[_0x3878('0x11a')][_0x3878('0x4b')][_0x3878('0x98')]['on'](_0x3878('0x120'),et(this['editor'],_0x3878('0x67')),{'priority':_0x3878('0x6f')}),this[_0x3878('0x11a')][_0x3878('0x4b')]['downcastDispatcher']['on'](_0x3878('0x2b'),(_0x10a075,_0x26d62c,_0x1fc57b)=>{const _0x556d69=_0x1fc57b[_0x3878('0xff')][_0x3878('0xa3')](_0x26d62c[_0x3878('0xbe')]);if(_0x556d69)for(const _0x4bdaf8 of _0x556d69)_0x4bdaf8['is'](_0x3878('0x3b'))&&(_0x1fc57b[_0x3878('0xff')][_0x3878('0xa5')](_0x4bdaf8,_0x26d62c['markerName']),_0x1fc57b[_0x3878('0xd0')][_0x3878('0xc')](_0x4bdaf8));},{'priority':_0x3878('0x6f')});}[_0x3878('0x7')](_0x2030e3){return this[_0x3878('0x47')][_0x3878('0x3f')](_0x2030e3);}[_0x3878('0x62')](_0x59ce5c){return this[_0x3878('0x103')]&&this[_0x3878('0x103')][_0x3878('0x3d')](),this[_0x3878('0x103')]=new _0x1fb614(this[_0x3878('0x11a')][_0x3878('0xc2')],_0x59ce5c),this[_0x3878('0x103')];}[_0x3878('0xa8')](){this[_0x3878('0x11a')][_0x3878('0xe9')][_0x3878('0xe1')][_0x3878('0x5a')][_0x3878('0xcb')](_0x3878('0x6c')),this['on']('change:activeView',(_0x4f92b2,_0x1ec535,_0x5d19cb,_0x2249ee)=>{_0x2249ee&&this[_0x3878('0xf1')][_0x3878('0xc')](_0x2249ee),_0x5d19cb&&(this[_0x3878('0xf1')][_0x3878('0x1')]({'view':_0x5d19cb,'stackId':_0x3878('0x14'),'position':{'target':()=>{const _0x392d2c=this[_0x3878('0x11a')][_0x3878('0x4b')],_0x1bc5c7=this[_0x3878('0x7')](_0x5d19cb[_0x3878('0x60')]);let _0x4b0b48;if(_0x1bc5c7['data'][_0x3878('0x28')]){const _0x417c8f=_0x392d2c[_0x3878('0x22')][_0x3878('0xf4')](_0x1bc5c7['rootName']);_0x4b0b48=Array[_0x3878('0xc7')](_0x417c8f['getClientRects']());}else{const _0x559d51=this['editor']['model'][_0x3878('0x11f')]['get'](_0x3878('0xd5')+_0x5d19cb[_0x3878('0x60')]);_0x4b0b48=Array[_0x3878('0xc7')](_0x392d2c[_0x3878('0xff')][_0x3878('0xa3')](_0x559d51[_0x3878('0x108')]))['map'](_0x5c268e=>_0x392d2c[_0x3878('0x22')]['domConverter']['mapViewToDom'](_0x5c268e))[_0x3878('0xd8')](_0x5125db=>Array['from'](_0x5125db[_0x3878('0x83')]()))[_0x3878('0x51')]();}if(!this['_activeViewTarget'])return _0x4b0b48[0x0];return _0x4b0b48[_0x3878('0x82')](_0x4a5b10=>_0x4a5b10['top']-0x3<=this[_0x3878('0x3a')]['y']&&_0x4a5b10[_0x3878('0x46')]+0x3>=this[_0x3878('0x3a')]['y']&&_0x4a5b10['left']-0x3<=this[_0x3878('0x3a')]['x']&&_0x4a5b10['right']+0x3>=this[_0x3878('0x3a')]['x'])||_0x4b0b48[0x0];}}}),this[_0x3878('0xf1')][_0x3878('0x44')](_0x3878('0x14')));}),this['on']('change:activeChange',(_0x1a0b0b,_0x517bb2,_0x28be5b,_0x563b49)=>{this[_0x3878('0xa1')]=_0x28be5b?this[_0x3878('0x62')](_0x28be5b):null,this[_0x3878('0x11a')]['model'][_0x3878('0xe3')](()=>{const _0x59f24c=this['editor']['editing'];_0x563b49&&(_0x563b49[_0x3878('0x71')][_0x3878('0x28')]?_0x59f24c[_0x3878('0x22')]['change'](_0x4c656c=>{_0x4c656c[_0x3878('0xf6')](_0x3878('0xc4'),_0x59f24c[_0x3878('0x22')][_0x3878('0xe1')][_0x3878('0x65')](_0x563b49[_0x3878('0x4d')]));}):_0x59f24c[_0x3878('0x1c')](_0x3878('0xd5')+_0x563b49['id'])),_0x28be5b&&(_0x28be5b['data'][_0x3878('0x28')]?_0x59f24c[_0x3878('0x22')][_0x3878('0xe3')](_0x35b98f=>{_0x35b98f[_0x3878('0x50')](_0x3878('0xc4'),_0x59f24c[_0x3878('0x22')][_0x3878('0xe1')]['getRoot'](_0x28be5b[_0x3878('0x4d')]));}):_0x59f24c['reconvertMarker']('revision:'+_0x28be5b['id']));});}),this[_0x3878('0x55')](this['editor']['editing'][_0x3878('0x22')][_0x3878('0xe1')],_0x3878('0xfe'),(_0x40ca96,_0x2c1056)=>{if(this[_0x3878('0x23')])return;const _0x508065=this['_findChangeIdFromDomTarget'](_0x2c1056[_0x3878('0x7d')]),_0x1bb239=this[_0x3878('0x47')][_0x3878('0x3f')](_0x508065);_0x1bb239?(this[_0x3878('0x3a')]={'x':_0x2c1056[_0x3878('0x96')]['x'],'y':_0x2c1056[_0x3878('0x96')]['y']},this['activeView']=this['_getViewForChange'](_0x1bb239)):(this[_0x3878('0x3a')]=null,this[_0x3878('0xa1')]=null);}),this['listenTo'](this[_0x3878('0x11a')][_0x3878('0x4b')][_0x3878('0x22')][_0x3878('0xe1')],_0x3878('0xad'),(_0x84f97c,_0x22def8)=>{const _0x21169f=this[_0x3878('0xdf')](_0x22def8['target']),_0x1826f8=this[_0x3878('0x47')][_0x3878('0x3f')](_0x21169f);_0x1826f8?(this[_0x3878('0x3a')]={'x':_0x22def8[_0x3878('0x96')]['x'],'y':_0x22def8[_0x3878('0x96')]['y']},_0x1826f8===this[_0x3878('0x23')]?this[_0x3878('0xf1')][_0x3878('0x19')]():this[_0x3878('0x23')]=_0x1826f8):(this[_0x3878('0x3a')]=null,this[_0x3878('0x23')]=null);});}[_0x3878('0xdf')](_0x3b55af){do{const _0x462d4e=_0x3b55af[_0x3878('0x9c')](_0x3878('0x88'));if(_0x462d4e)return _0x462d4e;_0x3b55af=_0x3b55af[_0x3878('0x5f')];}while(_0x3b55af);return null;}[_0x3878('0xf5')](){this[_0x3878('0x11a')][_0x3878('0xe9')][_0x3878('0xe3')](_0x328737=>{for(const _0x3304ae of this[_0x3878('0x11a')]['model'][_0x3878('0x11f')])_0x328737[_0x3878('0xb3')](_0x3304ae);});}}function et(_0x1a1727,_0x2d23cd){return(_0x20fd1b,_0x353895,_0x2094fa)=>{if(!_0x2094fa['consumable'][_0x3878('0x113')](_0x353895[_0x3878('0xb4')],_0x20fd1b[_0x3878('0x108')]))return;const _0x82f1fa=_0x353895['markerRange']['getWalker'](),_0x2a6f96=_0x353895[_0x3878('0xb4')][_0x3878('0x37')],_0x510a58=_0x1a1727['model'][_0x3878('0x30')];let _0x5ea958=null,_0x37b995=null,_0xad02b6=!0x1,_0x54a75e=!0x1;for(const _0x53f9c6 of _0x82f1fa){const _0x1d1453=_0x53f9c6[_0x3878('0xf2')];_0xad02b6=_0xad02b6||_0x510a58['isContent'](_0x1d1453);const _0x2d84cc=_0x2094fa[_0x3878('0xff')][_0x3878('0xe6')](_0x1d1453);if(_0x2d84cc&&_0x2d84cc[_0x3878('0x89')](_0x3878('0xaf')))return;_0x3878('0x97')==_0x53f9c6['type']&&(_0x510a58[_0x3878('0xfc')](_0x1d1453)&&!_0x510a58[_0x3878('0xd2')](_0x1d1453)&&(_0x1d1453['nextSibling']||_0x2a6f96[_0x3878('0xb1')]?_0x5ea958&&_0x5ea958[_0x3878('0x5f')]==_0x1d1453||(_0x5ea958=_0x1d1453,_0x5eabfc(_0x53f9c6[_0x3878('0xba')]),_0x54a75e=!0x0):_0x37b995=_0x37b995||_0x53f9c6[_0x3878('0xba')]));}function _0x5eabfc(_0x488514){const _0x53e53d=_0x2094fa[_0x3878('0xff')][_0x3878('0xd')](_0x488514),_0x4dfde1=_0x2094fa[_0x3878('0xd0')][_0x3878('0x5')](_0x3878('0x75'),{'class':_0x3878('0x56')+_0x2d23cd});_0x2094fa[_0x3878('0xd0')][_0x3878('0x11')](_0x53e53d,_0x4dfde1),_0x2094fa[_0x3878('0xff')][_0x3878('0x21')](_0x4dfde1,_0x353895[_0x3878('0xbe')]);}_0xad02b6||_0x54a75e||!_0x37b995||_0x5eabfc(_0x37b995);};}export class RestoreRevisionCommand extends _0x3e15ab{constructor(_0x1baffd){super(_0x1baffd);const _0x1900a0=_0x1baffd['plugins'][_0x3878('0x3f')](d);this['affectsData']=!0x1,this['listenTo'](_0x1900a0,_0x3878('0xdc'),()=>this[_0x3878('0xc0')]()),this[_0x3878('0x55')](_0x1900a0,_0x3878('0x106'),()=>this['refresh']());}[_0x3878('0xd3')](){const _0x41e6a9=this[_0x3878('0x11a')],_0x102819=_0x41e6a9['plugins'][_0x3878('0x3f')](d),_0x8ac2d1=_0x102819['isReady']?_0x102819[_0x3878('0x1e')][_0x3878('0x43')]:null;_0x41e6a9['config'][_0x3878('0x3f')](_0x3878('0x72'))[_0x3878('0x78')](_0x8ac2d1);}['refresh'](){const {isReady:_0xd284e5,isEnabled:_0x5d68a5}=this[_0x3878('0x11a')]['plugins'][_0x3878('0x3f')](d);this[_0x3878('0x2a')]=_0xd284e5&&_0x5d68a5;}}export class ShowChangeCommand extends _0x3e15ab{constructor(_0x1b9ea1,{direction:_0x52a376}){super(_0x1b9ea1);const _0x16043d=_0x1b9ea1['plugins'][_0x3878('0x3f')](d);this['affectsData']=!0x1,this[_0x3878('0x8d')]=_0x3878('0x5b')===_0x52a376?0x1:-0x1,this['listenTo'](_0x16043d,_0x3878('0xdc'),()=>this[_0x3878('0xc0')]()),this[_0x3878('0x55')](_0x16043d,_0x3878('0x106'),()=>this[_0x3878('0xc0')]()),this[_0x3878('0x55')](_0x16043d,'change:activeChange',()=>this[_0x3878('0xc0')]());}[_0x3878('0xd3')](){const _0x2be5d7=this[_0x3878('0x11a')],_0x1649c4=_0x2be5d7[_0x3878('0xc1')]['get'](d),{isNavigationMode:_0x51a6ee,currentChangeNumber:_0x45bdc9}=_0x1649c4;let _0x14fe8c;if(_0x1649c4[_0x3878('0x23')]=_0x51a6ee?_0x1649c4[_0x3878('0x1e')][_0x3878('0x3')][_0x3878('0x3f')](_0x45bdc9+this['_step']):_0x1649c4[_0x3878('0x1e')][_0x3878('0x3')][_0x3878('0x4c')],_0x1649c4[_0x3878('0x23')][_0x3878('0x71')][_0x3878('0x28')])_0x14fe8c=_0x2be5d7[_0x3878('0x4b')][_0x3878('0x22')][_0x3878('0xf4')](_0x1649c4[_0x3878('0x23')]['rootName']);else{const _0x138b52=_0x2be5d7[_0x3878('0xe9')][_0x3878('0x11f')][_0x3878('0x3f')](_0x3878('0xd5')+_0x1649c4['activeChange']['id']);_0x14fe8c=_0xbc3fb0(_0x2be5d7[_0x3878('0x4b')],_0x138b52);}_0x483bb9({'target':_0x14fe8c,'viewportOffset':0x28});}[_0x3878('0xc0')](){const {isNavigationMode:_0x115a2f,currentChangeNumber:_0x20684b,numberOfChanges:_0x466854,isReady:_0x29a334,isEnabled:_0x3b5de8}=this[_0x3878('0x11a')]['plugins'][_0x3878('0x3f')](d);this['isEnabled']=!!(_0x3b5de8&&_0x29a334&&_0x466854)&&(!_0x115a2f||(0x1===this['_step']?_0x20684b<_0x466854-0x1:_0x20684b>0x0));}}
|
|
23
|
+
const _0x3ed3=['insertions','config','isBefore','markers','WidgetToolbarRepository','elementStart','getDomRoot','_initInteractions','add','remove','side','right','ck-editor__editable__overlay','isRemoved','_update','index','removeClass','data-change-id','hasAttribute','split','createUIElement','bindElementToMarker','locale','children','_setConversion','_removeRevisionMarkers','first','indexOf','change:activeChange','updatePosition','unbindElementFromMarkerName','data','isAfter','offsetSize','affectsData','string','return','diff','destroy','highest','newRevisionId','push','ck-suggestion-marker--active','_makeTape','revisionHistoryLabel','activeChange','_balloon','addMarker:revision','editing','ck-revision-history-root-add','test','backward','element:pre','change:numberOfChanges','target','_makeModelFromViewString','schema','editor','roots','_markSuggestions','_markMarkers','isSuggestion','markersStart','set','mousedown','isEnabled','isIncorrect','consumable','getAttribute','downcastDispatcher','consume','bottom','span','activeView','document','execute','revision','startsWith','_markMismatchedRemovedTags','start','_step','ck-suggestion-preview-marker-','authors','removeAttribute','error','RevisionViewer','forward','viewItem','selection','modelRange','isObject','_setDistance','_processTape','isAdded','refresh','revision-suggestion','detachRoot','ck-suggestion-marker-split','_cleanUp','createAttributeElement','createPositionFromPath','enqueueChange','RevisionsRepository','removeMarker:revision-suggestion','values','keys','mouseover','toViewRange','userId','_sortAndFilterDiffChanges','isReady','isAtEnd','hasClass','createRangeIn','isContent','text','endIndex','nextPosition','isLimit','markersEnd','from','shift','_activeViewTarget','_changeIdToChange','startIndex','length','change:isReady','processor','vid_end','_getViewObj','_joinTapes','end','useFillerType','parent','isBlock','_refreshStartEndIndex','ck-revision-history-root-remove','toModel','reconvertMarker','ck-suggestion-preview-marker','getItems','_makeModelFromTape','object','addHighlight','attributesAfter','_getChangeFromId','init','next','rootName','addMarker:revision-suggestion:insertion','distance','setAttribute','getClientRects','pairId','done','oldRevisionId','vid_start','showNextChange','repository','change:activeView','domEvent','_findChangeIdFromDomTarget','revision-viewer','element','deletions','createRevision','find','isNavigationMode','elementToAttribute','unshift','marked','filter','isAddSuggestion','previousPosition','editingDowncast','ck-revision-history-root--active','listenTo','view','_appendChild','attributes','isCollapsed','currentChangeNumber','low','model','_markInsertions','markerToHighlight','left','removeMarker','revision-comment:','revision-suggestion:','bind','splice','nodeAfter','getRootNames','mapViewToDom','_changeView','addRoot','all','insert','resolve','_getRevisionsRange','collaboration.channelId','delete','adapter','toViewPosition','showPreviousChange','_removeUnsupportedChanges','revisionHistory','concat','_removeMissingPairs','vid','_cleanMarkers','writer','requires','changes','change:isEnabled','getIndex','softBreak','stop','high','ck-suggestion-marker','abs','restoreRevisionCallback','isOnRoot','getRoot','insertion','mapper','revision-start','elementEnd','comment','toViewElement','createPositionBefore','markerRange','-new','loadRevisionData','then','type','has','compare','addClass','isEqual','sort','nextSibling','getWalker','removeMarker:revision','plugins','_getViewForChange','level','attributesBefore','addMarker:revision-suggestion:deletion','name','data-revision-','clear','map','diffData','ck-suggestion-marker-','maxOffset','deletion','item','attachChange','parse','getRevision','getCustomProperty','observeMarkers','upcast','isAtStart','forceDisabled','merge','forEach','for','get','dataDowncast','enableReadOnlyMode','isInline','markerNameToElements','default','commands','dataToMarker','isAttached','addRevisionData','revision:','restoreRevision','getAttributes','getRevisionRootsAttributes','getRevisionData','isRemoveSuggestion','change','pop','markerName','flat','pluginName','conversion'];(function(_0x4621ba,_0x3ed390){const _0x360443=function(_0x3ccfc4){while(--_0x3ccfc4){_0x4621ba['push'](_0x4621ba['shift']());}};_0x360443(++_0x3ed390);}(_0x3ed3,0x18a));const _0x3604=function(_0x4621ba,_0x3ed390){_0x4621ba=_0x4621ba-0x0;let _0x360443=_0x3ed3[_0x4621ba];return _0x360443;};import{Plugin as _0x483fce,Command as _0x524429}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x14bcb4}from'ckeditor5/src/utils';import{ContextualBalloon as _0x25cb05}from'ckeditor5/src/ui';import{DocumentFragment as _0x31ed5d,Element as _0x2bb520,Text as _0xc9bffc,ViewDocumentFragment as _0x47e122,ViewText as _0x26a2d1,ViewElement as _0x215ee7,ViewContainerElement as _0x37ff20,ViewAttributeElement as _0x66c7f,ViewEmptyElement as _0x65e48d,ViewRawElement as _0x4bae77,ViewUIElement as _0x17b459}from'ckeditor5/src/engine';import{Users as _0x33bd03,getMarkerDomElement as _0x48f1fb}from'ckeditor5-collaboration/src/collaboration-core';import _0x470938 from'./ui/revisionviewer/changedetailsview';import _0x59f1d4 from'./revisionsrepository';import _0x58e1bf from'./changeitem';import{default as _0x97b06e}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x13cd76}from'lodash-es';const tt={'c':_0x37ff20,'a':_0x66c7f,'e':_0x65e48d,'r':_0x4bae77,'u':_0x17b459};export default class d extends _0x483fce{static get[_0x3604('0xbc')](){return _0x3604('0x113');}static get[_0x3604('0x6f')](){return[_0x33bd03,_0x25cb05,_0x59f1d4];}constructor(_0x558b0c){super(_0x558b0c),this[_0x3604('0x38')]=this['editor']['plugins'][_0x3604('0xa8')](_0x3604('0x0')),this[_0x3604('0xfd')]('activeChange',null),this[_0x3604('0xfd')](_0x3604('0x107'),null),this[_0x3604('0x14')]=null,this[_0x3604('0xfd')]('diff',null),this[_0x3604('0xfd')](_0x3604('0x8'),!0x1),this[_0x3604('0xfd')](_0x3604('0xff'),!0x0),this['on'](_0x3604('0x71'),(_0x5ee129,_0x3f686e,_0x638d38)=>{this['activeChange']=null,this[_0x3604('0x107')]=null,this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x4b')]['change'](_0x4db313=>{for(const _0x512c19 of this['editor'][_0x3604('0xee')][_0x3604('0x4b')]['document'][_0x3604('0xf8')])_0x638d38?_0x4db313[_0x3604('0xce')](_0x3604('0xca'),_0x512c19):_0x4db313[_0x3604('0x89')](_0x3604('0xca'),_0x512c19);});}),this[_0x3604('0x58')](_0x3604('0x41'))['to'](this,_0x3604('0xeb'),_0x38bf81=>null!==_0x38bf81),this['bind'](_0x3604('0x4f'))['to'](this,_0x3604('0x8'),this,_0x3604('0xe3'),this,'activeChange',(_0x184ee8,_0x1ee0a4,_0x20f616)=>_0x184ee8&&_0x20f616?_0x1ee0a4[_0x3604('0x70')]['getIndex'](_0x20f616):0x0),this[_0x3604('0x58')]('numberOfChanges')['to'](this,_0x3604('0x8'),this,_0x3604('0xe3'),(_0x556c21,_0x15bdeb)=>_0x556c21?_0x15bdeb['changes']['length']:0x0),this[_0x3604('0x5d')]=null,this['_changeIdToChange']=new Map(),this[_0x3604('0x65')]=null,this['_balloon']=this[_0x3604('0xf7')][_0x3604('0x8f')]['get'](_0x25cb05);}[_0x3604('0x2c')](){const _0x871d00=this[_0x3604('0xf7')],_0x3afd66=new ShowChangeCommand(_0x871d00,{'direction':_0x3604('0xf1')}),_0x2093c8=new ShowChangeCommand(_0x871d00,{'direction':_0x3604('0x114')});(_0x871d00[_0x3604('0xae')][_0x3604('0xc6')](_0x3604('0x67'),_0x3afd66),_0x871d00[_0x3604('0xae')]['add'](_0x3604('0x37'),_0x2093c8),_0x871d00[_0x3604('0xae')][_0x3604('0xc6')](_0x3604('0xb3'),new RestoreRevisionCommand(_0x871d00)),this['on'](_0x3604('0xf3'),()=>{_0x3afd66['refresh'](),_0x2093c8[_0x3604('0x11c')]();}),this[_0x3604('0xd6')](),this[_0x3604('0xc5')](),_0x871d00[_0x3604('0xaa')](_0x3604('0x3c')),_0x871d00[_0x3604('0x8f')][_0x3604('0x87')](_0x3604('0xc2')))&&_0x871d00[_0x3604('0x8f')]['get'](_0x3604('0xc2'))[_0x3604('0xa4')](_0x3604('0x3c'));}async[_0x3604('0xb6')](_0x5e600){await this[_0x3604('0x84')](_0x5e600);const _0x3a44fb={};for(const _0x13cc92 in _0x5e600[_0x3604('0x98')]){if(_0x5e600[_0x3604('0x98')][_0x13cc92][_0x3604('0x9d')]&&!_0x5e600[_0x3604('0x98')][_0x13cc92][_0x3604('0x9d')][_0x3604('0xb0')])continue;const _0x4d6cf5=this['_removeRevisionMarkers'](JSON[_0x3604('0x9e')](_0x5e600[_0x3604('0x98')][_0x13cc92][_0x3604('0xbe')])),_0x29618a=this[_0x3604('0xf7')]['editing'][_0x3604('0x4b')]['document'],_0x82a22f=new _0x47e122(_0x29618a,_0x4d6cf5[_0x3604('0x97')](_0x3ec764=>this[_0x3604('0x1b')](_0x3ec764)));this[_0x3604('0xf7')]['data'][_0x3604('0x19')]['useFillerType'](_0x3604('0x44')),_0x3a44fb[_0x13cc92]=this[_0x3604('0xf7')][_0x3604('0xdd')][_0x3604('0x19')]['toData'](_0x82a22f),this[_0x3604('0xf7')][_0x3604('0xdd')][_0x3604('0x19')][_0x3604('0x1e')](_0x3604('0xad'));}return _0x3a44fb;}async[_0x3604('0xb5')](_0x5f5acd){await this['loadRevisionData'](_0x5f5acd);const _0x4cf726={};for(const _0x395709 in _0x5f5acd['diffData'])_0x5f5acd[_0x3604('0x98')][_0x395709][_0x3604('0x9d')]&&!_0x5f5acd[_0x3604('0x98')][_0x395709][_0x3604('0x9d')][_0x3604('0xb0')]||(_0x4cf726[_0x395709]=_0x5f5acd[_0x3604('0x98')][_0x395709][_0x3604('0x2a')]||{});return _0x4cf726;}[_0x3604('0xd7')](_0x458a94){return(_0x458a94=_0x458a94['filter'](_0x4b18af=>!_0x4b18af[_0x3604('0x94')]||_0x3604('0x7d')!==_0x4b18af[_0x3604('0x94')]&&'revision-end'!==_0x4b18af[_0x3604('0x94')]))[_0x3604('0xa6')](_0x11b9f9=>{_0x3604('0xe1')!=typeof _0x11b9f9&&(_0x11b9f9[_0x3604('0xd5')]=this['_removeRevisionMarkers'](_0x11b9f9[_0x3604('0xd5')]),_0x11b9f9['attributes']=_0x11b9f9['attributes'][_0x3604('0x45')](_0x15e8e6=>!_0x15e8e6[0x0][_0x3604('0x10b')](_0x3604('0x95'))));}),_0x458a94;}async[_0x3604('0x88')](_0x145e04,_0x235b51,_0x2d2ad1=!0x1){if(!this[_0x3604('0xff')])return;const _0x537543=this[_0x3604('0xe3')],_0x42ddcd=this[_0x3604('0x38')],_0x5b1a5d=_0x3604('0xe1')==typeof _0x145e04?_0x42ddcd[_0x3604('0x9f')](_0x145e04):_0x145e04,_0x3aeede=_0x3604('0xe1')==typeof _0x235b51?_0x42ddcd[_0x3604('0x9f')](_0x235b51):_0x235b51,_0x1208d7=_0x5b1a5d['id'],_0x14bae7=_0x3aeede?_0x3aeede['id']:null;if(!_0x2d2ad1&&this['diff']&&this['diff'][_0x3604('0xe6')]===_0x1208d7&&this[_0x3604('0xe3')][_0x3604('0x35')]===_0x14bae7)return Promise['resolve']();this[_0x3604('0x8')]=!0x1,this[_0x3604('0x107')]=null,this[_0x3604('0xeb')]=null,this['diff']=new _0x97b06e(_0x1208d7,_0x14bae7);const _0x38dffb=this[_0x3604('0x62')](_0x5b1a5d,_0x3aeede,!0x0)['map'](_0x4a6b34=>this[_0x3604('0x84')](_0x4a6b34));return _0x38dffb['push'](new Promise(_0x31064a=>{setTimeout(_0x31064a,0x14);})),Promise[_0x3604('0x5f')](_0x38dffb)[_0x3604('0x85')](()=>{if(!this[_0x3604('0xff')])return;this['_cleanUp']();const _0xb28175=this['_getDiff'](_0x1208d7,_0x14bae7);for(const _0x35f44d of _0xb28175[_0x3604('0x70')])this[_0x3604('0x15')][_0x3604('0xfd')](_0x35f44d['id'],_0x35f44d);this[_0x3604('0xf7')]['model'][_0x3604('0x123')]({'isUndoable':!0x1},_0x5bbf59=>{for(const _0x308cf8 of this[_0x3604('0xf7')]['model'][_0x3604('0x108')][_0x3604('0x5b')]())_0x5bbf59[_0x3604('0x11e')](_0x308cf8);for(const _0x4c0041 of Object['keys'](_0xb28175[_0x3604('0x51')])){const _0x4eb96b=_0x5bbf59[_0x3604('0x5e')](_0x4c0041);for(const _0xf8d73b of Object[_0x3604('0x3')](_0xb28175['attributes'][_0x4c0041]))_0x5bbf59[_0x3604('0x31')](_0xf8d73b,_0xb28175[_0x3604('0x4d')][_0x4c0041][_0xf8d73b],_0x4eb96b);_0x5bbf59[_0x3604('0x60')](_0xb28175[_0x3604('0x51')][_0x4c0041],_0x4eb96b,0x0);}}),this['diff']['_setChanges'](this[_0x3604('0x7')](_0xb28175[_0x3604('0x70')])),this[_0x3604('0x8')]=!0x0;})['catch'](_0x1f4690=>{console[_0x3604('0x112')](_0x1f4690),this[_0x3604('0x120')](),_0x537543&&(this[_0x3604('0xe3')]=_0x537543),this[_0x3604('0x8')]=!0x0;});}[_0x3604('0xb1')](_0x452e1c,_0x48d0f8){const _0x2ee423=this['repository'][_0x3604('0x3f')](_0x452e1c);return _0x2ee423['on'](_0x3604('0xcc'),(_0x1784c5,_0xefc75b,_0x7f66e3)=>_0x48d0f8(_0xefc75b,_0x7f66e3,_0x2ee423)),this['repository']['addRevision'](_0x2ee423),_0x2ee423;}[_0x3604('0x84')](_0x3909b1){if(!_0x3909b1||_0x3909b1[_0x3604('0x98')])return Promise[_0x3604('0x61')]();{const _0x53bf7b=this[_0x3604('0xf7')][_0x3604('0xbf')]['get'](_0x3604('0x63'));return this['adapter'][_0x3604('0x9f')]({'channelId':_0x53bf7b,'revisionId':_0x3909b1['id']})[_0x3604('0x85')](_0xe5fe56=>{_0x3909b1[_0x3604('0xcc')]({'diffData':_0xe5fe56[_0x3604('0x98')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x3604('0x6d')](),this[_0x3604('0x5d')]&&this[_0x3604('0x5d')][_0x3604('0xe4')](),this['_changeView']=null,this[_0x3604('0x15')][_0x3604('0x96')](),this[_0x3604('0xf7')][_0x3604('0x51')]['enqueueChange']({'isUndoable':!0x1},_0x1d69e8=>{for(const _0x46a998 of this[_0x3604('0xf7')]['model'][_0x3604('0x108')][_0x3604('0x5b')]())_0x1d69e8[_0x3604('0x11e')](_0x46a998);});}['_sortAndFilterDiffChanges'](_0x27b4d1){const _0x3d06bd=[],_0x3023ec=new Map();for(const _0xeae635 of this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0x108')]['getRootNames']()){const _0x5dd49a=this[_0x3604('0xf7')][_0x3604('0xee')]['view'][_0x3604('0xc4')](_0xeae635);if(!_0x5dd49a)continue;const _0x214301=_0x5dd49a[_0x3604('0x32')]()[_0x3604('0x9c')](0x0);_0x214301&&(_0x3d06bd[_0x3604('0xe7')](_0xeae635),_0x3023ec[_0x3604('0xfd')](_0xeae635,_0x214301));}return _0x3d06bd[_0x3604('0x8b')]((_0x4fbc00,_0xec7ab7)=>{const _0x585099=_0x3023ec[_0x3604('0xa8')](_0x4fbc00),_0x1b7b7c=_0x3023ec[_0x3604('0xa8')](_0xec7ab7);return _0x585099['y']-_0x1b7b7c['y']||_0x585099['x']-_0x1b7b7c['x'];}),(_0x27b4d1=_0x27b4d1[_0x3604('0x45')](_0x446a65=>_0x3d06bd['includes'](_0x446a65[_0x3604('0x2e')])))[_0x3604('0x8b')]((_0x1c7e10,_0xe20a3f)=>_0x3d06bd[_0x3604('0xd9')](_0x1c7e10['rootName'])-_0x3d06bd['indexOf'](_0xe20a3f['rootName'])),_0x27b4d1;}[_0x3604('0xe9')](_0x6c19c8){const _0x46f18a=Array['from'](_0x6c19c8[_0x3604('0xc1')])[_0x3604('0x45')](([_0x14b322,_0xbf67a4])=>_0x14b322[_0x3604('0x10b')](_0x3604('0xb2'))&&!_0xbf67a4['isCollapsed']),_0x4529b6=Array[_0x3604('0x12')](this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xb')](_0x6c19c8)[_0x3604('0x8d')]({'singleCharacters':!0x0}));if(0x0!=_0x46f18a['length'])for(const _0x21a4ec of _0x4529b6){const [_0x536ede,_0x48208e]=_0x46f18a[0x0],[,_0x33213b,_0x420348]=_0x536ede[_0x3604('0xd1')](':');if(_0x48208e['end'][_0x3604('0x8a')](_0x21a4ec[_0x3604('0xf')])&&_0x46f18a[_0x3604('0x13')](),(_0x21a4ec[_0x3604('0x47')][_0x3604('0x8a')](_0x48208e[_0x3604('0x10d')])||_0x21a4ec[_0x3604('0x47')]['isAfter'](_0x48208e[_0x3604('0x10d')]))&&(_0x3604('0x7b')==_0x33213b?_0x21a4ec['isAdded']={'userId':_0x420348}:_0x3604('0x9b')==_0x33213b&&(_0x21a4ec[_0x3604('0xcb')]={'userId':_0x420348})),0x0==_0x46f18a[_0x3604('0x17')])break;}return _0x4529b6;}[_0x3604('0x21')](_0x28853e){const _0x4af295=new Map();for(let _0x572bf8=0x0;_0x572bf8<_0x28853e[_0x3604('0x17')];_0x572bf8++)_0x3604('0xd')===_0x28853e[_0x572bf8][_0x3604('0x86')]?(_0x28853e[_0x572bf8][_0x3604('0x9c')][_0x3604('0x16')]=_0x572bf8,_0x28853e[_0x572bf8]['item'][_0x3604('0xe')]=_0x572bf8):(_0x3604('0xc3')===_0x28853e[_0x572bf8][_0x3604('0x86')]?_0x28853e[_0x572bf8][_0x3604('0x9c')][_0x3604('0x16')]=_0x572bf8:'elementEnd'===_0x28853e[_0x572bf8][_0x3604('0x86')]&&(_0x28853e[_0x572bf8]['item'][_0x3604('0xe')]=_0x572bf8),_0x4af295['set'](_0x28853e[_0x572bf8]['id'],_0x572bf8));for(const _0x481d86 of _0x4af295[_0x3604('0x2')]())'elementStart'===_0x28853e[_0x481d86][_0x3604('0x86')]?_0x28853e[_0x481d86][_0x3604('0x9c')][_0x3604('0xe')]=_0x4af295[_0x3604('0xa8')](_0x28853e[_0x481d86]['pairId']):_0x3604('0x7e')===_0x28853e[_0x481d86][_0x3604('0x86')]&&(_0x28853e[_0x481d86][_0x3604('0x9c')][_0x3604('0x16')]=_0x4af295[_0x3604('0xa8')](_0x28853e[_0x481d86]['pairId']));}[_0x3604('0x11a')](_0x19425d){for(let _0x216939=0x0;_0x216939<_0x19425d[_0x3604('0x17')];_0x216939++){if(_0x3604('0xc3')===_0x19425d[_0x216939][_0x3604('0x86')])_0x19425d[_0x216939][_0x3604('0x9c')]['startIndex']=_0x216939;else{if(_0x3604('0x7e')===_0x19425d[_0x216939]['type']){_0x19425d[_0x216939][_0x3604('0x9c')]['endIndex']=_0x216939;const _0x637c83=_0x19425d[_0x216939]['item'][_0x3604('0x16')];_0x19425d[_0x637c83][_0x3604('0x33')]=_0x19425d[_0x216939]['id'],_0x19425d[_0x216939][_0x3604('0x33')]=_0x19425d[_0x637c83]['id'];}else _0x19425d[_0x216939][_0x3604('0x9c')][_0x3604('0x16')]=_0x216939,_0x19425d[_0x216939]['item'][_0x3604('0xe')]=_0x216939,_0x19425d[_0x216939][_0x3604('0x33')]=null;}_0x19425d[_0x216939][_0x3604('0xfc')]||(_0x19425d[_0x216939][_0x3604('0xfc')]=[],_0x19425d[_0x216939][_0x3604('0x11')]=[]);}}[_0x3604('0x52')](_0xabc8d2,_0x2fa731){const _0x4d2f98=_0xabc8d2['filter'](_0x4f56aa=>!_0x4f56aa['isAdded']);for(let _0x275841=0x0;_0x275841<_0x2fa731[_0x3604('0x17')];_0x275841++)_0x2fa731[_0x275841][_0x3604('0x11b')]&&(_0x4d2f98[_0x275841]['isAdded']=_0x2fa731[_0x275841]['isAdded']);}[_0x3604('0xf5')](_0x35bc06){const _0x1e2928=JSON['parse'](_0x35bc06),_0x5a208b=this[_0x3604('0xf7')][_0x3604('0xee')]['view'][_0x3604('0x108')],_0x3a5a5d=new _0x47e122(_0x5a208b,_0x1e2928[_0x3604('0x97')](_0x3e980f=>this[_0x3604('0x1b')](_0x3e980f)));return this[_0x3604('0xf7')]['data'][_0x3604('0x23')](_0x3a5a5d);}[_0x3604('0x1b')](_0x118373){const _0x43faae=this[_0x3604('0xf7')]['editing'][_0x3604('0x4b')][_0x3604('0x108')];if('string'==typeof _0x118373)return new _0x26a2d1(_0x43faae,_0x118373);{const _0x59ac9f=_0x118373[_0x3604('0xd5')]['map'](_0x373336=>this[_0x3604('0x1b')](_0x373336));return new(tt[_0x118373[(_0x3604('0x86'))]]||_0x215ee7)(_0x43faae,_0x118373[_0x3604('0x94')],_0x118373['attributes'],_0x59ac9f);}}['_getDiff'](_0x200ce2,_0x10a730=null){const _0x3bb318=this[_0x3604('0x38')][_0x3604('0x9f')](_0x200ce2),_0x2f143f=_0x10a730?this[_0x3604('0x38')][_0x3604('0x9f')](_0x10a730):null,_0x108a73=this[_0x3604('0x62')](_0x3bb318,_0x2f143f),_0x249f1f=_0x108a73[_0x108a73['length']-0x1],_0x315ec9=new Map(),_0x3f1924={'model':{},'attributes':{},'changes':[]},_0xd00626=new Set(),_0x39570e=new Map();for(let _0x206d2c=_0x108a73[_0x3604('0x17')]-0x1;_0x206d2c>=0x0;_0x206d2c--){const _0x232c0f=_0x108a73[_0x206d2c];for(const _0x130ca5 of Object['keys'](_0x232c0f[_0x3604('0x98')]))if(_0x232c0f[_0x3604('0x98')][_0x130ca5]['attachChange']){const _0x5b86a4=_0x232c0f[_0x3604('0x98')][_0x130ca5][_0x3604('0x9d')];_0x5b86a4[_0x3604('0xb0')]?(_0xd00626[_0x3604('0xc6')](_0x130ca5),_0x39570e[_0x3604('0x87')](_0x130ca5)&&_0x39570e['get'](_0x130ca5)['userId']==_0x5b86a4[_0x3604('0x6')]?_0x39570e[_0x3604('0x64')](_0x130ca5):_0x39570e[_0x3604('0xfd')](_0x130ca5,_0x5b86a4)):_0x39570e[_0x3604('0x87')](_0x130ca5)?(_0xd00626[_0x3604('0x64')](_0x130ca5),_0x39570e['delete'](_0x130ca5)):(_0xd00626['add'](_0x130ca5),_0x39570e[_0x3604('0xfd')](_0x130ca5,_0x5b86a4));}else _0xd00626[_0x3604('0xc6')](_0x130ca5);}for(const _0x54a0be of _0xd00626){const _0x27c96a=_0x39570e[_0x3604('0x87')](_0x54a0be)&&!_0x39570e[_0x3604('0xa8')](_0x54a0be)['isAttached'];let _0x18edb8=_0x27c96a?_0x108a73[_0x3604('0x17')]-0x1:0x0;const _0x36f155=_0x27c96a?-0x1:0x1;for(;_0x108a73[_0x18edb8];){const _0x22d60a=_0x108a73[_0x18edb8];if(_0x22d60a['diffData'][_0x54a0be]){const _0x4373f4=_0x27c96a?_0x22d60a[_0x3604('0x98')][_0x54a0be][_0x3604('0x92')]:_0x22d60a['diffData'][_0x54a0be][_0x3604('0x2a')];_0x3f1924['attributes'][_0x54a0be]=_0x4373f4?_0x13cd76(_0x4373f4):{};break;}_0x18edb8+=_0x36f155;}}for(const _0x476dec of _0x108a73){_0x476dec['model']={};for(const _0x1c3844 of _0x476dec[_0x3604('0x110')])_0x315ec9[_0x3604('0xfd')](_0x1c3844['id'],_0x1c3844);for(const _0x1d5f18 of _0xd00626){const _0x27e248=_0x476dec[_0x3604('0x98')][_0x1d5f18]?_0x476dec['diffData'][_0x1d5f18][_0x3604('0xbe')]:'[]',_0x24d864=_0x476dec[_0x3604('0x98')][_0x1d5f18]?_0x476dec[_0x3604('0x98')][_0x1d5f18][_0x3604('0x3e')]:'[]';_0x476dec['model'][_0x1d5f18]={'insertions':this['_makeModelFromViewString'](_0x27e248),'deletions':this[_0x3604('0xf5')](_0x24d864)};}}for(const _0x3343d1 of _0xd00626){let _0x38286b=null,_0x4a502d=0x0;const _0xb9de25=new Map(Array[_0x3604('0x12')](_0x3bb318['model'][_0x3343d1][_0x3604('0xbe')][_0x3604('0xc1')])['filter'](([_0x4a442a])=>!_0x4a442a['startsWith'](_0x3604('0xb2'))));let _0x51b852=0x0;for(const _0x597284 of _0x108a73){const _0x255e5b=this[_0x3604('0xe9')](_0x597284[_0x3604('0x51')][_0x3343d1][_0x3604('0xbe')]);_0x597284==_0x3bb318?(_0x38286b=_0x255e5b,_0x4a502d=_0x38286b[_0x3604('0x17')],_0x38286b[_0x3604('0xa6')](_0x7b9acb=>{_0x7b9acb['id']=_0x51b852++;}),this['_processTape'](_0x38286b)):this[_0x3604('0x52')](_0x38286b,_0x255e5b);const _0x3f234d=_0x38286b['filter'](_0x114023=>!_0x114023[_0x3604('0x11b')])['map'](_0x417440=>_0x417440['id']);let _0x3cfae4=0x0;const _0x352e64=this[_0x3604('0xe9')](_0x597284['model'][_0x3343d1][_0x3604('0x3e')]);_0x352e64[_0x3604('0xa6')](_0x154efd=>{_0x154efd[_0x3604('0xcb')]?_0x154efd['id']=_0x4a502d++:_0x154efd['id']=_0x3f234d[_0x3cfae4++];}),this[_0x3604('0x11a')](_0x352e64),this['_setDistance'](_0x38286b,'isAdded'),this[_0x3604('0x119')](_0x352e64,_0x3604('0xcb')),_0x597284==_0x3bb318&&this[_0x3604('0xfa')](_0x38286b,_0xb9de25),_0x38286b=this[_0x3604('0x1c')](_0x38286b,_0x352e64),this[_0x3604('0x21')](_0x38286b),this['_setDistance'](_0x38286b,_0x3604('0xcb'));}_0x38286b=_0x38286b[_0x3604('0x45')](_0x457e26=>!(_0x457e26['isAdded']&&_0x457e26['isRemoved']));const _0x1198cd=new Map(_0x249f1f['model'][_0x3343d1]['deletions'][_0x3604('0xc1')]),_0x14f5eb=new Set(_0xb9de25[_0x3604('0x3')]());for(const _0x9a5199 of _0x1198cd[_0x3604('0x3')]())_0x14f5eb[_0x3604('0x64')](_0x9a5199);this[_0x3604('0xf9')](_0x38286b,_0x14f5eb),this['_fixObsoleteTags'](_0x38286b),_0x38286b=this[_0x3604('0x6b')](_0x38286b),_0x38286b=this[_0x3604('0x10c')](_0x38286b),_0x38286b=this[_0x3604('0x68')](_0x38286b);const {root:_0x30966a,changes:_0x215e39}=this[_0x3604('0x27')](_0x38286b,_0x315ec9,_0x3343d1);_0x3f1924[_0x3604('0x51')][_0x3343d1]=_0x30966a;const _0x2706e0=_0x39570e[_0x3604('0xa8')](_0x3343d1);if(_0x2706e0){const _0x2eb79b=_0x315ec9[_0x3604('0xa8')](_0x2706e0[_0x3604('0x6')]),_0x22e14f=new _0x58e1bf({'author':_0x2eb79b,'type':_0x2706e0[_0x3604('0xb0')]?_0x3604('0xc6'):_0x3604('0xc7'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3343d1});_0x215e39[_0x3604('0x43')](_0x22e14f),_0x3f1924[_0x3604('0x4d')][_0x3343d1]['revisionHistoryAttachChange']=_0x22e14f['id'];}_0x3f1924[_0x3604('0x70')]=_0x3f1924['changes'][_0x3604('0x6a')](_0x215e39);}return _0x3f1924;}[_0x3604('0xfa')](_0x944838,_0x152b92){for(let _0x126feb=0x0;_0x126feb<_0x944838[_0x3604('0x17')];_0x126feb++)for(const [_0x39049a,_0x1c7ca9]of _0x152b92)_0x1c7ca9['start'][_0x3604('0x8a')](_0x944838[_0x126feb][_0x3604('0x47')])&&_0x944838[_0x126feb][_0x3604('0xfc')][_0x3604('0xe7')](_0x39049a),_0x1c7ca9[_0x3604('0x1d')][_0x3604('0x8a')](_0x944838[_0x126feb][_0x3604('0xf')])&&_0x944838[_0x126feb][_0x3604('0x11')][_0x3604('0xe7')](_0x39049a);}[_0x3604('0x1c')](_0x290a56,_0x146bc5){let _0x42f393=[],_0x4707f3=0x0,_0x5f54a7=0x0;for(;_0x4707f3<_0x290a56[_0x3604('0x17')]||_0x5f54a7<_0x146bc5['length'];){const _0x4318b9=_0x290a56[_0x4707f3]||{},_0x2a210a=_0x146bc5[_0x5f54a7]||{};if(_0x4318b9['id']==_0x2a210a['id'])_0x4707f3++,_0x5f54a7++,_0x42f393['push'](_0x4318b9);else{if(_0x2a210a[_0x3604('0xcb')]&&_0x4318b9[_0x3604('0x11b')]){const {commonTape:_0x32a218,iEnd:_0x289c53,jEnd:_0x1f64da}=this['_threeWayMerge'](_0x290a56,_0x4707f3,_0x146bc5,_0x5f54a7);_0x42f393=_0x42f393[_0x3604('0x6a')](_0x32a218),_0x4707f3=_0x289c53,_0x5f54a7=_0x1f64da;}else _0x2a210a['isRemoved']?(_0x5f54a7++,_0x42f393[_0x3604('0xe7')](_0x2a210a)):(_0x4707f3++,_0x42f393[_0x3604('0xe7')](_0x4318b9));}}return _0x42f393;}[_0x3604('0xf9')](_0x20cebf,_0x24aa27){const _0x479294=[];for(let _0x1e9860=0x0;_0x1e9860<_0x20cebf[_0x3604('0x17')];_0x1e9860++){for(let _0x2ab424=0x0;_0x2ab424<_0x20cebf[_0x1e9860][_0x3604('0xfc')][_0x3604('0x17')];_0x2ab424++){const _0x4939ef=_0x20cebf[_0x1e9860][_0x3604('0xfc')][_0x2ab424];if(!_0x24aa27['has'](_0x4939ef))continue;const {group:_0x5c3c31,type:_0x18a00e,authorId:_0xef5aab}=_0x5f312a(_0x4939ef);_0x3604('0x11d')!=_0x5c3c31||_0x3604('0x7b')!=_0x18a00e&&_0x3604('0x9b')!=_0x18a00e||(_0x479294[_0x3604('0x43')]({'type':_0x18a00e,'name':_0x4939ef,'userId':_0xef5aab}),_0x20cebf[_0x1e9860][_0x3604('0xfc')][_0x3604('0x59')](_0x2ab424,0x1),_0x2ab424--);}_0x982fc1(_0x20cebf[_0x1e9860]);for(let _0x346fde=0x0;_0x346fde<_0x20cebf[_0x1e9860][_0x3604('0x11')][_0x3604('0x17')];_0x346fde++){const _0x5a7e40=_0x20cebf[_0x1e9860][_0x3604('0x11')][_0x346fde];if(!_0x24aa27[_0x3604('0x87')](_0x5a7e40))continue;const {group:_0x4207f8,type:_0x475a2c}=_0x5f312a(_0x5a7e40);if(_0x3604('0x11d')!=_0x4207f8||'insertion'!=_0x475a2c&&'deletion'!=_0x475a2c)continue;_0x20cebf[_0x1e9860][_0x3604('0x11')]['splice'](_0x346fde,0x1),_0x346fde--;const _0x376a3a=_0x479294['findIndex'](_0x5d9a35=>_0x5d9a35[_0x3604('0x94')]==_0x5a7e40);_0x376a3a>-0x1&&_0x479294[_0x3604('0x59')](_0x376a3a,0x1);}}function _0x5f312a(_0xfd196){const _0x9deae5=_0xfd196[_0x3604('0xd1')](':');return{'group':_0x9deae5[0x0],'type':_0x9deae5[0x1],'subType':_0x9deae5[_0x3604('0x17')]>=0x5?_0x9deae5[0x2]:null,'id':_0x9deae5[_0x3604('0x17')]<0x5?_0x9deae5[0x2]:_0x9deae5[0x3],'authorId':_0x9deae5[_0x3604('0x17')]<0x5?_0x9deae5[0x3]:_0x9deae5[0x4],'markerCount':0x6==_0x9deae5['length']?_0x9deae5[0x5]:null};}function _0x982fc1(_0x6b36bf){for(let _0x14c03f=0x0;_0x14c03f<_0x479294[_0x3604('0x17')];_0x14c03f++){if(_0x6b36bf[_0x3604('0x11b')]&&_0x3604('0x7b')==_0x479294[_0x14c03f][_0x3604('0x86')])return _0x6b36bf[_0x3604('0x46')]=_0x479294[_0x14c03f],void delete _0x6b36bf[_0x3604('0x11b')];if(!_0x6b36bf[_0x3604('0x11b')]&&!_0x6b36bf[_0x3604('0xcb')]&&_0x3604('0x9b')==_0x479294[_0x14c03f][_0x3604('0x86')])return void(_0x6b36bf[_0x3604('0xb7')]=_0x479294[_0x14c03f]);}}}[_0x3604('0x119')](_0x11bd10,_0x493344){let _0x40490a=0x0,_0x21ff8d=!0x1;const _0x35712a=new Map();for(const _0x2d16b6 of _0x11bd10)_0x2d16b6[_0x493344]?_0x21ff8d&&(_0x40490a++,_0x21ff8d=!0x1):(_0x40490a++,_0x21ff8d=!0x0),_0x35712a[_0x3604('0xfd')](_0x2d16b6['id'],_0x40490a);for(let _0x596fc6=0x0;_0x596fc6<_0x11bd10[_0x3604('0x17')];_0x596fc6++){if('isRemoved'==_0x493344&&_0x11bd10[_0x596fc6][_0x3604('0x11b')]||_0x3604('0x11b')==_0x493344&&_0x11bd10[_0x596fc6][_0x3604('0xcb')])continue;if(_0x3604('0xd')==_0x11bd10[_0x596fc6][_0x3604('0x86')]){_0x11bd10[_0x596fc6][_0x3604('0x30')]=0x0;continue;}const _0x51a97a=_0x35712a[_0x3604('0xa8')](_0x11bd10[_0x596fc6][_0x3604('0x33')]),_0xe98708=_0x35712a[_0x3604('0xa8')](_0x11bd10[_0x596fc6]['id']);_0x11bd10[_0x596fc6][_0x3604('0x30')]=_0x51a97a-_0xe98708;}}[_0x3604('0x62')](_0x2c4e78,_0x53ee45,_0x3fc628=!0x1){const _0x4d32c7=[];let _0x4d4aa5=this[_0x3604('0x38')]['getIndex'](_0x2c4e78),_0xff7685=this[_0x3604('0x38')][_0x3604('0x72')](_0x53ee45);for(-0x1==_0xff7685&&(_0xff7685=this[_0x3604('0x38')]['_revisions'][_0x3604('0x17')],_0x3fc628=!0x1);_0x4d4aa5<_0xff7685;)_0x4d32c7[_0x3604('0xe7')](this['repository'][_0x3604('0x9f')](_0x4d4aa5)),_0x4d4aa5++;return _0x3fc628&&_0x4d32c7[_0x3604('0xe7')](this[_0x3604('0x38')][_0x3604('0x9f')](_0x4d4aa5)),_0x4d32c7;}['_threeWayMerge'](_0x278f1e,_0x5e7db4,_0x531b65,_0x4b1c53){const _0x2f561a=this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xf6')];let _0x4c36ff=_0x5e7db4;for(;_0x278f1e[_0x4c36ff]&&_0x278f1e[_0x4c36ff][_0x3604('0x11b')];)_0x4c36ff++;let _0x3e528d=_0x4b1c53;for(;_0x531b65[_0x3e528d]&&_0x531b65[_0x3e528d]['isRemoved'];)_0x3e528d++;_0x485a0f(_0x278f1e,_0x5e7db4,_0x4c36ff),_0x485a0f(_0x531b65,_0x4b1c53,_0x3e528d);const _0x57354c=_0x531b65['slice'](_0x4b1c53,_0x3e528d)['concat'](_0x278f1e['slice'](_0x5e7db4,_0x4c36ff));return _0x57354c[_0x3604('0x8b')]((_0x5142c3,_0x1538a8)=>_0x5142c3['side']!=_0x1538a8[_0x3604('0xc8')]?_0x5142c3[_0x3604('0xc8')]-_0x1538a8['side']:_0x5142c3[_0x3604('0x91')]!=_0x1538a8[_0x3604('0x91')]?_0x5142c3['level']-_0x1538a8[_0x3604('0x91')]:_0x5142c3[_0x3604('0x30')]!=_0x1538a8[_0x3604('0x30')]?_0x1538a8[_0x3604('0x30')]-_0x5142c3[_0x3604('0x30')]:!!_0x5142c3[_0x3604('0x11b')]!=!!_0x1538a8[_0x3604('0x11b')]?-0x1==_0x5142c3[_0x3604('0xc8')]||0x0==_0x5142c3[_0x3604('0xc8')]?_0x5142c3[_0x3604('0x11b')]?-0x1:0x1:_0x5142c3[_0x3604('0x11b')]?0x1:-0x1:_0x5142c3[_0x3604('0xcd')]-_0x1538a8[_0x3604('0xcd')]),{'commonTape':_0x57354c,'iEnd':_0x4c36ff,'jEnd':_0x3e528d};function _0x485a0f(_0x4d0bcb,_0x20fb0a,_0x415ff7){let _0x7ab01a=-0x1,_0x521e23=Number['POSITIVE_INFINITY'],_0x4502a2=!0x0;for(let _0x2022a8=_0x20fb0a;_0x2022a8<_0x415ff7;_0x2022a8++)if(_0x2f561a[_0x3604('0xab')](_0x4d0bcb[_0x2022a8]['item'])||(_0x4502a2=!0x1),_0x4d0bcb[_0x2022a8]['item'][_0x3604('0x16')]<_0x20fb0a&&(_0x7ab01a=_0x2022a8),_0x4d0bcb[_0x2022a8][_0x3604('0x9c')]['endIndex']>=_0x415ff7){_0x521e23=_0x2022a8;break;}_0x4502a2&&(_0x7ab01a=_0x415ff7-0x1);for(let _0xab1d8d=_0x20fb0a;_0xab1d8d<_0x415ff7;_0xab1d8d++)_0x4d0bcb[_0xab1d8d]['side']=_0xab1d8d<=_0x7ab01a?-0x1:_0xab1d8d<_0x521e23?0x0:0x1,_0x4d0bcb[_0xab1d8d][_0x3604('0xcd')]=_0xab1d8d;let _0x430637=0x0;for(let _0x4e9591=_0x20fb0a;_0x4e9591<=_0x7ab01a;_0x4e9591++)0x0==_0x4d0bcb[_0x4e9591][_0x3604('0x30')]?_0x4d0bcb[_0x4e9591][_0x3604('0x91')]=_0x430637:(_0x430637++,_0x4d0bcb[_0x4e9591]['level']=_0x430637,_0x430637++);for(let _0x3e3fd8=_0x20fb0a;_0x3e3fd8<_0x415ff7;_0x3e3fd8++)0x0==_0x4d0bcb[_0x3e3fd8][_0x3604('0xc8')]&&(_0x4d0bcb[_0x3e3fd8][_0x3604('0x91')]=_0x430637);_0x430637=0x0;for(let _0x29326b=_0x415ff7-0x1;_0x29326b>=_0x521e23;_0x29326b--)0x0==_0x4d0bcb[_0x29326b][_0x3604('0x30')]?_0x4d0bcb[_0x29326b][_0x3604('0x91')]=_0x430637:(_0x430637--,_0x4d0bcb[_0x29326b]['level']=_0x430637,_0x430637--);}}['_fixObsoleteTags'](_0x39fa2b){const _0x2bccac=new Map(),_0x3b7aa0=this['editor'][_0x3604('0x51')][_0x3604('0xf6')];for(let _0x41408b=0x1;_0x41408b<_0x39fa2b[_0x3604('0x17')];_0x41408b++){let _0x1229bc,_0x6707f,_0x2ed925;const _0x132a99=_0x39fa2b[_0x41408b],_0xb9b784=_0x39fa2b[_0x41408b-0x1];if(_0x3604('0xd')==_0x132a99[_0x3604('0x86')])continue;if(_0x132a99[_0x3604('0x86')]!=_0xb9b784[_0x3604('0x86')])continue;if(!_0x3b7aa0[_0x3604('0x20')](_0xb9b784['item'])||_0x3b7aa0[_0x3604('0x10')](_0xb9b784['item']))continue;if(!_0x3b7aa0[_0x3604('0x20')](_0x132a99[_0x3604('0x9c')])||_0x3b7aa0[_0x3604('0x10')](_0x132a99[_0x3604('0x9c')]))continue;if((_0x39fa2b[_0x41408b][_0x3604('0x11b')]||_0x39fa2b[_0x41408b][_0x3604('0x46')])&&_0x39fa2b[_0x41408b-0x1][_0x3604('0xcb')])_0x1229bc=_0x39fa2b[_0x41408b],_0x6707f=_0x39fa2b[_0x41408b-0x1],_0x2ed925=_0x41408b-0x1;else{if(!_0x39fa2b[_0x41408b][_0x3604('0xcb')]||!_0x39fa2b[_0x41408b-0x1][_0x3604('0x11b')]&&!_0x39fa2b[_0x41408b-0x1][_0x3604('0x46')])continue;_0x1229bc=_0x39fa2b[_0x41408b-0x1],_0x6707f=_0x39fa2b[_0x41408b],_0x2ed925=_0x41408b;}const _0x5c8673=_0x1229bc['level']==_0x6707f[_0x3604('0x91')],_0x2cf9f2=Math[_0x3604('0x77')](_0x1229bc[_0x3604('0x91')])<Math[_0x3604('0x77')](_0x6707f['level'])&&0x0==_0x6707f[_0x3604('0x30')];(_0x5c8673||_0x2cf9f2)&&(_0x2bccac[_0x3604('0xfd')](_0x6707f['id'],_0x1229bc['id']),_0x39fa2b[_0x3604('0x59')](_0x2ed925,0x1),_0x41408b--,_0x1229bc['isAdded']=!0x1);}for(let _0x3bb04f=0x0;_0x3bb04f<_0x39fa2b[_0x3604('0x17')];_0x3bb04f++)_0x2bccac[_0x3604('0x87')](_0x39fa2b[_0x3bb04f][_0x3604('0x33')])&&(_0x39fa2b[_0x3bb04f][_0x3604('0x33')]=_0x2bccac[_0x3604('0xa8')](_0x39fa2b[_0x3bb04f][_0x3604('0x33')]));}[_0x3604('0x6b')](_0x1b1e3a){const _0x1c0555=new Set(_0x1b1e3a['map'](_0x1a580f=>_0x1a580f['id']));for(let _0x561b7f=0x0;_0x561b7f<_0x1b1e3a[_0x3604('0x17')];_0x561b7f++)_0x1c0555[_0x3604('0x87')](_0x1b1e3a[_0x561b7f][_0x3604('0x33')])||0x0==_0x1b1e3a[_0x561b7f]['distance']||(_0x1b1e3a[_0x561b7f][_0x3604('0x100')]=!0x0);return _0x1b1e3a[_0x3604('0x45')](_0x587182=>!_0x587182['isIncorrect']);}[_0x3604('0x10c')](_0x51d0e0){const _0x2249cf=new Set();for(let _0x3a45d1=0x0;_0x3a45d1<_0x51d0e0[_0x3604('0x17')];_0x3a45d1++){if(_0x2249cf[_0x3604('0x87')](_0x51d0e0[_0x3a45d1]['id'])&&_0x51d0e0[_0x3a45d1][_0x3604('0xcb')]&&(_0x51d0e0[_0x3a45d1]['isIncorrect']=!0x0),_0x51d0e0[_0x3a45d1][_0x3604('0x100')])continue;if(0x0==_0x51d0e0[_0x3a45d1][_0x3604('0x30')])continue;if(_0x3604('0xc3')!=_0x51d0e0[_0x3a45d1]['type'])continue;if(null==_0x51d0e0[_0x3a45d1][_0x3604('0x33')])continue;let _0x476c91=_0x3a45d1+0x1,_0x36367f=0x0;for(;_0x51d0e0[_0x476c91]['id']!=_0x51d0e0[_0x3a45d1][_0x3604('0x33')];)_0x3604('0xc3')==_0x51d0e0[_0x476c91][_0x3604('0x86')]?_0x36367f++:_0x3604('0x7e')==_0x51d0e0[_0x476c91][_0x3604('0x86')]&&_0x36367f--,_0x476c91++;if(0x0!=_0x36367f){if(_0x51d0e0[_0x3a45d1][_0x3604('0xcb')])_0x51d0e0[_0x3a45d1][_0x3604('0x100')]=!0x0;else for(;_0x476c91!=_0x3a45d1;)_0x51d0e0[_0x476c91][_0x3604('0xcb')]&&0x0!=_0x51d0e0[_0x476c91][_0x3604('0x30')]&&(_0x51d0e0[_0x476c91]['isIncorrect']=!0x0,_0x2249cf[_0x3604('0xc6')](_0x51d0e0[_0x476c91][_0x3604('0x33')])),_0x476c91--;}}return _0x51d0e0[_0x3604('0x45')](_0x2976a1=>!_0x2976a1['isIncorrect']);}[_0x3604('0x68')](_0xf9277b){const _0x1e435e=this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xf6')];for(let _0x337da6=0x0;_0x337da6<_0xf9277b['length'];_0x337da6++){if(!(_0xf9277b[_0x337da6][_0x3604('0x11b')]||_0xf9277b[_0x337da6][_0x3604('0x46')]||_0xf9277b[_0x337da6][_0x3604('0xcb')]||_0xf9277b[_0x337da6][_0x3604('0xb7')]))continue;if(0x0==_0xf9277b[_0x337da6][_0x3604('0x30')])continue;const _0x5cf2c0=_0xf9277b[_0x337da6][_0x3604('0x9c')];_0x1e435e[_0x3604('0x20')](_0x5cf2c0)||_0x1e435e['isLimit'](_0x5cf2c0)||(_0xf9277b[_0x337da6][_0x3604('0x11b')]&&delete _0xf9277b[_0x337da6][_0x3604('0x11b')],_0xf9277b[_0x337da6][_0x3604('0x46')]&&delete _0xf9277b[_0x337da6]['isAddSuggestion'],_0xf9277b[_0x337da6][_0x3604('0xb7')]&&delete _0xf9277b[_0x337da6][_0x3604('0xb7')],_0xf9277b[_0x337da6][_0x3604('0xcb')]&&(_0xf9277b[_0x337da6][_0x3604('0x100')]=!0x0));}return _0xf9277b['filter'](_0x4977cf=>!_0x4977cf[_0x3604('0x100')]);}[_0x3604('0x27')](_0x152345,_0x492bb9,_0x5c14f3){const _0x296f6b=new _0x31ed5d(),_0x53a14=[],_0x23ae9a=new Map(),_0x5da321=this[_0x3604('0xf7')][_0x3604('0x51')],_0x18d6d6=_0x5da321[_0x3604('0xf6')],_0x42eaf0=[_0x296f6b],_0x2cdc02={},_0x5e3051={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xf8378a=null;const _0x119d43=[0x0];for(let _0x3f23e6=0x0;_0x3f23e6<_0x152345[_0x3604('0x17')];_0x3f23e6++){let _0x439386,_0x15e04e;if(_0x3604('0xc3')===_0x152345[_0x3f23e6]['type']){_0x439386=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43);const _0x5678e9=new _0x2bb520(_0x152345[_0x3f23e6]['item'][_0x3604('0x94')],_0x152345[_0x3f23e6][_0x3604('0x9c')]['getAttributes']());_0x42eaf0[0x0][_0x3604('0x4c')](_0x5678e9),_0x119d43[_0x3604('0xe7')](0x0),_0x42eaf0[_0x3604('0x43')](_0x5678e9),_0x15e04e=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43),_0xf8378a=null;}else{if(_0x3604('0x7e')===_0x152345[_0x3f23e6][_0x3604('0x86')])_0x42eaf0[_0x3604('0x13')](),_0x439386=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43),_0x119d43[_0x3604('0xb9')](),_0x119d43[_0x119d43[_0x3604('0x17')]-0x1]++,_0x15e04e=_0x5da321['createPositionFromPath'](_0x296f6b,_0x119d43),_0xf8378a=null;else{if(_0x439386=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43),_0xf8378a&&_0x9bc52f(_0xf8378a,_0x152345[_0x3f23e6][_0x3604('0x9c')]))_0xf8378a['_data']+=_0x152345[_0x3f23e6][_0x3604('0x9c')]['data'];else{const _0x4cc8a2=new _0xc9bffc(_0x152345[_0x3f23e6]['item'][_0x3604('0xdd')],_0x152345[_0x3f23e6]['item'][_0x3604('0xb4')]());_0x42eaf0[0x0]['_appendChild'](_0x4cc8a2),_0xf8378a=_0x4cc8a2;}_0x119d43[_0x119d43[_0x3604('0x17')]-0x1]+=_0x152345[_0x3f23e6][_0x3604('0x9c')][_0x3604('0xdf')],_0x15e04e=_0x5da321['createPositionFromPath'](_0x296f6b,_0x119d43);}}for(const _0x15b429 of _0x152345[_0x3f23e6][_0x3604('0xfc')])_0x23ae9a[_0x3604('0xfd')](_0x15b429,{'start':_0x439386,'end':null});_0x1132df('isRemoveSuggestion',_0x3f23e6,_0x439386,_0x15e04e),_0x1132df(_0x3604('0x46'),_0x3f23e6,_0x439386,_0x15e04e),_0x1132df('isRemoved',_0x3f23e6,_0x439386,_0x15e04e),_0x1132df('isAdded',_0x3f23e6,_0x439386,_0x15e04e);for(const _0x376b54 of _0x152345[_0x3f23e6][_0x3604('0x11')]){_0x23ae9a['get'](_0x376b54)[_0x3604('0x1d')]=_0x15e04e;}}for(const [_0x5373c1,_0x802b44]of _0x23ae9a){const _0x5236d5=this[_0x3604('0xf7')][_0x3604('0x51')]['createRange'](_0x802b44[_0x3604('0x10d')],_0x802b44[_0x3604('0x1d')]);_0x296f6b[_0x3604('0xc1')][_0x3604('0xfd')](_0x5373c1,_0x5236d5);}return _0x53a14[_0x3604('0x8b')]((_0x3fc2bf,_0x5bc1fd)=>{const _0x476ef4=_0x296f6b['markers']['get']('revision:'+_0x3fc2bf['id']),_0x425f38=_0x296f6b[_0x3604('0xc1')][_0x3604('0xa8')](_0x3604('0xb2')+_0x5bc1fd['id']);return _0x476ef4[_0x3604('0x10d')][_0x3604('0xc0')](_0x425f38[_0x3604('0x10d')])?-0x1:_0x476ef4[_0x3604('0x10d')][_0x3604('0xde')](_0x425f38[_0x3604('0x10d')])?0x1:_0x476ef4['end'][_0x3604('0xc0')](_0x425f38[_0x3604('0x1d')])?-0x1:_0x476ef4[_0x3604('0x1d')][_0x3604('0xde')](_0x425f38[_0x3604('0x1d')])?0x1:'add'===_0x3fc2bf[_0x3604('0x86')]?-0x1:0x1;}),{'root':_0x296f6b,'changes':_0x53a14};function _0x1132df(_0x551b97,_0x2e6fd2,_0x30097e,_0x2bca10){const _0x54d0c5=!!_0x152345[_0x2e6fd2][_0x551b97],_0x517d40=_0x54d0c5?_0x152345[_0x2e6fd2][_0x551b97][_0x3604('0x6')]:null,_0x2e1074=_0x2e6fd2===_0x152345[_0x3604('0x17')]-0x1,_0x20e233=_0x5e3051[_0x551b97][0x0],_0x4b61b4=_0x18d6d6[_0x3604('0x118')](_0x152345[_0x2e6fd2][_0x3604('0x9c')]);!_0x2cdc02[_0x551b97]&&_0x54d0c5?_0x2cdc02[_0x551b97]={'start':_0x30097e,'tapeItem':_0x152345[_0x2e6fd2],'userId':_0x517d40,'type':_0x551b97}:_0x2cdc02[_0x551b97]&&!_0x54d0c5?(_0x2cdc02[_0x551b97][_0x3604('0x1d')]=_0x30097e,_0x1f098e(_0x2cdc02[_0x551b97]),_0x2cdc02[_0x551b97]=null):_0x2cdc02[_0x551b97]&&_0x54d0c5&&_0x2cdc02[_0x551b97]['userId']!==_0x517d40&&(_0x2cdc02[_0x551b97]['end']=_0x30097e,_0x20e233&&_0x20e233[_0x3604('0x6')]===_0x2cdc02[_0x551b97]['userId']||_0x1f098e(_0x2cdc02[_0x551b97]),_0x2cdc02[_0x551b97]={'start':_0x30097e,'tapeItem':_0x152345[_0x2e6fd2],'userId':_0x517d40,'type':_0x551b97}),_0x2cdc02[_0x551b97]&&_0x4b61b4&&(_0x3604('0xc3')!==_0x152345[_0x2e6fd2][_0x3604('0x86')]||_0x20e233&&_0x20e233[_0x3604('0x6')]===_0x517d40||_0x5e3051[_0x551b97]['unshift']({'userId':_0x517d40,'object':_0x152345[_0x2e6fd2]['item'],'change':_0x2cdc02[_0x551b97]}),_0x3604('0x7e')===_0x152345[_0x2e6fd2][_0x3604('0x86')]&&_0x20e233&&_0x20e233[_0x3604('0x28')]===_0x152345[_0x2e6fd2][_0x3604('0x9c')]&&(_0x5e3051[_0x551b97][_0x3604('0x13')](),_0x2cdc02[_0x551b97]=_0x20e233['change'])),_0x2cdc02[_0x551b97]&&_0x2e1074&&(_0x2cdc02[_0x551b97][_0x3604('0x1d')]=_0x2bca10,_0x1f098e(_0x2cdc02[_0x551b97]),_0x2cdc02[_0x551b97]=null);}function _0x1f098e({start:_0x5d0e93,end:_0x504105,tapeItem:_0x5ee90a,userId:_0x49c54f,type:_0x354f37}){const _0x1822f0=_0x5ee90a['item'],_0x58d852=_0x5da321['schema']['isBlock'](_0x1822f0)&&!_0x5da321['schema'][_0x3604('0x10')](_0x1822f0),_0x1c8f13=_0x5d0e93['nodeAfter']==_0x504105[_0x3604('0x1f')]&&_0x504105[_0x3604('0xa3')];if(_0x58d852&&_0x1c8f13)return;const _0x209378=_0x5da321['createRange'](_0x5d0e93,_0x504105),_0x424807=_0x492bb9['get'](_0x49c54f),_0x1b7196=new _0x58e1bf({'author':_0x424807,'type':'isAdded'==_0x354f37||'isAddSuggestion'==_0x354f37?'add':_0x3604('0xc7'),'data':{'isSuggestion':'isAddSuggestion'==_0x354f37||_0x3604('0xb7')==_0x354f37},'createdAt':new Date(),'rootName':_0x5c14f3});_0x53a14[_0x3604('0xe7')](_0x1b7196),_0x296f6b[_0x3604('0xc1')][_0x3604('0xfd')](_0x3604('0xb2')+_0x1b7196['id'],_0x209378);}function _0x9bc52f(_0x3a2487,_0x31f14a){const _0x3c6105=_0x3a2487[_0x3604('0xb4')](),_0x46e932=_0x31f14a['getAttributes']();for(const _0x18a8fa of _0x3c6105){if(_0x18a8fa[0x1]!==_0x31f14a[_0x3604('0x102')](_0x18a8fa[0x0]))return!0x1;_0x46e932[_0x3604('0x2d')]();}return _0x46e932[_0x3604('0x2d')]()[_0x3604('0x34')];}}[_0x3604('0xd6')](){this['editor']['conversion'][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xaf')]({'view':_0x3604('0x10a')}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0x48'))[_0x3604('0x53')]({'model':'revision','view':_0x34ea94=>{const _0x5d1a07=_0x34ea94['markerName'][_0x3604('0xd1')](':')[0x1],_0x26728d=this['_getChangeFromId'](_0x5d1a07);if(!_0x26728d)return null;const _0x3b12bf=_0x3604('0xc6')==_0x26728d['type']?_0x3604('0x7b'):_0x3604('0x9b'),_0x2fd9d2=[_0x3604('0x76'),_0x3604('0x99')+_0x3b12bf];return _0x26728d[_0x3604('0xdd')]['isSuggestion']&&_0x2fd9d2[_0x3604('0xe7')](_0x3604('0x99')+_0x3b12bf+_0x3604('0x83')),this[_0x3604('0xeb')]==_0x26728d&&_0x2fd9d2[_0x3604('0xe7')]('ck-suggestion-marker--active'),{'classes':_0x2fd9d2,'attributes':{'data-change-id':_0x5d1a07}};}}),this['editor'][_0x3604('0xbd')]['for'](_0x3604('0xa2'))[_0x3604('0xc6')](_0x192f34=>{_0x192f34['on'](_0x3604('0xf2'),(_0x3ba67f,_0x561d23,_0x5d1da5)=>{const _0x1a7ca7=_0x561d23[_0x3604('0x115')]['getChild'](0x0);if(!_0x1a7ca7||!_0x1a7ca7['is']('element','code'))return;if(!_0x5d1da5[_0x3604('0x101')]['consume'](_0x1a7ca7,{'attributes':[_0x3604('0x36'),'vid_end']}))return;const _0x264239=_0x561d23[_0x3604('0x117')][_0x3604('0x10d')][_0x3604('0x5a')];_0x5d1da5[_0x3604('0x6e')][_0x3604('0x31')](_0x3604('0x36'),_0x1a7ca7[_0x3604('0x102')]('vid_start'),_0x264239),_0x5d1da5['writer'][_0x3604('0x31')](_0x3604('0x1a'),_0x1a7ca7[_0x3604('0x102')](_0x3604('0x1a')),_0x264239);},{'priority':_0x3604('0x50')});}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xc6')](_0x1280ba=>{_0x1280ba['on'](_0x3604('0x3d'),(_0x195c08,_0x26f897,_0x401a09)=>{if(!_0x401a09[_0x3604('0x101')][_0x3604('0x104')](_0x26f897[_0x3604('0x115')],{'attributes':['vid_start',_0x3604('0x1a')]}))return;if(_0x26f897['modelRange'][_0x3604('0x4e')])return;const _0x3b379a=_0x26f897[_0x3604('0x117')][_0x3604('0x10d')][_0x3604('0x5a')];_0x3b379a['hasAttribute'](_0x3604('0x36'))||_0x3b379a[_0x3604('0xd0')](_0x3604('0x6c'))||(_0x401a09[_0x3604('0x6e')][_0x3604('0x31')]('vid_start',_0x26f897[_0x3604('0x115')][_0x3604('0x102')](_0x3604('0x36')),_0x3b379a),_0x401a09['writer'][_0x3604('0x31')]('vid_end',_0x26f897['viewItem'][_0x3604('0x102')]('vid_end'),_0x3b379a));},{'priority':_0x3604('0x50')});}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0x42')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x3604('0x6c'),'value':_0x59f98f=>_0x59f98f[_0x3604('0x102')](_0x3604('0x6c'))}}),this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xf6')]['on']('checkAttribute',(_0x20d9e3,[,_0x5e5a3c])=>{[_0x3604('0x36'),_0x3604('0x1a'),_0x3604('0x6c')]['includes'](_0x5e5a3c)&&(_0x20d9e3[_0x3604('0xe2')]=!0x0,_0x20d9e3[_0x3604('0x74')]());},{'priority':_0x3604('0xe5')}),this['editor']['conversion'][_0x3604('0xa7')](_0x3604('0xa9'))['add'](_0xfa0a94=>{_0xfa0a94['on']('attribute:vid',(_0xe1f737,_0x383dcb,_0x3aeb17)=>{if('\x20'!=_0x383dcb[_0x3604('0x9c')][_0x3604('0xdd')]||_0x383dcb['item'][_0x3604('0x1f')][_0x3604('0x9a')]>0x1)return;if(!_0x3aeb17[_0x3604('0x101')]['consume'](_0x383dcb[_0x3604('0x9c')],_0xe1f737[_0x3604('0x94')]))return;const _0x361a80=_0x3aeb17[_0x3604('0x6e')],_0x1c2260=_0x3aeb17['mapper'][_0x3604('0x5')](_0x383dcb['range']);_0x361a80['wrap'](_0x1c2260,_0x361a80[_0x3604('0x121')](_0x3604('0x106')));});}),this[_0x3604('0xf7')]['conversion'][_0x3604('0xa7')](_0x3604('0xa9'))['markerToData']({'model':_0x3604('0x10a')}),this['editor'][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0xed'),function(_0x56f1e4){const _0x356ad3=_0x56f1e4['plugins'][_0x3604('0xa8')](_0x3604('0x113'));return(_0x272418,_0x4cc8bd,_0xb49a9a)=>{const _0x21e43d=_0x4cc8bd[_0x3604('0xba')]['split'](':')[0x1],_0x39a766=_0x356ad3['_getChangeFromId'](_0x21e43d);if(!_0x39a766)return null;const _0x35e85b='add'==_0x39a766[_0x3604('0x86')]?_0x3604('0xd1'):_0x3604('0xa5');if(!_0xb49a9a[_0x3604('0x101')]['test'](_0x4cc8bd[_0x3604('0x82')],_0x272418[_0x3604('0x94')]))return;const _0x48bf9f=_0x4cc8bd[_0x3604('0x82')][_0x3604('0x8d')](),_0x436185=_0x4cc8bd[_0x3604('0x82')][_0x3604('0x10d')],_0x2b5c7e=_0x56f1e4[_0x3604('0x51')][_0x3604('0xf6')];let _0x1559fa=null,_0x36e767=null,_0x42014f=!0x1,_0x545c6b=!0x1;for(const _0x3de5f1 of _0x48bf9f){const _0x1b19fd=_0x3de5f1['item'];_0x42014f=_0x42014f||_0x2b5c7e[_0x3604('0xc')](_0x1b19fd);const _0x4a0dca=_0xb49a9a[_0x3604('0x7c')][_0x3604('0x80')](_0x1b19fd);if(_0x4a0dca&&_0x4a0dca[_0x3604('0xa0')]('addHighlight'))return;_0x3604('0x7e')==_0x3de5f1[_0x3604('0x86')]&&(_0x2b5c7e[_0x3604('0x20')](_0x1b19fd)&&!_0x2b5c7e[_0x3604('0x10')](_0x1b19fd)&&(_0x1b19fd[_0x3604('0x8c')]||_0x436185[_0x3604('0x9')]?_0x1559fa&&_0x1559fa[_0x3604('0x1f')]==_0x1b19fd||(_0x1559fa=_0x1b19fd,_0x2a300c(_0x3de5f1['previousPosition']),_0x545c6b=!0x0):_0x36e767=_0x36e767||_0x3de5f1[_0x3604('0x47')]));}function _0x2a300c(_0x1f3e0e){const _0x3c1c99=_0xb49a9a[_0x3604('0x6e')]['createUIElement'](_0x3604('0x106'),{'class':_0x3604('0x99')+_0x35e85b}),_0x40b9f2=_0xb49a9a[_0x3604('0x7c')]['toViewPosition'](_0x1f3e0e);_0x39a766[_0x3604('0xdd')][_0x3604('0xfb')]&&_0xb49a9a[_0x3604('0x6e')][_0x3604('0x89')]('ck-suggestion-marker-'+_0x35e85b+_0x3604('0x83'),_0x3c1c99),_0x356ad3['activeChange']==_0x39a766&&_0xb49a9a[_0x3604('0x6e')][_0x3604('0x89')](_0x3604('0xe8'),_0x3c1c99),_0xb49a9a[_0x3604('0x6e')][_0x3604('0x60')](_0x40b9f2,_0x3c1c99),_0xb49a9a[_0x3604('0x7c')][_0x3604('0xd3')](_0x3c1c99,_0x4cc8bd[_0x3604('0xba')]);}_0x42014f||_0x545c6b||!_0x36e767||_0x2a300c(_0x36e767);};}(this[_0x3604('0xf7')]),{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0xee')]['downcastDispatcher']['on'](_0x3604('0x8e'),(_0x345189,_0x12d043,_0x229f73)=>{const _0x349bfb=_0x229f73[_0x3604('0x7c')][_0x3604('0xac')](_0x12d043[_0x3604('0xba')]);if(_0x349bfb)for(const _0x1ea3db of _0x349bfb)(_0x1ea3db[_0x3604('0xa')](_0x3604('0x11f'))||_0x1ea3db[_0x3604('0xa')]('ck-suggestion-marker-merge'))&&(_0x229f73[_0x3604('0x7c')][_0x3604('0xdc')](_0x1ea3db,_0x12d043[_0x3604('0xba')]),_0x229f73['writer'][_0x3604('0xc7')](_0x1ea3db));},{'priority':_0x3604('0x75')}),this['editor'][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0xed'),(_0x69eace,_0x31ae1e,_0x3d6e56)=>{const _0x257a1c=_0x31ae1e['markerName']['split'](':')[0x1],_0x39eb7c=this[_0x3604('0x2b')](_0x257a1c);if(!_0x39eb7c)return null;const _0x3c4ad6=_0x3604('0xc6')==_0x39eb7c['type']?_0x3604('0xd1'):_0x3604('0xa5');if(_0x3d6e56['consumable'][_0x3604('0xf0')](_0x31ae1e['markerRange'],_0x69eace[_0x3604('0x94')]))for(const _0xfd0a80 of _0x31ae1e['markerRange'][_0x3604('0x26')]()){if(!_0xfd0a80['is']('element',_0x3604('0x73')))continue;const _0x5b035d=_0x3d6e56[_0x3604('0x6e')][_0x3604('0xd2')]('span',{'class':_0x3604('0x99')+_0x3c4ad6}),_0x48fabe=_0x3d6e56[_0x3604('0x7c')]['toViewPosition'](this[_0x3604('0xf7')]['model'][_0x3604('0x81')](_0xfd0a80));_0x39eb7c[_0x3604('0xdd')]['isSuggestion']&&_0x3d6e56[_0x3604('0x6e')][_0x3604('0x89')](_0x3604('0x99')+_0x3c4ad6+_0x3604('0x83'),_0x5b035d),this[_0x3604('0xeb')]==_0x39eb7c&&_0x3d6e56['writer'][_0x3604('0x89')]('ck-suggestion-marker--active',_0x5b035d),_0x3d6e56[_0x3604('0x6e')][_0x3604('0x60')](_0x48fabe,_0x5b035d),_0x3d6e56[_0x3604('0x7c')]['bindElementToMarker'](_0x5b035d,_0x31ae1e[_0x3604('0xba')]);}},{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0x108')]['on'](_0x3604('0xb8'),()=>{this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x4b')]['change'](_0x46f25d=>{for(const _0x195178 of this['editor'][_0x3604('0x51')][_0x3604('0x108')]['getRootNames']()){const _0x330bd4=this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0x108')][_0x3604('0x7a')](_0x195178),_0x243053=this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x4b')][_0x3604('0x108')]['getRoot'](_0x195178);if(_0x243053){const _0x1cf4ec=_0x330bd4[_0x3604('0x102')]('revisionHistoryAttachChange');if(_0x46f25d[_0x3604('0x111')](_0x3604('0xcf'),_0x243053),_0x46f25d[_0x3604('0xce')](_0x3604('0xef'),_0x243053),_0x46f25d[_0x3604('0xce')](_0x3604('0x22'),_0x243053),_0x46f25d['removeClass'](_0x3604('0x49'),_0x243053),_0x1cf4ec){const _0xee1edd=this[_0x3604('0x2b')](_0x1cf4ec);if(!_0xee1edd)return null;_0x46f25d[_0x3604('0x31')]('data-change-id',_0x1cf4ec,_0x243053),_0x46f25d[_0x3604('0x89')]('ck-revision-history-root-'+_0xee1edd['type'],_0x243053),this[_0x3604('0xeb')]==_0xee1edd&&_0x46f25d['addClass'](_0x3604('0x49'),_0x243053);}}}});}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xaf')]({'view':_0x3604('0x7f'),'model':_0x31a041=>_0x3604('0x56')+_0x31a041,'converterPriority':_0x3604('0xe5')}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xaf')]({'view':'suggestion','model':_0x24a4ba=>_0x3604('0x57')+_0x24a4ba,'converterPriority':_0x3604('0xe5')}),this[_0x3604('0xf7')][_0x3604('0xbd')]['for'](_0x3604('0xa9'))['markerToData']({'model':_0x3604('0x11d'),'view':_0x4e4966=>({'name':'suggestion:'+_0x4e4966,'group':_0x3604('0x11d')}),'converterPriority':_0x3604('0xe5')}),this['editor'][_0x3604('0xbd')]['for']('editingDowncast')['markerToHighlight']({'model':_0x3604('0x11d'),'view':_0x20c00e=>{const _0x54b851=_0x20c00e[_0x3604('0xba')][_0x3604('0xd1')](':')[0x1];return _0x3604('0x7b')!=_0x54b851&&'deletion'!=_0x54b851?null:{'classes':[_0x3604('0x25'),_0x3604('0x10f')+_0x54b851]};}}),this['editor'][_0x3604('0xee')]['downcastDispatcher']['on'](_0x3604('0x93'),et(this[_0x3604('0xf7')],'merge'),{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0x2f'),et(this['editor'],_0x3604('0xd1')),{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0x1'),(_0xf1aae7,_0x15ee34,_0x39c866)=>{const _0x2b3baa=_0x39c866['mapper'][_0x3604('0xac')](_0x15ee34[_0x3604('0xba')]);if(_0x2b3baa)for(const _0x21c68e of _0x2b3baa)_0x21c68e['is']('uiElement')&&(_0x39c866[_0x3604('0x7c')]['unbindElementFromMarkerName'](_0x21c68e,_0x15ee34[_0x3604('0xba')]),_0x39c866['writer'][_0x3604('0xc7')](_0x21c68e));},{'priority':_0x3604('0x75')});}[_0x3604('0x2b')](_0x5510a3){return this[_0x3604('0x15')][_0x3604('0xa8')](_0x5510a3);}[_0x3604('0x90')](_0x40f617){return this['_changeView']&&this[_0x3604('0x5d')]['destroy'](),this[_0x3604('0x5d')]=new _0x470938(this[_0x3604('0xf7')][_0x3604('0xd4')],_0x40f617),this[_0x3604('0x5d')];}[_0x3604('0xc5')](){this['editor'][_0x3604('0x51')][_0x3604('0x108')][_0x3604('0x116')][_0x3604('0xa1')](_0x3604('0x10a')),this['on'](_0x3604('0x39'),(_0x4acee8,_0x460faf,_0x5ed5a5,_0xe2751b)=>{_0xe2751b&&this[_0x3604('0xec')][_0x3604('0xc7')](_0xe2751b),_0x5ed5a5&&(this[_0x3604('0xec')][_0x3604('0xc6')]({'view':_0x5ed5a5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x291558=this[_0x3604('0xf7')]['editing'],_0x1dea4e=this[_0x3604('0x2b')](_0x5ed5a5['changeId']);let _0x1ec111;if(_0x1dea4e[_0x3604('0xdd')][_0x3604('0x79')]){const _0x4c4a00=_0x291558[_0x3604('0x4b')]['getDomRoot'](_0x1dea4e[_0x3604('0x2e')]);_0x1ec111=Array[_0x3604('0x12')](_0x4c4a00[_0x3604('0x32')]());}else{const _0x1a6d4e=this[_0x3604('0xf7')]['model'][_0x3604('0xc1')]['get']('revision:'+_0x5ed5a5['changeId']);_0x1ec111=Array['from'](_0x291558[_0x3604('0x7c')][_0x3604('0xac')](_0x1a6d4e['name']))[_0x3604('0x97')](_0x2bc14f=>_0x291558[_0x3604('0x4b')]['domConverter'][_0x3604('0x5c')](_0x2bc14f))[_0x3604('0x97')](_0x2a6f00=>Array[_0x3604('0x12')](_0x2a6f00[_0x3604('0x32')]()))[_0x3604('0xbb')]();}if(!this[_0x3604('0x14')])return _0x1ec111[0x0];return _0x1ec111[_0x3604('0x40')](_0x135944=>_0x135944['top']-0x3<=this[_0x3604('0x14')]['y']&&_0x135944[_0x3604('0x105')]+0x3>=this[_0x3604('0x14')]['y']&&_0x135944[_0x3604('0x54')]-0x3<=this[_0x3604('0x14')]['x']&&_0x135944[_0x3604('0xc9')]+0x3>=this[_0x3604('0x14')]['x'])||_0x1ec111[0x0];}}}),this[_0x3604('0xec')]['showStack'](_0x3604('0xea')));}),this['on'](_0x3604('0xda'),(_0x417eac,_0x49b771,_0x18cfc8,_0x434461)=>{this[_0x3604('0x107')]=_0x18cfc8?this['_getViewForChange'](_0x18cfc8):null,this['editor'][_0x3604('0x51')][_0x3604('0xb8')](()=>{const _0x4f5b3a=this[_0x3604('0xf7')][_0x3604('0xee')];_0x434461&&(_0x434461['data'][_0x3604('0x79')]?_0x4f5b3a[_0x3604('0x4b')][_0x3604('0xb8')](_0x14da6e=>{_0x14da6e['removeClass'](_0x3604('0x49'),_0x4f5b3a['view']['document']['getRoot'](_0x434461[_0x3604('0x2e')]));}):_0x4f5b3a[_0x3604('0x24')](_0x3604('0xb2')+_0x434461['id'])),_0x18cfc8&&(_0x18cfc8[_0x3604('0xdd')][_0x3604('0x79')]?_0x4f5b3a[_0x3604('0x4b')][_0x3604('0xb8')](_0xe78b1b=>{_0xe78b1b[_0x3604('0x89')]('ck-revision-history-root--active',_0x4f5b3a[_0x3604('0x4b')][_0x3604('0x108')][_0x3604('0x7a')](_0x18cfc8[_0x3604('0x2e')]));}):_0x4f5b3a['reconvertMarker'](_0x3604('0xb2')+_0x18cfc8['id']));});}),this[_0x3604('0x4a')](this[_0x3604('0xf7')]['editing']['view'][_0x3604('0x108')],_0x3604('0x4'),(_0xa845a,_0x5ef21e)=>{if(this[_0x3604('0xeb')])return;const _0x4b17d8=this['_findChangeIdFromDomTarget'](_0x5ef21e['target']),_0x3cfe0d=this[_0x3604('0x15')]['get'](_0x4b17d8);_0x3cfe0d?(this[_0x3604('0x14')]={'x':_0x5ef21e[_0x3604('0x3a')]['x'],'y':_0x5ef21e[_0x3604('0x3a')]['y']},this[_0x3604('0x107')]=this[_0x3604('0x90')](_0x3cfe0d)):(this[_0x3604('0x14')]=null,this[_0x3604('0x107')]=null);}),this[_0x3604('0x4a')](this['editor'][_0x3604('0xee')][_0x3604('0x4b')][_0x3604('0x108')],_0x3604('0xfe'),(_0x2b9c45,_0x415686)=>{const _0x162389=this[_0x3604('0x3b')](_0x415686[_0x3604('0xf4')]),_0x1ecc18=this[_0x3604('0x15')][_0x3604('0xa8')](_0x162389);_0x1ecc18?(this['_activeViewTarget']={'x':_0x415686[_0x3604('0x3a')]['x'],'y':_0x415686[_0x3604('0x3a')]['y']},_0x1ecc18===this['activeChange']?this[_0x3604('0xec')][_0x3604('0xdb')]():this[_0x3604('0xeb')]=_0x1ecc18):(this['_activeViewTarget']=null,this['activeChange']=null);});}[_0x3604('0x3b')](_0x2308ca){do{const _0x45fa6a=_0x2308ca[_0x3604('0x102')](_0x3604('0xcf'));if(_0x45fa6a)return _0x45fa6a;_0x2308ca=_0x2308ca[_0x3604('0x1f')];}while(_0x2308ca);return null;}[_0x3604('0x6d')](){this[_0x3604('0xf7')][_0x3604('0x51')]['change'](_0x569012=>{for(const _0x592f2a of this[_0x3604('0xf7')]['model'][_0x3604('0xc1')])_0x569012[_0x3604('0x55')](_0x592f2a);});}}function et(_0x33d187,_0x3323c2){return(_0xdb976d,_0x4df198,_0x125774)=>{if(!_0x125774['consumable'][_0x3604('0xf0')](_0x4df198[_0x3604('0x82')],_0xdb976d[_0x3604('0x94')]))return;const _0x5234e7=_0x4df198['markerRange'][_0x3604('0x8d')](),_0x2cfc29=_0x4df198[_0x3604('0x82')]['start'],_0x57f495=_0x33d187['model'][_0x3604('0xf6')];let _0x328378=null,_0x5a4a05=null,_0x22fbc6=!0x1,_0x289626=!0x1;for(const _0x3f8ec8 of _0x5234e7){const _0x26f7d7=_0x3f8ec8[_0x3604('0x9c')];_0x22fbc6=_0x22fbc6||_0x57f495[_0x3604('0xc')](_0x26f7d7);const _0x4d9fad=_0x125774['mapper'][_0x3604('0x80')](_0x26f7d7);if(_0x4d9fad&&_0x4d9fad[_0x3604('0xa0')](_0x3604('0x29')))return;'elementEnd'==_0x3f8ec8['type']&&(_0x57f495[_0x3604('0x20')](_0x26f7d7)&&!_0x57f495['isLimit'](_0x26f7d7)&&(_0x26f7d7[_0x3604('0x8c')]||_0x2cfc29[_0x3604('0x9')]?_0x328378&&_0x328378['parent']==_0x26f7d7||(_0x328378=_0x26f7d7,_0x243423(_0x3f8ec8[_0x3604('0x47')]),_0x289626=!0x0):_0x5a4a05=_0x5a4a05||_0x3f8ec8[_0x3604('0x47')]));}function _0x243423(_0x7c68af){const _0x12f274=_0x125774[_0x3604('0x7c')][_0x3604('0x66')](_0x7c68af),_0x4836e4=_0x125774[_0x3604('0x6e')][_0x3604('0xd2')](_0x3604('0x106'),{'class':_0x3604('0x10f')+_0x3323c2});_0x125774[_0x3604('0x6e')][_0x3604('0x60')](_0x12f274,_0x4836e4),_0x125774['mapper'][_0x3604('0xd3')](_0x4836e4,_0x4df198[_0x3604('0xba')]);}_0x22fbc6||_0x289626||!_0x5a4a05||_0x243423(_0x5a4a05);};}export class RestoreRevisionCommand extends _0x524429{constructor(_0x1a1d89){super(_0x1a1d89);const _0x48ee01=_0x1a1d89['plugins'][_0x3604('0xa8')](d);this[_0x3604('0xe0')]=!0x1,this[_0x3604('0x4a')](_0x48ee01,_0x3604('0x18'),()=>this[_0x3604('0x11c')]()),this['listenTo'](_0x48ee01,'change:isEnabled',()=>this[_0x3604('0x11c')]());}['execute'](){const _0xaccd1e=this[_0x3604('0xf7')],_0x46a5b4=_0xaccd1e[_0x3604('0x8f')]['get'](d),_0x4d7d37=_0x46a5b4['isReady']?_0x46a5b4[_0x3604('0xe3')][_0x3604('0xe6')]:null;_0xaccd1e['config'][_0x3604('0xa8')](_0x3604('0x69'))[_0x3604('0x78')](_0x4d7d37);}['refresh'](){const {isReady:_0x8296b4,isEnabled:_0x33e45b}=this[_0x3604('0xf7')]['plugins']['get'](d);this['isEnabled']=_0x8296b4&&_0x33e45b;}}export class ShowChangeCommand extends _0x524429{constructor(_0x3908dc,{direction:_0x5a0cfe}){super(_0x3908dc);const _0x323db7=_0x3908dc[_0x3604('0x8f')][_0x3604('0xa8')](d);this[_0x3604('0xe0')]=!0x1,this['_step']=_0x3604('0x114')===_0x5a0cfe?0x1:-0x1,this[_0x3604('0x4a')](_0x323db7,_0x3604('0x18'),()=>this[_0x3604('0x11c')]()),this['listenTo'](_0x323db7,_0x3604('0x71'),()=>this[_0x3604('0x11c')]()),this['listenTo'](_0x323db7,_0x3604('0xda'),()=>this[_0x3604('0x11c')]());}[_0x3604('0x109')](){const _0x458cc=this[_0x3604('0xf7')],_0x14be6c=_0x458cc[_0x3604('0x8f')][_0x3604('0xa8')](d),{isNavigationMode:_0x29dd04,currentChangeNumber:_0x445062}=_0x14be6c;let _0x35d826;if(_0x14be6c[_0x3604('0xeb')]=_0x29dd04?_0x14be6c[_0x3604('0xe3')][_0x3604('0x70')][_0x3604('0xa8')](_0x445062+this[_0x3604('0x10e')]):_0x14be6c[_0x3604('0xe3')]['changes'][_0x3604('0xd8')],_0x14be6c[_0x3604('0xeb')][_0x3604('0xdd')][_0x3604('0x79')])_0x35d826=_0x458cc[_0x3604('0xee')][_0x3604('0x4b')][_0x3604('0xc4')](_0x14be6c['activeChange'][_0x3604('0x2e')]);else{const _0xd02196=_0x458cc[_0x3604('0x51')][_0x3604('0xc1')][_0x3604('0xa8')](_0x3604('0xb2')+_0x14be6c[_0x3604('0xeb')]['id']);_0x35d826=_0x48f1fb(_0x458cc[_0x3604('0xee')],_0xd02196);}_0x14bcb4({'target':_0x35d826,'viewportOffset':0x28});}[_0x3604('0x11c')](){const {isNavigationMode:_0x4413ec,currentChangeNumber:_0x56422a,numberOfChanges:_0x2d5dea,isReady:_0x3f4e80,isEnabled:_0x4ca4dc}=this[_0x3604('0xf7')]['plugins']['get'](d);this['isEnabled']=!!(_0x4ca4dc&&_0x3f4e80&&_0x2d5dea)&&(!_0x4413ec||(0x1===this['_step']?_0x56422a<_0x2d5dea-0x1:_0x56422a>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5499=['buttonView','bindTemplate','_action','Compare\x20against\x20selected','isVisible','Restore\x20this\x20revision','listView','bind','action','function','isOpen','name','stopPropagation','listenTo','find','isEnabled','execute','class','set','Name\x20this\x20revision','Show\x20more\x20items','ck-revision-history-sidebar__revision__actions','ck-on','map','threeVerticalDots','children','isActionsDropdownOpen','change:isActionsDropdownOpen','isReady','first'];(function(_0x3c616b,_0x5499df){const _0x6cfacd=function(_0x1aba0){while(--_0x1aba0){_0x3c616b['push'](_0x3c616b['shift']());}};_0x6cfacd(++_0x5499df);}(_0x5499,0x161));const _0x6cfa=function(_0x3c616b,_0x5499df){_0x3c616b=_0x3c616b-0x0;let _0x6cfacd=_0x5499[_0x3c616b];return _0x6cfacd;};import{Collection as _0xca2371}from'ckeditor5/src/utils';import{icons as _0xd65f68}from'ckeditor5/src/core';import{Model as _0x290192,addListToDropdown as _0x55f4e7,createDropdown as _0x2dc10d}from'ckeditor5/src/ui';import{getTranslation as _0x47eb5e}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x12213f,_0x281acd){const _0x1cd564=_0x12213f[_0x6cfa('0x8')],_0x424c50=_0x12213f['locale'],_0x445deb=_0x2dc10d(_0x424c50);_0x445deb['panelPosition']='sw';const _0x153054=function(_0x23e044,_0x4dd49c){const _0x8ab609=function(_0x20ab2a,_0x7beb0){const _0x38945d=_0x20ab2a['locale'],_0x3dd6be={'Compare\x20against\x20selected':_0x47eb5e(_0x38945d,_0x6cfa('0xa')),'Name\x20this\x20revision':_0x47eb5e(_0x38945d,_0x6cfa('0x1a')),'Restore\x20this\x20revision':_0x47eb5e(_0x38945d,_0x6cfa('0xc'))};return _0x7beb0[_0x6cfa('0x0')](_0x429d71=>{const _0x213cf7=_0x3dd6be[_0x429d71[_0x6cfa('0x12')]];return _0x213cf7&&_0x213cf7!==_0x429d71[_0x6cfa('0x12')]&&(_0x429d71['name']=_0x213cf7),_0x429d71;});}(_0x23e044,_0x4dd49c),_0x499f48=new _0xca2371();for(const _0x4adc60 of _0x8ab609){const _0x48394a={'type':'button','model':new _0x290192({'label':_0x4adc60[_0x6cfa('0x12')],'class':_0x4adc60[_0x6cfa('0x18')],'withText':!0x0,'_action':_0x4adc60[_0x6cfa('0xf')]})};_0x48394a['model'][_0x6cfa('0xe')](_0x6cfa('0x16'))['to'](_0x23e044,'isActionsDropdownOpen',_0x2dd12c=>'function'!=typeof _0x4adc60[_0x6cfa('0x16')]||(!_0x2dd12c||_0x4adc60[_0x6cfa('0x16')](_0x23e044))),_0x499f48['add'](_0x48394a);}return _0x499f48;}(_0x12213f,_0x281acd);return _0x12213f[_0x6cfa('0xe')](_0x6cfa('0x3'))['to'](_0x445deb,_0x6cfa('0x11')),_0x445deb[_0x6cfa('0x7')][_0x6cfa('0x19')]({'label':_0x47eb5e(_0x424c50,_0x6cfa('0x1b')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xd65f68[_0x6cfa('0x1')]}),_0x445deb['extendTemplate']({'attributes':{'class':[_0x6cfa('0x1c'),_0x1cd564['if'](_0x6cfa('0x3'),_0x6cfa('0x1d'))]},'on':{'click':_0x1cd564['to'](_0x3af276=>_0x3af276[_0x6cfa('0x13')]())}}),_0x445deb['on'](_0x6cfa('0x17'),_0x7eea87=>{_0x12213f[_0x6cfa('0x5')]&&_0x6cfa('0x10')==typeof _0x7eea87['source'][_0x6cfa('0x9')]&&_0x7eea87['source']['_action'](_0x12213f);}),_0x55f4e7(_0x445deb,_0x153054),_0x445deb[_0x6cfa('0x14')](_0x12213f,_0x6cfa('0x4'),(_0x292fec,_0x21c8aa,_0x145120)=>{if(_0x145120)for(const _0x1d04b7 of _0x445deb[_0x6cfa('0xd')]['items']){const _0x54f439=_0x1d04b7[_0x6cfa('0x2')][_0x6cfa('0x6')],_0x200ca9=_0x281acd[_0x6cfa('0x15')](_0x271b0c=>_0x271b0c[_0x6cfa('0xf')]===_0x54f439[_0x6cfa('0x9')])[_0x6cfa('0xb')];_0x1d04b7['isVisible']=void 0x0===_0x200ca9||_0x200ca9(_0x12213f);}}),_0x445deb;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfd41=['ck-revision-history-sidebar__revision-author','set','setTemplate','ck-revision-history-sidebar__revision-author__name','0\x200\x2011\x2010','Revision\x20author','push','Revision\x20creator','ck-revision-history-sidebar__revision-author_creator','name'];(function(_0x574240,_0xfd4135){const _0x37dd51=function(_0x29eafc){while(--_0x29eafc){_0x574240['push'](_0x574240['shift']());}};_0x37dd51(++_0xfd4135);}(_0xfd41,0x1d2));const _0x37dd=function(_0x574240,_0xfd4135){_0x574240=_0x574240-0x0;let _0x37dd51=_0xfd41[_0x574240];return _0x37dd51;};import{View as _0x7d8538,IconView as _0x3d10c4}from'ckeditor5/src/ui';import{getTranslation as _0x2e46fb}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4f948e from'../../../theme/icons/user.svg';export default class ti extends _0x7d8538{constructor(_0x52411f,_0xd92af8,_0x5547c1){super(_0x52411f);const _0x2faac4=new _0x3d10c4();_0x2faac4[_0x37dd('0x5')]({'content':_0x4f948e,'viewBox':_0x37dd('0x8')});const _0x461d27=['ck',_0x37dd('0x4')];_0x5547c1&&_0x461d27[_0x37dd('0x0')](_0x37dd('0x2'));const _0x1f54b1=[{'tag':'span','attributes':{'class':['ck',_0x37dd('0x7')],'title':_0x2e46fb(_0x52411f,_0x5547c1?_0x37dd('0x1'):_0x37dd('0x9'))},'children':[_0x2faac4,_0xd92af8[_0x37dd('0x3')]]}];this[_0x37dd('0x6')]({'tag':'li','attributes':{'class':_0x461d27},'children':_0x1f54b1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x539a=['set','extendTemplate','Revision\x20name'];(function(_0xcefdaf,_0x539a78){var _0x44792e=function(_0x4bab69){while(--_0x4bab69){_0xcefdaf['push'](_0xcefdaf['shift']());}};_0x44792e(++_0x539a78);}(_0x539a,0x9a));var _0x4479=function(_0xcefdaf,_0x539a78){_0xcefdaf=_0xcefdaf-0x0;var _0x44792e=_0x539a[_0xcefdaf];return _0x44792e;};import{LabeledFieldView as _0x5986ab}from'ckeditor5/src/ui';import{getTranslation as _0x5d8b26}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x5986ab{constructor(_0x117312,_0x22b625){super(_0x117312,_0x22b625),this[_0x4479('0x2')]({'label':_0x5d8b26(_0x117312,_0x4479('0x1'))}),this[_0x4479('0x0')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5756=['placeholder','span','authors','isSelected','element','setTemplate','_createdAtFormatted','ck-revision-history-sidebar__revision__date','highlight','listenTo','ck-disabled','bindTemplate','value','isEnabled','creator','isReady','ck-revision-history-sidebar__actions_dropdown_open','createdAt','revisionActionsView','isHighlighted','set','ck-revision-history-sidebar__revision-wrapper','fire','ck-revision-history-sidebar__revision_highlighted','render','name','filter','ck-revision-history-sidebar__revision__controls-wrapper','ck-reset','from','fieldView','deselect','ck-revision-history-sidebar__revision_selected','length','select','srcElement','220','div','unhighlight','change','setName','bind','.ck-thread__remove-confirm','revisionNameView'];(function(_0x1e9734,_0x5756fe){const _0x22616a=function(_0x2a4c61){while(--_0x2a4c61){_0x1e9734['push'](_0x1e9734['shift']());}};_0x22616a(++_0x5756fe);}(_0x5756,0xe4));const _0x2261=function(_0x1e9734,_0x5756fe){_0x1e9734=_0x1e9734-0x0;let _0x22616a=_0x5756[_0x1e9734];return _0x22616a;};import{View as _0x354925,createLabeledInputText as _0x27d0a3}from'ckeditor5/src/ui';import{ConfirmMixin as _0xcccd00}from'ckeditor5-collaboration/src/collaboration-core';import _0x12da7e from'./revisionnameview';import _0x1c2dac from'./revisionauthorview';import{dateToPrettyFormat as _0x577a00}from'./utils';import{createActionsDropdownView as _0xd6c11e}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0xcccd00(_0x354925){constructor(_0xf0e643,_0x192dd2,_0x32a636){super(_0xf0e643);const _0x25522a=this[_0x2261('0x3')],_0x534bf5=function(_0x4d5973,_0x38c327){const _0x39b160=Array[_0x2261('0x15')](_0x38c327[_0x2261('0x26')])[_0x2261('0x12')](_0x5d8c90=>_0x5d8c90!=_0x38c327[_0x2261('0x6')]);return _0x38c327['creator']&&_0x39b160['unshift'](_0x38c327['creator']),_0x39b160['map'](_0x103423=>new _0x1c2dac(_0x4d5973,_0x103423,_0x103423==_0x38c327[_0x2261('0x6')]));}(_0xf0e643,_0x192dd2);this['id']=_0x192dd2['id'],this['_revision']=_0x192dd2,this[_0x2261('0x21')](_0x2261('0x11'),_0x2261('0x9'))['to'](_0x192dd2),this['bind'](_0x2261('0x2a'))['to'](this,_0x2261('0x9'),_0x54e283=>_0x54e283?_0x577a00(_0xf0e643['uiLanguage'],_0x54e283):void 0x0),this[_0x2261('0xc')](_0x2261('0x27'),!0x1),this[_0x2261('0xc')](_0x2261('0xb'),!0x1),this[_0x2261('0xc')]('isActionsDropdownOpen',!0x1),this[_0x2261('0xc')](_0x2261('0x7'),!0x1),this[_0x2261('0xc')](_0x2261('0x5'),!0x1),this['revisionNameView']=new _0x12da7e(_0xf0e643,_0x27d0a3),this[_0x2261('0x23')][_0x2261('0x16')]['extendTemplate']({'attributes':{'maxlength':_0x2261('0x1c')}}),this['revisionNameView'][_0x2261('0x16')][_0x2261('0x21')](_0x2261('0x4'),_0x2261('0x24'))['to'](this,_0x2261('0x11'),_0x2261('0x2a')),this[_0x2261('0x23')][_0x2261('0x21')]('isEnabled')['to'](this,_0x2261('0x27'),this,_0x2261('0x5'),(_0x2a06f6,_0x4ce227)=>_0x2a06f6&&_0x4ce227),this[_0x2261('0xa')]=_0x32a636&&_0x32a636[_0x2261('0x19')]?_0xd6c11e(this,_0x32a636):'',this['revisionActionsView']&&this[_0x2261('0xa')][_0x2261('0x21')](_0x2261('0x5'))['to'](this),this[_0x2261('0x29')]({'tag':_0x2261('0x1d'),'attributes':{'class':['ck','ck-reset',_0x2261('0xd'),_0x25522a['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x2261('0x1d'),'attributes':{'class':['ck',_0x2261('0x14'),'ck-revision-history-sidebar__revision',_0x25522a['if'](_0x2261('0x5'),_0x2261('0x2'),_0x1173a5=>!_0x1173a5),_0x25522a['if'](_0x2261('0x27'),_0x2261('0x18')),_0x25522a['if'](_0x2261('0xb'),_0x2261('0xf')),_0x25522a['if']('isActionsDropdownOpen',_0x2261('0x8'))]},'children':[this[_0x2261('0x23')],{'tag':_0x2261('0x25'),'attributes':{'class':['ck',_0x2261('0x2b')]},'children':[{'text':_0x25522a['to'](_0x2261('0x2a'))}]},{'tag':'div','attributes':{'class':['ck',_0x2261('0x13')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x534bf5}]},this[_0x2261('0xa')]],'on':{'click':_0x25522a['to'](_0x2e855d=>{_0x2e855d[_0x2261('0x1b')]['closest'](_0x2261('0x22'))||this[_0x2261('0x7')]&&this[_0x2261('0x5')]&&this[_0x2261('0xe')](_0x2261('0x1a'),{'id':this['id']});})}}]});}['render'](){super[_0x2261('0x10')]();const _0x14b6e5=this[_0x2261('0x23')][_0x2261('0x16')][_0x2261('0x28')];this[_0x2261('0x1')](_0x14b6e5,_0x2261('0x1f'),()=>{this['fire'](_0x2261('0x20'),{'id':this['id'],'name':_0x14b6e5['value']});});}['select'](){this[_0x2261('0x27')]=!0x0;}[_0x2261('0x17')](){this[_0x2261('0x27')]=!0x1;}[_0x2261('0x0')](){this[_0x2261('0xb')]=!0x0;}[_0x2261('0x1e')](){this[_0x2261('0xb')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x246f=['isVisible','click','set','ck-revision-history-sidebar__subrevision-collapser','true','ck-revision-history-sidebar__subrevision-collapser__inner','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','bindTemplate','span','_isCollapsed'];(function(_0x42a543,_0x246f37){const _0x24fce4=function(_0x1871f6){while(--_0x1871f6){_0x42a543['push'](_0x42a543['shift']());}};_0x24fce4(++_0x246f37);}(_0x246f,0x17c));const _0x24fc=function(_0x42a543,_0x246f37){_0x42a543=_0x42a543-0x0;let _0x24fce4=_0x246f[_0x42a543];return _0x24fce4;};import{View as _0x1ee2ee}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x1ee2ee{constructor(_0x448776){super(_0x448776);const _0x214528=this[_0x24fc('0x2')];this[_0x24fc('0x7')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x24fc('0x3'),'attributes':{'class':['ck',_0x24fc('0x8'),_0x214528['if'](_0x24fc('0x5'),'ck-hidden',_0x36fe67=>!_0x36fe67),_0x214528['if'](_0x24fc('0x4'),_0x24fc('0x1'))],'role':'button','aria-pressed':_0x214528['to'](_0x24fc('0x4'),_0x2f415b=>_0x2f415b?_0x24fc('0x0'):_0x24fc('0x9'))},'children':[{'tag':_0x24fc('0x3'),'attributes':{'class':['ck',_0x24fc('0xa')]}}],'on':{'click':_0x214528['to'](_0x24fc('0x6'))}});}['toggle'](){this[_0x24fc('0x4')]=!this[_0x24fc('0x4')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1688=['ck-revision-history-sidebar__revision','isSelected','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision-authors','fire','setTemplate','bindTemplate','span','creator','ck-revision-history-sidebar__subrevision','_parentRevisionId','set','ck-revision-history-sidebar__revision_selected','deselect','select','bind','ck-reset','_createdAtFormatted','div','createdAt'];(function(_0x266ebf,_0x168894){const _0x3feef6=function(_0x4a3beb){while(--_0x4a3beb){_0x266ebf['push'](_0x266ebf['shift']());}};_0x3feef6(++_0x168894);}(_0x1688,0x105));const _0x3fee=function(_0x266ebf,_0x168894){_0x266ebf=_0x266ebf-0x0;let _0x3feef6=_0x1688[_0x266ebf];return _0x3feef6;};import{View as _0x131658}from'ckeditor5/src/ui';import _0x3d5261 from'./revisionauthorview';import{dateToPrettyFormat as _0x428835}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x131658{constructor(_0x511948,_0x5af774,_0x3e223c){super(_0x511948);const _0x2b7790=this[_0x3fee('0x5')];this['id']=_0x5af774['id'],this[_0x3fee('0xe')](_0x3fee('0x12'))['to'](_0x5af774),this[_0x3fee('0xa')]('isSelected',!0x1),this[_0x3fee('0xe')](_0x3fee('0x10'))['to'](this,_0x3fee('0x12'),_0x21d277=>_0x21d277?_0x428835(_0x511948['uiLanguage'],_0x21d277):void 0x0),this[_0x3fee('0x9')]=_0x3e223c,this[_0x3fee('0x4')]({'tag':_0x3fee('0x11'),'attributes':{'class':['ck',_0x3fee('0xf'),_0x3fee('0x13'),_0x3fee('0x8'),_0x2b7790['if'](_0x3fee('0x0'),_0x3fee('0xb'))]},'children':[{'tag':_0x3fee('0x6'),'attributes':{'class':['ck',_0x3fee('0x1')]},'children':[{'text':_0x2b7790['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x3fee('0x2')]},'children':[new _0x3d5261(_0x511948,_0x5af774[_0x3fee('0x7')],!0x0)]}],'on':{'click':_0x2b7790['to'](this[_0x3fee('0xd')][_0x3fee('0xe')](this))}});}[_0x3fee('0xd')](){this[_0x3fee('0x0')]=!0x0,this[_0x3fee('0x3')](_0x3fee('0xd'),{'parentId':this['_parentRevisionId']});}[_0x3fee('0xc')](){this[_0x3fee('0x0')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x24f2=['toLocaleTimeString','numeric','long'];(function(_0x2c237b,_0x24f255){var _0x12c3d4=function(_0x5971dd){while(--_0x5971dd){_0x2c237b['push'](_0x2c237b['shift']());}};_0x12c3d4(++_0x24f255);}(_0x24f2,0x11d));var _0x12c3=function(_0x2c237b,_0x24f255){_0x2c237b=_0x2c237b-0x0;var _0x12c3d4=_0x24f2[_0x2c237b];return _0x12c3d4;};export function dateToPrettyFormat(_0x3c5331,_0x4c5439){return _0x4c5439['toLocaleDateString'](_0x3c5331,{'month':_0x12c3('0x2'),'day':_0x12c3('0x1')})+',\x20'+_0x4c5439[_0x12c3('0x0')](_0x3c5331,{'hour':_0x12c3('0x1'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14e3=['saveButtonView','set','keystrokes','value','ck-button-cancel','input','revisionName','check','_focusables','forEach','focusTracker','_createRevisionNameInput','listenTo','_createButton','extendTemplate','submit','cancel','ck-responsive-form','setTemplate','label','stopPropagation','cancelButtonView','ck-revision-history-save-revision-form','delegate','locale','revisionNameInputValue','focusFirst','focus','arrowright','element','arrowleft','reset','220','fieldView','Name\x20of\x20the\x20revision\x20(optional)','arrowdown','render','add','_focusCycler','ck-button-save','trim','Save','revisionNameInputView','shift\x20+\x20tab'];(function(_0x5e4c38,_0x14e3e0){const _0x1573a4=function(_0x27c16e){while(--_0x27c16e){_0x5e4c38['push'](_0x5e4c38['shift']());}};_0x1573a4(++_0x14e3e0);}(_0x14e3,0x1f0));const _0x1573=function(_0x5e4c38,_0x14e3e0){_0x5e4c38=_0x5e4c38-0x0;let _0x1573a4=_0x14e3[_0x5e4c38];return _0x1573a4;};import{icons as _0x378c68}from'ckeditor5/src/core';import{ButtonView as _0x486251,FocusCycler as _0x37aaa3,LabeledFieldView as _0x16c778,View as _0x456ca1,ViewCollection as _0x3779b6,createLabeledInputText as _0x5c6e5f,injectCssTransitionDisabler as _0x778721,submitHandler as _0x4cb499}from'ckeditor5/src/ui';import{FocusTracker as _0x10e4d7,KeystrokeHandler as _0x5f510a}from'ckeditor5/src/utils';import{getTranslation as _0x70fc08}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x456ca1{constructor(_0x16d307){super(_0x16d307),this[_0x1573('0x2a')]=new _0x10e4d7(),this['keystrokes']=new _0x5f510a(),this[_0x1573('0x21')](_0x1573('0xd'),''),this[_0x1573('0x1e')]=this['_createRevisionNameInput'](),this['saveButtonView']=this[_0x1573('0x1')](_0x70fc08(_0x16d307,_0x1573('0x1d')),_0x378c68[_0x1573('0x27')],_0x1573('0x1b')),this[_0x1573('0x20')]['type']=_0x1573('0x3'),this[_0x1573('0x9')]=this['_createButton'](_0x70fc08(_0x16d307,'Cancel'),_0x378c68[_0x1573('0x4')],_0x1573('0x24'),_0x1573('0x4')),this[_0x1573('0x28')]=new _0x3779b6(),this[_0x1573('0x1a')]=new _0x37aaa3({'focusables':this[_0x1573('0x28')],'focusTracker':this[_0x1573('0x2a')],'keystrokeHandler':this[_0x1573('0x22')],'actions':{'focusPrevious':_0x1573('0x1f'),'focusNext':'tab'}}),this[_0x1573('0x6')]({'tag':'form','attributes':{'class':['ck',_0x1573('0xa'),_0x1573('0x5')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x1573('0x20')],this[_0x1573('0x9')]]}),_0x778721(this);}[_0x1573('0x18')](){super[_0x1573('0x18')](),_0x4cb499({'view':this}),([this['revisionNameInputView'],this[_0x1573('0x20')],this[_0x1573('0x9')]][_0x1573('0x29')](_0x3f5f17=>{this[_0x1573('0x28')][_0x1573('0x19')](_0x3f5f17),this[_0x1573('0x2a')]['add'](_0x3f5f17[_0x1573('0x11')]);}),this[_0x1573('0x22')][_0x1573('0x0')](this[_0x1573('0x11')]));const _0x2b4857=_0x144308=>_0x144308[_0x1573('0x8')]();this[_0x1573('0x22')][_0x1573('0x21')](_0x1573('0x10'),_0x2b4857),this[_0x1573('0x22')]['set'](_0x1573('0x12'),_0x2b4857),this[_0x1573('0x22')]['set']('arrowup',_0x2b4857),this['keystrokes'][_0x1573('0x21')](_0x1573('0x17'),_0x2b4857);}[_0x1573('0xf')](){this['_focusCycler'][_0x1573('0xe')]();}get[_0x1573('0x26')](){return this['revisionNameInputView'][_0x1573('0x15')][_0x1573('0x11')]['value']['trim']();}set[_0x1573('0x26')](_0x307916){this[_0x1573('0x1e')][_0x1573('0x15')][_0x1573('0x11')][_0x1573('0x23')]=_0x307916[_0x1573('0x1c')]();}[_0x1573('0x13')](){this[_0x1573('0x1e')][_0x1573('0x15')][_0x1573('0x11')]['value']='';}[_0x1573('0x2b')](){const _0x3b6472=new _0x16c778(this[_0x1573('0xc')],_0x5c6e5f),_0x3eec39=_0x3b6472[_0x1573('0x15')];return _0x3eec39[_0x1573('0x2')]({'attributes':{'maxlength':_0x1573('0x14')}}),_0x3b6472[_0x1573('0x7')]=_0x70fc08(this[_0x1573('0xc')],_0x1573('0x16')),_0x3eec39['on'](_0x1573('0x25'),()=>{this['revisionNameInputValue']=_0x3eec39['element']['value']['trim']();}),_0x3b6472;}[_0x1573('0x1')](_0x3790e8,_0x18ea73,_0x4bc280,_0x10e963){const _0x289fdb=new _0x486251(this[_0x1573('0xc')]);return _0x289fdb[_0x1573('0x21')]({'label':_0x3790e8,'icon':_0x18ea73,'tooltip':!0x0}),_0x289fdb['extendTemplate']({'attributes':{'class':_0x4bc280}}),_0x10e963&&_0x289fdb[_0x1573('0xb')]('execute')['to'](this,_0x10e963),_0x289fdb;}}
|