@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230808.0 → 0.0.0-nightly-20230809.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9ba6=['isRemoveSuggestion','uiElement','level','_step','catch','useFillerType','downcastDispatcher','done','highest','_makeModelFromTape','getAttribute','distance','mouseover','suggestion:','insertions','mapper','createRangeIn','authors','enqueueChange','destroy','then','ck-editor__editable__overlay','_joinTapes','consume','deletion','_appendChild','bindElementToMarker','isAdded','markerRange','isAddSuggestion','_markSuggestions','dataToMarker','affectsData','restoreRevisionCallback','clear','push','keys','elementStart','_changeView','restoreRevision','ck-revision-history-root-add','markerName','change:isEnabled','includes','resolve','isLimit','addRevision','getClientRects','end','isCollapsed','addMarker:revision','view','_removeMissingPairs','isEnabled','markersStart','WidgetToolbarRepository','from','revision','item','isBlock','listenTo','concat','RevisionsRepository','ck-revision-history-root-','conversion','markerToHighlight','removeAttribute','commands','nextPosition','marked','changeId','diffData','-new','createRevision','currentChangeNumber','diff','ck-suggestion-marker--active','attributesAfter','mousedown','nextSibling','activeChange','createPositionFromPath','userId','toViewRange','vid_start','filter','forceDisabled','activeView','config','revision-end','getRevision','showPreviousChange','adapter','_markMismatchedRemovedTags','detachRoot','addMarker:revision-suggestion:deletion','_balloon','target','POSITIVE_INFINITY','vid','deletions','isAtStart','all','domEvent','ck-revision-history-root--active','markersEnd','toViewPosition','_setChanges','getRoot','revision-suggestion','isAfter','get','side','ck-suggestion-marker','string','parent','change:isReady','newRevisionId','unshift','_removeRevisionMarkers','createPositionBefore','showStack','addMarker:revision-suggestion:insertion','vid_end','updatePosition','elementEnd','error','revision-start','revisionHistoryAttachChange','indexOf','_setConversion','numberOfChanges','change:numberOfChanges','pairId','toModel','revision-comment:','parse','init','isIncorrect','add','rootName','_findChangeIdFromDomTarget','children','next','startIndex','selection','type','find','index','_markInsertions','createRange','getAttributes','_data','insertion','softBreak','bind','return','pop','data-change-id','isNavigationMode','endIndex','object','_setDistance','revision:','change:activeChange','createAttributeElement','repository','oldRevisionId','viewItem','_cleanMarkers','isInline','_processTape','has','_markMarkers','merge','_changeIdToChange','forward','suggestion','sort','span','markerNameToElements','removeMarker','changes','consumable','ck-revision-history-root-remove','change','data-revision-','_getRevisionsRange','default','refresh','_getViewForChange','comment','loadRevisionData','toViewElement','toData','_getChangeFromId','addClass','mapViewToDom','isReady','ck-suggestion-preview-marker-','upcast','name','dataDowncast','slice','reconvertMarker','hasAttribute','collaboration.channelId','model','setAttribute','findIndex','for','_removeUnsupportedChanges','getCustomProperty','abs','getIndex','addRoot','getDomRoot','backward','split','editor','RevisionViewer','execute','data','requires','document','_getViewObj','pluginName','element','_sortAndFilterDiffChanges','markers','_refreshStartEndIndex','hasClass','attachChange','previousPosition','revision-viewer','startsWith','_cleanUp','map','addRevisionData','editing','_makeTape','addHighlight','range','_fixObsoleteTags','writer','_revisions','schema','_getDiff','low','processor','remove','attributes','ck-suggestion-marker-','set','getRootNames','left','isOnRoot','modelRange','test','unbindElementFromMarkerName','forEach','revision-suggestion:','isEqual','getRevisionRootsAttributes','length','isContent','delete','roots','nodeAfter','removeMarker:revision-suggestion','createUIElement','isAttached','isRemoved','text','ck-suggestion-preview-marker','getChild','isAtEnd','wrap','_update','compare','start','isBefore','removeMarker:revision','isSuggestion','splice','getWalker','removeClass','ck-suggestion-marker-split','high','values','markerToData','insert','stop','_activeViewTarget','_initInteractions','plugins','showNextChange','shift'];(function(_0x4f69ce,_0x9ba693){const _0x213693=function(_0x3d777c){while(--_0x3d777c){_0x4f69ce['push'](_0x4f69ce['shift']());}};_0x213693(++_0x9ba693);}(_0x9ba6,0x1b1));const _0x2136=function(_0x4f69ce,_0x9ba693){_0x4f69ce=_0x4f69ce-0x0;let _0x213693=_0x9ba6[_0x4f69ce];return _0x213693;};import{Plugin as _0x42d9e6,Command as _0x335097}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4d0bd3}from'ckeditor5/src/utils';import{ContextualBalloon as _0xeefb4}from'ckeditor5/src/ui';import{DocumentFragment as _0x526ef0,Element as _0x506657,Text as _0x7c5852,ViewDocumentFragment as _0x5c4611,ViewText as _0x8480e7,ViewElement as _0x498da1,ViewContainerElement as _0x9e9bc7,ViewAttributeElement as _0x2797a4,ViewEmptyElement as _0x93cac0,ViewRawElement as _0x2c7b49,ViewUIElement as _0x49fd6f}from'ckeditor5/src/engine';import{Users as _0x32eca4,getMarkerDomElement as _0x39674b}from'ckeditor5-collaboration/src/collaboration-core';import _0x164776 from'./ui/revisionviewer/changedetailsview';import _0x43b7de from'./revisionsrepository';import _0x3ff98c from'./changeitem';import{default as _0x57039d}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4cf36d}from'lodash-es';const tt={'c':_0x9e9bc7,'a':_0x2797a4,'e':_0x93cac0,'r':_0x2c7b49,'u':_0x49fd6f};export default class d extends _0x42d9e6{static get[_0x2136('0x5b')](){return _0x2136('0x55');}static get[_0x2136('0x58')](){return[_0x32eca4,_0xeefb4,_0x43b7de];}constructor(_0x191c65){super(_0x191c65),this[_0x2136('0x1f')]=this[_0x2136('0x54')]['plugins'][_0x2136('0x112')](_0x2136('0xe1')),this[_0x2136('0x76')](_0x2136('0xf3'),null),this[_0x2136('0x76')](_0x2136('0xfa'),null),this[_0x2136('0x9e')]=null,this[_0x2136('0x76')](_0x2136('0xee'),null),this[_0x2136('0x76')](_0x2136('0x3f'),!0x1),this[_0x2136('0x76')](_0x2136('0xd8'),!0x0),this['on']('change:isEnabled',(_0x350eb5,_0x33d362,_0x3b6f58)=>{this['activeChange']=null,this[_0x2136('0xfa')]=null,this['editor'][_0x2136('0x68')][_0x2136('0xd6')][_0x2136('0x32')](_0xd11723=>{for(const _0x457f6a of this[_0x2136('0x54')]['editing'][_0x2136('0xd6')][_0x2136('0x59')][_0x2136('0x84')])_0x3b6f58?_0xd11723[_0x2136('0x97')](_0x2136('0xb8'),_0x457f6a):_0xd11723['addClass'](_0x2136('0xb8'),_0x457f6a);});}),this[_0x2136('0x14')](_0x2136('0x18'))['to'](this,_0x2136('0xf3'),_0x43b4a0=>null!==_0x43b4a0),this[_0x2136('0x14')](_0x2136('0xed'))['to'](this,_0x2136('0x3f'),this,_0x2136('0xee'),this,_0x2136('0xf3'),(_0x5c1dba,_0x3e6b70,_0x45beed)=>_0x5c1dba&&_0x45beed?_0x3e6b70[_0x2136('0x2f')]['getIndex'](_0x45beed):0x0),this[_0x2136('0x14')](_0x2136('0x126'))['to'](this,'isReady',this,'diff',(_0x2c4b16,_0x1a4789)=>_0x2c4b16?_0x1a4789[_0x2136('0x2f')][_0x2136('0x81')]:0x0),this[_0x2136('0xc9')]=null,this[_0x2136('0x28')]=new Map(),this[_0x2136('0xff')]=null,this['_balloon']=this[_0x2136('0x54')]['plugins']['get'](_0xeefb4);}[_0x2136('0x2')](){const _0x109d6c=this[_0x2136('0x54')],_0x1cacb7=new ShowChangeCommand(_0x109d6c,{'direction':_0x2136('0x52')}),_0x1ff304=new ShowChangeCommand(_0x109d6c,{'direction':_0x2136('0x29')});(_0x109d6c['commands'][_0x2136('0x4')](_0x2136('0xfe'),_0x1cacb7),_0x109d6c[_0x2136('0xe6')]['add'](_0x2136('0xa1'),_0x1ff304),_0x109d6c[_0x2136('0xe6')]['add'](_0x2136('0xca'),new RestoreRevisionCommand(_0x109d6c)),this['on'](_0x2136('0x127'),()=>{_0x1cacb7[_0x2136('0x36')](),_0x1ff304[_0x2136('0x36')]();}),this[_0x2136('0x125')](),this[_0x2136('0x9f')](),_0x109d6c['enableReadOnlyMode'](_0x2136('0x63')),_0x109d6c['plugins']['has'](_0x2136('0xda')))&&_0x109d6c[_0x2136('0xa0')]['get'](_0x2136('0xda'))[_0x2136('0xf9')]('revision-viewer');}async['getRevisionData'](_0x11e2b0){await this[_0x2136('0x39')](_0x11e2b0);const _0x19b9e9={};for(const _0x4e093e in _0x11e2b0[_0x2136('0xea')]){if(_0x11e2b0[_0x2136('0xea')][_0x4e093e][_0x2136('0x61')]&&!_0x11e2b0[_0x2136('0xea')][_0x4e093e]['attachChange'][_0x2136('0x88')])continue;const _0xe0a52a=this[_0x2136('0x11a')](JSON[_0x2136('0x1')](_0x11e2b0[_0x2136('0xea')][_0x4e093e][_0x2136('0xb1')])),_0x30a10a=this[_0x2136('0x54')]['editing'][_0x2136('0xd6')]['document'],_0x5a5213=new _0x5c4611(_0x30a10a,_0xe0a52a[_0x2136('0x66')](_0x3d7353=>this[_0x2136('0x5a')](_0x3d7353)));this[_0x2136('0x54')]['data']['processor'][_0x2136('0xa8')](_0x2136('0xe8')),_0x19b9e9[_0x4e093e]=this[_0x2136('0x54')][_0x2136('0x57')][_0x2136('0x72')][_0x2136('0x3b')](_0x5a5213),this[_0x2136('0x54')][_0x2136('0x57')][_0x2136('0x72')]['useFillerType'](_0x2136('0x35'));}return _0x19b9e9;}async[_0x2136('0x80')](_0x37ac3c){await this[_0x2136('0x39')](_0x37ac3c);const _0x2e77db={};for(const _0x58341f in _0x37ac3c['diffData'])_0x37ac3c[_0x2136('0xea')][_0x58341f][_0x2136('0x61')]&&!_0x37ac3c['diffData'][_0x58341f][_0x2136('0x61')][_0x2136('0x88')]||(_0x2e77db[_0x58341f]=_0x37ac3c[_0x2136('0xea')][_0x58341f][_0x2136('0xf0')]||{});return _0x2e77db;}['_removeRevisionMarkers'](_0xe12d5){return(_0xe12d5=_0xe12d5['filter'](_0x26fce2=>!_0x26fce2[_0x2136('0x42')]||_0x2136('0x122')!==_0x26fce2[_0x2136('0x42')]&&_0x2136('0xfc')!==_0x26fce2['name']))[_0x2136('0x7d')](_0x1e64db=>{_0x2136('0x115')!=typeof _0x1e64db&&(_0x1e64db[_0x2136('0x7')]=this[_0x2136('0x11a')](_0x1e64db[_0x2136('0x7')]),_0x1e64db[_0x2136('0x74')]=_0x1e64db[_0x2136('0x74')][_0x2136('0xf8')](_0x27e91e=>!_0x27e91e[0x0][_0x2136('0x64')](_0x2136('0x33'))));}),_0xe12d5;}async[_0x2136('0x90')](_0x9f3a0c,_0x5089f3,_0x142576=!0x1){if(!this[_0x2136('0xd8')])return;const _0x2ec083=this['diff'],_0x27e66d=this[_0x2136('0x1f')],_0x4acf07=_0x2136('0x115')==typeof _0x9f3a0c?_0x27e66d[_0x2136('0xfd')](_0x9f3a0c):_0x9f3a0c,_0x7e8a7b=_0x2136('0x115')==typeof _0x5089f3?_0x27e66d[_0x2136('0xfd')](_0x5089f3):_0x5089f3,_0x323a6f=_0x4acf07['id'],_0x423bb9=_0x7e8a7b?_0x7e8a7b['id']:null;if(!_0x142576&&this[_0x2136('0xee')]&&this['diff'][_0x2136('0x118')]===_0x323a6f&&this[_0x2136('0xee')][_0x2136('0x20')]===_0x423bb9)return Promise[_0x2136('0xcf')]();this[_0x2136('0x3f')]=!0x1,this[_0x2136('0xfa')]=null,this[_0x2136('0xf3')]=null,this[_0x2136('0xee')]=new _0x57039d(_0x323a6f,_0x423bb9);const _0x2c3b45=this['_getRevisionsRange'](_0x4acf07,_0x7e8a7b,!0x0)[_0x2136('0x66')](_0x3a21b3=>this[_0x2136('0x39')](_0x3a21b3));return _0x2c3b45[_0x2136('0xc6')](new Promise(_0x4757ce=>{setTimeout(_0x4757ce,0x14);})),Promise[_0x2136('0x109')](_0x2c3b45)[_0x2136('0xb7')](()=>{if(!this[_0x2136('0xd8')])return;this['_cleanUp']();const _0x4e470c=this['_getDiff'](_0x323a6f,_0x423bb9);for(const _0x1f1fb5 of _0x4e470c[_0x2136('0x2f')])this[_0x2136('0x28')][_0x2136('0x76')](_0x1f1fb5['id'],_0x1f1fb5);this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0xb5')]({'isUndoable':!0x1},_0x2b5ec1=>{for(const _0x367a61 of this['editor'][_0x2136('0x48')][_0x2136('0x59')][_0x2136('0x77')]())_0x2b5ec1[_0x2136('0x101')](_0x367a61);for(const _0x256fdf of Object[_0x2136('0xc7')](_0x4e470c[_0x2136('0x48')])){const _0xf45b38=_0x2b5ec1[_0x2136('0x50')](_0x256fdf);for(const _0x5c7c07 of Object[_0x2136('0xc7')](_0x4e470c[_0x2136('0x74')][_0x256fdf]))_0x2b5ec1[_0x2136('0x49')](_0x5c7c07,_0x4e470c[_0x2136('0x74')][_0x256fdf][_0x5c7c07],_0xf45b38);_0x2b5ec1[_0x2136('0x9c')](_0x4e470c[_0x2136('0x48')][_0x256fdf],_0xf45b38,0x0);}}),this[_0x2136('0xee')][_0x2136('0x10e')](this[_0x2136('0x5d')](_0x4e470c['changes'])),this[_0x2136('0x3f')]=!0x0;})[_0x2136('0xa7')](_0x4395ef=>{console[_0x2136('0x121')](_0x4395ef),this[_0x2136('0x65')](),_0x2ec083&&(this['diff']=_0x2ec083),this[_0x2136('0x3f')]=!0x0;});}[_0x2136('0x67')](_0x2e2741,_0x2d2739){const _0x1460de=this[_0x2136('0x1f')][_0x2136('0xec')](_0x2e2741);return _0x1460de['on'](_0x2136('0x8f'),(_0x7a58b7,_0x3328ce,_0x5ed723)=>_0x2d2739(_0x3328ce,_0x5ed723,_0x1460de)),this[_0x2136('0x1f')][_0x2136('0xd1')](_0x1460de),_0x1460de;}[_0x2136('0x39')](_0x4ffd92){if(!_0x4ffd92||_0x4ffd92[_0x2136('0xea')])return Promise[_0x2136('0xcf')]();{const _0xf88e1d=this[_0x2136('0x54')][_0x2136('0xfb')][_0x2136('0x112')](_0x2136('0x47'));return this[_0x2136('0xff')][_0x2136('0xfd')]({'channelId':_0xf88e1d,'revisionId':_0x4ffd92['id']})['then'](_0x7293d=>{_0x4ffd92[_0x2136('0x8f')]({'diffData':_0x7293d[_0x2136('0xea')]},!0x0);});}}[_0x2136('0x65')](){this[_0x2136('0xf3')]=null,this['_cleanMarkers'](),this[_0x2136('0xc9')]&&this[_0x2136('0xc9')][_0x2136('0xb6')](),this[_0x2136('0xc9')]=null,this[_0x2136('0x28')][_0x2136('0xc5')](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1ed379=>{for(const _0x676115 of this[_0x2136('0x54')][_0x2136('0x48')]['document'][_0x2136('0x77')]())_0x1ed379[_0x2136('0x101')](_0x676115);});}[_0x2136('0x5d')](_0x2e833f){const _0x4ddfdc=[],_0x6eb3e4=new Map();for(const _0x4015af of this[_0x2136('0x54')][_0x2136('0x48')]['document'][_0x2136('0x77')]()){const _0x5b0df3=this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xd6')][_0x2136('0x51')](_0x4015af);if(!_0x5b0df3)continue;const _0x40730e=_0x5b0df3[_0x2136('0xd2')]()[_0x2136('0xdd')](0x0);_0x40730e&&(_0x4ddfdc[_0x2136('0xc6')](_0x4015af),_0x6eb3e4['set'](_0x4015af,_0x40730e));}return _0x4ddfdc[_0x2136('0x2b')]((_0x59dbab,_0x315424)=>{const _0x4633af=_0x6eb3e4[_0x2136('0x112')](_0x59dbab),_0xff51af=_0x6eb3e4[_0x2136('0x112')](_0x315424);return _0x4633af['y']-_0xff51af['y']||_0x4633af['x']-_0xff51af['x'];}),(_0x2e833f=_0x2e833f[_0x2136('0xf8')](_0x232e8b=>_0x4ddfdc[_0x2136('0xce')](_0x232e8b[_0x2136('0x5')])))[_0x2136('0x2b')]((_0x344f15,_0x3d4508)=>_0x4ddfdc[_0x2136('0x124')](_0x344f15[_0x2136('0x5')])-_0x4ddfdc['indexOf'](_0x3d4508[_0x2136('0x5')])),_0x2e833f;}[_0x2136('0x69')](_0x13b2f3){const _0xf23ece=Array[_0x2136('0xdb')](_0x13b2f3['markers'])[_0x2136('0xf8')](([_0x4a67ca,_0x35bdae])=>_0x4a67ca[_0x2136('0x64')](_0x2136('0x1c'))&&!_0x35bdae[_0x2136('0xd4')]),_0x49b3de=Array[_0x2136('0xdb')](this['editor'][_0x2136('0x48')][_0x2136('0xb3')](_0x13b2f3)[_0x2136('0x96')]({'singleCharacters':!0x0}));if(0x0!=_0xf23ece[_0x2136('0x81')])for(const _0x3f0bd2 of _0x49b3de){const [_0x23dc3b,_0x4822de]=_0xf23ece[0x0],[,_0x37d2d2,_0x5e742b]=_0x23dc3b[_0x2136('0x53')](':');if(_0x4822de[_0x2136('0xd3')][_0x2136('0x7f')](_0x3f0bd2[_0x2136('0xe7')])&&_0xf23ece[_0x2136('0xa2')](),(_0x3f0bd2['previousPosition'][_0x2136('0x7f')](_0x4822de[_0x2136('0x91')])||_0x3f0bd2[_0x2136('0x62')]['isAfter'](_0x4822de['start']))&&(_0x2136('0x12')==_0x37d2d2?_0x3f0bd2[_0x2136('0xbe')]={'userId':_0x5e742b}:_0x2136('0xbb')==_0x37d2d2&&(_0x3f0bd2[_0x2136('0x89')]={'userId':_0x5e742b})),0x0==_0xf23ece[_0x2136('0x81')])break;}return _0x49b3de;}['_refreshStartEndIndex'](_0x3d37d9){const _0x5840f5=new Map();for(let _0x4c3156=0x0;_0x4c3156<_0x3d37d9['length'];_0x4c3156++)_0x2136('0x8a')===_0x3d37d9[_0x4c3156]['type']?(_0x3d37d9[_0x4c3156][_0x2136('0xdd')]['startIndex']=_0x4c3156,_0x3d37d9[_0x4c3156][_0x2136('0xdd')][_0x2136('0x19')]=_0x4c3156):('elementStart'===_0x3d37d9[_0x4c3156][_0x2136('0xb')]?_0x3d37d9[_0x4c3156][_0x2136('0xdd')][_0x2136('0x9')]=_0x4c3156:_0x2136('0x120')===_0x3d37d9[_0x4c3156][_0x2136('0xb')]&&(_0x3d37d9[_0x4c3156][_0x2136('0xdd')]['endIndex']=_0x4c3156),_0x5840f5[_0x2136('0x76')](_0x3d37d9[_0x4c3156]['id'],_0x4c3156));for(const _0x54cf48 of _0x5840f5[_0x2136('0x9a')]())_0x2136('0xc8')===_0x3d37d9[_0x54cf48][_0x2136('0xb')]?_0x3d37d9[_0x54cf48][_0x2136('0xdd')][_0x2136('0x19')]=_0x5840f5['get'](_0x3d37d9[_0x54cf48][_0x2136('0x128')]):_0x2136('0x120')===_0x3d37d9[_0x54cf48][_0x2136('0xb')]&&(_0x3d37d9[_0x54cf48][_0x2136('0xdd')]['startIndex']=_0x5840f5[_0x2136('0x112')](_0x3d37d9[_0x54cf48][_0x2136('0x128')]));}[_0x2136('0x24')](_0x6dfc0c){for(let _0xfa6f51=0x0;_0xfa6f51<_0x6dfc0c[_0x2136('0x81')];_0xfa6f51++){if(_0x2136('0xc8')===_0x6dfc0c[_0xfa6f51][_0x2136('0xb')])_0x6dfc0c[_0xfa6f51]['item'][_0x2136('0x9')]=_0xfa6f51;else{if(_0x2136('0x120')===_0x6dfc0c[_0xfa6f51]['type']){_0x6dfc0c[_0xfa6f51]['item']['endIndex']=_0xfa6f51;const _0x30264b=_0x6dfc0c[_0xfa6f51][_0x2136('0xdd')][_0x2136('0x9')];_0x6dfc0c[_0x30264b][_0x2136('0x128')]=_0x6dfc0c[_0xfa6f51]['id'],_0x6dfc0c[_0xfa6f51][_0x2136('0x128')]=_0x6dfc0c[_0x30264b]['id'];}else _0x6dfc0c[_0xfa6f51][_0x2136('0xdd')][_0x2136('0x9')]=_0xfa6f51,_0x6dfc0c[_0xfa6f51][_0x2136('0xdd')][_0x2136('0x19')]=_0xfa6f51,_0x6dfc0c[_0xfa6f51][_0x2136('0x128')]=null;}_0x6dfc0c[_0xfa6f51][_0x2136('0xd9')]||(_0x6dfc0c[_0xfa6f51][_0x2136('0xd9')]=[],_0x6dfc0c[_0xfa6f51][_0x2136('0x10c')]=[]);}}[_0x2136('0xe')](_0x190d1a,_0x598e1b){const _0x20cac2=_0x190d1a[_0x2136('0xf8')](_0x26c0bd=>!_0x26c0bd[_0x2136('0xbe')]);for(let _0x4d6cb3=0x0;_0x4d6cb3<_0x598e1b[_0x2136('0x81')];_0x4d6cb3++)_0x598e1b[_0x4d6cb3][_0x2136('0xbe')]&&(_0x20cac2[_0x4d6cb3][_0x2136('0xbe')]=_0x598e1b[_0x4d6cb3][_0x2136('0xbe')]);}['_makeModelFromViewString'](_0x11bca6){const _0x2fcb19=JSON['parse'](_0x11bca6),_0xcaa022=this[_0x2136('0x54')]['editing'][_0x2136('0xd6')]['document'],_0x1c92ee=new _0x5c4611(_0xcaa022,_0x2fcb19[_0x2136('0x66')](_0x2fc9c7=>this[_0x2136('0x5a')](_0x2fc9c7)));return this['editor'][_0x2136('0x57')][_0x2136('0x129')](_0x1c92ee);}[_0x2136('0x5a')](_0x19a51d){const _0x30d48f=this[_0x2136('0x54')]['editing'][_0x2136('0xd6')][_0x2136('0x59')];if('string'==typeof _0x19a51d)return new _0x8480e7(_0x30d48f,_0x19a51d);{const _0x7ff77a=_0x19a51d[_0x2136('0x7')][_0x2136('0x66')](_0x48dd1a=>this[_0x2136('0x5a')](_0x48dd1a));return new(tt[_0x19a51d['type']]||_0x498da1)(_0x30d48f,_0x19a51d['name'],_0x19a51d[_0x2136('0x74')],_0x7ff77a);}}[_0x2136('0x70')](_0x5ab462,_0x4b4bde=null){const _0x3ff846=this['repository'][_0x2136('0xfd')](_0x5ab462),_0x127ba8=_0x4b4bde?this['repository'][_0x2136('0xfd')](_0x4b4bde):null,_0x5646a3=this['_getRevisionsRange'](_0x3ff846,_0x127ba8),_0x353ae2=_0x5646a3[_0x5646a3['length']-0x1],_0x1ddbfe=new Map(),_0x11e3fc={'model':{},'attributes':{},'changes':[]},_0x1ff839=new Set(),_0x1d11de=new Map();for(let _0x30412d=_0x5646a3[_0x2136('0x81')]-0x1;_0x30412d>=0x0;_0x30412d--){const _0x4b8bb9=_0x5646a3[_0x30412d];for(const _0x1f81f0 of Object[_0x2136('0xc7')](_0x4b8bb9[_0x2136('0xea')]))if(_0x4b8bb9[_0x2136('0xea')][_0x1f81f0][_0x2136('0x61')]){const _0x2f4f17=_0x4b8bb9[_0x2136('0xea')][_0x1f81f0][_0x2136('0x61')];_0x2f4f17['isAttached']?(_0x1ff839[_0x2136('0x4')](_0x1f81f0),_0x1d11de['has'](_0x1f81f0)&&_0x1d11de[_0x2136('0x112')](_0x1f81f0)[_0x2136('0xf5')]==_0x2f4f17[_0x2136('0xf5')]?_0x1d11de[_0x2136('0x83')](_0x1f81f0):_0x1d11de['set'](_0x1f81f0,_0x2f4f17)):_0x1d11de[_0x2136('0x25')](_0x1f81f0)?(_0x1ff839[_0x2136('0x83')](_0x1f81f0),_0x1d11de[_0x2136('0x83')](_0x1f81f0)):(_0x1ff839[_0x2136('0x4')](_0x1f81f0),_0x1d11de[_0x2136('0x76')](_0x1f81f0,_0x2f4f17));}else _0x1ff839['add'](_0x1f81f0);}for(const _0x257f6d of _0x1ff839){const _0x83bad6=_0x1d11de[_0x2136('0x25')](_0x257f6d)&&!_0x1d11de[_0x2136('0x112')](_0x257f6d)['isAttached'];let _0x355fb7=_0x83bad6?_0x5646a3[_0x2136('0x81')]-0x1:0x0;const _0x3e265a=_0x83bad6?-0x1:0x1;for(;_0x5646a3[_0x355fb7];){const _0x2dd71d=_0x5646a3[_0x355fb7];if(_0x2dd71d[_0x2136('0xea')][_0x257f6d]){const _0x54f5f5=_0x83bad6?_0x2dd71d[_0x2136('0xea')][_0x257f6d]['attributesBefore']:_0x2dd71d[_0x2136('0xea')][_0x257f6d][_0x2136('0xf0')];_0x11e3fc[_0x2136('0x74')][_0x257f6d]=_0x54f5f5?_0x4cf36d(_0x54f5f5):{};break;}_0x355fb7+=_0x3e265a;}}for(const _0x3d837c of _0x5646a3){_0x3d837c[_0x2136('0x48')]={};for(const _0x208f49 of _0x3d837c[_0x2136('0xb4')])_0x1ddbfe[_0x2136('0x76')](_0x208f49['id'],_0x208f49);for(const _0x55b28b of _0x1ff839){const _0x563df3=_0x3d837c[_0x2136('0xea')][_0x55b28b]?_0x3d837c[_0x2136('0xea')][_0x55b28b]['insertions']:'[]',_0x46596b=_0x3d837c[_0x2136('0xea')][_0x55b28b]?_0x3d837c['diffData'][_0x55b28b][_0x2136('0x107')]:'[]';_0x3d837c[_0x2136('0x48')][_0x55b28b]={'insertions':this['_makeModelFromViewString'](_0x563df3),'deletions':this['_makeModelFromViewString'](_0x46596b)};}}for(const _0x3e65b4 of _0x1ff839){let _0x94229f=null,_0x2b61cd=0x0;const _0x1d437c=new Map(Array[_0x2136('0xdb')](_0x3ff846[_0x2136('0x48')][_0x3e65b4][_0x2136('0xb1')][_0x2136('0x5e')])[_0x2136('0xf8')](([_0x1544f8])=>!_0x1544f8[_0x2136('0x64')]('revision:')));let _0x30072a=0x0;for(const _0x10901b of _0x5646a3){const _0x20e87d=this[_0x2136('0x69')](_0x10901b[_0x2136('0x48')][_0x3e65b4][_0x2136('0xb1')]);_0x10901b==_0x3ff846?(_0x94229f=_0x20e87d,_0x2b61cd=_0x94229f[_0x2136('0x81')],_0x94229f[_0x2136('0x7d')](_0x144eca=>{_0x144eca['id']=_0x30072a++;}),this[_0x2136('0x24')](_0x94229f)):this[_0x2136('0xe')](_0x94229f,_0x20e87d);const _0x1fb193=_0x94229f[_0x2136('0xf8')](_0x4574e0=>!_0x4574e0[_0x2136('0xbe')])[_0x2136('0x66')](_0x3b055f=>_0x3b055f['id']);let _0x1e816e=0x0;const _0x4c267=this[_0x2136('0x69')](_0x10901b['model'][_0x3e65b4][_0x2136('0x107')]);_0x4c267[_0x2136('0x7d')](_0x159d13=>{_0x159d13[_0x2136('0x89')]?_0x159d13['id']=_0x2b61cd++:_0x159d13['id']=_0x1fb193[_0x1e816e++];}),this[_0x2136('0x24')](_0x4c267),this[_0x2136('0x1b')](_0x94229f,'isAdded'),this['_setDistance'](_0x4c267,'isRemoved'),_0x10901b==_0x3ff846&&this['_markMarkers'](_0x94229f,_0x1d437c),_0x94229f=this['_joinTapes'](_0x94229f,_0x4c267),this[_0x2136('0x5f')](_0x94229f),this['_setDistance'](_0x94229f,_0x2136('0x89'));}_0x94229f=_0x94229f[_0x2136('0xf8')](_0xa3ba93=>!(_0xa3ba93[_0x2136('0xbe')]&&_0xa3ba93['isRemoved']));const _0x4402ca=new Map(_0x353ae2[_0x2136('0x48')][_0x3e65b4][_0x2136('0x107')]['markers']),_0x1b97cd=new Set(_0x1d437c[_0x2136('0xc7')]());for(const _0x1df1fd of _0x4402ca[_0x2136('0xc7')]())_0x1b97cd[_0x2136('0x83')](_0x1df1fd);this[_0x2136('0xc1')](_0x94229f,_0x1b97cd),this[_0x2136('0x6c')](_0x94229f),_0x94229f=this[_0x2136('0xd7')](_0x94229f),_0x94229f=this[_0x2136('0x100')](_0x94229f),_0x94229f=this[_0x2136('0x4c')](_0x94229f);const {root:_0x36f6cc,changes:_0x1d56f8}=this[_0x2136('0xac')](_0x94229f,_0x1ddbfe,_0x3e65b4);_0x11e3fc[_0x2136('0x48')][_0x3e65b4]=_0x36f6cc;const _0x3c6a44=_0x1d11de[_0x2136('0x112')](_0x3e65b4);if(_0x3c6a44){const _0x46e5f4=_0x1ddbfe['get'](_0x3c6a44['userId']),_0x1be20b=new _0x3ff98c({'author':_0x46e5f4,'type':_0x3c6a44[_0x2136('0x88')]?_0x2136('0x4'):_0x2136('0x73'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3e65b4});_0x1d56f8[_0x2136('0x119')](_0x1be20b),_0x11e3fc['attributes'][_0x3e65b4][_0x2136('0x123')]=_0x1be20b['id'];}_0x11e3fc[_0x2136('0x2f')]=_0x11e3fc[_0x2136('0x2f')][_0x2136('0xe0')](_0x1d56f8);}return _0x11e3fc;}[_0x2136('0x26')](_0x183bcd,_0x2b2245){for(let _0x477c4e=0x0;_0x477c4e<_0x183bcd[_0x2136('0x81')];_0x477c4e++)for(const [_0x423e50,_0xced05]of _0x2b2245)_0xced05[_0x2136('0x91')][_0x2136('0x7f')](_0x183bcd[_0x477c4e][_0x2136('0x62')])&&_0x183bcd[_0x477c4e][_0x2136('0xd9')][_0x2136('0xc6')](_0x423e50),_0xced05[_0x2136('0xd3')]['isEqual'](_0x183bcd[_0x477c4e][_0x2136('0xe7')])&&_0x183bcd[_0x477c4e]['markersEnd'][_0x2136('0xc6')](_0x423e50);}[_0x2136('0xb9')](_0x31c17a,_0x4d6fda){let _0x40bfb9=[],_0x34a0b9=0x0,_0x4c751c=0x0;for(;_0x34a0b9<_0x31c17a[_0x2136('0x81')]||_0x4c751c<_0x4d6fda[_0x2136('0x81')];){const _0x4ec390=_0x31c17a[_0x34a0b9]||{},_0xa2d4bb=_0x4d6fda[_0x4c751c]||{};if(_0x4ec390['id']==_0xa2d4bb['id'])_0x34a0b9++,_0x4c751c++,_0x40bfb9['push'](_0x4ec390);else{if(_0xa2d4bb[_0x2136('0x89')]&&_0x4ec390[_0x2136('0xbe')]){const {commonTape:_0x39ecad,iEnd:_0x2622cc,jEnd:_0x26081c}=this['_threeWayMerge'](_0x31c17a,_0x34a0b9,_0x4d6fda,_0x4c751c);_0x40bfb9=_0x40bfb9[_0x2136('0xe0')](_0x39ecad),_0x34a0b9=_0x2622cc,_0x4c751c=_0x26081c;}else _0xa2d4bb[_0x2136('0x89')]?(_0x4c751c++,_0x40bfb9['push'](_0xa2d4bb)):(_0x34a0b9++,_0x40bfb9['push'](_0x4ec390));}}return _0x40bfb9;}[_0x2136('0xc1')](_0x5bfac5,_0x158223){const _0x57ab98=[];for(let _0x3b84f1=0x0;_0x3b84f1<_0x5bfac5['length'];_0x3b84f1++){for(let _0x2069aa=0x0;_0x2069aa<_0x5bfac5[_0x3b84f1]['markersStart'][_0x2136('0x81')];_0x2069aa++){const _0x4eabe2=_0x5bfac5[_0x3b84f1][_0x2136('0xd9')][_0x2069aa];if(!_0x158223['has'](_0x4eabe2))continue;const {group:_0x11036d,type:_0x972d85,authorId:_0x73d2f2}=_0x2003c3(_0x4eabe2);_0x2136('0x110')!=_0x11036d||_0x2136('0x12')!=_0x972d85&&_0x2136('0xbb')!=_0x972d85||(_0x57ab98[_0x2136('0x119')]({'type':_0x972d85,'name':_0x4eabe2,'userId':_0x73d2f2}),_0x5bfac5[_0x3b84f1][_0x2136('0xd9')][_0x2136('0x95')](_0x2069aa,0x1),_0x2069aa--);}_0x537acc(_0x5bfac5[_0x3b84f1]);for(let _0x10af6b=0x0;_0x10af6b<_0x5bfac5[_0x3b84f1]['markersEnd'][_0x2136('0x81')];_0x10af6b++){const _0x38e445=_0x5bfac5[_0x3b84f1][_0x2136('0x10c')][_0x10af6b];if(!_0x158223[_0x2136('0x25')](_0x38e445))continue;const {group:_0x4304cf,type:_0x2aacfb}=_0x2003c3(_0x38e445);if(_0x2136('0x110')!=_0x4304cf||_0x2136('0x12')!=_0x2aacfb&&'deletion'!=_0x2aacfb)continue;_0x5bfac5[_0x3b84f1][_0x2136('0x10c')]['splice'](_0x10af6b,0x1),_0x10af6b--;const _0x5072e1=_0x57ab98[_0x2136('0x4a')](_0x1ed6cc=>_0x1ed6cc[_0x2136('0x42')]==_0x38e445);_0x5072e1>-0x1&&_0x57ab98['splice'](_0x5072e1,0x1);}}function _0x2003c3(_0x2963e9){const _0x199450=_0x2963e9[_0x2136('0x53')](':');return{'group':_0x199450[0x0],'type':_0x199450[0x1],'subType':_0x199450['length']>=0x5?_0x199450[0x2]:null,'id':_0x199450[_0x2136('0x81')]<0x5?_0x199450[0x2]:_0x199450[0x3],'authorId':_0x199450[_0x2136('0x81')]<0x5?_0x199450[0x3]:_0x199450[0x4],'markerCount':0x6==_0x199450['length']?_0x199450[0x5]:null};}function _0x537acc(_0x7ef13d){for(let _0x359941=0x0;_0x359941<_0x57ab98['length'];_0x359941++){if(_0x7ef13d[_0x2136('0xbe')]&&'insertion'==_0x57ab98[_0x359941][_0x2136('0xb')])return _0x7ef13d[_0x2136('0xc0')]=_0x57ab98[_0x359941],void delete _0x7ef13d[_0x2136('0xbe')];if(!_0x7ef13d[_0x2136('0xbe')]&&!_0x7ef13d['isRemoved']&&'deletion'==_0x57ab98[_0x359941][_0x2136('0xb')])return void(_0x7ef13d[_0x2136('0xa3')]=_0x57ab98[_0x359941]);}}}['_setDistance'](_0x57f43d,_0x19978b){let _0x5d8156=0x0,_0x3801d3=!0x1;const _0x449a17=new Map();for(const _0x162c80 of _0x57f43d)_0x162c80[_0x19978b]?_0x3801d3&&(_0x5d8156++,_0x3801d3=!0x1):(_0x5d8156++,_0x3801d3=!0x0),_0x449a17['set'](_0x162c80['id'],_0x5d8156);for(let _0x4caaf3=0x0;_0x4caaf3<_0x57f43d['length'];_0x4caaf3++){if(_0x2136('0x89')==_0x19978b&&_0x57f43d[_0x4caaf3][_0x2136('0xbe')]||_0x2136('0xbe')==_0x19978b&&_0x57f43d[_0x4caaf3][_0x2136('0x89')])continue;if(_0x2136('0x8a')==_0x57f43d[_0x4caaf3]['type']){_0x57f43d[_0x4caaf3][_0x2136('0xae')]=0x0;continue;}const _0x5de6e9=_0x449a17[_0x2136('0x112')](_0x57f43d[_0x4caaf3][_0x2136('0x128')]),_0x233d51=_0x449a17['get'](_0x57f43d[_0x4caaf3]['id']);_0x57f43d[_0x4caaf3][_0x2136('0xae')]=_0x5de6e9-_0x233d51;}}[_0x2136('0x34')](_0x345c5c,_0x2fee3e,_0x1f595b=!0x1){const _0x1d396b=[];let _0x4d6fd7=this[_0x2136('0x1f')][_0x2136('0x4f')](_0x345c5c),_0x5f4a10=this[_0x2136('0x1f')]['getIndex'](_0x2fee3e);for(-0x1==_0x5f4a10&&(_0x5f4a10=this[_0x2136('0x1f')][_0x2136('0x6e')]['length'],_0x1f595b=!0x1);_0x4d6fd7<_0x5f4a10;)_0x1d396b[_0x2136('0xc6')](this['repository'][_0x2136('0xfd')](_0x4d6fd7)),_0x4d6fd7++;return _0x1f595b&&_0x1d396b[_0x2136('0xc6')](this[_0x2136('0x1f')]['getRevision'](_0x4d6fd7)),_0x1d396b;}['_threeWayMerge'](_0x440195,_0x296379,_0x46b140,_0x4d3180){const _0x4dce5a=this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0x6f')];let _0x302e46=_0x296379;for(;_0x440195[_0x302e46]&&_0x440195[_0x302e46]['isAdded'];)_0x302e46++;let _0x2b11f4=_0x4d3180;for(;_0x46b140[_0x2b11f4]&&_0x46b140[_0x2b11f4][_0x2136('0x89')];)_0x2b11f4++;_0x17f356(_0x440195,_0x296379,_0x302e46),_0x17f356(_0x46b140,_0x4d3180,_0x2b11f4);const _0x2977a6=_0x46b140[_0x2136('0x44')](_0x4d3180,_0x2b11f4)[_0x2136('0xe0')](_0x440195['slice'](_0x296379,_0x302e46));return _0x2977a6[_0x2136('0x2b')]((_0x2a3dc4,_0x3b63d9)=>_0x2a3dc4['side']!=_0x3b63d9[_0x2136('0x113')]?_0x2a3dc4['side']-_0x3b63d9[_0x2136('0x113')]:_0x2a3dc4[_0x2136('0xa5')]!=_0x3b63d9[_0x2136('0xa5')]?_0x2a3dc4['level']-_0x3b63d9['level']:_0x2a3dc4[_0x2136('0xae')]!=_0x3b63d9[_0x2136('0xae')]?_0x3b63d9[_0x2136('0xae')]-_0x2a3dc4[_0x2136('0xae')]:!!_0x2a3dc4[_0x2136('0xbe')]!=!!_0x3b63d9[_0x2136('0xbe')]?-0x1==_0x2a3dc4[_0x2136('0x113')]||0x0==_0x2a3dc4[_0x2136('0x113')]?_0x2a3dc4[_0x2136('0xbe')]?-0x1:0x1:_0x2a3dc4[_0x2136('0xbe')]?0x1:-0x1:_0x2a3dc4[_0x2136('0xd')]-_0x3b63d9[_0x2136('0xd')]),{'commonTape':_0x2977a6,'iEnd':_0x302e46,'jEnd':_0x2b11f4};function _0x17f356(_0x53b6bd,_0x3ee385,_0x39cdcf){let _0x338707=-0x1,_0x2adae6=Number[_0x2136('0x105')],_0x170c8b=!0x0;for(let _0x81f13b=_0x3ee385;_0x81f13b<_0x39cdcf;_0x81f13b++)if(_0x4dce5a[_0x2136('0x23')](_0x53b6bd[_0x81f13b][_0x2136('0xdd')])||(_0x170c8b=!0x1),_0x53b6bd[_0x81f13b]['item'][_0x2136('0x9')]<_0x3ee385&&(_0x338707=_0x81f13b),_0x53b6bd[_0x81f13b][_0x2136('0xdd')]['endIndex']>=_0x39cdcf){_0x2adae6=_0x81f13b;break;}_0x170c8b&&(_0x338707=_0x39cdcf-0x1);for(let _0x33995a=_0x3ee385;_0x33995a<_0x39cdcf;_0x33995a++)_0x53b6bd[_0x33995a][_0x2136('0x113')]=_0x33995a<=_0x338707?-0x1:_0x33995a<_0x2adae6?0x0:0x1,_0x53b6bd[_0x33995a][_0x2136('0xd')]=_0x33995a;let _0xc49732=0x0;for(let _0x3f3114=_0x3ee385;_0x3f3114<=_0x338707;_0x3f3114++)0x0==_0x53b6bd[_0x3f3114]['distance']?_0x53b6bd[_0x3f3114][_0x2136('0xa5')]=_0xc49732:(_0xc49732++,_0x53b6bd[_0x3f3114][_0x2136('0xa5')]=_0xc49732,_0xc49732++);for(let _0x44f0b5=_0x3ee385;_0x44f0b5<_0x39cdcf;_0x44f0b5++)0x0==_0x53b6bd[_0x44f0b5][_0x2136('0x113')]&&(_0x53b6bd[_0x44f0b5][_0x2136('0xa5')]=_0xc49732);_0xc49732=0x0;for(let _0x25c038=_0x39cdcf-0x1;_0x25c038>=_0x2adae6;_0x25c038--)0x0==_0x53b6bd[_0x25c038][_0x2136('0xae')]?_0x53b6bd[_0x25c038][_0x2136('0xa5')]=_0xc49732:(_0xc49732--,_0x53b6bd[_0x25c038][_0x2136('0xa5')]=_0xc49732,_0xc49732--);}}[_0x2136('0x6c')](_0x46fc1f){const _0x2d35fc=new Map(),_0x47ddd9=this['editor'][_0x2136('0x48')][_0x2136('0x6f')];for(let _0xea5202=0x1;_0xea5202<_0x46fc1f[_0x2136('0x81')];_0xea5202++){let _0x4901fd,_0xa08fa0,_0x5bf071;const _0x267439=_0x46fc1f[_0xea5202],_0x2ebecd=_0x46fc1f[_0xea5202-0x1];if('text'==_0x267439['type'])continue;if(_0x267439[_0x2136('0xb')]!=_0x2ebecd[_0x2136('0xb')])continue;if(!_0x47ddd9[_0x2136('0xde')](_0x2ebecd['item'])||_0x47ddd9[_0x2136('0xd0')](_0x2ebecd[_0x2136('0xdd')]))continue;if(!_0x47ddd9[_0x2136('0xde')](_0x267439['item'])||_0x47ddd9['isLimit'](_0x267439[_0x2136('0xdd')]))continue;if((_0x46fc1f[_0xea5202][_0x2136('0xbe')]||_0x46fc1f[_0xea5202][_0x2136('0xc0')])&&_0x46fc1f[_0xea5202-0x1][_0x2136('0x89')])_0x4901fd=_0x46fc1f[_0xea5202],_0xa08fa0=_0x46fc1f[_0xea5202-0x1],_0x5bf071=_0xea5202-0x1;else{if(!_0x46fc1f[_0xea5202][_0x2136('0x89')]||!_0x46fc1f[_0xea5202-0x1][_0x2136('0xbe')]&&!_0x46fc1f[_0xea5202-0x1][_0x2136('0xc0')])continue;_0x4901fd=_0x46fc1f[_0xea5202-0x1],_0xa08fa0=_0x46fc1f[_0xea5202],_0x5bf071=_0xea5202;}const _0x315b90=_0x4901fd[_0x2136('0xa5')]==_0xa08fa0['level'],_0x2e3d1d=Math[_0x2136('0x4e')](_0x4901fd[_0x2136('0xa5')])<Math[_0x2136('0x4e')](_0xa08fa0[_0x2136('0xa5')])&&0x0==_0xa08fa0['distance'];(_0x315b90||_0x2e3d1d)&&(_0x2d35fc[_0x2136('0x76')](_0xa08fa0['id'],_0x4901fd['id']),_0x46fc1f['splice'](_0x5bf071,0x1),_0xea5202--,_0x4901fd[_0x2136('0xbe')]=!0x1);}for(let _0x522d0e=0x0;_0x522d0e<_0x46fc1f[_0x2136('0x81')];_0x522d0e++)_0x2d35fc[_0x2136('0x25')](_0x46fc1f[_0x522d0e]['pairId'])&&(_0x46fc1f[_0x522d0e]['pairId']=_0x2d35fc['get'](_0x46fc1f[_0x522d0e]['pairId']));}[_0x2136('0xd7')](_0x454ac4){const _0x3eb278=new Set(_0x454ac4[_0x2136('0x66')](_0xb24be5=>_0xb24be5['id']));for(let _0x51c751=0x0;_0x51c751<_0x454ac4['length'];_0x51c751++)_0x3eb278[_0x2136('0x25')](_0x454ac4[_0x51c751][_0x2136('0x128')])||0x0==_0x454ac4[_0x51c751][_0x2136('0xae')]||(_0x454ac4[_0x51c751][_0x2136('0x3')]=!0x0);return _0x454ac4[_0x2136('0xf8')](_0x471dda=>!_0x471dda[_0x2136('0x3')]);}[_0x2136('0x100')](_0x226bd1){const _0xd67801=new Set();for(let _0x2676ce=0x0;_0x2676ce<_0x226bd1['length'];_0x2676ce++){if(_0xd67801[_0x2136('0x25')](_0x226bd1[_0x2676ce]['id'])&&_0x226bd1[_0x2676ce][_0x2136('0x89')]&&(_0x226bd1[_0x2676ce]['isIncorrect']=!0x0),_0x226bd1[_0x2676ce][_0x2136('0x3')])continue;if(0x0==_0x226bd1[_0x2676ce][_0x2136('0xae')])continue;if(_0x2136('0xc8')!=_0x226bd1[_0x2676ce]['type'])continue;if(null==_0x226bd1[_0x2676ce]['pairId'])continue;let _0x36308b=_0x2676ce+0x1,_0x36c9f1=0x0;for(;_0x226bd1[_0x36308b]['id']!=_0x226bd1[_0x2676ce]['pairId'];)'elementStart'==_0x226bd1[_0x36308b]['type']?_0x36c9f1++:'elementEnd'==_0x226bd1[_0x36308b]['type']&&_0x36c9f1--,_0x36308b++;if(0x0!=_0x36c9f1){if(_0x226bd1[_0x2676ce][_0x2136('0x89')])_0x226bd1[_0x2676ce][_0x2136('0x3')]=!0x0;else for(;_0x36308b!=_0x2676ce;)_0x226bd1[_0x36308b][_0x2136('0x89')]&&0x0!=_0x226bd1[_0x36308b]['distance']&&(_0x226bd1[_0x36308b][_0x2136('0x3')]=!0x0,_0xd67801[_0x2136('0x4')](_0x226bd1[_0x36308b][_0x2136('0x128')])),_0x36308b--;}}return _0x226bd1[_0x2136('0xf8')](_0x1a88de=>!_0x1a88de[_0x2136('0x3')]);}[_0x2136('0x4c')](_0x4ea6e6){const _0x36f73b=this[_0x2136('0x54')]['model'][_0x2136('0x6f')];for(let _0xda4fa3=0x0;_0xda4fa3<_0x4ea6e6[_0x2136('0x81')];_0xda4fa3++){if(!(_0x4ea6e6[_0xda4fa3][_0x2136('0xbe')]||_0x4ea6e6[_0xda4fa3][_0x2136('0xc0')]||_0x4ea6e6[_0xda4fa3][_0x2136('0x89')]||_0x4ea6e6[_0xda4fa3][_0x2136('0xa3')]))continue;if(0x0==_0x4ea6e6[_0xda4fa3][_0x2136('0xae')])continue;const _0x518d7a=_0x4ea6e6[_0xda4fa3][_0x2136('0xdd')];_0x36f73b[_0x2136('0xde')](_0x518d7a)||_0x36f73b['isLimit'](_0x518d7a)||(_0x4ea6e6[_0xda4fa3][_0x2136('0xbe')]&&delete _0x4ea6e6[_0xda4fa3][_0x2136('0xbe')],_0x4ea6e6[_0xda4fa3]['isAddSuggestion']&&delete _0x4ea6e6[_0xda4fa3][_0x2136('0xc0')],_0x4ea6e6[_0xda4fa3][_0x2136('0xa3')]&&delete _0x4ea6e6[_0xda4fa3][_0x2136('0xa3')],_0x4ea6e6[_0xda4fa3][_0x2136('0x89')]&&(_0x4ea6e6[_0xda4fa3]['isIncorrect']=!0x0));}return _0x4ea6e6['filter'](_0x240440=>!_0x240440[_0x2136('0x3')]);}[_0x2136('0xac')](_0x2f2445,_0x324029,_0x2f056e){const _0x172178=new _0x526ef0(),_0x414890=[],_0x4de6a3=new Map(),_0x5f49c7=this['editor'][_0x2136('0x48')],_0x16cf3d=_0x5f49c7[_0x2136('0x6f')],_0x5e7492=[_0x172178],_0x333cc6={},_0x688dab={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24b59b=null;const _0x2b579d=[0x0];for(let _0x54d6f2=0x0;_0x54d6f2<_0x2f2445[_0x2136('0x81')];_0x54d6f2++){let _0x351349,_0x29b5ae;if(_0x2136('0xc8')===_0x2f2445[_0x54d6f2][_0x2136('0xb')]){_0x351349=_0x5f49c7[_0x2136('0xf4')](_0x172178,_0x2b579d);const _0x3d2220=new _0x506657(_0x2f2445[_0x54d6f2][_0x2136('0xdd')][_0x2136('0x42')],_0x2f2445[_0x54d6f2][_0x2136('0xdd')][_0x2136('0x10')]());_0x5e7492[0x0][_0x2136('0xbc')](_0x3d2220),_0x2b579d['push'](0x0),_0x5e7492[_0x2136('0x119')](_0x3d2220),_0x29b5ae=_0x5f49c7[_0x2136('0xf4')](_0x172178,_0x2b579d),_0x24b59b=null;}else{if(_0x2136('0x120')===_0x2f2445[_0x54d6f2][_0x2136('0xb')])_0x5e7492[_0x2136('0xa2')](),_0x351349=_0x5f49c7[_0x2136('0xf4')](_0x172178,_0x2b579d),_0x2b579d[_0x2136('0x16')](),_0x2b579d[_0x2b579d['length']-0x1]++,_0x29b5ae=_0x5f49c7['createPositionFromPath'](_0x172178,_0x2b579d),_0x24b59b=null;else{if(_0x351349=_0x5f49c7[_0x2136('0xf4')](_0x172178,_0x2b579d),_0x24b59b&&_0x3b3640(_0x24b59b,_0x2f2445[_0x54d6f2][_0x2136('0xdd')]))_0x24b59b[_0x2136('0x11')]+=_0x2f2445[_0x54d6f2][_0x2136('0xdd')][_0x2136('0x57')];else{const _0x12d5fb=new _0x7c5852(_0x2f2445[_0x54d6f2][_0x2136('0xdd')]['data'],_0x2f2445[_0x54d6f2][_0x2136('0xdd')][_0x2136('0x10')]());_0x5e7492[0x0][_0x2136('0xbc')](_0x12d5fb),_0x24b59b=_0x12d5fb;}_0x2b579d[_0x2b579d[_0x2136('0x81')]-0x1]+=_0x2f2445[_0x54d6f2][_0x2136('0xdd')]['offsetSize'],_0x29b5ae=_0x5f49c7['createPositionFromPath'](_0x172178,_0x2b579d);}}for(const _0x4a1cce of _0x2f2445[_0x54d6f2][_0x2136('0xd9')])_0x4de6a3[_0x2136('0x76')](_0x4a1cce,{'start':_0x351349,'end':null});_0x214693(_0x2136('0xa3'),_0x54d6f2,_0x351349,_0x29b5ae),_0x214693(_0x2136('0xc0'),_0x54d6f2,_0x351349,_0x29b5ae),_0x214693(_0x2136('0x89'),_0x54d6f2,_0x351349,_0x29b5ae),_0x214693(_0x2136('0xbe'),_0x54d6f2,_0x351349,_0x29b5ae);for(const _0x2c1012 of _0x2f2445[_0x54d6f2][_0x2136('0x10c')]){_0x4de6a3['get'](_0x2c1012)[_0x2136('0xd3')]=_0x29b5ae;}}for(const [_0x491bcb,_0x240e92]of _0x4de6a3){const _0x2b9df3=this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0xf')](_0x240e92[_0x2136('0x91')],_0x240e92[_0x2136('0xd3')]);_0x172178[_0x2136('0x5e')][_0x2136('0x76')](_0x491bcb,_0x2b9df3);}return _0x414890[_0x2136('0x2b')]((_0x457221,_0x40926e)=>{const _0x2076e7=_0x172178[_0x2136('0x5e')][_0x2136('0x112')](_0x2136('0x1c')+_0x457221['id']),_0x113e47=_0x172178[_0x2136('0x5e')]['get'](_0x2136('0x1c')+_0x40926e['id']);return _0x2076e7['start'][_0x2136('0x92')](_0x113e47[_0x2136('0x91')])?-0x1:_0x2076e7[_0x2136('0x91')][_0x2136('0x111')](_0x113e47['start'])?0x1:_0x2076e7[_0x2136('0xd3')][_0x2136('0x92')](_0x113e47[_0x2136('0xd3')])?-0x1:_0x2076e7[_0x2136('0xd3')][_0x2136('0x111')](_0x113e47['end'])?0x1:_0x2136('0x4')===_0x457221[_0x2136('0xb')]?-0x1:0x1;}),{'root':_0x172178,'changes':_0x414890};function _0x214693(_0x590762,_0x2be225,_0x2531b2,_0x33175e){const _0x1e9d71=!!_0x2f2445[_0x2be225][_0x590762],_0x86e68e=_0x1e9d71?_0x2f2445[_0x2be225][_0x590762][_0x2136('0xf5')]:null,_0x867ae4=_0x2be225===_0x2f2445[_0x2136('0x81')]-0x1,_0x176184=_0x688dab[_0x590762][0x0],_0x45994d=_0x16cf3d['isObject'](_0x2f2445[_0x2be225]['item']);!_0x333cc6[_0x590762]&&_0x1e9d71?_0x333cc6[_0x590762]={'start':_0x2531b2,'tapeItem':_0x2f2445[_0x2be225],'userId':_0x86e68e,'type':_0x590762}:_0x333cc6[_0x590762]&&!_0x1e9d71?(_0x333cc6[_0x590762][_0x2136('0xd3')]=_0x2531b2,_0x519cc1(_0x333cc6[_0x590762]),_0x333cc6[_0x590762]=null):_0x333cc6[_0x590762]&&_0x1e9d71&&_0x333cc6[_0x590762][_0x2136('0xf5')]!==_0x86e68e&&(_0x333cc6[_0x590762]['end']=_0x2531b2,_0x176184&&_0x176184[_0x2136('0xf5')]===_0x333cc6[_0x590762][_0x2136('0xf5')]||_0x519cc1(_0x333cc6[_0x590762]),_0x333cc6[_0x590762]={'start':_0x2531b2,'tapeItem':_0x2f2445[_0x2be225],'userId':_0x86e68e,'type':_0x590762}),_0x333cc6[_0x590762]&&_0x45994d&&(_0x2136('0xc8')!==_0x2f2445[_0x2be225][_0x2136('0xb')]||_0x176184&&_0x176184[_0x2136('0xf5')]===_0x86e68e||_0x688dab[_0x590762][_0x2136('0x119')]({'userId':_0x86e68e,'object':_0x2f2445[_0x2be225][_0x2136('0xdd')],'change':_0x333cc6[_0x590762]}),'elementEnd'===_0x2f2445[_0x2be225][_0x2136('0xb')]&&_0x176184&&_0x176184[_0x2136('0x1a')]===_0x2f2445[_0x2be225][_0x2136('0xdd')]&&(_0x688dab[_0x590762][_0x2136('0xa2')](),_0x333cc6[_0x590762]=_0x176184[_0x2136('0x32')])),_0x333cc6[_0x590762]&&_0x867ae4&&(_0x333cc6[_0x590762][_0x2136('0xd3')]=_0x33175e,_0x519cc1(_0x333cc6[_0x590762]),_0x333cc6[_0x590762]=null);}function _0x519cc1({start:_0x4f0a15,end:_0x3ca47e,tapeItem:_0x12e9be,userId:_0x477ba3,type:_0x4764cb}){const _0xcedbb6=_0x12e9be['item'],_0x57f35e=_0x5f49c7[_0x2136('0x6f')]['isBlock'](_0xcedbb6)&&!_0x5f49c7[_0x2136('0x6f')][_0x2136('0xd0')](_0xcedbb6),_0x333ef8=_0x4f0a15[_0x2136('0x85')]==_0x3ca47e[_0x2136('0x116')]&&_0x3ca47e[_0x2136('0x108')];if(_0x57f35e&&_0x333ef8)return;const _0x5676c2=_0x5f49c7['createRange'](_0x4f0a15,_0x3ca47e),_0x385276=_0x324029['get'](_0x477ba3),_0xefd12=new _0x3ff98c({'author':_0x385276,'type':_0x2136('0xbe')==_0x4764cb||_0x2136('0xc0')==_0x4764cb?_0x2136('0x4'):_0x2136('0x73'),'data':{'isSuggestion':'isAddSuggestion'==_0x4764cb||_0x2136('0xa3')==_0x4764cb},'createdAt':new Date(),'rootName':_0x2f056e});_0x414890[_0x2136('0xc6')](_0xefd12),_0x172178[_0x2136('0x5e')]['set'](_0x2136('0x1c')+_0xefd12['id'],_0x5676c2);}function _0x3b3640(_0x5d09d4,_0x4f32fe){const _0x3352af=_0x5d09d4['getAttributes'](),_0x12cfd2=_0x4f32fe[_0x2136('0x10')]();for(const _0x2b212e of _0x3352af){if(_0x2b212e[0x1]!==_0x4f32fe[_0x2136('0xad')](_0x2b212e[0x0]))return!0x1;_0x12cfd2[_0x2136('0x8')]();}return _0x12cfd2[_0x2136('0x8')]()[_0x2136('0xaa')];}}['_setConversion'](){this[_0x2136('0x54')]['conversion'][_0x2136('0x4b')]('upcast')['dataToMarker']({'view':'revision'}),this[_0x2136('0x54')][_0x2136('0xe3')]['for']('editingDowncast')[_0x2136('0xe4')]({'model':_0x2136('0xdc'),'view':_0x4bcd41=>{const _0x274aac=_0x4bcd41[_0x2136('0xcc')][_0x2136('0x53')](':')[0x1],_0x5967d8=this[_0x2136('0x3c')](_0x274aac);if(!_0x5967d8)return null;const _0x36d56a=_0x2136('0x4')==_0x5967d8[_0x2136('0xb')]?_0x2136('0x12'):'deletion',_0x592b82=[_0x2136('0x114'),_0x2136('0x75')+_0x36d56a];return _0x5967d8[_0x2136('0x57')]['isSuggestion']&&_0x592b82[_0x2136('0xc6')](_0x2136('0x75')+_0x36d56a+_0x2136('0xeb')),this[_0x2136('0xf3')]==_0x5967d8&&_0x592b82['push'](_0x2136('0xef')),{'classes':_0x592b82,'attributes':{'data-change-id':_0x274aac}};}}),this[_0x2136('0x54')][_0x2136('0xe3')][_0x2136('0x4b')]('upcast')[_0x2136('0x4')](_0x364b23=>{_0x364b23['on']('element:pre',(_0x543f80,_0x1fe480,_0x1c81a2)=>{const _0x21336a=_0x1fe480[_0x2136('0x21')][_0x2136('0x8c')](0x0);if(!_0x21336a||!_0x21336a['is'](_0x2136('0x5c'),'code'))return;if(!_0x1c81a2[_0x2136('0x30')][_0x2136('0xba')](_0x21336a,{'attributes':[_0x2136('0xf7'),_0x2136('0x11e')]}))return;const _0x4cb3a6=_0x1fe480['modelRange'][_0x2136('0x91')][_0x2136('0x85')];_0x1c81a2[_0x2136('0x6d')][_0x2136('0x49')](_0x2136('0xf7'),_0x21336a[_0x2136('0xad')](_0x2136('0xf7')),_0x4cb3a6),_0x1c81a2[_0x2136('0x6d')][_0x2136('0x49')](_0x2136('0x11e'),_0x21336a['getAttribute'](_0x2136('0x11e')),_0x4cb3a6);},{'priority':_0x2136('0x71')});}),this['editor'][_0x2136('0xe3')]['for'](_0x2136('0x41'))['add'](_0x4d77af=>{_0x4d77af['on'](_0x2136('0x5c'),(_0x521ed5,_0x44ee7c,_0xf9975a)=>{if(!_0xf9975a[_0x2136('0x30')][_0x2136('0xba')](_0x44ee7c['viewItem'],{'attributes':[_0x2136('0xf7'),'vid_end']}))return;if(_0x44ee7c[_0x2136('0x7a')]['isCollapsed'])return;const _0x37f3ee=_0x44ee7c[_0x2136('0x7a')][_0x2136('0x91')]['nodeAfter'];_0x37f3ee[_0x2136('0x46')](_0x2136('0xf7'))||_0x37f3ee[_0x2136('0x46')](_0x2136('0x106'))||(_0xf9975a[_0x2136('0x6d')][_0x2136('0x49')](_0x2136('0xf7'),_0x44ee7c[_0x2136('0x21')][_0x2136('0xad')](_0x2136('0xf7')),_0x37f3ee),_0xf9975a[_0x2136('0x6d')][_0x2136('0x49')](_0x2136('0x11e'),_0x44ee7c[_0x2136('0x21')][_0x2136('0xad')](_0x2136('0x11e')),_0x37f3ee));},{'priority':'low'});}),this['editor'][_0x2136('0xe3')][_0x2136('0x4b')]('upcast')['elementToAttribute']({'view':{'name':_0x2136('0x2c'),'attributes':{'vid':!0x0}},'model':{'key':_0x2136('0x106'),'value':_0x16aa98=>_0x16aa98['getAttribute']('vid')}}),this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0x6f')]['on']('checkAttribute',(_0x54f9c9,[,_0x3f0719])=>{['vid_start',_0x2136('0x11e'),'vid'][_0x2136('0xce')](_0x3f0719)&&(_0x54f9c9[_0x2136('0x15')]=!0x0,_0x54f9c9[_0x2136('0x9d')]());},{'priority':_0x2136('0xab')}),this[_0x2136('0x54')][_0x2136('0xe3')][_0x2136('0x4b')]('dataDowncast')[_0x2136('0x4')](_0x3794ca=>{_0x3794ca['on']('attribute:vid',(_0x330899,_0x34e5dd,_0x53c128)=>{if('\x20'!=_0x34e5dd[_0x2136('0xdd')]['data']||_0x34e5dd[_0x2136('0xdd')][_0x2136('0x116')]['maxOffset']>0x1)return;if(!_0x53c128[_0x2136('0x30')][_0x2136('0xba')](_0x34e5dd['item'],_0x330899['name']))return;const _0x9f9019=_0x53c128[_0x2136('0x6d')],_0x25b769=_0x53c128[_0x2136('0xb2')][_0x2136('0xf6')](_0x34e5dd[_0x2136('0x6b')]);_0x9f9019[_0x2136('0x8e')](_0x25b769,_0x9f9019[_0x2136('0x1e')](_0x2136('0x2c')));});}),this['editor'][_0x2136('0xe3')]['for'](_0x2136('0x43'))[_0x2136('0x9b')]({'model':_0x2136('0xdc')}),this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xa9')]['on'](_0x2136('0xd5'),function(_0x5871de){const _0x6ce660=_0x5871de[_0x2136('0xa0')]['get'](_0x2136('0x55'));return(_0x4e7e66,_0x51c255,_0x27195d)=>{const _0x379c8f=_0x51c255[_0x2136('0xcc')][_0x2136('0x53')](':')[0x1],_0x364c90=_0x6ce660[_0x2136('0x3c')](_0x379c8f);if(!_0x364c90)return null;const _0x24fb83='add'==_0x364c90[_0x2136('0xb')]?'split':_0x2136('0x27');if(!_0x27195d[_0x2136('0x30')][_0x2136('0x7b')](_0x51c255['markerRange'],_0x4e7e66['name']))return;const _0x1ec2ba=_0x51c255[_0x2136('0xbf')][_0x2136('0x96')](),_0x50fd79=_0x51c255[_0x2136('0xbf')][_0x2136('0x91')],_0x5b53d6=_0x5871de['model'][_0x2136('0x6f')];let _0x545cd9=null,_0x581433=null,_0x28f62e=!0x1,_0x1a9737=!0x1;for(const _0x58b72f of _0x1ec2ba){const _0x2f6885=_0x58b72f[_0x2136('0xdd')];_0x28f62e=_0x28f62e||_0x5b53d6[_0x2136('0x82')](_0x2f6885);const _0x574f5f=_0x27195d[_0x2136('0xb2')]['toViewElement'](_0x2f6885);if(_0x574f5f&&_0x574f5f[_0x2136('0x4d')](_0x2136('0x6a')))return;_0x2136('0x120')==_0x58b72f[_0x2136('0xb')]&&(_0x5b53d6['isBlock'](_0x2f6885)&&!_0x5b53d6[_0x2136('0xd0')](_0x2f6885)&&(_0x2f6885[_0x2136('0xf2')]||_0x50fd79[_0x2136('0x8d')]?_0x545cd9&&_0x545cd9[_0x2136('0x116')]==_0x2f6885||(_0x545cd9=_0x2f6885,_0x1ed112(_0x58b72f['previousPosition']),_0x1a9737=!0x0):_0x581433=_0x581433||_0x58b72f[_0x2136('0x62')]));}function _0x1ed112(_0x2cfee0){const _0x5f2569=_0x27195d[_0x2136('0x6d')][_0x2136('0x87')](_0x2136('0x2c'),{'class':_0x2136('0x75')+_0x24fb83}),_0x3592f0=_0x27195d[_0x2136('0xb2')][_0x2136('0x10d')](_0x2cfee0);_0x364c90[_0x2136('0x57')][_0x2136('0x94')]&&_0x27195d[_0x2136('0x6d')]['addClass'](_0x2136('0x75')+_0x24fb83+'-new',_0x5f2569),_0x6ce660[_0x2136('0xf3')]==_0x364c90&&_0x27195d[_0x2136('0x6d')]['addClass'](_0x2136('0xef'),_0x5f2569),_0x27195d[_0x2136('0x6d')][_0x2136('0x9c')](_0x3592f0,_0x5f2569),_0x27195d[_0x2136('0xb2')][_0x2136('0xbd')](_0x5f2569,_0x51c255['markerName']);}_0x28f62e||_0x1a9737||!_0x581433||_0x1ed112(_0x581433);};}(this[_0x2136('0x54')]),{'priority':_0x2136('0x99')}),this['editor'][_0x2136('0x68')][_0x2136('0xa9')]['on'](_0x2136('0x93'),(_0x181ab8,_0x2edf21,_0x332ed6)=>{const _0x517153=_0x332ed6[_0x2136('0xb2')]['markerNameToElements'](_0x2edf21[_0x2136('0xcc')]);if(_0x517153)for(const _0x1a63bb of _0x517153)(_0x1a63bb[_0x2136('0x60')](_0x2136('0x98'))||_0x1a63bb[_0x2136('0x60')]('ck-suggestion-marker-merge'))&&(_0x332ed6[_0x2136('0xb2')][_0x2136('0x7c')](_0x1a63bb,_0x2edf21['markerName']),_0x332ed6[_0x2136('0x6d')][_0x2136('0x73')](_0x1a63bb));},{'priority':_0x2136('0x99')}),this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xa9')]['on'](_0x2136('0xd5'),(_0x4b97b7,_0x317b12,_0x409a95)=>{const _0x28d2b3=_0x317b12['markerName'][_0x2136('0x53')](':')[0x1],_0x3be5d3=this['_getChangeFromId'](_0x28d2b3);if(!_0x3be5d3)return null;const _0x37842b='add'==_0x3be5d3['type']?_0x2136('0x53'):'merge';if(_0x409a95[_0x2136('0x30')][_0x2136('0x7b')](_0x317b12[_0x2136('0xbf')],_0x4b97b7['name']))for(const _0x58a7a3 of _0x317b12[_0x2136('0xbf')]['getItems']()){if(!_0x58a7a3['is'](_0x2136('0x5c'),_0x2136('0x13')))continue;const _0x43c474=_0x409a95[_0x2136('0x6d')]['createUIElement'](_0x2136('0x2c'),{'class':_0x2136('0x75')+_0x37842b}),_0x5d7e9c=_0x409a95[_0x2136('0xb2')]['toViewPosition'](this['editor'][_0x2136('0x48')][_0x2136('0x11b')](_0x58a7a3));_0x3be5d3[_0x2136('0x57')][_0x2136('0x94')]&&_0x409a95[_0x2136('0x6d')]['addClass'](_0x2136('0x75')+_0x37842b+_0x2136('0xeb'),_0x43c474),this[_0x2136('0xf3')]==_0x3be5d3&&_0x409a95['writer'][_0x2136('0x3d')](_0x2136('0xef'),_0x43c474),_0x409a95[_0x2136('0x6d')][_0x2136('0x9c')](_0x5d7e9c,_0x43c474),_0x409a95[_0x2136('0xb2')]['bindElementToMarker'](_0x43c474,_0x317b12[_0x2136('0xcc')]);}},{'priority':_0x2136('0x99')}),this[_0x2136('0x54')][_0x2136('0x48')]['document']['on'](_0x2136('0x32'),()=>{this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xd6')][_0x2136('0x32')](_0x44d69a=>{for(const _0x10eedc of this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0x59')][_0x2136('0x77')]()){const _0x4ff6e3=this['editor']['model'][_0x2136('0x59')]['getRoot'](_0x10eedc),_0x4fc5d6=this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xd6')]['document'][_0x2136('0x10f')](_0x10eedc);if(_0x4fc5d6){const _0x24422d=_0x4ff6e3[_0x2136('0xad')](_0x2136('0x123'));if(_0x44d69a[_0x2136('0xe5')]('data-change-id',_0x4fc5d6),_0x44d69a[_0x2136('0x97')](_0x2136('0xcb'),_0x4fc5d6),_0x44d69a[_0x2136('0x97')](_0x2136('0x31'),_0x4fc5d6),_0x44d69a[_0x2136('0x97')](_0x2136('0x10b'),_0x4fc5d6),_0x24422d){const _0x1e4ae1=this['_getChangeFromId'](_0x24422d);if(!_0x1e4ae1)return null;_0x44d69a[_0x2136('0x49')](_0x2136('0x17'),_0x24422d,_0x4fc5d6),_0x44d69a[_0x2136('0x3d')](_0x2136('0xe2')+_0x1e4ae1['type'],_0x4fc5d6),this[_0x2136('0xf3')]==_0x1e4ae1&&_0x44d69a['addClass'](_0x2136('0x10b'),_0x4fc5d6);}}}});}),this[_0x2136('0x54')]['conversion'][_0x2136('0x4b')](_0x2136('0x41'))[_0x2136('0xc2')]({'view':_0x2136('0x38'),'model':_0x11c729=>_0x2136('0x0')+_0x11c729,'converterPriority':_0x2136('0xab')}),this[_0x2136('0x54')]['conversion'][_0x2136('0x4b')]('upcast')['dataToMarker']({'view':_0x2136('0x2a'),'model':_0x1bb53b=>_0x2136('0x7e')+_0x1bb53b,'converterPriority':'highest'}),this[_0x2136('0x54')][_0x2136('0xe3')][_0x2136('0x4b')]('dataDowncast')[_0x2136('0x9b')]({'model':_0x2136('0x110'),'view':_0xae216d=>({'name':_0x2136('0xb0')+_0xae216d,'group':'revision-suggestion'}),'converterPriority':_0x2136('0xab')}),this[_0x2136('0x54')][_0x2136('0xe3')][_0x2136('0x4b')]('editingDowncast')[_0x2136('0xe4')]({'model':_0x2136('0x110'),'view':_0x126bee=>{const _0x214bb0=_0x126bee[_0x2136('0xcc')][_0x2136('0x53')](':')[0x1];return'insertion'!=_0x214bb0&&'deletion'!=_0x214bb0?null:{'classes':[_0x2136('0x8b'),_0x2136('0x40')+_0x214bb0]};}}),this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xa9')]['on'](_0x2136('0x102'),et(this['editor'],_0x2136('0x27')),{'priority':_0x2136('0x99')}),this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xa9')]['on'](_0x2136('0x11d'),et(this[_0x2136('0x54')],_0x2136('0x53')),{'priority':_0x2136('0x99')}),this['editor']['editing'][_0x2136('0xa9')]['on'](_0x2136('0x86'),(_0x2e7fc7,_0x4b2305,_0x572dc9)=>{const _0x233508=_0x572dc9['mapper'][_0x2136('0x2d')](_0x4b2305[_0x2136('0xcc')]);if(_0x233508)for(const _0x19f65e of _0x233508)_0x19f65e['is'](_0x2136('0xa4'))&&(_0x572dc9[_0x2136('0xb2')]['unbindElementFromMarkerName'](_0x19f65e,_0x4b2305[_0x2136('0xcc')]),_0x572dc9['writer'][_0x2136('0x73')](_0x19f65e));},{'priority':_0x2136('0x99')});}[_0x2136('0x3c')](_0x33b3df){return this[_0x2136('0x28')][_0x2136('0x112')](_0x33b3df);}[_0x2136('0x37')](_0x355e31){return this[_0x2136('0xc9')]&&this[_0x2136('0xc9')][_0x2136('0xb6')](),this[_0x2136('0xc9')]=new _0x164776(this[_0x2136('0x54')]['locale'],_0x355e31),this['_changeView'];}[_0x2136('0x9f')](){this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0x59')][_0x2136('0xa')]['observeMarkers'](_0x2136('0xdc')),this['on']('change:activeView',(_0x3fbfc5,_0x286482,_0x3938dc,_0x5f5257)=>{_0x5f5257&&this[_0x2136('0x103')][_0x2136('0x73')](_0x5f5257),_0x3938dc&&(this[_0x2136('0x103')][_0x2136('0x4')]({'view':_0x3938dc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x397c82=this[_0x2136('0x54')]['editing'],_0x3793e9=this['_getChangeFromId'](_0x3938dc[_0x2136('0xe9')]);let _0xc9af25;if(_0x3793e9[_0x2136('0x57')][_0x2136('0x79')]){const _0x2db94f=_0x397c82[_0x2136('0xd6')]['getDomRoot'](_0x3793e9[_0x2136('0x5')]);_0xc9af25=Array[_0x2136('0xdb')](_0x2db94f[_0x2136('0xd2')]());}else{const _0x2c0881=this['editor']['model'][_0x2136('0x5e')][_0x2136('0x112')]('revision:'+_0x3938dc['changeId']);_0xc9af25=Array[_0x2136('0xdb')](_0x397c82[_0x2136('0xb2')][_0x2136('0x2d')](_0x2c0881[_0x2136('0x42')]))[_0x2136('0x66')](_0x71f126=>_0x397c82['view']['domConverter'][_0x2136('0x3e')](_0x71f126))[_0x2136('0x66')](_0x21ff67=>Array['from'](_0x21ff67[_0x2136('0xd2')]()))['flat']();}if(!this[_0x2136('0x9e')])return _0xc9af25[0x0];return _0xc9af25[_0x2136('0xc')](_0x525c60=>_0x525c60['top']-0x3<=this[_0x2136('0x9e')]['y']&&_0x525c60['bottom']+0x3>=this[_0x2136('0x9e')]['y']&&_0x525c60[_0x2136('0x78')]-0x3<=this[_0x2136('0x9e')]['x']&&_0x525c60['right']+0x3>=this['_activeViewTarget']['x'])||_0xc9af25[0x0];}}}),this['_balloon'][_0x2136('0x11c')]('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1189b1,_0x776291,_0x39c0c5,_0x5ab483)=>{this['activeView']=_0x39c0c5?this[_0x2136('0x37')](_0x39c0c5):null,this[_0x2136('0x54')]['model']['change'](()=>{const _0x562686=this[_0x2136('0x54')]['editing'];_0x5ab483&&(_0x5ab483['data'][_0x2136('0x79')]?_0x562686[_0x2136('0xd6')]['change'](_0x114ed7=>{_0x114ed7[_0x2136('0x97')](_0x2136('0x10b'),_0x562686[_0x2136('0xd6')][_0x2136('0x59')][_0x2136('0x10f')](_0x5ab483[_0x2136('0x5')]));}):_0x562686[_0x2136('0x45')]('revision:'+_0x5ab483['id'])),_0x39c0c5&&(_0x39c0c5[_0x2136('0x57')][_0x2136('0x79')]?_0x562686[_0x2136('0xd6')][_0x2136('0x32')](_0x1538be=>{_0x1538be[_0x2136('0x3d')]('ck-revision-history-root--active',_0x562686[_0x2136('0xd6')][_0x2136('0x59')][_0x2136('0x10f')](_0x39c0c5[_0x2136('0x5')]));}):_0x562686[_0x2136('0x45')](_0x2136('0x1c')+_0x39c0c5['id']));});}),this[_0x2136('0xdf')](this[_0x2136('0x54')]['editing'][_0x2136('0xd6')][_0x2136('0x59')],_0x2136('0xaf'),(_0x389fe4,_0x21ce01)=>{if(this[_0x2136('0xf3')])return;const _0x538828=this['_findChangeIdFromDomTarget'](_0x21ce01[_0x2136('0x104')]),_0x4a9205=this[_0x2136('0x28')]['get'](_0x538828);_0x4a9205?(this[_0x2136('0x9e')]={'x':_0x21ce01[_0x2136('0x10a')]['x'],'y':_0x21ce01[_0x2136('0x10a')]['y']},this[_0x2136('0xfa')]=this[_0x2136('0x37')](_0x4a9205)):(this[_0x2136('0x9e')]=null,this['activeView']=null);}),this[_0x2136('0xdf')](this[_0x2136('0x54')][_0x2136('0x68')][_0x2136('0xd6')][_0x2136('0x59')],_0x2136('0xf1'),(_0xf4eead,_0x847099)=>{const _0x5cfb29=this[_0x2136('0x6')](_0x847099[_0x2136('0x104')]),_0x4d3644=this[_0x2136('0x28')]['get'](_0x5cfb29);_0x4d3644?(this[_0x2136('0x9e')]={'x':_0x847099[_0x2136('0x10a')]['x'],'y':_0x847099[_0x2136('0x10a')]['y']},_0x4d3644===this[_0x2136('0xf3')]?this[_0x2136('0x103')][_0x2136('0x11f')]():this[_0x2136('0xf3')]=_0x4d3644):(this['_activeViewTarget']=null,this[_0x2136('0xf3')]=null);});}[_0x2136('0x6')](_0x12e7eb){do{const _0x98c3dc=_0x12e7eb['getAttribute']('data-change-id');if(_0x98c3dc)return _0x98c3dc;_0x12e7eb=_0x12e7eb[_0x2136('0x116')];}while(_0x12e7eb);return null;}[_0x2136('0x22')](){this[_0x2136('0x54')][_0x2136('0x48')][_0x2136('0x32')](_0x5bdfea=>{for(const _0x2978aa of this[_0x2136('0x54')]['model'][_0x2136('0x5e')])_0x5bdfea[_0x2136('0x2e')](_0x2978aa);});}}function et(_0x569ff9,_0x4bf58c){return(_0x1d350a,_0x29fe0e,_0x40eb31)=>{if(!_0x40eb31[_0x2136('0x30')][_0x2136('0x7b')](_0x29fe0e['markerRange'],_0x1d350a[_0x2136('0x42')]))return;const _0x112000=_0x29fe0e[_0x2136('0xbf')]['getWalker'](),_0x57f2cf=_0x29fe0e[_0x2136('0xbf')][_0x2136('0x91')],_0xc55f1=_0x569ff9[_0x2136('0x48')]['schema'];let _0x4c9dc9=null,_0x9858eb=null,_0x394cd5=!0x1,_0x1ac655=!0x1;for(const _0x4549b0 of _0x112000){const _0x459511=_0x4549b0['item'];_0x394cd5=_0x394cd5||_0xc55f1[_0x2136('0x82')](_0x459511);const _0x9ea624=_0x40eb31[_0x2136('0xb2')][_0x2136('0x3a')](_0x459511);if(_0x9ea624&&_0x9ea624[_0x2136('0x4d')](_0x2136('0x6a')))return;_0x2136('0x120')==_0x4549b0['type']&&(_0xc55f1['isBlock'](_0x459511)&&!_0xc55f1[_0x2136('0xd0')](_0x459511)&&(_0x459511[_0x2136('0xf2')]||_0x57f2cf[_0x2136('0x8d')]?_0x4c9dc9&&_0x4c9dc9['parent']==_0x459511||(_0x4c9dc9=_0x459511,_0x32e775(_0x4549b0[_0x2136('0x62')]),_0x1ac655=!0x0):_0x9858eb=_0x9858eb||_0x4549b0[_0x2136('0x62')]));}function _0x32e775(_0x5cba6){const _0x318bec=_0x40eb31[_0x2136('0xb2')][_0x2136('0x10d')](_0x5cba6),_0x76facf=_0x40eb31[_0x2136('0x6d')][_0x2136('0x87')]('span',{'class':_0x2136('0x40')+_0x4bf58c});_0x40eb31[_0x2136('0x6d')][_0x2136('0x9c')](_0x318bec,_0x76facf),_0x40eb31['mapper']['bindElementToMarker'](_0x76facf,_0x29fe0e[_0x2136('0xcc')]);}_0x394cd5||_0x1ac655||!_0x9858eb||_0x32e775(_0x9858eb);};}export class RestoreRevisionCommand extends _0x335097{constructor(_0xfc9755){super(_0xfc9755);const _0x188e59=_0xfc9755[_0x2136('0xa0')][_0x2136('0x112')](d);this[_0x2136('0xc3')]=!0x1,this[_0x2136('0xdf')](_0x188e59,'change:isReady',()=>this['refresh']()),this[_0x2136('0xdf')](_0x188e59,_0x2136('0xcd'),()=>this[_0x2136('0x36')]());}[_0x2136('0x56')](){const _0x1b3110=this[_0x2136('0x54')],_0x12e3e6=_0x1b3110['plugins'][_0x2136('0x112')](d),_0x5e488b=_0x12e3e6[_0x2136('0x3f')]?_0x12e3e6['diff'][_0x2136('0x118')]:null;_0x1b3110[_0x2136('0xfb')][_0x2136('0x112')]('revisionHistory')[_0x2136('0xc4')](_0x5e488b);}[_0x2136('0x36')](){const {isReady:_0x27c6c1,isEnabled:_0x568bc7}=this[_0x2136('0x54')]['plugins'][_0x2136('0x112')](d);this[_0x2136('0xd8')]=_0x27c6c1&&_0x568bc7;}}export class ShowChangeCommand extends _0x335097{constructor(_0x4fec61,{direction:_0x141ed4}){super(_0x4fec61);const _0x3e5051=_0x4fec61['plugins'][_0x2136('0x112')](d);this[_0x2136('0xc3')]=!0x1,this[_0x2136('0xa6')]=_0x2136('0x29')===_0x141ed4?0x1:-0x1,this[_0x2136('0xdf')](_0x3e5051,_0x2136('0x117'),()=>this[_0x2136('0x36')]()),this[_0x2136('0xdf')](_0x3e5051,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3e5051,_0x2136('0x1d'),()=>this[_0x2136('0x36')]());}[_0x2136('0x56')](){const _0x420d7d=this[_0x2136('0x54')],_0x5836dc=_0x420d7d[_0x2136('0xa0')][_0x2136('0x112')](d),{isNavigationMode:_0xb85712,currentChangeNumber:_0x260431}=_0x5836dc;let _0x4d2586;if(_0x5836dc['activeChange']=_0xb85712?_0x5836dc[_0x2136('0xee')][_0x2136('0x2f')]['get'](_0x260431+this[_0x2136('0xa6')]):_0x5836dc[_0x2136('0xee')]['changes']['first'],_0x5836dc[_0x2136('0xf3')][_0x2136('0x57')][_0x2136('0x79')])_0x4d2586=_0x420d7d[_0x2136('0x68')][_0x2136('0xd6')][_0x2136('0x51')](_0x5836dc[_0x2136('0xf3')][_0x2136('0x5')]);else{const _0x5f014b=_0x420d7d[_0x2136('0x48')][_0x2136('0x5e')]['get'](_0x2136('0x1c')+_0x5836dc[_0x2136('0xf3')]['id']);_0x4d2586=_0x39674b(_0x420d7d[_0x2136('0x68')],_0x5f014b);}_0x4d0bd3({'target':_0x4d2586,'viewportOffset':0x28});}[_0x2136('0x36')](){const {isNavigationMode:_0x58b22b,currentChangeNumber:_0x4bbe96,numberOfChanges:_0x19c93f,isReady:_0x39bfa0,isEnabled:_0x21daa8}=this[_0x2136('0x54')]['plugins']['get'](d);this[_0x2136('0xd8')]=!!(_0x21daa8&&_0x39bfa0&&_0x19c93f)&&(!_0x58b22b||(0x1===this[_0x2136('0xa6')]?_0x4bbe96<_0x19c93f-0x1:_0x4bbe96>0x0));}}
23
+ const _0x1f53=['text','merge','bind','_removeRevisionMarkers','set','roots','attributesBefore','_appendChild','markerNameToElements','isAttached','isBlock','ck-suggestion-marker-split','object','attachChange','elementStart','isLimit','includes','attributesAfter','_initInteractions','isRemoved','createPositionBefore','_cleanUp','from','useFillerType','removeClass','markers','createAttributeElement','revision-suggestion','refresh','editingDowncast','nextSibling','getIndex','authors','name','data','_balloon','_makeTape','keys','clear','toViewPosition','hasClass','isIncorrect','next','oldRevisionId','insert','forceDisabled','change:activeChange','add','item','_markMismatchedRemovedTags','remove','catch','ck-suggestion-preview-marker-','_markSuggestions','checkAttribute','isEqual','getRootNames','downcastDispatcher','_getChangeFromId','adapter','for','element:pre','backward','index','change:numberOfChanges','code','ck-suggestion-marker--active','activeView','split','attribute:vid','level','getRevision','bindElementToMarker','revision-end','delete','revision-suggestion:','indexOf','isObject','findIndex','markerToHighlight','markerToData','isBefore','getChild','_makeModelFromTape','_changeView','POSITIVE_INFINITY','newRevisionId','_joinTapes','concat','change:activeView','_step','changes','_removeUnsupportedChanges','pairId','listenTo','maxOffset','error','dataToMarker','compare','removeMarker:revision-suggestion','revision-start','nextPosition','nodeAfter','distance','string','map','abs','toViewElement','startIndex','forward','isSuggestion','suggestion:','first','domEvent','affectsData','right','ck-suggestion-marker-','upcast','_fixObsoleteTags','startsWith','markersEnd','ck-suggestion-preview-marker','hasAttribute','createUIElement','detachRoot','values','get','revision','_getDiff','RevisionViewer','activeChange','dataDowncast','addMarker:revision-suggestion:deletion','endIndex','push','commands','consumable','markerRange','document','config','showStack','view','_getViewForChange','change','loadRevisionData','-new','restoreRevision','ck-revision-history-root--active','_removeMissingPairs','editor','done','target','change:isEnabled','all','destroy','end','selection','then','revision:','_processTape','revisionHistoryAttachChange','top','sort','isReady','range','WidgetToolbarRepository','ck-suggestion-marker-merge','addMarker:revision-suggestion:insertion','setAttribute','mousedown','element','schema','plugins','isContent','init','markersStart','editing','data-change-id','isAtEnd','vid_end','getRevisionRootsAttributes','start','createRange','shift','isEnabled','deletion','has','addRevisionData','_setDistance','_threeWayMerge','vid','processor','_markMarkers','modelRange','collaboration.channelId','slice','change:isReady','resolve','_changeIdToChange','model','filter','vid_start','addRoot','mapper','_getRevisionsRange','toViewRange','userId','removeAttribute','_data','deletions','test','markerName','locale','createPositionFromPath','span','addHighlight','diffData','previousPosition','getRoot','uiElement','rootName','revisionHistoryLabel','parent','softBreak','requires','getAttributes','getWalker','revision-viewer','_findChangeIdFromDomTarget','type','isAddSuggestion','addMarker:revision','restoreRevisionCallback','elementToAttribute','_sortAndFilterDiffChanges','getAttribute','execute','_activeViewTarget','showPreviousChange','forEach','getClientRects','showNextChange','changeId','unbindElementFromMarkerName','viewItem','ck-revision-history-root-add','children','_update','splice','insertions','isAdded','_markInsertions','_getViewObj','revisionHistory','addRevision','consume','mouseover','attributes','side','writer','insertion','ck-editor__editable__overlay','ck-revision-history-root-remove','length','isAfter','revision-comment:','diff','marked','high','isRemoveSuggestion','low','unshift','conversion','_setConversion','highest','addClass','offsetSize','isOnRoot','removeMarker:revision','domConverter','elementEnd','repository','getDomRoot','enqueueChange'];(function(_0x4334f2,_0x1f53d2){const _0x55d98e=function(_0x481fd0){while(--_0x481fd0){_0x4334f2['push'](_0x4334f2['shift']());}};_0x55d98e(++_0x1f53d2);}(_0x1f53,0x17e));const _0x55d9=function(_0x4334f2,_0x1f53d2){_0x4334f2=_0x4334f2-0x0;let _0x55d98e=_0x1f53[_0x4334f2];return _0x55d98e;};import{Plugin as _0x2d00d0,Command as _0x306e87}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2eaf4a}from'ckeditor5/src/utils';import{ContextualBalloon as _0x47dd80}from'ckeditor5/src/ui';import{DocumentFragment as _0x516649,Element as _0x3c019d,Text as _0x36c2e4,ViewDocumentFragment as _0x4615a6,ViewText as _0x4d5d1b,ViewElement as _0x43c320,ViewContainerElement as _0x23894f,ViewAttributeElement as _0x35b023,ViewEmptyElement as _0xe5ffd4,ViewRawElement as _0x4d2f14,ViewUIElement as _0x305c09}from'ckeditor5/src/engine';import{Users as _0x10cfa1,getMarkerDomElement as _0x4edb92}from'ckeditor5-collaboration/src/collaboration-core';import _0x38408b from'./ui/revisionviewer/changedetailsview';import _0xdfaa65 from'./revisionsrepository';import _0x568b9f from'./changeitem';import{default as _0x4205c9}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x38a019}from'lodash-es';const tt={'c':_0x23894f,'a':_0x35b023,'e':_0xe5ffd4,'r':_0x4d2f14,'u':_0x305c09};export default class d extends _0x2d00d0{static get['pluginName'](){return'RevisionViewer';}static get[_0x55d9('0x7e')](){return[_0x10cfa1,_0x47dd80,_0xdfaa65];}constructor(_0x52fceb){super(_0x52fceb),this[_0x55d9('0xb7')]=this[_0x55d9('0x33')][_0x55d9('0x4a')][_0x55d9('0x1c')]('RevisionsRepository'),this['set'](_0x55d9('0x20'),null),this[_0x55d9('0xbe')]('activeView',null),this[_0x55d9('0x8b')]=null,this[_0x55d9('0xbe')]('diff',null),this['set'](_0x55d9('0x41'),!0x1),this[_0x55d9('0xbe')](_0x55d9('0x56'),!0x0),this['on'](_0x55d9('0x36'),(_0x1cc017,_0x3490e9,_0x5caa0b)=>{this[_0x55d9('0x20')]=null,this[_0x55d9('0xfd')]=null,this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x2d')](_0x9a0739=>{for(const _0x360e89 of this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x28')][_0x55d9('0xbf')])_0x5caa0b?_0x9a0739[_0x55d9('0xd2')](_0x55d9('0xa3'),_0x360e89):_0x9a0739['addClass']('ck-editor__editable__overlay',_0x360e89);});}),this[_0x55d9('0xbc')]('isNavigationMode')['to'](this,'activeChange',_0x177918=>null!==_0x177918),this[_0x55d9('0xbc')]('currentChangeNumber')['to'](this,_0x55d9('0x41'),this,_0x55d9('0xa8'),this,_0x55d9('0x20'),(_0x3fda69,_0x384f04,_0x52abb3)=>_0x3fda69&&_0x52abb3?_0x384f04[_0x55d9('0x115')][_0x55d9('0xd9')](_0x52abb3):0x0),this[_0x55d9('0xbc')]('numberOfChanges')['to'](this,'isReady',this,_0x55d9('0xa8'),(_0x317d06,_0x463cf7)=>_0x317d06?_0x463cf7['changes'][_0x55d9('0xa5')]:0x0),this['_changeView']=null,this[_0x55d9('0x64')]=new Map(),this[_0x55d9('0xf5')]=null,this[_0x55d9('0xdd')]=this[_0x55d9('0x33')]['plugins'][_0x55d9('0x1c')](_0x47dd80);}[_0x55d9('0x4c')](){const _0x53eac7=this['editor'],_0xe6b9a2=new ShowChangeCommand(_0x53eac7,{'direction':_0x55d9('0xf8')}),_0x31caed=new ShowChangeCommand(_0x53eac7,{'direction':_0x55d9('0xb')});(_0x53eac7[_0x55d9('0x25')][_0x55d9('0xe9')](_0x55d9('0x8c'),_0xe6b9a2),_0x53eac7[_0x55d9('0x25')][_0x55d9('0xe9')](_0x55d9('0x8f'),_0x31caed),_0x53eac7[_0x55d9('0x25')][_0x55d9('0xe9')](_0x55d9('0x30'),new RestoreRevisionCommand(_0x53eac7)),this['on'](_0x55d9('0xfa'),()=>{_0xe6b9a2[_0x55d9('0xd6')](),_0x31caed[_0x55d9('0xd6')]();}),this['_setConversion'](),this[_0x55d9('0xcc')](),_0x53eac7['enableReadOnlyMode']('revision-viewer'),_0x53eac7[_0x55d9('0x4a')][_0x55d9('0x58')](_0x55d9('0x43')))&&_0x53eac7[_0x55d9('0x4a')][_0x55d9('0x1c')](_0x55d9('0x43'))[_0x55d9('0xe7')](_0x55d9('0x81'));}async['getRevisionData'](_0x499213){await this['loadRevisionData'](_0x499213);const _0x1a081e={};for(const _0x58c12b in _0x499213[_0x55d9('0x76')]){if(_0x499213[_0x55d9('0x76')][_0x58c12b][_0x55d9('0xc7')]&&!_0x499213[_0x55d9('0x76')][_0x58c12b][_0x55d9('0xc7')]['isAttached'])continue;const _0x47b8ee=this['_removeRevisionMarkers'](JSON['parse'](_0x499213[_0x55d9('0x76')][_0x58c12b][_0x55d9('0x97')])),_0x30cd07=this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x28')],_0x2322c6=new _0x4615a6(_0x30cd07,_0x47b8ee[_0x55d9('0x7')](_0x328987=>this['_getViewObj'](_0x328987)));this[_0x55d9('0x33')][_0x55d9('0xdc')][_0x55d9('0x5d')]['useFillerType'](_0x55d9('0xa9')),_0x1a081e[_0x58c12b]=this[_0x55d9('0x33')][_0x55d9('0xdc')][_0x55d9('0x5d')]['toData'](_0x2322c6),this[_0x55d9('0x33')][_0x55d9('0xdc')][_0x55d9('0x5d')][_0x55d9('0xd1')]('default');}return _0x1a081e;}async[_0x55d9('0x52')](_0x5287e3){await this['loadRevisionData'](_0x5287e3);const _0x2724ee={};for(const _0x238b74 in _0x5287e3[_0x55d9('0x76')])_0x5287e3[_0x55d9('0x76')][_0x238b74][_0x55d9('0xc7')]&&!_0x5287e3[_0x55d9('0x76')][_0x238b74][_0x55d9('0xc7')][_0x55d9('0xc3')]||(_0x2724ee[_0x238b74]=_0x5287e3[_0x55d9('0x76')][_0x238b74]['attributesAfter']||{});return _0x2724ee;}[_0x55d9('0xbd')](_0x3df067){return(_0x3df067=_0x3df067[_0x55d9('0x66')](_0x29b16f=>!_0x29b16f[_0x55d9('0xdb')]||_0x55d9('0x2')!==_0x29b16f[_0x55d9('0xdb')]&&_0x55d9('0x103')!==_0x29b16f[_0x55d9('0xdb')]))[_0x55d9('0x8d')](_0x1d48ca=>{_0x55d9('0x6')!=typeof _0x1d48ca&&(_0x1d48ca[_0x55d9('0x94')]=this['_removeRevisionMarkers'](_0x1d48ca[_0x55d9('0x94')]),_0x1d48ca['attributes']=_0x1d48ca['attributes'][_0x55d9('0x66')](_0x1d0fb5=>!_0x1d0fb5[0x0][_0x55d9('0x15')]('data-revision-')));}),_0x3df067;}async[_0x55d9('0x0')](_0x353682,_0x2b9c10,_0x1c5908=!0x1){if(!this['isEnabled'])return;const _0x5bbad3=this['diff'],_0x29ae81=this['repository'],_0x19a0d9=_0x55d9('0x6')==typeof _0x353682?_0x29ae81[_0x55d9('0x101')](_0x353682):_0x353682,_0x29be44=_0x55d9('0x6')==typeof _0x2b9c10?_0x29ae81[_0x55d9('0x101')](_0x2b9c10):_0x2b9c10,_0x1f632a=_0x19a0d9['id'],_0x285cca=_0x29be44?_0x29be44['id']:null;if(!_0x1c5908&&this[_0x55d9('0xa8')]&&this[_0x55d9('0xa8')][_0x55d9('0x110')]===_0x1f632a&&this[_0x55d9('0xa8')][_0x55d9('0xe5')]===_0x285cca)return Promise[_0x55d9('0x63')]();this[_0x55d9('0x41')]=!0x1,this[_0x55d9('0xfd')]=null,this[_0x55d9('0x20')]=null,this[_0x55d9('0xa8')]=new _0x4205c9(_0x1f632a,_0x285cca);const _0x56da58=this[_0x55d9('0x6a')](_0x19a0d9,_0x29be44,!0x0)[_0x55d9('0x7')](_0x3290d0=>this[_0x55d9('0x2e')](_0x3290d0));return _0x56da58[_0x55d9('0x24')](new Promise(_0x2f55ad=>{setTimeout(_0x2f55ad,0x14);})),Promise[_0x55d9('0x37')](_0x56da58)['then'](()=>{if(!this[_0x55d9('0x56')])return;this[_0x55d9('0xcf')]();const _0x167b0b=this[_0x55d9('0x1e')](_0x1f632a,_0x285cca);for(const _0x1b8599 of _0x167b0b[_0x55d9('0x115')])this[_0x55d9('0x64')][_0x55d9('0xbe')](_0x1b8599['id'],_0x1b8599);this['editor'][_0x55d9('0x65')][_0x55d9('0xb9')]({'isUndoable':!0x1},_0x32cd8a=>{for(const _0x189c0a of this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x28')][_0x55d9('0xf2')]())_0x32cd8a[_0x55d9('0x1a')](_0x189c0a);for(const _0x563f90 of Object['keys'](_0x167b0b[_0x55d9('0x65')])){const _0xb0c4cf=_0x32cd8a[_0x55d9('0x68')](_0x563f90);for(const _0x28c66f of Object[_0x55d9('0xdf')](_0x167b0b[_0x55d9('0x9f')][_0x563f90]))_0x32cd8a[_0x55d9('0x46')](_0x28c66f,_0x167b0b[_0x55d9('0x9f')][_0x563f90][_0x28c66f],_0xb0c4cf);_0x32cd8a['insert'](_0x167b0b['model'][_0x563f90],_0xb0c4cf,0x0);}}),this['diff']['_setChanges'](this[_0x55d9('0x88')](_0x167b0b[_0x55d9('0x115')])),this[_0x55d9('0x41')]=!0x0;})[_0x55d9('0xed')](_0x35b412=>{console[_0x55d9('0x11a')](_0x35b412),this[_0x55d9('0xcf')](),_0x5bbad3&&(this[_0x55d9('0xa8')]=_0x5bbad3),this[_0x55d9('0x41')]=!0x0;});}[_0x55d9('0x59')](_0x3b2799,_0x1555e9){const _0x5df309=this[_0x55d9('0xb7')]['createRevision'](_0x3b2799);return _0x5df309['on'](_0x55d9('0x95'),(_0x20e33d,_0x24328c,_0x14bb9c)=>_0x1555e9(_0x24328c,_0x14bb9c,_0x5df309)),this[_0x55d9('0xb7')][_0x55d9('0x9c')](_0x5df309),_0x5df309;}['loadRevisionData'](_0x50e64b){if(!_0x50e64b||_0x50e64b[_0x55d9('0x76')])return Promise['resolve']();{const _0x315db7=this[_0x55d9('0x33')]['config'][_0x55d9('0x1c')](_0x55d9('0x60'));return this[_0x55d9('0xf5')][_0x55d9('0x101')]({'channelId':_0x315db7,'revisionId':_0x50e64b['id']})[_0x55d9('0x3b')](_0x27585a=>{_0x50e64b[_0x55d9('0x95')]({'diffData':_0x27585a[_0x55d9('0x76')]},!0x0);});}}['_cleanUp'](){this[_0x55d9('0x20')]=null,this['_cleanMarkers'](),this[_0x55d9('0x10e')]&&this[_0x55d9('0x10e')][_0x55d9('0x38')](),this[_0x55d9('0x10e')]=null,this['_changeIdToChange'][_0x55d9('0xe0')](),this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0xb9')]({'isUndoable':!0x1},_0x13799a=>{for(const _0x915b4d of this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x28')]['getRootNames']())_0x13799a[_0x55d9('0x1a')](_0x915b4d);});}[_0x55d9('0x88')](_0x3f63b9){const _0x5d9d88=[],_0xd7d742=new Map();for(const _0x3e8266 of this['editor'][_0x55d9('0x65')][_0x55d9('0x28')][_0x55d9('0xf2')]()){const _0x2e0803=this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')]['getDomRoot'](_0x3e8266);if(!_0x2e0803)continue;const _0x136ba3=_0x2e0803[_0x55d9('0x8e')]()['item'](0x0);_0x136ba3&&(_0x5d9d88[_0x55d9('0x24')](_0x3e8266),_0xd7d742['set'](_0x3e8266,_0x136ba3));}return _0x5d9d88['sort']((_0x16d1bc,_0x119aaa)=>{const _0x2fb38f=_0xd7d742[_0x55d9('0x1c')](_0x16d1bc),_0x29b5d2=_0xd7d742[_0x55d9('0x1c')](_0x119aaa);return _0x2fb38f['y']-_0x29b5d2['y']||_0x2fb38f['x']-_0x29b5d2['x'];}),(_0x3f63b9=_0x3f63b9[_0x55d9('0x66')](_0x5e623e=>_0x5d9d88[_0x55d9('0xca')](_0x5e623e[_0x55d9('0x7a')])))['sort']((_0x5b176e,_0x503155)=>_0x5d9d88[_0x55d9('0x106')](_0x5b176e[_0x55d9('0x7a')])-_0x5d9d88[_0x55d9('0x106')](_0x503155[_0x55d9('0x7a')])),_0x3f63b9;}[_0x55d9('0xde')](_0x5ee1c7){const _0x10f665=Array[_0x55d9('0xd0')](_0x5ee1c7[_0x55d9('0xd3')])[_0x55d9('0x66')](([_0x3c6b3f,_0x121d91])=>_0x3c6b3f['startsWith'](_0x55d9('0x3c'))&&!_0x121d91['isCollapsed']),_0x3a1f88=Array[_0x55d9('0xd0')](this['editor'][_0x55d9('0x65')]['createRangeIn'](_0x5ee1c7)[_0x55d9('0x80')]({'singleCharacters':!0x0}));if(0x0!=_0x10f665[_0x55d9('0xa5')])for(const _0x451a45 of _0x3a1f88){const [_0x57cd92,_0x105fcc]=_0x10f665[0x0],[,_0x447009,_0x2bf217]=_0x57cd92[_0x55d9('0xfe')](':');if(_0x105fcc[_0x55d9('0x39')][_0x55d9('0xf1')](_0x451a45[_0x55d9('0x3')])&&_0x10f665[_0x55d9('0x55')](),(_0x451a45[_0x55d9('0x77')]['isEqual'](_0x105fcc['start'])||_0x451a45['previousPosition'][_0x55d9('0xa6')](_0x105fcc['start']))&&(_0x55d9('0xa2')==_0x447009?_0x451a45['isAdded']={'userId':_0x2bf217}:_0x55d9('0x57')==_0x447009&&(_0x451a45['isRemoved']={'userId':_0x2bf217})),0x0==_0x10f665['length'])break;}return _0x3a1f88;}['_refreshStartEndIndex'](_0x166265){const _0x110b32=new Map();for(let _0x2c5861=0x0;_0x2c5861<_0x166265[_0x55d9('0xa5')];_0x2c5861++)_0x55d9('0xba')===_0x166265[_0x2c5861][_0x55d9('0x83')]?(_0x166265[_0x2c5861][_0x55d9('0xea')][_0x55d9('0xa')]=_0x2c5861,_0x166265[_0x2c5861][_0x55d9('0xea')][_0x55d9('0x23')]=_0x2c5861):(_0x55d9('0xc8')===_0x166265[_0x2c5861][_0x55d9('0x83')]?_0x166265[_0x2c5861][_0x55d9('0xea')]['startIndex']=_0x2c5861:_0x55d9('0xb6')===_0x166265[_0x2c5861][_0x55d9('0x83')]&&(_0x166265[_0x2c5861][_0x55d9('0xea')][_0x55d9('0x23')]=_0x2c5861),_0x110b32[_0x55d9('0xbe')](_0x166265[_0x2c5861]['id'],_0x2c5861));for(const _0x3c768d of _0x110b32[_0x55d9('0x1b')]())_0x55d9('0xc8')===_0x166265[_0x3c768d][_0x55d9('0x83')]?_0x166265[_0x3c768d][_0x55d9('0xea')][_0x55d9('0x23')]=_0x110b32[_0x55d9('0x1c')](_0x166265[_0x3c768d][_0x55d9('0x117')]):_0x55d9('0xb6')===_0x166265[_0x3c768d][_0x55d9('0x83')]&&(_0x166265[_0x3c768d]['item'][_0x55d9('0xa')]=_0x110b32[_0x55d9('0x1c')](_0x166265[_0x3c768d][_0x55d9('0x117')]));}[_0x55d9('0x3d')](_0xf8d785){for(let _0x306f0d=0x0;_0x306f0d<_0xf8d785[_0x55d9('0xa5')];_0x306f0d++){if(_0x55d9('0xc8')===_0xf8d785[_0x306f0d][_0x55d9('0x83')])_0xf8d785[_0x306f0d][_0x55d9('0xea')][_0x55d9('0xa')]=_0x306f0d;else{if('elementEnd'===_0xf8d785[_0x306f0d][_0x55d9('0x83')]){_0xf8d785[_0x306f0d][_0x55d9('0xea')][_0x55d9('0x23')]=_0x306f0d;const _0x51e43d=_0xf8d785[_0x306f0d]['item'][_0x55d9('0xa')];_0xf8d785[_0x51e43d][_0x55d9('0x117')]=_0xf8d785[_0x306f0d]['id'],_0xf8d785[_0x306f0d][_0x55d9('0x117')]=_0xf8d785[_0x51e43d]['id'];}else _0xf8d785[_0x306f0d][_0x55d9('0xea')]['startIndex']=_0x306f0d,_0xf8d785[_0x306f0d][_0x55d9('0xea')][_0x55d9('0x23')]=_0x306f0d,_0xf8d785[_0x306f0d][_0x55d9('0x117')]=null;}_0xf8d785[_0x306f0d][_0x55d9('0x4d')]||(_0xf8d785[_0x306f0d]['markersStart']=[],_0xf8d785[_0x306f0d][_0x55d9('0x16')]=[]);}}['_markInsertions'](_0x22059c,_0x3b24bf){const _0x1c937b=_0x22059c['filter'](_0x33da60=>!_0x33da60[_0x55d9('0x98')]);for(let _0x267086=0x0;_0x267086<_0x3b24bf[_0x55d9('0xa5')];_0x267086++)_0x3b24bf[_0x267086][_0x55d9('0x98')]&&(_0x1c937b[_0x267086][_0x55d9('0x98')]=_0x3b24bf[_0x267086]['isAdded']);}['_makeModelFromViewString'](_0x7401ee){const _0x7cd794=JSON['parse'](_0x7401ee),_0xc81380=this[_0x55d9('0x33')]['editing'][_0x55d9('0x2b')][_0x55d9('0x28')],_0x117a0e=new _0x4615a6(_0xc81380,_0x7cd794[_0x55d9('0x7')](_0x1d4eb0=>this[_0x55d9('0x9a')](_0x1d4eb0)));return this[_0x55d9('0x33')]['data']['toModel'](_0x117a0e);}[_0x55d9('0x9a')](_0x314004){const _0x1fdef3=this['editor'][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x28')];if(_0x55d9('0x6')==typeof _0x314004)return new _0x4d5d1b(_0x1fdef3,_0x314004);{const _0x33b345=_0x314004[_0x55d9('0x94')]['map'](_0x24d360=>this[_0x55d9('0x9a')](_0x24d360));return new(tt[_0x314004['type']]||_0x43c320)(_0x1fdef3,_0x314004['name'],_0x314004[_0x55d9('0x9f')],_0x33b345);}}[_0x55d9('0x1e')](_0x1c6869,_0xb007ef=null){const _0x767a4e=this['repository'][_0x55d9('0x101')](_0x1c6869),_0x5ee274=_0xb007ef?this[_0x55d9('0xb7')][_0x55d9('0x101')](_0xb007ef):null,_0x42a0a4=this[_0x55d9('0x6a')](_0x767a4e,_0x5ee274),_0x2b2562=_0x42a0a4[_0x42a0a4[_0x55d9('0xa5')]-0x1],_0x2de661=new Map(),_0x3aabb0={'model':{},'attributes':{},'changes':[]},_0x128542=new Set(),_0x5106ee=new Map();for(let _0x56ec78=_0x42a0a4[_0x55d9('0xa5')]-0x1;_0x56ec78>=0x0;_0x56ec78--){const _0x5780c6=_0x42a0a4[_0x56ec78];for(const _0x11ea6f of Object['keys'](_0x5780c6['diffData']))if(_0x5780c6[_0x55d9('0x76')][_0x11ea6f][_0x55d9('0xc7')]){const _0x167b9b=_0x5780c6['diffData'][_0x11ea6f][_0x55d9('0xc7')];_0x167b9b[_0x55d9('0xc3')]?(_0x128542[_0x55d9('0xe9')](_0x11ea6f),_0x5106ee[_0x55d9('0x58')](_0x11ea6f)&&_0x5106ee[_0x55d9('0x1c')](_0x11ea6f)[_0x55d9('0x6c')]==_0x167b9b[_0x55d9('0x6c')]?_0x5106ee[_0x55d9('0x104')](_0x11ea6f):_0x5106ee[_0x55d9('0xbe')](_0x11ea6f,_0x167b9b)):_0x5106ee[_0x55d9('0x58')](_0x11ea6f)?(_0x128542[_0x55d9('0x104')](_0x11ea6f),_0x5106ee[_0x55d9('0x104')](_0x11ea6f)):(_0x128542[_0x55d9('0xe9')](_0x11ea6f),_0x5106ee[_0x55d9('0xbe')](_0x11ea6f,_0x167b9b));}else _0x128542['add'](_0x11ea6f);}for(const _0x4ed814 of _0x128542){const _0x3a7a6e=_0x5106ee[_0x55d9('0x58')](_0x4ed814)&&!_0x5106ee[_0x55d9('0x1c')](_0x4ed814)[_0x55d9('0xc3')];let _0x2297b4=_0x3a7a6e?_0x42a0a4['length']-0x1:0x0;const _0x5d0d12=_0x3a7a6e?-0x1:0x1;for(;_0x42a0a4[_0x2297b4];){const _0x13ad42=_0x42a0a4[_0x2297b4];if(_0x13ad42[_0x55d9('0x76')][_0x4ed814]){const _0x3fee2c=_0x3a7a6e?_0x13ad42['diffData'][_0x4ed814][_0x55d9('0xc0')]:_0x13ad42['diffData'][_0x4ed814][_0x55d9('0xcb')];_0x3aabb0[_0x55d9('0x9f')][_0x4ed814]=_0x3fee2c?_0x38a019(_0x3fee2c):{};break;}_0x2297b4+=_0x5d0d12;}}for(const _0x570b25 of _0x42a0a4){_0x570b25[_0x55d9('0x65')]={};for(const _0x407217 of _0x570b25[_0x55d9('0xda')])_0x2de661[_0x55d9('0xbe')](_0x407217['id'],_0x407217);for(const _0x24e5ed of _0x128542){const _0x38fe65=_0x570b25[_0x55d9('0x76')][_0x24e5ed]?_0x570b25[_0x55d9('0x76')][_0x24e5ed][_0x55d9('0x97')]:'[]',_0x5e3ba3=_0x570b25[_0x55d9('0x76')][_0x24e5ed]?_0x570b25[_0x55d9('0x76')][_0x24e5ed]['deletions']:'[]';_0x570b25['model'][_0x24e5ed]={'insertions':this['_makeModelFromViewString'](_0x38fe65),'deletions':this['_makeModelFromViewString'](_0x5e3ba3)};}}for(const _0x3ab625 of _0x128542){let _0x4aeb77=null,_0x390be2=0x0;const _0xadbc31=new Map(Array[_0x55d9('0xd0')](_0x767a4e[_0x55d9('0x65')][_0x3ab625][_0x55d9('0x97')][_0x55d9('0xd3')])['filter'](([_0x3addd1])=>!_0x3addd1[_0x55d9('0x15')](_0x55d9('0x3c'))));let _0x385693=0x0;for(const _0x13ea67 of _0x42a0a4){const _0x476add=this[_0x55d9('0xde')](_0x13ea67['model'][_0x3ab625][_0x55d9('0x97')]);_0x13ea67==_0x767a4e?(_0x4aeb77=_0x476add,_0x390be2=_0x4aeb77[_0x55d9('0xa5')],_0x4aeb77[_0x55d9('0x8d')](_0x9d2c9b=>{_0x9d2c9b['id']=_0x385693++;}),this[_0x55d9('0x3d')](_0x4aeb77)):this[_0x55d9('0x99')](_0x4aeb77,_0x476add);const _0x59e7e0=_0x4aeb77[_0x55d9('0x66')](_0x1f1dd5=>!_0x1f1dd5[_0x55d9('0x98')])[_0x55d9('0x7')](_0x3e77ce=>_0x3e77ce['id']);let _0x13fac8=0x0;const _0x5474f7=this[_0x55d9('0xde')](_0x13ea67[_0x55d9('0x65')][_0x3ab625][_0x55d9('0x6f')]);_0x5474f7[_0x55d9('0x8d')](_0xd8a21=>{_0xd8a21[_0x55d9('0xcd')]?_0xd8a21['id']=_0x390be2++:_0xd8a21['id']=_0x59e7e0[_0x13fac8++];}),this['_processTape'](_0x5474f7),this['_setDistance'](_0x4aeb77,_0x55d9('0x98')),this[_0x55d9('0x5a')](_0x5474f7,'isRemoved'),_0x13ea67==_0x767a4e&&this[_0x55d9('0x5e')](_0x4aeb77,_0xadbc31),_0x4aeb77=this['_joinTapes'](_0x4aeb77,_0x5474f7),this['_refreshStartEndIndex'](_0x4aeb77),this[_0x55d9('0x5a')](_0x4aeb77,'isRemoved');}_0x4aeb77=_0x4aeb77[_0x55d9('0x66')](_0x31e973=>!(_0x31e973[_0x55d9('0x98')]&&_0x31e973[_0x55d9('0xcd')]));const _0xe71cf=new Map(_0x2b2562[_0x55d9('0x65')][_0x3ab625][_0x55d9('0x6f')]['markers']),_0x375b65=new Set(_0xadbc31[_0x55d9('0xdf')]());for(const _0x38dc2a of _0xe71cf[_0x55d9('0xdf')]())_0x375b65[_0x55d9('0x104')](_0x38dc2a);this[_0x55d9('0xef')](_0x4aeb77,_0x375b65),this['_fixObsoleteTags'](_0x4aeb77),_0x4aeb77=this[_0x55d9('0x32')](_0x4aeb77),_0x4aeb77=this[_0x55d9('0xeb')](_0x4aeb77),_0x4aeb77=this[_0x55d9('0x116')](_0x4aeb77);const {root:_0x1595e1,changes:_0x1d9b7a}=this[_0x55d9('0x10d')](_0x4aeb77,_0x2de661,_0x3ab625);_0x3aabb0[_0x55d9('0x65')][_0x3ab625]=_0x1595e1;const _0x1d3cbe=_0x5106ee[_0x55d9('0x1c')](_0x3ab625);if(_0x1d3cbe){const _0x1b20d0=_0x2de661[_0x55d9('0x1c')](_0x1d3cbe[_0x55d9('0x6c')]),_0x1c172f=new _0x568b9f({'author':_0x1b20d0,'type':_0x1d3cbe['isAttached']?_0x55d9('0xe9'):_0x55d9('0xec'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3ab625});_0x1d9b7a[_0x55d9('0xad')](_0x1c172f),_0x3aabb0[_0x55d9('0x9f')][_0x3ab625]['revisionHistoryAttachChange']=_0x1c172f['id'];}_0x3aabb0['changes']=_0x3aabb0[_0x55d9('0x115')][_0x55d9('0x112')](_0x1d9b7a);}return _0x3aabb0;}[_0x55d9('0x5e')](_0x39fcaf,_0x503af9){for(let _0x288d41=0x0;_0x288d41<_0x39fcaf[_0x55d9('0xa5')];_0x288d41++)for(const [_0x135a80,_0x2b01c6]of _0x503af9)_0x2b01c6['start']['isEqual'](_0x39fcaf[_0x288d41][_0x55d9('0x77')])&&_0x39fcaf[_0x288d41][_0x55d9('0x4d')][_0x55d9('0x24')](_0x135a80),_0x2b01c6[_0x55d9('0x39')][_0x55d9('0xf1')](_0x39fcaf[_0x288d41][_0x55d9('0x3')])&&_0x39fcaf[_0x288d41]['markersEnd']['push'](_0x135a80);}[_0x55d9('0x111')](_0x4fd87e,_0xc01bd4){let _0x50ea7c=[],_0x43f923=0x0,_0x25634b=0x0;for(;_0x43f923<_0x4fd87e[_0x55d9('0xa5')]||_0x25634b<_0xc01bd4[_0x55d9('0xa5')];){const _0x51ed8e=_0x4fd87e[_0x43f923]||{},_0x5a2336=_0xc01bd4[_0x25634b]||{};if(_0x51ed8e['id']==_0x5a2336['id'])_0x43f923++,_0x25634b++,_0x50ea7c[_0x55d9('0x24')](_0x51ed8e);else{if(_0x5a2336[_0x55d9('0xcd')]&&_0x51ed8e[_0x55d9('0x98')]){const {commonTape:_0x47d927,iEnd:_0x5dc2a2,jEnd:_0x41564b}=this[_0x55d9('0x5b')](_0x4fd87e,_0x43f923,_0xc01bd4,_0x25634b);_0x50ea7c=_0x50ea7c[_0x55d9('0x112')](_0x47d927),_0x43f923=_0x5dc2a2,_0x25634b=_0x41564b;}else _0x5a2336[_0x55d9('0xcd')]?(_0x25634b++,_0x50ea7c[_0x55d9('0x24')](_0x5a2336)):(_0x43f923++,_0x50ea7c['push'](_0x51ed8e));}}return _0x50ea7c;}['_markSuggestions'](_0x4096e1,_0x35b0ed){const _0x22651e=[];for(let _0x220d08=0x0;_0x220d08<_0x4096e1[_0x55d9('0xa5')];_0x220d08++){for(let _0x336961=0x0;_0x336961<_0x4096e1[_0x220d08][_0x55d9('0x4d')][_0x55d9('0xa5')];_0x336961++){const _0x3639c4=_0x4096e1[_0x220d08][_0x55d9('0x4d')][_0x336961];if(!_0x35b0ed[_0x55d9('0x58')](_0x3639c4))continue;const {group:_0x28f14a,type:_0x2b5fc7,authorId:_0x399061}=_0x54aadf(_0x3639c4);_0x55d9('0xd5')!=_0x28f14a||_0x55d9('0xa2')!=_0x2b5fc7&&'deletion'!=_0x2b5fc7||(_0x22651e[_0x55d9('0xad')]({'type':_0x2b5fc7,'name':_0x3639c4,'userId':_0x399061}),_0x4096e1[_0x220d08][_0x55d9('0x4d')][_0x55d9('0x96')](_0x336961,0x1),_0x336961--);}_0xcd4bba(_0x4096e1[_0x220d08]);for(let _0x3fda57=0x0;_0x3fda57<_0x4096e1[_0x220d08][_0x55d9('0x16')]['length'];_0x3fda57++){const _0x2c9eb4=_0x4096e1[_0x220d08]['markersEnd'][_0x3fda57];if(!_0x35b0ed[_0x55d9('0x58')](_0x2c9eb4))continue;const {group:_0x5dc47d,type:_0x417502}=_0x54aadf(_0x2c9eb4);if(_0x55d9('0xd5')!=_0x5dc47d||_0x55d9('0xa2')!=_0x417502&&_0x55d9('0x57')!=_0x417502)continue;_0x4096e1[_0x220d08]['markersEnd'][_0x55d9('0x96')](_0x3fda57,0x1),_0x3fda57--;const _0xb827e=_0x22651e[_0x55d9('0x108')](_0x5042fa=>_0x5042fa[_0x55d9('0xdb')]==_0x2c9eb4);_0xb827e>-0x1&&_0x22651e['splice'](_0xb827e,0x1);}}function _0x54aadf(_0x513c8c){const _0xc626cd=_0x513c8c[_0x55d9('0xfe')](':');return{'group':_0xc626cd[0x0],'type':_0xc626cd[0x1],'subType':_0xc626cd['length']>=0x5?_0xc626cd[0x2]:null,'id':_0xc626cd[_0x55d9('0xa5')]<0x5?_0xc626cd[0x2]:_0xc626cd[0x3],'authorId':_0xc626cd[_0x55d9('0xa5')]<0x5?_0xc626cd[0x3]:_0xc626cd[0x4],'markerCount':0x6==_0xc626cd['length']?_0xc626cd[0x5]:null};}function _0xcd4bba(_0x11ad4b){for(let _0x40b245=0x0;_0x40b245<_0x22651e[_0x55d9('0xa5')];_0x40b245++){if(_0x11ad4b[_0x55d9('0x98')]&&_0x55d9('0xa2')==_0x22651e[_0x40b245]['type'])return _0x11ad4b['isAddSuggestion']=_0x22651e[_0x40b245],void delete _0x11ad4b[_0x55d9('0x98')];if(!_0x11ad4b[_0x55d9('0x98')]&&!_0x11ad4b[_0x55d9('0xcd')]&&_0x55d9('0x57')==_0x22651e[_0x40b245]['type'])return void(_0x11ad4b['isRemoveSuggestion']=_0x22651e[_0x40b245]);}}}[_0x55d9('0x5a')](_0x44d850,_0x4b7333){let _0x52e862=0x0,_0x891b59=!0x1;const _0x3cc427=new Map();for(const _0x554b97 of _0x44d850)_0x554b97[_0x4b7333]?_0x891b59&&(_0x52e862++,_0x891b59=!0x1):(_0x52e862++,_0x891b59=!0x0),_0x3cc427[_0x55d9('0xbe')](_0x554b97['id'],_0x52e862);for(let _0x2e5f8c=0x0;_0x2e5f8c<_0x44d850[_0x55d9('0xa5')];_0x2e5f8c++){if(_0x55d9('0xcd')==_0x4b7333&&_0x44d850[_0x2e5f8c]['isAdded']||_0x55d9('0x98')==_0x4b7333&&_0x44d850[_0x2e5f8c][_0x55d9('0xcd')])continue;if(_0x55d9('0xba')==_0x44d850[_0x2e5f8c][_0x55d9('0x83')]){_0x44d850[_0x2e5f8c]['distance']=0x0;continue;}const _0x1f5863=_0x3cc427[_0x55d9('0x1c')](_0x44d850[_0x2e5f8c][_0x55d9('0x117')]),_0x58f681=_0x3cc427[_0x55d9('0x1c')](_0x44d850[_0x2e5f8c]['id']);_0x44d850[_0x2e5f8c][_0x55d9('0x5')]=_0x1f5863-_0x58f681;}}['_getRevisionsRange'](_0x2f327d,_0x3cc0db,_0x471849=!0x1){const _0x138908=[];let _0x330999=this['repository'][_0x55d9('0xd9')](_0x2f327d),_0x59bf62=this['repository'][_0x55d9('0xd9')](_0x3cc0db);for(-0x1==_0x59bf62&&(_0x59bf62=this[_0x55d9('0xb7')]['_revisions'][_0x55d9('0xa5')],_0x471849=!0x1);_0x330999<_0x59bf62;)_0x138908['push'](this['repository']['getRevision'](_0x330999)),_0x330999++;return _0x471849&&_0x138908[_0x55d9('0x24')](this[_0x55d9('0xb7')]['getRevision'](_0x330999)),_0x138908;}['_threeWayMerge'](_0x594b07,_0x2e8f31,_0x4e7550,_0x3bb088){const _0x58ffc2=this['editor'][_0x55d9('0x65')][_0x55d9('0x49')];let _0x3f0539=_0x2e8f31;for(;_0x594b07[_0x3f0539]&&_0x594b07[_0x3f0539]['isAdded'];)_0x3f0539++;let _0x1cab5f=_0x3bb088;for(;_0x4e7550[_0x1cab5f]&&_0x4e7550[_0x1cab5f][_0x55d9('0xcd')];)_0x1cab5f++;_0x1b0761(_0x594b07,_0x2e8f31,_0x3f0539),_0x1b0761(_0x4e7550,_0x3bb088,_0x1cab5f);const _0x375773=_0x4e7550[_0x55d9('0x61')](_0x3bb088,_0x1cab5f)[_0x55d9('0x112')](_0x594b07[_0x55d9('0x61')](_0x2e8f31,_0x3f0539));return _0x375773[_0x55d9('0x40')]((_0x24425b,_0x4d702e)=>_0x24425b[_0x55d9('0xa0')]!=_0x4d702e[_0x55d9('0xa0')]?_0x24425b['side']-_0x4d702e[_0x55d9('0xa0')]:_0x24425b[_0x55d9('0x100')]!=_0x4d702e[_0x55d9('0x100')]?_0x24425b[_0x55d9('0x100')]-_0x4d702e[_0x55d9('0x100')]:_0x24425b[_0x55d9('0x5')]!=_0x4d702e[_0x55d9('0x5')]?_0x4d702e[_0x55d9('0x5')]-_0x24425b[_0x55d9('0x5')]:!!_0x24425b[_0x55d9('0x98')]!=!!_0x4d702e[_0x55d9('0x98')]?-0x1==_0x24425b[_0x55d9('0xa0')]||0x0==_0x24425b['side']?_0x24425b['isAdded']?-0x1:0x1:_0x24425b[_0x55d9('0x98')]?0x1:-0x1:_0x24425b['index']-_0x4d702e[_0x55d9('0xf9')]),{'commonTape':_0x375773,'iEnd':_0x3f0539,'jEnd':_0x1cab5f};function _0x1b0761(_0x4283cf,_0x23d70a,_0x28e85a){let _0xb76358=-0x1,_0x2ef150=Number[_0x55d9('0x10f')],_0x41c6bd=!0x0;for(let _0x1677e0=_0x23d70a;_0x1677e0<_0x28e85a;_0x1677e0++)if(_0x58ffc2['isInline'](_0x4283cf[_0x1677e0]['item'])||(_0x41c6bd=!0x1),_0x4283cf[_0x1677e0][_0x55d9('0xea')][_0x55d9('0xa')]<_0x23d70a&&(_0xb76358=_0x1677e0),_0x4283cf[_0x1677e0][_0x55d9('0xea')][_0x55d9('0x23')]>=_0x28e85a){_0x2ef150=_0x1677e0;break;}_0x41c6bd&&(_0xb76358=_0x28e85a-0x1);for(let _0x464a49=_0x23d70a;_0x464a49<_0x28e85a;_0x464a49++)_0x4283cf[_0x464a49][_0x55d9('0xa0')]=_0x464a49<=_0xb76358?-0x1:_0x464a49<_0x2ef150?0x0:0x1,_0x4283cf[_0x464a49][_0x55d9('0xf9')]=_0x464a49;let _0x55a710=0x0;for(let _0x3fed0b=_0x23d70a;_0x3fed0b<=_0xb76358;_0x3fed0b++)0x0==_0x4283cf[_0x3fed0b]['distance']?_0x4283cf[_0x3fed0b][_0x55d9('0x100')]=_0x55a710:(_0x55a710++,_0x4283cf[_0x3fed0b]['level']=_0x55a710,_0x55a710++);for(let _0x26fb2c=_0x23d70a;_0x26fb2c<_0x28e85a;_0x26fb2c++)0x0==_0x4283cf[_0x26fb2c]['side']&&(_0x4283cf[_0x26fb2c]['level']=_0x55a710);_0x55a710=0x0;for(let _0x149a0=_0x28e85a-0x1;_0x149a0>=_0x2ef150;_0x149a0--)0x0==_0x4283cf[_0x149a0][_0x55d9('0x5')]?_0x4283cf[_0x149a0][_0x55d9('0x100')]=_0x55a710:(_0x55a710--,_0x4283cf[_0x149a0][_0x55d9('0x100')]=_0x55a710,_0x55a710--);}}[_0x55d9('0x14')](_0x4c35d9){const _0x124f2e=new Map(),_0x614c5=this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x49')];for(let _0x219b2d=0x1;_0x219b2d<_0x4c35d9[_0x55d9('0xa5')];_0x219b2d++){let _0x248301,_0x3b7ab5,_0x2438e4;const _0x26d8b2=_0x4c35d9[_0x219b2d],_0x2a5d2c=_0x4c35d9[_0x219b2d-0x1];if(_0x55d9('0xba')==_0x26d8b2[_0x55d9('0x83')])continue;if(_0x26d8b2['type']!=_0x2a5d2c['type'])continue;if(!_0x614c5[_0x55d9('0xc4')](_0x2a5d2c[_0x55d9('0xea')])||_0x614c5[_0x55d9('0xc9')](_0x2a5d2c[_0x55d9('0xea')]))continue;if(!_0x614c5['isBlock'](_0x26d8b2[_0x55d9('0xea')])||_0x614c5[_0x55d9('0xc9')](_0x26d8b2[_0x55d9('0xea')]))continue;if((_0x4c35d9[_0x219b2d]['isAdded']||_0x4c35d9[_0x219b2d][_0x55d9('0x84')])&&_0x4c35d9[_0x219b2d-0x1][_0x55d9('0xcd')])_0x248301=_0x4c35d9[_0x219b2d],_0x3b7ab5=_0x4c35d9[_0x219b2d-0x1],_0x2438e4=_0x219b2d-0x1;else{if(!_0x4c35d9[_0x219b2d]['isRemoved']||!_0x4c35d9[_0x219b2d-0x1][_0x55d9('0x98')]&&!_0x4c35d9[_0x219b2d-0x1]['isAddSuggestion'])continue;_0x248301=_0x4c35d9[_0x219b2d-0x1],_0x3b7ab5=_0x4c35d9[_0x219b2d],_0x2438e4=_0x219b2d;}const _0x1243ae=_0x248301[_0x55d9('0x100')]==_0x3b7ab5[_0x55d9('0x100')],_0x121479=Math[_0x55d9('0x8')](_0x248301[_0x55d9('0x100')])<Math[_0x55d9('0x8')](_0x3b7ab5[_0x55d9('0x100')])&&0x0==_0x3b7ab5[_0x55d9('0x5')];(_0x1243ae||_0x121479)&&(_0x124f2e[_0x55d9('0xbe')](_0x3b7ab5['id'],_0x248301['id']),_0x4c35d9['splice'](_0x2438e4,0x1),_0x219b2d--,_0x248301[_0x55d9('0x98')]=!0x1);}for(let _0x2fe30e=0x0;_0x2fe30e<_0x4c35d9[_0x55d9('0xa5')];_0x2fe30e++)_0x124f2e['has'](_0x4c35d9[_0x2fe30e][_0x55d9('0x117')])&&(_0x4c35d9[_0x2fe30e][_0x55d9('0x117')]=_0x124f2e[_0x55d9('0x1c')](_0x4c35d9[_0x2fe30e][_0x55d9('0x117')]));}[_0x55d9('0x32')](_0x528280){const _0x4471cf=new Set(_0x528280[_0x55d9('0x7')](_0x9d07c0=>_0x9d07c0['id']));for(let _0x401a49=0x0;_0x401a49<_0x528280[_0x55d9('0xa5')];_0x401a49++)_0x4471cf['has'](_0x528280[_0x401a49][_0x55d9('0x117')])||0x0==_0x528280[_0x401a49][_0x55d9('0x5')]||(_0x528280[_0x401a49][_0x55d9('0xe3')]=!0x0);return _0x528280[_0x55d9('0x66')](_0x4424ad=>!_0x4424ad['isIncorrect']);}[_0x55d9('0xeb')](_0x5967b2){const _0x5c7169=new Set();for(let _0x42ef77=0x0;_0x42ef77<_0x5967b2[_0x55d9('0xa5')];_0x42ef77++){if(_0x5c7169[_0x55d9('0x58')](_0x5967b2[_0x42ef77]['id'])&&_0x5967b2[_0x42ef77]['isRemoved']&&(_0x5967b2[_0x42ef77][_0x55d9('0xe3')]=!0x0),_0x5967b2[_0x42ef77]['isIncorrect'])continue;if(0x0==_0x5967b2[_0x42ef77][_0x55d9('0x5')])continue;if(_0x55d9('0xc8')!=_0x5967b2[_0x42ef77][_0x55d9('0x83')])continue;if(null==_0x5967b2[_0x42ef77][_0x55d9('0x117')])continue;let _0x194442=_0x42ef77+0x1,_0x465bb7=0x0;for(;_0x5967b2[_0x194442]['id']!=_0x5967b2[_0x42ef77][_0x55d9('0x117')];)_0x55d9('0xc8')==_0x5967b2[_0x194442][_0x55d9('0x83')]?_0x465bb7++:_0x55d9('0xb6')==_0x5967b2[_0x194442][_0x55d9('0x83')]&&_0x465bb7--,_0x194442++;if(0x0!=_0x465bb7){if(_0x5967b2[_0x42ef77][_0x55d9('0xcd')])_0x5967b2[_0x42ef77][_0x55d9('0xe3')]=!0x0;else for(;_0x194442!=_0x42ef77;)_0x5967b2[_0x194442][_0x55d9('0xcd')]&&0x0!=_0x5967b2[_0x194442][_0x55d9('0x5')]&&(_0x5967b2[_0x194442]['isIncorrect']=!0x0,_0x5c7169[_0x55d9('0xe9')](_0x5967b2[_0x194442][_0x55d9('0x117')])),_0x194442--;}}return _0x5967b2['filter'](_0x5e40c0=>!_0x5e40c0[_0x55d9('0xe3')]);}[_0x55d9('0x116')](_0x5df9a8){const _0x2c16a0=this[_0x55d9('0x33')][_0x55d9('0x65')]['schema'];for(let _0x1652ab=0x0;_0x1652ab<_0x5df9a8[_0x55d9('0xa5')];_0x1652ab++){if(!(_0x5df9a8[_0x1652ab][_0x55d9('0x98')]||_0x5df9a8[_0x1652ab][_0x55d9('0x84')]||_0x5df9a8[_0x1652ab][_0x55d9('0xcd')]||_0x5df9a8[_0x1652ab][_0x55d9('0xab')]))continue;if(0x0==_0x5df9a8[_0x1652ab][_0x55d9('0x5')])continue;const _0x57a227=_0x5df9a8[_0x1652ab][_0x55d9('0xea')];_0x2c16a0[_0x55d9('0xc4')](_0x57a227)||_0x2c16a0[_0x55d9('0xc9')](_0x57a227)||(_0x5df9a8[_0x1652ab][_0x55d9('0x98')]&&delete _0x5df9a8[_0x1652ab][_0x55d9('0x98')],_0x5df9a8[_0x1652ab][_0x55d9('0x84')]&&delete _0x5df9a8[_0x1652ab]['isAddSuggestion'],_0x5df9a8[_0x1652ab][_0x55d9('0xab')]&&delete _0x5df9a8[_0x1652ab][_0x55d9('0xab')],_0x5df9a8[_0x1652ab]['isRemoved']&&(_0x5df9a8[_0x1652ab][_0x55d9('0xe3')]=!0x0));}return _0x5df9a8[_0x55d9('0x66')](_0x2430f4=>!_0x2430f4['isIncorrect']);}[_0x55d9('0x10d')](_0x1f0fc6,_0x3aa2e5,_0x1e635c){const _0x2f29e7=new _0x516649(),_0x44155f=[],_0x47f653=new Map(),_0x17f018=this[_0x55d9('0x33')][_0x55d9('0x65')],_0x3c6ad0=_0x17f018[_0x55d9('0x49')],_0x5d9b63=[_0x2f29e7],_0x585fd5={},_0x285b58={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x34a6be=null;const _0x17ba83=[0x0];for(let _0x354100=0x0;_0x354100<_0x1f0fc6[_0x55d9('0xa5')];_0x354100++){let _0x4c14c3,_0x136665;if('elementStart'===_0x1f0fc6[_0x354100]['type']){_0x4c14c3=_0x17f018['createPositionFromPath'](_0x2f29e7,_0x17ba83);const _0x507e9c=new _0x3c019d(_0x1f0fc6[_0x354100][_0x55d9('0xea')]['name'],_0x1f0fc6[_0x354100]['item'][_0x55d9('0x7f')]());_0x5d9b63[0x0][_0x55d9('0xc1')](_0x507e9c),_0x17ba83[_0x55d9('0x24')](0x0),_0x5d9b63['unshift'](_0x507e9c),_0x136665=_0x17f018[_0x55d9('0x73')](_0x2f29e7,_0x17ba83),_0x34a6be=null;}else{if(_0x55d9('0xb6')===_0x1f0fc6[_0x354100][_0x55d9('0x83')])_0x5d9b63[_0x55d9('0x55')](),_0x4c14c3=_0x17f018['createPositionFromPath'](_0x2f29e7,_0x17ba83),_0x17ba83['pop'](),_0x17ba83[_0x17ba83[_0x55d9('0xa5')]-0x1]++,_0x136665=_0x17f018['createPositionFromPath'](_0x2f29e7,_0x17ba83),_0x34a6be=null;else{if(_0x4c14c3=_0x17f018[_0x55d9('0x73')](_0x2f29e7,_0x17ba83),_0x34a6be&&_0x28b0d0(_0x34a6be,_0x1f0fc6[_0x354100]['item']))_0x34a6be[_0x55d9('0x6e')]+=_0x1f0fc6[_0x354100][_0x55d9('0xea')]['data'];else{const _0x5dd7bd=new _0x36c2e4(_0x1f0fc6[_0x354100][_0x55d9('0xea')]['data'],_0x1f0fc6[_0x354100][_0x55d9('0xea')][_0x55d9('0x7f')]());_0x5d9b63[0x0][_0x55d9('0xc1')](_0x5dd7bd),_0x34a6be=_0x5dd7bd;}_0x17ba83[_0x17ba83[_0x55d9('0xa5')]-0x1]+=_0x1f0fc6[_0x354100][_0x55d9('0xea')][_0x55d9('0xb2')],_0x136665=_0x17f018[_0x55d9('0x73')](_0x2f29e7,_0x17ba83);}}for(const _0x17a084 of _0x1f0fc6[_0x354100][_0x55d9('0x4d')])_0x47f653[_0x55d9('0xbe')](_0x17a084,{'start':_0x4c14c3,'end':null});_0xd6380d(_0x55d9('0xab'),_0x354100,_0x4c14c3,_0x136665),_0xd6380d(_0x55d9('0x84'),_0x354100,_0x4c14c3,_0x136665),_0xd6380d('isRemoved',_0x354100,_0x4c14c3,_0x136665),_0xd6380d(_0x55d9('0x98'),_0x354100,_0x4c14c3,_0x136665);for(const _0x1fc3fa of _0x1f0fc6[_0x354100][_0x55d9('0x16')]){_0x47f653[_0x55d9('0x1c')](_0x1fc3fa)[_0x55d9('0x39')]=_0x136665;}}for(const [_0x1ec631,_0x5706c8]of _0x47f653){const _0x274b80=this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x54')](_0x5706c8['start'],_0x5706c8[_0x55d9('0x39')]);_0x2f29e7[_0x55d9('0xd3')]['set'](_0x1ec631,_0x274b80);}return _0x44155f[_0x55d9('0x40')]((_0x574fa9,_0x324ed9)=>{const _0x232ea2=_0x2f29e7[_0x55d9('0xd3')]['get'](_0x55d9('0x3c')+_0x574fa9['id']),_0x2d06e5=_0x2f29e7['markers'][_0x55d9('0x1c')](_0x55d9('0x3c')+_0x324ed9['id']);return _0x232ea2[_0x55d9('0x53')][_0x55d9('0x10b')](_0x2d06e5[_0x55d9('0x53')])?-0x1:_0x232ea2[_0x55d9('0x53')][_0x55d9('0xa6')](_0x2d06e5[_0x55d9('0x53')])?0x1:_0x232ea2[_0x55d9('0x39')][_0x55d9('0x10b')](_0x2d06e5[_0x55d9('0x39')])?-0x1:_0x232ea2[_0x55d9('0x39')][_0x55d9('0xa6')](_0x2d06e5['end'])?0x1:_0x55d9('0xe9')===_0x574fa9[_0x55d9('0x83')]?-0x1:0x1;}),{'root':_0x2f29e7,'changes':_0x44155f};function _0xd6380d(_0x4767bf,_0x47e6d3,_0x35d63e,_0x12332d){const _0x268e27=!!_0x1f0fc6[_0x47e6d3][_0x4767bf],_0xaa0580=_0x268e27?_0x1f0fc6[_0x47e6d3][_0x4767bf][_0x55d9('0x6c')]:null,_0x5eeaa0=_0x47e6d3===_0x1f0fc6[_0x55d9('0xa5')]-0x1,_0x54900c=_0x285b58[_0x4767bf][0x0],_0x22f5c2=_0x3c6ad0[_0x55d9('0x107')](_0x1f0fc6[_0x47e6d3][_0x55d9('0xea')]);!_0x585fd5[_0x4767bf]&&_0x268e27?_0x585fd5[_0x4767bf]={'start':_0x35d63e,'tapeItem':_0x1f0fc6[_0x47e6d3],'userId':_0xaa0580,'type':_0x4767bf}:_0x585fd5[_0x4767bf]&&!_0x268e27?(_0x585fd5[_0x4767bf][_0x55d9('0x39')]=_0x35d63e,_0xfac230(_0x585fd5[_0x4767bf]),_0x585fd5[_0x4767bf]=null):_0x585fd5[_0x4767bf]&&_0x268e27&&_0x585fd5[_0x4767bf][_0x55d9('0x6c')]!==_0xaa0580&&(_0x585fd5[_0x4767bf][_0x55d9('0x39')]=_0x35d63e,_0x54900c&&_0x54900c['userId']===_0x585fd5[_0x4767bf]['userId']||_0xfac230(_0x585fd5[_0x4767bf]),_0x585fd5[_0x4767bf]={'start':_0x35d63e,'tapeItem':_0x1f0fc6[_0x47e6d3],'userId':_0xaa0580,'type':_0x4767bf}),_0x585fd5[_0x4767bf]&&_0x22f5c2&&(_0x55d9('0xc8')!==_0x1f0fc6[_0x47e6d3][_0x55d9('0x83')]||_0x54900c&&_0x54900c[_0x55d9('0x6c')]===_0xaa0580||_0x285b58[_0x4767bf][_0x55d9('0xad')]({'userId':_0xaa0580,'object':_0x1f0fc6[_0x47e6d3][_0x55d9('0xea')],'change':_0x585fd5[_0x4767bf]}),_0x55d9('0xb6')===_0x1f0fc6[_0x47e6d3][_0x55d9('0x83')]&&_0x54900c&&_0x54900c[_0x55d9('0xc6')]===_0x1f0fc6[_0x47e6d3]['item']&&(_0x285b58[_0x4767bf]['shift'](),_0x585fd5[_0x4767bf]=_0x54900c[_0x55d9('0x2d')])),_0x585fd5[_0x4767bf]&&_0x5eeaa0&&(_0x585fd5[_0x4767bf][_0x55d9('0x39')]=_0x12332d,_0xfac230(_0x585fd5[_0x4767bf]),_0x585fd5[_0x4767bf]=null);}function _0xfac230({start:_0x143277,end:_0x1daf8a,tapeItem:_0xea4bd2,userId:_0x524892,type:_0x434590}){const _0x3b2e19=_0xea4bd2[_0x55d9('0xea')],_0xab6395=_0x17f018[_0x55d9('0x49')][_0x55d9('0xc4')](_0x3b2e19)&&!_0x17f018[_0x55d9('0x49')][_0x55d9('0xc9')](_0x3b2e19),_0xc8c683=_0x143277[_0x55d9('0x4')]==_0x1daf8a[_0x55d9('0x7c')]&&_0x1daf8a['isAtStart'];if(_0xab6395&&_0xc8c683)return;const _0x28713a=_0x17f018[_0x55d9('0x54')](_0x143277,_0x1daf8a),_0x5dc114=_0x3aa2e5[_0x55d9('0x1c')](_0x524892),_0x3d7772=new _0x568b9f({'author':_0x5dc114,'type':'isAdded'==_0x434590||'isAddSuggestion'==_0x434590?_0x55d9('0xe9'):_0x55d9('0xec'),'data':{'isSuggestion':'isAddSuggestion'==_0x434590||'isRemoveSuggestion'==_0x434590},'createdAt':new Date(),'rootName':_0x1e635c});_0x44155f[_0x55d9('0x24')](_0x3d7772),_0x2f29e7['markers'][_0x55d9('0xbe')](_0x55d9('0x3c')+_0x3d7772['id'],_0x28713a);}function _0x28b0d0(_0x1c696e,_0x3981f1){const _0x4063e1=_0x1c696e[_0x55d9('0x7f')](),_0x5a9625=_0x3981f1[_0x55d9('0x7f')]();for(const _0x499f88 of _0x4063e1){if(_0x499f88[0x1]!==_0x3981f1[_0x55d9('0x89')](_0x499f88[0x0]))return!0x1;_0x5a9625[_0x55d9('0xe4')]();}return _0x5a9625['next']()[_0x55d9('0x34')];}}[_0x55d9('0xaf')](){this[_0x55d9('0x33')][_0x55d9('0xae')]['for']('upcast')[_0x55d9('0x11b')]({'view':_0x55d9('0x1d')}),this[_0x55d9('0x33')][_0x55d9('0xae')][_0x55d9('0xf6')](_0x55d9('0xd7'))['markerToHighlight']({'model':'revision','view':_0x17af74=>{const _0x160ec3=_0x17af74[_0x55d9('0x71')][_0x55d9('0xfe')](':')[0x1],_0x53a0cb=this[_0x55d9('0xf4')](_0x160ec3);if(!_0x53a0cb)return null;const _0x40d966=_0x55d9('0xe9')==_0x53a0cb[_0x55d9('0x83')]?'insertion':_0x55d9('0x57'),_0xab011d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x40d966];return _0x53a0cb['data']['isSuggestion']&&_0xab011d['push']('ck-suggestion-marker-'+_0x40d966+'-new'),this[_0x55d9('0x20')]==_0x53a0cb&&_0xab011d['push']('ck-suggestion-marker--active'),{'classes':_0xab011d,'attributes':{'data-change-id':_0x160ec3}};}}),this[_0x55d9('0x33')][_0x55d9('0xae')][_0x55d9('0xf6')](_0x55d9('0x13'))[_0x55d9('0xe9')](_0x2ec92a=>{_0x2ec92a['on'](_0x55d9('0xf7'),(_0xb691da,_0x6734a7,_0x3334a8)=>{const _0x56c487=_0x6734a7[_0x55d9('0x92')][_0x55d9('0x10c')](0x0);if(!_0x56c487||!_0x56c487['is'](_0x55d9('0x48'),_0x55d9('0xfb')))return;if(!_0x3334a8[_0x55d9('0x26')][_0x55d9('0x9d')](_0x56c487,{'attributes':[_0x55d9('0x67'),_0x55d9('0x51')]}))return;const _0x2792dd=_0x6734a7[_0x55d9('0x5f')][_0x55d9('0x53')][_0x55d9('0x4')];_0x3334a8[_0x55d9('0xa1')]['setAttribute'](_0x55d9('0x67'),_0x56c487[_0x55d9('0x89')](_0x55d9('0x67')),_0x2792dd),_0x3334a8['writer'][_0x55d9('0x46')](_0x55d9('0x51'),_0x56c487['getAttribute']('vid_end'),_0x2792dd);},{'priority':_0x55d9('0xac')});}),this[_0x55d9('0x33')][_0x55d9('0xae')][_0x55d9('0xf6')]('upcast')['add'](_0x27c770=>{_0x27c770['on'](_0x55d9('0x48'),(_0xb55838,_0x33a00f,_0x1090e7)=>{if(!_0x1090e7[_0x55d9('0x26')][_0x55d9('0x9d')](_0x33a00f[_0x55d9('0x92')],{'attributes':[_0x55d9('0x67'),_0x55d9('0x51')]}))return;if(_0x33a00f[_0x55d9('0x5f')]['isCollapsed'])return;const _0x57cfde=_0x33a00f[_0x55d9('0x5f')][_0x55d9('0x53')][_0x55d9('0x4')];_0x57cfde[_0x55d9('0x18')](_0x55d9('0x67'))||_0x57cfde[_0x55d9('0x18')](_0x55d9('0x5c'))||(_0x1090e7[_0x55d9('0xa1')][_0x55d9('0x46')]('vid_start',_0x33a00f[_0x55d9('0x92')][_0x55d9('0x89')]('vid_start'),_0x57cfde),_0x1090e7['writer'][_0x55d9('0x46')]('vid_end',_0x33a00f[_0x55d9('0x92')][_0x55d9('0x89')](_0x55d9('0x51')),_0x57cfde));},{'priority':_0x55d9('0xac')});}),this[_0x55d9('0x33')]['conversion'][_0x55d9('0xf6')](_0x55d9('0x13'))[_0x55d9('0x87')]({'view':{'name':_0x55d9('0x74'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1c819d=>_0x1c819d[_0x55d9('0x89')](_0x55d9('0x5c'))}}),this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x49')]['on'](_0x55d9('0xf0'),(_0xe3e950,[,_0x502c4b])=>{[_0x55d9('0x67'),'vid_end',_0x55d9('0x5c')][_0x55d9('0xca')](_0x502c4b)&&(_0xe3e950['return']=!0x0,_0xe3e950['stop']());},{'priority':_0x55d9('0xb0')}),this[_0x55d9('0x33')][_0x55d9('0xae')]['for'](_0x55d9('0x21'))[_0x55d9('0xe9')](_0x221829=>{_0x221829['on'](_0x55d9('0xff'),(_0x392bc2,_0x11b71a,_0x1ee92e)=>{if('\x20'!=_0x11b71a[_0x55d9('0xea')][_0x55d9('0xdc')]||_0x11b71a[_0x55d9('0xea')][_0x55d9('0x7c')][_0x55d9('0x119')]>0x1)return;if(!_0x1ee92e[_0x55d9('0x26')][_0x55d9('0x9d')](_0x11b71a['item'],_0x392bc2[_0x55d9('0xdb')]))return;const _0x2b46c1=_0x1ee92e[_0x55d9('0xa1')],_0x3ca71b=_0x1ee92e[_0x55d9('0x69')][_0x55d9('0x6b')](_0x11b71a[_0x55d9('0x42')]);_0x2b46c1['wrap'](_0x3ca71b,_0x2b46c1[_0x55d9('0xd4')](_0x55d9('0x74')));});}),this[_0x55d9('0x33')]['conversion'][_0x55d9('0xf6')](_0x55d9('0x21'))[_0x55d9('0x10a')]({'model':_0x55d9('0x1d')}),this[_0x55d9('0x33')]['editing'][_0x55d9('0xf3')]['on'](_0x55d9('0x85'),function(_0x7e302e){const _0x3c73dc=_0x7e302e[_0x55d9('0x4a')][_0x55d9('0x1c')](_0x55d9('0x1f'));return(_0x2fd9d3,_0x2d5bfa,_0x37f98a)=>{const _0x2f4ce2=_0x2d5bfa['markerName'][_0x55d9('0xfe')](':')[0x1],_0x5cf46a=_0x3c73dc[_0x55d9('0xf4')](_0x2f4ce2);if(!_0x5cf46a)return null;const _0x571d29=_0x55d9('0xe9')==_0x5cf46a[_0x55d9('0x83')]?'split':_0x55d9('0xbb');if(!_0x37f98a[_0x55d9('0x26')][_0x55d9('0x70')](_0x2d5bfa[_0x55d9('0x27')],_0x2fd9d3[_0x55d9('0xdb')]))return;const _0x5ba377=_0x2d5bfa[_0x55d9('0x27')][_0x55d9('0x80')](),_0x45de4b=_0x2d5bfa[_0x55d9('0x27')][_0x55d9('0x53')],_0x460552=_0x7e302e[_0x55d9('0x65')][_0x55d9('0x49')];let _0x578b6a=null,_0x4f4d14=null,_0xbdaa40=!0x1,_0x107b24=!0x1;for(const _0x541cd9 of _0x5ba377){const _0x51ecb5=_0x541cd9[_0x55d9('0xea')];_0xbdaa40=_0xbdaa40||_0x460552[_0x55d9('0x4b')](_0x51ecb5);const _0x52d579=_0x37f98a[_0x55d9('0x69')][_0x55d9('0x9')](_0x51ecb5);if(_0x52d579&&_0x52d579['getCustomProperty'](_0x55d9('0x75')))return;_0x55d9('0xb6')==_0x541cd9[_0x55d9('0x83')]&&(_0x460552[_0x55d9('0xc4')](_0x51ecb5)&&!_0x460552[_0x55d9('0xc9')](_0x51ecb5)&&(_0x51ecb5[_0x55d9('0xd8')]||_0x45de4b[_0x55d9('0x50')]?_0x578b6a&&_0x578b6a['parent']==_0x51ecb5||(_0x578b6a=_0x51ecb5,_0x34dc18(_0x541cd9[_0x55d9('0x77')]),_0x107b24=!0x0):_0x4f4d14=_0x4f4d14||_0x541cd9[_0x55d9('0x77')]));}function _0x34dc18(_0x18e6f2){const _0x56db3c=_0x37f98a[_0x55d9('0xa1')][_0x55d9('0x19')](_0x55d9('0x74'),{'class':_0x55d9('0x12')+_0x571d29}),_0x564f78=_0x37f98a['mapper'][_0x55d9('0xe1')](_0x18e6f2);_0x5cf46a[_0x55d9('0xdc')][_0x55d9('0xc')]&&_0x37f98a[_0x55d9('0xa1')]['addClass'](_0x55d9('0x12')+_0x571d29+_0x55d9('0x2f'),_0x56db3c),_0x3c73dc[_0x55d9('0x20')]==_0x5cf46a&&_0x37f98a[_0x55d9('0xa1')][_0x55d9('0xb1')](_0x55d9('0xfc'),_0x56db3c),_0x37f98a['writer']['insert'](_0x564f78,_0x56db3c),_0x37f98a[_0x55d9('0x69')][_0x55d9('0x102')](_0x56db3c,_0x2d5bfa['markerName']);}_0xbdaa40||_0x107b24||!_0x4f4d14||_0x34dc18(_0x4f4d14);};}(this[_0x55d9('0x33')]),{'priority':'high'}),this['editor'][_0x55d9('0x4e')][_0x55d9('0xf3')]['on'](_0x55d9('0xb4'),(_0x59f327,_0x973e0f,_0x5ded4e)=>{const _0x28920b=_0x5ded4e['mapper']['markerNameToElements'](_0x973e0f['markerName']);if(_0x28920b)for(const _0x20d700 of _0x28920b)(_0x20d700[_0x55d9('0xe2')](_0x55d9('0xc5'))||_0x20d700[_0x55d9('0xe2')](_0x55d9('0x44')))&&(_0x5ded4e['mapper'][_0x55d9('0x91')](_0x20d700,_0x973e0f['markerName']),_0x5ded4e[_0x55d9('0xa1')][_0x55d9('0xec')](_0x20d700));},{'priority':_0x55d9('0xaa')}),this['editor'][_0x55d9('0x4e')][_0x55d9('0xf3')]['on'](_0x55d9('0x85'),(_0x4c02d4,_0x549c35,_0x3d8e61)=>{const _0x307e89=_0x549c35[_0x55d9('0x71')][_0x55d9('0xfe')](':')[0x1],_0x1a8a18=this[_0x55d9('0xf4')](_0x307e89);if(!_0x1a8a18)return null;const _0x1f6bda=_0x55d9('0xe9')==_0x1a8a18[_0x55d9('0x83')]?'split':_0x55d9('0xbb');if(_0x3d8e61[_0x55d9('0x26')]['test'](_0x549c35[_0x55d9('0x27')],_0x4c02d4[_0x55d9('0xdb')]))for(const _0x399295 of _0x549c35[_0x55d9('0x27')]['getItems']()){if(!_0x399295['is'](_0x55d9('0x48'),_0x55d9('0x7d')))continue;const _0x5f34f3=_0x3d8e61[_0x55d9('0xa1')]['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f6bda}),_0x4f0a4f=_0x3d8e61[_0x55d9('0x69')][_0x55d9('0xe1')](this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0xce')](_0x399295));_0x1a8a18[_0x55d9('0xdc')][_0x55d9('0xc')]&&_0x3d8e61[_0x55d9('0xa1')][_0x55d9('0xb1')](_0x55d9('0x12')+_0x1f6bda+'-new',_0x5f34f3),this[_0x55d9('0x20')]==_0x1a8a18&&_0x3d8e61[_0x55d9('0xa1')][_0x55d9('0xb1')](_0x55d9('0xfc'),_0x5f34f3),_0x3d8e61['writer'][_0x55d9('0xe6')](_0x4f0a4f,_0x5f34f3),_0x3d8e61[_0x55d9('0x69')][_0x55d9('0x102')](_0x5f34f3,_0x549c35[_0x55d9('0x71')]);}},{'priority':'high'}),this[_0x55d9('0x33')][_0x55d9('0x65')]['document']['on'](_0x55d9('0x2d'),()=>{this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')]['change'](_0x3abc35=>{for(const _0x2a920b of this[_0x55d9('0x33')]['model']['document'][_0x55d9('0xf2')]()){const _0x4fdb2f=this['editor'][_0x55d9('0x65')][_0x55d9('0x28')][_0x55d9('0x78')](_0x2a920b),_0x47a293=this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x28')][_0x55d9('0x78')](_0x2a920b);if(_0x47a293){const _0x2e02c9=_0x4fdb2f[_0x55d9('0x89')](_0x55d9('0x3e'));if(_0x3abc35[_0x55d9('0x6d')]('data-change-id',_0x47a293),_0x3abc35[_0x55d9('0xd2')](_0x55d9('0x93'),_0x47a293),_0x3abc35[_0x55d9('0xd2')](_0x55d9('0xa4'),_0x47a293),_0x3abc35[_0x55d9('0xd2')]('ck-revision-history-root--active',_0x47a293),_0x2e02c9){const _0x771198=this['_getChangeFromId'](_0x2e02c9);if(!_0x771198)return null;_0x3abc35[_0x55d9('0x46')](_0x55d9('0x4f'),_0x2e02c9,_0x47a293),_0x3abc35['addClass']('ck-revision-history-root-'+_0x771198[_0x55d9('0x83')],_0x47a293),this[_0x55d9('0x20')]==_0x771198&&_0x3abc35[_0x55d9('0xb1')]('ck-revision-history-root--active',_0x47a293);}}}});}),this['editor'][_0x55d9('0xae')][_0x55d9('0xf6')](_0x55d9('0x13'))['dataToMarker']({'view':'comment','model':_0x17ce1b=>_0x55d9('0xa7')+_0x17ce1b,'converterPriority':'highest'}),this['editor']['conversion'][_0x55d9('0xf6')](_0x55d9('0x13'))[_0x55d9('0x11b')]({'view':'suggestion','model':_0x24f03b=>_0x55d9('0x105')+_0x24f03b,'converterPriority':'highest'}),this[_0x55d9('0x33')][_0x55d9('0xae')][_0x55d9('0xf6')](_0x55d9('0x21'))[_0x55d9('0x10a')]({'model':_0x55d9('0xd5'),'view':_0x6f86cb=>({'name':_0x55d9('0xd')+_0x6f86cb,'group':_0x55d9('0xd5')}),'converterPriority':_0x55d9('0xb0')}),this[_0x55d9('0x33')][_0x55d9('0xae')][_0x55d9('0xf6')](_0x55d9('0xd7'))[_0x55d9('0x109')]({'model':_0x55d9('0xd5'),'view':_0x5b6bed=>{const _0x494b7c=_0x5b6bed[_0x55d9('0x71')][_0x55d9('0xfe')](':')[0x1];return _0x55d9('0xa2')!=_0x494b7c&&_0x55d9('0x57')!=_0x494b7c?null:{'classes':[_0x55d9('0x17'),_0x55d9('0xee')+_0x494b7c]};}}),this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0xf3')]['on'](_0x55d9('0x22'),et(this[_0x55d9('0x33')],_0x55d9('0xbb')),{'priority':_0x55d9('0xaa')}),this['editor'][_0x55d9('0x4e')][_0x55d9('0xf3')]['on'](_0x55d9('0x45'),et(this[_0x55d9('0x33')],_0x55d9('0xfe')),{'priority':'high'}),this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0xf3')]['on'](_0x55d9('0x1'),(_0x18f563,_0x1268c3,_0x83b308)=>{const _0x321cbb=_0x83b308[_0x55d9('0x69')]['markerNameToElements'](_0x1268c3[_0x55d9('0x71')]);if(_0x321cbb)for(const _0x37a988 of _0x321cbb)_0x37a988['is'](_0x55d9('0x79'))&&(_0x83b308[_0x55d9('0x69')][_0x55d9('0x91')](_0x37a988,_0x1268c3[_0x55d9('0x71')]),_0x83b308[_0x55d9('0xa1')][_0x55d9('0xec')](_0x37a988));},{'priority':_0x55d9('0xaa')});}[_0x55d9('0xf4')](_0x2642e0){return this[_0x55d9('0x64')]['get'](_0x2642e0);}[_0x55d9('0x2c')](_0x17cbb8){return this['_changeView']&&this[_0x55d9('0x10e')]['destroy'](),this[_0x55d9('0x10e')]=new _0x38408b(this[_0x55d9('0x33')][_0x55d9('0x72')],_0x17cbb8),this[_0x55d9('0x10e')];}[_0x55d9('0xcc')](){this[_0x55d9('0x33')]['model'][_0x55d9('0x28')][_0x55d9('0x3a')]['observeMarkers'](_0x55d9('0x1d')),this['on'](_0x55d9('0x113'),(_0x4842d4,_0x385a57,_0x423910,_0x231148)=>{_0x231148&&this['_balloon'][_0x55d9('0xec')](_0x231148),_0x423910&&(this[_0x55d9('0xdd')][_0x55d9('0xe9')]({'view':_0x423910,'stackId':_0x55d9('0x7b'),'position':{'target':()=>{const _0x56c298=this['editor'][_0x55d9('0x4e')],_0x157513=this[_0x55d9('0xf4')](_0x423910[_0x55d9('0x90')]);let _0x5b3ad1;if(_0x157513[_0x55d9('0xdc')][_0x55d9('0xb3')]){const _0x343de0=_0x56c298['view']['getDomRoot'](_0x157513[_0x55d9('0x7a')]);_0x5b3ad1=Array['from'](_0x343de0['getClientRects']());}else{const _0x18064a=this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0xd3')][_0x55d9('0x1c')](_0x55d9('0x3c')+_0x423910[_0x55d9('0x90')]);_0x5b3ad1=Array[_0x55d9('0xd0')](_0x56c298['mapper'][_0x55d9('0xc2')](_0x18064a[_0x55d9('0xdb')]))[_0x55d9('0x7')](_0x108309=>_0x56c298[_0x55d9('0x2b')][_0x55d9('0xb5')]['mapViewToDom'](_0x108309))[_0x55d9('0x7')](_0x40d6b7=>Array[_0x55d9('0xd0')](_0x40d6b7[_0x55d9('0x8e')]()))['flat']();}if(!this['_activeViewTarget'])return _0x5b3ad1[0x0];return _0x5b3ad1['find'](_0x3f4ccf=>_0x3f4ccf[_0x55d9('0x3f')]-0x3<=this[_0x55d9('0x8b')]['y']&&_0x3f4ccf['bottom']+0x3>=this[_0x55d9('0x8b')]['y']&&_0x3f4ccf['left']-0x3<=this[_0x55d9('0x8b')]['x']&&_0x3f4ccf[_0x55d9('0x11')]+0x3>=this[_0x55d9('0x8b')]['x'])||_0x5b3ad1[0x0];}}}),this[_0x55d9('0xdd')][_0x55d9('0x2a')](_0x55d9('0x7b')));}),this['on'](_0x55d9('0xe8'),(_0x3c7c35,_0x4e8917,_0x5a2822,_0x356f70)=>{this[_0x55d9('0xfd')]=_0x5a2822?this['_getViewForChange'](_0x5a2822):null,this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x2d')](()=>{const _0x3eb4bd=this[_0x55d9('0x33')][_0x55d9('0x4e')];_0x356f70&&(_0x356f70[_0x55d9('0xdc')][_0x55d9('0xb3')]?_0x3eb4bd[_0x55d9('0x2b')][_0x55d9('0x2d')](_0x516042=>{_0x516042[_0x55d9('0xd2')](_0x55d9('0x31'),_0x3eb4bd[_0x55d9('0x2b')]['document']['getRoot'](_0x356f70[_0x55d9('0x7a')]));}):_0x3eb4bd['reconvertMarker']('revision:'+_0x356f70['id'])),_0x5a2822&&(_0x5a2822[_0x55d9('0xdc')]['isOnRoot']?_0x3eb4bd['view'][_0x55d9('0x2d')](_0x11375a=>{_0x11375a[_0x55d9('0xb1')](_0x55d9('0x31'),_0x3eb4bd[_0x55d9('0x2b')]['document']['getRoot'](_0x5a2822[_0x55d9('0x7a')]));}):_0x3eb4bd['reconvertMarker'](_0x55d9('0x3c')+_0x5a2822['id']));});}),this[_0x55d9('0x118')](this[_0x55d9('0x33')][_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0x28')],_0x55d9('0x9e'),(_0x2710c8,_0x308404)=>{if(this[_0x55d9('0x20')])return;const _0x53a0bd=this[_0x55d9('0x82')](_0x308404[_0x55d9('0x35')]),_0x62b7c3=this[_0x55d9('0x64')][_0x55d9('0x1c')](_0x53a0bd);_0x62b7c3?(this[_0x55d9('0x8b')]={'x':_0x308404[_0x55d9('0xf')]['x'],'y':_0x308404[_0x55d9('0xf')]['y']},this['activeView']=this[_0x55d9('0x2c')](_0x62b7c3)):(this[_0x55d9('0x8b')]=null,this[_0x55d9('0xfd')]=null);}),this[_0x55d9('0x118')](this[_0x55d9('0x33')][_0x55d9('0x4e')]['view']['document'],_0x55d9('0x47'),(_0x430308,_0x1f7cd4)=>{const _0x4ebbfd=this[_0x55d9('0x82')](_0x1f7cd4[_0x55d9('0x35')]),_0x1f59f5=this[_0x55d9('0x64')]['get'](_0x4ebbfd);_0x1f59f5?(this[_0x55d9('0x8b')]={'x':_0x1f7cd4['domEvent']['x'],'y':_0x1f7cd4[_0x55d9('0xf')]['y']},_0x1f59f5===this['activeChange']?this[_0x55d9('0xdd')]['updatePosition']():this[_0x55d9('0x20')]=_0x1f59f5):(this['_activeViewTarget']=null,this[_0x55d9('0x20')]=null);});}[_0x55d9('0x82')](_0x48cb23){do{const _0x5d2f2d=_0x48cb23['getAttribute'](_0x55d9('0x4f'));if(_0x5d2f2d)return _0x5d2f2d;_0x48cb23=_0x48cb23[_0x55d9('0x7c')];}while(_0x48cb23);return null;}['_cleanMarkers'](){this[_0x55d9('0x33')][_0x55d9('0x65')][_0x55d9('0x2d')](_0x3c3d06=>{for(const _0xc94501 of this['editor'][_0x55d9('0x65')][_0x55d9('0xd3')])_0x3c3d06['removeMarker'](_0xc94501);});}}function et(_0x15992d,_0x121786){return(_0x5f144e,_0x5938dd,_0x3229e3)=>{if(!_0x3229e3[_0x55d9('0x26')]['test'](_0x5938dd[_0x55d9('0x27')],_0x5f144e[_0x55d9('0xdb')]))return;const _0x11b802=_0x5938dd[_0x55d9('0x27')][_0x55d9('0x80')](),_0x56eeac=_0x5938dd['markerRange']['start'],_0x2f5e35=_0x15992d[_0x55d9('0x65')]['schema'];let _0x59b27b=null,_0x2052ee=null,_0xc4afec=!0x1,_0x1cac0d=!0x1;for(const _0x8b78f1 of _0x11b802){const _0x15721d=_0x8b78f1[_0x55d9('0xea')];_0xc4afec=_0xc4afec||_0x2f5e35['isContent'](_0x15721d);const _0x538a56=_0x3229e3[_0x55d9('0x69')][_0x55d9('0x9')](_0x15721d);if(_0x538a56&&_0x538a56['getCustomProperty']('addHighlight'))return;_0x55d9('0xb6')==_0x8b78f1[_0x55d9('0x83')]&&(_0x2f5e35[_0x55d9('0xc4')](_0x15721d)&&!_0x2f5e35['isLimit'](_0x15721d)&&(_0x15721d[_0x55d9('0xd8')]||_0x56eeac[_0x55d9('0x50')]?_0x59b27b&&_0x59b27b[_0x55d9('0x7c')]==_0x15721d||(_0x59b27b=_0x15721d,_0x5b6f05(_0x8b78f1[_0x55d9('0x77')]),_0x1cac0d=!0x0):_0x2052ee=_0x2052ee||_0x8b78f1[_0x55d9('0x77')]));}function _0x5b6f05(_0x1d2d19){const _0x2938ef=_0x3229e3[_0x55d9('0x69')][_0x55d9('0xe1')](_0x1d2d19),_0x183240=_0x3229e3[_0x55d9('0xa1')][_0x55d9('0x19')](_0x55d9('0x74'),{'class':_0x55d9('0xee')+_0x121786});_0x3229e3[_0x55d9('0xa1')][_0x55d9('0xe6')](_0x2938ef,_0x183240),_0x3229e3[_0x55d9('0x69')][_0x55d9('0x102')](_0x183240,_0x5938dd[_0x55d9('0x71')]);}_0xc4afec||_0x1cac0d||!_0x2052ee||_0x5b6f05(_0x2052ee);};}export class RestoreRevisionCommand extends _0x306e87{constructor(_0x51e011){super(_0x51e011);const _0x3af002=_0x51e011[_0x55d9('0x4a')][_0x55d9('0x1c')](d);this[_0x55d9('0x10')]=!0x1,this[_0x55d9('0x118')](_0x3af002,_0x55d9('0x62'),()=>this[_0x55d9('0xd6')]()),this['listenTo'](_0x3af002,'change:isEnabled',()=>this[_0x55d9('0xd6')]());}[_0x55d9('0x8a')](){const _0xeef91a=this[_0x55d9('0x33')],_0x308d86=_0xeef91a[_0x55d9('0x4a')][_0x55d9('0x1c')](d),_0x37963d=_0x308d86[_0x55d9('0x41')]?_0x308d86[_0x55d9('0xa8')][_0x55d9('0x110')]:null;_0xeef91a[_0x55d9('0x29')][_0x55d9('0x1c')](_0x55d9('0x9b'))[_0x55d9('0x86')](_0x37963d);}[_0x55d9('0xd6')](){const {isReady:_0x4cd9c9,isEnabled:_0xbfa8b7}=this[_0x55d9('0x33')][_0x55d9('0x4a')][_0x55d9('0x1c')](d);this[_0x55d9('0x56')]=_0x4cd9c9&&_0xbfa8b7;}}export class ShowChangeCommand extends _0x306e87{constructor(_0x1709ea,{direction:_0x1a1638}){super(_0x1709ea);const _0x3c6b2f=_0x1709ea[_0x55d9('0x4a')][_0x55d9('0x1c')](d);this[_0x55d9('0x10')]=!0x1,this[_0x55d9('0x114')]='forward'===_0x1a1638?0x1:-0x1,this[_0x55d9('0x118')](_0x3c6b2f,'change:isReady',()=>this['refresh']()),this[_0x55d9('0x118')](_0x3c6b2f,'change:isEnabled',()=>this[_0x55d9('0xd6')]()),this[_0x55d9('0x118')](_0x3c6b2f,_0x55d9('0xe8'),()=>this[_0x55d9('0xd6')]());}[_0x55d9('0x8a')](){const _0x1a54ce=this[_0x55d9('0x33')],_0x321c1d=_0x1a54ce[_0x55d9('0x4a')][_0x55d9('0x1c')](d),{isNavigationMode:_0x9a1b7c,currentChangeNumber:_0x506b6b}=_0x321c1d;let _0x1123c0;if(_0x321c1d['activeChange']=_0x9a1b7c?_0x321c1d[_0x55d9('0xa8')]['changes']['get'](_0x506b6b+this[_0x55d9('0x114')]):_0x321c1d[_0x55d9('0xa8')][_0x55d9('0x115')][_0x55d9('0xe')],_0x321c1d[_0x55d9('0x20')]['data'][_0x55d9('0xb3')])_0x1123c0=_0x1a54ce[_0x55d9('0x4e')][_0x55d9('0x2b')][_0x55d9('0xb8')](_0x321c1d['activeChange']['rootName']);else{const _0x1e90f5=_0x1a54ce['model']['markers']['get'](_0x55d9('0x3c')+_0x321c1d[_0x55d9('0x20')]['id']);_0x1123c0=_0x4edb92(_0x1a54ce[_0x55d9('0x4e')],_0x1e90f5);}_0x2eaf4a({'target':_0x1123c0,'viewportOffset':0x28});}[_0x55d9('0xd6')](){const {isNavigationMode:_0x29a411,currentChangeNumber:_0x2575b0,numberOfChanges:_0x2bd271,isReady:_0x1d9bba,isEnabled:_0x325169}=this[_0x55d9('0x33')][_0x55d9('0x4a')][_0x55d9('0x1c')](d);this[_0x55d9('0x56')]=!!(_0x325169&&_0x1d9bba&&_0x2bd271)&&(!_0x29a411||(0x1===this['_step']?_0x2575b0<_0x2bd271-0x1:_0x2575b0>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2561=['children','isOpen','locale','set','function','execute','isActionsDropdownOpen','ck-on','ck-revision-history-sidebar__revision__actions','action','add','extendTemplate','_action','Restore\x20this\x20revision','Show\x20more\x20items','name','isReady','first','isEnabled','Name\x20this\x20revision','buttonView','change:isActionsDropdownOpen','source','class','find','isVisible','bind','model','map'];(function(_0x12bb96,_0x2561d5){const _0x285fd8=function(_0x5bf9f8){while(--_0x5bf9f8){_0x12bb96['push'](_0x12bb96['shift']());}};_0x285fd8(++_0x2561d5);}(_0x2561,0xb2));const _0x285f=function(_0x12bb96,_0x2561d5){_0x12bb96=_0x12bb96-0x0;let _0x285fd8=_0x2561[_0x12bb96];return _0x285fd8;};import{Collection as _0x3fb2f9}from'ckeditor5/src/utils';import{icons as _0x41b69b}from'ckeditor5/src/core';import{Model as _0x34f963,addListToDropdown as _0x34a164,createDropdown as _0x4637a9}from'ckeditor5/src/ui';import{getTranslation as _0x4c8598}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x275f18,_0x568df6){const _0x7bee44=_0x275f18['bindTemplate'],_0x163445=_0x275f18[_0x285f('0x1b')],_0x1753ad=_0x4637a9(_0x163445);_0x1753ad['panelPosition']='sw';const _0x208a60=function(_0x4d86aa,_0x597fee){const _0x42f755=function(_0x2bf981,_0x334d2d){const _0xf659a6=_0x2bf981['locale'],_0x36d067={'Compare\x20against\x20selected':_0x4c8598(_0xf659a6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x4c8598(_0xf659a6,_0x285f('0xf')),'Restore\x20this\x20revision':_0x4c8598(_0xf659a6,_0x285f('0x9'))};return _0x334d2d[_0x285f('0x18')](_0x4df7c8=>{const _0x28244e=_0x36d067[_0x4df7c8['name']];return _0x28244e&&_0x28244e!==_0x4df7c8['name']&&(_0x4df7c8[_0x285f('0xb')]=_0x28244e),_0x4df7c8;});}(_0x4d86aa,_0x597fee),_0x141b0f=new _0x3fb2f9();for(const _0x143bf0 of _0x42f755){const _0x36157f={'type':'button','model':new _0x34f963({'label':_0x143bf0['name'],'class':_0x143bf0[_0x285f('0x13')],'withText':!0x0,'_action':_0x143bf0[_0x285f('0x5')]})};_0x36157f[_0x285f('0x17')][_0x285f('0x16')]('isEnabled')['to'](_0x4d86aa,_0x285f('0x2'),_0x17363a=>_0x285f('0x0')!=typeof _0x143bf0[_0x285f('0xe')]||(!_0x17363a||_0x143bf0[_0x285f('0xe')](_0x4d86aa))),_0x141b0f[_0x285f('0x6')](_0x36157f);}return _0x141b0f;}(_0x275f18,_0x568df6);return _0x275f18[_0x285f('0x16')](_0x285f('0x2'))['to'](_0x1753ad,_0x285f('0x1a')),_0x1753ad[_0x285f('0x10')][_0x285f('0x1c')]({'label':_0x4c8598(_0x163445,_0x285f('0xa')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x41b69b['threeVerticalDots']}),_0x1753ad[_0x285f('0x7')]({'attributes':{'class':[_0x285f('0x4'),_0x7bee44['if']('isActionsDropdownOpen',_0x285f('0x3'))]},'on':{'click':_0x7bee44['to'](_0x58165f=>_0x58165f['stopPropagation']())}}),_0x1753ad['on'](_0x285f('0x1'),_0x32709a=>{_0x275f18[_0x285f('0xc')]&&'function'==typeof _0x32709a[_0x285f('0x12')][_0x285f('0x8')]&&_0x32709a['source']['_action'](_0x275f18);}),_0x34a164(_0x1753ad,_0x208a60),_0x1753ad['listenTo'](_0x275f18,_0x285f('0x11'),(_0x19227c,_0x218774,_0x6f699a)=>{if(_0x6f699a)for(const _0xcc9d44 of _0x1753ad['listView']['items']){const _0x11b5e3=_0xcc9d44[_0x285f('0x19')][_0x285f('0xd')],_0x203174=_0x568df6[_0x285f('0x14')](_0x368ea2=>_0x368ea2[_0x285f('0x5')]===_0x11b5e3['_action'])[_0x285f('0x15')];_0xcc9d44[_0x285f('0x15')]=void 0x0===_0x203174||_0x203174(_0x275f18);}}),_0x1753ad;}
23
+ const _0x2aab=['find','locale','isEnabled','_action','ck-revision-history-sidebar__revision__actions','source','isVisible','action','function','class','first','execute','name','bind','panelPosition','extendTemplate','Compare\x20against\x20selected','Restore\x20this\x20revision','stopPropagation','ck-on','listView','isActionsDropdownOpen','model','threeVerticalDots','button','listenTo','isReady','set','add','isOpen'];(function(_0x2fec39,_0x2aab7a){const _0x41cce7=function(_0x1205cf){while(--_0x1205cf){_0x2fec39['push'](_0x2fec39['shift']());}};_0x41cce7(++_0x2aab7a);}(_0x2aab,0x12d));const _0x41cc=function(_0x2fec39,_0x2aab7a){_0x2fec39=_0x2fec39-0x0;let _0x41cce7=_0x2aab[_0x2fec39];return _0x41cce7;};import{Collection as _0x481218}from'ckeditor5/src/utils';import{icons as _0x15fa50}from'ckeditor5/src/core';import{Model as _0x2bf744,addListToDropdown as _0x2771a8,createDropdown as _0x4ad19c}from'ckeditor5/src/ui';import{getTranslation as _0x594a00}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x34d08d,_0x47f6b9){const _0x1a5c8e=_0x34d08d['bindTemplate'],_0x15024b=_0x34d08d['locale'],_0x1f944d=_0x4ad19c(_0x15024b);_0x1f944d[_0x41cc('0xd')]='sw';const _0x43fb87=function(_0x455fb7,_0x307f09){const _0x2fc98e=function(_0x5b10a1,_0x275a01){const _0x32f0b7=_0x5b10a1[_0x41cc('0x0')],_0x3fc750={'Compare\x20against\x20selected':_0x594a00(_0x32f0b7,_0x41cc('0xf')),'Name\x20this\x20revision':_0x594a00(_0x32f0b7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x594a00(_0x32f0b7,_0x41cc('0x10'))};return _0x275a01['map'](_0x1e523b=>{const _0x57d7c3=_0x3fc750[_0x1e523b[_0x41cc('0xb')]];return _0x57d7c3&&_0x57d7c3!==_0x1e523b['name']&&(_0x1e523b[_0x41cc('0xb')]=_0x57d7c3),_0x1e523b;});}(_0x455fb7,_0x307f09),_0x488a62=new _0x481218();for(const _0x3b2e7e of _0x2fc98e){const _0x5d7b35={'type':_0x41cc('0x17'),'model':new _0x2bf744({'label':_0x3b2e7e[_0x41cc('0xb')],'class':_0x3b2e7e[_0x41cc('0x8')],'withText':!0x0,'_action':_0x3b2e7e[_0x41cc('0x6')]})};_0x5d7b35[_0x41cc('0x15')]['bind'](_0x41cc('0x1'))['to'](_0x455fb7,'isActionsDropdownOpen',_0xa1f95a=>_0x41cc('0x7')!=typeof _0x3b2e7e['isEnabled']||(!_0xa1f95a||_0x3b2e7e['isEnabled'](_0x455fb7))),_0x488a62[_0x41cc('0x1b')](_0x5d7b35);}return _0x488a62;}(_0x34d08d,_0x47f6b9);return _0x34d08d[_0x41cc('0xc')]('isActionsDropdownOpen')['to'](_0x1f944d,_0x41cc('0x1c')),_0x1f944d['buttonView'][_0x41cc('0x1a')]({'label':_0x594a00(_0x15024b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x15fa50[_0x41cc('0x16')]}),_0x1f944d[_0x41cc('0xe')]({'attributes':{'class':[_0x41cc('0x3'),_0x1a5c8e['if'](_0x41cc('0x14'),_0x41cc('0x12'))]},'on':{'click':_0x1a5c8e['to'](_0x32422d=>_0x32422d[_0x41cc('0x11')]())}}),_0x1f944d['on'](_0x41cc('0xa'),_0x59ee69=>{_0x34d08d[_0x41cc('0x19')]&&'function'==typeof _0x59ee69[_0x41cc('0x4')]['_action']&&_0x59ee69[_0x41cc('0x4')][_0x41cc('0x2')](_0x34d08d);}),_0x2771a8(_0x1f944d,_0x43fb87),_0x1f944d[_0x41cc('0x18')](_0x34d08d,'change:isActionsDropdownOpen',(_0x467209,_0xd6f76a,_0x3552f3)=>{if(_0x3552f3)for(const _0x211578 of _0x1f944d[_0x41cc('0x13')]['items']){const _0x1d104d=_0x211578['children'][_0x41cc('0x9')],_0x4e042f=_0x47f6b9[_0x41cc('0x1d')](_0x12e982=>_0x12e982[_0x41cc('0x6')]===_0x1d104d[_0x41cc('0x2')])[_0x41cc('0x5')];_0x211578[_0x41cc('0x5')]=void 0x0===_0x4e042f||_0x4e042f(_0x34d08d);}}),_0x1f944d;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fff=['ck-revision-history-sidebar__revision-author','Revision\x20creator','set','name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author__name','span','push'];(function(_0x23c431,_0x4fffdd){const _0x5d7c9c=function(_0x3be758){while(--_0x3be758){_0x23c431['push'](_0x23c431['shift']());}};_0x5d7c9c(++_0x4fffdd);}(_0x4fff,0xfa));const _0x5d7c=function(_0x23c431,_0x4fffdd){_0x23c431=_0x23c431-0x0;let _0x5d7c9c=_0x4fff[_0x23c431];return _0x5d7c9c;};import{View as _0x490748,IconView as _0x16b6b0}from'ckeditor5/src/ui';import{getTranslation as _0x47016c}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x11f663 from'../../../theme/icons/user.svg';export default class ti extends _0x490748{constructor(_0xdcb84d,_0x4d2fc0,_0x13d6fb){super(_0xdcb84d);const _0x7d6a0d=new _0x16b6b0();_0x7d6a0d[_0x5d7c('0x4')]({'content':_0x11f663,'viewBox':_0x5d7c('0x6')});const _0x55cf64=['ck',_0x5d7c('0x2')];_0x13d6fb&&_0x55cf64[_0x5d7c('0x1')](_0x5d7c('0x7'));const _0x55d257=[{'tag':_0x5d7c('0x0'),'attributes':{'class':['ck',_0x5d7c('0x8')],'title':_0x47016c(_0xdcb84d,_0x13d6fb?_0x5d7c('0x3'):'Revision\x20author')},'children':[_0x7d6a0d,_0x4d2fc0[_0x5d7c('0x5')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x55cf64},'children':_0x55d257});}}
23
+ const _0x39e7=['ck-revision-history-sidebar__revision-author','0\x200\x2011\x2010','span','push','name','setTemplate','Revision\x20author','ck-revision-history-sidebar__revision-author__name'];(function(_0x4baaae,_0x39e73f){const _0x478d15=function(_0x1baf82){while(--_0x1baf82){_0x4baaae['push'](_0x4baaae['shift']());}};_0x478d15(++_0x39e73f);}(_0x39e7,0x1a2));const _0x478d=function(_0x4baaae,_0x39e73f){_0x4baaae=_0x4baaae-0x0;let _0x478d15=_0x39e7[_0x4baaae];return _0x478d15;};import{View as _0x2179f2,IconView as _0x1fedfc}from'ckeditor5/src/ui';import{getTranslation as _0x18e8f6}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4f0544 from'../../../theme/icons/user.svg';export default class ti extends _0x2179f2{constructor(_0x5611d1,_0x24d915,_0x84995c){super(_0x5611d1);const _0x373732=new _0x1fedfc();_0x373732['set']({'content':_0x4f0544,'viewBox':_0x478d('0x7')});const _0x225053=['ck',_0x478d('0x6')];_0x84995c&&_0x225053[_0x478d('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x55252e=[{'tag':_0x478d('0x0'),'attributes':{'class':['ck',_0x478d('0x5')],'title':_0x18e8f6(_0x5611d1,_0x84995c?'Revision\x20creator':_0x478d('0x4'))},'children':[_0x373732,_0x24d915[_0x478d('0x2')]]}];this[_0x478d('0x3')]({'tag':'li','attributes':{'class':_0x225053},'children':_0x55252e});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3c94=['set','extendTemplate','span'];(function(_0x1f0540,_0x3c940d){var _0x4154ff=function(_0x585922){while(--_0x585922){_0x1f0540['push'](_0x1f0540['shift']());}};_0x4154ff(++_0x3c940d);}(_0x3c94,0xe6));var _0x4154=function(_0x1f0540,_0x3c940d){_0x1f0540=_0x1f0540-0x0;var _0x4154ff=_0x3c94[_0x1f0540];return _0x4154ff;};import{LabeledFieldView as _0x52d037}from'ckeditor5/src/ui';import{getTranslation as _0x21e023}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x52d037{constructor(_0xe4b7a4,_0x59778f){super(_0xe4b7a4,_0x59778f),this[_0x4154('0x1')]({'label':_0x21e023(_0xe4b7a4,'Revision\x20name')}),this[_0x4154('0x2')]({'tag':_0x4154('0x0'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x53d0=['set','Revision\x20name','span','extendTemplate','ck-revision-history-sidebar__revision-name'];(function(_0xac3cbf,_0x53d03c){var _0x334c5e=function(_0xd8709e){while(--_0xd8709e){_0xac3cbf['push'](_0xac3cbf['shift']());}};_0x334c5e(++_0x53d03c);}(_0x53d0,0x91));var _0x334c=function(_0xac3cbf,_0x53d03c){_0xac3cbf=_0xac3cbf-0x0;var _0x334c5e=_0x53d0[_0xac3cbf];return _0x334c5e;};import{LabeledFieldView as _0x1392c2}from'ckeditor5/src/ui';import{getTranslation as _0x3b01a2}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x1392c2{constructor(_0x1e3521,_0x249258){super(_0x1e3521,_0x249258),this[_0x334c('0x0')]({'label':_0x3b01a2(_0x1e3521,_0x334c('0x1'))}),this[_0x334c('0x3')]({'tag':_0x334c('0x2'),'attributes':{'class':[_0x334c('0x4')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45db=['uiLanguage','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision__date','div','isSelected','deselect','isEnabled','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision_highlighted','isActionsDropdownOpen','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','creator','map','filter','render','revisionNameView','bind','set','isHighlighted','listenTo','element','_createdAtFormatted','revisionActionsView','value','name','placeholder','fire','length','ck-reset','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision','extendTemplate','closest','setTemplate','bindTemplate','unshift','isConfirm','ck-revision-history-sidebar__revision-authors','unhighlight','fieldView','setName','srcElement','select'];(function(_0x4b590f,_0x45db33){const _0x4a3a82=function(_0x9802b2){while(--_0x9802b2){_0x4b590f['push'](_0x4b590f['shift']());}};_0x4a3a82(++_0x45db33);}(_0x45db,0x77));const _0x4a3a=function(_0x4b590f,_0x45db33){_0x4b590f=_0x4b590f-0x0;let _0x4a3a82=_0x45db[_0x4b590f];return _0x4a3a82;};import{View as _0x14ac7f,createLabeledInputText as _0x34b402}from'ckeditor5/src/ui';import{ConfirmMixin as _0x7deb82}from'ckeditor5-collaboration/src/collaboration-core';import _0x26b9df from'./revisionnameview';import _0xe24895 from'./revisionauthorview';import{dateToPrettyFormat as _0x165745}from'./utils';import{createActionsDropdownView as _0x515333}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x7deb82(_0x14ac7f){constructor(_0x5958fe,_0x10cceb,_0x32d420){super(_0x5958fe);const _0x3374a8=this[_0x4a3a('0x1')],_0x13aa6a=function(_0xa829d4,_0x51d9a5){const _0x54c986=Array['from'](_0x51d9a5['authors'])[_0x4a3a('0x17')](_0x5d045d=>_0x5d045d!=_0x51d9a5[_0x4a3a('0x15')]);return _0x51d9a5['creator']&&_0x54c986[_0x4a3a('0x2')](_0x51d9a5[_0x4a3a('0x15')]),_0x54c986[_0x4a3a('0x16')](_0x59432c=>new _0xe24895(_0xa829d4,_0x59432c,_0x59432c==_0x51d9a5[_0x4a3a('0x15')]));}(_0x5958fe,_0x10cceb);this['id']=_0x10cceb['id'],this['_revision']=_0x10cceb,this[_0x4a3a('0x1a')](_0x4a3a('0x22'),'createdAt')['to'](_0x10cceb),this[_0x4a3a('0x1a')](_0x4a3a('0x1f'))['to'](this,'createdAt',_0x19a24f=>_0x19a24f?_0x165745(_0x5958fe[_0x4a3a('0xa')],_0x19a24f):void 0x0),this[_0x4a3a('0x1b')](_0x4a3a('0xe'),!0x1),this['set'](_0x4a3a('0x1c'),!0x1),this[_0x4a3a('0x1b')]('isActionsDropdownOpen',!0x1),this[_0x4a3a('0x1b')]('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new _0x26b9df(_0x5958fe,_0x34b402),this[_0x4a3a('0x19')][_0x4a3a('0x6')][_0x4a3a('0x29')]({'attributes':{'maxlength':'220'}}),this[_0x4a3a('0x19')][_0x4a3a('0x6')][_0x4a3a('0x1a')](_0x4a3a('0x21'),_0x4a3a('0x23'))['to'](this,_0x4a3a('0x22'),_0x4a3a('0x1f')),this['revisionNameView'][_0x4a3a('0x1a')]('isEnabled')['to'](this,_0x4a3a('0xe'),this,_0x4a3a('0x10'),(_0x4e08aa,_0x4196c6)=>_0x4e08aa&&_0x4196c6),this[_0x4a3a('0x20')]=_0x32d420&&_0x32d420[_0x4a3a('0x25')]?_0x515333(this,_0x32d420):'',this[_0x4a3a('0x20')]&&this[_0x4a3a('0x20')][_0x4a3a('0x1a')](_0x4a3a('0x10'))['to'](this),this[_0x4a3a('0x0')]({'tag':_0x4a3a('0xd'),'attributes':{'class':['ck',_0x4a3a('0x26'),_0x4a3a('0xb'),_0x3374a8['if'](_0x4a3a('0x3'),_0x4a3a('0x14'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x4a3a('0x26'),_0x4a3a('0x28'),_0x3374a8['if'](_0x4a3a('0x10'),'ck-disabled',_0x5e3022=>!_0x5e3022),_0x3374a8['if'](_0x4a3a('0xe'),_0x4a3a('0x11')),_0x3374a8['if'](_0x4a3a('0x1c'),_0x4a3a('0x12')),_0x3374a8['if'](_0x4a3a('0x13'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x4a3a('0x19')],{'tag':'span','attributes':{'class':['ck',_0x4a3a('0xc')]},'children':[{'text':_0x3374a8['to'](_0x4a3a('0x1f'))}]},{'tag':_0x4a3a('0xd'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4a3a('0x4')]},'children':_0x13aa6a}]},this[_0x4a3a('0x20')]],'on':{'click':_0x3374a8['to'](_0x2ca514=>{_0x2ca514[_0x4a3a('0x8')][_0x4a3a('0x2a')](_0x4a3a('0x27'))||this['isReady']&&this[_0x4a3a('0x10')]&&this[_0x4a3a('0x24')]('select',{'id':this['id']});})}}]});}[_0x4a3a('0x18')](){super[_0x4a3a('0x18')]();const _0x32234b=this[_0x4a3a('0x19')][_0x4a3a('0x6')][_0x4a3a('0x1e')];this[_0x4a3a('0x1d')](_0x32234b,'change',()=>{this[_0x4a3a('0x24')](_0x4a3a('0x7'),{'id':this['id'],'name':_0x32234b[_0x4a3a('0x21')]});});}[_0x4a3a('0x9')](){this[_0x4a3a('0xe')]=!0x0;}[_0x4a3a('0xf')](){this[_0x4a3a('0xe')]=!0x1;}['highlight'](){this[_0x4a3a('0x1c')]=!0x0;}[_0x4a3a('0x5')](){this[_0x4a3a('0x1c')]=!0x1;}}
23
+ const _0x21d0=['set','highlight','uiLanguage','_createdAtFormatted','bind','unhighlight','placeholder','change','deselect','map','length','filter','from','isReady','ck-revision-history-sidebar__revision-wrapper','unshift','setTemplate','revisionActionsView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','creator','ck-disabled','select','createdAt','ck-reset','render','_revision','isActionsDropdownOpen','value','setName','ck-revision-history-sidebar__revision__controls-wrapper','listenTo','fieldView','isSelected','isEnabled','isHighlighted','name','div','ck-revision-history-sidebar__revision_highlighted','revisionNameView','fire','authors','element','srcElement','ck-revision-history-sidebar__revision','.ck-thread__remove-confirm','ck-revision-history-sidebar__actions_dropdown_open'];(function(_0x2bfb80,_0x21d01e){const _0x539834=function(_0x1e92a){while(--_0x1e92a){_0x2bfb80['push'](_0x2bfb80['shift']());}};_0x539834(++_0x21d01e);}(_0x21d0,0x11c));const _0x5398=function(_0x2bfb80,_0x21d01e){_0x2bfb80=_0x2bfb80-0x0;let _0x539834=_0x21d0[_0x2bfb80];return _0x539834;};import{View as _0x597fdd,createLabeledInputText as _0x1b4535}from'ckeditor5/src/ui';import{ConfirmMixin as _0x5e3e22}from'ckeditor5-collaboration/src/collaboration-core';import _0x331da8 from'./revisionnameview';import _0x4aa33f from'./revisionauthorview';import{dateToPrettyFormat as _0x2820e6}from'./utils';import{createActionsDropdownView as _0x26b758}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x5e3e22(_0x597fdd){constructor(_0xfa04f5,_0x488433,_0x23572b){super(_0xfa04f5);const _0xbca6a6=this['bindTemplate'],_0x516d66=function(_0x1ee46e,_0x5b5ef8){const _0x1aaa33=Array[_0x5398('0x4')](_0x5b5ef8[_0x5398('0x20')])[_0x5398('0x3')](_0x2d8e3a=>_0x2d8e3a!=_0x5b5ef8[_0x5398('0xb')]);return _0x5b5ef8[_0x5398('0xb')]&&_0x1aaa33[_0x5398('0x7')](_0x5b5ef8[_0x5398('0xb')]),_0x1aaa33[_0x5398('0x1')](_0x4874ad=>new _0x4aa33f(_0x1ee46e,_0x4874ad,_0x4874ad==_0x5b5ef8[_0x5398('0xb')]));}(_0xfa04f5,_0x488433);this['id']=_0x488433['id'],this[_0x5398('0x11')]=_0x488433,this['bind'](_0x5398('0x1b'),'createdAt')['to'](_0x488433),this['bind'](_0x5398('0x29'))['to'](this,_0x5398('0xe'),_0x4997e8=>_0x4997e8?_0x2820e6(_0xfa04f5[_0x5398('0x28')],_0x4997e8):void 0x0),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this[_0x5398('0x26')](_0x5398('0x12'),!0x1),this[_0x5398('0x26')](_0x5398('0x5'),!0x1),this[_0x5398('0x26')](_0x5398('0x19'),!0x1),this[_0x5398('0x1e')]=new _0x331da8(_0xfa04f5,_0x1b4535),this[_0x5398('0x1e')][_0x5398('0x17')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView'][_0x5398('0x17')]['bind']('value',_0x5398('0x2c'))['to'](this,_0x5398('0x1b'),_0x5398('0x29')),this[_0x5398('0x1e')][_0x5398('0x2a')](_0x5398('0x19'))['to'](this,_0x5398('0x18'),this,_0x5398('0x19'),(_0x4798e6,_0x427c4f)=>_0x4798e6&&_0x427c4f),this[_0x5398('0x9')]=_0x23572b&&_0x23572b[_0x5398('0x2')]?_0x26b758(this,_0x23572b):'',this[_0x5398('0x9')]&&this[_0x5398('0x9')][_0x5398('0x2a')](_0x5398('0x19'))['to'](this),this[_0x5398('0x8')]({'tag':_0x5398('0x1c'),'attributes':{'class':['ck','ck-reset',_0x5398('0x6'),_0xbca6a6['if']('isConfirm',_0x5398('0xa'))]},'children':[{'tag':_0x5398('0x1c'),'attributes':{'class':['ck',_0x5398('0xf'),_0x5398('0x23'),_0xbca6a6['if'](_0x5398('0x19'),_0x5398('0xc'),_0x51027f=>!_0x51027f),_0xbca6a6['if'](_0x5398('0x18'),'ck-revision-history-sidebar__revision_selected'),_0xbca6a6['if'](_0x5398('0x1a'),_0x5398('0x1d')),_0xbca6a6['if']('isActionsDropdownOpen',_0x5398('0x25'))]},'children':[this[_0x5398('0x1e')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0xbca6a6['to'](_0x5398('0x29'))}]},{'tag':_0x5398('0x1c'),'attributes':{'class':['ck',_0x5398('0x15')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x516d66}]},this[_0x5398('0x9')]],'on':{'click':_0xbca6a6['to'](_0x57c570=>{_0x57c570[_0x5398('0x22')]['closest'](_0x5398('0x24'))||this['isReady']&&this['isEnabled']&&this[_0x5398('0x1f')](_0x5398('0xd'),{'id':this['id']});})}}]});}[_0x5398('0x10')](){super[_0x5398('0x10')]();const _0x42f44d=this[_0x5398('0x1e')]['fieldView'][_0x5398('0x21')];this[_0x5398('0x16')](_0x42f44d,_0x5398('0x2d'),()=>{this[_0x5398('0x1f')](_0x5398('0x14'),{'id':this['id'],'name':_0x42f44d[_0x5398('0x13')]});});}[_0x5398('0xd')](){this[_0x5398('0x18')]=!0x0;}[_0x5398('0x0')](){this['isSelected']=!0x1;}[_0x5398('0x27')](){this[_0x5398('0x1a')]=!0x0;}[_0x5398('0x2b')](){this[_0x5398('0x1a')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c15=['ck-revision-history-sidebar__subrevision-collapser','span','click','_isCollapsed','bindTemplate','setTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','ck-hidden','button','false','set','isVisible','ck-revision-history-sidebar__subrevision-collapser_collapsed','toggle'];(function(_0x58f7b6,_0x4c157b){const _0xc5d774=function(_0x55c667){while(--_0x55c667){_0x58f7b6['push'](_0x58f7b6['shift']());}};_0xc5d774(++_0x4c157b);}(_0x4c15,0x1da));const _0xc5d7=function(_0x58f7b6,_0x4c157b){_0x58f7b6=_0x58f7b6-0x0;let _0xc5d774=_0x4c15[_0x58f7b6];return _0xc5d774;};import{View as _0x49f533}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x49f533{constructor(_0x1fd540){super(_0x1fd540);const _0x30016e=this[_0xc5d7('0x6')];this[_0xc5d7('0xc')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xc5d7('0x7')]({'tag':'span','attributes':{'class':['ck',_0xc5d7('0x2'),_0x30016e['if'](_0xc5d7('0xd'),_0xc5d7('0x9'),_0x1ac4d4=>!_0x1ac4d4),_0x30016e['if']('_isCollapsed',_0xc5d7('0x0'))],'role':_0xc5d7('0xa'),'aria-pressed':_0x30016e['to']('_isCollapsed',_0x2687ee=>_0x2687ee?_0xc5d7('0xb'):'true')},'children':[{'tag':_0xc5d7('0x3'),'attributes':{'class':['ck',_0xc5d7('0x8')]}}],'on':{'click':_0x30016e['to'](_0xc5d7('0x4'))}});}[_0xc5d7('0x1')](){this[_0xc5d7('0x5')]=!this[_0xc5d7('0x5')];}}
23
+ const _0xa88b=['false','ck-hidden','set','ck-revision-history-sidebar__subrevision-collapser','true','isVisible','span','toggle','bindTemplate','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner'];(function(_0x1dd3bd,_0xa88b62){const _0x2e9d4c=function(_0x3f4ee1){while(--_0x3f4ee1){_0x1dd3bd['push'](_0x1dd3bd['shift']());}};_0x2e9d4c(++_0xa88b62);}(_0xa88b,0xe1));const _0x2e9d=function(_0x1dd3bd,_0xa88b62){_0x1dd3bd=_0x1dd3bd-0x0;let _0x2e9d4c=_0xa88b[_0x1dd3bd];return _0x2e9d4c;};import{View as _0x2dcadb}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2dcadb{constructor(_0x15bbf1){super(_0x15bbf1);const _0x3a5dc5=this[_0x2e9d('0xb')];this[_0x2e9d('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x2e9d('0x6'),_0x3a5dc5['if'](_0x2e9d('0x8'),_0x2e9d('0x4'),_0x11561b=>!_0x11561b),_0x3a5dc5['if'](_0x2e9d('0x0'),_0x2e9d('0x1'))],'role':'button','aria-pressed':_0x3a5dc5['to']('_isCollapsed',_0x2c43e6=>_0x2c43e6?_0x2e9d('0x3'):_0x2e9d('0x7'))},'children':[{'tag':_0x2e9d('0x9'),'attributes':{'class':['ck',_0x2e9d('0x2')]}}],'on':{'click':_0x3a5dc5['to']('click')}});}[_0x2e9d('0xa')](){this['_isCollapsed']=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19ef=['setTemplate','createdAt','div','span','deselect','ck-reset','ck-revision-history-sidebar__revision_selected','fire','select','set','_parentRevisionId','ck-revision-history-sidebar__subrevision','_createdAtFormatted','bindTemplate','ck-revision-history-sidebar__revision__date','creator','uiLanguage','isSelected'];(function(_0xde81b9,_0x19efa2){const _0x2e1f1b=function(_0x1fc113){while(--_0x1fc113){_0xde81b9['push'](_0xde81b9['shift']());}};_0x2e1f1b(++_0x19efa2);}(_0x19ef,0x9e));const _0x2e1f=function(_0xde81b9,_0x19efa2){_0xde81b9=_0xde81b9-0x0;let _0x2e1f1b=_0x19ef[_0xde81b9];return _0x2e1f1b;};import{View as _0x5e650b}from'ckeditor5/src/ui';import _0x231e84 from'./revisionauthorview';import{dateToPrettyFormat as _0x5e3524}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x5e650b{constructor(_0x14db58,_0x2c637e,_0x1727ae){super(_0x14db58);const _0x51a853=this[_0x2e1f('0x11')];this['id']=_0x2c637e['id'],this['bind']('createdAt')['to'](_0x2c637e),this[_0x2e1f('0xd')](_0x2e1f('0x3'),!0x1),this['bind']('_createdAtFormatted')['to'](this,_0x2e1f('0x5'),_0x529691=>_0x529691?_0x5e3524(_0x14db58[_0x2e1f('0x2')],_0x529691):void 0x0),this[_0x2e1f('0xe')]=_0x1727ae,this[_0x2e1f('0x4')]({'tag':_0x2e1f('0x6'),'attributes':{'class':['ck',_0x2e1f('0x9'),'ck-revision-history-sidebar__revision',_0x2e1f('0xf'),_0x51a853['if']('isSelected',_0x2e1f('0xa'))]},'children':[{'tag':_0x2e1f('0x7'),'attributes':{'class':['ck',_0x2e1f('0x0')]},'children':[{'text':_0x51a853['to'](_0x2e1f('0x10'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x231e84(_0x14db58,_0x2c637e[_0x2e1f('0x1')],!0x0)]}],'on':{'click':_0x51a853['to'](this['select']['bind'](this))}});}[_0x2e1f('0xc')](){this[_0x2e1f('0x3')]=!0x0,this[_0x2e1f('0xb')](_0x2e1f('0xc'),{'parentId':this[_0x2e1f('0xe')]});}[_0x2e1f('0x8')](){this[_0x2e1f('0x3')]=!0x1;}}
23
+ const _0x1ae5=['set','ck-revision-history-sidebar__revision-authors','creator','_parentRevisionId','bind','ck-reset','select','ck-revision-history-sidebar__revision_selected','createdAt','isSelected','ck-revision-history-sidebar__revision__date','_createdAtFormatted','div','fire'];(function(_0x178086,_0x1ae54d){const _0x1ecf40=function(_0x41844b){while(--_0x41844b){_0x178086['push'](_0x178086['shift']());}};_0x1ecf40(++_0x1ae54d);}(_0x1ae5,0xc6));const _0x1ecf=function(_0x178086,_0x1ae54d){_0x178086=_0x178086-0x0;let _0x1ecf40=_0x1ae5[_0x178086];return _0x1ecf40;};import{View as _0x2d8d48}from'ckeditor5/src/ui';import _0x341768 from'./revisionauthorview';import{dateToPrettyFormat as _0x4d0c66}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2d8d48{constructor(_0xc7bf09,_0x882131,_0x474b5e){super(_0xc7bf09);const _0x3a8c13=this['bindTemplate'];this['id']=_0x882131['id'],this[_0x1ecf('0x2')](_0x1ecf('0x6'))['to'](_0x882131),this[_0x1ecf('0xc')](_0x1ecf('0x7'),!0x1),this[_0x1ecf('0x2')]('_createdAtFormatted')['to'](this,_0x1ecf('0x6'),_0x52deb1=>_0x52deb1?_0x4d0c66(_0xc7bf09['uiLanguage'],_0x52deb1):void 0x0),this[_0x1ecf('0x1')]=_0x474b5e,this['setTemplate']({'tag':_0x1ecf('0xa'),'attributes':{'class':['ck',_0x1ecf('0x3'),'ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x3a8c13['if'](_0x1ecf('0x7'),_0x1ecf('0x5'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x1ecf('0x8')]},'children':[{'text':_0x3a8c13['to'](_0x1ecf('0x9'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1ecf('0xd')]},'children':[new _0x341768(_0xc7bf09,_0x882131[_0x1ecf('0x0')],!0x0)]}],'on':{'click':_0x3a8c13['to'](this['select'][_0x1ecf('0x2')](this))}});}[_0x1ecf('0x4')](){this['isSelected']=!0x0,this[_0x1ecf('0xb')](_0x1ecf('0x4'),{'parentId':this[_0x1ecf('0x1')]});}['deselect'](){this[_0x1ecf('0x7')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2355=['long','toLocaleDateString','numeric'];(function(_0x2df521,_0x2355c0){var _0x25cfca=function(_0x338b65){while(--_0x338b65){_0x2df521['push'](_0x2df521['shift']());}};_0x25cfca(++_0x2355c0);}(_0x2355,0x125));var _0x25cf=function(_0x2df521,_0x2355c0){_0x2df521=_0x2df521-0x0;var _0x25cfca=_0x2355[_0x2df521];return _0x25cfca;};export function dateToPrettyFormat(_0x442cb8,_0x52e8ac){return _0x52e8ac[_0x25cf('0x2')](_0x442cb8,{'month':_0x25cf('0x1'),'day':'numeric'})+',\x20'+_0x52e8ac['toLocaleTimeString'](_0x442cb8,{'hour':_0x25cf('0x0'),'minute':_0x25cf('0x0')});}
23
+ var _0x10a4=['toLocaleDateString','toLocaleTimeString','long'];(function(_0x231b92,_0x10a453){var _0x379b47=function(_0x4dd350){while(--_0x4dd350){_0x231b92['push'](_0x231b92['shift']());}};_0x379b47(++_0x10a453);}(_0x10a4,0xf7));var _0x379b=function(_0x231b92,_0x10a453){_0x231b92=_0x231b92-0x0;var _0x379b47=_0x10a4[_0x231b92];return _0x379b47;};export function dateToPrettyFormat(_0x55ce7f,_0xad4991){return _0xad4991[_0x379b('0x2')](_0x55ce7f,{'month':_0x379b('0x1'),'day':'numeric'})+',\x20'+_0xad4991[_0x379b('0x0')](_0x55ce7f,{'hour':'numeric','minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x216b=['focusFirst','setTemplate','add','locale','focus','forEach','value','label','Cancel','delegate','arrowdown','input','tab','check','ck-revision-history-save-revision-form','type','extendTemplate','trim','shift\x20+\x20tab','revisionNameInputValue','_createRevisionNameInput','cancel','reset','_focusCycler','submit','listenTo','set','saveButtonView','ck-responsive-form','stopPropagation','focusTracker','Save','cancelButtonView','arrowleft','revisionName','_focusables','Name\x20of\x20the\x20revision\x20(optional)','revisionNameInputView','fieldView','keystrokes','render','_createButton','element'];(function(_0x43b189,_0x216b1b){const _0x18a25e=function(_0x1cb82b){while(--_0x1cb82b){_0x43b189['push'](_0x43b189['shift']());}};_0x18a25e(++_0x216b1b);}(_0x216b,0x180));const _0x18a2=function(_0x43b189,_0x216b1b){_0x43b189=_0x43b189-0x0;let _0x18a25e=_0x216b[_0x43b189];return _0x18a25e;};import{icons as _0x1c039f}from'ckeditor5/src/core';import{ButtonView as _0x50831e,FocusCycler as _0x2eafbf,LabeledFieldView as _0x2add43,View as _0x1c17aa,ViewCollection as _0x4d84be,createLabeledInputText as _0x28e8b2,injectCssTransitionDisabler as _0x5abb2f,submitHandler as _0x2895ae}from'ckeditor5/src/ui';import{FocusTracker as _0x5a245e,KeystrokeHandler as _0xff9b69}from'ckeditor5/src/utils';import{getTranslation as _0x744041}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1c17aa{constructor(_0x3f1ee8){super(_0x3f1ee8),this[_0x18a2('0x21')]=new _0x5a245e(),this[_0x18a2('0x2a')]=new _0xff9b69(),this[_0x18a2('0x1d')]('revisionNameInputValue',''),this[_0x18a2('0x28')]=this[_0x18a2('0x17')](),this['saveButtonView']=this[_0x18a2('0x1')](_0x744041(_0x3f1ee8,_0x18a2('0x22')),_0x1c039f[_0x18a2('0x10')],'ck-button-save'),this[_0x18a2('0x1e')][_0x18a2('0x12')]=_0x18a2('0x1b'),this[_0x18a2('0x23')]=this[_0x18a2('0x1')](_0x744041(_0x3f1ee8,_0x18a2('0xb')),_0x1c039f[_0x18a2('0x18')],'ck-button-cancel','cancel'),this[_0x18a2('0x26')]=new _0x4d84be(),this[_0x18a2('0x1a')]=new _0x2eafbf({'focusables':this[_0x18a2('0x26')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x18a2('0x2a')],'actions':{'focusPrevious':_0x18a2('0x15'),'focusNext':_0x18a2('0xf')}}),this[_0x18a2('0x4')]({'tag':'form','attributes':{'class':['ck',_0x18a2('0x11'),_0x18a2('0x1f')],'tabindex':'-1'},'children':[this[_0x18a2('0x28')],this[_0x18a2('0x1e')],this[_0x18a2('0x23')]]}),_0x5abb2f(this);}[_0x18a2('0x0')](){super[_0x18a2('0x0')](),_0x2895ae({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this[_0x18a2('0x23')]][_0x18a2('0x8')](_0x539b98=>{this['_focusables']['add'](_0x539b98),this[_0x18a2('0x21')][_0x18a2('0x5')](_0x539b98[_0x18a2('0x2')]);}),this[_0x18a2('0x2a')][_0x18a2('0x1c')](this[_0x18a2('0x2')]));const _0x1f7ea1=_0x2f37ee=>_0x2f37ee[_0x18a2('0x20')]();this[_0x18a2('0x2a')]['set']('arrowright',_0x1f7ea1),this['keystrokes'][_0x18a2('0x1d')](_0x18a2('0x24'),_0x1f7ea1),this[_0x18a2('0x2a')]['set']('arrowup',_0x1f7ea1),this['keystrokes'][_0x18a2('0x1d')](_0x18a2('0xd'),_0x1f7ea1);}[_0x18a2('0x7')](){this['_focusCycler'][_0x18a2('0x3')]();}get[_0x18a2('0x25')](){return this[_0x18a2('0x28')][_0x18a2('0x29')][_0x18a2('0x2')][_0x18a2('0x9')][_0x18a2('0x14')]();}set[_0x18a2('0x25')](_0x434275){this[_0x18a2('0x28')][_0x18a2('0x29')][_0x18a2('0x2')][_0x18a2('0x9')]=_0x434275['trim']();}[_0x18a2('0x19')](){this[_0x18a2('0x28')]['fieldView'][_0x18a2('0x2')]['value']='';}[_0x18a2('0x17')](){const _0x6cda37=new _0x2add43(this[_0x18a2('0x6')],_0x28e8b2),_0x52a1ee=_0x6cda37[_0x18a2('0x29')];return _0x52a1ee['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x6cda37[_0x18a2('0xa')]=_0x744041(this[_0x18a2('0x6')],_0x18a2('0x27')),_0x52a1ee['on'](_0x18a2('0xe'),()=>{this[_0x18a2('0x16')]=_0x52a1ee[_0x18a2('0x2')][_0x18a2('0x9')][_0x18a2('0x14')]();}),_0x6cda37;}['_createButton'](_0x1d94ea,_0x9d061c,_0x5a4f14,_0x1883d0){const _0x2e194e=new _0x50831e(this[_0x18a2('0x6')]);return _0x2e194e[_0x18a2('0x1d')]({'label':_0x1d94ea,'icon':_0x9d061c,'tooltip':!0x0}),_0x2e194e[_0x18a2('0x13')]({'attributes':{'class':_0x5a4f14}}),_0x1883d0&&_0x2e194e[_0x18a2('0xc')]('execute')['to'](this,_0x1883d0),_0x2e194e;}}
23
+ const _0xf9ac=['value','shift\x20+\x20tab','220','_focusables','Save','revisionNameInputValue','ck-button-save','revisionName','render','Cancel','_createButton','stopPropagation','_focusCycler','arrowup','reset','add','revisionNameInputView','focusTracker','trim','locale','_createRevisionNameInput','fieldView','cancelButtonView','Name\x20of\x20the\x20revision\x20(optional)','saveButtonView','arrowdown','delegate','forEach','tab','submit','keystrokes','focusFirst','set','type','ck-responsive-form','element','extendTemplate','setTemplate','label'];(function(_0x55086c,_0xf9ac79){const _0xa2674f=function(_0x50208d){while(--_0x50208d){_0x55086c['push'](_0x55086c['shift']());}};_0xa2674f(++_0xf9ac79);}(_0xf9ac,0x1c9));const _0xa267=function(_0x55086c,_0xf9ac79){_0x55086c=_0x55086c-0x0;let _0xa2674f=_0xf9ac[_0x55086c];return _0xa2674f;};import{icons as _0x1bf8bd}from'ckeditor5/src/core';import{ButtonView as _0x1c825a,FocusCycler as _0x6ccdd6,LabeledFieldView as _0x5d82ef,View as _0x3ae135,ViewCollection as _0x4741e9,createLabeledInputText as _0x59aa78,injectCssTransitionDisabler as _0x2a73a8,submitHandler as _0x1a1013}from'ckeditor5/src/ui';import{FocusTracker as _0x3e73b5,KeystrokeHandler as _0x4d6a3e}from'ckeditor5/src/utils';import{getTranslation as _0xbd5b8d}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x3ae135{constructor(_0x476d63){super(_0x476d63),this[_0xa267('0x1c')]=new _0x3e73b5(),this['keystrokes']=new _0x4d6a3e(),this['set'](_0xa267('0x10'),''),this[_0xa267('0x1b')]=this[_0xa267('0x1f')](),this[_0xa267('0x23')]=this[_0xa267('0x15')](_0xbd5b8d(_0x476d63,_0xa267('0xf')),_0x1bf8bd['check'],_0xa267('0x11')),this[_0xa267('0x23')][_0xa267('0x5')]=_0xa267('0x1'),this[_0xa267('0x21')]=this['_createButton'](_0xbd5b8d(_0x476d63,_0xa267('0x14')),_0x1bf8bd['cancel'],'ck-button-cancel','cancel'),this['_focusables']=new _0x4741e9(),this[_0xa267('0x17')]=new _0x6ccdd6({'focusables':this[_0xa267('0xe')],'focusTracker':this[_0xa267('0x1c')],'keystrokeHandler':this[_0xa267('0x2')],'actions':{'focusPrevious':_0xa267('0xc'),'focusNext':_0xa267('0x0')}}),this[_0xa267('0x9')]({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form',_0xa267('0x6')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this[_0xa267('0x21')]]}),_0x2a73a8(this);}[_0xa267('0x13')](){super[_0xa267('0x13')](),_0x1a1013({'view':this}),([this[_0xa267('0x1b')],this['saveButtonView'],this[_0xa267('0x21')]][_0xa267('0x26')](_0x5bdaf0=>{this[_0xa267('0xe')][_0xa267('0x1a')](_0x5bdaf0),this[_0xa267('0x1c')][_0xa267('0x1a')](_0x5bdaf0[_0xa267('0x7')]);}),this[_0xa267('0x2')]['listenTo'](this['element']));const _0xc4d0e3=_0xcd0734=>_0xcd0734[_0xa267('0x16')]();this[_0xa267('0x2')][_0xa267('0x4')]('arrowright',_0xc4d0e3),this[_0xa267('0x2')][_0xa267('0x4')]('arrowleft',_0xc4d0e3),this['keystrokes'][_0xa267('0x4')](_0xa267('0x18'),_0xc4d0e3),this[_0xa267('0x2')][_0xa267('0x4')](_0xa267('0x24'),_0xc4d0e3);}['focus'](){this['_focusCycler'][_0xa267('0x3')]();}get[_0xa267('0x12')](){return this[_0xa267('0x1b')][_0xa267('0x20')][_0xa267('0x7')][_0xa267('0xb')][_0xa267('0x1d')]();}set[_0xa267('0x12')](_0x1ff7eb){this[_0xa267('0x1b')]['fieldView']['element']['value']=_0x1ff7eb[_0xa267('0x1d')]();}[_0xa267('0x19')](){this[_0xa267('0x1b')]['fieldView'][_0xa267('0x7')][_0xa267('0xb')]='';}[_0xa267('0x1f')](){const _0x304d3b=new _0x5d82ef(this[_0xa267('0x1e')],_0x59aa78),_0x1421e2=_0x304d3b['fieldView'];return _0x1421e2[_0xa267('0x8')]({'attributes':{'maxlength':_0xa267('0xd')}}),_0x304d3b[_0xa267('0xa')]=_0xbd5b8d(this[_0xa267('0x1e')],_0xa267('0x22')),_0x1421e2['on']('input',()=>{this['revisionNameInputValue']=_0x1421e2[_0xa267('0x7')][_0xa267('0xb')][_0xa267('0x1d')]();}),_0x304d3b;}['_createButton'](_0x19f91b,_0x388f2e,_0x3e9d2c,_0x206427){const _0xbdd7aa=new _0x1c825a(this[_0xa267('0x1e')]);return _0xbdd7aa[_0xa267('0x4')]({'label':_0x19f91b,'icon':_0x388f2e,'tooltip':!0x0}),_0xbdd7aa[_0xa267('0x8')]({'attributes':{'class':_0x3e9d2c}}),_0x206427&&_0xbdd7aa[_0xa267('0x25')]('execute')['to'](this,_0x206427),_0xbdd7aa;}}