@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231011.0 → 0.0.0-nightly-20231012.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 _0x2ffa=['_step','_makeModelFromTape','markerToData','element:pre','revisionHistoryAttachChange','getAttributes','reconvertMarker','isContent','startIndex','left','getRevisionRootsAttributes','level','all','processor','consumable','isAtEnd','startsWith','object','isAfter','_getViewObj','previousPosition','index','mapper','_refreshStartEndIndex','data','string','setAttribute','data-revision-','markerToHighlight','test','type','revision-suggestion','has','adapter','_threeWayMerge','isAtStart','ck-revision-history-root-add','insert','_markMarkers','addRoot','locale','distance','_findChangeIdFromDomTarget','revision-comment:','isReady','pluginName','collaboration.channelId','merge','getRevision','markersStart','parent','mousedown','parse','restoreRevision','ck-suggestion-marker','activeChange','currentChangeNumber','consume','revision','activeView','pop','-new','endIndex','_joinTapes','markers','findIndex','error','hasAttribute','change:numberOfChanges','done','createRangeIn','addHighlight','isEqual','revision-start','_getDiff','enableReadOnlyMode','deletions','_setDistance','catch','slice','config','diffData','domConverter','vid','useFillerType','split','getClientRects','revisionHistory','offsetSize','editingDowncast','checkAttribute','end','_removeUnsupportedChanges','_getViewForChange','concat','changeId','toViewPosition','revision:','_getRevisionsRange','splice','restoreRevisionCallback','for','editing','vid_end','toModel','return','get','_initInteractions','isAdded','high','observeMarkers','add','dataToMarker','attributesAfter','selection','flat','showNextChange','_activeViewTarget','_cleanMarkers','getItems','getWalker','requires','change:isReady','createRange','isEnabled','compare','_update','getDomRoot','pairId','_setChanges','backward','push','toData','document','_balloon','attributes','isCollapsed','POSITIVE_INFINITY','bottom','roots','hasClass','_removeMissingPairs','marked','length','_makeModelFromViewString','loadRevisionData','getIndex','element','maxOffset','addMarker:revision','insertion','downcastDispatcher','isRemoved','_appendChild','showPreviousChange','map','addClass','keys','execute','code','init','markerRange','default','isRemoveSuggestion','low','isOnRoot','then','conversion','_markMismatchedRemovedTags','filter','includes','getRoot','suggestion:','text','resolve','children','start','forEach','viewItem','_data','item','_markSuggestions','isSuggestion','_changeIdToChange','WidgetToolbarRepository','delete','writer','elementEnd','wrap','removeClass','updatePosition','refresh','_changeView','remove','shift','insertions','_cleanUp','addMarker:revision-suggestion:deletion','destroy','revisionHistoryLabel','revision-end','ck-revision-history-root-','revision-viewer','isBefore','vid_start','change:activeChange','unshift','_sortAndFilterDiffChanges','modelRange','target','enqueueChange','changes','addRevision','deletion','isLimit','right','find','createAttributeElement','repository','createUIElement','from','ck-suggestion-marker-merge','top','createRevision','detachRoot','change','ck-suggestion-marker--active','forward','_revisions','bindElementToMarker','upcast','uiElement','markerNameToElements','_processTape','suggestion','bind','_markInsertions','ck-suggestion-preview-marker','side','markerName','plugins','ck-suggestion-preview-marker-','oldRevisionId','nextSibling','schema','affectsData','set','change:activeView','change:isEnabled','next','mapViewToDom','indexOf','numberOfChanges','_setConversion','isIncorrect','domEvent','isBlock','getCustomProperty','sort','newRevisionId','listenTo','revision-suggestion:','span','attachChange','userId','view','model','editor','toViewRange','_getChangeFromId','_fixObsoleteTags','markersEnd','rootName','ck-suggestion-marker-','getRootNames','commands','ck-editor__editable__overlay','isAddSuggestion','isAttached','name','dataDowncast','stop','getAttribute','removeMarker:revision','nextPosition','diff','highest','_removeRevisionMarkers','data-change-id','mouseover','ck-revision-history-root--active','elementStart','createPositionFromPath'];(function(_0x1f5628,_0x2ffadf){const _0x2af5d3=function(_0x3301d7){while(--_0x3301d7){_0x1f5628['push'](_0x1f5628['shift']());}};_0x2af5d3(++_0x2ffadf);}(_0x2ffa,0xe7));const _0x2af5=function(_0x1f5628,_0x2ffadf){_0x1f5628=_0x1f5628-0x0;let _0x2af5d3=_0x2ffa[_0x1f5628];return _0x2af5d3;};import{Plugin as _0x2486a4,Command as _0x3a55c2}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5686ab}from'ckeditor5/src/utils';import{ContextualBalloon as _0x509c5a}from'ckeditor5/src/ui';import{DocumentFragment as _0x78ee8d,Element as _0x39553c,Text as _0x4662a3,ViewDocumentFragment as _0x41f13b,ViewText as _0x5d2d12,ViewElement as _0x4f8406,ViewContainerElement as _0x465596,ViewAttributeElement as _0x328460,ViewEmptyElement as _0xf0a9,ViewRawElement as _0x29c65a,ViewUIElement as _0x3c2db0}from'ckeditor5/src/engine';import{Users as _0x4475ca,getMarkerDomElement as _0x324c3d}from'ckeditor5-collaboration/src/collaboration-core';import _0x52ad46 from'./ui/revisionviewer/changedetailsview';import _0x569230 from'./revisionsrepository';import _0x35673c from'./changeitem';import{default as _0x147585}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0xda6787}from'lodash-es';const tt={'c':_0x465596,'a':_0x328460,'e':_0xf0a9,'r':_0x29c65a,'u':_0x3c2db0};export default class d extends _0x2486a4{static get[_0x2af5('0x6b')](){return'RevisionViewer';}static get[_0x2af5('0xb7')](){return[_0x4475ca,_0x509c5a,_0x569230];}constructor(_0x4b5924){super(_0x4b5924),this[_0x2af5('0x118')]=this['editor'][_0x2af5('0x9')][_0x2af5('0xa8')]('RevisionsRepository'),this[_0x2af5('0xf')](_0x2af5('0x75'),null),this[_0x2af5('0xf')](_0x2af5('0x79'),null),this['_activeViewTarget']=null,this[_0x2af5('0xf')]('diff',null),this[_0x2af5('0xf')](_0x2af5('0x6a'),!0x1),this[_0x2af5('0xf')](_0x2af5('0xba'),!0x0),this['on'](_0x2af5('0x11'),(_0x2ed70f,_0x336659,_0x1cb42f)=>{this[_0x2af5('0x75')]=null,this[_0x2af5('0x79')]=null,this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0x22')][_0x2af5('0x11f')](_0x1b364e=>{for(const _0x43074c of this[_0x2af5('0x24')][_0x2af5('0xa4')]['view'][_0x2af5('0xc3')][_0x2af5('0xc9')])_0x1cb42f?_0x1b364e[_0x2af5('0xfb')](_0x2af5('0x2d'),_0x43074c):_0x1b364e['addClass'](_0x2af5('0x2d'),_0x43074c);});}),this[_0x2af5('0x4')]('isNavigationMode')['to'](this,_0x2af5('0x75'),_0x9373af=>null!==_0x9373af),this[_0x2af5('0x4')](_0x2af5('0x76'))['to'](this,'isReady',this,_0x2af5('0x36'),this,_0x2af5('0x75'),(_0x4d1259,_0x49d0cc,_0x108588)=>_0x4d1259&&_0x108588?_0x49d0cc[_0x2af5('0x111')][_0x2af5('0xd0')](_0x108588):0x0),this['bind'](_0x2af5('0x15'))['to'](this,'isReady',this,_0x2af5('0x36'),(_0x1d6757,_0x304499)=>_0x1d6757?_0x304499['changes']['length']:0x0),this[_0x2af5('0xfe')]=null,this[_0x2af5('0xf5')]=new Map(),this['adapter']=null,this[_0x2af5('0xc4')]=this[_0x2af5('0x24')]['plugins'][_0x2af5('0xa8')](_0x509c5a);}[_0x2af5('0xde')](){const _0x9753df=this[_0x2af5('0x24')],_0x17be39=new ShowChangeCommand(_0x9753df,{'direction':_0x2af5('0xc0')}),_0x38f773=new ShowChangeCommand(_0x9753df,{'direction':'forward'});(_0x9753df[_0x2af5('0x2c')][_0x2af5('0xad')](_0x2af5('0xd8'),_0x17be39),_0x9753df[_0x2af5('0x2c')]['add'](_0x2af5('0xb2'),_0x38f773),_0x9753df[_0x2af5('0x2c')]['add'](_0x2af5('0x73'),new RestoreRevisionCommand(_0x9753df)),this['on'](_0x2af5('0x82'),()=>{_0x17be39[_0x2af5('0xfd')](),_0x38f773[_0x2af5('0xfd')]();}),this[_0x2af5('0x16')](),this[_0x2af5('0xa9')](),_0x9753df[_0x2af5('0x89')]('revision-viewer'),_0x9753df['plugins'][_0x2af5('0x5e')](_0x2af5('0xf6')))&&_0x9753df[_0x2af5('0x9')]['get']('WidgetToolbarRepository')['forceDisabled'](_0x2af5('0x108'));}async['getRevisionData'](_0x3740e0){await this['loadRevisionData'](_0x3740e0);const _0x4b5b31={};for(const _0x30a2d2 in _0x3740e0[_0x2af5('0x8f')]){if(_0x3740e0[_0x2af5('0x8f')][_0x30a2d2]['attachChange']&&!_0x3740e0['diffData'][_0x30a2d2]['attachChange']['isAttached'])continue;const _0x25c697=this['_removeRevisionMarkers'](JSON['parse'](_0x3740e0['diffData'][_0x30a2d2][_0x2af5('0x101')])),_0x29666e=this[_0x2af5('0x24')]['editing'][_0x2af5('0x22')][_0x2af5('0xc3')],_0x374ee6=new _0x41f13b(_0x29666e,_0x25c697[_0x2af5('0xd9')](_0x440434=>this[_0x2af5('0x51')](_0x440434)));this[_0x2af5('0x24')][_0x2af5('0x56')][_0x2af5('0x4b')][_0x2af5('0x92')](_0x2af5('0xcc')),_0x4b5b31[_0x30a2d2]=this[_0x2af5('0x24')][_0x2af5('0x56')]['processor'][_0x2af5('0xc2')](_0x374ee6),this[_0x2af5('0x24')][_0x2af5('0x56')][_0x2af5('0x4b')][_0x2af5('0x92')](_0x2af5('0xe0'));}return _0x4b5b31;}async[_0x2af5('0x48')](_0xa8d974){await this[_0x2af5('0xcf')](_0xa8d974);const _0x10970b={};for(const _0x183f84 in _0xa8d974['diffData'])_0xa8d974[_0x2af5('0x8f')][_0x183f84][_0x2af5('0x20')]&&!_0xa8d974[_0x2af5('0x8f')][_0x183f84][_0x2af5('0x20')][_0x2af5('0x2f')]||(_0x10970b[_0x183f84]=_0xa8d974[_0x2af5('0x8f')][_0x183f84][_0x2af5('0xaf')]||{});return _0x10970b;}[_0x2af5('0x38')](_0x435903){return(_0x435903=_0x435903['filter'](_0xdb8d27=>!_0xdb8d27[_0x2af5('0x30')]||_0x2af5('0x87')!==_0xdb8d27[_0x2af5('0x30')]&&_0x2af5('0x106')!==_0xdb8d27[_0x2af5('0x30')]))[_0x2af5('0xef')](_0x320e5f=>{'string'!=typeof _0x320e5f&&(_0x320e5f[_0x2af5('0xed')]=this[_0x2af5('0x38')](_0x320e5f[_0x2af5('0xed')]),_0x320e5f[_0x2af5('0xc5')]=_0x320e5f[_0x2af5('0xc5')][_0x2af5('0xe7')](_0x161b5c=>!_0x161b5c[0x0]['startsWith'](_0x2af5('0x59'))));}),_0x435903;}async[_0x2af5('0xbb')](_0x4fc3e7,_0x5aa4a4,_0x2e6abd=!0x1){if(!this[_0x2af5('0xba')])return;const _0x584f2e=this[_0x2af5('0x36')],_0x35c07e=this[_0x2af5('0x118')],_0x5e027c=_0x2af5('0x57')==typeof _0x4fc3e7?_0x35c07e[_0x2af5('0x6e')](_0x4fc3e7):_0x4fc3e7,_0x212456=_0x2af5('0x57')==typeof _0x5aa4a4?_0x35c07e[_0x2af5('0x6e')](_0x5aa4a4):_0x5aa4a4,_0x581c91=_0x5e027c['id'],_0x5e3cef=_0x212456?_0x212456['id']:null;if(!_0x2e6abd&&this[_0x2af5('0x36')]&&this[_0x2af5('0x36')][_0x2af5('0x1c')]===_0x581c91&&this[_0x2af5('0x36')][_0x2af5('0xb')]===_0x5e3cef)return Promise[_0x2af5('0xec')]();this['isReady']=!0x1,this[_0x2af5('0x79')]=null,this[_0x2af5('0x75')]=null,this['diff']=new _0x147585(_0x581c91,_0x5e3cef);const _0x378a83=this[_0x2af5('0xa0')](_0x5e027c,_0x212456,!0x0)['map'](_0x34ee75=>this[_0x2af5('0xcf')](_0x34ee75));return _0x378a83[_0x2af5('0xc1')](new Promise(_0x409d7d=>{setTimeout(_0x409d7d,0x14);})),Promise[_0x2af5('0x4a')](_0x378a83)[_0x2af5('0xe4')](()=>{if(!this[_0x2af5('0xba')])return;this['_cleanUp']();const _0x4989c7=this[_0x2af5('0x88')](_0x581c91,_0x5e3cef);for(const _0x3a6cac of _0x4989c7[_0x2af5('0x111')])this[_0x2af5('0xf5')][_0x2af5('0xf')](_0x3a6cac['id'],_0x3a6cac);this[_0x2af5('0x24')]['model'][_0x2af5('0x110')]({'isUndoable':!0x1},_0x38f258=>{for(const _0x3c6574 of this['editor'][_0x2af5('0x23')]['document'][_0x2af5('0x2b')]())_0x38f258[_0x2af5('0x11e')](_0x3c6574);for(const _0x4a2f96 of Object[_0x2af5('0xdb')](_0x4989c7[_0x2af5('0x23')])){const _0x3aa4c8=_0x38f258[_0x2af5('0x65')](_0x4a2f96);for(const _0x4f2e39 of Object[_0x2af5('0xdb')](_0x4989c7[_0x2af5('0xc5')][_0x4a2f96]))_0x38f258[_0x2af5('0x58')](_0x4f2e39,_0x4989c7['attributes'][_0x4a2f96][_0x4f2e39],_0x3aa4c8);_0x38f258[_0x2af5('0x63')](_0x4989c7['model'][_0x4a2f96],_0x3aa4c8,0x0);}}),this[_0x2af5('0x36')][_0x2af5('0xbf')](this[_0x2af5('0x10d')](_0x4989c7[_0x2af5('0x111')])),this[_0x2af5('0x6a')]=!0x0;})[_0x2af5('0x8c')](_0x2c62ee=>{console[_0x2af5('0x80')](_0x2c62ee),this[_0x2af5('0x102')](),_0x584f2e&&(this[_0x2af5('0x36')]=_0x584f2e),this['isReady']=!0x0;});}['addRevisionData'](_0x2a0450,_0x2ab4e8){const _0x2bea68=this[_0x2af5('0x118')][_0x2af5('0x11d')](_0x2a0450);return _0x2bea68['on'](_0x2af5('0xbc'),(_0x43b4b9,_0xdb3582,_0x3cffad)=>_0x2ab4e8(_0xdb3582,_0x3cffad,_0x2bea68)),this['repository'][_0x2af5('0x112')](_0x2bea68),_0x2bea68;}[_0x2af5('0xcf')](_0x140b61){if(!_0x140b61||_0x140b61['diffData'])return Promise[_0x2af5('0xec')]();{const _0x16b9d5=this[_0x2af5('0x24')]['config'][_0x2af5('0xa8')](_0x2af5('0x6c'));return this[_0x2af5('0x5f')][_0x2af5('0x6e')]({'channelId':_0x16b9d5,'revisionId':_0x140b61['id']})[_0x2af5('0xe4')](_0x2d3646=>{_0x140b61[_0x2af5('0xbc')]({'diffData':_0x2d3646[_0x2af5('0x8f')]},!0x0);});}}[_0x2af5('0x102')](){this['activeChange']=null,this[_0x2af5('0xb4')](),this[_0x2af5('0xfe')]&&this[_0x2af5('0xfe')]['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0x110')]({'isUndoable':!0x1},_0x354d48=>{for(const _0xf2f51c of this[_0x2af5('0x24')]['model'][_0x2af5('0xc3')][_0x2af5('0x2b')]())_0x354d48[_0x2af5('0x11e')](_0xf2f51c);});}[_0x2af5('0x10d')](_0x250bed){const _0x6dae79=[],_0x3b9935=new Map();for(const _0x178cf1 of this['editor'][_0x2af5('0x23')][_0x2af5('0xc3')]['getRootNames']()){const _0x521f84=this[_0x2af5('0x24')][_0x2af5('0xa4')]['view'][_0x2af5('0xbd')](_0x178cf1);if(!_0x521f84)continue;const _0x509cab=_0x521f84['getClientRects']()['item'](0x0);_0x509cab&&(_0x6dae79[_0x2af5('0xc1')](_0x178cf1),_0x3b9935[_0x2af5('0xf')](_0x178cf1,_0x509cab));}return _0x6dae79[_0x2af5('0x1b')]((_0x388579,_0x143020)=>{const _0x15e149=_0x3b9935[_0x2af5('0xa8')](_0x388579),_0x293795=_0x3b9935[_0x2af5('0xa8')](_0x143020);return _0x15e149['y']-_0x293795['y']||_0x15e149['x']-_0x293795['x'];}),(_0x250bed=_0x250bed[_0x2af5('0xe7')](_0x2427c4=>_0x6dae79[_0x2af5('0xe8')](_0x2427c4[_0x2af5('0x29')])))[_0x2af5('0x1b')]((_0x1129b3,_0x24b201)=>_0x6dae79[_0x2af5('0x14')](_0x1129b3['rootName'])-_0x6dae79[_0x2af5('0x14')](_0x24b201[_0x2af5('0x29')])),_0x250bed;}['_makeTape'](_0x1d4215){const _0x49bb31=Array[_0x2af5('0x11a')](_0x1d4215[_0x2af5('0x7e')])[_0x2af5('0xe7')](([_0x244331,_0x57c289])=>_0x244331[_0x2af5('0x4e')](_0x2af5('0x9f'))&&!_0x57c289[_0x2af5('0xc6')]),_0x7f8b0=Array[_0x2af5('0x11a')](this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0x84')](_0x1d4215)[_0x2af5('0xb6')]({'singleCharacters':!0x0}));if(0x0!=_0x49bb31[_0x2af5('0xcd')])for(const _0x45fea7 of _0x7f8b0){const [_0x536993,_0x28d17c]=_0x49bb31[0x0],[,_0x2e6d9a,_0x497b83]=_0x536993[_0x2af5('0x93')](':');if(_0x28d17c[_0x2af5('0x99')][_0x2af5('0x86')](_0x45fea7['nextPosition'])&&_0x49bb31[_0x2af5('0x100')](),(_0x45fea7[_0x2af5('0x52')][_0x2af5('0x86')](_0x28d17c['start'])||_0x45fea7[_0x2af5('0x52')][_0x2af5('0x50')](_0x28d17c[_0x2af5('0xee')]))&&(_0x2af5('0xd4')==_0x2e6d9a?_0x45fea7[_0x2af5('0xaa')]={'userId':_0x497b83}:'deletion'==_0x2e6d9a&&(_0x45fea7[_0x2af5('0xd6')]={'userId':_0x497b83})),0x0==_0x49bb31['length'])break;}return _0x7f8b0;}['_refreshStartEndIndex'](_0x58f18c){const _0x15471f=new Map();for(let _0x2bfe45=0x0;_0x2bfe45<_0x58f18c[_0x2af5('0xcd')];_0x2bfe45++)_0x2af5('0xeb')===_0x58f18c[_0x2bfe45][_0x2af5('0x5c')]?(_0x58f18c[_0x2bfe45][_0x2af5('0xf2')][_0x2af5('0x46')]=_0x2bfe45,_0x58f18c[_0x2bfe45][_0x2af5('0xf2')][_0x2af5('0x7c')]=_0x2bfe45):('elementStart'===_0x58f18c[_0x2bfe45][_0x2af5('0x5c')]?_0x58f18c[_0x2bfe45][_0x2af5('0xf2')][_0x2af5('0x46')]=_0x2bfe45:_0x2af5('0xf9')===_0x58f18c[_0x2bfe45][_0x2af5('0x5c')]&&(_0x58f18c[_0x2bfe45]['item'][_0x2af5('0x7c')]=_0x2bfe45),_0x15471f[_0x2af5('0xf')](_0x58f18c[_0x2bfe45]['id'],_0x2bfe45));for(const _0x150727 of _0x15471f['values']())_0x2af5('0x3c')===_0x58f18c[_0x150727][_0x2af5('0x5c')]?_0x58f18c[_0x150727][_0x2af5('0xf2')][_0x2af5('0x7c')]=_0x15471f[_0x2af5('0xa8')](_0x58f18c[_0x150727]['pairId']):_0x2af5('0xf9')===_0x58f18c[_0x150727][_0x2af5('0x5c')]&&(_0x58f18c[_0x150727][_0x2af5('0xf2')][_0x2af5('0x46')]=_0x15471f[_0x2af5('0xa8')](_0x58f18c[_0x150727][_0x2af5('0xbe')]));}[_0x2af5('0x2')](_0x2ab2e6){for(let _0x34d0cd=0x0;_0x34d0cd<_0x2ab2e6[_0x2af5('0xcd')];_0x34d0cd++){if(_0x2af5('0x3c')===_0x2ab2e6[_0x34d0cd][_0x2af5('0x5c')])_0x2ab2e6[_0x34d0cd]['item']['startIndex']=_0x34d0cd;else{if(_0x2af5('0xf9')===_0x2ab2e6[_0x34d0cd][_0x2af5('0x5c')]){_0x2ab2e6[_0x34d0cd][_0x2af5('0xf2')][_0x2af5('0x7c')]=_0x34d0cd;const _0x30dfe0=_0x2ab2e6[_0x34d0cd][_0x2af5('0xf2')]['startIndex'];_0x2ab2e6[_0x30dfe0]['pairId']=_0x2ab2e6[_0x34d0cd]['id'],_0x2ab2e6[_0x34d0cd][_0x2af5('0xbe')]=_0x2ab2e6[_0x30dfe0]['id'];}else _0x2ab2e6[_0x34d0cd]['item']['startIndex']=_0x34d0cd,_0x2ab2e6[_0x34d0cd][_0x2af5('0xf2')][_0x2af5('0x7c')]=_0x34d0cd,_0x2ab2e6[_0x34d0cd][_0x2af5('0xbe')]=null;}_0x2ab2e6[_0x34d0cd][_0x2af5('0x6f')]||(_0x2ab2e6[_0x34d0cd][_0x2af5('0x6f')]=[],_0x2ab2e6[_0x34d0cd][_0x2af5('0x28')]=[]);}}['_markInsertions'](_0x2ec565,_0x342acc){const _0x3a056a=_0x2ec565[_0x2af5('0xe7')](_0x5d7988=>!_0x5d7988[_0x2af5('0xaa')]);for(let _0x410ed6=0x0;_0x410ed6<_0x342acc['length'];_0x410ed6++)_0x342acc[_0x410ed6]['isAdded']&&(_0x3a056a[_0x410ed6][_0x2af5('0xaa')]=_0x342acc[_0x410ed6][_0x2af5('0xaa')]);}[_0x2af5('0xce')](_0x324a98){const _0xe0aa27=JSON[_0x2af5('0x72')](_0x324a98),_0x1b8827=this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0x22')][_0x2af5('0xc3')],_0x56df88=new _0x41f13b(_0x1b8827,_0xe0aa27['map'](_0x25db2f=>this[_0x2af5('0x51')](_0x25db2f)));return this['editor'][_0x2af5('0x56')][_0x2af5('0xa6')](_0x56df88);}[_0x2af5('0x51')](_0x5b0c4a){const _0x2d67e0=this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0x22')][_0x2af5('0xc3')];if(_0x2af5('0x57')==typeof _0x5b0c4a)return new _0x5d2d12(_0x2d67e0,_0x5b0c4a);{const _0x3c38d3=_0x5b0c4a[_0x2af5('0xed')]['map'](_0x51b064=>this[_0x2af5('0x51')](_0x51b064));return new(tt[_0x5b0c4a['type']]||_0x4f8406)(_0x2d67e0,_0x5b0c4a[_0x2af5('0x30')],_0x5b0c4a[_0x2af5('0xc5')],_0x3c38d3);}}[_0x2af5('0x88')](_0x5a4676,_0x2ef787=null){const _0x24abc8=this[_0x2af5('0x118')][_0x2af5('0x6e')](_0x5a4676),_0x14ef80=_0x2ef787?this['repository']['getRevision'](_0x2ef787):null,_0x18b932=this['_getRevisionsRange'](_0x24abc8,_0x14ef80),_0x3a71b7=_0x18b932[_0x18b932['length']-0x1],_0x397109=new Map(),_0x329200={'model':{},'attributes':{},'changes':[]},_0x39ca06=new Set(),_0x456eb7=new Map();for(let _0x15a9aa=_0x18b932[_0x2af5('0xcd')]-0x1;_0x15a9aa>=0x0;_0x15a9aa--){const _0x1616fb=_0x18b932[_0x15a9aa];for(const _0x2d9fe7 of Object[_0x2af5('0xdb')](_0x1616fb[_0x2af5('0x8f')]))if(_0x1616fb[_0x2af5('0x8f')][_0x2d9fe7]['attachChange']){const _0x29a0b2=_0x1616fb[_0x2af5('0x8f')][_0x2d9fe7]['attachChange'];_0x29a0b2[_0x2af5('0x2f')]?(_0x39ca06[_0x2af5('0xad')](_0x2d9fe7),_0x456eb7[_0x2af5('0x5e')](_0x2d9fe7)&&_0x456eb7['get'](_0x2d9fe7)[_0x2af5('0x21')]==_0x29a0b2['userId']?_0x456eb7[_0x2af5('0xf7')](_0x2d9fe7):_0x456eb7['set'](_0x2d9fe7,_0x29a0b2)):_0x456eb7[_0x2af5('0x5e')](_0x2d9fe7)?(_0x39ca06[_0x2af5('0xf7')](_0x2d9fe7),_0x456eb7[_0x2af5('0xf7')](_0x2d9fe7)):(_0x39ca06[_0x2af5('0xad')](_0x2d9fe7),_0x456eb7[_0x2af5('0xf')](_0x2d9fe7,_0x29a0b2));}else _0x39ca06['add'](_0x2d9fe7);}for(const _0x422105 of _0x39ca06){const _0x5e5e19=_0x456eb7[_0x2af5('0x5e')](_0x422105)&&!_0x456eb7[_0x2af5('0xa8')](_0x422105)['isAttached'];let _0x58925a=_0x5e5e19?_0x18b932['length']-0x1:0x0;const _0x5d6fd1=_0x5e5e19?-0x1:0x1;for(;_0x18b932[_0x58925a];){const _0x4bc7ef=_0x18b932[_0x58925a];if(_0x4bc7ef[_0x2af5('0x8f')][_0x422105]){const _0x2bf7a5=_0x5e5e19?_0x4bc7ef[_0x2af5('0x8f')][_0x422105]['attributesBefore']:_0x4bc7ef[_0x2af5('0x8f')][_0x422105][_0x2af5('0xaf')];_0x329200['attributes'][_0x422105]=_0x2bf7a5?_0xda6787(_0x2bf7a5):{};break;}_0x58925a+=_0x5d6fd1;}}for(const _0x3a3146 of _0x18b932){_0x3a3146[_0x2af5('0x23')]={};for(const _0x42d1ee of _0x3a3146['authors'])_0x397109[_0x2af5('0xf')](_0x42d1ee['id'],_0x42d1ee);for(const _0x56dd3f of _0x39ca06){const _0xb21128=_0x3a3146[_0x2af5('0x8f')][_0x56dd3f]?_0x3a3146['diffData'][_0x56dd3f][_0x2af5('0x101')]:'[]',_0x2940e1=_0x3a3146['diffData'][_0x56dd3f]?_0x3a3146['diffData'][_0x56dd3f][_0x2af5('0x8a')]:'[]';_0x3a3146[_0x2af5('0x23')][_0x56dd3f]={'insertions':this[_0x2af5('0xce')](_0xb21128),'deletions':this[_0x2af5('0xce')](_0x2940e1)};}}for(const _0x947d16 of _0x39ca06){let _0x4265e1=null,_0x205c15=0x0;const _0x2b8019=new Map(Array[_0x2af5('0x11a')](_0x24abc8[_0x2af5('0x23')][_0x947d16][_0x2af5('0x101')][_0x2af5('0x7e')])[_0x2af5('0xe7')](([_0x2bd00d])=>!_0x2bd00d[_0x2af5('0x4e')](_0x2af5('0x9f'))));let _0x12defa=0x0;for(const _0x49b15e of _0x18b932){const _0x36722f=this['_makeTape'](_0x49b15e[_0x2af5('0x23')][_0x947d16]['insertions']);_0x49b15e==_0x24abc8?(_0x4265e1=_0x36722f,_0x205c15=_0x4265e1[_0x2af5('0xcd')],_0x4265e1[_0x2af5('0xef')](_0x2a71e1=>{_0x2a71e1['id']=_0x12defa++;}),this[_0x2af5('0x2')](_0x4265e1)):this[_0x2af5('0x5')](_0x4265e1,_0x36722f);const _0x45a132=_0x4265e1[_0x2af5('0xe7')](_0x4ca66d=>!_0x4ca66d['isAdded'])['map'](_0x43273b=>_0x43273b['id']);let _0x418f8f=0x0;const _0x417d8b=this['_makeTape'](_0x49b15e[_0x2af5('0x23')][_0x947d16][_0x2af5('0x8a')]);_0x417d8b['forEach'](_0x3131dd=>{_0x3131dd[_0x2af5('0xd6')]?_0x3131dd['id']=_0x205c15++:_0x3131dd['id']=_0x45a132[_0x418f8f++];}),this[_0x2af5('0x2')](_0x417d8b),this[_0x2af5('0x8b')](_0x4265e1,_0x2af5('0xaa')),this[_0x2af5('0x8b')](_0x417d8b,_0x2af5('0xd6')),_0x49b15e==_0x24abc8&&this[_0x2af5('0x64')](_0x4265e1,_0x2b8019),_0x4265e1=this[_0x2af5('0x7d')](_0x4265e1,_0x417d8b),this[_0x2af5('0x55')](_0x4265e1),this[_0x2af5('0x8b')](_0x4265e1,'isRemoved');}_0x4265e1=_0x4265e1['filter'](_0x61b6a7=>!(_0x61b6a7[_0x2af5('0xaa')]&&_0x61b6a7[_0x2af5('0xd6')]));const _0x201570=new Map(_0x3a71b7['model'][_0x947d16][_0x2af5('0x8a')]['markers']),_0x125b24=new Set(_0x2b8019[_0x2af5('0xdb')]());for(const _0x207c29 of _0x201570[_0x2af5('0xdb')]())_0x125b24['delete'](_0x207c29);this[_0x2af5('0xf3')](_0x4265e1,_0x125b24),this['_fixObsoleteTags'](_0x4265e1),_0x4265e1=this[_0x2af5('0xcb')](_0x4265e1),_0x4265e1=this[_0x2af5('0xe6')](_0x4265e1),_0x4265e1=this[_0x2af5('0x9a')](_0x4265e1);const {root:_0x4f4a3d,changes:_0x28afbd}=this[_0x2af5('0x3f')](_0x4265e1,_0x397109,_0x947d16);_0x329200['model'][_0x947d16]=_0x4f4a3d;const _0xdf2bbb=_0x456eb7[_0x2af5('0xa8')](_0x947d16);if(_0xdf2bbb){const _0x32c005=_0x397109['get'](_0xdf2bbb[_0x2af5('0x21')]),_0x5c6fba=new _0x35673c({'author':_0x32c005,'type':_0xdf2bbb[_0x2af5('0x2f')]?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x947d16});_0x28afbd[_0x2af5('0x10c')](_0x5c6fba),_0x329200['attributes'][_0x947d16][_0x2af5('0x42')]=_0x5c6fba['id'];}_0x329200[_0x2af5('0x111')]=_0x329200[_0x2af5('0x111')]['concat'](_0x28afbd);}return _0x329200;}[_0x2af5('0x64')](_0x4e4590,_0x1b5678){for(let _0x2851c8=0x0;_0x2851c8<_0x4e4590[_0x2af5('0xcd')];_0x2851c8++)for(const [_0x10ed0c,_0x350364]of _0x1b5678)_0x350364[_0x2af5('0xee')][_0x2af5('0x86')](_0x4e4590[_0x2851c8]['previousPosition'])&&_0x4e4590[_0x2851c8][_0x2af5('0x6f')][_0x2af5('0xc1')](_0x10ed0c),_0x350364[_0x2af5('0x99')]['isEqual'](_0x4e4590[_0x2851c8][_0x2af5('0x35')])&&_0x4e4590[_0x2851c8][_0x2af5('0x28')][_0x2af5('0xc1')](_0x10ed0c);}['_joinTapes'](_0x225d78,_0x1e4084){let _0x56710a=[],_0x3df3dd=0x0,_0x56fec5=0x0;for(;_0x3df3dd<_0x225d78['length']||_0x56fec5<_0x1e4084[_0x2af5('0xcd')];){const _0x46d029=_0x225d78[_0x3df3dd]||{},_0x2a6541=_0x1e4084[_0x56fec5]||{};if(_0x46d029['id']==_0x2a6541['id'])_0x3df3dd++,_0x56fec5++,_0x56710a[_0x2af5('0xc1')](_0x46d029);else{if(_0x2a6541[_0x2af5('0xd6')]&&_0x46d029[_0x2af5('0xaa')]){const {commonTape:_0x2ff8f6,iEnd:_0x51a1ce,jEnd:_0x4580f0}=this[_0x2af5('0x60')](_0x225d78,_0x3df3dd,_0x1e4084,_0x56fec5);_0x56710a=_0x56710a['concat'](_0x2ff8f6),_0x3df3dd=_0x51a1ce,_0x56fec5=_0x4580f0;}else _0x2a6541[_0x2af5('0xd6')]?(_0x56fec5++,_0x56710a[_0x2af5('0xc1')](_0x2a6541)):(_0x3df3dd++,_0x56710a[_0x2af5('0xc1')](_0x46d029));}}return _0x56710a;}[_0x2af5('0xf3')](_0x4d2b69,_0x35208f){const _0x5bb478=[];for(let _0x1a7849=0x0;_0x1a7849<_0x4d2b69['length'];_0x1a7849++){for(let _0x10574b=0x0;_0x10574b<_0x4d2b69[_0x1a7849][_0x2af5('0x6f')][_0x2af5('0xcd')];_0x10574b++){const _0x4380e5=_0x4d2b69[_0x1a7849][_0x2af5('0x6f')][_0x10574b];if(!_0x35208f['has'](_0x4380e5))continue;const {group:_0x484781,type:_0x3f5fd3,authorId:_0x969350}=_0x22ebd9(_0x4380e5);_0x2af5('0x5d')!=_0x484781||_0x2af5('0xd4')!=_0x3f5fd3&&_0x2af5('0x113')!=_0x3f5fd3||(_0x5bb478[_0x2af5('0x10c')]({'type':_0x3f5fd3,'name':_0x4380e5,'userId':_0x969350}),_0x4d2b69[_0x1a7849][_0x2af5('0x6f')][_0x2af5('0xa1')](_0x10574b,0x1),_0x10574b--);}_0x2b3f01(_0x4d2b69[_0x1a7849]);for(let _0x160112=0x0;_0x160112<_0x4d2b69[_0x1a7849][_0x2af5('0x28')][_0x2af5('0xcd')];_0x160112++){const _0x56427a=_0x4d2b69[_0x1a7849][_0x2af5('0x28')][_0x160112];if(!_0x35208f['has'](_0x56427a))continue;const {group:_0x420855,type:_0x55f607}=_0x22ebd9(_0x56427a);if('revision-suggestion'!=_0x420855||'insertion'!=_0x55f607&&'deletion'!=_0x55f607)continue;_0x4d2b69[_0x1a7849][_0x2af5('0x28')]['splice'](_0x160112,0x1),_0x160112--;const _0x530b4d=_0x5bb478[_0x2af5('0x7f')](_0x38110d=>_0x38110d[_0x2af5('0x30')]==_0x56427a);_0x530b4d>-0x1&&_0x5bb478[_0x2af5('0xa1')](_0x530b4d,0x1);}}function _0x22ebd9(_0x1c8ec9){const _0x11a294=_0x1c8ec9[_0x2af5('0x93')](':');return{'group':_0x11a294[0x0],'type':_0x11a294[0x1],'subType':_0x11a294[_0x2af5('0xcd')]>=0x5?_0x11a294[0x2]:null,'id':_0x11a294[_0x2af5('0xcd')]<0x5?_0x11a294[0x2]:_0x11a294[0x3],'authorId':_0x11a294[_0x2af5('0xcd')]<0x5?_0x11a294[0x3]:_0x11a294[0x4],'markerCount':0x6==_0x11a294['length']?_0x11a294[0x5]:null};}function _0x2b3f01(_0x6c4815){for(let _0x5ac3c7=0x0;_0x5ac3c7<_0x5bb478[_0x2af5('0xcd')];_0x5ac3c7++){if(_0x6c4815[_0x2af5('0xaa')]&&_0x2af5('0xd4')==_0x5bb478[_0x5ac3c7][_0x2af5('0x5c')])return _0x6c4815[_0x2af5('0x2e')]=_0x5bb478[_0x5ac3c7],void delete _0x6c4815['isAdded'];if(!_0x6c4815[_0x2af5('0xaa')]&&!_0x6c4815[_0x2af5('0xd6')]&&_0x2af5('0x113')==_0x5bb478[_0x5ac3c7][_0x2af5('0x5c')])return void(_0x6c4815['isRemoveSuggestion']=_0x5bb478[_0x5ac3c7]);}}}[_0x2af5('0x8b')](_0x34f88b,_0x5644e6){let _0x493d79=0x0,_0x563e04=!0x1;const _0x46b5e5=new Map();for(const _0x333677 of _0x34f88b)_0x333677[_0x5644e6]?_0x563e04&&(_0x493d79++,_0x563e04=!0x1):(_0x493d79++,_0x563e04=!0x0),_0x46b5e5[_0x2af5('0xf')](_0x333677['id'],_0x493d79);for(let _0x42626e=0x0;_0x42626e<_0x34f88b['length'];_0x42626e++){if('isRemoved'==_0x5644e6&&_0x34f88b[_0x42626e][_0x2af5('0xaa')]||_0x2af5('0xaa')==_0x5644e6&&_0x34f88b[_0x42626e][_0x2af5('0xd6')])continue;if(_0x2af5('0xeb')==_0x34f88b[_0x42626e]['type']){_0x34f88b[_0x42626e][_0x2af5('0x67')]=0x0;continue;}const _0x1f9209=_0x46b5e5[_0x2af5('0xa8')](_0x34f88b[_0x42626e][_0x2af5('0xbe')]),_0x5d2ae1=_0x46b5e5[_0x2af5('0xa8')](_0x34f88b[_0x42626e]['id']);_0x34f88b[_0x42626e][_0x2af5('0x67')]=_0x1f9209-_0x5d2ae1;}}[_0x2af5('0xa0')](_0x1c2f1e,_0x203b4e,_0x3f5a20=!0x1){const _0x35ed57=[];let _0x46bfcf=this['repository'][_0x2af5('0xd0')](_0x1c2f1e),_0x4bc31a=this[_0x2af5('0x118')]['getIndex'](_0x203b4e);for(-0x1==_0x4bc31a&&(_0x4bc31a=this[_0x2af5('0x118')][_0x2af5('0x122')]['length'],_0x3f5a20=!0x1);_0x46bfcf<_0x4bc31a;)_0x35ed57[_0x2af5('0xc1')](this[_0x2af5('0x118')]['getRevision'](_0x46bfcf)),_0x46bfcf++;return _0x3f5a20&&_0x35ed57['push'](this[_0x2af5('0x118')][_0x2af5('0x6e')](_0x46bfcf)),_0x35ed57;}[_0x2af5('0x60')](_0x5980c5,_0x511e6e,_0x25baa1,_0x97dfc6){const _0x1ba746=this['editor'][_0x2af5('0x23')][_0x2af5('0xd')];let _0x25888f=_0x511e6e;for(;_0x5980c5[_0x25888f]&&_0x5980c5[_0x25888f][_0x2af5('0xaa')];)_0x25888f++;let _0x3f4ce5=_0x97dfc6;for(;_0x25baa1[_0x3f4ce5]&&_0x25baa1[_0x3f4ce5][_0x2af5('0xd6')];)_0x3f4ce5++;_0x3f5530(_0x5980c5,_0x511e6e,_0x25888f),_0x3f5530(_0x25baa1,_0x97dfc6,_0x3f4ce5);const _0x39f123=_0x25baa1[_0x2af5('0x8d')](_0x97dfc6,_0x3f4ce5)[_0x2af5('0x9c')](_0x5980c5[_0x2af5('0x8d')](_0x511e6e,_0x25888f));return _0x39f123[_0x2af5('0x1b')]((_0x95d085,_0x47a891)=>_0x95d085[_0x2af5('0x7')]!=_0x47a891[_0x2af5('0x7')]?_0x95d085[_0x2af5('0x7')]-_0x47a891['side']:_0x95d085[_0x2af5('0x49')]!=_0x47a891[_0x2af5('0x49')]?_0x95d085[_0x2af5('0x49')]-_0x47a891[_0x2af5('0x49')]:_0x95d085[_0x2af5('0x67')]!=_0x47a891[_0x2af5('0x67')]?_0x47a891[_0x2af5('0x67')]-_0x95d085[_0x2af5('0x67')]:!!_0x95d085[_0x2af5('0xaa')]!=!!_0x47a891[_0x2af5('0xaa')]?-0x1==_0x95d085[_0x2af5('0x7')]||0x0==_0x95d085[_0x2af5('0x7')]?_0x95d085[_0x2af5('0xaa')]?-0x1:0x1:_0x95d085['isAdded']?0x1:-0x1:_0x95d085[_0x2af5('0x53')]-_0x47a891[_0x2af5('0x53')]),{'commonTape':_0x39f123,'iEnd':_0x25888f,'jEnd':_0x3f4ce5};function _0x3f5530(_0x2467f7,_0x151f84,_0x146c66){let _0x1205c9=-0x1,_0x52062d=Number[_0x2af5('0xc7')],_0x33e503=!0x0;for(let _0xa7044=_0x151f84;_0xa7044<_0x146c66;_0xa7044++)if(_0x1ba746['isInline'](_0x2467f7[_0xa7044][_0x2af5('0xf2')])||(_0x33e503=!0x1),_0x2467f7[_0xa7044][_0x2af5('0xf2')][_0x2af5('0x46')]<_0x151f84&&(_0x1205c9=_0xa7044),_0x2467f7[_0xa7044]['item'][_0x2af5('0x7c')]>=_0x146c66){_0x52062d=_0xa7044;break;}_0x33e503&&(_0x1205c9=_0x146c66-0x1);for(let _0x42cb1c=_0x151f84;_0x42cb1c<_0x146c66;_0x42cb1c++)_0x2467f7[_0x42cb1c]['side']=_0x42cb1c<=_0x1205c9?-0x1:_0x42cb1c<_0x52062d?0x0:0x1,_0x2467f7[_0x42cb1c][_0x2af5('0x53')]=_0x42cb1c;let _0x348090=0x0;for(let _0x2640e5=_0x151f84;_0x2640e5<=_0x1205c9;_0x2640e5++)0x0==_0x2467f7[_0x2640e5][_0x2af5('0x67')]?_0x2467f7[_0x2640e5][_0x2af5('0x49')]=_0x348090:(_0x348090++,_0x2467f7[_0x2640e5][_0x2af5('0x49')]=_0x348090,_0x348090++);for(let _0x1d6404=_0x151f84;_0x1d6404<_0x146c66;_0x1d6404++)0x0==_0x2467f7[_0x1d6404]['side']&&(_0x2467f7[_0x1d6404][_0x2af5('0x49')]=_0x348090);_0x348090=0x0;for(let _0x29a1de=_0x146c66-0x1;_0x29a1de>=_0x52062d;_0x29a1de--)0x0==_0x2467f7[_0x29a1de][_0x2af5('0x67')]?_0x2467f7[_0x29a1de][_0x2af5('0x49')]=_0x348090:(_0x348090--,_0x2467f7[_0x29a1de][_0x2af5('0x49')]=_0x348090,_0x348090--);}}[_0x2af5('0x27')](_0x432ee2){const _0x3a392a=new Map(),_0x48cfa3=this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0xd')];for(let _0xc0f336=0x1;_0xc0f336<_0x432ee2[_0x2af5('0xcd')];_0xc0f336++){let _0x6fa57b,_0x571d6b,_0x80f980;const _0x12651b=_0x432ee2[_0xc0f336],_0x3a8e27=_0x432ee2[_0xc0f336-0x1];if('text'==_0x12651b['type'])continue;if(_0x12651b[_0x2af5('0x5c')]!=_0x3a8e27[_0x2af5('0x5c')])continue;if(!_0x48cfa3['isBlock'](_0x3a8e27[_0x2af5('0xf2')])||_0x48cfa3['isLimit'](_0x3a8e27['item']))continue;if(!_0x48cfa3[_0x2af5('0x19')](_0x12651b[_0x2af5('0xf2')])||_0x48cfa3['isLimit'](_0x12651b[_0x2af5('0xf2')]))continue;if((_0x432ee2[_0xc0f336]['isAdded']||_0x432ee2[_0xc0f336][_0x2af5('0x2e')])&&_0x432ee2[_0xc0f336-0x1][_0x2af5('0xd6')])_0x6fa57b=_0x432ee2[_0xc0f336],_0x571d6b=_0x432ee2[_0xc0f336-0x1],_0x80f980=_0xc0f336-0x1;else{if(!_0x432ee2[_0xc0f336][_0x2af5('0xd6')]||!_0x432ee2[_0xc0f336-0x1][_0x2af5('0xaa')]&&!_0x432ee2[_0xc0f336-0x1][_0x2af5('0x2e')])continue;_0x6fa57b=_0x432ee2[_0xc0f336-0x1],_0x571d6b=_0x432ee2[_0xc0f336],_0x80f980=_0xc0f336;}const _0x4c1888=_0x6fa57b[_0x2af5('0x49')]==_0x571d6b[_0x2af5('0x49')],_0x499768=Math['abs'](_0x6fa57b[_0x2af5('0x49')])<Math['abs'](_0x571d6b['level'])&&0x0==_0x571d6b[_0x2af5('0x67')];(_0x4c1888||_0x499768)&&(_0x3a392a[_0x2af5('0xf')](_0x571d6b['id'],_0x6fa57b['id']),_0x432ee2['splice'](_0x80f980,0x1),_0xc0f336--,_0x6fa57b['isAdded']=!0x1);}for(let _0x16a88e=0x0;_0x16a88e<_0x432ee2[_0x2af5('0xcd')];_0x16a88e++)_0x3a392a[_0x2af5('0x5e')](_0x432ee2[_0x16a88e][_0x2af5('0xbe')])&&(_0x432ee2[_0x16a88e][_0x2af5('0xbe')]=_0x3a392a[_0x2af5('0xa8')](_0x432ee2[_0x16a88e][_0x2af5('0xbe')]));}[_0x2af5('0xcb')](_0x299e98){const _0x2495cd=new Set(_0x299e98['map'](_0xc9998a=>_0xc9998a['id']));for(let _0x166a53=0x0;_0x166a53<_0x299e98[_0x2af5('0xcd')];_0x166a53++)_0x2495cd['has'](_0x299e98[_0x166a53][_0x2af5('0xbe')])||0x0==_0x299e98[_0x166a53][_0x2af5('0x67')]||(_0x299e98[_0x166a53][_0x2af5('0x17')]=!0x0);return _0x299e98[_0x2af5('0xe7')](_0x10eca7=>!_0x10eca7[_0x2af5('0x17')]);}['_markMismatchedRemovedTags'](_0x55344f){const _0x378ecf=new Set();for(let _0x16299c=0x0;_0x16299c<_0x55344f[_0x2af5('0xcd')];_0x16299c++){if(_0x378ecf[_0x2af5('0x5e')](_0x55344f[_0x16299c]['id'])&&_0x55344f[_0x16299c][_0x2af5('0xd6')]&&(_0x55344f[_0x16299c][_0x2af5('0x17')]=!0x0),_0x55344f[_0x16299c][_0x2af5('0x17')])continue;if(0x0==_0x55344f[_0x16299c][_0x2af5('0x67')])continue;if(_0x2af5('0x3c')!=_0x55344f[_0x16299c]['type'])continue;if(null==_0x55344f[_0x16299c][_0x2af5('0xbe')])continue;let _0x3d2a1c=_0x16299c+0x1,_0x3edb7c=0x0;for(;_0x55344f[_0x3d2a1c]['id']!=_0x55344f[_0x16299c]['pairId'];)_0x2af5('0x3c')==_0x55344f[_0x3d2a1c][_0x2af5('0x5c')]?_0x3edb7c++:_0x2af5('0xf9')==_0x55344f[_0x3d2a1c][_0x2af5('0x5c')]&&_0x3edb7c--,_0x3d2a1c++;if(0x0!=_0x3edb7c){if(_0x55344f[_0x16299c][_0x2af5('0xd6')])_0x55344f[_0x16299c][_0x2af5('0x17')]=!0x0;else for(;_0x3d2a1c!=_0x16299c;)_0x55344f[_0x3d2a1c][_0x2af5('0xd6')]&&0x0!=_0x55344f[_0x3d2a1c][_0x2af5('0x67')]&&(_0x55344f[_0x3d2a1c]['isIncorrect']=!0x0,_0x378ecf[_0x2af5('0xad')](_0x55344f[_0x3d2a1c][_0x2af5('0xbe')])),_0x3d2a1c--;}}return _0x55344f['filter'](_0x479f39=>!_0x479f39[_0x2af5('0x17')]);}[_0x2af5('0x9a')](_0x3f0f91){const _0x300500=this['editor'][_0x2af5('0x23')]['schema'];for(let _0x317fa6=0x0;_0x317fa6<_0x3f0f91['length'];_0x317fa6++){if(!(_0x3f0f91[_0x317fa6]['isAdded']||_0x3f0f91[_0x317fa6][_0x2af5('0x2e')]||_0x3f0f91[_0x317fa6]['isRemoved']||_0x3f0f91[_0x317fa6][_0x2af5('0xe1')]))continue;if(0x0==_0x3f0f91[_0x317fa6]['distance'])continue;const _0x1c2673=_0x3f0f91[_0x317fa6][_0x2af5('0xf2')];_0x300500[_0x2af5('0x19')](_0x1c2673)||_0x300500[_0x2af5('0x114')](_0x1c2673)||(_0x3f0f91[_0x317fa6][_0x2af5('0xaa')]&&delete _0x3f0f91[_0x317fa6][_0x2af5('0xaa')],_0x3f0f91[_0x317fa6]['isAddSuggestion']&&delete _0x3f0f91[_0x317fa6][_0x2af5('0x2e')],_0x3f0f91[_0x317fa6][_0x2af5('0xe1')]&&delete _0x3f0f91[_0x317fa6][_0x2af5('0xe1')],_0x3f0f91[_0x317fa6][_0x2af5('0xd6')]&&(_0x3f0f91[_0x317fa6]['isIncorrect']=!0x0));}return _0x3f0f91['filter'](_0x537d9c=>!_0x537d9c[_0x2af5('0x17')]);}[_0x2af5('0x3f')](_0x1787bd,_0x29e655,_0x4baaa6){const _0x2640f6=new _0x78ee8d(),_0x2eb3ce=[],_0x549a87=new Map(),_0x36d24e=this[_0x2af5('0x24')][_0x2af5('0x23')],_0x3dddd8=_0x36d24e[_0x2af5('0xd')],_0x428ca8=[_0x2640f6],_0x177cfd={},_0x22cd78={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3b0728=null;const _0x305d0f=[0x0];for(let _0x281f10=0x0;_0x281f10<_0x1787bd[_0x2af5('0xcd')];_0x281f10++){let _0xd4624c,_0x572eb7;if(_0x2af5('0x3c')===_0x1787bd[_0x281f10][_0x2af5('0x5c')]){_0xd4624c=_0x36d24e[_0x2af5('0x3d')](_0x2640f6,_0x305d0f);const _0x18728f=new _0x39553c(_0x1787bd[_0x281f10]['item'][_0x2af5('0x30')],_0x1787bd[_0x281f10][_0x2af5('0xf2')]['getAttributes']());_0x428ca8[0x0][_0x2af5('0xd7')](_0x18728f),_0x305d0f[_0x2af5('0xc1')](0x0),_0x428ca8['unshift'](_0x18728f),_0x572eb7=_0x36d24e['createPositionFromPath'](_0x2640f6,_0x305d0f),_0x3b0728=null;}else{if('elementEnd'===_0x1787bd[_0x281f10][_0x2af5('0x5c')])_0x428ca8['shift'](),_0xd4624c=_0x36d24e[_0x2af5('0x3d')](_0x2640f6,_0x305d0f),_0x305d0f[_0x2af5('0x7a')](),_0x305d0f[_0x305d0f[_0x2af5('0xcd')]-0x1]++,_0x572eb7=_0x36d24e[_0x2af5('0x3d')](_0x2640f6,_0x305d0f),_0x3b0728=null;else{if(_0xd4624c=_0x36d24e[_0x2af5('0x3d')](_0x2640f6,_0x305d0f),_0x3b0728&&_0x196ea2(_0x3b0728,_0x1787bd[_0x281f10]['item']))_0x3b0728[_0x2af5('0xf1')]+=_0x1787bd[_0x281f10][_0x2af5('0xf2')][_0x2af5('0x56')];else{const _0x4487d6=new _0x4662a3(_0x1787bd[_0x281f10][_0x2af5('0xf2')][_0x2af5('0x56')],_0x1787bd[_0x281f10][_0x2af5('0xf2')]['getAttributes']());_0x428ca8[0x0][_0x2af5('0xd7')](_0x4487d6),_0x3b0728=_0x4487d6;}_0x305d0f[_0x305d0f[_0x2af5('0xcd')]-0x1]+=_0x1787bd[_0x281f10][_0x2af5('0xf2')][_0x2af5('0x96')],_0x572eb7=_0x36d24e[_0x2af5('0x3d')](_0x2640f6,_0x305d0f);}}for(const _0x5d4f0d of _0x1787bd[_0x281f10][_0x2af5('0x6f')])_0x549a87[_0x2af5('0xf')](_0x5d4f0d,{'start':_0xd4624c,'end':null});_0x49a5c2('isRemoveSuggestion',_0x281f10,_0xd4624c,_0x572eb7),_0x49a5c2(_0x2af5('0x2e'),_0x281f10,_0xd4624c,_0x572eb7),_0x49a5c2(_0x2af5('0xd6'),_0x281f10,_0xd4624c,_0x572eb7),_0x49a5c2(_0x2af5('0xaa'),_0x281f10,_0xd4624c,_0x572eb7);for(const _0xd1ff15 of _0x1787bd[_0x281f10][_0x2af5('0x28')]){_0x549a87[_0x2af5('0xa8')](_0xd1ff15)[_0x2af5('0x99')]=_0x572eb7;}}for(const [_0x296c44,_0x486467]of _0x549a87){const _0x11e332=this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0xb9')](_0x486467[_0x2af5('0xee')],_0x486467[_0x2af5('0x99')]);_0x2640f6[_0x2af5('0x7e')][_0x2af5('0xf')](_0x296c44,_0x11e332);}return _0x2eb3ce[_0x2af5('0x1b')]((_0x5dce42,_0x1b38cb)=>{const _0x26c19a=_0x2640f6[_0x2af5('0x7e')][_0x2af5('0xa8')](_0x2af5('0x9f')+_0x5dce42['id']),_0x535f44=_0x2640f6['markers'][_0x2af5('0xa8')](_0x2af5('0x9f')+_0x1b38cb['id']);return _0x26c19a[_0x2af5('0xee')][_0x2af5('0x109')](_0x535f44[_0x2af5('0xee')])?-0x1:_0x26c19a['start'][_0x2af5('0x50')](_0x535f44[_0x2af5('0xee')])?0x1:_0x26c19a[_0x2af5('0x99')][_0x2af5('0x109')](_0x535f44[_0x2af5('0x99')])?-0x1:_0x26c19a[_0x2af5('0x99')][_0x2af5('0x50')](_0x535f44['end'])?0x1:_0x2af5('0xad')===_0x5dce42[_0x2af5('0x5c')]?-0x1:0x1;}),{'root':_0x2640f6,'changes':_0x2eb3ce};function _0x49a5c2(_0x415016,_0x1c09d2,_0x25c4d1,_0xac5693){const _0x384770=!!_0x1787bd[_0x1c09d2][_0x415016],_0x29a2c0=_0x384770?_0x1787bd[_0x1c09d2][_0x415016]['userId']:null,_0x175072=_0x1c09d2===_0x1787bd['length']-0x1,_0x4a8053=_0x22cd78[_0x415016][0x0],_0x3ef34c=_0x3dddd8['isObject'](_0x1787bd[_0x1c09d2][_0x2af5('0xf2')]);!_0x177cfd[_0x415016]&&_0x384770?_0x177cfd[_0x415016]={'start':_0x25c4d1,'tapeItem':_0x1787bd[_0x1c09d2],'userId':_0x29a2c0,'type':_0x415016}:_0x177cfd[_0x415016]&&!_0x384770?(_0x177cfd[_0x415016][_0x2af5('0x99')]=_0x25c4d1,_0x1aa8d7(_0x177cfd[_0x415016]),_0x177cfd[_0x415016]=null):_0x177cfd[_0x415016]&&_0x384770&&_0x177cfd[_0x415016][_0x2af5('0x21')]!==_0x29a2c0&&(_0x177cfd[_0x415016][_0x2af5('0x99')]=_0x25c4d1,_0x4a8053&&_0x4a8053[_0x2af5('0x21')]===_0x177cfd[_0x415016][_0x2af5('0x21')]||_0x1aa8d7(_0x177cfd[_0x415016]),_0x177cfd[_0x415016]={'start':_0x25c4d1,'tapeItem':_0x1787bd[_0x1c09d2],'userId':_0x29a2c0,'type':_0x415016}),_0x177cfd[_0x415016]&&_0x3ef34c&&(_0x2af5('0x3c')!==_0x1787bd[_0x1c09d2][_0x2af5('0x5c')]||_0x4a8053&&_0x4a8053[_0x2af5('0x21')]===_0x29a2c0||_0x22cd78[_0x415016][_0x2af5('0x10c')]({'userId':_0x29a2c0,'object':_0x1787bd[_0x1c09d2][_0x2af5('0xf2')],'change':_0x177cfd[_0x415016]}),_0x2af5('0xf9')===_0x1787bd[_0x1c09d2]['type']&&_0x4a8053&&_0x4a8053[_0x2af5('0x4f')]===_0x1787bd[_0x1c09d2][_0x2af5('0xf2')]&&(_0x22cd78[_0x415016][_0x2af5('0x100')](),_0x177cfd[_0x415016]=_0x4a8053[_0x2af5('0x11f')])),_0x177cfd[_0x415016]&&_0x175072&&(_0x177cfd[_0x415016][_0x2af5('0x99')]=_0xac5693,_0x1aa8d7(_0x177cfd[_0x415016]),_0x177cfd[_0x415016]=null);}function _0x1aa8d7({start:_0x23d8e0,end:_0x250e81,tapeItem:_0xd59437,userId:_0x1f8e82,type:_0x4ed8ac}){const _0x27d52e=_0xd59437['item'],_0x26bc23=_0x36d24e[_0x2af5('0xd')][_0x2af5('0x19')](_0x27d52e)&&!_0x36d24e['schema'][_0x2af5('0x114')](_0x27d52e),_0x176ab0=_0x23d8e0['nodeAfter']==_0x250e81[_0x2af5('0x70')]&&_0x250e81[_0x2af5('0x61')];if(_0x26bc23&&_0x176ab0)return;const _0x16a864=_0x36d24e[_0x2af5('0xb9')](_0x23d8e0,_0x250e81),_0x520027=_0x29e655[_0x2af5('0xa8')](_0x1f8e82),_0x123606=new _0x35673c({'author':_0x520027,'type':'isAdded'==_0x4ed8ac||_0x2af5('0x2e')==_0x4ed8ac?_0x2af5('0xad'):_0x2af5('0xff'),'data':{'isSuggestion':_0x2af5('0x2e')==_0x4ed8ac||_0x2af5('0xe1')==_0x4ed8ac},'createdAt':new Date(),'rootName':_0x4baaa6});_0x2eb3ce['push'](_0x123606),_0x2640f6['markers']['set'](_0x2af5('0x9f')+_0x123606['id'],_0x16a864);}function _0x196ea2(_0x682c92,_0x2385b8){const _0x23557d=_0x682c92[_0x2af5('0x43')](),_0xc68a5a=_0x2385b8['getAttributes']();for(const _0x355f98 of _0x23557d){if(_0x355f98[0x1]!==_0x2385b8[_0x2af5('0x33')](_0x355f98[0x0]))return!0x1;_0xc68a5a[_0x2af5('0x12')]();}return _0xc68a5a[_0x2af5('0x12')]()[_0x2af5('0x83')];}}[_0x2af5('0x16')](){this[_0x2af5('0x24')]['conversion']['for'](_0x2af5('0x124'))['dataToMarker']({'view':'revision'}),this[_0x2af5('0x24')]['conversion']['for'](_0x2af5('0x97'))[_0x2af5('0x5a')]({'model':'revision','view':_0x311440=>{const _0x20fee7=_0x311440[_0x2af5('0x8')][_0x2af5('0x93')](':')[0x1],_0xe89f44=this['_getChangeFromId'](_0x20fee7);if(!_0xe89f44)return null;const _0x5cabca='add'==_0xe89f44['type']?'insertion':_0x2af5('0x113'),_0x10f9c3=[_0x2af5('0x74'),_0x2af5('0x2a')+_0x5cabca];return _0xe89f44[_0x2af5('0x56')][_0x2af5('0xf4')]&&_0x10f9c3[_0x2af5('0xc1')](_0x2af5('0x2a')+_0x5cabca+_0x2af5('0x7b')),this[_0x2af5('0x75')]==_0xe89f44&&_0x10f9c3[_0x2af5('0xc1')](_0x2af5('0x120')),{'classes':_0x10f9c3,'attributes':{'data-change-id':_0x20fee7}};}}),this[_0x2af5('0x24')][_0x2af5('0xe5')]['for'](_0x2af5('0x124'))[_0x2af5('0xad')](_0x3b6f3e=>{_0x3b6f3e['on'](_0x2af5('0x41'),(_0x54a623,_0x1c884d,_0x81da00)=>{const _0x1d1e15=_0x1c884d[_0x2af5('0xf0')]['getChild'](0x0);if(!_0x1d1e15||!_0x1d1e15['is'](_0x2af5('0xd1'),_0x2af5('0xdd')))return;if(!_0x81da00[_0x2af5('0x4c')][_0x2af5('0x77')](_0x1d1e15,{'attributes':[_0x2af5('0x10a'),'vid_end']}))return;const _0x595f16=_0x1c884d[_0x2af5('0x10e')]['start']['nodeAfter'];_0x81da00[_0x2af5('0xf8')]['setAttribute'](_0x2af5('0x10a'),_0x1d1e15[_0x2af5('0x33')]('vid_start'),_0x595f16),_0x81da00['writer'][_0x2af5('0x58')]('vid_end',_0x1d1e15['getAttribute'](_0x2af5('0xa5')),_0x595f16);},{'priority':_0x2af5('0xe2')});}),this[_0x2af5('0x24')]['conversion'][_0x2af5('0xa3')]('upcast')[_0x2af5('0xad')](_0x24f45a=>{_0x24f45a['on']('element',(_0x41c30e,_0x5ee69a,_0xdf88fa)=>{if(!_0xdf88fa[_0x2af5('0x4c')][_0x2af5('0x77')](_0x5ee69a['viewItem'],{'attributes':[_0x2af5('0x10a'),_0x2af5('0xa5')]}))return;if(_0x5ee69a[_0x2af5('0x10e')][_0x2af5('0xc6')])return;const _0x21cdfe=_0x5ee69a['modelRange']['start']['nodeAfter'];_0x21cdfe[_0x2af5('0x81')]('vid_start')||_0x21cdfe['hasAttribute']('vid')||(_0xdf88fa['writer']['setAttribute'](_0x2af5('0x10a'),_0x5ee69a[_0x2af5('0xf0')][_0x2af5('0x33')](_0x2af5('0x10a')),_0x21cdfe),_0xdf88fa['writer'][_0x2af5('0x58')](_0x2af5('0xa5'),_0x5ee69a[_0x2af5('0xf0')][_0x2af5('0x33')](_0x2af5('0xa5')),_0x21cdfe));},{'priority':_0x2af5('0xe2')});}),this[_0x2af5('0x24')][_0x2af5('0xe5')][_0x2af5('0xa3')](_0x2af5('0x124'))['elementToAttribute']({'view':{'name':_0x2af5('0x1f'),'attributes':{'vid':!0x0}},'model':{'key':_0x2af5('0x91'),'value':_0xc002af=>_0xc002af['getAttribute']('vid')}}),this[_0x2af5('0x24')]['model'][_0x2af5('0xd')]['on'](_0x2af5('0x98'),(_0x31ae50,[,_0x6a628e])=>{[_0x2af5('0x10a'),_0x2af5('0xa5'),'vid'][_0x2af5('0xe8')](_0x6a628e)&&(_0x31ae50[_0x2af5('0xa7')]=!0x0,_0x31ae50[_0x2af5('0x32')]());},{'priority':'highest'}),this[_0x2af5('0x24')][_0x2af5('0xe5')][_0x2af5('0xa3')](_0x2af5('0x31'))[_0x2af5('0xad')](_0x55229c=>{_0x55229c['on']('attribute:vid',(_0x550181,_0x5413e4,_0x4b7810)=>{if('\x20'!=_0x5413e4['item'][_0x2af5('0x56')]||_0x5413e4['item'][_0x2af5('0x70')][_0x2af5('0xd2')]>0x1)return;if(!_0x4b7810['consumable'][_0x2af5('0x77')](_0x5413e4[_0x2af5('0xf2')],_0x550181[_0x2af5('0x30')]))return;const _0x18f41e=_0x4b7810[_0x2af5('0xf8')],_0x224bf6=_0x4b7810[_0x2af5('0x54')][_0x2af5('0x25')](_0x5413e4['range']);_0x18f41e[_0x2af5('0xfa')](_0x224bf6,_0x18f41e[_0x2af5('0x117')]('span'));});}),this[_0x2af5('0x24')]['conversion'][_0x2af5('0xa3')](_0x2af5('0x31'))[_0x2af5('0x40')]({'model':'revision'}),this[_0x2af5('0x24')]['editing'][_0x2af5('0xd5')]['on'](_0x2af5('0xd3'),function(_0x173b25){const _0x31f199=_0x173b25[_0x2af5('0x9')]['get']('RevisionViewer');return(_0x101a53,_0x5dbb07,_0x17e74f)=>{const _0x1d2ede=_0x5dbb07['markerName'][_0x2af5('0x93')](':')[0x1],_0x55f243=_0x31f199[_0x2af5('0x26')](_0x1d2ede);if(!_0x55f243)return null;const _0x2260ba='add'==_0x55f243[_0x2af5('0x5c')]?'split':_0x2af5('0x6d');if(!_0x17e74f[_0x2af5('0x4c')][_0x2af5('0x5b')](_0x5dbb07[_0x2af5('0xdf')],_0x101a53[_0x2af5('0x30')]))return;const _0x4978b3=_0x5dbb07['markerRange'][_0x2af5('0xb6')](),_0xcab211=_0x5dbb07[_0x2af5('0xdf')]['start'],_0x119354=_0x173b25[_0x2af5('0x23')][_0x2af5('0xd')];let _0xccf4d0=null,_0x540778=null,_0x77cbab=!0x1,_0x5eb80a=!0x1;for(const _0x3c577a of _0x4978b3){const _0x52828c=_0x3c577a[_0x2af5('0xf2')];_0x77cbab=_0x77cbab||_0x119354[_0x2af5('0x45')](_0x52828c);const _0x53079f=_0x17e74f['mapper']['toViewElement'](_0x52828c);if(_0x53079f&&_0x53079f[_0x2af5('0x1a')](_0x2af5('0x85')))return;_0x2af5('0xf9')==_0x3c577a[_0x2af5('0x5c')]&&(_0x119354['isBlock'](_0x52828c)&&!_0x119354[_0x2af5('0x114')](_0x52828c)&&(_0x52828c['nextSibling']||_0xcab211['isAtEnd']?_0xccf4d0&&_0xccf4d0[_0x2af5('0x70')]==_0x52828c||(_0xccf4d0=_0x52828c,_0x54005b(_0x3c577a['previousPosition']),_0x5eb80a=!0x0):_0x540778=_0x540778||_0x3c577a[_0x2af5('0x52')]));}function _0x54005b(_0x1e8e3f){const _0x356e7c=_0x17e74f['writer']['createUIElement'](_0x2af5('0x1f'),{'class':_0x2af5('0x2a')+_0x2260ba}),_0x2e06ad=_0x17e74f[_0x2af5('0x54')][_0x2af5('0x9e')](_0x1e8e3f);_0x55f243[_0x2af5('0x56')][_0x2af5('0xf4')]&&_0x17e74f[_0x2af5('0xf8')][_0x2af5('0xda')](_0x2af5('0x2a')+_0x2260ba+_0x2af5('0x7b'),_0x356e7c),_0x31f199['activeChange']==_0x55f243&&_0x17e74f['writer']['addClass'](_0x2af5('0x120'),_0x356e7c),_0x17e74f[_0x2af5('0xf8')][_0x2af5('0x63')](_0x2e06ad,_0x356e7c),_0x17e74f[_0x2af5('0x54')]['bindElementToMarker'](_0x356e7c,_0x5dbb07[_0x2af5('0x8')]);}_0x77cbab||_0x5eb80a||!_0x540778||_0x54005b(_0x540778);};}(this[_0x2af5('0x24')]),{'priority':_0x2af5('0xab')}),this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0xd5')]['on'](_0x2af5('0x34'),(_0x7dda19,_0x41e162,_0x261d91)=>{const _0x4e2d4d=_0x261d91[_0x2af5('0x54')][_0x2af5('0x1')](_0x41e162[_0x2af5('0x8')]);if(_0x4e2d4d)for(const _0x556903 of _0x4e2d4d)(_0x556903['hasClass']('ck-suggestion-marker-split')||_0x556903[_0x2af5('0xca')](_0x2af5('0x11b')))&&(_0x261d91['mapper']['unbindElementFromMarkerName'](_0x556903,_0x41e162[_0x2af5('0x8')]),_0x261d91['writer'][_0x2af5('0xff')](_0x556903));},{'priority':_0x2af5('0xab')}),this[_0x2af5('0x24')][_0x2af5('0xa4')]['downcastDispatcher']['on'](_0x2af5('0xd3'),(_0x3555e9,_0x1ac552,_0x2e998f)=>{const _0x1aeb68=_0x1ac552['markerName'][_0x2af5('0x93')](':')[0x1],_0x25c900=this[_0x2af5('0x26')](_0x1aeb68);if(!_0x25c900)return null;const _0x7fff02=_0x2af5('0xad')==_0x25c900['type']?_0x2af5('0x93'):'merge';if(_0x2e998f[_0x2af5('0x4c')][_0x2af5('0x5b')](_0x1ac552['markerRange'],_0x3555e9[_0x2af5('0x30')]))for(const _0x176a67 of _0x1ac552['markerRange'][_0x2af5('0xb5')]()){if(!_0x176a67['is'](_0x2af5('0xd1'),'softBreak'))continue;const _0x2e7edf=_0x2e998f[_0x2af5('0xf8')][_0x2af5('0x119')]('span',{'class':_0x2af5('0x2a')+_0x7fff02}),_0x52049e=_0x2e998f[_0x2af5('0x54')]['toViewPosition'](this[_0x2af5('0x24')][_0x2af5('0x23')]['createPositionBefore'](_0x176a67));_0x25c900[_0x2af5('0x56')][_0x2af5('0xf4')]&&_0x2e998f[_0x2af5('0xf8')][_0x2af5('0xda')](_0x2af5('0x2a')+_0x7fff02+_0x2af5('0x7b'),_0x2e7edf),this['activeChange']==_0x25c900&&_0x2e998f['writer'][_0x2af5('0xda')](_0x2af5('0x120'),_0x2e7edf),_0x2e998f[_0x2af5('0xf8')][_0x2af5('0x63')](_0x52049e,_0x2e7edf),_0x2e998f['mapper'][_0x2af5('0x123')](_0x2e7edf,_0x1ac552[_0x2af5('0x8')]);}},{'priority':_0x2af5('0xab')}),this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0xc3')]['on'](_0x2af5('0x11f'),()=>{this['editor']['editing'][_0x2af5('0x22')]['change'](_0x312e52=>{for(const _0x2e58b3 of this['editor'][_0x2af5('0x23')][_0x2af5('0xc3')][_0x2af5('0x2b')]()){const _0xdd1c5=this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0xc3')][_0x2af5('0xe9')](_0x2e58b3),_0x2bd4c8=this['editor'][_0x2af5('0xa4')][_0x2af5('0x22')][_0x2af5('0xc3')][_0x2af5('0xe9')](_0x2e58b3);if(_0x2bd4c8){const _0x4e01aa=_0xdd1c5[_0x2af5('0x33')](_0x2af5('0x42'));if(_0x312e52['removeAttribute']('data-change-id',_0x2bd4c8),_0x312e52['removeClass'](_0x2af5('0x62'),_0x2bd4c8),_0x312e52[_0x2af5('0xfb')]('ck-revision-history-root-remove',_0x2bd4c8),_0x312e52[_0x2af5('0xfb')](_0x2af5('0x3b'),_0x2bd4c8),_0x4e01aa){const _0x170159=this[_0x2af5('0x26')](_0x4e01aa);if(!_0x170159)return null;_0x312e52['setAttribute']('data-change-id',_0x4e01aa,_0x2bd4c8),_0x312e52[_0x2af5('0xda')](_0x2af5('0x107')+_0x170159['type'],_0x2bd4c8),this['activeChange']==_0x170159&&_0x312e52[_0x2af5('0xda')]('ck-revision-history-root--active',_0x2bd4c8);}}}});}),this[_0x2af5('0x24')][_0x2af5('0xe5')][_0x2af5('0xa3')](_0x2af5('0x124'))[_0x2af5('0xae')]({'view':'comment','model':_0x2a33f7=>_0x2af5('0x69')+_0x2a33f7,'converterPriority':_0x2af5('0x37')}),this[_0x2af5('0x24')]['conversion'][_0x2af5('0xa3')]('upcast')[_0x2af5('0xae')]({'view':_0x2af5('0x3'),'model':_0xb4f95d=>_0x2af5('0x1e')+_0xb4f95d,'converterPriority':'highest'}),this[_0x2af5('0x24')]['conversion'][_0x2af5('0xa3')](_0x2af5('0x31'))[_0x2af5('0x40')]({'model':_0x2af5('0x5d'),'view':_0x4a746c=>({'name':_0x2af5('0xea')+_0x4a746c,'group':_0x2af5('0x5d')}),'converterPriority':_0x2af5('0x37')}),this[_0x2af5('0x24')][_0x2af5('0xe5')][_0x2af5('0xa3')](_0x2af5('0x97'))[_0x2af5('0x5a')]({'model':_0x2af5('0x5d'),'view':_0x1f3ea0=>{const _0x57ffe9=_0x1f3ea0[_0x2af5('0x8')][_0x2af5('0x93')](':')[0x1];return'insertion'!=_0x57ffe9&&_0x2af5('0x113')!=_0x57ffe9?null:{'classes':[_0x2af5('0x6'),_0x2af5('0xa')+_0x57ffe9]};}}),this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0xd5')]['on'](_0x2af5('0x103'),et(this['editor'],_0x2af5('0x6d')),{'priority':_0x2af5('0xab')}),this[_0x2af5('0x24')]['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',et(this[_0x2af5('0x24')],_0x2af5('0x93')),{'priority':'high'}),this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0xd5')]['on']('removeMarker:revision-suggestion',(_0x3fbe5e,_0x56b9d8,_0x41fcf5)=>{const _0x52b7d4=_0x41fcf5['mapper'][_0x2af5('0x1')](_0x56b9d8[_0x2af5('0x8')]);if(_0x52b7d4)for(const _0x3ae2e5 of _0x52b7d4)_0x3ae2e5['is'](_0x2af5('0x0'))&&(_0x41fcf5[_0x2af5('0x54')]['unbindElementFromMarkerName'](_0x3ae2e5,_0x56b9d8[_0x2af5('0x8')]),_0x41fcf5[_0x2af5('0xf8')]['remove'](_0x3ae2e5));},{'priority':_0x2af5('0xab')});}[_0x2af5('0x26')](_0x4f1a26){return this[_0x2af5('0xf5')]['get'](_0x4f1a26);}[_0x2af5('0x9b')](_0x5e65f8){return this[_0x2af5('0xfe')]&&this[_0x2af5('0xfe')][_0x2af5('0x104')](),this[_0x2af5('0xfe')]=new _0x52ad46(this['editor'][_0x2af5('0x66')],_0x5e65f8),this['_changeView'];}['_initInteractions'](){this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0xc3')][_0x2af5('0xb0')][_0x2af5('0xac')](_0x2af5('0x78')),this['on'](_0x2af5('0x10'),(_0x3ac4cb,_0xadf415,_0x9bace4,_0x520df5)=>{_0x520df5&&this[_0x2af5('0xc4')][_0x2af5('0xff')](_0x520df5),_0x9bace4&&(this[_0x2af5('0xc4')][_0x2af5('0xad')]({'view':_0x9bace4,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4683b5=this[_0x2af5('0x24')][_0x2af5('0xa4')],_0x2c8099=this['_getChangeFromId'](_0x9bace4[_0x2af5('0x9d')]);let _0x3ed2a7;if(_0x2c8099[_0x2af5('0x56')][_0x2af5('0xe3')]){const _0x3a91a9=_0x4683b5[_0x2af5('0x22')][_0x2af5('0xbd')](_0x2c8099[_0x2af5('0x29')]);_0x3ed2a7=Array[_0x2af5('0x11a')](_0x3a91a9[_0x2af5('0x94')]());}else{const _0x146d67=this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0x7e')][_0x2af5('0xa8')]('revision:'+_0x9bace4[_0x2af5('0x9d')]);_0x3ed2a7=Array[_0x2af5('0x11a')](_0x4683b5['mapper'][_0x2af5('0x1')](_0x146d67[_0x2af5('0x30')]))['map'](_0x441227=>_0x4683b5[_0x2af5('0x22')][_0x2af5('0x90')][_0x2af5('0x13')](_0x441227))[_0x2af5('0xd9')](_0x302831=>Array['from'](_0x302831[_0x2af5('0x94')]()))[_0x2af5('0xb1')]();}if(!this[_0x2af5('0xb3')])return _0x3ed2a7[0x0];return _0x3ed2a7[_0x2af5('0x116')](_0x31df23=>_0x31df23[_0x2af5('0x11c')]-0x3<=this[_0x2af5('0xb3')]['y']&&_0x31df23[_0x2af5('0xc8')]+0x3>=this[_0x2af5('0xb3')]['y']&&_0x31df23[_0x2af5('0x47')]-0x3<=this[_0x2af5('0xb3')]['x']&&_0x31df23[_0x2af5('0x115')]+0x3>=this[_0x2af5('0xb3')]['x'])||_0x3ed2a7[0x0];}}}),this['_balloon']['showStack'](_0x2af5('0x105')));}),this['on'](_0x2af5('0x10b'),(_0x4a2190,_0x249f6c,_0x23cedb,_0x2162e3)=>{this[_0x2af5('0x79')]=_0x23cedb?this['_getViewForChange'](_0x23cedb):null,this[_0x2af5('0x24')][_0x2af5('0x23')][_0x2af5('0x11f')](()=>{const _0x2fec66=this[_0x2af5('0x24')][_0x2af5('0xa4')];_0x2162e3&&(_0x2162e3[_0x2af5('0x56')][_0x2af5('0xe3')]?_0x2fec66[_0x2af5('0x22')][_0x2af5('0x11f')](_0x362bfc=>{_0x362bfc['removeClass'](_0x2af5('0x3b'),_0x2fec66[_0x2af5('0x22')]['document'][_0x2af5('0xe9')](_0x2162e3[_0x2af5('0x29')]));}):_0x2fec66[_0x2af5('0x44')]('revision:'+_0x2162e3['id'])),_0x23cedb&&(_0x23cedb[_0x2af5('0x56')][_0x2af5('0xe3')]?_0x2fec66[_0x2af5('0x22')]['change'](_0x2c7618=>{_0x2c7618[_0x2af5('0xda')](_0x2af5('0x3b'),_0x2fec66[_0x2af5('0x22')][_0x2af5('0xc3')][_0x2af5('0xe9')](_0x23cedb[_0x2af5('0x29')]));}):_0x2fec66['reconvertMarker']('revision:'+_0x23cedb['id']));});}),this['listenTo'](this[_0x2af5('0x24')][_0x2af5('0xa4')][_0x2af5('0x22')][_0x2af5('0xc3')],_0x2af5('0x3a'),(_0x4cc3e6,_0x181c42)=>{if(this['activeChange'])return;const _0x6b048=this[_0x2af5('0x68')](_0x181c42[_0x2af5('0x10f')]),_0x5ce123=this[_0x2af5('0xf5')][_0x2af5('0xa8')](_0x6b048);_0x5ce123?(this[_0x2af5('0xb3')]={'x':_0x181c42[_0x2af5('0x18')]['x'],'y':_0x181c42[_0x2af5('0x18')]['y']},this[_0x2af5('0x79')]=this[_0x2af5('0x9b')](_0x5ce123)):(this[_0x2af5('0xb3')]=null,this[_0x2af5('0x79')]=null);}),this[_0x2af5('0x1d')](this[_0x2af5('0x24')][_0x2af5('0xa4')]['view'][_0x2af5('0xc3')],_0x2af5('0x71'),(_0x44377f,_0x30eb97)=>{const _0x23b3b4=this[_0x2af5('0x68')](_0x30eb97[_0x2af5('0x10f')]),_0x2e14dd=this[_0x2af5('0xf5')][_0x2af5('0xa8')](_0x23b3b4);_0x2e14dd?(this[_0x2af5('0xb3')]={'x':_0x30eb97['domEvent']['x'],'y':_0x30eb97['domEvent']['y']},_0x2e14dd===this['activeChange']?this['_balloon'][_0x2af5('0xfc')]():this[_0x2af5('0x75')]=_0x2e14dd):(this[_0x2af5('0xb3')]=null,this[_0x2af5('0x75')]=null);});}['_findChangeIdFromDomTarget'](_0x1a9475){do{const _0x5e0348=_0x1a9475[_0x2af5('0x33')](_0x2af5('0x39'));if(_0x5e0348)return _0x5e0348;_0x1a9475=_0x1a9475['parent'];}while(_0x1a9475);return null;}[_0x2af5('0xb4')](){this[_0x2af5('0x24')]['model']['change'](_0x221582=>{for(const _0x501052 of this['editor'][_0x2af5('0x23')][_0x2af5('0x7e')])_0x221582['removeMarker'](_0x501052);});}}function et(_0x2096cd,_0x4061e0){return(_0x1f25b0,_0x41918d,_0x5f252a)=>{if(!_0x5f252a['consumable'][_0x2af5('0x5b')](_0x41918d[_0x2af5('0xdf')],_0x1f25b0[_0x2af5('0x30')]))return;const _0x2b6ae3=_0x41918d[_0x2af5('0xdf')]['getWalker'](),_0x38153b=_0x41918d['markerRange'][_0x2af5('0xee')],_0x234d8c=_0x2096cd[_0x2af5('0x23')]['schema'];let _0x5ec36c=null,_0x459c94=null,_0x4b87e3=!0x1,_0x2551bd=!0x1;for(const _0x2dd9dd of _0x2b6ae3){const _0x4cd7db=_0x2dd9dd['item'];_0x4b87e3=_0x4b87e3||_0x234d8c[_0x2af5('0x45')](_0x4cd7db);const _0x2779d0=_0x5f252a[_0x2af5('0x54')]['toViewElement'](_0x4cd7db);if(_0x2779d0&&_0x2779d0[_0x2af5('0x1a')](_0x2af5('0x85')))return;'elementEnd'==_0x2dd9dd['type']&&(_0x234d8c['isBlock'](_0x4cd7db)&&!_0x234d8c['isLimit'](_0x4cd7db)&&(_0x4cd7db[_0x2af5('0xc')]||_0x38153b[_0x2af5('0x4d')]?_0x5ec36c&&_0x5ec36c[_0x2af5('0x70')]==_0x4cd7db||(_0x5ec36c=_0x4cd7db,_0x465541(_0x2dd9dd[_0x2af5('0x52')]),_0x2551bd=!0x0):_0x459c94=_0x459c94||_0x2dd9dd[_0x2af5('0x52')]));}function _0x465541(_0x5cc8b3){const _0x58c6ea=_0x5f252a[_0x2af5('0x54')][_0x2af5('0x9e')](_0x5cc8b3),_0xf66945=_0x5f252a[_0x2af5('0xf8')]['createUIElement'](_0x2af5('0x1f'),{'class':'ck-suggestion-preview-marker-'+_0x4061e0});_0x5f252a[_0x2af5('0xf8')][_0x2af5('0x63')](_0x58c6ea,_0xf66945),_0x5f252a[_0x2af5('0x54')][_0x2af5('0x123')](_0xf66945,_0x41918d[_0x2af5('0x8')]);}_0x4b87e3||_0x2551bd||!_0x459c94||_0x465541(_0x459c94);};}export class RestoreRevisionCommand extends _0x3a55c2{constructor(_0x41ff7b){super(_0x41ff7b);const _0x1d2ca1=_0x41ff7b[_0x2af5('0x9')][_0x2af5('0xa8')](d);this[_0x2af5('0xe')]=!0x1,this[_0x2af5('0x1d')](_0x1d2ca1,_0x2af5('0xb8'),()=>this['refresh']()),this[_0x2af5('0x1d')](_0x1d2ca1,_0x2af5('0x11'),()=>this['refresh']());}[_0x2af5('0xdc')](){const _0x3910bc=this[_0x2af5('0x24')],_0x518722=_0x3910bc[_0x2af5('0x9')][_0x2af5('0xa8')](d),_0x5050d6=_0x518722[_0x2af5('0x6a')]?_0x518722['diff'][_0x2af5('0x1c')]:null;_0x3910bc[_0x2af5('0x8e')][_0x2af5('0xa8')](_0x2af5('0x95'))[_0x2af5('0xa2')](_0x5050d6);}['refresh'](){const {isReady:_0x4bb46e,isEnabled:_0x31fa2e}=this[_0x2af5('0x24')][_0x2af5('0x9')]['get'](d);this['isEnabled']=_0x4bb46e&&_0x31fa2e;}}export class ShowChangeCommand extends _0x3a55c2{constructor(_0x3159cd,{direction:_0xf877ff}){super(_0x3159cd);const _0x561cb5=_0x3159cd['plugins'][_0x2af5('0xa8')](d);this[_0x2af5('0xe')]=!0x1,this[_0x2af5('0x3e')]=_0x2af5('0x121')===_0xf877ff?0x1:-0x1,this[_0x2af5('0x1d')](_0x561cb5,_0x2af5('0xb8'),()=>this['refresh']()),this[_0x2af5('0x1d')](_0x561cb5,_0x2af5('0x11'),()=>this['refresh']()),this[_0x2af5('0x1d')](_0x561cb5,_0x2af5('0x10b'),()=>this[_0x2af5('0xfd')]());}[_0x2af5('0xdc')](){const _0x360e56=this['editor'],_0x36625a=_0x360e56[_0x2af5('0x9')]['get'](d),{isNavigationMode:_0xb3d5aa,currentChangeNumber:_0x35b7c8}=_0x36625a;let _0x41ffb8;if(_0x36625a[_0x2af5('0x75')]=_0xb3d5aa?_0x36625a['diff'][_0x2af5('0x111')][_0x2af5('0xa8')](_0x35b7c8+this['_step']):_0x36625a['diff'][_0x2af5('0x111')]['first'],_0x36625a[_0x2af5('0x75')]['data'][_0x2af5('0xe3')])_0x41ffb8=_0x360e56[_0x2af5('0xa4')][_0x2af5('0x22')]['getDomRoot'](_0x36625a[_0x2af5('0x75')][_0x2af5('0x29')]);else{const _0x19cb2f=_0x360e56[_0x2af5('0x23')][_0x2af5('0x7e')]['get'](_0x2af5('0x9f')+_0x36625a[_0x2af5('0x75')]['id']);_0x41ffb8=_0x324c3d(_0x360e56[_0x2af5('0xa4')],_0x19cb2f);}_0x5686ab({'target':_0x41ffb8,'viewportOffset':0x28});}[_0x2af5('0xfd')](){const {isNavigationMode:_0x3f3989,currentChangeNumber:_0x29e66d,numberOfChanges:_0x102bd6,isReady:_0x30ca5d,isEnabled:_0x535379}=this[_0x2af5('0x24')][_0x2af5('0x9')][_0x2af5('0xa8')](d);this['isEnabled']=!!(_0x535379&&_0x30ca5d&&_0x102bd6)&&(!_0x3f3989||(0x1===this[_0x2af5('0x3e')]?_0x29e66d<_0x102bd6-0x1:_0x29e66d>0x0));}}
|
|
23
|
+
const _0x356e=['config','getIndex','isRemoved','addClass','requires','isCollapsed','attributesBefore','push','activeView','markerToHighlight','getAttribute','merge','getWalker','top','test','isEqual','useFillerType','nextPosition','insert','repository','RevisionsRepository','elementStart','_markInsertions','nextSibling','showNextChange','return','getRoot','comment','viewItem','flat','addRevision','clear','slice','_removeMissingPairs','isContent','ck-editor__editable__overlay','createPositionBefore','code','markersStart','range','showStack','createPositionFromPath','isAfter','isAddSuggestion','revision:','end','splice','_markMismatchedRemovedTags','isRemoveSuggestion','unshift','_makeTape','removeMarker','domEvent','_setChanges','RevisionViewer','find','markersEnd','level','oldRevisionId','ck-revision-history-root--active','_threeWayMerge','text','insertions','set','changes','endIndex','isAdded','vid_start','sort','_makeModelFromViewString','_getChangeFromId','toViewElement','pairId','get','catch','pop','maxOffset','affectsData','change','_step','loadRevisionData','getRevisionData','model','element','refresh','elementEnd','modelRange','_update','length','left','isOnRoot','uiElement','_removeRevisionMarkers','unbindElementFromMarkerName','addRoot','hasClass','type','-new','distance','isBefore','getRootNames','markerName','from','elementToAttribute','_markMarkers','change:isEnabled','hasAttribute','highest','checkAttribute','change:activeView','downcastDispatcher','setAttribute','_cleanUp','item','string','createRangeIn','activeChange','start','currentChangeNumber','ck-suggestion-preview-marker','execute','change:activeChange','upcast','name','_markSuggestions','removeClass','filter','_cleanMarkers','adapter','next','attachChange','deletions','collaboration.channelId','_getDiff','previousPosition','isEnabled','delete','view','deletion','_initInteractions','ck-suggestion-preview-marker-','includes','updatePosition','all','revisionHistoryLabel','_revisions','_sortAndFilterDiffChanges','done','offsetSize','getAttributes','stop','consume','toViewPosition','addMarker:revision-suggestion:insertion','attributesAfter','findIndex','change:numberOfChanges','backward','getRevision','insertion','data-change-id','pluginName','dataToMarker','editing','isAttached','_setDistance','_getViewForChange','side','getClientRects','low','authors','newRevisionId','ck-revision-history-root-','isLimit','element:pre','add','_getRevisionsRange','getChild','createAttributeElement','enqueueChange','detachRoot','revision-suggestion','bind','addHighlight','isInline','schema','selection','for','ck-revision-history-root-add','ck-suggestion-marker-merge','_activeViewTarget','_setConversion','markerToData','_getViewObj','commands','revisionHistory','_refreshStartEndIndex','data-revision-','editor','processor','consumable','_changeView','change:isReady','forward','concat','createUIElement','parse','isAtStart','reconvertMarker','startsWith','data','nodeAfter','_removeUnsupportedChanges','locale','marked','mapper','indexOf','revision-suggestion:','vid','_fixObsoleteTags','abs','forceDisabled','_balloon','isBlock','ck-suggestion-marker-split','createRange','_changeIdToChange','error','mousedown','isSuggestion','then','userId','startIndex','diff','isReady','_findChangeIdFromDomTarget','addRevisionData','compare','suggestion','destroy','revision','editingDowncast','plugins','forEach','attribute:vid','has','WidgetToolbarRepository','writer','index','high','ck-suggestion-marker-','listenTo','attributes','restoreRevision','revision-comment:','ck-suggestion-marker','dataDowncast','isAtEnd','parent','_processTape','softBreak','keys','target','suggestion:','markers','conversion','default','addMarker:revision','resolve','isIncorrect','bindElementToMarker','revision-viewer','vid_end','right','map','markerRange','_data','rootName','getDomRoot','removeMarker:revision-suggestion','span','document','diffData','split','remove','changeId','shift','_appendChild','children','wrap','markerNameToElements'];(function(_0x37163c,_0x356e6f){const _0x121373=function(_0x4c690b){while(--_0x4c690b){_0x37163c['push'](_0x37163c['shift']());}};_0x121373(++_0x356e6f);}(_0x356e,0x14b));const _0x1213=function(_0x37163c,_0x356e6f){_0x37163c=_0x37163c-0x0;let _0x121373=_0x356e[_0x37163c];return _0x121373;};import{Plugin as _0x40ca53,Command as _0x76009b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1162e9}from'ckeditor5/src/utils';import{ContextualBalloon as _0x7f78dc}from'ckeditor5/src/ui';import{DocumentFragment as _0x391c97,Element as _0x6e3159,Text as _0x5111e1,ViewDocumentFragment as _0x1d5f57,ViewText as _0x165698,ViewElement as _0x376922,ViewContainerElement as _0x30b460,ViewAttributeElement as _0x2aacdd,ViewEmptyElement as _0x2f0f1e,ViewRawElement as _0x54618b,ViewUIElement as _0xe5f7b7}from'ckeditor5/src/engine';import{Users as _0x355653,getMarkerDomElement as _0xb2fd99}from'ckeditor5-collaboration/src/collaboration-core';import _0x34ac4c from'./ui/revisionviewer/changedetailsview';import _0x49e3ad from'./revisionsrepository';import _0x17aba0 from'./changeitem';import{default as _0x177edb}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x5e15b4}from'lodash-es';const tt={'c':_0x30b460,'a':_0x2aacdd,'e':_0x2f0f1e,'r':_0x54618b,'u':_0xe5f7b7};export default class d extends _0x40ca53{static get[_0x1213('0x79')](){return'RevisionViewer';}static get[_0x1213('0xff')](){return[_0x355653,_0x7f78dc,_0x49e3ad];}constructor(_0x956e9b){super(_0x956e9b),this[_0x1213('0x10e')]=this[_0x1213('0x9e')]['plugins']['get'](_0x1213('0x10f')),this['set'](_0x1213('0x4c'),null),this[_0x1213('0x17')](_0x1213('0x103'),null),this[_0x1213('0x96')]=null,this[_0x1213('0x17')](_0x1213('0xc1'),null),this[_0x1213('0x17')]('isReady',!0x1),this[_0x1213('0x17')]('isEnabled',!0x0),this['on'](_0x1213('0x41'),(_0x239c59,_0x18d028,_0x41dcf9)=>{this[_0x1213('0x4c')]=null,this['activeView']=null,this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0x26')](_0x40dbac=>{for(const _0x2bca98 of this['editor'][_0x1213('0x7b')]['view'][_0x1213('0xf1')]['roots'])_0x41dcf9?_0x40dbac[_0x1213('0x55')]('ck-editor__editable__overlay',_0x2bca98):_0x40dbac['addClass'](_0x1213('0x11e'),_0x2bca98);});}),this[_0x1213('0x8e')]('isNavigationMode')['to'](this,_0x1213('0x4c'),_0x2ba1a7=>null!==_0x2ba1a7),this['bind'](_0x1213('0x4e'))['to'](this,_0x1213('0xc2'),this,_0x1213('0xc1'),this,'activeChange',(_0x35dba9,_0x89b00e,_0x5665c9)=>_0x35dba9&&_0x5665c9?_0x89b00e[_0x1213('0x18')][_0x1213('0xfc')](_0x5665c9):0x0),this[_0x1213('0x8e')]('numberOfChanges')['to'](this,_0x1213('0xc2'),this,_0x1213('0xc1'),(_0x37f379,_0x231892)=>_0x37f379?_0x231892[_0x1213('0x18')][_0x1213('0x30')]:0x0),this[_0x1213('0xa1')]=null,this[_0x1213('0xba')]=new Map(),this[_0x1213('0x58')]=null,this[_0x1213('0xb6')]=this[_0x1213('0x9e')][_0x1213('0xca')][_0x1213('0x21')](_0x7f78dc);}['init'](){const _0x3cb816=this[_0x1213('0x9e')],_0x4c867b=new ShowChangeCommand(_0x3cb816,{'direction':_0x1213('0x75')}),_0x1cd48a=new ShowChangeCommand(_0x3cb816,{'direction':_0x1213('0xa3')});(_0x3cb816[_0x1213('0x9a')][_0x1213('0x87')]('showPreviousChange',_0x4c867b),_0x3cb816['commands'][_0x1213('0x87')](_0x1213('0x113'),_0x1cd48a),_0x3cb816[_0x1213('0x9a')][_0x1213('0x87')](_0x1213('0xd5'),new RestoreRevisionCommand(_0x3cb816)),this['on'](_0x1213('0x74'),()=>{_0x4c867b['refresh'](),_0x1cd48a[_0x1213('0x2c')]();}),this['_setConversion'](),this['_initInteractions'](),_0x3cb816['enableReadOnlyMode'](_0x1213('0xe7')),_0x3cb816[_0x1213('0xca')][_0x1213('0xcd')](_0x1213('0xce')))&&_0x3cb816[_0x1213('0xca')][_0x1213('0x21')](_0x1213('0xce'))[_0x1213('0xb5')](_0x1213('0xe7'));}async[_0x1213('0x29')](_0x227718){await this[_0x1213('0x28')](_0x227718);const _0x2b99f1={};for(const _0x53fd6c in _0x227718[_0x1213('0xf2')]){if(_0x227718[_0x1213('0xf2')][_0x53fd6c][_0x1213('0x5a')]&&!_0x227718[_0x1213('0xf2')][_0x53fd6c][_0x1213('0x5a')]['isAttached'])continue;const _0x39adc2=this[_0x1213('0x34')](JSON[_0x1213('0xa6')](_0x227718[_0x1213('0xf2')][_0x53fd6c][_0x1213('0x16')])),_0x2e2532=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],_0x50e9d3=new _0x1d5f57(_0x2e2532,_0x39adc2[_0x1213('0xea')](_0x545407=>this[_0x1213('0x99')](_0x545407)));this[_0x1213('0x9e')][_0x1213('0xaa')][_0x1213('0x9f')][_0x1213('0x10b')](_0x1213('0xae')),_0x2b99f1[_0x53fd6c]=this['editor'][_0x1213('0xaa')]['processor']['toData'](_0x50e9d3),this[_0x1213('0x9e')][_0x1213('0xaa')][_0x1213('0x9f')][_0x1213('0x10b')](_0x1213('0xe2'));}return _0x2b99f1;}async['getRevisionRootsAttributes'](_0x383f47){await this[_0x1213('0x28')](_0x383f47);const _0x24fd71={};for(const _0x5502b8 in _0x383f47[_0x1213('0xf2')])_0x383f47['diffData'][_0x5502b8][_0x1213('0x5a')]&&!_0x383f47['diffData'][_0x5502b8][_0x1213('0x5a')][_0x1213('0x7c')]||(_0x24fd71[_0x5502b8]=_0x383f47[_0x1213('0xf2')][_0x5502b8][_0x1213('0x72')]||{});return _0x24fd71;}[_0x1213('0x34')](_0x9c4f55){return(_0x9c4f55=_0x9c4f55[_0x1213('0x56')](_0x526798=>!_0x526798[_0x1213('0x53')]||'revision-start'!==_0x526798[_0x1213('0x53')]&&'revision-end'!==_0x526798[_0x1213('0x53')]))[_0x1213('0xcb')](_0x279ef7=>{_0x1213('0x4a')!=typeof _0x279ef7&&(_0x279ef7['children']=this['_removeRevisionMarkers'](_0x279ef7['children']),_0x279ef7[_0x1213('0xd4')]=_0x279ef7['attributes'][_0x1213('0x56')](_0x335c68=>!_0x335c68[0x0][_0x1213('0xa9')](_0x1213('0x9d'))));}),_0x9c4f55;}async[_0x1213('0xc5')](_0x354cbc,_0x1b8f18,_0x238a0a=!0x1){if(!this[_0x1213('0x5f')])return;const _0x399a1d=this[_0x1213('0xc1')],_0x4c945c=this[_0x1213('0x10e')],_0x2c3641=_0x1213('0x4a')==typeof _0x354cbc?_0x4c945c['getRevision'](_0x354cbc):_0x354cbc,_0x5a501c='string'==typeof _0x1b8f18?_0x4c945c[_0x1213('0x76')](_0x1b8f18):_0x1b8f18,_0x22190d=_0x2c3641['id'],_0x5b8696=_0x5a501c?_0x5a501c['id']:null;if(!_0x238a0a&&this[_0x1213('0xc1')]&&this[_0x1213('0xc1')][_0x1213('0x83')]===_0x22190d&&this[_0x1213('0xc1')][_0x1213('0x12')]===_0x5b8696)return Promise[_0x1213('0xe4')]();this[_0x1213('0xc2')]=!0x1,this[_0x1213('0x103')]=null,this[_0x1213('0x4c')]=null,this[_0x1213('0xc1')]=new _0x177edb(_0x22190d,_0x5b8696);const _0x1a7141=this[_0x1213('0x88')](_0x2c3641,_0x5a501c,!0x0)['map'](_0xe56172=>this[_0x1213('0x28')](_0xe56172));return _0x1a7141[_0x1213('0x102')](new Promise(_0x5e5b02=>{setTimeout(_0x5e5b02,0x14);})),Promise[_0x1213('0x67')](_0x1a7141)[_0x1213('0xbe')](()=>{if(!this[_0x1213('0x5f')])return;this[_0x1213('0x48')]();const _0x30dae4=this[_0x1213('0x5d')](_0x22190d,_0x5b8696);for(const _0x58bfef of _0x30dae4[_0x1213('0x18')])this[_0x1213('0xba')]['set'](_0x58bfef['id'],_0x58bfef);this[_0x1213('0x9e')]['model'][_0x1213('0x8b')]({'isUndoable':!0x1},_0x5a81bf=>{for(const _0x2c5648 of this['editor'][_0x1213('0x2a')][_0x1213('0xf1')][_0x1213('0x3c')]())_0x5a81bf['detachRoot'](_0x2c5648);for(const _0x274cb8 of Object[_0x1213('0xdd')](_0x30dae4[_0x1213('0x2a')])){const _0x3bf811=_0x5a81bf[_0x1213('0x36')](_0x274cb8);for(const _0x4c8b1c of Object[_0x1213('0xdd')](_0x30dae4[_0x1213('0xd4')][_0x274cb8]))_0x5a81bf[_0x1213('0x47')](_0x4c8b1c,_0x30dae4['attributes'][_0x274cb8][_0x4c8b1c],_0x3bf811);_0x5a81bf[_0x1213('0x10d')](_0x30dae4['model'][_0x274cb8],_0x3bf811,0x0);}}),this[_0x1213('0xc1')][_0x1213('0xd')](this[_0x1213('0x6a')](_0x30dae4[_0x1213('0x18')])),this[_0x1213('0xc2')]=!0x0;})[_0x1213('0x22')](_0x39bad5=>{console[_0x1213('0xbb')](_0x39bad5),this['_cleanUp'](),_0x399a1d&&(this[_0x1213('0xc1')]=_0x399a1d),this[_0x1213('0xc2')]=!0x0;});}[_0x1213('0xc4')](_0x5ada96,_0x35f74d){const _0x5c9f42=this[_0x1213('0x10e')]['createRevision'](_0x5ada96);return _0x5c9f42['on'](_0x1213('0x2f'),(_0x47f0a2,_0x19cb74,_0x567f0e)=>_0x35f74d(_0x19cb74,_0x567f0e,_0x5c9f42)),this[_0x1213('0x10e')][_0x1213('0x119')](_0x5c9f42),_0x5c9f42;}[_0x1213('0x28')](_0x12a638){if(!_0x12a638||_0x12a638[_0x1213('0xf2')])return Promise[_0x1213('0xe4')]();{const _0x4aacbc=this[_0x1213('0x9e')]['config']['get'](_0x1213('0x5c'));return this[_0x1213('0x58')][_0x1213('0x76')]({'channelId':_0x4aacbc,'revisionId':_0x12a638['id']})[_0x1213('0xbe')](_0x1a055d=>{_0x12a638['_update']({'diffData':_0x1a055d['diffData']},!0x0);});}}[_0x1213('0x48')](){this[_0x1213('0x4c')]=null,this[_0x1213('0x57')](),this['_changeView']&&this[_0x1213('0xa1')]['destroy'](),this['_changeView']=null,this[_0x1213('0xba')][_0x1213('0x11a')](),this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x8b')]({'isUndoable':!0x1},_0x31bf26=>{for(const _0x9c12d2 of this[_0x1213('0x9e')]['model'][_0x1213('0xf1')][_0x1213('0x3c')]())_0x31bf26[_0x1213('0x8c')](_0x9c12d2);});}[_0x1213('0x6a')](_0x2fda18){const _0x4e5ae3=[],_0x39b84d=new Map();for(const _0x577a2b of this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0xf1')][_0x1213('0x3c')]()){const _0x5104e2=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xee')](_0x577a2b);if(!_0x5104e2)continue;const _0x4307d7=_0x5104e2[_0x1213('0x80')]()['item'](0x0);_0x4307d7&&(_0x4e5ae3[_0x1213('0x102')](_0x577a2b),_0x39b84d[_0x1213('0x17')](_0x577a2b,_0x4307d7));}return _0x4e5ae3[_0x1213('0x1c')]((_0x2d4976,_0x181a2d)=>{const _0x43d8e8=_0x39b84d[_0x1213('0x21')](_0x2d4976),_0xbb0988=_0x39b84d[_0x1213('0x21')](_0x181a2d);return _0x43d8e8['y']-_0xbb0988['y']||_0x43d8e8['x']-_0xbb0988['x'];}),(_0x2fda18=_0x2fda18[_0x1213('0x56')](_0x3f8020=>_0x4e5ae3[_0x1213('0x65')](_0x3f8020[_0x1213('0xed')])))[_0x1213('0x1c')]((_0x5ba5bb,_0x35b5ef)=>_0x4e5ae3[_0x1213('0xb0')](_0x5ba5bb['rootName'])-_0x4e5ae3['indexOf'](_0x35b5ef['rootName'])),_0x2fda18;}[_0x1213('0xa')](_0x4422f7){const _0x3b895d=Array[_0x1213('0x3e')](_0x4422f7[_0x1213('0xe0')])[_0x1213('0x56')](([_0x4921ba,_0x56b8b6])=>_0x4921ba['startsWith'](_0x1213('0x4'))&&!_0x56b8b6[_0x1213('0x100')]),_0x53f118=Array[_0x1213('0x3e')](this['editor'][_0x1213('0x2a')][_0x1213('0x4b')](_0x4422f7)[_0x1213('0x107')]({'singleCharacters':!0x0}));if(0x0!=_0x3b895d['length'])for(const _0x520438 of _0x53f118){const [_0x2b21f3,_0x5e4e52]=_0x3b895d[0x0],[,_0x2fe327,_0x22bbde]=_0x2b21f3[_0x1213('0xf3')](':');if(_0x5e4e52[_0x1213('0x5')]['isEqual'](_0x520438[_0x1213('0x10c')])&&_0x3b895d[_0x1213('0xf6')](),(_0x520438[_0x1213('0x5e')][_0x1213('0x10a')](_0x5e4e52[_0x1213('0x4d')])||_0x520438[_0x1213('0x5e')][_0x1213('0x2')](_0x5e4e52[_0x1213('0x4d')]))&&(_0x1213('0x77')==_0x2fe327?_0x520438['isAdded']={'userId':_0x22bbde}:_0x1213('0x62')==_0x2fe327&&(_0x520438[_0x1213('0xfd')]={'userId':_0x22bbde})),0x0==_0x3b895d[_0x1213('0x30')])break;}return _0x53f118;}['_refreshStartEndIndex'](_0x5c9573){const _0x1a92f6=new Map();for(let _0x38844a=0x0;_0x38844a<_0x5c9573[_0x1213('0x30')];_0x38844a++)_0x1213('0x15')===_0x5c9573[_0x38844a][_0x1213('0x38')]?(_0x5c9573[_0x38844a]['item'][_0x1213('0xc0')]=_0x38844a,_0x5c9573[_0x38844a][_0x1213('0x49')][_0x1213('0x19')]=_0x38844a):('elementStart'===_0x5c9573[_0x38844a][_0x1213('0x38')]?_0x5c9573[_0x38844a][_0x1213('0x49')][_0x1213('0xc0')]=_0x38844a:_0x1213('0x2d')===_0x5c9573[_0x38844a]['type']&&(_0x5c9573[_0x38844a]['item'][_0x1213('0x19')]=_0x38844a),_0x1a92f6[_0x1213('0x17')](_0x5c9573[_0x38844a]['id'],_0x38844a));for(const _0x2dcbe0 of _0x1a92f6['values']())_0x1213('0x110')===_0x5c9573[_0x2dcbe0][_0x1213('0x38')]?_0x5c9573[_0x2dcbe0]['item']['endIndex']=_0x1a92f6['get'](_0x5c9573[_0x2dcbe0]['pairId']):'elementEnd'===_0x5c9573[_0x2dcbe0][_0x1213('0x38')]&&(_0x5c9573[_0x2dcbe0][_0x1213('0x49')][_0x1213('0xc0')]=_0x1a92f6[_0x1213('0x21')](_0x5c9573[_0x2dcbe0][_0x1213('0x20')]));}[_0x1213('0xdb')](_0x3d3e78){for(let _0x3cb531=0x0;_0x3cb531<_0x3d3e78[_0x1213('0x30')];_0x3cb531++){if('elementStart'===_0x3d3e78[_0x3cb531]['type'])_0x3d3e78[_0x3cb531][_0x1213('0x49')][_0x1213('0xc0')]=_0x3cb531;else{if(_0x1213('0x2d')===_0x3d3e78[_0x3cb531][_0x1213('0x38')]){_0x3d3e78[_0x3cb531][_0x1213('0x49')][_0x1213('0x19')]=_0x3cb531;const _0x3e27d3=_0x3d3e78[_0x3cb531]['item'][_0x1213('0xc0')];_0x3d3e78[_0x3e27d3][_0x1213('0x20')]=_0x3d3e78[_0x3cb531]['id'],_0x3d3e78[_0x3cb531][_0x1213('0x20')]=_0x3d3e78[_0x3e27d3]['id'];}else _0x3d3e78[_0x3cb531]['item'][_0x1213('0xc0')]=_0x3cb531,_0x3d3e78[_0x3cb531][_0x1213('0x49')][_0x1213('0x19')]=_0x3cb531,_0x3d3e78[_0x3cb531][_0x1213('0x20')]=null;}_0x3d3e78[_0x3cb531][_0x1213('0x121')]||(_0x3d3e78[_0x3cb531][_0x1213('0x121')]=[],_0x3d3e78[_0x3cb531][_0x1213('0x10')]=[]);}}['_markInsertions'](_0x5ce1a9,_0x2b778d){const _0x4523a2=_0x5ce1a9['filter'](_0x54130c=>!_0x54130c['isAdded']);for(let _0x49cd76=0x0;_0x49cd76<_0x2b778d[_0x1213('0x30')];_0x49cd76++)_0x2b778d[_0x49cd76][_0x1213('0x1a')]&&(_0x4523a2[_0x49cd76]['isAdded']=_0x2b778d[_0x49cd76][_0x1213('0x1a')]);}['_makeModelFromViewString'](_0x3f594e){const _0x4a3686=JSON[_0x1213('0xa6')](_0x3f594e),_0x165c38=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],_0x1e95df=new _0x1d5f57(_0x165c38,_0x4a3686[_0x1213('0xea')](_0x252da8=>this[_0x1213('0x99')](_0x252da8)));return this['editor'][_0x1213('0xaa')]['toModel'](_0x1e95df);}[_0x1213('0x99')](_0x418f2d){const _0x10810d=this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')]['document'];if('string'==typeof _0x418f2d)return new _0x165698(_0x10810d,_0x418f2d);{const _0x7adc32=_0x418f2d[_0x1213('0xf8')][_0x1213('0xea')](_0x83fe39=>this['_getViewObj'](_0x83fe39));return new(tt[_0x418f2d['type']]||_0x376922)(_0x10810d,_0x418f2d[_0x1213('0x53')],_0x418f2d[_0x1213('0xd4')],_0x7adc32);}}[_0x1213('0x5d')](_0x4e4294,_0x5819f0=null){const _0x83ceeb=this[_0x1213('0x10e')][_0x1213('0x76')](_0x4e4294),_0x432e11=_0x5819f0?this[_0x1213('0x10e')]['getRevision'](_0x5819f0):null,_0x2aa6f4=this['_getRevisionsRange'](_0x83ceeb,_0x432e11),_0x5f50ed=_0x2aa6f4[_0x2aa6f4[_0x1213('0x30')]-0x1],_0x5e107d=new Map(),_0x3c5dc8={'model':{},'attributes':{},'changes':[]},_0x3170d9=new Set(),_0x183f9b=new Map();for(let _0x4c632d=_0x2aa6f4[_0x1213('0x30')]-0x1;_0x4c632d>=0x0;_0x4c632d--){const _0x1ab0b1=_0x2aa6f4[_0x4c632d];for(const _0x3b51f8 of Object[_0x1213('0xdd')](_0x1ab0b1[_0x1213('0xf2')]))if(_0x1ab0b1['diffData'][_0x3b51f8][_0x1213('0x5a')]){const _0x6e6bd2=_0x1ab0b1[_0x1213('0xf2')][_0x3b51f8][_0x1213('0x5a')];_0x6e6bd2[_0x1213('0x7c')]?(_0x3170d9['add'](_0x3b51f8),_0x183f9b['has'](_0x3b51f8)&&_0x183f9b[_0x1213('0x21')](_0x3b51f8)[_0x1213('0xbf')]==_0x6e6bd2[_0x1213('0xbf')]?_0x183f9b['delete'](_0x3b51f8):_0x183f9b[_0x1213('0x17')](_0x3b51f8,_0x6e6bd2)):_0x183f9b[_0x1213('0xcd')](_0x3b51f8)?(_0x3170d9[_0x1213('0x60')](_0x3b51f8),_0x183f9b[_0x1213('0x60')](_0x3b51f8)):(_0x3170d9[_0x1213('0x87')](_0x3b51f8),_0x183f9b[_0x1213('0x17')](_0x3b51f8,_0x6e6bd2));}else _0x3170d9[_0x1213('0x87')](_0x3b51f8);}for(const _0x43a38f of _0x3170d9){const _0x16edc7=_0x183f9b[_0x1213('0xcd')](_0x43a38f)&&!_0x183f9b[_0x1213('0x21')](_0x43a38f)[_0x1213('0x7c')];let _0x284643=_0x16edc7?_0x2aa6f4[_0x1213('0x30')]-0x1:0x0;const _0x1080d6=_0x16edc7?-0x1:0x1;for(;_0x2aa6f4[_0x284643];){const _0x35fde1=_0x2aa6f4[_0x284643];if(_0x35fde1[_0x1213('0xf2')][_0x43a38f]){const _0x509ef4=_0x16edc7?_0x35fde1[_0x1213('0xf2')][_0x43a38f][_0x1213('0x101')]:_0x35fde1[_0x1213('0xf2')][_0x43a38f][_0x1213('0x72')];_0x3c5dc8['attributes'][_0x43a38f]=_0x509ef4?_0x5e15b4(_0x509ef4):{};break;}_0x284643+=_0x1080d6;}}for(const _0x1a96b3 of _0x2aa6f4){_0x1a96b3[_0x1213('0x2a')]={};for(const _0x1affad of _0x1a96b3[_0x1213('0x82')])_0x5e107d[_0x1213('0x17')](_0x1affad['id'],_0x1affad);for(const _0x57e5ac of _0x3170d9){const _0xd34724=_0x1a96b3['diffData'][_0x57e5ac]?_0x1a96b3[_0x1213('0xf2')][_0x57e5ac][_0x1213('0x16')]:'[]',_0x473b3c=_0x1a96b3['diffData'][_0x57e5ac]?_0x1a96b3[_0x1213('0xf2')][_0x57e5ac]['deletions']:'[]';_0x1a96b3[_0x1213('0x2a')][_0x57e5ac]={'insertions':this[_0x1213('0x1d')](_0xd34724),'deletions':this[_0x1213('0x1d')](_0x473b3c)};}}for(const _0x399b8f of _0x3170d9){let _0x2e86ae=null,_0x2ef1f9=0x0;const _0x1d722c=new Map(Array[_0x1213('0x3e')](_0x83ceeb[_0x1213('0x2a')][_0x399b8f]['insertions'][_0x1213('0xe0')])['filter'](([_0x53a3ff])=>!_0x53a3ff[_0x1213('0xa9')](_0x1213('0x4'))));let _0x16bac5=0x0;for(const _0x381dfd of _0x2aa6f4){const _0x3e8966=this[_0x1213('0xa')](_0x381dfd['model'][_0x399b8f][_0x1213('0x16')]);_0x381dfd==_0x83ceeb?(_0x2e86ae=_0x3e8966,_0x2ef1f9=_0x2e86ae[_0x1213('0x30')],_0x2e86ae[_0x1213('0xcb')](_0x286fe4=>{_0x286fe4['id']=_0x16bac5++;}),this[_0x1213('0xdb')](_0x2e86ae)):this[_0x1213('0x111')](_0x2e86ae,_0x3e8966);const _0x2768ef=_0x2e86ae[_0x1213('0x56')](_0x35469c=>!_0x35469c[_0x1213('0x1a')])['map'](_0x5d065e=>_0x5d065e['id']);let _0x277253=0x0;const _0x1b69ca=this[_0x1213('0xa')](_0x381dfd['model'][_0x399b8f][_0x1213('0x5b')]);_0x1b69ca['forEach'](_0x313052=>{_0x313052['isRemoved']?_0x313052['id']=_0x2ef1f9++:_0x313052['id']=_0x2768ef[_0x277253++];}),this['_processTape'](_0x1b69ca),this[_0x1213('0x7d')](_0x2e86ae,_0x1213('0x1a')),this[_0x1213('0x7d')](_0x1b69ca,'isRemoved'),_0x381dfd==_0x83ceeb&&this[_0x1213('0x40')](_0x2e86ae,_0x1d722c),_0x2e86ae=this['_joinTapes'](_0x2e86ae,_0x1b69ca),this[_0x1213('0x9c')](_0x2e86ae),this[_0x1213('0x7d')](_0x2e86ae,_0x1213('0xfd'));}_0x2e86ae=_0x2e86ae[_0x1213('0x56')](_0x1039ea=>!(_0x1039ea['isAdded']&&_0x1039ea[_0x1213('0xfd')]));const _0x51ddd5=new Map(_0x5f50ed[_0x1213('0x2a')][_0x399b8f]['deletions'][_0x1213('0xe0')]),_0x3fd12b=new Set(_0x1d722c['keys']());for(const _0x18df3d of _0x51ddd5[_0x1213('0xdd')]())_0x3fd12b[_0x1213('0x60')](_0x18df3d);this[_0x1213('0x54')](_0x2e86ae,_0x3fd12b),this[_0x1213('0xb3')](_0x2e86ae),_0x2e86ae=this[_0x1213('0x11c')](_0x2e86ae),_0x2e86ae=this[_0x1213('0x7')](_0x2e86ae),_0x2e86ae=this[_0x1213('0xac')](_0x2e86ae);const {root:_0x14ad02,changes:_0x34bb61}=this['_makeModelFromTape'](_0x2e86ae,_0x5e107d,_0x399b8f);_0x3c5dc8[_0x1213('0x2a')][_0x399b8f]=_0x14ad02;const _0x58f88f=_0x183f9b['get'](_0x399b8f);if(_0x58f88f){const _0x49fe8c=_0x5e107d[_0x1213('0x21')](_0x58f88f['userId']),_0x335413=new _0x17aba0({'author':_0x49fe8c,'type':_0x58f88f['isAttached']?'add':_0x1213('0xf4'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x399b8f});_0x34bb61[_0x1213('0x9')](_0x335413),_0x3c5dc8[_0x1213('0xd4')][_0x399b8f]['revisionHistoryAttachChange']=_0x335413['id'];}_0x3c5dc8[_0x1213('0x18')]=_0x3c5dc8[_0x1213('0x18')]['concat'](_0x34bb61);}return _0x3c5dc8;}[_0x1213('0x40')](_0x58d1be,_0x50c61d){for(let _0x26913c=0x0;_0x26913c<_0x58d1be[_0x1213('0x30')];_0x26913c++)for(const [_0x2bc055,_0x477b20]of _0x50c61d)_0x477b20[_0x1213('0x4d')][_0x1213('0x10a')](_0x58d1be[_0x26913c][_0x1213('0x5e')])&&_0x58d1be[_0x26913c][_0x1213('0x121')]['push'](_0x2bc055),_0x477b20[_0x1213('0x5')][_0x1213('0x10a')](_0x58d1be[_0x26913c][_0x1213('0x10c')])&&_0x58d1be[_0x26913c]['markersEnd'][_0x1213('0x102')](_0x2bc055);}['_joinTapes'](_0x4cb4cd,_0x32c687){let _0x2249ba=[],_0x249d63=0x0,_0x5f00cf=0x0;for(;_0x249d63<_0x4cb4cd[_0x1213('0x30')]||_0x5f00cf<_0x32c687[_0x1213('0x30')];){const _0x1ed817=_0x4cb4cd[_0x249d63]||{},_0x43f3a1=_0x32c687[_0x5f00cf]||{};if(_0x1ed817['id']==_0x43f3a1['id'])_0x249d63++,_0x5f00cf++,_0x2249ba[_0x1213('0x102')](_0x1ed817);else{if(_0x43f3a1['isRemoved']&&_0x1ed817['isAdded']){const {commonTape:_0x1b8775,iEnd:_0x3f69f4,jEnd:_0x41c60e}=this['_threeWayMerge'](_0x4cb4cd,_0x249d63,_0x32c687,_0x5f00cf);_0x2249ba=_0x2249ba['concat'](_0x1b8775),_0x249d63=_0x3f69f4,_0x5f00cf=_0x41c60e;}else _0x43f3a1[_0x1213('0xfd')]?(_0x5f00cf++,_0x2249ba['push'](_0x43f3a1)):(_0x249d63++,_0x2249ba['push'](_0x1ed817));}}return _0x2249ba;}[_0x1213('0x54')](_0x146b35,_0xd8eac0){const _0x13ee58=[];for(let _0x32011f=0x0;_0x32011f<_0x146b35[_0x1213('0x30')];_0x32011f++){for(let _0x37294e=0x0;_0x37294e<_0x146b35[_0x32011f][_0x1213('0x121')][_0x1213('0x30')];_0x37294e++){const _0x31854d=_0x146b35[_0x32011f][_0x1213('0x121')][_0x37294e];if(!_0xd8eac0['has'](_0x31854d))continue;const {group:_0x3f4930,type:_0x238ee7,authorId:_0x1673f6}=_0x319525(_0x31854d);_0x1213('0x8d')!=_0x3f4930||_0x1213('0x77')!=_0x238ee7&&_0x1213('0x62')!=_0x238ee7||(_0x13ee58['unshift']({'type':_0x238ee7,'name':_0x31854d,'userId':_0x1673f6}),_0x146b35[_0x32011f][_0x1213('0x121')][_0x1213('0x6')](_0x37294e,0x1),_0x37294e--);}_0x9bcc0f(_0x146b35[_0x32011f]);for(let _0x168034=0x0;_0x168034<_0x146b35[_0x32011f][_0x1213('0x10')][_0x1213('0x30')];_0x168034++){const _0x11512c=_0x146b35[_0x32011f][_0x1213('0x10')][_0x168034];if(!_0xd8eac0[_0x1213('0xcd')](_0x11512c))continue;const {group:_0x41a68e,type:_0x188d5a}=_0x319525(_0x11512c);if('revision-suggestion'!=_0x41a68e||_0x1213('0x77')!=_0x188d5a&&_0x1213('0x62')!=_0x188d5a)continue;_0x146b35[_0x32011f][_0x1213('0x10')][_0x1213('0x6')](_0x168034,0x1),_0x168034--;const _0x4a0302=_0x13ee58[_0x1213('0x73')](_0x3f9af1=>_0x3f9af1[_0x1213('0x53')]==_0x11512c);_0x4a0302>-0x1&&_0x13ee58['splice'](_0x4a0302,0x1);}}function _0x319525(_0x3ffbe4){const _0x509f1c=_0x3ffbe4['split'](':');return{'group':_0x509f1c[0x0],'type':_0x509f1c[0x1],'subType':_0x509f1c[_0x1213('0x30')]>=0x5?_0x509f1c[0x2]:null,'id':_0x509f1c[_0x1213('0x30')]<0x5?_0x509f1c[0x2]:_0x509f1c[0x3],'authorId':_0x509f1c[_0x1213('0x30')]<0x5?_0x509f1c[0x3]:_0x509f1c[0x4],'markerCount':0x6==_0x509f1c[_0x1213('0x30')]?_0x509f1c[0x5]:null};}function _0x9bcc0f(_0x1f9a78){for(let _0x247dd5=0x0;_0x247dd5<_0x13ee58[_0x1213('0x30')];_0x247dd5++){if(_0x1f9a78[_0x1213('0x1a')]&&_0x1213('0x77')==_0x13ee58[_0x247dd5][_0x1213('0x38')])return _0x1f9a78[_0x1213('0x3')]=_0x13ee58[_0x247dd5],void delete _0x1f9a78[_0x1213('0x1a')];if(!_0x1f9a78['isAdded']&&!_0x1f9a78['isRemoved']&&_0x1213('0x62')==_0x13ee58[_0x247dd5][_0x1213('0x38')])return void(_0x1f9a78[_0x1213('0x8')]=_0x13ee58[_0x247dd5]);}}}[_0x1213('0x7d')](_0x4f8fb3,_0x3858f7){let _0x51c82f=0x0,_0xdfc5e3=!0x1;const _0x4e5bdb=new Map();for(const _0x407d64 of _0x4f8fb3)_0x407d64[_0x3858f7]?_0xdfc5e3&&(_0x51c82f++,_0xdfc5e3=!0x1):(_0x51c82f++,_0xdfc5e3=!0x0),_0x4e5bdb[_0x1213('0x17')](_0x407d64['id'],_0x51c82f);for(let _0x1f6149=0x0;_0x1f6149<_0x4f8fb3['length'];_0x1f6149++){if(_0x1213('0xfd')==_0x3858f7&&_0x4f8fb3[_0x1f6149]['isAdded']||_0x1213('0x1a')==_0x3858f7&&_0x4f8fb3[_0x1f6149]['isRemoved'])continue;if(_0x1213('0x15')==_0x4f8fb3[_0x1f6149]['type']){_0x4f8fb3[_0x1f6149]['distance']=0x0;continue;}const _0x5b81df=_0x4e5bdb[_0x1213('0x21')](_0x4f8fb3[_0x1f6149][_0x1213('0x20')]),_0x59d25b=_0x4e5bdb['get'](_0x4f8fb3[_0x1f6149]['id']);_0x4f8fb3[_0x1f6149][_0x1213('0x3a')]=_0x5b81df-_0x59d25b;}}['_getRevisionsRange'](_0x42332a,_0x103944,_0xcff62=!0x1){const _0x2b1ed6=[];let _0x47ea0e=this[_0x1213('0x10e')]['getIndex'](_0x42332a),_0x158efe=this['repository'][_0x1213('0xfc')](_0x103944);for(-0x1==_0x158efe&&(_0x158efe=this[_0x1213('0x10e')][_0x1213('0x69')][_0x1213('0x30')],_0xcff62=!0x1);_0x47ea0e<_0x158efe;)_0x2b1ed6['push'](this[_0x1213('0x10e')][_0x1213('0x76')](_0x47ea0e)),_0x47ea0e++;return _0xcff62&&_0x2b1ed6[_0x1213('0x102')](this[_0x1213('0x10e')][_0x1213('0x76')](_0x47ea0e)),_0x2b1ed6;}[_0x1213('0x14')](_0xd73299,_0x2f925d,_0x29b1f4,_0x358617){const _0x55343f=this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x91')];let _0x56fef7=_0x2f925d;for(;_0xd73299[_0x56fef7]&&_0xd73299[_0x56fef7][_0x1213('0x1a')];)_0x56fef7++;let _0x157290=_0x358617;for(;_0x29b1f4[_0x157290]&&_0x29b1f4[_0x157290]['isRemoved'];)_0x157290++;_0x5815a0(_0xd73299,_0x2f925d,_0x56fef7),_0x5815a0(_0x29b1f4,_0x358617,_0x157290);const _0x28951c=_0x29b1f4[_0x1213('0x11b')](_0x358617,_0x157290)[_0x1213('0xa4')](_0xd73299[_0x1213('0x11b')](_0x2f925d,_0x56fef7));return _0x28951c[_0x1213('0x1c')]((_0x905ac3,_0x28fb1c)=>_0x905ac3[_0x1213('0x7f')]!=_0x28fb1c[_0x1213('0x7f')]?_0x905ac3[_0x1213('0x7f')]-_0x28fb1c['side']:_0x905ac3['level']!=_0x28fb1c[_0x1213('0x11')]?_0x905ac3[_0x1213('0x11')]-_0x28fb1c[_0x1213('0x11')]:_0x905ac3['distance']!=_0x28fb1c['distance']?_0x28fb1c[_0x1213('0x3a')]-_0x905ac3[_0x1213('0x3a')]:!!_0x905ac3[_0x1213('0x1a')]!=!!_0x28fb1c['isAdded']?-0x1==_0x905ac3[_0x1213('0x7f')]||0x0==_0x905ac3[_0x1213('0x7f')]?_0x905ac3['isAdded']?-0x1:0x1:_0x905ac3['isAdded']?0x1:-0x1:_0x905ac3[_0x1213('0xd0')]-_0x28fb1c[_0x1213('0xd0')]),{'commonTape':_0x28951c,'iEnd':_0x56fef7,'jEnd':_0x157290};function _0x5815a0(_0x175f7b,_0x3f430b,_0x5b374b){let _0x589de0=-0x1,_0x2b5430=Number['POSITIVE_INFINITY'],_0x7f1dbb=!0x0;for(let _0x1feae1=_0x3f430b;_0x1feae1<_0x5b374b;_0x1feae1++)if(_0x55343f[_0x1213('0x90')](_0x175f7b[_0x1feae1]['item'])||(_0x7f1dbb=!0x1),_0x175f7b[_0x1feae1][_0x1213('0x49')][_0x1213('0xc0')]<_0x3f430b&&(_0x589de0=_0x1feae1),_0x175f7b[_0x1feae1]['item'][_0x1213('0x19')]>=_0x5b374b){_0x2b5430=_0x1feae1;break;}_0x7f1dbb&&(_0x589de0=_0x5b374b-0x1);for(let _0x5c44a1=_0x3f430b;_0x5c44a1<_0x5b374b;_0x5c44a1++)_0x175f7b[_0x5c44a1][_0x1213('0x7f')]=_0x5c44a1<=_0x589de0?-0x1:_0x5c44a1<_0x2b5430?0x0:0x1,_0x175f7b[_0x5c44a1][_0x1213('0xd0')]=_0x5c44a1;let _0x12db43=0x0;for(let _0x270040=_0x3f430b;_0x270040<=_0x589de0;_0x270040++)0x0==_0x175f7b[_0x270040][_0x1213('0x3a')]?_0x175f7b[_0x270040]['level']=_0x12db43:(_0x12db43++,_0x175f7b[_0x270040]['level']=_0x12db43,_0x12db43++);for(let _0x5982ce=_0x3f430b;_0x5982ce<_0x5b374b;_0x5982ce++)0x0==_0x175f7b[_0x5982ce]['side']&&(_0x175f7b[_0x5982ce][_0x1213('0x11')]=_0x12db43);_0x12db43=0x0;for(let _0x39108f=_0x5b374b-0x1;_0x39108f>=_0x2b5430;_0x39108f--)0x0==_0x175f7b[_0x39108f]['distance']?_0x175f7b[_0x39108f]['level']=_0x12db43:(_0x12db43--,_0x175f7b[_0x39108f][_0x1213('0x11')]=_0x12db43,_0x12db43--);}}[_0x1213('0xb3')](_0x534e1c){const _0x77bc85=new Map(),_0x54ac9c=this[_0x1213('0x9e')]['model']['schema'];for(let _0x460168=0x1;_0x460168<_0x534e1c['length'];_0x460168++){let _0x4afdd7,_0x35b030,_0x4e804e;const _0x5de581=_0x534e1c[_0x460168],_0x95fd64=_0x534e1c[_0x460168-0x1];if(_0x1213('0x15')==_0x5de581[_0x1213('0x38')])continue;if(_0x5de581[_0x1213('0x38')]!=_0x95fd64[_0x1213('0x38')])continue;if(!_0x54ac9c[_0x1213('0xb7')](_0x95fd64[_0x1213('0x49')])||_0x54ac9c[_0x1213('0x85')](_0x95fd64[_0x1213('0x49')]))continue;if(!_0x54ac9c[_0x1213('0xb7')](_0x5de581[_0x1213('0x49')])||_0x54ac9c[_0x1213('0x85')](_0x5de581[_0x1213('0x49')]))continue;if((_0x534e1c[_0x460168][_0x1213('0x1a')]||_0x534e1c[_0x460168][_0x1213('0x3')])&&_0x534e1c[_0x460168-0x1][_0x1213('0xfd')])_0x4afdd7=_0x534e1c[_0x460168],_0x35b030=_0x534e1c[_0x460168-0x1],_0x4e804e=_0x460168-0x1;else{if(!_0x534e1c[_0x460168][_0x1213('0xfd')]||!_0x534e1c[_0x460168-0x1][_0x1213('0x1a')]&&!_0x534e1c[_0x460168-0x1]['isAddSuggestion'])continue;_0x4afdd7=_0x534e1c[_0x460168-0x1],_0x35b030=_0x534e1c[_0x460168],_0x4e804e=_0x460168;}const _0x575e67=_0x4afdd7[_0x1213('0x11')]==_0x35b030[_0x1213('0x11')],_0x440b00=Math['abs'](_0x4afdd7[_0x1213('0x11')])<Math[_0x1213('0xb4')](_0x35b030[_0x1213('0x11')])&&0x0==_0x35b030['distance'];(_0x575e67||_0x440b00)&&(_0x77bc85[_0x1213('0x17')](_0x35b030['id'],_0x4afdd7['id']),_0x534e1c[_0x1213('0x6')](_0x4e804e,0x1),_0x460168--,_0x4afdd7[_0x1213('0x1a')]=!0x1);}for(let _0x37bbec=0x0;_0x37bbec<_0x534e1c[_0x1213('0x30')];_0x37bbec++)_0x77bc85['has'](_0x534e1c[_0x37bbec]['pairId'])&&(_0x534e1c[_0x37bbec][_0x1213('0x20')]=_0x77bc85[_0x1213('0x21')](_0x534e1c[_0x37bbec][_0x1213('0x20')]));}['_removeMissingPairs'](_0x3699ff){const _0x5818bb=new Set(_0x3699ff[_0x1213('0xea')](_0x5f1f32=>_0x5f1f32['id']));for(let _0x10aae2=0x0;_0x10aae2<_0x3699ff[_0x1213('0x30')];_0x10aae2++)_0x5818bb[_0x1213('0xcd')](_0x3699ff[_0x10aae2]['pairId'])||0x0==_0x3699ff[_0x10aae2][_0x1213('0x3a')]||(_0x3699ff[_0x10aae2][_0x1213('0xe5')]=!0x0);return _0x3699ff['filter'](_0x2875d7=>!_0x2875d7[_0x1213('0xe5')]);}[_0x1213('0x7')](_0x381393){const _0x2f74f4=new Set();for(let _0x4d3ab3=0x0;_0x4d3ab3<_0x381393['length'];_0x4d3ab3++){if(_0x2f74f4[_0x1213('0xcd')](_0x381393[_0x4d3ab3]['id'])&&_0x381393[_0x4d3ab3][_0x1213('0xfd')]&&(_0x381393[_0x4d3ab3][_0x1213('0xe5')]=!0x0),_0x381393[_0x4d3ab3][_0x1213('0xe5')])continue;if(0x0==_0x381393[_0x4d3ab3][_0x1213('0x3a')])continue;if(_0x1213('0x110')!=_0x381393[_0x4d3ab3]['type'])continue;if(null==_0x381393[_0x4d3ab3][_0x1213('0x20')])continue;let _0x23bfaf=_0x4d3ab3+0x1,_0x4ecdfb=0x0;for(;_0x381393[_0x23bfaf]['id']!=_0x381393[_0x4d3ab3][_0x1213('0x20')];)_0x1213('0x110')==_0x381393[_0x23bfaf]['type']?_0x4ecdfb++:_0x1213('0x2d')==_0x381393[_0x23bfaf][_0x1213('0x38')]&&_0x4ecdfb--,_0x23bfaf++;if(0x0!=_0x4ecdfb){if(_0x381393[_0x4d3ab3][_0x1213('0xfd')])_0x381393[_0x4d3ab3]['isIncorrect']=!0x0;else for(;_0x23bfaf!=_0x4d3ab3;)_0x381393[_0x23bfaf][_0x1213('0xfd')]&&0x0!=_0x381393[_0x23bfaf][_0x1213('0x3a')]&&(_0x381393[_0x23bfaf]['isIncorrect']=!0x0,_0x2f74f4[_0x1213('0x87')](_0x381393[_0x23bfaf][_0x1213('0x20')])),_0x23bfaf--;}}return _0x381393[_0x1213('0x56')](_0xcb2c1a=>!_0xcb2c1a[_0x1213('0xe5')]);}[_0x1213('0xac')](_0x789c67){const _0x34d859=this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x91')];for(let _0x264ee0=0x0;_0x264ee0<_0x789c67[_0x1213('0x30')];_0x264ee0++){if(!(_0x789c67[_0x264ee0]['isAdded']||_0x789c67[_0x264ee0][_0x1213('0x3')]||_0x789c67[_0x264ee0][_0x1213('0xfd')]||_0x789c67[_0x264ee0]['isRemoveSuggestion']))continue;if(0x0==_0x789c67[_0x264ee0][_0x1213('0x3a')])continue;const _0x337209=_0x789c67[_0x264ee0][_0x1213('0x49')];_0x34d859['isBlock'](_0x337209)||_0x34d859['isLimit'](_0x337209)||(_0x789c67[_0x264ee0][_0x1213('0x1a')]&&delete _0x789c67[_0x264ee0][_0x1213('0x1a')],_0x789c67[_0x264ee0][_0x1213('0x3')]&&delete _0x789c67[_0x264ee0][_0x1213('0x3')],_0x789c67[_0x264ee0][_0x1213('0x8')]&&delete _0x789c67[_0x264ee0][_0x1213('0x8')],_0x789c67[_0x264ee0][_0x1213('0xfd')]&&(_0x789c67[_0x264ee0]['isIncorrect']=!0x0));}return _0x789c67['filter'](_0x448e7c=>!_0x448e7c[_0x1213('0xe5')]);}['_makeModelFromTape'](_0x39146a,_0xe92634,_0x3cac77){const _0x217390=new _0x391c97(),_0x547c0b=[],_0x5d7bd8=new Map(),_0x515ba6=this[_0x1213('0x9e')][_0x1213('0x2a')],_0x12b1ca=_0x515ba6[_0x1213('0x91')],_0x37906f=[_0x217390],_0x4c8efd={},_0xe61800={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x33178c=null;const _0x3f2ef2=[0x0];for(let _0x446cb2=0x0;_0x446cb2<_0x39146a[_0x1213('0x30')];_0x446cb2++){let _0x4deeab,_0x4000ae;if(_0x1213('0x110')===_0x39146a[_0x446cb2][_0x1213('0x38')]){_0x4deeab=_0x515ba6[_0x1213('0x1')](_0x217390,_0x3f2ef2);const _0x1a69ae=new _0x6e3159(_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x53')],_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x6d')]());_0x37906f[0x0][_0x1213('0xf7')](_0x1a69ae),_0x3f2ef2['push'](0x0),_0x37906f['unshift'](_0x1a69ae),_0x4000ae=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2),_0x33178c=null;}else{if(_0x1213('0x2d')===_0x39146a[_0x446cb2][_0x1213('0x38')])_0x37906f[_0x1213('0xf6')](),_0x4deeab=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2),_0x3f2ef2[_0x1213('0x23')](),_0x3f2ef2[_0x3f2ef2['length']-0x1]++,_0x4000ae=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2),_0x33178c=null;else{if(_0x4deeab=_0x515ba6[_0x1213('0x1')](_0x217390,_0x3f2ef2),_0x33178c&&_0x231a76(_0x33178c,_0x39146a[_0x446cb2][_0x1213('0x49')]))_0x33178c[_0x1213('0xec')]+=_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0xaa')];else{const _0xd31c16=new _0x5111e1(_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0xaa')],_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x6d')]());_0x37906f[0x0]['_appendChild'](_0xd31c16),_0x33178c=_0xd31c16;}_0x3f2ef2[_0x3f2ef2['length']-0x1]+=_0x39146a[_0x446cb2][_0x1213('0x49')][_0x1213('0x6c')],_0x4000ae=_0x515ba6['createPositionFromPath'](_0x217390,_0x3f2ef2);}}for(const _0x6c1a18 of _0x39146a[_0x446cb2][_0x1213('0x121')])_0x5d7bd8['set'](_0x6c1a18,{'start':_0x4deeab,'end':null});_0x3ea10f('isRemoveSuggestion',_0x446cb2,_0x4deeab,_0x4000ae),_0x3ea10f(_0x1213('0x3'),_0x446cb2,_0x4deeab,_0x4000ae),_0x3ea10f(_0x1213('0xfd'),_0x446cb2,_0x4deeab,_0x4000ae),_0x3ea10f(_0x1213('0x1a'),_0x446cb2,_0x4deeab,_0x4000ae);for(const _0x36aabd of _0x39146a[_0x446cb2][_0x1213('0x10')]){_0x5d7bd8[_0x1213('0x21')](_0x36aabd)[_0x1213('0x5')]=_0x4000ae;}}for(const [_0x13edce,_0x59b087]of _0x5d7bd8){const _0x336809=this[_0x1213('0x9e')]['model'][_0x1213('0xb9')](_0x59b087[_0x1213('0x4d')],_0x59b087[_0x1213('0x5')]);_0x217390[_0x1213('0xe0')][_0x1213('0x17')](_0x13edce,_0x336809);}return _0x547c0b[_0x1213('0x1c')]((_0x1e2b9e,_0xbc555a)=>{const _0x378599=_0x217390[_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0x1e2b9e['id']),_0x18a689=_0x217390[_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0xbc555a['id']);return _0x378599['start'][_0x1213('0x3b')](_0x18a689[_0x1213('0x4d')])?-0x1:_0x378599[_0x1213('0x4d')]['isAfter'](_0x18a689[_0x1213('0x4d')])?0x1:_0x378599['end']['isBefore'](_0x18a689['end'])?-0x1:_0x378599[_0x1213('0x5')][_0x1213('0x2')](_0x18a689[_0x1213('0x5')])?0x1:_0x1213('0x87')===_0x1e2b9e[_0x1213('0x38')]?-0x1:0x1;}),{'root':_0x217390,'changes':_0x547c0b};function _0x3ea10f(_0x56dd20,_0xaf2ab2,_0x462868,_0x1c58e2){const _0x504c85=!!_0x39146a[_0xaf2ab2][_0x56dd20],_0x3deffa=_0x504c85?_0x39146a[_0xaf2ab2][_0x56dd20][_0x1213('0xbf')]:null,_0x537381=_0xaf2ab2===_0x39146a[_0x1213('0x30')]-0x1,_0x500722=_0xe61800[_0x56dd20][0x0],_0x10c3bc=_0x12b1ca['isObject'](_0x39146a[_0xaf2ab2]['item']);!_0x4c8efd[_0x56dd20]&&_0x504c85?_0x4c8efd[_0x56dd20]={'start':_0x462868,'tapeItem':_0x39146a[_0xaf2ab2],'userId':_0x3deffa,'type':_0x56dd20}:_0x4c8efd[_0x56dd20]&&!_0x504c85?(_0x4c8efd[_0x56dd20]['end']=_0x462868,_0x1ad824(_0x4c8efd[_0x56dd20]),_0x4c8efd[_0x56dd20]=null):_0x4c8efd[_0x56dd20]&&_0x504c85&&_0x4c8efd[_0x56dd20]['userId']!==_0x3deffa&&(_0x4c8efd[_0x56dd20]['end']=_0x462868,_0x500722&&_0x500722[_0x1213('0xbf')]===_0x4c8efd[_0x56dd20]['userId']||_0x1ad824(_0x4c8efd[_0x56dd20]),_0x4c8efd[_0x56dd20]={'start':_0x462868,'tapeItem':_0x39146a[_0xaf2ab2],'userId':_0x3deffa,'type':_0x56dd20}),_0x4c8efd[_0x56dd20]&&_0x10c3bc&&('elementStart'!==_0x39146a[_0xaf2ab2][_0x1213('0x38')]||_0x500722&&_0x500722['userId']===_0x3deffa||_0xe61800[_0x56dd20][_0x1213('0x9')]({'userId':_0x3deffa,'object':_0x39146a[_0xaf2ab2][_0x1213('0x49')],'change':_0x4c8efd[_0x56dd20]}),_0x1213('0x2d')===_0x39146a[_0xaf2ab2][_0x1213('0x38')]&&_0x500722&&_0x500722['object']===_0x39146a[_0xaf2ab2][_0x1213('0x49')]&&(_0xe61800[_0x56dd20]['shift'](),_0x4c8efd[_0x56dd20]=_0x500722['change'])),_0x4c8efd[_0x56dd20]&&_0x537381&&(_0x4c8efd[_0x56dd20][_0x1213('0x5')]=_0x1c58e2,_0x1ad824(_0x4c8efd[_0x56dd20]),_0x4c8efd[_0x56dd20]=null);}function _0x1ad824({start:_0x4aae69,end:_0x4fab1d,tapeItem:_0x36da0f,userId:_0x40ae13,type:_0x150390}){const _0x1c6aff=_0x36da0f[_0x1213('0x49')],_0x28bb3d=_0x515ba6[_0x1213('0x91')][_0x1213('0xb7')](_0x1c6aff)&&!_0x515ba6[_0x1213('0x91')][_0x1213('0x85')](_0x1c6aff),_0x112130=_0x4aae69['nodeAfter']==_0x4fab1d['parent']&&_0x4fab1d[_0x1213('0xa7')];if(_0x28bb3d&&_0x112130)return;const _0x116e28=_0x515ba6[_0x1213('0xb9')](_0x4aae69,_0x4fab1d),_0x4e8c2b=_0xe92634[_0x1213('0x21')](_0x40ae13),_0x8467ab=new _0x17aba0({'author':_0x4e8c2b,'type':_0x1213('0x1a')==_0x150390||_0x1213('0x3')==_0x150390?_0x1213('0x87'):_0x1213('0xf4'),'data':{'isSuggestion':'isAddSuggestion'==_0x150390||_0x1213('0x8')==_0x150390},'createdAt':new Date(),'rootName':_0x3cac77});_0x547c0b[_0x1213('0x102')](_0x8467ab),_0x217390[_0x1213('0xe0')][_0x1213('0x17')](_0x1213('0x4')+_0x8467ab['id'],_0x116e28);}function _0x231a76(_0x40b509,_0x195a0d){const _0x363937=_0x40b509[_0x1213('0x6d')](),_0x14d9c9=_0x195a0d['getAttributes']();for(const _0x2d62a3 of _0x363937){if(_0x2d62a3[0x1]!==_0x195a0d[_0x1213('0x105')](_0x2d62a3[0x0]))return!0x1;_0x14d9c9[_0x1213('0x59')]();}return _0x14d9c9[_0x1213('0x59')]()[_0x1213('0x6b')];}}[_0x1213('0x97')](){this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x7a')]({'view':_0x1213('0xc8')}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0xc9'))['markerToHighlight']({'model':_0x1213('0xc8'),'view':_0x276b60=>{const _0xdbd96c=_0x276b60[_0x1213('0x3d')]['split'](':')[0x1],_0x466016=this[_0x1213('0x1e')](_0xdbd96c);if(!_0x466016)return null;const _0x4ee597='add'==_0x466016['type']?_0x1213('0x77'):_0x1213('0x62'),_0x49ce11=[_0x1213('0xd7'),_0x1213('0xd2')+_0x4ee597];return _0x466016['data'][_0x1213('0xbd')]&&_0x49ce11['push']('ck-suggestion-marker-'+_0x4ee597+_0x1213('0x39')),this[_0x1213('0x4c')]==_0x466016&&_0x49ce11[_0x1213('0x102')]('ck-suggestion-marker--active'),{'classes':_0x49ce11,'attributes':{'data-change-id':_0xdbd96c}};}}),this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0x52'))['add'](_0x4faf58=>{_0x4faf58['on'](_0x1213('0x86'),(_0x38ec84,_0xc983d8,_0x1e4b06)=>{const _0x9824cb=_0xc983d8[_0x1213('0x117')][_0x1213('0x89')](0x0);if(!_0x9824cb||!_0x9824cb['is']('element',_0x1213('0x120')))return;if(!_0x1e4b06[_0x1213('0xa0')][_0x1213('0x6f')](_0x9824cb,{'attributes':[_0x1213('0x1b'),_0x1213('0xe8')]}))return;const _0x2375bd=_0xc983d8[_0x1213('0x2e')][_0x1213('0x4d')][_0x1213('0xab')];_0x1e4b06[_0x1213('0xcf')]['setAttribute'](_0x1213('0x1b'),_0x9824cb[_0x1213('0x105')](_0x1213('0x1b')),_0x2375bd),_0x1e4b06[_0x1213('0xcf')][_0x1213('0x47')](_0x1213('0xe8'),_0x9824cb[_0x1213('0x105')](_0x1213('0xe8')),_0x2375bd);},{'priority':_0x1213('0x81')});}),this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x87')](_0x3e329b=>{_0x3e329b['on']('element',(_0x1cee03,_0x105345,_0x4b1421)=>{if(!_0x4b1421[_0x1213('0xa0')][_0x1213('0x6f')](_0x105345[_0x1213('0x117')],{'attributes':[_0x1213('0x1b'),_0x1213('0xe8')]}))return;if(_0x105345[_0x1213('0x2e')]['isCollapsed'])return;const _0x22e863=_0x105345[_0x1213('0x2e')][_0x1213('0x4d')][_0x1213('0xab')];_0x22e863['hasAttribute'](_0x1213('0x1b'))||_0x22e863[_0x1213('0x42')](_0x1213('0xb2'))||(_0x4b1421[_0x1213('0xcf')][_0x1213('0x47')](_0x1213('0x1b'),_0x105345[_0x1213('0x117')]['getAttribute'](_0x1213('0x1b')),_0x22e863),_0x4b1421['writer']['setAttribute'](_0x1213('0xe8'),_0x105345[_0x1213('0x117')][_0x1213('0x105')](_0x1213('0xe8')),_0x22e863));},{'priority':_0x1213('0x81')});}),this['editor']['conversion'][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x3f')]({'view':{'name':_0x1213('0xf0'),'attributes':{'vid':!0x0}},'model':{'key':_0x1213('0xb2'),'value':_0x2b762b=>_0x2b762b['getAttribute'](_0x1213('0xb2'))}}),this[_0x1213('0x9e')]['model']['schema']['on'](_0x1213('0x44'),(_0x4c9c3a,[,_0x3a79fa])=>{['vid_start',_0x1213('0xe8'),_0x1213('0xb2')][_0x1213('0x65')](_0x3a79fa)&&(_0x4c9c3a[_0x1213('0x114')]=!0x0,_0x4c9c3a[_0x1213('0x6e')]());},{'priority':_0x1213('0x43')}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0xd8'))[_0x1213('0x87')](_0x82a8d8=>{_0x82a8d8['on'](_0x1213('0xcc'),(_0x8b8a9c,_0x3cdb7d,_0x4f2350)=>{if('\x20'!=_0x3cdb7d[_0x1213('0x49')][_0x1213('0xaa')]||_0x3cdb7d[_0x1213('0x49')][_0x1213('0xda')][_0x1213('0x24')]>0x1)return;if(!_0x4f2350[_0x1213('0xa0')][_0x1213('0x6f')](_0x3cdb7d[_0x1213('0x49')],_0x8b8a9c[_0x1213('0x53')]))return;const _0x2a747d=_0x4f2350[_0x1213('0xcf')],_0x1012aa=_0x4f2350[_0x1213('0xaf')]['toViewRange'](_0x3cdb7d[_0x1213('0x122')]);_0x2a747d[_0x1213('0xf9')](_0x1012aa,_0x2a747d[_0x1213('0x8a')]('span'));});}),this['editor'][_0x1213('0xe1')][_0x1213('0x93')](_0x1213('0xd8'))[_0x1213('0x98')]({'model':'revision'}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0xe3'),function(_0x568a17){const _0x2e7efa=_0x568a17[_0x1213('0xca')][_0x1213('0x21')](_0x1213('0xe'));return(_0x37fd2d,_0x54c51c,_0x389001)=>{const _0x4798cf=_0x54c51c[_0x1213('0x3d')]['split'](':')[0x1],_0x238400=_0x2e7efa[_0x1213('0x1e')](_0x4798cf);if(!_0x238400)return null;const _0x411db2='add'==_0x238400['type']?'split':_0x1213('0x106');if(!_0x389001['consumable']['test'](_0x54c51c[_0x1213('0xeb')],_0x37fd2d['name']))return;const _0x542c8a=_0x54c51c[_0x1213('0xeb')][_0x1213('0x107')](),_0x576929=_0x54c51c[_0x1213('0xeb')]['start'],_0x44ed2c=_0x568a17[_0x1213('0x2a')]['schema'];let _0x582a63=null,_0x5ddac9=null,_0x5a3fb8=!0x1,_0x2bb342=!0x1;for(const _0x38b2c4 of _0x542c8a){const _0x57decf=_0x38b2c4[_0x1213('0x49')];_0x5a3fb8=_0x5a3fb8||_0x44ed2c[_0x1213('0x11d')](_0x57decf);const _0x8cecf2=_0x389001[_0x1213('0xaf')][_0x1213('0x1f')](_0x57decf);if(_0x8cecf2&&_0x8cecf2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x38b2c4[_0x1213('0x38')]&&(_0x44ed2c['isBlock'](_0x57decf)&&!_0x44ed2c[_0x1213('0x85')](_0x57decf)&&(_0x57decf[_0x1213('0x112')]||_0x576929[_0x1213('0xd9')]?_0x582a63&&_0x582a63['parent']==_0x57decf||(_0x582a63=_0x57decf,_0xa5d28e(_0x38b2c4[_0x1213('0x5e')]),_0x2bb342=!0x0):_0x5ddac9=_0x5ddac9||_0x38b2c4['previousPosition']));}function _0xa5d28e(_0x3b351f){const _0x2639a7=_0x389001[_0x1213('0xcf')]['createUIElement'](_0x1213('0xf0'),{'class':_0x1213('0xd2')+_0x411db2}),_0x2c3fe4=_0x389001['mapper'][_0x1213('0x70')](_0x3b351f);_0x238400[_0x1213('0xaa')]['isSuggestion']&&_0x389001[_0x1213('0xcf')][_0x1213('0xfe')](_0x1213('0xd2')+_0x411db2+_0x1213('0x39'),_0x2639a7),_0x2e7efa['activeChange']==_0x238400&&_0x389001[_0x1213('0xcf')][_0x1213('0xfe')]('ck-suggestion-marker--active',_0x2639a7),_0x389001[_0x1213('0xcf')][_0x1213('0x10d')](_0x2c3fe4,_0x2639a7),_0x389001['mapper'][_0x1213('0xe6')](_0x2639a7,_0x54c51c[_0x1213('0x3d')]);}_0x5a3fb8||_0x2bb342||!_0x5ddac9||_0xa5d28e(_0x5ddac9);};}(this[_0x1213('0x9e')]),{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on']('removeMarker:revision',(_0x3a03ea,_0x2a892e,_0x19e51d)=>{const _0x966af8=_0x19e51d[_0x1213('0xaf')][_0x1213('0xfa')](_0x2a892e[_0x1213('0x3d')]);if(_0x966af8)for(const _0x6d7d47 of _0x966af8)(_0x6d7d47[_0x1213('0x37')](_0x1213('0xb8'))||_0x6d7d47[_0x1213('0x37')](_0x1213('0x95')))&&(_0x19e51d[_0x1213('0xaf')][_0x1213('0x35')](_0x6d7d47,_0x2a892e[_0x1213('0x3d')]),_0x19e51d[_0x1213('0xcf')][_0x1213('0xf4')](_0x6d7d47));},{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0xe3'),(_0x26c92f,_0x4d6da0,_0x24d549)=>{const _0xa3f006=_0x4d6da0[_0x1213('0x3d')][_0x1213('0xf3')](':')[0x1],_0x573506=this[_0x1213('0x1e')](_0xa3f006);if(!_0x573506)return null;const _0x4aa94d=_0x1213('0x87')==_0x573506[_0x1213('0x38')]?_0x1213('0xf3'):'merge';if(_0x24d549[_0x1213('0xa0')]['test'](_0x4d6da0[_0x1213('0xeb')],_0x26c92f['name']))for(const _0x5f0d71 of _0x4d6da0['markerRange']['getItems']()){if(!_0x5f0d71['is'](_0x1213('0x2b'),_0x1213('0xdc')))continue;const _0x10552b=_0x24d549[_0x1213('0xcf')]['createUIElement'](_0x1213('0xf0'),{'class':_0x1213('0xd2')+_0x4aa94d}),_0x2179fc=_0x24d549['mapper'][_0x1213('0x70')](this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x11f')](_0x5f0d71));_0x573506[_0x1213('0xaa')][_0x1213('0xbd')]&&_0x24d549[_0x1213('0xcf')][_0x1213('0xfe')]('ck-suggestion-marker-'+_0x4aa94d+_0x1213('0x39'),_0x10552b),this[_0x1213('0x4c')]==_0x573506&&_0x24d549[_0x1213('0xcf')][_0x1213('0xfe')]('ck-suggestion-marker--active',_0x10552b),_0x24d549[_0x1213('0xcf')][_0x1213('0x10d')](_0x2179fc,_0x10552b),_0x24d549[_0x1213('0xaf')][_0x1213('0xe6')](_0x10552b,_0x4d6da0[_0x1213('0x3d')]);}},{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x2a')]['document']['on']('change',()=>{this[_0x1213('0x9e')][_0x1213('0x7b')]['view']['change'](_0x47db86=>{for(const _0x22233e of this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0xf1')]['getRootNames']()){const _0x163d2d=this['editor'][_0x1213('0x2a')]['document'][_0x1213('0x115')](_0x22233e),_0xfd5747=this[_0x1213('0x9e')][_0x1213('0x7b')]['view']['document'][_0x1213('0x115')](_0x22233e);if(_0xfd5747){const _0x55592b=_0x163d2d['getAttribute']('revisionHistoryAttachChange');if(_0x47db86['removeAttribute'](_0x1213('0x78'),_0xfd5747),_0x47db86[_0x1213('0x55')](_0x1213('0x94'),_0xfd5747),_0x47db86[_0x1213('0x55')]('ck-revision-history-root-remove',_0xfd5747),_0x47db86[_0x1213('0x55')](_0x1213('0x13'),_0xfd5747),_0x55592b){const _0x31f0cf=this[_0x1213('0x1e')](_0x55592b);if(!_0x31f0cf)return null;_0x47db86[_0x1213('0x47')](_0x1213('0x78'),_0x55592b,_0xfd5747),_0x47db86[_0x1213('0xfe')](_0x1213('0x84')+_0x31f0cf[_0x1213('0x38')],_0xfd5747),this[_0x1213('0x4c')]==_0x31f0cf&&_0x47db86[_0x1213('0xfe')](_0x1213('0x13'),_0xfd5747);}}}});}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')]('upcast')['dataToMarker']({'view':_0x1213('0x116'),'model':_0xcd452a=>_0x1213('0xd6')+_0xcd452a,'converterPriority':_0x1213('0x43')}),this[_0x1213('0x9e')]['conversion'][_0x1213('0x93')](_0x1213('0x52'))[_0x1213('0x7a')]({'view':_0x1213('0xc6'),'model':_0x2b01a3=>_0x1213('0xb1')+_0x2b01a3,'converterPriority':'highest'}),this[_0x1213('0x9e')][_0x1213('0xe1')]['for'](_0x1213('0xd8'))[_0x1213('0x98')]({'model':'revision-suggestion','view':_0x406929=>({'name':_0x1213('0xdf')+_0x406929,'group':_0x1213('0x8d')}),'converterPriority':'highest'}),this[_0x1213('0x9e')][_0x1213('0xe1')][_0x1213('0x93')]('editingDowncast')[_0x1213('0x104')]({'model':_0x1213('0x8d'),'view':_0x3e6253=>{const _0x235ed4=_0x3e6253[_0x1213('0x3d')][_0x1213('0xf3')](':')[0x1];return _0x1213('0x77')!=_0x235ed4&&_0x1213('0x62')!=_0x235ed4?null:{'classes':[_0x1213('0x4f'),_0x1213('0x64')+_0x235ed4]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this[_0x1213('0x9e')],'merge'),{'priority':'high'}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0x71'),et(this[_0x1213('0x9e')],_0x1213('0xf3')),{'priority':_0x1213('0xd1')}),this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x46')]['on'](_0x1213('0xef'),(_0x2978f0,_0x46d830,_0x130243)=>{const _0x129454=_0x130243[_0x1213('0xaf')][_0x1213('0xfa')](_0x46d830[_0x1213('0x3d')]);if(_0x129454)for(const _0x400267 of _0x129454)_0x400267['is'](_0x1213('0x33'))&&(_0x130243['mapper'][_0x1213('0x35')](_0x400267,_0x46d830['markerName']),_0x130243[_0x1213('0xcf')][_0x1213('0xf4')](_0x400267));},{'priority':_0x1213('0xd1')});}[_0x1213('0x1e')](_0x355d2f){return this['_changeIdToChange'][_0x1213('0x21')](_0x355d2f);}[_0x1213('0x7e')](_0x323a5b){return this[_0x1213('0xa1')]&&this[_0x1213('0xa1')][_0x1213('0xc7')](),this[_0x1213('0xa1')]=new _0x34ac4c(this[_0x1213('0x9e')][_0x1213('0xad')],_0x323a5b),this[_0x1213('0xa1')];}[_0x1213('0x63')](){this[_0x1213('0x9e')][_0x1213('0x2a')]['document'][_0x1213('0x92')]['observeMarkers'](_0x1213('0xc8')),this['on'](_0x1213('0x45'),(_0x141391,_0x156295,_0x141767,_0x598dfb)=>{_0x598dfb&&this[_0x1213('0xb6')][_0x1213('0xf4')](_0x598dfb),_0x141767&&(this[_0x1213('0xb6')][_0x1213('0x87')]({'view':_0x141767,'stackId':_0x1213('0x68'),'position':{'target':()=>{const _0xf9bdd1=this[_0x1213('0x9e')]['editing'],_0x3c2113=this['_getChangeFromId'](_0x141767['changeId']);let _0x3aa45a;if(_0x3c2113['data']['isOnRoot']){const _0x9ed602=_0xf9bdd1[_0x1213('0x61')][_0x1213('0xee')](_0x3c2113[_0x1213('0xed')]);_0x3aa45a=Array[_0x1213('0x3e')](_0x9ed602[_0x1213('0x80')]());}else{const _0x1c2a8c=this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0x141767[_0x1213('0xf5')]);_0x3aa45a=Array[_0x1213('0x3e')](_0xf9bdd1[_0x1213('0xaf')][_0x1213('0xfa')](_0x1c2a8c[_0x1213('0x53')]))[_0x1213('0xea')](_0x153449=>_0xf9bdd1[_0x1213('0x61')]['domConverter']['mapViewToDom'](_0x153449))['map'](_0x2f2e55=>Array[_0x1213('0x3e')](_0x2f2e55[_0x1213('0x80')]()))[_0x1213('0x118')]();}if(!this[_0x1213('0x96')])return _0x3aa45a[0x0];return _0x3aa45a[_0x1213('0xf')](_0x43714b=>_0x43714b[_0x1213('0x108')]-0x3<=this[_0x1213('0x96')]['y']&&_0x43714b['bottom']+0x3>=this[_0x1213('0x96')]['y']&&_0x43714b[_0x1213('0x31')]-0x3<=this[_0x1213('0x96')]['x']&&_0x43714b[_0x1213('0xe9')]+0x3>=this[_0x1213('0x96')]['x'])||_0x3aa45a[0x0];}}}),this[_0x1213('0xb6')][_0x1213('0x0')](_0x1213('0x68')));}),this['on'](_0x1213('0x51'),(_0x1cd9d2,_0x3072e5,_0x4a07a9,_0x3a235e)=>{this[_0x1213('0x103')]=_0x4a07a9?this[_0x1213('0x7e')](_0x4a07a9):null,this['editor'][_0x1213('0x2a')][_0x1213('0x26')](()=>{const _0x3a1380=this[_0x1213('0x9e')][_0x1213('0x7b')];_0x3a235e&&(_0x3a235e[_0x1213('0xaa')][_0x1213('0x32')]?_0x3a1380['view'][_0x1213('0x26')](_0x4f771a=>{_0x4f771a[_0x1213('0x55')](_0x1213('0x13'),_0x3a1380[_0x1213('0x61')][_0x1213('0xf1')]['getRoot'](_0x3a235e[_0x1213('0xed')]));}):_0x3a1380[_0x1213('0xa8')](_0x1213('0x4')+_0x3a235e['id'])),_0x4a07a9&&(_0x4a07a9[_0x1213('0xaa')]['isOnRoot']?_0x3a1380[_0x1213('0x61')][_0x1213('0x26')](_0x306637=>{_0x306637['addClass'](_0x1213('0x13'),_0x3a1380[_0x1213('0x61')][_0x1213('0xf1')]['getRoot'](_0x4a07a9[_0x1213('0xed')]));}):_0x3a1380[_0x1213('0xa8')]('revision:'+_0x4a07a9['id']));});}),this[_0x1213('0xd3')](this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],'mouseover',(_0x438a64,_0x3acc01)=>{if(this[_0x1213('0x4c')])return;const _0x5cfec2=this[_0x1213('0xc3')](_0x3acc01[_0x1213('0xde')]),_0x3f9043=this[_0x1213('0xba')][_0x1213('0x21')](_0x5cfec2);_0x3f9043?(this[_0x1213('0x96')]={'x':_0x3acc01['domEvent']['x'],'y':_0x3acc01['domEvent']['y']},this[_0x1213('0x103')]=this[_0x1213('0x7e')](_0x3f9043)):(this[_0x1213('0x96')]=null,this[_0x1213('0x103')]=null);}),this['listenTo'](this[_0x1213('0x9e')][_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xf1')],_0x1213('0xbc'),(_0x27e46a,_0x3cdda5)=>{const _0xe56dd1=this[_0x1213('0xc3')](_0x3cdda5[_0x1213('0xde')]),_0x167e7d=this[_0x1213('0xba')][_0x1213('0x21')](_0xe56dd1);_0x167e7d?(this[_0x1213('0x96')]={'x':_0x3cdda5[_0x1213('0xc')]['x'],'y':_0x3cdda5[_0x1213('0xc')]['y']},_0x167e7d===this['activeChange']?this['_balloon'][_0x1213('0x66')]():this[_0x1213('0x4c')]=_0x167e7d):(this['_activeViewTarget']=null,this[_0x1213('0x4c')]=null);});}[_0x1213('0xc3')](_0x14f6ab){do{const _0x267fd9=_0x14f6ab[_0x1213('0x105')](_0x1213('0x78'));if(_0x267fd9)return _0x267fd9;_0x14f6ab=_0x14f6ab[_0x1213('0xda')];}while(_0x14f6ab);return null;}[_0x1213('0x57')](){this[_0x1213('0x9e')][_0x1213('0x2a')][_0x1213('0x26')](_0xe9f1fb=>{for(const _0x15b85c of this['editor'][_0x1213('0x2a')]['markers'])_0xe9f1fb[_0x1213('0xb')](_0x15b85c);});}}function et(_0x22111a,_0x34fd20){return(_0x5df15a,_0x252562,_0x5407d9)=>{if(!_0x5407d9['consumable'][_0x1213('0x109')](_0x252562[_0x1213('0xeb')],_0x5df15a[_0x1213('0x53')]))return;const _0x481cb0=_0x252562[_0x1213('0xeb')][_0x1213('0x107')](),_0x46767c=_0x252562['markerRange'][_0x1213('0x4d')],_0x1dbbb6=_0x22111a['model'][_0x1213('0x91')];let _0x2dfe37=null,_0x887d55=null,_0x257f21=!0x1,_0x241d7b=!0x1;for(const _0x335d22 of _0x481cb0){const _0x373b28=_0x335d22[_0x1213('0x49')];_0x257f21=_0x257f21||_0x1dbbb6[_0x1213('0x11d')](_0x373b28);const _0x3a114f=_0x5407d9[_0x1213('0xaf')][_0x1213('0x1f')](_0x373b28);if(_0x3a114f&&_0x3a114f['getCustomProperty'](_0x1213('0x8f')))return;_0x1213('0x2d')==_0x335d22[_0x1213('0x38')]&&(_0x1dbbb6[_0x1213('0xb7')](_0x373b28)&&!_0x1dbbb6['isLimit'](_0x373b28)&&(_0x373b28['nextSibling']||_0x46767c[_0x1213('0xd9')]?_0x2dfe37&&_0x2dfe37[_0x1213('0xda')]==_0x373b28||(_0x2dfe37=_0x373b28,_0x10cbb2(_0x335d22[_0x1213('0x5e')]),_0x241d7b=!0x0):_0x887d55=_0x887d55||_0x335d22['previousPosition']));}function _0x10cbb2(_0x11ec5a){const _0x137b6b=_0x5407d9['mapper'][_0x1213('0x70')](_0x11ec5a),_0x4a59a9=_0x5407d9[_0x1213('0xcf')][_0x1213('0xa5')](_0x1213('0xf0'),{'class':_0x1213('0x64')+_0x34fd20});_0x5407d9[_0x1213('0xcf')][_0x1213('0x10d')](_0x137b6b,_0x4a59a9),_0x5407d9[_0x1213('0xaf')][_0x1213('0xe6')](_0x4a59a9,_0x252562[_0x1213('0x3d')]);}_0x257f21||_0x241d7b||!_0x887d55||_0x10cbb2(_0x887d55);};}export class RestoreRevisionCommand extends _0x76009b{constructor(_0x242d7e){super(_0x242d7e);const _0x9cf5fd=_0x242d7e[_0x1213('0xca')][_0x1213('0x21')](d);this[_0x1213('0x25')]=!0x1,this[_0x1213('0xd3')](_0x9cf5fd,_0x1213('0xa2'),()=>this[_0x1213('0x2c')]()),this[_0x1213('0xd3')](_0x9cf5fd,'change:isEnabled',()=>this[_0x1213('0x2c')]());}[_0x1213('0x50')](){const _0x5bbc0d=this[_0x1213('0x9e')],_0x320532=_0x5bbc0d[_0x1213('0xca')]['get'](d),_0x200140=_0x320532[_0x1213('0xc2')]?_0x320532['diff']['newRevisionId']:null;_0x5bbc0d[_0x1213('0xfb')][_0x1213('0x21')](_0x1213('0x9b'))['restoreRevisionCallback'](_0x200140);}[_0x1213('0x2c')](){const {isReady:_0x47e2d5,isEnabled:_0xf83eb2}=this[_0x1213('0x9e')][_0x1213('0xca')][_0x1213('0x21')](d);this['isEnabled']=_0x47e2d5&&_0xf83eb2;}}export class ShowChangeCommand extends _0x76009b{constructor(_0x19098a,{direction:_0x3decd5}){super(_0x19098a);const _0x477a80=_0x19098a['plugins'][_0x1213('0x21')](d);this[_0x1213('0x25')]=!0x1,this[_0x1213('0x27')]='forward'===_0x3decd5?0x1:-0x1,this[_0x1213('0xd3')](_0x477a80,_0x1213('0xa2'),()=>this[_0x1213('0x2c')]()),this[_0x1213('0xd3')](_0x477a80,_0x1213('0x41'),()=>this[_0x1213('0x2c')]()),this[_0x1213('0xd3')](_0x477a80,_0x1213('0x51'),()=>this['refresh']());}[_0x1213('0x50')](){const _0x119df5=this[_0x1213('0x9e')],_0x5342af=_0x119df5[_0x1213('0xca')][_0x1213('0x21')](d),{isNavigationMode:_0x23a814,currentChangeNumber:_0x16f2d0}=_0x5342af;let _0x4723bc;if(_0x5342af[_0x1213('0x4c')]=_0x23a814?_0x5342af[_0x1213('0xc1')][_0x1213('0x18')][_0x1213('0x21')](_0x16f2d0+this[_0x1213('0x27')]):_0x5342af[_0x1213('0xc1')][_0x1213('0x18')]['first'],_0x5342af[_0x1213('0x4c')]['data'][_0x1213('0x32')])_0x4723bc=_0x119df5[_0x1213('0x7b')][_0x1213('0x61')][_0x1213('0xee')](_0x5342af['activeChange'][_0x1213('0xed')]);else{const _0x52f5e2=_0x119df5['model'][_0x1213('0xe0')][_0x1213('0x21')](_0x1213('0x4')+_0x5342af[_0x1213('0x4c')]['id']);_0x4723bc=_0xb2fd99(_0x119df5['editing'],_0x52f5e2);}_0x1162e9({'target':_0x4723bc,'viewportOffset':0x28});}[_0x1213('0x2c')](){const {isNavigationMode:_0x3a6dab,currentChangeNumber:_0x14c000,numberOfChanges:_0x20028c,isReady:_0x549c32,isEnabled:_0x110211}=this[_0x1213('0x9e')][_0x1213('0xca')][_0x1213('0x21')](d);this['isEnabled']=!!(_0x110211&&_0x549c32&&_0x20028c)&&(!_0x3a6dab||(0x1===this[_0x1213('0x27')]?_0x14c000<_0x20028c-0x1:_0x14c000>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ecc=['function','action','find','name','extendTemplate','listenTo','isOpen','bind','buttonView','Compare\x20against\x20selected','isEnabled','source','change:isActionsDropdownOpen','execute','isVisible','_action','panelPosition','children','isActionsDropdownOpen','map','bindTemplate','locale','Name\x20this\x20revision','stopPropagation','model','class','items','set'];(function(_0x363f0b,_0x3ecc4c){const _0x35c083=function(_0x496645){while(--_0x496645){_0x363f0b['push'](_0x363f0b['shift']());}};_0x35c083(++_0x3ecc4c);}(_0x3ecc,0x148));const _0x35c0=function(_0x363f0b,_0x3ecc4c){_0x363f0b=_0x363f0b-0x0;let _0x35c083=_0x3ecc[_0x363f0b];return _0x35c083;};import{Collection as _0x2ec760}from'ckeditor5/src/utils';import{icons as _0x1f4cf4}from'ckeditor5/src/core';import{Model as _0x7944ee,addListToDropdown as _0x1219bd,createDropdown as _0x551bd3}from'ckeditor5/src/ui';import{getTranslation as _0x526d9a}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3989ba,_0x16550b){const _0x3c794d=_0x3989ba[_0x35c0('0x0')],_0x5e7409=_0x3989ba[_0x35c0('0x1')],_0x366638=_0x551bd3(_0x5e7409);_0x366638[_0x35c0('0x18')]='sw';const _0xed2f1e=function(_0x255626,_0x45cfb9){const _0x57b639=function(_0x14968c,_0x1580e6){const _0x15198b=_0x14968c['locale'],_0x24271b={'Compare\x20against\x20selected':_0x526d9a(_0x15198b,_0x35c0('0x11')),'Name\x20this\x20revision':_0x526d9a(_0x15198b,_0x35c0('0x2')),'Restore\x20this\x20revision':_0x526d9a(_0x15198b,'Restore\x20this\x20revision')};return _0x1580e6[_0x35c0('0x1b')](_0x5c63f1=>{const _0x8417cd=_0x24271b[_0x5c63f1['name']];return _0x8417cd&&_0x8417cd!==_0x5c63f1[_0x35c0('0xb')]&&(_0x5c63f1[_0x35c0('0xb')]=_0x8417cd),_0x5c63f1;});}(_0x255626,_0x45cfb9),_0x2e7a6f=new _0x2ec760();for(const _0x5f55c8 of _0x57b639){const _0x5cebb6={'type':'button','model':new _0x7944ee({'label':_0x5f55c8[_0x35c0('0xb')],'class':_0x5f55c8[_0x35c0('0x5')],'withText':!0x0,'_action':_0x5f55c8[_0x35c0('0x9')]})};_0x5cebb6[_0x35c0('0x4')][_0x35c0('0xf')](_0x35c0('0x12'))['to'](_0x255626,'isActionsDropdownOpen',_0x40a914=>_0x35c0('0x8')!=typeof _0x5f55c8[_0x35c0('0x12')]||(!_0x40a914||_0x5f55c8[_0x35c0('0x12')](_0x255626))),_0x2e7a6f['add'](_0x5cebb6);}return _0x2e7a6f;}(_0x3989ba,_0x16550b);return _0x3989ba[_0x35c0('0xf')]('isActionsDropdownOpen')['to'](_0x366638,_0x35c0('0xe')),_0x366638[_0x35c0('0x10')][_0x35c0('0x7')]({'label':_0x526d9a(_0x5e7409,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1f4cf4['threeVerticalDots']}),_0x366638[_0x35c0('0xc')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3c794d['if'](_0x35c0('0x1a'),'ck-on')]},'on':{'click':_0x3c794d['to'](_0x57e110=>_0x57e110[_0x35c0('0x3')]())}}),_0x366638['on'](_0x35c0('0x15'),_0x309d9d=>{_0x3989ba['isReady']&&_0x35c0('0x8')==typeof _0x309d9d[_0x35c0('0x13')][_0x35c0('0x17')]&&_0x309d9d['source']['_action'](_0x3989ba);}),_0x1219bd(_0x366638,_0xed2f1e),_0x366638[_0x35c0('0xd')](_0x3989ba,_0x35c0('0x14'),(_0x47b051,_0x3a1f87,_0x1e2f94)=>{if(_0x1e2f94)for(const _0x15a402 of _0x366638['listView'][_0x35c0('0x6')]){const _0xbf5d23=_0x15a402[_0x35c0('0x19')]['first'],_0x11fd16=_0x16550b[_0x35c0('0xa')](_0x2bd606=>_0x2bd606[_0x35c0('0x9')]===_0xbf5d23[_0x35c0('0x17')])[_0x35c0('0x16')];_0x15a402['isVisible']=void 0x0===_0x11fd16||_0x11fd16(_0x3989ba);}}),_0x366638;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d74=['set','Revision\x20creator','push','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name','setTemplate','span','name'];(function(_0x28bf64,_0x2d74e5){const _0x591f74=function(_0x22c065){while(--_0x22c065){_0x28bf64['push'](_0x28bf64['shift']());}};_0x591f74(++_0x2d74e5);}(_0x2d74,0x10f));const _0x591f=function(_0x28bf64,_0x2d74e5){_0x28bf64=_0x28bf64-0x0;let _0x591f74=_0x2d74[_0x28bf64];return _0x591f74;};import{View as _0x36a30b,IconView as _0x4ee893}from'ckeditor5/src/ui';import{getTranslation as _0xff32ed}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x12cd61 from'../../../theme/icons/user.svg';export default class ti extends _0x36a30b{constructor(_0x17c7b9,_0x239041,_0x441fc4){super(_0x17c7b9);const _0x5be20c=new _0x4ee893();_0x5be20c[_0x591f('0x1')]({'content':_0x12cd61,'viewBox':'0\x200\x2011\x2010'});const _0x383076=['ck','ck-revision-history-sidebar__revision-author'];_0x441fc4&&_0x383076[_0x591f('0x3')](_0x591f('0x4'));const _0x3cc6ac=[{'tag':_0x591f('0x7'),'attributes':{'class':['ck',_0x591f('0x5')],'title':_0xff32ed(_0x17c7b9,_0x441fc4?_0x591f('0x2'):'Revision\x20author')},'children':[_0x5be20c,_0x239041[_0x591f('0x0')]]}];this[_0x591f('0x6')]({'tag':'li','attributes':{'class':_0x383076},'children':_0x3cc6ac});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1b84=['ck-revision-history-sidebar__revision-name','set','extendTemplate','Revision\x20name','span'];(function(_0x74e46e,_0x1b8493){var _0x1478a9=function(_0x4b484e){while(--_0x4b484e){_0x74e46e['push'](_0x74e46e['shift']());}};_0x1478a9(++_0x1b8493);}(_0x1b84,0x82));var _0x1478=function(_0x74e46e,_0x1b8493){_0x74e46e=_0x74e46e-0x0;var _0x1478a9=_0x1b84[_0x74e46e];return _0x1478a9;};import{LabeledFieldView as _0xb7cb2b}from'ckeditor5/src/ui';import{getTranslation as _0x14164e}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xb7cb2b{constructor(_0x5dbd6d,_0x5e206d){super(_0x5dbd6d,_0x5e206d),this[_0x1478('0x1')]({'label':_0x14164e(_0x5dbd6d,_0x1478('0x3'))}),this[_0x1478('0x2')]({'tag':_0x1478('0x4'),'attributes':{'class':[_0x1478('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c9a=['listenTo','ck-revision-history-sidebar__revision','closest','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isEnabled','select','filter','length','set','_createdAtFormatted','span','isHighlighted','isReady','srcElement','isActionsDropdownOpen','unshift','isSelected','map','value','name','element','fieldView','deselect','div','ck-revision-history-sidebar__revision__controls-wrapper','setTemplate','.ck-thread__remove-confirm','from','authors','render','extendTemplate','ck-reset','isConfirm','setName','fire','revisionActionsView','creator','ck-revision-history-sidebar__revision-authors','220','createdAt','bind','bindTemplate','ck-revision-history-sidebar__revision-wrapper','revisionNameView','ck-disabled'];(function(_0x32c8a0,_0x3c9a75){const _0x2f1a1d=function(_0x2ffee4){while(--_0x2ffee4){_0x32c8a0['push'](_0x32c8a0['shift']());}};_0x2f1a1d(++_0x3c9a75);}(_0x3c9a,0x139));const _0x2f1a=function(_0x32c8a0,_0x3c9a75){_0x32c8a0=_0x32c8a0-0x0;let _0x2f1a1d=_0x3c9a[_0x32c8a0];return _0x2f1a1d;};import{View as _0xd46608,createLabeledInputText as _0x1ede07}from'ckeditor5/src/ui';import{ConfirmMixin as _0x55d9e7}from'ckeditor5-collaboration/src/collaboration-core';import _0x4e54d6 from'./revisionnameview';import _0x9a18e3 from'./revisionauthorview';import{dateToPrettyFormat as _0x6a888b}from'./utils';import{createActionsDropdownView as _0x3c5242}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x55d9e7(_0xd46608){constructor(_0x3714e6,_0x27325b,_0x3508a1){super(_0x3714e6);const _0x4c2ec6=this[_0x2f1a('0x2b')],_0x26730f=function(_0x30cd50,_0x18c337){const _0x38b097=Array[_0x2f1a('0x1d')](_0x18c337[_0x2f1a('0x1e')])[_0x2f1a('0x8')](_0x12b2e1=>_0x12b2e1!=_0x18c337[_0x2f1a('0x26')]);return _0x18c337[_0x2f1a('0x26')]&&_0x38b097[_0x2f1a('0x11')](_0x18c337[_0x2f1a('0x26')]),_0x38b097[_0x2f1a('0x13')](_0x16922a=>new _0x9a18e3(_0x30cd50,_0x16922a,_0x16922a==_0x18c337[_0x2f1a('0x26')]));}(_0x3714e6,_0x27325b);this['id']=_0x27325b['id'],this['_revision']=_0x27325b,this[_0x2f1a('0x2a')](_0x2f1a('0x15'),_0x2f1a('0x29'))['to'](_0x27325b),this[_0x2f1a('0x2a')](_0x2f1a('0xb'))['to'](this,_0x2f1a('0x29'),_0xa9669f=>_0xa9669f?_0x6a888b(_0x3714e6['uiLanguage'],_0xa9669f):void 0x0),this[_0x2f1a('0xa')](_0x2f1a('0x12'),!0x1),this['set'](_0x2f1a('0xd'),!0x1),this[_0x2f1a('0xa')]('isActionsDropdownOpen',!0x1),this[_0x2f1a('0xa')](_0x2f1a('0xe'),!0x1),this[_0x2f1a('0xa')](_0x2f1a('0x6'),!0x1),this[_0x2f1a('0x0')]=new _0x4e54d6(_0x3714e6,_0x1ede07),this[_0x2f1a('0x0')][_0x2f1a('0x17')][_0x2f1a('0x20')]({'attributes':{'maxlength':_0x2f1a('0x28')}}),this[_0x2f1a('0x0')]['fieldView'][_0x2f1a('0x2a')]('value','placeholder')['to'](this,'name','_createdAtFormatted'),this[_0x2f1a('0x0')][_0x2f1a('0x2a')](_0x2f1a('0x6'))['to'](this,_0x2f1a('0x12'),this,_0x2f1a('0x6'),(_0x35f508,_0x288a89)=>_0x35f508&&_0x288a89),this[_0x2f1a('0x25')]=_0x3508a1&&_0x3508a1[_0x2f1a('0x9')]?_0x3c5242(this,_0x3508a1):'',this[_0x2f1a('0x25')]&&this[_0x2f1a('0x25')][_0x2f1a('0x2a')](_0x2f1a('0x6'))['to'](this),this[_0x2f1a('0x1b')]({'tag':_0x2f1a('0x19'),'attributes':{'class':['ck',_0x2f1a('0x21'),_0x2f1a('0x2c'),_0x4c2ec6['if'](_0x2f1a('0x22'),_0x2f1a('0x5'))]},'children':[{'tag':_0x2f1a('0x19'),'attributes':{'class':['ck',_0x2f1a('0x21'),_0x2f1a('0x3'),_0x4c2ec6['if']('isEnabled',_0x2f1a('0x1'),_0x31ce9a=>!_0x31ce9a),_0x4c2ec6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4c2ec6['if'](_0x2f1a('0xd'),'ck-revision-history-sidebar__revision_highlighted'),_0x4c2ec6['if'](_0x2f1a('0x10'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x2f1a('0x0')],{'tag':_0x2f1a('0xc'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x4c2ec6['to'](_0x2f1a('0xb'))}]},{'tag':'div','attributes':{'class':['ck',_0x2f1a('0x1a')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2f1a('0x27')]},'children':_0x26730f}]},this[_0x2f1a('0x25')]],'on':{'click':_0x4c2ec6['to'](_0x5d1405=>{_0x5d1405[_0x2f1a('0xf')][_0x2f1a('0x4')](_0x2f1a('0x1c'))||this[_0x2f1a('0xe')]&&this[_0x2f1a('0x6')]&&this[_0x2f1a('0x24')](_0x2f1a('0x7'),{'id':this['id']});})}}]});}[_0x2f1a('0x1f')](){super[_0x2f1a('0x1f')]();const _0x4b01ff=this['revisionNameView'][_0x2f1a('0x17')][_0x2f1a('0x16')];this[_0x2f1a('0x2')](_0x4b01ff,'change',()=>{this[_0x2f1a('0x24')](_0x2f1a('0x23'),{'id':this['id'],'name':_0x4b01ff[_0x2f1a('0x14')]});});}[_0x2f1a('0x7')](){this['isSelected']=!0x0;}[_0x2f1a('0x18')](){this['isSelected']=!0x1;}['highlight'](){this[_0x2f1a('0xd')]=!0x0;}['unhighlight'](){this[_0x2f1a('0xd')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3585=['isVisible','ck-hidden','click','set','span','ck-revision-history-sidebar__subrevision-collapser','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','_isCollapsed','false'];(function(_0x2dad78,_0x358598){const _0x1315d4=function(_0xb3bc3b){while(--_0xb3bc3b){_0x2dad78['push'](_0x2dad78['shift']());}};_0x1315d4(++_0x358598);}(_0x3585,0x124));const _0x1315=function(_0x2dad78,_0x358598){_0x2dad78=_0x2dad78-0x0;let _0x1315d4=_0x3585[_0x2dad78];return _0x1315d4;};import{View as _0x96397d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x96397d{constructor(_0xfd1d1d){super(_0xfd1d1d);const _0x463d2d=this['bindTemplate'];this[_0x1315('0x1')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1315('0x4')]({'tag':'span','attributes':{'class':['ck',_0x1315('0x3'),_0x463d2d['if'](_0x1315('0x8'),_0x1315('0x9'),_0x110e57=>!_0x110e57),_0x463d2d['if'](_0x1315('0x6'),_0x1315('0x5'))],'role':'button','aria-pressed':_0x463d2d['to']('_isCollapsed',_0x28ca7e=>_0x28ca7e?_0x1315('0x7'):'true')},'children':[{'tag':_0x1315('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x463d2d['to'](_0x1315('0x0'))}});}['toggle'](){this['_isCollapsed']=!this['_isCollapsed'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f1e=['uiLanguage','ck-revision-history-sidebar__revision-authors','set','_parentRevisionId','deselect','fire','ck-reset','createdAt','ck-revision-history-sidebar__revision','select','ck-revision-history-sidebar__revision__date','isSelected','_createdAtFormatted','creator','bind'];(function(_0x45824f,_0x5f1e10){const _0x1aab36=function(_0x46f211){while(--_0x46f211){_0x45824f['push'](_0x45824f['shift']());}};_0x1aab36(++_0x5f1e10);}(_0x5f1e,0x188));const _0x1aab=function(_0x45824f,_0x5f1e10){_0x45824f=_0x45824f-0x0;let _0x1aab36=_0x5f1e[_0x45824f];return _0x1aab36;};import{View as _0x361cf9}from'ckeditor5/src/ui';import _0x1b3851 from'./revisionauthorview';import{dateToPrettyFormat as _0x58855a}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x361cf9{constructor(_0x107c20,_0x3053ef,_0x5d8481){super(_0x107c20);const _0x1c901a=this['bindTemplate'];this['id']=_0x3053ef['id'],this[_0x1aab('0xc')](_0x1aab('0x5'))['to'](_0x3053ef),this[_0x1aab('0x0')](_0x1aab('0x9'),!0x1),this['bind'](_0x1aab('0xa'))['to'](this,_0x1aab('0x5'),_0x1b9a40=>_0x1b9a40?_0x58855a(_0x107c20[_0x1aab('0xd')],_0x1b9a40):void 0x0),this[_0x1aab('0x1')]=_0x5d8481,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x1aab('0x4'),_0x1aab('0x6'),'ck-revision-history-sidebar__subrevision',_0x1c901a['if'](_0x1aab('0x9'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x1aab('0x8')]},'children':[{'text':_0x1c901a['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x1aab('0xe')]},'children':[new _0x1b3851(_0x107c20,_0x3053ef[_0x1aab('0xb')],!0x0)]}],'on':{'click':_0x1c901a['to'](this[_0x1aab('0x7')]['bind'](this))}});}[_0x1aab('0x7')](){this[_0x1aab('0x9')]=!0x0,this[_0x1aab('0x3')](_0x1aab('0x7'),{'parentId':this[_0x1aab('0x1')]});}[_0x1aab('0x2')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1f19=['toLocaleTimeString','numeric','long','toLocaleDateString'];(function(_0x505754,_0x1f199c){var _0x5a4101=function(_0x3af230){while(--_0x3af230){_0x505754['push'](_0x505754['shift']());}};_0x5a4101(++_0x1f199c);}(_0x1f19,0x1b5));var _0x5a41=function(_0x505754,_0x1f199c){_0x505754=_0x505754-0x0;var _0x5a4101=_0x1f19[_0x505754];return _0x5a4101;};export function dateToPrettyFormat(_0x3ac531,_0x255e85){return _0x255e85[_0x5a41('0x2')](_0x3ac531,{'month':_0x5a41('0x1'),'day':_0x5a41('0x0')})+',\x20'+_0x255e85[_0x5a41('0x3')](_0x3ac531,{'hour':_0x5a41('0x0'),'minute':_0x5a41('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5258=['revisionNameInputValue','add','saveButtonView','revisionNameInputView','arrowleft','_createRevisionNameInput','revisionName','render','ck-responsive-form','listenTo','delegate','_createButton','check','Name\x20of\x20the\x20revision\x20(optional)','fieldView','trim','tab','setTemplate','_focusCycler','shift\x20+\x20tab','locale','focusTracker','value','cancelButtonView','keystrokes','type','focusFirst','ck-button-cancel','set','_focusables','cancel','forEach','ck-revision-history-save-revision-form','focus','arrowup','reset','element','ck-button-save','Cancel'];(function(_0x48ce20,_0x525892){const _0x3035c2=function(_0x120116){while(--_0x120116){_0x48ce20['push'](_0x48ce20['shift']());}};_0x3035c2(++_0x525892);}(_0x5258,0x196));const _0x3035=function(_0x48ce20,_0x525892){_0x48ce20=_0x48ce20-0x0;let _0x3035c2=_0x5258[_0x48ce20];return _0x3035c2;};import{icons as _0x2ea65d}from'ckeditor5/src/core';import{ButtonView as _0x279106,FocusCycler as _0x10587a,LabeledFieldView as _0x451609,View as _0x24175c,ViewCollection as _0x2cbaf1,createLabeledInputText as _0x29d283,injectCssTransitionDisabler as _0x3ad813,submitHandler as _0x4645a4}from'ckeditor5/src/ui';import{FocusTracker as _0x217453,KeystrokeHandler as _0x2f7cef}from'ckeditor5/src/utils';import{getTranslation as _0x56ddcf}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x24175c{constructor(_0x5a27d7){super(_0x5a27d7),this[_0x3035('0x5')]=new _0x217453(),this[_0x3035('0x8')]=new _0x2f7cef(),this[_0x3035('0xc')]('revisionNameInputValue',''),this[_0x3035('0x1a')]=this['_createRevisionNameInput'](),this[_0x3035('0x19')]=this['_createButton'](_0x56ddcf(_0x5a27d7,'Save'),_0x2ea65d[_0x3035('0x23')],_0x3035('0x15')),this[_0x3035('0x19')][_0x3035('0x9')]='submit',this[_0x3035('0x7')]=this[_0x3035('0x22')](_0x56ddcf(_0x5a27d7,_0x3035('0x16')),_0x2ea65d[_0x3035('0xe')],_0x3035('0xb'),_0x3035('0xe')),this[_0x3035('0xd')]=new _0x2cbaf1(),this[_0x3035('0x2')]=new _0x10587a({'focusables':this[_0x3035('0xd')],'focusTracker':this[_0x3035('0x5')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x3035('0x3'),'focusNext':_0x3035('0x0')}}),this[_0x3035('0x1')]({'tag':'form','attributes':{'class':['ck',_0x3035('0x10'),_0x3035('0x1f')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this[_0x3035('0x7')]]}),_0x3ad813(this);}[_0x3035('0x1e')](){super['render'](),_0x4645a4({'view':this}),([this[_0x3035('0x1a')],this[_0x3035('0x19')],this[_0x3035('0x7')]][_0x3035('0xf')](_0x2539e4=>{this['_focusables'][_0x3035('0x18')](_0x2539e4),this[_0x3035('0x5')]['add'](_0x2539e4[_0x3035('0x14')]);}),this[_0x3035('0x8')][_0x3035('0x20')](this[_0x3035('0x14')]));const _0x4cccb8=_0x24aba3=>_0x24aba3['stopPropagation']();this[_0x3035('0x8')][_0x3035('0xc')]('arrowright',_0x4cccb8),this['keystrokes'][_0x3035('0xc')](_0x3035('0x1b'),_0x4cccb8),this[_0x3035('0x8')][_0x3035('0xc')](_0x3035('0x12'),_0x4cccb8),this[_0x3035('0x8')]['set']('arrowdown',_0x4cccb8);}[_0x3035('0x11')](){this['_focusCycler'][_0x3035('0xa')]();}get[_0x3035('0x1d')](){return this[_0x3035('0x1a')][_0x3035('0x25')][_0x3035('0x14')][_0x3035('0x6')][_0x3035('0x26')]();}set[_0x3035('0x1d')](_0x370e76){this[_0x3035('0x1a')][_0x3035('0x25')][_0x3035('0x14')]['value']=_0x370e76[_0x3035('0x26')]();}[_0x3035('0x13')](){this['revisionNameInputView']['fieldView'][_0x3035('0x14')][_0x3035('0x6')]='';}[_0x3035('0x1c')](){const _0xd5a264=new _0x451609(this[_0x3035('0x4')],_0x29d283),_0xc041f8=_0xd5a264['fieldView'];return _0xc041f8['extendTemplate']({'attributes':{'maxlength':'220'}}),_0xd5a264['label']=_0x56ddcf(this[_0x3035('0x4')],_0x3035('0x24')),_0xc041f8['on']('input',()=>{this[_0x3035('0x17')]=_0xc041f8['element'][_0x3035('0x6')][_0x3035('0x26')]();}),_0xd5a264;}[_0x3035('0x22')](_0xd45ebe,_0x35e292,_0x20c22e,_0x20fb60){const _0x2b22c4=new _0x279106(this[_0x3035('0x4')]);return _0x2b22c4[_0x3035('0xc')]({'label':_0xd45ebe,'icon':_0x35e292,'tooltip':!0x0}),_0x2b22c4['extendTemplate']({'attributes':{'class':_0x20c22e}}),_0x20fb60&&_0x2b22c4[_0x3035('0x21')]('execute')['to'](this,_0x20fb60),_0x2b22c4;}}
|