@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231012.0 → 0.0.0-nightly-20231013.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1031=['element','version','howMany','splitPosition','insertions','attributesAfter','isEnabled','_saveMetaData','parse','end','authors','_lastFrom','_fixRange','getRevisionRootsAttributes','createPositionAt','document','fromVersion','_savedMetaData','roots','_startingVersion','for','_baseIdsRoots','size','getLatestVersion','attributes','filter','some','graveyardPosition','push','dataToMarker','_makeIdsRoot','getRevisionDocumentData','update','offsetSize','_loadState','_baseRootsAttributes','_handleRootAttributeOperation','createPositionFromPath','insert','string','_handleSplitOperation','_loadRevisionData','_calculateMetaData','toData','model','getCurrentRevisionId','_loadedStateData','type','_getViewJson','toView','_startingRevisionId','stickiness','_markChanges','markers','nodes','_continueCurrentRevision','finally','children','_revisionId','locale','trim','getAncestors','_replaceEditorDataWithRevisionData','hasContent','tableCell','_removeRevisionMarkers','changeRootAttribute','RevisionsRepository','diffData','attributesBefore','_setAttribute','editor','dataDowncast','elementStart','_getState','upcast','keys','root','startsWith','_addPendingAction','vid_start','adapter','createRevision','getAttributes','reinsert','loadState','buildRevisionData','includes','text','_handleMergeOperation','getData','_isAttached','revisionHistory.resumeUnsavedRevision','$text','_createCurrentRevision','marker','NEGATIVE_INFINITY','isAttached','conversion','_removePendingAction','_baseRoots','remove','shift','isAdd','createRange','processor','position','paragraph','getWalker','Users','vid_end','creatorId','saveRevision','has','default','_touched','setRevisionData','isReady','sourcePosition','removeRootAttribute','setSource','deletion','_getFromVersion','clear','view','creator','getOperation','fromEntries','key','addRevision','newValue','deletions','revision','init','updateRevisions','_copyMarkers','affectsData','map','_getBaseVids','insertion','RevisionTracker','_source','documentFragment','_getVidAttributeName','getChildren','set','rootsAttributes','_makeModelFromViewString','_handleMoveOperation','slice','_bufferUpdate','previousPosition','createPositionBefore','item','define','find','editor-initial-data-replaced-with-revision-data','editing','getIndex','_idsRoots','_initialRevisionId','getRange','_setConversion','revision:','_makeRevision','_fixPosition','createPositionAfter','start','_operations','getChild','revision-start','initial','addRevisionData','sendBufferedUpdates','_createFromRanges','_execute','length','rootName','get','Initial\x20revision','_handleOperation','_appendChild','_transformMarkers','_applyOperations','resolve','_handleRootOperation','_generateTape','_isPendingUpdate','marked','from','initialData','_markers','targetPosition','elementEnd','getAttribute','offset','source','path','_pendingAction','_diffRootsAttributes','_lastTo','toModel','attachChange','isEqual','parent','_authorId','_insertChild','getTime','data-revision-','ready','_cloneOperation','_bufferedUpdates','addRoot','_update','requires','newRange','_touchedRoots','values','userId','name','createRangeIn','history','plugins','sort','_findInsertionIndex','getRevision','collaboration.channelId','$graveyard','max','_diffRoots','_createInitialRevision','data','then','createdAt','toVersion','_reset','insertionPosition','_isInit','repository','_prepareViewToSave','getUser','add','clone','_removeMetaData','getMovedRangeStart','currentRevision','_getPreviousFrom','config','bind','addRootAttribute','vid','delete','reverse','authorsIds','_handleMarkerOperation','_revisionDataBuilder','getRevisions','childCount','_processRootBeforeSave','oldRange','_fixOperation','split','_handleInsertOperation','getNodeByPath','getRoot','getRootNames','_touchedMarkers','baseVersion'];(function(_0x5a79e8,_0x1031f5){const _0x3621f7=function(_0x6349b7){while(--_0x6349b7){_0x5a79e8['push'](_0x5a79e8['shift']());}};_0x3621f7(++_0x1031f5);}(_0x1031,0x1e0));const _0x3621=function(_0x5a79e8,_0x1031f5){_0x5a79e8=_0x5a79e8-0x0;let _0x3621f7=_0x1031[_0x5a79e8];return _0x3621f7;};import{Users as _0x18fdce}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xf57d94,PendingActions as _0x412d00}from'ckeditor5/src/core';import{logWarning as _0x14fa60,uid as _0x1c82a9}from'ckeditor5/src/utils';import{Position as _0x5aeafc,Range as _0x595ac7,Element as _0x1399ee,DocumentFragment as _0x9ffd96,ViewText as _0x3dcfd1,ViewElement as _0x1af4df,ViewContainerElement as _0x4f5a8e,ViewAttributeElement as _0x133df2,ViewEmptyElement as _0x30523d,ViewRawElement as _0x3c4742,ViewUIElement as _0x1a545e,ViewDocumentFragment as _0x64028c}from'ckeditor5/src/engine';import _0x3d9396 from'./revisionsrepository';import{getTranslation as _0x52e1d6}from'./utils/common-translations';import{cloneDeep as _0x4e16ff,isEqual as _0x3fb5d9}from'lodash-es';const B={'c':_0x4f5a8e,'a':_0x133df2,'e':_0x30523d,'r':_0x3c4742,'u':_0x1a545e};export default class l extends _0xf57d94{static get['pluginName'](){return _0x3621('0xc4');}static get[_0x3621('0x2')](){return[_0x18fdce,_0x3d9396,_0x412d00];}constructor(_0x5efdc4){super(_0x5efdc4),this[_0x3621('0x89')]=null,this[_0x3621('0x21')]=null,this[_0x3621('0x2b')]=new H(this['editor']),this[_0x3621('0xd8')]=this[_0x3621('0x7f')][_0x3621('0x23')]['get'](_0x3621('0xe'))||_0x3621('0xe3'),this['_bufferedUpdates']=new Map(),this[_0x3621('0x66')]=null;const _0x2de110=_0x1c82a9();this[_0x3621('0xc5')]={'history':this[_0x3621('0x7f')]['model'][_0x3621('0x47')][_0x3621('0x9')],'getLatestVersion':()=>Promise[_0x3621('0xf0')](this[_0x3621('0x7f')][_0x3621('0x64')][_0x3621('0x47')][_0x3621('0x39')]),'getCurrentRevisionId':()=>_0x2de110},this['set'](_0x3621('0xad'),!0x1),this['set'](_0x3621('0x3e'),!0x0),this[_0x3621('0xc9')](_0x3621('0xf3'),!0x1),this[_0x3621('0x7f')][_0x3621('0x23')][_0x3621('0xd2')](_0x3621('0x94'),!0x0),this['editor']['conversion'][_0x3621('0x4c')](_0x3621('0x83'))[_0x3621('0x55')]({'view':_0x3621('0xbc')});}[_0x3621('0xbd')](){this['repository']=this[_0x3621('0x7f')][_0x3621('0xa')][_0x3621('0xea')](_0x3621('0x7b')),this[_0x3621('0xda')](),this[_0x3621('0x7f')][_0x3621('0x13')]['on'](_0x3621('0x109'),()=>{const _0x140fe8=this[_0x3621('0x1a')][_0x3621('0xd')](0x0),_0x702a3a=_0x140fe8&&null===_0x140fe8['creator']?_0x140fe8:null;if(this['_continueCurrentRevision']=!!_0x702a3a&&this[_0x3621('0x7f')][_0x3621('0x23')][_0x3621('0xea')](_0x3621('0x94')),this[_0x3621('0x7f')][_0x3621('0xa')][_0x3621('0xa9')]('RealTimeCollaborationClient')){const _0x4ce5f3=this[_0x3621('0xc5')][_0x3621('0x65')](),_0x1e88d0=this[_0x3621('0x1a')]['getRevision'](_0x4ce5f3);if(_0x1e88d0)this[_0x3621('0x4b')]=_0x1e88d0['fromVersion'],this[_0x3621('0x6f')]=!0x1;else{const _0x13f283=this[_0x3621('0xc5')]['history'][_0x3621('0xe0')][_0x3621('0xd3')](_0x202058=>!_0x202058[_0x3621('0x19')]),_0x4cc363=_0x13f283?_0x13f283['baseVersion']:this[_0x3621('0xc5')][_0x3621('0x9')]['version'];_0x140fe8?(_0x140fe8[_0x3621('0x16')]<_0x4cc363&&_0x140fe8[_0x3621('0x1')]({'toVersion':_0x4cc363}),this[_0x3621('0x6f')]?(this[_0x3621('0xc5')][_0x3621('0x65')]=()=>_0x702a3a['id'],this['_startingVersion']=_0x702a3a[_0x3621('0x48')]):(this[_0x3621('0x4b')]=_0x140fe8[_0x3621('0x16')],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4cc363,this[_0x3621('0x6f')]=!0x1);}}else _0x702a3a&&(this[_0x3621('0x7f')][_0x3621('0x64')][_0x3621('0x47')][_0x3621('0x9')][_0x3621('0x39')]=Math[_0x3621('0x10')](_0x702a3a[_0x3621('0x16')],this[_0x3621('0x7f')][_0x3621('0x64')][_0x3621('0x47')]['history'][_0x3621('0x39')]),_0x702a3a['fromVersion']===_0x702a3a[_0x3621('0x16')]?(0x0!==_0x702a3a[_0x3621('0x48')]&&(this[_0x3621('0xc5')]['getCurrentRevisionId']=()=>_0x702a3a['id']),this[_0x3621('0x6f')]=!0x1):this[_0x3621('0x6f')]&&(this['_source'][_0x3621('0x65')]=()=>_0x702a3a['id'],this[_0x3621('0x4b')]=_0x702a3a[_0x3621('0x48')])),this[_0x3621('0x6f')]||(this[_0x3621('0x4b')]=this[_0x3621('0x7f')][_0x3621('0x64')][_0x3621('0x47')][_0x3621('0x39')]);this[_0x3621('0x2b')][_0x3621('0xbd')](this[_0x3621('0xc5')]['history']),this['_createInitialRevision'](this[_0x3621('0x4b')]),this[_0x3621('0x96')](this[_0x3621('0x4b')]),this[_0x3621('0x89')]&&this[_0x3621('0xe5')]();}),this[_0x3621('0x24')](_0x3621('0xad'))['to'](this,_0x3621('0xf3'),_0x345840=>!_0x345840);}async['afterInit'](){if(this['repository'][_0x3621('0xe8')]>0x0){const _0x1937d1=this[_0x3621('0x1a')][_0x3621('0xd')](0x0),_0x3ad500=await this['getRevisionDocumentData'](_0x1937d1),_0x3ad3ce=await this[_0x3621('0x45')](_0x1937d1);this[_0x3621('0x76')](_0x3ad500,_0x3ad3ce);}}[_0x3621('0xb0')](_0x147edf){this[_0x3621('0xc5')]=_0x147edf;}async[_0x3621('0x58')](){const _0x347bf2=await this[_0x3621('0xc5')][_0x3621('0x4f')]();if(_0x347bf2>this[_0x3621('0x21')][_0x3621('0x16')]){await this[_0x3621('0x5a')]();const _0x17b263=this[_0x3621('0x8e')]({'revision':this[_0x3621('0x21')],'to':_0x347bf2});_0x17b263[_0x3621('0x42')]=_0x17b263[_0x3621('0x29')][_0x3621('0xc1')](_0x376727=>this[_0x3621('0x7f')][_0x3621('0xa')][_0x3621('0xea')](_0x3621('0xa5'))[_0x3621('0x1c')](_0x376727)),this['currentRevision'][_0x3621('0x1')](_0x17b263);}}async['_loadState'](){this[_0x3621('0x6f')]&&!this[_0x3621('0x66')]&&(await this[_0x3621('0x61')](this[_0x3621('0x21')]),this[_0x3621('0x2b')]['loadState'](this['currentRevision']),this[_0x3621('0x66')]={'fromVersion':this[_0x3621('0x21')][_0x3621('0x48')],'authors':this[_0x3621('0x21')][_0x3621('0x42')][_0x3621('0xcd')]()});}async[_0x3621('0xa8')](_0x409f60={},_0x5e4d3e=null){const _0x5887cd=[];await this[_0x3621('0x5a')](),this[_0x3621('0x6f')]=!0x1,_0x5e4d3e>this['currentRevision'][_0x3621('0x16')]&&(_0x5e4d3e=null),null===_0x5e4d3e&&(_0x5e4d3e=await this['_source']['getLatestVersion']());const _0x53fcfe=this[_0x3621('0xb2')](_0x5e4d3e),_0x54e88e=this['buildRevisionData']({'from':_0x53fcfe,'to':_0x5e4d3e});if(this[_0x3621('0x21')][_0x3621('0x16')]<_0x5e4d3e){const _0x322a82=this[_0x3621('0x8e')]({'revision':this[_0x3621('0x21')],'from':_0x5e4d3e,'to':_0x5e4d3e});_0x322a82[_0x3621('0x42')]=[],_0x322a82[_0x3621('0x29')]=[],_0x322a82['id']=this[_0x3621('0x21')]['id'],this[_0x3621('0x21')]['_update'](_0x322a82,!0x0),delete _0x322a82['authors'],_0x5887cd[_0x3621('0x54')](_0x322a82);}_0x409f60[_0x3621('0xa7')]=this[_0x3621('0x7f')]['plugins'][_0x3621('0xea')](_0x3621('0xa5'))['me']['id'],_0x409f60[_0x3621('0x7')]=_0x409f60[_0x3621('0x7')]||null,_0x409f60['id']=_0x409f60['id']||_0x1c82a9(),_0x409f60={..._0x409f60,..._0x54e88e};const _0x45b164=this[_0x3621('0xe4')](_0x409f60);_0x5887cd[_0x3621('0x54')](_0x409f60);const _0x521587=this[_0x3621('0x1a')][_0x3621('0xd6')](_0x45b164);if(0x0!==_0x521587){const _0x14c16e=this[_0x3621('0x1a')][_0x3621('0xd')](_0x521587-0x1);if(_0x14c16e[_0x3621('0x48')]!==_0x5e4d3e){const _0x599826=this['_revisionDataBuilder'][_0x3621('0x92')](_0x5e4d3e,_0x14c16e[_0x3621('0x16')]),_0x435459={'id':_0x14c16e['id'],'diffData':_0x599826[_0x3621('0x7c')],'authorsIds':_0x599826[_0x3621('0x29')],'authors':_0x599826[_0x3621('0x29')]['map'](_0x2232f5=>this[_0x3621('0x7f')][_0x3621('0xa')][_0x3621('0xea')](_0x3621('0xa5'))['getUser'](_0x2232f5)),'fromVersion':_0x5e4d3e};_0x14c16e===this[_0x3621('0x21')]&&(_0x435459[_0x3621('0x15')]=new Date(_0x409f60[_0x3621('0x15')][_0x3621('0x107')]()+0xa)),_0x14c16e[_0x3621('0x1')](_0x435459,!0x0),delete _0x435459[_0x3621('0x42')],_0x5887cd[_0x3621('0x54')](_0x435459);}}if(this[_0x3621('0x89')]){for(const _0x154cd7 of _0x5887cd)this['_bufferUpdate'](_0x154cd7['id'],_0x154cd7,!0x0);this[_0x3621('0xe5')]();}return _0x45b164;}['addRevisionData'](_0x6a4c96){const _0x1eb1ce=this[_0x3621('0x1a')][_0x3621('0x8a')](_0x6a4c96);return this[_0x3621('0x89')]&&_0x1eb1ce['on']('_update',(_0x2aec44,_0xaac0f2,_0x44c3fd)=>{_0x44c3fd||(this[_0x3621('0xce')](_0xaac0f2['id'],_0xaac0f2,!0x0),this[_0x3621('0xe5')]());}),this[_0x3621('0x1a')][_0x3621('0xb9')](_0x1eb1ce,this[_0x3621('0xc')](_0x1eb1ce)),_0x1eb1ce;}async[_0x3621('0x57')](_0x2dd4d6){await this[_0x3621('0x61')](_0x2dd4d6);const _0x31b72d={};for(const _0x4902f4 in _0x2dd4d6[_0x3621('0x7c')]){if(_0x2dd4d6[_0x3621('0x7c')][_0x4902f4][_0x3621('0x102')]&&!_0x2dd4d6[_0x3621('0x7c')][_0x4902f4][_0x3621('0x102')][_0x3621('0x99')])continue;const _0x40ba49=this[_0x3621('0x79')](JSON[_0x3621('0x40')](_0x2dd4d6[_0x3621('0x7c')][_0x4902f4][_0x3621('0x3c')])),_0x4d5d47=this['editor'][_0x3621('0xd5')][_0x3621('0xb4')][_0x3621('0x47')],_0x549a9e=new _0x64028c(_0x4d5d47,_0x40ba49[_0x3621('0xc1')](_0x4ee8a9=>J(_0x4ee8a9,this[_0x3621('0x7f')])));this[_0x3621('0x7f')][_0x3621('0x13')][_0x3621('0xa1')]['useFillerType'](_0x3621('0xf4')),_0x31b72d[_0x4902f4]=this[_0x3621('0x7f')][_0x3621('0x13')]['processor'][_0x3621('0x63')](_0x549a9e),this[_0x3621('0x7f')][_0x3621('0x13')][_0x3621('0xa1')]['useFillerType'](_0x3621('0xaa'));}return _0x31b72d;}async['getRevisionRootsAttributes'](_0x3943f8){await this[_0x3621('0x61')](_0x3943f8);const _0x45b524={};for(const _0x5badac in _0x3943f8[_0x3621('0x7c')])_0x3943f8[_0x3621('0x7c')][_0x5badac]['attachChange']&&!_0x3943f8[_0x3621('0x7c')][_0x5badac][_0x3621('0x102')][_0x3621('0x99')]||(_0x45b524[_0x5badac]=_0x3943f8[_0x3621('0x7c')][_0x5badac][_0x3621('0x3d')]||{});return _0x45b524;}[_0x3621('0xe5')](){if(0x0===this[_0x3621('0x10b')][_0x3621('0x4e')])return;if(this[_0x3621('0xf3')])return;let _0x4b2775=Array['from'](this[_0x3621('0x10b')]['values']());this[_0x3621('0x10b')]['clear']();for(let _0xde1582=0x0;_0xde1582<_0x4b2775[_0x3621('0xe8')];_0xde1582++){const _0x162f35=_0x4b2775[_0xde1582];let _0x396022=!0x1;for(const _0x3a8c69 of Object[_0x3621('0x84')](_0x162f35))void 0x0===_0x162f35[_0x3a8c69]?delete _0x162f35[_0x3a8c69]:'id'!==_0x3a8c69&&(_0x396022=!0x0);_0x396022||(_0x4b2775[_0xde1582]=null);}if(_0x4b2775=_0x4b2775[_0x3621('0x51')](_0x26a9ee=>null!==_0x26a9ee),!_0x4b2775['length'])return;for(let _0x237a54=0x0;_0x237a54<_0x4b2775[_0x3621('0xe8')];_0x237a54++){const _0x1d2d48=_0x4b2775[_0x237a54];void 0x0!==_0x1d2d48[_0x3621('0x48')]&&void 0x0===_0x1d2d48[_0x3621('0x16')]&&(_0x1d2d48[_0x3621('0x16')]=this['repository'][_0x3621('0xd')](_0x1d2d48['id'])[_0x3621('0x16')]),void 0x0!==_0x1d2d48[_0x3621('0x16')]&&void 0x0===_0x1d2d48[_0x3621('0x48')]&&(_0x1d2d48['fromVersion']=this[_0x3621('0x1a')]['getRevision'](_0x1d2d48['id'])[_0x3621('0x48')]);}const _0x5c279b=this[_0x3621('0x7f')][_0x3621('0x23')][_0x3621('0xea')](_0x3621('0xe'));this[_0x3621('0xf3')]=!0x0,this[_0x3621('0x87')](),this[_0x3621('0x89')][_0x3621('0xbe')](_0x4b2775,_0x5c279b)[_0x3621('0x70')](()=>{this[_0x3621('0xf3')]=!0x1;})[_0x3621('0x14')](_0x1b94a5=>{if(_0x1b94a5)for(const _0x1a8a8a of _0x1b94a5)this[_0x3621('0xac')]({'id':_0x1a8a8a['id'],'createdAt':_0x1a8a8a['createdAt']});this[_0x3621('0x9b')](),this[_0x3621('0xe5')]();});}[_0x3621('0x76')](_0x187de8,_0x5626e2){let _0x4d825e=this['editor'][_0x3621('0x23')][_0x3621('0xea')](_0x3621('0xf6')),_0x59f028=this[_0x3621('0x7f')]['config'][_0x3621('0xea')](_0x3621('0xca'));if(void 0x0===_0x4d825e){_0x4d825e={};for(const _0x518bda of this[_0x3621('0x7f')][_0x3621('0x64')][_0x3621('0x47')][_0x3621('0x35')]())_0x4d825e[_0x518bda]='';}if(_0x3621('0x5f')==typeof _0x4d825e&&(_0x4d825e={'main':_0x4d825e}),void 0x0===_0x59f028){_0x59f028={};for(const _0x3bdf14 of this[_0x3621('0x7f')]['model']['document'][_0x3621('0x35')]())_0x59f028[_0x3bdf14]={};}let _0x5c660b=!0x1;const _0x3089bc=Object[_0x3621('0x84')](_0x4d825e),_0x4dec4c=Object[_0x3621('0x84')](_0x187de8);for(const _0x12eb65 of _0x3089bc){if(_0x4d825e[_0x12eb65]!==_0x187de8[_0x12eb65]&&''!==_0x4d825e[_0x12eb65][_0x3621('0x74')]()){_0x5c660b=!0x0;break;}if(!_0x3fb5d9(_0x59f028[_0x12eb65],_0x5626e2[_0x12eb65])&&Object[_0x3621('0x84')](_0x59f028[_0x12eb65])[_0x3621('0xe8')]>0x0){_0x5c660b=!0x0;break;}}_0x5c660b||(_0x5c660b=_0x4dec4c[_0x3621('0x52')](_0x2ec8f5=>!this[_0x3621('0x7f')][_0x3621('0x64')][_0x3621('0x47')]['getRoot'](_0x2ec8f5))),_0x5c660b&&_0x14fa60(_0x3621('0xd4'),{'editorData':_0x4d825e,'editorRootsAttributes':_0x59f028,'revisionData':_0x187de8,'revisionRootsAttributes':_0x5626e2}),this[_0x3621('0x7f')][_0x3621('0x23')][_0x3621('0xc9')](_0x3621('0xf6'),_0x187de8),this[_0x3621('0x7f')][_0x3621('0x23')]['set'](_0x3621('0xca'),_0x5626e2);}['_addPendingAction'](){if(!this[_0x3621('0xfe')]){const _0x87a7a9=this[_0x3621('0x7f')][_0x3621('0xa')][_0x3621('0xea')]('PendingActions');this[_0x3621('0xfe')]=_0x87a7a9['add'](_0x52e1d6(this[_0x3621('0x7f')][_0x3621('0x73')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x3621('0x9b')](){this[_0x3621('0xfe')]&&(this['editor'][_0x3621('0xa')][_0x3621('0xea')]('PendingActions')['remove'](this[_0x3621('0xfe')]),this[_0x3621('0xfe')]=null);}[_0x3621('0xc')](_0x4178ac){const _0x391021=this[_0x3621('0x1a')][_0x3621('0x2c')]();_0x391021['reverse']();let _0xa806d3=0x0;for(;_0xa806d3<_0x391021['length'];){const _0x32e7fc=_0x391021[_0xa806d3];if(_0x32e7fc===this[_0x3621('0x21')]){_0xa806d3++;continue;}if(_0x32e7fc['id']===this[_0x3621('0xd8')])break;const _0x133f95=_0x4178ac[_0x3621('0x16')]-_0x32e7fc[_0x3621('0x16')]||_0x4178ac[_0x3621('0x48')]-_0x32e7fc[_0x3621('0x48')];if(_0x133f95>0x0)break;if(_0x133f95<0x0)_0xa806d3++;else{if(!_0x4178ac[_0x3621('0xb5')]&&_0x32e7fc[_0x3621('0xb5')])break;if(_0x32e7fc[_0x3621('0xb5')]||!_0x4178ac['creator']){if(_0x4178ac['createdAt']>_0x32e7fc[_0x3621('0x15')])break;_0xa806d3++;}else _0xa806d3++;}}return _0xa806d3;}[_0x3621('0xac')](_0x9860d4){const _0x5607a0=this['repository']['getRevision'](_0x9860d4['id']);if(_0x9860d4[_0x3621('0x15')]&&(_0x9860d4[_0x3621('0x15')]=new Date(_0x9860d4[_0x3621('0x15')])),_0x9860d4[_0x3621('0x29')]){const _0x19fa6d=this[_0x3621('0x7f')]['plugins']['get'](_0x3621('0xa5'));_0x9860d4[_0x3621('0x42')]=_0x9860d4[_0x3621('0x29')]['map'](_0x37c797=>_0x19fa6d[_0x3621('0x1c')](_0x37c797));}_0x5607a0[_0x3621('0x1')](_0x9860d4,!0x0);}[_0x3621('0x8e')]({revision:_0x258be8=null,from:_0x1f7afc=null,to:_0x599deb=null}){_0x1f7afc=null!==_0x1f7afc?_0x1f7afc:_0x258be8['fromVersion'],_0x599deb=null!==_0x599deb?_0x599deb:_0x258be8[_0x3621('0x16')];const _0x5a1569=this[_0x3621('0x2b')]['getData'](_0x1f7afc,_0x599deb),_0x41685c={'diffData':_0x5a1569[_0x3621('0x7c')],'authorsIds':_0x5a1569['authorsIds'],'fromVersion':_0x1f7afc,'toVersion':_0x599deb};if(!_0x258be8||_0x599deb!==_0x258be8[_0x3621('0x16')]){const _0x5800df=_0x599deb-0x1,_0x39dfaf=this['_source'][_0x3621('0x9')][_0x3621('0xb6')](_0x5800df);_0x41685c[_0x3621('0x15')]=_0x39dfaf&&_0x39dfaf[_0x3621('0x15')]||new Date();}if(this[_0x3621('0x66')]&&_0x1f7afc===this[_0x3621('0x66')][_0x3621('0x48')])for(const _0x35add6 of this['_loadedStateData'][_0x3621('0x42')])_0x41685c[_0x3621('0x29')][_0x3621('0x8f')](_0x35add6['id'])||_0x41685c[_0x3621('0x29')][_0x3621('0x54')](_0x35add6['id']);return _0x41685c;}[_0x3621('0x61')](_0x2ae87c){if(!_0x2ae87c||_0x2ae87c['diffData'])return Promise[_0x3621('0xf0')]();{const _0x300a0e=this[_0x3621('0x7f')][_0x3621('0x23')][_0x3621('0xea')](_0x3621('0xe'));return this[_0x3621('0x89')]['getRevision']({'channelId':_0x300a0e,'revisionId':_0x2ae87c['id']})[_0x3621('0x14')](_0x2b1b70=>{_0x2ae87c['diffData']=_0x2b1b70['diffData'];});}}[_0x3621('0xce')](_0x477c46,_0x521ac2,_0x3aaf73){if(this['_bufferedUpdates'][_0x3621('0xa9')](_0x477c46)){const _0x8fa1b0=this[_0x3621('0x10b')]['get'](_0x477c46);_0x521ac2=_0x3aaf73?{..._0x8fa1b0,..._0x521ac2}:{..._0x521ac2,..._0x8fa1b0};}this[_0x3621('0x10b')][_0x3621('0xc9')](_0x477c46,_0x521ac2);}[_0x3621('0xb2')](_0x3c711f){const _0x2c95fd=this[_0x3621('0x1a')][_0x3621('0x2c')]();_0x2c95fd[_0x3621('0x28')](),_0x2c95fd[_0x3621('0x9e')]();const _0x3e597a=_0x2c95fd['find'](_0x102cb7=>_0x102cb7[_0x3621('0x16')]<=_0x3c711f)[_0x3621('0x16')];return _0x3e597a<this[_0x3621('0x4b')]?this[_0x3621('0x4b')]:_0x3e597a;}[_0x3621('0x12')](_0x204594){const _0x104d96=this['repository'][_0x3621('0xd')](this['repository'][_0x3621('0xe8')]-0x1);if(_0x104d96)this[_0x3621('0xd8')]=_0x104d96['id'];else{const _0x11acd8=!this[_0x3621('0x7f')][_0x3621('0x64')][_0x3621('0x47')]['roots'][_0x3621('0xd3')](_0x13dd0d=>this[_0x3621('0x7f')][_0x3621('0x64')][_0x3621('0x77')](_0x13dd0d)),_0x28a681=this[_0x3621('0x7f')]['plugins'][_0x3621('0xea')](_0x3621('0xa5'))['me']['id'],_0x3e488e=_0x52e1d6(this['editor'][_0x3621('0x73')],_0x11acd8?'Empty\x20document':_0x3621('0xeb'));this[_0x3621('0xdc')]({'from':_0x204594,'to':_0x204594,'id':this[_0x3621('0xd8')],'name':_0x3e488e,'creatorId':_0x28a681});}}['_createCurrentRevision'](_0xf3a991){const _0x4304ee=this['_source'][_0x3621('0x65')]();this[_0x3621('0x21')]=this['repository']['getRevision'](_0x4304ee),this['currentRevision']||(this[_0x3621('0x21')]=this[_0x3621('0xdc')]({'from':_0xf3a991,'to':_0xf3a991,'id':_0x4304ee,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1d1240,from:_0x3de81f,to:_0x1958cd,creatorId:_0x43a7b2,id:_0x1528dd}){const _0x819be2=this[_0x3621('0x8e')]({'from':_0x3de81f,'to':_0x1958cd});_0x819be2[_0x3621('0x7')]=_0x1d1240,_0x819be2[_0x3621('0xa7')]=_0x43a7b2,_0x819be2['id']=_0x1528dd;const _0x18c170=this[_0x3621('0xe4')](_0x819be2);return this[_0x3621('0x89')]&&this[_0x3621('0xce')](_0x819be2['id'],_0x819be2,!0x0),_0x18c170;}[_0x3621('0xda')](){this['editor'][_0x3621('0x9a')][_0x3621('0x4c')](_0x3621('0x80'))['markerToData']({'model':'revision'});}[_0x3621('0x79')](_0x57cf0a){return(_0x57cf0a=_0x57cf0a[_0x3621('0x51')](_0x581bbe=>!_0x581bbe[_0x3621('0x7')]||_0x3621('0xe2')!==_0x581bbe[_0x3621('0x7')]&&'revision-end'!==_0x581bbe[_0x3621('0x7')]))['forEach'](_0x3a596e=>{_0x3621('0x5f')!=typeof _0x3a596e&&(_0x3a596e[_0x3621('0x71')]=this[_0x3621('0x79')](_0x3a596e[_0x3621('0x71')]),_0x3a596e[_0x3621('0x50')]=_0x3a596e['attributes']['filter'](_0x230479=>!_0x230479[0x0][_0x3621('0x86')](_0x3621('0x108'))));}),_0x57cf0a;}}function J(_0x210bae,_0x16932f){const _0x418579=_0x16932f['editing'][_0x3621('0xb4')][_0x3621('0x47')];if(_0x3621('0x5f')==typeof _0x210bae)return new _0x3dcfd1(_0x418579,_0x210bae);{const _0x3677d5=_0x210bae[_0x3621('0x71')][_0x3621('0xc1')](_0x25077e=>J(_0x25077e,_0x16932f));return new(B[_0x210bae[(_0x3621('0x67'))]]||_0x1af4df)(_0x418579,_0x210bae['name'],_0x210bae[_0x3621('0x50')],_0x3677d5);}}class H{constructor(_0x3d9826){this[_0x3621('0x7f')]=_0x3d9826,this[_0x3621('0x49')]=new Map(),this[_0x3621('0x43')]=-0x1,this[_0x3621('0x100')]=-0x1,this[_0x3621('0xf7')]=new Map(),this[_0x3621('0x11')]=new Map(),this[_0x3621('0xff')]=new Map(),this[_0x3621('0x9c')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x3621('0xd7')]=new Map(),this[_0x3621('0x4d')]=new Map(),this[_0x3621('0xab')]=new Map(),this[_0x3621('0x36')]=new Map(),this[_0x3621('0x4')]=new Map(),this[_0x3621('0x72')]=0x1;}[_0x3621('0xbd')](_0x542f95){this[_0x3621('0xfc')]=_0x542f95;const _0x58efd6=new Map(),_0x1eabaa=new Map(),_0x3e3a9=this[_0x3621('0x7f')][_0x3621('0x64')][_0x3621('0x47')][_0x3621('0x4a')][_0x3621('0xc1')](_0x113393=>_0x113393['rootName']);for(const _0x233fc0 of _0x3e3a9){const _0x5b8d96=this[_0x3621('0x7f')]['model'][_0x3621('0x47')][_0x3621('0x34')](_0x233fc0),_0x31f916=q(_0x5b8d96);_0x58efd6[_0x3621('0xc9')](_0x233fc0,_0x31f916),_0x1eabaa[_0x3621('0xc9')](_0x233fc0,Object[_0x3621('0xb7')](_0x5b8d96[_0x3621('0x8b')]()));}const _0x277c5c=Array['from'](this[_0x3621('0x7f')][_0x3621('0x64')][_0x3621('0x6d')])['map'](_0x34cbf7=>[_0x34cbf7[_0x3621('0x7')],_0x34cbf7[_0x3621('0xd9')]()]),_0x2e633d=this[_0x3621('0xfc')][_0x3621('0x39')];this[_0x3621('0x3f')](_0x2e633d,_0x58efd6,_0x277c5c,_0x1eabaa),this['_startingRevisionId']=this[_0x3621('0x72')];const _0x3902b9=new Map(),_0x516f47=new Map();for(const _0x4cb476 of _0x3e3a9){const _0x18ccde=G(_0x4cb476);_0x3902b9[_0x3621('0xc9')](_0x4cb476,_0x18ccde),_0x516f47[_0x3621('0xc9')](_0x4cb476,{});}this['_saveMetaData'](Number[_0x3621('0x98')],_0x3902b9,[],_0x516f47);}['getData'](_0xcaa9ba,_0x5cf495){if(this[_0x3621('0x43')]===_0xcaa9ba&&this[_0x3621('0x100')]<=_0x5cf495)this[_0x3621('0x49')][_0x3621('0x4e')]>0x1&&this[_0x3621('0x1f')](this[_0x3621('0x100')]),this[_0x3621('0xef')](this[_0x3621('0x100')],_0x5cf495,!0x0);else{if(!this[_0x3621('0x49')][_0x3621('0xa9')](_0xcaa9ba)){const _0x4221c3=this[_0x3621('0x22')](_0xcaa9ba);this['_calculateMetaData'](_0x4221c3,_0xcaa9ba,!0x1);}this[_0x3621('0x62')](_0xcaa9ba,_0x5cf495,!0x0);}return this[_0x3621('0x43')]=_0xcaa9ba,this[_0x3621('0x100')]=_0x5cf495,this[_0x3621('0x82')]();}[_0x3621('0x8d')](_0xb0a20){this[_0x3621('0x17')](),this[_0x3621('0x43')]=_0xb0a20['fromVersion'],this[_0x3621('0x100')]=_0xb0a20[_0x3621('0x16')];for(const _0x1d1350 in _0xb0a20[_0x3621('0x7c')]){const _0x450728=_0xb0a20[_0x3621('0x7c')][_0x1d1350][_0x3621('0x102')],_0x3cadbc=_0x4e16ff(_0xb0a20[_0x3621('0x7c')][_0x1d1350][_0x3621('0x7d')])||{},_0x438afb=this[_0x3621('0xcb')](_0xb0a20['diffData'][_0x1d1350][_0x3621('0xbb')]);_0x438afb[_0x3621('0xe9')]=_0x1d1350,_0x438afb[_0x3621('0x93')]=!_0x450728||!_0x450728[_0x3621('0x99')],_0x438afb[_0x3621('0x99')]=()=>_0x438afb[_0x3621('0x93')],this[_0x3621('0x9c')][_0x3621('0xc9')](_0x1d1350,_0x438afb),this[_0x3621('0x5b')][_0x3621('0xc9')](_0x1d1350,_0x3cadbc),_0x450728&&this[_0x3621('0x4')][_0x3621('0xc9')](_0x1d1350,_0x450728);const _0x210295=this[_0x3621('0x56')](_0x438afb);this['_baseIdsRoots'][_0x3621('0xc9')](_0x1d1350,_0x210295);for(const [_0x7a541d,_0x45de89]of _0x438afb[_0x3621('0x6d')]){if(!_0x7a541d[_0x3621('0x86')]('revision:'))continue;const _0x4bcff0=_0x7a541d['split'](':')[0x2];for(const _0xde07e7 of _0x45de89['getWalker']({'singleCharacters':!0x0})){const _0x38aefe=this[_0x3621('0xc7')](_0xde07e7),_0x13f9e2=_0x3621('0xf9')==_0xde07e7['type']?_0xde07e7['previousPosition'][_0x3621('0xfd')][_0x3621('0xcd')](0x0,-0x1):_0xde07e7[_0x3621('0xcf')][_0x3621('0xfd')],_0x3fdfcc=_0x210295[_0x3621('0x33')](_0x13f9e2)[_0x3621('0xfa')](_0x38aefe);this[_0x3621('0xab')][_0x3621('0xc9')](_0x3fdfcc,{'userId':_0x4bcff0});}}}this['_startingRevisionId']=this[_0x3621('0x72')];const _0x496bb2=[...Array(this[_0x3621('0x72')])[_0x3621('0x84')]()][_0x3621('0xcd')](0x1)['filter'](_0x229d3f=>!this['_touched'][_0x3621('0xa9')](_0x229d3f));let _0x504465=0x0;const _0x26d076=new Map();for(const _0x45dee8 in _0xb0a20[_0x3621('0x7c')]){const _0x5efbbd=_0xb0a20[_0x3621('0x7c')][_0x45dee8][_0x3621('0x102')],_0x58f5c1=_0x4e16ff(_0xb0a20[_0x3621('0x7c')][_0x45dee8][_0x3621('0x3d')])||{},_0x572a62=this[_0x3621('0xcb')](_0xb0a20[_0x3621('0x7c')][_0x45dee8][_0x3621('0x3c')]);_0x572a62['rootName']=_0x45dee8,_0x572a62[_0x3621('0x93')]=!_0x5efbbd||_0x5efbbd['isAttached'],_0x572a62[_0x3621('0x99')]=()=>_0x572a62[_0x3621('0x93')],this['_diffRoots'][_0x3621('0xc9')](_0x45dee8,_0x572a62),this[_0x3621('0xff')][_0x3621('0xc9')](_0x45dee8,_0x58f5c1);const _0x37d787=this[_0x3621('0x56')](_0x572a62,Number['NEGATIVE_INFINITY']);this['_idsRoots'][_0x3621('0xc9')](_0x45dee8,_0x37d787),_0x26d076[_0x3621('0xc9')](_0x45dee8,_0x572a62['isAttached']()?_0x58f5c1:{});for(const [_0x396f86,_0x1244c6]of _0x572a62[_0x3621('0x6d')]){if(!_0x396f86[_0x3621('0x86')]('revision:'))continue;const _0x32e198=_0x396f86['split'](':')[0x2];for(const _0x5abaee of _0x1244c6[_0x3621('0xa4')]({'singleCharacters':!0x0})){const _0x3c3dc0=this['_getVidAttributeName'](_0x5abaee),_0xc33602=this[_0x3621('0x72')]++,_0x2f02d9=_0x3621('0xf9')==_0x5abaee[_0x3621('0x67')]?_0x5abaee[_0x3621('0xcf')][_0x3621('0xfd')][_0x3621('0xcd')](0x0,-0x1):_0x5abaee[_0x3621('0xcf')][_0x3621('0xfd')];_0x37d787[_0x3621('0x33')](_0x2f02d9)[_0x3621('0x7e')](_0x3c3dc0,_0xc33602),this[_0x3621('0xab')][_0x3621('0xc9')](_0xc33602,{'userId':_0x32e198});}}for(const _0xd4bd2d of this['editor'][_0x3621('0x64')][_0x3621('0x8')](_0x572a62)[_0x3621('0xa4')]({'singleCharacters':!0x0})){const _0xbaefa5=this[_0x3621('0xc7')](_0xd4bd2d),_0x31ec1a=_0x3621('0xf9')==_0xd4bd2d[_0x3621('0x67')]?_0xd4bd2d['previousPosition'][_0x3621('0xfd')]['slice'](0x0,-0x1):_0xd4bd2d[_0x3621('0xcf')][_0x3621('0xfd')],_0x40b71e=_0x37d787['getNodeByPath'](_0x31ec1a);_0x40b71e[_0x3621('0xfa')](_0xbaefa5)>0x0||_0x40b71e[_0x3621('0x7e')](_0xbaefa5,_0x496bb2[_0x504465++]);}for(const [_0x2b4918,_0x5e145f]of _0x572a62['markers'])_0x2b4918[_0x3621('0x86')](_0x3621('0xdb'))||this[_0x3621('0xf7')][_0x3621('0xc9')](_0x2b4918,_0x5e145f);}const _0x37ee79=G('$graveyard');this[_0x3621('0x9c')][_0x3621('0xc9')](_0x3621('0xf'),_0x37ee79),this[_0x3621('0x4d')]['set']('$graveyard',this[_0x3621('0x56')](_0x37ee79,0x1));const _0xbae5bc=G(_0x3621('0xf'));this[_0x3621('0x11')][_0x3621('0xc9')](_0x3621('0xf'),_0xbae5bc),this[_0x3621('0xd7')][_0x3621('0xc9')](_0x3621('0xf'),this['_makeIdsRoot'](_0xbae5bc,0x1));const _0x1503ef=Array[_0x3621('0xf5')](this[_0x3621('0x11')])['map'](([_0x203661,_0x2e648b])=>[_0x203661,q(_0x2e648b)]);this[_0x3621('0x3f')](this['_lastTo'],_0x1503ef,this[_0x3621('0xf7')],_0x26d076);}[_0x3621('0xcb')](_0x2662b9){const _0x35c607=JSON[_0x3621('0x40')](_0x2662b9),_0x1969ed=this[_0x3621('0x7f')]['editing']['view'][_0x3621('0x47')],_0x4261b0=new _0x64028c(_0x1969ed,_0x35c607[_0x3621('0xc1')](_0x123484=>J(_0x123484,this[_0x3621('0x7f')])));return this[_0x3621('0x7f')]['data'][_0x3621('0x101')](_0x4261b0);}[_0x3621('0x3f')](_0x16ccd0,_0x352a9b,_0x235408,_0xc6c43d){const _0x331f9e=new Map(_0x352a9b),_0x2d3e44=new Map(_0x4e16ff(_0xc6c43d)),_0x3069c2=new Map();for(const [_0x4103f8,_0x4d17da]of _0x235408)_0x3069c2[_0x3621('0xc9')](_0x4103f8,{'start':_0x4d17da[_0x3621('0xdf')]['clone'](),'end':_0x4d17da[_0x3621('0x41')][_0x3621('0x1e')](),'rootName':_0x4d17da['root'][_0x3621('0xe9')]});this['_savedMetaData'][_0x3621('0xc9')](_0x16ccd0,{'roots':_0x331f9e,'markers':_0x3069c2,'rootsAttributes':_0x2d3e44});}[_0x3621('0x1f')](_0x220fb3){this[_0x3621('0x49')][_0x3621('0x27')](_0x220fb3);}['reInit'](){this[_0x3621('0x17')](),this['_lastFrom']=-0x1,this[_0x3621('0x100')]=-0x1,this[_0x3621('0x49')][_0x3621('0xb3')](),this[_0x3621('0xbd')](this[_0x3621('0xfc')]);}[_0x3621('0x17')](){this[_0x3621('0xab')]['clear'](),this[_0x3621('0x36')]['clear'](),this[_0x3621('0x4')][_0x3621('0xb3')](),this[_0x3621('0x11')][_0x3621('0xb3')](),this[_0x3621('0xff')][_0x3621('0xb3')](),this['_baseRoots'][_0x3621('0xb3')](),this['_baseRootsAttributes'][_0x3621('0xb3')](),this['_idsRoots'][_0x3621('0xb3')](),this[_0x3621('0x4d')][_0x3621('0xb3')](),this[_0x3621('0xf7')][_0x3621('0xb3')](),this[_0x3621('0x72')]=0x1,this[_0x3621('0x6a')]=this[_0x3621('0x72')];}[_0x3621('0x56')](_0x2cefec,_0x464563=null){let _0x2dea97=null;_0x2cefec['is'](_0x3621('0xc6'))||(_0x2dea97=new _0x1399ee(_0x2cefec[_0x3621('0x7')],{'vid_start':null===_0x464563?this[_0x3621('0x72')]++:_0x464563++}));const _0x1a48b8=[];for(const _0x5e96e6 of _0x2cefec[_0x3621('0xc8')]())if(_0x5e96e6['is'](_0x3621('0x38'))){_0x1a48b8[_0x3621('0x54')](this['_makeIdsRoot'](_0x5e96e6,_0x464563));const _0x5cd8fa=_0x1a48b8[_0x1a48b8[_0x3621('0xe8')]-0x1];null!==_0x464563&&(_0x464563=_0x5cd8fa['is'](_0x3621('0x38'),_0x3621('0x95'))?_0x5cd8fa[_0x3621('0xfa')]('vid')+0x1:_0x5cd8fa[_0x3621('0xfa')](_0x3621('0xa6'))+0x1);}else for(let _0x1518c2=0x0;_0x1518c2<_0x5e96e6[_0x3621('0x59')];_0x1518c2++)_0x1a48b8[_0x3621('0x54')](new _0x1399ee(_0x3621('0x95'),{'vid':null===_0x464563?this[_0x3621('0x72')]++:_0x464563++}));if(_0x2cefec['is'](_0x3621('0xc6'))){const _0x3e6eed=G(_0x2cefec['rootName']);return _0x3e6eed[_0x3621('0x106')](0x0,_0x1a48b8),_0x3e6eed;}return _0x2dea97[_0x3621('0x7e')](_0x3621('0xa6'),null===_0x464563?this[_0x3621('0x72')]++:_0x464563++),_0x2dea97[_0x3621('0x106')](0x0,_0x1a48b8),_0x2dea97;}['_calculateMetaData'](_0x424799,_0x4302fd,_0x3e7750){this[_0x3621('0x17')]();const {roots:_0x11f953,markers:_0x2e5039,rootsAttributes:_0x4539ca}=this[_0x3621('0x49')][_0x3621('0xea')](_0x424799);this['_baseRoots']=new Map(_0x11f953),this['_baseRootsAttributes']=new Map(_0x4e16ff(_0x4539ca));for(const [_0x3b0b7a,_0x27e32e]of this[_0x3621('0x9c')])if(_0x3621('0xf')!==_0x3b0b7a&&(this[_0x3621('0x11')]['set'](_0x3b0b7a,q(_0x27e32e)),this[_0x3621('0xff')]=new Map(_0x4e16ff(_0x4539ca)),_0x3e7750)){const _0x30442e=this[_0x3621('0x72')];this[_0x3621('0xd7')][_0x3621('0xc9')](_0x3b0b7a,this['_makeIdsRoot'](_0x27e32e)),this[_0x3621('0x4d')][_0x3621('0xc9')](_0x3b0b7a,this['_makeIdsRoot'](_0x27e32e,_0x30442e));}this[_0x3621('0x6a')]=this[_0x3621('0x72')],this[_0x3621('0x11')]['set']('$graveyard',q(this['_baseRoots'][_0x3621('0xea')](_0x3621('0xf')))),_0x3e7750&&this[_0x3621('0xd7')][_0x3621('0xc9')](_0x3621('0xf'),this['_makeIdsRoot'](this[_0x3621('0x9c')]['get']('$graveyard')));for(const [_0x28c199,_0x452d6f]of _0x2e5039){const _0xd72d12=this['_baseRoots']['get'](_0x452d6f['rootName']),_0x3c6dbe=this[_0x3621('0x11')]['get'](_0x452d6f[_0x3621('0xe9')]),_0x2fb836=new _0x595ac7(this[_0x3621('0xdd')](_0x452d6f[_0x3621('0xdf')],_0xd72d12),this['_fixPosition'](_0x452d6f[_0x3621('0x41')],_0xd72d12)),_0x7b4eae=this[_0x3621('0x44')](_0x2fb836,_0x3c6dbe);_0xd72d12[_0x3621('0x6d')][_0x3621('0xc9')](_0x28c199,_0x2fb836),this['_markers']['set'](_0x28c199,_0x7b4eae);}this['_applyOperations'](_0x424799,_0x4302fd,_0x3e7750);}['_applyOperations'](_0x39816d,_0x8f935f,_0x4b34cf){for(const _0x3e4c14 of this[_0x3621('0xfc')]['getOperations'](_0x39816d,_0x8f935f))this[_0x3621('0xec')](_0x3e4c14,_0x4b34cf);for(const _0x3ce084 of this[_0x3621('0x11')][_0x3621('0x5')]())_0x3ce084[_0x3621('0x6d')][_0x3621('0xb3')]();for(const [_0x40ad98,_0xab1a18]of this[_0x3621('0xf7')]){this[_0x3621('0x11')][_0x3621('0xea')](_0xab1a18['root'][_0x3621('0xe9')])[_0x3621('0x6d')][_0x3621('0xc9')](_0x40ad98,_0xab1a18[_0x3621('0x1e')]());}const _0x37f99e=new Map(),_0x22f986=new Map();for(const [_0x1976ca,_0x9ce016]of this[_0x3621('0x11')])_0x37f99e[_0x3621('0xc9')](_0x1976ca,q(_0x9ce016)),_0x22f986[_0x3621('0xc9')](_0x1976ca,this[_0x3621('0xff')][_0x3621('0xea')](_0x1976ca));this['_saveMetaData'](_0x8f935f,_0x37f99e,this[_0x3621('0xf7')],_0x22f986);}[_0x3621('0x22')](_0x33de05){const _0x2027f2=Array[_0x3621('0xf5')](this[_0x3621('0x49')][_0x3621('0x84')]());_0x2027f2[_0x3621('0xb')]((_0x1fdfb4,_0x123bff)=>_0x1fdfb4-_0x123bff),_0x2027f2['reverse']();for(const _0x21e9e2 of _0x2027f2)if(_0x21e9e2<_0x33de05)return _0x21e9e2;return Number[_0x3621('0x98')];}[_0x3621('0xbf')](_0x562e2f,_0x1460e8){const _0x4bc926=Array[_0x3621('0xf5')](_0x1460e8['markers'])[_0x3621('0xc1')](([_0x5d6814,_0x1d5c20])=>[_0x5d6814,this[_0x3621('0x44')](_0x1d5c20,_0x562e2f)]);_0x562e2f[_0x3621('0x6d')]=new Map(_0x4bc926);}[_0x3621('0xee')](_0xf33afe){for(const _0x36176e of this[_0x3621('0xf7')][_0x3621('0x5')]()){const _0x39e33a=_0x36176e['getTransformedByOperation'](_0xf33afe),_0x48c0d8=_0x595ac7[_0x3621('0xe6')](_0x39e33a);_0x36176e[_0x3621('0xdf')]=_0x48c0d8[_0x3621('0xdf')],_0x36176e[_0x3621('0x41')]=_0x48c0d8[_0x3621('0x41')];}}['_handleOperation'](_0x22d61e,_0x454bd2){if(_0x3621('0x0')==_0x22d61e[_0x3621('0x67')]||'detachRoot'==_0x22d61e[_0x3621('0x67')])return void this[_0x3621('0xf1')](_0x22d61e,_0x454bd2);if(_0x3621('0x5e')==_0x22d61e[_0x3621('0x67')]){const _0x40f160=_0x22d61e['position'][_0x3621('0x85')]['rootName'];this[_0x3621('0x11')][_0x3621('0xa9')](_0x40f160)||(this[_0x3621('0x11')]['set'](_0x40f160,G(_0x40f160,!0x0)),this['_diffRootsAttributes'][_0x3621('0xc9')](_0x40f160,{}),_0x454bd2&&this[_0x3621('0xd7')][_0x3621('0xc9')](_0x40f160,G(_0x40f160,!0x0)));}else{if(_0x3621('0x25')==_0x22d61e['type']||_0x3621('0xaf')==_0x22d61e[_0x3621('0x67')]||_0x3621('0x7a')==_0x22d61e[_0x3621('0x67')])return void this[_0x3621('0x5c')](_0x22d61e);}const _0xde1f59=this[_0x3621('0x10a')](_0x22d61e,this[_0x3621('0x11')]);if('marker'!==_0x22d61e[_0x3621('0x67')]&&(_0xde1f59['_execute'](),this[_0x3621('0xee')](_0xde1f59)),_0x454bd2)switch(_0xde1f59['type']){case _0x3621('0x5e'):this[_0x3621('0x32')](_0x22d61e);break;case'move':case _0x3621('0x9d'):case _0x3621('0x8c'):this['_handleMoveOperation'](_0x22d61e);break;case'merge':this[_0x3621('0x91')](_0x22d61e);break;case _0x3621('0x31'):this[_0x3621('0x60')](_0x22d61e);break;case _0x3621('0x97'):this[_0x3621('0x2a')](_0x22d61e);}}[_0x3621('0x10a')](_0x569e24,_0x186da7){const _0x1e18b2=_0x569e24['clone']();return _0x1e18b2[_0x3621('0x105')]=_0x569e24[_0x3621('0x105')],this[_0x3621('0x30')](_0x1e18b2,_0x186da7),_0x1e18b2;}[_0x3621('0xc2')](_0x1686bf){return _0x1686bf['map'](_0x1ee3e0=>{const _0xa9c26f=this[_0x3621('0xc7')](_0x1ee3e0);return Number(_0x1ee3e0['item'][_0x3621('0xfa')](_0xa9c26f));});}['_generateTape'](_0x28d134,_0x58f315){if(_0x28d134['is'](_0x3621('0x38'),'$text'))_0x58f315[_0x3621('0x54')]({'item':_0x28d134,'type':_0x3621('0x90')});else{_0x28d134['is']('element')&&_0x58f315['push']({'item':_0x28d134,'type':_0x3621('0x81')});for(const _0x50e938 of _0x28d134['getChildren']())this[_0x3621('0xf2')](_0x50e938,_0x58f315);_0x28d134['is'](_0x3621('0x38'))&&_0x58f315['push']({'item':_0x28d134,'type':_0x3621('0xf9')});}return _0x58f315;}[_0x3621('0x82')](){const _0x31a27a=new Map(this[_0x3621('0xab')]),_0x82bd1f=new Map(_0x31a27a),_0x3196d1=new Map(),_0x554209={'insertions':{},'deletions':{}},_0x3813f0={'insertions':{},'deletions':{}},_0xb23f46=new Map(),_0x477cb7=new Set([...this[_0x3621('0x9c')][_0x3621('0x84')](),...this[_0x3621('0x11')]['keys']()]);_0x477cb7[_0x3621('0x27')]('$graveyard');for(const _0x412286 of _0x477cb7){const _0x524b73=this[_0x3621('0x11')]['get'](_0x412286)||G(_0x412286,!0x1),_0x398c74=this[_0x3621('0x9c')]['get'](_0x412286)||G(_0x412286,!0x1);_0x524b73['isAttached']()||_0x398c74[_0x3621('0x99')]()?(_0x554209[_0x3621('0x3c')][_0x412286]=q(_0x524b73),_0x554209['deletions'][_0x412286]=q(_0x398c74),this[_0x3621('0xbf')](_0x554209[_0x3621('0xbb')][_0x412286],_0x398c74),this[_0x3621('0xbf')](_0x554209[_0x3621('0x3c')][_0x412286],_0x524b73),_0x3813f0[_0x3621('0x3c')][_0x412286]=this['_generateTape'](this['_idsRoots'][_0x3621('0xea')](_0x412286),[]),_0x3813f0[_0x3621('0xbb')][_0x412286]=this[_0x3621('0xf2')](this[_0x3621('0x4d')][_0x3621('0xea')](_0x412286)||G(_0x412286,!0x1),[])):_0x477cb7[_0x3621('0x27')](_0x412286);}for(const _0x34538e of _0x477cb7){const _0x2b6606=_0x3813f0[_0x3621('0x3c')][_0x34538e];for(const _0x4d8f51 of _0x2b6606){const _0x4c008e=this['_getVidAttributeName'](_0x4d8f51),_0x2ec98a=_0x4d8f51[_0x3621('0xd1')][_0x3621('0xfa')](_0x4c008e);_0x82bd1f[_0x3621('0x27')](_0x2ec98a),_0x2ec98a>=this[_0x3621('0x6a')]&&_0x3196d1[_0x3621('0xc9')](_0x2ec98a,_0x31a27a[_0x3621('0xea')](_0x2ec98a));}}for(const _0x5c094e of _0x477cb7){const _0x1a5d9c=_0x3813f0[_0x3621('0x3c')][_0x5c094e],_0x2761fe=this[_0x3621('0xc2')](_0x3813f0[_0x3621('0xbb')][_0x5c094e]);let _0x332b62=0x0;for(const _0x6944cd of _0x1a5d9c){const _0x4c20ed=this[_0x3621('0xc7')](_0x6944cd),_0x42c447=_0x6944cd[_0x3621('0xd1')][_0x3621('0xfa')](_0x4c20ed);if(!_0x3196d1[_0x3621('0xa9')](_0x42c447)&&!_0xb23f46[_0x3621('0xa9')](_0x42c447)){if(_0x82bd1f[_0x3621('0xa9')](_0x42c447))_0x332b62++;else{if(_0x42c447!=_0x2761fe[_0x332b62]){const _0x3b739a=_0x31a27a[_0x3621('0xea')](_0x42c447)||_0x31a27a[_0x3621('0xea')](_0x2761fe[_0x332b62]);for(;_0x42c447!=_0x2761fe[_0x332b62];)_0x82bd1f[_0x3621('0xa9')](_0x2761fe[_0x332b62])||(_0xb23f46[_0x3621('0xc9')](_0x2761fe[_0x332b62],_0x3b739a),_0x31a27a[_0x3621('0xc9')](_0x2761fe[_0x332b62],_0x3b739a)),_0x332b62++;}_0x332b62++;}}}}for(const _0x5d925d of _0x477cb7){const _0x1f9dce=_0x3813f0[_0x3621('0x3c')][_0x5d925d];for(const _0x4a987a of _0x1f9dce){const _0x3732ac=this['_getVidAttributeName'](_0x4a987a),_0xeca8e8=_0x4a987a[_0x3621('0xd1')][_0x3621('0xfa')](_0x3732ac);if(_0xb23f46[_0x3621('0xa9')](_0xeca8e8)){const _0x4890f8=_0xb23f46[_0x3621('0xea')](_0xeca8e8);_0x82bd1f[_0x3621('0xa9')](_0xeca8e8)||_0x82bd1f[_0x3621('0xc9')](_0xeca8e8,{..._0x4890f8}),_0x3196d1[_0x3621('0xc9')](_0xeca8e8,{..._0x4890f8});}}}for(const _0x34136e of _0x82bd1f['keys']())_0x34136e>=this[_0x3621('0x6a')]&&_0x82bd1f[_0x3621('0x27')](_0x34136e);const _0x278d77=new Map();for(const _0x393da9 of _0x477cb7){let _0x58868f=_0x3813f0[_0x3621('0x3c')][_0x393da9];for(const _0x52abbb of _0x58868f)if(_0x52abbb[_0x3621('0xd1')]['is']('element',_0x3621('0x78'))){const _0x31486d=this[_0x3621('0xc7')](_0x52abbb),_0x593fb4=_0x52abbb['item']['getAttribute'](_0x31486d);if(_0x3196d1[_0x3621('0xa9')](_0x593fb4)){const _0x51c8f2=_0x52abbb[_0x3621('0xd1')]['parent'][_0x3621('0x104')][_0x3621('0xfa')](_0x3621('0x88')),_0x3bd52e=_0x278d77['get'](_0x51c8f2)||new Set();_0x3bd52e['add'](_0x3196d1[_0x3621('0xea')](_0x593fb4)['userId']),_0x278d77[_0x3621('0xc9')](_0x51c8f2,_0x3bd52e);}}_0x58868f=_0x3813f0[_0x3621('0xbb')][_0x393da9];for(const _0x2f35f2 of _0x58868f)if(_0x2f35f2[_0x3621('0xd1')]['is'](_0x3621('0x38'),_0x3621('0x78'))){const _0x5d4ee4=this[_0x3621('0xc7')](_0x2f35f2),_0x1e3060=_0x2f35f2[_0x3621('0xd1')]['getAttribute'](_0x5d4ee4);if(_0x82bd1f[_0x3621('0xa9')](_0x1e3060)){const _0x33ebd2=_0x2f35f2['item'][_0x3621('0x104')][_0x3621('0x104')][_0x3621('0xfa')](_0x3621('0x88')),_0x1b1cbe=_0x278d77[_0x3621('0xea')](_0x33ebd2)||new Set();_0x1b1cbe['add'](_0x82bd1f[_0x3621('0xea')](_0x1e3060)['userId']),_0x278d77[_0x3621('0xc9')](_0x33ebd2,_0x1b1cbe);}}for(const _0x5667e9 of _0x278d77[_0x3621('0x84')]())(_0x3196d1[_0x3621('0xa9')](_0x5667e9)||_0x82bd1f['has'](_0x5667e9))&&_0x278d77[_0x3621('0x27')](_0x5667e9);}for(const _0xa75e4b of _0x477cb7){const _0x1effd6=_0x3813f0['insertions'][_0xa75e4b];let _0x84af72=null,_0x111883=null;for(const _0x38085b of _0x1effd6){const _0x42a203=this[_0x3621('0xc7')](_0x38085b),_0xd1dbc9=_0x38085b['item'][_0x3621('0xfa')](_0x42a203),_0x4ed815=_0x278d77[_0x3621('0xea')](_0xd1dbc9);_0x4ed815&&_0x3621('0x81')==_0x38085b['type']&&(_0x84af72=Array[_0x3621('0xf5')](_0x4ed815)[0x0],_0x111883=_0x38085b['item'][_0x3621('0xfa')](_0x3621('0xa6'))),_0x84af72&&(_0x82bd1f[_0x3621('0xc9')](_0xd1dbc9,{'userId':_0x84af72}),_0x3196d1[_0x3621('0xc9')](_0xd1dbc9,{'userId':_0x84af72})),_0xd1dbc9==_0x111883&&(_0x84af72=null,_0x111883=null);}}const _0x435a32={},_0x1d66a5=new Set();for(const _0x3feb5b of _0x477cb7){const _0x2341bf=_0x554209[_0x3621('0xbb')][_0x3feb5b],_0x57c015=_0x554209[_0x3621('0x3c')][_0x3feb5b];for(const {userId:_0x37551d}of this['_touchedMarkers'][_0x3621('0x5')]())null!==_0x37551d&&_0x1d66a5[_0x3621('0x1d')](_0x37551d);for(const {userId:_0x1f6c77}of this['_touchedRoots'][_0x3621('0x5')]())null!==_0x1f6c77&&_0x1d66a5[_0x3621('0x1d')](_0x1f6c77);this[_0x3621('0x6c')](_0x57c015,_0x3813f0['insertions'][_0x3feb5b],_0x3196d1,_0x3621('0xc3'),_0x1d66a5),this[_0x3621('0x6c')](_0x2341bf,_0x3813f0[_0x3621('0xbb')][_0x3feb5b],_0x82bd1f,_0x3621('0xb1'),_0x1d66a5),_0x435a32[_0x3feb5b]={'insertions':this[_0x3621('0x1b')](_0x57c015),'deletions':this[_0x3621('0x1b')](_0x2341bf),'attachChange':this['_touchedRoots'][_0x3621('0xea')](_0x3feb5b)||null,'attributesBefore':_0x4e16ff(this[_0x3621('0x5b')][_0x3621('0xea')](_0x3feb5b))||{},'attributesAfter':_0x4e16ff(this['_diffRootsAttributes']['get'](_0x3feb5b))};}return{'diffData':_0x435a32,'authorsIds':Array[_0x3621('0xf5')](_0x1d66a5)};}[_0x3621('0x2e')](_0x342df3){for(const [,_0x51e0df]of _0x342df3[_0x3621('0x6d')]){const _0x172f59=_0x51e0df[_0x3621('0xdf')][_0x3621('0x75')]()[_0x3621('0x51')](_0x2e32a5=>'tableCell'==_0x2e32a5[_0x3621('0x7')]);for(const _0x16177f of _0x172f59)0x1==_0x16177f[_0x3621('0x2d')]&&_0x16177f[_0x3621('0xe1')](0x0)['is'](_0x3621('0x38'),_0x3621('0xa3'))&&_0x16177f[_0x3621('0xe1')](0x0)[_0x3621('0x7e')]('keepParagraph',!0x0);}}[_0x3621('0x1b')](_0xb867b8){this[_0x3621('0x2e')](_0xb867b8);const _0x5b653b=this[_0x3621('0x7f')]['data'][_0x3621('0x69')](_0xb867b8,{}),_0x3a99bd=Array[_0x3621('0xf5')](_0x5b653b[_0x3621('0xc8')]())[_0x3621('0xc1')](_0x5801e1=>this[_0x3621('0x68')](_0x5801e1));return JSON['stringify'](_0x3a99bd);}[_0x3621('0x68')](_0x31f236){if(_0x31f236['is'](_0x3621('0x95')))return _0x31f236[_0x3621('0x13')];{const _0xe99677=_0x31f236;return{'type':Object['keys'](B)[_0x3621('0xd3')](_0xfcb3db=>_0x31f236 instanceof B[_0xfcb3db]),'name':_0xe99677[_0x3621('0x7')],'attributes':Array['from'](_0xe99677[_0x3621('0x8b')]()),'children':Array[_0x3621('0xf5')](_0xe99677[_0x3621('0xc8')]())[_0x3621('0xc1')](_0x4cce6d=>this[_0x3621('0x68')](_0x4cce6d))};}}[_0x3621('0x6c')](_0x39e4de,_0xf91b9,_0x4fcc53,_0x3bcec2,_0x57ef9a){let _0x585f8e=null,_0x2119ab=null,_0x86330b=0x0;const _0x4f7bf0=this[_0x3621('0x7f')]['model'];for(let _0x2a41c8=0x0;_0x2a41c8<_0xf91b9['length'];_0x2a41c8++){const _0x48274d=this['_getVidAttributeName'](_0xf91b9[_0x2a41c8]),_0x258231=_0xf91b9[_0x2a41c8]['item'][_0x3621('0xfa')](_0x48274d),_0x2e418f=_0x4fcc53[_0x3621('0xea')](_0x258231),_0x58ec73=_0x2a41c8==_0xf91b9[_0x3621('0xe8')]-0x1;(!_0x585f8e&&_0x2e418f&&(_0x585f8e=_0x2e418f,_0x2119ab=_0xf91b9[_0x2a41c8]),_0x585f8e&&(!_0x2e418f||_0x2e418f[_0x3621('0x6')]!=_0x585f8e['userId']))&&(_0x18c0b7(_0x2e418f,L(_0x2119ab,_0x39e4de,_0x4f7bf0),L(_0xf91b9[_0x2a41c8],_0x39e4de,_0x4f7bf0)),_0x585f8e=_0x2e418f||null,_0x2119ab=_0x2e418f?_0xf91b9[_0x2a41c8]:null),_0x585f8e&&_0x58ec73&&_0x18c0b7(_0x2e418f,L(_0x2119ab,_0x39e4de,_0x4f7bf0),W(_0xf91b9[_0x2a41c8],_0x39e4de,_0x4f7bf0));}function _0x18c0b7(_0xe72c56,_0x5ab764,_0x196e6c){const _0x5e433b=_0x585f8e[_0x3621('0x6')],_0xf9c129=_0x3621('0xdb')+_0x3bcec2+':'+_0x5e433b+':'+_0x86330b++,_0x12512e=_0x4f7bf0[_0x3621('0xa0')](_0x5ab764,_0x196e6c);_0x39e4de['markers']['set'](_0xf9c129,_0x12512e),null!==_0x5e433b&&_0x57ef9a['add'](_0x5e433b);}}['_getVidAttributeName'](_0x185a8e){switch(_0x185a8e['type']){case _0x3621('0x81'):return _0x3621('0x88');case _0x3621('0xf9'):return _0x3621('0xa6');default:return _0x3621('0x26');}}[_0x3621('0x30')](_0xae992e,_0x5f350c){_0xae992e[_0x3621('0x37')]=null;for(const _0x54c137 in _0xae992e){const _0x14fef7=_0xae992e[_0x54c137];if(_0x14fef7 instanceof _0x5aeafc){const _0x2286fb=_0x5f350c['get'](_0x14fef7[_0x3621('0x85')][_0x3621('0xe9')]);_0xae992e[_0x54c137]=this[_0x3621('0xdd')](_0x14fef7,_0x2286fb);}if(_0x14fef7 instanceof _0x595ac7){const _0x35604f=_0x5f350c[_0x3621('0xea')](_0x14fef7['root'][_0x3621('0xe9')]);_0xae992e[_0x54c137]=this['_fixRange'](_0x14fef7,_0x35604f);}_0x3621('0x85')===_0x54c137&&(_0xae992e[_0x3621('0x85')]=_0x5f350c['get'](_0xae992e[_0x3621('0x85')][_0x3621('0xe9')]));}}['_fixRange'](_0x2280ca,_0x1355cb){return this[_0x3621('0x7f')][_0x3621('0x64')][_0x3621('0xa0')](this[_0x3621('0xdd')](_0x2280ca[_0x3621('0xdf')],_0x1355cb),this[_0x3621('0xdd')](_0x2280ca['end'],_0x1355cb));}[_0x3621('0xdd')](_0x17804a,_0x32322c){return this['editor'][_0x3621('0x64')][_0x3621('0x5d')](_0x32322c,_0x17804a['path'],_0x17804a[_0x3621('0x6b')]);}[_0x3621('0x32')](_0x293295){const _0x3ba19a=this[_0x3621('0xd7')]['get'](_0x293295[_0x3621('0xa2')]['root']['rootName']),_0x575900=this[_0x3621('0xdd')](_0x293295['position'],_0x3ba19a),_0xa0d755=null===_0x293295[_0x3621('0x105')]?null:_0x293295['_authorId']||this['editor'][_0x3621('0xa')][_0x3621('0xea')](_0x3621('0xa5'))['me']['id'],_0x154152=_0x575900['parent'],_0x134b96=this['_revisionId'],_0x5ce708=[];for(const _0x40e54 of _0x293295[_0x3621('0x6e')])if(_0x40e54['is'](_0x3621('0x38')))_0x5ce708[_0x3621('0x54')](this[_0x3621('0x56')](_0x40e54));else for(let _0x232241=0x0;_0x232241<_0x40e54[_0x3621('0x59')];_0x232241++)_0x5ce708[_0x3621('0x54')](new _0x1399ee(_0x3621('0x95'),{'vid':this['_revisionId']++}));const _0x548305=this[_0x3621('0x72')];for(let _0x226bc0=_0x134b96;_0x226bc0<_0x548305;_0x226bc0++)this[_0x3621('0xab')][_0x3621('0xc9')](_0x226bc0,{'userId':_0xa0d755});_0x154152['_insertChild'](_0x575900[_0x3621('0xfb')],_0x5ce708);}[_0x3621('0xcc')](_0x538c05){(_0x538c05=this[_0x3621('0x10a')](_0x538c05,this[_0x3621('0xd7')]))[_0x3621('0xe7')]();const _0x255bb9=null===_0x538c05[_0x3621('0x105')]?null:_0x538c05[_0x3621('0x105')]||this[_0x3621('0x7f')][_0x3621('0xa')][_0x3621('0xea')](_0x3621('0xa5'))['me']['id'],_0x35c0d3=_0x538c05[_0x3621('0x20')](),_0x389923=_0x35c0d3[_0x3621('0x104')],_0x31aab8=_0x35c0d3[_0x3621('0xfb')];!function _0x2cca2c(_0x35a207,_0x29ce6c,_0x86c87d,_0x1ed767){for(let _0x556061=_0x86c87d;_0x556061<_0x1ed767;_0x556061++){const _0x39b771=_0x29ce6c[_0x3621('0xe1')](_0x556061);_0x39b771['is'](_0x3621('0x38'),_0x3621('0x95'))?_0x35a207['set'](_0x39b771[_0x3621('0xfa')](_0x3621('0x26')),{'userId':_0x255bb9}):(_0x35a207[_0x3621('0xc9')](_0x39b771[_0x3621('0xfa')](_0x3621('0x88')),{'userId':_0x255bb9}),_0x2cca2c(_0x35a207,_0x39b771,0x0,_0x39b771[_0x3621('0x2d')]),_0x35a207['set'](_0x39b771['getAttribute']('vid_end'),{'userId':_0x255bb9}));}}(this[_0x3621('0xab')],_0x389923,_0x31aab8,_0x31aab8+_0x538c05[_0x3621('0x3a')]);}[_0x3621('0x91')](_0x58a11e){const _0x9b7984=null===(_0x58a11e=this[_0x3621('0x10a')](_0x58a11e,this[_0x3621('0xd7')]))['_authorId']?null:_0x58a11e[_0x3621('0x105')]||this['editor']['plugins']['get'](_0x3621('0xa5'))['me']['id'],_0x452e28=_0x58a11e[_0x3621('0xf8')][_0x3621('0x104')],_0x43f445=_0x58a11e[_0x3621('0xae')][_0x3621('0x104')],_0x4cb6a2=_0x452e28[_0x3621('0xfa')]('vid_end'),_0xe8a982=_0x43f445[_0x3621('0xfa')](_0x3621('0x88'));_0x452e28[_0x3621('0x7e')]('vid_end',_0x43f445[_0x3621('0xfa')](_0x3621('0xa6'))),_0x43f445[_0x3621('0x7e')](_0x3621('0xa6'),_0x4cb6a2),this[_0x3621('0xab')][_0x3621('0xc9')](_0xe8a982,{'userId':_0x9b7984}),this[_0x3621('0xab')]['set'](_0x4cb6a2,{'userId':_0x9b7984}),_0x58a11e['_execute']();}[_0x3621('0x60')](_0x44e64d){const _0x221aec=null===(_0x44e64d=this[_0x3621('0x10a')](_0x44e64d,this[_0x3621('0xd7')]))[_0x3621('0x105')]?null:_0x44e64d[_0x3621('0x105')]||this[_0x3621('0x7f')]['plugins']['get'](_0x3621('0xa5'))['me']['id'],_0x500d72=_0x44e64d[_0x3621('0x53')],_0xc7517=_0x44e64d[_0x3621('0x3b')][_0x3621('0x104')];_0x44e64d[_0x3621('0xe7')]();const _0x1241f5=_0xc7517[_0x3621('0xfa')](_0x3621('0xa6')),_0x28ac65=_0x44e64d[_0x3621('0x18')]['nodeAfter'];if(_0x500d72){const _0x126b9b=_0x28ac65['getAttribute'](_0x3621('0xa6')),_0x474d54=_0xc7517['getAttribute'](_0x3621('0xa6'));_0xc7517[_0x3621('0x7e')](_0x3621('0xa6'),_0x126b9b),_0x28ac65[_0x3621('0x7e')](_0x3621('0xa6'),_0x474d54),this[_0x3621('0xab')][_0x3621('0xc9')](_0xc7517[_0x3621('0xfa')](_0x3621('0xa6')),{'userId':_0x221aec}),this[_0x3621('0xab')]['set'](_0x28ac65['getAttribute'](_0x3621('0x88')),{'userId':_0x221aec});}else{const _0x3c9024=this['_revisionId']++,_0x26a15b=this[_0x3621('0x72')]++;_0xc7517[_0x3621('0x7e')](_0x3621('0xa6'),_0x3c9024),_0x28ac65[_0x3621('0x7e')](_0x3621('0x88'),_0x26a15b),_0x28ac65[_0x3621('0x7e')](_0x3621('0xa6'),_0x1241f5),this[_0x3621('0xab')][_0x3621('0xc9')](_0x3c9024,{'userId':_0x221aec}),this['_touched'][_0x3621('0xc9')](_0x26a15b,{'userId':_0x221aec});}}['_handleMarkerOperation'](_0x5a6279){if(!_0x5a6279[_0x3621('0xc0')])return;const _0x3f63d3=(_0x5a6279=this[_0x3621('0x10a')](_0x5a6279,this[_0x3621('0x11')]))[_0x3621('0x2f')]?_0x5a6279[_0x3621('0x2f')][_0x3621('0x85')]:null,_0x2e8660=_0x5a6279[_0x3621('0x3')]?_0x5a6279[_0x3621('0x3')][_0x3621('0x85')]:null;_0x3f63d3&&this[_0x3621('0xf7')][_0x3621('0x27')](_0x5a6279[_0x3621('0x7')]),_0x2e8660&&this[_0x3621('0xf7')][_0x3621('0xc9')](_0x5a6279[_0x3621('0x7')],_0x5a6279['newRange'][_0x3621('0x1e')]());const _0x574d57=null===_0x5a6279[_0x3621('0x105')]?null:_0x5a6279[_0x3621('0x105')]||this[_0x3621('0x7f')][_0x3621('0xa')][_0x3621('0xea')](_0x3621('0xa5'))['me']['id'],_0x1d3966=_0x5a6279[_0x3621('0x7')];if(!this[_0x3621('0x36')][_0x3621('0xa9')](_0x1d3966))return void this['_touchedMarkers'][_0x3621('0xc9')](_0x1d3966,{'range':_0x5a6279[_0x3621('0x2f')],'userId':_0x574d57});const _0x21d0ca=this[_0x3621('0x36')][_0x3621('0xea')](_0x1d3966),_0x580998=_0x21d0ca['range'],_0x203b4f=_0x5a6279[_0x3621('0x3')];null==_0x580998&&null==_0x203b4f||_0x580998&&_0x203b4f&&_0x580998[_0x3621('0x103')](_0x203b4f)?this[_0x3621('0x36')]['delete'](_0x5a6279[_0x3621('0x7')]):_0x21d0ca[_0x3621('0x6')]=_0x574d57;}[_0x3621('0xf1')](_0x556e8a,_0x1678f2){this[_0x3621('0x11')][_0x3621('0xa9')](_0x556e8a[_0x3621('0xe9')])?this['_diffRoots']['get'](_0x556e8a[_0x3621('0xe9')])[_0x3621('0x93')]=_0x556e8a[_0x3621('0x9f')]:(this[_0x3621('0x11')][_0x3621('0xc9')](_0x556e8a[_0x3621('0xe9')],G(_0x556e8a[_0x3621('0xe9')],!0x0)),this[_0x3621('0xff')][_0x3621('0xc9')](_0x556e8a[_0x3621('0xe9')],{}),_0x1678f2&&this['_idsRoots']['set'](_0x556e8a['rootName'],G(_0x556e8a[_0x3621('0xe9')],!0x0)));const _0x9fe614=null===_0x556e8a['_authorId']?null:_0x556e8a[_0x3621('0x105')]||this[_0x3621('0x7f')][_0x3621('0xa')][_0x3621('0xea')](_0x3621('0xa5'))['me']['id'],_0x313dbb=this[_0x3621('0x4')][_0x3621('0xea')](_0x556e8a[_0x3621('0xe9')]);_0x313dbb&&_0x313dbb[_0x3621('0x6')]===_0x9fe614?this[_0x3621('0x4')][_0x3621('0x27')](_0x556e8a[_0x3621('0xe9')]):this['_touchedRoots']['set'](_0x556e8a[_0x3621('0xe9')],{'userId':_0x9fe614,'isAttached':_0x556e8a[_0x3621('0x9f')]});}[_0x3621('0x5c')](_0x59fc92){const _0xa0d1d0=this[_0x3621('0xff')]['get'](_0x59fc92[_0x3621('0x85')]['rootName']);null===_0x59fc92[_0x3621('0xba')]?delete _0xa0d1d0[_0x59fc92[_0x3621('0xb8')]]:_0xa0d1d0[_0x59fc92['key']]=_0x59fc92[_0x3621('0xba')];}}function q(_0x17e16d){const _0x430db1=G(_0x17e16d[_0x3621('0xe9')],_0x17e16d[_0x3621('0x99')]());for(const _0x3251cb of _0x17e16d[_0x3621('0xc8')]()){const _0x16aab4=_0x3251cb['_clone'](!0x0);_0x430db1[_0x3621('0xed')](_0x16aab4);}return _0x430db1;}function G(_0x22eb6d,_0x2da65d=!0x0){const _0x467cf6=new _0x9ffd96();return _0x467cf6[_0x3621('0xe9')]=_0x22eb6d,_0x467cf6[_0x3621('0x93')]=_0x2da65d,_0x467cf6[_0x3621('0x99')]=()=>_0x467cf6[_0x3621('0x93')],_0x467cf6;}function L(_0x509877,_0x252b50,_0x7d50c6){const _0x27a469=_0x3621('0xf9')==_0x509877[_0x3621('0x67')]?_0x7d50c6['createPositionAt'](_0x509877['item'],_0x3621('0x41')):_0x7d50c6[_0x3621('0xd0')](_0x509877[_0x3621('0xd1')]);return _0x7d50c6['createPositionFromPath'](_0x252b50,_0x27a469[_0x3621('0xfd')],_0x27a469[_0x3621('0x6b')]);}function W(_0x4008e6,_0x539708,_0x35636b){const _0x538a79=_0x3621('0x81')==_0x4008e6['type']?_0x35636b[_0x3621('0x46')](_0x4008e6[_0x3621('0xd1')],0x0):_0x35636b[_0x3621('0xde')](_0x4008e6[_0x3621('0xd1')]);return _0x35636b[_0x3621('0x5d')](_0x539708,_0x538a79[_0x3621('0xfd')],_0x538a79['stickiness']);}
23
+ const _0x6b6e=['reverse','children','push','getAttribute','rootsAttributes','oldRange','createPositionAt','previousPosition','NEGATIVE_INFINITY','offset','_touchedMarkers','_findInsertionIndex','revision','ready','_replaceEditorDataWithRevisionData','getRevisionRootsAttributes','loadState','getRevisionDocumentData','bind','add','map','string','includes','_getVidAttributeName','creatorId','getAttributes','text','getNodeByPath','tableCell','_revisionDataBuilder','fromVersion','getUser','trim','reInit','length','_handleInsertOperation','processor','Users','set','baseVersion','default','_revisionId','_clone','_makeModelFromViewString','_isInit','type','filter','useFillerType','removeRootAttribute','_fixPosition','setSource','plugins','keys','config','_setConversion','_handleMergeOperation','_touched','_execute','start','_operations','history','move','isAttached','revision-start','_startingVersion','getOperation','root','init','attributesBefore','_fixRange','getWalker','graveyardPosition','end','editing','values','key','forEach','getRootNames','toVersion','remove','attributes','size','insertions','stringify','PENDING_ACTION_REVISION_HISTORY','view','find','_insertChild','saveRevision','requires','_removeMetaData','isEqual','$graveyard','_markChanges','attachChange','_isPendingUpdate','markerToData','_reset','position','RealTimeCollaborationClient','initial','newRange','conversion','_prepareViewToSave','_getViewJson','currentRevision','createRangeIn','dataDowncast','clone','_savedMetaData','finally','authors','insertion','_handleMoveOperation','has','_fixOperation','changeRootAttribute','splitPosition','_processRootBeforeSave','_makeRevision','range','_baseRootsAttributes','addRevisionData','getRevisions','setRevisionData','authorsIds','_transformMarkers','createPositionFromPath','_loadedStateData','rootName','slice','sendBufferedUpdates','_handleOperation','_removePendingAction','_pendingAction','offsetSize','data-revision-','_authorId','_diffRoots','element','_copyMarkers','detachRoot','_calculateMetaData','editor','paragraph','_removeRevisionMarkers','afterInit','addRoot','_createCurrentRevision','_lastFrom','isAdd','createRange','pluginName','_createInitialRevision','_handleRootOperation','childCount','_createFromRanges','reinsert','toModel','getCurrentRevisionId','elementStart','document','startsWith','_handleRootAttributeOperation','diffData','get','initialData','delete','name','getLatestVersion','marker','markers','repository','isEnabled','collaboration.channelId','deletions','getMovedRangeStart','hasContent','parse','$text','_diffRootsAttributes','_bufferUpdate','getTransformedByOperation','_appendChild','RevisionsRepository','_markers','resolve','version','_initialRevisionId','model','getAncestors','parent','upcast','_baseRoots','then','_loadState','for','isReady','define','_update','vid','_startingRevisionId','insertionPosition','revision:','_getBaseVids','getRoot','editor-initial-data-replaced-with-revision-data','addRevision','roots','locale','_baseIdsRoots','source','_getFromVersion','vid_end','merge','from','clear','getIndex','_saveMetaData','_loadRevisionData','item','stickiness','_handleMarkerOperation','getChildren','targetPosition','update','attributesAfter','userId','getData','sort','elementEnd','getTime','updateRevisions','_touchedRoots','fromEntries','_source','PendingActions','adapter','toView','_addPendingAction','_setAttribute','documentFragment','_idsRoots','revisionHistory.resumeUnsavedRevision','_getState','getRevision','_isAttached','vid_start','data','creator','deletion','getChild','createPositionAfter','_applyOperations','_lastTo','Empty\x20document','sourcePosition','newValue','Initial\x20revision','_handleSplitOperation','RevisionTracker','getRange','path','_bufferedUpdates','buildRevisionData','createdAt','_generateTape','_continueCurrentRevision','_makeIdsRoot','_cloneOperation','split','createPositionBefore','nodeAfter','dataToMarker'];(function(_0x2022bc,_0x6b6e57){const _0x40a526=function(_0x2efbf9){while(--_0x2efbf9){_0x2022bc['push'](_0x2022bc['shift']());}};_0x40a526(++_0x6b6e57);}(_0x6b6e,0xeb));const _0x40a5=function(_0x2022bc,_0x6b6e57){_0x2022bc=_0x2022bc-0x0;let _0x40a526=_0x6b6e[_0x2022bc];return _0x40a526;};import{Users as _0x5605d1}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x416c63,PendingActions as _0x2a5ab2}from'ckeditor5/src/core';import{logWarning as _0x509553,uid as _0x4eeb9d}from'ckeditor5/src/utils';import{Position as _0x1910f0,Range as _0xe90a70,Element as _0x2cfefd,DocumentFragment as _0x7d7b49,ViewText as _0x1e3b18,ViewElement as _0x331361,ViewContainerElement as _0x289149,ViewAttributeElement as _0x383677,ViewEmptyElement as _0x1b068d,ViewRawElement as _0xa9f676,ViewUIElement as _0x2d6a77,ViewDocumentFragment as _0x180ae4}from'ckeditor5/src/engine';import _0x3ca1d2 from'./revisionsrepository';import{getTranslation as _0x51b9d6}from'./utils/common-translations';import{cloneDeep as _0xb59dd7,isEqual as _0x4779c8}from'lodash-es';const B={'c':_0x289149,'a':_0x383677,'e':_0x1b068d,'r':_0xa9f676,'u':_0x2d6a77};export default class l extends _0x416c63{static get[_0x40a5('0xbf')](){return _0x40a5('0x19');}static get[_0x40a5('0x80')](){return[_0x5605d1,_0x3ca1d2,_0x2a5ab2];}constructor(_0x3b7a7d){super(_0x3b7a7d),this[_0x40a5('0x2')]=null,this[_0x40a5('0x90')]=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0x40a5('0xe3')]=this[_0x40a5('0xb6')][_0x40a5('0x5c')][_0x40a5('0xcc')](_0x40a5('0xd5'))||_0x40a5('0x8b'),this['_bufferedUpdates']=new Map(),this[_0x40a5('0xa7')]=null;const _0x57dc42=_0x4eeb9d();this['_source']={'history':this['editor'][_0x40a5('0xe4')][_0x40a5('0xc8')][_0x40a5('0x63')],'getLatestVersion':()=>Promise['resolve'](this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')][_0x40a5('0xe2')]),'getCurrentRevisionId':()=>_0x57dc42},this[_0x40a5('0x4d')](_0x40a5('0xec'),!0x1),this['set'](_0x40a5('0xd4'),!0x0),this['set']('_isPendingUpdate',!0x1),this['editor'][_0x40a5('0x5c')][_0x40a5('0xed')](_0x40a5('0x8'),!0x0),this[_0x40a5('0xb6')][_0x40a5('0x8d')][_0x40a5('0xeb')](_0x40a5('0xe7'))[_0x40a5('0x26')]({'view':_0x40a5('0x33')});}[_0x40a5('0x6a')](){this['repository']=this[_0x40a5('0xb6')][_0x40a5('0x5a')]['get'](_0x40a5('0xdf')),this[_0x40a5('0x5d')](),this[_0x40a5('0xb6')][_0x40a5('0xd')]['on'](_0x40a5('0x34'),()=>{const _0x246b11=this[_0x40a5('0xd3')][_0x40a5('0xa')](0x0),_0x452e07=_0x246b11&&null===_0x246b11[_0x40a5('0xe')]?_0x246b11:null;if(this[_0x40a5('0x20')]=!!_0x452e07&&this['editor'][_0x40a5('0x5c')]['get'](_0x40a5('0x8')),this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0x99')](_0x40a5('0x8a'))){const _0x2eff94=this[_0x40a5('0x0')][_0x40a5('0xc6')](),_0x39fe59=this['repository'][_0x40a5('0xa')](_0x2eff94);if(_0x39fe59)this[_0x40a5('0x67')]=_0x39fe59[_0x40a5('0x45')],this[_0x40a5('0x20')]=!0x1;else{const _0x4f5fd3=this[_0x40a5('0x0')][_0x40a5('0x63')][_0x40a5('0x62')][_0x40a5('0x7d')](_0x5d9907=>!_0x5d9907[_0x40a5('0x53')]),_0x180ea9=_0x4f5fd3?_0x4f5fd3['baseVersion']:this[_0x40a5('0x0')][_0x40a5('0x63')][_0x40a5('0xe2')];_0x246b11?(_0x246b11[_0x40a5('0x75')]<_0x180ea9&&_0x246b11['_update']({'toVersion':_0x180ea9}),this[_0x40a5('0x20')]?(this[_0x40a5('0x0')]['getCurrentRevisionId']=()=>_0x452e07['id'],this[_0x40a5('0x67')]=_0x452e07[_0x40a5('0x45')]):(this[_0x40a5('0x67')]=_0x246b11[_0x40a5('0x75')],this[_0x40a5('0x20')]=!0x1)):(this['_startingVersion']=_0x180ea9,this[_0x40a5('0x20')]=!0x1);}}else _0x452e07&&(this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')]['history'][_0x40a5('0xe2')]=Math['max'](_0x452e07[_0x40a5('0x75')],this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')]['history']['version']),_0x452e07[_0x40a5('0x45')]===_0x452e07[_0x40a5('0x75')]?(0x0!==_0x452e07[_0x40a5('0x45')]&&(this[_0x40a5('0x0')]['getCurrentRevisionId']=()=>_0x452e07['id']),this[_0x40a5('0x20')]=!0x1):this[_0x40a5('0x20')]&&(this[_0x40a5('0x0')][_0x40a5('0xc6')]=()=>_0x452e07['id'],this['_startingVersion']=_0x452e07[_0x40a5('0x45')])),this['_continueCurrentRevision']||(this[_0x40a5('0x67')]=this[_0x40a5('0xb6')]['model'][_0x40a5('0xc8')][_0x40a5('0xe2')]);this[_0x40a5('0x44')][_0x40a5('0x6a')](this[_0x40a5('0x0')][_0x40a5('0x63')]),this[_0x40a5('0xc0')](this[_0x40a5('0x67')]),this[_0x40a5('0xbb')](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x40a5('0x39')](_0x40a5('0xec'))['to'](this,_0x40a5('0x86'),_0x57cc56=>!_0x57cc56);}async[_0x40a5('0xb9')](){if(this[_0x40a5('0xd3')]['length']>0x0){const _0x4f975c=this[_0x40a5('0xd3')][_0x40a5('0xa')](0x0),_0x19a3a9=await this['getRevisionDocumentData'](_0x4f975c),_0xccd228=await this['getRevisionRootsAttributes'](_0x4f975c);this[_0x40a5('0x35')](_0x19a3a9,_0xccd228);}}[_0x40a5('0x59')](_0x564739){this['_source']=_0x564739;}async[_0x40a5('0x108')](){const _0x251432=await this[_0x40a5('0x0')][_0x40a5('0xd0')]();if(_0x251432>this['currentRevision'][_0x40a5('0x75')]){await this['_loadState']();const _0x22ebdc=this[_0x40a5('0x1d')]({'revision':this[_0x40a5('0x90')],'to':_0x251432});_0x22ebdc['authors']=_0x22ebdc[_0x40a5('0xa4')][_0x40a5('0x3b')](_0x1ae1f0=>this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0xcc')]('Users')[_0x40a5('0x46')](_0x1ae1f0)),this[_0x40a5('0x90')][_0x40a5('0xee')](_0x22ebdc);}}async['_loadState'](){this[_0x40a5('0x20')]&&!this[_0x40a5('0xa7')]&&(await this[_0x40a5('0x102')](this[_0x40a5('0x90')]),this[_0x40a5('0x44')][_0x40a5('0x37')](this['currentRevision']),this[_0x40a5('0xa7')]={'fromVersion':this[_0x40a5('0x90')][_0x40a5('0x45')],'authors':this[_0x40a5('0x90')][_0x40a5('0x96')][_0x40a5('0xa9')]()});}async[_0x40a5('0x7f')](_0xe48522={},_0x9f691=null){const _0x29517e=[];await this[_0x40a5('0xea')](),this['_continueCurrentRevision']=!0x1,_0x9f691>this[_0x40a5('0x90')]['toVersion']&&(_0x9f691=null),null===_0x9f691&&(_0x9f691=await this[_0x40a5('0x0')][_0x40a5('0xd0')]());const _0x4dfdc8=this['_getFromVersion'](_0x9f691),_0x16c271=this[_0x40a5('0x1d')]({'from':_0x4dfdc8,'to':_0x9f691});if(this[_0x40a5('0x90')][_0x40a5('0x75')]<_0x9f691){const _0x57694a=this[_0x40a5('0x1d')]({'revision':this['currentRevision'],'from':_0x9f691,'to':_0x9f691});_0x57694a[_0x40a5('0x96')]=[],_0x57694a[_0x40a5('0xa4')]=[],_0x57694a['id']=this[_0x40a5('0x90')]['id'],this[_0x40a5('0x90')][_0x40a5('0xee')](_0x57694a,!0x0),delete _0x57694a[_0x40a5('0x96')],_0x29517e[_0x40a5('0x29')](_0x57694a);}_0xe48522[_0x40a5('0x3f')]=this[_0x40a5('0xb6')]['plugins']['get'](_0x40a5('0x4c'))['me']['id'],_0xe48522[_0x40a5('0xcf')]=_0xe48522['name']||null,_0xe48522['id']=_0xe48522['id']||_0x4eeb9d(),_0xe48522={..._0xe48522,..._0x16c271};const _0x4662b0=this[_0x40a5('0xa1')](_0xe48522);_0x29517e['push'](_0xe48522);const _0x51b82e=this[_0x40a5('0xd3')][_0x40a5('0x100')](_0x4662b0);if(0x0!==_0x51b82e){const _0x1adfaf=this[_0x40a5('0xd3')][_0x40a5('0xa')](_0x51b82e-0x1);if(_0x1adfaf[_0x40a5('0x45')]!==_0x9f691){const _0x314723=this['_revisionDataBuilder']['getData'](_0x9f691,_0x1adfaf['toVersion']),_0x12d45d={'id':_0x1adfaf['id'],'diffData':_0x314723[_0x40a5('0xcb')],'authorsIds':_0x314723[_0x40a5('0xa4')],'authors':_0x314723[_0x40a5('0xa4')][_0x40a5('0x3b')](_0x49be17=>this[_0x40a5('0xb6')]['plugins'][_0x40a5('0xcc')](_0x40a5('0x4c'))[_0x40a5('0x46')](_0x49be17)),'fromVersion':_0x9f691};_0x1adfaf===this[_0x40a5('0x90')]&&(_0x12d45d[_0x40a5('0x1e')]=new Date(_0xe48522[_0x40a5('0x1e')][_0x40a5('0x10e')]()+0xa)),_0x1adfaf[_0x40a5('0xee')](_0x12d45d,!0x0),delete _0x12d45d['authors'],_0x29517e[_0x40a5('0x29')](_0x12d45d);}}if(this[_0x40a5('0x2')]){for(const _0xb8d4e2 of _0x29517e)this[_0x40a5('0xdc')](_0xb8d4e2['id'],_0xb8d4e2,!0x0);this['sendBufferedUpdates']();}return _0x4662b0;}[_0x40a5('0xa1')](_0x2580fb){const _0x11d29e=this[_0x40a5('0xd3')]['createRevision'](_0x2580fb);return this[_0x40a5('0x2')]&&_0x11d29e['on'](_0x40a5('0xee'),(_0x40918c,_0x246a69,_0x1f2f39)=>{_0x1f2f39||(this['_bufferUpdate'](_0x246a69['id'],_0x246a69,!0x0),this[_0x40a5('0xaa')]());}),this[_0x40a5('0xd3')][_0x40a5('0xf6')](_0x11d29e,this[_0x40a5('0x32')](_0x11d29e)),_0x11d29e;}async[_0x40a5('0x38')](_0x54be28){await this[_0x40a5('0x102')](_0x54be28);const _0x148bbe={};for(const _0x299eb6 in _0x54be28[_0x40a5('0xcb')]){if(_0x54be28[_0x40a5('0xcb')][_0x299eb6]['attachChange']&&!_0x54be28[_0x40a5('0xcb')][_0x299eb6][_0x40a5('0x85')][_0x40a5('0x65')])continue;const _0x566751=this[_0x40a5('0xb8')](JSON[_0x40a5('0xd9')](_0x54be28['diffData'][_0x299eb6][_0x40a5('0x79')])),_0x6cb56d=this[_0x40a5('0xb6')][_0x40a5('0x70')]['view'][_0x40a5('0xc8')],_0x5f404b=new _0x180ae4(_0x6cb56d,_0x566751[_0x40a5('0x3b')](_0x15fb54=>J(_0x15fb54,this[_0x40a5('0xb6')])));this[_0x40a5('0xb6')][_0x40a5('0xd')]['processor'][_0x40a5('0x56')]('marked'),_0x148bbe[_0x299eb6]=this[_0x40a5('0xb6')][_0x40a5('0xd')][_0x40a5('0x4b')]['toData'](_0x5f404b),this[_0x40a5('0xb6')][_0x40a5('0xd')]['processor'][_0x40a5('0x56')](_0x40a5('0x4f'));}return _0x148bbe;}async[_0x40a5('0x36')](_0x45a6ae){await this[_0x40a5('0x102')](_0x45a6ae);const _0x133e8d={};for(const _0x449f3e in _0x45a6ae['diffData'])_0x45a6ae['diffData'][_0x449f3e]['attachChange']&&!_0x45a6ae[_0x40a5('0xcb')][_0x449f3e][_0x40a5('0x85')][_0x40a5('0x65')]||(_0x133e8d[_0x449f3e]=_0x45a6ae['diffData'][_0x449f3e][_0x40a5('0x109')]||{});return _0x133e8d;}[_0x40a5('0xaa')](){if(0x0===this[_0x40a5('0x1c')][_0x40a5('0x78')])return;if(this['_isPendingUpdate'])return;let _0x302695=Array[_0x40a5('0xfe')](this[_0x40a5('0x1c')]['values']());this['_bufferedUpdates']['clear']();for(let _0x1fa7bf=0x0;_0x1fa7bf<_0x302695[_0x40a5('0x49')];_0x1fa7bf++){const _0x208705=_0x302695[_0x1fa7bf];let _0x22a806=!0x1;for(const _0x588468 of Object[_0x40a5('0x5b')](_0x208705))void 0x0===_0x208705[_0x588468]?delete _0x208705[_0x588468]:'id'!==_0x588468&&(_0x22a806=!0x0);_0x22a806||(_0x302695[_0x1fa7bf]=null);}if(_0x302695=_0x302695[_0x40a5('0x55')](_0x2070cb=>null!==_0x2070cb),!_0x302695[_0x40a5('0x49')])return;for(let _0x186129=0x0;_0x186129<_0x302695[_0x40a5('0x49')];_0x186129++){const _0x44a73e=_0x302695[_0x186129];void 0x0!==_0x44a73e[_0x40a5('0x45')]&&void 0x0===_0x44a73e[_0x40a5('0x75')]&&(_0x44a73e['toVersion']=this['repository']['getRevision'](_0x44a73e['id'])['toVersion']),void 0x0!==_0x44a73e[_0x40a5('0x75')]&&void 0x0===_0x44a73e[_0x40a5('0x45')]&&(_0x44a73e['fromVersion']=this[_0x40a5('0xd3')][_0x40a5('0xa')](_0x44a73e['id'])[_0x40a5('0x45')]);}const _0x46850a=this[_0x40a5('0xb6')]['config'][_0x40a5('0xcc')](_0x40a5('0xd5'));this[_0x40a5('0x86')]=!0x0,this[_0x40a5('0x4')](),this[_0x40a5('0x2')][_0x40a5('0x10f')](_0x302695,_0x46850a)[_0x40a5('0x95')](()=>{this[_0x40a5('0x86')]=!0x1;})[_0x40a5('0xe9')](_0x4e19e5=>{if(_0x4e19e5)for(const _0x331c72 of _0x4e19e5)this[_0x40a5('0xa3')]({'id':_0x331c72['id'],'createdAt':_0x331c72[_0x40a5('0x1e')]});this[_0x40a5('0xac')](),this[_0x40a5('0xaa')]();});}[_0x40a5('0x35')](_0xebb956,_0x442f60){let _0x24c8d4=this[_0x40a5('0xb6')][_0x40a5('0x5c')]['get'](_0x40a5('0xcd')),_0x2e535c=this['editor'][_0x40a5('0x5c')][_0x40a5('0xcc')](_0x40a5('0x2b'));if(void 0x0===_0x24c8d4){_0x24c8d4={};for(const _0x5dcb3d of this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')][_0x40a5('0x74')]())_0x24c8d4[_0x5dcb3d]='';}if(_0x40a5('0x3c')==typeof _0x24c8d4&&(_0x24c8d4={'main':_0x24c8d4}),void 0x0===_0x2e535c){_0x2e535c={};for(const _0x276f8e of this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')][_0x40a5('0x74')]())_0x2e535c[_0x276f8e]={};}let _0x360e64=!0x1;const _0x536a09=Object[_0x40a5('0x5b')](_0x24c8d4),_0x3508e5=Object[_0x40a5('0x5b')](_0xebb956);for(const _0xa56c77 of _0x536a09){if(_0x24c8d4[_0xa56c77]!==_0xebb956[_0xa56c77]&&''!==_0x24c8d4[_0xa56c77][_0x40a5('0x47')]()){_0x360e64=!0x0;break;}if(!_0x4779c8(_0x2e535c[_0xa56c77],_0x442f60[_0xa56c77])&&Object['keys'](_0x2e535c[_0xa56c77])[_0x40a5('0x49')]>0x0){_0x360e64=!0x0;break;}}_0x360e64||(_0x360e64=_0x3508e5['some'](_0x4253ce=>!this[_0x40a5('0xb6')][_0x40a5('0xe4')]['document'][_0x40a5('0xf4')](_0x4253ce))),_0x360e64&&_0x509553(_0x40a5('0xf5'),{'editorData':_0x24c8d4,'editorRootsAttributes':_0x2e535c,'revisionData':_0xebb956,'revisionRootsAttributes':_0x442f60}),this[_0x40a5('0xb6')]['config'][_0x40a5('0x4d')](_0x40a5('0xcd'),_0xebb956),this[_0x40a5('0xb6')][_0x40a5('0x5c')][_0x40a5('0x4d')](_0x40a5('0x2b'),_0x442f60);}['_addPendingAction'](){if(!this[_0x40a5('0xad')]){const _0x13dc8e=this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x1'));this[_0x40a5('0xad')]=_0x13dc8e[_0x40a5('0x3a')](_0x51b9d6(this[_0x40a5('0xb6')]['locale'],_0x40a5('0x7b')));}}[_0x40a5('0xac')](){this[_0x40a5('0xad')]&&(this[_0x40a5('0xb6')]['plugins']['get'](_0x40a5('0x1'))[_0x40a5('0x76')](this[_0x40a5('0xad')]),this[_0x40a5('0xad')]=null);}[_0x40a5('0x32')](_0x2156d1){const _0x595259=this['repository'][_0x40a5('0xa2')]();_0x595259[_0x40a5('0x27')]();let _0x311a9f=0x0;for(;_0x311a9f<_0x595259[_0x40a5('0x49')];){const _0x1d29fc=_0x595259[_0x311a9f];if(_0x1d29fc===this[_0x40a5('0x90')]){_0x311a9f++;continue;}if(_0x1d29fc['id']===this['_initialRevisionId'])break;const _0x3ebef7=_0x2156d1[_0x40a5('0x75')]-_0x1d29fc[_0x40a5('0x75')]||_0x2156d1[_0x40a5('0x45')]-_0x1d29fc['fromVersion'];if(_0x3ebef7>0x0)break;if(_0x3ebef7<0x0)_0x311a9f++;else{if(!_0x2156d1[_0x40a5('0xe')]&&_0x1d29fc[_0x40a5('0xe')])break;if(_0x1d29fc[_0x40a5('0xe')]||!_0x2156d1['creator']){if(_0x2156d1['createdAt']>_0x1d29fc[_0x40a5('0x1e')])break;_0x311a9f++;}else _0x311a9f++;}}return _0x311a9f;}[_0x40a5('0xa3')](_0x51d4e5){const _0xbb403e=this[_0x40a5('0xd3')][_0x40a5('0xa')](_0x51d4e5['id']);if(_0x51d4e5[_0x40a5('0x1e')]&&(_0x51d4e5[_0x40a5('0x1e')]=new Date(_0x51d4e5[_0x40a5('0x1e')])),_0x51d4e5[_0x40a5('0xa4')]){const _0x56ac40=this[_0x40a5('0xb6')][_0x40a5('0x5a')]['get'](_0x40a5('0x4c'));_0x51d4e5[_0x40a5('0x96')]=_0x51d4e5[_0x40a5('0xa4')][_0x40a5('0x3b')](_0x3d5fdd=>_0x56ac40['getUser'](_0x3d5fdd));}_0xbb403e[_0x40a5('0xee')](_0x51d4e5,!0x0);}['buildRevisionData']({revision:_0x47f713=null,from:_0x5d01ad=null,to:_0x22c42e=null}){_0x5d01ad=null!==_0x5d01ad?_0x5d01ad:_0x47f713[_0x40a5('0x45')],_0x22c42e=null!==_0x22c42e?_0x22c42e:_0x47f713['toVersion'];const _0x192eea=this[_0x40a5('0x44')][_0x40a5('0x10b')](_0x5d01ad,_0x22c42e),_0x2fb127={'diffData':_0x192eea[_0x40a5('0xcb')],'authorsIds':_0x192eea[_0x40a5('0xa4')],'fromVersion':_0x5d01ad,'toVersion':_0x22c42e};if(!_0x47f713||_0x22c42e!==_0x47f713[_0x40a5('0x75')]){const _0x19cb5e=_0x22c42e-0x1,_0x1bfea7=this[_0x40a5('0x0')][_0x40a5('0x63')][_0x40a5('0x68')](_0x19cb5e);_0x2fb127[_0x40a5('0x1e')]=_0x1bfea7&&_0x1bfea7[_0x40a5('0x1e')]||new Date();}if(this[_0x40a5('0xa7')]&&_0x5d01ad===this['_loadedStateData']['fromVersion'])for(const _0x1bb227 of this[_0x40a5('0xa7')]['authors'])_0x2fb127['authorsIds'][_0x40a5('0x3d')](_0x1bb227['id'])||_0x2fb127['authorsIds'][_0x40a5('0x29')](_0x1bb227['id']);return _0x2fb127;}[_0x40a5('0x102')](_0x5fdd27){if(!_0x5fdd27||_0x5fdd27[_0x40a5('0xcb')])return Promise[_0x40a5('0xe1')]();{const _0x559b86=this[_0x40a5('0xb6')][_0x40a5('0x5c')][_0x40a5('0xcc')]('collaboration.channelId');return this[_0x40a5('0x2')]['getRevision']({'channelId':_0x559b86,'revisionId':_0x5fdd27['id']})[_0x40a5('0xe9')](_0x922f05=>{_0x5fdd27['diffData']=_0x922f05[_0x40a5('0xcb')];});}}[_0x40a5('0xdc')](_0x328df5,_0x1839ca,_0x4a167f){if(this[_0x40a5('0x1c')]['has'](_0x328df5)){const _0xd1c982=this[_0x40a5('0x1c')]['get'](_0x328df5);_0x1839ca=_0x4a167f?{..._0xd1c982,..._0x1839ca}:{..._0x1839ca,..._0xd1c982};}this[_0x40a5('0x1c')][_0x40a5('0x4d')](_0x328df5,_0x1839ca);}[_0x40a5('0xfb')](_0x33e04b){const _0x5f1a4c=this[_0x40a5('0xd3')]['getRevisions']();_0x5f1a4c[_0x40a5('0x27')](),_0x5f1a4c['shift']();const _0x2c3858=_0x5f1a4c[_0x40a5('0x7d')](_0x19c825=>_0x19c825[_0x40a5('0x75')]<=_0x33e04b)[_0x40a5('0x75')];return _0x2c3858<this[_0x40a5('0x67')]?this[_0x40a5('0x67')]:_0x2c3858;}['_createInitialRevision'](_0x103f01){const _0x12c487=this['repository'][_0x40a5('0xa')](this[_0x40a5('0xd3')][_0x40a5('0x49')]-0x1);if(_0x12c487)this[_0x40a5('0xe3')]=_0x12c487['id'];else{const _0x3994b9=!this['editor'][_0x40a5('0xe4')][_0x40a5('0xc8')][_0x40a5('0xf7')][_0x40a5('0x7d')](_0x43d71c=>this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xd8')](_0x43d71c)),_0x55878c=this[_0x40a5('0xb6')][_0x40a5('0x5a')]['get'](_0x40a5('0x4c'))['me']['id'],_0x491801=_0x51b9d6(this['editor'][_0x40a5('0xf8')],_0x3994b9?_0x40a5('0x14'):_0x40a5('0x17'));this[_0x40a5('0x9e')]({'from':_0x103f01,'to':_0x103f01,'id':this[_0x40a5('0xe3')],'name':_0x491801,'creatorId':_0x55878c});}}['_createCurrentRevision'](_0x4b6bad){const _0x305ebf=this[_0x40a5('0x0')]['getCurrentRevisionId']();this['currentRevision']=this[_0x40a5('0xd3')][_0x40a5('0xa')](_0x305ebf),this['currentRevision']||(this['currentRevision']=this[_0x40a5('0x9e')]({'from':_0x4b6bad,'to':_0x4b6bad,'id':_0x305ebf,'name':'','creatorId':null}));}[_0x40a5('0x9e')]({name:_0x567fe4,from:_0x191224,to:_0x204543,creatorId:_0x41aa0f,id:_0x1c807f}){const _0x8a4791=this[_0x40a5('0x1d')]({'from':_0x191224,'to':_0x204543});_0x8a4791[_0x40a5('0xcf')]=_0x567fe4,_0x8a4791[_0x40a5('0x3f')]=_0x41aa0f,_0x8a4791['id']=_0x1c807f;const _0x4c72f2=this[_0x40a5('0xa1')](_0x8a4791);return this[_0x40a5('0x2')]&&this['_bufferUpdate'](_0x8a4791['id'],_0x8a4791,!0x0),_0x4c72f2;}[_0x40a5('0x5d')](){this['editor']['conversion'][_0x40a5('0xeb')](_0x40a5('0x92'))[_0x40a5('0x87')]({'model':'revision'});}[_0x40a5('0xb8')](_0x585275){return(_0x585275=_0x585275[_0x40a5('0x55')](_0x2e8c6b=>!_0x2e8c6b[_0x40a5('0xcf')]||_0x40a5('0x66')!==_0x2e8c6b['name']&&'revision-end'!==_0x2e8c6b['name']))[_0x40a5('0x73')](_0x576659=>{_0x40a5('0x3c')!=typeof _0x576659&&(_0x576659['children']=this[_0x40a5('0xb8')](_0x576659[_0x40a5('0x28')]),_0x576659['attributes']=_0x576659[_0x40a5('0x77')]['filter'](_0x5ead9d=>!_0x5ead9d[0x0][_0x40a5('0xc9')](_0x40a5('0xaf'))));}),_0x585275;}}function J(_0x416a18,_0x167577){const _0xa45f3d=_0x167577[_0x40a5('0x70')][_0x40a5('0x7c')][_0x40a5('0xc8')];if(_0x40a5('0x3c')==typeof _0x416a18)return new _0x1e3b18(_0xa45f3d,_0x416a18);{const _0x1afee7=_0x416a18['children'][_0x40a5('0x3b')](_0x40c254=>J(_0x40c254,_0x167577));return new(B[_0x416a18[(_0x40a5('0x54'))]]||_0x331361)(_0xa45f3d,_0x416a18[_0x40a5('0xcf')],_0x416a18[_0x40a5('0x77')],_0x1afee7);}}class H{constructor(_0x2d018a){this[_0x40a5('0xb6')]=_0x2d018a,this[_0x40a5('0x94')]=new Map(),this[_0x40a5('0xbc')]=-0x1,this[_0x40a5('0x13')]=-0x1,this[_0x40a5('0xe0')]=new Map(),this['_diffRoots']=new Map(),this[_0x40a5('0xdb')]=new Map(),this[_0x40a5('0xe8')]=new Map(),this[_0x40a5('0xa0')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0x40a5('0x5f')]=new Map(),this[_0x40a5('0x31')]=new Map(),this[_0x40a5('0x110')]=new Map(),this['_revisionId']=0x1;}['init'](_0x5790f8){this[_0x40a5('0xfa')]=_0x5790f8;const _0x3a06f5=new Map(),_0xc8d7fe=new Map(),_0x1443fe=this[_0x40a5('0xb6')]['model'][_0x40a5('0xc8')][_0x40a5('0xf7')]['map'](_0x1c4fdf=>_0x1c4fdf[_0x40a5('0xa8')]);for(const _0x3b73ab of _0x1443fe){const _0x28cf91=this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xc8')]['getRoot'](_0x3b73ab),_0x13544a=q(_0x28cf91);_0x3a06f5[_0x40a5('0x4d')](_0x3b73ab,_0x13544a),_0xc8d7fe['set'](_0x3b73ab,Object[_0x40a5('0x111')](_0x28cf91[_0x40a5('0x40')]()));}const _0x4bb451=Array['from'](this[_0x40a5('0xb6')][_0x40a5('0xe4')]['markers'])[_0x40a5('0x3b')](_0x5e59fe=>[_0x5e59fe[_0x40a5('0xcf')],_0x5e59fe[_0x40a5('0x1a')]()]),_0x43b64a=this['source'][_0x40a5('0xe2')];this[_0x40a5('0x101')](_0x43b64a,_0x3a06f5,_0x4bb451,_0xc8d7fe),this[_0x40a5('0xf0')]=this[_0x40a5('0x50')];const _0xaa0bc2=new Map(),_0xf9c637=new Map();for(const _0x1fa1a7 of _0x1443fe){const _0xe2b32=G(_0x1fa1a7);_0xaa0bc2[_0x40a5('0x4d')](_0x1fa1a7,_0xe2b32),_0xf9c637[_0x40a5('0x4d')](_0x1fa1a7,{});}this['_saveMetaData'](Number[_0x40a5('0x2f')],_0xaa0bc2,[],_0xf9c637);}[_0x40a5('0x10b')](_0x48734f,_0x25928f){if(this[_0x40a5('0xbc')]===_0x48734f&&this['_lastTo']<=_0x25928f)this[_0x40a5('0x94')]['size']>0x1&&this[_0x40a5('0x81')](this[_0x40a5('0x13')]),this[_0x40a5('0x12')](this[_0x40a5('0x13')],_0x25928f,!0x0);else{if(!this[_0x40a5('0x94')][_0x40a5('0x99')](_0x48734f)){const _0x28db0a=this['_getPreviousFrom'](_0x48734f);this[_0x40a5('0xb5')](_0x28db0a,_0x48734f,!0x1);}this[_0x40a5('0xb5')](_0x48734f,_0x25928f,!0x0);}return this[_0x40a5('0xbc')]=_0x48734f,this[_0x40a5('0x13')]=_0x25928f,this[_0x40a5('0x9')]();}[_0x40a5('0x37')](_0x11d804){this[_0x40a5('0x88')](),this[_0x40a5('0xbc')]=_0x11d804['fromVersion'],this[_0x40a5('0x13')]=_0x11d804[_0x40a5('0x75')];for(const _0x3f7eff in _0x11d804[_0x40a5('0xcb')]){const _0x2a8160=_0x11d804[_0x40a5('0xcb')][_0x3f7eff]['attachChange'],_0x5c6b7d=_0xb59dd7(_0x11d804[_0x40a5('0xcb')][_0x3f7eff][_0x40a5('0x6b')])||{},_0x22a715=this[_0x40a5('0x52')](_0x11d804[_0x40a5('0xcb')][_0x3f7eff][_0x40a5('0xd6')]);_0x22a715[_0x40a5('0xa8')]=_0x3f7eff,_0x22a715[_0x40a5('0xb')]=!_0x2a8160||!_0x2a8160[_0x40a5('0x65')],_0x22a715[_0x40a5('0x65')]=()=>_0x22a715['_isAttached'],this[_0x40a5('0xe8')]['set'](_0x3f7eff,_0x22a715),this[_0x40a5('0xa0')][_0x40a5('0x4d')](_0x3f7eff,_0x5c6b7d),_0x2a8160&&this[_0x40a5('0x110')]['set'](_0x3f7eff,_0x2a8160);const _0x2e784b=this[_0x40a5('0x21')](_0x22a715);this[_0x40a5('0xf9')][_0x40a5('0x4d')](_0x3f7eff,_0x2e784b);for(const [_0x48e837,_0x1db657]of _0x22a715[_0x40a5('0xd2')]){if(!_0x48e837[_0x40a5('0xc9')](_0x40a5('0xf2')))continue;const _0x14dd34=_0x48e837['split'](':')[0x2];for(const _0x1f5618 of _0x1db657[_0x40a5('0x6d')]({'singleCharacters':!0x0})){const _0x1baac0=this[_0x40a5('0x3e')](_0x1f5618),_0x3bd143=_0x40a5('0x10d')==_0x1f5618[_0x40a5('0x54')]?_0x1f5618[_0x40a5('0x2e')][_0x40a5('0x1b')][_0x40a5('0xa9')](0x0,-0x1):_0x1f5618['previousPosition'][_0x40a5('0x1b')],_0x59b8e2=_0x2e784b[_0x40a5('0x42')](_0x3bd143)[_0x40a5('0x2a')](_0x1baac0);this[_0x40a5('0x5f')][_0x40a5('0x4d')](_0x59b8e2,{'userId':_0x14dd34});}}}this[_0x40a5('0xf0')]=this[_0x40a5('0x50')];const _0x4979a8=[...Array(this[_0x40a5('0x50')])['keys']()][_0x40a5('0xa9')](0x1)[_0x40a5('0x55')](_0x210883=>!this['_touched'][_0x40a5('0x99')](_0x210883));let _0x4ea5b0=0x0;const _0x3f53fc=new Map();for(const _0x55983f in _0x11d804[_0x40a5('0xcb')]){const _0x384d5d=_0x11d804['diffData'][_0x55983f][_0x40a5('0x85')],_0xff60d6=_0xb59dd7(_0x11d804['diffData'][_0x55983f][_0x40a5('0x109')])||{},_0x582b32=this[_0x40a5('0x52')](_0x11d804[_0x40a5('0xcb')][_0x55983f][_0x40a5('0x79')]);_0x582b32[_0x40a5('0xa8')]=_0x55983f,_0x582b32['_isAttached']=!_0x384d5d||_0x384d5d[_0x40a5('0x65')],_0x582b32['isAttached']=()=>_0x582b32[_0x40a5('0xb')],this[_0x40a5('0xb1')][_0x40a5('0x4d')](_0x55983f,_0x582b32),this[_0x40a5('0xdb')]['set'](_0x55983f,_0xff60d6);const _0x187211=this[_0x40a5('0x21')](_0x582b32,Number[_0x40a5('0x2f')]);this[_0x40a5('0x7')][_0x40a5('0x4d')](_0x55983f,_0x187211),_0x3f53fc[_0x40a5('0x4d')](_0x55983f,_0x582b32[_0x40a5('0x65')]()?_0xff60d6:{});for(const [_0x482c43,_0x10fd5f]of _0x582b32[_0x40a5('0xd2')]){if(!_0x482c43[_0x40a5('0xc9')](_0x40a5('0xf2')))continue;const _0x3374ea=_0x482c43[_0x40a5('0x23')](':')[0x2];for(const _0xafe7e9 of _0x10fd5f['getWalker']({'singleCharacters':!0x0})){const _0x113a17=this[_0x40a5('0x3e')](_0xafe7e9),_0x4be012=this[_0x40a5('0x50')]++,_0x33993b=_0x40a5('0x10d')==_0xafe7e9['type']?_0xafe7e9[_0x40a5('0x2e')]['path']['slice'](0x0,-0x1):_0xafe7e9[_0x40a5('0x2e')][_0x40a5('0x1b')];_0x187211[_0x40a5('0x42')](_0x33993b)[_0x40a5('0x5')](_0x113a17,_0x4be012),this[_0x40a5('0x5f')][_0x40a5('0x4d')](_0x4be012,{'userId':_0x3374ea});}}for(const _0x3cf388 of this[_0x40a5('0xb6')]['model'][_0x40a5('0x91')](_0x582b32)[_0x40a5('0x6d')]({'singleCharacters':!0x0})){const _0x4e8141=this['_getVidAttributeName'](_0x3cf388),_0x2fbc1d='elementEnd'==_0x3cf388[_0x40a5('0x54')]?_0x3cf388[_0x40a5('0x2e')][_0x40a5('0x1b')][_0x40a5('0xa9')](0x0,-0x1):_0x3cf388[_0x40a5('0x2e')][_0x40a5('0x1b')],_0x50c5ed=_0x187211['getNodeByPath'](_0x2fbc1d);_0x50c5ed[_0x40a5('0x2a')](_0x4e8141)>0x0||_0x50c5ed[_0x40a5('0x5')](_0x4e8141,_0x4979a8[_0x4ea5b0++]);}for(const [_0xfc1cdf,_0x2015a0]of _0x582b32[_0x40a5('0xd2')])_0xfc1cdf['startsWith'](_0x40a5('0xf2'))||this[_0x40a5('0xe0')]['set'](_0xfc1cdf,_0x2015a0);}const _0x472858=G('$graveyard');this[_0x40a5('0xe8')][_0x40a5('0x4d')]('$graveyard',_0x472858),this['_baseIdsRoots'][_0x40a5('0x4d')]('$graveyard',this['_makeIdsRoot'](_0x472858,0x1));const _0x30120d=G(_0x40a5('0x83'));this[_0x40a5('0xb1')][_0x40a5('0x4d')]('$graveyard',_0x30120d),this['_idsRoots'][_0x40a5('0x4d')](_0x40a5('0x83'),this[_0x40a5('0x21')](_0x30120d,0x1));const _0x11aefc=Array[_0x40a5('0xfe')](this['_diffRoots'])[_0x40a5('0x3b')](([_0x38dafc,_0x2f17d5])=>[_0x38dafc,q(_0x2f17d5)]);this[_0x40a5('0x101')](this['_lastTo'],_0x11aefc,this[_0x40a5('0xe0')],_0x3f53fc);}[_0x40a5('0x52')](_0x10d7e4){const _0x193b8a=JSON['parse'](_0x10d7e4),_0x36c626=this[_0x40a5('0xb6')][_0x40a5('0x70')]['view'][_0x40a5('0xc8')],_0x3f7356=new _0x180ae4(_0x36c626,_0x193b8a['map'](_0x17ea50=>J(_0x17ea50,this[_0x40a5('0xb6')])));return this['editor']['data'][_0x40a5('0xc5')](_0x3f7356);}[_0x40a5('0x101')](_0x13443b,_0x4faf1b,_0x3b001d,_0x13997b){const _0x267b86=new Map(_0x4faf1b),_0x2d1f20=new Map(_0xb59dd7(_0x13997b)),_0x3b3b13=new Map();for(const [_0x41b28d,_0x45ad93]of _0x3b001d)_0x3b3b13['set'](_0x41b28d,{'start':_0x45ad93[_0x40a5('0x61')][_0x40a5('0x93')](),'end':_0x45ad93['end']['clone'](),'rootName':_0x45ad93[_0x40a5('0x69')][_0x40a5('0xa8')]});this[_0x40a5('0x94')][_0x40a5('0x4d')](_0x13443b,{'roots':_0x267b86,'markers':_0x3b3b13,'rootsAttributes':_0x2d1f20});}['_removeMetaData'](_0x28ac4e){this[_0x40a5('0x94')][_0x40a5('0xce')](_0x28ac4e);}[_0x40a5('0x48')](){this[_0x40a5('0x88')](),this[_0x40a5('0xbc')]=-0x1,this[_0x40a5('0x13')]=-0x1,this[_0x40a5('0x94')][_0x40a5('0xff')](),this[_0x40a5('0x6a')](this[_0x40a5('0xfa')]);}[_0x40a5('0x88')](){this['_touched']['clear'](),this['_touchedMarkers'][_0x40a5('0xff')](),this[_0x40a5('0x110')][_0x40a5('0xff')](),this[_0x40a5('0xb1')][_0x40a5('0xff')](),this[_0x40a5('0xdb')][_0x40a5('0xff')](),this[_0x40a5('0xe8')][_0x40a5('0xff')](),this[_0x40a5('0xa0')][_0x40a5('0xff')](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers'][_0x40a5('0xff')](),this[_0x40a5('0x50')]=0x1,this[_0x40a5('0xf0')]=this[_0x40a5('0x50')];}[_0x40a5('0x21')](_0x23a8f3,_0x3e3862=null){let _0x239908=null;_0x23a8f3['is'](_0x40a5('0x6'))||(_0x239908=new _0x2cfefd(_0x23a8f3['name'],{'vid_start':null===_0x3e3862?this['_revisionId']++:_0x3e3862++}));const _0x439512=[];for(const _0x59b15e of _0x23a8f3[_0x40a5('0x106')]())if(_0x59b15e['is'](_0x40a5('0xb2'))){_0x439512[_0x40a5('0x29')](this[_0x40a5('0x21')](_0x59b15e,_0x3e3862));const _0xd77029=_0x439512[_0x439512['length']-0x1];null!==_0x3e3862&&(_0x3e3862=_0xd77029['is'](_0x40a5('0xb2'),_0x40a5('0xda'))?_0xd77029['getAttribute'](_0x40a5('0xef'))+0x1:_0xd77029[_0x40a5('0x2a')](_0x40a5('0xfc'))+0x1);}else for(let _0x40357d=0x0;_0x40357d<_0x59b15e[_0x40a5('0xae')];_0x40357d++)_0x439512['push'](new _0x2cfefd(_0x40a5('0xda'),{'vid':null===_0x3e3862?this[_0x40a5('0x50')]++:_0x3e3862++}));if(_0x23a8f3['is'](_0x40a5('0x6'))){const _0x13265d=G(_0x23a8f3[_0x40a5('0xa8')]);return _0x13265d['_insertChild'](0x0,_0x439512),_0x13265d;}return _0x239908['_setAttribute'](_0x40a5('0xfc'),null===_0x3e3862?this[_0x40a5('0x50')]++:_0x3e3862++),_0x239908[_0x40a5('0x7e')](0x0,_0x439512),_0x239908;}[_0x40a5('0xb5')](_0x479500,_0x2e3b96,_0x414db0){this[_0x40a5('0x88')]();const {roots:_0x1d46c5,markers:_0x2755fa,rootsAttributes:_0x4f7ac3}=this[_0x40a5('0x94')][_0x40a5('0xcc')](_0x479500);this[_0x40a5('0xe8')]=new Map(_0x1d46c5),this['_baseRootsAttributes']=new Map(_0xb59dd7(_0x4f7ac3));for(const [_0x538e4e,_0x2b6ec4]of this['_baseRoots'])if(_0x40a5('0x83')!==_0x538e4e&&(this[_0x40a5('0xb1')][_0x40a5('0x4d')](_0x538e4e,q(_0x2b6ec4)),this['_diffRootsAttributes']=new Map(_0xb59dd7(_0x4f7ac3)),_0x414db0)){const _0x27d94a=this[_0x40a5('0x50')];this['_idsRoots'][_0x40a5('0x4d')](_0x538e4e,this[_0x40a5('0x21')](_0x2b6ec4)),this['_baseIdsRoots'][_0x40a5('0x4d')](_0x538e4e,this['_makeIdsRoot'](_0x2b6ec4,_0x27d94a));}this['_startingRevisionId']=this[_0x40a5('0x50')],this[_0x40a5('0xb1')]['set'](_0x40a5('0x83'),q(this[_0x40a5('0xe8')]['get'](_0x40a5('0x83')))),_0x414db0&&this[_0x40a5('0x7')][_0x40a5('0x4d')]('$graveyard',this[_0x40a5('0x21')](this[_0x40a5('0xe8')][_0x40a5('0xcc')](_0x40a5('0x83'))));for(const [_0x38dca2,_0x5b82d5]of _0x2755fa){const _0x13c59d=this['_baseRoots']['get'](_0x5b82d5['rootName']),_0x550808=this[_0x40a5('0xb1')][_0x40a5('0xcc')](_0x5b82d5[_0x40a5('0xa8')]),_0x1cee9a=new _0xe90a70(this[_0x40a5('0x58')](_0x5b82d5['start'],_0x13c59d),this['_fixPosition'](_0x5b82d5['end'],_0x13c59d)),_0x46b314=this[_0x40a5('0x6c')](_0x1cee9a,_0x550808);_0x13c59d['markers'][_0x40a5('0x4d')](_0x38dca2,_0x1cee9a),this[_0x40a5('0xe0')][_0x40a5('0x4d')](_0x38dca2,_0x46b314);}this[_0x40a5('0x12')](_0x479500,_0x2e3b96,_0x414db0);}[_0x40a5('0x12')](_0x42ad21,_0x51f47e,_0x87b147){for(const _0x4fad46 of this[_0x40a5('0xfa')]['getOperations'](_0x42ad21,_0x51f47e))this['_handleOperation'](_0x4fad46,_0x87b147);for(const _0x2de9f3 of this[_0x40a5('0xb1')]['values']())_0x2de9f3[_0x40a5('0xd2')]['clear']();for(const [_0x3042ae,_0x9bca8b]of this['_markers']){this[_0x40a5('0xb1')]['get'](_0x9bca8b['root'][_0x40a5('0xa8')])['markers']['set'](_0x3042ae,_0x9bca8b[_0x40a5('0x93')]());}const _0x39b774=new Map(),_0x4288c1=new Map();for(const [_0xae96a8,_0xbc34c6]of this['_diffRoots'])_0x39b774[_0x40a5('0x4d')](_0xae96a8,q(_0xbc34c6)),_0x4288c1[_0x40a5('0x4d')](_0xae96a8,this[_0x40a5('0xdb')][_0x40a5('0xcc')](_0xae96a8));this['_saveMetaData'](_0x51f47e,_0x39b774,this['_markers'],_0x4288c1);}['_getPreviousFrom'](_0x4bdc06){const _0x1b4c4e=Array[_0x40a5('0xfe')](this['_savedMetaData'][_0x40a5('0x5b')]());_0x1b4c4e[_0x40a5('0x10c')]((_0x40a0c1,_0x17b2b9)=>_0x40a0c1-_0x17b2b9),_0x1b4c4e['reverse']();for(const _0x5a7a2f of _0x1b4c4e)if(_0x5a7a2f<_0x4bdc06)return _0x5a7a2f;return Number[_0x40a5('0x2f')];}[_0x40a5('0xb3')](_0x10236c,_0x27a626){const _0x506d35=Array[_0x40a5('0xfe')](_0x27a626[_0x40a5('0xd2')])[_0x40a5('0x3b')](([_0x3985a8,_0x494c5a])=>[_0x3985a8,this[_0x40a5('0x6c')](_0x494c5a,_0x10236c)]);_0x10236c['markers']=new Map(_0x506d35);}[_0x40a5('0xa5')](_0x56466f){for(const _0xb9175a of this[_0x40a5('0xe0')][_0x40a5('0x71')]()){const _0x4066d6=_0xb9175a[_0x40a5('0xdd')](_0x56466f),_0x1119cc=_0xe90a70[_0x40a5('0xc3')](_0x4066d6);_0xb9175a[_0x40a5('0x61')]=_0x1119cc[_0x40a5('0x61')],_0xb9175a['end']=_0x1119cc[_0x40a5('0x6f')];}}[_0x40a5('0xab')](_0x3537b5,_0x4e95ce){if(_0x40a5('0xba')==_0x3537b5[_0x40a5('0x54')]||_0x40a5('0xb4')==_0x3537b5[_0x40a5('0x54')])return void this[_0x40a5('0xc1')](_0x3537b5,_0x4e95ce);if('insert'==_0x3537b5['type']){const _0x25d0b1=_0x3537b5['position']['root']['rootName'];this['_diffRoots'][_0x40a5('0x99')](_0x25d0b1)||(this[_0x40a5('0xb1')]['set'](_0x25d0b1,G(_0x25d0b1,!0x0)),this[_0x40a5('0xdb')][_0x40a5('0x4d')](_0x25d0b1,{}),_0x4e95ce&&this[_0x40a5('0x7')]['set'](_0x25d0b1,G(_0x25d0b1,!0x0)));}else{if('addRootAttribute'==_0x3537b5[_0x40a5('0x54')]||_0x40a5('0x57')==_0x3537b5[_0x40a5('0x54')]||_0x40a5('0x9b')==_0x3537b5[_0x40a5('0x54')])return void this['_handleRootAttributeOperation'](_0x3537b5);}const _0x4d1dbd=this[_0x40a5('0x22')](_0x3537b5,this[_0x40a5('0xb1')]);if('marker'!==_0x3537b5[_0x40a5('0x54')]&&(_0x4d1dbd[_0x40a5('0x60')](),this[_0x40a5('0xa5')](_0x4d1dbd)),_0x4e95ce)switch(_0x4d1dbd[_0x40a5('0x54')]){case'insert':this[_0x40a5('0x4a')](_0x3537b5);break;case _0x40a5('0x64'):case _0x40a5('0x76'):case _0x40a5('0xc4'):this[_0x40a5('0x98')](_0x3537b5);break;case _0x40a5('0xfd'):this[_0x40a5('0x5e')](_0x3537b5);break;case _0x40a5('0x23'):this[_0x40a5('0x18')](_0x3537b5);break;case _0x40a5('0xd1'):this['_handleMarkerOperation'](_0x3537b5);}}[_0x40a5('0x22')](_0xbce497,_0x4e0797){const _0x14e1bd=_0xbce497[_0x40a5('0x93')]();return _0x14e1bd[_0x40a5('0xb0')]=_0xbce497[_0x40a5('0xb0')],this['_fixOperation'](_0x14e1bd,_0x4e0797),_0x14e1bd;}[_0x40a5('0xf3')](_0xdcd2a3){return _0xdcd2a3[_0x40a5('0x3b')](_0x54ef33=>{const _0x34921c=this[_0x40a5('0x3e')](_0x54ef33);return Number(_0x54ef33[_0x40a5('0x103')][_0x40a5('0x2a')](_0x34921c));});}['_generateTape'](_0x5b44c6,_0x32c5e4){if(_0x5b44c6['is'](_0x40a5('0xb2'),_0x40a5('0xda')))_0x32c5e4[_0x40a5('0x29')]({'item':_0x5b44c6,'type':_0x40a5('0x41')});else{_0x5b44c6['is']('element')&&_0x32c5e4['push']({'item':_0x5b44c6,'type':_0x40a5('0xc7')});for(const _0xfc24d of _0x5b44c6[_0x40a5('0x106')]())this[_0x40a5('0x1f')](_0xfc24d,_0x32c5e4);_0x5b44c6['is'](_0x40a5('0xb2'))&&_0x32c5e4['push']({'item':_0x5b44c6,'type':'elementEnd'});}return _0x32c5e4;}[_0x40a5('0x9')](){const _0x36f95f=new Map(this['_touched']),_0x20ed8a=new Map(_0x36f95f),_0x3373ac=new Map(),_0x3d3379={'insertions':{},'deletions':{}},_0x5bc12a={'insertions':{},'deletions':{}},_0x312b19=new Map(),_0x2e7101=new Set([...this[_0x40a5('0xe8')][_0x40a5('0x5b')](),...this[_0x40a5('0xb1')][_0x40a5('0x5b')]()]);_0x2e7101['delete'](_0x40a5('0x83'));for(const _0x1ba597 of _0x2e7101){const _0x45f657=this['_diffRoots'][_0x40a5('0xcc')](_0x1ba597)||G(_0x1ba597,!0x1),_0x198171=this[_0x40a5('0xe8')][_0x40a5('0xcc')](_0x1ba597)||G(_0x1ba597,!0x1);_0x45f657['isAttached']()||_0x198171[_0x40a5('0x65')]()?(_0x3d3379[_0x40a5('0x79')][_0x1ba597]=q(_0x45f657),_0x3d3379[_0x40a5('0xd6')][_0x1ba597]=q(_0x198171),this['_copyMarkers'](_0x3d3379[_0x40a5('0xd6')][_0x1ba597],_0x198171),this['_copyMarkers'](_0x3d3379[_0x40a5('0x79')][_0x1ba597],_0x45f657),_0x5bc12a['insertions'][_0x1ba597]=this[_0x40a5('0x1f')](this[_0x40a5('0x7')][_0x40a5('0xcc')](_0x1ba597),[]),_0x5bc12a['deletions'][_0x1ba597]=this[_0x40a5('0x1f')](this[_0x40a5('0xf9')][_0x40a5('0xcc')](_0x1ba597)||G(_0x1ba597,!0x1),[])):_0x2e7101[_0x40a5('0xce')](_0x1ba597);}for(const _0x10fe79 of _0x2e7101){const _0x105e7f=_0x5bc12a['insertions'][_0x10fe79];for(const _0x22e52a of _0x105e7f){const _0x10d802=this['_getVidAttributeName'](_0x22e52a),_0x2d3832=_0x22e52a[_0x40a5('0x103')][_0x40a5('0x2a')](_0x10d802);_0x20ed8a[_0x40a5('0xce')](_0x2d3832),_0x2d3832>=this[_0x40a5('0xf0')]&&_0x3373ac['set'](_0x2d3832,_0x36f95f[_0x40a5('0xcc')](_0x2d3832));}}for(const _0x35f530 of _0x2e7101){const _0x46991e=_0x5bc12a['insertions'][_0x35f530],_0x3c7563=this[_0x40a5('0xf3')](_0x5bc12a[_0x40a5('0xd6')][_0x35f530]);let _0xd49054=0x0;for(const _0x3810ec of _0x46991e){const _0x4a090f=this['_getVidAttributeName'](_0x3810ec),_0x200abe=_0x3810ec[_0x40a5('0x103')][_0x40a5('0x2a')](_0x4a090f);if(!_0x3373ac['has'](_0x200abe)&&!_0x312b19[_0x40a5('0x99')](_0x200abe)){if(_0x20ed8a[_0x40a5('0x99')](_0x200abe))_0xd49054++;else{if(_0x200abe!=_0x3c7563[_0xd49054]){const _0x17e5ad=_0x36f95f[_0x40a5('0xcc')](_0x200abe)||_0x36f95f[_0x40a5('0xcc')](_0x3c7563[_0xd49054]);for(;_0x200abe!=_0x3c7563[_0xd49054];)_0x20ed8a[_0x40a5('0x99')](_0x3c7563[_0xd49054])||(_0x312b19['set'](_0x3c7563[_0xd49054],_0x17e5ad),_0x36f95f[_0x40a5('0x4d')](_0x3c7563[_0xd49054],_0x17e5ad)),_0xd49054++;}_0xd49054++;}}}}for(const _0x4e896 of _0x2e7101){const _0x56a1c3=_0x5bc12a[_0x40a5('0x79')][_0x4e896];for(const _0x3e7c64 of _0x56a1c3){const _0x2fec1a=this['_getVidAttributeName'](_0x3e7c64),_0x4f726c=_0x3e7c64[_0x40a5('0x103')][_0x40a5('0x2a')](_0x2fec1a);if(_0x312b19[_0x40a5('0x99')](_0x4f726c)){const _0x41d12e=_0x312b19['get'](_0x4f726c);_0x20ed8a[_0x40a5('0x99')](_0x4f726c)||_0x20ed8a[_0x40a5('0x4d')](_0x4f726c,{..._0x41d12e}),_0x3373ac[_0x40a5('0x4d')](_0x4f726c,{..._0x41d12e});}}}for(const _0x298412 of _0x20ed8a[_0x40a5('0x5b')]())_0x298412>=this['_startingRevisionId']&&_0x20ed8a[_0x40a5('0xce')](_0x298412);const _0x12f286=new Map();for(const _0x5c3660 of _0x2e7101){let _0xd05dd0=_0x5bc12a[_0x40a5('0x79')][_0x5c3660];for(const _0x5b388b of _0xd05dd0)if(_0x5b388b[_0x40a5('0x103')]['is'](_0x40a5('0xb2'),_0x40a5('0x43'))){const _0x1eef6e=this[_0x40a5('0x3e')](_0x5b388b),_0x30f7bf=_0x5b388b[_0x40a5('0x103')][_0x40a5('0x2a')](_0x1eef6e);if(_0x3373ac[_0x40a5('0x99')](_0x30f7bf)){const _0xe0357f=_0x5b388b['item'][_0x40a5('0xe6')][_0x40a5('0xe6')][_0x40a5('0x2a')](_0x40a5('0xc')),_0x5545fc=_0x12f286[_0x40a5('0xcc')](_0xe0357f)||new Set();_0x5545fc[_0x40a5('0x3a')](_0x3373ac['get'](_0x30f7bf)[_0x40a5('0x10a')]),_0x12f286[_0x40a5('0x4d')](_0xe0357f,_0x5545fc);}}_0xd05dd0=_0x5bc12a[_0x40a5('0xd6')][_0x5c3660];for(const _0x1477f4 of _0xd05dd0)if(_0x1477f4[_0x40a5('0x103')]['is'](_0x40a5('0xb2'),_0x40a5('0x43'))){const _0x5a9711=this[_0x40a5('0x3e')](_0x1477f4),_0x49847e=_0x1477f4[_0x40a5('0x103')]['getAttribute'](_0x5a9711);if(_0x20ed8a[_0x40a5('0x99')](_0x49847e)){const _0x12934e=_0x1477f4[_0x40a5('0x103')][_0x40a5('0xe6')][_0x40a5('0xe6')]['getAttribute']('vid_start'),_0x3510de=_0x12f286[_0x40a5('0xcc')](_0x12934e)||new Set();_0x3510de[_0x40a5('0x3a')](_0x20ed8a[_0x40a5('0xcc')](_0x49847e)[_0x40a5('0x10a')]),_0x12f286[_0x40a5('0x4d')](_0x12934e,_0x3510de);}}for(const _0x39c2c7 of _0x12f286[_0x40a5('0x5b')]())(_0x3373ac[_0x40a5('0x99')](_0x39c2c7)||_0x20ed8a['has'](_0x39c2c7))&&_0x12f286[_0x40a5('0xce')](_0x39c2c7);}for(const _0x47720a of _0x2e7101){const _0x20a3cf=_0x5bc12a[_0x40a5('0x79')][_0x47720a];let _0x11d273=null,_0x1935f2=null;for(const _0x5803da of _0x20a3cf){const _0x125e5e=this[_0x40a5('0x3e')](_0x5803da),_0x118e62=_0x5803da['item'][_0x40a5('0x2a')](_0x125e5e),_0x460f6a=_0x12f286['get'](_0x118e62);_0x460f6a&&'elementStart'==_0x5803da[_0x40a5('0x54')]&&(_0x11d273=Array['from'](_0x460f6a)[0x0],_0x1935f2=_0x5803da[_0x40a5('0x103')]['getAttribute']('vid_end')),_0x11d273&&(_0x20ed8a[_0x40a5('0x4d')](_0x118e62,{'userId':_0x11d273}),_0x3373ac[_0x40a5('0x4d')](_0x118e62,{'userId':_0x11d273})),_0x118e62==_0x1935f2&&(_0x11d273=null,_0x1935f2=null);}}const _0x57c737={},_0x11ade2=new Set();for(const _0x492665 of _0x2e7101){const _0x482dc3=_0x3d3379['deletions'][_0x492665],_0x10bdd5=_0x3d3379[_0x40a5('0x79')][_0x492665];for(const {userId:_0x25d19f}of this[_0x40a5('0x31')]['values']())null!==_0x25d19f&&_0x11ade2[_0x40a5('0x3a')](_0x25d19f);for(const {userId:_0xaf70cf}of this[_0x40a5('0x110')][_0x40a5('0x71')]())null!==_0xaf70cf&&_0x11ade2['add'](_0xaf70cf);this[_0x40a5('0x84')](_0x10bdd5,_0x5bc12a[_0x40a5('0x79')][_0x492665],_0x3373ac,_0x40a5('0x97'),_0x11ade2),this[_0x40a5('0x84')](_0x482dc3,_0x5bc12a[_0x40a5('0xd6')][_0x492665],_0x20ed8a,_0x40a5('0xf'),_0x11ade2),_0x57c737[_0x492665]={'insertions':this[_0x40a5('0x8e')](_0x10bdd5),'deletions':this[_0x40a5('0x8e')](_0x482dc3),'attachChange':this[_0x40a5('0x110')][_0x40a5('0xcc')](_0x492665)||null,'attributesBefore':_0xb59dd7(this[_0x40a5('0xa0')]['get'](_0x492665))||{},'attributesAfter':_0xb59dd7(this[_0x40a5('0xdb')][_0x40a5('0xcc')](_0x492665))};}return{'diffData':_0x57c737,'authorsIds':Array[_0x40a5('0xfe')](_0x11ade2)};}[_0x40a5('0x9d')](_0xefa204){for(const [,_0x14cd2d]of _0xefa204[_0x40a5('0xd2')]){const _0x3423d1=_0x14cd2d['start'][_0x40a5('0xe5')]()[_0x40a5('0x55')](_0x38a8a8=>_0x40a5('0x43')==_0x38a8a8[_0x40a5('0xcf')]);for(const _0x56bf33 of _0x3423d1)0x1==_0x56bf33[_0x40a5('0xc2')]&&_0x56bf33[_0x40a5('0x10')](0x0)['is']('element',_0x40a5('0xb7'))&&_0x56bf33['getChild'](0x0)[_0x40a5('0x5')]('keepParagraph',!0x0);}}[_0x40a5('0x8e')](_0x5ce65a){this[_0x40a5('0x9d')](_0x5ce65a);const _0x41f57e=this['editor']['data'][_0x40a5('0x3')](_0x5ce65a,{}),_0x1b6500=Array[_0x40a5('0xfe')](_0x41f57e[_0x40a5('0x106')]())['map'](_0xa06a87=>this[_0x40a5('0x8f')](_0xa06a87));return JSON[_0x40a5('0x7a')](_0x1b6500);}[_0x40a5('0x8f')](_0x789c06){if(_0x789c06['is'](_0x40a5('0xda')))return _0x789c06['data'];{const _0x269327=_0x789c06;return{'type':Object['keys'](B)['find'](_0x5cdea0=>_0x789c06 instanceof B[_0x5cdea0]),'name':_0x269327[_0x40a5('0xcf')],'attributes':Array['from'](_0x269327[_0x40a5('0x40')]()),'children':Array[_0x40a5('0xfe')](_0x269327[_0x40a5('0x106')]())[_0x40a5('0x3b')](_0x53d026=>this[_0x40a5('0x8f')](_0x53d026))};}}[_0x40a5('0x84')](_0x4e990e,_0x39a62c,_0x3e893f,_0x2b82d3,_0x5146df){let _0x441d97=null,_0x5a0709=null,_0x328cc1=0x0;const _0x1f6b0f=this['editor'][_0x40a5('0xe4')];for(let _0x1a5192=0x0;_0x1a5192<_0x39a62c[_0x40a5('0x49')];_0x1a5192++){const _0x231b13=this[_0x40a5('0x3e')](_0x39a62c[_0x1a5192]),_0x4ef465=_0x39a62c[_0x1a5192]['item']['getAttribute'](_0x231b13),_0x2d07a3=_0x3e893f['get'](_0x4ef465),_0x5bddff=_0x1a5192==_0x39a62c[_0x40a5('0x49')]-0x1;(!_0x441d97&&_0x2d07a3&&(_0x441d97=_0x2d07a3,_0x5a0709=_0x39a62c[_0x1a5192]),_0x441d97&&(!_0x2d07a3||_0x2d07a3['userId']!=_0x441d97[_0x40a5('0x10a')]))&&(_0x10b9ec(_0x2d07a3,L(_0x5a0709,_0x4e990e,_0x1f6b0f),L(_0x39a62c[_0x1a5192],_0x4e990e,_0x1f6b0f)),_0x441d97=_0x2d07a3||null,_0x5a0709=_0x2d07a3?_0x39a62c[_0x1a5192]:null),_0x441d97&&_0x5bddff&&_0x10b9ec(_0x2d07a3,L(_0x5a0709,_0x4e990e,_0x1f6b0f),W(_0x39a62c[_0x1a5192],_0x4e990e,_0x1f6b0f));}function _0x10b9ec(_0xa7391a,_0x4f632e,_0x6d486){const _0x572ee4=_0x441d97[_0x40a5('0x10a')],_0x3d01bc='revision:'+_0x2b82d3+':'+_0x572ee4+':'+_0x328cc1++,_0x178099=_0x1f6b0f[_0x40a5('0xbe')](_0x4f632e,_0x6d486);_0x4e990e[_0x40a5('0xd2')][_0x40a5('0x4d')](_0x3d01bc,_0x178099),null!==_0x572ee4&&_0x5146df[_0x40a5('0x3a')](_0x572ee4);}}[_0x40a5('0x3e')](_0x31b16f){switch(_0x31b16f['type']){case'elementStart':return _0x40a5('0xc');case'elementEnd':return'vid_end';default:return _0x40a5('0xef');}}[_0x40a5('0x9a')](_0x33b7a4,_0x13b81f){_0x33b7a4[_0x40a5('0x4e')]=null;for(const _0x33c5c4 in _0x33b7a4){const _0x201cff=_0x33b7a4[_0x33c5c4];if(_0x201cff instanceof _0x1910f0){const _0x5a5a66=_0x13b81f[_0x40a5('0xcc')](_0x201cff[_0x40a5('0x69')]['rootName']);_0x33b7a4[_0x33c5c4]=this['_fixPosition'](_0x201cff,_0x5a5a66);}if(_0x201cff instanceof _0xe90a70){const _0x52fb8d=_0x13b81f[_0x40a5('0xcc')](_0x201cff[_0x40a5('0x69')][_0x40a5('0xa8')]);_0x33b7a4[_0x33c5c4]=this['_fixRange'](_0x201cff,_0x52fb8d);}'root'===_0x33c5c4&&(_0x33b7a4[_0x40a5('0x69')]=_0x13b81f[_0x40a5('0xcc')](_0x33b7a4['root']['rootName']));}}[_0x40a5('0x6c')](_0x28c426,_0x395cd7){return this[_0x40a5('0xb6')][_0x40a5('0xe4')][_0x40a5('0xbe')](this['_fixPosition'](_0x28c426[_0x40a5('0x61')],_0x395cd7),this['_fixPosition'](_0x28c426['end'],_0x395cd7));}[_0x40a5('0x58')](_0x7146d2,_0x229f2f){return this['editor'][_0x40a5('0xe4')][_0x40a5('0xa6')](_0x229f2f,_0x7146d2[_0x40a5('0x1b')],_0x7146d2[_0x40a5('0x104')]);}['_handleInsertOperation'](_0x455a87){const _0x3e4558=this[_0x40a5('0x7')][_0x40a5('0xcc')](_0x455a87['position']['root']['rootName']),_0x12e275=this[_0x40a5('0x58')](_0x455a87[_0x40a5('0x89')],_0x3e4558),_0x232402=null===_0x455a87[_0x40a5('0xb0')]?null:_0x455a87['_authorId']||this['editor'][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x4c'))['me']['id'],_0x214821=_0x12e275[_0x40a5('0xe6')],_0x18b747=this['_revisionId'],_0x2326be=[];for(const _0xd5f0fb of _0x455a87['nodes'])if(_0xd5f0fb['is'](_0x40a5('0xb2')))_0x2326be[_0x40a5('0x29')](this[_0x40a5('0x21')](_0xd5f0fb));else for(let _0x44498d=0x0;_0x44498d<_0xd5f0fb[_0x40a5('0xae')];_0x44498d++)_0x2326be[_0x40a5('0x29')](new _0x2cfefd('$text',{'vid':this['_revisionId']++}));const _0x339174=this['_revisionId'];for(let _0x42eb35=_0x18b747;_0x42eb35<_0x339174;_0x42eb35++)this[_0x40a5('0x5f')]['set'](_0x42eb35,{'userId':_0x232402});_0x214821[_0x40a5('0x7e')](_0x12e275[_0x40a5('0x30')],_0x2326be);}[_0x40a5('0x98')](_0x243a09){(_0x243a09=this[_0x40a5('0x22')](_0x243a09,this[_0x40a5('0x7')]))['_execute']();const _0x59f09e=null===_0x243a09[_0x40a5('0xb0')]?null:_0x243a09['_authorId']||this[_0x40a5('0xb6')]['plugins'][_0x40a5('0xcc')]('Users')['me']['id'],_0x32d48b=_0x243a09[_0x40a5('0xd7')](),_0x45c34f=_0x32d48b['parent'],_0x393fab=_0x32d48b[_0x40a5('0x30')];!function _0x234076(_0x5b8e3d,_0x82b2d4,_0x7cfcaf,_0x4850ed){for(let _0x55ddad=_0x7cfcaf;_0x55ddad<_0x4850ed;_0x55ddad++){const _0x5e6400=_0x82b2d4[_0x40a5('0x10')](_0x55ddad);_0x5e6400['is'](_0x40a5('0xb2'),_0x40a5('0xda'))?_0x5b8e3d[_0x40a5('0x4d')](_0x5e6400['getAttribute'](_0x40a5('0xef')),{'userId':_0x59f09e}):(_0x5b8e3d[_0x40a5('0x4d')](_0x5e6400[_0x40a5('0x2a')](_0x40a5('0xc')),{'userId':_0x59f09e}),_0x234076(_0x5b8e3d,_0x5e6400,0x0,_0x5e6400['childCount']),_0x5b8e3d['set'](_0x5e6400[_0x40a5('0x2a')](_0x40a5('0xfc')),{'userId':_0x59f09e}));}}(this[_0x40a5('0x5f')],_0x45c34f,_0x393fab,_0x393fab+_0x243a09['howMany']);}[_0x40a5('0x5e')](_0x1536ce){const _0x539a50=null===(_0x1536ce=this[_0x40a5('0x22')](_0x1536ce,this[_0x40a5('0x7')]))[_0x40a5('0xb0')]?null:_0x1536ce[_0x40a5('0xb0')]||this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x4c'))['me']['id'],_0x175acb=_0x1536ce[_0x40a5('0x107')][_0x40a5('0xe6')],_0x1ff9ea=_0x1536ce[_0x40a5('0x15')]['parent'],_0x3d4c08=_0x175acb[_0x40a5('0x2a')](_0x40a5('0xfc')),_0x2f374f=_0x1ff9ea['getAttribute'](_0x40a5('0xc'));_0x175acb[_0x40a5('0x5')](_0x40a5('0xfc'),_0x1ff9ea[_0x40a5('0x2a')]('vid_end')),_0x1ff9ea[_0x40a5('0x5')](_0x40a5('0xfc'),_0x3d4c08),this[_0x40a5('0x5f')]['set'](_0x2f374f,{'userId':_0x539a50}),this[_0x40a5('0x5f')][_0x40a5('0x4d')](_0x3d4c08,{'userId':_0x539a50}),_0x1536ce['_execute']();}[_0x40a5('0x18')](_0x3ebbce){const _0x41abcc=null===(_0x3ebbce=this['_cloneOperation'](_0x3ebbce,this[_0x40a5('0x7')]))['_authorId']?null:_0x3ebbce[_0x40a5('0xb0')]||this['editor'][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x4c'))['me']['id'],_0xc3ed9f=_0x3ebbce[_0x40a5('0x6e')],_0x1bacfa=_0x3ebbce[_0x40a5('0x9c')][_0x40a5('0xe6')];_0x3ebbce['_execute']();const _0x4a0f03=_0x1bacfa[_0x40a5('0x2a')](_0x40a5('0xfc')),_0xb7e491=_0x3ebbce[_0x40a5('0xf1')][_0x40a5('0x25')];if(_0xc3ed9f){const _0x512678=_0xb7e491[_0x40a5('0x2a')](_0x40a5('0xfc')),_0x32cd24=_0x1bacfa[_0x40a5('0x2a')](_0x40a5('0xfc'));_0x1bacfa[_0x40a5('0x5')]('vid_end',_0x512678),_0xb7e491[_0x40a5('0x5')](_0x40a5('0xfc'),_0x32cd24),this[_0x40a5('0x5f')]['set'](_0x1bacfa[_0x40a5('0x2a')](_0x40a5('0xfc')),{'userId':_0x41abcc}),this[_0x40a5('0x5f')][_0x40a5('0x4d')](_0xb7e491[_0x40a5('0x2a')](_0x40a5('0xc')),{'userId':_0x41abcc});}else{const _0x1c68af=this[_0x40a5('0x50')]++,_0x42f97c=this['_revisionId']++;_0x1bacfa[_0x40a5('0x5')](_0x40a5('0xfc'),_0x1c68af),_0xb7e491[_0x40a5('0x5')](_0x40a5('0xc'),_0x42f97c),_0xb7e491[_0x40a5('0x5')](_0x40a5('0xfc'),_0x4a0f03),this[_0x40a5('0x5f')][_0x40a5('0x4d')](_0x1c68af,{'userId':_0x41abcc}),this['_touched']['set'](_0x42f97c,{'userId':_0x41abcc});}}[_0x40a5('0x105')](_0x112c46){if(!_0x112c46['affectsData'])return;const _0xcca4c4=(_0x112c46=this[_0x40a5('0x22')](_0x112c46,this[_0x40a5('0xb1')]))[_0x40a5('0x2c')]?_0x112c46[_0x40a5('0x2c')][_0x40a5('0x69')]:null,_0x12320d=_0x112c46[_0x40a5('0x8c')]?_0x112c46[_0x40a5('0x8c')]['root']:null;_0xcca4c4&&this[_0x40a5('0xe0')][_0x40a5('0xce')](_0x112c46['name']),_0x12320d&&this[_0x40a5('0xe0')][_0x40a5('0x4d')](_0x112c46[_0x40a5('0xcf')],_0x112c46[_0x40a5('0x8c')]['clone']());const _0x3b8948=null===_0x112c46[_0x40a5('0xb0')]?null:_0x112c46[_0x40a5('0xb0')]||this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x4c'))['me']['id'],_0x242343=_0x112c46[_0x40a5('0xcf')];if(!this['_touchedMarkers']['has'](_0x242343))return void this[_0x40a5('0x31')][_0x40a5('0x4d')](_0x242343,{'range':_0x112c46[_0x40a5('0x2c')],'userId':_0x3b8948});const _0x57b42a=this[_0x40a5('0x31')][_0x40a5('0xcc')](_0x242343),_0x587618=_0x57b42a[_0x40a5('0x9f')],_0x1d2228=_0x112c46[_0x40a5('0x8c')];null==_0x587618&&null==_0x1d2228||_0x587618&&_0x1d2228&&_0x587618[_0x40a5('0x82')](_0x1d2228)?this[_0x40a5('0x31')][_0x40a5('0xce')](_0x112c46[_0x40a5('0xcf')]):_0x57b42a['userId']=_0x3b8948;}[_0x40a5('0xc1')](_0x363b5f,_0x30371c){this[_0x40a5('0xb1')][_0x40a5('0x99')](_0x363b5f[_0x40a5('0xa8')])?this['_diffRoots'][_0x40a5('0xcc')](_0x363b5f[_0x40a5('0xa8')])[_0x40a5('0xb')]=_0x363b5f[_0x40a5('0xbd')]:(this['_diffRoots'][_0x40a5('0x4d')](_0x363b5f[_0x40a5('0xa8')],G(_0x363b5f['rootName'],!0x0)),this[_0x40a5('0xdb')][_0x40a5('0x4d')](_0x363b5f[_0x40a5('0xa8')],{}),_0x30371c&&this['_idsRoots'][_0x40a5('0x4d')](_0x363b5f[_0x40a5('0xa8')],G(_0x363b5f[_0x40a5('0xa8')],!0x0)));const _0x535198=null===_0x363b5f[_0x40a5('0xb0')]?null:_0x363b5f[_0x40a5('0xb0')]||this[_0x40a5('0xb6')][_0x40a5('0x5a')][_0x40a5('0xcc')](_0x40a5('0x4c'))['me']['id'],_0x255053=this['_touchedRoots'][_0x40a5('0xcc')](_0x363b5f[_0x40a5('0xa8')]);_0x255053&&_0x255053['userId']===_0x535198?this[_0x40a5('0x110')][_0x40a5('0xce')](_0x363b5f[_0x40a5('0xa8')]):this['_touchedRoots']['set'](_0x363b5f[_0x40a5('0xa8')],{'userId':_0x535198,'isAttached':_0x363b5f[_0x40a5('0xbd')]});}[_0x40a5('0xca')](_0x5180ea){const _0x5b540b=this[_0x40a5('0xdb')][_0x40a5('0xcc')](_0x5180ea['root'][_0x40a5('0xa8')]);null===_0x5180ea['newValue']?delete _0x5b540b[_0x5180ea[_0x40a5('0x72')]]:_0x5b540b[_0x5180ea[_0x40a5('0x72')]]=_0x5180ea[_0x40a5('0x16')];}}function q(_0xfd3f3e){const _0x4ac176=G(_0xfd3f3e[_0x40a5('0xa8')],_0xfd3f3e[_0x40a5('0x65')]());for(const _0x5dab50 of _0xfd3f3e[_0x40a5('0x106')]()){const _0x334f8b=_0x5dab50[_0x40a5('0x51')](!0x0);_0x4ac176[_0x40a5('0xde')](_0x334f8b);}return _0x4ac176;}function G(_0x3a7254,_0x3cfa86=!0x0){const _0x3ba934=new _0x7d7b49();return _0x3ba934['rootName']=_0x3a7254,_0x3ba934[_0x40a5('0xb')]=_0x3cfa86,_0x3ba934[_0x40a5('0x65')]=()=>_0x3ba934[_0x40a5('0xb')],_0x3ba934;}function L(_0x1c2172,_0x4ada67,_0x3e8484){const _0x55e5bd=_0x40a5('0x10d')==_0x1c2172[_0x40a5('0x54')]?_0x3e8484[_0x40a5('0x2d')](_0x1c2172['item'],'end'):_0x3e8484[_0x40a5('0x24')](_0x1c2172[_0x40a5('0x103')]);return _0x3e8484[_0x40a5('0xa6')](_0x4ada67,_0x55e5bd[_0x40a5('0x1b')],_0x55e5bd[_0x40a5('0x104')]);}function W(_0x409849,_0x250dfb,_0x2e468a){const _0x55cd8e=_0x40a5('0xc7')==_0x409849[_0x40a5('0x54')]?_0x2e468a[_0x40a5('0x2d')](_0x409849[_0x40a5('0x103')],0x0):_0x2e468a[_0x40a5('0x11')](_0x409849[_0x40a5('0x103')]);return _0x2e468a['createPositionFromPath'](_0x250dfb,_0x55cd8e[_0x40a5('0x1b')],_0x55cd8e[_0x40a5('0x104')]);}