@ckeditor/ckeditor5-revision-history 38.1.1 → 38.2.0-alpha.1

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 (65) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +7 -6
  3. package/src/augmentation.d.ts +25 -25
  4. package/src/changeitem.d.ts +57 -57
  5. package/src/changeitem.js +1 -1
  6. package/src/editor/revisionviewereditor.d.ts +27 -27
  7. package/src/editor/revisionviewereditor.js +1 -1
  8. package/src/editor/revisionviewereditorui.d.ts +28 -28
  9. package/src/editor/revisionviewereditorui.js +1 -1
  10. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  11. package/src/editor/revisionviewereditoruiview.js +1 -1
  12. package/src/index.d.ts +11 -11
  13. package/src/index.js +1 -1
  14. package/src/revision.d.ts +153 -153
  15. package/src/revision.js +1 -1
  16. package/src/revisiondiff.d.ts +20 -20
  17. package/src/revisiondiff.js +1 -1
  18. package/src/revisionhistory.d.ts +95 -95
  19. package/src/revisionhistory.js +1 -1
  20. package/src/revisionhistoryadapter.d.ts +60 -60
  21. package/src/revisionhistoryconfig.d.ts +60 -60
  22. package/src/revisionsrepository.d.ts +48 -48
  23. package/src/revisionsrepository.js +1 -1
  24. package/src/revisiontracker.d.ts +77 -77
  25. package/src/revisiontracker.js +1 -1
  26. package/src/revisionviewer.d.ts +21 -21
  27. package/src/revisionviewer.js +1 -1
  28. package/src/ui/revision/createrevisionactionsdropdown.d.ts +9 -9
  29. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  30. package/src/ui/revision/revisionauthorview.d.ts +4 -4
  31. package/src/ui/revision/revisionauthorview.js +1 -1
  32. package/src/ui/revision/revisionnameview.d.ts +4 -4
  33. package/src/ui/revision/revisionnameview.js +1 -1
  34. package/src/ui/revision/revisionview.d.ts +91 -91
  35. package/src/ui/revision/revisionview.js +1 -1
  36. package/src/ui/revision/subrevisioncollapserview.d.ts +17 -17
  37. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  38. package/src/ui/revision/subrevisionview.d.ts +30 -30
  39. package/src/ui/revision/subrevisionview.js +1 -1
  40. package/src/ui/revision/utils.d.ts +4 -4
  41. package/src/ui/revision/utils.js +1 -1
  42. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +80 -80
  43. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  44. package/src/ui/revisionhistory/revisionhistoryui.d.ts +22 -22
  45. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  46. package/src/ui/revisionssidebar/revisionssidebar.d.ts +40 -40
  47. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  48. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +4 -4
  49. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  50. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +25 -25
  51. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  52. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +40 -40
  53. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  54. package/src/ui/revisionssidebar/utils.d.ts +8 -8
  55. package/src/ui/revisionssidebar/utils.js +1 -1
  56. package/src/ui/revisionviewer/changedetailsview.d.ts +18 -18
  57. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  58. package/src/ui/revisionviewer/changesnavigationview.d.ts +36 -36
  59. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  60. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +22 -22
  61. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  62. package/src/ui/revisionviewer/revisionviewerui.d.ts +24 -24
  63. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  64. package/src/utils/common-translations.d.ts +7 -7
  65. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1327=['RevisionTracker','hasContent','_bufferedUpdates','loadState','_markers','define','_execute','createRange','data-revision-','_applyOperations','isEqual','isAttached','path','_setConversion','default','_isPendingUpdate','_handleMoveOperation','slice','_initialRoots','Users','_idsRoots','_authorId','attributes','_transformMarkers','_handleSplitOperation','marker','getRevisionDocumentData','_getViewJson','get','insertions','$graveyard','_handleRootOperation','type','_loadedStateData','getData','resolve','map','createPositionAt','_cloneOperation','size','clone','Empty\x20document','_diffRoots','source','toVersion','NEGATIVE_INFINITY','nodes','editor','getCurrentRevisionId','initial','editor-initial-data-replaced-with-revision-data','data','rootsAttributes','getTime','currentRevision','_pendingAction','userId','stickiness','getNodeByPath','some','sourcePosition','addRevision','from','startsWith','getWalker','buildRevisionData','_loadState','_prepareViewToSave','_getBaseVids','repository','getRootNames','authors','_isInit','_source','_lastTo','ready','_handleInsertOperation','revisionHistory.resumeUnsavedRevision','collaboration.channelId','newValue','getUser','revision-end','getAncestors','_removeRevisionMarkers','afterInit','RevisionsRepository','getChild','init','reInit','$text','markerToData','targetPosition','_baseRoots','roots','_calculateMetaData','_handleMarkerOperation','set','insertion','_getFromVersion','getChildren','_startingRevisionId','initialData','addRevisionData','root','_removePendingAction','creator','_revisionDataBuilder','rootName','item','getRevisions','_baseIdsRoots','range','length','_touched','delete','end','key','plugins','_handleMergeOperation','createPositionFromPath','revision-start','getAttributes','_getState','_startingVersion','_fixPosition','name','_markChanges','getRevisionRootsAttributes','getOperation','updateRevisions','history','revision:','addRootAttribute','_saveMetaData','diffData','_continueCurrentRevision','_insertChild','_reset','graveyardPosition','markers','editing','update','start','upcast','add','getMovedRangeStart','_handleOperation','trim','vid_start','toView','createdAt','getRevision','toModel','position','_baseRootsAttributes','_copyMarkers','useFillerType','getRange','_lastFrom','offsetSize','isReady','newRange','includes','childCount','getAttribute','then','baseVersion','_findInsertionIndex','getRoot','_fixRange','_removeMetaData','adapter','_addPendingAction','for','_touchedMarkers','_savedMetaData','_makeModelFromViewString','isEnabled','getLatestVersion','attachChange','_update','_revisionId','_diffRootsAttributes','_generateTape','dataToMarker','elementStart','saveRevision','element','revision','isAdd','max','_getPreviousFrom','tableCell','keepParagraph','nodeAfter','filter','_fixOperation','howMany','documentFragment','clear','addRoot','toData','keys','getIndex','splitPosition','_isAttached','fromEntries','PendingActions','_loadRevisionData','offset','version','marked','authorsIds','_getVidAttributeName','deletions','reverse','document','parent','_processRootBeforeSave','has','insert','bind','processor','setRevisionData','parse','find','config','previousPosition','pluginName','creatorId','vid','RealTimeCollaborationClient','_makeRevision','_createFromRanges','_initialRevisionId','setSource','createRangeIn','oldRange','model','_bufferUpdate','remove','values','text','paragraph','_setAttribute','vid_end','requires','_appendChild','finally','_createCurrentRevision','_clone','string','detachRoot','view','_makeIdsRoot','split','conversion','dataDowncast','children','_createInitialRevision','_touchedRoots','sendBufferedUpdates','elementEnd','push','locale','fromVersion','_replaceEditorDataWithRevisionData'];(function(_0x5c9e41,_0x1327bc){const _0x2bff69=function(_0x50e378){while(--_0x50e378){_0x5c9e41['push'](_0x5c9e41['shift']());}};_0x2bff69(++_0x1327bc);}(_0x1327,0x1e9));const _0x2bff=function(_0x5c9e41,_0x1327bc){_0x5c9e41=_0x5c9e41-0x0;let _0x2bff69=_0x1327[_0x5c9e41];return _0x2bff69;};import{Users as _0x4997b2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x271fcb,PendingActions as _0x26b5e6}from'ckeditor5/src/core';import{logWarning as _0x1c3677,uid as _0x3271ad}from'ckeditor5/src/utils';import{Position as _0x28d65f,Range as _0x3ae9d1,Element as _0x296fc7,DocumentFragment as _0x1aa4f2,ViewText as _0x5c4f49,ViewElement as _0x560467,ViewContainerElement as _0x5e475c,ViewAttributeElement as _0x11e9f7,ViewEmptyElement as _0x4b5be2,ViewRawElement as _0x369c57,ViewUIElement as _0x140d33,ViewDocumentFragment as _0x27dc10}from'ckeditor5/src/engine';import _0x41a7fa from'./revisionsrepository';import{getTranslation as _0xdbf272}from'./utils/common-translations';import{cloneDeep as _0x57291b,isEqual as _0xdf99e7}from'lodash-es';const F={'c':_0x5e475c,'a':_0x11e9f7,'e':_0x4b5be2,'r':_0x369c57,'u':_0x140d33};export default class u extends _0x271fcb{static get[_0x2bff('0x6')](){return _0x2bff('0x2d');}static get[_0x2bff('0x18')](){return[_0x4997b2,_0x41a7fa,_0x26b5e6];}constructor(_0x5888dd){super(_0x5888dd),this[_0x2bff('0xd8')]=null,this['currentRevision']=null,this[_0x2bff('0x97')]=new B(this[_0x2bff('0x5c')]),this[_0x2bff('0xc')]=this['editor'][_0x2bff('0x4')][_0x2bff('0x49')](_0x2bff('0x7b'))||_0x2bff('0x5e'),this[_0x2bff('0x2f')]=new Map(),this[_0x2bff('0x4e')]=null;const _0x9d3753=_0x3271ad();this['_source']={'history':this[_0x2bff('0x5c')][_0x2bff('0x10')][_0x2bff('0x105')]['history'],'getLatestVersion':()=>Promise[_0x2bff('0x50')](this[_0x2bff('0x5c')][_0x2bff('0x10')]['document'][_0x2bff('0xff')]),'getCurrentRevisionId':()=>_0x9d3753},this['set'](_0x2bff('0xcd'),!0x1),this[_0x2bff('0x8d')](_0x2bff('0xde'),!0x0),this[_0x2bff('0x8d')](_0x2bff('0x3c'),!0x1),this[_0x2bff('0x5c')]['config'][_0x2bff('0x32')](_0x2bff('0x7a'),!0x0),this['editor'][_0x2bff('0x22')][_0x2bff('0xda')](_0x2bff('0xbc'))[_0x2bff('0xe5')]({'view':_0x2bff('0xe9')});}['init'](){this[_0x2bff('0x72')]=this[_0x2bff('0x5c')][_0x2bff('0xa2')]['get'](_0x2bff('0x82')),this[_0x2bff('0x3a')](),this['editor'][_0x2bff('0x60')]['on'](_0x2bff('0x78'),()=>{const _0x592dde=this[_0x2bff('0x72')][_0x2bff('0xc4')](0x0),_0x2867b4=_0x592dde&&null===_0x592dde[_0x2bff('0x96')]?_0x592dde:null;if(this[_0x2bff('0xb4')]=!!_0x2867b4&&this[_0x2bff('0x5c')][_0x2bff('0x4')][_0x2bff('0x49')](_0x2bff('0x7a')),this['editor'][_0x2bff('0xa2')][_0x2bff('0x108')](_0x2bff('0x9'))){const _0x2aed3e=this[_0x2bff('0x76')][_0x2bff('0x5d')](),_0x2daef2=this[_0x2bff('0x72')][_0x2bff('0xc4')](_0x2aed3e);if(_0x2daef2)this['_startingVersion']=_0x2daef2[_0x2bff('0x2b')],this[_0x2bff('0xb4')]=!0x1;else{const _0x37196c=this['_source'][_0x2bff('0xaf')]['_operations'][_0x2bff('0x3')](_0x760743=>!_0x760743[_0x2bff('0x75')]),_0x19a33c=_0x37196c?_0x37196c[_0x2bff('0xd3')]:this[_0x2bff('0x76')][_0x2bff('0xaf')][_0x2bff('0xff')];_0x592dde?(_0x592dde[_0x2bff('0x59')]<_0x19a33c&&_0x592dde[_0x2bff('0xe1')]({'toVersion':_0x19a33c}),this[_0x2bff('0xb4')]?(this[_0x2bff('0x76')][_0x2bff('0x5d')]=()=>_0x2867b4['id'],this[_0x2bff('0xa8')]=_0x2867b4['fromVersion']):(this[_0x2bff('0xa8')]=_0x592dde['toVersion'],this[_0x2bff('0xb4')]=!0x1)):(this[_0x2bff('0xa8')]=_0x19a33c,this[_0x2bff('0xb4')]=!0x1);}}else _0x2867b4&&(this[_0x2bff('0x5c')][_0x2bff('0x10')]['document'][_0x2bff('0xaf')]['version']=Math[_0x2bff('0xeb')](_0x2867b4[_0x2bff('0x59')],this[_0x2bff('0x5c')][_0x2bff('0x10')][_0x2bff('0x105')][_0x2bff('0xaf')]['version']),_0x2867b4['fromVersion']===_0x2867b4[_0x2bff('0x59')]?(0x0!==_0x2867b4[_0x2bff('0x2b')]&&(this['_source'][_0x2bff('0x5d')]=()=>_0x2867b4['id']),this['_continueCurrentRevision']=!0x1):this[_0x2bff('0xb4')]&&(this[_0x2bff('0x76')][_0x2bff('0x5d')]=()=>_0x2867b4['id'],this['_startingVersion']=_0x2867b4['fromVersion'])),this[_0x2bff('0xb4')]||(this['_startingVersion']=this[_0x2bff('0x5c')]['model'][_0x2bff('0x105')][_0x2bff('0xff')]);this['_revisionDataBuilder']['init'](this['_source'][_0x2bff('0xaf')]),this['_createInitialRevision'](this[_0x2bff('0xa8')]),this[_0x2bff('0x1b')](this[_0x2bff('0xa8')]),this['adapter']&&this[_0x2bff('0x27')]();}),this[_0x2bff('0x10a')](_0x2bff('0xcd'))['to'](this,_0x2bff('0x3c'),_0x3a2813=>!_0x3a2813);}async[_0x2bff('0x81')](){if(this['repository'][_0x2bff('0x9d')]>0x0){const _0x3c2fe7=this[_0x2bff('0x72')][_0x2bff('0xc4')](0x0),_0x376381=await this[_0x2bff('0x47')](_0x3c2fe7),_0x1713eb=await this[_0x2bff('0xac')](_0x3c2fe7);this['_replaceEditorDataWithRevisionData'](_0x376381,_0x1713eb);}}[_0x2bff('0xd')](_0x1d7922){this[_0x2bff('0x76')]=_0x1d7922;}async[_0x2bff('0xba')](){const _0xd10db9=await this[_0x2bff('0x76')][_0x2bff('0xdf')]();if(_0xd10db9>this[_0x2bff('0x63')][_0x2bff('0x59')]){await this[_0x2bff('0x6f')]();const _0x5b1b96=this[_0x2bff('0x6e')]({'revision':this[_0x2bff('0x63')],'to':_0xd10db9});_0x5b1b96[_0x2bff('0x74')]=_0x5b1b96['authorsIds'][_0x2bff('0x51')](_0x324465=>this['editor'][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))[_0x2bff('0x7d')](_0x324465)),this[_0x2bff('0x63')][_0x2bff('0xe1')](_0x5b1b96);}}async['_loadState'](){this[_0x2bff('0xb4')]&&!this[_0x2bff('0x4e')]&&(await this[_0x2bff('0xfd')](this[_0x2bff('0x63')]),this[_0x2bff('0x97')][_0x2bff('0x30')](this[_0x2bff('0x63')]),this['_loadedStateData']={'fromVersion':this[_0x2bff('0x63')]['fromVersion'],'authors':this['currentRevision'][_0x2bff('0x74')]['slice']()});}async[_0x2bff('0xe7')](_0x3a7a39={},_0x1bdaec=null){const _0x3a65b9=[];await this[_0x2bff('0x6f')](),this[_0x2bff('0xb4')]=!0x1,_0x1bdaec>this['currentRevision'][_0x2bff('0x59')]&&(_0x1bdaec=null),null===_0x1bdaec&&(_0x1bdaec=await this[_0x2bff('0x76')]['getLatestVersion']());const _0x374cb0=this[_0x2bff('0x8f')](_0x1bdaec),_0x5baa8d=this['buildRevisionData']({'from':_0x374cb0,'to':_0x1bdaec});if(this[_0x2bff('0x63')]['toVersion']<_0x1bdaec){const _0x11606c=this[_0x2bff('0x6e')]({'revision':this[_0x2bff('0x63')],'from':_0x1bdaec,'to':_0x1bdaec});_0x11606c['authors']=[],_0x11606c[_0x2bff('0x101')]=[],_0x11606c['id']=this['currentRevision']['id'],this[_0x2bff('0x63')][_0x2bff('0xe1')](_0x11606c,!0x0),delete _0x11606c[_0x2bff('0x74')],_0x3a65b9[_0x2bff('0x29')](_0x11606c);}_0x3a7a39[_0x2bff('0x7')]=this['editor'][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x3a7a39[_0x2bff('0xaa')]=_0x3a7a39['name']||null,_0x3a7a39['id']=_0x3a7a39['id']||_0x3271ad(),_0x3a7a39={..._0x3a7a39,..._0x5baa8d};const _0x5b56f0=this['addRevisionData'](_0x3a7a39);_0x3a65b9['push'](_0x3a7a39);const _0x2e1262=this[_0x2bff('0x72')][_0x2bff('0xf8')](_0x5b56f0);if(0x0!==_0x2e1262){const _0x333b28=this['repository'][_0x2bff('0xc4')](_0x2e1262-0x1);if(_0x333b28[_0x2bff('0x2b')]!==_0x1bdaec){const _0x18802a=this[_0x2bff('0x97')][_0x2bff('0x4f')](_0x1bdaec,_0x333b28[_0x2bff('0x59')]),_0x2a8670={'id':_0x333b28['id'],'diffData':_0x18802a['diffData'],'authorsIds':_0x18802a['authorsIds'],'authors':_0x18802a[_0x2bff('0x101')][_0x2bff('0x51')](_0x216217=>this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')]('Users')[_0x2bff('0x7d')](_0x216217)),'fromVersion':_0x1bdaec};_0x333b28===this['currentRevision']&&(_0x2a8670[_0x2bff('0xc3')]=new Date(_0x3a7a39[_0x2bff('0xc3')][_0x2bff('0x62')]()+0xa)),_0x333b28[_0x2bff('0xe1')](_0x2a8670,!0x0),delete _0x2a8670['authors'],_0x3a65b9[_0x2bff('0x29')](_0x2a8670);}}if(this[_0x2bff('0xd8')]){for(const _0x7cb497 of _0x3a65b9)this['_bufferUpdate'](_0x7cb497['id'],_0x7cb497,!0x0);this[_0x2bff('0x27')]();}return _0x5b56f0;}[_0x2bff('0x93')](_0x283ce5){const _0x3257eb=this[_0x2bff('0x72')]['createRevision'](_0x283ce5);return this[_0x2bff('0xd8')]&&_0x3257eb['on'](_0x2bff('0xe1'),(_0x35e664,_0x494860,_0x22e3b6)=>{_0x22e3b6||(this['_bufferUpdate'](_0x494860['id'],_0x494860,!0x0),this[_0x2bff('0x27')]());}),this[_0x2bff('0x72')][_0x2bff('0x6a')](_0x3257eb,this['_findInsertionIndex'](_0x3257eb)),_0x3257eb;}async[_0x2bff('0x47')](_0x9822fe){await this[_0x2bff('0xfd')](_0x9822fe);const _0x2e456e={};for(const _0x64000a in _0x9822fe['diffData']){if(_0x9822fe['diffData'][_0x64000a][_0x2bff('0xe0')]&&!_0x9822fe['diffData'][_0x64000a][_0x2bff('0xe0')][_0x2bff('0x38')])continue;const _0x206bb0=this[_0x2bff('0x80')](JSON[_0x2bff('0x2')](_0x9822fe[_0x2bff('0xb3')][_0x64000a]['insertions'])),_0x269d66=this[_0x2bff('0x5c')][_0x2bff('0xb9')][_0x2bff('0x1f')][_0x2bff('0x105')],_0x29507d=new _0x27dc10(_0x269d66,_0x206bb0[_0x2bff('0x51')](_0x2cf328=>T(_0x2cf328,this[_0x2bff('0x5c')])));this['editor'][_0x2bff('0x60')][_0x2bff('0x0')][_0x2bff('0xc9')](_0x2bff('0x100')),_0x2e456e[_0x64000a]=this[_0x2bff('0x5c')][_0x2bff('0x60')][_0x2bff('0x0')][_0x2bff('0xf6')](_0x29507d),this[_0x2bff('0x5c')][_0x2bff('0x60')][_0x2bff('0x0')][_0x2bff('0xc9')](_0x2bff('0x3b'));}return _0x2e456e;}async[_0x2bff('0xac')](_0x542070){await this[_0x2bff('0xfd')](_0x542070);const _0x26f8b0={};for(const _0x20ae01 in _0x542070[_0x2bff('0xb3')])_0x542070['diffData'][_0x20ae01][_0x2bff('0xe0')]&&!_0x542070[_0x2bff('0xb3')][_0x20ae01]['attachChange'][_0x2bff('0x38')]||(_0x26f8b0[_0x20ae01]=_0x542070['diffData'][_0x20ae01]['attributesAfter']||{});return _0x26f8b0;}['sendBufferedUpdates'](){if(0x0===this[_0x2bff('0x2f')][_0x2bff('0x54')])return;if(this['_isPendingUpdate'])return;let _0xe21fc7=Array[_0x2bff('0x6b')](this['_bufferedUpdates'][_0x2bff('0x13')]());this[_0x2bff('0x2f')]['clear']();for(let _0x5d1f8e=0x0;_0x5d1f8e<_0xe21fc7[_0x2bff('0x9d')];_0x5d1f8e++){const _0x392475=_0xe21fc7[_0x5d1f8e];let _0x1a1a8f=!0x1;for(const _0xfa175 of Object[_0x2bff('0xf7')](_0x392475))void 0x0===_0x392475[_0xfa175]?delete _0x392475[_0xfa175]:'id'!==_0xfa175&&(_0x1a1a8f=!0x0);_0x1a1a8f||(_0xe21fc7[_0x5d1f8e]=null);}if(_0xe21fc7=_0xe21fc7[_0x2bff('0xf0')](_0x40cc28=>null!==_0x40cc28),!_0xe21fc7[_0x2bff('0x9d')])return;for(let _0x1f6f57=0x0;_0x1f6f57<_0xe21fc7[_0x2bff('0x9d')];_0x1f6f57++){const _0x51c25a=_0xe21fc7[_0x1f6f57];void 0x0!==_0x51c25a[_0x2bff('0x2b')]&&void 0x0===_0x51c25a[_0x2bff('0x59')]&&(_0x51c25a['toVersion']=this[_0x2bff('0x72')][_0x2bff('0xc4')](_0x51c25a['id'])[_0x2bff('0x59')]),void 0x0!==_0x51c25a[_0x2bff('0x59')]&&void 0x0===_0x51c25a[_0x2bff('0x2b')]&&(_0x51c25a['fromVersion']=this[_0x2bff('0x72')][_0x2bff('0xc4')](_0x51c25a['id'])[_0x2bff('0x2b')]);}const _0x3c4101=this[_0x2bff('0x5c')][_0x2bff('0x4')][_0x2bff('0x49')](_0x2bff('0x7b'));this['_isPendingUpdate']=!0x0,this[_0x2bff('0xd9')](),this[_0x2bff('0xd8')][_0x2bff('0xae')](_0xe21fc7,_0x3c4101)[_0x2bff('0x1a')](()=>{this[_0x2bff('0x3c')]=!0x1;})[_0x2bff('0xd2')](_0x3ed60a=>{if(_0x3ed60a)for(const _0x1c653a of _0x3ed60a)this[_0x2bff('0x1')]({'id':_0x1c653a['id'],'createdAt':_0x1c653a[_0x2bff('0xc3')]});this[_0x2bff('0x95')](),this[_0x2bff('0x27')]();});}[_0x2bff('0x2c')](_0x3dc37a,_0x811fd6){let _0x13202a=this['editor'][_0x2bff('0x4')][_0x2bff('0x49')]('initialData'),_0x2b4da0=this[_0x2bff('0x5c')][_0x2bff('0x4')][_0x2bff('0x49')](_0x2bff('0x61'));if(void 0x0===_0x13202a){_0x13202a={};for(const _0x109668 of this[_0x2bff('0x5c')][_0x2bff('0x10')][_0x2bff('0x105')][_0x2bff('0x73')]())_0x13202a[_0x109668]='';}if(_0x2bff('0x1d')==typeof _0x13202a&&(_0x13202a={'main':_0x13202a}),void 0x0===_0x2b4da0){_0x2b4da0={};for(const _0x1b547b of this[_0x2bff('0x5c')]['model'][_0x2bff('0x105')][_0x2bff('0x73')]())_0x2b4da0[_0x1b547b]={};}let _0xceb6ee=!0x1;const _0x5b24ee=Object[_0x2bff('0xf7')](_0x13202a),_0x318f25=Object['keys'](_0x3dc37a);for(const _0x261e30 of _0x5b24ee){if(_0x13202a[_0x261e30]!==_0x3dc37a[_0x261e30]&&''!==_0x13202a[_0x261e30][_0x2bff('0xc0')]()){_0xceb6ee=!0x0;break;}if(!_0xdf99e7(_0x2b4da0[_0x261e30],_0x811fd6[_0x261e30])&&Object[_0x2bff('0xf7')](_0x2b4da0[_0x261e30])['length']>0x0){_0xceb6ee=!0x0;break;}}_0xceb6ee||(_0xceb6ee=_0x318f25[_0x2bff('0x68')](_0x5d3797=>!_0x5b24ee['includes'](_0x5d3797))),_0xceb6ee&&_0x1c3677(_0x2bff('0x5f'),{'editorData':_0x13202a,'editorRootsAttributes':_0x2b4da0,'revisionData':_0x3dc37a,'revisionRootsAttributes':_0x811fd6}),this[_0x2bff('0x5c')]['config'][_0x2bff('0x8d')](_0x2bff('0x92'),_0x3dc37a),this[_0x2bff('0x5c')][_0x2bff('0x4')][_0x2bff('0x8d')](_0x2bff('0x61'),_0x811fd6);}[_0x2bff('0xd9')](){if(!this['_pendingAction']){const _0x36423d=this['editor'][_0x2bff('0xa2')]['get'](_0x2bff('0xfc'));this[_0x2bff('0x64')]=_0x36423d['add'](_0xdbf272(this['editor'][_0x2bff('0x2a')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x2bff('0x95')](){this['_pendingAction']&&(this[_0x2bff('0x5c')]['plugins'][_0x2bff('0x49')](_0x2bff('0xfc'))['remove'](this[_0x2bff('0x64')]),this[_0x2bff('0x64')]=null);}[_0x2bff('0xd4')](_0x11b5d4){const _0x4f4f2a=this['repository'][_0x2bff('0x9a')]();_0x4f4f2a[_0x2bff('0x104')]();let _0x473031=0x0;for(;_0x473031<_0x4f4f2a[_0x2bff('0x9d')];){const _0x29cf70=_0x4f4f2a[_0x473031];if(_0x29cf70===this['currentRevision']){_0x473031++;continue;}if(_0x29cf70['id']===this['_initialRevisionId'])break;const _0x59f273=_0x11b5d4[_0x2bff('0x59')]-_0x29cf70['toVersion']||_0x11b5d4[_0x2bff('0x2b')]-_0x29cf70['fromVersion'];if(_0x59f273>0x0)break;if(_0x59f273<0x0)_0x473031++;else{if(!_0x11b5d4[_0x2bff('0x96')]&&_0x29cf70[_0x2bff('0x96')])break;if(_0x29cf70['creator']||!_0x11b5d4[_0x2bff('0x96')]){if(_0x11b5d4[_0x2bff('0xc3')]>_0x29cf70[_0x2bff('0xc3')])break;_0x473031++;}else _0x473031++;}}return _0x473031;}[_0x2bff('0x1')](_0x2cc2fc){const _0x524082=this[_0x2bff('0x72')][_0x2bff('0xc4')](_0x2cc2fc['id']);if(_0x2cc2fc[_0x2bff('0xc3')]&&(_0x2cc2fc[_0x2bff('0xc3')]=new Date(_0x2cc2fc[_0x2bff('0xc3')])),_0x2cc2fc['authorsIds']){const _0x19c802=this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'));_0x2cc2fc[_0x2bff('0x74')]=_0x2cc2fc[_0x2bff('0x101')][_0x2bff('0x51')](_0x4b5837=>_0x19c802['getUser'](_0x4b5837));}_0x524082[_0x2bff('0xe1')](_0x2cc2fc,!0x0);}[_0x2bff('0x6e')]({revision:_0x5ba9ca=null,from:_0x3a762f=null,to:_0x5677dc=null}){_0x3a762f=null!==_0x3a762f?_0x3a762f:_0x5ba9ca[_0x2bff('0x2b')],_0x5677dc=null!==_0x5677dc?_0x5677dc:_0x5ba9ca[_0x2bff('0x59')];const _0xe6fcaa=this['_revisionDataBuilder'][_0x2bff('0x4f')](_0x3a762f,_0x5677dc),_0x269092={'diffData':_0xe6fcaa[_0x2bff('0xb3')],'authorsIds':_0xe6fcaa[_0x2bff('0x101')],'fromVersion':_0x3a762f,'toVersion':_0x5677dc};if(!_0x5ba9ca||_0x5677dc!==_0x5ba9ca[_0x2bff('0x59')]){const _0xaff65f=_0x5677dc-0x1,_0x5cd028=this[_0x2bff('0x76')][_0x2bff('0xaf')][_0x2bff('0xad')](_0xaff65f);_0x269092[_0x2bff('0xc3')]=_0x5cd028&&_0x5cd028['createdAt']||new Date();}if(this[_0x2bff('0x4e')]&&_0x3a762f===this['_loadedStateData'][_0x2bff('0x2b')])for(const _0x5e0796 of this[_0x2bff('0x4e')][_0x2bff('0x74')])_0x269092[_0x2bff('0x101')][_0x2bff('0xcf')](_0x5e0796['id'])||_0x269092[_0x2bff('0x101')][_0x2bff('0x29')](_0x5e0796['id']);return _0x269092;}['_loadRevisionData'](_0xe5fb1f){if(!_0xe5fb1f||_0xe5fb1f[_0x2bff('0xb3')])return Promise[_0x2bff('0x50')]();{const _0x301cd3=this[_0x2bff('0x5c')][_0x2bff('0x4')][_0x2bff('0x49')](_0x2bff('0x7b'));return this['adapter'][_0x2bff('0xc4')]({'channelId':_0x301cd3,'revisionId':_0xe5fb1f['id']})[_0x2bff('0xd2')](_0x583555=>{_0xe5fb1f[_0x2bff('0xb3')]=_0x583555[_0x2bff('0xb3')];});}}['_bufferUpdate'](_0x290476,_0x23fc82,_0x143ab6){if(this[_0x2bff('0x2f')][_0x2bff('0x108')](_0x290476)){const _0x480b3e=this[_0x2bff('0x2f')][_0x2bff('0x49')](_0x290476);_0x23fc82=_0x143ab6?{..._0x480b3e,..._0x23fc82}:{..._0x23fc82,..._0x480b3e};}this[_0x2bff('0x2f')][_0x2bff('0x8d')](_0x290476,_0x23fc82);}['_getFromVersion'](_0x5807e6){const _0x5777a8=this['repository'][_0x2bff('0x9a')]();_0x5777a8[_0x2bff('0x104')](),_0x5777a8['shift']();const _0x219231=_0x5777a8[_0x2bff('0x3')](_0x34baf1=>_0x34baf1[_0x2bff('0x59')]<=_0x5807e6)['toVersion'];return _0x219231<this[_0x2bff('0xa8')]?this[_0x2bff('0xa8')]:_0x219231;}[_0x2bff('0x25')](_0x30bbe9){const _0x2f6407=this[_0x2bff('0x72')][_0x2bff('0xc4')](this[_0x2bff('0x72')][_0x2bff('0x9d')]-0x1);if(_0x2f6407)this[_0x2bff('0xc')]=_0x2f6407['id'];else{const _0x1814f0=!this[_0x2bff('0x5c')]['model'][_0x2bff('0x105')][_0x2bff('0x8a')][_0x2bff('0x3')](_0x13eea5=>this['editor'][_0x2bff('0x10')][_0x2bff('0x2e')](_0x13eea5)),_0x3a6a7a=this['editor']['plugins']['get'](_0x2bff('0x40'))['me']['id'],_0x5e0fc9=_0xdbf272(this['editor'][_0x2bff('0x2a')],_0x1814f0?_0x2bff('0x56'):'Initial\x20revision');this[_0x2bff('0xa')]({'from':_0x30bbe9,'to':_0x30bbe9,'id':this[_0x2bff('0xc')],'name':_0x5e0fc9,'creatorId':_0x3a6a7a});}}[_0x2bff('0x1b')](_0x6dad7c){const _0x2150a2=this['_source']['getCurrentRevisionId']();this[_0x2bff('0x63')]=this[_0x2bff('0x72')][_0x2bff('0xc4')](_0x2150a2),this[_0x2bff('0x63')]||(this[_0x2bff('0x63')]=this[_0x2bff('0xa')]({'from':_0x6dad7c,'to':_0x6dad7c,'id':_0x2150a2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x25038d,from:_0x1dfc8f,to:_0x34d816,creatorId:_0x14ac66,id:_0x5b7aee}){const _0x5ba43e=this['buildRevisionData']({'from':_0x1dfc8f,'to':_0x34d816});_0x5ba43e[_0x2bff('0xaa')]=_0x25038d,_0x5ba43e[_0x2bff('0x7')]=_0x14ac66,_0x5ba43e['id']=_0x5b7aee;const _0x26a188=this[_0x2bff('0x93')](_0x5ba43e);return this[_0x2bff('0xd8')]&&this[_0x2bff('0x11')](_0x5ba43e['id'],_0x5ba43e,!0x0),_0x26a188;}[_0x2bff('0x3a')](){this[_0x2bff('0x5c')][_0x2bff('0x22')][_0x2bff('0xda')](_0x2bff('0x23'))[_0x2bff('0x87')]({'model':_0x2bff('0xe9')});}['_removeRevisionMarkers'](_0x5829f3){return(_0x5829f3=_0x5829f3[_0x2bff('0xf0')](_0x56171f=>!_0x56171f['name']||_0x2bff('0xa5')!==_0x56171f[_0x2bff('0xaa')]&&_0x2bff('0x7e')!==_0x56171f['name']))['forEach'](_0x3d9f6c=>{_0x2bff('0x1d')!=typeof _0x3d9f6c&&(_0x3d9f6c[_0x2bff('0x24')]=this['_removeRevisionMarkers'](_0x3d9f6c['children']),_0x3d9f6c['attributes']=_0x3d9f6c['attributes'][_0x2bff('0xf0')](_0x4253fd=>!_0x4253fd[0x0][_0x2bff('0x6c')](_0x2bff('0x35'))));}),_0x5829f3;}}function T(_0x4ac189,_0x2fb510){const _0x1c1ab5=_0x2fb510[_0x2bff('0xb9')][_0x2bff('0x1f')][_0x2bff('0x105')];if(_0x2bff('0x1d')==typeof _0x4ac189)return new _0x5c4f49(_0x1c1ab5,_0x4ac189);{const _0x3e8418=_0x4ac189[_0x2bff('0x24')][_0x2bff('0x51')](_0x5442ad=>T(_0x5442ad,_0x2fb510));return new(F[_0x4ac189[(_0x2bff('0x4d'))]]||_0x560467)(_0x1c1ab5,_0x4ac189['name'],_0x4ac189[_0x2bff('0x43')],_0x3e8418);}}class B{constructor(_0x222f1c){this[_0x2bff('0x5c')]=_0x222f1c,this[_0x2bff('0xdc')]=new Map(),this[_0x2bff('0xcb')]=-0x1,this[_0x2bff('0x77')]=-0x1,this[_0x2bff('0x31')]=new Map(),this[_0x2bff('0x57')]=new Map(),this[_0x2bff('0xe3')]=new Map(),this[_0x2bff('0x89')]=new Map(),this[_0x2bff('0xc7')]=new Map(),this[_0x2bff('0x41')]=new Map(),this[_0x2bff('0x9b')]=new Map(),this['_touched']=new Map(),this[_0x2bff('0xdb')]=new Map(),this[_0x2bff('0x26')]=new Map(),this[_0x2bff('0xe2')]=0x1,this['_initialRoots']=this[_0x2bff('0x5c')]['model']['document'][_0x2bff('0x73')](),this[_0x2bff('0x3f')][_0x2bff('0x29')](_0x2bff('0x4b'));}['init'](_0x76f509){this[_0x2bff('0x58')]=_0x76f509;const _0x1c6240=new Map(),_0x31e8cc=new Map(),_0x321e1f=this[_0x2bff('0x5c')][_0x2bff('0x10')]['document'][_0x2bff('0x73')](!0x0);_0x321e1f[_0x2bff('0x29')](_0x2bff('0x4b'));for(const _0x4c730d of _0x321e1f){const _0x5b1616=this[_0x2bff('0x5c')][_0x2bff('0x10')]['document'][_0x2bff('0xd5')](_0x4c730d),_0x2a4d54=J(_0x5b1616);_0x1c6240[_0x2bff('0x8d')](_0x4c730d,_0x2a4d54),_0x31e8cc['set'](_0x4c730d,Object[_0x2bff('0xfb')](_0x5b1616[_0x2bff('0xa6')]()));}const _0x102d70=Array[_0x2bff('0x6b')](this[_0x2bff('0x5c')][_0x2bff('0x10')]['markers'])['map'](_0x2c4e73=>[_0x2c4e73['name'],_0x2c4e73[_0x2bff('0xca')]()]),_0x1bbfd3=this[_0x2bff('0x58')][_0x2bff('0xff')];this[_0x2bff('0xb2')](_0x1bbfd3,_0x1c6240,_0x102d70,_0x31e8cc),this[_0x2bff('0x91')]=this[_0x2bff('0xe2')];const _0x1904fa=new Map(),_0x52267e=new Map();for(const _0x50a785 of this[_0x2bff('0x3f')]){const _0x401821=H(_0x50a785);_0x1904fa[_0x2bff('0x8d')](_0x50a785,_0x401821),_0x52267e['set'](_0x50a785,{});}this[_0x2bff('0xb2')](Number[_0x2bff('0x5a')],_0x1904fa,[],_0x52267e);}[_0x2bff('0x4f')](_0x430383,_0x28d3b7){if(this[_0x2bff('0xcb')]===_0x430383&&this[_0x2bff('0x77')]<=_0x28d3b7)this[_0x2bff('0xdc')][_0x2bff('0x54')]>0x1&&this[_0x2bff('0xd7')](this[_0x2bff('0x77')]),this[_0x2bff('0x36')](this[_0x2bff('0x77')],_0x28d3b7,!0x0);else{if(!this[_0x2bff('0xdc')]['has'](_0x430383)){const _0x56e032=this[_0x2bff('0xec')](_0x430383);this['_calculateMetaData'](_0x56e032,_0x430383,!0x1);}this[_0x2bff('0x8b')](_0x430383,_0x28d3b7,!0x0);}return this[_0x2bff('0xcb')]=_0x430383,this[_0x2bff('0x77')]=_0x28d3b7,this[_0x2bff('0xa7')]();}[_0x2bff('0x30')](_0x3bd52a){this[_0x2bff('0xb6')](),this['_lastFrom']=_0x3bd52a[_0x2bff('0x2b')],this['_lastTo']=_0x3bd52a[_0x2bff('0x59')];for(const _0x5817a3 in _0x3bd52a[_0x2bff('0xb3')]){const _0x188cc5=_0x3bd52a[_0x2bff('0xb3')][_0x5817a3]['attachChange'],_0x8cd625=_0x57291b(_0x3bd52a[_0x2bff('0xb3')][_0x5817a3]['attributesBefore'])||{},_0x454b0c=this['_makeModelFromViewString'](_0x3bd52a[_0x2bff('0xb3')][_0x5817a3][_0x2bff('0x103')]);_0x454b0c[_0x2bff('0x98')]=_0x5817a3,_0x454b0c[_0x2bff('0xfa')]=!_0x188cc5||!_0x188cc5[_0x2bff('0x38')],_0x454b0c['isAttached']=()=>_0x454b0c['_isAttached'],this[_0x2bff('0x89')][_0x2bff('0x8d')](_0x5817a3,_0x454b0c),this[_0x2bff('0xc7')][_0x2bff('0x8d')](_0x5817a3,_0x8cd625),_0x188cc5&&this[_0x2bff('0x26')][_0x2bff('0x8d')](_0x5817a3,_0x188cc5);const _0x5cfe81=this[_0x2bff('0x20')](_0x454b0c);this[_0x2bff('0x9b')][_0x2bff('0x8d')](_0x5817a3,_0x5cfe81);for(const [_0x4049df,_0x478323]of _0x454b0c[_0x2bff('0xb8')]){if(!_0x4049df[_0x2bff('0x6c')](_0x2bff('0xb0')))continue;const _0x141d7e=_0x4049df[_0x2bff('0x21')](':')[0x2];for(const _0x489f6d of _0x478323[_0x2bff('0x6d')]({'singleCharacters':!0x0})){const _0x39efd2=this[_0x2bff('0x102')](_0x489f6d),_0xc655b9=_0x2bff('0x28')==_0x489f6d[_0x2bff('0x4d')]?_0x489f6d[_0x2bff('0x5')][_0x2bff('0x39')][_0x2bff('0x3e')](0x0,-0x1):_0x489f6d[_0x2bff('0x5')][_0x2bff('0x39')],_0x213bb6=_0x5cfe81[_0x2bff('0x67')](_0xc655b9)[_0x2bff('0xd1')](_0x39efd2);this[_0x2bff('0x9e')]['set'](_0x213bb6,{'userId':_0x141d7e});}}}this[_0x2bff('0x91')]=this[_0x2bff('0xe2')];const _0x3be559=[...Array(this[_0x2bff('0xe2')])[_0x2bff('0xf7')]()][_0x2bff('0x3e')](0x1)[_0x2bff('0xf0')](_0x2048a5=>!this[_0x2bff('0x9e')]['has'](_0x2048a5));let _0x17e5f5=0x0;const _0x41bbce=new Map();for(const _0x51e87a in _0x3bd52a['diffData']){const _0x1f1698=_0x3bd52a[_0x2bff('0xb3')][_0x51e87a]['attachChange'],_0x37801b=_0x57291b(_0x3bd52a[_0x2bff('0xb3')][_0x51e87a]['attributesAfter'])||{},_0x49de24=this[_0x2bff('0xdd')](_0x3bd52a['diffData'][_0x51e87a][_0x2bff('0x4a')]);_0x49de24[_0x2bff('0x98')]=_0x51e87a,_0x49de24[_0x2bff('0xfa')]=!_0x1f1698||_0x1f1698[_0x2bff('0x38')],_0x49de24['isAttached']=()=>_0x49de24['_isAttached'],this[_0x2bff('0x57')]['set'](_0x51e87a,_0x49de24),this['_diffRootsAttributes'][_0x2bff('0x8d')](_0x51e87a,_0x37801b);const _0x3e2e18=this['_makeIdsRoot'](_0x49de24,Number[_0x2bff('0x5a')]);this['_idsRoots'][_0x2bff('0x8d')](_0x51e87a,_0x3e2e18),_0x41bbce['set'](_0x51e87a,_0x49de24[_0x2bff('0x38')]()?_0x37801b:{});for(const [_0x2d9aa3,_0x3c5bc5]of _0x49de24[_0x2bff('0xb8')]){if(!_0x2d9aa3[_0x2bff('0x6c')](_0x2bff('0xb0')))continue;const _0x2daf86=_0x2d9aa3['split'](':')[0x2];for(const _0x3ce587 of _0x3c5bc5['getWalker']({'singleCharacters':!0x0})){const _0x5e64f4=this['_getVidAttributeName'](_0x3ce587),_0x54217a=this[_0x2bff('0xe2')]++,_0x198654='elementEnd'==_0x3ce587['type']?_0x3ce587[_0x2bff('0x5')][_0x2bff('0x39')][_0x2bff('0x3e')](0x0,-0x1):_0x3ce587['previousPosition']['path'];_0x3e2e18[_0x2bff('0x67')](_0x198654)[_0x2bff('0x16')](_0x5e64f4,_0x54217a),this[_0x2bff('0x9e')][_0x2bff('0x8d')](_0x54217a,{'userId':_0x2daf86});}}for(const _0x4862dc of this[_0x2bff('0x5c')][_0x2bff('0x10')][_0x2bff('0xe')](_0x49de24)['getWalker']({'singleCharacters':!0x0})){const _0x354c5c=this[_0x2bff('0x102')](_0x4862dc),_0x132cbe=_0x2bff('0x28')==_0x4862dc[_0x2bff('0x4d')]?_0x4862dc['previousPosition'][_0x2bff('0x39')][_0x2bff('0x3e')](0x0,-0x1):_0x4862dc[_0x2bff('0x5')][_0x2bff('0x39')],_0x126c0f=_0x3e2e18[_0x2bff('0x67')](_0x132cbe);_0x126c0f[_0x2bff('0xd1')](_0x354c5c)>0x0||_0x126c0f[_0x2bff('0x16')](_0x354c5c,_0x3be559[_0x17e5f5++]);}for(const [_0x2c6b58,_0x10fc14]of _0x49de24[_0x2bff('0xb8')])_0x2c6b58[_0x2bff('0x6c')]('revision:')||this[_0x2bff('0x31')]['set'](_0x2c6b58,_0x10fc14);}const _0xee88e3=H(_0x2bff('0x4b'));this[_0x2bff('0x89')][_0x2bff('0x8d')]('$graveyard',_0xee88e3),this['_baseIdsRoots'][_0x2bff('0x8d')](_0x2bff('0x4b'),this[_0x2bff('0x20')](_0xee88e3,0x1));const _0x489549=H(_0x2bff('0x4b'));this['_diffRoots'][_0x2bff('0x8d')]('$graveyard',_0x489549),this[_0x2bff('0x41')][_0x2bff('0x8d')](_0x2bff('0x4b'),this[_0x2bff('0x20')](_0x489549,0x1));const _0x2533ff=Array['from'](this[_0x2bff('0x57')])[_0x2bff('0x51')](([_0x2c9d0e,_0x18da51])=>[_0x2c9d0e,J(_0x18da51)]);this[_0x2bff('0xb2')](this[_0x2bff('0x77')],_0x2533ff,this[_0x2bff('0x31')],_0x41bbce);}['_makeModelFromViewString'](_0x18351e){const _0x31a654=JSON['parse'](_0x18351e),_0x32d43d=this['editor'][_0x2bff('0xb9')][_0x2bff('0x1f')]['document'],_0x4d51b7=new _0x27dc10(_0x32d43d,_0x31a654[_0x2bff('0x51')](_0x1ca08a=>T(_0x1ca08a,this['editor'])));return this[_0x2bff('0x5c')]['data'][_0x2bff('0xc5')](_0x4d51b7);}[_0x2bff('0xb2')](_0x548277,_0xe9bc97,_0x11ddac,_0x2be308){const _0x39e698=new Map(_0xe9bc97),_0x2bd015=new Map(_0x57291b(_0x2be308)),_0x123be7=new Map();for(const [_0x1effca,_0x2cbcd6]of _0x11ddac)_0x123be7['set'](_0x1effca,{'start':_0x2cbcd6[_0x2bff('0xbb')][_0x2bff('0x55')](),'end':_0x2cbcd6[_0x2bff('0xa0')][_0x2bff('0x55')](),'rootName':_0x2cbcd6[_0x2bff('0x94')][_0x2bff('0x98')]});this[_0x2bff('0xdc')][_0x2bff('0x8d')](_0x548277,{'roots':_0x39e698,'markers':_0x123be7,'rootsAttributes':_0x2bd015});}[_0x2bff('0xd7')](_0x3df6df){this[_0x2bff('0xdc')][_0x2bff('0x9f')](_0x3df6df);}[_0x2bff('0x85')](){this[_0x2bff('0xb6')](),this['_lastFrom']=-0x1,this[_0x2bff('0x77')]=-0x1,this['_savedMetaData'][_0x2bff('0xf4')](),this[_0x2bff('0x84')](this[_0x2bff('0x58')]);}['_reset'](){this[_0x2bff('0x9e')]['clear'](),this[_0x2bff('0xdb')][_0x2bff('0xf4')](),this[_0x2bff('0x26')][_0x2bff('0xf4')](),this['_diffRoots']['clear'](),this[_0x2bff('0xe3')][_0x2bff('0xf4')](),this['_baseRoots']['clear'](),this[_0x2bff('0xc7')][_0x2bff('0xf4')](),this[_0x2bff('0x41')]['clear'](),this[_0x2bff('0x9b')][_0x2bff('0xf4')](),this[_0x2bff('0x31')][_0x2bff('0xf4')](),this[_0x2bff('0xe2')]=0x1,this[_0x2bff('0x91')]=this[_0x2bff('0xe2')];}[_0x2bff('0x20')](_0x2a3795,_0x141e1d=null){let _0x3a2e23=null;_0x2a3795['is'](_0x2bff('0xf3'))||(_0x3a2e23=new _0x296fc7(_0x2a3795[_0x2bff('0xaa')],{'vid_start':null===_0x141e1d?this['_revisionId']++:_0x141e1d++}));const _0x3e9bf1=[];for(const _0x938b01 of _0x2a3795[_0x2bff('0x90')]())if(_0x938b01['is'](_0x2bff('0xe8'))){_0x3e9bf1[_0x2bff('0x29')](this[_0x2bff('0x20')](_0x938b01,_0x141e1d));const _0x57ff64=_0x3e9bf1[_0x3e9bf1['length']-0x1];null!==_0x141e1d&&(_0x141e1d=_0x57ff64['is']('element',_0x2bff('0x86'))?_0x57ff64['getAttribute'](_0x2bff('0x8'))+0x1:_0x57ff64[_0x2bff('0xd1')](_0x2bff('0x17'))+0x1);}else for(let _0x39b758=0x0;_0x39b758<_0x938b01[_0x2bff('0xcc')];_0x39b758++)_0x3e9bf1[_0x2bff('0x29')](new _0x296fc7(_0x2bff('0x86'),{'vid':null===_0x141e1d?this[_0x2bff('0xe2')]++:_0x141e1d++}));if(_0x2a3795['is'](_0x2bff('0xf3'))){const _0x3a5e50=H(_0x2a3795['rootName']);return _0x3a5e50['_insertChild'](0x0,_0x3e9bf1),_0x3a5e50;}return _0x3a2e23['_setAttribute']('vid_end',null===_0x141e1d?this['_revisionId']++:_0x141e1d++),_0x3a2e23[_0x2bff('0xb5')](0x0,_0x3e9bf1),_0x3a2e23;}['_calculateMetaData'](_0x3e3c75,_0x21b964,_0x3a64ad){this['_reset']();const {roots:_0x33b8f2,markers:_0x7c909f,rootsAttributes:_0x5a0306}=this['_savedMetaData']['get'](_0x3e3c75);this[_0x2bff('0x89')]=new Map(_0x33b8f2),this[_0x2bff('0xc7')]=new Map(_0x57291b(_0x5a0306));for(const [_0x2fd3bd,_0x130f95]of this[_0x2bff('0x89')])if(_0x2bff('0x4b')!==_0x2fd3bd&&(this['_diffRoots'][_0x2bff('0x8d')](_0x2fd3bd,J(_0x130f95)),this['_diffRootsAttributes']=new Map(_0x57291b(_0x5a0306)),_0x3a64ad)){const _0x194c3e=this['_revisionId'];this[_0x2bff('0x41')][_0x2bff('0x8d')](_0x2fd3bd,this[_0x2bff('0x20')](_0x130f95)),this[_0x2bff('0x9b')]['set'](_0x2fd3bd,this['_makeIdsRoot'](_0x130f95,_0x194c3e));}this['_startingRevisionId']=this[_0x2bff('0xe2')],this[_0x2bff('0x57')]['set']('$graveyard',J(this['_baseRoots'][_0x2bff('0x49')]('$graveyard'))),_0x3a64ad&&this[_0x2bff('0x41')][_0x2bff('0x8d')](_0x2bff('0x4b'),this['_makeIdsRoot'](this[_0x2bff('0x89')][_0x2bff('0x49')](_0x2bff('0x4b'))));for(const [_0x4dda52,_0x11a078]of _0x7c909f){const _0x3145ad=this[_0x2bff('0x89')][_0x2bff('0x49')](_0x11a078[_0x2bff('0x98')]),_0x2fbfe6=this[_0x2bff('0x57')][_0x2bff('0x49')](_0x11a078[_0x2bff('0x98')]),_0x340263=new _0x3ae9d1(this[_0x2bff('0xa9')](_0x11a078[_0x2bff('0xbb')],_0x3145ad),this[_0x2bff('0xa9')](_0x11a078['end'],_0x3145ad)),_0x19f52b=this['_fixRange'](_0x340263,_0x2fbfe6);_0x3145ad[_0x2bff('0xb8')]['set'](_0x4dda52,_0x340263),this[_0x2bff('0x31')][_0x2bff('0x8d')](_0x4dda52,_0x19f52b);}this['_applyOperations'](_0x3e3c75,_0x21b964,_0x3a64ad);}[_0x2bff('0x36')](_0x41e6f3,_0x5bf3fb,_0x55f5dd){for(const _0x5bc3aa of this['source']['getOperations'](_0x41e6f3,_0x5bf3fb))this[_0x2bff('0xbf')](_0x5bc3aa,_0x55f5dd);for(const _0x4340b6 of this['_diffRoots'][_0x2bff('0x13')]())_0x4340b6[_0x2bff('0xb8')][_0x2bff('0xf4')]();for(const [_0x4648e2,_0x54b10b]of this['_markers']){this[_0x2bff('0x57')][_0x2bff('0x49')](_0x54b10b[_0x2bff('0x94')][_0x2bff('0x98')])[_0x2bff('0xb8')][_0x2bff('0x8d')](_0x4648e2,_0x54b10b[_0x2bff('0x55')]());}const _0x48df9d=new Map(),_0x130b4f=new Map();for(const [_0x1d096b,_0x3b2b66]of this['_diffRoots'])_0x48df9d[_0x2bff('0x8d')](_0x1d096b,J(_0x3b2b66)),_0x130b4f['set'](_0x1d096b,this[_0x2bff('0xe3')]['get'](_0x1d096b));this[_0x2bff('0xb2')](_0x5bf3fb,_0x48df9d,this[_0x2bff('0x31')],_0x130b4f);}[_0x2bff('0xec')](_0x3a4ac4){const _0x17f282=Array['from'](this[_0x2bff('0xdc')][_0x2bff('0xf7')]());_0x17f282['sort']((_0x145a9d,_0xc65902)=>_0x145a9d-_0xc65902),_0x17f282['reverse']();for(const _0x47d3dd of _0x17f282)if(_0x47d3dd<_0x3a4ac4)return _0x47d3dd;return Number[_0x2bff('0x5a')];}[_0x2bff('0xc8')](_0x2eca8c,_0x1f7e70){const _0x3dd10e=Array[_0x2bff('0x6b')](_0x1f7e70[_0x2bff('0xb8')])[_0x2bff('0x51')](([_0x3b3df3,_0x4843fd])=>[_0x3b3df3,this[_0x2bff('0xd6')](_0x4843fd,_0x2eca8c)]);_0x2eca8c[_0x2bff('0xb8')]=new Map(_0x3dd10e);}[_0x2bff('0x44')](_0xd32332){for(const _0x363507 of this['_markers'][_0x2bff('0x13')]()){const _0x3e8fd5=_0x363507['getTransformedByOperation'](_0xd32332),_0x15dc12=_0x3ae9d1[_0x2bff('0xb')](_0x3e8fd5);_0x363507['start']=_0x15dc12[_0x2bff('0xbb')],_0x363507[_0x2bff('0xa0')]=_0x15dc12[_0x2bff('0xa0')];}}['_handleOperation'](_0x1b8d4d,_0x3f96db){if(_0x2bff('0xf5')==_0x1b8d4d[_0x2bff('0x4d')]||_0x2bff('0x1e')==_0x1b8d4d['type'])return void this[_0x2bff('0x4c')](_0x1b8d4d,_0x3f96db);if('insert'==_0x1b8d4d[_0x2bff('0x4d')]){const _0x5c5595=_0x1b8d4d['position'][_0x2bff('0x94')][_0x2bff('0x98')];this[_0x2bff('0x57')][_0x2bff('0x108')](_0x5c5595)||(this[_0x2bff('0x57')]['set'](_0x5c5595,H(_0x5c5595,!0x0)),this[_0x2bff('0xe3')][_0x2bff('0x8d')](_0x5c5595,{}),_0x3f96db&&this[_0x2bff('0x41')][_0x2bff('0x8d')](_0x5c5595,H(_0x5c5595,!0x0)));}if(_0x2bff('0xb1')==_0x1b8d4d['type']||'removeRootAttribute'==_0x1b8d4d['type']||'changeRootAttribute'==_0x1b8d4d[_0x2bff('0x4d')])return void this['_handleRootAttributeOperation'](_0x1b8d4d);const _0x43edff=this['_cloneOperation'](_0x1b8d4d,this[_0x2bff('0x57')]);if(_0x2bff('0x46')!==_0x1b8d4d[_0x2bff('0x4d')]&&(_0x43edff['_execute'](),this[_0x2bff('0x44')](_0x43edff)),_0x3f96db)switch(_0x43edff[_0x2bff('0x4d')]){case _0x2bff('0x109'):this[_0x2bff('0x79')](_0x1b8d4d);break;case'move':case _0x2bff('0x12'):case'reinsert':this[_0x2bff('0x3d')](_0x1b8d4d);break;case'merge':this[_0x2bff('0xa3')](_0x1b8d4d);break;case'split':this[_0x2bff('0x45')](_0x1b8d4d);break;case _0x2bff('0x46'):this[_0x2bff('0x8c')](_0x1b8d4d);}}[_0x2bff('0x53')](_0x5d17d9,_0x4784f6){const _0x457ff2=_0x5d17d9['clone']();return _0x457ff2[_0x2bff('0x42')]=_0x5d17d9[_0x2bff('0x42')],this[_0x2bff('0xf1')](_0x457ff2,_0x4784f6),_0x457ff2;}[_0x2bff('0x71')](_0x8587ed){return _0x8587ed[_0x2bff('0x51')](_0x559087=>{const _0x404b56=this[_0x2bff('0x102')](_0x559087);return Number(_0x559087[_0x2bff('0x99')][_0x2bff('0xd1')](_0x404b56));});}[_0x2bff('0xe4')](_0x38b67f,_0x2dda43){if(_0x38b67f['is']('element',_0x2bff('0x86')))_0x2dda43[_0x2bff('0x29')]({'item':_0x38b67f,'type':_0x2bff('0x14')});else{_0x38b67f['is'](_0x2bff('0xe8'))&&_0x2dda43[_0x2bff('0x29')]({'item':_0x38b67f,'type':_0x2bff('0xe6')});for(const _0x21daa2 of _0x38b67f[_0x2bff('0x90')]())this[_0x2bff('0xe4')](_0x21daa2,_0x2dda43);_0x38b67f['is'](_0x2bff('0xe8'))&&_0x2dda43[_0x2bff('0x29')]({'item':_0x38b67f,'type':_0x2bff('0x28')});}return _0x2dda43;}[_0x2bff('0xa7')](){const _0x1bcf6f=new Map(this[_0x2bff('0x9e')]),_0x508343=new Map(_0x1bcf6f),_0x3d2049=new Map(),_0x489b21={'insertions':{},'deletions':{}},_0xfcbfad={'insertions':{},'deletions':{}},_0x38be8d=new Map(),_0x41f4e2=new Set([...this[_0x2bff('0x89')][_0x2bff('0xf7')](),...this[_0x2bff('0x57')]['keys']()]);_0x41f4e2[_0x2bff('0x9f')](_0x2bff('0x4b'));for(const _0x4cb505 of _0x41f4e2){const _0x147526=this[_0x2bff('0x57')]['get'](_0x4cb505)||H(_0x4cb505,!0x1),_0xa7560=this[_0x2bff('0x89')][_0x2bff('0x49')](_0x4cb505)||H(_0x4cb505,!0x1);_0x147526[_0x2bff('0x38')]()||_0xa7560[_0x2bff('0x38')]()?(_0x489b21['insertions'][_0x4cb505]=J(_0x147526),_0x489b21[_0x2bff('0x103')][_0x4cb505]=J(_0xa7560),this[_0x2bff('0xc8')](_0x489b21[_0x2bff('0x103')][_0x4cb505],_0xa7560),this['_copyMarkers'](_0x489b21[_0x2bff('0x4a')][_0x4cb505],_0x147526),_0xfcbfad[_0x2bff('0x4a')][_0x4cb505]=this['_generateTape'](this[_0x2bff('0x41')]['get'](_0x4cb505),[]),_0xfcbfad[_0x2bff('0x103')][_0x4cb505]=this[_0x2bff('0xe4')](this[_0x2bff('0x9b')][_0x2bff('0x49')](_0x4cb505)||H(_0x4cb505,!0x1),[])):_0x41f4e2[_0x2bff('0x9f')](_0x4cb505);}for(const _0x17d980 of _0x41f4e2){const _0x477ff1=_0xfcbfad['insertions'][_0x17d980];for(const _0x3ffdcc of _0x477ff1){const _0xb8e1e7=this[_0x2bff('0x102')](_0x3ffdcc),_0x5e4b65=_0x3ffdcc[_0x2bff('0x99')][_0x2bff('0xd1')](_0xb8e1e7);_0x508343['delete'](_0x5e4b65),_0x5e4b65>=this['_startingRevisionId']&&_0x3d2049[_0x2bff('0x8d')](_0x5e4b65,_0x1bcf6f['get'](_0x5e4b65));}}for(const _0x2bd62d of _0x41f4e2){const _0x5b38d9=_0xfcbfad[_0x2bff('0x4a')][_0x2bd62d],_0x9a71b9=this[_0x2bff('0x71')](_0xfcbfad[_0x2bff('0x103')][_0x2bd62d]);let _0x430377=0x0;for(const _0x442edf of _0x5b38d9){const _0x5d6240=this['_getVidAttributeName'](_0x442edf),_0x342adf=_0x442edf[_0x2bff('0x99')][_0x2bff('0xd1')](_0x5d6240);if(!_0x3d2049['has'](_0x342adf)&&!_0x38be8d['has'](_0x342adf)){if(_0x508343['has'](_0x342adf))_0x430377++;else{if(_0x342adf!=_0x9a71b9[_0x430377]){const _0x211063=_0x1bcf6f[_0x2bff('0x49')](_0x342adf)||_0x1bcf6f[_0x2bff('0x49')](_0x9a71b9[_0x430377]);for(;_0x342adf!=_0x9a71b9[_0x430377];)_0x508343['has'](_0x9a71b9[_0x430377])||(_0x38be8d[_0x2bff('0x8d')](_0x9a71b9[_0x430377],_0x211063),_0x1bcf6f[_0x2bff('0x8d')](_0x9a71b9[_0x430377],_0x211063)),_0x430377++;}_0x430377++;}}}}for(const _0x238ff2 of _0x41f4e2){const _0x1207f8=_0xfcbfad[_0x2bff('0x4a')][_0x238ff2];for(const _0x725a72 of _0x1207f8){const _0x2cd62b=this[_0x2bff('0x102')](_0x725a72),_0x3f88d0=_0x725a72[_0x2bff('0x99')][_0x2bff('0xd1')](_0x2cd62b);if(_0x38be8d[_0x2bff('0x108')](_0x3f88d0)){const _0x3dc9f7=_0x38be8d[_0x2bff('0x49')](_0x3f88d0);_0x508343[_0x2bff('0x108')](_0x3f88d0)||_0x508343[_0x2bff('0x8d')](_0x3f88d0,{..._0x3dc9f7}),_0x3d2049[_0x2bff('0x8d')](_0x3f88d0,{..._0x3dc9f7});}}}for(const _0x1e4ad3 of _0x508343[_0x2bff('0xf7')]())_0x1e4ad3>=this[_0x2bff('0x91')]&&_0x508343['delete'](_0x1e4ad3);const _0x389eb8=new Map();for(const _0x20b800 of _0x41f4e2){let _0x34732b=_0xfcbfad[_0x2bff('0x4a')][_0x20b800];for(const _0x5b5a16 of _0x34732b)if(_0x5b5a16[_0x2bff('0x99')]['is'](_0x2bff('0xe8'),_0x2bff('0xed'))){const _0x32935c=this[_0x2bff('0x102')](_0x5b5a16),_0x12c887=_0x5b5a16[_0x2bff('0x99')]['getAttribute'](_0x32935c);if(_0x3d2049[_0x2bff('0x108')](_0x12c887)){const _0x8752b4=_0x5b5a16[_0x2bff('0x99')]['parent'][_0x2bff('0x106')][_0x2bff('0xd1')](_0x2bff('0xc1')),_0xebeb4a=_0x389eb8['get'](_0x8752b4)||new Set();_0xebeb4a['add'](_0x3d2049['get'](_0x12c887)[_0x2bff('0x65')]),_0x389eb8[_0x2bff('0x8d')](_0x8752b4,_0xebeb4a);}}_0x34732b=_0xfcbfad[_0x2bff('0x103')][_0x20b800];for(const _0x27e6b9 of _0x34732b)if(_0x27e6b9[_0x2bff('0x99')]['is']('element',_0x2bff('0xed'))){const _0x276001=this['_getVidAttributeName'](_0x27e6b9),_0x15a98a=_0x27e6b9[_0x2bff('0x99')][_0x2bff('0xd1')](_0x276001);if(_0x508343[_0x2bff('0x108')](_0x15a98a)){const _0x19868a=_0x27e6b9[_0x2bff('0x99')][_0x2bff('0x106')][_0x2bff('0x106')]['getAttribute'](_0x2bff('0xc1')),_0x56ba6b=_0x389eb8[_0x2bff('0x49')](_0x19868a)||new Set();_0x56ba6b['add'](_0x508343[_0x2bff('0x49')](_0x15a98a)[_0x2bff('0x65')]),_0x389eb8[_0x2bff('0x8d')](_0x19868a,_0x56ba6b);}}for(const _0x3b5983 of _0x389eb8[_0x2bff('0xf7')]())(_0x3d2049['has'](_0x3b5983)||_0x508343[_0x2bff('0x108')](_0x3b5983))&&_0x389eb8[_0x2bff('0x9f')](_0x3b5983);}for(const _0x66a0e4 of _0x41f4e2){const _0x38371b=_0xfcbfad['insertions'][_0x66a0e4];let _0x24ae05=null,_0x37104a=null;for(const _0x24baec of _0x38371b){const _0x1c7cf8=this[_0x2bff('0x102')](_0x24baec),_0x4f22c7=_0x24baec['item'][_0x2bff('0xd1')](_0x1c7cf8),_0x1f1815=_0x389eb8[_0x2bff('0x49')](_0x4f22c7);_0x1f1815&&_0x2bff('0xe6')==_0x24baec[_0x2bff('0x4d')]&&(_0x24ae05=Array[_0x2bff('0x6b')](_0x1f1815)[0x0],_0x37104a=_0x24baec['item'][_0x2bff('0xd1')](_0x2bff('0x17'))),_0x24ae05&&(_0x508343[_0x2bff('0x8d')](_0x4f22c7,{'userId':_0x24ae05}),_0x3d2049[_0x2bff('0x8d')](_0x4f22c7,{'userId':_0x24ae05})),_0x4f22c7==_0x37104a&&(_0x24ae05=null,_0x37104a=null);}}const _0x51de9b={},_0x1ac578=new Set();for(const _0x15fb6c of _0x41f4e2){const _0x89b120=_0x489b21[_0x2bff('0x103')][_0x15fb6c],_0x3039ec=_0x489b21[_0x2bff('0x4a')][_0x15fb6c];for(const {userId:_0x348ce5}of this[_0x2bff('0xdb')]['values']())null!==_0x348ce5&&_0x1ac578[_0x2bff('0xbd')](_0x348ce5);for(const {userId:_0x15023e}of this[_0x2bff('0x26')]['values']())null!==_0x15023e&&_0x1ac578[_0x2bff('0xbd')](_0x15023e);this['_markChanges'](_0x3039ec,_0xfcbfad['insertions'][_0x15fb6c],_0x3d2049,_0x2bff('0x8e'),_0x1ac578),this[_0x2bff('0xab')](_0x89b120,_0xfcbfad[_0x2bff('0x103')][_0x15fb6c],_0x508343,'deletion',_0x1ac578),_0x51de9b[_0x15fb6c]={'insertions':this[_0x2bff('0x70')](_0x3039ec),'deletions':this['_prepareViewToSave'](_0x89b120),'attachChange':this['_touchedRoots'][_0x2bff('0x49')](_0x15fb6c)||null,'attributesBefore':_0x57291b(this['_baseRootsAttributes'][_0x2bff('0x49')](_0x15fb6c))||{},'attributesAfter':_0x57291b(this[_0x2bff('0xe3')][_0x2bff('0x49')](_0x15fb6c))};}return{'diffData':_0x51de9b,'authorsIds':Array['from'](_0x1ac578)};}[_0x2bff('0x107')](_0x5ea67e){for(const [,_0x2c7ec0]of _0x5ea67e[_0x2bff('0xb8')]){const _0x391f7a=_0x2c7ec0['start'][_0x2bff('0x7f')]()[_0x2bff('0xf0')](_0x1e332e=>_0x2bff('0xed')==_0x1e332e[_0x2bff('0xaa')]);for(const _0x166d6f of _0x391f7a)0x1==_0x166d6f[_0x2bff('0xd0')]&&_0x166d6f[_0x2bff('0x83')](0x0)['is'](_0x2bff('0xe8'),_0x2bff('0x15'))&&_0x166d6f[_0x2bff('0x83')](0x0)[_0x2bff('0x16')](_0x2bff('0xee'),!0x0);}}[_0x2bff('0x70')](_0x1b7eb2){this[_0x2bff('0x107')](_0x1b7eb2);const _0xd20345=this[_0x2bff('0x5c')][_0x2bff('0x60')][_0x2bff('0xc2')](_0x1b7eb2,{}),_0x34868d=Array[_0x2bff('0x6b')](_0xd20345['getChildren']())[_0x2bff('0x51')](_0x39b33e=>this[_0x2bff('0x48')](_0x39b33e));return JSON['stringify'](_0x34868d);}['_getViewJson'](_0x44155c){if(_0x44155c['is']('$text'))return _0x44155c[_0x2bff('0x60')];{const _0x44e75d=_0x44155c;return{'type':Object['keys'](F)['find'](_0xfdb620=>_0x44155c instanceof F[_0xfdb620]),'name':_0x44e75d[_0x2bff('0xaa')],'attributes':Array[_0x2bff('0x6b')](_0x44e75d['getAttributes']()),'children':Array[_0x2bff('0x6b')](_0x44e75d[_0x2bff('0x90')]())['map'](_0x52262e=>this[_0x2bff('0x48')](_0x52262e))};}}['_markChanges'](_0xf6473,_0x28da88,_0x464773,_0x4c9cb0,_0x4bb602){let _0x4030cb=null,_0x17a066=null,_0x1314cc=0x0;const _0x186117=this[_0x2bff('0x5c')][_0x2bff('0x10')];for(let _0x2e6832=0x0;_0x2e6832<_0x28da88[_0x2bff('0x9d')];_0x2e6832++){const _0x4b3f4a=this['_getVidAttributeName'](_0x28da88[_0x2e6832]),_0x9b4917=_0x28da88[_0x2e6832][_0x2bff('0x99')][_0x2bff('0xd1')](_0x4b3f4a),_0x151dfd=_0x464773[_0x2bff('0x49')](_0x9b4917),_0x56090e=_0x2e6832==_0x28da88['length']-0x1;(!_0x4030cb&&_0x151dfd&&(_0x4030cb=_0x151dfd,_0x17a066=_0x28da88[_0x2e6832]),_0x4030cb&&(!_0x151dfd||_0x151dfd['userId']!=_0x4030cb[_0x2bff('0x65')]))&&(_0x337b79(_0x151dfd,q(_0x17a066,_0xf6473,_0x186117),q(_0x28da88[_0x2e6832],_0xf6473,_0x186117)),_0x4030cb=_0x151dfd||null,_0x17a066=_0x151dfd?_0x28da88[_0x2e6832]:null),_0x4030cb&&_0x56090e&&_0x337b79(_0x151dfd,q(_0x17a066,_0xf6473,_0x186117),G(_0x28da88[_0x2e6832],_0xf6473,_0x186117));}function _0x337b79(_0x502b53,_0x1db8f0,_0x34d086){const _0x17017f=_0x4030cb[_0x2bff('0x65')],_0x1784c1='revision:'+_0x4c9cb0+':'+_0x17017f+':'+_0x1314cc++,_0x59bbc6=_0x186117[_0x2bff('0x34')](_0x1db8f0,_0x34d086);_0xf6473['markers'][_0x2bff('0x8d')](_0x1784c1,_0x59bbc6),null!==_0x17017f&&_0x4bb602['add'](_0x17017f);}}['_getVidAttributeName'](_0x506e0e){switch(_0x506e0e['type']){case _0x2bff('0xe6'):return _0x2bff('0xc1');case _0x2bff('0x28'):return'vid_end';default:return'vid';}}[_0x2bff('0xf1')](_0x22dfd6,_0x508bc9){_0x22dfd6['baseVersion']=null;for(const _0x38e42c in _0x22dfd6){const _0x177311=_0x22dfd6[_0x38e42c];if(_0x177311 instanceof _0x28d65f){const _0x2eddb5=_0x508bc9[_0x2bff('0x49')](_0x177311['root']['rootName']);_0x22dfd6[_0x38e42c]=this[_0x2bff('0xa9')](_0x177311,_0x2eddb5);}if(_0x177311 instanceof _0x3ae9d1){const _0x57ef39=_0x508bc9['get'](_0x177311[_0x2bff('0x94')][_0x2bff('0x98')]);_0x22dfd6[_0x38e42c]=this[_0x2bff('0xd6')](_0x177311,_0x57ef39);}_0x2bff('0x94')===_0x38e42c&&(_0x22dfd6['root']=_0x508bc9[_0x2bff('0x49')](_0x22dfd6[_0x2bff('0x94')][_0x2bff('0x98')]));}}[_0x2bff('0xd6')](_0x5dffdd,_0x2f82c2){return this['editor']['model'][_0x2bff('0x34')](this[_0x2bff('0xa9')](_0x5dffdd[_0x2bff('0xbb')],_0x2f82c2),this[_0x2bff('0xa9')](_0x5dffdd['end'],_0x2f82c2));}[_0x2bff('0xa9')](_0x159d4e,_0x23d4c2){return this[_0x2bff('0x5c')][_0x2bff('0x10')][_0x2bff('0xa4')](_0x23d4c2,_0x159d4e[_0x2bff('0x39')],_0x159d4e[_0x2bff('0x66')]);}['_handleInsertOperation'](_0xeb6c97){const _0x133938=this[_0x2bff('0x41')][_0x2bff('0x49')](_0xeb6c97['position']['root'][_0x2bff('0x98')]),_0x2fe1a4=this['_fixPosition'](_0xeb6c97[_0x2bff('0xc6')],_0x133938),_0x2bb475=null===_0xeb6c97['_authorId']?null:_0xeb6c97['_authorId']||this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x4ebf5c=_0x2fe1a4['parent'],_0x533794=this[_0x2bff('0xe2')],_0x2fff9e=[];for(const _0xc3ba0d of _0xeb6c97[_0x2bff('0x5b')])if(_0xc3ba0d['is']('element'))_0x2fff9e['push'](this[_0x2bff('0x20')](_0xc3ba0d));else for(let _0x1e9033=0x0;_0x1e9033<_0xc3ba0d[_0x2bff('0xcc')];_0x1e9033++)_0x2fff9e[_0x2bff('0x29')](new _0x296fc7(_0x2bff('0x86'),{'vid':this['_revisionId']++}));const _0x478199=this[_0x2bff('0xe2')];for(let _0x24ead3=_0x533794;_0x24ead3<_0x478199;_0x24ead3++)this[_0x2bff('0x9e')]['set'](_0x24ead3,{'userId':_0x2bb475});_0x4ebf5c[_0x2bff('0xb5')](_0x2fe1a4[_0x2bff('0xfe')],_0x2fff9e);}[_0x2bff('0x3d')](_0x599a18){(_0x599a18=this[_0x2bff('0x53')](_0x599a18,this[_0x2bff('0x41')]))['_execute']();const _0x2b9f23=null===_0x599a18[_0x2bff('0x42')]?null:_0x599a18[_0x2bff('0x42')]||this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x56ddba=_0x599a18[_0x2bff('0xbe')](),_0x5b39bd=_0x56ddba[_0x2bff('0x106')],_0x1f8233=_0x56ddba['offset'];!function _0x3df1de(_0x24c466,_0x3508c8,_0x5cf600,_0x62aa6e){for(let _0x52cf0a=_0x5cf600;_0x52cf0a<_0x62aa6e;_0x52cf0a++){const _0x2f256b=_0x3508c8['getChild'](_0x52cf0a);_0x2f256b['is'](_0x2bff('0xe8'),_0x2bff('0x86'))?_0x24c466['set'](_0x2f256b[_0x2bff('0xd1')]('vid'),{'userId':_0x2b9f23}):(_0x24c466[_0x2bff('0x8d')](_0x2f256b['getAttribute'](_0x2bff('0xc1')),{'userId':_0x2b9f23}),_0x3df1de(_0x24c466,_0x2f256b,0x0,_0x2f256b[_0x2bff('0xd0')]),_0x24c466['set'](_0x2f256b[_0x2bff('0xd1')](_0x2bff('0x17')),{'userId':_0x2b9f23}));}}(this[_0x2bff('0x9e')],_0x5b39bd,_0x1f8233,_0x1f8233+_0x599a18[_0x2bff('0xf2')]);}['_handleMergeOperation'](_0xc517ce){const _0x2f6602=null===(_0xc517ce=this['_cloneOperation'](_0xc517ce,this[_0x2bff('0x41')]))['_authorId']?null:_0xc517ce['_authorId']||this['editor'][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x57d6c5=_0xc517ce[_0x2bff('0x88')][_0x2bff('0x106')],_0x5cc533=_0xc517ce[_0x2bff('0x69')][_0x2bff('0x106')],_0x2fd0f6=_0x57d6c5[_0x2bff('0xd1')](_0x2bff('0x17')),_0x57601d=_0x5cc533[_0x2bff('0xd1')](_0x2bff('0xc1'));_0x57d6c5[_0x2bff('0x16')](_0x2bff('0x17'),_0x5cc533[_0x2bff('0xd1')](_0x2bff('0x17'))),_0x5cc533[_0x2bff('0x16')]('vid_end',_0x2fd0f6),this[_0x2bff('0x9e')][_0x2bff('0x8d')](_0x57601d,{'userId':_0x2f6602}),this[_0x2bff('0x9e')][_0x2bff('0x8d')](_0x2fd0f6,{'userId':_0x2f6602}),_0xc517ce[_0x2bff('0x33')]();}[_0x2bff('0x45')](_0x23aeec){const _0x57df7d=null===(_0x23aeec=this[_0x2bff('0x53')](_0x23aeec,this[_0x2bff('0x41')]))[_0x2bff('0x42')]?null:_0x23aeec['_authorId']||this[_0x2bff('0x5c')]['plugins'][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x19e77c=_0x23aeec[_0x2bff('0xb7')],_0x1cbd74=_0x23aeec[_0x2bff('0xf9')][_0x2bff('0x106')];_0x23aeec['_execute']();const _0x10ef22=_0x1cbd74['getAttribute'](_0x2bff('0x17')),_0x4e0df8=_0x23aeec['insertionPosition'][_0x2bff('0xef')];if(_0x19e77c){const _0x3eef90=_0x4e0df8[_0x2bff('0xd1')](_0x2bff('0x17')),_0x1553ad=_0x1cbd74[_0x2bff('0xd1')](_0x2bff('0x17'));_0x1cbd74[_0x2bff('0x16')]('vid_end',_0x3eef90),_0x4e0df8[_0x2bff('0x16')]('vid_end',_0x1553ad),this[_0x2bff('0x9e')]['set'](_0x1cbd74[_0x2bff('0xd1')](_0x2bff('0x17')),{'userId':_0x57df7d}),this['_touched']['set'](_0x4e0df8[_0x2bff('0xd1')](_0x2bff('0xc1')),{'userId':_0x57df7d});}else{const _0x117fa9=this[_0x2bff('0xe2')]++,_0x279c37=this[_0x2bff('0xe2')]++;_0x1cbd74[_0x2bff('0x16')](_0x2bff('0x17'),_0x117fa9),_0x4e0df8['_setAttribute'](_0x2bff('0xc1'),_0x279c37),_0x4e0df8['_setAttribute'](_0x2bff('0x17'),_0x10ef22),this['_touched'][_0x2bff('0x8d')](_0x117fa9,{'userId':_0x57df7d}),this[_0x2bff('0x9e')][_0x2bff('0x8d')](_0x279c37,{'userId':_0x57df7d});}}['_handleMarkerOperation'](_0x19c526){if(!_0x19c526['affectsData'])return;const _0x3fe391=(_0x19c526=this[_0x2bff('0x53')](_0x19c526,this['_diffRoots']))[_0x2bff('0xf')]?_0x19c526[_0x2bff('0xf')]['root']:null,_0x5e7c3e=_0x19c526[_0x2bff('0xce')]?_0x19c526[_0x2bff('0xce')][_0x2bff('0x94')]:null;_0x3fe391&&this[_0x2bff('0x31')][_0x2bff('0x9f')](_0x19c526[_0x2bff('0xaa')]),_0x5e7c3e&&this['_markers']['set'](_0x19c526['name'],_0x19c526[_0x2bff('0xce')]['clone']());const _0x1a81b5=null===_0x19c526[_0x2bff('0x42')]?null:_0x19c526[_0x2bff('0x42')]||this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x164bc6=_0x19c526[_0x2bff('0xaa')];if(!this[_0x2bff('0xdb')]['has'](_0x164bc6))return void this['_touchedMarkers'][_0x2bff('0x8d')](_0x164bc6,{'range':_0x19c526['oldRange'],'userId':_0x1a81b5});const _0x48a71e=this['_touchedMarkers'][_0x2bff('0x49')](_0x164bc6),_0x5b9735=_0x48a71e[_0x2bff('0x9c')],_0x3526d9=_0x19c526['newRange'];null==_0x5b9735&&null==_0x3526d9||_0x5b9735&&_0x3526d9&&_0x5b9735[_0x2bff('0x37')](_0x3526d9)?this['_touchedMarkers'][_0x2bff('0x9f')](_0x19c526[_0x2bff('0xaa')]):_0x48a71e[_0x2bff('0x65')]=_0x1a81b5;}[_0x2bff('0x4c')](_0x4bb76b,_0x20cda1){this[_0x2bff('0x57')][_0x2bff('0x108')](_0x4bb76b[_0x2bff('0x98')])?this[_0x2bff('0x57')][_0x2bff('0x49')](_0x4bb76b['rootName'])[_0x2bff('0xfa')]=_0x4bb76b[_0x2bff('0xea')]:(this[_0x2bff('0x57')][_0x2bff('0x8d')](_0x4bb76b[_0x2bff('0x98')],H(_0x4bb76b[_0x2bff('0x98')],!0x0)),this[_0x2bff('0xe3')]['set'](_0x4bb76b['rootName'],{}),_0x20cda1&&this[_0x2bff('0x41')][_0x2bff('0x8d')](_0x4bb76b[_0x2bff('0x98')],H(_0x4bb76b[_0x2bff('0x98')],!0x0)));const _0x45632f=null===_0x4bb76b[_0x2bff('0x42')]?null:_0x4bb76b['_authorId']||this[_0x2bff('0x5c')][_0x2bff('0xa2')][_0x2bff('0x49')](_0x2bff('0x40'))['me']['id'],_0x309a44=this[_0x2bff('0x26')][_0x2bff('0x49')](_0x4bb76b[_0x2bff('0x98')]);_0x309a44&&_0x309a44[_0x2bff('0x65')]===_0x45632f?this['_touchedRoots']['delete'](_0x4bb76b[_0x2bff('0x98')]):this[_0x2bff('0x26')][_0x2bff('0x8d')](_0x4bb76b[_0x2bff('0x98')],{'userId':_0x45632f,'isAttached':_0x4bb76b['isAdd']});}['_handleRootAttributeOperation'](_0x480607){const _0x17cd1b=this[_0x2bff('0xe3')][_0x2bff('0x49')](_0x480607[_0x2bff('0x94')]['rootName']);null===_0x480607[_0x2bff('0x7c')]?delete _0x17cd1b[_0x480607['key']]:_0x17cd1b[_0x480607[_0x2bff('0xa1')]]=_0x480607['newValue'];}}function J(_0x25147d){const _0x2ae4c7=H(_0x25147d['rootName'],_0x25147d[_0x2bff('0x38')]());for(const _0x4e759b of _0x25147d[_0x2bff('0x90')]()){const _0x2f2205=_0x4e759b[_0x2bff('0x1c')](!0x0);_0x2ae4c7[_0x2bff('0x19')](_0x2f2205);}return _0x2ae4c7;}function H(_0x1b50ff,_0x113737=!0x0){const _0x3450f9=new _0x1aa4f2();return _0x3450f9[_0x2bff('0x98')]=_0x1b50ff,_0x3450f9[_0x2bff('0xfa')]=_0x113737,_0x3450f9[_0x2bff('0x38')]=()=>_0x3450f9['_isAttached'],_0x3450f9;}function q(_0x16ff66,_0x4d0bd5,_0xe0174f){const _0x3a243e='elementEnd'==_0x16ff66[_0x2bff('0x4d')]?_0xe0174f[_0x2bff('0x52')](_0x16ff66['item'],_0x2bff('0xa0')):_0xe0174f['createPositionBefore'](_0x16ff66[_0x2bff('0x99')]);return _0xe0174f[_0x2bff('0xa4')](_0x4d0bd5,_0x3a243e['path'],_0x3a243e[_0x2bff('0x66')]);}function G(_0x2f76a7,_0x218d5c,_0x4769be){const _0x3f368c=_0x2bff('0xe6')==_0x2f76a7[_0x2bff('0x4d')]?_0x4769be[_0x2bff('0x52')](_0x2f76a7[_0x2bff('0x99')],0x0):_0x4769be['createPositionAfter'](_0x2f76a7[_0x2bff('0x99')]);return _0x4769be[_0x2bff('0xa4')](_0x218d5c,_0x3f368c['path'],_0x3f368c[_0x2bff('0x66')]);}
23
+ const _0x1064=['_operations','getLatestVersion','RevisionTracker','vid','deletions','_startingVersion','sourcePosition','filter','_touched','_replaceEditorDataWithRevisionData','revision-end','version','detachRoot','_markChanges','has','_makeModelFromViewString','_isAttached','_setAttribute','_addPendingAction','_revisionId','_fixPosition','getData','resolve','initial','changeRootAttribute','element','attachChange','set','createdAt','_handleMoveOperation','getUser','toVersion','_makeRevision','editor','getOperation','_markers','values','setSource','for','root','includes','fromEntries','position','getTime','map','addRevisionData','trim','keys','toModel','marker','attributes','targetPosition','_pendingAction','_prepareViewToSave','getCurrentRevisionId','_makeIdsRoot','_bufferUpdate','reverse','isEqual','revisionHistory.resumeUnsavedRevision','_lastTo','revision','push','end','reinsert','_calculateMetaData','processor','_loadState','getRevisionDocumentData','_loadRevisionData','_findInsertionIndex','delete','_baseRoots','removeRootAttribute','createPositionFromPath','_baseRootsAttributes','data-revision-','newValue','offsetSize','_baseIdsRoots','type','dataToMarker','initialData','getRevisions','name','_diffRootsAttributes','_loadedStateData','_removePendingAction','_transformMarkers','stringify','key','adapter','isReady','getRevision','_source','_saveMetaData','_generateTape','getOperations','_continueCurrentRevision','getNodeByPath','_appendChild','attributesAfter','stickiness','_insertChild','useFillerType','revision-start','startsWith','Empty\x20document','_idsRoots','isAttached','_touchedRoots','markers','string','clone','_fixOperation','locale','_createFromRanges','howMany','_touchedMarkers','toView','_getState','_handleSplitOperation','_reset','getIndex','fromVersion','_copyMarkers','sendBufferedUpdates','children','NEGATIVE_INFINITY','_startingRevisionId','_createCurrentRevision','createRangeIn','creatorId','getAttributes','slice','_isInit','_lastFrom','userId','_revisionDataBuilder','some','getAncestors','childCount','history','start','rootName','_handleMarkerOperation','_getFromVersion','elementStart','define','_createInitialRevision','nodeAfter','_getViewJson','get','getChildren','then','model','revision:','_handleInsertOperation','$graveyard','isAdd','find','merge','createPositionAt','source','finally','document','max','diffData','isEnabled','_getBaseVids','path','_removeMetaData','markerToData','editing','_removeRevisionMarkers','Initial\x20revision','_execute','reInit','getWalker','PendingActions','_savedMetaData','documentFragment','getChild','_handleRootAttributeOperation','setRevisionData','insertionPosition','_cloneOperation','createPositionBefore','previousPosition','shift','newRange','getRoot','insert','keepParagraph','getRootNames','_setConversion','vid_end','data','remove','_handleRootOperation','conversion','_bufferedUpdates','clear','forEach','afterInit','_initialRevisionId','vid_start','default','add','PENDING_ACTION_REVISION_HISTORY','nodes','range','currentRevision','length','view','_handleMergeOperation','_diffRoots','oldRange','_getPreviousFrom','_update','collaboration.channelId','config','split','roots','_isPendingUpdate','_getVidAttributeName','parent','insertions','getMovedRangeStart','item','_clone','editor-initial-data-replaced-with-revision-data','offset','rootsAttributes','tableCell','$text','plugins','createRange','buildRevisionData','upcast','creator','authorsIds','_initialRoots','authors','_fixRange','size','bind','repository','init','parse','toData','addRevision','_processRootBeforeSave','elementEnd','Users','from','_authorId','RevisionsRepository','getAttribute','_handleOperation','marked','paragraph'];(function(_0x218552,_0x1064c3){const _0x561499=function(_0x492058){while(--_0x492058){_0x218552['push'](_0x218552['shift']());}};_0x561499(++_0x1064c3);}(_0x1064,0xf0));const _0x5614=function(_0x218552,_0x1064c3){_0x218552=_0x218552-0x0;let _0x561499=_0x1064[_0x218552];return _0x561499;};import{Users as _0x236ed9}from'ckeditor5-collaboration';import{Plugin as _0x5699b5,PendingActions as _0x503363}from'ckeditor5/src/core.js';import{logWarning as _0xfa8cf3,uid as _0x2168ef}from'ckeditor5/src/utils.js';import{Position as _0x22c86d,Range as _0x464fb5,Element as _0x489144,DocumentFragment as _0x2e187b,ViewText as _0x469966,ViewElement as _0x239372,ViewContainerElement as _0x50ba62,ViewAttributeElement as _0x20f70f,ViewEmptyElement as _0x4b1ce8,ViewRawElement as _0x120b27,ViewUIElement as _0x322930,ViewDocumentFragment as _0x2d97f9}from'ckeditor5/src/engine.js';import _0x3155c7 from'./revisionsrepository.js';import{getTranslation as _0x2786b7}from'./utils/common-translations.js';import{cloneDeep as _0x27bc6f,isEqual as _0x11581f}from'lodash-es';const B={'c':_0x50ba62,'a':_0x20f70f,'e':_0x4b1ce8,'r':_0x120b27,'u':_0x322930};export default class l extends _0x5699b5{static get['pluginName'](){return _0x5614('0x18');}static get['requires'](){return[_0x236ed9,_0x3155c7,_0x503363];}constructor(_0x592be7){super(_0x592be7),this[_0x5614('0x71')]=null,this[_0x5614('0xea')]=null,this[_0x5614('0xa0')]=new H(this[_0x5614('0x37')]),this['_initialRevisionId']=this['editor'][_0x5614('0xf3')][_0x5614('0xae')]('collaboration.channelId')||_0x5614('0x2d'),this[_0x5614('0xdf')]=new Map(),this[_0x5614('0x6c')]=null;const _0x52b245=_0x2168ef();this[_0x5614('0x74')]={'history':this[_0x5614('0x37')][_0x5614('0xb1')]['document']['history'],'getLatestVersion':()=>Promise[_0x5614('0x2c')](this[_0x5614('0x37')][_0x5614('0xb1')][_0x5614('0xbb')][_0x5614('0x21')]),'getCurrentRevisionId':()=>_0x52b245},this[_0x5614('0x31')](_0x5614('0x72'),!0x1),this['set'](_0x5614('0xbe'),!0x0),this['set'](_0x5614('0xf6'),!0x1),this[_0x5614('0x37')]['config'][_0x5614('0xaa')](_0x5614('0x51'),!0x0),this[_0x5614('0x37')][_0x5614('0xde')][_0x5614('0x3c')](_0x5614('0x105'))[_0x5614('0x67')]({'view':_0x5614('0x53')});}[_0x5614('0x8')](){this[_0x5614('0x7')]=this[_0x5614('0x37')][_0x5614('0x102')]['get'](_0x5614('0x11')),this[_0x5614('0xd9')](),this['editor']['data']['on']('ready',()=>{const _0x26d807=this[_0x5614('0x7')]['getRevision'](0x0),_0x543e29=_0x26d807&&null===_0x26d807[_0x5614('0x0')]?_0x26d807:null;if(this[_0x5614('0x78')]=!!_0x543e29&&this[_0x5614('0x37')][_0x5614('0xf3')]['get'](_0x5614('0x51')),this[_0x5614('0x37')][_0x5614('0x102')]['has']('RealTimeCollaborationClient')){const _0x1f2c02=this[_0x5614('0x74')]['getCurrentRevisionId'](),_0x2838c8=this[_0x5614('0x7')][_0x5614('0x73')](_0x1f2c02);if(_0x2838c8)this['_startingVersion']=_0x2838c8[_0x5614('0x92')],this['_continueCurrentRevision']=!0x1;else{const _0x4e6ce2=this[_0x5614('0x74')][_0x5614('0xa4')][_0x5614('0x16')]['find'](_0x2b284f=>!_0x2b284f[_0x5614('0x9d')]),_0xcc9097=_0x4e6ce2?_0x4e6ce2['baseVersion']:this[_0x5614('0x74')][_0x5614('0xa4')][_0x5614('0x21')];_0x26d807?(_0x26d807['toVersion']<_0xcc9097&&_0x26d807[_0x5614('0xf1')]({'toVersion':_0xcc9097}),this[_0x5614('0x78')]?(this[_0x5614('0x74')]['getCurrentRevisionId']=()=>_0x543e29['id'],this['_startingVersion']=_0x543e29['fromVersion']):(this[_0x5614('0x1b')]=_0x26d807[_0x5614('0x35')],this[_0x5614('0x78')]=!0x1)):(this[_0x5614('0x1b')]=_0xcc9097,this[_0x5614('0x78')]=!0x1);}}else _0x543e29&&(this['editor'][_0x5614('0xb1')][_0x5614('0xbb')][_0x5614('0xa4')][_0x5614('0x21')]=Math[_0x5614('0xbc')](_0x543e29[_0x5614('0x35')],this[_0x5614('0x37')]['model'][_0x5614('0xbb')][_0x5614('0xa4')][_0x5614('0x21')]),_0x543e29[_0x5614('0x92')]===_0x543e29['toVersion']?(0x0!==_0x543e29[_0x5614('0x92')]&&(this[_0x5614('0x74')][_0x5614('0x4c')]=()=>_0x543e29['id']),this[_0x5614('0x78')]=!0x1):this[_0x5614('0x78')]&&(this['_source'][_0x5614('0x4c')]=()=>_0x543e29['id'],this[_0x5614('0x1b')]=_0x543e29[_0x5614('0x92')])),this['_continueCurrentRevision']||(this[_0x5614('0x1b')]=this[_0x5614('0x37')]['model'][_0x5614('0xbb')][_0x5614('0x21')]);this[_0x5614('0xa0')][_0x5614('0x8')](this['_source']['history']),this[_0x5614('0xab')](this[_0x5614('0x1b')]),this[_0x5614('0x98')](this['_startingVersion']),this[_0x5614('0x71')]&&this['sendBufferedUpdates']();}),this[_0x5614('0x6')](_0x5614('0x72'))['to'](this,_0x5614('0xf6'),_0x3fe774=>!_0x3fe774);}async[_0x5614('0xe2')](){if(this['repository']['length']>0x0){const _0x212921=this[_0x5614('0x7')][_0x5614('0x73')](0x0),_0x5b9dbd=await this[_0x5614('0x5a')](_0x212921),_0x1fe5e7=await this['getRevisionRootsAttributes'](_0x212921);this[_0x5614('0x1f')](_0x5b9dbd,_0x1fe5e7);}}[_0x5614('0x3b')](_0xc2d10){this[_0x5614('0x74')]=_0xc2d10;}async['update'](){const _0x51df6c=await this[_0x5614('0x74')]['getLatestVersion']();if(_0x51df6c>this[_0x5614('0xea')][_0x5614('0x35')]){await this['_loadState']();const _0x480c3a=this[_0x5614('0x104')]({'revision':this[_0x5614('0xea')],'to':_0x51df6c});_0x480c3a[_0x5614('0x3')]=_0x480c3a[_0x5614('0x1')][_0x5614('0x42')](_0x31566b=>this[_0x5614('0x37')][_0x5614('0x102')][_0x5614('0xae')](_0x5614('0xe'))[_0x5614('0x34')](_0x31566b)),this[_0x5614('0xea')][_0x5614('0xf1')](_0x480c3a);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x5614('0x6c')]&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this[_0x5614('0x6c')]={'fromVersion':this[_0x5614('0xea')][_0x5614('0x92')],'authors':this[_0x5614('0xea')][_0x5614('0x3')]['slice']()});}async['saveRevision'](_0x43bc13={},_0x62044b=null){const _0x42fbc1=[];await this[_0x5614('0x59')](),this[_0x5614('0x78')]=!0x1,_0x62044b>this['currentRevision']['toVersion']&&(_0x62044b=null),null===_0x62044b&&(_0x62044b=await this[_0x5614('0x74')][_0x5614('0x17')]());const _0x37107a=this['_getFromVersion'](_0x62044b),_0x144816=this[_0x5614('0x104')]({'from':_0x37107a,'to':_0x62044b});if(this[_0x5614('0xea')][_0x5614('0x35')]<_0x62044b){const _0x318fc2=this[_0x5614('0x104')]({'revision':this[_0x5614('0xea')],'from':_0x62044b,'to':_0x62044b});_0x318fc2['authors']=[],_0x318fc2[_0x5614('0x1')]=[],_0x318fc2['id']=this[_0x5614('0xea')]['id'],this[_0x5614('0xea')]['_update'](_0x318fc2,!0x0),delete _0x318fc2[_0x5614('0x3')],_0x42fbc1[_0x5614('0x54')](_0x318fc2);}_0x43bc13['creatorId']=this[_0x5614('0x37')][_0x5614('0x102')][_0x5614('0xae')]('Users')['me']['id'],_0x43bc13[_0x5614('0x6a')]=_0x43bc13[_0x5614('0x6a')]||null,_0x43bc13['id']=_0x43bc13['id']||_0x2168ef(),_0x43bc13={..._0x43bc13,..._0x144816};const _0x557ba5=this[_0x5614('0x43')](_0x43bc13);_0x42fbc1[_0x5614('0x54')](_0x43bc13);const _0x362c73=this[_0x5614('0x7')][_0x5614('0x91')](_0x557ba5);if(0x0!==_0x362c73){const _0xf450db=this[_0x5614('0x7')]['getRevision'](_0x362c73-0x1);if(_0xf450db[_0x5614('0x92')]!==_0x62044b){const _0x2c381e=this['_revisionDataBuilder'][_0x5614('0x2b')](_0x62044b,_0xf450db[_0x5614('0x35')]),_0x5530fb={'id':_0xf450db['id'],'diffData':_0x2c381e['diffData'],'authorsIds':_0x2c381e[_0x5614('0x1')],'authors':_0x2c381e[_0x5614('0x1')][_0x5614('0x42')](_0x4e39e8=>this[_0x5614('0x37')][_0x5614('0x102')][_0x5614('0xae')](_0x5614('0xe'))[_0x5614('0x34')](_0x4e39e8)),'fromVersion':_0x62044b};_0xf450db===this[_0x5614('0xea')]&&(_0x5530fb[_0x5614('0x32')]=new Date(_0x43bc13['createdAt'][_0x5614('0x41')]()+0xa)),_0xf450db[_0x5614('0xf1')](_0x5530fb,!0x0),delete _0x5530fb['authors'],_0x42fbc1[_0x5614('0x54')](_0x5530fb);}}if(this[_0x5614('0x71')]){for(const _0x1ac68c of _0x42fbc1)this[_0x5614('0x4e')](_0x1ac68c['id'],_0x1ac68c,!0x0);this[_0x5614('0x94')]();}return _0x557ba5;}['addRevisionData'](_0x4ac04e){const _0x133525=this['repository']['createRevision'](_0x4ac04e);return this[_0x5614('0x71')]&&_0x133525['on'](_0x5614('0xf1'),(_0x50580e,_0x4703db,_0x33d780)=>{_0x33d780||(this[_0x5614('0x4e')](_0x4703db['id'],_0x4703db,!0x0),this['sendBufferedUpdates']());}),this[_0x5614('0x7')][_0x5614('0xb')](_0x133525,this['_findInsertionIndex'](_0x133525)),_0x133525;}async[_0x5614('0x5a')](_0x400546){await this['_loadRevisionData'](_0x400546);const _0x32fe7e={};for(const _0x553dc3 in _0x400546[_0x5614('0xbd')]){if(_0x400546['diffData'][_0x553dc3]['attachChange']&&!_0x400546[_0x5614('0xbd')][_0x553dc3][_0x5614('0x30')][_0x5614('0x83')])continue;const _0x1ec31c=this[_0x5614('0xc4')](JSON[_0x5614('0x9')](_0x400546[_0x5614('0xbd')][_0x553dc3][_0x5614('0xf9')])),_0x16238a=this['editor'][_0x5614('0xc3')][_0x5614('0xec')]['document'],_0x1b5cca=new _0x2d97f9(_0x16238a,_0x1ec31c[_0x5614('0x42')](_0x5aed16=>J(_0x5aed16,this[_0x5614('0x37')])));this[_0x5614('0x37')][_0x5614('0xdb')][_0x5614('0x58')][_0x5614('0x7e')](_0x5614('0x14')),_0x32fe7e[_0x553dc3]=this[_0x5614('0x37')][_0x5614('0xdb')][_0x5614('0x58')][_0x5614('0xa')](_0x1b5cca),this[_0x5614('0x37')][_0x5614('0xdb')][_0x5614('0x58')]['useFillerType'](_0x5614('0xe5'));}return _0x32fe7e;}async['getRevisionRootsAttributes'](_0x464b71){await this['_loadRevisionData'](_0x464b71);const _0x3d35e8={};for(const _0x2136f4 in _0x464b71['diffData'])_0x464b71[_0x5614('0xbd')][_0x2136f4]['attachChange']&&!_0x464b71[_0x5614('0xbd')][_0x2136f4]['attachChange'][_0x5614('0x83')]||(_0x3d35e8[_0x2136f4]=_0x464b71['diffData'][_0x2136f4][_0x5614('0x7b')]||{});return _0x3d35e8;}['sendBufferedUpdates'](){if(0x0===this[_0x5614('0xdf')][_0x5614('0x5')])return;if(this['_isPendingUpdate'])return;let _0x7133c2=Array[_0x5614('0xf')](this[_0x5614('0xdf')][_0x5614('0x3a')]());this[_0x5614('0xdf')][_0x5614('0xe0')]();for(let _0x29165d=0x0;_0x29165d<_0x7133c2[_0x5614('0xeb')];_0x29165d++){const _0x4bdd98=_0x7133c2[_0x29165d];let _0x3b1606=!0x1;for(const _0x5a9634 of Object['keys'](_0x4bdd98))void 0x0===_0x4bdd98[_0x5a9634]?delete _0x4bdd98[_0x5a9634]:'id'!==_0x5a9634&&(_0x3b1606=!0x0);_0x3b1606||(_0x7133c2[_0x29165d]=null);}if(_0x7133c2=_0x7133c2[_0x5614('0x1d')](_0xd03425=>null!==_0xd03425),!_0x7133c2[_0x5614('0xeb')])return;for(let _0x5188f5=0x0;_0x5188f5<_0x7133c2[_0x5614('0xeb')];_0x5188f5++){const _0x4dde3a=_0x7133c2[_0x5188f5];void 0x0!==_0x4dde3a['fromVersion']&&void 0x0===_0x4dde3a[_0x5614('0x35')]&&(_0x4dde3a[_0x5614('0x35')]=this[_0x5614('0x7')][_0x5614('0x73')](_0x4dde3a['id'])[_0x5614('0x35')]),void 0x0!==_0x4dde3a['toVersion']&&void 0x0===_0x4dde3a['fromVersion']&&(_0x4dde3a[_0x5614('0x92')]=this[_0x5614('0x7')][_0x5614('0x73')](_0x4dde3a['id'])[_0x5614('0x92')]);}const _0x1c00d6=this[_0x5614('0x37')][_0x5614('0xf3')][_0x5614('0xae')](_0x5614('0xf2'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x7133c2,_0x1c00d6)[_0x5614('0xba')](()=>{this[_0x5614('0xf6')]=!0x1;})[_0x5614('0xb0')](_0x71eab=>{if(_0x71eab)for(const _0x5b0693 of _0x71eab)this[_0x5614('0xce')]({'id':_0x5b0693['id'],'createdAt':_0x5b0693[_0x5614('0x32')]});this[_0x5614('0x6d')](),this[_0x5614('0x94')]();});}['_replaceEditorDataWithRevisionData'](_0x378acf,_0x1eb6d2){let _0x1bacf7=this['editor'][_0x5614('0xf3')][_0x5614('0xae')]('initialData'),_0x53157a=this[_0x5614('0x37')]['config'][_0x5614('0xae')](_0x5614('0xff'));if(void 0x0===_0x1bacf7){_0x1bacf7={};for(const _0x56d88f of this[_0x5614('0x37')][_0x5614('0xb1')]['document']['getRootNames']())_0x1bacf7[_0x56d88f]='';}if(_0x5614('0x86')==typeof _0x1bacf7&&(_0x1bacf7={'main':_0x1bacf7}),void 0x0===_0x53157a){_0x53157a={};for(const _0x6c547f of this['editor']['model'][_0x5614('0xbb')][_0x5614('0xd8')]())_0x53157a[_0x6c547f]={};}let _0x26aa9c=!0x1;const _0x320e43=Object[_0x5614('0x45')](_0x1bacf7),_0x2938e8=Object[_0x5614('0x45')](_0x378acf);for(const _0x3da0e1 of _0x320e43){if(_0x1bacf7[_0x3da0e1]!==_0x378acf[_0x3da0e1]&&''!==_0x1bacf7[_0x3da0e1][_0x5614('0x44')]()){_0x26aa9c=!0x0;break;}if(!_0x11581f(_0x53157a[_0x3da0e1],_0x1eb6d2[_0x3da0e1])&&Object['keys'](_0x53157a[_0x3da0e1])[_0x5614('0xeb')]>0x0){_0x26aa9c=!0x0;break;}}_0x26aa9c||(_0x26aa9c=_0x2938e8[_0x5614('0xa1')](_0x10e28f=>!_0x320e43['includes'](_0x10e28f))),_0x26aa9c&&_0xfa8cf3(_0x5614('0xfd'),{'editorData':_0x1bacf7,'editorRootsAttributes':_0x53157a,'revisionData':_0x378acf,'revisionRootsAttributes':_0x1eb6d2}),this[_0x5614('0x37')][_0x5614('0xf3')][_0x5614('0x31')](_0x5614('0x68'),_0x378acf),this[_0x5614('0x37')][_0x5614('0xf3')][_0x5614('0x31')](_0x5614('0xff'),_0x1eb6d2);}[_0x5614('0x28')](){if(!this[_0x5614('0x4a')]){const _0x3a9d42=this['editor'][_0x5614('0x102')][_0x5614('0xae')]('PendingActions');this[_0x5614('0x4a')]=_0x3a9d42['add'](_0x2786b7(this[_0x5614('0x37')][_0x5614('0x89')],_0x5614('0xe7')));}}[_0x5614('0x6d')](){this[_0x5614('0x4a')]&&(this[_0x5614('0x37')][_0x5614('0x102')][_0x5614('0xae')](_0x5614('0xc9'))[_0x5614('0xdc')](this[_0x5614('0x4a')]),this['_pendingAction']=null);}[_0x5614('0x5c')](_0x36949b){const _0x434e86=this[_0x5614('0x7')][_0x5614('0x69')]();_0x434e86['reverse']();let _0x36f3e9=0x0;for(;_0x36f3e9<_0x434e86[_0x5614('0xeb')];){const _0x8ac6aa=_0x434e86[_0x36f3e9];if(_0x8ac6aa===this[_0x5614('0xea')]){_0x36f3e9++;continue;}if(_0x8ac6aa['id']===this['_initialRevisionId'])break;const _0x576b05=_0x36949b[_0x5614('0x35')]-_0x8ac6aa['toVersion']||_0x36949b['fromVersion']-_0x8ac6aa[_0x5614('0x92')];if(_0x576b05>0x0)break;if(_0x576b05<0x0)_0x36f3e9++;else{if(!_0x36949b[_0x5614('0x0')]&&_0x8ac6aa[_0x5614('0x0')])break;if(_0x8ac6aa[_0x5614('0x0')]||!_0x36949b[_0x5614('0x0')]){if(_0x36949b[_0x5614('0x32')]>_0x8ac6aa[_0x5614('0x32')])break;_0x36f3e9++;}else _0x36f3e9++;}}return _0x36f3e9;}[_0x5614('0xce')](_0x4bf6c7){const _0x22ea13=this['repository'][_0x5614('0x73')](_0x4bf6c7['id']);if(_0x4bf6c7['createdAt']&&(_0x4bf6c7[_0x5614('0x32')]=new Date(_0x4bf6c7[_0x5614('0x32')])),_0x4bf6c7[_0x5614('0x1')]){const _0x5ab535=this[_0x5614('0x37')][_0x5614('0x102')][_0x5614('0xae')]('Users');_0x4bf6c7[_0x5614('0x3')]=_0x4bf6c7[_0x5614('0x1')][_0x5614('0x42')](_0x422f5b=>_0x5ab535[_0x5614('0x34')](_0x422f5b));}_0x22ea13['_update'](_0x4bf6c7,!0x0);}[_0x5614('0x104')]({revision:_0x1ca013=null,from:_0x419998=null,to:_0x5d26ba=null}){_0x419998=null!==_0x419998?_0x419998:_0x1ca013[_0x5614('0x92')],_0x5d26ba=null!==_0x5d26ba?_0x5d26ba:_0x1ca013['toVersion'];const _0x470b7b=this['_revisionDataBuilder']['getData'](_0x419998,_0x5d26ba),_0x1548fe={'diffData':_0x470b7b[_0x5614('0xbd')],'authorsIds':_0x470b7b[_0x5614('0x1')],'fromVersion':_0x419998,'toVersion':_0x5d26ba};if(!_0x1ca013||_0x5d26ba!==_0x1ca013[_0x5614('0x35')]){const _0x2fdefd=_0x5d26ba-0x1,_0x1c8710=this[_0x5614('0x74')][_0x5614('0xa4')][_0x5614('0x38')](_0x2fdefd);_0x1548fe['createdAt']=_0x1c8710&&_0x1c8710[_0x5614('0x32')]||new Date();}if(this[_0x5614('0x6c')]&&_0x419998===this[_0x5614('0x6c')][_0x5614('0x92')])for(const _0x245d37 of this[_0x5614('0x6c')]['authors'])_0x1548fe[_0x5614('0x1')][_0x5614('0x3e')](_0x245d37['id'])||_0x1548fe[_0x5614('0x1')][_0x5614('0x54')](_0x245d37['id']);return _0x1548fe;}[_0x5614('0x5b')](_0x3069b7){if(!_0x3069b7||_0x3069b7['diffData'])return Promise[_0x5614('0x2c')]();{const _0x2eb8db=this[_0x5614('0x37')][_0x5614('0xf3')][_0x5614('0xae')](_0x5614('0xf2'));return this[_0x5614('0x71')][_0x5614('0x73')]({'channelId':_0x2eb8db,'revisionId':_0x3069b7['id']})[_0x5614('0xb0')](_0x758647=>{_0x3069b7[_0x5614('0xbd')]=_0x758647['diffData'];});}}[_0x5614('0x4e')](_0x2d3d63,_0x473c4a,_0x1f7f35){if(this[_0x5614('0xdf')][_0x5614('0x24')](_0x2d3d63)){const _0x310d2a=this[_0x5614('0xdf')][_0x5614('0xae')](_0x2d3d63);_0x473c4a=_0x1f7f35?{..._0x310d2a,..._0x473c4a}:{..._0x473c4a,..._0x310d2a};}this[_0x5614('0xdf')]['set'](_0x2d3d63,_0x473c4a);}[_0x5614('0xa8')](_0x682e60){const _0x2eefd8=this[_0x5614('0x7')][_0x5614('0x69')]();_0x2eefd8[_0x5614('0x4f')](),_0x2eefd8[_0x5614('0xd3')]();const _0x418db7=_0x2eefd8[_0x5614('0xb6')](_0x72664e=>_0x72664e['toVersion']<=_0x682e60)[_0x5614('0x35')];return _0x418db7<this[_0x5614('0x1b')]?this[_0x5614('0x1b')]:_0x418db7;}[_0x5614('0xab')](_0x45bf52){const _0x3b595d=this[_0x5614('0x7')][_0x5614('0x73')](this['repository'][_0x5614('0xeb')]-0x1);if(_0x3b595d)this[_0x5614('0xe3')]=_0x3b595d['id'];else{const _0x59aad7=!this[_0x5614('0x37')][_0x5614('0xb1')][_0x5614('0xbb')][_0x5614('0xf5')][_0x5614('0xb6')](_0x172044=>this[_0x5614('0x37')][_0x5614('0xb1')]['hasContent'](_0x172044)),_0x3542ce=this[_0x5614('0x37')][_0x5614('0x102')]['get'](_0x5614('0xe'))['me']['id'],_0x4f39b6=_0x2786b7(this[_0x5614('0x37')][_0x5614('0x89')],_0x59aad7?_0x5614('0x81'):_0x5614('0xc5'));this[_0x5614('0x36')]({'from':_0x45bf52,'to':_0x45bf52,'id':this['_initialRevisionId'],'name':_0x4f39b6,'creatorId':_0x3542ce});}}[_0x5614('0x98')](_0x5d0e0c){const _0x14a092=this[_0x5614('0x74')]['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x14a092),this[_0x5614('0xea')]||(this['currentRevision']=this[_0x5614('0x36')]({'from':_0x5d0e0c,'to':_0x5d0e0c,'id':_0x14a092,'name':'','creatorId':null}));}[_0x5614('0x36')]({name:_0x1adbeb,from:_0x168f18,to:_0x1f10ff,creatorId:_0x525082,id:_0x192df3}){const _0x4fe47c=this[_0x5614('0x104')]({'from':_0x168f18,'to':_0x1f10ff});_0x4fe47c[_0x5614('0x6a')]=_0x1adbeb,_0x4fe47c[_0x5614('0x9a')]=_0x525082,_0x4fe47c['id']=_0x192df3;const _0x3a41f1=this[_0x5614('0x43')](_0x4fe47c);return this[_0x5614('0x71')]&&this['_bufferUpdate'](_0x4fe47c['id'],_0x4fe47c,!0x0),_0x3a41f1;}[_0x5614('0xd9')](){this[_0x5614('0x37')][_0x5614('0xde')][_0x5614('0x3c')]('dataDowncast')[_0x5614('0xc2')]({'model':_0x5614('0x53')});}[_0x5614('0xc4')](_0x2ff64b){return(_0x2ff64b=_0x2ff64b[_0x5614('0x1d')](_0x3b7684=>!_0x3b7684['name']||_0x5614('0x7f')!==_0x3b7684['name']&&_0x5614('0x20')!==_0x3b7684[_0x5614('0x6a')]))[_0x5614('0xe1')](_0x58bbb8=>{_0x5614('0x86')!=typeof _0x58bbb8&&(_0x58bbb8[_0x5614('0x95')]=this['_removeRevisionMarkers'](_0x58bbb8[_0x5614('0x95')]),_0x58bbb8[_0x5614('0x48')]=_0x58bbb8[_0x5614('0x48')][_0x5614('0x1d')](_0x27f3ee=>!_0x27f3ee[0x0][_0x5614('0x80')](_0x5614('0x62'))));}),_0x2ff64b;}}function J(_0x5d90c9,_0x455636){const _0x88a6ab=_0x455636[_0x5614('0xc3')][_0x5614('0xec')][_0x5614('0xbb')];if(_0x5614('0x86')==typeof _0x5d90c9)return new _0x469966(_0x88a6ab,_0x5d90c9);{const _0x32c7c0=_0x5d90c9[_0x5614('0x95')]['map'](_0x55c6f1=>J(_0x55c6f1,_0x455636));return new(B[_0x5d90c9[(_0x5614('0x66'))]]||_0x239372)(_0x88a6ab,_0x5d90c9[_0x5614('0x6a')],_0x5d90c9[_0x5614('0x48')],_0x32c7c0);}}class H{constructor(_0x55d276){this['editor']=_0x55d276,this[_0x5614('0xca')]=new Map(),this[_0x5614('0x9e')]=-0x1,this[_0x5614('0x52')]=-0x1,this[_0x5614('0x39')]=new Map(),this[_0x5614('0xee')]=new Map(),this[_0x5614('0x6b')]=new Map(),this[_0x5614('0x5e')]=new Map(),this[_0x5614('0x61')]=new Map(),this[_0x5614('0x82')]=new Map(),this[_0x5614('0x65')]=new Map(),this[_0x5614('0x1e')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x5614('0x84')]=new Map(),this[_0x5614('0x29')]=0x1,this[_0x5614('0x2')]=this['editor'][_0x5614('0xb1')][_0x5614('0xbb')]['getRootNames'](),this['_initialRoots'][_0x5614('0x54')](_0x5614('0xb4'));}[_0x5614('0x8')](_0x2dd140){this['source']=_0x2dd140;const _0x26f381=new Map(),_0x51a37e=new Map(),_0x1f5388=this[_0x5614('0x37')][_0x5614('0xb1')][_0x5614('0xbb')][_0x5614('0xd8')](!0x0);_0x1f5388[_0x5614('0x54')]('$graveyard');for(const _0x57df60 of _0x1f5388){const _0x130710=this[_0x5614('0x37')][_0x5614('0xb1')]['document'][_0x5614('0xd5')](_0x57df60),_0x4bf53b=q(_0x130710);_0x26f381['set'](_0x57df60,_0x4bf53b),_0x51a37e[_0x5614('0x31')](_0x57df60,Object[_0x5614('0x3f')](_0x130710['getAttributes']()));}const _0x5bf17d=Array[_0x5614('0xf')](this[_0x5614('0x37')][_0x5614('0xb1')][_0x5614('0x85')])['map'](_0xfc482c=>[_0xfc482c['name'],_0xfc482c['getRange']()]),_0x34b642=this[_0x5614('0xb9')][_0x5614('0x21')];this['_saveMetaData'](_0x34b642,_0x26f381,_0x5bf17d,_0x51a37e),this['_startingRevisionId']=this[_0x5614('0x29')];const _0x11c814=new Map(),_0x556585=new Map();for(const _0x679c99 of this[_0x5614('0x2')]){const _0x3a8d6a=G(_0x679c99);_0x11c814[_0x5614('0x31')](_0x679c99,_0x3a8d6a),_0x556585[_0x5614('0x31')](_0x679c99,{});}this[_0x5614('0x75')](Number[_0x5614('0x96')],_0x11c814,[],_0x556585);}[_0x5614('0x2b')](_0x347fd8,_0x2e7925){if(this[_0x5614('0x9e')]===_0x347fd8&&this[_0x5614('0x52')]<=_0x2e7925)this['_savedMetaData'][_0x5614('0x5')]>0x1&&this['_removeMetaData'](this[_0x5614('0x52')]),this['_applyOperations'](this[_0x5614('0x52')],_0x2e7925,!0x0);else{if(!this[_0x5614('0xca')][_0x5614('0x24')](_0x347fd8)){const _0x2bb7a1=this['_getPreviousFrom'](_0x347fd8);this['_calculateMetaData'](_0x2bb7a1,_0x347fd8,!0x1);}this[_0x5614('0x57')](_0x347fd8,_0x2e7925,!0x0);}return this[_0x5614('0x9e')]=_0x347fd8,this[_0x5614('0x52')]=_0x2e7925,this['_getState']();}['loadState'](_0xbe2757){this['_reset'](),this[_0x5614('0x9e')]=_0xbe2757[_0x5614('0x92')],this[_0x5614('0x52')]=_0xbe2757[_0x5614('0x35')];for(const _0x34f600 in _0xbe2757['diffData']){const _0x2aff49=_0xbe2757[_0x5614('0xbd')][_0x34f600]['attachChange'],_0x158e9a=_0x27bc6f(_0xbe2757[_0x5614('0xbd')][_0x34f600]['attributesBefore'])||{},_0x1108aa=this[_0x5614('0x25')](_0xbe2757['diffData'][_0x34f600][_0x5614('0x1a')]);_0x1108aa['rootName']=_0x34f600,_0x1108aa[_0x5614('0x26')]=!_0x2aff49||!_0x2aff49[_0x5614('0x83')],_0x1108aa[_0x5614('0x83')]=()=>_0x1108aa['_isAttached'],this[_0x5614('0x5e')][_0x5614('0x31')](_0x34f600,_0x1108aa),this[_0x5614('0x61')][_0x5614('0x31')](_0x34f600,_0x158e9a),_0x2aff49&&this[_0x5614('0x84')][_0x5614('0x31')](_0x34f600,_0x2aff49);const _0x28ca93=this[_0x5614('0x4d')](_0x1108aa);this[_0x5614('0x65')]['set'](_0x34f600,_0x28ca93);for(const [_0xe6aac9,_0x25ed71]of _0x1108aa[_0x5614('0x85')]){if(!_0xe6aac9[_0x5614('0x80')](_0x5614('0xb2')))continue;const _0x20764a=_0xe6aac9['split'](':')[0x2];for(const _0x8b5560 of _0x25ed71['getWalker']({'singleCharacters':!0x0})){const _0x3b6690=this['_getVidAttributeName'](_0x8b5560),_0x4f75b0=_0x5614('0xd')==_0x8b5560[_0x5614('0x66')]?_0x8b5560[_0x5614('0xd2')]['path'][_0x5614('0x9c')](0x0,-0x1):_0x8b5560[_0x5614('0xd2')]['path'],_0x113a67=_0x28ca93[_0x5614('0x79')](_0x4f75b0)[_0x5614('0x12')](_0x3b6690);this['_touched'][_0x5614('0x31')](_0x113a67,{'userId':_0x20764a});}}}this[_0x5614('0x97')]=this[_0x5614('0x29')];const _0xb3d71e=[...Array(this[_0x5614('0x29')])[_0x5614('0x45')]()][_0x5614('0x9c')](0x1)[_0x5614('0x1d')](_0x2d3c8c=>!this[_0x5614('0x1e')][_0x5614('0x24')](_0x2d3c8c));let _0x5ecbc8=0x0;const _0x11d0e3=new Map();for(const _0x4b97d8 in _0xbe2757[_0x5614('0xbd')]){const _0x4d3f2a=_0xbe2757['diffData'][_0x4b97d8][_0x5614('0x30')],_0x363684=_0x27bc6f(_0xbe2757[_0x5614('0xbd')][_0x4b97d8][_0x5614('0x7b')])||{},_0xd6c592=this[_0x5614('0x25')](_0xbe2757['diffData'][_0x4b97d8][_0x5614('0xf9')]);_0xd6c592[_0x5614('0xa6')]=_0x4b97d8,_0xd6c592['_isAttached']=!_0x4d3f2a||_0x4d3f2a['isAttached'],_0xd6c592['isAttached']=()=>_0xd6c592[_0x5614('0x26')],this['_diffRoots']['set'](_0x4b97d8,_0xd6c592),this[_0x5614('0x6b')]['set'](_0x4b97d8,_0x363684);const _0x5cbe6f=this[_0x5614('0x4d')](_0xd6c592,Number['NEGATIVE_INFINITY']);this[_0x5614('0x82')][_0x5614('0x31')](_0x4b97d8,_0x5cbe6f),_0x11d0e3[_0x5614('0x31')](_0x4b97d8,_0xd6c592['isAttached']()?_0x363684:{});for(const [_0xc01c6a,_0x3ec883]of _0xd6c592[_0x5614('0x85')]){if(!_0xc01c6a[_0x5614('0x80')]('revision:'))continue;const _0x2acc4c=_0xc01c6a[_0x5614('0xf4')](':')[0x2];for(const _0x563d37 of _0x3ec883[_0x5614('0xc8')]({'singleCharacters':!0x0})){const _0x196bd1=this[_0x5614('0xf7')](_0x563d37),_0x38840f=this[_0x5614('0x29')]++,_0x50abde='elementEnd'==_0x563d37[_0x5614('0x66')]?_0x563d37['previousPosition'][_0x5614('0xc0')][_0x5614('0x9c')](0x0,-0x1):_0x563d37[_0x5614('0xd2')]['path'];_0x5cbe6f[_0x5614('0x79')](_0x50abde)[_0x5614('0x27')](_0x196bd1,_0x38840f),this[_0x5614('0x1e')][_0x5614('0x31')](_0x38840f,{'userId':_0x2acc4c});}}for(const _0x365f99 of this[_0x5614('0x37')][_0x5614('0xb1')][_0x5614('0x99')](_0xd6c592)['getWalker']({'singleCharacters':!0x0})){const _0x4135ea=this[_0x5614('0xf7')](_0x365f99),_0x3ac08b=_0x5614('0xd')==_0x365f99[_0x5614('0x66')]?_0x365f99[_0x5614('0xd2')]['path']['slice'](0x0,-0x1):_0x365f99['previousPosition'][_0x5614('0xc0')],_0x487442=_0x5cbe6f[_0x5614('0x79')](_0x3ac08b);_0x487442[_0x5614('0x12')](_0x4135ea)>0x0||_0x487442['_setAttribute'](_0x4135ea,_0xb3d71e[_0x5ecbc8++]);}for(const [_0x221b3c,_0x172950]of _0xd6c592[_0x5614('0x85')])_0x221b3c[_0x5614('0x80')](_0x5614('0xb2'))||this['_markers'][_0x5614('0x31')](_0x221b3c,_0x172950);}const _0x4867a6=G(_0x5614('0xb4'));this[_0x5614('0x5e')][_0x5614('0x31')](_0x5614('0xb4'),_0x4867a6),this[_0x5614('0x65')][_0x5614('0x31')]('$graveyard',this[_0x5614('0x4d')](_0x4867a6,0x1));const _0x3ce4e0=G(_0x5614('0xb4'));this[_0x5614('0xee')][_0x5614('0x31')](_0x5614('0xb4'),_0x3ce4e0),this[_0x5614('0x82')][_0x5614('0x31')]('$graveyard',this['_makeIdsRoot'](_0x3ce4e0,0x1));const _0x1845e5=Array[_0x5614('0xf')](this[_0x5614('0xee')])[_0x5614('0x42')](([_0x1cc15d,_0x4269ca])=>[_0x1cc15d,q(_0x4269ca)]);this[_0x5614('0x75')](this[_0x5614('0x52')],_0x1845e5,this[_0x5614('0x39')],_0x11d0e3);}['_makeModelFromViewString'](_0x5e2bcf){const _0x4c8fac=JSON[_0x5614('0x9')](_0x5e2bcf),_0x2208c5=this[_0x5614('0x37')][_0x5614('0xc3')][_0x5614('0xec')]['document'],_0x102968=new _0x2d97f9(_0x2208c5,_0x4c8fac[_0x5614('0x42')](_0x3c3a09=>J(_0x3c3a09,this[_0x5614('0x37')])));return this[_0x5614('0x37')][_0x5614('0xdb')][_0x5614('0x46')](_0x102968);}[_0x5614('0x75')](_0x1afb5f,_0x149848,_0x2854d2,_0x36e014){const _0x1598e6=new Map(_0x149848),_0x50efe7=new Map(_0x27bc6f(_0x36e014)),_0x4e583c=new Map();for(const [_0x38a7ab,_0x84fef8]of _0x2854d2)_0x4e583c[_0x5614('0x31')](_0x38a7ab,{'start':_0x84fef8[_0x5614('0xa5')][_0x5614('0x87')](),'end':_0x84fef8[_0x5614('0x55')][_0x5614('0x87')](),'rootName':_0x84fef8['root']['rootName']});this[_0x5614('0xca')][_0x5614('0x31')](_0x1afb5f,{'roots':_0x1598e6,'markers':_0x4e583c,'rootsAttributes':_0x50efe7});}[_0x5614('0xc1')](_0x2430be){this[_0x5614('0xca')]['delete'](_0x2430be);}[_0x5614('0xc7')](){this[_0x5614('0x90')](),this[_0x5614('0x9e')]=-0x1,this[_0x5614('0x52')]=-0x1,this[_0x5614('0xca')][_0x5614('0xe0')](),this['init'](this['source']);}[_0x5614('0x90')](){this['_touched']['clear'](),this[_0x5614('0x8c')][_0x5614('0xe0')](),this['_touchedRoots'][_0x5614('0xe0')](),this[_0x5614('0xee')][_0x5614('0xe0')](),this[_0x5614('0x6b')][_0x5614('0xe0')](),this[_0x5614('0x5e')][_0x5614('0xe0')](),this[_0x5614('0x61')]['clear'](),this[_0x5614('0x82')][_0x5614('0xe0')](),this[_0x5614('0x65')][_0x5614('0xe0')](),this['_markers'][_0x5614('0xe0')](),this['_revisionId']=0x1,this[_0x5614('0x97')]=this['_revisionId'];}[_0x5614('0x4d')](_0x3783f5,_0x37be70=null){let _0x138981=null;_0x3783f5['is'](_0x5614('0xcb'))||(_0x138981=new _0x489144(_0x3783f5[_0x5614('0x6a')],{'vid_start':null===_0x37be70?this[_0x5614('0x29')]++:_0x37be70++}));const _0x43b1a3=[];for(const _0x5a0c84 of _0x3783f5[_0x5614('0xaf')]())if(_0x5a0c84['is']('element')){_0x43b1a3[_0x5614('0x54')](this[_0x5614('0x4d')](_0x5a0c84,_0x37be70));const _0x242174=_0x43b1a3[_0x43b1a3['length']-0x1];null!==_0x37be70&&(_0x37be70=_0x242174['is'](_0x5614('0x2f'),_0x5614('0x101'))?_0x242174[_0x5614('0x12')](_0x5614('0x19'))+0x1:_0x242174['getAttribute'](_0x5614('0xda'))+0x1);}else for(let _0x579e41=0x0;_0x579e41<_0x5a0c84[_0x5614('0x64')];_0x579e41++)_0x43b1a3['push'](new _0x489144('$text',{'vid':null===_0x37be70?this['_revisionId']++:_0x37be70++}));if(_0x3783f5['is'](_0x5614('0xcb'))){const _0x4aba07=G(_0x3783f5[_0x5614('0xa6')]);return _0x4aba07[_0x5614('0x7d')](0x0,_0x43b1a3),_0x4aba07;}return _0x138981[_0x5614('0x27')](_0x5614('0xda'),null===_0x37be70?this['_revisionId']++:_0x37be70++),_0x138981['_insertChild'](0x0,_0x43b1a3),_0x138981;}['_calculateMetaData'](_0x3bffa1,_0x2140c4,_0x443409){this[_0x5614('0x90')]();const {roots:_0x3bd67e,markers:_0x4d0300,rootsAttributes:_0x3a6706}=this[_0x5614('0xca')]['get'](_0x3bffa1);this[_0x5614('0x5e')]=new Map(_0x3bd67e),this[_0x5614('0x61')]=new Map(_0x27bc6f(_0x3a6706));for(const [_0x33bf96,_0x1d65b7]of this[_0x5614('0x5e')])if(_0x5614('0xb4')!==_0x33bf96&&(this[_0x5614('0xee')][_0x5614('0x31')](_0x33bf96,q(_0x1d65b7)),this[_0x5614('0x6b')]=new Map(_0x27bc6f(_0x3a6706)),_0x443409)){const _0x310f9e=this[_0x5614('0x29')];this[_0x5614('0x82')][_0x5614('0x31')](_0x33bf96,this['_makeIdsRoot'](_0x1d65b7)),this[_0x5614('0x65')][_0x5614('0x31')](_0x33bf96,this['_makeIdsRoot'](_0x1d65b7,_0x310f9e));}this[_0x5614('0x97')]=this[_0x5614('0x29')],this[_0x5614('0xee')]['set'](_0x5614('0xb4'),q(this[_0x5614('0x5e')][_0x5614('0xae')](_0x5614('0xb4')))),_0x443409&&this['_idsRoots'][_0x5614('0x31')](_0x5614('0xb4'),this[_0x5614('0x4d')](this[_0x5614('0x5e')][_0x5614('0xae')](_0x5614('0xb4'))));for(const [_0x21a196,_0x576320]of _0x4d0300){const _0x160157=this[_0x5614('0x5e')][_0x5614('0xae')](_0x576320[_0x5614('0xa6')]),_0x3ec877=this[_0x5614('0xee')]['get'](_0x576320['rootName']),_0xc54570=new _0x464fb5(this[_0x5614('0x2a')](_0x576320[_0x5614('0xa5')],_0x160157),this[_0x5614('0x2a')](_0x576320['end'],_0x160157)),_0x573430=this[_0x5614('0x4')](_0xc54570,_0x3ec877);_0x160157[_0x5614('0x85')]['set'](_0x21a196,_0xc54570),this[_0x5614('0x39')][_0x5614('0x31')](_0x21a196,_0x573430);}this['_applyOperations'](_0x3bffa1,_0x2140c4,_0x443409);}['_applyOperations'](_0x5345a9,_0x1552e0,_0x25d5c3){for(const _0x3120f7 of this[_0x5614('0xb9')][_0x5614('0x77')](_0x5345a9,_0x1552e0))this[_0x5614('0x13')](_0x3120f7,_0x25d5c3);for(const _0x4c35cc of this['_diffRoots'][_0x5614('0x3a')]())_0x4c35cc[_0x5614('0x85')][_0x5614('0xe0')]();for(const [_0x1e03fa,_0x2e49f9]of this[_0x5614('0x39')]){this[_0x5614('0xee')][_0x5614('0xae')](_0x2e49f9[_0x5614('0x3d')]['rootName'])[_0x5614('0x85')][_0x5614('0x31')](_0x1e03fa,_0x2e49f9['clone']());}const _0x2d2898=new Map(),_0x5dd653=new Map();for(const [_0x188d9f,_0x59e091]of this[_0x5614('0xee')])_0x2d2898[_0x5614('0x31')](_0x188d9f,q(_0x59e091)),_0x5dd653[_0x5614('0x31')](_0x188d9f,this[_0x5614('0x6b')]['get'](_0x188d9f));this[_0x5614('0x75')](_0x1552e0,_0x2d2898,this[_0x5614('0x39')],_0x5dd653);}[_0x5614('0xf0')](_0x4f3d4a){const _0x2a32e1=Array['from'](this[_0x5614('0xca')][_0x5614('0x45')]());_0x2a32e1['sort']((_0x43f371,_0x117ef7)=>_0x43f371-_0x117ef7),_0x2a32e1[_0x5614('0x4f')]();for(const _0x39a2a5 of _0x2a32e1)if(_0x39a2a5<_0x4f3d4a)return _0x39a2a5;return Number[_0x5614('0x96')];}[_0x5614('0x93')](_0x2d3f07,_0x19ce23){const _0x54f53a=Array['from'](_0x19ce23[_0x5614('0x85')])[_0x5614('0x42')](([_0x4724a3,_0x27d627])=>[_0x4724a3,this[_0x5614('0x4')](_0x27d627,_0x2d3f07)]);_0x2d3f07[_0x5614('0x85')]=new Map(_0x54f53a);}[_0x5614('0x6e')](_0x4b7196){for(const _0x4508ec of this[_0x5614('0x39')][_0x5614('0x3a')]()){const _0x5b8a7e=_0x4508ec['getTransformedByOperation'](_0x4b7196),_0x282f3b=_0x464fb5[_0x5614('0x8a')](_0x5b8a7e);_0x4508ec[_0x5614('0xa5')]=_0x282f3b[_0x5614('0xa5')],_0x4508ec[_0x5614('0x55')]=_0x282f3b[_0x5614('0x55')];}}[_0x5614('0x13')](_0x4a61b7,_0x4b78b0){if('addRoot'==_0x4a61b7[_0x5614('0x66')]||_0x5614('0x22')==_0x4a61b7['type'])return void this[_0x5614('0xdd')](_0x4a61b7,_0x4b78b0);if(_0x5614('0xd6')==_0x4a61b7['type']){const _0x2b847a=_0x4a61b7['position'][_0x5614('0x3d')][_0x5614('0xa6')];this[_0x5614('0xee')]['has'](_0x2b847a)||(this['_diffRoots'][_0x5614('0x31')](_0x2b847a,G(_0x2b847a,!0x0)),this[_0x5614('0x6b')]['set'](_0x2b847a,{}),_0x4b78b0&&this[_0x5614('0x82')][_0x5614('0x31')](_0x2b847a,G(_0x2b847a,!0x0)));}if('addRootAttribute'==_0x4a61b7['type']||_0x5614('0x5f')==_0x4a61b7[_0x5614('0x66')]||_0x5614('0x2e')==_0x4a61b7[_0x5614('0x66')])return void this['_handleRootAttributeOperation'](_0x4a61b7);const _0x4f2854=this[_0x5614('0xd0')](_0x4a61b7,this[_0x5614('0xee')]);if(_0x5614('0x47')!==_0x4a61b7[_0x5614('0x66')]&&(_0x4f2854[_0x5614('0xc6')](),this[_0x5614('0x6e')](_0x4f2854)),_0x4b78b0)switch(_0x4f2854[_0x5614('0x66')]){case _0x5614('0xd6'):this[_0x5614('0xb3')](_0x4a61b7);break;case'move':case _0x5614('0xdc'):case _0x5614('0x56'):this[_0x5614('0x33')](_0x4a61b7);break;case _0x5614('0xb7'):this[_0x5614('0xed')](_0x4a61b7);break;case _0x5614('0xf4'):this['_handleSplitOperation'](_0x4a61b7);break;case _0x5614('0x47'):this[_0x5614('0xa7')](_0x4a61b7);}}['_cloneOperation'](_0x14f680,_0x13eeeb){const _0x371f87=_0x14f680['clone']();return _0x371f87[_0x5614('0x10')]=_0x14f680['_authorId'],this['_fixOperation'](_0x371f87,_0x13eeeb),_0x371f87;}['_getBaseVids'](_0x37e6ec){return _0x37e6ec['map'](_0x47a6c7=>{const _0x29af62=this['_getVidAttributeName'](_0x47a6c7);return Number(_0x47a6c7[_0x5614('0xfb')][_0x5614('0x12')](_0x29af62));});}['_generateTape'](_0x115169,_0x1091e6){if(_0x115169['is']('element',_0x5614('0x101')))_0x1091e6[_0x5614('0x54')]({'item':_0x115169,'type':'text'});else{_0x115169['is'](_0x5614('0x2f'))&&_0x1091e6[_0x5614('0x54')]({'item':_0x115169,'type':_0x5614('0xa9')});for(const _0x5c1305 of _0x115169[_0x5614('0xaf')]())this[_0x5614('0x76')](_0x5c1305,_0x1091e6);_0x115169['is'](_0x5614('0x2f'))&&_0x1091e6[_0x5614('0x54')]({'item':_0x115169,'type':'elementEnd'});}return _0x1091e6;}[_0x5614('0x8e')](){const _0x4d355b=new Map(this[_0x5614('0x1e')]),_0x3295e0=new Map(_0x4d355b),_0x4e4b29=new Map(),_0xfa435a={'insertions':{},'deletions':{}},_0x351780={'insertions':{},'deletions':{}},_0x37bc16=new Map(),_0x55eb59=new Set([...this['_baseRoots'][_0x5614('0x45')](),...this[_0x5614('0xee')]['keys']()]);_0x55eb59['delete']('$graveyard');for(const _0x5efca9 of _0x55eb59){const _0x3a4970=this[_0x5614('0xee')]['get'](_0x5efca9)||G(_0x5efca9,!0x1),_0x3e3495=this[_0x5614('0x5e')][_0x5614('0xae')](_0x5efca9)||G(_0x5efca9,!0x1);_0x3a4970[_0x5614('0x83')]()||_0x3e3495['isAttached']()?(_0xfa435a[_0x5614('0xf9')][_0x5efca9]=q(_0x3a4970),_0xfa435a[_0x5614('0x1a')][_0x5efca9]=q(_0x3e3495),this[_0x5614('0x93')](_0xfa435a['deletions'][_0x5efca9],_0x3e3495),this[_0x5614('0x93')](_0xfa435a[_0x5614('0xf9')][_0x5efca9],_0x3a4970),_0x351780[_0x5614('0xf9')][_0x5efca9]=this[_0x5614('0x76')](this[_0x5614('0x82')]['get'](_0x5efca9),[]),_0x351780['deletions'][_0x5efca9]=this[_0x5614('0x76')](this['_baseIdsRoots'][_0x5614('0xae')](_0x5efca9)||G(_0x5efca9,!0x1),[])):_0x55eb59[_0x5614('0x5d')](_0x5efca9);}for(const _0x4f3a69 of _0x55eb59){const _0x188099=_0x351780[_0x5614('0xf9')][_0x4f3a69];for(const _0x4d86ec of _0x188099){const _0x64f904=this[_0x5614('0xf7')](_0x4d86ec),_0x2af7c4=_0x4d86ec['item'][_0x5614('0x12')](_0x64f904);_0x3295e0[_0x5614('0x5d')](_0x2af7c4),_0x2af7c4>=this['_startingRevisionId']&&_0x4e4b29['set'](_0x2af7c4,_0x4d355b['get'](_0x2af7c4));}}for(const _0xd36804 of _0x55eb59){const _0x423014=_0x351780[_0x5614('0xf9')][_0xd36804],_0x31290c=this[_0x5614('0xbf')](_0x351780[_0x5614('0x1a')][_0xd36804]);let _0x51e125=0x0;for(const _0x284810 of _0x423014){const _0x4551f8=this['_getVidAttributeName'](_0x284810),_0x173163=_0x284810[_0x5614('0xfb')]['getAttribute'](_0x4551f8);if(!_0x4e4b29[_0x5614('0x24')](_0x173163)&&!_0x37bc16[_0x5614('0x24')](_0x173163)){if(_0x3295e0[_0x5614('0x24')](_0x173163))_0x51e125++;else{if(_0x173163!=_0x31290c[_0x51e125]){const _0x12f921=_0x4d355b['get'](_0x173163)||_0x4d355b[_0x5614('0xae')](_0x31290c[_0x51e125]);for(;_0x173163!=_0x31290c[_0x51e125];)_0x3295e0['has'](_0x31290c[_0x51e125])||(_0x37bc16[_0x5614('0x31')](_0x31290c[_0x51e125],_0x12f921),_0x4d355b[_0x5614('0x31')](_0x31290c[_0x51e125],_0x12f921)),_0x51e125++;}_0x51e125++;}}}}for(const _0x326f8e of _0x55eb59){const _0x1eb115=_0x351780[_0x5614('0xf9')][_0x326f8e];for(const _0x3bde5c of _0x1eb115){const _0x9f6ed=this['_getVidAttributeName'](_0x3bde5c),_0x3be281=_0x3bde5c[_0x5614('0xfb')][_0x5614('0x12')](_0x9f6ed);if(_0x37bc16[_0x5614('0x24')](_0x3be281)){const _0x33f16d=_0x37bc16[_0x5614('0xae')](_0x3be281);_0x3295e0['has'](_0x3be281)||_0x3295e0[_0x5614('0x31')](_0x3be281,{..._0x33f16d}),_0x4e4b29['set'](_0x3be281,{..._0x33f16d});}}}for(const _0x3a1b8e of _0x3295e0['keys']())_0x3a1b8e>=this['_startingRevisionId']&&_0x3295e0[_0x5614('0x5d')](_0x3a1b8e);const _0x20e140=new Map();for(const _0x4802e3 of _0x55eb59){let _0x3573a6=_0x351780[_0x5614('0xf9')][_0x4802e3];for(const _0x4c9a59 of _0x3573a6)if(_0x4c9a59[_0x5614('0xfb')]['is']('element','tableCell')){const _0x18dadf=this['_getVidAttributeName'](_0x4c9a59),_0x447795=_0x4c9a59['item'][_0x5614('0x12')](_0x18dadf);if(_0x4e4b29[_0x5614('0x24')](_0x447795)){const _0x4734d6=_0x4c9a59['item'][_0x5614('0xf8')][_0x5614('0xf8')][_0x5614('0x12')](_0x5614('0xe4')),_0x5c32cb=_0x20e140[_0x5614('0xae')](_0x4734d6)||new Set();_0x5c32cb[_0x5614('0xe6')](_0x4e4b29['get'](_0x447795)['userId']),_0x20e140[_0x5614('0x31')](_0x4734d6,_0x5c32cb);}}_0x3573a6=_0x351780[_0x5614('0x1a')][_0x4802e3];for(const _0x5ad174 of _0x3573a6)if(_0x5ad174[_0x5614('0xfb')]['is'](_0x5614('0x2f'),_0x5614('0x100'))){const _0x55b5e1=this[_0x5614('0xf7')](_0x5ad174),_0x5f0913=_0x5ad174[_0x5614('0xfb')][_0x5614('0x12')](_0x55b5e1);if(_0x3295e0['has'](_0x5f0913)){const _0x142fcf=_0x5ad174[_0x5614('0xfb')][_0x5614('0xf8')][_0x5614('0xf8')][_0x5614('0x12')](_0x5614('0xe4')),_0x158361=_0x20e140[_0x5614('0xae')](_0x142fcf)||new Set();_0x158361[_0x5614('0xe6')](_0x3295e0[_0x5614('0xae')](_0x5f0913)['userId']),_0x20e140['set'](_0x142fcf,_0x158361);}}for(const _0x2f982e of _0x20e140[_0x5614('0x45')]())(_0x4e4b29[_0x5614('0x24')](_0x2f982e)||_0x3295e0[_0x5614('0x24')](_0x2f982e))&&_0x20e140[_0x5614('0x5d')](_0x2f982e);}for(const _0x325876 of _0x55eb59){const _0x39d5b2=_0x351780[_0x5614('0xf9')][_0x325876];let _0x59e4c7=null,_0x50a6a3=null;for(const _0x5a229e of _0x39d5b2){const _0x369d17=this[_0x5614('0xf7')](_0x5a229e),_0x2d4e5f=_0x5a229e[_0x5614('0xfb')][_0x5614('0x12')](_0x369d17),_0x492bdb=_0x20e140[_0x5614('0xae')](_0x2d4e5f);_0x492bdb&&_0x5614('0xa9')==_0x5a229e[_0x5614('0x66')]&&(_0x59e4c7=Array[_0x5614('0xf')](_0x492bdb)[0x0],_0x50a6a3=_0x5a229e[_0x5614('0xfb')][_0x5614('0x12')](_0x5614('0xda'))),_0x59e4c7&&(_0x3295e0[_0x5614('0x31')](_0x2d4e5f,{'userId':_0x59e4c7}),_0x4e4b29[_0x5614('0x31')](_0x2d4e5f,{'userId':_0x59e4c7})),_0x2d4e5f==_0x50a6a3&&(_0x59e4c7=null,_0x50a6a3=null);}}const _0x31db21={},_0x455f30=new Set();for(const _0xed2e4a of _0x55eb59){const _0x5bf9b1=_0xfa435a[_0x5614('0x1a')][_0xed2e4a],_0x5692e8=_0xfa435a['insertions'][_0xed2e4a];for(const {userId:_0x4c4bfa}of this[_0x5614('0x8c')][_0x5614('0x3a')]())null!==_0x4c4bfa&&_0x455f30[_0x5614('0xe6')](_0x4c4bfa);for(const {userId:_0x480a8f}of this[_0x5614('0x84')][_0x5614('0x3a')]())null!==_0x480a8f&&_0x455f30[_0x5614('0xe6')](_0x480a8f);this['_markChanges'](_0x5692e8,_0x351780[_0x5614('0xf9')][_0xed2e4a],_0x4e4b29,'insertion',_0x455f30),this['_markChanges'](_0x5bf9b1,_0x351780['deletions'][_0xed2e4a],_0x3295e0,'deletion',_0x455f30),_0x31db21[_0xed2e4a]={'insertions':this['_prepareViewToSave'](_0x5692e8),'deletions':this[_0x5614('0x4b')](_0x5bf9b1),'attachChange':this[_0x5614('0x84')][_0x5614('0xae')](_0xed2e4a)||null,'attributesBefore':_0x27bc6f(this['_baseRootsAttributes'][_0x5614('0xae')](_0xed2e4a))||{},'attributesAfter':_0x27bc6f(this[_0x5614('0x6b')]['get'](_0xed2e4a))};}return{'diffData':_0x31db21,'authorsIds':Array[_0x5614('0xf')](_0x455f30)};}[_0x5614('0xc')](_0x17c340){for(const [,_0x592c03]of _0x17c340[_0x5614('0x85')]){const _0x6d4ae=_0x592c03[_0x5614('0xa5')][_0x5614('0xa2')]()[_0x5614('0x1d')](_0x5db629=>_0x5614('0x100')==_0x5db629[_0x5614('0x6a')]);for(const _0x39fd72 of _0x6d4ae)0x1==_0x39fd72[_0x5614('0xa3')]&&_0x39fd72[_0x5614('0xcc')](0x0)['is'](_0x5614('0x2f'),_0x5614('0x15'))&&_0x39fd72[_0x5614('0xcc')](0x0)[_0x5614('0x27')](_0x5614('0xd7'),!0x0);}}[_0x5614('0x4b')](_0x43d97f){this[_0x5614('0xc')](_0x43d97f);const _0x84a9c4=this[_0x5614('0x37')][_0x5614('0xdb')][_0x5614('0x8d')](_0x43d97f,{}),_0x2098c0=Array[_0x5614('0xf')](_0x84a9c4[_0x5614('0xaf')]())[_0x5614('0x42')](_0x3e3c9d=>this[_0x5614('0xad')](_0x3e3c9d));return JSON[_0x5614('0x6f')](_0x2098c0);}[_0x5614('0xad')](_0x80bef5){if(_0x80bef5['is'](_0x5614('0x101')))return _0x80bef5[_0x5614('0xdb')];{const _0x2890e2=_0x80bef5;return{'type':Object['keys'](B)['find'](_0x170a79=>_0x80bef5 instanceof B[_0x170a79]),'name':_0x2890e2['name'],'attributes':Array[_0x5614('0xf')](_0x2890e2[_0x5614('0x9b')]()),'children':Array['from'](_0x2890e2['getChildren']())[_0x5614('0x42')](_0xfb1df4=>this[_0x5614('0xad')](_0xfb1df4))};}}[_0x5614('0x23')](_0x321e29,_0x43099e,_0x3a2b2b,_0x34e641,_0x51b8a4){let _0x395082=null,_0xc0aa89=null,_0x19c557=0x0;const _0x100bb7=this[_0x5614('0x37')][_0x5614('0xb1')];for(let _0x103ab0=0x0;_0x103ab0<_0x43099e[_0x5614('0xeb')];_0x103ab0++){const _0x3ccd73=this[_0x5614('0xf7')](_0x43099e[_0x103ab0]),_0x23d5c4=_0x43099e[_0x103ab0]['item'][_0x5614('0x12')](_0x3ccd73),_0x3f0e7f=_0x3a2b2b['get'](_0x23d5c4),_0xf465de=_0x103ab0==_0x43099e['length']-0x1;(!_0x395082&&_0x3f0e7f&&(_0x395082=_0x3f0e7f,_0xc0aa89=_0x43099e[_0x103ab0]),_0x395082&&(!_0x3f0e7f||_0x3f0e7f[_0x5614('0x9f')]!=_0x395082[_0x5614('0x9f')]))&&(_0x3a2ab6(_0x3f0e7f,L(_0xc0aa89,_0x321e29,_0x100bb7),L(_0x43099e[_0x103ab0],_0x321e29,_0x100bb7)),_0x395082=_0x3f0e7f||null,_0xc0aa89=_0x3f0e7f?_0x43099e[_0x103ab0]:null),_0x395082&&_0xf465de&&_0x3a2ab6(_0x3f0e7f,L(_0xc0aa89,_0x321e29,_0x100bb7),W(_0x43099e[_0x103ab0],_0x321e29,_0x100bb7));}function _0x3a2ab6(_0x5212cd,_0xe3e83a,_0x433137){const _0x41b144=_0x395082['userId'],_0x264756='revision:'+_0x34e641+':'+_0x41b144+':'+_0x19c557++,_0x98358b=_0x100bb7[_0x5614('0x103')](_0xe3e83a,_0x433137);_0x321e29['markers'][_0x5614('0x31')](_0x264756,_0x98358b),null!==_0x41b144&&_0x51b8a4[_0x5614('0xe6')](_0x41b144);}}['_getVidAttributeName'](_0x54920f){switch(_0x54920f[_0x5614('0x66')]){case _0x5614('0xa9'):return _0x5614('0xe4');case _0x5614('0xd'):return'vid_end';default:return'vid';}}[_0x5614('0x88')](_0x2dc142,_0x12c5c8){_0x2dc142['baseVersion']=null;for(const _0xcdfd8f in _0x2dc142){const _0x1e81c4=_0x2dc142[_0xcdfd8f];if(_0x1e81c4 instanceof _0x22c86d){const _0x2ce64e=_0x12c5c8[_0x5614('0xae')](_0x1e81c4['root'][_0x5614('0xa6')]);_0x2dc142[_0xcdfd8f]=this['_fixPosition'](_0x1e81c4,_0x2ce64e);}if(_0x1e81c4 instanceof _0x464fb5){const _0x59ac4a=_0x12c5c8['get'](_0x1e81c4[_0x5614('0x3d')]['rootName']);_0x2dc142[_0xcdfd8f]=this[_0x5614('0x4')](_0x1e81c4,_0x59ac4a);}_0x5614('0x3d')===_0xcdfd8f&&(_0x2dc142[_0x5614('0x3d')]=_0x12c5c8[_0x5614('0xae')](_0x2dc142[_0x5614('0x3d')][_0x5614('0xa6')]));}}[_0x5614('0x4')](_0x30f6bf,_0x191e69){return this[_0x5614('0x37')]['model'][_0x5614('0x103')](this[_0x5614('0x2a')](_0x30f6bf[_0x5614('0xa5')],_0x191e69),this[_0x5614('0x2a')](_0x30f6bf['end'],_0x191e69));}[_0x5614('0x2a')](_0x2ea7ef,_0x4d7f5c){return this[_0x5614('0x37')][_0x5614('0xb1')][_0x5614('0x60')](_0x4d7f5c,_0x2ea7ef[_0x5614('0xc0')],_0x2ea7ef[_0x5614('0x7c')]);}[_0x5614('0xb3')](_0x35a14c){const _0x46100b=this['_idsRoots'][_0x5614('0xae')](_0x35a14c[_0x5614('0x40')][_0x5614('0x3d')]['rootName']),_0x2a72bf=this['_fixPosition'](_0x35a14c[_0x5614('0x40')],_0x46100b),_0x290c90=null===_0x35a14c['_authorId']?null:_0x35a14c['_authorId']||this[_0x5614('0x37')]['plugins'][_0x5614('0xae')](_0x5614('0xe'))['me']['id'],_0xdcccd7=_0x2a72bf[_0x5614('0xf8')],_0x4146be=this[_0x5614('0x29')],_0x5ba7ec=[];for(const _0x33aaa3 of _0x35a14c[_0x5614('0xe8')])if(_0x33aaa3['is'](_0x5614('0x2f')))_0x5ba7ec['push'](this['_makeIdsRoot'](_0x33aaa3));else for(let _0x228224=0x0;_0x228224<_0x33aaa3[_0x5614('0x64')];_0x228224++)_0x5ba7ec[_0x5614('0x54')](new _0x489144(_0x5614('0x101'),{'vid':this[_0x5614('0x29')]++}));const _0x985d32=this[_0x5614('0x29')];for(let _0x4c12d5=_0x4146be;_0x4c12d5<_0x985d32;_0x4c12d5++)this[_0x5614('0x1e')][_0x5614('0x31')](_0x4c12d5,{'userId':_0x290c90});_0xdcccd7[_0x5614('0x7d')](_0x2a72bf['offset'],_0x5ba7ec);}[_0x5614('0x33')](_0x491601){(_0x491601=this[_0x5614('0xd0')](_0x491601,this[_0x5614('0x82')]))[_0x5614('0xc6')]();const _0x1d5568=null===_0x491601[_0x5614('0x10')]?null:_0x491601[_0x5614('0x10')]||this[_0x5614('0x37')][_0x5614('0x102')][_0x5614('0xae')](_0x5614('0xe'))['me']['id'],_0x402801=_0x491601[_0x5614('0xfa')](),_0x1d2bee=_0x402801['parent'],_0x378ead=_0x402801[_0x5614('0xfe')];!function _0x449d0f(_0x2823f8,_0x4c5438,_0x434d0f,_0x464544){for(let _0x3a030d=_0x434d0f;_0x3a030d<_0x464544;_0x3a030d++){const _0x308177=_0x4c5438[_0x5614('0xcc')](_0x3a030d);_0x308177['is']('element',_0x5614('0x101'))?_0x2823f8[_0x5614('0x31')](_0x308177[_0x5614('0x12')](_0x5614('0x19')),{'userId':_0x1d5568}):(_0x2823f8[_0x5614('0x31')](_0x308177[_0x5614('0x12')](_0x5614('0xe4')),{'userId':_0x1d5568}),_0x449d0f(_0x2823f8,_0x308177,0x0,_0x308177[_0x5614('0xa3')]),_0x2823f8[_0x5614('0x31')](_0x308177[_0x5614('0x12')]('vid_end'),{'userId':_0x1d5568}));}}(this['_touched'],_0x1d2bee,_0x378ead,_0x378ead+_0x491601[_0x5614('0x8b')]);}[_0x5614('0xed')](_0x5485d2){const _0x382cb0=null===(_0x5485d2=this[_0x5614('0xd0')](_0x5485d2,this[_0x5614('0x82')]))['_authorId']?null:_0x5485d2[_0x5614('0x10')]||this['editor'][_0x5614('0x102')][_0x5614('0xae')](_0x5614('0xe'))['me']['id'],_0x4320df=_0x5485d2[_0x5614('0x49')]['parent'],_0x58d87f=_0x5485d2[_0x5614('0x1c')][_0x5614('0xf8')],_0x3d76da=_0x4320df['getAttribute'](_0x5614('0xda')),_0x4fc86c=_0x58d87f[_0x5614('0x12')](_0x5614('0xe4'));_0x4320df[_0x5614('0x27')](_0x5614('0xda'),_0x58d87f[_0x5614('0x12')](_0x5614('0xda'))),_0x58d87f[_0x5614('0x27')](_0x5614('0xda'),_0x3d76da),this['_touched'][_0x5614('0x31')](_0x4fc86c,{'userId':_0x382cb0}),this[_0x5614('0x1e')]['set'](_0x3d76da,{'userId':_0x382cb0}),_0x5485d2['_execute']();}[_0x5614('0x8f')](_0xc24bd5){const _0x2ba470=null===(_0xc24bd5=this[_0x5614('0xd0')](_0xc24bd5,this['_idsRoots']))[_0x5614('0x10')]?null:_0xc24bd5['_authorId']||this[_0x5614('0x37')][_0x5614('0x102')]['get'](_0x5614('0xe'))['me']['id'],_0x29fd0f=_0xc24bd5['graveyardPosition'],_0x1d9ebd=_0xc24bd5['splitPosition']['parent'];_0xc24bd5['_execute']();const _0x5803b9=_0x1d9ebd[_0x5614('0x12')](_0x5614('0xda')),_0x3889c2=_0xc24bd5[_0x5614('0xcf')][_0x5614('0xac')];if(_0x29fd0f){const _0x46e660=_0x3889c2[_0x5614('0x12')](_0x5614('0xda')),_0x31398b=_0x1d9ebd[_0x5614('0x12')]('vid_end');_0x1d9ebd[_0x5614('0x27')](_0x5614('0xda'),_0x46e660),_0x3889c2[_0x5614('0x27')]('vid_end',_0x31398b),this[_0x5614('0x1e')][_0x5614('0x31')](_0x1d9ebd[_0x5614('0x12')]('vid_end'),{'userId':_0x2ba470}),this[_0x5614('0x1e')][_0x5614('0x31')](_0x3889c2[_0x5614('0x12')]('vid_start'),{'userId':_0x2ba470});}else{const _0x12205f=this[_0x5614('0x29')]++,_0x3c8e1a=this['_revisionId']++;_0x1d9ebd[_0x5614('0x27')](_0x5614('0xda'),_0x12205f),_0x3889c2[_0x5614('0x27')](_0x5614('0xe4'),_0x3c8e1a),_0x3889c2[_0x5614('0x27')](_0x5614('0xda'),_0x5803b9),this['_touched'][_0x5614('0x31')](_0x12205f,{'userId':_0x2ba470}),this['_touched'][_0x5614('0x31')](_0x3c8e1a,{'userId':_0x2ba470});}}[_0x5614('0xa7')](_0x4c27db){if(!_0x4c27db['affectsData'])return;const _0xe9d467=(_0x4c27db=this[_0x5614('0xd0')](_0x4c27db,this[_0x5614('0xee')]))[_0x5614('0xef')]?_0x4c27db['oldRange'][_0x5614('0x3d')]:null,_0x382573=_0x4c27db[_0x5614('0xd4')]?_0x4c27db['newRange']['root']:null;_0xe9d467&&this[_0x5614('0x39')][_0x5614('0x5d')](_0x4c27db[_0x5614('0x6a')]),_0x382573&&this['_markers'][_0x5614('0x31')](_0x4c27db[_0x5614('0x6a')],_0x4c27db[_0x5614('0xd4')][_0x5614('0x87')]());const _0x1ecb5b=null===_0x4c27db[_0x5614('0x10')]?null:_0x4c27db[_0x5614('0x10')]||this[_0x5614('0x37')][_0x5614('0x102')][_0x5614('0xae')](_0x5614('0xe'))['me']['id'],_0x465cbf=_0x4c27db[_0x5614('0x6a')];if(!this[_0x5614('0x8c')][_0x5614('0x24')](_0x465cbf))return void this[_0x5614('0x8c')][_0x5614('0x31')](_0x465cbf,{'range':_0x4c27db['oldRange'],'userId':_0x1ecb5b});const _0x20abb3=this[_0x5614('0x8c')][_0x5614('0xae')](_0x465cbf),_0x349b29=_0x20abb3[_0x5614('0xe9')],_0x22ecc2=_0x4c27db[_0x5614('0xd4')];null==_0x349b29&&null==_0x22ecc2||_0x349b29&&_0x22ecc2&&_0x349b29[_0x5614('0x50')](_0x22ecc2)?this[_0x5614('0x8c')][_0x5614('0x5d')](_0x4c27db['name']):_0x20abb3[_0x5614('0x9f')]=_0x1ecb5b;}[_0x5614('0xdd')](_0x4d3501,_0x365b17){this['_diffRoots'][_0x5614('0x24')](_0x4d3501[_0x5614('0xa6')])?this[_0x5614('0xee')][_0x5614('0xae')](_0x4d3501[_0x5614('0xa6')])[_0x5614('0x26')]=_0x4d3501[_0x5614('0xb5')]:(this[_0x5614('0xee')][_0x5614('0x31')](_0x4d3501[_0x5614('0xa6')],G(_0x4d3501['rootName'],!0x0)),this[_0x5614('0x6b')]['set'](_0x4d3501[_0x5614('0xa6')],{}),_0x365b17&&this[_0x5614('0x82')][_0x5614('0x31')](_0x4d3501[_0x5614('0xa6')],G(_0x4d3501['rootName'],!0x0)));const _0x1f9a18=null===_0x4d3501[_0x5614('0x10')]?null:_0x4d3501[_0x5614('0x10')]||this[_0x5614('0x37')]['plugins'][_0x5614('0xae')](_0x5614('0xe'))['me']['id'],_0x55d1da=this[_0x5614('0x84')]['get'](_0x4d3501[_0x5614('0xa6')]);_0x55d1da&&_0x55d1da[_0x5614('0x9f')]===_0x1f9a18?this['_touchedRoots'][_0x5614('0x5d')](_0x4d3501['rootName']):this[_0x5614('0x84')][_0x5614('0x31')](_0x4d3501[_0x5614('0xa6')],{'userId':_0x1f9a18,'isAttached':_0x4d3501[_0x5614('0xb5')]});}[_0x5614('0xcd')](_0x18a28d){const _0x5b0f3e=this[_0x5614('0x6b')][_0x5614('0xae')](_0x18a28d[_0x5614('0x3d')][_0x5614('0xa6')]);null===_0x18a28d[_0x5614('0x63')]?delete _0x5b0f3e[_0x18a28d[_0x5614('0x70')]]:_0x5b0f3e[_0x18a28d['key']]=_0x18a28d[_0x5614('0x63')];}}function q(_0xe3ba32){const _0x5d9677=G(_0xe3ba32['rootName'],_0xe3ba32[_0x5614('0x83')]());for(const _0x32603d of _0xe3ba32['getChildren']()){const _0x4e5eb9=_0x32603d[_0x5614('0xfc')](!0x0);_0x5d9677[_0x5614('0x7a')](_0x4e5eb9);}return _0x5d9677;}function G(_0x95d5ef,_0x505171=!0x0){const _0x452bad=new _0x2e187b();return _0x452bad[_0x5614('0xa6')]=_0x95d5ef,_0x452bad[_0x5614('0x26')]=_0x505171,_0x452bad[_0x5614('0x83')]=()=>_0x452bad['_isAttached'],_0x452bad;}function L(_0x285e0c,_0x389f37,_0x2d416b){const _0x3ee10e=_0x5614('0xd')==_0x285e0c[_0x5614('0x66')]?_0x2d416b[_0x5614('0xb8')](_0x285e0c[_0x5614('0xfb')],_0x5614('0x55')):_0x2d416b[_0x5614('0xd1')](_0x285e0c[_0x5614('0xfb')]);return _0x2d416b[_0x5614('0x60')](_0x389f37,_0x3ee10e[_0x5614('0xc0')],_0x3ee10e[_0x5614('0x7c')]);}function W(_0x15a212,_0x40c5e4,_0x463094){const _0x495a78='elementStart'==_0x15a212[_0x5614('0x66')]?_0x463094[_0x5614('0xb8')](_0x15a212[_0x5614('0xfb')],0x0):_0x463094['createPositionAfter'](_0x15a212['item']);return _0x463094[_0x5614('0x60')](_0x40c5e4,_0x495a78[_0x5614('0xc0')],_0x495a78[_0x5614('0x7c')]);}
@@ -1,21 +1,21 @@
1
- import '../theme/revisionviewer.css';
2
- /**
3
- function printTape( tape ) {
4
- const elements = tape.map(
5
- item => item.item.data ? item.item.data : item.type == 'elementStart' ? '<' + item.item.name + '>' : '</' + item.item.name + '>'
6
- ).join( '' );
7
-
8
- const signs = tape.map( v => {
9
- const item = v.item;
10
- const sign = ( v.isAdded || v.isAddSuggestion ) ? v.isRemoved ? '=' : '+' : v.isRemoved ? '-' : ' ';
11
- const len = item.data ? item.data.length : v.type == 'elementStart' ? item.name.length + 2 : item.name.length + 3;
12
-
13
- return sign.repeat( len );
14
- } ).join( '' );
15
-
16
- console.log( elements );
17
- console.log( signs );
18
- }
19
-
20
- window.printTape = printTape;
21
- /**/
1
+ import '../theme/revisionviewer.css';
2
+ /**
3
+ function printTape( tape ) {
4
+ const elements = tape.map(
5
+ item => item.item.data ? item.item.data : item.type == 'elementStart' ? '<' + item.item.name + '>' : '</' + item.item.name + '>'
6
+ ).join( '' );
7
+
8
+ const signs = tape.map( v => {
9
+ const item = v.item;
10
+ const sign = ( v.isAdded || v.isAddSuggestion ) ? v.isRemoved ? '=' : '+' : v.isRemoved ? '-' : ' ';
11
+ const len = item.data ? item.data.length : v.type == 'elementStart' ? item.name.length + 2 : item.name.length + 3;
12
+
13
+ return sign.repeat( len );
14
+ } ).join( '' );
15
+
16
+ console.log( elements );
17
+ console.log( signs );
18
+ }
19
+
20
+ window.printTape = printTape;
21
+ /**/