@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231205.0 → 0.0.0-nightly-20231206.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.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36f6=['_sortAndFilterDiffChanges','requires','markerRange','markerToHighlight','attributes','filter','toViewElement','all','test','createPositionFromPath','_update','change:activeView','loadRevisionData','restoreRevisionCallback','wrap','userId','roots','_findChangeIdFromDomTarget','pairId','_setConversion','distance','startIndex','showNextChange','data','range','detachRoot','markersEnd','deletions','_changeIdToChange','revisionHistoryAttachChange','_changeView','object','createUIElement','suggestion','change:numberOfChanges','getRevision','adapter','writer','markerNameToElements','add','code','target','currentChangeNumber','toViewRange','changeId','isAttached','_step','POSITIVE_INFINITY','comment','level','getCustomProperty','nextPosition','config','getRevisionRootsAttributes','has','getAttributes','markerName','error','data-change-id','high','from','isSuggestion','viewItem','clear','element','getWalker','find','isAtEnd','schema','splice','revision-start','isOnRoot','_threeWayMerge','mouseover','attachChange','_revisions','backward','bottom','indexOf','revision-suggestion','nodeAfter','ck-suggestion-marker-split','changes','forEach','isAtStart','attributesAfter','maxOffset','modelRange','ck-revision-history-root-add','bindElementToMarker','refresh','return','change:isReady','slice','isIncorrect','conversion','ck-editor__editable__overlay','get','marked','selection','for','name','data-revision-','addMarker:revision','_markInsertions','getRevisionData','index','markers','_refreshStartEndIndex','isAfter','affectsData','ck-suggestion-marker','ck-suggestion-marker--active','vid','highest','done','_processTape','deletion','attributesBefore','checkAttribute','mousedown','upcast','sort','right','hasClass','_getRevisionsRange','removeClass','processor','insertions','offsetSize','merge','ck-suggestion-preview-marker-','_initInteractions','execute','toModel','attribute:vid','repository','endIndex','top','children','length','_balloon','suggestion:','mapViewToDom','unshift','getIndex','isAddSuggestion','_setChanges','markerToData','dataToMarker','string','removeAttribute','then','isRemoved','restoreRevision','bind','_getChangeFromId','locale','isLimit','addRevision','revisionHistoryLabel','commands','span','init','change','text','mapper','RevisionsRepository','includes','rootName','end','remove','insert','_getViewObj','createPositionBefore','ck-revision-history-root-','uiElement','forward','markersStart','start','WidgetToolbarRepository','_markSuggestions','observeMarkers','getClientRects','keys','newRevisionId','toData','_removeMissingPairs','addClass','revision-viewer','RevisionViewer','ck-revision-history-root-remove','startsWith','isEqual','consume','split','first','previousPosition','_cleanUp','listenTo','getRootNames','isCollapsed','type','push','vid_end','_makeModelFromTape','set','isBefore','_getViewForChange','setAttribute','isRemoveSuggestion','shift','document','activeChange','isObject','_markMarkers','getAttribute','_cleanMarkers','editing','getRoot','diff','updatePosition','activeView','_joinTapes','side','compare','destroy','_appendChild','isAdded','map','dataDowncast','getItems','model','_markMismatchedRemovedTags','forceDisabled','view','_getDiff','createRange','revision','concat','parent','isEnabled','domEvent','_makeModelFromViewString','elementStart','editingDowncast','toViewPosition','showStack','_setDistance','createRangeIn','getChild','_makeTape','isBlock','removeMarker:revision-suggestion','diffData','ck-suggestion-marker-merge','vid_start','_fixObsoleteTags','low','plugins','_activeViewTarget','_removeRevisionMarkers','ck-revision-history-root--active','editor','item','hasAttribute','isInline','consumable','nextSibling','downcastDispatcher','change:isEnabled','elementEnd','enqueueChange','oldRevisionId','resolve','ck-suggestion-marker-','_data','isContent','left','abs','isReady','delete','-new','isNavigationMode','enableReadOnlyMode','findIndex','unbindElementFromMarkerName','useFillerType','revision:','reconvertMarker','insertion','flat'];(function(_0x262a19,_0x36f64e){const _0x11bb5f=function(_0x3f8992){while(--_0x3f8992){_0x262a19['push'](_0x262a19['shift']());}};_0x11bb5f(++_0x36f64e);}(_0x36f6,0x6d));const _0x11bb=function(_0x262a19,_0x36f64e){_0x262a19=_0x262a19-0x0;let _0x11bb5f=_0x36f6[_0x262a19];return _0x11bb5f;};import{Plugin as _0x13488c,Command as _0x5a372b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5ecb13}from'ckeditor5/src/utils';import{ContextualBalloon as _0xb22e0c}from'ckeditor5/src/ui';import{DocumentFragment as _0x4679f0,Element as _0x3b7736,Text as _0x136c94,ViewDocumentFragment as _0x39daff,ViewText as _0x3494f8,ViewElement as _0x234a89,ViewContainerElement as _0x293a69,ViewAttributeElement as _0x35fac2,ViewEmptyElement as _0x3c05cf,ViewRawElement as _0x49295f,ViewUIElement as _0x3ddf84}from'ckeditor5/src/engine';import{Users as _0x142877,getMarkerDomElement as _0x30014c}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a3d20 from'./ui/revisionviewer/changedetailsview';import _0x4b0e75 from'./revisionsrepository';import _0x39bcb4 from'./changeitem';import{default as _0x3c75f0}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x22dae1}from'lodash-es';const tt={'c':_0x293a69,'a':_0x35fac2,'e':_0x3c05cf,'r':_0x49295f,'u':_0x3ddf84};export default class d extends _0x13488c{static get['pluginName'](){return'RevisionViewer';}static get[_0x11bb('0xb8')](){return[_0x142877,_0xb22e0c,_0x4b0e75];}constructor(_0x36836f){super(_0x36836f),this[_0x11bb('0x1b')]=this[_0x11bb('0x9a')][_0x11bb('0x96')][_0x11bb('0x118')](_0x11bb('0x3a')),this[_0x11bb('0x61')](_0x11bb('0x68'),null),this[_0x11bb('0x61')](_0x11bb('0x71'),null),this[_0x11bb('0x97')]=null,this[_0x11bb('0x61')](_0x11bb('0x6f'),null),this[_0x11bb('0x61')](_0x11bb('0xab'),!0x1),this[_0x11bb('0x61')](_0x11bb('0x84'),!0x0),this['on'](_0x11bb('0xa1'),(_0x2117d9,_0x4d83af,_0x3ebebb)=>{this[_0x11bb('0x68')]=null,this[_0x11bb('0x71')]=null,this[_0x11bb('0x9a')][_0x11bb('0x6d')][_0x11bb('0x7e')][_0x11bb('0x37')](_0x2e5182=>{for(const _0x3453ea of this[_0x11bb('0x9a')]['editing']['view']['document'][_0x11bb('0xc7')])_0x3ebebb?_0x2e5182[_0x11bb('0x11')](_0x11bb('0x117'),_0x3453ea):_0x2e5182[_0x11bb('0x4f')]('ck-editor__editable__overlay',_0x3453ea);});}),this[_0x11bb('0x2e')](_0x11bb('0xae'))['to'](this,_0x11bb('0x68'),_0x528ea9=>null!==_0x528ea9),this['bind'](_0x11bb('0xe1'))['to'](this,_0x11bb('0xab'),this,_0x11bb('0x6f'),this,_0x11bb('0x68'),(_0x48b87d,_0xcd5bc0,_0x59db56)=>_0x48b87d&&_0x59db56?_0xcd5bc0[_0x11bb('0x109')][_0x11bb('0x24')](_0x59db56):0x0),this[_0x11bb('0x2e')]('numberOfChanges')['to'](this,_0x11bb('0xab'),this,_0x11bb('0x6f'),(_0x22792d,_0xdc7818)=>_0x22792d?_0xdc7818[_0x11bb('0x109')][_0x11bb('0x1f')]:0x0),this[_0x11bb('0xd5')]=null,this[_0x11bb('0xd3')]=new Map(),this['adapter']=null,this[_0x11bb('0x20')]=this[_0x11bb('0x9a')][_0x11bb('0x96')][_0x11bb('0x118')](_0xb22e0c);}[_0x11bb('0x36')](){const _0x42c0a0=this['editor'],_0x1ce85d=new ShowChangeCommand(_0x42c0a0,{'direction':_0x11bb('0x103')}),_0x2ff32f=new ShowChangeCommand(_0x42c0a0,{'direction':'forward'});(_0x42c0a0[_0x11bb('0x34')]['add']('showPreviousChange',_0x1ce85d),_0x42c0a0[_0x11bb('0x34')]['add'](_0x11bb('0xcd'),_0x2ff32f),_0x42c0a0[_0x11bb('0x34')][_0x11bb('0xde')](_0x11bb('0x2d'),new RestoreRevisionCommand(_0x42c0a0)),this['on'](_0x11bb('0xd9'),()=>{_0x1ce85d[_0x11bb('0x111')](),_0x2ff32f[_0x11bb('0x111')]();}),this[_0x11bb('0xca')](),this['_initInteractions'](),_0x42c0a0[_0x11bb('0xaf')](_0x11bb('0x50')),_0x42c0a0[_0x11bb('0x96')][_0x11bb('0xed')](_0x11bb('0x47')))&&_0x42c0a0[_0x11bb('0x96')]['get'](_0x11bb('0x47'))[_0x11bb('0x7d')]('revision-viewer');}async[_0x11bb('0x120')](_0x5d9cd6){await this[_0x11bb('0xc3')](_0x5d9cd6);const _0x3f335a={};for(const _0xd9e828 in _0x5d9cd6[_0x11bb('0x91')]){if(_0x5d9cd6['diffData'][_0xd9e828][_0x11bb('0x101')]&&!_0x5d9cd6[_0x11bb('0x91')][_0xd9e828]['attachChange'][_0x11bb('0xe4')])continue;const _0x4ab819=this['_removeRevisionMarkers'](JSON['parse'](_0x5d9cd6[_0x11bb('0x91')][_0xd9e828][_0x11bb('0x13')])),_0x21cff9=this['editor'][_0x11bb('0x6d')]['view']['document'],_0x20d5ae=new _0x39daff(_0x21cff9,_0x4ab819['map'](_0x3dbb90=>this[_0x11bb('0x40')](_0x3dbb90)));this['editor'][_0x11bb('0xce')][_0x11bb('0x12')]['useFillerType'](_0x11bb('0x119')),_0x3f335a[_0xd9e828]=this[_0x11bb('0x9a')][_0x11bb('0xce')][_0x11bb('0x12')][_0x11bb('0x4d')](_0x20d5ae),this[_0x11bb('0x9a')][_0x11bb('0xce')][_0x11bb('0x12')][_0x11bb('0xb2')]('default');}return _0x3f335a;}async[_0x11bb('0xec')](_0x9c3e0){await this[_0x11bb('0xc3')](_0x9c3e0);const _0x3113cd={};for(const _0x454ef2 in _0x9c3e0[_0x11bb('0x91')])_0x9c3e0[_0x11bb('0x91')][_0x454ef2][_0x11bb('0x101')]&&!_0x9c3e0[_0x11bb('0x91')][_0x454ef2][_0x11bb('0x101')][_0x11bb('0xe4')]||(_0x3113cd[_0x454ef2]=_0x9c3e0[_0x11bb('0x91')][_0x454ef2][_0x11bb('0x10c')]||{});return _0x3113cd;}[_0x11bb('0x98')](_0x4e5a09){return(_0x4e5a09=_0x4e5a09[_0x11bb('0xbc')](_0x1e2a4f=>!_0x1e2a4f[_0x11bb('0x11c')]||_0x11bb('0xfd')!==_0x1e2a4f['name']&&'revision-end'!==_0x1e2a4f[_0x11bb('0x11c')]))['forEach'](_0xdc6394=>{_0x11bb('0x29')!=typeof _0xdc6394&&(_0xdc6394[_0x11bb('0x1e')]=this[_0x11bb('0x98')](_0xdc6394[_0x11bb('0x1e')]),_0xdc6394[_0x11bb('0xbb')]=_0xdc6394[_0x11bb('0xbb')]['filter'](_0x508085=>!_0x508085[0x0][_0x11bb('0x53')](_0x11bb('0x11d'))));}),_0x4e5a09;}async[_0x11bb('0x74')](_0x720a68,_0x475b7c,_0x26d920=!0x1){if(!this['isEnabled'])return;const _0x2afaf9=this[_0x11bb('0x6f')],_0x398fd6=this['repository'],_0x57fa10='string'==typeof _0x720a68?_0x398fd6[_0x11bb('0xda')](_0x720a68):_0x720a68,_0x49d7e2=_0x11bb('0x29')==typeof _0x475b7c?_0x398fd6['getRevision'](_0x475b7c):_0x475b7c,_0x4bacd2=_0x57fa10['id'],_0x239310=_0x49d7e2?_0x49d7e2['id']:null;if(!_0x26d920&&this[_0x11bb('0x6f')]&&this['diff'][_0x11bb('0x4c')]===_0x4bacd2&&this[_0x11bb('0x6f')][_0x11bb('0xa4')]===_0x239310)return Promise[_0x11bb('0xa5')]();this[_0x11bb('0xab')]=!0x1,this[_0x11bb('0x71')]=null,this['activeChange']=null,this[_0x11bb('0x6f')]=new _0x3c75f0(_0x4bacd2,_0x239310);const _0x408120=this[_0x11bb('0x10')](_0x57fa10,_0x49d7e2,!0x0)[_0x11bb('0x78')](_0x46467e=>this[_0x11bb('0xc3')](_0x46467e));return _0x408120[_0x11bb('0x5e')](new Promise(_0x511d72=>{setTimeout(_0x511d72,0x14);})),Promise[_0x11bb('0xbe')](_0x408120)[_0x11bb('0x2b')](()=>{if(!this[_0x11bb('0x84')])return;this['_cleanUp']();const _0x3c85b7=this[_0x11bb('0x7f')](_0x4bacd2,_0x239310);for(const _0x2a6bd9 of _0x3c85b7['changes'])this[_0x11bb('0xd3')][_0x11bb('0x61')](_0x2a6bd9['id'],_0x2a6bd9);this[_0x11bb('0x9a')]['model'][_0x11bb('0xa3')]({'isUndoable':!0x1},_0x522af4=>{for(const _0x140eca of this['editor'][_0x11bb('0x7b')][_0x11bb('0x67')][_0x11bb('0x5b')]())_0x522af4[_0x11bb('0xd0')](_0x140eca);for(const _0x3c7933 of Object['keys'](_0x3c85b7[_0x11bb('0x7b')])){const _0x56a19d=_0x522af4['addRoot'](_0x3c7933);for(const _0x4339cb of Object['keys'](_0x3c85b7[_0x11bb('0xbb')][_0x3c7933]))_0x522af4['setAttribute'](_0x4339cb,_0x3c85b7[_0x11bb('0xbb')][_0x3c7933][_0x4339cb],_0x56a19d);_0x522af4[_0x11bb('0x3f')](_0x3c85b7[_0x11bb('0x7b')][_0x3c7933],_0x56a19d,0x0);}}),this[_0x11bb('0x6f')][_0x11bb('0x26')](this[_0x11bb('0xb7')](_0x3c85b7['changes'])),this[_0x11bb('0xab')]=!0x0;})['catch'](_0x263cb1=>{console[_0x11bb('0xf0')](_0x263cb1),this[_0x11bb('0x59')](),_0x2afaf9&&(this[_0x11bb('0x6f')]=_0x2afaf9),this['isReady']=!0x0;});}['addRevisionData'](_0x16619f,_0x3b73c1){const _0x3c10dd=this[_0x11bb('0x1b')]['createRevision'](_0x16619f);return _0x3c10dd['on'](_0x11bb('0xc1'),(_0x49aaf7,_0x43f5d6,_0x1aae19)=>_0x3b73c1(_0x43f5d6,_0x1aae19,_0x3c10dd)),this[_0x11bb('0x1b')][_0x11bb('0x32')](_0x3c10dd),_0x3c10dd;}[_0x11bb('0xc3')](_0x22f741){if(!_0x22f741||_0x22f741[_0x11bb('0x91')])return Promise[_0x11bb('0xa5')]();{const _0x15a660=this[_0x11bb('0x9a')][_0x11bb('0xeb')][_0x11bb('0x118')]('collaboration.channelId');return this[_0x11bb('0xdb')][_0x11bb('0xda')]({'channelId':_0x15a660,'revisionId':_0x22f741['id']})[_0x11bb('0x2b')](_0x5cfe2f=>{_0x22f741[_0x11bb('0xc1')]({'diffData':_0x5cfe2f[_0x11bb('0x91')]},!0x0);});}}[_0x11bb('0x59')](){this['activeChange']=null,this[_0x11bb('0x6c')](),this[_0x11bb('0xd5')]&&this['_changeView']['destroy'](),this[_0x11bb('0xd5')]=null,this[_0x11bb('0xd3')][_0x11bb('0xf6')](),this[_0x11bb('0x9a')]['model'][_0x11bb('0xa3')]({'isUndoable':!0x1},_0x3a6578=>{for(const _0x24215f of this[_0x11bb('0x9a')]['model'][_0x11bb('0x67')]['getRootNames']())_0x3a6578[_0x11bb('0xd0')](_0x24215f);});}[_0x11bb('0xb7')](_0x12692d){const _0x39e001=[],_0x39166f=new Map();for(const _0x529170 of this[_0x11bb('0x9a')][_0x11bb('0x7b')][_0x11bb('0x67')][_0x11bb('0x5b')]()){const _0x44b7a9=this[_0x11bb('0x9a')][_0x11bb('0x6d')]['view']['getDomRoot'](_0x529170);if(!_0x44b7a9)continue;const _0x5ad23c=_0x44b7a9['getClientRects']()['item'](0x0);_0x5ad23c&&(_0x39e001[_0x11bb('0x5e')](_0x529170),_0x39166f[_0x11bb('0x61')](_0x529170,_0x5ad23c));}return _0x39e001[_0x11bb('0xd')]((_0x19cafa,_0x353492)=>{const _0x20c104=_0x39166f[_0x11bb('0x118')](_0x19cafa),_0x31284c=_0x39166f['get'](_0x353492);return _0x20c104['y']-_0x31284c['y']||_0x20c104['x']-_0x31284c['x'];}),(_0x12692d=_0x12692d['filter'](_0x5915f4=>_0x39e001[_0x11bb('0x3b')](_0x5915f4[_0x11bb('0x3c')])))[_0x11bb('0xd')]((_0x5ae4b3,_0x1d950f)=>_0x39e001[_0x11bb('0x105')](_0x5ae4b3[_0x11bb('0x3c')])-_0x39e001[_0x11bb('0x105')](_0x1d950f[_0x11bb('0x3c')])),_0x12692d;}['_makeTape'](_0x33eff0){const _0x225f75=Array[_0x11bb('0xf3')](_0x33eff0[_0x11bb('0x122')])[_0x11bb('0xbc')](([_0x18752e,_0x530fca])=>_0x18752e['startsWith'](_0x11bb('0xb3'))&&!_0x530fca[_0x11bb('0x5c')]),_0x37e70c=Array['from'](this[_0x11bb('0x9a')]['model'][_0x11bb('0x8c')](_0x33eff0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x225f75[_0x11bb('0x1f')])for(const _0x286229 of _0x37e70c){const [_0x468fc8,_0x4d357f]=_0x225f75[0x0],[,_0x947477,_0x401b66]=_0x468fc8[_0x11bb('0x56')](':');if(_0x4d357f[_0x11bb('0x3d')][_0x11bb('0x54')](_0x286229[_0x11bb('0xea')])&&_0x225f75['shift'](),(_0x286229[_0x11bb('0x58')][_0x11bb('0x54')](_0x4d357f[_0x11bb('0x46')])||_0x286229[_0x11bb('0x58')]['isAfter'](_0x4d357f[_0x11bb('0x46')]))&&('insertion'==_0x947477?_0x286229[_0x11bb('0x77')]={'userId':_0x401b66}:'deletion'==_0x947477&&(_0x286229[_0x11bb('0x2c')]={'userId':_0x401b66})),0x0==_0x225f75['length'])break;}return _0x37e70c;}['_refreshStartEndIndex'](_0x5882bb){const _0x487a6d=new Map();for(let _0x5224d8=0x0;_0x5224d8<_0x5882bb[_0x11bb('0x1f')];_0x5224d8++)_0x11bb('0x38')===_0x5882bb[_0x5224d8]['type']?(_0x5882bb[_0x5224d8][_0x11bb('0x9b')][_0x11bb('0xcc')]=_0x5224d8,_0x5882bb[_0x5224d8][_0x11bb('0x9b')][_0x11bb('0x1c')]=_0x5224d8):(_0x11bb('0x87')===_0x5882bb[_0x5224d8][_0x11bb('0x5d')]?_0x5882bb[_0x5224d8][_0x11bb('0x9b')]['startIndex']=_0x5224d8:_0x11bb('0xa2')===_0x5882bb[_0x5224d8][_0x11bb('0x5d')]&&(_0x5882bb[_0x5224d8]['item'][_0x11bb('0x1c')]=_0x5224d8),_0x487a6d[_0x11bb('0x61')](_0x5882bb[_0x5224d8]['id'],_0x5224d8));for(const _0xa73722 of _0x487a6d['values']())_0x11bb('0x87')===_0x5882bb[_0xa73722][_0x11bb('0x5d')]?_0x5882bb[_0xa73722][_0x11bb('0x9b')][_0x11bb('0x1c')]=_0x487a6d[_0x11bb('0x118')](_0x5882bb[_0xa73722][_0x11bb('0xc9')]):'elementEnd'===_0x5882bb[_0xa73722][_0x11bb('0x5d')]&&(_0x5882bb[_0xa73722][_0x11bb('0x9b')][_0x11bb('0xcc')]=_0x487a6d[_0x11bb('0x118')](_0x5882bb[_0xa73722]['pairId']));}[_0x11bb('0x7')](_0x27692f){for(let _0x5d46d8=0x0;_0x5d46d8<_0x27692f[_0x11bb('0x1f')];_0x5d46d8++){if(_0x11bb('0x87')===_0x27692f[_0x5d46d8]['type'])_0x27692f[_0x5d46d8][_0x11bb('0x9b')][_0x11bb('0xcc')]=_0x5d46d8;else{if(_0x11bb('0xa2')===_0x27692f[_0x5d46d8][_0x11bb('0x5d')]){_0x27692f[_0x5d46d8][_0x11bb('0x9b')][_0x11bb('0x1c')]=_0x5d46d8;const _0x906c25=_0x27692f[_0x5d46d8]['item'][_0x11bb('0xcc')];_0x27692f[_0x906c25][_0x11bb('0xc9')]=_0x27692f[_0x5d46d8]['id'],_0x27692f[_0x5d46d8][_0x11bb('0xc9')]=_0x27692f[_0x906c25]['id'];}else _0x27692f[_0x5d46d8][_0x11bb('0x9b')][_0x11bb('0xcc')]=_0x5d46d8,_0x27692f[_0x5d46d8][_0x11bb('0x9b')][_0x11bb('0x1c')]=_0x5d46d8,_0x27692f[_0x5d46d8][_0x11bb('0xc9')]=null;}_0x27692f[_0x5d46d8][_0x11bb('0x45')]||(_0x27692f[_0x5d46d8]['markersStart']=[],_0x27692f[_0x5d46d8][_0x11bb('0xd1')]=[]);}}[_0x11bb('0x11f')](_0x56ec8b,_0x8a0c00){const _0x557fd2=_0x56ec8b[_0x11bb('0xbc')](_0x820ed8=>!_0x820ed8['isAdded']);for(let _0x18f113=0x0;_0x18f113<_0x8a0c00['length'];_0x18f113++)_0x8a0c00[_0x18f113]['isAdded']&&(_0x557fd2[_0x18f113][_0x11bb('0x77')]=_0x8a0c00[_0x18f113][_0x11bb('0x77')]);}['_makeModelFromViewString'](_0x34373e){const _0x3a1540=JSON['parse'](_0x34373e),_0x5cf6b7=this['editor'][_0x11bb('0x6d')][_0x11bb('0x7e')]['document'],_0x40c464=new _0x39daff(_0x5cf6b7,_0x3a1540[_0x11bb('0x78')](_0x43e3eb=>this[_0x11bb('0x40')](_0x43e3eb)));return this[_0x11bb('0x9a')][_0x11bb('0xce')][_0x11bb('0x19')](_0x40c464);}['_getViewObj'](_0x4da4ca){const _0x10b785=this[_0x11bb('0x9a')][_0x11bb('0x6d')][_0x11bb('0x7e')]['document'];if(_0x11bb('0x29')==typeof _0x4da4ca)return new _0x3494f8(_0x10b785,_0x4da4ca);{const _0x3dd146=_0x4da4ca[_0x11bb('0x1e')][_0x11bb('0x78')](_0x5d1865=>this[_0x11bb('0x40')](_0x5d1865));return new(tt[_0x4da4ca[(_0x11bb('0x5d'))]]||_0x234a89)(_0x10b785,_0x4da4ca[_0x11bb('0x11c')],_0x4da4ca[_0x11bb('0xbb')],_0x3dd146);}}[_0x11bb('0x7f')](_0x9a2781,_0x36e64b=null){const _0x36b03a=this[_0x11bb('0x1b')][_0x11bb('0xda')](_0x9a2781),_0x5411ff=_0x36e64b?this[_0x11bb('0x1b')][_0x11bb('0xda')](_0x36e64b):null,_0x49fe43=this[_0x11bb('0x10')](_0x36b03a,_0x5411ff),_0x3a868e=_0x49fe43[_0x49fe43[_0x11bb('0x1f')]-0x1],_0x44cb32=new Map(),_0x2187f0={'model':{},'attributes':{},'changes':[]},_0x1c978b=new Set(),_0x441ef0=new Map();for(let _0x2e09ee=_0x49fe43[_0x11bb('0x1f')]-0x1;_0x2e09ee>=0x0;_0x2e09ee--){const _0x2c2e4b=_0x49fe43[_0x2e09ee];for(const _0x3ce3b9 of Object['keys'](_0x2c2e4b[_0x11bb('0x91')]))if(_0x2c2e4b[_0x11bb('0x91')][_0x3ce3b9]['attachChange']){const _0xebee76=_0x2c2e4b[_0x11bb('0x91')][_0x3ce3b9][_0x11bb('0x101')];_0xebee76[_0x11bb('0xe4')]?(_0x1c978b[_0x11bb('0xde')](_0x3ce3b9),_0x441ef0[_0x11bb('0xed')](_0x3ce3b9)&&_0x441ef0[_0x11bb('0x118')](_0x3ce3b9)[_0x11bb('0xc6')]==_0xebee76[_0x11bb('0xc6')]?_0x441ef0[_0x11bb('0xac')](_0x3ce3b9):_0x441ef0[_0x11bb('0x61')](_0x3ce3b9,_0xebee76)):_0x441ef0[_0x11bb('0xed')](_0x3ce3b9)?(_0x1c978b['delete'](_0x3ce3b9),_0x441ef0['delete'](_0x3ce3b9)):(_0x1c978b[_0x11bb('0xde')](_0x3ce3b9),_0x441ef0[_0x11bb('0x61')](_0x3ce3b9,_0xebee76));}else _0x1c978b[_0x11bb('0xde')](_0x3ce3b9);}for(const _0x2ce027 of _0x1c978b){const _0x18c3e7=_0x441ef0[_0x11bb('0xed')](_0x2ce027)&&!_0x441ef0['get'](_0x2ce027)[_0x11bb('0xe4')];let _0x1819d1=_0x18c3e7?_0x49fe43[_0x11bb('0x1f')]-0x1:0x0;const _0x569129=_0x18c3e7?-0x1:0x1;for(;_0x49fe43[_0x1819d1];){const _0x524c23=_0x49fe43[_0x1819d1];if(_0x524c23[_0x11bb('0x91')][_0x2ce027]){const _0x5c1a8f=_0x18c3e7?_0x524c23[_0x11bb('0x91')][_0x2ce027][_0x11bb('0x9')]:_0x524c23[_0x11bb('0x91')][_0x2ce027]['attributesAfter'];_0x2187f0[_0x11bb('0xbb')][_0x2ce027]=_0x5c1a8f?_0x22dae1(_0x5c1a8f):{};break;}_0x1819d1+=_0x569129;}}for(const _0x12f055 of _0x49fe43){_0x12f055[_0x11bb('0x7b')]={};for(const _0x2d4388 of _0x12f055['authors'])_0x44cb32[_0x11bb('0x61')](_0x2d4388['id'],_0x2d4388);for(const _0x28bb4b of _0x1c978b){const _0x2037c6=_0x12f055[_0x11bb('0x91')][_0x28bb4b]?_0x12f055[_0x11bb('0x91')][_0x28bb4b][_0x11bb('0x13')]:'[]',_0x4e716e=_0x12f055[_0x11bb('0x91')][_0x28bb4b]?_0x12f055[_0x11bb('0x91')][_0x28bb4b][_0x11bb('0xd2')]:'[]';_0x12f055[_0x11bb('0x7b')][_0x28bb4b]={'insertions':this[_0x11bb('0x86')](_0x2037c6),'deletions':this[_0x11bb('0x86')](_0x4e716e)};}}for(const _0x6c5422 of _0x1c978b){let _0x3b3515=null,_0x198fd5=0x0;const _0x59ffe2=new Map(Array[_0x11bb('0xf3')](_0x36b03a[_0x11bb('0x7b')][_0x6c5422][_0x11bb('0x13')][_0x11bb('0x122')])[_0x11bb('0xbc')](([_0x2bfb2c])=>!_0x2bfb2c[_0x11bb('0x53')](_0x11bb('0xb3'))));let _0x2ed8ab=0x0;for(const _0x5d0106 of _0x49fe43){const _0xe36449=this[_0x11bb('0x8e')](_0x5d0106[_0x11bb('0x7b')][_0x6c5422][_0x11bb('0x13')]);_0x5d0106==_0x36b03a?(_0x3b3515=_0xe36449,_0x198fd5=_0x3b3515['length'],_0x3b3515[_0x11bb('0x10a')](_0x4dee6=>{_0x4dee6['id']=_0x2ed8ab++;}),this[_0x11bb('0x7')](_0x3b3515)):this[_0x11bb('0x11f')](_0x3b3515,_0xe36449);const _0xac8bdf=_0x3b3515['filter'](_0x41bf43=>!_0x41bf43[_0x11bb('0x77')])[_0x11bb('0x78')](_0x17cda3=>_0x17cda3['id']);let _0x236f1e=0x0;const _0x4459ac=this['_makeTape'](_0x5d0106[_0x11bb('0x7b')][_0x6c5422]['deletions']);_0x4459ac['forEach'](_0x30e640=>{_0x30e640[_0x11bb('0x2c')]?_0x30e640['id']=_0x198fd5++:_0x30e640['id']=_0xac8bdf[_0x236f1e++];}),this[_0x11bb('0x7')](_0x4459ac),this[_0x11bb('0x8b')](_0x3b3515,_0x11bb('0x77')),this[_0x11bb('0x8b')](_0x4459ac,_0x11bb('0x2c')),_0x5d0106==_0x36b03a&&this[_0x11bb('0x6a')](_0x3b3515,_0x59ffe2),_0x3b3515=this[_0x11bb('0x72')](_0x3b3515,_0x4459ac),this[_0x11bb('0x123')](_0x3b3515),this[_0x11bb('0x8b')](_0x3b3515,_0x11bb('0x2c'));}_0x3b3515=_0x3b3515['filter'](_0x30800f=>!(_0x30800f['isAdded']&&_0x30800f['isRemoved']));const _0x5bafe7=new Map(_0x3a868e[_0x11bb('0x7b')][_0x6c5422]['deletions'][_0x11bb('0x122')]),_0x336982=new Set(_0x59ffe2[_0x11bb('0x4b')]());for(const _0x901039 of _0x5bafe7['keys']())_0x336982[_0x11bb('0xac')](_0x901039);this[_0x11bb('0x48')](_0x3b3515,_0x336982),this[_0x11bb('0x94')](_0x3b3515),_0x3b3515=this[_0x11bb('0x4e')](_0x3b3515),_0x3b3515=this[_0x11bb('0x7c')](_0x3b3515),_0x3b3515=this['_removeUnsupportedChanges'](_0x3b3515);const {root:_0xff3951,changes:_0x34c964}=this[_0x11bb('0x60')](_0x3b3515,_0x44cb32,_0x6c5422);_0x2187f0['model'][_0x6c5422]=_0xff3951;const _0xf0085=_0x441ef0['get'](_0x6c5422);if(_0xf0085){const _0x2cfe6d=_0x44cb32[_0x11bb('0x118')](_0xf0085[_0x11bb('0xc6')]),_0xc8f530=new _0x39bcb4({'author':_0x2cfe6d,'type':_0xf0085['isAttached']?_0x11bb('0xde'):_0x11bb('0x3e'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x6c5422});_0x34c964[_0x11bb('0x23')](_0xc8f530),_0x2187f0[_0x11bb('0xbb')][_0x6c5422]['revisionHistoryAttachChange']=_0xc8f530['id'];}_0x2187f0[_0x11bb('0x109')]=_0x2187f0['changes'][_0x11bb('0x82')](_0x34c964);}return _0x2187f0;}[_0x11bb('0x6a')](_0x504b5c,_0x39cdde){for(let _0x133007=0x0;_0x133007<_0x504b5c[_0x11bb('0x1f')];_0x133007++)for(const [_0x1e41a3,_0x547b20]of _0x39cdde)_0x547b20[_0x11bb('0x46')][_0x11bb('0x54')](_0x504b5c[_0x133007]['previousPosition'])&&_0x504b5c[_0x133007][_0x11bb('0x45')][_0x11bb('0x5e')](_0x1e41a3),_0x547b20[_0x11bb('0x3d')][_0x11bb('0x54')](_0x504b5c[_0x133007][_0x11bb('0xea')])&&_0x504b5c[_0x133007][_0x11bb('0xd1')][_0x11bb('0x5e')](_0x1e41a3);}[_0x11bb('0x72')](_0x1a56a2,_0x3a3c9f){let _0xd9126b=[],_0x13352d=0x0,_0x46210a=0x0;for(;_0x13352d<_0x1a56a2[_0x11bb('0x1f')]||_0x46210a<_0x3a3c9f[_0x11bb('0x1f')];){const _0x295090=_0x1a56a2[_0x13352d]||{},_0x376928=_0x3a3c9f[_0x46210a]||{};if(_0x295090['id']==_0x376928['id'])_0x13352d++,_0x46210a++,_0xd9126b[_0x11bb('0x5e')](_0x295090);else{if(_0x376928['isRemoved']&&_0x295090[_0x11bb('0x77')]){const {commonTape:_0x1c3bb8,iEnd:_0x477a41,jEnd:_0x2ecfe9}=this[_0x11bb('0xff')](_0x1a56a2,_0x13352d,_0x3a3c9f,_0x46210a);_0xd9126b=_0xd9126b['concat'](_0x1c3bb8),_0x13352d=_0x477a41,_0x46210a=_0x2ecfe9;}else _0x376928[_0x11bb('0x2c')]?(_0x46210a++,_0xd9126b[_0x11bb('0x5e')](_0x376928)):(_0x13352d++,_0xd9126b[_0x11bb('0x5e')](_0x295090));}}return _0xd9126b;}[_0x11bb('0x48')](_0x3d0343,_0x413687){const _0x559996=[];for(let _0x2ddd80=0x0;_0x2ddd80<_0x3d0343[_0x11bb('0x1f')];_0x2ddd80++){for(let _0x51a462=0x0;_0x51a462<_0x3d0343[_0x2ddd80][_0x11bb('0x45')][_0x11bb('0x1f')];_0x51a462++){const _0x531445=_0x3d0343[_0x2ddd80]['markersStart'][_0x51a462];if(!_0x413687[_0x11bb('0xed')](_0x531445))continue;const {group:_0x4a0a5a,type:_0x31457b,authorId:_0x516f57}=_0x3c26d6(_0x531445);_0x11bb('0x106')!=_0x4a0a5a||_0x11bb('0xb5')!=_0x31457b&&'deletion'!=_0x31457b||(_0x559996[_0x11bb('0x23')]({'type':_0x31457b,'name':_0x531445,'userId':_0x516f57}),_0x3d0343[_0x2ddd80][_0x11bb('0x45')][_0x11bb('0xfc')](_0x51a462,0x1),_0x51a462--);}_0x47c7c8(_0x3d0343[_0x2ddd80]);for(let _0x50befe=0x0;_0x50befe<_0x3d0343[_0x2ddd80][_0x11bb('0xd1')][_0x11bb('0x1f')];_0x50befe++){const _0x44dc45=_0x3d0343[_0x2ddd80]['markersEnd'][_0x50befe];if(!_0x413687[_0x11bb('0xed')](_0x44dc45))continue;const {group:_0x214b32,type:_0x4e6d8b}=_0x3c26d6(_0x44dc45);if(_0x11bb('0x106')!=_0x214b32||_0x11bb('0xb5')!=_0x4e6d8b&&'deletion'!=_0x4e6d8b)continue;_0x3d0343[_0x2ddd80][_0x11bb('0xd1')][_0x11bb('0xfc')](_0x50befe,0x1),_0x50befe--;const _0x2dc6d0=_0x559996[_0x11bb('0xb0')](_0x3cc743=>_0x3cc743[_0x11bb('0x11c')]==_0x44dc45);_0x2dc6d0>-0x1&&_0x559996[_0x11bb('0xfc')](_0x2dc6d0,0x1);}}function _0x3c26d6(_0x217faf){const _0x592dd8=_0x217faf['split'](':');return{'group':_0x592dd8[0x0],'type':_0x592dd8[0x1],'subType':_0x592dd8[_0x11bb('0x1f')]>=0x5?_0x592dd8[0x2]:null,'id':_0x592dd8[_0x11bb('0x1f')]<0x5?_0x592dd8[0x2]:_0x592dd8[0x3],'authorId':_0x592dd8[_0x11bb('0x1f')]<0x5?_0x592dd8[0x3]:_0x592dd8[0x4],'markerCount':0x6==_0x592dd8['length']?_0x592dd8[0x5]:null};}function _0x47c7c8(_0x1fd78c){for(let _0x2d71f4=0x0;_0x2d71f4<_0x559996['length'];_0x2d71f4++){if(_0x1fd78c[_0x11bb('0x77')]&&_0x11bb('0xb5')==_0x559996[_0x2d71f4][_0x11bb('0x5d')])return _0x1fd78c[_0x11bb('0x25')]=_0x559996[_0x2d71f4],void delete _0x1fd78c[_0x11bb('0x77')];if(!_0x1fd78c[_0x11bb('0x77')]&&!_0x1fd78c[_0x11bb('0x2c')]&&_0x11bb('0x8')==_0x559996[_0x2d71f4][_0x11bb('0x5d')])return void(_0x1fd78c['isRemoveSuggestion']=_0x559996[_0x2d71f4]);}}}[_0x11bb('0x8b')](_0x86275c,_0x916628){let _0x4c5f56=0x0,_0x2d7ee2=!0x1;const _0x2b4fab=new Map();for(const _0x56a12c of _0x86275c)_0x56a12c[_0x916628]?_0x2d7ee2&&(_0x4c5f56++,_0x2d7ee2=!0x1):(_0x4c5f56++,_0x2d7ee2=!0x0),_0x2b4fab[_0x11bb('0x61')](_0x56a12c['id'],_0x4c5f56);for(let _0xc7aa27=0x0;_0xc7aa27<_0x86275c['length'];_0xc7aa27++){if('isRemoved'==_0x916628&&_0x86275c[_0xc7aa27][_0x11bb('0x77')]||_0x11bb('0x77')==_0x916628&&_0x86275c[_0xc7aa27]['isRemoved'])continue;if('text'==_0x86275c[_0xc7aa27]['type']){_0x86275c[_0xc7aa27][_0x11bb('0xcb')]=0x0;continue;}const _0xaeb307=_0x2b4fab[_0x11bb('0x118')](_0x86275c[_0xc7aa27]['pairId']),_0xa38bab=_0x2b4fab[_0x11bb('0x118')](_0x86275c[_0xc7aa27]['id']);_0x86275c[_0xc7aa27]['distance']=_0xaeb307-_0xa38bab;}}[_0x11bb('0x10')](_0x2ac40a,_0xa1728e,_0x3bd3f6=!0x1){const _0x522f78=[];let _0x4e0cc1=this[_0x11bb('0x1b')][_0x11bb('0x24')](_0x2ac40a),_0x37cca1=this[_0x11bb('0x1b')][_0x11bb('0x24')](_0xa1728e);for(-0x1==_0x37cca1&&(_0x37cca1=this[_0x11bb('0x1b')][_0x11bb('0x102')][_0x11bb('0x1f')],_0x3bd3f6=!0x1);_0x4e0cc1<_0x37cca1;)_0x522f78[_0x11bb('0x5e')](this[_0x11bb('0x1b')]['getRevision'](_0x4e0cc1)),_0x4e0cc1++;return _0x3bd3f6&&_0x522f78[_0x11bb('0x5e')](this[_0x11bb('0x1b')][_0x11bb('0xda')](_0x4e0cc1)),_0x522f78;}[_0x11bb('0xff')](_0x4f5ffc,_0x1db6ef,_0x3f050e,_0x25c1b4){const _0x46944d=this[_0x11bb('0x9a')]['model'][_0x11bb('0xfb')];let _0x2f65b7=_0x1db6ef;for(;_0x4f5ffc[_0x2f65b7]&&_0x4f5ffc[_0x2f65b7]['isAdded'];)_0x2f65b7++;let _0x235958=_0x25c1b4;for(;_0x3f050e[_0x235958]&&_0x3f050e[_0x235958][_0x11bb('0x2c')];)_0x235958++;_0x4179ad(_0x4f5ffc,_0x1db6ef,_0x2f65b7),_0x4179ad(_0x3f050e,_0x25c1b4,_0x235958);const _0x5f1577=_0x3f050e[_0x11bb('0x114')](_0x25c1b4,_0x235958)[_0x11bb('0x82')](_0x4f5ffc['slice'](_0x1db6ef,_0x2f65b7));return _0x5f1577[_0x11bb('0xd')]((_0x56a12f,_0x41bc35)=>_0x56a12f['side']!=_0x41bc35[_0x11bb('0x73')]?_0x56a12f[_0x11bb('0x73')]-_0x41bc35[_0x11bb('0x73')]:_0x56a12f[_0x11bb('0xe8')]!=_0x41bc35['level']?_0x56a12f[_0x11bb('0xe8')]-_0x41bc35[_0x11bb('0xe8')]:_0x56a12f['distance']!=_0x41bc35[_0x11bb('0xcb')]?_0x41bc35[_0x11bb('0xcb')]-_0x56a12f[_0x11bb('0xcb')]:!!_0x56a12f[_0x11bb('0x77')]!=!!_0x41bc35['isAdded']?-0x1==_0x56a12f['side']||0x0==_0x56a12f[_0x11bb('0x73')]?_0x56a12f[_0x11bb('0x77')]?-0x1:0x1:_0x56a12f[_0x11bb('0x77')]?0x1:-0x1:_0x56a12f[_0x11bb('0x121')]-_0x41bc35['index']),{'commonTape':_0x5f1577,'iEnd':_0x2f65b7,'jEnd':_0x235958};function _0x4179ad(_0x34cf7c,_0x199bdf,_0x12e110){let _0x3cea5a=-0x1,_0x1fb438=Number[_0x11bb('0xe6')],_0x5295e8=!0x0;for(let _0x1d0633=_0x199bdf;_0x1d0633<_0x12e110;_0x1d0633++)if(_0x46944d[_0x11bb('0x9d')](_0x34cf7c[_0x1d0633][_0x11bb('0x9b')])||(_0x5295e8=!0x1),_0x34cf7c[_0x1d0633][_0x11bb('0x9b')]['startIndex']<_0x199bdf&&(_0x3cea5a=_0x1d0633),_0x34cf7c[_0x1d0633]['item'][_0x11bb('0x1c')]>=_0x12e110){_0x1fb438=_0x1d0633;break;}_0x5295e8&&(_0x3cea5a=_0x12e110-0x1);for(let _0x51ae96=_0x199bdf;_0x51ae96<_0x12e110;_0x51ae96++)_0x34cf7c[_0x51ae96][_0x11bb('0x73')]=_0x51ae96<=_0x3cea5a?-0x1:_0x51ae96<_0x1fb438?0x0:0x1,_0x34cf7c[_0x51ae96][_0x11bb('0x121')]=_0x51ae96;let _0x30a212=0x0;for(let _0x397ff1=_0x199bdf;_0x397ff1<=_0x3cea5a;_0x397ff1++)0x0==_0x34cf7c[_0x397ff1]['distance']?_0x34cf7c[_0x397ff1][_0x11bb('0xe8')]=_0x30a212:(_0x30a212++,_0x34cf7c[_0x397ff1][_0x11bb('0xe8')]=_0x30a212,_0x30a212++);for(let _0x350fb7=_0x199bdf;_0x350fb7<_0x12e110;_0x350fb7++)0x0==_0x34cf7c[_0x350fb7][_0x11bb('0x73')]&&(_0x34cf7c[_0x350fb7][_0x11bb('0xe8')]=_0x30a212);_0x30a212=0x0;for(let _0x4cd3f8=_0x12e110-0x1;_0x4cd3f8>=_0x1fb438;_0x4cd3f8--)0x0==_0x34cf7c[_0x4cd3f8][_0x11bb('0xcb')]?_0x34cf7c[_0x4cd3f8][_0x11bb('0xe8')]=_0x30a212:(_0x30a212--,_0x34cf7c[_0x4cd3f8][_0x11bb('0xe8')]=_0x30a212,_0x30a212--);}}[_0x11bb('0x94')](_0x455e35){const _0x5628f8=new Map(),_0xbf591b=this['editor'][_0x11bb('0x7b')][_0x11bb('0xfb')];for(let _0x2c4d92=0x1;_0x2c4d92<_0x455e35[_0x11bb('0x1f')];_0x2c4d92++){let _0x45f1d4,_0x5e05db,_0x2ce677;const _0x5889d1=_0x455e35[_0x2c4d92],_0x139975=_0x455e35[_0x2c4d92-0x1];if(_0x11bb('0x38')==_0x5889d1[_0x11bb('0x5d')])continue;if(_0x5889d1[_0x11bb('0x5d')]!=_0x139975[_0x11bb('0x5d')])continue;if(!_0xbf591b['isBlock'](_0x139975[_0x11bb('0x9b')])||_0xbf591b[_0x11bb('0x31')](_0x139975[_0x11bb('0x9b')]))continue;if(!_0xbf591b[_0x11bb('0x8f')](_0x5889d1['item'])||_0xbf591b[_0x11bb('0x31')](_0x5889d1[_0x11bb('0x9b')]))continue;if((_0x455e35[_0x2c4d92]['isAdded']||_0x455e35[_0x2c4d92][_0x11bb('0x25')])&&_0x455e35[_0x2c4d92-0x1][_0x11bb('0x2c')])_0x45f1d4=_0x455e35[_0x2c4d92],_0x5e05db=_0x455e35[_0x2c4d92-0x1],_0x2ce677=_0x2c4d92-0x1;else{if(!_0x455e35[_0x2c4d92][_0x11bb('0x2c')]||!_0x455e35[_0x2c4d92-0x1]['isAdded']&&!_0x455e35[_0x2c4d92-0x1][_0x11bb('0x25')])continue;_0x45f1d4=_0x455e35[_0x2c4d92-0x1],_0x5e05db=_0x455e35[_0x2c4d92],_0x2ce677=_0x2c4d92;}const _0x25f24f=_0x45f1d4[_0x11bb('0xe8')]==_0x5e05db[_0x11bb('0xe8')],_0xe74180=Math[_0x11bb('0xaa')](_0x45f1d4[_0x11bb('0xe8')])<Math[_0x11bb('0xaa')](_0x5e05db[_0x11bb('0xe8')])&&0x0==_0x5e05db[_0x11bb('0xcb')];(_0x25f24f||_0xe74180)&&(_0x5628f8[_0x11bb('0x61')](_0x5e05db['id'],_0x45f1d4['id']),_0x455e35['splice'](_0x2ce677,0x1),_0x2c4d92--,_0x45f1d4['isAdded']=!0x1);}for(let _0x2447f3=0x0;_0x2447f3<_0x455e35[_0x11bb('0x1f')];_0x2447f3++)_0x5628f8[_0x11bb('0xed')](_0x455e35[_0x2447f3][_0x11bb('0xc9')])&&(_0x455e35[_0x2447f3][_0x11bb('0xc9')]=_0x5628f8[_0x11bb('0x118')](_0x455e35[_0x2447f3][_0x11bb('0xc9')]));}[_0x11bb('0x4e')](_0x5b6fa8){const _0x4e3ff9=new Set(_0x5b6fa8[_0x11bb('0x78')](_0x1e5407=>_0x1e5407['id']));for(let _0x1c1b12=0x0;_0x1c1b12<_0x5b6fa8[_0x11bb('0x1f')];_0x1c1b12++)_0x4e3ff9[_0x11bb('0xed')](_0x5b6fa8[_0x1c1b12][_0x11bb('0xc9')])||0x0==_0x5b6fa8[_0x1c1b12][_0x11bb('0xcb')]||(_0x5b6fa8[_0x1c1b12][_0x11bb('0x115')]=!0x0);return _0x5b6fa8[_0x11bb('0xbc')](_0x1f9b71=>!_0x1f9b71[_0x11bb('0x115')]);}[_0x11bb('0x7c')](_0x3a38fa){const _0x1875f6=new Set();for(let _0x29721c=0x0;_0x29721c<_0x3a38fa[_0x11bb('0x1f')];_0x29721c++){if(_0x1875f6[_0x11bb('0xed')](_0x3a38fa[_0x29721c]['id'])&&_0x3a38fa[_0x29721c][_0x11bb('0x2c')]&&(_0x3a38fa[_0x29721c]['isIncorrect']=!0x0),_0x3a38fa[_0x29721c][_0x11bb('0x115')])continue;if(0x0==_0x3a38fa[_0x29721c][_0x11bb('0xcb')])continue;if(_0x11bb('0x87')!=_0x3a38fa[_0x29721c]['type'])continue;if(null==_0x3a38fa[_0x29721c][_0x11bb('0xc9')])continue;let _0x15387b=_0x29721c+0x1,_0x3e0184=0x0;for(;_0x3a38fa[_0x15387b]['id']!=_0x3a38fa[_0x29721c]['pairId'];)'elementStart'==_0x3a38fa[_0x15387b]['type']?_0x3e0184++:'elementEnd'==_0x3a38fa[_0x15387b]['type']&&_0x3e0184--,_0x15387b++;if(0x0!=_0x3e0184){if(_0x3a38fa[_0x29721c][_0x11bb('0x2c')])_0x3a38fa[_0x29721c][_0x11bb('0x115')]=!0x0;else for(;_0x15387b!=_0x29721c;)_0x3a38fa[_0x15387b][_0x11bb('0x2c')]&&0x0!=_0x3a38fa[_0x15387b][_0x11bb('0xcb')]&&(_0x3a38fa[_0x15387b]['isIncorrect']=!0x0,_0x1875f6[_0x11bb('0xde')](_0x3a38fa[_0x15387b][_0x11bb('0xc9')])),_0x15387b--;}}return _0x3a38fa['filter'](_0x29b900=>!_0x29b900[_0x11bb('0x115')]);}['_removeUnsupportedChanges'](_0x2047d7){const _0x2b1c1a=this[_0x11bb('0x9a')]['model']['schema'];for(let _0x447965=0x0;_0x447965<_0x2047d7[_0x11bb('0x1f')];_0x447965++){if(!(_0x2047d7[_0x447965][_0x11bb('0x77')]||_0x2047d7[_0x447965][_0x11bb('0x25')]||_0x2047d7[_0x447965][_0x11bb('0x2c')]||_0x2047d7[_0x447965][_0x11bb('0x65')]))continue;if(0x0==_0x2047d7[_0x447965][_0x11bb('0xcb')])continue;const _0x240b2f=_0x2047d7[_0x447965][_0x11bb('0x9b')];_0x2b1c1a[_0x11bb('0x8f')](_0x240b2f)||_0x2b1c1a[_0x11bb('0x31')](_0x240b2f)||(_0x2047d7[_0x447965][_0x11bb('0x77')]&&delete _0x2047d7[_0x447965][_0x11bb('0x77')],_0x2047d7[_0x447965]['isAddSuggestion']&&delete _0x2047d7[_0x447965][_0x11bb('0x25')],_0x2047d7[_0x447965][_0x11bb('0x65')]&&delete _0x2047d7[_0x447965]['isRemoveSuggestion'],_0x2047d7[_0x447965][_0x11bb('0x2c')]&&(_0x2047d7[_0x447965]['isIncorrect']=!0x0));}return _0x2047d7[_0x11bb('0xbc')](_0xa76def=>!_0xa76def[_0x11bb('0x115')]);}[_0x11bb('0x60')](_0x19dd42,_0x35f42,_0x2cef76){const _0x515ac0=new _0x4679f0(),_0x2980c7=[],_0x26c31b=new Map(),_0x688f35=this[_0x11bb('0x9a')][_0x11bb('0x7b')],_0x3fe2c3=_0x688f35[_0x11bb('0xfb')],_0x5a3ac2=[_0x515ac0],_0x551182={},_0x3ceb49={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5427cf=null;const _0x42c93a=[0x0];for(let _0xcd40b8=0x0;_0xcd40b8<_0x19dd42['length'];_0xcd40b8++){let _0x4f648e,_0x542f70;if(_0x11bb('0x87')===_0x19dd42[_0xcd40b8][_0x11bb('0x5d')]){_0x4f648e=_0x688f35[_0x11bb('0xc0')](_0x515ac0,_0x42c93a);const _0x55f894=new _0x3b7736(_0x19dd42[_0xcd40b8][_0x11bb('0x9b')][_0x11bb('0x11c')],_0x19dd42[_0xcd40b8]['item'][_0x11bb('0xee')]());_0x5a3ac2[0x0][_0x11bb('0x76')](_0x55f894),_0x42c93a[_0x11bb('0x5e')](0x0),_0x5a3ac2[_0x11bb('0x23')](_0x55f894),_0x542f70=_0x688f35['createPositionFromPath'](_0x515ac0,_0x42c93a),_0x5427cf=null;}else{if(_0x11bb('0xa2')===_0x19dd42[_0xcd40b8][_0x11bb('0x5d')])_0x5a3ac2['shift'](),_0x4f648e=_0x688f35[_0x11bb('0xc0')](_0x515ac0,_0x42c93a),_0x42c93a['pop'](),_0x42c93a[_0x42c93a[_0x11bb('0x1f')]-0x1]++,_0x542f70=_0x688f35['createPositionFromPath'](_0x515ac0,_0x42c93a),_0x5427cf=null;else{if(_0x4f648e=_0x688f35[_0x11bb('0xc0')](_0x515ac0,_0x42c93a),_0x5427cf&&_0x34c99b(_0x5427cf,_0x19dd42[_0xcd40b8][_0x11bb('0x9b')]))_0x5427cf[_0x11bb('0xa7')]+=_0x19dd42[_0xcd40b8][_0x11bb('0x9b')][_0x11bb('0xce')];else{const _0x3efe16=new _0x136c94(_0x19dd42[_0xcd40b8][_0x11bb('0x9b')][_0x11bb('0xce')],_0x19dd42[_0xcd40b8][_0x11bb('0x9b')][_0x11bb('0xee')]());_0x5a3ac2[0x0]['_appendChild'](_0x3efe16),_0x5427cf=_0x3efe16;}_0x42c93a[_0x42c93a['length']-0x1]+=_0x19dd42[_0xcd40b8][_0x11bb('0x9b')][_0x11bb('0x14')],_0x542f70=_0x688f35[_0x11bb('0xc0')](_0x515ac0,_0x42c93a);}}for(const _0x3235e1 of _0x19dd42[_0xcd40b8][_0x11bb('0x45')])_0x26c31b[_0x11bb('0x61')](_0x3235e1,{'start':_0x4f648e,'end':null});_0x2d5fba(_0x11bb('0x65'),_0xcd40b8,_0x4f648e,_0x542f70),_0x2d5fba(_0x11bb('0x25'),_0xcd40b8,_0x4f648e,_0x542f70),_0x2d5fba(_0x11bb('0x2c'),_0xcd40b8,_0x4f648e,_0x542f70),_0x2d5fba(_0x11bb('0x77'),_0xcd40b8,_0x4f648e,_0x542f70);for(const _0x4cf262 of _0x19dd42[_0xcd40b8][_0x11bb('0xd1')]){_0x26c31b['get'](_0x4cf262)[_0x11bb('0x3d')]=_0x542f70;}}for(const [_0x2552aa,_0x30687d]of _0x26c31b){const _0x54e602=this['editor'][_0x11bb('0x7b')][_0x11bb('0x80')](_0x30687d['start'],_0x30687d[_0x11bb('0x3d')]);_0x515ac0[_0x11bb('0x122')][_0x11bb('0x61')](_0x2552aa,_0x54e602);}return _0x2980c7[_0x11bb('0xd')]((_0x2911de,_0x4449fc)=>{const _0x1d4754=_0x515ac0[_0x11bb('0x122')]['get'](_0x11bb('0xb3')+_0x2911de['id']),_0x5f1342=_0x515ac0[_0x11bb('0x122')]['get']('revision:'+_0x4449fc['id']);return _0x1d4754[_0x11bb('0x46')][_0x11bb('0x62')](_0x5f1342[_0x11bb('0x46')])?-0x1:_0x1d4754[_0x11bb('0x46')][_0x11bb('0x0')](_0x5f1342['start'])?0x1:_0x1d4754[_0x11bb('0x3d')]['isBefore'](_0x5f1342[_0x11bb('0x3d')])?-0x1:_0x1d4754[_0x11bb('0x3d')][_0x11bb('0x0')](_0x5f1342[_0x11bb('0x3d')])?0x1:_0x11bb('0xde')===_0x2911de[_0x11bb('0x5d')]?-0x1:0x1;}),{'root':_0x515ac0,'changes':_0x2980c7};function _0x2d5fba(_0x39a9d1,_0x1ab699,_0x31ed55,_0x1d53b1){const _0x5e3926=!!_0x19dd42[_0x1ab699][_0x39a9d1],_0x4e9079=_0x5e3926?_0x19dd42[_0x1ab699][_0x39a9d1]['userId']:null,_0x4c29a2=_0x1ab699===_0x19dd42[_0x11bb('0x1f')]-0x1,_0x465520=_0x3ceb49[_0x39a9d1][0x0],_0x4a4de1=_0x3fe2c3[_0x11bb('0x69')](_0x19dd42[_0x1ab699][_0x11bb('0x9b')]);!_0x551182[_0x39a9d1]&&_0x5e3926?_0x551182[_0x39a9d1]={'start':_0x31ed55,'tapeItem':_0x19dd42[_0x1ab699],'userId':_0x4e9079,'type':_0x39a9d1}:_0x551182[_0x39a9d1]&&!_0x5e3926?(_0x551182[_0x39a9d1][_0x11bb('0x3d')]=_0x31ed55,_0x24c976(_0x551182[_0x39a9d1]),_0x551182[_0x39a9d1]=null):_0x551182[_0x39a9d1]&&_0x5e3926&&_0x551182[_0x39a9d1][_0x11bb('0xc6')]!==_0x4e9079&&(_0x551182[_0x39a9d1][_0x11bb('0x3d')]=_0x31ed55,_0x465520&&_0x465520[_0x11bb('0xc6')]===_0x551182[_0x39a9d1][_0x11bb('0xc6')]||_0x24c976(_0x551182[_0x39a9d1]),_0x551182[_0x39a9d1]={'start':_0x31ed55,'tapeItem':_0x19dd42[_0x1ab699],'userId':_0x4e9079,'type':_0x39a9d1}),_0x551182[_0x39a9d1]&&_0x4a4de1&&(_0x11bb('0x87')!==_0x19dd42[_0x1ab699][_0x11bb('0x5d')]||_0x465520&&_0x465520['userId']===_0x4e9079||_0x3ceb49[_0x39a9d1][_0x11bb('0x23')]({'userId':_0x4e9079,'object':_0x19dd42[_0x1ab699][_0x11bb('0x9b')],'change':_0x551182[_0x39a9d1]}),'elementEnd'===_0x19dd42[_0x1ab699][_0x11bb('0x5d')]&&_0x465520&&_0x465520[_0x11bb('0xd6')]===_0x19dd42[_0x1ab699][_0x11bb('0x9b')]&&(_0x3ceb49[_0x39a9d1][_0x11bb('0x66')](),_0x551182[_0x39a9d1]=_0x465520[_0x11bb('0x37')])),_0x551182[_0x39a9d1]&&_0x4c29a2&&(_0x551182[_0x39a9d1][_0x11bb('0x3d')]=_0x1d53b1,_0x24c976(_0x551182[_0x39a9d1]),_0x551182[_0x39a9d1]=null);}function _0x24c976({start:_0x2b5be9,end:_0x8d5c78,tapeItem:_0x28b54f,userId:_0x1ea578,type:_0x4a0cca}){const _0x603a3c=_0x28b54f[_0x11bb('0x9b')],_0x113355=_0x688f35[_0x11bb('0xfb')]['isBlock'](_0x603a3c)&&!_0x688f35[_0x11bb('0xfb')][_0x11bb('0x31')](_0x603a3c),_0xfcf2c5=_0x2b5be9[_0x11bb('0x107')]==_0x8d5c78['parent']&&_0x8d5c78[_0x11bb('0x10b')];if(_0x113355&&_0xfcf2c5)return;const _0xa399c=_0x688f35[_0x11bb('0x80')](_0x2b5be9,_0x8d5c78),_0x43cbb5=_0x35f42[_0x11bb('0x118')](_0x1ea578),_0x34cec7=new _0x39bcb4({'author':_0x43cbb5,'type':_0x11bb('0x77')==_0x4a0cca||'isAddSuggestion'==_0x4a0cca?'add':_0x11bb('0x3e'),'data':{'isSuggestion':_0x11bb('0x25')==_0x4a0cca||'isRemoveSuggestion'==_0x4a0cca},'createdAt':new Date(),'rootName':_0x2cef76});_0x2980c7[_0x11bb('0x5e')](_0x34cec7),_0x515ac0['markers'][_0x11bb('0x61')](_0x11bb('0xb3')+_0x34cec7['id'],_0xa399c);}function _0x34c99b(_0x184639,_0x492faf){const _0x299c78=_0x184639[_0x11bb('0xee')](),_0x1bf8b8=_0x492faf[_0x11bb('0xee')]();for(const _0x2ca275 of _0x299c78){if(_0x2ca275[0x1]!==_0x492faf['getAttribute'](_0x2ca275[0x0]))return!0x1;_0x1bf8b8['next']();}return _0x1bf8b8['next']()[_0x11bb('0x6')];}}[_0x11bb('0xca')](){this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0xc'))['dataToMarker']({'view':_0x11bb('0x81')}),this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0x88'))[_0x11bb('0xba')]({'model':_0x11bb('0x81'),'view':_0x2c9c6f=>{const _0x479690=_0x2c9c6f[_0x11bb('0xef')][_0x11bb('0x56')](':')[0x1],_0x55741f=this[_0x11bb('0x2f')](_0x479690);if(!_0x55741f)return null;const _0x1197c5=_0x11bb('0xde')==_0x55741f[_0x11bb('0x5d')]?_0x11bb('0xb5'):_0x11bb('0x8'),_0x94c634=[_0x11bb('0x2'),'ck-suggestion-marker-'+_0x1197c5];return _0x55741f[_0x11bb('0xce')][_0x11bb('0xf4')]&&_0x94c634[_0x11bb('0x5e')](_0x11bb('0xa6')+_0x1197c5+'-new'),this[_0x11bb('0x68')]==_0x55741f&&_0x94c634[_0x11bb('0x5e')](_0x11bb('0x3')),{'classes':_0x94c634,'attributes':{'data-change-id':_0x479690}};}}),this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0xc'))[_0x11bb('0xde')](_0x1675ed=>{_0x1675ed['on']('element:pre',(_0x5b1bfc,_0x30f7fc,_0x21830b)=>{const _0x296fb9=_0x30f7fc['viewItem'][_0x11bb('0x8d')](0x0);if(!_0x296fb9||!_0x296fb9['is'](_0x11bb('0xf7'),_0x11bb('0xdf')))return;if(!_0x21830b[_0x11bb('0x9e')][_0x11bb('0x55')](_0x296fb9,{'attributes':[_0x11bb('0x93'),'vid_end']}))return;const _0x30f915=_0x30f7fc[_0x11bb('0x10e')]['start'][_0x11bb('0x107')];_0x21830b[_0x11bb('0xdc')]['setAttribute'](_0x11bb('0x93'),_0x296fb9[_0x11bb('0x6b')](_0x11bb('0x93')),_0x30f915),_0x21830b[_0x11bb('0xdc')]['setAttribute'](_0x11bb('0x5f'),_0x296fb9['getAttribute'](_0x11bb('0x5f')),_0x30f915);},{'priority':_0x11bb('0x95')});}),this[_0x11bb('0x9a')][_0x11bb('0x116')]['for'](_0x11bb('0xc'))[_0x11bb('0xde')](_0x163693=>{_0x163693['on'](_0x11bb('0xf7'),(_0x41f2ed,_0x499129,_0x599173)=>{if(!_0x599173['consumable']['consume'](_0x499129[_0x11bb('0xf5')],{'attributes':['vid_start',_0x11bb('0x5f')]}))return;if(_0x499129[_0x11bb('0x10e')][_0x11bb('0x5c')])return;const _0x486cce=_0x499129[_0x11bb('0x10e')]['start'][_0x11bb('0x107')];_0x486cce[_0x11bb('0x9c')](_0x11bb('0x93'))||_0x486cce[_0x11bb('0x9c')](_0x11bb('0x4'))||(_0x599173[_0x11bb('0xdc')][_0x11bb('0x64')](_0x11bb('0x93'),_0x499129[_0x11bb('0xf5')]['getAttribute'](_0x11bb('0x93')),_0x486cce),_0x599173[_0x11bb('0xdc')][_0x11bb('0x64')](_0x11bb('0x5f'),_0x499129[_0x11bb('0xf5')][_0x11bb('0x6b')](_0x11bb('0x5f')),_0x486cce));},{'priority':'low'});}),this['editor'][_0x11bb('0x116')][_0x11bb('0x11b')]('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x22a273=>_0x22a273[_0x11bb('0x6b')]('vid')}}),this['editor'][_0x11bb('0x7b')][_0x11bb('0xfb')]['on'](_0x11bb('0xa'),(_0xff86b1,[,_0x2ba2f6])=>{[_0x11bb('0x93'),_0x11bb('0x5f'),_0x11bb('0x4')][_0x11bb('0x3b')](_0x2ba2f6)&&(_0xff86b1[_0x11bb('0x112')]=!0x0,_0xff86b1['stop']());},{'priority':_0x11bb('0x5')}),this[_0x11bb('0x9a')]['conversion']['for'](_0x11bb('0x79'))['add'](_0x33889d=>{_0x33889d['on'](_0x11bb('0x1a'),(_0x32be65,_0x4fcd9f,_0x1d18df)=>{if('\x20'!=_0x4fcd9f[_0x11bb('0x9b')][_0x11bb('0xce')]||_0x4fcd9f[_0x11bb('0x9b')][_0x11bb('0x83')][_0x11bb('0x10d')]>0x1)return;if(!_0x1d18df[_0x11bb('0x9e')]['consume'](_0x4fcd9f['item'],_0x32be65[_0x11bb('0x11c')]))return;const _0x15ffe0=_0x1d18df[_0x11bb('0xdc')],_0x17f9cf=_0x1d18df[_0x11bb('0x39')][_0x11bb('0xe2')](_0x4fcd9f[_0x11bb('0xcf')]);_0x15ffe0[_0x11bb('0xc5')](_0x17f9cf,_0x15ffe0['createAttributeElement'](_0x11bb('0x35')));});}),this[_0x11bb('0x9a')][_0x11bb('0x116')]['for'](_0x11bb('0x79'))[_0x11bb('0x27')]({'model':_0x11bb('0x81')}),this[_0x11bb('0x9a')]['editing'][_0x11bb('0xa0')]['on'](_0x11bb('0x11e'),function(_0x1c5832){const _0x48a242=_0x1c5832['plugins'][_0x11bb('0x118')](_0x11bb('0x51'));return(_0x44a39c,_0x7e5bd5,_0x38c2de)=>{const _0x2c0cd0=_0x7e5bd5['markerName'][_0x11bb('0x56')](':')[0x1],_0xde0f43=_0x48a242['_getChangeFromId'](_0x2c0cd0);if(!_0xde0f43)return null;const _0x21fa91=_0x11bb('0xde')==_0xde0f43[_0x11bb('0x5d')]?_0x11bb('0x56'):_0x11bb('0x15');if(!_0x38c2de[_0x11bb('0x9e')][_0x11bb('0xbf')](_0x7e5bd5[_0x11bb('0xb9')],_0x44a39c[_0x11bb('0x11c')]))return;const _0x1b07a1=_0x7e5bd5[_0x11bb('0xb9')][_0x11bb('0xf8')](),_0x24ffa1=_0x7e5bd5['markerRange'][_0x11bb('0x46')],_0x4826f8=_0x1c5832['model']['schema'];let _0x389cbb=null,_0x3529b6=null,_0x6a7b93=!0x1,_0x267615=!0x1;for(const _0x3254af of _0x1b07a1){const _0x1e8a82=_0x3254af['item'];_0x6a7b93=_0x6a7b93||_0x4826f8[_0x11bb('0xa8')](_0x1e8a82);const _0x39a82b=_0x38c2de[_0x11bb('0x39')][_0x11bb('0xbd')](_0x1e8a82);if(_0x39a82b&&_0x39a82b[_0x11bb('0xe9')]('addHighlight'))return;_0x11bb('0xa2')==_0x3254af[_0x11bb('0x5d')]&&(_0x4826f8['isBlock'](_0x1e8a82)&&!_0x4826f8[_0x11bb('0x31')](_0x1e8a82)&&(_0x1e8a82[_0x11bb('0x9f')]||_0x24ffa1[_0x11bb('0xfa')]?_0x389cbb&&_0x389cbb[_0x11bb('0x83')]==_0x1e8a82||(_0x389cbb=_0x1e8a82,_0x133100(_0x3254af[_0x11bb('0x58')]),_0x267615=!0x0):_0x3529b6=_0x3529b6||_0x3254af[_0x11bb('0x58')]));}function _0x133100(_0x3fbaa8){const _0xc06cc9=_0x38c2de[_0x11bb('0xdc')][_0x11bb('0xd7')](_0x11bb('0x35'),{'class':_0x11bb('0xa6')+_0x21fa91}),_0x54ac0d=_0x38c2de[_0x11bb('0x39')]['toViewPosition'](_0x3fbaa8);_0xde0f43[_0x11bb('0xce')][_0x11bb('0xf4')]&&_0x38c2de[_0x11bb('0xdc')][_0x11bb('0x4f')]('ck-suggestion-marker-'+_0x21fa91+_0x11bb('0xad'),_0xc06cc9),_0x48a242[_0x11bb('0x68')]==_0xde0f43&&_0x38c2de[_0x11bb('0xdc')][_0x11bb('0x4f')](_0x11bb('0x3'),_0xc06cc9),_0x38c2de[_0x11bb('0xdc')][_0x11bb('0x3f')](_0x54ac0d,_0xc06cc9),_0x38c2de[_0x11bb('0x39')]['bindElementToMarker'](_0xc06cc9,_0x7e5bd5[_0x11bb('0xef')]);}_0x6a7b93||_0x267615||!_0x3529b6||_0x133100(_0x3529b6);};}(this[_0x11bb('0x9a')]),{'priority':_0x11bb('0xf2')}),this[_0x11bb('0x9a')][_0x11bb('0x6d')]['downcastDispatcher']['on']('removeMarker:revision',(_0x194fb1,_0x30a64a,_0x5a3501)=>{const _0x17ceab=_0x5a3501[_0x11bb('0x39')][_0x11bb('0xdd')](_0x30a64a[_0x11bb('0xef')]);if(_0x17ceab)for(const _0x23fddf of _0x17ceab)(_0x23fddf[_0x11bb('0xf')](_0x11bb('0x108'))||_0x23fddf[_0x11bb('0xf')](_0x11bb('0x92')))&&(_0x5a3501['mapper']['unbindElementFromMarkerName'](_0x23fddf,_0x30a64a[_0x11bb('0xef')]),_0x5a3501[_0x11bb('0xdc')][_0x11bb('0x3e')](_0x23fddf));},{'priority':_0x11bb('0xf2')}),this[_0x11bb('0x9a')]['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1d631d,_0x2cfb2b,_0x791f13)=>{const _0x530d04=_0x2cfb2b['markerName'][_0x11bb('0x56')](':')[0x1],_0x47c217=this[_0x11bb('0x2f')](_0x530d04);if(!_0x47c217)return null;const _0x4a2ff2=_0x11bb('0xde')==_0x47c217['type']?'split':_0x11bb('0x15');if(_0x791f13[_0x11bb('0x9e')][_0x11bb('0xbf')](_0x2cfb2b[_0x11bb('0xb9')],_0x1d631d[_0x11bb('0x11c')]))for(const _0x500187 of _0x2cfb2b[_0x11bb('0xb9')][_0x11bb('0x7a')]()){if(!_0x500187['is'](_0x11bb('0xf7'),'softBreak'))continue;const _0x9fa895=_0x791f13[_0x11bb('0xdc')][_0x11bb('0xd7')](_0x11bb('0x35'),{'class':_0x11bb('0xa6')+_0x4a2ff2}),_0x1572a1=_0x791f13['mapper'][_0x11bb('0x89')](this[_0x11bb('0x9a')][_0x11bb('0x7b')][_0x11bb('0x41')](_0x500187));_0x47c217['data'][_0x11bb('0xf4')]&&_0x791f13[_0x11bb('0xdc')][_0x11bb('0x4f')](_0x11bb('0xa6')+_0x4a2ff2+_0x11bb('0xad'),_0x9fa895),this[_0x11bb('0x68')]==_0x47c217&&_0x791f13[_0x11bb('0xdc')][_0x11bb('0x4f')](_0x11bb('0x3'),_0x9fa895),_0x791f13[_0x11bb('0xdc')][_0x11bb('0x3f')](_0x1572a1,_0x9fa895),_0x791f13[_0x11bb('0x39')][_0x11bb('0x110')](_0x9fa895,_0x2cfb2b['markerName']);}},{'priority':_0x11bb('0xf2')}),this[_0x11bb('0x9a')][_0x11bb('0x7b')]['document']['on'](_0x11bb('0x37'),()=>{this[_0x11bb('0x9a')]['editing'][_0x11bb('0x7e')][_0x11bb('0x37')](_0x552c51=>{for(const _0x56e1f8 of this['editor']['model'][_0x11bb('0x67')][_0x11bb('0x5b')]()){const _0x4ac659=this['editor']['model'][_0x11bb('0x67')][_0x11bb('0x6e')](_0x56e1f8),_0x3b8bc0=this[_0x11bb('0x9a')]['editing'][_0x11bb('0x7e')][_0x11bb('0x67')][_0x11bb('0x6e')](_0x56e1f8);if(_0x3b8bc0){const _0xc64a93=_0x4ac659['getAttribute'](_0x11bb('0xd4'));if(_0x552c51[_0x11bb('0x2a')](_0x11bb('0xf1'),_0x3b8bc0),_0x552c51[_0x11bb('0x11')](_0x11bb('0x10f'),_0x3b8bc0),_0x552c51[_0x11bb('0x11')](_0x11bb('0x52'),_0x3b8bc0),_0x552c51[_0x11bb('0x11')](_0x11bb('0x99'),_0x3b8bc0),_0xc64a93){const _0x1b5294=this['_getChangeFromId'](_0xc64a93);if(!_0x1b5294)return null;_0x552c51['setAttribute'](_0x11bb('0xf1'),_0xc64a93,_0x3b8bc0),_0x552c51[_0x11bb('0x4f')](_0x11bb('0x42')+_0x1b5294[_0x11bb('0x5d')],_0x3b8bc0),this[_0x11bb('0x68')]==_0x1b5294&&_0x552c51[_0x11bb('0x4f')]('ck-revision-history-root--active',_0x3b8bc0);}}}});}),this[_0x11bb('0x9a')][_0x11bb('0x116')]['for']('upcast')['dataToMarker']({'view':_0x11bb('0xe7'),'model':_0x22fe23=>'revision-comment:'+_0x22fe23,'converterPriority':_0x11bb('0x5')}),this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0xc'))[_0x11bb('0x28')]({'view':_0x11bb('0xd8'),'model':_0x2d7677=>'revision-suggestion:'+_0x2d7677,'converterPriority':_0x11bb('0x5')}),this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0x79'))[_0x11bb('0x27')]({'model':_0x11bb('0x106'),'view':_0x474006=>({'name':_0x11bb('0x21')+_0x474006,'group':_0x11bb('0x106')}),'converterPriority':_0x11bb('0x5')}),this[_0x11bb('0x9a')][_0x11bb('0x116')][_0x11bb('0x11b')](_0x11bb('0x88'))[_0x11bb('0xba')]({'model':_0x11bb('0x106'),'view':_0x59582b=>{const _0x41380d=_0x59582b[_0x11bb('0xef')]['split'](':')[0x1];return _0x11bb('0xb5')!=_0x41380d&&_0x11bb('0x8')!=_0x41380d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x41380d]};}}),this[_0x11bb('0x9a')]['editing'][_0x11bb('0xa0')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x11bb('0x9a')],_0x11bb('0x15')),{'priority':_0x11bb('0xf2')}),this[_0x11bb('0x9a')][_0x11bb('0x6d')]['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',et(this[_0x11bb('0x9a')],_0x11bb('0x56')),{'priority':_0x11bb('0xf2')}),this[_0x11bb('0x9a')][_0x11bb('0x6d')]['downcastDispatcher']['on'](_0x11bb('0x90'),(_0x3a57a8,_0x26d30f,_0x4317ec)=>{const _0x2f3296=_0x4317ec[_0x11bb('0x39')]['markerNameToElements'](_0x26d30f['markerName']);if(_0x2f3296)for(const _0x355d5f of _0x2f3296)_0x355d5f['is'](_0x11bb('0x43'))&&(_0x4317ec['mapper'][_0x11bb('0xb1')](_0x355d5f,_0x26d30f['markerName']),_0x4317ec['writer'][_0x11bb('0x3e')](_0x355d5f));},{'priority':_0x11bb('0xf2')});}[_0x11bb('0x2f')](_0x43c86b){return this[_0x11bb('0xd3')][_0x11bb('0x118')](_0x43c86b);}['_getViewForChange'](_0x13b1fb){return this[_0x11bb('0xd5')]&&this[_0x11bb('0xd5')][_0x11bb('0x75')](),this['_changeView']=new _0x3a3d20(this[_0x11bb('0x9a')][_0x11bb('0x30')],_0x13b1fb),this[_0x11bb('0xd5')];}[_0x11bb('0x17')](){this['editor'][_0x11bb('0x7b')][_0x11bb('0x67')][_0x11bb('0x11a')][_0x11bb('0x49')](_0x11bb('0x81')),this['on'](_0x11bb('0xc2'),(_0x202610,_0x406384,_0x24b1a7,_0x46237a)=>{_0x46237a&&this['_balloon'][_0x11bb('0x3e')](_0x46237a),_0x24b1a7&&(this['_balloon']['add']({'view':_0x24b1a7,'stackId':_0x11bb('0x33'),'position':{'target':()=>{const _0x5dd28b=this[_0x11bb('0x9a')][_0x11bb('0x6d')],_0x46f8aa=this[_0x11bb('0x2f')](_0x24b1a7[_0x11bb('0xe3')]);let _0x4d5e21;if(_0x46f8aa[_0x11bb('0xce')][_0x11bb('0xfe')]){const _0x1f5287=_0x5dd28b[_0x11bb('0x7e')]['getDomRoot'](_0x46f8aa[_0x11bb('0x3c')]);_0x4d5e21=Array[_0x11bb('0xf3')](_0x1f5287[_0x11bb('0x4a')]());}else{const _0xbcb6ad=this[_0x11bb('0x9a')][_0x11bb('0x7b')]['markers'][_0x11bb('0x118')](_0x11bb('0xb3')+_0x24b1a7['changeId']);_0x4d5e21=Array[_0x11bb('0xf3')](_0x5dd28b['mapper']['markerNameToElements'](_0xbcb6ad[_0x11bb('0x11c')]))['map'](_0x2a6659=>_0x5dd28b[_0x11bb('0x7e')]['domConverter'][_0x11bb('0x22')](_0x2a6659))[_0x11bb('0x78')](_0x48eede=>Array[_0x11bb('0xf3')](_0x48eede[_0x11bb('0x4a')]()))[_0x11bb('0xb6')]();}if(!this[_0x11bb('0x97')])return _0x4d5e21[0x0];return _0x4d5e21[_0x11bb('0xf9')](_0x46e74e=>_0x46e74e[_0x11bb('0x1d')]-0x3<=this[_0x11bb('0x97')]['y']&&_0x46e74e[_0x11bb('0x104')]+0x3>=this['_activeViewTarget']['y']&&_0x46e74e[_0x11bb('0xa9')]-0x3<=this[_0x11bb('0x97')]['x']&&_0x46e74e[_0x11bb('0xe')]+0x3>=this[_0x11bb('0x97')]['x'])||_0x4d5e21[0x0];}}}),this['_balloon'][_0x11bb('0x8a')](_0x11bb('0x33')));}),this['on']('change:activeChange',(_0x2747cb,_0x3ede09,_0x483348,_0x3ded7a)=>{this['activeView']=_0x483348?this[_0x11bb('0x63')](_0x483348):null,this[_0x11bb('0x9a')][_0x11bb('0x7b')]['change'](()=>{const _0x44b4e9=this[_0x11bb('0x9a')][_0x11bb('0x6d')];_0x3ded7a&&(_0x3ded7a[_0x11bb('0xce')][_0x11bb('0xfe')]?_0x44b4e9[_0x11bb('0x7e')]['change'](_0x3a6a32=>{_0x3a6a32[_0x11bb('0x11')](_0x11bb('0x99'),_0x44b4e9[_0x11bb('0x7e')][_0x11bb('0x67')]['getRoot'](_0x3ded7a[_0x11bb('0x3c')]));}):_0x44b4e9[_0x11bb('0xb4')](_0x11bb('0xb3')+_0x3ded7a['id'])),_0x483348&&(_0x483348[_0x11bb('0xce')]['isOnRoot']?_0x44b4e9[_0x11bb('0x7e')][_0x11bb('0x37')](_0x595048=>{_0x595048['addClass']('ck-revision-history-root--active',_0x44b4e9[_0x11bb('0x7e')]['document'][_0x11bb('0x6e')](_0x483348[_0x11bb('0x3c')]));}):_0x44b4e9[_0x11bb('0xb4')](_0x11bb('0xb3')+_0x483348['id']));});}),this[_0x11bb('0x5a')](this[_0x11bb('0x9a')][_0x11bb('0x6d')][_0x11bb('0x7e')][_0x11bb('0x67')],_0x11bb('0x100'),(_0x10edaa,_0x5d3498)=>{if(this[_0x11bb('0x68')])return;const _0x56be1a=this[_0x11bb('0xc8')](_0x5d3498[_0x11bb('0xe0')]),_0x35648c=this[_0x11bb('0xd3')][_0x11bb('0x118')](_0x56be1a);_0x35648c?(this[_0x11bb('0x97')]={'x':_0x5d3498[_0x11bb('0x85')]['x'],'y':_0x5d3498['domEvent']['y']},this[_0x11bb('0x71')]=this['_getViewForChange'](_0x35648c)):(this[_0x11bb('0x97')]=null,this[_0x11bb('0x71')]=null);}),this[_0x11bb('0x5a')](this[_0x11bb('0x9a')][_0x11bb('0x6d')][_0x11bb('0x7e')][_0x11bb('0x67')],_0x11bb('0xb'),(_0x13ea07,_0x3994d7)=>{const _0x3562ec=this[_0x11bb('0xc8')](_0x3994d7[_0x11bb('0xe0')]),_0x4fb2ec=this[_0x11bb('0xd3')][_0x11bb('0x118')](_0x3562ec);_0x4fb2ec?(this[_0x11bb('0x97')]={'x':_0x3994d7[_0x11bb('0x85')]['x'],'y':_0x3994d7['domEvent']['y']},_0x4fb2ec===this[_0x11bb('0x68')]?this[_0x11bb('0x20')][_0x11bb('0x70')]():this[_0x11bb('0x68')]=_0x4fb2ec):(this[_0x11bb('0x97')]=null,this[_0x11bb('0x68')]=null);});}[_0x11bb('0xc8')](_0x5e479c){do{const _0x5a0c94=_0x5e479c[_0x11bb('0x6b')]('data-change-id');if(_0x5a0c94)return _0x5a0c94;_0x5e479c=_0x5e479c[_0x11bb('0x83')];}while(_0x5e479c);return null;}[_0x11bb('0x6c')](){this[_0x11bb('0x9a')][_0x11bb('0x7b')][_0x11bb('0x37')](_0x5b2911=>{for(const _0x1b0d40 of this[_0x11bb('0x9a')]['model'][_0x11bb('0x122')])_0x5b2911['removeMarker'](_0x1b0d40);});}}function et(_0x66ba84,_0x52ba18){return(_0x35ff77,_0x1a13dd,_0x17e9a6)=>{if(!_0x17e9a6[_0x11bb('0x9e')][_0x11bb('0xbf')](_0x1a13dd[_0x11bb('0xb9')],_0x35ff77[_0x11bb('0x11c')]))return;const _0x3cda5f=_0x1a13dd[_0x11bb('0xb9')][_0x11bb('0xf8')](),_0x214a3a=_0x1a13dd['markerRange'][_0x11bb('0x46')],_0xa77da7=_0x66ba84[_0x11bb('0x7b')][_0x11bb('0xfb')];let _0x1aacae=null,_0x5b53ca=null,_0x415e53=!0x1,_0x3bee14=!0x1;for(const _0x332c1a of _0x3cda5f){const _0x29e5da=_0x332c1a[_0x11bb('0x9b')];_0x415e53=_0x415e53||_0xa77da7[_0x11bb('0xa8')](_0x29e5da);const _0x1b45f0=_0x17e9a6[_0x11bb('0x39')][_0x11bb('0xbd')](_0x29e5da);if(_0x1b45f0&&_0x1b45f0[_0x11bb('0xe9')]('addHighlight'))return;_0x11bb('0xa2')==_0x332c1a['type']&&(_0xa77da7[_0x11bb('0x8f')](_0x29e5da)&&!_0xa77da7[_0x11bb('0x31')](_0x29e5da)&&(_0x29e5da[_0x11bb('0x9f')]||_0x214a3a['isAtEnd']?_0x1aacae&&_0x1aacae[_0x11bb('0x83')]==_0x29e5da||(_0x1aacae=_0x29e5da,_0x5c0bac(_0x332c1a['previousPosition']),_0x3bee14=!0x0):_0x5b53ca=_0x5b53ca||_0x332c1a['previousPosition']));}function _0x5c0bac(_0x1fd0b6){const _0x1be196=_0x17e9a6[_0x11bb('0x39')][_0x11bb('0x89')](_0x1fd0b6),_0x55482e=_0x17e9a6[_0x11bb('0xdc')]['createUIElement'](_0x11bb('0x35'),{'class':_0x11bb('0x16')+_0x52ba18});_0x17e9a6[_0x11bb('0xdc')]['insert'](_0x1be196,_0x55482e),_0x17e9a6[_0x11bb('0x39')]['bindElementToMarker'](_0x55482e,_0x1a13dd['markerName']);}_0x415e53||_0x3bee14||!_0x5b53ca||_0x5c0bac(_0x5b53ca);};}export class RestoreRevisionCommand extends _0x5a372b{constructor(_0x1b21fb){super(_0x1b21fb);const _0xa92c22=_0x1b21fb['plugins']['get'](d);this[_0x11bb('0x1')]=!0x1,this[_0x11bb('0x5a')](_0xa92c22,_0x11bb('0x113'),()=>this[_0x11bb('0x111')]()),this[_0x11bb('0x5a')](_0xa92c22,'change:isEnabled',()=>this[_0x11bb('0x111')]());}['execute'](){const _0x40c10d=this[_0x11bb('0x9a')],_0x2508a4=_0x40c10d[_0x11bb('0x96')][_0x11bb('0x118')](d),_0x1f2873=_0x2508a4[_0x11bb('0xab')]?_0x2508a4['diff']['newRevisionId']:null;_0x40c10d[_0x11bb('0xeb')][_0x11bb('0x118')]('revisionHistory')[_0x11bb('0xc4')](_0x1f2873);}[_0x11bb('0x111')](){const {isReady:_0x18a6a6,isEnabled:_0x3aa8c1}=this['editor'][_0x11bb('0x96')][_0x11bb('0x118')](d);this['isEnabled']=_0x18a6a6&&_0x3aa8c1;}}export class ShowChangeCommand extends _0x5a372b{constructor(_0x3aa45a,{direction:_0x42eea8}){super(_0x3aa45a);const _0x5025b1=_0x3aa45a[_0x11bb('0x96')][_0x11bb('0x118')](d);this['affectsData']=!0x1,this[_0x11bb('0xe5')]=_0x11bb('0x44')===_0x42eea8?0x1:-0x1,this[_0x11bb('0x5a')](_0x5025b1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5025b1,_0x11bb('0xa1'),()=>this[_0x11bb('0x111')]()),this[_0x11bb('0x5a')](_0x5025b1,'change:activeChange',()=>this['refresh']());}[_0x11bb('0x18')](){const _0x35e4e5=this[_0x11bb('0x9a')],_0x125960=_0x35e4e5['plugins'][_0x11bb('0x118')](d),{isNavigationMode:_0x30e1dd,currentChangeNumber:_0x5155d8}=_0x125960;let _0xca3723;if(_0x125960[_0x11bb('0x68')]=_0x30e1dd?_0x125960[_0x11bb('0x6f')][_0x11bb('0x109')]['get'](_0x5155d8+this[_0x11bb('0xe5')]):_0x125960['diff'][_0x11bb('0x109')][_0x11bb('0x57')],_0x125960[_0x11bb('0x68')][_0x11bb('0xce')][_0x11bb('0xfe')])_0xca3723=_0x35e4e5[_0x11bb('0x6d')]['view']['getDomRoot'](_0x125960[_0x11bb('0x68')]['rootName']);else{const _0x3a519f=_0x35e4e5['model']['markers'][_0x11bb('0x118')](_0x11bb('0xb3')+_0x125960['activeChange']['id']);_0xca3723=_0x30014c(_0x35e4e5[_0x11bb('0x6d')],_0x3a519f);}_0x5ecb13({'target':_0xca3723,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x44cd6c,currentChangeNumber:_0x695e9d,numberOfChanges:_0x21c7f3,isReady:_0x3e9a11,isEnabled:_0xb8da63}=this[_0x11bb('0x9a')]['plugins'][_0x11bb('0x118')](d);this[_0x11bb('0x84')]=!!(_0xb8da63&&_0x3e9a11&&_0x21c7f3)&&(!_0x44cd6c||(0x1===this[_0x11bb('0xe5')]?_0x695e9d<_0x21c7f3-0x1:_0x695e9d>0x0));}}
23
+ const _0x2d43=['nextSibling','execute','_processTape','startIndex','end','revision-viewer','isLimit','_findChangeIdFromDomTarget','find','_markMarkers','plugins','domEvent','vid_end','bindElementToMarker','ck-revision-history-root--active','revisionHistory','addRevision','error','insert','_markSuggestions','deletions','dataDowncast','ck-suggestion-marker-merge','revisionHistoryLabel','remove','isContent','shift','low','getClientRects','_initInteractions','data-revision-','editingDowncast','merge','hasClass','getCustomProperty','createPositionFromPath','from','listenTo','numberOfChanges','newRevisionId','isAfter','parent','RevisionsRepository','addRevisionData','default','isEnabled','removeAttribute','activeChange','side','softBreak','isCollapsed','delete','toViewElement','_getViewForChange','toViewPosition','createUIElement','_getChangeFromId','markerRange','wrap','ck-editor__editable__overlay','endIndex','compare','_activeViewTarget','rootName','removeClass','useFillerType','commands','highest','isRemoved','isAttached','getRevision','left','removeMarker:revision-suggestion','forEach','mapViewToDom','userId','has','distance','then','bottom','_cleanMarkers','ck-suggestion-marker-','getAttribute','revision:','indexOf','string','elementStart','values','high','element','WidgetToolbarRepository','add','text','markerToHighlight','refresh','_refreshStartEndIndex','revision-start','element:pre','forward','first','oldRevisionId','isOnRoot','previousPosition','getRevisionRootsAttributes','_removeUnsupportedChanges','vid_start','markerNameToElements','createRangeIn','createRevision','detachRoot','_joinTapes','document','_markMismatchedRemovedTags','diff','RevisionViewer','loadRevisionData','revision-end','_getViewObj','downcastDispatcher','_update','_makeModelFromTape','unbindElementFromMarkerName','-new','slice','destroy','isAtStart','_threeWayMerge','sort','consume','checkAttribute','pairId','push','restoreRevision','isEqual','start','removeMarker:revision','startsWith','top','change','parse','get','hasAttribute','insertion','change:isEnabled','span','dataToMarker','for','getRootNames','deletion','change:isReady','toModel','mousedown','attributes','isNavigationMode','flat','_cleanUp','change:activeChange','length','pluginName','model','repository','map','offsetSize','enableReadOnlyMode','_getDiff','domConverter','attribute:vid','isBefore','data-change-id','forceDisabled','setAttribute','name','isReady','getDomRoot','children','markerToData','item','createRange','view','viewItem','writer','level','showStack','getRoot','object','_appendChild','editor','ck-revision-history-root-remove','ck-suggestion-marker--active','getAttributes','data','addHighlight','upcast','_changeView','suggestion','comment','keys','_makeTape','toData','addRoot','revision-suggestion:','mouseover','elementEnd','ck-suggestion-preview-marker-','revision-suggestion','markersEnd','_removeRevisionMarkers','isRemoveSuggestion','_setDistance','ck-revision-history-root-','resolve','_sortAndFilterDiffChanges','target','removeMarker','markers','roots','bind','attachChange','_step','split','markerName','selection','concat','uiElement','processor','splice','vid','currentChangeNumber','isSuggestion','_changeIdToChange','modelRange','addMarker:revision','_fixObsoleteTags','toViewRange','diffData','changes','_setChanges','clear','insertions','observeMarkers','mapper','_markInsertions','isBlock','type','getItems','_data','elementToAttribute','ck-suggestion-marker','showPreviousChange','isAtEnd','revisionHistoryAttachChange','getWalker','revision','reconvertMarker','isIncorrect','editing','change:numberOfChanges','set','addClass','isAddSuggestion','enqueueChange','maxOffset','attributesBefore','all','markersStart','attributesAfter','_makeModelFromViewString','activeView','addMarker:revision-suggestion:deletion','affectsData','next','consumable','getIndex','unshift','init','filter','catch','nodeAfter','changeId','isAdded','conversion','createAttributeElement','index','nextPosition','getChild','_balloon','_getRevisionsRange','change:activeView','updatePosition','schema','findIndex','test'];(function(_0x134833,_0x2d43a0){const _0x58ac2a=function(_0x449d2f){while(--_0x449d2f){_0x134833['push'](_0x134833['shift']());}};_0x58ac2a(++_0x2d43a0);}(_0x2d43,0xb5));const _0x58ac=function(_0x134833,_0x2d43a0){_0x134833=_0x134833-0x0;let _0x58ac2a=_0x2d43[_0x134833];return _0x58ac2a;};import{Plugin as _0x302fbd,Command as _0x5b14aa}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x69fb6c}from'ckeditor5/src/utils';import{ContextualBalloon as _0x9366df}from'ckeditor5/src/ui';import{DocumentFragment as _0x5b17ee,Element as _0x6d2216,Text as _0x11bd6d,ViewDocumentFragment as _0x5ba589,ViewText as _0x4e742a,ViewElement as _0x37d6b8,ViewContainerElement as _0x362010,ViewAttributeElement as _0xcd2dd5,ViewEmptyElement as _0x158760,ViewRawElement as _0x1ab53d,ViewUIElement as _0x2d28be}from'ckeditor5/src/engine';import{Users as _0xffea1e,getMarkerDomElement as _0x50d73d}from'ckeditor5-collaboration/src/collaboration-core';import _0x32aafe from'./ui/revisionviewer/changedetailsview';import _0x5ae72e from'./revisionsrepository';import _0x55c7f1 from'./changeitem';import{default as _0x3c0f48}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x23279f}from'lodash-es';const tt={'c':_0x362010,'a':_0xcd2dd5,'e':_0x158760,'r':_0x1ab53d,'u':_0x2d28be};export default class d extends _0x302fbd{static get[_0x58ac('0x10d')](){return _0x58ac('0xe1');}static get['requires'](){return[_0xffea1e,_0x9366df,_0x5ae72e];}constructor(_0x208a5c){super(_0x208a5c),this[_0x58ac('0x10f')]=this['editor'][_0x58ac('0x79')][_0x58ac('0xfb')](_0x58ac('0x99')),this[_0x58ac('0x4c')](_0x58ac('0x9e'),null),this[_0x58ac('0x4c')]('activeView',null),this[_0x58ac('0xad')]=null,this[_0x58ac('0x4c')](_0x58ac('0xe0'),null),this['set'](_0x58ac('0x11b'),!0x1),this[_0x58ac('0x4c')](_0x58ac('0x9c'),!0x0),this['on'](_0x58ac('0xfe'),(_0x95b75e,_0x399801,_0x10ddd0)=>{this[_0x58ac('0x9e')]=null,this[_0x58ac('0x56')]=null,this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xf9')](_0x465318=>{for(const _0x51b802 of this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x22')])_0x10ddd0?_0x465318[_0x58ac('0xaf')](_0x58ac('0xaa'),_0x51b802):_0x465318[_0x58ac('0x4d')](_0x58ac('0xaa'),_0x51b802);});}),this[_0x58ac('0x23')](_0x58ac('0x108'))['to'](this,'activeChange',_0x1f72d9=>null!==_0x1f72d9),this[_0x58ac('0x23')](_0x58ac('0x2e'))['to'](this,_0x58ac('0x11b'),this,'diff',this,_0x58ac('0x9e'),(_0x2e2ab1,_0x2082d3,_0x436e66)=>_0x2e2ab1&&_0x436e66?_0x2082d3[_0x58ac('0x36')][_0x58ac('0x5b')](_0x436e66):0x0),this['bind'](_0x58ac('0x95'))['to'](this,_0x58ac('0x11b'),this,'diff',(_0x4c43ef,_0x46938d)=>_0x4c43ef?_0x46938d[_0x58ac('0x36')][_0x58ac('0x10c')]:0x0),this[_0x58ac('0xc')]=null,this[_0x58ac('0x30')]=new Map(),this['adapter']=null,this['_balloon']=this[_0x58ac('0x5')]['plugins'][_0x58ac('0xfb')](_0x9366df);}[_0x58ac('0x5d')](){const _0x276994=this[_0x58ac('0x5')],_0xab1f01=new ShowChangeCommand(_0x276994,{'direction':'backward'}),_0x4e99c8=new ShowChangeCommand(_0x276994,{'direction':_0x58ac('0xd1')});(_0x276994[_0x58ac('0xb1')]['add'](_0x58ac('0x43'),_0xab1f01),_0x276994[_0x58ac('0xb1')][_0x58ac('0xca')]('showNextChange',_0x4e99c8),_0x276994[_0x58ac('0xb1')][_0x58ac('0xca')](_0x58ac('0xf3'),new RestoreRevisionCommand(_0x276994)),this['on'](_0x58ac('0x4b'),()=>{_0xab1f01[_0x58ac('0xcd')](),_0x4e99c8[_0x58ac('0xcd')]();}),this['_setConversion'](),this[_0x58ac('0x8c')](),_0x276994[_0x58ac('0x112')](_0x58ac('0x74')),_0x276994['plugins'][_0x58ac('0xbb')](_0x58ac('0xc9')))&&_0x276994[_0x58ac('0x79')][_0x58ac('0xfb')]('WidgetToolbarRepository')[_0x58ac('0x118')](_0x58ac('0x74'));}async['getRevisionData'](_0x2f84c3){await this['loadRevisionData'](_0x2f84c3);const _0xe2a886={};for(const _0x546c85 in _0x2f84c3[_0x58ac('0x35')]){if(_0x2f84c3[_0x58ac('0x35')][_0x546c85][_0x58ac('0x24')]&&!_0x2f84c3['diffData'][_0x546c85][_0x58ac('0x24')][_0x58ac('0xb4')])continue;const _0x4ab8db=this[_0x58ac('0x19')](JSON['parse'](_0x2f84c3['diffData'][_0x546c85][_0x58ac('0x39')])),_0x431a65=this[_0x58ac('0x5')]['editing']['view'][_0x58ac('0xde')],_0x485725=new _0x5ba589(_0x431a65,_0x4ab8db[_0x58ac('0x110')](_0x5a03cd=>this[_0x58ac('0xe4')](_0x5a03cd)));this[_0x58ac('0x5')]['data']['processor'][_0x58ac('0xb0')]('marked'),_0xe2a886[_0x546c85]=this['editor'][_0x58ac('0x9')][_0x58ac('0x2b')][_0x58ac('0x11')](_0x485725),this['editor'][_0x58ac('0x9')][_0x58ac('0x2b')][_0x58ac('0xb0')](_0x58ac('0x9b'));}return _0xe2a886;}async[_0x58ac('0xd6')](_0xe79f4b){await this['loadRevisionData'](_0xe79f4b);const _0xa33ca0={};for(const _0x1b108d in _0xe79f4b[_0x58ac('0x35')])_0xe79f4b[_0x58ac('0x35')][_0x1b108d][_0x58ac('0x24')]&&!_0xe79f4b[_0x58ac('0x35')][_0x1b108d][_0x58ac('0x24')][_0x58ac('0xb4')]||(_0xa33ca0[_0x1b108d]=_0xe79f4b[_0x58ac('0x35')][_0x1b108d]['attributesAfter']||{});return _0xa33ca0;}[_0x58ac('0x19')](_0x52cc33){return(_0x52cc33=_0x52cc33[_0x58ac('0x5e')](_0x43d67b=>!_0x43d67b['name']||_0x58ac('0xcf')!==_0x43d67b['name']&&_0x58ac('0xe3')!==_0x43d67b[_0x58ac('0x11a')]))[_0x58ac('0xb8')](_0x3518b1=>{_0x58ac('0xc4')!=typeof _0x3518b1&&(_0x3518b1[_0x58ac('0x11d')]=this['_removeRevisionMarkers'](_0x3518b1[_0x58ac('0x11d')]),_0x3518b1[_0x58ac('0x107')]=_0x3518b1[_0x58ac('0x107')][_0x58ac('0x5e')](_0x111d55=>!_0x111d55[0x0][_0x58ac('0xf7')](_0x58ac('0x8d'))));}),_0x52cc33;}async[_0x58ac('0xac')](_0x3d1579,_0x5d88e0,_0x42eeb4=!0x1){if(!this[_0x58ac('0x9c')])return;const _0x58e824=this[_0x58ac('0xe0')],_0x5492a5=this[_0x58ac('0x10f')],_0x328d55=_0x58ac('0xc4')==typeof _0x3d1579?_0x5492a5['getRevision'](_0x3d1579):_0x3d1579,_0x2794d9=_0x58ac('0xc4')==typeof _0x5d88e0?_0x5492a5[_0x58ac('0xb5')](_0x5d88e0):_0x5d88e0,_0x35baf8=_0x328d55['id'],_0x4718d7=_0x2794d9?_0x2794d9['id']:null;if(!_0x42eeb4&&this['diff']&&this[_0x58ac('0xe0')][_0x58ac('0x96')]===_0x35baf8&&this[_0x58ac('0xe0')][_0x58ac('0xd3')]===_0x4718d7)return Promise[_0x58ac('0x1d')]();this[_0x58ac('0x11b')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x58ac('0xe0')]=new _0x3c0f48(_0x35baf8,_0x4718d7);const _0x5301be=this[_0x58ac('0x69')](_0x328d55,_0x2794d9,!0x0)[_0x58ac('0x110')](_0x53bb3c=>this[_0x58ac('0xe2')](_0x53bb3c));return _0x5301be[_0x58ac('0xf2')](new Promise(_0x5909e4=>{setTimeout(_0x5909e4,0x14);})),Promise[_0x58ac('0x52')](_0x5301be)[_0x58ac('0xbd')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2d81f4=this['_getDiff'](_0x35baf8,_0x4718d7);for(const _0x10483f of _0x2d81f4['changes'])this[_0x58ac('0x30')][_0x58ac('0x4c')](_0x10483f['id'],_0x10483f);this[_0x58ac('0x5')]['model']['enqueueChange']({'isUndoable':!0x1},_0x94901a=>{for(const _0x4ffb69 of this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')][_0x58ac('0x102')]())_0x94901a['detachRoot'](_0x4ffb69);for(const _0xac5826 of Object['keys'](_0x2d81f4[_0x58ac('0x10e')])){const _0x394360=_0x94901a[_0x58ac('0x12')](_0xac5826);for(const _0x56c722 of Object['keys'](_0x2d81f4['attributes'][_0xac5826]))_0x94901a[_0x58ac('0x119')](_0x56c722,_0x2d81f4[_0x58ac('0x107')][_0xac5826][_0x56c722],_0x394360);_0x94901a[_0x58ac('0x81')](_0x2d81f4['model'][_0xac5826],_0x394360,0x0);}}),this[_0x58ac('0xe0')][_0x58ac('0x37')](this[_0x58ac('0x1e')](_0x2d81f4[_0x58ac('0x36')])),this[_0x58ac('0x11b')]=!0x0;})[_0x58ac('0x5f')](_0x1b1051=>{console[_0x58ac('0x80')](_0x1b1051),this[_0x58ac('0x10a')](),_0x58e824&&(this[_0x58ac('0xe0')]=_0x58e824),this['isReady']=!0x0;});}[_0x58ac('0x9a')](_0xcdd324,_0x253f16){const _0x152cf0=this[_0x58ac('0x10f')][_0x58ac('0xdb')](_0xcdd324);return _0x152cf0['on'](_0x58ac('0xe6'),(_0x56bc72,_0x4441ba,_0x179005)=>_0x253f16(_0x4441ba,_0x179005,_0x152cf0)),this[_0x58ac('0x10f')][_0x58ac('0x7f')](_0x152cf0),_0x152cf0;}[_0x58ac('0xe2')](_0x452b8b){if(!_0x452b8b||_0x452b8b[_0x58ac('0x35')])return Promise[_0x58ac('0x1d')]();{const _0x5da7d8=this[_0x58ac('0x5')]['config'][_0x58ac('0xfb')]('collaboration.channelId');return this['adapter'][_0x58ac('0xb5')]({'channelId':_0x5da7d8,'revisionId':_0x452b8b['id']})['then'](_0x58c1b1=>{_0x452b8b[_0x58ac('0xe6')]({'diffData':_0x58c1b1['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x58ac('0xc')]&&this[_0x58ac('0xc')]['destroy'](),this['_changeView']=null,this[_0x58ac('0x30')][_0x58ac('0x38')](),this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0x4f')]({'isUndoable':!0x1},_0x28e1cb=>{for(const _0x1dcfc5 of this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')]['getRootNames']())_0x28e1cb[_0x58ac('0xdc')](_0x1dcfc5);});}[_0x58ac('0x1e')](_0x54f3cd){const _0x1fa84d=[],_0x17d378=new Map();for(const _0x305330 of this['editor'][_0x58ac('0x10e')]['document'][_0x58ac('0x102')]()){const _0x2e00bc=this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0x11c')](_0x305330);if(!_0x2e00bc)continue;const _0x48b6be=_0x2e00bc['getClientRects']()['item'](0x0);_0x48b6be&&(_0x1fa84d['push'](_0x305330),_0x17d378['set'](_0x305330,_0x48b6be));}return _0x1fa84d['sort']((_0x3f1793,_0x2dcf07)=>{const _0x130302=_0x17d378['get'](_0x3f1793),_0x5ba3be=_0x17d378['get'](_0x2dcf07);return _0x130302['y']-_0x5ba3be['y']||_0x130302['x']-_0x5ba3be['x'];}),(_0x54f3cd=_0x54f3cd['filter'](_0x4b3e91=>_0x1fa84d['includes'](_0x4b3e91[_0x58ac('0xae')])))[_0x58ac('0xee')]((_0x2f504c,_0xc041d6)=>_0x1fa84d[_0x58ac('0xc3')](_0x2f504c['rootName'])-_0x1fa84d[_0x58ac('0xc3')](_0xc041d6[_0x58ac('0xae')])),_0x54f3cd;}[_0x58ac('0x10')](_0x133ec5){const _0x1e17e5=Array['from'](_0x133ec5[_0x58ac('0x21')])['filter'](([_0x4fb1d4,_0x2745fa])=>_0x4fb1d4[_0x58ac('0xf7')](_0x58ac('0xc2'))&&!_0x2745fa[_0x58ac('0xa1')]),_0x210406=Array[_0x58ac('0x93')](this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xda')](_0x133ec5)[_0x58ac('0x46')]({'singleCharacters':!0x0}));if(0x0!=_0x1e17e5[_0x58ac('0x10c')])for(const _0x184528 of _0x210406){const [_0x404110,_0x4b410e]=_0x1e17e5[0x0],[,_0x48c701,_0x57de8a]=_0x404110[_0x58ac('0x26')](':');if(_0x4b410e['end']['isEqual'](_0x184528['nextPosition'])&&_0x1e17e5['shift'](),(_0x184528[_0x58ac('0xd5')][_0x58ac('0xf4')](_0x4b410e[_0x58ac('0xf5')])||_0x184528[_0x58ac('0xd5')]['isAfter'](_0x4b410e[_0x58ac('0xf5')]))&&(_0x58ac('0xfd')==_0x48c701?_0x184528[_0x58ac('0x62')]={'userId':_0x57de8a}:'deletion'==_0x48c701&&(_0x184528['isRemoved']={'userId':_0x57de8a})),0x0==_0x1e17e5[_0x58ac('0x10c')])break;}return _0x210406;}[_0x58ac('0xce')](_0x105f33){const _0x5ce92b=new Map();for(let _0x1a52d9=0x0;_0x1a52d9<_0x105f33[_0x58ac('0x10c')];_0x1a52d9++)_0x58ac('0xcb')===_0x105f33[_0x1a52d9][_0x58ac('0x3e')]?(_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0x72')]=_0x1a52d9,_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x1a52d9):('elementStart'===_0x105f33[_0x1a52d9][_0x58ac('0x3e')]?_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0x72')]=_0x1a52d9:_0x58ac('0x15')===_0x105f33[_0x1a52d9][_0x58ac('0x3e')]&&(_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x1a52d9),_0x5ce92b[_0x58ac('0x4c')](_0x105f33[_0x1a52d9]['id'],_0x1a52d9));for(const _0x25219f of _0x5ce92b[_0x58ac('0xc6')]())_0x58ac('0xc5')===_0x105f33[_0x25219f][_0x58ac('0x3e')]?_0x105f33[_0x25219f][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x5ce92b[_0x58ac('0xfb')](_0x105f33[_0x25219f]['pairId']):_0x58ac('0x15')===_0x105f33[_0x25219f][_0x58ac('0x3e')]&&(_0x105f33[_0x25219f][_0x58ac('0x11f')][_0x58ac('0x72')]=_0x5ce92b[_0x58ac('0xfb')](_0x105f33[_0x25219f][_0x58ac('0xf1')]));}[_0x58ac('0x71')](_0x1907f2){for(let _0x4ea9b6=0x0;_0x4ea9b6<_0x1907f2[_0x58ac('0x10c')];_0x4ea9b6++){if(_0x58ac('0xc5')===_0x1907f2[_0x4ea9b6][_0x58ac('0x3e')])_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')]['startIndex']=_0x4ea9b6;else{if(_0x58ac('0x15')===_0x1907f2[_0x4ea9b6][_0x58ac('0x3e')]){_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x4ea9b6;const _0x500ffe=_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')][_0x58ac('0x72')];_0x1907f2[_0x500ffe][_0x58ac('0xf1')]=_0x1907f2[_0x4ea9b6]['id'],_0x1907f2[_0x4ea9b6]['pairId']=_0x1907f2[_0x500ffe]['id'];}else _0x1907f2[_0x4ea9b6]['item']['startIndex']=_0x4ea9b6,_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x4ea9b6,_0x1907f2[_0x4ea9b6][_0x58ac('0xf1')]=null;}_0x1907f2[_0x4ea9b6][_0x58ac('0x53')]||(_0x1907f2[_0x4ea9b6][_0x58ac('0x53')]=[],_0x1907f2[_0x4ea9b6][_0x58ac('0x18')]=[]);}}[_0x58ac('0x3c')](_0x226704,_0x290582){const _0x5bc161=_0x226704['filter'](_0x56447e=>!_0x56447e[_0x58ac('0x62')]);for(let _0x3100af=0x0;_0x3100af<_0x290582[_0x58ac('0x10c')];_0x3100af++)_0x290582[_0x3100af][_0x58ac('0x62')]&&(_0x5bc161[_0x3100af][_0x58ac('0x62')]=_0x290582[_0x3100af]['isAdded']);}[_0x58ac('0x55')](_0xccf971){const _0x383b10=JSON[_0x58ac('0xfa')](_0xccf971),_0xf1e51c=this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')]['document'],_0x3081a8=new _0x5ba589(_0xf1e51c,_0x383b10[_0x58ac('0x110')](_0x1473ef=>this['_getViewObj'](_0x1473ef)));return this[_0x58ac('0x5')][_0x58ac('0x9')][_0x58ac('0x105')](_0x3081a8);}['_getViewObj'](_0x42b8de){const _0x4bc98a=this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')];if(_0x58ac('0xc4')==typeof _0x42b8de)return new _0x4e742a(_0x4bc98a,_0x42b8de);{const _0x3b7246=_0x42b8de[_0x58ac('0x11d')][_0x58ac('0x110')](_0x519c39=>this[_0x58ac('0xe4')](_0x519c39));return new(tt[_0x42b8de[(_0x58ac('0x3e'))]]||_0x37d6b8)(_0x4bc98a,_0x42b8de[_0x58ac('0x11a')],_0x42b8de[_0x58ac('0x107')],_0x3b7246);}}[_0x58ac('0x113')](_0x342082,_0x535e7a=null){const _0x21c574=this[_0x58ac('0x10f')]['getRevision'](_0x342082),_0x1bd0cb=_0x535e7a?this['repository'][_0x58ac('0xb5')](_0x535e7a):null,_0x5701a0=this[_0x58ac('0x69')](_0x21c574,_0x1bd0cb),_0x4b20ef=_0x5701a0[_0x5701a0[_0x58ac('0x10c')]-0x1],_0x3f8c88=new Map(),_0xd5d226={'model':{},'attributes':{},'changes':[]},_0x196daa=new Set(),_0x119c61=new Map();for(let _0x5ad926=_0x5701a0[_0x58ac('0x10c')]-0x1;_0x5ad926>=0x0;_0x5ad926--){const _0x4d4e03=_0x5701a0[_0x5ad926];for(const _0x25290b of Object[_0x58ac('0xf')](_0x4d4e03[_0x58ac('0x35')]))if(_0x4d4e03['diffData'][_0x25290b]['attachChange']){const _0x59d0cd=_0x4d4e03[_0x58ac('0x35')][_0x25290b]['attachChange'];_0x59d0cd[_0x58ac('0xb4')]?(_0x196daa[_0x58ac('0xca')](_0x25290b),_0x119c61['has'](_0x25290b)&&_0x119c61[_0x58ac('0xfb')](_0x25290b)[_0x58ac('0xba')]==_0x59d0cd[_0x58ac('0xba')]?_0x119c61['delete'](_0x25290b):_0x119c61['set'](_0x25290b,_0x59d0cd)):_0x119c61[_0x58ac('0xbb')](_0x25290b)?(_0x196daa[_0x58ac('0xa2')](_0x25290b),_0x119c61[_0x58ac('0xa2')](_0x25290b)):(_0x196daa[_0x58ac('0xca')](_0x25290b),_0x119c61['set'](_0x25290b,_0x59d0cd));}else _0x196daa[_0x58ac('0xca')](_0x25290b);}for(const _0x151ff8 of _0x196daa){const _0x46a2c5=_0x119c61[_0x58ac('0xbb')](_0x151ff8)&&!_0x119c61[_0x58ac('0xfb')](_0x151ff8)['isAttached'];let _0x4f5348=_0x46a2c5?_0x5701a0['length']-0x1:0x0;const _0x286770=_0x46a2c5?-0x1:0x1;for(;_0x5701a0[_0x4f5348];){const _0x5a442c=_0x5701a0[_0x4f5348];if(_0x5a442c[_0x58ac('0x35')][_0x151ff8]){const _0x252026=_0x46a2c5?_0x5a442c[_0x58ac('0x35')][_0x151ff8][_0x58ac('0x51')]:_0x5a442c[_0x58ac('0x35')][_0x151ff8][_0x58ac('0x54')];_0xd5d226[_0x58ac('0x107')][_0x151ff8]=_0x252026?_0x23279f(_0x252026):{};break;}_0x4f5348+=_0x286770;}}for(const _0x11333a of _0x5701a0){_0x11333a[_0x58ac('0x10e')]={};for(const _0x25f98d of _0x11333a['authors'])_0x3f8c88[_0x58ac('0x4c')](_0x25f98d['id'],_0x25f98d);for(const _0x1fae54 of _0x196daa){const _0x510cce=_0x11333a[_0x58ac('0x35')][_0x1fae54]?_0x11333a[_0x58ac('0x35')][_0x1fae54][_0x58ac('0x39')]:'[]',_0x5ba613=_0x11333a[_0x58ac('0x35')][_0x1fae54]?_0x11333a[_0x58ac('0x35')][_0x1fae54]['deletions']:'[]';_0x11333a[_0x58ac('0x10e')][_0x1fae54]={'insertions':this[_0x58ac('0x55')](_0x510cce),'deletions':this[_0x58ac('0x55')](_0x5ba613)};}}for(const _0x37a1f1 of _0x196daa){let _0x49497f=null,_0x5f22c6=0x0;const _0x342018=new Map(Array[_0x58ac('0x93')](_0x21c574[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x39')]['markers'])['filter'](([_0x2262a5])=>!_0x2262a5[_0x58ac('0xf7')](_0x58ac('0xc2'))));let _0x120f32=0x0;for(const _0x15d714 of _0x5701a0){const _0x157319=this[_0x58ac('0x10')](_0x15d714[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x39')]);_0x15d714==_0x21c574?(_0x49497f=_0x157319,_0x5f22c6=_0x49497f[_0x58ac('0x10c')],_0x49497f['forEach'](_0x21dd85=>{_0x21dd85['id']=_0x120f32++;}),this[_0x58ac('0x71')](_0x49497f)):this[_0x58ac('0x3c')](_0x49497f,_0x157319);const _0x23ba1f=_0x49497f[_0x58ac('0x5e')](_0x3dfebd=>!_0x3dfebd[_0x58ac('0x62')])[_0x58ac('0x110')](_0x4439fc=>_0x4439fc['id']);let _0x3dc4ef=0x0;const _0x56bafe=this[_0x58ac('0x10')](_0x15d714[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x83')]);_0x56bafe[_0x58ac('0xb8')](_0x1db78f=>{_0x1db78f['isRemoved']?_0x1db78f['id']=_0x5f22c6++:_0x1db78f['id']=_0x23ba1f[_0x3dc4ef++];}),this[_0x58ac('0x71')](_0x56bafe),this[_0x58ac('0x1b')](_0x49497f,_0x58ac('0x62')),this[_0x58ac('0x1b')](_0x56bafe,_0x58ac('0xb3')),_0x15d714==_0x21c574&&this[_0x58ac('0x78')](_0x49497f,_0x342018),_0x49497f=this[_0x58ac('0xdd')](_0x49497f,_0x56bafe),this[_0x58ac('0xce')](_0x49497f),this[_0x58ac('0x1b')](_0x49497f,_0x58ac('0xb3'));}_0x49497f=_0x49497f[_0x58ac('0x5e')](_0x411f28=>!(_0x411f28[_0x58ac('0x62')]&&_0x411f28[_0x58ac('0xb3')]));const _0x36ca70=new Map(_0x4b20ef[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x83')][_0x58ac('0x21')]),_0x11df2c=new Set(_0x342018[_0x58ac('0xf')]());for(const _0x2bb963 of _0x36ca70[_0x58ac('0xf')]())_0x11df2c[_0x58ac('0xa2')](_0x2bb963);this[_0x58ac('0x82')](_0x49497f,_0x11df2c),this[_0x58ac('0x33')](_0x49497f),_0x49497f=this['_removeMissingPairs'](_0x49497f),_0x49497f=this[_0x58ac('0xdf')](_0x49497f),_0x49497f=this[_0x58ac('0xd7')](_0x49497f);const {root:_0x5d7354,changes:_0x342df1}=this[_0x58ac('0xe7')](_0x49497f,_0x3f8c88,_0x37a1f1);_0xd5d226['model'][_0x37a1f1]=_0x5d7354;const _0x1a5eb3=_0x119c61[_0x58ac('0xfb')](_0x37a1f1);if(_0x1a5eb3){const _0x35216d=_0x3f8c88[_0x58ac('0xfb')](_0x1a5eb3[_0x58ac('0xba')]),_0x21b813=new _0x55c7f1({'author':_0x35216d,'type':_0x1a5eb3['isAttached']?_0x58ac('0xca'):_0x58ac('0x87'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x37a1f1});_0x342df1[_0x58ac('0x5c')](_0x21b813),_0xd5d226[_0x58ac('0x107')][_0x37a1f1][_0x58ac('0x45')]=_0x21b813['id'];}_0xd5d226[_0x58ac('0x36')]=_0xd5d226['changes'][_0x58ac('0x29')](_0x342df1);}return _0xd5d226;}[_0x58ac('0x78')](_0x467a63,_0x423b73){for(let _0x1ac811=0x0;_0x1ac811<_0x467a63[_0x58ac('0x10c')];_0x1ac811++)for(const [_0x310ad2,_0xcb0374]of _0x423b73)_0xcb0374[_0x58ac('0xf5')][_0x58ac('0xf4')](_0x467a63[_0x1ac811]['previousPosition'])&&_0x467a63[_0x1ac811]['markersStart']['push'](_0x310ad2),_0xcb0374[_0x58ac('0x73')][_0x58ac('0xf4')](_0x467a63[_0x1ac811][_0x58ac('0x66')])&&_0x467a63[_0x1ac811][_0x58ac('0x18')][_0x58ac('0xf2')](_0x310ad2);}[_0x58ac('0xdd')](_0x2f0139,_0x3e1ca6){let _0x1cea2e=[],_0x2c11df=0x0,_0x2b8555=0x0;for(;_0x2c11df<_0x2f0139['length']||_0x2b8555<_0x3e1ca6[_0x58ac('0x10c')];){const _0x28b8aa=_0x2f0139[_0x2c11df]||{},_0x1c1221=_0x3e1ca6[_0x2b8555]||{};if(_0x28b8aa['id']==_0x1c1221['id'])_0x2c11df++,_0x2b8555++,_0x1cea2e[_0x58ac('0xf2')](_0x28b8aa);else{if(_0x1c1221[_0x58ac('0xb3')]&&_0x28b8aa[_0x58ac('0x62')]){const {commonTape:_0x71ffca,iEnd:_0x3b9b7f,jEnd:_0x3eb4f9}=this[_0x58ac('0xed')](_0x2f0139,_0x2c11df,_0x3e1ca6,_0x2b8555);_0x1cea2e=_0x1cea2e[_0x58ac('0x29')](_0x71ffca),_0x2c11df=_0x3b9b7f,_0x2b8555=_0x3eb4f9;}else _0x1c1221[_0x58ac('0xb3')]?(_0x2b8555++,_0x1cea2e[_0x58ac('0xf2')](_0x1c1221)):(_0x2c11df++,_0x1cea2e['push'](_0x28b8aa));}}return _0x1cea2e;}[_0x58ac('0x82')](_0x2853bd,_0x1e1036){const _0x3919e9=[];for(let _0x2d7cf2=0x0;_0x2d7cf2<_0x2853bd[_0x58ac('0x10c')];_0x2d7cf2++){for(let _0x33f6da=0x0;_0x33f6da<_0x2853bd[_0x2d7cf2][_0x58ac('0x53')][_0x58ac('0x10c')];_0x33f6da++){const _0x49e47d=_0x2853bd[_0x2d7cf2][_0x58ac('0x53')][_0x33f6da];if(!_0x1e1036[_0x58ac('0xbb')](_0x49e47d))continue;const {group:_0x466cb8,type:_0x4dfdd8,authorId:_0x17e115}=_0x56ef27(_0x49e47d);'revision-suggestion'!=_0x466cb8||_0x58ac('0xfd')!=_0x4dfdd8&&'deletion'!=_0x4dfdd8||(_0x3919e9[_0x58ac('0x5c')]({'type':_0x4dfdd8,'name':_0x49e47d,'userId':_0x17e115}),_0x2853bd[_0x2d7cf2][_0x58ac('0x53')][_0x58ac('0x2c')](_0x33f6da,0x1),_0x33f6da--);}_0x17f059(_0x2853bd[_0x2d7cf2]);for(let _0x384861=0x0;_0x384861<_0x2853bd[_0x2d7cf2]['markersEnd'][_0x58ac('0x10c')];_0x384861++){const _0xe0ee5e=_0x2853bd[_0x2d7cf2][_0x58ac('0x18')][_0x384861];if(!_0x1e1036[_0x58ac('0xbb')](_0xe0ee5e))continue;const {group:_0x5511b0,type:_0x535b1e}=_0x56ef27(_0xe0ee5e);if(_0x58ac('0x17')!=_0x5511b0||'insertion'!=_0x535b1e&&_0x58ac('0x103')!=_0x535b1e)continue;_0x2853bd[_0x2d7cf2]['markersEnd'][_0x58ac('0x2c')](_0x384861,0x1),_0x384861--;const _0x80851f=_0x3919e9[_0x58ac('0x6d')](_0x32c434=>_0x32c434[_0x58ac('0x11a')]==_0xe0ee5e);_0x80851f>-0x1&&_0x3919e9[_0x58ac('0x2c')](_0x80851f,0x1);}}function _0x56ef27(_0x46f559){const _0x40c6bd=_0x46f559[_0x58ac('0x26')](':');return{'group':_0x40c6bd[0x0],'type':_0x40c6bd[0x1],'subType':_0x40c6bd['length']>=0x5?_0x40c6bd[0x2]:null,'id':_0x40c6bd['length']<0x5?_0x40c6bd[0x2]:_0x40c6bd[0x3],'authorId':_0x40c6bd['length']<0x5?_0x40c6bd[0x3]:_0x40c6bd[0x4],'markerCount':0x6==_0x40c6bd[_0x58ac('0x10c')]?_0x40c6bd[0x5]:null};}function _0x17f059(_0x1659ff){for(let _0x352e4e=0x0;_0x352e4e<_0x3919e9[_0x58ac('0x10c')];_0x352e4e++){if(_0x1659ff[_0x58ac('0x62')]&&_0x58ac('0xfd')==_0x3919e9[_0x352e4e][_0x58ac('0x3e')])return _0x1659ff[_0x58ac('0x4e')]=_0x3919e9[_0x352e4e],void delete _0x1659ff[_0x58ac('0x62')];if(!_0x1659ff[_0x58ac('0x62')]&&!_0x1659ff['isRemoved']&&_0x58ac('0x103')==_0x3919e9[_0x352e4e][_0x58ac('0x3e')])return void(_0x1659ff[_0x58ac('0x1a')]=_0x3919e9[_0x352e4e]);}}}[_0x58ac('0x1b')](_0x63f6c6,_0x130ec5){let _0x301966=0x0,_0x39e407=!0x1;const _0x2196fc=new Map();for(const _0x18787f of _0x63f6c6)_0x18787f[_0x130ec5]?_0x39e407&&(_0x301966++,_0x39e407=!0x1):(_0x301966++,_0x39e407=!0x0),_0x2196fc[_0x58ac('0x4c')](_0x18787f['id'],_0x301966);for(let _0x4f8a38=0x0;_0x4f8a38<_0x63f6c6['length'];_0x4f8a38++){if(_0x58ac('0xb3')==_0x130ec5&&_0x63f6c6[_0x4f8a38][_0x58ac('0x62')]||_0x58ac('0x62')==_0x130ec5&&_0x63f6c6[_0x4f8a38][_0x58ac('0xb3')])continue;if('text'==_0x63f6c6[_0x4f8a38]['type']){_0x63f6c6[_0x4f8a38][_0x58ac('0xbc')]=0x0;continue;}const _0x4b4f7d=_0x2196fc[_0x58ac('0xfb')](_0x63f6c6[_0x4f8a38]['pairId']),_0x25c6b0=_0x2196fc[_0x58ac('0xfb')](_0x63f6c6[_0x4f8a38]['id']);_0x63f6c6[_0x4f8a38][_0x58ac('0xbc')]=_0x4b4f7d-_0x25c6b0;}}[_0x58ac('0x69')](_0x45e9e5,_0x6d9e8f,_0x1b6709=!0x1){const _0x41df1e=[];let _0xdb2a5f=this['repository'][_0x58ac('0x5b')](_0x45e9e5),_0xd86318=this[_0x58ac('0x10f')][_0x58ac('0x5b')](_0x6d9e8f);for(-0x1==_0xd86318&&(_0xd86318=this[_0x58ac('0x10f')]['_revisions'][_0x58ac('0x10c')],_0x1b6709=!0x1);_0xdb2a5f<_0xd86318;)_0x41df1e[_0x58ac('0xf2')](this[_0x58ac('0x10f')][_0x58ac('0xb5')](_0xdb2a5f)),_0xdb2a5f++;return _0x1b6709&&_0x41df1e[_0x58ac('0xf2')](this[_0x58ac('0x10f')][_0x58ac('0xb5')](_0xdb2a5f)),_0x41df1e;}[_0x58ac('0xed')](_0x62fdbb,_0x56a3c7,_0x4b2b78,_0x35d29d){const _0x3134f6=this[_0x58ac('0x5')][_0x58ac('0x10e')]['schema'];let _0x332bd6=_0x56a3c7;for(;_0x62fdbb[_0x332bd6]&&_0x62fdbb[_0x332bd6][_0x58ac('0x62')];)_0x332bd6++;let _0x497279=_0x35d29d;for(;_0x4b2b78[_0x497279]&&_0x4b2b78[_0x497279][_0x58ac('0xb3')];)_0x497279++;_0x4968ee(_0x62fdbb,_0x56a3c7,_0x332bd6),_0x4968ee(_0x4b2b78,_0x35d29d,_0x497279);const _0x5cbad6=_0x4b2b78[_0x58ac('0xea')](_0x35d29d,_0x497279)['concat'](_0x62fdbb[_0x58ac('0xea')](_0x56a3c7,_0x332bd6));return _0x5cbad6[_0x58ac('0xee')]((_0x40fb56,_0x2c4f9a)=>_0x40fb56['side']!=_0x2c4f9a[_0x58ac('0x9f')]?_0x40fb56['side']-_0x2c4f9a[_0x58ac('0x9f')]:_0x40fb56[_0x58ac('0x0')]!=_0x2c4f9a[_0x58ac('0x0')]?_0x40fb56[_0x58ac('0x0')]-_0x2c4f9a[_0x58ac('0x0')]:_0x40fb56[_0x58ac('0xbc')]!=_0x2c4f9a['distance']?_0x2c4f9a['distance']-_0x40fb56[_0x58ac('0xbc')]:!!_0x40fb56['isAdded']!=!!_0x2c4f9a[_0x58ac('0x62')]?-0x1==_0x40fb56['side']||0x0==_0x40fb56[_0x58ac('0x9f')]?_0x40fb56['isAdded']?-0x1:0x1:_0x40fb56[_0x58ac('0x62')]?0x1:-0x1:_0x40fb56[_0x58ac('0x65')]-_0x2c4f9a[_0x58ac('0x65')]),{'commonTape':_0x5cbad6,'iEnd':_0x332bd6,'jEnd':_0x497279};function _0x4968ee(_0x853c00,_0x4b13b8,_0x55d09f){let _0x4b98fb=-0x1,_0x3de769=Number['POSITIVE_INFINITY'],_0x163814=!0x0;for(let _0x490ee3=_0x4b13b8;_0x490ee3<_0x55d09f;_0x490ee3++)if(_0x3134f6['isInline'](_0x853c00[_0x490ee3]['item'])||(_0x163814=!0x1),_0x853c00[_0x490ee3]['item'][_0x58ac('0x72')]<_0x4b13b8&&(_0x4b98fb=_0x490ee3),_0x853c00[_0x490ee3][_0x58ac('0x11f')][_0x58ac('0xab')]>=_0x55d09f){_0x3de769=_0x490ee3;break;}_0x163814&&(_0x4b98fb=_0x55d09f-0x1);for(let _0x5ce0d0=_0x4b13b8;_0x5ce0d0<_0x55d09f;_0x5ce0d0++)_0x853c00[_0x5ce0d0][_0x58ac('0x9f')]=_0x5ce0d0<=_0x4b98fb?-0x1:_0x5ce0d0<_0x3de769?0x0:0x1,_0x853c00[_0x5ce0d0][_0x58ac('0x65')]=_0x5ce0d0;let _0x3e9377=0x0;for(let _0x43c43f=_0x4b13b8;_0x43c43f<=_0x4b98fb;_0x43c43f++)0x0==_0x853c00[_0x43c43f][_0x58ac('0xbc')]?_0x853c00[_0x43c43f][_0x58ac('0x0')]=_0x3e9377:(_0x3e9377++,_0x853c00[_0x43c43f][_0x58ac('0x0')]=_0x3e9377,_0x3e9377++);for(let _0x1a3186=_0x4b13b8;_0x1a3186<_0x55d09f;_0x1a3186++)0x0==_0x853c00[_0x1a3186][_0x58ac('0x9f')]&&(_0x853c00[_0x1a3186][_0x58ac('0x0')]=_0x3e9377);_0x3e9377=0x0;for(let _0x5e01e9=_0x55d09f-0x1;_0x5e01e9>=_0x3de769;_0x5e01e9--)0x0==_0x853c00[_0x5e01e9][_0x58ac('0xbc')]?_0x853c00[_0x5e01e9]['level']=_0x3e9377:(_0x3e9377--,_0x853c00[_0x5e01e9]['level']=_0x3e9377,_0x3e9377--);}}['_fixObsoleteTags'](_0x393041){const _0x35dd44=new Map(),_0x31b135=this[_0x58ac('0x5')][_0x58ac('0x10e')]['schema'];for(let _0x1f1451=0x1;_0x1f1451<_0x393041[_0x58ac('0x10c')];_0x1f1451++){let _0x5c2ed6,_0x10af6a,_0x351a0d;const _0x4bbd49=_0x393041[_0x1f1451],_0x1e1426=_0x393041[_0x1f1451-0x1];if(_0x58ac('0xcb')==_0x4bbd49['type'])continue;if(_0x4bbd49[_0x58ac('0x3e')]!=_0x1e1426[_0x58ac('0x3e')])continue;if(!_0x31b135['isBlock'](_0x1e1426[_0x58ac('0x11f')])||_0x31b135[_0x58ac('0x75')](_0x1e1426['item']))continue;if(!_0x31b135[_0x58ac('0x3d')](_0x4bbd49[_0x58ac('0x11f')])||_0x31b135[_0x58ac('0x75')](_0x4bbd49[_0x58ac('0x11f')]))continue;if((_0x393041[_0x1f1451][_0x58ac('0x62')]||_0x393041[_0x1f1451][_0x58ac('0x4e')])&&_0x393041[_0x1f1451-0x1][_0x58ac('0xb3')])_0x5c2ed6=_0x393041[_0x1f1451],_0x10af6a=_0x393041[_0x1f1451-0x1],_0x351a0d=_0x1f1451-0x1;else{if(!_0x393041[_0x1f1451][_0x58ac('0xb3')]||!_0x393041[_0x1f1451-0x1][_0x58ac('0x62')]&&!_0x393041[_0x1f1451-0x1][_0x58ac('0x4e')])continue;_0x5c2ed6=_0x393041[_0x1f1451-0x1],_0x10af6a=_0x393041[_0x1f1451],_0x351a0d=_0x1f1451;}const _0x1189b2=_0x5c2ed6['level']==_0x10af6a[_0x58ac('0x0')],_0x380787=Math['abs'](_0x5c2ed6[_0x58ac('0x0')])<Math['abs'](_0x10af6a['level'])&&0x0==_0x10af6a[_0x58ac('0xbc')];(_0x1189b2||_0x380787)&&(_0x35dd44[_0x58ac('0x4c')](_0x10af6a['id'],_0x5c2ed6['id']),_0x393041[_0x58ac('0x2c')](_0x351a0d,0x1),_0x1f1451--,_0x5c2ed6[_0x58ac('0x62')]=!0x1);}for(let _0x207f1d=0x0;_0x207f1d<_0x393041[_0x58ac('0x10c')];_0x207f1d++)_0x35dd44[_0x58ac('0xbb')](_0x393041[_0x207f1d][_0x58ac('0xf1')])&&(_0x393041[_0x207f1d][_0x58ac('0xf1')]=_0x35dd44['get'](_0x393041[_0x207f1d][_0x58ac('0xf1')]));}['_removeMissingPairs'](_0x1cd094){const _0x546116=new Set(_0x1cd094[_0x58ac('0x110')](_0x25ca2e=>_0x25ca2e['id']));for(let _0x413927=0x0;_0x413927<_0x1cd094[_0x58ac('0x10c')];_0x413927++)_0x546116[_0x58ac('0xbb')](_0x1cd094[_0x413927][_0x58ac('0xf1')])||0x0==_0x1cd094[_0x413927][_0x58ac('0xbc')]||(_0x1cd094[_0x413927]['isIncorrect']=!0x0);return _0x1cd094[_0x58ac('0x5e')](_0x17e3d3=>!_0x17e3d3[_0x58ac('0x49')]);}['_markMismatchedRemovedTags'](_0x274bd7){const _0xf7da83=new Set();for(let _0x51457d=0x0;_0x51457d<_0x274bd7['length'];_0x51457d++){if(_0xf7da83['has'](_0x274bd7[_0x51457d]['id'])&&_0x274bd7[_0x51457d]['isRemoved']&&(_0x274bd7[_0x51457d][_0x58ac('0x49')]=!0x0),_0x274bd7[_0x51457d][_0x58ac('0x49')])continue;if(0x0==_0x274bd7[_0x51457d][_0x58ac('0xbc')])continue;if(_0x58ac('0xc5')!=_0x274bd7[_0x51457d][_0x58ac('0x3e')])continue;if(null==_0x274bd7[_0x51457d][_0x58ac('0xf1')])continue;let _0x244182=_0x51457d+0x1,_0x3465dc=0x0;for(;_0x274bd7[_0x244182]['id']!=_0x274bd7[_0x51457d]['pairId'];)_0x58ac('0xc5')==_0x274bd7[_0x244182][_0x58ac('0x3e')]?_0x3465dc++:_0x58ac('0x15')==_0x274bd7[_0x244182][_0x58ac('0x3e')]&&_0x3465dc--,_0x244182++;if(0x0!=_0x3465dc){if(_0x274bd7[_0x51457d][_0x58ac('0xb3')])_0x274bd7[_0x51457d][_0x58ac('0x49')]=!0x0;else for(;_0x244182!=_0x51457d;)_0x274bd7[_0x244182][_0x58ac('0xb3')]&&0x0!=_0x274bd7[_0x244182][_0x58ac('0xbc')]&&(_0x274bd7[_0x244182][_0x58ac('0x49')]=!0x0,_0xf7da83[_0x58ac('0xca')](_0x274bd7[_0x244182][_0x58ac('0xf1')])),_0x244182--;}}return _0x274bd7['filter'](_0x52d084=>!_0x52d084[_0x58ac('0x49')]);}['_removeUnsupportedChanges'](_0x12f303){const _0x56c854=this[_0x58ac('0x5')]['model'][_0x58ac('0x6c')];for(let _0x23d5f6=0x0;_0x23d5f6<_0x12f303[_0x58ac('0x10c')];_0x23d5f6++){if(!(_0x12f303[_0x23d5f6][_0x58ac('0x62')]||_0x12f303[_0x23d5f6][_0x58ac('0x4e')]||_0x12f303[_0x23d5f6][_0x58ac('0xb3')]||_0x12f303[_0x23d5f6][_0x58ac('0x1a')]))continue;if(0x0==_0x12f303[_0x23d5f6][_0x58ac('0xbc')])continue;const _0x283e0e=_0x12f303[_0x23d5f6][_0x58ac('0x11f')];_0x56c854[_0x58ac('0x3d')](_0x283e0e)||_0x56c854[_0x58ac('0x75')](_0x283e0e)||(_0x12f303[_0x23d5f6][_0x58ac('0x62')]&&delete _0x12f303[_0x23d5f6][_0x58ac('0x62')],_0x12f303[_0x23d5f6][_0x58ac('0x4e')]&&delete _0x12f303[_0x23d5f6][_0x58ac('0x4e')],_0x12f303[_0x23d5f6][_0x58ac('0x1a')]&&delete _0x12f303[_0x23d5f6][_0x58ac('0x1a')],_0x12f303[_0x23d5f6][_0x58ac('0xb3')]&&(_0x12f303[_0x23d5f6][_0x58ac('0x49')]=!0x0));}return _0x12f303[_0x58ac('0x5e')](_0x47109b=>!_0x47109b['isIncorrect']);}['_makeModelFromTape'](_0x204f9b,_0x234e87,_0x3d7390){const _0x436aeb=new _0x5b17ee(),_0x3b93a6=[],_0x453e3d=new Map(),_0x532914=this[_0x58ac('0x5')][_0x58ac('0x10e')],_0x1d130f=_0x532914[_0x58ac('0x6c')],_0x2db175=[_0x436aeb],_0x5bd336={},_0x3cb789={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5e9ba8=null;const _0x1061ca=[0x0];for(let _0x7c9fa2=0x0;_0x7c9fa2<_0x204f9b[_0x58ac('0x10c')];_0x7c9fa2++){let _0x271956,_0x4cc52b;if(_0x58ac('0xc5')===_0x204f9b[_0x7c9fa2][_0x58ac('0x3e')]){_0x271956=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca);const _0x13f3c1=new _0x6d2216(_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')][_0x58ac('0x11a')],_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')]['getAttributes']());_0x2db175[0x0][_0x58ac('0x4')](_0x13f3c1),_0x1061ca[_0x58ac('0xf2')](0x0),_0x2db175[_0x58ac('0x5c')](_0x13f3c1),_0x4cc52b=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca),_0x5e9ba8=null;}else{if('elementEnd'===_0x204f9b[_0x7c9fa2][_0x58ac('0x3e')])_0x2db175[_0x58ac('0x89')](),_0x271956=_0x532914['createPositionFromPath'](_0x436aeb,_0x1061ca),_0x1061ca['pop'](),_0x1061ca[_0x1061ca[_0x58ac('0x10c')]-0x1]++,_0x4cc52b=_0x532914['createPositionFromPath'](_0x436aeb,_0x1061ca),_0x5e9ba8=null;else{if(_0x271956=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca),_0x5e9ba8&&_0x256491(_0x5e9ba8,_0x204f9b[_0x7c9fa2]['item']))_0x5e9ba8[_0x58ac('0x40')]+=_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')]['data'];else{const _0x50ac4e=new _0x11bd6d(_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')][_0x58ac('0x9')],_0x204f9b[_0x7c9fa2]['item'][_0x58ac('0x8')]());_0x2db175[0x0][_0x58ac('0x4')](_0x50ac4e),_0x5e9ba8=_0x50ac4e;}_0x1061ca[_0x1061ca[_0x58ac('0x10c')]-0x1]+=_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')][_0x58ac('0x111')],_0x4cc52b=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca);}}for(const _0x42aad9 of _0x204f9b[_0x7c9fa2][_0x58ac('0x53')])_0x453e3d['set'](_0x42aad9,{'start':_0x271956,'end':null});_0x5b7fb1(_0x58ac('0x1a'),_0x7c9fa2,_0x271956,_0x4cc52b),_0x5b7fb1(_0x58ac('0x4e'),_0x7c9fa2,_0x271956,_0x4cc52b),_0x5b7fb1(_0x58ac('0xb3'),_0x7c9fa2,_0x271956,_0x4cc52b),_0x5b7fb1(_0x58ac('0x62'),_0x7c9fa2,_0x271956,_0x4cc52b);for(const _0x37a4bb of _0x204f9b[_0x7c9fa2]['markersEnd']){_0x453e3d[_0x58ac('0xfb')](_0x37a4bb)['end']=_0x4cc52b;}}for(const [_0x2d1279,_0x1f0a4b]of _0x453e3d){const _0x4a16f7=this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0x120')](_0x1f0a4b[_0x58ac('0xf5')],_0x1f0a4b[_0x58ac('0x73')]);_0x436aeb[_0x58ac('0x21')][_0x58ac('0x4c')](_0x2d1279,_0x4a16f7);}return _0x3b93a6[_0x58ac('0xee')]((_0xd21946,_0xf09d47)=>{const _0x5e31f8=_0x436aeb[_0x58ac('0x21')][_0x58ac('0xfb')](_0x58ac('0xc2')+_0xd21946['id']),_0x4d4186=_0x436aeb[_0x58ac('0x21')][_0x58ac('0xfb')](_0x58ac('0xc2')+_0xf09d47['id']);return _0x5e31f8[_0x58ac('0xf5')][_0x58ac('0x116')](_0x4d4186[_0x58ac('0xf5')])?-0x1:_0x5e31f8[_0x58ac('0xf5')][_0x58ac('0x97')](_0x4d4186[_0x58ac('0xf5')])?0x1:_0x5e31f8[_0x58ac('0x73')][_0x58ac('0x116')](_0x4d4186[_0x58ac('0x73')])?-0x1:_0x5e31f8[_0x58ac('0x73')][_0x58ac('0x97')](_0x4d4186[_0x58ac('0x73')])?0x1:_0x58ac('0xca')===_0xd21946[_0x58ac('0x3e')]?-0x1:0x1;}),{'root':_0x436aeb,'changes':_0x3b93a6};function _0x5b7fb1(_0x285572,_0x4fa179,_0xc6c0de,_0x5ef710){const _0x6ff325=!!_0x204f9b[_0x4fa179][_0x285572],_0x432ee4=_0x6ff325?_0x204f9b[_0x4fa179][_0x285572]['userId']:null,_0x39f28c=_0x4fa179===_0x204f9b['length']-0x1,_0x12b794=_0x3cb789[_0x285572][0x0],_0x40e393=_0x1d130f['isObject'](_0x204f9b[_0x4fa179]['item']);!_0x5bd336[_0x285572]&&_0x6ff325?_0x5bd336[_0x285572]={'start':_0xc6c0de,'tapeItem':_0x204f9b[_0x4fa179],'userId':_0x432ee4,'type':_0x285572}:_0x5bd336[_0x285572]&&!_0x6ff325?(_0x5bd336[_0x285572][_0x58ac('0x73')]=_0xc6c0de,_0x485d04(_0x5bd336[_0x285572]),_0x5bd336[_0x285572]=null):_0x5bd336[_0x285572]&&_0x6ff325&&_0x5bd336[_0x285572][_0x58ac('0xba')]!==_0x432ee4&&(_0x5bd336[_0x285572][_0x58ac('0x73')]=_0xc6c0de,_0x12b794&&_0x12b794[_0x58ac('0xba')]===_0x5bd336[_0x285572][_0x58ac('0xba')]||_0x485d04(_0x5bd336[_0x285572]),_0x5bd336[_0x285572]={'start':_0xc6c0de,'tapeItem':_0x204f9b[_0x4fa179],'userId':_0x432ee4,'type':_0x285572}),_0x5bd336[_0x285572]&&_0x40e393&&(_0x58ac('0xc5')!==_0x204f9b[_0x4fa179][_0x58ac('0x3e')]||_0x12b794&&_0x12b794[_0x58ac('0xba')]===_0x432ee4||_0x3cb789[_0x285572][_0x58ac('0x5c')]({'userId':_0x432ee4,'object':_0x204f9b[_0x4fa179][_0x58ac('0x11f')],'change':_0x5bd336[_0x285572]}),_0x58ac('0x15')===_0x204f9b[_0x4fa179][_0x58ac('0x3e')]&&_0x12b794&&_0x12b794[_0x58ac('0x3')]===_0x204f9b[_0x4fa179][_0x58ac('0x11f')]&&(_0x3cb789[_0x285572][_0x58ac('0x89')](),_0x5bd336[_0x285572]=_0x12b794['change'])),_0x5bd336[_0x285572]&&_0x39f28c&&(_0x5bd336[_0x285572]['end']=_0x5ef710,_0x485d04(_0x5bd336[_0x285572]),_0x5bd336[_0x285572]=null);}function _0x485d04({start:_0x39061e,end:_0x51f84c,tapeItem:_0x2e9e03,userId:_0x1a8739,type:_0x20b659}){const _0x4008b0=_0x2e9e03['item'],_0x464975=_0x532914[_0x58ac('0x6c')][_0x58ac('0x3d')](_0x4008b0)&&!_0x532914[_0x58ac('0x6c')][_0x58ac('0x75')](_0x4008b0),_0x490c90=_0x39061e['nodeAfter']==_0x51f84c[_0x58ac('0x98')]&&_0x51f84c[_0x58ac('0xec')];if(_0x464975&&_0x490c90)return;const _0xa6c584=_0x532914[_0x58ac('0x120')](_0x39061e,_0x51f84c),_0x14cfc7=_0x234e87[_0x58ac('0xfb')](_0x1a8739),_0xda4ae9=new _0x55c7f1({'author':_0x14cfc7,'type':_0x58ac('0x62')==_0x20b659||_0x58ac('0x4e')==_0x20b659?_0x58ac('0xca'):'remove','data':{'isSuggestion':_0x58ac('0x4e')==_0x20b659||'isRemoveSuggestion'==_0x20b659},'createdAt':new Date(),'rootName':_0x3d7390});_0x3b93a6[_0x58ac('0xf2')](_0xda4ae9),_0x436aeb['markers'][_0x58ac('0x4c')](_0x58ac('0xc2')+_0xda4ae9['id'],_0xa6c584);}function _0x256491(_0x308dcf,_0x4d5ef6){const _0x5a52be=_0x308dcf[_0x58ac('0x8')](),_0x15d78e=_0x4d5ef6[_0x58ac('0x8')]();for(const _0x3f462a of _0x5a52be){if(_0x3f462a[0x1]!==_0x4d5ef6[_0x58ac('0xc1')](_0x3f462a[0x0]))return!0x1;_0x15d78e[_0x58ac('0x59')]();}return _0x15d78e[_0x58ac('0x59')]()['done'];}}['_setConversion'](){this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')]('upcast')[_0x58ac('0x100')]({'view':'revision'}),this[_0x58ac('0x5')][_0x58ac('0x63')]['for'](_0x58ac('0x8e'))[_0x58ac('0xcc')]({'model':_0x58ac('0x47'),'view':_0x28d340=>{const _0x5befc6=_0x28d340[_0x58ac('0x27')][_0x58ac('0x26')](':')[0x1],_0x4ee5db=this[_0x58ac('0xa7')](_0x5befc6);if(!_0x4ee5db)return null;const _0x2b8571='add'==_0x4ee5db[_0x58ac('0x3e')]?'insertion':_0x58ac('0x103'),_0x28faad=[_0x58ac('0x42'),_0x58ac('0xc0')+_0x2b8571];return _0x4ee5db[_0x58ac('0x9')][_0x58ac('0x2f')]&&_0x28faad[_0x58ac('0xf2')]('ck-suggestion-marker-'+_0x2b8571+'-new'),this[_0x58ac('0x9e')]==_0x4ee5db&&_0x28faad[_0x58ac('0xf2')](_0x58ac('0x7')),{'classes':_0x28faad,'attributes':{'data-change-id':_0x5befc6}};}}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))['add'](_0x40ef9b=>{_0x40ef9b['on'](_0x58ac('0xd0'),(_0x41f2ae,_0x1a5321,_0x4341c8)=>{const _0x287067=_0x1a5321[_0x58ac('0x122')][_0x58ac('0x67')](0x0);if(!_0x287067||!_0x287067['is'](_0x58ac('0xc8'),'code'))return;if(!_0x4341c8['consumable']['consume'](_0x287067,{'attributes':[_0x58ac('0xd8'),'vid_end']}))return;const _0x239a61=_0x1a5321[_0x58ac('0x31')][_0x58ac('0xf5')][_0x58ac('0x60')];_0x4341c8['writer']['setAttribute'](_0x58ac('0xd8'),_0x287067[_0x58ac('0xc1')](_0x58ac('0xd8')),_0x239a61),_0x4341c8['writer'][_0x58ac('0x119')](_0x58ac('0x7b'),_0x287067['getAttribute'](_0x58ac('0x7b')),_0x239a61);},{'priority':_0x58ac('0x8a')});}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')]('upcast')[_0x58ac('0xca')](_0x183431=>{_0x183431['on']('element',(_0x2dbf2a,_0x26005b,_0x5ade65)=>{if(!_0x5ade65[_0x58ac('0x5a')]['consume'](_0x26005b[_0x58ac('0x122')],{'attributes':[_0x58ac('0xd8'),'vid_end']}))return;if(_0x26005b[_0x58ac('0x31')][_0x58ac('0xa1')])return;const _0x12c9d1=_0x26005b[_0x58ac('0x31')]['start'][_0x58ac('0x60')];_0x12c9d1['hasAttribute'](_0x58ac('0xd8'))||_0x12c9d1[_0x58ac('0xfc')]('vid')||(_0x5ade65[_0x58ac('0x123')][_0x58ac('0x119')](_0x58ac('0xd8'),_0x26005b[_0x58ac('0x122')][_0x58ac('0xc1')]('vid_start'),_0x12c9d1),_0x5ade65[_0x58ac('0x123')]['setAttribute'](_0x58ac('0x7b'),_0x26005b[_0x58ac('0x122')][_0x58ac('0xc1')](_0x58ac('0x7b')),_0x12c9d1));},{'priority':_0x58ac('0x8a')});}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))[_0x58ac('0x41')]({'view':{'name':_0x58ac('0xff'),'attributes':{'vid':!0x0}},'model':{'key':_0x58ac('0x2d'),'value':_0x3b9134=>_0x3b9134[_0x58ac('0xc1')](_0x58ac('0x2d'))}}),this['editor'][_0x58ac('0x10e')][_0x58ac('0x6c')]['on'](_0x58ac('0xf0'),(_0x3cb2e1,[,_0x3d4a46])=>{[_0x58ac('0xd8'),'vid_end',_0x58ac('0x2d')]['includes'](_0x3d4a46)&&(_0x3cb2e1['return']=!0x0,_0x3cb2e1['stop']());},{'priority':'highest'}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')]('dataDowncast')['add'](_0x3fe0b8=>{_0x3fe0b8['on'](_0x58ac('0x115'),(_0x24eec3,_0x10faa5,_0xf0c627)=>{if('\x20'!=_0x10faa5['item'][_0x58ac('0x9')]||_0x10faa5[_0x58ac('0x11f')]['parent'][_0x58ac('0x50')]>0x1)return;if(!_0xf0c627[_0x58ac('0x5a')][_0x58ac('0xef')](_0x10faa5[_0x58ac('0x11f')],_0x24eec3['name']))return;const _0x5d87de=_0xf0c627['writer'],_0x27ee8d=_0xf0c627[_0x58ac('0x3b')][_0x58ac('0x34')](_0x10faa5['range']);_0x5d87de[_0x58ac('0xa9')](_0x27ee8d,_0x5d87de[_0x58ac('0x64')](_0x58ac('0xff')));});}),this[_0x58ac('0x5')][_0x58ac('0x63')]['for'](_0x58ac('0x84'))['markerToData']({'model':_0x58ac('0x47')}),this[_0x58ac('0x5')][_0x58ac('0x4a')]['downcastDispatcher']['on'](_0x58ac('0x32'),function(_0x4c63c2){const _0x509d43=_0x4c63c2['plugins'][_0x58ac('0xfb')](_0x58ac('0xe1'));return(_0x3cf00d,_0x9cce55,_0x360afb)=>{const _0x4e8d3b=_0x9cce55[_0x58ac('0x27')][_0x58ac('0x26')](':')[0x1],_0xef9cc1=_0x509d43[_0x58ac('0xa7')](_0x4e8d3b);if(!_0xef9cc1)return null;const _0x352949=_0x58ac('0xca')==_0xef9cc1[_0x58ac('0x3e')]?'split':'merge';if(!_0x360afb[_0x58ac('0x5a')][_0x58ac('0x6e')](_0x9cce55[_0x58ac('0xa8')],_0x3cf00d[_0x58ac('0x11a')]))return;const _0x594361=_0x9cce55['markerRange']['getWalker'](),_0x523217=_0x9cce55[_0x58ac('0xa8')]['start'],_0x51c5b0=_0x4c63c2[_0x58ac('0x10e')]['schema'];let _0x4ed93e=null,_0x6b3045=null,_0x2020bf=!0x1,_0x60f8ea=!0x1;for(const _0x2d4b7d of _0x594361){const _0x1ca31c=_0x2d4b7d[_0x58ac('0x11f')];_0x2020bf=_0x2020bf||_0x51c5b0[_0x58ac('0x88')](_0x1ca31c);const _0xcf032a=_0x360afb[_0x58ac('0x3b')][_0x58ac('0xa3')](_0x1ca31c);if(_0xcf032a&&_0xcf032a['getCustomProperty'](_0x58ac('0xa')))return;_0x58ac('0x15')==_0x2d4b7d[_0x58ac('0x3e')]&&(_0x51c5b0[_0x58ac('0x3d')](_0x1ca31c)&&!_0x51c5b0[_0x58ac('0x75')](_0x1ca31c)&&(_0x1ca31c[_0x58ac('0x6f')]||_0x523217[_0x58ac('0x44')]?_0x4ed93e&&_0x4ed93e[_0x58ac('0x98')]==_0x1ca31c||(_0x4ed93e=_0x1ca31c,_0x3f980c(_0x2d4b7d[_0x58ac('0xd5')]),_0x60f8ea=!0x0):_0x6b3045=_0x6b3045||_0x2d4b7d[_0x58ac('0xd5')]));}function _0x3f980c(_0x511601){const _0x542a34=_0x360afb[_0x58ac('0x123')][_0x58ac('0xa6')]('span',{'class':_0x58ac('0xc0')+_0x352949}),_0x4236b5=_0x360afb[_0x58ac('0x3b')]['toViewPosition'](_0x511601);_0xef9cc1[_0x58ac('0x9')][_0x58ac('0x2f')]&&_0x360afb['writer'][_0x58ac('0x4d')]('ck-suggestion-marker-'+_0x352949+_0x58ac('0xe9'),_0x542a34),_0x509d43[_0x58ac('0x9e')]==_0xef9cc1&&_0x360afb['writer'][_0x58ac('0x4d')](_0x58ac('0x7'),_0x542a34),_0x360afb[_0x58ac('0x123')][_0x58ac('0x81')](_0x4236b5,_0x542a34),_0x360afb[_0x58ac('0x3b')][_0x58ac('0x7c')](_0x542a34,_0x9cce55[_0x58ac('0x27')]);}_0x2020bf||_0x60f8ea||!_0x6b3045||_0x3f980c(_0x6b3045);};}(this[_0x58ac('0x5')]),{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on'](_0x58ac('0xf6'),(_0x596ee7,_0x17c594,_0x538a9f)=>{const _0x399c69=_0x538a9f[_0x58ac('0x3b')][_0x58ac('0xd9')](_0x17c594[_0x58ac('0x27')]);if(_0x399c69)for(const _0x62480e of _0x399c69)(_0x62480e[_0x58ac('0x90')]('ck-suggestion-marker-split')||_0x62480e[_0x58ac('0x90')](_0x58ac('0x85')))&&(_0x538a9f[_0x58ac('0x3b')]['unbindElementFromMarkerName'](_0x62480e,_0x17c594['markerName']),_0x538a9f[_0x58ac('0x123')][_0x58ac('0x87')](_0x62480e));},{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on'](_0x58ac('0x32'),(_0x4d64f3,_0x9a956c,_0xe20cd9)=>{const _0x21aea0=_0x9a956c[_0x58ac('0x27')]['split'](':')[0x1],_0x135a5f=this[_0x58ac('0xa7')](_0x21aea0);if(!_0x135a5f)return null;const _0x44e4c8='add'==_0x135a5f[_0x58ac('0x3e')]?_0x58ac('0x26'):_0x58ac('0x8f');if(_0xe20cd9[_0x58ac('0x5a')][_0x58ac('0x6e')](_0x9a956c[_0x58ac('0xa8')],_0x4d64f3['name']))for(const _0x8f09c of _0x9a956c[_0x58ac('0xa8')][_0x58ac('0x3f')]()){if(!_0x8f09c['is'](_0x58ac('0xc8'),_0x58ac('0xa0')))continue;const _0x73c7f0=_0xe20cd9['writer'][_0x58ac('0xa6')](_0x58ac('0xff'),{'class':_0x58ac('0xc0')+_0x44e4c8}),_0x3fb949=_0xe20cd9[_0x58ac('0x3b')][_0x58ac('0xa5')](this[_0x58ac('0x5')]['model']['createPositionBefore'](_0x8f09c));_0x135a5f[_0x58ac('0x9')][_0x58ac('0x2f')]&&_0xe20cd9[_0x58ac('0x123')][_0x58ac('0x4d')](_0x58ac('0xc0')+_0x44e4c8+_0x58ac('0xe9'),_0x73c7f0),this[_0x58ac('0x9e')]==_0x135a5f&&_0xe20cd9[_0x58ac('0x123')]['addClass'](_0x58ac('0x7'),_0x73c7f0),_0xe20cd9[_0x58ac('0x123')][_0x58ac('0x81')](_0x3fb949,_0x73c7f0),_0xe20cd9[_0x58ac('0x3b')]['bindElementToMarker'](_0x73c7f0,_0x9a956c[_0x58ac('0x27')]);}},{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')]['on'](_0x58ac('0xf9'),()=>{this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xf9')](_0x4c0a8e=>{for(const _0x2be7bd of this['editor']['model'][_0x58ac('0xde')][_0x58ac('0x102')]()){const _0x356df8=this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')][_0x58ac('0x2')](_0x2be7bd),_0x48fce7=this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x2')](_0x2be7bd);if(_0x48fce7){const _0x3f045e=_0x356df8[_0x58ac('0xc1')](_0x58ac('0x45'));if(_0x4c0a8e[_0x58ac('0x9d')](_0x58ac('0x117'),_0x48fce7),_0x4c0a8e[_0x58ac('0xaf')]('ck-revision-history-root-add',_0x48fce7),_0x4c0a8e[_0x58ac('0xaf')](_0x58ac('0x6'),_0x48fce7),_0x4c0a8e[_0x58ac('0xaf')](_0x58ac('0x7d'),_0x48fce7),_0x3f045e){const _0x28bbb1=this[_0x58ac('0xa7')](_0x3f045e);if(!_0x28bbb1)return null;_0x4c0a8e[_0x58ac('0x119')](_0x58ac('0x117'),_0x3f045e,_0x48fce7),_0x4c0a8e['addClass'](_0x58ac('0x1c')+_0x28bbb1[_0x58ac('0x3e')],_0x48fce7),this['activeChange']==_0x28bbb1&&_0x4c0a8e['addClass'](_0x58ac('0x7d'),_0x48fce7);}}}});}),this['editor'][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))[_0x58ac('0x100')]({'view':_0x58ac('0xe'),'model':_0x416d83=>'revision-comment:'+_0x416d83,'converterPriority':'highest'}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))[_0x58ac('0x100')]({'view':_0x58ac('0xd'),'model':_0x375573=>_0x58ac('0x13')+_0x375573,'converterPriority':_0x58ac('0xb2')}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0x84'))[_0x58ac('0x11e')]({'model':_0x58ac('0x17'),'view':_0x3a9cff=>({'name':'suggestion:'+_0x3a9cff,'group':_0x58ac('0x17')}),'converterPriority':'highest'}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0x8e'))['markerToHighlight']({'model':'revision-suggestion','view':_0x30fb83=>{const _0x567587=_0x30fb83['markerName'][_0x58ac('0x26')](':')[0x1];return _0x58ac('0xfd')!=_0x567587&&'deletion'!=_0x567587?null:{'classes':['ck-suggestion-preview-marker',_0x58ac('0x16')+_0x567587]};}}),this[_0x58ac('0x5')]['editing'][_0x58ac('0xe5')]['on'](_0x58ac('0x57'),et(this['editor'],'merge'),{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x58ac('0x5')],'split'),{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on'](_0x58ac('0xb7'),(_0x1a4735,_0xb2e0e4,_0x28bc5e)=>{const _0x592dfb=_0x28bc5e['mapper']['markerNameToElements'](_0xb2e0e4[_0x58ac('0x27')]);if(_0x592dfb)for(const _0x496a92 of _0x592dfb)_0x496a92['is'](_0x58ac('0x2a'))&&(_0x28bc5e['mapper'][_0x58ac('0xe8')](_0x496a92,_0xb2e0e4[_0x58ac('0x27')]),_0x28bc5e[_0x58ac('0x123')][_0x58ac('0x87')](_0x496a92));},{'priority':_0x58ac('0xc7')});}[_0x58ac('0xa7')](_0x582317){return this[_0x58ac('0x30')][_0x58ac('0xfb')](_0x582317);}[_0x58ac('0xa4')](_0x476515){return this[_0x58ac('0xc')]&&this[_0x58ac('0xc')][_0x58ac('0xeb')](),this[_0x58ac('0xc')]=new _0x32aafe(this['editor']['locale'],_0x476515),this[_0x58ac('0xc')];}['_initInteractions'](){this[_0x58ac('0x5')]['model'][_0x58ac('0xde')][_0x58ac('0x28')][_0x58ac('0x3a')](_0x58ac('0x47')),this['on'](_0x58ac('0x6a'),(_0x52af78,_0xb4cdd7,_0x16d83d,_0x50cf7b)=>{_0x50cf7b&&this[_0x58ac('0x68')]['remove'](_0x50cf7b),_0x16d83d&&(this['_balloon'][_0x58ac('0xca')]({'view':_0x16d83d,'stackId':_0x58ac('0x86'),'position':{'target':()=>{const _0xc5472e=this[_0x58ac('0x5')][_0x58ac('0x4a')],_0x3cb93d=this[_0x58ac('0xa7')](_0x16d83d[_0x58ac('0x61')]);let _0x74bbd5;if(_0x3cb93d[_0x58ac('0x9')][_0x58ac('0xd4')]){const _0x447fcf=_0xc5472e[_0x58ac('0x121')]['getDomRoot'](_0x3cb93d['rootName']);_0x74bbd5=Array['from'](_0x447fcf['getClientRects']());}else{const _0x40b5ac=this[_0x58ac('0x5')]['model'][_0x58ac('0x21')][_0x58ac('0xfb')]('revision:'+_0x16d83d['changeId']);_0x74bbd5=Array[_0x58ac('0x93')](_0xc5472e[_0x58ac('0x3b')][_0x58ac('0xd9')](_0x40b5ac['name']))[_0x58ac('0x110')](_0x966357=>_0xc5472e[_0x58ac('0x121')][_0x58ac('0x114')][_0x58ac('0xb9')](_0x966357))[_0x58ac('0x110')](_0x33e51f=>Array[_0x58ac('0x93')](_0x33e51f[_0x58ac('0x8b')]()))[_0x58ac('0x109')]();}if(!this[_0x58ac('0xad')])return _0x74bbd5[0x0];return _0x74bbd5[_0x58ac('0x77')](_0x1a81c6=>_0x1a81c6[_0x58ac('0xf8')]-0x3<=this['_activeViewTarget']['y']&&_0x1a81c6[_0x58ac('0xbe')]+0x3>=this[_0x58ac('0xad')]['y']&&_0x1a81c6[_0x58ac('0xb6')]-0x3<=this[_0x58ac('0xad')]['x']&&_0x1a81c6['right']+0x3>=this[_0x58ac('0xad')]['x'])||_0x74bbd5[0x0];}}}),this[_0x58ac('0x68')][_0x58ac('0x1')]('revisionHistoryLabel'));}),this['on'](_0x58ac('0x10b'),(_0x2d4d08,_0xab5ae5,_0x276717,_0x177b21)=>{this[_0x58ac('0x56')]=_0x276717?this[_0x58ac('0xa4')](_0x276717):null,this[_0x58ac('0x5')]['model'][_0x58ac('0xf9')](()=>{const _0x18ea59=this[_0x58ac('0x5')]['editing'];_0x177b21&&(_0x177b21[_0x58ac('0x9')][_0x58ac('0xd4')]?_0x18ea59[_0x58ac('0x121')][_0x58ac('0xf9')](_0x389933=>{_0x389933[_0x58ac('0xaf')]('ck-revision-history-root--active',_0x18ea59[_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x2')](_0x177b21[_0x58ac('0xae')]));}):_0x18ea59[_0x58ac('0x48')](_0x58ac('0xc2')+_0x177b21['id'])),_0x276717&&(_0x276717[_0x58ac('0x9')]['isOnRoot']?_0x18ea59[_0x58ac('0x121')][_0x58ac('0xf9')](_0x4754f2=>{_0x4754f2[_0x58ac('0x4d')](_0x58ac('0x7d'),_0x18ea59[_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x2')](_0x276717['rootName']));}):_0x18ea59[_0x58ac('0x48')](_0x58ac('0xc2')+_0x276717['id']));});}),this[_0x58ac('0x94')](this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')],_0x58ac('0x14'),(_0x187323,_0x10070a)=>{if(this['activeChange'])return;const _0x53a457=this['_findChangeIdFromDomTarget'](_0x10070a['target']),_0x442a4a=this[_0x58ac('0x30')][_0x58ac('0xfb')](_0x53a457);_0x442a4a?(this[_0x58ac('0xad')]={'x':_0x10070a[_0x58ac('0x7a')]['x'],'y':_0x10070a['domEvent']['y']},this[_0x58ac('0x56')]=this[_0x58ac('0xa4')](_0x442a4a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this[_0x58ac('0x94')](this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')],_0x58ac('0x106'),(_0xf1057d,_0x36f4a8)=>{const _0x4fa5a2=this[_0x58ac('0x76')](_0x36f4a8[_0x58ac('0x1f')]),_0x164c80=this[_0x58ac('0x30')]['get'](_0x4fa5a2);_0x164c80?(this[_0x58ac('0xad')]={'x':_0x36f4a8[_0x58ac('0x7a')]['x'],'y':_0x36f4a8[_0x58ac('0x7a')]['y']},_0x164c80===this['activeChange']?this[_0x58ac('0x68')][_0x58ac('0x6b')]():this[_0x58ac('0x9e')]=_0x164c80):(this[_0x58ac('0xad')]=null,this[_0x58ac('0x9e')]=null);});}[_0x58ac('0x76')](_0x4e7c8d){do{const _0x3ac9b3=_0x4e7c8d[_0x58ac('0xc1')](_0x58ac('0x117'));if(_0x3ac9b3)return _0x3ac9b3;_0x4e7c8d=_0x4e7c8d[_0x58ac('0x98')];}while(_0x4e7c8d);return null;}[_0x58ac('0xbf')](){this[_0x58ac('0x5')]['model'][_0x58ac('0xf9')](_0xcfc3b1=>{for(const _0x1e489b of this['editor'][_0x58ac('0x10e')][_0x58ac('0x21')])_0xcfc3b1[_0x58ac('0x20')](_0x1e489b);});}}function et(_0x1bfddb,_0x258667){return(_0x39c1cc,_0xa960a7,_0x4a732c)=>{if(!_0x4a732c['consumable'][_0x58ac('0x6e')](_0xa960a7['markerRange'],_0x39c1cc[_0x58ac('0x11a')]))return;const _0x31629a=_0xa960a7[_0x58ac('0xa8')][_0x58ac('0x46')](),_0x2e0800=_0xa960a7[_0x58ac('0xa8')][_0x58ac('0xf5')],_0x5279c8=_0x1bfddb[_0x58ac('0x10e')][_0x58ac('0x6c')];let _0x529b46=null,_0x4b9b4d=null,_0x1fd6e6=!0x1,_0x42d79e=!0x1;for(const _0x5c3e7f of _0x31629a){const _0x26a3b4=_0x5c3e7f['item'];_0x1fd6e6=_0x1fd6e6||_0x5279c8[_0x58ac('0x88')](_0x26a3b4);const _0x54461f=_0x4a732c[_0x58ac('0x3b')]['toViewElement'](_0x26a3b4);if(_0x54461f&&_0x54461f[_0x58ac('0x91')](_0x58ac('0xa')))return;_0x58ac('0x15')==_0x5c3e7f[_0x58ac('0x3e')]&&(_0x5279c8[_0x58ac('0x3d')](_0x26a3b4)&&!_0x5279c8[_0x58ac('0x75')](_0x26a3b4)&&(_0x26a3b4[_0x58ac('0x6f')]||_0x2e0800[_0x58ac('0x44')]?_0x529b46&&_0x529b46[_0x58ac('0x98')]==_0x26a3b4||(_0x529b46=_0x26a3b4,_0x5b8c82(_0x5c3e7f[_0x58ac('0xd5')]),_0x42d79e=!0x0):_0x4b9b4d=_0x4b9b4d||_0x5c3e7f[_0x58ac('0xd5')]));}function _0x5b8c82(_0x475317){const _0x169ee0=_0x4a732c[_0x58ac('0x3b')][_0x58ac('0xa5')](_0x475317),_0x54cdfe=_0x4a732c[_0x58ac('0x123')][_0x58ac('0xa6')](_0x58ac('0xff'),{'class':_0x58ac('0x16')+_0x258667});_0x4a732c[_0x58ac('0x123')]['insert'](_0x169ee0,_0x54cdfe),_0x4a732c['mapper']['bindElementToMarker'](_0x54cdfe,_0xa960a7[_0x58ac('0x27')]);}_0x1fd6e6||_0x42d79e||!_0x4b9b4d||_0x5b8c82(_0x4b9b4d);};}export class RestoreRevisionCommand extends _0x5b14aa{constructor(_0x375a5c){super(_0x375a5c);const _0xc891f=_0x375a5c[_0x58ac('0x79')][_0x58ac('0xfb')](d);this[_0x58ac('0x58')]=!0x1,this[_0x58ac('0x94')](_0xc891f,_0x58ac('0x104'),()=>this[_0x58ac('0xcd')]()),this[_0x58ac('0x94')](_0xc891f,_0x58ac('0xfe'),()=>this[_0x58ac('0xcd')]());}[_0x58ac('0x70')](){const _0xb592d4=this[_0x58ac('0x5')],_0x5796b8=_0xb592d4[_0x58ac('0x79')][_0x58ac('0xfb')](d),_0x7eb84b=_0x5796b8[_0x58ac('0x11b')]?_0x5796b8['diff'][_0x58ac('0x96')]:null;_0xb592d4['config'][_0x58ac('0xfb')](_0x58ac('0x7e'))['restoreRevisionCallback'](_0x7eb84b);}[_0x58ac('0xcd')](){const {isReady:_0x3dc07e,isEnabled:_0x5dc750}=this[_0x58ac('0x5')][_0x58ac('0x79')][_0x58ac('0xfb')](d);this[_0x58ac('0x9c')]=_0x3dc07e&&_0x5dc750;}}export class ShowChangeCommand extends _0x5b14aa{constructor(_0x2a65e0,{direction:_0x4eb7ed}){super(_0x2a65e0);const _0x3be87e=_0x2a65e0['plugins']['get'](d);this[_0x58ac('0x58')]=!0x1,this['_step']='forward'===_0x4eb7ed?0x1:-0x1,this[_0x58ac('0x94')](_0x3be87e,_0x58ac('0x104'),()=>this['refresh']()),this['listenTo'](_0x3be87e,'change:isEnabled',()=>this[_0x58ac('0xcd')]()),this[_0x58ac('0x94')](_0x3be87e,'change:activeChange',()=>this[_0x58ac('0xcd')]());}[_0x58ac('0x70')](){const _0x5be006=this[_0x58ac('0x5')],_0x90bad4=_0x5be006['plugins'][_0x58ac('0xfb')](d),{isNavigationMode:_0xe5448e,currentChangeNumber:_0x8acb3d}=_0x90bad4;let _0x4dd9b4;if(_0x90bad4[_0x58ac('0x9e')]=_0xe5448e?_0x90bad4[_0x58ac('0xe0')]['changes']['get'](_0x8acb3d+this['_step']):_0x90bad4[_0x58ac('0xe0')][_0x58ac('0x36')][_0x58ac('0xd2')],_0x90bad4[_0x58ac('0x9e')][_0x58ac('0x9')][_0x58ac('0xd4')])_0x4dd9b4=_0x5be006[_0x58ac('0x4a')][_0x58ac('0x121')]['getDomRoot'](_0x90bad4[_0x58ac('0x9e')]['rootName']);else{const _0x51c5df=_0x5be006[_0x58ac('0x10e')][_0x58ac('0x21')][_0x58ac('0xfb')](_0x58ac('0xc2')+_0x90bad4['activeChange']['id']);_0x4dd9b4=_0x50d73d(_0x5be006[_0x58ac('0x4a')],_0x51c5df);}_0x69fb6c({'target':_0x4dd9b4,'viewportOffset':0x28});}[_0x58ac('0xcd')](){const {isNavigationMode:_0x5e43ef,currentChangeNumber:_0x489c84,numberOfChanges:_0x5aa8b7,isReady:_0x138782,isEnabled:_0x13a6e3}=this[_0x58ac('0x5')][_0x58ac('0x79')]['get'](d);this[_0x58ac('0x9c')]=!!(_0x13a6e3&&_0x138782&&_0x5aa8b7)&&(!_0x5e43ef||(0x1===this[_0x58ac('0x25')]?_0x489c84<_0x5aa8b7-0x1:_0x489c84>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19c7=['Restore\x20this\x20revision','first','execute','button','ck-revision-history-sidebar__revision__actions','name','source','model','action','items','isOpen','panelPosition','add','_action','bind','Name\x20this\x20revision','isEnabled','listView','threeVerticalDots','ck-on','extendTemplate','locale','listenTo','map','isVisible','bindTemplate','class','isActionsDropdownOpen'];(function(_0x5b9a95,_0x19c7d1){const _0x571f96=function(_0x1111d9){while(--_0x1111d9){_0x5b9a95['push'](_0x5b9a95['shift']());}};_0x571f96(++_0x19c7d1);}(_0x19c7,0x1e5));const _0x571f=function(_0x5b9a95,_0x19c7d1){_0x5b9a95=_0x5b9a95-0x0;let _0x571f96=_0x19c7[_0x5b9a95];return _0x571f96;};import{Collection as _0x12e7ab}from'ckeditor5/src/utils';import{icons as _0x5162e2}from'ckeditor5/src/core';import{Model as _0xad0787,addListToDropdown as _0x148034,createDropdown as _0x400aba}from'ckeditor5/src/ui';import{getTranslation as _0x45a3ad}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x63f771,_0x3a6785){const _0xf8534b=_0x63f771[_0x571f('0x10')],_0x2f5af4=_0x63f771[_0x571f('0xc')],_0x232aa3=_0x400aba(_0x2f5af4);_0x232aa3[_0x571f('0x2')]='sw';const _0xddc093=function(_0x42158b,_0xd9cd95){const _0x369627=function(_0x1b38b6,_0x57caa7){const _0x3697d1=_0x1b38b6[_0x571f('0xc')],_0x29176a={'Compare\x20against\x20selected':_0x45a3ad(_0x3697d1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x45a3ad(_0x3697d1,_0x571f('0x6')),'Restore\x20this\x20revision':_0x45a3ad(_0x3697d1,_0x571f('0x13'))};return _0x57caa7[_0x571f('0xe')](_0x4b1eec=>{const _0x3778bf=_0x29176a[_0x4b1eec['name']];return _0x3778bf&&_0x3778bf!==_0x4b1eec['name']&&(_0x4b1eec[_0x571f('0x18')]=_0x3778bf),_0x4b1eec;});}(_0x42158b,_0xd9cd95),_0x1034fc=new _0x12e7ab();for(const _0x3af24f of _0x369627){const _0x18990d={'type':_0x571f('0x16'),'model':new _0xad0787({'label':_0x3af24f[_0x571f('0x18')],'class':_0x3af24f[_0x571f('0x11')],'withText':!0x0,'_action':_0x3af24f['action']})};_0x18990d[_0x571f('0x1a')]['bind'](_0x571f('0x7'))['to'](_0x42158b,_0x571f('0x12'),_0x4188c5=>'function'!=typeof _0x3af24f[_0x571f('0x7')]||(!_0x4188c5||_0x3af24f[_0x571f('0x7')](_0x42158b))),_0x1034fc[_0x571f('0x3')](_0x18990d);}return _0x1034fc;}(_0x63f771,_0x3a6785);return _0x63f771[_0x571f('0x5')](_0x571f('0x12'))['to'](_0x232aa3,_0x571f('0x1')),_0x232aa3['buttonView']['set']({'label':_0x45a3ad(_0x2f5af4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5162e2[_0x571f('0x9')]}),_0x232aa3[_0x571f('0xb')]({'attributes':{'class':[_0x571f('0x17'),_0xf8534b['if'](_0x571f('0x12'),_0x571f('0xa'))]},'on':{'click':_0xf8534b['to'](_0x19c447=>_0x19c447['stopPropagation']())}}),_0x232aa3['on'](_0x571f('0x15'),_0x171b27=>{_0x63f771['isReady']&&'function'==typeof _0x171b27['source']['_action']&&_0x171b27[_0x571f('0x19')][_0x571f('0x4')](_0x63f771);}),_0x148034(_0x232aa3,_0xddc093),_0x232aa3[_0x571f('0xd')](_0x63f771,'change:isActionsDropdownOpen',(_0x2e1c7b,_0x57a1ad,_0x39f5d5)=>{if(_0x39f5d5)for(const _0x32e88f of _0x232aa3[_0x571f('0x8')][_0x571f('0x0')]){const _0x287f8e=_0x32e88f['children'][_0x571f('0x14')],_0x162569=_0x3a6785['find'](_0x36a051=>_0x36a051[_0x571f('0x1b')]===_0x287f8e[_0x571f('0x4')])['isVisible'];_0x32e88f[_0x571f('0xf')]=void 0x0===_0x162569||_0x162569(_0x63f771);}}),_0x232aa3;}
23
+ const _0x9ed9=['name','button','ck-revision-history-sidebar__revision__actions','function','extendTemplate','bindTemplate','action','listenTo','isEnabled','isOpen','isVisible','items','set','execute','stopPropagation','children','threeVerticalDots','locale','model','listView','class','find','map','_action','Name\x20this\x20revision','change:isActionsDropdownOpen','ck-on','isActionsDropdownOpen','isReady'];(function(_0x1046d3,_0x9ed938){const _0x35a2c9=function(_0x3f6b6d){while(--_0x3f6b6d){_0x1046d3['push'](_0x1046d3['shift']());}};_0x35a2c9(++_0x9ed938);}(_0x9ed9,0xa8));const _0x35a2=function(_0x1046d3,_0x9ed938){_0x1046d3=_0x1046d3-0x0;let _0x35a2c9=_0x9ed9[_0x1046d3];return _0x35a2c9;};import{Collection as _0x1d47cb}from'ckeditor5/src/utils';import{icons as _0x203d8f}from'ckeditor5/src/core';import{Model as _0x5b95d5,addListToDropdown as _0x19220c,createDropdown as _0x3d1f4a}from'ckeditor5/src/ui';import{getTranslation as _0x12a5d3}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x27cd21,_0x5b755f){const _0x3df1ad=_0x27cd21[_0x35a2('0xb')],_0x4b894b=_0x27cd21[_0x35a2('0x17')],_0x39ba9b=_0x3d1f4a(_0x4b894b);_0x39ba9b['panelPosition']='sw';const _0x38af6c=function(_0x4b40c9,_0x52d429){const _0x27e931=function(_0x1c6d0a,_0x1ab9ee){const _0x3f081b=_0x1c6d0a[_0x35a2('0x17')],_0x5c3158={'Compare\x20against\x20selected':_0x12a5d3(_0x3f081b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x12a5d3(_0x3f081b,_0x35a2('0x1')),'Restore\x20this\x20revision':_0x12a5d3(_0x3f081b,'Restore\x20this\x20revision')};return _0x1ab9ee[_0x35a2('0x1c')](_0x34a8a8=>{const _0x1ab643=_0x5c3158[_0x34a8a8['name']];return _0x1ab643&&_0x1ab643!==_0x34a8a8['name']&&(_0x34a8a8[_0x35a2('0x6')]=_0x1ab643),_0x34a8a8;});}(_0x4b40c9,_0x52d429),_0x19ea7f=new _0x1d47cb();for(const _0x1907be of _0x27e931){const _0xb45de0={'type':_0x35a2('0x7'),'model':new _0x5b95d5({'label':_0x1907be[_0x35a2('0x6')],'class':_0x1907be[_0x35a2('0x1a')],'withText':!0x0,'_action':_0x1907be[_0x35a2('0xc')]})};_0xb45de0[_0x35a2('0x18')]['bind'](_0x35a2('0xe'))['to'](_0x4b40c9,_0x35a2('0x4'),_0x3f94d0=>_0x35a2('0x9')!=typeof _0x1907be['isEnabled']||(!_0x3f94d0||_0x1907be[_0x35a2('0xe')](_0x4b40c9))),_0x19ea7f['add'](_0xb45de0);}return _0x19ea7f;}(_0x27cd21,_0x5b755f);return _0x27cd21['bind'](_0x35a2('0x4'))['to'](_0x39ba9b,_0x35a2('0xf')),_0x39ba9b['buttonView'][_0x35a2('0x12')]({'label':_0x12a5d3(_0x4b894b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x203d8f[_0x35a2('0x16')]}),_0x39ba9b[_0x35a2('0xa')]({'attributes':{'class':[_0x35a2('0x8'),_0x3df1ad['if'](_0x35a2('0x4'),_0x35a2('0x3'))]},'on':{'click':_0x3df1ad['to'](_0x4ebafc=>_0x4ebafc[_0x35a2('0x14')]())}}),_0x39ba9b['on'](_0x35a2('0x13'),_0x5c974b=>{_0x27cd21[_0x35a2('0x5')]&&_0x35a2('0x9')==typeof _0x5c974b['source'][_0x35a2('0x0')]&&_0x5c974b['source'][_0x35a2('0x0')](_0x27cd21);}),_0x19220c(_0x39ba9b,_0x38af6c),_0x39ba9b[_0x35a2('0xd')](_0x27cd21,_0x35a2('0x2'),(_0x22b0f7,_0x44b81c,_0x506214)=>{if(_0x506214)for(const _0x4fc48a of _0x39ba9b[_0x35a2('0x19')][_0x35a2('0x11')]){const _0x4aaa25=_0x4fc48a[_0x35a2('0x15')]['first'],_0x506050=_0x5b755f[_0x35a2('0x1b')](_0x342286=>_0x342286[_0x35a2('0xc')]===_0x4aaa25[_0x35a2('0x0')])[_0x35a2('0x10')];_0x4fc48a[_0x35a2('0x10')]=void 0x0===_0x506050||_0x506050(_0x27cd21);}}),_0x39ba9b;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16cf=['Revision\x20author','set','setTemplate','push','0\x200\x2011\x2010','Revision\x20creator','ck-revision-history-sidebar__revision-author','span','ck-revision-history-sidebar__revision-author_creator'];(function(_0x239a36,_0x16cf04){const _0x50d83b=function(_0x540945){while(--_0x540945){_0x239a36['push'](_0x239a36['shift']());}};_0x50d83b(++_0x16cf04);}(_0x16cf,0xf9));const _0x50d8=function(_0x239a36,_0x16cf04){_0x239a36=_0x239a36-0x0;let _0x50d83b=_0x16cf[_0x239a36];return _0x50d83b;};import{View as _0x4e337e,IconView as _0x1f988b}from'ckeditor5/src/ui';import{getTranslation as _0x19e059}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x16e91d from'../../../theme/icons/user.svg';export default class ti extends _0x4e337e{constructor(_0x2ce07f,_0x30b8b5,_0xc9989){super(_0x2ce07f);const _0x4f718b=new _0x1f988b();_0x4f718b[_0x50d8('0x4')]({'content':_0x16e91d,'viewBox':_0x50d8('0x7')});const _0x370b96=['ck',_0x50d8('0x0')];_0xc9989&&_0x370b96[_0x50d8('0x6')](_0x50d8('0x2'));const _0x8b7a8c=[{'tag':_0x50d8('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x19e059(_0x2ce07f,_0xc9989?_0x50d8('0x8'):_0x50d8('0x3'))},'children':[_0x4f718b,_0x30b8b5['name']]}];this[_0x50d8('0x5')]({'tag':'li','attributes':{'class':_0x370b96},'children':_0x8b7a8c});}}
23
+ const _0x5f13=['Revision\x20author','push','set','setTemplate','Revision\x20creator','span','ck-revision-history-sidebar__revision-author','0\x200\x2011\x2010'];(function(_0x55e48c,_0x5f1367){const _0x2961e5=function(_0xb7178f){while(--_0xb7178f){_0x55e48c['push'](_0x55e48c['shift']());}};_0x2961e5(++_0x5f1367);}(_0x5f13,0x1cd));const _0x2961=function(_0x55e48c,_0x5f1367){_0x55e48c=_0x55e48c-0x0;let _0x2961e5=_0x5f13[_0x55e48c];return _0x2961e5;};import{View as _0x55c561,IconView as _0x2c93b7}from'ckeditor5/src/ui';import{getTranslation as _0x1e1d55}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x107e46 from'../../../theme/icons/user.svg';export default class ti extends _0x55c561{constructor(_0x17907a,_0x3d270d,_0x557987){super(_0x17907a);const _0x4e9b31=new _0x2c93b7();_0x4e9b31[_0x2961('0x5')]({'content':_0x107e46,'viewBox':_0x2961('0x2')});const _0x3fa2fd=['ck',_0x2961('0x1')];_0x557987&&_0x3fa2fd[_0x2961('0x4')]('ck-revision-history-sidebar__revision-author_creator');const _0x1c18fe=[{'tag':_0x2961('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x1e1d55(_0x17907a,_0x557987?_0x2961('0x7'):_0x2961('0x3'))},'children':[_0x4e9b31,_0x3d270d['name']]}];this[_0x2961('0x6')]({'tag':'li','attributes':{'class':_0x3fa2fd},'children':_0x1c18fe});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xe29c=['extendTemplate','span','set'];(function(_0x11b065,_0xe29c6f){var _0x271674=function(_0x1a8959){while(--_0x1a8959){_0x11b065['push'](_0x11b065['shift']());}};_0x271674(++_0xe29c6f);}(_0xe29c,0xae));var _0x2716=function(_0x11b065,_0xe29c6f){_0x11b065=_0x11b065-0x0;var _0x271674=_0xe29c[_0x11b065];return _0x271674;};import{LabeledFieldView as _0x454234}from'ckeditor5/src/ui';import{getTranslation as _0x237d73}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x454234{constructor(_0x4ceee1,_0x4005b6){super(_0x4ceee1,_0x4005b6),this[_0x2716('0x2')]({'label':_0x237d73(_0x4ceee1,'Revision\x20name')}),this[_0x2716('0x0')]({'tag':_0x2716('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x5520=['extendTemplate','Revision\x20name','ck-revision-history-sidebar__revision-name','set','span'];(function(_0x5ddd58,_0x552001){var _0x34c834=function(_0x18bc23){while(--_0x18bc23){_0x5ddd58['push'](_0x5ddd58['shift']());}};_0x34c834(++_0x552001);}(_0x5520,0x1ee));var _0x34c8=function(_0x5ddd58,_0x552001){_0x5ddd58=_0x5ddd58-0x0;var _0x34c834=_0x5520[_0x5ddd58];return _0x34c834;};import{LabeledFieldView as _0xb3b363}from'ckeditor5/src/ui';import{getTranslation as _0x155c65}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xb3b363{constructor(_0x59657c,_0x4d4748){super(_0x59657c,_0x4d4748),this[_0x34c8('0x4')]({'label':_0x155c65(_0x59657c,_0x34c8('0x2'))}),this[_0x34c8('0x1')]({'tag':_0x34c8('0x0'),'attributes':{'class':[_0x34c8('0x3')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d5e=['ck-revision-history-sidebar__revision_highlighted','set','ck-revision-history-sidebar__revision__controls-wrapper','isEnabled','bindTemplate','srcElement','ck-disabled','createdAt','length','setTemplate','fire','unshift','isSelected','map','render','select','_createdAtFormatted','name','closest','creator','isReady','isConfirm','isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open','filter','bind','extendTemplate','change','revisionActionsView','ck-revision-history-sidebar__revision','isHighlighted','value','ck-revision-history-sidebar__revision_selected','placeholder','authors','ck-reset','span','ck-revision-history-sidebar__revision__date','revisionNameView','deselect','uiLanguage','fieldView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision-wrapper','div','ck-revision-history-sidebar__revision-authors'];(function(_0x94e21,_0x5d5eba){const _0x4a5264=function(_0x5b6d33){while(--_0x5b6d33){_0x94e21['push'](_0x94e21['shift']());}};_0x4a5264(++_0x5d5eba);}(_0x5d5e,0x66));const _0x4a52=function(_0x94e21,_0x5d5eba){_0x94e21=_0x94e21-0x0;let _0x4a5264=_0x5d5e[_0x94e21];return _0x4a5264;};import{View as _0xe94adb,createLabeledInputText as _0x2c91eb}from'ckeditor5/src/ui';import{ConfirmMixin as _0x115e0f}from'ckeditor5-collaboration/src/collaboration-core';import _0x175bb2 from'./revisionnameview';import _0x5edd67 from'./revisionauthorview';import{dateToPrettyFormat as _0x1b46d3}from'./utils';import{createActionsDropdownView as _0x4a727f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x115e0f(_0xe94adb){constructor(_0x29cc31,_0x297b07,_0x3b7282){super(_0x29cc31);const _0x527c09=this[_0x4a52('0x28')],_0x1c3d31=function(_0xb2d760,_0xd6a9e6){const _0x1343cb=Array['from'](_0xd6a9e6[_0x4a52('0x18')])[_0x4a52('0xe')](_0x52ae61=>_0x52ae61!=_0xd6a9e6['creator']);return _0xd6a9e6[_0x4a52('0x9')]&&_0x1343cb[_0x4a52('0x1')](_0xd6a9e6[_0x4a52('0x9')]),_0x1343cb[_0x4a52('0x3')](_0xea6d73=>new _0x5edd67(_0xb2d760,_0xea6d73,_0xea6d73==_0xd6a9e6[_0x4a52('0x9')]));}(_0x29cc31,_0x297b07);this['id']=_0x297b07['id'],this['_revision']=_0x297b07,this[_0x4a52('0xf')](_0x4a52('0x7'),_0x4a52('0x2b'))['to'](_0x297b07),this['bind'](_0x4a52('0x6'))['to'](this,'createdAt',_0x1b9f18=>_0x1b9f18?_0x1b46d3(_0x29cc31[_0x4a52('0x1e')],_0x1b9f18):void 0x0),this[_0x4a52('0x25')]('isSelected',!0x1),this[_0x4a52('0x25')](_0x4a52('0x14'),!0x1),this[_0x4a52('0x25')](_0x4a52('0xc'),!0x1),this['set']('isReady',!0x1),this[_0x4a52('0x25')](_0x4a52('0x27'),!0x1),this[_0x4a52('0x1c')]=new _0x175bb2(_0x29cc31,_0x2c91eb),this[_0x4a52('0x1c')][_0x4a52('0x1f')][_0x4a52('0x10')]({'attributes':{'maxlength':'220'}}),this[_0x4a52('0x1c')][_0x4a52('0x1f')]['bind'](_0x4a52('0x15'),_0x4a52('0x17'))['to'](this,_0x4a52('0x7'),_0x4a52('0x6')),this[_0x4a52('0x1c')][_0x4a52('0xf')](_0x4a52('0x27'))['to'](this,_0x4a52('0x2'),this,_0x4a52('0x27'),(_0x2c6c64,_0x2110ac)=>_0x2c6c64&&_0x2110ac),this['revisionActionsView']=_0x3b7282&&_0x3b7282[_0x4a52('0x2c')]?_0x4a727f(this,_0x3b7282):'',this[_0x4a52('0x12')]&&this[_0x4a52('0x12')]['bind'](_0x4a52('0x27'))['to'](this),this[_0x4a52('0x2d')]({'tag':_0x4a52('0x22'),'attributes':{'class':['ck',_0x4a52('0x19'),_0x4a52('0x21'),_0x527c09['if'](_0x4a52('0xb'),_0x4a52('0x20'))]},'children':[{'tag':_0x4a52('0x22'),'attributes':{'class':['ck',_0x4a52('0x19'),_0x4a52('0x13'),_0x527c09['if'](_0x4a52('0x27'),_0x4a52('0x2a'),_0x56f168=>!_0x56f168),_0x527c09['if'](_0x4a52('0x2'),_0x4a52('0x16')),_0x527c09['if'](_0x4a52('0x14'),_0x4a52('0x24')),_0x527c09['if'](_0x4a52('0xc'),_0x4a52('0xd'))]},'children':[this[_0x4a52('0x1c')],{'tag':_0x4a52('0x1a'),'attributes':{'class':['ck',_0x4a52('0x1b')]},'children':[{'text':_0x527c09['to']('_createdAtFormatted')}]},{'tag':_0x4a52('0x22'),'attributes':{'class':['ck',_0x4a52('0x26')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4a52('0x23')]},'children':_0x1c3d31}]},this[_0x4a52('0x12')]],'on':{'click':_0x527c09['to'](_0x3293fd=>{_0x3293fd[_0x4a52('0x29')][_0x4a52('0x8')]('.ck-thread__remove-confirm')||this[_0x4a52('0xa')]&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}[_0x4a52('0x4')](){super['render']();const _0x54f002=this[_0x4a52('0x1c')]['fieldView']['element'];this['listenTo'](_0x54f002,_0x4a52('0x11'),()=>{this[_0x4a52('0x0')]('setName',{'id':this['id'],'name':_0x54f002[_0x4a52('0x15')]});});}[_0x4a52('0x5')](){this[_0x4a52('0x2')]=!0x0;}[_0x4a52('0x1d')](){this[_0x4a52('0x2')]=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this[_0x4a52('0x14')]=!0x1;}}
23
+ const _0x5701=['isSelected','ck-revision-history-sidebar__revision-authors','element','isHighlighted','uiLanguage','.ck-thread__remove-confirm','highlight','authors','ck-revision-history-sidebar__revision_highlighted','_revision','map','ck-revision-history-sidebar__revision','fire','createdAt','_createdAtFormatted','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','220','creator','filter','setTemplate','revisionActionsView','ck-revision-history-sidebar__revision-wrapper','select','div','isEnabled','isReady','isConfirm','revisionNameView','ck-reset','unhighlight','from','placeholder','fieldView','name','srcElement','render','isActionsDropdownOpen','ck-disabled','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision_selected','value','bind','listenTo','set'];(function(_0x516c9d,_0x570107){const _0x225ae0=function(_0x2e0f40){while(--_0x2e0f40){_0x516c9d['push'](_0x516c9d['shift']());}};_0x225ae0(++_0x570107);}(_0x5701,0x1ba));const _0x225a=function(_0x516c9d,_0x570107){_0x516c9d=_0x516c9d-0x0;let _0x225ae0=_0x5701[_0x516c9d];return _0x225ae0;};import{View as _0x2aa53c,createLabeledInputText as _0x50552e}from'ckeditor5/src/ui';import{ConfirmMixin as _0x431f6f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2fc6e9 from'./revisionnameview';import _0xb93460 from'./revisionauthorview';import{dateToPrettyFormat as _0x385156}from'./utils';import{createActionsDropdownView as _0xf46900}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x431f6f(_0x2aa53c){constructor(_0x11767f,_0x49e68a,_0x8c8ee){super(_0x11767f);const _0x510830=this['bindTemplate'],_0x40a4d6=function(_0x5f0670,_0x3ceb14){const _0x1083c5=Array[_0x225a('0x1c')](_0x3ceb14[_0x225a('0x5')])[_0x225a('0x10')](_0x55a415=>_0x55a415!=_0x3ceb14[_0x225a('0xf')]);return _0x3ceb14[_0x225a('0xf')]&&_0x1083c5['unshift'](_0x3ceb14[_0x225a('0xf')]),_0x1083c5[_0x225a('0x8')](_0x356628=>new _0xb93460(_0x5f0670,_0x356628,_0x356628==_0x3ceb14[_0x225a('0xf')]));}(_0x11767f,_0x49e68a);this['id']=_0x49e68a['id'],this[_0x225a('0x7')]=_0x49e68a,this[_0x225a('0x27')](_0x225a('0x1f'),_0x225a('0xb'))['to'](_0x49e68a),this[_0x225a('0x27')](_0x225a('0xc'))['to'](this,'createdAt',_0xb9d66=>_0xb9d66?_0x385156(_0x11767f[_0x225a('0x2')],_0xb9d66):void 0x0),this[_0x225a('0x29')](_0x225a('0x2a'),!0x1),this[_0x225a('0x29')](_0x225a('0x1'),!0x1),this[_0x225a('0x29')](_0x225a('0x22'),!0x1),this[_0x225a('0x29')](_0x225a('0x17'),!0x1),this[_0x225a('0x29')](_0x225a('0x16'),!0x1),this[_0x225a('0x19')]=new _0x2fc6e9(_0x11767f,_0x50552e),this[_0x225a('0x19')][_0x225a('0x1e')]['extendTemplate']({'attributes':{'maxlength':_0x225a('0xe')}}),this[_0x225a('0x19')]['fieldView'][_0x225a('0x27')](_0x225a('0x26'),_0x225a('0x1d'))['to'](this,_0x225a('0x1f'),_0x225a('0xc')),this[_0x225a('0x19')][_0x225a('0x27')](_0x225a('0x16'))['to'](this,_0x225a('0x2a'),this,_0x225a('0x16'),(_0x4ae83c,_0x51b2e4)=>_0x4ae83c&&_0x51b2e4),this[_0x225a('0x12')]=_0x8c8ee&&_0x8c8ee['length']?_0xf46900(this,_0x8c8ee):'',this[_0x225a('0x12')]&&this[_0x225a('0x12')][_0x225a('0x27')](_0x225a('0x16'))['to'](this),this[_0x225a('0x11')]({'tag':_0x225a('0x15'),'attributes':{'class':['ck',_0x225a('0x1a'),_0x225a('0x13'),_0x510830['if'](_0x225a('0x18'),_0x225a('0xd'))]},'children':[{'tag':_0x225a('0x15'),'attributes':{'class':['ck','ck-reset',_0x225a('0x9'),_0x510830['if'](_0x225a('0x16'),_0x225a('0x23'),_0x1adcd8=>!_0x1adcd8),_0x510830['if'](_0x225a('0x2a'),_0x225a('0x25')),_0x510830['if'](_0x225a('0x1'),_0x225a('0x6')),_0x510830['if'](_0x225a('0x22'),_0x225a('0x24'))]},'children':[this[_0x225a('0x19')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x510830['to']('_createdAtFormatted')}]},{'tag':_0x225a('0x15'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x225a('0x2b')]},'children':_0x40a4d6}]},this[_0x225a('0x12')]],'on':{'click':_0x510830['to'](_0x5a5227=>{_0x5a5227[_0x225a('0x20')]['closest'](_0x225a('0x3'))||this['isReady']&&this[_0x225a('0x16')]&&this[_0x225a('0xa')](_0x225a('0x14'),{'id':this['id']});})}}]});}[_0x225a('0x21')](){super['render']();const _0x2774ba=this['revisionNameView']['fieldView'][_0x225a('0x0')];this[_0x225a('0x28')](_0x2774ba,'change',()=>{this['fire']('setName',{'id':this['id'],'name':_0x2774ba['value']});});}['select'](){this[_0x225a('0x2a')]=!0x0;}['deselect'](){this[_0x225a('0x2a')]=!0x1;}[_0x225a('0x4')](){this['isHighlighted']=!0x0;}[_0x225a('0x1b')](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36b6=['setTemplate','button','_isCollapsed','span','false','ck-revision-history-sidebar__subrevision-collapser__inner','ck-hidden','toggle','isVisible','set','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser','true'];(function(_0xf0592c,_0x36b6d9){const _0xe56f30=function(_0xa3943){while(--_0xa3943){_0xf0592c['push'](_0xf0592c['shift']());}};_0xe56f30(++_0x36b6d9);}(_0x36b6,0xa3));const _0xe56f=function(_0xf0592c,_0x36b6d9){_0xf0592c=_0xf0592c-0x0;let _0xe56f30=_0x36b6[_0xf0592c];return _0xe56f30;};import{View as _0x4b6402}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4b6402{constructor(_0x206c09){super(_0x206c09);const _0x303a2a=this['bindTemplate'];this[_0xe56f('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xe56f('0x6')]({'tag':_0xe56f('0x9'),'attributes':{'class':['ck',_0xe56f('0x4'),_0x303a2a['if'](_0xe56f('0x1'),_0xe56f('0xc'),_0x38cb16=>!_0x38cb16),_0x303a2a['if']('_isCollapsed',_0xe56f('0x3'))],'role':_0xe56f('0x7'),'aria-pressed':_0x303a2a['to'](_0xe56f('0x8'),_0x582fdb=>_0x582fdb?_0xe56f('0xa'):_0xe56f('0x5'))},'children':[{'tag':_0xe56f('0x9'),'attributes':{'class':['ck',_0xe56f('0xb')]}}],'on':{'click':_0x303a2a['to']('click')}});}[_0xe56f('0x0')](){this[_0xe56f('0x8')]=!this['_isCollapsed'];}}
23
+ const _0x2cf2=['true','_isCollapsed','setTemplate','button','span','toggle','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed'];(function(_0x24919a,_0x2cf2e0){const _0x18be19=function(_0x237389){while(--_0x237389){_0x24919a['push'](_0x24919a['shift']());}};_0x18be19(++_0x2cf2e0);}(_0x2cf2,0xfd));const _0x18be=function(_0x24919a,_0x2cf2e0){_0x24919a=_0x24919a-0x0;let _0x18be19=_0x2cf2[_0x24919a];return _0x18be19;};import{View as _0x2e0078}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2e0078{constructor(_0x1a3274){super(_0x1a3274);const _0x5a98d2=this[_0x18be('0x5')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x18be('0x9')]({'tag':_0x18be('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x5a98d2['if'](_0x18be('0x3'),'ck-hidden',_0x1e9b3d=>!_0x1e9b3d),_0x5a98d2['if'](_0x18be('0x8'),_0x18be('0x6'))],'role':_0x18be('0x0'),'aria-pressed':_0x5a98d2['to']('_isCollapsed',_0x16b625=>_0x16b625?'false':_0x18be('0x7'))},'children':[{'tag':_0x18be('0x1'),'attributes':{'class':['ck',_0x18be('0x4')]}}],'on':{'click':_0x5a98d2['to']('click')}});}[_0x18be('0x2')](){this[_0x18be('0x8')]=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3117=['div','bind','_createdAtFormatted','uiLanguage','ck-reset','isSelected','fire','_parentRevisionId','createdAt','bindTemplate','select','deselect','ck-revision-history-sidebar__revision','setTemplate','creator'];(function(_0x5252ea,_0x311751){const _0x49c9c4=function(_0x256b21){while(--_0x256b21){_0x5252ea['push'](_0x5252ea['shift']());}};_0x49c9c4(++_0x311751);}(_0x3117,0x1be));const _0x49c9=function(_0x5252ea,_0x311751){_0x5252ea=_0x5252ea-0x0;let _0x49c9c4=_0x3117[_0x5252ea];return _0x49c9c4;};import{View as _0x2b7cdf}from'ckeditor5/src/ui';import _0x5620c9 from'./revisionauthorview';import{dateToPrettyFormat as _0x40142e}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2b7cdf{constructor(_0x33824e,_0x5c828a,_0x50d4fe){super(_0x33824e);const _0x625dfc=this[_0x49c9('0xd')];this['id']=_0x5c828a['id'],this[_0x49c9('0x5')](_0x49c9('0xc'))['to'](_0x5c828a),this['set'](_0x49c9('0x9'),!0x1),this[_0x49c9('0x5')](_0x49c9('0x6'))['to'](this,_0x49c9('0xc'),_0x38b7ab=>_0x38b7ab?_0x40142e(_0x33824e[_0x49c9('0x7')],_0x38b7ab):void 0x0),this[_0x49c9('0xb')]=_0x50d4fe,this[_0x49c9('0x2')]({'tag':_0x49c9('0x4'),'attributes':{'class':['ck',_0x49c9('0x8'),_0x49c9('0x1'),'ck-revision-history-sidebar__subrevision',_0x625dfc['if'](_0x49c9('0x9'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x625dfc['to'](_0x49c9('0x6'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x5620c9(_0x33824e,_0x5c828a[_0x49c9('0x3')],!0x0)]}],'on':{'click':_0x625dfc['to'](this['select']['bind'](this))}});}[_0x49c9('0xe')](){this[_0x49c9('0x9')]=!0x0,this[_0x49c9('0xa')](_0x49c9('0xe'),{'parentId':this['_parentRevisionId']});}[_0x49c9('0x0')](){this[_0x49c9('0x9')]=!0x1;}}
23
+ const _0x2531=['ck-revision-history-sidebar__subrevision','isSelected','_createdAtFormatted','div','deselect','ck-revision-history-sidebar__revision__date','bind','select','bindTemplate','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','ck-reset','uiLanguage','span','createdAt','set'];(function(_0x9e5ad2,_0x25318d){const _0x5af6e9=function(_0x3e8629){while(--_0x3e8629){_0x9e5ad2['push'](_0x9e5ad2['shift']());}};_0x5af6e9(++_0x25318d);}(_0x2531,0x8d));const _0x5af6=function(_0x9e5ad2,_0x25318d){_0x9e5ad2=_0x9e5ad2-0x0;let _0x5af6e9=_0x2531[_0x9e5ad2];return _0x5af6e9;};import{View as _0x4cbbd6}from'ckeditor5/src/ui';import _0x27c490 from'./revisionauthorview';import{dateToPrettyFormat as _0x281af7}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x4cbbd6{constructor(_0x47883f,_0x14262a,_0xb29cd){super(_0x47883f);const _0x5030c7=this[_0x5af6('0x3')];this['id']=_0x14262a['id'],this[_0x5af6('0x1')](_0x5af6('0xa'))['to'](_0x14262a),this[_0x5af6('0xb')](_0x5af6('0xd'),!0x1),this[_0x5af6('0x1')](_0x5af6('0xe'))['to'](this,_0x5af6('0xa'),_0x846903=>_0x846903?_0x281af7(_0x47883f[_0x5af6('0x8')],_0x846903):void 0x0),this['_parentRevisionId']=_0xb29cd,this['setTemplate']({'tag':_0x5af6('0xf'),'attributes':{'class':['ck',_0x5af6('0x7'),_0x5af6('0x4'),_0x5af6('0xc'),_0x5030c7['if']('isSelected',_0x5af6('0x6'))]},'children':[{'tag':_0x5af6('0x9'),'attributes':{'class':['ck',_0x5af6('0x0')]},'children':[{'text':_0x5030c7['to'](_0x5af6('0xe'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5af6('0x5')]},'children':[new _0x27c490(_0x47883f,_0x14262a['creator'],!0x0)]}],'on':{'click':_0x5030c7['to'](this[_0x5af6('0x2')][_0x5af6('0x1')](this))}});}['select'](){this[_0x5af6('0xd')]=!0x0,this['fire'](_0x5af6('0x2'),{'parentId':this['_parentRevisionId']});}[_0x5af6('0x10')](){this[_0x5af6('0xd')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x48de=['numeric','toLocaleTimeString','toLocaleDateString','long'];(function(_0x2cdef6,_0x48dee5){var _0x497513=function(_0x9d8eb0){while(--_0x9d8eb0){_0x2cdef6['push'](_0x2cdef6['shift']());}};_0x497513(++_0x48dee5);}(_0x48de,0x120));var _0x4975=function(_0x2cdef6,_0x48dee5){_0x2cdef6=_0x2cdef6-0x0;var _0x497513=_0x48de[_0x2cdef6];return _0x497513;};export function dateToPrettyFormat(_0x2c568f,_0x1c4780){return _0x1c4780[_0x4975('0x2')](_0x2c568f,{'month':_0x4975('0x3'),'day':_0x4975('0x0')})+',\x20'+_0x1c4780[_0x4975('0x1')](_0x2c568f,{'hour':_0x4975('0x0'),'minute':_0x4975('0x0')});}
23
+ var _0x1cbe=['toLocaleTimeString','numeric','long'];(function(_0x187bd9,_0x1cbe41){var _0x33c462=function(_0x19bce5){while(--_0x19bce5){_0x187bd9['push'](_0x187bd9['shift']());}};_0x33c462(++_0x1cbe41);}(_0x1cbe,0xca));var _0x33c4=function(_0x187bd9,_0x1cbe41){_0x187bd9=_0x187bd9-0x0;var _0x33c462=_0x1cbe[_0x187bd9];return _0x33c462;};export function dateToPrettyFormat(_0x15a02a,_0x3954ba){return _0x3954ba['toLocaleDateString'](_0x15a02a,{'month':_0x33c4('0x1'),'day':_0x33c4('0x0')})+',\x20'+_0x3954ba[_0x33c4('0x2')](_0x15a02a,{'hour':_0x33c4('0x0'),'minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fa6=['focusFirst','set','keystrokes','arrowleft','ck-revision-history-save-revision-form','Save','type','locale','reset','revisionNameInputView','revisionName','arrowright','_focusCycler','stopPropagation','cancelButtonView','label','cancel','execute','arrowup','render','_createButton','revisionNameInputValue','ck-button-cancel','saveButtonView','listenTo','add','trim','ck-button-save','element','focusTracker','arrowdown','delegate','Cancel','fieldView','_focusables','220','extendTemplate','value','submit','_createRevisionNameInput','focus','form'];(function(_0x37c434,_0x2fa631){const _0x5a28ea=function(_0x1cae31){while(--_0x1cae31){_0x37c434['push'](_0x37c434['shift']());}};_0x5a28ea(++_0x2fa631);}(_0x2fa6,0x14e));const _0x5a28=function(_0x37c434,_0x2fa631){_0x37c434=_0x37c434-0x0;let _0x5a28ea=_0x2fa6[_0x37c434];return _0x5a28ea;};import{icons as _0x52f283}from'ckeditor5/src/core';import{ButtonView as _0x1e3fef,FocusCycler as _0x543aad,LabeledFieldView as _0x2d96e3,View as _0x1e6ff5,ViewCollection as _0x348747,createLabeledInputText as _0x5a8223,injectCssTransitionDisabler as _0x35b114,submitHandler as _0x3ef2df}from'ckeditor5/src/ui';import{FocusTracker as _0x5225dc,KeystrokeHandler as _0x5181b5}from'ckeditor5/src/utils';import{getTranslation as _0x29f46b}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1e6ff5{constructor(_0x4d802d){super(_0x4d802d),this[_0x5a28('0x1f')]=new _0x5225dc(),this[_0x5a28('0x4')]=new _0x5181b5(),this[_0x5a28('0x3')]('revisionNameInputValue',''),this[_0x5a28('0xb')]=this['_createRevisionNameInput'](),this['saveButtonView']=this[_0x5a28('0x16')](_0x29f46b(_0x4d802d,_0x5a28('0x7')),_0x52f283['check'],_0x5a28('0x1d')),this[_0x5a28('0x19')][_0x5a28('0x8')]=_0x5a28('0x28'),this[_0x5a28('0x10')]=this[_0x5a28('0x16')](_0x29f46b(_0x4d802d,_0x5a28('0x22')),_0x52f283[_0x5a28('0x12')],_0x5a28('0x18'),_0x5a28('0x12')),this[_0x5a28('0x24')]=new _0x348747(),this[_0x5a28('0xe')]=new _0x543aad({'focusables':this[_0x5a28('0x24')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x5a28('0x4')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['setTemplate']({'tag':_0x5a28('0x1'),'attributes':{'class':['ck',_0x5a28('0x6'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x5a28('0xb')],this['saveButtonView'],this[_0x5a28('0x10')]]}),_0x35b114(this);}[_0x5a28('0x15')](){super[_0x5a28('0x15')](),_0x3ef2df({'view':this}),([this[_0x5a28('0xb')],this[_0x5a28('0x19')],this['cancelButtonView']]['forEach'](_0x378569=>{this[_0x5a28('0x24')][_0x5a28('0x1b')](_0x378569),this['focusTracker']['add'](_0x378569[_0x5a28('0x1e')]);}),this[_0x5a28('0x4')][_0x5a28('0x1a')](this[_0x5a28('0x1e')]));const _0x5a5570=_0x305562=>_0x305562[_0x5a28('0xf')]();this[_0x5a28('0x4')][_0x5a28('0x3')](_0x5a28('0xd'),_0x5a5570),this['keystrokes'][_0x5a28('0x3')](_0x5a28('0x5'),_0x5a5570),this['keystrokes']['set'](_0x5a28('0x14'),_0x5a5570),this[_0x5a28('0x4')][_0x5a28('0x3')](_0x5a28('0x20'),_0x5a5570);}[_0x5a28('0x0')](){this['_focusCycler'][_0x5a28('0x2')]();}get[_0x5a28('0xc')](){return this[_0x5a28('0xb')]['fieldView'][_0x5a28('0x1e')][_0x5a28('0x27')][_0x5a28('0x1c')]();}set['revisionName'](_0x43efb7){this['revisionNameInputView'][_0x5a28('0x23')]['element'][_0x5a28('0x27')]=_0x43efb7[_0x5a28('0x1c')]();}[_0x5a28('0xa')](){this['revisionNameInputView'][_0x5a28('0x23')][_0x5a28('0x1e')][_0x5a28('0x27')]='';}[_0x5a28('0x29')](){const _0x5199fe=new _0x2d96e3(this['locale'],_0x5a8223),_0x74d41e=_0x5199fe[_0x5a28('0x23')];return _0x74d41e[_0x5a28('0x26')]({'attributes':{'maxlength':_0x5a28('0x25')}}),_0x5199fe[_0x5a28('0x11')]=_0x29f46b(this[_0x5a28('0x9')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x74d41e['on']('input',()=>{this[_0x5a28('0x17')]=_0x74d41e[_0x5a28('0x1e')][_0x5a28('0x27')][_0x5a28('0x1c')]();}),_0x5199fe;}[_0x5a28('0x16')](_0x133e4a,_0x75be74,_0x53054e,_0x134144){const _0x28ea5e=new _0x1e3fef(this[_0x5a28('0x9')]);return _0x28ea5e[_0x5a28('0x3')]({'label':_0x133e4a,'icon':_0x75be74,'tooltip':!0x0}),_0x28ea5e[_0x5a28('0x26')]({'attributes':{'class':_0x53054e}}),_0x134144&&_0x28ea5e[_0x5a28('0x21')](_0x5a28('0x13'))['to'](this,_0x134144),_0x28ea5e;}}
23
+ const _0x208f=['label','setTemplate','focus','forEach','form','revisionNameInputView','listenTo','submit','Cancel','_createRevisionNameInput','_focusables','type','ck-button-save','element','ck-responsive-form','keystrokes','add','trim','cancelButtonView','saveButtonView','render','value','cancel','extendTemplate','locale','Name\x20of\x20the\x20revision\x20(optional)','tab','set','arrowup','stopPropagation','arrowdown','input','shift\x20+\x20tab','fieldView','delegate','revisionNameInputValue','arrowleft','_createButton','_focusCycler','focusTracker','ck-revision-history-save-revision-form','revisionName'];(function(_0x51de3f,_0x208fec){const _0x174e8a=function(_0x2aeb62){while(--_0x2aeb62){_0x51de3f['push'](_0x51de3f['shift']());}};_0x174e8a(++_0x208fec);}(_0x208f,0x79));const _0x174e=function(_0x51de3f,_0x208fec){_0x51de3f=_0x51de3f-0x0;let _0x174e8a=_0x208f[_0x51de3f];return _0x174e8a;};import{icons as _0x38302f}from'ckeditor5/src/core';import{ButtonView as _0x1b14a3,FocusCycler as _0x2d4cc2,LabeledFieldView as _0x2d0208,View as _0xba5c1d,ViewCollection as _0x2e69e0,createLabeledInputText as _0x576553,injectCssTransitionDisabler as _0x1feb33,submitHandler as _0xb7cfc7}from'ckeditor5/src/ui';import{FocusTracker as _0x535a17,KeystrokeHandler as _0x497dac}from'ckeditor5/src/utils';import{getTranslation as _0x33c1ae}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xba5c1d{constructor(_0x599483){super(_0x599483),this[_0x174e('0x2')]=new _0x535a17(),this[_0x174e('0x14')]=new _0x497dac(),this[_0x174e('0x20')]('revisionNameInputValue',''),this[_0x174e('0xa')]=this[_0x174e('0xe')](),this[_0x174e('0x18')]=this[_0x174e('0x0')](_0x33c1ae(_0x599483,'Save'),_0x38302f['check'],_0x174e('0x11')),this['saveButtonView'][_0x174e('0x10')]=_0x174e('0xc'),this['cancelButtonView']=this[_0x174e('0x0')](_0x33c1ae(_0x599483,_0x174e('0xd')),_0x38302f[_0x174e('0x1b')],'ck-button-cancel',_0x174e('0x1b')),this[_0x174e('0xf')]=new _0x2e69e0(),this[_0x174e('0x1')]=new _0x2d4cc2({'focusables':this[_0x174e('0xf')],'focusTracker':this[_0x174e('0x2')],'keystrokeHandler':this[_0x174e('0x14')],'actions':{'focusPrevious':_0x174e('0x25'),'focusNext':_0x174e('0x1f')}}),this[_0x174e('0x6')]({'tag':_0x174e('0x9'),'attributes':{'class':['ck',_0x174e('0x3'),_0x174e('0x13')],'tabindex':'-1'},'children':[this[_0x174e('0xa')],this[_0x174e('0x18')],this[_0x174e('0x17')]]}),_0x1feb33(this);}[_0x174e('0x19')](){super[_0x174e('0x19')](),_0xb7cfc7({'view':this}),([this[_0x174e('0xa')],this[_0x174e('0x18')],this[_0x174e('0x17')]][_0x174e('0x8')](_0x22d67c=>{this[_0x174e('0xf')][_0x174e('0x15')](_0x22d67c),this['focusTracker'][_0x174e('0x15')](_0x22d67c[_0x174e('0x12')]);}),this['keystrokes'][_0x174e('0xb')](this['element']));const _0x1bdf02=_0x52ae73=>_0x52ae73[_0x174e('0x22')]();this[_0x174e('0x14')][_0x174e('0x20')]('arrowright',_0x1bdf02),this['keystrokes'][_0x174e('0x20')](_0x174e('0x29'),_0x1bdf02),this['keystrokes'][_0x174e('0x20')](_0x174e('0x21'),_0x1bdf02),this[_0x174e('0x14')][_0x174e('0x20')](_0x174e('0x23'),_0x1bdf02);}[_0x174e('0x7')](){this['_focusCycler']['focusFirst']();}get[_0x174e('0x4')](){return this['revisionNameInputView'][_0x174e('0x26')][_0x174e('0x12')][_0x174e('0x1a')]['trim']();}set[_0x174e('0x4')](_0x269156){this[_0x174e('0xa')]['fieldView'][_0x174e('0x12')][_0x174e('0x1a')]=_0x269156[_0x174e('0x16')]();}['reset'](){this[_0x174e('0xa')][_0x174e('0x26')][_0x174e('0x12')][_0x174e('0x1a')]='';}[_0x174e('0xe')](){const _0x32be02=new _0x2d0208(this[_0x174e('0x1d')],_0x576553),_0x23fe42=_0x32be02[_0x174e('0x26')];return _0x23fe42['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x32be02[_0x174e('0x5')]=_0x33c1ae(this['locale'],_0x174e('0x1e')),_0x23fe42['on'](_0x174e('0x24'),()=>{this[_0x174e('0x28')]=_0x23fe42['element'][_0x174e('0x1a')][_0x174e('0x16')]();}),_0x32be02;}[_0x174e('0x0')](_0x8b02fd,_0x155f48,_0x28d20b,_0x5bb987){const _0xc696b0=new _0x1b14a3(this[_0x174e('0x1d')]);return _0xc696b0[_0x174e('0x20')]({'label':_0x8b02fd,'icon':_0x155f48,'tooltip':!0x0}),_0xc696b0[_0x174e('0x1c')]({'attributes':{'class':_0x28d20b}}),_0x5bb987&&_0xc696b0[_0x174e('0x27')]('execute')['to'](this,_0x5bb987),_0xc696b0;}}