@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231019.0 → 0.0.0-nightly-20231021.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 _0x2058=['conversion','view','_threeWayMerge','POSITIVE_INFINITY','addClass','_changeIdToChange','_changeView','revision-suggestion','parent','data-change-id','_revisions','elementStart','ck-suggestion-preview-marker-','getItems','currentChangeNumber','sort','getRoot','startIndex','element','indexOf','loadRevisionData','_balloon','getRevisionData','markerName','_removeRevisionMarkers','consumable','adapter','isAttached','nextPosition','change:numberOfChanges','target','_getViewForChange','isBlock','isReady','getCustomProperty','getRevision','processor','removeClass','attachChange','comment','first','revision-suggestion:','marked','editingDowncast','forEach','mapViewToDom','_fixObsoleteTags','type','isOnRoot','_step','hasAttribute','checkAttribute','setAttribute','isAtEnd','reconvertMarker','modelRange','deletions','_processTape','splice','bottom','resolve','code','has','left','removeMarker:revision','element:pre','roots','compare','done','parse','collaboration.channelId','change:isReady','revision','merge','isNavigationMode','wrap','_makeTape','isAdded','startsWith','ck-suggestion-preview-marker','rootName','destroy','schema','low','isAddSuggestion','for','addMarker:revision','slice','diff','_markMarkers','revisionHistoryLabel','config','split','end','toViewRange','index','createPositionBefore','showPreviousChange','deletion','_cleanUp','_cleanMarkers','insertion','useFillerType','unbindElementFromMarkerName','createRange','ck-suggestion-marker-merge','addMarker:revision-suggestion:insertion','ck-editor__editable__overlay','_setDistance','span','_makeModelFromViewString','suggestion:','removeMarker','newRevisionId','values','createRangeIn','_findChangeIdFromDomTarget','side','detachRoot','shift','RevisionViewer','getClientRects','get','_markMismatchedRemovedTags','markerRange','endIndex','find','mapper','unshift','oldRevisionId','getRevisionRootsAttributes','revision:','downcastDispatcher','ck-suggestion-marker-','includes','isRemoveSuggestion','add','isRemoved','mousedown','bindElementToMarker','isEnabled','push','addHighlight','_markInsertions','markerToData','removeAttribute','dataToMarker','pairId','changes','getIndex','return','item','_data','insert','createPositionFromPath','diffData','_markSuggestions','isIncorrect','_setChanges','clear','toViewPosition','isCollapsed','markerToHighlight','flat','activeView','attributesAfter','change:isEnabled','mouseover','right','_update','distance','WidgetToolbarRepository','next','default','_activeViewTarget','addMarker:revision-suggestion:deletion','isSuggestion','editing','hasClass','high','previousPosition','_sortAndFilterDiffChanges','insertions','markerNameToElements','filter','text','observeMarkers','restoreRevision','listenTo','isAfter','refresh','domEvent','nodeAfter','_removeUnsupportedChanges','changeId','writer','getChild','suggestion','forceDisabled','elementEnd','isEqual','model','isBefore','_makeModelFromTape','data','toModel','level','_getRevisionsRange','markersStart','affectsData','highest','repository','attributesBefore','_appendChild','change:activeView','isObject','toViewElement','vid_end','then','start','length','removeMarker:revision-suggestion','markersEnd','getRootNames','enableReadOnlyMode','_removeMissingPairs','ck-suggestion-marker-split','string','_joinTapes','vid_start','_getViewObj','isLimit','plugins','getDomRoot','change:activeChange','getAttributes','abs','name','ck-revision-history-root--active','keys','showStack','revisionHistoryAttachChange','set','_getChangeFromId','_refreshStartEndIndex','addRoot','getWalker','addRevision','revision-viewer','_setConversion','showNextChange','-new','concat','isAtStart','elementToAttribute','viewItem','isContent','attribute:vid','_getDiff','map','from','authors','requires','children','editor','userId','commands','activeChange','vid','consume','isInline','remove','getAttribute','upcast','delete','error','enqueueChange','dataDowncast','attributes','createUIElement','createAttributeElement','markers','nextSibling','change','ck-suggestion-marker--active','forward','revision-comment:','document'];(function(_0x573872,_0x205895){const _0x4cae7e=function(_0x1b8eaa){while(--_0x1b8eaa){_0x573872['push'](_0x573872['shift']());}};_0x4cae7e(++_0x205895);}(_0x2058,0x1d2));const _0x4cae=function(_0x573872,_0x205895){_0x573872=_0x573872-0x0;let _0x4cae7e=_0x2058[_0x573872];return _0x4cae7e;};import{Plugin as _0x3312f7,Command as _0x6aaecc}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x275eab}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4ccb97}from'ckeditor5/src/ui';import{DocumentFragment as _0x1c5439,Element as _0x48363b,Text as _0x5b4aab,ViewDocumentFragment as _0x59097e,ViewText as _0x4d154a,ViewElement as _0x3fc0db,ViewContainerElement as _0x3ff8b4,ViewAttributeElement as _0x258169,ViewEmptyElement as _0x5df84a,ViewRawElement as _0x4e99bf,ViewUIElement as _0x51400b}from'ckeditor5/src/engine';import{Users as _0x4c8fc8,getMarkerDomElement as _0x41668f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2aa001 from'./ui/revisionviewer/changedetailsview';import _0x5b0719 from'./revisionsrepository';import _0x2d657f from'./changeitem';import{default as _0x4d7ec0}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x31bbc2}from'lodash-es';const tt={'c':_0x3ff8b4,'a':_0x258169,'e':_0x5df84a,'r':_0x4e99bf,'u':_0x51400b};export default class d extends _0x3312f7{static get['pluginName'](){return _0x4cae('0xe6');}static get[_0x4cae('0x54')](){return[_0x4c8fc8,_0x4ccb97,_0x5b0719];}constructor(_0xdb42cf){super(_0xdb42cf),this[_0x4cae('0x21')]=this[_0x4cae('0x56')][_0x4cae('0x36')][_0x4cae('0xe8')]('RevisionsRepository'),this['set']('activeChange',null),this['set'](_0x4cae('0x112'),null),this[_0x4cae('0x11c')]=null,this[_0x4cae('0x40')](_0x4cae('0xc6'),null),this['set'](_0x4cae('0x8f'),!0x1),this[_0x4cae('0x40')]('isEnabled',!0x0),this['on'](_0x4cae('0x114'),(_0x236d61,_0x3ae15b,_0x8e3473)=>{this[_0x4cae('0x59')]=null,this[_0x4cae('0x112')]=null,this['editor']['editing']['view'][_0x4cae('0x69')](_0xf56491=>{for(const _0x5d170e of this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0x6f')][_0x4cae('0x6d')][_0x4cae('0xb0')])_0x8e3473?_0xf56491[_0x4cae('0x93')](_0x4cae('0xd9'),_0x5d170e):_0xf56491[_0x4cae('0x72')](_0x4cae('0xd9'),_0x5d170e);});}),this['bind'](_0x4cae('0xb8'))['to'](this,_0x4cae('0x59'),_0x48c6c1=>null!==_0x48c6c1),this['bind'](_0x4cae('0x7c'))['to'](this,_0x4cae('0x8f'),this,_0x4cae('0xc6'),this,_0x4cae('0x59'),(_0x472450,_0x576261,_0x42a178)=>_0x472450&&_0x42a178?_0x576261[_0x4cae('0x102')]['getIndex'](_0x42a178):0x0),this['bind']('numberOfChanges')['to'](this,_0x4cae('0x8f'),this,'diff',(_0x29b33b,_0x4ac747)=>_0x29b33b?_0x4ac747['changes'][_0x4cae('0x2a')]:0x0),this[_0x4cae('0x74')]=null,this[_0x4cae('0x73')]=new Map(),this[_0x4cae('0x88')]=null,this[_0x4cae('0x83')]=this[_0x4cae('0x56')][_0x4cae('0x36')][_0x4cae('0xe8')](_0x4ccb97);}['init'](){const _0x49c1c0=this[_0x4cae('0x56')],_0x31d3cb=new ShowChangeCommand(_0x49c1c0,{'direction':'backward'}),_0x2b6121=new ShowChangeCommand(_0x49c1c0,{'direction':_0x4cae('0x6b')});(_0x49c1c0[_0x4cae('0x58')][_0x4cae('0xf6')](_0x4cae('0xcf'),_0x31d3cb),_0x49c1c0['commands'][_0x4cae('0xf6')](_0x4cae('0x48'),_0x2b6121),_0x49c1c0[_0x4cae('0x58')]['add'](_0x4cae('0x9'),new RestoreRevisionCommand(_0x49c1c0)),this['on'](_0x4cae('0x8b'),()=>{_0x31d3cb['refresh'](),_0x2b6121['refresh']();}),this[_0x4cae('0x47')](),this['_initInteractions'](),_0x49c1c0[_0x4cae('0x2e')](_0x4cae('0x46')),_0x49c1c0[_0x4cae('0x36')][_0x4cae('0xac')]('WidgetToolbarRepository'))&&_0x49c1c0[_0x4cae('0x36')]['get'](_0x4cae('0x119'))[_0x4cae('0x14')]('revision-viewer');}async[_0x4cae('0x84')](_0x231f16){await this[_0x4cae('0x82')](_0x231f16);const _0x296d12={};for(const _0x1ac49f in _0x231f16[_0x4cae('0x109')]){if(_0x231f16[_0x4cae('0x109')][_0x1ac49f][_0x4cae('0x94')]&&!_0x231f16[_0x4cae('0x109')][_0x1ac49f]['attachChange']['isAttached'])continue;const _0x509b60=this[_0x4cae('0x86')](JSON['parse'](_0x231f16[_0x4cae('0x109')][_0x1ac49f]['insertions'])),_0x580bb1=this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0x6f')][_0x4cae('0x6d')],_0x3bfa62=new _0x59097e(_0x580bb1,_0x509b60['map'](_0x139707=>this[_0x4cae('0x34')](_0x139707)));this[_0x4cae('0x56')][_0x4cae('0x1a')][_0x4cae('0x92')][_0x4cae('0xd4')](_0x4cae('0x98')),_0x296d12[_0x1ac49f]=this['editor'][_0x4cae('0x1a')][_0x4cae('0x92')]['toData'](_0x3bfa62),this['editor'][_0x4cae('0x1a')]['processor'][_0x4cae('0xd4')](_0x4cae('0x11b'));}return _0x296d12;}async[_0x4cae('0xf0')](_0x1db74f){await this[_0x4cae('0x82')](_0x1db74f);const _0x57c72b={};for(const _0x488593 in _0x1db74f[_0x4cae('0x109')])_0x1db74f[_0x4cae('0x109')][_0x488593][_0x4cae('0x94')]&&!_0x1db74f[_0x4cae('0x109')][_0x488593]['attachChange'][_0x4cae('0x89')]||(_0x57c72b[_0x488593]=_0x1db74f[_0x4cae('0x109')][_0x488593][_0x4cae('0x113')]||{});return _0x57c72b;}['_removeRevisionMarkers'](_0x48dd26){return(_0x48dd26=_0x48dd26['filter'](_0x10af1d=>!_0x10af1d[_0x4cae('0x3b')]||'revision-start'!==_0x10af1d[_0x4cae('0x3b')]&&'revision-end'!==_0x10af1d[_0x4cae('0x3b')]))[_0x4cae('0x9a')](_0x27fc3c=>{'string'!=typeof _0x27fc3c&&(_0x27fc3c[_0x4cae('0x55')]=this[_0x4cae('0x86')](_0x27fc3c['children']),_0x27fc3c[_0x4cae('0x64')]=_0x27fc3c['attributes'][_0x4cae('0x6')](_0x142aa8=>!_0x142aa8[0x0][_0x4cae('0xbc')]('data-revision-')));}),_0x48dd26;}async[_0x4cae('0xb1')](_0x2af203,_0x291713,_0x4c61f7=!0x1){if(!this[_0x4cae('0xfa')])return;const _0x1d418b=this['diff'],_0x46ca0e=this[_0x4cae('0x21')],_0x31b348=_0x4cae('0x31')==typeof _0x2af203?_0x46ca0e[_0x4cae('0x91')](_0x2af203):_0x2af203,_0xcebc3f=_0x4cae('0x31')==typeof _0x291713?_0x46ca0e[_0x4cae('0x91')](_0x291713):_0x291713,_0x188b17=_0x31b348['id'],_0x8c3b2c=_0xcebc3f?_0xcebc3f['id']:null;if(!_0x4c61f7&&this[_0x4cae('0xc6')]&&this[_0x4cae('0xc6')]['newRevisionId']===_0x188b17&&this['diff'][_0x4cae('0xef')]===_0x8c3b2c)return Promise[_0x4cae('0xaa')]();this[_0x4cae('0x8f')]=!0x1,this[_0x4cae('0x112')]=null,this[_0x4cae('0x59')]=null,this[_0x4cae('0xc6')]=new _0x4d7ec0(_0x188b17,_0x8c3b2c);const _0xa0f44c=this['_getRevisionsRange'](_0x31b348,_0xcebc3f,!0x0)[_0x4cae('0x51')](_0x1982df=>this[_0x4cae('0x82')](_0x1982df));return _0xa0f44c[_0x4cae('0xfb')](new Promise(_0x2f36ae=>{setTimeout(_0x2f36ae,0x14);})),Promise['all'](_0xa0f44c)[_0x4cae('0x28')](()=>{if(!this[_0x4cae('0xfa')])return;this['_cleanUp']();const _0x11c5c2=this[_0x4cae('0x50')](_0x188b17,_0x8c3b2c);for(const _0x251f89 of _0x11c5c2['changes'])this[_0x4cae('0x73')][_0x4cae('0x40')](_0x251f89['id'],_0x251f89);this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0x62')]({'isUndoable':!0x1},_0x549a2e=>{for(const _0x5f21e3 of this['editor']['model'][_0x4cae('0x6d')][_0x4cae('0x2d')]())_0x549a2e[_0x4cae('0xe4')](_0x5f21e3);for(const _0x2cbe74 of Object[_0x4cae('0x3d')](_0x11c5c2[_0x4cae('0x17')])){const _0x4b05a7=_0x549a2e[_0x4cae('0x43')](_0x2cbe74);for(const _0x56f786 of Object[_0x4cae('0x3d')](_0x11c5c2[_0x4cae('0x64')][_0x2cbe74]))_0x549a2e[_0x4cae('0xa2')](_0x56f786,_0x11c5c2[_0x4cae('0x64')][_0x2cbe74][_0x56f786],_0x4b05a7);_0x549a2e[_0x4cae('0x107')](_0x11c5c2['model'][_0x2cbe74],_0x4b05a7,0x0);}}),this[_0x4cae('0xc6')][_0x4cae('0x10c')](this[_0x4cae('0x3')](_0x11c5c2[_0x4cae('0x102')])),this[_0x4cae('0x8f')]=!0x0;})['catch'](_0x24458c=>{console[_0x4cae('0x61')](_0x24458c),this[_0x4cae('0xd1')](),_0x1d418b&&(this[_0x4cae('0xc6')]=_0x1d418b),this[_0x4cae('0x8f')]=!0x0;});}['addRevisionData'](_0xf07281,_0x57efec){const _0x2d3730=this['repository']['createRevision'](_0xf07281);return _0x2d3730['on']('_update',(_0x4afd50,_0x2222e3,_0x4ca263)=>_0x57efec(_0x2222e3,_0x4ca263,_0x2d3730)),this[_0x4cae('0x21')][_0x4cae('0x45')](_0x2d3730),_0x2d3730;}[_0x4cae('0x82')](_0x5a7ed1){if(!_0x5a7ed1||_0x5a7ed1['diffData'])return Promise[_0x4cae('0xaa')]();{const _0x15e69c=this['editor'][_0x4cae('0xc9')]['get'](_0x4cae('0xb4'));return this[_0x4cae('0x88')]['getRevision']({'channelId':_0x15e69c,'revisionId':_0x5a7ed1['id']})[_0x4cae('0x28')](_0x308d2f=>{_0x5a7ed1[_0x4cae('0x117')]({'diffData':_0x308d2f[_0x4cae('0x109')]},!0x0);});}}[_0x4cae('0xd1')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x4cae('0x74')]&&this[_0x4cae('0x74')][_0x4cae('0xbf')](),this[_0x4cae('0x74')]=null,this[_0x4cae('0x73')][_0x4cae('0x10d')](),this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0x62')]({'isUndoable':!0x1},_0x16a6b8=>{for(const _0x4c9ce6 of this['editor'][_0x4cae('0x17')][_0x4cae('0x6d')][_0x4cae('0x2d')]())_0x16a6b8[_0x4cae('0xe4')](_0x4c9ce6);});}[_0x4cae('0x3')](_0x495860){const _0x40f90e=[],_0x4257f1=new Map();for(const _0xdc7971 of this[_0x4cae('0x56')][_0x4cae('0x17')]['document']['getRootNames']()){const _0x937396=this['editor'][_0x4cae('0x11f')][_0x4cae('0x6f')][_0x4cae('0x37')](_0xdc7971);if(!_0x937396)continue;const _0x574e02=_0x937396[_0x4cae('0xe7')]()['item'](0x0);_0x574e02&&(_0x40f90e[_0x4cae('0xfb')](_0xdc7971),_0x4257f1['set'](_0xdc7971,_0x574e02));}return _0x40f90e[_0x4cae('0x7d')]((_0xc091cf,_0x1c9280)=>{const _0x5bac79=_0x4257f1['get'](_0xc091cf),_0x8b0a9f=_0x4257f1[_0x4cae('0xe8')](_0x1c9280);return _0x5bac79['y']-_0x8b0a9f['y']||_0x5bac79['x']-_0x8b0a9f['x'];}),(_0x495860=_0x495860[_0x4cae('0x6')](_0x329312=>_0x40f90e[_0x4cae('0xf4')](_0x329312['rootName'])))[_0x4cae('0x7d')]((_0x57f678,_0x1e09b7)=>_0x40f90e[_0x4cae('0x81')](_0x57f678[_0x4cae('0xbe')])-_0x40f90e[_0x4cae('0x81')](_0x1e09b7[_0x4cae('0xbe')])),_0x495860;}[_0x4cae('0xba')](_0x9b7893){const _0x44609=Array[_0x4cae('0x52')](_0x9b7893['markers'])[_0x4cae('0x6')](([_0x13fae3,_0x497c1e])=>_0x13fae3[_0x4cae('0xbc')](_0x4cae('0xf1'))&&!_0x497c1e[_0x4cae('0x10f')]),_0x1ddb52=Array[_0x4cae('0x52')](this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0xe1')](_0x9b7893)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x44609[_0x4cae('0x2a')])for(const _0x45af99 of _0x1ddb52){const [_0x447249,_0x7e3dd7]=_0x44609[0x0],[,_0x380da6,_0x50f8e5]=_0x447249[_0x4cae('0xca')](':');if(_0x7e3dd7[_0x4cae('0xcb')][_0x4cae('0x16')](_0x45af99['nextPosition'])&&_0x44609['shift'](),(_0x45af99[_0x4cae('0x2')][_0x4cae('0x16')](_0x7e3dd7[_0x4cae('0x29')])||_0x45af99[_0x4cae('0x2')][_0x4cae('0xb')](_0x7e3dd7[_0x4cae('0x29')]))&&(_0x4cae('0xd3')==_0x380da6?_0x45af99['isAdded']={'userId':_0x50f8e5}:_0x4cae('0xd0')==_0x380da6&&(_0x45af99[_0x4cae('0xf7')]={'userId':_0x50f8e5})),0x0==_0x44609[_0x4cae('0x2a')])break;}return _0x1ddb52;}['_refreshStartEndIndex'](_0x22f137){const _0x295eaf=new Map();for(let _0x38316e=0x0;_0x38316e<_0x22f137[_0x4cae('0x2a')];_0x38316e++)_0x4cae('0x7')===_0x22f137[_0x38316e][_0x4cae('0x9d')]?(_0x22f137[_0x38316e][_0x4cae('0x105')][_0x4cae('0x7f')]=_0x38316e,_0x22f137[_0x38316e]['item'][_0x4cae('0xeb')]=_0x38316e):(_0x4cae('0x79')===_0x22f137[_0x38316e][_0x4cae('0x9d')]?_0x22f137[_0x38316e][_0x4cae('0x105')][_0x4cae('0x7f')]=_0x38316e:_0x4cae('0x15')===_0x22f137[_0x38316e][_0x4cae('0x9d')]&&(_0x22f137[_0x38316e][_0x4cae('0x105')]['endIndex']=_0x38316e),_0x295eaf[_0x4cae('0x40')](_0x22f137[_0x38316e]['id'],_0x38316e));for(const _0x2fc4a4 of _0x295eaf[_0x4cae('0xe0')]())'elementStart'===_0x22f137[_0x2fc4a4][_0x4cae('0x9d')]?_0x22f137[_0x2fc4a4][_0x4cae('0x105')]['endIndex']=_0x295eaf[_0x4cae('0xe8')](_0x22f137[_0x2fc4a4]['pairId']):_0x4cae('0x15')===_0x22f137[_0x2fc4a4]['type']&&(_0x22f137[_0x2fc4a4]['item'][_0x4cae('0x7f')]=_0x295eaf[_0x4cae('0xe8')](_0x22f137[_0x2fc4a4]['pairId']));}[_0x4cae('0xa7')](_0x3e2eb7){for(let _0xf47f9b=0x0;_0xf47f9b<_0x3e2eb7['length'];_0xf47f9b++){if(_0x4cae('0x79')===_0x3e2eb7[_0xf47f9b]['type'])_0x3e2eb7[_0xf47f9b]['item']['startIndex']=_0xf47f9b;else{if(_0x4cae('0x15')===_0x3e2eb7[_0xf47f9b][_0x4cae('0x9d')]){_0x3e2eb7[_0xf47f9b][_0x4cae('0x105')][_0x4cae('0xeb')]=_0xf47f9b;const _0x17ba58=_0x3e2eb7[_0xf47f9b][_0x4cae('0x105')][_0x4cae('0x7f')];_0x3e2eb7[_0x17ba58][_0x4cae('0x101')]=_0x3e2eb7[_0xf47f9b]['id'],_0x3e2eb7[_0xf47f9b][_0x4cae('0x101')]=_0x3e2eb7[_0x17ba58]['id'];}else _0x3e2eb7[_0xf47f9b]['item']['startIndex']=_0xf47f9b,_0x3e2eb7[_0xf47f9b]['item']['endIndex']=_0xf47f9b,_0x3e2eb7[_0xf47f9b]['pairId']=null;}_0x3e2eb7[_0xf47f9b][_0x4cae('0x1e')]||(_0x3e2eb7[_0xf47f9b][_0x4cae('0x1e')]=[],_0x3e2eb7[_0xf47f9b][_0x4cae('0x2c')]=[]);}}[_0x4cae('0xfd')](_0x437400,_0x2ec651){const _0x237b8c=_0x437400[_0x4cae('0x6')](_0x190d50=>!_0x190d50[_0x4cae('0xbb')]);for(let _0x32cd25=0x0;_0x32cd25<_0x2ec651[_0x4cae('0x2a')];_0x32cd25++)_0x2ec651[_0x32cd25][_0x4cae('0xbb')]&&(_0x237b8c[_0x32cd25]['isAdded']=_0x2ec651[_0x32cd25]['isAdded']);}[_0x4cae('0xdc')](_0x5d616f){const _0x4d4fbc=JSON[_0x4cae('0xb3')](_0x5d616f),_0x3a1876=this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0x6f')]['document'],_0x26d11e=new _0x59097e(_0x3a1876,_0x4d4fbc[_0x4cae('0x51')](_0x5d3bed=>this[_0x4cae('0x34')](_0x5d3bed)));return this['editor']['data'][_0x4cae('0x1b')](_0x26d11e);}['_getViewObj'](_0x42018a){const _0x301ed2=this['editor'][_0x4cae('0x11f')]['view'][_0x4cae('0x6d')];if('string'==typeof _0x42018a)return new _0x4d154a(_0x301ed2,_0x42018a);{const _0x5cc147=_0x42018a[_0x4cae('0x55')]['map'](_0x13cfa3=>this[_0x4cae('0x34')](_0x13cfa3));return new(tt[_0x42018a[(_0x4cae('0x9d'))]]||_0x3fc0db)(_0x301ed2,_0x42018a[_0x4cae('0x3b')],_0x42018a[_0x4cae('0x64')],_0x5cc147);}}[_0x4cae('0x50')](_0x4fb2ba,_0x1d5ff9=null){const _0x593c64=this[_0x4cae('0x21')][_0x4cae('0x91')](_0x4fb2ba),_0x490c7f=_0x1d5ff9?this[_0x4cae('0x21')]['getRevision'](_0x1d5ff9):null,_0x155d27=this['_getRevisionsRange'](_0x593c64,_0x490c7f),_0x5b058d=_0x155d27[_0x155d27[_0x4cae('0x2a')]-0x1],_0x48e93b=new Map(),_0x33407d={'model':{},'attributes':{},'changes':[]},_0x567684=new Set(),_0x5666e8=new Map();for(let _0x2174e1=_0x155d27[_0x4cae('0x2a')]-0x1;_0x2174e1>=0x0;_0x2174e1--){const _0x134ddf=_0x155d27[_0x2174e1];for(const _0x4fee8f of Object['keys'](_0x134ddf['diffData']))if(_0x134ddf[_0x4cae('0x109')][_0x4fee8f][_0x4cae('0x94')]){const _0x589435=_0x134ddf[_0x4cae('0x109')][_0x4fee8f][_0x4cae('0x94')];_0x589435['isAttached']?(_0x567684['add'](_0x4fee8f),_0x5666e8[_0x4cae('0xac')](_0x4fee8f)&&_0x5666e8[_0x4cae('0xe8')](_0x4fee8f)[_0x4cae('0x57')]==_0x589435[_0x4cae('0x57')]?_0x5666e8['delete'](_0x4fee8f):_0x5666e8['set'](_0x4fee8f,_0x589435)):_0x5666e8[_0x4cae('0xac')](_0x4fee8f)?(_0x567684[_0x4cae('0x60')](_0x4fee8f),_0x5666e8[_0x4cae('0x60')](_0x4fee8f)):(_0x567684['add'](_0x4fee8f),_0x5666e8[_0x4cae('0x40')](_0x4fee8f,_0x589435));}else _0x567684[_0x4cae('0xf6')](_0x4fee8f);}for(const _0x1cc32a of _0x567684){const _0x576d12=_0x5666e8[_0x4cae('0xac')](_0x1cc32a)&&!_0x5666e8['get'](_0x1cc32a)[_0x4cae('0x89')];let _0x21a300=_0x576d12?_0x155d27[_0x4cae('0x2a')]-0x1:0x0;const _0x23774d=_0x576d12?-0x1:0x1;for(;_0x155d27[_0x21a300];){const _0x3902e6=_0x155d27[_0x21a300];if(_0x3902e6[_0x4cae('0x109')][_0x1cc32a]){const _0x23869c=_0x576d12?_0x3902e6[_0x4cae('0x109')][_0x1cc32a][_0x4cae('0x22')]:_0x3902e6[_0x4cae('0x109')][_0x1cc32a][_0x4cae('0x113')];_0x33407d[_0x4cae('0x64')][_0x1cc32a]=_0x23869c?_0x31bbc2(_0x23869c):{};break;}_0x21a300+=_0x23774d;}}for(const _0x346757 of _0x155d27){_0x346757[_0x4cae('0x17')]={};for(const _0x49530f of _0x346757[_0x4cae('0x53')])_0x48e93b[_0x4cae('0x40')](_0x49530f['id'],_0x49530f);for(const _0xb9b63d of _0x567684){const _0x162918=_0x346757['diffData'][_0xb9b63d]?_0x346757[_0x4cae('0x109')][_0xb9b63d][_0x4cae('0x4')]:'[]',_0x3e9142=_0x346757['diffData'][_0xb9b63d]?_0x346757[_0x4cae('0x109')][_0xb9b63d][_0x4cae('0xa6')]:'[]';_0x346757[_0x4cae('0x17')][_0xb9b63d]={'insertions':this['_makeModelFromViewString'](_0x162918),'deletions':this['_makeModelFromViewString'](_0x3e9142)};}}for(const _0x14f81c of _0x567684){let _0x2bcbe9=null,_0x2cd8ce=0x0;const _0x352540=new Map(Array[_0x4cae('0x52')](_0x593c64['model'][_0x14f81c]['insertions'][_0x4cae('0x67')])[_0x4cae('0x6')](([_0x336b83])=>!_0x336b83[_0x4cae('0xbc')](_0x4cae('0xf1'))));let _0x27fc18=0x0;for(const _0x51331a of _0x155d27){const _0x1ff894=this['_makeTape'](_0x51331a[_0x4cae('0x17')][_0x14f81c][_0x4cae('0x4')]);_0x51331a==_0x593c64?(_0x2bcbe9=_0x1ff894,_0x2cd8ce=_0x2bcbe9[_0x4cae('0x2a')],_0x2bcbe9['forEach'](_0x24e24f=>{_0x24e24f['id']=_0x27fc18++;}),this[_0x4cae('0xa7')](_0x2bcbe9)):this[_0x4cae('0xfd')](_0x2bcbe9,_0x1ff894);const _0x5d2513=_0x2bcbe9['filter'](_0x4fcbc9=>!_0x4fcbc9[_0x4cae('0xbb')])[_0x4cae('0x51')](_0x7860c1=>_0x7860c1['id']);let _0x315a79=0x0;const _0x4880a2=this[_0x4cae('0xba')](_0x51331a['model'][_0x14f81c][_0x4cae('0xa6')]);_0x4880a2['forEach'](_0x36f9cb=>{_0x36f9cb[_0x4cae('0xf7')]?_0x36f9cb['id']=_0x2cd8ce++:_0x36f9cb['id']=_0x5d2513[_0x315a79++];}),this[_0x4cae('0xa7')](_0x4880a2),this['_setDistance'](_0x2bcbe9,_0x4cae('0xbb')),this[_0x4cae('0xda')](_0x4880a2,_0x4cae('0xf7')),_0x51331a==_0x593c64&&this[_0x4cae('0xc7')](_0x2bcbe9,_0x352540),_0x2bcbe9=this['_joinTapes'](_0x2bcbe9,_0x4880a2),this[_0x4cae('0x42')](_0x2bcbe9),this[_0x4cae('0xda')](_0x2bcbe9,_0x4cae('0xf7'));}_0x2bcbe9=_0x2bcbe9[_0x4cae('0x6')](_0x2d98d4=>!(_0x2d98d4[_0x4cae('0xbb')]&&_0x2d98d4['isRemoved']));const _0x3b764c=new Map(_0x5b058d[_0x4cae('0x17')][_0x14f81c][_0x4cae('0xa6')][_0x4cae('0x67')]),_0x3fa81f=new Set(_0x352540[_0x4cae('0x3d')]());for(const _0x40407a of _0x3b764c[_0x4cae('0x3d')]())_0x3fa81f['delete'](_0x40407a);this[_0x4cae('0x10a')](_0x2bcbe9,_0x3fa81f),this[_0x4cae('0x9c')](_0x2bcbe9),_0x2bcbe9=this[_0x4cae('0x2f')](_0x2bcbe9),_0x2bcbe9=this[_0x4cae('0xe9')](_0x2bcbe9),_0x2bcbe9=this[_0x4cae('0xf')](_0x2bcbe9);const {root:_0x2b3c85,changes:_0x2321b0}=this[_0x4cae('0x19')](_0x2bcbe9,_0x48e93b,_0x14f81c);_0x33407d[_0x4cae('0x17')][_0x14f81c]=_0x2b3c85;const _0x546f62=_0x5666e8[_0x4cae('0xe8')](_0x14f81c);if(_0x546f62){const _0x1a5d77=_0x48e93b['get'](_0x546f62[_0x4cae('0x57')]),_0x5c1234=new _0x2d657f({'author':_0x1a5d77,'type':_0x546f62[_0x4cae('0x89')]?_0x4cae('0xf6'):_0x4cae('0x5d'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x14f81c});_0x2321b0['unshift'](_0x5c1234),_0x33407d[_0x4cae('0x64')][_0x14f81c][_0x4cae('0x3f')]=_0x5c1234['id'];}_0x33407d[_0x4cae('0x102')]=_0x33407d[_0x4cae('0x102')]['concat'](_0x2321b0);}return _0x33407d;}[_0x4cae('0xc7')](_0x516785,_0x310bdc){for(let _0x1acce6=0x0;_0x1acce6<_0x516785[_0x4cae('0x2a')];_0x1acce6++)for(const [_0x58b78d,_0x77079f]of _0x310bdc)_0x77079f['start'][_0x4cae('0x16')](_0x516785[_0x1acce6][_0x4cae('0x2')])&&_0x516785[_0x1acce6][_0x4cae('0x1e')][_0x4cae('0xfb')](_0x58b78d),_0x77079f['end'][_0x4cae('0x16')](_0x516785[_0x1acce6][_0x4cae('0x8a')])&&_0x516785[_0x1acce6][_0x4cae('0x2c')]['push'](_0x58b78d);}[_0x4cae('0x32')](_0x47fd48,_0x439543){let _0x7aa96e=[],_0x4f2898=0x0,_0x42fb72=0x0;for(;_0x4f2898<_0x47fd48[_0x4cae('0x2a')]||_0x42fb72<_0x439543[_0x4cae('0x2a')];){const _0x464817=_0x47fd48[_0x4f2898]||{},_0x1d1b1e=_0x439543[_0x42fb72]||{};if(_0x464817['id']==_0x1d1b1e['id'])_0x4f2898++,_0x42fb72++,_0x7aa96e['push'](_0x464817);else{if(_0x1d1b1e[_0x4cae('0xf7')]&&_0x464817['isAdded']){const {commonTape:_0x2da196,iEnd:_0x4e59eb,jEnd:_0x4274c1}=this[_0x4cae('0x70')](_0x47fd48,_0x4f2898,_0x439543,_0x42fb72);_0x7aa96e=_0x7aa96e[_0x4cae('0x4a')](_0x2da196),_0x4f2898=_0x4e59eb,_0x42fb72=_0x4274c1;}else _0x1d1b1e[_0x4cae('0xf7')]?(_0x42fb72++,_0x7aa96e[_0x4cae('0xfb')](_0x1d1b1e)):(_0x4f2898++,_0x7aa96e[_0x4cae('0xfb')](_0x464817));}}return _0x7aa96e;}[_0x4cae('0x10a')](_0x187f70,_0x268be1){const _0x36b890=[];for(let _0x1d7e42=0x0;_0x1d7e42<_0x187f70['length'];_0x1d7e42++){for(let _0x41a182=0x0;_0x41a182<_0x187f70[_0x1d7e42][_0x4cae('0x1e')][_0x4cae('0x2a')];_0x41a182++){const _0x465ede=_0x187f70[_0x1d7e42][_0x4cae('0x1e')][_0x41a182];if(!_0x268be1[_0x4cae('0xac')](_0x465ede))continue;const {group:_0x19b54b,type:_0xb1e171,authorId:_0x408cf9}=_0x293e48(_0x465ede);_0x4cae('0x75')!=_0x19b54b||'insertion'!=_0xb1e171&&_0x4cae('0xd0')!=_0xb1e171||(_0x36b890[_0x4cae('0xee')]({'type':_0xb1e171,'name':_0x465ede,'userId':_0x408cf9}),_0x187f70[_0x1d7e42][_0x4cae('0x1e')][_0x4cae('0xa8')](_0x41a182,0x1),_0x41a182--);}_0xe305f1(_0x187f70[_0x1d7e42]);for(let _0x5683c5=0x0;_0x5683c5<_0x187f70[_0x1d7e42]['markersEnd'][_0x4cae('0x2a')];_0x5683c5++){const _0x37cb7f=_0x187f70[_0x1d7e42][_0x4cae('0x2c')][_0x5683c5];if(!_0x268be1[_0x4cae('0xac')](_0x37cb7f))continue;const {group:_0x330bc5,type:_0xb607aa}=_0x293e48(_0x37cb7f);if(_0x4cae('0x75')!=_0x330bc5||_0x4cae('0xd3')!=_0xb607aa&&'deletion'!=_0xb607aa)continue;_0x187f70[_0x1d7e42][_0x4cae('0x2c')][_0x4cae('0xa8')](_0x5683c5,0x1),_0x5683c5--;const _0x29fa45=_0x36b890['findIndex'](_0x91c912=>_0x91c912[_0x4cae('0x3b')]==_0x37cb7f);_0x29fa45>-0x1&&_0x36b890[_0x4cae('0xa8')](_0x29fa45,0x1);}}function _0x293e48(_0x2b082c){const _0xf242f8=_0x2b082c['split'](':');return{'group':_0xf242f8[0x0],'type':_0xf242f8[0x1],'subType':_0xf242f8[_0x4cae('0x2a')]>=0x5?_0xf242f8[0x2]:null,'id':_0xf242f8[_0x4cae('0x2a')]<0x5?_0xf242f8[0x2]:_0xf242f8[0x3],'authorId':_0xf242f8[_0x4cae('0x2a')]<0x5?_0xf242f8[0x3]:_0xf242f8[0x4],'markerCount':0x6==_0xf242f8[_0x4cae('0x2a')]?_0xf242f8[0x5]:null};}function _0xe305f1(_0x39b6cb){for(let _0x226bdf=0x0;_0x226bdf<_0x36b890[_0x4cae('0x2a')];_0x226bdf++){if(_0x39b6cb[_0x4cae('0xbb')]&&_0x4cae('0xd3')==_0x36b890[_0x226bdf][_0x4cae('0x9d')])return _0x39b6cb[_0x4cae('0xc2')]=_0x36b890[_0x226bdf],void delete _0x39b6cb['isAdded'];if(!_0x39b6cb[_0x4cae('0xbb')]&&!_0x39b6cb[_0x4cae('0xf7')]&&_0x4cae('0xd0')==_0x36b890[_0x226bdf][_0x4cae('0x9d')])return void(_0x39b6cb[_0x4cae('0xf5')]=_0x36b890[_0x226bdf]);}}}[_0x4cae('0xda')](_0x2df8e0,_0x95709){let _0xf20cc1=0x0,_0x5ddae3=!0x1;const _0x390203=new Map();for(const _0x2eb7aa of _0x2df8e0)_0x2eb7aa[_0x95709]?_0x5ddae3&&(_0xf20cc1++,_0x5ddae3=!0x1):(_0xf20cc1++,_0x5ddae3=!0x0),_0x390203[_0x4cae('0x40')](_0x2eb7aa['id'],_0xf20cc1);for(let _0x22ca8e=0x0;_0x22ca8e<_0x2df8e0[_0x4cae('0x2a')];_0x22ca8e++){if(_0x4cae('0xf7')==_0x95709&&_0x2df8e0[_0x22ca8e][_0x4cae('0xbb')]||'isAdded'==_0x95709&&_0x2df8e0[_0x22ca8e]['isRemoved'])continue;if(_0x4cae('0x7')==_0x2df8e0[_0x22ca8e][_0x4cae('0x9d')]){_0x2df8e0[_0x22ca8e][_0x4cae('0x118')]=0x0;continue;}const _0x3f8f50=_0x390203[_0x4cae('0xe8')](_0x2df8e0[_0x22ca8e]['pairId']),_0x1b1964=_0x390203[_0x4cae('0xe8')](_0x2df8e0[_0x22ca8e]['id']);_0x2df8e0[_0x22ca8e][_0x4cae('0x118')]=_0x3f8f50-_0x1b1964;}}[_0x4cae('0x1d')](_0x2f5e2f,_0x56fc1e,_0xd05c9a=!0x1){const _0x78a8a1=[];let _0x1e0734=this[_0x4cae('0x21')][_0x4cae('0x103')](_0x2f5e2f),_0x26d948=this[_0x4cae('0x21')][_0x4cae('0x103')](_0x56fc1e);for(-0x1==_0x26d948&&(_0x26d948=this[_0x4cae('0x21')][_0x4cae('0x78')][_0x4cae('0x2a')],_0xd05c9a=!0x1);_0x1e0734<_0x26d948;)_0x78a8a1[_0x4cae('0xfb')](this['repository'][_0x4cae('0x91')](_0x1e0734)),_0x1e0734++;return _0xd05c9a&&_0x78a8a1[_0x4cae('0xfb')](this[_0x4cae('0x21')][_0x4cae('0x91')](_0x1e0734)),_0x78a8a1;}[_0x4cae('0x70')](_0x35ec06,_0x2f60c4,_0xa51b35,_0x1c42d0){const _0x1e68d3=this['editor'][_0x4cae('0x17')][_0x4cae('0xc0')];let _0x56636c=_0x2f60c4;for(;_0x35ec06[_0x56636c]&&_0x35ec06[_0x56636c][_0x4cae('0xbb')];)_0x56636c++;let _0x3ac38b=_0x1c42d0;for(;_0xa51b35[_0x3ac38b]&&_0xa51b35[_0x3ac38b]['isRemoved'];)_0x3ac38b++;_0x425fe8(_0x35ec06,_0x2f60c4,_0x56636c),_0x425fe8(_0xa51b35,_0x1c42d0,_0x3ac38b);const _0x25fc05=_0xa51b35[_0x4cae('0xc5')](_0x1c42d0,_0x3ac38b)[_0x4cae('0x4a')](_0x35ec06[_0x4cae('0xc5')](_0x2f60c4,_0x56636c));return _0x25fc05[_0x4cae('0x7d')]((_0x25a343,_0x28a617)=>_0x25a343[_0x4cae('0xe3')]!=_0x28a617[_0x4cae('0xe3')]?_0x25a343[_0x4cae('0xe3')]-_0x28a617[_0x4cae('0xe3')]:_0x25a343[_0x4cae('0x1c')]!=_0x28a617[_0x4cae('0x1c')]?_0x25a343['level']-_0x28a617[_0x4cae('0x1c')]:_0x25a343[_0x4cae('0x118')]!=_0x28a617['distance']?_0x28a617['distance']-_0x25a343[_0x4cae('0x118')]:!!_0x25a343[_0x4cae('0xbb')]!=!!_0x28a617[_0x4cae('0xbb')]?-0x1==_0x25a343[_0x4cae('0xe3')]||0x0==_0x25a343[_0x4cae('0xe3')]?_0x25a343[_0x4cae('0xbb')]?-0x1:0x1:_0x25a343['isAdded']?0x1:-0x1:_0x25a343[_0x4cae('0xcd')]-_0x28a617[_0x4cae('0xcd')]),{'commonTape':_0x25fc05,'iEnd':_0x56636c,'jEnd':_0x3ac38b};function _0x425fe8(_0xb069df,_0x3a5eb2,_0x1ed488){let _0x2328dc=-0x1,_0x136fa3=Number[_0x4cae('0x71')],_0x5d6488=!0x0;for(let _0x1bbe80=_0x3a5eb2;_0x1bbe80<_0x1ed488;_0x1bbe80++)if(_0x1e68d3[_0x4cae('0x5c')](_0xb069df[_0x1bbe80][_0x4cae('0x105')])||(_0x5d6488=!0x1),_0xb069df[_0x1bbe80][_0x4cae('0x105')][_0x4cae('0x7f')]<_0x3a5eb2&&(_0x2328dc=_0x1bbe80),_0xb069df[_0x1bbe80][_0x4cae('0x105')][_0x4cae('0xeb')]>=_0x1ed488){_0x136fa3=_0x1bbe80;break;}_0x5d6488&&(_0x2328dc=_0x1ed488-0x1);for(let _0x1627fd=_0x3a5eb2;_0x1627fd<_0x1ed488;_0x1627fd++)_0xb069df[_0x1627fd][_0x4cae('0xe3')]=_0x1627fd<=_0x2328dc?-0x1:_0x1627fd<_0x136fa3?0x0:0x1,_0xb069df[_0x1627fd][_0x4cae('0xcd')]=_0x1627fd;let _0x423c60=0x0;for(let _0x1586b5=_0x3a5eb2;_0x1586b5<=_0x2328dc;_0x1586b5++)0x0==_0xb069df[_0x1586b5][_0x4cae('0x118')]?_0xb069df[_0x1586b5][_0x4cae('0x1c')]=_0x423c60:(_0x423c60++,_0xb069df[_0x1586b5][_0x4cae('0x1c')]=_0x423c60,_0x423c60++);for(let _0x13010b=_0x3a5eb2;_0x13010b<_0x1ed488;_0x13010b++)0x0==_0xb069df[_0x13010b][_0x4cae('0xe3')]&&(_0xb069df[_0x13010b][_0x4cae('0x1c')]=_0x423c60);_0x423c60=0x0;for(let _0x6cf85=_0x1ed488-0x1;_0x6cf85>=_0x136fa3;_0x6cf85--)0x0==_0xb069df[_0x6cf85]['distance']?_0xb069df[_0x6cf85]['level']=_0x423c60:(_0x423c60--,_0xb069df[_0x6cf85]['level']=_0x423c60,_0x423c60--);}}[_0x4cae('0x9c')](_0x113484){const _0x526653=new Map(),_0x271e7c=this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0xc0')];for(let _0x675f52=0x1;_0x675f52<_0x113484[_0x4cae('0x2a')];_0x675f52++){let _0x30653a,_0x309f6d,_0x5185df;const _0x181e3d=_0x113484[_0x675f52],_0x34ed73=_0x113484[_0x675f52-0x1];if(_0x4cae('0x7')==_0x181e3d['type'])continue;if(_0x181e3d['type']!=_0x34ed73[_0x4cae('0x9d')])continue;if(!_0x271e7c[_0x4cae('0x8e')](_0x34ed73[_0x4cae('0x105')])||_0x271e7c[_0x4cae('0x35')](_0x34ed73[_0x4cae('0x105')]))continue;if(!_0x271e7c[_0x4cae('0x8e')](_0x181e3d[_0x4cae('0x105')])||_0x271e7c['isLimit'](_0x181e3d[_0x4cae('0x105')]))continue;if((_0x113484[_0x675f52][_0x4cae('0xbb')]||_0x113484[_0x675f52]['isAddSuggestion'])&&_0x113484[_0x675f52-0x1][_0x4cae('0xf7')])_0x30653a=_0x113484[_0x675f52],_0x309f6d=_0x113484[_0x675f52-0x1],_0x5185df=_0x675f52-0x1;else{if(!_0x113484[_0x675f52][_0x4cae('0xf7')]||!_0x113484[_0x675f52-0x1][_0x4cae('0xbb')]&&!_0x113484[_0x675f52-0x1][_0x4cae('0xc2')])continue;_0x30653a=_0x113484[_0x675f52-0x1],_0x309f6d=_0x113484[_0x675f52],_0x5185df=_0x675f52;}const _0x1fc10b=_0x30653a[_0x4cae('0x1c')]==_0x309f6d[_0x4cae('0x1c')],_0x18d2ea=Math['abs'](_0x30653a[_0x4cae('0x1c')])<Math[_0x4cae('0x3a')](_0x309f6d[_0x4cae('0x1c')])&&0x0==_0x309f6d['distance'];(_0x1fc10b||_0x18d2ea)&&(_0x526653[_0x4cae('0x40')](_0x309f6d['id'],_0x30653a['id']),_0x113484['splice'](_0x5185df,0x1),_0x675f52--,_0x30653a[_0x4cae('0xbb')]=!0x1);}for(let _0x3c9a34=0x0;_0x3c9a34<_0x113484[_0x4cae('0x2a')];_0x3c9a34++)_0x526653[_0x4cae('0xac')](_0x113484[_0x3c9a34][_0x4cae('0x101')])&&(_0x113484[_0x3c9a34][_0x4cae('0x101')]=_0x526653[_0x4cae('0xe8')](_0x113484[_0x3c9a34][_0x4cae('0x101')]));}[_0x4cae('0x2f')](_0x4442d1){const _0x35884e=new Set(_0x4442d1[_0x4cae('0x51')](_0x55d940=>_0x55d940['id']));for(let _0x563eaf=0x0;_0x563eaf<_0x4442d1['length'];_0x563eaf++)_0x35884e['has'](_0x4442d1[_0x563eaf]['pairId'])||0x0==_0x4442d1[_0x563eaf]['distance']||(_0x4442d1[_0x563eaf][_0x4cae('0x10b')]=!0x0);return _0x4442d1[_0x4cae('0x6')](_0x3b5cb6=>!_0x3b5cb6[_0x4cae('0x10b')]);}['_markMismatchedRemovedTags'](_0x167aec){const _0x110880=new Set();for(let _0x5401c7=0x0;_0x5401c7<_0x167aec[_0x4cae('0x2a')];_0x5401c7++){if(_0x110880['has'](_0x167aec[_0x5401c7]['id'])&&_0x167aec[_0x5401c7][_0x4cae('0xf7')]&&(_0x167aec[_0x5401c7][_0x4cae('0x10b')]=!0x0),_0x167aec[_0x5401c7][_0x4cae('0x10b')])continue;if(0x0==_0x167aec[_0x5401c7][_0x4cae('0x118')])continue;if(_0x4cae('0x79')!=_0x167aec[_0x5401c7][_0x4cae('0x9d')])continue;if(null==_0x167aec[_0x5401c7][_0x4cae('0x101')])continue;let _0x2ac949=_0x5401c7+0x1,_0x102996=0x0;for(;_0x167aec[_0x2ac949]['id']!=_0x167aec[_0x5401c7][_0x4cae('0x101')];)_0x4cae('0x79')==_0x167aec[_0x2ac949][_0x4cae('0x9d')]?_0x102996++:_0x4cae('0x15')==_0x167aec[_0x2ac949][_0x4cae('0x9d')]&&_0x102996--,_0x2ac949++;if(0x0!=_0x102996){if(_0x167aec[_0x5401c7][_0x4cae('0xf7')])_0x167aec[_0x5401c7][_0x4cae('0x10b')]=!0x0;else for(;_0x2ac949!=_0x5401c7;)_0x167aec[_0x2ac949]['isRemoved']&&0x0!=_0x167aec[_0x2ac949][_0x4cae('0x118')]&&(_0x167aec[_0x2ac949][_0x4cae('0x10b')]=!0x0,_0x110880[_0x4cae('0xf6')](_0x167aec[_0x2ac949][_0x4cae('0x101')])),_0x2ac949--;}}return _0x167aec[_0x4cae('0x6')](_0x48cc82=>!_0x48cc82[_0x4cae('0x10b')]);}[_0x4cae('0xf')](_0xf57dc3){const _0x2248d3=this[_0x4cae('0x56')]['model']['schema'];for(let _0x4a70af=0x0;_0x4a70af<_0xf57dc3['length'];_0x4a70af++){if(!(_0xf57dc3[_0x4a70af]['isAdded']||_0xf57dc3[_0x4a70af]['isAddSuggestion']||_0xf57dc3[_0x4a70af]['isRemoved']||_0xf57dc3[_0x4a70af][_0x4cae('0xf5')]))continue;if(0x0==_0xf57dc3[_0x4a70af][_0x4cae('0x118')])continue;const _0x608cc9=_0xf57dc3[_0x4a70af][_0x4cae('0x105')];_0x2248d3['isBlock'](_0x608cc9)||_0x2248d3[_0x4cae('0x35')](_0x608cc9)||(_0xf57dc3[_0x4a70af][_0x4cae('0xbb')]&&delete _0xf57dc3[_0x4a70af][_0x4cae('0xbb')],_0xf57dc3[_0x4a70af]['isAddSuggestion']&&delete _0xf57dc3[_0x4a70af][_0x4cae('0xc2')],_0xf57dc3[_0x4a70af][_0x4cae('0xf5')]&&delete _0xf57dc3[_0x4a70af]['isRemoveSuggestion'],_0xf57dc3[_0x4a70af]['isRemoved']&&(_0xf57dc3[_0x4a70af][_0x4cae('0x10b')]=!0x0));}return _0xf57dc3[_0x4cae('0x6')](_0x5c53ff=>!_0x5c53ff[_0x4cae('0x10b')]);}['_makeModelFromTape'](_0x56a986,_0x32e8cc,_0x10efe9){const _0x1e3813=new _0x1c5439(),_0x39255b=[],_0x3fe5c5=new Map(),_0xe5a3c5=this[_0x4cae('0x56')]['model'],_0x5bdb9b=_0xe5a3c5[_0x4cae('0xc0')],_0x31b541=[_0x1e3813],_0x572722={},_0x16d2d9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x47123d=null;const _0x36a767=[0x0];for(let _0x2799fc=0x0;_0x2799fc<_0x56a986['length'];_0x2799fc++){let _0x2adacf,_0x56ac6a;if(_0x4cae('0x79')===_0x56a986[_0x2799fc][_0x4cae('0x9d')]){_0x2adacf=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767);const _0x21300c=new _0x48363b(_0x56a986[_0x2799fc][_0x4cae('0x105')][_0x4cae('0x3b')],_0x56a986[_0x2799fc][_0x4cae('0x105')][_0x4cae('0x39')]());_0x31b541[0x0][_0x4cae('0x23')](_0x21300c),_0x36a767['push'](0x0),_0x31b541[_0x4cae('0xee')](_0x21300c),_0x56ac6a=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767),_0x47123d=null;}else{if(_0x4cae('0x15')===_0x56a986[_0x2799fc][_0x4cae('0x9d')])_0x31b541[_0x4cae('0xe5')](),_0x2adacf=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767),_0x36a767['pop'](),_0x36a767[_0x36a767['length']-0x1]++,_0x56ac6a=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767),_0x47123d=null;else{if(_0x2adacf=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767),_0x47123d&&_0x594fc5(_0x47123d,_0x56a986[_0x2799fc]['item']))_0x47123d[_0x4cae('0x106')]+=_0x56a986[_0x2799fc]['item'][_0x4cae('0x1a')];else{const _0x23899a=new _0x5b4aab(_0x56a986[_0x2799fc][_0x4cae('0x105')][_0x4cae('0x1a')],_0x56a986[_0x2799fc][_0x4cae('0x105')][_0x4cae('0x39')]());_0x31b541[0x0][_0x4cae('0x23')](_0x23899a),_0x47123d=_0x23899a;}_0x36a767[_0x36a767[_0x4cae('0x2a')]-0x1]+=_0x56a986[_0x2799fc][_0x4cae('0x105')]['offsetSize'],_0x56ac6a=_0xe5a3c5[_0x4cae('0x108')](_0x1e3813,_0x36a767);}}for(const _0x483a6e of _0x56a986[_0x2799fc][_0x4cae('0x1e')])_0x3fe5c5[_0x4cae('0x40')](_0x483a6e,{'start':_0x2adacf,'end':null});_0x54b8d3(_0x4cae('0xf5'),_0x2799fc,_0x2adacf,_0x56ac6a),_0x54b8d3(_0x4cae('0xc2'),_0x2799fc,_0x2adacf,_0x56ac6a),_0x54b8d3('isRemoved',_0x2799fc,_0x2adacf,_0x56ac6a),_0x54b8d3(_0x4cae('0xbb'),_0x2799fc,_0x2adacf,_0x56ac6a);for(const _0xc57c75 of _0x56a986[_0x2799fc]['markersEnd']){_0x3fe5c5[_0x4cae('0xe8')](_0xc57c75)[_0x4cae('0xcb')]=_0x56ac6a;}}for(const [_0x9f332b,_0x578297]of _0x3fe5c5){const _0x16e615=this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0xd6')](_0x578297['start'],_0x578297[_0x4cae('0xcb')]);_0x1e3813[_0x4cae('0x67')][_0x4cae('0x40')](_0x9f332b,_0x16e615);}return _0x39255b[_0x4cae('0x7d')]((_0x193a40,_0x3a0798)=>{const _0x126bc0=_0x1e3813['markers'][_0x4cae('0xe8')]('revision:'+_0x193a40['id']),_0x56656b=_0x1e3813['markers']['get'](_0x4cae('0xf1')+_0x3a0798['id']);return _0x126bc0['start'][_0x4cae('0x18')](_0x56656b[_0x4cae('0x29')])?-0x1:_0x126bc0[_0x4cae('0x29')][_0x4cae('0xb')](_0x56656b[_0x4cae('0x29')])?0x1:_0x126bc0[_0x4cae('0xcb')]['isBefore'](_0x56656b[_0x4cae('0xcb')])?-0x1:_0x126bc0[_0x4cae('0xcb')][_0x4cae('0xb')](_0x56656b[_0x4cae('0xcb')])?0x1:'add'===_0x193a40['type']?-0x1:0x1;}),{'root':_0x1e3813,'changes':_0x39255b};function _0x54b8d3(_0x387904,_0x1b667d,_0x4e31c4,_0x1a27a1){const _0x3a92e2=!!_0x56a986[_0x1b667d][_0x387904],_0x4d2aad=_0x3a92e2?_0x56a986[_0x1b667d][_0x387904][_0x4cae('0x57')]:null,_0x49c4f3=_0x1b667d===_0x56a986[_0x4cae('0x2a')]-0x1,_0x3c7306=_0x16d2d9[_0x387904][0x0],_0x32acdf=_0x5bdb9b[_0x4cae('0x25')](_0x56a986[_0x1b667d][_0x4cae('0x105')]);!_0x572722[_0x387904]&&_0x3a92e2?_0x572722[_0x387904]={'start':_0x4e31c4,'tapeItem':_0x56a986[_0x1b667d],'userId':_0x4d2aad,'type':_0x387904}:_0x572722[_0x387904]&&!_0x3a92e2?(_0x572722[_0x387904]['end']=_0x4e31c4,_0x13d325(_0x572722[_0x387904]),_0x572722[_0x387904]=null):_0x572722[_0x387904]&&_0x3a92e2&&_0x572722[_0x387904][_0x4cae('0x57')]!==_0x4d2aad&&(_0x572722[_0x387904]['end']=_0x4e31c4,_0x3c7306&&_0x3c7306[_0x4cae('0x57')]===_0x572722[_0x387904][_0x4cae('0x57')]||_0x13d325(_0x572722[_0x387904]),_0x572722[_0x387904]={'start':_0x4e31c4,'tapeItem':_0x56a986[_0x1b667d],'userId':_0x4d2aad,'type':_0x387904}),_0x572722[_0x387904]&&_0x32acdf&&('elementStart'!==_0x56a986[_0x1b667d]['type']||_0x3c7306&&_0x3c7306['userId']===_0x4d2aad||_0x16d2d9[_0x387904][_0x4cae('0xee')]({'userId':_0x4d2aad,'object':_0x56a986[_0x1b667d]['item'],'change':_0x572722[_0x387904]}),_0x4cae('0x15')===_0x56a986[_0x1b667d][_0x4cae('0x9d')]&&_0x3c7306&&_0x3c7306['object']===_0x56a986[_0x1b667d][_0x4cae('0x105')]&&(_0x16d2d9[_0x387904]['shift'](),_0x572722[_0x387904]=_0x3c7306[_0x4cae('0x69')])),_0x572722[_0x387904]&&_0x49c4f3&&(_0x572722[_0x387904][_0x4cae('0xcb')]=_0x1a27a1,_0x13d325(_0x572722[_0x387904]),_0x572722[_0x387904]=null);}function _0x13d325({start:_0x21dd00,end:_0x11b937,tapeItem:_0x15f046,userId:_0x7f5b7f,type:_0x40ba93}){const _0x225dd2=_0x15f046['item'],_0x18b465=_0xe5a3c5['schema'][_0x4cae('0x8e')](_0x225dd2)&&!_0xe5a3c5[_0x4cae('0xc0')][_0x4cae('0x35')](_0x225dd2),_0x26eb32=_0x21dd00['nodeAfter']==_0x11b937['parent']&&_0x11b937[_0x4cae('0x4b')];if(_0x18b465&&_0x26eb32)return;const _0x5e6684=_0xe5a3c5[_0x4cae('0xd6')](_0x21dd00,_0x11b937),_0x42d77a=_0x32e8cc[_0x4cae('0xe8')](_0x7f5b7f),_0x180355=new _0x2d657f({'author':_0x42d77a,'type':_0x4cae('0xbb')==_0x40ba93||_0x4cae('0xc2')==_0x40ba93?'add':'remove','data':{'isSuggestion':_0x4cae('0xc2')==_0x40ba93||_0x4cae('0xf5')==_0x40ba93},'createdAt':new Date(),'rootName':_0x10efe9});_0x39255b[_0x4cae('0xfb')](_0x180355),_0x1e3813[_0x4cae('0x67')]['set']('revision:'+_0x180355['id'],_0x5e6684);}function _0x594fc5(_0xd03074,_0x34270a){const _0x88fd79=_0xd03074[_0x4cae('0x39')](),_0x177b87=_0x34270a[_0x4cae('0x39')]();for(const _0x2a3896 of _0x88fd79){if(_0x2a3896[0x1]!==_0x34270a[_0x4cae('0x5e')](_0x2a3896[0x0]))return!0x1;_0x177b87[_0x4cae('0x11a')]();}return _0x177b87[_0x4cae('0x11a')]()[_0x4cae('0xb2')];}}['_setConversion'](){this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x5f'))['dataToMarker']({'view':_0x4cae('0xb6')}),this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x99'))[_0x4cae('0x110')]({'model':_0x4cae('0xb6'),'view':_0x3e4a36=>{const _0x2c616=_0x3e4a36[_0x4cae('0x85')][_0x4cae('0xca')](':')[0x1],_0x4aab7e=this[_0x4cae('0x41')](_0x2c616);if(!_0x4aab7e)return null;const _0x38a767=_0x4cae('0xf6')==_0x4aab7e[_0x4cae('0x9d')]?_0x4cae('0xd3'):_0x4cae('0xd0'),_0x75207a=['ck-suggestion-marker',_0x4cae('0xf3')+_0x38a767];return _0x4aab7e[_0x4cae('0x1a')][_0x4cae('0x11e')]&&_0x75207a[_0x4cae('0xfb')](_0x4cae('0xf3')+_0x38a767+_0x4cae('0x49')),this[_0x4cae('0x59')]==_0x4aab7e&&_0x75207a[_0x4cae('0xfb')](_0x4cae('0x6a')),{'classes':_0x75207a,'attributes':{'data-change-id':_0x2c616}};}}),this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x5f'))['add'](_0x4e7178=>{_0x4e7178['on'](_0x4cae('0xaf'),(_0x5f1027,_0x49c8e1,_0x3cf44a)=>{const _0x421c5b=_0x49c8e1[_0x4cae('0x4d')][_0x4cae('0x12')](0x0);if(!_0x421c5b||!_0x421c5b['is'](_0x4cae('0x80'),_0x4cae('0xab')))return;if(!_0x3cf44a[_0x4cae('0x87')][_0x4cae('0x5b')](_0x421c5b,{'attributes':[_0x4cae('0x33'),_0x4cae('0x27')]}))return;const _0x4f34c2=_0x49c8e1[_0x4cae('0xa5')][_0x4cae('0x29')][_0x4cae('0xe')];_0x3cf44a[_0x4cae('0x11')][_0x4cae('0xa2')]('vid_start',_0x421c5b[_0x4cae('0x5e')](_0x4cae('0x33')),_0x4f34c2),_0x3cf44a[_0x4cae('0x11')][_0x4cae('0xa2')](_0x4cae('0x27'),_0x421c5b[_0x4cae('0x5e')](_0x4cae('0x27')),_0x4f34c2);},{'priority':_0x4cae('0xc1')});}),this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x5f'))[_0x4cae('0xf6')](_0xdfb1f1=>{_0xdfb1f1['on'](_0x4cae('0x80'),(_0x1d43b5,_0x2b6586,_0x397632)=>{if(!_0x397632[_0x4cae('0x87')][_0x4cae('0x5b')](_0x2b6586['viewItem'],{'attributes':[_0x4cae('0x33'),_0x4cae('0x27')]}))return;if(_0x2b6586[_0x4cae('0xa5')][_0x4cae('0x10f')])return;const _0x1e6f7b=_0x2b6586[_0x4cae('0xa5')][_0x4cae('0x29')]['nodeAfter'];_0x1e6f7b[_0x4cae('0xa0')]('vid_start')||_0x1e6f7b[_0x4cae('0xa0')](_0x4cae('0x5a'))||(_0x397632['writer'][_0x4cae('0xa2')](_0x4cae('0x33'),_0x2b6586[_0x4cae('0x4d')][_0x4cae('0x5e')](_0x4cae('0x33')),_0x1e6f7b),_0x397632[_0x4cae('0x11')][_0x4cae('0xa2')](_0x4cae('0x27'),_0x2b6586['viewItem']['getAttribute'](_0x4cae('0x27')),_0x1e6f7b));},{'priority':_0x4cae('0xc1')});}),this[_0x4cae('0x56')]['conversion'][_0x4cae('0xc3')](_0x4cae('0x5f'))[_0x4cae('0x4c')]({'view':{'name':_0x4cae('0xdb'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5c154f=>_0x5c154f[_0x4cae('0x5e')](_0x4cae('0x5a'))}}),this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0xc0')]['on'](_0x4cae('0xa1'),(_0x333dbc,[,_0x48679e])=>{[_0x4cae('0x33'),_0x4cae('0x27'),_0x4cae('0x5a')][_0x4cae('0xf4')](_0x48679e)&&(_0x333dbc[_0x4cae('0x104')]=!0x0,_0x333dbc['stop']());},{'priority':'highest'}),this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x63'))[_0x4cae('0xf6')](_0x305067=>{_0x305067['on'](_0x4cae('0x4f'),(_0x517f7c,_0x41aad8,_0x38683d)=>{if('\x20'!=_0x41aad8[_0x4cae('0x105')][_0x4cae('0x1a')]||_0x41aad8['item'][_0x4cae('0x76')]['maxOffset']>0x1)return;if(!_0x38683d[_0x4cae('0x87')][_0x4cae('0x5b')](_0x41aad8[_0x4cae('0x105')],_0x517f7c['name']))return;const _0x42d040=_0x38683d[_0x4cae('0x11')],_0x5a4470=_0x38683d[_0x4cae('0xed')][_0x4cae('0xcc')](_0x41aad8['range']);_0x42d040[_0x4cae('0xb9')](_0x5a4470,_0x42d040[_0x4cae('0x66')](_0x4cae('0xdb')));});}),this[_0x4cae('0x56')]['conversion'][_0x4cae('0xc3')](_0x4cae('0x63'))[_0x4cae('0xfe')]({'model':'revision'}),this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0xf2')]['on'](_0x4cae('0xc4'),function(_0x4b34c8){const _0x1365d9=_0x4b34c8['plugins']['get'](_0x4cae('0xe6'));return(_0x16b688,_0x566805,_0x3a9d65)=>{const _0x317362=_0x566805[_0x4cae('0x85')][_0x4cae('0xca')](':')[0x1],_0x2e8c82=_0x1365d9['_getChangeFromId'](_0x317362);if(!_0x2e8c82)return null;const _0x1ea819=_0x4cae('0xf6')==_0x2e8c82[_0x4cae('0x9d')]?_0x4cae('0xca'):_0x4cae('0xb7');if(!_0x3a9d65[_0x4cae('0x87')]['test'](_0x566805[_0x4cae('0xea')],_0x16b688['name']))return;const _0x1dd655=_0x566805[_0x4cae('0xea')][_0x4cae('0x44')](),_0x46d68f=_0x566805[_0x4cae('0xea')][_0x4cae('0x29')],_0x21998c=_0x4b34c8[_0x4cae('0x17')][_0x4cae('0xc0')];let _0x49f8c2=null,_0x5da16e=null,_0x56c934=!0x1,_0x3af804=!0x1;for(const _0x424566 of _0x1dd655){const _0x1e8973=_0x424566[_0x4cae('0x105')];_0x56c934=_0x56c934||_0x21998c[_0x4cae('0x4e')](_0x1e8973);const _0x2d3d01=_0x3a9d65[_0x4cae('0xed')][_0x4cae('0x26')](_0x1e8973);if(_0x2d3d01&&_0x2d3d01[_0x4cae('0x90')](_0x4cae('0xfc')))return;_0x4cae('0x15')==_0x424566[_0x4cae('0x9d')]&&(_0x21998c[_0x4cae('0x8e')](_0x1e8973)&&!_0x21998c[_0x4cae('0x35')](_0x1e8973)&&(_0x1e8973[_0x4cae('0x68')]||_0x46d68f[_0x4cae('0xa3')]?_0x49f8c2&&_0x49f8c2[_0x4cae('0x76')]==_0x1e8973||(_0x49f8c2=_0x1e8973,_0x28f7ac(_0x424566[_0x4cae('0x2')]),_0x3af804=!0x0):_0x5da16e=_0x5da16e||_0x424566[_0x4cae('0x2')]));}function _0x28f7ac(_0x5d7f7b){const _0x112fdd=_0x3a9d65['writer'][_0x4cae('0x65')](_0x4cae('0xdb'),{'class':_0x4cae('0xf3')+_0x1ea819}),_0x45db04=_0x3a9d65[_0x4cae('0xed')][_0x4cae('0x10e')](_0x5d7f7b);_0x2e8c82[_0x4cae('0x1a')][_0x4cae('0x11e')]&&_0x3a9d65[_0x4cae('0x11')][_0x4cae('0x72')](_0x4cae('0xf3')+_0x1ea819+_0x4cae('0x49'),_0x112fdd),_0x1365d9[_0x4cae('0x59')]==_0x2e8c82&&_0x3a9d65['writer'][_0x4cae('0x72')](_0x4cae('0x6a'),_0x112fdd),_0x3a9d65[_0x4cae('0x11')][_0x4cae('0x107')](_0x45db04,_0x112fdd),_0x3a9d65['mapper'][_0x4cae('0xf9')](_0x112fdd,_0x566805[_0x4cae('0x85')]);}_0x56c934||_0x3af804||!_0x5da16e||_0x28f7ac(_0x5da16e);};}(this[_0x4cae('0x56')]),{'priority':_0x4cae('0x1')}),this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0xf2')]['on'](_0x4cae('0xae'),(_0x2f34ca,_0x479b7a,_0x41b688)=>{const _0x12c674=_0x41b688[_0x4cae('0xed')][_0x4cae('0x5')](_0x479b7a[_0x4cae('0x85')]);if(_0x12c674)for(const _0x552644 of _0x12c674)(_0x552644[_0x4cae('0x0')](_0x4cae('0x30'))||_0x552644['hasClass'](_0x4cae('0xd7')))&&(_0x41b688[_0x4cae('0xed')][_0x4cae('0xd5')](_0x552644,_0x479b7a[_0x4cae('0x85')]),_0x41b688['writer'][_0x4cae('0x5d')](_0x552644));},{'priority':'high'}),this[_0x4cae('0x56')]['editing'][_0x4cae('0xf2')]['on'](_0x4cae('0xc4'),(_0x56da61,_0xc8b080,_0x518d93)=>{const _0x35cc53=_0xc8b080['markerName'][_0x4cae('0xca')](':')[0x1],_0x4c8cad=this['_getChangeFromId'](_0x35cc53);if(!_0x4c8cad)return null;const _0x499abd='add'==_0x4c8cad['type']?'split':'merge';if(_0x518d93[_0x4cae('0x87')]['test'](_0xc8b080['markerRange'],_0x56da61[_0x4cae('0x3b')]))for(const _0x4b9bd9 of _0xc8b080[_0x4cae('0xea')][_0x4cae('0x7b')]()){if(!_0x4b9bd9['is'](_0x4cae('0x80'),'softBreak'))continue;const _0x4cfcb5=_0x518d93[_0x4cae('0x11')][_0x4cae('0x65')](_0x4cae('0xdb'),{'class':_0x4cae('0xf3')+_0x499abd}),_0x2d52e3=_0x518d93[_0x4cae('0xed')][_0x4cae('0x10e')](this[_0x4cae('0x56')]['model'][_0x4cae('0xce')](_0x4b9bd9));_0x4c8cad[_0x4cae('0x1a')][_0x4cae('0x11e')]&&_0x518d93[_0x4cae('0x11')][_0x4cae('0x72')]('ck-suggestion-marker-'+_0x499abd+_0x4cae('0x49'),_0x4cfcb5),this[_0x4cae('0x59')]==_0x4c8cad&&_0x518d93[_0x4cae('0x11')][_0x4cae('0x72')](_0x4cae('0x6a'),_0x4cfcb5),_0x518d93[_0x4cae('0x11')][_0x4cae('0x107')](_0x2d52e3,_0x4cfcb5),_0x518d93[_0x4cae('0xed')][_0x4cae('0xf9')](_0x4cfcb5,_0xc8b080['markerName']);}},{'priority':_0x4cae('0x1')}),this['editor'][_0x4cae('0x17')][_0x4cae('0x6d')]['on']('change',()=>{this['editor'][_0x4cae('0x11f')][_0x4cae('0x6f')][_0x4cae('0x69')](_0x3ffa4a=>{for(const _0x5d4819 of this[_0x4cae('0x56')][_0x4cae('0x17')]['document'][_0x4cae('0x2d')]()){const _0x16ec81=this[_0x4cae('0x56')]['model'][_0x4cae('0x6d')][_0x4cae('0x7e')](_0x5d4819),_0x30cbb3=this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0x6f')][_0x4cae('0x6d')]['getRoot'](_0x5d4819);if(_0x30cbb3){const _0xe78dc9=_0x16ec81['getAttribute'](_0x4cae('0x3f'));if(_0x3ffa4a[_0x4cae('0xff')]('data-change-id',_0x30cbb3),_0x3ffa4a[_0x4cae('0x93')]('ck-revision-history-root-add',_0x30cbb3),_0x3ffa4a[_0x4cae('0x93')]('ck-revision-history-root-remove',_0x30cbb3),_0x3ffa4a[_0x4cae('0x93')](_0x4cae('0x3c'),_0x30cbb3),_0xe78dc9){const _0x5c4346=this['_getChangeFromId'](_0xe78dc9);if(!_0x5c4346)return null;_0x3ffa4a['setAttribute'](_0x4cae('0x77'),_0xe78dc9,_0x30cbb3),_0x3ffa4a[_0x4cae('0x72')]('ck-revision-history-root-'+_0x5c4346[_0x4cae('0x9d')],_0x30cbb3),this[_0x4cae('0x59')]==_0x5c4346&&_0x3ffa4a[_0x4cae('0x72')]('ck-revision-history-root--active',_0x30cbb3);}}}});}),this[_0x4cae('0x56')][_0x4cae('0x6e')][_0x4cae('0xc3')]('upcast')['dataToMarker']({'view':_0x4cae('0x95'),'model':_0x16dfea=>_0x4cae('0x6c')+_0x16dfea,'converterPriority':_0x4cae('0x20')}),this['editor'][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x5f'))[_0x4cae('0x100')]({'view':_0x4cae('0x13'),'model':_0x33370c=>_0x4cae('0x97')+_0x33370c,'converterPriority':_0x4cae('0x20')}),this['editor'][_0x4cae('0x6e')][_0x4cae('0xc3')](_0x4cae('0x63'))['markerToData']({'model':_0x4cae('0x75'),'view':_0x4a195e=>({'name':_0x4cae('0xdd')+_0x4a195e,'group':_0x4cae('0x75')}),'converterPriority':_0x4cae('0x20')}),this[_0x4cae('0x56')][_0x4cae('0x6e')]['for'](_0x4cae('0x99'))[_0x4cae('0x110')]({'model':_0x4cae('0x75'),'view':_0x4c82bc=>{const _0x124f09=_0x4c82bc['markerName'][_0x4cae('0xca')](':')[0x1];return _0x4cae('0xd3')!=_0x124f09&&_0x4cae('0xd0')!=_0x124f09?null:{'classes':[_0x4cae('0xbd'),_0x4cae('0x7a')+_0x124f09]};}}),this[_0x4cae('0x56')]['editing'][_0x4cae('0xf2')]['on'](_0x4cae('0x11d'),et(this[_0x4cae('0x56')],_0x4cae('0xb7')),{'priority':'high'}),this[_0x4cae('0x56')][_0x4cae('0x11f')][_0x4cae('0xf2')]['on'](_0x4cae('0xd8'),et(this['editor'],_0x4cae('0xca')),{'priority':_0x4cae('0x1')}),this[_0x4cae('0x56')][_0x4cae('0x11f')]['downcastDispatcher']['on'](_0x4cae('0x2b'),(_0x2f0ff3,_0x2f7d8b,_0x4b528f)=>{const _0x4a314c=_0x4b528f[_0x4cae('0xed')][_0x4cae('0x5')](_0x2f7d8b[_0x4cae('0x85')]);if(_0x4a314c)for(const _0x2604ce of _0x4a314c)_0x2604ce['is']('uiElement')&&(_0x4b528f[_0x4cae('0xed')][_0x4cae('0xd5')](_0x2604ce,_0x2f7d8b['markerName']),_0x4b528f[_0x4cae('0x11')][_0x4cae('0x5d')](_0x2604ce));},{'priority':_0x4cae('0x1')});}[_0x4cae('0x41')](_0x300057){return this['_changeIdToChange'][_0x4cae('0xe8')](_0x300057);}[_0x4cae('0x8d')](_0x3fd916){return this['_changeView']&&this[_0x4cae('0x74')][_0x4cae('0xbf')](),this[_0x4cae('0x74')]=new _0x2aa001(this[_0x4cae('0x56')]['locale'],_0x3fd916),this[_0x4cae('0x74')];}['_initInteractions'](){this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0x6d')]['selection'][_0x4cae('0x8')](_0x4cae('0xb6')),this['on'](_0x4cae('0x24'),(_0x4dd010,_0x519ea5,_0x506b29,_0x508e28)=>{_0x508e28&&this[_0x4cae('0x83')][_0x4cae('0x5d')](_0x508e28),_0x506b29&&(this[_0x4cae('0x83')][_0x4cae('0xf6')]({'view':_0x506b29,'stackId':_0x4cae('0xc8'),'position':{'target':()=>{const _0x15ef21=this[_0x4cae('0x56')][_0x4cae('0x11f')],_0x35cffe=this[_0x4cae('0x41')](_0x506b29[_0x4cae('0x10')]);let _0x1d3d2b;if(_0x35cffe[_0x4cae('0x1a')][_0x4cae('0x9e')]){const _0x206e29=_0x15ef21['view']['getDomRoot'](_0x35cffe[_0x4cae('0xbe')]);_0x1d3d2b=Array[_0x4cae('0x52')](_0x206e29[_0x4cae('0xe7')]());}else{const _0x444eb6=this['editor']['model'][_0x4cae('0x67')][_0x4cae('0xe8')](_0x4cae('0xf1')+_0x506b29[_0x4cae('0x10')]);_0x1d3d2b=Array[_0x4cae('0x52')](_0x15ef21[_0x4cae('0xed')][_0x4cae('0x5')](_0x444eb6[_0x4cae('0x3b')]))[_0x4cae('0x51')](_0x2b5cf8=>_0x15ef21[_0x4cae('0x6f')]['domConverter'][_0x4cae('0x9b')](_0x2b5cf8))['map'](_0x54f9d3=>Array[_0x4cae('0x52')](_0x54f9d3[_0x4cae('0xe7')]()))[_0x4cae('0x111')]();}if(!this[_0x4cae('0x11c')])return _0x1d3d2b[0x0];return _0x1d3d2b[_0x4cae('0xec')](_0x1099cd=>_0x1099cd['top']-0x3<=this[_0x4cae('0x11c')]['y']&&_0x1099cd[_0x4cae('0xa9')]+0x3>=this[_0x4cae('0x11c')]['y']&&_0x1099cd[_0x4cae('0xad')]-0x3<=this[_0x4cae('0x11c')]['x']&&_0x1099cd[_0x4cae('0x116')]+0x3>=this[_0x4cae('0x11c')]['x'])||_0x1d3d2b[0x0];}}}),this[_0x4cae('0x83')][_0x4cae('0x3e')](_0x4cae('0xc8')));}),this['on']('change:activeChange',(_0x27c065,_0x30580e,_0x21c32c,_0x4ff9df)=>{this[_0x4cae('0x112')]=_0x21c32c?this[_0x4cae('0x8d')](_0x21c32c):null,this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0x69')](()=>{const _0x4e5c73=this[_0x4cae('0x56')][_0x4cae('0x11f')];_0x4ff9df&&(_0x4ff9df[_0x4cae('0x1a')][_0x4cae('0x9e')]?_0x4e5c73['view'][_0x4cae('0x69')](_0x5d7d8a=>{_0x5d7d8a['removeClass'](_0x4cae('0x3c'),_0x4e5c73[_0x4cae('0x6f')]['document'][_0x4cae('0x7e')](_0x4ff9df[_0x4cae('0xbe')]));}):_0x4e5c73[_0x4cae('0xa4')]('revision:'+_0x4ff9df['id'])),_0x21c32c&&(_0x21c32c[_0x4cae('0x1a')][_0x4cae('0x9e')]?_0x4e5c73['view']['change'](_0x41a3e1=>{_0x41a3e1[_0x4cae('0x72')]('ck-revision-history-root--active',_0x4e5c73['view'][_0x4cae('0x6d')][_0x4cae('0x7e')](_0x21c32c[_0x4cae('0xbe')]));}):_0x4e5c73[_0x4cae('0xa4')](_0x4cae('0xf1')+_0x21c32c['id']));});}),this[_0x4cae('0xa')](this[_0x4cae('0x56')]['editing']['view'][_0x4cae('0x6d')],_0x4cae('0x115'),(_0x398894,_0x9c8e03)=>{if(this[_0x4cae('0x59')])return;const _0x1f6bdf=this['_findChangeIdFromDomTarget'](_0x9c8e03[_0x4cae('0x8c')]),_0x1418f1=this[_0x4cae('0x73')][_0x4cae('0xe8')](_0x1f6bdf);_0x1418f1?(this[_0x4cae('0x11c')]={'x':_0x9c8e03[_0x4cae('0xd')]['x'],'y':_0x9c8e03[_0x4cae('0xd')]['y']},this[_0x4cae('0x112')]=this['_getViewForChange'](_0x1418f1)):(this[_0x4cae('0x11c')]=null,this[_0x4cae('0x112')]=null);}),this[_0x4cae('0xa')](this[_0x4cae('0x56')]['editing']['view']['document'],_0x4cae('0xf8'),(_0x544fdb,_0x11d342)=>{const _0x5a7eef=this['_findChangeIdFromDomTarget'](_0x11d342[_0x4cae('0x8c')]),_0x9af6b4=this[_0x4cae('0x73')][_0x4cae('0xe8')](_0x5a7eef);_0x9af6b4?(this[_0x4cae('0x11c')]={'x':_0x11d342[_0x4cae('0xd')]['x'],'y':_0x11d342['domEvent']['y']},_0x9af6b4===this[_0x4cae('0x59')]?this[_0x4cae('0x83')]['updatePosition']():this[_0x4cae('0x59')]=_0x9af6b4):(this[_0x4cae('0x11c')]=null,this[_0x4cae('0x59')]=null);});}[_0x4cae('0xe2')](_0x1cbbeb){do{const _0x330e71=_0x1cbbeb['getAttribute'](_0x4cae('0x77'));if(_0x330e71)return _0x330e71;_0x1cbbeb=_0x1cbbeb['parent'];}while(_0x1cbbeb);return null;}[_0x4cae('0xd2')](){this['editor'][_0x4cae('0x17')][_0x4cae('0x69')](_0x10a851=>{for(const _0x4ddb06 of this[_0x4cae('0x56')][_0x4cae('0x17')][_0x4cae('0x67')])_0x10a851[_0x4cae('0xde')](_0x4ddb06);});}}function et(_0x33294c,_0x299553){return(_0x14e7da,_0x37ce28,_0x4b5f60)=>{if(!_0x4b5f60[_0x4cae('0x87')]['test'](_0x37ce28[_0x4cae('0xea')],_0x14e7da[_0x4cae('0x3b')]))return;const _0x3de6dc=_0x37ce28[_0x4cae('0xea')][_0x4cae('0x44')](),_0x5df7d8=_0x37ce28[_0x4cae('0xea')]['start'],_0x1bf84d=_0x33294c['model'][_0x4cae('0xc0')];let _0x2ea872=null,_0x5c0214=null,_0x2ee6d5=!0x1,_0x26635f=!0x1;for(const _0xd1f975 of _0x3de6dc){const _0x4b9294=_0xd1f975[_0x4cae('0x105')];_0x2ee6d5=_0x2ee6d5||_0x1bf84d[_0x4cae('0x4e')](_0x4b9294);const _0x5d74c5=_0x4b5f60[_0x4cae('0xed')][_0x4cae('0x26')](_0x4b9294);if(_0x5d74c5&&_0x5d74c5['getCustomProperty'](_0x4cae('0xfc')))return;_0x4cae('0x15')==_0xd1f975[_0x4cae('0x9d')]&&(_0x1bf84d[_0x4cae('0x8e')](_0x4b9294)&&!_0x1bf84d[_0x4cae('0x35')](_0x4b9294)&&(_0x4b9294[_0x4cae('0x68')]||_0x5df7d8[_0x4cae('0xa3')]?_0x2ea872&&_0x2ea872[_0x4cae('0x76')]==_0x4b9294||(_0x2ea872=_0x4b9294,_0x48b03d(_0xd1f975['previousPosition']),_0x26635f=!0x0):_0x5c0214=_0x5c0214||_0xd1f975[_0x4cae('0x2')]));}function _0x48b03d(_0xe39207){const _0x25ee8b=_0x4b5f60['mapper'][_0x4cae('0x10e')](_0xe39207),_0x2e8c36=_0x4b5f60[_0x4cae('0x11')][_0x4cae('0x65')](_0x4cae('0xdb'),{'class':_0x4cae('0x7a')+_0x299553});_0x4b5f60[_0x4cae('0x11')][_0x4cae('0x107')](_0x25ee8b,_0x2e8c36),_0x4b5f60[_0x4cae('0xed')][_0x4cae('0xf9')](_0x2e8c36,_0x37ce28[_0x4cae('0x85')]);}_0x2ee6d5||_0x26635f||!_0x5c0214||_0x48b03d(_0x5c0214);};}export class RestoreRevisionCommand extends _0x6aaecc{constructor(_0x1079ad){super(_0x1079ad);const _0x5a593d=_0x1079ad['plugins']['get'](d);this[_0x4cae('0x1f')]=!0x1,this['listenTo'](_0x5a593d,'change:isReady',()=>this['refresh']()),this[_0x4cae('0xa')](_0x5a593d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5c3e12=this[_0x4cae('0x56')],_0x579865=_0x5c3e12[_0x4cae('0x36')]['get'](d),_0x32f168=_0x579865[_0x4cae('0x8f')]?_0x579865[_0x4cae('0xc6')][_0x4cae('0xdf')]:null;_0x5c3e12[_0x4cae('0xc9')][_0x4cae('0xe8')]('revisionHistory')['restoreRevisionCallback'](_0x32f168);}['refresh'](){const {isReady:_0x562f0e,isEnabled:_0x31b895}=this[_0x4cae('0x56')][_0x4cae('0x36')][_0x4cae('0xe8')](d);this[_0x4cae('0xfa')]=_0x562f0e&&_0x31b895;}}export class ShowChangeCommand extends _0x6aaecc{constructor(_0x2db20b,{direction:_0x2ef99d}){super(_0x2db20b);const _0x170a64=_0x2db20b['plugins'][_0x4cae('0xe8')](d);this[_0x4cae('0x1f')]=!0x1,this[_0x4cae('0x9f')]=_0x4cae('0x6b')===_0x2ef99d?0x1:-0x1,this[_0x4cae('0xa')](_0x170a64,_0x4cae('0xb5'),()=>this[_0x4cae('0xc')]()),this[_0x4cae('0xa')](_0x170a64,_0x4cae('0x114'),()=>this[_0x4cae('0xc')]()),this['listenTo'](_0x170a64,_0x4cae('0x38'),()=>this['refresh']());}['execute'](){const _0x2467d7=this[_0x4cae('0x56')],_0x4f42c0=_0x2467d7[_0x4cae('0x36')][_0x4cae('0xe8')](d),{isNavigationMode:_0x17256c,currentChangeNumber:_0x19b3fd}=_0x4f42c0;let _0x2ca98a;if(_0x4f42c0[_0x4cae('0x59')]=_0x17256c?_0x4f42c0[_0x4cae('0xc6')][_0x4cae('0x102')][_0x4cae('0xe8')](_0x19b3fd+this['_step']):_0x4f42c0[_0x4cae('0xc6')][_0x4cae('0x102')][_0x4cae('0x96')],_0x4f42c0[_0x4cae('0x59')][_0x4cae('0x1a')][_0x4cae('0x9e')])_0x2ca98a=_0x2467d7['editing']['view']['getDomRoot'](_0x4f42c0[_0x4cae('0x59')][_0x4cae('0xbe')]);else{const _0x547c44=_0x2467d7[_0x4cae('0x17')][_0x4cae('0x67')][_0x4cae('0xe8')](_0x4cae('0xf1')+_0x4f42c0[_0x4cae('0x59')]['id']);_0x2ca98a=_0x41668f(_0x2467d7[_0x4cae('0x11f')],_0x547c44);}_0x275eab({'target':_0x2ca98a,'viewportOffset':0x28});}[_0x4cae('0xc')](){const {isNavigationMode:_0x55fff7,currentChangeNumber:_0x514ce8,numberOfChanges:_0x41b29d,isReady:_0x33dd17,isEnabled:_0x4ceca7}=this['editor']['plugins']['get'](d);this[_0x4cae('0xfa')]=!!(_0x4ceca7&&_0x33dd17&&_0x41b29d)&&(!_0x55fff7||(0x1===this['_step']?_0x514ce8<_0x41b29d-0x1:_0x514ce8>0x0));}}
23
+ const _0x4b12=['downcastDispatcher','diff','revision-suggestion','first','mapper','isSuggestion','editingDowncast','schema','_processTape','set','isRemoved','name','_step','all','changes','clear','isBefore','createRangeIn','upcast','destroy','addRevisionData','ck-revision-history-root-','ck-suggestion-marker-split','activeView','RevisionViewer','createUIElement','markers','_getViewForChange','text','_sortAndFilterDiffChanges','getRevision','writer','_findChangeIdFromDomTarget','bottom','_getChangeFromId','toData','has','for','type','elementEnd','removeMarker:revision-suggestion','POSITIVE_INFINITY','isAttached','_balloon','_markMarkers','hasAttribute','concat','dataToMarker','test','_markMismatchedRemovedTags','backward','getCustomProperty','reconvertMarker','get','_getRevisionsRange','findIndex','deletion','repository','domEvent','isAtStart','ck-revision-history-root-add','string','keys','getRoot','data-revision-','comment','done','isCollapsed','setAttribute','split','hasClass','processor','_makeModelFromViewString','listenTo','startsWith','markerNameToElements','_markInsertions','_setConversion','newRevisionId','createPositionFromPath','add','revision-end','dataDowncast','change:isEnabled','bind','indexOf','consume','ck-suggestion-marker-','shift','_fixObsoleteTags','isIncorrect','attribute:vid','_removeRevisionMarkers','editor','detachRoot','showStack','vid','unbindElementFromMarkerName','change:numberOfChanges','isAtEnd','rootName','bindElementToMarker','getRevisionRootsAttributes','isEnabled','revision-viewer','abs','revisionHistoryLabel','updatePosition','unshift','index','diffData','softBreak','values','range','merge','numberOfChanges','markersStart','error','userId','sort','ck-suggestion-marker','_cleanMarkers','config','isRemoveSuggestion','getChild','offsetSize','WidgetToolbarRepository','isObject','length','editing','_threeWayMerge','getAttribute','ck-suggestion-marker-merge','toModel','authors','_getViewObj','getAttributes','element','addMarker:revision-suggestion:insertion','isContent','_setChanges','isNavigationMode','addClass','ck-suggestion-marker--active','viewItem','filter','loadRevisionData','markerToData','vid_end','forward','nextSibling','_setDistance','addMarker:revision','_markSuggestions','next','revisionHistoryAttachChange','ck-editor__editable__overlay','children','revision:','push','_changeIdToChange','return','startIndex','revision-comment:','endIndex','target','markerName','elementToAttribute','useFillerType','change','forceDisabled','deletions','left','remove','_activeViewTarget','enableReadOnlyMode','_removeUnsupportedChanges','commands','pop','isReady','consumable','insert','marked','vid_start','document','side','restoreRevisionCallback','distance','revision-start','_refreshStartEndIndex','toViewElement','createRange','default','attributes','data','_update','from','code','addHighlight','parent','getClientRects','high','end','wrap','maxOffset','change:isReady','then','isAddSuggestion','suggestion','getWalker','delete','right','removeMarker','map','_makeTape','item','addRoot','_makeModelFromTape','isEqual','parse','low','mapViewToDom','_getDiff','forEach','compare','showNextChange','pairId','createAttributeElement','modelRange','view','locale','insertions','init','splice','attachChange','conversion','_cleanUp','execute','affectsData','start','pluginName','isOnRoot','getRootNames','previousPosition','elementStart','_changeView','getIndex','change:activeChange','-new','removeClass','refresh','_joinTapes','activeChange','nextPosition','markersEnd','currentChangeNumber','data-change-id','includes','_removeMissingPairs','level','markerToHighlight','toViewPosition','requires','insertion','isAdded','revision','isAfter','roots','ck-suggestion-preview-marker-','resolve','attributesBefore','highest','getDomRoot','enqueueChange','ck-revision-history-root--active','isLimit','isBlock','find','markerRange','model','slice','removeAttribute','plugins','addMarker:revision-suggestion:deletion','span'];(function(_0x44c060,_0x4b125a){const _0x406698=function(_0xc379bd){while(--_0xc379bd){_0x44c060['push'](_0x44c060['shift']());}};_0x406698(++_0x4b125a);}(_0x4b12,0x185));const _0x4066=function(_0x44c060,_0x4b125a){_0x44c060=_0x44c060-0x0;let _0x406698=_0x4b12[_0x44c060];return _0x406698;};import{Plugin as _0x35ab16,Command as _0x5dfb1c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x102840}from'ckeditor5/src/utils';import{ContextualBalloon as _0x3d4910}from'ckeditor5/src/ui';import{DocumentFragment as _0x11b0d7,Element as _0x10cc25,Text as _0x1f52a6,ViewDocumentFragment as _0x184fc5,ViewText as _0x555435,ViewElement as _0x523df2,ViewContainerElement as _0x39ad77,ViewAttributeElement as _0x52a953,ViewEmptyElement as _0x2e8728,ViewRawElement as _0x1a0965,ViewUIElement as _0x1ca1d8}from'ckeditor5/src/engine';import{Users as _0x310f84,getMarkerDomElement as _0x198c25}from'ckeditor5-collaboration/src/collaboration-core';import _0x2dd857 from'./ui/revisionviewer/changedetailsview';import _0x34d53f from'./revisionsrepository';import _0x149bf1 from'./changeitem';import{default as _0x2a6e4a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4bfe03}from'lodash-es';const tt={'c':_0x39ad77,'a':_0x52a953,'e':_0x2e8728,'r':_0x1a0965,'u':_0x1ca1d8};export default class d extends _0x35ab16{static get[_0x4066('0x88')](){return _0x4066('0xcd');}static get[_0x4066('0x9e')](){return[_0x310f84,_0x3d4910,_0x34d53f];}constructor(_0x433443){super(_0x433443),this[_0x4066('0xee')]=this['editor'][_0x4066('0xb2')][_0x4066('0xea')]('RevisionsRepository'),this[_0x4066('0xbe')](_0x4066('0x94'),null),this[_0x4066('0xbe')]('activeView',null),this[_0x4066('0x46')]=null,this[_0x4066('0xbe')](_0x4066('0xb6'),null),this[_0x4066('0xbe')]('isReady',!0x1),this['set'](_0x4066('0x11c'),!0x0),this['on']('change:isEnabled',(_0x26e2d5,_0x1c53e8,_0x245e55)=>{this[_0x4066('0x94')]=null,this[_0x4066('0xcc')]=null,this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0x7d')][_0x4066('0x41')](_0x252e9d=>{for(const _0x9717ed of this[_0x4066('0x112')]['editing']['view'][_0x4066('0x50')][_0x4066('0xa3')])_0x245e55?_0x252e9d[_0x4066('0x91')](_0x4066('0x34'),_0x9717ed):_0x252e9d[_0x4066('0x26')](_0x4066('0x34'),_0x9717ed);});}),this[_0x4066('0x109')](_0x4066('0x25'))['to'](this,_0x4066('0x94'),_0xe04f5c=>null!==_0xe04f5c),this[_0x4066('0x109')](_0x4066('0x97'))['to'](this,'isReady',this,_0x4066('0xb6'),this,_0x4066('0x94'),(_0x2ed15a,_0x13cfc5,_0x81aa67)=>_0x2ed15a&&_0x81aa67?_0x13cfc5['changes']['getIndex'](_0x81aa67):0x0),this[_0x4066('0x109')](_0x4066('0xb'))['to'](this,_0x4066('0x4b'),this,_0x4066('0xb6'),(_0xfaff4f,_0x394afe)=>_0xfaff4f?_0x394afe[_0x4066('0xc3')][_0x4066('0x18')]:0x0),this['_changeView']=null,this[_0x4066('0x38')]=new Map(),this['adapter']=null,this[_0x4066('0xe0')]=this['editor']['plugins'][_0x4066('0xea')](_0x3d4910);}[_0x4066('0x80')](){const _0x4ce914=this[_0x4066('0x112')],_0x294c03=new ShowChangeCommand(_0x4ce914,{'direction':_0x4066('0xe7')}),_0x1cb62a=new ShowChangeCommand(_0x4ce914,{'direction':_0x4066('0x2d')});(_0x4ce914['commands'][_0x4066('0x105')]('showPreviousChange',_0x294c03),_0x4ce914[_0x4066('0x49')][_0x4066('0x105')](_0x4066('0x79'),_0x1cb62a),_0x4ce914['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x4ce914)),this['on'](_0x4066('0x117'),()=>{_0x294c03[_0x4066('0x92')](),_0x1cb62a[_0x4066('0x92')]();}),this[_0x4066('0x102')](),this['_initInteractions'](),_0x4ce914[_0x4066('0x47')]('revision-viewer'),_0x4ce914[_0x4066('0xb2')][_0x4066('0xd9')](_0x4066('0x16')))&&_0x4ce914[_0x4066('0xb2')][_0x4066('0xea')]('WidgetToolbarRepository')[_0x4066('0x42')](_0x4066('0x0'));}async['getRevisionData'](_0x5f561a){await this[_0x4066('0x2a')](_0x5f561a);const _0x513f68={};for(const _0x2b44aa in _0x5f561a[_0x4066('0x6')]){if(_0x5f561a[_0x4066('0x6')][_0x2b44aa][_0x4066('0x82')]&&!_0x5f561a[_0x4066('0x6')][_0x2b44aa]['attachChange'][_0x4066('0xdf')])continue;const _0x524b99=this[_0x4066('0x111')](JSON[_0x4066('0x73')](_0x5f561a[_0x4066('0x6')][_0x2b44aa][_0x4066('0x7f')])),_0xb8ffa4=this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0x7d')][_0x4066('0x50')],_0x2af530=new _0x184fc5(_0xb8ffa4,_0x524b99[_0x4066('0x6d')](_0x49a784=>this[_0x4066('0x1f')](_0x49a784)));this[_0x4066('0x112')][_0x4066('0x5a')][_0x4066('0xfc')][_0x4066('0x40')](_0x4066('0x4e')),_0x513f68[_0x2b44aa]=this[_0x4066('0x112')]['data'][_0x4066('0xfc')][_0x4066('0xd8')](_0x2af530),this[_0x4066('0x112')][_0x4066('0x5a')][_0x4066('0xfc')][_0x4066('0x40')](_0x4066('0x58'));}return _0x513f68;}async[_0x4066('0x11b')](_0x21aee9){await this['loadRevisionData'](_0x21aee9);const _0x21d4fc={};for(const _0x1431e4 in _0x21aee9['diffData'])_0x21aee9[_0x4066('0x6')][_0x1431e4][_0x4066('0x82')]&&!_0x21aee9[_0x4066('0x6')][_0x1431e4]['attachChange']['isAttached']||(_0x21d4fc[_0x1431e4]=_0x21aee9[_0x4066('0x6')][_0x1431e4]['attributesAfter']||{});return _0x21d4fc;}[_0x4066('0x111')](_0x59b477){return(_0x59b477=_0x59b477[_0x4066('0x29')](_0x33c0c3=>!_0x33c0c3['name']||_0x4066('0x54')!==_0x33c0c3[_0x4066('0xc0')]&&_0x4066('0x106')!==_0x33c0c3[_0x4066('0xc0')]))[_0x4066('0x77')](_0x25925b=>{_0x4066('0xf2')!=typeof _0x25925b&&(_0x25925b[_0x4066('0x35')]=this[_0x4066('0x111')](_0x25925b[_0x4066('0x35')]),_0x25925b[_0x4066('0x59')]=_0x25925b[_0x4066('0x59')]['filter'](_0x9897da=>!_0x9897da[0x0][_0x4066('0xff')](_0x4066('0xf5'))));}),_0x59b477;}async[_0x4066('0x78')](_0x8bc2b3,_0x12957c,_0x57a222=!0x1){if(!this[_0x4066('0x11c')])return;const _0x2a108f=this[_0x4066('0xb6')],_0xb0575b=this['repository'],_0x25508e=_0x4066('0xf2')==typeof _0x8bc2b3?_0xb0575b[_0x4066('0xd3')](_0x8bc2b3):_0x8bc2b3,_0x17359=_0x4066('0xf2')==typeof _0x12957c?_0xb0575b[_0x4066('0xd3')](_0x12957c):_0x12957c,_0x535d68=_0x25508e['id'],_0x568832=_0x17359?_0x17359['id']:null;if(!_0x57a222&&this[_0x4066('0xb6')]&&this[_0x4066('0xb6')][_0x4066('0x103')]===_0x535d68&&this['diff']['oldRevisionId']===_0x568832)return Promise[_0x4066('0xa5')]();this[_0x4066('0x4b')]=!0x1,this[_0x4066('0xcc')]=null,this[_0x4066('0x94')]=null,this[_0x4066('0xb6')]=new _0x2a6e4a(_0x535d68,_0x568832);const _0x2fd6e1=this[_0x4066('0xeb')](_0x25508e,_0x17359,!0x0)['map'](_0x165ad3=>this[_0x4066('0x2a')](_0x165ad3));return _0x2fd6e1[_0x4066('0x37')](new Promise(_0x4bddae=>{setTimeout(_0x4bddae,0x14);})),Promise[_0x4066('0xc2')](_0x2fd6e1)['then'](()=>{if(!this[_0x4066('0x11c')])return;this['_cleanUp']();const _0x557cfa=this['_getDiff'](_0x535d68,_0x568832);for(const _0x582b11 of _0x557cfa[_0x4066('0xc3')])this['_changeIdToChange'][_0x4066('0xbe')](_0x582b11['id'],_0x582b11);this[_0x4066('0x112')][_0x4066('0xaf')]['enqueueChange']({'isUndoable':!0x1},_0x4d4a10=>{for(const _0x359930 of this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x50')][_0x4066('0x8a')]())_0x4d4a10[_0x4066('0x113')](_0x359930);for(const _0x158dee of Object[_0x4066('0xf3')](_0x557cfa[_0x4066('0xaf')])){const _0x4c013d=_0x4d4a10[_0x4066('0x70')](_0x158dee);for(const _0x588835 of Object['keys'](_0x557cfa['attributes'][_0x158dee]))_0x4d4a10[_0x4066('0xf9')](_0x588835,_0x557cfa[_0x4066('0x59')][_0x158dee][_0x588835],_0x4c013d);_0x4d4a10[_0x4066('0x4d')](_0x557cfa[_0x4066('0xaf')][_0x158dee],_0x4c013d,0x0);}}),this[_0x4066('0xb6')][_0x4066('0x24')](this[_0x4066('0xd2')](_0x557cfa[_0x4066('0xc3')])),this[_0x4066('0x4b')]=!0x0;})['catch'](_0x4b1251=>{console[_0x4066('0xd')](_0x4b1251),this[_0x4066('0x84')](),_0x2a108f&&(this[_0x4066('0xb6')]=_0x2a108f),this[_0x4066('0x4b')]=!0x0;});}[_0x4066('0xc9')](_0xf09aa,_0x2dbe07){const _0x5803c2=this[_0x4066('0xee')]['createRevision'](_0xf09aa);return _0x5803c2['on'](_0x4066('0x5b'),(_0x62e58,_0x178b92,_0x131067)=>_0x2dbe07(_0x178b92,_0x131067,_0x5803c2)),this[_0x4066('0xee')]['addRevision'](_0x5803c2),_0x5803c2;}[_0x4066('0x2a')](_0x50b7cc){if(!_0x50b7cc||_0x50b7cc[_0x4066('0x6')])return Promise[_0x4066('0xa5')]();{const _0x51203f=this[_0x4066('0x112')]['config'][_0x4066('0xea')]('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x51203f,'revisionId':_0x50b7cc['id']})[_0x4066('0x66')](_0x5d938a=>{_0x50b7cc[_0x4066('0x5b')]({'diffData':_0x5d938a[_0x4066('0x6')]},!0x0);});}}[_0x4066('0x84')](){this[_0x4066('0x94')]=null,this[_0x4066('0x11')](),this['_changeView']&&this['_changeView'][_0x4066('0xc8')](),this[_0x4066('0x8d')]=null,this[_0x4066('0x38')][_0x4066('0xc4')](),this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xa9')]({'isUndoable':!0x1},_0x256a3c=>{for(const _0x5e89aa of this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x50')][_0x4066('0x8a')]())_0x256a3c[_0x4066('0x113')](_0x5e89aa);});}['_sortAndFilterDiffChanges'](_0x263ff4){const _0x43d239=[],_0xc3af41=new Map();for(const _0x326728 of this['editor'][_0x4066('0xaf')]['document'][_0x4066('0x8a')]()){const _0x11bcb3=this[_0x4066('0x112')]['editing'][_0x4066('0x7d')][_0x4066('0xa8')](_0x326728);if(!_0x11bcb3)continue;const _0x23ef32=_0x11bcb3[_0x4066('0x60')]()[_0x4066('0x6f')](0x0);_0x23ef32&&(_0x43d239[_0x4066('0x37')](_0x326728),_0xc3af41['set'](_0x326728,_0x23ef32));}return _0x43d239['sort']((_0x5e01b4,_0x3f51a3)=>{const _0x36aba1=_0xc3af41[_0x4066('0xea')](_0x5e01b4),_0x11e3d8=_0xc3af41[_0x4066('0xea')](_0x3f51a3);return _0x36aba1['y']-_0x11e3d8['y']||_0x36aba1['x']-_0x11e3d8['x'];}),(_0x263ff4=_0x263ff4['filter'](_0xe11207=>_0x43d239[_0x4066('0x99')](_0xe11207['rootName'])))[_0x4066('0xf')]((_0x459735,_0x52f6ef)=>_0x43d239[_0x4066('0x10a')](_0x459735[_0x4066('0x119')])-_0x43d239[_0x4066('0x10a')](_0x52f6ef[_0x4066('0x119')])),_0x263ff4;}[_0x4066('0x6e')](_0x5637ce){const _0x220d6b=Array['from'](_0x5637ce[_0x4066('0xcf')])[_0x4066('0x29')](([_0x57c96d,_0x361e79])=>_0x57c96d[_0x4066('0xff')]('revision:')&&!_0x361e79['isCollapsed']),_0x4ecf14=Array['from'](this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xc6')](_0x5637ce)[_0x4066('0x69')]({'singleCharacters':!0x0}));if(0x0!=_0x220d6b['length'])for(const _0x206971 of _0x4ecf14){const [_0x4478a6,_0x36e973]=_0x220d6b[0x0],[,_0x586b69,_0x559565]=_0x4478a6[_0x4066('0xfa')](':');if(_0x36e973['end']['isEqual'](_0x206971[_0x4066('0x95')])&&_0x220d6b[_0x4066('0x10d')](),(_0x206971['previousPosition'][_0x4066('0x72')](_0x36e973[_0x4066('0x87')])||_0x206971[_0x4066('0x8b')][_0x4066('0xa2')](_0x36e973[_0x4066('0x87')]))&&(_0x4066('0x9f')==_0x586b69?_0x206971[_0x4066('0xa0')]={'userId':_0x559565}:_0x4066('0xed')==_0x586b69&&(_0x206971['isRemoved']={'userId':_0x559565})),0x0==_0x220d6b[_0x4066('0x18')])break;}return _0x4ecf14;}['_refreshStartEndIndex'](_0xb8d74b){const _0x4d9727=new Map();for(let _0x53cc64=0x0;_0x53cc64<_0xb8d74b[_0x4066('0x18')];_0x53cc64++)_0x4066('0xd1')===_0xb8d74b[_0x53cc64]['type']?(_0xb8d74b[_0x53cc64]['item']['startIndex']=_0x53cc64,_0xb8d74b[_0x53cc64][_0x4066('0x6f')][_0x4066('0x3c')]=_0x53cc64):(_0x4066('0x8c')===_0xb8d74b[_0x53cc64][_0x4066('0xdb')]?_0xb8d74b[_0x53cc64][_0x4066('0x6f')]['startIndex']=_0x53cc64:_0x4066('0xdc')===_0xb8d74b[_0x53cc64]['type']&&(_0xb8d74b[_0x53cc64][_0x4066('0x6f')][_0x4066('0x3c')]=_0x53cc64),_0x4d9727[_0x4066('0xbe')](_0xb8d74b[_0x53cc64]['id'],_0x53cc64));for(const _0x34fea2 of _0x4d9727[_0x4066('0x8')]())_0x4066('0x8c')===_0xb8d74b[_0x34fea2]['type']?_0xb8d74b[_0x34fea2]['item']['endIndex']=_0x4d9727['get'](_0xb8d74b[_0x34fea2][_0x4066('0x7a')]):_0x4066('0xdc')===_0xb8d74b[_0x34fea2][_0x4066('0xdb')]&&(_0xb8d74b[_0x34fea2][_0x4066('0x6f')][_0x4066('0x3a')]=_0x4d9727[_0x4066('0xea')](_0xb8d74b[_0x34fea2][_0x4066('0x7a')]));}[_0x4066('0xbd')](_0x5c25dc){for(let _0xe35d15=0x0;_0xe35d15<_0x5c25dc[_0x4066('0x18')];_0xe35d15++){if(_0x4066('0x8c')===_0x5c25dc[_0xe35d15][_0x4066('0xdb')])_0x5c25dc[_0xe35d15]['item'][_0x4066('0x3a')]=_0xe35d15;else{if('elementEnd'===_0x5c25dc[_0xe35d15][_0x4066('0xdb')]){_0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3c')]=_0xe35d15;const _0x14f7c4=_0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3a')];_0x5c25dc[_0x14f7c4][_0x4066('0x7a')]=_0x5c25dc[_0xe35d15]['id'],_0x5c25dc[_0xe35d15][_0x4066('0x7a')]=_0x5c25dc[_0x14f7c4]['id'];}else _0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3a')]=_0xe35d15,_0x5c25dc[_0xe35d15][_0x4066('0x6f')][_0x4066('0x3c')]=_0xe35d15,_0x5c25dc[_0xe35d15][_0x4066('0x7a')]=null;}_0x5c25dc[_0xe35d15][_0x4066('0xc')]||(_0x5c25dc[_0xe35d15]['markersStart']=[],_0x5c25dc[_0xe35d15][_0x4066('0x96')]=[]);}}[_0x4066('0x101')](_0x1c10fe,_0x595190){const _0x64d1c=_0x1c10fe['filter'](_0x2f066a=>!_0x2f066a['isAdded']);for(let _0x52b1a1=0x0;_0x52b1a1<_0x595190[_0x4066('0x18')];_0x52b1a1++)_0x595190[_0x52b1a1]['isAdded']&&(_0x64d1c[_0x52b1a1][_0x4066('0xa0')]=_0x595190[_0x52b1a1][_0x4066('0xa0')]);}[_0x4066('0xfd')](_0x295526){const _0x2bd946=JSON[_0x4066('0x73')](_0x295526),_0x2d423a=this[_0x4066('0x112')][_0x4066('0x19')]['view'][_0x4066('0x50')],_0x3025db=new _0x184fc5(_0x2d423a,_0x2bd946[_0x4066('0x6d')](_0x5eeace=>this[_0x4066('0x1f')](_0x5eeace)));return this['editor'][_0x4066('0x5a')][_0x4066('0x1d')](_0x3025db);}[_0x4066('0x1f')](_0x41cf62){const _0x291dde=this[_0x4066('0x112')][_0x4066('0x19')]['view'][_0x4066('0x50')];if(_0x4066('0xf2')==typeof _0x41cf62)return new _0x555435(_0x291dde,_0x41cf62);{const _0x19d70f=_0x41cf62[_0x4066('0x35')]['map'](_0x29d8d2=>this[_0x4066('0x1f')](_0x29d8d2));return new(tt[_0x41cf62[(_0x4066('0xdb'))]]||_0x523df2)(_0x291dde,_0x41cf62[_0x4066('0xc0')],_0x41cf62[_0x4066('0x59')],_0x19d70f);}}[_0x4066('0x76')](_0x1f8932,_0x293352=null){const _0x5d3fc8=this[_0x4066('0xee')][_0x4066('0xd3')](_0x1f8932),_0x4872f7=_0x293352?this[_0x4066('0xee')][_0x4066('0xd3')](_0x293352):null,_0x2ff6a2=this['_getRevisionsRange'](_0x5d3fc8,_0x4872f7),_0x165544=_0x2ff6a2[_0x2ff6a2[_0x4066('0x18')]-0x1],_0x16183a=new Map(),_0xc3b30a={'model':{},'attributes':{},'changes':[]},_0x27f5f6=new Set(),_0x2a0c41=new Map();for(let _0x6c1e4a=_0x2ff6a2['length']-0x1;_0x6c1e4a>=0x0;_0x6c1e4a--){const _0x3147af=_0x2ff6a2[_0x6c1e4a];for(const _0xe34f7 of Object[_0x4066('0xf3')](_0x3147af[_0x4066('0x6')]))if(_0x3147af[_0x4066('0x6')][_0xe34f7][_0x4066('0x82')]){const _0xde39e5=_0x3147af[_0x4066('0x6')][_0xe34f7]['attachChange'];_0xde39e5[_0x4066('0xdf')]?(_0x27f5f6[_0x4066('0x105')](_0xe34f7),_0x2a0c41[_0x4066('0xd9')](_0xe34f7)&&_0x2a0c41[_0x4066('0xea')](_0xe34f7)['userId']==_0xde39e5[_0x4066('0xe')]?_0x2a0c41[_0x4066('0x6a')](_0xe34f7):_0x2a0c41[_0x4066('0xbe')](_0xe34f7,_0xde39e5)):_0x2a0c41[_0x4066('0xd9')](_0xe34f7)?(_0x27f5f6[_0x4066('0x6a')](_0xe34f7),_0x2a0c41['delete'](_0xe34f7)):(_0x27f5f6[_0x4066('0x105')](_0xe34f7),_0x2a0c41[_0x4066('0xbe')](_0xe34f7,_0xde39e5));}else _0x27f5f6[_0x4066('0x105')](_0xe34f7);}for(const _0x3a32a7 of _0x27f5f6){const _0x22ee39=_0x2a0c41[_0x4066('0xd9')](_0x3a32a7)&&!_0x2a0c41[_0x4066('0xea')](_0x3a32a7)[_0x4066('0xdf')];let _0x54abe2=_0x22ee39?_0x2ff6a2[_0x4066('0x18')]-0x1:0x0;const _0x5362be=_0x22ee39?-0x1:0x1;for(;_0x2ff6a2[_0x54abe2];){const _0x5a4188=_0x2ff6a2[_0x54abe2];if(_0x5a4188[_0x4066('0x6')][_0x3a32a7]){const _0x218deb=_0x22ee39?_0x5a4188[_0x4066('0x6')][_0x3a32a7][_0x4066('0xa6')]:_0x5a4188[_0x4066('0x6')][_0x3a32a7]['attributesAfter'];_0xc3b30a[_0x4066('0x59')][_0x3a32a7]=_0x218deb?_0x4bfe03(_0x218deb):{};break;}_0x54abe2+=_0x5362be;}}for(const _0x943638 of _0x2ff6a2){_0x943638['model']={};for(const _0x7a697e of _0x943638[_0x4066('0x1e')])_0x16183a['set'](_0x7a697e['id'],_0x7a697e);for(const _0x59c733 of _0x27f5f6){const _0x3d5ee3=_0x943638[_0x4066('0x6')][_0x59c733]?_0x943638[_0x4066('0x6')][_0x59c733]['insertions']:'[]',_0x55fcd3=_0x943638[_0x4066('0x6')][_0x59c733]?_0x943638['diffData'][_0x59c733][_0x4066('0x43')]:'[]';_0x943638[_0x4066('0xaf')][_0x59c733]={'insertions':this[_0x4066('0xfd')](_0x3d5ee3),'deletions':this[_0x4066('0xfd')](_0x55fcd3)};}}for(const _0x11acaf of _0x27f5f6){let _0xa077a2=null,_0x2de2b9=0x0;const _0x337dce=new Map(Array['from'](_0x5d3fc8[_0x4066('0xaf')][_0x11acaf][_0x4066('0x7f')][_0x4066('0xcf')])[_0x4066('0x29')](([_0x366051])=>!_0x366051[_0x4066('0xff')](_0x4066('0x36'))));let _0x173c93=0x0;for(const _0x257b39 of _0x2ff6a2){const _0x5cb9bd=this[_0x4066('0x6e')](_0x257b39[_0x4066('0xaf')][_0x11acaf]['insertions']);_0x257b39==_0x5d3fc8?(_0xa077a2=_0x5cb9bd,_0x2de2b9=_0xa077a2['length'],_0xa077a2['forEach'](_0x25bda4=>{_0x25bda4['id']=_0x173c93++;}),this['_processTape'](_0xa077a2)):this[_0x4066('0x101')](_0xa077a2,_0x5cb9bd);const _0x51cb6f=_0xa077a2[_0x4066('0x29')](_0x432499=>!_0x432499[_0x4066('0xa0')])[_0x4066('0x6d')](_0x1a2f54=>_0x1a2f54['id']);let _0x1b3df3=0x0;const _0x39d51a=this[_0x4066('0x6e')](_0x257b39[_0x4066('0xaf')][_0x11acaf]['deletions']);_0x39d51a[_0x4066('0x77')](_0x3b7529=>{_0x3b7529[_0x4066('0xbf')]?_0x3b7529['id']=_0x2de2b9++:_0x3b7529['id']=_0x51cb6f[_0x1b3df3++];}),this[_0x4066('0xbd')](_0x39d51a),this[_0x4066('0x2f')](_0xa077a2,_0x4066('0xa0')),this[_0x4066('0x2f')](_0x39d51a,'isRemoved'),_0x257b39==_0x5d3fc8&&this[_0x4066('0xe1')](_0xa077a2,_0x337dce),_0xa077a2=this[_0x4066('0x93')](_0xa077a2,_0x39d51a),this[_0x4066('0x55')](_0xa077a2),this[_0x4066('0x2f')](_0xa077a2,_0x4066('0xbf'));}_0xa077a2=_0xa077a2[_0x4066('0x29')](_0x44b162=>!(_0x44b162['isAdded']&&_0x44b162[_0x4066('0xbf')]));const _0x6b24dc=new Map(_0x165544[_0x4066('0xaf')][_0x11acaf]['deletions'][_0x4066('0xcf')]),_0x482e2e=new Set(_0x337dce['keys']());for(const _0x3e5933 of _0x6b24dc[_0x4066('0xf3')]())_0x482e2e['delete'](_0x3e5933);this[_0x4066('0x31')](_0xa077a2,_0x482e2e),this[_0x4066('0x10e')](_0xa077a2),_0xa077a2=this[_0x4066('0x9a')](_0xa077a2),_0xa077a2=this['_markMismatchedRemovedTags'](_0xa077a2),_0xa077a2=this[_0x4066('0x48')](_0xa077a2);const {root:_0x59f7b1,changes:_0x515a96}=this[_0x4066('0x71')](_0xa077a2,_0x16183a,_0x11acaf);_0xc3b30a[_0x4066('0xaf')][_0x11acaf]=_0x59f7b1;const _0x3bd45a=_0x2a0c41['get'](_0x11acaf);if(_0x3bd45a){const _0x2e2d1f=_0x16183a[_0x4066('0xea')](_0x3bd45a[_0x4066('0xe')]),_0xfa9aa3=new _0x149bf1({'author':_0x2e2d1f,'type':_0x3bd45a[_0x4066('0xdf')]?_0x4066('0x105'):_0x4066('0x45'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x11acaf});_0x515a96[_0x4066('0x4')](_0xfa9aa3),_0xc3b30a['attributes'][_0x11acaf][_0x4066('0x33')]=_0xfa9aa3['id'];}_0xc3b30a[_0x4066('0xc3')]=_0xc3b30a[_0x4066('0xc3')][_0x4066('0xe3')](_0x515a96);}return _0xc3b30a;}['_markMarkers'](_0x3d3ddb,_0x4cf4aa){for(let _0x4f5ca5=0x0;_0x4f5ca5<_0x3d3ddb[_0x4066('0x18')];_0x4f5ca5++)for(const [_0x54a1ef,_0xadd660]of _0x4cf4aa)_0xadd660[_0x4066('0x87')]['isEqual'](_0x3d3ddb[_0x4f5ca5][_0x4066('0x8b')])&&_0x3d3ddb[_0x4f5ca5][_0x4066('0xc')][_0x4066('0x37')](_0x54a1ef),_0xadd660['end'][_0x4066('0x72')](_0x3d3ddb[_0x4f5ca5][_0x4066('0x95')])&&_0x3d3ddb[_0x4f5ca5][_0x4066('0x96')][_0x4066('0x37')](_0x54a1ef);}[_0x4066('0x93')](_0x2dc3a1,_0x1cf9b7){let _0x2c6da2=[],_0x107cbd=0x0,_0x534d3c=0x0;for(;_0x107cbd<_0x2dc3a1[_0x4066('0x18')]||_0x534d3c<_0x1cf9b7[_0x4066('0x18')];){const _0x1c6dcb=_0x2dc3a1[_0x107cbd]||{},_0x41b9e1=_0x1cf9b7[_0x534d3c]||{};if(_0x1c6dcb['id']==_0x41b9e1['id'])_0x107cbd++,_0x534d3c++,_0x2c6da2[_0x4066('0x37')](_0x1c6dcb);else{if(_0x41b9e1[_0x4066('0xbf')]&&_0x1c6dcb['isAdded']){const {commonTape:_0xaf416c,iEnd:_0x508611,jEnd:_0x4ba309}=this[_0x4066('0x1a')](_0x2dc3a1,_0x107cbd,_0x1cf9b7,_0x534d3c);_0x2c6da2=_0x2c6da2['concat'](_0xaf416c),_0x107cbd=_0x508611,_0x534d3c=_0x4ba309;}else _0x41b9e1['isRemoved']?(_0x534d3c++,_0x2c6da2['push'](_0x41b9e1)):(_0x107cbd++,_0x2c6da2[_0x4066('0x37')](_0x1c6dcb));}}return _0x2c6da2;}[_0x4066('0x31')](_0x24d65b,_0xa01057){const _0x1386bd=[];for(let _0x2004a8=0x0;_0x2004a8<_0x24d65b[_0x4066('0x18')];_0x2004a8++){for(let _0x4cdd54=0x0;_0x4cdd54<_0x24d65b[_0x2004a8][_0x4066('0xc')][_0x4066('0x18')];_0x4cdd54++){const _0x4e46bd=_0x24d65b[_0x2004a8][_0x4066('0xc')][_0x4cdd54];if(!_0xa01057[_0x4066('0xd9')](_0x4e46bd))continue;const {group:_0x478f1b,type:_0x4eea28,authorId:_0x376f95}=_0x3bb3e6(_0x4e46bd);'revision-suggestion'!=_0x478f1b||_0x4066('0x9f')!=_0x4eea28&&'deletion'!=_0x4eea28||(_0x1386bd[_0x4066('0x4')]({'type':_0x4eea28,'name':_0x4e46bd,'userId':_0x376f95}),_0x24d65b[_0x2004a8][_0x4066('0xc')][_0x4066('0x81')](_0x4cdd54,0x1),_0x4cdd54--);}_0x396424(_0x24d65b[_0x2004a8]);for(let _0x387226=0x0;_0x387226<_0x24d65b[_0x2004a8][_0x4066('0x96')]['length'];_0x387226++){const _0x29c811=_0x24d65b[_0x2004a8]['markersEnd'][_0x387226];if(!_0xa01057[_0x4066('0xd9')](_0x29c811))continue;const {group:_0xfc73be,type:_0x49d9b6}=_0x3bb3e6(_0x29c811);if(_0x4066('0xb7')!=_0xfc73be||'insertion'!=_0x49d9b6&&_0x4066('0xed')!=_0x49d9b6)continue;_0x24d65b[_0x2004a8][_0x4066('0x96')][_0x4066('0x81')](_0x387226,0x1),_0x387226--;const _0x5c1cc0=_0x1386bd[_0x4066('0xec')](_0x5362dc=>_0x5362dc[_0x4066('0xc0')]==_0x29c811);_0x5c1cc0>-0x1&&_0x1386bd[_0x4066('0x81')](_0x5c1cc0,0x1);}}function _0x3bb3e6(_0x564bb2){const _0x522f0d=_0x564bb2[_0x4066('0xfa')](':');return{'group':_0x522f0d[0x0],'type':_0x522f0d[0x1],'subType':_0x522f0d['length']>=0x5?_0x522f0d[0x2]:null,'id':_0x522f0d[_0x4066('0x18')]<0x5?_0x522f0d[0x2]:_0x522f0d[0x3],'authorId':_0x522f0d[_0x4066('0x18')]<0x5?_0x522f0d[0x3]:_0x522f0d[0x4],'markerCount':0x6==_0x522f0d[_0x4066('0x18')]?_0x522f0d[0x5]:null};}function _0x396424(_0x291c14){for(let _0xb302fb=0x0;_0xb302fb<_0x1386bd[_0x4066('0x18')];_0xb302fb++){if(_0x291c14[_0x4066('0xa0')]&&_0x4066('0x9f')==_0x1386bd[_0xb302fb]['type'])return _0x291c14[_0x4066('0x67')]=_0x1386bd[_0xb302fb],void delete _0x291c14[_0x4066('0xa0')];if(!_0x291c14[_0x4066('0xa0')]&&!_0x291c14[_0x4066('0xbf')]&&_0x4066('0xed')==_0x1386bd[_0xb302fb][_0x4066('0xdb')])return void(_0x291c14[_0x4066('0x13')]=_0x1386bd[_0xb302fb]);}}}[_0x4066('0x2f')](_0x1301ff,_0x1e6ea2){let _0x3fda0b=0x0,_0x10d0b4=!0x1;const _0x1df541=new Map();for(const _0x3fd778 of _0x1301ff)_0x3fd778[_0x1e6ea2]?_0x10d0b4&&(_0x3fda0b++,_0x10d0b4=!0x1):(_0x3fda0b++,_0x10d0b4=!0x0),_0x1df541[_0x4066('0xbe')](_0x3fd778['id'],_0x3fda0b);for(let _0x3fd3a1=0x0;_0x3fd3a1<_0x1301ff[_0x4066('0x18')];_0x3fd3a1++){if(_0x4066('0xbf')==_0x1e6ea2&&_0x1301ff[_0x3fd3a1][_0x4066('0xa0')]||_0x4066('0xa0')==_0x1e6ea2&&_0x1301ff[_0x3fd3a1][_0x4066('0xbf')])continue;if(_0x4066('0xd1')==_0x1301ff[_0x3fd3a1][_0x4066('0xdb')]){_0x1301ff[_0x3fd3a1][_0x4066('0x53')]=0x0;continue;}const _0x19e7d8=_0x1df541[_0x4066('0xea')](_0x1301ff[_0x3fd3a1]['pairId']),_0x40bc47=_0x1df541[_0x4066('0xea')](_0x1301ff[_0x3fd3a1]['id']);_0x1301ff[_0x3fd3a1][_0x4066('0x53')]=_0x19e7d8-_0x40bc47;}}[_0x4066('0xeb')](_0x4aa693,_0xbe4b1,_0x59f4a6=!0x1){const _0x1e3b72=[];let _0x3205af=this[_0x4066('0xee')]['getIndex'](_0x4aa693),_0x3e9457=this[_0x4066('0xee')][_0x4066('0x8e')](_0xbe4b1);for(-0x1==_0x3e9457&&(_0x3e9457=this['repository']['_revisions'][_0x4066('0x18')],_0x59f4a6=!0x1);_0x3205af<_0x3e9457;)_0x1e3b72[_0x4066('0x37')](this[_0x4066('0xee')][_0x4066('0xd3')](_0x3205af)),_0x3205af++;return _0x59f4a6&&_0x1e3b72['push'](this[_0x4066('0xee')][_0x4066('0xd3')](_0x3205af)),_0x1e3b72;}[_0x4066('0x1a')](_0x295f4d,_0x192440,_0x34fff0,_0x487d48){const _0x2f0213=this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xbc')];let _0xd4b0c=_0x192440;for(;_0x295f4d[_0xd4b0c]&&_0x295f4d[_0xd4b0c][_0x4066('0xa0')];)_0xd4b0c++;let _0x3f3191=_0x487d48;for(;_0x34fff0[_0x3f3191]&&_0x34fff0[_0x3f3191][_0x4066('0xbf')];)_0x3f3191++;_0xb2af31(_0x295f4d,_0x192440,_0xd4b0c),_0xb2af31(_0x34fff0,_0x487d48,_0x3f3191);const _0x3ebc93=_0x34fff0['slice'](_0x487d48,_0x3f3191)[_0x4066('0xe3')](_0x295f4d[_0x4066('0xb0')](_0x192440,_0xd4b0c));return _0x3ebc93['sort']((_0x321444,_0x51d21e)=>_0x321444['side']!=_0x51d21e[_0x4066('0x51')]?_0x321444[_0x4066('0x51')]-_0x51d21e[_0x4066('0x51')]:_0x321444[_0x4066('0x9b')]!=_0x51d21e[_0x4066('0x9b')]?_0x321444[_0x4066('0x9b')]-_0x51d21e[_0x4066('0x9b')]:_0x321444[_0x4066('0x53')]!=_0x51d21e['distance']?_0x51d21e[_0x4066('0x53')]-_0x321444[_0x4066('0x53')]:!!_0x321444['isAdded']!=!!_0x51d21e['isAdded']?-0x1==_0x321444[_0x4066('0x51')]||0x0==_0x321444['side']?_0x321444[_0x4066('0xa0')]?-0x1:0x1:_0x321444[_0x4066('0xa0')]?0x1:-0x1:_0x321444[_0x4066('0x5')]-_0x51d21e[_0x4066('0x5')]),{'commonTape':_0x3ebc93,'iEnd':_0xd4b0c,'jEnd':_0x3f3191};function _0xb2af31(_0xcfa044,_0x497586,_0x6b31b7){let _0x1aeaf0=-0x1,_0xd9e602=Number[_0x4066('0xde')],_0x49ed28=!0x0;for(let _0x2abfb7=_0x497586;_0x2abfb7<_0x6b31b7;_0x2abfb7++)if(_0x2f0213['isInline'](_0xcfa044[_0x2abfb7][_0x4066('0x6f')])||(_0x49ed28=!0x1),_0xcfa044[_0x2abfb7][_0x4066('0x6f')]['startIndex']<_0x497586&&(_0x1aeaf0=_0x2abfb7),_0xcfa044[_0x2abfb7][_0x4066('0x6f')]['endIndex']>=_0x6b31b7){_0xd9e602=_0x2abfb7;break;}_0x49ed28&&(_0x1aeaf0=_0x6b31b7-0x1);for(let _0x4d0479=_0x497586;_0x4d0479<_0x6b31b7;_0x4d0479++)_0xcfa044[_0x4d0479][_0x4066('0x51')]=_0x4d0479<=_0x1aeaf0?-0x1:_0x4d0479<_0xd9e602?0x0:0x1,_0xcfa044[_0x4d0479][_0x4066('0x5')]=_0x4d0479;let _0x2342fc=0x0;for(let _0x5ecfab=_0x497586;_0x5ecfab<=_0x1aeaf0;_0x5ecfab++)0x0==_0xcfa044[_0x5ecfab][_0x4066('0x53')]?_0xcfa044[_0x5ecfab][_0x4066('0x9b')]=_0x2342fc:(_0x2342fc++,_0xcfa044[_0x5ecfab][_0x4066('0x9b')]=_0x2342fc,_0x2342fc++);for(let _0x19f098=_0x497586;_0x19f098<_0x6b31b7;_0x19f098++)0x0==_0xcfa044[_0x19f098]['side']&&(_0xcfa044[_0x19f098][_0x4066('0x9b')]=_0x2342fc);_0x2342fc=0x0;for(let _0xd4f9ac=_0x6b31b7-0x1;_0xd4f9ac>=_0xd9e602;_0xd4f9ac--)0x0==_0xcfa044[_0xd4f9ac][_0x4066('0x53')]?_0xcfa044[_0xd4f9ac][_0x4066('0x9b')]=_0x2342fc:(_0x2342fc--,_0xcfa044[_0xd4f9ac][_0x4066('0x9b')]=_0x2342fc,_0x2342fc--);}}[_0x4066('0x10e')](_0x90a844){const _0x59cf0b=new Map(),_0x372e20=this[_0x4066('0x112')]['model']['schema'];for(let _0x149f36=0x1;_0x149f36<_0x90a844[_0x4066('0x18')];_0x149f36++){let _0x4dcf67,_0x1b8242,_0x302bcd;const _0x305406=_0x90a844[_0x149f36],_0x57879b=_0x90a844[_0x149f36-0x1];if(_0x4066('0xd1')==_0x305406[_0x4066('0xdb')])continue;if(_0x305406[_0x4066('0xdb')]!=_0x57879b[_0x4066('0xdb')])continue;if(!_0x372e20['isBlock'](_0x57879b[_0x4066('0x6f')])||_0x372e20['isLimit'](_0x57879b['item']))continue;if(!_0x372e20[_0x4066('0xac')](_0x305406[_0x4066('0x6f')])||_0x372e20[_0x4066('0xab')](_0x305406['item']))continue;if((_0x90a844[_0x149f36][_0x4066('0xa0')]||_0x90a844[_0x149f36]['isAddSuggestion'])&&_0x90a844[_0x149f36-0x1]['isRemoved'])_0x4dcf67=_0x90a844[_0x149f36],_0x1b8242=_0x90a844[_0x149f36-0x1],_0x302bcd=_0x149f36-0x1;else{if(!_0x90a844[_0x149f36][_0x4066('0xbf')]||!_0x90a844[_0x149f36-0x1]['isAdded']&&!_0x90a844[_0x149f36-0x1][_0x4066('0x67')])continue;_0x4dcf67=_0x90a844[_0x149f36-0x1],_0x1b8242=_0x90a844[_0x149f36],_0x302bcd=_0x149f36;}const _0x3b33ee=_0x4dcf67['level']==_0x1b8242[_0x4066('0x9b')],_0x205052=Math['abs'](_0x4dcf67['level'])<Math[_0x4066('0x1')](_0x1b8242['level'])&&0x0==_0x1b8242[_0x4066('0x53')];(_0x3b33ee||_0x205052)&&(_0x59cf0b['set'](_0x1b8242['id'],_0x4dcf67['id']),_0x90a844[_0x4066('0x81')](_0x302bcd,0x1),_0x149f36--,_0x4dcf67[_0x4066('0xa0')]=!0x1);}for(let _0x2926ab=0x0;_0x2926ab<_0x90a844[_0x4066('0x18')];_0x2926ab++)_0x59cf0b['has'](_0x90a844[_0x2926ab][_0x4066('0x7a')])&&(_0x90a844[_0x2926ab]['pairId']=_0x59cf0b[_0x4066('0xea')](_0x90a844[_0x2926ab]['pairId']));}[_0x4066('0x9a')](_0x4c182b){const _0x143f43=new Set(_0x4c182b[_0x4066('0x6d')](_0x2cde7a=>_0x2cde7a['id']));for(let _0x38c78b=0x0;_0x38c78b<_0x4c182b[_0x4066('0x18')];_0x38c78b++)_0x143f43[_0x4066('0xd9')](_0x4c182b[_0x38c78b][_0x4066('0x7a')])||0x0==_0x4c182b[_0x38c78b][_0x4066('0x53')]||(_0x4c182b[_0x38c78b][_0x4066('0x10f')]=!0x0);return _0x4c182b[_0x4066('0x29')](_0x4ee3db=>!_0x4ee3db[_0x4066('0x10f')]);}[_0x4066('0xe6')](_0x3c0598){const _0x260155=new Set();for(let _0x279199=0x0;_0x279199<_0x3c0598['length'];_0x279199++){if(_0x260155[_0x4066('0xd9')](_0x3c0598[_0x279199]['id'])&&_0x3c0598[_0x279199][_0x4066('0xbf')]&&(_0x3c0598[_0x279199]['isIncorrect']=!0x0),_0x3c0598[_0x279199][_0x4066('0x10f')])continue;if(0x0==_0x3c0598[_0x279199][_0x4066('0x53')])continue;if('elementStart'!=_0x3c0598[_0x279199][_0x4066('0xdb')])continue;if(null==_0x3c0598[_0x279199][_0x4066('0x7a')])continue;let _0x2f0308=_0x279199+0x1,_0x200f85=0x0;for(;_0x3c0598[_0x2f0308]['id']!=_0x3c0598[_0x279199][_0x4066('0x7a')];)_0x4066('0x8c')==_0x3c0598[_0x2f0308][_0x4066('0xdb')]?_0x200f85++:_0x4066('0xdc')==_0x3c0598[_0x2f0308][_0x4066('0xdb')]&&_0x200f85--,_0x2f0308++;if(0x0!=_0x200f85){if(_0x3c0598[_0x279199]['isRemoved'])_0x3c0598[_0x279199][_0x4066('0x10f')]=!0x0;else for(;_0x2f0308!=_0x279199;)_0x3c0598[_0x2f0308][_0x4066('0xbf')]&&0x0!=_0x3c0598[_0x2f0308][_0x4066('0x53')]&&(_0x3c0598[_0x2f0308][_0x4066('0x10f')]=!0x0,_0x260155['add'](_0x3c0598[_0x2f0308][_0x4066('0x7a')])),_0x2f0308--;}}return _0x3c0598['filter'](_0x161180=>!_0x161180[_0x4066('0x10f')]);}[_0x4066('0x48')](_0x11ecaf){const _0x424fdf=this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xbc')];for(let _0x4d8d4b=0x0;_0x4d8d4b<_0x11ecaf['length'];_0x4d8d4b++){if(!(_0x11ecaf[_0x4d8d4b][_0x4066('0xa0')]||_0x11ecaf[_0x4d8d4b][_0x4066('0x67')]||_0x11ecaf[_0x4d8d4b][_0x4066('0xbf')]||_0x11ecaf[_0x4d8d4b]['isRemoveSuggestion']))continue;if(0x0==_0x11ecaf[_0x4d8d4b][_0x4066('0x53')])continue;const _0x9c4774=_0x11ecaf[_0x4d8d4b]['item'];_0x424fdf[_0x4066('0xac')](_0x9c4774)||_0x424fdf[_0x4066('0xab')](_0x9c4774)||(_0x11ecaf[_0x4d8d4b][_0x4066('0xa0')]&&delete _0x11ecaf[_0x4d8d4b][_0x4066('0xa0')],_0x11ecaf[_0x4d8d4b][_0x4066('0x67')]&&delete _0x11ecaf[_0x4d8d4b][_0x4066('0x67')],_0x11ecaf[_0x4d8d4b]['isRemoveSuggestion']&&delete _0x11ecaf[_0x4d8d4b][_0x4066('0x13')],_0x11ecaf[_0x4d8d4b][_0x4066('0xbf')]&&(_0x11ecaf[_0x4d8d4b][_0x4066('0x10f')]=!0x0));}return _0x11ecaf[_0x4066('0x29')](_0x53518b=>!_0x53518b[_0x4066('0x10f')]);}['_makeModelFromTape'](_0x584a89,_0x304b1b,_0x5467fb){const _0x3e08ed=new _0x11b0d7(),_0x40748a=[],_0x54a92f=new Map(),_0x1923be=this['editor'][_0x4066('0xaf')],_0x121d83=_0x1923be['schema'],_0xc4f063=[_0x3e08ed],_0xb6050b={},_0x38ea3b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x504035=null;const _0x3db317=[0x0];for(let _0x47fe78=0x0;_0x47fe78<_0x584a89['length'];_0x47fe78++){let _0x3face6,_0x49183e;if(_0x4066('0x8c')===_0x584a89[_0x47fe78][_0x4066('0xdb')]){_0x3face6=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317);const _0x31f158=new _0x10cc25(_0x584a89[_0x47fe78]['item'][_0x4066('0xc0')],_0x584a89[_0x47fe78][_0x4066('0x6f')][_0x4066('0x20')]());_0xc4f063[0x0]['_appendChild'](_0x31f158),_0x3db317[_0x4066('0x37')](0x0),_0xc4f063[_0x4066('0x4')](_0x31f158),_0x49183e=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317),_0x504035=null;}else{if(_0x4066('0xdc')===_0x584a89[_0x47fe78]['type'])_0xc4f063['shift'](),_0x3face6=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317),_0x3db317[_0x4066('0x4a')](),_0x3db317[_0x3db317[_0x4066('0x18')]-0x1]++,_0x49183e=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317),_0x504035=null;else{if(_0x3face6=_0x1923be['createPositionFromPath'](_0x3e08ed,_0x3db317),_0x504035&&_0x122159(_0x504035,_0x584a89[_0x47fe78]['item']))_0x504035['_data']+=_0x584a89[_0x47fe78]['item']['data'];else{const _0x73c4f7=new _0x1f52a6(_0x584a89[_0x47fe78][_0x4066('0x6f')][_0x4066('0x5a')],_0x584a89[_0x47fe78]['item'][_0x4066('0x20')]());_0xc4f063[0x0]['_appendChild'](_0x73c4f7),_0x504035=_0x73c4f7;}_0x3db317[_0x3db317[_0x4066('0x18')]-0x1]+=_0x584a89[_0x47fe78][_0x4066('0x6f')][_0x4066('0x15')],_0x49183e=_0x1923be[_0x4066('0x104')](_0x3e08ed,_0x3db317);}}for(const _0x5d1344 of _0x584a89[_0x47fe78]['markersStart'])_0x54a92f[_0x4066('0xbe')](_0x5d1344,{'start':_0x3face6,'end':null});_0x51b106(_0x4066('0x13'),_0x47fe78,_0x3face6,_0x49183e),_0x51b106(_0x4066('0x67'),_0x47fe78,_0x3face6,_0x49183e),_0x51b106(_0x4066('0xbf'),_0x47fe78,_0x3face6,_0x49183e),_0x51b106(_0x4066('0xa0'),_0x47fe78,_0x3face6,_0x49183e);for(const _0x19cdcf of _0x584a89[_0x47fe78]['markersEnd']){_0x54a92f['get'](_0x19cdcf)[_0x4066('0x62')]=_0x49183e;}}for(const [_0x4ccca3,_0x1dad51]of _0x54a92f){const _0x2b3e47=this['editor'][_0x4066('0xaf')][_0x4066('0x57')](_0x1dad51[_0x4066('0x87')],_0x1dad51[_0x4066('0x62')]);_0x3e08ed[_0x4066('0xcf')]['set'](_0x4ccca3,_0x2b3e47);}return _0x40748a[_0x4066('0xf')]((_0x569257,_0x1254a2)=>{const _0x3fd63d=_0x3e08ed[_0x4066('0xcf')][_0x4066('0xea')](_0x4066('0x36')+_0x569257['id']),_0x4ba917=_0x3e08ed['markers'][_0x4066('0xea')](_0x4066('0x36')+_0x1254a2['id']);return _0x3fd63d[_0x4066('0x87')][_0x4066('0xc5')](_0x4ba917[_0x4066('0x87')])?-0x1:_0x3fd63d[_0x4066('0x87')][_0x4066('0xa2')](_0x4ba917[_0x4066('0x87')])?0x1:_0x3fd63d[_0x4066('0x62')][_0x4066('0xc5')](_0x4ba917[_0x4066('0x62')])?-0x1:_0x3fd63d[_0x4066('0x62')][_0x4066('0xa2')](_0x4ba917[_0x4066('0x62')])?0x1:_0x4066('0x105')===_0x569257['type']?-0x1:0x1;}),{'root':_0x3e08ed,'changes':_0x40748a};function _0x51b106(_0x1d3567,_0x2e5ea2,_0x28083e,_0x19434a){const _0x364b9d=!!_0x584a89[_0x2e5ea2][_0x1d3567],_0x3ec191=_0x364b9d?_0x584a89[_0x2e5ea2][_0x1d3567][_0x4066('0xe')]:null,_0x1c3e96=_0x2e5ea2===_0x584a89[_0x4066('0x18')]-0x1,_0x555e49=_0x38ea3b[_0x1d3567][0x0],_0x10f9b3=_0x121d83[_0x4066('0x17')](_0x584a89[_0x2e5ea2][_0x4066('0x6f')]);!_0xb6050b[_0x1d3567]&&_0x364b9d?_0xb6050b[_0x1d3567]={'start':_0x28083e,'tapeItem':_0x584a89[_0x2e5ea2],'userId':_0x3ec191,'type':_0x1d3567}:_0xb6050b[_0x1d3567]&&!_0x364b9d?(_0xb6050b[_0x1d3567][_0x4066('0x62')]=_0x28083e,_0x4e0341(_0xb6050b[_0x1d3567]),_0xb6050b[_0x1d3567]=null):_0xb6050b[_0x1d3567]&&_0x364b9d&&_0xb6050b[_0x1d3567][_0x4066('0xe')]!==_0x3ec191&&(_0xb6050b[_0x1d3567][_0x4066('0x62')]=_0x28083e,_0x555e49&&_0x555e49[_0x4066('0xe')]===_0xb6050b[_0x1d3567]['userId']||_0x4e0341(_0xb6050b[_0x1d3567]),_0xb6050b[_0x1d3567]={'start':_0x28083e,'tapeItem':_0x584a89[_0x2e5ea2],'userId':_0x3ec191,'type':_0x1d3567}),_0xb6050b[_0x1d3567]&&_0x10f9b3&&('elementStart'!==_0x584a89[_0x2e5ea2][_0x4066('0xdb')]||_0x555e49&&_0x555e49[_0x4066('0xe')]===_0x3ec191||_0x38ea3b[_0x1d3567][_0x4066('0x4')]({'userId':_0x3ec191,'object':_0x584a89[_0x2e5ea2]['item'],'change':_0xb6050b[_0x1d3567]}),'elementEnd'===_0x584a89[_0x2e5ea2]['type']&&_0x555e49&&_0x555e49['object']===_0x584a89[_0x2e5ea2][_0x4066('0x6f')]&&(_0x38ea3b[_0x1d3567][_0x4066('0x10d')](),_0xb6050b[_0x1d3567]=_0x555e49[_0x4066('0x41')])),_0xb6050b[_0x1d3567]&&_0x1c3e96&&(_0xb6050b[_0x1d3567][_0x4066('0x62')]=_0x19434a,_0x4e0341(_0xb6050b[_0x1d3567]),_0xb6050b[_0x1d3567]=null);}function _0x4e0341({start:_0x20cb0d,end:_0x669ce1,tapeItem:_0x3313b3,userId:_0x5571da,type:_0x31356a}){const _0x18091a=_0x3313b3[_0x4066('0x6f')],_0x384d77=_0x1923be[_0x4066('0xbc')][_0x4066('0xac')](_0x18091a)&&!_0x1923be[_0x4066('0xbc')][_0x4066('0xab')](_0x18091a),_0x68ae40=_0x20cb0d['nodeAfter']==_0x669ce1[_0x4066('0x5f')]&&_0x669ce1[_0x4066('0xf0')];if(_0x384d77&&_0x68ae40)return;const _0xec12b0=_0x1923be[_0x4066('0x57')](_0x20cb0d,_0x669ce1),_0x5a22bb=_0x304b1b['get'](_0x5571da),_0x2e27b5=new _0x149bf1({'author':_0x5a22bb,'type':_0x4066('0xa0')==_0x31356a||_0x4066('0x67')==_0x31356a?'add':_0x4066('0x45'),'data':{'isSuggestion':_0x4066('0x67')==_0x31356a||'isRemoveSuggestion'==_0x31356a},'createdAt':new Date(),'rootName':_0x5467fb});_0x40748a['push'](_0x2e27b5),_0x3e08ed[_0x4066('0xcf')][_0x4066('0xbe')]('revision:'+_0x2e27b5['id'],_0xec12b0);}function _0x122159(_0x4d4b6f,_0x10882c){const _0x3cc7ec=_0x4d4b6f['getAttributes'](),_0x54e978=_0x10882c[_0x4066('0x20')]();for(const _0xe5d0a8 of _0x3cc7ec){if(_0xe5d0a8[0x1]!==_0x10882c[_0x4066('0x1b')](_0xe5d0a8[0x0]))return!0x1;_0x54e978[_0x4066('0x32')]();}return _0x54e978['next']()[_0x4066('0xf7')];}}[_0x4066('0x102')](){this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0xe4')]({'view':_0x4066('0xa1')}),this['editor']['conversion'][_0x4066('0xda')]('editingDowncast')[_0x4066('0x9c')]({'model':_0x4066('0xa1'),'view':_0x19e217=>{const _0x22ffe1=_0x19e217['markerName'][_0x4066('0xfa')](':')[0x1],_0x3ec420=this['_getChangeFromId'](_0x22ffe1);if(!_0x3ec420)return null;const _0x3c88ad=_0x4066('0x105')==_0x3ec420[_0x4066('0xdb')]?_0x4066('0x9f'):'deletion',_0x3224cd=[_0x4066('0x10'),_0x4066('0x10c')+_0x3c88ad];return _0x3ec420[_0x4066('0x5a')][_0x4066('0xba')]&&_0x3224cd[_0x4066('0x37')](_0x4066('0x10c')+_0x3c88ad+_0x4066('0x90')),this[_0x4066('0x94')]==_0x3ec420&&_0x3224cd[_0x4066('0x37')](_0x4066('0x27')),{'classes':_0x3224cd,'attributes':{'data-change-id':_0x22ffe1}};}}),this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0x105')](_0x15493f=>{_0x15493f['on']('element:pre',(_0x4d5624,_0x77ddc1,_0x33019b)=>{const _0x1d1d99=_0x77ddc1[_0x4066('0x28')][_0x4066('0x14')](0x0);if(!_0x1d1d99||!_0x1d1d99['is'](_0x4066('0x21'),_0x4066('0x5d')))return;if(!_0x33019b[_0x4066('0x4c')][_0x4066('0x10b')](_0x1d1d99,{'attributes':[_0x4066('0x4f'),'vid_end']}))return;const _0x1c3b0e=_0x77ddc1[_0x4066('0x7c')]['start']['nodeAfter'];_0x33019b[_0x4066('0xd4')][_0x4066('0xf9')]('vid_start',_0x1d1d99[_0x4066('0x1b')]('vid_start'),_0x1c3b0e),_0x33019b[_0x4066('0xd4')][_0x4066('0xf9')](_0x4066('0x2c'),_0x1d1d99['getAttribute'](_0x4066('0x2c')),_0x1c3b0e);},{'priority':_0x4066('0x74')});}),this['editor']['conversion']['for'](_0x4066('0xc7'))['add'](_0x25d703=>{_0x25d703['on'](_0x4066('0x21'),(_0x34c9e1,_0x5306f2,_0x3b714e)=>{if(!_0x3b714e[_0x4066('0x4c')][_0x4066('0x10b')](_0x5306f2[_0x4066('0x28')],{'attributes':['vid_start',_0x4066('0x2c')]}))return;if(_0x5306f2[_0x4066('0x7c')][_0x4066('0xf8')])return;const _0x4b1d78=_0x5306f2[_0x4066('0x7c')]['start']['nodeAfter'];_0x4b1d78[_0x4066('0xe2')]('vid_start')||_0x4b1d78['hasAttribute'](_0x4066('0x115'))||(_0x3b714e[_0x4066('0xd4')][_0x4066('0xf9')](_0x4066('0x4f'),_0x5306f2[_0x4066('0x28')][_0x4066('0x1b')](_0x4066('0x4f')),_0x4b1d78),_0x3b714e[_0x4066('0xd4')][_0x4066('0xf9')]('vid_end',_0x5306f2[_0x4066('0x28')]['getAttribute'](_0x4066('0x2c')),_0x4b1d78));},{'priority':_0x4066('0x74')});}),this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')]('upcast')[_0x4066('0x3f')]({'view':{'name':_0x4066('0xb4'),'attributes':{'vid':!0x0}},'model':{'key':_0x4066('0x115'),'value':_0x352467=>_0x352467[_0x4066('0x1b')](_0x4066('0x115'))}}),this['editor'][_0x4066('0xaf')][_0x4066('0xbc')]['on']('checkAttribute',(_0x12288a,[,_0x4bf9ff])=>{[_0x4066('0x4f'),_0x4066('0x2c'),_0x4066('0x115')][_0x4066('0x99')](_0x4bf9ff)&&(_0x12288a[_0x4066('0x39')]=!0x0,_0x12288a['stop']());},{'priority':'highest'}),this[_0x4066('0x112')][_0x4066('0x83')][_0x4066('0xda')](_0x4066('0x107'))['add'](_0x5c6327=>{_0x5c6327['on'](_0x4066('0x110'),(_0x51d46a,_0x2d65d4,_0x27e270)=>{if('\x20'!=_0x2d65d4['item'][_0x4066('0x5a')]||_0x2d65d4['item'][_0x4066('0x5f')][_0x4066('0x64')]>0x1)return;if(!_0x27e270[_0x4066('0x4c')][_0x4066('0x10b')](_0x2d65d4['item'],_0x51d46a['name']))return;const _0x41f8e7=_0x27e270[_0x4066('0xd4')],_0x4f1920=_0x27e270[_0x4066('0xb9')]['toViewRange'](_0x2d65d4[_0x4066('0x9')]);_0x41f8e7[_0x4066('0x63')](_0x4f1920,_0x41f8e7[_0x4066('0x7b')](_0x4066('0xb4')));});}),this['editor'][_0x4066('0x83')]['for'](_0x4066('0x107'))['markerToData']({'model':_0x4066('0xa1')}),this[_0x4066('0x112')]['editing'][_0x4066('0xb5')]['on'](_0x4066('0x30'),function(_0x320c32){const _0x465e84=_0x320c32['plugins'][_0x4066('0xea')](_0x4066('0xcd'));return(_0x36434f,_0xbc8c03,_0x4645a8)=>{const _0x5d10a1=_0xbc8c03[_0x4066('0x3e')][_0x4066('0xfa')](':')[0x1],_0x18015b=_0x465e84[_0x4066('0xd7')](_0x5d10a1);if(!_0x18015b)return null;const _0x5a24bb=_0x4066('0x105')==_0x18015b[_0x4066('0xdb')]?_0x4066('0xfa'):_0x4066('0xa');if(!_0x4645a8['consumable'][_0x4066('0xe5')](_0xbc8c03[_0x4066('0xae')],_0x36434f['name']))return;const _0x7be93b=_0xbc8c03['markerRange'][_0x4066('0x69')](),_0x931289=_0xbc8c03[_0x4066('0xae')][_0x4066('0x87')],_0xeed5fb=_0x320c32[_0x4066('0xaf')][_0x4066('0xbc')];let _0x5cd66f=null,_0x2c8597=null,_0x3057d8=!0x1,_0x346e5d=!0x1;for(const _0x2bd28e of _0x7be93b){const _0x39a6ed=_0x2bd28e[_0x4066('0x6f')];_0x3057d8=_0x3057d8||_0xeed5fb[_0x4066('0x23')](_0x39a6ed);const _0x4f8bd0=_0x4645a8['mapper'][_0x4066('0x56')](_0x39a6ed);if(_0x4f8bd0&&_0x4f8bd0[_0x4066('0xe8')](_0x4066('0x5e')))return;_0x4066('0xdc')==_0x2bd28e[_0x4066('0xdb')]&&(_0xeed5fb['isBlock'](_0x39a6ed)&&!_0xeed5fb[_0x4066('0xab')](_0x39a6ed)&&(_0x39a6ed[_0x4066('0x2e')]||_0x931289[_0x4066('0x118')]?_0x5cd66f&&_0x5cd66f['parent']==_0x39a6ed||(_0x5cd66f=_0x39a6ed,_0x1bcfa3(_0x2bd28e['previousPosition']),_0x346e5d=!0x0):_0x2c8597=_0x2c8597||_0x2bd28e[_0x4066('0x8b')]));}function _0x1bcfa3(_0x16a6e5){const _0x5fbb20=_0x4645a8['writer'][_0x4066('0xce')](_0x4066('0xb4'),{'class':_0x4066('0x10c')+_0x5a24bb}),_0x1c9ea7=_0x4645a8[_0x4066('0xb9')][_0x4066('0x9d')](_0x16a6e5);_0x18015b[_0x4066('0x5a')][_0x4066('0xba')]&&_0x4645a8[_0x4066('0xd4')]['addClass'](_0x4066('0x10c')+_0x5a24bb+_0x4066('0x90'),_0x5fbb20),_0x465e84[_0x4066('0x94')]==_0x18015b&&_0x4645a8[_0x4066('0xd4')][_0x4066('0x26')](_0x4066('0x27'),_0x5fbb20),_0x4645a8[_0x4066('0xd4')][_0x4066('0x4d')](_0x1c9ea7,_0x5fbb20),_0x4645a8[_0x4066('0xb9')][_0x4066('0x11a')](_0x5fbb20,_0xbc8c03[_0x4066('0x3e')]);}_0x3057d8||_0x346e5d||!_0x2c8597||_0x1bcfa3(_0x2c8597);};}(this[_0x4066('0x112')]),{'priority':_0x4066('0x61')}),this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0xb5')]['on']('removeMarker:revision',(_0x4849d3,_0x1eeb8f,_0xc1c0fb)=>{const _0x221e3d=_0xc1c0fb[_0x4066('0xb9')][_0x4066('0x100')](_0x1eeb8f[_0x4066('0x3e')]);if(_0x221e3d)for(const _0x7de5c6 of _0x221e3d)(_0x7de5c6[_0x4066('0xfb')](_0x4066('0xcb'))||_0x7de5c6[_0x4066('0xfb')](_0x4066('0x1c')))&&(_0xc1c0fb[_0x4066('0xb9')][_0x4066('0x116')](_0x7de5c6,_0x1eeb8f[_0x4066('0x3e')]),_0xc1c0fb[_0x4066('0xd4')][_0x4066('0x45')](_0x7de5c6));},{'priority':_0x4066('0x61')}),this['editor'][_0x4066('0x19')]['downcastDispatcher']['on']('addMarker:revision',(_0x4d9c21,_0x490d11,_0x35c06b)=>{const _0x48a0f8=_0x490d11[_0x4066('0x3e')][_0x4066('0xfa')](':')[0x1],_0xfa17a9=this[_0x4066('0xd7')](_0x48a0f8);if(!_0xfa17a9)return null;const _0x5aa55a=_0x4066('0x105')==_0xfa17a9['type']?_0x4066('0xfa'):'merge';if(_0x35c06b[_0x4066('0x4c')]['test'](_0x490d11[_0x4066('0xae')],_0x4d9c21[_0x4066('0xc0')]))for(const _0x38e132 of _0x490d11[_0x4066('0xae')]['getItems']()){if(!_0x38e132['is']('element',_0x4066('0x7')))continue;const _0x4fa85c=_0x35c06b['writer'][_0x4066('0xce')](_0x4066('0xb4'),{'class':_0x4066('0x10c')+_0x5aa55a}),_0xf49d00=_0x35c06b[_0x4066('0xb9')][_0x4066('0x9d')](this[_0x4066('0x112')][_0x4066('0xaf')]['createPositionBefore'](_0x38e132));_0xfa17a9[_0x4066('0x5a')][_0x4066('0xba')]&&_0x35c06b[_0x4066('0xd4')]['addClass'](_0x4066('0x10c')+_0x5aa55a+_0x4066('0x90'),_0x4fa85c),this['activeChange']==_0xfa17a9&&_0x35c06b[_0x4066('0xd4')][_0x4066('0x26')](_0x4066('0x27'),_0x4fa85c),_0x35c06b[_0x4066('0xd4')]['insert'](_0xf49d00,_0x4fa85c),_0x35c06b[_0x4066('0xb9')][_0x4066('0x11a')](_0x4fa85c,_0x490d11[_0x4066('0x3e')]);}},{'priority':_0x4066('0x61')}),this[_0x4066('0x112')]['model'][_0x4066('0x50')]['on'](_0x4066('0x41'),()=>{this[_0x4066('0x112')]['editing'][_0x4066('0x7d')]['change'](_0x1e217c=>{for(const _0x1740aa of this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x50')][_0x4066('0x8a')]()){const _0x41ddf3=this['editor']['model'][_0x4066('0x50')][_0x4066('0xf4')](_0x1740aa),_0x15d323=this[_0x4066('0x112')][_0x4066('0x19')]['view'][_0x4066('0x50')][_0x4066('0xf4')](_0x1740aa);if(_0x15d323){const _0x2fcf28=_0x41ddf3[_0x4066('0x1b')](_0x4066('0x33'));if(_0x1e217c[_0x4066('0xb1')](_0x4066('0x98'),_0x15d323),_0x1e217c['removeClass'](_0x4066('0xf1'),_0x15d323),_0x1e217c[_0x4066('0x91')]('ck-revision-history-root-remove',_0x15d323),_0x1e217c[_0x4066('0x91')](_0x4066('0xaa'),_0x15d323),_0x2fcf28){const _0x19a2a6=this['_getChangeFromId'](_0x2fcf28);if(!_0x19a2a6)return null;_0x1e217c[_0x4066('0xf9')]('data-change-id',_0x2fcf28,_0x15d323),_0x1e217c[_0x4066('0x26')](_0x4066('0xca')+_0x19a2a6[_0x4066('0xdb')],_0x15d323),this[_0x4066('0x94')]==_0x19a2a6&&_0x1e217c['addClass'](_0x4066('0xaa'),_0x15d323);}}}});}),this[_0x4066('0x112')]['conversion'][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0xe4')]({'view':_0x4066('0xf6'),'model':_0x36402a=>_0x4066('0x3b')+_0x36402a,'converterPriority':_0x4066('0xa7')}),this[_0x4066('0x112')]['conversion'][_0x4066('0xda')](_0x4066('0xc7'))[_0x4066('0xe4')]({'view':_0x4066('0x68'),'model':_0x401dba=>'revision-suggestion:'+_0x401dba,'converterPriority':_0x4066('0xa7')}),this[_0x4066('0x112')]['conversion'][_0x4066('0xda')](_0x4066('0x107'))[_0x4066('0x2b')]({'model':'revision-suggestion','view':_0x1828af=>({'name':'suggestion:'+_0x1828af,'group':_0x4066('0xb7')}),'converterPriority':_0x4066('0xa7')}),this['editor'][_0x4066('0x83')]['for'](_0x4066('0xbb'))[_0x4066('0x9c')]({'model':_0x4066('0xb7'),'view':_0x4f81c3=>{const _0x1b0bf0=_0x4f81c3[_0x4066('0x3e')][_0x4066('0xfa')](':')[0x1];return'insertion'!=_0x1b0bf0&&_0x4066('0xed')!=_0x1b0bf0?null:{'classes':['ck-suggestion-preview-marker',_0x4066('0xa4')+_0x1b0bf0]};}}),this[_0x4066('0x112')][_0x4066('0x19')]['downcastDispatcher']['on'](_0x4066('0xb3'),et(this[_0x4066('0x112')],_0x4066('0xa')),{'priority':_0x4066('0x61')}),this[_0x4066('0x112')][_0x4066('0x19')][_0x4066('0xb5')]['on'](_0x4066('0x22'),et(this[_0x4066('0x112')],_0x4066('0xfa')),{'priority':_0x4066('0x61')}),this[_0x4066('0x112')]['editing'][_0x4066('0xb5')]['on'](_0x4066('0xdd'),(_0x30184c,_0x2ab622,_0x2ee347)=>{const _0x59db87=_0x2ee347['mapper'][_0x4066('0x100')](_0x2ab622['markerName']);if(_0x59db87)for(const _0x13f025 of _0x59db87)_0x13f025['is']('uiElement')&&(_0x2ee347['mapper']['unbindElementFromMarkerName'](_0x13f025,_0x2ab622[_0x4066('0x3e')]),_0x2ee347[_0x4066('0xd4')][_0x4066('0x45')](_0x13f025));},{'priority':_0x4066('0x61')});}[_0x4066('0xd7')](_0x2623ad){return this['_changeIdToChange'][_0x4066('0xea')](_0x2623ad);}[_0x4066('0xd0')](_0x21d47d){return this['_changeView']&&this[_0x4066('0x8d')][_0x4066('0xc8')](),this[_0x4066('0x8d')]=new _0x2dd857(this[_0x4066('0x112')][_0x4066('0x7e')],_0x21d47d),this[_0x4066('0x8d')];}['_initInteractions'](){this[_0x4066('0x112')][_0x4066('0xaf')]['document']['selection']['observeMarkers'](_0x4066('0xa1')),this['on']('change:activeView',(_0x16cc87,_0x3f01ce,_0x4ede96,_0x1e30e6)=>{_0x1e30e6&&this['_balloon'][_0x4066('0x45')](_0x1e30e6),_0x4ede96&&(this['_balloon'][_0x4066('0x105')]({'view':_0x4ede96,'stackId':_0x4066('0x2'),'position':{'target':()=>{const _0x45b219=this[_0x4066('0x112')][_0x4066('0x19')],_0x3efb64=this['_getChangeFromId'](_0x4ede96['changeId']);let _0x1fb41b;if(_0x3efb64['data'][_0x4066('0x89')]){const _0x477bc6=_0x45b219[_0x4066('0x7d')]['getDomRoot'](_0x3efb64[_0x4066('0x119')]);_0x1fb41b=Array['from'](_0x477bc6['getClientRects']());}else{const _0x311a8c=this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0xcf')][_0x4066('0xea')](_0x4066('0x36')+_0x4ede96['changeId']);_0x1fb41b=Array[_0x4066('0x5c')](_0x45b219[_0x4066('0xb9')][_0x4066('0x100')](_0x311a8c[_0x4066('0xc0')]))['map'](_0x2cce23=>_0x45b219['view']['domConverter'][_0x4066('0x75')](_0x2cce23))[_0x4066('0x6d')](_0x4daa74=>Array[_0x4066('0x5c')](_0x4daa74[_0x4066('0x60')]()))['flat']();}if(!this['_activeViewTarget'])return _0x1fb41b[0x0];return _0x1fb41b[_0x4066('0xad')](_0x137a29=>_0x137a29['top']-0x3<=this['_activeViewTarget']['y']&&_0x137a29[_0x4066('0xd6')]+0x3>=this[_0x4066('0x46')]['y']&&_0x137a29[_0x4066('0x44')]-0x3<=this[_0x4066('0x46')]['x']&&_0x137a29[_0x4066('0x6b')]+0x3>=this[_0x4066('0x46')]['x'])||_0x1fb41b[0x0];}}}),this['_balloon'][_0x4066('0x114')](_0x4066('0x2')));}),this['on'](_0x4066('0x8f'),(_0x3d1ba2,_0x1012c6,_0x5d51b8,_0x509817)=>{this[_0x4066('0xcc')]=_0x5d51b8?this[_0x4066('0xd0')](_0x5d51b8):null,this[_0x4066('0x112')]['model'][_0x4066('0x41')](()=>{const _0x5fbaac=this[_0x4066('0x112')][_0x4066('0x19')];_0x509817&&(_0x509817[_0x4066('0x5a')]['isOnRoot']?_0x5fbaac[_0x4066('0x7d')][_0x4066('0x41')](_0x261fe9=>{_0x261fe9[_0x4066('0x91')](_0x4066('0xaa'),_0x5fbaac[_0x4066('0x7d')]['document'][_0x4066('0xf4')](_0x509817[_0x4066('0x119')]));}):_0x5fbaac[_0x4066('0xe9')](_0x4066('0x36')+_0x509817['id'])),_0x5d51b8&&(_0x5d51b8[_0x4066('0x5a')][_0x4066('0x89')]?_0x5fbaac[_0x4066('0x7d')][_0x4066('0x41')](_0x359c47=>{_0x359c47[_0x4066('0x26')](_0x4066('0xaa'),_0x5fbaac['view']['document'][_0x4066('0xf4')](_0x5d51b8[_0x4066('0x119')]));}):_0x5fbaac[_0x4066('0xe9')](_0x4066('0x36')+_0x5d51b8['id']));});}),this[_0x4066('0xfe')](this[_0x4066('0x112')]['editing'][_0x4066('0x7d')][_0x4066('0x50')],'mouseover',(_0x535109,_0xdd42e0)=>{if(this['activeChange'])return;const _0x273b2d=this['_findChangeIdFromDomTarget'](_0xdd42e0[_0x4066('0x3d')]),_0x30094d=this['_changeIdToChange'][_0x4066('0xea')](_0x273b2d);_0x30094d?(this['_activeViewTarget']={'x':_0xdd42e0['domEvent']['x'],'y':_0xdd42e0[_0x4066('0xef')]['y']},this[_0x4066('0xcc')]=this[_0x4066('0xd0')](_0x30094d)):(this[_0x4066('0x46')]=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing'][_0x4066('0x7d')][_0x4066('0x50')],'mousedown',(_0x8e975e,_0x50a634)=>{const _0x5c2da2=this['_findChangeIdFromDomTarget'](_0x50a634[_0x4066('0x3d')]),_0x48c0a3=this[_0x4066('0x38')][_0x4066('0xea')](_0x5c2da2);_0x48c0a3?(this[_0x4066('0x46')]={'x':_0x50a634[_0x4066('0xef')]['x'],'y':_0x50a634[_0x4066('0xef')]['y']},_0x48c0a3===this[_0x4066('0x94')]?this[_0x4066('0xe0')][_0x4066('0x3')]():this['activeChange']=_0x48c0a3):(this[_0x4066('0x46')]=null,this[_0x4066('0x94')]=null);});}[_0x4066('0xd5')](_0x408374){do{const _0x191e24=_0x408374['getAttribute']('data-change-id');if(_0x191e24)return _0x191e24;_0x408374=_0x408374[_0x4066('0x5f')];}while(_0x408374);return null;}[_0x4066('0x11')](){this[_0x4066('0x112')][_0x4066('0xaf')][_0x4066('0x41')](_0x594565=>{for(const _0x40cdb8 of this['editor'][_0x4066('0xaf')][_0x4066('0xcf')])_0x594565[_0x4066('0x6c')](_0x40cdb8);});}}function et(_0x2e0935,_0x25ef8c){return(_0x516088,_0x243bb2,_0x1b4f54)=>{if(!_0x1b4f54[_0x4066('0x4c')][_0x4066('0xe5')](_0x243bb2['markerRange'],_0x516088['name']))return;const _0x4149b6=_0x243bb2['markerRange'][_0x4066('0x69')](),_0x367fab=_0x243bb2['markerRange']['start'],_0x15f10d=_0x2e0935[_0x4066('0xaf')][_0x4066('0xbc')];let _0x252bcc=null,_0x596567=null,_0x8108dd=!0x1,_0x8e6bf4=!0x1;for(const _0x4d1157 of _0x4149b6){const _0x29dbf9=_0x4d1157['item'];_0x8108dd=_0x8108dd||_0x15f10d[_0x4066('0x23')](_0x29dbf9);const _0x104139=_0x1b4f54[_0x4066('0xb9')][_0x4066('0x56')](_0x29dbf9);if(_0x104139&&_0x104139[_0x4066('0xe8')]('addHighlight'))return;_0x4066('0xdc')==_0x4d1157['type']&&(_0x15f10d[_0x4066('0xac')](_0x29dbf9)&&!_0x15f10d[_0x4066('0xab')](_0x29dbf9)&&(_0x29dbf9[_0x4066('0x2e')]||_0x367fab['isAtEnd']?_0x252bcc&&_0x252bcc[_0x4066('0x5f')]==_0x29dbf9||(_0x252bcc=_0x29dbf9,_0x1d31a3(_0x4d1157[_0x4066('0x8b')]),_0x8e6bf4=!0x0):_0x596567=_0x596567||_0x4d1157[_0x4066('0x8b')]));}function _0x1d31a3(_0x4d5127){const _0x26ed96=_0x1b4f54['mapper']['toViewPosition'](_0x4d5127),_0x343191=_0x1b4f54['writer'][_0x4066('0xce')](_0x4066('0xb4'),{'class':'ck-suggestion-preview-marker-'+_0x25ef8c});_0x1b4f54['writer'][_0x4066('0x4d')](_0x26ed96,_0x343191),_0x1b4f54['mapper'][_0x4066('0x11a')](_0x343191,_0x243bb2[_0x4066('0x3e')]);}_0x8108dd||_0x8e6bf4||!_0x596567||_0x1d31a3(_0x596567);};}export class RestoreRevisionCommand extends _0x5dfb1c{constructor(_0x2e9701){super(_0x2e9701);const _0x319504=_0x2e9701[_0x4066('0xb2')][_0x4066('0xea')](d);this[_0x4066('0x86')]=!0x1,this['listenTo'](_0x319504,_0x4066('0x65'),()=>this['refresh']()),this[_0x4066('0xfe')](_0x319504,_0x4066('0x108'),()=>this[_0x4066('0x92')]());}['execute'](){const _0x5839a9=this['editor'],_0xb6b6fd=_0x5839a9[_0x4066('0xb2')][_0x4066('0xea')](d),_0x28e0d6=_0xb6b6fd[_0x4066('0x4b')]?_0xb6b6fd['diff']['newRevisionId']:null;_0x5839a9[_0x4066('0x12')][_0x4066('0xea')]('revisionHistory')[_0x4066('0x52')](_0x28e0d6);}[_0x4066('0x92')](){const {isReady:_0x359bc7,isEnabled:_0x56664c}=this[_0x4066('0x112')]['plugins'][_0x4066('0xea')](d);this[_0x4066('0x11c')]=_0x359bc7&&_0x56664c;}}export class ShowChangeCommand extends _0x5dfb1c{constructor(_0x19e842,{direction:_0x3588a4}){super(_0x19e842);const _0x1801f9=_0x19e842[_0x4066('0xb2')][_0x4066('0xea')](d);this[_0x4066('0x86')]=!0x1,this[_0x4066('0xc1')]='forward'===_0x3588a4?0x1:-0x1,this[_0x4066('0xfe')](_0x1801f9,'change:isReady',()=>this[_0x4066('0x92')]()),this[_0x4066('0xfe')](_0x1801f9,'change:isEnabled',()=>this[_0x4066('0x92')]()),this[_0x4066('0xfe')](_0x1801f9,'change:activeChange',()=>this[_0x4066('0x92')]());}[_0x4066('0x85')](){const _0x1d8787=this['editor'],_0x49f0ff=_0x1d8787[_0x4066('0xb2')]['get'](d),{isNavigationMode:_0x25c10e,currentChangeNumber:_0x461335}=_0x49f0ff;let _0x39d577;if(_0x49f0ff[_0x4066('0x94')]=_0x25c10e?_0x49f0ff[_0x4066('0xb6')][_0x4066('0xc3')][_0x4066('0xea')](_0x461335+this[_0x4066('0xc1')]):_0x49f0ff['diff'][_0x4066('0xc3')][_0x4066('0xb8')],_0x49f0ff[_0x4066('0x94')][_0x4066('0x5a')][_0x4066('0x89')])_0x39d577=_0x1d8787['editing'][_0x4066('0x7d')][_0x4066('0xa8')](_0x49f0ff[_0x4066('0x94')][_0x4066('0x119')]);else{const _0xd261fb=_0x1d8787[_0x4066('0xaf')]['markers'][_0x4066('0xea')](_0x4066('0x36')+_0x49f0ff[_0x4066('0x94')]['id']);_0x39d577=_0x198c25(_0x1d8787[_0x4066('0x19')],_0xd261fb);}_0x102840({'target':_0x39d577,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2153e8,currentChangeNumber:_0x1b8ab3,numberOfChanges:_0x568f94,isReady:_0x129aa7,isEnabled:_0xd36a46}=this[_0x4066('0x112')]['plugins'][_0x4066('0xea')](d);this['isEnabled']=!!(_0xd36a46&&_0x129aa7&&_0x568f94)&&(!_0x2153e8||(0x1===this[_0x4066('0xc1')]?_0x1b8ab3<_0x568f94-0x1:_0x1b8ab3>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6aaa=['map','locale','change:isActionsDropdownOpen','children','ck-on','action','buttonView','isOpen','Name\x20this\x20revision','first','Show\x20more\x20items','isReady','stopPropagation','isEnabled','find','set','Restore\x20this\x20revision','ck-revision-history-sidebar__revision__actions','source','bind','name','model','bindTemplate','listenTo','isVisible','class','_action','Compare\x20against\x20selected','isActionsDropdownOpen','extendTemplate','function','execute'];(function(_0x24c27b,_0x6aaad9){const _0x2ab470=function(_0x35bd8f){while(--_0x35bd8f){_0x24c27b['push'](_0x24c27b['shift']());}};_0x2ab470(++_0x6aaad9);}(_0x6aaa,0xfe));const _0x2ab4=function(_0x24c27b,_0x6aaad9){_0x24c27b=_0x24c27b-0x0;let _0x2ab470=_0x6aaa[_0x24c27b];return _0x2ab470;};import{Collection as _0x23b8b1}from'ckeditor5/src/utils';import{icons as _0x129dfb}from'ckeditor5/src/core';import{Model as _0x1ed166,addListToDropdown as _0x270da5,createDropdown as _0x1af637}from'ckeditor5/src/ui';import{getTranslation as _0x576533}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x37eecb,_0x856f6b){const _0x2b7c56=_0x37eecb[_0x2ab4('0x18')],_0x4a3fde=_0x37eecb['locale'],_0x3ed7c9=_0x1af637(_0x4a3fde);_0x3ed7c9['panelPosition']='sw';const _0x51830b=function(_0x284a7a,_0x127507){const _0x440d71=function(_0x173fec,_0x4df878){const _0x483912=_0x173fec[_0x2ab4('0x3')],_0x53b2f5={'Compare\x20against\x20selected':_0x576533(_0x483912,_0x2ab4('0x1d')),'Name\x20this\x20revision':_0x576533(_0x483912,_0x2ab4('0xa')),'Restore\x20this\x20revision':_0x576533(_0x483912,_0x2ab4('0x12'))};return _0x4df878[_0x2ab4('0x2')](_0xa6b887=>{const _0x483682=_0x53b2f5[_0xa6b887[_0x2ab4('0x16')]];return _0x483682&&_0x483682!==_0xa6b887[_0x2ab4('0x16')]&&(_0xa6b887[_0x2ab4('0x16')]=_0x483682),_0xa6b887;});}(_0x284a7a,_0x127507),_0x4a83cf=new _0x23b8b1();for(const _0x11b989 of _0x440d71){const _0x281e2f={'type':'button','model':new _0x1ed166({'label':_0x11b989[_0x2ab4('0x16')],'class':_0x11b989[_0x2ab4('0x1b')],'withText':!0x0,'_action':_0x11b989[_0x2ab4('0x7')]})};_0x281e2f[_0x2ab4('0x17')]['bind'](_0x2ab4('0xf'))['to'](_0x284a7a,_0x2ab4('0x1e'),_0x600903=>_0x2ab4('0x0')!=typeof _0x11b989[_0x2ab4('0xf')]||(!_0x600903||_0x11b989['isEnabled'](_0x284a7a))),_0x4a83cf['add'](_0x281e2f);}return _0x4a83cf;}(_0x37eecb,_0x856f6b);return _0x37eecb[_0x2ab4('0x15')](_0x2ab4('0x1e'))['to'](_0x3ed7c9,_0x2ab4('0x9')),_0x3ed7c9[_0x2ab4('0x8')][_0x2ab4('0x11')]({'label':_0x576533(_0x4a3fde,_0x2ab4('0xc')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x129dfb['threeVerticalDots']}),_0x3ed7c9[_0x2ab4('0x1f')]({'attributes':{'class':[_0x2ab4('0x13'),_0x2b7c56['if'](_0x2ab4('0x1e'),_0x2ab4('0x6'))]},'on':{'click':_0x2b7c56['to'](_0x501b3c=>_0x501b3c[_0x2ab4('0xe')]())}}),_0x3ed7c9['on'](_0x2ab4('0x1'),_0x5cd09c=>{_0x37eecb[_0x2ab4('0xd')]&&_0x2ab4('0x0')==typeof _0x5cd09c['source'][_0x2ab4('0x1c')]&&_0x5cd09c[_0x2ab4('0x14')]['_action'](_0x37eecb);}),_0x270da5(_0x3ed7c9,_0x51830b),_0x3ed7c9[_0x2ab4('0x19')](_0x37eecb,_0x2ab4('0x4'),(_0x1eba50,_0x54a8d6,_0x1be3e9)=>{if(_0x1be3e9)for(const _0x2fede2 of _0x3ed7c9['listView']['items']){const _0x50fc6f=_0x2fede2[_0x2ab4('0x5')][_0x2ab4('0xb')],_0x35f2e5=_0x856f6b[_0x2ab4('0x10')](_0x2854c9=>_0x2854c9['action']===_0x50fc6f[_0x2ab4('0x1c')])[_0x2ab4('0x1a')];_0x2fede2[_0x2ab4('0x1a')]=void 0x0===_0x35f2e5||_0x35f2e5(_0x37eecb);}}),_0x3ed7c9;}
23
+ const _0x49d6=['locale','bindTemplate','listView','find','name','isOpen','buttonView','extendTemplate','isEnabled','Restore\x20this\x20revision','isVisible','action','stopPropagation','threeVerticalDots','Show\x20more\x20items','bind','_action','first','function','execute','class','ck-on','ck-revision-history-sidebar__revision__actions','listenTo','map','source','add','isActionsDropdownOpen','set','isReady','children','button'];(function(_0x1ca99f,_0x49d6f6){const _0x1a5e1f=function(_0x3375ed){while(--_0x3375ed){_0x1ca99f['push'](_0x1ca99f['shift']());}};_0x1a5e1f(++_0x49d6f6);}(_0x49d6,0xdc));const _0x1a5e=function(_0x1ca99f,_0x49d6f6){_0x1ca99f=_0x1ca99f-0x0;let _0x1a5e1f=_0x49d6[_0x1ca99f];return _0x1a5e1f;};import{Collection as _0x5d2dd5}from'ckeditor5/src/utils';import{icons as _0x4f6091}from'ckeditor5/src/core';import{Model as _0x3e3370,addListToDropdown as _0x51fd5b,createDropdown as _0xa97841}from'ckeditor5/src/ui';import{getTranslation as _0x5bb825}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xb44a5,_0x286058){const _0x4d565b=_0xb44a5[_0x1a5e('0x5')],_0x395c63=_0xb44a5['locale'],_0x5636d0=_0xa97841(_0x395c63);_0x5636d0['panelPosition']='sw';const _0x1708d7=function(_0x2c01f7,_0x1b80b3){const _0x1a0c89=function(_0x38fd65,_0x34c28b){const _0x17b952=_0x38fd65[_0x1a5e('0x4')],_0x44bd4e={'Compare\x20against\x20selected':_0x5bb825(_0x17b952,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x5bb825(_0x17b952,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x5bb825(_0x17b952,_0x1a5e('0xd'))};return _0x34c28b[_0x1a5e('0x1c')](_0x5d65fe=>{const _0x298e2b=_0x44bd4e[_0x5d65fe[_0x1a5e('0x8')]];return _0x298e2b&&_0x298e2b!==_0x5d65fe['name']&&(_0x5d65fe[_0x1a5e('0x8')]=_0x298e2b),_0x5d65fe;});}(_0x2c01f7,_0x1b80b3),_0x7564a4=new _0x5d2dd5();for(const _0x137fc7 of _0x1a0c89){const _0x12a48d={'type':_0x1a5e('0x3'),'model':new _0x3e3370({'label':_0x137fc7[_0x1a5e('0x8')],'class':_0x137fc7[_0x1a5e('0x18')],'withText':!0x0,'_action':_0x137fc7['action']})};_0x12a48d['model']['bind'](_0x1a5e('0xc'))['to'](_0x2c01f7,_0x1a5e('0x1f'),_0x5165c7=>_0x1a5e('0x16')!=typeof _0x137fc7[_0x1a5e('0xc')]||(!_0x5165c7||_0x137fc7[_0x1a5e('0xc')](_0x2c01f7))),_0x7564a4[_0x1a5e('0x1e')](_0x12a48d);}return _0x7564a4;}(_0xb44a5,_0x286058);return _0xb44a5[_0x1a5e('0x13')](_0x1a5e('0x1f'))['to'](_0x5636d0,_0x1a5e('0x9')),_0x5636d0[_0x1a5e('0xa')][_0x1a5e('0x0')]({'label':_0x5bb825(_0x395c63,_0x1a5e('0x12')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4f6091[_0x1a5e('0x11')]}),_0x5636d0[_0x1a5e('0xb')]({'attributes':{'class':[_0x1a5e('0x1a'),_0x4d565b['if'](_0x1a5e('0x1f'),_0x1a5e('0x19'))]},'on':{'click':_0x4d565b['to'](_0x58a919=>_0x58a919[_0x1a5e('0x10')]())}}),_0x5636d0['on'](_0x1a5e('0x17'),_0xa5b793=>{_0xb44a5[_0x1a5e('0x1')]&&_0x1a5e('0x16')==typeof _0xa5b793[_0x1a5e('0x1d')][_0x1a5e('0x14')]&&_0xa5b793[_0x1a5e('0x1d')][_0x1a5e('0x14')](_0xb44a5);}),_0x51fd5b(_0x5636d0,_0x1708d7),_0x5636d0[_0x1a5e('0x1b')](_0xb44a5,'change:isActionsDropdownOpen',(_0x446954,_0x14f9d0,_0x50b628)=>{if(_0x50b628)for(const _0x25918b of _0x5636d0[_0x1a5e('0x6')]['items']){const _0x276071=_0x25918b[_0x1a5e('0x2')][_0x1a5e('0x15')],_0x33b38f=_0x286058[_0x1a5e('0x7')](_0x3e00d1=>_0x3e00d1[_0x1a5e('0xf')]===_0x276071[_0x1a5e('0x14')])[_0x1a5e('0xe')];_0x25918b['isVisible']=void 0x0===_0x33b38f||_0x33b38f(_0xb44a5);}}),_0x5636d0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2325=['ck-revision-history-sidebar__revision-author_creator','push','name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author__name','span'];(function(_0x222de1,_0x2325b0){const _0x5b6aab=function(_0x50f1bd){while(--_0x50f1bd){_0x222de1['push'](_0x222de1['shift']());}};_0x5b6aab(++_0x2325b0);}(_0x2325,0x6c));const _0x5b6a=function(_0x222de1,_0x2325b0){_0x222de1=_0x222de1-0x0;let _0x5b6aab=_0x2325[_0x222de1];return _0x5b6aab;};import{View as _0x48bdd1,IconView as _0x919dde}from'ckeditor5/src/ui';import{getTranslation as _0x536cd3}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4a798d from'../../../theme/icons/user.svg';export default class ti extends _0x48bdd1{constructor(_0x3ce5d1,_0x4fa91a,_0x252aaa){super(_0x3ce5d1);const _0x24a3dc=new _0x919dde();_0x24a3dc['set']({'content':_0x4a798d,'viewBox':_0x5b6a('0x0')});const _0x5c230f=['ck',_0x5b6a('0x1')];_0x252aaa&&_0x5c230f[_0x5b6a('0x5')](_0x5b6a('0x4'));const _0x408a06=[{'tag':_0x5b6a('0x3'),'attributes':{'class':['ck',_0x5b6a('0x2')],'title':_0x536cd3(_0x3ce5d1,_0x252aaa?'Revision\x20creator':'Revision\x20author')},'children':[_0x24a3dc,_0x4fa91a[_0x5b6a('0x6')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5c230f},'children':_0x408a06});}}
23
+ const _0x57f7=['ck-revision-history-sidebar__revision-author','Revision\x20author','ck-revision-history-sidebar__revision-author_creator','set','Revision\x20creator','ck-revision-history-sidebar__revision-author__name','push','0\x200\x2011\x2010','setTemplate','name'];(function(_0x4e11ff,_0x57f75f){const _0x1d39da=function(_0x1c12f7){while(--_0x1c12f7){_0x4e11ff['push'](_0x4e11ff['shift']());}};_0x1d39da(++_0x57f75f);}(_0x57f7,0x1ac));const _0x1d39=function(_0x4e11ff,_0x57f75f){_0x4e11ff=_0x4e11ff-0x0;let _0x1d39da=_0x57f7[_0x4e11ff];return _0x1d39da;};import{View as _0x242807,IconView as _0x59b14d}from'ckeditor5/src/ui';import{getTranslation as _0x383dc4}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x267fd5 from'../../../theme/icons/user.svg';export default class ti extends _0x242807{constructor(_0x384331,_0x1d770e,_0x3c9c41){super(_0x384331);const _0x8225c4=new _0x59b14d();_0x8225c4[_0x1d39('0x5')]({'content':_0x267fd5,'viewBox':_0x1d39('0x9')});const _0x3b9929=['ck',_0x1d39('0x2')];_0x3c9c41&&_0x3b9929[_0x1d39('0x8')](_0x1d39('0x4'));const _0x2c931d=[{'tag':'span','attributes':{'class':['ck',_0x1d39('0x7')],'title':_0x383dc4(_0x384331,_0x3c9c41?_0x1d39('0x6'):_0x1d39('0x3'))},'children':[_0x8225c4,_0x1d770e[_0x1d39('0x1')]]}];this[_0x1d39('0x0')]({'tag':'li','attributes':{'class':_0x3b9929},'children':_0x2c931d});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3e75=['ck-revision-history-sidebar__revision-name','set','Revision\x20name','extendTemplate','span'];(function(_0x26f387,_0x3e756d){var _0x3e35c8=function(_0x228538){while(--_0x228538){_0x26f387['push'](_0x26f387['shift']());}};_0x3e35c8(++_0x3e756d);}(_0x3e75,0x107));var _0x3e35=function(_0x26f387,_0x3e756d){_0x26f387=_0x26f387-0x0;var _0x3e35c8=_0x3e75[_0x26f387];return _0x3e35c8;};import{LabeledFieldView as _0x367a94}from'ckeditor5/src/ui';import{getTranslation as _0x46e5c1}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x367a94{constructor(_0x2fdf6d,_0x14244c){super(_0x2fdf6d,_0x14244c),this[_0x3e35('0x3')]({'label':_0x46e5c1(_0x2fdf6d,_0x3e35('0x4'))}),this[_0x3e35('0x0')]({'tag':_0x3e35('0x1'),'attributes':{'class':[_0x3e35('0x2')]}});}}
23
+ var _0x1f96=['Revision\x20name','extendTemplate','set'];(function(_0x1697bd,_0x1f9668){var _0xeb245e=function(_0x402bd6){while(--_0x402bd6){_0x1697bd['push'](_0x1697bd['shift']());}};_0xeb245e(++_0x1f9668);}(_0x1f96,0xc2));var _0xeb24=function(_0x1697bd,_0x1f9668){_0x1697bd=_0x1697bd-0x0;var _0xeb245e=_0x1f96[_0x1697bd];return _0xeb245e;};import{LabeledFieldView as _0x2da163}from'ckeditor5/src/ui';import{getTranslation as _0x3d6ac9}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x2da163{constructor(_0xeaebb4,_0x5b9944){super(_0xeaebb4,_0x5b9944),this[_0xeb24('0x0')]({'label':_0x3d6ac9(_0xeaebb4,_0xeb24('0x1'))}),this[_0xeb24('0x2')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d49=['createdAt','placeholder','set','revisionActionsView','ck-reset','setName','map','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__controls-wrapper','bindTemplate','deselect','revisionNameView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','change','ck-revision-history-sidebar__actions_dropdown_open','isReady','select','element','authors','_createdAtFormatted','bind','extendTemplate','filter','isEnabled','value','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision_highlighted','creator','unshift','isSelected','div','fieldView','ck-revision-history-sidebar__revision-authors','isActionsDropdownOpen','name','isHighlighted','closest','uiLanguage','render'];(function(_0xc7f5a1,_0x3d499a){const _0x27ad73=function(_0x50591e){while(--_0x50591e){_0xc7f5a1['push'](_0xc7f5a1['shift']());}};_0x27ad73(++_0x3d499a);}(_0x3d49,0x98));const _0x27ad=function(_0xc7f5a1,_0x3d499a){_0xc7f5a1=_0xc7f5a1-0x0;let _0x27ad73=_0x3d49[_0xc7f5a1];return _0x27ad73;};import{View as _0x288a3c,createLabeledInputText as _0x3921b9}from'ckeditor5/src/ui';import{ConfirmMixin as _0x16ee6}from'ckeditor5-collaboration/src/collaboration-core';import _0x2bd263 from'./revisionnameview';import _0x1828a4 from'./revisionauthorview';import{dateToPrettyFormat as _0x5c1608}from'./utils';import{createActionsDropdownView as _0x2a2009}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x16ee6(_0x288a3c){constructor(_0x22ba3e,_0x2538eb,_0x2eccc3){super(_0x22ba3e);const _0x5ebbe7=this[_0x27ad('0xd')],_0x50f3a4=function(_0x4295f1,_0x328de1){const _0x53a5a6=Array['from'](_0x328de1[_0x27ad('0x16')])[_0x27ad('0x1a')](_0x44460a=>_0x44460a!=_0x328de1[_0x27ad('0x1f')]);return _0x328de1['creator']&&_0x53a5a6[_0x27ad('0x20')](_0x328de1[_0x27ad('0x1f')]),_0x53a5a6[_0x27ad('0xa')](_0x181c6c=>new _0x1828a4(_0x4295f1,_0x181c6c,_0x181c6c==_0x328de1[_0x27ad('0x1f')]));}(_0x22ba3e,_0x2538eb);this['id']=_0x2538eb['id'],this['_revision']=_0x2538eb,this[_0x27ad('0x18')](_0x27ad('0x26'),_0x27ad('0x4'))['to'](_0x2538eb),this['bind'](_0x27ad('0x17'))['to'](this,'createdAt',_0x940fd9=>_0x940fd9?_0x5c1608(_0x22ba3e[_0x27ad('0x2')],_0x940fd9):void 0x0),this[_0x27ad('0x6')]('isSelected',!0x1),this[_0x27ad('0x6')]('isHighlighted',!0x1),this[_0x27ad('0x6')](_0x27ad('0x25'),!0x1),this[_0x27ad('0x6')](_0x27ad('0x13'),!0x1),this[_0x27ad('0x6')]('isEnabled',!0x1),this['revisionNameView']=new _0x2bd263(_0x22ba3e,_0x3921b9),this['revisionNameView'][_0x27ad('0x23')][_0x27ad('0x19')]({'attributes':{'maxlength':'220'}}),this[_0x27ad('0xf')][_0x27ad('0x23')][_0x27ad('0x18')](_0x27ad('0x1c'),_0x27ad('0x5'))['to'](this,_0x27ad('0x26'),_0x27ad('0x17')),this[_0x27ad('0xf')][_0x27ad('0x18')](_0x27ad('0x1b'))['to'](this,_0x27ad('0x21'),this,'isEnabled',(_0x2284ad,_0x7138e6)=>_0x2284ad&&_0x7138e6),this[_0x27ad('0x7')]=_0x2eccc3&&_0x2eccc3['length']?_0x2a2009(this,_0x2eccc3):'',this['revisionActionsView']&&this[_0x27ad('0x7')][_0x27ad('0x18')]('isEnabled')['to'](this),this['setTemplate']({'tag':_0x27ad('0x22'),'attributes':{'class':['ck',_0x27ad('0x8'),'ck-revision-history-sidebar__revision-wrapper',_0x5ebbe7['if']('isConfirm',_0x27ad('0x10'))]},'children':[{'tag':_0x27ad('0x22'),'attributes':{'class':['ck','ck-reset',_0x27ad('0x1d'),_0x5ebbe7['if'](_0x27ad('0x1b'),'ck-disabled',_0x3abb68=>!_0x3abb68),_0x5ebbe7['if'](_0x27ad('0x21'),_0x27ad('0xb')),_0x5ebbe7['if'](_0x27ad('0x0'),_0x27ad('0x1e')),_0x5ebbe7['if'](_0x27ad('0x25'),_0x27ad('0x12'))]},'children':[this[_0x27ad('0xf')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5ebbe7['to'](_0x27ad('0x17'))}]},{'tag':'div','attributes':{'class':['ck',_0x27ad('0xc')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x27ad('0x24')]},'children':_0x50f3a4}]},this[_0x27ad('0x7')]],'on':{'click':_0x5ebbe7['to'](_0x49c82b=>{_0x49c82b['srcElement'][_0x27ad('0x1')]('.ck-thread__remove-confirm')||this[_0x27ad('0x13')]&&this[_0x27ad('0x1b')]&&this['fire'](_0x27ad('0x14'),{'id':this['id']});})}}]});}[_0x27ad('0x3')](){super[_0x27ad('0x3')]();const _0x4e49bc=this[_0x27ad('0xf')]['fieldView'][_0x27ad('0x15')];this['listenTo'](_0x4e49bc,_0x27ad('0x11'),()=>{this['fire'](_0x27ad('0x9'),{'id':this['id'],'name':_0x4e49bc[_0x27ad('0x1c')]});});}[_0x27ad('0x14')](){this[_0x27ad('0x21')]=!0x0;}[_0x27ad('0xe')](){this[_0x27ad('0x21')]=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this[_0x27ad('0x0')]=!0x1;}}
23
+ const _0xefab=['bind','_revision','unshift','ck-revision-history-sidebar__revision-wrapper','_createdAtFormatted','deselect','ck-reset','value','closest','isSelected','ck-revision-history-sidebar__revision_selected','setTemplate','revisionNameView','listenTo','fire','select','ck-revision-history-sidebar__revision__controls-wrapper','unhighlight','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision-authors','length','from','ck-disabled','isActionsDropdownOpen','bindTemplate','isEnabled','revisionActionsView','div','.ck-thread__remove-confirm','isReady','change','ck-revision-history-sidebar__revision__date','placeholder','creator','ck-revision-history-sidebar__revision','isHighlighted','createdAt','filter','fieldView','isConfirm','srcElement','span','name','ck-revision-history-sidebar__actions_dropdown_open','authors','extendTemplate','render','set','220','ck-revision-history-sidebar__revision-wrapper_confirmation_visible'];(function(_0x5b4faf,_0xefab81){const _0x5c3777=function(_0x47808a){while(--_0x47808a){_0x5b4faf['push'](_0x5b4faf['shift']());}};_0x5c3777(++_0xefab81);}(_0xefab,0x1e3));const _0x5c37=function(_0x5b4faf,_0xefab81){_0x5b4faf=_0x5b4faf-0x0;let _0x5c3777=_0xefab[_0x5b4faf];return _0x5c3777;};import{View as _0x4f4949,createLabeledInputText as _0x435020}from'ckeditor5/src/ui';import{ConfirmMixin as _0x7c22f3}from'ckeditor5-collaboration/src/collaboration-core';import _0x13e67b from'./revisionnameview';import _0xd52089 from'./revisionauthorview';import{dateToPrettyFormat as _0x14b107}from'./utils';import{createActionsDropdownView as _0x49af97}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x7c22f3(_0x4f4949){constructor(_0x3f746a,_0x468484,_0x435408){super(_0x3f746a);const _0x5a572e=this[_0x5c37('0x29')],_0x20e795=function(_0x56f3da,_0x397bec){const _0x58df73=Array[_0x5c37('0x26')](_0x397bec[_0x5c37('0xb')])[_0x5c37('0x4')](_0xda684a=>_0xda684a!=_0x397bec[_0x5c37('0x0')]);return _0x397bec[_0x5c37('0x0')]&&_0x58df73[_0x5c37('0x13')](_0x397bec[_0x5c37('0x0')]),_0x58df73['map'](_0x332a62=>new _0xd52089(_0x56f3da,_0x332a62,_0x332a62==_0x397bec[_0x5c37('0x0')]));}(_0x3f746a,_0x468484);this['id']=_0x468484['id'],this[_0x5c37('0x12')]=_0x468484,this[_0x5c37('0x11')](_0x5c37('0x9'),_0x5c37('0x3'))['to'](_0x468484),this['bind'](_0x5c37('0x15'))['to'](this,_0x5c37('0x3'),_0x372541=>_0x372541?_0x14b107(_0x3f746a['uiLanguage'],_0x372541):void 0x0),this[_0x5c37('0xe')]('isSelected',!0x1),this[_0x5c37('0xe')](_0x5c37('0x2'),!0x1),this[_0x5c37('0xe')](_0x5c37('0x28'),!0x1),this[_0x5c37('0xe')]('isReady',!0x1),this[_0x5c37('0xe')](_0x5c37('0x2a'),!0x1),this[_0x5c37('0x1d')]=new _0x13e67b(_0x3f746a,_0x435020),this['revisionNameView'][_0x5c37('0x5')][_0x5c37('0xc')]({'attributes':{'maxlength':_0x5c37('0xf')}}),this[_0x5c37('0x1d')]['fieldView']['bind'](_0x5c37('0x18'),_0x5c37('0x31'))['to'](this,_0x5c37('0x9'),'_createdAtFormatted'),this[_0x5c37('0x1d')][_0x5c37('0x11')]('isEnabled')['to'](this,_0x5c37('0x1a'),this,_0x5c37('0x2a'),(_0x18032c,_0x190ee0)=>_0x18032c&&_0x190ee0),this[_0x5c37('0x2b')]=_0x435408&&_0x435408[_0x5c37('0x25')]?_0x49af97(this,_0x435408):'',this[_0x5c37('0x2b')]&&this['revisionActionsView'][_0x5c37('0x11')](_0x5c37('0x2a'))['to'](this),this[_0x5c37('0x1c')]({'tag':_0x5c37('0x2c'),'attributes':{'class':['ck',_0x5c37('0x17'),_0x5c37('0x14'),_0x5a572e['if'](_0x5c37('0x6'),_0x5c37('0x10'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x5c37('0x17'),_0x5c37('0x1'),_0x5a572e['if']('isEnabled',_0x5c37('0x27'),_0x22126e=>!_0x22126e),_0x5a572e['if'](_0x5c37('0x1a'),_0x5c37('0x1b')),_0x5a572e['if'](_0x5c37('0x2'),_0x5c37('0x23')),_0x5a572e['if'](_0x5c37('0x28'),_0x5c37('0xa'))]},'children':[this[_0x5c37('0x1d')],{'tag':_0x5c37('0x8'),'attributes':{'class':['ck',_0x5c37('0x30')]},'children':[{'text':_0x5a572e['to']('_createdAtFormatted')}]},{'tag':_0x5c37('0x2c'),'attributes':{'class':['ck',_0x5c37('0x21')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5c37('0x24')]},'children':_0x20e795}]},this[_0x5c37('0x2b')]],'on':{'click':_0x5a572e['to'](_0x38c744=>{_0x38c744[_0x5c37('0x7')][_0x5c37('0x19')](_0x5c37('0x2d'))||this[_0x5c37('0x2e')]&&this[_0x5c37('0x2a')]&&this['fire']('select',{'id':this['id']});})}}]});}[_0x5c37('0xd')](){super[_0x5c37('0xd')]();const _0x3a7ef3=this[_0x5c37('0x1d')]['fieldView']['element'];this[_0x5c37('0x1e')](_0x3a7ef3,_0x5c37('0x2f'),()=>{this[_0x5c37('0x1f')]('setName',{'id':this['id'],'name':_0x3a7ef3[_0x5c37('0x18')]});});}[_0x5c37('0x20')](){this[_0x5c37('0x1a')]=!0x0;}[_0x5c37('0x16')](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}[_0x5c37('0x22')](){this[_0x5c37('0x2')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4898=['setTemplate','ck-revision-history-sidebar__subrevision-collapser','isVisible','true','_isCollapsed','button','set','false','span','ck-hidden','ck-revision-history-sidebar__subrevision-collapser_collapsed'];(function(_0x295696,_0x489883){const _0x91cbc=function(_0x1b3cec){while(--_0x1b3cec){_0x295696['push'](_0x295696['shift']());}};_0x91cbc(++_0x489883);}(_0x4898,0x111));const _0x91cb=function(_0x295696,_0x489883){_0x295696=_0x295696-0x0;let _0x91cbc=_0x4898[_0x295696];return _0x91cbc;};import{View as _0xe2d6d8}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xe2d6d8{constructor(_0x1f9ea2){super(_0x1f9ea2);const _0x253ca9=this['bindTemplate'];this[_0x91cb('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x91cb('0x2')]({'tag':'span','attributes':{'class':['ck',_0x91cb('0x3'),_0x253ca9['if'](_0x91cb('0x4'),_0x91cb('0x0'),_0x586ae5=>!_0x586ae5),_0x253ca9['if']('_isCollapsed',_0x91cb('0x1'))],'role':_0x91cb('0x7'),'aria-pressed':_0x253ca9['to'](_0x91cb('0x6'),_0x5242d7=>_0x5242d7?_0x91cb('0x9'):_0x91cb('0x5'))},'children':[{'tag':_0x91cb('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x253ca9['to']('click')}});}['toggle'](){this['_isCollapsed']=!this[_0x91cb('0x6')];}}
23
+ const _0x4464=['false','set','isVisible','click','ck-hidden','_isCollapsed','toggle','ck-revision-history-sidebar__subrevision-collapser__inner','span','bindTemplate','setTemplate'];(function(_0x4dca89,_0x44644f){const _0x2be326=function(_0x4d2cfc){while(--_0x4d2cfc){_0x4dca89['push'](_0x4dca89['shift']());}};_0x2be326(++_0x44644f);}(_0x4464,0x1ab));const _0x2be3=function(_0x4dca89,_0x44644f){_0x4dca89=_0x4dca89-0x0;let _0x2be326=_0x4464[_0x4dca89];return _0x2be326;};import{View as _0x5c8ea1}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x5c8ea1{constructor(_0x2be749){super(_0x2be749);const _0x3de5b1=this[_0x2be3('0x0')];this[_0x2be3('0x3')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2be3('0x1')]({'tag':_0x2be3('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x3de5b1['if'](_0x2be3('0x4'),_0x2be3('0x6'),_0xd05973=>!_0xd05973),_0x3de5b1['if'](_0x2be3('0x7'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':'button','aria-pressed':_0x3de5b1['to'](_0x2be3('0x7'),_0x13b110=>_0x13b110?_0x2be3('0x2'):'true')},'children':[{'tag':_0x2be3('0xa'),'attributes':{'class':['ck',_0x2be3('0x9')]}}],'on':{'click':_0x3de5b1['to'](_0x2be3('0x5'))}});}[_0x2be3('0x8')](){this[_0x2be3('0x7')]=!this[_0x2be3('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e36=['span','_parentRevisionId','ck-revision-history-sidebar__revision-authors','createdAt','bind','bindTemplate','creator','ck-revision-history-sidebar__subrevision','_createdAtFormatted','isSelected','fire','select','deselect','setTemplate'];(function(_0x1ca23a,_0x5e36c2){const _0x1c46e4=function(_0x3d3936){while(--_0x3d3936){_0x1ca23a['push'](_0x1ca23a['shift']());}};_0x1c46e4(++_0x5e36c2);}(_0x5e36,0xdc));const _0x1c46=function(_0x1ca23a,_0x5e36c2){_0x1ca23a=_0x1ca23a-0x0;let _0x1c46e4=_0x5e36[_0x1ca23a];return _0x1c46e4;};import{View as _0x1aeb06}from'ckeditor5/src/ui';import _0x9ce74b from'./revisionauthorview';import{dateToPrettyFormat as _0x5f4206}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1aeb06{constructor(_0x34d896,_0x1c9943,_0x370e26){super(_0x34d896);const _0x143c4d=this[_0x1c46('0x9')];this['id']=_0x1c9943['id'],this[_0x1c46('0x8')](_0x1c46('0x7'))['to'](_0x1c9943),this['set'](_0x1c46('0xd'),!0x1),this[_0x1c46('0x8')](_0x1c46('0xc'))['to'](this,_0x1c46('0x7'),_0x4d1885=>_0x4d1885?_0x5f4206(_0x34d896['uiLanguage'],_0x4d1885):void 0x0),this[_0x1c46('0x5')]=_0x370e26,this[_0x1c46('0x3')]({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1c46('0xb'),_0x143c4d['if'](_0x1c46('0xd'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1c46('0x4'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x143c4d['to'](_0x1c46('0xc'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1c46('0x6')]},'children':[new _0x9ce74b(_0x34d896,_0x1c9943[_0x1c46('0xa')],!0x0)]}],'on':{'click':_0x143c4d['to'](this[_0x1c46('0x1')]['bind'](this))}});}['select'](){this[_0x1c46('0xd')]=!0x0,this[_0x1c46('0x0')]('select',{'parentId':this[_0x1c46('0x5')]});}[_0x1c46('0x2')](){this['isSelected']=!0x1;}}
23
+ const _0x3e86=['uiLanguage','_parentRevisionId','_createdAtFormatted','select','isSelected','ck-reset','creator','fire','ck-revision-history-sidebar__revision','bindTemplate','ck-revision-history-sidebar__revision-authors','span','ck-revision-history-sidebar__revision__date','createdAt','bind','ck-revision-history-sidebar__subrevision'];(function(_0x2b778a,_0x3e86fb){const _0x50a49b=function(_0x19daa1){while(--_0x19daa1){_0x2b778a['push'](_0x2b778a['shift']());}};_0x50a49b(++_0x3e86fb);}(_0x3e86,0x11a));const _0x50a4=function(_0x2b778a,_0x3e86fb){_0x2b778a=_0x2b778a-0x0;let _0x50a49b=_0x3e86[_0x2b778a];return _0x50a49b;};import{View as _0x41dee5}from'ckeditor5/src/ui';import _0x360763 from'./revisionauthorview';import{dateToPrettyFormat as _0x58e8cc}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x41dee5{constructor(_0x5aad8c,_0x3c0cf2,_0x8fb2d7){super(_0x5aad8c);const _0xffd8da=this[_0x50a4('0xf')];this['id']=_0x3c0cf2['id'],this[_0x50a4('0x4')](_0x50a4('0x3'))['to'](_0x3c0cf2),this['set'](_0x50a4('0xa'),!0x1),this[_0x50a4('0x4')](_0x50a4('0x8'))['to'](this,_0x50a4('0x3'),_0x526cd9=>_0x526cd9?_0x58e8cc(_0x5aad8c[_0x50a4('0x6')],_0x526cd9):void 0x0),this['_parentRevisionId']=_0x8fb2d7,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x50a4('0xb'),_0x50a4('0xe'),_0x50a4('0x5'),_0xffd8da['if'](_0x50a4('0xa'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x50a4('0x1'),'attributes':{'class':['ck',_0x50a4('0x2')]},'children':[{'text':_0xffd8da['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x50a4('0x0')]},'children':[new _0x360763(_0x5aad8c,_0x3c0cf2[_0x50a4('0xc')],!0x0)]}],'on':{'click':_0xffd8da['to'](this[_0x50a4('0x9')]['bind'](this))}});}['select'](){this[_0x50a4('0xa')]=!0x0,this[_0x50a4('0xd')](_0x50a4('0x9'),{'parentId':this[_0x50a4('0x7')]});}['deselect'](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x248a=['numeric','toLocaleDateString','toLocaleTimeString'];(function(_0x207933,_0x248ae7){var _0x3626fa=function(_0x4e5f54){while(--_0x4e5f54){_0x207933['push'](_0x207933['shift']());}};_0x3626fa(++_0x248ae7);}(_0x248a,0xec));var _0x3626=function(_0x207933,_0x248ae7){_0x207933=_0x207933-0x0;var _0x3626fa=_0x248a[_0x207933];return _0x3626fa;};export function dateToPrettyFormat(_0x5ef78b,_0xdcf76b){return _0xdcf76b[_0x3626('0x2')](_0x5ef78b,{'month':'long','day':_0x3626('0x1')})+',\x20'+_0xdcf76b[_0x3626('0x0')](_0x5ef78b,{'hour':'numeric','minute':_0x3626('0x1')});}
23
+ var _0x2f76=['numeric','toLocaleDateString','long'];(function(_0x229460,_0x2f762a){var _0x380048=function(_0x5708a7){while(--_0x5708a7){_0x229460['push'](_0x229460['shift']());}};_0x380048(++_0x2f762a);}(_0x2f76,0xf5));var _0x3800=function(_0x229460,_0x2f762a){_0x229460=_0x229460-0x0;var _0x380048=_0x2f76[_0x229460];return _0x380048;};export function dateToPrettyFormat(_0x46097e,_0x40014e){return _0x40014e[_0x3800('0x2')](_0x46097e,{'month':_0x3800('0x0'),'day':_0x3800('0x1')})+',\x20'+_0x40014e['toLocaleTimeString'](_0x46097e,{'hour':_0x3800('0x1'),'minute':_0x3800('0x1')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5522=['revisionNameInputValue','220','saveButtonView','value','tab','Cancel','extendTemplate','_createButton','keystrokes','revisionName','ck-responsive-form','_focusables','arrowdown','focusFirst','_createRevisionNameInput','revisionNameInputView','cancel','cancelButtonView','focus','form','check','trim','add','input','listenTo','execute','ck-revision-history-save-revision-form','render','ck-button-cancel','stopPropagation','focusTracker','locale','element','Save','_focusCycler','fieldView','label','set'];(function(_0x507e77,_0x552263){const _0x59c8c3=function(_0x9f7d2d){while(--_0x9f7d2d){_0x507e77['push'](_0x507e77['shift']());}};_0x59c8c3(++_0x552263);}(_0x5522,0x1b6));const _0x59c8=function(_0x507e77,_0x552263){_0x507e77=_0x507e77-0x0;let _0x59c8c3=_0x5522[_0x507e77];return _0x59c8c3;};import{icons as _0x18272c}from'ckeditor5/src/core';import{ButtonView as _0x460eca,FocusCycler as _0x2f7d9d,LabeledFieldView as _0x1a1a75,View as _0x24bed2,ViewCollection as _0x59bacd,createLabeledInputText as _0x5191d3,injectCssTransitionDisabler as _0x31ebfd,submitHandler as _0x50a08c}from'ckeditor5/src/ui';import{FocusTracker as _0x4f7f9c,KeystrokeHandler as _0x1e25a7}from'ckeditor5/src/utils';import{getTranslation as _0x1d671d}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x24bed2{constructor(_0x5e6f03){super(_0x5e6f03),this[_0x59c8('0xa')]=new _0x4f7f9c(),this[_0x59c8('0x1a')]=new _0x1e25a7(),this[_0x59c8('0x11')]('revisionNameInputValue',''),this[_0x59c8('0x21')]=this['_createRevisionNameInput'](),this[_0x59c8('0x14')]=this[_0x59c8('0x19')](_0x1d671d(_0x5e6f03,_0x59c8('0xd')),_0x18272c[_0x59c8('0x0')],'ck-button-save'),this[_0x59c8('0x14')]['type']='submit',this['cancelButtonView']=this[_0x59c8('0x19')](_0x1d671d(_0x5e6f03,_0x59c8('0x17')),_0x18272c['cancel'],_0x59c8('0x8'),_0x59c8('0x22')),this[_0x59c8('0x1d')]=new _0x59bacd(),this[_0x59c8('0xe')]=new _0x2f7d9d({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x59c8('0x1a')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x59c8('0x16')}}),this['setTemplate']({'tag':_0x59c8('0x25'),'attributes':{'class':['ck',_0x59c8('0x6'),_0x59c8('0x1c')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x59c8('0x14')],this[_0x59c8('0x23')]]}),_0x31ebfd(this);}[_0x59c8('0x7')](){super[_0x59c8('0x7')](),_0x50a08c({'view':this}),([this[_0x59c8('0x21')],this[_0x59c8('0x14')],this[_0x59c8('0x23')]]['forEach'](_0x48abe8=>{this[_0x59c8('0x1d')]['add'](_0x48abe8),this[_0x59c8('0xa')][_0x59c8('0x2')](_0x48abe8['element']);}),this[_0x59c8('0x1a')][_0x59c8('0x4')](this['element']));const _0x1315fc=_0x4637ad=>_0x4637ad[_0x59c8('0x9')]();this['keystrokes'][_0x59c8('0x11')]('arrowright',_0x1315fc),this['keystrokes'][_0x59c8('0x11')]('arrowleft',_0x1315fc),this['keystrokes'][_0x59c8('0x11')]('arrowup',_0x1315fc),this[_0x59c8('0x1a')][_0x59c8('0x11')](_0x59c8('0x1e'),_0x1315fc);}[_0x59c8('0x24')](){this[_0x59c8('0xe')][_0x59c8('0x1f')]();}get['revisionName'](){return this[_0x59c8('0x21')][_0x59c8('0xf')][_0x59c8('0xc')][_0x59c8('0x15')]['trim']();}set[_0x59c8('0x1b')](_0x4e8fdc){this[_0x59c8('0x21')][_0x59c8('0xf')][_0x59c8('0xc')][_0x59c8('0x15')]=_0x4e8fdc[_0x59c8('0x1')]();}['reset'](){this[_0x59c8('0x21')][_0x59c8('0xf')]['element']['value']='';}[_0x59c8('0x20')](){const _0x5108a3=new _0x1a1a75(this[_0x59c8('0xb')],_0x5191d3),_0x1dbac5=_0x5108a3['fieldView'];return _0x1dbac5[_0x59c8('0x18')]({'attributes':{'maxlength':_0x59c8('0x13')}}),_0x5108a3[_0x59c8('0x10')]=_0x1d671d(this['locale'],'Name\x20of\x20the\x20revision\x20(optional)'),_0x1dbac5['on'](_0x59c8('0x3'),()=>{this[_0x59c8('0x12')]=_0x1dbac5['element']['value'][_0x59c8('0x1')]();}),_0x5108a3;}[_0x59c8('0x19')](_0xc7edba,_0x30d412,_0x10d950,_0x32d989){const _0x2947c3=new _0x460eca(this[_0x59c8('0xb')]);return _0x2947c3[_0x59c8('0x11')]({'label':_0xc7edba,'icon':_0x30d412,'tooltip':!0x0}),_0x2947c3[_0x59c8('0x18')]({'attributes':{'class':_0x10d950}}),_0x32d989&&_0x2947c3['delegate'](_0x59c8('0x5'))['to'](this,_0x32d989),_0x2947c3;}}
23
+ const _0x1839=['arrowleft','focusFirst','_createButton','element','revisionName','arrowright','execute','focusTracker','tab','reset','extendTemplate','input','Name\x20of\x20the\x20revision\x20(optional)','saveButtonView','arrowup','listenTo','add','value','trim','Cancel','keystrokes','label','fieldView','Save','set','ck-button-cancel','revisionNameInputValue','revisionNameInputView','type','stopPropagation','_createRevisionNameInput','ck-button-save','check','submit','forEach','220','_focusables','delegate','cancel','render','locale','_focusCycler','cancelButtonView','focus'];(function(_0x3cf33a,_0x1839f5){const _0xf303ad=function(_0x6eecba){while(--_0x6eecba){_0x3cf33a['push'](_0x3cf33a['shift']());}};_0xf303ad(++_0x1839f5);}(_0x1839,0x164));const _0xf303=function(_0x3cf33a,_0x1839f5){_0x3cf33a=_0x3cf33a-0x0;let _0xf303ad=_0x1839[_0x3cf33a];return _0xf303ad;};import{icons as _0x28ae92}from'ckeditor5/src/core';import{ButtonView as _0x519131,FocusCycler as _0x2220eb,LabeledFieldView as _0x2abcdc,View as _0x358d14,ViewCollection as _0x293ef0,createLabeledInputText as _0x159a99,injectCssTransitionDisabler as _0x394567,submitHandler as _0x5e9d1b}from'ckeditor5/src/ui';import{FocusTracker as _0x5b51ad,KeystrokeHandler as _0x52fe28}from'ckeditor5/src/utils';import{getTranslation as _0x4aef02}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x358d14{constructor(_0x41c831){super(_0x41c831),this[_0xf303('0x3')]=new _0x5b51ad(),this[_0xf303('0x10')]=new _0x52fe28(),this['set'](_0xf303('0x16'),''),this[_0xf303('0x17')]=this[_0xf303('0x1a')](),this['saveButtonView']=this[_0xf303('0x2a')](_0x4aef02(_0x41c831,_0xf303('0x13')),_0x28ae92[_0xf303('0x1c')],_0xf303('0x1b')),this[_0xf303('0x9')][_0xf303('0x18')]=_0xf303('0x1d'),this[_0xf303('0x26')]=this['_createButton'](_0x4aef02(_0x41c831,_0xf303('0xf')),_0x28ae92['cancel'],_0xf303('0x15'),_0xf303('0x22')),this[_0xf303('0x20')]=new _0x293ef0(),this[_0xf303('0x25')]=new _0x2220eb({'focusables':this[_0xf303('0x20')],'focusTracker':this[_0xf303('0x3')],'keystrokeHandler':this[_0xf303('0x10')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0xf303('0x4')}}),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this[_0xf303('0x17')],this['saveButtonView'],this['cancelButtonView']]}),_0x394567(this);}['render'](){super[_0xf303('0x23')](),_0x5e9d1b({'view':this}),([this[_0xf303('0x17')],this[_0xf303('0x9')],this[_0xf303('0x26')]][_0xf303('0x1e')](_0xa71ec7=>{this['_focusables'][_0xf303('0xc')](_0xa71ec7),this['focusTracker']['add'](_0xa71ec7[_0xf303('0x2b')]);}),this[_0xf303('0x10')][_0xf303('0xb')](this[_0xf303('0x2b')]));const _0x3e5da1=_0x1cfd90=>_0x1cfd90[_0xf303('0x19')]();this[_0xf303('0x10')][_0xf303('0x14')](_0xf303('0x1'),_0x3e5da1),this[_0xf303('0x10')][_0xf303('0x14')](_0xf303('0x28'),_0x3e5da1),this[_0xf303('0x10')]['set'](_0xf303('0xa'),_0x3e5da1),this['keystrokes']['set']('arrowdown',_0x3e5da1);}[_0xf303('0x27')](){this['_focusCycler'][_0xf303('0x29')]();}get['revisionName'](){return this[_0xf303('0x17')][_0xf303('0x12')][_0xf303('0x2b')][_0xf303('0xd')][_0xf303('0xe')]();}set[_0xf303('0x0')](_0xf6ba9c){this[_0xf303('0x17')]['fieldView'][_0xf303('0x2b')][_0xf303('0xd')]=_0xf6ba9c[_0xf303('0xe')]();}[_0xf303('0x5')](){this[_0xf303('0x17')][_0xf303('0x12')][_0xf303('0x2b')][_0xf303('0xd')]='';}[_0xf303('0x1a')](){const _0xe9586d=new _0x2abcdc(this['locale'],_0x159a99),_0x24e674=_0xe9586d['fieldView'];return _0x24e674['extendTemplate']({'attributes':{'maxlength':_0xf303('0x1f')}}),_0xe9586d[_0xf303('0x11')]=_0x4aef02(this[_0xf303('0x24')],_0xf303('0x8')),_0x24e674['on'](_0xf303('0x7'),()=>{this[_0xf303('0x16')]=_0x24e674[_0xf303('0x2b')][_0xf303('0xd')][_0xf303('0xe')]();}),_0xe9586d;}[_0xf303('0x2a')](_0x4140d1,_0x43e6fd,_0x58bf39,_0x17c3b9){const _0x399a11=new _0x519131(this[_0xf303('0x24')]);return _0x399a11[_0xf303('0x14')]({'label':_0x4140d1,'icon':_0x43e6fd,'tooltip':!0x0}),_0x399a11[_0xf303('0x6')]({'attributes':{'class':_0x58bf39}}),_0x17c3b9&&_0x399a11[_0xf303('0x21')](_0xf303('0x2'))['to'](this,_0x17c3b9),_0x399a11;}}