@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231016.0 → 0.0.0-nightly-20231017.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3aab=['_makeModelFromTape','changeId','viewItem','maxOffset','_step','_makeModelFromViewString','isOnRoot','_update','detachRoot','slice','revision-suggestion','ck-suggestion-marker-split','isCollapsed','toData','getRootNames','isInline','addMarker:revision-suggestion:insertion','element','model','ck-editor__editable__overlay','_markMarkers','flat','getAttribute','ck-revision-history-root-','observeMarkers','revision','low','_markSuggestions','unbindElementFromMarkerName','attachChange','getRevision','_markMismatchedRemovedTags','_findChangeIdFromDomTarget','isEqual','level','find','RevisionsRepository','_cleanMarkers','_sortAndFilterDiffChanges','push','domConverter','revisionHistory','authors','activeChange','getChild','getRevisionRootsAttributes','mousedown','return','isLimit','diff','clear','markersStart','deletions','isObject','bottom','toModel','toViewElement','isEnabled','showNextChange','ck-revision-history-root-remove','get','numberOfChanges','addHighlight','bind','newRevisionId','editor','_processTape','RevisionViewer','filter','attributesAfter','parent','activeView','revision-start','getIndex','item','ck-revision-history-root--active','downcastDispatcher','length','changes','attributesBefore','init','ck-suggestion-preview-marker','uiElement','pairId','add','vid_end','markers','change:numberOfChanges','dataDowncast','map','elementStart','addMarker:revision-suggestion:deletion','_setChanges','change:isEnabled','mapViewToDom','collaboration.channelId','top','enableReadOnlyMode','createAttributeElement','next','toViewRange','children','_balloon','change','pop','domEvent','change:isReady','markerToHighlight','addRevision','view','diffData','vid_start','WidgetToolbarRepository','offsetSize','previousPosition','target','addRoot','getItems','destroy','-new','getCustomProperty','nextSibling','change:activeView','index','_markInsertions','addMarker:revision','_getViewObj','shift','object','vid','execute','default','start','isAddSuggestion','elementEnd','_getChangeFromId','includes','useFillerType','markerRange','markerNameToElements','reconvertMarker','bindElementToMarker','getAttributes','endIndex','createUIElement','_setDistance','consumable','POSITIVE_INFINITY','forEach','remove','distance','data','addClass','mapper','indexOf','config','isAdded','isBefore','has','listenTo','removeMarker','span','_getRevisionsRange','forward','enqueueChange','consume','left','sort','insertions','removeMarker:revision-suggestion','_getViewForChange','_activeViewTarget','type','hasClass','commands','currentChangeNumber','unshift','deletion','test','text','revisionHistoryAttachChange','showPreviousChange','revision-comment:','restoreRevisionCallback','_appendChild','isAfter','comment','_makeTape','restoreRevision','attribute:vid','wrap','isIncorrect','concat','revision-suggestion:','getClientRects','isBlock','startsWith','modelRange','userId','isNavigationMode','rootName','adapter','conversion','document','_cleanUp','abs','schema','then','compare','findIndex','nodeAfter','isRemoveSuggestion','_joinTapes','_setConversion','revision-viewer','mouseover','range','data-change-id','_getDiff','getDomRoot','hasAttribute','requires','side','string','checkAttribute','_changeView','ck-suggestion-marker-merge','error','ck-suggestion-marker--active','processor','high','markerToData','keys','delete','parse','isAttached','loadRevisionData','isRemoved','isContent','upcast','_fixObsoleteTags','pluginName','editingDowncast','first','suggestion:','isAtEnd','roots','createPositionBefore','createRange','all','for','data-revision-','dataToMarker','isSuggestion','removeClass','plugins','_refreshStartEndIndex','locale','setAttribute','_removeMissingPairs','getWalker','attributes','revision:','_removeRevisionMarkers','resolve','insert','createPositionFromPath','repository','getRoot','name','_changeIdToChange','createRevision','highest','merge','selection','refresh','done','revisionHistoryLabel','insertion','set','end','startIndex','split','ck-suggestion-marker-','_initInteractions','splice','writer','editing','toViewPosition','markerName','ck-suggestion-preview-marker-','change:activeChange','backward','_revisions','ck-revision-history-root-add','from','isReady','markersEnd'];(function(_0x2fa8ee,_0x3aabec){const _0x10d632=function(_0x573327){while(--_0x573327){_0x2fa8ee['push'](_0x2fa8ee['shift']());}};_0x10d632(++_0x3aabec);}(_0x3aab,0x70));const _0x10d6=function(_0x2fa8ee,_0x3aabec){_0x2fa8ee=_0x2fa8ee-0x0;let _0x10d632=_0x3aab[_0x2fa8ee];return _0x10d632;};import{Plugin as _0x451ee7,Command as _0x5ab159}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x154fcd}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4aa902}from'ckeditor5/src/ui';import{DocumentFragment as _0x469446,Element as _0x99abb8,Text as _0x37723c,ViewDocumentFragment as _0x409c19,ViewText as _0x41cb49,ViewElement as _0x2c9b78,ViewContainerElement as _0x3a0ba3,ViewAttributeElement as _0x426074,ViewEmptyElement as _0x5b0573,ViewRawElement as _0x1bd6d6,ViewUIElement as _0x4c566e}from'ckeditor5/src/engine';import{Users as _0x35ab2f,getMarkerDomElement as _0x2d8e50}from'ckeditor5-collaboration/src/collaboration-core';import _0xe2d2d7 from'./ui/revisionviewer/changedetailsview';import _0x1b14d9 from'./revisionsrepository';import _0x26840e from'./changeitem';import{default as _0x4c06d3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x17e379}from'lodash-es';const tt={'c':_0x3a0ba3,'a':_0x426074,'e':_0x5b0573,'r':_0x1bd6d6,'u':_0x4c566e};export default class d extends _0x451ee7{static get[_0x10d6('0x81')](){return _0x10d6('0xfd');}static get[_0x10d6('0x6d')](){return[_0x35ab2f,_0x4aa902,_0x1b14d9];}constructor(_0x5bcd8f){super(_0x5bcd8f),this[_0x10d6('0x9b')]=this['editor'][_0x10d6('0x8f')]['get'](_0x10d6('0xde')),this[_0x10d6('0xa7')](_0x10d6('0xe5'),null),this[_0x10d6('0xa7')]('activeView',null),this['_activeViewTarget']=null,this[_0x10d6('0xa7')](_0x10d6('0xeb'),null),this[_0x10d6('0xa7')](_0x10d6('0xb8'),!0x1),this[_0x10d6('0xa7')](_0x10d6('0xf3'),!0x0),this['on'](_0x10d6('0x117'),(_0x17d7ba,_0x4109de,_0x2a4aea)=>{this[_0x10d6('0xe5')]=null,this[_0x10d6('0x101')]=null,this['editor'][_0x10d6('0xaf')][_0x10d6('0x127')][_0x10d6('0x121')](_0x2a411f=>{for(const _0x1b3bd8 of this['editor']['editing'][_0x10d6('0x127')]['document'][_0x10d6('0x86')])_0x2a4aea?_0x2a411f['removeClass'](_0x10d6('0xcd'),_0x1b3bd8):_0x2a411f[_0x10d6('0x28')](_0x10d6('0xcd'),_0x1b3bd8);});}),this[_0x10d6('0xf9')](_0x10d6('0x57'))['to'](this,'activeChange',_0x16002e=>null!==_0x16002e),this[_0x10d6('0xf9')](_0x10d6('0x3f'))['to'](this,_0x10d6('0xb8'),this,_0x10d6('0xeb'),this,_0x10d6('0xe5'),(_0x5409f4,_0x420d52,_0x442791)=>_0x5409f4&&_0x442791?_0x420d52[_0x10d6('0x108')][_0x10d6('0x103')](_0x442791):0x0),this[_0x10d6('0xf9')](_0x10d6('0xf7'))['to'](this,'isReady',this,_0x10d6('0xeb'),(_0x423dc7,_0x423c6e)=>_0x423dc7?_0x423c6e['changes'][_0x10d6('0x107')]:0x0),this[_0x10d6('0x71')]=null,this[_0x10d6('0x9e')]=new Map(),this[_0x10d6('0x59')]=null,this[_0x10d6('0x120')]=this['editor'][_0x10d6('0x8f')][_0x10d6('0xf6')](_0x4aa902);}[_0x10d6('0x10a')](){const _0x7d5b97=this['editor'],_0x500b93=new ShowChangeCommand(_0x7d5b97,{'direction':_0x10d6('0xb4')}),_0x4dadc5=new ShowChangeCommand(_0x7d5b97,{'direction':_0x10d6('0x33')});(_0x7d5b97[_0x10d6('0x3e')][_0x10d6('0x10e')](_0x10d6('0x45'),_0x500b93),_0x7d5b97[_0x10d6('0x3e')][_0x10d6('0x10e')](_0x10d6('0xf4'),_0x4dadc5),_0x7d5b97['commands'][_0x10d6('0x10e')](_0x10d6('0x4c'),new RestoreRevisionCommand(_0x7d5b97)),this['on'](_0x10d6('0x111'),()=>{_0x500b93['refresh'](),_0x4dadc5[_0x10d6('0xa3')]();}),this[_0x10d6('0x65')](),this[_0x10d6('0xac')](),_0x7d5b97[_0x10d6('0x11b')](_0x10d6('0x66')),_0x7d5b97['plugins'][_0x10d6('0x2e')](_0x10d6('0x0')))&&_0x7d5b97['plugins'][_0x10d6('0xf6')]('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x39537e){await this[_0x10d6('0x7c')](_0x39537e);const _0x5e20df={};for(const _0x3a7214 in _0x39537e['diffData']){if(_0x39537e[_0x10d6('0x128')][_0x3a7214]['attachChange']&&!_0x39537e[_0x10d6('0x128')][_0x3a7214][_0x10d6('0xd7')][_0x10d6('0x7b')])continue;const _0x315d8d=this[_0x10d6('0x97')](JSON[_0x10d6('0x7a')](_0x39537e[_0x10d6('0x128')][_0x3a7214][_0x10d6('0x38')])),_0x14d01a=this[_0x10d6('0xfb')][_0x10d6('0xaf')]['view'][_0x10d6('0x5b')],_0x4a3188=new _0x409c19(_0x14d01a,_0x315d8d[_0x10d6('0x113')](_0x3791d4=>this[_0x10d6('0xe')](_0x3791d4)));this[_0x10d6('0xfb')][_0x10d6('0x27')][_0x10d6('0x75')]['useFillerType']('marked'),_0x5e20df[_0x3a7214]=this[_0x10d6('0xfb')][_0x10d6('0x27')][_0x10d6('0x75')][_0x10d6('0xc7')](_0x4a3188),this[_0x10d6('0xfb')][_0x10d6('0x27')]['processor'][_0x10d6('0x19')](_0x10d6('0x13'));}return _0x5e20df;}async[_0x10d6('0xe7')](_0x20387f){await this[_0x10d6('0x7c')](_0x20387f);const _0x1a82f9={};for(const _0x3548b9 in _0x20387f[_0x10d6('0x128')])_0x20387f[_0x10d6('0x128')][_0x3548b9]['attachChange']&&!_0x20387f[_0x10d6('0x128')][_0x3548b9][_0x10d6('0xd7')]['isAttached']||(_0x1a82f9[_0x3548b9]=_0x20387f[_0x10d6('0x128')][_0x3548b9][_0x10d6('0xff')]||{});return _0x1a82f9;}[_0x10d6('0x97')](_0x47bdf6){return(_0x47bdf6=_0x47bdf6['filter'](_0x529100=>!_0x529100[_0x10d6('0x9d')]||_0x10d6('0x102')!==_0x529100[_0x10d6('0x9d')]&&'revision-end'!==_0x529100[_0x10d6('0x9d')]))[_0x10d6('0x24')](_0x45739f=>{_0x10d6('0x6f')!=typeof _0x45739f&&(_0x45739f[_0x10d6('0x11f')]=this[_0x10d6('0x97')](_0x45739f[_0x10d6('0x11f')]),_0x45739f['attributes']=_0x45739f[_0x10d6('0x95')][_0x10d6('0xfe')](_0x4922bc=>!_0x4922bc[0x0][_0x10d6('0x54')](_0x10d6('0x8b'))));}),_0x47bdf6;}async[_0x10d6('0x60')](_0xa3c954,_0x3e7048,_0x563d30=!0x1){if(!this[_0x10d6('0xf3')])return;const _0x292a6a=this['diff'],_0x385e13=this['repository'],_0x145765='string'==typeof _0xa3c954?_0x385e13['getRevision'](_0xa3c954):_0xa3c954,_0x483185='string'==typeof _0x3e7048?_0x385e13[_0x10d6('0xd8')](_0x3e7048):_0x3e7048,_0x168215=_0x145765['id'],_0x2004a1=_0x483185?_0x483185['id']:null;if(!_0x563d30&&this[_0x10d6('0xeb')]&&this[_0x10d6('0xeb')][_0x10d6('0xfa')]===_0x168215&&this[_0x10d6('0xeb')]['oldRevisionId']===_0x2004a1)return Promise[_0x10d6('0x98')]();this[_0x10d6('0xb8')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x10d6('0xeb')]=new _0x4c06d3(_0x168215,_0x2004a1);const _0x123eb5=this[_0x10d6('0x32')](_0x145765,_0x483185,!0x0)[_0x10d6('0x113')](_0x292211=>this[_0x10d6('0x7c')](_0x292211));return _0x123eb5[_0x10d6('0xe1')](new Promise(_0x4fa8dd=>{setTimeout(_0x4fa8dd,0x14);})),Promise[_0x10d6('0x89')](_0x123eb5)[_0x10d6('0x5f')](()=>{if(!this['isEnabled'])return;this[_0x10d6('0x5c')]();const _0x1ed507=this[_0x10d6('0x6a')](_0x168215,_0x2004a1);for(const _0x41582c of _0x1ed507[_0x10d6('0x108')])this[_0x10d6('0x9e')][_0x10d6('0xa7')](_0x41582c['id'],_0x41582c);this[_0x10d6('0xfb')]['model'][_0x10d6('0x34')]({'isUndoable':!0x1},_0x1658d3=>{for(const _0x984af5 of this[_0x10d6('0xfb')]['model'][_0x10d6('0x5b')][_0x10d6('0xc8')]())_0x1658d3[_0x10d6('0xc2')](_0x984af5);for(const _0x49b276 of Object[_0x10d6('0x78')](_0x1ed507[_0x10d6('0xcc')])){const _0x57514b=_0x1658d3[_0x10d6('0x4')](_0x49b276);for(const _0x173dbc of Object[_0x10d6('0x78')](_0x1ed507[_0x10d6('0x95')][_0x49b276]))_0x1658d3['setAttribute'](_0x173dbc,_0x1ed507[_0x10d6('0x95')][_0x49b276][_0x173dbc],_0x57514b);_0x1658d3[_0x10d6('0x99')](_0x1ed507[_0x10d6('0xcc')][_0x49b276],_0x57514b,0x0);}}),this[_0x10d6('0xeb')][_0x10d6('0x116')](this[_0x10d6('0xe0')](_0x1ed507[_0x10d6('0x108')])),this[_0x10d6('0xb8')]=!0x0;})['catch'](_0xae76e2=>{console[_0x10d6('0x73')](_0xae76e2),this[_0x10d6('0x5c')](),_0x292a6a&&(this[_0x10d6('0xeb')]=_0x292a6a),this[_0x10d6('0xb8')]=!0x0;});}['addRevisionData'](_0x766b37,_0x4ea65e){const _0x34eb70=this[_0x10d6('0x9b')][_0x10d6('0x9f')](_0x766b37);return _0x34eb70['on'](_0x10d6('0xc1'),(_0x53a752,_0x56c102,_0x58a525)=>_0x4ea65e(_0x56c102,_0x58a525,_0x34eb70)),this[_0x10d6('0x9b')][_0x10d6('0x126')](_0x34eb70),_0x34eb70;}['loadRevisionData'](_0xb4c8f7){if(!_0xb4c8f7||_0xb4c8f7[_0x10d6('0x128')])return Promise[_0x10d6('0x98')]();{const _0x5e72a3=this[_0x10d6('0xfb')][_0x10d6('0x2b')]['get'](_0x10d6('0x119'));return this[_0x10d6('0x59')][_0x10d6('0xd8')]({'channelId':_0x5e72a3,'revisionId':_0xb4c8f7['id']})[_0x10d6('0x5f')](_0xe36993=>{_0xb4c8f7[_0x10d6('0xc1')]({'diffData':_0xe36993[_0x10d6('0x128')]},!0x0);});}}[_0x10d6('0x5c')](){this[_0x10d6('0xe5')]=null,this[_0x10d6('0xdf')](),this['_changeView']&&this['_changeView'][_0x10d6('0x6')](),this[_0x10d6('0x71')]=null,this['_changeIdToChange'][_0x10d6('0xec')](),this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x34')]({'isUndoable':!0x1},_0x1de3ad=>{for(const _0x234e11 of this[_0x10d6('0xfb')][_0x10d6('0xcc')]['document'][_0x10d6('0xc8')]())_0x1de3ad['detachRoot'](_0x234e11);});}['_sortAndFilterDiffChanges'](_0x2760ec){const _0x210b2c=[],_0x42b231=new Map();for(const _0x334d1b of this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x5b')][_0x10d6('0xc8')]()){const _0x1138a0=this['editor']['editing']['view'][_0x10d6('0x6b')](_0x334d1b);if(!_0x1138a0)continue;const _0xe8fa6c=_0x1138a0['getClientRects']()[_0x10d6('0x104')](0x0);_0xe8fa6c&&(_0x210b2c[_0x10d6('0xe1')](_0x334d1b),_0x42b231[_0x10d6('0xa7')](_0x334d1b,_0xe8fa6c));}return _0x210b2c[_0x10d6('0x37')]((_0x550c71,_0x5b0a52)=>{const _0x440af0=_0x42b231[_0x10d6('0xf6')](_0x550c71),_0x123c22=_0x42b231[_0x10d6('0xf6')](_0x5b0a52);return _0x440af0['y']-_0x123c22['y']||_0x440af0['x']-_0x123c22['x'];}),(_0x2760ec=_0x2760ec[_0x10d6('0xfe')](_0x31158e=>_0x210b2c[_0x10d6('0x18')](_0x31158e['rootName'])))['sort']((_0x2addc5,_0xd751b7)=>_0x210b2c[_0x10d6('0x2a')](_0x2addc5[_0x10d6('0x58')])-_0x210b2c[_0x10d6('0x2a')](_0xd751b7[_0x10d6('0x58')])),_0x2760ec;}['_makeTape'](_0x157a37){const _0x2bcec5=Array['from'](_0x157a37[_0x10d6('0x110')])[_0x10d6('0xfe')](([_0x53f87a,_0x3fff26])=>_0x53f87a['startsWith'](_0x10d6('0x96'))&&!_0x3fff26[_0x10d6('0xc6')]),_0x12061c=Array[_0x10d6('0xb7')](this[_0x10d6('0xfb')]['model']['createRangeIn'](_0x157a37)[_0x10d6('0x94')]({'singleCharacters':!0x0}));if(0x0!=_0x2bcec5[_0x10d6('0x107')])for(const _0x114a8a of _0x12061c){const [_0x46b11f,_0x87f842]=_0x2bcec5[0x0],[,_0x552475,_0x4eec92]=_0x46b11f[_0x10d6('0xaa')](':');if(_0x87f842[_0x10d6('0xa8')][_0x10d6('0xdb')](_0x114a8a['nextPosition'])&&_0x2bcec5['shift'](),(_0x114a8a['previousPosition'][_0x10d6('0xdb')](_0x87f842[_0x10d6('0x14')])||_0x114a8a[_0x10d6('0x2')][_0x10d6('0x49')](_0x87f842[_0x10d6('0x14')]))&&(_0x10d6('0xa6')==_0x552475?_0x114a8a[_0x10d6('0x2c')]={'userId':_0x4eec92}:'deletion'==_0x552475&&(_0x114a8a[_0x10d6('0x7d')]={'userId':_0x4eec92})),0x0==_0x2bcec5[_0x10d6('0x107')])break;}return _0x12061c;}[_0x10d6('0x90')](_0x22461d){const _0x2782a0=new Map();for(let _0x422409=0x0;_0x422409<_0x22461d[_0x10d6('0x107')];_0x422409++)_0x10d6('0x43')===_0x22461d[_0x422409][_0x10d6('0x3c')]?(_0x22461d[_0x422409][_0x10d6('0x104')]['startIndex']=_0x422409,_0x22461d[_0x422409][_0x10d6('0x104')][_0x10d6('0x1f')]=_0x422409):(_0x10d6('0x114')===_0x22461d[_0x422409][_0x10d6('0x3c')]?_0x22461d[_0x422409]['item'][_0x10d6('0xa9')]=_0x422409:_0x10d6('0x16')===_0x22461d[_0x422409][_0x10d6('0x3c')]&&(_0x22461d[_0x422409][_0x10d6('0x104')][_0x10d6('0x1f')]=_0x422409),_0x2782a0[_0x10d6('0xa7')](_0x22461d[_0x422409]['id'],_0x422409));for(const _0x1fee8a of _0x2782a0['values']())_0x10d6('0x114')===_0x22461d[_0x1fee8a][_0x10d6('0x3c')]?_0x22461d[_0x1fee8a][_0x10d6('0x104')]['endIndex']=_0x2782a0[_0x10d6('0xf6')](_0x22461d[_0x1fee8a][_0x10d6('0x10d')]):_0x10d6('0x16')===_0x22461d[_0x1fee8a][_0x10d6('0x3c')]&&(_0x22461d[_0x1fee8a][_0x10d6('0x104')][_0x10d6('0xa9')]=_0x2782a0[_0x10d6('0xf6')](_0x22461d[_0x1fee8a]['pairId']));}[_0x10d6('0xfc')](_0x4f1ce2){for(let _0x1edb34=0x0;_0x1edb34<_0x4f1ce2[_0x10d6('0x107')];_0x1edb34++){if('elementStart'===_0x4f1ce2[_0x1edb34][_0x10d6('0x3c')])_0x4f1ce2[_0x1edb34][_0x10d6('0x104')][_0x10d6('0xa9')]=_0x1edb34;else{if(_0x10d6('0x16')===_0x4f1ce2[_0x1edb34][_0x10d6('0x3c')]){_0x4f1ce2[_0x1edb34][_0x10d6('0x104')][_0x10d6('0x1f')]=_0x1edb34;const _0x589039=_0x4f1ce2[_0x1edb34][_0x10d6('0x104')][_0x10d6('0xa9')];_0x4f1ce2[_0x589039][_0x10d6('0x10d')]=_0x4f1ce2[_0x1edb34]['id'],_0x4f1ce2[_0x1edb34][_0x10d6('0x10d')]=_0x4f1ce2[_0x589039]['id'];}else _0x4f1ce2[_0x1edb34]['item'][_0x10d6('0xa9')]=_0x1edb34,_0x4f1ce2[_0x1edb34][_0x10d6('0x104')][_0x10d6('0x1f')]=_0x1edb34,_0x4f1ce2[_0x1edb34][_0x10d6('0x10d')]=null;}_0x4f1ce2[_0x1edb34]['markersStart']||(_0x4f1ce2[_0x1edb34][_0x10d6('0xed')]=[],_0x4f1ce2[_0x1edb34]['markersEnd']=[]);}}[_0x10d6('0xc')](_0x239607,_0x4c2994){const _0x1cbfea=_0x239607[_0x10d6('0xfe')](_0x24361e=>!_0x24361e['isAdded']);for(let _0x5949eb=0x0;_0x5949eb<_0x4c2994[_0x10d6('0x107')];_0x5949eb++)_0x4c2994[_0x5949eb]['isAdded']&&(_0x1cbfea[_0x5949eb][_0x10d6('0x2c')]=_0x4c2994[_0x5949eb][_0x10d6('0x2c')]);}['_makeModelFromViewString'](_0x4519a5){const _0x43b145=JSON['parse'](_0x4519a5),_0x38aea5=this['editor']['editing']['view'][_0x10d6('0x5b')],_0x39d560=new _0x409c19(_0x38aea5,_0x43b145[_0x10d6('0x113')](_0x49c1df=>this[_0x10d6('0xe')](_0x49c1df)));return this['editor'][_0x10d6('0x27')][_0x10d6('0xf1')](_0x39d560);}[_0x10d6('0xe')](_0x1327a7){const _0x19e922=this[_0x10d6('0xfb')][_0x10d6('0xaf')][_0x10d6('0x127')][_0x10d6('0x5b')];if(_0x10d6('0x6f')==typeof _0x1327a7)return new _0x41cb49(_0x19e922,_0x1327a7);{const _0x4cff0a=_0x1327a7[_0x10d6('0x11f')]['map'](_0x2a2b29=>this[_0x10d6('0xe')](_0x2a2b29));return new(tt[_0x1327a7[(_0x10d6('0x3c'))]]||_0x2c9b78)(_0x19e922,_0x1327a7[_0x10d6('0x9d')],_0x1327a7[_0x10d6('0x95')],_0x4cff0a);}}[_0x10d6('0x6a')](_0x41de19,_0x30b7f2=null){const _0x4fd1bf=this[_0x10d6('0x9b')][_0x10d6('0xd8')](_0x41de19),_0x4b790c=_0x30b7f2?this[_0x10d6('0x9b')][_0x10d6('0xd8')](_0x30b7f2):null,_0x3ec11d=this[_0x10d6('0x32')](_0x4fd1bf,_0x4b790c),_0x4ccf42=_0x3ec11d[_0x3ec11d[_0x10d6('0x107')]-0x1],_0x2d6d63=new Map(),_0x22282f={'model':{},'attributes':{},'changes':[]},_0x361dc1=new Set(),_0x4a2215=new Map();for(let _0x23a6ab=_0x3ec11d['length']-0x1;_0x23a6ab>=0x0;_0x23a6ab--){const _0x534a67=_0x3ec11d[_0x23a6ab];for(const _0x245c09 of Object[_0x10d6('0x78')](_0x534a67[_0x10d6('0x128')]))if(_0x534a67[_0x10d6('0x128')][_0x245c09]['attachChange']){const _0x3b6409=_0x534a67[_0x10d6('0x128')][_0x245c09][_0x10d6('0xd7')];_0x3b6409[_0x10d6('0x7b')]?(_0x361dc1[_0x10d6('0x10e')](_0x245c09),_0x4a2215[_0x10d6('0x2e')](_0x245c09)&&_0x4a2215[_0x10d6('0xf6')](_0x245c09)[_0x10d6('0x56')]==_0x3b6409['userId']?_0x4a2215[_0x10d6('0x79')](_0x245c09):_0x4a2215[_0x10d6('0xa7')](_0x245c09,_0x3b6409)):_0x4a2215[_0x10d6('0x2e')](_0x245c09)?(_0x361dc1[_0x10d6('0x79')](_0x245c09),_0x4a2215[_0x10d6('0x79')](_0x245c09)):(_0x361dc1[_0x10d6('0x10e')](_0x245c09),_0x4a2215[_0x10d6('0xa7')](_0x245c09,_0x3b6409));}else _0x361dc1[_0x10d6('0x10e')](_0x245c09);}for(const _0x2bb652 of _0x361dc1){const _0x45b9be=_0x4a2215['has'](_0x2bb652)&&!_0x4a2215['get'](_0x2bb652)[_0x10d6('0x7b')];let _0x9e8132=_0x45b9be?_0x3ec11d['length']-0x1:0x0;const _0x53d218=_0x45b9be?-0x1:0x1;for(;_0x3ec11d[_0x9e8132];){const _0x3cd895=_0x3ec11d[_0x9e8132];if(_0x3cd895[_0x10d6('0x128')][_0x2bb652]){const _0x3adff4=_0x45b9be?_0x3cd895[_0x10d6('0x128')][_0x2bb652][_0x10d6('0x109')]:_0x3cd895[_0x10d6('0x128')][_0x2bb652][_0x10d6('0xff')];_0x22282f[_0x10d6('0x95')][_0x2bb652]=_0x3adff4?_0x17e379(_0x3adff4):{};break;}_0x9e8132+=_0x53d218;}}for(const _0x2b29e8 of _0x3ec11d){_0x2b29e8[_0x10d6('0xcc')]={};for(const _0xd92157 of _0x2b29e8[_0x10d6('0xe4')])_0x2d6d63['set'](_0xd92157['id'],_0xd92157);for(const _0x249513 of _0x361dc1){const _0x5e15c7=_0x2b29e8[_0x10d6('0x128')][_0x249513]?_0x2b29e8['diffData'][_0x249513]['insertions']:'[]',_0x3672aa=_0x2b29e8['diffData'][_0x249513]?_0x2b29e8[_0x10d6('0x128')][_0x249513][_0x10d6('0xee')]:'[]';_0x2b29e8['model'][_0x249513]={'insertions':this[_0x10d6('0xbf')](_0x5e15c7),'deletions':this[_0x10d6('0xbf')](_0x3672aa)};}}for(const _0xf4a092 of _0x361dc1){let _0x196ae8=null,_0x590ad0=0x0;const _0x5377bd=new Map(Array[_0x10d6('0xb7')](_0x4fd1bf[_0x10d6('0xcc')][_0xf4a092][_0x10d6('0x38')][_0x10d6('0x110')])[_0x10d6('0xfe')](([_0x193336])=>!_0x193336[_0x10d6('0x54')](_0x10d6('0x96'))));let _0x12b012=0x0;for(const _0x461aea of _0x3ec11d){const _0x7cc74=this[_0x10d6('0x4b')](_0x461aea[_0x10d6('0xcc')][_0xf4a092][_0x10d6('0x38')]);_0x461aea==_0x4fd1bf?(_0x196ae8=_0x7cc74,_0x590ad0=_0x196ae8[_0x10d6('0x107')],_0x196ae8[_0x10d6('0x24')](_0xcea3e2=>{_0xcea3e2['id']=_0x12b012++;}),this[_0x10d6('0xfc')](_0x196ae8)):this['_markInsertions'](_0x196ae8,_0x7cc74);const _0x27dc7e=_0x196ae8[_0x10d6('0xfe')](_0x3debe5=>!_0x3debe5[_0x10d6('0x2c')])[_0x10d6('0x113')](_0xd71185=>_0xd71185['id']);let _0x130603=0x0;const _0x5c1ed9=this['_makeTape'](_0x461aea[_0x10d6('0xcc')][_0xf4a092][_0x10d6('0xee')]);_0x5c1ed9[_0x10d6('0x24')](_0x403fb5=>{_0x403fb5['isRemoved']?_0x403fb5['id']=_0x590ad0++:_0x403fb5['id']=_0x27dc7e[_0x130603++];}),this[_0x10d6('0xfc')](_0x5c1ed9),this['_setDistance'](_0x196ae8,_0x10d6('0x2c')),this['_setDistance'](_0x5c1ed9,'isRemoved'),_0x461aea==_0x4fd1bf&&this['_markMarkers'](_0x196ae8,_0x5377bd),_0x196ae8=this[_0x10d6('0x64')](_0x196ae8,_0x5c1ed9),this[_0x10d6('0x90')](_0x196ae8),this['_setDistance'](_0x196ae8,_0x10d6('0x7d'));}_0x196ae8=_0x196ae8[_0x10d6('0xfe')](_0x45a3c9=>!(_0x45a3c9['isAdded']&&_0x45a3c9[_0x10d6('0x7d')]));const _0x4c36e6=new Map(_0x4ccf42[_0x10d6('0xcc')][_0xf4a092][_0x10d6('0xee')][_0x10d6('0x110')]),_0x145a74=new Set(_0x5377bd[_0x10d6('0x78')]());for(const _0x19b216 of _0x4c36e6[_0x10d6('0x78')]())_0x145a74[_0x10d6('0x79')](_0x19b216);this[_0x10d6('0xd5')](_0x196ae8,_0x145a74),this[_0x10d6('0x80')](_0x196ae8),_0x196ae8=this[_0x10d6('0x93')](_0x196ae8),_0x196ae8=this['_markMismatchedRemovedTags'](_0x196ae8),_0x196ae8=this['_removeUnsupportedChanges'](_0x196ae8);const {root:_0x20acab,changes:_0x3666e6}=this[_0x10d6('0xba')](_0x196ae8,_0x2d6d63,_0xf4a092);_0x22282f[_0x10d6('0xcc')][_0xf4a092]=_0x20acab;const _0x1b3258=_0x4a2215[_0x10d6('0xf6')](_0xf4a092);if(_0x1b3258){const _0x2e85aa=_0x2d6d63[_0x10d6('0xf6')](_0x1b3258[_0x10d6('0x56')]),_0x94b673=new _0x26840e({'author':_0x2e85aa,'type':_0x1b3258[_0x10d6('0x7b')]?_0x10d6('0x10e'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xf4a092});_0x3666e6['unshift'](_0x94b673),_0x22282f[_0x10d6('0x95')][_0xf4a092][_0x10d6('0x44')]=_0x94b673['id'];}_0x22282f['changes']=_0x22282f['changes'][_0x10d6('0x50')](_0x3666e6);}return _0x22282f;}[_0x10d6('0xce')](_0x4476ae,_0x27a863){for(let _0x9ebbc4=0x0;_0x9ebbc4<_0x4476ae[_0x10d6('0x107')];_0x9ebbc4++)for(const [_0xb48c23,_0x4786ed]of _0x27a863)_0x4786ed[_0x10d6('0x14')][_0x10d6('0xdb')](_0x4476ae[_0x9ebbc4][_0x10d6('0x2')])&&_0x4476ae[_0x9ebbc4][_0x10d6('0xed')][_0x10d6('0xe1')](_0xb48c23),_0x4786ed[_0x10d6('0xa8')][_0x10d6('0xdb')](_0x4476ae[_0x9ebbc4]['nextPosition'])&&_0x4476ae[_0x9ebbc4][_0x10d6('0xb9')][_0x10d6('0xe1')](_0xb48c23);}[_0x10d6('0x64')](_0x537c9f,_0x1cf56c){let _0x1bf837=[],_0x1cce74=0x0,_0x3f3d1c=0x0;for(;_0x1cce74<_0x537c9f[_0x10d6('0x107')]||_0x3f3d1c<_0x1cf56c['length'];){const _0x4740e4=_0x537c9f[_0x1cce74]||{},_0x222260=_0x1cf56c[_0x3f3d1c]||{};if(_0x4740e4['id']==_0x222260['id'])_0x1cce74++,_0x3f3d1c++,_0x1bf837[_0x10d6('0xe1')](_0x4740e4);else{if(_0x222260[_0x10d6('0x7d')]&&_0x4740e4[_0x10d6('0x2c')]){const {commonTape:_0x3a7487,iEnd:_0x419a15,jEnd:_0x4edf9c}=this['_threeWayMerge'](_0x537c9f,_0x1cce74,_0x1cf56c,_0x3f3d1c);_0x1bf837=_0x1bf837[_0x10d6('0x50')](_0x3a7487),_0x1cce74=_0x419a15,_0x3f3d1c=_0x4edf9c;}else _0x222260['isRemoved']?(_0x3f3d1c++,_0x1bf837[_0x10d6('0xe1')](_0x222260)):(_0x1cce74++,_0x1bf837[_0x10d6('0xe1')](_0x4740e4));}}return _0x1bf837;}['_markSuggestions'](_0x26c531,_0xf59358){const _0x41e505=[];for(let _0x3f89e6=0x0;_0x3f89e6<_0x26c531[_0x10d6('0x107')];_0x3f89e6++){for(let _0x27b925=0x0;_0x27b925<_0x26c531[_0x3f89e6]['markersStart'][_0x10d6('0x107')];_0x27b925++){const _0x404905=_0x26c531[_0x3f89e6]['markersStart'][_0x27b925];if(!_0xf59358[_0x10d6('0x2e')](_0x404905))continue;const {group:_0x216b49,type:_0x1cadf9,authorId:_0x5f568e}=_0x5b896f(_0x404905);_0x10d6('0xc4')!=_0x216b49||_0x10d6('0xa6')!=_0x1cadf9&&_0x10d6('0x41')!=_0x1cadf9||(_0x41e505[_0x10d6('0x40')]({'type':_0x1cadf9,'name':_0x404905,'userId':_0x5f568e}),_0x26c531[_0x3f89e6][_0x10d6('0xed')][_0x10d6('0xad')](_0x27b925,0x1),_0x27b925--);}_0x412689(_0x26c531[_0x3f89e6]);for(let _0x1e43fd=0x0;_0x1e43fd<_0x26c531[_0x3f89e6][_0x10d6('0xb9')][_0x10d6('0x107')];_0x1e43fd++){const _0x4ee34e=_0x26c531[_0x3f89e6][_0x10d6('0xb9')][_0x1e43fd];if(!_0xf59358[_0x10d6('0x2e')](_0x4ee34e))continue;const {group:_0x5a8b19,type:_0x65573e}=_0x5b896f(_0x4ee34e);if('revision-suggestion'!=_0x5a8b19||_0x10d6('0xa6')!=_0x65573e&&_0x10d6('0x41')!=_0x65573e)continue;_0x26c531[_0x3f89e6][_0x10d6('0xb9')][_0x10d6('0xad')](_0x1e43fd,0x1),_0x1e43fd--;const _0xcbc73a=_0x41e505[_0x10d6('0x61')](_0x5e2b3c=>_0x5e2b3c[_0x10d6('0x9d')]==_0x4ee34e);_0xcbc73a>-0x1&&_0x41e505['splice'](_0xcbc73a,0x1);}}function _0x5b896f(_0x171ffc){const _0x1c84d2=_0x171ffc['split'](':');return{'group':_0x1c84d2[0x0],'type':_0x1c84d2[0x1],'subType':_0x1c84d2[_0x10d6('0x107')]>=0x5?_0x1c84d2[0x2]:null,'id':_0x1c84d2[_0x10d6('0x107')]<0x5?_0x1c84d2[0x2]:_0x1c84d2[0x3],'authorId':_0x1c84d2[_0x10d6('0x107')]<0x5?_0x1c84d2[0x3]:_0x1c84d2[0x4],'markerCount':0x6==_0x1c84d2[_0x10d6('0x107')]?_0x1c84d2[0x5]:null};}function _0x412689(_0x5b6f4e){for(let _0x507300=0x0;_0x507300<_0x41e505[_0x10d6('0x107')];_0x507300++){if(_0x5b6f4e[_0x10d6('0x2c')]&&_0x10d6('0xa6')==_0x41e505[_0x507300][_0x10d6('0x3c')])return _0x5b6f4e[_0x10d6('0x15')]=_0x41e505[_0x507300],void delete _0x5b6f4e[_0x10d6('0x2c')];if(!_0x5b6f4e[_0x10d6('0x2c')]&&!_0x5b6f4e['isRemoved']&&_0x10d6('0x41')==_0x41e505[_0x507300][_0x10d6('0x3c')])return void(_0x5b6f4e[_0x10d6('0x63')]=_0x41e505[_0x507300]);}}}[_0x10d6('0x21')](_0x2a772b,_0x5f3652){let _0x561f4c=0x0,_0x14c9d4=!0x1;const _0x1514aa=new Map();for(const _0x3fc07c of _0x2a772b)_0x3fc07c[_0x5f3652]?_0x14c9d4&&(_0x561f4c++,_0x14c9d4=!0x1):(_0x561f4c++,_0x14c9d4=!0x0),_0x1514aa['set'](_0x3fc07c['id'],_0x561f4c);for(let _0x32fbef=0x0;_0x32fbef<_0x2a772b[_0x10d6('0x107')];_0x32fbef++){if(_0x10d6('0x7d')==_0x5f3652&&_0x2a772b[_0x32fbef][_0x10d6('0x2c')]||_0x10d6('0x2c')==_0x5f3652&&_0x2a772b[_0x32fbef][_0x10d6('0x7d')])continue;if(_0x10d6('0x43')==_0x2a772b[_0x32fbef][_0x10d6('0x3c')]){_0x2a772b[_0x32fbef][_0x10d6('0x26')]=0x0;continue;}const _0x5ac5cb=_0x1514aa[_0x10d6('0xf6')](_0x2a772b[_0x32fbef][_0x10d6('0x10d')]),_0x5a2484=_0x1514aa[_0x10d6('0xf6')](_0x2a772b[_0x32fbef]['id']);_0x2a772b[_0x32fbef][_0x10d6('0x26')]=_0x5ac5cb-_0x5a2484;}}['_getRevisionsRange'](_0x5d5023,_0x18bd39,_0x5a92f5=!0x1){const _0x397e9b=[];let _0x5a9995=this[_0x10d6('0x9b')]['getIndex'](_0x5d5023),_0x154161=this[_0x10d6('0x9b')][_0x10d6('0x103')](_0x18bd39);for(-0x1==_0x154161&&(_0x154161=this[_0x10d6('0x9b')][_0x10d6('0xb5')]['length'],_0x5a92f5=!0x1);_0x5a9995<_0x154161;)_0x397e9b[_0x10d6('0xe1')](this['repository']['getRevision'](_0x5a9995)),_0x5a9995++;return _0x5a92f5&&_0x397e9b[_0x10d6('0xe1')](this[_0x10d6('0x9b')][_0x10d6('0xd8')](_0x5a9995)),_0x397e9b;}['_threeWayMerge'](_0x3ee382,_0x125a9b,_0x54d063,_0x38e5fe){const _0xa2c8a2=this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x5e')];let _0x382a01=_0x125a9b;for(;_0x3ee382[_0x382a01]&&_0x3ee382[_0x382a01][_0x10d6('0x2c')];)_0x382a01++;let _0x40c31c=_0x38e5fe;for(;_0x54d063[_0x40c31c]&&_0x54d063[_0x40c31c][_0x10d6('0x7d')];)_0x40c31c++;_0x31c2ea(_0x3ee382,_0x125a9b,_0x382a01),_0x31c2ea(_0x54d063,_0x38e5fe,_0x40c31c);const _0x2639bc=_0x54d063[_0x10d6('0xc3')](_0x38e5fe,_0x40c31c)['concat'](_0x3ee382[_0x10d6('0xc3')](_0x125a9b,_0x382a01));return _0x2639bc[_0x10d6('0x37')]((_0x160ce9,_0x2f671d)=>_0x160ce9[_0x10d6('0x6e')]!=_0x2f671d[_0x10d6('0x6e')]?_0x160ce9[_0x10d6('0x6e')]-_0x2f671d[_0x10d6('0x6e')]:_0x160ce9[_0x10d6('0xdc')]!=_0x2f671d['level']?_0x160ce9['level']-_0x2f671d[_0x10d6('0xdc')]:_0x160ce9[_0x10d6('0x26')]!=_0x2f671d[_0x10d6('0x26')]?_0x2f671d['distance']-_0x160ce9['distance']:!!_0x160ce9[_0x10d6('0x2c')]!=!!_0x2f671d['isAdded']?-0x1==_0x160ce9[_0x10d6('0x6e')]||0x0==_0x160ce9[_0x10d6('0x6e')]?_0x160ce9['isAdded']?-0x1:0x1:_0x160ce9[_0x10d6('0x2c')]?0x1:-0x1:_0x160ce9['index']-_0x2f671d[_0x10d6('0xb')]),{'commonTape':_0x2639bc,'iEnd':_0x382a01,'jEnd':_0x40c31c};function _0x31c2ea(_0x393ca5,_0x1b0e14,_0x1d9fe7){let _0x3e39dc=-0x1,_0x377a34=Number[_0x10d6('0x23')],_0x42c043=!0x0;for(let _0x119983=_0x1b0e14;_0x119983<_0x1d9fe7;_0x119983++)if(_0xa2c8a2[_0x10d6('0xc9')](_0x393ca5[_0x119983][_0x10d6('0x104')])||(_0x42c043=!0x1),_0x393ca5[_0x119983][_0x10d6('0x104')][_0x10d6('0xa9')]<_0x1b0e14&&(_0x3e39dc=_0x119983),_0x393ca5[_0x119983][_0x10d6('0x104')][_0x10d6('0x1f')]>=_0x1d9fe7){_0x377a34=_0x119983;break;}_0x42c043&&(_0x3e39dc=_0x1d9fe7-0x1);for(let _0x1db6a1=_0x1b0e14;_0x1db6a1<_0x1d9fe7;_0x1db6a1++)_0x393ca5[_0x1db6a1][_0x10d6('0x6e')]=_0x1db6a1<=_0x3e39dc?-0x1:_0x1db6a1<_0x377a34?0x0:0x1,_0x393ca5[_0x1db6a1][_0x10d6('0xb')]=_0x1db6a1;let _0x5f4241=0x0;for(let _0x1157ba=_0x1b0e14;_0x1157ba<=_0x3e39dc;_0x1157ba++)0x0==_0x393ca5[_0x1157ba][_0x10d6('0x26')]?_0x393ca5[_0x1157ba][_0x10d6('0xdc')]=_0x5f4241:(_0x5f4241++,_0x393ca5[_0x1157ba][_0x10d6('0xdc')]=_0x5f4241,_0x5f4241++);for(let _0x57ce62=_0x1b0e14;_0x57ce62<_0x1d9fe7;_0x57ce62++)0x0==_0x393ca5[_0x57ce62][_0x10d6('0x6e')]&&(_0x393ca5[_0x57ce62][_0x10d6('0xdc')]=_0x5f4241);_0x5f4241=0x0;for(let _0x5e72db=_0x1d9fe7-0x1;_0x5e72db>=_0x377a34;_0x5e72db--)0x0==_0x393ca5[_0x5e72db][_0x10d6('0x26')]?_0x393ca5[_0x5e72db][_0x10d6('0xdc')]=_0x5f4241:(_0x5f4241--,_0x393ca5[_0x5e72db][_0x10d6('0xdc')]=_0x5f4241,_0x5f4241--);}}[_0x10d6('0x80')](_0x216ceb){const _0x588ba3=new Map(),_0x52c39b=this[_0x10d6('0xfb')][_0x10d6('0xcc')]['schema'];for(let _0x1916e6=0x1;_0x1916e6<_0x216ceb[_0x10d6('0x107')];_0x1916e6++){let _0x4287ff,_0x4b362a,_0xe1ab89;const _0x21611d=_0x216ceb[_0x1916e6],_0x301153=_0x216ceb[_0x1916e6-0x1];if('text'==_0x21611d[_0x10d6('0x3c')])continue;if(_0x21611d[_0x10d6('0x3c')]!=_0x301153[_0x10d6('0x3c')])continue;if(!_0x52c39b[_0x10d6('0x53')](_0x301153[_0x10d6('0x104')])||_0x52c39b[_0x10d6('0xea')](_0x301153['item']))continue;if(!_0x52c39b['isBlock'](_0x21611d[_0x10d6('0x104')])||_0x52c39b[_0x10d6('0xea')](_0x21611d[_0x10d6('0x104')]))continue;if((_0x216ceb[_0x1916e6][_0x10d6('0x2c')]||_0x216ceb[_0x1916e6][_0x10d6('0x15')])&&_0x216ceb[_0x1916e6-0x1][_0x10d6('0x7d')])_0x4287ff=_0x216ceb[_0x1916e6],_0x4b362a=_0x216ceb[_0x1916e6-0x1],_0xe1ab89=_0x1916e6-0x1;else{if(!_0x216ceb[_0x1916e6][_0x10d6('0x7d')]||!_0x216ceb[_0x1916e6-0x1][_0x10d6('0x2c')]&&!_0x216ceb[_0x1916e6-0x1][_0x10d6('0x15')])continue;_0x4287ff=_0x216ceb[_0x1916e6-0x1],_0x4b362a=_0x216ceb[_0x1916e6],_0xe1ab89=_0x1916e6;}const _0x56d1e7=_0x4287ff[_0x10d6('0xdc')]==_0x4b362a['level'],_0x410f28=Math[_0x10d6('0x5d')](_0x4287ff[_0x10d6('0xdc')])<Math[_0x10d6('0x5d')](_0x4b362a[_0x10d6('0xdc')])&&0x0==_0x4b362a[_0x10d6('0x26')];(_0x56d1e7||_0x410f28)&&(_0x588ba3['set'](_0x4b362a['id'],_0x4287ff['id']),_0x216ceb[_0x10d6('0xad')](_0xe1ab89,0x1),_0x1916e6--,_0x4287ff[_0x10d6('0x2c')]=!0x1);}for(let _0x4be03f=0x0;_0x4be03f<_0x216ceb[_0x10d6('0x107')];_0x4be03f++)_0x588ba3['has'](_0x216ceb[_0x4be03f]['pairId'])&&(_0x216ceb[_0x4be03f][_0x10d6('0x10d')]=_0x588ba3[_0x10d6('0xf6')](_0x216ceb[_0x4be03f][_0x10d6('0x10d')]));}[_0x10d6('0x93')](_0x17da64){const _0x411789=new Set(_0x17da64[_0x10d6('0x113')](_0xe786ed=>_0xe786ed['id']));for(let _0x3f6bc8=0x0;_0x3f6bc8<_0x17da64[_0x10d6('0x107')];_0x3f6bc8++)_0x411789[_0x10d6('0x2e')](_0x17da64[_0x3f6bc8][_0x10d6('0x10d')])||0x0==_0x17da64[_0x3f6bc8]['distance']||(_0x17da64[_0x3f6bc8]['isIncorrect']=!0x0);return _0x17da64[_0x10d6('0xfe')](_0x294416=>!_0x294416[_0x10d6('0x4f')]);}[_0x10d6('0xd9')](_0x2e005c){const _0x156d50=new Set();for(let _0x21043a=0x0;_0x21043a<_0x2e005c[_0x10d6('0x107')];_0x21043a++){if(_0x156d50[_0x10d6('0x2e')](_0x2e005c[_0x21043a]['id'])&&_0x2e005c[_0x21043a][_0x10d6('0x7d')]&&(_0x2e005c[_0x21043a][_0x10d6('0x4f')]=!0x0),_0x2e005c[_0x21043a][_0x10d6('0x4f')])continue;if(0x0==_0x2e005c[_0x21043a][_0x10d6('0x26')])continue;if(_0x10d6('0x114')!=_0x2e005c[_0x21043a][_0x10d6('0x3c')])continue;if(null==_0x2e005c[_0x21043a][_0x10d6('0x10d')])continue;let _0x54d60d=_0x21043a+0x1,_0x51e9f4=0x0;for(;_0x2e005c[_0x54d60d]['id']!=_0x2e005c[_0x21043a][_0x10d6('0x10d')];)'elementStart'==_0x2e005c[_0x54d60d][_0x10d6('0x3c')]?_0x51e9f4++:_0x10d6('0x16')==_0x2e005c[_0x54d60d][_0x10d6('0x3c')]&&_0x51e9f4--,_0x54d60d++;if(0x0!=_0x51e9f4){if(_0x2e005c[_0x21043a][_0x10d6('0x7d')])_0x2e005c[_0x21043a]['isIncorrect']=!0x0;else for(;_0x54d60d!=_0x21043a;)_0x2e005c[_0x54d60d][_0x10d6('0x7d')]&&0x0!=_0x2e005c[_0x54d60d][_0x10d6('0x26')]&&(_0x2e005c[_0x54d60d]['isIncorrect']=!0x0,_0x156d50[_0x10d6('0x10e')](_0x2e005c[_0x54d60d][_0x10d6('0x10d')])),_0x54d60d--;}}return _0x2e005c[_0x10d6('0xfe')](_0x1a141c=>!_0x1a141c[_0x10d6('0x4f')]);}['_removeUnsupportedChanges'](_0x201c22){const _0x3bdc09=this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x5e')];for(let _0x53e792=0x0;_0x53e792<_0x201c22[_0x10d6('0x107')];_0x53e792++){if(!(_0x201c22[_0x53e792][_0x10d6('0x2c')]||_0x201c22[_0x53e792][_0x10d6('0x15')]||_0x201c22[_0x53e792][_0x10d6('0x7d')]||_0x201c22[_0x53e792][_0x10d6('0x63')]))continue;if(0x0==_0x201c22[_0x53e792][_0x10d6('0x26')])continue;const _0x2e7e2d=_0x201c22[_0x53e792]['item'];_0x3bdc09[_0x10d6('0x53')](_0x2e7e2d)||_0x3bdc09['isLimit'](_0x2e7e2d)||(_0x201c22[_0x53e792][_0x10d6('0x2c')]&&delete _0x201c22[_0x53e792][_0x10d6('0x2c')],_0x201c22[_0x53e792]['isAddSuggestion']&&delete _0x201c22[_0x53e792][_0x10d6('0x15')],_0x201c22[_0x53e792]['isRemoveSuggestion']&&delete _0x201c22[_0x53e792][_0x10d6('0x63')],_0x201c22[_0x53e792][_0x10d6('0x7d')]&&(_0x201c22[_0x53e792][_0x10d6('0x4f')]=!0x0));}return _0x201c22['filter'](_0x2fcac0=>!_0x2fcac0[_0x10d6('0x4f')]);}['_makeModelFromTape'](_0x9e52e6,_0xcaa58,_0x12486a){const _0x36c9ae=new _0x469446(),_0x56bf2c=[],_0xea6510=new Map(),_0x4d920f=this[_0x10d6('0xfb')]['model'],_0x49ac06=_0x4d920f[_0x10d6('0x5e')],_0x54f574=[_0x36c9ae],_0x1ed86e={},_0x11cb77={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2304fd=null;const _0x3a60af=[0x0];for(let _0x56dd46=0x0;_0x56dd46<_0x9e52e6[_0x10d6('0x107')];_0x56dd46++){let _0x26a859,_0x4c519e;if(_0x10d6('0x114')===_0x9e52e6[_0x56dd46][_0x10d6('0x3c')]){_0x26a859=_0x4d920f['createPositionFromPath'](_0x36c9ae,_0x3a60af);const _0xebc06e=new _0x99abb8(_0x9e52e6[_0x56dd46][_0x10d6('0x104')][_0x10d6('0x9d')],_0x9e52e6[_0x56dd46]['item']['getAttributes']());_0x54f574[0x0][_0x10d6('0x48')](_0xebc06e),_0x3a60af[_0x10d6('0xe1')](0x0),_0x54f574[_0x10d6('0x40')](_0xebc06e),_0x4c519e=_0x4d920f['createPositionFromPath'](_0x36c9ae,_0x3a60af),_0x2304fd=null;}else{if(_0x10d6('0x16')===_0x9e52e6[_0x56dd46]['type'])_0x54f574[_0x10d6('0xf')](),_0x26a859=_0x4d920f[_0x10d6('0x9a')](_0x36c9ae,_0x3a60af),_0x3a60af[_0x10d6('0x122')](),_0x3a60af[_0x3a60af[_0x10d6('0x107')]-0x1]++,_0x4c519e=_0x4d920f[_0x10d6('0x9a')](_0x36c9ae,_0x3a60af),_0x2304fd=null;else{if(_0x26a859=_0x4d920f[_0x10d6('0x9a')](_0x36c9ae,_0x3a60af),_0x2304fd&&_0xc691a0(_0x2304fd,_0x9e52e6[_0x56dd46]['item']))_0x2304fd['_data']+=_0x9e52e6[_0x56dd46][_0x10d6('0x104')][_0x10d6('0x27')];else{const _0x4198d0=new _0x37723c(_0x9e52e6[_0x56dd46][_0x10d6('0x104')][_0x10d6('0x27')],_0x9e52e6[_0x56dd46][_0x10d6('0x104')][_0x10d6('0x1e')]());_0x54f574[0x0][_0x10d6('0x48')](_0x4198d0),_0x2304fd=_0x4198d0;}_0x3a60af[_0x3a60af['length']-0x1]+=_0x9e52e6[_0x56dd46][_0x10d6('0x104')][_0x10d6('0x1')],_0x4c519e=_0x4d920f[_0x10d6('0x9a')](_0x36c9ae,_0x3a60af);}}for(const _0x20c02a of _0x9e52e6[_0x56dd46][_0x10d6('0xed')])_0xea6510['set'](_0x20c02a,{'start':_0x26a859,'end':null});_0x4ca068(_0x10d6('0x63'),_0x56dd46,_0x26a859,_0x4c519e),_0x4ca068(_0x10d6('0x15'),_0x56dd46,_0x26a859,_0x4c519e),_0x4ca068('isRemoved',_0x56dd46,_0x26a859,_0x4c519e),_0x4ca068(_0x10d6('0x2c'),_0x56dd46,_0x26a859,_0x4c519e);for(const _0x3a8a17 of _0x9e52e6[_0x56dd46][_0x10d6('0xb9')]){_0xea6510[_0x10d6('0xf6')](_0x3a8a17)['end']=_0x4c519e;}}for(const [_0x4e77fd,_0x52cfa7]of _0xea6510){const _0x546013=this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x88')](_0x52cfa7[_0x10d6('0x14')],_0x52cfa7[_0x10d6('0xa8')]);_0x36c9ae[_0x10d6('0x110')][_0x10d6('0xa7')](_0x4e77fd,_0x546013);}return _0x56bf2c[_0x10d6('0x37')]((_0x4fdeeb,_0x476d0d)=>{const _0x2cb942=_0x36c9ae[_0x10d6('0x110')][_0x10d6('0xf6')](_0x10d6('0x96')+_0x4fdeeb['id']),_0x5291fc=_0x36c9ae['markers']['get']('revision:'+_0x476d0d['id']);return _0x2cb942[_0x10d6('0x14')][_0x10d6('0x2d')](_0x5291fc['start'])?-0x1:_0x2cb942[_0x10d6('0x14')][_0x10d6('0x49')](_0x5291fc[_0x10d6('0x14')])?0x1:_0x2cb942[_0x10d6('0xa8')][_0x10d6('0x2d')](_0x5291fc['end'])?-0x1:_0x2cb942['end'][_0x10d6('0x49')](_0x5291fc[_0x10d6('0xa8')])?0x1:_0x10d6('0x10e')===_0x4fdeeb['type']?-0x1:0x1;}),{'root':_0x36c9ae,'changes':_0x56bf2c};function _0x4ca068(_0x3017ca,_0x5c0ece,_0x3f2f44,_0x1c7b37){const _0x384e4d=!!_0x9e52e6[_0x5c0ece][_0x3017ca],_0x215a6c=_0x384e4d?_0x9e52e6[_0x5c0ece][_0x3017ca][_0x10d6('0x56')]:null,_0x53597c=_0x5c0ece===_0x9e52e6['length']-0x1,_0x122738=_0x11cb77[_0x3017ca][0x0],_0x2f6a2b=_0x49ac06[_0x10d6('0xef')](_0x9e52e6[_0x5c0ece][_0x10d6('0x104')]);!_0x1ed86e[_0x3017ca]&&_0x384e4d?_0x1ed86e[_0x3017ca]={'start':_0x3f2f44,'tapeItem':_0x9e52e6[_0x5c0ece],'userId':_0x215a6c,'type':_0x3017ca}:_0x1ed86e[_0x3017ca]&&!_0x384e4d?(_0x1ed86e[_0x3017ca][_0x10d6('0xa8')]=_0x3f2f44,_0x22346c(_0x1ed86e[_0x3017ca]),_0x1ed86e[_0x3017ca]=null):_0x1ed86e[_0x3017ca]&&_0x384e4d&&_0x1ed86e[_0x3017ca]['userId']!==_0x215a6c&&(_0x1ed86e[_0x3017ca][_0x10d6('0xa8')]=_0x3f2f44,_0x122738&&_0x122738[_0x10d6('0x56')]===_0x1ed86e[_0x3017ca][_0x10d6('0x56')]||_0x22346c(_0x1ed86e[_0x3017ca]),_0x1ed86e[_0x3017ca]={'start':_0x3f2f44,'tapeItem':_0x9e52e6[_0x5c0ece],'userId':_0x215a6c,'type':_0x3017ca}),_0x1ed86e[_0x3017ca]&&_0x2f6a2b&&(_0x10d6('0x114')!==_0x9e52e6[_0x5c0ece][_0x10d6('0x3c')]||_0x122738&&_0x122738[_0x10d6('0x56')]===_0x215a6c||_0x11cb77[_0x3017ca]['unshift']({'userId':_0x215a6c,'object':_0x9e52e6[_0x5c0ece][_0x10d6('0x104')],'change':_0x1ed86e[_0x3017ca]}),_0x10d6('0x16')===_0x9e52e6[_0x5c0ece][_0x10d6('0x3c')]&&_0x122738&&_0x122738[_0x10d6('0x10')]===_0x9e52e6[_0x5c0ece][_0x10d6('0x104')]&&(_0x11cb77[_0x3017ca]['shift'](),_0x1ed86e[_0x3017ca]=_0x122738[_0x10d6('0x121')])),_0x1ed86e[_0x3017ca]&&_0x53597c&&(_0x1ed86e[_0x3017ca][_0x10d6('0xa8')]=_0x1c7b37,_0x22346c(_0x1ed86e[_0x3017ca]),_0x1ed86e[_0x3017ca]=null);}function _0x22346c({start:_0x3dfccc,end:_0x3e8164,tapeItem:_0xec8a0,userId:_0x3ceee0,type:_0x58aa80}){const _0x22fb51=_0xec8a0[_0x10d6('0x104')],_0x5e201c=_0x4d920f['schema'][_0x10d6('0x53')](_0x22fb51)&&!_0x4d920f[_0x10d6('0x5e')]['isLimit'](_0x22fb51),_0x45528b=_0x3dfccc[_0x10d6('0x62')]==_0x3e8164['parent']&&_0x3e8164['isAtStart'];if(_0x5e201c&&_0x45528b)return;const _0x9622e0=_0x4d920f[_0x10d6('0x88')](_0x3dfccc,_0x3e8164),_0x5ac6be=_0xcaa58[_0x10d6('0xf6')](_0x3ceee0),_0x491f87=new _0x26840e({'author':_0x5ac6be,'type':_0x10d6('0x2c')==_0x58aa80||_0x10d6('0x15')==_0x58aa80?_0x10d6('0x10e'):'remove','data':{'isSuggestion':'isAddSuggestion'==_0x58aa80||_0x10d6('0x63')==_0x58aa80},'createdAt':new Date(),'rootName':_0x12486a});_0x56bf2c[_0x10d6('0xe1')](_0x491f87),_0x36c9ae[_0x10d6('0x110')][_0x10d6('0xa7')](_0x10d6('0x96')+_0x491f87['id'],_0x9622e0);}function _0xc691a0(_0x841c06,_0x511c1b){const _0x5c45ed=_0x841c06['getAttributes'](),_0x525234=_0x511c1b['getAttributes']();for(const _0x1f4eb6 of _0x5c45ed){if(_0x1f4eb6[0x1]!==_0x511c1b[_0x10d6('0xd0')](_0x1f4eb6[0x0]))return!0x1;_0x525234[_0x10d6('0x11d')]();}return _0x525234[_0x10d6('0x11d')]()[_0x10d6('0xa4')];}}[_0x10d6('0x65')](){this[_0x10d6('0xfb')][_0x10d6('0x5a')][_0x10d6('0x8a')]('upcast')[_0x10d6('0x8c')]({'view':_0x10d6('0xd3')}),this['editor'][_0x10d6('0x5a')][_0x10d6('0x8a')]('editingDowncast')['markerToHighlight']({'model':_0x10d6('0xd3'),'view':_0x19b27e=>{const _0x2a22ac=_0x19b27e[_0x10d6('0xb1')][_0x10d6('0xaa')](':')[0x1],_0x4efbf8=this[_0x10d6('0x17')](_0x2a22ac);if(!_0x4efbf8)return null;const _0x249342='add'==_0x4efbf8['type']?_0x10d6('0xa6'):'deletion',_0xdb229b=['ck-suggestion-marker',_0x10d6('0xab')+_0x249342];return _0x4efbf8[_0x10d6('0x27')][_0x10d6('0x8d')]&&_0xdb229b[_0x10d6('0xe1')](_0x10d6('0xab')+_0x249342+'-new'),this[_0x10d6('0xe5')]==_0x4efbf8&&_0xdb229b['push'](_0x10d6('0x74')),{'classes':_0xdb229b,'attributes':{'data-change-id':_0x2a22ac}};}}),this['editor']['conversion'][_0x10d6('0x8a')]('upcast')['add'](_0x3087a2=>{_0x3087a2['on']('element:pre',(_0x2c0824,_0x6e7458,_0x553392)=>{const _0x5125ed=_0x6e7458[_0x10d6('0xbc')][_0x10d6('0xe6')](0x0);if(!_0x5125ed||!_0x5125ed['is'](_0x10d6('0xcb'),'code'))return;if(!_0x553392[_0x10d6('0x22')][_0x10d6('0x35')](_0x5125ed,{'attributes':[_0x10d6('0x129'),_0x10d6('0x10f')]}))return;const _0xe0b2ac=_0x6e7458['modelRange'][_0x10d6('0x14')][_0x10d6('0x62')];_0x553392[_0x10d6('0xae')][_0x10d6('0x92')](_0x10d6('0x129'),_0x5125ed[_0x10d6('0xd0')](_0x10d6('0x129')),_0xe0b2ac),_0x553392[_0x10d6('0xae')][_0x10d6('0x92')](_0x10d6('0x10f'),_0x5125ed[_0x10d6('0xd0')](_0x10d6('0x10f')),_0xe0b2ac);},{'priority':'low'});}),this[_0x10d6('0xfb')][_0x10d6('0x5a')][_0x10d6('0x8a')](_0x10d6('0x7f'))[_0x10d6('0x10e')](_0x3e9359=>{_0x3e9359['on']('element',(_0x164ef7,_0x235ede,_0x478ea8)=>{if(!_0x478ea8[_0x10d6('0x22')][_0x10d6('0x35')](_0x235ede[_0x10d6('0xbc')],{'attributes':['vid_start',_0x10d6('0x10f')]}))return;if(_0x235ede['modelRange']['isCollapsed'])return;const _0xdee988=_0x235ede[_0x10d6('0x55')]['start'][_0x10d6('0x62')];_0xdee988['hasAttribute'](_0x10d6('0x129'))||_0xdee988[_0x10d6('0x6c')]('vid')||(_0x478ea8[_0x10d6('0xae')]['setAttribute'](_0x10d6('0x129'),_0x235ede[_0x10d6('0xbc')]['getAttribute'](_0x10d6('0x129')),_0xdee988),_0x478ea8[_0x10d6('0xae')]['setAttribute'](_0x10d6('0x10f'),_0x235ede[_0x10d6('0xbc')][_0x10d6('0xd0')](_0x10d6('0x10f')),_0xdee988));},{'priority':_0x10d6('0xd4')});}),this[_0x10d6('0xfb')][_0x10d6('0x5a')]['for'](_0x10d6('0x7f'))['elementToAttribute']({'view':{'name':_0x10d6('0x31'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2d4d0f=>_0x2d4d0f[_0x10d6('0xd0')](_0x10d6('0x11'))}}),this['editor'][_0x10d6('0xcc')][_0x10d6('0x5e')]['on'](_0x10d6('0x70'),(_0x572edc,[,_0x5a628a])=>{[_0x10d6('0x129'),_0x10d6('0x10f'),_0x10d6('0x11')]['includes'](_0x5a628a)&&(_0x572edc[_0x10d6('0xe9')]=!0x0,_0x572edc['stop']());},{'priority':'highest'}),this['editor'][_0x10d6('0x5a')][_0x10d6('0x8a')](_0x10d6('0x112'))['add'](_0x1b5758=>{_0x1b5758['on'](_0x10d6('0x4d'),(_0x4613e3,_0x477328,_0x4c9678)=>{if('\x20'!=_0x477328[_0x10d6('0x104')][_0x10d6('0x27')]||_0x477328[_0x10d6('0x104')][_0x10d6('0x100')][_0x10d6('0xbd')]>0x1)return;if(!_0x4c9678['consumable'][_0x10d6('0x35')](_0x477328[_0x10d6('0x104')],_0x4613e3[_0x10d6('0x9d')]))return;const _0x417f7a=_0x4c9678[_0x10d6('0xae')],_0x2b959b=_0x4c9678['mapper'][_0x10d6('0x11e')](_0x477328[_0x10d6('0x68')]);_0x417f7a[_0x10d6('0x4e')](_0x2b959b,_0x417f7a[_0x10d6('0x11c')](_0x10d6('0x31')));});}),this[_0x10d6('0xfb')][_0x10d6('0x5a')][_0x10d6('0x8a')](_0x10d6('0x112'))[_0x10d6('0x77')]({'model':_0x10d6('0xd3')}),this[_0x10d6('0xfb')]['editing'][_0x10d6('0x106')]['on'](_0x10d6('0xd'),function(_0x5cbc6f){const _0x43eaa4=_0x5cbc6f[_0x10d6('0x8f')][_0x10d6('0xf6')](_0x10d6('0xfd'));return(_0x56d1e1,_0x2623c8,_0x92a4b1)=>{const _0xe7561e=_0x2623c8[_0x10d6('0xb1')][_0x10d6('0xaa')](':')[0x1],_0x1521fd=_0x43eaa4[_0x10d6('0x17')](_0xe7561e);if(!_0x1521fd)return null;const _0x5a3de4=_0x10d6('0x10e')==_0x1521fd[_0x10d6('0x3c')]?_0x10d6('0xaa'):_0x10d6('0xa1');if(!_0x92a4b1['consumable']['test'](_0x2623c8[_0x10d6('0x1a')],_0x56d1e1['name']))return;const _0x282022=_0x2623c8[_0x10d6('0x1a')][_0x10d6('0x94')](),_0x3d6309=_0x2623c8[_0x10d6('0x1a')][_0x10d6('0x14')],_0x2b40ba=_0x5cbc6f[_0x10d6('0xcc')][_0x10d6('0x5e')];let _0x5d66ab=null,_0x490f99=null,_0x95c22a=!0x1,_0x219787=!0x1;for(const _0x53a58c of _0x282022){const _0x340ff7=_0x53a58c['item'];_0x95c22a=_0x95c22a||_0x2b40ba[_0x10d6('0x7e')](_0x340ff7);const _0x3c069f=_0x92a4b1[_0x10d6('0x29')][_0x10d6('0xf2')](_0x340ff7);if(_0x3c069f&&_0x3c069f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x53a58c[_0x10d6('0x3c')]&&(_0x2b40ba[_0x10d6('0x53')](_0x340ff7)&&!_0x2b40ba['isLimit'](_0x340ff7)&&(_0x340ff7[_0x10d6('0x9')]||_0x3d6309[_0x10d6('0x85')]?_0x5d66ab&&_0x5d66ab[_0x10d6('0x100')]==_0x340ff7||(_0x5d66ab=_0x340ff7,_0x533853(_0x53a58c[_0x10d6('0x2')]),_0x219787=!0x0):_0x490f99=_0x490f99||_0x53a58c['previousPosition']));}function _0x533853(_0x2687f3){const _0x34ab0c=_0x92a4b1[_0x10d6('0xae')]['createUIElement']('span',{'class':_0x10d6('0xab')+_0x5a3de4}),_0x2d4887=_0x92a4b1[_0x10d6('0x29')][_0x10d6('0xb0')](_0x2687f3);_0x1521fd[_0x10d6('0x27')][_0x10d6('0x8d')]&&_0x92a4b1['writer'][_0x10d6('0x28')](_0x10d6('0xab')+_0x5a3de4+'-new',_0x34ab0c),_0x43eaa4['activeChange']==_0x1521fd&&_0x92a4b1[_0x10d6('0xae')][_0x10d6('0x28')]('ck-suggestion-marker--active',_0x34ab0c),_0x92a4b1[_0x10d6('0xae')]['insert'](_0x2d4887,_0x34ab0c),_0x92a4b1[_0x10d6('0x29')][_0x10d6('0x1d')](_0x34ab0c,_0x2623c8[_0x10d6('0xb1')]);}_0x95c22a||_0x219787||!_0x490f99||_0x533853(_0x490f99);};}(this['editor']),{'priority':_0x10d6('0x76')}),this['editor'][_0x10d6('0xaf')][_0x10d6('0x106')]['on']('removeMarker:revision',(_0x1de19d,_0x206ca6,_0x4c6d30)=>{const _0xe5cc46=_0x4c6d30['mapper'][_0x10d6('0x1b')](_0x206ca6['markerName']);if(_0xe5cc46)for(const _0x4477e1 of _0xe5cc46)(_0x4477e1[_0x10d6('0x3d')](_0x10d6('0xc5'))||_0x4477e1[_0x10d6('0x3d')](_0x10d6('0x72')))&&(_0x4c6d30['mapper'][_0x10d6('0xd6')](_0x4477e1,_0x206ca6[_0x10d6('0xb1')]),_0x4c6d30[_0x10d6('0xae')][_0x10d6('0x25')](_0x4477e1));},{'priority':_0x10d6('0x76')}),this['editor'][_0x10d6('0xaf')][_0x10d6('0x106')]['on'](_0x10d6('0xd'),(_0x2ef78a,_0x1a4b64,_0x10dbe7)=>{const _0x5e5d03=_0x1a4b64['markerName']['split'](':')[0x1],_0x464c35=this[_0x10d6('0x17')](_0x5e5d03);if(!_0x464c35)return null;const _0x5b88c7=_0x10d6('0x10e')==_0x464c35[_0x10d6('0x3c')]?_0x10d6('0xaa'):'merge';if(_0x10dbe7[_0x10d6('0x22')][_0x10d6('0x42')](_0x1a4b64[_0x10d6('0x1a')],_0x2ef78a[_0x10d6('0x9d')]))for(const _0x5594ea of _0x1a4b64[_0x10d6('0x1a')][_0x10d6('0x5')]()){if(!_0x5594ea['is']('element','softBreak'))continue;const _0xa077e4=_0x10dbe7[_0x10d6('0xae')][_0x10d6('0x20')](_0x10d6('0x31'),{'class':_0x10d6('0xab')+_0x5b88c7}),_0x41d9c3=_0x10dbe7['mapper'][_0x10d6('0xb0')](this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x87')](_0x5594ea));_0x464c35[_0x10d6('0x27')][_0x10d6('0x8d')]&&_0x10dbe7[_0x10d6('0xae')][_0x10d6('0x28')](_0x10d6('0xab')+_0x5b88c7+_0x10d6('0x7'),_0xa077e4),this['activeChange']==_0x464c35&&_0x10dbe7[_0x10d6('0xae')][_0x10d6('0x28')]('ck-suggestion-marker--active',_0xa077e4),_0x10dbe7[_0x10d6('0xae')][_0x10d6('0x99')](_0x41d9c3,_0xa077e4),_0x10dbe7[_0x10d6('0x29')][_0x10d6('0x1d')](_0xa077e4,_0x1a4b64[_0x10d6('0xb1')]);}},{'priority':'high'}),this[_0x10d6('0xfb')][_0x10d6('0xcc')]['document']['on']('change',()=>{this['editor'][_0x10d6('0xaf')][_0x10d6('0x127')]['change'](_0x3e2b6f=>{for(const _0x23a97c of this['editor'][_0x10d6('0xcc')][_0x10d6('0x5b')][_0x10d6('0xc8')]()){const _0x180c0a=this[_0x10d6('0xfb')]['model'][_0x10d6('0x5b')][_0x10d6('0x9c')](_0x23a97c),_0x377b90=this[_0x10d6('0xfb')]['editing'][_0x10d6('0x127')][_0x10d6('0x5b')]['getRoot'](_0x23a97c);if(_0x377b90){const _0x1e7af4=_0x180c0a[_0x10d6('0xd0')]('revisionHistoryAttachChange');if(_0x3e2b6f['removeAttribute'](_0x10d6('0x69'),_0x377b90),_0x3e2b6f[_0x10d6('0x8e')](_0x10d6('0xb6'),_0x377b90),_0x3e2b6f[_0x10d6('0x8e')](_0x10d6('0xf5'),_0x377b90),_0x3e2b6f[_0x10d6('0x8e')](_0x10d6('0x105'),_0x377b90),_0x1e7af4){const _0x27f0e9=this[_0x10d6('0x17')](_0x1e7af4);if(!_0x27f0e9)return null;_0x3e2b6f[_0x10d6('0x92')](_0x10d6('0x69'),_0x1e7af4,_0x377b90),_0x3e2b6f[_0x10d6('0x28')](_0x10d6('0xd1')+_0x27f0e9[_0x10d6('0x3c')],_0x377b90),this[_0x10d6('0xe5')]==_0x27f0e9&&_0x3e2b6f[_0x10d6('0x28')]('ck-revision-history-root--active',_0x377b90);}}}});}),this['editor']['conversion'][_0x10d6('0x8a')]('upcast')[_0x10d6('0x8c')]({'view':_0x10d6('0x4a'),'model':_0x556927=>_0x10d6('0x46')+_0x556927,'converterPriority':_0x10d6('0xa0')}),this[_0x10d6('0xfb')][_0x10d6('0x5a')][_0x10d6('0x8a')]('upcast')['dataToMarker']({'view':'suggestion','model':_0x7fb6e9=>_0x10d6('0x51')+_0x7fb6e9,'converterPriority':_0x10d6('0xa0')}),this[_0x10d6('0xfb')][_0x10d6('0x5a')][_0x10d6('0x8a')](_0x10d6('0x112'))['markerToData']({'model':_0x10d6('0xc4'),'view':_0x4e5ef5=>({'name':_0x10d6('0x84')+_0x4e5ef5,'group':_0x10d6('0xc4')}),'converterPriority':'highest'}),this[_0x10d6('0xfb')][_0x10d6('0x5a')]['for'](_0x10d6('0x82'))[_0x10d6('0x125')]({'model':'revision-suggestion','view':_0x1b7fac=>{const _0x1fc611=_0x1b7fac[_0x10d6('0xb1')][_0x10d6('0xaa')](':')[0x1];return'insertion'!=_0x1fc611&&_0x10d6('0x41')!=_0x1fc611?null:{'classes':[_0x10d6('0x10b'),_0x10d6('0xb2')+_0x1fc611]};}}),this[_0x10d6('0xfb')][_0x10d6('0xaf')]['downcastDispatcher']['on'](_0x10d6('0x115'),et(this['editor'],_0x10d6('0xa1')),{'priority':_0x10d6('0x76')}),this['editor']['editing']['downcastDispatcher']['on'](_0x10d6('0xca'),et(this[_0x10d6('0xfb')],_0x10d6('0xaa')),{'priority':'high'}),this[_0x10d6('0xfb')][_0x10d6('0xaf')]['downcastDispatcher']['on'](_0x10d6('0x39'),(_0x3d8513,_0x3cf3d1,_0x4bbc77)=>{const _0x2e708b=_0x4bbc77[_0x10d6('0x29')][_0x10d6('0x1b')](_0x3cf3d1['markerName']);if(_0x2e708b)for(const _0x3e359d of _0x2e708b)_0x3e359d['is'](_0x10d6('0x10c'))&&(_0x4bbc77[_0x10d6('0x29')][_0x10d6('0xd6')](_0x3e359d,_0x3cf3d1[_0x10d6('0xb1')]),_0x4bbc77[_0x10d6('0xae')]['remove'](_0x3e359d));},{'priority':_0x10d6('0x76')});}['_getChangeFromId'](_0xf5323a){return this[_0x10d6('0x9e')]['get'](_0xf5323a);}[_0x10d6('0x3a')](_0x407535){return this[_0x10d6('0x71')]&&this[_0x10d6('0x71')][_0x10d6('0x6')](),this[_0x10d6('0x71')]=new _0xe2d2d7(this[_0x10d6('0xfb')][_0x10d6('0x91')],_0x407535),this[_0x10d6('0x71')];}[_0x10d6('0xac')](){this[_0x10d6('0xfb')][_0x10d6('0xcc')]['document'][_0x10d6('0xa2')][_0x10d6('0xd2')](_0x10d6('0xd3')),this['on'](_0x10d6('0xa'),(_0xacea01,_0x2c0e60,_0x1b9c13,_0x4f4aff)=>{_0x4f4aff&&this[_0x10d6('0x120')][_0x10d6('0x25')](_0x4f4aff),_0x1b9c13&&(this['_balloon'][_0x10d6('0x10e')]({'view':_0x1b9c13,'stackId':_0x10d6('0xa5'),'position':{'target':()=>{const _0x19dd7a=this['editor'][_0x10d6('0xaf')],_0x37608c=this[_0x10d6('0x17')](_0x1b9c13['changeId']);let _0x12687f;if(_0x37608c['data'][_0x10d6('0xc0')]){const _0x877ed6=_0x19dd7a['view'][_0x10d6('0x6b')](_0x37608c[_0x10d6('0x58')]);_0x12687f=Array[_0x10d6('0xb7')](_0x877ed6['getClientRects']());}else{const _0x4928a4=this[_0x10d6('0xfb')]['model'][_0x10d6('0x110')][_0x10d6('0xf6')](_0x10d6('0x96')+_0x1b9c13[_0x10d6('0xbb')]);_0x12687f=Array[_0x10d6('0xb7')](_0x19dd7a[_0x10d6('0x29')][_0x10d6('0x1b')](_0x4928a4['name']))[_0x10d6('0x113')](_0x5bbf30=>_0x19dd7a[_0x10d6('0x127')][_0x10d6('0xe2')][_0x10d6('0x118')](_0x5bbf30))['map'](_0x1ad0f4=>Array['from'](_0x1ad0f4[_0x10d6('0x52')]()))[_0x10d6('0xcf')]();}if(!this[_0x10d6('0x3b')])return _0x12687f[0x0];return _0x12687f[_0x10d6('0xdd')](_0x567e05=>_0x567e05[_0x10d6('0x11a')]-0x3<=this[_0x10d6('0x3b')]['y']&&_0x567e05[_0x10d6('0xf0')]+0x3>=this[_0x10d6('0x3b')]['y']&&_0x567e05[_0x10d6('0x36')]-0x3<=this[_0x10d6('0x3b')]['x']&&_0x567e05['right']+0x3>=this[_0x10d6('0x3b')]['x'])||_0x12687f[0x0];}}}),this['_balloon']['showStack'](_0x10d6('0xa5')));}),this['on'](_0x10d6('0xb3'),(_0x494149,_0x3ffe2c,_0x11a25e,_0x2469c1)=>{this[_0x10d6('0x101')]=_0x11a25e?this[_0x10d6('0x3a')](_0x11a25e):null,this[_0x10d6('0xfb')][_0x10d6('0xcc')][_0x10d6('0x121')](()=>{const _0x4c87d0=this[_0x10d6('0xfb')][_0x10d6('0xaf')];_0x2469c1&&(_0x2469c1[_0x10d6('0x27')][_0x10d6('0xc0')]?_0x4c87d0['view']['change'](_0x529161=>{_0x529161['removeClass']('ck-revision-history-root--active',_0x4c87d0[_0x10d6('0x127')][_0x10d6('0x5b')]['getRoot'](_0x2469c1[_0x10d6('0x58')]));}):_0x4c87d0[_0x10d6('0x1c')](_0x10d6('0x96')+_0x2469c1['id'])),_0x11a25e&&(_0x11a25e['data']['isOnRoot']?_0x4c87d0[_0x10d6('0x127')][_0x10d6('0x121')](_0x772631=>{_0x772631['addClass'](_0x10d6('0x105'),_0x4c87d0['view'][_0x10d6('0x5b')][_0x10d6('0x9c')](_0x11a25e[_0x10d6('0x58')]));}):_0x4c87d0[_0x10d6('0x1c')](_0x10d6('0x96')+_0x11a25e['id']));});}),this[_0x10d6('0x2f')](this[_0x10d6('0xfb')][_0x10d6('0xaf')]['view'][_0x10d6('0x5b')],_0x10d6('0x67'),(_0x5d61ed,_0x25eb85)=>{if(this['activeChange'])return;const _0x377da0=this[_0x10d6('0xda')](_0x25eb85['target']),_0x5f3bc1=this[_0x10d6('0x9e')][_0x10d6('0xf6')](_0x377da0);_0x5f3bc1?(this[_0x10d6('0x3b')]={'x':_0x25eb85['domEvent']['x'],'y':_0x25eb85['domEvent']['y']},this[_0x10d6('0x101')]=this[_0x10d6('0x3a')](_0x5f3bc1)):(this[_0x10d6('0x3b')]=null,this[_0x10d6('0x101')]=null);}),this[_0x10d6('0x2f')](this[_0x10d6('0xfb')][_0x10d6('0xaf')][_0x10d6('0x127')][_0x10d6('0x5b')],_0x10d6('0xe8'),(_0x23ec8f,_0x45fbae)=>{const _0x5b9cbe=this[_0x10d6('0xda')](_0x45fbae[_0x10d6('0x3')]),_0x42e4cb=this['_changeIdToChange']['get'](_0x5b9cbe);_0x42e4cb?(this['_activeViewTarget']={'x':_0x45fbae[_0x10d6('0x123')]['x'],'y':_0x45fbae[_0x10d6('0x123')]['y']},_0x42e4cb===this[_0x10d6('0xe5')]?this[_0x10d6('0x120')]['updatePosition']():this['activeChange']=_0x42e4cb):(this[_0x10d6('0x3b')]=null,this['activeChange']=null);});}[_0x10d6('0xda')](_0xfe3b7f){do{const _0x28cc43=_0xfe3b7f['getAttribute'](_0x10d6('0x69'));if(_0x28cc43)return _0x28cc43;_0xfe3b7f=_0xfe3b7f[_0x10d6('0x100')];}while(_0xfe3b7f);return null;}[_0x10d6('0xdf')](){this[_0x10d6('0xfb')]['model'][_0x10d6('0x121')](_0x16844b=>{for(const _0x5c84e3 of this[_0x10d6('0xfb')][_0x10d6('0xcc')]['markers'])_0x16844b[_0x10d6('0x30')](_0x5c84e3);});}}function et(_0x631101,_0x2e70fa){return(_0x284c8e,_0x59c1f1,_0x155914)=>{if(!_0x155914[_0x10d6('0x22')][_0x10d6('0x42')](_0x59c1f1[_0x10d6('0x1a')],_0x284c8e[_0x10d6('0x9d')]))return;const _0xe23887=_0x59c1f1[_0x10d6('0x1a')][_0x10d6('0x94')](),_0x3b3da2=_0x59c1f1['markerRange']['start'],_0xadf9d3=_0x631101[_0x10d6('0xcc')][_0x10d6('0x5e')];let _0x1444eb=null,_0x307470=null,_0x3d152c=!0x1,_0x13763f=!0x1;for(const _0x5a10ca of _0xe23887){const _0xf113fc=_0x5a10ca[_0x10d6('0x104')];_0x3d152c=_0x3d152c||_0xadf9d3[_0x10d6('0x7e')](_0xf113fc);const _0x3dde0f=_0x155914['mapper'][_0x10d6('0xf2')](_0xf113fc);if(_0x3dde0f&&_0x3dde0f[_0x10d6('0x8')](_0x10d6('0xf8')))return;_0x10d6('0x16')==_0x5a10ca[_0x10d6('0x3c')]&&(_0xadf9d3[_0x10d6('0x53')](_0xf113fc)&&!_0xadf9d3[_0x10d6('0xea')](_0xf113fc)&&(_0xf113fc[_0x10d6('0x9')]||_0x3b3da2[_0x10d6('0x85')]?_0x1444eb&&_0x1444eb['parent']==_0xf113fc||(_0x1444eb=_0xf113fc,_0x43beb7(_0x5a10ca[_0x10d6('0x2')]),_0x13763f=!0x0):_0x307470=_0x307470||_0x5a10ca[_0x10d6('0x2')]));}function _0x43beb7(_0x425215){const _0x145534=_0x155914['mapper']['toViewPosition'](_0x425215),_0x3ff388=_0x155914['writer'][_0x10d6('0x20')]('span',{'class':_0x10d6('0xb2')+_0x2e70fa});_0x155914['writer'][_0x10d6('0x99')](_0x145534,_0x3ff388),_0x155914[_0x10d6('0x29')]['bindElementToMarker'](_0x3ff388,_0x59c1f1[_0x10d6('0xb1')]);}_0x3d152c||_0x13763f||!_0x307470||_0x43beb7(_0x307470);};}export class RestoreRevisionCommand extends _0x5ab159{constructor(_0xb64eff){super(_0xb64eff);const _0x17f18a=_0xb64eff['plugins'][_0x10d6('0xf6')](d);this['affectsData']=!0x1,this['listenTo'](_0x17f18a,_0x10d6('0x124'),()=>this[_0x10d6('0xa3')]()),this[_0x10d6('0x2f')](_0x17f18a,_0x10d6('0x117'),()=>this[_0x10d6('0xa3')]());}[_0x10d6('0x12')](){const _0x1bd118=this[_0x10d6('0xfb')],_0x5be3c7=_0x1bd118['plugins'][_0x10d6('0xf6')](d),_0x2c36ef=_0x5be3c7['isReady']?_0x5be3c7[_0x10d6('0xeb')][_0x10d6('0xfa')]:null;_0x1bd118[_0x10d6('0x2b')][_0x10d6('0xf6')](_0x10d6('0xe3'))[_0x10d6('0x47')](_0x2c36ef);}[_0x10d6('0xa3')](){const {isReady:_0x4394ea,isEnabled:_0x4cb1a6}=this[_0x10d6('0xfb')][_0x10d6('0x8f')][_0x10d6('0xf6')](d);this[_0x10d6('0xf3')]=_0x4394ea&&_0x4cb1a6;}}export class ShowChangeCommand extends _0x5ab159{constructor(_0x5e8795,{direction:_0x3e9f9a}){super(_0x5e8795);const _0x5e2671=_0x5e8795[_0x10d6('0x8f')][_0x10d6('0xf6')](d);this['affectsData']=!0x1,this[_0x10d6('0xbe')]=_0x10d6('0x33')===_0x3e9f9a?0x1:-0x1,this[_0x10d6('0x2f')](_0x5e2671,_0x10d6('0x124'),()=>this[_0x10d6('0xa3')]()),this[_0x10d6('0x2f')](_0x5e2671,_0x10d6('0x117'),()=>this[_0x10d6('0xa3')]()),this['listenTo'](_0x5e2671,_0x10d6('0xb3'),()=>this[_0x10d6('0xa3')]());}[_0x10d6('0x12')](){const _0x556e97=this['editor'],_0x41ee2a=_0x556e97[_0x10d6('0x8f')]['get'](d),{isNavigationMode:_0x38cbef,currentChangeNumber:_0xd0fc4d}=_0x41ee2a;let _0x738ebd;if(_0x41ee2a[_0x10d6('0xe5')]=_0x38cbef?_0x41ee2a[_0x10d6('0xeb')][_0x10d6('0x108')][_0x10d6('0xf6')](_0xd0fc4d+this[_0x10d6('0xbe')]):_0x41ee2a[_0x10d6('0xeb')][_0x10d6('0x108')][_0x10d6('0x83')],_0x41ee2a[_0x10d6('0xe5')][_0x10d6('0x27')]['isOnRoot'])_0x738ebd=_0x556e97[_0x10d6('0xaf')]['view']['getDomRoot'](_0x41ee2a['activeChange'][_0x10d6('0x58')]);else{const _0x4088ea=_0x556e97[_0x10d6('0xcc')][_0x10d6('0x110')][_0x10d6('0xf6')](_0x10d6('0x96')+_0x41ee2a[_0x10d6('0xe5')]['id']);_0x738ebd=_0x2d8e50(_0x556e97['editing'],_0x4088ea);}_0x154fcd({'target':_0x738ebd,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4277f1,currentChangeNumber:_0x27b0a4,numberOfChanges:_0x1083c3,isReady:_0x4437f2,isEnabled:_0x46c261}=this[_0x10d6('0xfb')][_0x10d6('0x8f')][_0x10d6('0xf6')](d);this[_0x10d6('0xf3')]=!!(_0x46c261&&_0x4437f2&&_0x1083c3)&&(!_0x4277f1||(0x1===this[_0x10d6('0xbe')]?_0x27b0a4<_0x1083c3-0x1:_0x27b0a4>0x0));}}
23
+ const _0x1e5b=['getAttributes','text','getChild','conversion','revision-suggestion','_markSuggestions','ck-revision-history-root-add','isAdded','startIndex','removeAttribute','_refreshStartEndIndex','consume','right','rootName','adapter','_appendChild','all','revision-viewer','_markMismatchedRemovedTags','change:isEnabled','repository','createUIElement','modelRange','addHighlight','getClientRects','revision-end','ck-editor__editable__overlay','markerName','execute','getRoot','activeView','refresh','ck-suggestion-marker','attributes','toData','parse','mapper','unbindElementFromMarkerName','low','elementStart','getItems','change:activeChange','length','forward','POSITIVE_INFINITY','highest','distance','remove','isInline','shift','done','getRootNames','_initInteractions','revisionHistoryLabel','isAfter','deletions','map','ck-revision-history-root-remove','sort','_getViewObj','item','previousPosition','delete','ck-suggestion-marker-','offsetSize','restoreRevision','revisionHistoryAttachChange','insertions','data-change-id','_setConversion','revision-suggestion:','getRevision','nextSibling','insert','consumable','toViewRange','removeMarker','attributesBefore','data','first','ck-suggestion-marker--active','next','get','push','listenTo','element:pre','isRemoved','upcast','dataDowncast','changes','error','values','removeMarker:revision','_removeMissingPairs','editingDowncast','loadRevisionData','createRangeIn','_getRevisionsRange','add','vid','showPreviousChange','uiElement','schema','children','updatePosition','markerNameToElements','_threeWayMerge','addMarker:revision','default','selection','getAttribute','_markInsertions','top','side','suggestion:','test','unshift','activeChange','RevisionViewer','writer','hasAttribute','changeId','stop','endIndex','affectsData','WidgetToolbarRepository','downcastDispatcher','diff','_sortAndFilterDiffChanges','_removeRevisionMarkers','bottom','abs','isReady','createPositionFromPath','ck-revision-history-root-','hasClass','string','isLimit','config','_cleanUp','markerToHighlight','editor','change:activeView','startsWith','createPositionBefore','mapViewToDom','parent','isContent','start','_balloon','collaboration.channelId','nodeAfter','_makeModelFromViewString','roots','isBefore','checkAttribute','end','revision:','_fixObsoleteTags','editing','mouseover','_markMarkers','toViewPosition','marked','insertion','includes','markersEnd','_setChanges','filter','change','isBlock','isAddSuggestion','attributesAfter','_findChangeIdFromDomTarget','removeMarker:revision-suggestion','domEvent','vid_end','elementToAttribute','markerToData','-new','_processTape','dataToMarker','restoreRevisionCallback','split','isSuggestion','attribute:vid','deletion','index','pluginName','vid_start','high','document','getIndex','locale','code','_makeTape','forceDisabled','isAttached','reconvertMarker','elementEnd','isEnabled','createRevision','_getDiff','mousedown','userId','getRevisionRootsAttributes','attachChange','showNextChange','compare','_data','slice','concat','addMarker:revision-suggestion:deletion','requires','_removeUnsupportedChanges','useFillerType','data-revision-','plugins','pop','resolve','getWalker','_makeModelFromTape','numberOfChanges','removeClass','isOnRoot','_setDistance','has','observeMarkers','softBreak','ck-suggestion-marker-split','ck-revision-history-root--active','_getViewForChange','name','RevisionsRepository','revisionHistory','createRange','type','_update','set','markerRange','isIncorrect','newRevisionId','isAtEnd','view','diffData','bindElementToMarker','then','detachRoot','forEach','model','viewItem','processor','_activeViewTarget','isNavigationMode','addRoot','addClass','markersStart','_step','from','toViewElement','for','destroy','keys','_getChangeFromId','clear','oldRevisionId','isRemoveSuggestion','getDomRoot','_changeView','setAttribute','addRevision','suggestion','revision-start','bind','wrap','level','toModel','revision','commands','getCustomProperty','nextPosition','element','_joinTapes','pairId','_cleanMarkers','isEqual','_changeIdToChange','span','merge','object','markers'];(function(_0x51640c,_0x1e5b5d){const _0x48dbba=function(_0x34da7a){while(--_0x34da7a){_0x51640c['push'](_0x51640c['shift']());}};_0x48dbba(++_0x1e5b5d);}(_0x1e5b,0x1ba));const _0x48db=function(_0x51640c,_0x1e5b5d){_0x51640c=_0x51640c-0x0;let _0x48dbba=_0x1e5b[_0x51640c];return _0x48dbba;};import{Plugin as _0x5bc0ff,Command as _0x28f02b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x46b1aa}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4e383d}from'ckeditor5/src/ui';import{DocumentFragment as _0x489477,Element as _0x3294a3,Text as _0xb4ccc7,ViewDocumentFragment as _0x69a544,ViewText as _0x4973e7,ViewElement as _0x461813,ViewContainerElement as _0x228da0,ViewAttributeElement as _0x5e0814,ViewEmptyElement as _0x137acf,ViewRawElement as _0x174b99,ViewUIElement as _0x3153b5}from'ckeditor5/src/engine';import{Users as _0x1be1b8,getMarkerDomElement as _0x15e21b}from'ckeditor5-collaboration/src/collaboration-core';import _0x138681 from'./ui/revisionviewer/changedetailsview';import _0x53c1c2 from'./revisionsrepository';import _0x265e6d from'./changeitem';import{default as _0x252790}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x58dbae}from'lodash-es';const tt={'c':_0x228da0,'a':_0x5e0814,'e':_0x137acf,'r':_0x174b99,'u':_0x3153b5};export default class d extends _0x5bc0ff{static get[_0x48db('0x25')](){return _0x48db('0x102');}static get[_0x48db('0x3e')](){return[_0x1be1b8,_0x4e383d,_0x53c1c2];}constructor(_0x50d981){super(_0x50d981),this[_0x48db('0xa0')]=this[_0x48db('0x119')]['plugins'][_0x48db('0xde')](_0x48db('0x52')),this[_0x48db('0x57')](_0x48db('0x101'),null),this[_0x48db('0x57')](_0x48db('0xaa'),null),this[_0x48db('0x65')]=null,this[_0x48db('0x57')](_0x48db('0x10b'),null),this[_0x48db('0x57')](_0x48db('0x110'),!0x1),this[_0x48db('0x57')](_0x48db('0x31'),!0x0),this['on'](_0x48db('0x9f'),(_0x4b222b,_0x552531,_0x3d8db5)=>{this['activeChange']=null,this[_0x48db('0xaa')]=null,this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x12')](_0x73c432=>{for(const _0x2fd641 of this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x28')][_0x48db('0x2')])_0x3d8db5?_0x73c432['removeClass']('ck-editor__editable__overlay',_0x2fd641):_0x73c432[_0x48db('0x68')](_0x48db('0xa6'),_0x2fd641);});}),this[_0x48db('0x7a')](_0x48db('0x66'))['to'](this,'activeChange',_0x2019bc=>null!==_0x2019bc),this[_0x48db('0x7a')]('currentChangeNumber')['to'](this,'isReady',this,_0x48db('0x10b'),this,_0x48db('0x101'),(_0x31d5e3,_0x5f6c26,_0x23d325)=>_0x31d5e3&&_0x23d325?_0x5f6c26[_0x48db('0xe5')][_0x48db('0x29')](_0x23d325):0x0),this['bind'](_0x48db('0x47'))['to'](this,_0x48db('0x110'),this,_0x48db('0x10b'),(_0x86e3ee,_0x4630e4)=>_0x86e3ee?_0x4630e4[_0x48db('0xe5')][_0x48db('0xb6')]:0x0),this[_0x48db('0x75')]=null,this[_0x48db('0x87')]=new Map(),this[_0x48db('0x9a')]=null,this[_0x48db('0x121')]=this[_0x48db('0x119')][_0x48db('0x42')]['get'](_0x4e383d);}['init'](){const _0x1ff7f7=this[_0x48db('0x119')],_0x49d5c5=new ShowChangeCommand(_0x1ff7f7,{'direction':'backward'}),_0x306fa2=new ShowChangeCommand(_0x1ff7f7,{'direction':_0x48db('0xb7')});(_0x1ff7f7[_0x48db('0x7f')][_0x48db('0xee')](_0x48db('0xf0'),_0x49d5c5),_0x1ff7f7[_0x48db('0x7f')][_0x48db('0xee')](_0x48db('0x38'),_0x306fa2),_0x1ff7f7[_0x48db('0x7f')][_0x48db('0xee')](_0x48db('0xcd'),new RestoreRevisionCommand(_0x1ff7f7)),this['on']('change:numberOfChanges',()=>{_0x49d5c5[_0x48db('0xab')](),_0x306fa2[_0x48db('0xab')]();}),this['_setConversion'](),this[_0x48db('0xc0')](),_0x1ff7f7['enableReadOnlyMode'](_0x48db('0x9d')),_0x1ff7f7['plugins']['has'](_0x48db('0x109')))&&_0x1ff7f7[_0x48db('0x42')]['get'](_0x48db('0x109'))[_0x48db('0x2d')]('revision-viewer');}async['getRevisionData'](_0x45c6d5){await this[_0x48db('0xeb')](_0x45c6d5);const _0x4a6489={};for(const _0x12018c in _0x45c6d5[_0x48db('0x5d')]){if(_0x45c6d5[_0x48db('0x5d')][_0x12018c]['attachChange']&&!_0x45c6d5['diffData'][_0x12018c][_0x48db('0x37')]['isAttached'])continue;const _0x30cae5=this[_0x48db('0x10d')](JSON[_0x48db('0xaf')](_0x45c6d5['diffData'][_0x12018c][_0x48db('0xcf')])),_0x4a8574=this['editor']['editing'][_0x48db('0x5c')][_0x48db('0x28')],_0x266798=new _0x69a544(_0x4a8574,_0x30cae5[_0x48db('0xc4')](_0x3fea52=>this[_0x48db('0xc7')](_0x3fea52)));this[_0x48db('0x119')][_0x48db('0xda')][_0x48db('0x64')][_0x48db('0x40')](_0x48db('0xc')),_0x4a6489[_0x12018c]=this['editor'][_0x48db('0xda')]['processor'][_0x48db('0xae')](_0x266798),this[_0x48db('0x119')][_0x48db('0xda')][_0x48db('0x64')][_0x48db('0x40')](_0x48db('0xf8'));}return _0x4a6489;}async[_0x48db('0x36')](_0x56f20d){await this[_0x48db('0xeb')](_0x56f20d);const _0x35575f={};for(const _0x521267 in _0x56f20d[_0x48db('0x5d')])_0x56f20d[_0x48db('0x5d')][_0x521267]['attachChange']&&!_0x56f20d[_0x48db('0x5d')][_0x521267][_0x48db('0x37')][_0x48db('0x2e')]||(_0x35575f[_0x521267]=_0x56f20d[_0x48db('0x5d')][_0x521267]['attributesAfter']||{});return _0x35575f;}[_0x48db('0x10d')](_0x1da059){return(_0x1da059=_0x1da059['filter'](_0x2f5400=>!_0x2f5400[_0x48db('0x51')]||_0x48db('0x79')!==_0x2f5400['name']&&_0x48db('0xa5')!==_0x2f5400['name']))[_0x48db('0x61')](_0xe48fd3=>{_0x48db('0x114')!=typeof _0xe48fd3&&(_0xe48fd3['children']=this[_0x48db('0x10d')](_0xe48fd3[_0x48db('0xf3')]),_0xe48fd3['attributes']=_0xe48fd3['attributes'][_0x48db('0x11')](_0x538c11=>!_0x538c11[0x0][_0x48db('0x11b')](_0x48db('0x41'))));}),_0x1da059;}async[_0x48db('0x39')](_0x19aceb,_0x1eaf83,_0x571a79=!0x1){if(!this[_0x48db('0x31')])return;const _0x49b576=this[_0x48db('0x10b')],_0xce61c0=this['repository'],_0x3517a3=_0x48db('0x114')==typeof _0x19aceb?_0xce61c0['getRevision'](_0x19aceb):_0x19aceb,_0x2505d4=_0x48db('0x114')==typeof _0x1eaf83?_0xce61c0[_0x48db('0xd3')](_0x1eaf83):_0x1eaf83,_0x332993=_0x3517a3['id'],_0x1f3ae7=_0x2505d4?_0x2505d4['id']:null;if(!_0x571a79&&this[_0x48db('0x10b')]&&this['diff'][_0x48db('0x5a')]===_0x332993&&this['diff'][_0x48db('0x72')]===_0x1f3ae7)return Promise[_0x48db('0x44')]();this[_0x48db('0x110')]=!0x1,this[_0x48db('0xaa')]=null,this['activeChange']=null,this[_0x48db('0x10b')]=new _0x252790(_0x332993,_0x1f3ae7);const _0x465a45=this[_0x48db('0xed')](_0x3517a3,_0x2505d4,!0x0)['map'](_0x2ec625=>this[_0x48db('0xeb')](_0x2ec625));return _0x465a45[_0x48db('0xdf')](new Promise(_0x956fc2=>{setTimeout(_0x956fc2,0x14);})),Promise[_0x48db('0x9c')](_0x465a45)[_0x48db('0x5f')](()=>{if(!this['isEnabled'])return;this[_0x48db('0x117')]();const _0x33af3d=this['_getDiff'](_0x332993,_0x1f3ae7);for(const _0x543d4c of _0x33af3d['changes'])this['_changeIdToChange']['set'](_0x543d4c['id'],_0x543d4c);this[_0x48db('0x119')][_0x48db('0x62')]['enqueueChange']({'isUndoable':!0x1},_0x15b40e=>{for(const _0x47905f of this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x28')]['getRootNames']())_0x15b40e[_0x48db('0x60')](_0x47905f);for(const _0x31398b of Object[_0x48db('0x6f')](_0x33af3d[_0x48db('0x62')])){const _0x508c3c=_0x15b40e[_0x48db('0x67')](_0x31398b);for(const _0x28e996 of Object[_0x48db('0x6f')](_0x33af3d['attributes'][_0x31398b]))_0x15b40e[_0x48db('0x76')](_0x28e996,_0x33af3d[_0x48db('0xad')][_0x31398b][_0x28e996],_0x508c3c);_0x15b40e[_0x48db('0xd5')](_0x33af3d[_0x48db('0x62')][_0x31398b],_0x508c3c,0x0);}}),this[_0x48db('0x10b')][_0x48db('0x10')](this[_0x48db('0x10c')](_0x33af3d['changes'])),this[_0x48db('0x110')]=!0x0;})['catch'](_0x36ea15=>{console[_0x48db('0xe6')](_0x36ea15),this[_0x48db('0x117')](),_0x49b576&&(this['diff']=_0x49b576),this[_0x48db('0x110')]=!0x0;});}['addRevisionData'](_0x2bc569,_0x2f518c){const _0xe3e5ce=this['repository'][_0x48db('0x32')](_0x2bc569);return _0xe3e5ce['on'](_0x48db('0x56'),(_0x41a9b1,_0x30bf0c,_0x500f55)=>_0x2f518c(_0x30bf0c,_0x500f55,_0xe3e5ce)),this[_0x48db('0xa0')][_0x48db('0x77')](_0xe3e5ce),_0xe3e5ce;}['loadRevisionData'](_0x2e067c){if(!_0x2e067c||_0x2e067c[_0x48db('0x5d')])return Promise['resolve']();{const _0x85f53a=this['editor'][_0x48db('0x116')][_0x48db('0xde')](_0x48db('0x122'));return this[_0x48db('0x9a')][_0x48db('0xd3')]({'channelId':_0x85f53a,'revisionId':_0x2e067c['id']})['then'](_0x21e1cc=>{_0x2e067c[_0x48db('0x56')]({'diffData':_0x21e1cc[_0x48db('0x5d')]},!0x0);});}}[_0x48db('0x117')](){this[_0x48db('0x101')]=null,this[_0x48db('0x85')](),this[_0x48db('0x75')]&&this[_0x48db('0x75')][_0x48db('0x6e')](),this['_changeView']=null,this[_0x48db('0x87')][_0x48db('0x71')](),this[_0x48db('0x119')][_0x48db('0x62')]['enqueueChange']({'isUndoable':!0x1},_0x2358fe=>{for(const _0x4ef8a9 of this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x28')][_0x48db('0xbf')]())_0x2358fe['detachRoot'](_0x4ef8a9);});}[_0x48db('0x10c')](_0x213631){const _0x3347a5=[],_0x5498f4=new Map();for(const _0x3f17e5 of this[_0x48db('0x119')]['model'][_0x48db('0x28')][_0x48db('0xbf')]()){const _0x5181d7=this[_0x48db('0x119')]['editing'][_0x48db('0x5c')]['getDomRoot'](_0x3f17e5);if(!_0x5181d7)continue;const _0x5c8b3b=_0x5181d7[_0x48db('0xa4')]()[_0x48db('0xc8')](0x0);_0x5c8b3b&&(_0x3347a5[_0x48db('0xdf')](_0x3f17e5),_0x5498f4['set'](_0x3f17e5,_0x5c8b3b));}return _0x3347a5[_0x48db('0xc6')]((_0x582c9a,_0x4a02d4)=>{const _0x382464=_0x5498f4[_0x48db('0xde')](_0x582c9a),_0x3b38d4=_0x5498f4[_0x48db('0xde')](_0x4a02d4);return _0x382464['y']-_0x3b38d4['y']||_0x382464['x']-_0x3b38d4['x'];}),(_0x213631=_0x213631[_0x48db('0x11')](_0x450b4e=>_0x3347a5['includes'](_0x450b4e[_0x48db('0x99')])))[_0x48db('0xc6')]((_0x2c07c6,_0x16e539)=>_0x3347a5['indexOf'](_0x2c07c6[_0x48db('0x99')])-_0x3347a5['indexOf'](_0x16e539['rootName'])),_0x213631;}[_0x48db('0x2c')](_0x4999a6){const _0x501cf8=Array['from'](_0x4999a6['markers'])['filter'](([_0x54183f,_0x2a508b])=>_0x54183f[_0x48db('0x11b')](_0x48db('0x6'))&&!_0x2a508b['isCollapsed']),_0x37f875=Array['from'](this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0xec')](_0x4999a6)[_0x48db('0x45')]({'singleCharacters':!0x0}));if(0x0!=_0x501cf8['length'])for(const _0x548d2d of _0x37f875){const [_0xaf50de,_0xc0e381]=_0x501cf8[0x0],[,_0x30d8a1,_0x412419]=_0xaf50de[_0x48db('0x20')](':');if(_0xc0e381['end'][_0x48db('0x86')](_0x548d2d['nextPosition'])&&_0x501cf8[_0x48db('0xbd')](),(_0x548d2d[_0x48db('0xc9')][_0x48db('0x86')](_0xc0e381[_0x48db('0x120')])||_0x548d2d[_0x48db('0xc9')][_0x48db('0xc2')](_0xc0e381[_0x48db('0x120')]))&&(_0x48db('0xd')==_0x30d8a1?_0x548d2d[_0x48db('0x93')]={'userId':_0x412419}:_0x48db('0x23')==_0x30d8a1&&(_0x548d2d[_0x48db('0xe2')]={'userId':_0x412419})),0x0==_0x501cf8['length'])break;}return _0x37f875;}[_0x48db('0x96')](_0x2df0e6){const _0x174c10=new Map();for(let _0x58486c=0x0;_0x58486c<_0x2df0e6[_0x48db('0xb6')];_0x58486c++)_0x48db('0x8d')===_0x2df0e6[_0x58486c][_0x48db('0x55')]?(_0x2df0e6[_0x58486c][_0x48db('0xc8')][_0x48db('0x94')]=_0x58486c,_0x2df0e6[_0x58486c][_0x48db('0xc8')][_0x48db('0x107')]=_0x58486c):(_0x48db('0xb3')===_0x2df0e6[_0x58486c]['type']?_0x2df0e6[_0x58486c][_0x48db('0xc8')]['startIndex']=_0x58486c:_0x48db('0x30')===_0x2df0e6[_0x58486c]['type']&&(_0x2df0e6[_0x58486c][_0x48db('0xc8')][_0x48db('0x107')]=_0x58486c),_0x174c10[_0x48db('0x57')](_0x2df0e6[_0x58486c]['id'],_0x58486c));for(const _0x3cd0a5 of _0x174c10[_0x48db('0xe7')]())_0x48db('0xb3')===_0x2df0e6[_0x3cd0a5][_0x48db('0x55')]?_0x2df0e6[_0x3cd0a5][_0x48db('0xc8')][_0x48db('0x107')]=_0x174c10[_0x48db('0xde')](_0x2df0e6[_0x3cd0a5][_0x48db('0x84')]):_0x48db('0x30')===_0x2df0e6[_0x3cd0a5]['type']&&(_0x2df0e6[_0x3cd0a5]['item']['startIndex']=_0x174c10[_0x48db('0xde')](_0x2df0e6[_0x3cd0a5]['pairId']));}[_0x48db('0x1d')](_0x170957){for(let _0x56cf05=0x0;_0x56cf05<_0x170957[_0x48db('0xb6')];_0x56cf05++){if('elementStart'===_0x170957[_0x56cf05][_0x48db('0x55')])_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x94')]=_0x56cf05;else{if('elementEnd'===_0x170957[_0x56cf05]['type']){_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x107')]=_0x56cf05;const _0x309cc3=_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x94')];_0x170957[_0x309cc3]['pairId']=_0x170957[_0x56cf05]['id'],_0x170957[_0x56cf05][_0x48db('0x84')]=_0x170957[_0x309cc3]['id'];}else _0x170957[_0x56cf05][_0x48db('0xc8')]['startIndex']=_0x56cf05,_0x170957[_0x56cf05][_0x48db('0xc8')][_0x48db('0x107')]=_0x56cf05,_0x170957[_0x56cf05]['pairId']=null;}_0x170957[_0x56cf05][_0x48db('0x69')]||(_0x170957[_0x56cf05]['markersStart']=[],_0x170957[_0x56cf05][_0x48db('0xf')]=[]);}}[_0x48db('0xfb')](_0x229e46,_0x5a9fee){const _0x277746=_0x229e46[_0x48db('0x11')](_0x3015d7=>!_0x3015d7[_0x48db('0x93')]);for(let _0xc8a981=0x0;_0xc8a981<_0x5a9fee[_0x48db('0xb6')];_0xc8a981++)_0x5a9fee[_0xc8a981][_0x48db('0x93')]&&(_0x277746[_0xc8a981][_0x48db('0x93')]=_0x5a9fee[_0xc8a981][_0x48db('0x93')]);}['_makeModelFromViewString'](_0x3885f4){const _0x1f3698=JSON['parse'](_0x3885f4),_0x14163e=this[_0x48db('0x119')][_0x48db('0x8')]['view']['document'],_0x5be8eb=new _0x69a544(_0x14163e,_0x1f3698[_0x48db('0xc4')](_0x30505a=>this[_0x48db('0xc7')](_0x30505a)));return this['editor'][_0x48db('0xda')][_0x48db('0x7d')](_0x5be8eb);}[_0x48db('0xc7')](_0x221ce2){const _0x38199d=this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x28')];if(_0x48db('0x114')==typeof _0x221ce2)return new _0x4973e7(_0x38199d,_0x221ce2);{const _0x5e7025=_0x221ce2['children'][_0x48db('0xc4')](_0x552032=>this[_0x48db('0xc7')](_0x552032));return new(tt[_0x221ce2['type']]||_0x461813)(_0x38199d,_0x221ce2[_0x48db('0x51')],_0x221ce2[_0x48db('0xad')],_0x5e7025);}}[_0x48db('0x33')](_0x274758,_0x19f86e=null){const _0x5c8a44=this[_0x48db('0xa0')][_0x48db('0xd3')](_0x274758),_0x432c7f=_0x19f86e?this[_0x48db('0xa0')]['getRevision'](_0x19f86e):null,_0x2ff499=this['_getRevisionsRange'](_0x5c8a44,_0x432c7f),_0x165d1d=_0x2ff499[_0x2ff499[_0x48db('0xb6')]-0x1],_0x270190=new Map(),_0x261b9a={'model':{},'attributes':{},'changes':[]},_0x579079=new Set(),_0x2039e8=new Map();for(let _0x2543d9=_0x2ff499[_0x48db('0xb6')]-0x1;_0x2543d9>=0x0;_0x2543d9--){const _0x2b186b=_0x2ff499[_0x2543d9];for(const _0x326d7b of Object['keys'](_0x2b186b[_0x48db('0x5d')]))if(_0x2b186b['diffData'][_0x326d7b]['attachChange']){const _0x5d22f9=_0x2b186b[_0x48db('0x5d')][_0x326d7b][_0x48db('0x37')];_0x5d22f9[_0x48db('0x2e')]?(_0x579079[_0x48db('0xee')](_0x326d7b),_0x2039e8['has'](_0x326d7b)&&_0x2039e8['get'](_0x326d7b)[_0x48db('0x35')]==_0x5d22f9[_0x48db('0x35')]?_0x2039e8[_0x48db('0xca')](_0x326d7b):_0x2039e8[_0x48db('0x57')](_0x326d7b,_0x5d22f9)):_0x2039e8[_0x48db('0x4b')](_0x326d7b)?(_0x579079[_0x48db('0xca')](_0x326d7b),_0x2039e8['delete'](_0x326d7b)):(_0x579079['add'](_0x326d7b),_0x2039e8[_0x48db('0x57')](_0x326d7b,_0x5d22f9));}else _0x579079[_0x48db('0xee')](_0x326d7b);}for(const _0x113244 of _0x579079){const _0x4cf642=_0x2039e8[_0x48db('0x4b')](_0x113244)&&!_0x2039e8[_0x48db('0xde')](_0x113244)['isAttached'];let _0x4e6c5e=_0x4cf642?_0x2ff499[_0x48db('0xb6')]-0x1:0x0;const _0xbc862e=_0x4cf642?-0x1:0x1;for(;_0x2ff499[_0x4e6c5e];){const _0x356851=_0x2ff499[_0x4e6c5e];if(_0x356851[_0x48db('0x5d')][_0x113244]){const _0x3cf24b=_0x4cf642?_0x356851[_0x48db('0x5d')][_0x113244][_0x48db('0xd9')]:_0x356851[_0x48db('0x5d')][_0x113244][_0x48db('0x15')];_0x261b9a[_0x48db('0xad')][_0x113244]=_0x3cf24b?_0x58dbae(_0x3cf24b):{};break;}_0x4e6c5e+=_0xbc862e;}}for(const _0x35cb18 of _0x2ff499){_0x35cb18['model']={};for(const _0x42c626 of _0x35cb18['authors'])_0x270190[_0x48db('0x57')](_0x42c626['id'],_0x42c626);for(const _0x2024b0 of _0x579079){const _0x529522=_0x35cb18[_0x48db('0x5d')][_0x2024b0]?_0x35cb18[_0x48db('0x5d')][_0x2024b0]['insertions']:'[]',_0x9fb50e=_0x35cb18[_0x48db('0x5d')][_0x2024b0]?_0x35cb18[_0x48db('0x5d')][_0x2024b0][_0x48db('0xc3')]:'[]';_0x35cb18[_0x48db('0x62')][_0x2024b0]={'insertions':this[_0x48db('0x1')](_0x529522),'deletions':this['_makeModelFromViewString'](_0x9fb50e)};}}for(const _0x133f8d of _0x579079){let _0x3acf25=null,_0x22ba35=0x0;const _0x3cad3f=new Map(Array[_0x48db('0x6b')](_0x5c8a44[_0x48db('0x62')][_0x133f8d][_0x48db('0xcf')][_0x48db('0x8b')])[_0x48db('0x11')](([_0x5c96ac])=>!_0x5c96ac['startsWith'](_0x48db('0x6'))));let _0x522a36=0x0;for(const _0x56b58a of _0x2ff499){const _0x7cc9c7=this['_makeTape'](_0x56b58a[_0x48db('0x62')][_0x133f8d][_0x48db('0xcf')]);_0x56b58a==_0x5c8a44?(_0x3acf25=_0x7cc9c7,_0x22ba35=_0x3acf25[_0x48db('0xb6')],_0x3acf25[_0x48db('0x61')](_0x2a0c56=>{_0x2a0c56['id']=_0x522a36++;}),this[_0x48db('0x1d')](_0x3acf25)):this['_markInsertions'](_0x3acf25,_0x7cc9c7);const _0x58a67e=_0x3acf25[_0x48db('0x11')](_0x3c1f26=>!_0x3c1f26[_0x48db('0x93')])[_0x48db('0xc4')](_0x76d314=>_0x76d314['id']);let _0x292cc0=0x0;const _0x1787f8=this[_0x48db('0x2c')](_0x56b58a[_0x48db('0x62')][_0x133f8d][_0x48db('0xc3')]);_0x1787f8[_0x48db('0x61')](_0x248945=>{_0x248945['isRemoved']?_0x248945['id']=_0x22ba35++:_0x248945['id']=_0x58a67e[_0x292cc0++];}),this['_processTape'](_0x1787f8),this['_setDistance'](_0x3acf25,'isAdded'),this[_0x48db('0x4a')](_0x1787f8,_0x48db('0xe2')),_0x56b58a==_0x5c8a44&&this[_0x48db('0xa')](_0x3acf25,_0x3cad3f),_0x3acf25=this[_0x48db('0x83')](_0x3acf25,_0x1787f8),this[_0x48db('0x96')](_0x3acf25),this[_0x48db('0x4a')](_0x3acf25,_0x48db('0xe2'));}_0x3acf25=_0x3acf25[_0x48db('0x11')](_0x216f40=>!(_0x216f40[_0x48db('0x93')]&&_0x216f40[_0x48db('0xe2')]));const _0x8c54c1=new Map(_0x165d1d[_0x48db('0x62')][_0x133f8d][_0x48db('0xc3')][_0x48db('0x8b')]),_0x5cc99a=new Set(_0x3cad3f[_0x48db('0x6f')]());for(const _0x16d3b6 of _0x8c54c1[_0x48db('0x6f')]())_0x5cc99a[_0x48db('0xca')](_0x16d3b6);this[_0x48db('0x91')](_0x3acf25,_0x5cc99a),this['_fixObsoleteTags'](_0x3acf25),_0x3acf25=this[_0x48db('0xe9')](_0x3acf25),_0x3acf25=this[_0x48db('0x9e')](_0x3acf25),_0x3acf25=this['_removeUnsupportedChanges'](_0x3acf25);const {root:_0x5f1ca7,changes:_0x2d5c3c}=this[_0x48db('0x46')](_0x3acf25,_0x270190,_0x133f8d);_0x261b9a[_0x48db('0x62')][_0x133f8d]=_0x5f1ca7;const _0x286ffa=_0x2039e8[_0x48db('0xde')](_0x133f8d);if(_0x286ffa){const _0x46cd6b=_0x270190[_0x48db('0xde')](_0x286ffa[_0x48db('0x35')]),_0x411f3e=new _0x265e6d({'author':_0x46cd6b,'type':_0x286ffa[_0x48db('0x2e')]?_0x48db('0xee'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x133f8d});_0x2d5c3c['unshift'](_0x411f3e),_0x261b9a[_0x48db('0xad')][_0x133f8d][_0x48db('0xce')]=_0x411f3e['id'];}_0x261b9a[_0x48db('0xe5')]=_0x261b9a[_0x48db('0xe5')][_0x48db('0x3c')](_0x2d5c3c);}return _0x261b9a;}[_0x48db('0xa')](_0x40495c,_0x4ad722){for(let _0x5307cf=0x0;_0x5307cf<_0x40495c[_0x48db('0xb6')];_0x5307cf++)for(const [_0x5b1e8e,_0x2d8cee]of _0x4ad722)_0x2d8cee[_0x48db('0x120')][_0x48db('0x86')](_0x40495c[_0x5307cf][_0x48db('0xc9')])&&_0x40495c[_0x5307cf][_0x48db('0x69')][_0x48db('0xdf')](_0x5b1e8e),_0x2d8cee[_0x48db('0x5')][_0x48db('0x86')](_0x40495c[_0x5307cf][_0x48db('0x81')])&&_0x40495c[_0x5307cf][_0x48db('0xf')][_0x48db('0xdf')](_0x5b1e8e);}[_0x48db('0x83')](_0x5650dc,_0x31385a){let _0x1c173c=[],_0xcded59=0x0,_0x1a09a8=0x0;for(;_0xcded59<_0x5650dc[_0x48db('0xb6')]||_0x1a09a8<_0x31385a['length'];){const _0x5c0346=_0x5650dc[_0xcded59]||{},_0x337098=_0x31385a[_0x1a09a8]||{};if(_0x5c0346['id']==_0x337098['id'])_0xcded59++,_0x1a09a8++,_0x1c173c[_0x48db('0xdf')](_0x5c0346);else{if(_0x337098['isRemoved']&&_0x5c0346[_0x48db('0x93')]){const {commonTape:_0x55ba36,iEnd:_0x9156d9,jEnd:_0x21a1c3}=this[_0x48db('0xf6')](_0x5650dc,_0xcded59,_0x31385a,_0x1a09a8);_0x1c173c=_0x1c173c[_0x48db('0x3c')](_0x55ba36),_0xcded59=_0x9156d9,_0x1a09a8=_0x21a1c3;}else _0x337098[_0x48db('0xe2')]?(_0x1a09a8++,_0x1c173c[_0x48db('0xdf')](_0x337098)):(_0xcded59++,_0x1c173c[_0x48db('0xdf')](_0x5c0346));}}return _0x1c173c;}[_0x48db('0x91')](_0x8c77fc,_0x345650){const _0x53e444=[];for(let _0x5ac852=0x0;_0x5ac852<_0x8c77fc[_0x48db('0xb6')];_0x5ac852++){for(let _0x436738=0x0;_0x436738<_0x8c77fc[_0x5ac852][_0x48db('0x69')][_0x48db('0xb6')];_0x436738++){const _0x6347da=_0x8c77fc[_0x5ac852][_0x48db('0x69')][_0x436738];if(!_0x345650['has'](_0x6347da))continue;const {group:_0x15ace0,type:_0x4ee840,authorId:_0x372b25}=_0xfd0106(_0x6347da);_0x48db('0x90')!=_0x15ace0||'insertion'!=_0x4ee840&&_0x48db('0x23')!=_0x4ee840||(_0x53e444[_0x48db('0x100')]({'type':_0x4ee840,'name':_0x6347da,'userId':_0x372b25}),_0x8c77fc[_0x5ac852][_0x48db('0x69')]['splice'](_0x436738,0x1),_0x436738--);}_0x3292cb(_0x8c77fc[_0x5ac852]);for(let _0x1cb7fc=0x0;_0x1cb7fc<_0x8c77fc[_0x5ac852][_0x48db('0xf')]['length'];_0x1cb7fc++){const _0x8fd7a5=_0x8c77fc[_0x5ac852]['markersEnd'][_0x1cb7fc];if(!_0x345650[_0x48db('0x4b')](_0x8fd7a5))continue;const {group:_0xac010a,type:_0x16d889}=_0xfd0106(_0x8fd7a5);if(_0x48db('0x90')!=_0xac010a||_0x48db('0xd')!=_0x16d889&&_0x48db('0x23')!=_0x16d889)continue;_0x8c77fc[_0x5ac852][_0x48db('0xf')]['splice'](_0x1cb7fc,0x1),_0x1cb7fc--;const _0x31a0b0=_0x53e444['findIndex'](_0x3ac8e6=>_0x3ac8e6[_0x48db('0x51')]==_0x8fd7a5);_0x31a0b0>-0x1&&_0x53e444['splice'](_0x31a0b0,0x1);}}function _0xfd0106(_0x333a04){const _0x292285=_0x333a04[_0x48db('0x20')](':');return{'group':_0x292285[0x0],'type':_0x292285[0x1],'subType':_0x292285['length']>=0x5?_0x292285[0x2]:null,'id':_0x292285[_0x48db('0xb6')]<0x5?_0x292285[0x2]:_0x292285[0x3],'authorId':_0x292285[_0x48db('0xb6')]<0x5?_0x292285[0x3]:_0x292285[0x4],'markerCount':0x6==_0x292285[_0x48db('0xb6')]?_0x292285[0x5]:null};}function _0x3292cb(_0x17e06b){for(let _0x4df7aa=0x0;_0x4df7aa<_0x53e444[_0x48db('0xb6')];_0x4df7aa++){if(_0x17e06b[_0x48db('0x93')]&&'insertion'==_0x53e444[_0x4df7aa][_0x48db('0x55')])return _0x17e06b[_0x48db('0x14')]=_0x53e444[_0x4df7aa],void delete _0x17e06b[_0x48db('0x93')];if(!_0x17e06b[_0x48db('0x93')]&&!_0x17e06b[_0x48db('0xe2')]&&_0x48db('0x23')==_0x53e444[_0x4df7aa][_0x48db('0x55')])return void(_0x17e06b[_0x48db('0x73')]=_0x53e444[_0x4df7aa]);}}}[_0x48db('0x4a')](_0x1579f1,_0x2ca497){let _0x10ee07=0x0,_0x30ecdd=!0x1;const _0x16c017=new Map();for(const _0x19e83b of _0x1579f1)_0x19e83b[_0x2ca497]?_0x30ecdd&&(_0x10ee07++,_0x30ecdd=!0x1):(_0x10ee07++,_0x30ecdd=!0x0),_0x16c017['set'](_0x19e83b['id'],_0x10ee07);for(let _0x3fecab=0x0;_0x3fecab<_0x1579f1[_0x48db('0xb6')];_0x3fecab++){if(_0x48db('0xe2')==_0x2ca497&&_0x1579f1[_0x3fecab][_0x48db('0x93')]||_0x48db('0x93')==_0x2ca497&&_0x1579f1[_0x3fecab]['isRemoved'])continue;if('text'==_0x1579f1[_0x3fecab]['type']){_0x1579f1[_0x3fecab][_0x48db('0xba')]=0x0;continue;}const _0x4fc8df=_0x16c017[_0x48db('0xde')](_0x1579f1[_0x3fecab]['pairId']),_0x2bfe1d=_0x16c017[_0x48db('0xde')](_0x1579f1[_0x3fecab]['id']);_0x1579f1[_0x3fecab][_0x48db('0xba')]=_0x4fc8df-_0x2bfe1d;}}[_0x48db('0xed')](_0x17923c,_0x21d7db,_0x487e31=!0x1){const _0xd5dfe3=[];let _0x57b9d0=this[_0x48db('0xa0')][_0x48db('0x29')](_0x17923c),_0x47c96b=this[_0x48db('0xa0')][_0x48db('0x29')](_0x21d7db);for(-0x1==_0x47c96b&&(_0x47c96b=this[_0x48db('0xa0')]['_revisions'][_0x48db('0xb6')],_0x487e31=!0x1);_0x57b9d0<_0x47c96b;)_0xd5dfe3['push'](this[_0x48db('0xa0')][_0x48db('0xd3')](_0x57b9d0)),_0x57b9d0++;return _0x487e31&&_0xd5dfe3['push'](this[_0x48db('0xa0')][_0x48db('0xd3')](_0x57b9d0)),_0xd5dfe3;}[_0x48db('0xf6')](_0x4a409f,_0x5c79c8,_0xec0345,_0x563e2a){const _0x130219=this['editor'][_0x48db('0x62')][_0x48db('0xf2')];let _0x4b5cdd=_0x5c79c8;for(;_0x4a409f[_0x4b5cdd]&&_0x4a409f[_0x4b5cdd]['isAdded'];)_0x4b5cdd++;let _0x21b211=_0x563e2a;for(;_0xec0345[_0x21b211]&&_0xec0345[_0x21b211][_0x48db('0xe2')];)_0x21b211++;_0x3e1392(_0x4a409f,_0x5c79c8,_0x4b5cdd),_0x3e1392(_0xec0345,_0x563e2a,_0x21b211);const _0x5dcfa4=_0xec0345[_0x48db('0x3b')](_0x563e2a,_0x21b211)[_0x48db('0x3c')](_0x4a409f[_0x48db('0x3b')](_0x5c79c8,_0x4b5cdd));return _0x5dcfa4['sort']((_0x45bbe7,_0x4fcbeb)=>_0x45bbe7[_0x48db('0xfd')]!=_0x4fcbeb['side']?_0x45bbe7[_0x48db('0xfd')]-_0x4fcbeb[_0x48db('0xfd')]:_0x45bbe7[_0x48db('0x7c')]!=_0x4fcbeb[_0x48db('0x7c')]?_0x45bbe7['level']-_0x4fcbeb[_0x48db('0x7c')]:_0x45bbe7[_0x48db('0xba')]!=_0x4fcbeb[_0x48db('0xba')]?_0x4fcbeb[_0x48db('0xba')]-_0x45bbe7[_0x48db('0xba')]:!!_0x45bbe7['isAdded']!=!!_0x4fcbeb['isAdded']?-0x1==_0x45bbe7['side']||0x0==_0x45bbe7[_0x48db('0xfd')]?_0x45bbe7[_0x48db('0x93')]?-0x1:0x1:_0x45bbe7[_0x48db('0x93')]?0x1:-0x1:_0x45bbe7[_0x48db('0x24')]-_0x4fcbeb[_0x48db('0x24')]),{'commonTape':_0x5dcfa4,'iEnd':_0x4b5cdd,'jEnd':_0x21b211};function _0x3e1392(_0x35ba35,_0xb9d0f,_0x36ce61){let _0xcf42b2=-0x1,_0x37db82=Number[_0x48db('0xb8')],_0x47973e=!0x0;for(let _0x2e2ac3=_0xb9d0f;_0x2e2ac3<_0x36ce61;_0x2e2ac3++)if(_0x130219[_0x48db('0xbc')](_0x35ba35[_0x2e2ac3][_0x48db('0xc8')])||(_0x47973e=!0x1),_0x35ba35[_0x2e2ac3][_0x48db('0xc8')][_0x48db('0x94')]<_0xb9d0f&&(_0xcf42b2=_0x2e2ac3),_0x35ba35[_0x2e2ac3][_0x48db('0xc8')][_0x48db('0x107')]>=_0x36ce61){_0x37db82=_0x2e2ac3;break;}_0x47973e&&(_0xcf42b2=_0x36ce61-0x1);for(let _0x2a7d2=_0xb9d0f;_0x2a7d2<_0x36ce61;_0x2a7d2++)_0x35ba35[_0x2a7d2][_0x48db('0xfd')]=_0x2a7d2<=_0xcf42b2?-0x1:_0x2a7d2<_0x37db82?0x0:0x1,_0x35ba35[_0x2a7d2][_0x48db('0x24')]=_0x2a7d2;let _0x466c6f=0x0;for(let _0x4e8e8e=_0xb9d0f;_0x4e8e8e<=_0xcf42b2;_0x4e8e8e++)0x0==_0x35ba35[_0x4e8e8e][_0x48db('0xba')]?_0x35ba35[_0x4e8e8e]['level']=_0x466c6f:(_0x466c6f++,_0x35ba35[_0x4e8e8e][_0x48db('0x7c')]=_0x466c6f,_0x466c6f++);for(let _0x33f822=_0xb9d0f;_0x33f822<_0x36ce61;_0x33f822++)0x0==_0x35ba35[_0x33f822][_0x48db('0xfd')]&&(_0x35ba35[_0x33f822][_0x48db('0x7c')]=_0x466c6f);_0x466c6f=0x0;for(let _0x2a70a1=_0x36ce61-0x1;_0x2a70a1>=_0x37db82;_0x2a70a1--)0x0==_0x35ba35[_0x2a70a1][_0x48db('0xba')]?_0x35ba35[_0x2a70a1][_0x48db('0x7c')]=_0x466c6f:(_0x466c6f--,_0x35ba35[_0x2a70a1]['level']=_0x466c6f,_0x466c6f--);}}[_0x48db('0x7')](_0x13dffd){const _0x2d9296=new Map(),_0x3ec712=this[_0x48db('0x119')][_0x48db('0x62')]['schema'];for(let _0x52199a=0x1;_0x52199a<_0x13dffd[_0x48db('0xb6')];_0x52199a++){let _0x42dfeb,_0x5039fb,_0x290c74;const _0xdb50b7=_0x13dffd[_0x52199a],_0x53b2a5=_0x13dffd[_0x52199a-0x1];if(_0x48db('0x8d')==_0xdb50b7[_0x48db('0x55')])continue;if(_0xdb50b7[_0x48db('0x55')]!=_0x53b2a5[_0x48db('0x55')])continue;if(!_0x3ec712[_0x48db('0x13')](_0x53b2a5[_0x48db('0xc8')])||_0x3ec712['isLimit'](_0x53b2a5[_0x48db('0xc8')]))continue;if(!_0x3ec712[_0x48db('0x13')](_0xdb50b7[_0x48db('0xc8')])||_0x3ec712[_0x48db('0x115')](_0xdb50b7['item']))continue;if((_0x13dffd[_0x52199a][_0x48db('0x93')]||_0x13dffd[_0x52199a][_0x48db('0x14')])&&_0x13dffd[_0x52199a-0x1][_0x48db('0xe2')])_0x42dfeb=_0x13dffd[_0x52199a],_0x5039fb=_0x13dffd[_0x52199a-0x1],_0x290c74=_0x52199a-0x1;else{if(!_0x13dffd[_0x52199a][_0x48db('0xe2')]||!_0x13dffd[_0x52199a-0x1][_0x48db('0x93')]&&!_0x13dffd[_0x52199a-0x1]['isAddSuggestion'])continue;_0x42dfeb=_0x13dffd[_0x52199a-0x1],_0x5039fb=_0x13dffd[_0x52199a],_0x290c74=_0x52199a;}const _0x507316=_0x42dfeb[_0x48db('0x7c')]==_0x5039fb['level'],_0x3ebc80=Math[_0x48db('0x10f')](_0x42dfeb['level'])<Math[_0x48db('0x10f')](_0x5039fb['level'])&&0x0==_0x5039fb[_0x48db('0xba')];(_0x507316||_0x3ebc80)&&(_0x2d9296[_0x48db('0x57')](_0x5039fb['id'],_0x42dfeb['id']),_0x13dffd['splice'](_0x290c74,0x1),_0x52199a--,_0x42dfeb[_0x48db('0x93')]=!0x1);}for(let _0x829d9f=0x0;_0x829d9f<_0x13dffd[_0x48db('0xb6')];_0x829d9f++)_0x2d9296['has'](_0x13dffd[_0x829d9f][_0x48db('0x84')])&&(_0x13dffd[_0x829d9f][_0x48db('0x84')]=_0x2d9296[_0x48db('0xde')](_0x13dffd[_0x829d9f][_0x48db('0x84')]));}[_0x48db('0xe9')](_0x436a4e){const _0x1a7062=new Set(_0x436a4e['map'](_0x402090=>_0x402090['id']));for(let _0x3124c6=0x0;_0x3124c6<_0x436a4e[_0x48db('0xb6')];_0x3124c6++)_0x1a7062['has'](_0x436a4e[_0x3124c6][_0x48db('0x84')])||0x0==_0x436a4e[_0x3124c6]['distance']||(_0x436a4e[_0x3124c6][_0x48db('0x59')]=!0x0);return _0x436a4e[_0x48db('0x11')](_0xb0245a=>!_0xb0245a[_0x48db('0x59')]);}[_0x48db('0x9e')](_0x36f8f3){const _0x5e5da7=new Set();for(let _0x1c5566=0x0;_0x1c5566<_0x36f8f3['length'];_0x1c5566++){if(_0x5e5da7[_0x48db('0x4b')](_0x36f8f3[_0x1c5566]['id'])&&_0x36f8f3[_0x1c5566][_0x48db('0xe2')]&&(_0x36f8f3[_0x1c5566][_0x48db('0x59')]=!0x0),_0x36f8f3[_0x1c5566][_0x48db('0x59')])continue;if(0x0==_0x36f8f3[_0x1c5566][_0x48db('0xba')])continue;if('elementStart'!=_0x36f8f3[_0x1c5566][_0x48db('0x55')])continue;if(null==_0x36f8f3[_0x1c5566]['pairId'])continue;let _0x5c1aa6=_0x1c5566+0x1,_0x42bedb=0x0;for(;_0x36f8f3[_0x5c1aa6]['id']!=_0x36f8f3[_0x1c5566][_0x48db('0x84')];)_0x48db('0xb3')==_0x36f8f3[_0x5c1aa6]['type']?_0x42bedb++:_0x48db('0x30')==_0x36f8f3[_0x5c1aa6][_0x48db('0x55')]&&_0x42bedb--,_0x5c1aa6++;if(0x0!=_0x42bedb){if(_0x36f8f3[_0x1c5566][_0x48db('0xe2')])_0x36f8f3[_0x1c5566]['isIncorrect']=!0x0;else for(;_0x5c1aa6!=_0x1c5566;)_0x36f8f3[_0x5c1aa6][_0x48db('0xe2')]&&0x0!=_0x36f8f3[_0x5c1aa6][_0x48db('0xba')]&&(_0x36f8f3[_0x5c1aa6][_0x48db('0x59')]=!0x0,_0x5e5da7[_0x48db('0xee')](_0x36f8f3[_0x5c1aa6][_0x48db('0x84')])),_0x5c1aa6--;}}return _0x36f8f3['filter'](_0x130773=>!_0x130773[_0x48db('0x59')]);}[_0x48db('0x3f')](_0x21eec7){const _0x4a0994=this['editor'][_0x48db('0x62')][_0x48db('0xf2')];for(let _0x5abafc=0x0;_0x5abafc<_0x21eec7['length'];_0x5abafc++){if(!(_0x21eec7[_0x5abafc][_0x48db('0x93')]||_0x21eec7[_0x5abafc][_0x48db('0x14')]||_0x21eec7[_0x5abafc][_0x48db('0xe2')]||_0x21eec7[_0x5abafc][_0x48db('0x73')]))continue;if(0x0==_0x21eec7[_0x5abafc][_0x48db('0xba')])continue;const _0x45cced=_0x21eec7[_0x5abafc]['item'];_0x4a0994[_0x48db('0x13')](_0x45cced)||_0x4a0994[_0x48db('0x115')](_0x45cced)||(_0x21eec7[_0x5abafc][_0x48db('0x93')]&&delete _0x21eec7[_0x5abafc]['isAdded'],_0x21eec7[_0x5abafc][_0x48db('0x14')]&&delete _0x21eec7[_0x5abafc][_0x48db('0x14')],_0x21eec7[_0x5abafc][_0x48db('0x73')]&&delete _0x21eec7[_0x5abafc][_0x48db('0x73')],_0x21eec7[_0x5abafc][_0x48db('0xe2')]&&(_0x21eec7[_0x5abafc]['isIncorrect']=!0x0));}return _0x21eec7[_0x48db('0x11')](_0x6d02e4=>!_0x6d02e4['isIncorrect']);}[_0x48db('0x46')](_0x4bff99,_0xf1a30c,_0x906c72){const _0x7f03be=new _0x489477(),_0x28aad6=[],_0xf66174=new Map(),_0x1f367f=this[_0x48db('0x119')][_0x48db('0x62')],_0x285a6f=_0x1f367f['schema'],_0x4b67dc=[_0x7f03be],_0xeb69a8={},_0x106376={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1d0b12=null;const _0x5b0b07=[0x0];for(let _0x3938eb=0x0;_0x3938eb<_0x4bff99[_0x48db('0xb6')];_0x3938eb++){let _0x34fd33,_0x1810c0;if('elementStart'===_0x4bff99[_0x3938eb][_0x48db('0x55')]){_0x34fd33=_0x1f367f['createPositionFromPath'](_0x7f03be,_0x5b0b07);const _0x480635=new _0x3294a3(_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0x51')],_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0x8c')]());_0x4b67dc[0x0][_0x48db('0x9b')](_0x480635),_0x5b0b07[_0x48db('0xdf')](0x0),_0x4b67dc[_0x48db('0x100')](_0x480635),_0x1810c0=_0x1f367f['createPositionFromPath'](_0x7f03be,_0x5b0b07),_0x1d0b12=null;}else{if(_0x48db('0x30')===_0x4bff99[_0x3938eb][_0x48db('0x55')])_0x4b67dc['shift'](),_0x34fd33=_0x1f367f[_0x48db('0x111')](_0x7f03be,_0x5b0b07),_0x5b0b07[_0x48db('0x43')](),_0x5b0b07[_0x5b0b07['length']-0x1]++,_0x1810c0=_0x1f367f['createPositionFromPath'](_0x7f03be,_0x5b0b07),_0x1d0b12=null;else{if(_0x34fd33=_0x1f367f[_0x48db('0x111')](_0x7f03be,_0x5b0b07),_0x1d0b12&&_0x1acc4a(_0x1d0b12,_0x4bff99[_0x3938eb][_0x48db('0xc8')]))_0x1d0b12[_0x48db('0x3a')]+=_0x4bff99[_0x3938eb][_0x48db('0xc8')]['data'];else{const _0x287246=new _0xb4ccc7(_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0xda')],_0x4bff99[_0x3938eb][_0x48db('0xc8')]['getAttributes']());_0x4b67dc[0x0][_0x48db('0x9b')](_0x287246),_0x1d0b12=_0x287246;}_0x5b0b07[_0x5b0b07[_0x48db('0xb6')]-0x1]+=_0x4bff99[_0x3938eb][_0x48db('0xc8')][_0x48db('0xcc')],_0x1810c0=_0x1f367f[_0x48db('0x111')](_0x7f03be,_0x5b0b07);}}for(const _0x5550bc of _0x4bff99[_0x3938eb][_0x48db('0x69')])_0xf66174[_0x48db('0x57')](_0x5550bc,{'start':_0x34fd33,'end':null});_0x2757b2('isRemoveSuggestion',_0x3938eb,_0x34fd33,_0x1810c0),_0x2757b2(_0x48db('0x14'),_0x3938eb,_0x34fd33,_0x1810c0),_0x2757b2(_0x48db('0xe2'),_0x3938eb,_0x34fd33,_0x1810c0),_0x2757b2('isAdded',_0x3938eb,_0x34fd33,_0x1810c0);for(const _0x158342 of _0x4bff99[_0x3938eb][_0x48db('0xf')]){_0xf66174[_0x48db('0xde')](_0x158342)[_0x48db('0x5')]=_0x1810c0;}}for(const [_0x4a5042,_0x142a7]of _0xf66174){const _0x3cb1ba=this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x54')](_0x142a7['start'],_0x142a7['end']);_0x7f03be[_0x48db('0x8b')][_0x48db('0x57')](_0x4a5042,_0x3cb1ba);}return _0x28aad6['sort']((_0x5b823e,_0x7f6eac)=>{const _0x48c7ba=_0x7f03be[_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x5b823e['id']),_0xd1ca89=_0x7f03be[_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x7f6eac['id']);return _0x48c7ba[_0x48db('0x120')][_0x48db('0x3')](_0xd1ca89[_0x48db('0x120')])?-0x1:_0x48c7ba['start'][_0x48db('0xc2')](_0xd1ca89[_0x48db('0x120')])?0x1:_0x48c7ba[_0x48db('0x5')]['isBefore'](_0xd1ca89[_0x48db('0x5')])?-0x1:_0x48c7ba[_0x48db('0x5')][_0x48db('0xc2')](_0xd1ca89[_0x48db('0x5')])?0x1:_0x48db('0xee')===_0x5b823e[_0x48db('0x55')]?-0x1:0x1;}),{'root':_0x7f03be,'changes':_0x28aad6};function _0x2757b2(_0x1efd10,_0x425b9f,_0x143ed5,_0x52608a){const _0xcf6bf2=!!_0x4bff99[_0x425b9f][_0x1efd10],_0x16e8a2=_0xcf6bf2?_0x4bff99[_0x425b9f][_0x1efd10][_0x48db('0x35')]:null,_0x58a170=_0x425b9f===_0x4bff99[_0x48db('0xb6')]-0x1,_0x1323b3=_0x106376[_0x1efd10][0x0],_0x36a4f7=_0x285a6f['isObject'](_0x4bff99[_0x425b9f][_0x48db('0xc8')]);!_0xeb69a8[_0x1efd10]&&_0xcf6bf2?_0xeb69a8[_0x1efd10]={'start':_0x143ed5,'tapeItem':_0x4bff99[_0x425b9f],'userId':_0x16e8a2,'type':_0x1efd10}:_0xeb69a8[_0x1efd10]&&!_0xcf6bf2?(_0xeb69a8[_0x1efd10]['end']=_0x143ed5,_0x4bcab8(_0xeb69a8[_0x1efd10]),_0xeb69a8[_0x1efd10]=null):_0xeb69a8[_0x1efd10]&&_0xcf6bf2&&_0xeb69a8[_0x1efd10][_0x48db('0x35')]!==_0x16e8a2&&(_0xeb69a8[_0x1efd10][_0x48db('0x5')]=_0x143ed5,_0x1323b3&&_0x1323b3[_0x48db('0x35')]===_0xeb69a8[_0x1efd10]['userId']||_0x4bcab8(_0xeb69a8[_0x1efd10]),_0xeb69a8[_0x1efd10]={'start':_0x143ed5,'tapeItem':_0x4bff99[_0x425b9f],'userId':_0x16e8a2,'type':_0x1efd10}),_0xeb69a8[_0x1efd10]&&_0x36a4f7&&('elementStart'!==_0x4bff99[_0x425b9f][_0x48db('0x55')]||_0x1323b3&&_0x1323b3[_0x48db('0x35')]===_0x16e8a2||_0x106376[_0x1efd10][_0x48db('0x100')]({'userId':_0x16e8a2,'object':_0x4bff99[_0x425b9f][_0x48db('0xc8')],'change':_0xeb69a8[_0x1efd10]}),'elementEnd'===_0x4bff99[_0x425b9f][_0x48db('0x55')]&&_0x1323b3&&_0x1323b3[_0x48db('0x8a')]===_0x4bff99[_0x425b9f][_0x48db('0xc8')]&&(_0x106376[_0x1efd10][_0x48db('0xbd')](),_0xeb69a8[_0x1efd10]=_0x1323b3[_0x48db('0x12')])),_0xeb69a8[_0x1efd10]&&_0x58a170&&(_0xeb69a8[_0x1efd10]['end']=_0x52608a,_0x4bcab8(_0xeb69a8[_0x1efd10]),_0xeb69a8[_0x1efd10]=null);}function _0x4bcab8({start:_0x55a0f6,end:_0x2a1542,tapeItem:_0x2025d7,userId:_0x5c08ef,type:_0x2e7ff8}){const _0xd6905f=_0x2025d7[_0x48db('0xc8')],_0x3b4e81=_0x1f367f[_0x48db('0xf2')]['isBlock'](_0xd6905f)&&!_0x1f367f[_0x48db('0xf2')][_0x48db('0x115')](_0xd6905f),_0x4918b6=_0x55a0f6[_0x48db('0x0')]==_0x2a1542[_0x48db('0x11e')]&&_0x2a1542['isAtStart'];if(_0x3b4e81&&_0x4918b6)return;const _0x329ace=_0x1f367f[_0x48db('0x54')](_0x55a0f6,_0x2a1542),_0x1555b7=_0xf1a30c['get'](_0x5c08ef),_0x17de43=new _0x265e6d({'author':_0x1555b7,'type':'isAdded'==_0x2e7ff8||_0x48db('0x14')==_0x2e7ff8?_0x48db('0xee'):_0x48db('0xbb'),'data':{'isSuggestion':_0x48db('0x14')==_0x2e7ff8||'isRemoveSuggestion'==_0x2e7ff8},'createdAt':new Date(),'rootName':_0x906c72});_0x28aad6[_0x48db('0xdf')](_0x17de43),_0x7f03be[_0x48db('0x8b')][_0x48db('0x57')](_0x48db('0x6')+_0x17de43['id'],_0x329ace);}function _0x1acc4a(_0x428da9,_0x4db5a0){const _0x32f133=_0x428da9[_0x48db('0x8c')](),_0x55b6f3=_0x4db5a0[_0x48db('0x8c')]();for(const _0x4a0922 of _0x32f133){if(_0x4a0922[0x1]!==_0x4db5a0[_0x48db('0xfa')](_0x4a0922[0x0]))return!0x1;_0x55b6f3[_0x48db('0xdd')]();}return _0x55b6f3['next']()[_0x48db('0xbe')];}}[_0x48db('0xd1')](){this[_0x48db('0x119')][_0x48db('0x8f')]['for'](_0x48db('0xe3'))[_0x48db('0x1e')]({'view':_0x48db('0x7e')}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xea'))[_0x48db('0x118')]({'model':_0x48db('0x7e'),'view':_0x3b05cb=>{const _0x374482=_0x3b05cb[_0x48db('0xa7')][_0x48db('0x20')](':')[0x1],_0x428d9c=this[_0x48db('0x70')](_0x374482);if(!_0x428d9c)return null;const _0x32245e=_0x48db('0xee')==_0x428d9c[_0x48db('0x55')]?'insertion':_0x48db('0x23'),_0x1ecc8a=[_0x48db('0xac'),_0x48db('0xcb')+_0x32245e];return _0x428d9c[_0x48db('0xda')][_0x48db('0x21')]&&_0x1ecc8a[_0x48db('0xdf')](_0x48db('0xcb')+_0x32245e+_0x48db('0x1c')),this[_0x48db('0x101')]==_0x428d9c&&_0x1ecc8a[_0x48db('0xdf')](_0x48db('0xdc')),{'classes':_0x1ecc8a,'attributes':{'data-change-id':_0x374482}};}}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xe3'))[_0x48db('0xee')](_0x39980b=>{_0x39980b['on'](_0x48db('0xe1'),(_0x54fd00,_0x48a126,_0x5b2583)=>{const _0xf33267=_0x48a126[_0x48db('0x63')][_0x48db('0x8e')](0x0);if(!_0xf33267||!_0xf33267['is'](_0x48db('0x82'),_0x48db('0x2b')))return;if(!_0x5b2583['consumable']['consume'](_0xf33267,{'attributes':[_0x48db('0x26'),_0x48db('0x19')]}))return;const _0x2a31ee=_0x48a126['modelRange'][_0x48db('0x120')]['nodeAfter'];_0x5b2583['writer']['setAttribute'](_0x48db('0x26'),_0xf33267[_0x48db('0xfa')](_0x48db('0x26')),_0x2a31ee),_0x5b2583['writer']['setAttribute'](_0x48db('0x19'),_0xf33267['getAttribute'](_0x48db('0x19')),_0x2a31ee);},{'priority':'low'});}),this['editor'][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xe3'))[_0x48db('0xee')](_0x16bae2=>{_0x16bae2['on'](_0x48db('0x82'),(_0x4b63e2,_0x2d0c63,_0x13cd5a)=>{if(!_0x13cd5a[_0x48db('0xd6')]['consume'](_0x2d0c63[_0x48db('0x63')],{'attributes':[_0x48db('0x26'),_0x48db('0x19')]}))return;if(_0x2d0c63[_0x48db('0xa2')]['isCollapsed'])return;const _0x19f2b5=_0x2d0c63[_0x48db('0xa2')]['start'][_0x48db('0x0')];_0x19f2b5['hasAttribute'](_0x48db('0x26'))||_0x19f2b5[_0x48db('0x104')](_0x48db('0xef'))||(_0x13cd5a[_0x48db('0x103')][_0x48db('0x76')](_0x48db('0x26'),_0x2d0c63[_0x48db('0x63')][_0x48db('0xfa')](_0x48db('0x26')),_0x19f2b5),_0x13cd5a['writer']['setAttribute']('vid_end',_0x2d0c63[_0x48db('0x63')][_0x48db('0xfa')](_0x48db('0x19')),_0x19f2b5));},{'priority':_0x48db('0xb2')});}),this['editor'][_0x48db('0x8f')]['for'](_0x48db('0xe3'))[_0x48db('0x1a')]({'view':{'name':_0x48db('0x88'),'attributes':{'vid':!0x0}},'model':{'key':_0x48db('0xef'),'value':_0x36b216=>_0x36b216[_0x48db('0xfa')](_0x48db('0xef'))}}),this['editor'][_0x48db('0x62')][_0x48db('0xf2')]['on'](_0x48db('0x4'),(_0x5662db,[,_0x466959])=>{[_0x48db('0x26'),'vid_end',_0x48db('0xef')][_0x48db('0xe')](_0x466959)&&(_0x5662db['return']=!0x0,_0x5662db[_0x48db('0x106')]());},{'priority':_0x48db('0xb9')}),this['editor']['conversion'][_0x48db('0x6d')](_0x48db('0xe4'))[_0x48db('0xee')](_0x1b6a83=>{_0x1b6a83['on'](_0x48db('0x22'),(_0x2efa5a,_0x106b1b,_0x52082e)=>{if('\x20'!=_0x106b1b[_0x48db('0xc8')]['data']||_0x106b1b['item'][_0x48db('0x11e')]['maxOffset']>0x1)return;if(!_0x52082e['consumable'][_0x48db('0x97')](_0x106b1b[_0x48db('0xc8')],_0x2efa5a['name']))return;const _0x34dbb1=_0x52082e[_0x48db('0x103')],_0x53758f=_0x52082e[_0x48db('0xb0')][_0x48db('0xd7')](_0x106b1b['range']);_0x34dbb1[_0x48db('0x7b')](_0x53758f,_0x34dbb1['createAttributeElement'](_0x48db('0x88')));});}),this[_0x48db('0x119')][_0x48db('0x8f')]['for']('dataDowncast')[_0x48db('0x1b')]({'model':'revision'}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on']('addMarker:revision',function(_0x4ee3d7){const _0x442a6f=_0x4ee3d7[_0x48db('0x42')][_0x48db('0xde')]('RevisionViewer');return(_0x401b9a,_0x330df3,_0x3f9390)=>{const _0x3a280b=_0x330df3['markerName'][_0x48db('0x20')](':')[0x1],_0x238718=_0x442a6f[_0x48db('0x70')](_0x3a280b);if(!_0x238718)return null;const _0x27e999=_0x48db('0xee')==_0x238718[_0x48db('0x55')]?_0x48db('0x20'):_0x48db('0x89');if(!_0x3f9390['consumable'][_0x48db('0xff')](_0x330df3[_0x48db('0x58')],_0x401b9a['name']))return;const _0x524865=_0x330df3[_0x48db('0x58')][_0x48db('0x45')](),_0x1b0186=_0x330df3[_0x48db('0x58')][_0x48db('0x120')],_0x6a7698=_0x4ee3d7[_0x48db('0x62')][_0x48db('0xf2')];let _0x2deecb=null,_0x51cec0=null,_0x19a2f5=!0x1,_0x4265ee=!0x1;for(const _0xf04816 of _0x524865){const _0x3606ee=_0xf04816[_0x48db('0xc8')];_0x19a2f5=_0x19a2f5||_0x6a7698[_0x48db('0x11f')](_0x3606ee);const _0x4cbba4=_0x3f9390[_0x48db('0xb0')][_0x48db('0x6c')](_0x3606ee);if(_0x4cbba4&&_0x4cbba4[_0x48db('0x80')](_0x48db('0xa3')))return;_0x48db('0x30')==_0xf04816[_0x48db('0x55')]&&(_0x6a7698[_0x48db('0x13')](_0x3606ee)&&!_0x6a7698[_0x48db('0x115')](_0x3606ee)&&(_0x3606ee['nextSibling']||_0x1b0186[_0x48db('0x5b')]?_0x2deecb&&_0x2deecb[_0x48db('0x11e')]==_0x3606ee||(_0x2deecb=_0x3606ee,_0x51a884(_0xf04816[_0x48db('0xc9')]),_0x4265ee=!0x0):_0x51cec0=_0x51cec0||_0xf04816[_0x48db('0xc9')]));}function _0x51a884(_0x4af2e9){const _0x175359=_0x3f9390[_0x48db('0x103')][_0x48db('0xa1')]('span',{'class':_0x48db('0xcb')+_0x27e999}),_0x42549b=_0x3f9390['mapper'][_0x48db('0xb')](_0x4af2e9);_0x238718[_0x48db('0xda')][_0x48db('0x21')]&&_0x3f9390[_0x48db('0x103')]['addClass']('ck-suggestion-marker-'+_0x27e999+'-new',_0x175359),_0x442a6f[_0x48db('0x101')]==_0x238718&&_0x3f9390[_0x48db('0x103')]['addClass']('ck-suggestion-marker--active',_0x175359),_0x3f9390[_0x48db('0x103')][_0x48db('0xd5')](_0x42549b,_0x175359),_0x3f9390[_0x48db('0xb0')]['bindElementToMarker'](_0x175359,_0x330df3[_0x48db('0xa7')]);}_0x19a2f5||_0x4265ee||!_0x51cec0||_0x51a884(_0x51cec0);};}(this[_0x48db('0x119')]),{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x8')]['downcastDispatcher']['on'](_0x48db('0xe8'),(_0x17f4c6,_0x44f43c,_0x5ef6a5)=>{const _0x4c326c=_0x5ef6a5['mapper']['markerNameToElements'](_0x44f43c['markerName']);if(_0x4c326c)for(const _0x366768 of _0x4c326c)(_0x366768['hasClass'](_0x48db('0x4e'))||_0x366768[_0x48db('0x113')]('ck-suggestion-marker-merge'))&&(_0x5ef6a5['mapper'][_0x48db('0xb1')](_0x366768,_0x44f43c['markerName']),_0x5ef6a5[_0x48db('0x103')][_0x48db('0xbb')](_0x366768));},{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on'](_0x48db('0xf7'),(_0x50c079,_0x1a4adf,_0x3ad504)=>{const _0x1c9fda=_0x1a4adf[_0x48db('0xa7')]['split'](':')[0x1],_0x570530=this[_0x48db('0x70')](_0x1c9fda);if(!_0x570530)return null;const _0x59451c=_0x48db('0xee')==_0x570530[_0x48db('0x55')]?_0x48db('0x20'):_0x48db('0x89');if(_0x3ad504['consumable'][_0x48db('0xff')](_0x1a4adf['markerRange'],_0x50c079[_0x48db('0x51')]))for(const _0x2795f7 of _0x1a4adf[_0x48db('0x58')][_0x48db('0xb4')]()){if(!_0x2795f7['is'](_0x48db('0x82'),_0x48db('0x4d')))continue;const _0x173b0a=_0x3ad504[_0x48db('0x103')][_0x48db('0xa1')](_0x48db('0x88'),{'class':_0x48db('0xcb')+_0x59451c}),_0x4214ce=_0x3ad504[_0x48db('0xb0')][_0x48db('0xb')](this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x11c')](_0x2795f7));_0x570530[_0x48db('0xda')][_0x48db('0x21')]&&_0x3ad504[_0x48db('0x103')][_0x48db('0x68')](_0x48db('0xcb')+_0x59451c+_0x48db('0x1c'),_0x173b0a),this[_0x48db('0x101')]==_0x570530&&_0x3ad504[_0x48db('0x103')]['addClass'](_0x48db('0xdc'),_0x173b0a),_0x3ad504[_0x48db('0x103')]['insert'](_0x4214ce,_0x173b0a),_0x3ad504['mapper'][_0x48db('0x5e')](_0x173b0a,_0x1a4adf[_0x48db('0xa7')]);}},{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x28')]['on'](_0x48db('0x12'),()=>{this['editor']['editing'][_0x48db('0x5c')][_0x48db('0x12')](_0x361236=>{for(const _0x250629 of this[_0x48db('0x119')]['model'][_0x48db('0x28')][_0x48db('0xbf')]()){const _0x372526=this['editor'][_0x48db('0x62')]['document'][_0x48db('0xa9')](_0x250629),_0x3e17ae=this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x5c')][_0x48db('0x28')]['getRoot'](_0x250629);if(_0x3e17ae){const _0x1c410e=_0x372526[_0x48db('0xfa')](_0x48db('0xce'));if(_0x361236[_0x48db('0x95')]('data-change-id',_0x3e17ae),_0x361236[_0x48db('0x48')](_0x48db('0x92'),_0x3e17ae),_0x361236[_0x48db('0x48')](_0x48db('0xc5'),_0x3e17ae),_0x361236[_0x48db('0x48')](_0x48db('0x4f'),_0x3e17ae),_0x1c410e){const _0x50b944=this[_0x48db('0x70')](_0x1c410e);if(!_0x50b944)return null;_0x361236[_0x48db('0x76')](_0x48db('0xd0'),_0x1c410e,_0x3e17ae),_0x361236[_0x48db('0x68')](_0x48db('0x112')+_0x50b944[_0x48db('0x55')],_0x3e17ae),this[_0x48db('0x101')]==_0x50b944&&_0x361236[_0x48db('0x68')](_0x48db('0x4f'),_0x3e17ae);}}}});}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')](_0x48db('0xe3'))['dataToMarker']({'view':'comment','model':_0x3e19b2=>'revision-comment:'+_0x3e19b2,'converterPriority':_0x48db('0xb9')}),this[_0x48db('0x119')]['conversion'][_0x48db('0x6d')](_0x48db('0xe3'))['dataToMarker']({'view':_0x48db('0x78'),'model':_0x2c34ef=>_0x48db('0xd2')+_0x2c34ef,'converterPriority':'highest'}),this[_0x48db('0x119')][_0x48db('0x8f')][_0x48db('0x6d')]('dataDowncast')[_0x48db('0x1b')]({'model':_0x48db('0x90'),'view':_0x4ee370=>({'name':_0x48db('0xfe')+_0x4ee370,'group':_0x48db('0x90')}),'converterPriority':'highest'}),this[_0x48db('0x119')][_0x48db('0x8f')]['for'](_0x48db('0xea'))[_0x48db('0x118')]({'model':'revision-suggestion','view':_0x491f4b=>{const _0x4f91d7=_0x491f4b[_0x48db('0xa7')]['split'](':')[0x1];return _0x48db('0xd')!=_0x4f91d7&&_0x48db('0x23')!=_0x4f91d7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4f91d7]};}}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on'](_0x48db('0x3d'),et(this['editor'],_0x48db('0x89')),{'priority':_0x48db('0x27')}),this[_0x48db('0x119')][_0x48db('0x8')][_0x48db('0x10a')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x48db('0x119')],_0x48db('0x20')),{'priority':_0x48db('0x27')}),this['editor'][_0x48db('0x8')]['downcastDispatcher']['on'](_0x48db('0x17'),(_0x552ff0,_0x1bd163,_0x3133ec)=>{const _0x42a6c9=_0x3133ec[_0x48db('0xb0')][_0x48db('0xf5')](_0x1bd163[_0x48db('0xa7')]);if(_0x42a6c9)for(const _0x8c2b3c of _0x42a6c9)_0x8c2b3c['is'](_0x48db('0xf1'))&&(_0x3133ec[_0x48db('0xb0')][_0x48db('0xb1')](_0x8c2b3c,_0x1bd163[_0x48db('0xa7')]),_0x3133ec[_0x48db('0x103')][_0x48db('0xbb')](_0x8c2b3c));},{'priority':_0x48db('0x27')});}[_0x48db('0x70')](_0x36cf7f){return this[_0x48db('0x87')][_0x48db('0xde')](_0x36cf7f);}[_0x48db('0x50')](_0x18f145){return this[_0x48db('0x75')]&&this[_0x48db('0x75')][_0x48db('0x6e')](),this[_0x48db('0x75')]=new _0x138681(this[_0x48db('0x119')][_0x48db('0x2a')],_0x18f145),this[_0x48db('0x75')];}[_0x48db('0xc0')](){this[_0x48db('0x119')]['model'][_0x48db('0x28')][_0x48db('0xf9')][_0x48db('0x4c')](_0x48db('0x7e')),this['on'](_0x48db('0x11a'),(_0x40769e,_0x40133a,_0x39749c,_0x14a55b)=>{_0x14a55b&&this[_0x48db('0x121')][_0x48db('0xbb')](_0x14a55b),_0x39749c&&(this['_balloon']['add']({'view':_0x39749c,'stackId':_0x48db('0xc1'),'position':{'target':()=>{const _0x4c7ba0=this[_0x48db('0x119')][_0x48db('0x8')],_0xa12500=this['_getChangeFromId'](_0x39749c[_0x48db('0x105')]);let _0x589302;if(_0xa12500[_0x48db('0xda')][_0x48db('0x49')]){const _0x46f19f=_0x4c7ba0[_0x48db('0x5c')][_0x48db('0x74')](_0xa12500[_0x48db('0x99')]);_0x589302=Array[_0x48db('0x6b')](_0x46f19f[_0x48db('0xa4')]());}else{const _0x3a3227=this['editor'][_0x48db('0x62')][_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x39749c[_0x48db('0x105')]);_0x589302=Array[_0x48db('0x6b')](_0x4c7ba0[_0x48db('0xb0')][_0x48db('0xf5')](_0x3a3227['name']))[_0x48db('0xc4')](_0xa8d161=>_0x4c7ba0[_0x48db('0x5c')]['domConverter'][_0x48db('0x11d')](_0xa8d161))[_0x48db('0xc4')](_0x4bd563=>Array[_0x48db('0x6b')](_0x4bd563[_0x48db('0xa4')]()))['flat']();}if(!this['_activeViewTarget'])return _0x589302[0x0];return _0x589302['find'](_0xb79937=>_0xb79937[_0x48db('0xfc')]-0x3<=this[_0x48db('0x65')]['y']&&_0xb79937[_0x48db('0x10e')]+0x3>=this['_activeViewTarget']['y']&&_0xb79937['left']-0x3<=this[_0x48db('0x65')]['x']&&_0xb79937[_0x48db('0x98')]+0x3>=this[_0x48db('0x65')]['x'])||_0x589302[0x0];}}}),this[_0x48db('0x121')]['showStack'](_0x48db('0xc1')));}),this['on']('change:activeChange',(_0x512a18,_0x3e62ac,_0x141fb3,_0xf7136c)=>{this['activeView']=_0x141fb3?this[_0x48db('0x50')](_0x141fb3):null,this[_0x48db('0x119')]['model'][_0x48db('0x12')](()=>{const _0x38177f=this[_0x48db('0x119')]['editing'];_0xf7136c&&(_0xf7136c[_0x48db('0xda')][_0x48db('0x49')]?_0x38177f[_0x48db('0x5c')][_0x48db('0x12')](_0x4f5dcf=>{_0x4f5dcf[_0x48db('0x48')](_0x48db('0x4f'),_0x38177f[_0x48db('0x5c')]['document']['getRoot'](_0xf7136c['rootName']));}):_0x38177f[_0x48db('0x2f')]('revision:'+_0xf7136c['id'])),_0x141fb3&&(_0x141fb3[_0x48db('0xda')][_0x48db('0x49')]?_0x38177f[_0x48db('0x5c')][_0x48db('0x12')](_0x417422=>{_0x417422[_0x48db('0x68')](_0x48db('0x4f'),_0x38177f[_0x48db('0x5c')][_0x48db('0x28')]['getRoot'](_0x141fb3[_0x48db('0x99')]));}):_0x38177f['reconvertMarker'](_0x48db('0x6')+_0x141fb3['id']));});}),this[_0x48db('0xe0')](this[_0x48db('0x119')][_0x48db('0x8')]['view'][_0x48db('0x28')],_0x48db('0x9'),(_0x5bfe43,_0x4d21ff)=>{if(this['activeChange'])return;const _0x3405d1=this[_0x48db('0x16')](_0x4d21ff['target']),_0xf18bce=this[_0x48db('0x87')][_0x48db('0xde')](_0x3405d1);_0xf18bce?(this[_0x48db('0x65')]={'x':_0x4d21ff[_0x48db('0x18')]['x'],'y':_0x4d21ff[_0x48db('0x18')]['y']},this['activeView']=this[_0x48db('0x50')](_0xf18bce)):(this[_0x48db('0x65')]=null,this['activeView']=null);}),this[_0x48db('0xe0')](this['editor'][_0x48db('0x8')][_0x48db('0x5c')][_0x48db('0x28')],_0x48db('0x34'),(_0x2cf617,_0xedb964)=>{const _0x5aca35=this[_0x48db('0x16')](_0xedb964['target']),_0x4c3ac2=this['_changeIdToChange'][_0x48db('0xde')](_0x5aca35);_0x4c3ac2?(this['_activeViewTarget']={'x':_0xedb964[_0x48db('0x18')]['x'],'y':_0xedb964['domEvent']['y']},_0x4c3ac2===this[_0x48db('0x101')]?this[_0x48db('0x121')][_0x48db('0xf4')]():this[_0x48db('0x101')]=_0x4c3ac2):(this[_0x48db('0x65')]=null,this[_0x48db('0x101')]=null);});}[_0x48db('0x16')](_0x5b63a6){do{const _0x287c6c=_0x5b63a6['getAttribute']('data-change-id');if(_0x287c6c)return _0x287c6c;_0x5b63a6=_0x5b63a6[_0x48db('0x11e')];}while(_0x5b63a6);return null;}['_cleanMarkers'](){this[_0x48db('0x119')][_0x48db('0x62')]['change'](_0x24d8db=>{for(const _0x3b330e of this[_0x48db('0x119')][_0x48db('0x62')][_0x48db('0x8b')])_0x24d8db[_0x48db('0xd8')](_0x3b330e);});}}function et(_0x5a3aba,_0xbb9cab){return(_0x804a70,_0x2fae5b,_0x51bd87)=>{if(!_0x51bd87['consumable'][_0x48db('0xff')](_0x2fae5b[_0x48db('0x58')],_0x804a70[_0x48db('0x51')]))return;const _0x942477=_0x2fae5b['markerRange'][_0x48db('0x45')](),_0x607aff=_0x2fae5b[_0x48db('0x58')][_0x48db('0x120')],_0x823243=_0x5a3aba['model'][_0x48db('0xf2')];let _0x21f27b=null,_0x197a09=null,_0x32a823=!0x1,_0x5ef382=!0x1;for(const _0x80e34 of _0x942477){const _0x1c18e6=_0x80e34['item'];_0x32a823=_0x32a823||_0x823243[_0x48db('0x11f')](_0x1c18e6);const _0x19d7d0=_0x51bd87[_0x48db('0xb0')][_0x48db('0x6c')](_0x1c18e6);if(_0x19d7d0&&_0x19d7d0[_0x48db('0x80')](_0x48db('0xa3')))return;_0x48db('0x30')==_0x80e34[_0x48db('0x55')]&&(_0x823243[_0x48db('0x13')](_0x1c18e6)&&!_0x823243[_0x48db('0x115')](_0x1c18e6)&&(_0x1c18e6[_0x48db('0xd4')]||_0x607aff[_0x48db('0x5b')]?_0x21f27b&&_0x21f27b['parent']==_0x1c18e6||(_0x21f27b=_0x1c18e6,_0x4f3246(_0x80e34[_0x48db('0xc9')]),_0x5ef382=!0x0):_0x197a09=_0x197a09||_0x80e34[_0x48db('0xc9')]));}function _0x4f3246(_0x3d3ef9){const _0x37f113=_0x51bd87[_0x48db('0xb0')][_0x48db('0xb')](_0x3d3ef9),_0xcb3e9f=_0x51bd87[_0x48db('0x103')][_0x48db('0xa1')](_0x48db('0x88'),{'class':'ck-suggestion-preview-marker-'+_0xbb9cab});_0x51bd87[_0x48db('0x103')][_0x48db('0xd5')](_0x37f113,_0xcb3e9f),_0x51bd87[_0x48db('0xb0')][_0x48db('0x5e')](_0xcb3e9f,_0x2fae5b[_0x48db('0xa7')]);}_0x32a823||_0x5ef382||!_0x197a09||_0x4f3246(_0x197a09);};}export class RestoreRevisionCommand extends _0x28f02b{constructor(_0x47d924){super(_0x47d924);const _0x43ce20=_0x47d924['plugins'][_0x48db('0xde')](d);this[_0x48db('0x108')]=!0x1,this[_0x48db('0xe0')](_0x43ce20,'change:isReady',()=>this['refresh']()),this[_0x48db('0xe0')](_0x43ce20,_0x48db('0x9f'),()=>this[_0x48db('0xab')]());}[_0x48db('0xa8')](){const _0x1ad191=this[_0x48db('0x119')],_0x575e44=_0x1ad191[_0x48db('0x42')][_0x48db('0xde')](d),_0x9a6143=_0x575e44[_0x48db('0x110')]?_0x575e44[_0x48db('0x10b')][_0x48db('0x5a')]:null;_0x1ad191['config'][_0x48db('0xde')](_0x48db('0x53'))[_0x48db('0x1f')](_0x9a6143);}[_0x48db('0xab')](){const {isReady:_0x472458,isEnabled:_0x121fb2}=this[_0x48db('0x119')][_0x48db('0x42')]['get'](d);this[_0x48db('0x31')]=_0x472458&&_0x121fb2;}}export class ShowChangeCommand extends _0x28f02b{constructor(_0x582ce1,{direction:_0x4b745a}){super(_0x582ce1);const _0x5b967d=_0x582ce1[_0x48db('0x42')]['get'](d);this[_0x48db('0x108')]=!0x1,this['_step']=_0x48db('0xb7')===_0x4b745a?0x1:-0x1,this[_0x48db('0xe0')](_0x5b967d,'change:isReady',()=>this[_0x48db('0xab')]()),this[_0x48db('0xe0')](_0x5b967d,_0x48db('0x9f'),()=>this[_0x48db('0xab')]()),this[_0x48db('0xe0')](_0x5b967d,_0x48db('0xb5'),()=>this[_0x48db('0xab')]());}[_0x48db('0xa8')](){const _0x3e0693=this[_0x48db('0x119')],_0x12f4e6=_0x3e0693[_0x48db('0x42')][_0x48db('0xde')](d),{isNavigationMode:_0x30148f,currentChangeNumber:_0x34c2ff}=_0x12f4e6;let _0x522f56;if(_0x12f4e6[_0x48db('0x101')]=_0x30148f?_0x12f4e6['diff']['changes'][_0x48db('0xde')](_0x34c2ff+this[_0x48db('0x6a')]):_0x12f4e6['diff'][_0x48db('0xe5')][_0x48db('0xdb')],_0x12f4e6[_0x48db('0x101')][_0x48db('0xda')][_0x48db('0x49')])_0x522f56=_0x3e0693[_0x48db('0x8')]['view'][_0x48db('0x74')](_0x12f4e6[_0x48db('0x101')][_0x48db('0x99')]);else{const _0x5ce795=_0x3e0693[_0x48db('0x62')][_0x48db('0x8b')][_0x48db('0xde')](_0x48db('0x6')+_0x12f4e6['activeChange']['id']);_0x522f56=_0x15e21b(_0x3e0693['editing'],_0x5ce795);}_0x46b1aa({'target':_0x522f56,'viewportOffset':0x28});}[_0x48db('0xab')](){const {isNavigationMode:_0xc31926,currentChangeNumber:_0x4b53dc,numberOfChanges:_0x5c4d2a,isReady:_0x1da595,isEnabled:_0x388e1e}=this[_0x48db('0x119')][_0x48db('0x42')][_0x48db('0xde')](d);this[_0x48db('0x31')]=!!(_0x388e1e&&_0x1da595&&_0x5c4d2a)&&(!_0xc31926||(0x1===this['_step']?_0x4b53dc<_0x5c4d2a-0x1:_0x4b53dc>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4caa=['action','first','listenTo','children','threeVerticalDots','execute','isActionsDropdownOpen','bind','name','buttonView','find','Show\x20more\x20items','class','button','bindTemplate','extendTemplate','set','items','panelPosition','add','isEnabled','Restore\x20this\x20revision','Compare\x20against\x20selected','isReady','locale','change:isActionsDropdownOpen','source','_action'];(function(_0x46d71a,_0x4caa03){const _0x406740=function(_0x4110e3){while(--_0x4110e3){_0x46d71a['push'](_0x46d71a['shift']());}};_0x406740(++_0x4caa03);}(_0x4caa,0x18d));const _0x4067=function(_0x46d71a,_0x4caa03){_0x46d71a=_0x46d71a-0x0;let _0x406740=_0x4caa[_0x46d71a];return _0x406740;};import{Collection as _0x5b6b1a}from'ckeditor5/src/utils';import{icons as _0x28c1fb}from'ckeditor5/src/core';import{Model as _0x570202,addListToDropdown as _0x47abc7,createDropdown as _0x49ba4d}from'ckeditor5/src/ui';import{getTranslation as _0x296636}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1b30c1,_0x16f40e){const _0x170551=_0x1b30c1[_0x4067('0x9')],_0x990ee7=_0x1b30c1[_0x4067('0x13')],_0x34535e=_0x49ba4d(_0x990ee7);_0x34535e[_0x4067('0xd')]='sw';const _0x3cb171=function(_0x5a844a,_0x3195ad){const _0x91dcea=function(_0x1657fe,_0x333508){const _0x2ee300=_0x1657fe['locale'],_0x1a8dea={'Compare\x20against\x20selected':_0x296636(_0x2ee300,_0x4067('0x11')),'Name\x20this\x20revision':_0x296636(_0x2ee300,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x296636(_0x2ee300,_0x4067('0x10'))};return _0x333508['map'](_0x441c6d=>{const _0x49c977=_0x1a8dea[_0x441c6d['name']];return _0x49c977&&_0x49c977!==_0x441c6d[_0x4067('0x3')]&&(_0x441c6d[_0x4067('0x3')]=_0x49c977),_0x441c6d;});}(_0x5a844a,_0x3195ad),_0x21d9db=new _0x5b6b1a();for(const _0x45fc66 of _0x91dcea){const _0x276288={'type':_0x4067('0x8'),'model':new _0x570202({'label':_0x45fc66[_0x4067('0x3')],'class':_0x45fc66[_0x4067('0x7')],'withText':!0x0,'_action':_0x45fc66[_0x4067('0x17')]})};_0x276288['model'][_0x4067('0x2')]('isEnabled')['to'](_0x5a844a,'isActionsDropdownOpen',_0x3b8b7b=>'function'!=typeof _0x45fc66[_0x4067('0xf')]||(!_0x3b8b7b||_0x45fc66[_0x4067('0xf')](_0x5a844a))),_0x21d9db[_0x4067('0xe')](_0x276288);}return _0x21d9db;}(_0x1b30c1,_0x16f40e);return _0x1b30c1[_0x4067('0x2')](_0x4067('0x1'))['to'](_0x34535e,'isOpen'),_0x34535e[_0x4067('0x4')][_0x4067('0xb')]({'label':_0x296636(_0x990ee7,_0x4067('0x6')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28c1fb[_0x4067('0x1b')]}),_0x34535e[_0x4067('0xa')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x170551['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x170551['to'](_0x1513f2=>_0x1513f2['stopPropagation']())}}),_0x34535e['on'](_0x4067('0x0'),_0x8fa6b3=>{_0x1b30c1[_0x4067('0x12')]&&'function'==typeof _0x8fa6b3[_0x4067('0x15')][_0x4067('0x16')]&&_0x8fa6b3['source']['_action'](_0x1b30c1);}),_0x47abc7(_0x34535e,_0x3cb171),_0x34535e[_0x4067('0x19')](_0x1b30c1,_0x4067('0x14'),(_0x3053c9,_0x23ceed,_0x3c891d)=>{if(_0x3c891d)for(const _0x69352d of _0x34535e['listView'][_0x4067('0xc')]){const _0x327a34=_0x69352d[_0x4067('0x1a')][_0x4067('0x18')],_0x185f52=_0x16f40e[_0x4067('0x5')](_0x3de992=>_0x3de992[_0x4067('0x17')]===_0x327a34['_action'])['isVisible'];_0x69352d['isVisible']=void 0x0===_0x185f52||_0x185f52(_0x1b30c1);}}),_0x34535e;}
23
+ const _0x5ca5=['action','isVisible','items','map','bind','listView','source','class','locale','button','extendTemplate','set','ck-on','isReady','first','children','function','buttonView','name','panelPosition','Show\x20more\x20items','threeVerticalDots','bindTemplate','Name\x20this\x20revision','ck-revision-history-sidebar__revision__actions','isEnabled','listenTo','Restore\x20this\x20revision','_action','change:isActionsDropdownOpen','isActionsDropdownOpen','stopPropagation'];(function(_0x258dc0,_0x5ca5e2){const _0x30ca9d=function(_0x21a3a3){while(--_0x21a3a3){_0x258dc0['push'](_0x258dc0['shift']());}};_0x30ca9d(++_0x5ca5e2);}(_0x5ca5,0x101));const _0x30ca=function(_0x258dc0,_0x5ca5e2){_0x258dc0=_0x258dc0-0x0;let _0x30ca9d=_0x5ca5[_0x258dc0];return _0x30ca9d;};import{Collection as _0x4e5e8f}from'ckeditor5/src/utils';import{icons as _0x31daf4}from'ckeditor5/src/core';import{Model as _0x4e4347,addListToDropdown as _0x2091a3,createDropdown as _0x369607}from'ckeditor5/src/ui';import{getTranslation as _0xc82a9b}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x44df91,_0x48bbed){const _0x3a273c=_0x44df91[_0x30ca('0x15')],_0x29a750=_0x44df91[_0x30ca('0x7')],_0x1352fe=_0x369607(_0x29a750);_0x1352fe[_0x30ca('0x12')]='sw';const _0x157592=function(_0x28171d,_0x3e19f8){const _0x3f47b7=function(_0x57d8b1,_0x1e2eac){const _0x27faa0=_0x57d8b1['locale'],_0x23b987={'Compare\x20against\x20selected':_0xc82a9b(_0x27faa0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0xc82a9b(_0x27faa0,_0x30ca('0x16')),'Restore\x20this\x20revision':_0xc82a9b(_0x27faa0,_0x30ca('0x1a'))};return _0x1e2eac[_0x30ca('0x2')](_0x29438c=>{const _0x18b8a4=_0x23b987[_0x29438c[_0x30ca('0x11')]];return _0x18b8a4&&_0x18b8a4!==_0x29438c[_0x30ca('0x11')]&&(_0x29438c[_0x30ca('0x11')]=_0x18b8a4),_0x29438c;});}(_0x28171d,_0x3e19f8),_0x5d0011=new _0x4e5e8f();for(const _0x3d553e of _0x3f47b7){const _0x576d44={'type':_0x30ca('0x8'),'model':new _0x4e4347({'label':_0x3d553e[_0x30ca('0x11')],'class':_0x3d553e[_0x30ca('0x6')],'withText':!0x0,'_action':_0x3d553e[_0x30ca('0x1f')]})};_0x576d44['model'][_0x30ca('0x3')](_0x30ca('0x18'))['to'](_0x28171d,_0x30ca('0x1d'),_0x5d48eb=>'function'!=typeof _0x3d553e[_0x30ca('0x18')]||(!_0x5d48eb||_0x3d553e[_0x30ca('0x18')](_0x28171d))),_0x5d0011['add'](_0x576d44);}return _0x5d0011;}(_0x44df91,_0x48bbed);return _0x44df91[_0x30ca('0x3')](_0x30ca('0x1d'))['to'](_0x1352fe,'isOpen'),_0x1352fe[_0x30ca('0x10')][_0x30ca('0xa')]({'label':_0xc82a9b(_0x29a750,_0x30ca('0x13')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x31daf4[_0x30ca('0x14')]}),_0x1352fe[_0x30ca('0x9')]({'attributes':{'class':[_0x30ca('0x17'),_0x3a273c['if'](_0x30ca('0x1d'),_0x30ca('0xb'))]},'on':{'click':_0x3a273c['to'](_0x4ff3da=>_0x4ff3da[_0x30ca('0x1e')]())}}),_0x1352fe['on']('execute',_0x21ca0a=>{_0x44df91[_0x30ca('0xc')]&&_0x30ca('0xf')==typeof _0x21ca0a[_0x30ca('0x5')]['_action']&&_0x21ca0a[_0x30ca('0x5')]['_action'](_0x44df91);}),_0x2091a3(_0x1352fe,_0x157592),_0x1352fe[_0x30ca('0x19')](_0x44df91,_0x30ca('0x1c'),(_0x48614b,_0x3de00d,_0x35697c)=>{if(_0x35697c)for(const _0x4813d3 of _0x1352fe[_0x30ca('0x4')][_0x30ca('0x1')]){const _0x24dd1d=_0x4813d3[_0x30ca('0xe')][_0x30ca('0xd')],_0x1f4132=_0x48bbed['find'](_0x704a4f=>_0x704a4f[_0x30ca('0x1f')]===_0x24dd1d[_0x30ca('0x1b')])['isVisible'];_0x4813d3[_0x30ca('0x0')]=void 0x0===_0x1f4132||_0x1f4132(_0x44df91);}}),_0x1352fe;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4880=['ck-revision-history-sidebar__revision-author','Revision\x20creator','span','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author_creator','Revision\x20author','setTemplate'];(function(_0x1d0c1d,_0x4880f0){const _0x25888d=function(_0x44527a){while(--_0x44527a){_0x1d0c1d['push'](_0x1d0c1d['shift']());}};_0x25888d(++_0x4880f0);}(_0x4880,0xde));const _0x2588=function(_0x1d0c1d,_0x4880f0){_0x1d0c1d=_0x1d0c1d-0x0;let _0x25888d=_0x4880[_0x1d0c1d];return _0x25888d;};import{View as _0x31f1d2,IconView as _0x4c1232}from'ckeditor5/src/ui';import{getTranslation as _0x511a8a}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x398f75 from'../../../theme/icons/user.svg';export default class ti extends _0x31f1d2{constructor(_0xc7136e,_0x40a979,_0x1597f8){super(_0xc7136e);const _0x31a157=new _0x4c1232();_0x31a157['set']({'content':_0x398f75,'viewBox':_0x2588('0x5')});const _0x148165=['ck',_0x2588('0x2')];_0x1597f8&&_0x148165['push'](_0x2588('0x7'));const _0x336d6e=[{'tag':_0x2588('0x4'),'attributes':{'class':['ck',_0x2588('0x6')],'title':_0x511a8a(_0xc7136e,_0x1597f8?_0x2588('0x3'):_0x2588('0x0'))},'children':[_0x31a157,_0x40a979['name']]}];this[_0x2588('0x1')]({'tag':'li','attributes':{'class':_0x148165},'children':_0x336d6e});}}
23
+ const _0x4993=['ck-revision-history-sidebar__revision-author__name','set','Revision\x20creator','ck-revision-history-sidebar__revision-author','name','push','0\x200\x2011\x2010'];(function(_0x359f2b,_0x49930a){const _0x12b37e=function(_0x5f2fd5){while(--_0x5f2fd5){_0x359f2b['push'](_0x359f2b['shift']());}};_0x12b37e(++_0x49930a);}(_0x4993,0x72));const _0x12b3=function(_0x359f2b,_0x49930a){_0x359f2b=_0x359f2b-0x0;let _0x12b37e=_0x4993[_0x359f2b];return _0x12b37e;};import{View as _0x1b38c9,IconView as _0x48671e}from'ckeditor5/src/ui';import{getTranslation as _0x7c95ab}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x133f74 from'../../../theme/icons/user.svg';export default class ti extends _0x1b38c9{constructor(_0x5caede,_0x45c705,_0x24a2a4){super(_0x5caede);const _0x47c380=new _0x48671e();_0x47c380[_0x12b3('0x6')]({'content':_0x133f74,'viewBox':_0x12b3('0x4')});const _0x1ae216=['ck',_0x12b3('0x1')];_0x24a2a4&&_0x1ae216[_0x12b3('0x3')]('ck-revision-history-sidebar__revision-author_creator');const _0x2e4302=[{'tag':'span','attributes':{'class':['ck',_0x12b3('0x5')],'title':_0x7c95ab(_0x5caede,_0x24a2a4?_0x12b3('0x0'):'Revision\x20author')},'children':[_0x47c380,_0x45c705[_0x12b3('0x2')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1ae216},'children':_0x2e4302});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x41c4=['Revision\x20name','set','span','ck-revision-history-sidebar__revision-name'];(function(_0x3cbea7,_0x41c4a4){var _0x517fb3=function(_0x436d0d){while(--_0x436d0d){_0x3cbea7['push'](_0x3cbea7['shift']());}};_0x517fb3(++_0x41c4a4);}(_0x41c4,0x163));var _0x517f=function(_0x3cbea7,_0x41c4a4){_0x3cbea7=_0x3cbea7-0x0;var _0x517fb3=_0x41c4[_0x3cbea7];return _0x517fb3;};import{LabeledFieldView as _0xb76f08}from'ckeditor5/src/ui';import{getTranslation as _0x2b6762}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xb76f08{constructor(_0x1c9d74,_0x54f4ba){super(_0x1c9d74,_0x54f4ba),this[_0x517f('0x2')]({'label':_0x2b6762(_0x1c9d74,_0x517f('0x1'))}),this['extendTemplate']({'tag':_0x517f('0x3'),'attributes':{'class':[_0x517f('0x0')]}});}}
23
+ var _0x10cc=['span','set','extendTemplate'];(function(_0x4baa0d,_0x10cce5){var _0x355690=function(_0xa8760e){while(--_0xa8760e){_0x4baa0d['push'](_0x4baa0d['shift']());}};_0x355690(++_0x10cce5);}(_0x10cc,0x1a2));var _0x3556=function(_0x4baa0d,_0x10cce5){_0x4baa0d=_0x4baa0d-0x0;var _0x355690=_0x10cc[_0x4baa0d];return _0x355690;};import{LabeledFieldView as _0xfcefa2}from'ckeditor5/src/ui';import{getTranslation as _0x2c63b7}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xfcefa2{constructor(_0x52dbbc,_0x2f5e73){super(_0x52dbbc,_0x2f5e73),this[_0x3556('0x0')]({'label':_0x2c63b7(_0x52dbbc,'Revision\x20name')}),this[_0x3556('0x1')]({'tag':_0x3556('0x2'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdead=['render','ck-revision-history-sidebar__revision-authors','element','ck-revision-history-sidebar__revision-wrapper','set','revisionNameView','authors','_createdAtFormatted','placeholder','div','bind','extendTemplate','unhighlight','ck-revision-history-sidebar__revision__date','value','fire','revisionActionsView','length','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','highlight','from','creator','ck-revision-history-sidebar__actions_dropdown_open','isActionsDropdownOpen','createdAt','fieldView','isReady','setTemplate','ck-revision-history-sidebar__revision__controls-wrapper','ck-disabled','ck-revision-history-sidebar__revision_selected','name','setName','isEnabled','_revision','srcElement','ck-revision-history-sidebar__revision','map','closest','span','ck-reset','uiLanguage','select','.ck-thread__remove-confirm','unshift','isHighlighted','isSelected','deselect'];(function(_0x3dfdab,_0xdeadf5){const _0x55e525=function(_0x1fabf3){while(--_0x1fabf3){_0x3dfdab['push'](_0x3dfdab['shift']());}};_0x55e525(++_0xdeadf5);}(_0xdead,0x168));const _0x55e5=function(_0x3dfdab,_0xdeadf5){_0x3dfdab=_0x3dfdab-0x0;let _0x55e525=_0xdead[_0x3dfdab];return _0x55e525;};import{View as _0x3ac1f5,createLabeledInputText as _0x451d29}from'ckeditor5/src/ui';import{ConfirmMixin as _0x256896}from'ckeditor5-collaboration/src/collaboration-core';import _0x38efe8 from'./revisionnameview';import _0x3587f5 from'./revisionauthorview';import{dateToPrettyFormat as _0x288469}from'./utils';import{createActionsDropdownView as _0x31986f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x256896(_0x3ac1f5){constructor(_0x48602e,_0x1d6e13,_0x5bdc02){super(_0x48602e);const _0x3c84a9=this['bindTemplate'],_0x4c695a=function(_0x4e19b8,_0xa67dc3){const _0x5e1b2d=Array[_0x55e5('0x2c')](_0xa67dc3[_0x55e5('0x1e')])['filter'](_0x41a3d3=>_0x41a3d3!=_0xa67dc3[_0x55e5('0x2d')]);return _0xa67dc3[_0x55e5('0x2d')]&&_0x5e1b2d[_0x55e5('0x14')](_0xa67dc3[_0x55e5('0x2d')]),_0x5e1b2d[_0x55e5('0xd')](_0x468aab=>new _0x3587f5(_0x4e19b8,_0x468aab,_0x468aab==_0xa67dc3[_0x55e5('0x2d')]));}(_0x48602e,_0x1d6e13);this['id']=_0x1d6e13['id'],this[_0x55e5('0xa')]=_0x1d6e13,this[_0x55e5('0x22')](_0x55e5('0x7'),_0x55e5('0x0'))['to'](_0x1d6e13),this[_0x55e5('0x22')]('_createdAtFormatted')['to'](this,_0x55e5('0x0'),_0xb98cd2=>_0xb98cd2?_0x288469(_0x48602e[_0x55e5('0x11')],_0xb98cd2):void 0x0),this['set'](_0x55e5('0x16'),!0x1),this[_0x55e5('0x1c')](_0x55e5('0x15'),!0x1),this[_0x55e5('0x1c')]('isActionsDropdownOpen',!0x1),this['set'](_0x55e5('0x2'),!0x1),this[_0x55e5('0x1c')](_0x55e5('0x9'),!0x1),this[_0x55e5('0x1d')]=new _0x38efe8(_0x48602e,_0x451d29),this[_0x55e5('0x1d')][_0x55e5('0x1')][_0x55e5('0x23')]({'attributes':{'maxlength':'220'}}),this[_0x55e5('0x1d')][_0x55e5('0x1')][_0x55e5('0x22')](_0x55e5('0x26'),_0x55e5('0x20'))['to'](this,_0x55e5('0x7'),'_createdAtFormatted'),this[_0x55e5('0x1d')][_0x55e5('0x22')](_0x55e5('0x9'))['to'](this,'isSelected',this,_0x55e5('0x9'),(_0x564050,_0x3c8a05)=>_0x564050&&_0x3c8a05),this[_0x55e5('0x28')]=_0x5bdc02&&_0x5bdc02[_0x55e5('0x29')]?_0x31986f(this,_0x5bdc02):'',this[_0x55e5('0x28')]&&this[_0x55e5('0x28')][_0x55e5('0x22')]('isEnabled')['to'](this),this[_0x55e5('0x3')]({'tag':'div','attributes':{'class':['ck',_0x55e5('0x10'),_0x55e5('0x1b'),_0x3c84a9['if']('isConfirm',_0x55e5('0x2a'))]},'children':[{'tag':_0x55e5('0x21'),'attributes':{'class':['ck',_0x55e5('0x10'),_0x55e5('0xc'),_0x3c84a9['if'](_0x55e5('0x9'),_0x55e5('0x5'),_0x1319ec=>!_0x1319ec),_0x3c84a9['if'](_0x55e5('0x16'),_0x55e5('0x6')),_0x3c84a9['if'](_0x55e5('0x15'),'ck-revision-history-sidebar__revision_highlighted'),_0x3c84a9['if'](_0x55e5('0x2f'),_0x55e5('0x2e'))]},'children':[this[_0x55e5('0x1d')],{'tag':_0x55e5('0xf'),'attributes':{'class':['ck',_0x55e5('0x25')]},'children':[{'text':_0x3c84a9['to'](_0x55e5('0x1f'))}]},{'tag':_0x55e5('0x21'),'attributes':{'class':['ck',_0x55e5('0x4')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x55e5('0x19')]},'children':_0x4c695a}]},this[_0x55e5('0x28')]],'on':{'click':_0x3c84a9['to'](_0x191fa5=>{_0x191fa5[_0x55e5('0xb')][_0x55e5('0xe')](_0x55e5('0x13'))||this['isReady']&&this[_0x55e5('0x9')]&&this['fire'](_0x55e5('0x12'),{'id':this['id']});})}}]});}[_0x55e5('0x18')](){super['render']();const _0x3be22e=this['revisionNameView'][_0x55e5('0x1')][_0x55e5('0x1a')];this['listenTo'](_0x3be22e,'change',()=>{this[_0x55e5('0x27')](_0x55e5('0x8'),{'id':this['id'],'name':_0x3be22e[_0x55e5('0x26')]});});}[_0x55e5('0x12')](){this[_0x55e5('0x16')]=!0x0;}[_0x55e5('0x17')](){this[_0x55e5('0x16')]=!0x1;}[_0x55e5('0x2b')](){this[_0x55e5('0x15')]=!0x0;}[_0x55e5('0x24')](){this['isHighlighted']=!0x1;}}
23
+ const _0x58d8=['ck-revision-history-sidebar__revision','authors','length','createdAt','element','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','220','unshift','from','ck-reset','creator','render','uiLanguage','ck-revision-history-sidebar__revision__controls-wrapper','unhighlight','_createdAtFormatted','placeholder','change','fire','set','_revision','name','fieldView','.ck-thread__remove-confirm','ck-disabled','closest','filter','revisionActionsView','div','highlight','value','isSelected','setName','extendTemplate','ck-revision-history-sidebar__revision_selected','bind','srcElement','ck-revision-history-sidebar__revision-wrapper','isActionsDropdownOpen','select','isEnabled','isHighlighted','isConfirm','map','revisionNameView','isReady','setTemplate','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision-authors','listenTo'];(function(_0x95521,_0x58d8b6){const _0x3bd168=function(_0x18c9bf){while(--_0x18c9bf){_0x95521['push'](_0x95521['shift']());}};_0x3bd168(++_0x58d8b6);}(_0x58d8,0x66));const _0x3bd1=function(_0x95521,_0x58d8b6){_0x95521=_0x95521-0x0;let _0x3bd168=_0x58d8[_0x95521];return _0x3bd168;};import{View as _0x1e2bfd,createLabeledInputText as _0x4308b0}from'ckeditor5/src/ui';import{ConfirmMixin as _0x972798}from'ckeditor5-collaboration/src/collaboration-core';import _0x37fba8 from'./revisionnameview';import _0x4b000a from'./revisionauthorview';import{dateToPrettyFormat as _0x1bb1e2}from'./utils';import{createActionsDropdownView as _0x22b78f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x972798(_0x1e2bfd){constructor(_0xd30490,_0x3bec34,_0x3a4697){super(_0xd30490);const _0x48a5ba=this['bindTemplate'],_0x2507e0=function(_0x2d0db1,_0x614725){const _0x5c06cd=Array[_0x3bd1('0x6')](_0x614725[_0x3bd1('0x31')])[_0x3bd1('0x18')](_0x327f1b=>_0x327f1b!=_0x614725['creator']);return _0x614725[_0x3bd1('0x8')]&&_0x5c06cd[_0x3bd1('0x5')](_0x614725['creator']),_0x5c06cd[_0x3bd1('0x29')](_0x3cff55=>new _0x4b000a(_0x2d0db1,_0x3cff55,_0x3cff55==_0x614725[_0x3bd1('0x8')]));}(_0xd30490,_0x3bec34);this['id']=_0x3bec34['id'],this[_0x3bd1('0x12')]=_0x3bec34,this[_0x3bd1('0x21')](_0x3bd1('0x13'),_0x3bd1('0x1'))['to'](_0x3bec34),this[_0x3bd1('0x21')](_0x3bd1('0xd'))['to'](this,'createdAt',_0x512cc0=>_0x512cc0?_0x1bb1e2(_0xd30490[_0x3bd1('0xa')],_0x512cc0):void 0x0),this[_0x3bd1('0x11')](_0x3bd1('0x1d'),!0x1),this[_0x3bd1('0x11')](_0x3bd1('0x27'),!0x1),this['set'](_0x3bd1('0x24'),!0x1),this[_0x3bd1('0x11')](_0x3bd1('0x2b'),!0x1),this[_0x3bd1('0x11')](_0x3bd1('0x26'),!0x1),this[_0x3bd1('0x2a')]=new _0x37fba8(_0xd30490,_0x4308b0),this[_0x3bd1('0x2a')][_0x3bd1('0x14')][_0x3bd1('0x1f')]({'attributes':{'maxlength':_0x3bd1('0x4')}}),this[_0x3bd1('0x2a')][_0x3bd1('0x14')]['bind'](_0x3bd1('0x1c'),_0x3bd1('0xe'))['to'](this,_0x3bd1('0x13'),_0x3bd1('0xd')),this[_0x3bd1('0x2a')][_0x3bd1('0x21')](_0x3bd1('0x26'))['to'](this,_0x3bd1('0x1d'),this,'isEnabled',(_0x501b3d,_0x2e57d6)=>_0x501b3d&&_0x2e57d6),this[_0x3bd1('0x19')]=_0x3a4697&&_0x3a4697[_0x3bd1('0x0')]?_0x22b78f(this,_0x3a4697):'',this[_0x3bd1('0x19')]&&this[_0x3bd1('0x19')][_0x3bd1('0x21')](_0x3bd1('0x26'))['to'](this),this[_0x3bd1('0x2c')]({'tag':'div','attributes':{'class':['ck',_0x3bd1('0x7'),_0x3bd1('0x23'),_0x48a5ba['if'](_0x3bd1('0x28'),_0x3bd1('0x3'))]},'children':[{'tag':_0x3bd1('0x1a'),'attributes':{'class':['ck',_0x3bd1('0x7'),_0x3bd1('0x30'),_0x48a5ba['if'](_0x3bd1('0x26'),_0x3bd1('0x16'),_0x4e5844=>!_0x4e5844),_0x48a5ba['if'](_0x3bd1('0x1d'),_0x3bd1('0x20')),_0x48a5ba['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x48a5ba['if']('isActionsDropdownOpen',_0x3bd1('0x2d'))]},'children':[this[_0x3bd1('0x2a')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x48a5ba['to'](_0x3bd1('0xd'))}]},{'tag':_0x3bd1('0x1a'),'attributes':{'class':['ck',_0x3bd1('0xb')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3bd1('0x2e')]},'children':_0x2507e0}]},this[_0x3bd1('0x19')]],'on':{'click':_0x48a5ba['to'](_0x37e749=>{_0x37e749[_0x3bd1('0x22')][_0x3bd1('0x17')](_0x3bd1('0x15'))||this['isReady']&&this[_0x3bd1('0x26')]&&this[_0x3bd1('0x10')](_0x3bd1('0x25'),{'id':this['id']});})}}]});}[_0x3bd1('0x9')](){super[_0x3bd1('0x9')]();const _0x234afb=this[_0x3bd1('0x2a')][_0x3bd1('0x14')][_0x3bd1('0x2')];this[_0x3bd1('0x2f')](_0x234afb,_0x3bd1('0xf'),()=>{this[_0x3bd1('0x10')](_0x3bd1('0x1e'),{'id':this['id'],'name':_0x234afb['value']});});}[_0x3bd1('0x25')](){this[_0x3bd1('0x1d')]=!0x0;}['deselect'](){this['isSelected']=!0x1;}[_0x3bd1('0x1b')](){this['isHighlighted']=!0x0;}[_0x3bd1('0xc')](){this[_0x3bd1('0x27')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ea1=['isVisible','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser__inner','span','bindTemplate','toggle','click','set','ck-revision-history-sidebar__subrevision-collapser_collapsed','button','true'];(function(_0x1f7b59,_0x5ea112){const _0x3ddfa7=function(_0x58edb7){while(--_0x58edb7){_0x1f7b59['push'](_0x1f7b59['shift']());}};_0x3ddfa7(++_0x5ea112);}(_0x5ea1,0xe8));const _0x3ddf=function(_0x1f7b59,_0x5ea112){_0x1f7b59=_0x1f7b59-0x0;let _0x3ddfa7=_0x5ea1[_0x1f7b59];return _0x3ddfa7;};import{View as _0x271d9c}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x271d9c{constructor(_0x2e7a27){super(_0x2e7a27);const _0x50b19f=this[_0x3ddf('0x3')];this[_0x3ddf('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x3ddf('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x50b19f['if'](_0x3ddf('0xa'),'ck-hidden',_0x3207a2=>!_0x3207a2),_0x50b19f['if']('_isCollapsed',_0x3ddf('0x7'))],'role':_0x3ddf('0x8'),'aria-pressed':_0x50b19f['to'](_0x3ddf('0x0'),_0x17deb2=>_0x17deb2?'false':_0x3ddf('0x9'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x3ddf('0x1')]}}],'on':{'click':_0x50b19f['to'](_0x3ddf('0x5'))}});}[_0x3ddf('0x4')](){this[_0x3ddf('0x0')]=!this[_0x3ddf('0x0')];}}
23
+ const _0x11f9=['button','ck-revision-history-sidebar__subrevision-collapser','bindTemplate','ck-hidden','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser__inner','click','set','isVisible','true','span','toggle'];(function(_0x54ff64,_0x11f971){const _0xd7c52e=function(_0x101c19){while(--_0x101c19){_0x54ff64['push'](_0x54ff64['shift']());}};_0xd7c52e(++_0x11f971);}(_0x11f9,0x1c9));const _0xd7c5=function(_0x54ff64,_0x11f971){_0x54ff64=_0x54ff64-0x0;let _0xd7c52e=_0x11f9[_0x54ff64];return _0xd7c52e;};import{View as _0x436b2b}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x436b2b{constructor(_0x17caa9){super(_0x17caa9);const _0x5c67d6=this[_0xd7c5('0x1')];this[_0xd7c5('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0xd7c5('0x9'),'attributes':{'class':['ck',_0xd7c5('0x0'),_0x5c67d6['if'](_0xd7c5('0x7'),_0xd7c5('0x2'),_0x179065=>!_0x179065),_0x5c67d6['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0xd7c5('0xb'),'aria-pressed':_0x5c67d6['to']('_isCollapsed',_0x28072f=>_0x28072f?'false':_0xd7c5('0x8'))},'children':[{'tag':_0xd7c5('0x9'),'attributes':{'class':['ck',_0xd7c5('0x4')]}}],'on':{'click':_0x5c67d6['to'](_0xd7c5('0x5'))}});}[_0xd7c5('0xa')](){this[_0xd7c5('0x3')]=!this[_0xd7c5('0x3')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1554=['_createdAtFormatted','ck-revision-history-sidebar__subrevision','ck-reset','ck-revision-history-sidebar__revision_selected','bindTemplate','isSelected','_parentRevisionId','span','creator','uiLanguage','ck-revision-history-sidebar__revision','fire','div','select','bind','createdAt'];(function(_0x38a9b3,_0x155427){const _0x3b5d5e=function(_0x3f3f4e){while(--_0x3f3f4e){_0x38a9b3['push'](_0x38a9b3['shift']());}};_0x3b5d5e(++_0x155427);}(_0x1554,0x72));const _0x3b5d=function(_0x38a9b3,_0x155427){_0x38a9b3=_0x38a9b3-0x0;let _0x3b5d5e=_0x1554[_0x38a9b3];return _0x3b5d5e;};import{View as _0x5de156}from'ckeditor5/src/ui';import _0x1359a7 from'./revisionauthorview';import{dateToPrettyFormat as _0x3243ef}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x5de156{constructor(_0x5f362c,_0x4268ad,_0x1d4029){super(_0x5f362c);const _0x120da3=this[_0x3b5d('0x2')];this['id']=_0x4268ad['id'],this[_0x3b5d('0xc')](_0x3b5d('0xd'))['to'](_0x4268ad),this['set']('isSelected',!0x1),this[_0x3b5d('0xc')]('_createdAtFormatted')['to'](this,_0x3b5d('0xd'),_0x1c4a4c=>_0x1c4a4c?_0x3243ef(_0x5f362c[_0x3b5d('0x7')],_0x1c4a4c):void 0x0),this[_0x3b5d('0x4')]=_0x1d4029,this['setTemplate']({'tag':_0x3b5d('0xa'),'attributes':{'class':['ck',_0x3b5d('0x0'),_0x3b5d('0x8'),_0x3b5d('0xf'),_0x120da3['if'](_0x3b5d('0x3'),_0x3b5d('0x1'))]},'children':[{'tag':_0x3b5d('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x120da3['to'](_0x3b5d('0xe'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x1359a7(_0x5f362c,_0x4268ad[_0x3b5d('0x6')],!0x0)]}],'on':{'click':_0x120da3['to'](this['select'][_0x3b5d('0xc')](this))}});}[_0x3b5d('0xb')](){this[_0x3b5d('0x3')]=!0x0,this[_0x3b5d('0x9')](_0x3b5d('0xb'),{'parentId':this[_0x3b5d('0x4')]});}['deselect'](){this[_0x3b5d('0x3')]=!0x1;}}
23
+ const _0x46ee=['creator','createdAt','bind','deselect','setTemplate','ck-revision-history-sidebar__revision_selected','bindTemplate','div','ck-revision-history-sidebar__revision-authors','span','_createdAtFormatted','ck-revision-history-sidebar__revision__date','uiLanguage','isSelected','ck-reset','select','set'];(function(_0x516373,_0x46eeca){const _0x3d8f45=function(_0x316f04){while(--_0x316f04){_0x516373['push'](_0x516373['shift']());}};_0x3d8f45(++_0x46eeca);}(_0x46ee,0x1ba));const _0x3d8f=function(_0x516373,_0x46eeca){_0x516373=_0x516373-0x0;let _0x3d8f45=_0x46ee[_0x516373];return _0x3d8f45;};import{View as _0x2fbef0}from'ckeditor5/src/ui';import _0x3a5bdb from'./revisionauthorview';import{dateToPrettyFormat as _0x254608}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2fbef0{constructor(_0x46fb75,_0x1ecfb6,_0x2e0b49){super(_0x46fb75);const _0x3045cf=this[_0x3d8f('0x6')];this['id']=_0x1ecfb6['id'],this['bind'](_0x3d8f('0x1'))['to'](_0x1ecfb6),this[_0x3d8f('0x10')](_0x3d8f('0xd'),!0x1),this[_0x3d8f('0x2')]('_createdAtFormatted')['to'](this,_0x3d8f('0x1'),_0x3d5cf0=>_0x3d5cf0?_0x254608(_0x46fb75[_0x3d8f('0xc')],_0x3d5cf0):void 0x0),this['_parentRevisionId']=_0x2e0b49,this[_0x3d8f('0x4')]({'tag':_0x3d8f('0x7'),'attributes':{'class':['ck',_0x3d8f('0xe'),'ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x3045cf['if'](_0x3d8f('0xd'),_0x3d8f('0x5'))]},'children':[{'tag':_0x3d8f('0x9'),'attributes':{'class':['ck',_0x3d8f('0xb')]},'children':[{'text':_0x3045cf['to'](_0x3d8f('0xa'))}]},{'tag':'ul','attributes':{'class':['ck',_0x3d8f('0x8')]},'children':[new _0x3a5bdb(_0x46fb75,_0x1ecfb6[_0x3d8f('0x0')],!0x0)]}],'on':{'click':_0x3045cf['to'](this[_0x3d8f('0xf')][_0x3d8f('0x2')](this))}});}[_0x3d8f('0xf')](){this['isSelected']=!0x0,this['fire'](_0x3d8f('0xf'),{'parentId':this['_parentRevisionId']});}[_0x3d8f('0x3')](){this[_0x3d8f('0xd')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x25e0=['long','numeric','toLocaleTimeString'];(function(_0x3673c0,_0x25e00b){var _0xde6223=function(_0x4bbbfd){while(--_0x4bbbfd){_0x3673c0['push'](_0x3673c0['shift']());}};_0xde6223(++_0x25e00b);}(_0x25e0,0x148));var _0xde62=function(_0x3673c0,_0x25e00b){_0x3673c0=_0x3673c0-0x0;var _0xde6223=_0x25e0[_0x3673c0];return _0xde6223;};export function dateToPrettyFormat(_0x421ae4,_0x2295f5){return _0x2295f5['toLocaleDateString'](_0x421ae4,{'month':_0xde62('0x2'),'day':_0xde62('0x0')})+',\x20'+_0x2295f5[_0xde62('0x1')](_0x421ae4,{'hour':'numeric','minute':_0xde62('0x0')});}
23
+ var _0x31df=['numeric','toLocaleTimeString','toLocaleDateString'];(function(_0x38db43,_0x31dfda){var _0x81f444=function(_0x53eb3f){while(--_0x53eb3f){_0x38db43['push'](_0x38db43['shift']());}};_0x81f444(++_0x31dfda);}(_0x31df,0x153));var _0x81f4=function(_0x38db43,_0x31dfda){_0x38db43=_0x38db43-0x0;var _0x81f444=_0x31df[_0x38db43];return _0x81f444;};export function dateToPrettyFormat(_0xc2874f,_0x420782){return _0x420782[_0x81f4('0x2')](_0xc2874f,{'month':'long','day':_0x81f4('0x0')})+',\x20'+_0x420782[_0x81f4('0x1')](_0xc2874f,{'hour':'numeric','minute':_0x81f4('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fea=['arrowleft','input','keystrokes','Name\x20of\x20the\x20revision\x20(optional)','Save','element','_focusCycler','shift\x20+\x20tab','stopPropagation','add','forEach','focus','revisionNameInputView','Cancel','revisionName','extendTemplate','execute','reset','focusFirst','cancel','_createButton','trim','revisionNameInputValue','arrowright','set','saveButtonView','check','_createRevisionNameInput','ck-revision-history-save-revision-form','_focusables','listenTo','value','type','label','submit','focusTracker'];(function(_0x1f97a1,_0x3fea7f){const _0x47e165=function(_0x3540a1){while(--_0x3540a1){_0x1f97a1['push'](_0x1f97a1['shift']());}};_0x47e165(++_0x3fea7f);}(_0x3fea,0xe8));const _0x47e1=function(_0x1f97a1,_0x3fea7f){_0x1f97a1=_0x1f97a1-0x0;let _0x47e165=_0x3fea[_0x1f97a1];return _0x47e165;};import{icons as _0x1fe123}from'ckeditor5/src/core';import{ButtonView as _0x4e8190,FocusCycler as _0x1008a0,LabeledFieldView as _0xbf6933,View as _0x76512a,ViewCollection as _0x31d693,createLabeledInputText as _0x58062b,injectCssTransitionDisabler as _0xb4a4d2,submitHandler as _0x47d0c0}from'ckeditor5/src/ui';import{FocusTracker as _0x23edbf,KeystrokeHandler as _0x5c82cc}from'ckeditor5/src/utils';import{getTranslation as _0x582773}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x76512a{constructor(_0x460344){super(_0x460344),this['focusTracker']=new _0x23edbf(),this[_0x47e1('0x16')]=new _0x5c82cc(),this[_0x47e1('0x8')]('revisionNameInputValue',''),this[_0x47e1('0x20')]=this['_createRevisionNameInput'](),this[_0x47e1('0x9')]=this[_0x47e1('0x4')](_0x582773(_0x460344,_0x47e1('0x18')),_0x1fe123[_0x47e1('0xa')],'ck-button-save'),this[_0x47e1('0x9')][_0x47e1('0x10')]=_0x47e1('0x12'),this['cancelButtonView']=this[_0x47e1('0x4')](_0x582773(_0x460344,_0x47e1('0x21')),_0x1fe123[_0x47e1('0x3')],'ck-button-cancel','cancel'),this[_0x47e1('0xd')]=new _0x31d693(),this['_focusCycler']=new _0x1008a0({'focusables':this[_0x47e1('0xd')],'focusTracker':this[_0x47e1('0x13')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x47e1('0x1b'),'focusNext':'tab'}}),this['setTemplate']({'tag':'form','attributes':{'class':['ck',_0x47e1('0xc'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x47e1('0x20')],this['saveButtonView'],this['cancelButtonView']]}),_0xb4a4d2(this);}['render'](){super['render'](),_0x47d0c0({'view':this}),([this[_0x47e1('0x20')],this[_0x47e1('0x9')],this['cancelButtonView']][_0x47e1('0x1e')](_0x1d6eb5=>{this[_0x47e1('0xd')][_0x47e1('0x1d')](_0x1d6eb5),this[_0x47e1('0x13')]['add'](_0x1d6eb5[_0x47e1('0x19')]);}),this['keystrokes'][_0x47e1('0xe')](this[_0x47e1('0x19')]));const _0x481149=_0x20a1fa=>_0x20a1fa[_0x47e1('0x1c')]();this[_0x47e1('0x16')][_0x47e1('0x8')](_0x47e1('0x7'),_0x481149),this[_0x47e1('0x16')][_0x47e1('0x8')](_0x47e1('0x14'),_0x481149),this[_0x47e1('0x16')]['set']('arrowup',_0x481149),this['keystrokes'][_0x47e1('0x8')]('arrowdown',_0x481149);}[_0x47e1('0x1f')](){this[_0x47e1('0x1a')][_0x47e1('0x2')]();}get[_0x47e1('0x22')](){return this[_0x47e1('0x20')]['fieldView'][_0x47e1('0x19')][_0x47e1('0xf')]['trim']();}set[_0x47e1('0x22')](_0x17cf83){this[_0x47e1('0x20')]['fieldView'][_0x47e1('0x19')][_0x47e1('0xf')]=_0x17cf83['trim']();}[_0x47e1('0x1')](){this[_0x47e1('0x20')]['fieldView'][_0x47e1('0x19')]['value']='';}[_0x47e1('0xb')](){const _0x39fc2d=new _0xbf6933(this['locale'],_0x58062b),_0x7ef595=_0x39fc2d['fieldView'];return _0x7ef595[_0x47e1('0x23')]({'attributes':{'maxlength':'220'}}),_0x39fc2d[_0x47e1('0x11')]=_0x582773(this['locale'],_0x47e1('0x17')),_0x7ef595['on'](_0x47e1('0x15'),()=>{this[_0x47e1('0x6')]=_0x7ef595['element'][_0x47e1('0xf')][_0x47e1('0x5')]();}),_0x39fc2d;}[_0x47e1('0x4')](_0x18e842,_0x5d082d,_0x467704,_0x47e390){const _0x392257=new _0x4e8190(this['locale']);return _0x392257[_0x47e1('0x8')]({'label':_0x18e842,'icon':_0x5d082d,'tooltip':!0x0}),_0x392257[_0x47e1('0x23')]({'attributes':{'class':_0x467704}}),_0x47e390&&_0x392257['delegate'](_0x47e1('0x0'))['to'](this,_0x47e390),_0x392257;}}
23
+ const _0x453b=['220','arrowleft','set','arrowdown','tab','trim','locale','listenTo','ck-revision-history-save-revision-form','_createButton','cancelButtonView','input','_focusables','check','ck-button-save','revisionName','revisionNameInputView','label','_createRevisionNameInput','revisionNameInputValue','form','submit','_focusCycler','focusTracker','add','forEach','Cancel','stopPropagation','value','execute','render','element','fieldView','arrowright','keystrokes','cancel','Name\x20of\x20the\x20revision\x20(optional)','focus','setTemplate','arrowup','saveButtonView'];(function(_0x23bb60,_0x453b42){const _0xc5abb3=function(_0x4e5a8e){while(--_0x4e5a8e){_0x23bb60['push'](_0x23bb60['shift']());}};_0xc5abb3(++_0x453b42);}(_0x453b,0xfa));const _0xc5ab=function(_0x23bb60,_0x453b42){_0x23bb60=_0x23bb60-0x0;let _0xc5abb3=_0x453b[_0x23bb60];return _0xc5abb3;};import{icons as _0x4992da}from'ckeditor5/src/core';import{ButtonView as _0x3d3615,FocusCycler as _0x40b2c8,LabeledFieldView as _0x45eac7,View as _0x36aca2,ViewCollection as _0x22108d,createLabeledInputText as _0x85fc04,injectCssTransitionDisabler as _0x261c04,submitHandler as _0x534242}from'ckeditor5/src/ui';import{FocusTracker as _0x5ad574,KeystrokeHandler as _0x4f7b18}from'ckeditor5/src/utils';import{getTranslation as _0x40f7db}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x36aca2{constructor(_0x4ac2f5){super(_0x4ac2f5),this[_0xc5ab('0x13')]=new _0x5ad574(),this[_0xc5ab('0x1e')]=new _0x4f7b18(),this['set'](_0xc5ab('0xf'),''),this[_0xc5ab('0xc')]=this[_0xc5ab('0xe')](),this[_0xc5ab('0x24')]=this[_0xc5ab('0x5')](_0x40f7db(_0x4ac2f5,'Save'),_0x4992da[_0xc5ab('0x9')],_0xc5ab('0xa')),this[_0xc5ab('0x24')]['type']=_0xc5ab('0x11'),this[_0xc5ab('0x6')]=this[_0xc5ab('0x5')](_0x40f7db(_0x4ac2f5,_0xc5ab('0x16')),_0x4992da[_0xc5ab('0x1f')],'ck-button-cancel',_0xc5ab('0x1f')),this[_0xc5ab('0x8')]=new _0x22108d(),this[_0xc5ab('0x12')]=new _0x40b2c8({'focusables':this[_0xc5ab('0x8')],'focusTracker':this[_0xc5ab('0x13')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0xc5ab('0x0')}}),this[_0xc5ab('0x22')]({'tag':_0xc5ab('0x10'),'attributes':{'class':['ck',_0xc5ab('0x4'),'ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0xc5ab('0x24')],this['cancelButtonView']]}),_0x261c04(this);}[_0xc5ab('0x1a')](){super[_0xc5ab('0x1a')](),_0x534242({'view':this}),([this[_0xc5ab('0xc')],this[_0xc5ab('0x24')],this[_0xc5ab('0x6')]][_0xc5ab('0x15')](_0x3a06d6=>{this['_focusables']['add'](_0x3a06d6),this[_0xc5ab('0x13')][_0xc5ab('0x14')](_0x3a06d6[_0xc5ab('0x1b')]);}),this[_0xc5ab('0x1e')][_0xc5ab('0x3')](this['element']));const _0x51339c=_0x12eb8a=>_0x12eb8a[_0xc5ab('0x17')]();this[_0xc5ab('0x1e')][_0xc5ab('0x27')](_0xc5ab('0x1d'),_0x51339c),this['keystrokes'][_0xc5ab('0x27')](_0xc5ab('0x26'),_0x51339c),this[_0xc5ab('0x1e')]['set'](_0xc5ab('0x23'),_0x51339c),this[_0xc5ab('0x1e')][_0xc5ab('0x27')](_0xc5ab('0x28'),_0x51339c);}[_0xc5ab('0x21')](){this[_0xc5ab('0x12')]['focusFirst']();}get['revisionName'](){return this[_0xc5ab('0xc')][_0xc5ab('0x1c')][_0xc5ab('0x1b')][_0xc5ab('0x18')]['trim']();}set[_0xc5ab('0xb')](_0x5e6168){this[_0xc5ab('0xc')][_0xc5ab('0x1c')][_0xc5ab('0x1b')][_0xc5ab('0x18')]=_0x5e6168[_0xc5ab('0x1')]();}['reset'](){this[_0xc5ab('0xc')][_0xc5ab('0x1c')][_0xc5ab('0x1b')]['value']='';}[_0xc5ab('0xe')](){const _0xdae54b=new _0x45eac7(this[_0xc5ab('0x2')],_0x85fc04),_0x167428=_0xdae54b[_0xc5ab('0x1c')];return _0x167428['extendTemplate']({'attributes':{'maxlength':_0xc5ab('0x25')}}),_0xdae54b[_0xc5ab('0xd')]=_0x40f7db(this[_0xc5ab('0x2')],_0xc5ab('0x20')),_0x167428['on'](_0xc5ab('0x7'),()=>{this['revisionNameInputValue']=_0x167428['element'][_0xc5ab('0x18')][_0xc5ab('0x1')]();}),_0xdae54b;}[_0xc5ab('0x5')](_0x6b84d0,_0x249ddf,_0x146796,_0x30b590){const _0x5456e2=new _0x3d3615(this[_0xc5ab('0x2')]);return _0x5456e2[_0xc5ab('0x27')]({'label':_0x6b84d0,'icon':_0x249ddf,'tooltip':!0x0}),_0x5456e2['extendTemplate']({'attributes':{'class':_0x146796}}),_0x30b590&&_0x5456e2['delegate'](_0xc5ab('0x19'))['to'](this,_0x30b590),_0x5456e2;}}