@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230726.0 → 0.0.0-nightly-20230727.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 _0x247b=['range','conversion','isAttached','modelRange','isIncorrect','_markInsertions','unshift','-new','_makeModelFromViewString','startsWith','ck-editor__editable__overlay','repository','getCustomProperty','isAtStart','set','addRevisionData','object','dataDowncast','view','listenTo','getAttributes','useFillerType','resolve','_markMarkers','document','showPreviousChange','init','_removeRevisionMarkers','attributes','_cleanMarkers','downcastDispatcher','code','getItems','refresh','findIndex','WidgetToolbarRepository','_appendChild','change','deletion','next','isBlock','suggestion','getChild','revision-suggestion','isEqual','right','_refreshStartEndIndex','_markMismatchedRemovedTags','changeId','createPositionFromPath','addRoot','toData','nextSibling','_revisions','consumable','isCollapsed','toViewElement','merge','revision','_data','element','isAfter','ck-suggestion-preview-marker-','consume','upcast','maxOffset','highest','getIndex','keys','isContent','markersEnd','revisionHistoryLabel','isNavigationMode','getAttribute','isLimit','_getChangeFromId','enableReadOnlyMode','_activeViewTarget','getWalker','config','authors','selection','isObject','detachRoot','endIndex','_makeModelFromTape','from','processor','split','target','requires','dataToMarker','_balloon','getRevisionRootsAttributes','slice','editing','model','return','splice','get','diffData','nodeAfter','vid_start','elementEnd','_cleanUp','isAdded','ck-suggestion-marker--active','index','offsetSize','revision-start','bindElementToMarker','_setChanges','addClass','markerName','concat','attributesAfter','getRootNames','parse','activeChange','createRevision','low','span','uiElement','children','_threeWayMerge','getDomRoot','default','_findChangeIdFromDomTarget','isAtEnd','wrap','isOnRoot','showNextChange','change:isEnabled','rootName','element:pre','startIndex','ck-suggestion-marker','vid_end','getRoot','isReady','isRemoved','revision-suggestion:','revision:','_makeTape','markers','change:isReady','ck-suggestion-marker-','hasAttribute','data','_processTape','restoreRevision','_getViewObj','domEvent','catch','ck-revision-history-root-','attachChange','add','_getDiff','_changeIdToChange','pairId','start','numberOfChanges','for','activeView','bind','addMarker:revision-suggestion:deletion','values','delete','_fixObsoleteTags','changes','forEach','_joinTapes','all','name','left','_step','deletions','toModel','find','plugins','hasClass','filter','indexOf','end','sort','mapViewToDom','addMarker:revision-suggestion:insertion','createRange','revision-comment:','unbindElementFromMarkerName','previousPosition','toViewPosition','insertions','elementStart','isSuggestion','markersStart','ck-suggestion-marker-merge','revisionHistory','_removeMissingPairs','isBefore','map','destroy','forward','setAttribute','remove','_getRevisionsRange','isEnabled','restoreRevisionCallback','revisionHistoryAttachChange','_sortAndFilterDiffChanges','backward','flat','isRemoveSuggestion','mapper','parent','userId','has','revision-viewer','comment','createUIElement','text','_changeView','high','newRevisionId','editor','first','vid','test','distance','push','addMarker:revision','ck-revision-history-root-remove','elementToAttribute','domConverter','_setDistance','error','isInline','item','addHighlight','viewItem','nextPosition','roots','includes','diff','adapter','removeMarker:revision-suggestion','mousedown','markerRange','affectsData','insertion','then','length','side','editingDowncast','forceDisabled','level','abs','insert','getRevision','schema','checkAttribute','removeMarker:revision','reconvertMarker','top','createRangeIn','commands','loadRevisionData','attribute:vid','isAddSuggestion','suggestion:','revision-end','_removeUnsupportedChanges','RevisionViewer','getClientRects','shift','data-change-id','type','done','_update','removeClass','clear','string','markerNameToElements','removeMarker','createPositionBefore','ck-revision-history-root--active','_getViewForChange','writer'];(function(_0x16f709,_0x247b47){const _0x16a9d1=function(_0x119957){while(--_0x119957){_0x16f709['push'](_0x16f709['shift']());}};_0x16a9d1(++_0x247b47);}(_0x247b,0xc4));const _0x16a9=function(_0x16f709,_0x247b47){_0x16f709=_0x16f709-0x0;let _0x16a9d1=_0x247b[_0x16f709];return _0x16a9d1;};import{Plugin as _0x3ed0ea,Command as _0x36ba4c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x288e99}from'ckeditor5/src/utils';import{ContextualBalloon as _0x531d14}from'ckeditor5/src/ui';import{DocumentFragment as _0x4a8f0a,Element as _0x46cf84,Text as _0x540106,ViewDocumentFragment as _0x4956d7,ViewText as _0x5bc988,ViewElement as _0xb24f35,ViewContainerElement as _0x3d8b57,ViewAttributeElement as _0x298a02,ViewEmptyElement as _0x348df1,ViewRawElement as _0x166793,ViewUIElement as _0x447443}from'ckeditor5/src/engine';import{Users as _0x1acac7,getMarkerDomElement as _0x4bbc61}from'ckeditor5-collaboration/src/collaboration-core';import _0x53b7b4 from'./ui/revisionviewer/changedetailsview';import _0x4b5d0e from'./revisionsrepository';import _0x109bda from'./changeitem';import{default as _0x4f0bf3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x23dc22}from'lodash-es';const tt={'c':_0x3d8b57,'a':_0x298a02,'e':_0x348df1,'r':_0x166793,'u':_0x447443};export default class d extends _0x3ed0ea{static get['pluginName'](){return'RevisionViewer';}static get[_0x16a9('0xb6')](){return[_0x1acac7,_0x531d14,_0x4b5d0e];}constructor(_0x297944){super(_0x297944),this[_0x16a9('0x67')]=this[_0x16a9('0x1c')][_0x16a9('0x10f')][_0x16a9('0xbf')]('RevisionsRepository'),this[_0x16a9('0x6a')](_0x16a9('0xd2'),null),this[_0x16a9('0x6a')]('activeView',null),this[_0x16a9('0xa9')]=null,this[_0x16a9('0x6a')](_0x16a9('0x2f'),null),this[_0x16a9('0x6a')](_0x16a9('0xe7'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x16a9('0xe0'),(_0x5ecaca,_0x1df91e,_0x3f9e7e)=>{this[_0x16a9('0xd2')]=null,this[_0x16a9('0xff')]=null,this[_0x16a9('0x1c')][_0x16a9('0xbb')][_0x16a9('0x6e')][_0x16a9('0x81')](_0x268ded=>{for(const _0x5a4e50 of this[_0x16a9('0x1c')]['editing'][_0x16a9('0x6e')][_0x16a9('0x74')][_0x16a9('0x2d')])_0x3f9e7e?_0x268ded['removeClass'](_0x16a9('0x66'),_0x5a4e50):_0x268ded[_0x16a9('0xcc')](_0x16a9('0x66'),_0x5a4e50);});}),this['bind'](_0x16a9('0xa4'))['to'](this,_0x16a9('0xd2'),_0x3866ca=>null!==_0x3866ca),this[_0x16a9('0x100')]('currentChangeNumber')['to'](this,'isReady',this,_0x16a9('0x2f'),this,_0x16a9('0xd2'),(_0x36b370,_0x473125,_0x19e463)=>_0x36b370&&_0x19e463?_0x473125[_0x16a9('0x105')][_0x16a9('0x9f')](_0x19e463):0x0),this[_0x16a9('0x100')](_0x16a9('0xfd'))['to'](this,_0x16a9('0xe7'),this,_0x16a9('0x2f'),(_0x459798,_0x17dac8)=>_0x459798?_0x17dac8[_0x16a9('0x105')][_0x16a9('0x37')]:0x0),this[_0x16a9('0x19')]=null,this[_0x16a9('0xfa')]=new Map(),this['adapter']=null,this[_0x16a9('0xb8')]=this[_0x16a9('0x1c')][_0x16a9('0x10f')][_0x16a9('0xbf')](_0x531d14);}[_0x16a9('0x76')](){const _0x2bdc0f=this[_0x16a9('0x1c')],_0x1563f5=new ShowChangeCommand(_0x2bdc0f,{'direction':_0x16a9('0xe')}),_0x492b86=new ShowChangeCommand(_0x2bdc0f,{'direction':_0x16a9('0x6')});(_0x2bdc0f[_0x16a9('0x45')][_0x16a9('0xf8')](_0x16a9('0x75'),_0x1563f5),_0x2bdc0f[_0x16a9('0x45')][_0x16a9('0xf8')](_0x16a9('0xdf'),_0x492b86),_0x2bdc0f[_0x16a9('0x45')][_0x16a9('0xf8')](_0x16a9('0xf2'),new RestoreRevisionCommand(_0x2bdc0f)),this['on']('change:numberOfChanges',()=>{_0x1563f5[_0x16a9('0x7d')](),_0x492b86[_0x16a9('0x7d')]();}),this['_setConversion'](),this['_initInteractions'](),_0x2bdc0f[_0x16a9('0xa8')](_0x16a9('0x15')),_0x2bdc0f['plugins'][_0x16a9('0x14')](_0x16a9('0x7f')))&&_0x2bdc0f[_0x16a9('0x10f')][_0x16a9('0xbf')](_0x16a9('0x7f'))[_0x16a9('0x3a')](_0x16a9('0x15'));}async['getRevisionData'](_0xcf8418){await this[_0x16a9('0x46')](_0xcf8418);const _0x36830f={};for(const _0x30d49c in _0xcf8418[_0x16a9('0xc0')]){if(_0xcf8418['diffData'][_0x30d49c][_0x16a9('0xf7')]&&!_0xcf8418[_0x16a9('0xc0')][_0x30d49c][_0x16a9('0xf7')][_0x16a9('0x5e')])continue;const _0x7a7758=this[_0x16a9('0x77')](JSON[_0x16a9('0xd1')](_0xcf8418['diffData'][_0x30d49c][_0x16a9('0x11c')])),_0x1b2118=this[_0x16a9('0x1c')]['editing'][_0x16a9('0x6e')][_0x16a9('0x74')],_0x1d4b6c=new _0x4956d7(_0x1b2118,_0x7a7758['map'](_0x17c4d4=>this['_getViewObj'](_0x17c4d4)));this['editor'][_0x16a9('0xf0')][_0x16a9('0xb3')]['useFillerType']('marked'),_0x36830f[_0x30d49c]=this[_0x16a9('0x1c')][_0x16a9('0xf0')][_0x16a9('0xb3')][_0x16a9('0x8f')](_0x1d4b6c),this['editor']['data'][_0x16a9('0xb3')][_0x16a9('0x71')](_0x16a9('0xda'));}return _0x36830f;}async[_0x16a9('0xb9')](_0x335b22){await this[_0x16a9('0x46')](_0x335b22);const _0x51744d={};for(const _0x5c4171 in _0x335b22[_0x16a9('0xc0')])_0x335b22[_0x16a9('0xc0')][_0x5c4171][_0x16a9('0xf7')]&&!_0x335b22[_0x16a9('0xc0')][_0x5c4171][_0x16a9('0xf7')]['isAttached']||(_0x51744d[_0x5c4171]=_0x335b22[_0x16a9('0xc0')][_0x5c4171][_0x16a9('0xcf')]||{});return _0x51744d;}[_0x16a9('0x77')](_0x3dd944){return(_0x3dd944=_0x3dd944[_0x16a9('0x111')](_0x572760=>!_0x572760[_0x16a9('0x109')]||_0x16a9('0xc9')!==_0x572760['name']&&_0x16a9('0x4a')!==_0x572760['name']))[_0x16a9('0x106')](_0x5d55b2=>{'string'!=typeof _0x5d55b2&&(_0x5d55b2['children']=this['_removeRevisionMarkers'](_0x5d55b2[_0x16a9('0xd7')]),_0x5d55b2[_0x16a9('0x78')]=_0x5d55b2['attributes']['filter'](_0x12f7dc=>!_0x12f7dc[0x0][_0x16a9('0x65')]('data-revision-')));}),_0x3dd944;}async['compare'](_0x2d2b7c,_0x1744b5,_0x1f83c2=!0x1){if(!this['isEnabled'])return;const _0x117764=this[_0x16a9('0x2f')],_0xdc1572=this['repository'],_0x57f70a=_0x16a9('0x55')==typeof _0x2d2b7c?_0xdc1572['getRevision'](_0x2d2b7c):_0x2d2b7c,_0x4358a3=_0x16a9('0x55')==typeof _0x1744b5?_0xdc1572['getRevision'](_0x1744b5):_0x1744b5,_0x445ba7=_0x57f70a['id'],_0x1ca755=_0x4358a3?_0x4358a3['id']:null;if(!_0x1f83c2&&this[_0x16a9('0x2f')]&&this[_0x16a9('0x2f')][_0x16a9('0x1b')]===_0x445ba7&&this[_0x16a9('0x2f')]['oldRevisionId']===_0x1ca755)return Promise[_0x16a9('0x72')]();this[_0x16a9('0xe7')]=!0x1,this[_0x16a9('0xff')]=null,this['activeChange']=null,this[_0x16a9('0x2f')]=new _0x4f0bf3(_0x445ba7,_0x1ca755);const _0x515b57=this['_getRevisionsRange'](_0x57f70a,_0x4358a3,!0x0)[_0x16a9('0x4')](_0x568017=>this[_0x16a9('0x46')](_0x568017));return _0x515b57[_0x16a9('0x21')](new Promise(_0x3dd8b1=>{setTimeout(_0x3dd8b1,0x14);})),Promise[_0x16a9('0x108')](_0x515b57)[_0x16a9('0x36')](()=>{if(!this['isEnabled'])return;this[_0x16a9('0xc4')]();const _0xc58d11=this[_0x16a9('0xf9')](_0x445ba7,_0x1ca755);for(const _0x1852f1 of _0xc58d11[_0x16a9('0x105')])this['_changeIdToChange'][_0x16a9('0x6a')](_0x1852f1['id'],_0x1852f1);this[_0x16a9('0x1c')][_0x16a9('0xbc')]['enqueueChange']({'isUndoable':!0x1},_0x2e9026=>{for(const _0x53d5ea of this[_0x16a9('0x1c')]['model']['document'][_0x16a9('0xd0')]())_0x2e9026[_0x16a9('0xaf')](_0x53d5ea);for(const _0x1e0df7 of Object[_0x16a9('0xa0')](_0xc58d11[_0x16a9('0xbc')])){const _0x2c3f84=_0x2e9026[_0x16a9('0x8e')](_0x1e0df7);for(const _0x43fe79 of Object[_0x16a9('0xa0')](_0xc58d11[_0x16a9('0x78')][_0x1e0df7]))_0x2e9026[_0x16a9('0x7')](_0x43fe79,_0xc58d11[_0x16a9('0x78')][_0x1e0df7][_0x43fe79],_0x2c3f84);_0x2e9026[_0x16a9('0x3d')](_0xc58d11[_0x16a9('0xbc')][_0x1e0df7],_0x2c3f84,0x0);}}),this[_0x16a9('0x2f')][_0x16a9('0xcb')](this[_0x16a9('0xd')](_0xc58d11[_0x16a9('0x105')])),this[_0x16a9('0xe7')]=!0x0;})[_0x16a9('0xf5')](_0x2bc50b=>{console[_0x16a9('0x27')](_0x2bc50b),this[_0x16a9('0xc4')](),_0x117764&&(this['diff']=_0x117764),this[_0x16a9('0xe7')]=!0x0;});}[_0x16a9('0x6b')](_0x14243d,_0x1c9e64){const _0x38ba60=this[_0x16a9('0x67')][_0x16a9('0xd3')](_0x14243d);return _0x38ba60['on'](_0x16a9('0x52'),(_0x4f280e,_0x31b23c,_0x13f1fe)=>_0x1c9e64(_0x31b23c,_0x13f1fe,_0x38ba60)),this[_0x16a9('0x67')]['addRevision'](_0x38ba60),_0x38ba60;}[_0x16a9('0x46')](_0x31c20d){if(!_0x31c20d||_0x31c20d['diffData'])return Promise[_0x16a9('0x72')]();{const _0xbe3ac4=this[_0x16a9('0x1c')][_0x16a9('0xab')][_0x16a9('0xbf')]('collaboration.channelId');return this[_0x16a9('0x30')][_0x16a9('0x3e')]({'channelId':_0xbe3ac4,'revisionId':_0x31c20d['id']})[_0x16a9('0x36')](_0x1cad98=>{_0x31c20d['_update']({'diffData':_0x1cad98[_0x16a9('0xc0')]},!0x0);});}}[_0x16a9('0xc4')](){this[_0x16a9('0xd2')]=null,this[_0x16a9('0x79')](),this[_0x16a9('0x19')]&&this[_0x16a9('0x19')][_0x16a9('0x5')](),this[_0x16a9('0x19')]=null,this[_0x16a9('0xfa')][_0x16a9('0x54')](),this[_0x16a9('0x1c')]['model']['enqueueChange']({'isUndoable':!0x1},_0x1fcf00=>{for(const _0x2a134a of this[_0x16a9('0x1c')][_0x16a9('0xbc')][_0x16a9('0x74')][_0x16a9('0xd0')]())_0x1fcf00[_0x16a9('0xaf')](_0x2a134a);});}[_0x16a9('0xd')](_0x6ef9ef){const _0x1715b8=[],_0x2eb8a2=new Map();for(const _0x5c4a7d of this['editor'][_0x16a9('0xbc')]['document'][_0x16a9('0xd0')]()){const _0x3c8d97=this[_0x16a9('0x1c')]['editing'][_0x16a9('0x6e')]['getDomRoot'](_0x5c4a7d);if(!_0x3c8d97)continue;const _0x2befdc=_0x3c8d97['getClientRects']()[_0x16a9('0x29')](0x0);_0x2befdc&&(_0x1715b8[_0x16a9('0x21')](_0x5c4a7d),_0x2eb8a2[_0x16a9('0x6a')](_0x5c4a7d,_0x2befdc));}return _0x1715b8[_0x16a9('0x114')]((_0x219c25,_0x5f0f70)=>{const _0x1e568d=_0x2eb8a2[_0x16a9('0xbf')](_0x219c25),_0x55708c=_0x2eb8a2[_0x16a9('0xbf')](_0x5f0f70);return _0x1e568d['y']-_0x55708c['y']||_0x1e568d['x']-_0x55708c['x'];}),(_0x6ef9ef=_0x6ef9ef['filter'](_0x446d59=>_0x1715b8[_0x16a9('0x2e')](_0x446d59[_0x16a9('0xe1')])))['sort']((_0x550051,_0x10d3a3)=>_0x1715b8[_0x16a9('0x112')](_0x550051[_0x16a9('0xe1')])-_0x1715b8[_0x16a9('0x112')](_0x10d3a3['rootName'])),_0x6ef9ef;}[_0x16a9('0xeb')](_0x214730){const _0x2d6e32=Array['from'](_0x214730[_0x16a9('0xec')])['filter'](([_0x2d894c,_0x493f59])=>_0x2d894c[_0x16a9('0x65')](_0x16a9('0xea'))&&!_0x493f59[_0x16a9('0x93')]),_0x52e822=Array[_0x16a9('0xb2')](this[_0x16a9('0x1c')]['model'][_0x16a9('0x44')](_0x214730)[_0x16a9('0xaa')]({'singleCharacters':!0x0}));if(0x0!=_0x2d6e32[_0x16a9('0x37')])for(const _0x589ad5 of _0x52e822){const [_0x477463,_0x3d10ff]=_0x2d6e32[0x0],[,_0x102110,_0x2d8e20]=_0x477463[_0x16a9('0xb4')](':');if(_0x3d10ff[_0x16a9('0x113')][_0x16a9('0x88')](_0x589ad5[_0x16a9('0x2c')])&&_0x2d6e32[_0x16a9('0x4e')](),(_0x589ad5['previousPosition'][_0x16a9('0x88')](_0x3d10ff[_0x16a9('0xfc')])||_0x589ad5[_0x16a9('0x11a')][_0x16a9('0x99')](_0x3d10ff[_0x16a9('0xfc')]))&&(_0x16a9('0x35')==_0x102110?_0x589ad5['isAdded']={'userId':_0x2d8e20}:_0x16a9('0x82')==_0x102110&&(_0x589ad5[_0x16a9('0xe8')]={'userId':_0x2d8e20})),0x0==_0x2d6e32[_0x16a9('0x37')])break;}return _0x52e822;}[_0x16a9('0x8a')](_0x2098ba){const _0x285365=new Map();for(let _0x37e9b2=0x0;_0x37e9b2<_0x2098ba[_0x16a9('0x37')];_0x37e9b2++)_0x16a9('0x18')===_0x2098ba[_0x37e9b2][_0x16a9('0x50')]?(_0x2098ba[_0x37e9b2][_0x16a9('0x29')][_0x16a9('0xe3')]=_0x37e9b2,_0x2098ba[_0x37e9b2][_0x16a9('0x29')][_0x16a9('0xb0')]=_0x37e9b2):(_0x16a9('0x11d')===_0x2098ba[_0x37e9b2][_0x16a9('0x50')]?_0x2098ba[_0x37e9b2]['item'][_0x16a9('0xe3')]=_0x37e9b2:_0x16a9('0xc3')===_0x2098ba[_0x37e9b2][_0x16a9('0x50')]&&(_0x2098ba[_0x37e9b2][_0x16a9('0x29')][_0x16a9('0xb0')]=_0x37e9b2),_0x285365[_0x16a9('0x6a')](_0x2098ba[_0x37e9b2]['id'],_0x37e9b2));for(const _0x9698c5 of _0x285365[_0x16a9('0x102')]())'elementStart'===_0x2098ba[_0x9698c5][_0x16a9('0x50')]?_0x2098ba[_0x9698c5][_0x16a9('0x29')]['endIndex']=_0x285365[_0x16a9('0xbf')](_0x2098ba[_0x9698c5][_0x16a9('0xfb')]):_0x16a9('0xc3')===_0x2098ba[_0x9698c5][_0x16a9('0x50')]&&(_0x2098ba[_0x9698c5][_0x16a9('0x29')][_0x16a9('0xe3')]=_0x285365['get'](_0x2098ba[_0x9698c5][_0x16a9('0xfb')]));}[_0x16a9('0xf1')](_0x4bcc68){for(let _0x5cb04b=0x0;_0x5cb04b<_0x4bcc68[_0x16a9('0x37')];_0x5cb04b++){if('elementStart'===_0x4bcc68[_0x5cb04b][_0x16a9('0x50')])_0x4bcc68[_0x5cb04b]['item']['startIndex']=_0x5cb04b;else{if(_0x16a9('0xc3')===_0x4bcc68[_0x5cb04b][_0x16a9('0x50')]){_0x4bcc68[_0x5cb04b][_0x16a9('0x29')]['endIndex']=_0x5cb04b;const _0x1796ae=_0x4bcc68[_0x5cb04b][_0x16a9('0x29')][_0x16a9('0xe3')];_0x4bcc68[_0x1796ae]['pairId']=_0x4bcc68[_0x5cb04b]['id'],_0x4bcc68[_0x5cb04b][_0x16a9('0xfb')]=_0x4bcc68[_0x1796ae]['id'];}else _0x4bcc68[_0x5cb04b]['item'][_0x16a9('0xe3')]=_0x5cb04b,_0x4bcc68[_0x5cb04b]['item']['endIndex']=_0x5cb04b,_0x4bcc68[_0x5cb04b][_0x16a9('0xfb')]=null;}_0x4bcc68[_0x5cb04b][_0x16a9('0x11f')]||(_0x4bcc68[_0x5cb04b]['markersStart']=[],_0x4bcc68[_0x5cb04b][_0x16a9('0xa2')]=[]);}}[_0x16a9('0x61')](_0xab2368,_0xd1f257){const _0x3ea46e=_0xab2368[_0x16a9('0x111')](_0x41fd3d=>!_0x41fd3d[_0x16a9('0xc5')]);for(let _0x34763d=0x0;_0x34763d<_0xd1f257['length'];_0x34763d++)_0xd1f257[_0x34763d]['isAdded']&&(_0x3ea46e[_0x34763d][_0x16a9('0xc5')]=_0xd1f257[_0x34763d][_0x16a9('0xc5')]);}[_0x16a9('0x64')](_0x4e44b0){const _0x3530e4=JSON[_0x16a9('0xd1')](_0x4e44b0),_0x35aa6d=this[_0x16a9('0x1c')][_0x16a9('0xbb')][_0x16a9('0x6e')]['document'],_0x18808a=new _0x4956d7(_0x35aa6d,_0x3530e4[_0x16a9('0x4')](_0x5e6916=>this[_0x16a9('0xf3')](_0x5e6916)));return this[_0x16a9('0x1c')]['data'][_0x16a9('0x10d')](_0x18808a);}[_0x16a9('0xf3')](_0x5d19f9){const _0x570d1b=this['editor']['editing']['view'][_0x16a9('0x74')];if(_0x16a9('0x55')==typeof _0x5d19f9)return new _0x5bc988(_0x570d1b,_0x5d19f9);{const _0x4904c8=_0x5d19f9[_0x16a9('0xd7')]['map'](_0x5bea2a=>this[_0x16a9('0xf3')](_0x5bea2a));return new(tt[_0x5d19f9[(_0x16a9('0x50'))]]||_0xb24f35)(_0x570d1b,_0x5d19f9['name'],_0x5d19f9['attributes'],_0x4904c8);}}['_getDiff'](_0x50a444,_0x53f68f=null){const _0x777c75=this[_0x16a9('0x67')][_0x16a9('0x3e')](_0x50a444),_0x53f901=_0x53f68f?this['repository'][_0x16a9('0x3e')](_0x53f68f):null,_0x14574a=this[_0x16a9('0x9')](_0x777c75,_0x53f901),_0x5dae96=_0x14574a[_0x14574a['length']-0x1],_0x8e4bc8=new Map(),_0x33095f={'model':{},'attributes':{},'changes':[]},_0x2c06f5=new Set(),_0x32a8f0=new Map();for(let _0x29f76f=_0x14574a[_0x16a9('0x37')]-0x1;_0x29f76f>=0x0;_0x29f76f--){const _0x4347ed=_0x14574a[_0x29f76f];for(const _0xafe78e of Object['keys'](_0x4347ed[_0x16a9('0xc0')]))if(_0x4347ed['diffData'][_0xafe78e]['attachChange']){const _0x7f4c2d=_0x4347ed[_0x16a9('0xc0')][_0xafe78e][_0x16a9('0xf7')];_0x7f4c2d[_0x16a9('0x5e')]?(_0x2c06f5[_0x16a9('0xf8')](_0xafe78e),_0x32a8f0[_0x16a9('0x14')](_0xafe78e)&&_0x32a8f0[_0x16a9('0xbf')](_0xafe78e)[_0x16a9('0x13')]==_0x7f4c2d['userId']?_0x32a8f0[_0x16a9('0x103')](_0xafe78e):_0x32a8f0[_0x16a9('0x6a')](_0xafe78e,_0x7f4c2d)):_0x32a8f0[_0x16a9('0x14')](_0xafe78e)?(_0x2c06f5['delete'](_0xafe78e),_0x32a8f0[_0x16a9('0x103')](_0xafe78e)):(_0x2c06f5[_0x16a9('0xf8')](_0xafe78e),_0x32a8f0[_0x16a9('0x6a')](_0xafe78e,_0x7f4c2d));}else _0x2c06f5['add'](_0xafe78e);}for(const _0x5f2e9a of _0x2c06f5){const _0x1dace0=_0x32a8f0[_0x16a9('0x14')](_0x5f2e9a)&&!_0x32a8f0[_0x16a9('0xbf')](_0x5f2e9a)[_0x16a9('0x5e')];let _0x186387=_0x1dace0?_0x14574a[_0x16a9('0x37')]-0x1:0x0;const _0xd52202=_0x1dace0?-0x1:0x1;for(;_0x14574a[_0x186387];){const _0x5d7735=_0x14574a[_0x186387];if(_0x5d7735[_0x16a9('0xc0')][_0x5f2e9a]){const _0x628f12=_0x1dace0?_0x5d7735[_0x16a9('0xc0')][_0x5f2e9a]['attributesBefore']:_0x5d7735[_0x16a9('0xc0')][_0x5f2e9a][_0x16a9('0xcf')];_0x33095f['attributes'][_0x5f2e9a]=_0x628f12?_0x23dc22(_0x628f12):{};break;}_0x186387+=_0xd52202;}}for(const _0x1b3106 of _0x14574a){_0x1b3106[_0x16a9('0xbc')]={};for(const _0x2dcfad of _0x1b3106[_0x16a9('0xac')])_0x8e4bc8[_0x16a9('0x6a')](_0x2dcfad['id'],_0x2dcfad);for(const _0x224ce3 of _0x2c06f5){const _0x7e08d6=_0x1b3106[_0x16a9('0xc0')][_0x224ce3]?_0x1b3106['diffData'][_0x224ce3][_0x16a9('0x11c')]:'[]',_0x43a82c=_0x1b3106[_0x16a9('0xc0')][_0x224ce3]?_0x1b3106['diffData'][_0x224ce3][_0x16a9('0x10c')]:'[]';_0x1b3106[_0x16a9('0xbc')][_0x224ce3]={'insertions':this['_makeModelFromViewString'](_0x7e08d6),'deletions':this[_0x16a9('0x64')](_0x43a82c)};}}for(const _0x5dd1ba of _0x2c06f5){let _0x4027c2=null,_0x1b7903=0x0;const _0x22718c=new Map(Array[_0x16a9('0xb2')](_0x777c75[_0x16a9('0xbc')][_0x5dd1ba][_0x16a9('0x11c')]['markers'])[_0x16a9('0x111')](([_0x23e419])=>!_0x23e419[_0x16a9('0x65')](_0x16a9('0xea'))));let _0x357a18=0x0;for(const _0x47a07b of _0x14574a){const _0x4969c8=this[_0x16a9('0xeb')](_0x47a07b['model'][_0x5dd1ba][_0x16a9('0x11c')]);_0x47a07b==_0x777c75?(_0x4027c2=_0x4969c8,_0x1b7903=_0x4027c2[_0x16a9('0x37')],_0x4027c2[_0x16a9('0x106')](_0x409799=>{_0x409799['id']=_0x357a18++;}),this[_0x16a9('0xf1')](_0x4027c2)):this['_markInsertions'](_0x4027c2,_0x4969c8);const _0xc62882=_0x4027c2['filter'](_0x178b74=>!_0x178b74['isAdded'])[_0x16a9('0x4')](_0x57297a=>_0x57297a['id']);let _0x2f4378=0x0;const _0x115b85=this['_makeTape'](_0x47a07b[_0x16a9('0xbc')][_0x5dd1ba][_0x16a9('0x10c')]);_0x115b85[_0x16a9('0x106')](_0x292608=>{_0x292608[_0x16a9('0xe8')]?_0x292608['id']=_0x1b7903++:_0x292608['id']=_0xc62882[_0x2f4378++];}),this[_0x16a9('0xf1')](_0x115b85),this[_0x16a9('0x26')](_0x4027c2,_0x16a9('0xc5')),this[_0x16a9('0x26')](_0x115b85,_0x16a9('0xe8')),_0x47a07b==_0x777c75&&this[_0x16a9('0x73')](_0x4027c2,_0x22718c),_0x4027c2=this['_joinTapes'](_0x4027c2,_0x115b85),this[_0x16a9('0x8a')](_0x4027c2),this['_setDistance'](_0x4027c2,_0x16a9('0xe8'));}_0x4027c2=_0x4027c2[_0x16a9('0x111')](_0x39b126=>!(_0x39b126[_0x16a9('0xc5')]&&_0x39b126['isRemoved']));const _0x515a85=new Map(_0x5dae96[_0x16a9('0xbc')][_0x5dd1ba][_0x16a9('0x10c')]['markers']),_0x291df3=new Set(_0x22718c['keys']());for(const _0x4b7469 of _0x515a85['keys']())_0x291df3['delete'](_0x4b7469);this['_markSuggestions'](_0x4027c2,_0x291df3),this[_0x16a9('0x104')](_0x4027c2),_0x4027c2=this[_0x16a9('0x2')](_0x4027c2),_0x4027c2=this[_0x16a9('0x8b')](_0x4027c2),_0x4027c2=this[_0x16a9('0x4b')](_0x4027c2);const {root:_0x207094,changes:_0x1f57b3}=this[_0x16a9('0xb1')](_0x4027c2,_0x8e4bc8,_0x5dd1ba);_0x33095f[_0x16a9('0xbc')][_0x5dd1ba]=_0x207094;const _0x4dcf22=_0x32a8f0['get'](_0x5dd1ba);if(_0x4dcf22){const _0x14412d=_0x8e4bc8[_0x16a9('0xbf')](_0x4dcf22[_0x16a9('0x13')]),_0x4f134e=new _0x109bda({'author':_0x14412d,'type':_0x4dcf22['isAttached']?'add':_0x16a9('0x8'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5dd1ba});_0x1f57b3[_0x16a9('0x62')](_0x4f134e),_0x33095f[_0x16a9('0x78')][_0x5dd1ba][_0x16a9('0xc')]=_0x4f134e['id'];}_0x33095f[_0x16a9('0x105')]=_0x33095f['changes'][_0x16a9('0xce')](_0x1f57b3);}return _0x33095f;}[_0x16a9('0x73')](_0x34cce5,_0xf6a783){for(let _0x559f1d=0x0;_0x559f1d<_0x34cce5[_0x16a9('0x37')];_0x559f1d++)for(const [_0xb2fe17,_0x3c1431]of _0xf6a783)_0x3c1431[_0x16a9('0xfc')]['isEqual'](_0x34cce5[_0x559f1d]['previousPosition'])&&_0x34cce5[_0x559f1d]['markersStart'][_0x16a9('0x21')](_0xb2fe17),_0x3c1431[_0x16a9('0x113')][_0x16a9('0x88')](_0x34cce5[_0x559f1d][_0x16a9('0x2c')])&&_0x34cce5[_0x559f1d]['markersEnd']['push'](_0xb2fe17);}[_0x16a9('0x107')](_0x4de15a,_0x582e37){let _0x2773f0=[],_0xbc5a96=0x0,_0x4835e6=0x0;for(;_0xbc5a96<_0x4de15a[_0x16a9('0x37')]||_0x4835e6<_0x582e37[_0x16a9('0x37')];){const _0x327837=_0x4de15a[_0xbc5a96]||{},_0x51719a=_0x582e37[_0x4835e6]||{};if(_0x327837['id']==_0x51719a['id'])_0xbc5a96++,_0x4835e6++,_0x2773f0[_0x16a9('0x21')](_0x327837);else{if(_0x51719a['isRemoved']&&_0x327837[_0x16a9('0xc5')]){const {commonTape:_0x2c8203,iEnd:_0x34a2bc,jEnd:_0xbf924d}=this[_0x16a9('0xd8')](_0x4de15a,_0xbc5a96,_0x582e37,_0x4835e6);_0x2773f0=_0x2773f0[_0x16a9('0xce')](_0x2c8203),_0xbc5a96=_0x34a2bc,_0x4835e6=_0xbf924d;}else _0x51719a[_0x16a9('0xe8')]?(_0x4835e6++,_0x2773f0[_0x16a9('0x21')](_0x51719a)):(_0xbc5a96++,_0x2773f0[_0x16a9('0x21')](_0x327837));}}return _0x2773f0;}['_markSuggestions'](_0x1b0bc7,_0x30c6d8){const _0x23da69=[];for(let _0x54ba56=0x0;_0x54ba56<_0x1b0bc7['length'];_0x54ba56++){for(let _0x538919=0x0;_0x538919<_0x1b0bc7[_0x54ba56][_0x16a9('0x11f')][_0x16a9('0x37')];_0x538919++){const _0x74e788=_0x1b0bc7[_0x54ba56]['markersStart'][_0x538919];if(!_0x30c6d8[_0x16a9('0x14')](_0x74e788))continue;const {group:_0x4fa673,type:_0x3131b7,authorId:_0x5d8d45}=_0x27449b(_0x74e788);_0x16a9('0x87')!=_0x4fa673||_0x16a9('0x35')!=_0x3131b7&&_0x16a9('0x82')!=_0x3131b7||(_0x23da69[_0x16a9('0x62')]({'type':_0x3131b7,'name':_0x74e788,'userId':_0x5d8d45}),_0x1b0bc7[_0x54ba56][_0x16a9('0x11f')]['splice'](_0x538919,0x1),_0x538919--);}_0x34b535(_0x1b0bc7[_0x54ba56]);for(let _0x46816e=0x0;_0x46816e<_0x1b0bc7[_0x54ba56][_0x16a9('0xa2')][_0x16a9('0x37')];_0x46816e++){const _0x55c834=_0x1b0bc7[_0x54ba56][_0x16a9('0xa2')][_0x46816e];if(!_0x30c6d8[_0x16a9('0x14')](_0x55c834))continue;const {group:_0x55c426,type:_0x1789ed}=_0x27449b(_0x55c834);if('revision-suggestion'!=_0x55c426||_0x16a9('0x35')!=_0x1789ed&&_0x16a9('0x82')!=_0x1789ed)continue;_0x1b0bc7[_0x54ba56][_0x16a9('0xa2')][_0x16a9('0xbe')](_0x46816e,0x1),_0x46816e--;const _0x21490c=_0x23da69[_0x16a9('0x7e')](_0x2bfa87=>_0x2bfa87[_0x16a9('0x109')]==_0x55c834);_0x21490c>-0x1&&_0x23da69[_0x16a9('0xbe')](_0x21490c,0x1);}}function _0x27449b(_0x4da1f1){const _0xb9bc19=_0x4da1f1[_0x16a9('0xb4')](':');return{'group':_0xb9bc19[0x0],'type':_0xb9bc19[0x1],'subType':_0xb9bc19[_0x16a9('0x37')]>=0x5?_0xb9bc19[0x2]:null,'id':_0xb9bc19['length']<0x5?_0xb9bc19[0x2]:_0xb9bc19[0x3],'authorId':_0xb9bc19[_0x16a9('0x37')]<0x5?_0xb9bc19[0x3]:_0xb9bc19[0x4],'markerCount':0x6==_0xb9bc19['length']?_0xb9bc19[0x5]:null};}function _0x34b535(_0x3cf87e){for(let _0x127d87=0x0;_0x127d87<_0x23da69[_0x16a9('0x37')];_0x127d87++){if(_0x3cf87e[_0x16a9('0xc5')]&&_0x16a9('0x35')==_0x23da69[_0x127d87][_0x16a9('0x50')])return _0x3cf87e[_0x16a9('0x48')]=_0x23da69[_0x127d87],void delete _0x3cf87e[_0x16a9('0xc5')];if(!_0x3cf87e[_0x16a9('0xc5')]&&!_0x3cf87e[_0x16a9('0xe8')]&&_0x16a9('0x82')==_0x23da69[_0x127d87][_0x16a9('0x50')])return void(_0x3cf87e[_0x16a9('0x10')]=_0x23da69[_0x127d87]);}}}[_0x16a9('0x26')](_0x10e882,_0x228231){let _0x3366f6=0x0,_0x2c7f86=!0x1;const _0xbec369=new Map();for(const _0x51b86b of _0x10e882)_0x51b86b[_0x228231]?_0x2c7f86&&(_0x3366f6++,_0x2c7f86=!0x1):(_0x3366f6++,_0x2c7f86=!0x0),_0xbec369[_0x16a9('0x6a')](_0x51b86b['id'],_0x3366f6);for(let _0x2c0e96=0x0;_0x2c0e96<_0x10e882[_0x16a9('0x37')];_0x2c0e96++){if('isRemoved'==_0x228231&&_0x10e882[_0x2c0e96][_0x16a9('0xc5')]||_0x16a9('0xc5')==_0x228231&&_0x10e882[_0x2c0e96][_0x16a9('0xe8')])continue;if(_0x16a9('0x18')==_0x10e882[_0x2c0e96]['type']){_0x10e882[_0x2c0e96][_0x16a9('0x20')]=0x0;continue;}const _0x213d30=_0xbec369[_0x16a9('0xbf')](_0x10e882[_0x2c0e96][_0x16a9('0xfb')]),_0x13a79a=_0xbec369[_0x16a9('0xbf')](_0x10e882[_0x2c0e96]['id']);_0x10e882[_0x2c0e96][_0x16a9('0x20')]=_0x213d30-_0x13a79a;}}['_getRevisionsRange'](_0x516827,_0x2061b6,_0x53e624=!0x1){const _0x1c1dfd=[];let _0x545ed3=this[_0x16a9('0x67')][_0x16a9('0x9f')](_0x516827),_0x414b85=this[_0x16a9('0x67')][_0x16a9('0x9f')](_0x2061b6);for(-0x1==_0x414b85&&(_0x414b85=this['repository'][_0x16a9('0x91')][_0x16a9('0x37')],_0x53e624=!0x1);_0x545ed3<_0x414b85;)_0x1c1dfd[_0x16a9('0x21')](this[_0x16a9('0x67')][_0x16a9('0x3e')](_0x545ed3)),_0x545ed3++;return _0x53e624&&_0x1c1dfd[_0x16a9('0x21')](this[_0x16a9('0x67')][_0x16a9('0x3e')](_0x545ed3)),_0x1c1dfd;}['_threeWayMerge'](_0x654b21,_0x428fff,_0x5b1ed6,_0x446992){const _0x57ad6a=this[_0x16a9('0x1c')][_0x16a9('0xbc')]['schema'];let _0x595eb5=_0x428fff;for(;_0x654b21[_0x595eb5]&&_0x654b21[_0x595eb5][_0x16a9('0xc5')];)_0x595eb5++;let _0x38134e=_0x446992;for(;_0x5b1ed6[_0x38134e]&&_0x5b1ed6[_0x38134e][_0x16a9('0xe8')];)_0x38134e++;_0x196d56(_0x654b21,_0x428fff,_0x595eb5),_0x196d56(_0x5b1ed6,_0x446992,_0x38134e);const _0x203089=_0x5b1ed6[_0x16a9('0xba')](_0x446992,_0x38134e)[_0x16a9('0xce')](_0x654b21[_0x16a9('0xba')](_0x428fff,_0x595eb5));return _0x203089[_0x16a9('0x114')]((_0x2db12a,_0x54329f)=>_0x2db12a[_0x16a9('0x38')]!=_0x54329f['side']?_0x2db12a['side']-_0x54329f[_0x16a9('0x38')]:_0x2db12a[_0x16a9('0x3b')]!=_0x54329f[_0x16a9('0x3b')]?_0x2db12a[_0x16a9('0x3b')]-_0x54329f[_0x16a9('0x3b')]:_0x2db12a[_0x16a9('0x20')]!=_0x54329f['distance']?_0x54329f[_0x16a9('0x20')]-_0x2db12a[_0x16a9('0x20')]:!!_0x2db12a[_0x16a9('0xc5')]!=!!_0x54329f['isAdded']?-0x1==_0x2db12a[_0x16a9('0x38')]||0x0==_0x2db12a['side']?_0x2db12a[_0x16a9('0xc5')]?-0x1:0x1:_0x2db12a[_0x16a9('0xc5')]?0x1:-0x1:_0x2db12a['index']-_0x54329f['index']),{'commonTape':_0x203089,'iEnd':_0x595eb5,'jEnd':_0x38134e};function _0x196d56(_0x492df6,_0x9480aa,_0x5be43b){let _0x3b262a=-0x1,_0x12781c=Number['POSITIVE_INFINITY'],_0x3b81a8=!0x0;for(let _0x260eaa=_0x9480aa;_0x260eaa<_0x5be43b;_0x260eaa++)if(_0x57ad6a[_0x16a9('0x28')](_0x492df6[_0x260eaa][_0x16a9('0x29')])||(_0x3b81a8=!0x1),_0x492df6[_0x260eaa]['item']['startIndex']<_0x9480aa&&(_0x3b262a=_0x260eaa),_0x492df6[_0x260eaa][_0x16a9('0x29')][_0x16a9('0xb0')]>=_0x5be43b){_0x12781c=_0x260eaa;break;}_0x3b81a8&&(_0x3b262a=_0x5be43b-0x1);for(let _0x32b305=_0x9480aa;_0x32b305<_0x5be43b;_0x32b305++)_0x492df6[_0x32b305][_0x16a9('0x38')]=_0x32b305<=_0x3b262a?-0x1:_0x32b305<_0x12781c?0x0:0x1,_0x492df6[_0x32b305][_0x16a9('0xc7')]=_0x32b305;let _0x118d67=0x0;for(let _0x58e7c6=_0x9480aa;_0x58e7c6<=_0x3b262a;_0x58e7c6++)0x0==_0x492df6[_0x58e7c6][_0x16a9('0x20')]?_0x492df6[_0x58e7c6][_0x16a9('0x3b')]=_0x118d67:(_0x118d67++,_0x492df6[_0x58e7c6][_0x16a9('0x3b')]=_0x118d67,_0x118d67++);for(let _0x4d5967=_0x9480aa;_0x4d5967<_0x5be43b;_0x4d5967++)0x0==_0x492df6[_0x4d5967][_0x16a9('0x38')]&&(_0x492df6[_0x4d5967][_0x16a9('0x3b')]=_0x118d67);_0x118d67=0x0;for(let _0x4a3c8a=_0x5be43b-0x1;_0x4a3c8a>=_0x12781c;_0x4a3c8a--)0x0==_0x492df6[_0x4a3c8a]['distance']?_0x492df6[_0x4a3c8a]['level']=_0x118d67:(_0x118d67--,_0x492df6[_0x4a3c8a][_0x16a9('0x3b')]=_0x118d67,_0x118d67--);}}[_0x16a9('0x104')](_0x5ec11d){const _0x40ca94=new Map(),_0x255b75=this['editor'][_0x16a9('0xbc')]['schema'];for(let _0x381698=0x1;_0x381698<_0x5ec11d[_0x16a9('0x37')];_0x381698++){let _0x1e1168,_0x5eb56c,_0x5a7335;const _0x37f366=_0x5ec11d[_0x381698],_0x26081b=_0x5ec11d[_0x381698-0x1];if(_0x16a9('0x18')==_0x37f366[_0x16a9('0x50')])continue;if(_0x37f366[_0x16a9('0x50')]!=_0x26081b[_0x16a9('0x50')])continue;if(!_0x255b75['isBlock'](_0x26081b[_0x16a9('0x29')])||_0x255b75['isLimit'](_0x26081b[_0x16a9('0x29')]))continue;if(!_0x255b75[_0x16a9('0x84')](_0x37f366['item'])||_0x255b75['isLimit'](_0x37f366['item']))continue;if((_0x5ec11d[_0x381698][_0x16a9('0xc5')]||_0x5ec11d[_0x381698]['isAddSuggestion'])&&_0x5ec11d[_0x381698-0x1][_0x16a9('0xe8')])_0x1e1168=_0x5ec11d[_0x381698],_0x5eb56c=_0x5ec11d[_0x381698-0x1],_0x5a7335=_0x381698-0x1;else{if(!_0x5ec11d[_0x381698][_0x16a9('0xe8')]||!_0x5ec11d[_0x381698-0x1][_0x16a9('0xc5')]&&!_0x5ec11d[_0x381698-0x1]['isAddSuggestion'])continue;_0x1e1168=_0x5ec11d[_0x381698-0x1],_0x5eb56c=_0x5ec11d[_0x381698],_0x5a7335=_0x381698;}const _0x4a45f1=_0x1e1168[_0x16a9('0x3b')]==_0x5eb56c[_0x16a9('0x3b')],_0x31daea=Math[_0x16a9('0x3c')](_0x1e1168['level'])<Math[_0x16a9('0x3c')](_0x5eb56c[_0x16a9('0x3b')])&&0x0==_0x5eb56c[_0x16a9('0x20')];(_0x4a45f1||_0x31daea)&&(_0x40ca94[_0x16a9('0x6a')](_0x5eb56c['id'],_0x1e1168['id']),_0x5ec11d[_0x16a9('0xbe')](_0x5a7335,0x1),_0x381698--,_0x1e1168['isAdded']=!0x1);}for(let _0x339e4d=0x0;_0x339e4d<_0x5ec11d[_0x16a9('0x37')];_0x339e4d++)_0x40ca94[_0x16a9('0x14')](_0x5ec11d[_0x339e4d]['pairId'])&&(_0x5ec11d[_0x339e4d]['pairId']=_0x40ca94['get'](_0x5ec11d[_0x339e4d][_0x16a9('0xfb')]));}[_0x16a9('0x2')](_0x1781bd){const _0x434b6d=new Set(_0x1781bd[_0x16a9('0x4')](_0x147615=>_0x147615['id']));for(let _0x34787e=0x0;_0x34787e<_0x1781bd[_0x16a9('0x37')];_0x34787e++)_0x434b6d[_0x16a9('0x14')](_0x1781bd[_0x34787e][_0x16a9('0xfb')])||0x0==_0x1781bd[_0x34787e]['distance']||(_0x1781bd[_0x34787e][_0x16a9('0x60')]=!0x0);return _0x1781bd[_0x16a9('0x111')](_0x75acd4=>!_0x75acd4[_0x16a9('0x60')]);}[_0x16a9('0x8b')](_0x5a32eb){const _0x24cece=new Set();for(let _0x4e6ca9=0x0;_0x4e6ca9<_0x5a32eb[_0x16a9('0x37')];_0x4e6ca9++){if(_0x24cece[_0x16a9('0x14')](_0x5a32eb[_0x4e6ca9]['id'])&&_0x5a32eb[_0x4e6ca9][_0x16a9('0xe8')]&&(_0x5a32eb[_0x4e6ca9]['isIncorrect']=!0x0),_0x5a32eb[_0x4e6ca9]['isIncorrect'])continue;if(0x0==_0x5a32eb[_0x4e6ca9][_0x16a9('0x20')])continue;if(_0x16a9('0x11d')!=_0x5a32eb[_0x4e6ca9][_0x16a9('0x50')])continue;if(null==_0x5a32eb[_0x4e6ca9][_0x16a9('0xfb')])continue;let _0x58ef21=_0x4e6ca9+0x1,_0x4a50e5=0x0;for(;_0x5a32eb[_0x58ef21]['id']!=_0x5a32eb[_0x4e6ca9]['pairId'];)_0x16a9('0x11d')==_0x5a32eb[_0x58ef21][_0x16a9('0x50')]?_0x4a50e5++:_0x16a9('0xc3')==_0x5a32eb[_0x58ef21][_0x16a9('0x50')]&&_0x4a50e5--,_0x58ef21++;if(0x0!=_0x4a50e5){if(_0x5a32eb[_0x4e6ca9][_0x16a9('0xe8')])_0x5a32eb[_0x4e6ca9]['isIncorrect']=!0x0;else for(;_0x58ef21!=_0x4e6ca9;)_0x5a32eb[_0x58ef21][_0x16a9('0xe8')]&&0x0!=_0x5a32eb[_0x58ef21][_0x16a9('0x20')]&&(_0x5a32eb[_0x58ef21][_0x16a9('0x60')]=!0x0,_0x24cece[_0x16a9('0xf8')](_0x5a32eb[_0x58ef21][_0x16a9('0xfb')])),_0x58ef21--;}}return _0x5a32eb[_0x16a9('0x111')](_0x31caff=>!_0x31caff['isIncorrect']);}['_removeUnsupportedChanges'](_0x129c86){const _0x21d20b=this[_0x16a9('0x1c')][_0x16a9('0xbc')]['schema'];for(let _0x2540a6=0x0;_0x2540a6<_0x129c86['length'];_0x2540a6++){if(!(_0x129c86[_0x2540a6][_0x16a9('0xc5')]||_0x129c86[_0x2540a6][_0x16a9('0x48')]||_0x129c86[_0x2540a6][_0x16a9('0xe8')]||_0x129c86[_0x2540a6]['isRemoveSuggestion']))continue;if(0x0==_0x129c86[_0x2540a6]['distance'])continue;const _0x46919a=_0x129c86[_0x2540a6][_0x16a9('0x29')];_0x21d20b[_0x16a9('0x84')](_0x46919a)||_0x21d20b[_0x16a9('0xa6')](_0x46919a)||(_0x129c86[_0x2540a6][_0x16a9('0xc5')]&&delete _0x129c86[_0x2540a6][_0x16a9('0xc5')],_0x129c86[_0x2540a6]['isAddSuggestion']&&delete _0x129c86[_0x2540a6][_0x16a9('0x48')],_0x129c86[_0x2540a6][_0x16a9('0x10')]&&delete _0x129c86[_0x2540a6][_0x16a9('0x10')],_0x129c86[_0x2540a6][_0x16a9('0xe8')]&&(_0x129c86[_0x2540a6][_0x16a9('0x60')]=!0x0));}return _0x129c86[_0x16a9('0x111')](_0x5ea63f=>!_0x5ea63f[_0x16a9('0x60')]);}[_0x16a9('0xb1')](_0x14d417,_0x2ac4a5,_0x41482f){const _0x12a1f6=new _0x4a8f0a(),_0x5dc854=[],_0x3df017=new Map(),_0xaebfd6=this[_0x16a9('0x1c')][_0x16a9('0xbc')],_0x43d06a=_0xaebfd6[_0x16a9('0x3f')],_0x29ac73=[_0x12a1f6],_0x3b4178={},_0x5793fe={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x317f3d=null;const _0x45d303=[0x0];for(let _0x396243=0x0;_0x396243<_0x14d417['length'];_0x396243++){let _0x361181,_0x45c2cd;if(_0x16a9('0x11d')===_0x14d417[_0x396243]['type']){_0x361181=_0xaebfd6[_0x16a9('0x8d')](_0x12a1f6,_0x45d303);const _0x6af191=new _0x46cf84(_0x14d417[_0x396243][_0x16a9('0x29')][_0x16a9('0x109')],_0x14d417[_0x396243][_0x16a9('0x29')][_0x16a9('0x70')]());_0x29ac73[0x0]['_appendChild'](_0x6af191),_0x45d303[_0x16a9('0x21')](0x0),_0x29ac73['unshift'](_0x6af191),_0x45c2cd=_0xaebfd6[_0x16a9('0x8d')](_0x12a1f6,_0x45d303),_0x317f3d=null;}else{if('elementEnd'===_0x14d417[_0x396243]['type'])_0x29ac73['shift'](),_0x361181=_0xaebfd6[_0x16a9('0x8d')](_0x12a1f6,_0x45d303),_0x45d303['pop'](),_0x45d303[_0x45d303[_0x16a9('0x37')]-0x1]++,_0x45c2cd=_0xaebfd6[_0x16a9('0x8d')](_0x12a1f6,_0x45d303),_0x317f3d=null;else{if(_0x361181=_0xaebfd6[_0x16a9('0x8d')](_0x12a1f6,_0x45d303),_0x317f3d&&_0x27752d(_0x317f3d,_0x14d417[_0x396243]['item']))_0x317f3d[_0x16a9('0x97')]+=_0x14d417[_0x396243]['item'][_0x16a9('0xf0')];else{const _0x1f3f85=new _0x540106(_0x14d417[_0x396243][_0x16a9('0x29')][_0x16a9('0xf0')],_0x14d417[_0x396243][_0x16a9('0x29')][_0x16a9('0x70')]());_0x29ac73[0x0][_0x16a9('0x80')](_0x1f3f85),_0x317f3d=_0x1f3f85;}_0x45d303[_0x45d303[_0x16a9('0x37')]-0x1]+=_0x14d417[_0x396243][_0x16a9('0x29')][_0x16a9('0xc8')],_0x45c2cd=_0xaebfd6['createPositionFromPath'](_0x12a1f6,_0x45d303);}}for(const _0x50e05d of _0x14d417[_0x396243][_0x16a9('0x11f')])_0x3df017[_0x16a9('0x6a')](_0x50e05d,{'start':_0x361181,'end':null});_0x5947d4(_0x16a9('0x10'),_0x396243,_0x361181,_0x45c2cd),_0x5947d4(_0x16a9('0x48'),_0x396243,_0x361181,_0x45c2cd),_0x5947d4('isRemoved',_0x396243,_0x361181,_0x45c2cd),_0x5947d4('isAdded',_0x396243,_0x361181,_0x45c2cd);for(const _0x572a23 of _0x14d417[_0x396243][_0x16a9('0xa2')]){_0x3df017[_0x16a9('0xbf')](_0x572a23)[_0x16a9('0x113')]=_0x45c2cd;}}for(const [_0x355264,_0x3b0352]of _0x3df017){const _0x446fc3=this[_0x16a9('0x1c')][_0x16a9('0xbc')][_0x16a9('0x117')](_0x3b0352[_0x16a9('0xfc')],_0x3b0352[_0x16a9('0x113')]);_0x12a1f6[_0x16a9('0xec')][_0x16a9('0x6a')](_0x355264,_0x446fc3);}return _0x5dc854['sort']((_0xa321cd,_0x5a14c2)=>{const _0x31bffe=_0x12a1f6[_0x16a9('0xec')][_0x16a9('0xbf')](_0x16a9('0xea')+_0xa321cd['id']),_0xa09f09=_0x12a1f6['markers'][_0x16a9('0xbf')]('revision:'+_0x5a14c2['id']);return _0x31bffe['start'][_0x16a9('0x3')](_0xa09f09['start'])?-0x1:_0x31bffe[_0x16a9('0xfc')][_0x16a9('0x99')](_0xa09f09[_0x16a9('0xfc')])?0x1:_0x31bffe[_0x16a9('0x113')]['isBefore'](_0xa09f09['end'])?-0x1:_0x31bffe[_0x16a9('0x113')][_0x16a9('0x99')](_0xa09f09['end'])?0x1:_0x16a9('0xf8')===_0xa321cd[_0x16a9('0x50')]?-0x1:0x1;}),{'root':_0x12a1f6,'changes':_0x5dc854};function _0x5947d4(_0x4e3e51,_0x5359d2,_0x55ef07,_0x24f13c){const _0x1984dc=!!_0x14d417[_0x5359d2][_0x4e3e51],_0x49b173=_0x1984dc?_0x14d417[_0x5359d2][_0x4e3e51][_0x16a9('0x13')]:null,_0x2b27e2=_0x5359d2===_0x14d417['length']-0x1,_0x5ccaf1=_0x5793fe[_0x4e3e51][0x0],_0x2c93db=_0x43d06a[_0x16a9('0xae')](_0x14d417[_0x5359d2][_0x16a9('0x29')]);!_0x3b4178[_0x4e3e51]&&_0x1984dc?_0x3b4178[_0x4e3e51]={'start':_0x55ef07,'tapeItem':_0x14d417[_0x5359d2],'userId':_0x49b173,'type':_0x4e3e51}:_0x3b4178[_0x4e3e51]&&!_0x1984dc?(_0x3b4178[_0x4e3e51][_0x16a9('0x113')]=_0x55ef07,_0x49c810(_0x3b4178[_0x4e3e51]),_0x3b4178[_0x4e3e51]=null):_0x3b4178[_0x4e3e51]&&_0x1984dc&&_0x3b4178[_0x4e3e51][_0x16a9('0x13')]!==_0x49b173&&(_0x3b4178[_0x4e3e51]['end']=_0x55ef07,_0x5ccaf1&&_0x5ccaf1[_0x16a9('0x13')]===_0x3b4178[_0x4e3e51][_0x16a9('0x13')]||_0x49c810(_0x3b4178[_0x4e3e51]),_0x3b4178[_0x4e3e51]={'start':_0x55ef07,'tapeItem':_0x14d417[_0x5359d2],'userId':_0x49b173,'type':_0x4e3e51}),_0x3b4178[_0x4e3e51]&&_0x2c93db&&(_0x16a9('0x11d')!==_0x14d417[_0x5359d2][_0x16a9('0x50')]||_0x5ccaf1&&_0x5ccaf1['userId']===_0x49b173||_0x5793fe[_0x4e3e51][_0x16a9('0x62')]({'userId':_0x49b173,'object':_0x14d417[_0x5359d2][_0x16a9('0x29')],'change':_0x3b4178[_0x4e3e51]}),_0x16a9('0xc3')===_0x14d417[_0x5359d2][_0x16a9('0x50')]&&_0x5ccaf1&&_0x5ccaf1[_0x16a9('0x6c')]===_0x14d417[_0x5359d2][_0x16a9('0x29')]&&(_0x5793fe[_0x4e3e51][_0x16a9('0x4e')](),_0x3b4178[_0x4e3e51]=_0x5ccaf1[_0x16a9('0x81')])),_0x3b4178[_0x4e3e51]&&_0x2b27e2&&(_0x3b4178[_0x4e3e51][_0x16a9('0x113')]=_0x24f13c,_0x49c810(_0x3b4178[_0x4e3e51]),_0x3b4178[_0x4e3e51]=null);}function _0x49c810({start:_0x42bae6,end:_0x4aead7,tapeItem:_0x391180,userId:_0x1b1b91,type:_0x58c0e7}){const _0x483450=_0x391180['item'],_0xddf27c=_0xaebfd6[_0x16a9('0x3f')]['isBlock'](_0x483450)&&!_0xaebfd6[_0x16a9('0x3f')]['isLimit'](_0x483450),_0x1bdad0=_0x42bae6[_0x16a9('0xc1')]==_0x4aead7[_0x16a9('0x12')]&&_0x4aead7[_0x16a9('0x69')];if(_0xddf27c&&_0x1bdad0)return;const _0x916f1d=_0xaebfd6[_0x16a9('0x117')](_0x42bae6,_0x4aead7),_0x7474a7=_0x2ac4a5[_0x16a9('0xbf')](_0x1b1b91),_0x16c303=new _0x109bda({'author':_0x7474a7,'type':_0x16a9('0xc5')==_0x58c0e7||_0x16a9('0x48')==_0x58c0e7?_0x16a9('0xf8'):_0x16a9('0x8'),'data':{'isSuggestion':'isAddSuggestion'==_0x58c0e7||'isRemoveSuggestion'==_0x58c0e7},'createdAt':new Date(),'rootName':_0x41482f});_0x5dc854['push'](_0x16c303),_0x12a1f6[_0x16a9('0xec')][_0x16a9('0x6a')](_0x16a9('0xea')+_0x16c303['id'],_0x916f1d);}function _0x27752d(_0x41a5e4,_0x22c28b){const _0x35f123=_0x41a5e4['getAttributes'](),_0x4d65e1=_0x22c28b[_0x16a9('0x70')]();for(const _0x34a57e of _0x35f123){if(_0x34a57e[0x1]!==_0x22c28b[_0x16a9('0xa5')](_0x34a57e[0x0]))return!0x1;_0x4d65e1[_0x16a9('0x83')]();}return _0x4d65e1['next']()[_0x16a9('0x51')];}}['_setConversion'](){this[_0x16a9('0x1c')][_0x16a9('0x5d')]['for'](_0x16a9('0x9c'))[_0x16a9('0xb7')]({'view':'revision'}),this['editor'][_0x16a9('0x5d')][_0x16a9('0xfe')](_0x16a9('0x39'))['markerToHighlight']({'model':_0x16a9('0x96'),'view':_0x2e311f=>{const _0xaa8e47=_0x2e311f[_0x16a9('0xcd')][_0x16a9('0xb4')](':')[0x1],_0x4904f6=this[_0x16a9('0xa7')](_0xaa8e47);if(!_0x4904f6)return null;const _0x14cdaf='add'==_0x4904f6[_0x16a9('0x50')]?_0x16a9('0x35'):_0x16a9('0x82'),_0x5c300a=[_0x16a9('0xe4'),_0x16a9('0xee')+_0x14cdaf];return _0x4904f6['data'][_0x16a9('0x11e')]&&_0x5c300a[_0x16a9('0x21')](_0x16a9('0xee')+_0x14cdaf+'-new'),this[_0x16a9('0xd2')]==_0x4904f6&&_0x5c300a[_0x16a9('0x21')](_0x16a9('0xc6')),{'classes':_0x5c300a,'attributes':{'data-change-id':_0xaa8e47}};}}),this['editor'][_0x16a9('0x5d')]['for'](_0x16a9('0x9c'))[_0x16a9('0xf8')](_0x1606c3=>{_0x1606c3['on'](_0x16a9('0xe2'),(_0x31ff1b,_0x4e8488,_0x331fc3)=>{const _0x34d346=_0x4e8488[_0x16a9('0x2b')][_0x16a9('0x86')](0x0);if(!_0x34d346||!_0x34d346['is'](_0x16a9('0x98'),_0x16a9('0x7b')))return;if(!_0x331fc3[_0x16a9('0x92')][_0x16a9('0x9b')](_0x34d346,{'attributes':[_0x16a9('0xc2'),_0x16a9('0xe5')]}))return;const _0x17ca19=_0x4e8488[_0x16a9('0x5f')][_0x16a9('0xfc')]['nodeAfter'];_0x331fc3[_0x16a9('0x5b')]['setAttribute'](_0x16a9('0xc2'),_0x34d346[_0x16a9('0xa5')]('vid_start'),_0x17ca19),_0x331fc3[_0x16a9('0x5b')][_0x16a9('0x7')]('vid_end',_0x34d346[_0x16a9('0xa5')](_0x16a9('0xe5')),_0x17ca19);},{'priority':_0x16a9('0xd4')});}),this['editor']['conversion']['for'](_0x16a9('0x9c'))[_0x16a9('0xf8')](_0x4fa190=>{_0x4fa190['on'](_0x16a9('0x98'),(_0xd639ad,_0x1e796f,_0x45501b)=>{if(!_0x45501b[_0x16a9('0x92')]['consume'](_0x1e796f[_0x16a9('0x2b')],{'attributes':[_0x16a9('0xc2'),'vid_end']}))return;if(_0x1e796f['modelRange'][_0x16a9('0x93')])return;const _0x534d26=_0x1e796f[_0x16a9('0x5f')][_0x16a9('0xfc')][_0x16a9('0xc1')];_0x534d26[_0x16a9('0xef')](_0x16a9('0xc2'))||_0x534d26[_0x16a9('0xef')](_0x16a9('0x1e'))||(_0x45501b[_0x16a9('0x5b')][_0x16a9('0x7')]('vid_start',_0x1e796f[_0x16a9('0x2b')][_0x16a9('0xa5')]('vid_start'),_0x534d26),_0x45501b['writer']['setAttribute']('vid_end',_0x1e796f[_0x16a9('0x2b')]['getAttribute']('vid_end'),_0x534d26));},{'priority':_0x16a9('0xd4')});}),this[_0x16a9('0x1c')][_0x16a9('0x5d')][_0x16a9('0xfe')](_0x16a9('0x9c'))[_0x16a9('0x24')]({'view':{'name':_0x16a9('0xd5'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4c1928=>_0x4c1928['getAttribute'](_0x16a9('0x1e'))}}),this[_0x16a9('0x1c')][_0x16a9('0xbc')][_0x16a9('0x3f')]['on'](_0x16a9('0x40'),(_0x173969,[,_0x4ab80b])=>{[_0x16a9('0xc2'),_0x16a9('0xe5'),_0x16a9('0x1e')][_0x16a9('0x2e')](_0x4ab80b)&&(_0x173969[_0x16a9('0xbd')]=!0x0,_0x173969['stop']());},{'priority':_0x16a9('0x9e')}),this[_0x16a9('0x1c')][_0x16a9('0x5d')][_0x16a9('0xfe')](_0x16a9('0x6d'))[_0x16a9('0xf8')](_0xddb3f5=>{_0xddb3f5['on'](_0x16a9('0x47'),(_0x5e1fe5,_0x15461b,_0x47c097)=>{if('\x20'!=_0x15461b[_0x16a9('0x29')]['data']||_0x15461b[_0x16a9('0x29')][_0x16a9('0x12')][_0x16a9('0x9d')]>0x1)return;if(!_0x47c097['consumable'][_0x16a9('0x9b')](_0x15461b[_0x16a9('0x29')],_0x5e1fe5[_0x16a9('0x109')]))return;const _0x42af31=_0x47c097[_0x16a9('0x5b')],_0x36f8b7=_0x47c097[_0x16a9('0x11')]['toViewRange'](_0x15461b[_0x16a9('0x5c')]);_0x42af31[_0x16a9('0xdd')](_0x36f8b7,_0x42af31['createAttributeElement']('span'));});}),this[_0x16a9('0x1c')][_0x16a9('0x5d')][_0x16a9('0xfe')]('dataDowncast')['markerToData']({'model':_0x16a9('0x96')}),this[_0x16a9('0x1c')]['editing'][_0x16a9('0x7a')]['on']('addMarker:revision',function(_0x193140){const _0x22d371=_0x193140[_0x16a9('0x10f')]['get'](_0x16a9('0x4c'));return(_0x46676b,_0x5d3fee,_0x4a80be)=>{const _0x2d1c8e=_0x5d3fee[_0x16a9('0xcd')]['split'](':')[0x1],_0x3e0271=_0x22d371[_0x16a9('0xa7')](_0x2d1c8e);if(!_0x3e0271)return null;const _0x291505='add'==_0x3e0271[_0x16a9('0x50')]?_0x16a9('0xb4'):_0x16a9('0x95');if(!_0x4a80be[_0x16a9('0x92')][_0x16a9('0x1f')](_0x5d3fee[_0x16a9('0x33')],_0x46676b[_0x16a9('0x109')]))return;const _0x4bc6a3=_0x5d3fee[_0x16a9('0x33')][_0x16a9('0xaa')](),_0x5a52c8=_0x5d3fee[_0x16a9('0x33')][_0x16a9('0xfc')],_0x261813=_0x193140[_0x16a9('0xbc')][_0x16a9('0x3f')];let _0x11d2f0=null,_0x1b0f13=null,_0x2fd39a=!0x1,_0x555247=!0x1;for(const _0x3eeed0 of _0x4bc6a3){const _0x298378=_0x3eeed0[_0x16a9('0x29')];_0x2fd39a=_0x2fd39a||_0x261813['isContent'](_0x298378);const _0x3ad91a=_0x4a80be[_0x16a9('0x11')][_0x16a9('0x94')](_0x298378);if(_0x3ad91a&&_0x3ad91a[_0x16a9('0x68')](_0x16a9('0x2a')))return;_0x16a9('0xc3')==_0x3eeed0[_0x16a9('0x50')]&&(_0x261813['isBlock'](_0x298378)&&!_0x261813[_0x16a9('0xa6')](_0x298378)&&(_0x298378['nextSibling']||_0x5a52c8[_0x16a9('0xdc')]?_0x11d2f0&&_0x11d2f0[_0x16a9('0x12')]==_0x298378||(_0x11d2f0=_0x298378,_0x29582f(_0x3eeed0[_0x16a9('0x11a')]),_0x555247=!0x0):_0x1b0f13=_0x1b0f13||_0x3eeed0[_0x16a9('0x11a')]));}function _0x29582f(_0xdee597){const _0x5b107a=_0x4a80be[_0x16a9('0x5b')][_0x16a9('0x17')](_0x16a9('0xd5'),{'class':_0x16a9('0xee')+_0x291505}),_0x1030e2=_0x4a80be[_0x16a9('0x11')]['toViewPosition'](_0xdee597);_0x3e0271[_0x16a9('0xf0')]['isSuggestion']&&_0x4a80be['writer'][_0x16a9('0xcc')](_0x16a9('0xee')+_0x291505+_0x16a9('0x63'),_0x5b107a),_0x22d371[_0x16a9('0xd2')]==_0x3e0271&&_0x4a80be[_0x16a9('0x5b')][_0x16a9('0xcc')]('ck-suggestion-marker--active',_0x5b107a),_0x4a80be[_0x16a9('0x5b')][_0x16a9('0x3d')](_0x1030e2,_0x5b107a),_0x4a80be['mapper'][_0x16a9('0xca')](_0x5b107a,_0x5d3fee[_0x16a9('0xcd')]);}_0x2fd39a||_0x555247||!_0x1b0f13||_0x29582f(_0x1b0f13);};}(this[_0x16a9('0x1c')]),{'priority':_0x16a9('0x1a')}),this[_0x16a9('0x1c')][_0x16a9('0xbb')][_0x16a9('0x7a')]['on'](_0x16a9('0x41'),(_0x40cac4,_0xffaddf,_0x51fdfd)=>{const _0x1b70c6=_0x51fdfd['mapper']['markerNameToElements'](_0xffaddf[_0x16a9('0xcd')]);if(_0x1b70c6)for(const _0x4f1dad of _0x1b70c6)(_0x4f1dad[_0x16a9('0x110')]('ck-suggestion-marker-split')||_0x4f1dad[_0x16a9('0x110')](_0x16a9('0x0')))&&(_0x51fdfd[_0x16a9('0x11')][_0x16a9('0x119')](_0x4f1dad,_0xffaddf[_0x16a9('0xcd')]),_0x51fdfd[_0x16a9('0x5b')][_0x16a9('0x8')](_0x4f1dad));},{'priority':'high'}),this['editor'][_0x16a9('0xbb')]['downcastDispatcher']['on'](_0x16a9('0x22'),(_0x519445,_0x491082,_0x5747bf)=>{const _0x3aa028=_0x491082['markerName'][_0x16a9('0xb4')](':')[0x1],_0xf4fc9f=this[_0x16a9('0xa7')](_0x3aa028);if(!_0xf4fc9f)return null;const _0x2df554=_0x16a9('0xf8')==_0xf4fc9f['type']?_0x16a9('0xb4'):_0x16a9('0x95');if(_0x5747bf[_0x16a9('0x92')][_0x16a9('0x1f')](_0x491082[_0x16a9('0x33')],_0x519445[_0x16a9('0x109')]))for(const _0x453109 of _0x491082[_0x16a9('0x33')][_0x16a9('0x7c')]()){if(!_0x453109['is'](_0x16a9('0x98'),'softBreak'))continue;const _0x11b795=_0x5747bf[_0x16a9('0x5b')][_0x16a9('0x17')](_0x16a9('0xd5'),{'class':_0x16a9('0xee')+_0x2df554}),_0xbb0b79=_0x5747bf[_0x16a9('0x11')][_0x16a9('0x11b')](this[_0x16a9('0x1c')]['model'][_0x16a9('0x58')](_0x453109));_0xf4fc9f['data']['isSuggestion']&&_0x5747bf[_0x16a9('0x5b')][_0x16a9('0xcc')](_0x16a9('0xee')+_0x2df554+_0x16a9('0x63'),_0x11b795),this[_0x16a9('0xd2')]==_0xf4fc9f&&_0x5747bf[_0x16a9('0x5b')]['addClass']('ck-suggestion-marker--active',_0x11b795),_0x5747bf[_0x16a9('0x5b')]['insert'](_0xbb0b79,_0x11b795),_0x5747bf['mapper'][_0x16a9('0xca')](_0x11b795,_0x491082[_0x16a9('0xcd')]);}},{'priority':_0x16a9('0x1a')}),this[_0x16a9('0x1c')][_0x16a9('0xbc')][_0x16a9('0x74')]['on'](_0x16a9('0x81'),()=>{this[_0x16a9('0x1c')][_0x16a9('0xbb')][_0x16a9('0x6e')]['change'](_0x4f793f=>{for(const _0xbd696c of this[_0x16a9('0x1c')]['model'][_0x16a9('0x74')]['getRootNames']()){const _0x279f22=this[_0x16a9('0x1c')][_0x16a9('0xbc')][_0x16a9('0x74')][_0x16a9('0xe6')](_0xbd696c),_0x5a5cf7=this[_0x16a9('0x1c')][_0x16a9('0xbb')]['view'][_0x16a9('0x74')]['getRoot'](_0xbd696c);if(_0x5a5cf7){const _0x5675f6=_0x279f22[_0x16a9('0xa5')](_0x16a9('0xc'));if(_0x4f793f['removeAttribute'](_0x16a9('0x4f'),_0x5a5cf7),_0x4f793f[_0x16a9('0x53')]('ck-revision-history-root-add',_0x5a5cf7),_0x4f793f[_0x16a9('0x53')](_0x16a9('0x23'),_0x5a5cf7),_0x4f793f[_0x16a9('0x53')]('ck-revision-history-root--active',_0x5a5cf7),_0x5675f6){const _0x48a53e=this[_0x16a9('0xa7')](_0x5675f6);if(!_0x48a53e)return null;_0x4f793f[_0x16a9('0x7')]('data-change-id',_0x5675f6,_0x5a5cf7),_0x4f793f[_0x16a9('0xcc')](_0x16a9('0xf6')+_0x48a53e[_0x16a9('0x50')],_0x5a5cf7),this[_0x16a9('0xd2')]==_0x48a53e&&_0x4f793f[_0x16a9('0xcc')](_0x16a9('0x59'),_0x5a5cf7);}}}});}),this[_0x16a9('0x1c')][_0x16a9('0x5d')][_0x16a9('0xfe')](_0x16a9('0x9c'))[_0x16a9('0xb7')]({'view':_0x16a9('0x16'),'model':_0x1ccf4e=>_0x16a9('0x118')+_0x1ccf4e,'converterPriority':_0x16a9('0x9e')}),this[_0x16a9('0x1c')][_0x16a9('0x5d')][_0x16a9('0xfe')](_0x16a9('0x9c'))[_0x16a9('0xb7')]({'view':_0x16a9('0x85'),'model':_0xfe8034=>_0x16a9('0xe9')+_0xfe8034,'converterPriority':_0x16a9('0x9e')}),this['editor'][_0x16a9('0x5d')][_0x16a9('0xfe')](_0x16a9('0x6d'))['markerToData']({'model':_0x16a9('0x87'),'view':_0x5100ed=>({'name':_0x16a9('0x49')+_0x5100ed,'group':_0x16a9('0x87')}),'converterPriority':_0x16a9('0x9e')}),this['editor'][_0x16a9('0x5d')][_0x16a9('0xfe')](_0x16a9('0x39'))['markerToHighlight']({'model':_0x16a9('0x87'),'view':_0x4d4f57=>{const _0x1d33f6=_0x4d4f57[_0x16a9('0xcd')][_0x16a9('0xb4')](':')[0x1];return'insertion'!=_0x1d33f6&&_0x16a9('0x82')!=_0x1d33f6?null:{'classes':['ck-suggestion-preview-marker',_0x16a9('0x9a')+_0x1d33f6]};}}),this['editor'][_0x16a9('0xbb')][_0x16a9('0x7a')]['on'](_0x16a9('0x101'),et(this[_0x16a9('0x1c')],'merge'),{'priority':'high'}),this['editor'][_0x16a9('0xbb')]['downcastDispatcher']['on'](_0x16a9('0x116'),et(this[_0x16a9('0x1c')],_0x16a9('0xb4')),{'priority':_0x16a9('0x1a')}),this[_0x16a9('0x1c')][_0x16a9('0xbb')][_0x16a9('0x7a')]['on'](_0x16a9('0x31'),(_0x3dc761,_0x5a0533,_0x42aa42)=>{const _0x47b331=_0x42aa42[_0x16a9('0x11')]['markerNameToElements'](_0x5a0533['markerName']);if(_0x47b331)for(const _0xc65201 of _0x47b331)_0xc65201['is'](_0x16a9('0xd6'))&&(_0x42aa42[_0x16a9('0x11')]['unbindElementFromMarkerName'](_0xc65201,_0x5a0533[_0x16a9('0xcd')]),_0x42aa42[_0x16a9('0x5b')][_0x16a9('0x8')](_0xc65201));},{'priority':_0x16a9('0x1a')});}[_0x16a9('0xa7')](_0x25be21){return this['_changeIdToChange'][_0x16a9('0xbf')](_0x25be21);}[_0x16a9('0x5a')](_0x1784a8){return this[_0x16a9('0x19')]&&this[_0x16a9('0x19')][_0x16a9('0x5')](),this[_0x16a9('0x19')]=new _0x53b7b4(this[_0x16a9('0x1c')]['locale'],_0x1784a8),this[_0x16a9('0x19')];}['_initInteractions'](){this[_0x16a9('0x1c')][_0x16a9('0xbc')]['document'][_0x16a9('0xad')]['observeMarkers'](_0x16a9('0x96')),this['on']('change:activeView',(_0x3af2af,_0xbe0adc,_0x40f5a9,_0x352943)=>{_0x352943&&this[_0x16a9('0xb8')][_0x16a9('0x8')](_0x352943),_0x40f5a9&&(this[_0x16a9('0xb8')][_0x16a9('0xf8')]({'view':_0x40f5a9,'stackId':_0x16a9('0xa3'),'position':{'target':()=>{const _0x6adf4a=this[_0x16a9('0x1c')][_0x16a9('0xbb')],_0x5c3eb5=this[_0x16a9('0xa7')](_0x40f5a9[_0x16a9('0x8c')]);let _0xdb93ba;if(_0x5c3eb5[_0x16a9('0xf0')][_0x16a9('0xde')]){const _0x56d6b6=_0x6adf4a[_0x16a9('0x6e')][_0x16a9('0xd9')](_0x5c3eb5[_0x16a9('0xe1')]);_0xdb93ba=Array[_0x16a9('0xb2')](_0x56d6b6[_0x16a9('0x4d')]());}else{const _0xb3ffe3=this[_0x16a9('0x1c')][_0x16a9('0xbc')][_0x16a9('0xec')][_0x16a9('0xbf')](_0x16a9('0xea')+_0x40f5a9[_0x16a9('0x8c')]);_0xdb93ba=Array['from'](_0x6adf4a[_0x16a9('0x11')][_0x16a9('0x56')](_0xb3ffe3[_0x16a9('0x109')]))[_0x16a9('0x4')](_0x203d13=>_0x6adf4a['view'][_0x16a9('0x25')][_0x16a9('0x115')](_0x203d13))['map'](_0x474780=>Array['from'](_0x474780['getClientRects']()))[_0x16a9('0xf')]();}if(!this[_0x16a9('0xa9')])return _0xdb93ba[0x0];return _0xdb93ba[_0x16a9('0x10e')](_0x26fbff=>_0x26fbff[_0x16a9('0x43')]-0x3<=this[_0x16a9('0xa9')]['y']&&_0x26fbff['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x26fbff[_0x16a9('0x10a')]-0x3<=this[_0x16a9('0xa9')]['x']&&_0x26fbff[_0x16a9('0x89')]+0x3>=this['_activeViewTarget']['x'])||_0xdb93ba[0x0];}}}),this[_0x16a9('0xb8')]['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xf7757d,_0x43c9f8,_0x575a48,_0x3e33d0)=>{this[_0x16a9('0xff')]=_0x575a48?this[_0x16a9('0x5a')](_0x575a48):null,this['editor']['model']['change'](()=>{const _0xb19e1c=this[_0x16a9('0x1c')][_0x16a9('0xbb')];_0x3e33d0&&(_0x3e33d0[_0x16a9('0xf0')][_0x16a9('0xde')]?_0xb19e1c[_0x16a9('0x6e')]['change'](_0x266839=>{_0x266839[_0x16a9('0x53')](_0x16a9('0x59'),_0xb19e1c[_0x16a9('0x6e')][_0x16a9('0x74')][_0x16a9('0xe6')](_0x3e33d0[_0x16a9('0xe1')]));}):_0xb19e1c['reconvertMarker'](_0x16a9('0xea')+_0x3e33d0['id'])),_0x575a48&&(_0x575a48[_0x16a9('0xf0')][_0x16a9('0xde')]?_0xb19e1c[_0x16a9('0x6e')][_0x16a9('0x81')](_0x50f5f0=>{_0x50f5f0[_0x16a9('0xcc')](_0x16a9('0x59'),_0xb19e1c[_0x16a9('0x6e')][_0x16a9('0x74')][_0x16a9('0xe6')](_0x575a48['rootName']));}):_0xb19e1c[_0x16a9('0x42')](_0x16a9('0xea')+_0x575a48['id']));});}),this[_0x16a9('0x6f')](this[_0x16a9('0x1c')][_0x16a9('0xbb')]['view']['document'],'mouseover',(_0xfc1935,_0x2d5bd0)=>{if(this['activeChange'])return;const _0x1866fb=this['_findChangeIdFromDomTarget'](_0x2d5bd0['target']),_0x498d72=this[_0x16a9('0xfa')][_0x16a9('0xbf')](_0x1866fb);_0x498d72?(this[_0x16a9('0xa9')]={'x':_0x2d5bd0[_0x16a9('0xf4')]['x'],'y':_0x2d5bd0[_0x16a9('0xf4')]['y']},this[_0x16a9('0xff')]=this['_getViewForChange'](_0x498d72)):(this[_0x16a9('0xa9')]=null,this['activeView']=null);}),this[_0x16a9('0x6f')](this[_0x16a9('0x1c')][_0x16a9('0xbb')]['view'][_0x16a9('0x74')],_0x16a9('0x32'),(_0x3243b6,_0xa05aad)=>{const _0x15582b=this[_0x16a9('0xdb')](_0xa05aad[_0x16a9('0xb5')]),_0x5eb025=this['_changeIdToChange'][_0x16a9('0xbf')](_0x15582b);_0x5eb025?(this['_activeViewTarget']={'x':_0xa05aad[_0x16a9('0xf4')]['x'],'y':_0xa05aad[_0x16a9('0xf4')]['y']},_0x5eb025===this[_0x16a9('0xd2')]?this[_0x16a9('0xb8')]['updatePosition']():this[_0x16a9('0xd2')]=_0x5eb025):(this[_0x16a9('0xa9')]=null,this['activeChange']=null);});}[_0x16a9('0xdb')](_0xb44ec9){do{const _0x22a600=_0xb44ec9[_0x16a9('0xa5')](_0x16a9('0x4f'));if(_0x22a600)return _0x22a600;_0xb44ec9=_0xb44ec9['parent'];}while(_0xb44ec9);return null;}[_0x16a9('0x79')](){this[_0x16a9('0x1c')]['model'][_0x16a9('0x81')](_0x260814=>{for(const _0x470757 of this[_0x16a9('0x1c')]['model'][_0x16a9('0xec')])_0x260814[_0x16a9('0x57')](_0x470757);});}}function et(_0x101ca3,_0x5d6147){return(_0x10cfe8,_0x5f0431,_0xfdaba9)=>{if(!_0xfdaba9[_0x16a9('0x92')][_0x16a9('0x1f')](_0x5f0431[_0x16a9('0x33')],_0x10cfe8[_0x16a9('0x109')]))return;const _0x21f26a=_0x5f0431[_0x16a9('0x33')]['getWalker'](),_0x579087=_0x5f0431[_0x16a9('0x33')][_0x16a9('0xfc')],_0xa9955b=_0x101ca3[_0x16a9('0xbc')]['schema'];let _0x44fd34=null,_0x1e57b0=null,_0x42ebae=!0x1,_0x2d4a52=!0x1;for(const _0x107eda of _0x21f26a){const _0x34aba6=_0x107eda[_0x16a9('0x29')];_0x42ebae=_0x42ebae||_0xa9955b[_0x16a9('0xa1')](_0x34aba6);const _0x303f2a=_0xfdaba9[_0x16a9('0x11')]['toViewElement'](_0x34aba6);if(_0x303f2a&&_0x303f2a['getCustomProperty'](_0x16a9('0x2a')))return;'elementEnd'==_0x107eda[_0x16a9('0x50')]&&(_0xa9955b[_0x16a9('0x84')](_0x34aba6)&&!_0xa9955b[_0x16a9('0xa6')](_0x34aba6)&&(_0x34aba6[_0x16a9('0x90')]||_0x579087[_0x16a9('0xdc')]?_0x44fd34&&_0x44fd34['parent']==_0x34aba6||(_0x44fd34=_0x34aba6,_0xab194c(_0x107eda[_0x16a9('0x11a')]),_0x2d4a52=!0x0):_0x1e57b0=_0x1e57b0||_0x107eda[_0x16a9('0x11a')]));}function _0xab194c(_0x59e0f9){const _0x3a3b32=_0xfdaba9['mapper']['toViewPosition'](_0x59e0f9),_0x30713d=_0xfdaba9[_0x16a9('0x5b')][_0x16a9('0x17')](_0x16a9('0xd5'),{'class':_0x16a9('0x9a')+_0x5d6147});_0xfdaba9[_0x16a9('0x5b')][_0x16a9('0x3d')](_0x3a3b32,_0x30713d),_0xfdaba9[_0x16a9('0x11')][_0x16a9('0xca')](_0x30713d,_0x5f0431[_0x16a9('0xcd')]);}_0x42ebae||_0x2d4a52||!_0x1e57b0||_0xab194c(_0x1e57b0);};}export class RestoreRevisionCommand extends _0x36ba4c{constructor(_0x43403e){super(_0x43403e);const _0x3d31b5=_0x43403e[_0x16a9('0x10f')][_0x16a9('0xbf')](d);this[_0x16a9('0x34')]=!0x1,this[_0x16a9('0x6f')](_0x3d31b5,_0x16a9('0xed'),()=>this[_0x16a9('0x7d')]()),this[_0x16a9('0x6f')](_0x3d31b5,_0x16a9('0xe0'),()=>this[_0x16a9('0x7d')]());}['execute'](){const _0x2880db=this['editor'],_0x5979e3=_0x2880db[_0x16a9('0x10f')]['get'](d),_0x73bbf5=_0x5979e3['isReady']?_0x5979e3[_0x16a9('0x2f')]['newRevisionId']:null;_0x2880db[_0x16a9('0xab')][_0x16a9('0xbf')](_0x16a9('0x1'))[_0x16a9('0xb')](_0x73bbf5);}[_0x16a9('0x7d')](){const {isReady:_0x3190ba,isEnabled:_0x449c22}=this[_0x16a9('0x1c')][_0x16a9('0x10f')][_0x16a9('0xbf')](d);this[_0x16a9('0xa')]=_0x3190ba&&_0x449c22;}}export class ShowChangeCommand extends _0x36ba4c{constructor(_0x43de0c,{direction:_0x594b61}){super(_0x43de0c);const _0xd345b9=_0x43de0c[_0x16a9('0x10f')][_0x16a9('0xbf')](d);this[_0x16a9('0x34')]=!0x1,this[_0x16a9('0x10b')]=_0x16a9('0x6')===_0x594b61?0x1:-0x1,this['listenTo'](_0xd345b9,_0x16a9('0xed'),()=>this[_0x16a9('0x7d')]()),this['listenTo'](_0xd345b9,_0x16a9('0xe0'),()=>this[_0x16a9('0x7d')]());}['execute'](){const _0x401f5e=this[_0x16a9('0x1c')],_0x2e2c1f=_0x401f5e[_0x16a9('0x10f')]['get'](d),{isNavigationMode:_0x18927f,currentChangeNumber:_0x1e6d66}=_0x2e2c1f;let _0x4d4679;if(_0x2e2c1f['activeChange']=_0x18927f?_0x2e2c1f[_0x16a9('0x2f')][_0x16a9('0x105')][_0x16a9('0xbf')](_0x1e6d66+this[_0x16a9('0x10b')]):_0x2e2c1f[_0x16a9('0x2f')][_0x16a9('0x105')][_0x16a9('0x1d')],_0x2e2c1f['activeChange']['data']['isOnRoot'])_0x4d4679=_0x401f5e[_0x16a9('0xbb')][_0x16a9('0x6e')][_0x16a9('0xd9')](_0x2e2c1f['activeChange'][_0x16a9('0xe1')]);else{const _0x5218fe=_0x401f5e[_0x16a9('0xbc')][_0x16a9('0xec')][_0x16a9('0xbf')](_0x16a9('0xea')+_0x2e2c1f[_0x16a9('0xd2')]['id']);_0x4d4679=_0x4bbc61(_0x401f5e[_0x16a9('0xbb')],_0x5218fe);}_0x288e99({'target':_0x4d4679,'viewportOffset':0x28});}[_0x16a9('0x7d')](){const {isNavigationMode:_0x2d5664,currentChangeNumber:_0x24a917,numberOfChanges:_0x51d205,isReady:_0x921796,isEnabled:_0x50336d}=this[_0x16a9('0x1c')]['plugins'][_0x16a9('0xbf')](d);this[_0x16a9('0xa')]=!!(_0x50336d&&_0x921796&&_0x51d205)&&(!_0x2d5664||(0x1===this[_0x16a9('0x10b')]?_0x24a917<_0x51d205-0x1:_0x24a917>0x0));}}
23
+ const _0x47bb=['init','catch','backward','attachChange','currentChangeNumber','slice','target','isAdded','upcast','_getViewObj','then','isOnRoot','unbindElementFromMarkerName','change:isReady','first','collaboration.channelId','_removeRevisionMarkers','execute','isAttached','showStack','revisionHistoryAttachChange','type','name','elementStart','from','_setConversion','resolve','markersEnd','getClientRects','isInline','_cleanUp','_makeModelFromTape','repository','revision-end','getItems','clear','ck-suggestion-preview-marker-','markerNameToElements','suggestion','getAttribute','isLimit','nextPosition','length','createRevision','default','hasClass','vid','isIncorrect','reconvertMarker','isRemoved','getRoot','wrap','change:isEnabled','indexOf','forceDisabled','_getDiff','data-change-id','markerRange','markers','addMarker:revision-suggestion:deletion','loadRevisionData','model','roots','getRevision','has','getRevisionData','parse','RevisionsRepository','isCollapsed','newRevisionId','insertions','revisionHistory','commands','ck-revision-history-root-remove','document','_removeMissingPairs','startIndex','isEnabled','listenTo','split','POSITIVE_INFINITY','selection','_refreshStartEndIndex','marked','_fixObsoleteTags','code','change:activeView','deletion','refresh','ck-suggestion-marker-merge','concat','ck-revision-history-root-','vid_start','revision:','writer','rootName','element:pre','removeMarker:revision','ck-revision-history-root--active','index','map','_getViewForChange','start','comment','checkAttribute','_initInteractions','mapViewToDom','changeId','next','addRoot','markerToData','isAtStart','getIndex','restoreRevisionCallback','ck-suggestion-marker-split','suggestion:','elementEnd','_balloon','markerToHighlight','domEvent','schema','softBreak','span','bottom','hasAttribute','string','addMarker:revision-suggestion:insertion','RevisionViewer','distance','_joinTapes','attributesAfter','bindElementToMarker','isSuggestion','editingDowncast','_changeView','left','_getChangeFromId','view','_markMarkers','push','enableReadOnlyMode','getCustomProperty','values','activeChange','ck-editor__editable__overlay','conversion','compare','return','diff','splice','_activeViewTarget','change','createUIElement','activeView','element','getRootNames','toViewRange','forEach','_makeModelFromViewString','createRangeIn','deletions','unshift','useFillerType','for','bind','destroy','_markInsertions','delete','revision-suggestion','changes','mapper','getDomRoot','isEqual','end','dataToMarker','modelRange','merge','_changeIdToChange','_sortAndFilterDiffChanges','error','authors','nextSibling','getAttributes','side','affectsData','isRemoveSuggestion','_markMismatchedRemovedTags','filter','elementToAttribute','_revisions','object','ck-suggestion-preview-marker','level','revision-viewer','attributesBefore','previousPosition','_processTape','flat','children','shift','_markSuggestions','plugins','_makeTape','vid_end','low','isAtEnd','test','ck-revision-history-root-add','addHighlight','diffData','keys','item','oldRevisionId','stop','editing','showNextChange','domConverter','find','_cleanMarkers','toViewPosition','createPositionFromPath','endIndex','isBefore','forward','_data','top','getWalker','processor','removeClass','editor','parent','isNavigationMode','text','_setChanges','markerName','revisionHistoryLabel','nodeAfter','isContent','detachRoot','pluginName','addClass','change:numberOfChanges','_getRevisionsRange','ck-suggestion-marker-','startsWith','WidgetToolbarRepository','updatePosition','consume','createRange','revision-start','attributes','ck-suggestion-marker','isBlock','enqueueChange','addMarker:revision','get','downcastDispatcher','offsetSize','ck-suggestion-marker--active','toData','insertion','revision-comment:','revision-suggestion:','_step','pairId','maxOffset','isAddSuggestion','range','set','createPositionBefore','high','change:activeChange','observeMarkers','remove','_threeWayMerge','removeMarker','revision','-new','adapter','consumable','_findChangeIdFromDomTarget','addRevisionData','_appendChild','setAttribute','data','viewItem','isReady','requires','insert','_setDistance','highest','add','isAfter','markersStart','data-revision-','userId','_removeUnsupportedChanges'];(function(_0xa1aff0,_0x47bb4a){const _0x239282=function(_0x468c33){while(--_0x468c33){_0xa1aff0['push'](_0xa1aff0['shift']());}};_0x239282(++_0x47bb4a);}(_0x47bb,0x8e));const _0x2392=function(_0xa1aff0,_0x47bb4a){_0xa1aff0=_0xa1aff0-0x0;let _0x239282=_0x47bb[_0xa1aff0];return _0x239282;};import{Plugin as _0x586446,Command as _0x8052de}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2308d8}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5a7b5a}from'ckeditor5/src/ui';import{DocumentFragment as _0x1f4460,Element as _0x44f8ba,Text as _0x1ca042,ViewDocumentFragment as _0x355a18,ViewText as _0x108cb4,ViewElement as _0x2fa17a,ViewContainerElement as _0x341990,ViewAttributeElement as _0x40bf16,ViewEmptyElement as _0x1aae64,ViewRawElement as _0x57dfb4,ViewUIElement as _0x4c1d67}from'ckeditor5/src/engine';import{Users as _0x1d024f,getMarkerDomElement as _0x1381fb}from'ckeditor5-collaboration/src/collaboration-core';import _0x4dc050 from'./ui/revisionviewer/changedetailsview';import _0x53f95a from'./revisionsrepository';import _0x3dbf17 from'./changeitem';import{default as _0x3b9ed5}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3d7b75}from'lodash-es';const tt={'c':_0x341990,'a':_0x40bf16,'e':_0x1aae64,'r':_0x57dfb4,'u':_0x4c1d67};export default class d extends _0x586446{static get[_0x2392('0x61')](){return _0x2392('0x11a');}static get[_0x2392('0x91')](){return[_0x1d024f,_0x5a7b5a,_0x53f95a];}constructor(_0x271907){super(_0x271907),this[_0x2392('0xbb')]=this[_0x2392('0x57')]['plugins'][_0x2392('0x71')](_0x2392('0xde')),this[_0x2392('0x7e')](_0x2392('0x1'),null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set'](_0x2392('0x6'),null),this[_0x2392('0x7e')](_0x2392('0x90'),!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2fc13d,_0x2718b5,_0x1ad024)=>{this['activeChange']=null,this[_0x2392('0xb')]=null,this[_0x2392('0x57')]['editing'][_0x2392('0x124')][_0x2392('0x9')](_0x226b1c=>{for(const _0x5dda89 of this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0xe5')][_0x2392('0xd9')])_0x1ad024?_0x226b1c['removeClass'](_0x2392('0x2'),_0x5dda89):_0x226b1c[_0x2392('0x62')]('ck-editor__editable__overlay',_0x5dda89);});}),this[_0x2392('0x16')](_0x2392('0x59'))['to'](this,'activeChange',_0x326dba=>null!==_0x326dba),this[_0x2392('0x16')](_0x2392('0x9f'))['to'](this,_0x2392('0x90'),this,_0x2392('0x6'),this,_0x2392('0x1'),(_0x2e99c0,_0x4966c4,_0x14128e)=>_0x2e99c0&&_0x14128e?_0x4966c4['changes'][_0x2392('0x10b')](_0x14128e):0x0),this['bind']('numberOfChanges')['to'](this,_0x2392('0x90'),this,'diff',(_0x2d4a43,_0x44be3b)=>_0x2d4a43?_0x44be3b[_0x2392('0x1b')][_0x2392('0xc5')]:0x0),this[_0x2392('0x121')]=null,this[_0x2392('0x23')]=new Map(),this['adapter']=null,this[_0x2392('0x110')]=this[_0x2392('0x57')][_0x2392('0x3b')][_0x2392('0x71')](_0x5a7b5a);}[_0x2392('0x9b')](){const _0x3a5e7a=this[_0x2392('0x57')],_0x548ea5=new ShowChangeCommand(_0x3a5e7a,{'direction':_0x2392('0x9d')}),_0x595155=new ShowChangeCommand(_0x3a5e7a,{'direction':_0x2392('0x51')});(_0x3a5e7a[_0x2392('0xe3')]['add']('showPreviousChange',_0x548ea5),_0x3a5e7a[_0x2392('0xe3')][_0x2392('0x95')](_0x2392('0x49'),_0x595155),_0x3a5e7a['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x3a5e7a)),this['on'](_0x2392('0x63'),()=>{_0x548ea5[_0x2392('0xf3')](),_0x595155[_0x2392('0xf3')]();}),this[_0x2392('0xb4')](),this[_0x2392('0x104')](),_0x3a5e7a[_0x2392('0x127')]('revision-viewer'),_0x3a5e7a[_0x2392('0x3b')][_0x2392('0xdb')](_0x2392('0x67')))&&_0x3a5e7a[_0x2392('0x3b')][_0x2392('0x71')](_0x2392('0x67'))[_0x2392('0xd1')](_0x2392('0x33'));}async[_0x2392('0xdc')](_0x99d71d){await this['loadRevisionData'](_0x99d71d);const _0x1cdcbc={};for(const _0x2806e9 in _0x99d71d['diffData']){if(_0x99d71d['diffData'][_0x2806e9][_0x2392('0x9e')]&&!_0x99d71d[_0x2392('0x43')][_0x2806e9][_0x2392('0x9e')][_0x2392('0xad')])continue;const _0x2acd69=this[_0x2392('0xab')](JSON[_0x2392('0xdd')](_0x99d71d[_0x2392('0x43')][_0x2806e9][_0x2392('0xe1')])),_0x111c25=this[_0x2392('0x57')]['editing']['view']['document'],_0x5b214a=new _0x355a18(_0x111c25,_0x2acd69[_0x2392('0xff')](_0x4990e2=>this[_0x2392('0xa4')](_0x4990e2)));this[_0x2392('0x57')][_0x2392('0x8e')][_0x2392('0x55')][_0x2392('0x14')](_0x2392('0xee')),_0x1cdcbc[_0x2806e9]=this[_0x2392('0x57')]['data'][_0x2392('0x55')][_0x2392('0x75')](_0x5b214a),this[_0x2392('0x57')]['data'][_0x2392('0x55')]['useFillerType'](_0x2392('0xc7'));}return _0x1cdcbc;}async['getRevisionRootsAttributes'](_0x1f3da1){await this[_0x2392('0xd7')](_0x1f3da1);const _0x3fd5e5={};for(const _0x267797 in _0x1f3da1['diffData'])_0x1f3da1[_0x2392('0x43')][_0x267797]['attachChange']&&!_0x1f3da1['diffData'][_0x267797][_0x2392('0x9e')][_0x2392('0xad')]||(_0x3fd5e5[_0x267797]=_0x1f3da1['diffData'][_0x267797][_0x2392('0x11d')]||{});return _0x3fd5e5;}[_0x2392('0xab')](_0x4682d2){return(_0x4682d2=_0x4682d2[_0x2392('0x2d')](_0x39cab1=>!_0x39cab1[_0x2392('0xb1')]||_0x2392('0x6b')!==_0x39cab1[_0x2392('0xb1')]&&_0x2392('0xbc')!==_0x39cab1[_0x2392('0xb1')]))[_0x2392('0xf')](_0x474f92=>{'string'!=typeof _0x474f92&&(_0x474f92[_0x2392('0x38')]=this[_0x2392('0xab')](_0x474f92['children']),_0x474f92[_0x2392('0x6c')]=_0x474f92[_0x2392('0x6c')][_0x2392('0x2d')](_0x54ed90=>!_0x54ed90[0x0][_0x2392('0x66')](_0x2392('0x98'))));}),_0x4682d2;}async[_0x2392('0x4')](_0x4f904c,_0x6cc531,_0xb5fc88=!0x1){if(!this['isEnabled'])return;const _0x183333=this[_0x2392('0x6')],_0x4b407b=this['repository'],_0x12967d=_0x2392('0x118')==typeof _0x4f904c?_0x4b407b[_0x2392('0xda')](_0x4f904c):_0x4f904c,_0x21050b=_0x2392('0x118')==typeof _0x6cc531?_0x4b407b['getRevision'](_0x6cc531):_0x6cc531,_0x24542e=_0x12967d['id'],_0x10f261=_0x21050b?_0x21050b['id']:null;if(!_0xb5fc88&&this[_0x2392('0x6')]&&this['diff'][_0x2392('0xe0')]===_0x24542e&&this['diff'][_0x2392('0x46')]===_0x10f261)return Promise['resolve']();this[_0x2392('0x90')]=!0x1,this[_0x2392('0xb')]=null,this[_0x2392('0x1')]=null,this[_0x2392('0x6')]=new _0x3b9ed5(_0x24542e,_0x10f261);const _0x5067a5=this[_0x2392('0x64')](_0x12967d,_0x21050b,!0x0)[_0x2392('0xff')](_0x209600=>this[_0x2392('0xd7')](_0x209600));return _0x5067a5['push'](new Promise(_0x1a2cdf=>{setTimeout(_0x1a2cdf,0x14);})),Promise['all'](_0x5067a5)[_0x2392('0xa5')](()=>{if(!this[_0x2392('0xe8')])return;this[_0x2392('0xb9')]();const _0x467a27=this[_0x2392('0xd2')](_0x24542e,_0x10f261);for(const _0x542daa of _0x467a27[_0x2392('0x1b')])this['_changeIdToChange'][_0x2392('0x7e')](_0x542daa['id'],_0x542daa);this[_0x2392('0x57')]['model'][_0x2392('0x6f')]({'isUndoable':!0x1},_0x521ced=>{for(const _0x324fc5 of this[_0x2392('0x57')][_0x2392('0xd8')]['document'][_0x2392('0xd')]())_0x521ced[_0x2392('0x60')](_0x324fc5);for(const _0x1088f0 of Object[_0x2392('0x44')](_0x467a27['model'])){const _0xe1c7ff=_0x521ced[_0x2392('0x108')](_0x1088f0);for(const _0x2fe5a4 of Object[_0x2392('0x44')](_0x467a27[_0x2392('0x6c')][_0x1088f0]))_0x521ced[_0x2392('0x8d')](_0x2fe5a4,_0x467a27[_0x2392('0x6c')][_0x1088f0][_0x2fe5a4],_0xe1c7ff);_0x521ced[_0x2392('0x92')](_0x467a27['model'][_0x1088f0],_0xe1c7ff,0x0);}}),this[_0x2392('0x6')][_0x2392('0x5b')](this['_sortAndFilterDiffChanges'](_0x467a27[_0x2392('0x1b')])),this[_0x2392('0x90')]=!0x0;})[_0x2392('0x9c')](_0x2f48ef=>{console[_0x2392('0x25')](_0x2f48ef),this['_cleanUp'](),_0x183333&&(this[_0x2392('0x6')]=_0x183333),this[_0x2392('0x90')]=!0x0;});}[_0x2392('0x8b')](_0x56e574,_0x5bbb95){const _0x475ead=this[_0x2392('0xbb')][_0x2392('0xc6')](_0x56e574);return _0x475ead['on']('_update',(_0x4e3b7a,_0xe34a4a,_0x502a29)=>_0x5bbb95(_0xe34a4a,_0x502a29,_0x475ead)),this[_0x2392('0xbb')]['addRevision'](_0x475ead),_0x475ead;}[_0x2392('0xd7')](_0x57b47b){if(!_0x57b47b||_0x57b47b[_0x2392('0x43')])return Promise[_0x2392('0xb5')]();{const _0x5443d3=this[_0x2392('0x57')]['config'][_0x2392('0x71')](_0x2392('0xaa'));return this[_0x2392('0x88')]['getRevision']({'channelId':_0x5443d3,'revisionId':_0x57b47b['id']})[_0x2392('0xa5')](_0x46e05e=>{_0x57b47b['_update']({'diffData':_0x46e05e[_0x2392('0x43')]},!0x0);});}}[_0x2392('0xb9')](){this[_0x2392('0x1')]=null,this[_0x2392('0x4c')](),this[_0x2392('0x121')]&&this[_0x2392('0x121')][_0x2392('0x17')](),this[_0x2392('0x121')]=null,this['_changeIdToChange'][_0x2392('0xbe')](),this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x6f')]({'isUndoable':!0x1},_0x5de8a6=>{for(const _0x2a72e8 of this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0xe5')]['getRootNames']())_0x5de8a6['detachRoot'](_0x2a72e8);});}[_0x2392('0x24')](_0x255c5a){const _0x32e66c=[],_0x4bcaed=new Map();for(const _0x49e665 of this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0xe5')]['getRootNames']()){const _0x5ab333=this['editor'][_0x2392('0x48')][_0x2392('0x124')]['getDomRoot'](_0x49e665);if(!_0x5ab333)continue;const _0x5962ea=_0x5ab333['getClientRects']()[_0x2392('0x45')](0x0);_0x5962ea&&(_0x32e66c[_0x2392('0x126')](_0x49e665),_0x4bcaed[_0x2392('0x7e')](_0x49e665,_0x5962ea));}return _0x32e66c['sort']((_0x2150e3,_0x25c27e)=>{const _0x1c73cb=_0x4bcaed[_0x2392('0x71')](_0x2150e3),_0x1a8df3=_0x4bcaed[_0x2392('0x71')](_0x25c27e);return _0x1c73cb['y']-_0x1a8df3['y']||_0x1c73cb['x']-_0x1a8df3['x'];}),(_0x255c5a=_0x255c5a[_0x2392('0x2d')](_0x349936=>_0x32e66c['includes'](_0x349936[_0x2392('0xfa')])))['sort']((_0x213e13,_0x5eef7c)=>_0x32e66c[_0x2392('0xd0')](_0x213e13[_0x2392('0xfa')])-_0x32e66c['indexOf'](_0x5eef7c[_0x2392('0xfa')])),_0x255c5a;}[_0x2392('0x3c')](_0x1318c5){const _0x538bc0=Array[_0x2392('0xb3')](_0x1318c5[_0x2392('0xd5')])['filter'](([_0x189c3b,_0x5f48a4])=>_0x189c3b[_0x2392('0x66')](_0x2392('0xf8'))&&!_0x5f48a4[_0x2392('0xdf')]),_0x191186=Array[_0x2392('0xb3')](this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x11')](_0x1318c5)[_0x2392('0x54')]({'singleCharacters':!0x0}));if(0x0!=_0x538bc0[_0x2392('0xc5')])for(const _0x2be57d of _0x191186){const [_0x34fb36,_0x5a849e]=_0x538bc0[0x0],[,_0x3d86b2,_0x488900]=_0x34fb36[_0x2392('0xea')](':');if(_0x5a849e[_0x2392('0x1f')][_0x2392('0x1e')](_0x2be57d[_0x2392('0xc4')])&&_0x538bc0[_0x2392('0x39')](),(_0x2be57d[_0x2392('0x35')][_0x2392('0x1e')](_0x5a849e['start'])||_0x2be57d[_0x2392('0x35')][_0x2392('0x96')](_0x5a849e[_0x2392('0x101')]))&&('insertion'==_0x3d86b2?_0x2be57d['isAdded']={'userId':_0x488900}:_0x2392('0xf2')==_0x3d86b2&&(_0x2be57d[_0x2392('0xcc')]={'userId':_0x488900})),0x0==_0x538bc0[_0x2392('0xc5')])break;}return _0x191186;}['_refreshStartEndIndex'](_0x4d5b91){const _0x13b7a2=new Map();for(let _0x1027b4=0x0;_0x1027b4<_0x4d5b91[_0x2392('0xc5')];_0x1027b4++)_0x2392('0x5a')===_0x4d5b91[_0x1027b4][_0x2392('0xb0')]?(_0x4d5b91[_0x1027b4]['item'][_0x2392('0xe7')]=_0x1027b4,_0x4d5b91[_0x1027b4]['item'][_0x2392('0x4f')]=_0x1027b4):(_0x2392('0xb2')===_0x4d5b91[_0x1027b4][_0x2392('0xb0')]?_0x4d5b91[_0x1027b4][_0x2392('0x45')][_0x2392('0xe7')]=_0x1027b4:'elementEnd'===_0x4d5b91[_0x1027b4][_0x2392('0xb0')]&&(_0x4d5b91[_0x1027b4][_0x2392('0x45')][_0x2392('0x4f')]=_0x1027b4),_0x13b7a2[_0x2392('0x7e')](_0x4d5b91[_0x1027b4]['id'],_0x1027b4));for(const _0x223627 of _0x13b7a2[_0x2392('0x0')]())'elementStart'===_0x4d5b91[_0x223627][_0x2392('0xb0')]?_0x4d5b91[_0x223627][_0x2392('0x45')][_0x2392('0x4f')]=_0x13b7a2[_0x2392('0x71')](_0x4d5b91[_0x223627][_0x2392('0x7a')]):_0x2392('0x10f')===_0x4d5b91[_0x223627][_0x2392('0xb0')]&&(_0x4d5b91[_0x223627][_0x2392('0x45')][_0x2392('0xe7')]=_0x13b7a2[_0x2392('0x71')](_0x4d5b91[_0x223627][_0x2392('0x7a')]));}[_0x2392('0x36')](_0x1b6b7c){for(let _0x5a0c0c=0x0;_0x5a0c0c<_0x1b6b7c[_0x2392('0xc5')];_0x5a0c0c++){if('elementStart'===_0x1b6b7c[_0x5a0c0c][_0x2392('0xb0')])_0x1b6b7c[_0x5a0c0c][_0x2392('0x45')]['startIndex']=_0x5a0c0c;else{if(_0x2392('0x10f')===_0x1b6b7c[_0x5a0c0c]['type']){_0x1b6b7c[_0x5a0c0c][_0x2392('0x45')][_0x2392('0x4f')]=_0x5a0c0c;const _0x27939a=_0x1b6b7c[_0x5a0c0c][_0x2392('0x45')]['startIndex'];_0x1b6b7c[_0x27939a][_0x2392('0x7a')]=_0x1b6b7c[_0x5a0c0c]['id'],_0x1b6b7c[_0x5a0c0c][_0x2392('0x7a')]=_0x1b6b7c[_0x27939a]['id'];}else _0x1b6b7c[_0x5a0c0c][_0x2392('0x45')][_0x2392('0xe7')]=_0x5a0c0c,_0x1b6b7c[_0x5a0c0c][_0x2392('0x45')]['endIndex']=_0x5a0c0c,_0x1b6b7c[_0x5a0c0c][_0x2392('0x7a')]=null;}_0x1b6b7c[_0x5a0c0c][_0x2392('0x97')]||(_0x1b6b7c[_0x5a0c0c][_0x2392('0x97')]=[],_0x1b6b7c[_0x5a0c0c][_0x2392('0xb6')]=[]);}}['_markInsertions'](_0x556384,_0x217dff){const _0x5aff01=_0x556384['filter'](_0x3b74a2=>!_0x3b74a2[_0x2392('0xa2')]);for(let _0x3c98cc=0x0;_0x3c98cc<_0x217dff[_0x2392('0xc5')];_0x3c98cc++)_0x217dff[_0x3c98cc][_0x2392('0xa2')]&&(_0x5aff01[_0x3c98cc][_0x2392('0xa2')]=_0x217dff[_0x3c98cc]['isAdded']);}['_makeModelFromViewString'](_0x59758d){const _0x448d90=JSON['parse'](_0x59758d),_0x5d5984=this['editor'][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0xe5')],_0x39b277=new _0x355a18(_0x5d5984,_0x448d90[_0x2392('0xff')](_0x71ff6e=>this[_0x2392('0xa4')](_0x71ff6e)));return this[_0x2392('0x57')]['data']['toModel'](_0x39b277);}['_getViewObj'](_0x5a79dd){const _0x34a62b=this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0xe5')];if('string'==typeof _0x5a79dd)return new _0x108cb4(_0x34a62b,_0x5a79dd);{const _0x4d184c=_0x5a79dd[_0x2392('0x38')][_0x2392('0xff')](_0x100f74=>this['_getViewObj'](_0x100f74));return new(tt[_0x5a79dd[(_0x2392('0xb0'))]]||_0x2fa17a)(_0x34a62b,_0x5a79dd[_0x2392('0xb1')],_0x5a79dd['attributes'],_0x4d184c);}}['_getDiff'](_0x5f1b49,_0x15ea34=null){const _0xd46063=this['repository'][_0x2392('0xda')](_0x5f1b49),_0x246adb=_0x15ea34?this[_0x2392('0xbb')][_0x2392('0xda')](_0x15ea34):null,_0x21ed6f=this[_0x2392('0x64')](_0xd46063,_0x246adb),_0x3fc6f0=_0x21ed6f[_0x21ed6f[_0x2392('0xc5')]-0x1],_0x3795b1=new Map(),_0x302949={'model':{},'attributes':{},'changes':[]},_0x2a1f85=new Set(),_0x21ec88=new Map();for(let _0x3eb759=_0x21ed6f[_0x2392('0xc5')]-0x1;_0x3eb759>=0x0;_0x3eb759--){const _0xd696b4=_0x21ed6f[_0x3eb759];for(const _0x41a37c of Object['keys'](_0xd696b4['diffData']))if(_0xd696b4[_0x2392('0x43')][_0x41a37c][_0x2392('0x9e')]){const _0x4e4233=_0xd696b4['diffData'][_0x41a37c]['attachChange'];_0x4e4233[_0x2392('0xad')]?(_0x2a1f85[_0x2392('0x95')](_0x41a37c),_0x21ec88[_0x2392('0xdb')](_0x41a37c)&&_0x21ec88[_0x2392('0x71')](_0x41a37c)[_0x2392('0x99')]==_0x4e4233[_0x2392('0x99')]?_0x21ec88[_0x2392('0x19')](_0x41a37c):_0x21ec88[_0x2392('0x7e')](_0x41a37c,_0x4e4233)):_0x21ec88[_0x2392('0xdb')](_0x41a37c)?(_0x2a1f85['delete'](_0x41a37c),_0x21ec88[_0x2392('0x19')](_0x41a37c)):(_0x2a1f85['add'](_0x41a37c),_0x21ec88[_0x2392('0x7e')](_0x41a37c,_0x4e4233));}else _0x2a1f85[_0x2392('0x95')](_0x41a37c);}for(const _0x4577c2 of _0x2a1f85){const _0x223ee8=_0x21ec88[_0x2392('0xdb')](_0x4577c2)&&!_0x21ec88[_0x2392('0x71')](_0x4577c2)[_0x2392('0xad')];let _0x1c3617=_0x223ee8?_0x21ed6f[_0x2392('0xc5')]-0x1:0x0;const _0x520c90=_0x223ee8?-0x1:0x1;for(;_0x21ed6f[_0x1c3617];){const _0x3300cb=_0x21ed6f[_0x1c3617];if(_0x3300cb[_0x2392('0x43')][_0x4577c2]){const _0x15e991=_0x223ee8?_0x3300cb['diffData'][_0x4577c2][_0x2392('0x34')]:_0x3300cb[_0x2392('0x43')][_0x4577c2][_0x2392('0x11d')];_0x302949[_0x2392('0x6c')][_0x4577c2]=_0x15e991?_0x3d7b75(_0x15e991):{};break;}_0x1c3617+=_0x520c90;}}for(const _0x2681a of _0x21ed6f){_0x2681a['model']={};for(const _0x3ccd54 of _0x2681a[_0x2392('0x26')])_0x3795b1[_0x2392('0x7e')](_0x3ccd54['id'],_0x3ccd54);for(const _0x110bed of _0x2a1f85){const _0x51ed0a=_0x2681a[_0x2392('0x43')][_0x110bed]?_0x2681a['diffData'][_0x110bed][_0x2392('0xe1')]:'[]',_0x577dc0=_0x2681a['diffData'][_0x110bed]?_0x2681a[_0x2392('0x43')][_0x110bed][_0x2392('0x12')]:'[]';_0x2681a[_0x2392('0xd8')][_0x110bed]={'insertions':this['_makeModelFromViewString'](_0x51ed0a),'deletions':this[_0x2392('0x10')](_0x577dc0)};}}for(const _0x66674e of _0x2a1f85){let _0x5a874e=null,_0x325525=0x0;const _0x2f4cf7=new Map(Array['from'](_0xd46063['model'][_0x66674e]['insertions'][_0x2392('0xd5')])[_0x2392('0x2d')](([_0x4db6ca])=>!_0x4db6ca['startsWith']('revision:')));let _0xcc5ea=0x0;for(const _0x247497 of _0x21ed6f){const _0x3e9d89=this[_0x2392('0x3c')](_0x247497[_0x2392('0xd8')][_0x66674e][_0x2392('0xe1')]);_0x247497==_0xd46063?(_0x5a874e=_0x3e9d89,_0x325525=_0x5a874e[_0x2392('0xc5')],_0x5a874e[_0x2392('0xf')](_0x230e10=>{_0x230e10['id']=_0xcc5ea++;}),this[_0x2392('0x36')](_0x5a874e)):this[_0x2392('0x18')](_0x5a874e,_0x3e9d89);const _0x419e13=_0x5a874e[_0x2392('0x2d')](_0x5b1fe9=>!_0x5b1fe9[_0x2392('0xa2')])[_0x2392('0xff')](_0x2a821f=>_0x2a821f['id']);let _0x9fa8ce=0x0;const _0xd2a8b5=this[_0x2392('0x3c')](_0x247497['model'][_0x66674e][_0x2392('0x12')]);_0xd2a8b5['forEach'](_0x2a7bae=>{_0x2a7bae[_0x2392('0xcc')]?_0x2a7bae['id']=_0x325525++:_0x2a7bae['id']=_0x419e13[_0x9fa8ce++];}),this['_processTape'](_0xd2a8b5),this['_setDistance'](_0x5a874e,_0x2392('0xa2')),this[_0x2392('0x93')](_0xd2a8b5,_0x2392('0xcc')),_0x247497==_0xd46063&&this[_0x2392('0x125')](_0x5a874e,_0x2f4cf7),_0x5a874e=this[_0x2392('0x11c')](_0x5a874e,_0xd2a8b5),this[_0x2392('0xed')](_0x5a874e),this['_setDistance'](_0x5a874e,_0x2392('0xcc'));}_0x5a874e=_0x5a874e[_0x2392('0x2d')](_0x590de3=>!(_0x590de3[_0x2392('0xa2')]&&_0x590de3[_0x2392('0xcc')]));const _0x1895f8=new Map(_0x3fc6f0[_0x2392('0xd8')][_0x66674e][_0x2392('0x12')][_0x2392('0xd5')]),_0x32054e=new Set(_0x2f4cf7[_0x2392('0x44')]());for(const _0x2b8a7e of _0x1895f8['keys']())_0x32054e[_0x2392('0x19')](_0x2b8a7e);this[_0x2392('0x3a')](_0x5a874e,_0x32054e),this[_0x2392('0xef')](_0x5a874e),_0x5a874e=this[_0x2392('0xe6')](_0x5a874e),_0x5a874e=this[_0x2392('0x2c')](_0x5a874e),_0x5a874e=this[_0x2392('0x9a')](_0x5a874e);const {root:_0x3aaac0,changes:_0x153609}=this[_0x2392('0xba')](_0x5a874e,_0x3795b1,_0x66674e);_0x302949[_0x2392('0xd8')][_0x66674e]=_0x3aaac0;const _0x59f961=_0x21ec88['get'](_0x66674e);if(_0x59f961){const _0x5e2b34=_0x3795b1[_0x2392('0x71')](_0x59f961[_0x2392('0x99')]),_0x3f6abc=new _0x3dbf17({'author':_0x5e2b34,'type':_0x59f961['isAttached']?_0x2392('0x95'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x66674e});_0x153609['unshift'](_0x3f6abc),_0x302949['attributes'][_0x66674e]['revisionHistoryAttachChange']=_0x3f6abc['id'];}_0x302949['changes']=_0x302949[_0x2392('0x1b')][_0x2392('0xf5')](_0x153609);}return _0x302949;}['_markMarkers'](_0x3a9ab8,_0x71d99c){for(let _0x36b1d4=0x0;_0x36b1d4<_0x3a9ab8[_0x2392('0xc5')];_0x36b1d4++)for(const [_0x1c0b91,_0x5ec535]of _0x71d99c)_0x5ec535['start'][_0x2392('0x1e')](_0x3a9ab8[_0x36b1d4][_0x2392('0x35')])&&_0x3a9ab8[_0x36b1d4][_0x2392('0x97')][_0x2392('0x126')](_0x1c0b91),_0x5ec535[_0x2392('0x1f')][_0x2392('0x1e')](_0x3a9ab8[_0x36b1d4][_0x2392('0xc4')])&&_0x3a9ab8[_0x36b1d4]['markersEnd'][_0x2392('0x126')](_0x1c0b91);}[_0x2392('0x11c')](_0x58fe00,_0xacf842){let _0x43b322=[],_0x59fbdc=0x0,_0x16fbad=0x0;for(;_0x59fbdc<_0x58fe00[_0x2392('0xc5')]||_0x16fbad<_0xacf842[_0x2392('0xc5')];){const _0xa80fed=_0x58fe00[_0x59fbdc]||{},_0x338900=_0xacf842[_0x16fbad]||{};if(_0xa80fed['id']==_0x338900['id'])_0x59fbdc++,_0x16fbad++,_0x43b322[_0x2392('0x126')](_0xa80fed);else{if(_0x338900['isRemoved']&&_0xa80fed[_0x2392('0xa2')]){const {commonTape:_0x16cfaa,iEnd:_0x48d54f,jEnd:_0x46bc4d}=this[_0x2392('0x84')](_0x58fe00,_0x59fbdc,_0xacf842,_0x16fbad);_0x43b322=_0x43b322[_0x2392('0xf5')](_0x16cfaa),_0x59fbdc=_0x48d54f,_0x16fbad=_0x46bc4d;}else _0x338900[_0x2392('0xcc')]?(_0x16fbad++,_0x43b322[_0x2392('0x126')](_0x338900)):(_0x59fbdc++,_0x43b322['push'](_0xa80fed));}}return _0x43b322;}['_markSuggestions'](_0x8a5a62,_0x4d3de2){const _0x204efb=[];for(let _0xfd2219=0x0;_0xfd2219<_0x8a5a62[_0x2392('0xc5')];_0xfd2219++){for(let _0x56852b=0x0;_0x56852b<_0x8a5a62[_0xfd2219][_0x2392('0x97')][_0x2392('0xc5')];_0x56852b++){const _0x4043c3=_0x8a5a62[_0xfd2219]['markersStart'][_0x56852b];if(!_0x4d3de2['has'](_0x4043c3))continue;const {group:_0x93b1df,type:_0x5580a2,authorId:_0xd9d302}=_0x4cd6ad(_0x4043c3);'revision-suggestion'!=_0x93b1df||_0x2392('0x76')!=_0x5580a2&&_0x2392('0xf2')!=_0x5580a2||(_0x204efb[_0x2392('0x13')]({'type':_0x5580a2,'name':_0x4043c3,'userId':_0xd9d302}),_0x8a5a62[_0xfd2219][_0x2392('0x97')][_0x2392('0x7')](_0x56852b,0x1),_0x56852b--);}_0x9c9a35(_0x8a5a62[_0xfd2219]);for(let _0x4c656f=0x0;_0x4c656f<_0x8a5a62[_0xfd2219][_0x2392('0xb6')][_0x2392('0xc5')];_0x4c656f++){const _0x11ad07=_0x8a5a62[_0xfd2219][_0x2392('0xb6')][_0x4c656f];if(!_0x4d3de2[_0x2392('0xdb')](_0x11ad07))continue;const {group:_0x396ed0,type:_0x24f048}=_0x4cd6ad(_0x11ad07);if(_0x2392('0x1a')!=_0x396ed0||'insertion'!=_0x24f048&&_0x2392('0xf2')!=_0x24f048)continue;_0x8a5a62[_0xfd2219][_0x2392('0xb6')][_0x2392('0x7')](_0x4c656f,0x1),_0x4c656f--;const _0x8253ef=_0x204efb['findIndex'](_0xa0f435=>_0xa0f435[_0x2392('0xb1')]==_0x11ad07);_0x8253ef>-0x1&&_0x204efb[_0x2392('0x7')](_0x8253ef,0x1);}}function _0x4cd6ad(_0x5c4772){const _0x5454af=_0x5c4772['split'](':');return{'group':_0x5454af[0x0],'type':_0x5454af[0x1],'subType':_0x5454af[_0x2392('0xc5')]>=0x5?_0x5454af[0x2]:null,'id':_0x5454af[_0x2392('0xc5')]<0x5?_0x5454af[0x2]:_0x5454af[0x3],'authorId':_0x5454af['length']<0x5?_0x5454af[0x3]:_0x5454af[0x4],'markerCount':0x6==_0x5454af[_0x2392('0xc5')]?_0x5454af[0x5]:null};}function _0x9c9a35(_0xf666ce){for(let _0x966843=0x0;_0x966843<_0x204efb[_0x2392('0xc5')];_0x966843++){if(_0xf666ce[_0x2392('0xa2')]&&_0x2392('0x76')==_0x204efb[_0x966843][_0x2392('0xb0')])return _0xf666ce[_0x2392('0x7c')]=_0x204efb[_0x966843],void delete _0xf666ce['isAdded'];if(!_0xf666ce[_0x2392('0xa2')]&&!_0xf666ce['isRemoved']&&_0x2392('0xf2')==_0x204efb[_0x966843][_0x2392('0xb0')])return void(_0xf666ce[_0x2392('0x2b')]=_0x204efb[_0x966843]);}}}[_0x2392('0x93')](_0x2c9afe,_0x9a528c){let _0x166043=0x0,_0x4762bb=!0x1;const _0x5b1e4f=new Map();for(const _0x19d2db of _0x2c9afe)_0x19d2db[_0x9a528c]?_0x4762bb&&(_0x166043++,_0x4762bb=!0x1):(_0x166043++,_0x4762bb=!0x0),_0x5b1e4f['set'](_0x19d2db['id'],_0x166043);for(let _0x349c57=0x0;_0x349c57<_0x2c9afe['length'];_0x349c57++){if(_0x2392('0xcc')==_0x9a528c&&_0x2c9afe[_0x349c57][_0x2392('0xa2')]||'isAdded'==_0x9a528c&&_0x2c9afe[_0x349c57][_0x2392('0xcc')])continue;if(_0x2392('0x5a')==_0x2c9afe[_0x349c57][_0x2392('0xb0')]){_0x2c9afe[_0x349c57]['distance']=0x0;continue;}const _0x481749=_0x5b1e4f[_0x2392('0x71')](_0x2c9afe[_0x349c57][_0x2392('0x7a')]),_0xaa9b04=_0x5b1e4f[_0x2392('0x71')](_0x2c9afe[_0x349c57]['id']);_0x2c9afe[_0x349c57][_0x2392('0x11b')]=_0x481749-_0xaa9b04;}}['_getRevisionsRange'](_0x2f0fba,_0x441f7a,_0x282e64=!0x1){const _0x3ce07d=[];let _0x509714=this['repository'][_0x2392('0x10b')](_0x2f0fba),_0xca2484=this[_0x2392('0xbb')]['getIndex'](_0x441f7a);for(-0x1==_0xca2484&&(_0xca2484=this[_0x2392('0xbb')][_0x2392('0x2f')][_0x2392('0xc5')],_0x282e64=!0x1);_0x509714<_0xca2484;)_0x3ce07d['push'](this[_0x2392('0xbb')]['getRevision'](_0x509714)),_0x509714++;return _0x282e64&&_0x3ce07d['push'](this['repository'][_0x2392('0xda')](_0x509714)),_0x3ce07d;}[_0x2392('0x84')](_0x202921,_0x38292a,_0x53dc6b,_0x215c06){const _0x38f235=this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x113')];let _0xc96087=_0x38292a;for(;_0x202921[_0xc96087]&&_0x202921[_0xc96087][_0x2392('0xa2')];)_0xc96087++;let _0x3318b9=_0x215c06;for(;_0x53dc6b[_0x3318b9]&&_0x53dc6b[_0x3318b9][_0x2392('0xcc')];)_0x3318b9++;_0x560781(_0x202921,_0x38292a,_0xc96087),_0x560781(_0x53dc6b,_0x215c06,_0x3318b9);const _0x1ca327=_0x53dc6b['slice'](_0x215c06,_0x3318b9)['concat'](_0x202921[_0x2392('0xa0')](_0x38292a,_0xc96087));return _0x1ca327['sort']((_0x2c257f,_0x90a783)=>_0x2c257f['side']!=_0x90a783[_0x2392('0x29')]?_0x2c257f[_0x2392('0x29')]-_0x90a783[_0x2392('0x29')]:_0x2c257f[_0x2392('0x32')]!=_0x90a783[_0x2392('0x32')]?_0x2c257f[_0x2392('0x32')]-_0x90a783[_0x2392('0x32')]:_0x2c257f[_0x2392('0x11b')]!=_0x90a783[_0x2392('0x11b')]?_0x90a783['distance']-_0x2c257f[_0x2392('0x11b')]:!!_0x2c257f['isAdded']!=!!_0x90a783[_0x2392('0xa2')]?-0x1==_0x2c257f[_0x2392('0x29')]||0x0==_0x2c257f['side']?_0x2c257f[_0x2392('0xa2')]?-0x1:0x1:_0x2c257f[_0x2392('0xa2')]?0x1:-0x1:_0x2c257f[_0x2392('0xfe')]-_0x90a783[_0x2392('0xfe')]),{'commonTape':_0x1ca327,'iEnd':_0xc96087,'jEnd':_0x3318b9};function _0x560781(_0x37cafa,_0x5a5a9d,_0x169285){let _0x188141=-0x1,_0x1f3dbf=Number[_0x2392('0xeb')],_0x44b44f=!0x0;for(let _0x2b23b0=_0x5a5a9d;_0x2b23b0<_0x169285;_0x2b23b0++)if(_0x38f235[_0x2392('0xb8')](_0x37cafa[_0x2b23b0][_0x2392('0x45')])||(_0x44b44f=!0x1),_0x37cafa[_0x2b23b0][_0x2392('0x45')]['startIndex']<_0x5a5a9d&&(_0x188141=_0x2b23b0),_0x37cafa[_0x2b23b0]['item']['endIndex']>=_0x169285){_0x1f3dbf=_0x2b23b0;break;}_0x44b44f&&(_0x188141=_0x169285-0x1);for(let _0x9d70b7=_0x5a5a9d;_0x9d70b7<_0x169285;_0x9d70b7++)_0x37cafa[_0x9d70b7][_0x2392('0x29')]=_0x9d70b7<=_0x188141?-0x1:_0x9d70b7<_0x1f3dbf?0x0:0x1,_0x37cafa[_0x9d70b7][_0x2392('0xfe')]=_0x9d70b7;let _0x229261=0x0;for(let _0x167741=_0x5a5a9d;_0x167741<=_0x188141;_0x167741++)0x0==_0x37cafa[_0x167741]['distance']?_0x37cafa[_0x167741][_0x2392('0x32')]=_0x229261:(_0x229261++,_0x37cafa[_0x167741][_0x2392('0x32')]=_0x229261,_0x229261++);for(let _0x20c61f=_0x5a5a9d;_0x20c61f<_0x169285;_0x20c61f++)0x0==_0x37cafa[_0x20c61f][_0x2392('0x29')]&&(_0x37cafa[_0x20c61f][_0x2392('0x32')]=_0x229261);_0x229261=0x0;for(let _0x9ca244=_0x169285-0x1;_0x9ca244>=_0x1f3dbf;_0x9ca244--)0x0==_0x37cafa[_0x9ca244]['distance']?_0x37cafa[_0x9ca244][_0x2392('0x32')]=_0x229261:(_0x229261--,_0x37cafa[_0x9ca244][_0x2392('0x32')]=_0x229261,_0x229261--);}}[_0x2392('0xef')](_0x3b460b){const _0x540e8e=new Map(),_0x4de0d4=this[_0x2392('0x57')][_0x2392('0xd8')]['schema'];for(let _0x45f290=0x1;_0x45f290<_0x3b460b[_0x2392('0xc5')];_0x45f290++){let _0x34709a,_0x59e935,_0x16fa1c;const _0x4cd2cd=_0x3b460b[_0x45f290],_0x56076e=_0x3b460b[_0x45f290-0x1];if('text'==_0x4cd2cd[_0x2392('0xb0')])continue;if(_0x4cd2cd[_0x2392('0xb0')]!=_0x56076e[_0x2392('0xb0')])continue;if(!_0x4de0d4[_0x2392('0x6e')](_0x56076e['item'])||_0x4de0d4[_0x2392('0xc3')](_0x56076e[_0x2392('0x45')]))continue;if(!_0x4de0d4['isBlock'](_0x4cd2cd[_0x2392('0x45')])||_0x4de0d4['isLimit'](_0x4cd2cd['item']))continue;if((_0x3b460b[_0x45f290][_0x2392('0xa2')]||_0x3b460b[_0x45f290][_0x2392('0x7c')])&&_0x3b460b[_0x45f290-0x1][_0x2392('0xcc')])_0x34709a=_0x3b460b[_0x45f290],_0x59e935=_0x3b460b[_0x45f290-0x1],_0x16fa1c=_0x45f290-0x1;else{if(!_0x3b460b[_0x45f290]['isRemoved']||!_0x3b460b[_0x45f290-0x1][_0x2392('0xa2')]&&!_0x3b460b[_0x45f290-0x1][_0x2392('0x7c')])continue;_0x34709a=_0x3b460b[_0x45f290-0x1],_0x59e935=_0x3b460b[_0x45f290],_0x16fa1c=_0x45f290;}const _0x3caa63=_0x34709a[_0x2392('0x32')]==_0x59e935[_0x2392('0x32')],_0x17162a=Math['abs'](_0x34709a['level'])<Math['abs'](_0x59e935[_0x2392('0x32')])&&0x0==_0x59e935[_0x2392('0x11b')];(_0x3caa63||_0x17162a)&&(_0x540e8e[_0x2392('0x7e')](_0x59e935['id'],_0x34709a['id']),_0x3b460b[_0x2392('0x7')](_0x16fa1c,0x1),_0x45f290--,_0x34709a[_0x2392('0xa2')]=!0x1);}for(let _0x58fbc9=0x0;_0x58fbc9<_0x3b460b[_0x2392('0xc5')];_0x58fbc9++)_0x540e8e[_0x2392('0xdb')](_0x3b460b[_0x58fbc9]['pairId'])&&(_0x3b460b[_0x58fbc9]['pairId']=_0x540e8e['get'](_0x3b460b[_0x58fbc9]['pairId']));}['_removeMissingPairs'](_0x3372d8){const _0x3769d6=new Set(_0x3372d8['map'](_0x42912a=>_0x42912a['id']));for(let _0x3fb5f9=0x0;_0x3fb5f9<_0x3372d8[_0x2392('0xc5')];_0x3fb5f9++)_0x3769d6[_0x2392('0xdb')](_0x3372d8[_0x3fb5f9]['pairId'])||0x0==_0x3372d8[_0x3fb5f9][_0x2392('0x11b')]||(_0x3372d8[_0x3fb5f9]['isIncorrect']=!0x0);return _0x3372d8[_0x2392('0x2d')](_0x527f16=>!_0x527f16[_0x2392('0xca')]);}[_0x2392('0x2c')](_0x30a30f){const _0x46456e=new Set();for(let _0x2449fb=0x0;_0x2449fb<_0x30a30f['length'];_0x2449fb++){if(_0x46456e[_0x2392('0xdb')](_0x30a30f[_0x2449fb]['id'])&&_0x30a30f[_0x2449fb][_0x2392('0xcc')]&&(_0x30a30f[_0x2449fb]['isIncorrect']=!0x0),_0x30a30f[_0x2449fb]['isIncorrect'])continue;if(0x0==_0x30a30f[_0x2449fb][_0x2392('0x11b')])continue;if(_0x2392('0xb2')!=_0x30a30f[_0x2449fb]['type'])continue;if(null==_0x30a30f[_0x2449fb]['pairId'])continue;let _0x212255=_0x2449fb+0x1,_0x2ff5c7=0x0;for(;_0x30a30f[_0x212255]['id']!=_0x30a30f[_0x2449fb][_0x2392('0x7a')];)_0x2392('0xb2')==_0x30a30f[_0x212255][_0x2392('0xb0')]?_0x2ff5c7++:_0x2392('0x10f')==_0x30a30f[_0x212255]['type']&&_0x2ff5c7--,_0x212255++;if(0x0!=_0x2ff5c7){if(_0x30a30f[_0x2449fb][_0x2392('0xcc')])_0x30a30f[_0x2449fb]['isIncorrect']=!0x0;else for(;_0x212255!=_0x2449fb;)_0x30a30f[_0x212255]['isRemoved']&&0x0!=_0x30a30f[_0x212255]['distance']&&(_0x30a30f[_0x212255]['isIncorrect']=!0x0,_0x46456e['add'](_0x30a30f[_0x212255][_0x2392('0x7a')])),_0x212255--;}}return _0x30a30f[_0x2392('0x2d')](_0x469858=>!_0x469858[_0x2392('0xca')]);}[_0x2392('0x9a')](_0xecfc66){const _0x19316b=this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x113')];for(let _0x397d23=0x0;_0x397d23<_0xecfc66[_0x2392('0xc5')];_0x397d23++){if(!(_0xecfc66[_0x397d23][_0x2392('0xa2')]||_0xecfc66[_0x397d23][_0x2392('0x7c')]||_0xecfc66[_0x397d23]['isRemoved']||_0xecfc66[_0x397d23]['isRemoveSuggestion']))continue;if(0x0==_0xecfc66[_0x397d23][_0x2392('0x11b')])continue;const _0x3f96c4=_0xecfc66[_0x397d23][_0x2392('0x45')];_0x19316b[_0x2392('0x6e')](_0x3f96c4)||_0x19316b['isLimit'](_0x3f96c4)||(_0xecfc66[_0x397d23][_0x2392('0xa2')]&&delete _0xecfc66[_0x397d23][_0x2392('0xa2')],_0xecfc66[_0x397d23][_0x2392('0x7c')]&&delete _0xecfc66[_0x397d23][_0x2392('0x7c')],_0xecfc66[_0x397d23][_0x2392('0x2b')]&&delete _0xecfc66[_0x397d23][_0x2392('0x2b')],_0xecfc66[_0x397d23][_0x2392('0xcc')]&&(_0xecfc66[_0x397d23][_0x2392('0xca')]=!0x0));}return _0xecfc66[_0x2392('0x2d')](_0x50c709=>!_0x50c709[_0x2392('0xca')]);}[_0x2392('0xba')](_0x1d4239,_0x678914,_0x2e5a3c){const _0x2023ea=new _0x1f4460(),_0x495ad5=[],_0x2ebd78=new Map(),_0x381b2a=this[_0x2392('0x57')]['model'],_0x26dc0e=_0x381b2a[_0x2392('0x113')],_0x421f21=[_0x2023ea],_0x45d865={},_0x2b6775={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa6bd42=null;const _0x24ec92=[0x0];for(let _0x5ec917=0x0;_0x5ec917<_0x1d4239['length'];_0x5ec917++){let _0x307d16,_0xf58e79;if('elementStart'===_0x1d4239[_0x5ec917][_0x2392('0xb0')]){_0x307d16=_0x381b2a['createPositionFromPath'](_0x2023ea,_0x24ec92);const _0x15b8bd=new _0x44f8ba(_0x1d4239[_0x5ec917][_0x2392('0x45')][_0x2392('0xb1')],_0x1d4239[_0x5ec917][_0x2392('0x45')][_0x2392('0x28')]());_0x421f21[0x0]['_appendChild'](_0x15b8bd),_0x24ec92[_0x2392('0x126')](0x0),_0x421f21['unshift'](_0x15b8bd),_0xf58e79=_0x381b2a[_0x2392('0x4e')](_0x2023ea,_0x24ec92),_0xa6bd42=null;}else{if('elementEnd'===_0x1d4239[_0x5ec917][_0x2392('0xb0')])_0x421f21[_0x2392('0x39')](),_0x307d16=_0x381b2a[_0x2392('0x4e')](_0x2023ea,_0x24ec92),_0x24ec92['pop'](),_0x24ec92[_0x24ec92[_0x2392('0xc5')]-0x1]++,_0xf58e79=_0x381b2a[_0x2392('0x4e')](_0x2023ea,_0x24ec92),_0xa6bd42=null;else{if(_0x307d16=_0x381b2a[_0x2392('0x4e')](_0x2023ea,_0x24ec92),_0xa6bd42&&_0x418d2c(_0xa6bd42,_0x1d4239[_0x5ec917][_0x2392('0x45')]))_0xa6bd42[_0x2392('0x52')]+=_0x1d4239[_0x5ec917][_0x2392('0x45')][_0x2392('0x8e')];else{const _0x20363f=new _0x1ca042(_0x1d4239[_0x5ec917]['item'][_0x2392('0x8e')],_0x1d4239[_0x5ec917]['item']['getAttributes']());_0x421f21[0x0][_0x2392('0x8c')](_0x20363f),_0xa6bd42=_0x20363f;}_0x24ec92[_0x24ec92[_0x2392('0xc5')]-0x1]+=_0x1d4239[_0x5ec917][_0x2392('0x45')][_0x2392('0x73')],_0xf58e79=_0x381b2a[_0x2392('0x4e')](_0x2023ea,_0x24ec92);}}for(const _0x7984d5 of _0x1d4239[_0x5ec917][_0x2392('0x97')])_0x2ebd78['set'](_0x7984d5,{'start':_0x307d16,'end':null});_0x3ddce2(_0x2392('0x2b'),_0x5ec917,_0x307d16,_0xf58e79),_0x3ddce2(_0x2392('0x7c'),_0x5ec917,_0x307d16,_0xf58e79),_0x3ddce2(_0x2392('0xcc'),_0x5ec917,_0x307d16,_0xf58e79),_0x3ddce2(_0x2392('0xa2'),_0x5ec917,_0x307d16,_0xf58e79);for(const _0x2cc833 of _0x1d4239[_0x5ec917][_0x2392('0xb6')]){_0x2ebd78['get'](_0x2cc833)[_0x2392('0x1f')]=_0xf58e79;}}for(const [_0x5ddb41,_0x4cd2ea]of _0x2ebd78){const _0x1c0980=this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x6a')](_0x4cd2ea[_0x2392('0x101')],_0x4cd2ea[_0x2392('0x1f')]);_0x2023ea[_0x2392('0xd5')][_0x2392('0x7e')](_0x5ddb41,_0x1c0980);}return _0x495ad5['sort']((_0xa58f5f,_0x8d4957)=>{const _0x5b7d18=_0x2023ea[_0x2392('0xd5')][_0x2392('0x71')](_0x2392('0xf8')+_0xa58f5f['id']),_0x22fae7=_0x2023ea[_0x2392('0xd5')][_0x2392('0x71')]('revision:'+_0x8d4957['id']);return _0x5b7d18[_0x2392('0x101')][_0x2392('0x50')](_0x22fae7[_0x2392('0x101')])?-0x1:_0x5b7d18[_0x2392('0x101')][_0x2392('0x96')](_0x22fae7[_0x2392('0x101')])?0x1:_0x5b7d18[_0x2392('0x1f')][_0x2392('0x50')](_0x22fae7[_0x2392('0x1f')])?-0x1:_0x5b7d18[_0x2392('0x1f')][_0x2392('0x96')](_0x22fae7[_0x2392('0x1f')])?0x1:'add'===_0xa58f5f[_0x2392('0xb0')]?-0x1:0x1;}),{'root':_0x2023ea,'changes':_0x495ad5};function _0x3ddce2(_0x192d73,_0x1ad95c,_0x1bd9cd,_0x54f2bd){const _0x36a8fc=!!_0x1d4239[_0x1ad95c][_0x192d73],_0x40b676=_0x36a8fc?_0x1d4239[_0x1ad95c][_0x192d73][_0x2392('0x99')]:null,_0x2ec987=_0x1ad95c===_0x1d4239[_0x2392('0xc5')]-0x1,_0x3f985a=_0x2b6775[_0x192d73][0x0],_0x3928c5=_0x26dc0e['isObject'](_0x1d4239[_0x1ad95c][_0x2392('0x45')]);!_0x45d865[_0x192d73]&&_0x36a8fc?_0x45d865[_0x192d73]={'start':_0x1bd9cd,'tapeItem':_0x1d4239[_0x1ad95c],'userId':_0x40b676,'type':_0x192d73}:_0x45d865[_0x192d73]&&!_0x36a8fc?(_0x45d865[_0x192d73]['end']=_0x1bd9cd,_0x497229(_0x45d865[_0x192d73]),_0x45d865[_0x192d73]=null):_0x45d865[_0x192d73]&&_0x36a8fc&&_0x45d865[_0x192d73][_0x2392('0x99')]!==_0x40b676&&(_0x45d865[_0x192d73][_0x2392('0x1f')]=_0x1bd9cd,_0x3f985a&&_0x3f985a[_0x2392('0x99')]===_0x45d865[_0x192d73]['userId']||_0x497229(_0x45d865[_0x192d73]),_0x45d865[_0x192d73]={'start':_0x1bd9cd,'tapeItem':_0x1d4239[_0x1ad95c],'userId':_0x40b676,'type':_0x192d73}),_0x45d865[_0x192d73]&&_0x3928c5&&('elementStart'!==_0x1d4239[_0x1ad95c][_0x2392('0xb0')]||_0x3f985a&&_0x3f985a[_0x2392('0x99')]===_0x40b676||_0x2b6775[_0x192d73][_0x2392('0x13')]({'userId':_0x40b676,'object':_0x1d4239[_0x1ad95c]['item'],'change':_0x45d865[_0x192d73]}),_0x2392('0x10f')===_0x1d4239[_0x1ad95c][_0x2392('0xb0')]&&_0x3f985a&&_0x3f985a[_0x2392('0x30')]===_0x1d4239[_0x1ad95c][_0x2392('0x45')]&&(_0x2b6775[_0x192d73]['shift'](),_0x45d865[_0x192d73]=_0x3f985a[_0x2392('0x9')])),_0x45d865[_0x192d73]&&_0x2ec987&&(_0x45d865[_0x192d73]['end']=_0x54f2bd,_0x497229(_0x45d865[_0x192d73]),_0x45d865[_0x192d73]=null);}function _0x497229({start:_0x460f2e,end:_0xd4b550,tapeItem:_0x5f4cff,userId:_0x44d6d4,type:_0x44c756}){const _0x430366=_0x5f4cff[_0x2392('0x45')],_0x349320=_0x381b2a[_0x2392('0x113')][_0x2392('0x6e')](_0x430366)&&!_0x381b2a[_0x2392('0x113')][_0x2392('0xc3')](_0x430366),_0x2f34d5=_0x460f2e['nodeAfter']==_0xd4b550['parent']&&_0xd4b550[_0x2392('0x10a')];if(_0x349320&&_0x2f34d5)return;const _0x19c518=_0x381b2a[_0x2392('0x6a')](_0x460f2e,_0xd4b550),_0x205cc6=_0x678914[_0x2392('0x71')](_0x44d6d4),_0x20be65=new _0x3dbf17({'author':_0x205cc6,'type':_0x2392('0xa2')==_0x44c756||_0x2392('0x7c')==_0x44c756?'add':_0x2392('0x83'),'data':{'isSuggestion':'isAddSuggestion'==_0x44c756||_0x2392('0x2b')==_0x44c756},'createdAt':new Date(),'rootName':_0x2e5a3c});_0x495ad5['push'](_0x20be65),_0x2023ea[_0x2392('0xd5')][_0x2392('0x7e')]('revision:'+_0x20be65['id'],_0x19c518);}function _0x418d2c(_0x49cf16,_0x157e1d){const _0x224dc8=_0x49cf16[_0x2392('0x28')](),_0x1ec8b1=_0x157e1d[_0x2392('0x28')]();for(const _0x334281 of _0x224dc8){if(_0x334281[0x1]!==_0x157e1d['getAttribute'](_0x334281[0x0]))return!0x1;_0x1ec8b1[_0x2392('0x107')]();}return _0x1ec8b1[_0x2392('0x107')]()['done'];}}[_0x2392('0xb4')](){this['editor'][_0x2392('0x3')][_0x2392('0x15')](_0x2392('0xa3'))['dataToMarker']({'view':_0x2392('0x86')}),this['editor'][_0x2392('0x3')]['for'](_0x2392('0x120'))[_0x2392('0x111')]({'model':_0x2392('0x86'),'view':_0x21799f=>{const _0x555562=_0x21799f['markerName'][_0x2392('0xea')](':')[0x1],_0x23c3da=this[_0x2392('0x123')](_0x555562);if(!_0x23c3da)return null;const _0x55481a=_0x2392('0x95')==_0x23c3da['type']?_0x2392('0x76'):_0x2392('0xf2'),_0x374fc6=[_0x2392('0x6d'),_0x2392('0x65')+_0x55481a];return _0x23c3da['data']['isSuggestion']&&_0x374fc6[_0x2392('0x126')](_0x2392('0x65')+_0x55481a+_0x2392('0x87')),this[_0x2392('0x1')]==_0x23c3da&&_0x374fc6[_0x2392('0x126')](_0x2392('0x74')),{'classes':_0x374fc6,'attributes':{'data-change-id':_0x555562}};}}),this[_0x2392('0x57')][_0x2392('0x3')][_0x2392('0x15')]('upcast')[_0x2392('0x95')](_0x2ae980=>{_0x2ae980['on'](_0x2392('0xfb'),(_0x443a55,_0x5f67c8,_0x1c9397)=>{const _0x5e792e=_0x5f67c8[_0x2392('0x8f')]['getChild'](0x0);if(!_0x5e792e||!_0x5e792e['is'](_0x2392('0xc'),_0x2392('0xf0')))return;if(!_0x1c9397[_0x2392('0x89')][_0x2392('0x69')](_0x5e792e,{'attributes':[_0x2392('0xf7'),_0x2392('0x3d')]}))return;const _0x425d17=_0x5f67c8['modelRange']['start']['nodeAfter'];_0x1c9397[_0x2392('0xf9')][_0x2392('0x8d')](_0x2392('0xf7'),_0x5e792e[_0x2392('0xc2')]('vid_start'),_0x425d17),_0x1c9397['writer']['setAttribute'](_0x2392('0x3d'),_0x5e792e[_0x2392('0xc2')](_0x2392('0x3d')),_0x425d17);},{'priority':_0x2392('0x3e')});}),this[_0x2392('0x57')][_0x2392('0x3')][_0x2392('0x15')](_0x2392('0xa3'))[_0x2392('0x95')](_0x843a96=>{_0x843a96['on'](_0x2392('0xc'),(_0x1421b6,_0x43931d,_0x13ee05)=>{if(!_0x13ee05['consumable'][_0x2392('0x69')](_0x43931d[_0x2392('0x8f')],{'attributes':[_0x2392('0xf7'),_0x2392('0x3d')]}))return;if(_0x43931d[_0x2392('0x21')][_0x2392('0xdf')])return;const _0x11180a=_0x43931d[_0x2392('0x21')][_0x2392('0x101')][_0x2392('0x5e')];_0x11180a[_0x2392('0x117')](_0x2392('0xf7'))||_0x11180a[_0x2392('0x117')]('vid')||(_0x13ee05['writer']['setAttribute'](_0x2392('0xf7'),_0x43931d[_0x2392('0x8f')]['getAttribute'](_0x2392('0xf7')),_0x11180a),_0x13ee05['writer'][_0x2392('0x8d')]('vid_end',_0x43931d[_0x2392('0x8f')][_0x2392('0xc2')](_0x2392('0x3d')),_0x11180a));},{'priority':_0x2392('0x3e')});}),this[_0x2392('0x57')]['conversion'][_0x2392('0x15')]('upcast')[_0x2392('0x2e')]({'view':{'name':_0x2392('0x115'),'attributes':{'vid':!0x0}},'model':{'key':_0x2392('0xc9'),'value':_0x2f864b=>_0x2f864b['getAttribute'](_0x2392('0xc9'))}}),this[_0x2392('0x57')][_0x2392('0xd8')]['schema']['on'](_0x2392('0x103'),(_0x363cf2,[,_0x45b83e])=>{[_0x2392('0xf7'),_0x2392('0x3d'),_0x2392('0xc9')]['includes'](_0x45b83e)&&(_0x363cf2[_0x2392('0x5')]=!0x0,_0x363cf2[_0x2392('0x47')]());},{'priority':_0x2392('0x94')}),this[_0x2392('0x57')][_0x2392('0x3')][_0x2392('0x15')]('dataDowncast')['add'](_0x1fde0f=>{_0x1fde0f['on']('attribute:vid',(_0x428bf5,_0x39a5c1,_0x368035)=>{if('\x20'!=_0x39a5c1[_0x2392('0x45')][_0x2392('0x8e')]||_0x39a5c1[_0x2392('0x45')][_0x2392('0x58')][_0x2392('0x7b')]>0x1)return;if(!_0x368035[_0x2392('0x89')][_0x2392('0x69')](_0x39a5c1[_0x2392('0x45')],_0x428bf5[_0x2392('0xb1')]))return;const _0x4b0a27=_0x368035[_0x2392('0xf9')],_0x4b47c8=_0x368035[_0x2392('0x1c')][_0x2392('0xe')](_0x39a5c1[_0x2392('0x7d')]);_0x4b0a27[_0x2392('0xce')](_0x4b47c8,_0x4b0a27['createAttributeElement'](_0x2392('0x115')));});}),this[_0x2392('0x57')][_0x2392('0x3')]['for']('dataDowncast')['markerToData']({'model':_0x2392('0x86')}),this[_0x2392('0x57')]['editing'][_0x2392('0x72')]['on'](_0x2392('0x70'),function(_0x5dff8f){const _0x56fcdb=_0x5dff8f[_0x2392('0x3b')][_0x2392('0x71')](_0x2392('0x11a'));return(_0xac0501,_0x129cf4,_0x499ae3)=>{const _0x4b31c1=_0x129cf4['markerName'][_0x2392('0xea')](':')[0x1],_0x442c14=_0x56fcdb['_getChangeFromId'](_0x4b31c1);if(!_0x442c14)return null;const _0x28b5c8=_0x2392('0x95')==_0x442c14[_0x2392('0xb0')]?'split':'merge';if(!_0x499ae3[_0x2392('0x89')][_0x2392('0x40')](_0x129cf4['markerRange'],_0xac0501[_0x2392('0xb1')]))return;const _0x467ad3=_0x129cf4[_0x2392('0xd4')][_0x2392('0x54')](),_0x53cc91=_0x129cf4[_0x2392('0xd4')]['start'],_0x545204=_0x5dff8f['model'][_0x2392('0x113')];let _0x30dc04=null,_0x58609b=null,_0x5d6dad=!0x1,_0x34f794=!0x1;for(const _0x2892bf of _0x467ad3){const _0x1f4397=_0x2892bf['item'];_0x5d6dad=_0x5d6dad||_0x545204[_0x2392('0x5f')](_0x1f4397);const _0x557364=_0x499ae3[_0x2392('0x1c')]['toViewElement'](_0x1f4397);if(_0x557364&&_0x557364[_0x2392('0x128')](_0x2392('0x42')))return;_0x2392('0x10f')==_0x2892bf[_0x2392('0xb0')]&&(_0x545204[_0x2392('0x6e')](_0x1f4397)&&!_0x545204['isLimit'](_0x1f4397)&&(_0x1f4397[_0x2392('0x27')]||_0x53cc91[_0x2392('0x3f')]?_0x30dc04&&_0x30dc04[_0x2392('0x58')]==_0x1f4397||(_0x30dc04=_0x1f4397,_0x47fa7f(_0x2892bf[_0x2392('0x35')]),_0x34f794=!0x0):_0x58609b=_0x58609b||_0x2892bf[_0x2392('0x35')]));}function _0x47fa7f(_0x444e17){const _0x140649=_0x499ae3[_0x2392('0xf9')][_0x2392('0xa')]('span',{'class':_0x2392('0x65')+_0x28b5c8}),_0x115557=_0x499ae3[_0x2392('0x1c')][_0x2392('0x4d')](_0x444e17);_0x442c14[_0x2392('0x8e')]['isSuggestion']&&_0x499ae3[_0x2392('0xf9')][_0x2392('0x62')](_0x2392('0x65')+_0x28b5c8+_0x2392('0x87'),_0x140649),_0x56fcdb[_0x2392('0x1')]==_0x442c14&&_0x499ae3[_0x2392('0xf9')][_0x2392('0x62')]('ck-suggestion-marker--active',_0x140649),_0x499ae3[_0x2392('0xf9')]['insert'](_0x115557,_0x140649),_0x499ae3[_0x2392('0x1c')]['bindElementToMarker'](_0x140649,_0x129cf4['markerName']);}_0x5d6dad||_0x34f794||!_0x58609b||_0x47fa7f(_0x58609b);};}(this[_0x2392('0x57')]),{'priority':_0x2392('0x80')}),this[_0x2392('0x57')][_0x2392('0x48')]['downcastDispatcher']['on'](_0x2392('0xfc'),(_0x565b68,_0x33f13b,_0x3b984c)=>{const _0x15e897=_0x3b984c[_0x2392('0x1c')]['markerNameToElements'](_0x33f13b[_0x2392('0x5c')]);if(_0x15e897)for(const _0x897d1f of _0x15e897)(_0x897d1f[_0x2392('0xc8')](_0x2392('0x10d'))||_0x897d1f[_0x2392('0xc8')](_0x2392('0xf4')))&&(_0x3b984c[_0x2392('0x1c')][_0x2392('0xa7')](_0x897d1f,_0x33f13b['markerName']),_0x3b984c[_0x2392('0xf9')][_0x2392('0x83')](_0x897d1f));},{'priority':_0x2392('0x80')}),this['editor'][_0x2392('0x48')][_0x2392('0x72')]['on'](_0x2392('0x70'),(_0x5991ac,_0x1e9b89,_0x433da4)=>{const _0x264251=_0x1e9b89[_0x2392('0x5c')][_0x2392('0xea')](':')[0x1],_0x55556a=this[_0x2392('0x123')](_0x264251);if(!_0x55556a)return null;const _0x2b1266=_0x2392('0x95')==_0x55556a[_0x2392('0xb0')]?_0x2392('0xea'):_0x2392('0x22');if(_0x433da4['consumable'][_0x2392('0x40')](_0x1e9b89[_0x2392('0xd4')],_0x5991ac[_0x2392('0xb1')]))for(const _0x3bf034 of _0x1e9b89[_0x2392('0xd4')][_0x2392('0xbd')]()){if(!_0x3bf034['is'](_0x2392('0xc'),_0x2392('0x114')))continue;const _0x2ee8b1=_0x433da4[_0x2392('0xf9')]['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b1266}),_0x471018=_0x433da4[_0x2392('0x1c')][_0x2392('0x4d')](this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x7f')](_0x3bf034));_0x55556a['data'][_0x2392('0x11f')]&&_0x433da4[_0x2392('0xf9')][_0x2392('0x62')](_0x2392('0x65')+_0x2b1266+'-new',_0x2ee8b1),this[_0x2392('0x1')]==_0x55556a&&_0x433da4[_0x2392('0xf9')][_0x2392('0x62')]('ck-suggestion-marker--active',_0x2ee8b1),_0x433da4[_0x2392('0xf9')]['insert'](_0x471018,_0x2ee8b1),_0x433da4[_0x2392('0x1c')][_0x2392('0x11e')](_0x2ee8b1,_0x1e9b89[_0x2392('0x5c')]);}},{'priority':'high'}),this[_0x2392('0x57')][_0x2392('0xd8')]['document']['on'](_0x2392('0x9'),()=>{this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0x9')](_0x3a7026=>{for(const _0x4083f7 of this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0xe5')][_0x2392('0xd')]()){const _0x4e578c=this['editor'][_0x2392('0xd8')][_0x2392('0xe5')][_0x2392('0xcd')](_0x4083f7),_0x5ed123=this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0xe5')][_0x2392('0xcd')](_0x4083f7);if(_0x5ed123){const _0x3f378c=_0x4e578c['getAttribute'](_0x2392('0xaf'));if(_0x3a7026['removeAttribute']('data-change-id',_0x5ed123),_0x3a7026[_0x2392('0x56')](_0x2392('0x41'),_0x5ed123),_0x3a7026[_0x2392('0x56')](_0x2392('0xe4'),_0x5ed123),_0x3a7026[_0x2392('0x56')]('ck-revision-history-root--active',_0x5ed123),_0x3f378c){const _0x17b9e8=this['_getChangeFromId'](_0x3f378c);if(!_0x17b9e8)return null;_0x3a7026[_0x2392('0x8d')](_0x2392('0xd3'),_0x3f378c,_0x5ed123),_0x3a7026[_0x2392('0x62')](_0x2392('0xf6')+_0x17b9e8['type'],_0x5ed123),this['activeChange']==_0x17b9e8&&_0x3a7026['addClass'](_0x2392('0xfd'),_0x5ed123);}}}});}),this[_0x2392('0x57')][_0x2392('0x3')][_0x2392('0x15')]('upcast')[_0x2392('0x20')]({'view':_0x2392('0x102'),'model':_0x1b3ce6=>_0x2392('0x77')+_0x1b3ce6,'converterPriority':_0x2392('0x94')}),this[_0x2392('0x57')]['conversion'][_0x2392('0x15')](_0x2392('0xa3'))[_0x2392('0x20')]({'view':_0x2392('0xc1'),'model':_0x55149d=>_0x2392('0x78')+_0x55149d,'converterPriority':'highest'}),this[_0x2392('0x57')][_0x2392('0x3')]['for']('dataDowncast')[_0x2392('0x109')]({'model':_0x2392('0x1a'),'view':_0x5d28e7=>({'name':_0x2392('0x10e')+_0x5d28e7,'group':_0x2392('0x1a')}),'converterPriority':'highest'}),this['editor'][_0x2392('0x3')][_0x2392('0x15')](_0x2392('0x120'))[_0x2392('0x111')]({'model':_0x2392('0x1a'),'view':_0xce7117=>{const _0x2347dd=_0xce7117['markerName']['split'](':')[0x1];return _0x2392('0x76')!=_0x2347dd&&_0x2392('0xf2')!=_0x2347dd?null:{'classes':[_0x2392('0x31'),_0x2392('0xbf')+_0x2347dd]};}}),this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x72')]['on'](_0x2392('0xd6'),et(this['editor'],_0x2392('0x22')),{'priority':'high'}),this[_0x2392('0x57')][_0x2392('0x48')]['downcastDispatcher']['on'](_0x2392('0x119'),et(this[_0x2392('0x57')],'split'),{'priority':'high'}),this['editor'][_0x2392('0x48')][_0x2392('0x72')]['on']('removeMarker:revision-suggestion',(_0x33b8f5,_0x1fd436,_0x543811)=>{const _0x4525f0=_0x543811['mapper'][_0x2392('0xc0')](_0x1fd436['markerName']);if(_0x4525f0)for(const _0x34bd08 of _0x4525f0)_0x34bd08['is']('uiElement')&&(_0x543811[_0x2392('0x1c')]['unbindElementFromMarkerName'](_0x34bd08,_0x1fd436[_0x2392('0x5c')]),_0x543811[_0x2392('0xf9')][_0x2392('0x83')](_0x34bd08));},{'priority':_0x2392('0x80')});}['_getChangeFromId'](_0x2aa665){return this[_0x2392('0x23')][_0x2392('0x71')](_0x2aa665);}['_getViewForChange'](_0x395234){return this[_0x2392('0x121')]&&this[_0x2392('0x121')][_0x2392('0x17')](),this['_changeView']=new _0x4dc050(this[_0x2392('0x57')]['locale'],_0x395234),this[_0x2392('0x121')];}[_0x2392('0x104')](){this[_0x2392('0x57')]['model'][_0x2392('0xe5')][_0x2392('0xec')][_0x2392('0x82')]('revision'),this['on'](_0x2392('0xf1'),(_0x2b56f0,_0x76ed13,_0xfb377a,_0x5cc1e8)=>{_0x5cc1e8&&this['_balloon'][_0x2392('0x83')](_0x5cc1e8),_0xfb377a&&(this['_balloon']['add']({'view':_0xfb377a,'stackId':_0x2392('0x5d'),'position':{'target':()=>{const _0x86fea7=this[_0x2392('0x57')][_0x2392('0x48')],_0x404007=this[_0x2392('0x123')](_0xfb377a[_0x2392('0x106')]);let _0x73da68;if(_0x404007[_0x2392('0x8e')][_0x2392('0xa6')]){const _0x4ee643=_0x86fea7['view'][_0x2392('0x1d')](_0x404007[_0x2392('0xfa')]);_0x73da68=Array[_0x2392('0xb3')](_0x4ee643[_0x2392('0xb7')]());}else{const _0x56ae40=this[_0x2392('0x57')]['model'][_0x2392('0xd5')]['get'](_0x2392('0xf8')+_0xfb377a[_0x2392('0x106')]);_0x73da68=Array[_0x2392('0xb3')](_0x86fea7['mapper'][_0x2392('0xc0')](_0x56ae40[_0x2392('0xb1')]))[_0x2392('0xff')](_0x451b71=>_0x86fea7['view'][_0x2392('0x4a')][_0x2392('0x105')](_0x451b71))['map'](_0x5d36d1=>Array[_0x2392('0xb3')](_0x5d36d1['getClientRects']()))[_0x2392('0x37')]();}if(!this[_0x2392('0x8')])return _0x73da68[0x0];return _0x73da68[_0x2392('0x4b')](_0x2f8f18=>_0x2f8f18[_0x2392('0x53')]-0x3<=this[_0x2392('0x8')]['y']&&_0x2f8f18[_0x2392('0x116')]+0x3>=this['_activeViewTarget']['y']&&_0x2f8f18[_0x2392('0x122')]-0x3<=this[_0x2392('0x8')]['x']&&_0x2f8f18['right']+0x3>=this[_0x2392('0x8')]['x'])||_0x73da68[0x0];}}}),this['_balloon'][_0x2392('0xae')](_0x2392('0x5d')));}),this['on'](_0x2392('0x81'),(_0x1761a9,_0x5c6dcf,_0xe43083,_0x44ec5d)=>{this[_0x2392('0xb')]=_0xe43083?this[_0x2392('0x100')](_0xe43083):null,this[_0x2392('0x57')][_0x2392('0xd8')]['change'](()=>{const _0x145c81=this[_0x2392('0x57')][_0x2392('0x48')];_0x44ec5d&&(_0x44ec5d[_0x2392('0x8e')]['isOnRoot']?_0x145c81['view'][_0x2392('0x9')](_0x430220=>{_0x430220[_0x2392('0x56')](_0x2392('0xfd'),_0x145c81['view'][_0x2392('0xe5')][_0x2392('0xcd')](_0x44ec5d[_0x2392('0xfa')]));}):_0x145c81[_0x2392('0xcb')](_0x2392('0xf8')+_0x44ec5d['id'])),_0xe43083&&(_0xe43083[_0x2392('0x8e')][_0x2392('0xa6')]?_0x145c81[_0x2392('0x124')]['change'](_0x579f4b=>{_0x579f4b[_0x2392('0x62')](_0x2392('0xfd'),_0x145c81[_0x2392('0x124')][_0x2392('0xe5')][_0x2392('0xcd')](_0xe43083[_0x2392('0xfa')]));}):_0x145c81[_0x2392('0xcb')](_0x2392('0xf8')+_0xe43083['id']));});}),this[_0x2392('0xe9')](this[_0x2392('0x57')]['editing'][_0x2392('0x124')][_0x2392('0xe5')],'mouseover',(_0x356706,_0x450d55)=>{if(this[_0x2392('0x1')])return;const _0x12036b=this[_0x2392('0x8a')](_0x450d55[_0x2392('0xa1')]),_0x39cdcc=this['_changeIdToChange'][_0x2392('0x71')](_0x12036b);_0x39cdcc?(this[_0x2392('0x8')]={'x':_0x450d55[_0x2392('0x112')]['x'],'y':_0x450d55[_0x2392('0x112')]['y']},this[_0x2392('0xb')]=this[_0x2392('0x100')](_0x39cdcc)):(this[_0x2392('0x8')]=null,this[_0x2392('0xb')]=null);}),this[_0x2392('0xe9')](this[_0x2392('0x57')][_0x2392('0x48')][_0x2392('0x124')][_0x2392('0xe5')],'mousedown',(_0x4b9326,_0x373312)=>{const _0xa60e4f=this[_0x2392('0x8a')](_0x373312[_0x2392('0xa1')]),_0x3290ef=this[_0x2392('0x23')][_0x2392('0x71')](_0xa60e4f);_0x3290ef?(this[_0x2392('0x8')]={'x':_0x373312[_0x2392('0x112')]['x'],'y':_0x373312[_0x2392('0x112')]['y']},_0x3290ef===this[_0x2392('0x1')]?this[_0x2392('0x110')][_0x2392('0x68')]():this[_0x2392('0x1')]=_0x3290ef):(this[_0x2392('0x8')]=null,this[_0x2392('0x1')]=null);});}[_0x2392('0x8a')](_0x512e84){do{const _0x9234cc=_0x512e84[_0x2392('0xc2')](_0x2392('0xd3'));if(_0x9234cc)return _0x9234cc;_0x512e84=_0x512e84[_0x2392('0x58')];}while(_0x512e84);return null;}[_0x2392('0x4c')](){this[_0x2392('0x57')][_0x2392('0xd8')][_0x2392('0x9')](_0x1be1f0=>{for(const _0x15a086 of this[_0x2392('0x57')][_0x2392('0xd8')]['markers'])_0x1be1f0[_0x2392('0x85')](_0x15a086);});}}function et(_0x2adf55,_0x5cf781){return(_0x3f5a7a,_0xdc9f8e,_0x469cbc)=>{if(!_0x469cbc[_0x2392('0x89')][_0x2392('0x40')](_0xdc9f8e[_0x2392('0xd4')],_0x3f5a7a[_0x2392('0xb1')]))return;const _0x19c591=_0xdc9f8e['markerRange'][_0x2392('0x54')](),_0x41810e=_0xdc9f8e[_0x2392('0xd4')][_0x2392('0x101')],_0x5dabdd=_0x2adf55[_0x2392('0xd8')][_0x2392('0x113')];let _0x1d9f54=null,_0x1863a5=null,_0x261951=!0x1,_0x3d74a1=!0x1;for(const _0x271605 of _0x19c591){const _0x3ab95f=_0x271605[_0x2392('0x45')];_0x261951=_0x261951||_0x5dabdd[_0x2392('0x5f')](_0x3ab95f);const _0x392a1e=_0x469cbc['mapper']['toViewElement'](_0x3ab95f);if(_0x392a1e&&_0x392a1e[_0x2392('0x128')](_0x2392('0x42')))return;_0x2392('0x10f')==_0x271605[_0x2392('0xb0')]&&(_0x5dabdd['isBlock'](_0x3ab95f)&&!_0x5dabdd[_0x2392('0xc3')](_0x3ab95f)&&(_0x3ab95f[_0x2392('0x27')]||_0x41810e[_0x2392('0x3f')]?_0x1d9f54&&_0x1d9f54[_0x2392('0x58')]==_0x3ab95f||(_0x1d9f54=_0x3ab95f,_0x102663(_0x271605[_0x2392('0x35')]),_0x3d74a1=!0x0):_0x1863a5=_0x1863a5||_0x271605[_0x2392('0x35')]));}function _0x102663(_0x25480e){const _0x4a5953=_0x469cbc[_0x2392('0x1c')][_0x2392('0x4d')](_0x25480e),_0x3c82fe=_0x469cbc['writer'][_0x2392('0xa')](_0x2392('0x115'),{'class':'ck-suggestion-preview-marker-'+_0x5cf781});_0x469cbc[_0x2392('0xf9')][_0x2392('0x92')](_0x4a5953,_0x3c82fe),_0x469cbc[_0x2392('0x1c')][_0x2392('0x11e')](_0x3c82fe,_0xdc9f8e[_0x2392('0x5c')]);}_0x261951||_0x3d74a1||!_0x1863a5||_0x102663(_0x1863a5);};}export class RestoreRevisionCommand extends _0x8052de{constructor(_0x180704){super(_0x180704);const _0x5b9c6a=_0x180704[_0x2392('0x3b')][_0x2392('0x71')](d);this[_0x2392('0x2a')]=!0x1,this[_0x2392('0xe9')](_0x5b9c6a,'change:isReady',()=>this[_0x2392('0xf3')]()),this[_0x2392('0xe9')](_0x5b9c6a,_0x2392('0xcf'),()=>this['refresh']());}[_0x2392('0xac')](){const _0x5b4fe9=this[_0x2392('0x57')],_0x16d568=_0x5b4fe9['plugins'][_0x2392('0x71')](d),_0x2ea4c7=_0x16d568[_0x2392('0x90')]?_0x16d568[_0x2392('0x6')][_0x2392('0xe0')]:null;_0x5b4fe9['config'][_0x2392('0x71')](_0x2392('0xe2'))[_0x2392('0x10c')](_0x2ea4c7);}[_0x2392('0xf3')](){const {isReady:_0x5adb58,isEnabled:_0x56a352}=this[_0x2392('0x57')][_0x2392('0x3b')][_0x2392('0x71')](d);this['isEnabled']=_0x5adb58&&_0x56a352;}}export class ShowChangeCommand extends _0x8052de{constructor(_0x463eac,{direction:_0x3e5797}){super(_0x463eac);const _0xbbef6b=_0x463eac[_0x2392('0x3b')][_0x2392('0x71')](d);this[_0x2392('0x2a')]=!0x1,this[_0x2392('0x79')]=_0x2392('0x51')===_0x3e5797?0x1:-0x1,this[_0x2392('0xe9')](_0xbbef6b,_0x2392('0xa8'),()=>this[_0x2392('0xf3')]()),this[_0x2392('0xe9')](_0xbbef6b,_0x2392('0xcf'),()=>this['refresh']()),this[_0x2392('0xe9')](_0xbbef6b,_0x2392('0x81'),()=>this[_0x2392('0xf3')]());}[_0x2392('0xac')](){const _0xd46cdf=this[_0x2392('0x57')],_0x14b23f=_0xd46cdf[_0x2392('0x3b')][_0x2392('0x71')](d),{isNavigationMode:_0xc9ae0a,currentChangeNumber:_0x32520c}=_0x14b23f;let _0x2c72df;if(_0x14b23f['activeChange']=_0xc9ae0a?_0x14b23f[_0x2392('0x6')][_0x2392('0x1b')][_0x2392('0x71')](_0x32520c+this[_0x2392('0x79')]):_0x14b23f[_0x2392('0x6')][_0x2392('0x1b')][_0x2392('0xa9')],_0x14b23f[_0x2392('0x1')][_0x2392('0x8e')][_0x2392('0xa6')])_0x2c72df=_0xd46cdf['editing'][_0x2392('0x124')]['getDomRoot'](_0x14b23f['activeChange'][_0x2392('0xfa')]);else{const _0x1a0a1f=_0xd46cdf[_0x2392('0xd8')][_0x2392('0xd5')]['get'](_0x2392('0xf8')+_0x14b23f[_0x2392('0x1')]['id']);_0x2c72df=_0x1381fb(_0xd46cdf['editing'],_0x1a0a1f);}_0x2308d8({'target':_0x2c72df,'viewportOffset':0x28});}[_0x2392('0xf3')](){const {isNavigationMode:_0x18c4dd,currentChangeNumber:_0x3a6a02,numberOfChanges:_0x389e0f,isReady:_0x51c91e,isEnabled:_0x102ef9}=this['editor'][_0x2392('0x3b')][_0x2392('0x71')](d);this['isEnabled']=!!(_0x102ef9&&_0x51c91e&&_0x389e0f)&&(!_0x18c4dd||(0x1===this['_step']?_0x3a6a02<_0x389e0f-0x1:_0x3a6a02>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11d1=['children','execute','bind','change:isActionsDropdownOpen','action','buttonView','add','listenTo','button','threeVerticalDots','_action','bindTemplate','isReady','locale','stopPropagation','Show\x20more\x20items','name','map','extendTemplate','panelPosition','Restore\x20this\x20revision','source','function','isVisible','isEnabled','isOpen','set','isActionsDropdownOpen','find','ck-on','Name\x20this\x20revision'];(function(_0x34b299,_0x11d1c9){const _0xdfa20e=function(_0x12ee4){while(--_0x12ee4){_0x34b299['push'](_0x34b299['shift']());}};_0xdfa20e(++_0x11d1c9);}(_0x11d1,0x141));const _0xdfa2=function(_0x34b299,_0x11d1c9){_0x34b299=_0x34b299-0x0;let _0xdfa20e=_0x11d1[_0x34b299];return _0xdfa20e;};import{Collection as _0x47c026}from'ckeditor5/src/utils';import{icons as _0x107ed4}from'ckeditor5/src/core';import{Model as _0x54b5a3,addListToDropdown as _0x1e46c0,createDropdown as _0x5c9dae}from'ckeditor5/src/ui';import{getTranslation as _0x1f8e14}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x46af49,_0x2e3c22){const _0x345e14=_0x46af49[_0xdfa2('0x0')],_0x49ea42=_0x46af49[_0xdfa2('0x2')],_0x2ce9f4=_0x5c9dae(_0x49ea42);_0x2ce9f4[_0xdfa2('0x8')]='sw';const _0x1b3c3d=function(_0x5d60cb,_0x4ad78c){const _0x54cb0c=function(_0x5a6419,_0x53ad2f){const _0x2f0450=_0x5a6419[_0xdfa2('0x2')],_0xf3782e={'Compare\x20against\x20selected':_0x1f8e14(_0x2f0450,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x1f8e14(_0x2f0450,_0xdfa2('0x13')),'Restore\x20this\x20revision':_0x1f8e14(_0x2f0450,_0xdfa2('0x9'))};return _0x53ad2f[_0xdfa2('0x6')](_0x18c9bd=>{const _0x847cba=_0xf3782e[_0x18c9bd[_0xdfa2('0x5')]];return _0x847cba&&_0x847cba!==_0x18c9bd[_0xdfa2('0x5')]&&(_0x18c9bd[_0xdfa2('0x5')]=_0x847cba),_0x18c9bd;});}(_0x5d60cb,_0x4ad78c),_0x19f6b8=new _0x47c026();for(const _0x4d70cb of _0x54cb0c){const _0x37436a={'type':_0xdfa2('0x1c'),'model':new _0x54b5a3({'label':_0x4d70cb[_0xdfa2('0x5')],'class':_0x4d70cb['class'],'withText':!0x0,'_action':_0x4d70cb[_0xdfa2('0x18')]})};_0x37436a['model'][_0xdfa2('0x16')]('isEnabled')['to'](_0x5d60cb,_0xdfa2('0x10'),_0x43868c=>_0xdfa2('0xb')!=typeof _0x4d70cb[_0xdfa2('0xd')]||(!_0x43868c||_0x4d70cb[_0xdfa2('0xd')](_0x5d60cb))),_0x19f6b8[_0xdfa2('0x1a')](_0x37436a);}return _0x19f6b8;}(_0x46af49,_0x2e3c22);return _0x46af49[_0xdfa2('0x16')]('isActionsDropdownOpen')['to'](_0x2ce9f4,_0xdfa2('0xe')),_0x2ce9f4[_0xdfa2('0x19')][_0xdfa2('0xf')]({'label':_0x1f8e14(_0x49ea42,_0xdfa2('0x4')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x107ed4[_0xdfa2('0x1d')]}),_0x2ce9f4[_0xdfa2('0x7')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x345e14['if'](_0xdfa2('0x10'),_0xdfa2('0x12'))]},'on':{'click':_0x345e14['to'](_0x375b5e=>_0x375b5e[_0xdfa2('0x3')]())}}),_0x2ce9f4['on'](_0xdfa2('0x15'),_0x1af18e=>{_0x46af49[_0xdfa2('0x1')]&&_0xdfa2('0xb')==typeof _0x1af18e['source'][_0xdfa2('0x1e')]&&_0x1af18e[_0xdfa2('0xa')][_0xdfa2('0x1e')](_0x46af49);}),_0x1e46c0(_0x2ce9f4,_0x1b3c3d),_0x2ce9f4[_0xdfa2('0x1b')](_0x46af49,_0xdfa2('0x17'),(_0x51c904,_0x59600e,_0x35b24e)=>{if(_0x35b24e)for(const _0x3cbe31 of _0x2ce9f4['listView']['items']){const _0x149ed4=_0x3cbe31[_0xdfa2('0x14')]['first'],_0x1623d9=_0x2e3c22[_0xdfa2('0x11')](_0x4a7af0=>_0x4a7af0[_0xdfa2('0x18')]===_0x149ed4[_0xdfa2('0x1e')])[_0xdfa2('0xc')];_0x3cbe31[_0xdfa2('0xc')]=void 0x0===_0x1623d9||_0x1623d9(_0x46af49);}}),_0x2ce9f4;}
23
+ const _0x502e=['map','Name\x20this\x20revision','change:isActionsDropdownOpen','extendTemplate','source','children','name','set','action','first','button','Restore\x20this\x20revision','ck-on','model','function','_action','locale','items','isActionsDropdownOpen','listView','isEnabled','stopPropagation','add','isReady','isVisible','Compare\x20against\x20selected','bindTemplate','bind','find','ck-revision-history-sidebar__revision__actions','listenTo','buttonView'];(function(_0x1f629d,_0x502e7e){const _0x2db120=function(_0x7b3511){while(--_0x7b3511){_0x1f629d['push'](_0x1f629d['shift']());}};_0x2db120(++_0x502e7e);}(_0x502e,0xe7));const _0x2db1=function(_0x1f629d,_0x502e7e){_0x1f629d=_0x1f629d-0x0;let _0x2db120=_0x502e[_0x1f629d];return _0x2db120;};import{Collection as _0x34071a}from'ckeditor5/src/utils';import{icons as _0x3f38bb}from'ckeditor5/src/core';import{Model as _0x3e38fa,addListToDropdown as _0x3c041a,createDropdown as _0x4cd817}from'ckeditor5/src/ui';import{getTranslation as _0x3d0ed4}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x441fe0,_0x347789){const _0x40219d=_0x441fe0[_0x2db1('0x13')],_0x52218a=_0x441fe0[_0x2db1('0x9')],_0x167bb2=_0x4cd817(_0x52218a);_0x167bb2['panelPosition']='sw';const _0xd1cd3=function(_0xc9cc15,_0x509240){const _0x24ce3d=function(_0x2ad292,_0x1cc7f3){const _0x1a0a4a=_0x2ad292[_0x2db1('0x9')],_0x57dc32={'Compare\x20against\x20selected':_0x3d0ed4(_0x1a0a4a,_0x2db1('0x12')),'Name\x20this\x20revision':_0x3d0ed4(_0x1a0a4a,_0x2db1('0x1a')),'Restore\x20this\x20revision':_0x3d0ed4(_0x1a0a4a,_0x2db1('0x4'))};return _0x1cc7f3[_0x2db1('0x19')](_0x3a0e17=>{const _0x4e9656=_0x57dc32[_0x3a0e17['name']];return _0x4e9656&&_0x4e9656!==_0x3a0e17[_0x2db1('0x1f')]&&(_0x3a0e17[_0x2db1('0x1f')]=_0x4e9656),_0x3a0e17;});}(_0xc9cc15,_0x509240),_0x5b4c88=new _0x34071a();for(const _0x29d38b of _0x24ce3d){const _0x193fc4={'type':_0x2db1('0x3'),'model':new _0x3e38fa({'label':_0x29d38b[_0x2db1('0x1f')],'class':_0x29d38b['class'],'withText':!0x0,'_action':_0x29d38b[_0x2db1('0x1')]})};_0x193fc4[_0x2db1('0x6')]['bind'](_0x2db1('0xd'))['to'](_0xc9cc15,_0x2db1('0xb'),_0x1e37d4=>_0x2db1('0x7')!=typeof _0x29d38b[_0x2db1('0xd')]||(!_0x1e37d4||_0x29d38b['isEnabled'](_0xc9cc15))),_0x5b4c88[_0x2db1('0xf')](_0x193fc4);}return _0x5b4c88;}(_0x441fe0,_0x347789);return _0x441fe0[_0x2db1('0x14')](_0x2db1('0xb'))['to'](_0x167bb2,'isOpen'),_0x167bb2[_0x2db1('0x18')][_0x2db1('0x0')]({'label':_0x3d0ed4(_0x52218a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3f38bb['threeVerticalDots']}),_0x167bb2[_0x2db1('0x1c')]({'attributes':{'class':[_0x2db1('0x16'),_0x40219d['if'](_0x2db1('0xb'),_0x2db1('0x5'))]},'on':{'click':_0x40219d['to'](_0x56168d=>_0x56168d[_0x2db1('0xe')]())}}),_0x167bb2['on']('execute',_0x37d3ca=>{_0x441fe0[_0x2db1('0x10')]&&'function'==typeof _0x37d3ca[_0x2db1('0x1d')]['_action']&&_0x37d3ca[_0x2db1('0x1d')]['_action'](_0x441fe0);}),_0x3c041a(_0x167bb2,_0xd1cd3),_0x167bb2[_0x2db1('0x17')](_0x441fe0,_0x2db1('0x1b'),(_0x40b842,_0x49b0a3,_0x304147)=>{if(_0x304147)for(const _0x1cdebc of _0x167bb2[_0x2db1('0xc')][_0x2db1('0xa')]){const _0xda256b=_0x1cdebc[_0x2db1('0x1e')][_0x2db1('0x2')],_0x4ea44f=_0x347789[_0x2db1('0x15')](_0x3f3cf2=>_0x3f3cf2[_0x2db1('0x1')]===_0xda256b[_0x2db1('0x8')])[_0x2db1('0x11')];_0x1cdebc[_0x2db1('0x11')]=void 0x0===_0x4ea44f||_0x4ea44f(_0x441fe0);}}),_0x167bb2;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fb3=['ck-revision-history-sidebar__revision-author','Revision\x20author','Revision\x20creator','name','set','setTemplate','ck-revision-history-sidebar__revision-author__name','0\x200\x2011\x2010','span','push','ck-revision-history-sidebar__revision-author_creator'];(function(_0x5b2a2c,_0x1fb311){const _0x5436b9=function(_0x35a8f7){while(--_0x35a8f7){_0x5b2a2c['push'](_0x5b2a2c['shift']());}};_0x5436b9(++_0x1fb311);}(_0x1fb3,0x1e3));const _0x5436=function(_0x5b2a2c,_0x1fb311){_0x5b2a2c=_0x5b2a2c-0x0;let _0x5436b9=_0x1fb3[_0x5b2a2c];return _0x5436b9;};import{View as _0x327bac,IconView as _0x45bdd2}from'ckeditor5/src/ui';import{getTranslation as _0x41c2c8}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x97c6c7 from'../../../theme/icons/user.svg';export default class ti extends _0x327bac{constructor(_0x2ae95c,_0x3791fd,_0x8df932){super(_0x2ae95c);const _0x5d8e61=new _0x45bdd2();_0x5d8e61[_0x5436('0x5')]({'content':_0x97c6c7,'viewBox':_0x5436('0x8')});const _0x3eba66=['ck',_0x5436('0x1')];_0x8df932&&_0x3eba66[_0x5436('0xa')](_0x5436('0x0'));const _0x5c0b23=[{'tag':_0x5436('0x9'),'attributes':{'class':['ck',_0x5436('0x7')],'title':_0x41c2c8(_0x2ae95c,_0x8df932?_0x5436('0x3'):_0x5436('0x2'))},'children':[_0x5d8e61,_0x3791fd[_0x5436('0x4')]]}];this[_0x5436('0x6')]({'tag':'li','attributes':{'class':_0x3eba66},'children':_0x5c0b23});}}
23
+ const _0x22ad=['set','push','setTemplate','0\x200\x2011\x2010','Revision\x20author','name','Revision\x20creator','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','span'];(function(_0x46081b,_0x22ad6e){const _0x51f246=function(_0x20a195){while(--_0x20a195){_0x46081b['push'](_0x46081b['shift']());}};_0x51f246(++_0x22ad6e);}(_0x22ad,0x18a));const _0x51f2=function(_0x46081b,_0x22ad6e){_0x46081b=_0x46081b-0x0;let _0x51f246=_0x22ad[_0x46081b];return _0x51f246;};import{View as _0x19b35b,IconView as _0x6e7496}from'ckeditor5/src/ui';import{getTranslation as _0x4274f5}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x45b9a9 from'../../../theme/icons/user.svg';export default class ti extends _0x19b35b{constructor(_0xaf6785,_0x5bb661,_0x344921){super(_0xaf6785);const _0x3416b9=new _0x6e7496();_0x3416b9[_0x51f2('0x6')]({'content':_0x45b9a9,'viewBox':_0x51f2('0x9')});const _0x1d91e0=['ck',_0x51f2('0x4')];_0x344921&&_0x1d91e0[_0x51f2('0x7')]('ck-revision-history-sidebar__revision-author_creator');const _0x3ba488=[{'tag':_0x51f2('0x5'),'attributes':{'class':['ck',_0x51f2('0x3')],'title':_0x4274f5(_0xaf6785,_0x344921?_0x51f2('0x2'):_0x51f2('0x0'))},'children':[_0x3416b9,_0x5bb661[_0x51f2('0x1')]]}];this[_0x51f2('0x8')]({'tag':'li','attributes':{'class':_0x1d91e0},'children':_0x3ba488});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1a21=['set','span','extendTemplate','ck-revision-history-sidebar__revision-name'];(function(_0x2bad24,_0x1a21ae){var _0x16d7dc=function(_0x343c32){while(--_0x343c32){_0x2bad24['push'](_0x2bad24['shift']());}};_0x16d7dc(++_0x1a21ae);}(_0x1a21,0x11b));var _0x16d7=function(_0x2bad24,_0x1a21ae){_0x2bad24=_0x2bad24-0x0;var _0x16d7dc=_0x1a21[_0x2bad24];return _0x16d7dc;};import{LabeledFieldView as _0x241278}from'ckeditor5/src/ui';import{getTranslation as _0x40d413}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x241278{constructor(_0x50c1f7,_0x392538){super(_0x50c1f7,_0x392538),this[_0x16d7('0x1')]({'label':_0x40d413(_0x50c1f7,'Revision\x20name')}),this[_0x16d7('0x3')]({'tag':_0x16d7('0x2'),'attributes':{'class':[_0x16d7('0x0')]}});}}
23
+ var _0x1762=['ck-revision-history-sidebar__revision-name','set','Revision\x20name','extendTemplate'];(function(_0x337724,_0x176298){var _0x41f423=function(_0x49226b){while(--_0x49226b){_0x337724['push'](_0x337724['shift']());}};_0x41f423(++_0x176298);}(_0x1762,0x13c));var _0x41f4=function(_0x337724,_0x176298){_0x337724=_0x337724-0x0;var _0x41f423=_0x1762[_0x337724];return _0x41f423;};import{LabeledFieldView as _0x1e4166}from'ckeditor5/src/ui';import{getTranslation as _0x57448f}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x1e4166{constructor(_0x494725,_0x2d130e){super(_0x494725,_0x2d130e),this[_0x41f4('0x1')]({'label':_0x57448f(_0x494725,_0x41f4('0x2'))}),this[_0x41f4('0x3')]({'tag':'span','attributes':{'class':[_0x41f4('0x0')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4040=['name','extendTemplate','select','fieldView','isReady','length','div','fire','unshift','ck-reset','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision','render','220','ck-revision-history-sidebar__revision_highlighted','_revision','isEnabled','bind','ck-revision-history-sidebar__revision__controls-wrapper','map','span','_createdAtFormatted','creator','isSelected','ck-revision-history-sidebar__revision-wrapper','set','listenTo','placeholder','value','ck-revision-history-sidebar__revision__date','authors','isConfirm','element','setTemplate','ck-revision-history-sidebar__actions_dropdown_open','deselect','isHighlighted','from','closest','revisionActionsView','createdAt','bindTemplate','srcElement','revisionNameView','ck-revision-history-sidebar__revision_selected','uiLanguage','isActionsDropdownOpen'];(function(_0x37f040,_0x404063){const _0x33e4d7=function(_0x2f99d4){while(--_0x2f99d4){_0x37f040['push'](_0x37f040['shift']());}};_0x33e4d7(++_0x404063);}(_0x4040,0x72));const _0x33e4=function(_0x37f040,_0x404063){_0x37f040=_0x37f040-0x0;let _0x33e4d7=_0x4040[_0x37f040];return _0x33e4d7;};import{View as _0x3e0297,createLabeledInputText as _0x3b5d36}from'ckeditor5/src/ui';import{ConfirmMixin as _0x5f02fa}from'ckeditor5-collaboration/src/collaboration-core';import _0x4f44d5 from'./revisionnameview';import _0x387e64 from'./revisionauthorview';import{dateToPrettyFormat as _0xf04585}from'./utils';import{createActionsDropdownView as _0x5a346b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x5f02fa(_0x3e0297){constructor(_0x112ed6,_0x2e8675,_0x472883){super(_0x112ed6);const _0x703b60=this[_0x33e4('0x15')],_0x319f9c=function(_0x15dd7d,_0x4fc6b3){const _0x54c7f0=Array[_0x33e4('0x11')](_0x4fc6b3[_0x33e4('0xa')])['filter'](_0x3589d1=>_0x3589d1!=_0x4fc6b3[_0x33e4('0x2')]);return _0x4fc6b3[_0x33e4('0x2')]&&_0x54c7f0[_0x33e4('0x23')](_0x4fc6b3[_0x33e4('0x2')]),_0x54c7f0[_0x33e4('0x2e')](_0x3378fa=>new _0x387e64(_0x15dd7d,_0x3378fa,_0x3378fa==_0x4fc6b3[_0x33e4('0x2')]));}(_0x112ed6,_0x2e8675);this['id']=_0x2e8675['id'],this[_0x33e4('0x2a')]=_0x2e8675,this['bind']('name',_0x33e4('0x14'))['to'](_0x2e8675),this[_0x33e4('0x2c')](_0x33e4('0x1'))['to'](this,'createdAt',_0xb5e51c=>_0xb5e51c?_0xf04585(_0x112ed6[_0x33e4('0x19')],_0xb5e51c):void 0x0),this[_0x33e4('0x5')](_0x33e4('0x3'),!0x1),this['set'](_0x33e4('0x10'),!0x1),this[_0x33e4('0x5')](_0x33e4('0x1a'),!0x1),this['set'](_0x33e4('0x1f'),!0x1),this[_0x33e4('0x5')](_0x33e4('0x2b'),!0x1),this['revisionNameView']=new _0x4f44d5(_0x112ed6,_0x3b5d36),this[_0x33e4('0x17')][_0x33e4('0x1e')][_0x33e4('0x1c')]({'attributes':{'maxlength':_0x33e4('0x28')}}),this['revisionNameView'][_0x33e4('0x1e')][_0x33e4('0x2c')](_0x33e4('0x8'),_0x33e4('0x7'))['to'](this,_0x33e4('0x1b'),'_createdAtFormatted'),this['revisionNameView'][_0x33e4('0x2c')](_0x33e4('0x2b'))['to'](this,_0x33e4('0x3'),this,'isEnabled',(_0x5beb46,_0x24db60)=>_0x5beb46&&_0x24db60),this[_0x33e4('0x13')]=_0x472883&&_0x472883[_0x33e4('0x20')]?_0x5a346b(this,_0x472883):'',this[_0x33e4('0x13')]&&this[_0x33e4('0x13')][_0x33e4('0x2c')](_0x33e4('0x2b'))['to'](this),this[_0x33e4('0xd')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x33e4('0x4'),_0x703b60['if'](_0x33e4('0xb'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x33e4('0x21'),'attributes':{'class':['ck',_0x33e4('0x24'),_0x33e4('0x26'),_0x703b60['if'](_0x33e4('0x2b'),'ck-disabled',_0x57fc1c=>!_0x57fc1c),_0x703b60['if']('isSelected',_0x33e4('0x18')),_0x703b60['if']('isHighlighted',_0x33e4('0x29')),_0x703b60['if']('isActionsDropdownOpen',_0x33e4('0xe'))]},'children':[this['revisionNameView'],{'tag':_0x33e4('0x0'),'attributes':{'class':['ck',_0x33e4('0x9')]},'children':[{'text':_0x703b60['to'](_0x33e4('0x1'))}]},{'tag':'div','attributes':{'class':['ck',_0x33e4('0x2d')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x319f9c}]},this[_0x33e4('0x13')]],'on':{'click':_0x703b60['to'](_0x1f6748=>{_0x1f6748[_0x33e4('0x16')][_0x33e4('0x12')](_0x33e4('0x25'))||this['isReady']&&this[_0x33e4('0x2b')]&&this[_0x33e4('0x22')](_0x33e4('0x1d'),{'id':this['id']});})}}]});}[_0x33e4('0x27')](){super[_0x33e4('0x27')]();const _0x2adcb2=this['revisionNameView'][_0x33e4('0x1e')][_0x33e4('0xc')];this[_0x33e4('0x6')](_0x2adcb2,'change',()=>{this[_0x33e4('0x22')]('setName',{'id':this['id'],'name':_0x2adcb2['value']});});}[_0x33e4('0x1d')](){this['isSelected']=!0x0;}[_0x33e4('0xf')](){this[_0x33e4('0x3')]=!0x1;}['highlight'](){this[_0x33e4('0x10')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
23
+ const _0xae9e=['220','revisionActionsView','name','uiLanguage','setName','change','from','ck-revision-history-sidebar__revision_selected','revisionNameView','isHighlighted','div','element','isConfirm','bind','.ck-thread__remove-confirm','_revision','ck-revision-history-sidebar__revision','createdAt','creator','closest','isReady','fire','span','select','ck-revision-history-sidebar__revision-authors','set','map','render','length','placeholder','isSelected','deselect','srcElement','isEnabled','authors','highlight','unshift','isActionsDropdownOpen','unhighlight','_createdAtFormatted','value','fieldView','ck-disabled'];(function(_0x3f397a,_0xae9e7b){const _0x1da2af=function(_0x1ec10b){while(--_0x1ec10b){_0x3f397a['push'](_0x3f397a['shift']());}};_0x1da2af(++_0xae9e7b);}(_0xae9e,0x16d));const _0x1da2=function(_0x3f397a,_0xae9e7b){_0x3f397a=_0x3f397a-0x0;let _0x1da2af=_0xae9e[_0x3f397a];return _0x1da2af;};import{View as _0x11fc63,createLabeledInputText as _0x39a355}from'ckeditor5/src/ui';import{ConfirmMixin as _0x3ede6f}from'ckeditor5-collaboration/src/collaboration-core';import _0xba34fe from'./revisionnameview';import _0x29d3c4 from'./revisionauthorview';import{dateToPrettyFormat as _0x3d0b8d}from'./utils';import{createActionsDropdownView as _0x3c0198}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x3ede6f(_0x11fc63){constructor(_0x4d6654,_0x5f49eb,_0x427ff6){super(_0x4d6654);const _0x29dec6=this['bindTemplate'],_0x54b25c=function(_0x402c78,_0x18a0e9){const _0x3bb064=Array[_0x1da2('0x1c')](_0x18a0e9[_0x1da2('0xd')])['filter'](_0x2568d6=>_0x2568d6!=_0x18a0e9[_0x1da2('0x28')]);return _0x18a0e9[_0x1da2('0x28')]&&_0x3bb064[_0x1da2('0xf')](_0x18a0e9['creator']),_0x3bb064[_0x1da2('0x5')](_0x59d342=>new _0x29d3c4(_0x402c78,_0x59d342,_0x59d342==_0x18a0e9[_0x1da2('0x28')]));}(_0x4d6654,_0x5f49eb);this['id']=_0x5f49eb['id'],this[_0x1da2('0x25')]=_0x5f49eb,this['bind']('name',_0x1da2('0x27'))['to'](_0x5f49eb),this[_0x1da2('0x23')](_0x1da2('0x12'))['to'](this,_0x1da2('0x27'),_0x2cadea=>_0x2cadea?_0x3d0b8d(_0x4d6654[_0x1da2('0x19')],_0x2cadea):void 0x0),this[_0x1da2('0x4')](_0x1da2('0x9'),!0x1),this['set'](_0x1da2('0x1f'),!0x1),this[_0x1da2('0x4')](_0x1da2('0x10'),!0x1),this[_0x1da2('0x4')](_0x1da2('0x2a'),!0x1),this[_0x1da2('0x4')](_0x1da2('0xc'),!0x1),this['revisionNameView']=new _0xba34fe(_0x4d6654,_0x39a355),this[_0x1da2('0x1e')][_0x1da2('0x14')]['extendTemplate']({'attributes':{'maxlength':_0x1da2('0x16')}}),this[_0x1da2('0x1e')][_0x1da2('0x14')][_0x1da2('0x23')](_0x1da2('0x13'),_0x1da2('0x8'))['to'](this,_0x1da2('0x18'),_0x1da2('0x12')),this[_0x1da2('0x1e')][_0x1da2('0x23')]('isEnabled')['to'](this,'isSelected',this,_0x1da2('0xc'),(_0x3a6c1e,_0x5c4748)=>_0x3a6c1e&&_0x5c4748),this['revisionActionsView']=_0x427ff6&&_0x427ff6[_0x1da2('0x7')]?_0x3c0198(this,_0x427ff6):'',this[_0x1da2('0x17')]&&this[_0x1da2('0x17')][_0x1da2('0x23')](_0x1da2('0xc'))['to'](this),this['setTemplate']({'tag':_0x1da2('0x20'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x29dec6['if'](_0x1da2('0x22'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset',_0x1da2('0x26'),_0x29dec6['if'](_0x1da2('0xc'),_0x1da2('0x15'),_0x5afe8c=>!_0x5afe8c),_0x29dec6['if'](_0x1da2('0x9'),_0x1da2('0x1d')),_0x29dec6['if'](_0x1da2('0x1f'),'ck-revision-history-sidebar__revision_highlighted'),_0x29dec6['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x1da2('0x1e')],{'tag':_0x1da2('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x29dec6['to'](_0x1da2('0x12'))}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1da2('0x3')]},'children':_0x54b25c}]},this[_0x1da2('0x17')]],'on':{'click':_0x29dec6['to'](_0x2f1557=>{_0x2f1557[_0x1da2('0xb')][_0x1da2('0x29')](_0x1da2('0x24'))||this[_0x1da2('0x2a')]&&this[_0x1da2('0xc')]&&this[_0x1da2('0x0')](_0x1da2('0x2'),{'id':this['id']});})}}]});}[_0x1da2('0x6')](){super['render']();const _0x51fd00=this[_0x1da2('0x1e')][_0x1da2('0x14')][_0x1da2('0x21')];this['listenTo'](_0x51fd00,_0x1da2('0x1b'),()=>{this['fire'](_0x1da2('0x1a'),{'id':this['id'],'name':_0x51fd00['value']});});}[_0x1da2('0x2')](){this[_0x1da2('0x9')]=!0x0;}[_0x1da2('0xa')](){this['isSelected']=!0x1;}[_0x1da2('0xe')](){this[_0x1da2('0x1f')]=!0x0;}[_0x1da2('0x11')](){this[_0x1da2('0x1f')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58f9=['button','setTemplate','_isCollapsed','bindTemplate','set','span','ck-revision-history-sidebar__subrevision-collapser','false','click'];(function(_0x2a36c2,_0x58f9bf){const _0x2b0cb0=function(_0x19dade){while(--_0x19dade){_0x2a36c2['push'](_0x2a36c2['shift']());}};_0x2b0cb0(++_0x58f9bf);}(_0x58f9,0x115));const _0x2b0c=function(_0x2a36c2,_0x58f9bf){_0x2a36c2=_0x2a36c2-0x0;let _0x2b0cb0=_0x58f9[_0x2a36c2];return _0x2b0cb0;};import{View as _0xb73d6e}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xb73d6e{constructor(_0x2f8a55){super(_0x2f8a55);const _0x7f721b=this[_0x2b0c('0x5')];this[_0x2b0c('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2b0c('0x3')]({'tag':_0x2b0c('0x7'),'attributes':{'class':['ck',_0x2b0c('0x8'),_0x7f721b['if']('isVisible','ck-hidden',_0x4d3a09=>!_0x4d3a09),_0x7f721b['if'](_0x2b0c('0x4'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x2b0c('0x2'),'aria-pressed':_0x7f721b['to']('_isCollapsed',_0x5f45df=>_0x5f45df?_0x2b0c('0x0'):'true')},'children':[{'tag':_0x2b0c('0x7'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x7f721b['to'](_0x2b0c('0x1'))}});}['toggle'](){this[_0x2b0c('0x4')]=!this[_0x2b0c('0x4')];}}
23
+ const _0x327c=['setTemplate','true','span','false','toggle','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','bindTemplate','button'];(function(_0x3b447a,_0x327ca4){const _0x5d5b46=function(_0x1b1516){while(--_0x1b1516){_0x3b447a['push'](_0x3b447a['shift']());}};_0x5d5b46(++_0x327ca4);}(_0x327c,0x15d));const _0x5d5b=function(_0x3b447a,_0x327ca4){_0x3b447a=_0x3b447a-0x0;let _0x5d5b46=_0x327c[_0x3b447a];return _0x5d5b46;};import{View as _0x2fffba}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2fffba{constructor(_0x2176ca){super(_0x2176ca);const _0x2ff6ef=this[_0x5d5b('0x1')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5d5b('0x3')]({'tag':_0x5d5b('0x5'),'attributes':{'class':['ck',_0x5d5b('0x0'),_0x2ff6ef['if'](_0x5d5b('0x8'),'ck-hidden',_0xdcf7df=>!_0xdcf7df),_0x2ff6ef['if'](_0x5d5b('0xa'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x5d5b('0x2'),'aria-pressed':_0x2ff6ef['to'](_0x5d5b('0xa'),_0x886c49=>_0x886c49?_0x5d5b('0x6'):_0x5d5b('0x4'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x5d5b('0x9')]}}],'on':{'click':_0x2ff6ef['to']('click')}});}[_0x5d5b('0x7')](){this[_0x5d5b('0xa')]=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cdb=['ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','createdAt','bind','select','uiLanguage','ck-revision-history-sidebar__revision','deselect','div','ck-reset','bindTemplate','isSelected','set','setTemplate','creator','_parentRevisionId','_createdAtFormatted','span'];(function(_0x45c5a8,_0x5cdb31){const _0x3c41c9=function(_0x2e1f21){while(--_0x2e1f21){_0x45c5a8['push'](_0x45c5a8['shift']());}};_0x3c41c9(++_0x5cdb31);}(_0x5cdb,0x189));const _0x3c41=function(_0x45c5a8,_0x5cdb31){_0x45c5a8=_0x45c5a8-0x0;let _0x3c41c9=_0x5cdb[_0x45c5a8];return _0x3c41c9;};import{View as _0x1b57ab}from'ckeditor5/src/ui';import _0x442986 from'./revisionauthorview';import{dateToPrettyFormat as _0x330012}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1b57ab{constructor(_0x1cb308,_0x4ff691,_0x4c7d37){super(_0x1cb308);const _0x2fd563=this[_0x3c41('0xd')];this['id']=_0x4ff691['id'],this[_0x3c41('0x6')]('createdAt')['to'](_0x4ff691),this[_0x3c41('0xf')](_0x3c41('0xe'),!0x1),this['bind'](_0x3c41('0x1'))['to'](this,_0x3c41('0x5'),_0x555abd=>_0x555abd?_0x330012(_0x1cb308[_0x3c41('0x8')],_0x555abd):void 0x0),this[_0x3c41('0x0')]=_0x4c7d37,this[_0x3c41('0x10')]({'tag':_0x3c41('0xb'),'attributes':{'class':['ck',_0x3c41('0xc'),_0x3c41('0x9'),'ck-revision-history-sidebar__subrevision',_0x2fd563['if'](_0x3c41('0xe'),_0x3c41('0x3'))]},'children':[{'tag':_0x3c41('0x2'),'attributes':{'class':['ck',_0x3c41('0x4')]},'children':[{'text':_0x2fd563['to'](_0x3c41('0x1'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x442986(_0x1cb308,_0x4ff691[_0x3c41('0x11')],!0x0)]}],'on':{'click':_0x2fd563['to'](this[_0x3c41('0x7')][_0x3c41('0x6')](this))}});}[_0x3c41('0x7')](){this['isSelected']=!0x0,this['fire'](_0x3c41('0x7'),{'parentId':this['_parentRevisionId']});}[_0x3c41('0xa')](){this[_0x3c41('0xe')]=!0x1;}}
23
+ const _0x4103=['creator','deselect','createdAt','_createdAtFormatted','span','_parentRevisionId','select','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-authors','setTemplate','ck-reset','uiLanguage','fire','ck-revision-history-sidebar__subrevision','isSelected','bind'];(function(_0x5706fe,_0x4103b7){const _0x541aa1=function(_0x475667){while(--_0x475667){_0x5706fe['push'](_0x5706fe['shift']());}};_0x541aa1(++_0x4103b7);}(_0x4103,0x1d1));const _0x541a=function(_0x5706fe,_0x4103b7){_0x5706fe=_0x5706fe-0x0;let _0x541aa1=_0x4103[_0x5706fe];return _0x541aa1;};import{View as _0x1ef022}from'ckeditor5/src/ui';import _0x1a6c08 from'./revisionauthorview';import{dateToPrettyFormat as _0x172624}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1ef022{constructor(_0x3b9113,_0x539673,_0xc65894){super(_0x3b9113);const _0x34f358=this['bindTemplate'];this['id']=_0x539673['id'],this['bind'](_0x541a('0x1'))['to'](_0x539673),this['set'](_0x541a('0xd'),!0x1),this[_0x541a('0xe')](_0x541a('0x2'))['to'](this,_0x541a('0x1'),_0x199aa4=>_0x199aa4?_0x172624(_0x3b9113[_0x541a('0xa')],_0x199aa4):void 0x0),this[_0x541a('0x4')]=_0xc65894,this[_0x541a('0x8')]({'tag':'div','attributes':{'class':['ck',_0x541a('0x9'),'ck-revision-history-sidebar__revision',_0x541a('0xc'),_0x34f358['if'](_0x541a('0xd'),_0x541a('0x6'))]},'children':[{'tag':_0x541a('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x34f358['to'](_0x541a('0x2'))}]},{'tag':'ul','attributes':{'class':['ck',_0x541a('0x7')]},'children':[new _0x1a6c08(_0x3b9113,_0x539673[_0x541a('0xf')],!0x0)]}],'on':{'click':_0x34f358['to'](this['select'][_0x541a('0xe')](this))}});}[_0x541a('0x5')](){this[_0x541a('0xd')]=!0x0,this[_0x541a('0xb')](_0x541a('0x5'),{'parentId':this[_0x541a('0x4')]});}[_0x541a('0x0')](){this[_0x541a('0xd')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x33b7=['long','toLocaleDateString'];(function(_0x243735,_0x33b7b2){var _0x2e9407=function(_0x5674ec){while(--_0x5674ec){_0x243735['push'](_0x243735['shift']());}};_0x2e9407(++_0x33b7b2);}(_0x33b7,0xfc));var _0x2e94=function(_0x243735,_0x33b7b2){_0x243735=_0x243735-0x0;var _0x2e9407=_0x33b7[_0x243735];return _0x2e9407;};export function dateToPrettyFormat(_0x30274a,_0x30a6f6){return _0x30a6f6[_0x2e94('0x1')](_0x30274a,{'month':_0x2e94('0x0'),'day':'numeric'})+',\x20'+_0x30a6f6['toLocaleTimeString'](_0x30274a,{'hour':'numeric','minute':'numeric'});}
23
+ var _0x1522=['long','numeric','toLocaleTimeString'];(function(_0x187739,_0x15226b){var _0x2cae0f=function(_0x21f11d){while(--_0x21f11d){_0x187739['push'](_0x187739['shift']());}};_0x2cae0f(++_0x15226b);}(_0x1522,0xca));var _0x2cae=function(_0x187739,_0x15226b){_0x187739=_0x187739-0x0;var _0x2cae0f=_0x1522[_0x187739];return _0x2cae0f;};export function dateToPrettyFormat(_0x315598,_0x5cc82d){return _0x5cc82d['toLocaleDateString'](_0x315598,{'month':_0x2cae('0x2'),'day':_0x2cae('0x0')})+',\x20'+_0x5cc82d[_0x2cae('0x1')](_0x315598,{'hour':_0x2cae('0x0'),'minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a9b=['_focusables','focusTracker','arrowleft','stopPropagation','revisionName','_createRevisionNameInput','revisionNameInputView','delegate','forEach','listenTo','reset','ck-revision-history-save-revision-form','arrowup','focus','fieldView','keystrokes','arrowdown','ck-button-save','render','setTemplate','Cancel','_focusCycler','Save','label','_createButton','220','locale','element','trim','saveButtonView','cancelButtonView','Name\x20of\x20the\x20revision\x20(optional)','form','execute','add','set','cancel','extendTemplate','submit','value','revisionNameInputValue','type'];(function(_0x53c9ec,_0x3a9b6c){const _0x5c7851=function(_0x3793fa){while(--_0x3793fa){_0x53c9ec['push'](_0x53c9ec['shift']());}};_0x5c7851(++_0x3a9b6c);}(_0x3a9b,0x1c4));const _0x5c78=function(_0x53c9ec,_0x3a9b6c){_0x53c9ec=_0x53c9ec-0x0;let _0x5c7851=_0x3a9b[_0x53c9ec];return _0x5c7851;};import{icons as _0x9ab2ed}from'ckeditor5/src/core';import{ButtonView as _0x11d2ec,FocusCycler as _0xbc7393,LabeledFieldView as _0x29d600,View as _0x424c28,ViewCollection as _0x4400af,createLabeledInputText as _0x23f882,injectCssTransitionDisabler as _0x2359ff,submitHandler as _0x5507de}from'ckeditor5/src/ui';import{FocusTracker as _0x1089a8,KeystrokeHandler as _0x37db57}from'ckeditor5/src/utils';import{getTranslation as _0x173858}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x424c28{constructor(_0x44178a){super(_0x44178a),this['focusTracker']=new _0x1089a8(),this[_0x5c78('0x19')]=new _0x37db57(),this[_0x5c78('0x3')](_0x5c78('0x8'),''),this['revisionNameInputView']=this[_0x5c78('0xf')](),this[_0x5c78('0x27')]=this['_createButton'](_0x173858(_0x44178a,_0x5c78('0x20')),_0x9ab2ed['check'],_0x5c78('0x1b')),this[_0x5c78('0x27')][_0x5c78('0x9')]=_0x5c78('0x6'),this['cancelButtonView']=this[_0x5c78('0x22')](_0x173858(_0x44178a,_0x5c78('0x1e')),_0x9ab2ed[_0x5c78('0x4')],'ck-button-cancel',_0x5c78('0x4')),this[_0x5c78('0xa')]=new _0x4400af(),this[_0x5c78('0x1f')]=new _0xbc7393({'focusables':this[_0x5c78('0xa')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x5c78('0x19')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this[_0x5c78('0x1d')]({'tag':_0x5c78('0x0'),'attributes':{'class':['ck',_0x5c78('0x15'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x5c78('0x10')],this[_0x5c78('0x27')],this[_0x5c78('0x28')]]}),_0x2359ff(this);}[_0x5c78('0x1c')](){super['render'](),_0x5507de({'view':this}),([this[_0x5c78('0x10')],this[_0x5c78('0x27')],this[_0x5c78('0x28')]][_0x5c78('0x12')](_0x5b0a23=>{this[_0x5c78('0xa')][_0x5c78('0x2')](_0x5b0a23),this[_0x5c78('0xb')][_0x5c78('0x2')](_0x5b0a23['element']);}),this['keystrokes'][_0x5c78('0x13')](this['element']));const _0x5772a0=_0x3fdad3=>_0x3fdad3[_0x5c78('0xd')]();this[_0x5c78('0x19')]['set']('arrowright',_0x5772a0),this[_0x5c78('0x19')]['set'](_0x5c78('0xc'),_0x5772a0),this[_0x5c78('0x19')]['set'](_0x5c78('0x16'),_0x5772a0),this[_0x5c78('0x19')][_0x5c78('0x3')](_0x5c78('0x1a'),_0x5772a0);}[_0x5c78('0x17')](){this[_0x5c78('0x1f')]['focusFirst']();}get[_0x5c78('0xe')](){return this['revisionNameInputView'][_0x5c78('0x18')][_0x5c78('0x25')][_0x5c78('0x7')]['trim']();}set[_0x5c78('0xe')](_0x27585a){this[_0x5c78('0x10')][_0x5c78('0x18')][_0x5c78('0x25')]['value']=_0x27585a['trim']();}[_0x5c78('0x14')](){this[_0x5c78('0x10')][_0x5c78('0x18')][_0x5c78('0x25')]['value']='';}[_0x5c78('0xf')](){const _0x5e615f=new _0x29d600(this['locale'],_0x23f882),_0x179b95=_0x5e615f[_0x5c78('0x18')];return _0x179b95[_0x5c78('0x5')]({'attributes':{'maxlength':_0x5c78('0x23')}}),_0x5e615f[_0x5c78('0x21')]=_0x173858(this[_0x5c78('0x24')],_0x5c78('0x29')),_0x179b95['on']('input',()=>{this[_0x5c78('0x8')]=_0x179b95[_0x5c78('0x25')][_0x5c78('0x7')][_0x5c78('0x26')]();}),_0x5e615f;}[_0x5c78('0x22')](_0x346ecf,_0x5f0be0,_0x13e1d8,_0x6c652e){const _0x1a4139=new _0x11d2ec(this['locale']);return _0x1a4139[_0x5c78('0x3')]({'label':_0x346ecf,'icon':_0x5f0be0,'tooltip':!0x0}),_0x1a4139[_0x5c78('0x5')]({'attributes':{'class':_0x13e1d8}}),_0x6c652e&&_0x1a4139[_0x5c78('0x11')](_0x5c78('0x1'))['to'](this,_0x6c652e),_0x1a4139;}}
23
+ const _0x1b62=['listenTo','fieldView','submit','revisionName','keystrokes','Name\x20of\x20the\x20revision\x20(optional)','locale','reset','trim','check','arrowleft','Save','saveButtonView','render','focusTracker','label','delegate','_focusables','stopPropagation','set','focusFirst','revisionNameInputValue','ck-responsive-form','cancelButtonView','_createRevisionNameInput','arrowup','value','element','ck-revision-history-save-revision-form','arrowright','shift\x20+\x20tab','form','_focusCycler','_createButton','ck-button-cancel','focus','tab','type','add','cancel','revisionNameInputView','execute','input'];(function(_0x51396e,_0x1b6239){const _0x233bb9=function(_0x2f27f0){while(--_0x2f27f0){_0x51396e['push'](_0x51396e['shift']());}};_0x233bb9(++_0x1b6239);}(_0x1b62,0x1b9));const _0x233b=function(_0x51396e,_0x1b6239){_0x51396e=_0x51396e-0x0;let _0x233bb9=_0x1b62[_0x51396e];return _0x233bb9;};import{icons as _0x4962c7}from'ckeditor5/src/core';import{ButtonView as _0x55e9a9,FocusCycler as _0x5e3d7,LabeledFieldView as _0x145927,View as _0x1c89e3,ViewCollection as _0x1decc8,createLabeledInputText as _0x490fb9,injectCssTransitionDisabler as _0x5abcdb,submitHandler as _0x5992d2}from'ckeditor5/src/ui';import{FocusTracker as _0x2da21e,KeystrokeHandler as _0x2d9f64}from'ckeditor5/src/utils';import{getTranslation as _0x4efd8f}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1c89e3{constructor(_0x5dc6f6){super(_0x5dc6f6),this[_0x233b('0x3')]=new _0x2da21e(),this['keystrokes']=new _0x2d9f64(),this['set']('revisionNameInputValue',''),this[_0x233b('0x1d')]=this[_0x233b('0xd')](),this['saveButtonView']=this[_0x233b('0x16')](_0x4efd8f(_0x5dc6f6,_0x233b('0x0')),_0x4962c7[_0x233b('0x29')],'ck-button-save'),this[_0x233b('0x1')][_0x233b('0x1a')]=_0x233b('0x22'),this['cancelButtonView']=this[_0x233b('0x16')](_0x4efd8f(_0x5dc6f6,'Cancel'),_0x4962c7[_0x233b('0x1c')],_0x233b('0x17'),_0x233b('0x1c')),this[_0x233b('0x6')]=new _0x1decc8(),this[_0x233b('0x15')]=new _0x5e3d7({'focusables':this[_0x233b('0x6')],'focusTracker':this[_0x233b('0x3')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x233b('0x13'),'focusNext':_0x233b('0x19')}}),this['setTemplate']({'tag':_0x233b('0x14'),'attributes':{'class':['ck',_0x233b('0x11'),_0x233b('0xb')],'tabindex':'-1'},'children':[this[_0x233b('0x1d')],this[_0x233b('0x1')],this['cancelButtonView']]}),_0x5abcdb(this);}['render'](){super[_0x233b('0x2')](),_0x5992d2({'view':this}),([this[_0x233b('0x1d')],this['saveButtonView'],this[_0x233b('0xc')]]['forEach'](_0x452941=>{this[_0x233b('0x6')][_0x233b('0x1b')](_0x452941),this[_0x233b('0x3')][_0x233b('0x1b')](_0x452941[_0x233b('0x10')]);}),this['keystrokes'][_0x233b('0x20')](this['element']));const _0x2e9762=_0x492246=>_0x492246[_0x233b('0x7')]();this[_0x233b('0x24')][_0x233b('0x8')](_0x233b('0x12'),_0x2e9762),this['keystrokes'][_0x233b('0x8')](_0x233b('0x2a'),_0x2e9762),this[_0x233b('0x24')][_0x233b('0x8')](_0x233b('0xe'),_0x2e9762),this[_0x233b('0x24')][_0x233b('0x8')]('arrowdown',_0x2e9762);}[_0x233b('0x18')](){this[_0x233b('0x15')][_0x233b('0x9')]();}get[_0x233b('0x23')](){return this[_0x233b('0x1d')][_0x233b('0x21')][_0x233b('0x10')][_0x233b('0xf')][_0x233b('0x28')]();}set[_0x233b('0x23')](_0xdd7c86){this['revisionNameInputView'][_0x233b('0x21')]['element'][_0x233b('0xf')]=_0xdd7c86[_0x233b('0x28')]();}[_0x233b('0x27')](){this[_0x233b('0x1d')]['fieldView'][_0x233b('0x10')][_0x233b('0xf')]='';}['_createRevisionNameInput'](){const _0x3f0539=new _0x145927(this[_0x233b('0x26')],_0x490fb9),_0x52336c=_0x3f0539[_0x233b('0x21')];return _0x52336c['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x3f0539[_0x233b('0x4')]=_0x4efd8f(this[_0x233b('0x26')],_0x233b('0x25')),_0x52336c['on'](_0x233b('0x1f'),()=>{this[_0x233b('0xa')]=_0x52336c['element'][_0x233b('0xf')]['trim']();}),_0x3f0539;}[_0x233b('0x16')](_0x2b10d3,_0x1d75d1,_0x191653,_0x266ed2){const _0x5a9ee5=new _0x55e9a9(this[_0x233b('0x26')]);return _0x5a9ee5[_0x233b('0x8')]({'label':_0x2b10d3,'icon':_0x1d75d1,'tooltip':!0x0}),_0x5a9ee5['extendTemplate']({'attributes':{'class':_0x191653}}),_0x266ed2&&_0x5a9ee5[_0x233b('0x5')](_0x233b('0x1e'))['to'](this,_0x266ed2),_0x5a9ee5;}}