@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231025.0 → 0.0.0-nightly-20231027.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1fdd=['isAtStart','getDomRoot','markerName','splice','addMarker:revision','top','attachChange','ck-suggestion-marker-','revisionHistoryAttachChange','bindElementToMarker','isOnRoot','revision:','default','getRoot','WidgetToolbarRepository','elementEnd','compare','removeMarker:revision','toViewPosition','init','_getViewForChange','name','get','type','selection','processor','setAttribute','pairId','markersStart','softBreak','_findChangeIdFromDomTarget','has','viewItem','high','next','rootName','_markMarkers','isAtEnd','nodeAfter','sort','for','merge','elementStart','deletions','markerToHighlight','code','_appendChild','findIndex','return','isAttached','downcastDispatcher','parent','low','data-revision-','resolve','markersEnd','refresh','revision-viewer','document','getIndex','isEnabled','getAttributes','ck-suggestion-preview-marker-','toModel','ck-suggestion-marker--active','createUIElement','getWalker','add','restoreRevisionCallback','index','startIndex','isReady','addMarker:revision-suggestion:deletion','_threeWayMerge','isAdded','nextPosition','_activeViewTarget','start','forEach','revision-suggestion','dataDowncast','modelRange','attributes','element','_fixObsoleteTags','markerNameToElements','vid_end','shift','collaboration.channelId','suggestion','revisionHistory','getRevisionData','locale','_initInteractions','_joinTapes','view','getClientRects','revision','insertions','data','offsetSize','startsWith','test','vid_start','highest','createRange','activeChange','ck-editor__editable__overlay','getRootNames','removeAttribute','_balloon','revision-suggestion:','attributesAfter','attributesBefore','upcast','_processTape','enableReadOnlyMode','showPreviousChange','editing','includes','find','enqueueChange','hasClass','unshift','requires','repository','config','diff','_update','indexOf','RevisionsRepository','isAfter','activeView','isObject','schema','ck-suggestion-preview-marker','side','writer','domConverter','isSuggestion','hasAttribute','getItems','conversion','roots','isCollapsed','plugins','mouseover','commands','addRoot','forward','_makeModelFromTape','userId','change:isReady','pop','_changeView','change:numberOfChanges','data-change-id','isRemoved','ck-suggestion-marker','filter','addRevision','ck-revision-history-root-','endIndex','numberOfChanges','_removeMissingPairs','vid','newRevisionId','change:isEnabled','all','restoreRevision','RevisionViewer','end','change:activeView','consume','insert','-new','deletion','set','left','pluginName','getAttribute','_cleanUp','values','detachRoot','diffData','parse','_markSuggestions','revisionHistoryLabel','dataToMarker','ck-revision-history-root-remove','changeId','destroy','observeMarkers','previousPosition','comment','removeMarker','ck-revision-history-root--active','addRevisionData','push','abs','remove','ck-suggestion-marker-split','uiElement','_getChangeFromId','distance','_getRevisionsRange','slice','addHighlight','domEvent','_makeModelFromViewString','toViewRange','listenTo','getChild','useFillerType','_sortAndFilterDiffChanges','concat','toViewElement','isIncorrect','split','insertion','bottom','consumable','affectsData','createRevision','isAddSuggestion','clear','createRangeIn','from','_getViewObj','addMarker:revision-suggestion:insertion','isBlock','children','span','isBefore','revision-start','isInline','_step','_makeTape','_cleanMarkers','change','changes','length','oldRevisionId','editor','element:pre','target','markers','map','string','isNavigationMode','_markMismatchedRemovedTags','model','isRemoveSuggestion','keys','change:activeChange','markerRange','item','loadRevisionData','bind','removeClass','ck-suggestion-marker-merge','isLimit','maxOffset','right','isEqual','_data','_changeIdToChange','then','ck-revision-history-root-add','showStack','object','getRevision','updatePosition','createPositionFromPath','_removeRevisionMarkers','_markInsertions','addClass','_refreshStartEndIndex','attribute:vid','unbindElementFromMarkerName','text','_setConversion','mapper','_setDistance','editingDowncast','delete','POSITIVE_INFINITY','level','getCustomProperty','execute'];(function(_0xcefda0,_0x1fdd56){const _0x33f161=function(_0x50b829){while(--_0x50b829){_0xcefda0['push'](_0xcefda0['shift']());}};_0x33f161(++_0x1fdd56);}(_0x1fdd,0x9a));const _0x33f1=function(_0xcefda0,_0x1fdd56){_0xcefda0=_0xcefda0-0x0;let _0x33f161=_0x1fdd[_0xcefda0];return _0x33f161;};import{Plugin as _0x24f069,Command as _0x107b05}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x8dd2d4}from'ckeditor5/src/utils';import{ContextualBalloon as _0x54483e}from'ckeditor5/src/ui';import{DocumentFragment as _0x1c3171,Element as _0x5d6db1,Text as _0x5769c8,ViewDocumentFragment as _0x109958,ViewText as _0x376055,ViewElement as _0xe18029,ViewContainerElement as _0x3266c5,ViewAttributeElement as _0x40a043,ViewEmptyElement as _0x160dbd,ViewRawElement as _0x5db49f,ViewUIElement as _0x2cb7e}from'ckeditor5/src/engine';import{Users as _0x5541f0,getMarkerDomElement as _0x536dce}from'ckeditor5-collaboration/src/collaboration-core';import _0x4d9298 from'./ui/revisionviewer/changedetailsview';import _0x3d900f from'./revisionsrepository';import _0x530a17 from'./changeitem';import{default as _0xd12df4}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x534c74}from'lodash-es';const tt={'c':_0x3266c5,'a':_0x40a043,'e':_0x160dbd,'r':_0x5db49f,'u':_0x2cb7e};export default class d extends _0x24f069{static get[_0x33f1('0x19')](){return _0x33f1('0x10');}static get[_0x33f1('0x104')](){return[_0x5541f0,_0x54483e,_0x3d900f];}constructor(_0x22ffc4){super(_0x22ffc4),this[_0x33f1('0x105')]=this[_0x33f1('0x59')][_0x33f1('0x119')][_0x33f1('0x9e')](_0x33f1('0x10a')),this[_0x33f1('0x17')](_0x33f1('0xf2'),null),this['set'](_0x33f1('0x10c'),null),this[_0x33f1('0xd4')]=null,this[_0x33f1('0x17')](_0x33f1('0x107'),null),this['set'](_0x33f1('0xcf'),!0x1),this[_0x33f1('0x17')](_0x33f1('0xc4'),!0x0),this['on'](_0x33f1('0xd'),(_0x218253,_0x212ed2,_0xf49461)=>{this[_0x33f1('0xf2')]=null,this['activeView']=null,this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0x55')](_0x111e85=>{for(const _0x5cdf58 of this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0xc2')][_0x33f1('0x117')])_0xf49461?_0x111e85[_0x33f1('0x69')](_0x33f1('0xf3'),_0x5cdf58):_0x111e85['addClass'](_0x33f1('0xf3'),_0x5cdf58);});}),this[_0x33f1('0x68')](_0x33f1('0x5f'))['to'](this,'activeChange',_0x5b210e=>null!==_0x5b210e),this['bind']('currentChangeNumber')['to'](this,_0x33f1('0xcf'),this,'diff',this,_0x33f1('0xf2'),(_0x414768,_0x376272,_0x9e1464)=>_0x414768&&_0x9e1464?_0x376272[_0x33f1('0x56')]['getIndex'](_0x9e1464):0x0),this[_0x33f1('0x68')](_0x33f1('0x9'))['to'](this,'isReady',this,'diff',(_0x4d2d52,_0x3af790)=>_0x4d2d52?_0x3af790['changes'][_0x33f1('0x57')]:0x0),this[_0x33f1('0x0')]=null,this[_0x33f1('0x70')]=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins'][_0x33f1('0x9e')](_0x54483e);}[_0x33f1('0x9b')](){const _0x742f95=this[_0x33f1('0x59')],_0x293f22=new ShowChangeCommand(_0x742f95,{'direction':'backward'}),_0x5632ba=new ShowChangeCommand(_0x742f95,{'direction':_0x33f1('0x11d')});(_0x742f95[_0x33f1('0x11b')][_0x33f1('0xcb')](_0x33f1('0xfd'),_0x293f22),_0x742f95[_0x33f1('0x11b')][_0x33f1('0xcb')]('showNextChange',_0x5632ba),_0x742f95[_0x33f1('0x11b')][_0x33f1('0xcb')](_0x33f1('0xf'),new RestoreRevisionCommand(_0x742f95)),this['on'](_0x33f1('0x1'),()=>{_0x293f22[_0x33f1('0xc0')](),_0x5632ba[_0x33f1('0xc0')]();}),this[_0x33f1('0x7f')](),this[_0x33f1('0xe5')](),_0x742f95[_0x33f1('0xfc')]('revision-viewer'),_0x742f95['plugins'][_0x33f1('0xa7')](_0x33f1('0x96')))&&_0x742f95[_0x33f1('0x119')]['get']('WidgetToolbarRepository')['forceDisabled'](_0x33f1('0xc1'));}async[_0x33f1('0xe3')](_0x3ed1b7){await this[_0x33f1('0x67')](_0x3ed1b7);const _0x3448a1={};for(const _0x29f0ec in _0x3ed1b7[_0x33f1('0x1e')]){if(_0x3ed1b7[_0x33f1('0x1e')][_0x29f0ec]['attachChange']&&!_0x3ed1b7[_0x33f1('0x1e')][_0x29f0ec][_0x33f1('0x8e')][_0x33f1('0xb9')])continue;const _0x4582fe=this[_0x33f1('0x78')](JSON[_0x33f1('0x1f')](_0x3ed1b7[_0x33f1('0x1e')][_0x29f0ec]['insertions'])),_0x5c1a7b=this['editor']['editing'][_0x33f1('0xe7')][_0x33f1('0xc2')],_0x5bb3d3=new _0x109958(_0x5c1a7b,_0x4582fe[_0x33f1('0x5d')](_0x4e3e92=>this[_0x33f1('0x4a')](_0x4e3e92)));this['editor'][_0x33f1('0xeb')][_0x33f1('0xa1')][_0x33f1('0x3b')]('marked'),_0x3448a1[_0x29f0ec]=this['editor']['data'][_0x33f1('0xa1')]['toData'](_0x5bb3d3),this['editor'][_0x33f1('0xeb')][_0x33f1('0xa1')]['useFillerType'](_0x33f1('0x94'));}return _0x3448a1;}async['getRevisionRootsAttributes'](_0x47e4d9){await this[_0x33f1('0x67')](_0x47e4d9);const _0x1652e5={};for(const _0x405715 in _0x47e4d9['diffData'])_0x47e4d9['diffData'][_0x405715][_0x33f1('0x8e')]&&!_0x47e4d9['diffData'][_0x405715][_0x33f1('0x8e')][_0x33f1('0xb9')]||(_0x1652e5[_0x405715]=_0x47e4d9[_0x33f1('0x1e')][_0x405715][_0x33f1('0xf8')]||{});return _0x1652e5;}[_0x33f1('0x78')](_0x171851){return(_0x171851=_0x171851[_0x33f1('0x5')](_0x19da9f=>!_0x19da9f['name']||_0x33f1('0x50')!==_0x19da9f['name']&&'revision-end'!==_0x19da9f[_0x33f1('0x9d')]))[_0x33f1('0xd6')](_0x2ec92f=>{'string'!=typeof _0x2ec92f&&(_0x2ec92f[_0x33f1('0x4d')]=this['_removeRevisionMarkers'](_0x2ec92f[_0x33f1('0x4d')]),_0x2ec92f[_0x33f1('0xda')]=_0x2ec92f[_0x33f1('0xda')][_0x33f1('0x5')](_0x102d77=>!_0x102d77[0x0][_0x33f1('0xed')](_0x33f1('0xbd'))));}),_0x171851;}async[_0x33f1('0x98')](_0x5b45ef,_0x53ab25,_0x46338f=!0x1){if(!this[_0x33f1('0xc4')])return;const _0x3f9d74=this['diff'],_0x3ba86f=this['repository'],_0x5da768='string'==typeof _0x5b45ef?_0x3ba86f[_0x33f1('0x75')](_0x5b45ef):_0x5b45ef,_0x2edb8b='string'==typeof _0x53ab25?_0x3ba86f[_0x33f1('0x75')](_0x53ab25):_0x53ab25,_0x5a086f=_0x5da768['id'],_0x42097e=_0x2edb8b?_0x2edb8b['id']:null;if(!_0x46338f&&this['diff']&&this[_0x33f1('0x107')][_0x33f1('0xc')]===_0x5a086f&&this['diff'][_0x33f1('0x58')]===_0x42097e)return Promise[_0x33f1('0xbe')]();this[_0x33f1('0xcf')]=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new _0xd12df4(_0x5a086f,_0x42097e);const _0x1f6c67=this[_0x33f1('0x33')](_0x5da768,_0x2edb8b,!0x0)[_0x33f1('0x5d')](_0x4a4fdc=>this[_0x33f1('0x67')](_0x4a4fdc));return _0x1f6c67[_0x33f1('0x2c')](new Promise(_0x51b310=>{setTimeout(_0x51b310,0x14);})),Promise[_0x33f1('0xe')](_0x1f6c67)[_0x33f1('0x71')](()=>{if(!this['isEnabled'])return;this[_0x33f1('0x1b')]();const _0x848a3=this['_getDiff'](_0x5a086f,_0x42097e);for(const _0x219d86 of _0x848a3[_0x33f1('0x56')])this[_0x33f1('0x70')][_0x33f1('0x17')](_0x219d86['id'],_0x219d86);this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x101')]({'isUndoable':!0x1},_0x25e7bf=>{for(const _0x2edf4c of this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0xc2')]['getRootNames']())_0x25e7bf[_0x33f1('0x1d')](_0x2edf4c);for(const _0x4256ca of Object['keys'](_0x848a3[_0x33f1('0x61')])){const _0xf0ad57=_0x25e7bf[_0x33f1('0x11c')](_0x4256ca);for(const _0xeac55e of Object['keys'](_0x848a3[_0x33f1('0xda')][_0x4256ca]))_0x25e7bf[_0x33f1('0xa2')](_0xeac55e,_0x848a3['attributes'][_0x4256ca][_0xeac55e],_0xf0ad57);_0x25e7bf['insert'](_0x848a3[_0x33f1('0x61')][_0x4256ca],_0xf0ad57,0x0);}}),this[_0x33f1('0x107')]['_setChanges'](this[_0x33f1('0x3c')](_0x848a3['changes'])),this[_0x33f1('0xcf')]=!0x0;})['catch'](_0x4e1654=>{console['error'](_0x4e1654),this[_0x33f1('0x1b')](),_0x3f9d74&&(this[_0x33f1('0x107')]=_0x3f9d74),this['isReady']=!0x0;});}[_0x33f1('0x2b')](_0x1f8197,_0xe8814){const _0x463142=this[_0x33f1('0x105')][_0x33f1('0x45')](_0x1f8197);return _0x463142['on'](_0x33f1('0x108'),(_0x4ba0e4,_0x59ce65,_0x437df8)=>_0xe8814(_0x59ce65,_0x437df8,_0x463142)),this[_0x33f1('0x105')][_0x33f1('0x6')](_0x463142),_0x463142;}['loadRevisionData'](_0x32f5b5){if(!_0x32f5b5||_0x32f5b5[_0x33f1('0x1e')])return Promise['resolve']();{const _0x4786d0=this['editor'][_0x33f1('0x106')][_0x33f1('0x9e')](_0x33f1('0xe0'));return this['adapter'][_0x33f1('0x75')]({'channelId':_0x4786d0,'revisionId':_0x32f5b5['id']})[_0x33f1('0x71')](_0x3f52ce=>{_0x32f5b5[_0x33f1('0x108')]({'diffData':_0x3f52ce[_0x33f1('0x1e')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x33f1('0x54')](),this[_0x33f1('0x0')]&&this[_0x33f1('0x0')][_0x33f1('0x25')](),this[_0x33f1('0x0')]=null,this[_0x33f1('0x70')][_0x33f1('0x47')](),this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x101')]({'isUndoable':!0x1},_0x380f0=>{for(const _0xfda1b3 of this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0xc2')][_0x33f1('0xf4')]())_0x380f0[_0x33f1('0x1d')](_0xfda1b3);});}[_0x33f1('0x3c')](_0x1400d2){const _0x4d77a5=[],_0xefa965=new Map();for(const _0x3c79d4 of this[_0x33f1('0x59')]['model'][_0x33f1('0xc2')][_0x33f1('0xf4')]()){const _0x1ba4d7=this[_0x33f1('0x59')]['editing']['view']['getDomRoot'](_0x3c79d4);if(!_0x1ba4d7)continue;const _0x35e219=_0x1ba4d7[_0x33f1('0xe8')]()[_0x33f1('0x66')](0x0);_0x35e219&&(_0x4d77a5['push'](_0x3c79d4),_0xefa965[_0x33f1('0x17')](_0x3c79d4,_0x35e219));}return _0x4d77a5[_0x33f1('0xaf')]((_0x1836f5,_0x8e2907)=>{const _0xcee57c=_0xefa965[_0x33f1('0x9e')](_0x1836f5),_0x63ef81=_0xefa965[_0x33f1('0x9e')](_0x8e2907);return _0xcee57c['y']-_0x63ef81['y']||_0xcee57c['x']-_0x63ef81['x'];}),(_0x1400d2=_0x1400d2[_0x33f1('0x5')](_0xa7fb0c=>_0x4d77a5[_0x33f1('0xff')](_0xa7fb0c[_0x33f1('0xab')])))[_0x33f1('0xaf')]((_0x98661c,_0x3709b5)=>_0x4d77a5[_0x33f1('0x109')](_0x98661c['rootName'])-_0x4d77a5['indexOf'](_0x3709b5[_0x33f1('0xab')])),_0x1400d2;}['_makeTape'](_0x4a1b5b){const _0x99a89c=Array['from'](_0x4a1b5b[_0x33f1('0x5c')])[_0x33f1('0x5')](([_0x5a91f6,_0x29e76e])=>_0x5a91f6[_0x33f1('0xed')](_0x33f1('0x93'))&&!_0x29e76e[_0x33f1('0x118')]),_0x2c84f0=Array[_0x33f1('0x49')](this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x48')](_0x4a1b5b)[_0x33f1('0xca')]({'singleCharacters':!0x0}));if(0x0!=_0x99a89c[_0x33f1('0x57')])for(const _0x299bb7 of _0x2c84f0){const [_0x1f28ca,_0x5d25af]=_0x99a89c[0x0],[,_0x514df3,_0x3a90f7]=_0x1f28ca['split'](':');if(_0x5d25af[_0x33f1('0x11')][_0x33f1('0x6e')](_0x299bb7[_0x33f1('0xd3')])&&_0x99a89c[_0x33f1('0xdf')](),(_0x299bb7['previousPosition']['isEqual'](_0x5d25af[_0x33f1('0xd5')])||_0x299bb7['previousPosition'][_0x33f1('0x10b')](_0x5d25af[_0x33f1('0xd5')]))&&(_0x33f1('0x41')==_0x514df3?_0x299bb7[_0x33f1('0xd2')]={'userId':_0x3a90f7}:_0x33f1('0x16')==_0x514df3&&(_0x299bb7[_0x33f1('0x3')]={'userId':_0x3a90f7})),0x0==_0x99a89c[_0x33f1('0x57')])break;}return _0x2c84f0;}[_0x33f1('0x7b')](_0x3ae93d){const _0x1fc873=new Map();for(let _0x585a95=0x0;_0x585a95<_0x3ae93d['length'];_0x585a95++)_0x33f1('0x7e')===_0x3ae93d[_0x585a95][_0x33f1('0x9f')]?(_0x3ae93d[_0x585a95][_0x33f1('0x66')][_0x33f1('0xce')]=_0x585a95,_0x3ae93d[_0x585a95][_0x33f1('0x66')][_0x33f1('0x8')]=_0x585a95):('elementStart'===_0x3ae93d[_0x585a95][_0x33f1('0x9f')]?_0x3ae93d[_0x585a95][_0x33f1('0x66')][_0x33f1('0xce')]=_0x585a95:_0x33f1('0x97')===_0x3ae93d[_0x585a95][_0x33f1('0x9f')]&&(_0x3ae93d[_0x585a95][_0x33f1('0x66')][_0x33f1('0x8')]=_0x585a95),_0x1fc873['set'](_0x3ae93d[_0x585a95]['id'],_0x585a95));for(const _0x56fc02 of _0x1fc873[_0x33f1('0x1c')]())_0x33f1('0xb2')===_0x3ae93d[_0x56fc02]['type']?_0x3ae93d[_0x56fc02][_0x33f1('0x66')][_0x33f1('0x8')]=_0x1fc873[_0x33f1('0x9e')](_0x3ae93d[_0x56fc02][_0x33f1('0xa3')]):_0x33f1('0x97')===_0x3ae93d[_0x56fc02][_0x33f1('0x9f')]&&(_0x3ae93d[_0x56fc02][_0x33f1('0x66')][_0x33f1('0xce')]=_0x1fc873[_0x33f1('0x9e')](_0x3ae93d[_0x56fc02][_0x33f1('0xa3')]));}[_0x33f1('0xfb')](_0xfa441f){for(let _0x455570=0x0;_0x455570<_0xfa441f[_0x33f1('0x57')];_0x455570++){if('elementStart'===_0xfa441f[_0x455570][_0x33f1('0x9f')])_0xfa441f[_0x455570]['item'][_0x33f1('0xce')]=_0x455570;else{if(_0x33f1('0x97')===_0xfa441f[_0x455570][_0x33f1('0x9f')]){_0xfa441f[_0x455570][_0x33f1('0x66')][_0x33f1('0x8')]=_0x455570;const _0x1dd6d2=_0xfa441f[_0x455570][_0x33f1('0x66')][_0x33f1('0xce')];_0xfa441f[_0x1dd6d2]['pairId']=_0xfa441f[_0x455570]['id'],_0xfa441f[_0x455570][_0x33f1('0xa3')]=_0xfa441f[_0x1dd6d2]['id'];}else _0xfa441f[_0x455570][_0x33f1('0x66')][_0x33f1('0xce')]=_0x455570,_0xfa441f[_0x455570][_0x33f1('0x66')][_0x33f1('0x8')]=_0x455570,_0xfa441f[_0x455570][_0x33f1('0xa3')]=null;}_0xfa441f[_0x455570][_0x33f1('0xa4')]||(_0xfa441f[_0x455570][_0x33f1('0xa4')]=[],_0xfa441f[_0x455570][_0x33f1('0xbf')]=[]);}}[_0x33f1('0x79')](_0x232cb2,_0xef4469){const _0x135a29=_0x232cb2[_0x33f1('0x5')](_0x5596fa=>!_0x5596fa[_0x33f1('0xd2')]);for(let _0x54e513=0x0;_0x54e513<_0xef4469[_0x33f1('0x57')];_0x54e513++)_0xef4469[_0x54e513]['isAdded']&&(_0x135a29[_0x54e513][_0x33f1('0xd2')]=_0xef4469[_0x54e513][_0x33f1('0xd2')]);}[_0x33f1('0x37')](_0x170255){const _0xd07a3b=JSON[_0x33f1('0x1f')](_0x170255),_0x4e913e=this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0xc2')],_0xdaaf17=new _0x109958(_0x4e913e,_0xd07a3b[_0x33f1('0x5d')](_0x17ffe4=>this['_getViewObj'](_0x17ffe4)));return this['editor']['data'][_0x33f1('0xc7')](_0xdaaf17);}[_0x33f1('0x4a')](_0x18feda){const _0x2c2be7=this['editor'][_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0xc2')];if(_0x33f1('0x5e')==typeof _0x18feda)return new _0x376055(_0x2c2be7,_0x18feda);{const _0x3311d7=_0x18feda[_0x33f1('0x4d')][_0x33f1('0x5d')](_0x312fce=>this[_0x33f1('0x4a')](_0x312fce));return new(tt[_0x18feda[(_0x33f1('0x9f'))]]||_0xe18029)(_0x2c2be7,_0x18feda[_0x33f1('0x9d')],_0x18feda[_0x33f1('0xda')],_0x3311d7);}}['_getDiff'](_0x468213,_0x31a9eb=null){const _0x1fde22=this['repository']['getRevision'](_0x468213),_0x353597=_0x31a9eb?this[_0x33f1('0x105')]['getRevision'](_0x31a9eb):null,_0x4631c1=this[_0x33f1('0x33')](_0x1fde22,_0x353597),_0x95a04c=_0x4631c1[_0x4631c1[_0x33f1('0x57')]-0x1],_0x3a0219=new Map(),_0x35c639={'model':{},'attributes':{},'changes':[]},_0x123405=new Set(),_0x45d2d9=new Map();for(let _0x40bea9=_0x4631c1[_0x33f1('0x57')]-0x1;_0x40bea9>=0x0;_0x40bea9--){const _0x4291ba=_0x4631c1[_0x40bea9];for(const _0x79ed17 of Object[_0x33f1('0x63')](_0x4291ba[_0x33f1('0x1e')]))if(_0x4291ba['diffData'][_0x79ed17][_0x33f1('0x8e')]){const _0x11ca56=_0x4291ba[_0x33f1('0x1e')][_0x79ed17][_0x33f1('0x8e')];_0x11ca56['isAttached']?(_0x123405[_0x33f1('0xcb')](_0x79ed17),_0x45d2d9[_0x33f1('0xa7')](_0x79ed17)&&_0x45d2d9[_0x33f1('0x9e')](_0x79ed17)[_0x33f1('0x11f')]==_0x11ca56['userId']?_0x45d2d9['delete'](_0x79ed17):_0x45d2d9['set'](_0x79ed17,_0x11ca56)):_0x45d2d9[_0x33f1('0xa7')](_0x79ed17)?(_0x123405[_0x33f1('0x83')](_0x79ed17),_0x45d2d9[_0x33f1('0x83')](_0x79ed17)):(_0x123405[_0x33f1('0xcb')](_0x79ed17),_0x45d2d9[_0x33f1('0x17')](_0x79ed17,_0x11ca56));}else _0x123405[_0x33f1('0xcb')](_0x79ed17);}for(const _0x38151c of _0x123405){const _0x17023d=_0x45d2d9[_0x33f1('0xa7')](_0x38151c)&&!_0x45d2d9[_0x33f1('0x9e')](_0x38151c)[_0x33f1('0xb9')];let _0xe82460=_0x17023d?_0x4631c1[_0x33f1('0x57')]-0x1:0x0;const _0x97c228=_0x17023d?-0x1:0x1;for(;_0x4631c1[_0xe82460];){const _0x336374=_0x4631c1[_0xe82460];if(_0x336374[_0x33f1('0x1e')][_0x38151c]){const _0x1cef27=_0x17023d?_0x336374['diffData'][_0x38151c][_0x33f1('0xf9')]:_0x336374[_0x33f1('0x1e')][_0x38151c][_0x33f1('0xf8')];_0x35c639[_0x33f1('0xda')][_0x38151c]=_0x1cef27?_0x534c74(_0x1cef27):{};break;}_0xe82460+=_0x97c228;}}for(const _0x76aa4c of _0x4631c1){_0x76aa4c[_0x33f1('0x61')]={};for(const _0x4e0d87 of _0x76aa4c['authors'])_0x3a0219[_0x33f1('0x17')](_0x4e0d87['id'],_0x4e0d87);for(const _0x382d3b of _0x123405){const _0x431f42=_0x76aa4c['diffData'][_0x382d3b]?_0x76aa4c[_0x33f1('0x1e')][_0x382d3b][_0x33f1('0xea')]:'[]',_0x4b1b2d=_0x76aa4c['diffData'][_0x382d3b]?_0x76aa4c[_0x33f1('0x1e')][_0x382d3b]['deletions']:'[]';_0x76aa4c[_0x33f1('0x61')][_0x382d3b]={'insertions':this[_0x33f1('0x37')](_0x431f42),'deletions':this[_0x33f1('0x37')](_0x4b1b2d)};}}for(const _0x188564 of _0x123405){let _0x8fe3eb=null,_0x49e697=0x0;const _0x30a016=new Map(Array[_0x33f1('0x49')](_0x1fde22[_0x33f1('0x61')][_0x188564][_0x33f1('0xea')]['markers'])[_0x33f1('0x5')](([_0x5bf873])=>!_0x5bf873['startsWith'](_0x33f1('0x93'))));let _0x2b6557=0x0;for(const _0x30dcb3 of _0x4631c1){const _0x2d9ead=this['_makeTape'](_0x30dcb3['model'][_0x188564][_0x33f1('0xea')]);_0x30dcb3==_0x1fde22?(_0x8fe3eb=_0x2d9ead,_0x49e697=_0x8fe3eb[_0x33f1('0x57')],_0x8fe3eb[_0x33f1('0xd6')](_0x6461cb=>{_0x6461cb['id']=_0x2b6557++;}),this[_0x33f1('0xfb')](_0x8fe3eb)):this['_markInsertions'](_0x8fe3eb,_0x2d9ead);const _0x1893dc=_0x8fe3eb['filter'](_0x420822=>!_0x420822[_0x33f1('0xd2')])[_0x33f1('0x5d')](_0xf9704e=>_0xf9704e['id']);let _0x28562d=0x0;const _0x244d97=this[_0x33f1('0x53')](_0x30dcb3[_0x33f1('0x61')][_0x188564][_0x33f1('0xb3')]);_0x244d97['forEach'](_0x3107a1=>{_0x3107a1['isRemoved']?_0x3107a1['id']=_0x49e697++:_0x3107a1['id']=_0x1893dc[_0x28562d++];}),this[_0x33f1('0xfb')](_0x244d97),this[_0x33f1('0x81')](_0x8fe3eb,_0x33f1('0xd2')),this['_setDistance'](_0x244d97,_0x33f1('0x3')),_0x30dcb3==_0x1fde22&&this['_markMarkers'](_0x8fe3eb,_0x30a016),_0x8fe3eb=this[_0x33f1('0xe6')](_0x8fe3eb,_0x244d97),this['_refreshStartEndIndex'](_0x8fe3eb),this[_0x33f1('0x81')](_0x8fe3eb,_0x33f1('0x3'));}_0x8fe3eb=_0x8fe3eb[_0x33f1('0x5')](_0x54c25b=>!(_0x54c25b[_0x33f1('0xd2')]&&_0x54c25b['isRemoved']));const _0x1ab255=new Map(_0x95a04c[_0x33f1('0x61')][_0x188564]['deletions'][_0x33f1('0x5c')]),_0x41e44c=new Set(_0x30a016[_0x33f1('0x63')]());for(const _0x54e216 of _0x1ab255[_0x33f1('0x63')]())_0x41e44c['delete'](_0x54e216);this[_0x33f1('0x20')](_0x8fe3eb,_0x41e44c),this[_0x33f1('0xdc')](_0x8fe3eb),_0x8fe3eb=this['_removeMissingPairs'](_0x8fe3eb),_0x8fe3eb=this['_markMismatchedRemovedTags'](_0x8fe3eb),_0x8fe3eb=this['_removeUnsupportedChanges'](_0x8fe3eb);const {root:_0x348584,changes:_0x490a74}=this[_0x33f1('0x11e')](_0x8fe3eb,_0x3a0219,_0x188564);_0x35c639[_0x33f1('0x61')][_0x188564]=_0x348584;const _0x1c2632=_0x45d2d9[_0x33f1('0x9e')](_0x188564);if(_0x1c2632){const _0x3a4566=_0x3a0219[_0x33f1('0x9e')](_0x1c2632[_0x33f1('0x11f')]),_0x285ccf=new _0x530a17({'author':_0x3a4566,'type':_0x1c2632[_0x33f1('0xb9')]?_0x33f1('0xcb'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x188564});_0x490a74[_0x33f1('0x103')](_0x285ccf),_0x35c639[_0x33f1('0xda')][_0x188564][_0x33f1('0x90')]=_0x285ccf['id'];}_0x35c639['changes']=_0x35c639[_0x33f1('0x56')][_0x33f1('0x3d')](_0x490a74);}return _0x35c639;}[_0x33f1('0xac')](_0xf8059b,_0xf925b8){for(let _0x409816=0x0;_0x409816<_0xf8059b[_0x33f1('0x57')];_0x409816++)for(const [_0x436433,_0x5e5a64]of _0xf925b8)_0x5e5a64['start'][_0x33f1('0x6e')](_0xf8059b[_0x409816]['previousPosition'])&&_0xf8059b[_0x409816][_0x33f1('0xa4')][_0x33f1('0x2c')](_0x436433),_0x5e5a64['end'][_0x33f1('0x6e')](_0xf8059b[_0x409816]['nextPosition'])&&_0xf8059b[_0x409816][_0x33f1('0xbf')]['push'](_0x436433);}[_0x33f1('0xe6')](_0x2147f2,_0x4d00cd){let _0x4ccee5=[],_0x501db8=0x0,_0x5de040=0x0;for(;_0x501db8<_0x2147f2[_0x33f1('0x57')]||_0x5de040<_0x4d00cd['length'];){const _0x4ec3a2=_0x2147f2[_0x501db8]||{},_0x10c884=_0x4d00cd[_0x5de040]||{};if(_0x4ec3a2['id']==_0x10c884['id'])_0x501db8++,_0x5de040++,_0x4ccee5[_0x33f1('0x2c')](_0x4ec3a2);else{if(_0x10c884[_0x33f1('0x3')]&&_0x4ec3a2['isAdded']){const {commonTape:_0x5f029a,iEnd:_0x1f6ac9,jEnd:_0x5e4a24}=this[_0x33f1('0xd1')](_0x2147f2,_0x501db8,_0x4d00cd,_0x5de040);_0x4ccee5=_0x4ccee5[_0x33f1('0x3d')](_0x5f029a),_0x501db8=_0x1f6ac9,_0x5de040=_0x5e4a24;}else _0x10c884[_0x33f1('0x3')]?(_0x5de040++,_0x4ccee5[_0x33f1('0x2c')](_0x10c884)):(_0x501db8++,_0x4ccee5[_0x33f1('0x2c')](_0x4ec3a2));}}return _0x4ccee5;}[_0x33f1('0x20')](_0x2deb27,_0x491e63){const _0x1f59cc=[];for(let _0x202faa=0x0;_0x202faa<_0x2deb27['length'];_0x202faa++){for(let _0x1a0e61=0x0;_0x1a0e61<_0x2deb27[_0x202faa]['markersStart']['length'];_0x1a0e61++){const _0x225aee=_0x2deb27[_0x202faa][_0x33f1('0xa4')][_0x1a0e61];if(!_0x491e63[_0x33f1('0xa7')](_0x225aee))continue;const {group:_0x3a7bf1,type:_0x30bac4,authorId:_0x2cb867}=_0x534999(_0x225aee);_0x33f1('0xd7')!=_0x3a7bf1||_0x33f1('0x41')!=_0x30bac4&&_0x33f1('0x16')!=_0x30bac4||(_0x1f59cc[_0x33f1('0x103')]({'type':_0x30bac4,'name':_0x225aee,'userId':_0x2cb867}),_0x2deb27[_0x202faa][_0x33f1('0xa4')]['splice'](_0x1a0e61,0x1),_0x1a0e61--);}_0x4b8b32(_0x2deb27[_0x202faa]);for(let _0x4388d5=0x0;_0x4388d5<_0x2deb27[_0x202faa][_0x33f1('0xbf')][_0x33f1('0x57')];_0x4388d5++){const _0x1b7f6c=_0x2deb27[_0x202faa][_0x33f1('0xbf')][_0x4388d5];if(!_0x491e63[_0x33f1('0xa7')](_0x1b7f6c))continue;const {group:_0x40ca71,type:_0x355129}=_0x534999(_0x1b7f6c);if(_0x33f1('0xd7')!=_0x40ca71||_0x33f1('0x41')!=_0x355129&&_0x33f1('0x16')!=_0x355129)continue;_0x2deb27[_0x202faa][_0x33f1('0xbf')][_0x33f1('0x8b')](_0x4388d5,0x1),_0x4388d5--;const _0x2b10f2=_0x1f59cc[_0x33f1('0xb7')](_0x868196=>_0x868196[_0x33f1('0x9d')]==_0x1b7f6c);_0x2b10f2>-0x1&&_0x1f59cc[_0x33f1('0x8b')](_0x2b10f2,0x1);}}function _0x534999(_0x389a11){const _0x5e72e3=_0x389a11[_0x33f1('0x40')](':');return{'group':_0x5e72e3[0x0],'type':_0x5e72e3[0x1],'subType':_0x5e72e3['length']>=0x5?_0x5e72e3[0x2]:null,'id':_0x5e72e3[_0x33f1('0x57')]<0x5?_0x5e72e3[0x2]:_0x5e72e3[0x3],'authorId':_0x5e72e3[_0x33f1('0x57')]<0x5?_0x5e72e3[0x3]:_0x5e72e3[0x4],'markerCount':0x6==_0x5e72e3[_0x33f1('0x57')]?_0x5e72e3[0x5]:null};}function _0x4b8b32(_0x35af30){for(let _0x4bb004=0x0;_0x4bb004<_0x1f59cc['length'];_0x4bb004++){if(_0x35af30[_0x33f1('0xd2')]&&_0x33f1('0x41')==_0x1f59cc[_0x4bb004][_0x33f1('0x9f')])return _0x35af30[_0x33f1('0x46')]=_0x1f59cc[_0x4bb004],void delete _0x35af30[_0x33f1('0xd2')];if(!_0x35af30['isAdded']&&!_0x35af30['isRemoved']&&_0x33f1('0x16')==_0x1f59cc[_0x4bb004][_0x33f1('0x9f')])return void(_0x35af30[_0x33f1('0x62')]=_0x1f59cc[_0x4bb004]);}}}[_0x33f1('0x81')](_0x5e88be,_0x2b65c3){let _0x3b1bbf=0x0,_0x440da7=!0x1;const _0xfeb72f=new Map();for(const _0x537e56 of _0x5e88be)_0x537e56[_0x2b65c3]?_0x440da7&&(_0x3b1bbf++,_0x440da7=!0x1):(_0x3b1bbf++,_0x440da7=!0x0),_0xfeb72f[_0x33f1('0x17')](_0x537e56['id'],_0x3b1bbf);for(let _0xe99176=0x0;_0xe99176<_0x5e88be[_0x33f1('0x57')];_0xe99176++){if(_0x33f1('0x3')==_0x2b65c3&&_0x5e88be[_0xe99176][_0x33f1('0xd2')]||_0x33f1('0xd2')==_0x2b65c3&&_0x5e88be[_0xe99176][_0x33f1('0x3')])continue;if(_0x33f1('0x7e')==_0x5e88be[_0xe99176][_0x33f1('0x9f')]){_0x5e88be[_0xe99176][_0x33f1('0x32')]=0x0;continue;}const _0x55ecaf=_0xfeb72f[_0x33f1('0x9e')](_0x5e88be[_0xe99176][_0x33f1('0xa3')]),_0x197af9=_0xfeb72f[_0x33f1('0x9e')](_0x5e88be[_0xe99176]['id']);_0x5e88be[_0xe99176][_0x33f1('0x32')]=_0x55ecaf-_0x197af9;}}['_getRevisionsRange'](_0x36ff0,_0x1b629a,_0x5d8b4c=!0x1){const _0x4724b4=[];let _0x23a9ef=this[_0x33f1('0x105')][_0x33f1('0xc3')](_0x36ff0),_0x564394=this[_0x33f1('0x105')][_0x33f1('0xc3')](_0x1b629a);for(-0x1==_0x564394&&(_0x564394=this[_0x33f1('0x105')]['_revisions'][_0x33f1('0x57')],_0x5d8b4c=!0x1);_0x23a9ef<_0x564394;)_0x4724b4[_0x33f1('0x2c')](this['repository'][_0x33f1('0x75')](_0x23a9ef)),_0x23a9ef++;return _0x5d8b4c&&_0x4724b4[_0x33f1('0x2c')](this[_0x33f1('0x105')][_0x33f1('0x75')](_0x23a9ef)),_0x4724b4;}[_0x33f1('0xd1')](_0x554f77,_0x4a7cf6,_0x299df7,_0x2cf5eb){const _0x31de0a=this[_0x33f1('0x59')]['model'][_0x33f1('0x10e')];let _0x358788=_0x4a7cf6;for(;_0x554f77[_0x358788]&&_0x554f77[_0x358788]['isAdded'];)_0x358788++;let _0x2a49fe=_0x2cf5eb;for(;_0x299df7[_0x2a49fe]&&_0x299df7[_0x2a49fe]['isRemoved'];)_0x2a49fe++;_0x52f4f3(_0x554f77,_0x4a7cf6,_0x358788),_0x52f4f3(_0x299df7,_0x2cf5eb,_0x2a49fe);const _0x11a732=_0x299df7[_0x33f1('0x34')](_0x2cf5eb,_0x2a49fe)['concat'](_0x554f77[_0x33f1('0x34')](_0x4a7cf6,_0x358788));return _0x11a732['sort']((_0x1ec614,_0x38a611)=>_0x1ec614[_0x33f1('0x110')]!=_0x38a611[_0x33f1('0x110')]?_0x1ec614[_0x33f1('0x110')]-_0x38a611[_0x33f1('0x110')]:_0x1ec614[_0x33f1('0x85')]!=_0x38a611[_0x33f1('0x85')]?_0x1ec614['level']-_0x38a611[_0x33f1('0x85')]:_0x1ec614[_0x33f1('0x32')]!=_0x38a611[_0x33f1('0x32')]?_0x38a611[_0x33f1('0x32')]-_0x1ec614['distance']:!!_0x1ec614[_0x33f1('0xd2')]!=!!_0x38a611[_0x33f1('0xd2')]?-0x1==_0x1ec614['side']||0x0==_0x1ec614[_0x33f1('0x110')]?_0x1ec614[_0x33f1('0xd2')]?-0x1:0x1:_0x1ec614[_0x33f1('0xd2')]?0x1:-0x1:_0x1ec614[_0x33f1('0xcd')]-_0x38a611['index']),{'commonTape':_0x11a732,'iEnd':_0x358788,'jEnd':_0x2a49fe};function _0x52f4f3(_0xf33e35,_0x5c5c88,_0x3e5548){let _0x1eb31b=-0x1,_0x16b929=Number[_0x33f1('0x84')],_0x6ce896=!0x0;for(let _0x2f4c52=_0x5c5c88;_0x2f4c52<_0x3e5548;_0x2f4c52++)if(_0x31de0a[_0x33f1('0x51')](_0xf33e35[_0x2f4c52]['item'])||(_0x6ce896=!0x1),_0xf33e35[_0x2f4c52][_0x33f1('0x66')][_0x33f1('0xce')]<_0x5c5c88&&(_0x1eb31b=_0x2f4c52),_0xf33e35[_0x2f4c52][_0x33f1('0x66')][_0x33f1('0x8')]>=_0x3e5548){_0x16b929=_0x2f4c52;break;}_0x6ce896&&(_0x1eb31b=_0x3e5548-0x1);for(let _0x1169a0=_0x5c5c88;_0x1169a0<_0x3e5548;_0x1169a0++)_0xf33e35[_0x1169a0][_0x33f1('0x110')]=_0x1169a0<=_0x1eb31b?-0x1:_0x1169a0<_0x16b929?0x0:0x1,_0xf33e35[_0x1169a0]['index']=_0x1169a0;let _0x580fec=0x0;for(let _0x5a7d9e=_0x5c5c88;_0x5a7d9e<=_0x1eb31b;_0x5a7d9e++)0x0==_0xf33e35[_0x5a7d9e]['distance']?_0xf33e35[_0x5a7d9e][_0x33f1('0x85')]=_0x580fec:(_0x580fec++,_0xf33e35[_0x5a7d9e]['level']=_0x580fec,_0x580fec++);for(let _0x5e1c92=_0x5c5c88;_0x5e1c92<_0x3e5548;_0x5e1c92++)0x0==_0xf33e35[_0x5e1c92][_0x33f1('0x110')]&&(_0xf33e35[_0x5e1c92][_0x33f1('0x85')]=_0x580fec);_0x580fec=0x0;for(let _0x36a336=_0x3e5548-0x1;_0x36a336>=_0x16b929;_0x36a336--)0x0==_0xf33e35[_0x36a336][_0x33f1('0x32')]?_0xf33e35[_0x36a336][_0x33f1('0x85')]=_0x580fec:(_0x580fec--,_0xf33e35[_0x36a336]['level']=_0x580fec,_0x580fec--);}}[_0x33f1('0xdc')](_0x536a35){const _0x40f48d=new Map(),_0x1da67e=this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x10e')];for(let _0x19f670=0x1;_0x19f670<_0x536a35[_0x33f1('0x57')];_0x19f670++){let _0x2a8c82,_0x3bf8dd,_0x555526;const _0x4fb290=_0x536a35[_0x19f670],_0x5c1685=_0x536a35[_0x19f670-0x1];if(_0x33f1('0x7e')==_0x4fb290[_0x33f1('0x9f')])continue;if(_0x4fb290[_0x33f1('0x9f')]!=_0x5c1685['type'])continue;if(!_0x1da67e[_0x33f1('0x4c')](_0x5c1685[_0x33f1('0x66')])||_0x1da67e[_0x33f1('0x6b')](_0x5c1685['item']))continue;if(!_0x1da67e[_0x33f1('0x4c')](_0x4fb290[_0x33f1('0x66')])||_0x1da67e['isLimit'](_0x4fb290[_0x33f1('0x66')]))continue;if((_0x536a35[_0x19f670][_0x33f1('0xd2')]||_0x536a35[_0x19f670][_0x33f1('0x46')])&&_0x536a35[_0x19f670-0x1][_0x33f1('0x3')])_0x2a8c82=_0x536a35[_0x19f670],_0x3bf8dd=_0x536a35[_0x19f670-0x1],_0x555526=_0x19f670-0x1;else{if(!_0x536a35[_0x19f670][_0x33f1('0x3')]||!_0x536a35[_0x19f670-0x1][_0x33f1('0xd2')]&&!_0x536a35[_0x19f670-0x1][_0x33f1('0x46')])continue;_0x2a8c82=_0x536a35[_0x19f670-0x1],_0x3bf8dd=_0x536a35[_0x19f670],_0x555526=_0x19f670;}const _0x2f2249=_0x2a8c82[_0x33f1('0x85')]==_0x3bf8dd[_0x33f1('0x85')],_0x27fa6a=Math['abs'](_0x2a8c82[_0x33f1('0x85')])<Math[_0x33f1('0x2d')](_0x3bf8dd[_0x33f1('0x85')])&&0x0==_0x3bf8dd[_0x33f1('0x32')];(_0x2f2249||_0x27fa6a)&&(_0x40f48d[_0x33f1('0x17')](_0x3bf8dd['id'],_0x2a8c82['id']),_0x536a35['splice'](_0x555526,0x1),_0x19f670--,_0x2a8c82[_0x33f1('0xd2')]=!0x1);}for(let _0x550a8f=0x0;_0x550a8f<_0x536a35['length'];_0x550a8f++)_0x40f48d[_0x33f1('0xa7')](_0x536a35[_0x550a8f]['pairId'])&&(_0x536a35[_0x550a8f][_0x33f1('0xa3')]=_0x40f48d['get'](_0x536a35[_0x550a8f]['pairId']));}[_0x33f1('0xa')](_0x3bae7a){const _0x16bd30=new Set(_0x3bae7a['map'](_0x36761d=>_0x36761d['id']));for(let _0x5e1e78=0x0;_0x5e1e78<_0x3bae7a[_0x33f1('0x57')];_0x5e1e78++)_0x16bd30[_0x33f1('0xa7')](_0x3bae7a[_0x5e1e78]['pairId'])||0x0==_0x3bae7a[_0x5e1e78][_0x33f1('0x32')]||(_0x3bae7a[_0x5e1e78][_0x33f1('0x3f')]=!0x0);return _0x3bae7a['filter'](_0x25e7e1=>!_0x25e7e1[_0x33f1('0x3f')]);}[_0x33f1('0x60')](_0x1f7e3b){const _0x557999=new Set();for(let _0x20424e=0x0;_0x20424e<_0x1f7e3b[_0x33f1('0x57')];_0x20424e++){if(_0x557999['has'](_0x1f7e3b[_0x20424e]['id'])&&_0x1f7e3b[_0x20424e]['isRemoved']&&(_0x1f7e3b[_0x20424e][_0x33f1('0x3f')]=!0x0),_0x1f7e3b[_0x20424e]['isIncorrect'])continue;if(0x0==_0x1f7e3b[_0x20424e][_0x33f1('0x32')])continue;if(_0x33f1('0xb2')!=_0x1f7e3b[_0x20424e]['type'])continue;if(null==_0x1f7e3b[_0x20424e][_0x33f1('0xa3')])continue;let _0x220eb0=_0x20424e+0x1,_0x31a88a=0x0;for(;_0x1f7e3b[_0x220eb0]['id']!=_0x1f7e3b[_0x20424e]['pairId'];)'elementStart'==_0x1f7e3b[_0x220eb0][_0x33f1('0x9f')]?_0x31a88a++:_0x33f1('0x97')==_0x1f7e3b[_0x220eb0][_0x33f1('0x9f')]&&_0x31a88a--,_0x220eb0++;if(0x0!=_0x31a88a){if(_0x1f7e3b[_0x20424e][_0x33f1('0x3')])_0x1f7e3b[_0x20424e][_0x33f1('0x3f')]=!0x0;else for(;_0x220eb0!=_0x20424e;)_0x1f7e3b[_0x220eb0][_0x33f1('0x3')]&&0x0!=_0x1f7e3b[_0x220eb0][_0x33f1('0x32')]&&(_0x1f7e3b[_0x220eb0][_0x33f1('0x3f')]=!0x0,_0x557999[_0x33f1('0xcb')](_0x1f7e3b[_0x220eb0][_0x33f1('0xa3')])),_0x220eb0--;}}return _0x1f7e3b[_0x33f1('0x5')](_0x668422=>!_0x668422['isIncorrect']);}['_removeUnsupportedChanges'](_0x47694a){const _0x867880=this['editor']['model'][_0x33f1('0x10e')];for(let _0x40dd3f=0x0;_0x40dd3f<_0x47694a['length'];_0x40dd3f++){if(!(_0x47694a[_0x40dd3f][_0x33f1('0xd2')]||_0x47694a[_0x40dd3f][_0x33f1('0x46')]||_0x47694a[_0x40dd3f][_0x33f1('0x3')]||_0x47694a[_0x40dd3f]['isRemoveSuggestion']))continue;if(0x0==_0x47694a[_0x40dd3f][_0x33f1('0x32')])continue;const _0xa65fbb=_0x47694a[_0x40dd3f][_0x33f1('0x66')];_0x867880[_0x33f1('0x4c')](_0xa65fbb)||_0x867880[_0x33f1('0x6b')](_0xa65fbb)||(_0x47694a[_0x40dd3f]['isAdded']&&delete _0x47694a[_0x40dd3f][_0x33f1('0xd2')],_0x47694a[_0x40dd3f]['isAddSuggestion']&&delete _0x47694a[_0x40dd3f][_0x33f1('0x46')],_0x47694a[_0x40dd3f][_0x33f1('0x62')]&&delete _0x47694a[_0x40dd3f][_0x33f1('0x62')],_0x47694a[_0x40dd3f][_0x33f1('0x3')]&&(_0x47694a[_0x40dd3f]['isIncorrect']=!0x0));}return _0x47694a[_0x33f1('0x5')](_0x2df924=>!_0x2df924[_0x33f1('0x3f')]);}['_makeModelFromTape'](_0x2c410b,_0x2d2650,_0x59f4f7){const _0x50c8e6=new _0x1c3171(),_0x152140=[],_0x330c1d=new Map(),_0x4d5a25=this[_0x33f1('0x59')][_0x33f1('0x61')],_0xdaa1e9=_0x4d5a25[_0x33f1('0x10e')],_0x31c116=[_0x50c8e6],_0x21f3f7={},_0x238f2c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x33016b=null;const _0x2e0559=[0x0];for(let _0x16552c=0x0;_0x16552c<_0x2c410b[_0x33f1('0x57')];_0x16552c++){let _0x1bfade,_0x2c0b73;if(_0x33f1('0xb2')===_0x2c410b[_0x16552c][_0x33f1('0x9f')]){_0x1bfade=_0x4d5a25[_0x33f1('0x77')](_0x50c8e6,_0x2e0559);const _0x358f48=new _0x5d6db1(_0x2c410b[_0x16552c][_0x33f1('0x66')][_0x33f1('0x9d')],_0x2c410b[_0x16552c][_0x33f1('0x66')][_0x33f1('0xc5')]());_0x31c116[0x0][_0x33f1('0xb6')](_0x358f48),_0x2e0559[_0x33f1('0x2c')](0x0),_0x31c116[_0x33f1('0x103')](_0x358f48),_0x2c0b73=_0x4d5a25['createPositionFromPath'](_0x50c8e6,_0x2e0559),_0x33016b=null;}else{if(_0x33f1('0x97')===_0x2c410b[_0x16552c]['type'])_0x31c116[_0x33f1('0xdf')](),_0x1bfade=_0x4d5a25[_0x33f1('0x77')](_0x50c8e6,_0x2e0559),_0x2e0559[_0x33f1('0x121')](),_0x2e0559[_0x2e0559['length']-0x1]++,_0x2c0b73=_0x4d5a25[_0x33f1('0x77')](_0x50c8e6,_0x2e0559),_0x33016b=null;else{if(_0x1bfade=_0x4d5a25['createPositionFromPath'](_0x50c8e6,_0x2e0559),_0x33016b&&_0x556a09(_0x33016b,_0x2c410b[_0x16552c][_0x33f1('0x66')]))_0x33016b[_0x33f1('0x6f')]+=_0x2c410b[_0x16552c][_0x33f1('0x66')][_0x33f1('0xeb')];else{const _0x5d7af9=new _0x5769c8(_0x2c410b[_0x16552c]['item'][_0x33f1('0xeb')],_0x2c410b[_0x16552c][_0x33f1('0x66')][_0x33f1('0xc5')]());_0x31c116[0x0][_0x33f1('0xb6')](_0x5d7af9),_0x33016b=_0x5d7af9;}_0x2e0559[_0x2e0559[_0x33f1('0x57')]-0x1]+=_0x2c410b[_0x16552c]['item'][_0x33f1('0xec')],_0x2c0b73=_0x4d5a25['createPositionFromPath'](_0x50c8e6,_0x2e0559);}}for(const _0x21560c of _0x2c410b[_0x16552c][_0x33f1('0xa4')])_0x330c1d['set'](_0x21560c,{'start':_0x1bfade,'end':null});_0x1eac05('isRemoveSuggestion',_0x16552c,_0x1bfade,_0x2c0b73),_0x1eac05(_0x33f1('0x46'),_0x16552c,_0x1bfade,_0x2c0b73),_0x1eac05('isRemoved',_0x16552c,_0x1bfade,_0x2c0b73),_0x1eac05(_0x33f1('0xd2'),_0x16552c,_0x1bfade,_0x2c0b73);for(const _0x433b69 of _0x2c410b[_0x16552c]['markersEnd']){_0x330c1d[_0x33f1('0x9e')](_0x433b69)['end']=_0x2c0b73;}}for(const [_0x5d652e,_0x1b3f62]of _0x330c1d){const _0x4469eb=this['editor'][_0x33f1('0x61')][_0x33f1('0xf1')](_0x1b3f62[_0x33f1('0xd5')],_0x1b3f62[_0x33f1('0x11')]);_0x50c8e6['markers'][_0x33f1('0x17')](_0x5d652e,_0x4469eb);}return _0x152140[_0x33f1('0xaf')]((_0x3c9fde,_0x47db54)=>{const _0x48eb15=_0x50c8e6[_0x33f1('0x5c')][_0x33f1('0x9e')](_0x33f1('0x93')+_0x3c9fde['id']),_0x156b2a=_0x50c8e6[_0x33f1('0x5c')][_0x33f1('0x9e')](_0x33f1('0x93')+_0x47db54['id']);return _0x48eb15[_0x33f1('0xd5')][_0x33f1('0x4f')](_0x156b2a['start'])?-0x1:_0x48eb15[_0x33f1('0xd5')][_0x33f1('0x10b')](_0x156b2a[_0x33f1('0xd5')])?0x1:_0x48eb15[_0x33f1('0x11')]['isBefore'](_0x156b2a[_0x33f1('0x11')])?-0x1:_0x48eb15['end'][_0x33f1('0x10b')](_0x156b2a[_0x33f1('0x11')])?0x1:'add'===_0x3c9fde[_0x33f1('0x9f')]?-0x1:0x1;}),{'root':_0x50c8e6,'changes':_0x152140};function _0x1eac05(_0x204353,_0x5bb937,_0x1427b7,_0x1d0b10){const _0x4695c1=!!_0x2c410b[_0x5bb937][_0x204353],_0x5a8bc3=_0x4695c1?_0x2c410b[_0x5bb937][_0x204353]['userId']:null,_0x22ee40=_0x5bb937===_0x2c410b[_0x33f1('0x57')]-0x1,_0x2dfde1=_0x238f2c[_0x204353][0x0],_0x44cb83=_0xdaa1e9[_0x33f1('0x10d')](_0x2c410b[_0x5bb937][_0x33f1('0x66')]);!_0x21f3f7[_0x204353]&&_0x4695c1?_0x21f3f7[_0x204353]={'start':_0x1427b7,'tapeItem':_0x2c410b[_0x5bb937],'userId':_0x5a8bc3,'type':_0x204353}:_0x21f3f7[_0x204353]&&!_0x4695c1?(_0x21f3f7[_0x204353][_0x33f1('0x11')]=_0x1427b7,_0x3b56fc(_0x21f3f7[_0x204353]),_0x21f3f7[_0x204353]=null):_0x21f3f7[_0x204353]&&_0x4695c1&&_0x21f3f7[_0x204353][_0x33f1('0x11f')]!==_0x5a8bc3&&(_0x21f3f7[_0x204353][_0x33f1('0x11')]=_0x1427b7,_0x2dfde1&&_0x2dfde1['userId']===_0x21f3f7[_0x204353][_0x33f1('0x11f')]||_0x3b56fc(_0x21f3f7[_0x204353]),_0x21f3f7[_0x204353]={'start':_0x1427b7,'tapeItem':_0x2c410b[_0x5bb937],'userId':_0x5a8bc3,'type':_0x204353}),_0x21f3f7[_0x204353]&&_0x44cb83&&(_0x33f1('0xb2')!==_0x2c410b[_0x5bb937][_0x33f1('0x9f')]||_0x2dfde1&&_0x2dfde1[_0x33f1('0x11f')]===_0x5a8bc3||_0x238f2c[_0x204353][_0x33f1('0x103')]({'userId':_0x5a8bc3,'object':_0x2c410b[_0x5bb937][_0x33f1('0x66')],'change':_0x21f3f7[_0x204353]}),_0x33f1('0x97')===_0x2c410b[_0x5bb937]['type']&&_0x2dfde1&&_0x2dfde1[_0x33f1('0x74')]===_0x2c410b[_0x5bb937][_0x33f1('0x66')]&&(_0x238f2c[_0x204353][_0x33f1('0xdf')](),_0x21f3f7[_0x204353]=_0x2dfde1[_0x33f1('0x55')])),_0x21f3f7[_0x204353]&&_0x22ee40&&(_0x21f3f7[_0x204353][_0x33f1('0x11')]=_0x1d0b10,_0x3b56fc(_0x21f3f7[_0x204353]),_0x21f3f7[_0x204353]=null);}function _0x3b56fc({start:_0x1444df,end:_0x5c1feb,tapeItem:_0x1bfbec,userId:_0x33ba39,type:_0x562492}){const _0xba256d=_0x1bfbec[_0x33f1('0x66')],_0x5f3959=_0x4d5a25[_0x33f1('0x10e')][_0x33f1('0x4c')](_0xba256d)&&!_0x4d5a25[_0x33f1('0x10e')][_0x33f1('0x6b')](_0xba256d),_0x435ab9=_0x1444df[_0x33f1('0xae')]==_0x5c1feb['parent']&&_0x5c1feb[_0x33f1('0x88')];if(_0x5f3959&&_0x435ab9)return;const _0x26f5cb=_0x4d5a25[_0x33f1('0xf1')](_0x1444df,_0x5c1feb),_0x3e5487=_0x2d2650[_0x33f1('0x9e')](_0x33ba39),_0x38d3c6=new _0x530a17({'author':_0x3e5487,'type':_0x33f1('0xd2')==_0x562492||_0x33f1('0x46')==_0x562492?_0x33f1('0xcb'):_0x33f1('0x2e'),'data':{'isSuggestion':_0x33f1('0x46')==_0x562492||'isRemoveSuggestion'==_0x562492},'createdAt':new Date(),'rootName':_0x59f4f7});_0x152140['push'](_0x38d3c6),_0x50c8e6[_0x33f1('0x5c')][_0x33f1('0x17')]('revision:'+_0x38d3c6['id'],_0x26f5cb);}function _0x556a09(_0x40f28a,_0x20cef9){const _0x37cdc3=_0x40f28a[_0x33f1('0xc5')](),_0x303c34=_0x20cef9['getAttributes']();for(const _0x498963 of _0x37cdc3){if(_0x498963[0x1]!==_0x20cef9[_0x33f1('0x1a')](_0x498963[0x0]))return!0x1;_0x303c34[_0x33f1('0xaa')]();}return _0x303c34[_0x33f1('0xaa')]()['done'];}}[_0x33f1('0x7f')](){this[_0x33f1('0x59')][_0x33f1('0x116')]['for'](_0x33f1('0xfa'))[_0x33f1('0x22')]({'view':_0x33f1('0xe9')}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0x82'))['markerToHighlight']({'model':_0x33f1('0xe9'),'view':_0x5191f4=>{const _0x5ef2b2=_0x5191f4[_0x33f1('0x8a')][_0x33f1('0x40')](':')[0x1],_0x2895a9=this[_0x33f1('0x31')](_0x5ef2b2);if(!_0x2895a9)return null;const _0x4d6237=_0x33f1('0xcb')==_0x2895a9[_0x33f1('0x9f')]?_0x33f1('0x41'):_0x33f1('0x16'),_0x559a98=[_0x33f1('0x4'),'ck-suggestion-marker-'+_0x4d6237];return _0x2895a9['data'][_0x33f1('0x113')]&&_0x559a98[_0x33f1('0x2c')](_0x33f1('0x8f')+_0x4d6237+_0x33f1('0x15')),this['activeChange']==_0x2895a9&&_0x559a98[_0x33f1('0x2c')]('ck-suggestion-marker--active'),{'classes':_0x559a98,'attributes':{'data-change-id':_0x5ef2b2}};}}),this['editor']['conversion'][_0x33f1('0xb0')]('upcast')[_0x33f1('0xcb')](_0xe99711=>{_0xe99711['on'](_0x33f1('0x5a'),(_0x2af955,_0x2833d0,_0x4d5a89)=>{const _0x96979b=_0x2833d0[_0x33f1('0xa8')][_0x33f1('0x3a')](0x0);if(!_0x96979b||!_0x96979b['is'](_0x33f1('0xdb'),_0x33f1('0xb5')))return;if(!_0x4d5a89[_0x33f1('0x43')][_0x33f1('0x13')](_0x96979b,{'attributes':[_0x33f1('0xef'),_0x33f1('0xde')]}))return;const _0x2c618f=_0x2833d0[_0x33f1('0xd9')][_0x33f1('0xd5')][_0x33f1('0xae')];_0x4d5a89['writer']['setAttribute']('vid_start',_0x96979b[_0x33f1('0x1a')](_0x33f1('0xef')),_0x2c618f),_0x4d5a89[_0x33f1('0x111')][_0x33f1('0xa2')](_0x33f1('0xde'),_0x96979b[_0x33f1('0x1a')]('vid_end'),_0x2c618f);},{'priority':_0x33f1('0xbc')});}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xfa'))['add'](_0x5f05cd=>{_0x5f05cd['on'](_0x33f1('0xdb'),(_0x4df8d5,_0x3b2d5d,_0x529a02)=>{if(!_0x529a02[_0x33f1('0x43')][_0x33f1('0x13')](_0x3b2d5d[_0x33f1('0xa8')],{'attributes':[_0x33f1('0xef'),'vid_end']}))return;if(_0x3b2d5d[_0x33f1('0xd9')][_0x33f1('0x118')])return;const _0x3f6580=_0x3b2d5d[_0x33f1('0xd9')]['start'][_0x33f1('0xae')];_0x3f6580[_0x33f1('0x114')]('vid_start')||_0x3f6580[_0x33f1('0x114')]('vid')||(_0x529a02[_0x33f1('0x111')][_0x33f1('0xa2')]('vid_start',_0x3b2d5d[_0x33f1('0xa8')][_0x33f1('0x1a')]('vid_start'),_0x3f6580),_0x529a02[_0x33f1('0x111')][_0x33f1('0xa2')]('vid_end',_0x3b2d5d['viewItem'][_0x33f1('0x1a')](_0x33f1('0xde')),_0x3f6580));},{'priority':'low'});}),this[_0x33f1('0x59')][_0x33f1('0x116')]['for']('upcast')['elementToAttribute']({'view':{'name':_0x33f1('0x4e'),'attributes':{'vid':!0x0}},'model':{'key':_0x33f1('0xb'),'value':_0x547ab3=>_0x547ab3['getAttribute'](_0x33f1('0xb'))}}),this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x10e')]['on']('checkAttribute',(_0x461ec2,[,_0x57d4f1])=>{['vid_start',_0x33f1('0xde'),'vid']['includes'](_0x57d4f1)&&(_0x461ec2[_0x33f1('0xb8')]=!0x0,_0x461ec2['stop']());},{'priority':_0x33f1('0xf0')}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xd8'))[_0x33f1('0xcb')](_0x403b11=>{_0x403b11['on'](_0x33f1('0x7c'),(_0x27ef56,_0x3f802f,_0x53a7c5)=>{if('\x20'!=_0x3f802f[_0x33f1('0x66')][_0x33f1('0xeb')]||_0x3f802f[_0x33f1('0x66')][_0x33f1('0xbb')][_0x33f1('0x6c')]>0x1)return;if(!_0x53a7c5[_0x33f1('0x43')][_0x33f1('0x13')](_0x3f802f[_0x33f1('0x66')],_0x27ef56[_0x33f1('0x9d')]))return;const _0x3f3248=_0x53a7c5[_0x33f1('0x111')],_0x1d4a6a=_0x53a7c5[_0x33f1('0x80')][_0x33f1('0x38')](_0x3f802f['range']);_0x3f3248['wrap'](_0x1d4a6a,_0x3f3248['createAttributeElement'](_0x33f1('0x4e')));});}),this['editor'][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xd8'))['markerToData']({'model':_0x33f1('0xe9')}),this[_0x33f1('0x59')]['editing'][_0x33f1('0xba')]['on'](_0x33f1('0x8c'),function(_0x2645dd){const _0x5dab52=_0x2645dd[_0x33f1('0x119')][_0x33f1('0x9e')](_0x33f1('0x10'));return(_0x2d4ce7,_0x23c6b9,_0x1abd10)=>{const _0x5aabdb=_0x23c6b9['markerName']['split'](':')[0x1],_0x352f07=_0x5dab52[_0x33f1('0x31')](_0x5aabdb);if(!_0x352f07)return null;const _0x307dde='add'==_0x352f07[_0x33f1('0x9f')]?_0x33f1('0x40'):_0x33f1('0xb1');if(!_0x1abd10[_0x33f1('0x43')][_0x33f1('0xee')](_0x23c6b9[_0x33f1('0x65')],_0x2d4ce7[_0x33f1('0x9d')]))return;const _0x481cf1=_0x23c6b9[_0x33f1('0x65')][_0x33f1('0xca')](),_0x47ad1a=_0x23c6b9['markerRange'][_0x33f1('0xd5')],_0x25c737=_0x2645dd[_0x33f1('0x61')][_0x33f1('0x10e')];let _0x30af56=null,_0x588aab=null,_0x40f8fd=!0x1,_0xadbc0c=!0x1;for(const _0x4eb011 of _0x481cf1){const _0x1fa850=_0x4eb011[_0x33f1('0x66')];_0x40f8fd=_0x40f8fd||_0x25c737['isContent'](_0x1fa850);const _0x3b604a=_0x1abd10['mapper'][_0x33f1('0x3e')](_0x1fa850);if(_0x3b604a&&_0x3b604a[_0x33f1('0x86')]('addHighlight'))return;_0x33f1('0x97')==_0x4eb011['type']&&(_0x25c737[_0x33f1('0x4c')](_0x1fa850)&&!_0x25c737['isLimit'](_0x1fa850)&&(_0x1fa850['nextSibling']||_0x47ad1a['isAtEnd']?_0x30af56&&_0x30af56[_0x33f1('0xbb')]==_0x1fa850||(_0x30af56=_0x1fa850,_0x3528a1(_0x4eb011[_0x33f1('0x27')]),_0xadbc0c=!0x0):_0x588aab=_0x588aab||_0x4eb011[_0x33f1('0x27')]));}function _0x3528a1(_0x487a30){const _0x1c22f4=_0x1abd10[_0x33f1('0x111')][_0x33f1('0xc9')]('span',{'class':_0x33f1('0x8f')+_0x307dde}),_0x175b72=_0x1abd10[_0x33f1('0x80')]['toViewPosition'](_0x487a30);_0x352f07[_0x33f1('0xeb')][_0x33f1('0x113')]&&_0x1abd10[_0x33f1('0x111')][_0x33f1('0x7a')](_0x33f1('0x8f')+_0x307dde+_0x33f1('0x15'),_0x1c22f4),_0x5dab52[_0x33f1('0xf2')]==_0x352f07&&_0x1abd10[_0x33f1('0x111')][_0x33f1('0x7a')](_0x33f1('0xc8'),_0x1c22f4),_0x1abd10[_0x33f1('0x111')][_0x33f1('0x14')](_0x175b72,_0x1c22f4),_0x1abd10[_0x33f1('0x80')]['bindElementToMarker'](_0x1c22f4,_0x23c6b9[_0x33f1('0x8a')]);}_0x40f8fd||_0xadbc0c||!_0x588aab||_0x3528a1(_0x588aab);};}(this['editor']),{'priority':_0x33f1('0xa9')}),this[_0x33f1('0x59')][_0x33f1('0xfe')]['downcastDispatcher']['on'](_0x33f1('0x99'),(_0x46f28f,_0x1370a8,_0x5e994e)=>{const _0x1a8d1e=_0x5e994e[_0x33f1('0x80')]['markerNameToElements'](_0x1370a8[_0x33f1('0x8a')]);if(_0x1a8d1e)for(const _0x31ba58 of _0x1a8d1e)(_0x31ba58[_0x33f1('0x102')](_0x33f1('0x2f'))||_0x31ba58[_0x33f1('0x102')](_0x33f1('0x6a')))&&(_0x5e994e[_0x33f1('0x80')]['unbindElementFromMarkerName'](_0x31ba58,_0x1370a8[_0x33f1('0x8a')]),_0x5e994e[_0x33f1('0x111')][_0x33f1('0x2e')](_0x31ba58));},{'priority':_0x33f1('0xa9')}),this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xba')]['on'](_0x33f1('0x8c'),(_0xa9cfcc,_0x3480f0,_0x291784)=>{const _0x1bfe28=_0x3480f0[_0x33f1('0x8a')]['split'](':')[0x1],_0xde8351=this[_0x33f1('0x31')](_0x1bfe28);if(!_0xde8351)return null;const _0x19d2ce=_0x33f1('0xcb')==_0xde8351['type']?_0x33f1('0x40'):_0x33f1('0xb1');if(_0x291784[_0x33f1('0x43')][_0x33f1('0xee')](_0x3480f0[_0x33f1('0x65')],_0xa9cfcc['name']))for(const _0x46be29 of _0x3480f0[_0x33f1('0x65')][_0x33f1('0x115')]()){if(!_0x46be29['is']('element',_0x33f1('0xa5')))continue;const _0x405e24=_0x291784[_0x33f1('0x111')][_0x33f1('0xc9')]('span',{'class':'ck-suggestion-marker-'+_0x19d2ce}),_0x23bcce=_0x291784[_0x33f1('0x80')][_0x33f1('0x9a')](this[_0x33f1('0x59')][_0x33f1('0x61')]['createPositionBefore'](_0x46be29));_0xde8351['data']['isSuggestion']&&_0x291784[_0x33f1('0x111')][_0x33f1('0x7a')](_0x33f1('0x8f')+_0x19d2ce+_0x33f1('0x15'),_0x405e24),this[_0x33f1('0xf2')]==_0xde8351&&_0x291784[_0x33f1('0x111')][_0x33f1('0x7a')](_0x33f1('0xc8'),_0x405e24),_0x291784[_0x33f1('0x111')][_0x33f1('0x14')](_0x23bcce,_0x405e24),_0x291784[_0x33f1('0x80')][_0x33f1('0x91')](_0x405e24,_0x3480f0[_0x33f1('0x8a')]);}},{'priority':_0x33f1('0xa9')}),this['editor'][_0x33f1('0x61')][_0x33f1('0xc2')]['on']('change',()=>{this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0x55')](_0x541e8f=>{for(const _0x27a73d of this[_0x33f1('0x59')]['model']['document'][_0x33f1('0xf4')]()){const _0x6dd381=this[_0x33f1('0x59')]['model']['document'][_0x33f1('0x95')](_0x27a73d),_0x1ebbac=this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')]['document'][_0x33f1('0x95')](_0x27a73d);if(_0x1ebbac){const _0x4618df=_0x6dd381[_0x33f1('0x1a')](_0x33f1('0x90'));if(_0x541e8f[_0x33f1('0xf5')](_0x33f1('0x2'),_0x1ebbac),_0x541e8f[_0x33f1('0x69')](_0x33f1('0x72'),_0x1ebbac),_0x541e8f[_0x33f1('0x69')](_0x33f1('0x23'),_0x1ebbac),_0x541e8f[_0x33f1('0x69')]('ck-revision-history-root--active',_0x1ebbac),_0x4618df){const _0x28737e=this[_0x33f1('0x31')](_0x4618df);if(!_0x28737e)return null;_0x541e8f[_0x33f1('0xa2')](_0x33f1('0x2'),_0x4618df,_0x1ebbac),_0x541e8f[_0x33f1('0x7a')](_0x33f1('0x7')+_0x28737e[_0x33f1('0x9f')],_0x1ebbac),this[_0x33f1('0xf2')]==_0x28737e&&_0x541e8f[_0x33f1('0x7a')](_0x33f1('0x2a'),_0x1ebbac);}}}});}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xfa'))[_0x33f1('0x22')]({'view':_0x33f1('0x28'),'model':_0x2e693e=>'revision-comment:'+_0x2e693e,'converterPriority':_0x33f1('0xf0')}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xfa'))[_0x33f1('0x22')]({'view':_0x33f1('0xe1'),'model':_0x4218ef=>_0x33f1('0xf7')+_0x4218ef,'converterPriority':_0x33f1('0xf0')}),this[_0x33f1('0x59')][_0x33f1('0x116')][_0x33f1('0xb0')](_0x33f1('0xd8'))['markerToData']({'model':_0x33f1('0xd7'),'view':_0x1dfbad=>({'name':'suggestion:'+_0x1dfbad,'group':'revision-suggestion'}),'converterPriority':_0x33f1('0xf0')}),this[_0x33f1('0x59')]['conversion'][_0x33f1('0xb0')]('editingDowncast')[_0x33f1('0xb4')]({'model':_0x33f1('0xd7'),'view':_0x304883=>{const _0x3f53fc=_0x304883[_0x33f1('0x8a')][_0x33f1('0x40')](':')[0x1];return'insertion'!=_0x3f53fc&&_0x33f1('0x16')!=_0x3f53fc?null:{'classes':[_0x33f1('0x10f'),'ck-suggestion-preview-marker-'+_0x3f53fc]};}}),this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xba')]['on'](_0x33f1('0xd0'),et(this[_0x33f1('0x59')],_0x33f1('0xb1')),{'priority':_0x33f1('0xa9')}),this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xba')]['on'](_0x33f1('0x4b'),et(this[_0x33f1('0x59')],'split'),{'priority':_0x33f1('0xa9')}),this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xba')]['on']('removeMarker:revision-suggestion',(_0x585bcf,_0x33e439,_0x141f47)=>{const _0x3e844a=_0x141f47['mapper'][_0x33f1('0xdd')](_0x33e439['markerName']);if(_0x3e844a)for(const _0x5f492e of _0x3e844a)_0x5f492e['is'](_0x33f1('0x30'))&&(_0x141f47['mapper'][_0x33f1('0x7d')](_0x5f492e,_0x33e439[_0x33f1('0x8a')]),_0x141f47[_0x33f1('0x111')][_0x33f1('0x2e')](_0x5f492e));},{'priority':'high'});}[_0x33f1('0x31')](_0x2ac1d5){return this['_changeIdToChange']['get'](_0x2ac1d5);}['_getViewForChange'](_0x3018c4){return this[_0x33f1('0x0')]&&this[_0x33f1('0x0')][_0x33f1('0x25')](),this[_0x33f1('0x0')]=new _0x4d9298(this[_0x33f1('0x59')][_0x33f1('0xe4')],_0x3018c4),this[_0x33f1('0x0')];}[_0x33f1('0xe5')](){this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0xc2')][_0x33f1('0xa0')][_0x33f1('0x26')](_0x33f1('0xe9')),this['on'](_0x33f1('0x12'),(_0x125a4c,_0x20f659,_0x57aedf,_0x195f5d)=>{_0x195f5d&&this['_balloon'][_0x33f1('0x2e')](_0x195f5d),_0x57aedf&&(this['_balloon']['add']({'view':_0x57aedf,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x55fb2b=this[_0x33f1('0x59')]['editing'],_0x214822=this['_getChangeFromId'](_0x57aedf[_0x33f1('0x24')]);let _0x13e26e;if(_0x214822[_0x33f1('0xeb')][_0x33f1('0x92')]){const _0x56e4ad=_0x55fb2b['view'][_0x33f1('0x89')](_0x214822[_0x33f1('0xab')]);_0x13e26e=Array[_0x33f1('0x49')](_0x56e4ad[_0x33f1('0xe8')]());}else{const _0x2beb09=this['editor'][_0x33f1('0x61')][_0x33f1('0x5c')][_0x33f1('0x9e')]('revision:'+_0x57aedf[_0x33f1('0x24')]);_0x13e26e=Array[_0x33f1('0x49')](_0x55fb2b[_0x33f1('0x80')][_0x33f1('0xdd')](_0x2beb09[_0x33f1('0x9d')]))[_0x33f1('0x5d')](_0x461b48=>_0x55fb2b[_0x33f1('0xe7')][_0x33f1('0x112')]['mapViewToDom'](_0x461b48))[_0x33f1('0x5d')](_0x22c0ba=>Array[_0x33f1('0x49')](_0x22c0ba['getClientRects']()))['flat']();}if(!this[_0x33f1('0xd4')])return _0x13e26e[0x0];return _0x13e26e[_0x33f1('0x100')](_0x5c4478=>_0x5c4478[_0x33f1('0x8d')]-0x3<=this[_0x33f1('0xd4')]['y']&&_0x5c4478[_0x33f1('0x42')]+0x3>=this['_activeViewTarget']['y']&&_0x5c4478[_0x33f1('0x18')]-0x3<=this[_0x33f1('0xd4')]['x']&&_0x5c4478[_0x33f1('0x6d')]+0x3>=this[_0x33f1('0xd4')]['x'])||_0x13e26e[0x0];}}}),this[_0x33f1('0xf6')][_0x33f1('0x73')](_0x33f1('0x21')));}),this['on'](_0x33f1('0x64'),(_0x210d79,_0x35c013,_0x4fb4ee,_0x3a91da)=>{this[_0x33f1('0x10c')]=_0x4fb4ee?this[_0x33f1('0x9c')](_0x4fb4ee):null,this[_0x33f1('0x59')]['model'][_0x33f1('0x55')](()=>{const _0x3252f1=this['editor'][_0x33f1('0xfe')];_0x3a91da&&(_0x3a91da[_0x33f1('0xeb')][_0x33f1('0x92')]?_0x3252f1[_0x33f1('0xe7')][_0x33f1('0x55')](_0x3a84e9=>{_0x3a84e9[_0x33f1('0x69')](_0x33f1('0x2a'),_0x3252f1[_0x33f1('0xe7')][_0x33f1('0xc2')][_0x33f1('0x95')](_0x3a91da[_0x33f1('0xab')]));}):_0x3252f1['reconvertMarker'](_0x33f1('0x93')+_0x3a91da['id'])),_0x4fb4ee&&(_0x4fb4ee[_0x33f1('0xeb')][_0x33f1('0x92')]?_0x3252f1[_0x33f1('0xe7')][_0x33f1('0x55')](_0xc9c3bc=>{_0xc9c3bc[_0x33f1('0x7a')](_0x33f1('0x2a'),_0x3252f1[_0x33f1('0xe7')][_0x33f1('0xc2')][_0x33f1('0x95')](_0x4fb4ee[_0x33f1('0xab')]));}):_0x3252f1['reconvertMarker'](_0x33f1('0x93')+_0x4fb4ee['id']));});}),this[_0x33f1('0x39')](this[_0x33f1('0x59')][_0x33f1('0xfe')]['view'][_0x33f1('0xc2')],_0x33f1('0x11a'),(_0x276d53,_0x835343)=>{if(this[_0x33f1('0xf2')])return;const _0x22a1a9=this[_0x33f1('0xa6')](_0x835343[_0x33f1('0x5b')]),_0x49795a=this['_changeIdToChange'][_0x33f1('0x9e')](_0x22a1a9);_0x49795a?(this[_0x33f1('0xd4')]={'x':_0x835343['domEvent']['x'],'y':_0x835343['domEvent']['y']},this['activeView']=this[_0x33f1('0x9c')](_0x49795a)):(this['_activeViewTarget']=null,this[_0x33f1('0x10c')]=null);}),this[_0x33f1('0x39')](this[_0x33f1('0x59')][_0x33f1('0xfe')][_0x33f1('0xe7')]['document'],'mousedown',(_0x260ab0,_0x590b28)=>{const _0x2e9dea=this[_0x33f1('0xa6')](_0x590b28[_0x33f1('0x5b')]),_0x1b100c=this[_0x33f1('0x70')][_0x33f1('0x9e')](_0x2e9dea);_0x1b100c?(this[_0x33f1('0xd4')]={'x':_0x590b28[_0x33f1('0x36')]['x'],'y':_0x590b28[_0x33f1('0x36')]['y']},_0x1b100c===this[_0x33f1('0xf2')]?this[_0x33f1('0xf6')][_0x33f1('0x76')]():this['activeChange']=_0x1b100c):(this['_activeViewTarget']=null,this[_0x33f1('0xf2')]=null);});}[_0x33f1('0xa6')](_0x73cc6f){do{const _0x3913b1=_0x73cc6f['getAttribute'](_0x33f1('0x2'));if(_0x3913b1)return _0x3913b1;_0x73cc6f=_0x73cc6f[_0x33f1('0xbb')];}while(_0x73cc6f);return null;}[_0x33f1('0x54')](){this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x55')](_0x39d89f=>{for(const _0x22f241 of this[_0x33f1('0x59')][_0x33f1('0x61')][_0x33f1('0x5c')])_0x39d89f[_0x33f1('0x29')](_0x22f241);});}}function et(_0x4faeef,_0x5377b6){return(_0x1d05d6,_0x40801b,_0x43c278)=>{if(!_0x43c278[_0x33f1('0x43')][_0x33f1('0xee')](_0x40801b[_0x33f1('0x65')],_0x1d05d6['name']))return;const _0x23db51=_0x40801b['markerRange'][_0x33f1('0xca')](),_0x197fad=_0x40801b[_0x33f1('0x65')][_0x33f1('0xd5')],_0x2f5dab=_0x4faeef[_0x33f1('0x61')][_0x33f1('0x10e')];let _0x473300=null,_0x1f3fc9=null,_0x481052=!0x1,_0x4f3c77=!0x1;for(const _0x134c21 of _0x23db51){const _0x551916=_0x134c21[_0x33f1('0x66')];_0x481052=_0x481052||_0x2f5dab['isContent'](_0x551916);const _0xf43b48=_0x43c278[_0x33f1('0x80')][_0x33f1('0x3e')](_0x551916);if(_0xf43b48&&_0xf43b48[_0x33f1('0x86')](_0x33f1('0x35')))return;_0x33f1('0x97')==_0x134c21['type']&&(_0x2f5dab[_0x33f1('0x4c')](_0x551916)&&!_0x2f5dab[_0x33f1('0x6b')](_0x551916)&&(_0x551916['nextSibling']||_0x197fad[_0x33f1('0xad')]?_0x473300&&_0x473300[_0x33f1('0xbb')]==_0x551916||(_0x473300=_0x551916,_0x5cb176(_0x134c21[_0x33f1('0x27')]),_0x4f3c77=!0x0):_0x1f3fc9=_0x1f3fc9||_0x134c21['previousPosition']));}function _0x5cb176(_0x34c668){const _0x5253dd=_0x43c278[_0x33f1('0x80')][_0x33f1('0x9a')](_0x34c668),_0x8b518e=_0x43c278[_0x33f1('0x111')]['createUIElement'](_0x33f1('0x4e'),{'class':_0x33f1('0xc6')+_0x5377b6});_0x43c278['writer'][_0x33f1('0x14')](_0x5253dd,_0x8b518e),_0x43c278['mapper'][_0x33f1('0x91')](_0x8b518e,_0x40801b[_0x33f1('0x8a')]);}_0x481052||_0x4f3c77||!_0x1f3fc9||_0x5cb176(_0x1f3fc9);};}export class RestoreRevisionCommand extends _0x107b05{constructor(_0x358567){super(_0x358567);const _0x32467f=_0x358567[_0x33f1('0x119')]['get'](d);this[_0x33f1('0x44')]=!0x1,this['listenTo'](_0x32467f,_0x33f1('0x120'),()=>this[_0x33f1('0xc0')]()),this[_0x33f1('0x39')](_0x32467f,_0x33f1('0xd'),()=>this[_0x33f1('0xc0')]());}[_0x33f1('0x87')](){const _0xd7339f=this[_0x33f1('0x59')],_0x3bb819=_0xd7339f[_0x33f1('0x119')]['get'](d),_0x5205dc=_0x3bb819[_0x33f1('0xcf')]?_0x3bb819[_0x33f1('0x107')][_0x33f1('0xc')]:null;_0xd7339f[_0x33f1('0x106')][_0x33f1('0x9e')](_0x33f1('0xe2'))[_0x33f1('0xcc')](_0x5205dc);}[_0x33f1('0xc0')](){const {isReady:_0x286457,isEnabled:_0x40cb57}=this[_0x33f1('0x59')][_0x33f1('0x119')]['get'](d);this[_0x33f1('0xc4')]=_0x286457&&_0x40cb57;}}export class ShowChangeCommand extends _0x107b05{constructor(_0x5edb26,{direction:_0x22d4fb}){super(_0x5edb26);const _0xc1e8ee=_0x5edb26[_0x33f1('0x119')][_0x33f1('0x9e')](d);this['affectsData']=!0x1,this['_step']=_0x33f1('0x11d')===_0x22d4fb?0x1:-0x1,this[_0x33f1('0x39')](_0xc1e8ee,_0x33f1('0x120'),()=>this['refresh']()),this[_0x33f1('0x39')](_0xc1e8ee,_0x33f1('0xd'),()=>this[_0x33f1('0xc0')]()),this[_0x33f1('0x39')](_0xc1e8ee,_0x33f1('0x64'),()=>this[_0x33f1('0xc0')]());}[_0x33f1('0x87')](){const _0x1bc5a2=this['editor'],_0x12d484=_0x1bc5a2[_0x33f1('0x119')]['get'](d),{isNavigationMode:_0x2e8129,currentChangeNumber:_0x303a41}=_0x12d484;let _0x4641d4;if(_0x12d484['activeChange']=_0x2e8129?_0x12d484[_0x33f1('0x107')]['changes']['get'](_0x303a41+this['_step']):_0x12d484[_0x33f1('0x107')][_0x33f1('0x56')]['first'],_0x12d484['activeChange']['data'][_0x33f1('0x92')])_0x4641d4=_0x1bc5a2[_0x33f1('0xfe')][_0x33f1('0xe7')][_0x33f1('0x89')](_0x12d484[_0x33f1('0xf2')]['rootName']);else{const _0x45b437=_0x1bc5a2[_0x33f1('0x61')]['markers'][_0x33f1('0x9e')](_0x33f1('0x93')+_0x12d484[_0x33f1('0xf2')]['id']);_0x4641d4=_0x536dce(_0x1bc5a2[_0x33f1('0xfe')],_0x45b437);}_0x8dd2d4({'target':_0x4641d4,'viewportOffset':0x28});}[_0x33f1('0xc0')](){const {isNavigationMode:_0x5d8612,currentChangeNumber:_0x1afcc8,numberOfChanges:_0x56dbf0,isReady:_0xeeb9b7,isEnabled:_0x4762c8}=this['editor'][_0x33f1('0x119')][_0x33f1('0x9e')](d);this['isEnabled']=!!(_0x4762c8&&_0xeeb9b7&&_0x56dbf0)&&(!_0x5d8612||(0x1===this[_0x33f1('0x52')]?_0x1afcc8<_0x56dbf0-0x1:_0x1afcc8>0x0));}}
|
|
23
|
+
const _0xcd81=['attribute:vid','remove','ck-suggestion-marker-merge','end','getItems','top','diff','deletion','markerName','createUIElement','_cleanMarkers','previousPosition','loadRevisionData','code','createPositionBefore','getDomRoot','bottom','hasClass','keys','first','affectsData','_sortAndFilterDiffChanges','hasAttribute','selection','unbindElementFromMarkerName','low','change:isReady','removeMarker','enqueueChange','refresh','newRevisionId','model','marked','nodeAfter','addMarker:revision','find','ck-suggestion-marker-','isAtStart','maxOffset','slice','addMarker:revision-suggestion:insertion','revision-suggestion:','isEnabled','restoreRevision','enableReadOnlyMode','detachRoot','clear','view','isRemoveSuggestion','_removeRevisionMarkers','change:activeView','_changeIdToChange','parent','document','wrap','length','restoreRevisionCallback','_makeModelFromTape','repository','ck-suggestion-marker--active','addHighlight','downcastDispatcher','markers','getIndex','merge','oldRevisionId','backward','getCustomProperty','offsetSize','_setConversion','highest','POSITIVE_INFINITY','destroy','getRevision','removeAttribute','side','_activeViewTarget','_changeView','_processTape','forEach','listenTo','attributesBefore','_removeMissingPairs','index','for','_threeWayMerge','comment','createPositionFromPath','data-revision-','pairId','collaboration.channelId','_balloon','isEqual','getClientRects','_joinTapes','done','processor','isAddSuggestion','test','execute','_getViewForChange','nextSibling','insert','bind','startIndex','reconvertMarker','_findChangeIdFromDomTarget','_data','diffData','upcast','isCollapsed','revision-end','includes','ck-editor__editable__overlay','element','unshift','getWalker','removeMarker:revision-suggestion','set','data','domEvent','_cleanUp','activeView','_fixObsoleteTags','isReady','forward','rootName','dataDowncast','split','level','setAttribute','high','-new','_getViewObj','_setDistance','_markSuggestions','distance','_revisions','change:numberOfChanges','markerToHighlight','insertion','createRangeIn','suggestion','vid','get','values','writer','_makeTape','indexOf','map','isObject','push','elementStart','editor','item','_removeUnsupportedChanges','data-change-id','error','getRoot','abs','removeClass','toViewPosition','markerToData','_getChangeFromId','isLimit','delete','domConverter','createRevision','_getDiff','modelRange','bindElementToMarker','addRoot','revision','isBlock','dataToMarker','concat','activeChange','elementToAttribute','revisionHistoryAttachChange','next','toData','mouseover','attributes','default','toViewElement','resolve','deletions','isSuggestion','ck-suggestion-marker-split','endIndex','revisionHistory','userId','ck-suggestion-preview-marker','vid_end','splice','vid_start','authors','numberOfChanges','consumable','isAdded','roots','conversion','isRemoved','mapper','schema','init','isBefore','change','filter','viewItem','element:pre','getRootNames','name','startsWith','ck-revision-history-root-add','_appendChild','updatePosition','addClass','text','children','plugins','isAfter','ck-revision-history-root-remove','_step','ck-revision-history-root--active','elementEnd','nextPosition','_update','all','change:activeChange','addRevisionData','changes','attachChange','then','RevisionsRepository','target','attributesAfter','start','type','sort','_markMismatchedRemovedTags','string','_initInteractions','markerRange','getAttribute','getAttributes','_refreshStartEndIndex','isAtEnd','editingDowncast','from','editing','findIndex','_getRevisionsRange','markersEnd','markerNameToElements','left','change:isEnabled','isContent','addMarker:revision-suggestion:deletion','createAttributeElement','locale','revision:','createRange','softBreak','isAttached','toViewRange','isInline','isOnRoot','has','add','suggestion:','removeMarker:revision','pluginName','RevisionViewer','consume','ck-suggestion-preview-marker-','compare','WidgetToolbarRepository','span','flat','right','isIncorrect','revisionHistoryLabel','_makeModelFromViewString','insertions','adapter','range','_markInsertions','_markMarkers','revision-viewer','useFillerType','showPreviousChange','config','changeId','revision-suggestion','markersStart'];(function(_0x891495,_0xcd8127){const _0x6e8762=function(_0x7dedb6){while(--_0x7dedb6){_0x891495['push'](_0x891495['shift']());}};_0x6e8762(++_0xcd8127);}(_0xcd81,0x87));const _0x6e87=function(_0x891495,_0xcd8127){_0x891495=_0x891495-0x0;let _0x6e8762=_0xcd81[_0x891495];return _0x6e8762;};import{Plugin as _0x3de714,Command as _0x412ba8}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x287daa}from'ckeditor5/src/utils';import{ContextualBalloon as _0x296055}from'ckeditor5/src/ui';import{DocumentFragment as _0x45704b,Element as _0x125e7a,Text as _0x4b90d2,ViewDocumentFragment as _0x54d8d5,ViewText as _0x54b964,ViewElement as _0x54b152,ViewContainerElement as _0x52db9b,ViewAttributeElement as _0x23c8cd,ViewEmptyElement as _0x13be43,ViewRawElement as _0x22e83c,ViewUIElement as _0x58d2e0}from'ckeditor5/src/engine';import{Users as _0x1ec0e9,getMarkerDomElement as _0x5c32cc}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a70a1 from'./ui/revisionviewer/changedetailsview';import _0x14e039 from'./revisionsrepository';import _0x33a0cb from'./changeitem';import{default as _0x4015a2}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3dd39d}from'lodash-es';const tt={'c':_0x52db9b,'a':_0x23c8cd,'e':_0x13be43,'r':_0x22e83c,'u':_0x58d2e0};export default class d extends _0x3de714{static get[_0x6e87('0x89')](){return _0x6e87('0x8a');}static get['requires'](){return[_0x1ec0e9,_0x296055,_0x14e039];}constructor(_0x9e0e72){super(_0x9e0e72),this[_0x6e87('0xdb')]=this[_0x6e87('0x12')][_0x6e87('0x55')][_0x6e87('0x9')](_0x6e87('0x63')),this['set'](_0x6e87('0x29'),null),this[_0x6e87('0x117')]('activeView',null),this[_0x6e87('0xed')]=null,this[_0x6e87('0x117')](_0x6e87('0xa7'),null),this['set'](_0x6e87('0x11d'),!0x1),this['set'](_0x6e87('0xcb'),!0x0),this['on'](_0x6e87('0x79'),(_0x57135c,_0x2a3e64,_0x290039)=>{this[_0x6e87('0x29')]=null,this[_0x6e87('0x11b')]=null,this['editor'][_0x6e87('0x73')]['view'][_0x6e87('0x48')](_0x4a5fe6=>{for(const _0x482e1b of this['editor'][_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0xd6')][_0x6e87('0x41')])_0x290039?_0x4a5fe6[_0x6e87('0x19')](_0x6e87('0x112'),_0x482e1b):_0x4a5fe6[_0x6e87('0x52')](_0x6e87('0x112'),_0x482e1b);});}),this[_0x6e87('0x108')]('isNavigationMode')['to'](this,_0x6e87('0x29'),_0x3b2007=>null!==_0x3b2007),this[_0x6e87('0x108')]('currentChangeNumber')['to'](this,'isReady',this,_0x6e87('0xa7'),this,_0x6e87('0x29'),(_0x183071,_0x5e3ca1,_0x1772c9)=>_0x183071&&_0x1772c9?_0x5e3ca1['changes'][_0x6e87('0xe0')](_0x1772c9):0x0),this[_0x6e87('0x108')](_0x6e87('0x3e'))['to'](this,_0x6e87('0x11d'),this,'diff',(_0x20417c,_0x691f54)=>_0x20417c?_0x691f54['changes'][_0x6e87('0xd8')]:0x0),this[_0x6e87('0xee')]=null,this[_0x6e87('0xd4')]=new Map(),this[_0x6e87('0x96')]=null,this[_0x6e87('0xfc')]=this['editor'][_0x6e87('0x55')][_0x6e87('0x9')](_0x296055);}[_0x6e87('0x46')](){const _0x552961=this[_0x6e87('0x12')],_0x3e994c=new ShowChangeCommand(_0x552961,{'direction':_0x6e87('0xe3')}),_0x1c3175=new ShowChangeCommand(_0x552961,{'direction':'forward'});(_0x552961['commands'][_0x6e87('0x86')](_0x6e87('0x9c'),_0x3e994c),_0x552961['commands']['add']('showNextChange',_0x1c3175),_0x552961['commands'][_0x6e87('0x86')](_0x6e87('0xcc'),new RestoreRevisionCommand(_0x552961)),this['on'](_0x6e87('0x3'),()=>{_0x3e994c['refresh'](),_0x1c3175[_0x6e87('0xbe')]();}),this[_0x6e87('0xe6')](),this[_0x6e87('0x6b')](),_0x552961[_0x6e87('0xcd')]('revision-viewer'),_0x552961['plugins'][_0x6e87('0x85')](_0x6e87('0x8e')))&&_0x552961['plugins'][_0x6e87('0x9')](_0x6e87('0x8e'))['forceDisabled'](_0x6e87('0x9a'));}async['getRevisionData'](_0x5d6487){await this[_0x6e87('0xad')](_0x5d6487);const _0x29b988={};for(const _0x4bc43f in _0x5d6487[_0x6e87('0x10d')]){if(_0x5d6487[_0x6e87('0x10d')][_0x4bc43f][_0x6e87('0x61')]&&!_0x5d6487['diffData'][_0x4bc43f]['attachChange'][_0x6e87('0x81')])continue;const _0x36743d=this[_0x6e87('0xd2')](JSON['parse'](_0x5d6487[_0x6e87('0x10d')][_0x4bc43f]['insertions'])),_0x56ad24=this[_0x6e87('0x12')]['editing'][_0x6e87('0xd0')][_0x6e87('0xd6')],_0x3e8ba4=new _0x54d8d5(_0x56ad24,_0x36743d[_0x6e87('0xe')](_0x118d07=>this[_0x6e87('0x126')](_0x118d07)));this[_0x6e87('0x12')][_0x6e87('0x118')][_0x6e87('0x101')][_0x6e87('0x9b')](_0x6e87('0xc1')),_0x29b988[_0x4bc43f]=this[_0x6e87('0x12')][_0x6e87('0x118')][_0x6e87('0x101')][_0x6e87('0x2d')](_0x3e8ba4),this[_0x6e87('0x12')]['data'][_0x6e87('0x101')][_0x6e87('0x9b')](_0x6e87('0x30'));}return _0x29b988;}async['getRevisionRootsAttributes'](_0x5efd94){await this[_0x6e87('0xad')](_0x5efd94);const _0x47666b={};for(const _0x122b85 in _0x5efd94[_0x6e87('0x10d')])_0x5efd94[_0x6e87('0x10d')][_0x122b85]['attachChange']&&!_0x5efd94[_0x6e87('0x10d')][_0x122b85][_0x6e87('0x61')][_0x6e87('0x81')]||(_0x47666b[_0x122b85]=_0x5efd94[_0x6e87('0x10d')][_0x122b85][_0x6e87('0x65')]||{});return _0x47666b;}['_removeRevisionMarkers'](_0xfc4dc3){return(_0xfc4dc3=_0xfc4dc3[_0x6e87('0x49')](_0x3c352b=>!_0x3c352b[_0x6e87('0x4d')]||'revision-start'!==_0x3c352b['name']&&_0x6e87('0x110')!==_0x3c352b[_0x6e87('0x4d')]))[_0x6e87('0xf0')](_0xa1f8d3=>{_0x6e87('0x6a')!=typeof _0xa1f8d3&&(_0xa1f8d3[_0x6e87('0x54')]=this[_0x6e87('0xd2')](_0xa1f8d3['children']),_0xa1f8d3[_0x6e87('0x2f')]=_0xa1f8d3[_0x6e87('0x2f')]['filter'](_0x14c98b=>!_0x14c98b[0x0]['startsWith'](_0x6e87('0xf9'))));}),_0xfc4dc3;}async[_0x6e87('0x8d')](_0x568ca3,_0x416c28,_0x3cac7f=!0x1){if(!this[_0x6e87('0xcb')])return;const _0x278b98=this[_0x6e87('0xa7')],_0x47cde1=this[_0x6e87('0xdb')],_0xd9b5f5=_0x6e87('0x6a')==typeof _0x568ca3?_0x47cde1[_0x6e87('0xea')](_0x568ca3):_0x568ca3,_0x3050e4='string'==typeof _0x416c28?_0x47cde1[_0x6e87('0xea')](_0x416c28):_0x416c28,_0x349068=_0xd9b5f5['id'],_0x465b0c=_0x3050e4?_0x3050e4['id']:null;if(!_0x3cac7f&&this['diff']&&this[_0x6e87('0xa7')][_0x6e87('0xbf')]===_0x349068&&this[_0x6e87('0xa7')][_0x6e87('0xe2')]===_0x465b0c)return Promise[_0x6e87('0x32')]();this[_0x6e87('0x11d')]=!0x1,this[_0x6e87('0x11b')]=null,this[_0x6e87('0x29')]=null,this[_0x6e87('0xa7')]=new _0x4015a2(_0x349068,_0x465b0c);const _0x40f1e2=this[_0x6e87('0x75')](_0xd9b5f5,_0x3050e4,!0x0)[_0x6e87('0xe')](_0x2a1212=>this[_0x6e87('0xad')](_0x2a1212));return _0x40f1e2[_0x6e87('0x10')](new Promise(_0x773282=>{setTimeout(_0x773282,0x14);})),Promise[_0x6e87('0x5d')](_0x40f1e2)[_0x6e87('0x62')](()=>{if(!this['isEnabled'])return;this[_0x6e87('0x11a')]();const _0x43ed31=this[_0x6e87('0x21')](_0x349068,_0x465b0c);for(const _0x1bf863 of _0x43ed31[_0x6e87('0x60')])this['_changeIdToChange'][_0x6e87('0x117')](_0x1bf863['id'],_0x1bf863);this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xbd')]({'isUndoable':!0x1},_0xca0138=>{for(const _0x4d1a75 of this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xd6')][_0x6e87('0x4c')]())_0xca0138[_0x6e87('0xce')](_0x4d1a75);for(const _0x7426f3 of Object[_0x6e87('0xb3')](_0x43ed31[_0x6e87('0xc0')])){const _0x30d03=_0xca0138[_0x6e87('0x24')](_0x7426f3);for(const _0x1c26e6 of Object[_0x6e87('0xb3')](_0x43ed31[_0x6e87('0x2f')][_0x7426f3]))_0xca0138['setAttribute'](_0x1c26e6,_0x43ed31[_0x6e87('0x2f')][_0x7426f3][_0x1c26e6],_0x30d03);_0xca0138[_0x6e87('0x107')](_0x43ed31[_0x6e87('0xc0')][_0x7426f3],_0x30d03,0x0);}}),this[_0x6e87('0xa7')]['_setChanges'](this[_0x6e87('0xb6')](_0x43ed31[_0x6e87('0x60')])),this[_0x6e87('0x11d')]=!0x0;})['catch'](_0x4b165d=>{console[_0x6e87('0x16')](_0x4b165d),this[_0x6e87('0x11a')](),_0x278b98&&(this[_0x6e87('0xa7')]=_0x278b98),this[_0x6e87('0x11d')]=!0x0;});}[_0x6e87('0x5f')](_0x18ebc2,_0x2d1c2e){const _0x4ec6ee=this[_0x6e87('0xdb')][_0x6e87('0x20')](_0x18ebc2);return _0x4ec6ee['on'](_0x6e87('0x5c'),(_0x1b0887,_0x32f19b,_0x3ddc79)=>_0x2d1c2e(_0x32f19b,_0x3ddc79,_0x4ec6ee)),this[_0x6e87('0xdb')]['addRevision'](_0x4ec6ee),_0x4ec6ee;}[_0x6e87('0xad')](_0x2c245a){if(!_0x2c245a||_0x2c245a['diffData'])return Promise[_0x6e87('0x32')]();{const _0x3f4c38=this[_0x6e87('0x12')][_0x6e87('0x9d')]['get'](_0x6e87('0xfb'));return this[_0x6e87('0x96')][_0x6e87('0xea')]({'channelId':_0x3f4c38,'revisionId':_0x2c245a['id']})['then'](_0x39efb6=>{_0x2c245a[_0x6e87('0x5c')]({'diffData':_0x39efb6[_0x6e87('0x10d')]},!0x0);});}}[_0x6e87('0x11a')](){this[_0x6e87('0x29')]=null,this[_0x6e87('0xab')](),this[_0x6e87('0xee')]&&this[_0x6e87('0xee')][_0x6e87('0xe9')](),this['_changeView']=null,this[_0x6e87('0xd4')][_0x6e87('0xcf')](),this[_0x6e87('0x12')][_0x6e87('0xc0')]['enqueueChange']({'isUndoable':!0x1},_0x34b4d2=>{for(const _0xa7ef91 of this[_0x6e87('0x12')]['model']['document']['getRootNames']())_0x34b4d2['detachRoot'](_0xa7ef91);});}[_0x6e87('0xb6')](_0x134eca){const _0x1d8724=[],_0x16a8ee=new Map();for(const _0x4d9c9b of this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xd6')]['getRootNames']()){const _0x5a9bc9=this[_0x6e87('0x12')][_0x6e87('0x73')]['view']['getDomRoot'](_0x4d9c9b);if(!_0x5a9bc9)continue;const _0x2c8949=_0x5a9bc9['getClientRects']()['item'](0x0);_0x2c8949&&(_0x1d8724[_0x6e87('0x10')](_0x4d9c9b),_0x16a8ee[_0x6e87('0x117')](_0x4d9c9b,_0x2c8949));}return _0x1d8724['sort']((_0x5797a2,_0x25b2eb)=>{const _0x24ad49=_0x16a8ee[_0x6e87('0x9')](_0x5797a2),_0x54a57a=_0x16a8ee[_0x6e87('0x9')](_0x25b2eb);return _0x24ad49['y']-_0x54a57a['y']||_0x24ad49['x']-_0x54a57a['x'];}),(_0x134eca=_0x134eca[_0x6e87('0x49')](_0x5bbf34=>_0x1d8724['includes'](_0x5bbf34[_0x6e87('0x11f')])))[_0x6e87('0x68')]((_0x53c671,_0x359211)=>_0x1d8724[_0x6e87('0xd')](_0x53c671[_0x6e87('0x11f')])-_0x1d8724['indexOf'](_0x359211[_0x6e87('0x11f')])),_0x134eca;}['_makeTape'](_0x42ed17){const _0x5696e5=Array[_0x6e87('0x72')](_0x42ed17['markers'])[_0x6e87('0x49')](([_0x59c0d7,_0x3a0f84])=>_0x59c0d7['startsWith'](_0x6e87('0x7e'))&&!_0x3a0f84[_0x6e87('0x10f')]),_0x48a527=Array[_0x6e87('0x72')](this[_0x6e87('0x12')]['model'][_0x6e87('0x6')](_0x42ed17)[_0x6e87('0x115')]({'singleCharacters':!0x0}));if(0x0!=_0x5696e5[_0x6e87('0xd8')])for(const _0x24e9dd of _0x48a527){const [_0x302373,_0x2b8ee8]=_0x5696e5[0x0],[,_0x3eefcb,_0x1b7a42]=_0x302373[_0x6e87('0x121')](':');if(_0x2b8ee8[_0x6e87('0xa4')][_0x6e87('0xfd')](_0x24e9dd[_0x6e87('0x5b')])&&_0x5696e5['shift'](),(_0x24e9dd[_0x6e87('0xac')][_0x6e87('0xfd')](_0x2b8ee8[_0x6e87('0x66')])||_0x24e9dd[_0x6e87('0xac')][_0x6e87('0x56')](_0x2b8ee8[_0x6e87('0x66')]))&&(_0x6e87('0x5')==_0x3eefcb?_0x24e9dd['isAdded']={'userId':_0x1b7a42}:_0x6e87('0xa8')==_0x3eefcb&&(_0x24e9dd[_0x6e87('0x43')]={'userId':_0x1b7a42})),0x0==_0x5696e5[_0x6e87('0xd8')])break;}return _0x48a527;}[_0x6e87('0x6f')](_0x302baa){const _0x39f092=new Map();for(let _0x4deb62=0x0;_0x4deb62<_0x302baa[_0x6e87('0xd8')];_0x4deb62++)_0x6e87('0x53')===_0x302baa[_0x4deb62]['type']?(_0x302baa[_0x4deb62]['item']['startIndex']=_0x4deb62,_0x302baa[_0x4deb62][_0x6e87('0x13')]['endIndex']=_0x4deb62):(_0x6e87('0x11')===_0x302baa[_0x4deb62]['type']?_0x302baa[_0x4deb62][_0x6e87('0x13')][_0x6e87('0x109')]=_0x4deb62:'elementEnd'===_0x302baa[_0x4deb62][_0x6e87('0x67')]&&(_0x302baa[_0x4deb62]['item'][_0x6e87('0x36')]=_0x4deb62),_0x39f092[_0x6e87('0x117')](_0x302baa[_0x4deb62]['id'],_0x4deb62));for(const _0x9bfa67 of _0x39f092[_0x6e87('0xa')]())_0x6e87('0x11')===_0x302baa[_0x9bfa67][_0x6e87('0x67')]?_0x302baa[_0x9bfa67]['item'][_0x6e87('0x36')]=_0x39f092[_0x6e87('0x9')](_0x302baa[_0x9bfa67]['pairId']):_0x6e87('0x5a')===_0x302baa[_0x9bfa67]['type']&&(_0x302baa[_0x9bfa67][_0x6e87('0x13')][_0x6e87('0x109')]=_0x39f092[_0x6e87('0x9')](_0x302baa[_0x9bfa67][_0x6e87('0xfa')]));}['_processTape'](_0xfa55fa){for(let _0x385e06=0x0;_0x385e06<_0xfa55fa['length'];_0x385e06++){if(_0x6e87('0x11')===_0xfa55fa[_0x385e06][_0x6e87('0x67')])_0xfa55fa[_0x385e06]['item']['startIndex']=_0x385e06;else{if(_0x6e87('0x5a')===_0xfa55fa[_0x385e06]['type']){_0xfa55fa[_0x385e06]['item'][_0x6e87('0x36')]=_0x385e06;const _0x2c8b62=_0xfa55fa[_0x385e06][_0x6e87('0x13')][_0x6e87('0x109')];_0xfa55fa[_0x2c8b62][_0x6e87('0xfa')]=_0xfa55fa[_0x385e06]['id'],_0xfa55fa[_0x385e06]['pairId']=_0xfa55fa[_0x2c8b62]['id'];}else _0xfa55fa[_0x385e06]['item'][_0x6e87('0x109')]=_0x385e06,_0xfa55fa[_0x385e06][_0x6e87('0x13')][_0x6e87('0x36')]=_0x385e06,_0xfa55fa[_0x385e06][_0x6e87('0xfa')]=null;}_0xfa55fa[_0x385e06][_0x6e87('0xa0')]||(_0xfa55fa[_0x385e06][_0x6e87('0xa0')]=[],_0xfa55fa[_0x385e06]['markersEnd']=[]);}}[_0x6e87('0x98')](_0x509eb6,_0x32ec3e){const _0x15fe51=_0x509eb6[_0x6e87('0x49')](_0x5b2212=>!_0x5b2212[_0x6e87('0x40')]);for(let _0x294fb5=0x0;_0x294fb5<_0x32ec3e[_0x6e87('0xd8')];_0x294fb5++)_0x32ec3e[_0x294fb5]['isAdded']&&(_0x15fe51[_0x294fb5][_0x6e87('0x40')]=_0x32ec3e[_0x294fb5][_0x6e87('0x40')]);}['_makeModelFromViewString'](_0x2dd951){const _0x54822d=JSON['parse'](_0x2dd951),_0x2ea71a=this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0xd6')],_0x2b5c01=new _0x54d8d5(_0x2ea71a,_0x54822d['map'](_0x9d73fd=>this[_0x6e87('0x126')](_0x9d73fd)));return this[_0x6e87('0x12')][_0x6e87('0x118')]['toModel'](_0x2b5c01);}[_0x6e87('0x126')](_0x47eeba){const _0x3bf722=this[_0x6e87('0x12')][_0x6e87('0x73')]['view'][_0x6e87('0xd6')];if('string'==typeof _0x47eeba)return new _0x54b964(_0x3bf722,_0x47eeba);{const _0x3c4bd9=_0x47eeba[_0x6e87('0x54')][_0x6e87('0xe')](_0x4d8c7e=>this[_0x6e87('0x126')](_0x4d8c7e));return new(tt[_0x47eeba[(_0x6e87('0x67'))]]||_0x54b152)(_0x3bf722,_0x47eeba[_0x6e87('0x4d')],_0x47eeba[_0x6e87('0x2f')],_0x3c4bd9);}}[_0x6e87('0x21')](_0x59019b,_0x348d29=null){const _0x1e7569=this[_0x6e87('0xdb')][_0x6e87('0xea')](_0x59019b),_0x31c5ca=_0x348d29?this['repository'][_0x6e87('0xea')](_0x348d29):null,_0x17900d=this[_0x6e87('0x75')](_0x1e7569,_0x31c5ca),_0x598298=_0x17900d[_0x17900d[_0x6e87('0xd8')]-0x1],_0x4f2906=new Map(),_0x524728={'model':{},'attributes':{},'changes':[]},_0x125c3c=new Set(),_0x56f345=new Map();for(let _0x12a843=_0x17900d[_0x6e87('0xd8')]-0x1;_0x12a843>=0x0;_0x12a843--){const _0x339c6e=_0x17900d[_0x12a843];for(const _0xbf390f of Object[_0x6e87('0xb3')](_0x339c6e[_0x6e87('0x10d')]))if(_0x339c6e['diffData'][_0xbf390f]['attachChange']){const _0x4faeac=_0x339c6e[_0x6e87('0x10d')][_0xbf390f][_0x6e87('0x61')];_0x4faeac[_0x6e87('0x81')]?(_0x125c3c['add'](_0xbf390f),_0x56f345[_0x6e87('0x85')](_0xbf390f)&&_0x56f345['get'](_0xbf390f)[_0x6e87('0x38')]==_0x4faeac['userId']?_0x56f345[_0x6e87('0x1e')](_0xbf390f):_0x56f345['set'](_0xbf390f,_0x4faeac)):_0x56f345[_0x6e87('0x85')](_0xbf390f)?(_0x125c3c[_0x6e87('0x1e')](_0xbf390f),_0x56f345[_0x6e87('0x1e')](_0xbf390f)):(_0x125c3c['add'](_0xbf390f),_0x56f345['set'](_0xbf390f,_0x4faeac));}else _0x125c3c[_0x6e87('0x86')](_0xbf390f);}for(const _0x18c5a6 of _0x125c3c){const _0x10be6f=_0x56f345[_0x6e87('0x85')](_0x18c5a6)&&!_0x56f345[_0x6e87('0x9')](_0x18c5a6)[_0x6e87('0x81')];let _0x35ffee=_0x10be6f?_0x17900d['length']-0x1:0x0;const _0x443a6c=_0x10be6f?-0x1:0x1;for(;_0x17900d[_0x35ffee];){const _0x163d5e=_0x17900d[_0x35ffee];if(_0x163d5e[_0x6e87('0x10d')][_0x18c5a6]){const _0x21d51d=_0x10be6f?_0x163d5e[_0x6e87('0x10d')][_0x18c5a6][_0x6e87('0xf2')]:_0x163d5e[_0x6e87('0x10d')][_0x18c5a6][_0x6e87('0x65')];_0x524728[_0x6e87('0x2f')][_0x18c5a6]=_0x21d51d?_0x3dd39d(_0x21d51d):{};break;}_0x35ffee+=_0x443a6c;}}for(const _0x44b642 of _0x17900d){_0x44b642['model']={};for(const _0x198ce6 of _0x44b642[_0x6e87('0x3d')])_0x4f2906[_0x6e87('0x117')](_0x198ce6['id'],_0x198ce6);for(const _0x183807 of _0x125c3c){const _0x520251=_0x44b642['diffData'][_0x183807]?_0x44b642['diffData'][_0x183807][_0x6e87('0x95')]:'[]',_0x18f50d=_0x44b642[_0x6e87('0x10d')][_0x183807]?_0x44b642['diffData'][_0x183807]['deletions']:'[]';_0x44b642['model'][_0x183807]={'insertions':this[_0x6e87('0x94')](_0x520251),'deletions':this[_0x6e87('0x94')](_0x18f50d)};}}for(const _0x195c64 of _0x125c3c){let _0x198888=null,_0xc292f9=0x0;const _0x590bb5=new Map(Array[_0x6e87('0x72')](_0x1e7569[_0x6e87('0xc0')][_0x195c64]['insertions'][_0x6e87('0xdf')])[_0x6e87('0x49')](([_0x17bb20])=>!_0x17bb20[_0x6e87('0x4e')]('revision:')));let _0x491dcc=0x0;for(const _0x37cd5c of _0x17900d){const _0x51e65a=this[_0x6e87('0xc')](_0x37cd5c['model'][_0x195c64]['insertions']);_0x37cd5c==_0x1e7569?(_0x198888=_0x51e65a,_0xc292f9=_0x198888['length'],_0x198888[_0x6e87('0xf0')](_0x1dc8c4=>{_0x1dc8c4['id']=_0x491dcc++;}),this['_processTape'](_0x198888)):this[_0x6e87('0x98')](_0x198888,_0x51e65a);const _0x3931ef=_0x198888[_0x6e87('0x49')](_0x5b516a=>!_0x5b516a['isAdded'])[_0x6e87('0xe')](_0x39dba5=>_0x39dba5['id']);let _0x5d3af3=0x0;const _0x332f1d=this[_0x6e87('0xc')](_0x37cd5c[_0x6e87('0xc0')][_0x195c64]['deletions']);_0x332f1d['forEach'](_0x3a6b8c=>{_0x3a6b8c[_0x6e87('0x43')]?_0x3a6b8c['id']=_0xc292f9++:_0x3a6b8c['id']=_0x3931ef[_0x5d3af3++];}),this[_0x6e87('0xef')](_0x332f1d),this[_0x6e87('0x127')](_0x198888,_0x6e87('0x40')),this['_setDistance'](_0x332f1d,_0x6e87('0x43')),_0x37cd5c==_0x1e7569&&this[_0x6e87('0x99')](_0x198888,_0x590bb5),_0x198888=this['_joinTapes'](_0x198888,_0x332f1d),this['_refreshStartEndIndex'](_0x198888),this[_0x6e87('0x127')](_0x198888,_0x6e87('0x43'));}_0x198888=_0x198888[_0x6e87('0x49')](_0x582d91=>!(_0x582d91[_0x6e87('0x40')]&&_0x582d91['isRemoved']));const _0x9e5a54=new Map(_0x598298[_0x6e87('0xc0')][_0x195c64][_0x6e87('0x33')][_0x6e87('0xdf')]),_0x13b22f=new Set(_0x590bb5['keys']());for(const _0x1e30e5 of _0x9e5a54[_0x6e87('0xb3')]())_0x13b22f[_0x6e87('0x1e')](_0x1e30e5);this[_0x6e87('0x0')](_0x198888,_0x13b22f),this[_0x6e87('0x11c')](_0x198888),_0x198888=this['_removeMissingPairs'](_0x198888),_0x198888=this[_0x6e87('0x69')](_0x198888),_0x198888=this[_0x6e87('0x14')](_0x198888);const {root:_0x435b8e,changes:_0x35222e}=this[_0x6e87('0xda')](_0x198888,_0x4f2906,_0x195c64);_0x524728[_0x6e87('0xc0')][_0x195c64]=_0x435b8e;const _0x455a7d=_0x56f345['get'](_0x195c64);if(_0x455a7d){const _0x49927d=_0x4f2906[_0x6e87('0x9')](_0x455a7d[_0x6e87('0x38')]),_0x22e6b9=new _0x33a0cb({'author':_0x49927d,'type':_0x455a7d[_0x6e87('0x81')]?_0x6e87('0x86'):_0x6e87('0xa2'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x195c64});_0x35222e[_0x6e87('0x114')](_0x22e6b9),_0x524728[_0x6e87('0x2f')][_0x195c64]['revisionHistoryAttachChange']=_0x22e6b9['id'];}_0x524728[_0x6e87('0x60')]=_0x524728[_0x6e87('0x60')][_0x6e87('0x28')](_0x35222e);}return _0x524728;}[_0x6e87('0x99')](_0x1406d0,_0x4cf251){for(let _0x50bc05=0x0;_0x50bc05<_0x1406d0['length'];_0x50bc05++)for(const [_0x23fe37,_0x146c3f]of _0x4cf251)_0x146c3f[_0x6e87('0x66')][_0x6e87('0xfd')](_0x1406d0[_0x50bc05][_0x6e87('0xac')])&&_0x1406d0[_0x50bc05][_0x6e87('0xa0')][_0x6e87('0x10')](_0x23fe37),_0x146c3f['end'][_0x6e87('0xfd')](_0x1406d0[_0x50bc05][_0x6e87('0x5b')])&&_0x1406d0[_0x50bc05]['markersEnd'][_0x6e87('0x10')](_0x23fe37);}[_0x6e87('0xff')](_0x2170cd,_0x108bb9){let _0x40746f=[],_0x22ed8f=0x0,_0x575cd4=0x0;for(;_0x22ed8f<_0x2170cd[_0x6e87('0xd8')]||_0x575cd4<_0x108bb9[_0x6e87('0xd8')];){const _0x1aa573=_0x2170cd[_0x22ed8f]||{},_0x4b7f68=_0x108bb9[_0x575cd4]||{};if(_0x1aa573['id']==_0x4b7f68['id'])_0x22ed8f++,_0x575cd4++,_0x40746f[_0x6e87('0x10')](_0x1aa573);else{if(_0x4b7f68[_0x6e87('0x43')]&&_0x1aa573[_0x6e87('0x40')]){const {commonTape:_0xac6529,iEnd:_0x404568,jEnd:_0x84ddee}=this[_0x6e87('0xf6')](_0x2170cd,_0x22ed8f,_0x108bb9,_0x575cd4);_0x40746f=_0x40746f[_0x6e87('0x28')](_0xac6529),_0x22ed8f=_0x404568,_0x575cd4=_0x84ddee;}else _0x4b7f68[_0x6e87('0x43')]?(_0x575cd4++,_0x40746f[_0x6e87('0x10')](_0x4b7f68)):(_0x22ed8f++,_0x40746f[_0x6e87('0x10')](_0x1aa573));}}return _0x40746f;}[_0x6e87('0x0')](_0x235d58,_0x3178c2){const _0x378ce0=[];for(let _0x2328c1=0x0;_0x2328c1<_0x235d58[_0x6e87('0xd8')];_0x2328c1++){for(let _0x5aa714=0x0;_0x5aa714<_0x235d58[_0x2328c1]['markersStart'][_0x6e87('0xd8')];_0x5aa714++){const _0x53531a=_0x235d58[_0x2328c1][_0x6e87('0xa0')][_0x5aa714];if(!_0x3178c2['has'](_0x53531a))continue;const {group:_0x2a253f,type:_0x3dd723,authorId:_0x6af767}=_0x3a569c(_0x53531a);'revision-suggestion'!=_0x2a253f||'insertion'!=_0x3dd723&&_0x6e87('0xa8')!=_0x3dd723||(_0x378ce0[_0x6e87('0x114')]({'type':_0x3dd723,'name':_0x53531a,'userId':_0x6af767}),_0x235d58[_0x2328c1][_0x6e87('0xa0')]['splice'](_0x5aa714,0x1),_0x5aa714--);}_0x2e2a50(_0x235d58[_0x2328c1]);for(let _0x576e95=0x0;_0x576e95<_0x235d58[_0x2328c1][_0x6e87('0x76')][_0x6e87('0xd8')];_0x576e95++){const _0x3cd8ff=_0x235d58[_0x2328c1][_0x6e87('0x76')][_0x576e95];if(!_0x3178c2['has'](_0x3cd8ff))continue;const {group:_0x306f7e,type:_0x88622}=_0x3a569c(_0x3cd8ff);if(_0x6e87('0x9f')!=_0x306f7e||_0x6e87('0x5')!=_0x88622&&_0x6e87('0xa8')!=_0x88622)continue;_0x235d58[_0x2328c1][_0x6e87('0x76')][_0x6e87('0x3b')](_0x576e95,0x1),_0x576e95--;const _0x24fe8a=_0x378ce0[_0x6e87('0x74')](_0x23ae73=>_0x23ae73[_0x6e87('0x4d')]==_0x3cd8ff);_0x24fe8a>-0x1&&_0x378ce0[_0x6e87('0x3b')](_0x24fe8a,0x1);}}function _0x3a569c(_0x385feb){const _0xb05dc3=_0x385feb[_0x6e87('0x121')](':');return{'group':_0xb05dc3[0x0],'type':_0xb05dc3[0x1],'subType':_0xb05dc3[_0x6e87('0xd8')]>=0x5?_0xb05dc3[0x2]:null,'id':_0xb05dc3[_0x6e87('0xd8')]<0x5?_0xb05dc3[0x2]:_0xb05dc3[0x3],'authorId':_0xb05dc3['length']<0x5?_0xb05dc3[0x3]:_0xb05dc3[0x4],'markerCount':0x6==_0xb05dc3[_0x6e87('0xd8')]?_0xb05dc3[0x5]:null};}function _0x2e2a50(_0x3c424f){for(let _0x548baa=0x0;_0x548baa<_0x378ce0[_0x6e87('0xd8')];_0x548baa++){if(_0x3c424f[_0x6e87('0x40')]&&'insertion'==_0x378ce0[_0x548baa]['type'])return _0x3c424f['isAddSuggestion']=_0x378ce0[_0x548baa],void delete _0x3c424f[_0x6e87('0x40')];if(!_0x3c424f[_0x6e87('0x40')]&&!_0x3c424f[_0x6e87('0x43')]&&_0x6e87('0xa8')==_0x378ce0[_0x548baa][_0x6e87('0x67')])return void(_0x3c424f[_0x6e87('0xd1')]=_0x378ce0[_0x548baa]);}}}[_0x6e87('0x127')](_0x15ea3d,_0x21e5c3){let _0x4e4dc2=0x0,_0x4c150c=!0x1;const _0x2a86ea=new Map();for(const _0x1da93e of _0x15ea3d)_0x1da93e[_0x21e5c3]?_0x4c150c&&(_0x4e4dc2++,_0x4c150c=!0x1):(_0x4e4dc2++,_0x4c150c=!0x0),_0x2a86ea['set'](_0x1da93e['id'],_0x4e4dc2);for(let _0x40e7f9=0x0;_0x40e7f9<_0x15ea3d[_0x6e87('0xd8')];_0x40e7f9++){if(_0x6e87('0x43')==_0x21e5c3&&_0x15ea3d[_0x40e7f9][_0x6e87('0x40')]||_0x6e87('0x40')==_0x21e5c3&&_0x15ea3d[_0x40e7f9]['isRemoved'])continue;if(_0x6e87('0x53')==_0x15ea3d[_0x40e7f9][_0x6e87('0x67')]){_0x15ea3d[_0x40e7f9][_0x6e87('0x1')]=0x0;continue;}const _0x34b76f=_0x2a86ea[_0x6e87('0x9')](_0x15ea3d[_0x40e7f9][_0x6e87('0xfa')]),_0x2c7189=_0x2a86ea[_0x6e87('0x9')](_0x15ea3d[_0x40e7f9]['id']);_0x15ea3d[_0x40e7f9][_0x6e87('0x1')]=_0x34b76f-_0x2c7189;}}[_0x6e87('0x75')](_0x63f167,_0x5ba776,_0x46ed8f=!0x1){const _0x2a2bbc=[];let _0x593cb7=this[_0x6e87('0xdb')]['getIndex'](_0x63f167),_0x31e3ae=this[_0x6e87('0xdb')][_0x6e87('0xe0')](_0x5ba776);for(-0x1==_0x31e3ae&&(_0x31e3ae=this['repository'][_0x6e87('0x2')]['length'],_0x46ed8f=!0x1);_0x593cb7<_0x31e3ae;)_0x2a2bbc[_0x6e87('0x10')](this[_0x6e87('0xdb')]['getRevision'](_0x593cb7)),_0x593cb7++;return _0x46ed8f&&_0x2a2bbc[_0x6e87('0x10')](this['repository'][_0x6e87('0xea')](_0x593cb7)),_0x2a2bbc;}['_threeWayMerge'](_0x122971,_0x420737,_0x66f87d,_0x27579b){const _0x4ca074=this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0x45')];let _0x4f0758=_0x420737;for(;_0x122971[_0x4f0758]&&_0x122971[_0x4f0758][_0x6e87('0x40')];)_0x4f0758++;let _0x2e0858=_0x27579b;for(;_0x66f87d[_0x2e0858]&&_0x66f87d[_0x2e0858][_0x6e87('0x43')];)_0x2e0858++;_0x338aad(_0x122971,_0x420737,_0x4f0758),_0x338aad(_0x66f87d,_0x27579b,_0x2e0858);const _0x2e885b=_0x66f87d[_0x6e87('0xc8')](_0x27579b,_0x2e0858)[_0x6e87('0x28')](_0x122971['slice'](_0x420737,_0x4f0758));return _0x2e885b[_0x6e87('0x68')]((_0x5e167f,_0x5c470e)=>_0x5e167f['side']!=_0x5c470e[_0x6e87('0xec')]?_0x5e167f[_0x6e87('0xec')]-_0x5c470e['side']:_0x5e167f['level']!=_0x5c470e[_0x6e87('0x122')]?_0x5e167f['level']-_0x5c470e[_0x6e87('0x122')]:_0x5e167f[_0x6e87('0x1')]!=_0x5c470e[_0x6e87('0x1')]?_0x5c470e['distance']-_0x5e167f[_0x6e87('0x1')]:!!_0x5e167f[_0x6e87('0x40')]!=!!_0x5c470e[_0x6e87('0x40')]?-0x1==_0x5e167f[_0x6e87('0xec')]||0x0==_0x5e167f[_0x6e87('0xec')]?_0x5e167f[_0x6e87('0x40')]?-0x1:0x1:_0x5e167f[_0x6e87('0x40')]?0x1:-0x1:_0x5e167f[_0x6e87('0xf4')]-_0x5c470e[_0x6e87('0xf4')]),{'commonTape':_0x2e885b,'iEnd':_0x4f0758,'jEnd':_0x2e0858};function _0x338aad(_0x1efb91,_0x1e22b9,_0x1a6817){let _0x3be4e8=-0x1,_0x5f4d93=Number[_0x6e87('0xe8')],_0x34bd2f=!0x0;for(let _0x323f33=_0x1e22b9;_0x323f33<_0x1a6817;_0x323f33++)if(_0x4ca074[_0x6e87('0x83')](_0x1efb91[_0x323f33][_0x6e87('0x13')])||(_0x34bd2f=!0x1),_0x1efb91[_0x323f33]['item'][_0x6e87('0x109')]<_0x1e22b9&&(_0x3be4e8=_0x323f33),_0x1efb91[_0x323f33][_0x6e87('0x13')][_0x6e87('0x36')]>=_0x1a6817){_0x5f4d93=_0x323f33;break;}_0x34bd2f&&(_0x3be4e8=_0x1a6817-0x1);for(let _0x4831b0=_0x1e22b9;_0x4831b0<_0x1a6817;_0x4831b0++)_0x1efb91[_0x4831b0][_0x6e87('0xec')]=_0x4831b0<=_0x3be4e8?-0x1:_0x4831b0<_0x5f4d93?0x0:0x1,_0x1efb91[_0x4831b0][_0x6e87('0xf4')]=_0x4831b0;let _0x3ef308=0x0;for(let _0x5ae3ed=_0x1e22b9;_0x5ae3ed<=_0x3be4e8;_0x5ae3ed++)0x0==_0x1efb91[_0x5ae3ed]['distance']?_0x1efb91[_0x5ae3ed][_0x6e87('0x122')]=_0x3ef308:(_0x3ef308++,_0x1efb91[_0x5ae3ed][_0x6e87('0x122')]=_0x3ef308,_0x3ef308++);for(let _0x50c781=_0x1e22b9;_0x50c781<_0x1a6817;_0x50c781++)0x0==_0x1efb91[_0x50c781]['side']&&(_0x1efb91[_0x50c781][_0x6e87('0x122')]=_0x3ef308);_0x3ef308=0x0;for(let _0x1528e2=_0x1a6817-0x1;_0x1528e2>=_0x5f4d93;_0x1528e2--)0x0==_0x1efb91[_0x1528e2]['distance']?_0x1efb91[_0x1528e2]['level']=_0x3ef308:(_0x3ef308--,_0x1efb91[_0x1528e2][_0x6e87('0x122')]=_0x3ef308,_0x3ef308--);}}[_0x6e87('0x11c')](_0x43643b){const _0x2aa040=new Map(),_0x5da769=this[_0x6e87('0x12')][_0x6e87('0xc0')]['schema'];for(let _0x23aa28=0x1;_0x23aa28<_0x43643b[_0x6e87('0xd8')];_0x23aa28++){let _0x326b83,_0x4ea99f,_0x9f7f21;const _0x2df0c7=_0x43643b[_0x23aa28],_0x14e2b1=_0x43643b[_0x23aa28-0x1];if(_0x6e87('0x53')==_0x2df0c7['type'])continue;if(_0x2df0c7[_0x6e87('0x67')]!=_0x14e2b1[_0x6e87('0x67')])continue;if(!_0x5da769[_0x6e87('0x26')](_0x14e2b1[_0x6e87('0x13')])||_0x5da769[_0x6e87('0x1d')](_0x14e2b1[_0x6e87('0x13')]))continue;if(!_0x5da769[_0x6e87('0x26')](_0x2df0c7['item'])||_0x5da769[_0x6e87('0x1d')](_0x2df0c7[_0x6e87('0x13')]))continue;if((_0x43643b[_0x23aa28][_0x6e87('0x40')]||_0x43643b[_0x23aa28]['isAddSuggestion'])&&_0x43643b[_0x23aa28-0x1][_0x6e87('0x43')])_0x326b83=_0x43643b[_0x23aa28],_0x4ea99f=_0x43643b[_0x23aa28-0x1],_0x9f7f21=_0x23aa28-0x1;else{if(!_0x43643b[_0x23aa28][_0x6e87('0x43')]||!_0x43643b[_0x23aa28-0x1]['isAdded']&&!_0x43643b[_0x23aa28-0x1][_0x6e87('0x102')])continue;_0x326b83=_0x43643b[_0x23aa28-0x1],_0x4ea99f=_0x43643b[_0x23aa28],_0x9f7f21=_0x23aa28;}const _0x14b153=_0x326b83[_0x6e87('0x122')]==_0x4ea99f[_0x6e87('0x122')],_0x1a9423=Math[_0x6e87('0x18')](_0x326b83[_0x6e87('0x122')])<Math[_0x6e87('0x18')](_0x4ea99f[_0x6e87('0x122')])&&0x0==_0x4ea99f[_0x6e87('0x1')];(_0x14b153||_0x1a9423)&&(_0x2aa040['set'](_0x4ea99f['id'],_0x326b83['id']),_0x43643b[_0x6e87('0x3b')](_0x9f7f21,0x1),_0x23aa28--,_0x326b83[_0x6e87('0x40')]=!0x1);}for(let _0xeae324=0x0;_0xeae324<_0x43643b[_0x6e87('0xd8')];_0xeae324++)_0x2aa040[_0x6e87('0x85')](_0x43643b[_0xeae324][_0x6e87('0xfa')])&&(_0x43643b[_0xeae324][_0x6e87('0xfa')]=_0x2aa040[_0x6e87('0x9')](_0x43643b[_0xeae324][_0x6e87('0xfa')]));}[_0x6e87('0xf3')](_0x4b81f2){const _0x321bb0=new Set(_0x4b81f2['map'](_0x706360=>_0x706360['id']));for(let _0x31e143=0x0;_0x31e143<_0x4b81f2[_0x6e87('0xd8')];_0x31e143++)_0x321bb0[_0x6e87('0x85')](_0x4b81f2[_0x31e143][_0x6e87('0xfa')])||0x0==_0x4b81f2[_0x31e143][_0x6e87('0x1')]||(_0x4b81f2[_0x31e143][_0x6e87('0x92')]=!0x0);return _0x4b81f2[_0x6e87('0x49')](_0x5a81e6=>!_0x5a81e6[_0x6e87('0x92')]);}[_0x6e87('0x69')](_0x703ae3){const _0x1c1dab=new Set();for(let _0xac7c5b=0x0;_0xac7c5b<_0x703ae3[_0x6e87('0xd8')];_0xac7c5b++){if(_0x1c1dab[_0x6e87('0x85')](_0x703ae3[_0xac7c5b]['id'])&&_0x703ae3[_0xac7c5b][_0x6e87('0x43')]&&(_0x703ae3[_0xac7c5b][_0x6e87('0x92')]=!0x0),_0x703ae3[_0xac7c5b][_0x6e87('0x92')])continue;if(0x0==_0x703ae3[_0xac7c5b][_0x6e87('0x1')])continue;if(_0x6e87('0x11')!=_0x703ae3[_0xac7c5b][_0x6e87('0x67')])continue;if(null==_0x703ae3[_0xac7c5b][_0x6e87('0xfa')])continue;let _0x25010a=_0xac7c5b+0x1,_0x684487=0x0;for(;_0x703ae3[_0x25010a]['id']!=_0x703ae3[_0xac7c5b][_0x6e87('0xfa')];)_0x6e87('0x11')==_0x703ae3[_0x25010a]['type']?_0x684487++:_0x6e87('0x5a')==_0x703ae3[_0x25010a][_0x6e87('0x67')]&&_0x684487--,_0x25010a++;if(0x0!=_0x684487){if(_0x703ae3[_0xac7c5b][_0x6e87('0x43')])_0x703ae3[_0xac7c5b][_0x6e87('0x92')]=!0x0;else for(;_0x25010a!=_0xac7c5b;)_0x703ae3[_0x25010a][_0x6e87('0x43')]&&0x0!=_0x703ae3[_0x25010a][_0x6e87('0x1')]&&(_0x703ae3[_0x25010a][_0x6e87('0x92')]=!0x0,_0x1c1dab[_0x6e87('0x86')](_0x703ae3[_0x25010a][_0x6e87('0xfa')])),_0x25010a--;}}return _0x703ae3[_0x6e87('0x49')](_0x277348=>!_0x277348[_0x6e87('0x92')]);}[_0x6e87('0x14')](_0x332714){const _0x4d4c1e=this[_0x6e87('0x12')]['model']['schema'];for(let _0x2ca963=0x0;_0x2ca963<_0x332714[_0x6e87('0xd8')];_0x2ca963++){if(!(_0x332714[_0x2ca963][_0x6e87('0x40')]||_0x332714[_0x2ca963][_0x6e87('0x102')]||_0x332714[_0x2ca963][_0x6e87('0x43')]||_0x332714[_0x2ca963][_0x6e87('0xd1')]))continue;if(0x0==_0x332714[_0x2ca963][_0x6e87('0x1')])continue;const _0x4d16f6=_0x332714[_0x2ca963]['item'];_0x4d4c1e[_0x6e87('0x26')](_0x4d16f6)||_0x4d4c1e[_0x6e87('0x1d')](_0x4d16f6)||(_0x332714[_0x2ca963]['isAdded']&&delete _0x332714[_0x2ca963]['isAdded'],_0x332714[_0x2ca963][_0x6e87('0x102')]&&delete _0x332714[_0x2ca963][_0x6e87('0x102')],_0x332714[_0x2ca963][_0x6e87('0xd1')]&&delete _0x332714[_0x2ca963][_0x6e87('0xd1')],_0x332714[_0x2ca963][_0x6e87('0x43')]&&(_0x332714[_0x2ca963][_0x6e87('0x92')]=!0x0));}return _0x332714[_0x6e87('0x49')](_0x1f24c2=>!_0x1f24c2[_0x6e87('0x92')]);}[_0x6e87('0xda')](_0x126764,_0x506f52,_0x57951c){const _0x372890=new _0x45704b(),_0x1a4cb9=[],_0x1157a0=new Map(),_0x4ae0ba=this['editor']['model'],_0x48e0c6=_0x4ae0ba[_0x6e87('0x45')],_0x1a5d14=[_0x372890],_0x18f572={},_0x1caea9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x332e90=null;const _0x3c2402=[0x0];for(let _0x4ee548=0x0;_0x4ee548<_0x126764[_0x6e87('0xd8')];_0x4ee548++){let _0x3c6fbc,_0x391257;if(_0x6e87('0x11')===_0x126764[_0x4ee548][_0x6e87('0x67')]){_0x3c6fbc=_0x4ae0ba[_0x6e87('0xf8')](_0x372890,_0x3c2402);const _0x37172d=new _0x125e7a(_0x126764[_0x4ee548][_0x6e87('0x13')][_0x6e87('0x4d')],_0x126764[_0x4ee548][_0x6e87('0x13')][_0x6e87('0x6e')]());_0x1a5d14[0x0][_0x6e87('0x50')](_0x37172d),_0x3c2402['push'](0x0),_0x1a5d14[_0x6e87('0x114')](_0x37172d),_0x391257=_0x4ae0ba[_0x6e87('0xf8')](_0x372890,_0x3c2402),_0x332e90=null;}else{if(_0x6e87('0x5a')===_0x126764[_0x4ee548][_0x6e87('0x67')])_0x1a5d14['shift'](),_0x3c6fbc=_0x4ae0ba[_0x6e87('0xf8')](_0x372890,_0x3c2402),_0x3c2402['pop'](),_0x3c2402[_0x3c2402[_0x6e87('0xd8')]-0x1]++,_0x391257=_0x4ae0ba['createPositionFromPath'](_0x372890,_0x3c2402),_0x332e90=null;else{if(_0x3c6fbc=_0x4ae0ba[_0x6e87('0xf8')](_0x372890,_0x3c2402),_0x332e90&&_0x1de1a4(_0x332e90,_0x126764[_0x4ee548][_0x6e87('0x13')]))_0x332e90[_0x6e87('0x10c')]+=_0x126764[_0x4ee548][_0x6e87('0x13')][_0x6e87('0x118')];else{const _0x510eb9=new _0x4b90d2(_0x126764[_0x4ee548][_0x6e87('0x13')]['data'],_0x126764[_0x4ee548][_0x6e87('0x13')][_0x6e87('0x6e')]());_0x1a5d14[0x0][_0x6e87('0x50')](_0x510eb9),_0x332e90=_0x510eb9;}_0x3c2402[_0x3c2402['length']-0x1]+=_0x126764[_0x4ee548][_0x6e87('0x13')][_0x6e87('0xe5')],_0x391257=_0x4ae0ba['createPositionFromPath'](_0x372890,_0x3c2402);}}for(const _0x455bb9 of _0x126764[_0x4ee548][_0x6e87('0xa0')])_0x1157a0['set'](_0x455bb9,{'start':_0x3c6fbc,'end':null});_0x52299a(_0x6e87('0xd1'),_0x4ee548,_0x3c6fbc,_0x391257),_0x52299a('isAddSuggestion',_0x4ee548,_0x3c6fbc,_0x391257),_0x52299a(_0x6e87('0x43'),_0x4ee548,_0x3c6fbc,_0x391257),_0x52299a('isAdded',_0x4ee548,_0x3c6fbc,_0x391257);for(const _0x5d1809 of _0x126764[_0x4ee548]['markersEnd']){_0x1157a0['get'](_0x5d1809)['end']=_0x391257;}}for(const [_0x22b487,_0x26a501]of _0x1157a0){const _0x4d8178=this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0x7f')](_0x26a501[_0x6e87('0x66')],_0x26a501[_0x6e87('0xa4')]);_0x372890[_0x6e87('0xdf')][_0x6e87('0x117')](_0x22b487,_0x4d8178);}return _0x1a4cb9[_0x6e87('0x68')]((_0x2d702b,_0x40ac52)=>{const _0x4d961a=_0x372890[_0x6e87('0xdf')][_0x6e87('0x9')]('revision:'+_0x2d702b['id']),_0x22721b=_0x372890[_0x6e87('0xdf')][_0x6e87('0x9')]('revision:'+_0x40ac52['id']);return _0x4d961a['start']['isBefore'](_0x22721b['start'])?-0x1:_0x4d961a[_0x6e87('0x66')][_0x6e87('0x56')](_0x22721b[_0x6e87('0x66')])?0x1:_0x4d961a[_0x6e87('0xa4')][_0x6e87('0x47')](_0x22721b[_0x6e87('0xa4')])?-0x1:_0x4d961a[_0x6e87('0xa4')][_0x6e87('0x56')](_0x22721b[_0x6e87('0xa4')])?0x1:'add'===_0x2d702b['type']?-0x1:0x1;}),{'root':_0x372890,'changes':_0x1a4cb9};function _0x52299a(_0x41e741,_0x2cd90f,_0x24938d,_0x209f30){const _0x2c7664=!!_0x126764[_0x2cd90f][_0x41e741],_0x54f013=_0x2c7664?_0x126764[_0x2cd90f][_0x41e741][_0x6e87('0x38')]:null,_0x38e336=_0x2cd90f===_0x126764[_0x6e87('0xd8')]-0x1,_0x549078=_0x1caea9[_0x41e741][0x0],_0x2a1e6b=_0x48e0c6[_0x6e87('0xf')](_0x126764[_0x2cd90f][_0x6e87('0x13')]);!_0x18f572[_0x41e741]&&_0x2c7664?_0x18f572[_0x41e741]={'start':_0x24938d,'tapeItem':_0x126764[_0x2cd90f],'userId':_0x54f013,'type':_0x41e741}:_0x18f572[_0x41e741]&&!_0x2c7664?(_0x18f572[_0x41e741][_0x6e87('0xa4')]=_0x24938d,_0x41aca4(_0x18f572[_0x41e741]),_0x18f572[_0x41e741]=null):_0x18f572[_0x41e741]&&_0x2c7664&&_0x18f572[_0x41e741][_0x6e87('0x38')]!==_0x54f013&&(_0x18f572[_0x41e741][_0x6e87('0xa4')]=_0x24938d,_0x549078&&_0x549078[_0x6e87('0x38')]===_0x18f572[_0x41e741][_0x6e87('0x38')]||_0x41aca4(_0x18f572[_0x41e741]),_0x18f572[_0x41e741]={'start':_0x24938d,'tapeItem':_0x126764[_0x2cd90f],'userId':_0x54f013,'type':_0x41e741}),_0x18f572[_0x41e741]&&_0x2a1e6b&&('elementStart'!==_0x126764[_0x2cd90f][_0x6e87('0x67')]||_0x549078&&_0x549078[_0x6e87('0x38')]===_0x54f013||_0x1caea9[_0x41e741][_0x6e87('0x114')]({'userId':_0x54f013,'object':_0x126764[_0x2cd90f][_0x6e87('0x13')],'change':_0x18f572[_0x41e741]}),'elementEnd'===_0x126764[_0x2cd90f][_0x6e87('0x67')]&&_0x549078&&_0x549078['object']===_0x126764[_0x2cd90f]['item']&&(_0x1caea9[_0x41e741]['shift'](),_0x18f572[_0x41e741]=_0x549078[_0x6e87('0x48')])),_0x18f572[_0x41e741]&&_0x38e336&&(_0x18f572[_0x41e741]['end']=_0x209f30,_0x41aca4(_0x18f572[_0x41e741]),_0x18f572[_0x41e741]=null);}function _0x41aca4({start:_0x3ac1fb,end:_0x50d53d,tapeItem:_0x26b671,userId:_0x133bce,type:_0x1db184}){const _0x690977=_0x26b671[_0x6e87('0x13')],_0x1ecb05=_0x4ae0ba[_0x6e87('0x45')]['isBlock'](_0x690977)&&!_0x4ae0ba[_0x6e87('0x45')][_0x6e87('0x1d')](_0x690977),_0x528f6c=_0x3ac1fb[_0x6e87('0xc2')]==_0x50d53d[_0x6e87('0xd5')]&&_0x50d53d[_0x6e87('0xc6')];if(_0x1ecb05&&_0x528f6c)return;const _0x395b51=_0x4ae0ba[_0x6e87('0x7f')](_0x3ac1fb,_0x50d53d),_0x1d7ab9=_0x506f52[_0x6e87('0x9')](_0x133bce),_0x1fa234=new _0x33a0cb({'author':_0x1d7ab9,'type':_0x6e87('0x40')==_0x1db184||_0x6e87('0x102')==_0x1db184?'add':_0x6e87('0xa2'),'data':{'isSuggestion':_0x6e87('0x102')==_0x1db184||_0x6e87('0xd1')==_0x1db184},'createdAt':new Date(),'rootName':_0x57951c});_0x1a4cb9[_0x6e87('0x10')](_0x1fa234),_0x372890[_0x6e87('0xdf')]['set'](_0x6e87('0x7e')+_0x1fa234['id'],_0x395b51);}function _0x1de1a4(_0x523845,_0x3783d5){const _0x2fd016=_0x523845[_0x6e87('0x6e')](),_0x1aa1ef=_0x3783d5[_0x6e87('0x6e')]();for(const _0x1baa57 of _0x2fd016){if(_0x1baa57[0x1]!==_0x3783d5[_0x6e87('0x6d')](_0x1baa57[0x0]))return!0x1;_0x1aa1ef['next']();}return _0x1aa1ef[_0x6e87('0x2c')]()[_0x6e87('0x100')];}}[_0x6e87('0xe6')](){this[_0x6e87('0x12')]['conversion'][_0x6e87('0xf5')]('upcast')[_0x6e87('0x27')]({'view':'revision'}),this['editor']['conversion'][_0x6e87('0xf5')](_0x6e87('0x71'))[_0x6e87('0x4')]({'model':_0x6e87('0x25'),'view':_0x5c5ed2=>{const _0x205bb1=_0x5c5ed2[_0x6e87('0xa9')][_0x6e87('0x121')](':')[0x1],_0x204816=this[_0x6e87('0x1c')](_0x205bb1);if(!_0x204816)return null;const _0x5b1261=_0x6e87('0x86')==_0x204816[_0x6e87('0x67')]?_0x6e87('0x5'):_0x6e87('0xa8'),_0x3de62d=['ck-suggestion-marker',_0x6e87('0xc5')+_0x5b1261];return _0x204816[_0x6e87('0x118')][_0x6e87('0x34')]&&_0x3de62d[_0x6e87('0x10')](_0x6e87('0xc5')+_0x5b1261+_0x6e87('0x125')),this[_0x6e87('0x29')]==_0x204816&&_0x3de62d[_0x6e87('0x10')](_0x6e87('0xdc')),{'classes':_0x3de62d,'attributes':{'data-change-id':_0x205bb1}};}}),this['editor'][_0x6e87('0x42')][_0x6e87('0xf5')]('upcast')['add'](_0x1b47bf=>{_0x1b47bf['on'](_0x6e87('0x4b'),(_0xbb43d9,_0x2b65ff,_0x271a92)=>{const _0x3fff42=_0x2b65ff['viewItem']['getChild'](0x0);if(!_0x3fff42||!_0x3fff42['is']('element',_0x6e87('0xae')))return;if(!_0x271a92['consumable'][_0x6e87('0x8b')](_0x3fff42,{'attributes':['vid_start','vid_end']}))return;const _0x9ea7ae=_0x2b65ff[_0x6e87('0x22')]['start'][_0x6e87('0xc2')];_0x271a92[_0x6e87('0xb')][_0x6e87('0x123')](_0x6e87('0x3c'),_0x3fff42[_0x6e87('0x6d')](_0x6e87('0x3c')),_0x9ea7ae),_0x271a92['writer'][_0x6e87('0x123')](_0x6e87('0x3a'),_0x3fff42[_0x6e87('0x6d')](_0x6e87('0x3a')),_0x9ea7ae);},{'priority':'low'});}),this['editor'][_0x6e87('0x42')][_0x6e87('0xf5')](_0x6e87('0x10e'))[_0x6e87('0x86')](_0x198eb4=>{_0x198eb4['on'](_0x6e87('0x113'),(_0x37087b,_0x543070,_0x17c149)=>{if(!_0x17c149[_0x6e87('0x3f')]['consume'](_0x543070['viewItem'],{'attributes':[_0x6e87('0x3c'),_0x6e87('0x3a')]}))return;if(_0x543070[_0x6e87('0x22')]['isCollapsed'])return;const _0x43cb5b=_0x543070[_0x6e87('0x22')][_0x6e87('0x66')]['nodeAfter'];_0x43cb5b[_0x6e87('0xb7')]('vid_start')||_0x43cb5b['hasAttribute'](_0x6e87('0x8'))||(_0x17c149[_0x6e87('0xb')][_0x6e87('0x123')](_0x6e87('0x3c'),_0x543070[_0x6e87('0x4a')][_0x6e87('0x6d')](_0x6e87('0x3c')),_0x43cb5b),_0x17c149[_0x6e87('0xb')][_0x6e87('0x123')](_0x6e87('0x3a'),_0x543070['viewItem'][_0x6e87('0x6d')](_0x6e87('0x3a')),_0x43cb5b));},{'priority':_0x6e87('0xba')});}),this[_0x6e87('0x12')][_0x6e87('0x42')]['for'](_0x6e87('0x10e'))[_0x6e87('0x2a')]({'view':{'name':_0x6e87('0x8f'),'attributes':{'vid':!0x0}},'model':{'key':_0x6e87('0x8'),'value':_0x2f3930=>_0x2f3930[_0x6e87('0x6d')](_0x6e87('0x8'))}}),this[_0x6e87('0x12')][_0x6e87('0xc0')]['schema']['on']('checkAttribute',(_0x502c66,[,_0x3d9e1f])=>{[_0x6e87('0x3c'),'vid_end',_0x6e87('0x8')][_0x6e87('0x111')](_0x3d9e1f)&&(_0x502c66['return']=!0x0,_0x502c66['stop']());},{'priority':_0x6e87('0xe7')}),this[_0x6e87('0x12')][_0x6e87('0x42')][_0x6e87('0xf5')](_0x6e87('0x120'))['add'](_0xf11cb4=>{_0xf11cb4['on'](_0x6e87('0xa1'),(_0x577ef4,_0xa0a432,_0x1f8357)=>{if('\x20'!=_0xa0a432[_0x6e87('0x13')]['data']||_0xa0a432['item'][_0x6e87('0xd5')][_0x6e87('0xc7')]>0x1)return;if(!_0x1f8357['consumable']['consume'](_0xa0a432[_0x6e87('0x13')],_0x577ef4[_0x6e87('0x4d')]))return;const _0x3e70d2=_0x1f8357[_0x6e87('0xb')],_0x53c7bb=_0x1f8357[_0x6e87('0x44')][_0x6e87('0x82')](_0xa0a432[_0x6e87('0x97')]);_0x3e70d2[_0x6e87('0xd7')](_0x53c7bb,_0x3e70d2[_0x6e87('0x7c')](_0x6e87('0x8f')));});}),this['editor'][_0x6e87('0x42')][_0x6e87('0xf5')](_0x6e87('0x120'))['markerToData']({'model':_0x6e87('0x25')}),this[_0x6e87('0x12')]['editing'][_0x6e87('0xde')]['on'](_0x6e87('0xc3'),function(_0x444547){const _0x2d6991=_0x444547[_0x6e87('0x55')][_0x6e87('0x9')](_0x6e87('0x8a'));return(_0x1ae974,_0xaf81ba,_0x27ca88)=>{const _0x420e93=_0xaf81ba[_0x6e87('0xa9')][_0x6e87('0x121')](':')[0x1],_0x3b150c=_0x2d6991[_0x6e87('0x1c')](_0x420e93);if(!_0x3b150c)return null;const _0x1100e2=_0x6e87('0x86')==_0x3b150c[_0x6e87('0x67')]?_0x6e87('0x121'):_0x6e87('0xe1');if(!_0x27ca88['consumable']['test'](_0xaf81ba[_0x6e87('0x6c')],_0x1ae974['name']))return;const _0x52d2f9=_0xaf81ba[_0x6e87('0x6c')]['getWalker'](),_0x2c2ce7=_0xaf81ba[_0x6e87('0x6c')][_0x6e87('0x66')],_0x29b361=_0x444547['model'][_0x6e87('0x45')];let _0x38f0ef=null,_0x5ed25e=null,_0x58348d=!0x1,_0x111f62=!0x1;for(const _0xd61ef7 of _0x52d2f9){const _0x26a533=_0xd61ef7[_0x6e87('0x13')];_0x58348d=_0x58348d||_0x29b361[_0x6e87('0x7a')](_0x26a533);const _0x4c04ee=_0x27ca88[_0x6e87('0x44')]['toViewElement'](_0x26a533);if(_0x4c04ee&&_0x4c04ee[_0x6e87('0xe4')]('addHighlight'))return;_0x6e87('0x5a')==_0xd61ef7[_0x6e87('0x67')]&&(_0x29b361[_0x6e87('0x26')](_0x26a533)&&!_0x29b361[_0x6e87('0x1d')](_0x26a533)&&(_0x26a533[_0x6e87('0x106')]||_0x2c2ce7['isAtEnd']?_0x38f0ef&&_0x38f0ef['parent']==_0x26a533||(_0x38f0ef=_0x26a533,_0x501128(_0xd61ef7[_0x6e87('0xac')]),_0x111f62=!0x0):_0x5ed25e=_0x5ed25e||_0xd61ef7[_0x6e87('0xac')]));}function _0x501128(_0x48e783){const _0x20f12c=_0x27ca88[_0x6e87('0xb')][_0x6e87('0xaa')](_0x6e87('0x8f'),{'class':_0x6e87('0xc5')+_0x1100e2}),_0x53169a=_0x27ca88['mapper'][_0x6e87('0x1a')](_0x48e783);_0x3b150c[_0x6e87('0x118')][_0x6e87('0x34')]&&_0x27ca88[_0x6e87('0xb')][_0x6e87('0x52')](_0x6e87('0xc5')+_0x1100e2+_0x6e87('0x125'),_0x20f12c),_0x2d6991[_0x6e87('0x29')]==_0x3b150c&&_0x27ca88[_0x6e87('0xb')][_0x6e87('0x52')]('ck-suggestion-marker--active',_0x20f12c),_0x27ca88[_0x6e87('0xb')]['insert'](_0x53169a,_0x20f12c),_0x27ca88[_0x6e87('0x44')][_0x6e87('0x23')](_0x20f12c,_0xaf81ba[_0x6e87('0xa9')]);}_0x58348d||_0x111f62||!_0x5ed25e||_0x501128(_0x5ed25e);};}(this[_0x6e87('0x12')]),{'priority':_0x6e87('0x124')}),this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xde')]['on'](_0x6e87('0x88'),(_0x1b5451,_0x1af64b,_0x28b102)=>{const _0x1a0726=_0x28b102['mapper'][_0x6e87('0x77')](_0x1af64b['markerName']);if(_0x1a0726)for(const _0x297591 of _0x1a0726)(_0x297591[_0x6e87('0xb2')](_0x6e87('0x35'))||_0x297591[_0x6e87('0xb2')](_0x6e87('0xa3')))&&(_0x28b102[_0x6e87('0x44')][_0x6e87('0xb9')](_0x297591,_0x1af64b[_0x6e87('0xa9')]),_0x28b102[_0x6e87('0xb')][_0x6e87('0xa2')](_0x297591));},{'priority':_0x6e87('0x124')}),this['editor'][_0x6e87('0x73')]['downcastDispatcher']['on']('addMarker:revision',(_0xd4e65a,_0x48e3b6,_0x454b48)=>{const _0x37377d=_0x48e3b6['markerName']['split'](':')[0x1],_0x2c44ac=this[_0x6e87('0x1c')](_0x37377d);if(!_0x2c44ac)return null;const _0x5de21e=_0x6e87('0x86')==_0x2c44ac['type']?'split':'merge';if(_0x454b48[_0x6e87('0x3f')][_0x6e87('0x103')](_0x48e3b6['markerRange'],_0xd4e65a[_0x6e87('0x4d')]))for(const _0x1e13f1 of _0x48e3b6['markerRange'][_0x6e87('0xa5')]()){if(!_0x1e13f1['is']('element',_0x6e87('0x80')))continue;const _0x4bca37=_0x454b48[_0x6e87('0xb')]['createUIElement'](_0x6e87('0x8f'),{'class':'ck-suggestion-marker-'+_0x5de21e}),_0x2ca8bb=_0x454b48['mapper']['toViewPosition'](this[_0x6e87('0x12')]['model'][_0x6e87('0xaf')](_0x1e13f1));_0x2c44ac[_0x6e87('0x118')][_0x6e87('0x34')]&&_0x454b48[_0x6e87('0xb')]['addClass'](_0x6e87('0xc5')+_0x5de21e+_0x6e87('0x125'),_0x4bca37),this[_0x6e87('0x29')]==_0x2c44ac&&_0x454b48['writer'][_0x6e87('0x52')](_0x6e87('0xdc'),_0x4bca37),_0x454b48[_0x6e87('0xb')][_0x6e87('0x107')](_0x2ca8bb,_0x4bca37),_0x454b48[_0x6e87('0x44')][_0x6e87('0x23')](_0x4bca37,_0x48e3b6[_0x6e87('0xa9')]);}},{'priority':_0x6e87('0x124')}),this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xd6')]['on'](_0x6e87('0x48'),()=>{this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0x48')](_0x288084=>{for(const _0x3993cb of this[_0x6e87('0x12')][_0x6e87('0xc0')]['document'][_0x6e87('0x4c')]()){const _0x235f3a=this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xd6')][_0x6e87('0x17')](_0x3993cb),_0x5711cf=this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0xd6')]['getRoot'](_0x3993cb);if(_0x5711cf){const _0x832583=_0x235f3a[_0x6e87('0x6d')](_0x6e87('0x2b'));if(_0x288084[_0x6e87('0xeb')](_0x6e87('0x15'),_0x5711cf),_0x288084['removeClass'](_0x6e87('0x4f'),_0x5711cf),_0x288084[_0x6e87('0x19')](_0x6e87('0x57'),_0x5711cf),_0x288084[_0x6e87('0x19')](_0x6e87('0x59'),_0x5711cf),_0x832583){const _0x4c198e=this['_getChangeFromId'](_0x832583);if(!_0x4c198e)return null;_0x288084[_0x6e87('0x123')](_0x6e87('0x15'),_0x832583,_0x5711cf),_0x288084[_0x6e87('0x52')]('ck-revision-history-root-'+_0x4c198e[_0x6e87('0x67')],_0x5711cf),this[_0x6e87('0x29')]==_0x4c198e&&_0x288084['addClass']('ck-revision-history-root--active',_0x5711cf);}}}});}),this[_0x6e87('0x12')][_0x6e87('0x42')][_0x6e87('0xf5')](_0x6e87('0x10e'))[_0x6e87('0x27')]({'view':_0x6e87('0xf7'),'model':_0x348b91=>'revision-comment:'+_0x348b91,'converterPriority':_0x6e87('0xe7')}),this[_0x6e87('0x12')]['conversion'][_0x6e87('0xf5')](_0x6e87('0x10e'))[_0x6e87('0x27')]({'view':_0x6e87('0x7'),'model':_0x2af8de=>_0x6e87('0xca')+_0x2af8de,'converterPriority':_0x6e87('0xe7')}),this[_0x6e87('0x12')]['conversion'][_0x6e87('0xf5')]('dataDowncast')[_0x6e87('0x1b')]({'model':'revision-suggestion','view':_0x55659c=>({'name':_0x6e87('0x87')+_0x55659c,'group':_0x6e87('0x9f')}),'converterPriority':_0x6e87('0xe7')}),this[_0x6e87('0x12')]['conversion'][_0x6e87('0xf5')](_0x6e87('0x71'))[_0x6e87('0x4')]({'model':'revision-suggestion','view':_0x96e3d0=>{const _0x4b2a98=_0x96e3d0[_0x6e87('0xa9')][_0x6e87('0x121')](':')[0x1];return _0x6e87('0x5')!=_0x4b2a98&&_0x6e87('0xa8')!=_0x4b2a98?null:{'classes':[_0x6e87('0x39'),'ck-suggestion-preview-marker-'+_0x4b2a98]};}}),this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xde')]['on'](_0x6e87('0x7b'),et(this['editor'],'merge'),{'priority':_0x6e87('0x124')}),this[_0x6e87('0x12')][_0x6e87('0x73')]['downcastDispatcher']['on'](_0x6e87('0xc9'),et(this[_0x6e87('0x12')],_0x6e87('0x121')),{'priority':_0x6e87('0x124')}),this[_0x6e87('0x12')][_0x6e87('0x73')]['downcastDispatcher']['on'](_0x6e87('0x116'),(_0x13acef,_0x4f9945,_0x5bf3ac)=>{const _0x4e6129=_0x5bf3ac['mapper']['markerNameToElements'](_0x4f9945['markerName']);if(_0x4e6129)for(const _0x53e905 of _0x4e6129)_0x53e905['is']('uiElement')&&(_0x5bf3ac[_0x6e87('0x44')][_0x6e87('0xb9')](_0x53e905,_0x4f9945[_0x6e87('0xa9')]),_0x5bf3ac[_0x6e87('0xb')][_0x6e87('0xa2')](_0x53e905));},{'priority':'high'});}[_0x6e87('0x1c')](_0x4a26f9){return this[_0x6e87('0xd4')][_0x6e87('0x9')](_0x4a26f9);}['_getViewForChange'](_0x19b8ec){return this[_0x6e87('0xee')]&&this[_0x6e87('0xee')][_0x6e87('0xe9')](),this[_0x6e87('0xee')]=new _0x3a70a1(this[_0x6e87('0x12')][_0x6e87('0x7d')],_0x19b8ec),this[_0x6e87('0xee')];}[_0x6e87('0x6b')](){this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xd6')][_0x6e87('0xb8')]['observeMarkers'](_0x6e87('0x25')),this['on'](_0x6e87('0xd3'),(_0x22e7ec,_0x5b66dd,_0x271da1,_0xa7ff42)=>{_0xa7ff42&&this[_0x6e87('0xfc')][_0x6e87('0xa2')](_0xa7ff42),_0x271da1&&(this[_0x6e87('0xfc')][_0x6e87('0x86')]({'view':_0x271da1,'stackId':_0x6e87('0x93'),'position':{'target':()=>{const _0x3c5070=this['editor'][_0x6e87('0x73')],_0x4a2039=this[_0x6e87('0x1c')](_0x271da1['changeId']);let _0x3d340e;if(_0x4a2039[_0x6e87('0x118')][_0x6e87('0x84')]){const _0x2b1578=_0x3c5070['view'][_0x6e87('0xb0')](_0x4a2039[_0x6e87('0x11f')]);_0x3d340e=Array[_0x6e87('0x72')](_0x2b1578[_0x6e87('0xfe')]());}else{const _0x1754e2=this['editor'][_0x6e87('0xc0')]['markers']['get'](_0x6e87('0x7e')+_0x271da1[_0x6e87('0x9e')]);_0x3d340e=Array[_0x6e87('0x72')](_0x3c5070['mapper'][_0x6e87('0x77')](_0x1754e2['name']))[_0x6e87('0xe')](_0x5bc352=>_0x3c5070['view'][_0x6e87('0x1f')]['mapViewToDom'](_0x5bc352))[_0x6e87('0xe')](_0x1e5e2e=>Array['from'](_0x1e5e2e['getClientRects']()))[_0x6e87('0x90')]();}if(!this[_0x6e87('0xed')])return _0x3d340e[0x0];return _0x3d340e[_0x6e87('0xc4')](_0x1fea58=>_0x1fea58[_0x6e87('0xa6')]-0x3<=this['_activeViewTarget']['y']&&_0x1fea58[_0x6e87('0xb1')]+0x3>=this[_0x6e87('0xed')]['y']&&_0x1fea58[_0x6e87('0x78')]-0x3<=this[_0x6e87('0xed')]['x']&&_0x1fea58[_0x6e87('0x91')]+0x3>=this[_0x6e87('0xed')]['x'])||_0x3d340e[0x0];}}}),this[_0x6e87('0xfc')]['showStack'](_0x6e87('0x93')));}),this['on'](_0x6e87('0x5e'),(_0x45bb8b,_0x1d3210,_0x518253,_0x13dedd)=>{this['activeView']=_0x518253?this[_0x6e87('0x105')](_0x518253):null,this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0x48')](()=>{const _0x29f9ec=this[_0x6e87('0x12')][_0x6e87('0x73')];_0x13dedd&&(_0x13dedd['data'][_0x6e87('0x84')]?_0x29f9ec[_0x6e87('0xd0')][_0x6e87('0x48')](_0x18dc4a=>{_0x18dc4a['removeClass'](_0x6e87('0x59'),_0x29f9ec[_0x6e87('0xd0')][_0x6e87('0xd6')][_0x6e87('0x17')](_0x13dedd['rootName']));}):_0x29f9ec[_0x6e87('0x10a')](_0x6e87('0x7e')+_0x13dedd['id'])),_0x518253&&(_0x518253[_0x6e87('0x118')]['isOnRoot']?_0x29f9ec[_0x6e87('0xd0')][_0x6e87('0x48')](_0xe95c10=>{_0xe95c10[_0x6e87('0x52')](_0x6e87('0x59'),_0x29f9ec[_0x6e87('0xd0')][_0x6e87('0xd6')][_0x6e87('0x17')](_0x518253['rootName']));}):_0x29f9ec[_0x6e87('0x10a')]('revision:'+_0x518253['id']));});}),this[_0x6e87('0xf1')](this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0xd6')],_0x6e87('0x2e'),(_0x3245ae,_0x53bbd0)=>{if(this['activeChange'])return;const _0x4b8de2=this[_0x6e87('0x10b')](_0x53bbd0['target']),_0x5bd708=this[_0x6e87('0xd4')][_0x6e87('0x9')](_0x4b8de2);_0x5bd708?(this[_0x6e87('0xed')]={'x':_0x53bbd0[_0x6e87('0x119')]['x'],'y':_0x53bbd0[_0x6e87('0x119')]['y']},this[_0x6e87('0x11b')]=this[_0x6e87('0x105')](_0x5bd708)):(this[_0x6e87('0xed')]=null,this[_0x6e87('0x11b')]=null);}),this['listenTo'](this[_0x6e87('0x12')][_0x6e87('0x73')]['view'][_0x6e87('0xd6')],'mousedown',(_0x27b40a,_0x55dd06)=>{const _0x3c6bd8=this['_findChangeIdFromDomTarget'](_0x55dd06[_0x6e87('0x64')]),_0xeb6033=this[_0x6e87('0xd4')][_0x6e87('0x9')](_0x3c6bd8);_0xeb6033?(this[_0x6e87('0xed')]={'x':_0x55dd06[_0x6e87('0x119')]['x'],'y':_0x55dd06[_0x6e87('0x119')]['y']},_0xeb6033===this['activeChange']?this[_0x6e87('0xfc')][_0x6e87('0x51')]():this[_0x6e87('0x29')]=_0xeb6033):(this[_0x6e87('0xed')]=null,this[_0x6e87('0x29')]=null);});}[_0x6e87('0x10b')](_0xc4e7d2){do{const _0xfc6e4f=_0xc4e7d2[_0x6e87('0x6d')](_0x6e87('0x15'));if(_0xfc6e4f)return _0xfc6e4f;_0xc4e7d2=_0xc4e7d2['parent'];}while(_0xc4e7d2);return null;}[_0x6e87('0xab')](){this[_0x6e87('0x12')]['model'][_0x6e87('0x48')](_0xdafd6c=>{for(const _0x45d6c7 of this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xdf')])_0xdafd6c[_0x6e87('0xbc')](_0x45d6c7);});}}function et(_0x537b25,_0x572724){return(_0x4a37e6,_0x25bd86,_0x37a3f6)=>{if(!_0x37a3f6['consumable'][_0x6e87('0x103')](_0x25bd86[_0x6e87('0x6c')],_0x4a37e6[_0x6e87('0x4d')]))return;const _0x10b185=_0x25bd86['markerRange'][_0x6e87('0x115')](),_0x56a212=_0x25bd86['markerRange'][_0x6e87('0x66')],_0x1a3096=_0x537b25[_0x6e87('0xc0')][_0x6e87('0x45')];let _0x1936b8=null,_0x183aca=null,_0x59c742=!0x1,_0x3f51b0=!0x1;for(const _0x18a79b of _0x10b185){const _0x3b806e=_0x18a79b[_0x6e87('0x13')];_0x59c742=_0x59c742||_0x1a3096[_0x6e87('0x7a')](_0x3b806e);const _0x4e68ed=_0x37a3f6[_0x6e87('0x44')][_0x6e87('0x31')](_0x3b806e);if(_0x4e68ed&&_0x4e68ed[_0x6e87('0xe4')](_0x6e87('0xdd')))return;_0x6e87('0x5a')==_0x18a79b['type']&&(_0x1a3096['isBlock'](_0x3b806e)&&!_0x1a3096[_0x6e87('0x1d')](_0x3b806e)&&(_0x3b806e[_0x6e87('0x106')]||_0x56a212[_0x6e87('0x70')]?_0x1936b8&&_0x1936b8[_0x6e87('0xd5')]==_0x3b806e||(_0x1936b8=_0x3b806e,_0x490952(_0x18a79b[_0x6e87('0xac')]),_0x3f51b0=!0x0):_0x183aca=_0x183aca||_0x18a79b['previousPosition']));}function _0x490952(_0x441bdf){const _0x1a66e4=_0x37a3f6['mapper'][_0x6e87('0x1a')](_0x441bdf),_0x50f807=_0x37a3f6[_0x6e87('0xb')][_0x6e87('0xaa')]('span',{'class':_0x6e87('0x8c')+_0x572724});_0x37a3f6[_0x6e87('0xb')][_0x6e87('0x107')](_0x1a66e4,_0x50f807),_0x37a3f6[_0x6e87('0x44')][_0x6e87('0x23')](_0x50f807,_0x25bd86[_0x6e87('0xa9')]);}_0x59c742||_0x3f51b0||!_0x183aca||_0x490952(_0x183aca);};}export class RestoreRevisionCommand extends _0x412ba8{constructor(_0x259259){super(_0x259259);const _0x199486=_0x259259[_0x6e87('0x55')][_0x6e87('0x9')](d);this[_0x6e87('0xb5')]=!0x1,this['listenTo'](_0x199486,_0x6e87('0xbb'),()=>this['refresh']()),this[_0x6e87('0xf1')](_0x199486,_0x6e87('0x79'),()=>this[_0x6e87('0xbe')]());}[_0x6e87('0x104')](){const _0x5538e0=this[_0x6e87('0x12')],_0x1c7b99=_0x5538e0[_0x6e87('0x55')][_0x6e87('0x9')](d),_0x17636c=_0x1c7b99[_0x6e87('0x11d')]?_0x1c7b99[_0x6e87('0xa7')][_0x6e87('0xbf')]:null;_0x5538e0[_0x6e87('0x9d')][_0x6e87('0x9')](_0x6e87('0x37'))[_0x6e87('0xd9')](_0x17636c);}['refresh'](){const {isReady:_0x42c9c2,isEnabled:_0x471247}=this['editor']['plugins']['get'](d);this[_0x6e87('0xcb')]=_0x42c9c2&&_0x471247;}}export class ShowChangeCommand extends _0x412ba8{constructor(_0x4ab809,{direction:_0xedd909}){super(_0x4ab809);const _0x45dc77=_0x4ab809[_0x6e87('0x55')][_0x6e87('0x9')](d);this['affectsData']=!0x1,this[_0x6e87('0x58')]=_0x6e87('0x11e')===_0xedd909?0x1:-0x1,this[_0x6e87('0xf1')](_0x45dc77,_0x6e87('0xbb'),()=>this[_0x6e87('0xbe')]()),this['listenTo'](_0x45dc77,_0x6e87('0x79'),()=>this[_0x6e87('0xbe')]()),this[_0x6e87('0xf1')](_0x45dc77,_0x6e87('0x5e'),()=>this['refresh']());}[_0x6e87('0x104')](){const _0x243dc4=this[_0x6e87('0x12')],_0x48a518=_0x243dc4['plugins'][_0x6e87('0x9')](d),{isNavigationMode:_0x525ddb,currentChangeNumber:_0x504224}=_0x48a518;let _0x278161;if(_0x48a518['activeChange']=_0x525ddb?_0x48a518[_0x6e87('0xa7')][_0x6e87('0x60')][_0x6e87('0x9')](_0x504224+this[_0x6e87('0x58')]):_0x48a518['diff'][_0x6e87('0x60')][_0x6e87('0xb4')],_0x48a518['activeChange'][_0x6e87('0x118')][_0x6e87('0x84')])_0x278161=_0x243dc4[_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0xb0')](_0x48a518[_0x6e87('0x29')]['rootName']);else{const _0x425341=_0x243dc4['model'][_0x6e87('0xdf')][_0x6e87('0x9')](_0x6e87('0x7e')+_0x48a518[_0x6e87('0x29')]['id']);_0x278161=_0x5c32cc(_0x243dc4[_0x6e87('0x73')],_0x425341);}_0x287daa({'target':_0x278161,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x562293,currentChangeNumber:_0x15345f,numberOfChanges:_0x34678d,isReady:_0x319cf0,isEnabled:_0x3cda7e}=this[_0x6e87('0x12')][_0x6e87('0x55')][_0x6e87('0x9')](d);this[_0x6e87('0xcb')]=!!(_0x3cda7e&&_0x319cf0&&_0x34678d)&&(!_0x562293||(0x1===this[_0x6e87('0x58')]?_0x15345f<_0x34678d-0x1:_0x15345f>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3656=['button','stopPropagation','name','first','change:isActionsDropdownOpen','isReady','Restore\x20this\x20revision','ck-on','source','bind','isEnabled','Show\x20more\x20items','_action','Name\x20this\x20revision','extendTemplate','locale','threeVerticalDots','model','isVisible','function','panelPosition','Compare\x20against\x20selected','set','map','listenTo','children','listView','isActionsDropdownOpen','class','isOpen','execute','action','add','bindTemplate'];(function(_0x473b42,_0x36563b){const _0x27f2d7=function(_0x34588d){while(--_0x34588d){_0x473b42['push'](_0x473b42['shift']());}};_0x27f2d7(++_0x36563b);}(_0x3656,0x18f));const _0x27f2=function(_0x473b42,_0x36563b){_0x473b42=_0x473b42-0x0;let _0x27f2d7=_0x3656[_0x473b42];return _0x27f2d7;};import{Collection as _0x3a7ee1}from'ckeditor5/src/utils';import{icons as _0x26d781}from'ckeditor5/src/core';import{Model as _0xb29c1f,addListToDropdown as _0x17bef9,createDropdown as _0x50d7dc}from'ckeditor5/src/ui';import{getTranslation as _0x16fc4a}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x16b4dc,_0x402aee){const _0x3b1423=_0x16b4dc[_0x27f2('0x8')],_0x10a010=_0x16b4dc[_0x27f2('0x18')],_0x411583=_0x50d7dc(_0x10a010);_0x411583[_0x27f2('0x1d')]='sw';const _0x50eacd=function(_0x20111c,_0x583aed){const _0x2073e7=function(_0x3198d5,_0x4cb89f){const _0x3a8b26=_0x3198d5[_0x27f2('0x18')],_0x180411={'Compare\x20against\x20selected':_0x16fc4a(_0x3a8b26,_0x27f2('0x1e')),'Name\x20this\x20revision':_0x16fc4a(_0x3a8b26,_0x27f2('0x16')),'Restore\x20this\x20revision':_0x16fc4a(_0x3a8b26,_0x27f2('0xf'))};return _0x4cb89f[_0x27f2('0x20')](_0x176f9d=>{const _0x25438d=_0x180411[_0x176f9d[_0x27f2('0xb')]];return _0x25438d&&_0x25438d!==_0x176f9d['name']&&(_0x176f9d['name']=_0x25438d),_0x176f9d;});}(_0x20111c,_0x583aed),_0x3c3e61=new _0x3a7ee1();for(const _0x29aa1c of _0x2073e7){const _0x4b78d0={'type':_0x27f2('0x9'),'model':new _0xb29c1f({'label':_0x29aa1c['name'],'class':_0x29aa1c[_0x27f2('0x3')],'withText':!0x0,'_action':_0x29aa1c[_0x27f2('0x6')]})};_0x4b78d0[_0x27f2('0x1a')][_0x27f2('0x12')](_0x27f2('0x13'))['to'](_0x20111c,'isActionsDropdownOpen',_0x4e6371=>_0x27f2('0x1c')!=typeof _0x29aa1c['isEnabled']||(!_0x4e6371||_0x29aa1c[_0x27f2('0x13')](_0x20111c))),_0x3c3e61[_0x27f2('0x7')](_0x4b78d0);}return _0x3c3e61;}(_0x16b4dc,_0x402aee);return _0x16b4dc['bind'](_0x27f2('0x2'))['to'](_0x411583,_0x27f2('0x4')),_0x411583['buttonView'][_0x27f2('0x1f')]({'label':_0x16fc4a(_0x10a010,_0x27f2('0x14')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x26d781[_0x27f2('0x19')]}),_0x411583[_0x27f2('0x17')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3b1423['if'](_0x27f2('0x2'),_0x27f2('0x10'))]},'on':{'click':_0x3b1423['to'](_0x4ab147=>_0x4ab147[_0x27f2('0xa')]())}}),_0x411583['on'](_0x27f2('0x5'),_0x111c4d=>{_0x16b4dc[_0x27f2('0xe')]&&_0x27f2('0x1c')==typeof _0x111c4d['source'][_0x27f2('0x15')]&&_0x111c4d[_0x27f2('0x11')][_0x27f2('0x15')](_0x16b4dc);}),_0x17bef9(_0x411583,_0x50eacd),_0x411583[_0x27f2('0x21')](_0x16b4dc,_0x27f2('0xd'),(_0x1d2653,_0xf9213f,_0x54f0c5)=>{if(_0x54f0c5)for(const _0x481a2a of _0x411583[_0x27f2('0x1')]['items']){const _0x245f2e=_0x481a2a[_0x27f2('0x0')][_0x27f2('0xc')],_0x2b218c=_0x402aee['find'](_0x5d5bc3=>_0x5d5bc3[_0x27f2('0x6')]===_0x245f2e[_0x27f2('0x15')])[_0x27f2('0x1b')];_0x481a2a[_0x27f2('0x1b')]=void 0x0===_0x2b218c||_0x2b218c(_0x16b4dc);}}),_0x411583;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c3b=['Revision\x20creator','0\x200\x2011\x2010','set','span','ck-revision-history-sidebar__revision-author__name','setTemplate','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','push','Revision\x20author'];(function(_0x3ab117,_0x4c3bca){const _0x4155a1=function(_0x4125e6){while(--_0x4125e6){_0x3ab117['push'](_0x3ab117['shift']());}};_0x4155a1(++_0x4c3bca);}(_0x4c3b,0x15a));const _0x4155=function(_0x3ab117,_0x4c3bca){_0x3ab117=_0x3ab117-0x0;let _0x4155a1=_0x4c3b[_0x3ab117];return _0x4155a1;};import{View as _0x412fde,IconView as _0x5d0247}from'ckeditor5/src/ui';import{getTranslation as _0x17b60d}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x5baf87 from'../../../theme/icons/user.svg';export default class ti extends _0x412fde{constructor(_0xf67ca0,_0x506e41,_0x173bb1){super(_0xf67ca0);const _0x4f865c=new _0x5d0247();_0x4f865c[_0x4155('0x6')]({'content':_0x5baf87,'viewBox':_0x4155('0x5')});const _0x404439=['ck',_0x4155('0x0')];_0x173bb1&&_0x404439[_0x4155('0x2')](_0x4155('0x1'));const _0x51b9b2=[{'tag':_0x4155('0x7'),'attributes':{'class':['ck',_0x4155('0x8')],'title':_0x17b60d(_0xf67ca0,_0x173bb1?_0x4155('0x4'):_0x4155('0x3'))},'children':[_0x4f865c,_0x506e41['name']]}];this[_0x4155('0x9')]({'tag':'li','attributes':{'class':_0x404439},'children':_0x51b9b2});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3e1e=['span','ck-revision-history-sidebar__revision-name','Revision\x20name','extendTemplate'];(function(_0x3672d3,_0x3e1ee1){var _0x5d89ba=function(_0x49954b){while(--_0x49954b){_0x3672d3['push'](_0x3672d3['shift']());}};_0x5d89ba(++_0x3e1ee1);}(_0x3e1e,0x148));var _0x5d89=function(_0x3672d3,_0x3e1ee1){_0x3672d3=_0x3672d3-0x0;var _0x5d89ba=_0x3e1e[_0x3672d3];return _0x5d89ba;};import{LabeledFieldView as _0x1232f5}from'ckeditor5/src/ui';import{getTranslation as _0x80ceb4}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x1232f5{constructor(_0x24ee1e,_0x1bc75a){super(_0x24ee1e,_0x1bc75a),this['set']({'label':_0x80ceb4(_0x24ee1e,_0x5d89('0x2'))}),this[_0x5d89('0x3')]({'tag':_0x5d89('0x0'),'attributes':{'class':[_0x5d89('0x1')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26a6=['creator','change','revisionActionsView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-wrapper','srcElement','from','set','isReady','unshift','createdAt','value','filter','_createdAtFormatted','fire','revisionNameView','ck-disabled','fieldView','220','isActionsDropdownOpen','authors','closest','isHighlighted','div','name','ck-revision-history-sidebar__actions_dropdown_open','isConfirm','bind','element','ck-revision-history-sidebar__revision__date','isEnabled','unhighlight','extendTemplate','select','highlight','render','span','isSelected','ck-revision-history-sidebar__revision','map','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision-authors','ck-reset','bindTemplate','setName','_revision'];(function(_0x527ead,_0x26a653){const _0x2b53b4=function(_0x372d90){while(--_0x372d90){_0x527ead['push'](_0x527ead['shift']());}};_0x2b53b4(++_0x26a653);}(_0x26a6,0x1be));const _0x2b53=function(_0x527ead,_0x26a653){_0x527ead=_0x527ead-0x0;let _0x2b53b4=_0x26a6[_0x527ead];return _0x2b53b4;};import{View as _0x17b1b4,createLabeledInputText as _0x2b6f8b}from'ckeditor5/src/ui';import{ConfirmMixin as _0x255bc3}from'ckeditor5-collaboration/src/collaboration-core';import _0x1abe14 from'./revisionnameview';import _0x471771 from'./revisionauthorview';import{dateToPrettyFormat as _0x21b97a}from'./utils';import{createActionsDropdownView as _0x129020}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x255bc3(_0x17b1b4){constructor(_0x352961,_0x3c893f,_0x21cbe0){super(_0x352961);const _0x5a352d=this[_0x2b53('0x15')],_0x428fa5=function(_0x17bce7,_0x260042){const _0x3e5e64=Array[_0x2b53('0x1f')](_0x260042[_0x2b53('0x2d')])[_0x2b53('0x25')](_0x41e176=>_0x41e176!=_0x260042[_0x2b53('0x18')]);return _0x260042[_0x2b53('0x18')]&&_0x3e5e64[_0x2b53('0x22')](_0x260042[_0x2b53('0x18')]),_0x3e5e64[_0x2b53('0x11')](_0x72bf5d=>new _0x471771(_0x17bce7,_0x72bf5d,_0x72bf5d==_0x260042[_0x2b53('0x18')]));}(_0x352961,_0x3c893f);this['id']=_0x3c893f['id'],this[_0x2b53('0x17')]=_0x3c893f,this[_0x2b53('0x5')](_0x2b53('0x2'),_0x2b53('0x23'))['to'](_0x3c893f),this[_0x2b53('0x5')](_0x2b53('0x26'))['to'](this,'createdAt',_0x50bd69=>_0x50bd69?_0x21b97a(_0x352961['uiLanguage'],_0x50bd69):void 0x0),this[_0x2b53('0x20')](_0x2b53('0xf'),!0x1),this['set']('isHighlighted',!0x1),this[_0x2b53('0x20')](_0x2b53('0x2c'),!0x1),this['set'](_0x2b53('0x21'),!0x1),this[_0x2b53('0x20')](_0x2b53('0x8'),!0x1),this[_0x2b53('0x28')]=new _0x1abe14(_0x352961,_0x2b6f8b),this['revisionNameView']['fieldView'][_0x2b53('0xa')]({'attributes':{'maxlength':_0x2b53('0x2b')}}),this[_0x2b53('0x28')][_0x2b53('0x2a')]['bind'](_0x2b53('0x24'),'placeholder')['to'](this,'name',_0x2b53('0x26')),this['revisionNameView'][_0x2b53('0x5')](_0x2b53('0x8'))['to'](this,_0x2b53('0xf'),this,_0x2b53('0x8'),(_0x1fb6be,_0x485f84)=>_0x1fb6be&&_0x485f84),this[_0x2b53('0x1a')]=_0x21cbe0&&_0x21cbe0['length']?_0x129020(this,_0x21cbe0):'',this[_0x2b53('0x1a')]&&this[_0x2b53('0x1a')][_0x2b53('0x5')]('isEnabled')['to'](this),this['setTemplate']({'tag':_0x2b53('0x1'),'attributes':{'class':['ck',_0x2b53('0x14'),_0x2b53('0x1d'),_0x5a352d['if'](_0x2b53('0x4'),_0x2b53('0x1b'))]},'children':[{'tag':_0x2b53('0x1'),'attributes':{'class':['ck',_0x2b53('0x14'),_0x2b53('0x10'),_0x5a352d['if']('isEnabled',_0x2b53('0x29'),_0x9991c0=>!_0x9991c0),_0x5a352d['if'](_0x2b53('0xf'),_0x2b53('0x1c')),_0x5a352d['if'](_0x2b53('0x0'),_0x2b53('0x12')),_0x5a352d['if']('isActionsDropdownOpen',_0x2b53('0x3'))]},'children':[this[_0x2b53('0x28')],{'tag':_0x2b53('0xe'),'attributes':{'class':['ck',_0x2b53('0x7')]},'children':[{'text':_0x5a352d['to'](_0x2b53('0x26'))}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2b53('0x13')]},'children':_0x428fa5}]},this[_0x2b53('0x1a')]],'on':{'click':_0x5a352d['to'](_0x1a87ad=>{_0x1a87ad[_0x2b53('0x1e')][_0x2b53('0x2e')]('.ck-thread__remove-confirm')||this[_0x2b53('0x21')]&&this[_0x2b53('0x8')]&&this['fire'](_0x2b53('0xb'),{'id':this['id']});})}}]});}['render'](){super[_0x2b53('0xd')]();const _0x331f4e=this[_0x2b53('0x28')][_0x2b53('0x2a')][_0x2b53('0x6')];this['listenTo'](_0x331f4e,_0x2b53('0x19'),()=>{this[_0x2b53('0x27')](_0x2b53('0x16'),{'id':this['id'],'name':_0x331f4e[_0x2b53('0x24')]});});}[_0x2b53('0xb')](){this[_0x2b53('0xf')]=!0x0;}['deselect'](){this['isSelected']=!0x1;}[_0x2b53('0xc')](){this[_0x2b53('0x0')]=!0x0;}[_0x2b53('0x9')](){this[_0x2b53('0x0')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5750=['span','set','ck-revision-history-sidebar__subrevision-collapser__inner','button','isVisible','click','ck-hidden','_isCollapsed','false','toggle','bindTemplate'];(function(_0x298d23,_0x575090){const _0x4d4785=function(_0x5e0c1a){while(--_0x5e0c1a){_0x298d23['push'](_0x298d23['shift']());}};_0x4d4785(++_0x575090);}(_0x5750,0x112));const _0x4d47=function(_0x298d23,_0x575090){_0x298d23=_0x298d23-0x0;let _0x4d4785=_0x5750[_0x298d23];return _0x4d4785;};import{View as _0x199e72}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x199e72{constructor(_0x5a993b){super(_0x5a993b);const _0x2eb4f7=this[_0x4d47('0x0')];this[_0x4d47('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x2eb4f7['if'](_0x4d47('0x5'),_0x4d47('0x7'),_0x5b5bc5=>!_0x5b5bc5),_0x2eb4f7['if'](_0x4d47('0x8'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x4d47('0x4'),'aria-pressed':_0x2eb4f7['to']('_isCollapsed',_0xbb856d=>_0xbb856d?_0x4d47('0x9'):'true')},'children':[{'tag':_0x4d47('0x1'),'attributes':{'class':['ck',_0x4d47('0x3')]}}],'on':{'click':_0x2eb4f7['to'](_0x4d47('0x6'))}});}[_0x4d47('0xa')](){this[_0x4d47('0x8')]=!this[_0x4d47('0x8')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e87=['ck-reset','bindTemplate','isSelected','ck-revision-history-sidebar__revision_selected','createdAt','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision-authors','fire','span','_parentRevisionId','creator','set','select','bind','_createdAtFormatted','ck-revision-history-sidebar__revision'];(function(_0x2eb736,_0x3e87bb){const _0x30cbed=function(_0x33afac){while(--_0x33afac){_0x2eb736['push'](_0x2eb736['shift']());}};_0x30cbed(++_0x3e87bb);}(_0x3e87,0x128));const _0x30cb=function(_0x2eb736,_0x3e87bb){_0x2eb736=_0x2eb736-0x0;let _0x30cbed=_0x3e87[_0x2eb736];return _0x30cbed;};import{View as _0x46361c}from'ckeditor5/src/ui';import _0x5b6ef8 from'./revisionauthorview';import{dateToPrettyFormat as _0x3ec603}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x46361c{constructor(_0x848aaf,_0x5ae135,_0x1eabcf){super(_0x848aaf);const _0x4fe0ee=this[_0x30cb('0x9')];this['id']=_0x5ae135['id'],this[_0x30cb('0x5')]('createdAt')['to'](_0x5ae135),this[_0x30cb('0x3')]('isSelected',!0x1),this[_0x30cb('0x5')]('_createdAtFormatted')['to'](this,_0x30cb('0xc'),_0x2acde5=>_0x2acde5?_0x3ec603(_0x848aaf['uiLanguage'],_0x2acde5):void 0x0),this[_0x30cb('0x1')]=_0x1eabcf,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x30cb('0x8'),_0x30cb('0x7'),_0x30cb('0xd'),_0x4fe0ee['if'](_0x30cb('0xa'),_0x30cb('0xb'))]},'children':[{'tag':_0x30cb('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x4fe0ee['to'](_0x30cb('0x6'))}]},{'tag':'ul','attributes':{'class':['ck',_0x30cb('0xe')]},'children':[new _0x5b6ef8(_0x848aaf,_0x5ae135[_0x30cb('0x2')],!0x0)]}],'on':{'click':_0x4fe0ee['to'](this[_0x30cb('0x4')][_0x30cb('0x5')](this))}});}[_0x30cb('0x4')](){this['isSelected']=!0x0,this[_0x30cb('0xf')](_0x30cb('0x4'),{'parentId':this['_parentRevisionId']});}['deselect'](){this[_0x30cb('0xa')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1cb7=['toLocaleTimeString','numeric','long'];(function(_0x5a0377,_0x1cb735){var _0x1f97f9=function(_0x5067d1){while(--_0x5067d1){_0x5a0377['push'](_0x5a0377['shift']());}};_0x1f97f9(++_0x1cb735);}(_0x1cb7,0x1de));var _0x1f97=function(_0x5a0377,_0x1cb735){_0x5a0377=_0x5a0377-0x0;var _0x1f97f9=_0x1cb7[_0x5a0377];return _0x1f97f9;};export function dateToPrettyFormat(_0x353502,_0x53f652){return _0x53f652['toLocaleDateString'](_0x353502,{'month':_0x1f97('0x1'),'day':_0x1f97('0x0')})+',\x20'+_0x53f652[_0x1f97('0x2')](_0x353502,{'hour':_0x1f97('0x0'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bad=['revisionName','trim','locale','focusTracker','focus','reset','_focusCycler','type','execute','setTemplate','cancel','_createRevisionNameInput','Cancel','ck-button-cancel','focusFirst','keystrokes','saveButtonView','extendTemplate','Name\x20of\x20the\x20revision\x20(optional)','form','forEach','value','ck-responsive-form','arrowup','submit','tab','arrowdown','fieldView','revisionNameInputValue','ck-button-save','label','listenTo','ck-revision-history-save-revision-form','render','revisionNameInputView','cancelButtonView','delegate','_createButton','Save','set','element','_focusables','add','input'];(function(_0x644311,_0x3bade4){const _0x37d53f=function(_0x1f9aa2){while(--_0x1f9aa2){_0x644311['push'](_0x644311['shift']());}};_0x37d53f(++_0x3bade4);}(_0x3bad,0x7e));const _0x37d5=function(_0x644311,_0x3bade4){_0x644311=_0x644311-0x0;let _0x37d53f=_0x3bad[_0x644311];return _0x37d53f;};import{icons as _0x17a606}from'ckeditor5/src/core';import{ButtonView as _0x41dacd,FocusCycler as _0x5713d3,LabeledFieldView as _0x53d153,View as _0x253e8c,ViewCollection as _0xc9d0c,createLabeledInputText as _0x8cf3fa,injectCssTransitionDisabler as _0x211c49,submitHandler as _0x33ec24}from'ckeditor5/src/ui';import{FocusTracker as _0x3c80b5,KeystrokeHandler as _0x4e35ca}from'ckeditor5/src/utils';import{getTranslation as _0x15f083}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x253e8c{constructor(_0x5f2ad4){super(_0x5f2ad4),this[_0x37d5('0x9')]=new _0x3c80b5(),this[_0x37d5('0x15')]=new _0x4e35ca(),this['set'](_0x37d5('0x22'),''),this[_0x37d5('0x28')]=this[_0x37d5('0x11')](),this[_0x37d5('0x16')]=this[_0x37d5('0x2b')](_0x15f083(_0x5f2ad4,_0x37d5('0x0')),_0x17a606['check'],_0x37d5('0x23')),this[_0x37d5('0x16')][_0x37d5('0xd')]=_0x37d5('0x1e'),this[_0x37d5('0x29')]=this[_0x37d5('0x2b')](_0x15f083(_0x5f2ad4,_0x37d5('0x12')),_0x17a606[_0x37d5('0x10')],_0x37d5('0x13'),_0x37d5('0x10')),this[_0x37d5('0x3')]=new _0xc9d0c(),this[_0x37d5('0xc')]=new _0x5713d3({'focusables':this[_0x37d5('0x3')],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x37d5('0x1f')}}),this[_0x37d5('0xf')]({'tag':_0x37d5('0x19'),'attributes':{'class':['ck',_0x37d5('0x26'),_0x37d5('0x1c')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x37d5('0x16')],this[_0x37d5('0x29')]]}),_0x211c49(this);}[_0x37d5('0x27')](){super[_0x37d5('0x27')](),_0x33ec24({'view':this}),([this['revisionNameInputView'],this[_0x37d5('0x16')],this[_0x37d5('0x29')]][_0x37d5('0x1a')](_0x5df7b5=>{this['_focusables']['add'](_0x5df7b5),this[_0x37d5('0x9')][_0x37d5('0x4')](_0x5df7b5[_0x37d5('0x2')]);}),this[_0x37d5('0x15')][_0x37d5('0x25')](this['element']));const _0x4b18e6=_0xaf2d72=>_0xaf2d72['stopPropagation']();this[_0x37d5('0x15')]['set']('arrowright',_0x4b18e6),this[_0x37d5('0x15')][_0x37d5('0x1')]('arrowleft',_0x4b18e6),this['keystrokes'][_0x37d5('0x1')](_0x37d5('0x1d'),_0x4b18e6),this[_0x37d5('0x15')]['set'](_0x37d5('0x20'),_0x4b18e6);}[_0x37d5('0xa')](){this[_0x37d5('0xc')][_0x37d5('0x14')]();}get[_0x37d5('0x6')](){return this[_0x37d5('0x28')]['fieldView'][_0x37d5('0x2')]['value'][_0x37d5('0x7')]();}set[_0x37d5('0x6')](_0x2bd772){this['revisionNameInputView'][_0x37d5('0x21')][_0x37d5('0x2')][_0x37d5('0x1b')]=_0x2bd772[_0x37d5('0x7')]();}[_0x37d5('0xb')](){this[_0x37d5('0x28')][_0x37d5('0x21')]['element'][_0x37d5('0x1b')]='';}[_0x37d5('0x11')](){const _0x52fc60=new _0x53d153(this[_0x37d5('0x8')],_0x8cf3fa),_0x31bd52=_0x52fc60[_0x37d5('0x21')];return _0x31bd52[_0x37d5('0x17')]({'attributes':{'maxlength':'220'}}),_0x52fc60[_0x37d5('0x24')]=_0x15f083(this[_0x37d5('0x8')],_0x37d5('0x18')),_0x31bd52['on'](_0x37d5('0x5'),()=>{this['revisionNameInputValue']=_0x31bd52[_0x37d5('0x2')][_0x37d5('0x1b')][_0x37d5('0x7')]();}),_0x52fc60;}[_0x37d5('0x2b')](_0x5eacdc,_0x4e98e4,_0x44b574,_0x37ff2f){const _0x13c683=new _0x41dacd(this[_0x37d5('0x8')]);return _0x13c683[_0x37d5('0x1')]({'label':_0x5eacdc,'icon':_0x4e98e4,'tooltip':!0x0}),_0x13c683['extendTemplate']({'attributes':{'class':_0x44b574}}),_0x37ff2f&&_0x13c683[_0x37d5('0x2a')](_0x37d5('0xe'))['to'](this,_0x37ff2f),_0x13c683;}}
|