@ckeditor/ckeditor5-revision-history 37.1.0 → 38.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/build/revision-history.js +1 -1
  2. package/lang/translations/af.po +1 -1
  3. package/lang/translations/ar.po +1 -1
  4. package/lang/translations/az.po +1 -1
  5. package/lang/translations/bg.po +1 -1
  6. package/lang/translations/bn.po +1 -1
  7. package/lang/translations/bs.po +1 -1
  8. package/lang/translations/ca.po +1 -1
  9. package/lang/translations/cs.po +1 -1
  10. package/lang/translations/da.po +1 -1
  11. package/lang/translations/de-ch.po +1 -1
  12. package/lang/translations/de.po +1 -1
  13. package/lang/translations/el.po +1 -1
  14. package/lang/translations/en-au.po +1 -1
  15. package/lang/translations/en-gb.po +1 -1
  16. package/lang/translations/es-co.po +1 -1
  17. package/lang/translations/es.po +1 -1
  18. package/lang/translations/et.po +1 -1
  19. package/lang/translations/fa.po +1 -1
  20. package/lang/translations/fi.po +1 -1
  21. package/lang/translations/fr.po +1 -1
  22. package/lang/translations/gl.po +1 -1
  23. package/lang/translations/he.po +1 -1
  24. package/lang/translations/hi.po +1 -1
  25. package/lang/translations/hr.po +1 -1
  26. package/lang/translations/hu.po +1 -1
  27. package/lang/translations/id.po +1 -1
  28. package/lang/translations/it.po +1 -1
  29. package/lang/translations/ja.po +1 -1
  30. package/lang/translations/jv.po +1 -1
  31. package/lang/translations/ko.po +1 -1
  32. package/lang/translations/ku.po +1 -1
  33. package/lang/translations/lt.po +1 -1
  34. package/lang/translations/lv.po +1 -1
  35. package/lang/translations/ms.po +1 -1
  36. package/lang/translations/ne.po +1 -1
  37. package/lang/translations/nl.po +1 -1
  38. package/lang/translations/no.po +1 -1
  39. package/lang/translations/pl.po +1 -1
  40. package/lang/translations/pt-br.po +1 -1
  41. package/lang/translations/pt.po +1 -1
  42. package/lang/translations/ro.po +1 -1
  43. package/lang/translations/ru.po +1 -1
  44. package/lang/translations/sk.po +1 -1
  45. package/lang/translations/sr-latn.po +1 -1
  46. package/lang/translations/sr.po +1 -1
  47. package/lang/translations/sv.po +1 -1
  48. package/lang/translations/th.po +1 -1
  49. package/lang/translations/tk.po +1 -1
  50. package/lang/translations/tr.po +1 -1
  51. package/lang/translations/tt.po +1 -1
  52. package/lang/translations/ug.po +1 -1
  53. package/lang/translations/uk.po +1 -1
  54. package/lang/translations/ur.po +1 -1
  55. package/lang/translations/vi.po +1 -1
  56. package/lang/translations/zh-cn.po +1 -1
  57. package/lang/translations/zh.po +1 -1
  58. package/package.json +2 -2
  59. package/src/changeitem.js +1 -1
  60. package/src/editor/revisionviewereditor.js +1 -1
  61. package/src/editor/revisionviewereditorui.js +1 -1
  62. package/src/editor/revisionviewereditoruiview.js +1 -1
  63. package/src/revision.js +1 -1
  64. package/src/revisiondiff.js +1 -1
  65. package/src/revisionhistory.js +1 -1
  66. package/src/revisionsrepository.js +1 -1
  67. package/src/revisiontracker.js +1 -1
  68. package/src/revisionviewer.js +1 -1
  69. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  70. package/src/ui/revision/revisionauthorview.js +1 -1
  71. package/src/ui/revision/revisionnameview.js +1 -1
  72. package/src/ui/revision/revisionview.js +1 -1
  73. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  74. package/src/ui/revision/subrevisionview.js +1 -1
  75. package/src/ui/revision/utils.js +1 -1
  76. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  77. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  78. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  79. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  80. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  81. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  82. package/src/ui/revisionssidebar/utils.js +1 -1
  83. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  84. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  85. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  86. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  87. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x390c=['schema','merge','resolve','userId','restoreRevision','data','item','sort','execute','isAttached','isRemoved','pluginName','plugins','createUIElement','_refreshStartEndIndex','indexOf','writer','revision:','change','highest','currentChangeNumber','findIndex','split','processor','index','text','isAddSuggestion','addMarker:revision','commands','getWalker','collaboration.channelId','change:isReady','RevisionsRepository','_cleanMarkers','suggestion:','markerRange','refresh','showNextChange','ck-revision-history-root--active','set','elementToAttribute','target','addMarker:revision-suggestion:insertion','activeView','createAttributeElement','deletions','attributesBefore','_joinTapes','insertions','getItems','reconvertMarker','add','vid_start','listenTo','isContent','string','adapter','POSITIVE_INFINITY','bindElementToMarker','nodeAfter','isRemoveSuggestion','upcast','markerToData','_step','attributes','start','toViewRange','_changeIdToChange','_getViewObj','map','getAttribute','change:isEnabled','_getViewForChange','ck-suggestion-marker-','nextPosition','getRootNames','children','mapper','elementEnd','_cleanUp','enqueueChange','detachRoot','ck-suggestion-marker-merge','setAttribute','downcastDispatcher','pop','uiElement','isAtStart','markersEnd','_processTape','loadRevisionData','isAfter','diffData','addClass','removeMarker','updatePosition','for','createPositionBefore','revision','find','revisionHistoryLabel','pairId','vid','_getChangeFromId','rootName','locale','_removeRevisionMarkers','dataToMarker','getRoot','_initInteractions','_balloon','WidgetToolbarRepository','getClientRects','right','deletion','push','numberOfChanges','markerNameToElements','isEqual','ck-suggestion-marker--active','markersStart','_appendChild','get','data-change-id','getAttributes','getRevisionRootsAttributes','removeMarker:revision-suggestion','_markMismatchedRemovedTags','createPositionFromPath','hasAttribute','isAtEnd','observeMarkers','_findChangeIdFromDomTarget','top','_activeViewTarget','toModel','_threeWayMerge','remove','delete','createRange','createRevision','revision-suggestion','readOnlyMode','forceDisabled','markerToHighlight','getIndex','markerName','removeAttribute','addRevision','editing','isInline','ck-revision-history-root-','diff','_markMarkers','ck-suggestion-preview-marker','abs','useFillerType','hasClass','stopListening','selection','config','createRangeIn','isObject','has','catch','editor','offsetSize','restoreRevisionCallback','softBreak','change:activeChange','ck-suggestion-marker-split','marked','low','span','RevisionViewer','-new','insert','editingDowncast','isCollapsed','_update','elementStart','isReady','document','element','_changeView','parent','keys','distance','next','model','isAdded','isIncorrect','viewItem','change:isReadOnly','revisionHistoryAttachChange','changes','requires','clear','domConverter','_setDistance','isBlock','high','bind','isLimit','previousPosition','compare','test','attachChange','_getDiff','slice','isSuggestion','toViewPosition','dataDowncast','name','startIndex','_data','_fixObsoleteTags','_makeTape','data-revision-','endIndex','getCustomProperty','mapViewToDom','getRevision','checkAttribute','isBefore','_revisions','forward','getDomRoot','attributesAfter','mousedown','unshift','length','newRevisionId','_removeMissingPairs','changeId','end','activeChange','domEvent','getRevisionData','removeClass','includes','concat','level','_markSuggestions','_makeModelFromViewString','conversion','from','type','_markInsertions','filter','isEnabled','parse','repository','startsWith','vid_end','_getRevisionsRange','_sortAndFilterDiffChanges','consumable','revision-suggestion:','consume','view','mouseover','unbindElementFromMarkerName','then','splice','ck-editor__editable__overlay','forEach','toData','all','_makeModelFromTape','_removeUnsupportedChanges','side','clearForceDisabled','revision-end','revision-start','nextSibling','modelRange','error','wrap','init','comment','ck-suggestion-preview-marker-','isNavigationMode','maxOffset','_setConversion','getChild','addHighlight','isOnRoot','markers','shift','insertion','toViewElement','values'];(function(_0x170e5d,_0x390c42){const _0x327408=function(_0x75bc26){while(--_0x75bc26){_0x170e5d['push'](_0x170e5d['shift']());}};_0x327408(++_0x390c42);}(_0x390c,0xc4));const _0x3274=function(_0x170e5d,_0x390c42){_0x170e5d=_0x170e5d-0x0;let _0x327408=_0x390c[_0x170e5d];return _0x327408;};import{Plugin as _0x372754,Command as _0x417964}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1d4656}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4486c4}from'ckeditor5/src/ui';import{DocumentFragment as _0x4005fc,Element as _0x180c2e,Text as _0x3728ac,ViewDocumentFragment as _0x497830,ViewText as _0x26e468,ViewElement as _0x9acf,ViewContainerElement as _0x43f85c,ViewAttributeElement as _0x26e8b9,ViewEmptyElement as _0x582c72,ViewRawElement as _0x20dcd5,ViewUIElement as _0x39a910}from'ckeditor5/src/engine';import{Users as _0x3618c5,getMarkerDomElement as _0x917108}from'ckeditor5-collaboration/src/collaboration-core';import _0x178cd4 from'./ui/revisionviewer/changedetailsview';import _0xa29013 from'./revisionsrepository';import _0x2e882f from'./changeitem';import{default as _0xd276b1}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x967fb5}from'lodash-es';const X={'c':_0x43f85c,'a':_0x26e8b9,'e':_0x582c72,'r':_0x20dcd5,'u':_0x39a910};export default class w extends _0x372754{static get[_0x3274('0x6c')](){return _0x3274('0x10f');}static get[_0x3274('0x0')](){return[_0x3618c5,_0x4486c4,_0xa29013];}constructor(_0x3e04af){super(_0x3e04af),this['repository']=this[_0x3274('0x106')][_0x3274('0x6d')][_0x3274('0xdb')](_0x3274('0x81')),this[_0x3274('0x88')](_0x3274('0x28'),null),this[_0x3274('0x88')](_0x3274('0x8c'),null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this[_0x3274('0x88')](_0x3274('0x36'),!0x0),this['on'](_0x3274('0xa8'),(_0xf2c990,_0x58175f,_0x3160cc)=>{this[_0x3274('0x28')]=null,this['activeView']=null,this[_0x3274('0x106')][_0x3274('0xf6')]['view'][_0x3274('0x73')](_0x39da3c=>{for(const _0xe8404c of this[_0x3274('0x106')][_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x117')]['roots'])_0x3160cc?_0x39da3c['removeClass'](_0x3274('0x45'),_0xe8404c):_0x39da3c[_0x3274('0xbe')](_0x3274('0x45'),_0xe8404c);});}),this[_0x3274('0x6')](_0x3274('0x56'))['to'](this,'activeChange',_0x331c61=>null!==_0x331c61),this[_0x3274('0x6')](_0x3274('0x75'))['to'](this,_0x3274('0x116'),this,_0x3274('0xf9'),this,_0x3274('0x28'),(_0x5749fb,_0x3342aa,_0x52b9de)=>_0x5749fb&&_0x52b9de?_0x3342aa['changes'][_0x3274('0xf2')](_0x52b9de):0x0),this[_0x3274('0x6')](_0x3274('0xd5'))['to'](this,_0x3274('0x116'),this,_0x3274('0xf9'),(_0x50495a,_0x1b5175)=>_0x50495a?_0x1b5175[_0x3274('0x124')][_0x3274('0x23')]:0x0),this[_0x3274('0x119')]=null,this[_0x3274('0xa4')]=new Map(),this[_0x3274('0x99')]=null,this[_0x3274('0xcf')]=this['editor'][_0x3274('0x6d')][_0x3274('0xdb')](_0x4486c4);}[_0x3274('0x53')](){const _0x773d7f=this['editor'],_0x3d2e09=new ShowChangeCommand(_0x773d7f,{'direction':'backward'}),_0x5b7caa=new ShowChangeCommand(_0x773d7f,{'direction':_0x3274('0x1e')});(_0x773d7f[_0x3274('0x7d')]['add']('showPreviousChange',_0x3d2e09),_0x773d7f[_0x3274('0x7d')][_0x3274('0x94')](_0x3274('0x86'),_0x5b7caa),_0x773d7f[_0x3274('0x7d')][_0x3274('0x94')](_0x3274('0x65'),new RestoreRevisionCommand(_0x773d7f)),this['on']('change:numberOfChanges',()=>{_0x3d2e09[_0x3274('0x85')](),_0x5b7caa[_0x3274('0x85')]();}),this[_0x3274('0x58')](),this[_0x3274('0xce')](),_0x773d7f['enableReadOnlyMode']('revision-viewer'),_0x773d7f[_0x3274('0x6d')][_0x3274('0x104')](_0x3274('0xd0')))&&_0x773d7f[_0x3274('0x6d')]['get'](_0x3274('0xd0'))[_0x3274('0xf0')]('revision-viewer');}async[_0x3274('0x2a')](_0x7cff6){await this['loadRevisionData'](_0x7cff6);const _0x1f4a3b={};for(const _0x30a413 in _0x7cff6[_0x3274('0xbd')]){if(_0x7cff6[_0x3274('0xbd')][_0x30a413]['attachChange']&&!_0x7cff6[_0x3274('0xbd')][_0x30a413][_0x3274('0xb')][_0x3274('0x6a')])continue;const _0xbb28ee=this[_0x3274('0xcb')](JSON['parse'](_0x7cff6[_0x3274('0xbd')][_0x30a413][_0x3274('0x91')])),_0x556a6c=this['editor'][_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x117')],_0x2b618e=new _0x497830(_0x556a6c,_0xbb28ee[_0x3274('0xa6')](_0xe52dca=>this[_0x3274('0xa5')](_0xe52dca)));this[_0x3274('0x106')][_0x3274('0x66')][_0x3274('0x78')]['useFillerType'](_0x3274('0x10c')),_0x1f4a3b[_0x30a413]=this[_0x3274('0x106')][_0x3274('0x66')][_0x3274('0x78')][_0x3274('0x47')](_0x2b618e),this[_0x3274('0x106')][_0x3274('0x66')]['processor'][_0x3274('0xfd')]('default');}return _0x1f4a3b;}async[_0x3274('0xde')](_0x396be6){await this[_0x3274('0xbb')](_0x396be6);const _0x392622={};for(const _0xc52484 in _0x396be6[_0x3274('0xbd')])_0x396be6[_0x3274('0xbd')][_0xc52484][_0x3274('0xb')]&&!_0x396be6[_0x3274('0xbd')][_0xc52484]['attachChange'][_0x3274('0x6a')]||(_0x392622[_0xc52484]=_0x396be6[_0x3274('0xbd')][_0xc52484]['attributesAfter']);return _0x392622;}[_0x3274('0xcb')](_0xb38dad){return(_0xb38dad=_0xb38dad[_0x3274('0x35')](_0x2354b6=>!_0x2354b6[_0x3274('0x11')]||_0x3274('0x4e')!==_0x2354b6[_0x3274('0x11')]&&_0x3274('0x4d')!==_0x2354b6[_0x3274('0x11')]))[_0x3274('0x46')](_0x104b68=>{_0x3274('0x98')!=typeof _0x104b68&&(_0x104b68[_0x3274('0xad')]=this[_0x3274('0xcb')](_0x104b68[_0x3274('0xad')]),_0x104b68[_0x3274('0xa1')]=_0x104b68['attributes'][_0x3274('0x35')](_0x2921c8=>!_0x2921c8[0x0][_0x3274('0x39')](_0x3274('0x16'))));}),_0xb38dad;}async[_0x3274('0x9')](_0x3a5073,_0x5aafa8,_0x2cf810=!0x1){if(!this[_0x3274('0x36')])return;const _0x3dff57=this['diff'],_0x138f57=this[_0x3274('0x38')],_0x42d2e6='string'==typeof _0x3a5073?_0x138f57[_0x3274('0x1a')](_0x3a5073):_0x3a5073,_0x1b9c1e=_0x3274('0x98')==typeof _0x5aafa8?_0x138f57[_0x3274('0x1a')](_0x5aafa8):_0x5aafa8,_0x466c08=_0x42d2e6['id'],_0x2bd2f7=_0x1b9c1e?_0x1b9c1e['id']:null;if(!_0x2cf810&&this[_0x3274('0xf9')]&&this[_0x3274('0xf9')][_0x3274('0x24')]===_0x466c08&&this[_0x3274('0xf9')]['oldRevisionId']===_0x2bd2f7)return Promise[_0x3274('0x63')]();this['isReady']=!0x1,this['activeView']=null,this[_0x3274('0x28')]=null,this[_0x3274('0xf9')]=new _0xd276b1(_0x466c08,_0x2bd2f7);const _0x2410c0=this[_0x3274('0x3b')](_0x42d2e6,_0x1b9c1e,!0x0)[_0x3274('0xa6')](_0x4a9003=>this[_0x3274('0xbb')](_0x4a9003));return _0x2410c0[_0x3274('0xd4')](new Promise(_0x35eb3b=>{setTimeout(_0x35eb3b,0x14);})),Promise[_0x3274('0x48')](_0x2410c0)['then'](()=>{if(!this[_0x3274('0x36')])return;this['_cleanUp']();const _0x3da65f=this[_0x3274('0xc')](_0x466c08,_0x2bd2f7);for(const _0x2253ce of _0x3da65f['changes'])this[_0x3274('0xa4')][_0x3274('0x88')](_0x2253ce['id'],_0x2253ce);this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0xb1')]({'isUndoable':!0x1},_0x3b4870=>{for(const _0x1759be of this['editor'][_0x3274('0x11e')][_0x3274('0x117')][_0x3274('0xac')]())_0x3b4870['detachRoot'](_0x1759be);for(const _0x41a864 of Object[_0x3274('0x11b')](_0x3da65f[_0x3274('0x11e')])){const _0x291d6b=_0x3b4870['addRoot'](_0x41a864);for(const _0x128159 of Object[_0x3274('0x11b')](_0x3da65f['attributes'][_0x41a864]))_0x3b4870[_0x3274('0xb4')](_0x128159,_0x3da65f[_0x3274('0xa1')][_0x41a864][_0x128159],_0x291d6b);_0x3b4870[_0x3274('0x111')](_0x3da65f[_0x3274('0x11e')][_0x41a864],_0x291d6b,0x0);}}),this[_0x3274('0xf9')]['_setChanges'](this[_0x3274('0x3c')](_0x3da65f['changes'])),this['isReady']=!0x0;})[_0x3274('0x105')](_0x5ea9ab=>{console[_0x3274('0x51')](_0x5ea9ab),this[_0x3274('0xb0')](),_0x3dff57&&(this['diff']=_0x3dff57),this[_0x3274('0x116')]=!0x0;});}['addRevisionData'](_0x421c34,_0x10fa3e){const _0x2f607b=this[_0x3274('0x38')][_0x3274('0xed')](_0x421c34);return _0x2f607b['on'](_0x3274('0x114'),(_0x5d3956,_0x50a751,_0x415573)=>_0x10fa3e(_0x50a751,_0x415573,_0x2f607b)),this[_0x3274('0x38')][_0x3274('0xf5')](_0x2f607b),_0x2f607b;}['loadRevisionData'](_0x2c6e6f){if(!_0x2c6e6f||_0x2c6e6f[_0x3274('0xbd')])return Promise[_0x3274('0x63')]();{const _0x1ad786=this[_0x3274('0x106')][_0x3274('0x101')][_0x3274('0xdb')](_0x3274('0x7f'));return this[_0x3274('0x99')]['getRevision']({'channelId':_0x1ad786,'revisionId':_0x2c6e6f['id']})[_0x3274('0x43')](_0xd3fc9e=>{_0x2c6e6f[_0x3274('0x114')]({'diffData':_0xd3fc9e[_0x3274('0xbd')]},!0x0);});}}[_0x3274('0xb0')](){this[_0x3274('0x28')]=null,this[_0x3274('0x82')](),this['_changeView']&&this[_0x3274('0x119')]['destroy'](),this[_0x3274('0x119')]=null,this['_changeIdToChange'][_0x3274('0x1')](),this['editor']['model'][_0x3274('0xb1')]({'isUndoable':!0x1},_0x23c6ea=>{for(const _0x247d37 of this[_0x3274('0x106')][_0x3274('0x11e')]['document'][_0x3274('0xac')]())_0x23c6ea[_0x3274('0xb2')](_0x247d37);});}[_0x3274('0x3c')](_0x6171f7){const _0x21fe31=[],_0x52db9e=new Map();for(const _0x7e3c8a of this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0x117')]['getRootNames']()){const _0x1e3615=this[_0x3274('0x106')]['editing']['view'][_0x3274('0x1f')](_0x7e3c8a);if(!_0x1e3615)continue;const _0x47b5ee=_0x1e3615[_0x3274('0xd1')]()[_0x3274('0x67')](0x0);_0x47b5ee&&(_0x21fe31[_0x3274('0xd4')](_0x7e3c8a),_0x52db9e[_0x3274('0x88')](_0x7e3c8a,_0x47b5ee));}return _0x21fe31[_0x3274('0x68')]((_0x2e615b,_0xa0b9d9)=>{const _0x44752c=_0x52db9e[_0x3274('0xdb')](_0x2e615b),_0x15c136=_0x52db9e[_0x3274('0xdb')](_0xa0b9d9);return _0x44752c['y']-_0x15c136['y']||_0x44752c['x']-_0x15c136['x'];}),(_0x6171f7=_0x6171f7[_0x3274('0x35')](_0x1904aa=>_0x21fe31['includes'](_0x1904aa['rootName'])))[_0x3274('0x68')]((_0x384761,_0xb24cc9)=>_0x21fe31[_0x3274('0x70')](_0x384761[_0x3274('0xc9')])-_0x21fe31[_0x3274('0x70')](_0xb24cc9[_0x3274('0xc9')])),_0x6171f7;}[_0x3274('0x15')](_0x1e45f1){const _0x279ed7=Array[_0x3274('0x32')](_0x1e45f1[_0x3274('0x5c')])[_0x3274('0x35')](([_0x4de27a,_0x25757d])=>_0x4de27a[_0x3274('0x39')]('revision:')&&!_0x25757d[_0x3274('0x113')]),_0x1bd740=Array[_0x3274('0x32')](this['editor'][_0x3274('0x11e')][_0x3274('0x102')](_0x1e45f1)[_0x3274('0x7e')]({'singleCharacters':!0x0}));if(0x0!=_0x279ed7[_0x3274('0x23')])for(const _0x3500e7 of _0x1bd740){const [_0x1cce7f,_0x451655]=_0x279ed7[0x0],[,_0x21d0f3,_0x2025a4]=_0x1cce7f[_0x3274('0x77')](':');if(_0x451655[_0x3274('0x27')][_0x3274('0xd7')](_0x3500e7[_0x3274('0xab')])&&_0x279ed7['shift'](),(_0x3500e7[_0x3274('0x8')][_0x3274('0xd7')](_0x451655[_0x3274('0xa2')])||_0x3500e7[_0x3274('0x8')][_0x3274('0xbc')](_0x451655['start']))&&(_0x3274('0x5e')==_0x21d0f3?_0x3500e7[_0x3274('0x11f')]={'userId':_0x2025a4}:_0x3274('0xd3')==_0x21d0f3&&(_0x3500e7[_0x3274('0x6b')]={'userId':_0x2025a4})),0x0==_0x279ed7[_0x3274('0x23')])break;}return _0x1bd740;}[_0x3274('0x6f')](_0xb6ee9c){const _0x367ba1=new Map();for(let _0x5d7e09=0x0;_0x5d7e09<_0xb6ee9c[_0x3274('0x23')];_0x5d7e09++)_0x3274('0x7a')===_0xb6ee9c[_0x5d7e09][_0x3274('0x33')]?(_0xb6ee9c[_0x5d7e09][_0x3274('0x67')][_0x3274('0x12')]=_0x5d7e09,_0xb6ee9c[_0x5d7e09][_0x3274('0x67')]['endIndex']=_0x5d7e09):(_0x3274('0x115')===_0xb6ee9c[_0x5d7e09]['type']?_0xb6ee9c[_0x5d7e09][_0x3274('0x67')][_0x3274('0x12')]=_0x5d7e09:'elementEnd'===_0xb6ee9c[_0x5d7e09][_0x3274('0x33')]&&(_0xb6ee9c[_0x5d7e09][_0x3274('0x67')][_0x3274('0x17')]=_0x5d7e09),_0x367ba1[_0x3274('0x88')](_0xb6ee9c[_0x5d7e09]['id'],_0x5d7e09));for(const _0x28fd84 of _0x367ba1[_0x3274('0x60')]())_0x3274('0x115')===_0xb6ee9c[_0x28fd84][_0x3274('0x33')]?_0xb6ee9c[_0x28fd84][_0x3274('0x67')][_0x3274('0x17')]=_0x367ba1['get'](_0xb6ee9c[_0x28fd84][_0x3274('0xc6')]):_0x3274('0xaf')===_0xb6ee9c[_0x28fd84][_0x3274('0x33')]&&(_0xb6ee9c[_0x28fd84][_0x3274('0x67')][_0x3274('0x12')]=_0x367ba1['get'](_0xb6ee9c[_0x28fd84]['pairId']));}['_processTape'](_0x1a289c){for(let _0x19ea9f=0x0;_0x19ea9f<_0x1a289c['length'];_0x19ea9f++){if(_0x3274('0x115')===_0x1a289c[_0x19ea9f][_0x3274('0x33')])_0x1a289c[_0x19ea9f][_0x3274('0x67')]['startIndex']=_0x19ea9f;else{if(_0x3274('0xaf')===_0x1a289c[_0x19ea9f][_0x3274('0x33')]){_0x1a289c[_0x19ea9f][_0x3274('0x67')][_0x3274('0x17')]=_0x19ea9f;const _0x1e64c6=_0x1a289c[_0x19ea9f][_0x3274('0x67')]['startIndex'];_0x1a289c[_0x1e64c6][_0x3274('0xc6')]=_0x1a289c[_0x19ea9f]['id'],_0x1a289c[_0x19ea9f][_0x3274('0xc6')]=_0x1a289c[_0x1e64c6]['id'];}else _0x1a289c[_0x19ea9f][_0x3274('0x67')][_0x3274('0x12')]=_0x19ea9f,_0x1a289c[_0x19ea9f][_0x3274('0x67')][_0x3274('0x17')]=_0x19ea9f,_0x1a289c[_0x19ea9f][_0x3274('0xc6')]=null;}_0x1a289c[_0x19ea9f][_0x3274('0xd9')]||(_0x1a289c[_0x19ea9f][_0x3274('0xd9')]=[],_0x1a289c[_0x19ea9f][_0x3274('0xb9')]=[]);}}[_0x3274('0x34')](_0x53ab5a,_0x295564){const _0x53de22=_0x53ab5a[_0x3274('0x35')](_0x345a1d=>!_0x345a1d[_0x3274('0x11f')]);for(let _0x7d1dc8=0x0;_0x7d1dc8<_0x295564[_0x3274('0x23')];_0x7d1dc8++)_0x295564[_0x7d1dc8][_0x3274('0x11f')]&&(_0x53de22[_0x7d1dc8][_0x3274('0x11f')]=_0x295564[_0x7d1dc8]['isAdded']);}[_0x3274('0x30')](_0x331510){const _0x18f442=JSON[_0x3274('0x37')](_0x331510),_0x5d2e62=this[_0x3274('0x106')]['editing'][_0x3274('0x40')][_0x3274('0x117')],_0x3be703=new _0x497830(_0x5d2e62,_0x18f442[_0x3274('0xa6')](_0x2f065c=>this[_0x3274('0xa5')](_0x2f065c)));return this[_0x3274('0x106')]['data'][_0x3274('0xe8')](_0x3be703);}[_0x3274('0xa5')](_0x37db40){const _0x7d7d24=this[_0x3274('0x106')][_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x117')];if('string'==typeof _0x37db40)return new _0x26e468(_0x7d7d24,_0x37db40);{const _0x51f822=_0x37db40[_0x3274('0xad')][_0x3274('0xa6')](_0x4d54cd=>this['_getViewObj'](_0x4d54cd));return new(X[_0x37db40[(_0x3274('0x33'))]]||_0x9acf)(_0x7d7d24,_0x37db40['name'],_0x37db40[_0x3274('0xa1')],_0x51f822);}}[_0x3274('0xc')](_0x322d0a,_0x5e83cc=null){const _0x5d7745=this[_0x3274('0x38')][_0x3274('0x1a')](_0x322d0a),_0x6adeb3=_0x5e83cc?this[_0x3274('0x38')][_0x3274('0x1a')](_0x5e83cc):null,_0x2acad1=this[_0x3274('0x3b')](_0x5d7745,_0x6adeb3),_0x13f0eb=_0x2acad1[_0x2acad1[_0x3274('0x23')]-0x1],_0x3adbe9=new Map(),_0x1faebe={'model':{},'attributes':{},'changes':[]},_0x198c65=new Set(),_0x7b9da2=new Map();for(let _0x2d59d9=_0x2acad1[_0x3274('0x23')]-0x1;_0x2d59d9>=0x0;_0x2d59d9--){const _0xc4e40=_0x2acad1[_0x2d59d9];for(const _0xb571b5 of Object[_0x3274('0x11b')](_0xc4e40[_0x3274('0xbd')]))if(_0xc4e40[_0x3274('0xbd')][_0xb571b5][_0x3274('0xb')]){const _0xfcf140=_0xc4e40['diffData'][_0xb571b5]['attachChange'];_0xfcf140['isAttached']?(_0x198c65[_0x3274('0x94')](_0xb571b5),_0x7b9da2[_0x3274('0x104')](_0xb571b5)&&_0x7b9da2['get'](_0xb571b5)[_0x3274('0x64')]==_0xfcf140[_0x3274('0x64')]?_0x7b9da2[_0x3274('0xeb')](_0xb571b5):_0x7b9da2[_0x3274('0x88')](_0xb571b5,_0xfcf140)):_0x7b9da2[_0x3274('0x104')](_0xb571b5)?(_0x198c65[_0x3274('0xeb')](_0xb571b5),_0x7b9da2[_0x3274('0xeb')](_0xb571b5)):(_0x198c65[_0x3274('0x94')](_0xb571b5),_0x7b9da2[_0x3274('0x88')](_0xb571b5,_0xfcf140));}else _0x198c65[_0x3274('0x94')](_0xb571b5);}for(const _0x57fcb6 of _0x198c65){const _0x5c6055=_0x7b9da2[_0x3274('0x104')](_0x57fcb6)&&!_0x7b9da2[_0x3274('0xdb')](_0x57fcb6)[_0x3274('0x6a')];let _0x3feaaa=_0x5c6055?_0x2acad1[_0x3274('0x23')]-0x1:0x0;const _0x537ab7=_0x5c6055?-0x1:0x1;for(;_0x2acad1[_0x3feaaa];){const _0xf3da20=_0x2acad1[_0x3feaaa];if(_0xf3da20['diffData'][_0x57fcb6]){const _0x405a5d=_0x5c6055?_0xf3da20[_0x3274('0xbd')][_0x57fcb6][_0x3274('0x8f')]:_0xf3da20[_0x3274('0xbd')][_0x57fcb6][_0x3274('0x20')];_0x1faebe[_0x3274('0xa1')][_0x57fcb6]=_0x405a5d?_0x967fb5(_0x405a5d):{};break;}_0x3feaaa+=_0x537ab7;}}for(const _0x26ce3c of _0x2acad1){_0x26ce3c['model']={};for(const _0x481482 of _0x26ce3c['authors'])_0x3adbe9[_0x3274('0x88')](_0x481482['id'],_0x481482);for(const _0x167c75 of _0x198c65){const _0x5c6524=_0x26ce3c[_0x3274('0xbd')][_0x167c75]?_0x26ce3c[_0x3274('0xbd')][_0x167c75][_0x3274('0x91')]:'[]',_0x3ad0e9=_0x26ce3c[_0x3274('0xbd')][_0x167c75]?_0x26ce3c['diffData'][_0x167c75][_0x3274('0x8e')]:'[]';_0x26ce3c[_0x3274('0x11e')][_0x167c75]={'insertions':this[_0x3274('0x30')](_0x5c6524),'deletions':this[_0x3274('0x30')](_0x3ad0e9)};}}for(const _0x302ce2 of _0x198c65){let _0x1cdea=null,_0x43dd86=0x0;const _0xfd5889=new Map(Array['from'](_0x5d7745[_0x3274('0x11e')][_0x302ce2][_0x3274('0x91')][_0x3274('0x5c')])[_0x3274('0x35')](([_0x2c4cf3])=>!_0x2c4cf3[_0x3274('0x39')]('revision:')));let _0x3955a3=0x0;for(const _0x42db57 of _0x2acad1){const _0x3fb5b2=this['_makeTape'](_0x42db57[_0x3274('0x11e')][_0x302ce2][_0x3274('0x91')]);_0x42db57==_0x5d7745?(_0x1cdea=_0x3fb5b2,_0x43dd86=_0x1cdea[_0x3274('0x23')],_0x1cdea[_0x3274('0x46')](_0x1478a4=>{_0x1478a4['id']=_0x3955a3++;}),this[_0x3274('0xba')](_0x1cdea)):this[_0x3274('0x34')](_0x1cdea,_0x3fb5b2);const _0x5c2f9b=_0x1cdea[_0x3274('0x35')](_0x1d2b05=>!_0x1d2b05[_0x3274('0x11f')])[_0x3274('0xa6')](_0x14f583=>_0x14f583['id']);let _0x1300bb=0x0;const _0x56d673=this[_0x3274('0x15')](_0x42db57[_0x3274('0x11e')][_0x302ce2][_0x3274('0x8e')]);_0x56d673[_0x3274('0x46')](_0x29b8e4=>{_0x29b8e4[_0x3274('0x6b')]?_0x29b8e4['id']=_0x43dd86++:_0x29b8e4['id']=_0x5c2f9b[_0x1300bb++];}),this[_0x3274('0xba')](_0x56d673),this[_0x3274('0x3')](_0x1cdea,_0x3274('0x11f')),this[_0x3274('0x3')](_0x56d673,_0x3274('0x6b')),_0x42db57==_0x5d7745&&this[_0x3274('0xfa')](_0x1cdea,_0xfd5889),_0x1cdea=this[_0x3274('0x90')](_0x1cdea,_0x56d673),this[_0x3274('0x6f')](_0x1cdea),this[_0x3274('0x3')](_0x1cdea,_0x3274('0x6b'));}_0x1cdea=_0x1cdea[_0x3274('0x35')](_0x3e67dd=>!(_0x3e67dd[_0x3274('0x11f')]&&_0x3e67dd[_0x3274('0x6b')]));const _0x23f48b=new Map(_0x13f0eb[_0x3274('0x11e')][_0x302ce2][_0x3274('0x8e')][_0x3274('0x5c')]),_0x27fa83=new Set(_0xfd5889[_0x3274('0x11b')]());for(const _0x33ea06 of _0x23f48b[_0x3274('0x11b')]())_0x27fa83[_0x3274('0xeb')](_0x33ea06);this[_0x3274('0x2f')](_0x1cdea,_0x27fa83),this[_0x3274('0x14')](_0x1cdea),_0x1cdea=this[_0x3274('0x25')](_0x1cdea),_0x1cdea=this[_0x3274('0xe0')](_0x1cdea),_0x1cdea=this[_0x3274('0x4a')](_0x1cdea);const {root:_0x7a0f6a,changes:_0x12b16e}=this[_0x3274('0x49')](_0x1cdea,_0x3adbe9,_0x302ce2);_0x1faebe[_0x3274('0x11e')][_0x302ce2]=_0x7a0f6a;const _0x211c5c=_0x7b9da2['get'](_0x302ce2);if(_0x211c5c){const _0x45adc7=_0x3adbe9[_0x3274('0xdb')](_0x211c5c[_0x3274('0x64')]),_0x5da19e=new _0x2e882f({'author':_0x45adc7,'type':_0x211c5c[_0x3274('0x6a')]?_0x3274('0x94'):_0x3274('0xea'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x302ce2});_0x12b16e[_0x3274('0x22')](_0x5da19e),_0x1faebe[_0x3274('0xa1')][_0x302ce2][_0x3274('0x123')]=_0x5da19e['id'];}_0x1faebe[_0x3274('0x124')]=_0x1faebe[_0x3274('0x124')]['concat'](_0x12b16e);}return _0x1faebe;}[_0x3274('0xfa')](_0xd5c29b,_0x356f89){for(let _0xca4cab=0x0;_0xca4cab<_0xd5c29b['length'];_0xca4cab++)for(const [_0x49e32b,_0x56bd38]of _0x356f89)_0x56bd38[_0x3274('0xa2')][_0x3274('0xd7')](_0xd5c29b[_0xca4cab][_0x3274('0x8')])&&_0xd5c29b[_0xca4cab][_0x3274('0xd9')][_0x3274('0xd4')](_0x49e32b),_0x56bd38['end'][_0x3274('0xd7')](_0xd5c29b[_0xca4cab][_0x3274('0xab')])&&_0xd5c29b[_0xca4cab][_0x3274('0xb9')]['push'](_0x49e32b);}['_joinTapes'](_0x4138f2,_0x1cffb9){let _0x7f7b5c=[],_0x1aa6dd=0x0,_0x9e14a9=0x0;for(;_0x1aa6dd<_0x4138f2[_0x3274('0x23')]||_0x9e14a9<_0x1cffb9[_0x3274('0x23')];){const _0x2b2bf2=_0x4138f2[_0x1aa6dd]||{},_0x360ecc=_0x1cffb9[_0x9e14a9]||{};if(_0x2b2bf2['id']==_0x360ecc['id'])_0x1aa6dd++,_0x9e14a9++,_0x7f7b5c[_0x3274('0xd4')](_0x2b2bf2);else{if(_0x360ecc['isRemoved']&&_0x2b2bf2[_0x3274('0x11f')]){const {commonTape:_0x1bbef4,iEnd:_0x1391ba,jEnd:_0x245950}=this[_0x3274('0xe9')](_0x4138f2,_0x1aa6dd,_0x1cffb9,_0x9e14a9);_0x7f7b5c=_0x7f7b5c['concat'](_0x1bbef4),_0x1aa6dd=_0x1391ba,_0x9e14a9=_0x245950;}else _0x360ecc[_0x3274('0x6b')]?(_0x9e14a9++,_0x7f7b5c[_0x3274('0xd4')](_0x360ecc)):(_0x1aa6dd++,_0x7f7b5c[_0x3274('0xd4')](_0x2b2bf2));}}return _0x7f7b5c;}[_0x3274('0x2f')](_0x246af3,_0x61679e){const _0x2f261f=[];for(let _0x37fe62=0x0;_0x37fe62<_0x246af3['length'];_0x37fe62++){for(let _0x193325=0x0;_0x193325<_0x246af3[_0x37fe62][_0x3274('0xd9')][_0x3274('0x23')];_0x193325++){const _0x38e2f9=_0x246af3[_0x37fe62]['markersStart'][_0x193325];if(!_0x61679e[_0x3274('0x104')](_0x38e2f9))continue;const {group:_0x4ddbf3,type:_0xd953b,authorId:_0x5b2758}=_0x5c4743(_0x38e2f9);_0x3274('0xee')!=_0x4ddbf3||'insertion'!=_0xd953b&&_0x3274('0xd3')!=_0xd953b||(_0x2f261f[_0x3274('0x22')]({'type':_0xd953b,'name':_0x38e2f9,'userId':_0x5b2758}),_0x246af3[_0x37fe62]['markersStart'][_0x3274('0x44')](_0x193325,0x1),_0x193325--);}_0x37c762(_0x246af3[_0x37fe62]);for(let _0x30037f=0x0;_0x30037f<_0x246af3[_0x37fe62][_0x3274('0xb9')][_0x3274('0x23')];_0x30037f++){const _0x5599d9=_0x246af3[_0x37fe62][_0x3274('0xb9')][_0x30037f];if(!_0x61679e[_0x3274('0x104')](_0x5599d9))continue;const {group:_0xd6b899,type:_0x2cbb8b}=_0x5c4743(_0x5599d9);if(_0x3274('0xee')!=_0xd6b899||_0x3274('0x5e')!=_0x2cbb8b&&'deletion'!=_0x2cbb8b)continue;_0x246af3[_0x37fe62]['markersEnd']['splice'](_0x30037f,0x1),_0x30037f--;const _0x20f412=_0x2f261f[_0x3274('0x76')](_0x1248d2=>_0x1248d2[_0x3274('0x11')]==_0x5599d9);_0x20f412>-0x1&&_0x2f261f[_0x3274('0x44')](_0x20f412,0x1);}}function _0x5c4743(_0x1c96c6){const _0x32ca5b=_0x1c96c6[_0x3274('0x77')](':');return{'group':_0x32ca5b[0x0],'type':_0x32ca5b[0x1],'subType':_0x32ca5b['length']>=0x5?_0x32ca5b[0x2]:null,'id':_0x32ca5b['length']<0x5?_0x32ca5b[0x2]:_0x32ca5b[0x3],'authorId':_0x32ca5b[_0x3274('0x23')]<0x5?_0x32ca5b[0x3]:_0x32ca5b[0x4],'markerCount':0x6==_0x32ca5b[_0x3274('0x23')]?_0x32ca5b[0x5]:null};}function _0x37c762(_0x4636ec){for(let _0x946da5=0x0;_0x946da5<_0x2f261f[_0x3274('0x23')];_0x946da5++){if(_0x4636ec[_0x3274('0x11f')]&&'insertion'==_0x2f261f[_0x946da5][_0x3274('0x33')])return _0x4636ec[_0x3274('0x7b')]=_0x2f261f[_0x946da5],void delete _0x4636ec['isAdded'];if(!_0x4636ec[_0x3274('0x11f')]&&!_0x4636ec[_0x3274('0x6b')]&&_0x3274('0xd3')==_0x2f261f[_0x946da5][_0x3274('0x33')])return void(_0x4636ec[_0x3274('0x9d')]=_0x2f261f[_0x946da5]);}}}[_0x3274('0x3')](_0x4171a4,_0x5ca37e){let _0x42e636=0x0,_0x304521=!0x1;const _0x2d2ef1=new Map();for(const _0x58b265 of _0x4171a4)_0x58b265[_0x5ca37e]?_0x304521&&(_0x42e636++,_0x304521=!0x1):(_0x42e636++,_0x304521=!0x0),_0x2d2ef1['set'](_0x58b265['id'],_0x42e636);for(let _0x21e406=0x0;_0x21e406<_0x4171a4[_0x3274('0x23')];_0x21e406++){if(_0x3274('0x6b')==_0x5ca37e&&_0x4171a4[_0x21e406][_0x3274('0x11f')]||_0x3274('0x11f')==_0x5ca37e&&_0x4171a4[_0x21e406][_0x3274('0x6b')])continue;if('text'==_0x4171a4[_0x21e406][_0x3274('0x33')]){_0x4171a4[_0x21e406][_0x3274('0x11c')]=0x0;continue;}const _0x290030=_0x2d2ef1[_0x3274('0xdb')](_0x4171a4[_0x21e406][_0x3274('0xc6')]),_0x150d17=_0x2d2ef1['get'](_0x4171a4[_0x21e406]['id']);_0x4171a4[_0x21e406]['distance']=_0x290030-_0x150d17;}}[_0x3274('0x3b')](_0xadfe7f,_0x41b6de,_0x404624=!0x1){const _0x15dc68=[];let _0x203419=this[_0x3274('0x38')]['getIndex'](_0xadfe7f),_0x3205af=this['repository'][_0x3274('0xf2')](_0x41b6de);for(-0x1==_0x3205af&&(_0x3205af=this[_0x3274('0x38')][_0x3274('0x1d')]['length'],_0x404624=!0x1);_0x203419<_0x3205af;)_0x15dc68[_0x3274('0xd4')](this[_0x3274('0x38')][_0x3274('0x1a')](_0x203419)),_0x203419++;return _0x404624&&_0x15dc68[_0x3274('0xd4')](this[_0x3274('0x38')][_0x3274('0x1a')](_0x203419)),_0x15dc68;}[_0x3274('0xe9')](_0x5ac09e,_0x4c59e1,_0x30ecfb,_0x10e20c){const _0x4d6b36=this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0x61')];let _0xb1fb20=_0x4c59e1;for(;_0x5ac09e[_0xb1fb20]&&_0x5ac09e[_0xb1fb20][_0x3274('0x11f')];)_0xb1fb20++;let _0x1fcae2=_0x10e20c;for(;_0x30ecfb[_0x1fcae2]&&_0x30ecfb[_0x1fcae2]['isRemoved'];)_0x1fcae2++;_0x3d5694(_0x5ac09e,_0x4c59e1,_0xb1fb20),_0x3d5694(_0x30ecfb,_0x10e20c,_0x1fcae2);const _0x20d7ca=_0x30ecfb[_0x3274('0xd')](_0x10e20c,_0x1fcae2)[_0x3274('0x2d')](_0x5ac09e[_0x3274('0xd')](_0x4c59e1,_0xb1fb20));return _0x20d7ca[_0x3274('0x68')]((_0x27b481,_0xa7728b)=>_0x27b481[_0x3274('0x4b')]!=_0xa7728b[_0x3274('0x4b')]?_0x27b481[_0x3274('0x4b')]-_0xa7728b[_0x3274('0x4b')]:_0x27b481[_0x3274('0x2e')]!=_0xa7728b['level']?_0x27b481[_0x3274('0x2e')]-_0xa7728b['level']:_0x27b481[_0x3274('0x11c')]!=_0xa7728b['distance']?_0xa7728b[_0x3274('0x11c')]-_0x27b481[_0x3274('0x11c')]:!!_0x27b481[_0x3274('0x11f')]!=!!_0xa7728b[_0x3274('0x11f')]?-0x1==_0x27b481[_0x3274('0x4b')]||0x0==_0x27b481[_0x3274('0x4b')]?_0x27b481['isAdded']?-0x1:0x1:_0x27b481[_0x3274('0x11f')]?0x1:-0x1:_0x27b481[_0x3274('0x79')]-_0xa7728b[_0x3274('0x79')]),{'commonTape':_0x20d7ca,'iEnd':_0xb1fb20,'jEnd':_0x1fcae2};function _0x3d5694(_0x2c50b7,_0x56b75e,_0x4a50d2){let _0x4a842c=-0x1,_0x16f51a=Number[_0x3274('0x9a')],_0x1bb4d9=!0x0;for(let _0x1e9279=_0x56b75e;_0x1e9279<_0x4a50d2;_0x1e9279++)if(_0x4d6b36[_0x3274('0xf7')](_0x2c50b7[_0x1e9279]['item'])||(_0x1bb4d9=!0x1),_0x2c50b7[_0x1e9279][_0x3274('0x67')]['startIndex']<_0x56b75e&&(_0x4a842c=_0x1e9279),_0x2c50b7[_0x1e9279][_0x3274('0x67')]['endIndex']>=_0x4a50d2){_0x16f51a=_0x1e9279;break;}_0x1bb4d9&&(_0x4a842c=_0x4a50d2-0x1);for(let _0x2fcd5c=_0x56b75e;_0x2fcd5c<_0x4a50d2;_0x2fcd5c++)_0x2c50b7[_0x2fcd5c][_0x3274('0x4b')]=_0x2fcd5c<=_0x4a842c?-0x1:_0x2fcd5c<_0x16f51a?0x0:0x1,_0x2c50b7[_0x2fcd5c][_0x3274('0x79')]=_0x2fcd5c;let _0x454822=0x0;for(let _0x21cd4a=_0x56b75e;_0x21cd4a<=_0x4a842c;_0x21cd4a++)0x0==_0x2c50b7[_0x21cd4a][_0x3274('0x11c')]?_0x2c50b7[_0x21cd4a][_0x3274('0x2e')]=_0x454822:(_0x454822++,_0x2c50b7[_0x21cd4a][_0x3274('0x2e')]=_0x454822,_0x454822++);for(let _0x503e22=_0x56b75e;_0x503e22<_0x4a50d2;_0x503e22++)0x0==_0x2c50b7[_0x503e22][_0x3274('0x4b')]&&(_0x2c50b7[_0x503e22][_0x3274('0x2e')]=_0x454822);_0x454822=0x0;for(let _0x2792fc=_0x4a50d2-0x1;_0x2792fc>=_0x16f51a;_0x2792fc--)0x0==_0x2c50b7[_0x2792fc][_0x3274('0x11c')]?_0x2c50b7[_0x2792fc]['level']=_0x454822:(_0x454822--,_0x2c50b7[_0x2792fc][_0x3274('0x2e')]=_0x454822,_0x454822--);}}[_0x3274('0x14')](_0x124302){const _0x1a62bd=new Map(),_0x3191a1=this['editor'][_0x3274('0x11e')][_0x3274('0x61')];for(let _0x364f6b=0x1;_0x364f6b<_0x124302[_0x3274('0x23')];_0x364f6b++){let _0x4fae74,_0x18c355,_0x1aa097;const _0x3194b6=_0x124302[_0x364f6b],_0x241d1f=_0x124302[_0x364f6b-0x1];if('text'==_0x3194b6['type'])continue;if(_0x3194b6[_0x3274('0x33')]!=_0x241d1f[_0x3274('0x33')])continue;if(!_0x3191a1['isBlock'](_0x241d1f[_0x3274('0x67')])||_0x3191a1['isLimit'](_0x241d1f[_0x3274('0x67')]))continue;if(!_0x3191a1[_0x3274('0x4')](_0x3194b6[_0x3274('0x67')])||_0x3191a1[_0x3274('0x7')](_0x3194b6[_0x3274('0x67')]))continue;if((_0x124302[_0x364f6b][_0x3274('0x11f')]||_0x124302[_0x364f6b][_0x3274('0x7b')])&&_0x124302[_0x364f6b-0x1][_0x3274('0x6b')])_0x4fae74=_0x124302[_0x364f6b],_0x18c355=_0x124302[_0x364f6b-0x1],_0x1aa097=_0x364f6b-0x1;else{if(!_0x124302[_0x364f6b][_0x3274('0x6b')]||!_0x124302[_0x364f6b-0x1][_0x3274('0x11f')]&&!_0x124302[_0x364f6b-0x1][_0x3274('0x7b')])continue;_0x4fae74=_0x124302[_0x364f6b-0x1],_0x18c355=_0x124302[_0x364f6b],_0x1aa097=_0x364f6b;}const _0x4b0335=_0x4fae74[_0x3274('0x2e')]==_0x18c355[_0x3274('0x2e')],_0x299e38=Math[_0x3274('0xfc')](_0x4fae74[_0x3274('0x2e')])<Math[_0x3274('0xfc')](_0x18c355[_0x3274('0x2e')])&&0x0==_0x18c355[_0x3274('0x11c')];(_0x4b0335||_0x299e38)&&(_0x1a62bd['set'](_0x18c355['id'],_0x4fae74['id']),_0x124302[_0x3274('0x44')](_0x1aa097,0x1),_0x364f6b--,_0x4fae74['isAdded']=!0x1);}for(let _0x53c90e=0x0;_0x53c90e<_0x124302['length'];_0x53c90e++)_0x1a62bd[_0x3274('0x104')](_0x124302[_0x53c90e]['pairId'])&&(_0x124302[_0x53c90e][_0x3274('0xc6')]=_0x1a62bd[_0x3274('0xdb')](_0x124302[_0x53c90e][_0x3274('0xc6')]));}['_removeMissingPairs'](_0x3c5a6b){const _0x2514ca=new Set(_0x3c5a6b[_0x3274('0xa6')](_0x220203=>_0x220203['id']));for(let _0x53bfec=0x0;_0x53bfec<_0x3c5a6b[_0x3274('0x23')];_0x53bfec++)_0x2514ca[_0x3274('0x104')](_0x3c5a6b[_0x53bfec]['pairId'])||0x0==_0x3c5a6b[_0x53bfec]['distance']||(_0x3c5a6b[_0x53bfec][_0x3274('0x120')]=!0x0);return _0x3c5a6b[_0x3274('0x35')](_0x533d3b=>!_0x533d3b[_0x3274('0x120')]);}['_markMismatchedRemovedTags'](_0x99428e){const _0x2db227=new Set();for(let _0x5c5b70=0x0;_0x5c5b70<_0x99428e[_0x3274('0x23')];_0x5c5b70++){if(_0x2db227[_0x3274('0x104')](_0x99428e[_0x5c5b70]['id'])&&_0x99428e[_0x5c5b70]['isRemoved']&&(_0x99428e[_0x5c5b70]['isIncorrect']=!0x0),_0x99428e[_0x5c5b70][_0x3274('0x120')])continue;if(0x0==_0x99428e[_0x5c5b70][_0x3274('0x11c')])continue;if(_0x3274('0x115')!=_0x99428e[_0x5c5b70][_0x3274('0x33')])continue;if(null==_0x99428e[_0x5c5b70][_0x3274('0xc6')])continue;let _0x4f838f=_0x5c5b70+0x1,_0x4bb233=0x0;for(;_0x99428e[_0x4f838f]['id']!=_0x99428e[_0x5c5b70][_0x3274('0xc6')];)_0x3274('0x115')==_0x99428e[_0x4f838f][_0x3274('0x33')]?_0x4bb233++:_0x3274('0xaf')==_0x99428e[_0x4f838f][_0x3274('0x33')]&&_0x4bb233--,_0x4f838f++;if(0x0!=_0x4bb233){if(_0x99428e[_0x5c5b70]['isRemoved'])_0x99428e[_0x5c5b70][_0x3274('0x120')]=!0x0;else for(;_0x4f838f!=_0x5c5b70;)_0x99428e[_0x4f838f][_0x3274('0x6b')]&&0x0!=_0x99428e[_0x4f838f][_0x3274('0x11c')]&&(_0x99428e[_0x4f838f]['isIncorrect']=!0x0,_0x2db227['add'](_0x99428e[_0x4f838f][_0x3274('0xc6')])),_0x4f838f--;}}return _0x99428e[_0x3274('0x35')](_0x2119ff=>!_0x2119ff[_0x3274('0x120')]);}['_removeUnsupportedChanges'](_0x3adb4c){const _0x4678ba=this[_0x3274('0x106')]['model']['schema'];for(let _0x409762=0x0;_0x409762<_0x3adb4c['length'];_0x409762++){if(!(_0x3adb4c[_0x409762][_0x3274('0x11f')]||_0x3adb4c[_0x409762]['isAddSuggestion']||_0x3adb4c[_0x409762][_0x3274('0x6b')]||_0x3adb4c[_0x409762][_0x3274('0x9d')]))continue;if(0x0==_0x3adb4c[_0x409762][_0x3274('0x11c')])continue;const _0x432471=_0x3adb4c[_0x409762]['item'];_0x4678ba['isBlock'](_0x432471)||_0x4678ba['isLimit'](_0x432471)||(_0x3adb4c[_0x409762]['isAdded']&&delete _0x3adb4c[_0x409762][_0x3274('0x11f')],_0x3adb4c[_0x409762][_0x3274('0x7b')]&&delete _0x3adb4c[_0x409762][_0x3274('0x7b')],_0x3adb4c[_0x409762][_0x3274('0x9d')]&&delete _0x3adb4c[_0x409762]['isRemoveSuggestion'],_0x3adb4c[_0x409762]['isRemoved']&&(_0x3adb4c[_0x409762][_0x3274('0x120')]=!0x0));}return _0x3adb4c[_0x3274('0x35')](_0x2687e7=>!_0x2687e7['isIncorrect']);}[_0x3274('0x49')](_0x51418b,_0x2a08f7,_0x377303){const _0x1b224b=new _0x4005fc(),_0x382ebc=[],_0x5977ec=new Map(),_0x4c5c5a=this['editor']['model'],_0x3b037b=_0x4c5c5a['schema'],_0x4fa876=[_0x1b224b],_0x51b6fa={},_0x537c99={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x42f4b7=null;const _0x19237c=[0x0];for(let _0x23f1c2=0x0;_0x23f1c2<_0x51418b[_0x3274('0x23')];_0x23f1c2++){let _0x50622d,_0x3c084d;if(_0x3274('0x115')===_0x51418b[_0x23f1c2][_0x3274('0x33')]){_0x50622d=_0x4c5c5a['createPositionFromPath'](_0x1b224b,_0x19237c);const _0xe4600=new _0x180c2e(_0x51418b[_0x23f1c2]['item'][_0x3274('0x11')],_0x51418b[_0x23f1c2][_0x3274('0x67')][_0x3274('0xdd')]());_0x4fa876[0x0][_0x3274('0xda')](_0xe4600),_0x19237c['push'](0x0),_0x4fa876['unshift'](_0xe4600),_0x3c084d=_0x4c5c5a[_0x3274('0xe1')](_0x1b224b,_0x19237c),_0x42f4b7=null;}else{if(_0x3274('0xaf')===_0x51418b[_0x23f1c2][_0x3274('0x33')])_0x4fa876['shift'](),_0x50622d=_0x4c5c5a['createPositionFromPath'](_0x1b224b,_0x19237c),_0x19237c[_0x3274('0xb6')](),_0x19237c[_0x19237c['length']-0x1]++,_0x3c084d=_0x4c5c5a[_0x3274('0xe1')](_0x1b224b,_0x19237c),_0x42f4b7=null;else{if(_0x50622d=_0x4c5c5a['createPositionFromPath'](_0x1b224b,_0x19237c),_0x42f4b7&&_0x5338dd(_0x42f4b7,_0x51418b[_0x23f1c2]['item']))_0x42f4b7[_0x3274('0x13')]+=_0x51418b[_0x23f1c2][_0x3274('0x67')][_0x3274('0x66')];else{const _0x17d645=new _0x3728ac(_0x51418b[_0x23f1c2][_0x3274('0x67')][_0x3274('0x66')],_0x51418b[_0x23f1c2]['item'][_0x3274('0xdd')]());_0x4fa876[0x0]['_appendChild'](_0x17d645),_0x42f4b7=_0x17d645;}_0x19237c[_0x19237c[_0x3274('0x23')]-0x1]+=_0x51418b[_0x23f1c2][_0x3274('0x67')][_0x3274('0x107')],_0x3c084d=_0x4c5c5a[_0x3274('0xe1')](_0x1b224b,_0x19237c);}}for(const _0x53829e of _0x51418b[_0x23f1c2][_0x3274('0xd9')])_0x5977ec[_0x3274('0x88')](_0x53829e,{'start':_0x50622d,'end':null});_0x59b117(_0x3274('0x9d'),_0x23f1c2,_0x50622d,_0x3c084d),_0x59b117(_0x3274('0x7b'),_0x23f1c2,_0x50622d,_0x3c084d),_0x59b117(_0x3274('0x6b'),_0x23f1c2,_0x50622d,_0x3c084d),_0x59b117(_0x3274('0x11f'),_0x23f1c2,_0x50622d,_0x3c084d);for(const _0x8ec68e of _0x51418b[_0x23f1c2][_0x3274('0xb9')]){_0x5977ec[_0x3274('0xdb')](_0x8ec68e)[_0x3274('0x27')]=_0x3c084d;}}for(const [_0x2842b9,_0x5d9439]of _0x5977ec){const _0x311014=this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0xec')](_0x5d9439[_0x3274('0xa2')],_0x5d9439[_0x3274('0x27')]);_0x1b224b[_0x3274('0x5c')][_0x3274('0x88')](_0x2842b9,_0x311014);}return _0x382ebc[_0x3274('0x68')]((_0x2dd978,_0x3122c9)=>{const _0x15d739=_0x1b224b[_0x3274('0x5c')][_0x3274('0xdb')](_0x3274('0x72')+_0x2dd978['id']),_0x5d061b=_0x1b224b[_0x3274('0x5c')][_0x3274('0xdb')](_0x3274('0x72')+_0x3122c9['id']);return _0x15d739['start']['isBefore'](_0x5d061b['start'])?-0x1:_0x15d739['start'][_0x3274('0xbc')](_0x5d061b[_0x3274('0xa2')])?0x1:_0x15d739[_0x3274('0x27')][_0x3274('0x1c')](_0x5d061b['end'])?-0x1:_0x15d739['end'][_0x3274('0xbc')](_0x5d061b[_0x3274('0x27')])?0x1:'add'===_0x2dd978[_0x3274('0x33')]?-0x1:0x1;}),{'root':_0x1b224b,'changes':_0x382ebc};function _0x59b117(_0x3cd65d,_0x2b3f4d,_0x5b49ca,_0x2968a9){const _0x479ca9=!!_0x51418b[_0x2b3f4d][_0x3cd65d],_0x39341a=_0x479ca9?_0x51418b[_0x2b3f4d][_0x3cd65d][_0x3274('0x64')]:null,_0x35bc18=_0x2b3f4d===_0x51418b['length']-0x1,_0x2af957=_0x537c99[_0x3cd65d][0x0],_0x29795f=_0x3b037b[_0x3274('0x103')](_0x51418b[_0x2b3f4d][_0x3274('0x67')]);!_0x51b6fa[_0x3cd65d]&&_0x479ca9?_0x51b6fa[_0x3cd65d]={'start':_0x5b49ca,'tapeItem':_0x51418b[_0x2b3f4d],'userId':_0x39341a,'type':_0x3cd65d}:_0x51b6fa[_0x3cd65d]&&!_0x479ca9?(_0x51b6fa[_0x3cd65d][_0x3274('0x27')]=_0x5b49ca,_0x3156ca(_0x51b6fa[_0x3cd65d]),_0x51b6fa[_0x3cd65d]=null):_0x51b6fa[_0x3cd65d]&&_0x479ca9&&_0x51b6fa[_0x3cd65d][_0x3274('0x64')]!==_0x39341a&&(_0x51b6fa[_0x3cd65d][_0x3274('0x27')]=_0x5b49ca,_0x2af957&&_0x2af957[_0x3274('0x64')]===_0x51b6fa[_0x3cd65d][_0x3274('0x64')]||_0x3156ca(_0x51b6fa[_0x3cd65d]),_0x51b6fa[_0x3cd65d]={'start':_0x5b49ca,'tapeItem':_0x51418b[_0x2b3f4d],'userId':_0x39341a,'type':_0x3cd65d}),_0x51b6fa[_0x3cd65d]&&_0x29795f&&(_0x3274('0x115')!==_0x51418b[_0x2b3f4d]['type']||_0x2af957&&_0x2af957[_0x3274('0x64')]===_0x39341a||_0x537c99[_0x3cd65d][_0x3274('0x22')]({'userId':_0x39341a,'object':_0x51418b[_0x2b3f4d]['item'],'change':_0x51b6fa[_0x3cd65d]}),'elementEnd'===_0x51418b[_0x2b3f4d][_0x3274('0x33')]&&_0x2af957&&_0x2af957['object']===_0x51418b[_0x2b3f4d]['item']&&(_0x537c99[_0x3cd65d][_0x3274('0x5d')](),_0x51b6fa[_0x3cd65d]=_0x2af957[_0x3274('0x73')])),_0x51b6fa[_0x3cd65d]&&_0x35bc18&&(_0x51b6fa[_0x3cd65d][_0x3274('0x27')]=_0x2968a9,_0x3156ca(_0x51b6fa[_0x3cd65d]),_0x51b6fa[_0x3cd65d]=null);}function _0x3156ca({start:_0x1ee00c,end:_0x447dd7,tapeItem:_0x25404f,userId:_0x181dbf,type:_0x3e14e5}){const _0x125775=_0x25404f['item'],_0x2606c4=_0x4c5c5a[_0x3274('0x61')][_0x3274('0x4')](_0x125775)&&!_0x4c5c5a[_0x3274('0x61')][_0x3274('0x7')](_0x125775),_0x3016d2=_0x1ee00c[_0x3274('0x9c')]==_0x447dd7['parent']&&_0x447dd7[_0x3274('0xb8')];if(_0x2606c4&&_0x3016d2)return;const _0x2c0ab0=_0x4c5c5a[_0x3274('0xec')](_0x1ee00c,_0x447dd7),_0x53af2c=_0x2a08f7[_0x3274('0xdb')](_0x181dbf),_0x1597ba=new _0x2e882f({'author':_0x53af2c,'type':_0x3274('0x11f')==_0x3e14e5||_0x3274('0x7b')==_0x3e14e5?'add':_0x3274('0xea'),'data':{'isSuggestion':_0x3274('0x7b')==_0x3e14e5||_0x3274('0x9d')==_0x3e14e5},'createdAt':new Date(),'rootName':_0x377303});_0x382ebc['push'](_0x1597ba),_0x1b224b['markers'][_0x3274('0x88')](_0x3274('0x72')+_0x1597ba['id'],_0x2c0ab0);}function _0x5338dd(_0x69a0ad,_0x237b5a){const _0xdd61ff=_0x69a0ad[_0x3274('0xdd')](),_0x2fec13=_0x237b5a[_0x3274('0xdd')]();for(const _0x4388ac of _0xdd61ff){if(_0x4388ac[0x1]!==_0x237b5a[_0x3274('0xa7')](_0x4388ac[0x0]))return!0x1;_0x2fec13[_0x3274('0x11d')]();}return _0x2fec13['next']()['done'];}}[_0x3274('0x58')](){this[_0x3274('0x106')]['conversion']['for'](_0x3274('0x9e'))['dataToMarker']({'view':_0x3274('0xc3')}),this[_0x3274('0x106')]['conversion'][_0x3274('0xc1')](_0x3274('0x112'))[_0x3274('0xf1')]({'model':_0x3274('0xc3'),'view':_0x3279d8=>{const _0xa8607c=_0x3279d8[_0x3274('0xf3')]['split'](':')[0x1],_0x225f72=this[_0x3274('0xc8')](_0xa8607c);if(!_0x225f72)return null;const _0x2a8724=_0x3274('0x94')==_0x225f72[_0x3274('0x33')]?_0x3274('0x5e'):_0x3274('0xd3'),_0x5efa2f=['ck-suggestion-marker',_0x3274('0xaa')+_0x2a8724];return _0x225f72[_0x3274('0x66')][_0x3274('0xe')]&&_0x5efa2f['push'](_0x3274('0xaa')+_0x2a8724+_0x3274('0x110')),this[_0x3274('0x28')]==_0x225f72&&_0x5efa2f[_0x3274('0xd4')](_0x3274('0xd8')),{'classes':_0x5efa2f,'attributes':{'data-change-id':_0xa8607c}};}}),this[_0x3274('0x106')][_0x3274('0x31')]['for']('upcast')[_0x3274('0x94')](_0x13f001=>{_0x13f001['on']('element:pre',(_0x1d9b5d,_0x2248db,_0x4eb40a)=>{const _0x59ff93=_0x2248db[_0x3274('0x121')][_0x3274('0x59')](0x0);if(!_0x59ff93||!_0x59ff93['is']('element','code'))return;if(!_0x4eb40a[_0x3274('0x3d')][_0x3274('0x3f')](_0x59ff93,{'attributes':[_0x3274('0x95'),'vid_end']}))return;const _0x17fc2c=_0x2248db[_0x3274('0x50')][_0x3274('0xa2')][_0x3274('0x9c')];_0x4eb40a['writer'][_0x3274('0xb4')](_0x3274('0x95'),_0x59ff93[_0x3274('0xa7')](_0x3274('0x95')),_0x17fc2c),_0x4eb40a[_0x3274('0x71')][_0x3274('0xb4')]('vid_end',_0x59ff93[_0x3274('0xa7')](_0x3274('0x3a')),_0x17fc2c);},{'priority':_0x3274('0x10d')});}),this[_0x3274('0x106')][_0x3274('0x31')]['for'](_0x3274('0x9e'))[_0x3274('0x94')](_0x2c4316=>{_0x2c4316['on'](_0x3274('0x118'),(_0x1646e0,_0x469dbe,_0x4c44cf)=>{if(!_0x4c44cf['consumable'][_0x3274('0x3f')](_0x469dbe[_0x3274('0x121')],{'attributes':['vid_start',_0x3274('0x3a')]}))return;if(_0x469dbe[_0x3274('0x50')][_0x3274('0x113')])return;const _0xbdee33=_0x469dbe['modelRange']['start']['nodeAfter'];_0xbdee33['hasAttribute'](_0x3274('0x95'))||_0xbdee33[_0x3274('0xe2')]('vid')||(_0x4c44cf[_0x3274('0x71')][_0x3274('0xb4')](_0x3274('0x95'),_0x469dbe['viewItem'][_0x3274('0xa7')](_0x3274('0x95')),_0xbdee33),_0x4c44cf[_0x3274('0x71')][_0x3274('0xb4')](_0x3274('0x3a'),_0x469dbe[_0x3274('0x121')][_0x3274('0xa7')](_0x3274('0x3a')),_0xbdee33));},{'priority':_0x3274('0x10d')});}),this[_0x3274('0x106')][_0x3274('0x31')][_0x3274('0xc1')]('upcast')[_0x3274('0x89')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x3274('0xc7'),'value':_0x369640=>_0x369640[_0x3274('0xa7')](_0x3274('0xc7'))}}),this[_0x3274('0x106')][_0x3274('0x11e')]['schema']['on'](_0x3274('0x1b'),(_0x120002,[,_0x541050])=>{[_0x3274('0x95'),_0x3274('0x3a'),_0x3274('0xc7')][_0x3274('0x2c')](_0x541050)&&(_0x120002['return']=!0x0,_0x120002['stop']());},{'priority':_0x3274('0x74')}),this[_0x3274('0x106')][_0x3274('0x31')]['for'](_0x3274('0x10'))[_0x3274('0x94')](_0xd66305=>{_0xd66305['on']('attribute:vid',(_0x4ba950,_0x2fadf9,_0x52009f)=>{if('\x20'!=_0x2fadf9[_0x3274('0x67')]['data']||_0x2fadf9[_0x3274('0x67')]['parent'][_0x3274('0x57')]>0x1)return;if(!_0x52009f[_0x3274('0x3d')][_0x3274('0x3f')](_0x2fadf9[_0x3274('0x67')],_0x4ba950[_0x3274('0x11')]))return;const _0x71437c=_0x52009f['writer'],_0x36849b=_0x52009f[_0x3274('0xae')][_0x3274('0xa3')](_0x2fadf9['range']);_0x71437c[_0x3274('0x52')](_0x36849b,_0x71437c[_0x3274('0x8d')]('span'));});}),this[_0x3274('0x106')][_0x3274('0x31')][_0x3274('0xc1')]('dataDowncast')[_0x3274('0x9f')]({'model':_0x3274('0xc3')}),this['editor'][_0x3274('0xf6')]['downcastDispatcher']['on']('addMarker:revision',function(_0x34e302){const _0x3ae685=_0x34e302[_0x3274('0x6d')][_0x3274('0xdb')]('RevisionViewer');return(_0x258f87,_0x473a48,_0x3dbf5f)=>{const _0x782fa6=_0x473a48['markerName'][_0x3274('0x77')](':')[0x1],_0x11a453=_0x3ae685[_0x3274('0xc8')](_0x782fa6);if(!_0x11a453)return null;const _0x514926='add'==_0x11a453[_0x3274('0x33')]?_0x3274('0x77'):_0x3274('0x62');if(!_0x3dbf5f[_0x3274('0x3d')]['test'](_0x473a48['markerRange'],_0x258f87['name']))return;const _0x561426=_0x473a48[_0x3274('0x84')]['getWalker'](),_0x360917=_0x473a48['markerRange']['start'],_0x4c271a=_0x34e302[_0x3274('0x11e')][_0x3274('0x61')];let _0x1cfdcf=null,_0x1e4bab=null,_0x49d8d2=!0x1,_0x3890a4=!0x1;for(const _0xd417fe of _0x561426){const _0x3a263a=_0xd417fe['item'];_0x49d8d2=_0x49d8d2||_0x4c271a[_0x3274('0x97')](_0x3a263a);const _0x18b8ad=_0x3dbf5f[_0x3274('0xae')][_0x3274('0x5f')](_0x3a263a);if(_0x18b8ad&&_0x18b8ad[_0x3274('0x18')]('addHighlight'))return;_0x3274('0xaf')==_0xd417fe[_0x3274('0x33')]&&(_0x4c271a[_0x3274('0x4')](_0x3a263a)&&!_0x4c271a[_0x3274('0x7')](_0x3a263a)&&(_0x3a263a[_0x3274('0x4f')]||_0x360917['isAtEnd']?_0x1cfdcf&&_0x1cfdcf['parent']==_0x3a263a||(_0x1cfdcf=_0x3a263a,_0x55456d(_0xd417fe['previousPosition']),_0x3890a4=!0x0):_0x1e4bab=_0x1e4bab||_0xd417fe['previousPosition']));}function _0x55456d(_0x430b6f){const _0x571782=_0x3dbf5f[_0x3274('0x71')][_0x3274('0x6e')](_0x3274('0x10e'),{'class':_0x3274('0xaa')+_0x514926}),_0x4ea717=_0x3dbf5f['mapper'][_0x3274('0xf')](_0x430b6f);_0x11a453[_0x3274('0x66')][_0x3274('0xe')]&&_0x3dbf5f['writer'][_0x3274('0xbe')](_0x3274('0xaa')+_0x514926+_0x3274('0x110'),_0x571782),_0x3ae685[_0x3274('0x28')]==_0x11a453&&_0x3dbf5f['writer'][_0x3274('0xbe')]('ck-suggestion-marker--active',_0x571782),_0x3dbf5f[_0x3274('0x71')][_0x3274('0x111')](_0x4ea717,_0x571782),_0x3dbf5f[_0x3274('0xae')]['bindElementToMarker'](_0x571782,_0x473a48[_0x3274('0xf3')]);}_0x49d8d2||_0x3890a4||!_0x1e4bab||_0x55456d(_0x1e4bab);};}(this['editor']),{'priority':_0x3274('0x5')}),this[_0x3274('0x106')]['editing'][_0x3274('0xb5')]['on']('removeMarker:revision',(_0x5da2f5,_0x2ce7a5,_0x5a491d)=>{const _0x3c8e8d=_0x5a491d[_0x3274('0xae')][_0x3274('0xd6')](_0x2ce7a5['markerName']);if(_0x3c8e8d)for(const _0x125a7e of _0x3c8e8d)(_0x125a7e[_0x3274('0xfe')](_0x3274('0x10b'))||_0x125a7e[_0x3274('0xfe')](_0x3274('0xb3')))&&(_0x5a491d[_0x3274('0xae')]['unbindElementFromMarkerName'](_0x125a7e,_0x2ce7a5[_0x3274('0xf3')]),_0x5a491d[_0x3274('0x71')][_0x3274('0xea')](_0x125a7e));},{'priority':_0x3274('0x5')}),this[_0x3274('0x106')][_0x3274('0xf6')]['downcastDispatcher']['on'](_0x3274('0x7c'),(_0x3476ea,_0x57e951,_0x4c93d2)=>{const _0xaf13ce=_0x57e951[_0x3274('0xf3')][_0x3274('0x77')](':')[0x1],_0x1440e7=this[_0x3274('0xc8')](_0xaf13ce);if(!_0x1440e7)return null;const _0x49fdd5=_0x3274('0x94')==_0x1440e7[_0x3274('0x33')]?_0x3274('0x77'):_0x3274('0x62');if(_0x4c93d2[_0x3274('0x3d')]['test'](_0x57e951[_0x3274('0x84')],_0x3476ea[_0x3274('0x11')]))for(const _0x118581 of _0x57e951[_0x3274('0x84')][_0x3274('0x92')]()){if(!_0x118581['is'](_0x3274('0x118'),_0x3274('0x109')))continue;const _0x298908=_0x4c93d2['writer'][_0x3274('0x6e')](_0x3274('0x10e'),{'class':_0x3274('0xaa')+_0x49fdd5}),_0x178b3d=_0x4c93d2[_0x3274('0xae')]['toViewPosition'](this[_0x3274('0x106')]['model'][_0x3274('0xc2')](_0x118581));_0x1440e7['data'][_0x3274('0xe')]&&_0x4c93d2[_0x3274('0x71')]['addClass'](_0x3274('0xaa')+_0x49fdd5+'-new',_0x298908),this[_0x3274('0x28')]==_0x1440e7&&_0x4c93d2['writer'][_0x3274('0xbe')](_0x3274('0xd8'),_0x298908),_0x4c93d2[_0x3274('0x71')][_0x3274('0x111')](_0x178b3d,_0x298908),_0x4c93d2[_0x3274('0xae')][_0x3274('0x9b')](_0x298908,_0x57e951[_0x3274('0xf3')]);}},{'priority':_0x3274('0x5')}),this[_0x3274('0x106')][_0x3274('0x11e')]['document']['on'](_0x3274('0x73'),()=>{this[_0x3274('0x106')]['editing'][_0x3274('0x40')][_0x3274('0x73')](_0x4d465f=>{for(const _0x31d08c of this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0x117')][_0x3274('0xac')]()){const _0x188991=this['editor'][_0x3274('0x11e')][_0x3274('0x117')]['getRoot'](_0x31d08c),_0x341cf3=this[_0x3274('0x106')][_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x117')]['getRoot'](_0x31d08c);if(_0x341cf3){const _0x1b1ccf=_0x188991['getAttribute'](_0x3274('0x123'));if(_0x4d465f[_0x3274('0xf4')](_0x3274('0xdc'),_0x341cf3),_0x4d465f[_0x3274('0x2b')]('ck-revision-history-root-add',_0x341cf3),_0x4d465f['removeClass']('ck-revision-history-root-remove',_0x341cf3),_0x4d465f[_0x3274('0x2b')]('ck-revision-history-root--active',_0x341cf3),_0x1b1ccf){const _0x42b8d5=this[_0x3274('0xc8')](_0x1b1ccf);if(!_0x42b8d5)return null;_0x4d465f[_0x3274('0xb4')]('data-change-id',_0x1b1ccf,_0x341cf3),_0x4d465f['addClass'](_0x3274('0xf8')+_0x42b8d5['type'],_0x341cf3),this[_0x3274('0x28')]==_0x42b8d5&&_0x4d465f[_0x3274('0xbe')](_0x3274('0x87'),_0x341cf3);}}}});}),this[_0x3274('0x106')]['conversion']['for'](_0x3274('0x9e'))[_0x3274('0xcc')]({'view':_0x3274('0x54'),'model':_0x42a512=>'revision-comment:'+_0x42a512,'converterPriority':_0x3274('0x74')}),this[_0x3274('0x106')]['conversion']['for'](_0x3274('0x9e'))[_0x3274('0xcc')]({'view':'suggestion','model':_0x248fed=>_0x3274('0x3e')+_0x248fed,'converterPriority':_0x3274('0x74')}),this['editor'][_0x3274('0x31')][_0x3274('0xc1')](_0x3274('0x10'))[_0x3274('0x9f')]({'model':'revision-suggestion','view':_0x44553c=>({'name':_0x3274('0x83')+_0x44553c,'group':_0x3274('0xee')}),'converterPriority':_0x3274('0x74')}),this['editor'][_0x3274('0x31')][_0x3274('0xc1')](_0x3274('0x112'))[_0x3274('0xf1')]({'model':_0x3274('0xee'),'view':_0x50f16b=>{const _0x3b5027=_0x50f16b['markerName'][_0x3274('0x77')](':')[0x1];return'insertion'!=_0x3b5027&&_0x3274('0xd3')!=_0x3b5027?null:{'classes':[_0x3274('0xfb'),_0x3274('0x55')+_0x3b5027]};}}),this['editor'][_0x3274('0xf6')][_0x3274('0xb5')]['on']('addMarker:revision-suggestion:deletion',Y(this[_0x3274('0x106')],_0x3274('0x62')),{'priority':_0x3274('0x5')}),this[_0x3274('0x106')][_0x3274('0xf6')][_0x3274('0xb5')]['on'](_0x3274('0x8b'),Y(this['editor'],'split'),{'priority':'high'}),this['editor'][_0x3274('0xf6')][_0x3274('0xb5')]['on'](_0x3274('0xdf'),(_0x498030,_0xc3ad4,_0x59cf6)=>{const _0x49cc00=_0x59cf6[_0x3274('0xae')]['markerNameToElements'](_0xc3ad4[_0x3274('0xf3')]);if(_0x49cc00)for(const _0x972986 of _0x49cc00)_0x972986['is'](_0x3274('0xb7'))&&(_0x59cf6[_0x3274('0xae')][_0x3274('0x42')](_0x972986,_0xc3ad4[_0x3274('0xf3')]),_0x59cf6['writer'][_0x3274('0xea')](_0x972986));},{'priority':_0x3274('0x5')});}[_0x3274('0xc8')](_0x25bf23){return this[_0x3274('0xa4')]['get'](_0x25bf23);}['_getViewForChange'](_0x337c39){return this['_changeView']&&this['_changeView']['destroy'](),this[_0x3274('0x119')]=new _0x178cd4(this[_0x3274('0x106')][_0x3274('0xca')],_0x337c39),this[_0x3274('0x119')];}[_0x3274('0xce')](){this['editor'][_0x3274('0x11e')]['document'][_0x3274('0x100')][_0x3274('0xe4')](_0x3274('0xc3')),this['on']('change:activeView',(_0x1e459a,_0x55edaf,_0x8c329a,_0x1a2421)=>{_0x1a2421&&this[_0x3274('0xcf')]['remove'](_0x1a2421),_0x8c329a&&(this[_0x3274('0xcf')][_0x3274('0x94')]({'view':_0x8c329a,'stackId':_0x3274('0xc5'),'position':{'target':()=>{const _0x4d114f=this[_0x3274('0x106')][_0x3274('0xf6')],_0x209ad9=this['_getChangeFromId'](_0x8c329a[_0x3274('0x26')]);let _0x5423dc;if(_0x209ad9[_0x3274('0x66')][_0x3274('0x5b')]){const _0x64c8d=_0x4d114f[_0x3274('0x40')][_0x3274('0x1f')](_0x209ad9[_0x3274('0xc9')]);_0x5423dc=Array['from'](_0x64c8d[_0x3274('0xd1')]());}else{const _0x144a3a=this['editor'][_0x3274('0x11e')][_0x3274('0x5c')][_0x3274('0xdb')]('revision:'+_0x8c329a[_0x3274('0x26')]);_0x5423dc=Array[_0x3274('0x32')](_0x4d114f[_0x3274('0xae')][_0x3274('0xd6')](_0x144a3a['name']))[_0x3274('0xa6')](_0x113eae=>_0x4d114f[_0x3274('0x40')][_0x3274('0x2')][_0x3274('0x19')](_0x113eae))[_0x3274('0xa6')](_0x749092=>Array[_0x3274('0x32')](_0x749092[_0x3274('0xd1')]()))['flat']();}if(!this[_0x3274('0xe7')])return _0x5423dc[0x0];return _0x5423dc[_0x3274('0xc4')](_0x4a90bb=>_0x4a90bb[_0x3274('0xe6')]-0x3<=this['_activeViewTarget']['y']&&_0x4a90bb['bottom']+0x3>=this[_0x3274('0xe7')]['y']&&_0x4a90bb['left']-0x3<=this[_0x3274('0xe7')]['x']&&_0x4a90bb[_0x3274('0xd2')]+0x3>=this[_0x3274('0xe7')]['x'])||_0x5423dc[0x0];}}}),this[_0x3274('0xcf')]['showStack']('revisionHistoryLabel'));}),this['on'](_0x3274('0x10a'),(_0x44c0ec,_0x114e38,_0x3ac102,_0x7138d1)=>{this[_0x3274('0x8c')]=_0x3ac102?this[_0x3274('0xa9')](_0x3ac102):null,this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0x73')](()=>{const _0x4f4b4c=this[_0x3274('0x106')]['editing'];_0x7138d1&&(_0x7138d1['data'][_0x3274('0x5b')]?_0x4f4b4c['view'][_0x3274('0x73')](_0x42455f=>{_0x42455f[_0x3274('0x2b')](_0x3274('0x87'),_0x4f4b4c[_0x3274('0x40')][_0x3274('0x117')][_0x3274('0xcd')](_0x7138d1['rootName']));}):_0x4f4b4c[_0x3274('0x93')]('revision:'+_0x7138d1['id'])),_0x3ac102&&(_0x3ac102[_0x3274('0x66')][_0x3274('0x5b')]?_0x4f4b4c[_0x3274('0x40')][_0x3274('0x73')](_0x4430c1=>{_0x4430c1['addClass'](_0x3274('0x87'),_0x4f4b4c[_0x3274('0x40')][_0x3274('0x117')][_0x3274('0xcd')](_0x3ac102[_0x3274('0xc9')]));}):_0x4f4b4c[_0x3274('0x93')](_0x3274('0x72')+_0x3ac102['id']));});}),this[_0x3274('0x96')](this[_0x3274('0x106')]['editing'][_0x3274('0x40')][_0x3274('0x117')],_0x3274('0x41'),(_0x59f392,_0x5d12b0)=>{if(this[_0x3274('0x28')])return;const _0x3f5d94=this[_0x3274('0xe5')](_0x5d12b0[_0x3274('0x8a')]),_0x284f78=this['_changeIdToChange'][_0x3274('0xdb')](_0x3f5d94);_0x284f78?(this[_0x3274('0xe7')]={'x':_0x5d12b0[_0x3274('0x29')]['x'],'y':_0x5d12b0[_0x3274('0x29')]['y']},this[_0x3274('0x8c')]=this[_0x3274('0xa9')](_0x284f78)):(this[_0x3274('0xe7')]=null,this[_0x3274('0x8c')]=null);}),this[_0x3274('0x96')](this['editor'][_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x117')],_0x3274('0x21'),(_0x35e3ec,_0x417f17)=>{const _0x143442=this['_findChangeIdFromDomTarget'](_0x417f17[_0x3274('0x8a')]),_0x35f93c=this[_0x3274('0xa4')][_0x3274('0xdb')](_0x143442);_0x35f93c?(this[_0x3274('0xe7')]={'x':_0x417f17[_0x3274('0x29')]['x'],'y':_0x417f17[_0x3274('0x29')]['y']},_0x35f93c===this[_0x3274('0x28')]?this[_0x3274('0xcf')][_0x3274('0xc0')]():this['activeChange']=_0x35f93c):(this[_0x3274('0xe7')]=null,this[_0x3274('0x28')]=null);});}[_0x3274('0xe5')](_0x28c01d){do{const _0x2b832f=_0x28c01d[_0x3274('0xa7')](_0x3274('0xdc'));if(_0x2b832f)return _0x2b832f;_0x28c01d=_0x28c01d[_0x3274('0x11a')];}while(_0x28c01d);return null;}[_0x3274('0x82')](){this[_0x3274('0x106')][_0x3274('0x11e')][_0x3274('0x73')](_0xfd469f=>{for(const _0xa93bcf of this[_0x3274('0x106')]['model'][_0x3274('0x5c')])_0xfd469f[_0x3274('0xbf')](_0xa93bcf);});}}function Y(_0x56ce1d,_0x3c8620){return(_0x6c8af3,_0x5ca7ae,_0x15f83e)=>{if(!_0x15f83e[_0x3274('0x3d')][_0x3274('0xa')](_0x5ca7ae[_0x3274('0x84')],_0x6c8af3[_0x3274('0x11')]))return;const _0x276189=_0x5ca7ae[_0x3274('0x84')]['getWalker'](),_0x29dd05=_0x5ca7ae[_0x3274('0x84')][_0x3274('0xa2')],_0x3da157=_0x56ce1d[_0x3274('0x11e')]['schema'];let _0xcbc0f1=null,_0x6d937=null,_0x1a8174=!0x1,_0x47b34d=!0x1;for(const _0x355f1d of _0x276189){const _0x2d0839=_0x355f1d[_0x3274('0x67')];_0x1a8174=_0x1a8174||_0x3da157[_0x3274('0x97')](_0x2d0839);const _0x136942=_0x15f83e[_0x3274('0xae')]['toViewElement'](_0x2d0839);if(_0x136942&&_0x136942['getCustomProperty'](_0x3274('0x5a')))return;_0x3274('0xaf')==_0x355f1d[_0x3274('0x33')]&&(_0x3da157[_0x3274('0x4')](_0x2d0839)&&!_0x3da157['isLimit'](_0x2d0839)&&(_0x2d0839[_0x3274('0x4f')]||_0x29dd05[_0x3274('0xe3')]?_0xcbc0f1&&_0xcbc0f1[_0x3274('0x11a')]==_0x2d0839||(_0xcbc0f1=_0x2d0839,_0x2cccd2(_0x355f1d[_0x3274('0x8')]),_0x47b34d=!0x0):_0x6d937=_0x6d937||_0x355f1d[_0x3274('0x8')]));}function _0x2cccd2(_0x3a0ddc){const _0x4d4da6=_0x15f83e['mapper'][_0x3274('0xf')](_0x3a0ddc),_0xe7e0d2=_0x15f83e[_0x3274('0x71')][_0x3274('0x6e')](_0x3274('0x10e'),{'class':_0x3274('0x55')+_0x3c8620});_0x15f83e[_0x3274('0x71')][_0x3274('0x111')](_0x4d4da6,_0xe7e0d2),_0x15f83e[_0x3274('0xae')][_0x3274('0x9b')](_0xe7e0d2,_0x5ca7ae[_0x3274('0xf3')]);}_0x1a8174||_0x47b34d||!_0x6d937||_0x2cccd2(_0x6d937);};}export class RestoreRevisionCommand extends _0x417964{constructor(_0x2e12af){super(_0x2e12af);const _0x1a6847=_0x2e12af[_0x3274('0x6d')]['get'](w);this['stopListening'](_0x2e12af,'change:isReadOnly'),this[_0x3274('0x4c')](_0x3274('0xef')),this[_0x3274('0x96')](_0x1a6847,_0x3274('0x80'),()=>this[_0x3274('0x85')]()),this['listenTo'](_0x1a6847,_0x3274('0xa8'),()=>this[_0x3274('0x85')]());}[_0x3274('0x69')](){const _0x3e8e67=this[_0x3274('0x106')],_0x77ff28=_0x3e8e67[_0x3274('0x6d')][_0x3274('0xdb')](w),_0x3dc2d2=_0x77ff28[_0x3274('0x116')]?_0x77ff28[_0x3274('0xf9')]['newRevisionId']:null;_0x3e8e67['config'][_0x3274('0xdb')]('revisionHistory')[_0x3274('0x108')](_0x3dc2d2);}[_0x3274('0x85')](){const {isReady:_0x851cd,isEnabled:_0x2903f3}=this['editor'][_0x3274('0x6d')][_0x3274('0xdb')](w);this[_0x3274('0x36')]=_0x851cd&&_0x2903f3;}}export class ShowChangeCommand extends _0x417964{constructor(_0x4c8fd5,{direction:_0x1fd63b}){super(_0x4c8fd5);const _0xf84e9e=_0x4c8fd5[_0x3274('0x6d')][_0x3274('0xdb')](w);this[_0x3274('0xff')](_0x4c8fd5,_0x3274('0x122')),this[_0x3274('0x4c')](_0x3274('0xef')),this[_0x3274('0xa0')]=_0x3274('0x1e')===_0x1fd63b?0x1:-0x1,this[_0x3274('0x96')](_0xf84e9e,_0x3274('0x80'),()=>this[_0x3274('0x85')]()),this[_0x3274('0x96')](_0xf84e9e,'change:isEnabled',()=>this['refresh']());}[_0x3274('0x69')](){const _0x4eed5=this[_0x3274('0x106')],_0x1cde3d=_0x4eed5[_0x3274('0x6d')][_0x3274('0xdb')](w),{isNavigationMode:_0x1203b8,currentChangeNumber:_0xfb01ce}=_0x1cde3d;let _0xb2fd23;if(_0x1cde3d['activeChange']=_0x1203b8?_0x1cde3d[_0x3274('0xf9')][_0x3274('0x124')][_0x3274('0xdb')](_0xfb01ce+this[_0x3274('0xa0')]):_0x1cde3d[_0x3274('0xf9')][_0x3274('0x124')]['first'],_0x1cde3d[_0x3274('0x28')][_0x3274('0x66')]['isOnRoot'])_0xb2fd23=_0x4eed5[_0x3274('0xf6')][_0x3274('0x40')][_0x3274('0x1f')](_0x1cde3d[_0x3274('0x28')]['rootName']);else{const _0x31f262=_0x4eed5['model'][_0x3274('0x5c')][_0x3274('0xdb')]('revision:'+_0x1cde3d[_0x3274('0x28')]['id']);_0xb2fd23=_0x917108(_0x4eed5[_0x3274('0xf6')],_0x31f262);}_0x1d4656({'target':_0xb2fd23,'viewportOffset':0x28});}[_0x3274('0x85')](){const {isNavigationMode:_0x57cfed,currentChangeNumber:_0x34999b,numberOfChanges:_0x35563e,isReady:_0x3a503a,isEnabled:_0x1a9fb5}=this[_0x3274('0x106')]['plugins'][_0x3274('0xdb')](w);this[_0x3274('0x36')]=!!(_0x1a9fb5&&_0x3a503a&&_0x35563e)&&(!_0x57cfed||(0x1===this[_0x3274('0xa0')]?_0x34999b<_0x35563e-0x1:_0x34999b>0x0));}}
23
+ const _0x2184=['vid_end','element:pre','unshift','enqueueChange','toData','getChild','pop','ck-revision-history-root--active','pluginName','data-change-id','_removeMissingPairs','createRevision','_balloon','-new','high','getItems','splice','_getViewForChange','low','isRemoveSuggestion','removeMarker:revision-suggestion','_changeView','insertion','isOnRoot','createUIElement','toViewElement','attributesBefore','repository','start','parent','shift','isSuggestion','_makeTape','reconvertMarker','nextPosition','type','comment','nextSibling','WidgetToolbarRepository','for','data-revision-','catch','selection','ck-suggestion-preview-marker-','_threeWayMerge','commands','isObject','revision-end','toViewPosition','enableReadOnlyMode','ck-suggestion-marker-','endIndex','ck-editor__editable__overlay','index','_joinTapes','from','_markInsertions','_makeModelFromViewString','find','findIndex','insertions','deletions','addClass','_refreshStartEndIndex','getRevisionData','_revisions','affectsData','insert','checkAttribute','isLimit','_step','_getRevisionsRange','first','merge','getAttribute','downcastDispatcher','change:isReady','level','modelRange','bind','addRoot','markerToData','_getViewObj','map','_fixObsoleteTags','changeId','keys','suggestion','isBefore','deletion','_makeModelFromTape','end','_update','restoreRevisionCallback','children','isEqual','ck-suggestion-preview-marker','removeClass','getCustomProperty','elementEnd','getRevision','rootName','viewItem','wrap','_changeIdToChange','ck-suggestion-marker','destroy','isAttached','isIncorrect','createPositionFromPath','currentChangeNumber','delete','flat','length','mousedown','includes','bindElementToMarker','consume','detachRoot','RevisionViewer','mouseover','oldRevisionId','markersEnd','activeView','test','authors','right','getRootNames','getIndex','_removeRevisionMarkers','changes','element','addHighlight','markersStart','loadRevisionData','suggestion:','_removeUnsupportedChanges','isContent','ck-revision-history-root-add','revisionHistoryLabel','name','isNavigationMode','split','stop','processor','view','newRevisionId','_data','ck-suggestion-marker--active','isReady','elementStart','side','conversion','revision-viewer','getWalker','editor','attributesAfter','_markMarkers','listenTo','sort','indexOf','done','removeAttribute','_findChangeIdFromDomTarget','nodeAfter','top','get','filter','target','has','revision','adapter','_cleanMarkers','attributes','diffData','remove','revision:','isAddSuggestion','addMarker:revision','document','addMarker:revision-suggestion:insertion','isEnabled','model','markerName','showNextChange','highest','_activeViewTarget','revision-suggestion','push','writer','dataDowncast','addRevision','showStack','plugins','revision-comment:','isRemoved','markerRange','then','_setChanges','execute','ck-revision-history-root-remove','add','span','upcast','activeChange','offsetSize','locale','markerToHighlight','requires','_cleanUp','change:numberOfChanges','isAtEnd','createRange','code','previousPosition','startsWith','vid_start','marked','toViewRange','_initInteractions','startIndex','toModel','useFillerType','diff','abs','next','data','text','isAfter','markerNameToElements','consumable','forEach','numberOfChanges','string','revisionHistoryAttachChange','slice','updatePosition','backward','_sortAndFilterDiffChanges','_appendChild','values','_getDiff','vid','distance','ck-suggestion-marker-split','createAttributeElement','mapper','attachChange','getAttributes','isBlock','_getChangeFromId','clear','_setConversion','domConverter','concat','revision-start','schema','pairId','getRoot','_setDistance','domEvent','addRevisionData','forward','init','userId','_markMismatchedRemovedTags','editing','editingDowncast','range','change','hasAttribute','getClientRects','change:isEnabled','refresh','markers','removeMarker','revision-suggestion:','item','isAdded','set','isCollapsed','resolve','_markSuggestions','isInline','setAttribute','dataToMarker','parse'];(function(_0x1c3d87,_0x21841c){const _0x18b2d6=function(_0x4800f2){while(--_0x4800f2){_0x1c3d87['push'](_0x1c3d87['shift']());}};_0x18b2d6(++_0x21841c);}(_0x2184,0xda));const _0x18b2=function(_0x1c3d87,_0x21841c){_0x1c3d87=_0x1c3d87-0x0;let _0x18b2d6=_0x2184[_0x1c3d87];return _0x18b2d6;};import{Plugin as _0x247ff8,Command as _0xcfbd88}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x413986}from'ckeditor5/src/utils';import{ContextualBalloon as _0x16c372}from'ckeditor5/src/ui';import{DocumentFragment as _0x39e403,Element as _0x44d97d,Text as _0x447422,ViewDocumentFragment as _0x130a33,ViewText as _0x5501ba,ViewElement as _0x1dc760,ViewContainerElement as _0x1cac1a,ViewAttributeElement as _0x30c093,ViewEmptyElement as _0x464de4,ViewRawElement as _0x405772,ViewUIElement as _0x26db04}from'ckeditor5/src/engine';import{Users as _0x435715,getMarkerDomElement as _0x4ee7ef}from'ckeditor5-collaboration/src/collaboration-core';import _0x1321c7 from'./ui/revisionviewer/changedetailsview';import _0x134d25 from'./revisionsrepository';import _0xc3ab36 from'./changeitem';import{default as _0x114f0b}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x164c40}from'lodash-es';const X={'c':_0x1cac1a,'a':_0x30c093,'e':_0x464de4,'r':_0x405772,'u':_0x26db04};export default class w extends _0x247ff8{static get[_0x18b2('0x4d')](){return _0x18b2('0xbc');}static get[_0x18b2('0x115')](){return[_0x435715,_0x16c372,_0x134d25];}constructor(_0x5abb17){super(_0x5abb17),this['repository']=this[_0x18b2('0xe0')][_0x18b2('0x106')]['get']('RevisionsRepository'),this[_0x18b2('0x3d')](_0x18b2('0x111'),null),this[_0x18b2('0x3d')]('activeView',null),this[_0x18b2('0xff')]=null,this[_0x18b2('0x3d')](_0x18b2('0x5'),null),this[_0x18b2('0x3d')](_0x18b2('0xda'),!0x1),this[_0x18b2('0x3d')](_0x18b2('0xfa'),!0x0),this['on'](_0x18b2('0x36'),(_0x4d53cc,_0x31ff57,_0x4e9afa)=>{this[_0x18b2('0x111')]=null,this['activeView']=null,this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0x33')](_0x3e2006=>{for(const _0x1ded21 of this['editor'][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')]['roots'])_0x4e9afa?_0x3e2006[_0x18b2('0xa6')]('ck-editor__editable__overlay',_0x1ded21):_0x3e2006[_0x18b2('0x83')](_0x18b2('0x79'),_0x1ded21);});}),this['bind'](_0x18b2('0xd2'))['to'](this,_0x18b2('0x111'),_0x358ca9=>null!==_0x358ca9),this[_0x18b2('0x94')](_0x18b2('0xb3'))['to'](this,_0x18b2('0xda'),this,_0x18b2('0x5'),this,_0x18b2('0x111'),(_0x407216,_0x2685f4,_0x22b303)=>_0x407216&&_0x22b303?_0x2685f4[_0x18b2('0xc7')][_0x18b2('0xc5')](_0x22b303):0x0),this[_0x18b2('0x94')](_0x18b2('0xe'))['to'](this,_0x18b2('0xda'),this,_0x18b2('0x5'),(_0x75199c,_0x2a206a)=>_0x75199c?_0x2a206a[_0x18b2('0xc7')][_0x18b2('0xb6')]:0x0),this[_0x18b2('0x5a')]=null,this[_0x18b2('0xad')]=new Map(),this[_0x18b2('0xf0')]=null,this['_balloon']=this[_0x18b2('0xe0')]['plugins'][_0x18b2('0xeb')](_0x16c372);}[_0x18b2('0x2d')](){const _0x35ea93=this['editor'],_0x5506b6=new ShowChangeCommand(_0x35ea93,{'direction':_0x18b2('0x13')}),_0x420caf=new ShowChangeCommand(_0x35ea93,{'direction':_0x18b2('0x2c')});(_0x35ea93[_0x18b2('0x72')][_0x18b2('0x10e')]('showPreviousChange',_0x5506b6),_0x35ea93['commands']['add'](_0x18b2('0xfd'),_0x420caf),_0x35ea93[_0x18b2('0x72')][_0x18b2('0x10e')]('restoreRevision',new RestoreRevisionCommand(_0x35ea93)),this['on'](_0x18b2('0x117'),()=>{_0x5506b6[_0x18b2('0x37')](),_0x420caf[_0x18b2('0x37')]();}),this[_0x18b2('0x22')](),this[_0x18b2('0x1')](),_0x35ea93[_0x18b2('0x76')](_0x18b2('0xde')),_0x35ea93[_0x18b2('0x106')][_0x18b2('0xee')](_0x18b2('0x6b')))&&_0x35ea93['plugins']['get'](_0x18b2('0x6b'))['forceDisabled'](_0x18b2('0xde'));}async[_0x18b2('0x85')](_0x1fcf08){await this[_0x18b2('0xcb')](_0x1fcf08);const _0x3b5ee3={};for(const _0x8533cd in _0x1fcf08[_0x18b2('0xf3')]){if(_0x1fcf08[_0x18b2('0xf3')][_0x8533cd][_0x18b2('0x1d')]&&!_0x1fcf08[_0x18b2('0xf3')][_0x8533cd][_0x18b2('0x1d')][_0x18b2('0xb0')])continue;const _0x5beb5e=this[_0x18b2('0xc6')](JSON[_0x18b2('0x44')](_0x1fcf08['diffData'][_0x8533cd][_0x18b2('0x81')])),_0x133a7e=this[_0x18b2('0xe0')][_0x18b2('0x30')]['view'][_0x18b2('0xf8')],_0x4819d8=new _0x130a33(_0x133a7e,_0x5beb5e['map'](_0x535c25=>this['_getViewObj'](_0x535c25)));this['editor'][_0x18b2('0x8')][_0x18b2('0xd5')]['useFillerType'](_0x18b2('0x11e')),_0x3b5ee3[_0x8533cd]=this['editor'][_0x18b2('0x8')][_0x18b2('0xd5')][_0x18b2('0x49')](_0x4819d8),this[_0x18b2('0xe0')][_0x18b2('0x8')][_0x18b2('0xd5')][_0x18b2('0x4')]('default');}return _0x3b5ee3;}async['getRevisionRootsAttributes'](_0x587be3){await this[_0x18b2('0xcb')](_0x587be3);const _0x4b43ae={};for(const _0x33c589 in _0x587be3[_0x18b2('0xf3')])_0x587be3[_0x18b2('0xf3')][_0x33c589]['attachChange']&&!_0x587be3[_0x18b2('0xf3')][_0x33c589]['attachChange']['isAttached']||(_0x4b43ae[_0x33c589]=_0x587be3[_0x18b2('0xf3')][_0x33c589][_0x18b2('0xe1')]||{});return _0x4b43ae;}[_0x18b2('0xc6')](_0x17ce37){return(_0x17ce37=_0x17ce37[_0x18b2('0xec')](_0x267e31=>!_0x267e31[_0x18b2('0xd1')]||_0x18b2('0x25')!==_0x267e31[_0x18b2('0xd1')]&&_0x18b2('0x74')!==_0x267e31[_0x18b2('0xd1')]))[_0x18b2('0xd')](_0x542e6b=>{_0x18b2('0xf')!=typeof _0x542e6b&&(_0x542e6b['children']=this[_0x18b2('0xc6')](_0x542e6b[_0x18b2('0xa3')]),_0x542e6b[_0x18b2('0xf2')]=_0x542e6b['attributes'][_0x18b2('0xec')](_0x795f58=>!_0x795f58[0x0]['startsWith'](_0x18b2('0x6d'))));}),_0x17ce37;}async['compare'](_0x6cc51d,_0x47f5a9,_0x717e70=!0x1){if(!this[_0x18b2('0xfa')])return;const _0x3f019b=this[_0x18b2('0x5')],_0x439556=this['repository'],_0x482e31=_0x18b2('0xf')==typeof _0x6cc51d?_0x439556[_0x18b2('0xa9')](_0x6cc51d):_0x6cc51d,_0x5f3438=_0x18b2('0xf')==typeof _0x47f5a9?_0x439556['getRevision'](_0x47f5a9):_0x47f5a9,_0x1c67bd=_0x482e31['id'],_0x3f4832=_0x5f3438?_0x5f3438['id']:null;if(!_0x717e70&&this[_0x18b2('0x5')]&&this['diff'][_0x18b2('0xd7')]===_0x1c67bd&&this['diff'][_0x18b2('0xbe')]===_0x3f4832)return Promise[_0x18b2('0x3f')]();this[_0x18b2('0xda')]=!0x1,this['activeView']=null,this[_0x18b2('0x111')]=null,this[_0x18b2('0x5')]=new _0x114f0b(_0x1c67bd,_0x3f4832);const _0x40c34=this[_0x18b2('0x8c')](_0x482e31,_0x5f3438,!0x0)[_0x18b2('0x98')](_0x2c3291=>this[_0x18b2('0xcb')](_0x2c3291));return _0x40c34[_0x18b2('0x101')](new Promise(_0x58c61=>{setTimeout(_0x58c61,0x14);})),Promise['all'](_0x40c34)[_0x18b2('0x10a')](()=>{if(!this[_0x18b2('0xfa')])return;this[_0x18b2('0x116')]();const _0xac095c=this['_getDiff'](_0x1c67bd,_0x3f4832);for(const _0x7b87e4 of _0xac095c[_0x18b2('0xc7')])this[_0x18b2('0xad')][_0x18b2('0x3d')](_0x7b87e4['id'],_0x7b87e4);this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x48')]({'isUndoable':!0x1},_0x5b22fa=>{for(const _0x20bb75 of this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0xc4')]())_0x5b22fa[_0x18b2('0xbb')](_0x20bb75);for(const _0x259972 of Object['keys'](_0xac095c[_0x18b2('0xfb')])){const _0x3045dc=_0x5b22fa[_0x18b2('0x95')](_0x259972);for(const _0x2d9ae0 of Object[_0x18b2('0x9b')](_0xac095c[_0x18b2('0xf2')][_0x259972]))_0x5b22fa[_0x18b2('0x42')](_0x2d9ae0,_0xac095c[_0x18b2('0xf2')][_0x259972][_0x2d9ae0],_0x3045dc);_0x5b22fa['insert'](_0xac095c['model'][_0x259972],_0x3045dc,0x0);}}),this[_0x18b2('0x5')][_0x18b2('0x10b')](this[_0x18b2('0x14')](_0xac095c[_0x18b2('0xc7')])),this[_0x18b2('0xda')]=!0x0;})[_0x18b2('0x6e')](_0x17991b=>{console['error'](_0x17991b),this[_0x18b2('0x116')](),_0x3f019b&&(this['diff']=_0x3f019b),this['isReady']=!0x0;});}[_0x18b2('0x2b')](_0x1ff623,_0x2c320e){const _0x2c6c8=this[_0x18b2('0x60')][_0x18b2('0x50')](_0x1ff623);return _0x2c6c8['on'](_0x18b2('0xa1'),(_0x279ebf,_0x2580cb,_0x52a367)=>_0x2c320e(_0x2580cb,_0x52a367,_0x2c6c8)),this[_0x18b2('0x60')][_0x18b2('0x104')](_0x2c6c8),_0x2c6c8;}[_0x18b2('0xcb')](_0x38e750){if(!_0x38e750||_0x38e750[_0x18b2('0xf3')])return Promise[_0x18b2('0x3f')]();{const _0x812de1=this[_0x18b2('0xe0')]['config']['get']('collaboration.channelId');return this[_0x18b2('0xf0')][_0x18b2('0xa9')]({'channelId':_0x812de1,'revisionId':_0x38e750['id']})[_0x18b2('0x10a')](_0x14b72e=>{_0x38e750[_0x18b2('0xa1')]({'diffData':_0x14b72e['diffData']},!0x0);});}}['_cleanUp'](){this[_0x18b2('0x111')]=null,this['_cleanMarkers'](),this[_0x18b2('0x5a')]&&this[_0x18b2('0x5a')][_0x18b2('0xaf')](),this[_0x18b2('0x5a')]=null,this['_changeIdToChange'][_0x18b2('0x21')](),this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x48')]({'isUndoable':!0x1},_0x4324d8=>{for(const _0x3d83ab of this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0xc4')]())_0x4324d8[_0x18b2('0xbb')](_0x3d83ab);});}['_sortAndFilterDiffChanges'](_0x4e65b2){const _0x3056a4=[],_0x1ba096=new Map();for(const _0x5c226f of this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')][_0x18b2('0xc4')]()){const _0x449655=this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')]['getDomRoot'](_0x5c226f);if(!_0x449655)continue;const _0x3ddad1=_0x449655[_0x18b2('0x35')]()[_0x18b2('0x3b')](0x0);_0x3ddad1&&(_0x3056a4[_0x18b2('0x101')](_0x5c226f),_0x1ba096['set'](_0x5c226f,_0x3ddad1));}return _0x3056a4[_0x18b2('0xe4')]((_0x5ccb39,_0x4cd597)=>{const _0x25d9fa=_0x1ba096[_0x18b2('0xeb')](_0x5ccb39),_0xa26889=_0x1ba096[_0x18b2('0xeb')](_0x4cd597);return _0x25d9fa['y']-_0xa26889['y']||_0x25d9fa['x']-_0xa26889['x'];}),(_0x4e65b2=_0x4e65b2[_0x18b2('0xec')](_0x3b55b5=>_0x3056a4[_0x18b2('0xb8')](_0x3b55b5['rootName'])))[_0x18b2('0xe4')]((_0x39b125,_0x157f3f)=>_0x3056a4['indexOf'](_0x39b125[_0x18b2('0xaa')])-_0x3056a4[_0x18b2('0xe5')](_0x157f3f[_0x18b2('0xaa')])),_0x4e65b2;}['_makeTape'](_0x1406bc){const _0x3064a5=Array[_0x18b2('0x7c')](_0x1406bc[_0x18b2('0x38')])[_0x18b2('0xec')](([_0xf68f2f,_0x38483f])=>_0xf68f2f[_0x18b2('0x11c')]('revision:')&&!_0x38483f['isCollapsed']),_0x334a5f=Array['from'](this[_0x18b2('0xe0')][_0x18b2('0xfb')]['createRangeIn'](_0x1406bc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3064a5['length'])for(const _0x27f9f6 of _0x334a5f){const [_0x12700f,_0xbc904b]=_0x3064a5[0x0],[,_0x23f002,_0x233cd6]=_0x12700f[_0x18b2('0xd3')](':');if(_0xbc904b[_0x18b2('0xa0')][_0x18b2('0xa4')](_0x27f9f6['nextPosition'])&&_0x3064a5[_0x18b2('0x63')](),(_0x27f9f6['previousPosition']['isEqual'](_0xbc904b[_0x18b2('0x61')])||_0x27f9f6[_0x18b2('0x11b')][_0x18b2('0xa')](_0xbc904b[_0x18b2('0x61')]))&&(_0x18b2('0x5b')==_0x23f002?_0x27f9f6['isAdded']={'userId':_0x233cd6}:'deletion'==_0x23f002&&(_0x27f9f6[_0x18b2('0x108')]={'userId':_0x233cd6})),0x0==_0x3064a5[_0x18b2('0xb6')])break;}return _0x334a5f;}[_0x18b2('0x84')](_0x2bf969){const _0xa24a5c=new Map();for(let _0x2ab168=0x0;_0x2ab168<_0x2bf969['length'];_0x2ab168++)_0x18b2('0x9')===_0x2bf969[_0x2ab168][_0x18b2('0x68')]?(_0x2bf969[_0x2ab168]['item'][_0x18b2('0x2')]=_0x2ab168,_0x2bf969[_0x2ab168]['item'][_0x18b2('0x78')]=_0x2ab168):(_0x18b2('0xdb')===_0x2bf969[_0x2ab168]['type']?_0x2bf969[_0x2ab168][_0x18b2('0x3b')]['startIndex']=_0x2ab168:_0x18b2('0xa8')===_0x2bf969[_0x2ab168][_0x18b2('0x68')]&&(_0x2bf969[_0x2ab168][_0x18b2('0x3b')][_0x18b2('0x78')]=_0x2ab168),_0xa24a5c[_0x18b2('0x3d')](_0x2bf969[_0x2ab168]['id'],_0x2ab168));for(const _0x24b5dc of _0xa24a5c[_0x18b2('0x16')]())'elementStart'===_0x2bf969[_0x24b5dc][_0x18b2('0x68')]?_0x2bf969[_0x24b5dc][_0x18b2('0x3b')][_0x18b2('0x78')]=_0xa24a5c[_0x18b2('0xeb')](_0x2bf969[_0x24b5dc][_0x18b2('0x27')]):_0x18b2('0xa8')===_0x2bf969[_0x24b5dc]['type']&&(_0x2bf969[_0x24b5dc][_0x18b2('0x3b')][_0x18b2('0x2')]=_0xa24a5c[_0x18b2('0xeb')](_0x2bf969[_0x24b5dc]['pairId']));}['_processTape'](_0x5df02a){for(let _0x3ad00a=0x0;_0x3ad00a<_0x5df02a[_0x18b2('0xb6')];_0x3ad00a++){if('elementStart'===_0x5df02a[_0x3ad00a][_0x18b2('0x68')])_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')]=_0x3ad00a;else{if('elementEnd'===_0x5df02a[_0x3ad00a][_0x18b2('0x68')]){_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x78')]=_0x3ad00a;const _0xc1f8bc=_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')];_0x5df02a[_0xc1f8bc][_0x18b2('0x27')]=_0x5df02a[_0x3ad00a]['id'],_0x5df02a[_0x3ad00a]['pairId']=_0x5df02a[_0xc1f8bc]['id'];}else _0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')]=_0x3ad00a,_0x5df02a[_0x3ad00a][_0x18b2('0x3b')][_0x18b2('0x78')]=_0x3ad00a,_0x5df02a[_0x3ad00a][_0x18b2('0x27')]=null;}_0x5df02a[_0x3ad00a][_0x18b2('0xca')]||(_0x5df02a[_0x3ad00a]['markersStart']=[],_0x5df02a[_0x3ad00a][_0x18b2('0xbf')]=[]);}}['_markInsertions'](_0x1bfb6b,_0x51a21f){const _0xc9aad6=_0x1bfb6b[_0x18b2('0xec')](_0x30f67f=>!_0x30f67f[_0x18b2('0x3c')]);for(let _0x52afd9=0x0;_0x52afd9<_0x51a21f[_0x18b2('0xb6')];_0x52afd9++)_0x51a21f[_0x52afd9][_0x18b2('0x3c')]&&(_0xc9aad6[_0x52afd9][_0x18b2('0x3c')]=_0x51a21f[_0x52afd9][_0x18b2('0x3c')]);}[_0x18b2('0x7e')](_0x57022c){const _0x2b580a=JSON[_0x18b2('0x44')](_0x57022c),_0x41802d=this['editor']['editing'][_0x18b2('0xd6')]['document'],_0x138099=new _0x130a33(_0x41802d,_0x2b580a[_0x18b2('0x98')](_0x5d2067=>this[_0x18b2('0x97')](_0x5d2067)));return this[_0x18b2('0xe0')][_0x18b2('0x8')][_0x18b2('0x3')](_0x138099);}[_0x18b2('0x97')](_0x5a45e2){const _0x5f5d04=this[_0x18b2('0xe0')]['editing'][_0x18b2('0xd6')][_0x18b2('0xf8')];if('string'==typeof _0x5a45e2)return new _0x5501ba(_0x5f5d04,_0x5a45e2);{const _0x5e0dbe=_0x5a45e2['children'][_0x18b2('0x98')](_0x50ca4d=>this[_0x18b2('0x97')](_0x50ca4d));return new(X[_0x5a45e2[(_0x18b2('0x68'))]]||_0x1dc760)(_0x5f5d04,_0x5a45e2[_0x18b2('0xd1')],_0x5a45e2[_0x18b2('0xf2')],_0x5e0dbe);}}[_0x18b2('0x17')](_0x250cc2,_0x596dae=null){const _0x487661=this[_0x18b2('0x60')]['getRevision'](_0x250cc2),_0x14c6f1=_0x596dae?this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x596dae):null,_0x398d46=this[_0x18b2('0x8c')](_0x487661,_0x14c6f1),_0x3d1c97=_0x398d46[_0x398d46[_0x18b2('0xb6')]-0x1],_0x161b3b=new Map(),_0x4205b2={'model':{},'attributes':{},'changes':[]},_0x33753a=new Set(),_0x3bc56a=new Map();for(let _0x3a5620=_0x398d46[_0x18b2('0xb6')]-0x1;_0x3a5620>=0x0;_0x3a5620--){const _0x3932f7=_0x398d46[_0x3a5620];for(const _0x3b8910 of Object[_0x18b2('0x9b')](_0x3932f7[_0x18b2('0xf3')]))if(_0x3932f7['diffData'][_0x3b8910][_0x18b2('0x1d')]){const _0x1fd60c=_0x3932f7['diffData'][_0x3b8910]['attachChange'];_0x1fd60c['isAttached']?(_0x33753a[_0x18b2('0x10e')](_0x3b8910),_0x3bc56a[_0x18b2('0xee')](_0x3b8910)&&_0x3bc56a['get'](_0x3b8910)['userId']==_0x1fd60c['userId']?_0x3bc56a[_0x18b2('0xb4')](_0x3b8910):_0x3bc56a['set'](_0x3b8910,_0x1fd60c)):_0x3bc56a[_0x18b2('0xee')](_0x3b8910)?(_0x33753a['delete'](_0x3b8910),_0x3bc56a[_0x18b2('0xb4')](_0x3b8910)):(_0x33753a[_0x18b2('0x10e')](_0x3b8910),_0x3bc56a[_0x18b2('0x3d')](_0x3b8910,_0x1fd60c));}else _0x33753a[_0x18b2('0x10e')](_0x3b8910);}for(const _0x5f3124 of _0x33753a){const _0x1b45cb=_0x3bc56a[_0x18b2('0xee')](_0x5f3124)&&!_0x3bc56a[_0x18b2('0xeb')](_0x5f3124)[_0x18b2('0xb0')];let _0x44540d=_0x1b45cb?_0x398d46[_0x18b2('0xb6')]-0x1:0x0;const _0xbedbbc=_0x1b45cb?-0x1:0x1;for(;_0x398d46[_0x44540d];){const _0x39019b=_0x398d46[_0x44540d];if(_0x39019b['diffData'][_0x5f3124]){const _0x3e3fb8=_0x1b45cb?_0x39019b[_0x18b2('0xf3')][_0x5f3124][_0x18b2('0x5f')]:_0x39019b[_0x18b2('0xf3')][_0x5f3124]['attributesAfter'];_0x4205b2['attributes'][_0x5f3124]=_0x3e3fb8?_0x164c40(_0x3e3fb8):{};break;}_0x44540d+=_0xbedbbc;}}for(const _0x5014d4 of _0x398d46){_0x5014d4[_0x18b2('0xfb')]={};for(const _0x1b0638 of _0x5014d4[_0x18b2('0xc2')])_0x161b3b[_0x18b2('0x3d')](_0x1b0638['id'],_0x1b0638);for(const _0x52eda7 of _0x33753a){const _0x577d4b=_0x5014d4[_0x18b2('0xf3')][_0x52eda7]?_0x5014d4[_0x18b2('0xf3')][_0x52eda7]['insertions']:'[]',_0x138706=_0x5014d4[_0x18b2('0xf3')][_0x52eda7]?_0x5014d4[_0x18b2('0xf3')][_0x52eda7][_0x18b2('0x82')]:'[]';_0x5014d4[_0x18b2('0xfb')][_0x52eda7]={'insertions':this[_0x18b2('0x7e')](_0x577d4b),'deletions':this[_0x18b2('0x7e')](_0x138706)};}}for(const _0x2feeb7 of _0x33753a){let _0x198828=null,_0x5d2e4e=0x0;const _0x130c78=new Map(Array[_0x18b2('0x7c')](_0x487661[_0x18b2('0xfb')][_0x2feeb7]['insertions'][_0x18b2('0x38')])[_0x18b2('0xec')](([_0x1e259b])=>!_0x1e259b[_0x18b2('0x11c')]('revision:')));let _0x3c4135=0x0;for(const _0x211265 of _0x398d46){const _0x51d359=this[_0x18b2('0x65')](_0x211265['model'][_0x2feeb7][_0x18b2('0x81')]);_0x211265==_0x487661?(_0x198828=_0x51d359,_0x5d2e4e=_0x198828[_0x18b2('0xb6')],_0x198828[_0x18b2('0xd')](_0x5ce568=>{_0x5ce568['id']=_0x3c4135++;}),this['_processTape'](_0x198828)):this[_0x18b2('0x7d')](_0x198828,_0x51d359);const _0x5a43ac=_0x198828[_0x18b2('0xec')](_0x1296bc=>!_0x1296bc[_0x18b2('0x3c')])[_0x18b2('0x98')](_0xe692f6=>_0xe692f6['id']);let _0xd27daa=0x0;const _0x552260=this[_0x18b2('0x65')](_0x211265[_0x18b2('0xfb')][_0x2feeb7][_0x18b2('0x82')]);_0x552260[_0x18b2('0xd')](_0x246127=>{_0x246127['isRemoved']?_0x246127['id']=_0x5d2e4e++:_0x246127['id']=_0x5a43ac[_0xd27daa++];}),this['_processTape'](_0x552260),this[_0x18b2('0x29')](_0x198828,'isAdded'),this[_0x18b2('0x29')](_0x552260,'isRemoved'),_0x211265==_0x487661&&this[_0x18b2('0xe2')](_0x198828,_0x130c78),_0x198828=this[_0x18b2('0x7b')](_0x198828,_0x552260),this[_0x18b2('0x84')](_0x198828),this[_0x18b2('0x29')](_0x198828,_0x18b2('0x108'));}_0x198828=_0x198828[_0x18b2('0xec')](_0x2f73b7=>!(_0x2f73b7[_0x18b2('0x3c')]&&_0x2f73b7[_0x18b2('0x108')]));const _0x468292=new Map(_0x3d1c97[_0x18b2('0xfb')][_0x2feeb7][_0x18b2('0x82')][_0x18b2('0x38')]),_0x2cb73c=new Set(_0x130c78[_0x18b2('0x9b')]());for(const _0x46dc2d of _0x468292[_0x18b2('0x9b')]())_0x2cb73c[_0x18b2('0xb4')](_0x46dc2d);this[_0x18b2('0x40')](_0x198828,_0x2cb73c),this[_0x18b2('0x99')](_0x198828),_0x198828=this[_0x18b2('0x4f')](_0x198828),_0x198828=this['_markMismatchedRemovedTags'](_0x198828),_0x198828=this[_0x18b2('0xcd')](_0x198828);const {root:_0x5228df,changes:_0x35a737}=this[_0x18b2('0x9f')](_0x198828,_0x161b3b,_0x2feeb7);_0x4205b2[_0x18b2('0xfb')][_0x2feeb7]=_0x5228df;const _0x1e8381=_0x3bc56a['get'](_0x2feeb7);if(_0x1e8381){const _0x526d42=_0x161b3b[_0x18b2('0xeb')](_0x1e8381[_0x18b2('0x2e')]),_0x564dab=new _0xc3ab36({'author':_0x526d42,'type':_0x1e8381[_0x18b2('0xb0')]?'add':_0x18b2('0xf4'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2feeb7});_0x35a737[_0x18b2('0x47')](_0x564dab),_0x4205b2[_0x18b2('0xf2')][_0x2feeb7][_0x18b2('0x10')]=_0x564dab['id'];}_0x4205b2['changes']=_0x4205b2[_0x18b2('0xc7')][_0x18b2('0x24')](_0x35a737);}return _0x4205b2;}[_0x18b2('0xe2')](_0x69d7bb,_0x431e3d){for(let _0x4f5caf=0x0;_0x4f5caf<_0x69d7bb[_0x18b2('0xb6')];_0x4f5caf++)for(const [_0x2f83ff,_0x4be8cc]of _0x431e3d)_0x4be8cc['start']['isEqual'](_0x69d7bb[_0x4f5caf][_0x18b2('0x11b')])&&_0x69d7bb[_0x4f5caf][_0x18b2('0xca')][_0x18b2('0x101')](_0x2f83ff),_0x4be8cc[_0x18b2('0xa0')][_0x18b2('0xa4')](_0x69d7bb[_0x4f5caf][_0x18b2('0x67')])&&_0x69d7bb[_0x4f5caf][_0x18b2('0xbf')][_0x18b2('0x101')](_0x2f83ff);}[_0x18b2('0x7b')](_0x522039,_0x596312){let _0x1fa674=[],_0x23fb86=0x0,_0x442dac=0x0;for(;_0x23fb86<_0x522039[_0x18b2('0xb6')]||_0x442dac<_0x596312[_0x18b2('0xb6')];){const _0x370a07=_0x522039[_0x23fb86]||{},_0x130b57=_0x596312[_0x442dac]||{};if(_0x370a07['id']==_0x130b57['id'])_0x23fb86++,_0x442dac++,_0x1fa674[_0x18b2('0x101')](_0x370a07);else{if(_0x130b57[_0x18b2('0x108')]&&_0x370a07[_0x18b2('0x3c')]){const {commonTape:_0x3a3638,iEnd:_0x166ea8,jEnd:_0x21eb9b}=this[_0x18b2('0x71')](_0x522039,_0x23fb86,_0x596312,_0x442dac);_0x1fa674=_0x1fa674[_0x18b2('0x24')](_0x3a3638),_0x23fb86=_0x166ea8,_0x442dac=_0x21eb9b;}else _0x130b57[_0x18b2('0x108')]?(_0x442dac++,_0x1fa674[_0x18b2('0x101')](_0x130b57)):(_0x23fb86++,_0x1fa674['push'](_0x370a07));}}return _0x1fa674;}[_0x18b2('0x40')](_0x5b42c1,_0x3934f9){const _0x3814c1=[];for(let _0x397ed2=0x0;_0x397ed2<_0x5b42c1[_0x18b2('0xb6')];_0x397ed2++){for(let _0x11da9e=0x0;_0x11da9e<_0x5b42c1[_0x397ed2]['markersStart']['length'];_0x11da9e++){const _0x158fb4=_0x5b42c1[_0x397ed2][_0x18b2('0xca')][_0x11da9e];if(!_0x3934f9[_0x18b2('0xee')](_0x158fb4))continue;const {group:_0x1a9938,type:_0x29a7fa,authorId:_0x20d94f}=_0x155d79(_0x158fb4);_0x18b2('0x100')!=_0x1a9938||_0x18b2('0x5b')!=_0x29a7fa&&'deletion'!=_0x29a7fa||(_0x3814c1[_0x18b2('0x47')]({'type':_0x29a7fa,'name':_0x158fb4,'userId':_0x20d94f}),_0x5b42c1[_0x397ed2]['markersStart'][_0x18b2('0x55')](_0x11da9e,0x1),_0x11da9e--);}_0x491ed6(_0x5b42c1[_0x397ed2]);for(let _0x3ae9b1=0x0;_0x3ae9b1<_0x5b42c1[_0x397ed2]['markersEnd']['length'];_0x3ae9b1++){const _0x215847=_0x5b42c1[_0x397ed2]['markersEnd'][_0x3ae9b1];if(!_0x3934f9[_0x18b2('0xee')](_0x215847))continue;const {group:_0x5a77ca,type:_0x252338}=_0x155d79(_0x215847);if(_0x18b2('0x100')!=_0x5a77ca||'insertion'!=_0x252338&&_0x18b2('0x9e')!=_0x252338)continue;_0x5b42c1[_0x397ed2][_0x18b2('0xbf')][_0x18b2('0x55')](_0x3ae9b1,0x1),_0x3ae9b1--;const _0x8d8101=_0x3814c1[_0x18b2('0x80')](_0x59aefb=>_0x59aefb[_0x18b2('0xd1')]==_0x215847);_0x8d8101>-0x1&&_0x3814c1['splice'](_0x8d8101,0x1);}}function _0x155d79(_0x43029d){const _0xb3c4d0=_0x43029d[_0x18b2('0xd3')](':');return{'group':_0xb3c4d0[0x0],'type':_0xb3c4d0[0x1],'subType':_0xb3c4d0['length']>=0x5?_0xb3c4d0[0x2]:null,'id':_0xb3c4d0['length']<0x5?_0xb3c4d0[0x2]:_0xb3c4d0[0x3],'authorId':_0xb3c4d0[_0x18b2('0xb6')]<0x5?_0xb3c4d0[0x3]:_0xb3c4d0[0x4],'markerCount':0x6==_0xb3c4d0[_0x18b2('0xb6')]?_0xb3c4d0[0x5]:null};}function _0x491ed6(_0xbfa69b){for(let _0x5dc38c=0x0;_0x5dc38c<_0x3814c1[_0x18b2('0xb6')];_0x5dc38c++){if(_0xbfa69b[_0x18b2('0x3c')]&&_0x18b2('0x5b')==_0x3814c1[_0x5dc38c][_0x18b2('0x68')])return _0xbfa69b[_0x18b2('0xf6')]=_0x3814c1[_0x5dc38c],void delete _0xbfa69b['isAdded'];if(!_0xbfa69b[_0x18b2('0x3c')]&&!_0xbfa69b[_0x18b2('0x108')]&&_0x18b2('0x9e')==_0x3814c1[_0x5dc38c][_0x18b2('0x68')])return void(_0xbfa69b[_0x18b2('0x58')]=_0x3814c1[_0x5dc38c]);}}}[_0x18b2('0x29')](_0x4914c6,_0x3c4cfb){let _0x382998=0x0,_0x29ae94=!0x1;const _0x29a871=new Map();for(const _0x3275c4 of _0x4914c6)_0x3275c4[_0x3c4cfb]?_0x29ae94&&(_0x382998++,_0x29ae94=!0x1):(_0x382998++,_0x29ae94=!0x0),_0x29a871[_0x18b2('0x3d')](_0x3275c4['id'],_0x382998);for(let _0x20a965=0x0;_0x20a965<_0x4914c6[_0x18b2('0xb6')];_0x20a965++){if(_0x18b2('0x108')==_0x3c4cfb&&_0x4914c6[_0x20a965][_0x18b2('0x3c')]||_0x18b2('0x3c')==_0x3c4cfb&&_0x4914c6[_0x20a965][_0x18b2('0x108')])continue;if(_0x18b2('0x9')==_0x4914c6[_0x20a965][_0x18b2('0x68')]){_0x4914c6[_0x20a965][_0x18b2('0x19')]=0x0;continue;}const _0x52d0c2=_0x29a871[_0x18b2('0xeb')](_0x4914c6[_0x20a965][_0x18b2('0x27')]),_0x392d7a=_0x29a871['get'](_0x4914c6[_0x20a965]['id']);_0x4914c6[_0x20a965]['distance']=_0x52d0c2-_0x392d7a;}}[_0x18b2('0x8c')](_0x8c5afa,_0x3d44ab,_0x47dd6b=!0x1){const _0x511cf1=[];let _0x57d545=this[_0x18b2('0x60')]['getIndex'](_0x8c5afa),_0x38db08=this[_0x18b2('0x60')][_0x18b2('0xc5')](_0x3d44ab);for(-0x1==_0x38db08&&(_0x38db08=this[_0x18b2('0x60')][_0x18b2('0x86')]['length'],_0x47dd6b=!0x1);_0x57d545<_0x38db08;)_0x511cf1[_0x18b2('0x101')](this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x57d545)),_0x57d545++;return _0x47dd6b&&_0x511cf1['push'](this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x57d545)),_0x511cf1;}['_threeWayMerge'](_0x3173c8,_0xbf8506,_0x15b56e,_0x17d54d){const _0x384c37=this['editor']['model'][_0x18b2('0x26')];let _0x3fcaed=_0xbf8506;for(;_0x3173c8[_0x3fcaed]&&_0x3173c8[_0x3fcaed]['isAdded'];)_0x3fcaed++;let _0x44b0eb=_0x17d54d;for(;_0x15b56e[_0x44b0eb]&&_0x15b56e[_0x44b0eb][_0x18b2('0x108')];)_0x44b0eb++;_0x55e0cf(_0x3173c8,_0xbf8506,_0x3fcaed),_0x55e0cf(_0x15b56e,_0x17d54d,_0x44b0eb);const _0x3b5f91=_0x15b56e[_0x18b2('0x11')](_0x17d54d,_0x44b0eb)['concat'](_0x3173c8[_0x18b2('0x11')](_0xbf8506,_0x3fcaed));return _0x3b5f91[_0x18b2('0xe4')]((_0x58bbe7,_0x5d340d)=>_0x58bbe7[_0x18b2('0xdc')]!=_0x5d340d[_0x18b2('0xdc')]?_0x58bbe7[_0x18b2('0xdc')]-_0x5d340d['side']:_0x58bbe7['level']!=_0x5d340d[_0x18b2('0x92')]?_0x58bbe7['level']-_0x5d340d['level']:_0x58bbe7[_0x18b2('0x19')]!=_0x5d340d['distance']?_0x5d340d['distance']-_0x58bbe7[_0x18b2('0x19')]:!!_0x58bbe7[_0x18b2('0x3c')]!=!!_0x5d340d['isAdded']?-0x1==_0x58bbe7[_0x18b2('0xdc')]||0x0==_0x58bbe7[_0x18b2('0xdc')]?_0x58bbe7['isAdded']?-0x1:0x1:_0x58bbe7[_0x18b2('0x3c')]?0x1:-0x1:_0x58bbe7[_0x18b2('0x7a')]-_0x5d340d[_0x18b2('0x7a')]),{'commonTape':_0x3b5f91,'iEnd':_0x3fcaed,'jEnd':_0x44b0eb};function _0x55e0cf(_0x229a2d,_0x2e7cc3,_0x4e644a){let _0x5ecc66=-0x1,_0x5a3758=Number['POSITIVE_INFINITY'],_0x34fd6c=!0x0;for(let _0x22e974=_0x2e7cc3;_0x22e974<_0x4e644a;_0x22e974++)if(_0x384c37[_0x18b2('0x41')](_0x229a2d[_0x22e974][_0x18b2('0x3b')])||(_0x34fd6c=!0x1),_0x229a2d[_0x22e974][_0x18b2('0x3b')][_0x18b2('0x2')]<_0x2e7cc3&&(_0x5ecc66=_0x22e974),_0x229a2d[_0x22e974][_0x18b2('0x3b')]['endIndex']>=_0x4e644a){_0x5a3758=_0x22e974;break;}_0x34fd6c&&(_0x5ecc66=_0x4e644a-0x1);for(let _0x44d713=_0x2e7cc3;_0x44d713<_0x4e644a;_0x44d713++)_0x229a2d[_0x44d713][_0x18b2('0xdc')]=_0x44d713<=_0x5ecc66?-0x1:_0x44d713<_0x5a3758?0x0:0x1,_0x229a2d[_0x44d713][_0x18b2('0x7a')]=_0x44d713;let _0x2a055e=0x0;for(let _0x1c8b48=_0x2e7cc3;_0x1c8b48<=_0x5ecc66;_0x1c8b48++)0x0==_0x229a2d[_0x1c8b48][_0x18b2('0x19')]?_0x229a2d[_0x1c8b48][_0x18b2('0x92')]=_0x2a055e:(_0x2a055e++,_0x229a2d[_0x1c8b48][_0x18b2('0x92')]=_0x2a055e,_0x2a055e++);for(let _0x35cec8=_0x2e7cc3;_0x35cec8<_0x4e644a;_0x35cec8++)0x0==_0x229a2d[_0x35cec8]['side']&&(_0x229a2d[_0x35cec8][_0x18b2('0x92')]=_0x2a055e);_0x2a055e=0x0;for(let _0x3fd5f1=_0x4e644a-0x1;_0x3fd5f1>=_0x5a3758;_0x3fd5f1--)0x0==_0x229a2d[_0x3fd5f1][_0x18b2('0x19')]?_0x229a2d[_0x3fd5f1][_0x18b2('0x92')]=_0x2a055e:(_0x2a055e--,_0x229a2d[_0x3fd5f1][_0x18b2('0x92')]=_0x2a055e,_0x2a055e--);}}[_0x18b2('0x99')](_0xd40f82){const _0x44b608=new Map(),_0x46b20d=this['editor'][_0x18b2('0xfb')]['schema'];for(let _0x42b68d=0x1;_0x42b68d<_0xd40f82[_0x18b2('0xb6')];_0x42b68d++){let _0x294442,_0x175e64,_0x4cfeee;const _0x253def=_0xd40f82[_0x42b68d],_0x412c5e=_0xd40f82[_0x42b68d-0x1];if(_0x18b2('0x9')==_0x253def[_0x18b2('0x68')])continue;if(_0x253def[_0x18b2('0x68')]!=_0x412c5e[_0x18b2('0x68')])continue;if(!_0x46b20d[_0x18b2('0x1f')](_0x412c5e['item'])||_0x46b20d[_0x18b2('0x8a')](_0x412c5e['item']))continue;if(!_0x46b20d[_0x18b2('0x1f')](_0x253def[_0x18b2('0x3b')])||_0x46b20d[_0x18b2('0x8a')](_0x253def['item']))continue;if((_0xd40f82[_0x42b68d][_0x18b2('0x3c')]||_0xd40f82[_0x42b68d][_0x18b2('0xf6')])&&_0xd40f82[_0x42b68d-0x1][_0x18b2('0x108')])_0x294442=_0xd40f82[_0x42b68d],_0x175e64=_0xd40f82[_0x42b68d-0x1],_0x4cfeee=_0x42b68d-0x1;else{if(!_0xd40f82[_0x42b68d][_0x18b2('0x108')]||!_0xd40f82[_0x42b68d-0x1][_0x18b2('0x3c')]&&!_0xd40f82[_0x42b68d-0x1][_0x18b2('0xf6')])continue;_0x294442=_0xd40f82[_0x42b68d-0x1],_0x175e64=_0xd40f82[_0x42b68d],_0x4cfeee=_0x42b68d;}const _0x40065c=_0x294442[_0x18b2('0x92')]==_0x175e64[_0x18b2('0x92')],_0x44696c=Math[_0x18b2('0x6')](_0x294442[_0x18b2('0x92')])<Math[_0x18b2('0x6')](_0x175e64[_0x18b2('0x92')])&&0x0==_0x175e64[_0x18b2('0x19')];(_0x40065c||_0x44696c)&&(_0x44b608[_0x18b2('0x3d')](_0x175e64['id'],_0x294442['id']),_0xd40f82[_0x18b2('0x55')](_0x4cfeee,0x1),_0x42b68d--,_0x294442[_0x18b2('0x3c')]=!0x1);}for(let _0x47ea93=0x0;_0x47ea93<_0xd40f82['length'];_0x47ea93++)_0x44b608['has'](_0xd40f82[_0x47ea93]['pairId'])&&(_0xd40f82[_0x47ea93][_0x18b2('0x27')]=_0x44b608[_0x18b2('0xeb')](_0xd40f82[_0x47ea93][_0x18b2('0x27')]));}[_0x18b2('0x4f')](_0x3e0521){const _0x2aea1f=new Set(_0x3e0521[_0x18b2('0x98')](_0x346713=>_0x346713['id']));for(let _0x423c74=0x0;_0x423c74<_0x3e0521[_0x18b2('0xb6')];_0x423c74++)_0x2aea1f['has'](_0x3e0521[_0x423c74]['pairId'])||0x0==_0x3e0521[_0x423c74][_0x18b2('0x19')]||(_0x3e0521[_0x423c74][_0x18b2('0xb1')]=!0x0);return _0x3e0521[_0x18b2('0xec')](_0x1bc8d4=>!_0x1bc8d4['isIncorrect']);}[_0x18b2('0x2f')](_0x41391b){const _0x560dd9=new Set();for(let _0x197fd0=0x0;_0x197fd0<_0x41391b[_0x18b2('0xb6')];_0x197fd0++){if(_0x560dd9[_0x18b2('0xee')](_0x41391b[_0x197fd0]['id'])&&_0x41391b[_0x197fd0][_0x18b2('0x108')]&&(_0x41391b[_0x197fd0]['isIncorrect']=!0x0),_0x41391b[_0x197fd0]['isIncorrect'])continue;if(0x0==_0x41391b[_0x197fd0][_0x18b2('0x19')])continue;if('elementStart'!=_0x41391b[_0x197fd0][_0x18b2('0x68')])continue;if(null==_0x41391b[_0x197fd0][_0x18b2('0x27')])continue;let _0x16224a=_0x197fd0+0x1,_0x3ae2be=0x0;for(;_0x41391b[_0x16224a]['id']!=_0x41391b[_0x197fd0][_0x18b2('0x27')];)_0x18b2('0xdb')==_0x41391b[_0x16224a]['type']?_0x3ae2be++:_0x18b2('0xa8')==_0x41391b[_0x16224a]['type']&&_0x3ae2be--,_0x16224a++;if(0x0!=_0x3ae2be){if(_0x41391b[_0x197fd0][_0x18b2('0x108')])_0x41391b[_0x197fd0]['isIncorrect']=!0x0;else for(;_0x16224a!=_0x197fd0;)_0x41391b[_0x16224a][_0x18b2('0x108')]&&0x0!=_0x41391b[_0x16224a]['distance']&&(_0x41391b[_0x16224a][_0x18b2('0xb1')]=!0x0,_0x560dd9[_0x18b2('0x10e')](_0x41391b[_0x16224a][_0x18b2('0x27')])),_0x16224a--;}}return _0x41391b[_0x18b2('0xec')](_0x6e7e69=>!_0x6e7e69[_0x18b2('0xb1')]);}['_removeUnsupportedChanges'](_0x4166fc){const _0x2251c1=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x26')];for(let _0x25659c=0x0;_0x25659c<_0x4166fc[_0x18b2('0xb6')];_0x25659c++){if(!(_0x4166fc[_0x25659c]['isAdded']||_0x4166fc[_0x25659c][_0x18b2('0xf6')]||_0x4166fc[_0x25659c]['isRemoved']||_0x4166fc[_0x25659c]['isRemoveSuggestion']))continue;if(0x0==_0x4166fc[_0x25659c][_0x18b2('0x19')])continue;const _0x4aef6f=_0x4166fc[_0x25659c]['item'];_0x2251c1['isBlock'](_0x4aef6f)||_0x2251c1[_0x18b2('0x8a')](_0x4aef6f)||(_0x4166fc[_0x25659c]['isAdded']&&delete _0x4166fc[_0x25659c][_0x18b2('0x3c')],_0x4166fc[_0x25659c][_0x18b2('0xf6')]&&delete _0x4166fc[_0x25659c][_0x18b2('0xf6')],_0x4166fc[_0x25659c][_0x18b2('0x58')]&&delete _0x4166fc[_0x25659c]['isRemoveSuggestion'],_0x4166fc[_0x25659c]['isRemoved']&&(_0x4166fc[_0x25659c]['isIncorrect']=!0x0));}return _0x4166fc[_0x18b2('0xec')](_0x301525=>!_0x301525[_0x18b2('0xb1')]);}[_0x18b2('0x9f')](_0x45e767,_0x5581c2,_0x33f0cb){const _0x40aa95=new _0x39e403(),_0x4745e7=[],_0x2dd08c=new Map(),_0x16b0ed=this[_0x18b2('0xe0')][_0x18b2('0xfb')],_0x5d3c0b=_0x16b0ed[_0x18b2('0x26')],_0x562a0a=[_0x40aa95],_0x163bc5={},_0x5cdf10={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4bd951=null;const _0x403b33=[0x0];for(let _0x37062e=0x0;_0x37062e<_0x45e767[_0x18b2('0xb6')];_0x37062e++){let _0x5db7f2,_0x3f0a5a;if('elementStart'===_0x45e767[_0x37062e]['type']){_0x5db7f2=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33);const _0x48c263=new _0x44d97d(_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0xd1')],_0x45e767[_0x37062e]['item'][_0x18b2('0x1e')]());_0x562a0a[0x0][_0x18b2('0x15')](_0x48c263),_0x403b33[_0x18b2('0x101')](0x0),_0x562a0a['unshift'](_0x48c263),_0x3f0a5a=_0x16b0ed['createPositionFromPath'](_0x40aa95,_0x403b33),_0x4bd951=null;}else{if('elementEnd'===_0x45e767[_0x37062e]['type'])_0x562a0a[_0x18b2('0x63')](),_0x5db7f2=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33),_0x403b33[_0x18b2('0x4b')](),_0x403b33[_0x403b33[_0x18b2('0xb6')]-0x1]++,_0x3f0a5a=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33),_0x4bd951=null;else{if(_0x5db7f2=_0x16b0ed['createPositionFromPath'](_0x40aa95,_0x403b33),_0x4bd951&&_0x45ad38(_0x4bd951,_0x45e767[_0x37062e][_0x18b2('0x3b')]))_0x4bd951[_0x18b2('0xd8')]+=_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0x8')];else{const _0x3fc6e3=new _0x447422(_0x45e767[_0x37062e][_0x18b2('0x3b')]['data'],_0x45e767[_0x37062e][_0x18b2('0x3b')]['getAttributes']());_0x562a0a[0x0][_0x18b2('0x15')](_0x3fc6e3),_0x4bd951=_0x3fc6e3;}_0x403b33[_0x403b33[_0x18b2('0xb6')]-0x1]+=_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0x112')],_0x3f0a5a=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33);}}for(const _0x3a7500 of _0x45e767[_0x37062e]['markersStart'])_0x2dd08c[_0x18b2('0x3d')](_0x3a7500,{'start':_0x5db7f2,'end':null});_0x45c23f(_0x18b2('0x58'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f(_0x18b2('0xf6'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f(_0x18b2('0x108'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f('isAdded',_0x37062e,_0x5db7f2,_0x3f0a5a);for(const _0x44b07d of _0x45e767[_0x37062e][_0x18b2('0xbf')]){_0x2dd08c['get'](_0x44b07d)['end']=_0x3f0a5a;}}for(const [_0x1b405f,_0x31d146]of _0x2dd08c){const _0x269fc8=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x119')](_0x31d146[_0x18b2('0x61')],_0x31d146['end']);_0x40aa95[_0x18b2('0x38')][_0x18b2('0x3d')](_0x1b405f,_0x269fc8);}return _0x4745e7[_0x18b2('0xe4')]((_0x437929,_0x504b29)=>{const _0x1f6dbc=_0x40aa95[_0x18b2('0x38')]['get']('revision:'+_0x437929['id']),_0x594756=_0x40aa95[_0x18b2('0x38')][_0x18b2('0xeb')](_0x18b2('0xf5')+_0x504b29['id']);return _0x1f6dbc[_0x18b2('0x61')][_0x18b2('0x9d')](_0x594756['start'])?-0x1:_0x1f6dbc[_0x18b2('0x61')][_0x18b2('0xa')](_0x594756[_0x18b2('0x61')])?0x1:_0x1f6dbc['end'][_0x18b2('0x9d')](_0x594756['end'])?-0x1:_0x1f6dbc[_0x18b2('0xa0')][_0x18b2('0xa')](_0x594756['end'])?0x1:_0x18b2('0x10e')===_0x437929['type']?-0x1:0x1;}),{'root':_0x40aa95,'changes':_0x4745e7};function _0x45c23f(_0x1c0cc1,_0x252302,_0x478f9d,_0xbfc321){const _0x5d55f6=!!_0x45e767[_0x252302][_0x1c0cc1],_0x2adca8=_0x5d55f6?_0x45e767[_0x252302][_0x1c0cc1][_0x18b2('0x2e')]:null,_0x19bc0e=_0x252302===_0x45e767[_0x18b2('0xb6')]-0x1,_0x1c1696=_0x5cdf10[_0x1c0cc1][0x0],_0x4a4774=_0x5d3c0b[_0x18b2('0x73')](_0x45e767[_0x252302][_0x18b2('0x3b')]);!_0x163bc5[_0x1c0cc1]&&_0x5d55f6?_0x163bc5[_0x1c0cc1]={'start':_0x478f9d,'tapeItem':_0x45e767[_0x252302],'userId':_0x2adca8,'type':_0x1c0cc1}:_0x163bc5[_0x1c0cc1]&&!_0x5d55f6?(_0x163bc5[_0x1c0cc1]['end']=_0x478f9d,_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]=null):_0x163bc5[_0x1c0cc1]&&_0x5d55f6&&_0x163bc5[_0x1c0cc1][_0x18b2('0x2e')]!==_0x2adca8&&(_0x163bc5[_0x1c0cc1][_0x18b2('0xa0')]=_0x478f9d,_0x1c1696&&_0x1c1696[_0x18b2('0x2e')]===_0x163bc5[_0x1c0cc1][_0x18b2('0x2e')]||_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]={'start':_0x478f9d,'tapeItem':_0x45e767[_0x252302],'userId':_0x2adca8,'type':_0x1c0cc1}),_0x163bc5[_0x1c0cc1]&&_0x4a4774&&(_0x18b2('0xdb')!==_0x45e767[_0x252302][_0x18b2('0x68')]||_0x1c1696&&_0x1c1696[_0x18b2('0x2e')]===_0x2adca8||_0x5cdf10[_0x1c0cc1][_0x18b2('0x47')]({'userId':_0x2adca8,'object':_0x45e767[_0x252302][_0x18b2('0x3b')],'change':_0x163bc5[_0x1c0cc1]}),_0x18b2('0xa8')===_0x45e767[_0x252302][_0x18b2('0x68')]&&_0x1c1696&&_0x1c1696['object']===_0x45e767[_0x252302][_0x18b2('0x3b')]&&(_0x5cdf10[_0x1c0cc1][_0x18b2('0x63')](),_0x163bc5[_0x1c0cc1]=_0x1c1696[_0x18b2('0x33')])),_0x163bc5[_0x1c0cc1]&&_0x19bc0e&&(_0x163bc5[_0x1c0cc1][_0x18b2('0xa0')]=_0xbfc321,_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]=null);}function _0x50dff1({start:_0x542e20,end:_0x3f0ec3,tapeItem:_0x302903,userId:_0x5de7a1,type:_0x55c966}){const _0x1e1df4=_0x302903[_0x18b2('0x3b')],_0x3ca281=_0x16b0ed[_0x18b2('0x26')][_0x18b2('0x1f')](_0x1e1df4)&&!_0x16b0ed[_0x18b2('0x26')][_0x18b2('0x8a')](_0x1e1df4),_0x204253=_0x542e20['nodeAfter']==_0x3f0ec3[_0x18b2('0x62')]&&_0x3f0ec3['isAtStart'];if(_0x3ca281&&_0x204253)return;const _0x26d50e=_0x16b0ed[_0x18b2('0x119')](_0x542e20,_0x3f0ec3),_0x5eba75=_0x5581c2[_0x18b2('0xeb')](_0x5de7a1),_0x30a570=new _0xc3ab36({'author':_0x5eba75,'type':_0x18b2('0x3c')==_0x55c966||_0x18b2('0xf6')==_0x55c966?'add':_0x18b2('0xf4'),'data':{'isSuggestion':_0x18b2('0xf6')==_0x55c966||_0x18b2('0x58')==_0x55c966},'createdAt':new Date(),'rootName':_0x33f0cb});_0x4745e7[_0x18b2('0x101')](_0x30a570),_0x40aa95['markers'][_0x18b2('0x3d')](_0x18b2('0xf5')+_0x30a570['id'],_0x26d50e);}function _0x45ad38(_0x4d8876,_0x486b44){const _0x3cbfe7=_0x4d8876['getAttributes'](),_0x1ab6e7=_0x486b44[_0x18b2('0x1e')]();for(const _0x2ea26b of _0x3cbfe7){if(_0x2ea26b[0x1]!==_0x486b44[_0x18b2('0x8f')](_0x2ea26b[0x0]))return!0x1;_0x1ab6e7[_0x18b2('0x7')]();}return _0x1ab6e7['next']()[_0x18b2('0xe6')];}}[_0x18b2('0x22')](){this[_0x18b2('0xe0')][_0x18b2('0xdd')]['for'](_0x18b2('0x110'))['dataToMarker']({'view':_0x18b2('0xef')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x31'))[_0x18b2('0x114')]({'model':_0x18b2('0xef'),'view':_0x124752=>{const _0x1b4310=_0x124752[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1],_0xe1b380=this[_0x18b2('0x20')](_0x1b4310);if(!_0xe1b380)return null;const _0x5df711='add'==_0xe1b380[_0x18b2('0x68')]?_0x18b2('0x5b'):_0x18b2('0x9e'),_0x598503=[_0x18b2('0xae'),_0x18b2('0x77')+_0x5df711];return _0xe1b380[_0x18b2('0x8')]['isSuggestion']&&_0x598503['push']('ck-suggestion-marker-'+_0x5df711+'-new'),this[_0x18b2('0x111')]==_0xe1b380&&_0x598503['push'](_0x18b2('0xd9')),{'classes':_0x598503,'attributes':{'data-change-id':_0x1b4310}};}}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))[_0x18b2('0x10e')](_0xf75691=>{_0xf75691['on'](_0x18b2('0x46'),(_0x1c2695,_0x2691a7,_0x154f6b)=>{const _0x5a33c3=_0x2691a7[_0x18b2('0xab')][_0x18b2('0x4a')](0x0);if(!_0x5a33c3||!_0x5a33c3['is']('element',_0x18b2('0x11a')))return;if(!_0x154f6b['consumable'][_0x18b2('0xba')](_0x5a33c3,{'attributes':[_0x18b2('0x11d'),_0x18b2('0x45')]}))return;const _0x11ce5d=_0x2691a7[_0x18b2('0x93')][_0x18b2('0x61')][_0x18b2('0xe9')];_0x154f6b[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x11d'),_0x5a33c3['getAttribute'](_0x18b2('0x11d')),_0x11ce5d),_0x154f6b[_0x18b2('0x102')]['setAttribute']('vid_end',_0x5a33c3[_0x18b2('0x8f')](_0x18b2('0x45')),_0x11ce5d);},{'priority':_0x18b2('0x57')});}),this['editor'][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))[_0x18b2('0x10e')](_0xc9aed2=>{_0xc9aed2['on'](_0x18b2('0xc8'),(_0x4bdc0b,_0x37b112,_0x3d7701)=>{if(!_0x3d7701[_0x18b2('0xc')]['consume'](_0x37b112[_0x18b2('0xab')],{'attributes':[_0x18b2('0x11d'),_0x18b2('0x45')]}))return;if(_0x37b112['modelRange'][_0x18b2('0x3e')])return;const _0x957606=_0x37b112['modelRange'][_0x18b2('0x61')][_0x18b2('0xe9')];_0x957606['hasAttribute'](_0x18b2('0x11d'))||_0x957606[_0x18b2('0x34')]('vid')||(_0x3d7701[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x11d'),_0x37b112[_0x18b2('0xab')][_0x18b2('0x8f')](_0x18b2('0x11d')),_0x957606),_0x3d7701[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x45'),_0x37b112['viewItem']['getAttribute'](_0x18b2('0x45')),_0x957606));},{'priority':_0x18b2('0x57')});}),this[_0x18b2('0xe0')]['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':_0x18b2('0x10f'),'attributes':{'vid':!0x0}},'model':{'key':_0x18b2('0x18'),'value':_0xf6cad9=>_0xf6cad9[_0x18b2('0x8f')](_0x18b2('0x18'))}}),this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x26')]['on'](_0x18b2('0x89'),(_0x37e9f7,[,_0x433eb4])=>{[_0x18b2('0x11d'),_0x18b2('0x45'),'vid'][_0x18b2('0xb8')](_0x433eb4)&&(_0x37e9f7['return']=!0x0,_0x37e9f7[_0x18b2('0xd4')]());},{'priority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')]['conversion'][_0x18b2('0x6c')](_0x18b2('0x103'))[_0x18b2('0x10e')](_0x2c4cc1=>{_0x2c4cc1['on']('attribute:vid',(_0x301cfc,_0x22b864,_0x8cea44)=>{if('\x20'!=_0x22b864['item'][_0x18b2('0x8')]||_0x22b864[_0x18b2('0x3b')][_0x18b2('0x62')]['maxOffset']>0x1)return;if(!_0x8cea44[_0x18b2('0xc')][_0x18b2('0xba')](_0x22b864[_0x18b2('0x3b')],_0x301cfc[_0x18b2('0xd1')]))return;const _0x4e1b5a=_0x8cea44['writer'],_0x288375=_0x8cea44[_0x18b2('0x1c')][_0x18b2('0x0')](_0x22b864[_0x18b2('0x32')]);_0x4e1b5a[_0x18b2('0xac')](_0x288375,_0x4e1b5a[_0x18b2('0x1b')](_0x18b2('0x10f')));});}),this[_0x18b2('0xe0')]['conversion'][_0x18b2('0x6c')](_0x18b2('0x103'))[_0x18b2('0x96')]({'model':'revision'}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf7'),function(_0x33d201){const _0x1408cf=_0x33d201[_0x18b2('0x106')]['get'](_0x18b2('0xbc'));return(_0x4520f8,_0x4a6c0d,_0x3658dc)=>{const _0x259af8=_0x4a6c0d[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1],_0x1f5c35=_0x1408cf['_getChangeFromId'](_0x259af8);if(!_0x1f5c35)return null;const _0x407448=_0x18b2('0x10e')==_0x1f5c35['type']?_0x18b2('0xd3'):_0x18b2('0x8e');if(!_0x3658dc[_0x18b2('0xc')][_0x18b2('0xc1')](_0x4a6c0d[_0x18b2('0x109')],_0x4520f8['name']))return;const _0x452ae4=_0x4a6c0d[_0x18b2('0x109')]['getWalker'](),_0x528159=_0x4a6c0d[_0x18b2('0x109')][_0x18b2('0x61')],_0x3f1bd3=_0x33d201[_0x18b2('0xfb')]['schema'];let _0x34445e=null,_0x33d4a2=null,_0x2bd5c=!0x1,_0x18a873=!0x1;for(const _0x2357f6 of _0x452ae4){const _0x5904e6=_0x2357f6[_0x18b2('0x3b')];_0x2bd5c=_0x2bd5c||_0x3f1bd3[_0x18b2('0xce')](_0x5904e6);const _0x42e246=_0x3658dc[_0x18b2('0x1c')][_0x18b2('0x5e')](_0x5904e6);if(_0x42e246&&_0x42e246[_0x18b2('0xa7')](_0x18b2('0xc9')))return;_0x18b2('0xa8')==_0x2357f6[_0x18b2('0x68')]&&(_0x3f1bd3[_0x18b2('0x1f')](_0x5904e6)&&!_0x3f1bd3[_0x18b2('0x8a')](_0x5904e6)&&(_0x5904e6['nextSibling']||_0x528159[_0x18b2('0x118')]?_0x34445e&&_0x34445e[_0x18b2('0x62')]==_0x5904e6||(_0x34445e=_0x5904e6,_0x5683ee(_0x2357f6[_0x18b2('0x11b')]),_0x18a873=!0x0):_0x33d4a2=_0x33d4a2||_0x2357f6[_0x18b2('0x11b')]));}function _0x5683ee(_0x326e98){const _0x195521=_0x3658dc[_0x18b2('0x102')][_0x18b2('0x5d')](_0x18b2('0x10f'),{'class':'ck-suggestion-marker-'+_0x407448}),_0x2131c5=_0x3658dc['mapper'][_0x18b2('0x75')](_0x326e98);_0x1f5c35[_0x18b2('0x8')][_0x18b2('0x64')]&&_0x3658dc[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0x77')+_0x407448+_0x18b2('0x52'),_0x195521),_0x1408cf[_0x18b2('0x111')]==_0x1f5c35&&_0x3658dc[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0xd9'),_0x195521),_0x3658dc[_0x18b2('0x102')][_0x18b2('0x88')](_0x2131c5,_0x195521),_0x3658dc[_0x18b2('0x1c')]['bindElementToMarker'](_0x195521,_0x4a6c0d[_0x18b2('0xfc')]);}_0x2bd5c||_0x18a873||!_0x33d4a2||_0x5683ee(_0x33d4a2);};}(this[_0x18b2('0xe0')]),{'priority':_0x18b2('0x53')}),this[_0x18b2('0xe0')]['editing'][_0x18b2('0x90')]['on']('removeMarker:revision',(_0x4dedb2,_0x227dd4,_0x494ffa)=>{const _0xea77fd=_0x494ffa[_0x18b2('0x1c')]['markerNameToElements'](_0x227dd4['markerName']);if(_0xea77fd)for(const _0x3de989 of _0xea77fd)(_0x3de989['hasClass'](_0x18b2('0x1a'))||_0x3de989['hasClass']('ck-suggestion-marker-merge'))&&(_0x494ffa[_0x18b2('0x1c')]['unbindElementFromMarkerName'](_0x3de989,_0x227dd4['markerName']),_0x494ffa[_0x18b2('0x102')][_0x18b2('0xf4')](_0x3de989));},{'priority':'high'}),this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf7'),(_0x1afbf6,_0x119e1f,_0x1f1bc2)=>{const _0x3c3ec7=_0x119e1f['markerName']['split'](':')[0x1],_0x3c2d85=this['_getChangeFromId'](_0x3c3ec7);if(!_0x3c2d85)return null;const _0x3473d4=_0x18b2('0x10e')==_0x3c2d85[_0x18b2('0x68')]?_0x18b2('0xd3'):_0x18b2('0x8e');if(_0x1f1bc2[_0x18b2('0xc')][_0x18b2('0xc1')](_0x119e1f['markerRange'],_0x1afbf6[_0x18b2('0xd1')]))for(const _0x164bb9 of _0x119e1f[_0x18b2('0x109')][_0x18b2('0x54')]()){if(!_0x164bb9['is'](_0x18b2('0xc8'),'softBreak'))continue;const _0x107f36=_0x1f1bc2['writer']['createUIElement'](_0x18b2('0x10f'),{'class':_0x18b2('0x77')+_0x3473d4}),_0x27c6f3=_0x1f1bc2['mapper'][_0x18b2('0x75')](this[_0x18b2('0xe0')][_0x18b2('0xfb')]['createPositionBefore'](_0x164bb9));_0x3c2d85[_0x18b2('0x8')][_0x18b2('0x64')]&&_0x1f1bc2[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0x77')+_0x3473d4+_0x18b2('0x52'),_0x107f36),this[_0x18b2('0x111')]==_0x3c2d85&&_0x1f1bc2[_0x18b2('0x102')]['addClass'](_0x18b2('0xd9'),_0x107f36),_0x1f1bc2[_0x18b2('0x102')][_0x18b2('0x88')](_0x27c6f3,_0x107f36),_0x1f1bc2[_0x18b2('0x1c')][_0x18b2('0xb9')](_0x107f36,_0x119e1f[_0x18b2('0xfc')]);}},{'priority':'high'}),this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')]['on'](_0x18b2('0x33'),()=>{this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0x33')](_0xc9de69=>{for(const _0x5be9db of this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')]['getRootNames']()){const _0x44c1e0=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0x28')](_0x5be9db),_0x5513bb=this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')]['getRoot'](_0x5be9db);if(_0x5513bb){const _0x2af9c4=_0x44c1e0['getAttribute']('revisionHistoryAttachChange');if(_0xc9de69[_0x18b2('0xe7')](_0x18b2('0x4e'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')](_0x18b2('0xcf'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')](_0x18b2('0x10d'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')]('ck-revision-history-root--active',_0x5513bb),_0x2af9c4){const _0x19b734=this['_getChangeFromId'](_0x2af9c4);if(!_0x19b734)return null;_0xc9de69[_0x18b2('0x42')](_0x18b2('0x4e'),_0x2af9c4,_0x5513bb),_0xc9de69[_0x18b2('0x83')]('ck-revision-history-root-'+_0x19b734[_0x18b2('0x68')],_0x5513bb),this[_0x18b2('0x111')]==_0x19b734&&_0xc9de69[_0x18b2('0x83')](_0x18b2('0x4c'),_0x5513bb);}}}});}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')]('upcast')[_0x18b2('0x43')]({'view':_0x18b2('0x69'),'model':_0x23b3ce=>_0x18b2('0x107')+_0x23b3ce,'converterPriority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))['dataToMarker']({'view':_0x18b2('0x9c'),'model':_0x55ea98=>_0x18b2('0x3a')+_0x55ea98,'converterPriority':_0x18b2('0xfe')}),this['editor'][_0x18b2('0xdd')][_0x18b2('0x6c')]('dataDowncast')[_0x18b2('0x96')]({'model':'revision-suggestion','view':_0x455f7d=>({'name':_0x18b2('0xcc')+_0x455f7d,'group':_0x18b2('0x100')}),'converterPriority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')]['for'](_0x18b2('0x31'))[_0x18b2('0x114')]({'model':_0x18b2('0x100'),'view':_0x549012=>{const _0x103878=_0x549012[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1];return _0x18b2('0x5b')!=_0x103878&&'deletion'!=_0x103878?null:{'classes':[_0x18b2('0xa5'),_0x18b2('0x70')+_0x103878]};}}),this[_0x18b2('0xe0')][_0x18b2('0x30')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Y(this[_0x18b2('0xe0')],_0x18b2('0x8e')),{'priority':_0x18b2('0x53')}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf9'),Y(this['editor'],'split'),{'priority':'high'}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0x59'),(_0x4c9ef5,_0x42d562,_0xd0db9c)=>{const _0x3f7bfe=_0xd0db9c[_0x18b2('0x1c')][_0x18b2('0xb')](_0x42d562[_0x18b2('0xfc')]);if(_0x3f7bfe)for(const _0x2a1363 of _0x3f7bfe)_0x2a1363['is']('uiElement')&&(_0xd0db9c['mapper']['unbindElementFromMarkerName'](_0x2a1363,_0x42d562[_0x18b2('0xfc')]),_0xd0db9c[_0x18b2('0x102')][_0x18b2('0xf4')](_0x2a1363));},{'priority':_0x18b2('0x53')});}[_0x18b2('0x20')](_0x37f944){return this['_changeIdToChange'][_0x18b2('0xeb')](_0x37f944);}[_0x18b2('0x56')](_0x23d79e){return this[_0x18b2('0x5a')]&&this[_0x18b2('0x5a')][_0x18b2('0xaf')](),this[_0x18b2('0x5a')]=new _0x1321c7(this[_0x18b2('0xe0')][_0x18b2('0x113')],_0x23d79e),this[_0x18b2('0x5a')];}['_initInteractions'](){this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')][_0x18b2('0x6f')]['observeMarkers'](_0x18b2('0xef')),this['on']('change:activeView',(_0x3adfb3,_0x255255,_0x116786,_0x20a9db)=>{_0x20a9db&&this[_0x18b2('0x51')][_0x18b2('0xf4')](_0x20a9db),_0x116786&&(this[_0x18b2('0x51')][_0x18b2('0x10e')]({'view':_0x116786,'stackId':_0x18b2('0xd0'),'position':{'target':()=>{const _0x54e433=this['editor'][_0x18b2('0x30')],_0x2c44dc=this[_0x18b2('0x20')](_0x116786[_0x18b2('0x9a')]);let _0x11d5c2;if(_0x2c44dc[_0x18b2('0x8')][_0x18b2('0x5c')]){const _0x77dcc0=_0x54e433[_0x18b2('0xd6')]['getDomRoot'](_0x2c44dc[_0x18b2('0xaa')]);_0x11d5c2=Array['from'](_0x77dcc0[_0x18b2('0x35')]());}else{const _0x5a1901=this[_0x18b2('0xe0')]['model'][_0x18b2('0x38')][_0x18b2('0xeb')](_0x18b2('0xf5')+_0x116786[_0x18b2('0x9a')]);_0x11d5c2=Array[_0x18b2('0x7c')](_0x54e433[_0x18b2('0x1c')][_0x18b2('0xb')](_0x5a1901[_0x18b2('0xd1')]))[_0x18b2('0x98')](_0x2b2240=>_0x54e433[_0x18b2('0xd6')][_0x18b2('0x23')]['mapViewToDom'](_0x2b2240))[_0x18b2('0x98')](_0x5b090c=>Array['from'](_0x5b090c[_0x18b2('0x35')]()))[_0x18b2('0xb5')]();}if(!this[_0x18b2('0xff')])return _0x11d5c2[0x0];return _0x11d5c2[_0x18b2('0x7f')](_0x27a3dc=>_0x27a3dc[_0x18b2('0xea')]-0x3<=this[_0x18b2('0xff')]['y']&&_0x27a3dc['bottom']+0x3>=this[_0x18b2('0xff')]['y']&&_0x27a3dc['left']-0x3<=this[_0x18b2('0xff')]['x']&&_0x27a3dc[_0x18b2('0xc3')]+0x3>=this[_0x18b2('0xff')]['x'])||_0x11d5c2[0x0];}}}),this['_balloon'][_0x18b2('0x105')]('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x356f2d,_0x4b81c4,_0x305c5e,_0x23039b)=>{this[_0x18b2('0xc0')]=_0x305c5e?this[_0x18b2('0x56')](_0x305c5e):null,this[_0x18b2('0xe0')][_0x18b2('0xfb')]['change'](()=>{const _0x122615=this[_0x18b2('0xe0')][_0x18b2('0x30')];_0x23039b&&(_0x23039b[_0x18b2('0x8')][_0x18b2('0x5c')]?_0x122615[_0x18b2('0xd6')][_0x18b2('0x33')](_0x24bf14=>{_0x24bf14[_0x18b2('0xa6')](_0x18b2('0x4c'),_0x122615[_0x18b2('0xd6')]['document'][_0x18b2('0x28')](_0x23039b[_0x18b2('0xaa')]));}):_0x122615[_0x18b2('0x66')]('revision:'+_0x23039b['id'])),_0x305c5e&&(_0x305c5e[_0x18b2('0x8')][_0x18b2('0x5c')]?_0x122615[_0x18b2('0xd6')][_0x18b2('0x33')](_0x52c2f1=>{_0x52c2f1[_0x18b2('0x83')](_0x18b2('0x4c'),_0x122615[_0x18b2('0xd6')]['document'][_0x18b2('0x28')](_0x305c5e['rootName']));}):_0x122615[_0x18b2('0x66')](_0x18b2('0xf5')+_0x305c5e['id']));});}),this['listenTo'](this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')]['document'],_0x18b2('0xbd'),(_0x2de010,_0x4afdc8)=>{if(this[_0x18b2('0x111')])return;const _0x4b5375=this[_0x18b2('0xe8')](_0x4afdc8[_0x18b2('0xed')]),_0xadadd2=this[_0x18b2('0xad')][_0x18b2('0xeb')](_0x4b5375);_0xadadd2?(this[_0x18b2('0xff')]={'x':_0x4afdc8['domEvent']['x'],'y':_0x4afdc8[_0x18b2('0x2a')]['y']},this['activeView']=this[_0x18b2('0x56')](_0xadadd2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this[_0x18b2('0xe3')](this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')],_0x18b2('0xb7'),(_0x4a1cb2,_0x5e0f2e)=>{const _0x3fe33e=this['_findChangeIdFromDomTarget'](_0x5e0f2e[_0x18b2('0xed')]),_0x33db06=this['_changeIdToChange'][_0x18b2('0xeb')](_0x3fe33e);_0x33db06?(this['_activeViewTarget']={'x':_0x5e0f2e['domEvent']['x'],'y':_0x5e0f2e['domEvent']['y']},_0x33db06===this[_0x18b2('0x111')]?this[_0x18b2('0x51')][_0x18b2('0x12')]():this[_0x18b2('0x111')]=_0x33db06):(this[_0x18b2('0xff')]=null,this[_0x18b2('0x111')]=null);});}['_findChangeIdFromDomTarget'](_0x5a697c){do{const _0x1b2b83=_0x5a697c[_0x18b2('0x8f')]('data-change-id');if(_0x1b2b83)return _0x1b2b83;_0x5a697c=_0x5a697c[_0x18b2('0x62')];}while(_0x5a697c);return null;}[_0x18b2('0xf1')](){this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x33')](_0x44fc51=>{for(const _0x400d02 of this[_0x18b2('0xe0')]['model']['markers'])_0x44fc51[_0x18b2('0x39')](_0x400d02);});}}function Y(_0x3adefc,_0x3c752c){return(_0xc08dfd,_0x54c8de,_0x1f6d59)=>{if(!_0x1f6d59[_0x18b2('0xc')][_0x18b2('0xc1')](_0x54c8de[_0x18b2('0x109')],_0xc08dfd[_0x18b2('0xd1')]))return;const _0x21be28=_0x54c8de[_0x18b2('0x109')][_0x18b2('0xdf')](),_0x4a4dc1=_0x54c8de[_0x18b2('0x109')][_0x18b2('0x61')],_0x3b4b3d=_0x3adefc[_0x18b2('0xfb')][_0x18b2('0x26')];let _0xb68306=null,_0x44fb30=null,_0x336286=!0x1,_0x4b9b64=!0x1;for(const _0x26f472 of _0x21be28){const _0x5528fe=_0x26f472[_0x18b2('0x3b')];_0x336286=_0x336286||_0x3b4b3d[_0x18b2('0xce')](_0x5528fe);const _0x4c2ecb=_0x1f6d59[_0x18b2('0x1c')][_0x18b2('0x5e')](_0x5528fe);if(_0x4c2ecb&&_0x4c2ecb[_0x18b2('0xa7')](_0x18b2('0xc9')))return;_0x18b2('0xa8')==_0x26f472[_0x18b2('0x68')]&&(_0x3b4b3d[_0x18b2('0x1f')](_0x5528fe)&&!_0x3b4b3d[_0x18b2('0x8a')](_0x5528fe)&&(_0x5528fe[_0x18b2('0x6a')]||_0x4a4dc1[_0x18b2('0x118')]?_0xb68306&&_0xb68306[_0x18b2('0x62')]==_0x5528fe||(_0xb68306=_0x5528fe,_0x18e501(_0x26f472[_0x18b2('0x11b')]),_0x4b9b64=!0x0):_0x44fb30=_0x44fb30||_0x26f472[_0x18b2('0x11b')]));}function _0x18e501(_0x17227b){const _0x1870f8=_0x1f6d59['mapper'][_0x18b2('0x75')](_0x17227b),_0x1f5020=_0x1f6d59[_0x18b2('0x102')][_0x18b2('0x5d')](_0x18b2('0x10f'),{'class':'ck-suggestion-preview-marker-'+_0x3c752c});_0x1f6d59[_0x18b2('0x102')][_0x18b2('0x88')](_0x1870f8,_0x1f5020),_0x1f6d59[_0x18b2('0x1c')][_0x18b2('0xb9')](_0x1f5020,_0x54c8de[_0x18b2('0xfc')]);}_0x336286||_0x4b9b64||!_0x44fb30||_0x18e501(_0x44fb30);};}export class RestoreRevisionCommand extends _0xcfbd88{constructor(_0x533371){super(_0x533371);const _0x5d2db9=_0x533371['plugins'][_0x18b2('0xeb')](w);this[_0x18b2('0x87')]=!0x1,this[_0x18b2('0xe3')](_0x5d2db9,_0x18b2('0x91'),()=>this[_0x18b2('0x37')]()),this[_0x18b2('0xe3')](_0x5d2db9,'change:isEnabled',()=>this[_0x18b2('0x37')]());}[_0x18b2('0x10c')](){const _0x2e1c80=this[_0x18b2('0xe0')],_0x2db514=_0x2e1c80[_0x18b2('0x106')][_0x18b2('0xeb')](w),_0x4b09d2=_0x2db514[_0x18b2('0xda')]?_0x2db514[_0x18b2('0x5')][_0x18b2('0xd7')]:null;_0x2e1c80['config'][_0x18b2('0xeb')]('revisionHistory')[_0x18b2('0xa2')](_0x4b09d2);}[_0x18b2('0x37')](){const {isReady:_0x553991,isEnabled:_0x1e4a25}=this[_0x18b2('0xe0')][_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0xfa')]=_0x553991&&_0x1e4a25;}}export class ShowChangeCommand extends _0xcfbd88{constructor(_0x149836,{direction:_0x375cbe}){super(_0x149836);const _0x55887f=_0x149836[_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0x87')]=!0x1,this['_step']='forward'===_0x375cbe?0x1:-0x1,this[_0x18b2('0xe3')](_0x55887f,'change:isReady',()=>this[_0x18b2('0x37')]()),this[_0x18b2('0xe3')](_0x55887f,_0x18b2('0x36'),()=>this[_0x18b2('0x37')]());}[_0x18b2('0x10c')](){const _0x111a52=this[_0x18b2('0xe0')],_0x260bc0=_0x111a52[_0x18b2('0x106')][_0x18b2('0xeb')](w),{isNavigationMode:_0x33076b,currentChangeNumber:_0x271b77}=_0x260bc0;let _0x3ed00e;if(_0x260bc0[_0x18b2('0x111')]=_0x33076b?_0x260bc0[_0x18b2('0x5')]['changes'][_0x18b2('0xeb')](_0x271b77+this[_0x18b2('0x8b')]):_0x260bc0['diff'][_0x18b2('0xc7')][_0x18b2('0x8d')],_0x260bc0['activeChange']['data'][_0x18b2('0x5c')])_0x3ed00e=_0x111a52[_0x18b2('0x30')][_0x18b2('0xd6')]['getDomRoot'](_0x260bc0[_0x18b2('0x111')][_0x18b2('0xaa')]);else{const _0x247a2b=_0x111a52[_0x18b2('0xfb')]['markers']['get']('revision:'+_0x260bc0[_0x18b2('0x111')]['id']);_0x3ed00e=_0x4ee7ef(_0x111a52['editing'],_0x247a2b);}_0x413986({'target':_0x3ed00e,'viewportOffset':0x28});}[_0x18b2('0x37')](){const {isNavigationMode:_0x36d1f8,currentChangeNumber:_0x2d8682,numberOfChanges:_0x112863,isReady:_0x257beb,isEnabled:_0x15efb2}=this[_0x18b2('0xe0')][_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0xfa')]=!!(_0x15efb2&&_0x257beb&&_0x112863)&&(!_0x36d1f8||(0x1===this[_0x18b2('0x8b')]?_0x2d8682<_0x112863-0x1:_0x2d8682>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x248a=['isReady','bind','_action','add','threeVerticalDots','extendTemplate','class','ck-revision-history-sidebar__revision__actions','execute','find','isVisible','source','action','locale','name','button','map','bindTemplate','isEnabled','ck-on','Restore\x20this\x20revision','panelPosition','isActionsDropdownOpen','change:isActionsDropdownOpen','listView','first','buttonView'];(function(_0x28ffc6,_0x248a8a){const _0x17f5d7=function(_0x33c4d7){while(--_0x33c4d7){_0x28ffc6['push'](_0x28ffc6['shift']());}};_0x17f5d7(++_0x248a8a);}(_0x248a,0x110));const _0x17f5=function(_0x28ffc6,_0x248a8a){_0x28ffc6=_0x28ffc6-0x0;let _0x17f5d7=_0x248a[_0x28ffc6];return _0x17f5d7;};import{Collection as _0x252a03}from'ckeditor5/src/utils';import{icons as _0x287ee2}from'ckeditor5/src/core';import{Model as _0x4818cb,addListToDropdown as _0x1bbd69,createDropdown as _0x25de87}from'ckeditor5/src/ui';import{getTranslation as _0x128405}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x213782,_0x56b36b){const _0x8fba8f=_0x213782[_0x17f5('0xf')],_0x48166=_0x213782['locale'],_0x425d6c=_0x25de87(_0x48166);_0x425d6c[_0x17f5('0x13')]='sw';const _0x3a73bd=function(_0x534e6a,_0x2999bf){const _0x4f8e19=function(_0x369ee0,_0xa48a17){const _0x84d9ae=_0x369ee0[_0x17f5('0xb')],_0x570978={'Compare\x20against\x20selected':_0x128405(_0x84d9ae,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x128405(_0x84d9ae,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x128405(_0x84d9ae,_0x17f5('0x12'))};return _0xa48a17[_0x17f5('0xe')](_0x386830=>{const _0x4dee02=_0x570978[_0x386830[_0x17f5('0xc')]];return _0x4dee02&&_0x4dee02!==_0x386830[_0x17f5('0xc')]&&(_0x386830['name']=_0x4dee02),_0x386830;});}(_0x534e6a,_0x2999bf),_0x2b0724=new _0x252a03();for(const _0x58f16d of _0x4f8e19){const _0x123d6c={'type':_0x17f5('0xd'),'model':new _0x4818cb({'label':_0x58f16d[_0x17f5('0xc')],'class':_0x58f16d[_0x17f5('0x4')],'withText':!0x0,'_action':_0x58f16d[_0x17f5('0xa')]})};_0x123d6c['model'][_0x17f5('0x1a')](_0x17f5('0x10'))['to'](_0x534e6a,_0x17f5('0x14'),_0x38cd20=>'function'!=typeof _0x58f16d[_0x17f5('0x10')]||(!_0x38cd20||_0x58f16d[_0x17f5('0x10')](_0x534e6a))),_0x2b0724[_0x17f5('0x1')](_0x123d6c);}return _0x2b0724;}(_0x213782,_0x56b36b);return _0x213782[_0x17f5('0x1a')](_0x17f5('0x14'))['to'](_0x425d6c,'isOpen'),_0x425d6c[_0x17f5('0x18')]['set']({'label':_0x128405(_0x48166,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x287ee2[_0x17f5('0x2')]}),_0x425d6c[_0x17f5('0x3')]({'attributes':{'class':[_0x17f5('0x5'),_0x8fba8f['if'](_0x17f5('0x14'),_0x17f5('0x11'))]},'on':{'click':_0x8fba8f['to'](_0x52b2ab=>_0x52b2ab['stopPropagation']())}}),_0x425d6c['on'](_0x17f5('0x6'),_0x22843e=>{_0x213782[_0x17f5('0x19')]&&'function'==typeof _0x22843e[_0x17f5('0x9')][_0x17f5('0x0')]&&_0x22843e[_0x17f5('0x9')][_0x17f5('0x0')](_0x213782);}),_0x1bbd69(_0x425d6c,_0x3a73bd),_0x425d6c['listenTo'](_0x213782,_0x17f5('0x15'),(_0x483d8a,_0x29d093,_0xecfca6)=>{if(_0xecfca6)for(const _0x3243cb of _0x425d6c[_0x17f5('0x16')]['items']){const _0x1ddecb=_0x3243cb['children'][_0x17f5('0x17')],_0x7be209=_0x56b36b[_0x17f5('0x7')](_0x5b15f6=>_0x5b15f6[_0x17f5('0xa')]===_0x1ddecb['_action'])['isVisible'];_0x3243cb[_0x17f5('0x8')]=void 0x0===_0x7be209||_0x7be209(_0x213782);}}),_0x425d6c;}
23
+ const _0x31ef=['button','name','execute','function','listView','_action','isEnabled','class','items','find','add','isActionsDropdownOpen','buttonView','locale','bind','action','bindTemplate','Compare\x20against\x20selected','threeVerticalDots','ck-on','map','isVisible','Show\x20more\x20items','source','change:isActionsDropdownOpen','first','Name\x20this\x20revision','children','stopPropagation','extendTemplate','listenTo','panelPosition','model'];(function(_0x454f6c,_0x31ef05){const _0x3ad7f9=function(_0x1df4e5){while(--_0x1df4e5){_0x454f6c['push'](_0x454f6c['shift']());}};_0x3ad7f9(++_0x31ef05);}(_0x31ef,0x187));const _0x3ad7=function(_0x454f6c,_0x31ef05){_0x454f6c=_0x454f6c-0x0;let _0x3ad7f9=_0x31ef[_0x454f6c];return _0x3ad7f9;};import{Collection as _0x3d8c87}from'ckeditor5/src/utils';import{icons as _0x28a011}from'ckeditor5/src/core';import{Model as _0xbe0745,addListToDropdown as _0x2ce583,createDropdown as _0x21309}from'ckeditor5/src/ui';import{getTranslation as _0x6d830c}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x50cc84,_0xc4160a){const _0x347908=_0x50cc84[_0x3ad7('0x15')],_0x27fb31=_0x50cc84['locale'],_0x5f1a2e=_0x21309(_0x27fb31);_0x5f1a2e[_0x3ad7('0x3')]='sw';const _0x4e974f=function(_0x624f55,_0x38b48a){const _0x44c3dd=function(_0x2c6b83,_0x48e813){const _0x4f59c6=_0x2c6b83[_0x3ad7('0x12')],_0x155d45={'Compare\x20against\x20selected':_0x6d830c(_0x4f59c6,_0x3ad7('0x16')),'Name\x20this\x20revision':_0x6d830c(_0x4f59c6,_0x3ad7('0x1f')),'Restore\x20this\x20revision':_0x6d830c(_0x4f59c6,'Restore\x20this\x20revision')};return _0x48e813[_0x3ad7('0x19')](_0x188ca3=>{const _0x26a175=_0x155d45[_0x188ca3[_0x3ad7('0x6')]];return _0x26a175&&_0x26a175!==_0x188ca3[_0x3ad7('0x6')]&&(_0x188ca3[_0x3ad7('0x6')]=_0x26a175),_0x188ca3;});}(_0x624f55,_0x38b48a),_0x37c4e0=new _0x3d8c87();for(const _0x33524f of _0x44c3dd){const _0x243a07={'type':_0x3ad7('0x5'),'model':new _0xbe0745({'label':_0x33524f[_0x3ad7('0x6')],'class':_0x33524f[_0x3ad7('0xc')],'withText':!0x0,'_action':_0x33524f[_0x3ad7('0x14')]})};_0x243a07[_0x3ad7('0x4')][_0x3ad7('0x13')]('isEnabled')['to'](_0x624f55,_0x3ad7('0x10'),_0x469e79=>'function'!=typeof _0x33524f[_0x3ad7('0xb')]||(!_0x469e79||_0x33524f['isEnabled'](_0x624f55))),_0x37c4e0[_0x3ad7('0xf')](_0x243a07);}return _0x37c4e0;}(_0x50cc84,_0xc4160a);return _0x50cc84[_0x3ad7('0x13')]('isActionsDropdownOpen')['to'](_0x5f1a2e,'isOpen'),_0x5f1a2e[_0x3ad7('0x11')]['set']({'label':_0x6d830c(_0x27fb31,_0x3ad7('0x1b')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28a011[_0x3ad7('0x17')]}),_0x5f1a2e[_0x3ad7('0x1')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x347908['if'](_0x3ad7('0x10'),_0x3ad7('0x18'))]},'on':{'click':_0x347908['to'](_0x5f2bbe=>_0x5f2bbe[_0x3ad7('0x0')]())}}),_0x5f1a2e['on'](_0x3ad7('0x7'),_0x519043=>{_0x50cc84['isReady']&&_0x3ad7('0x8')==typeof _0x519043[_0x3ad7('0x1c')][_0x3ad7('0xa')]&&_0x519043[_0x3ad7('0x1c')][_0x3ad7('0xa')](_0x50cc84);}),_0x2ce583(_0x5f1a2e,_0x4e974f),_0x5f1a2e[_0x3ad7('0x2')](_0x50cc84,_0x3ad7('0x1d'),(_0xe78438,_0x548c70,_0x4b4e39)=>{if(_0x4b4e39)for(const _0x34d5cb of _0x5f1a2e[_0x3ad7('0x9')][_0x3ad7('0xd')]){const _0x1565da=_0x34d5cb[_0x3ad7('0x20')][_0x3ad7('0x1e')],_0x35556b=_0xc4160a[_0x3ad7('0xe')](_0x74d71c=>_0x74d71c[_0x3ad7('0x14')]===_0x1565da['_action'])[_0x3ad7('0x1a')];_0x34d5cb[_0x3ad7('0x1a')]=void 0x0===_0x35556b||_0x35556b(_0x50cc84);}}),_0x5f1a2e;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x79d3=['ck-revision-history-sidebar__revision-author__name','setTemplate','ck-revision-history-sidebar__revision-author','push','0\x200\x2011\x2010','set','Revision\x20author','name','Revision\x20creator'];(function(_0x32cb8c,_0x79d351){const _0x494c0a=function(_0x46b850){while(--_0x46b850){_0x32cb8c['push'](_0x32cb8c['shift']());}};_0x494c0a(++_0x79d351);}(_0x79d3,0x139));const _0x494c=function(_0x32cb8c,_0x79d351){_0x32cb8c=_0x32cb8c-0x0;let _0x494c0a=_0x79d3[_0x32cb8c];return _0x494c0a;};import{View as _0x52f7ef,IconView as _0x365ef0}from'ckeditor5/src/ui';import{getTranslation as _0x13484e}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x486aba from'../../../theme/icons/user.svg';export default class ti extends _0x52f7ef{constructor(_0x47ae6d,_0x220874,_0x54c9af){super(_0x47ae6d);const _0x2d1e7c=new _0x365ef0();_0x2d1e7c[_0x494c('0x7')]({'content':_0x486aba,'viewBox':_0x494c('0x6')});const _0x16aeec=['ck',_0x494c('0x4')];_0x54c9af&&_0x16aeec[_0x494c('0x5')]('ck-revision-history-sidebar__revision-author_creator');const _0x162cbe=[{'tag':'span','attributes':{'class':['ck',_0x494c('0x2')],'title':_0x13484e(_0x47ae6d,_0x54c9af?_0x494c('0x1'):_0x494c('0x8'))},'children':[_0x2d1e7c,_0x220874[_0x494c('0x0')]]}];this[_0x494c('0x3')]({'tag':'li','attributes':{'class':_0x16aeec},'children':_0x162cbe});}}
23
+ const _0x396b=['Revision\x20author','push','ck-revision-history-sidebar__revision-author','Revision\x20creator','span','ck-revision-history-sidebar__revision-author_creator','name'];(function(_0x3df82e,_0x396b61){const _0x5f0279=function(_0x1971ce){while(--_0x1971ce){_0x3df82e['push'](_0x3df82e['shift']());}};_0x5f0279(++_0x396b61);}(_0x396b,0x168));const _0x5f02=function(_0x3df82e,_0x396b61){_0x3df82e=_0x3df82e-0x0;let _0x5f0279=_0x396b[_0x3df82e];return _0x5f0279;};import{View as _0x17defa,IconView as _0x3842b8}from'ckeditor5/src/ui';import{getTranslation as _0x1ecaba}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x5c0860 from'../../../theme/icons/user.svg';export default class ti extends _0x17defa{constructor(_0x4a0f4e,_0x2c5546,_0x139dc3){super(_0x4a0f4e);const _0x5dbb27=new _0x3842b8();_0x5dbb27['set']({'content':_0x5c0860,'viewBox':'0\x200\x2011\x2010'});const _0x2117df=['ck',_0x5f02('0x6')];_0x139dc3&&_0x2117df[_0x5f02('0x5')](_0x5f02('0x2'));const _0x20a116=[{'tag':_0x5f02('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x1ecaba(_0x4a0f4e,_0x139dc3?_0x5f02('0x0'):_0x5f02('0x4'))},'children':[_0x5dbb27,_0x2c5546[_0x5f02('0x3')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2117df},'children':_0x20a116});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5079=['Revision\x20name','ck-revision-history-sidebar__revision-name','set'];(function(_0x4ff05f,_0x50794f){var _0x50b178=function(_0x111bae){while(--_0x111bae){_0x4ff05f['push'](_0x4ff05f['shift']());}};_0x50b178(++_0x50794f);}(_0x5079,0x1b4));var _0x50b1=function(_0x4ff05f,_0x50794f){_0x4ff05f=_0x4ff05f-0x0;var _0x50b178=_0x5079[_0x4ff05f];return _0x50b178;};import{LabeledFieldView as _0x4767bd}from'ckeditor5/src/ui';import{getTranslation as _0x99e715}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x4767bd{constructor(_0x2d68f8,_0x1e3afe){super(_0x2d68f8,_0x1e3afe),this[_0x50b1('0x1')]({'label':_0x99e715(_0x2d68f8,_0x50b1('0x2'))}),this['extendTemplate']({'tag':'span','attributes':{'class':[_0x50b1('0x0')]}});}}
23
+ var _0x356f=['extendTemplate','set','ck-revision-history-sidebar__revision-name','span','Revision\x20name'];(function(_0x53b936,_0x356fb3){var _0x38bd5a=function(_0x16cc03){while(--_0x16cc03){_0x53b936['push'](_0x53b936['shift']());}};_0x38bd5a(++_0x356fb3);}(_0x356f,0x1c4));var _0x38bd=function(_0x53b936,_0x356fb3){_0x53b936=_0x53b936-0x0;var _0x38bd5a=_0x356f[_0x53b936];return _0x38bd5a;};import{LabeledFieldView as _0x50f064}from'ckeditor5/src/ui';import{getTranslation as _0x2126a6}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x50f064{constructor(_0x393421,_0x3834ca){super(_0x393421,_0x3834ca),this[_0x38bd('0x4')]({'label':_0x2126a6(_0x393421,_0x38bd('0x2'))}),this[_0x38bd('0x3')]({'tag':_0x38bd('0x1'),'attributes':{'class':[_0x38bd('0x0')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bbf=['ck-revision-history-sidebar__revision__controls-wrapper','isSelected','bindTemplate','isActionsDropdownOpen','deselect','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision_selected','isConfirm','ck-revision-history-sidebar__revision','extendTemplate','bind','highlight','.ck-thread__remove-confirm','set','_revision','div','unshift','createdAt','revisionActionsView','setTemplate','creator','listenTo','ck-reset','value','setName','revisionNameView','srcElement','span','closest','render','authors','isEnabled','_createdAtFormatted','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision-authors','fire','isReady','select','name','ck-revision-history-sidebar__revision_highlighted','fieldView','ck-revision-history-sidebar__revision-wrapper','filter','ck-disabled','isHighlighted','from'];(function(_0x12617b,_0x5bbf83){const _0x45747c=function(_0xcd4d56){while(--_0xcd4d56){_0x12617b['push'](_0x12617b['shift']());}};_0x45747c(++_0x5bbf83);}(_0x5bbf,0xb1));const _0x4574=function(_0x12617b,_0x5bbf83){_0x12617b=_0x12617b-0x0;let _0x45747c=_0x5bbf[_0x12617b];return _0x45747c;};import{View as _0x549263,createLabeledInputText as _0xc50b5c}from'ckeditor5/src/ui';import{ConfirmMixin as _0x26ede3}from'ckeditor5-collaboration/src/collaboration-core';import _0xb8755c from'./revisionnameview';import _0x16ffb3 from'./revisionauthorview';import{dateToPrettyFormat as _0x826a60}from'./utils';import{createActionsDropdownView as _0x9d9c4f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x26ede3(_0x549263){constructor(_0x292609,_0x560781,_0x3a540d){super(_0x292609);const _0x46b0c1=this[_0x4574('0x9')],_0x520a06=function(_0x24a941,_0x5417d5){const _0x3d13a4=Array[_0x4574('0x6')](_0x5417d5[_0x4574('0x25')])[_0x4574('0x3')](_0x12f88a=>_0x12f88a!=_0x5417d5[_0x4574('0x1b')]);return _0x5417d5[_0x4574('0x1b')]&&_0x3d13a4[_0x4574('0x17')](_0x5417d5[_0x4574('0x1b')]),_0x3d13a4['map'](_0x35c3d4=>new _0x16ffb3(_0x24a941,_0x35c3d4,_0x35c3d4==_0x5417d5['creator']));}(_0x292609,_0x560781);this['id']=_0x560781['id'],this[_0x4574('0x15')]=_0x560781,this[_0x4574('0x11')](_0x4574('0x2d'),_0x4574('0x18'))['to'](_0x560781),this[_0x4574('0x11')](_0x4574('0x27'))['to'](this,_0x4574('0x18'),_0x9aeca5=>_0x9aeca5?_0x826a60(_0x292609['uiLanguage'],_0x9aeca5):void 0x0),this[_0x4574('0x14')](_0x4574('0x8'),!0x1),this[_0x4574('0x14')](_0x4574('0x5'),!0x1),this[_0x4574('0x14')](_0x4574('0xa'),!0x1),this[_0x4574('0x14')]('isReady',!0x1),this[_0x4574('0x14')](_0x4574('0x26'),!0x1),this[_0x4574('0x20')]=new _0xb8755c(_0x292609,_0xc50b5c),this['revisionNameView']['fieldView'][_0x4574('0x10')]({'attributes':{'maxlength':'220'}}),this[_0x4574('0x20')]['fieldView'][_0x4574('0x11')](_0x4574('0x1e'),'placeholder')['to'](this,_0x4574('0x2d'),_0x4574('0x27')),this[_0x4574('0x20')][_0x4574('0x11')](_0x4574('0x26'))['to'](this,_0x4574('0x8'),this,'isEnabled',(_0x133c60,_0x570226)=>_0x133c60&&_0x570226),this[_0x4574('0x19')]=_0x3a540d&&_0x3a540d['length']?_0x9d9c4f(this,_0x3a540d):'',this[_0x4574('0x19')]&&this[_0x4574('0x19')][_0x4574('0x11')](_0x4574('0x26'))['to'](this),this[_0x4574('0x1a')]({'tag':_0x4574('0x16'),'attributes':{'class':['ck',_0x4574('0x1d'),_0x4574('0x2'),_0x46b0c1['if'](_0x4574('0xe'),_0x4574('0x28'))]},'children':[{'tag':_0x4574('0x16'),'attributes':{'class':['ck','ck-reset',_0x4574('0xf'),_0x46b0c1['if'](_0x4574('0x26'),_0x4574('0x4'),_0xb446eb=>!_0xb446eb),_0x46b0c1['if'](_0x4574('0x8'),_0x4574('0xd')),_0x46b0c1['if'](_0x4574('0x5'),_0x4574('0x0')),_0x46b0c1['if'](_0x4574('0xa'),_0x4574('0xc'))]},'children':[this[_0x4574('0x20')],{'tag':_0x4574('0x22'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x46b0c1['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck',_0x4574('0x7')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4574('0x29')]},'children':_0x520a06}]},this[_0x4574('0x19')]],'on':{'click':_0x46b0c1['to'](_0x2850c2=>{_0x2850c2[_0x4574('0x21')][_0x4574('0x23')](_0x4574('0x13'))||this[_0x4574('0x2b')]&&this['isEnabled']&&this[_0x4574('0x2a')]('select',{'id':this['id']});})}}]});}[_0x4574('0x24')](){super['render']();const _0x170d02=this[_0x4574('0x20')][_0x4574('0x1')]['element'];this[_0x4574('0x1c')](_0x170d02,'change',()=>{this[_0x4574('0x2a')](_0x4574('0x1f'),{'id':this['id'],'name':_0x170d02[_0x4574('0x1e')]});});}[_0x4574('0x2c')](){this[_0x4574('0x8')]=!0x0;}[_0x4574('0xb')](){this[_0x4574('0x8')]=!0x1;}[_0x4574('0x12')](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
23
+ const _0xfe63=['set','isSelected','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','220','bindTemplate','creator','setTemplate','ck-revision-history-sidebar__revision_highlighted','element','bind','ck-reset','.ck-thread__remove-confirm','isConfirm','select','createdAt','isEnabled','fire','revisionNameView','span','ck-revision-history-sidebar__revision-wrapper','_revision','filter','unhighlight','highlight','uiLanguage','ck-revision-history-sidebar__revision','srcElement','_createdAtFormatted','isHighlighted','unshift','fieldView','isReady','ck-revision-history-sidebar__actions_dropdown_open','deselect','name','from','div','extendTemplate','render','isActionsDropdownOpen','revisionActionsView'];(function(_0x4f3b06,_0xfe630f){const _0x1deb49=function(_0x446958){while(--_0x446958){_0x4f3b06['push'](_0x4f3b06['shift']());}};_0x1deb49(++_0xfe630f);}(_0xfe63,0x1b1));const _0x1deb=function(_0x4f3b06,_0xfe630f){_0x4f3b06=_0x4f3b06-0x0;let _0x1deb49=_0xfe63[_0x4f3b06];return _0x1deb49;};import{View as _0x53e803,createLabeledInputText as _0x14a64a}from'ckeditor5/src/ui';import{ConfirmMixin as _0x360907}from'ckeditor5-collaboration/src/collaboration-core';import _0x23fa6 from'./revisionnameview';import _0x22cb50 from'./revisionauthorview';import{dateToPrettyFormat as _0xf034d9}from'./utils';import{createActionsDropdownView as _0x4a8416}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x360907(_0x53e803){constructor(_0x26690f,_0x28eba3,_0x4248d5){super(_0x26690f);const _0x5c435b=this[_0x1deb('0x16')],_0x110a37=function(_0x409b69,_0x2d1dc5){const _0x1633e2=Array[_0x1deb('0xc')](_0x2d1dc5['authors'])[_0x1deb('0x27')](_0x5bc5f1=>_0x5bc5f1!=_0x2d1dc5['creator']);return _0x2d1dc5['creator']&&_0x1633e2[_0x1deb('0x6')](_0x2d1dc5[_0x1deb('0x17')]),_0x1633e2['map'](_0x1e701c=>new _0x22cb50(_0x409b69,_0x1e701c,_0x1e701c==_0x2d1dc5['creator']));}(_0x26690f,_0x28eba3);this['id']=_0x28eba3['id'],this[_0x1deb('0x26')]=_0x28eba3,this[_0x1deb('0x1b')](_0x1deb('0xb'),_0x1deb('0x20'))['to'](_0x28eba3),this[_0x1deb('0x1b')](_0x1deb('0x4'))['to'](this,'createdAt',_0x1e5e9e=>_0x1e5e9e?_0xf034d9(_0x26690f[_0x1deb('0x1')],_0x1e5e9e):void 0x0),this[_0x1deb('0x12')]('isSelected',!0x1),this[_0x1deb('0x12')](_0x1deb('0x5'),!0x1),this[_0x1deb('0x12')](_0x1deb('0x10'),!0x1),this[_0x1deb('0x12')](_0x1deb('0x8'),!0x1),this['set'](_0x1deb('0x21'),!0x1),this['revisionNameView']=new _0x23fa6(_0x26690f,_0x14a64a),this[_0x1deb('0x23')]['fieldView'][_0x1deb('0xe')]({'attributes':{'maxlength':_0x1deb('0x15')}}),this[_0x1deb('0x23')][_0x1deb('0x7')][_0x1deb('0x1b')]('value','placeholder')['to'](this,_0x1deb('0xb'),_0x1deb('0x4')),this[_0x1deb('0x23')][_0x1deb('0x1b')](_0x1deb('0x21'))['to'](this,'isSelected',this,'isEnabled',(_0x757f83,_0x1bd4a6)=>_0x757f83&&_0x1bd4a6),this[_0x1deb('0x11')]=_0x4248d5&&_0x4248d5['length']?_0x4a8416(this,_0x4248d5):'',this['revisionActionsView']&&this['revisionActionsView'][_0x1deb('0x1b')](_0x1deb('0x21'))['to'](this),this[_0x1deb('0x18')]({'tag':_0x1deb('0xd'),'attributes':{'class':['ck','ck-reset',_0x1deb('0x25'),_0x5c435b['if'](_0x1deb('0x1e'),_0x1deb('0x14'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x1deb('0x1c'),_0x1deb('0x2'),_0x5c435b['if'](_0x1deb('0x21'),'ck-disabled',_0x1a88cd=>!_0x1a88cd),_0x5c435b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5c435b['if'](_0x1deb('0x5'),_0x1deb('0x19')),_0x5c435b['if'](_0x1deb('0x10'),_0x1deb('0x9'))]},'children':[this['revisionNameView'],{'tag':_0x1deb('0x24'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5c435b['to'](_0x1deb('0x4'))}]},{'tag':_0x1deb('0xd'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x110a37}]},this['revisionActionsView']],'on':{'click':_0x5c435b['to'](_0x58f515=>{_0x58f515[_0x1deb('0x3')]['closest'](_0x1deb('0x1d'))||this[_0x1deb('0x8')]&&this['isEnabled']&&this[_0x1deb('0x22')]('select',{'id':this['id']});})}}]});}[_0x1deb('0xf')](){super[_0x1deb('0xf')]();const _0xea2c0b=this['revisionNameView'][_0x1deb('0x7')][_0x1deb('0x1a')];this['listenTo'](_0xea2c0b,'change',()=>{this[_0x1deb('0x22')]('setName',{'id':this['id'],'name':_0xea2c0b['value']});});}[_0x1deb('0x1f')](){this['isSelected']=!0x0;}[_0x1deb('0xa')](){this[_0x1deb('0x13')]=!0x1;}[_0x1deb('0x0')](){this[_0x1deb('0x5')]=!0x0;}[_0x1deb('0x28')](){this[_0x1deb('0x5')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e12=['set','ck-hidden','isVisible','bindTemplate','ck-revision-history-sidebar__subrevision-collapser','click','span','_isCollapsed','false','true','button'];(function(_0x1d2d90,_0x1e127d){const _0x2c3018=function(_0x21b18c){while(--_0x21b18c){_0x1d2d90['push'](_0x1d2d90['shift']());}};_0x2c3018(++_0x1e127d);}(_0x1e12,0xde));const _0x2c30=function(_0x1d2d90,_0x1e127d){_0x1d2d90=_0x1d2d90-0x0;let _0x2c3018=_0x1e12[_0x1d2d90];return _0x2c3018;};import{View as _0x274df8}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x274df8{constructor(_0x56c8b3){super(_0x56c8b3);const _0x47ed5b=this[_0x2c30('0x1')];this[_0x2c30('0x9')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x2c30('0x4'),'attributes':{'class':['ck',_0x2c30('0x2'),_0x47ed5b['if'](_0x2c30('0x0'),_0x2c30('0xa'),_0x27ee6f=>!_0x27ee6f),_0x47ed5b['if'](_0x2c30('0x5'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x2c30('0x8'),'aria-pressed':_0x47ed5b['to']('_isCollapsed',_0x5df6c8=>_0x5df6c8?_0x2c30('0x6'):_0x2c30('0x7'))},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x47ed5b['to'](_0x2c30('0x3'))}});}['toggle'](){this[_0x2c30('0x5')]=!this[_0x2c30('0x5')];}}
23
+ const _0x4d7b=['true','_isCollapsed','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','span','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','button','ck-revision-history-sidebar__subrevision-collapser','false','toggle','set','ck-hidden','click'];(function(_0x3b6698,_0x4d7b09){const _0x2d8bb9=function(_0xe9347c){while(--_0xe9347c){_0x3b6698['push'](_0x3b6698['shift']());}};_0x2d8bb9(++_0x4d7b09);}(_0x4d7b,0x15d));const _0x2d8b=function(_0x3b6698,_0x4d7b09){_0x3b6698=_0x3b6698-0x0;let _0x2d8bb9=_0x4d7b[_0x3b6698];return _0x2d8bb9;};import{View as _0x30e74f}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x30e74f{constructor(_0x101097){super(_0x101097);const _0xebb4a7=this['bindTemplate'];this[_0x2d8b('0xc')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2d8b('0x7')]({'tag':_0x2d8b('0x5'),'attributes':{'class':['ck',_0x2d8b('0x9'),_0xebb4a7['if'](_0x2d8b('0x3'),_0x2d8b('0xd'),_0x5eda87=>!_0x5eda87),_0xebb4a7['if'](_0x2d8b('0x2'),_0x2d8b('0x6'))],'role':_0x2d8b('0x8'),'aria-pressed':_0xebb4a7['to']('_isCollapsed',_0x340bf2=>_0x340bf2?_0x2d8b('0xa'):_0x2d8b('0x1'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x2d8b('0x4')]}}],'on':{'click':_0xebb4a7['to'](_0x2d8b('0x0'))}});}[_0x2d8b('0xb')](){this[_0x2d8b('0x2')]=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x432f=['set','span','select','_createdAtFormatted','_parentRevisionId','isSelected','ck-revision-history-sidebar__revision','deselect','fire','setTemplate','createdAt','ck-revision-history-sidebar__revision_selected','bind','ck-reset','ck-revision-history-sidebar__revision__date','creator'];(function(_0x10f72f,_0x432f85){const _0x2f6790=function(_0x2e8e70){while(--_0x2e8e70){_0x10f72f['push'](_0x10f72f['shift']());}};_0x2f6790(++_0x432f85);}(_0x432f,0xab));const _0x2f67=function(_0x10f72f,_0x432f85){_0x10f72f=_0x10f72f-0x0;let _0x2f6790=_0x432f[_0x10f72f];return _0x2f6790;};import{View as _0x3d5294}from'ckeditor5/src/ui';import _0x46d841 from'./revisionauthorview';import{dateToPrettyFormat as _0x428d55}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3d5294{constructor(_0x99ffaf,_0x543c73,_0xe67d54){super(_0x99ffaf);const _0x36222b=this['bindTemplate'];this['id']=_0x543c73['id'],this[_0x2f67('0x1')](_0x2f67('0xf'))['to'](_0x543c73),this[_0x2f67('0x5')](_0x2f67('0xa'),!0x1),this[_0x2f67('0x1')]('_createdAtFormatted')['to'](this,_0x2f67('0xf'),_0x777511=>_0x777511?_0x428d55(_0x99ffaf['uiLanguage'],_0x777511):void 0x0),this[_0x2f67('0x9')]=_0xe67d54,this[_0x2f67('0xe')]({'tag':'div','attributes':{'class':['ck',_0x2f67('0x2'),_0x2f67('0xb'),'ck-revision-history-sidebar__subrevision',_0x36222b['if'](_0x2f67('0xa'),_0x2f67('0x0'))]},'children':[{'tag':_0x2f67('0x6'),'attributes':{'class':['ck',_0x2f67('0x3')]},'children':[{'text':_0x36222b['to'](_0x2f67('0x8'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x46d841(_0x99ffaf,_0x543c73[_0x2f67('0x4')],!0x0)]}],'on':{'click':_0x36222b['to'](this[_0x2f67('0x7')][_0x2f67('0x1')](this))}});}['select'](){this[_0x2f67('0xa')]=!0x0,this[_0x2f67('0xd')](_0x2f67('0x7'),{'parentId':this[_0x2f67('0x9')]});}[_0x2f67('0xc')](){this[_0x2f67('0xa')]=!0x1;}}
23
+ const _0x17c5=['isSelected','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__subrevision','bindTemplate','fire','set','deselect','uiLanguage','createdAt','select','ck-revision-history-sidebar__revision_selected','bind','span','creator','setTemplate','_createdAtFormatted','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision'];(function(_0x50139a,_0x17c558){const _0x6bfc04=function(_0x55ecc9){while(--_0x55ecc9){_0x50139a['push'](_0x50139a['shift']());}};_0x6bfc04(++_0x17c558);}(_0x17c5,0x1b4));const _0x6bfc=function(_0x50139a,_0x17c558){_0x50139a=_0x50139a-0x0;let _0x6bfc04=_0x17c5[_0x50139a];return _0x6bfc04;};import{View as _0x1d7e07}from'ckeditor5/src/ui';import _0xe8d692 from'./revisionauthorview';import{dateToPrettyFormat as _0x3b27d7}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x1d7e07{constructor(_0x4e570a,_0x11889c,_0x2dab6e){super(_0x4e570a);const _0x539ffe=this[_0x6bfc('0x11')];this['id']=_0x11889c['id'],this[_0x6bfc('0x7')]('createdAt')['to'](_0x11889c),this[_0x6bfc('0x1')](_0x6bfc('0xe'),!0x1),this[_0x6bfc('0x7')]('_createdAtFormatted')['to'](this,_0x6bfc('0x4'),_0x235047=>_0x235047?_0x3b27d7(_0x4e570a[_0x6bfc('0x3')],_0x235047):void 0x0),this['_parentRevisionId']=_0x2dab6e,this[_0x6bfc('0xa')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x6bfc('0xd'),_0x6bfc('0x10'),_0x539ffe['if'](_0x6bfc('0xe'),_0x6bfc('0x6'))]},'children':[{'tag':_0x6bfc('0x8'),'attributes':{'class':['ck',_0x6bfc('0xc')]},'children':[{'text':_0x539ffe['to'](_0x6bfc('0xb'))}]},{'tag':'ul','attributes':{'class':['ck',_0x6bfc('0xf')]},'children':[new _0xe8d692(_0x4e570a,_0x11889c[_0x6bfc('0x9')],!0x0)]}],'on':{'click':_0x539ffe['to'](this[_0x6bfc('0x5')][_0x6bfc('0x7')](this))}});}[_0x6bfc('0x5')](){this[_0x6bfc('0xe')]=!0x0,this[_0x6bfc('0x0')](_0x6bfc('0x5'),{'parentId':this['_parentRevisionId']});}[_0x6bfc('0x2')](){this[_0x6bfc('0xe')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5230=['toLocaleTimeString','toLocaleDateString','numeric'];(function(_0xba4a5e,_0x52300a){var _0x16073a=function(_0x4ce568){while(--_0x4ce568){_0xba4a5e['push'](_0xba4a5e['shift']());}};_0x16073a(++_0x52300a);}(_0x5230,0x94));var _0x1607=function(_0xba4a5e,_0x52300a){_0xba4a5e=_0xba4a5e-0x0;var _0x16073a=_0x5230[_0xba4a5e];return _0x16073a;};export function dateToPrettyFormat(_0x4a5efc,_0x10e57b){return _0x10e57b[_0x1607('0x0')](_0x4a5efc,{'month':'long','day':'numeric'})+',\x20'+_0x10e57b[_0x1607('0x2')](_0x4a5efc,{'hour':'numeric','minute':_0x1607('0x1')});}
23
+ var _0x1a07=['long','toLocaleDateString','numeric','toLocaleTimeString'];(function(_0xa3a6af,_0x1a07dc){var _0x2fda54=function(_0x4bb083){while(--_0x4bb083){_0xa3a6af['push'](_0xa3a6af['shift']());}};_0x2fda54(++_0x1a07dc);}(_0x1a07,0x8e));var _0x2fda=function(_0xa3a6af,_0x1a07dc){_0xa3a6af=_0xa3a6af-0x0;var _0x2fda54=_0x1a07[_0xa3a6af];return _0x2fda54;};export function dateToPrettyFormat(_0x534776,_0x8ed24f){return _0x8ed24f[_0x2fda('0x3')](_0x534776,{'month':_0x2fda('0x2'),'day':_0x2fda('0x0')})+',\x20'+_0x8ed24f[_0x2fda('0x1')](_0x534776,{'hour':_0x2fda('0x0'),'minute':_0x2fda('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3094=['_focusables','setTemplate','extendTemplate','delegate','execute','trim','Cancel','focusFirst','_createButton','check','revisionNameInputView','reset','type','cancelButtonView','selectstart','label','locale','focusTracker','keystrokes','tab','form','ck-revision-history-save-revision-form','saveButtonView','stopPropagation','element','submit','arrowleft','arrowdown','set','ck-responsive-form','listenTo','arrowup','revisionNameInputValue','render','add','cancel','high','value','revisionName','220','shift\x20+\x20tab','Name\x20of\x20the\x20revision\x20(optional)','_focusCycler','ck-button-save','fieldView','arrowright'];(function(_0xc68958,_0x3094ab){const _0x3772dc=function(_0x1a2265){while(--_0x1a2265){_0xc68958['push'](_0xc68958['shift']());}};_0x3772dc(++_0x3094ab);}(_0x3094,0x98));const _0x3772=function(_0xc68958,_0x3094ab){_0xc68958=_0xc68958-0x0;let _0x3772dc=_0x3094[_0xc68958];return _0x3772dc;};import{icons as _0x3a26a9}from'ckeditor5/src/core';import{ButtonView as _0x2d5f15,FocusCycler as _0x3e2977,LabeledFieldView as _0x1754a6,View as _0x1ff3cd,ViewCollection as _0x1fce51,createLabeledInputText as _0x2c3e45,injectCssTransitionDisabler as _0x2da8cd,submitHandler as _0x494d88}from'ckeditor5/src/ui';import{FocusTracker as _0x589e42,KeystrokeHandler as _0x525c7b}from'ckeditor5/src/utils';import{getTranslation as _0x556af3}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class wt extends _0x1ff3cd{constructor(_0x14244f){super(_0x14244f),this[_0x3772('0x3')]=new _0x589e42(),this[_0x3772('0x4')]=new _0x525c7b(),this[_0x3772('0xe')](_0x3772('0x12'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x3772('0x8')]=this[_0x3772('0x28')](_0x556af3(_0x14244f,'Save'),_0x3a26a9[_0x3772('0x29')],_0x3772('0x1d')),this[_0x3772('0x8')][_0x3772('0x2c')]=_0x3772('0xb'),this['cancelButtonView']=this[_0x3772('0x28')](_0x556af3(_0x14244f,_0x3772('0x26')),_0x3a26a9['cancel'],'ck-button-cancel',_0x3772('0x15')),this['_focusables']=new _0x1fce51(),this[_0x3772('0x1c')]=new _0x3e2977({'focusables':this[_0x3772('0x20')],'focusTracker':this[_0x3772('0x3')],'keystrokeHandler':this[_0x3772('0x4')],'actions':{'focusPrevious':_0x3772('0x1a'),'focusNext':_0x3772('0x5')}}),this[_0x3772('0x21')]({'tag':_0x3772('0x6'),'attributes':{'class':['ck',_0x3772('0x7'),_0x3772('0xf')],'tabindex':'-1'},'children':[this[_0x3772('0x2a')],this[_0x3772('0x8')],this[_0x3772('0x2d')]]}),_0x2da8cd(this);}[_0x3772('0x13')](){super[_0x3772('0x13')](),_0x494d88({'view':this}),([this[_0x3772('0x2a')],this[_0x3772('0x8')],this[_0x3772('0x2d')]]['forEach'](_0x4adae6=>{this[_0x3772('0x20')][_0x3772('0x14')](_0x4adae6),this['focusTracker'][_0x3772('0x14')](_0x4adae6[_0x3772('0xa')]);}),this[_0x3772('0x4')][_0x3772('0x10')](this['element']));const _0x2306fc=_0x3113d4=>_0x3113d4[_0x3772('0x9')]();this[_0x3772('0x4')][_0x3772('0xe')](_0x3772('0x1f'),_0x2306fc),this['keystrokes'][_0x3772('0xe')](_0x3772('0xc'),_0x2306fc),this[_0x3772('0x4')][_0x3772('0xe')](_0x3772('0x11'),_0x2306fc),this[_0x3772('0x4')][_0x3772('0xe')](_0x3772('0xd'),_0x2306fc),this[_0x3772('0x10')](this['revisionNameInputView']['element'],_0x3772('0x0'),(_0x5f2395,_0x493294)=>{_0x493294[_0x3772('0x9')]();},{'priority':_0x3772('0x16')});}['focus'](){this[_0x3772('0x1c')][_0x3772('0x27')]();}get[_0x3772('0x18')](){return this[_0x3772('0x2a')]['fieldView'][_0x3772('0xa')][_0x3772('0x17')][_0x3772('0x25')]();}set['revisionName'](_0x48ef79){this[_0x3772('0x2a')][_0x3772('0x1e')][_0x3772('0xa')][_0x3772('0x17')]=_0x48ef79['trim']();}[_0x3772('0x2b')](){this[_0x3772('0x2a')][_0x3772('0x1e')]['element'][_0x3772('0x17')]='';}['_createRevisionNameInput'](){const _0x141197=new _0x1754a6(this['locale'],_0x2c3e45),_0x3194d8=_0x141197[_0x3772('0x1e')];return _0x3194d8[_0x3772('0x22')]({'attributes':{'maxlength':_0x3772('0x19')}}),_0x141197[_0x3772('0x1')]=_0x556af3(this[_0x3772('0x2')],_0x3772('0x1b')),_0x3194d8['on']('input',()=>{this[_0x3772('0x12')]=_0x3194d8[_0x3772('0xa')][_0x3772('0x17')][_0x3772('0x25')]();}),_0x141197;}[_0x3772('0x28')](_0x20fb3d,_0xa43bc8,_0x200dd3,_0x280bd7){const _0x48f708=new _0x2d5f15(this['locale']);return _0x48f708[_0x3772('0xe')]({'label':_0x20fb3d,'icon':_0xa43bc8,'tooltip':!0x0}),_0x48f708[_0x3772('0x22')]({'attributes':{'class':_0x200dd3}}),_0x280bd7&&_0x48f708[_0x3772('0x23')](_0x3772('0x24'))['to'](this,_0x280bd7),_0x48f708;}}
23
+ const _0x5be9=['extendTemplate','keystrokes','listenTo','revisionNameInputView','input','setTemplate','forEach','render','value','revisionNameInputValue','ck-button-save','ck-responsive-form','arrowdown','Name\x20of\x20the\x20revision\x20(optional)','fieldView','check','cancelButtonView','ck-button-cancel','execute','submit','label','focus','locale','ck-revision-history-save-revision-form','_focusCycler','trim','Save','220','shift\x20+\x20tab','saveButtonView','Cancel','set','cancel','element','_createButton','arrowright','add','arrowleft','revisionName','_createRevisionNameInput','focusTracker','focusFirst','stopPropagation'];(function(_0x2226aa,_0x5be93c){const _0x17ed56=function(_0x3c8d02){while(--_0x3c8d02){_0x2226aa['push'](_0x2226aa['shift']());}};_0x17ed56(++_0x5be93c);}(_0x5be9,0xf3));const _0x17ed=function(_0x2226aa,_0x5be93c){_0x2226aa=_0x2226aa-0x0;let _0x17ed56=_0x5be9[_0x2226aa];return _0x17ed56;};import{icons as _0xe9a11d}from'ckeditor5/src/core';import{ButtonView as _0x1e15e4,FocusCycler as _0x57a876,LabeledFieldView as _0x318212,View as _0x47a003,ViewCollection as _0x45baa8,createLabeledInputText as _0x1478b1,injectCssTransitionDisabler as _0x50c8fd,submitHandler as _0x5a2f22}from'ckeditor5/src/ui';import{FocusTracker as _0x321ce5,KeystrokeHandler as _0x2428c8}from'ckeditor5/src/utils';import{getTranslation as _0x3abda9}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class wt extends _0x47a003{constructor(_0x598192){super(_0x598192),this[_0x17ed('0xc')]=new _0x321ce5(),this['keystrokes']=new _0x2428c8(),this[_0x17ed('0x3')](_0x17ed('0x18'),''),this[_0x17ed('0x12')]=this[_0x17ed('0xb')](),this[_0x17ed('0x1')]=this[_0x17ed('0x6')](_0x3abda9(_0x598192,_0x17ed('0x29')),_0xe9a11d[_0x17ed('0x1e')],_0x17ed('0x19')),this[_0x17ed('0x1')]['type']=_0x17ed('0x22'),this[_0x17ed('0x1f')]=this[_0x17ed('0x6')](_0x3abda9(_0x598192,_0x17ed('0x2')),_0xe9a11d[_0x17ed('0x4')],_0x17ed('0x20'),_0x17ed('0x4')),this['_focusables']=new _0x45baa8(),this[_0x17ed('0x27')]=new _0x57a876({'focusables':this['_focusables'],'focusTracker':this[_0x17ed('0xc')],'keystrokeHandler':this[_0x17ed('0x10')],'actions':{'focusPrevious':_0x17ed('0x0'),'focusNext':'tab'}}),this[_0x17ed('0x14')]({'tag':'form','attributes':{'class':['ck',_0x17ed('0x26'),_0x17ed('0x1a')],'tabindex':'-1'},'children':[this[_0x17ed('0x12')],this[_0x17ed('0x1')],this[_0x17ed('0x1f')]]}),_0x50c8fd(this);}[_0x17ed('0x16')](){super['render'](),_0x5a2f22({'view':this}),([this[_0x17ed('0x12')],this['saveButtonView'],this['cancelButtonView']][_0x17ed('0x15')](_0x417d46=>{this['_focusables'][_0x17ed('0x8')](_0x417d46),this[_0x17ed('0xc')]['add'](_0x417d46['element']);}),this['keystrokes'][_0x17ed('0x11')](this[_0x17ed('0x5')]));const _0x38afa2=_0x40f59f=>_0x40f59f[_0x17ed('0xe')]();this[_0x17ed('0x10')]['set'](_0x17ed('0x7'),_0x38afa2),this[_0x17ed('0x10')][_0x17ed('0x3')](_0x17ed('0x9'),_0x38afa2),this[_0x17ed('0x10')][_0x17ed('0x3')]('arrowup',_0x38afa2),this[_0x17ed('0x10')][_0x17ed('0x3')](_0x17ed('0x1b'),_0x38afa2);}[_0x17ed('0x24')](){this[_0x17ed('0x27')][_0x17ed('0xd')]();}get[_0x17ed('0xa')](){return this['revisionNameInputView'][_0x17ed('0x1d')][_0x17ed('0x5')][_0x17ed('0x17')][_0x17ed('0x28')]();}set[_0x17ed('0xa')](_0x3b379e){this[_0x17ed('0x12')][_0x17ed('0x1d')][_0x17ed('0x5')]['value']=_0x3b379e[_0x17ed('0x28')]();}['reset'](){this[_0x17ed('0x12')]['fieldView'][_0x17ed('0x5')]['value']='';}['_createRevisionNameInput'](){const _0x269ea7=new _0x318212(this['locale'],_0x1478b1),_0x49c9ac=_0x269ea7['fieldView'];return _0x49c9ac[_0x17ed('0xf')]({'attributes':{'maxlength':_0x17ed('0x2a')}}),_0x269ea7[_0x17ed('0x23')]=_0x3abda9(this[_0x17ed('0x25')],_0x17ed('0x1c')),_0x49c9ac['on'](_0x17ed('0x13'),()=>{this[_0x17ed('0x18')]=_0x49c9ac[_0x17ed('0x5')]['value'][_0x17ed('0x28')]();}),_0x269ea7;}[_0x17ed('0x6')](_0x5ac512,_0x58cf49,_0x222ab2,_0x6ee74f){const _0x21de45=new _0x1e15e4(this['locale']);return _0x21de45[_0x17ed('0x3')]({'label':_0x5ac512,'icon':_0x58cf49,'tooltip':!0x0}),_0x21de45[_0x17ed('0xf')]({'attributes':{'class':_0x222ab2}}),_0x6ee74f&&_0x21de45['delegate'](_0x17ed('0x21'))['to'](this,_0x6ee74f),_0x21de45;}}