@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230718.0 → 0.0.0-nightly-20230720.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 +8 -8
  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 _0x1e14=['hasClass','pairId','abs','requires','editor','domEvent','pluginName','insert','concat','document','change','getAttributes','_makeTape','startsWith','observeMarkers','domConverter','bind','ck-revision-history-root-add','markersStart','_markMismatchedRemovedTags','_activeViewTarget','vid_start','_removeMissingPairs','slice','diff','revision-end','schema','activeView','string','start','add','upcast','forward','_getViewForChange','done','ck-suggestion-preview-marker','editingDowncast','change:isReady','revision-start','numberOfChanges','attributes','_getChangeFromId','data-change-id','backward','offsetSize','change:isEnabled','mapViewToDom','return','refresh','keys','from','ck-editor__editable__overlay','addHighlight','markerName','ck-suggestion-marker-','newRevisionId','insertions','_getViewObj','createRevision','model','compare','revision-suggestion','forceDisabled','ck-suggestion-marker--active','loadRevisionData','getCustomProperty','then','change:activeChange','POSITIVE_INFINITY','set','startIndex','_revisions','isAttached','config','_fixObsoleteTags','removeMarker:revision','isEqual','enqueueChange','_makeModelFromViewString','item','test','plugins','execute','change:numberOfChanges','userId','top','length','removeMarker:revision-suggestion','for','_initInteractions','activeChange','_changeIdToChange','getChild','currentChangeNumber','resolve','nextSibling','setAttribute','parent','isBefore','toData','getIndex','diffData','_processTape','splice','isCollapsed','getClientRects','nodeAfter','adapter','showStack','mouseover','split','_data','consumable','find','comment','writer','data','dataToMarker','isLimit','changes','map','showNextChange','text','remove','detachRoot','next','_sortAndFilterDiffChanges','right','filter','isBlock','addMarker:revision-suggestion:insertion','all','range','highest','getAttribute','toViewRange','isRemoveSuggestion','delete','vid','high','first','markers','has','listenTo','indexOf','_makeModelFromTape','getRevisionRootsAttributes','getWalker','catch','selection','_removeUnsupportedChanges','hasAttribute','downcastDispatcher','getItems','rootName','getDomRoot','_markSuggestions','reconvertMarker','merge','name','_step','view','revision','marked','change:activeView','getRevision','_findChangeIdFromDomTarget','left','isIncorrect','insertion','markerToData','createUIElement','sort','viewItem','isAdded','forEach','pop','addClass','isRemoved','_markMarkers','RevisionsRepository','dataDowncast','elementStart','markersEnd','isObject','flat','previousPosition','isAfter','object','unbindElementFromMarkerName','revision-suggestion:','suggestion:','revision-comment:','distance','commands','level','bindElementToMarker','_setChanges','oldRevisionId','isEnabled','_cleanUp','_changeView','_appendChild','stop','restoreRevisionCallback','_cleanMarkers','clear','uiElement','createPositionFromPath','element:pre','endIndex','_removeRevisionMarkers','removeAttribute','ck-suggestion-marker','isNavigationMode','destroy','_getRevisionsRange','getRoot','_threeWayMerge','isAddSuggestion','createRange','mousedown','end','mapper','error','removeClass','toViewPosition','consume','shift','_getDiff','useFillerType','attachChange','getRevisionData','values','revisionHistoryAttachChange','ck-revision-history-root-','init','changeId','repository','isReady','_setConversion','_refreshStartEndIndex','RevisionViewer','type','isSuggestion','modelRange','revision:','elementToAttribute','span','element','authors','markerToHighlight','WidgetToolbarRepository','isInline','parse','updatePosition','affectsData','attribute:vid','_markInsertions','get','side','-new','showPreviousChange','unshift','vid_end','toModel','markerRange','children','_setDistance','isAtEnd','default','editing','revisionHistoryLabel','isOnRoot','_joinTapes','conversion','ck-suggestion-preview-marker-','index','attributesBefore','includes','addRevision','_balloon','addMarker:revision','processor','revision-viewer','deletion','addMarker:revision-suggestion:deletion','maxOffset','_update','push','ck-revision-history-root-remove','markerNameToElements','softBreak','nextPosition','enableReadOnlyMode','getRootNames','elementEnd','low','ck-revision-history-root--active'];(function(_0x450177,_0x1e1437){const _0x4430a0=function(_0x5a951f){while(--_0x5a951f){_0x450177['push'](_0x450177['shift']());}};_0x4430a0(++_0x1e1437);}(_0x1e14,0x186));const _0x4430=function(_0x450177,_0x1e1437){_0x450177=_0x450177-0x0;let _0x4430a0=_0x1e14[_0x450177];return _0x4430a0;};import{Plugin as _0x343734,Command as _0x45217e}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x33c9ea}from'ckeditor5/src/utils';import{ContextualBalloon as _0x147a2c}from'ckeditor5/src/ui';import{DocumentFragment as _0x2b47a3,Element as _0x3da479,Text as _0x2aa4fe,ViewDocumentFragment as _0x43740b,ViewText as _0xa76432,ViewElement as _0xfb8679,ViewContainerElement as _0x19f270,ViewAttributeElement as _0x198ef9,ViewEmptyElement as _0x2fc497,ViewRawElement as _0x4f50c1,ViewUIElement as _0x56bac3}from'ckeditor5/src/engine';import{Users as _0x2094cd,getMarkerDomElement as _0x1f1c6e}from'ckeditor5-collaboration/src/collaboration-core';import _0x176f54 from'./ui/revisionviewer/changedetailsview';import _0x197363 from'./revisionsrepository';import _0x14638f from'./changeitem';import{default as _0x5bc38a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3dbf2e}from'lodash-es';const tt={'c':_0x19f270,'a':_0x198ef9,'e':_0x2fc497,'r':_0x4f50c1,'u':_0x56bac3};export default class d extends _0x343734{static get[_0x4430('0xd6')](){return _0x4430('0x97');}static get[_0x4430('0xd3')](){return[_0x2094cd,_0x147a2c,_0x197363];}constructor(_0x16b54e){super(_0x16b54e),this[_0x4430('0x93')]=this['editor'][_0x4430('0x121')][_0x4430('0xa8')](_0x4430('0x59')),this[_0x4430('0x115')](_0x4430('0x12a'),null),this[_0x4430('0x115')](_0x4430('0xeb'),null),this[_0x4430('0xe4')]=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set'](_0x4430('0x6c'),!0x0),this['on'](_0x4430('0xfd'),(_0x446194,_0x261580,_0x16e853)=>{this['activeChange']=null,this[_0x4430('0xeb')]=null,this['editor']['editing'][_0x4430('0x46')][_0x4430('0xda')](_0x2be663=>{for(const _0xa9bb9d of this[_0x4430('0xd4')][_0x4430('0xb4')]['view'][_0x4430('0xd9')]['roots'])_0x16e853?_0x2be663['removeClass']('ck-editor__editable__overlay',_0xa9bb9d):_0x2be663[_0x4430('0x56')](_0x4430('0x103'),_0xa9bb9d);});}),this[_0x4430('0xe0')](_0x4430('0x7b'))['to'](this,'activeChange',_0x21d9b8=>null!==_0x21d9b8),this[_0x4430('0xe0')](_0x4430('0x2'))['to'](this,'isReady',this,_0x4430('0xe8'),this,'activeChange',(_0x300278,_0x5da8ee,_0xe60115)=>_0x300278&&_0xe60115?_0x5da8ee[_0x4430('0x1c')][_0x4430('0x9')](_0xe60115):0x0),this['bind'](_0x4430('0xf7'))['to'](this,_0x4430('0x94'),this,_0x4430('0xe8'),(_0x118261,_0x87c647)=>_0x118261?_0x87c647[_0x4430('0x1c')][_0x4430('0x126')]:0x0),this[_0x4430('0x6e')]=null,this[_0x4430('0x0')]=new Map(),this[_0x4430('0x10')]=null,this[_0x4430('0xbe')]=this[_0x4430('0xd4')]['plugins'][_0x4430('0xa8')](_0x147a2c);}[_0x4430('0x91')](){const _0x3997af=this['editor'],_0x1202a7=new ShowChangeCommand(_0x3997af,{'direction':_0x4430('0xfb')}),_0x44076a=new ShowChangeCommand(_0x3997af,{'direction':_0x4430('0xf0')});(_0x3997af[_0x4430('0x67')][_0x4430('0xee')](_0x4430('0xab'),_0x1202a7),_0x3997af[_0x4430('0x67')][_0x4430('0xee')](_0x4430('0x1e'),_0x44076a),_0x3997af[_0x4430('0x67')][_0x4430('0xee')]('restoreRevision',new RestoreRevisionCommand(_0x3997af)),this['on'](_0x4430('0x123'),()=>{_0x1202a7['refresh'](),_0x44076a[_0x4430('0x100')]();}),this[_0x4430('0x95')](),this[_0x4430('0x129')](),_0x3997af[_0x4430('0xcb')](_0x4430('0xc1')),_0x3997af['plugins']['has'](_0x4430('0xa1')))&&_0x3997af['plugins']['get']('WidgetToolbarRepository')[_0x4430('0x10e')](_0x4430('0xc1'));}async[_0x4430('0x8d')](_0x2d4769){await this[_0x4430('0x110')](_0x2d4769);const _0x3c49f9={};for(const _0x3809b6 in _0x2d4769[_0x4430('0xa')]){if(_0x2d4769['diffData'][_0x3809b6][_0x4430('0x8c')]&&!_0x2d4769[_0x4430('0xa')][_0x3809b6][_0x4430('0x8c')][_0x4430('0x118')])continue;const _0xa4120e=this[_0x4430('0x78')](JSON[_0x4430('0xa3')](_0x2d4769[_0x4430('0xa')][_0x3809b6]['insertions'])),_0xa28a67=this[_0x4430('0xd4')]['editing']['view'][_0x4430('0xd9')],_0x5e4b94=new _0x43740b(_0xa28a67,_0xa4120e['map'](_0x134a12=>this[_0x4430('0x109')](_0x134a12)));this[_0x4430('0xd4')][_0x4430('0x19')][_0x4430('0xc0')][_0x4430('0x8b')](_0x4430('0x48')),_0x3c49f9[_0x3809b6]=this['editor'][_0x4430('0x19')][_0x4430('0xc0')][_0x4430('0x8')](_0x5e4b94),this[_0x4430('0xd4')][_0x4430('0x19')][_0x4430('0xc0')][_0x4430('0x8b')](_0x4430('0xb3'));}return _0x3c49f9;}async[_0x4430('0x37')](_0x473765){await this[_0x4430('0x110')](_0x473765);const _0x5bf0ce={};for(const _0x3fe6fc in _0x473765[_0x4430('0xa')])_0x473765[_0x4430('0xa')][_0x3fe6fc]['attachChange']&&!_0x473765['diffData'][_0x3fe6fc][_0x4430('0x8c')]['isAttached']||(_0x5bf0ce[_0x3fe6fc]=_0x473765[_0x4430('0xa')][_0x3fe6fc]['attributesAfter']||{});return _0x5bf0ce;}[_0x4430('0x78')](_0x5a93ec){return(_0x5a93ec=_0x5a93ec[_0x4430('0x25')](_0x2ff462=>!_0x2ff462['name']||_0x4430('0xf6')!==_0x2ff462[_0x4430('0x44')]&&_0x4430('0xe9')!==_0x2ff462[_0x4430('0x44')]))[_0x4430('0x54')](_0x4bf7c1=>{'string'!=typeof _0x4bf7c1&&(_0x4bf7c1['children']=this[_0x4430('0x78')](_0x4bf7c1[_0x4430('0xb0')]),_0x4bf7c1['attributes']=_0x4bf7c1['attributes']['filter'](_0x15757c=>!_0x15757c[0x0]['startsWith']('data-revision-')));}),_0x5a93ec;}async[_0x4430('0x10c')](_0x520b5c,_0x51614f,_0x3ba58d=!0x1){if(!this[_0x4430('0x6c')])return;const _0xfca6f=this['diff'],_0x3b46ff=this['repository'],_0x11e11a='string'==typeof _0x520b5c?_0x3b46ff['getRevision'](_0x520b5c):_0x520b5c,_0x5508b9=_0x4430('0xec')==typeof _0x51614f?_0x3b46ff[_0x4430('0x4a')](_0x51614f):_0x51614f,_0x247847=_0x11e11a['id'],_0x4585e3=_0x5508b9?_0x5508b9['id']:null;if(!_0x3ba58d&&this['diff']&&this[_0x4430('0xe8')][_0x4430('0x107')]===_0x247847&&this[_0x4430('0xe8')][_0x4430('0x6b')]===_0x4585e3)return Promise[_0x4430('0x3')]();this['isReady']=!0x1,this['activeView']=null,this[_0x4430('0x12a')]=null,this[_0x4430('0xe8')]=new _0x5bc38a(_0x247847,_0x4585e3);const _0x1c9a8f=this[_0x4430('0x7d')](_0x11e11a,_0x5508b9,!0x0)[_0x4430('0x1d')](_0x5c8911=>this[_0x4430('0x110')](_0x5c8911));return _0x1c9a8f[_0x4430('0xc6')](new Promise(_0x2b311c=>{setTimeout(_0x2b311c,0x14);})),Promise[_0x4430('0x28')](_0x1c9a8f)[_0x4430('0x112')](()=>{if(!this[_0x4430('0x6c')])return;this['_cleanUp']();const _0x2b0183=this[_0x4430('0x8a')](_0x247847,_0x4585e3);for(const _0x51adf6 of _0x2b0183['changes'])this[_0x4430('0x0')][_0x4430('0x115')](_0x51adf6['id'],_0x51adf6);this[_0x4430('0xd4')][_0x4430('0x10b')][_0x4430('0x11d')]({'isUndoable':!0x1},_0x241719=>{for(const _0x52c080 of this['editor'][_0x4430('0x10b')][_0x4430('0xd9')][_0x4430('0xcc')]())_0x241719[_0x4430('0x21')](_0x52c080);for(const _0x3e3ef9 of Object[_0x4430('0x101')](_0x2b0183['model'])){const _0x35fa37=_0x241719['addRoot'](_0x3e3ef9);for(const _0x5aeb9e of Object['keys'](_0x2b0183[_0x4430('0xf8')][_0x3e3ef9]))_0x241719[_0x4430('0x5')](_0x5aeb9e,_0x2b0183['attributes'][_0x3e3ef9][_0x5aeb9e],_0x35fa37);_0x241719[_0x4430('0xd7')](_0x2b0183[_0x4430('0x10b')][_0x3e3ef9],_0x35fa37,0x0);}}),this[_0x4430('0xe8')][_0x4430('0x6a')](this[_0x4430('0x23')](_0x2b0183['changes'])),this[_0x4430('0x94')]=!0x0;})[_0x4430('0x39')](_0x43f8b5=>{console[_0x4430('0x85')](_0x43f8b5),this[_0x4430('0x6d')](),_0xfca6f&&(this[_0x4430('0xe8')]=_0xfca6f),this[_0x4430('0x94')]=!0x0;});}['addRevisionData'](_0x11ae4b,_0x1a70fc){const _0x53db42=this[_0x4430('0x93')][_0x4430('0x10a')](_0x11ae4b);return _0x53db42['on'](_0x4430('0xc5'),(_0x38b838,_0x1b608f,_0x2c0d78)=>_0x1a70fc(_0x1b608f,_0x2c0d78,_0x53db42)),this[_0x4430('0x93')][_0x4430('0xbd')](_0x53db42),_0x53db42;}[_0x4430('0x110')](_0x225997){if(!_0x225997||_0x225997[_0x4430('0xa')])return Promise[_0x4430('0x3')]();{const _0xff8883=this['editor']['config'][_0x4430('0xa8')]('collaboration.channelId');return this[_0x4430('0x10')][_0x4430('0x4a')]({'channelId':_0xff8883,'revisionId':_0x225997['id']})[_0x4430('0x112')](_0xc98904=>{_0x225997[_0x4430('0xc5')]({'diffData':_0xc98904[_0x4430('0xa')]},!0x0);});}}[_0x4430('0x6d')](){this[_0x4430('0x12a')]=null,this[_0x4430('0x72')](),this[_0x4430('0x6e')]&&this[_0x4430('0x6e')]['destroy'](),this['_changeView']=null,this['_changeIdToChange'][_0x4430('0x73')](),this[_0x4430('0xd4')][_0x4430('0x10b')][_0x4430('0x11d')]({'isUndoable':!0x1},_0x40c18e=>{for(const _0x719dc6 of this['editor'][_0x4430('0x10b')]['document']['getRootNames']())_0x40c18e[_0x4430('0x21')](_0x719dc6);});}['_sortAndFilterDiffChanges'](_0x4a0406){const _0x3b9d1c=[],_0x47f50b=new Map();for(const _0x2760cc of this[_0x4430('0xd4')][_0x4430('0x10b')][_0x4430('0xd9')]['getRootNames']()){const _0x5a989b=this['editor']['editing'][_0x4430('0x46')][_0x4430('0x40')](_0x2760cc);if(!_0x5a989b)continue;const _0x40058f=_0x5a989b[_0x4430('0xe')]()[_0x4430('0x11f')](0x0);_0x40058f&&(_0x3b9d1c[_0x4430('0xc6')](_0x2760cc),_0x47f50b[_0x4430('0x115')](_0x2760cc,_0x40058f));}return _0x3b9d1c[_0x4430('0x51')]((_0x537831,_0x4c020f)=>{const _0x3735c6=_0x47f50b['get'](_0x537831),_0x50c446=_0x47f50b[_0x4430('0xa8')](_0x4c020f);return _0x3735c6['y']-_0x50c446['y']||_0x3735c6['x']-_0x50c446['x'];}),(_0x4a0406=_0x4a0406['filter'](_0x560a0b=>_0x3b9d1c[_0x4430('0xbc')](_0x560a0b[_0x4430('0x3f')])))[_0x4430('0x51')]((_0x4f0e08,_0x33cc4a)=>_0x3b9d1c[_0x4430('0x35')](_0x4f0e08[_0x4430('0x3f')])-_0x3b9d1c[_0x4430('0x35')](_0x33cc4a[_0x4430('0x3f')])),_0x4a0406;}[_0x4430('0xdc')](_0x5fe5c3){const _0x5d0251=Array[_0x4430('0x102')](_0x5fe5c3['markers'])['filter'](([_0x51241b,_0x2ad8f5])=>_0x51241b[_0x4430('0xdd')](_0x4430('0x9b'))&&!_0x2ad8f5[_0x4430('0xd')]),_0x22d916=Array['from'](this[_0x4430('0xd4')][_0x4430('0x10b')]['createRangeIn'](_0x5fe5c3)[_0x4430('0x38')]({'singleCharacters':!0x0}));if(0x0!=_0x5d0251[_0x4430('0x126')])for(const _0x1a63e4 of _0x22d916){const [_0x5d42f6,_0x466c79]=_0x5d0251[0x0],[,_0x2a38dd,_0x5585ba]=_0x5d42f6[_0x4430('0x13')](':');if(_0x466c79[_0x4430('0x83')][_0x4430('0x11c')](_0x1a63e4[_0x4430('0xca')])&&_0x5d0251[_0x4430('0x89')](),(_0x1a63e4['previousPosition'][_0x4430('0x11c')](_0x466c79[_0x4430('0xed')])||_0x1a63e4[_0x4430('0x5f')][_0x4430('0x60')](_0x466c79[_0x4430('0xed')]))&&('insertion'==_0x2a38dd?_0x1a63e4[_0x4430('0x53')]={'userId':_0x5585ba}:_0x4430('0xc2')==_0x2a38dd&&(_0x1a63e4[_0x4430('0x57')]={'userId':_0x5585ba})),0x0==_0x5d0251[_0x4430('0x126')])break;}return _0x22d916;}[_0x4430('0x96')](_0x3c665e){const _0xf14059=new Map();for(let _0x553d3b=0x0;_0x553d3b<_0x3c665e['length'];_0x553d3b++)_0x4430('0x1f')===_0x3c665e[_0x553d3b][_0x4430('0x98')]?(_0x3c665e[_0x553d3b][_0x4430('0x11f')]['startIndex']=_0x553d3b,_0x3c665e[_0x553d3b][_0x4430('0x11f')][_0x4430('0x77')]=_0x553d3b):('elementStart'===_0x3c665e[_0x553d3b]['type']?_0x3c665e[_0x553d3b][_0x4430('0x11f')][_0x4430('0x116')]=_0x553d3b:_0x4430('0xcd')===_0x3c665e[_0x553d3b][_0x4430('0x98')]&&(_0x3c665e[_0x553d3b][_0x4430('0x11f')][_0x4430('0x77')]=_0x553d3b),_0xf14059['set'](_0x3c665e[_0x553d3b]['id'],_0x553d3b));for(const _0x10dd55 of _0xf14059[_0x4430('0x8e')]())_0x4430('0x5b')===_0x3c665e[_0x10dd55]['type']?_0x3c665e[_0x10dd55]['item'][_0x4430('0x77')]=_0xf14059['get'](_0x3c665e[_0x10dd55][_0x4430('0xd1')]):_0x4430('0xcd')===_0x3c665e[_0x10dd55]['type']&&(_0x3c665e[_0x10dd55][_0x4430('0x11f')]['startIndex']=_0xf14059[_0x4430('0xa8')](_0x3c665e[_0x10dd55][_0x4430('0xd1')]));}[_0x4430('0xb')](_0x369d0f){for(let _0x53ed16=0x0;_0x53ed16<_0x369d0f['length'];_0x53ed16++){if(_0x4430('0x5b')===_0x369d0f[_0x53ed16][_0x4430('0x98')])_0x369d0f[_0x53ed16][_0x4430('0x11f')][_0x4430('0x116')]=_0x53ed16;else{if(_0x4430('0xcd')===_0x369d0f[_0x53ed16]['type']){_0x369d0f[_0x53ed16][_0x4430('0x11f')][_0x4430('0x77')]=_0x53ed16;const _0x3b1d61=_0x369d0f[_0x53ed16][_0x4430('0x11f')]['startIndex'];_0x369d0f[_0x3b1d61][_0x4430('0xd1')]=_0x369d0f[_0x53ed16]['id'],_0x369d0f[_0x53ed16][_0x4430('0xd1')]=_0x369d0f[_0x3b1d61]['id'];}else _0x369d0f[_0x53ed16]['item'][_0x4430('0x116')]=_0x53ed16,_0x369d0f[_0x53ed16][_0x4430('0x11f')]['endIndex']=_0x53ed16,_0x369d0f[_0x53ed16][_0x4430('0xd1')]=null;}_0x369d0f[_0x53ed16][_0x4430('0xe2')]||(_0x369d0f[_0x53ed16][_0x4430('0xe2')]=[],_0x369d0f[_0x53ed16][_0x4430('0x5c')]=[]);}}[_0x4430('0xa7')](_0x4e00af,_0x5a6c99){const _0x3fea54=_0x4e00af[_0x4430('0x25')](_0x8b02ee=>!_0x8b02ee[_0x4430('0x53')]);for(let _0x536f0c=0x0;_0x536f0c<_0x5a6c99[_0x4430('0x126')];_0x536f0c++)_0x5a6c99[_0x536f0c]['isAdded']&&(_0x3fea54[_0x536f0c]['isAdded']=_0x5a6c99[_0x536f0c][_0x4430('0x53')]);}['_makeModelFromViewString'](_0x14d2b8){const _0x30008e=JSON[_0x4430('0xa3')](_0x14d2b8),_0x603128=this['editor'][_0x4430('0xb4')]['view']['document'],_0x48f422=new _0x43740b(_0x603128,_0x30008e['map'](_0x4067da=>this[_0x4430('0x109')](_0x4067da)));return this['editor'][_0x4430('0x19')][_0x4430('0xae')](_0x48f422);}['_getViewObj'](_0x47d131){const _0x5b1b43=this[_0x4430('0xd4')]['editing'][_0x4430('0x46')][_0x4430('0xd9')];if(_0x4430('0xec')==typeof _0x47d131)return new _0xa76432(_0x5b1b43,_0x47d131);{const _0x38b625=_0x47d131[_0x4430('0xb0')][_0x4430('0x1d')](_0x1e8fb4=>this[_0x4430('0x109')](_0x1e8fb4));return new(tt[_0x47d131[(_0x4430('0x98'))]]||_0xfb8679)(_0x5b1b43,_0x47d131[_0x4430('0x44')],_0x47d131[_0x4430('0xf8')],_0x38b625);}}[_0x4430('0x8a')](_0x1180d6,_0x1621db=null){const _0x493dcb=this[_0x4430('0x93')][_0x4430('0x4a')](_0x1180d6),_0x12a054=_0x1621db?this[_0x4430('0x93')][_0x4430('0x4a')](_0x1621db):null,_0x11576d=this['_getRevisionsRange'](_0x493dcb,_0x12a054),_0x371d58=_0x11576d[_0x11576d[_0x4430('0x126')]-0x1],_0x4dd6dc=new Map(),_0x55daaf={'model':{},'attributes':{},'changes':[]},_0x500714=new Set(),_0x574cd6=new Map();for(let _0x42ef5e=_0x11576d[_0x4430('0x126')]-0x1;_0x42ef5e>=0x0;_0x42ef5e--){const _0x1ad273=_0x11576d[_0x42ef5e];for(const _0x80d406 of Object[_0x4430('0x101')](_0x1ad273[_0x4430('0xa')]))if(_0x1ad273['diffData'][_0x80d406][_0x4430('0x8c')]){const _0x3677be=_0x1ad273[_0x4430('0xa')][_0x80d406][_0x4430('0x8c')];_0x3677be[_0x4430('0x118')]?(_0x500714[_0x4430('0xee')](_0x80d406),_0x574cd6['has'](_0x80d406)&&_0x574cd6[_0x4430('0xa8')](_0x80d406)[_0x4430('0x124')]==_0x3677be['userId']?_0x574cd6[_0x4430('0x2e')](_0x80d406):_0x574cd6[_0x4430('0x115')](_0x80d406,_0x3677be)):_0x574cd6['has'](_0x80d406)?(_0x500714[_0x4430('0x2e')](_0x80d406),_0x574cd6[_0x4430('0x2e')](_0x80d406)):(_0x500714[_0x4430('0xee')](_0x80d406),_0x574cd6[_0x4430('0x115')](_0x80d406,_0x3677be));}else _0x500714[_0x4430('0xee')](_0x80d406);}for(const _0x5d8bd3 of _0x500714){const _0x58ed1f=_0x574cd6['has'](_0x5d8bd3)&&!_0x574cd6['get'](_0x5d8bd3)['isAttached'];let _0x53eb30=_0x58ed1f?_0x11576d[_0x4430('0x126')]-0x1:0x0;const _0x1ed9ee=_0x58ed1f?-0x1:0x1;for(;_0x11576d[_0x53eb30];){const _0x58fbe0=_0x11576d[_0x53eb30];if(_0x58fbe0['diffData'][_0x5d8bd3]){const _0x1c8d67=_0x58ed1f?_0x58fbe0[_0x4430('0xa')][_0x5d8bd3][_0x4430('0xbb')]:_0x58fbe0[_0x4430('0xa')][_0x5d8bd3]['attributesAfter'];_0x55daaf[_0x4430('0xf8')][_0x5d8bd3]=_0x1c8d67?_0x3dbf2e(_0x1c8d67):{};break;}_0x53eb30+=_0x1ed9ee;}}for(const _0x2dc789 of _0x11576d){_0x2dc789[_0x4430('0x10b')]={};for(const _0x260c42 of _0x2dc789[_0x4430('0x9f')])_0x4dd6dc['set'](_0x260c42['id'],_0x260c42);for(const _0x1ae09b of _0x500714){const _0x5b2d76=_0x2dc789[_0x4430('0xa')][_0x1ae09b]?_0x2dc789[_0x4430('0xa')][_0x1ae09b][_0x4430('0x108')]:'[]',_0x2a06a4=_0x2dc789['diffData'][_0x1ae09b]?_0x2dc789[_0x4430('0xa')][_0x1ae09b]['deletions']:'[]';_0x2dc789['model'][_0x1ae09b]={'insertions':this[_0x4430('0x11e')](_0x5b2d76),'deletions':this[_0x4430('0x11e')](_0x2a06a4)};}}for(const _0xfad4e3 of _0x500714){let _0x21b1cb=null,_0x122a67=0x0;const _0x57c961=new Map(Array[_0x4430('0x102')](_0x493dcb[_0x4430('0x10b')][_0xfad4e3][_0x4430('0x108')][_0x4430('0x32')])[_0x4430('0x25')](([_0x14f3c5])=>!_0x14f3c5[_0x4430('0xdd')]('revision:')));let _0x526bd3=0x0;for(const _0x34bf80 of _0x11576d){const _0x1c3b48=this[_0x4430('0xdc')](_0x34bf80[_0x4430('0x10b')][_0xfad4e3][_0x4430('0x108')]);_0x34bf80==_0x493dcb?(_0x21b1cb=_0x1c3b48,_0x122a67=_0x21b1cb[_0x4430('0x126')],_0x21b1cb['forEach'](_0x17f3fb=>{_0x17f3fb['id']=_0x526bd3++;}),this[_0x4430('0xb')](_0x21b1cb)):this[_0x4430('0xa7')](_0x21b1cb,_0x1c3b48);const _0x150c09=_0x21b1cb[_0x4430('0x25')](_0x5defea=>!_0x5defea[_0x4430('0x53')])[_0x4430('0x1d')](_0x181ca1=>_0x181ca1['id']);let _0x1ddfff=0x0;const _0x5a5548=this[_0x4430('0xdc')](_0x34bf80[_0x4430('0x10b')][_0xfad4e3]['deletions']);_0x5a5548['forEach'](_0x7710f9=>{_0x7710f9['isRemoved']?_0x7710f9['id']=_0x122a67++:_0x7710f9['id']=_0x150c09[_0x1ddfff++];}),this[_0x4430('0xb')](_0x5a5548),this[_0x4430('0xb1')](_0x21b1cb,_0x4430('0x53')),this[_0x4430('0xb1')](_0x5a5548,'isRemoved'),_0x34bf80==_0x493dcb&&this[_0x4430('0x58')](_0x21b1cb,_0x57c961),_0x21b1cb=this['_joinTapes'](_0x21b1cb,_0x5a5548),this[_0x4430('0x96')](_0x21b1cb),this[_0x4430('0xb1')](_0x21b1cb,_0x4430('0x57'));}_0x21b1cb=_0x21b1cb[_0x4430('0x25')](_0x13f9ab=>!(_0x13f9ab['isAdded']&&_0x13f9ab['isRemoved']));const _0x24b116=new Map(_0x371d58[_0x4430('0x10b')][_0xfad4e3]['deletions'][_0x4430('0x32')]),_0xb6ab44=new Set(_0x57c961[_0x4430('0x101')]());for(const _0x2bd938 of _0x24b116[_0x4430('0x101')]())_0xb6ab44[_0x4430('0x2e')](_0x2bd938);this['_markSuggestions'](_0x21b1cb,_0xb6ab44),this[_0x4430('0x11a')](_0x21b1cb),_0x21b1cb=this[_0x4430('0xe6')](_0x21b1cb),_0x21b1cb=this['_markMismatchedRemovedTags'](_0x21b1cb),_0x21b1cb=this['_removeUnsupportedChanges'](_0x21b1cb);const {root:_0x1e3253,changes:_0x1f9c07}=this['_makeModelFromTape'](_0x21b1cb,_0x4dd6dc,_0xfad4e3);_0x55daaf[_0x4430('0x10b')][_0xfad4e3]=_0x1e3253;const _0x4dac34=_0x574cd6[_0x4430('0xa8')](_0xfad4e3);if(_0x4dac34){const _0x551a81=_0x4dd6dc['get'](_0x4dac34[_0x4430('0x124')]),_0x924dab=new _0x14638f({'author':_0x551a81,'type':_0x4dac34[_0x4430('0x118')]?_0x4430('0xee'):_0x4430('0x20'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xfad4e3});_0x1f9c07['unshift'](_0x924dab),_0x55daaf[_0x4430('0xf8')][_0xfad4e3][_0x4430('0x8f')]=_0x924dab['id'];}_0x55daaf['changes']=_0x55daaf['changes'][_0x4430('0xd8')](_0x1f9c07);}return _0x55daaf;}[_0x4430('0x58')](_0x1a375e,_0xb10ec0){for(let _0x35ba1b=0x0;_0x35ba1b<_0x1a375e[_0x4430('0x126')];_0x35ba1b++)for(const [_0x3514dc,_0x4c9600]of _0xb10ec0)_0x4c9600[_0x4430('0xed')]['isEqual'](_0x1a375e[_0x35ba1b][_0x4430('0x5f')])&&_0x1a375e[_0x35ba1b][_0x4430('0xe2')][_0x4430('0xc6')](_0x3514dc),_0x4c9600[_0x4430('0x83')][_0x4430('0x11c')](_0x1a375e[_0x35ba1b][_0x4430('0xca')])&&_0x1a375e[_0x35ba1b][_0x4430('0x5c')][_0x4430('0xc6')](_0x3514dc);}[_0x4430('0xb7')](_0x2ee4bc,_0x68eb2){let _0x3e60ba=[],_0x329450=0x0,_0x262cb8=0x0;for(;_0x329450<_0x2ee4bc[_0x4430('0x126')]||_0x262cb8<_0x68eb2[_0x4430('0x126')];){const _0x5160fe=_0x2ee4bc[_0x329450]||{},_0x545780=_0x68eb2[_0x262cb8]||{};if(_0x5160fe['id']==_0x545780['id'])_0x329450++,_0x262cb8++,_0x3e60ba[_0x4430('0xc6')](_0x5160fe);else{if(_0x545780[_0x4430('0x57')]&&_0x5160fe[_0x4430('0x53')]){const {commonTape:_0x3e94db,iEnd:_0x4a75d1,jEnd:_0x5ee7c1}=this[_0x4430('0x7f')](_0x2ee4bc,_0x329450,_0x68eb2,_0x262cb8);_0x3e60ba=_0x3e60ba['concat'](_0x3e94db),_0x329450=_0x4a75d1,_0x262cb8=_0x5ee7c1;}else _0x545780[_0x4430('0x57')]?(_0x262cb8++,_0x3e60ba['push'](_0x545780)):(_0x329450++,_0x3e60ba[_0x4430('0xc6')](_0x5160fe));}}return _0x3e60ba;}[_0x4430('0x41')](_0x968d9,_0x4b0b90){const _0xf9dffb=[];for(let _0x487e85=0x0;_0x487e85<_0x968d9['length'];_0x487e85++){for(let _0x385c5a=0x0;_0x385c5a<_0x968d9[_0x487e85][_0x4430('0xe2')][_0x4430('0x126')];_0x385c5a++){const _0x4de9d5=_0x968d9[_0x487e85]['markersStart'][_0x385c5a];if(!_0x4b0b90['has'](_0x4de9d5))continue;const {group:_0x4fb91b,type:_0x1f4128,authorId:_0x583ff0}=_0x14acfd(_0x4de9d5);_0x4430('0x10d')!=_0x4fb91b||_0x4430('0x4e')!=_0x1f4128&&_0x4430('0xc2')!=_0x1f4128||(_0xf9dffb[_0x4430('0xac')]({'type':_0x1f4128,'name':_0x4de9d5,'userId':_0x583ff0}),_0x968d9[_0x487e85][_0x4430('0xe2')][_0x4430('0xc')](_0x385c5a,0x1),_0x385c5a--);}_0x49f4d5(_0x968d9[_0x487e85]);for(let _0x527910=0x0;_0x527910<_0x968d9[_0x487e85][_0x4430('0x5c')][_0x4430('0x126')];_0x527910++){const _0x3bc29f=_0x968d9[_0x487e85][_0x4430('0x5c')][_0x527910];if(!_0x4b0b90[_0x4430('0x33')](_0x3bc29f))continue;const {group:_0x2164f9,type:_0x28abb9}=_0x14acfd(_0x3bc29f);if(_0x4430('0x10d')!=_0x2164f9||_0x4430('0x4e')!=_0x28abb9&&_0x4430('0xc2')!=_0x28abb9)continue;_0x968d9[_0x487e85][_0x4430('0x5c')][_0x4430('0xc')](_0x527910,0x1),_0x527910--;const _0x2c5fb2=_0xf9dffb['findIndex'](_0x45eef9=>_0x45eef9[_0x4430('0x44')]==_0x3bc29f);_0x2c5fb2>-0x1&&_0xf9dffb[_0x4430('0xc')](_0x2c5fb2,0x1);}}function _0x14acfd(_0x3c014e){const _0x1b5403=_0x3c014e[_0x4430('0x13')](':');return{'group':_0x1b5403[0x0],'type':_0x1b5403[0x1],'subType':_0x1b5403['length']>=0x5?_0x1b5403[0x2]:null,'id':_0x1b5403[_0x4430('0x126')]<0x5?_0x1b5403[0x2]:_0x1b5403[0x3],'authorId':_0x1b5403[_0x4430('0x126')]<0x5?_0x1b5403[0x3]:_0x1b5403[0x4],'markerCount':0x6==_0x1b5403[_0x4430('0x126')]?_0x1b5403[0x5]:null};}function _0x49f4d5(_0x14d8f8){for(let _0x597c70=0x0;_0x597c70<_0xf9dffb[_0x4430('0x126')];_0x597c70++){if(_0x14d8f8[_0x4430('0x53')]&&'insertion'==_0xf9dffb[_0x597c70]['type'])return _0x14d8f8['isAddSuggestion']=_0xf9dffb[_0x597c70],void delete _0x14d8f8[_0x4430('0x53')];if(!_0x14d8f8[_0x4430('0x53')]&&!_0x14d8f8['isRemoved']&&_0x4430('0xc2')==_0xf9dffb[_0x597c70][_0x4430('0x98')])return void(_0x14d8f8['isRemoveSuggestion']=_0xf9dffb[_0x597c70]);}}}[_0x4430('0xb1')](_0x16b00e,_0x305bee){let _0x55a616=0x0,_0x6e4a93=!0x1;const _0x261d94=new Map();for(const _0x32e89d of _0x16b00e)_0x32e89d[_0x305bee]?_0x6e4a93&&(_0x55a616++,_0x6e4a93=!0x1):(_0x55a616++,_0x6e4a93=!0x0),_0x261d94[_0x4430('0x115')](_0x32e89d['id'],_0x55a616);for(let _0x4063ce=0x0;_0x4063ce<_0x16b00e[_0x4430('0x126')];_0x4063ce++){if(_0x4430('0x57')==_0x305bee&&_0x16b00e[_0x4063ce][_0x4430('0x53')]||_0x4430('0x53')==_0x305bee&&_0x16b00e[_0x4063ce][_0x4430('0x57')])continue;if(_0x4430('0x1f')==_0x16b00e[_0x4063ce][_0x4430('0x98')]){_0x16b00e[_0x4063ce][_0x4430('0x66')]=0x0;continue;}const _0x165083=_0x261d94['get'](_0x16b00e[_0x4063ce]['pairId']),_0x4b0550=_0x261d94[_0x4430('0xa8')](_0x16b00e[_0x4063ce]['id']);_0x16b00e[_0x4063ce][_0x4430('0x66')]=_0x165083-_0x4b0550;}}['_getRevisionsRange'](_0x4f0c3e,_0x27ddd0,_0x32939f=!0x1){const _0x126b8b=[];let _0x1fad38=this[_0x4430('0x93')][_0x4430('0x9')](_0x4f0c3e),_0x4cfd80=this[_0x4430('0x93')][_0x4430('0x9')](_0x27ddd0);for(-0x1==_0x4cfd80&&(_0x4cfd80=this[_0x4430('0x93')][_0x4430('0x117')][_0x4430('0x126')],_0x32939f=!0x1);_0x1fad38<_0x4cfd80;)_0x126b8b[_0x4430('0xc6')](this[_0x4430('0x93')][_0x4430('0x4a')](_0x1fad38)),_0x1fad38++;return _0x32939f&&_0x126b8b[_0x4430('0xc6')](this[_0x4430('0x93')][_0x4430('0x4a')](_0x1fad38)),_0x126b8b;}[_0x4430('0x7f')](_0x3a565b,_0x1fdf5e,_0x10fe2f,_0x2443f1){const _0x3a16b4=this[_0x4430('0xd4')][_0x4430('0x10b')][_0x4430('0xea')];let _0x288d43=_0x1fdf5e;for(;_0x3a565b[_0x288d43]&&_0x3a565b[_0x288d43][_0x4430('0x53')];)_0x288d43++;let _0x2c0086=_0x2443f1;for(;_0x10fe2f[_0x2c0086]&&_0x10fe2f[_0x2c0086]['isRemoved'];)_0x2c0086++;_0x3d3f71(_0x3a565b,_0x1fdf5e,_0x288d43),_0x3d3f71(_0x10fe2f,_0x2443f1,_0x2c0086);const _0x395642=_0x10fe2f[_0x4430('0xe7')](_0x2443f1,_0x2c0086)[_0x4430('0xd8')](_0x3a565b[_0x4430('0xe7')](_0x1fdf5e,_0x288d43));return _0x395642[_0x4430('0x51')]((_0x3a4f99,_0x61cc28)=>_0x3a4f99['side']!=_0x61cc28['side']?_0x3a4f99[_0x4430('0xa9')]-_0x61cc28[_0x4430('0xa9')]:_0x3a4f99['level']!=_0x61cc28[_0x4430('0x68')]?_0x3a4f99[_0x4430('0x68')]-_0x61cc28[_0x4430('0x68')]:_0x3a4f99[_0x4430('0x66')]!=_0x61cc28[_0x4430('0x66')]?_0x61cc28[_0x4430('0x66')]-_0x3a4f99[_0x4430('0x66')]:!!_0x3a4f99['isAdded']!=!!_0x61cc28['isAdded']?-0x1==_0x3a4f99[_0x4430('0xa9')]||0x0==_0x3a4f99[_0x4430('0xa9')]?_0x3a4f99[_0x4430('0x53')]?-0x1:0x1:_0x3a4f99[_0x4430('0x53')]?0x1:-0x1:_0x3a4f99[_0x4430('0xba')]-_0x61cc28['index']),{'commonTape':_0x395642,'iEnd':_0x288d43,'jEnd':_0x2c0086};function _0x3d3f71(_0x4f87eb,_0x186c3f,_0x5b6821){let _0x182a2e=-0x1,_0x78332e=Number[_0x4430('0x114')],_0x511b6f=!0x0;for(let _0x2f58f7=_0x186c3f;_0x2f58f7<_0x5b6821;_0x2f58f7++)if(_0x3a16b4[_0x4430('0xa2')](_0x4f87eb[_0x2f58f7][_0x4430('0x11f')])||(_0x511b6f=!0x1),_0x4f87eb[_0x2f58f7]['item'][_0x4430('0x116')]<_0x186c3f&&(_0x182a2e=_0x2f58f7),_0x4f87eb[_0x2f58f7][_0x4430('0x11f')][_0x4430('0x77')]>=_0x5b6821){_0x78332e=_0x2f58f7;break;}_0x511b6f&&(_0x182a2e=_0x5b6821-0x1);for(let _0xa75415=_0x186c3f;_0xa75415<_0x5b6821;_0xa75415++)_0x4f87eb[_0xa75415][_0x4430('0xa9')]=_0xa75415<=_0x182a2e?-0x1:_0xa75415<_0x78332e?0x0:0x1,_0x4f87eb[_0xa75415][_0x4430('0xba')]=_0xa75415;let _0x9ea35=0x0;for(let _0x5cf4ea=_0x186c3f;_0x5cf4ea<=_0x182a2e;_0x5cf4ea++)0x0==_0x4f87eb[_0x5cf4ea]['distance']?_0x4f87eb[_0x5cf4ea][_0x4430('0x68')]=_0x9ea35:(_0x9ea35++,_0x4f87eb[_0x5cf4ea][_0x4430('0x68')]=_0x9ea35,_0x9ea35++);for(let _0x3de5f0=_0x186c3f;_0x3de5f0<_0x5b6821;_0x3de5f0++)0x0==_0x4f87eb[_0x3de5f0][_0x4430('0xa9')]&&(_0x4f87eb[_0x3de5f0]['level']=_0x9ea35);_0x9ea35=0x0;for(let _0x9dfbb4=_0x5b6821-0x1;_0x9dfbb4>=_0x78332e;_0x9dfbb4--)0x0==_0x4f87eb[_0x9dfbb4][_0x4430('0x66')]?_0x4f87eb[_0x9dfbb4][_0x4430('0x68')]=_0x9ea35:(_0x9ea35--,_0x4f87eb[_0x9dfbb4][_0x4430('0x68')]=_0x9ea35,_0x9ea35--);}}[_0x4430('0x11a')](_0x209be6){const _0x37be96=new Map(),_0x1da2b9=this['editor']['model'][_0x4430('0xea')];for(let _0x21f439=0x1;_0x21f439<_0x209be6[_0x4430('0x126')];_0x21f439++){let _0x58875e,_0x4397dc,_0xdc34b1;const _0x954e7a=_0x209be6[_0x21f439],_0x3d507a=_0x209be6[_0x21f439-0x1];if(_0x4430('0x1f')==_0x954e7a['type'])continue;if(_0x954e7a['type']!=_0x3d507a['type'])continue;if(!_0x1da2b9[_0x4430('0x26')](_0x3d507a[_0x4430('0x11f')])||_0x1da2b9[_0x4430('0x1b')](_0x3d507a[_0x4430('0x11f')]))continue;if(!_0x1da2b9[_0x4430('0x26')](_0x954e7a[_0x4430('0x11f')])||_0x1da2b9[_0x4430('0x1b')](_0x954e7a['item']))continue;if((_0x209be6[_0x21f439][_0x4430('0x53')]||_0x209be6[_0x21f439][_0x4430('0x80')])&&_0x209be6[_0x21f439-0x1][_0x4430('0x57')])_0x58875e=_0x209be6[_0x21f439],_0x4397dc=_0x209be6[_0x21f439-0x1],_0xdc34b1=_0x21f439-0x1;else{if(!_0x209be6[_0x21f439][_0x4430('0x57')]||!_0x209be6[_0x21f439-0x1][_0x4430('0x53')]&&!_0x209be6[_0x21f439-0x1][_0x4430('0x80')])continue;_0x58875e=_0x209be6[_0x21f439-0x1],_0x4397dc=_0x209be6[_0x21f439],_0xdc34b1=_0x21f439;}const _0x2bae4c=_0x58875e['level']==_0x4397dc[_0x4430('0x68')],_0x367614=Math['abs'](_0x58875e[_0x4430('0x68')])<Math[_0x4430('0xd2')](_0x4397dc['level'])&&0x0==_0x4397dc[_0x4430('0x66')];(_0x2bae4c||_0x367614)&&(_0x37be96[_0x4430('0x115')](_0x4397dc['id'],_0x58875e['id']),_0x209be6['splice'](_0xdc34b1,0x1),_0x21f439--,_0x58875e[_0x4430('0x53')]=!0x1);}for(let _0x4e3b8c=0x0;_0x4e3b8c<_0x209be6[_0x4430('0x126')];_0x4e3b8c++)_0x37be96[_0x4430('0x33')](_0x209be6[_0x4e3b8c][_0x4430('0xd1')])&&(_0x209be6[_0x4e3b8c][_0x4430('0xd1')]=_0x37be96['get'](_0x209be6[_0x4e3b8c][_0x4430('0xd1')]));}[_0x4430('0xe6')](_0x5c8ba8){const _0x3bf95c=new Set(_0x5c8ba8[_0x4430('0x1d')](_0x1596a6=>_0x1596a6['id']));for(let _0x5296cf=0x0;_0x5296cf<_0x5c8ba8[_0x4430('0x126')];_0x5296cf++)_0x3bf95c[_0x4430('0x33')](_0x5c8ba8[_0x5296cf][_0x4430('0xd1')])||0x0==_0x5c8ba8[_0x5296cf][_0x4430('0x66')]||(_0x5c8ba8[_0x5296cf][_0x4430('0x4d')]=!0x0);return _0x5c8ba8[_0x4430('0x25')](_0x1a02dc=>!_0x1a02dc[_0x4430('0x4d')]);}[_0x4430('0xe3')](_0x28c35b){const _0x46d852=new Set();for(let _0x21562d=0x0;_0x21562d<_0x28c35b['length'];_0x21562d++){if(_0x46d852[_0x4430('0x33')](_0x28c35b[_0x21562d]['id'])&&_0x28c35b[_0x21562d][_0x4430('0x57')]&&(_0x28c35b[_0x21562d]['isIncorrect']=!0x0),_0x28c35b[_0x21562d]['isIncorrect'])continue;if(0x0==_0x28c35b[_0x21562d][_0x4430('0x66')])continue;if(_0x4430('0x5b')!=_0x28c35b[_0x21562d]['type'])continue;if(null==_0x28c35b[_0x21562d]['pairId'])continue;let _0x1a9ce4=_0x21562d+0x1,_0x172dcc=0x0;for(;_0x28c35b[_0x1a9ce4]['id']!=_0x28c35b[_0x21562d][_0x4430('0xd1')];)_0x4430('0x5b')==_0x28c35b[_0x1a9ce4][_0x4430('0x98')]?_0x172dcc++:_0x4430('0xcd')==_0x28c35b[_0x1a9ce4]['type']&&_0x172dcc--,_0x1a9ce4++;if(0x0!=_0x172dcc){if(_0x28c35b[_0x21562d][_0x4430('0x57')])_0x28c35b[_0x21562d][_0x4430('0x4d')]=!0x0;else for(;_0x1a9ce4!=_0x21562d;)_0x28c35b[_0x1a9ce4][_0x4430('0x57')]&&0x0!=_0x28c35b[_0x1a9ce4][_0x4430('0x66')]&&(_0x28c35b[_0x1a9ce4][_0x4430('0x4d')]=!0x0,_0x46d852[_0x4430('0xee')](_0x28c35b[_0x1a9ce4][_0x4430('0xd1')])),_0x1a9ce4--;}}return _0x28c35b[_0x4430('0x25')](_0x1870d6=>!_0x1870d6[_0x4430('0x4d')]);}[_0x4430('0x3b')](_0x4debf7){const _0x1beed0=this['editor'][_0x4430('0x10b')]['schema'];for(let _0xa930e9=0x0;_0xa930e9<_0x4debf7[_0x4430('0x126')];_0xa930e9++){if(!(_0x4debf7[_0xa930e9][_0x4430('0x53')]||_0x4debf7[_0xa930e9][_0x4430('0x80')]||_0x4debf7[_0xa930e9][_0x4430('0x57')]||_0x4debf7[_0xa930e9]['isRemoveSuggestion']))continue;if(0x0==_0x4debf7[_0xa930e9][_0x4430('0x66')])continue;const _0x1cbedb=_0x4debf7[_0xa930e9][_0x4430('0x11f')];_0x1beed0['isBlock'](_0x1cbedb)||_0x1beed0[_0x4430('0x1b')](_0x1cbedb)||(_0x4debf7[_0xa930e9][_0x4430('0x53')]&&delete _0x4debf7[_0xa930e9][_0x4430('0x53')],_0x4debf7[_0xa930e9][_0x4430('0x80')]&&delete _0x4debf7[_0xa930e9][_0x4430('0x80')],_0x4debf7[_0xa930e9][_0x4430('0x2d')]&&delete _0x4debf7[_0xa930e9]['isRemoveSuggestion'],_0x4debf7[_0xa930e9][_0x4430('0x57')]&&(_0x4debf7[_0xa930e9][_0x4430('0x4d')]=!0x0));}return _0x4debf7[_0x4430('0x25')](_0x9cfd99=>!_0x9cfd99['isIncorrect']);}[_0x4430('0x36')](_0x279576,_0x48c2af,_0xdfa4cc){const _0x5ebf5f=new _0x2b47a3(),_0x179d8f=[],_0x738c9a=new Map(),_0x234c9e=this['editor'][_0x4430('0x10b')],_0x3f22d3=_0x234c9e[_0x4430('0xea')],_0x36092f=[_0x5ebf5f],_0x392915={},_0xadbfb1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1ad595=null;const _0x1e6ac3=[0x0];for(let _0x453630=0x0;_0x453630<_0x279576[_0x4430('0x126')];_0x453630++){let _0x120d7a,_0x51a85b;if(_0x4430('0x5b')===_0x279576[_0x453630][_0x4430('0x98')]){_0x120d7a=_0x234c9e[_0x4430('0x75')](_0x5ebf5f,_0x1e6ac3);const _0x374d1c=new _0x3da479(_0x279576[_0x453630][_0x4430('0x11f')][_0x4430('0x44')],_0x279576[_0x453630]['item'][_0x4430('0xdb')]());_0x36092f[0x0]['_appendChild'](_0x374d1c),_0x1e6ac3[_0x4430('0xc6')](0x0),_0x36092f['unshift'](_0x374d1c),_0x51a85b=_0x234c9e[_0x4430('0x75')](_0x5ebf5f,_0x1e6ac3),_0x1ad595=null;}else{if(_0x4430('0xcd')===_0x279576[_0x453630]['type'])_0x36092f['shift'](),_0x120d7a=_0x234c9e['createPositionFromPath'](_0x5ebf5f,_0x1e6ac3),_0x1e6ac3[_0x4430('0x55')](),_0x1e6ac3[_0x1e6ac3['length']-0x1]++,_0x51a85b=_0x234c9e[_0x4430('0x75')](_0x5ebf5f,_0x1e6ac3),_0x1ad595=null;else{if(_0x120d7a=_0x234c9e['createPositionFromPath'](_0x5ebf5f,_0x1e6ac3),_0x1ad595&&_0x40f86c(_0x1ad595,_0x279576[_0x453630]['item']))_0x1ad595[_0x4430('0x14')]+=_0x279576[_0x453630][_0x4430('0x11f')][_0x4430('0x19')];else{const _0x33865d=new _0x2aa4fe(_0x279576[_0x453630][_0x4430('0x11f')][_0x4430('0x19')],_0x279576[_0x453630]['item'][_0x4430('0xdb')]());_0x36092f[0x0][_0x4430('0x6f')](_0x33865d),_0x1ad595=_0x33865d;}_0x1e6ac3[_0x1e6ac3[_0x4430('0x126')]-0x1]+=_0x279576[_0x453630][_0x4430('0x11f')][_0x4430('0xfc')],_0x51a85b=_0x234c9e[_0x4430('0x75')](_0x5ebf5f,_0x1e6ac3);}}for(const _0x244a76 of _0x279576[_0x453630][_0x4430('0xe2')])_0x738c9a[_0x4430('0x115')](_0x244a76,{'start':_0x120d7a,'end':null});_0x3e04a1('isRemoveSuggestion',_0x453630,_0x120d7a,_0x51a85b),_0x3e04a1('isAddSuggestion',_0x453630,_0x120d7a,_0x51a85b),_0x3e04a1('isRemoved',_0x453630,_0x120d7a,_0x51a85b),_0x3e04a1(_0x4430('0x53'),_0x453630,_0x120d7a,_0x51a85b);for(const _0xd0ae80 of _0x279576[_0x453630][_0x4430('0x5c')]){_0x738c9a[_0x4430('0xa8')](_0xd0ae80)[_0x4430('0x83')]=_0x51a85b;}}for(const [_0x4f3616,_0x454445]of _0x738c9a){const _0x5c64bf=this['editor'][_0x4430('0x10b')][_0x4430('0x81')](_0x454445[_0x4430('0xed')],_0x454445[_0x4430('0x83')]);_0x5ebf5f['markers'][_0x4430('0x115')](_0x4f3616,_0x5c64bf);}return _0x179d8f['sort']((_0x5d5606,_0x222ac3)=>{const _0x26aa73=_0x5ebf5f[_0x4430('0x32')][_0x4430('0xa8')]('revision:'+_0x5d5606['id']),_0xe7abfd=_0x5ebf5f[_0x4430('0x32')][_0x4430('0xa8')](_0x4430('0x9b')+_0x222ac3['id']);return _0x26aa73['start'][_0x4430('0x7')](_0xe7abfd['start'])?-0x1:_0x26aa73[_0x4430('0xed')][_0x4430('0x60')](_0xe7abfd[_0x4430('0xed')])?0x1:_0x26aa73[_0x4430('0x83')][_0x4430('0x7')](_0xe7abfd[_0x4430('0x83')])?-0x1:_0x26aa73[_0x4430('0x83')][_0x4430('0x60')](_0xe7abfd[_0x4430('0x83')])?0x1:_0x4430('0xee')===_0x5d5606[_0x4430('0x98')]?-0x1:0x1;}),{'root':_0x5ebf5f,'changes':_0x179d8f};function _0x3e04a1(_0x5cd066,_0x8a4a01,_0x1e93ed,_0x4fd767){const _0x3b95f3=!!_0x279576[_0x8a4a01][_0x5cd066],_0x246938=_0x3b95f3?_0x279576[_0x8a4a01][_0x5cd066][_0x4430('0x124')]:null,_0x53692d=_0x8a4a01===_0x279576[_0x4430('0x126')]-0x1,_0x463966=_0xadbfb1[_0x5cd066][0x0],_0x1d603a=_0x3f22d3[_0x4430('0x5d')](_0x279576[_0x8a4a01][_0x4430('0x11f')]);!_0x392915[_0x5cd066]&&_0x3b95f3?_0x392915[_0x5cd066]={'start':_0x1e93ed,'tapeItem':_0x279576[_0x8a4a01],'userId':_0x246938,'type':_0x5cd066}:_0x392915[_0x5cd066]&&!_0x3b95f3?(_0x392915[_0x5cd066][_0x4430('0x83')]=_0x1e93ed,_0x390697(_0x392915[_0x5cd066]),_0x392915[_0x5cd066]=null):_0x392915[_0x5cd066]&&_0x3b95f3&&_0x392915[_0x5cd066]['userId']!==_0x246938&&(_0x392915[_0x5cd066][_0x4430('0x83')]=_0x1e93ed,_0x463966&&_0x463966['userId']===_0x392915[_0x5cd066]['userId']||_0x390697(_0x392915[_0x5cd066]),_0x392915[_0x5cd066]={'start':_0x1e93ed,'tapeItem':_0x279576[_0x8a4a01],'userId':_0x246938,'type':_0x5cd066}),_0x392915[_0x5cd066]&&_0x1d603a&&('elementStart'!==_0x279576[_0x8a4a01][_0x4430('0x98')]||_0x463966&&_0x463966['userId']===_0x246938||_0xadbfb1[_0x5cd066]['unshift']({'userId':_0x246938,'object':_0x279576[_0x8a4a01]['item'],'change':_0x392915[_0x5cd066]}),_0x4430('0xcd')===_0x279576[_0x8a4a01]['type']&&_0x463966&&_0x463966[_0x4430('0x61')]===_0x279576[_0x8a4a01][_0x4430('0x11f')]&&(_0xadbfb1[_0x5cd066][_0x4430('0x89')](),_0x392915[_0x5cd066]=_0x463966[_0x4430('0xda')])),_0x392915[_0x5cd066]&&_0x53692d&&(_0x392915[_0x5cd066][_0x4430('0x83')]=_0x4fd767,_0x390697(_0x392915[_0x5cd066]),_0x392915[_0x5cd066]=null);}function _0x390697({start:_0x3c40e5,end:_0x1234b6,tapeItem:_0x50ec30,userId:_0x2eddfa,type:_0x1b3fd3}){const _0x5431e8=_0x50ec30['item'],_0x2589cb=_0x234c9e[_0x4430('0xea')][_0x4430('0x26')](_0x5431e8)&&!_0x234c9e[_0x4430('0xea')][_0x4430('0x1b')](_0x5431e8),_0x1b6120=_0x3c40e5[_0x4430('0xf')]==_0x1234b6[_0x4430('0x6')]&&_0x1234b6['isAtStart'];if(_0x2589cb&&_0x1b6120)return;const _0x451a17=_0x234c9e[_0x4430('0x81')](_0x3c40e5,_0x1234b6),_0x17efb9=_0x48c2af[_0x4430('0xa8')](_0x2eddfa),_0x61db84=new _0x14638f({'author':_0x17efb9,'type':_0x4430('0x53')==_0x1b3fd3||'isAddSuggestion'==_0x1b3fd3?_0x4430('0xee'):_0x4430('0x20'),'data':{'isSuggestion':_0x4430('0x80')==_0x1b3fd3||'isRemoveSuggestion'==_0x1b3fd3},'createdAt':new Date(),'rootName':_0xdfa4cc});_0x179d8f[_0x4430('0xc6')](_0x61db84),_0x5ebf5f[_0x4430('0x32')][_0x4430('0x115')]('revision:'+_0x61db84['id'],_0x451a17);}function _0x40f86c(_0x328c26,_0x4957a2){const _0x56f0a1=_0x328c26[_0x4430('0xdb')](),_0x160ac4=_0x4957a2[_0x4430('0xdb')]();for(const _0x115179 of _0x56f0a1){if(_0x115179[0x1]!==_0x4957a2[_0x4430('0x2b')](_0x115179[0x0]))return!0x1;_0x160ac4[_0x4430('0x22')]();}return _0x160ac4[_0x4430('0x22')]()[_0x4430('0xf2')];}}[_0x4430('0x95')](){this[_0x4430('0xd4')][_0x4430('0xb8')][_0x4430('0x128')](_0x4430('0xef'))['dataToMarker']({'view':_0x4430('0x47')}),this['editor'][_0x4430('0xb8')][_0x4430('0x128')](_0x4430('0xf4'))[_0x4430('0xa0')]({'model':_0x4430('0x47'),'view':_0x10684f=>{const _0x23c7d8=_0x10684f[_0x4430('0x105')][_0x4430('0x13')](':')[0x1],_0x1c7c2c=this['_getChangeFromId'](_0x23c7d8);if(!_0x1c7c2c)return null;const _0x5c70fb=_0x4430('0xee')==_0x1c7c2c[_0x4430('0x98')]?_0x4430('0x4e'):_0x4430('0xc2'),_0x2e01e7=[_0x4430('0x7a'),'ck-suggestion-marker-'+_0x5c70fb];return _0x1c7c2c[_0x4430('0x19')]['isSuggestion']&&_0x2e01e7[_0x4430('0xc6')]('ck-suggestion-marker-'+_0x5c70fb+_0x4430('0xaa')),this[_0x4430('0x12a')]==_0x1c7c2c&&_0x2e01e7[_0x4430('0xc6')](_0x4430('0x10f')),{'classes':_0x2e01e7,'attributes':{'data-change-id':_0x23c7d8}};}}),this['editor']['conversion'][_0x4430('0x128')]('upcast')[_0x4430('0xee')](_0x446deb=>{_0x446deb['on'](_0x4430('0x76'),(_0x35fe0a,_0x12a9cd,_0x51f8c6)=>{const _0x3d6c2d=_0x12a9cd[_0x4430('0x52')][_0x4430('0x1')](0x0);if(!_0x3d6c2d||!_0x3d6c2d['is'](_0x4430('0x9e'),'code'))return;if(!_0x51f8c6[_0x4430('0x15')][_0x4430('0x88')](_0x3d6c2d,{'attributes':[_0x4430('0xe5'),_0x4430('0xad')]}))return;const _0x267387=_0x12a9cd[_0x4430('0x9a')][_0x4430('0xed')]['nodeAfter'];_0x51f8c6[_0x4430('0x18')]['setAttribute']('vid_start',_0x3d6c2d[_0x4430('0x2b')](_0x4430('0xe5')),_0x267387),_0x51f8c6['writer'][_0x4430('0x5')](_0x4430('0xad'),_0x3d6c2d[_0x4430('0x2b')](_0x4430('0xad')),_0x267387);},{'priority':_0x4430('0xce')});}),this[_0x4430('0xd4')][_0x4430('0xb8')][_0x4430('0x128')](_0x4430('0xef'))[_0x4430('0xee')](_0x120b13=>{_0x120b13['on'](_0x4430('0x9e'),(_0x47802f,_0x1b6b4f,_0x1fa982)=>{if(!_0x1fa982[_0x4430('0x15')][_0x4430('0x88')](_0x1b6b4f[_0x4430('0x52')],{'attributes':[_0x4430('0xe5'),_0x4430('0xad')]}))return;if(_0x1b6b4f[_0x4430('0x9a')][_0x4430('0xd')])return;const _0x21ce12=_0x1b6b4f[_0x4430('0x9a')][_0x4430('0xed')]['nodeAfter'];_0x21ce12[_0x4430('0x3c')](_0x4430('0xe5'))||_0x21ce12[_0x4430('0x3c')](_0x4430('0x2f'))||(_0x1fa982[_0x4430('0x18')][_0x4430('0x5')](_0x4430('0xe5'),_0x1b6b4f['viewItem'][_0x4430('0x2b')](_0x4430('0xe5')),_0x21ce12),_0x1fa982[_0x4430('0x18')]['setAttribute'](_0x4430('0xad'),_0x1b6b4f[_0x4430('0x52')][_0x4430('0x2b')](_0x4430('0xad')),_0x21ce12));},{'priority':_0x4430('0xce')});}),this[_0x4430('0xd4')][_0x4430('0xb8')][_0x4430('0x128')](_0x4430('0xef'))[_0x4430('0x9c')]({'view':{'name':_0x4430('0x9d'),'attributes':{'vid':!0x0}},'model':{'key':_0x4430('0x2f'),'value':_0x3d174c=>_0x3d174c[_0x4430('0x2b')](_0x4430('0x2f'))}}),this[_0x4430('0xd4')][_0x4430('0x10b')][_0x4430('0xea')]['on']('checkAttribute',(_0x50ed76,[,_0x54cef3])=>{[_0x4430('0xe5'),_0x4430('0xad'),'vid'][_0x4430('0xbc')](_0x54cef3)&&(_0x50ed76[_0x4430('0xff')]=!0x0,_0x50ed76[_0x4430('0x70')]());},{'priority':'highest'}),this[_0x4430('0xd4')]['conversion'][_0x4430('0x128')]('dataDowncast')[_0x4430('0xee')](_0x137377=>{_0x137377['on'](_0x4430('0xa6'),(_0x1e7507,_0x16c90a,_0x4434a8)=>{if('\x20'!=_0x16c90a[_0x4430('0x11f')][_0x4430('0x19')]||_0x16c90a[_0x4430('0x11f')][_0x4430('0x6')][_0x4430('0xc4')]>0x1)return;if(!_0x4434a8[_0x4430('0x15')][_0x4430('0x88')](_0x16c90a[_0x4430('0x11f')],_0x1e7507[_0x4430('0x44')]))return;const _0x49dec0=_0x4434a8[_0x4430('0x18')],_0x52ce72=_0x4434a8[_0x4430('0x84')][_0x4430('0x2c')](_0x16c90a[_0x4430('0x29')]);_0x49dec0['wrap'](_0x52ce72,_0x49dec0['createAttributeElement'](_0x4430('0x9d')));});}),this[_0x4430('0xd4')][_0x4430('0xb8')]['for'](_0x4430('0x5a'))[_0x4430('0x4f')]({'model':_0x4430('0x47')}),this[_0x4430('0xd4')]['editing']['downcastDispatcher']['on'](_0x4430('0xbf'),function(_0x16f1f4){const _0x5aece2=_0x16f1f4['plugins']['get'](_0x4430('0x97'));return(_0x345fd6,_0x35dc62,_0x51c892)=>{const _0x5ad831=_0x35dc62['markerName'][_0x4430('0x13')](':')[0x1],_0x3f80b8=_0x5aece2[_0x4430('0xf9')](_0x5ad831);if(!_0x3f80b8)return null;const _0x49e430=_0x4430('0xee')==_0x3f80b8['type']?'split':_0x4430('0x43');if(!_0x51c892[_0x4430('0x15')][_0x4430('0x120')](_0x35dc62[_0x4430('0xaf')],_0x345fd6[_0x4430('0x44')]))return;const _0x392beb=_0x35dc62['markerRange']['getWalker'](),_0x538355=_0x35dc62[_0x4430('0xaf')]['start'],_0x374de7=_0x16f1f4[_0x4430('0x10b')][_0x4430('0xea')];let _0x58e858=null,_0x444916=null,_0x42a0fb=!0x1,_0x201623=!0x1;for(const _0x415bc2 of _0x392beb){const _0x3ea6c0=_0x415bc2[_0x4430('0x11f')];_0x42a0fb=_0x42a0fb||_0x374de7['isContent'](_0x3ea6c0);const _0x15b69c=_0x51c892[_0x4430('0x84')]['toViewElement'](_0x3ea6c0);if(_0x15b69c&&_0x15b69c['getCustomProperty']('addHighlight'))return;_0x4430('0xcd')==_0x415bc2['type']&&(_0x374de7[_0x4430('0x26')](_0x3ea6c0)&&!_0x374de7[_0x4430('0x1b')](_0x3ea6c0)&&(_0x3ea6c0[_0x4430('0x4')]||_0x538355[_0x4430('0xb2')]?_0x58e858&&_0x58e858[_0x4430('0x6')]==_0x3ea6c0||(_0x58e858=_0x3ea6c0,_0x230967(_0x415bc2[_0x4430('0x5f')]),_0x201623=!0x0):_0x444916=_0x444916||_0x415bc2[_0x4430('0x5f')]));}function _0x230967(_0x32599c){const _0x361230=_0x51c892[_0x4430('0x18')]['createUIElement'](_0x4430('0x9d'),{'class':'ck-suggestion-marker-'+_0x49e430}),_0x3259f2=_0x51c892[_0x4430('0x84')]['toViewPosition'](_0x32599c);_0x3f80b8['data'][_0x4430('0x99')]&&_0x51c892[_0x4430('0x18')][_0x4430('0x56')](_0x4430('0x106')+_0x49e430+_0x4430('0xaa'),_0x361230),_0x5aece2['activeChange']==_0x3f80b8&&_0x51c892['writer']['addClass'](_0x4430('0x10f'),_0x361230),_0x51c892[_0x4430('0x18')][_0x4430('0xd7')](_0x3259f2,_0x361230),_0x51c892[_0x4430('0x84')][_0x4430('0x69')](_0x361230,_0x35dc62[_0x4430('0x105')]);}_0x42a0fb||_0x201623||!_0x444916||_0x230967(_0x444916);};}(this['editor']),{'priority':_0x4430('0x30')}),this[_0x4430('0xd4')]['editing'][_0x4430('0x3d')]['on'](_0x4430('0x11b'),(_0x460d9e,_0x2ed123,_0x50cde6)=>{const _0xe29709=_0x50cde6[_0x4430('0x84')][_0x4430('0xc8')](_0x2ed123[_0x4430('0x105')]);if(_0xe29709)for(const _0x208289 of _0xe29709)(_0x208289[_0x4430('0xd0')]('ck-suggestion-marker-split')||_0x208289[_0x4430('0xd0')]('ck-suggestion-marker-merge'))&&(_0x50cde6[_0x4430('0x84')][_0x4430('0x62')](_0x208289,_0x2ed123['markerName']),_0x50cde6[_0x4430('0x18')][_0x4430('0x20')](_0x208289));},{'priority':'high'}),this[_0x4430('0xd4')][_0x4430('0xb4')][_0x4430('0x3d')]['on'](_0x4430('0xbf'),(_0x443bc2,_0x2f16f0,_0x4027e7)=>{const _0x3cd8a7=_0x2f16f0[_0x4430('0x105')][_0x4430('0x13')](':')[0x1],_0x5e115d=this[_0x4430('0xf9')](_0x3cd8a7);if(!_0x5e115d)return null;const _0x26d9a0=_0x4430('0xee')==_0x5e115d['type']?'split':'merge';if(_0x4027e7[_0x4430('0x15')][_0x4430('0x120')](_0x2f16f0[_0x4430('0xaf')],_0x443bc2['name']))for(const _0x4afd3a of _0x2f16f0[_0x4430('0xaf')][_0x4430('0x3e')]()){if(!_0x4afd3a['is'](_0x4430('0x9e'),_0x4430('0xc9')))continue;const _0x348112=_0x4027e7[_0x4430('0x18')]['createUIElement']('span',{'class':_0x4430('0x106')+_0x26d9a0}),_0x297810=_0x4027e7['mapper'][_0x4430('0x87')](this[_0x4430('0xd4')][_0x4430('0x10b')]['createPositionBefore'](_0x4afd3a));_0x5e115d[_0x4430('0x19')]['isSuggestion']&&_0x4027e7[_0x4430('0x18')][_0x4430('0x56')](_0x4430('0x106')+_0x26d9a0+_0x4430('0xaa'),_0x348112),this[_0x4430('0x12a')]==_0x5e115d&&_0x4027e7[_0x4430('0x18')][_0x4430('0x56')](_0x4430('0x10f'),_0x348112),_0x4027e7[_0x4430('0x18')][_0x4430('0xd7')](_0x297810,_0x348112),_0x4027e7[_0x4430('0x84')][_0x4430('0x69')](_0x348112,_0x2f16f0['markerName']);}},{'priority':_0x4430('0x30')}),this[_0x4430('0xd4')][_0x4430('0x10b')][_0x4430('0xd9')]['on'](_0x4430('0xda'),()=>{this[_0x4430('0xd4')]['editing']['view'][_0x4430('0xda')](_0x1988dd=>{for(const _0x3e2cfa of this['editor'][_0x4430('0x10b')][_0x4430('0xd9')][_0x4430('0xcc')]()){const _0x164e44=this[_0x4430('0xd4')][_0x4430('0x10b')][_0x4430('0xd9')]['getRoot'](_0x3e2cfa),_0x612d9d=this[_0x4430('0xd4')][_0x4430('0xb4')][_0x4430('0x46')][_0x4430('0xd9')][_0x4430('0x7e')](_0x3e2cfa);if(_0x612d9d){const _0x1e805a=_0x164e44[_0x4430('0x2b')]('revisionHistoryAttachChange');if(_0x1988dd[_0x4430('0x79')](_0x4430('0xfa'),_0x612d9d),_0x1988dd['removeClass'](_0x4430('0xe1'),_0x612d9d),_0x1988dd[_0x4430('0x86')](_0x4430('0xc7'),_0x612d9d),_0x1988dd[_0x4430('0x86')](_0x4430('0xcf'),_0x612d9d),_0x1e805a){const _0x3c0dee=this[_0x4430('0xf9')](_0x1e805a);if(!_0x3c0dee)return null;_0x1988dd['setAttribute'](_0x4430('0xfa'),_0x1e805a,_0x612d9d),_0x1988dd[_0x4430('0x56')](_0x4430('0x90')+_0x3c0dee[_0x4430('0x98')],_0x612d9d),this['activeChange']==_0x3c0dee&&_0x1988dd['addClass']('ck-revision-history-root--active',_0x612d9d);}}}});}),this[_0x4430('0xd4')]['conversion'][_0x4430('0x128')](_0x4430('0xef'))[_0x4430('0x1a')]({'view':_0x4430('0x17'),'model':_0x83c3e4=>_0x4430('0x65')+_0x83c3e4,'converterPriority':'highest'}),this[_0x4430('0xd4')][_0x4430('0xb8')]['for']('upcast')[_0x4430('0x1a')]({'view':'suggestion','model':_0x50733f=>_0x4430('0x63')+_0x50733f,'converterPriority':_0x4430('0x2a')}),this[_0x4430('0xd4')][_0x4430('0xb8')][_0x4430('0x128')](_0x4430('0x5a'))[_0x4430('0x4f')]({'model':_0x4430('0x10d'),'view':_0x2e303f=>({'name':_0x4430('0x64')+_0x2e303f,'group':_0x4430('0x10d')}),'converterPriority':_0x4430('0x2a')}),this[_0x4430('0xd4')][_0x4430('0xb8')][_0x4430('0x128')](_0x4430('0xf4'))[_0x4430('0xa0')]({'model':_0x4430('0x10d'),'view':_0x37e4ee=>{const _0x14bf66=_0x37e4ee[_0x4430('0x105')][_0x4430('0x13')](':')[0x1];return'insertion'!=_0x14bf66&&_0x4430('0xc2')!=_0x14bf66?null:{'classes':[_0x4430('0xf3'),'ck-suggestion-preview-marker-'+_0x14bf66]};}}),this['editor'][_0x4430('0xb4')][_0x4430('0x3d')]['on'](_0x4430('0xc3'),et(this[_0x4430('0xd4')],_0x4430('0x43')),{'priority':_0x4430('0x30')}),this[_0x4430('0xd4')]['editing']['downcastDispatcher']['on'](_0x4430('0x27'),et(this[_0x4430('0xd4')],_0x4430('0x13')),{'priority':_0x4430('0x30')}),this[_0x4430('0xd4')][_0x4430('0xb4')][_0x4430('0x3d')]['on'](_0x4430('0x127'),(_0xcf154d,_0xea6664,_0x46f44a)=>{const _0x17dff4=_0x46f44a[_0x4430('0x84')][_0x4430('0xc8')](_0xea6664[_0x4430('0x105')]);if(_0x17dff4)for(const _0x39e888 of _0x17dff4)_0x39e888['is'](_0x4430('0x74'))&&(_0x46f44a[_0x4430('0x84')]['unbindElementFromMarkerName'](_0x39e888,_0xea6664[_0x4430('0x105')]),_0x46f44a[_0x4430('0x18')][_0x4430('0x20')](_0x39e888));},{'priority':_0x4430('0x30')});}[_0x4430('0xf9')](_0x50ee9e){return this['_changeIdToChange'][_0x4430('0xa8')](_0x50ee9e);}[_0x4430('0xf1')](_0x3b4331){return this['_changeView']&&this['_changeView'][_0x4430('0x7c')](),this[_0x4430('0x6e')]=new _0x176f54(this[_0x4430('0xd4')]['locale'],_0x3b4331),this[_0x4430('0x6e')];}['_initInteractions'](){this[_0x4430('0xd4')][_0x4430('0x10b')][_0x4430('0xd9')][_0x4430('0x3a')][_0x4430('0xde')](_0x4430('0x47')),this['on'](_0x4430('0x49'),(_0x387f14,_0x687383,_0x307c27,_0x26f0c5)=>{_0x26f0c5&&this[_0x4430('0xbe')][_0x4430('0x20')](_0x26f0c5),_0x307c27&&(this[_0x4430('0xbe')][_0x4430('0xee')]({'view':_0x307c27,'stackId':_0x4430('0xb5'),'position':{'target':()=>{const _0x10023e=this[_0x4430('0xd4')]['editing'],_0x4b8b3b=this[_0x4430('0xf9')](_0x307c27['changeId']);let _0x86589d;if(_0x4b8b3b['data'][_0x4430('0xb6')]){const _0x1d9a58=_0x10023e['view'][_0x4430('0x40')](_0x4b8b3b[_0x4430('0x3f')]);_0x86589d=Array['from'](_0x1d9a58[_0x4430('0xe')]());}else{const _0x244775=this[_0x4430('0xd4')]['model'][_0x4430('0x32')][_0x4430('0xa8')](_0x4430('0x9b')+_0x307c27[_0x4430('0x92')]);_0x86589d=Array['from'](_0x10023e[_0x4430('0x84')][_0x4430('0xc8')](_0x244775['name']))['map'](_0x57afa9=>_0x10023e[_0x4430('0x46')][_0x4430('0xdf')][_0x4430('0xfe')](_0x57afa9))['map'](_0xe264c=>Array[_0x4430('0x102')](_0xe264c['getClientRects']()))[_0x4430('0x5e')]();}if(!this[_0x4430('0xe4')])return _0x86589d[0x0];return _0x86589d[_0x4430('0x16')](_0xde038e=>_0xde038e[_0x4430('0x125')]-0x3<=this[_0x4430('0xe4')]['y']&&_0xde038e['bottom']+0x3>=this[_0x4430('0xe4')]['y']&&_0xde038e[_0x4430('0x4c')]-0x3<=this[_0x4430('0xe4')]['x']&&_0xde038e[_0x4430('0x24')]+0x3>=this['_activeViewTarget']['x'])||_0x86589d[0x0];}}}),this[_0x4430('0xbe')][_0x4430('0x11')](_0x4430('0xb5')));}),this['on'](_0x4430('0x113'),(_0x379a24,_0x5ab2d8,_0x59870f,_0x7c9d4d)=>{this[_0x4430('0xeb')]=_0x59870f?this['_getViewForChange'](_0x59870f):null,this['editor'][_0x4430('0x10b')]['change'](()=>{const _0x275db8=this['editor'][_0x4430('0xb4')];_0x7c9d4d&&(_0x7c9d4d['data'][_0x4430('0xb6')]?_0x275db8[_0x4430('0x46')]['change'](_0x390737=>{_0x390737[_0x4430('0x86')](_0x4430('0xcf'),_0x275db8[_0x4430('0x46')][_0x4430('0xd9')][_0x4430('0x7e')](_0x7c9d4d[_0x4430('0x3f')]));}):_0x275db8[_0x4430('0x42')](_0x4430('0x9b')+_0x7c9d4d['id'])),_0x59870f&&(_0x59870f[_0x4430('0x19')][_0x4430('0xb6')]?_0x275db8['view'][_0x4430('0xda')](_0x4c24ab=>{_0x4c24ab['addClass'](_0x4430('0xcf'),_0x275db8['view'][_0x4430('0xd9')][_0x4430('0x7e')](_0x59870f[_0x4430('0x3f')]));}):_0x275db8['reconvertMarker']('revision:'+_0x59870f['id']));});}),this['listenTo'](this[_0x4430('0xd4')][_0x4430('0xb4')][_0x4430('0x46')]['document'],_0x4430('0x12'),(_0xa9d418,_0x3e2911)=>{if(this['activeChange'])return;const _0x5700ba=this[_0x4430('0x4b')](_0x3e2911['target']),_0x1d6a8b=this[_0x4430('0x0')][_0x4430('0xa8')](_0x5700ba);_0x1d6a8b?(this[_0x4430('0xe4')]={'x':_0x3e2911[_0x4430('0xd5')]['x'],'y':_0x3e2911['domEvent']['y']},this['activeView']=this[_0x4430('0xf1')](_0x1d6a8b)):(this[_0x4430('0xe4')]=null,this[_0x4430('0xeb')]=null);}),this[_0x4430('0x34')](this[_0x4430('0xd4')]['editing'][_0x4430('0x46')][_0x4430('0xd9')],_0x4430('0x82'),(_0x5129a3,_0x45b17e)=>{const _0x4a11fe=this[_0x4430('0x4b')](_0x45b17e['target']),_0x525d0c=this[_0x4430('0x0')][_0x4430('0xa8')](_0x4a11fe);_0x525d0c?(this[_0x4430('0xe4')]={'x':_0x45b17e[_0x4430('0xd5')]['x'],'y':_0x45b17e[_0x4430('0xd5')]['y']},_0x525d0c===this['activeChange']?this['_balloon'][_0x4430('0xa4')]():this['activeChange']=_0x525d0c):(this[_0x4430('0xe4')]=null,this[_0x4430('0x12a')]=null);});}[_0x4430('0x4b')](_0x4e0020){do{const _0x44918e=_0x4e0020[_0x4430('0x2b')](_0x4430('0xfa'));if(_0x44918e)return _0x44918e;_0x4e0020=_0x4e0020[_0x4430('0x6')];}while(_0x4e0020);return null;}[_0x4430('0x72')](){this[_0x4430('0xd4')][_0x4430('0x10b')][_0x4430('0xda')](_0x4d9102=>{for(const _0x236f2f of this[_0x4430('0xd4')][_0x4430('0x10b')][_0x4430('0x32')])_0x4d9102['removeMarker'](_0x236f2f);});}}function et(_0x12f8e4,_0x4a4ad4){return(_0x34ec7,_0x4dd58c,_0x34170c)=>{if(!_0x34170c[_0x4430('0x15')][_0x4430('0x120')](_0x4dd58c[_0x4430('0xaf')],_0x34ec7['name']))return;const _0x30be50=_0x4dd58c[_0x4430('0xaf')][_0x4430('0x38')](),_0x1d6544=_0x4dd58c['markerRange'][_0x4430('0xed')],_0xa1e94f=_0x12f8e4[_0x4430('0x10b')][_0x4430('0xea')];let _0x4ddd4e=null,_0x6348aa=null,_0x1643a6=!0x1,_0x46aaa4=!0x1;for(const _0x3b49ec of _0x30be50){const _0x399e23=_0x3b49ec[_0x4430('0x11f')];_0x1643a6=_0x1643a6||_0xa1e94f['isContent'](_0x399e23);const _0x128749=_0x34170c['mapper']['toViewElement'](_0x399e23);if(_0x128749&&_0x128749[_0x4430('0x111')](_0x4430('0x104')))return;'elementEnd'==_0x3b49ec[_0x4430('0x98')]&&(_0xa1e94f['isBlock'](_0x399e23)&&!_0xa1e94f[_0x4430('0x1b')](_0x399e23)&&(_0x399e23[_0x4430('0x4')]||_0x1d6544[_0x4430('0xb2')]?_0x4ddd4e&&_0x4ddd4e[_0x4430('0x6')]==_0x399e23||(_0x4ddd4e=_0x399e23,_0xa3e45c(_0x3b49ec[_0x4430('0x5f')]),_0x46aaa4=!0x0):_0x6348aa=_0x6348aa||_0x3b49ec[_0x4430('0x5f')]));}function _0xa3e45c(_0x4e3f7f){const _0x253e6c=_0x34170c[_0x4430('0x84')][_0x4430('0x87')](_0x4e3f7f),_0x3adf1e=_0x34170c[_0x4430('0x18')][_0x4430('0x50')](_0x4430('0x9d'),{'class':_0x4430('0xb9')+_0x4a4ad4});_0x34170c[_0x4430('0x18')][_0x4430('0xd7')](_0x253e6c,_0x3adf1e),_0x34170c[_0x4430('0x84')]['bindElementToMarker'](_0x3adf1e,_0x4dd58c['markerName']);}_0x1643a6||_0x46aaa4||!_0x6348aa||_0xa3e45c(_0x6348aa);};}export class RestoreRevisionCommand extends _0x45217e{constructor(_0x2158ad){super(_0x2158ad);const _0xd4a37e=_0x2158ad[_0x4430('0x121')][_0x4430('0xa8')](d);this[_0x4430('0xa5')]=!0x1,this[_0x4430('0x34')](_0xd4a37e,'change:isReady',()=>this[_0x4430('0x100')]()),this[_0x4430('0x34')](_0xd4a37e,_0x4430('0xfd'),()=>this[_0x4430('0x100')]());}[_0x4430('0x122')](){const _0x20aaff=this[_0x4430('0xd4')],_0x1ca469=_0x20aaff['plugins'][_0x4430('0xa8')](d),_0x4697da=_0x1ca469['isReady']?_0x1ca469[_0x4430('0xe8')]['newRevisionId']:null;_0x20aaff[_0x4430('0x119')][_0x4430('0xa8')]('revisionHistory')[_0x4430('0x71')](_0x4697da);}[_0x4430('0x100')](){const {isReady:_0x3134f6,isEnabled:_0x43c124}=this[_0x4430('0xd4')][_0x4430('0x121')][_0x4430('0xa8')](d);this[_0x4430('0x6c')]=_0x3134f6&&_0x43c124;}}export class ShowChangeCommand extends _0x45217e{constructor(_0x593c9c,{direction:_0x1c9a52}){super(_0x593c9c);const _0x551465=_0x593c9c[_0x4430('0x121')][_0x4430('0xa8')](d);this[_0x4430('0xa5')]=!0x1,this[_0x4430('0x45')]=_0x4430('0xf0')===_0x1c9a52?0x1:-0x1,this[_0x4430('0x34')](_0x551465,_0x4430('0xf5'),()=>this[_0x4430('0x100')]()),this['listenTo'](_0x551465,_0x4430('0xfd'),()=>this[_0x4430('0x100')]());}[_0x4430('0x122')](){const _0x110a4a=this[_0x4430('0xd4')],_0x4177b4=_0x110a4a[_0x4430('0x121')][_0x4430('0xa8')](d),{isNavigationMode:_0x574ac3,currentChangeNumber:_0x54371c}=_0x4177b4;let _0x15ccf0;if(_0x4177b4['activeChange']=_0x574ac3?_0x4177b4[_0x4430('0xe8')][_0x4430('0x1c')][_0x4430('0xa8')](_0x54371c+this[_0x4430('0x45')]):_0x4177b4['diff']['changes'][_0x4430('0x31')],_0x4177b4[_0x4430('0x12a')][_0x4430('0x19')][_0x4430('0xb6')])_0x15ccf0=_0x110a4a[_0x4430('0xb4')][_0x4430('0x46')][_0x4430('0x40')](_0x4177b4[_0x4430('0x12a')][_0x4430('0x3f')]);else{const _0x8ce0d0=_0x110a4a[_0x4430('0x10b')][_0x4430('0x32')][_0x4430('0xa8')]('revision:'+_0x4177b4[_0x4430('0x12a')]['id']);_0x15ccf0=_0x1f1c6e(_0x110a4a[_0x4430('0xb4')],_0x8ce0d0);}_0x33c9ea({'target':_0x15ccf0,'viewportOffset':0x28});}[_0x4430('0x100')](){const {isNavigationMode:_0x2c7c3d,currentChangeNumber:_0x4d9330,numberOfChanges:_0x438915,isReady:_0x20ba6a,isEnabled:_0x10aeab}=this['editor']['plugins'][_0x4430('0xa8')](d);this['isEnabled']=!!(_0x10aeab&&_0x20ba6a&&_0x438915)&&(!_0x2c7c3d||(0x1===this[_0x4430('0x45')]?_0x4d9330<_0x438915-0x1:_0x4d9330>0x0));}}
23
+ const _0x4e91=['markerRange','isRemoved','addRevisionData','useFillerType','mapViewToDom','left','revision-viewer','showPreviousChange','_removeRevisionMarkers','_fixObsoleteTags','ck-editor__editable__overlay','isContent','isAddSuggestion','plugins','set','push','isEqual','splice','init','_markMismatchedRemovedTags','toModel','revision-end','adapter','ck-revision-history-root-add','markerToData','suggestion:','startsWith','setAttribute','ck-suggestion-marker-split','then','change:activeChange','bottom','rootName','revision-suggestion','ck-revision-history-root-remove','start','values','addMarker:revision','_joinTapes','forEach','toData','enableReadOnlyMode','WidgetToolbarRepository','userId','isIncorrect','sort','_processTape','viewItem','pluginName','enqueueChange','flat','editingDowncast','length','_step','highest','revision','_markMarkers','activeChange','getRootNames','consumable','_refreshStartEndIndex','span','isSuggestion','downcastDispatcher','numberOfChanges','revisionHistory','slice','ck-suggestion-marker-','element:pre','backward','_makeModelFromViewString','isBlock','_changeView','createAttributeElement','getRevisionData','affectsData','hasClass','softBreak','test','startIndex','bindElementToMarker','includes','_setConversion','revisionHistoryAttachChange','isLimit','_revisions','error','keys','elementStart','isRemoveSuggestion','changeId','_data','concat','document','comment','data','_getRevisionsRange','restoreRevisionCallback','from','merge','reconvertMarker','_activeViewTarget','commands','wrap','revision:','find','children','object','observeMarkers','_getViewObj','showNextChange','_findChangeIdFromDomTarget','-new','parse','compare','removeAttribute','side','editor','oldRevisionId','markerNameToElements','markers','suggestion','_setChanges','model','pairId','get','getItems','diffData','isBefore','removeMarker','schema','code','domEvent','_removeUnsupportedChanges','activeView','authors','element','level','ck-suggestion-marker','top','isOnRoot','hasAttribute','writer','isCollapsed','getDomRoot','insertion','_threeWayMerge','all','stop','target','isAdded','index','addHighlight','unshift','item','return','elementEnd','removeMarker:revision','first','_changeIdToChange','getIndex','insertions','_makeTape','upcast','revision-comment:','addMarker:revision-suggestion:deletion','range','_balloon','_makeModelFromTape','shift','getAttribute','modelRange','getWalker','_update','requires','_markInsertions','next','selection','markerName','abs','markersStart','vid','attachChange','newRevisionId','ck-revision-history-root-','conversion','dataToMarker','elementToAttribute','data-change-id','currentChangeNumber','config','processor','delete','_appendChild','default','isAfter','revision-suggestion:','isAttached','vid_start','previousPosition','end','uiElement','isAtStart','catch','RevisionViewer','endIndex','consume','loadRevisionData','isEnabled','createRangeIn','nextPosition','name','repository','nextSibling','for','removeClass','ck-revision-history-root--active','editing','markerToHighlight','add','toViewRange','low','findIndex','split','attribute:vid','_setDistance','markersEnd','getRevisionRootsAttributes','resolve','done','getAttributes','toViewElement','vid_end','deletion','listenTo','change','changes','mousedown','parent','filter','change:numberOfChanges','change:isEnabled','getClientRects','text','attributesAfter','toViewPosition','ck-suggestion-marker--active','map','attributesBefore','createPositionBefore','refresh','destroy','insert','marked','maxOffset','revision-start','dataDowncast','unbindElementFromMarkerName','showStack','diff','createUIElement','createPositionFromPath','mapper','bind','high','ck-suggestion-marker-merge','getCustomProperty','_getDiff','createRange','nodeAfter','attributes','execute','ck-suggestion-preview-marker-','_getChangeFromId','isObject','detachRoot','roots','createRevision','type','addRoot','view','isAtEnd','_initInteractions','has','pop','string','locale','getRoot','offsetSize','updatePosition','getRevision','_cleanMarkers','change:isReady','_sortAndFilterDiffChanges','addClass','_cleanUp','remove','distance','deletions','isReady','revisionHistoryLabel'];(function(_0xb1354a,_0x4e917d){const _0x59370e=function(_0x5c5a7f){while(--_0x5c5a7f){_0xb1354a['push'](_0xb1354a['shift']());}};_0x59370e(++_0x4e917d);}(_0x4e91,0x92));const _0x5937=function(_0xb1354a,_0x4e917d){_0xb1354a=_0xb1354a-0x0;let _0x59370e=_0x4e91[_0xb1354a];return _0x59370e;};import{Plugin as _0x4759d4,Command as _0x676285}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4bfb65}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2c9bcf}from'ckeditor5/src/ui';import{DocumentFragment as _0x3be22e,Element as _0x586de6,Text as _0x45b63b,ViewDocumentFragment as _0x399ea3,ViewText as _0x9079bf,ViewElement as _0x1a7c58,ViewContainerElement as _0x4238fc,ViewAttributeElement as _0x25cc4b,ViewEmptyElement as _0x516007,ViewRawElement as _0x59e43a,ViewUIElement as _0xf901c0}from'ckeditor5/src/engine';import{Users as _0xac2904,getMarkerDomElement as _0x508032}from'ckeditor5-collaboration/src/collaboration-core';import _0xf36502 from'./ui/revisionviewer/changedetailsview';import _0x456661 from'./revisionsrepository';import _0x4782d0 from'./changeitem';import{default as _0x135f56}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x283255}from'lodash-es';const tt={'c':_0x4238fc,'a':_0x25cc4b,'e':_0x516007,'r':_0x59e43a,'u':_0xf901c0};export default class d extends _0x4759d4{static get[_0x5937('0xcb')](){return _0x5937('0x3a');}static get[_0x5937('0x1c')](){return[_0xac2904,_0x2c9bcf,_0x456661];}constructor(_0x2e3e38){super(_0x2e3e38),this[_0x5937('0x42')]=this[_0x5937('0x110')][_0x5937('0xa8')][_0x5937('0x118')]('RevisionsRepository'),this[_0x5937('0xa9')](_0x5937('0xd4'),null),this[_0x5937('0xa9')](_0x5937('0x121'),null),this[_0x5937('0x100')]=null,this['set'](_0x5937('0x71'),null),this[_0x5937('0xa9')](_0x5937('0x99'),!0x1),this[_0x5937('0xa9')](_0x5937('0x3e'),!0x0),this['on'](_0x5937('0x5f'),(_0x3462b3,_0x2f48dd,_0x58430d)=>{this[_0x5937('0xd4')]=null,this['activeView']=null,this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0x59')](_0x3149ee=>{for(const _0x521583 of this['editor'][_0x5937('0x47')][_0x5937('0x86')]['document'][_0x5937('0x82')])_0x58430d?_0x3149ee[_0x5937('0x45')](_0x5937('0xa5'),_0x521583):_0x3149ee['addClass'](_0x5937('0xa5'),_0x521583);});}),this[_0x5937('0x75')]('isNavigationMode')['to'](this,_0x5937('0xd4'),_0x4feea5=>null!==_0x4feea5),this[_0x5937('0x75')](_0x5937('0x2b'))['to'](this,'isReady',this,'diff',this,_0x5937('0xd4'),(_0x194a95,_0x77349,_0x1e5cad)=>_0x194a95&&_0x1e5cad?_0x77349[_0x5937('0x5a')][_0x5937('0xe')](_0x1e5cad):0x0),this[_0x5937('0x75')](_0x5937('0xdb'))['to'](this,_0x5937('0x99'),this,'diff',(_0x38eaa0,_0x3aa01d)=>_0x38eaa0?_0x3aa01d['changes'][_0x5937('0xcf')]:0x0),this[_0x5937('0xe3')]=null,this[_0x5937('0xd')]=new Map(),this[_0x5937('0xb1')]=null,this[_0x5937('0x15')]=this[_0x5937('0x110')]['plugins'][_0x5937('0x118')](_0x2c9bcf);}[_0x5937('0xad')](){const _0x549962=this['editor'],_0x34d83f=new ShowChangeCommand(_0x549962,{'direction':_0x5937('0xe0')}),_0x3747d7=new ShowChangeCommand(_0x549962,{'direction':'forward'});(_0x549962['commands']['add'](_0x5937('0xa2'),_0x34d83f),_0x549962[_0x5937('0x101')][_0x5937('0x49')](_0x5937('0x109'),_0x3747d7),_0x549962['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x549962)),this['on'](_0x5937('0x5e'),()=>{_0x34d83f[_0x5937('0x68')](),_0x3747d7[_0x5937('0x68')]();}),this[_0x5937('0xed')](),this[_0x5937('0x88')](),_0x549962[_0x5937('0xc4')]('revision-viewer'),_0x549962[_0x5937('0xa8')][_0x5937('0x89')](_0x5937('0xc5')))&&_0x549962['plugins']['get']('WidgetToolbarRepository')['forceDisabled'](_0x5937('0xa1'));}async[_0x5937('0xe5')](_0x3e1c85){await this[_0x5937('0x3d')](_0x3e1c85);const _0x463c43={};for(const _0x2bfafe in _0x3e1c85[_0x5937('0x11a')]){if(_0x3e1c85['diffData'][_0x2bfafe][_0x5937('0x24')]&&!_0x3e1c85[_0x5937('0x11a')][_0x2bfafe][_0x5937('0x24')][_0x5937('0x33')])continue;const _0x5e0933=this[_0x5937('0xa3')](JSON[_0x5937('0x10c')](_0x3e1c85[_0x5937('0x11a')][_0x2bfafe][_0x5937('0xf')])),_0x531323=this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0xf8')],_0x2c8ee2=new _0x399ea3(_0x531323,_0x5e0933['map'](_0x333f07=>this[_0x5937('0x108')](_0x333f07)));this['editor'][_0x5937('0xfa')][_0x5937('0x2d')][_0x5937('0x9e')](_0x5937('0x6b')),_0x463c43[_0x2bfafe]=this['editor']['data'][_0x5937('0x2d')][_0x5937('0xc3')](_0x2c8ee2),this[_0x5937('0x110')][_0x5937('0xfa')][_0x5937('0x2d')][_0x5937('0x9e')](_0x5937('0x30'));}return _0x463c43;}async[_0x5937('0x51')](_0x591faf){await this[_0x5937('0x3d')](_0x591faf);const _0x7b4d34={};for(const _0x61cd7e in _0x591faf[_0x5937('0x11a')])_0x591faf[_0x5937('0x11a')][_0x61cd7e][_0x5937('0x24')]&&!_0x591faf[_0x5937('0x11a')][_0x61cd7e][_0x5937('0x24')][_0x5937('0x33')]||(_0x7b4d34[_0x61cd7e]=_0x591faf[_0x5937('0x11a')][_0x61cd7e][_0x5937('0x62')]||{});return _0x7b4d34;}['_removeRevisionMarkers'](_0x67323){return(_0x67323=_0x67323[_0x5937('0x5d')](_0x440e57=>!_0x440e57[_0x5937('0x41')]||_0x5937('0x6d')!==_0x440e57[_0x5937('0x41')]&&_0x5937('0xb0')!==_0x440e57[_0x5937('0x41')]))[_0x5937('0xc2')](_0x4a0942=>{_0x5937('0x8b')!=typeof _0x4a0942&&(_0x4a0942[_0x5937('0x105')]=this[_0x5937('0xa3')](_0x4a0942['children']),_0x4a0942[_0x5937('0x7c')]=_0x4a0942[_0x5937('0x7c')]['filter'](_0xff1cec=>!_0xff1cec[0x0][_0x5937('0xb5')]('data-revision-')));}),_0x67323;}async[_0x5937('0x10d')](_0x3c1bbd,_0x36f311,_0x5b975b=!0x1){if(!this[_0x5937('0x3e')])return;const _0x6c7893=this['diff'],_0x448b6a=this[_0x5937('0x42')],_0x2e4c5c=_0x5937('0x8b')==typeof _0x3c1bbd?_0x448b6a[_0x5937('0x90')](_0x3c1bbd):_0x3c1bbd,_0x36c8c2=_0x5937('0x8b')==typeof _0x36f311?_0x448b6a[_0x5937('0x90')](_0x36f311):_0x36f311,_0x4d9474=_0x2e4c5c['id'],_0x49da50=_0x36c8c2?_0x36c8c2['id']:null;if(!_0x5b975b&&this[_0x5937('0x71')]&&this['diff'][_0x5937('0x25')]===_0x4d9474&&this[_0x5937('0x71')][_0x5937('0x111')]===_0x49da50)return Promise[_0x5937('0x52')]();this[_0x5937('0x99')]=!0x1,this[_0x5937('0x121')]=null,this[_0x5937('0xd4')]=null,this[_0x5937('0x71')]=new _0x135f56(_0x4d9474,_0x49da50);const _0x4728f0=this[_0x5937('0xfb')](_0x2e4c5c,_0x36c8c2,!0x0)['map'](_0x417eda=>this[_0x5937('0x3d')](_0x417eda));return _0x4728f0[_0x5937('0xaa')](new Promise(_0x386e9f=>{setTimeout(_0x386e9f,0x14);})),Promise[_0x5937('0x1')](_0x4728f0)[_0x5937('0xb8')](()=>{if(!this[_0x5937('0x3e')])return;this[_0x5937('0x95')]();const _0x3ef4cb=this[_0x5937('0x79')](_0x4d9474,_0x49da50);for(const _0x2d6a02 of _0x3ef4cb['changes'])this['_changeIdToChange']['set'](_0x2d6a02['id'],_0x2d6a02);this['editor'][_0x5937('0x116')]['enqueueChange']({'isUndoable':!0x1},_0x90a462=>{for(const _0x445419 of this[_0x5937('0x110')]['model'][_0x5937('0xf8')][_0x5937('0xd5')]())_0x90a462[_0x5937('0x81')](_0x445419);for(const _0x9dbe54 of Object[_0x5937('0xf2')](_0x3ef4cb[_0x5937('0x116')])){const _0x42d65e=_0x90a462[_0x5937('0x85')](_0x9dbe54);for(const _0x445ce3 of Object[_0x5937('0xf2')](_0x3ef4cb['attributes'][_0x9dbe54]))_0x90a462[_0x5937('0xb6')](_0x445ce3,_0x3ef4cb[_0x5937('0x7c')][_0x9dbe54][_0x445ce3],_0x42d65e);_0x90a462[_0x5937('0x6a')](_0x3ef4cb['model'][_0x9dbe54],_0x42d65e,0x0);}}),this[_0x5937('0x71')][_0x5937('0x115')](this[_0x5937('0x93')](_0x3ef4cb[_0x5937('0x5a')])),this[_0x5937('0x99')]=!0x0;})[_0x5937('0x39')](_0x41530e=>{console[_0x5937('0xf1')](_0x41530e),this[_0x5937('0x95')](),_0x6c7893&&(this[_0x5937('0x71')]=_0x6c7893),this[_0x5937('0x99')]=!0x0;});}[_0x5937('0x9d')](_0x424902,_0x1ae1cc){const _0x4fb01a=this[_0x5937('0x42')][_0x5937('0x83')](_0x424902);return _0x4fb01a['on'](_0x5937('0x1b'),(_0x29b84f,_0x2d1db5,_0x96e59d)=>_0x1ae1cc(_0x2d1db5,_0x96e59d,_0x4fb01a)),this[_0x5937('0x42')]['addRevision'](_0x4fb01a),_0x4fb01a;}['loadRevisionData'](_0x59b41a){if(!_0x59b41a||_0x59b41a[_0x5937('0x11a')])return Promise[_0x5937('0x52')]();{const _0x1ed8b9=this[_0x5937('0x110')][_0x5937('0x2c')][_0x5937('0x118')]('collaboration.channelId');return this[_0x5937('0xb1')][_0x5937('0x90')]({'channelId':_0x1ed8b9,'revisionId':_0x59b41a['id']})[_0x5937('0xb8')](_0xbfb5fe=>{_0x59b41a[_0x5937('0x1b')]({'diffData':_0xbfb5fe[_0x5937('0x11a')]},!0x0);});}}[_0x5937('0x95')](){this[_0x5937('0xd4')]=null,this[_0x5937('0x91')](),this[_0x5937('0xe3')]&&this[_0x5937('0xe3')][_0x5937('0x69')](),this[_0x5937('0xe3')]=null,this[_0x5937('0xd')]['clear'](),this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xcc')]({'isUndoable':!0x1},_0x55dccf=>{for(const _0x101fb7 of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')]['getRootNames']())_0x55dccf[_0x5937('0x81')](_0x101fb7);});}['_sortAndFilterDiffChanges'](_0x3e394e){const _0x1a5594=[],_0x18c55b=new Map();for(const _0x98ca60 of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')][_0x5937('0xd5')]()){const _0x5351d4=this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0x12b')](_0x98ca60);if(!_0x5351d4)continue;const _0x59eb94=_0x5351d4[_0x5937('0x60')]()[_0x5937('0x8')](0x0);_0x59eb94&&(_0x1a5594[_0x5937('0xaa')](_0x98ca60),_0x18c55b[_0x5937('0xa9')](_0x98ca60,_0x59eb94));}return _0x1a5594['sort']((_0x5a2001,_0x565f56)=>{const _0x5b5782=_0x18c55b[_0x5937('0x118')](_0x5a2001),_0x10b1c9=_0x18c55b[_0x5937('0x118')](_0x565f56);return _0x5b5782['y']-_0x10b1c9['y']||_0x5b5782['x']-_0x10b1c9['x'];}),(_0x3e394e=_0x3e394e[_0x5937('0x5d')](_0x83607e=>_0x1a5594[_0x5937('0xec')](_0x83607e[_0x5937('0xbb')])))[_0x5937('0xc8')]((_0x2c779b,_0x400439)=>_0x1a5594['indexOf'](_0x2c779b[_0x5937('0xbb')])-_0x1a5594['indexOf'](_0x400439[_0x5937('0xbb')])),_0x3e394e;}[_0x5937('0x10')](_0x246b1b){const _0x39ba0d=Array[_0x5937('0xfd')](_0x246b1b[_0x5937('0x113')])[_0x5937('0x5d')](([_0x213a00,_0x491777])=>_0x213a00[_0x5937('0xb5')](_0x5937('0x103'))&&!_0x491777[_0x5937('0x12a')]),_0x7f87eb=Array['from'](this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x3f')](_0x246b1b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x39ba0d[_0x5937('0xcf')])for(const _0x2201e9 of _0x7f87eb){const [_0x15ebaa,_0xc6494c]=_0x39ba0d[0x0],[,_0x1195e7,_0x321d6d]=_0x15ebaa[_0x5937('0x4d')](':');if(_0xc6494c[_0x5937('0x36')]['isEqual'](_0x2201e9[_0x5937('0x40')])&&_0x39ba0d['shift'](),(_0x2201e9[_0x5937('0x35')][_0x5937('0xab')](_0xc6494c[_0x5937('0xbe')])||_0x2201e9['previousPosition']['isAfter'](_0xc6494c['start']))&&(_0x5937('0x12c')==_0x1195e7?_0x2201e9[_0x5937('0x4')]={'userId':_0x321d6d}:'deletion'==_0x1195e7&&(_0x2201e9[_0x5937('0x9c')]={'userId':_0x321d6d})),0x0==_0x39ba0d[_0x5937('0xcf')])break;}return _0x7f87eb;}[_0x5937('0xd7')](_0x9034a1){const _0x2f3942=new Map();for(let _0x363d0b=0x0;_0x363d0b<_0x9034a1[_0x5937('0xcf')];_0x363d0b++)_0x5937('0x61')===_0x9034a1[_0x363d0b][_0x5937('0x84')]?(_0x9034a1[_0x363d0b][_0x5937('0x8')]['startIndex']=_0x363d0b,_0x9034a1[_0x363d0b][_0x5937('0x8')][_0x5937('0x3b')]=_0x363d0b):(_0x5937('0xf3')===_0x9034a1[_0x363d0b]['type']?_0x9034a1[_0x363d0b]['item'][_0x5937('0xea')]=_0x363d0b:_0x5937('0xa')===_0x9034a1[_0x363d0b][_0x5937('0x84')]&&(_0x9034a1[_0x363d0b][_0x5937('0x8')][_0x5937('0x3b')]=_0x363d0b),_0x2f3942[_0x5937('0xa9')](_0x9034a1[_0x363d0b]['id'],_0x363d0b));for(const _0x3b70e of _0x2f3942[_0x5937('0xbf')]())_0x5937('0xf3')===_0x9034a1[_0x3b70e][_0x5937('0x84')]?_0x9034a1[_0x3b70e][_0x5937('0x8')][_0x5937('0x3b')]=_0x2f3942['get'](_0x9034a1[_0x3b70e][_0x5937('0x117')]):'elementEnd'===_0x9034a1[_0x3b70e][_0x5937('0x84')]&&(_0x9034a1[_0x3b70e][_0x5937('0x8')]['startIndex']=_0x2f3942[_0x5937('0x118')](_0x9034a1[_0x3b70e]['pairId']));}[_0x5937('0xc9')](_0x40a037){for(let _0x1c4558=0x0;_0x1c4558<_0x40a037[_0x5937('0xcf')];_0x1c4558++){if(_0x5937('0xf3')===_0x40a037[_0x1c4558][_0x5937('0x84')])_0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0xea')]=_0x1c4558;else{if(_0x5937('0xa')===_0x40a037[_0x1c4558]['type']){_0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0x3b')]=_0x1c4558;const _0x134498=_0x40a037[_0x1c4558]['item'][_0x5937('0xea')];_0x40a037[_0x134498][_0x5937('0x117')]=_0x40a037[_0x1c4558]['id'],_0x40a037[_0x1c4558][_0x5937('0x117')]=_0x40a037[_0x134498]['id'];}else _0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0xea')]=_0x1c4558,_0x40a037[_0x1c4558][_0x5937('0x8')][_0x5937('0x3b')]=_0x1c4558,_0x40a037[_0x1c4558][_0x5937('0x117')]=null;}_0x40a037[_0x1c4558]['markersStart']||(_0x40a037[_0x1c4558][_0x5937('0x22')]=[],_0x40a037[_0x1c4558]['markersEnd']=[]);}}[_0x5937('0x1d')](_0xe061fc,_0x38a676){const _0x18c570=_0xe061fc[_0x5937('0x5d')](_0x21ae48=>!_0x21ae48[_0x5937('0x4')]);for(let _0x420408=0x0;_0x420408<_0x38a676[_0x5937('0xcf')];_0x420408++)_0x38a676[_0x420408][_0x5937('0x4')]&&(_0x18c570[_0x420408][_0x5937('0x4')]=_0x38a676[_0x420408][_0x5937('0x4')]);}[_0x5937('0xe1')](_0x40a1b2){const _0x1bba66=JSON['parse'](_0x40a1b2),_0x5d9243=this[_0x5937('0x110')][_0x5937('0x47')]['view'][_0x5937('0xf8')],_0x3fbdaf=new _0x399ea3(_0x5d9243,_0x1bba66[_0x5937('0x65')](_0x559b01=>this[_0x5937('0x108')](_0x559b01)));return this[_0x5937('0x110')][_0x5937('0xfa')][_0x5937('0xaf')](_0x3fbdaf);}[_0x5937('0x108')](_0x1f349b){const _0x29b425=this['editor'][_0x5937('0x47')]['view'][_0x5937('0xf8')];if(_0x5937('0x8b')==typeof _0x1f349b)return new _0x9079bf(_0x29b425,_0x1f349b);{const _0x848a00=_0x1f349b[_0x5937('0x105')][_0x5937('0x65')](_0x5c46a3=>this['_getViewObj'](_0x5c46a3));return new(tt[_0x1f349b[(_0x5937('0x84'))]]||_0x1a7c58)(_0x29b425,_0x1f349b['name'],_0x1f349b[_0x5937('0x7c')],_0x848a00);}}['_getDiff'](_0x4cedef,_0x350239=null){const _0x451151=this[_0x5937('0x42')][_0x5937('0x90')](_0x4cedef),_0x4ba6f3=_0x350239?this[_0x5937('0x42')][_0x5937('0x90')](_0x350239):null,_0xf2057e=this[_0x5937('0xfb')](_0x451151,_0x4ba6f3),_0x96d159=_0xf2057e[_0xf2057e['length']-0x1],_0x577be0=new Map(),_0x345d31={'model':{},'attributes':{},'changes':[]},_0x53a9bc=new Set(),_0x1914de=new Map();for(let _0x4803b1=_0xf2057e['length']-0x1;_0x4803b1>=0x0;_0x4803b1--){const _0x39c33d=_0xf2057e[_0x4803b1];for(const _0x48c789 of Object['keys'](_0x39c33d[_0x5937('0x11a')]))if(_0x39c33d[_0x5937('0x11a')][_0x48c789][_0x5937('0x24')]){const _0x13350d=_0x39c33d['diffData'][_0x48c789][_0x5937('0x24')];_0x13350d[_0x5937('0x33')]?(_0x53a9bc[_0x5937('0x49')](_0x48c789),_0x1914de[_0x5937('0x89')](_0x48c789)&&_0x1914de[_0x5937('0x118')](_0x48c789)[_0x5937('0xc6')]==_0x13350d[_0x5937('0xc6')]?_0x1914de[_0x5937('0x2e')](_0x48c789):_0x1914de[_0x5937('0xa9')](_0x48c789,_0x13350d)):_0x1914de[_0x5937('0x89')](_0x48c789)?(_0x53a9bc[_0x5937('0x2e')](_0x48c789),_0x1914de[_0x5937('0x2e')](_0x48c789)):(_0x53a9bc['add'](_0x48c789),_0x1914de['set'](_0x48c789,_0x13350d));}else _0x53a9bc[_0x5937('0x49')](_0x48c789);}for(const _0x2848ed of _0x53a9bc){const _0x206f2b=_0x1914de['has'](_0x2848ed)&&!_0x1914de[_0x5937('0x118')](_0x2848ed)[_0x5937('0x33')];let _0x51a575=_0x206f2b?_0xf2057e['length']-0x1:0x0;const _0x4bec7a=_0x206f2b?-0x1:0x1;for(;_0xf2057e[_0x51a575];){const _0x2b0ce0=_0xf2057e[_0x51a575];if(_0x2b0ce0['diffData'][_0x2848ed]){const _0x5539e1=_0x206f2b?_0x2b0ce0[_0x5937('0x11a')][_0x2848ed][_0x5937('0x66')]:_0x2b0ce0[_0x5937('0x11a')][_0x2848ed]['attributesAfter'];_0x345d31[_0x5937('0x7c')][_0x2848ed]=_0x5539e1?_0x283255(_0x5539e1):{};break;}_0x51a575+=_0x4bec7a;}}for(const _0xdf6f9c of _0xf2057e){_0xdf6f9c['model']={};for(const _0x57838e of _0xdf6f9c[_0x5937('0x122')])_0x577be0[_0x5937('0xa9')](_0x57838e['id'],_0x57838e);for(const _0x5602c2 of _0x53a9bc){const _0x432644=_0xdf6f9c[_0x5937('0x11a')][_0x5602c2]?_0xdf6f9c[_0x5937('0x11a')][_0x5602c2][_0x5937('0xf')]:'[]',_0x300566=_0xdf6f9c[_0x5937('0x11a')][_0x5602c2]?_0xdf6f9c[_0x5937('0x11a')][_0x5602c2]['deletions']:'[]';_0xdf6f9c[_0x5937('0x116')][_0x5602c2]={'insertions':this[_0x5937('0xe1')](_0x432644),'deletions':this[_0x5937('0xe1')](_0x300566)};}}for(const _0x412d1d of _0x53a9bc){let _0x3b8ba7=null,_0x39a358=0x0;const _0x2b9525=new Map(Array['from'](_0x451151[_0x5937('0x116')][_0x412d1d]['insertions'][_0x5937('0x113')])[_0x5937('0x5d')](([_0x4e5f8f])=>!_0x4e5f8f[_0x5937('0xb5')](_0x5937('0x103'))));let _0x36b482=0x0;for(const _0x10e1c7 of _0xf2057e){const _0x5f5b47=this[_0x5937('0x10')](_0x10e1c7['model'][_0x412d1d][_0x5937('0xf')]);_0x10e1c7==_0x451151?(_0x3b8ba7=_0x5f5b47,_0x39a358=_0x3b8ba7['length'],_0x3b8ba7[_0x5937('0xc2')](_0x2af555=>{_0x2af555['id']=_0x36b482++;}),this[_0x5937('0xc9')](_0x3b8ba7)):this[_0x5937('0x1d')](_0x3b8ba7,_0x5f5b47);const _0x26444a=_0x3b8ba7[_0x5937('0x5d')](_0x110cca=>!_0x110cca[_0x5937('0x4')])[_0x5937('0x65')](_0x5d3eed=>_0x5d3eed['id']);let _0x1be607=0x0;const _0x14fb33=this['_makeTape'](_0x10e1c7['model'][_0x412d1d][_0x5937('0x98')]);_0x14fb33['forEach'](_0x525de2=>{_0x525de2[_0x5937('0x9c')]?_0x525de2['id']=_0x39a358++:_0x525de2['id']=_0x26444a[_0x1be607++];}),this[_0x5937('0xc9')](_0x14fb33),this[_0x5937('0x4f')](_0x3b8ba7,_0x5937('0x4')),this['_setDistance'](_0x14fb33,_0x5937('0x9c')),_0x10e1c7==_0x451151&&this['_markMarkers'](_0x3b8ba7,_0x2b9525),_0x3b8ba7=this[_0x5937('0xc1')](_0x3b8ba7,_0x14fb33),this[_0x5937('0xd7')](_0x3b8ba7),this['_setDistance'](_0x3b8ba7,_0x5937('0x9c'));}_0x3b8ba7=_0x3b8ba7[_0x5937('0x5d')](_0x47777b=>!(_0x47777b['isAdded']&&_0x47777b[_0x5937('0x9c')]));const _0x292081=new Map(_0x96d159[_0x5937('0x116')][_0x412d1d]['deletions'][_0x5937('0x113')]),_0x27803e=new Set(_0x2b9525['keys']());for(const _0xb42c74 of _0x292081[_0x5937('0xf2')]())_0x27803e[_0x5937('0x2e')](_0xb42c74);this['_markSuggestions'](_0x3b8ba7,_0x27803e),this['_fixObsoleteTags'](_0x3b8ba7),_0x3b8ba7=this['_removeMissingPairs'](_0x3b8ba7),_0x3b8ba7=this[_0x5937('0xae')](_0x3b8ba7),_0x3b8ba7=this[_0x5937('0x120')](_0x3b8ba7);const {root:_0x3a581c,changes:_0x264514}=this[_0x5937('0x16')](_0x3b8ba7,_0x577be0,_0x412d1d);_0x345d31[_0x5937('0x116')][_0x412d1d]=_0x3a581c;const _0x3302e2=_0x1914de[_0x5937('0x118')](_0x412d1d);if(_0x3302e2){const _0x51d8a8=_0x577be0[_0x5937('0x118')](_0x3302e2['userId']),_0x3cc433=new _0x4782d0({'author':_0x51d8a8,'type':_0x3302e2[_0x5937('0x33')]?'add':_0x5937('0x96'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x412d1d});_0x264514[_0x5937('0x7')](_0x3cc433),_0x345d31[_0x5937('0x7c')][_0x412d1d][_0x5937('0xee')]=_0x3cc433['id'];}_0x345d31[_0x5937('0x5a')]=_0x345d31['changes'][_0x5937('0xf7')](_0x264514);}return _0x345d31;}[_0x5937('0xd3')](_0x46b424,_0x5e6b90){for(let _0x73a6=0x0;_0x73a6<_0x46b424[_0x5937('0xcf')];_0x73a6++)for(const [_0xa6a1bd,_0x1e707d]of _0x5e6b90)_0x1e707d['start'][_0x5937('0xab')](_0x46b424[_0x73a6][_0x5937('0x35')])&&_0x46b424[_0x73a6][_0x5937('0x22')][_0x5937('0xaa')](_0xa6a1bd),_0x1e707d[_0x5937('0x36')][_0x5937('0xab')](_0x46b424[_0x73a6][_0x5937('0x40')])&&_0x46b424[_0x73a6][_0x5937('0x50')][_0x5937('0xaa')](_0xa6a1bd);}[_0x5937('0xc1')](_0x22dfba,_0x491bcb){let _0x583ade=[],_0x4e9726=0x0,_0x27a287=0x0;for(;_0x4e9726<_0x22dfba[_0x5937('0xcf')]||_0x27a287<_0x491bcb[_0x5937('0xcf')];){const _0x14617a=_0x22dfba[_0x4e9726]||{},_0x14ab15=_0x491bcb[_0x27a287]||{};if(_0x14617a['id']==_0x14ab15['id'])_0x4e9726++,_0x27a287++,_0x583ade[_0x5937('0xaa')](_0x14617a);else{if(_0x14ab15[_0x5937('0x9c')]&&_0x14617a[_0x5937('0x4')]){const {commonTape:_0x125684,iEnd:_0x49141b,jEnd:_0x405cc2}=this[_0x5937('0x0')](_0x22dfba,_0x4e9726,_0x491bcb,_0x27a287);_0x583ade=_0x583ade['concat'](_0x125684),_0x4e9726=_0x49141b,_0x27a287=_0x405cc2;}else _0x14ab15[_0x5937('0x9c')]?(_0x27a287++,_0x583ade[_0x5937('0xaa')](_0x14ab15)):(_0x4e9726++,_0x583ade['push'](_0x14617a));}}return _0x583ade;}['_markSuggestions'](_0x3a63fe,_0x2fad7c){const _0x68cec=[];for(let _0x6539d2=0x0;_0x6539d2<_0x3a63fe[_0x5937('0xcf')];_0x6539d2++){for(let _0x2ee587=0x0;_0x2ee587<_0x3a63fe[_0x6539d2]['markersStart'][_0x5937('0xcf')];_0x2ee587++){const _0x30d992=_0x3a63fe[_0x6539d2][_0x5937('0x22')][_0x2ee587];if(!_0x2fad7c['has'](_0x30d992))continue;const {group:_0x404c7a,type:_0x5dd303,authorId:_0x3770ef}=_0x343d1b(_0x30d992);_0x5937('0xbc')!=_0x404c7a||_0x5937('0x12c')!=_0x5dd303&&_0x5937('0x57')!=_0x5dd303||(_0x68cec[_0x5937('0x7')]({'type':_0x5dd303,'name':_0x30d992,'userId':_0x3770ef}),_0x3a63fe[_0x6539d2][_0x5937('0x22')][_0x5937('0xac')](_0x2ee587,0x1),_0x2ee587--);}_0x395d89(_0x3a63fe[_0x6539d2]);for(let _0x114756=0x0;_0x114756<_0x3a63fe[_0x6539d2][_0x5937('0x50')][_0x5937('0xcf')];_0x114756++){const _0x48ad0c=_0x3a63fe[_0x6539d2]['markersEnd'][_0x114756];if(!_0x2fad7c['has'](_0x48ad0c))continue;const {group:_0x1f9a97,type:_0x437672}=_0x343d1b(_0x48ad0c);if(_0x5937('0xbc')!=_0x1f9a97||_0x5937('0x12c')!=_0x437672&&_0x5937('0x57')!=_0x437672)continue;_0x3a63fe[_0x6539d2]['markersEnd'][_0x5937('0xac')](_0x114756,0x1),_0x114756--;const _0xa17ada=_0x68cec[_0x5937('0x4c')](_0xa6d21b=>_0xa6d21b[_0x5937('0x41')]==_0x48ad0c);_0xa17ada>-0x1&&_0x68cec[_0x5937('0xac')](_0xa17ada,0x1);}}function _0x343d1b(_0x4f93a0){const _0x25b293=_0x4f93a0['split'](':');return{'group':_0x25b293[0x0],'type':_0x25b293[0x1],'subType':_0x25b293[_0x5937('0xcf')]>=0x5?_0x25b293[0x2]:null,'id':_0x25b293[_0x5937('0xcf')]<0x5?_0x25b293[0x2]:_0x25b293[0x3],'authorId':_0x25b293[_0x5937('0xcf')]<0x5?_0x25b293[0x3]:_0x25b293[0x4],'markerCount':0x6==_0x25b293[_0x5937('0xcf')]?_0x25b293[0x5]:null};}function _0x395d89(_0x43839e){for(let _0x1b1c5c=0x0;_0x1b1c5c<_0x68cec[_0x5937('0xcf')];_0x1b1c5c++){if(_0x43839e[_0x5937('0x4')]&&'insertion'==_0x68cec[_0x1b1c5c][_0x5937('0x84')])return _0x43839e[_0x5937('0xa7')]=_0x68cec[_0x1b1c5c],void delete _0x43839e[_0x5937('0x4')];if(!_0x43839e[_0x5937('0x4')]&&!_0x43839e[_0x5937('0x9c')]&&_0x5937('0x57')==_0x68cec[_0x1b1c5c][_0x5937('0x84')])return void(_0x43839e[_0x5937('0xf4')]=_0x68cec[_0x1b1c5c]);}}}[_0x5937('0x4f')](_0x470af5,_0x55dd3e){let _0x2ca13f=0x0,_0x54fa80=!0x1;const _0x7fad4=new Map();for(const _0x71ec43 of _0x470af5)_0x71ec43[_0x55dd3e]?_0x54fa80&&(_0x2ca13f++,_0x54fa80=!0x1):(_0x2ca13f++,_0x54fa80=!0x0),_0x7fad4[_0x5937('0xa9')](_0x71ec43['id'],_0x2ca13f);for(let _0xf29908=0x0;_0xf29908<_0x470af5['length'];_0xf29908++){if(_0x5937('0x9c')==_0x55dd3e&&_0x470af5[_0xf29908]['isAdded']||_0x5937('0x4')==_0x55dd3e&&_0x470af5[_0xf29908][_0x5937('0x9c')])continue;if(_0x5937('0x61')==_0x470af5[_0xf29908][_0x5937('0x84')]){_0x470af5[_0xf29908][_0x5937('0x97')]=0x0;continue;}const _0xa22779=_0x7fad4[_0x5937('0x118')](_0x470af5[_0xf29908]['pairId']),_0x269646=_0x7fad4[_0x5937('0x118')](_0x470af5[_0xf29908]['id']);_0x470af5[_0xf29908][_0x5937('0x97')]=_0xa22779-_0x269646;}}['_getRevisionsRange'](_0x449146,_0x354dd5,_0x2a6df1=!0x1){const _0x339fa1=[];let _0x4d410f=this[_0x5937('0x42')]['getIndex'](_0x449146),_0x3c8a56=this['repository'][_0x5937('0xe')](_0x354dd5);for(-0x1==_0x3c8a56&&(_0x3c8a56=this[_0x5937('0x42')][_0x5937('0xf0')][_0x5937('0xcf')],_0x2a6df1=!0x1);_0x4d410f<_0x3c8a56;)_0x339fa1[_0x5937('0xaa')](this[_0x5937('0x42')]['getRevision'](_0x4d410f)),_0x4d410f++;return _0x2a6df1&&_0x339fa1[_0x5937('0xaa')](this[_0x5937('0x42')]['getRevision'](_0x4d410f)),_0x339fa1;}[_0x5937('0x0')](_0x38c305,_0x58a8b8,_0x91f653,_0x503172){const _0x6efe27=this['editor']['model'][_0x5937('0x11d')];let _0xa2de83=_0x58a8b8;for(;_0x38c305[_0xa2de83]&&_0x38c305[_0xa2de83][_0x5937('0x4')];)_0xa2de83++;let _0x4039b7=_0x503172;for(;_0x91f653[_0x4039b7]&&_0x91f653[_0x4039b7]['isRemoved'];)_0x4039b7++;_0x5996c2(_0x38c305,_0x58a8b8,_0xa2de83),_0x5996c2(_0x91f653,_0x503172,_0x4039b7);const _0x3a521d=_0x91f653[_0x5937('0xdd')](_0x503172,_0x4039b7)[_0x5937('0xf7')](_0x38c305[_0x5937('0xdd')](_0x58a8b8,_0xa2de83));return _0x3a521d[_0x5937('0xc8')]((_0x33bd63,_0x1a8dee)=>_0x33bd63[_0x5937('0x10f')]!=_0x1a8dee[_0x5937('0x10f')]?_0x33bd63[_0x5937('0x10f')]-_0x1a8dee[_0x5937('0x10f')]:_0x33bd63['level']!=_0x1a8dee[_0x5937('0x124')]?_0x33bd63[_0x5937('0x124')]-_0x1a8dee[_0x5937('0x124')]:_0x33bd63['distance']!=_0x1a8dee['distance']?_0x1a8dee[_0x5937('0x97')]-_0x33bd63[_0x5937('0x97')]:!!_0x33bd63['isAdded']!=!!_0x1a8dee[_0x5937('0x4')]?-0x1==_0x33bd63['side']||0x0==_0x33bd63['side']?_0x33bd63[_0x5937('0x4')]?-0x1:0x1:_0x33bd63[_0x5937('0x4')]?0x1:-0x1:_0x33bd63[_0x5937('0x5')]-_0x1a8dee['index']),{'commonTape':_0x3a521d,'iEnd':_0xa2de83,'jEnd':_0x4039b7};function _0x5996c2(_0x124c29,_0x3046bf,_0x4424ea){let _0x5eff8b=-0x1,_0x156786=Number['POSITIVE_INFINITY'],_0x3e5a3b=!0x0;for(let _0x10b9cf=_0x3046bf;_0x10b9cf<_0x4424ea;_0x10b9cf++)if(_0x6efe27['isInline'](_0x124c29[_0x10b9cf]['item'])||(_0x3e5a3b=!0x1),_0x124c29[_0x10b9cf][_0x5937('0x8')]['startIndex']<_0x3046bf&&(_0x5eff8b=_0x10b9cf),_0x124c29[_0x10b9cf][_0x5937('0x8')][_0x5937('0x3b')]>=_0x4424ea){_0x156786=_0x10b9cf;break;}_0x3e5a3b&&(_0x5eff8b=_0x4424ea-0x1);for(let _0x516cef=_0x3046bf;_0x516cef<_0x4424ea;_0x516cef++)_0x124c29[_0x516cef]['side']=_0x516cef<=_0x5eff8b?-0x1:_0x516cef<_0x156786?0x0:0x1,_0x124c29[_0x516cef]['index']=_0x516cef;let _0x4a74e2=0x0;for(let _0x525d82=_0x3046bf;_0x525d82<=_0x5eff8b;_0x525d82++)0x0==_0x124c29[_0x525d82][_0x5937('0x97')]?_0x124c29[_0x525d82]['level']=_0x4a74e2:(_0x4a74e2++,_0x124c29[_0x525d82][_0x5937('0x124')]=_0x4a74e2,_0x4a74e2++);for(let _0x4bba1d=_0x3046bf;_0x4bba1d<_0x4424ea;_0x4bba1d++)0x0==_0x124c29[_0x4bba1d][_0x5937('0x10f')]&&(_0x124c29[_0x4bba1d][_0x5937('0x124')]=_0x4a74e2);_0x4a74e2=0x0;for(let _0x423a31=_0x4424ea-0x1;_0x423a31>=_0x156786;_0x423a31--)0x0==_0x124c29[_0x423a31][_0x5937('0x97')]?_0x124c29[_0x423a31][_0x5937('0x124')]=_0x4a74e2:(_0x4a74e2--,_0x124c29[_0x423a31][_0x5937('0x124')]=_0x4a74e2,_0x4a74e2--);}}[_0x5937('0xa4')](_0x783952){const _0x2f949c=new Map(),_0x557f94=this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x11d')];for(let _0x546014=0x1;_0x546014<_0x783952[_0x5937('0xcf')];_0x546014++){let _0x5508a1,_0x43fbc6,_0x237484;const _0x1f78fb=_0x783952[_0x546014],_0x28beee=_0x783952[_0x546014-0x1];if(_0x5937('0x61')==_0x1f78fb[_0x5937('0x84')])continue;if(_0x1f78fb[_0x5937('0x84')]!=_0x28beee['type'])continue;if(!_0x557f94['isBlock'](_0x28beee[_0x5937('0x8')])||_0x557f94['isLimit'](_0x28beee[_0x5937('0x8')]))continue;if(!_0x557f94['isBlock'](_0x1f78fb[_0x5937('0x8')])||_0x557f94[_0x5937('0xef')](_0x1f78fb[_0x5937('0x8')]))continue;if((_0x783952[_0x546014]['isAdded']||_0x783952[_0x546014][_0x5937('0xa7')])&&_0x783952[_0x546014-0x1]['isRemoved'])_0x5508a1=_0x783952[_0x546014],_0x43fbc6=_0x783952[_0x546014-0x1],_0x237484=_0x546014-0x1;else{if(!_0x783952[_0x546014][_0x5937('0x9c')]||!_0x783952[_0x546014-0x1]['isAdded']&&!_0x783952[_0x546014-0x1][_0x5937('0xa7')])continue;_0x5508a1=_0x783952[_0x546014-0x1],_0x43fbc6=_0x783952[_0x546014],_0x237484=_0x546014;}const _0x46c74f=_0x5508a1[_0x5937('0x124')]==_0x43fbc6[_0x5937('0x124')],_0x355ea3=Math[_0x5937('0x21')](_0x5508a1[_0x5937('0x124')])<Math[_0x5937('0x21')](_0x43fbc6[_0x5937('0x124')])&&0x0==_0x43fbc6[_0x5937('0x97')];(_0x46c74f||_0x355ea3)&&(_0x2f949c['set'](_0x43fbc6['id'],_0x5508a1['id']),_0x783952['splice'](_0x237484,0x1),_0x546014--,_0x5508a1[_0x5937('0x4')]=!0x1);}for(let _0x4300f=0x0;_0x4300f<_0x783952['length'];_0x4300f++)_0x2f949c[_0x5937('0x89')](_0x783952[_0x4300f][_0x5937('0x117')])&&(_0x783952[_0x4300f][_0x5937('0x117')]=_0x2f949c[_0x5937('0x118')](_0x783952[_0x4300f][_0x5937('0x117')]));}['_removeMissingPairs'](_0xbc141){const _0x2e14d6=new Set(_0xbc141[_0x5937('0x65')](_0x249919=>_0x249919['id']));for(let _0x125e6f=0x0;_0x125e6f<_0xbc141[_0x5937('0xcf')];_0x125e6f++)_0x2e14d6[_0x5937('0x89')](_0xbc141[_0x125e6f][_0x5937('0x117')])||0x0==_0xbc141[_0x125e6f][_0x5937('0x97')]||(_0xbc141[_0x125e6f][_0x5937('0xc7')]=!0x0);return _0xbc141[_0x5937('0x5d')](_0x7b8e81=>!_0x7b8e81[_0x5937('0xc7')]);}[_0x5937('0xae')](_0x32234b){const _0x357c1e=new Set();for(let _0x353788=0x0;_0x353788<_0x32234b[_0x5937('0xcf')];_0x353788++){if(_0x357c1e['has'](_0x32234b[_0x353788]['id'])&&_0x32234b[_0x353788][_0x5937('0x9c')]&&(_0x32234b[_0x353788][_0x5937('0xc7')]=!0x0),_0x32234b[_0x353788][_0x5937('0xc7')])continue;if(0x0==_0x32234b[_0x353788][_0x5937('0x97')])continue;if(_0x5937('0xf3')!=_0x32234b[_0x353788][_0x5937('0x84')])continue;if(null==_0x32234b[_0x353788]['pairId'])continue;let _0x1c7a84=_0x353788+0x1,_0xe2e7fe=0x0;for(;_0x32234b[_0x1c7a84]['id']!=_0x32234b[_0x353788][_0x5937('0x117')];)_0x5937('0xf3')==_0x32234b[_0x1c7a84][_0x5937('0x84')]?_0xe2e7fe++:_0x5937('0xa')==_0x32234b[_0x1c7a84][_0x5937('0x84')]&&_0xe2e7fe--,_0x1c7a84++;if(0x0!=_0xe2e7fe){if(_0x32234b[_0x353788][_0x5937('0x9c')])_0x32234b[_0x353788][_0x5937('0xc7')]=!0x0;else for(;_0x1c7a84!=_0x353788;)_0x32234b[_0x1c7a84][_0x5937('0x9c')]&&0x0!=_0x32234b[_0x1c7a84][_0x5937('0x97')]&&(_0x32234b[_0x1c7a84][_0x5937('0xc7')]=!0x0,_0x357c1e[_0x5937('0x49')](_0x32234b[_0x1c7a84][_0x5937('0x117')])),_0x1c7a84--;}}return _0x32234b['filter'](_0xc17808=>!_0xc17808[_0x5937('0xc7')]);}[_0x5937('0x120')](_0x11d5c3){const _0x374ef3=this['editor'][_0x5937('0x116')][_0x5937('0x11d')];for(let _0x43271c=0x0;_0x43271c<_0x11d5c3[_0x5937('0xcf')];_0x43271c++){if(!(_0x11d5c3[_0x43271c][_0x5937('0x4')]||_0x11d5c3[_0x43271c][_0x5937('0xa7')]||_0x11d5c3[_0x43271c][_0x5937('0x9c')]||_0x11d5c3[_0x43271c][_0x5937('0xf4')]))continue;if(0x0==_0x11d5c3[_0x43271c][_0x5937('0x97')])continue;const _0x2a48ec=_0x11d5c3[_0x43271c][_0x5937('0x8')];_0x374ef3[_0x5937('0xe2')](_0x2a48ec)||_0x374ef3['isLimit'](_0x2a48ec)||(_0x11d5c3[_0x43271c][_0x5937('0x4')]&&delete _0x11d5c3[_0x43271c][_0x5937('0x4')],_0x11d5c3[_0x43271c][_0x5937('0xa7')]&&delete _0x11d5c3[_0x43271c][_0x5937('0xa7')],_0x11d5c3[_0x43271c][_0x5937('0xf4')]&&delete _0x11d5c3[_0x43271c][_0x5937('0xf4')],_0x11d5c3[_0x43271c][_0x5937('0x9c')]&&(_0x11d5c3[_0x43271c][_0x5937('0xc7')]=!0x0));}return _0x11d5c3[_0x5937('0x5d')](_0x4e36aa=>!_0x4e36aa[_0x5937('0xc7')]);}[_0x5937('0x16')](_0x4cb459,_0x335474,_0x1de706){const _0x159f52=new _0x3be22e(),_0x374369=[],_0x2264e4=new Map(),_0x35f6b6=this[_0x5937('0x110')][_0x5937('0x116')],_0x187eb0=_0x35f6b6[_0x5937('0x11d')],_0x2194ee=[_0x159f52],_0x3524af={},_0x527352={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x43b3b8=null;const _0x1e36d7=[0x0];for(let _0x1deced=0x0;_0x1deced<_0x4cb459[_0x5937('0xcf')];_0x1deced++){let _0x4df175,_0x418e04;if(_0x5937('0xf3')===_0x4cb459[_0x1deced]['type']){_0x4df175=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7);const _0x48de7e=new _0x586de6(_0x4cb459[_0x1deced]['item'][_0x5937('0x41')],_0x4cb459[_0x1deced][_0x5937('0x8')][_0x5937('0x54')]());_0x2194ee[0x0][_0x5937('0x2f')](_0x48de7e),_0x1e36d7[_0x5937('0xaa')](0x0),_0x2194ee['unshift'](_0x48de7e),_0x418e04=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x43b3b8=null;}else{if(_0x5937('0xa')===_0x4cb459[_0x1deced][_0x5937('0x84')])_0x2194ee[_0x5937('0x17')](),_0x4df175=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x1e36d7[_0x5937('0x8a')](),_0x1e36d7[_0x1e36d7[_0x5937('0xcf')]-0x1]++,_0x418e04=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x43b3b8=null;else{if(_0x4df175=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7),_0x43b3b8&&_0x4df0a3(_0x43b3b8,_0x4cb459[_0x1deced][_0x5937('0x8')]))_0x43b3b8[_0x5937('0xf6')]+=_0x4cb459[_0x1deced]['item'][_0x5937('0xfa')];else{const _0x15b30c=new _0x45b63b(_0x4cb459[_0x1deced]['item']['data'],_0x4cb459[_0x1deced][_0x5937('0x8')][_0x5937('0x54')]());_0x2194ee[0x0]['_appendChild'](_0x15b30c),_0x43b3b8=_0x15b30c;}_0x1e36d7[_0x1e36d7[_0x5937('0xcf')]-0x1]+=_0x4cb459[_0x1deced][_0x5937('0x8')][_0x5937('0x8e')],_0x418e04=_0x35f6b6[_0x5937('0x73')](_0x159f52,_0x1e36d7);}}for(const _0xa22f2f of _0x4cb459[_0x1deced][_0x5937('0x22')])_0x2264e4[_0x5937('0xa9')](_0xa22f2f,{'start':_0x4df175,'end':null});_0x271263(_0x5937('0xf4'),_0x1deced,_0x4df175,_0x418e04),_0x271263(_0x5937('0xa7'),_0x1deced,_0x4df175,_0x418e04),_0x271263(_0x5937('0x9c'),_0x1deced,_0x4df175,_0x418e04),_0x271263(_0x5937('0x4'),_0x1deced,_0x4df175,_0x418e04);for(const _0x58d2ce of _0x4cb459[_0x1deced][_0x5937('0x50')]){_0x2264e4[_0x5937('0x118')](_0x58d2ce)[_0x5937('0x36')]=_0x418e04;}}for(const [_0x40f4fe,_0xd50472]of _0x2264e4){const _0xb0c3d5=this[_0x5937('0x110')]['model'][_0x5937('0x7a')](_0xd50472[_0x5937('0xbe')],_0xd50472[_0x5937('0x36')]);_0x159f52[_0x5937('0x113')]['set'](_0x40f4fe,_0xb0c3d5);}return _0x374369['sort']((_0x3d388b,_0x3b0db1)=>{const _0x33e173=_0x159f52[_0x5937('0x113')][_0x5937('0x118')](_0x5937('0x103')+_0x3d388b['id']),_0x3c8c71=_0x159f52[_0x5937('0x113')][_0x5937('0x118')]('revision:'+_0x3b0db1['id']);return _0x33e173['start'][_0x5937('0x11b')](_0x3c8c71[_0x5937('0xbe')])?-0x1:_0x33e173['start'][_0x5937('0x31')](_0x3c8c71[_0x5937('0xbe')])?0x1:_0x33e173['end']['isBefore'](_0x3c8c71['end'])?-0x1:_0x33e173[_0x5937('0x36')][_0x5937('0x31')](_0x3c8c71['end'])?0x1:_0x5937('0x49')===_0x3d388b[_0x5937('0x84')]?-0x1:0x1;}),{'root':_0x159f52,'changes':_0x374369};function _0x271263(_0x15412f,_0xae7ffb,_0x419356,_0x450ca6){const _0x3ade5a=!!_0x4cb459[_0xae7ffb][_0x15412f],_0x1dc386=_0x3ade5a?_0x4cb459[_0xae7ffb][_0x15412f][_0x5937('0xc6')]:null,_0x5ec0c7=_0xae7ffb===_0x4cb459[_0x5937('0xcf')]-0x1,_0x564669=_0x527352[_0x15412f][0x0],_0x582a55=_0x187eb0[_0x5937('0x80')](_0x4cb459[_0xae7ffb][_0x5937('0x8')]);!_0x3524af[_0x15412f]&&_0x3ade5a?_0x3524af[_0x15412f]={'start':_0x419356,'tapeItem':_0x4cb459[_0xae7ffb],'userId':_0x1dc386,'type':_0x15412f}:_0x3524af[_0x15412f]&&!_0x3ade5a?(_0x3524af[_0x15412f][_0x5937('0x36')]=_0x419356,_0x47d869(_0x3524af[_0x15412f]),_0x3524af[_0x15412f]=null):_0x3524af[_0x15412f]&&_0x3ade5a&&_0x3524af[_0x15412f]['userId']!==_0x1dc386&&(_0x3524af[_0x15412f][_0x5937('0x36')]=_0x419356,_0x564669&&_0x564669[_0x5937('0xc6')]===_0x3524af[_0x15412f][_0x5937('0xc6')]||_0x47d869(_0x3524af[_0x15412f]),_0x3524af[_0x15412f]={'start':_0x419356,'tapeItem':_0x4cb459[_0xae7ffb],'userId':_0x1dc386,'type':_0x15412f}),_0x3524af[_0x15412f]&&_0x582a55&&(_0x5937('0xf3')!==_0x4cb459[_0xae7ffb][_0x5937('0x84')]||_0x564669&&_0x564669[_0x5937('0xc6')]===_0x1dc386||_0x527352[_0x15412f]['unshift']({'userId':_0x1dc386,'object':_0x4cb459[_0xae7ffb][_0x5937('0x8')],'change':_0x3524af[_0x15412f]}),_0x5937('0xa')===_0x4cb459[_0xae7ffb][_0x5937('0x84')]&&_0x564669&&_0x564669[_0x5937('0x106')]===_0x4cb459[_0xae7ffb]['item']&&(_0x527352[_0x15412f][_0x5937('0x17')](),_0x3524af[_0x15412f]=_0x564669[_0x5937('0x59')])),_0x3524af[_0x15412f]&&_0x5ec0c7&&(_0x3524af[_0x15412f][_0x5937('0x36')]=_0x450ca6,_0x47d869(_0x3524af[_0x15412f]),_0x3524af[_0x15412f]=null);}function _0x47d869({start:_0x5d3375,end:_0x4631c0,tapeItem:_0x165323,userId:_0x3a7638,type:_0x44f15a}){const _0x21504e=_0x165323['item'],_0x12c9c1=_0x35f6b6['schema'][_0x5937('0xe2')](_0x21504e)&&!_0x35f6b6[_0x5937('0x11d')][_0x5937('0xef')](_0x21504e),_0x4df35c=_0x5d3375['nodeAfter']==_0x4631c0[_0x5937('0x5c')]&&_0x4631c0[_0x5937('0x38')];if(_0x12c9c1&&_0x4df35c)return;const _0x1b12c8=_0x35f6b6['createRange'](_0x5d3375,_0x4631c0),_0x3ce3e4=_0x335474[_0x5937('0x118')](_0x3a7638),_0x2489bf=new _0x4782d0({'author':_0x3ce3e4,'type':_0x5937('0x4')==_0x44f15a||'isAddSuggestion'==_0x44f15a?'add':_0x5937('0x96'),'data':{'isSuggestion':_0x5937('0xa7')==_0x44f15a||_0x5937('0xf4')==_0x44f15a},'createdAt':new Date(),'rootName':_0x1de706});_0x374369[_0x5937('0xaa')](_0x2489bf),_0x159f52['markers'][_0x5937('0xa9')]('revision:'+_0x2489bf['id'],_0x1b12c8);}function _0x4df0a3(_0x435348,_0x541d37){const _0x2ab0b9=_0x435348[_0x5937('0x54')](),_0x801a95=_0x541d37[_0x5937('0x54')]();for(const _0x5d9b5b of _0x2ab0b9){if(_0x5d9b5b[0x1]!==_0x541d37['getAttribute'](_0x5d9b5b[0x0]))return!0x1;_0x801a95['next']();}return _0x801a95[_0x5937('0x1e')]()[_0x5937('0x53')];}}[_0x5937('0xed')](){this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0x11'))[_0x5937('0x28')]({'view':_0x5937('0xd2')}),this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0xce'))['markerToHighlight']({'model':_0x5937('0xd2'),'view':_0x4e8fff=>{const _0x102bba=_0x4e8fff[_0x5937('0x20')][_0x5937('0x4d')](':')[0x1],_0xdb0714=this[_0x5937('0x7f')](_0x102bba);if(!_0xdb0714)return null;const _0x4e6446='add'==_0xdb0714['type']?_0x5937('0x12c'):'deletion',_0x38f223=[_0x5937('0x125'),_0x5937('0xde')+_0x4e6446];return _0xdb0714[_0x5937('0xfa')][_0x5937('0xd9')]&&_0x38f223[_0x5937('0xaa')](_0x5937('0xde')+_0x4e6446+_0x5937('0x10b')),this[_0x5937('0xd4')]==_0xdb0714&&_0x38f223['push']('ck-suggestion-marker--active'),{'classes':_0x38f223,'attributes':{'data-change-id':_0x102bba}};}}),this['editor']['conversion'][_0x5937('0x44')](_0x5937('0x11'))[_0x5937('0x49')](_0x40f2e6=>{_0x40f2e6['on'](_0x5937('0xdf'),(_0x166375,_0x43e87f,_0x40a166)=>{const _0x12c35f=_0x43e87f['viewItem']['getChild'](0x0);if(!_0x12c35f||!_0x12c35f['is']('element',_0x5937('0x11e')))return;if(!_0x40a166[_0x5937('0xd6')][_0x5937('0x3c')](_0x12c35f,{'attributes':['vid_start',_0x5937('0x56')]}))return;const _0x89db36=_0x43e87f['modelRange'][_0x5937('0xbe')][_0x5937('0x7b')];_0x40a166[_0x5937('0x129')][_0x5937('0xb6')](_0x5937('0x34'),_0x12c35f[_0x5937('0x18')](_0x5937('0x34')),_0x89db36),_0x40a166[_0x5937('0x129')]['setAttribute']('vid_end',_0x12c35f[_0x5937('0x18')]('vid_end'),_0x89db36);},{'priority':_0x5937('0x4b')});}),this[_0x5937('0x110')]['conversion'][_0x5937('0x44')]('upcast')[_0x5937('0x49')](_0x1546da=>{_0x1546da['on']('element',(_0x48380a,_0x53e37e,_0x7f1daa)=>{if(!_0x7f1daa[_0x5937('0xd6')][_0x5937('0x3c')](_0x53e37e['viewItem'],{'attributes':['vid_start',_0x5937('0x56')]}))return;if(_0x53e37e[_0x5937('0x19')][_0x5937('0x12a')])return;const _0x50f373=_0x53e37e[_0x5937('0x19')][_0x5937('0xbe')][_0x5937('0x7b')];_0x50f373[_0x5937('0x128')](_0x5937('0x34'))||_0x50f373['hasAttribute'](_0x5937('0x23'))||(_0x7f1daa[_0x5937('0x129')][_0x5937('0xb6')](_0x5937('0x34'),_0x53e37e[_0x5937('0xca')][_0x5937('0x18')](_0x5937('0x34')),_0x50f373),_0x7f1daa['writer'][_0x5937('0xb6')]('vid_end',_0x53e37e[_0x5937('0xca')][_0x5937('0x18')](_0x5937('0x56')),_0x50f373));},{'priority':'low'});}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0x11'))[_0x5937('0x29')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x5937('0x23'),'value':_0x4d900a=>_0x4d900a[_0x5937('0x18')]('vid')}}),this[_0x5937('0x110')][_0x5937('0x116')]['schema']['on']('checkAttribute',(_0x4db79d,[,_0x52924f])=>{[_0x5937('0x34'),_0x5937('0x56'),_0x5937('0x23')][_0x5937('0xec')](_0x52924f)&&(_0x4db79d[_0x5937('0x9')]=!0x0,_0x4db79d[_0x5937('0x2')]());},{'priority':_0x5937('0xd1')}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0x6e'))[_0x5937('0x49')](_0x1f8834=>{_0x1f8834['on'](_0x5937('0x4e'),(_0x171ee6,_0x2d32da,_0x48fae4)=>{if('\x20'!=_0x2d32da[_0x5937('0x8')][_0x5937('0xfa')]||_0x2d32da['item'][_0x5937('0x5c')][_0x5937('0x6c')]>0x1)return;if(!_0x48fae4[_0x5937('0xd6')][_0x5937('0x3c')](_0x2d32da[_0x5937('0x8')],_0x171ee6[_0x5937('0x41')]))return;const _0x4e939b=_0x48fae4[_0x5937('0x129')],_0xeb720e=_0x48fae4[_0x5937('0x74')][_0x5937('0x4a')](_0x2d32da[_0x5937('0x14')]);_0x4e939b[_0x5937('0x102')](_0xeb720e,_0x4e939b[_0x5937('0xe4')](_0x5937('0xd8')));});}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0x6e'))[_0x5937('0xb3')]({'model':_0x5937('0xd2')}),this[_0x5937('0x110')][_0x5937('0x47')][_0x5937('0xda')]['on']('addMarker:revision',function(_0x2dcd4f){const _0x9ada2c=_0x2dcd4f[_0x5937('0xa8')][_0x5937('0x118')](_0x5937('0x3a'));return(_0x5408d8,_0x902b36,_0x3c0d25)=>{const _0x3bd44d=_0x902b36[_0x5937('0x20')][_0x5937('0x4d')](':')[0x1],_0x59a08f=_0x9ada2c[_0x5937('0x7f')](_0x3bd44d);if(!_0x59a08f)return null;const _0x1493b0=_0x5937('0x49')==_0x59a08f[_0x5937('0x84')]?'split':_0x5937('0xfe');if(!_0x3c0d25['consumable'][_0x5937('0xe9')](_0x902b36['markerRange'],_0x5408d8[_0x5937('0x41')]))return;const _0x4d7e41=_0x902b36[_0x5937('0x9b')][_0x5937('0x1a')](),_0x3edb87=_0x902b36[_0x5937('0x9b')][_0x5937('0xbe')],_0x878b24=_0x2dcd4f[_0x5937('0x116')][_0x5937('0x11d')];let _0x140928=null,_0x5cc16f=null,_0x3fa81b=!0x1,_0x5e0a1f=!0x1;for(const _0x13e0d4 of _0x4d7e41){const _0x182463=_0x13e0d4[_0x5937('0x8')];_0x3fa81b=_0x3fa81b||_0x878b24[_0x5937('0xa6')](_0x182463);const _0x478170=_0x3c0d25[_0x5937('0x74')][_0x5937('0x55')](_0x182463);if(_0x478170&&_0x478170['getCustomProperty'](_0x5937('0x6')))return;'elementEnd'==_0x13e0d4[_0x5937('0x84')]&&(_0x878b24[_0x5937('0xe2')](_0x182463)&&!_0x878b24[_0x5937('0xef')](_0x182463)&&(_0x182463[_0x5937('0x43')]||_0x3edb87['isAtEnd']?_0x140928&&_0x140928[_0x5937('0x5c')]==_0x182463||(_0x140928=_0x182463,_0x242b9f(_0x13e0d4[_0x5937('0x35')]),_0x5e0a1f=!0x0):_0x5cc16f=_0x5cc16f||_0x13e0d4[_0x5937('0x35')]));}function _0x242b9f(_0x5cce4e){const _0x5dd5b5=_0x3c0d25[_0x5937('0x129')][_0x5937('0x72')](_0x5937('0xd8'),{'class':_0x5937('0xde')+_0x1493b0}),_0x1aaba6=_0x3c0d25[_0x5937('0x74')]['toViewPosition'](_0x5cce4e);_0x59a08f['data'][_0x5937('0xd9')]&&_0x3c0d25[_0x5937('0x129')][_0x5937('0x94')](_0x5937('0xde')+_0x1493b0+'-new',_0x5dd5b5),_0x9ada2c[_0x5937('0xd4')]==_0x59a08f&&_0x3c0d25['writer']['addClass'](_0x5937('0x64'),_0x5dd5b5),_0x3c0d25[_0x5937('0x129')][_0x5937('0x6a')](_0x1aaba6,_0x5dd5b5),_0x3c0d25['mapper']['bindElementToMarker'](_0x5dd5b5,_0x902b36['markerName']);}_0x3fa81b||_0x5e0a1f||!_0x5cc16f||_0x242b9f(_0x5cc16f);};}(this['editor']),{'priority':'high'}),this[_0x5937('0x110')][_0x5937('0x47')]['downcastDispatcher']['on'](_0x5937('0xb'),(_0x1bb0d8,_0x34d98a,_0x2901c1)=>{const _0x143763=_0x2901c1[_0x5937('0x74')][_0x5937('0x112')](_0x34d98a[_0x5937('0x20')]);if(_0x143763)for(const _0x4b8d70 of _0x143763)(_0x4b8d70[_0x5937('0xe7')](_0x5937('0xb7'))||_0x4b8d70['hasClass'](_0x5937('0x77')))&&(_0x2901c1['mapper'][_0x5937('0x6f')](_0x4b8d70,_0x34d98a[_0x5937('0x20')]),_0x2901c1[_0x5937('0x129')][_0x5937('0x96')](_0x4b8d70));},{'priority':_0x5937('0x76')}),this[_0x5937('0x110')]['editing']['downcastDispatcher']['on'](_0x5937('0xc0'),(_0x3a1d3e,_0x55882c,_0x6e9cc5)=>{const _0x1c0a8d=_0x55882c[_0x5937('0x20')]['split'](':')[0x1],_0x45812e=this[_0x5937('0x7f')](_0x1c0a8d);if(!_0x45812e)return null;const _0x16355c='add'==_0x45812e[_0x5937('0x84')]?_0x5937('0x4d'):_0x5937('0xfe');if(_0x6e9cc5['consumable'][_0x5937('0xe9')](_0x55882c[_0x5937('0x9b')],_0x3a1d3e[_0x5937('0x41')]))for(const _0x4334b2 of _0x55882c[_0x5937('0x9b')][_0x5937('0x119')]()){if(!_0x4334b2['is'](_0x5937('0x123'),_0x5937('0xe8')))continue;const _0x3cae18=_0x6e9cc5[_0x5937('0x129')][_0x5937('0x72')](_0x5937('0xd8'),{'class':_0x5937('0xde')+_0x16355c}),_0x530f25=_0x6e9cc5[_0x5937('0x74')][_0x5937('0x63')](this['editor'][_0x5937('0x116')][_0x5937('0x67')](_0x4334b2));_0x45812e[_0x5937('0xfa')]['isSuggestion']&&_0x6e9cc5['writer']['addClass'](_0x5937('0xde')+_0x16355c+'-new',_0x3cae18),this['activeChange']==_0x45812e&&_0x6e9cc5[_0x5937('0x129')]['addClass'](_0x5937('0x64'),_0x3cae18),_0x6e9cc5[_0x5937('0x129')][_0x5937('0x6a')](_0x530f25,_0x3cae18),_0x6e9cc5['mapper'][_0x5937('0xeb')](_0x3cae18,_0x55882c['markerName']);}},{'priority':_0x5937('0x76')}),this['editor']['model'][_0x5937('0xf8')]['on'](_0x5937('0x59'),()=>{this[_0x5937('0x110')][_0x5937('0x47')][_0x5937('0x86')][_0x5937('0x59')](_0x4be5d1=>{for(const _0x5eaa52 of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')]['getRootNames']()){const _0x12f28b=this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0xf8')][_0x5937('0x8d')](_0x5eaa52),_0x2ef7ca=this[_0x5937('0x110')]['editing'][_0x5937('0x86')][_0x5937('0xf8')][_0x5937('0x8d')](_0x5eaa52);if(_0x2ef7ca){const _0x3951f1=_0x12f28b['getAttribute'](_0x5937('0xee'));if(_0x4be5d1[_0x5937('0x10e')](_0x5937('0x2a'),_0x2ef7ca),_0x4be5d1['removeClass'](_0x5937('0xb2'),_0x2ef7ca),_0x4be5d1[_0x5937('0x45')](_0x5937('0xbd'),_0x2ef7ca),_0x4be5d1[_0x5937('0x45')](_0x5937('0x46'),_0x2ef7ca),_0x3951f1){const _0x46fe2c=this[_0x5937('0x7f')](_0x3951f1);if(!_0x46fe2c)return null;_0x4be5d1[_0x5937('0xb6')]('data-change-id',_0x3951f1,_0x2ef7ca),_0x4be5d1['addClass'](_0x5937('0x26')+_0x46fe2c[_0x5937('0x84')],_0x2ef7ca),this[_0x5937('0xd4')]==_0x46fe2c&&_0x4be5d1[_0x5937('0x94')]('ck-revision-history-root--active',_0x2ef7ca);}}}});}),this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0x11'))[_0x5937('0x28')]({'view':_0x5937('0xf9'),'model':_0x474062=>_0x5937('0x12')+_0x474062,'converterPriority':_0x5937('0xd1')}),this[_0x5937('0x110')][_0x5937('0x27')]['for'](_0x5937('0x11'))[_0x5937('0x28')]({'view':_0x5937('0x114'),'model':_0x3ed6e9=>_0x5937('0x32')+_0x3ed6e9,'converterPriority':'highest'}),this[_0x5937('0x110')][_0x5937('0x27')]['for']('dataDowncast')['markerToData']({'model':_0x5937('0xbc'),'view':_0x2a9e03=>({'name':_0x5937('0xb4')+_0x2a9e03,'group':_0x5937('0xbc')}),'converterPriority':_0x5937('0xd1')}),this[_0x5937('0x110')][_0x5937('0x27')][_0x5937('0x44')](_0x5937('0xce'))[_0x5937('0x48')]({'model':'revision-suggestion','view':_0x3a66ee=>{const _0x3ca26a=_0x3a66ee['markerName'][_0x5937('0x4d')](':')[0x1];return _0x5937('0x12c')!=_0x3ca26a&&_0x5937('0x57')!=_0x3ca26a?null:{'classes':['ck-suggestion-preview-marker',_0x5937('0x7e')+_0x3ca26a]};}}),this['editor'][_0x5937('0x47')][_0x5937('0xda')]['on'](_0x5937('0x13'),et(this[_0x5937('0x110')],_0x5937('0xfe')),{'priority':_0x5937('0x76')}),this['editor'][_0x5937('0x47')][_0x5937('0xda')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x5937('0x110')],'split'),{'priority':'high'}),this[_0x5937('0x110')]['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1fc926,_0x1bdad5,_0x56bd51)=>{const _0x5cccaa=_0x56bd51[_0x5937('0x74')][_0x5937('0x112')](_0x1bdad5[_0x5937('0x20')]);if(_0x5cccaa)for(const _0x2d25e9 of _0x5cccaa)_0x2d25e9['is'](_0x5937('0x37'))&&(_0x56bd51['mapper']['unbindElementFromMarkerName'](_0x2d25e9,_0x1bdad5[_0x5937('0x20')]),_0x56bd51[_0x5937('0x129')][_0x5937('0x96')](_0x2d25e9));},{'priority':_0x5937('0x76')});}['_getChangeFromId'](_0x68802d){return this['_changeIdToChange'][_0x5937('0x118')](_0x68802d);}['_getViewForChange'](_0x3f06e8){return this['_changeView']&&this[_0x5937('0xe3')][_0x5937('0x69')](),this[_0x5937('0xe3')]=new _0xf36502(this[_0x5937('0x110')][_0x5937('0x8c')],_0x3f06e8),this[_0x5937('0xe3')];}[_0x5937('0x88')](){this['editor'][_0x5937('0x116')]['document'][_0x5937('0x1f')][_0x5937('0x107')](_0x5937('0xd2')),this['on']('change:activeView',(_0x2c6b30,_0x4cda73,_0x1ce113,_0x442517)=>{_0x442517&&this[_0x5937('0x15')][_0x5937('0x96')](_0x442517),_0x1ce113&&(this[_0x5937('0x15')][_0x5937('0x49')]({'view':_0x1ce113,'stackId':_0x5937('0x9a'),'position':{'target':()=>{const _0x2d355e=this['editor'][_0x5937('0x47')],_0x4a55e7=this['_getChangeFromId'](_0x1ce113[_0x5937('0xf5')]);let _0x185c43;if(_0x4a55e7[_0x5937('0xfa')][_0x5937('0x127')]){const _0x3cf797=_0x2d355e[_0x5937('0x86')][_0x5937('0x12b')](_0x4a55e7['rootName']);_0x185c43=Array[_0x5937('0xfd')](_0x3cf797['getClientRects']());}else{const _0x52d18f=this['editor'][_0x5937('0x116')][_0x5937('0x113')][_0x5937('0x118')]('revision:'+_0x1ce113['changeId']);_0x185c43=Array[_0x5937('0xfd')](_0x2d355e[_0x5937('0x74')][_0x5937('0x112')](_0x52d18f[_0x5937('0x41')]))[_0x5937('0x65')](_0xdd6e8a=>_0x2d355e[_0x5937('0x86')]['domConverter'][_0x5937('0x9f')](_0xdd6e8a))[_0x5937('0x65')](_0x1fdc7a=>Array['from'](_0x1fdc7a[_0x5937('0x60')]()))[_0x5937('0xcd')]();}if(!this[_0x5937('0x100')])return _0x185c43[0x0];return _0x185c43[_0x5937('0x104')](_0x3b3ca7=>_0x3b3ca7[_0x5937('0x126')]-0x3<=this[_0x5937('0x100')]['y']&&_0x3b3ca7[_0x5937('0xba')]+0x3>=this[_0x5937('0x100')]['y']&&_0x3b3ca7[_0x5937('0xa0')]-0x3<=this[_0x5937('0x100')]['x']&&_0x3b3ca7['right']+0x3>=this[_0x5937('0x100')]['x'])||_0x185c43[0x0];}}}),this['_balloon'][_0x5937('0x70')](_0x5937('0x9a')));}),this['on'](_0x5937('0xb9'),(_0x19d4a0,_0x1febd8,_0x14b9d4,_0x480a23)=>{this[_0x5937('0x121')]=_0x14b9d4?this['_getViewForChange'](_0x14b9d4):null,this[_0x5937('0x110')][_0x5937('0x116')]['change'](()=>{const _0x2328f1=this['editor'][_0x5937('0x47')];_0x480a23&&(_0x480a23[_0x5937('0xfa')][_0x5937('0x127')]?_0x2328f1[_0x5937('0x86')][_0x5937('0x59')](_0x524e37=>{_0x524e37[_0x5937('0x45')](_0x5937('0x46'),_0x2328f1[_0x5937('0x86')][_0x5937('0xf8')][_0x5937('0x8d')](_0x480a23[_0x5937('0xbb')]));}):_0x2328f1[_0x5937('0xff')](_0x5937('0x103')+_0x480a23['id'])),_0x14b9d4&&(_0x14b9d4[_0x5937('0xfa')]['isOnRoot']?_0x2328f1[_0x5937('0x86')][_0x5937('0x59')](_0x5c608e=>{_0x5c608e[_0x5937('0x94')](_0x5937('0x46'),_0x2328f1[_0x5937('0x86')]['document'][_0x5937('0x8d')](_0x14b9d4[_0x5937('0xbb')]));}):_0x2328f1[_0x5937('0xff')](_0x5937('0x103')+_0x14b9d4['id']));});}),this['listenTo'](this[_0x5937('0x110')][_0x5937('0x47')][_0x5937('0x86')][_0x5937('0xf8')],'mouseover',(_0x2e552c,_0x4151b7)=>{if(this[_0x5937('0xd4')])return;const _0x47e94c=this[_0x5937('0x10a')](_0x4151b7['target']),_0x22fc48=this['_changeIdToChange'][_0x5937('0x118')](_0x47e94c);_0x22fc48?(this['_activeViewTarget']={'x':_0x4151b7[_0x5937('0x11f')]['x'],'y':_0x4151b7[_0x5937('0x11f')]['y']},this[_0x5937('0x121')]=this['_getViewForChange'](_0x22fc48)):(this[_0x5937('0x100')]=null,this[_0x5937('0x121')]=null);}),this['listenTo'](this['editor']['editing']['view'][_0x5937('0xf8')],_0x5937('0x5b'),(_0x11d93c,_0x4e16a8)=>{const _0x50c83a=this['_findChangeIdFromDomTarget'](_0x4e16a8[_0x5937('0x3')]),_0x288808=this[_0x5937('0xd')][_0x5937('0x118')](_0x50c83a);_0x288808?(this[_0x5937('0x100')]={'x':_0x4e16a8[_0x5937('0x11f')]['x'],'y':_0x4e16a8[_0x5937('0x11f')]['y']},_0x288808===this['activeChange']?this['_balloon'][_0x5937('0x8f')]():this[_0x5937('0xd4')]=_0x288808):(this[_0x5937('0x100')]=null,this[_0x5937('0xd4')]=null);});}[_0x5937('0x10a')](_0x22a498){do{const _0x5110ef=_0x22a498[_0x5937('0x18')](_0x5937('0x2a'));if(_0x5110ef)return _0x5110ef;_0x22a498=_0x22a498['parent'];}while(_0x22a498);return null;}[_0x5937('0x91')](){this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x59')](_0x3b3244=>{for(const _0x56233d of this[_0x5937('0x110')][_0x5937('0x116')][_0x5937('0x113')])_0x3b3244[_0x5937('0x11c')](_0x56233d);});}}function et(_0x332c67,_0x44a8cc){return(_0x39042e,_0x195fc6,_0x3d5a84)=>{if(!_0x3d5a84[_0x5937('0xd6')]['test'](_0x195fc6[_0x5937('0x9b')],_0x39042e[_0x5937('0x41')]))return;const _0x29df2a=_0x195fc6['markerRange'][_0x5937('0x1a')](),_0x4f0075=_0x195fc6[_0x5937('0x9b')]['start'],_0x3ce2cf=_0x332c67['model'][_0x5937('0x11d')];let _0x4567b2=null,_0x49cfa0=null,_0x466d26=!0x1,_0x104ca4=!0x1;for(const _0x2bc00b of _0x29df2a){const _0x328dd9=_0x2bc00b[_0x5937('0x8')];_0x466d26=_0x466d26||_0x3ce2cf[_0x5937('0xa6')](_0x328dd9);const _0x52b3fd=_0x3d5a84[_0x5937('0x74')][_0x5937('0x55')](_0x328dd9);if(_0x52b3fd&&_0x52b3fd[_0x5937('0x78')](_0x5937('0x6')))return;_0x5937('0xa')==_0x2bc00b[_0x5937('0x84')]&&(_0x3ce2cf['isBlock'](_0x328dd9)&&!_0x3ce2cf[_0x5937('0xef')](_0x328dd9)&&(_0x328dd9[_0x5937('0x43')]||_0x4f0075[_0x5937('0x87')]?_0x4567b2&&_0x4567b2[_0x5937('0x5c')]==_0x328dd9||(_0x4567b2=_0x328dd9,_0x1a64e8(_0x2bc00b[_0x5937('0x35')]),_0x104ca4=!0x0):_0x49cfa0=_0x49cfa0||_0x2bc00b[_0x5937('0x35')]));}function _0x1a64e8(_0x242c81){const _0x20eb33=_0x3d5a84[_0x5937('0x74')]['toViewPosition'](_0x242c81),_0x3d5faf=_0x3d5a84[_0x5937('0x129')][_0x5937('0x72')](_0x5937('0xd8'),{'class':_0x5937('0x7e')+_0x44a8cc});_0x3d5a84[_0x5937('0x129')][_0x5937('0x6a')](_0x20eb33,_0x3d5faf),_0x3d5a84['mapper']['bindElementToMarker'](_0x3d5faf,_0x195fc6[_0x5937('0x20')]);}_0x466d26||_0x104ca4||!_0x49cfa0||_0x1a64e8(_0x49cfa0);};}export class RestoreRevisionCommand extends _0x676285{constructor(_0x33a5f6){super(_0x33a5f6);const _0x3e3d06=_0x33a5f6[_0x5937('0xa8')]['get'](d);this[_0x5937('0xe6')]=!0x1,this[_0x5937('0x58')](_0x3e3d06,'change:isReady',()=>this[_0x5937('0x68')]()),this[_0x5937('0x58')](_0x3e3d06,'change:isEnabled',()=>this['refresh']());}[_0x5937('0x7d')](){const _0x41c10c=this[_0x5937('0x110')],_0x1d6ea7=_0x41c10c[_0x5937('0xa8')]['get'](d),_0x1380b2=_0x1d6ea7[_0x5937('0x99')]?_0x1d6ea7[_0x5937('0x71')][_0x5937('0x25')]:null;_0x41c10c[_0x5937('0x2c')][_0x5937('0x118')](_0x5937('0xdc'))[_0x5937('0xfc')](_0x1380b2);}[_0x5937('0x68')](){const {isReady:_0x499421,isEnabled:_0x2a5a94}=this['editor'][_0x5937('0xa8')][_0x5937('0x118')](d);this['isEnabled']=_0x499421&&_0x2a5a94;}}export class ShowChangeCommand extends _0x676285{constructor(_0x4c053b,{direction:_0x3afb01}){super(_0x4c053b);const _0x203b14=_0x4c053b[_0x5937('0xa8')][_0x5937('0x118')](d);this[_0x5937('0xe6')]=!0x1,this[_0x5937('0xd0')]='forward'===_0x3afb01?0x1:-0x1,this['listenTo'](_0x203b14,_0x5937('0x92'),()=>this['refresh']()),this[_0x5937('0x58')](_0x203b14,_0x5937('0x5f'),()=>this['refresh']());}[_0x5937('0x7d')](){const _0x2c1005=this[_0x5937('0x110')],_0x1d0107=_0x2c1005[_0x5937('0xa8')][_0x5937('0x118')](d),{isNavigationMode:_0x4ea4da,currentChangeNumber:_0x761f2c}=_0x1d0107;let _0x5bff4e;if(_0x1d0107[_0x5937('0xd4')]=_0x4ea4da?_0x1d0107[_0x5937('0x71')][_0x5937('0x5a')][_0x5937('0x118')](_0x761f2c+this['_step']):_0x1d0107['diff']['changes'][_0x5937('0xc')],_0x1d0107[_0x5937('0xd4')][_0x5937('0xfa')][_0x5937('0x127')])_0x5bff4e=_0x2c1005[_0x5937('0x47')]['view'][_0x5937('0x12b')](_0x1d0107[_0x5937('0xd4')]['rootName']);else{const _0x12abbd=_0x2c1005[_0x5937('0x116')]['markers'][_0x5937('0x118')](_0x5937('0x103')+_0x1d0107[_0x5937('0xd4')]['id']);_0x5bff4e=_0x508032(_0x2c1005[_0x5937('0x47')],_0x12abbd);}_0x4bfb65({'target':_0x5bff4e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3a2bcb,currentChangeNumber:_0x12eca6,numberOfChanges:_0x545457,isReady:_0x752ddf,isEnabled:_0xf94a50}=this[_0x5937('0x110')]['plugins'][_0x5937('0x118')](d);this[_0x5937('0x3e')]=!!(_0xf94a50&&_0x752ddf&&_0x545457)&&(!_0x3a2bcb||(0x1===this[_0x5937('0xd0')]?_0x12eca6<_0x545457-0x1:_0x12eca6>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49b6=['add','Name\x20this\x20revision','buttonView','name','panelPosition','listView','threeVerticalDots','isReady','change:isActionsDropdownOpen','model','ck-revision-history-sidebar__revision__actions','stopPropagation','items','Show\x20more\x20items','Compare\x20against\x20selected','button','extendTemplate','isEnabled','find','isActionsDropdownOpen','function','source','ck-on','action','bind','execute','set','isVisible','_action','locale','listenTo'];(function(_0x168c04,_0x49b60e){const _0x43348b=function(_0x562fce){while(--_0x562fce){_0x168c04['push'](_0x168c04['shift']());}};_0x43348b(++_0x49b60e);}(_0x49b6,0xc2));const _0x4334=function(_0x168c04,_0x49b60e){_0x168c04=_0x168c04-0x0;let _0x43348b=_0x49b6[_0x168c04];return _0x43348b;};import{Collection as _0x19b2d9}from'ckeditor5/src/utils';import{icons as _0x3192e1}from'ckeditor5/src/core';import{Model as _0x12424f,addListToDropdown as _0x1cb715,createDropdown as _0x394a42}from'ckeditor5/src/ui';import{getTranslation as _0x3d5412}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4a08af,_0x33d973){const _0x1ccba1=_0x4a08af['bindTemplate'],_0x217719=_0x4a08af[_0x4334('0x15')],_0x13683b=_0x394a42(_0x217719);_0x13683b[_0x4334('0x1b')]='sw';const _0x3ccb16=function(_0x1611e9,_0xc805a5){const _0x5e3eab=function(_0x411457,_0x3478d0){const _0x25a271=_0x411457['locale'],_0x28f836={'Compare\x20against\x20selected':_0x3d5412(_0x25a271,_0x4334('0x6')),'Name\x20this\x20revision':_0x3d5412(_0x25a271,_0x4334('0x18')),'Restore\x20this\x20revision':_0x3d5412(_0x25a271,'Restore\x20this\x20revision')};return _0x3478d0['map'](_0x34c01a=>{const _0x2a2561=_0x28f836[_0x34c01a[_0x4334('0x1a')]];return _0x2a2561&&_0x2a2561!==_0x34c01a[_0x4334('0x1a')]&&(_0x34c01a[_0x4334('0x1a')]=_0x2a2561),_0x34c01a;});}(_0x1611e9,_0xc805a5),_0x5e1bf1=new _0x19b2d9();for(const _0x20c8a5 of _0x5e3eab){const _0x3c1e57={'type':_0x4334('0x7'),'model':new _0x12424f({'label':_0x20c8a5[_0x4334('0x1a')],'class':_0x20c8a5['class'],'withText':!0x0,'_action':_0x20c8a5[_0x4334('0xf')]})};_0x3c1e57[_0x4334('0x1')][_0x4334('0x10')](_0x4334('0x9'))['to'](_0x1611e9,_0x4334('0xb'),_0x204679=>_0x4334('0xc')!=typeof _0x20c8a5[_0x4334('0x9')]||(!_0x204679||_0x20c8a5[_0x4334('0x9')](_0x1611e9))),_0x5e1bf1[_0x4334('0x17')](_0x3c1e57);}return _0x5e1bf1;}(_0x4a08af,_0x33d973);return _0x4a08af[_0x4334('0x10')](_0x4334('0xb'))['to'](_0x13683b,'isOpen'),_0x13683b[_0x4334('0x19')][_0x4334('0x12')]({'label':_0x3d5412(_0x217719,_0x4334('0x5')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3192e1[_0x4334('0x1d')]}),_0x13683b[_0x4334('0x8')]({'attributes':{'class':[_0x4334('0x2'),_0x1ccba1['if'](_0x4334('0xb'),_0x4334('0xe'))]},'on':{'click':_0x1ccba1['to'](_0x406c59=>_0x406c59[_0x4334('0x3')]())}}),_0x13683b['on'](_0x4334('0x11'),_0x5e845e=>{_0x4a08af[_0x4334('0x1e')]&&_0x4334('0xc')==typeof _0x5e845e[_0x4334('0xd')][_0x4334('0x14')]&&_0x5e845e[_0x4334('0xd')][_0x4334('0x14')](_0x4a08af);}),_0x1cb715(_0x13683b,_0x3ccb16),_0x13683b[_0x4334('0x16')](_0x4a08af,_0x4334('0x0'),(_0x5a8ea1,_0x51346b,_0x8f1665)=>{if(_0x8f1665)for(const _0x178f79 of _0x13683b[_0x4334('0x1c')][_0x4334('0x4')]){const _0x30aab6=_0x178f79['children']['first'],_0x22d041=_0x33d973[_0x4334('0xa')](_0x4e3bbe=>_0x4e3bbe[_0x4334('0xf')]===_0x30aab6[_0x4334('0x14')])[_0x4334('0x13')];_0x178f79[_0x4334('0x13')]=void 0x0===_0x22d041||_0x22d041(_0x4a08af);}}),_0x13683b;}
23
+ const _0x5189=['threeVerticalDots','extendTemplate','Name\x20this\x20revision','panelPosition','Compare\x20against\x20selected','model','bindTemplate','map','children','bind','ck-revision-history-sidebar__revision__actions','name','locale','action','source','listView','Restore\x20this\x20revision','function','change:isActionsDropdownOpen','isVisible','_action','isActionsDropdownOpen','execute','Show\x20more\x20items','listenTo','isEnabled','add','find'];(function(_0x128bdb,_0x51894e){const _0x346271=function(_0x451856){while(--_0x451856){_0x128bdb['push'](_0x128bdb['shift']());}};_0x346271(++_0x51894e);}(_0x5189,0x68));const _0x3462=function(_0x128bdb,_0x51894e){_0x128bdb=_0x128bdb-0x0;let _0x346271=_0x5189[_0x128bdb];return _0x346271;};import{Collection as _0x36ed6b}from'ckeditor5/src/utils';import{icons as _0x83f33e}from'ckeditor5/src/core';import{Model as _0x2c1288,addListToDropdown as _0x37f198,createDropdown as _0x2e02e8}from'ckeditor5/src/ui';import{getTranslation as _0x2bf7ae}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1a2c88,_0x5c365d){const _0x24d791=_0x1a2c88[_0x3462('0xe')],_0x49243c=_0x1a2c88[_0x3462('0x14')],_0x314cf8=_0x2e02e8(_0x49243c);_0x314cf8[_0x3462('0xb')]='sw';const _0x512a69=function(_0x30cdf2,_0x42f39a){const _0x3a11e5=function(_0xa795de,_0xcbc179){const _0x389813=_0xa795de[_0x3462('0x14')],_0x567448={'Compare\x20against\x20selected':_0x2bf7ae(_0x389813,_0x3462('0xc')),'Name\x20this\x20revision':_0x2bf7ae(_0x389813,_0x3462('0xa')),'Restore\x20this\x20revision':_0x2bf7ae(_0x389813,_0x3462('0x18'))};return _0xcbc179[_0x3462('0xf')](_0x50e459=>{const _0x17a67c=_0x567448[_0x50e459['name']];return _0x17a67c&&_0x17a67c!==_0x50e459['name']&&(_0x50e459[_0x3462('0x13')]=_0x17a67c),_0x50e459;});}(_0x30cdf2,_0x42f39a),_0x5460fb=new _0x36ed6b();for(const _0x4663ed of _0x3a11e5){const _0x21149b={'type':'button','model':new _0x2c1288({'label':_0x4663ed[_0x3462('0x13')],'class':_0x4663ed['class'],'withText':!0x0,'_action':_0x4663ed[_0x3462('0x15')]})};_0x21149b[_0x3462('0xd')][_0x3462('0x11')]('isEnabled')['to'](_0x30cdf2,_0x3462('0x1'),_0x7bdff5=>'function'!=typeof _0x4663ed[_0x3462('0x5')]||(!_0x7bdff5||_0x4663ed[_0x3462('0x5')](_0x30cdf2))),_0x5460fb[_0x3462('0x6')](_0x21149b);}return _0x5460fb;}(_0x1a2c88,_0x5c365d);return _0x1a2c88[_0x3462('0x11')](_0x3462('0x1'))['to'](_0x314cf8,'isOpen'),_0x314cf8['buttonView']['set']({'label':_0x2bf7ae(_0x49243c,_0x3462('0x3')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x83f33e[_0x3462('0x8')]}),_0x314cf8[_0x3462('0x9')]({'attributes':{'class':[_0x3462('0x12'),_0x24d791['if'](_0x3462('0x1'),'ck-on')]},'on':{'click':_0x24d791['to'](_0x4d68a4=>_0x4d68a4['stopPropagation']())}}),_0x314cf8['on'](_0x3462('0x2'),_0x52a7ee=>{_0x1a2c88['isReady']&&_0x3462('0x19')==typeof _0x52a7ee[_0x3462('0x16')][_0x3462('0x0')]&&_0x52a7ee[_0x3462('0x16')][_0x3462('0x0')](_0x1a2c88);}),_0x37f198(_0x314cf8,_0x512a69),_0x314cf8[_0x3462('0x4')](_0x1a2c88,_0x3462('0x1a'),(_0x5a6d28,_0x6b3a47,_0x5e5919)=>{if(_0x5e5919)for(const _0x1e40f8 of _0x314cf8[_0x3462('0x17')]['items']){const _0x120b13=_0x1e40f8[_0x3462('0x10')]['first'],_0x4d369d=_0x5c365d[_0x3462('0x7')](_0x19a943=>_0x19a943['action']===_0x120b13[_0x3462('0x0')])[_0x3462('0x1b')];_0x1e40f8[_0x3462('0x1b')]=void 0x0===_0x4d369d||_0x4d369d(_0x1a2c88);}}),_0x314cf8;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53ec=['setTemplate','set','ck-revision-history-sidebar__revision-author','name','ck-revision-history-sidebar__revision-author__name','span','0\x200\x2011\x2010','Revision\x20creator'];(function(_0x14a7db,_0x53ec5f){const _0x358108=function(_0x54dd84){while(--_0x54dd84){_0x14a7db['push'](_0x14a7db['shift']());}};_0x358108(++_0x53ec5f);}(_0x53ec,0xba));const _0x3581=function(_0x14a7db,_0x53ec5f){_0x14a7db=_0x14a7db-0x0;let _0x358108=_0x53ec[_0x14a7db];return _0x358108;};import{View as _0xef8064,IconView as _0x71cc1c}from'ckeditor5/src/ui';import{getTranslation as _0x14fc02}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x5d035b from'../../../theme/icons/user.svg';export default class ti extends _0xef8064{constructor(_0x105629,_0x1c7978,_0x4b57fe){super(_0x105629);const _0x168c08=new _0x71cc1c();_0x168c08[_0x3581('0x7')]({'content':_0x5d035b,'viewBox':_0x3581('0x4')});const _0x257ea1=['ck',_0x3581('0x0')];_0x4b57fe&&_0x257ea1['push']('ck-revision-history-sidebar__revision-author_creator');const _0xc6c941=[{'tag':_0x3581('0x3'),'attributes':{'class':['ck',_0x3581('0x2')],'title':_0x14fc02(_0x105629,_0x4b57fe?_0x3581('0x5'):'Revision\x20author')},'children':[_0x168c08,_0x1c7978[_0x3581('0x1')]]}];this[_0x3581('0x6')]({'tag':'li','attributes':{'class':_0x257ea1},'children':_0xc6c941});}}
23
+ const _0x2025=['push','ck-revision-history-sidebar__revision-author_creator','setTemplate','Revision\x20creator','0\x200\x2011\x2010','span','ck-revision-history-sidebar__revision-author__name','set','ck-revision-history-sidebar__revision-author','name'];(function(_0x18c0a8,_0x202545){const _0x4760bf=function(_0x1dc748){while(--_0x1dc748){_0x18c0a8['push'](_0x18c0a8['shift']());}};_0x4760bf(++_0x202545);}(_0x2025,0xcc));const _0x4760=function(_0x18c0a8,_0x202545){_0x18c0a8=_0x18c0a8-0x0;let _0x4760bf=_0x2025[_0x18c0a8];return _0x4760bf;};import{View as _0x3044a4,IconView as _0x481103}from'ckeditor5/src/ui';import{getTranslation as _0x3b4d71}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x49032e from'../../../theme/icons/user.svg';export default class ti extends _0x3044a4{constructor(_0x35a98a,_0x587f25,_0x1fc0f3){super(_0x35a98a);const _0x247299=new _0x481103();_0x247299[_0x4760('0x3')]({'content':_0x49032e,'viewBox':_0x4760('0x0')});const _0x30cf38=['ck',_0x4760('0x4')];_0x1fc0f3&&_0x30cf38[_0x4760('0x6')](_0x4760('0x7'));const _0x510c4e=[{'tag':_0x4760('0x1'),'attributes':{'class':['ck',_0x4760('0x2')],'title':_0x3b4d71(_0x35a98a,_0x1fc0f3?_0x4760('0x9'):'Revision\x20author')},'children':[_0x247299,_0x587f25[_0x4760('0x5')]]}];this[_0x4760('0x8')]({'tag':'li','attributes':{'class':_0x30cf38},'children':_0x510c4e});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x258f=['span','ck-revision-history-sidebar__revision-name','Revision\x20name','set'];(function(_0x19b73b,_0x258f24){var _0x44b7f0=function(_0x169d57){while(--_0x169d57){_0x19b73b['push'](_0x19b73b['shift']());}};_0x44b7f0(++_0x258f24);}(_0x258f,0xd0));var _0x44b7=function(_0x19b73b,_0x258f24){_0x19b73b=_0x19b73b-0x0;var _0x44b7f0=_0x258f[_0x19b73b];return _0x44b7f0;};import{LabeledFieldView as _0x429be8}from'ckeditor5/src/ui';import{getTranslation as _0x464912}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x429be8{constructor(_0x1b929c,_0x5a217c){super(_0x1b929c,_0x5a217c),this[_0x44b7('0x3')]({'label':_0x464912(_0x1b929c,_0x44b7('0x2'))}),this['extendTemplate']({'tag':_0x44b7('0x0'),'attributes':{'class':[_0x44b7('0x1')]}});}}
23
+ var _0x55c2=['extendTemplate','Revision\x20name'];(function(_0xb46d9a,_0x55c264){var _0x53746f=function(_0x2e411b){while(--_0x2e411b){_0xb46d9a['push'](_0xb46d9a['shift']());}};_0x53746f(++_0x55c264);}(_0x55c2,0x93));var _0x5374=function(_0xb46d9a,_0x55c264){_0xb46d9a=_0xb46d9a-0x0;var _0x53746f=_0x55c2[_0xb46d9a];return _0x53746f;};import{LabeledFieldView as _0x22ae79}from'ckeditor5/src/ui';import{getTranslation as _0x304272}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x22ae79{constructor(_0x3891c0,_0x3a1cba){super(_0x3891c0,_0x3a1cba),this['set']({'label':_0x304272(_0x3891c0,_0x5374('0x0'))}),this[_0x5374('0x1')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2797=['element','uiLanguage','setName','ck-revision-history-sidebar__revision-authors','from','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-wrapper','placeholder','extendTemplate','isHighlighted','unhighlight','bindTemplate','length','ck-reset','ck-revision-history-sidebar__actions_dropdown_open','.ck-thread__remove-confirm','creator','set','ck-revision-history-sidebar__revision__controls-wrapper','div','deselect','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-disabled','srcElement','isActionsDropdownOpen','ck-revision-history-sidebar__revision__date','bind','setTemplate','ck-revision-history-sidebar__revision','map','isEnabled','fieldView','listenTo','render','select','revisionActionsView','name','_revision','highlight','fire','isConfirm','change','revisionNameView','isSelected','closest','createdAt','value'];(function(_0x236384,_0x2797df){const _0x2a283f=function(_0x170404){while(--_0x170404){_0x236384['push'](_0x236384['shift']());}};_0x2a283f(++_0x2797df);}(_0x2797,0xf8));const _0x2a28=function(_0x236384,_0x2797df){_0x236384=_0x236384-0x0;let _0x2a283f=_0x2797[_0x236384];return _0x2a283f;};import{View as _0x18db3f,createLabeledInputText as _0x13f53a}from'ckeditor5/src/ui';import{ConfirmMixin as _0x447a35}from'ckeditor5-collaboration/src/collaboration-core';import _0x3f00ee from'./revisionnameview';import _0x486256 from'./revisionauthorview';import{dateToPrettyFormat as _0xbab4cd}from'./utils';import{createActionsDropdownView as _0xb1b909}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x447a35(_0x18db3f){constructor(_0xcbb137,_0x12eca9,_0x364ff1){super(_0xcbb137);const _0x2c33d6=this[_0x2a28('0x2d')],_0x484514=function(_0x292b5a,_0x5d4d30){const _0x39bcda=Array[_0x2a28('0x26')](_0x5d4d30['authors'])['filter'](_0x150b21=>_0x150b21!=_0x5d4d30[_0x2a28('0x3')]);return _0x5d4d30['creator']&&_0x39bcda['unshift'](_0x5d4d30[_0x2a28('0x3')]),_0x39bcda[_0x2a28('0x10')](_0xbd327c=>new _0x486256(_0x292b5a,_0xbd327c,_0xbd327c==_0x5d4d30[_0x2a28('0x3')]));}(_0xcbb137,_0x12eca9);this['id']=_0x12eca9['id'],this[_0x2a28('0x18')]=_0x12eca9,this[_0x2a28('0xd')](_0x2a28('0x17'),_0x2a28('0x20'))['to'](_0x12eca9),this[_0x2a28('0xd')]('_createdAtFormatted')['to'](this,_0x2a28('0x20'),_0x129f6c=>_0x129f6c?_0xbab4cd(_0xcbb137[_0x2a28('0x23')],_0x129f6c):void 0x0),this[_0x2a28('0x4')](_0x2a28('0x1e'),!0x1),this[_0x2a28('0x4')](_0x2a28('0x2b'),!0x1),this[_0x2a28('0x4')](_0x2a28('0xb'),!0x1),this['set']('isReady',!0x1),this['set'](_0x2a28('0x11'),!0x1),this[_0x2a28('0x1d')]=new _0x3f00ee(_0xcbb137,_0x13f53a),this['revisionNameView'][_0x2a28('0x12')][_0x2a28('0x2a')]({'attributes':{'maxlength':'220'}}),this[_0x2a28('0x1d')]['fieldView'][_0x2a28('0xd')](_0x2a28('0x21'),_0x2a28('0x29'))['to'](this,'name','_createdAtFormatted'),this[_0x2a28('0x1d')][_0x2a28('0xd')](_0x2a28('0x11'))['to'](this,'isSelected',this,'isEnabled',(_0x24cabe,_0x42b7f4)=>_0x24cabe&&_0x42b7f4),this[_0x2a28('0x16')]=_0x364ff1&&_0x364ff1[_0x2a28('0x2e')]?_0xb1b909(this,_0x364ff1):'',this[_0x2a28('0x16')]&&this[_0x2a28('0x16')]['bind'](_0x2a28('0x11'))['to'](this),this[_0x2a28('0xe')]({'tag':_0x2a28('0x6'),'attributes':{'class':['ck',_0x2a28('0x0'),_0x2a28('0x28'),_0x2c33d6['if'](_0x2a28('0x1b'),_0x2a28('0x8'))]},'children':[{'tag':_0x2a28('0x6'),'attributes':{'class':['ck',_0x2a28('0x0'),_0x2a28('0xf'),_0x2c33d6['if']('isEnabled',_0x2a28('0x9'),_0x4bdfb7=>!_0x4bdfb7),_0x2c33d6['if'](_0x2a28('0x1e'),_0x2a28('0x27')),_0x2c33d6['if'](_0x2a28('0x2b'),'ck-revision-history-sidebar__revision_highlighted'),_0x2c33d6['if'](_0x2a28('0xb'),_0x2a28('0x1'))]},'children':[this[_0x2a28('0x1d')],{'tag':'span','attributes':{'class':['ck',_0x2a28('0xc')]},'children':[{'text':_0x2c33d6['to']('_createdAtFormatted')}]},{'tag':_0x2a28('0x6'),'attributes':{'class':['ck',_0x2a28('0x5')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2a28('0x25')]},'children':_0x484514}]},this[_0x2a28('0x16')]],'on':{'click':_0x2c33d6['to'](_0xd1565f=>{_0xd1565f[_0x2a28('0xa')][_0x2a28('0x1f')](_0x2a28('0x2'))||this['isReady']&&this['isEnabled']&&this[_0x2a28('0x1a')](_0x2a28('0x15'),{'id':this['id']});})}}]});}['render'](){super[_0x2a28('0x14')]();const _0x3b805a=this['revisionNameView'][_0x2a28('0x12')][_0x2a28('0x22')];this[_0x2a28('0x13')](_0x3b805a,_0x2a28('0x1c'),()=>{this[_0x2a28('0x1a')](_0x2a28('0x24'),{'id':this['id'],'name':_0x3b805a[_0x2a28('0x21')]});});}[_0x2a28('0x15')](){this[_0x2a28('0x1e')]=!0x0;}[_0x2a28('0x7')](){this[_0x2a28('0x1e')]=!0x1;}[_0x2a28('0x19')](){this['isHighlighted']=!0x0;}[_0x2a28('0x2c')](){this[_0x2a28('0x2b')]=!0x1;}}
23
+ const _0x3007=['value','ck-revision-history-sidebar__revision','isReady','ck-revision-history-sidebar__revision-authors','createdAt','isActionsDropdownOpen','ck-revision-history-sidebar__revision_highlighted','authors','highlight','closest','fire','change','element','ck-revision-history-sidebar__revision__date','deselect','ck-reset','unhighlight','listenTo','ck-disabled','from','setTemplate','span','set','name','fieldView','_createdAtFormatted','setName','length','extendTemplate','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','div','isEnabled','srcElement','placeholder','220','creator','select','isHighlighted','revisionNameView','ck-revision-history-sidebar__revision_selected','bind','isSelected','render','revisionActionsView'];(function(_0x19a906,_0x30079a){const _0x47e875=function(_0xfef46d){while(--_0xfef46d){_0x19a906['push'](_0x19a906['shift']());}};_0x47e875(++_0x30079a);}(_0x3007,0xcf));const _0x47e8=function(_0x19a906,_0x30079a){_0x19a906=_0x19a906-0x0;let _0x47e875=_0x3007[_0x19a906];return _0x47e875;};import{View as _0x2dc0d5,createLabeledInputText as _0x47fb6e}from'ckeditor5/src/ui';import{ConfirmMixin as _0x565457}from'ckeditor5-collaboration/src/collaboration-core';import _0x537e8a from'./revisionnameview';import _0x5567a3 from'./revisionauthorview';import{dateToPrettyFormat as _0x3934f3}from'./utils';import{createActionsDropdownView as _0x31f7d5}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x565457(_0x2dc0d5){constructor(_0x239250,_0x3a742c,_0x50d9b2){super(_0x239250);const _0x116c1f=this['bindTemplate'],_0x105a7e=function(_0x5b2765,_0xd24769){const _0x546a07=Array[_0x47e8('0x20')](_0xd24769[_0x47e8('0x14')])['filter'](_0x2f5574=>_0x2f5574!=_0xd24769[_0x47e8('0x4')]);return _0xd24769[_0x47e8('0x4')]&&_0x546a07['unshift'](_0xd24769['creator']),_0x546a07['map'](_0x10b026=>new _0x5567a3(_0x5b2765,_0x10b026,_0x10b026==_0xd24769[_0x47e8('0x4')]));}(_0x239250,_0x3a742c);this['id']=_0x3a742c['id'],this['_revision']=_0x3a742c,this[_0x47e8('0x9')](_0x47e8('0x24'),_0x47e8('0x11'))['to'](_0x3a742c),this[_0x47e8('0x9')](_0x47e8('0x26'))['to'](this,_0x47e8('0x11'),_0x1b317a=>_0x1b317a?_0x3934f3(_0x239250['uiLanguage'],_0x1b317a):void 0x0),this[_0x47e8('0x23')](_0x47e8('0xa'),!0x1),this[_0x47e8('0x23')](_0x47e8('0x6'),!0x1),this[_0x47e8('0x23')](_0x47e8('0x12'),!0x1),this[_0x47e8('0x23')](_0x47e8('0xf'),!0x1),this['set'](_0x47e8('0x0'),!0x1),this['revisionNameView']=new _0x537e8a(_0x239250,_0x47fb6e),this[_0x47e8('0x7')][_0x47e8('0x25')][_0x47e8('0x29')]({'attributes':{'maxlength':_0x47e8('0x3')}}),this[_0x47e8('0x7')][_0x47e8('0x25')]['bind'](_0x47e8('0xd'),_0x47e8('0x2'))['to'](this,_0x47e8('0x24'),_0x47e8('0x26')),this[_0x47e8('0x7')][_0x47e8('0x9')](_0x47e8('0x0'))['to'](this,_0x47e8('0xa'),this,_0x47e8('0x0'),(_0x13e042,_0x2ad65b)=>_0x13e042&&_0x2ad65b),this[_0x47e8('0xc')]=_0x50d9b2&&_0x50d9b2[_0x47e8('0x28')]?_0x31f7d5(this,_0x50d9b2):'',this[_0x47e8('0xc')]&&this[_0x47e8('0xc')][_0x47e8('0x9')]('isEnabled')['to'](this),this[_0x47e8('0x21')]({'tag':'div','attributes':{'class':['ck',_0x47e8('0x1c'),'ck-revision-history-sidebar__revision-wrapper',_0x116c1f['if']('isConfirm',_0x47e8('0x2a'))]},'children':[{'tag':_0x47e8('0x2b'),'attributes':{'class':['ck','ck-reset',_0x47e8('0xe'),_0x116c1f['if'](_0x47e8('0x0'),_0x47e8('0x1f'),_0x9c15c9=>!_0x9c15c9),_0x116c1f['if']('isSelected',_0x47e8('0x8')),_0x116c1f['if']('isHighlighted',_0x47e8('0x13')),_0x116c1f['if'](_0x47e8('0x12'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x47e8('0x7')],{'tag':_0x47e8('0x22'),'attributes':{'class':['ck',_0x47e8('0x1a')]},'children':[{'text':_0x116c1f['to'](_0x47e8('0x26'))}]},{'tag':_0x47e8('0x2b'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x47e8('0x10')]},'children':_0x105a7e}]},this[_0x47e8('0xc')]],'on':{'click':_0x116c1f['to'](_0x3529f4=>{_0x3529f4[_0x47e8('0x1')][_0x47e8('0x16')]('.ck-thread__remove-confirm')||this[_0x47e8('0xf')]&&this[_0x47e8('0x0')]&&this[_0x47e8('0x17')](_0x47e8('0x5'),{'id':this['id']});})}}]});}[_0x47e8('0xb')](){super[_0x47e8('0xb')]();const _0x1fb92c=this[_0x47e8('0x7')][_0x47e8('0x25')][_0x47e8('0x19')];this[_0x47e8('0x1e')](_0x1fb92c,_0x47e8('0x18'),()=>{this[_0x47e8('0x17')](_0x47e8('0x27'),{'id':this['id'],'name':_0x1fb92c['value']});});}[_0x47e8('0x5')](){this['isSelected']=!0x0;}[_0x47e8('0x1b')](){this[_0x47e8('0xa')]=!0x1;}[_0x47e8('0x15')](){this['isHighlighted']=!0x0;}[_0x47e8('0x1d')](){this[_0x47e8('0x6')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9ec8=['setTemplate','click','ck-revision-history-sidebar__subrevision-collapser','bindTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','true','span','_isCollapsed','ck-hidden','false','button','ck-revision-history-sidebar__subrevision-collapser__inner','isVisible','toggle','set'];(function(_0x3566e7,_0x9ec85e){const _0x2da481=function(_0x57ebe4){while(--_0x57ebe4){_0x3566e7['push'](_0x3566e7['shift']());}};_0x2da481(++_0x9ec85e);}(_0x9ec8,0x144));const _0x2da4=function(_0x3566e7,_0x9ec85e){_0x3566e7=_0x3566e7-0x0;let _0x2da481=_0x9ec8[_0x3566e7];return _0x2da481;};import{View as _0x36dfcd}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x36dfcd{constructor(_0x127239){super(_0x127239);const _0x4f62ff=this[_0x2da4('0x9')];this[_0x2da4('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2da4('0x6')]({'tag':'span','attributes':{'class':['ck',_0x2da4('0x8'),_0x4f62ff['if'](_0x2da4('0x3'),_0x2da4('0xe'),_0x29101f=>!_0x29101f),_0x4f62ff['if'](_0x2da4('0xd'),_0x2da4('0xa'))],'role':_0x2da4('0x1'),'aria-pressed':_0x4f62ff['to'](_0x2da4('0xd'),_0x3ba038=>_0x3ba038?_0x2da4('0x0'):_0x2da4('0xb'))},'children':[{'tag':_0x2da4('0xc'),'attributes':{'class':['ck',_0x2da4('0x2')]}}],'on':{'click':_0x4f62ff['to'](_0x2da4('0x7'))}});}[_0x2da4('0x4')](){this[_0x2da4('0xd')]=!this[_0x2da4('0xd')];}}
23
+ const _0x34cd=['ck-hidden','isVisible','click','toggle','true','set','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','setTemplate','_isCollapsed','span','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser'];(function(_0xadae68,_0x34cdbd){const _0xd41c77=function(_0x114112){while(--_0x114112){_0xadae68['push'](_0xadae68['shift']());}};_0xd41c77(++_0x34cdbd);}(_0x34cd,0x91));const _0xd41c=function(_0xadae68,_0x34cdbd){_0xadae68=_0xadae68-0x0;let _0xd41c77=_0x34cd[_0xadae68];return _0xd41c77;};import{View as _0x4eefc6}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4eefc6{constructor(_0x4ec65a){super(_0x4ec65a);const _0x25c67d=this[_0xd41c('0x5')];this[_0xd41c('0x3')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xd41c('0x6')]({'tag':_0xd41c('0x8'),'attributes':{'class':['ck',_0xd41c('0xa'),_0x25c67d['if'](_0xd41c('0xc'),_0xd41c('0xb'),_0x56fac7=>!_0x56fac7),_0x25c67d['if'](_0xd41c('0x7'),_0xd41c('0x9'))],'role':'button','aria-pressed':_0x25c67d['to'](_0xd41c('0x7'),_0x25b65=>_0x25b65?'false':_0xd41c('0x2'))},'children':[{'tag':_0xd41c('0x8'),'attributes':{'class':['ck',_0xd41c('0x4')]}}],'on':{'click':_0x25c67d['to'](_0xd41c('0x0'))}});}[_0xd41c('0x1')](){this[_0xd41c('0x7')]=!this[_0xd41c('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b6f=['setTemplate','select','bind','uiLanguage','ck-revision-history-sidebar__revision__date','_parentRevisionId','ck-reset','fire','ck-revision-history-sidebar__revision','_createdAtFormatted','set','div','span','ck-revision-history-sidebar__revision_selected','deselect','isSelected','bindTemplate','ck-revision-history-sidebar__revision-authors','createdAt'];(function(_0x1e1956,_0x3b6f02){const _0x59e276=function(_0x5e7732){while(--_0x5e7732){_0x1e1956['push'](_0x1e1956['shift']());}};_0x59e276(++_0x3b6f02);}(_0x3b6f,0xe2));const _0x59e2=function(_0x1e1956,_0x3b6f02){_0x1e1956=_0x1e1956-0x0;let _0x59e276=_0x3b6f[_0x1e1956];return _0x59e276;};import{View as _0xf57180}from'ckeditor5/src/ui';import _0x4fd7b4 from'./revisionauthorview';import{dateToPrettyFormat as _0x104788}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xf57180{constructor(_0x5ed340,_0x4d358b,_0x4463cf){super(_0x5ed340);const _0x12d0ec=this[_0x59e2('0x12')];this['id']=_0x4d358b['id'],this[_0x59e2('0x4')]('createdAt')['to'](_0x4d358b),this[_0x59e2('0xc')](_0x59e2('0x11'),!0x1),this[_0x59e2('0x4')](_0x59e2('0xb'))['to'](this,_0x59e2('0x1'),_0x4ade45=>_0x4ade45?_0x104788(_0x5ed340[_0x59e2('0x5')],_0x4ade45):void 0x0),this[_0x59e2('0x7')]=_0x4463cf,this[_0x59e2('0x2')]({'tag':_0x59e2('0xd'),'attributes':{'class':['ck',_0x59e2('0x8'),_0x59e2('0xa'),'ck-revision-history-sidebar__subrevision',_0x12d0ec['if'](_0x59e2('0x11'),_0x59e2('0xf'))]},'children':[{'tag':_0x59e2('0xe'),'attributes':{'class':['ck',_0x59e2('0x6')]},'children':[{'text':_0x12d0ec['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x59e2('0x0')]},'children':[new _0x4fd7b4(_0x5ed340,_0x4d358b['creator'],!0x0)]}],'on':{'click':_0x12d0ec['to'](this[_0x59e2('0x3')][_0x59e2('0x4')](this))}});}[_0x59e2('0x3')](){this[_0x59e2('0x11')]=!0x0,this[_0x59e2('0x9')]('select',{'parentId':this[_0x59e2('0x7')]});}[_0x59e2('0x10')](){this[_0x59e2('0x11')]=!0x1;}}
23
+ const _0xf475=['set','span','creator','uiLanguage','select','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','bindTemplate','_createdAtFormatted','bind','isSelected','ck-revision-history-sidebar__subrevision','createdAt','deselect','fire'];(function(_0x35f43e,_0xf475b2){const _0x4d944b=function(_0x2b2bbe){while(--_0x2b2bbe){_0x35f43e['push'](_0x35f43e['shift']());}};_0x4d944b(++_0xf475b2);}(_0xf475,0x146));const _0x4d94=function(_0x35f43e,_0xf475b2){_0x35f43e=_0x35f43e-0x0;let _0x4d944b=_0xf475[_0x35f43e];return _0x4d944b;};import{View as _0x4ff6d7}from'ckeditor5/src/ui';import _0x19afbf from'./revisionauthorview';import{dateToPrettyFormat as _0x290488}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x4ff6d7{constructor(_0x21445b,_0x5249de,_0x44fb9d){super(_0x21445b);const _0x216b0c=this[_0x4d94('0xb')];this['id']=_0x5249de['id'],this[_0x4d94('0xd')]('createdAt')['to'](_0x5249de),this[_0x4d94('0x4')]('isSelected',!0x1),this[_0x4d94('0xd')]('_createdAtFormatted')['to'](this,_0x4d94('0x1'),_0x4f15b3=>_0x4f15b3?_0x290488(_0x21445b[_0x4d94('0x7')],_0x4f15b3):void 0x0),this['_parentRevisionId']=_0x44fb9d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4d94('0x0'),_0x216b0c['if']('isSelected',_0x4d94('0xa'))]},'children':[{'tag':_0x4d94('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x216b0c['to'](_0x4d94('0xc'))}]},{'tag':'ul','attributes':{'class':['ck',_0x4d94('0x9')]},'children':[new _0x19afbf(_0x21445b,_0x5249de[_0x4d94('0x6')],!0x0)]}],'on':{'click':_0x216b0c['to'](this[_0x4d94('0x8')]['bind'](this))}});}[_0x4d94('0x8')](){this[_0x4d94('0xe')]=!0x0,this[_0x4d94('0x3')](_0x4d94('0x8'),{'parentId':this['_parentRevisionId']});}[_0x4d94('0x2')](){this[_0x4d94('0xe')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x13dd=['toLocaleDateString','numeric','toLocaleTimeString'];(function(_0x332d99,_0x13dd1c){var _0x45eb4b=function(_0x59d664){while(--_0x59d664){_0x332d99['push'](_0x332d99['shift']());}};_0x45eb4b(++_0x13dd1c);}(_0x13dd,0x13b));var _0x45eb=function(_0x332d99,_0x13dd1c){_0x332d99=_0x332d99-0x0;var _0x45eb4b=_0x13dd[_0x332d99];return _0x45eb4b;};export function dateToPrettyFormat(_0x336987,_0x58e856){return _0x58e856[_0x45eb('0x0')](_0x336987,{'month':'long','day':_0x45eb('0x1')})+',\x20'+_0x58e856[_0x45eb('0x2')](_0x336987,{'hour':_0x45eb('0x1'),'minute':_0x45eb('0x1')});}
23
+ var _0x26a3=['toLocaleDateString','long','numeric'];(function(_0x28aa44,_0x26a3c7){var _0x1aa251=function(_0x195000){while(--_0x195000){_0x28aa44['push'](_0x28aa44['shift']());}};_0x1aa251(++_0x26a3c7);}(_0x26a3,0x10e));var _0x1aa2=function(_0x28aa44,_0x26a3c7){_0x28aa44=_0x28aa44-0x0;var _0x1aa251=_0x26a3[_0x28aa44];return _0x1aa251;};export function dateToPrettyFormat(_0x25d8a8,_0x20bd52){return _0x20bd52[_0x1aa2('0x0')](_0x25d8a8,{'month':_0x1aa2('0x1'),'day':'numeric'})+',\x20'+_0x20bd52['toLocaleTimeString'](_0x25d8a8,{'hour':_0x1aa2('0x2'),'minute':_0x1aa2('0x2')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4911=['setTemplate','locale','ck-revision-history-save-revision-form','tab','stopPropagation','arrowup','set','saveButtonView','_createButton','add','listenTo','focus','label','revisionName','ck-responsive-form','input','render','cancelButtonView','ck-button-cancel','_focusables','focusFirst','revisionNameInputView','type','submit','focusTracker','extendTemplate','fieldView','trim','forEach','_focusCycler','form','reset','keystrokes','Cancel','Save','revisionNameInputValue','cancel','ck-button-save','element','value','_createRevisionNameInput','220'];(function(_0x220ed6,_0x49116d){const _0x2f403a=function(_0x35a582){while(--_0x35a582){_0x220ed6['push'](_0x220ed6['shift']());}};_0x2f403a(++_0x49116d);}(_0x4911,0xf3));const _0x2f40=function(_0x220ed6,_0x49116d){_0x220ed6=_0x220ed6-0x0;let _0x2f403a=_0x4911[_0x220ed6];return _0x2f403a;};import{icons as _0xd21a64}from'ckeditor5/src/core';import{ButtonView as _0x337744,FocusCycler as _0x4515a,LabeledFieldView as _0x2bb3ce,View as _0x376e0d,ViewCollection as _0x1448f3,createLabeledInputText as _0x124f99,injectCssTransitionDisabler as _0x20be81,submitHandler as _0x18baeb}from'ckeditor5/src/ui';import{FocusTracker as _0x29e233,KeystrokeHandler as _0x3937d7}from'ckeditor5/src/utils';import{getTranslation as _0x3875a3}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x376e0d{constructor(_0x3165dc){super(_0x3165dc),this['focusTracker']=new _0x29e233(),this['keystrokes']=new _0x3937d7(),this[_0x2f40('0xf')]('revisionNameInputValue',''),this['revisionNameInputView']=this[_0x2f40('0x7')](),this['saveButtonView']=this[_0x2f40('0x11')](_0x3875a3(_0x3165dc,_0x2f40('0x1')),_0xd21a64['check'],_0x2f40('0x4')),this['saveButtonView'][_0x2f40('0x1f')]=_0x2f40('0x20'),this['cancelButtonView']=this[_0x2f40('0x11')](_0x3875a3(_0x3165dc,_0x2f40('0x0')),_0xd21a64['cancel'],_0x2f40('0x1b'),_0x2f40('0x3')),this[_0x2f40('0x1c')]=new _0x1448f3(),this['_focusCycler']=new _0x4515a({'focusables':this['_focusables'],'focusTracker':this[_0x2f40('0x21')],'keystrokeHandler':this[_0x2f40('0x29')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x2f40('0xc')}}),this[_0x2f40('0x9')]({'tag':_0x2f40('0x27'),'attributes':{'class':['ck',_0x2f40('0xb'),_0x2f40('0x17')],'tabindex':'-1'},'children':[this[_0x2f40('0x1e')],this[_0x2f40('0x10')],this[_0x2f40('0x1a')]]}),_0x20be81(this);}[_0x2f40('0x19')](){super[_0x2f40('0x19')](),_0x18baeb({'view':this}),([this['revisionNameInputView'],this[_0x2f40('0x10')],this[_0x2f40('0x1a')]][_0x2f40('0x25')](_0x3f2f1d=>{this['_focusables'][_0x2f40('0x12')](_0x3f2f1d),this[_0x2f40('0x21')][_0x2f40('0x12')](_0x3f2f1d[_0x2f40('0x5')]);}),this[_0x2f40('0x29')][_0x2f40('0x13')](this[_0x2f40('0x5')]));const _0x55b818=_0xfb9ca4=>_0xfb9ca4[_0x2f40('0xd')]();this['keystrokes'][_0x2f40('0xf')]('arrowright',_0x55b818),this['keystrokes'][_0x2f40('0xf')]('arrowleft',_0x55b818),this[_0x2f40('0x29')][_0x2f40('0xf')](_0x2f40('0xe'),_0x55b818),this[_0x2f40('0x29')][_0x2f40('0xf')]('arrowdown',_0x55b818);}[_0x2f40('0x14')](){this[_0x2f40('0x26')][_0x2f40('0x1d')]();}get[_0x2f40('0x16')](){return this[_0x2f40('0x1e')][_0x2f40('0x23')][_0x2f40('0x5')][_0x2f40('0x6')][_0x2f40('0x24')]();}set[_0x2f40('0x16')](_0x1f05df){this[_0x2f40('0x1e')][_0x2f40('0x23')]['element'][_0x2f40('0x6')]=_0x1f05df[_0x2f40('0x24')]();}[_0x2f40('0x28')](){this[_0x2f40('0x1e')][_0x2f40('0x23')][_0x2f40('0x5')]['value']='';}['_createRevisionNameInput'](){const _0x4f64a4=new _0x2bb3ce(this[_0x2f40('0xa')],_0x124f99),_0x3360d0=_0x4f64a4['fieldView'];return _0x3360d0[_0x2f40('0x22')]({'attributes':{'maxlength':_0x2f40('0x8')}}),_0x4f64a4[_0x2f40('0x15')]=_0x3875a3(this[_0x2f40('0xa')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x3360d0['on'](_0x2f40('0x18'),()=>{this[_0x2f40('0x2')]=_0x3360d0['element']['value'][_0x2f40('0x24')]();}),_0x4f64a4;}[_0x2f40('0x11')](_0x141529,_0x20a4c7,_0x1b6d28,_0x50b522){const _0x19276b=new _0x337744(this[_0x2f40('0xa')]);return _0x19276b[_0x2f40('0xf')]({'label':_0x141529,'icon':_0x20a4c7,'tooltip':!0x0}),_0x19276b['extendTemplate']({'attributes':{'class':_0x1b6d28}}),_0x50b522&&_0x19276b['delegate']('execute')['to'](this,_0x50b522),_0x19276b;}}
23
+ const _0x5990=['listenTo','keystrokes','set','arrowup','arrowright','reset','shift\x20+\x20tab','type','stopPropagation','label','locale','cancelButtonView','check','_focusables','_focusCycler','extendTemplate','input','render','form','element','cancel','submit','delegate','ck-button-save','revisionNameInputView','tab','value','setTemplate','trim','fieldView','arrowleft','execute','saveButtonView','_createRevisionNameInput','Save','focusTracker','220','revisionName','_createButton','ck-button-cancel'];(function(_0xed72de,_0x599042){const _0x468e99=function(_0x595b4b){while(--_0x595b4b){_0xed72de['push'](_0xed72de['shift']());}};_0x468e99(++_0x599042);}(_0x5990,0xa2));const _0x468e=function(_0xed72de,_0x599042){_0xed72de=_0xed72de-0x0;let _0x468e99=_0x5990[_0xed72de];return _0x468e99;};import{icons as _0x993828}from'ckeditor5/src/core';import{ButtonView as _0x3e6469,FocusCycler as _0x2cc709,LabeledFieldView as _0xab1904,View as _0x17ea40,ViewCollection as _0x3c2e0e,createLabeledInputText as _0x10030f,injectCssTransitionDisabler as _0x2fae4a,submitHandler as _0x59c660}from'ckeditor5/src/ui';import{FocusTracker as _0x492413,KeystrokeHandler as _0x2baff2}from'ckeditor5/src/utils';import{getTranslation as _0x46e229}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x17ea40{constructor(_0x76ba9a){super(_0x76ba9a),this['focusTracker']=new _0x492413(),this[_0x468e('0x27')]=new _0x2baff2(),this[_0x468e('0x0')]('revisionNameInputValue',''),this[_0x468e('0x16')]=this[_0x468e('0x1f')](),this[_0x468e('0x1e')]=this[_0x468e('0x24')](_0x46e229(_0x76ba9a,_0x468e('0x20')),_0x993828[_0x468e('0xa')],_0x468e('0x15')),this[_0x468e('0x1e')][_0x468e('0x5')]=_0x468e('0x13'),this['cancelButtonView']=this[_0x468e('0x24')](_0x46e229(_0x76ba9a,'Cancel'),_0x993828['cancel'],_0x468e('0x25'),_0x468e('0x12')),this[_0x468e('0xb')]=new _0x3c2e0e(),this[_0x468e('0xc')]=new _0x2cc709({'focusables':this[_0x468e('0xb')],'focusTracker':this[_0x468e('0x21')],'keystrokeHandler':this[_0x468e('0x27')],'actions':{'focusPrevious':_0x468e('0x4'),'focusNext':_0x468e('0x17')}}),this[_0x468e('0x19')]({'tag':_0x468e('0x10'),'attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this[_0x468e('0x9')]]}),_0x2fae4a(this);}[_0x468e('0xf')](){super[_0x468e('0xf')](),_0x59c660({'view':this}),([this[_0x468e('0x16')],this[_0x468e('0x1e')],this[_0x468e('0x9')]]['forEach'](_0x502a52=>{this['_focusables']['add'](_0x502a52),this[_0x468e('0x21')]['add'](_0x502a52['element']);}),this[_0x468e('0x27')][_0x468e('0x26')](this[_0x468e('0x11')]));const _0x132ebd=_0x4dd0a4=>_0x4dd0a4[_0x468e('0x6')]();this[_0x468e('0x27')][_0x468e('0x0')](_0x468e('0x2'),_0x132ebd),this['keystrokes'][_0x468e('0x0')](_0x468e('0x1c'),_0x132ebd),this[_0x468e('0x27')][_0x468e('0x0')](_0x468e('0x1'),_0x132ebd),this[_0x468e('0x27')][_0x468e('0x0')]('arrowdown',_0x132ebd);}['focus'](){this[_0x468e('0xc')]['focusFirst']();}get[_0x468e('0x23')](){return this[_0x468e('0x16')]['fieldView'][_0x468e('0x11')][_0x468e('0x18')][_0x468e('0x1a')]();}set[_0x468e('0x23')](_0x1c6a66){this[_0x468e('0x16')]['fieldView'][_0x468e('0x11')][_0x468e('0x18')]=_0x1c6a66[_0x468e('0x1a')]();}[_0x468e('0x3')](){this[_0x468e('0x16')]['fieldView'][_0x468e('0x11')][_0x468e('0x18')]='';}[_0x468e('0x1f')](){const _0x3fb6d6=new _0xab1904(this[_0x468e('0x8')],_0x10030f),_0x274689=_0x3fb6d6[_0x468e('0x1b')];return _0x274689[_0x468e('0xd')]({'attributes':{'maxlength':_0x468e('0x22')}}),_0x3fb6d6[_0x468e('0x7')]=_0x46e229(this[_0x468e('0x8')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x274689['on'](_0x468e('0xe'),()=>{this['revisionNameInputValue']=_0x274689['element'][_0x468e('0x18')][_0x468e('0x1a')]();}),_0x3fb6d6;}[_0x468e('0x24')](_0x2bfd9c,_0x33d5cc,_0x1b9608,_0x4b4477){const _0x5edca3=new _0x3e6469(this[_0x468e('0x8')]);return _0x5edca3['set']({'label':_0x2bfd9c,'icon':_0x33d5cc,'tooltip':!0x0}),_0x5edca3[_0x468e('0xd')]({'attributes':{'class':_0x1b9608}}),_0x4b4477&&_0x5edca3[_0x468e('0x14')](_0x468e('0x1d'))['to'](this,_0x4b4477),_0x5edca3;}}