@ckeditor/ckeditor5-revision-history 35.3.1 → 35.3.2

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 (87) hide show
  1. package/build/revision-history.js +1 -2
  2. package/package.json +7 -7
  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
  32. package/build/translations/af.js +0 -1
  33. package/build/translations/ar.js +0 -1
  34. package/build/translations/az.js +0 -1
  35. package/build/translations/bg.js +0 -1
  36. package/build/translations/bn.js +0 -1
  37. package/build/translations/bs.js +0 -1
  38. package/build/translations/ca.js +0 -1
  39. package/build/translations/cs.js +0 -1
  40. package/build/translations/da.js +0 -1
  41. package/build/translations/de-ch.js +0 -1
  42. package/build/translations/de.js +0 -1
  43. package/build/translations/el.js +0 -1
  44. package/build/translations/en-au.js +0 -1
  45. package/build/translations/en-gb.js +0 -1
  46. package/build/translations/es-co.js +0 -1
  47. package/build/translations/es.js +0 -1
  48. package/build/translations/et.js +0 -1
  49. package/build/translations/fa.js +0 -1
  50. package/build/translations/fi.js +0 -1
  51. package/build/translations/fr.js +0 -1
  52. package/build/translations/gl.js +0 -1
  53. package/build/translations/he.js +0 -1
  54. package/build/translations/hi.js +0 -1
  55. package/build/translations/hr.js +0 -1
  56. package/build/translations/hu.js +0 -1
  57. package/build/translations/id.js +0 -1
  58. package/build/translations/it.js +0 -1
  59. package/build/translations/ja.js +0 -1
  60. package/build/translations/jv.js +0 -1
  61. package/build/translations/ko.js +0 -1
  62. package/build/translations/ku.js +0 -1
  63. package/build/translations/lt.js +0 -1
  64. package/build/translations/lv.js +0 -1
  65. package/build/translations/ms.js +0 -1
  66. package/build/translations/ne.js +0 -1
  67. package/build/translations/nl.js +0 -1
  68. package/build/translations/no.js +0 -1
  69. package/build/translations/pl.js +0 -1
  70. package/build/translations/pt-br.js +0 -1
  71. package/build/translations/pt.js +0 -1
  72. package/build/translations/ro.js +0 -1
  73. package/build/translations/ru.js +0 -1
  74. package/build/translations/sk.js +0 -1
  75. package/build/translations/sr-latn.js +0 -1
  76. package/build/translations/sr.js +0 -1
  77. package/build/translations/sv.js +0 -1
  78. package/build/translations/th.js +0 -1
  79. package/build/translations/tk.js +0 -1
  80. package/build/translations/tr.js +0 -1
  81. package/build/translations/tt.js +0 -1
  82. package/build/translations/ug.js +0 -1
  83. package/build/translations/uk.js +0 -1
  84. package/build/translations/ur.js +0 -1
  85. package/build/translations/vi.js +0 -1
  86. package/build/translations/zh-cn.js +0 -1
  87. package/build/translations/zh.js +0 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2610=['revisionHistoryLabel','change:activeChange','suggestion','currentChangeNumber','editingDowncast','isAtEnd','getRevision','revision','getRoot','markersStart','forward','vid_end','end','isContent','change:isReadOnly','removeMarker:revision','toData','element','change:isEnabled','plugins','_setDistance','deletion','isRemoved','ck-suggestion-marker--active','markers','deletions','_changeView','getItems','_setConversion','<p></p>','data-revision-','push','distance','editor','index','getAttributes','markerToHighlight','createAttributeElement','pairId','processor','addRevisionData','nextSibling','parse','getWalker','execute','refresh','from','adapter','elementToAttribute','get','_setData','elementStart','_revisions','hasClass','forEach','numberOfChanges','nodeAfter','backward','activeChange','ck-suggestion-preview-marker','addClass','toViewElement','low','consume','merge','pluginName','toViewRange','isEqual','enqueueChange','markerToData','newRevisionId','target','getRevisionData','wrap','side','getIndex','all','mouseover','view','ck-editor__editable__overlay','includes','mousedown','object','suggestion:','_getViewForChange','addMarker:revision','_removeRevisionMarkers','test','remove','-new','isSuggestion','ck-suggestion-preview-marker-','item','createRevision','showStack','_makeModelFromViewString','isIncorrect','length','_cleanUp','isLimit','roots','loadRevisionData','abs','showNextChange','_markSuggestions','downcastDispatcher','addMarker:revision-suggestion:insertion','next','vid_start','_balloon','_joinTapes','stopListening','_update','change:numberOfChanges','_getRevisionsRange','add','data','enableReadOnlyMode','insertion','endIndex','softBreak','start','repository','type','createUIElement','set','diff','string','revision-viewer','revision:','POSITIVE_INFINITY','createRangeIn','viewItem','revisionHistory','shift','conversion','data-change-id','isRemoveSuggestion','getRootNames','consumable','markerName','isAddSuggestion','markersEnd','_initInteractions','done','_makeTape','getAttribute','listenTo','span','has','maxOffset','activeView','unshift','pop','_removeMissingPairs','diffData','_makeModelFromTape','attributes','previousPosition','code','editing','dataToMarker','filter','split','_processTape','destroy','high','authors','comment','RevisionViewer','_appendChild','_markMismatchedRemovedTags','revision-end','parent','createPositionFromPath','changes','toModel','observeMarkers','_data','addHighlight','commands','checkAttribute','readOnlyMode','elementEnd','removeMarker:revision-suggestion','isAfter','change:activeView','toViewPosition','isAdded','startsWith','stop','modelRange','level','markerRange','_getChangeFromId','dataDowncast','model','range','mapper','revision-suggestion','for','getCustomProperty','nextPosition','oldRevisionId','map','document','_cleanMarkers','delete','removeClass','uiElement','_removeUnsupportedChanges','useFillerType','collaboration.channelId','clearForceDisabled','then','highest','vid','_getViewObj','_getDiff','_changeIdToChange','compare','concat','isCollapsed','insert','ck-suggestion-marker-','config','restoreRevisionCallback','isReady','isBlock','userId','WidgetToolbarRepository','isNavigationMode','clear','change:isReady','hasAttribute','init','createRange','isEnabled','resolve','setAttribute','_step','_refreshStartEndIndex','children','_threeWayMerge','_target','splice','keys','showPreviousChange','_markMarkers','upcast','writer','reconvertMarker','bind','RevisionsRepository','change','schema','startIndex','text','ck-suggestion-marker-merge','revision-suggestion:','_markInsertions','insertions','_findChangeIdFromDomTarget','name'];(function(_0x31d8e1,_0x26107a){const _0x524bab=function(_0x5a8a2e){while(--_0x5a8a2e){_0x31d8e1['push'](_0x31d8e1['shift']());}};_0x524bab(++_0x26107a);}(_0x2610,0x135));const _0x524b=function(_0x31d8e1,_0x26107a){_0x31d8e1=_0x31d8e1-0x0;let _0x524bab=_0x2610[_0x31d8e1];return _0x524bab;};import{Plugin as _0x229f8,Command as _0x4709cd}from'ckeditor5/src/core';import{ObservableMixin as _0x41e455,mix as _0xdcc6b,scrollViewportToShowTarget as _0xce6de3}from'ckeditor5/src/utils';import{ContextualBalloon as _0x267e0f}from'ckeditor5/src/ui';import{DocumentFragment as _0x39d827,Element as _0xa0cd73,Text as _0x5ee507,ViewDocumentFragment as _0x1d31c1,ViewText as _0xf1449d,ViewElement as _0x4320d4,ViewContainerElement as _0x4f6aaa,ViewAttributeElement as _0x51f0b4,ViewEmptyElement as _0x447f01,ViewRawElement as _0x365df8,ViewUIElement as _0x2ebab8}from'ckeditor5/src/engine';import{Users as _0x22e1e5,getMarkerDomElement as _0x357e15}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e30ed from'./ui/revisionviewer/changedetailsview';import _0x51bcfc from'./revisionsrepository';import _0x17521b from'./changeitem';import _0x570a28 from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x4f6aaa,'a':_0x51f0b4,'e':_0x447f01,'r':_0x365df8,'u':_0x2ebab8};export default class d extends _0x229f8{static get[_0x524b('0x14')](){return _0x524b('0x7c');}static get['requires'](){return[_0x22e1e5,_0x267e0f,_0x51bcfc];}constructor(..._0x3852ca){super(..._0x3852ca),this[_0x524b('0x4d')]=this[_0x524b('0xfc')]['plugins'][_0x524b('0x4')](_0x524b('0xd0')),this['set'](_0x524b('0xd'),null),this[_0x524b('0x50')](_0x524b('0x6a'),null),this[_0x524b('0x50')](_0x524b('0x51'),null),this[_0x524b('0x50')]('isReady',!0x1),this[_0x524b('0x50')]('isEnabled',!0x0),this['on'](_0x524b('0xed'),(_0x5acd8b,_0x32bcf9,_0x5e22ac)=>{this['activeChange']=null,this['activeView']=null,this['editor'][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xd1')](_0x33db62=>{for(const _0x5c0817 of this['editor']['editing'][_0x524b('0x21')][_0x524b('0xa0')][_0x524b('0x37')])_0x5e22ac?_0x33db62[_0x524b('0xa3')](_0x524b('0x22'),_0x5c0817):_0x33db62[_0x524b('0xf')]('ck-editor__editable__overlay',_0x5c0817);});}),this[_0x524b('0xcf')](_0x524b('0xba'))['to'](this,_0x524b('0xd'),_0x52ea10=>null!==_0x52ea10),this[_0x524b('0xcf')](_0x524b('0xde'))['to'](this,_0x524b('0xb6'),this,_0x524b('0x51'),this,_0x524b('0xd'),(_0x4f170a,_0x7cc9c0,_0x47a10f)=>_0x4f170a&&_0x47a10f?_0x7cc9c0[_0x524b('0x82')][_0x524b('0x1e')](_0x47a10f):0x0),this['bind'](_0x524b('0xa'))['to'](this,'isReady',this,_0x524b('0x51'),(_0x46934f,_0x3781b7)=>_0x46934f?_0x3781b7[_0x524b('0x82')][_0x524b('0x34')]:0x0),this[_0x524b('0xf5')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this[_0x524b('0xfc')][_0x524b('0xee')][_0x524b('0x4')](_0x267e0f);}[_0x524b('0xbe')](){const _0x2e5042=this[_0x524b('0xfc')],_0x18f3b6=new et(_0x2e5042,{'direction':_0x524b('0xc')}),_0x761370=new et(_0x2e5042,{'direction':_0x524b('0xe5')});_0x2e5042['commands'][_0x524b('0x46')](_0x524b('0xca'),_0x18f3b6),_0x2e5042[_0x524b('0x87')][_0x524b('0x46')](_0x524b('0x3a'),_0x761370),_0x2e5042[_0x524b('0x87')]['add']('restoreRevision',new tt(_0x2e5042)),this['on'](_0x524b('0x44'),()=>{_0x18f3b6['refresh'](),_0x761370[_0x524b('0x0')]();}),this[_0x524b('0xf7')](),this[_0x524b('0x62')](),_0x2e5042[_0x524b('0x48')](_0x524b('0x53')),_0x2e5042[_0x524b('0xee')][_0x524b('0x68')]('WidgetToolbarRepository')&&_0x2e5042[_0x524b('0xee')]['get'](_0x524b('0xb9'))['forceDisabled'](_0x524b('0x53'));}async[_0x524b('0x1b')](_0x4eaedb){await this[_0x524b('0x38')](_0x4eaedb);const _0x11156d={};for(const _0x2056ef in _0x4eaedb['diffData']){const _0x192121=this[_0x524b('0x29')](JSON[_0x524b('0x105')](_0x4eaedb[_0x524b('0x6e')][_0x2056ef][_0x524b('0xd8')])),_0x37359a=this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')],_0x1c161b=new _0x1d31c1(_0x37359a,_0x192121[_0x524b('0x9f')](_0x461435=>this[_0x524b('0xac')](_0x461435)));this[_0x524b('0xfc')][_0x524b('0x47')]['processor'][_0x524b('0xa6')]('marked'),_0x11156d[_0x2056ef]=this[_0x524b('0xfc')][_0x524b('0x47')][_0x524b('0x102')][_0x524b('0xeb')](_0x1c161b),this[_0x524b('0xfc')]['data'][_0x524b('0x102')][_0x524b('0xa6')]('default');}return _0x11156d;}[_0x524b('0x29')](_0x364eea){return(_0x364eea=_0x364eea[_0x524b('0x75')](_0x4fbfe2=>!_0x4fbfe2[_0x524b('0xda')]||'revision-start'!==_0x4fbfe2['name']&&_0x524b('0x7f')!==_0x4fbfe2[_0x524b('0xda')]))['forEach'](_0x59bdc2=>{_0x524b('0x52')!=typeof _0x59bdc2&&(_0x59bdc2['children']=this[_0x524b('0x29')](_0x59bdc2[_0x524b('0xc5')]),_0x59bdc2['attributes']=_0x59bdc2[_0x524b('0x70')][_0x524b('0x75')](_0x220e12=>!_0x220e12[0x0][_0x524b('0x90')](_0x524b('0xf9'))));}),_0x364eea;}[_0x524b('0xaf')](_0x478064,_0x42909a,_0x518e68=!0x1){if(!this[_0x524b('0xc0')])return;const _0x43c67b=this[_0x524b('0x51')],_0x36ed41=this[_0x524b('0x4d')],_0x7bf641=_0x524b('0x52')==typeof _0x478064?_0x36ed41[_0x524b('0xe1')](_0x478064):_0x478064,_0x56ffea=_0x524b('0x52')==typeof _0x42909a?_0x36ed41['getRevision'](_0x42909a):_0x42909a,_0x29df07=_0x7bf641['id'],_0x1fc1ce=_0x56ffea?_0x56ffea['id']:null;if(!_0x518e68&&this[_0x524b('0x51')]&&this['diff'][_0x524b('0x19')]===_0x29df07&&this[_0x524b('0x51')][_0x524b('0x9e')]===_0x1fc1ce)return Promise['resolve']();this[_0x524b('0xb6')]=!0x1,this[_0x524b('0x6a')]=null,this[_0x524b('0xd')]=null,this[_0x524b('0x51')]=new _0x570a28(_0x29df07,_0x1fc1ce);const _0x5a3e04=this[_0x524b('0x45')](_0x7bf641,_0x56ffea,!0x0)['map'](_0x123242=>this[_0x524b('0x38')](_0x123242));return _0x5a3e04['push'](new Promise(_0xa1ad79=>{setTimeout(_0xa1ad79,0x14);})),Promise[_0x524b('0x1f')](_0x5a3e04)[_0x524b('0xa9')](()=>{if(!this[_0x524b('0xc0')])return;this[_0x524b('0x35')]();const _0x215c46=this[_0x524b('0xad')](_0x29df07,_0x1fc1ce);this[_0x524b('0x51')][_0x524b('0x5')](_0x215c46);for(const _0x639f3e of this[_0x524b('0x51')][_0x524b('0x82')])this[_0x524b('0xae')][_0x524b('0x50')](_0x639f3e['id'],_0x639f3e);this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0x17')]({'isUndoable':!0x1},_0x449bb6=>{for(const _0x2f6fc2 of Object[_0x524b('0xc9')](_0x215c46['model'])){const _0x47fe27=this[_0x524b('0xfc')][_0x524b('0x97')]['document'][_0x524b('0xe3')](_0x2f6fc2);_0x449bb6[_0x524b('0x2b')](_0x449bb6['createRangeIn'](_0x47fe27)),_0x449bb6[_0x524b('0xb2')](_0x215c46[_0x524b('0x97')][_0x2f6fc2],_0x47fe27,0x0);}}),this[_0x524b('0xb6')]=!0x0;})['catch'](_0x150e60=>{console['error'](_0x150e60),this['_cleanUp'](),_0x43c67b?this[_0x524b('0x51')]=_0x43c67b:this[_0x524b('0xfc')]['setData'](_0x524b('0xf8')),this[_0x524b('0xb6')]=!0x0;});}['destroy'](){this['activeView']=null,this[_0x524b('0xf5')]&&this[_0x524b('0xf5')][_0x524b('0x78')]();}[_0x524b('0x103')](_0x191774,_0x48a0d1){const _0xd9608a=this[_0x524b('0x4d')][_0x524b('0x30')](_0x191774);return _0xd9608a['on'](_0x524b('0x43'),(_0x53f36f,_0x52b6f0,_0x5155f4)=>_0x48a0d1(_0x52b6f0,_0x5155f4,_0xd9608a)),this[_0x524b('0x4d')]['addRevision'](_0xd9608a),_0xd9608a;}['loadRevisionData'](_0x499989){if(!_0x499989||_0x499989[_0x524b('0x6e')])return Promise[_0x524b('0xc1')]();{const _0x279321=this[_0x524b('0xfc')][_0x524b('0xb4')][_0x524b('0x4')](_0x524b('0xa7'));return this[_0x524b('0x2')][_0x524b('0xe1')]({'channelId':_0x279321,'revisionId':_0x499989['id']})[_0x524b('0xa9')](_0x215d74=>{_0x499989[_0x524b('0x43')]({'diffData':_0x215d74[_0x524b('0x6e')]},!0x0);});}}[_0x524b('0x35')](){this[_0x524b('0xd')]=null,this[_0x524b('0xa1')](),this[_0x524b('0xf5')]&&this[_0x524b('0xf5')]['destroy'](),this['_changeView']=null,this[_0x524b('0xae')][_0x524b('0xbb')]();}[_0x524b('0x64')](_0x201dbb){const _0x2f9492=Array[_0x524b('0x1')](_0x201dbb[_0x524b('0xf3')])[_0x524b('0x75')](([_0x35513a,_0x2364dd])=>_0x35513a['startsWith'](_0x524b('0x54'))&&!_0x2364dd[_0x524b('0xb1')]),_0x33c4d7=Array[_0x524b('0x1')](this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0x56')](_0x201dbb)[_0x524b('0x106')]({'singleCharacters':!0x0}));if(0x0!=_0x2f9492[_0x524b('0x34')])for(const _0x3e48df of _0x33c4d7){const [_0x257b91,_0x1a2f78]=_0x2f9492[0x0],[,_0x155931,_0x31a8df]=_0x257b91[_0x524b('0x76')](':');if(_0x1a2f78[_0x524b('0xe7')][_0x524b('0x16')](_0x3e48df[_0x524b('0x9d')])&&_0x2f9492[_0x524b('0x59')](),(_0x3e48df[_0x524b('0x71')][_0x524b('0x16')](_0x1a2f78[_0x524b('0x4c')])||_0x3e48df[_0x524b('0x71')][_0x524b('0x8c')](_0x1a2f78[_0x524b('0x4c')]))&&(_0x524b('0x49')==_0x155931?_0x3e48df['isAdded']={'userId':_0x31a8df}:_0x524b('0xf0')==_0x155931&&(_0x3e48df[_0x524b('0xf1')]={'userId':_0x31a8df})),0x0==_0x2f9492[_0x524b('0x34')])break;}return _0x33c4d7;}[_0x524b('0xc4')](_0x276d7c){const _0x47f245=new Map();for(let _0x474cea=0x0;_0x474cea<_0x276d7c[_0x524b('0x34')];_0x474cea++)'text'===_0x276d7c[_0x474cea][_0x524b('0x4e')]?(_0x276d7c[_0x474cea]['item'][_0x524b('0xd3')]=_0x474cea,_0x276d7c[_0x474cea][_0x524b('0x2f')][_0x524b('0x4a')]=_0x474cea):(_0x524b('0x6')===_0x276d7c[_0x474cea]['type']?_0x276d7c[_0x474cea][_0x524b('0x2f')][_0x524b('0xd3')]=_0x474cea:_0x524b('0x8a')===_0x276d7c[_0x474cea][_0x524b('0x4e')]&&(_0x276d7c[_0x474cea]['item'][_0x524b('0x4a')]=_0x474cea),_0x47f245[_0x524b('0x50')](_0x276d7c[_0x474cea]['id'],_0x474cea));for(const _0xd4ea51 of _0x47f245['values']())_0x524b('0x6')===_0x276d7c[_0xd4ea51][_0x524b('0x4e')]?_0x276d7c[_0xd4ea51]['item'][_0x524b('0x4a')]=_0x47f245[_0x524b('0x4')](_0x276d7c[_0xd4ea51][_0x524b('0x101')]):_0x524b('0x8a')===_0x276d7c[_0xd4ea51][_0x524b('0x4e')]&&(_0x276d7c[_0xd4ea51]['item'][_0x524b('0xd3')]=_0x47f245[_0x524b('0x4')](_0x276d7c[_0xd4ea51][_0x524b('0x101')]));}[_0x524b('0x77')](_0x42a7ab){for(let _0x158187=0x0;_0x158187<_0x42a7ab[_0x524b('0x34')];_0x158187++){if(_0x524b('0x6')===_0x42a7ab[_0x158187][_0x524b('0x4e')])_0x42a7ab[_0x158187]['item'][_0x524b('0xd3')]=_0x158187;else{if(_0x524b('0x8a')===_0x42a7ab[_0x158187][_0x524b('0x4e')]){_0x42a7ab[_0x158187][_0x524b('0x2f')][_0x524b('0x4a')]=_0x158187;const _0xa12523=_0x42a7ab[_0x158187][_0x524b('0x2f')]['startIndex'];_0x42a7ab[_0xa12523][_0x524b('0x101')]=_0x42a7ab[_0x158187]['id'],_0x42a7ab[_0x158187][_0x524b('0x101')]=_0x42a7ab[_0xa12523]['id'];}else _0x42a7ab[_0x158187][_0x524b('0x2f')][_0x524b('0xd3')]=_0x158187,_0x42a7ab[_0x158187][_0x524b('0x2f')][_0x524b('0x4a')]=_0x158187,_0x42a7ab[_0x158187][_0x524b('0x101')]=null;}_0x42a7ab[_0x158187][_0x524b('0xe4')]||(_0x42a7ab[_0x158187]['markersStart']=[],_0x42a7ab[_0x158187][_0x524b('0x61')]=[]);}}[_0x524b('0xd7')](_0x510ff8,_0x32238b){const _0x4f8851=_0x510ff8[_0x524b('0x75')](_0x4663a5=>!_0x4663a5[_0x524b('0x8f')]);for(let _0x3eb299=0x0;_0x3eb299<_0x32238b[_0x524b('0x34')];_0x3eb299++)_0x32238b[_0x3eb299][_0x524b('0x8f')]&&(_0x4f8851[_0x3eb299][_0x524b('0x8f')]=_0x32238b[_0x3eb299][_0x524b('0x8f')]);}[_0x524b('0x32')](_0x4804ea){const _0x2d2914=JSON['parse'](_0x4804ea),_0x588925=this['editor'][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')],_0x3a5d40=new _0x1d31c1(_0x588925,_0x2d2914['map'](_0x2b8f08=>this['_getViewObj'](_0x2b8f08)));return this[_0x524b('0xfc')][_0x524b('0x47')][_0x524b('0x83')](_0x3a5d40);}['_getViewObj'](_0x53b16e){const _0x439486=this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')];if(_0x524b('0x52')==typeof _0x53b16e)return new _0xf1449d(_0x439486,_0x53b16e);{const _0x18c14d=_0x53b16e['children']['map'](_0x1b7aea=>this[_0x524b('0xac')](_0x1b7aea));return new(Y[_0x53b16e[(_0x524b('0x4e'))]]||_0x4320d4)(_0x439486,_0x53b16e['name'],_0x53b16e[_0x524b('0x70')],_0x18c14d);}}[_0x524b('0xad')](_0x3d472d,_0x2da3b4=null){const _0x71347c=this[_0x524b('0x4d')][_0x524b('0xe1')](_0x3d472d),_0x143b5a=_0x2da3b4?this['repository'][_0x524b('0xe1')](_0x2da3b4):null,_0xa91797=this['_getRevisionsRange'](_0x71347c,_0x143b5a),_0x2bf803=_0xa91797[_0xa91797['length']-0x1],_0x59ae28=new Map();for(const _0x4eb7cc of _0xa91797){_0x4eb7cc[_0x524b('0x97')]={};for(const _0x57579b of _0x4eb7cc[_0x524b('0x7a')])_0x59ae28[_0x524b('0x50')](_0x57579b['id'],_0x57579b);for(const _0x1cd57e of this[_0x524b('0xfc')][_0x524b('0x97')]['document']['getRootNames']())_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e]||(_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e]={'insertions':'[]','deletions':'[]'}),_0x4eb7cc[_0x524b('0x97')][_0x1cd57e]={'insertions':this[_0x524b('0x32')](_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e][_0x524b('0xd8')]),'deletions':this[_0x524b('0x32')](_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e][_0x524b('0xf4')])};}const _0x390be1={'model':{},'changes':[]};for(const _0x1f3c06 of this[_0x524b('0xfc')]['model'][_0x524b('0xa0')][_0x524b('0x5d')]()){let _0x573457=null,_0x582d60=0x0;const _0x1c50ef=new Map(Array[_0x524b('0x1')](_0x71347c[_0x524b('0x97')][_0x1f3c06]['insertions'][_0x524b('0xf3')])[_0x524b('0x75')](([_0x1cb601])=>!_0x1cb601[_0x524b('0x90')](_0x524b('0x54'))));let _0xf558c2=0x0;for(const _0x534dd5 of _0xa91797){const _0x5f2c03=this['_makeTape'](_0x534dd5[_0x524b('0x97')][_0x1f3c06][_0x524b('0xd8')]);_0x534dd5==_0x71347c?(_0x573457=_0x5f2c03,_0x582d60=_0x573457[_0x524b('0x34')],_0x573457[_0x524b('0x9')](_0x5a3bcc=>{_0x5a3bcc['id']=_0xf558c2++;}),this[_0x524b('0x77')](_0x573457)):this['_markInsertions'](_0x573457,_0x5f2c03);const _0x365a2d=_0x573457['filter'](_0x5dc210=>!_0x5dc210['isAdded'])['map'](_0x11ad60=>_0x11ad60['id']);let _0x18f817=0x0;const _0x28f608=this[_0x524b('0x64')](_0x534dd5[_0x524b('0x97')][_0x1f3c06][_0x524b('0xf4')]);_0x28f608['forEach'](_0x82e0f3=>{_0x82e0f3[_0x524b('0xf1')]?_0x82e0f3['id']=_0x582d60++:_0x82e0f3['id']=_0x365a2d[_0x18f817++];}),this[_0x524b('0x77')](_0x28f608),this['_setDistance'](_0x573457,_0x524b('0x8f')),this['_setDistance'](_0x28f608,_0x524b('0xf1')),_0x534dd5==_0x71347c&&this[_0x524b('0xcb')](_0x573457,_0x1c50ef),_0x573457=this[_0x524b('0x41')](_0x573457,_0x28f608),this['_refreshStartEndIndex'](_0x573457),this[_0x524b('0xef')](_0x573457,_0x524b('0xf1'));}_0x573457=_0x573457[_0x524b('0x75')](_0x4054c6=>!(_0x4054c6[_0x524b('0x8f')]&&_0x4054c6[_0x524b('0xf1')]));const _0x27eaaa=new Map(_0x2bf803['model'][_0x1f3c06]['deletions'][_0x524b('0xf3')]),_0x43d0eb=new Set(_0x1c50ef[_0x524b('0xc9')]());for(const _0x27b123 of _0x27eaaa[_0x524b('0xc9')]())_0x43d0eb[_0x524b('0xa2')](_0x27b123);this[_0x524b('0x3b')](_0x573457,_0x43d0eb),this['_fixObsoleteTags'](_0x573457),_0x573457=this[_0x524b('0x6d')](_0x573457),_0x573457=this[_0x524b('0x7e')](_0x573457),_0x573457=this[_0x524b('0xa5')](_0x573457);const {root:_0x3fef8e,changes:_0x17ffe8}=this[_0x524b('0x6f')](_0x573457,_0x59ae28);_0x390be1['model'][_0x1f3c06]=_0x3fef8e,_0x390be1[_0x524b('0x82')]=_0x390be1['changes']['concat'](_0x17ffe8);}return _0x390be1;}[_0x524b('0xcb')](_0x2ed317,_0x4243aa){for(let _0x1db100=0x0;_0x1db100<_0x2ed317['length'];_0x1db100++)for(const [_0x3f84df,_0x18558e]of _0x4243aa)_0x18558e[_0x524b('0x4c')][_0x524b('0x16')](_0x2ed317[_0x1db100][_0x524b('0x71')])&&_0x2ed317[_0x1db100]['markersStart'][_0x524b('0xfa')](_0x3f84df),_0x18558e[_0x524b('0xe7')][_0x524b('0x16')](_0x2ed317[_0x1db100][_0x524b('0x9d')])&&_0x2ed317[_0x1db100][_0x524b('0x61')][_0x524b('0xfa')](_0x3f84df);}[_0x524b('0x41')](_0x56dc89,_0x1442e9){let _0x51fe5f=[],_0x13a720=0x0,_0x3b9cb9=0x0;for(;_0x13a720<_0x56dc89[_0x524b('0x34')]||_0x3b9cb9<_0x1442e9[_0x524b('0x34')];){const _0x3b8c6e=_0x56dc89[_0x13a720]||{},_0x3cb0e7=_0x1442e9[_0x3b9cb9]||{};if(_0x3b8c6e['id']==_0x3cb0e7['id'])_0x13a720++,_0x3b9cb9++,_0x51fe5f[_0x524b('0xfa')](_0x3b8c6e);else{if(_0x3cb0e7[_0x524b('0xf1')]&&_0x3b8c6e[_0x524b('0x8f')]){const {commonTape:_0x8436a5,iEnd:_0xf440d9,jEnd:_0xdfe38d}=this[_0x524b('0xc6')](_0x56dc89,_0x13a720,_0x1442e9,_0x3b9cb9);_0x51fe5f=_0x51fe5f[_0x524b('0xb0')](_0x8436a5),_0x13a720=_0xf440d9,_0x3b9cb9=_0xdfe38d;}else _0x3cb0e7['isRemoved']?(_0x3b9cb9++,_0x51fe5f[_0x524b('0xfa')](_0x3cb0e7)):(_0x13a720++,_0x51fe5f[_0x524b('0xfa')](_0x3b8c6e));}}return _0x51fe5f;}[_0x524b('0x3b')](_0x19421a,_0x488f23){const _0xd11a58=[];for(let _0x2f9f56=0x0;_0x2f9f56<_0x19421a['length'];_0x2f9f56++){for(let _0xc175a4=0x0;_0xc175a4<_0x19421a[_0x2f9f56][_0x524b('0xe4')][_0x524b('0x34')];_0xc175a4++){const _0x399ea6=_0x19421a[_0x2f9f56][_0x524b('0xe4')][_0xc175a4];if(!_0x488f23['has'](_0x399ea6))continue;const {group:_0x4f0287,type:_0x172a51,authorId:_0x2f2416}=_0x316cdf(_0x399ea6);_0x524b('0x9a')!=_0x4f0287||_0x524b('0x49')!=_0x172a51&&_0x524b('0xf0')!=_0x172a51||(_0xd11a58[_0x524b('0x6b')]({'type':_0x172a51,'name':_0x399ea6,'userId':_0x2f2416}),_0x19421a[_0x2f9f56]['markersStart'][_0x524b('0xc8')](_0xc175a4,0x1),_0xc175a4--);}_0x1be9a1(_0x19421a[_0x2f9f56]);for(let _0x5531ea=0x0;_0x5531ea<_0x19421a[_0x2f9f56][_0x524b('0x61')][_0x524b('0x34')];_0x5531ea++){const _0x4cb717=_0x19421a[_0x2f9f56][_0x524b('0x61')][_0x5531ea];if(!_0x488f23[_0x524b('0x68')](_0x4cb717))continue;const {group:_0x349dd3,type:_0x51644d}=_0x316cdf(_0x4cb717);if(_0x524b('0x9a')!=_0x349dd3||_0x524b('0x49')!=_0x51644d&&_0x524b('0xf0')!=_0x51644d)continue;_0x19421a[_0x2f9f56]['markersEnd'][_0x524b('0xc8')](_0x5531ea,0x1),_0x5531ea--;const _0x39647e=_0xd11a58['findIndex'](_0x47ccae=>_0x47ccae[_0x524b('0xda')]==_0x4cb717);_0x39647e>-0x1&&_0xd11a58[_0x524b('0xc8')](_0x39647e,0x1);}}function _0x316cdf(_0xd6f560){const _0x575f40=_0xd6f560[_0x524b('0x76')](':');return{'group':_0x575f40[0x0],'type':_0x575f40[0x1],'subType':_0x575f40['length']>=0x5?_0x575f40[0x2]:null,'id':_0x575f40[_0x524b('0x34')]<0x5?_0x575f40[0x2]:_0x575f40[0x3],'authorId':_0x575f40['length']<0x5?_0x575f40[0x3]:_0x575f40[0x4],'markerCount':0x6==_0x575f40[_0x524b('0x34')]?_0x575f40[0x5]:null};}function _0x1be9a1(_0x2a2830){for(let _0x5e653b=0x0;_0x5e653b<_0xd11a58['length'];_0x5e653b++){if(_0x2a2830['isAdded']&&_0x524b('0x49')==_0xd11a58[_0x5e653b][_0x524b('0x4e')])return _0x2a2830[_0x524b('0x60')]=_0xd11a58[_0x5e653b],void delete _0x2a2830[_0x524b('0x8f')];if(!_0x2a2830[_0x524b('0x8f')]&&!_0x2a2830[_0x524b('0xf1')]&&_0x524b('0xf0')==_0xd11a58[_0x5e653b][_0x524b('0x4e')])return void(_0x2a2830[_0x524b('0x5c')]=_0xd11a58[_0x5e653b]);}}}[_0x524b('0xef')](_0x4e8f19,_0x13a24b){let _0x14c2ac=0x0,_0x2ec047=!0x1;const _0x2a3f47=new Map();for(const _0x99f6d8 of _0x4e8f19)_0x99f6d8[_0x13a24b]?_0x2ec047&&(_0x14c2ac++,_0x2ec047=!0x1):(_0x14c2ac++,_0x2ec047=!0x0),_0x2a3f47[_0x524b('0x50')](_0x99f6d8['id'],_0x14c2ac);for(let _0x2dcbb5=0x0;_0x2dcbb5<_0x4e8f19[_0x524b('0x34')];_0x2dcbb5++){if(_0x524b('0xf1')==_0x13a24b&&_0x4e8f19[_0x2dcbb5][_0x524b('0x8f')]||'isAdded'==_0x13a24b&&_0x4e8f19[_0x2dcbb5][_0x524b('0xf1')])continue;if('text'==_0x4e8f19[_0x2dcbb5]['type']){_0x4e8f19[_0x2dcbb5][_0x524b('0xfb')]=0x0;continue;}const _0x3da0eb=_0x2a3f47[_0x524b('0x4')](_0x4e8f19[_0x2dcbb5][_0x524b('0x101')]),_0x47645d=_0x2a3f47[_0x524b('0x4')](_0x4e8f19[_0x2dcbb5]['id']);_0x4e8f19[_0x2dcbb5][_0x524b('0xfb')]=_0x3da0eb-_0x47645d;}}['_getRevisionsRange'](_0x3b3e7c,_0x25ec25,_0x3527ed=!0x1){const _0x2f55fd=[];let _0x3ab190=this[_0x524b('0x4d')]['getIndex'](_0x3b3e7c),_0x367d26=this[_0x524b('0x4d')]['getIndex'](_0x25ec25);for(-0x1==_0x367d26&&(_0x367d26=this[_0x524b('0x4d')][_0x524b('0x7')]['length'],_0x3527ed=!0x1);_0x3ab190<_0x367d26;)_0x2f55fd[_0x524b('0xfa')](this[_0x524b('0x4d')][_0x524b('0xe1')](_0x3ab190)),_0x3ab190++;return _0x3527ed&&_0x2f55fd[_0x524b('0xfa')](this[_0x524b('0x4d')]['getRevision'](_0x3ab190)),_0x2f55fd;}[_0x524b('0xc6')](_0x301b25,_0x30f59f,_0x3dd991,_0x96662c){const _0x1caa44=this['editor']['model'][_0x524b('0xd2')];let _0x4977b8=_0x30f59f;for(;_0x301b25[_0x4977b8]&&_0x301b25[_0x4977b8][_0x524b('0x8f')];)_0x4977b8++;let _0x5db4f0=_0x96662c;for(;_0x3dd991[_0x5db4f0]&&_0x3dd991[_0x5db4f0][_0x524b('0xf1')];)_0x5db4f0++;_0x14de4a(_0x301b25,_0x30f59f,_0x4977b8),_0x14de4a(_0x3dd991,_0x96662c,_0x5db4f0);const _0x4e4bc1=_0x3dd991['slice'](_0x96662c,_0x5db4f0)[_0x524b('0xb0')](_0x301b25['slice'](_0x30f59f,_0x4977b8));return _0x4e4bc1['sort']((_0x532d84,_0x24d942)=>_0x532d84[_0x524b('0x1d')]!=_0x24d942['side']?_0x532d84[_0x524b('0x1d')]-_0x24d942[_0x524b('0x1d')]:_0x532d84[_0x524b('0x93')]!=_0x24d942[_0x524b('0x93')]?_0x532d84[_0x524b('0x93')]-_0x24d942['level']:_0x532d84[_0x524b('0xfb')]!=_0x24d942[_0x524b('0xfb')]?_0x24d942[_0x524b('0xfb')]-_0x532d84['distance']:!!_0x532d84[_0x524b('0x8f')]!=!!_0x24d942['isAdded']?-0x1==_0x532d84[_0x524b('0x1d')]||0x0==_0x532d84[_0x524b('0x1d')]?_0x532d84[_0x524b('0x8f')]?-0x1:0x1:_0x532d84['isAdded']?0x1:-0x1:_0x532d84[_0x524b('0xfd')]-_0x24d942[_0x524b('0xfd')]),{'commonTape':_0x4e4bc1,'iEnd':_0x4977b8,'jEnd':_0x5db4f0};function _0x14de4a(_0x15b6a9,_0x26a556,_0x5d8ff7){let _0x27606e=-0x1,_0x44d658=Number[_0x524b('0x55')],_0x4321d6=!0x0;for(let _0x5be675=_0x26a556;_0x5be675<_0x5d8ff7;_0x5be675++)if(_0x1caa44['isInline'](_0x15b6a9[_0x5be675][_0x524b('0x2f')])||(_0x4321d6=!0x1),_0x15b6a9[_0x5be675][_0x524b('0x2f')][_0x524b('0xd3')]<_0x26a556&&(_0x27606e=_0x5be675),_0x15b6a9[_0x5be675][_0x524b('0x2f')][_0x524b('0x4a')]>=_0x5d8ff7){_0x44d658=_0x5be675;break;}_0x4321d6&&(_0x27606e=_0x5d8ff7-0x1);for(let _0x1badb2=_0x26a556;_0x1badb2<_0x5d8ff7;_0x1badb2++)_0x15b6a9[_0x1badb2][_0x524b('0x1d')]=_0x1badb2<=_0x27606e?-0x1:_0x1badb2<_0x44d658?0x0:0x1,_0x15b6a9[_0x1badb2][_0x524b('0xfd')]=_0x1badb2;let _0x1a6db7=0x0;for(let _0xac64a0=_0x26a556;_0xac64a0<=_0x27606e;_0xac64a0++)0x0==_0x15b6a9[_0xac64a0]['distance']?_0x15b6a9[_0xac64a0][_0x524b('0x93')]=_0x1a6db7:(_0x1a6db7++,_0x15b6a9[_0xac64a0][_0x524b('0x93')]=_0x1a6db7,_0x1a6db7++);for(let _0x28ab87=_0x26a556;_0x28ab87<_0x5d8ff7;_0x28ab87++)0x0==_0x15b6a9[_0x28ab87][_0x524b('0x1d')]&&(_0x15b6a9[_0x28ab87][_0x524b('0x93')]=_0x1a6db7);_0x1a6db7=0x0;for(let _0x9714a6=_0x5d8ff7-0x1;_0x9714a6>=_0x44d658;_0x9714a6--)0x0==_0x15b6a9[_0x9714a6][_0x524b('0xfb')]?_0x15b6a9[_0x9714a6][_0x524b('0x93')]=_0x1a6db7:(_0x1a6db7--,_0x15b6a9[_0x9714a6]['level']=_0x1a6db7,_0x1a6db7--);}}['_fixObsoleteTags'](_0x1e3f2e){const _0x1ff9a5=new Map(),_0x1e9c84=this[_0x524b('0xfc')]['model'][_0x524b('0xd2')];for(let _0x4bc3e7=0x1;_0x4bc3e7<_0x1e3f2e[_0x524b('0x34')];_0x4bc3e7++){let _0x447c3d,_0x4a8451,_0x491e8c;const _0x2d8370=_0x1e3f2e[_0x4bc3e7],_0x3b363f=_0x1e3f2e[_0x4bc3e7-0x1];if(_0x524b('0xd4')==_0x2d8370[_0x524b('0x4e')])continue;if(_0x2d8370[_0x524b('0x4e')]!=_0x3b363f[_0x524b('0x4e')])continue;if(!_0x1e9c84[_0x524b('0xb7')](_0x3b363f['item'])||_0x1e9c84[_0x524b('0x36')](_0x3b363f[_0x524b('0x2f')]))continue;if(!_0x1e9c84[_0x524b('0xb7')](_0x2d8370[_0x524b('0x2f')])||_0x1e9c84[_0x524b('0x36')](_0x2d8370[_0x524b('0x2f')]))continue;if((_0x1e3f2e[_0x4bc3e7]['isAdded']||_0x1e3f2e[_0x4bc3e7]['isAddSuggestion'])&&_0x1e3f2e[_0x4bc3e7-0x1][_0x524b('0xf1')])_0x447c3d=_0x1e3f2e[_0x4bc3e7],_0x4a8451=_0x1e3f2e[_0x4bc3e7-0x1],_0x491e8c=_0x4bc3e7-0x1;else{if(!_0x1e3f2e[_0x4bc3e7][_0x524b('0xf1')]||!_0x1e3f2e[_0x4bc3e7-0x1][_0x524b('0x8f')]&&!_0x1e3f2e[_0x4bc3e7-0x1][_0x524b('0x60')])continue;_0x447c3d=_0x1e3f2e[_0x4bc3e7-0x1],_0x4a8451=_0x1e3f2e[_0x4bc3e7],_0x491e8c=_0x4bc3e7;}const _0x12ce2e=_0x447c3d[_0x524b('0x93')]==_0x4a8451[_0x524b('0x93')],_0x2e4dac=Math[_0x524b('0x39')](_0x447c3d[_0x524b('0x93')])<Math['abs'](_0x4a8451[_0x524b('0x93')])&&0x0==_0x4a8451[_0x524b('0xfb')];(_0x12ce2e||_0x2e4dac)&&(_0x1ff9a5['set'](_0x4a8451['id'],_0x447c3d['id']),_0x1e3f2e[_0x524b('0xc8')](_0x491e8c,0x1),_0x4bc3e7--,_0x447c3d[_0x524b('0x8f')]=!0x1);}for(let _0x4f4a84=0x0;_0x4f4a84<_0x1e3f2e[_0x524b('0x34')];_0x4f4a84++)_0x1ff9a5['has'](_0x1e3f2e[_0x4f4a84]['pairId'])&&(_0x1e3f2e[_0x4f4a84]['pairId']=_0x1ff9a5['get'](_0x1e3f2e[_0x4f4a84][_0x524b('0x101')]));}[_0x524b('0x6d')](_0x37343a){const _0x52ec6c=new Set(_0x37343a[_0x524b('0x9f')](_0x20e0d6=>_0x20e0d6['id']));for(let _0x18b5e4=0x0;_0x18b5e4<_0x37343a[_0x524b('0x34')];_0x18b5e4++)_0x52ec6c[_0x524b('0x68')](_0x37343a[_0x18b5e4][_0x524b('0x101')])||0x0==_0x37343a[_0x18b5e4][_0x524b('0xfb')]||(_0x37343a[_0x18b5e4][_0x524b('0x33')]=!0x0);return _0x37343a[_0x524b('0x75')](_0x5be712=>!_0x5be712[_0x524b('0x33')]);}[_0x524b('0x7e')](_0x3939e9){const _0x278906=new Set();for(let _0x29f739=0x0;_0x29f739<_0x3939e9[_0x524b('0x34')];_0x29f739++){if(_0x278906[_0x524b('0x68')](_0x3939e9[_0x29f739]['id'])&&_0x3939e9[_0x29f739][_0x524b('0xf1')]&&(_0x3939e9[_0x29f739][_0x524b('0x33')]=!0x0),_0x3939e9[_0x29f739][_0x524b('0x33')])continue;if(0x0==_0x3939e9[_0x29f739][_0x524b('0xfb')])continue;if('elementStart'!=_0x3939e9[_0x29f739][_0x524b('0x4e')])continue;if(null==_0x3939e9[_0x29f739][_0x524b('0x101')])continue;let _0x445723=_0x29f739+0x1,_0x50f0aa=0x0;for(;_0x3939e9[_0x445723]['id']!=_0x3939e9[_0x29f739][_0x524b('0x101')];)_0x524b('0x6')==_0x3939e9[_0x445723][_0x524b('0x4e')]?_0x50f0aa++:_0x524b('0x8a')==_0x3939e9[_0x445723][_0x524b('0x4e')]&&_0x50f0aa--,_0x445723++;if(0x0!=_0x50f0aa){if(_0x3939e9[_0x29f739][_0x524b('0xf1')])_0x3939e9[_0x29f739]['isIncorrect']=!0x0;else for(;_0x445723!=_0x29f739;)_0x3939e9[_0x445723][_0x524b('0xf1')]&&0x0!=_0x3939e9[_0x445723][_0x524b('0xfb')]&&(_0x3939e9[_0x445723][_0x524b('0x33')]=!0x0,_0x278906[_0x524b('0x46')](_0x3939e9[_0x445723]['pairId'])),_0x445723--;}}return _0x3939e9['filter'](_0x44e965=>!_0x44e965[_0x524b('0x33')]);}[_0x524b('0xa5')](_0x40fa06){const _0x4dfde3=this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xd2')];for(let _0x13daa3=0x0;_0x13daa3<_0x40fa06[_0x524b('0x34')];_0x13daa3++){if(!(_0x40fa06[_0x13daa3]['isAdded']||_0x40fa06[_0x13daa3][_0x524b('0x60')]||_0x40fa06[_0x13daa3][_0x524b('0xf1')]||_0x40fa06[_0x13daa3]['isRemoveSuggestion']))continue;if(0x0==_0x40fa06[_0x13daa3]['distance'])continue;const _0x3c94ca=_0x40fa06[_0x13daa3][_0x524b('0x2f')];_0x4dfde3[_0x524b('0xb7')](_0x3c94ca)||_0x4dfde3[_0x524b('0x36')](_0x3c94ca)||(_0x40fa06[_0x13daa3][_0x524b('0x8f')]&&delete _0x40fa06[_0x13daa3][_0x524b('0x8f')],_0x40fa06[_0x13daa3][_0x524b('0x60')]&&delete _0x40fa06[_0x13daa3][_0x524b('0x60')],_0x40fa06[_0x13daa3][_0x524b('0x5c')]&&delete _0x40fa06[_0x13daa3][_0x524b('0x5c')],_0x40fa06[_0x13daa3][_0x524b('0xf1')]&&(_0x40fa06[_0x13daa3]['isIncorrect']=!0x0));}return _0x40fa06[_0x524b('0x75')](_0x55551a=>!_0x55551a[_0x524b('0x33')]);}[_0x524b('0x6f')](_0x1b8bf1,_0x431639){const _0x52259b=new _0x39d827(),_0x2e2ed2=[],_0x47286c=new Map(),_0xb036a4=this[_0x524b('0xfc')][_0x524b('0x97')],_0x18541d=_0xb036a4[_0x524b('0xd2')],_0xae1271=[_0x52259b],_0x346768={},_0x2f58d8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3a536c=null;const _0x3bf15e=[0x0];for(let _0x537d67=0x0;_0x537d67<_0x1b8bf1[_0x524b('0x34')];_0x537d67++){let _0x2a9b33,_0x307808;if(_0x524b('0x6')===_0x1b8bf1[_0x537d67]['type']){_0x2a9b33=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e);const _0x1bc070=new _0xa0cd73(_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0xda')],_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0xfe')]());_0xae1271[0x0][_0x524b('0x7d')](_0x1bc070),_0x3bf15e[_0x524b('0xfa')](0x0),_0xae1271[_0x524b('0x6b')](_0x1bc070),_0x307808=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3a536c=null;}else{if('elementEnd'===_0x1b8bf1[_0x537d67][_0x524b('0x4e')])_0xae1271[_0x524b('0x59')](),_0x2a9b33=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3bf15e[_0x524b('0x6c')](),_0x3bf15e[_0x3bf15e['length']-0x1]++,_0x307808=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3a536c=null;else{if(_0x2a9b33=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3a536c&&_0x107646(_0x3a536c,_0x1b8bf1[_0x537d67][_0x524b('0x2f')]))_0x3a536c[_0x524b('0x85')]+=_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0x47')];else{const _0x5bfdd2=new _0x5ee507(_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0x47')],_0x1b8bf1[_0x537d67]['item'][_0x524b('0xfe')]());_0xae1271[0x0][_0x524b('0x7d')](_0x5bfdd2),_0x3a536c=_0x5bfdd2;}_0x3bf15e[_0x3bf15e['length']-0x1]+=_0x1b8bf1[_0x537d67][_0x524b('0x2f')]['offsetSize'],_0x307808=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e);}}for(const _0x217ce9 of _0x1b8bf1[_0x537d67][_0x524b('0xe4')])_0x47286c[_0x524b('0x50')](_0x217ce9,{'start':_0x2a9b33,'end':null});_0x13a9bd(_0x524b('0x5c'),_0x537d67,_0x2a9b33,_0x307808),_0x13a9bd(_0x524b('0x60'),_0x537d67,_0x2a9b33,_0x307808),_0x13a9bd(_0x524b('0xf1'),_0x537d67,_0x2a9b33,_0x307808),_0x13a9bd(_0x524b('0x8f'),_0x537d67,_0x2a9b33,_0x307808);for(const _0x3c6baf of _0x1b8bf1[_0x537d67][_0x524b('0x61')]){_0x47286c['get'](_0x3c6baf)['end']=_0x307808;}}for(const [_0x1fa0d1,_0x3e2169]of _0x47286c){const _0x29247a=this[_0x524b('0xfc')][_0x524b('0x97')]['createRange'](_0x3e2169['start'],_0x3e2169[_0x524b('0xe7')]);_0x52259b[_0x524b('0xf3')][_0x524b('0x50')](_0x1fa0d1,_0x29247a);}return _0x2e2ed2['sort']((_0x1a8758,_0x13d937)=>{const _0x390da9=_0x52259b[_0x524b('0xf3')][_0x524b('0x4')](_0x524b('0x54')+_0x1a8758['id']),_0x53cdb0=_0x52259b['markers']['get'](_0x524b('0x54')+_0x13d937['id']);return _0x390da9[_0x524b('0x4c')]['isBefore'](_0x53cdb0[_0x524b('0x4c')])?-0x1:_0x390da9['start']['isAfter'](_0x53cdb0[_0x524b('0x4c')])?0x1:_0x390da9[_0x524b('0xe7')]['isBefore'](_0x53cdb0['end'])?-0x1:_0x390da9[_0x524b('0xe7')][_0x524b('0x8c')](_0x53cdb0['end'])?0x1:'add'===_0x1a8758[_0x524b('0x4e')]?-0x1:0x1;}),{'root':_0x52259b,'changes':_0x2e2ed2};function _0x13a9bd(_0x1c4f40,_0x1ca185,_0x9bc821,_0x41efb3){const _0x49cb07=!!_0x1b8bf1[_0x1ca185][_0x1c4f40],_0x940a69=_0x49cb07?_0x1b8bf1[_0x1ca185][_0x1c4f40][_0x524b('0xb8')]:null,_0xde8e45=_0x1ca185===_0x1b8bf1[_0x524b('0x34')]-0x1,_0x41de93=_0x2f58d8[_0x1c4f40][0x0],_0x4714dc=_0x18541d['isObject'](_0x1b8bf1[_0x1ca185][_0x524b('0x2f')]);!_0x346768[_0x1c4f40]&&_0x49cb07?_0x346768[_0x1c4f40]={'start':_0x9bc821,'tapeItem':_0x1b8bf1[_0x1ca185],'userId':_0x940a69,'type':_0x1c4f40}:_0x346768[_0x1c4f40]&&!_0x49cb07?(_0x346768[_0x1c4f40]['end']=_0x9bc821,_0x6beb3b(_0x346768[_0x1c4f40]),_0x346768[_0x1c4f40]=null):_0x346768[_0x1c4f40]&&_0x49cb07&&_0x346768[_0x1c4f40][_0x524b('0xb8')]!==_0x940a69&&(_0x346768[_0x1c4f40][_0x524b('0xe7')]=_0x9bc821,_0x41de93&&_0x41de93['userId']===_0x346768[_0x1c4f40][_0x524b('0xb8')]||_0x6beb3b(_0x346768[_0x1c4f40]),_0x346768[_0x1c4f40]={'start':_0x9bc821,'tapeItem':_0x1b8bf1[_0x1ca185],'userId':_0x940a69,'type':_0x1c4f40}),_0x346768[_0x1c4f40]&&_0x4714dc&&(_0x524b('0x6')!==_0x1b8bf1[_0x1ca185][_0x524b('0x4e')]||_0x41de93&&_0x41de93[_0x524b('0xb8')]===_0x940a69||_0x2f58d8[_0x1c4f40][_0x524b('0x6b')]({'userId':_0x940a69,'object':_0x1b8bf1[_0x1ca185][_0x524b('0x2f')],'change':_0x346768[_0x1c4f40]}),_0x524b('0x8a')===_0x1b8bf1[_0x1ca185][_0x524b('0x4e')]&&_0x41de93&&_0x41de93[_0x524b('0x25')]===_0x1b8bf1[_0x1ca185][_0x524b('0x2f')]&&(_0x2f58d8[_0x1c4f40][_0x524b('0x59')](),_0x346768[_0x1c4f40]=_0x41de93['change'])),_0x346768[_0x1c4f40]&&_0xde8e45&&(_0x346768[_0x1c4f40]['end']=_0x41efb3,_0x6beb3b(_0x346768[_0x1c4f40]),_0x346768[_0x1c4f40]=null);}function _0x6beb3b({start:_0x339a11,end:_0x464bc8,tapeItem:_0x285bd1,userId:_0x50b62b,type:_0x1af128}){const _0x2840e5=_0x285bd1[_0x524b('0x2f')],_0x3eee5c=_0xb036a4['schema'][_0x524b('0xb7')](_0x2840e5)&&!_0xb036a4[_0x524b('0xd2')]['isLimit'](_0x2840e5),_0x846932=_0x339a11[_0x524b('0xb')]==_0x464bc8[_0x524b('0x80')]&&_0x464bc8['isAtStart'];if(_0x3eee5c&&_0x846932)return;const _0x2d9922=_0xb036a4[_0x524b('0xbf')](_0x339a11,_0x464bc8),_0xb7a0c0=_0x431639[_0x524b('0x4')](_0x50b62b),_0x200317=new _0x17521b({'author':_0xb7a0c0,'type':_0x524b('0x8f')==_0x1af128||_0x524b('0x60')==_0x1af128?'add':'remove','data':{'isSuggestion':_0x524b('0x60')==_0x1af128||'isRemoveSuggestion'==_0x1af128},'createdAt':new Date()});_0x2e2ed2[_0x524b('0xfa')](_0x200317),_0x52259b[_0x524b('0xf3')]['set']('revision:'+_0x200317['id'],_0x2d9922);}function _0x107646(_0x5d37af,_0x2996ca){const _0x38a880=_0x5d37af['getAttributes'](),_0x56583e=_0x2996ca[_0x524b('0xfe')]();for(const _0x375461 of _0x38a880){if(_0x375461[0x1]!==_0x2996ca[_0x524b('0x65')](_0x375461[0x0]))return!0x1;_0x56583e[_0x524b('0x3e')]();}return _0x56583e['next']()[_0x524b('0x63')];}}[_0x524b('0xf7')](){this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x74')]({'view':_0x524b('0xe2')}),this[_0x524b('0xfc')]['conversion']['for'](_0x524b('0xdf'))[_0x524b('0xff')]({'model':_0x524b('0xe2'),'view':_0x4926eb=>{const _0x25f29a=_0x4926eb[_0x524b('0x5f')][_0x524b('0x76')](':')[0x1],_0x32f547=this[_0x524b('0x95')](_0x25f29a);if(!_0x32f547)return null;const _0x30fa6b=_0x524b('0x46')==_0x32f547[_0x524b('0x4e')]?_0x524b('0x49'):_0x524b('0xf0'),_0x3cec53=['ck-suggestion-marker','ck-suggestion-marker-'+_0x30fa6b];return _0x32f547[_0x524b('0x47')][_0x524b('0x2d')]&&_0x3cec53[_0x524b('0xfa')]('ck-suggestion-marker-'+_0x30fa6b+_0x524b('0x2c')),this[_0x524b('0xd')]==_0x32f547&&_0x3cec53[_0x524b('0xfa')](_0x524b('0xf2')),{'classes':_0x3cec53,'attributes':{'data-change-id':_0x25f29a}};}}),this[_0x524b('0xfc')]['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))['add'](_0x2a527f=>{_0x2a527f['on']('element:pre',(_0x3c7d71,_0x187ffc,_0x332efa)=>{const _0x467a99=_0x187ffc[_0x524b('0x57')]['getChild'](0x0);if(!_0x467a99||!_0x467a99['is'](_0x524b('0xec'),_0x524b('0x72')))return;if(!_0x332efa[_0x524b('0x5e')][_0x524b('0x12')](_0x467a99,{'attributes':[_0x524b('0x3f'),_0x524b('0xe6')]}))return;const _0x1e4e1e=_0x187ffc[_0x524b('0x92')][_0x524b('0x4c')][_0x524b('0xb')];_0x332efa[_0x524b('0xcd')][_0x524b('0xc2')](_0x524b('0x3f'),_0x467a99[_0x524b('0x65')](_0x524b('0x3f')),_0x1e4e1e),_0x332efa[_0x524b('0xcd')][_0x524b('0xc2')](_0x524b('0xe6'),_0x467a99[_0x524b('0x65')](_0x524b('0xe6')),_0x1e4e1e);},{'priority':_0x524b('0x11')});}),this[_0x524b('0xfc')]['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x46')](_0x155021=>{_0x155021['on'](_0x524b('0xec'),(_0x5b8b03,_0x36bd6e,_0x1bef76)=>{if(!_0x1bef76['consumable'][_0x524b('0x12')](_0x36bd6e[_0x524b('0x57')],{'attributes':[_0x524b('0x3f'),_0x524b('0xe6')]}))return;if(_0x36bd6e['modelRange'][_0x524b('0xb1')])return;const _0x2e41b5=_0x36bd6e[_0x524b('0x92')][_0x524b('0x4c')][_0x524b('0xb')];_0x2e41b5[_0x524b('0xbd')](_0x524b('0x3f'))||_0x2e41b5[_0x524b('0xbd')](_0x524b('0xab'))||(_0x1bef76['writer'][_0x524b('0xc2')](_0x524b('0x3f'),_0x36bd6e[_0x524b('0x57')][_0x524b('0x65')](_0x524b('0x3f')),_0x2e41b5),_0x1bef76[_0x524b('0xcd')][_0x524b('0xc2')](_0x524b('0xe6'),_0x36bd6e[_0x524b('0x57')][_0x524b('0x65')](_0x524b('0xe6')),_0x2e41b5));},{'priority':_0x524b('0x11')});}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x3')]({'view':{'name':_0x524b('0x67'),'attributes':{'vid':!0x0}},'model':{'key':_0x524b('0xab'),'value':_0x35c502=>_0x35c502['getAttribute'](_0x524b('0xab'))}}),this['editor'][_0x524b('0x97')][_0x524b('0xd2')]['on'](_0x524b('0x88'),(_0x9db8f,[,_0x52a08d])=>{['vid_start','vid_end',_0x524b('0xab')][_0x524b('0x23')](_0x52a08d)&&(_0x9db8f['return']=!0x0,_0x9db8f[_0x524b('0x91')]());},{'priority':_0x524b('0xaa')}),this[_0x524b('0xfc')][_0x524b('0x5a')]['for'](_0x524b('0x96'))[_0x524b('0x46')](_0x349125=>{_0x349125['on']('attribute:vid',(_0x419c5b,_0x5bf877,_0x24f7ff)=>{if('\x20'!=_0x5bf877[_0x524b('0x2f')][_0x524b('0x47')]||_0x5bf877['item'][_0x524b('0x80')][_0x524b('0x69')]>0x1)return;if(!_0x24f7ff[_0x524b('0x5e')][_0x524b('0x12')](_0x5bf877[_0x524b('0x2f')],_0x419c5b[_0x524b('0xda')]))return;const _0x5bdcaf=_0x24f7ff[_0x524b('0xcd')],_0x2d0b20=_0x24f7ff[_0x524b('0x99')][_0x524b('0x15')](_0x5bf877[_0x524b('0x98')]);_0x5bdcaf[_0x524b('0x1c')](_0x2d0b20,_0x5bdcaf[_0x524b('0x100')](_0x524b('0x67')));});}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0x96'))[_0x524b('0x18')]({'model':'revision'}),this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x3c')]['on']('addMarker:revision',function(_0x466590){const _0xe4fe4f=_0x466590[_0x524b('0xee')][_0x524b('0x4')]('RevisionViewer');return(_0xbe6ca5,_0x1f8b8d,_0x34a4eb)=>{const _0x48bd82=_0x1f8b8d[_0x524b('0x5f')][_0x524b('0x76')](':')[0x1],_0x4d56b2=_0xe4fe4f['_getChangeFromId'](_0x48bd82);if(!_0x4d56b2)return null;const _0x519ce6=_0x524b('0x46')==_0x4d56b2[_0x524b('0x4e')]?_0x524b('0x76'):'merge';if(!_0x34a4eb[_0x524b('0x5e')][_0x524b('0x2a')](_0x1f8b8d['markerRange'],_0xbe6ca5['name']))return;const _0x4d566f=_0x1f8b8d[_0x524b('0x94')][_0x524b('0x106')](),_0x50a4be=_0x1f8b8d['markerRange'][_0x524b('0x4c')],_0x192636=_0x466590[_0x524b('0x97')]['schema'];let _0x180cd7=null,_0x41bd64=null,_0x4fbd18=!0x1,_0x59af42=!0x1;for(const _0x4140be of _0x4d566f){const _0x10e356=_0x4140be['item'];_0x4fbd18=_0x4fbd18||_0x192636[_0x524b('0xe8')](_0x10e356);const _0x59096d=_0x34a4eb['mapper'][_0x524b('0x10')](_0x10e356);if(_0x59096d&&_0x59096d[_0x524b('0x9c')](_0x524b('0x86')))return;'elementEnd'==_0x4140be['type']&&(_0x192636[_0x524b('0xb7')](_0x10e356)&&!_0x192636[_0x524b('0x36')](_0x10e356)&&(_0x10e356[_0x524b('0x104')]||_0x50a4be[_0x524b('0xe0')]?_0x180cd7&&_0x180cd7[_0x524b('0x80')]==_0x10e356||(_0x180cd7=_0x10e356,_0x5ada36(_0x4140be[_0x524b('0x71')]),_0x59af42=!0x0):_0x41bd64=_0x41bd64||_0x4140be[_0x524b('0x71')]));}function _0x5ada36(_0x29c896){const _0x3a8df1=_0x34a4eb[_0x524b('0xcd')][_0x524b('0x4f')]('span',{'class':_0x524b('0xb3')+_0x519ce6}),_0x25b617=_0x34a4eb[_0x524b('0x99')][_0x524b('0x8e')](_0x29c896);_0x4d56b2['data'][_0x524b('0x2d')]&&_0x34a4eb[_0x524b('0xcd')]['addClass']('ck-suggestion-marker-'+_0x519ce6+_0x524b('0x2c'),_0x3a8df1),_0xe4fe4f[_0x524b('0xd')]==_0x4d56b2&&_0x34a4eb['writer'][_0x524b('0xf')]('ck-suggestion-marker--active',_0x3a8df1),_0x34a4eb['writer']['insert'](_0x25b617,_0x3a8df1),_0x34a4eb[_0x524b('0x99')]['bindElementToMarker'](_0x3a8df1,_0x1f8b8d[_0x524b('0x5f')]);}_0x4fbd18||_0x59af42||!_0x41bd64||_0x5ada36(_0x41bd64);};}(this[_0x524b('0xfc')]),{'priority':'high'}),this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x3c')]['on'](_0x524b('0xea'),(_0x3b9bac,_0x414ed1,_0x3d125a)=>{const _0x40129b=_0x3d125a[_0x524b('0x99')]['markerNameToElements'](_0x414ed1['markerName']);if(_0x40129b)for(const _0x2b9aa6 of _0x40129b)(_0x2b9aa6[_0x524b('0x8')]('ck-suggestion-marker-split')||_0x2b9aa6['hasClass'](_0x524b('0xd5')))&&(_0x3d125a[_0x524b('0x99')]['unbindElementFromMarkerName'](_0x2b9aa6,_0x414ed1[_0x524b('0x5f')]),_0x3d125a[_0x524b('0xcd')][_0x524b('0x2b')](_0x2b9aa6));},{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')]['editing'][_0x524b('0x3c')]['on'](_0x524b('0x28'),(_0x5acf0f,_0x34dc55,_0x3edb35)=>{const _0x23b75a=_0x34dc55['markerName'][_0x524b('0x76')](':')[0x1],_0x12a878=this[_0x524b('0x95')](_0x23b75a);if(!_0x12a878)return null;const _0x1d9713='add'==_0x12a878[_0x524b('0x4e')]?_0x524b('0x76'):_0x524b('0x13');if(_0x3edb35[_0x524b('0x5e')][_0x524b('0x2a')](_0x34dc55[_0x524b('0x94')],_0x5acf0f['name']))for(const _0x27f254 of _0x34dc55[_0x524b('0x94')][_0x524b('0xf6')]()){if(!_0x27f254['is']('element',_0x524b('0x4b')))continue;const _0x20056d=_0x3edb35[_0x524b('0xcd')][_0x524b('0x4f')]('span',{'class':_0x524b('0xb3')+_0x1d9713}),_0x2dc71d=_0x3edb35['mapper'][_0x524b('0x8e')](this['editor'][_0x524b('0x97')]['createPositionBefore'](_0x27f254));_0x12a878[_0x524b('0x47')][_0x524b('0x2d')]&&_0x3edb35[_0x524b('0xcd')]['addClass']('ck-suggestion-marker-'+_0x1d9713+_0x524b('0x2c'),_0x20056d),this[_0x524b('0xd')]==_0x12a878&&_0x3edb35[_0x524b('0xcd')][_0x524b('0xf')](_0x524b('0xf2'),_0x20056d),_0x3edb35[_0x524b('0xcd')]['insert'](_0x2dc71d,_0x20056d),_0x3edb35['mapper']['bindElementToMarker'](_0x20056d,_0x34dc55[_0x524b('0x5f')]);}},{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')]['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x74')]({'view':_0x524b('0x7b'),'model':_0x3804c4=>'revision-comment:'+_0x3804c4,'converterPriority':'highest'}),this['editor']['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))['dataToMarker']({'view':_0x524b('0xdd'),'model':_0x13faa0=>_0x524b('0xd6')+_0x13faa0,'converterPriority':_0x524b('0xaa')}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0x96'))['markerToData']({'model':'revision-suggestion','view':_0x425e21=>_0x524b('0x26')+_0x425e21,'converterPriority':_0x524b('0xaa')}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0xdf'))[_0x524b('0xff')]({'model':'revision-suggestion','view':_0x217794=>{const _0x13b4e4=_0x217794[_0x524b('0x5f')][_0x524b('0x76')](':')[0x1];return'insertion'!=_0x13b4e4&&_0x524b('0xf0')!=_0x13b4e4?null:{'classes':[_0x524b('0xe'),'ck-suggestion-preview-marker-'+_0x13b4e4]};}}),this['editor'][_0x524b('0x73')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this[_0x524b('0xfc')],_0x524b('0x13')),{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x3c')]['on'](_0x524b('0x3d'),Z(this[_0x524b('0xfc')],_0x524b('0x76')),{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')]['editing'][_0x524b('0x3c')]['on'](_0x524b('0x8b'),(_0x4cc1bd,_0x922277,_0x4052a7)=>{const _0x37d313=_0x4052a7[_0x524b('0x99')]['markerNameToElements'](_0x922277[_0x524b('0x5f')]);if(_0x37d313)for(const _0x25260e of _0x37d313)_0x25260e['is'](_0x524b('0xa4'))&&(_0x4052a7[_0x524b('0x99')]['unbindElementFromMarkerName'](_0x25260e,_0x922277[_0x524b('0x5f')]),_0x4052a7[_0x524b('0xcd')][_0x524b('0x2b')](_0x25260e));},{'priority':_0x524b('0x79')});}[_0x524b('0x95')](_0x323c0e){return this['_changeIdToChange'][_0x524b('0x4')](_0x323c0e);}[_0x524b('0x27')](_0x24205){this[_0x524b('0xf5')]&&this['_changeView']['destroy'](),this[_0x524b('0xf5')]=new _0x5e30ed(this[_0x524b('0xfc')]['locale'],_0x24205);const _0x172a55=this['editor']['model'][_0x524b('0xf3')][_0x524b('0x4')](_0x524b('0x54')+_0x24205['id']);return this['_changeView'][_0x524b('0xc7')]=()=>_0x357e15(this[_0x524b('0xfc')][_0x524b('0x73')],_0x172a55),this[_0x524b('0xf5')];}[_0x524b('0x62')](){this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xa0')]['selection'][_0x524b('0x84')](_0x524b('0xe2')),this['on'](_0x524b('0x8d'),(_0x3ffb5b,_0x526e25,_0x3fc6dc,_0x1421c5)=>{_0x1421c5&&this[_0x524b('0x40')][_0x524b('0x2b')](_0x1421c5),_0x3fc6dc&&(this[_0x524b('0x40')][_0x524b('0x46')]({'view':_0x3fc6dc,'stackId':_0x524b('0xdb'),'position':{'target':_0x3fc6dc['_target']}}),this[_0x524b('0x40')][_0x524b('0x31')](_0x524b('0xdb')));}),this['on'](_0x524b('0xdc'),(_0x3b970a,_0xf70efe,_0x16fa26,_0x253527)=>{this[_0x524b('0x6a')]=_0x16fa26?this[_0x524b('0x27')](_0x16fa26):null,this['editor'][_0x524b('0x97')][_0x524b('0xd1')](()=>{const _0x536fb7=this[_0x524b('0xfc')][_0x524b('0x73')];_0x253527&&_0x536fb7[_0x524b('0xce')](_0x524b('0x54')+_0x253527['id']),_0x16fa26&&_0x536fb7[_0x524b('0xce')]('revision:'+_0x16fa26['id']);});}),this[_0x524b('0x66')](this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')],_0x524b('0x20'),(_0x50cfbe,_0x33eeab)=>{if(this[_0x524b('0xd')])return;const _0x35e746=this[_0x524b('0xd9')](_0x33eeab['target']),_0x85a2d6=this['_changeIdToChange'][_0x524b('0x4')](_0x35e746);this[_0x524b('0x6a')]=_0x85a2d6?this[_0x524b('0x27')](_0x85a2d6):null;}),this[_0x524b('0x66')](this['editor']['editing'][_0x524b('0x21')][_0x524b('0xa0')],_0x524b('0x24'),(_0x584976,_0x3d29cb)=>{const _0x427cea=this['_findChangeIdFromDomTarget'](_0x3d29cb[_0x524b('0x1a')]),_0x246e20=this[_0x524b('0xae')][_0x524b('0x4')](_0x427cea);this[_0x524b('0xd')]=_0x246e20||null;});}[_0x524b('0xd9')](_0x4fc7e2){do{const _0xc6a33c=_0x4fc7e2[_0x524b('0x65')](_0x524b('0x5b'));if(_0xc6a33c)return _0xc6a33c;_0x4fc7e2=_0x4fc7e2[_0x524b('0x80')];}while(_0x4fc7e2);return null;}[_0x524b('0xa1')](){this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xd1')](_0xb5e2f1=>{for(const _0x135786 of this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xf3')])_0xb5e2f1['removeMarker'](_0x135786);});}}function Z(_0x1b66c8,_0x39fd91){return(_0x3a5624,_0x422665,_0x240ff8)=>{if(!_0x240ff8[_0x524b('0x5e')][_0x524b('0x2a')](_0x422665[_0x524b('0x94')],_0x3a5624[_0x524b('0xda')]))return;const _0x3922d7=_0x422665[_0x524b('0x94')][_0x524b('0x106')](),_0x504a7b=_0x422665['markerRange'][_0x524b('0x4c')],_0x4b2d61=_0x1b66c8[_0x524b('0x97')]['schema'];let _0x344622=null,_0x16d62b=null,_0x4350b1=!0x1,_0x32a160=!0x1;for(const _0x5446de of _0x3922d7){const _0x4a45b3=_0x5446de[_0x524b('0x2f')];_0x4350b1=_0x4350b1||_0x4b2d61[_0x524b('0xe8')](_0x4a45b3);const _0x1495cc=_0x240ff8[_0x524b('0x99')][_0x524b('0x10')](_0x4a45b3);if(_0x1495cc&&_0x1495cc['getCustomProperty'](_0x524b('0x86')))return;_0x524b('0x8a')==_0x5446de[_0x524b('0x4e')]&&(_0x4b2d61[_0x524b('0xb7')](_0x4a45b3)&&!_0x4b2d61[_0x524b('0x36')](_0x4a45b3)&&(_0x4a45b3[_0x524b('0x104')]||_0x504a7b[_0x524b('0xe0')]?_0x344622&&_0x344622[_0x524b('0x80')]==_0x4a45b3||(_0x344622=_0x4a45b3,_0x3f17c5(_0x5446de[_0x524b('0x71')]),_0x32a160=!0x0):_0x16d62b=_0x16d62b||_0x5446de[_0x524b('0x71')]));}function _0x3f17c5(_0x1bf2ed){const _0xe9bbef=_0x240ff8[_0x524b('0x99')][_0x524b('0x8e')](_0x1bf2ed),_0xb08918=_0x240ff8[_0x524b('0xcd')][_0x524b('0x4f')](_0x524b('0x67'),{'class':_0x524b('0x2e')+_0x39fd91});_0x240ff8[_0x524b('0xcd')]['insert'](_0xe9bbef,_0xb08918),_0x240ff8[_0x524b('0x99')]['bindElementToMarker'](_0xb08918,_0x422665['markerName']);}_0x4350b1||_0x32a160||!_0x16d62b||_0x3f17c5(_0x16d62b);};}_0xdcc6b(d,_0x41e455);class tt extends _0x4709cd{constructor(_0x1c7b8a){super(_0x1c7b8a);const _0x38bd2e=_0x1c7b8a[_0x524b('0xee')][_0x524b('0x4')](d);this[_0x524b('0x42')](_0x1c7b8a,_0x524b('0xe9')),this[_0x524b('0xa8')](_0x524b('0x89')),this[_0x524b('0x66')](_0x38bd2e,_0x524b('0xbc'),()=>this[_0x524b('0x0')]()),this[_0x524b('0x66')](_0x38bd2e,_0x524b('0xed'),()=>this[_0x524b('0x0')]());}['execute'](){const _0x235739=this[_0x524b('0xfc')],_0x5e9e1f=_0x235739[_0x524b('0xee')][_0x524b('0x4')](d),_0x3ff4b3=_0x5e9e1f[_0x524b('0xb6')]?_0x5e9e1f[_0x524b('0x51')][_0x524b('0x19')]:null;_0x235739['config']['get'](_0x524b('0x58'))[_0x524b('0xb5')](_0x3ff4b3);}[_0x524b('0x0')](){const {isReady:_0xfd3145,isEnabled:_0x43d424}=this[_0x524b('0xfc')][_0x524b('0xee')][_0x524b('0x4')](d);this['isEnabled']=_0xfd3145&&_0x43d424;}}class et extends _0x4709cd{constructor(_0x31c7e8,{direction:_0x3aaa9d}){super(_0x31c7e8);const _0x44ce64=_0x31c7e8[_0x524b('0xee')]['get'](d);this[_0x524b('0x42')](_0x31c7e8,'change:isReadOnly'),this['clearForceDisabled']('readOnlyMode'),this['_step']=_0x524b('0xe5')===_0x3aaa9d?0x1:-0x1,this[_0x524b('0x66')](_0x44ce64,_0x524b('0xbc'),()=>this[_0x524b('0x0')]()),this['listenTo'](_0x44ce64,_0x524b('0xed'),()=>this['refresh']());}[_0x524b('0x107')](){const _0x5d0b76=this[_0x524b('0xfc')],_0x1969ad=_0x5d0b76[_0x524b('0xee')]['get'](d),{isNavigationMode:_0x2e6701,currentChangeNumber:_0x1aa421}=_0x1969ad;_0x1969ad[_0x524b('0xd')]=_0x2e6701?_0x1969ad[_0x524b('0x51')][_0x524b('0x82')][_0x524b('0x4')](_0x1aa421+this['_step']):_0x1969ad['diff'][_0x524b('0x82')]['first'];const _0x56a9b5=_0x5d0b76[_0x524b('0x97')][_0x524b('0xf3')][_0x524b('0x4')](_0x524b('0x54')+_0x1969ad['activeChange']['id']),_0x3313a0=_0x357e15(_0x5d0b76[_0x524b('0x73')],_0x56a9b5);_0xce6de3({'target':_0x3313a0,'viewportOffset':0x28});}[_0x524b('0x0')](){const {isNavigationMode:_0x13163a,currentChangeNumber:_0x178e23,numberOfChanges:_0x377f0c,isReady:_0x5ab825,isEnabled:_0x17dcfe}=this[_0x524b('0xfc')][_0x524b('0xee')][_0x524b('0x4')](d);this[_0x524b('0xc0')]=!!(_0x17dcfe&&_0x5ab825&&_0x377f0c)&&(!_0x13163a||(0x1===this[_0x524b('0xc3')]?_0x178e23<_0x377f0c-0x1:_0x178e23>0x0));}}
23
+ const _0x98e0=['numberOfChanges','document','_getChangeFromId','startsWith','clear','toViewPosition','from','_step','revision','done','pairId','bindElementToMarker','getWalker','markerName','suggestion','execute','createRange','plugins','showPreviousChange','currentChangeNumber','for','removeMarker','data-revision-','isAtStart','element','refresh','revision-end','getAttributes','isBefore','isAfter','resolve','elementStart','newRevisionId','markersStart','forward','isRemoveSuggestion','_getViewForChange','_processTape','side','bind','enqueueChange','addMarker:revision-suggestion:deletion','_update','conversion','revision-suggestion','markersEnd','change:isEnabled','isAddSuggestion','addMarker:revision','listenTo','item','attribute:vid','collaboration.channelId','stop','_appendChild','findIndex','revisionHistory','destroy','isIncorrect','mouseover','type','removeMarker:revision','nextPosition','revision:','config','_refreshStartEndIndex','text','toViewElement','_initInteractions','markerToData','_getViewObj','activeView','writer','unshift','softBreak','shift','concat','upcast','nextSibling','_cleanMarkers','merge','_getRevisionsRange','next','map','editor','isContent','useFillerType','stopListening','change:isReadOnly','_joinTapes','markerRange','forceDisabled','restoreRevision','clearForceDisabled','deletions','getCustomProperty','addRevisionData','parent','getChild','isReady','createRevision','ck-suggestion-marker','isEnabled','length','revision-viewer','marked','showStack','isCollapsed','remove','toViewRange','_makeTape','offsetSize','locale','_markMarkers','test','markerToHighlight','isObject','ck-suggestion-marker-merge','ck-suggestion-marker-','splice','code','string','oldRevisionId','wrap','isAdded','set','compare','ck-suggestion-preview-marker','insertions','modelRange','getRootNames','ck-editor__editable__overlay','isSuggestion','keys','getIndex','repository','_removeMissingPairs','_findChangeIdFromDomTarget','commands','schema','processor','comment','markerNameToElements','isRemoved','endIndex','editing','_threeWayMerge','diffData','level','dataDowncast','userId','delete','reconvertMarker','init','revisionHistoryLabel','readOnlyMode','view','isBlock','first','createPositionFromPath','high','data-change-id','abs','_changeIdToChange','startIndex','filter','nodeAfter','previousPosition','enableReadOnlyMode','insertion','getRoot','authors','object','_getDiff','diff','setAttribute','change:activeView','getRevision','_setConversion','insert','split','_changeView','_removeRevisionMarkers','addHighlight','downcastDispatcher','_setDistance','ck-suggestion-marker--active','mapper','_removeUnsupportedChanges','name','changes','showNextChange','_data','elementToAttribute','target','span','dataToMarker','revision-suggestion:','_markSuggestions','_markMismatchedRemovedTags','consumable','RevisionsRepository','start','forEach','createAttributeElement','unbindElementFromMarkerName','revision-comment:','low','attributes','removeClass','backward','_setData','editingDowncast','_fixObsoleteTags','addRevision','activeChange','element:pre','_cleanUp','error','RevisionViewer','vid','ck-suggestion-marker-split','deletion','catch','createUIElement','adapter','return','isLimit','hasClass','includes','_target','isAtEnd','roots','then','change','_balloon','getAttribute','viewItem','data','revision-start','elementEnd','checkAttribute','model','_markInsertions','<p></p>','_makeModelFromTape','-new','markers','WidgetToolbarRepository','suggestion:','parse','consume','push','ck-suggestion-preview-marker-','change:isReady','isInline','createRangeIn','maxOffset','sort','children','_makeModelFromViewString','setData','values','end','mousedown','index','toModel','vid_start','get','vid_end','has','highest','add','addClass','slice','loadRevisionData','hasAttribute','addMarker:revision-suggestion:insertion','change:activeChange','distance','isEqual','removeMarker:revision-suggestion'];(function(_0x2e1f4d,_0x98e0f4){const _0x189b5a=function(_0x1980a2){while(--_0x1980a2){_0x2e1f4d['push'](_0x2e1f4d['shift']());}};_0x189b5a(++_0x98e0f4);}(_0x98e0,0x125));const _0x189b=function(_0x2e1f4d,_0x98e0f4){_0x2e1f4d=_0x2e1f4d-0x0;let _0x189b5a=_0x98e0[_0x2e1f4d];return _0x189b5a;};import{Plugin as _0x202d92,Command as _0x460336}from'ckeditor5/src/core';import{ObservableMixin as _0x10a00a,mix as _0xc947e1,scrollViewportToShowTarget as _0x587c20}from'ckeditor5/src/utils';import{ContextualBalloon as _0x19d05d}from'ckeditor5/src/ui';import{DocumentFragment as _0x485c4a,Element as _0x27f781,Text as _0x3c37f0,ViewDocumentFragment as _0x36cdc2,ViewText as _0x244946,ViewElement as _0x2abda1,ViewContainerElement as _0x17da0d,ViewAttributeElement as _0x48d779,ViewEmptyElement as _0x4cf78f,ViewRawElement as _0x2d5959,ViewUIElement as _0x5507d9}from'ckeditor5/src/engine';import{Users as _0xd2d1a5,getMarkerDomElement as _0x4d1f24}from'ckeditor5-collaboration/src/collaboration-core';import _0x2164ba from'./ui/revisionviewer/changedetailsview';import _0x2e1f75 from'./revisionsrepository';import _0x84517a from'./changeitem';import _0x5323d1 from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x17da0d,'a':_0x48d779,'e':_0x4cf78f,'r':_0x2d5959,'u':_0x5507d9};export default class d extends _0x202d92{static get['pluginName'](){return _0x189b('0xd0');}static get['requires'](){return[_0xd2d1a5,_0x19d05d,_0x2e1f75];}constructor(..._0x165b69){super(..._0x165b69),this['repository']=this['editor'][_0x189b('0x6')][_0x189b('0x101')](_0x189b('0xbe')),this['set'](_0x189b('0xcc'),null),this['set']('activeView',null),this[_0x189b('0x72')]('diff',null),this['set']('isReady',!0x1),this[_0x189b('0x72')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5bceab,_0x509cb1,_0x111b8c)=>{this[_0x189b('0xcc')]=null,this[_0x189b('0x3c')]=null,this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0x91')][_0x189b('0xdf')](_0x1a298f=>{for(const _0x559226 of this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0x91')][_0x189b('0x110')][_0x189b('0xdd')])_0x111b8c?_0x1a298f[_0x189b('0xc6')](_0x189b('0x78'),_0x559226):_0x1a298f['addClass'](_0x189b('0x78'),_0x559226);});}),this[_0x189b('0x1c')]('isNavigationMode')['to'](this,_0x189b('0xcc'),_0x3db0de=>null!==_0x3db0de),this[_0x189b('0x1c')](_0x189b('0x8'))['to'](this,_0x189b('0x58'),this,_0x189b('0xa3'),this,'activeChange',(_0x2d2a76,_0x365751,_0x130a2e)=>_0x2d2a76&&_0x130a2e?_0x365751[_0x189b('0xb3')][_0x189b('0x7b')](_0x130a2e):0x0),this[_0x189b('0x1c')](_0x189b('0x10f'))['to'](this,_0x189b('0x58'),this,_0x189b('0xa3'),(_0x2ea613,_0x2d9f1d)=>_0x2ea613?_0x2d9f1d['changes'][_0x189b('0x5c')]:0x0),this[_0x189b('0xaa')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this[_0x189b('0xe0')]=this[_0x189b('0x49')]['plugins'][_0x189b('0x101')](_0x19d05d);}[_0x189b('0x8e')](){const _0xdcd6bc=this[_0x189b('0x49')],_0x551a4d=new et(_0xdcd6bc,{'direction':_0x189b('0xc7')}),_0x3ad686=new et(_0xdcd6bc,{'direction':_0x189b('0x17')});_0xdcd6bc[_0x189b('0x7f')]['add'](_0x189b('0x7'),_0x551a4d),_0xdcd6bc[_0x189b('0x7f')][_0x189b('0x105')](_0x189b('0xb4'),_0x3ad686),_0xdcd6bc[_0x189b('0x7f')][_0x189b('0x105')](_0x189b('0x51'),new tt(_0xdcd6bc)),this['on']('change:numberOfChanges',()=>{_0x551a4d[_0x189b('0xe')](),_0x3ad686[_0x189b('0xe')]();}),this[_0x189b('0xa7')](),this[_0x189b('0x39')](),_0xdcd6bc[_0x189b('0x9d')](_0x189b('0x5d')),_0xdcd6bc[_0x189b('0x6')][_0x189b('0x103')](_0x189b('0xed'))&&_0xdcd6bc[_0x189b('0x6')]['get'](_0x189b('0xed'))[_0x189b('0x50')](_0x189b('0x5d'));}async['getRevisionData'](_0x5014cc){await this['loadRevisionData'](_0x5014cc);const _0x3e3a7c={};for(const _0x3622a5 in _0x5014cc[_0x189b('0x88')]){const _0x5a0ff4=this['_removeRevisionMarkers'](JSON['parse'](_0x5014cc['diffData'][_0x3622a5][_0x189b('0x75')])),_0x27dd77=this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0x91')][_0x189b('0x110')],_0x32c691=new _0x36cdc2(_0x27dd77,_0x5a0ff4[_0x189b('0x48')](_0x49e998=>this[_0x189b('0x3b')](_0x49e998)));this['editor'][_0x189b('0xe3')][_0x189b('0x81')][_0x189b('0x4b')](_0x189b('0x5e')),_0x3e3a7c[_0x3622a5]=this[_0x189b('0x49')]['data'][_0x189b('0x81')]['toData'](_0x32c691),this[_0x189b('0x49')]['data'][_0x189b('0x81')][_0x189b('0x4b')]('default');}return _0x3e3a7c;}[_0x189b('0xab')](_0x5f866f){return(_0x5f866f=_0x5f866f[_0x189b('0x9a')](_0x568adb=>!_0x568adb[_0x189b('0xb2')]||_0x189b('0xe4')!==_0x568adb[_0x189b('0xb2')]&&_0x189b('0xf')!==_0x568adb[_0x189b('0xb2')]))[_0x189b('0xc0')](_0x134176=>{'string'!=typeof _0x134176&&(_0x134176[_0x189b('0xf8')]=this[_0x189b('0xab')](_0x134176['children']),_0x134176[_0x189b('0xc5')]=_0x134176[_0x189b('0xc5')][_0x189b('0x9a')](_0x572bea=>!_0x572bea[0x0][_0x189b('0x112')](_0x189b('0xb'))));}),_0x5f866f;}[_0x189b('0x73')](_0x1c3a9e,_0x735fe1,_0x2db780=!0x1){if(!this['isEnabled'])return;const _0x35cfd6=this[_0x189b('0xa3')],_0x17286f=this[_0x189b('0x7c')],_0xb4221d='string'==typeof _0x1c3a9e?_0x17286f[_0x189b('0xa6')](_0x1c3a9e):_0x1c3a9e,_0x418fc2='string'==typeof _0x735fe1?_0x17286f[_0x189b('0xa6')](_0x735fe1):_0x735fe1,_0x243576=_0xb4221d['id'],_0x2d9696=_0x418fc2?_0x418fc2['id']:null;if(!_0x2db780&&this[_0x189b('0xa3')]&&this[_0x189b('0xa3')][_0x189b('0x15')]===_0x243576&&this[_0x189b('0xa3')][_0x189b('0x6f')]===_0x2d9696)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this[_0x189b('0xcc')]=null,this['diff']=new _0x5323d1(_0x243576,_0x2d9696);const _0x14a2e2=this[_0x189b('0x46')](_0xb4221d,_0x418fc2,!0x0)[_0x189b('0x48')](_0x442fe4=>this['loadRevisionData'](_0x442fe4));return _0x14a2e2[_0x189b('0xf1')](new Promise(_0x2e1990=>{setTimeout(_0x2e1990,0x14);})),Promise['all'](_0x14a2e2)[_0x189b('0xde')](()=>{if(!this[_0x189b('0x5b')])return;this['_cleanUp']();const _0x8fa132=this[_0x189b('0xa2')](_0x243576,_0x2d9696);this[_0x189b('0xa3')][_0x189b('0xc8')](_0x8fa132);for(const _0x47d8d9 of this[_0x189b('0xa3')][_0x189b('0xb3')])this[_0x189b('0x98')]['set'](_0x47d8d9['id'],_0x47d8d9);this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0x1d')]({'isUndoable':!0x1},_0xba72ee=>{for(const _0x182613 of Object[_0x189b('0x7a')](_0x8fa132[_0x189b('0xe7')])){const _0x427f18=this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0x110')][_0x189b('0x9f')](_0x182613);_0xba72ee[_0x189b('0x61')](_0xba72ee[_0x189b('0xf5')](_0x427f18)),_0xba72ee[_0x189b('0xa8')](_0x8fa132[_0x189b('0xe7')][_0x182613],_0x427f18,0x0);}}),this['isReady']=!0x0;})[_0x189b('0xd4')](_0x34792a=>{console[_0x189b('0xcf')](_0x34792a),this[_0x189b('0xce')](),_0x35cfd6?this[_0x189b('0xa3')]=_0x35cfd6:this[_0x189b('0x49')][_0x189b('0xfa')](_0x189b('0xe9')),this[_0x189b('0x58')]=!0x0;});}[_0x189b('0x2e')](){this[_0x189b('0x3c')]=null,this[_0x189b('0xaa')]&&this[_0x189b('0xaa')]['destroy']();}[_0x189b('0x55')](_0x5b3d26,_0x4d5292){const _0x5138ae=this[_0x189b('0x7c')][_0x189b('0x59')](_0x5b3d26);return _0x5138ae['on'](_0x189b('0x1f'),(_0x3f6a52,_0x472014,_0x5c5013)=>_0x4d5292(_0x472014,_0x5c5013,_0x5138ae)),this['repository'][_0x189b('0xcb')](_0x5138ae),_0x5138ae;}[_0x189b('0x108')](_0x47cbf4){if(!_0x47cbf4||_0x47cbf4['diffData'])return Promise[_0x189b('0x13')]();{const _0x5117fe=this[_0x189b('0x49')][_0x189b('0x35')][_0x189b('0x101')](_0x189b('0x29'));return this[_0x189b('0xd6')][_0x189b('0xa6')]({'channelId':_0x5117fe,'revisionId':_0x47cbf4['id']})[_0x189b('0xde')](_0x196625=>{_0x47cbf4['_update']({'diffData':_0x196625[_0x189b('0x88')]},!0x0);});}}[_0x189b('0xce')](){this[_0x189b('0xcc')]=null,this[_0x189b('0x44')](),this[_0x189b('0xaa')]&&this['_changeView'][_0x189b('0x2e')](),this['_changeView']=null,this['_changeIdToChange'][_0x189b('0x113')]();}[_0x189b('0x63')](_0x52c4c9){const _0x439e7c=Array['from'](_0x52c4c9[_0x189b('0xec')])[_0x189b('0x9a')](([_0x3b2def,_0x48948b])=>_0x3b2def[_0x189b('0x112')](_0x189b('0x34'))&&!_0x48948b[_0x189b('0x60')]),_0x37ae7a=Array[_0x189b('0x115')](this['editor'][_0x189b('0xe7')][_0x189b('0xf5')](_0x52c4c9)[_0x189b('0x1')]({'singleCharacters':!0x0}));if(0x0!=_0x439e7c[_0x189b('0x5c')])for(const _0x862b21 of _0x37ae7a){const [_0x2e1cd4,_0x4bc86b]=_0x439e7c[0x0],[,_0x3fe25b,_0x1c9372]=_0x2e1cd4[_0x189b('0xa9')](':');if(_0x4bc86b[_0x189b('0xfc')][_0x189b('0x10d')](_0x862b21[_0x189b('0x33')])&&_0x439e7c[_0x189b('0x40')](),(_0x862b21[_0x189b('0x9c')]['isEqual'](_0x4bc86b['start'])||_0x862b21['previousPosition'][_0x189b('0x12')](_0x4bc86b[_0x189b('0xbf')]))&&(_0x189b('0x9e')==_0x3fe25b?_0x862b21[_0x189b('0x71')]={'userId':_0x1c9372}:_0x189b('0xd3')==_0x3fe25b&&(_0x862b21[_0x189b('0x84')]={'userId':_0x1c9372})),0x0==_0x439e7c['length'])break;}return _0x37ae7a;}['_refreshStartEndIndex'](_0x216449){const _0xd5cda5=new Map();for(let _0x1fe9c8=0x0;_0x1fe9c8<_0x216449[_0x189b('0x5c')];_0x1fe9c8++)_0x189b('0x37')===_0x216449[_0x1fe9c8]['type']?(_0x216449[_0x1fe9c8][_0x189b('0x27')][_0x189b('0x99')]=_0x1fe9c8,_0x216449[_0x1fe9c8][_0x189b('0x27')][_0x189b('0x85')]=_0x1fe9c8):(_0x189b('0x14')===_0x216449[_0x1fe9c8]['type']?_0x216449[_0x1fe9c8]['item']['startIndex']=_0x1fe9c8:_0x189b('0xe5')===_0x216449[_0x1fe9c8][_0x189b('0x31')]&&(_0x216449[_0x1fe9c8]['item']['endIndex']=_0x1fe9c8),_0xd5cda5[_0x189b('0x72')](_0x216449[_0x1fe9c8]['id'],_0x1fe9c8));for(const _0x2121a5 of _0xd5cda5[_0x189b('0xfb')]())_0x189b('0x14')===_0x216449[_0x2121a5][_0x189b('0x31')]?_0x216449[_0x2121a5][_0x189b('0x27')][_0x189b('0x85')]=_0xd5cda5[_0x189b('0x101')](_0x216449[_0x2121a5][_0x189b('0x119')]):_0x189b('0xe5')===_0x216449[_0x2121a5]['type']&&(_0x216449[_0x2121a5][_0x189b('0x27')][_0x189b('0x99')]=_0xd5cda5[_0x189b('0x101')](_0x216449[_0x2121a5][_0x189b('0x119')]));}[_0x189b('0x1a')](_0x3016d6){for(let _0x21396f=0x0;_0x21396f<_0x3016d6[_0x189b('0x5c')];_0x21396f++){if(_0x189b('0x14')===_0x3016d6[_0x21396f]['type'])_0x3016d6[_0x21396f][_0x189b('0x27')]['startIndex']=_0x21396f;else{if(_0x189b('0xe5')===_0x3016d6[_0x21396f][_0x189b('0x31')]){_0x3016d6[_0x21396f][_0x189b('0x27')][_0x189b('0x85')]=_0x21396f;const _0x45bc22=_0x3016d6[_0x21396f][_0x189b('0x27')][_0x189b('0x99')];_0x3016d6[_0x45bc22][_0x189b('0x119')]=_0x3016d6[_0x21396f]['id'],_0x3016d6[_0x21396f][_0x189b('0x119')]=_0x3016d6[_0x45bc22]['id'];}else _0x3016d6[_0x21396f][_0x189b('0x27')][_0x189b('0x99')]=_0x21396f,_0x3016d6[_0x21396f][_0x189b('0x27')][_0x189b('0x85')]=_0x21396f,_0x3016d6[_0x21396f][_0x189b('0x119')]=null;}_0x3016d6[_0x21396f][_0x189b('0x16')]||(_0x3016d6[_0x21396f][_0x189b('0x16')]=[],_0x3016d6[_0x21396f]['markersEnd']=[]);}}['_markInsertions'](_0x1ae0af,_0x4e581f){const _0xdc5d18=_0x1ae0af[_0x189b('0x9a')](_0x3f4d24=>!_0x3f4d24['isAdded']);for(let _0x5b6cd0=0x0;_0x5b6cd0<_0x4e581f['length'];_0x5b6cd0++)_0x4e581f[_0x5b6cd0][_0x189b('0x71')]&&(_0xdc5d18[_0x5b6cd0][_0x189b('0x71')]=_0x4e581f[_0x5b6cd0][_0x189b('0x71')]);}[_0x189b('0xf9')](_0x2e554a){const _0x2f6eca=JSON[_0x189b('0xef')](_0x2e554a),_0x49d287=this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0x91')][_0x189b('0x110')],_0x2b2bf1=new _0x36cdc2(_0x49d287,_0x2f6eca['map'](_0x1c5322=>this['_getViewObj'](_0x1c5322)));return this[_0x189b('0x49')][_0x189b('0xe3')][_0x189b('0xff')](_0x2b2bf1);}[_0x189b('0x3b')](_0x3ef376){const _0x310269=this['editor'][_0x189b('0x86')][_0x189b('0x91')]['document'];if(_0x189b('0x6e')==typeof _0x3ef376)return new _0x244946(_0x310269,_0x3ef376);{const _0x33abe6=_0x3ef376[_0x189b('0xf8')][_0x189b('0x48')](_0x182368=>this['_getViewObj'](_0x182368));return new(Y[_0x3ef376[(_0x189b('0x31'))]]||_0x2abda1)(_0x310269,_0x3ef376['name'],_0x3ef376[_0x189b('0xc5')],_0x33abe6);}}[_0x189b('0xa2')](_0x2d1863,_0xbd1256=null){const _0x595908=this['repository'][_0x189b('0xa6')](_0x2d1863),_0x358df7=_0xbd1256?this['repository'][_0x189b('0xa6')](_0xbd1256):null,_0x1bf422=this[_0x189b('0x46')](_0x595908,_0x358df7),_0x2444cb=_0x1bf422[_0x1bf422[_0x189b('0x5c')]-0x1],_0x287aaf=new Map();for(const _0x11273b of _0x1bf422){_0x11273b[_0x189b('0xe7')]={};for(const _0x42efa2 of _0x11273b[_0x189b('0xa0')])_0x287aaf[_0x189b('0x72')](_0x42efa2['id'],_0x42efa2);for(const _0x43419d of this[_0x189b('0x49')][_0x189b('0xe7')]['document'][_0x189b('0x77')]())_0x11273b['diffData'][_0x43419d]||(_0x11273b[_0x189b('0x88')][_0x43419d]={'insertions':'[]','deletions':'[]'}),_0x11273b['model'][_0x43419d]={'insertions':this['_makeModelFromViewString'](_0x11273b[_0x189b('0x88')][_0x43419d][_0x189b('0x75')]),'deletions':this['_makeModelFromViewString'](_0x11273b[_0x189b('0x88')][_0x43419d]['deletions'])};}const _0x39e77b={'model':{},'changes':[]};for(const _0xbc909c of this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0x110')][_0x189b('0x77')]()){let _0x13b475=null,_0x5ee924=0x0;const _0x1520eb=new Map(Array[_0x189b('0x115')](_0x595908[_0x189b('0xe7')][_0xbc909c][_0x189b('0x75')][_0x189b('0xec')])['filter'](([_0x874a24])=>!_0x874a24[_0x189b('0x112')](_0x189b('0x34'))));let _0x232522=0x0;for(const _0x146338 of _0x1bf422){const _0x97fe89=this[_0x189b('0x63')](_0x146338[_0x189b('0xe7')][_0xbc909c][_0x189b('0x75')]);_0x146338==_0x595908?(_0x13b475=_0x97fe89,_0x5ee924=_0x13b475[_0x189b('0x5c')],_0x13b475[_0x189b('0xc0')](_0x18c91c=>{_0x18c91c['id']=_0x232522++;}),this[_0x189b('0x1a')](_0x13b475)):this[_0x189b('0xe8')](_0x13b475,_0x97fe89);const _0x54fcfc=_0x13b475['filter'](_0x293364=>!_0x293364[_0x189b('0x71')])[_0x189b('0x48')](_0x1d84d6=>_0x1d84d6['id']);let _0x3e426d=0x0;const _0x192eb0=this[_0x189b('0x63')](_0x146338[_0x189b('0xe7')][_0xbc909c][_0x189b('0x53')]);_0x192eb0[_0x189b('0xc0')](_0x418b11=>{_0x418b11[_0x189b('0x84')]?_0x418b11['id']=_0x5ee924++:_0x418b11['id']=_0x54fcfc[_0x3e426d++];}),this[_0x189b('0x1a')](_0x192eb0),this[_0x189b('0xae')](_0x13b475,_0x189b('0x71')),this['_setDistance'](_0x192eb0,_0x189b('0x84')),_0x146338==_0x595908&&this['_markMarkers'](_0x13b475,_0x1520eb),_0x13b475=this[_0x189b('0x4e')](_0x13b475,_0x192eb0),this[_0x189b('0x36')](_0x13b475),this[_0x189b('0xae')](_0x13b475,'isRemoved');}_0x13b475=_0x13b475[_0x189b('0x9a')](_0x20a581=>!(_0x20a581[_0x189b('0x71')]&&_0x20a581[_0x189b('0x84')]));const _0x2ad139=new Map(_0x2444cb['model'][_0xbc909c][_0x189b('0x53')][_0x189b('0xec')]),_0x179ddd=new Set(_0x1520eb[_0x189b('0x7a')]());for(const _0x50b626 of _0x2ad139[_0x189b('0x7a')]())_0x179ddd[_0x189b('0x8c')](_0x50b626);this[_0x189b('0xbb')](_0x13b475,_0x179ddd),this[_0x189b('0xca')](_0x13b475),_0x13b475=this['_removeMissingPairs'](_0x13b475),_0x13b475=this[_0x189b('0xbc')](_0x13b475),_0x13b475=this[_0x189b('0xb1')](_0x13b475);const {root:_0x29c966,changes:_0x5082e4}=this[_0x189b('0xea')](_0x13b475,_0x287aaf);_0x39e77b[_0x189b('0xe7')][_0xbc909c]=_0x29c966,_0x39e77b[_0x189b('0xb3')]=_0x39e77b[_0x189b('0xb3')][_0x189b('0x41')](_0x5082e4);}return _0x39e77b;}[_0x189b('0x66')](_0x4b1584,_0x5e7ece){for(let _0x5135a5=0x0;_0x5135a5<_0x4b1584[_0x189b('0x5c')];_0x5135a5++)for(const [_0x35a5b2,_0x19fd88]of _0x5e7ece)_0x19fd88[_0x189b('0xbf')]['isEqual'](_0x4b1584[_0x5135a5][_0x189b('0x9c')])&&_0x4b1584[_0x5135a5][_0x189b('0x16')][_0x189b('0xf1')](_0x35a5b2),_0x19fd88[_0x189b('0xfc')][_0x189b('0x10d')](_0x4b1584[_0x5135a5][_0x189b('0x33')])&&_0x4b1584[_0x5135a5]['markersEnd'][_0x189b('0xf1')](_0x35a5b2);}[_0x189b('0x4e')](_0x1e6f22,_0x1cbe0c){let _0x299a70=[],_0x569f5a=0x0,_0x832c4b=0x0;for(;_0x569f5a<_0x1e6f22[_0x189b('0x5c')]||_0x832c4b<_0x1cbe0c[_0x189b('0x5c')];){const _0x87469e=_0x1e6f22[_0x569f5a]||{},_0x28ab16=_0x1cbe0c[_0x832c4b]||{};if(_0x87469e['id']==_0x28ab16['id'])_0x569f5a++,_0x832c4b++,_0x299a70[_0x189b('0xf1')](_0x87469e);else{if(_0x28ab16[_0x189b('0x84')]&&_0x87469e[_0x189b('0x71')]){const {commonTape:_0x571cce,iEnd:_0x590b42,jEnd:_0x1ed0cc}=this[_0x189b('0x87')](_0x1e6f22,_0x569f5a,_0x1cbe0c,_0x832c4b);_0x299a70=_0x299a70[_0x189b('0x41')](_0x571cce),_0x569f5a=_0x590b42,_0x832c4b=_0x1ed0cc;}else _0x28ab16[_0x189b('0x84')]?(_0x832c4b++,_0x299a70[_0x189b('0xf1')](_0x28ab16)):(_0x569f5a++,_0x299a70[_0x189b('0xf1')](_0x87469e));}}return _0x299a70;}[_0x189b('0xbb')](_0x48190c,_0x50d755){const _0x11857e=[];for(let _0x5c26d1=0x0;_0x5c26d1<_0x48190c[_0x189b('0x5c')];_0x5c26d1++){for(let _0x4ab75d=0x0;_0x4ab75d<_0x48190c[_0x5c26d1][_0x189b('0x16')][_0x189b('0x5c')];_0x4ab75d++){const _0x50b141=_0x48190c[_0x5c26d1][_0x189b('0x16')][_0x4ab75d];if(!_0x50d755[_0x189b('0x103')](_0x50b141))continue;const {group:_0x39768f,type:_0x3c97c2,authorId:_0x5b1415}=_0x3d1000(_0x50b141);_0x189b('0x21')!=_0x39768f||'insertion'!=_0x3c97c2&&'deletion'!=_0x3c97c2||(_0x11857e[_0x189b('0x3e')]({'type':_0x3c97c2,'name':_0x50b141,'userId':_0x5b1415}),_0x48190c[_0x5c26d1]['markersStart'][_0x189b('0x6c')](_0x4ab75d,0x1),_0x4ab75d--);}_0x1f72ae(_0x48190c[_0x5c26d1]);for(let _0x3be3ee=0x0;_0x3be3ee<_0x48190c[_0x5c26d1]['markersEnd']['length'];_0x3be3ee++){const _0x1ccdfb=_0x48190c[_0x5c26d1][_0x189b('0x22')][_0x3be3ee];if(!_0x50d755[_0x189b('0x103')](_0x1ccdfb))continue;const {group:_0x24d45e,type:_0x82d8a1}=_0x3d1000(_0x1ccdfb);if(_0x189b('0x21')!=_0x24d45e||_0x189b('0x9e')!=_0x82d8a1&&'deletion'!=_0x82d8a1)continue;_0x48190c[_0x5c26d1][_0x189b('0x22')]['splice'](_0x3be3ee,0x1),_0x3be3ee--;const _0x20751f=_0x11857e[_0x189b('0x2c')](_0x501502=>_0x501502[_0x189b('0xb2')]==_0x1ccdfb);_0x20751f>-0x1&&_0x11857e['splice'](_0x20751f,0x1);}}function _0x3d1000(_0x169048){const _0x561064=_0x169048['split'](':');return{'group':_0x561064[0x0],'type':_0x561064[0x1],'subType':_0x561064['length']>=0x5?_0x561064[0x2]:null,'id':_0x561064[_0x189b('0x5c')]<0x5?_0x561064[0x2]:_0x561064[0x3],'authorId':_0x561064['length']<0x5?_0x561064[0x3]:_0x561064[0x4],'markerCount':0x6==_0x561064['length']?_0x561064[0x5]:null};}function _0x1f72ae(_0x2af722){for(let _0x319561=0x0;_0x319561<_0x11857e[_0x189b('0x5c')];_0x319561++){if(_0x2af722['isAdded']&&_0x189b('0x9e')==_0x11857e[_0x319561][_0x189b('0x31')])return _0x2af722[_0x189b('0x24')]=_0x11857e[_0x319561],void delete _0x2af722['isAdded'];if(!_0x2af722[_0x189b('0x71')]&&!_0x2af722[_0x189b('0x84')]&&'deletion'==_0x11857e[_0x319561][_0x189b('0x31')])return void(_0x2af722[_0x189b('0x18')]=_0x11857e[_0x319561]);}}}[_0x189b('0xae')](_0x12f886,_0x214bb1){let _0x350612=0x0,_0x13c0c2=!0x1;const _0x264200=new Map();for(const _0x5910dc of _0x12f886)_0x5910dc[_0x214bb1]?_0x13c0c2&&(_0x350612++,_0x13c0c2=!0x1):(_0x350612++,_0x13c0c2=!0x0),_0x264200[_0x189b('0x72')](_0x5910dc['id'],_0x350612);for(let _0x2e6acb=0x0;_0x2e6acb<_0x12f886[_0x189b('0x5c')];_0x2e6acb++){if(_0x189b('0x84')==_0x214bb1&&_0x12f886[_0x2e6acb][_0x189b('0x71')]||_0x189b('0x71')==_0x214bb1&&_0x12f886[_0x2e6acb]['isRemoved'])continue;if(_0x189b('0x37')==_0x12f886[_0x2e6acb][_0x189b('0x31')]){_0x12f886[_0x2e6acb][_0x189b('0x10c')]=0x0;continue;}const _0x44af46=_0x264200[_0x189b('0x101')](_0x12f886[_0x2e6acb][_0x189b('0x119')]),_0x286b4f=_0x264200['get'](_0x12f886[_0x2e6acb]['id']);_0x12f886[_0x2e6acb]['distance']=_0x44af46-_0x286b4f;}}[_0x189b('0x46')](_0x236c9f,_0x3d5c4f,_0x42431c=!0x1){const _0x5573f8=[];let _0x39ca2f=this['repository']['getIndex'](_0x236c9f),_0x36bbf2=this['repository']['getIndex'](_0x3d5c4f);for(-0x1==_0x36bbf2&&(_0x36bbf2=this[_0x189b('0x7c')]['_revisions'][_0x189b('0x5c')],_0x42431c=!0x1);_0x39ca2f<_0x36bbf2;)_0x5573f8[_0x189b('0xf1')](this[_0x189b('0x7c')]['getRevision'](_0x39ca2f)),_0x39ca2f++;return _0x42431c&&_0x5573f8[_0x189b('0xf1')](this[_0x189b('0x7c')]['getRevision'](_0x39ca2f)),_0x5573f8;}[_0x189b('0x87')](_0x38181e,_0x24c5b8,_0x579426,_0x3129ad){const _0x477c9c=this['editor'][_0x189b('0xe7')]['schema'];let _0x277610=_0x24c5b8;for(;_0x38181e[_0x277610]&&_0x38181e[_0x277610][_0x189b('0x71')];)_0x277610++;let _0x2ea386=_0x3129ad;for(;_0x579426[_0x2ea386]&&_0x579426[_0x2ea386][_0x189b('0x84')];)_0x2ea386++;_0x2c0a73(_0x38181e,_0x24c5b8,_0x277610),_0x2c0a73(_0x579426,_0x3129ad,_0x2ea386);const _0x53beb3=_0x579426[_0x189b('0x107')](_0x3129ad,_0x2ea386)[_0x189b('0x41')](_0x38181e[_0x189b('0x107')](_0x24c5b8,_0x277610));return _0x53beb3['sort']((_0x5e6144,_0x410c65)=>_0x5e6144[_0x189b('0x1b')]!=_0x410c65[_0x189b('0x1b')]?_0x5e6144['side']-_0x410c65['side']:_0x5e6144['level']!=_0x410c65['level']?_0x5e6144[_0x189b('0x89')]-_0x410c65['level']:_0x5e6144[_0x189b('0x10c')]!=_0x410c65['distance']?_0x410c65['distance']-_0x5e6144[_0x189b('0x10c')]:!!_0x5e6144['isAdded']!=!!_0x410c65[_0x189b('0x71')]?-0x1==_0x5e6144['side']||0x0==_0x5e6144[_0x189b('0x1b')]?_0x5e6144[_0x189b('0x71')]?-0x1:0x1:_0x5e6144[_0x189b('0x71')]?0x1:-0x1:_0x5e6144[_0x189b('0xfe')]-_0x410c65['index']),{'commonTape':_0x53beb3,'iEnd':_0x277610,'jEnd':_0x2ea386};function _0x2c0a73(_0x4caaa5,_0x5dd83d,_0xd20977){let _0x12a7a8=-0x1,_0x4a6368=Number['POSITIVE_INFINITY'],_0x535cf6=!0x0;for(let _0x46d2c3=_0x5dd83d;_0x46d2c3<_0xd20977;_0x46d2c3++)if(_0x477c9c[_0x189b('0xf4')](_0x4caaa5[_0x46d2c3][_0x189b('0x27')])||(_0x535cf6=!0x1),_0x4caaa5[_0x46d2c3][_0x189b('0x27')][_0x189b('0x99')]<_0x5dd83d&&(_0x12a7a8=_0x46d2c3),_0x4caaa5[_0x46d2c3][_0x189b('0x27')][_0x189b('0x85')]>=_0xd20977){_0x4a6368=_0x46d2c3;break;}_0x535cf6&&(_0x12a7a8=_0xd20977-0x1);for(let _0x4a5134=_0x5dd83d;_0x4a5134<_0xd20977;_0x4a5134++)_0x4caaa5[_0x4a5134][_0x189b('0x1b')]=_0x4a5134<=_0x12a7a8?-0x1:_0x4a5134<_0x4a6368?0x0:0x1,_0x4caaa5[_0x4a5134]['index']=_0x4a5134;let _0xd37254=0x0;for(let _0x14d5d5=_0x5dd83d;_0x14d5d5<=_0x12a7a8;_0x14d5d5++)0x0==_0x4caaa5[_0x14d5d5][_0x189b('0x10c')]?_0x4caaa5[_0x14d5d5]['level']=_0xd37254:(_0xd37254++,_0x4caaa5[_0x14d5d5][_0x189b('0x89')]=_0xd37254,_0xd37254++);for(let _0x8ce949=_0x5dd83d;_0x8ce949<_0xd20977;_0x8ce949++)0x0==_0x4caaa5[_0x8ce949][_0x189b('0x1b')]&&(_0x4caaa5[_0x8ce949][_0x189b('0x89')]=_0xd37254);_0xd37254=0x0;for(let _0x3e7ec9=_0xd20977-0x1;_0x3e7ec9>=_0x4a6368;_0x3e7ec9--)0x0==_0x4caaa5[_0x3e7ec9][_0x189b('0x10c')]?_0x4caaa5[_0x3e7ec9][_0x189b('0x89')]=_0xd37254:(_0xd37254--,_0x4caaa5[_0x3e7ec9][_0x189b('0x89')]=_0xd37254,_0xd37254--);}}[_0x189b('0xca')](_0x50c750){const _0x41f696=new Map(),_0x5657d1=this[_0x189b('0x49')]['model'][_0x189b('0x80')];for(let _0x186951=0x1;_0x186951<_0x50c750[_0x189b('0x5c')];_0x186951++){let _0x5e129c,_0x26d476,_0x5b8110;const _0x52f7ad=_0x50c750[_0x186951],_0x45378d=_0x50c750[_0x186951-0x1];if(_0x189b('0x37')==_0x52f7ad['type'])continue;if(_0x52f7ad[_0x189b('0x31')]!=_0x45378d[_0x189b('0x31')])continue;if(!_0x5657d1[_0x189b('0x92')](_0x45378d[_0x189b('0x27')])||_0x5657d1['isLimit'](_0x45378d[_0x189b('0x27')]))continue;if(!_0x5657d1[_0x189b('0x92')](_0x52f7ad['item'])||_0x5657d1[_0x189b('0xd8')](_0x52f7ad[_0x189b('0x27')]))continue;if((_0x50c750[_0x186951][_0x189b('0x71')]||_0x50c750[_0x186951][_0x189b('0x24')])&&_0x50c750[_0x186951-0x1][_0x189b('0x84')])_0x5e129c=_0x50c750[_0x186951],_0x26d476=_0x50c750[_0x186951-0x1],_0x5b8110=_0x186951-0x1;else{if(!_0x50c750[_0x186951][_0x189b('0x84')]||!_0x50c750[_0x186951-0x1][_0x189b('0x71')]&&!_0x50c750[_0x186951-0x1]['isAddSuggestion'])continue;_0x5e129c=_0x50c750[_0x186951-0x1],_0x26d476=_0x50c750[_0x186951],_0x5b8110=_0x186951;}const _0x4704e6=_0x5e129c[_0x189b('0x89')]==_0x26d476[_0x189b('0x89')],_0x1cff81=Math[_0x189b('0x97')](_0x5e129c[_0x189b('0x89')])<Math['abs'](_0x26d476[_0x189b('0x89')])&&0x0==_0x26d476['distance'];(_0x4704e6||_0x1cff81)&&(_0x41f696[_0x189b('0x72')](_0x26d476['id'],_0x5e129c['id']),_0x50c750[_0x189b('0x6c')](_0x5b8110,0x1),_0x186951--,_0x5e129c[_0x189b('0x71')]=!0x1);}for(let _0x3235bc=0x0;_0x3235bc<_0x50c750[_0x189b('0x5c')];_0x3235bc++)_0x41f696[_0x189b('0x103')](_0x50c750[_0x3235bc][_0x189b('0x119')])&&(_0x50c750[_0x3235bc][_0x189b('0x119')]=_0x41f696[_0x189b('0x101')](_0x50c750[_0x3235bc]['pairId']));}[_0x189b('0x7d')](_0x791930){const _0x1e5a68=new Set(_0x791930[_0x189b('0x48')](_0x5e9825=>_0x5e9825['id']));for(let _0xec94ac=0x0;_0xec94ac<_0x791930['length'];_0xec94ac++)_0x1e5a68[_0x189b('0x103')](_0x791930[_0xec94ac]['pairId'])||0x0==_0x791930[_0xec94ac]['distance']||(_0x791930[_0xec94ac]['isIncorrect']=!0x0);return _0x791930[_0x189b('0x9a')](_0x29148b=>!_0x29148b[_0x189b('0x2f')]);}[_0x189b('0xbc')](_0x219b2b){const _0x491d98=new Set();for(let _0x256391=0x0;_0x256391<_0x219b2b[_0x189b('0x5c')];_0x256391++){if(_0x491d98[_0x189b('0x103')](_0x219b2b[_0x256391]['id'])&&_0x219b2b[_0x256391][_0x189b('0x84')]&&(_0x219b2b[_0x256391][_0x189b('0x2f')]=!0x0),_0x219b2b[_0x256391]['isIncorrect'])continue;if(0x0==_0x219b2b[_0x256391]['distance'])continue;if(_0x189b('0x14')!=_0x219b2b[_0x256391][_0x189b('0x31')])continue;if(null==_0x219b2b[_0x256391]['pairId'])continue;let _0x18c9e4=_0x256391+0x1,_0x2f1e2c=0x0;for(;_0x219b2b[_0x18c9e4]['id']!=_0x219b2b[_0x256391]['pairId'];)_0x189b('0x14')==_0x219b2b[_0x18c9e4][_0x189b('0x31')]?_0x2f1e2c++:_0x189b('0xe5')==_0x219b2b[_0x18c9e4][_0x189b('0x31')]&&_0x2f1e2c--,_0x18c9e4++;if(0x0!=_0x2f1e2c){if(_0x219b2b[_0x256391][_0x189b('0x84')])_0x219b2b[_0x256391][_0x189b('0x2f')]=!0x0;else for(;_0x18c9e4!=_0x256391;)_0x219b2b[_0x18c9e4][_0x189b('0x84')]&&0x0!=_0x219b2b[_0x18c9e4][_0x189b('0x10c')]&&(_0x219b2b[_0x18c9e4][_0x189b('0x2f')]=!0x0,_0x491d98[_0x189b('0x105')](_0x219b2b[_0x18c9e4][_0x189b('0x119')])),_0x18c9e4--;}}return _0x219b2b[_0x189b('0x9a')](_0x5b56ca=>!_0x5b56ca[_0x189b('0x2f')]);}['_removeUnsupportedChanges'](_0x3dc01f){const _0x58a477=this[_0x189b('0x49')][_0x189b('0xe7')]['schema'];for(let _0x1e36e9=0x0;_0x1e36e9<_0x3dc01f['length'];_0x1e36e9++){if(!(_0x3dc01f[_0x1e36e9][_0x189b('0x71')]||_0x3dc01f[_0x1e36e9]['isAddSuggestion']||_0x3dc01f[_0x1e36e9][_0x189b('0x84')]||_0x3dc01f[_0x1e36e9][_0x189b('0x18')]))continue;if(0x0==_0x3dc01f[_0x1e36e9]['distance'])continue;const _0x1129a1=_0x3dc01f[_0x1e36e9][_0x189b('0x27')];_0x58a477[_0x189b('0x92')](_0x1129a1)||_0x58a477[_0x189b('0xd8')](_0x1129a1)||(_0x3dc01f[_0x1e36e9]['isAdded']&&delete _0x3dc01f[_0x1e36e9]['isAdded'],_0x3dc01f[_0x1e36e9]['isAddSuggestion']&&delete _0x3dc01f[_0x1e36e9]['isAddSuggestion'],_0x3dc01f[_0x1e36e9][_0x189b('0x18')]&&delete _0x3dc01f[_0x1e36e9][_0x189b('0x18')],_0x3dc01f[_0x1e36e9][_0x189b('0x84')]&&(_0x3dc01f[_0x1e36e9][_0x189b('0x2f')]=!0x0));}return _0x3dc01f[_0x189b('0x9a')](_0x3c406c=>!_0x3c406c[_0x189b('0x2f')]);}[_0x189b('0xea')](_0x54874d,_0x366d40){const _0x115ce1=new _0x485c4a(),_0x4f3855=[],_0x50a2da=new Map(),_0x3d6df2=this[_0x189b('0x49')][_0x189b('0xe7')],_0x29ee27=_0x3d6df2[_0x189b('0x80')],_0x2afac4=[_0x115ce1],_0x13fb65={},_0x337328={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x815918=null;const _0x87c5ee=[0x0];for(let _0x91d166=0x0;_0x91d166<_0x54874d['length'];_0x91d166++){let _0x2f8778,_0x369ecb;if(_0x189b('0x14')===_0x54874d[_0x91d166][_0x189b('0x31')]){_0x2f8778=_0x3d6df2[_0x189b('0x94')](_0x115ce1,_0x87c5ee);const _0x34fe4f=new _0x27f781(_0x54874d[_0x91d166][_0x189b('0x27')][_0x189b('0xb2')],_0x54874d[_0x91d166][_0x189b('0x27')][_0x189b('0x10')]());_0x2afac4[0x0][_0x189b('0x2b')](_0x34fe4f),_0x87c5ee[_0x189b('0xf1')](0x0),_0x2afac4[_0x189b('0x3e')](_0x34fe4f),_0x369ecb=_0x3d6df2['createPositionFromPath'](_0x115ce1,_0x87c5ee),_0x815918=null;}else{if(_0x189b('0xe5')===_0x54874d[_0x91d166]['type'])_0x2afac4[_0x189b('0x40')](),_0x2f8778=_0x3d6df2[_0x189b('0x94')](_0x115ce1,_0x87c5ee),_0x87c5ee['pop'](),_0x87c5ee[_0x87c5ee[_0x189b('0x5c')]-0x1]++,_0x369ecb=_0x3d6df2[_0x189b('0x94')](_0x115ce1,_0x87c5ee),_0x815918=null;else{if(_0x2f8778=_0x3d6df2['createPositionFromPath'](_0x115ce1,_0x87c5ee),_0x815918&&_0x4f590a(_0x815918,_0x54874d[_0x91d166]['item']))_0x815918[_0x189b('0xb5')]+=_0x54874d[_0x91d166][_0x189b('0x27')][_0x189b('0xe3')];else{const _0x36dac0=new _0x3c37f0(_0x54874d[_0x91d166][_0x189b('0x27')][_0x189b('0xe3')],_0x54874d[_0x91d166]['item'][_0x189b('0x10')]());_0x2afac4[0x0][_0x189b('0x2b')](_0x36dac0),_0x815918=_0x36dac0;}_0x87c5ee[_0x87c5ee[_0x189b('0x5c')]-0x1]+=_0x54874d[_0x91d166][_0x189b('0x27')][_0x189b('0x64')],_0x369ecb=_0x3d6df2[_0x189b('0x94')](_0x115ce1,_0x87c5ee);}}for(const _0x2738e3 of _0x54874d[_0x91d166][_0x189b('0x16')])_0x50a2da[_0x189b('0x72')](_0x2738e3,{'start':_0x2f8778,'end':null});_0x2cb03b(_0x189b('0x18'),_0x91d166,_0x2f8778,_0x369ecb),_0x2cb03b(_0x189b('0x24'),_0x91d166,_0x2f8778,_0x369ecb),_0x2cb03b(_0x189b('0x84'),_0x91d166,_0x2f8778,_0x369ecb),_0x2cb03b(_0x189b('0x71'),_0x91d166,_0x2f8778,_0x369ecb);for(const _0x1ed9a7 of _0x54874d[_0x91d166][_0x189b('0x22')]){_0x50a2da[_0x189b('0x101')](_0x1ed9a7)[_0x189b('0xfc')]=_0x369ecb;}}for(const [_0x475c72,_0x4c687e]of _0x50a2da){const _0x241ee3=this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0x5')](_0x4c687e[_0x189b('0xbf')],_0x4c687e['end']);_0x115ce1[_0x189b('0xec')][_0x189b('0x72')](_0x475c72,_0x241ee3);}return _0x4f3855[_0x189b('0xf7')]((_0x4caa19,_0x50f590)=>{const _0x2eb701=_0x115ce1[_0x189b('0xec')][_0x189b('0x101')]('revision:'+_0x4caa19['id']),_0x3f7b2c=_0x115ce1[_0x189b('0xec')][_0x189b('0x101')](_0x189b('0x34')+_0x50f590['id']);return _0x2eb701[_0x189b('0xbf')][_0x189b('0x11')](_0x3f7b2c['start'])?-0x1:_0x2eb701['start']['isAfter'](_0x3f7b2c[_0x189b('0xbf')])?0x1:_0x2eb701[_0x189b('0xfc')][_0x189b('0x11')](_0x3f7b2c[_0x189b('0xfc')])?-0x1:_0x2eb701[_0x189b('0xfc')]['isAfter'](_0x3f7b2c[_0x189b('0xfc')])?0x1:'add'===_0x4caa19[_0x189b('0x31')]?-0x1:0x1;}),{'root':_0x115ce1,'changes':_0x4f3855};function _0x2cb03b(_0x3d9607,_0x7d7974,_0x394604,_0x2c9157){const _0x285a5=!!_0x54874d[_0x7d7974][_0x3d9607],_0x3f7dec=_0x285a5?_0x54874d[_0x7d7974][_0x3d9607]['userId']:null,_0x3ba1c5=_0x7d7974===_0x54874d[_0x189b('0x5c')]-0x1,_0x479511=_0x337328[_0x3d9607][0x0],_0x51c216=_0x29ee27[_0x189b('0x69')](_0x54874d[_0x7d7974][_0x189b('0x27')]);!_0x13fb65[_0x3d9607]&&_0x285a5?_0x13fb65[_0x3d9607]={'start':_0x394604,'tapeItem':_0x54874d[_0x7d7974],'userId':_0x3f7dec,'type':_0x3d9607}:_0x13fb65[_0x3d9607]&&!_0x285a5?(_0x13fb65[_0x3d9607][_0x189b('0xfc')]=_0x394604,_0x585751(_0x13fb65[_0x3d9607]),_0x13fb65[_0x3d9607]=null):_0x13fb65[_0x3d9607]&&_0x285a5&&_0x13fb65[_0x3d9607]['userId']!==_0x3f7dec&&(_0x13fb65[_0x3d9607][_0x189b('0xfc')]=_0x394604,_0x479511&&_0x479511[_0x189b('0x8b')]===_0x13fb65[_0x3d9607]['userId']||_0x585751(_0x13fb65[_0x3d9607]),_0x13fb65[_0x3d9607]={'start':_0x394604,'tapeItem':_0x54874d[_0x7d7974],'userId':_0x3f7dec,'type':_0x3d9607}),_0x13fb65[_0x3d9607]&&_0x51c216&&(_0x189b('0x14')!==_0x54874d[_0x7d7974][_0x189b('0x31')]||_0x479511&&_0x479511[_0x189b('0x8b')]===_0x3f7dec||_0x337328[_0x3d9607][_0x189b('0x3e')]({'userId':_0x3f7dec,'object':_0x54874d[_0x7d7974][_0x189b('0x27')],'change':_0x13fb65[_0x3d9607]}),_0x189b('0xe5')===_0x54874d[_0x7d7974][_0x189b('0x31')]&&_0x479511&&_0x479511[_0x189b('0xa1')]===_0x54874d[_0x7d7974][_0x189b('0x27')]&&(_0x337328[_0x3d9607][_0x189b('0x40')](),_0x13fb65[_0x3d9607]=_0x479511[_0x189b('0xdf')])),_0x13fb65[_0x3d9607]&&_0x3ba1c5&&(_0x13fb65[_0x3d9607]['end']=_0x2c9157,_0x585751(_0x13fb65[_0x3d9607]),_0x13fb65[_0x3d9607]=null);}function _0x585751({start:_0x12f687,end:_0x429876,tapeItem:_0x42351f,userId:_0x4369d0,type:_0x1c1661}){const _0x5ae6f5=_0x42351f[_0x189b('0x27')],_0x50c2d9=_0x3d6df2[_0x189b('0x80')][_0x189b('0x92')](_0x5ae6f5)&&!_0x3d6df2[_0x189b('0x80')]['isLimit'](_0x5ae6f5),_0x5afa97=_0x12f687['nodeAfter']==_0x429876[_0x189b('0x56')]&&_0x429876[_0x189b('0xc')];if(_0x50c2d9&&_0x5afa97)return;const _0x424a9d=_0x3d6df2[_0x189b('0x5')](_0x12f687,_0x429876),_0x7ae98e=_0x366d40[_0x189b('0x101')](_0x4369d0),_0x4eed8e=new _0x84517a({'author':_0x7ae98e,'type':_0x189b('0x71')==_0x1c1661||_0x189b('0x24')==_0x1c1661?_0x189b('0x105'):_0x189b('0x61'),'data':{'isSuggestion':_0x189b('0x24')==_0x1c1661||_0x189b('0x18')==_0x1c1661},'createdAt':new Date()});_0x4f3855[_0x189b('0xf1')](_0x4eed8e),_0x115ce1['markers']['set'](_0x189b('0x34')+_0x4eed8e['id'],_0x424a9d);}function _0x4f590a(_0x2d0c9b,_0xcff9b9){const _0x2ed879=_0x2d0c9b['getAttributes'](),_0x584896=_0xcff9b9['getAttributes']();for(const _0x437352 of _0x2ed879){if(_0x437352[0x1]!==_0xcff9b9['getAttribute'](_0x437352[0x0]))return!0x1;_0x584896[_0x189b('0x47')]();}return _0x584896[_0x189b('0x47')]()[_0x189b('0x118')];}}[_0x189b('0xa7')](){this[_0x189b('0x49')]['conversion'][_0x189b('0x9')](_0x189b('0x42'))[_0x189b('0xb9')]({'view':_0x189b('0x117')}),this[_0x189b('0x49')]['conversion'][_0x189b('0x9')]('editingDowncast')[_0x189b('0x68')]({'model':'revision','view':_0x3e7167=>{const _0x18b753=_0x3e7167[_0x189b('0x2')][_0x189b('0xa9')](':')[0x1],_0x41c7d8=this['_getChangeFromId'](_0x18b753);if(!_0x41c7d8)return null;const _0x9359ce='add'==_0x41c7d8[_0x189b('0x31')]?_0x189b('0x9e'):'deletion',_0x1993b9=[_0x189b('0x5a'),_0x189b('0x6b')+_0x9359ce];return _0x41c7d8[_0x189b('0xe3')][_0x189b('0x79')]&&_0x1993b9[_0x189b('0xf1')](_0x189b('0x6b')+_0x9359ce+_0x189b('0xeb')),this[_0x189b('0xcc')]==_0x41c7d8&&_0x1993b9[_0x189b('0xf1')](_0x189b('0xaf')),{'classes':_0x1993b9,'attributes':{'data-change-id':_0x18b753}};}}),this[_0x189b('0x49')]['conversion'][_0x189b('0x9')](_0x189b('0x42'))[_0x189b('0x105')](_0x2c54b8=>{_0x2c54b8['on'](_0x189b('0xcd'),(_0x395d17,_0x5917c0,_0x911bd2)=>{const _0x18d510=_0x5917c0[_0x189b('0xe2')][_0x189b('0x57')](0x0);if(!_0x18d510||!_0x18d510['is']('element',_0x189b('0x6d')))return;if(!_0x911bd2[_0x189b('0xbd')]['consume'](_0x18d510,{'attributes':[_0x189b('0x100'),_0x189b('0x102')]}))return;const _0x85812=_0x5917c0['modelRange']['start'][_0x189b('0x9b')];_0x911bd2[_0x189b('0x3d')][_0x189b('0xa4')](_0x189b('0x100'),_0x18d510['getAttribute'](_0x189b('0x100')),_0x85812),_0x911bd2['writer'][_0x189b('0xa4')](_0x189b('0x102'),_0x18d510[_0x189b('0xe1')](_0x189b('0x102')),_0x85812);},{'priority':'low'});}),this[_0x189b('0x49')]['conversion'][_0x189b('0x9')](_0x189b('0x42'))[_0x189b('0x105')](_0x44cb61=>{_0x44cb61['on'](_0x189b('0xd'),(_0x290cad,_0x2fc3ef,_0x577056)=>{if(!_0x577056[_0x189b('0xbd')][_0x189b('0xf0')](_0x2fc3ef['viewItem'],{'attributes':[_0x189b('0x100'),_0x189b('0x102')]}))return;if(_0x2fc3ef[_0x189b('0x76')][_0x189b('0x60')])return;const _0x190be6=_0x2fc3ef[_0x189b('0x76')][_0x189b('0xbf')][_0x189b('0x9b')];_0x190be6[_0x189b('0x109')](_0x189b('0x100'))||_0x190be6['hasAttribute'](_0x189b('0xd1'))||(_0x577056['writer']['setAttribute'](_0x189b('0x100'),_0x2fc3ef[_0x189b('0xe2')][_0x189b('0xe1')]('vid_start'),_0x190be6),_0x577056['writer'][_0x189b('0xa4')](_0x189b('0x102'),_0x2fc3ef['viewItem']['getAttribute'](_0x189b('0x102')),_0x190be6));},{'priority':_0x189b('0xc4')});}),this[_0x189b('0x49')]['conversion'][_0x189b('0x9')](_0x189b('0x42'))[_0x189b('0xb6')]({'view':{'name':_0x189b('0xb8'),'attributes':{'vid':!0x0}},'model':{'key':_0x189b('0xd1'),'value':_0x52a872=>_0x52a872[_0x189b('0xe1')]('vid')}}),this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0x80')]['on'](_0x189b('0xe6'),(_0x2f9e33,[,_0x1f7141])=>{[_0x189b('0x100'),_0x189b('0x102'),'vid'][_0x189b('0xda')](_0x1f7141)&&(_0x2f9e33[_0x189b('0xd7')]=!0x0,_0x2f9e33[_0x189b('0x2a')]());},{'priority':'highest'}),this['editor'][_0x189b('0x20')][_0x189b('0x9')](_0x189b('0x8a'))[_0x189b('0x105')](_0x357fd6=>{_0x357fd6['on'](_0x189b('0x28'),(_0x382ad3,_0x1fd2b2,_0x14d02e)=>{if('\x20'!=_0x1fd2b2[_0x189b('0x27')]['data']||_0x1fd2b2[_0x189b('0x27')][_0x189b('0x56')][_0x189b('0xf6')]>0x1)return;if(!_0x14d02e[_0x189b('0xbd')][_0x189b('0xf0')](_0x1fd2b2[_0x189b('0x27')],_0x382ad3[_0x189b('0xb2')]))return;const _0x1218b2=_0x14d02e[_0x189b('0x3d')],_0x7193e2=_0x14d02e[_0x189b('0xb0')][_0x189b('0x62')](_0x1fd2b2['range']);_0x1218b2[_0x189b('0x70')](_0x7193e2,_0x1218b2[_0x189b('0xc1')](_0x189b('0xb8')));});}),this['editor'][_0x189b('0x20')]['for'](_0x189b('0x8a'))[_0x189b('0x3a')]({'model':_0x189b('0x117')}),this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0xad')]['on'](_0x189b('0x25'),function(_0x3416b7){const _0x2b0939=_0x3416b7['plugins'][_0x189b('0x101')](_0x189b('0xd0'));return(_0x495fac,_0x3609da,_0x189ccc)=>{const _0xe55207=_0x3609da[_0x189b('0x2')]['split'](':')[0x1],_0x554c4a=_0x2b0939['_getChangeFromId'](_0xe55207);if(!_0x554c4a)return null;const _0x3d59e9=_0x189b('0x105')==_0x554c4a[_0x189b('0x31')]?'split':'merge';if(!_0x189ccc['consumable']['test'](_0x3609da[_0x189b('0x4f')],_0x495fac[_0x189b('0xb2')]))return;const _0x2a2e4b=_0x3609da[_0x189b('0x4f')][_0x189b('0x1')](),_0x5aa9a6=_0x3609da['markerRange'][_0x189b('0xbf')],_0x49bf3a=_0x3416b7[_0x189b('0xe7')]['schema'];let _0x579528=null,_0x478c04=null,_0x3b15e2=!0x1,_0x2d48d1=!0x1;for(const _0x118642 of _0x2a2e4b){const _0x18659d=_0x118642[_0x189b('0x27')];_0x3b15e2=_0x3b15e2||_0x49bf3a[_0x189b('0x4a')](_0x18659d);const _0x52049f=_0x189ccc[_0x189b('0xb0')][_0x189b('0x38')](_0x18659d);if(_0x52049f&&_0x52049f[_0x189b('0x54')](_0x189b('0xac')))return;_0x189b('0xe5')==_0x118642[_0x189b('0x31')]&&(_0x49bf3a[_0x189b('0x92')](_0x18659d)&&!_0x49bf3a[_0x189b('0xd8')](_0x18659d)&&(_0x18659d[_0x189b('0x43')]||_0x5aa9a6[_0x189b('0xdc')]?_0x579528&&_0x579528[_0x189b('0x56')]==_0x18659d||(_0x579528=_0x18659d,_0x5b719b(_0x118642[_0x189b('0x9c')]),_0x2d48d1=!0x0):_0x478c04=_0x478c04||_0x118642[_0x189b('0x9c')]));}function _0x5b719b(_0x50152d){const _0x7b0e=_0x189ccc[_0x189b('0x3d')][_0x189b('0xd5')]('span',{'class':_0x189b('0x6b')+_0x3d59e9}),_0x2f800b=_0x189ccc[_0x189b('0xb0')]['toViewPosition'](_0x50152d);_0x554c4a[_0x189b('0xe3')][_0x189b('0x79')]&&_0x189ccc[_0x189b('0x3d')][_0x189b('0x106')](_0x189b('0x6b')+_0x3d59e9+_0x189b('0xeb'),_0x7b0e),_0x2b0939['activeChange']==_0x554c4a&&_0x189ccc[_0x189b('0x3d')]['addClass'](_0x189b('0xaf'),_0x7b0e),_0x189ccc['writer'][_0x189b('0xa8')](_0x2f800b,_0x7b0e),_0x189ccc[_0x189b('0xb0')][_0x189b('0x0')](_0x7b0e,_0x3609da['markerName']);}_0x3b15e2||_0x2d48d1||!_0x478c04||_0x5b719b(_0x478c04);};}(this[_0x189b('0x49')]),{'priority':_0x189b('0x95')}),this['editor'][_0x189b('0x86')]['downcastDispatcher']['on'](_0x189b('0x32'),(_0x20afbf,_0x1520e3,_0x213356)=>{const _0x50cd54=_0x213356['mapper'][_0x189b('0x83')](_0x1520e3[_0x189b('0x2')]);if(_0x50cd54)for(const _0x516c44 of _0x50cd54)(_0x516c44[_0x189b('0xd9')](_0x189b('0xd2'))||_0x516c44[_0x189b('0xd9')](_0x189b('0x6a')))&&(_0x213356[_0x189b('0xb0')][_0x189b('0xc2')](_0x516c44,_0x1520e3['markerName']),_0x213356[_0x189b('0x3d')][_0x189b('0x61')](_0x516c44));},{'priority':'high'}),this[_0x189b('0x49')][_0x189b('0x86')][_0x189b('0xad')]['on'](_0x189b('0x25'),(_0x41f9c3,_0x4043b9,_0x27daba)=>{const _0xa71f21=_0x4043b9[_0x189b('0x2')][_0x189b('0xa9')](':')[0x1],_0x4968a2=this[_0x189b('0x111')](_0xa71f21);if(!_0x4968a2)return null;const _0x3af18b='add'==_0x4968a2[_0x189b('0x31')]?_0x189b('0xa9'):_0x189b('0x45');if(_0x27daba[_0x189b('0xbd')][_0x189b('0x67')](_0x4043b9[_0x189b('0x4f')],_0x41f9c3[_0x189b('0xb2')]))for(const _0x534946 of _0x4043b9['markerRange']['getItems']()){if(!_0x534946['is'](_0x189b('0xd'),_0x189b('0x3f')))continue;const _0xdc5b31=_0x27daba['writer'][_0x189b('0xd5')](_0x189b('0xb8'),{'class':'ck-suggestion-marker-'+_0x3af18b}),_0x2dc000=_0x27daba[_0x189b('0xb0')]['toViewPosition'](this[_0x189b('0x49')][_0x189b('0xe7')]['createPositionBefore'](_0x534946));_0x4968a2[_0x189b('0xe3')]['isSuggestion']&&_0x27daba[_0x189b('0x3d')][_0x189b('0x106')]('ck-suggestion-marker-'+_0x3af18b+_0x189b('0xeb'),_0xdc5b31),this[_0x189b('0xcc')]==_0x4968a2&&_0x27daba[_0x189b('0x3d')]['addClass'](_0x189b('0xaf'),_0xdc5b31),_0x27daba['writer']['insert'](_0x2dc000,_0xdc5b31),_0x27daba[_0x189b('0xb0')]['bindElementToMarker'](_0xdc5b31,_0x4043b9[_0x189b('0x2')]);}},{'priority':_0x189b('0x95')}),this[_0x189b('0x49')][_0x189b('0x20')][_0x189b('0x9')](_0x189b('0x42'))[_0x189b('0xb9')]({'view':_0x189b('0x82'),'model':_0x4adf62=>_0x189b('0xc3')+_0x4adf62,'converterPriority':_0x189b('0x104')}),this[_0x189b('0x49')][_0x189b('0x20')]['for']('upcast')['dataToMarker']({'view':_0x189b('0x3'),'model':_0x38121b=>_0x189b('0xba')+_0x38121b,'converterPriority':'highest'}),this[_0x189b('0x49')]['conversion']['for'](_0x189b('0x8a'))[_0x189b('0x3a')]({'model':_0x189b('0x21'),'view':_0x44ed11=>_0x189b('0xee')+_0x44ed11,'converterPriority':_0x189b('0x104')}),this[_0x189b('0x49')][_0x189b('0x20')][_0x189b('0x9')](_0x189b('0xc9'))[_0x189b('0x68')]({'model':_0x189b('0x21'),'view':_0x2f3e19=>{const _0x585bbc=_0x2f3e19[_0x189b('0x2')]['split'](':')[0x1];return _0x189b('0x9e')!=_0x585bbc&&_0x189b('0xd3')!=_0x585bbc?null:{'classes':[_0x189b('0x74'),_0x189b('0xf2')+_0x585bbc]};}}),this[_0x189b('0x49')][_0x189b('0x86')]['downcastDispatcher']['on'](_0x189b('0x1e'),Z(this[_0x189b('0x49')],'merge'),{'priority':_0x189b('0x95')}),this[_0x189b('0x49')]['editing'][_0x189b('0xad')]['on'](_0x189b('0x10a'),Z(this[_0x189b('0x49')],_0x189b('0xa9')),{'priority':_0x189b('0x95')}),this['editor'][_0x189b('0x86')][_0x189b('0xad')]['on'](_0x189b('0x10e'),(_0x5284d9,_0x382c45,_0x34db55)=>{const _0x4407c4=_0x34db55[_0x189b('0xb0')][_0x189b('0x83')](_0x382c45['markerName']);if(_0x4407c4)for(const _0x415103 of _0x4407c4)_0x415103['is']('uiElement')&&(_0x34db55[_0x189b('0xb0')][_0x189b('0xc2')](_0x415103,_0x382c45[_0x189b('0x2')]),_0x34db55[_0x189b('0x3d')][_0x189b('0x61')](_0x415103));},{'priority':_0x189b('0x95')});}[_0x189b('0x111')](_0x198910){return this[_0x189b('0x98')]['get'](_0x198910);}[_0x189b('0x19')](_0x23ed46){this[_0x189b('0xaa')]&&this[_0x189b('0xaa')][_0x189b('0x2e')](),this[_0x189b('0xaa')]=new _0x2164ba(this[_0x189b('0x49')][_0x189b('0x65')],_0x23ed46);const _0x3842f9=this['editor'][_0x189b('0xe7')][_0x189b('0xec')][_0x189b('0x101')]('revision:'+_0x23ed46['id']);return this['_changeView'][_0x189b('0xdb')]=()=>_0x4d1f24(this['editor'][_0x189b('0x86')],_0x3842f9),this[_0x189b('0xaa')];}[_0x189b('0x39')](){this['editor'][_0x189b('0xe7')]['document']['selection']['observeMarkers']('revision'),this['on'](_0x189b('0xa5'),(_0x5a69b0,_0x3a2703,_0x144950,_0x569739)=>{_0x569739&&this[_0x189b('0xe0')]['remove'](_0x569739),_0x144950&&(this[_0x189b('0xe0')][_0x189b('0x105')]({'view':_0x144950,'stackId':_0x189b('0x8f'),'position':{'target':_0x144950[_0x189b('0xdb')]}}),this[_0x189b('0xe0')][_0x189b('0x5f')](_0x189b('0x8f')));}),this['on'](_0x189b('0x10b'),(_0x4393b0,_0x5d69fd,_0x3ee387,_0x2e1323)=>{this['activeView']=_0x3ee387?this[_0x189b('0x19')](_0x3ee387):null,this[_0x189b('0x49')][_0x189b('0xe7')][_0x189b('0xdf')](()=>{const _0x3def64=this[_0x189b('0x49')]['editing'];_0x2e1323&&_0x3def64[_0x189b('0x8d')](_0x189b('0x34')+_0x2e1323['id']),_0x3ee387&&_0x3def64[_0x189b('0x8d')](_0x189b('0x34')+_0x3ee387['id']);});}),this['listenTo'](this['editor'][_0x189b('0x86')][_0x189b('0x91')]['document'],_0x189b('0x30'),(_0x188aa6,_0x15a339)=>{if(this[_0x189b('0xcc')])return;const _0xc851e2=this[_0x189b('0x7e')](_0x15a339[_0x189b('0xb7')]),_0x35ffa6=this[_0x189b('0x98')][_0x189b('0x101')](_0xc851e2);this['activeView']=_0x35ffa6?this['_getViewForChange'](_0x35ffa6):null;}),this[_0x189b('0x26')](this['editor']['editing'][_0x189b('0x91')][_0x189b('0x110')],_0x189b('0xfd'),(_0x2e8a3b,_0x2dba28)=>{const _0x44dc8f=this[_0x189b('0x7e')](_0x2dba28['target']),_0x7f41b=this[_0x189b('0x98')][_0x189b('0x101')](_0x44dc8f);this[_0x189b('0xcc')]=_0x7f41b||null;});}[_0x189b('0x7e')](_0x3d066f){do{const _0x3f3d15=_0x3d066f[_0x189b('0xe1')](_0x189b('0x96'));if(_0x3f3d15)return _0x3f3d15;_0x3d066f=_0x3d066f[_0x189b('0x56')];}while(_0x3d066f);return null;}[_0x189b('0x44')](){this[_0x189b('0x49')][_0x189b('0xe7')]['change'](_0x46ffc6=>{for(const _0x43942c of this[_0x189b('0x49')]['model']['markers'])_0x46ffc6[_0x189b('0xa')](_0x43942c);});}}function Z(_0x86af01,_0x10333b){return(_0x372e4b,_0x216d64,_0x4d4525)=>{if(!_0x4d4525[_0x189b('0xbd')][_0x189b('0x67')](_0x216d64[_0x189b('0x4f')],_0x372e4b[_0x189b('0xb2')]))return;const _0x5ebf79=_0x216d64[_0x189b('0x4f')][_0x189b('0x1')](),_0x2e5108=_0x216d64[_0x189b('0x4f')][_0x189b('0xbf')],_0x303008=_0x86af01[_0x189b('0xe7')][_0x189b('0x80')];let _0x506ef4=null,_0x45771d=null,_0x156aae=!0x1,_0xe0dd10=!0x1;for(const _0xc6445b of _0x5ebf79){const _0x22bf74=_0xc6445b['item'];_0x156aae=_0x156aae||_0x303008['isContent'](_0x22bf74);const _0x3e8efb=_0x4d4525['mapper']['toViewElement'](_0x22bf74);if(_0x3e8efb&&_0x3e8efb[_0x189b('0x54')](_0x189b('0xac')))return;_0x189b('0xe5')==_0xc6445b[_0x189b('0x31')]&&(_0x303008['isBlock'](_0x22bf74)&&!_0x303008[_0x189b('0xd8')](_0x22bf74)&&(_0x22bf74[_0x189b('0x43')]||_0x2e5108[_0x189b('0xdc')]?_0x506ef4&&_0x506ef4[_0x189b('0x56')]==_0x22bf74||(_0x506ef4=_0x22bf74,_0x3a436b(_0xc6445b[_0x189b('0x9c')]),_0xe0dd10=!0x0):_0x45771d=_0x45771d||_0xc6445b[_0x189b('0x9c')]));}function _0x3a436b(_0x56cbdb){const _0x5551bd=_0x4d4525['mapper'][_0x189b('0x114')](_0x56cbdb),_0x1c1ad4=_0x4d4525[_0x189b('0x3d')][_0x189b('0xd5')](_0x189b('0xb8'),{'class':_0x189b('0xf2')+_0x10333b});_0x4d4525[_0x189b('0x3d')][_0x189b('0xa8')](_0x5551bd,_0x1c1ad4),_0x4d4525[_0x189b('0xb0')][_0x189b('0x0')](_0x1c1ad4,_0x216d64[_0x189b('0x2')]);}_0x156aae||_0xe0dd10||!_0x45771d||_0x3a436b(_0x45771d);};}_0xc947e1(d,_0x10a00a);class tt extends _0x460336{constructor(_0x1dd2d8){super(_0x1dd2d8);const _0x48f9a5=_0x1dd2d8['plugins']['get'](d);this[_0x189b('0x4c')](_0x1dd2d8,_0x189b('0x4d')),this[_0x189b('0x52')]('readOnlyMode'),this[_0x189b('0x26')](_0x48f9a5,'change:isReady',()=>this[_0x189b('0xe')]()),this[_0x189b('0x26')](_0x48f9a5,_0x189b('0x23'),()=>this[_0x189b('0xe')]());}[_0x189b('0x4')](){const _0x59a2a4=this['editor'],_0x4bd88c=_0x59a2a4[_0x189b('0x6')]['get'](d),_0x4c96c9=_0x4bd88c[_0x189b('0x58')]?_0x4bd88c[_0x189b('0xa3')]['newRevisionId']:null;_0x59a2a4[_0x189b('0x35')]['get'](_0x189b('0x2d'))['restoreRevisionCallback'](_0x4c96c9);}[_0x189b('0xe')](){const {isReady:_0x33f5e3,isEnabled:_0x51d5f4}=this[_0x189b('0x49')][_0x189b('0x6')]['get'](d);this['isEnabled']=_0x33f5e3&&_0x51d5f4;}}class et extends _0x460336{constructor(_0x34f70b,{direction:_0x2b8a53}){super(_0x34f70b);const _0x2975ca=_0x34f70b[_0x189b('0x6')]['get'](d);this[_0x189b('0x4c')](_0x34f70b,_0x189b('0x4d')),this[_0x189b('0x52')](_0x189b('0x90')),this[_0x189b('0x116')]=_0x189b('0x17')===_0x2b8a53?0x1:-0x1,this[_0x189b('0x26')](_0x2975ca,_0x189b('0xf3'),()=>this['refresh']()),this[_0x189b('0x26')](_0x2975ca,_0x189b('0x23'),()=>this[_0x189b('0xe')]());}[_0x189b('0x4')](){const _0x4c1a98=this[_0x189b('0x49')],_0x3028cd=_0x4c1a98[_0x189b('0x6')][_0x189b('0x101')](d),{isNavigationMode:_0x3f5baa,currentChangeNumber:_0x1e5de5}=_0x3028cd;_0x3028cd[_0x189b('0xcc')]=_0x3f5baa?_0x3028cd['diff'][_0x189b('0xb3')][_0x189b('0x101')](_0x1e5de5+this[_0x189b('0x116')]):_0x3028cd[_0x189b('0xa3')][_0x189b('0xb3')][_0x189b('0x93')];const _0xd05172=_0x4c1a98[_0x189b('0xe7')][_0x189b('0xec')][_0x189b('0x101')](_0x189b('0x34')+_0x3028cd[_0x189b('0xcc')]['id']),_0x397c42=_0x4d1f24(_0x4c1a98['editing'],_0xd05172);_0x587c20({'target':_0x397c42,'viewportOffset':0x28});}[_0x189b('0xe')](){const {isNavigationMode:_0x28ffe5,currentChangeNumber:_0x35b455,numberOfChanges:_0x312f4b,isReady:_0x45ee72,isEnabled:_0x4e33a9}=this[_0x189b('0x49')][_0x189b('0x6')]['get'](d);this[_0x189b('0x5b')]=!!(_0x4e33a9&&_0x45ee72&&_0x312f4b)&&(!_0x28ffe5||(0x1===this[_0x189b('0x116')]?_0x35b455<_0x312f4b-0x1:_0x35b455>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x280a=['change:isActionsDropdownOpen','source','Show\x20more\x20items','children','bind','class','name','ck-on','locale','function','extendTemplate','buttonView','execute','set','isReady','find','isActionsDropdownOpen','map','_action','isVisible','first','action','Name\x20this\x20revision','bindTemplate','listenTo','add','ck-revision-history-sidebar__revision__actions','panelPosition','isOpen','isEnabled','Compare\x20against\x20selected'];(function(_0x5d59d9,_0x280ae4){const _0x3e993f=function(_0x2fcac0){while(--_0x2fcac0){_0x5d59d9['push'](_0x5d59d9['shift']());}};_0x3e993f(++_0x280ae4);}(_0x280a,0x1ec));const _0x3e99=function(_0x5d59d9,_0x280ae4){_0x5d59d9=_0x5d59d9-0x0;let _0x3e993f=_0x280a[_0x5d59d9];return _0x3e993f;};import{Collection as _0x218c8d}from'ckeditor5/src/utils';import{Model as _0x64c827,addListToDropdown as _0x1459b6,createDropdown as _0x171d1c}from'ckeditor5/src/ui';import{getTranslation as _0x1fd60e}from'../../utils/common-translations';import _0x1c9734 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4672e4,_0x2267e0){const _0x17ce89=_0x4672e4[_0x3e99('0x1b')],_0x1ae259=_0x4672e4[_0x3e99('0xc')],_0x45e729=_0x171d1c(_0x1ae259);_0x45e729[_0x3e99('0x0')]='sw';const _0x15f100=function(_0x45406b,_0x3dfd1a){const _0x27177d=function(_0x2f20d2,_0x424118){const _0x5a23ce=_0x2f20d2['locale'],_0x37204e={'Compare\x20against\x20selected':_0x1fd60e(_0x5a23ce,_0x3e99('0x3')),'Name\x20this\x20revision':_0x1fd60e(_0x5a23ce,_0x3e99('0x1a')),'Restore\x20this\x20revision':_0x1fd60e(_0x5a23ce,'Restore\x20this\x20revision')};return _0x424118[_0x3e99('0x15')](_0x2166e3=>{const _0x415525=_0x37204e[_0x2166e3[_0x3e99('0xa')]];return _0x415525&&_0x415525!==_0x2166e3[_0x3e99('0xa')]&&(_0x2166e3[_0x3e99('0xa')]=_0x415525),_0x2166e3;});}(_0x45406b,_0x3dfd1a),_0x15b042=new _0x218c8d();for(const _0xe40ffe of _0x27177d){const _0x594c53={'type':'button','model':new _0x64c827({'label':_0xe40ffe[_0x3e99('0xa')],'class':_0xe40ffe[_0x3e99('0x9')],'withText':!0x0,'_action':_0xe40ffe[_0x3e99('0x19')]})};_0x594c53['model'][_0x3e99('0x8')](_0x3e99('0x2'))['to'](_0x45406b,_0x3e99('0x14'),_0x313422=>'function'!=typeof _0xe40ffe[_0x3e99('0x2')]||(!_0x313422||_0xe40ffe[_0x3e99('0x2')](_0x45406b))),_0x15b042[_0x3e99('0x1d')](_0x594c53);}return _0x15b042;}(_0x4672e4,_0x2267e0);return _0x4672e4['bind'](_0x3e99('0x14'))['to'](_0x45e729,_0x3e99('0x1')),_0x45e729[_0x3e99('0xf')][_0x3e99('0x11')]({'label':_0x1fd60e(_0x1ae259,_0x3e99('0x6')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c9734}),_0x45e729[_0x3e99('0xe')]({'attributes':{'class':[_0x3e99('0x1e'),_0x17ce89['if']('isActionsDropdownOpen',_0x3e99('0xb'))]},'on':{'click':_0x17ce89['to'](_0x32c636=>_0x32c636['stopPropagation']())}}),_0x45e729['on'](_0x3e99('0x10'),_0x418270=>{_0x4672e4[_0x3e99('0x12')]&&_0x3e99('0xd')==typeof _0x418270[_0x3e99('0x5')]['_action']&&_0x418270[_0x3e99('0x5')][_0x3e99('0x16')](_0x4672e4);}),_0x1459b6(_0x45e729,_0x15f100),_0x45e729[_0x3e99('0x1c')](_0x4672e4,_0x3e99('0x4'),(_0x4a6d10,_0x2e76de,_0x5793d5)=>{if(_0x5793d5)for(const _0x54f3d7 of _0x45e729['listView']['items']){const _0x4a40bc=_0x54f3d7[_0x3e99('0x7')][_0x3e99('0x18')],_0x10b438=_0x2267e0[_0x3e99('0x13')](_0x520c36=>_0x520c36[_0x3e99('0x19')]===_0x4a40bc[_0x3e99('0x16')])[_0x3e99('0x17')];_0x54f3d7[_0x3e99('0x17')]=void 0x0===_0x10b438||_0x10b438(_0x4672e4);}}),_0x45e729;}
23
+ const _0xfd2d=['function','buttonView','isActionsDropdownOpen','bindTemplate','class','panelPosition','isEnabled','bind','isVisible','stopPropagation','listView','Restore\x20this\x20revision','map','first','ck-on','name','Name\x20this\x20revision','extendTemplate','button','execute','_action','isOpen','model','items','source','find','add','children','action'];(function(_0x683ed5,_0xfd2d09){const _0xd988f9=function(_0x293487){while(--_0x293487){_0x683ed5['push'](_0x683ed5['shift']());}};_0xd988f9(++_0xfd2d09);}(_0xfd2d,0x7f));const _0xd988=function(_0x683ed5,_0xfd2d09){_0x683ed5=_0x683ed5-0x0;let _0xd988f9=_0xfd2d[_0x683ed5];return _0xd988f9;};import{Collection as _0x1d3846}from'ckeditor5/src/utils';import{Model as _0x3522e0,addListToDropdown as _0x3a3089,createDropdown as _0x24217b}from'ckeditor5/src/ui';import{getTranslation as _0x474794}from'../../utils/common-translations';import _0x123045 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x26d7f9,_0x4c83ac){const _0x4ca54c=_0x26d7f9[_0xd988('0x15')],_0x48815d=_0x26d7f9['locale'],_0x13d4d8=_0x24217b(_0x48815d);_0x13d4d8[_0xd988('0x17')]='sw';const _0x3d6e4e=function(_0x24b5db,_0x5e289a){const _0x49310f=function(_0x2e06cc,_0x55d06c){const _0x3e4047=_0x2e06cc['locale'],_0x4d6b5e={'Compare\x20against\x20selected':_0x474794(_0x3e4047,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x474794(_0x3e4047,_0xd988('0x5')),'Restore\x20this\x20revision':_0x474794(_0x3e4047,_0xd988('0x0'))};return _0x55d06c[_0xd988('0x1')](_0x13334c=>{const _0x3357f4=_0x4d6b5e[_0x13334c[_0xd988('0x4')]];return _0x3357f4&&_0x3357f4!==_0x13334c['name']&&(_0x13334c['name']=_0x3357f4),_0x13334c;});}(_0x24b5db,_0x5e289a),_0x3b69a3=new _0x1d3846();for(const _0x45c476 of _0x49310f){const _0x5d7d62={'type':_0xd988('0x7'),'model':new _0x3522e0({'label':_0x45c476[_0xd988('0x4')],'class':_0x45c476[_0xd988('0x16')],'withText':!0x0,'_action':_0x45c476['action']})};_0x5d7d62[_0xd988('0xb')][_0xd988('0x19')](_0xd988('0x18'))['to'](_0x24b5db,_0xd988('0x14'),_0x235cbf=>_0xd988('0x12')!=typeof _0x45c476['isEnabled']||(!_0x235cbf||_0x45c476[_0xd988('0x18')](_0x24b5db))),_0x3b69a3[_0xd988('0xf')](_0x5d7d62);}return _0x3b69a3;}(_0x26d7f9,_0x4c83ac);return _0x26d7f9['bind'](_0xd988('0x14'))['to'](_0x13d4d8,_0xd988('0xa')),_0x13d4d8[_0xd988('0x13')]['set']({'label':_0x474794(_0x48815d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x123045}),_0x13d4d8[_0xd988('0x6')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4ca54c['if'](_0xd988('0x14'),_0xd988('0x3'))]},'on':{'click':_0x4ca54c['to'](_0x588cdd=>_0x588cdd[_0xd988('0x1b')]())}}),_0x13d4d8['on'](_0xd988('0x8'),_0x1b8c36=>{_0x26d7f9['isReady']&&'function'==typeof _0x1b8c36['source'][_0xd988('0x9')]&&_0x1b8c36[_0xd988('0xd')][_0xd988('0x9')](_0x26d7f9);}),_0x3a3089(_0x13d4d8,_0x3d6e4e),_0x13d4d8['listenTo'](_0x26d7f9,'change:isActionsDropdownOpen',(_0x276601,_0x4841f7,_0x21ab45)=>{if(_0x21ab45)for(const _0x2a310c of _0x13d4d8[_0xd988('0x1c')][_0xd988('0xc')]){const _0x50e141=_0x2a310c[_0xd988('0x10')][_0xd988('0x2')],_0x2fc1d0=_0x4c83ac[_0xd988('0xe')](_0x280cb0=>_0x280cb0[_0xd988('0x11')]===_0x50e141[_0xd988('0x9')])[_0xd988('0x1a')];_0x2a310c[_0xd988('0x1a')]=void 0x0===_0x2fc1d0||_0x2fc1d0(_0x26d7f9);}}),_0x13d4d8;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x466d=['0\x200\x2011\x2010','Revision\x20author','push','Revision\x20creator','span','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author','set','setTemplate'];(function(_0x207056,_0x466df2){const _0x231451=function(_0xb31150){while(--_0xb31150){_0x207056['push'](_0x207056['shift']());}};_0x231451(++_0x466df2);}(_0x466d,0xec));const _0x2314=function(_0x207056,_0x466df2){_0x207056=_0x207056-0x0;let _0x231451=_0x466d[_0x207056];return _0x231451;};import{View as _0x4305ec,IconView as _0x54168a}from'ckeditor5/src/ui';import{getTranslation as _0x2a5e4b}from'../../utils/common-translations';import _0x5cd4ac from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x4305ec{constructor(_0xe11948,_0x299d04,_0x4ed4f3){super(_0xe11948);const _0xe92351=new _0x54168a(_0xe11948);_0xe92351[_0x2314('0x5')]({'content':_0x5cd4ac,'viewBox':_0x2314('0x7')});const _0x1b823a=['ck',_0x2314('0x4')];_0x4ed4f3&&_0x1b823a[_0x2314('0x0')](_0x2314('0x3'));const _0x34aec6=[{'tag':_0x2314('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x2a5e4b(_0xe11948,_0x4ed4f3?_0x2314('0x1'):_0x2314('0x8'))},'children':[_0xe92351,_0x299d04['name']]}];this[_0x2314('0x6')]({'tag':'li','attributes':{'class':_0x1b823a},'children':_0x34aec6});}}
23
+ const _0x2042=['name','set','Revision\x20author','push','ck-revision-history-sidebar__revision-author__name','span','Revision\x20creator','0\x200\x2011\x2010'];(function(_0x32b4fc,_0x20423a){const _0x4b288c=function(_0x38088a){while(--_0x38088a){_0x32b4fc['push'](_0x32b4fc['shift']());}};_0x4b288c(++_0x20423a);}(_0x2042,0x139));const _0x4b28=function(_0x32b4fc,_0x20423a){_0x32b4fc=_0x32b4fc-0x0;let _0x4b288c=_0x2042[_0x32b4fc];return _0x4b288c;};import{View as _0x36935f,IconView as _0x5b9d88}from'ckeditor5/src/ui';import{getTranslation as _0x3c4a7b}from'../../utils/common-translations';import _0x3cc977 from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x36935f{constructor(_0x215ee5,_0x31bca7,_0x3e5477){super(_0x215ee5);const _0x4df03c=new _0x5b9d88(_0x215ee5);_0x4df03c[_0x4b28('0x0')]({'content':_0x3cc977,'viewBox':_0x4b28('0x6')});const _0x5ed598=['ck','ck-revision-history-sidebar__revision-author'];_0x3e5477&&_0x5ed598[_0x4b28('0x2')]('ck-revision-history-sidebar__revision-author_creator');const _0x4e544f=[{'tag':_0x4b28('0x4'),'attributes':{'class':['ck',_0x4b28('0x3')],'title':_0x3c4a7b(_0x215ee5,_0x3e5477?_0x4b28('0x5'):_0x4b28('0x1'))},'children':[_0x4df03c,_0x31bca7[_0x4b28('0x7')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5ed598},'children':_0x4e544f});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x20ec=['extendTemplate','set','Revision\x20name','ck-revision-history-sidebar__revision-name','span'];(function(_0x28c754,_0x20ec73){var _0x15307f=function(_0x5ef457){while(--_0x5ef457){_0x28c754['push'](_0x28c754['shift']());}};_0x15307f(++_0x20ec73);}(_0x20ec,0x10f));var _0x1530=function(_0x28c754,_0x20ec73){_0x28c754=_0x28c754-0x0;var _0x15307f=_0x20ec[_0x28c754];return _0x15307f;};import{LabeledFieldView as _0x1d325d}from'ckeditor5/src/ui';import{getTranslation as _0x222ae9}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x1d325d{constructor(_0x584776,..._0x598ebb){super(_0x584776,..._0x598ebb),this[_0x1530('0x0')]({'label':_0x222ae9(_0x584776,_0x1530('0x1'))}),this[_0x1530('0x4')]({'tag':_0x1530('0x3'),'attributes':{'class':[_0x1530('0x2')]}});}}
23
+ var _0x5aae=['span','set','ck-revision-history-sidebar__revision-name','Revision\x20name','extendTemplate'];(function(_0x1dafc7,_0x5aae12){var _0x2d166d=function(_0x1e22d1){while(--_0x1e22d1){_0x1dafc7['push'](_0x1dafc7['shift']());}};_0x2d166d(++_0x5aae12);}(_0x5aae,0xe0));var _0x2d16=function(_0x1dafc7,_0x5aae12){_0x1dafc7=_0x1dafc7-0x0;var _0x2d166d=_0x5aae[_0x1dafc7];return _0x2d166d;};import{LabeledFieldView as _0x47e954}from'ckeditor5/src/ui';import{getTranslation as _0xdb4d79}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x47e954{constructor(_0x1e195b,..._0x4cf8a4){super(_0x1e195b,..._0x4cf8a4),this[_0x2d16('0x2')]({'label':_0xdb4d79(_0x1e195b,_0x2d16('0x4'))}),this[_0x2d16('0x0')]({'tag':_0x2d16('0x1'),'attributes':{'class':[_0x2d16('0x3')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x282b=['isHighlighted','ck-reset','_revision','value','uiLanguage','change','listenTo','ck-revision-history-sidebar__actions_dropdown_open','unhighlight','ck-disabled','extendTemplate','isSelected','ck-revision-history-sidebar__revision','.ck-thread__remove-confirm','fire','from','creator','filter','name','div','element','ck-revision-history-sidebar__revision_selected','setTemplate','ck-revision-history-sidebar__revision__date','select','length','highlight','placeholder','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','closest','fieldView','srcElement','bind','render','revisionActionsView','setName','authors','_createdAtFormatted','isConfirm','220','ck-revision-history-sidebar__revision-wrapper','isActionsDropdownOpen','isReady','ck-revision-history-sidebar__revision__controls-wrapper','set','isEnabled','revisionNameView','ck-revision-history-sidebar__revision_highlighted'];(function(_0x305775,_0x282b19){const _0x75f602=function(_0x1fc6ce){while(--_0x1fc6ce){_0x305775['push'](_0x305775['shift']());}};_0x75f602(++_0x282b19);}(_0x282b,0x12f));const _0x75f6=function(_0x305775,_0x282b19){_0x305775=_0x305775-0x0;let _0x75f602=_0x282b[_0x305775];return _0x75f602;};import{View as _0x433eec,createLabeledInputText as _0x4aaefe}from'ckeditor5/src/ui';import{mix as _0x123bff}from'ckeditor5/src/utils';import{ConfirmMixin as _0x19b2aa}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a5fc3 from'./revisionnameview';import _0x59616a from'./revisionauthorview';import{dateToPrettyFormat as _0x1aa6fc}from'./utils';import{createActionsDropdownView as _0x41d19c}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x433eec{constructor(_0x20fa3f,_0x3bffab,_0x51ad29){super(_0x20fa3f);const _0x33b690=this['bindTemplate'],_0x3a67ac=function(_0x15a11f,_0x20f091){const _0x43932c=Array[_0x75f6('0x0')](_0x20f091[_0x75f6('0x15')])[_0x75f6('0x2')](_0x1b7eb4=>_0x1b7eb4!=_0x20f091[_0x75f6('0x1')]);return _0x20f091[_0x75f6('0x1')]&&_0x43932c['unshift'](_0x20f091[_0x75f6('0x1')]),_0x43932c['map'](_0x34a79f=>new _0x59616a(_0x15a11f,_0x34a79f,_0x34a79f==_0x20f091[_0x75f6('0x1')]));}(_0x20fa3f,_0x3bffab);this[_0x75f6('0x23')]=_0x3bffab,this['id']=_0x3bffab['id'],this[_0x75f6('0x11')]('name','createdAt')['to'](_0x3bffab),this[_0x75f6('0x1d')](_0x75f6('0x2c'),!0x1),this[_0x75f6('0x1d')](_0x75f6('0x21'),!0x1),this[_0x75f6('0x1d')](_0x75f6('0x1a'),!0x1),this[_0x75f6('0x1d')](_0x75f6('0x1b'),!0x1),this[_0x75f6('0x11')]('_createdAtFormatted')['to'](this,'createdAt',_0x72c9e1=>_0x72c9e1?_0x1aa6fc(_0x20fa3f[_0x75f6('0x25')],_0x72c9e1):null),this[_0x75f6('0x1d')](_0x75f6('0x1e'),!0x1),this['revisionNameView']=new _0x4a5fc3(_0x20fa3f,_0x4aaefe),this[_0x75f6('0x1f')][_0x75f6('0xf')][_0x75f6('0x2b')]({'attributes':{'maxlength':_0x75f6('0x18')}}),this['revisionNameView']['fieldView'][_0x75f6('0x11')](_0x75f6('0x24'),_0x75f6('0xc'))['to'](this,_0x75f6('0x3'),_0x75f6('0x16')),this[_0x75f6('0x1f')][_0x75f6('0x11')](_0x75f6('0x1e'))['to'](this,_0x75f6('0x2c'),this,'isEnabled',(_0x5d62a1,_0x32633b)=>_0x5d62a1&&_0x32633b),this[_0x75f6('0x13')]=_0x51ad29&&_0x51ad29[_0x75f6('0xa')]?_0x41d19c(this,_0x51ad29):'',this['revisionActionsView']['bind'](_0x75f6('0x1e'))['to'](this),this[_0x75f6('0x7')]({'tag':_0x75f6('0x4'),'attributes':{'class':['ck',_0x75f6('0x22'),_0x75f6('0x19'),_0x33b690['if'](_0x75f6('0x17'),_0x75f6('0xd'))]},'children':[{'tag':_0x75f6('0x4'),'attributes':{'class':['ck',_0x75f6('0x22'),_0x75f6('0x2d'),_0x33b690['if'](_0x75f6('0x1e'),_0x75f6('0x2a'),_0x5dafd5=>!_0x5dafd5),_0x33b690['if'](_0x75f6('0x2c'),_0x75f6('0x6')),_0x33b690['if']('isHighlighted',_0x75f6('0x20')),_0x33b690['if']('isActionsDropdownOpen',_0x75f6('0x28'))]},'children':[this[_0x75f6('0x1f')],{'tag':'span','attributes':{'class':['ck',_0x75f6('0x8')]},'children':[{'text':_0x33b690['to'](_0x75f6('0x16'))}]},{'tag':'div','attributes':{'class':['ck',_0x75f6('0x1c')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x3a67ac}]},this[_0x75f6('0x13')]],'on':{'click':_0x33b690['to'](_0x2616b8=>{_0x2616b8[_0x75f6('0x10')][_0x75f6('0xe')](_0x75f6('0x2e'))||this['isReady']&&this['isEnabled']&&this[_0x75f6('0x2f')](_0x75f6('0x9'),{'id':this['id']});})}}]});}[_0x75f6('0x12')](){super[_0x75f6('0x12')]();const _0x396eae=this[_0x75f6('0x1f')][_0x75f6('0xf')][_0x75f6('0x5')];this[_0x75f6('0x27')](_0x396eae,_0x75f6('0x26'),()=>{this['fire'](_0x75f6('0x14'),{'id':this['id'],'name':_0x396eae[_0x75f6('0x24')]});});}[_0x75f6('0x9')](){this[_0x75f6('0x2c')]=!0x0;}['deselect'](){this[_0x75f6('0x2c')]=!0x1;}[_0x75f6('0xb')](){this['isHighlighted']=!0x0;}[_0x75f6('0x29')](){this[_0x75f6('0x21')]=!0x1;}}_0x123bff(ci,_0x19b2aa);
23
+ const _0x2e32=['ck-revision-history-sidebar__revision-wrapper','listenTo','extendTemplate','highlight','span','bindTemplate','_createdAtFormatted','change','revisionNameView','deselect','isActionsDropdownOpen','_revision','set','setName','.ck-thread__remove-confirm','uiLanguage','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isEnabled','ck-revision-history-sidebar__revision_highlighted','authors','ck-revision-history-sidebar__revision__controls-wrapper','map','ck-revision-history-sidebar__actions_dropdown_open','bind','ck-revision-history-sidebar__revision-authors','render','creator','srcElement','isReady','value','element','closest','name','ck-reset','ck-revision-history-sidebar__revision__date','setTemplate','select','fieldView','isHighlighted','fire','revisionActionsView','isSelected','unhighlight','220','div','filter','unshift','createdAt','length'];(function(_0x106c88,_0x2e322d){const _0x2a4827=function(_0x1d7f33){while(--_0x1d7f33){_0x106c88['push'](_0x106c88['shift']());}};_0x2a4827(++_0x2e322d);}(_0x2e32,0xa9));const _0x2a48=function(_0x106c88,_0x2e322d){_0x106c88=_0x106c88-0x0;let _0x2a4827=_0x2e32[_0x106c88];return _0x2a4827;};import{View as _0x38b3c8,createLabeledInputText as _0x519cdd}from'ckeditor5/src/ui';import{mix as _0x47f306}from'ckeditor5/src/utils';import{ConfirmMixin as _0x5819b1}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e992f from'./revisionnameview';import _0x41b51d from'./revisionauthorview';import{dateToPrettyFormat as _0x3dd42e}from'./utils';import{createActionsDropdownView as _0x26afe1}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x38b3c8{constructor(_0x3bce97,_0x2ee074,_0x308acb){super(_0x3bce97);const _0x20c73c=this[_0x2a48('0x20')],_0x532e41=function(_0x4402d5,_0xb451b3){const _0x5b2523=Array['from'](_0xb451b3[_0x2a48('0x2e')])[_0x2a48('0x17')](_0x18c2e0=>_0x18c2e0!=_0xb451b3[_0x2a48('0x4')]);return _0xb451b3['creator']&&_0x5b2523[_0x2a48('0x18')](_0xb451b3[_0x2a48('0x4')]),_0x5b2523[_0x2a48('0x30')](_0x34071f=>new _0x41b51d(_0x4402d5,_0x34071f,_0x34071f==_0xb451b3[_0x2a48('0x4')]));}(_0x3bce97,_0x2ee074);this[_0x2a48('0x26')]=_0x2ee074,this['id']=_0x2ee074['id'],this['bind']('name',_0x2a48('0x19'))['to'](_0x2ee074),this['set'](_0x2a48('0x13'),!0x1),this[_0x2a48('0x27')](_0x2a48('0x10'),!0x1),this[_0x2a48('0x27')](_0x2a48('0x25'),!0x1),this[_0x2a48('0x27')](_0x2a48('0x6'),!0x1),this[_0x2a48('0x1')](_0x2a48('0x21'))['to'](this,_0x2a48('0x19'),_0x331710=>_0x331710?_0x3dd42e(_0x3bce97[_0x2a48('0x2a')],_0x331710):null),this[_0x2a48('0x27')](_0x2a48('0x2c'),!0x1),this[_0x2a48('0x23')]=new _0x5e992f(_0x3bce97,_0x519cdd),this[_0x2a48('0x23')][_0x2a48('0xf')][_0x2a48('0x1d')]({'attributes':{'maxlength':_0x2a48('0x15')}}),this[_0x2a48('0x23')][_0x2a48('0xf')][_0x2a48('0x1')](_0x2a48('0x7'),'placeholder')['to'](this,_0x2a48('0xa'),_0x2a48('0x21')),this[_0x2a48('0x23')][_0x2a48('0x1')](_0x2a48('0x2c'))['to'](this,_0x2a48('0x13'),this,_0x2a48('0x2c'),(_0x438bc7,_0x125fd6)=>_0x438bc7&&_0x125fd6),this[_0x2a48('0x12')]=_0x308acb&&_0x308acb[_0x2a48('0x1a')]?_0x26afe1(this,_0x308acb):'',this[_0x2a48('0x12')][_0x2a48('0x1')]('isEnabled')['to'](this),this[_0x2a48('0xd')]({'tag':_0x2a48('0x16'),'attributes':{'class':['ck','ck-reset',_0x2a48('0x1b'),_0x20c73c['if']('isConfirm',_0x2a48('0x2b'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x2a48('0xb'),'ck-revision-history-sidebar__revision',_0x20c73c['if']('isEnabled','ck-disabled',_0x3471ec=>!_0x3471ec),_0x20c73c['if'](_0x2a48('0x13'),'ck-revision-history-sidebar__revision_selected'),_0x20c73c['if']('isHighlighted',_0x2a48('0x2d')),_0x20c73c['if'](_0x2a48('0x25'),_0x2a48('0x0'))]},'children':[this[_0x2a48('0x23')],{'tag':_0x2a48('0x1f'),'attributes':{'class':['ck',_0x2a48('0xc')]},'children':[{'text':_0x20c73c['to']('_createdAtFormatted')}]},{'tag':_0x2a48('0x16'),'attributes':{'class':['ck',_0x2a48('0x2f')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2a48('0x2')]},'children':_0x532e41}]},this[_0x2a48('0x12')]],'on':{'click':_0x20c73c['to'](_0x3dab0f=>{_0x3dab0f[_0x2a48('0x5')][_0x2a48('0x9')](_0x2a48('0x29'))||this[_0x2a48('0x6')]&&this['isEnabled']&&this[_0x2a48('0x11')]('select',{'id':this['id']});})}}]});}[_0x2a48('0x3')](){super['render']();const _0x27e21f=this['revisionNameView'][_0x2a48('0xf')][_0x2a48('0x8')];this[_0x2a48('0x1c')](_0x27e21f,_0x2a48('0x22'),()=>{this[_0x2a48('0x11')](_0x2a48('0x28'),{'id':this['id'],'name':_0x27e21f[_0x2a48('0x7')]});});}[_0x2a48('0xe')](){this['isSelected']=!0x0;}[_0x2a48('0x24')](){this['isSelected']=!0x1;}[_0x2a48('0x1e')](){this[_0x2a48('0x10')]=!0x0;}[_0x2a48('0x14')](){this[_0x2a48('0x10')]=!0x1;}}_0x47f306(ci,_0x5819b1);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49f1=['toggle','_isCollapsed','true','span','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser_collapsed','false','isVisible','set','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','ck-hidden','setTemplate'];(function(_0x4a12a7,_0x49f11d){const _0x38e6ea=function(_0x419f2f){while(--_0x419f2f){_0x4a12a7['push'](_0x4a12a7['shift']());}};_0x38e6ea(++_0x49f11d);}(_0x49f1,0x19b));const _0x38e6=function(_0x4a12a7,_0x49f11d){_0x4a12a7=_0x4a12a7-0x0;let _0x38e6ea=_0x49f1[_0x4a12a7];return _0x38e6ea;};import{View as _0x471f17}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x471f17{constructor(_0x230fb9){super(_0x230fb9);const _0x424d36=this[_0x38e6('0x2')];this[_0x38e6('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x38e6('0x4')]({'tag':'span','attributes':{'class':['ck',_0x38e6('0x9'),_0x424d36['if'](_0x38e6('0xc'),_0x38e6('0x3'),_0x51407a=>!_0x51407a),_0x424d36['if']('_isCollapsed',_0x38e6('0xa'))],'role':'button','aria-pressed':_0x424d36['to'](_0x38e6('0x6'),_0x482abf=>_0x482abf?_0x38e6('0xb'):_0x38e6('0x7'))},'children':[{'tag':_0x38e6('0x8'),'attributes':{'class':['ck',_0x38e6('0x1')]}}],'on':{'click':_0x424d36['to']('click')}});}[_0x38e6('0x5')](){this[_0x38e6('0x6')]=!this[_0x38e6('0x6')];}}
23
+ const _0x4001=['isVisible','true','span','ck-revision-history-sidebar__subrevision-collapser','setTemplate','click','bindTemplate','button','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-hidden','false','_isCollapsed'];(function(_0x135eeb,_0x40013d){const _0x5c3a2d=function(_0x57dec5){while(--_0x57dec5){_0x135eeb['push'](_0x135eeb['shift']());}};_0x5c3a2d(++_0x40013d);}(_0x4001,0xb5));const _0x5c3a=function(_0x135eeb,_0x40013d){_0x135eeb=_0x135eeb-0x0;let _0x5c3a2d=_0x4001[_0x135eeb];return _0x5c3a2d;};import{View as _0x522cc7}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x522cc7{constructor(_0x151e67){super(_0x151e67);const _0x3d14a6=this[_0x5c3a('0x5')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5c3a('0x3')]({'tag':_0x5c3a('0x1'),'attributes':{'class':['ck',_0x5c3a('0x2'),_0x3d14a6['if'](_0x5c3a('0xb'),_0x5c3a('0x8'),_0x4bc38f=>!_0x4bc38f),_0x3d14a6['if'](_0x5c3a('0xa'),_0x5c3a('0x7'))],'role':_0x5c3a('0x6'),'aria-pressed':_0x3d14a6['to'](_0x5c3a('0xa'),_0x4169a7=>_0x4169a7?_0x5c3a('0x9'):_0x5c3a('0x0'))},'children':[{'tag':_0x5c3a('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x3d14a6['to'](_0x5c3a('0x4'))}});}['toggle'](){this['_isCollapsed']=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5916=['div','ck-revision-history-sidebar__subrevision','isSelected','deselect','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision_selected','bind','select','ck-revision-history-sidebar__revision','createdAt','setTemplate','span','ck-reset','set','_parentRevisionId','author','_createdAtFormatted'];(function(_0x4fb7e1,_0x59167f){const _0xebe9ca=function(_0x3447ab){while(--_0x3447ab){_0x4fb7e1['push'](_0x4fb7e1['shift']());}};_0xebe9ca(++_0x59167f);}(_0x5916,0x1b3));const _0xebe9=function(_0x4fb7e1,_0x59167f){_0x4fb7e1=_0x4fb7e1-0x0;let _0xebe9ca=_0x5916[_0x4fb7e1];return _0xebe9ca;};import{View as _0x3d1399}from'ckeditor5/src/ui';import _0x45fa6a from'./revisionauthorview';import{dateToPrettyFormat as _0x14f764}from'./utils';import'../../../theme/revision/subrevision.css';export default class dt extends _0x3d1399{constructor(_0x11804f,_0x16ef63,_0x441bef){super(_0x11804f);const _0x357456=this['bindTemplate'];this['id']=_0x16ef63['id'],this['bind'](_0xebe9('0x7'))['to'](_0x16ef63),this[_0xebe9('0xb')](_0xebe9('0x11'),!0x1),this[_0xebe9('0x4')](_0xebe9('0xe'))['to'](this,_0xebe9('0x7'),_0x1a548e=>_0x1a548e?_0x14f764(_0x11804f['uiLanguage'],_0x1a548e):null),this[_0xebe9('0xc')]=_0x441bef,this[_0xebe9('0x8')]({'tag':_0xebe9('0xf'),'attributes':{'class':['ck',_0xebe9('0xa'),_0xebe9('0x6'),_0xebe9('0x10'),_0x357456['if'](_0xebe9('0x11'),_0xebe9('0x3'))]},'children':[{'tag':_0xebe9('0x9'),'attributes':{'class':['ck',_0xebe9('0x2')]},'children':[{'text':_0x357456['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0xebe9('0x1')]},'children':[new _0x45fa6a(_0x11804f,_0x16ef63[_0xebe9('0xd')],!0x0)]}],'on':{'click':_0x357456['to'](this[_0xebe9('0x5')][_0xebe9('0x4')](this))}});}['select'](){this['isSelected']=!0x0,this['fire'](_0xebe9('0x5'),{'parentId':this[_0xebe9('0xc')]});}[_0xebe9('0x0')](){this[_0xebe9('0x11')]=!0x1;}}
23
+ const _0xe59e=['ck-revision-history-sidebar__revision_selected','select','ck-revision-history-sidebar__revision__date','setTemplate','isSelected','author','_parentRevisionId','deselect','ck-reset','bind','uiLanguage','bindTemplate','ck-revision-history-sidebar__revision-authors','createdAt','div','_createdAtFormatted','ck-revision-history-sidebar__subrevision','fire'];(function(_0x150ac3,_0xe59e92){const _0x3d2d2a=function(_0x298fa0){while(--_0x298fa0){_0x150ac3['push'](_0x150ac3['shift']());}};_0x3d2d2a(++_0xe59e92);}(_0xe59e,0xbc));const _0x3d2d=function(_0x150ac3,_0xe59e92){_0x150ac3=_0x150ac3-0x0;let _0x3d2d2a=_0xe59e[_0x150ac3];return _0x3d2d2a;};import{View as _0x18fb56}from'ckeditor5/src/ui';import _0x57a8f9 from'./revisionauthorview';import{dateToPrettyFormat as _0xa2c1cc}from'./utils';import'../../../theme/revision/subrevision.css';export default class dt extends _0x18fb56{constructor(_0xf4695,_0x422dd6,_0x4011f4){super(_0xf4695);const _0x4819c8=this[_0x3d2d('0x3')];this['id']=_0x422dd6['id'],this[_0x3d2d('0x1')]('createdAt')['to'](_0x422dd6),this['set'](_0x3d2d('0xe'),!0x1),this[_0x3d2d('0x1')](_0x3d2d('0x7'))['to'](this,_0x3d2d('0x5'),_0x7363a3=>_0x7363a3?_0xa2c1cc(_0xf4695[_0x3d2d('0x2')],_0x7363a3):null),this[_0x3d2d('0x10')]=_0x4011f4,this[_0x3d2d('0xd')]({'tag':_0x3d2d('0x6'),'attributes':{'class':['ck',_0x3d2d('0x0'),'ck-revision-history-sidebar__revision',_0x3d2d('0x8'),_0x4819c8['if']('isSelected',_0x3d2d('0xa'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x3d2d('0xc')]},'children':[{'text':_0x4819c8['to'](_0x3d2d('0x7'))}]},{'tag':'ul','attributes':{'class':['ck',_0x3d2d('0x4')]},'children':[new _0x57a8f9(_0xf4695,_0x422dd6[_0x3d2d('0xf')],!0x0)]}],'on':{'click':_0x4819c8['to'](this[_0x3d2d('0xb')][_0x3d2d('0x1')](this))}});}[_0x3d2d('0xb')](){this['isSelected']=!0x0,this[_0x3d2d('0x9')](_0x3d2d('0xb'),{'parentId':this[_0x3d2d('0x10')]});}[_0x3d2d('0x11')](){this[_0x3d2d('0xe')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3436=['numeric'];(function(_0x1756c9,_0x3436e6){var _0x4d12e7=function(_0x4b85fd){while(--_0x4b85fd){_0x1756c9['push'](_0x1756c9['shift']());}};_0x4d12e7(++_0x3436e6);}(_0x3436,0xc6));var _0x4d12=function(_0x1756c9,_0x3436e6){_0x1756c9=_0x1756c9-0x0;var _0x4d12e7=_0x3436[_0x1756c9];return _0x4d12e7;};export function dateToPrettyFormat(_0x4f9f3c,_0x46a533){return _0x46a533['toLocaleDateString'](_0x4f9f3c,{'month':'long','day':'numeric'})+',\x20'+_0x46a533['toLocaleTimeString'](_0x4f9f3c,{'hour':_0x4d12('0x0'),'minute':_0x4d12('0x0')});}
23
+ var _0xf28f=['long','toLocaleDateString','numeric'];(function(_0x5ab4af,_0xf28f78){var _0x1bfd8f=function(_0x2f5cc6){while(--_0x2f5cc6){_0x5ab4af['push'](_0x5ab4af['shift']());}};_0x1bfd8f(++_0xf28f78);}(_0xf28f,0x1e1));var _0x1bfd=function(_0x5ab4af,_0xf28f78){_0x5ab4af=_0x5ab4af-0x0;var _0x1bfd8f=_0xf28f[_0x5ab4af];return _0x1bfd8f;};export function dateToPrettyFormat(_0x20f71a,_0x5a43f4){return _0x5a43f4[_0x1bfd('0x0')](_0x20f71a,{'month':_0x1bfd('0x2'),'day':_0x1bfd('0x1')})+',\x20'+_0x5a43f4['toLocaleTimeString'](_0x20f71a,{'hour':_0x1bfd('0x1'),'minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49eb=['arrowup','render','focusTracker','cancelButtonView','_createButton','_focusables','execute','submit','add','revisionNameInputValue','element','focusFirst','value','input','selectstart','locale','extendTemplate','ck-button-save','Save','arrowright','form','revisionNameInputView','set','trim','keystrokes','fieldView','220','saveButtonView','label','ck-revision-history-save-revision-form','setTemplate','Name\x20of\x20the\x20revision\x20(optional)','_focusCycler','ck-button-cancel','delegate','forEach','revisionName','type','ck-responsive-form','high','shift\x20+\x20tab','cancel','listenTo'];(function(_0x3be912,_0x49ebb6){const _0xf87123=function(_0x55b015){while(--_0x55b015){_0x3be912['push'](_0x3be912['shift']());}};_0xf87123(++_0x49ebb6);}(_0x49eb,0x15f));const _0xf871=function(_0x3be912,_0x49ebb6){_0x3be912=_0x3be912-0x0;let _0xf87123=_0x49eb[_0x3be912];return _0xf87123;};import{ButtonView as _0x448034,FocusCycler as _0x373833,LabeledFieldView as _0xa498c4,View as _0x38f84a,ViewCollection as _0x3e163d,createLabeledInputText as _0x591946,injectCssTransitionDisabler as _0x47ce00,submitHandler as _0x922eb2}from'ckeditor5/src/ui';import{FocusTracker as _0x183e72,KeystrokeHandler as _0x13bdf2}from'ckeditor5/src/utils';import{getTranslation as _0x5d3736}from'../../utils/common-translations';import _0x4ec74c from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x2924f7 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class gt extends _0x38f84a{constructor(_0xd91f31){super(_0xd91f31),this['focusTracker']=new _0x183e72(),this[_0xf871('0x11')]=new _0x13bdf2(),this['set'](_0xf871('0x2'),''),this[_0xf871('0xe')]=this['_createRevisionNameInput'](),this[_0xf871('0x14')]=this[_0xf871('0x28')](_0x5d3736(_0xd91f31,_0xf871('0xb')),_0x4ec74c,_0xf871('0xa')),this[_0xf871('0x14')][_0xf871('0x1e')]=_0xf871('0x0'),this['cancelButtonView']=this['_createButton'](_0x5d3736(_0xd91f31,'Cancel'),_0x2924f7,_0xf871('0x1a'),_0xf871('0x22')),this['_focusables']=new _0x3e163d(),this['_focusCycler']=new _0x373833({'focusables':this[_0xf871('0x29')],'focusTracker':this[_0xf871('0x26')],'keystrokeHandler':this[_0xf871('0x11')],'actions':{'focusPrevious':_0xf871('0x21'),'focusNext':'tab'}}),this[_0xf871('0x17')]({'tag':_0xf871('0xd'),'attributes':{'class':['ck',_0xf871('0x16'),_0xf871('0x1f')],'tabindex':'-1'},'children':[this[_0xf871('0xe')],this[_0xf871('0x14')],this[_0xf871('0x27')]]}),_0x47ce00(this);}[_0xf871('0x25')](){super[_0xf871('0x25')](),_0x922eb2({'view':this}),([this[_0xf871('0xe')],this[_0xf871('0x14')],this[_0xf871('0x27')]][_0xf871('0x1c')](_0x81280a=>{this[_0xf871('0x29')][_0xf871('0x1')](_0x81280a),this[_0xf871('0x26')][_0xf871('0x1')](_0x81280a['element']);}),this[_0xf871('0x11')][_0xf871('0x23')](this[_0xf871('0x3')]));const _0x23c028=_0x2e1a9a=>_0x2e1a9a['stopPropagation']();this[_0xf871('0x11')]['set'](_0xf871('0xc'),_0x23c028),this[_0xf871('0x11')][_0xf871('0xf')]('arrowleft',_0x23c028),this[_0xf871('0x11')][_0xf871('0xf')](_0xf871('0x24'),_0x23c028),this[_0xf871('0x11')]['set']('arrowdown',_0x23c028),this['listenTo'](this[_0xf871('0xe')]['element'],_0xf871('0x7'),(_0x4cc773,_0x347acc)=>{_0x347acc['stopPropagation']();},{'priority':_0xf871('0x20')});}['focus'](){this[_0xf871('0x19')][_0xf871('0x4')]();}get[_0xf871('0x1d')](){return this[_0xf871('0xe')][_0xf871('0x12')]['element'][_0xf871('0x5')][_0xf871('0x10')]();}set[_0xf871('0x1d')](_0x48a02d){this['revisionNameInputView'][_0xf871('0x12')][_0xf871('0x3')]['value']=_0x48a02d[_0xf871('0x10')]();}['reset'](){this[_0xf871('0xe')][_0xf871('0x12')][_0xf871('0x3')][_0xf871('0x5')]='';}['_createRevisionNameInput'](){const _0x397a41=new _0xa498c4(this[_0xf871('0x8')],_0x591946),_0x7798c6=_0x397a41['fieldView'];return _0x7798c6[_0xf871('0x9')]({'attributes':{'maxlength':_0xf871('0x13')}}),_0x397a41[_0xf871('0x15')]=_0x5d3736(this[_0xf871('0x8')],_0xf871('0x18')),_0x7798c6['on'](_0xf871('0x6'),()=>{this[_0xf871('0x2')]=_0x7798c6[_0xf871('0x3')]['value'][_0xf871('0x10')]();}),_0x397a41;}[_0xf871('0x28')](_0x4b5163,_0xda8fb1,_0x145642,_0x19c4d5){const _0x41d208=new _0x448034(this['locale']);return _0x41d208['set']({'label':_0x4b5163,'icon':_0xda8fb1,'tooltip':!0x0}),_0x41d208[_0xf871('0x9')]({'attributes':{'class':_0x145642}}),_0x19c4d5&&_0x41d208[_0xf871('0x1b')](_0xf871('0x2a'))['to'](this,_0x19c4d5),_0x41d208;}}
23
+ const _0x420a=['input','revisionNameInputValue','listenTo','revisionNameInputView','setTemplate','cancelButtonView','ck-responsive-form','focusFirst','forEach','focusTracker','delegate','Name\x20of\x20the\x20revision\x20(optional)','execute','_focusCycler','arrowdown','render','submit','keystrokes','ck-button-save','add','_createButton','arrowleft','set','high','element','ck-button-cancel','value','saveButtonView','type','trim','reset','220','arrowright','locale','_focusables','revisionName','tab','arrowup','form','fieldView','ck-revision-history-save-revision-form','label','shift\x20+\x20tab','extendTemplate','_createRevisionNameInput','stopPropagation'];(function(_0x3acfec,_0x420a2e){const _0x3faa43=function(_0x2f6a0b){while(--_0x2f6a0b){_0x3acfec['push'](_0x3acfec['shift']());}};_0x3faa43(++_0x420a2e);}(_0x420a,0x15b));const _0x3faa=function(_0x3acfec,_0x420a2e){_0x3acfec=_0x3acfec-0x0;let _0x3faa43=_0x420a[_0x3acfec];return _0x3faa43;};import{ButtonView as _0x515e05,FocusCycler as _0x4a6705,LabeledFieldView as _0x1ded3f,View as _0x59efbe,ViewCollection as _0x5e07ee,createLabeledInputText as _0x1fa8b2,injectCssTransitionDisabler as _0x55ab86,submitHandler as _0x37cc4e}from'ckeditor5/src/ui';import{FocusTracker as _0x44edb0,KeystrokeHandler as _0x11c6b0}from'ckeditor5/src/utils';import{getTranslation as _0x18314b}from'../../utils/common-translations';import _0x1a7975 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x393c16 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class gt extends _0x59efbe{constructor(_0x363f74){super(_0x363f74),this[_0x3faa('0x1e')]=new _0x44edb0(),this['keystrokes']=new _0x11c6b0(),this['set'](_0x3faa('0x16'),''),this[_0x3faa('0x18')]=this['_createRevisionNameInput'](),this[_0x3faa('0x2')]=this[_0x3faa('0x29')](_0x18314b(_0x363f74,'Save'),_0x1a7975,_0x3faa('0x27')),this[_0x3faa('0x2')][_0x3faa('0x3')]=_0x3faa('0x25'),this[_0x3faa('0x1a')]=this[_0x3faa('0x29')](_0x18314b(_0x363f74,'Cancel'),_0x393c16,_0x3faa('0x0'),'cancel'),this[_0x3faa('0x9')]=new _0x5e07ee(),this['_focusCycler']=new _0x4a6705({'focusables':this['_focusables'],'focusTracker':this[_0x3faa('0x1e')],'keystrokeHandler':this[_0x3faa('0x26')],'actions':{'focusPrevious':_0x3faa('0x11'),'focusNext':_0x3faa('0xb')}}),this[_0x3faa('0x19')]({'tag':_0x3faa('0xd'),'attributes':{'class':['ck',_0x3faa('0xf'),_0x3faa('0x1b')],'tabindex':'-1'},'children':[this[_0x3faa('0x18')],this['saveButtonView'],this[_0x3faa('0x1a')]]}),_0x55ab86(this);}[_0x3faa('0x24')](){super['render'](),_0x37cc4e({'view':this}),([this[_0x3faa('0x18')],this[_0x3faa('0x2')],this['cancelButtonView']][_0x3faa('0x1d')](_0x229337=>{this[_0x3faa('0x9')][_0x3faa('0x28')](_0x229337),this['focusTracker'][_0x3faa('0x28')](_0x229337[_0x3faa('0x2d')]);}),this['keystrokes'][_0x3faa('0x17')](this[_0x3faa('0x2d')]));const _0x25819f=_0x1b7d1c=>_0x1b7d1c[_0x3faa('0x14')]();this['keystrokes']['set'](_0x3faa('0x7'),_0x25819f),this[_0x3faa('0x26')]['set'](_0x3faa('0x2a'),_0x25819f),this[_0x3faa('0x26')][_0x3faa('0x2b')](_0x3faa('0xc'),_0x25819f),this[_0x3faa('0x26')][_0x3faa('0x2b')](_0x3faa('0x23'),_0x25819f),this[_0x3faa('0x17')](this[_0x3faa('0x18')][_0x3faa('0x2d')],'selectstart',(_0x13ee20,_0x37377b)=>{_0x37377b[_0x3faa('0x14')]();},{'priority':_0x3faa('0x2c')});}['focus'](){this[_0x3faa('0x22')][_0x3faa('0x1c')]();}get[_0x3faa('0xa')](){return this[_0x3faa('0x18')][_0x3faa('0xe')][_0x3faa('0x2d')][_0x3faa('0x1')][_0x3faa('0x4')]();}set[_0x3faa('0xa')](_0x54614){this[_0x3faa('0x18')][_0x3faa('0xe')][_0x3faa('0x2d')][_0x3faa('0x1')]=_0x54614['trim']();}[_0x3faa('0x5')](){this['revisionNameInputView'][_0x3faa('0xe')][_0x3faa('0x2d')][_0x3faa('0x1')]='';}[_0x3faa('0x13')](){const _0x51cba9=new _0x1ded3f(this[_0x3faa('0x8')],_0x1fa8b2),_0x5bbcc2=_0x51cba9['fieldView'];return _0x5bbcc2[_0x3faa('0x12')]({'attributes':{'maxlength':_0x3faa('0x6')}}),_0x51cba9[_0x3faa('0x10')]=_0x18314b(this[_0x3faa('0x8')],_0x3faa('0x20')),_0x5bbcc2['on'](_0x3faa('0x15'),()=>{this[_0x3faa('0x16')]=_0x5bbcc2['element'][_0x3faa('0x1')]['trim']();}),_0x51cba9;}[_0x3faa('0x29')](_0x1f5cd7,_0x2b67fa,_0x3355d6,_0x39466f){const _0x4df720=new _0x515e05(this[_0x3faa('0x8')]);return _0x4df720[_0x3faa('0x2b')]({'label':_0x1f5cd7,'icon':_0x2b67fa,'tooltip':!0x0}),_0x4df720['extendTemplate']({'attributes':{'class':_0x3355d6}}),_0x39466f&&_0x4df720[_0x3faa('0x1f')](_0x3faa('0x21'))['to'](this,_0x39466f),_0x4df720;}}