@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231011.0 → 0.0.0-nightly-20231013.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 _0x2fb1=['default','newRevisionId','conversion','_revisions','addMarker:revision-suggestion:deletion','isEnabled','compare','deletion','find','unshift','low','_getChangeFromId','isBlock','wrap','addRevisionData','concat','ck-suggestion-preview-marker','_fixObsoleteTags','repository','isNavigationMode','maxOffset','isRemoved','addRevision','_getDiff','first','init','isContent','activeView','removeMarker:revision','roots','getClientRects','ck-revision-history-root-','splice','userId','attributes','isReady','mouseover','range','adapter','_makeModelFromViewString','oldRevisionId','attribute:vid','softBreak','markerName','getChild','revisionHistoryAttachChange','vid','upcast','activeChange','_threeWayMerge','attributesAfter','editingDowncast','isCollapsed','editor','processor','from','delete','change:numberOfChanges','getIndex','consumable','highest','uiElement','toViewPosition','markerNameToElements','startsWith','nodeAfter','consume','locale','all','change:activeView','model','_balloon','mousedown','clear','removeClass','next','shift','name','_step','ck-suggestion-marker-merge','includes','document','pairId','string','end','_appendChild','elementStart','vid_start','commands','showStack','selection','destroy','filter','bindElementToMarker','execute','_removeUnsupportedChanges','ck-editor__editable__overlay','getRevisionData','isObject','dataToMarker','writer','addMarker:revision-suggestion:insertion','revision-viewer','createPositionFromPath','changes','useFillerType','forward','change:isEnabled','isAddSuggestion','RevisionsRepository','has','_data','code','insertions','requires','_setDistance','modelRange','_makeModelFromTape','revision-suggestion','level','_activeViewTarget','bind','elementToAttribute','revision:','_cleanUp','keys','downcastDispatcher','enableReadOnlyMode','ck-suggestion-preview-marker-','suggestion:','getDomRoot','POSITIVE_INFINITY','isInline','distance','ck-suggestion-marker-','collaboration.channelId','observeMarkers','getRootNames','isLimit','dataDowncast','mapper','push','ck-revision-history-root-add','_refreshStartEndIndex','_markSuggestions','_joinTapes','attachChange','children','isIncorrect','revision-suggestion:','plugins','_update','refresh','nextSibling','test','createRange','addClass','backward','sort','_removeRevisionMarkers','rootName','change:isReady','removeAttribute','get','nextPosition','isBefore','bottom','domEvent','affectsData','_processTape','getAttribute','add','left','start','_markMarkers','enqueueChange','createRevision','ck-revision-history-root-remove','span','changeId','done','_cleanMarkers','revisionHistoryLabel','isEqual','resolve','data-change-id','markerRange','restoreRevision','text','then','split','getItems','getRevision','isAtEnd','target','getAttributes','_findChangeIdFromDomTarget','getCustomProperty','indexOf','toViewRange','addHighlight','RevisionViewer','isAfter','getWalker','editing','toModel','_markMismatchedRemovedTags','_getViewObj','markersEnd','numberOfChanges','createUIElement','isSuggestion','deletions','change:activeChange','-new','_getRevisionsRange','WidgetToolbarRepository','schema','for','endIndex','_getViewForChange','high','hasClass','element','remove','stop','index','showNextChange','authors','parse','isRemoveSuggestion','_changeView','removeMarker:revision-suggestion','setAttribute','markerToHighlight','startIndex','currentChangeNumber','ck-suggestion-marker--active','item','loadRevisionData','createRangeIn','isOnRoot','set','toViewElement','listenTo','type','_removeMissingPairs','abs','insert','_markInsertions','addMarker:revision','revisionHistory','viewItem','isAtStart','vid_end','insertion','_changeIdToChange','config','createAttributeElement','_sortAndFilterDiffChanges','comment','ck-revision-history-root--active','unbindElementFromMarkerName','getRoot','error','view','isAdded','map','reconvertMarker','diffData','parent','checkAttribute','side','length','elementEnd','_initInteractions','merge','pluginName','change','pop','previousPosition','markers','revision','slice','revision-start','right','data','isAttached','attributesBefore','diff','_setChanges','forEach','markersStart'];(function(_0x4b9377,_0x2fb1d5){const _0x186ab0=function(_0x59b1e2){while(--_0x59b1e2){_0x4b9377['push'](_0x4b9377['shift']());}};_0x186ab0(++_0x2fb1d5);}(_0x2fb1,0x77));const _0x186a=function(_0x4b9377,_0x2fb1d5){_0x4b9377=_0x4b9377-0x0;let _0x186ab0=_0x2fb1[_0x4b9377];return _0x186ab0;};import{Plugin as _0x55afca,Command as _0x49ffb8}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x225745}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1acc54}from'ckeditor5/src/ui';import{DocumentFragment as _0xbee08,Element as _0x5e7e65,Text as _0x57c2d3,ViewDocumentFragment as _0x4ec7a3,ViewText as _0x3a18cf,ViewElement as _0x4247fb,ViewContainerElement as _0x52cfd0,ViewAttributeElement as _0x2bbe70,ViewEmptyElement as _0x507be4,ViewRawElement as _0x4ba731,ViewUIElement as _0x579a40}from'ckeditor5/src/engine';import{Users as _0x27136f,getMarkerDomElement as _0x20bc80}from'ckeditor5-collaboration/src/collaboration-core';import _0x514d1f from'./ui/revisionviewer/changedetailsview';import _0x113ba8 from'./revisionsrepository';import _0x3c4202 from'./changeitem';import{default as _0x209175}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x40b5ea}from'lodash-es';const tt={'c':_0x52cfd0,'a':_0x2bbe70,'e':_0x507be4,'r':_0x4ba731,'u':_0x579a40};export default class d extends _0x55afca{static get[_0x186a('0x9e')](){return _0x186a('0x52');}static get[_0x186a('0x120')](){return[_0x27136f,_0x1acc54,_0x113ba8];}constructor(_0xa9bfa8){super(_0xa9bfa8),this[_0x186a('0xc0')]=this[_0x186a('0xe3')]['plugins'][_0x186a('0x2c')](_0x186a('0x11b')),this[_0x186a('0x7b')](_0x186a('0xde'),null),this[_0x186a('0x7b')](_0x186a('0xc9'),null),this[_0x186a('0x1')]=null,this[_0x186a('0x7b')](_0x186a('0xaa'),null),this[_0x186a('0x7b')](_0x186a('0xd1'),!0x1),this[_0x186a('0x7b')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1e3c31,_0x4ea8ff,_0x370549)=>{this[_0x186a('0xde')]=null,this['activeView']=null,this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0x9f')](_0x2dda9e=>{for(const _0x3a9174 of this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')][_0x186a('0xcb')])_0x370549?_0x2dda9e[_0x186a('0xf8')](_0x186a('0x10e'),_0x3a9174):_0x2dda9e[_0x186a('0x25')](_0x186a('0x10e'),_0x3a9174);});}),this[_0x186a('0x2')](_0x186a('0xc1'))['to'](this,_0x186a('0xde'),_0xf33359=>null!==_0xf33359),this[_0x186a('0x2')](_0x186a('0x75'))['to'](this,_0x186a('0xd1'),this,_0x186a('0xaa'),this,_0x186a('0xde'),(_0x5d430f,_0x2ff8ec,_0x35f08c)=>_0x5d430f&&_0x35f08c?_0x2ff8ec['changes'][_0x186a('0xe8')](_0x35f08c):0x0),this[_0x186a('0x2')](_0x186a('0x5a'))['to'](this,_0x186a('0xd1'),this,'diff',(_0x4936cd,_0x1b3686)=>_0x4936cd?_0x1b3686[_0x186a('0x116')]['length']:0x0),this[_0x186a('0x70')]=null,this[_0x186a('0x89')]=new Map(),this['adapter']=null,this[_0x186a('0xf5')]=this[_0x186a('0xe3')][_0x186a('0x1f')]['get'](_0x1acc54);}[_0x186a('0xc7')](){const _0x17774e=this[_0x186a('0xe3')],_0x57c3bb=new ShowChangeCommand(_0x17774e,{'direction':_0x186a('0x26')}),_0xdb091b=new ShowChangeCommand(_0x17774e,{'direction':_0x186a('0x118')});(_0x17774e[_0x186a('0x106')][_0x186a('0x34')]('showPreviousChange',_0x57c3bb),_0x17774e[_0x186a('0x106')]['add'](_0x186a('0x6c'),_0xdb091b),_0x17774e[_0x186a('0x106')][_0x186a('0x34')](_0x186a('0x44'),new RestoreRevisionCommand(_0x17774e)),this['on'](_0x186a('0xe7'),()=>{_0x57c3bb['refresh'](),_0xdb091b[_0x186a('0x21')]();}),this['_setConversion'](),this[_0x186a('0x9c')](),_0x17774e[_0x186a('0x8')](_0x186a('0x114')),_0x17774e[_0x186a('0x1f')][_0x186a('0x11c')](_0x186a('0x61')))&&_0x17774e[_0x186a('0x1f')][_0x186a('0x2c')](_0x186a('0x61'))['forceDisabled'](_0x186a('0x114'));}async[_0x186a('0x10f')](_0x5635b9){await this[_0x186a('0x78')](_0x5635b9);const _0x2b330d={};for(const _0xdeca6d in _0x5635b9[_0x186a('0x96')]){if(_0x5635b9[_0x186a('0x96')][_0xdeca6d][_0x186a('0x1b')]&&!_0x5635b9[_0x186a('0x96')][_0xdeca6d]['attachChange'][_0x186a('0xa8')])continue;const _0x5c53f0=this[_0x186a('0x28')](JSON['parse'](_0x5635b9[_0x186a('0x96')][_0xdeca6d]['insertions'])),_0x359f21=this[_0x186a('0xe3')]['editing'][_0x186a('0x92')][_0x186a('0xff')],_0x3010bc=new _0x4ec7a3(_0x359f21,_0x5c53f0[_0x186a('0x94')](_0x5e44eb=>this['_getViewObj'](_0x5e44eb)));this[_0x186a('0xe3')]['data']['processor']['useFillerType']('marked'),_0x2b330d[_0xdeca6d]=this['editor'][_0x186a('0xa7')][_0x186a('0xe4')]['toData'](_0x3010bc),this['editor']['data'][_0x186a('0xe4')][_0x186a('0x117')](_0x186a('0xae'));}return _0x2b330d;}async['getRevisionRootsAttributes'](_0x309e56){await this[_0x186a('0x78')](_0x309e56);const _0x1e991e={};for(const _0x2995dd in _0x309e56[_0x186a('0x96')])_0x309e56[_0x186a('0x96')][_0x2995dd]['attachChange']&&!_0x309e56[_0x186a('0x96')][_0x2995dd][_0x186a('0x1b')][_0x186a('0xa8')]||(_0x1e991e[_0x2995dd]=_0x309e56[_0x186a('0x96')][_0x2995dd][_0x186a('0xe0')]||{});return _0x1e991e;}[_0x186a('0x28')](_0x24b548){return(_0x24b548=_0x24b548['filter'](_0x5d235f=>!_0x5d235f['name']||_0x186a('0xa5')!==_0x5d235f['name']&&'revision-end'!==_0x5d235f[_0x186a('0xfb')]))[_0x186a('0xac')](_0x3a4882=>{_0x186a('0x101')!=typeof _0x3a4882&&(_0x3a4882[_0x186a('0x1c')]=this[_0x186a('0x28')](_0x3a4882['children']),_0x3a4882[_0x186a('0xd0')]=_0x3a4882[_0x186a('0xd0')]['filter'](_0x4de715=>!_0x4de715[0x0][_0x186a('0xee')]('data-revision-')));}),_0x24b548;}async[_0x186a('0xb4')](_0x191a92,_0x5e8443,_0x32a694=!0x1){if(!this['isEnabled'])return;const _0x4eaaf9=this[_0x186a('0xaa')],_0x55fbc6=this[_0x186a('0xc0')],_0x54e34a=_0x186a('0x101')==typeof _0x191a92?_0x55fbc6[_0x186a('0x49')](_0x191a92):_0x191a92,_0x5378e5=_0x186a('0x101')==typeof _0x5e8443?_0x55fbc6[_0x186a('0x49')](_0x5e8443):_0x5e8443,_0x32d8bb=_0x54e34a['id'],_0x12f825=_0x5378e5?_0x5378e5['id']:null;if(!_0x32a694&&this[_0x186a('0xaa')]&&this[_0x186a('0xaa')][_0x186a('0xaf')]===_0x32d8bb&&this[_0x186a('0xaa')][_0x186a('0xd6')]===_0x12f825)return Promise[_0x186a('0x41')]();this['isReady']=!0x1,this[_0x186a('0xc9')]=null,this[_0x186a('0xde')]=null,this[_0x186a('0xaa')]=new _0x209175(_0x32d8bb,_0x12f825);const _0x3bd632=this['_getRevisionsRange'](_0x54e34a,_0x5378e5,!0x0)[_0x186a('0x94')](_0x155f0b=>this[_0x186a('0x78')](_0x155f0b));return _0x3bd632[_0x186a('0x16')](new Promise(_0x3c6fec=>{setTimeout(_0x3c6fec,0x14);})),Promise[_0x186a('0xf2')](_0x3bd632)[_0x186a('0x46')](()=>{if(!this[_0x186a('0xb3')])return;this[_0x186a('0x5')]();const _0x3416ee=this[_0x186a('0xc5')](_0x32d8bb,_0x12f825);for(const _0x33d429 of _0x3416ee[_0x186a('0x116')])this[_0x186a('0x89')][_0x186a('0x7b')](_0x33d429['id'],_0x33d429);this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x38')]({'isUndoable':!0x1},_0x458c5f=>{for(const _0x4e792d of this[_0x186a('0xe3')][_0x186a('0xf4')]['document']['getRootNames']())_0x458c5f['detachRoot'](_0x4e792d);for(const _0x2d430a of Object[_0x186a('0x6')](_0x3416ee[_0x186a('0xf4')])){const _0x2dd5b1=_0x458c5f['addRoot'](_0x2d430a);for(const _0x2958b3 of Object[_0x186a('0x6')](_0x3416ee[_0x186a('0xd0')][_0x2d430a]))_0x458c5f[_0x186a('0x72')](_0x2958b3,_0x3416ee[_0x186a('0xd0')][_0x2d430a][_0x2958b3],_0x2dd5b1);_0x458c5f[_0x186a('0x81')](_0x3416ee[_0x186a('0xf4')][_0x2d430a],_0x2dd5b1,0x0);}}),this[_0x186a('0xaa')][_0x186a('0xab')](this[_0x186a('0x8c')](_0x3416ee[_0x186a('0x116')])),this[_0x186a('0xd1')]=!0x0;})['catch'](_0x2899b6=>{console[_0x186a('0x91')](_0x2899b6),this[_0x186a('0x5')](),_0x4eaaf9&&(this[_0x186a('0xaa')]=_0x4eaaf9),this[_0x186a('0xd1')]=!0x0;});}[_0x186a('0xbc')](_0x174310,_0x2fe01e){const _0x549da4=this[_0x186a('0xc0')][_0x186a('0x39')](_0x174310);return _0x549da4['on'](_0x186a('0x20'),(_0x4a8171,_0x4b22fa,_0x2e7fc8)=>_0x2fe01e(_0x4b22fa,_0x2e7fc8,_0x549da4)),this[_0x186a('0xc0')][_0x186a('0xc4')](_0x549da4),_0x549da4;}[_0x186a('0x78')](_0x5bcb6a){if(!_0x5bcb6a||_0x5bcb6a[_0x186a('0x96')])return Promise['resolve']();{const _0x5b6814=this['editor'][_0x186a('0x8a')][_0x186a('0x2c')](_0x186a('0x10'));return this[_0x186a('0xd4')][_0x186a('0x49')]({'channelId':_0x5b6814,'revisionId':_0x5bcb6a['id']})[_0x186a('0x46')](_0x45d14d=>{_0x5bcb6a['_update']({'diffData':_0x45d14d[_0x186a('0x96')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x186a('0x70')][_0x186a('0x109')](),this[_0x186a('0x70')]=null,this['_changeIdToChange'][_0x186a('0xf7')](),this[_0x186a('0xe3')]['model'][_0x186a('0x38')]({'isUndoable':!0x1},_0x27ff19=>{for(const _0x53e404 of this['editor'][_0x186a('0xf4')][_0x186a('0xff')][_0x186a('0x12')]())_0x27ff19['detachRoot'](_0x53e404);});}[_0x186a('0x8c')](_0x58b0c1){const _0x2efeed=[],_0x2b5986=new Map();for(const _0x370208 of this[_0x186a('0xe3')][_0x186a('0xf4')]['document']['getRootNames']()){const _0x119b9e=this['editor'][_0x186a('0x55')]['view']['getDomRoot'](_0x370208);if(!_0x119b9e)continue;const _0x4a1382=_0x119b9e[_0x186a('0xcc')]()['item'](0x0);_0x4a1382&&(_0x2efeed[_0x186a('0x16')](_0x370208),_0x2b5986[_0x186a('0x7b')](_0x370208,_0x4a1382));}return _0x2efeed[_0x186a('0x27')]((_0x3e762e,_0x58c7c8)=>{const _0x861cb3=_0x2b5986[_0x186a('0x2c')](_0x3e762e),_0x532624=_0x2b5986[_0x186a('0x2c')](_0x58c7c8);return _0x861cb3['y']-_0x532624['y']||_0x861cb3['x']-_0x532624['x'];}),(_0x58b0c1=_0x58b0c1[_0x186a('0x10a')](_0x4412c7=>_0x2efeed[_0x186a('0xfe')](_0x4412c7[_0x186a('0x29')])))[_0x186a('0x27')]((_0x550ef0,_0x2a2be7)=>_0x2efeed[_0x186a('0x4f')](_0x550ef0[_0x186a('0x29')])-_0x2efeed[_0x186a('0x4f')](_0x2a2be7[_0x186a('0x29')])),_0x58b0c1;}['_makeTape'](_0x390337){const _0x5dde86=Array[_0x186a('0xe5')](_0x390337['markers'])[_0x186a('0x10a')](([_0x5cf352,_0x1ff598])=>_0x5cf352[_0x186a('0xee')]('revision:')&&!_0x1ff598['isCollapsed']),_0x2f8dd1=Array['from'](this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x79')](_0x390337)[_0x186a('0x54')]({'singleCharacters':!0x0}));if(0x0!=_0x5dde86[_0x186a('0x9a')])for(const _0x4004df of _0x2f8dd1){const [_0x152b1e,_0xb76f57]=_0x5dde86[0x0],[,_0x2acd22,_0x570467]=_0x152b1e[_0x186a('0x47')](':');if(_0xb76f57[_0x186a('0x102')]['isEqual'](_0x4004df[_0x186a('0x2d')])&&_0x5dde86['shift'](),(_0x4004df['previousPosition'][_0x186a('0x40')](_0xb76f57[_0x186a('0x36')])||_0x4004df[_0x186a('0xa1')]['isAfter'](_0xb76f57[_0x186a('0x36')]))&&(_0x186a('0x88')==_0x2acd22?_0x4004df[_0x186a('0x93')]={'userId':_0x570467}:_0x186a('0xb5')==_0x2acd22&&(_0x4004df['isRemoved']={'userId':_0x570467})),0x0==_0x5dde86[_0x186a('0x9a')])break;}return _0x2f8dd1;}[_0x186a('0x18')](_0x4c931d){const _0x94add2=new Map();for(let _0x349e62=0x0;_0x349e62<_0x4c931d['length'];_0x349e62++)_0x186a('0x45')===_0x4c931d[_0x349e62][_0x186a('0x7e')]?(_0x4c931d[_0x349e62][_0x186a('0x77')][_0x186a('0x74')]=_0x349e62,_0x4c931d[_0x349e62]['item']['endIndex']=_0x349e62):(_0x186a('0x104')===_0x4c931d[_0x349e62]['type']?_0x4c931d[_0x349e62][_0x186a('0x77')][_0x186a('0x74')]=_0x349e62:_0x186a('0x9b')===_0x4c931d[_0x349e62][_0x186a('0x7e')]&&(_0x4c931d[_0x349e62][_0x186a('0x77')]['endIndex']=_0x349e62),_0x94add2['set'](_0x4c931d[_0x349e62]['id'],_0x349e62));for(const _0x15d34f of _0x94add2['values']())'elementStart'===_0x4c931d[_0x15d34f]['type']?_0x4c931d[_0x15d34f][_0x186a('0x77')][_0x186a('0x64')]=_0x94add2[_0x186a('0x2c')](_0x4c931d[_0x15d34f]['pairId']):_0x186a('0x9b')===_0x4c931d[_0x15d34f][_0x186a('0x7e')]&&(_0x4c931d[_0x15d34f][_0x186a('0x77')][_0x186a('0x74')]=_0x94add2[_0x186a('0x2c')](_0x4c931d[_0x15d34f]['pairId']));}['_processTape'](_0x1a8f3c){for(let _0x3623d3=0x0;_0x3623d3<_0x1a8f3c['length'];_0x3623d3++){if('elementStart'===_0x1a8f3c[_0x3623d3][_0x186a('0x7e')])_0x1a8f3c[_0x3623d3][_0x186a('0x77')][_0x186a('0x74')]=_0x3623d3;else{if(_0x186a('0x9b')===_0x1a8f3c[_0x3623d3]['type']){_0x1a8f3c[_0x3623d3][_0x186a('0x77')][_0x186a('0x64')]=_0x3623d3;const _0x142500=_0x1a8f3c[_0x3623d3][_0x186a('0x77')][_0x186a('0x74')];_0x1a8f3c[_0x142500][_0x186a('0x100')]=_0x1a8f3c[_0x3623d3]['id'],_0x1a8f3c[_0x3623d3][_0x186a('0x100')]=_0x1a8f3c[_0x142500]['id'];}else _0x1a8f3c[_0x3623d3]['item']['startIndex']=_0x3623d3,_0x1a8f3c[_0x3623d3][_0x186a('0x77')]['endIndex']=_0x3623d3,_0x1a8f3c[_0x3623d3][_0x186a('0x100')]=null;}_0x1a8f3c[_0x3623d3][_0x186a('0xad')]||(_0x1a8f3c[_0x3623d3][_0x186a('0xad')]=[],_0x1a8f3c[_0x3623d3][_0x186a('0x59')]=[]);}}[_0x186a('0x82')](_0x13fcf6,_0x50ac76){const _0x13e04a=_0x13fcf6[_0x186a('0x10a')](_0x47f865=>!_0x47f865[_0x186a('0x93')]);for(let _0x100137=0x0;_0x100137<_0x50ac76['length'];_0x100137++)_0x50ac76[_0x100137][_0x186a('0x93')]&&(_0x13e04a[_0x100137][_0x186a('0x93')]=_0x50ac76[_0x100137]['isAdded']);}['_makeModelFromViewString'](_0x274887){const _0x280f90=JSON[_0x186a('0x6e')](_0x274887),_0x27a95e=this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')],_0x427074=new _0x4ec7a3(_0x27a95e,_0x280f90[_0x186a('0x94')](_0x2b8b72=>this['_getViewObj'](_0x2b8b72)));return this[_0x186a('0xe3')]['data'][_0x186a('0x56')](_0x427074);}[_0x186a('0x58')](_0x1a240e){const _0x1361ff=this['editor'][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')];if('string'==typeof _0x1a240e)return new _0x3a18cf(_0x1361ff,_0x1a240e);{const _0x54ee0c=_0x1a240e[_0x186a('0x1c')][_0x186a('0x94')](_0x50a585=>this[_0x186a('0x58')](_0x50a585));return new(tt[_0x1a240e['type']]||_0x4247fb)(_0x1361ff,_0x1a240e[_0x186a('0xfb')],_0x1a240e[_0x186a('0xd0')],_0x54ee0c);}}[_0x186a('0xc5')](_0x35441f,_0x5502ff=null){const _0x48299b=this['repository'][_0x186a('0x49')](_0x35441f),_0x3509e9=_0x5502ff?this['repository']['getRevision'](_0x5502ff):null,_0x421705=this[_0x186a('0x60')](_0x48299b,_0x3509e9),_0x52814f=_0x421705[_0x421705['length']-0x1],_0x5f4fad=new Map(),_0xe026f5={'model':{},'attributes':{},'changes':[]},_0x3ce817=new Set(),_0x2b0014=new Map();for(let _0x3946c1=_0x421705[_0x186a('0x9a')]-0x1;_0x3946c1>=0x0;_0x3946c1--){const _0x582d7c=_0x421705[_0x3946c1];for(const _0x5efdb8 of Object[_0x186a('0x6')](_0x582d7c[_0x186a('0x96')]))if(_0x582d7c['diffData'][_0x5efdb8][_0x186a('0x1b')]){const _0x26ba13=_0x582d7c['diffData'][_0x5efdb8][_0x186a('0x1b')];_0x26ba13[_0x186a('0xa8')]?(_0x3ce817[_0x186a('0x34')](_0x5efdb8),_0x2b0014['has'](_0x5efdb8)&&_0x2b0014['get'](_0x5efdb8)[_0x186a('0xcf')]==_0x26ba13[_0x186a('0xcf')]?_0x2b0014['delete'](_0x5efdb8):_0x2b0014[_0x186a('0x7b')](_0x5efdb8,_0x26ba13)):_0x2b0014[_0x186a('0x11c')](_0x5efdb8)?(_0x3ce817[_0x186a('0xe6')](_0x5efdb8),_0x2b0014[_0x186a('0xe6')](_0x5efdb8)):(_0x3ce817[_0x186a('0x34')](_0x5efdb8),_0x2b0014[_0x186a('0x7b')](_0x5efdb8,_0x26ba13));}else _0x3ce817[_0x186a('0x34')](_0x5efdb8);}for(const _0x1d2d10 of _0x3ce817){const _0x3d55e7=_0x2b0014[_0x186a('0x11c')](_0x1d2d10)&&!_0x2b0014[_0x186a('0x2c')](_0x1d2d10)['isAttached'];let _0x3fc5d2=_0x3d55e7?_0x421705[_0x186a('0x9a')]-0x1:0x0;const _0x27093c=_0x3d55e7?-0x1:0x1;for(;_0x421705[_0x3fc5d2];){const _0x4f94cf=_0x421705[_0x3fc5d2];if(_0x4f94cf['diffData'][_0x1d2d10]){const _0xd08410=_0x3d55e7?_0x4f94cf[_0x186a('0x96')][_0x1d2d10][_0x186a('0xa9')]:_0x4f94cf[_0x186a('0x96')][_0x1d2d10][_0x186a('0xe0')];_0xe026f5['attributes'][_0x1d2d10]=_0xd08410?_0x40b5ea(_0xd08410):{};break;}_0x3fc5d2+=_0x27093c;}}for(const _0x584584 of _0x421705){_0x584584['model']={};for(const _0x51e47f of _0x584584[_0x186a('0x6d')])_0x5f4fad[_0x186a('0x7b')](_0x51e47f['id'],_0x51e47f);for(const _0x446c4a of _0x3ce817){const _0x5c8ba6=_0x584584['diffData'][_0x446c4a]?_0x584584[_0x186a('0x96')][_0x446c4a][_0x186a('0x11f')]:'[]',_0x14fdd9=_0x584584[_0x186a('0x96')][_0x446c4a]?_0x584584[_0x186a('0x96')][_0x446c4a][_0x186a('0x5d')]:'[]';_0x584584[_0x186a('0xf4')][_0x446c4a]={'insertions':this[_0x186a('0xd5')](_0x5c8ba6),'deletions':this[_0x186a('0xd5')](_0x14fdd9)};}}for(const _0x3dc270 of _0x3ce817){let _0x4adc77=null,_0x5d00b0=0x0;const _0x1cce75=new Map(Array['from'](_0x48299b['model'][_0x3dc270][_0x186a('0x11f')][_0x186a('0xa2')])['filter'](([_0x397f03])=>!_0x397f03['startsWith'](_0x186a('0x4'))));let _0x50d1bd=0x0;for(const _0x399350 of _0x421705){const _0x171624=this['_makeTape'](_0x399350[_0x186a('0xf4')][_0x3dc270][_0x186a('0x11f')]);_0x399350==_0x48299b?(_0x4adc77=_0x171624,_0x5d00b0=_0x4adc77['length'],_0x4adc77['forEach'](_0x4b55ac=>{_0x4b55ac['id']=_0x50d1bd++;}),this[_0x186a('0x32')](_0x4adc77)):this[_0x186a('0x82')](_0x4adc77,_0x171624);const _0x3b8087=_0x4adc77[_0x186a('0x10a')](_0x65c7be=>!_0x65c7be[_0x186a('0x93')])[_0x186a('0x94')](_0x162b73=>_0x162b73['id']);let _0x862a6=0x0;const _0x24934b=this['_makeTape'](_0x399350[_0x186a('0xf4')][_0x3dc270][_0x186a('0x5d')]);_0x24934b[_0x186a('0xac')](_0x488da6=>{_0x488da6[_0x186a('0xc3')]?_0x488da6['id']=_0x5d00b0++:_0x488da6['id']=_0x3b8087[_0x862a6++];}),this[_0x186a('0x32')](_0x24934b),this[_0x186a('0x121')](_0x4adc77,_0x186a('0x93')),this[_0x186a('0x121')](_0x24934b,_0x186a('0xc3')),_0x399350==_0x48299b&&this[_0x186a('0x37')](_0x4adc77,_0x1cce75),_0x4adc77=this[_0x186a('0x1a')](_0x4adc77,_0x24934b),this['_refreshStartEndIndex'](_0x4adc77),this['_setDistance'](_0x4adc77,_0x186a('0xc3'));}_0x4adc77=_0x4adc77[_0x186a('0x10a')](_0x344633=>!(_0x344633['isAdded']&&_0x344633[_0x186a('0xc3')]));const _0x3040c0=new Map(_0x52814f['model'][_0x3dc270][_0x186a('0x5d')]['markers']),_0x2b0394=new Set(_0x1cce75['keys']());for(const _0x1464fb of _0x3040c0['keys']())_0x2b0394['delete'](_0x1464fb);this['_markSuggestions'](_0x4adc77,_0x2b0394),this['_fixObsoleteTags'](_0x4adc77),_0x4adc77=this[_0x186a('0x7f')](_0x4adc77),_0x4adc77=this[_0x186a('0x57')](_0x4adc77),_0x4adc77=this[_0x186a('0x10d')](_0x4adc77);const {root:_0x2a8105,changes:_0x3f003d}=this[_0x186a('0x123')](_0x4adc77,_0x5f4fad,_0x3dc270);_0xe026f5[_0x186a('0xf4')][_0x3dc270]=_0x2a8105;const _0xed9b1c=_0x2b0014['get'](_0x3dc270);if(_0xed9b1c){const _0xd64cc3=_0x5f4fad[_0x186a('0x2c')](_0xed9b1c[_0x186a('0xcf')]),_0x135764=new _0x3c4202({'author':_0xd64cc3,'type':_0xed9b1c['isAttached']?_0x186a('0x34'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3dc270});_0x3f003d[_0x186a('0xb7')](_0x135764),_0xe026f5['attributes'][_0x3dc270][_0x186a('0xdb')]=_0x135764['id'];}_0xe026f5['changes']=_0xe026f5[_0x186a('0x116')][_0x186a('0xbd')](_0x3f003d);}return _0xe026f5;}[_0x186a('0x37')](_0x40d656,_0x3f053f){for(let _0x744bde=0x0;_0x744bde<_0x40d656[_0x186a('0x9a')];_0x744bde++)for(const [_0x5c483d,_0x56aa9b]of _0x3f053f)_0x56aa9b[_0x186a('0x36')][_0x186a('0x40')](_0x40d656[_0x744bde][_0x186a('0xa1')])&&_0x40d656[_0x744bde][_0x186a('0xad')]['push'](_0x5c483d),_0x56aa9b[_0x186a('0x102')][_0x186a('0x40')](_0x40d656[_0x744bde][_0x186a('0x2d')])&&_0x40d656[_0x744bde][_0x186a('0x59')][_0x186a('0x16')](_0x5c483d);}['_joinTapes'](_0x21bd76,_0x47e454){let _0x8b5886=[],_0x3c3384=0x0,_0x2dd731=0x0;for(;_0x3c3384<_0x21bd76[_0x186a('0x9a')]||_0x2dd731<_0x47e454[_0x186a('0x9a')];){const _0x1efa21=_0x21bd76[_0x3c3384]||{},_0x35e5a7=_0x47e454[_0x2dd731]||{};if(_0x1efa21['id']==_0x35e5a7['id'])_0x3c3384++,_0x2dd731++,_0x8b5886[_0x186a('0x16')](_0x1efa21);else{if(_0x35e5a7['isRemoved']&&_0x1efa21[_0x186a('0x93')]){const {commonTape:_0x3e984c,iEnd:_0x5006ae,jEnd:_0xae4988}=this[_0x186a('0xdf')](_0x21bd76,_0x3c3384,_0x47e454,_0x2dd731);_0x8b5886=_0x8b5886['concat'](_0x3e984c),_0x3c3384=_0x5006ae,_0x2dd731=_0xae4988;}else _0x35e5a7[_0x186a('0xc3')]?(_0x2dd731++,_0x8b5886[_0x186a('0x16')](_0x35e5a7)):(_0x3c3384++,_0x8b5886[_0x186a('0x16')](_0x1efa21));}}return _0x8b5886;}[_0x186a('0x19')](_0x51c147,_0x4ca741){const _0x210516=[];for(let _0x2cdb3c=0x0;_0x2cdb3c<_0x51c147[_0x186a('0x9a')];_0x2cdb3c++){for(let _0xb5b8cb=0x0;_0xb5b8cb<_0x51c147[_0x2cdb3c]['markersStart'][_0x186a('0x9a')];_0xb5b8cb++){const _0x3b683e=_0x51c147[_0x2cdb3c][_0x186a('0xad')][_0xb5b8cb];if(!_0x4ca741[_0x186a('0x11c')](_0x3b683e))continue;const {group:_0x29f426,type:_0x1d0983,authorId:_0x56ca01}=_0x3c7cdd(_0x3b683e);'revision-suggestion'!=_0x29f426||_0x186a('0x88')!=_0x1d0983&&'deletion'!=_0x1d0983||(_0x210516[_0x186a('0xb7')]({'type':_0x1d0983,'name':_0x3b683e,'userId':_0x56ca01}),_0x51c147[_0x2cdb3c][_0x186a('0xad')][_0x186a('0xce')](_0xb5b8cb,0x1),_0xb5b8cb--);}_0x41ea84(_0x51c147[_0x2cdb3c]);for(let _0x48b282=0x0;_0x48b282<_0x51c147[_0x2cdb3c][_0x186a('0x59')][_0x186a('0x9a')];_0x48b282++){const _0x40b3e8=_0x51c147[_0x2cdb3c][_0x186a('0x59')][_0x48b282];if(!_0x4ca741[_0x186a('0x11c')](_0x40b3e8))continue;const {group:_0x5a3f64,type:_0x45b82b}=_0x3c7cdd(_0x40b3e8);if(_0x186a('0x124')!=_0x5a3f64||'insertion'!=_0x45b82b&&_0x186a('0xb5')!=_0x45b82b)continue;_0x51c147[_0x2cdb3c][_0x186a('0x59')][_0x186a('0xce')](_0x48b282,0x1),_0x48b282--;const _0x655a15=_0x210516['findIndex'](_0x261ed4=>_0x261ed4[_0x186a('0xfb')]==_0x40b3e8);_0x655a15>-0x1&&_0x210516[_0x186a('0xce')](_0x655a15,0x1);}}function _0x3c7cdd(_0xd33459){const _0x348421=_0xd33459[_0x186a('0x47')](':');return{'group':_0x348421[0x0],'type':_0x348421[0x1],'subType':_0x348421[_0x186a('0x9a')]>=0x5?_0x348421[0x2]:null,'id':_0x348421[_0x186a('0x9a')]<0x5?_0x348421[0x2]:_0x348421[0x3],'authorId':_0x348421[_0x186a('0x9a')]<0x5?_0x348421[0x3]:_0x348421[0x4],'markerCount':0x6==_0x348421[_0x186a('0x9a')]?_0x348421[0x5]:null};}function _0x41ea84(_0x24637a){for(let _0x123663=0x0;_0x123663<_0x210516['length'];_0x123663++){if(_0x24637a[_0x186a('0x93')]&&_0x186a('0x88')==_0x210516[_0x123663][_0x186a('0x7e')])return _0x24637a['isAddSuggestion']=_0x210516[_0x123663],void delete _0x24637a['isAdded'];if(!_0x24637a[_0x186a('0x93')]&&!_0x24637a[_0x186a('0xc3')]&&_0x186a('0xb5')==_0x210516[_0x123663][_0x186a('0x7e')])return void(_0x24637a[_0x186a('0x6f')]=_0x210516[_0x123663]);}}}[_0x186a('0x121')](_0x16ca87,_0x2758cf){let _0x55cc67=0x0,_0x23f9a9=!0x1;const _0x158d5d=new Map();for(const _0x5156cd of _0x16ca87)_0x5156cd[_0x2758cf]?_0x23f9a9&&(_0x55cc67++,_0x23f9a9=!0x1):(_0x55cc67++,_0x23f9a9=!0x0),_0x158d5d[_0x186a('0x7b')](_0x5156cd['id'],_0x55cc67);for(let _0x1ee767=0x0;_0x1ee767<_0x16ca87[_0x186a('0x9a')];_0x1ee767++){if('isRemoved'==_0x2758cf&&_0x16ca87[_0x1ee767][_0x186a('0x93')]||'isAdded'==_0x2758cf&&_0x16ca87[_0x1ee767]['isRemoved'])continue;if('text'==_0x16ca87[_0x1ee767][_0x186a('0x7e')]){_0x16ca87[_0x1ee767][_0x186a('0xe')]=0x0;continue;}const _0x3b19e0=_0x158d5d['get'](_0x16ca87[_0x1ee767][_0x186a('0x100')]),_0x37a35d=_0x158d5d[_0x186a('0x2c')](_0x16ca87[_0x1ee767]['id']);_0x16ca87[_0x1ee767]['distance']=_0x3b19e0-_0x37a35d;}}['_getRevisionsRange'](_0x260f5a,_0x438266,_0x42e5ae=!0x1){const _0x3824af=[];let _0xde1e12=this['repository']['getIndex'](_0x260f5a),_0x4f006e=this[_0x186a('0xc0')][_0x186a('0xe8')](_0x438266);for(-0x1==_0x4f006e&&(_0x4f006e=this[_0x186a('0xc0')][_0x186a('0xb1')]['length'],_0x42e5ae=!0x1);_0xde1e12<_0x4f006e;)_0x3824af['push'](this['repository'][_0x186a('0x49')](_0xde1e12)),_0xde1e12++;return _0x42e5ae&&_0x3824af[_0x186a('0x16')](this[_0x186a('0xc0')][_0x186a('0x49')](_0xde1e12)),_0x3824af;}[_0x186a('0xdf')](_0x5521d8,_0x26eed9,_0x539293,_0x231b3e){const _0x1067ee=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x62')];let _0x227e10=_0x26eed9;for(;_0x5521d8[_0x227e10]&&_0x5521d8[_0x227e10][_0x186a('0x93')];)_0x227e10++;let _0x3f1a5a=_0x231b3e;for(;_0x539293[_0x3f1a5a]&&_0x539293[_0x3f1a5a][_0x186a('0xc3')];)_0x3f1a5a++;_0x2dba67(_0x5521d8,_0x26eed9,_0x227e10),_0x2dba67(_0x539293,_0x231b3e,_0x3f1a5a);const _0x2e6c64=_0x539293[_0x186a('0xa4')](_0x231b3e,_0x3f1a5a)[_0x186a('0xbd')](_0x5521d8['slice'](_0x26eed9,_0x227e10));return _0x2e6c64['sort']((_0x363caf,_0xa3a445)=>_0x363caf['side']!=_0xa3a445[_0x186a('0x99')]?_0x363caf[_0x186a('0x99')]-_0xa3a445[_0x186a('0x99')]:_0x363caf[_0x186a('0x0')]!=_0xa3a445['level']?_0x363caf[_0x186a('0x0')]-_0xa3a445[_0x186a('0x0')]:_0x363caf[_0x186a('0xe')]!=_0xa3a445[_0x186a('0xe')]?_0xa3a445[_0x186a('0xe')]-_0x363caf[_0x186a('0xe')]:!!_0x363caf['isAdded']!=!!_0xa3a445[_0x186a('0x93')]?-0x1==_0x363caf[_0x186a('0x99')]||0x0==_0x363caf['side']?_0x363caf['isAdded']?-0x1:0x1:_0x363caf[_0x186a('0x93')]?0x1:-0x1:_0x363caf[_0x186a('0x6b')]-_0xa3a445['index']),{'commonTape':_0x2e6c64,'iEnd':_0x227e10,'jEnd':_0x3f1a5a};function _0x2dba67(_0x1ff79c,_0x2d59c0,_0x5ac95c){let _0x4563b1=-0x1,_0x3420a4=Number[_0x186a('0xc')],_0x1e99bd=!0x0;for(let _0x1fd08e=_0x2d59c0;_0x1fd08e<_0x5ac95c;_0x1fd08e++)if(_0x1067ee[_0x186a('0xd')](_0x1ff79c[_0x1fd08e][_0x186a('0x77')])||(_0x1e99bd=!0x1),_0x1ff79c[_0x1fd08e][_0x186a('0x77')][_0x186a('0x74')]<_0x2d59c0&&(_0x4563b1=_0x1fd08e),_0x1ff79c[_0x1fd08e][_0x186a('0x77')]['endIndex']>=_0x5ac95c){_0x3420a4=_0x1fd08e;break;}_0x1e99bd&&(_0x4563b1=_0x5ac95c-0x1);for(let _0x1b91b0=_0x2d59c0;_0x1b91b0<_0x5ac95c;_0x1b91b0++)_0x1ff79c[_0x1b91b0][_0x186a('0x99')]=_0x1b91b0<=_0x4563b1?-0x1:_0x1b91b0<_0x3420a4?0x0:0x1,_0x1ff79c[_0x1b91b0][_0x186a('0x6b')]=_0x1b91b0;let _0x4d2caf=0x0;for(let _0x470966=_0x2d59c0;_0x470966<=_0x4563b1;_0x470966++)0x0==_0x1ff79c[_0x470966][_0x186a('0xe')]?_0x1ff79c[_0x470966]['level']=_0x4d2caf:(_0x4d2caf++,_0x1ff79c[_0x470966][_0x186a('0x0')]=_0x4d2caf,_0x4d2caf++);for(let _0x1a1371=_0x2d59c0;_0x1a1371<_0x5ac95c;_0x1a1371++)0x0==_0x1ff79c[_0x1a1371][_0x186a('0x99')]&&(_0x1ff79c[_0x1a1371][_0x186a('0x0')]=_0x4d2caf);_0x4d2caf=0x0;for(let _0x426f69=_0x5ac95c-0x1;_0x426f69>=_0x3420a4;_0x426f69--)0x0==_0x1ff79c[_0x426f69][_0x186a('0xe')]?_0x1ff79c[_0x426f69][_0x186a('0x0')]=_0x4d2caf:(_0x4d2caf--,_0x1ff79c[_0x426f69][_0x186a('0x0')]=_0x4d2caf,_0x4d2caf--);}}[_0x186a('0xbf')](_0x1929e3){const _0x573aa5=new Map(),_0x2d1bb6=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x62')];for(let _0x4d304b=0x1;_0x4d304b<_0x1929e3[_0x186a('0x9a')];_0x4d304b++){let _0x96a485,_0x2a0093,_0x4b6b4b;const _0x32dc0a=_0x1929e3[_0x4d304b],_0x1a71bb=_0x1929e3[_0x4d304b-0x1];if(_0x186a('0x45')==_0x32dc0a[_0x186a('0x7e')])continue;if(_0x32dc0a[_0x186a('0x7e')]!=_0x1a71bb['type'])continue;if(!_0x2d1bb6[_0x186a('0xba')](_0x1a71bb[_0x186a('0x77')])||_0x2d1bb6['isLimit'](_0x1a71bb['item']))continue;if(!_0x2d1bb6[_0x186a('0xba')](_0x32dc0a[_0x186a('0x77')])||_0x2d1bb6[_0x186a('0x13')](_0x32dc0a[_0x186a('0x77')]))continue;if((_0x1929e3[_0x4d304b][_0x186a('0x93')]||_0x1929e3[_0x4d304b]['isAddSuggestion'])&&_0x1929e3[_0x4d304b-0x1][_0x186a('0xc3')])_0x96a485=_0x1929e3[_0x4d304b],_0x2a0093=_0x1929e3[_0x4d304b-0x1],_0x4b6b4b=_0x4d304b-0x1;else{if(!_0x1929e3[_0x4d304b][_0x186a('0xc3')]||!_0x1929e3[_0x4d304b-0x1]['isAdded']&&!_0x1929e3[_0x4d304b-0x1][_0x186a('0x11a')])continue;_0x96a485=_0x1929e3[_0x4d304b-0x1],_0x2a0093=_0x1929e3[_0x4d304b],_0x4b6b4b=_0x4d304b;}const _0x22b8cf=_0x96a485['level']==_0x2a0093[_0x186a('0x0')],_0x34051d=Math[_0x186a('0x80')](_0x96a485[_0x186a('0x0')])<Math[_0x186a('0x80')](_0x2a0093['level'])&&0x0==_0x2a0093[_0x186a('0xe')];(_0x22b8cf||_0x34051d)&&(_0x573aa5[_0x186a('0x7b')](_0x2a0093['id'],_0x96a485['id']),_0x1929e3['splice'](_0x4b6b4b,0x1),_0x4d304b--,_0x96a485[_0x186a('0x93')]=!0x1);}for(let _0x45276d=0x0;_0x45276d<_0x1929e3['length'];_0x45276d++)_0x573aa5[_0x186a('0x11c')](_0x1929e3[_0x45276d]['pairId'])&&(_0x1929e3[_0x45276d][_0x186a('0x100')]=_0x573aa5[_0x186a('0x2c')](_0x1929e3[_0x45276d]['pairId']));}[_0x186a('0x7f')](_0x5856df){const _0x11a780=new Set(_0x5856df[_0x186a('0x94')](_0x279fed=>_0x279fed['id']));for(let _0x155e7a=0x0;_0x155e7a<_0x5856df[_0x186a('0x9a')];_0x155e7a++)_0x11a780[_0x186a('0x11c')](_0x5856df[_0x155e7a][_0x186a('0x100')])||0x0==_0x5856df[_0x155e7a][_0x186a('0xe')]||(_0x5856df[_0x155e7a][_0x186a('0x1d')]=!0x0);return _0x5856df[_0x186a('0x10a')](_0x29229f=>!_0x29229f[_0x186a('0x1d')]);}[_0x186a('0x57')](_0x32fc40){const _0x3dc3c6=new Set();for(let _0x43b8b5=0x0;_0x43b8b5<_0x32fc40[_0x186a('0x9a')];_0x43b8b5++){if(_0x3dc3c6[_0x186a('0x11c')](_0x32fc40[_0x43b8b5]['id'])&&_0x32fc40[_0x43b8b5][_0x186a('0xc3')]&&(_0x32fc40[_0x43b8b5][_0x186a('0x1d')]=!0x0),_0x32fc40[_0x43b8b5][_0x186a('0x1d')])continue;if(0x0==_0x32fc40[_0x43b8b5]['distance'])continue;if(_0x186a('0x104')!=_0x32fc40[_0x43b8b5][_0x186a('0x7e')])continue;if(null==_0x32fc40[_0x43b8b5][_0x186a('0x100')])continue;let _0x3b6057=_0x43b8b5+0x1,_0x4309af=0x0;for(;_0x32fc40[_0x3b6057]['id']!=_0x32fc40[_0x43b8b5][_0x186a('0x100')];)'elementStart'==_0x32fc40[_0x3b6057][_0x186a('0x7e')]?_0x4309af++:'elementEnd'==_0x32fc40[_0x3b6057][_0x186a('0x7e')]&&_0x4309af--,_0x3b6057++;if(0x0!=_0x4309af){if(_0x32fc40[_0x43b8b5][_0x186a('0xc3')])_0x32fc40[_0x43b8b5][_0x186a('0x1d')]=!0x0;else for(;_0x3b6057!=_0x43b8b5;)_0x32fc40[_0x3b6057]['isRemoved']&&0x0!=_0x32fc40[_0x3b6057]['distance']&&(_0x32fc40[_0x3b6057][_0x186a('0x1d')]=!0x0,_0x3dc3c6[_0x186a('0x34')](_0x32fc40[_0x3b6057][_0x186a('0x100')])),_0x3b6057--;}}return _0x32fc40['filter'](_0x167d58=>!_0x167d58[_0x186a('0x1d')]);}[_0x186a('0x10d')](_0x163e94){const _0x36b7f0=this[_0x186a('0xe3')][_0x186a('0xf4')]['schema'];for(let _0xec6e69=0x0;_0xec6e69<_0x163e94[_0x186a('0x9a')];_0xec6e69++){if(!(_0x163e94[_0xec6e69][_0x186a('0x93')]||_0x163e94[_0xec6e69][_0x186a('0x11a')]||_0x163e94[_0xec6e69][_0x186a('0xc3')]||_0x163e94[_0xec6e69][_0x186a('0x6f')]))continue;if(0x0==_0x163e94[_0xec6e69][_0x186a('0xe')])continue;const _0x3c8f05=_0x163e94[_0xec6e69]['item'];_0x36b7f0[_0x186a('0xba')](_0x3c8f05)||_0x36b7f0[_0x186a('0x13')](_0x3c8f05)||(_0x163e94[_0xec6e69][_0x186a('0x93')]&&delete _0x163e94[_0xec6e69]['isAdded'],_0x163e94[_0xec6e69]['isAddSuggestion']&&delete _0x163e94[_0xec6e69][_0x186a('0x11a')],_0x163e94[_0xec6e69][_0x186a('0x6f')]&&delete _0x163e94[_0xec6e69][_0x186a('0x6f')],_0x163e94[_0xec6e69]['isRemoved']&&(_0x163e94[_0xec6e69]['isIncorrect']=!0x0));}return _0x163e94[_0x186a('0x10a')](_0x36c999=>!_0x36c999['isIncorrect']);}[_0x186a('0x123')](_0x2a4765,_0x1d2043,_0x153e5d){const _0xb2b57e=new _0xbee08(),_0xb75fa1=[],_0x598649=new Map(),_0xe9123=this[_0x186a('0xe3')]['model'],_0x1d3319=_0xe9123[_0x186a('0x62')],_0x568e45=[_0xb2b57e],_0x2e4e31={},_0x4c6353={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1e7307=null;const _0x804a10=[0x0];for(let _0x44968b=0x0;_0x44968b<_0x2a4765[_0x186a('0x9a')];_0x44968b++){let _0xdab94c,_0x58b225;if(_0x186a('0x104')===_0x2a4765[_0x44968b][_0x186a('0x7e')]){_0xdab94c=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10);const _0x4cca4a=new _0x5e7e65(_0x2a4765[_0x44968b][_0x186a('0x77')][_0x186a('0xfb')],_0x2a4765[_0x44968b][_0x186a('0x77')]['getAttributes']());_0x568e45[0x0][_0x186a('0x103')](_0x4cca4a),_0x804a10[_0x186a('0x16')](0x0),_0x568e45[_0x186a('0xb7')](_0x4cca4a),_0x58b225=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10),_0x1e7307=null;}else{if(_0x186a('0x9b')===_0x2a4765[_0x44968b][_0x186a('0x7e')])_0x568e45[_0x186a('0xfa')](),_0xdab94c=_0xe9123['createPositionFromPath'](_0xb2b57e,_0x804a10),_0x804a10[_0x186a('0xa0')](),_0x804a10[_0x804a10[_0x186a('0x9a')]-0x1]++,_0x58b225=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10),_0x1e7307=null;else{if(_0xdab94c=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10),_0x1e7307&&_0x30cd1d(_0x1e7307,_0x2a4765[_0x44968b][_0x186a('0x77')]))_0x1e7307[_0x186a('0x11d')]+=_0x2a4765[_0x44968b][_0x186a('0x77')][_0x186a('0xa7')];else{const _0x10806e=new _0x57c2d3(_0x2a4765[_0x44968b][_0x186a('0x77')]['data'],_0x2a4765[_0x44968b][_0x186a('0x77')]['getAttributes']());_0x568e45[0x0]['_appendChild'](_0x10806e),_0x1e7307=_0x10806e;}_0x804a10[_0x804a10[_0x186a('0x9a')]-0x1]+=_0x2a4765[_0x44968b][_0x186a('0x77')]['offsetSize'],_0x58b225=_0xe9123[_0x186a('0x115')](_0xb2b57e,_0x804a10);}}for(const _0x33d497 of _0x2a4765[_0x44968b][_0x186a('0xad')])_0x598649[_0x186a('0x7b')](_0x33d497,{'start':_0xdab94c,'end':null});_0x4bdde9('isRemoveSuggestion',_0x44968b,_0xdab94c,_0x58b225),_0x4bdde9(_0x186a('0x11a'),_0x44968b,_0xdab94c,_0x58b225),_0x4bdde9('isRemoved',_0x44968b,_0xdab94c,_0x58b225),_0x4bdde9('isAdded',_0x44968b,_0xdab94c,_0x58b225);for(const _0x417d6a of _0x2a4765[_0x44968b][_0x186a('0x59')]){_0x598649[_0x186a('0x2c')](_0x417d6a)['end']=_0x58b225;}}for(const [_0x5a4b1b,_0x1b174d]of _0x598649){const _0x6d1c32=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x24')](_0x1b174d[_0x186a('0x36')],_0x1b174d[_0x186a('0x102')]);_0xb2b57e[_0x186a('0xa2')][_0x186a('0x7b')](_0x5a4b1b,_0x6d1c32);}return _0xb75fa1[_0x186a('0x27')]((_0x2622dd,_0x52b88a)=>{const _0x582f30=_0xb2b57e[_0x186a('0xa2')][_0x186a('0x2c')](_0x186a('0x4')+_0x2622dd['id']),_0x323d7c=_0xb2b57e[_0x186a('0xa2')]['get'](_0x186a('0x4')+_0x52b88a['id']);return _0x582f30[_0x186a('0x36')][_0x186a('0x2e')](_0x323d7c[_0x186a('0x36')])?-0x1:_0x582f30[_0x186a('0x36')][_0x186a('0x53')](_0x323d7c[_0x186a('0x36')])?0x1:_0x582f30['end'][_0x186a('0x2e')](_0x323d7c['end'])?-0x1:_0x582f30[_0x186a('0x102')][_0x186a('0x53')](_0x323d7c['end'])?0x1:_0x186a('0x34')===_0x2622dd[_0x186a('0x7e')]?-0x1:0x1;}),{'root':_0xb2b57e,'changes':_0xb75fa1};function _0x4bdde9(_0x5cb87f,_0x39460c,_0x1fb507,_0x2a4898){const _0x2a47a4=!!_0x2a4765[_0x39460c][_0x5cb87f],_0x121ffc=_0x2a47a4?_0x2a4765[_0x39460c][_0x5cb87f][_0x186a('0xcf')]:null,_0x164fd6=_0x39460c===_0x2a4765['length']-0x1,_0x30293e=_0x4c6353[_0x5cb87f][0x0],_0x365bf3=_0x1d3319[_0x186a('0x110')](_0x2a4765[_0x39460c]['item']);!_0x2e4e31[_0x5cb87f]&&_0x2a47a4?_0x2e4e31[_0x5cb87f]={'start':_0x1fb507,'tapeItem':_0x2a4765[_0x39460c],'userId':_0x121ffc,'type':_0x5cb87f}:_0x2e4e31[_0x5cb87f]&&!_0x2a47a4?(_0x2e4e31[_0x5cb87f]['end']=_0x1fb507,_0x1e5909(_0x2e4e31[_0x5cb87f]),_0x2e4e31[_0x5cb87f]=null):_0x2e4e31[_0x5cb87f]&&_0x2a47a4&&_0x2e4e31[_0x5cb87f][_0x186a('0xcf')]!==_0x121ffc&&(_0x2e4e31[_0x5cb87f]['end']=_0x1fb507,_0x30293e&&_0x30293e[_0x186a('0xcf')]===_0x2e4e31[_0x5cb87f][_0x186a('0xcf')]||_0x1e5909(_0x2e4e31[_0x5cb87f]),_0x2e4e31[_0x5cb87f]={'start':_0x1fb507,'tapeItem':_0x2a4765[_0x39460c],'userId':_0x121ffc,'type':_0x5cb87f}),_0x2e4e31[_0x5cb87f]&&_0x365bf3&&(_0x186a('0x104')!==_0x2a4765[_0x39460c][_0x186a('0x7e')]||_0x30293e&&_0x30293e[_0x186a('0xcf')]===_0x121ffc||_0x4c6353[_0x5cb87f][_0x186a('0xb7')]({'userId':_0x121ffc,'object':_0x2a4765[_0x39460c][_0x186a('0x77')],'change':_0x2e4e31[_0x5cb87f]}),_0x186a('0x9b')===_0x2a4765[_0x39460c][_0x186a('0x7e')]&&_0x30293e&&_0x30293e['object']===_0x2a4765[_0x39460c]['item']&&(_0x4c6353[_0x5cb87f][_0x186a('0xfa')](),_0x2e4e31[_0x5cb87f]=_0x30293e['change'])),_0x2e4e31[_0x5cb87f]&&_0x164fd6&&(_0x2e4e31[_0x5cb87f]['end']=_0x2a4898,_0x1e5909(_0x2e4e31[_0x5cb87f]),_0x2e4e31[_0x5cb87f]=null);}function _0x1e5909({start:_0x3f38a4,end:_0x4b5284,tapeItem:_0x26d462,userId:_0xc624a7,type:_0x466072}){const _0x5aa44d=_0x26d462['item'],_0x28fcc4=_0xe9123[_0x186a('0x62')][_0x186a('0xba')](_0x5aa44d)&&!_0xe9123[_0x186a('0x62')]['isLimit'](_0x5aa44d),_0x318979=_0x3f38a4[_0x186a('0xef')]==_0x4b5284[_0x186a('0x97')]&&_0x4b5284[_0x186a('0x86')];if(_0x28fcc4&&_0x318979)return;const _0x272932=_0xe9123[_0x186a('0x24')](_0x3f38a4,_0x4b5284),_0x540077=_0x1d2043[_0x186a('0x2c')](_0xc624a7),_0x3dadad=new _0x3c4202({'author':_0x540077,'type':_0x186a('0x93')==_0x466072||_0x186a('0x11a')==_0x466072?_0x186a('0x34'):'remove','data':{'isSuggestion':_0x186a('0x11a')==_0x466072||'isRemoveSuggestion'==_0x466072},'createdAt':new Date(),'rootName':_0x153e5d});_0xb75fa1[_0x186a('0x16')](_0x3dadad),_0xb2b57e['markers'][_0x186a('0x7b')]('revision:'+_0x3dadad['id'],_0x272932);}function _0x30cd1d(_0x335d05,_0x1460a2){const _0x58c583=_0x335d05[_0x186a('0x4c')](),_0xf63394=_0x1460a2[_0x186a('0x4c')]();for(const _0x486abe of _0x58c583){if(_0x486abe[0x1]!==_0x1460a2['getAttribute'](_0x486abe[0x0]))return!0x1;_0xf63394[_0x186a('0xf9')]();}return _0xf63394['next']()[_0x186a('0x3d')];}}['_setConversion'](){this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')]('upcast')[_0x186a('0x111')]({'view':_0x186a('0xa3')}),this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')](_0x186a('0xe1'))[_0x186a('0x73')]({'model':'revision','view':_0x590da7=>{const _0x3be034=_0x590da7[_0x186a('0xd9')][_0x186a('0x47')](':')[0x1],_0x590347=this[_0x186a('0xb9')](_0x3be034);if(!_0x590347)return null;const _0x19728b='add'==_0x590347[_0x186a('0x7e')]?_0x186a('0x88'):_0x186a('0xb5'),_0x379c71=['ck-suggestion-marker',_0x186a('0xf')+_0x19728b];return _0x590347[_0x186a('0xa7')][_0x186a('0x5c')]&&_0x379c71['push'](_0x186a('0xf')+_0x19728b+_0x186a('0x5f')),this[_0x186a('0xde')]==_0x590347&&_0x379c71['push']('ck-suggestion-marker--active'),{'classes':_0x379c71,'attributes':{'data-change-id':_0x3be034}};}}),this[_0x186a('0xe3')][_0x186a('0xb0')]['for'](_0x186a('0xdd'))[_0x186a('0x34')](_0x11a66a=>{_0x11a66a['on']('element:pre',(_0x388dc5,_0x202626,_0x3aa108)=>{const _0x318fe6=_0x202626['viewItem'][_0x186a('0xda')](0x0);if(!_0x318fe6||!_0x318fe6['is'](_0x186a('0x68'),_0x186a('0x11e')))return;if(!_0x3aa108[_0x186a('0xe9')][_0x186a('0xf0')](_0x318fe6,{'attributes':[_0x186a('0x105'),_0x186a('0x87')]}))return;const _0x5c2b48=_0x202626[_0x186a('0x122')]['start'][_0x186a('0xef')];_0x3aa108[_0x186a('0x112')][_0x186a('0x72')](_0x186a('0x105'),_0x318fe6[_0x186a('0x33')](_0x186a('0x105')),_0x5c2b48),_0x3aa108[_0x186a('0x112')][_0x186a('0x72')](_0x186a('0x87'),_0x318fe6['getAttribute']('vid_end'),_0x5c2b48);},{'priority':'low'});}),this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')](_0x186a('0xdd'))[_0x186a('0x34')](_0x4a0807=>{_0x4a0807['on'](_0x186a('0x68'),(_0x20600b,_0x28945d,_0x50881d)=>{if(!_0x50881d[_0x186a('0xe9')]['consume'](_0x28945d[_0x186a('0x85')],{'attributes':[_0x186a('0x105'),'vid_end']}))return;if(_0x28945d['modelRange'][_0x186a('0xe2')])return;const _0x421e60=_0x28945d[_0x186a('0x122')][_0x186a('0x36')][_0x186a('0xef')];_0x421e60['hasAttribute'](_0x186a('0x105'))||_0x421e60['hasAttribute'](_0x186a('0xdc'))||(_0x50881d[_0x186a('0x112')]['setAttribute']('vid_start',_0x28945d[_0x186a('0x85')]['getAttribute'](_0x186a('0x105')),_0x421e60),_0x50881d['writer']['setAttribute'](_0x186a('0x87'),_0x28945d[_0x186a('0x85')][_0x186a('0x33')]('vid_end'),_0x421e60));},{'priority':_0x186a('0xb8')});}),this['editor'][_0x186a('0xb0')][_0x186a('0x63')]('upcast')[_0x186a('0x3')]({'view':{'name':_0x186a('0x3b'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x28f499=>_0x28f499[_0x186a('0x33')](_0x186a('0xdc'))}}),this[_0x186a('0xe3')][_0x186a('0xf4')]['schema']['on'](_0x186a('0x98'),(_0x27a778,[,_0x26806f])=>{['vid_start',_0x186a('0x87'),_0x186a('0xdc')][_0x186a('0xfe')](_0x26806f)&&(_0x27a778['return']=!0x0,_0x27a778[_0x186a('0x6a')]());},{'priority':'highest'}),this['editor'][_0x186a('0xb0')]['for'](_0x186a('0x14'))['add'](_0x22d460=>{_0x22d460['on'](_0x186a('0xd7'),(_0x55073d,_0x25d3e2,_0x48563c)=>{if('\x20'!=_0x25d3e2[_0x186a('0x77')][_0x186a('0xa7')]||_0x25d3e2[_0x186a('0x77')][_0x186a('0x97')][_0x186a('0xc2')]>0x1)return;if(!_0x48563c[_0x186a('0xe9')][_0x186a('0xf0')](_0x25d3e2[_0x186a('0x77')],_0x55073d[_0x186a('0xfb')]))return;const _0x2706f4=_0x48563c[_0x186a('0x112')],_0x1cb1e1=_0x48563c[_0x186a('0x15')][_0x186a('0x50')](_0x25d3e2[_0x186a('0xd3')]);_0x2706f4[_0x186a('0xbb')](_0x1cb1e1,_0x2706f4[_0x186a('0x8b')](_0x186a('0x3b')));});}),this[_0x186a('0xe3')]['conversion'][_0x186a('0x63')](_0x186a('0x14'))['markerToData']({'model':_0x186a('0xa3')}),this[_0x186a('0xe3')][_0x186a('0x55')]['downcastDispatcher']['on']('addMarker:revision',function(_0x57f13b){const _0x8c5d5a=_0x57f13b[_0x186a('0x1f')]['get'](_0x186a('0x52'));return(_0x200f41,_0x1174a7,_0x20eaf5)=>{const _0x56bc82=_0x1174a7[_0x186a('0xd9')][_0x186a('0x47')](':')[0x1],_0x1c9435=_0x8c5d5a[_0x186a('0xb9')](_0x56bc82);if(!_0x1c9435)return null;const _0xfab08d='add'==_0x1c9435[_0x186a('0x7e')]?_0x186a('0x47'):_0x186a('0x9d');if(!_0x20eaf5[_0x186a('0xe9')][_0x186a('0x23')](_0x1174a7[_0x186a('0x43')],_0x200f41[_0x186a('0xfb')]))return;const _0x13b1fd=_0x1174a7[_0x186a('0x43')][_0x186a('0x54')](),_0x4328da=_0x1174a7[_0x186a('0x43')][_0x186a('0x36')],_0x12fa92=_0x57f13b[_0x186a('0xf4')][_0x186a('0x62')];let _0x3a2002=null,_0x3ac628=null,_0x1692c2=!0x1,_0x2fa601=!0x1;for(const _0x3f48cf of _0x13b1fd){const _0x3f22b0=_0x3f48cf['item'];_0x1692c2=_0x1692c2||_0x12fa92[_0x186a('0xc8')](_0x3f22b0);const _0x11d5a2=_0x20eaf5[_0x186a('0x15')][_0x186a('0x7c')](_0x3f22b0);if(_0x11d5a2&&_0x11d5a2[_0x186a('0x4e')]('addHighlight'))return;'elementEnd'==_0x3f48cf['type']&&(_0x12fa92[_0x186a('0xba')](_0x3f22b0)&&!_0x12fa92[_0x186a('0x13')](_0x3f22b0)&&(_0x3f22b0[_0x186a('0x22')]||_0x4328da[_0x186a('0x4a')]?_0x3a2002&&_0x3a2002['parent']==_0x3f22b0||(_0x3a2002=_0x3f22b0,_0x1695d3(_0x3f48cf[_0x186a('0xa1')]),_0x2fa601=!0x0):_0x3ac628=_0x3ac628||_0x3f48cf[_0x186a('0xa1')]));}function _0x1695d3(_0x186683){const _0x232679=_0x20eaf5['writer'][_0x186a('0x5b')](_0x186a('0x3b'),{'class':_0x186a('0xf')+_0xfab08d}),_0x200e3b=_0x20eaf5[_0x186a('0x15')][_0x186a('0xec')](_0x186683);_0x1c9435[_0x186a('0xa7')]['isSuggestion']&&_0x20eaf5[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0xf')+_0xfab08d+_0x186a('0x5f'),_0x232679),_0x8c5d5a[_0x186a('0xde')]==_0x1c9435&&_0x20eaf5[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0x76'),_0x232679),_0x20eaf5[_0x186a('0x112')][_0x186a('0x81')](_0x200e3b,_0x232679),_0x20eaf5[_0x186a('0x15')][_0x186a('0x10b')](_0x232679,_0x1174a7['markerName']);}_0x1692c2||_0x2fa601||!_0x3ac628||_0x1695d3(_0x3ac628);};}(this[_0x186a('0xe3')]),{'priority':'high'}),this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x7')]['on'](_0x186a('0xca'),(_0x9eab6f,_0x15b9ac,_0x490df1)=>{const _0x424280=_0x490df1[_0x186a('0x15')]['markerNameToElements'](_0x15b9ac[_0x186a('0xd9')]);if(_0x424280)for(const _0x2e5610 of _0x424280)(_0x2e5610[_0x186a('0x67')]('ck-suggestion-marker-split')||_0x2e5610[_0x186a('0x67')](_0x186a('0xfd')))&&(_0x490df1[_0x186a('0x15')][_0x186a('0x8f')](_0x2e5610,_0x15b9ac['markerName']),_0x490df1[_0x186a('0x112')]['remove'](_0x2e5610));},{'priority':'high'}),this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x7')]['on'](_0x186a('0x83'),(_0x210270,_0x5c22e3,_0x435f5b)=>{const _0x546051=_0x5c22e3['markerName'][_0x186a('0x47')](':')[0x1],_0x51c9c2=this['_getChangeFromId'](_0x546051);if(!_0x51c9c2)return null;const _0x25d6d1=_0x186a('0x34')==_0x51c9c2[_0x186a('0x7e')]?_0x186a('0x47'):_0x186a('0x9d');if(_0x435f5b[_0x186a('0xe9')][_0x186a('0x23')](_0x5c22e3[_0x186a('0x43')],_0x210270['name']))for(const _0x59b51f of _0x5c22e3['markerRange'][_0x186a('0x48')]()){if(!_0x59b51f['is']('element',_0x186a('0xd8')))continue;const _0x232989=_0x435f5b['writer'][_0x186a('0x5b')]('span',{'class':_0x186a('0xf')+_0x25d6d1}),_0x1efa53=_0x435f5b[_0x186a('0x15')][_0x186a('0xec')](this[_0x186a('0xe3')][_0x186a('0xf4')]['createPositionBefore'](_0x59b51f));_0x51c9c2[_0x186a('0xa7')][_0x186a('0x5c')]&&_0x435f5b[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0xf')+_0x25d6d1+_0x186a('0x5f'),_0x232989),this[_0x186a('0xde')]==_0x51c9c2&&_0x435f5b[_0x186a('0x112')][_0x186a('0x25')](_0x186a('0x76'),_0x232989),_0x435f5b[_0x186a('0x112')][_0x186a('0x81')](_0x1efa53,_0x232989),_0x435f5b['mapper'][_0x186a('0x10b')](_0x232989,_0x5c22e3[_0x186a('0xd9')]);}},{'priority':_0x186a('0x66')}),this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0xff')]['on']('change',()=>{this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0x9f')](_0x12dc8d=>{for(const _0x944742 of this[_0x186a('0xe3')][_0x186a('0xf4')]['document'][_0x186a('0x12')]()){const _0x324bb0=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0xff')][_0x186a('0x90')](_0x944742),_0x203215=this[_0x186a('0xe3')][_0x186a('0x55')]['view']['document'][_0x186a('0x90')](_0x944742);if(_0x203215){const _0x32dbeb=_0x324bb0[_0x186a('0x33')](_0x186a('0xdb'));if(_0x12dc8d[_0x186a('0x2b')]('data-change-id',_0x203215),_0x12dc8d[_0x186a('0xf8')](_0x186a('0x17'),_0x203215),_0x12dc8d[_0x186a('0xf8')](_0x186a('0x3a'),_0x203215),_0x12dc8d[_0x186a('0xf8')](_0x186a('0x8e'),_0x203215),_0x32dbeb){const _0x5272a9=this['_getChangeFromId'](_0x32dbeb);if(!_0x5272a9)return null;_0x12dc8d[_0x186a('0x72')](_0x186a('0x42'),_0x32dbeb,_0x203215),_0x12dc8d['addClass'](_0x186a('0xcd')+_0x5272a9[_0x186a('0x7e')],_0x203215),this[_0x186a('0xde')]==_0x5272a9&&_0x12dc8d[_0x186a('0x25')]('ck-revision-history-root--active',_0x203215);}}}});}),this['editor']['conversion'][_0x186a('0x63')](_0x186a('0xdd'))[_0x186a('0x111')]({'view':_0x186a('0x8d'),'model':_0x1d888b=>'revision-comment:'+_0x1d888b,'converterPriority':'highest'}),this['editor'][_0x186a('0xb0')]['for'](_0x186a('0xdd'))[_0x186a('0x111')]({'view':'suggestion','model':_0x12ce5f=>_0x186a('0x1e')+_0x12ce5f,'converterPriority':_0x186a('0xea')}),this[_0x186a('0xe3')][_0x186a('0xb0')][_0x186a('0x63')](_0x186a('0x14'))['markerToData']({'model':'revision-suggestion','view':_0x2f7741=>({'name':_0x186a('0xa')+_0x2f7741,'group':_0x186a('0x124')}),'converterPriority':_0x186a('0xea')}),this[_0x186a('0xe3')]['conversion'][_0x186a('0x63')](_0x186a('0xe1'))[_0x186a('0x73')]({'model':_0x186a('0x124'),'view':_0x4d2b5b=>{const _0x3a9748=_0x4d2b5b[_0x186a('0xd9')][_0x186a('0x47')](':')[0x1];return _0x186a('0x88')!=_0x3a9748&&_0x186a('0xb5')!=_0x3a9748?null:{'classes':[_0x186a('0xbe'),'ck-suggestion-preview-marker-'+_0x3a9748]};}}),this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x7')]['on'](_0x186a('0xb2'),et(this[_0x186a('0xe3')],_0x186a('0x9d')),{'priority':_0x186a('0x66')}),this[_0x186a('0xe3')][_0x186a('0x55')]['downcastDispatcher']['on'](_0x186a('0x113'),et(this['editor'],_0x186a('0x47')),{'priority':_0x186a('0x66')}),this[_0x186a('0xe3')][_0x186a('0x55')]['downcastDispatcher']['on'](_0x186a('0x71'),(_0x1a9e58,_0x5a0a78,_0x5c8ca1)=>{const _0x254267=_0x5c8ca1[_0x186a('0x15')][_0x186a('0xed')](_0x5a0a78[_0x186a('0xd9')]);if(_0x254267)for(const _0x44e1c8 of _0x254267)_0x44e1c8['is'](_0x186a('0xeb'))&&(_0x5c8ca1[_0x186a('0x15')][_0x186a('0x8f')](_0x44e1c8,_0x5a0a78[_0x186a('0xd9')]),_0x5c8ca1[_0x186a('0x112')][_0x186a('0x69')](_0x44e1c8));},{'priority':_0x186a('0x66')});}[_0x186a('0xb9')](_0x15bd14){return this[_0x186a('0x89')][_0x186a('0x2c')](_0x15bd14);}[_0x186a('0x65')](_0x96eb07){return this[_0x186a('0x70')]&&this['_changeView'][_0x186a('0x109')](),this['_changeView']=new _0x514d1f(this[_0x186a('0xe3')][_0x186a('0xf1')],_0x96eb07),this[_0x186a('0x70')];}[_0x186a('0x9c')](){this[_0x186a('0xe3')][_0x186a('0xf4')]['document'][_0x186a('0x108')][_0x186a('0x11')](_0x186a('0xa3')),this['on'](_0x186a('0xf3'),(_0x2313f6,_0x2c9d08,_0x162361,_0x5160c1)=>{_0x5160c1&&this[_0x186a('0xf5')][_0x186a('0x69')](_0x5160c1),_0x162361&&(this[_0x186a('0xf5')]['add']({'view':_0x162361,'stackId':_0x186a('0x3f'),'position':{'target':()=>{const _0x45610e=this['editor'][_0x186a('0x55')],_0x20ddf0=this[_0x186a('0xb9')](_0x162361['changeId']);let _0xfda108;if(_0x20ddf0['data'][_0x186a('0x7a')]){const _0x3053dc=_0x45610e[_0x186a('0x92')]['getDomRoot'](_0x20ddf0[_0x186a('0x29')]);_0xfda108=Array['from'](_0x3053dc['getClientRects']());}else{const _0xd57e8c=this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0xa2')][_0x186a('0x2c')]('revision:'+_0x162361[_0x186a('0x3c')]);_0xfda108=Array['from'](_0x45610e[_0x186a('0x15')][_0x186a('0xed')](_0xd57e8c['name']))[_0x186a('0x94')](_0x4c479c=>_0x45610e[_0x186a('0x92')]['domConverter']['mapViewToDom'](_0x4c479c))[_0x186a('0x94')](_0x51c32a=>Array['from'](_0x51c32a[_0x186a('0xcc')]()))['flat']();}if(!this[_0x186a('0x1')])return _0xfda108[0x0];return _0xfda108[_0x186a('0xb6')](_0xd37732=>_0xd37732['top']-0x3<=this[_0x186a('0x1')]['y']&&_0xd37732[_0x186a('0x2f')]+0x3>=this[_0x186a('0x1')]['y']&&_0xd37732[_0x186a('0x35')]-0x3<=this['_activeViewTarget']['x']&&_0xd37732[_0x186a('0xa6')]+0x3>=this[_0x186a('0x1')]['x'])||_0xfda108[0x0];}}}),this['_balloon'][_0x186a('0x107')](_0x186a('0x3f')));}),this['on'](_0x186a('0x5e'),(_0x435a34,_0x4fccb9,_0x1efaaa,_0x2f2c35)=>{this[_0x186a('0xc9')]=_0x1efaaa?this[_0x186a('0x65')](_0x1efaaa):null,this[_0x186a('0xe3')][_0x186a('0xf4')][_0x186a('0x9f')](()=>{const _0x387cd3=this[_0x186a('0xe3')][_0x186a('0x55')];_0x2f2c35&&(_0x2f2c35[_0x186a('0xa7')]['isOnRoot']?_0x387cd3['view'][_0x186a('0x9f')](_0x303c2f=>{_0x303c2f[_0x186a('0xf8')](_0x186a('0x8e'),_0x387cd3[_0x186a('0x92')][_0x186a('0xff')][_0x186a('0x90')](_0x2f2c35[_0x186a('0x29')]));}):_0x387cd3[_0x186a('0x95')](_0x186a('0x4')+_0x2f2c35['id'])),_0x1efaaa&&(_0x1efaaa['data'][_0x186a('0x7a')]?_0x387cd3[_0x186a('0x92')][_0x186a('0x9f')](_0x2f17b7=>{_0x2f17b7[_0x186a('0x25')]('ck-revision-history-root--active',_0x387cd3[_0x186a('0x92')][_0x186a('0xff')][_0x186a('0x90')](_0x1efaaa[_0x186a('0x29')]));}):_0x387cd3[_0x186a('0x95')](_0x186a('0x4')+_0x1efaaa['id']));});}),this['listenTo'](this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')]['document'],_0x186a('0xd2'),(_0x4561d7,_0x48d6b5)=>{if(this[_0x186a('0xde')])return;const _0x59bccb=this[_0x186a('0x4d')](_0x48d6b5[_0x186a('0x4b')]),_0x1f62a2=this[_0x186a('0x89')][_0x186a('0x2c')](_0x59bccb);_0x1f62a2?(this[_0x186a('0x1')]={'x':_0x48d6b5[_0x186a('0x30')]['x'],'y':_0x48d6b5[_0x186a('0x30')]['y']},this[_0x186a('0xc9')]=this[_0x186a('0x65')](_0x1f62a2)):(this[_0x186a('0x1')]=null,this[_0x186a('0xc9')]=null);}),this['listenTo'](this[_0x186a('0xe3')][_0x186a('0x55')][_0x186a('0x92')][_0x186a('0xff')],_0x186a('0xf6'),(_0x58c3a4,_0x5751b1)=>{const _0x102eb1=this['_findChangeIdFromDomTarget'](_0x5751b1['target']),_0xdcc926=this[_0x186a('0x89')]['get'](_0x102eb1);_0xdcc926?(this[_0x186a('0x1')]={'x':_0x5751b1['domEvent']['x'],'y':_0x5751b1[_0x186a('0x30')]['y']},_0xdcc926===this[_0x186a('0xde')]?this[_0x186a('0xf5')]['updatePosition']():this[_0x186a('0xde')]=_0xdcc926):(this['_activeViewTarget']=null,this[_0x186a('0xde')]=null);});}[_0x186a('0x4d')](_0x42d219){do{const _0x28b3f2=_0x42d219[_0x186a('0x33')](_0x186a('0x42'));if(_0x28b3f2)return _0x28b3f2;_0x42d219=_0x42d219[_0x186a('0x97')];}while(_0x42d219);return null;}[_0x186a('0x3e')](){this[_0x186a('0xe3')]['model']['change'](_0x53e15f=>{for(const _0x58f84b of this[_0x186a('0xe3')][_0x186a('0xf4')]['markers'])_0x53e15f['removeMarker'](_0x58f84b);});}}function et(_0x11eacc,_0x32710b){return(_0x5da563,_0x25c0a8,_0x5398b5)=>{if(!_0x5398b5[_0x186a('0xe9')][_0x186a('0x23')](_0x25c0a8[_0x186a('0x43')],_0x5da563[_0x186a('0xfb')]))return;const _0x196693=_0x25c0a8['markerRange'][_0x186a('0x54')](),_0x3a04a0=_0x25c0a8[_0x186a('0x43')][_0x186a('0x36')],_0x1cab1d=_0x11eacc[_0x186a('0xf4')][_0x186a('0x62')];let _0x3a6646=null,_0xf6e04f=null,_0x5c036c=!0x1,_0x2bf36b=!0x1;for(const _0x1d18b5 of _0x196693){const _0x550ebf=_0x1d18b5['item'];_0x5c036c=_0x5c036c||_0x1cab1d['isContent'](_0x550ebf);const _0x28e649=_0x5398b5[_0x186a('0x15')]['toViewElement'](_0x550ebf);if(_0x28e649&&_0x28e649[_0x186a('0x4e')](_0x186a('0x51')))return;_0x186a('0x9b')==_0x1d18b5[_0x186a('0x7e')]&&(_0x1cab1d[_0x186a('0xba')](_0x550ebf)&&!_0x1cab1d[_0x186a('0x13')](_0x550ebf)&&(_0x550ebf[_0x186a('0x22')]||_0x3a04a0[_0x186a('0x4a')]?_0x3a6646&&_0x3a6646[_0x186a('0x97')]==_0x550ebf||(_0x3a6646=_0x550ebf,_0x1da82a(_0x1d18b5[_0x186a('0xa1')]),_0x2bf36b=!0x0):_0xf6e04f=_0xf6e04f||_0x1d18b5[_0x186a('0xa1')]));}function _0x1da82a(_0x190504){const _0x30c8af=_0x5398b5[_0x186a('0x15')][_0x186a('0xec')](_0x190504),_0x5a22ab=_0x5398b5[_0x186a('0x112')][_0x186a('0x5b')]('span',{'class':_0x186a('0x9')+_0x32710b});_0x5398b5[_0x186a('0x112')]['insert'](_0x30c8af,_0x5a22ab),_0x5398b5['mapper'][_0x186a('0x10b')](_0x5a22ab,_0x25c0a8['markerName']);}_0x5c036c||_0x2bf36b||!_0xf6e04f||_0x1da82a(_0xf6e04f);};}export class RestoreRevisionCommand extends _0x49ffb8{constructor(_0x29a8e1){super(_0x29a8e1);const _0x51ea99=_0x29a8e1[_0x186a('0x1f')][_0x186a('0x2c')](d);this[_0x186a('0x31')]=!0x1,this['listenTo'](_0x51ea99,_0x186a('0x2a'),()=>this[_0x186a('0x21')]()),this[_0x186a('0x7d')](_0x51ea99,_0x186a('0x119'),()=>this['refresh']());}[_0x186a('0x10c')](){const _0x5cdd03=this['editor'],_0x2ecbb4=_0x5cdd03[_0x186a('0x1f')][_0x186a('0x2c')](d),_0x5f1b9e=_0x2ecbb4[_0x186a('0xd1')]?_0x2ecbb4[_0x186a('0xaa')][_0x186a('0xaf')]:null;_0x5cdd03[_0x186a('0x8a')][_0x186a('0x2c')](_0x186a('0x84'))['restoreRevisionCallback'](_0x5f1b9e);}['refresh'](){const {isReady:_0xf4cebf,isEnabled:_0x5f8c9b}=this[_0x186a('0xe3')][_0x186a('0x1f')][_0x186a('0x2c')](d);this[_0x186a('0xb3')]=_0xf4cebf&&_0x5f8c9b;}}export class ShowChangeCommand extends _0x49ffb8{constructor(_0x35ff70,{direction:_0x5ceb33}){super(_0x35ff70);const _0xf5e9fc=_0x35ff70['plugins']['get'](d);this[_0x186a('0x31')]=!0x1,this[_0x186a('0xfc')]=_0x186a('0x118')===_0x5ceb33?0x1:-0x1,this[_0x186a('0x7d')](_0xf5e9fc,_0x186a('0x2a'),()=>this[_0x186a('0x21')]()),this[_0x186a('0x7d')](_0xf5e9fc,'change:isEnabled',()=>this[_0x186a('0x21')]()),this[_0x186a('0x7d')](_0xf5e9fc,_0x186a('0x5e'),()=>this[_0x186a('0x21')]());}[_0x186a('0x10c')](){const _0x499761=this[_0x186a('0xe3')],_0x3bd7cf=_0x499761[_0x186a('0x1f')][_0x186a('0x2c')](d),{isNavigationMode:_0x5e7e6a,currentChangeNumber:_0x2852eb}=_0x3bd7cf;let _0x91848e;if(_0x3bd7cf['activeChange']=_0x5e7e6a?_0x3bd7cf[_0x186a('0xaa')][_0x186a('0x116')][_0x186a('0x2c')](_0x2852eb+this[_0x186a('0xfc')]):_0x3bd7cf[_0x186a('0xaa')][_0x186a('0x116')][_0x186a('0xc6')],_0x3bd7cf['activeChange'][_0x186a('0xa7')][_0x186a('0x7a')])_0x91848e=_0x499761['editing'][_0x186a('0x92')][_0x186a('0xb')](_0x3bd7cf['activeChange'][_0x186a('0x29')]);else{const _0x4622ae=_0x499761['model'][_0x186a('0xa2')][_0x186a('0x2c')](_0x186a('0x4')+_0x3bd7cf[_0x186a('0xde')]['id']);_0x91848e=_0x20bc80(_0x499761[_0x186a('0x55')],_0x4622ae);}_0x225745({'target':_0x91848e,'viewportOffset':0x28});}[_0x186a('0x21')](){const {isNavigationMode:_0x9d22f4,currentChangeNumber:_0x5617b0,numberOfChanges:_0x2da18b,isReady:_0x20ff97,isEnabled:_0x368c0a}=this[_0x186a('0xe3')][_0x186a('0x1f')]['get'](d);this[_0x186a('0xb3')]=!!(_0x368c0a&&_0x20ff97&&_0x2da18b)&&(!_0x9d22f4||(0x1===this['_step']?_0x5617b0<_0x2da18b-0x1:_0x5617b0>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42ea=['locale','stopPropagation','button','model','Name\x20this\x20revision','isActionsDropdownOpen','function','listenTo','isReady','Show\x20more\x20items','ck-revision-history-sidebar__revision__actions','execute','listView','_action','isVisible','bindTemplate','Compare\x20against\x20selected','find','set','first','name','isEnabled','Restore\x20this\x20revision','bind','change:isActionsDropdownOpen','source','action','add'];(function(_0x563f97,_0x42eabd){const _0x46e251=function(_0x494269){while(--_0x494269){_0x563f97['push'](_0x563f97['shift']());}};_0x46e251(++_0x42eabd);}(_0x42ea,0x1ce));const _0x46e2=function(_0x563f97,_0x42eabd){_0x563f97=_0x563f97-0x0;let _0x46e251=_0x42ea[_0x563f97];return _0x46e251;};import{Collection as _0x3c009d}from'ckeditor5/src/utils';import{icons as _0x1ff81b}from'ckeditor5/src/core';import{Model as _0x5e9d6f,addListToDropdown as _0x3eb562,createDropdown as _0x4a881b}from'ckeditor5/src/ui';import{getTranslation as _0x402266}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4abc39,_0x42d328){const _0x24d6b5=_0x4abc39[_0x46e2('0x1')],_0x12b73d=_0x4abc39[_0x46e2('0xe')],_0x589417=_0x4a881b(_0x12b73d);_0x589417['panelPosition']='sw';const _0x20d0a8=function(_0x342ced,_0x6dbb47){const _0x28a402=function(_0x49c85e,_0x355ebe){const _0x2b04c5=_0x49c85e[_0x46e2('0xe')],_0x16606b={'Compare\x20against\x20selected':_0x402266(_0x2b04c5,_0x46e2('0x2')),'Name\x20this\x20revision':_0x402266(_0x2b04c5,_0x46e2('0x12')),'Restore\x20this\x20revision':_0x402266(_0x2b04c5,_0x46e2('0x8'))};return _0x355ebe['map'](_0x342639=>{const _0x32979b=_0x16606b[_0x342639['name']];return _0x32979b&&_0x32979b!==_0x342639[_0x46e2('0x6')]&&(_0x342639[_0x46e2('0x6')]=_0x32979b),_0x342639;});}(_0x342ced,_0x6dbb47),_0x829416=new _0x3c009d();for(const _0x3fd94a of _0x28a402){const _0x2f43bb={'type':_0x46e2('0x10'),'model':new _0x5e9d6f({'label':_0x3fd94a[_0x46e2('0x6')],'class':_0x3fd94a['class'],'withText':!0x0,'_action':_0x3fd94a[_0x46e2('0xc')]})};_0x2f43bb[_0x46e2('0x11')][_0x46e2('0x9')]('isEnabled')['to'](_0x342ced,_0x46e2('0x13'),_0x18051d=>_0x46e2('0x14')!=typeof _0x3fd94a[_0x46e2('0x7')]||(!_0x18051d||_0x3fd94a[_0x46e2('0x7')](_0x342ced))),_0x829416[_0x46e2('0xd')](_0x2f43bb);}return _0x829416;}(_0x4abc39,_0x42d328);return _0x4abc39[_0x46e2('0x9')]('isActionsDropdownOpen')['to'](_0x589417,'isOpen'),_0x589417['buttonView'][_0x46e2('0x4')]({'label':_0x402266(_0x12b73d,_0x46e2('0x17')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1ff81b['threeVerticalDots']}),_0x589417['extendTemplate']({'attributes':{'class':[_0x46e2('0x18'),_0x24d6b5['if'](_0x46e2('0x13'),'ck-on')]},'on':{'click':_0x24d6b5['to'](_0x56ac25=>_0x56ac25[_0x46e2('0xf')]())}}),_0x589417['on'](_0x46e2('0x19'),_0x2bed9d=>{_0x4abc39[_0x46e2('0x16')]&&'function'==typeof _0x2bed9d[_0x46e2('0xb')][_0x46e2('0x1b')]&&_0x2bed9d[_0x46e2('0xb')]['_action'](_0x4abc39);}),_0x3eb562(_0x589417,_0x20d0a8),_0x589417[_0x46e2('0x15')](_0x4abc39,_0x46e2('0xa'),(_0x2e8f70,_0x3cf401,_0xdb15ca)=>{if(_0xdb15ca)for(const _0x7c4e08 of _0x589417[_0x46e2('0x1a')]['items']){const _0x4cc89c=_0x7c4e08['children'][_0x46e2('0x5')],_0x441ac5=_0x42d328[_0x46e2('0x3')](_0x116791=>_0x116791[_0x46e2('0xc')]===_0x4cc89c[_0x46e2('0x1b')])[_0x46e2('0x0')];_0x7c4e08[_0x46e2('0x0')]=void 0x0===_0x441ac5||_0x441ac5(_0x4abc39);}}),_0x589417;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xae4b=['push','span','setTemplate','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','Revision\x20creator','name','Revision\x20author'];(function(_0x4800bd,_0xae4ba3){const _0x2b5f83=function(_0x1926e9){while(--_0x1926e9){_0x4800bd['push'](_0x4800bd['shift']());}};_0x2b5f83(++_0xae4ba3);}(_0xae4b,0x192));const _0x2b5f=function(_0x4800bd,_0xae4ba3){_0x4800bd=_0x4800bd-0x0;let _0x2b5f83=_0xae4b[_0x4800bd];return _0x2b5f83;};import{View as _0x57bece,IconView as _0x328087}from'ckeditor5/src/ui';import{getTranslation as _0xc79a50}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1afb81 from'../../../theme/icons/user.svg';export default class ti extends _0x57bece{constructor(_0x57d835,_0x1b455d,_0x585121){super(_0x57d835);const _0x4b1496=new _0x328087();_0x4b1496['set']({'content':_0x1afb81,'viewBox':'0\x200\x2011\x2010'});const _0xc5c743=['ck',_0x2b5f('0x2')];_0x585121&&_0xc5c743[_0x2b5f('0x6')]('ck-revision-history-sidebar__revision-author_creator');const _0x3414c8=[{'tag':_0x2b5f('0x7'),'attributes':{'class':['ck',_0x2b5f('0x1')],'title':_0xc79a50(_0x57d835,_0x585121?_0x2b5f('0x3'):_0x2b5f('0x5'))},'children':[_0x4b1496,_0x1b455d[_0x2b5f('0x4')]]}];this[_0x2b5f('0x0')]({'tag':'li','attributes':{'class':_0xc5c743},'children':_0x3414c8});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3089=['set','ck-revision-history-sidebar__revision-name','Revision\x20name','span','extendTemplate'];(function(_0x9cad6d,_0x3089ad){var _0x1239ad=function(_0x52618b){while(--_0x52618b){_0x9cad6d['push'](_0x9cad6d['shift']());}};_0x1239ad(++_0x3089ad);}(_0x3089,0x8d));var _0x1239=function(_0x9cad6d,_0x3089ad){_0x9cad6d=_0x9cad6d-0x0;var _0x1239ad=_0x3089[_0x9cad6d];return _0x1239ad;};import{LabeledFieldView as _0x230b37}from'ckeditor5/src/ui';import{getTranslation as _0x22d490}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x230b37{constructor(_0x1416ae,_0x22da9e){super(_0x1416ae,_0x22da9e),this[_0x1239('0x4')]({'label':_0x22d490(_0x1416ae,_0x1239('0x1'))}),this[_0x1239('0x3')]({'tag':_0x1239('0x2'),'attributes':{'class':[_0x1239('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28d0=['ck-revision-history-sidebar__revision-wrapper','revisionNameView','span','revisionActionsView','isReady','uiLanguage','ck-reset','fire','isActionsDropdownOpen','isEnabled','change','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','220','element','select','ck-revision-history-sidebar__revision-authors','fieldView','div','isHighlighted','length','ck-disabled','bind','ck-revision-history-sidebar__revision','value','isSelected','isConfirm','listenTo','authors','setName','createdAt','srcElement','creator','.ck-thread__remove-confirm','filter','placeholder','unhighlight','name','_createdAtFormatted','map','unshift','ck-revision-history-sidebar__revision__controls-wrapper','set','ck-revision-history-sidebar__revision_highlighted','from','render','bindTemplate','extendTemplate'];(function(_0x18fac3,_0x28d0c7){const _0x1e52f9=function(_0x15a9ee){while(--_0x15a9ee){_0x18fac3['push'](_0x18fac3['shift']());}};_0x1e52f9(++_0x28d0c7);}(_0x28d0,0xcd));const _0x1e52=function(_0x18fac3,_0x28d0c7){_0x18fac3=_0x18fac3-0x0;let _0x1e52f9=_0x28d0[_0x18fac3];return _0x1e52f9;};import{View as _0x372521,createLabeledInputText as _0x1bc2d5}from'ckeditor5/src/ui';import{ConfirmMixin as _0x30281a}from'ckeditor5-collaboration/src/collaboration-core';import _0x23bdf3 from'./revisionnameview';import _0x43556a from'./revisionauthorview';import{dateToPrettyFormat as _0x2ee31f}from'./utils';import{createActionsDropdownView as _0x224dd4}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x30281a(_0x372521){constructor(_0x299414,_0x1835fd,_0x529a84){super(_0x299414);const _0x335186=this[_0x1e52('0x1c')],_0x1a1fd7=function(_0x7feaad,_0x1677af){const _0x2e3ae0=Array[_0x1e52('0x1a')](_0x1677af[_0x1e52('0xa')])[_0x1e52('0x10')](_0x3a00ce=>_0x3a00ce!=_0x1677af[_0x1e52('0xe')]);return _0x1677af[_0x1e52('0xe')]&&_0x2e3ae0[_0x1e52('0x16')](_0x1677af[_0x1e52('0xe')]),_0x2e3ae0[_0x1e52('0x15')](_0x16bb1b=>new _0x43556a(_0x7feaad,_0x16bb1b,_0x16bb1b==_0x1677af[_0x1e52('0xe')]));}(_0x299414,_0x1835fd);this['id']=_0x1835fd['id'],this['_revision']=_0x1835fd,this['bind'](_0x1e52('0x13'),_0x1e52('0xc'))['to'](_0x1835fd),this[_0x1e52('0x4')](_0x1e52('0x14'))['to'](this,_0x1e52('0xc'),_0x5b8e75=>_0x5b8e75?_0x2ee31f(_0x299414[_0x1e52('0x23')],_0x5b8e75):void 0x0),this[_0x1e52('0x18')](_0x1e52('0x7'),!0x1),this[_0x1e52('0x18')]('isHighlighted',!0x1),this[_0x1e52('0x18')](_0x1e52('0x26'),!0x1),this[_0x1e52('0x18')](_0x1e52('0x22'),!0x1),this['set'](_0x1e52('0x27'),!0x1),this[_0x1e52('0x1f')]=new _0x23bdf3(_0x299414,_0x1bc2d5),this[_0x1e52('0x1f')][_0x1e52('0x2e')][_0x1e52('0x1d')]({'attributes':{'maxlength':_0x1e52('0x2a')}}),this['revisionNameView'][_0x1e52('0x2e')][_0x1e52('0x4')](_0x1e52('0x6'),_0x1e52('0x11'))['to'](this,_0x1e52('0x13'),_0x1e52('0x14')),this[_0x1e52('0x1f')][_0x1e52('0x4')](_0x1e52('0x27'))['to'](this,_0x1e52('0x7'),this,_0x1e52('0x27'),(_0x37c6ca,_0x35b4cf)=>_0x37c6ca&&_0x35b4cf),this['revisionActionsView']=_0x529a84&&_0x529a84[_0x1e52('0x2')]?_0x224dd4(this,_0x529a84):'',this[_0x1e52('0x21')]&&this['revisionActionsView'][_0x1e52('0x4')](_0x1e52('0x27'))['to'](this),this['setTemplate']({'tag':_0x1e52('0x0'),'attributes':{'class':['ck',_0x1e52('0x24'),_0x1e52('0x1e'),_0x335186['if'](_0x1e52('0x8'),_0x1e52('0x29'))]},'children':[{'tag':_0x1e52('0x0'),'attributes':{'class':['ck',_0x1e52('0x24'),_0x1e52('0x5'),_0x335186['if']('isEnabled',_0x1e52('0x3'),_0x4f273b=>!_0x4f273b),_0x335186['if'](_0x1e52('0x7'),'ck-revision-history-sidebar__revision_selected'),_0x335186['if'](_0x1e52('0x1'),_0x1e52('0x19')),_0x335186['if'](_0x1e52('0x26'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':_0x1e52('0x20'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x335186['to'](_0x1e52('0x14'))}]},{'tag':_0x1e52('0x0'),'attributes':{'class':['ck',_0x1e52('0x17')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1e52('0x2d')]},'children':_0x1a1fd7}]},this['revisionActionsView']],'on':{'click':_0x335186['to'](_0x1e6296=>{_0x1e6296[_0x1e52('0xd')]['closest'](_0x1e52('0xf'))||this[_0x1e52('0x22')]&&this[_0x1e52('0x27')]&&this[_0x1e52('0x25')](_0x1e52('0x2c'),{'id':this['id']});})}}]});}['render'](){super[_0x1e52('0x1b')]();const _0x45b79a=this[_0x1e52('0x1f')]['fieldView'][_0x1e52('0x2b')];this[_0x1e52('0x9')](_0x45b79a,_0x1e52('0x28'),()=>{this[_0x1e52('0x25')](_0x1e52('0xb'),{'id':this['id'],'name':_0x45b79a[_0x1e52('0x6')]});});}[_0x1e52('0x2c')](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this[_0x1e52('0x1')]=!0x0;}[_0x1e52('0x12')](){this[_0x1e52('0x1')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1144=['set','ck-revision-history-sidebar__subrevision-collapser__inner','setTemplate','_isCollapsed','true','bindTemplate','span','isVisible','button','false','toggle','click'];(function(_0x2eb375,_0x1144e9){const _0x5266cf=function(_0x263649){while(--_0x263649){_0x2eb375['push'](_0x2eb375['shift']());}};_0x5266cf(++_0x1144e9);}(_0x1144,0x128));const _0x5266=function(_0x2eb375,_0x1144e9){_0x2eb375=_0x2eb375-0x0;let _0x5266cf=_0x1144[_0x2eb375];return _0x5266cf;};import{View as _0x1e048b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x1e048b{constructor(_0xa924bb){super(_0xa924bb);const _0x1ed86e=this[_0x5266('0x9')];this[_0x5266('0x4')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5266('0x6')]({'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x1ed86e['if'](_0x5266('0xb'),'ck-hidden',_0x1332b0=>!_0x1332b0),_0x1ed86e['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x5266('0x0'),'aria-pressed':_0x1ed86e['to'](_0x5266('0x7'),_0x50dd01=>_0x50dd01?_0x5266('0x1'):_0x5266('0x8'))},'children':[{'tag':_0x5266('0xa'),'attributes':{'class':['ck',_0x5266('0x5')]}}],'on':{'click':_0x1ed86e['to'](_0x5266('0x3'))}});}[_0x5266('0x2')](){this['_isCollapsed']=!this[_0x5266('0x7')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x186c=['isSelected','select','bindTemplate','uiLanguage','createdAt','bind','ck-revision-history-sidebar__subrevision','span','ck-revision-history-sidebar__revision-authors','_createdAtFormatted','deselect','fire','_parentRevisionId','creator','ck-reset','ck-revision-history-sidebar__revision'];(function(_0x505ada,_0x186c92){const _0x5b4d85=function(_0x27ea2e){while(--_0x27ea2e){_0x505ada['push'](_0x505ada['shift']());}};_0x5b4d85(++_0x186c92);}(_0x186c,0x1b5));const _0x5b4d=function(_0x505ada,_0x186c92){_0x505ada=_0x505ada-0x0;let _0x5b4d85=_0x186c[_0x505ada];return _0x5b4d85;};import{View as _0x158cd1}from'ckeditor5/src/ui';import _0x1b51a7 from'./revisionauthorview';import{dateToPrettyFormat as _0x5d3f36}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x158cd1{constructor(_0x2557d5,_0x419310,_0x3b8a10){super(_0x2557d5);const _0x239bdd=this[_0x5b4d('0xd')];this['id']=_0x419310['id'],this[_0x5b4d('0x0')](_0x5b4d('0xf'))['to'](_0x419310),this['set']('isSelected',!0x1),this[_0x5b4d('0x0')](_0x5b4d('0x4'))['to'](this,_0x5b4d('0xf'),_0x37dd42=>_0x37dd42?_0x5d3f36(_0x2557d5[_0x5b4d('0xe')],_0x37dd42):void 0x0),this[_0x5b4d('0x7')]=_0x3b8a10,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x5b4d('0x9'),_0x5b4d('0xa'),_0x5b4d('0x1'),_0x239bdd['if'](_0x5b4d('0xb'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x5b4d('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x239bdd['to'](_0x5b4d('0x4'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5b4d('0x3')]},'children':[new _0x1b51a7(_0x2557d5,_0x419310[_0x5b4d('0x8')],!0x0)]}],'on':{'click':_0x239bdd['to'](this[_0x5b4d('0xc')][_0x5b4d('0x0')](this))}});}[_0x5b4d('0xc')](){this['isSelected']=!0x0,this[_0x5b4d('0x6')](_0x5b4d('0xc'),{'parentId':this[_0x5b4d('0x7')]});}[_0x5b4d('0x5')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3195=['long','numeric','toLocaleDateString','toLocaleTimeString'];(function(_0x55bba4,_0x31951c){var _0x29451b=function(_0x5cb741){while(--_0x5cb741){_0x55bba4['push'](_0x55bba4['shift']());}};_0x29451b(++_0x31951c);}(_0x3195,0x1cc));var _0x2945=function(_0x55bba4,_0x31951c){_0x55bba4=_0x55bba4-0x0;var _0x29451b=_0x3195[_0x55bba4];return _0x29451b;};export function dateToPrettyFormat(_0x4c9864,_0x2f018e){return _0x2f018e[_0x2945('0x2')](_0x4c9864,{'month':_0x2945('0x0'),'day':'numeric'})+',\x20'+_0x2f018e[_0x2945('0x3')](_0x4c9864,{'hour':_0x2945('0x1'),'minute':_0x2945('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d3a=['trim','cancelButtonView','220','extendTemplate','focusTracker','revisionNameInputValue','setTemplate','arrowdown','submit','render','set','ck-responsive-form','ck-button-save','value','execute','label','tab','delegate','arrowright','_createRevisionNameInput','keystrokes','element','forEach','saveButtonView','locale','check','_createButton','shift\x20+\x20tab','cancel','revisionName','revisionNameInputView','input','form','Cancel','ck-button-cancel','type','add','fieldView','reset'];(function(_0x8ccbd7,_0x2d3a9a){const _0x1c4678=function(_0x33cbe7){while(--_0x33cbe7){_0x8ccbd7['push'](_0x8ccbd7['shift']());}};_0x1c4678(++_0x2d3a9a);}(_0x2d3a,0x88));const _0x1c46=function(_0x8ccbd7,_0x2d3a9a){_0x8ccbd7=_0x8ccbd7-0x0;let _0x1c4678=_0x2d3a[_0x8ccbd7];return _0x1c4678;};import{icons as _0x1a7834}from'ckeditor5/src/core';import{ButtonView as _0x37183c,FocusCycler as _0x8aa539,LabeledFieldView as _0x5e0e9d,View as _0x11942f,ViewCollection as _0x16a81b,createLabeledInputText as _0x297ae0,injectCssTransitionDisabler as _0x4030a0,submitHandler as _0x30b48c}from'ckeditor5/src/ui';import{FocusTracker as _0x204112,KeystrokeHandler as _0x365117}from'ckeditor5/src/utils';import{getTranslation as _0x1ff39c}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x11942f{constructor(_0x3dde9a){super(_0x3dde9a),this['focusTracker']=new _0x204112(),this[_0x1c46('0x1')]=new _0x365117(),this['set'](_0x1c46('0x19'),''),this[_0x1c46('0xb')]=this[_0x1c46('0x0')](),this[_0x1c46('0x4')]=this['_createButton'](_0x1ff39c(_0x3dde9a,'Save'),_0x1a7834[_0x1c46('0x6')],_0x1c46('0x20')),this[_0x1c46('0x4')][_0x1c46('0x10')]=_0x1c46('0x1c'),this['cancelButtonView']=this[_0x1c46('0x7')](_0x1ff39c(_0x3dde9a,_0x1c46('0xe')),_0x1a7834[_0x1c46('0x9')],_0x1c46('0xf'),_0x1c46('0x9')),this['_focusables']=new _0x16a81b(),this['_focusCycler']=new _0x8aa539({'focusables':this['_focusables'],'focusTracker':this[_0x1c46('0x18')],'keystrokeHandler':this[_0x1c46('0x1')],'actions':{'focusPrevious':_0x1c46('0x8'),'focusNext':_0x1c46('0x24')}}),this[_0x1c46('0x1a')]({'tag':_0x1c46('0xd'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x1c46('0x1f')],'tabindex':'-1'},'children':[this[_0x1c46('0xb')],this[_0x1c46('0x4')],this[_0x1c46('0x15')]]}),_0x4030a0(this);}['render'](){super[_0x1c46('0x1d')](),_0x30b48c({'view':this}),([this[_0x1c46('0xb')],this['saveButtonView'],this[_0x1c46('0x15')]][_0x1c46('0x3')](_0x3b6c09=>{this['_focusables']['add'](_0x3b6c09),this[_0x1c46('0x18')][_0x1c46('0x11')](_0x3b6c09[_0x1c46('0x2')]);}),this['keystrokes']['listenTo'](this[_0x1c46('0x2')]));const _0x2fee7c=_0x4257b6=>_0x4257b6['stopPropagation']();this[_0x1c46('0x1')][_0x1c46('0x1e')](_0x1c46('0x26'),_0x2fee7c),this['keystrokes'][_0x1c46('0x1e')]('arrowleft',_0x2fee7c),this[_0x1c46('0x1')][_0x1c46('0x1e')]('arrowup',_0x2fee7c),this['keystrokes'][_0x1c46('0x1e')](_0x1c46('0x1b'),_0x2fee7c);}['focus'](){this['_focusCycler']['focusFirst']();}get[_0x1c46('0xa')](){return this[_0x1c46('0xb')][_0x1c46('0x12')][_0x1c46('0x2')]['value']['trim']();}set[_0x1c46('0xa')](_0x5d4693){this[_0x1c46('0xb')][_0x1c46('0x12')][_0x1c46('0x2')][_0x1c46('0x21')]=_0x5d4693[_0x1c46('0x14')]();}[_0x1c46('0x13')](){this['revisionNameInputView'][_0x1c46('0x12')]['element'][_0x1c46('0x21')]='';}['_createRevisionNameInput'](){const _0x976f89=new _0x5e0e9d(this[_0x1c46('0x5')],_0x297ae0),_0x3c98b6=_0x976f89[_0x1c46('0x12')];return _0x3c98b6[_0x1c46('0x17')]({'attributes':{'maxlength':_0x1c46('0x16')}}),_0x976f89[_0x1c46('0x23')]=_0x1ff39c(this['locale'],'Name\x20of\x20the\x20revision\x20(optional)'),_0x3c98b6['on'](_0x1c46('0xc'),()=>{this['revisionNameInputValue']=_0x3c98b6['element']['value'][_0x1c46('0x14')]();}),_0x976f89;}[_0x1c46('0x7')](_0x289ea8,_0x2633da,_0x4d5d6b,_0x5aa727){const _0x2c856f=new _0x37183c(this[_0x1c46('0x5')]);return _0x2c856f[_0x1c46('0x1e')]({'label':_0x289ea8,'icon':_0x2633da,'tooltip':!0x0}),_0x2c856f['extendTemplate']({'attributes':{'class':_0x4d5d6b}}),_0x5aa727&&_0x2c856f[_0x1c46('0x25')](_0x1c46('0x22'))['to'](this,_0x5aa727),_0x2c856f;}}
|