@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231025.0 → 0.0.0-nightly-20231026.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 _0x13a2=['activeView','isObject','change:isReady','createPositionBefore','_changeView','_getViewForChange','getRevisionData','model','vid_start','_update','markers','_setConversion','isAdded','document','keys','_balloon','revisionHistory','createPositionFromPath','pluginName','detachRoot','removeMarker:revision','isEqual','marked','mouseover','flat','consumable','slice','isInline','forEach','isReady','bind','type','showStack','editing','vid_end','consume','data-change-id','delete','isCollapsed','_markInsertions','isBlock','_markMarkers','from','indexOf','insertion','nextSibling','merge','WidgetToolbarRepository','createRange','_getDiff','useFillerType','markerRange','view','getIndex','isAtEnd','right','change','authors','diffData','side','processor','editor','data','parse','getRevisionRootsAttributes','change:activeChange','addRevision','addMarker:revision-suggestion:deletion','_markMismatchedRemovedTags','_changeIdToChange','ck-suggestion-preview-marker-','_processTape','values','attributesAfter','toViewPosition','map','isIncorrect','backward','split','object','bottom','span','_makeModelFromTape','isOnRoot','updatePosition','comment','execute','schema','high','_threeWayMerge','children','domEvent','deletions','highest','_refreshStartEndIndex','ck-suggestion-preview-marker','markerToHighlight','ck-revision-history-root--active','toModel','range','commands','addMarker:revision','markersStart','name','listenTo','markerName','top','index','test','change:isEnabled','left','isNavigationMode','getRootNames','elementEnd','plugins','isEnabled','editingDowncast','abs','wrap','_appendChild','endIndex','_findChangeIdFromDomTarget','hasClass','ck-revision-history-root-remove','target','_joinTapes','_sortAndFilterDiffChanges','level','clear','insert','domConverter','revision-suggestion','getDomRoot','isRemoved','ck-suggestion-marker--active','upcast','modelRange','isAddSuggestion','activeChange','isAttached','RevisionViewer','mapViewToDom','mapper','suggestion:','add','length','_makeModelFromViewString','loadRevisionData','vid','suggestion','resolve','affectsData','getClientRects','element','_removeRevisionMarkers','toData','parent','sort','_getChangeFromId','isBefore','nextPosition','unbindElementFromMarkerName','adapter','return','attributesBefore','remove','isSuggestion','stop','softBreak','viewItem','pairId','showPreviousChange','startIndex','_revisions','text','showNextChange','conversion','_initInteractions','changes','next','splice','then','addClass','toViewElement','isLimit','getRevision','enableReadOnlyMode','restoreRevision','removeAttribute','change:numberOfChanges','string','repository','_activeViewTarget','includes','insertions','setAttribute','isRemoveSuggestion','rootName','hasAttribute','changeId','getCustomProperty','-new','unshift','_data','getItems','getWalker','mousedown','_removeMissingPairs','distance','toViewRange','attribute:vid','_removeUnsupportedChanges','dataDowncast','revision','writer','addRevisionData','revisionHistoryAttachChange','addRoot','isAtStart','removeClass','revisionHistoryLabel','createUIElement','end','filter','selection','findIndex','find','has','_getRevisionsRange','userId','addHighlight','getRoot','nodeAfter','ck-editor__editable__overlay','diff','POSITIVE_INFINITY','all','markersEnd','downcastDispatcher','attributes','attachChange','startsWith','requires','_cleanUp','refresh','done','revision-start','shift','collaboration.channelId','maxOffset','markerToData','_setDistance','revision:','_getViewObj','RevisionsRepository','code','dataToMarker','locale','push','removeMarker','ck-suggestion-marker','_fixObsoleteTags','ck-suggestion-marker-merge','first','addMarker:revision-suggestion:insertion','elementToAttribute','_step','default','_cleanMarkers','getAttribute','deletion','createRevision','get','reconvertMarker','ck-suggestion-marker-','_markSuggestions','for','newRevisionId','createAttributeElement','removeMarker:revision-suggestion','markerNameToElements','_makeTape','getAttributes','set','isAfter','previousPosition','isContent','elementStart','item','compare','enqueueChange','start','revision-comment:'];(function(_0x41cdcf,_0x13a29f){const _0x27e554=function(_0x3689d9){while(--_0x3689d9){_0x41cdcf['push'](_0x41cdcf['shift']());}};_0x27e554(++_0x13a29f);}(_0x13a2,0x178));const _0x27e5=function(_0x41cdcf,_0x13a29f){_0x41cdcf=_0x41cdcf-0x0;let _0x27e554=_0x13a2[_0x41cdcf];return _0x27e554;};import{Plugin as _0x47f379,Command as _0x25dea0}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3331af}from'ckeditor5/src/utils';import{ContextualBalloon as _0x22338d}from'ckeditor5/src/ui';import{DocumentFragment as _0x5ae7df,Element as _0x1af484,Text as _0x60a600,ViewDocumentFragment as _0x243d94,ViewText as _0x3b4aa0,ViewElement as _0x31ba38,ViewContainerElement as _0x480268,ViewAttributeElement as _0x226dc,ViewEmptyElement as _0x9d7ba1,ViewRawElement as _0x18032d,ViewUIElement as _0x316d96}from'ckeditor5/src/engine';import{Users as _0x303786,getMarkerDomElement as _0x30fca9}from'ckeditor5-collaboration/src/collaboration-core';import _0x1f85d0 from'./ui/revisionviewer/changedetailsview';import _0x41bf99 from'./revisionsrepository';import _0x41f2a0 from'./changeitem';import{default as _0x5d2d27}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x21cd5c}from'lodash-es';const tt={'c':_0x480268,'a':_0x226dc,'e':_0x9d7ba1,'r':_0x18032d,'u':_0x316d96};export default class d extends _0x47f379{static get[_0x27e5('0xe4')](){return _0x27e5('0x39');}static get[_0x27e5('0x9f')](){return[_0x303786,_0x22338d,_0x41bf99];}constructor(_0x14bea4){super(_0x14bea4),this[_0x27e5('0x6c')]=this[_0x27e5('0x10f')][_0x27e5('0x1f')][_0x27e5('0xbd')](_0x27e5('0xab')),this[_0x27e5('0xc8')](_0x27e5('0x37'),null),this[_0x27e5('0xc8')](_0x27e5('0xd2'),null),this[_0x27e5('0x6d')]=null,this['set'](_0x27e5('0x97'),null),this[_0x27e5('0xc8')]('isReady',!0x1),this['set'](_0x27e5('0x20'),!0x0),this['on']('change:isEnabled',(_0x1ccc9c,_0x4d3771,_0x194e57)=>{this[_0x27e5('0x37')]=null,this[_0x27e5('0xd2')]=null,this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x106')]['change'](_0x307496=>{for(const _0x48d1eb of this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x106')]['document']['roots'])_0x194e57?_0x307496[_0x27e5('0x88')](_0x27e5('0x96'),_0x48d1eb):_0x307496[_0x27e5('0x63')](_0x27e5('0x96'),_0x48d1eb);});}),this[_0x27e5('0xf0')](_0x27e5('0x1c'))['to'](this,_0x27e5('0x37'),_0x57681e=>null!==_0x57681e),this[_0x27e5('0xf0')]('currentChangeNumber')['to'](this,_0x27e5('0xef'),this,'diff',this,_0x27e5('0x37'),(_0x1031eb,_0x2715ae,_0x3f9c93)=>_0x1031eb&&_0x3f9c93?_0x2715ae[_0x27e5('0x5f')][_0x27e5('0x107')](_0x3f9c93):0x0),this[_0x27e5('0xf0')]('numberOfChanges')['to'](this,_0x27e5('0xef'),this,_0x27e5('0x97'),(_0x109782,_0x225251)=>_0x109782?_0x225251['changes'][_0x27e5('0x3e')]:0x0),this[_0x27e5('0xd6')]=null,this['_changeIdToChange']=new Map(),this[_0x27e5('0x4f')]=null,this['_balloon']=this[_0x27e5('0x10f')][_0x27e5('0x1f')][_0x27e5('0xbd')](_0x22338d);}['init'](){const _0x509b3c=this[_0x27e5('0x10f')],_0x5759e8=new ShowChangeCommand(_0x509b3c,{'direction':_0x27e5('0x11f')}),_0x57571b=new ShowChangeCommand(_0x509b3c,{'direction':'forward'});(_0x509b3c[_0x27e5('0x11')][_0x27e5('0x3d')](_0x27e5('0x58'),_0x5759e8),_0x509b3c[_0x27e5('0x11')][_0x27e5('0x3d')](_0x27e5('0x5c'),_0x57571b),_0x509b3c[_0x27e5('0x11')][_0x27e5('0x3d')](_0x27e5('0x68'),new RestoreRevisionCommand(_0x509b3c)),this['on'](_0x27e5('0x6a'),()=>{_0x5759e8[_0x27e5('0xa1')](),_0x57571b[_0x27e5('0xa1')]();}),this[_0x27e5('0xdd')](),this[_0x27e5('0x5e')](),_0x509b3c[_0x27e5('0x67')]('revision-viewer'),_0x509b3c[_0x27e5('0x1f')][_0x27e5('0x90')](_0x27e5('0x101')))&&_0x509b3c[_0x27e5('0x1f')][_0x27e5('0xbd')]('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async[_0x27e5('0xd8')](_0x36a051){await this[_0x27e5('0x40')](_0x36a051);const _0x121149={};for(const _0x3deb72 in _0x36a051[_0x27e5('0x10c')]){if(_0x36a051[_0x27e5('0x10c')][_0x3deb72][_0x27e5('0x9d')]&&!_0x36a051[_0x27e5('0x10c')][_0x3deb72][_0x27e5('0x9d')][_0x27e5('0x38')])continue;const _0x38b5ab=this[_0x27e5('0x47')](JSON[_0x27e5('0x111')](_0x36a051['diffData'][_0x3deb72][_0x27e5('0x6f')])),_0x180b20=this[_0x27e5('0x10f')]['editing']['view'][_0x27e5('0xdf')],_0x51322e=new _0x243d94(_0x180b20,_0x38b5ab['map'](_0x2bd2ba=>this[_0x27e5('0xaa')](_0x2bd2ba)));this['editor']['data']['processor'][_0x27e5('0x104')](_0x27e5('0xe8')),_0x121149[_0x3deb72]=this[_0x27e5('0x10f')]['data'][_0x27e5('0x10e')][_0x27e5('0x48')](_0x51322e),this[_0x27e5('0x10f')][_0x27e5('0x110')][_0x27e5('0x10e')]['useFillerType'](_0x27e5('0xb8'));}return _0x121149;}async[_0x27e5('0x112')](_0x255c48){await this[_0x27e5('0x40')](_0x255c48);const _0x46eae3={};for(const _0x6e5a15 in _0x255c48[_0x27e5('0x10c')])_0x255c48[_0x27e5('0x10c')][_0x6e5a15][_0x27e5('0x9d')]&&!_0x255c48[_0x27e5('0x10c')][_0x6e5a15][_0x27e5('0x9d')][_0x27e5('0x38')]||(_0x46eae3[_0x6e5a15]=_0x255c48['diffData'][_0x6e5a15][_0x27e5('0x11b')]||{});return _0x46eae3;}['_removeRevisionMarkers'](_0xb9249c){return(_0xb9249c=_0xb9249c[_0x27e5('0x8c')](_0x5b22d1=>!_0x5b22d1[_0x27e5('0x14')]||_0x27e5('0xa3')!==_0x5b22d1[_0x27e5('0x14')]&&'revision-end'!==_0x5b22d1['name']))[_0x27e5('0xee')](_0x3c368f=>{_0x27e5('0x6b')!=typeof _0x3c368f&&(_0x3c368f[_0x27e5('0x7')]=this[_0x27e5('0x47')](_0x3c368f['children']),_0x3c368f[_0x27e5('0x9c')]=_0x3c368f['attributes'][_0x27e5('0x8c')](_0x16aa2c=>!_0x16aa2c[0x0]['startsWith']('data-revision-')));}),_0xb9249c;}async[_0x27e5('0xce')](_0x71d784,_0x3797e1,_0x3ccf14=!0x1){if(!this['isEnabled'])return;const _0x1fd2a9=this[_0x27e5('0x97')],_0x28c21c=this['repository'],_0x5b1240=_0x27e5('0x6b')==typeof _0x71d784?_0x28c21c[_0x27e5('0x66')](_0x71d784):_0x71d784,_0x2cf2e8='string'==typeof _0x3797e1?_0x28c21c['getRevision'](_0x3797e1):_0x3797e1,_0x157bfe=_0x5b1240['id'],_0x444646=_0x2cf2e8?_0x2cf2e8['id']:null;if(!_0x3ccf14&&this['diff']&&this[_0x27e5('0x97')][_0x27e5('0xc2')]===_0x157bfe&&this[_0x27e5('0x97')]['oldRevisionId']===_0x444646)return Promise[_0x27e5('0x43')]();this['isReady']=!0x1,this['activeView']=null,this[_0x27e5('0x37')]=null,this['diff']=new _0x5d2d27(_0x157bfe,_0x444646);const _0xde9017=this[_0x27e5('0x91')](_0x5b1240,_0x2cf2e8,!0x0)[_0x27e5('0x11d')](_0x54cb7c=>this[_0x27e5('0x40')](_0x54cb7c));return _0xde9017[_0x27e5('0xaf')](new Promise(_0x5dafd2=>{setTimeout(_0x5dafd2,0x14);})),Promise[_0x27e5('0x99')](_0xde9017)[_0x27e5('0x62')](()=>{if(!this[_0x27e5('0x20')])return;this[_0x27e5('0xa0')]();const _0x3c8d08=this[_0x27e5('0x103')](_0x157bfe,_0x444646);for(const _0x2d47fa of _0x3c8d08['changes'])this['_changeIdToChange'][_0x27e5('0xc8')](_0x2d47fa['id'],_0x2d47fa);this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0xcf')]({'isUndoable':!0x1},_0x10c7bb=>{for(const _0x112091 of this['editor'][_0x27e5('0xd9')][_0x27e5('0xdf')][_0x27e5('0x1d')]())_0x10c7bb[_0x27e5('0xe5')](_0x112091);for(const _0x1f30bb of Object[_0x27e5('0xe0')](_0x3c8d08['model'])){const _0x18e149=_0x10c7bb[_0x27e5('0x86')](_0x1f30bb);for(const _0x1247ca of Object[_0x27e5('0xe0')](_0x3c8d08['attributes'][_0x1f30bb]))_0x10c7bb[_0x27e5('0x70')](_0x1247ca,_0x3c8d08[_0x27e5('0x9c')][_0x1f30bb][_0x1247ca],_0x18e149);_0x10c7bb[_0x27e5('0x2e')](_0x3c8d08['model'][_0x1f30bb],_0x18e149,0x0);}}),this[_0x27e5('0x97')]['_setChanges'](this[_0x27e5('0x2b')](_0x3c8d08[_0x27e5('0x5f')])),this[_0x27e5('0xef')]=!0x0;})['catch'](_0x4b1e6f=>{console['error'](_0x4b1e6f),this[_0x27e5('0xa0')](),_0x1fd2a9&&(this['diff']=_0x1fd2a9),this[_0x27e5('0xef')]=!0x0;});}[_0x27e5('0x84')](_0x508d7a,_0xd27084){const _0x566858=this[_0x27e5('0x6c')][_0x27e5('0xbc')](_0x508d7a);return _0x566858['on'](_0x27e5('0xdb'),(_0x297e30,_0x2ff74f,_0x2cda06)=>_0xd27084(_0x2ff74f,_0x2cda06,_0x566858)),this[_0x27e5('0x6c')][_0x27e5('0x114')](_0x566858),_0x566858;}[_0x27e5('0x40')](_0x4e8fb6){if(!_0x4e8fb6||_0x4e8fb6[_0x27e5('0x10c')])return Promise[_0x27e5('0x43')]();{const _0xae51e1=this[_0x27e5('0x10f')]['config'][_0x27e5('0xbd')](_0x27e5('0xa5'));return this[_0x27e5('0x4f')][_0x27e5('0x66')]({'channelId':_0xae51e1,'revisionId':_0x4e8fb6['id']})[_0x27e5('0x62')](_0x56df10=>{_0x4e8fb6[_0x27e5('0xdb')]({'diffData':_0x56df10[_0x27e5('0x10c')]},!0x0);});}}['_cleanUp'](){this[_0x27e5('0x37')]=null,this[_0x27e5('0xb9')](),this[_0x27e5('0xd6')]&&this[_0x27e5('0xd6')]['destroy'](),this[_0x27e5('0xd6')]=null,this['_changeIdToChange'][_0x27e5('0x2d')](),this['editor'][_0x27e5('0xd9')][_0x27e5('0xcf')]({'isUndoable':!0x1},_0x45b461=>{for(const _0x4f6786 of this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0xdf')][_0x27e5('0x1d')]())_0x45b461['detachRoot'](_0x4f6786);});}[_0x27e5('0x2b')](_0x57f993){const _0x143db9=[],_0x23c5b3=new Map();for(const _0x4e7e14 of this['editor'][_0x27e5('0xd9')]['document'][_0x27e5('0x1d')]()){const _0x5738c5=this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x106')]['getDomRoot'](_0x4e7e14);if(!_0x5738c5)continue;const _0x30c1fa=_0x5738c5[_0x27e5('0x45')]()[_0x27e5('0xcd')](0x0);_0x30c1fa&&(_0x143db9[_0x27e5('0xaf')](_0x4e7e14),_0x23c5b3[_0x27e5('0xc8')](_0x4e7e14,_0x30c1fa));}return _0x143db9['sort']((_0x5cf117,_0x14e1eb)=>{const _0x4d6f2d=_0x23c5b3[_0x27e5('0xbd')](_0x5cf117),_0x41535a=_0x23c5b3['get'](_0x14e1eb);return _0x4d6f2d['y']-_0x41535a['y']||_0x4d6f2d['x']-_0x41535a['x'];}),(_0x57f993=_0x57f993[_0x27e5('0x8c')](_0x2637bf=>_0x143db9[_0x27e5('0x6e')](_0x2637bf['rootName'])))[_0x27e5('0x4a')]((_0x1b2c6c,_0x4c4bf1)=>_0x143db9[_0x27e5('0xfd')](_0x1b2c6c[_0x27e5('0x72')])-_0x143db9['indexOf'](_0x4c4bf1[_0x27e5('0x72')])),_0x57f993;}[_0x27e5('0xc6')](_0xc80d0){const _0x509d00=Array[_0x27e5('0xfc')](_0xc80d0[_0x27e5('0xdc')])[_0x27e5('0x8c')](([_0xca6d0f,_0x2e2966])=>_0xca6d0f[_0x27e5('0x9e')](_0x27e5('0xa9'))&&!_0x2e2966[_0x27e5('0xf8')]),_0x36ca76=Array[_0x27e5('0xfc')](this['editor']['model']['createRangeIn'](_0xc80d0)[_0x27e5('0x7a')]({'singleCharacters':!0x0}));if(0x0!=_0x509d00[_0x27e5('0x3e')])for(const _0x719409 of _0x36ca76){const [_0x898288,_0x2085c0]=_0x509d00[0x0],[,_0x3a20d2,_0x4c1f78]=_0x898288['split'](':');if(_0x2085c0[_0x27e5('0x8b')][_0x27e5('0xe7')](_0x719409[_0x27e5('0x4d')])&&_0x509d00['shift'](),(_0x719409[_0x27e5('0xca')]['isEqual'](_0x2085c0['start'])||_0x719409[_0x27e5('0xca')][_0x27e5('0xc9')](_0x2085c0['start']))&&(_0x27e5('0xfe')==_0x3a20d2?_0x719409['isAdded']={'userId':_0x4c1f78}:'deletion'==_0x3a20d2&&(_0x719409[_0x27e5('0x32')]={'userId':_0x4c1f78})),0x0==_0x509d00[_0x27e5('0x3e')])break;}return _0x36ca76;}[_0x27e5('0xb')](_0x26c7b4){const _0x22524d=new Map();for(let _0x4ca0d0=0x0;_0x4ca0d0<_0x26c7b4[_0x27e5('0x3e')];_0x4ca0d0++)_0x27e5('0x5b')===_0x26c7b4[_0x4ca0d0]['type']?(_0x26c7b4[_0x4ca0d0][_0x27e5('0xcd')]['startIndex']=_0x4ca0d0,_0x26c7b4[_0x4ca0d0]['item'][_0x27e5('0x25')]=_0x4ca0d0):(_0x27e5('0xcc')===_0x26c7b4[_0x4ca0d0][_0x27e5('0xf1')]?_0x26c7b4[_0x4ca0d0][_0x27e5('0xcd')][_0x27e5('0x59')]=_0x4ca0d0:_0x27e5('0x1e')===_0x26c7b4[_0x4ca0d0][_0x27e5('0xf1')]&&(_0x26c7b4[_0x4ca0d0]['item']['endIndex']=_0x4ca0d0),_0x22524d[_0x27e5('0xc8')](_0x26c7b4[_0x4ca0d0]['id'],_0x4ca0d0));for(const _0x2f6c17 of _0x22524d[_0x27e5('0x11a')]())_0x27e5('0xcc')===_0x26c7b4[_0x2f6c17]['type']?_0x26c7b4[_0x2f6c17]['item'][_0x27e5('0x25')]=_0x22524d[_0x27e5('0xbd')](_0x26c7b4[_0x2f6c17][_0x27e5('0x57')]):_0x27e5('0x1e')===_0x26c7b4[_0x2f6c17][_0x27e5('0xf1')]&&(_0x26c7b4[_0x2f6c17][_0x27e5('0xcd')]['startIndex']=_0x22524d['get'](_0x26c7b4[_0x2f6c17][_0x27e5('0x57')]));}[_0x27e5('0x119')](_0x2db02a){for(let _0x5bb2bb=0x0;_0x5bb2bb<_0x2db02a[_0x27e5('0x3e')];_0x5bb2bb++){if(_0x27e5('0xcc')===_0x2db02a[_0x5bb2bb]['type'])_0x2db02a[_0x5bb2bb][_0x27e5('0xcd')][_0x27e5('0x59')]=_0x5bb2bb;else{if(_0x27e5('0x1e')===_0x2db02a[_0x5bb2bb][_0x27e5('0xf1')]){_0x2db02a[_0x5bb2bb][_0x27e5('0xcd')][_0x27e5('0x25')]=_0x5bb2bb;const _0x4e92da=_0x2db02a[_0x5bb2bb][_0x27e5('0xcd')]['startIndex'];_0x2db02a[_0x4e92da][_0x27e5('0x57')]=_0x2db02a[_0x5bb2bb]['id'],_0x2db02a[_0x5bb2bb][_0x27e5('0x57')]=_0x2db02a[_0x4e92da]['id'];}else _0x2db02a[_0x5bb2bb][_0x27e5('0xcd')][_0x27e5('0x59')]=_0x5bb2bb,_0x2db02a[_0x5bb2bb][_0x27e5('0xcd')][_0x27e5('0x25')]=_0x5bb2bb,_0x2db02a[_0x5bb2bb]['pairId']=null;}_0x2db02a[_0x5bb2bb]['markersStart']||(_0x2db02a[_0x5bb2bb][_0x27e5('0x13')]=[],_0x2db02a[_0x5bb2bb][_0x27e5('0x9a')]=[]);}}['_markInsertions'](_0x45192d,_0x319894){const _0x4d2e42=_0x45192d[_0x27e5('0x8c')](_0x231f02=>!_0x231f02[_0x27e5('0xde')]);for(let _0x372a30=0x0;_0x372a30<_0x319894[_0x27e5('0x3e')];_0x372a30++)_0x319894[_0x372a30][_0x27e5('0xde')]&&(_0x4d2e42[_0x372a30][_0x27e5('0xde')]=_0x319894[_0x372a30][_0x27e5('0xde')]);}[_0x27e5('0x3f')](_0x22415d){const _0x5b0fbd=JSON['parse'](_0x22415d),_0x2025b2=this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x106')][_0x27e5('0xdf')],_0x269539=new _0x243d94(_0x2025b2,_0x5b0fbd[_0x27e5('0x11d')](_0x50d57e=>this[_0x27e5('0xaa')](_0x50d57e)));return this[_0x27e5('0x10f')][_0x27e5('0x110')][_0x27e5('0xf')](_0x269539);}[_0x27e5('0xaa')](_0x39ad23){const _0x1154c7=this['editor'][_0x27e5('0xf3')][_0x27e5('0x106')]['document'];if('string'==typeof _0x39ad23)return new _0x3b4aa0(_0x1154c7,_0x39ad23);{const _0x334bb4=_0x39ad23['children']['map'](_0x59dc0e=>this['_getViewObj'](_0x59dc0e));return new(tt[_0x39ad23[(_0x27e5('0xf1'))]]||_0x31ba38)(_0x1154c7,_0x39ad23[_0x27e5('0x14')],_0x39ad23[_0x27e5('0x9c')],_0x334bb4);}}[_0x27e5('0x103')](_0x28fe92,_0x1ca8ab=null){const _0x5c3972=this['repository'][_0x27e5('0x66')](_0x28fe92),_0x2321d4=_0x1ca8ab?this[_0x27e5('0x6c')]['getRevision'](_0x1ca8ab):null,_0x3df79c=this[_0x27e5('0x91')](_0x5c3972,_0x2321d4),_0x1248fd=_0x3df79c[_0x3df79c['length']-0x1],_0x455835=new Map(),_0x3b7eec={'model':{},'attributes':{},'changes':[]},_0x141689=new Set(),_0x18da42=new Map();for(let _0x173e42=_0x3df79c[_0x27e5('0x3e')]-0x1;_0x173e42>=0x0;_0x173e42--){const _0x40c1bc=_0x3df79c[_0x173e42];for(const _0x350df0 of Object[_0x27e5('0xe0')](_0x40c1bc[_0x27e5('0x10c')]))if(_0x40c1bc[_0x27e5('0x10c')][_0x350df0][_0x27e5('0x9d')]){const _0x5009f7=_0x40c1bc[_0x27e5('0x10c')][_0x350df0][_0x27e5('0x9d')];_0x5009f7[_0x27e5('0x38')]?(_0x141689['add'](_0x350df0),_0x18da42[_0x27e5('0x90')](_0x350df0)&&_0x18da42['get'](_0x350df0)[_0x27e5('0x92')]==_0x5009f7[_0x27e5('0x92')]?_0x18da42['delete'](_0x350df0):_0x18da42[_0x27e5('0xc8')](_0x350df0,_0x5009f7)):_0x18da42['has'](_0x350df0)?(_0x141689[_0x27e5('0xf7')](_0x350df0),_0x18da42[_0x27e5('0xf7')](_0x350df0)):(_0x141689['add'](_0x350df0),_0x18da42[_0x27e5('0xc8')](_0x350df0,_0x5009f7));}else _0x141689[_0x27e5('0x3d')](_0x350df0);}for(const _0x19f8a4 of _0x141689){const _0x4b4efe=_0x18da42['has'](_0x19f8a4)&&!_0x18da42[_0x27e5('0xbd')](_0x19f8a4)[_0x27e5('0x38')];let _0x337c08=_0x4b4efe?_0x3df79c['length']-0x1:0x0;const _0x49d93d=_0x4b4efe?-0x1:0x1;for(;_0x3df79c[_0x337c08];){const _0x2635fc=_0x3df79c[_0x337c08];if(_0x2635fc[_0x27e5('0x10c')][_0x19f8a4]){const _0x51f9ab=_0x4b4efe?_0x2635fc['diffData'][_0x19f8a4][_0x27e5('0x51')]:_0x2635fc[_0x27e5('0x10c')][_0x19f8a4][_0x27e5('0x11b')];_0x3b7eec['attributes'][_0x19f8a4]=_0x51f9ab?_0x21cd5c(_0x51f9ab):{};break;}_0x337c08+=_0x49d93d;}}for(const _0x17728e of _0x3df79c){_0x17728e[_0x27e5('0xd9')]={};for(const _0x57d788 of _0x17728e[_0x27e5('0x10b')])_0x455835[_0x27e5('0xc8')](_0x57d788['id'],_0x57d788);for(const _0x1d4431 of _0x141689){const _0x5973c8=_0x17728e[_0x27e5('0x10c')][_0x1d4431]?_0x17728e[_0x27e5('0x10c')][_0x1d4431]['insertions']:'[]',_0x161632=_0x17728e[_0x27e5('0x10c')][_0x1d4431]?_0x17728e[_0x27e5('0x10c')][_0x1d4431][_0x27e5('0x9')]:'[]';_0x17728e['model'][_0x1d4431]={'insertions':this['_makeModelFromViewString'](_0x5973c8),'deletions':this[_0x27e5('0x3f')](_0x161632)};}}for(const _0x4b82c0 of _0x141689){let _0x292e88=null,_0x4f388c=0x0;const _0x4f8d12=new Map(Array[_0x27e5('0xfc')](_0x5c3972[_0x27e5('0xd9')][_0x4b82c0][_0x27e5('0x6f')][_0x27e5('0xdc')])[_0x27e5('0x8c')](([_0x5f1730])=>!_0x5f1730[_0x27e5('0x9e')](_0x27e5('0xa9'))));let _0x5cd6ae=0x0;for(const _0xadf978 of _0x3df79c){const _0x43efdc=this['_makeTape'](_0xadf978[_0x27e5('0xd9')][_0x4b82c0][_0x27e5('0x6f')]);_0xadf978==_0x5c3972?(_0x292e88=_0x43efdc,_0x4f388c=_0x292e88['length'],_0x292e88[_0x27e5('0xee')](_0x1f29d3=>{_0x1f29d3['id']=_0x5cd6ae++;}),this[_0x27e5('0x119')](_0x292e88)):this[_0x27e5('0xf9')](_0x292e88,_0x43efdc);const _0x7aa571=_0x292e88[_0x27e5('0x8c')](_0x199571=>!_0x199571['isAdded'])[_0x27e5('0x11d')](_0x1a63a5=>_0x1a63a5['id']);let _0x3a03be=0x0;const _0x58bf49=this['_makeTape'](_0xadf978[_0x27e5('0xd9')][_0x4b82c0]['deletions']);_0x58bf49['forEach'](_0x2f386e=>{_0x2f386e['isRemoved']?_0x2f386e['id']=_0x4f388c++:_0x2f386e['id']=_0x7aa571[_0x3a03be++];}),this[_0x27e5('0x119')](_0x58bf49),this['_setDistance'](_0x292e88,_0x27e5('0xde')),this[_0x27e5('0xa8')](_0x58bf49,_0x27e5('0x32')),_0xadf978==_0x5c3972&&this[_0x27e5('0xfb')](_0x292e88,_0x4f8d12),_0x292e88=this['_joinTapes'](_0x292e88,_0x58bf49),this[_0x27e5('0xb')](_0x292e88),this[_0x27e5('0xa8')](_0x292e88,_0x27e5('0x32'));}_0x292e88=_0x292e88['filter'](_0x327aef=>!(_0x327aef['isAdded']&&_0x327aef[_0x27e5('0x32')]));const _0x3fb61c=new Map(_0x1248fd[_0x27e5('0xd9')][_0x4b82c0][_0x27e5('0x9')]['markers']),_0x354165=new Set(_0x4f8d12[_0x27e5('0xe0')]());for(const _0x5a8c3e of _0x3fb61c[_0x27e5('0xe0')]())_0x354165[_0x27e5('0xf7')](_0x5a8c3e);this[_0x27e5('0xc0')](_0x292e88,_0x354165),this[_0x27e5('0xb2')](_0x292e88),_0x292e88=this[_0x27e5('0x7c')](_0x292e88),_0x292e88=this[_0x27e5('0x116')](_0x292e88),_0x292e88=this['_removeUnsupportedChanges'](_0x292e88);const {root:_0x9e76bd,changes:_0x31739f}=this['_makeModelFromTape'](_0x292e88,_0x455835,_0x4b82c0);_0x3b7eec[_0x27e5('0xd9')][_0x4b82c0]=_0x9e76bd;const _0x1e9d8d=_0x18da42[_0x27e5('0xbd')](_0x4b82c0);if(_0x1e9d8d){const _0x42114b=_0x455835[_0x27e5('0xbd')](_0x1e9d8d[_0x27e5('0x92')]),_0x47ad05=new _0x41f2a0({'author':_0x42114b,'type':_0x1e9d8d[_0x27e5('0x38')]?'add':_0x27e5('0x52'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4b82c0});_0x31739f[_0x27e5('0x77')](_0x47ad05),_0x3b7eec[_0x27e5('0x9c')][_0x4b82c0]['revisionHistoryAttachChange']=_0x47ad05['id'];}_0x3b7eec[_0x27e5('0x5f')]=_0x3b7eec[_0x27e5('0x5f')]['concat'](_0x31739f);}return _0x3b7eec;}[_0x27e5('0xfb')](_0x9c87f7,_0x4e3556){for(let _0x83b556=0x0;_0x83b556<_0x9c87f7[_0x27e5('0x3e')];_0x83b556++)for(const [_0x21e7e5,_0x34dde0]of _0x4e3556)_0x34dde0[_0x27e5('0xd0')]['isEqual'](_0x9c87f7[_0x83b556]['previousPosition'])&&_0x9c87f7[_0x83b556][_0x27e5('0x13')][_0x27e5('0xaf')](_0x21e7e5),_0x34dde0[_0x27e5('0x8b')][_0x27e5('0xe7')](_0x9c87f7[_0x83b556]['nextPosition'])&&_0x9c87f7[_0x83b556][_0x27e5('0x9a')]['push'](_0x21e7e5);}[_0x27e5('0x2a')](_0x170474,_0x362860){let _0x3f6e38=[],_0x44de73=0x0,_0x457e97=0x0;for(;_0x44de73<_0x170474[_0x27e5('0x3e')]||_0x457e97<_0x362860[_0x27e5('0x3e')];){const _0xda4402=_0x170474[_0x44de73]||{},_0x18b280=_0x362860[_0x457e97]||{};if(_0xda4402['id']==_0x18b280['id'])_0x44de73++,_0x457e97++,_0x3f6e38[_0x27e5('0xaf')](_0xda4402);else{if(_0x18b280[_0x27e5('0x32')]&&_0xda4402[_0x27e5('0xde')]){const {commonTape:_0x325282,iEnd:_0x537f33,jEnd:_0x40b1b2}=this[_0x27e5('0x6')](_0x170474,_0x44de73,_0x362860,_0x457e97);_0x3f6e38=_0x3f6e38['concat'](_0x325282),_0x44de73=_0x537f33,_0x457e97=_0x40b1b2;}else _0x18b280[_0x27e5('0x32')]?(_0x457e97++,_0x3f6e38['push'](_0x18b280)):(_0x44de73++,_0x3f6e38[_0x27e5('0xaf')](_0xda4402));}}return _0x3f6e38;}['_markSuggestions'](_0x5c9a3f,_0x2aa982){const _0x4b86e8=[];for(let _0x181f7c=0x0;_0x181f7c<_0x5c9a3f['length'];_0x181f7c++){for(let _0xb72c87=0x0;_0xb72c87<_0x5c9a3f[_0x181f7c][_0x27e5('0x13')][_0x27e5('0x3e')];_0xb72c87++){const _0x39c5a7=_0x5c9a3f[_0x181f7c]['markersStart'][_0xb72c87];if(!_0x2aa982[_0x27e5('0x90')](_0x39c5a7))continue;const {group:_0x51aebd,type:_0x3ee9f2,authorId:_0x39c41b}=_0x1a9bdf(_0x39c5a7);_0x27e5('0x30')!=_0x51aebd||_0x27e5('0xfe')!=_0x3ee9f2&&_0x27e5('0xbb')!=_0x3ee9f2||(_0x4b86e8[_0x27e5('0x77')]({'type':_0x3ee9f2,'name':_0x39c5a7,'userId':_0x39c41b}),_0x5c9a3f[_0x181f7c]['markersStart'][_0x27e5('0x61')](_0xb72c87,0x1),_0xb72c87--);}_0x5bc8d9(_0x5c9a3f[_0x181f7c]);for(let _0x491195=0x0;_0x491195<_0x5c9a3f[_0x181f7c][_0x27e5('0x9a')][_0x27e5('0x3e')];_0x491195++){const _0x5a2d18=_0x5c9a3f[_0x181f7c]['markersEnd'][_0x491195];if(!_0x2aa982[_0x27e5('0x90')](_0x5a2d18))continue;const {group:_0x51d048,type:_0x332390}=_0x1a9bdf(_0x5a2d18);if(_0x27e5('0x30')!=_0x51d048||'insertion'!=_0x332390&&'deletion'!=_0x332390)continue;_0x5c9a3f[_0x181f7c][_0x27e5('0x9a')][_0x27e5('0x61')](_0x491195,0x1),_0x491195--;const _0x3fa564=_0x4b86e8[_0x27e5('0x8e')](_0x4cf633=>_0x4cf633[_0x27e5('0x14')]==_0x5a2d18);_0x3fa564>-0x1&&_0x4b86e8[_0x27e5('0x61')](_0x3fa564,0x1);}}function _0x1a9bdf(_0x5ccf9f){const _0x37b1a2=_0x5ccf9f[_0x27e5('0x120')](':');return{'group':_0x37b1a2[0x0],'type':_0x37b1a2[0x1],'subType':_0x37b1a2['length']>=0x5?_0x37b1a2[0x2]:null,'id':_0x37b1a2['length']<0x5?_0x37b1a2[0x2]:_0x37b1a2[0x3],'authorId':_0x37b1a2[_0x27e5('0x3e')]<0x5?_0x37b1a2[0x3]:_0x37b1a2[0x4],'markerCount':0x6==_0x37b1a2['length']?_0x37b1a2[0x5]:null};}function _0x5bc8d9(_0x17b540){for(let _0x3c14a1=0x0;_0x3c14a1<_0x4b86e8[_0x27e5('0x3e')];_0x3c14a1++){if(_0x17b540[_0x27e5('0xde')]&&_0x27e5('0xfe')==_0x4b86e8[_0x3c14a1][_0x27e5('0xf1')])return _0x17b540[_0x27e5('0x36')]=_0x4b86e8[_0x3c14a1],void delete _0x17b540[_0x27e5('0xde')];if(!_0x17b540[_0x27e5('0xde')]&&!_0x17b540[_0x27e5('0x32')]&&_0x27e5('0xbb')==_0x4b86e8[_0x3c14a1][_0x27e5('0xf1')])return void(_0x17b540[_0x27e5('0x71')]=_0x4b86e8[_0x3c14a1]);}}}[_0x27e5('0xa8')](_0x8c6261,_0x4244ee){let _0x545b03=0x0,_0x3a714c=!0x1;const _0x7cac76=new Map();for(const _0x5d1b9b of _0x8c6261)_0x5d1b9b[_0x4244ee]?_0x3a714c&&(_0x545b03++,_0x3a714c=!0x1):(_0x545b03++,_0x3a714c=!0x0),_0x7cac76['set'](_0x5d1b9b['id'],_0x545b03);for(let _0x136edd=0x0;_0x136edd<_0x8c6261['length'];_0x136edd++){if(_0x27e5('0x32')==_0x4244ee&&_0x8c6261[_0x136edd]['isAdded']||_0x27e5('0xde')==_0x4244ee&&_0x8c6261[_0x136edd][_0x27e5('0x32')])continue;if('text'==_0x8c6261[_0x136edd]['type']){_0x8c6261[_0x136edd][_0x27e5('0x7d')]=0x0;continue;}const _0x19e7f3=_0x7cac76[_0x27e5('0xbd')](_0x8c6261[_0x136edd]['pairId']),_0x35f894=_0x7cac76[_0x27e5('0xbd')](_0x8c6261[_0x136edd]['id']);_0x8c6261[_0x136edd]['distance']=_0x19e7f3-_0x35f894;}}['_getRevisionsRange'](_0x4ffd62,_0x2a1ab7,_0x2d7f9a=!0x1){const _0x1ff55a=[];let _0x439f6c=this[_0x27e5('0x6c')][_0x27e5('0x107')](_0x4ffd62),_0x2cf447=this[_0x27e5('0x6c')][_0x27e5('0x107')](_0x2a1ab7);for(-0x1==_0x2cf447&&(_0x2cf447=this[_0x27e5('0x6c')][_0x27e5('0x5a')][_0x27e5('0x3e')],_0x2d7f9a=!0x1);_0x439f6c<_0x2cf447;)_0x1ff55a[_0x27e5('0xaf')](this[_0x27e5('0x6c')][_0x27e5('0x66')](_0x439f6c)),_0x439f6c++;return _0x2d7f9a&&_0x1ff55a[_0x27e5('0xaf')](this[_0x27e5('0x6c')][_0x27e5('0x66')](_0x439f6c)),_0x1ff55a;}[_0x27e5('0x6')](_0x42f2bb,_0xb2b69c,_0x333c39,_0x3945d4){const _0x4bf43f=this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0x4')];let _0x2834ac=_0xb2b69c;for(;_0x42f2bb[_0x2834ac]&&_0x42f2bb[_0x2834ac]['isAdded'];)_0x2834ac++;let _0x556855=_0x3945d4;for(;_0x333c39[_0x556855]&&_0x333c39[_0x556855]['isRemoved'];)_0x556855++;_0xa0a851(_0x42f2bb,_0xb2b69c,_0x2834ac),_0xa0a851(_0x333c39,_0x3945d4,_0x556855);const _0x4f18d7=_0x333c39[_0x27e5('0xec')](_0x3945d4,_0x556855)['concat'](_0x42f2bb[_0x27e5('0xec')](_0xb2b69c,_0x2834ac));return _0x4f18d7[_0x27e5('0x4a')]((_0x4cb7f7,_0x1d9ec8)=>_0x4cb7f7[_0x27e5('0x10d')]!=_0x1d9ec8[_0x27e5('0x10d')]?_0x4cb7f7[_0x27e5('0x10d')]-_0x1d9ec8[_0x27e5('0x10d')]:_0x4cb7f7['level']!=_0x1d9ec8[_0x27e5('0x2c')]?_0x4cb7f7[_0x27e5('0x2c')]-_0x1d9ec8['level']:_0x4cb7f7[_0x27e5('0x7d')]!=_0x1d9ec8[_0x27e5('0x7d')]?_0x1d9ec8[_0x27e5('0x7d')]-_0x4cb7f7[_0x27e5('0x7d')]:!!_0x4cb7f7[_0x27e5('0xde')]!=!!_0x1d9ec8['isAdded']?-0x1==_0x4cb7f7['side']||0x0==_0x4cb7f7['side']?_0x4cb7f7[_0x27e5('0xde')]?-0x1:0x1:_0x4cb7f7['isAdded']?0x1:-0x1:_0x4cb7f7[_0x27e5('0x18')]-_0x1d9ec8[_0x27e5('0x18')]),{'commonTape':_0x4f18d7,'iEnd':_0x2834ac,'jEnd':_0x556855};function _0xa0a851(_0x5f2f60,_0x26e86c,_0x1a3aaa){let _0x5016fc=-0x1,_0x170eee=Number[_0x27e5('0x98')],_0x30275d=!0x0;for(let _0x213c64=_0x26e86c;_0x213c64<_0x1a3aaa;_0x213c64++)if(_0x4bf43f[_0x27e5('0xed')](_0x5f2f60[_0x213c64][_0x27e5('0xcd')])||(_0x30275d=!0x1),_0x5f2f60[_0x213c64][_0x27e5('0xcd')][_0x27e5('0x59')]<_0x26e86c&&(_0x5016fc=_0x213c64),_0x5f2f60[_0x213c64][_0x27e5('0xcd')][_0x27e5('0x25')]>=_0x1a3aaa){_0x170eee=_0x213c64;break;}_0x30275d&&(_0x5016fc=_0x1a3aaa-0x1);for(let _0x1a35c0=_0x26e86c;_0x1a35c0<_0x1a3aaa;_0x1a35c0++)_0x5f2f60[_0x1a35c0][_0x27e5('0x10d')]=_0x1a35c0<=_0x5016fc?-0x1:_0x1a35c0<_0x170eee?0x0:0x1,_0x5f2f60[_0x1a35c0][_0x27e5('0x18')]=_0x1a35c0;let _0x299998=0x0;for(let _0x3d7eb6=_0x26e86c;_0x3d7eb6<=_0x5016fc;_0x3d7eb6++)0x0==_0x5f2f60[_0x3d7eb6]['distance']?_0x5f2f60[_0x3d7eb6][_0x27e5('0x2c')]=_0x299998:(_0x299998++,_0x5f2f60[_0x3d7eb6][_0x27e5('0x2c')]=_0x299998,_0x299998++);for(let _0x1c270c=_0x26e86c;_0x1c270c<_0x1a3aaa;_0x1c270c++)0x0==_0x5f2f60[_0x1c270c]['side']&&(_0x5f2f60[_0x1c270c][_0x27e5('0x2c')]=_0x299998);_0x299998=0x0;for(let _0x4ae622=_0x1a3aaa-0x1;_0x4ae622>=_0x170eee;_0x4ae622--)0x0==_0x5f2f60[_0x4ae622][_0x27e5('0x7d')]?_0x5f2f60[_0x4ae622][_0x27e5('0x2c')]=_0x299998:(_0x299998--,_0x5f2f60[_0x4ae622][_0x27e5('0x2c')]=_0x299998,_0x299998--);}}[_0x27e5('0xb2')](_0x4bf060){const _0x242b3d=new Map(),_0xf7d8dd=this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0x4')];for(let _0x562abf=0x1;_0x562abf<_0x4bf060['length'];_0x562abf++){let _0x5eb7b8,_0x3d5b89,_0x4152e8;const _0x3a37e3=_0x4bf060[_0x562abf],_0x5b5df8=_0x4bf060[_0x562abf-0x1];if(_0x27e5('0x5b')==_0x3a37e3['type'])continue;if(_0x3a37e3[_0x27e5('0xf1')]!=_0x5b5df8[_0x27e5('0xf1')])continue;if(!_0xf7d8dd[_0x27e5('0xfa')](_0x5b5df8[_0x27e5('0xcd')])||_0xf7d8dd[_0x27e5('0x65')](_0x5b5df8['item']))continue;if(!_0xf7d8dd[_0x27e5('0xfa')](_0x3a37e3[_0x27e5('0xcd')])||_0xf7d8dd[_0x27e5('0x65')](_0x3a37e3[_0x27e5('0xcd')]))continue;if((_0x4bf060[_0x562abf][_0x27e5('0xde')]||_0x4bf060[_0x562abf][_0x27e5('0x36')])&&_0x4bf060[_0x562abf-0x1][_0x27e5('0x32')])_0x5eb7b8=_0x4bf060[_0x562abf],_0x3d5b89=_0x4bf060[_0x562abf-0x1],_0x4152e8=_0x562abf-0x1;else{if(!_0x4bf060[_0x562abf][_0x27e5('0x32')]||!_0x4bf060[_0x562abf-0x1][_0x27e5('0xde')]&&!_0x4bf060[_0x562abf-0x1][_0x27e5('0x36')])continue;_0x5eb7b8=_0x4bf060[_0x562abf-0x1],_0x3d5b89=_0x4bf060[_0x562abf],_0x4152e8=_0x562abf;}const _0x21405b=_0x5eb7b8[_0x27e5('0x2c')]==_0x3d5b89[_0x27e5('0x2c')],_0x261e09=Math[_0x27e5('0x22')](_0x5eb7b8[_0x27e5('0x2c')])<Math['abs'](_0x3d5b89[_0x27e5('0x2c')])&&0x0==_0x3d5b89[_0x27e5('0x7d')];(_0x21405b||_0x261e09)&&(_0x242b3d[_0x27e5('0xc8')](_0x3d5b89['id'],_0x5eb7b8['id']),_0x4bf060[_0x27e5('0x61')](_0x4152e8,0x1),_0x562abf--,_0x5eb7b8[_0x27e5('0xde')]=!0x1);}for(let _0x2f8c83=0x0;_0x2f8c83<_0x4bf060[_0x27e5('0x3e')];_0x2f8c83++)_0x242b3d[_0x27e5('0x90')](_0x4bf060[_0x2f8c83][_0x27e5('0x57')])&&(_0x4bf060[_0x2f8c83]['pairId']=_0x242b3d['get'](_0x4bf060[_0x2f8c83]['pairId']));}['_removeMissingPairs'](_0x839b3b){const _0x5b6c53=new Set(_0x839b3b['map'](_0x421153=>_0x421153['id']));for(let _0x185e42=0x0;_0x185e42<_0x839b3b[_0x27e5('0x3e')];_0x185e42++)_0x5b6c53[_0x27e5('0x90')](_0x839b3b[_0x185e42][_0x27e5('0x57')])||0x0==_0x839b3b[_0x185e42]['distance']||(_0x839b3b[_0x185e42][_0x27e5('0x11e')]=!0x0);return _0x839b3b['filter'](_0x233989=>!_0x233989[_0x27e5('0x11e')]);}[_0x27e5('0x116')](_0x1e6a2e){const _0x31835f=new Set();for(let _0x53b124=0x0;_0x53b124<_0x1e6a2e[_0x27e5('0x3e')];_0x53b124++){if(_0x31835f[_0x27e5('0x90')](_0x1e6a2e[_0x53b124]['id'])&&_0x1e6a2e[_0x53b124][_0x27e5('0x32')]&&(_0x1e6a2e[_0x53b124]['isIncorrect']=!0x0),_0x1e6a2e[_0x53b124][_0x27e5('0x11e')])continue;if(0x0==_0x1e6a2e[_0x53b124][_0x27e5('0x7d')])continue;if(_0x27e5('0xcc')!=_0x1e6a2e[_0x53b124][_0x27e5('0xf1')])continue;if(null==_0x1e6a2e[_0x53b124][_0x27e5('0x57')])continue;let _0x15d6dd=_0x53b124+0x1,_0x4783ce=0x0;for(;_0x1e6a2e[_0x15d6dd]['id']!=_0x1e6a2e[_0x53b124][_0x27e5('0x57')];)'elementStart'==_0x1e6a2e[_0x15d6dd][_0x27e5('0xf1')]?_0x4783ce++:_0x27e5('0x1e')==_0x1e6a2e[_0x15d6dd][_0x27e5('0xf1')]&&_0x4783ce--,_0x15d6dd++;if(0x0!=_0x4783ce){if(_0x1e6a2e[_0x53b124][_0x27e5('0x32')])_0x1e6a2e[_0x53b124][_0x27e5('0x11e')]=!0x0;else for(;_0x15d6dd!=_0x53b124;)_0x1e6a2e[_0x15d6dd]['isRemoved']&&0x0!=_0x1e6a2e[_0x15d6dd][_0x27e5('0x7d')]&&(_0x1e6a2e[_0x15d6dd][_0x27e5('0x11e')]=!0x0,_0x31835f['add'](_0x1e6a2e[_0x15d6dd][_0x27e5('0x57')])),_0x15d6dd--;}}return _0x1e6a2e[_0x27e5('0x8c')](_0x1b5445=>!_0x1b5445[_0x27e5('0x11e')]);}[_0x27e5('0x80')](_0x237e98){const _0x43a4b6=this[_0x27e5('0x10f')]['model']['schema'];for(let _0x1da860=0x0;_0x1da860<_0x237e98[_0x27e5('0x3e')];_0x1da860++){if(!(_0x237e98[_0x1da860][_0x27e5('0xde')]||_0x237e98[_0x1da860][_0x27e5('0x36')]||_0x237e98[_0x1da860]['isRemoved']||_0x237e98[_0x1da860][_0x27e5('0x71')]))continue;if(0x0==_0x237e98[_0x1da860][_0x27e5('0x7d')])continue;const _0x1f0a9d=_0x237e98[_0x1da860][_0x27e5('0xcd')];_0x43a4b6[_0x27e5('0xfa')](_0x1f0a9d)||_0x43a4b6[_0x27e5('0x65')](_0x1f0a9d)||(_0x237e98[_0x1da860][_0x27e5('0xde')]&&delete _0x237e98[_0x1da860]['isAdded'],_0x237e98[_0x1da860][_0x27e5('0x36')]&&delete _0x237e98[_0x1da860][_0x27e5('0x36')],_0x237e98[_0x1da860][_0x27e5('0x71')]&&delete _0x237e98[_0x1da860][_0x27e5('0x71')],_0x237e98[_0x1da860][_0x27e5('0x32')]&&(_0x237e98[_0x1da860]['isIncorrect']=!0x0));}return _0x237e98['filter'](_0x432c69=>!_0x432c69[_0x27e5('0x11e')]);}[_0x27e5('0x124')](_0x1bad3e,_0x214b10,_0x4726b6){const _0xb1b279=new _0x5ae7df(),_0x235f30=[],_0xf764cb=new Map(),_0x34c282=this['editor']['model'],_0x4dc502=_0x34c282['schema'],_0x347877=[_0xb1b279],_0x495922={},_0x5b712c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4281fc=null;const _0x501a44=[0x0];for(let _0x4ada8c=0x0;_0x4ada8c<_0x1bad3e[_0x27e5('0x3e')];_0x4ada8c++){let _0x272894,_0x1676b6;if(_0x27e5('0xcc')===_0x1bad3e[_0x4ada8c][_0x27e5('0xf1')]){_0x272894=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44);const _0x120a25=new _0x1af484(_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')][_0x27e5('0x14')],_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')][_0x27e5('0xc7')]());_0x347877[0x0]['_appendChild'](_0x120a25),_0x501a44[_0x27e5('0xaf')](0x0),_0x347877[_0x27e5('0x77')](_0x120a25),_0x1676b6=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44),_0x4281fc=null;}else{if(_0x27e5('0x1e')===_0x1bad3e[_0x4ada8c][_0x27e5('0xf1')])_0x347877[_0x27e5('0xa4')](),_0x272894=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44),_0x501a44['pop'](),_0x501a44[_0x501a44[_0x27e5('0x3e')]-0x1]++,_0x1676b6=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44),_0x4281fc=null;else{if(_0x272894=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44),_0x4281fc&&_0x18de01(_0x4281fc,_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')]))_0x4281fc[_0x27e5('0x78')]+=_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')][_0x27e5('0x110')];else{const _0x998f22=new _0x60a600(_0x1bad3e[_0x4ada8c]['item'][_0x27e5('0x110')],_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')][_0x27e5('0xc7')]());_0x347877[0x0][_0x27e5('0x24')](_0x998f22),_0x4281fc=_0x998f22;}_0x501a44[_0x501a44[_0x27e5('0x3e')]-0x1]+=_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')]['offsetSize'],_0x1676b6=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44);}}for(const _0x7a29cb of _0x1bad3e[_0x4ada8c][_0x27e5('0x13')])_0xf764cb[_0x27e5('0xc8')](_0x7a29cb,{'start':_0x272894,'end':null});_0x4d0c9d(_0x27e5('0x71'),_0x4ada8c,_0x272894,_0x1676b6),_0x4d0c9d('isAddSuggestion',_0x4ada8c,_0x272894,_0x1676b6),_0x4d0c9d(_0x27e5('0x32'),_0x4ada8c,_0x272894,_0x1676b6),_0x4d0c9d(_0x27e5('0xde'),_0x4ada8c,_0x272894,_0x1676b6);for(const _0x59553b of _0x1bad3e[_0x4ada8c][_0x27e5('0x9a')]){_0xf764cb['get'](_0x59553b)['end']=_0x1676b6;}}for(const [_0x43808e,_0x36ae81]of _0xf764cb){const _0x316e6a=this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0x102')](_0x36ae81[_0x27e5('0xd0')],_0x36ae81['end']);_0xb1b279[_0x27e5('0xdc')][_0x27e5('0xc8')](_0x43808e,_0x316e6a);}return _0x235f30[_0x27e5('0x4a')]((_0x1acc80,_0x34dcf4)=>{const _0x2294d7=_0xb1b279[_0x27e5('0xdc')][_0x27e5('0xbd')](_0x27e5('0xa9')+_0x1acc80['id']),_0x260da3=_0xb1b279['markers']['get'](_0x27e5('0xa9')+_0x34dcf4['id']);return _0x2294d7['start'][_0x27e5('0x4c')](_0x260da3[_0x27e5('0xd0')])?-0x1:_0x2294d7[_0x27e5('0xd0')][_0x27e5('0xc9')](_0x260da3['start'])?0x1:_0x2294d7[_0x27e5('0x8b')][_0x27e5('0x4c')](_0x260da3[_0x27e5('0x8b')])?-0x1:_0x2294d7[_0x27e5('0x8b')]['isAfter'](_0x260da3['end'])?0x1:'add'===_0x1acc80[_0x27e5('0xf1')]?-0x1:0x1;}),{'root':_0xb1b279,'changes':_0x235f30};function _0x4d0c9d(_0x136546,_0x123e8a,_0x176663,_0x49cef9){const _0x497b8f=!!_0x1bad3e[_0x123e8a][_0x136546],_0x216ae1=_0x497b8f?_0x1bad3e[_0x123e8a][_0x136546]['userId']:null,_0xdc1f1=_0x123e8a===_0x1bad3e[_0x27e5('0x3e')]-0x1,_0x161dc2=_0x5b712c[_0x136546][0x0],_0x499cac=_0x4dc502[_0x27e5('0xd3')](_0x1bad3e[_0x123e8a][_0x27e5('0xcd')]);!_0x495922[_0x136546]&&_0x497b8f?_0x495922[_0x136546]={'start':_0x176663,'tapeItem':_0x1bad3e[_0x123e8a],'userId':_0x216ae1,'type':_0x136546}:_0x495922[_0x136546]&&!_0x497b8f?(_0x495922[_0x136546][_0x27e5('0x8b')]=_0x176663,_0x3e9ecd(_0x495922[_0x136546]),_0x495922[_0x136546]=null):_0x495922[_0x136546]&&_0x497b8f&&_0x495922[_0x136546][_0x27e5('0x92')]!==_0x216ae1&&(_0x495922[_0x136546]['end']=_0x176663,_0x161dc2&&_0x161dc2[_0x27e5('0x92')]===_0x495922[_0x136546][_0x27e5('0x92')]||_0x3e9ecd(_0x495922[_0x136546]),_0x495922[_0x136546]={'start':_0x176663,'tapeItem':_0x1bad3e[_0x123e8a],'userId':_0x216ae1,'type':_0x136546}),_0x495922[_0x136546]&&_0x499cac&&(_0x27e5('0xcc')!==_0x1bad3e[_0x123e8a][_0x27e5('0xf1')]||_0x161dc2&&_0x161dc2[_0x27e5('0x92')]===_0x216ae1||_0x5b712c[_0x136546]['unshift']({'userId':_0x216ae1,'object':_0x1bad3e[_0x123e8a][_0x27e5('0xcd')],'change':_0x495922[_0x136546]}),_0x27e5('0x1e')===_0x1bad3e[_0x123e8a][_0x27e5('0xf1')]&&_0x161dc2&&_0x161dc2[_0x27e5('0x121')]===_0x1bad3e[_0x123e8a][_0x27e5('0xcd')]&&(_0x5b712c[_0x136546][_0x27e5('0xa4')](),_0x495922[_0x136546]=_0x161dc2['change'])),_0x495922[_0x136546]&&_0xdc1f1&&(_0x495922[_0x136546]['end']=_0x49cef9,_0x3e9ecd(_0x495922[_0x136546]),_0x495922[_0x136546]=null);}function _0x3e9ecd({start:_0x77bdba,end:_0x32770b,tapeItem:_0x72838c,userId:_0x4685fa,type:_0xf30a65}){const _0x15207c=_0x72838c[_0x27e5('0xcd')],_0x14f323=_0x34c282[_0x27e5('0x4')][_0x27e5('0xfa')](_0x15207c)&&!_0x34c282[_0x27e5('0x4')]['isLimit'](_0x15207c),_0x1218a2=_0x77bdba[_0x27e5('0x95')]==_0x32770b[_0x27e5('0x49')]&&_0x32770b[_0x27e5('0x87')];if(_0x14f323&&_0x1218a2)return;const _0xfa364f=_0x34c282[_0x27e5('0x102')](_0x77bdba,_0x32770b),_0x3d798c=_0x214b10[_0x27e5('0xbd')](_0x4685fa),_0x1f6f61=new _0x41f2a0({'author':_0x3d798c,'type':_0x27e5('0xde')==_0xf30a65||_0x27e5('0x36')==_0xf30a65?_0x27e5('0x3d'):_0x27e5('0x52'),'data':{'isSuggestion':'isAddSuggestion'==_0xf30a65||_0x27e5('0x71')==_0xf30a65},'createdAt':new Date(),'rootName':_0x4726b6});_0x235f30[_0x27e5('0xaf')](_0x1f6f61),_0xb1b279['markers'][_0x27e5('0xc8')]('revision:'+_0x1f6f61['id'],_0xfa364f);}function _0x18de01(_0x284755,_0x116b48){const _0x342cc0=_0x284755[_0x27e5('0xc7')](),_0x158852=_0x116b48['getAttributes']();for(const _0x435f3f of _0x342cc0){if(_0x435f3f[0x1]!==_0x116b48['getAttribute'](_0x435f3f[0x0]))return!0x1;_0x158852[_0x27e5('0x60')]();}return _0x158852[_0x27e5('0x60')]()[_0x27e5('0xa2')];}}[_0x27e5('0xdd')](){this[_0x27e5('0x10f')]['conversion']['for']('upcast')[_0x27e5('0xad')]({'view':_0x27e5('0x82')}),this[_0x27e5('0x10f')][_0x27e5('0x5d')][_0x27e5('0xc1')](_0x27e5('0x21'))[_0x27e5('0xd')]({'model':'revision','view':_0x342281=>{const _0x1f8bbc=_0x342281[_0x27e5('0x16')]['split'](':')[0x1],_0x3ad061=this[_0x27e5('0x4b')](_0x1f8bbc);if(!_0x3ad061)return null;const _0x44ffb9=_0x27e5('0x3d')==_0x3ad061['type']?_0x27e5('0xfe'):_0x27e5('0xbb'),_0x45dd7e=[_0x27e5('0xb1'),_0x27e5('0xbf')+_0x44ffb9];return _0x3ad061[_0x27e5('0x110')][_0x27e5('0x53')]&&_0x45dd7e[_0x27e5('0xaf')](_0x27e5('0xbf')+_0x44ffb9+'-new'),this[_0x27e5('0x37')]==_0x3ad061&&_0x45dd7e['push'](_0x27e5('0x33')),{'classes':_0x45dd7e,'attributes':{'data-change-id':_0x1f8bbc}};}}),this['editor'][_0x27e5('0x5d')][_0x27e5('0xc1')](_0x27e5('0x34'))[_0x27e5('0x3d')](_0x393485=>{_0x393485['on']('element:pre',(_0x2e843b,_0x5b7f7e,_0x45cb60)=>{const _0x5cdd4d=_0x5b7f7e['viewItem']['getChild'](0x0);if(!_0x5cdd4d||!_0x5cdd4d['is'](_0x27e5('0x46'),_0x27e5('0xac')))return;if(!_0x45cb60[_0x27e5('0xeb')][_0x27e5('0xf5')](_0x5cdd4d,{'attributes':[_0x27e5('0xda'),_0x27e5('0xf4')]}))return;const _0x23e8b2=_0x5b7f7e[_0x27e5('0x35')]['start'][_0x27e5('0x95')];_0x45cb60['writer'][_0x27e5('0x70')]('vid_start',_0x5cdd4d['getAttribute'](_0x27e5('0xda')),_0x23e8b2),_0x45cb60['writer']['setAttribute'](_0x27e5('0xf4'),_0x5cdd4d[_0x27e5('0xba')]('vid_end'),_0x23e8b2);},{'priority':'low'});}),this[_0x27e5('0x10f')]['conversion'][_0x27e5('0xc1')](_0x27e5('0x34'))[_0x27e5('0x3d')](_0x3f22b8=>{_0x3f22b8['on'](_0x27e5('0x46'),(_0x4f24c2,_0x2c7acb,_0x1c0395)=>{if(!_0x1c0395['consumable']['consume'](_0x2c7acb[_0x27e5('0x56')],{'attributes':[_0x27e5('0xda'),_0x27e5('0xf4')]}))return;if(_0x2c7acb[_0x27e5('0x35')][_0x27e5('0xf8')])return;const _0xcf3f2=_0x2c7acb[_0x27e5('0x35')][_0x27e5('0xd0')]['nodeAfter'];_0xcf3f2[_0x27e5('0x73')](_0x27e5('0xda'))||_0xcf3f2[_0x27e5('0x73')](_0x27e5('0x41'))||(_0x1c0395[_0x27e5('0x83')]['setAttribute']('vid_start',_0x2c7acb[_0x27e5('0x56')]['getAttribute'](_0x27e5('0xda')),_0xcf3f2),_0x1c0395[_0x27e5('0x83')][_0x27e5('0x70')](_0x27e5('0xf4'),_0x2c7acb[_0x27e5('0x56')][_0x27e5('0xba')](_0x27e5('0xf4')),_0xcf3f2));},{'priority':'low'});}),this[_0x27e5('0x10f')]['conversion'][_0x27e5('0xc1')](_0x27e5('0x34'))[_0x27e5('0xb6')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x27e5('0x41'),'value':_0x25a375=>_0x25a375[_0x27e5('0xba')](_0x27e5('0x41'))}}),this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0x4')]['on']('checkAttribute',(_0x224f0a,[,_0x349fbe])=>{[_0x27e5('0xda'),_0x27e5('0xf4'),_0x27e5('0x41')]['includes'](_0x349fbe)&&(_0x224f0a[_0x27e5('0x50')]=!0x0,_0x224f0a[_0x27e5('0x54')]());},{'priority':_0x27e5('0xa')}),this[_0x27e5('0x10f')]['conversion']['for'](_0x27e5('0x81'))[_0x27e5('0x3d')](_0x565770=>{_0x565770['on'](_0x27e5('0x7f'),(_0x236506,_0x28e3f6,_0x4271dc)=>{if('\x20'!=_0x28e3f6['item'][_0x27e5('0x110')]||_0x28e3f6[_0x27e5('0xcd')][_0x27e5('0x49')][_0x27e5('0xa6')]>0x1)return;if(!_0x4271dc[_0x27e5('0xeb')][_0x27e5('0xf5')](_0x28e3f6['item'],_0x236506[_0x27e5('0x14')]))return;const _0x23be75=_0x4271dc[_0x27e5('0x83')],_0x480ab5=_0x4271dc['mapper'][_0x27e5('0x7e')](_0x28e3f6[_0x27e5('0x10')]);_0x23be75[_0x27e5('0x23')](_0x480ab5,_0x23be75[_0x27e5('0xc3')]('span'));});}),this[_0x27e5('0x10f')][_0x27e5('0x5d')]['for'](_0x27e5('0x81'))[_0x27e5('0xa7')]({'model':_0x27e5('0x82')}),this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x9b')]['on']('addMarker:revision',function(_0x418fbb){const _0x572a54=_0x418fbb['plugins'][_0x27e5('0xbd')](_0x27e5('0x39'));return(_0x3e056b,_0x4e794d,_0x58fefd)=>{const _0x5f11a4=_0x4e794d[_0x27e5('0x16')][_0x27e5('0x120')](':')[0x1],_0x541b81=_0x572a54['_getChangeFromId'](_0x5f11a4);if(!_0x541b81)return null;const _0x7d81be=_0x27e5('0x3d')==_0x541b81[_0x27e5('0xf1')]?'split':_0x27e5('0x100');if(!_0x58fefd[_0x27e5('0xeb')][_0x27e5('0x19')](_0x4e794d[_0x27e5('0x105')],_0x3e056b[_0x27e5('0x14')]))return;const _0x20df40=_0x4e794d[_0x27e5('0x105')][_0x27e5('0x7a')](),_0x3d1bd2=_0x4e794d['markerRange']['start'],_0x55e6ae=_0x418fbb[_0x27e5('0xd9')][_0x27e5('0x4')];let _0x51580a=null,_0x7e9483=null,_0x18c81c=!0x1,_0x1ceb25=!0x1;for(const _0x40d150 of _0x20df40){const _0x38229a=_0x40d150[_0x27e5('0xcd')];_0x18c81c=_0x18c81c||_0x55e6ae[_0x27e5('0xcb')](_0x38229a);const _0x1ac59d=_0x58fefd['mapper'][_0x27e5('0x64')](_0x38229a);if(_0x1ac59d&&_0x1ac59d['getCustomProperty'](_0x27e5('0x93')))return;'elementEnd'==_0x40d150[_0x27e5('0xf1')]&&(_0x55e6ae['isBlock'](_0x38229a)&&!_0x55e6ae[_0x27e5('0x65')](_0x38229a)&&(_0x38229a[_0x27e5('0xff')]||_0x3d1bd2[_0x27e5('0x108')]?_0x51580a&&_0x51580a[_0x27e5('0x49')]==_0x38229a||(_0x51580a=_0x38229a,_0x1713ff(_0x40d150['previousPosition']),_0x1ceb25=!0x0):_0x7e9483=_0x7e9483||_0x40d150[_0x27e5('0xca')]));}function _0x1713ff(_0x188710){const _0x57d6e5=_0x58fefd[_0x27e5('0x83')][_0x27e5('0x8a')](_0x27e5('0x123'),{'class':_0x27e5('0xbf')+_0x7d81be}),_0x3cf231=_0x58fefd[_0x27e5('0x3b')][_0x27e5('0x11c')](_0x188710);_0x541b81[_0x27e5('0x110')]['isSuggestion']&&_0x58fefd[_0x27e5('0x83')][_0x27e5('0x63')]('ck-suggestion-marker-'+_0x7d81be+_0x27e5('0x76'),_0x57d6e5),_0x572a54[_0x27e5('0x37')]==_0x541b81&&_0x58fefd['writer']['addClass']('ck-suggestion-marker--active',_0x57d6e5),_0x58fefd[_0x27e5('0x83')]['insert'](_0x3cf231,_0x57d6e5),_0x58fefd[_0x27e5('0x3b')]['bindElementToMarker'](_0x57d6e5,_0x4e794d[_0x27e5('0x16')]);}_0x18c81c||_0x1ceb25||!_0x7e9483||_0x1713ff(_0x7e9483);};}(this[_0x27e5('0x10f')]),{'priority':_0x27e5('0x5')}),this[_0x27e5('0x10f')]['editing'][_0x27e5('0x9b')]['on'](_0x27e5('0xe6'),(_0x37f1dc,_0x55aa93,_0x5806c3)=>{const _0x45f6c4=_0x5806c3[_0x27e5('0x3b')][_0x27e5('0xc5')](_0x55aa93[_0x27e5('0x16')]);if(_0x45f6c4)for(const _0x43b29c of _0x45f6c4)(_0x43b29c[_0x27e5('0x27')]('ck-suggestion-marker-split')||_0x43b29c[_0x27e5('0x27')](_0x27e5('0xb3')))&&(_0x5806c3[_0x27e5('0x3b')][_0x27e5('0x4e')](_0x43b29c,_0x55aa93[_0x27e5('0x16')]),_0x5806c3[_0x27e5('0x83')][_0x27e5('0x52')](_0x43b29c));},{'priority':_0x27e5('0x5')}),this['editor'][_0x27e5('0xf3')][_0x27e5('0x9b')]['on'](_0x27e5('0x12'),(_0x261a2b,_0x3f8a03,_0x34f392)=>{const _0x598933=_0x3f8a03[_0x27e5('0x16')][_0x27e5('0x120')](':')[0x1],_0x4799d8=this[_0x27e5('0x4b')](_0x598933);if(!_0x4799d8)return null;const _0x1b5a65='add'==_0x4799d8[_0x27e5('0xf1')]?'split':_0x27e5('0x100');if(_0x34f392[_0x27e5('0xeb')][_0x27e5('0x19')](_0x3f8a03['markerRange'],_0x261a2b[_0x27e5('0x14')]))for(const _0x167829 of _0x3f8a03[_0x27e5('0x105')][_0x27e5('0x79')]()){if(!_0x167829['is']('element',_0x27e5('0x55')))continue;const _0x40180a=_0x34f392['writer'][_0x27e5('0x8a')]('span',{'class':_0x27e5('0xbf')+_0x1b5a65}),_0x38bdbf=_0x34f392[_0x27e5('0x3b')][_0x27e5('0x11c')](this[_0x27e5('0x10f')]['model'][_0x27e5('0xd5')](_0x167829));_0x4799d8[_0x27e5('0x110')][_0x27e5('0x53')]&&_0x34f392[_0x27e5('0x83')][_0x27e5('0x63')]('ck-suggestion-marker-'+_0x1b5a65+_0x27e5('0x76'),_0x40180a),this['activeChange']==_0x4799d8&&_0x34f392['writer'][_0x27e5('0x63')](_0x27e5('0x33'),_0x40180a),_0x34f392['writer'][_0x27e5('0x2e')](_0x38bdbf,_0x40180a),_0x34f392[_0x27e5('0x3b')]['bindElementToMarker'](_0x40180a,_0x3f8a03[_0x27e5('0x16')]);}},{'priority':'high'}),this[_0x27e5('0x10f')][_0x27e5('0xd9')]['document']['on']('change',()=>{this['editor'][_0x27e5('0xf3')]['view'][_0x27e5('0x10a')](_0x4b74e5=>{for(const _0x27e4c2 of this[_0x27e5('0x10f')]['model']['document'][_0x27e5('0x1d')]()){const _0x404916=this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0xdf')][_0x27e5('0x94')](_0x27e4c2),_0x3ca0ca=this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x106')][_0x27e5('0xdf')][_0x27e5('0x94')](_0x27e4c2);if(_0x3ca0ca){const _0x3c83cc=_0x404916[_0x27e5('0xba')](_0x27e5('0x85'));if(_0x4b74e5[_0x27e5('0x69')](_0x27e5('0xf6'),_0x3ca0ca),_0x4b74e5[_0x27e5('0x88')]('ck-revision-history-root-add',_0x3ca0ca),_0x4b74e5[_0x27e5('0x88')](_0x27e5('0x28'),_0x3ca0ca),_0x4b74e5[_0x27e5('0x88')](_0x27e5('0xe'),_0x3ca0ca),_0x3c83cc){const _0x57eb9c=this['_getChangeFromId'](_0x3c83cc);if(!_0x57eb9c)return null;_0x4b74e5[_0x27e5('0x70')](_0x27e5('0xf6'),_0x3c83cc,_0x3ca0ca),_0x4b74e5['addClass']('ck-revision-history-root-'+_0x57eb9c[_0x27e5('0xf1')],_0x3ca0ca),this[_0x27e5('0x37')]==_0x57eb9c&&_0x4b74e5['addClass'](_0x27e5('0xe'),_0x3ca0ca);}}}});}),this['editor']['conversion'][_0x27e5('0xc1')](_0x27e5('0x34'))[_0x27e5('0xad')]({'view':_0x27e5('0x2'),'model':_0xff40aa=>_0x27e5('0xd1')+_0xff40aa,'converterPriority':'highest'}),this[_0x27e5('0x10f')][_0x27e5('0x5d')][_0x27e5('0xc1')](_0x27e5('0x34'))[_0x27e5('0xad')]({'view':_0x27e5('0x42'),'model':_0x19c34f=>'revision-suggestion:'+_0x19c34f,'converterPriority':'highest'}),this[_0x27e5('0x10f')][_0x27e5('0x5d')][_0x27e5('0xc1')]('dataDowncast')[_0x27e5('0xa7')]({'model':_0x27e5('0x30'),'view':_0x252ea0=>({'name':_0x27e5('0x3c')+_0x252ea0,'group':_0x27e5('0x30')}),'converterPriority':_0x27e5('0xa')}),this[_0x27e5('0x10f')]['conversion'][_0x27e5('0xc1')](_0x27e5('0x21'))[_0x27e5('0xd')]({'model':_0x27e5('0x30'),'view':_0x3de108=>{const _0x4bd014=_0x3de108['markerName'][_0x27e5('0x120')](':')[0x1];return'insertion'!=_0x4bd014&&_0x27e5('0xbb')!=_0x4bd014?null:{'classes':[_0x27e5('0xc'),'ck-suggestion-preview-marker-'+_0x4bd014]};}}),this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x9b')]['on'](_0x27e5('0x115'),et(this[_0x27e5('0x10f')],_0x27e5('0x100')),{'priority':_0x27e5('0x5')}),this['editor'][_0x27e5('0xf3')][_0x27e5('0x9b')]['on'](_0x27e5('0xb5'),et(this[_0x27e5('0x10f')],'split'),{'priority':_0x27e5('0x5')}),this[_0x27e5('0x10f')]['editing'][_0x27e5('0x9b')]['on'](_0x27e5('0xc4'),(_0x27eec9,_0x36dc9c,_0x3ebe16)=>{const _0x39bca9=_0x3ebe16[_0x27e5('0x3b')][_0x27e5('0xc5')](_0x36dc9c[_0x27e5('0x16')]);if(_0x39bca9)for(const _0x1107c7 of _0x39bca9)_0x1107c7['is']('uiElement')&&(_0x3ebe16[_0x27e5('0x3b')][_0x27e5('0x4e')](_0x1107c7,_0x36dc9c['markerName']),_0x3ebe16['writer'][_0x27e5('0x52')](_0x1107c7));},{'priority':_0x27e5('0x5')});}['_getChangeFromId'](_0x43b3a6){return this[_0x27e5('0x117')][_0x27e5('0xbd')](_0x43b3a6);}['_getViewForChange'](_0x11f25a){return this[_0x27e5('0xd6')]&&this['_changeView']['destroy'](),this[_0x27e5('0xd6')]=new _0x1f85d0(this[_0x27e5('0x10f')][_0x27e5('0xae')],_0x11f25a),this[_0x27e5('0xd6')];}[_0x27e5('0x5e')](){this['editor'][_0x27e5('0xd9')][_0x27e5('0xdf')][_0x27e5('0x8d')]['observeMarkers'](_0x27e5('0x82')),this['on']('change:activeView',(_0x2858cc,_0x490f37,_0x35cb00,_0x542f47)=>{_0x542f47&&this['_balloon'][_0x27e5('0x52')](_0x542f47),_0x35cb00&&(this['_balloon'][_0x27e5('0x3d')]({'view':_0x35cb00,'stackId':_0x27e5('0x89'),'position':{'target':()=>{const _0x849961=this[_0x27e5('0x10f')][_0x27e5('0xf3')],_0x44a852=this[_0x27e5('0x4b')](_0x35cb00['changeId']);let _0x471be0;if(_0x44a852['data'][_0x27e5('0x0')]){const _0x4d94f1=_0x849961['view'][_0x27e5('0x31')](_0x44a852[_0x27e5('0x72')]);_0x471be0=Array[_0x27e5('0xfc')](_0x4d94f1[_0x27e5('0x45')]());}else{const _0x14dc39=this[_0x27e5('0x10f')][_0x27e5('0xd9')]['markers'][_0x27e5('0xbd')]('revision:'+_0x35cb00[_0x27e5('0x74')]);_0x471be0=Array[_0x27e5('0xfc')](_0x849961['mapper'][_0x27e5('0xc5')](_0x14dc39['name']))[_0x27e5('0x11d')](_0x3ec80e=>_0x849961[_0x27e5('0x106')][_0x27e5('0x2f')][_0x27e5('0x3a')](_0x3ec80e))[_0x27e5('0x11d')](_0xb93c57=>Array[_0x27e5('0xfc')](_0xb93c57[_0x27e5('0x45')]()))[_0x27e5('0xea')]();}if(!this[_0x27e5('0x6d')])return _0x471be0[0x0];return _0x471be0[_0x27e5('0x8f')](_0x580ffb=>_0x580ffb[_0x27e5('0x17')]-0x3<=this[_0x27e5('0x6d')]['y']&&_0x580ffb[_0x27e5('0x122')]+0x3>=this[_0x27e5('0x6d')]['y']&&_0x580ffb[_0x27e5('0x1b')]-0x3<=this[_0x27e5('0x6d')]['x']&&_0x580ffb[_0x27e5('0x109')]+0x3>=this[_0x27e5('0x6d')]['x'])||_0x471be0[0x0];}}}),this[_0x27e5('0xe1')][_0x27e5('0xf2')](_0x27e5('0x89')));}),this['on'](_0x27e5('0x113'),(_0x4bf545,_0x1041c1,_0x3577e3,_0x4278fa)=>{this[_0x27e5('0xd2')]=_0x3577e3?this[_0x27e5('0xd7')](_0x3577e3):null,this['editor'][_0x27e5('0xd9')]['change'](()=>{const _0x5284ae=this['editor'][_0x27e5('0xf3')];_0x4278fa&&(_0x4278fa[_0x27e5('0x110')][_0x27e5('0x0')]?_0x5284ae[_0x27e5('0x106')][_0x27e5('0x10a')](_0x56b970=>{_0x56b970['removeClass'](_0x27e5('0xe'),_0x5284ae[_0x27e5('0x106')][_0x27e5('0xdf')][_0x27e5('0x94')](_0x4278fa[_0x27e5('0x72')]));}):_0x5284ae[_0x27e5('0xbe')](_0x27e5('0xa9')+_0x4278fa['id'])),_0x3577e3&&(_0x3577e3[_0x27e5('0x110')][_0x27e5('0x0')]?_0x5284ae[_0x27e5('0x106')][_0x27e5('0x10a')](_0x5ad543=>{_0x5ad543[_0x27e5('0x63')]('ck-revision-history-root--active',_0x5284ae[_0x27e5('0x106')][_0x27e5('0xdf')]['getRoot'](_0x3577e3[_0x27e5('0x72')]));}):_0x5284ae[_0x27e5('0xbe')]('revision:'+_0x3577e3['id']));});}),this[_0x27e5('0x15')](this[_0x27e5('0x10f')][_0x27e5('0xf3')]['view'][_0x27e5('0xdf')],_0x27e5('0xe9'),(_0x8e7608,_0x50ec73)=>{if(this[_0x27e5('0x37')])return;const _0x5ded95=this[_0x27e5('0x26')](_0x50ec73[_0x27e5('0x29')]),_0x1bbd54=this[_0x27e5('0x117')][_0x27e5('0xbd')](_0x5ded95);_0x1bbd54?(this['_activeViewTarget']={'x':_0x50ec73['domEvent']['x'],'y':_0x50ec73['domEvent']['y']},this[_0x27e5('0xd2')]=this[_0x27e5('0xd7')](_0x1bbd54)):(this['_activeViewTarget']=null,this[_0x27e5('0xd2')]=null);}),this['listenTo'](this[_0x27e5('0x10f')]['editing'][_0x27e5('0x106')][_0x27e5('0xdf')],_0x27e5('0x7b'),(_0x9be5b0,_0x29b6fc)=>{const _0x4a94d4=this[_0x27e5('0x26')](_0x29b6fc['target']),_0x4438a8=this[_0x27e5('0x117')]['get'](_0x4a94d4);_0x4438a8?(this[_0x27e5('0x6d')]={'x':_0x29b6fc[_0x27e5('0x8')]['x'],'y':_0x29b6fc[_0x27e5('0x8')]['y']},_0x4438a8===this[_0x27e5('0x37')]?this[_0x27e5('0xe1')][_0x27e5('0x1')]():this[_0x27e5('0x37')]=_0x4438a8):(this[_0x27e5('0x6d')]=null,this['activeChange']=null);});}[_0x27e5('0x26')](_0x27e8af){do{const _0x56dcf7=_0x27e8af['getAttribute'](_0x27e5('0xf6'));if(_0x56dcf7)return _0x56dcf7;_0x27e8af=_0x27e8af[_0x27e5('0x49')];}while(_0x27e8af);return null;}[_0x27e5('0xb9')](){this[_0x27e5('0x10f')]['model'][_0x27e5('0x10a')](_0x14828f=>{for(const _0x2fc42c of this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0xdc')])_0x14828f[_0x27e5('0xb0')](_0x2fc42c);});}}function et(_0x20835d,_0x163457){return(_0x40009b,_0x400731,_0x512ec9)=>{if(!_0x512ec9[_0x27e5('0xeb')]['test'](_0x400731[_0x27e5('0x105')],_0x40009b[_0x27e5('0x14')]))return;const _0x85e3c4=_0x400731[_0x27e5('0x105')][_0x27e5('0x7a')](),_0x506ecb=_0x400731['markerRange']['start'],_0x3e3d13=_0x20835d[_0x27e5('0xd9')][_0x27e5('0x4')];let _0x54f4b7=null,_0x1bea11=null,_0x40e792=!0x1,_0x5e3a1e=!0x1;for(const _0x4c8194 of _0x85e3c4){const _0x1df067=_0x4c8194['item'];_0x40e792=_0x40e792||_0x3e3d13[_0x27e5('0xcb')](_0x1df067);const _0x847999=_0x512ec9[_0x27e5('0x3b')]['toViewElement'](_0x1df067);if(_0x847999&&_0x847999[_0x27e5('0x75')](_0x27e5('0x93')))return;_0x27e5('0x1e')==_0x4c8194[_0x27e5('0xf1')]&&(_0x3e3d13['isBlock'](_0x1df067)&&!_0x3e3d13[_0x27e5('0x65')](_0x1df067)&&(_0x1df067[_0x27e5('0xff')]||_0x506ecb[_0x27e5('0x108')]?_0x54f4b7&&_0x54f4b7[_0x27e5('0x49')]==_0x1df067||(_0x54f4b7=_0x1df067,_0x4b6a7c(_0x4c8194['previousPosition']),_0x5e3a1e=!0x0):_0x1bea11=_0x1bea11||_0x4c8194[_0x27e5('0xca')]));}function _0x4b6a7c(_0x460a6e){const _0x527da6=_0x512ec9[_0x27e5('0x3b')][_0x27e5('0x11c')](_0x460a6e),_0x53f97a=_0x512ec9[_0x27e5('0x83')][_0x27e5('0x8a')]('span',{'class':_0x27e5('0x118')+_0x163457});_0x512ec9[_0x27e5('0x83')][_0x27e5('0x2e')](_0x527da6,_0x53f97a),_0x512ec9[_0x27e5('0x3b')]['bindElementToMarker'](_0x53f97a,_0x400731[_0x27e5('0x16')]);}_0x40e792||_0x5e3a1e||!_0x1bea11||_0x4b6a7c(_0x1bea11);};}export class RestoreRevisionCommand extends _0x25dea0{constructor(_0x113359){super(_0x113359);const _0x333ee5=_0x113359['plugins'][_0x27e5('0xbd')](d);this[_0x27e5('0x44')]=!0x1,this[_0x27e5('0x15')](_0x333ee5,_0x27e5('0xd4'),()=>this[_0x27e5('0xa1')]()),this[_0x27e5('0x15')](_0x333ee5,_0x27e5('0x1a'),()=>this[_0x27e5('0xa1')]());}['execute'](){const _0x1d399b=this[_0x27e5('0x10f')],_0x23646b=_0x1d399b['plugins'][_0x27e5('0xbd')](d),_0x1e061c=_0x23646b['isReady']?_0x23646b[_0x27e5('0x97')][_0x27e5('0xc2')]:null;_0x1d399b['config'][_0x27e5('0xbd')](_0x27e5('0xe2'))['restoreRevisionCallback'](_0x1e061c);}[_0x27e5('0xa1')](){const {isReady:_0xef0597,isEnabled:_0x3210a3}=this[_0x27e5('0x10f')][_0x27e5('0x1f')][_0x27e5('0xbd')](d);this[_0x27e5('0x20')]=_0xef0597&&_0x3210a3;}}export class ShowChangeCommand extends _0x25dea0{constructor(_0xf5454e,{direction:_0x352c91}){super(_0xf5454e);const _0xe7455a=_0xf5454e['plugins']['get'](d);this[_0x27e5('0x44')]=!0x1,this[_0x27e5('0xb7')]='forward'===_0x352c91?0x1:-0x1,this[_0x27e5('0x15')](_0xe7455a,_0x27e5('0xd4'),()=>this[_0x27e5('0xa1')]()),this[_0x27e5('0x15')](_0xe7455a,_0x27e5('0x1a'),()=>this['refresh']()),this[_0x27e5('0x15')](_0xe7455a,_0x27e5('0x113'),()=>this[_0x27e5('0xa1')]());}[_0x27e5('0x3')](){const _0x57618b=this[_0x27e5('0x10f')],_0x57682d=_0x57618b['plugins'][_0x27e5('0xbd')](d),{isNavigationMode:_0x4c58b9,currentChangeNumber:_0x521125}=_0x57682d;let _0x1292a0;if(_0x57682d['activeChange']=_0x4c58b9?_0x57682d[_0x27e5('0x97')][_0x27e5('0x5f')]['get'](_0x521125+this[_0x27e5('0xb7')]):_0x57682d[_0x27e5('0x97')]['changes'][_0x27e5('0xb4')],_0x57682d[_0x27e5('0x37')][_0x27e5('0x110')]['isOnRoot'])_0x1292a0=_0x57618b[_0x27e5('0xf3')][_0x27e5('0x106')][_0x27e5('0x31')](_0x57682d[_0x27e5('0x37')][_0x27e5('0x72')]);else{const _0x563435=_0x57618b[_0x27e5('0xd9')][_0x27e5('0xdc')]['get'](_0x27e5('0xa9')+_0x57682d[_0x27e5('0x37')]['id']);_0x1292a0=_0x30fca9(_0x57618b['editing'],_0x563435);}_0x3331af({'target':_0x1292a0,'viewportOffset':0x28});}[_0x27e5('0xa1')](){const {isNavigationMode:_0x2f8255,currentChangeNumber:_0x1a402f,numberOfChanges:_0xcc517c,isReady:_0xf159c5,isEnabled:_0x4ae9cf}=this[_0x27e5('0x10f')]['plugins'][_0x27e5('0xbd')](d);this[_0x27e5('0x20')]=!!(_0x4ae9cf&&_0xf159c5&&_0xcc517c)&&(!_0x2f8255||(0x1===this['_step']?_0x1a402f<_0xcc517c-0x1:_0x1a402f>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf598=['stopPropagation','find','source','model','ck-on','isEnabled','isOpen','execute','name','_action','action','isVisible','items','isReady','extendTemplate','set','map','listenTo','bind','bindTemplate','locale','listView','isActionsDropdownOpen','Name\x20this\x20revision','threeVerticalDots','Restore\x20this\x20revision','button','ck-revision-history-sidebar__revision__actions','function','panelPosition','Compare\x20against\x20selected'];(function(_0x15576e,_0xf59857){const _0x1620f8=function(_0x30c7d8){while(--_0x30c7d8){_0x15576e['push'](_0x15576e['shift']());}};_0x1620f8(++_0xf59857);}(_0xf598,0xbd));const _0x1620=function(_0x15576e,_0xf59857){_0x15576e=_0x15576e-0x0;let _0x1620f8=_0xf598[_0x15576e];return _0x1620f8;};import{Collection as _0xcec633}from'ckeditor5/src/utils';import{icons as _0x4d9739}from'ckeditor5/src/core';import{Model as _0x1ad91b,addListToDropdown as _0x23b4f7,createDropdown as _0x71d16}from'ckeditor5/src/ui';import{getTranslation as _0x24eb25}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x24ec9b,_0x293441){const _0x4bbc93=_0x24ec9b[_0x1620('0x10')],_0x4f997d=_0x24ec9b['locale'],_0x1dd77e=_0x71d16(_0x4f997d);_0x1dd77e[_0x1620('0x1a')]='sw';const _0x164087=function(_0x5bb3f8,_0x1e90b9){const _0x36cf77=function(_0x18ad64,_0x1616a1){const _0x49cbef=_0x18ad64[_0x1620('0x11')],_0x268c2c={'Compare\x20against\x20selected':_0x24eb25(_0x49cbef,_0x1620('0x1b')),'Name\x20this\x20revision':_0x24eb25(_0x49cbef,_0x1620('0x14')),'Restore\x20this\x20revision':_0x24eb25(_0x49cbef,_0x1620('0x16'))};return _0x1616a1[_0x1620('0xd')](_0x4d6efc=>{const _0x5cdeea=_0x268c2c[_0x4d6efc['name']];return _0x5cdeea&&_0x5cdeea!==_0x4d6efc['name']&&(_0x4d6efc[_0x1620('0x5')]=_0x5cdeea),_0x4d6efc;});}(_0x5bb3f8,_0x1e90b9),_0x3b4eb5=new _0xcec633();for(const _0x197949 of _0x36cf77){const _0x2c38cd={'type':_0x1620('0x17'),'model':new _0x1ad91b({'label':_0x197949[_0x1620('0x5')],'class':_0x197949['class'],'withText':!0x0,'_action':_0x197949['action']})};_0x2c38cd[_0x1620('0x0')][_0x1620('0xf')]('isEnabled')['to'](_0x5bb3f8,_0x1620('0x13'),_0x4f7402=>'function'!=typeof _0x197949[_0x1620('0x2')]||(!_0x4f7402||_0x197949[_0x1620('0x2')](_0x5bb3f8))),_0x3b4eb5['add'](_0x2c38cd);}return _0x3b4eb5;}(_0x24ec9b,_0x293441);return _0x24ec9b[_0x1620('0xf')](_0x1620('0x13'))['to'](_0x1dd77e,_0x1620('0x3')),_0x1dd77e['buttonView'][_0x1620('0xc')]({'label':_0x24eb25(_0x4f997d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4d9739[_0x1620('0x15')]}),_0x1dd77e[_0x1620('0xb')]({'attributes':{'class':[_0x1620('0x18'),_0x4bbc93['if'](_0x1620('0x13'),_0x1620('0x1'))]},'on':{'click':_0x4bbc93['to'](_0x43e565=>_0x43e565[_0x1620('0x1c')]())}}),_0x1dd77e['on'](_0x1620('0x4'),_0x41dacb=>{_0x24ec9b[_0x1620('0xa')]&&_0x1620('0x19')==typeof _0x41dacb[_0x1620('0x1e')][_0x1620('0x6')]&&_0x41dacb[_0x1620('0x1e')]['_action'](_0x24ec9b);}),_0x23b4f7(_0x1dd77e,_0x164087),_0x1dd77e[_0x1620('0xe')](_0x24ec9b,'change:isActionsDropdownOpen',(_0x491807,_0x30f0de,_0x465c2e)=>{if(_0x465c2e)for(const _0x256b5c of _0x1dd77e[_0x1620('0x12')][_0x1620('0x9')]){const _0x5a0288=_0x256b5c['children']['first'],_0x3e8d25=_0x293441[_0x1620('0x1d')](_0x47c6cf=>_0x47c6cf[_0x1620('0x7')]===_0x5a0288[_0x1620('0x6')])['isVisible'];_0x256b5c[_0x1620('0x8')]=void 0x0===_0x3e8d25||_0x3e8d25(_0x24ec9b);}}),_0x1dd77e;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a74=['Revision\x20author','0\x200\x2011\x2010','set','push','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author_creator','name','span','ck-revision-history-sidebar__revision-author'];(function(_0x469b41,_0x1a7415){const _0x5aef7d=function(_0x537a5f){while(--_0x537a5f){_0x469b41['push'](_0x469b41['shift']());}};_0x5aef7d(++_0x1a7415);}(_0x1a74,0x18c));const _0x5aef=function(_0x469b41,_0x1a7415){_0x469b41=_0x469b41-0x0;let _0x5aef7d=_0x1a74[_0x469b41];return _0x5aef7d;};import{View as _0x5f52a7,IconView as _0x58ee46}from'ckeditor5/src/ui';import{getTranslation as _0x12cc07}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x53b526 from'../../../theme/icons/user.svg';export default class ti extends _0x5f52a7{constructor(_0x4d6598,_0x577be7,_0x9a812a){super(_0x4d6598);const _0x18f446=new _0x58ee46();_0x18f446[_0x5aef('0x2')]({'content':_0x53b526,'viewBox':_0x5aef('0x1')});const _0x427aa0=['ck',_0x5aef('0x8')];_0x9a812a&&_0x427aa0[_0x5aef('0x3')](_0x5aef('0x5'));const _0x1c0303=[{'tag':_0x5aef('0x7'),'attributes':{'class':['ck',_0x5aef('0x4')],'title':_0x12cc07(_0x4d6598,_0x9a812a?'Revision\x20creator':_0x5aef('0x0'))},'children':[_0x18f446,_0x577be7[_0x5aef('0x6')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x427aa0},'children':_0x1c0303});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4083=['set','Revision\x20name','span'];(function(_0x395ef5,_0x408325){var _0x380dd8=function(_0x5d629c){while(--_0x5d629c){_0x395ef5['push'](_0x395ef5['shift']());}};_0x380dd8(++_0x408325);}(_0x4083,0x155));var _0x380d=function(_0x395ef5,_0x408325){_0x395ef5=_0x395ef5-0x0;var _0x380dd8=_0x4083[_0x395ef5];return _0x380dd8;};import{LabeledFieldView as _0x5bdff6}from'ckeditor5/src/ui';import{getTranslation as _0x54f227}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x5bdff6{constructor(_0x4d8d42,_0x380d87){super(_0x4d8d42,_0x380d87),this[_0x380d('0x1')]({'label':_0x54f227(_0x4d8d42,_0x380d('0x2'))}),this['extendTemplate']({'tag':_0x380d('0x0'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a7e=['listenTo','isEnabled','change','isReady','ck-revision-history-sidebar__revision_highlighted','div','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','from','isHighlighted','render','220','element','unshift','ck-revision-history-sidebar__revision_selected','value','authors','length','setName','bindTemplate','extendTemplate','name','map','creator','revisionNameView','ck-revision-history-sidebar__actions_dropdown_open','ck-reset','createdAt','setTemplate','ck-revision-history-sidebar__revision-wrapper','revisionActionsView','placeholder','ck-revision-history-sidebar__revision','_revision','ck-revision-history-sidebar__revision__controls-wrapper','isSelected','fieldView','highlight','.ck-thread__remove-confirm','_createdAtFormatted','set','filter','ck-revision-history-sidebar__revision__date','fire','deselect','uiLanguage','bind','isActionsDropdownOpen'];(function(_0x2b839c,_0x1a7e4e){const _0x4e211c=function(_0x13afc8){while(--_0x13afc8){_0x2b839c['push'](_0x2b839c['shift']());}};_0x4e211c(++_0x1a7e4e);}(_0x1a7e,0x11a));const _0x4e21=function(_0x2b839c,_0x1a7e4e){_0x2b839c=_0x2b839c-0x0;let _0x4e211c=_0x1a7e[_0x2b839c];return _0x4e211c;};import{View as _0x264d47,createLabeledInputText as _0x96555b}from'ckeditor5/src/ui';import{ConfirmMixin as _0x37bcbe}from'ckeditor5-collaboration/src/collaboration-core';import _0x563004 from'./revisionnameview';import _0x1c970a from'./revisionauthorview';import{dateToPrettyFormat as _0x2f42f2}from'./utils';import{createActionsDropdownView as _0x4d6177}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x37bcbe(_0x264d47){constructor(_0x12e7ff,_0x30b36b,_0x1ae7ad){super(_0x12e7ff);const _0x2ae2cb=this[_0x4e21('0x12')],_0x3054c3=function(_0x435c38,_0x1e4ed3){const _0x56f0f7=Array[_0x4e21('0x7')](_0x1e4ed3[_0x4e21('0xf')])[_0x4e21('0x28')](_0x67aa1=>_0x67aa1!=_0x1e4ed3[_0x4e21('0x16')]);return _0x1e4ed3[_0x4e21('0x16')]&&_0x56f0f7[_0x4e21('0xc')](_0x1e4ed3[_0x4e21('0x16')]),_0x56f0f7[_0x4e21('0x15')](_0x308993=>new _0x1c970a(_0x435c38,_0x308993,_0x308993==_0x1e4ed3[_0x4e21('0x16')]));}(_0x12e7ff,_0x30b36b);this['id']=_0x30b36b['id'],this[_0x4e21('0x20')]=_0x30b36b,this[_0x4e21('0x2d')](_0x4e21('0x14'),_0x4e21('0x1a'))['to'](_0x30b36b),this[_0x4e21('0x2d')](_0x4e21('0x26'))['to'](this,_0x4e21('0x1a'),_0x53eadc=>_0x53eadc?_0x2f42f2(_0x12e7ff[_0x4e21('0x2c')],_0x53eadc):void 0x0),this[_0x4e21('0x27')](_0x4e21('0x22'),!0x1),this[_0x4e21('0x27')](_0x4e21('0x8'),!0x1),this[_0x4e21('0x27')](_0x4e21('0x2e'),!0x1),this[_0x4e21('0x27')](_0x4e21('0x3'),!0x1),this[_0x4e21('0x27')](_0x4e21('0x1'),!0x1),this[_0x4e21('0x17')]=new _0x563004(_0x12e7ff,_0x96555b),this[_0x4e21('0x17')]['fieldView'][_0x4e21('0x13')]({'attributes':{'maxlength':_0x4e21('0xa')}}),this['revisionNameView'][_0x4e21('0x23')]['bind'](_0x4e21('0xe'),_0x4e21('0x1e'))['to'](this,'name',_0x4e21('0x26')),this[_0x4e21('0x17')][_0x4e21('0x2d')](_0x4e21('0x1'))['to'](this,_0x4e21('0x22'),this,_0x4e21('0x1'),(_0x2dec49,_0x3d2ff3)=>_0x2dec49&&_0x3d2ff3),this[_0x4e21('0x1d')]=_0x1ae7ad&&_0x1ae7ad[_0x4e21('0x10')]?_0x4d6177(this,_0x1ae7ad):'',this[_0x4e21('0x1d')]&&this[_0x4e21('0x1d')][_0x4e21('0x2d')]('isEnabled')['to'](this),this[_0x4e21('0x1b')]({'tag':'div','attributes':{'class':['ck',_0x4e21('0x19'),_0x4e21('0x1c'),_0x2ae2cb['if']('isConfirm',_0x4e21('0x6'))]},'children':[{'tag':_0x4e21('0x5'),'attributes':{'class':['ck',_0x4e21('0x19'),_0x4e21('0x1f'),_0x2ae2cb['if']('isEnabled','ck-disabled',_0x118068=>!_0x118068),_0x2ae2cb['if'](_0x4e21('0x22'),_0x4e21('0xd')),_0x2ae2cb['if'](_0x4e21('0x8'),_0x4e21('0x4')),_0x2ae2cb['if']('isActionsDropdownOpen',_0x4e21('0x18'))]},'children':[this[_0x4e21('0x17')],{'tag':'span','attributes':{'class':['ck',_0x4e21('0x29')]},'children':[{'text':_0x2ae2cb['to'](_0x4e21('0x26'))}]},{'tag':_0x4e21('0x5'),'attributes':{'class':['ck',_0x4e21('0x21')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x3054c3}]},this['revisionActionsView']],'on':{'click':_0x2ae2cb['to'](_0x19707=>{_0x19707['srcElement']['closest'](_0x4e21('0x25'))||this[_0x4e21('0x3')]&&this[_0x4e21('0x1')]&&this[_0x4e21('0x2a')]('select',{'id':this['id']});})}}]});}[_0x4e21('0x9')](){super[_0x4e21('0x9')]();const _0x4ac86b=this['revisionNameView'][_0x4e21('0x23')][_0x4e21('0xb')];this[_0x4e21('0x0')](_0x4ac86b,_0x4e21('0x2'),()=>{this['fire'](_0x4e21('0x11'),{'id':this['id'],'name':_0x4ac86b[_0x4e21('0xe')]});});}['select'](){this[_0x4e21('0x22')]=!0x0;}[_0x4e21('0x2b')](){this[_0x4e21('0x22')]=!0x1;}[_0x4e21('0x24')](){this[_0x4e21('0x8')]=!0x0;}['unhighlight'](){this[_0x4e21('0x8')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ad1=['toggle','set','ck-hidden','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','false','_isCollapsed','click','bindTemplate','setTemplate','ck-revision-history-sidebar__subrevision-collapser','button','span'];(function(_0x46bd0b,_0x4ad13f){const _0x105713=function(_0x5de8c6){while(--_0x5de8c6){_0x46bd0b['push'](_0x46bd0b['shift']());}};_0x105713(++_0x4ad13f);}(_0x4ad1,0x18d));const _0x1057=function(_0x46bd0b,_0x4ad13f){_0x46bd0b=_0x46bd0b-0x0;let _0x105713=_0x4ad1[_0x46bd0b];return _0x105713;};import{View as _0x25111c}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x25111c{constructor(_0x1b7ba7){super(_0x1b7ba7);const _0x5cf214=this[_0x1057('0x4')];this[_0x1057('0xa')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1057('0x5')]({'tag':_0x1057('0x8'),'attributes':{'class':['ck',_0x1057('0x6'),_0x5cf214['if'](_0x1057('0xc'),_0x1057('0xb'),_0x488dcf=>!_0x488dcf),_0x5cf214['if'](_0x1057('0x2'),_0x1057('0x0'))],'role':_0x1057('0x7'),'aria-pressed':_0x5cf214['to'](_0x1057('0x2'),_0x155c1f=>_0x155c1f?_0x1057('0x1'):'true')},'children':[{'tag':_0x1057('0x8'),'attributes':{'class':['ck',_0x1057('0xd')]}}],'on':{'click':_0x5cf214['to'](_0x1057('0x3'))}});}[_0x1057('0x9')](){this[_0x1057('0x2')]=!this['_isCollapsed'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16d6=['bindTemplate','_createdAtFormatted','ck-revision-history-sidebar__revision-authors','_parentRevisionId','creator','span','ck-revision-history-sidebar__subrevision','deselect','setTemplate','isSelected','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','createdAt','div','bind','select','fire','ck-reset'];(function(_0x5d5324,_0x16d640){const _0x10ac06=function(_0x18c2b7){while(--_0x18c2b7){_0x5d5324['push'](_0x5d5324['shift']());}};_0x10ac06(++_0x16d640);}(_0x16d6,0x1ec));const _0x10ac=function(_0x5d5324,_0x16d640){_0x5d5324=_0x5d5324-0x0;let _0x10ac06=_0x16d6[_0x5d5324];return _0x10ac06;};import{View as _0x398a10}from'ckeditor5/src/ui';import _0x1ea04d from'./revisionauthorview';import{dateToPrettyFormat as _0x819e48}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x398a10{constructor(_0x1b8177,_0x3548a3,_0x7857bc){super(_0x1b8177);const _0xb25d6=this[_0x10ac('0xc')];this['id']=_0x3548a3['id'],this[_0x10ac('0x8')](_0x10ac('0x6'))['to'](_0x3548a3),this['set']('isSelected',!0x1),this[_0x10ac('0x8')]('_createdAtFormatted')['to'](this,_0x10ac('0x6'),_0x16bcf9=>_0x16bcf9?_0x819e48(_0x1b8177['uiLanguage'],_0x16bcf9):void 0x0),this[_0x10ac('0xf')]=_0x7857bc,this[_0x10ac('0x2')]({'tag':_0x10ac('0x7'),'attributes':{'class':['ck',_0x10ac('0xb'),_0x10ac('0x4'),_0x10ac('0x0'),_0xb25d6['if'](_0x10ac('0x3'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x10ac('0x11'),'attributes':{'class':['ck',_0x10ac('0x5')]},'children':[{'text':_0xb25d6['to'](_0x10ac('0xd'))}]},{'tag':'ul','attributes':{'class':['ck',_0x10ac('0xe')]},'children':[new _0x1ea04d(_0x1b8177,_0x3548a3[_0x10ac('0x10')],!0x0)]}],'on':{'click':_0xb25d6['to'](this[_0x10ac('0x9')][_0x10ac('0x8')](this))}});}[_0x10ac('0x9')](){this[_0x10ac('0x3')]=!0x0,this[_0x10ac('0xa')](_0x10ac('0x9'),{'parentId':this['_parentRevisionId']});}[_0x10ac('0x1')](){this[_0x10ac('0x3')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x32e1=['long','toLocaleTimeString','toLocaleDateString','numeric'];(function(_0x1ddf42,_0x32e1ce){var _0x145f90=function(_0x29560a){while(--_0x29560a){_0x1ddf42['push'](_0x1ddf42['shift']());}};_0x145f90(++_0x32e1ce);}(_0x32e1,0xe1));var _0x145f=function(_0x1ddf42,_0x32e1ce){_0x1ddf42=_0x1ddf42-0x0;var _0x145f90=_0x32e1[_0x1ddf42];return _0x145f90;};export function dateToPrettyFormat(_0x4c50d6,_0x39120f){return _0x39120f[_0x145f('0x1')](_0x4c50d6,{'month':_0x145f('0x3'),'day':_0x145f('0x2')})+',\x20'+_0x39120f[_0x145f('0x0')](_0x4c50d6,{'hour':_0x145f('0x2'),'minute':_0x145f('0x2')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e42=['_createButton','cancel','saveButtonView','ck-responsive-form','forEach','ck-button-save','arrowleft','form','_createRevisionNameInput','revisionName','listenTo','fieldView','ck-revision-history-save-revision-form','revisionNameInputView','trim','arrowup','focus','shift\x20+\x20tab','add','locale','cancelButtonView','value','_focusables','keystrokes','stopPropagation','execute','render','label','submit','arrowright','Cancel','setTemplate','extendTemplate','reset','focusTracker','type','tab','ck-button-cancel','element','arrowdown','set'];(function(_0x74a7d5,_0x1e428c){const _0x4ffde1=function(_0xec59fc){while(--_0xec59fc){_0x74a7d5['push'](_0x74a7d5['shift']());}};_0x4ffde1(++_0x1e428c);}(_0x1e42,0x82));const _0x4ffd=function(_0x74a7d5,_0x1e428c){_0x74a7d5=_0x74a7d5-0x0;let _0x4ffde1=_0x1e42[_0x74a7d5];return _0x4ffde1;};import{icons as _0x1ba678}from'ckeditor5/src/core';import{ButtonView as _0x2abf24,FocusCycler as _0x1a6148,LabeledFieldView as _0x706d85,View as _0x326fec,ViewCollection as _0x3091ae,createLabeledInputText as _0x82fb,injectCssTransitionDisabler as _0x4b9f24,submitHandler as _0x35074b}from'ckeditor5/src/ui';import{FocusTracker as _0x3b7ea9,KeystrokeHandler as _0x13761e}from'ckeditor5/src/utils';import{getTranslation as _0x5c1958}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x326fec{constructor(_0x253e13){super(_0x253e13),this[_0x4ffd('0x1b')]=new _0x3b7ea9(),this[_0x4ffd('0x10')]=new _0x13761e(),this[_0x4ffd('0x21')]('revisionNameInputValue',''),this[_0x4ffd('0x6')]=this[_0x4ffd('0x1')](),this[_0x4ffd('0x24')]=this[_0x4ffd('0x22')](_0x5c1958(_0x253e13,'Save'),_0x1ba678['check'],_0x4ffd('0x27')),this['saveButtonView'][_0x4ffd('0x1c')]=_0x4ffd('0x15'),this[_0x4ffd('0xd')]=this[_0x4ffd('0x22')](_0x5c1958(_0x253e13,_0x4ffd('0x17')),_0x1ba678[_0x4ffd('0x23')],_0x4ffd('0x1e'),'cancel'),this['_focusables']=new _0x3091ae(),this['_focusCycler']=new _0x1a6148({'focusables':this[_0x4ffd('0xf')],'focusTracker':this[_0x4ffd('0x1b')],'keystrokeHandler':this[_0x4ffd('0x10')],'actions':{'focusPrevious':_0x4ffd('0xa'),'focusNext':_0x4ffd('0x1d')}}),this[_0x4ffd('0x18')]({'tag':_0x4ffd('0x0'),'attributes':{'class':['ck',_0x4ffd('0x5'),_0x4ffd('0x25')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this[_0x4ffd('0xd')]]}),_0x4b9f24(this);}['render'](){super[_0x4ffd('0x13')](),_0x35074b({'view':this}),([this[_0x4ffd('0x6')],this[_0x4ffd('0x24')],this['cancelButtonView']][_0x4ffd('0x26')](_0x379d6a=>{this[_0x4ffd('0xf')][_0x4ffd('0xb')](_0x379d6a),this[_0x4ffd('0x1b')]['add'](_0x379d6a[_0x4ffd('0x1f')]);}),this[_0x4ffd('0x10')][_0x4ffd('0x3')](this[_0x4ffd('0x1f')]));const _0x10f783=_0x2081d8=>_0x2081d8[_0x4ffd('0x11')]();this[_0x4ffd('0x10')]['set'](_0x4ffd('0x16'),_0x10f783),this[_0x4ffd('0x10')][_0x4ffd('0x21')](_0x4ffd('0x28'),_0x10f783),this['keystrokes'][_0x4ffd('0x21')](_0x4ffd('0x8'),_0x10f783),this[_0x4ffd('0x10')][_0x4ffd('0x21')](_0x4ffd('0x20'),_0x10f783);}[_0x4ffd('0x9')](){this['_focusCycler']['focusFirst']();}get[_0x4ffd('0x2')](){return this[_0x4ffd('0x6')][_0x4ffd('0x4')][_0x4ffd('0x1f')]['value'][_0x4ffd('0x7')]();}set[_0x4ffd('0x2')](_0x57d5aa){this[_0x4ffd('0x6')][_0x4ffd('0x4')]['element'][_0x4ffd('0xe')]=_0x57d5aa[_0x4ffd('0x7')]();}[_0x4ffd('0x1a')](){this[_0x4ffd('0x6')]['fieldView'][_0x4ffd('0x1f')]['value']='';}[_0x4ffd('0x1')](){const _0x6ad44f=new _0x706d85(this['locale'],_0x82fb),_0x4a0cb2=_0x6ad44f[_0x4ffd('0x4')];return _0x4a0cb2['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x6ad44f[_0x4ffd('0x14')]=_0x5c1958(this[_0x4ffd('0xc')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x4a0cb2['on']('input',()=>{this['revisionNameInputValue']=_0x4a0cb2[_0x4ffd('0x1f')][_0x4ffd('0xe')][_0x4ffd('0x7')]();}),_0x6ad44f;}[_0x4ffd('0x22')](_0x2a8435,_0x39eb21,_0x4a03a2,_0x4aacaf){const _0x280aa5=new _0x2abf24(this['locale']);return _0x280aa5['set']({'label':_0x2a8435,'icon':_0x39eb21,'tooltip':!0x0}),_0x280aa5[_0x4ffd('0x19')]({'attributes':{'class':_0x4a03a2}}),_0x4aacaf&&_0x280aa5['delegate'](_0x4ffd('0x12'))['to'](this,_0x4aacaf),_0x280aa5;}}
|