@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231012.0 → 0.0.0-nightly-20231014.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.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -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 _0x89ec=['slice','offsetSize','attributesAfter','diffData','getRevisionRootsAttributes','_diffRoots','getAttribute','vid_end','init','item','removeRootAttribute','_loadRevisionData','isAdd','_continueCurrentRevision','authorsIds','_handleMergeOperation','offset','insertionPosition','insertion','merge','_findInsertionIndex','$graveyard','getRevisions','Initial\x20revision','shift','newValue','_insertChild','end','children','_getViewJson','RealTimeCollaborationClient','finally','loadState','_createCurrentRevision','_clone','_lastFrom','update','_handleInsertOperation','_savedMetaData','_makeIdsRoot','setRevisionData','getCurrentRevisionId','fromVersion','isAttached','documentFragment','has','getRootNames','getWalker','childCount','_createInitialRevision','_applyOperations','key','editor','conversion','_markers','_loadedStateData','find','paragraph','roots','_saveMetaData','_replaceEditorDataWithRevisionData','reinsert','_prepareViewToSave','_processRootBeforeSave','collaboration.channelId','_handleMoveOperation','size','getUser','reInit','name','currentRevision','setSource','_touchedMarkers','_handleMarkerOperation','upcast','_getVidAttributeName','set','insertions','revision-start','_generateTape','_getBaseVids','start','reverse','_setAttribute','document','_calculateMetaData','length','deletions','$text','dataToMarker','locale','buildRevisionData','revision-end','_revisionDataBuilder','rootName','graveyardPosition','getChildren','getRevisionDocumentData','_isAttached','repository','sourcePosition','addRevisionData','_baseRootsAttributes','_idsRoots','_baseIdsRoots','adapter','for','createRangeIn','getRevision','_removeRevisionMarkers','createdAt','elementEnd','_makeModelFromViewString','data-revision-','trim','_pendingAction','attributes','_isPendingUpdate','_cloneOperation','some','keepParagraph','oldRange','add','getOperations','from','dataDowncast','deletion','_loadState','_touched','_copyMarkers','revisionHistory.resumeUnsavedRevision','sort','addRoot','_handleRootOperation','getAttributes','attachChange','creator','_source','version','PendingActions','tableCell','type','getNodeByPath','PENDING_ACTION_REVISION_HISTORY','affectsData','_createFromRanges','_authorId','map','_bufferedUpdates','getChild','creatorId','split','toView','keys','requires','nodes','_makeRevision','sendBufferedUpdates','createPositionAt','insert','push','clear','ready','position','_handleSplitOperation','baseVersion','_getPreviousFrom','_execute','_touchedRoots','marked','_removePendingAction','root','createRange','fromEntries','RevisionTracker','createRevision','delete','parse','getIndex','forEach','revision:','_fixRange','resolve','stickiness','define','then','userId','isEnabled','hasContent','Users','move','previousPosition','stringify','getMovedRangeStart','elementStart','rootsAttributes','element','startsWith','getLatestVersion','Empty\x20document','_lastTo','string','toData','_setConversion','useFillerType','data','NEGATIVE_INFINITY','_getFromVersion','isEqual','_handleOperation','_operations','_fixOperation','isReady','_fixPosition','markers','view','plugins','_revisionId','initialData','afterInit','text','get','toVersion','nodeAfter','RevisionsRepository','createPositionFromPath','filter','clone','markerToData','createPositionBefore','history','processor','_markChanges','createPositionAfter','vid_start','saveRevision','default','includes','_reset','_diffRootsAttributes','getRange','splitPosition','_startingRevisionId','getData','_removeMetaData','getRoot','max','_initialRevisionId','_transformMarkers','_update','config','pluginName','editing','_getState','updateRevisions','_addPendingAction','revision','values','addRevision','_startingVersion','source','marker','parent','vid','path','_bufferUpdate','authors','model','newRange','_baseRoots'];(function(_0x47d868,_0x89ec69){const _0x5e20fe=function(_0x54bd56){while(--_0x54bd56){_0x47d868['push'](_0x47d868['shift']());}};_0x5e20fe(++_0x89ec69);}(_0x89ec,0x192));const _0x5e20=function(_0x47d868,_0x89ec69){_0x47d868=_0x47d868-0x0;let _0x5e20fe=_0x89ec[_0x47d868];return _0x5e20fe;};import{Users as _0x1ec901}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x16814d,PendingActions as _0x3046e3}from'ckeditor5/src/core';import{logWarning as _0x514e5f,uid as _0x4ab4fb}from'ckeditor5/src/utils';import{Position as _0x3af9e3,Range as _0x472eca,Element as _0x1232af,DocumentFragment as _0x4ea7a3,ViewText as _0x505f06,ViewElement as _0x8fa111,ViewContainerElement as _0x45a9c5,ViewAttributeElement as _0x5b525b,ViewEmptyElement as _0x46e0ac,ViewRawElement as _0x4ac50d,ViewUIElement as _0x5dcfe0,ViewDocumentFragment as _0x5185bc}from'ckeditor5/src/engine';import _0x58b8d4 from'./revisionsrepository';import{getTranslation as _0x3c1f4c}from'./utils/common-translations';import{cloneDeep as _0x3c23d6,isEqual as _0x39ebcc}from'lodash-es';const B={'c':_0x45a9c5,'a':_0x5b525b,'e':_0x46e0ac,'r':_0x4ac50d,'u':_0x5dcfe0};export default class l extends _0x16814d{static get[_0x5e20('0x77')](){return _0x5e20('0x2a');}static get[_0x5e20('0x16')](){return[_0x1ec901,_0x58b8d4,_0x3046e3];}constructor(_0x53faed){super(_0x53faed),this[_0x5e20('0xf3')]=null,this['currentRevision']=null,this[_0x5e20('0xe7')]=new H(this[_0x5e20('0xbe')]),this[_0x5e20('0x73')]=this[_0x5e20('0xbe')]['config'][_0x5e20('0x59')]('collaboration.channelId')||'initial',this[_0x5e20('0x10')]=new Map(),this[_0x5e20('0xc1')]=null;const _0x1017ef=_0x4ab4fb();this[_0x5e20('0x5')]={'history':this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x62')],'getLatestVersion':()=>Promise['resolve'](this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x6')]),'getCurrentRevisionId':()=>_0x1017ef},this[_0x5e20('0xd6')]('isReady',!0x1),this[_0x5e20('0xd6')](_0x5e20('0x37'),!0x0),this[_0x5e20('0xd6')](_0x5e20('0xff'),!0x1),this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x34')]('revisionHistory.resumeUnsavedRevision',!0x0),this['editor'][_0x5e20('0xbf')][_0x5e20('0xf4')](_0x5e20('0xd4'))[_0x5e20('0xe3')]({'view':_0x5e20('0x7c')});}[_0x5e20('0x92')](){this[_0x5e20('0xed')]=this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x5c')),this[_0x5e20('0x47')](),this[_0x5e20('0xbe')][_0x5e20('0x49')]['on'](_0x5e20('0x1e'),()=>{const _0x314f62=this['repository'][_0x5e20('0xf6')](0x0),_0x4608bb=_0x314f62&&null===_0x314f62[_0x5e20('0x4')]?_0x314f62:null;if(this[_0x5e20('0x97')]=!!_0x4608bb&&this[_0x5e20('0xbe')][_0x5e20('0x76')]['get'](_0x5e20('0x10c')),this[_0x5e20('0xbe')]['plugins']['has'](_0x5e20('0xa8'))){const _0x1bc30a=this[_0x5e20('0x5')][_0x5e20('0xb3')](),_0xf7fd9e=this['repository'][_0x5e20('0xf6')](_0x1bc30a);if(_0xf7fd9e)this[_0x5e20('0x7f')]=_0xf7fd9e[_0x5e20('0xb4')],this[_0x5e20('0x97')]=!0x1;else{const _0x3e30cc=this[_0x5e20('0x5')][_0x5e20('0x62')][_0x5e20('0x4e')][_0x5e20('0xc2')](_0x2bd910=>!_0x2bd910['_isInit']),_0x1c0ece=_0x3e30cc?_0x3e30cc[_0x5e20('0x21')]:this[_0x5e20('0x5')][_0x5e20('0x62')][_0x5e20('0x6')];_0x314f62?(_0x314f62[_0x5e20('0x5a')]<_0x1c0ece&&_0x314f62['_update']({'toVersion':_0x1c0ece}),this[_0x5e20('0x97')]?(this[_0x5e20('0x5')]['getCurrentRevisionId']=()=>_0x4608bb['id'],this['_startingVersion']=_0x4608bb['fromVersion']):(this[_0x5e20('0x7f')]=_0x314f62[_0x5e20('0x5a')],this[_0x5e20('0x97')]=!0x1)):(this[_0x5e20('0x7f')]=_0x1c0ece,this[_0x5e20('0x97')]=!0x1);}}else _0x4608bb&&(this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x62')][_0x5e20('0x6')]=Math[_0x5e20('0x72')](_0x4608bb[_0x5e20('0x5a')],this[_0x5e20('0xbe')]['model']['document'][_0x5e20('0x62')][_0x5e20('0x6')]),_0x4608bb['fromVersion']===_0x4608bb[_0x5e20('0x5a')]?(0x0!==_0x4608bb[_0x5e20('0xb4')]&&(this[_0x5e20('0x5')][_0x5e20('0xb3')]=()=>_0x4608bb['id']),this[_0x5e20('0x97')]=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4608bb['id'],this['_startingVersion']=_0x4608bb[_0x5e20('0xb4')])),this[_0x5e20('0x97')]||(this[_0x5e20('0x7f')]=this[_0x5e20('0xbe')]['model'][_0x5e20('0xde')][_0x5e20('0x6')]);this[_0x5e20('0xe7')][_0x5e20('0x92')](this[_0x5e20('0x5')][_0x5e20('0x62')]),this[_0x5e20('0xbb')](this[_0x5e20('0x7f')]),this[_0x5e20('0xab')](this['_startingVersion']),this[_0x5e20('0xf3')]&&this['sendBufferedUpdates']();}),this['bind'](_0x5e20('0x50'))['to'](this,'_isPendingUpdate',_0x378a4e=>!_0x378a4e);}async[_0x5e20('0x57')](){if(this[_0x5e20('0xed')][_0x5e20('0xe0')]>0x0){const _0x47bc3a=this[_0x5e20('0xed')][_0x5e20('0xf6')](0x0),_0x309caa=await this[_0x5e20('0xeb')](_0x47bc3a),_0xcb65ed=await this[_0x5e20('0x8e')](_0x47bc3a);this['_replaceEditorDataWithRevisionData'](_0x309caa,_0xcb65ed);}}[_0x5e20('0xd1')](_0x5d4c5e){this[_0x5e20('0x5')]=_0x5d4c5e;}async[_0x5e20('0xae')](){const _0x3e74e1=await this[_0x5e20('0x5')][_0x5e20('0x42')]();if(_0x3e74e1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x28ed59=this['buildRevisionData']({'revision':this[_0x5e20('0xd0')],'to':_0x3e74e1});_0x28ed59[_0x5e20('0x86')]=_0x28ed59[_0x5e20('0x98')][_0x5e20('0xf')](_0x487396=>this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')]('Users')['getUser'](_0x487396)),this[_0x5e20('0xd0')][_0x5e20('0x75')](_0x28ed59);}}async['_loadState'](){this[_0x5e20('0x97')]&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this[_0x5e20('0xd0')]),this[_0x5e20('0xe7')][_0x5e20('0xaa')](this[_0x5e20('0xd0')]),this['_loadedStateData']={'fromVersion':this[_0x5e20('0xd0')][_0x5e20('0xb4')],'authors':this[_0x5e20('0xd0')][_0x5e20('0x86')][_0x5e20('0x8a')]()});}async[_0x5e20('0x67')](_0x292212={},_0xed352b=null){const _0x392887=[];await this[_0x5e20('0x109')](),this['_continueCurrentRevision']=!0x1,_0xed352b>this[_0x5e20('0xd0')][_0x5e20('0x5a')]&&(_0xed352b=null),null===_0xed352b&&(_0xed352b=await this[_0x5e20('0x5')]['getLatestVersion']());const _0x5b9651=this[_0x5e20('0x4b')](_0xed352b),_0xc51363=this[_0x5e20('0xe5')]({'from':_0x5b9651,'to':_0xed352b});if(this['currentRevision'][_0x5e20('0x5a')]<_0xed352b){const _0x2ed8bd=this[_0x5e20('0xe5')]({'revision':this['currentRevision'],'from':_0xed352b,'to':_0xed352b});_0x2ed8bd['authors']=[],_0x2ed8bd[_0x5e20('0x98')]=[],_0x2ed8bd['id']=this['currentRevision']['id'],this[_0x5e20('0xd0')][_0x5e20('0x75')](_0x2ed8bd,!0x0),delete _0x2ed8bd[_0x5e20('0x86')],_0x392887[_0x5e20('0x1c')](_0x2ed8bd);}_0x292212[_0x5e20('0x12')]=this['editor']['plugins'][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x292212[_0x5e20('0xcf')]=_0x292212['name']||null,_0x292212['id']=_0x292212['id']||_0x4ab4fb(),_0x292212={..._0x292212,..._0xc51363};const _0x11a0b2=this[_0x5e20('0xef')](_0x292212);_0x392887[_0x5e20('0x1c')](_0x292212);const _0xbb48fe=this[_0x5e20('0xed')][_0x5e20('0x2e')](_0x11a0b2);if(0x0!==_0xbb48fe){const _0x2735c0=this[_0x5e20('0xed')]['getRevision'](_0xbb48fe-0x1);if(_0x2735c0['fromVersion']!==_0xed352b){const _0x25124a=this['_revisionDataBuilder'][_0x5e20('0x6f')](_0xed352b,_0x2735c0[_0x5e20('0x5a')]),_0x4653bc={'id':_0x2735c0['id'],'diffData':_0x25124a[_0x5e20('0x8d')],'authorsIds':_0x25124a['authorsIds'],'authors':_0x25124a[_0x5e20('0x98')][_0x5e20('0xf')](_0x3e7530=>this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))[_0x5e20('0xcd')](_0x3e7530)),'fromVersion':_0xed352b};_0x2735c0===this[_0x5e20('0xd0')]&&(_0x4653bc['createdAt']=new Date(_0x292212[_0x5e20('0xf8')]['getTime']()+0xa)),_0x2735c0['_update'](_0x4653bc,!0x0),delete _0x4653bc[_0x5e20('0x86')],_0x392887[_0x5e20('0x1c')](_0x4653bc);}}if(this[_0x5e20('0xf3')]){for(const _0x3db971 of _0x392887)this[_0x5e20('0x85')](_0x3db971['id'],_0x3db971,!0x0);this[_0x5e20('0x19')]();}return _0x11a0b2;}[_0x5e20('0xef')](_0x417762){const _0x3cd5db=this[_0x5e20('0xed')][_0x5e20('0x2b')](_0x417762);return this[_0x5e20('0xf3')]&&_0x3cd5db['on'](_0x5e20('0x75'),(_0x2a7300,_0x241aa9,_0x5f48ea)=>{_0x5f48ea||(this['_bufferUpdate'](_0x241aa9['id'],_0x241aa9,!0x0),this[_0x5e20('0x19')]());}),this[_0x5e20('0xed')][_0x5e20('0x7e')](_0x3cd5db,this[_0x5e20('0x9e')](_0x3cd5db)),_0x3cd5db;}async[_0x5e20('0xeb')](_0x4078ce){await this[_0x5e20('0x95')](_0x4078ce);const _0x23ef0b={};for(const _0x35b415 in _0x4078ce[_0x5e20('0x8d')]){if(_0x4078ce[_0x5e20('0x8d')][_0x35b415][_0x5e20('0x3')]&&!_0x4078ce['diffData'][_0x35b415][_0x5e20('0x3')][_0x5e20('0xb5')])continue;const _0xb47462=this[_0x5e20('0xf7')](JSON['parse'](_0x4078ce[_0x5e20('0x8d')][_0x35b415][_0x5e20('0xd7')])),_0x79d15e=this[_0x5e20('0xbe')][_0x5e20('0x78')]['view'][_0x5e20('0xde')],_0x420c28=new _0x5185bc(_0x79d15e,_0xb47462[_0x5e20('0xf')](_0x1a0b5a=>J(_0x1a0b5a,this[_0x5e20('0xbe')])));this[_0x5e20('0xbe')][_0x5e20('0x49')][_0x5e20('0x63')][_0x5e20('0x48')](_0x5e20('0x25')),_0x23ef0b[_0x35b415]=this[_0x5e20('0xbe')][_0x5e20('0x49')]['processor'][_0x5e20('0x46')](_0x420c28),this[_0x5e20('0xbe')][_0x5e20('0x49')][_0x5e20('0x63')][_0x5e20('0x48')](_0x5e20('0x68'));}return _0x23ef0b;}async[_0x5e20('0x8e')](_0x4d1d33){await this['_loadRevisionData'](_0x4d1d33);const _0x485839={};for(const _0x36cfea in _0x4d1d33[_0x5e20('0x8d')])_0x4d1d33['diffData'][_0x36cfea][_0x5e20('0x3')]&&!_0x4d1d33['diffData'][_0x36cfea]['attachChange'][_0x5e20('0xb5')]||(_0x485839[_0x36cfea]=_0x4d1d33[_0x5e20('0x8d')][_0x36cfea][_0x5e20('0x8c')]||{});return _0x485839;}[_0x5e20('0x19')](){if(0x0===this[_0x5e20('0x10')][_0x5e20('0xcc')])return;if(this['_isPendingUpdate'])return;let _0x179c79=Array['from'](this['_bufferedUpdates'][_0x5e20('0x7d')]());this[_0x5e20('0x10')][_0x5e20('0x1d')]();for(let _0x4e2e78=0x0;_0x4e2e78<_0x179c79[_0x5e20('0xe0')];_0x4e2e78++){const _0x3ed019=_0x179c79[_0x4e2e78];let _0x1ef497=!0x1;for(const _0x4a833d of Object['keys'](_0x3ed019))void 0x0===_0x3ed019[_0x4a833d]?delete _0x3ed019[_0x4a833d]:'id'!==_0x4a833d&&(_0x1ef497=!0x0);_0x1ef497||(_0x179c79[_0x4e2e78]=null);}if(_0x179c79=_0x179c79[_0x5e20('0x5e')](_0x28de80=>null!==_0x28de80),!_0x179c79[_0x5e20('0xe0')])return;for(let _0x5466e5=0x0;_0x5466e5<_0x179c79['length'];_0x5466e5++){const _0x452eae=_0x179c79[_0x5466e5];void 0x0!==_0x452eae[_0x5e20('0xb4')]&&void 0x0===_0x452eae[_0x5e20('0x5a')]&&(_0x452eae[_0x5e20('0x5a')]=this[_0x5e20('0xed')][_0x5e20('0xf6')](_0x452eae['id'])['toVersion']),void 0x0!==_0x452eae[_0x5e20('0x5a')]&&void 0x0===_0x452eae[_0x5e20('0xb4')]&&(_0x452eae['fromVersion']=this['repository'][_0x5e20('0xf6')](_0x452eae['id'])[_0x5e20('0xb4')]);}const _0x141cf6=this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0xca'));this[_0x5e20('0xff')]=!0x0,this[_0x5e20('0x7b')](),this[_0x5e20('0xf3')][_0x5e20('0x7a')](_0x179c79,_0x141cf6)[_0x5e20('0xa9')](()=>{this[_0x5e20('0xff')]=!0x1;})[_0x5e20('0x35')](_0x2fecf4=>{if(_0x2fecf4)for(const _0x45f608 of _0x2fecf4)this[_0x5e20('0xb2')]({'id':_0x45f608['id'],'createdAt':_0x45f608[_0x5e20('0xf8')]});this[_0x5e20('0x26')](),this[_0x5e20('0x19')]();});}[_0x5e20('0xc6')](_0x3e48f6,_0x36aa1b){let _0x222865=this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0x56')),_0x150861=this['editor'][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0x3f'));if(void 0x0===_0x222865){_0x222865={};for(const _0x488de7 of this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0xb8')]())_0x222865[_0x488de7]='';}if(_0x5e20('0x45')==typeof _0x222865&&(_0x222865={'main':_0x222865}),void 0x0===_0x150861){_0x150861={};for(const _0x3ce0d5 of this[_0x5e20('0xbe')]['model'][_0x5e20('0xde')][_0x5e20('0xb8')]())_0x150861[_0x3ce0d5]={};}let _0x220500=!0x1;const _0x4ef09c=Object[_0x5e20('0x15')](_0x222865),_0x5ef873=Object['keys'](_0x3e48f6);for(const _0x233231 of _0x4ef09c){if(_0x222865[_0x233231]!==_0x3e48f6[_0x233231]&&''!==_0x222865[_0x233231][_0x5e20('0xfc')]()){_0x220500=!0x0;break;}if(!_0x39ebcc(_0x150861[_0x233231],_0x36aa1b[_0x233231])&&Object[_0x5e20('0x15')](_0x150861[_0x233231])[_0x5e20('0xe0')]>0x0){_0x220500=!0x0;break;}}_0x220500||(_0x220500=_0x5ef873[_0x5e20('0x101')](_0x547e4a=>!this[_0x5e20('0xbe')][_0x5e20('0x87')]['document'][_0x5e20('0x71')](_0x547e4a))),_0x220500&&_0x514e5f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x222865,'editorRootsAttributes':_0x150861,'revisionData':_0x3e48f6,'revisionRootsAttributes':_0x36aa1b}),this[_0x5e20('0xbe')]['config']['set']('initialData',_0x3e48f6),this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0xd6')](_0x5e20('0x3f'),_0x36aa1b);}['_addPendingAction'](){if(!this[_0x5e20('0xfd')]){const _0x5069dc=this[_0x5e20('0xbe')][_0x5e20('0x54')]['get'](_0x5e20('0x7'));this[_0x5e20('0xfd')]=_0x5069dc[_0x5e20('0x104')](_0x3c1f4c(this[_0x5e20('0xbe')][_0x5e20('0xe4')],_0x5e20('0xb')));}}[_0x5e20('0x26')](){this[_0x5e20('0xfd')]&&(this['editor']['plugins'][_0x5e20('0x59')](_0x5e20('0x7'))['remove'](this[_0x5e20('0xfd')]),this[_0x5e20('0xfd')]=null);}[_0x5e20('0x9e')](_0x26cfea){const _0xcccdb0=this[_0x5e20('0xed')][_0x5e20('0xa0')]();_0xcccdb0['reverse']();let _0xd4dfae=0x0;for(;_0xd4dfae<_0xcccdb0[_0x5e20('0xe0')];){const _0x37e044=_0xcccdb0[_0xd4dfae];if(_0x37e044===this[_0x5e20('0xd0')]){_0xd4dfae++;continue;}if(_0x37e044['id']===this['_initialRevisionId'])break;const _0x5b9cfb=_0x26cfea[_0x5e20('0x5a')]-_0x37e044[_0x5e20('0x5a')]||_0x26cfea[_0x5e20('0xb4')]-_0x37e044[_0x5e20('0xb4')];if(_0x5b9cfb>0x0)break;if(_0x5b9cfb<0x0)_0xd4dfae++;else{if(!_0x26cfea[_0x5e20('0x4')]&&_0x37e044[_0x5e20('0x4')])break;if(_0x37e044[_0x5e20('0x4')]||!_0x26cfea['creator']){if(_0x26cfea[_0x5e20('0xf8')]>_0x37e044[_0x5e20('0xf8')])break;_0xd4dfae++;}else _0xd4dfae++;}}return _0xd4dfae;}[_0x5e20('0xb2')](_0x406453){const _0x3f739b=this[_0x5e20('0xed')][_0x5e20('0xf6')](_0x406453['id']);if(_0x406453[_0x5e20('0xf8')]&&(_0x406453[_0x5e20('0xf8')]=new Date(_0x406453[_0x5e20('0xf8')])),_0x406453[_0x5e20('0x98')]){const _0xe6306=this['editor'][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'));_0x406453[_0x5e20('0x86')]=_0x406453[_0x5e20('0x98')][_0x5e20('0xf')](_0x245112=>_0xe6306['getUser'](_0x245112));}_0x3f739b[_0x5e20('0x75')](_0x406453,!0x0);}[_0x5e20('0xe5')]({revision:_0x25b5e1=null,from:_0x5e81fa=null,to:_0x53f10c=null}){_0x5e81fa=null!==_0x5e81fa?_0x5e81fa:_0x25b5e1[_0x5e20('0xb4')],_0x53f10c=null!==_0x53f10c?_0x53f10c:_0x25b5e1[_0x5e20('0x5a')];const _0x2fbc4f=this[_0x5e20('0xe7')][_0x5e20('0x6f')](_0x5e81fa,_0x53f10c),_0x4c88ae={'diffData':_0x2fbc4f[_0x5e20('0x8d')],'authorsIds':_0x2fbc4f['authorsIds'],'fromVersion':_0x5e81fa,'toVersion':_0x53f10c};if(!_0x25b5e1||_0x53f10c!==_0x25b5e1[_0x5e20('0x5a')]){const _0x4dcd1f=_0x53f10c-0x1,_0x4d496a=this[_0x5e20('0x5')][_0x5e20('0x62')]['getOperation'](_0x4dcd1f);_0x4c88ae['createdAt']=_0x4d496a&&_0x4d496a[_0x5e20('0xf8')]||new Date();}if(this['_loadedStateData']&&_0x5e81fa===this[_0x5e20('0xc1')][_0x5e20('0xb4')])for(const _0x4761cb of this[_0x5e20('0xc1')]['authors'])_0x4c88ae['authorsIds'][_0x5e20('0x69')](_0x4761cb['id'])||_0x4c88ae[_0x5e20('0x98')][_0x5e20('0x1c')](_0x4761cb['id']);return _0x4c88ae;}[_0x5e20('0x95')](_0x4cce19){if(!_0x4cce19||_0x4cce19[_0x5e20('0x8d')])return Promise[_0x5e20('0x32')]();{const _0x2fbd34=this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0xca'));return this[_0x5e20('0xf3')][_0x5e20('0xf6')]({'channelId':_0x2fbd34,'revisionId':_0x4cce19['id']})[_0x5e20('0x35')](_0x2d72a4=>{_0x4cce19['diffData']=_0x2d72a4['diffData'];});}}[_0x5e20('0x85')](_0x4445cb,_0x5a5685,_0x28244c){if(this['_bufferedUpdates'][_0x5e20('0xb7')](_0x4445cb)){const _0x472a19=this['_bufferedUpdates'][_0x5e20('0x59')](_0x4445cb);_0x5a5685=_0x28244c?{..._0x472a19,..._0x5a5685}:{..._0x5a5685,..._0x472a19};}this[_0x5e20('0x10')]['set'](_0x4445cb,_0x5a5685);}['_getFromVersion'](_0x57a2aa){const _0x3e7590=this[_0x5e20('0xed')]['getRevisions']();_0x3e7590[_0x5e20('0xdc')](),_0x3e7590[_0x5e20('0xa2')]();const _0x3a74e7=_0x3e7590[_0x5e20('0xc2')](_0x343795=>_0x343795['toVersion']<=_0x57a2aa)[_0x5e20('0x5a')];return _0x3a74e7<this[_0x5e20('0x7f')]?this[_0x5e20('0x7f')]:_0x3a74e7;}[_0x5e20('0xbb')](_0x19b6bc){const _0x4ae738=this[_0x5e20('0xed')][_0x5e20('0xf6')](this[_0x5e20('0xed')][_0x5e20('0xe0')]-0x1);if(_0x4ae738)this['_initialRevisionId']=_0x4ae738['id'];else{const _0x45f3a3=!this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0xc4')][_0x5e20('0xc2')](_0x1a2fa9=>this[_0x5e20('0xbe')]['model'][_0x5e20('0x38')](_0x1a2fa9)),_0x1adbf7=this['editor']['plugins'][_0x5e20('0x59')]('Users')['me']['id'],_0x3fd5fd=_0x3c1f4c(this[_0x5e20('0xbe')][_0x5e20('0xe4')],_0x45f3a3?_0x5e20('0x43'):_0x5e20('0xa1'));this['_makeRevision']({'from':_0x19b6bc,'to':_0x19b6bc,'id':this[_0x5e20('0x73')],'name':_0x3fd5fd,'creatorId':_0x1adbf7});}}[_0x5e20('0xab')](_0x4bcf94){const _0x1c6416=this[_0x5e20('0x5')]['getCurrentRevisionId']();this[_0x5e20('0xd0')]=this[_0x5e20('0xed')]['getRevision'](_0x1c6416),this[_0x5e20('0xd0')]||(this['currentRevision']=this[_0x5e20('0x18')]({'from':_0x4bcf94,'to':_0x4bcf94,'id':_0x1c6416,'name':'','creatorId':null}));}['_makeRevision']({name:_0x338721,from:_0x483606,to:_0xf3a27d,creatorId:_0x3d83f3,id:_0x4a662f}){const _0x4a4488=this[_0x5e20('0xe5')]({'from':_0x483606,'to':_0xf3a27d});_0x4a4488[_0x5e20('0xcf')]=_0x338721,_0x4a4488[_0x5e20('0x12')]=_0x3d83f3,_0x4a4488['id']=_0x4a662f;const _0x597c02=this[_0x5e20('0xef')](_0x4a4488);return this['adapter']&&this[_0x5e20('0x85')](_0x4a4488['id'],_0x4a4488,!0x0),_0x597c02;}[_0x5e20('0x47')](){this[_0x5e20('0xbe')][_0x5e20('0xbf')]['for'](_0x5e20('0x107'))[_0x5e20('0x60')]({'model':_0x5e20('0x7c')});}[_0x5e20('0xf7')](_0x3c6c8a){return(_0x3c6c8a=_0x3c6c8a[_0x5e20('0x5e')](_0x2cea56=>!_0x2cea56[_0x5e20('0xcf')]||_0x5e20('0xd8')!==_0x2cea56[_0x5e20('0xcf')]&&_0x5e20('0xe6')!==_0x2cea56[_0x5e20('0xcf')]))[_0x5e20('0x2f')](_0x3f4b33=>{'string'!=typeof _0x3f4b33&&(_0x3f4b33[_0x5e20('0xa6')]=this[_0x5e20('0xf7')](_0x3f4b33[_0x5e20('0xa6')]),_0x3f4b33[_0x5e20('0xfe')]=_0x3f4b33[_0x5e20('0xfe')]['filter'](_0x4ceb7d=>!_0x4ceb7d[0x0][_0x5e20('0x41')](_0x5e20('0xfb'))));}),_0x3c6c8a;}}function J(_0x38f30e,_0x1ec764){const _0x49f818=_0x1ec764['editing'][_0x5e20('0x53')]['document'];if('string'==typeof _0x38f30e)return new _0x505f06(_0x49f818,_0x38f30e);{const _0x55b7cf=_0x38f30e[_0x5e20('0xa6')][_0x5e20('0xf')](_0x5dc890=>J(_0x5dc890,_0x1ec764));return new(B[_0x38f30e[(_0x5e20('0x9'))]]||_0x8fa111)(_0x49f818,_0x38f30e[_0x5e20('0xcf')],_0x38f30e[_0x5e20('0xfe')],_0x55b7cf);}}class H{constructor(_0x3bfaa7){this[_0x5e20('0xbe')]=_0x3bfaa7,this[_0x5e20('0xb0')]=new Map(),this[_0x5e20('0xad')]=-0x1,this[_0x5e20('0x44')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x5e20('0x89')]=new Map(),this[_0x5e20('0xf0')]=new Map(),this[_0x5e20('0xf1')]=new Map(),this[_0x5e20('0xf2')]=new Map(),this[_0x5e20('0x10a')]=new Map(),this[_0x5e20('0xd2')]=new Map(),this[_0x5e20('0x24')]=new Map(),this[_0x5e20('0x55')]=0x1;}[_0x5e20('0x92')](_0x42f119){this[_0x5e20('0x80')]=_0x42f119;const _0x4a4cad=new Map(),_0x26e4fb=new Map(),_0x22e4ef=this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')]['roots'][_0x5e20('0xf')](_0x1d0bc2=>_0x1d0bc2[_0x5e20('0xe8')]);for(const _0x28f8a1 of _0x22e4ef){const _0x239911=this['editor'][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x71')](_0x28f8a1),_0x93c641=q(_0x239911);_0x4a4cad['set'](_0x28f8a1,_0x93c641),_0x26e4fb['set'](_0x28f8a1,Object[_0x5e20('0x29')](_0x239911['getAttributes']()));}const _0x45b634=Array[_0x5e20('0x106')](this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0x52')])[_0x5e20('0xf')](_0xb58bb3=>[_0xb58bb3[_0x5e20('0xcf')],_0xb58bb3[_0x5e20('0x6c')]()]),_0x4093b4=this['source'][_0x5e20('0x6')];this[_0x5e20('0xc5')](_0x4093b4,_0x4a4cad,_0x45b634,_0x26e4fb),this['_startingRevisionId']=this[_0x5e20('0x55')];const _0x16eb4f=new Map(),_0x14c0da=new Map();for(const _0x278c31 of _0x22e4ef){const _0x5034f2=G(_0x278c31);_0x16eb4f[_0x5e20('0xd6')](_0x278c31,_0x5034f2),_0x14c0da['set'](_0x278c31,{});}this['_saveMetaData'](Number[_0x5e20('0x4a')],_0x16eb4f,[],_0x14c0da);}['getData'](_0x420ccf,_0x552256){if(this[_0x5e20('0xad')]===_0x420ccf&&this[_0x5e20('0x44')]<=_0x552256)this['_savedMetaData']['size']>0x1&&this[_0x5e20('0x70')](this[_0x5e20('0x44')]),this[_0x5e20('0xbc')](this['_lastTo'],_0x552256,!0x0);else{if(!this[_0x5e20('0xb0')][_0x5e20('0xb7')](_0x420ccf)){const _0x591222=this[_0x5e20('0x22')](_0x420ccf);this[_0x5e20('0xdf')](_0x591222,_0x420ccf,!0x1);}this[_0x5e20('0xdf')](_0x420ccf,_0x552256,!0x0);}return this[_0x5e20('0xad')]=_0x420ccf,this[_0x5e20('0x44')]=_0x552256,this[_0x5e20('0x79')]();}[_0x5e20('0xaa')](_0x326497){this['_reset'](),this['_lastFrom']=_0x326497[_0x5e20('0xb4')],this[_0x5e20('0x44')]=_0x326497['toVersion'];for(const _0x4214d0 in _0x326497[_0x5e20('0x8d')]){const _0x2bd31c=_0x326497[_0x5e20('0x8d')][_0x4214d0][_0x5e20('0x3')],_0x266750=_0x3c23d6(_0x326497[_0x5e20('0x8d')][_0x4214d0]['attributesBefore'])||{},_0x21ce1d=this[_0x5e20('0xfa')](_0x326497[_0x5e20('0x8d')][_0x4214d0][_0x5e20('0xe1')]);_0x21ce1d[_0x5e20('0xe8')]=_0x4214d0,_0x21ce1d[_0x5e20('0xec')]=!_0x2bd31c||!_0x2bd31c[_0x5e20('0xb5')],_0x21ce1d[_0x5e20('0xb5')]=()=>_0x21ce1d[_0x5e20('0xec')],this[_0x5e20('0x89')]['set'](_0x4214d0,_0x21ce1d),this['_baseRootsAttributes'][_0x5e20('0xd6')](_0x4214d0,_0x266750),_0x2bd31c&&this['_touchedRoots']['set'](_0x4214d0,_0x2bd31c);const _0x77e495=this['_makeIdsRoot'](_0x21ce1d);this[_0x5e20('0xf2')]['set'](_0x4214d0,_0x77e495);for(const [_0xf51d37,_0x275bdb]of _0x21ce1d[_0x5e20('0x52')]){if(!_0xf51d37['startsWith'](_0x5e20('0x30')))continue;const _0x18b728=_0xf51d37[_0x5e20('0x13')](':')[0x2];for(const _0x45fa39 of _0x275bdb[_0x5e20('0xb9')]({'singleCharacters':!0x0})){const _0x2e1215=this[_0x5e20('0xd5')](_0x45fa39),_0x32eb47=_0x5e20('0xf9')==_0x45fa39['type']?_0x45fa39[_0x5e20('0x3b')][_0x5e20('0x84')][_0x5e20('0x8a')](0x0,-0x1):_0x45fa39[_0x5e20('0x3b')][_0x5e20('0x84')],_0x30df38=_0x77e495[_0x5e20('0xa')](_0x32eb47)['getAttribute'](_0x2e1215);this[_0x5e20('0x10a')]['set'](_0x30df38,{'userId':_0x18b728});}}}this['_startingRevisionId']=this[_0x5e20('0x55')];const _0x53a4b9=[...Array(this[_0x5e20('0x55')])[_0x5e20('0x15')]()]['slice'](0x1)[_0x5e20('0x5e')](_0x27cd8c=>!this[_0x5e20('0x10a')][_0x5e20('0xb7')](_0x27cd8c));let _0x2c9d4d=0x0;const _0x54be54=new Map();for(const _0x3d069a in _0x326497[_0x5e20('0x8d')]){const _0x49a685=_0x326497[_0x5e20('0x8d')][_0x3d069a][_0x5e20('0x3')],_0x2475e6=_0x3c23d6(_0x326497[_0x5e20('0x8d')][_0x3d069a][_0x5e20('0x8c')])||{},_0x3a88df=this[_0x5e20('0xfa')](_0x326497[_0x5e20('0x8d')][_0x3d069a]['insertions']);_0x3a88df['rootName']=_0x3d069a,_0x3a88df[_0x5e20('0xec')]=!_0x49a685||_0x49a685['isAttached'],_0x3a88df[_0x5e20('0xb5')]=()=>_0x3a88df[_0x5e20('0xec')],this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x3d069a,_0x3a88df),this[_0x5e20('0x6b')][_0x5e20('0xd6')](_0x3d069a,_0x2475e6);const _0x333261=this[_0x5e20('0xb1')](_0x3a88df,Number[_0x5e20('0x4a')]);this['_idsRoots'][_0x5e20('0xd6')](_0x3d069a,_0x333261),_0x54be54[_0x5e20('0xd6')](_0x3d069a,_0x3a88df[_0x5e20('0xb5')]()?_0x2475e6:{});for(const [_0x17aa5c,_0x361bd3]of _0x3a88df['markers']){if(!_0x17aa5c[_0x5e20('0x41')]('revision:'))continue;const _0x322cbc=_0x17aa5c[_0x5e20('0x13')](':')[0x2];for(const _0x369a38 of _0x361bd3[_0x5e20('0xb9')]({'singleCharacters':!0x0})){const _0x80e10f=this['_getVidAttributeName'](_0x369a38),_0x3b696a=this[_0x5e20('0x55')]++,_0x1e1f94=_0x5e20('0xf9')==_0x369a38['type']?_0x369a38[_0x5e20('0x3b')][_0x5e20('0x84')][_0x5e20('0x8a')](0x0,-0x1):_0x369a38['previousPosition'][_0x5e20('0x84')];_0x333261[_0x5e20('0xa')](_0x1e1f94)['_setAttribute'](_0x80e10f,_0x3b696a),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x3b696a,{'userId':_0x322cbc});}}for(const _0x2b9453 of this['editor'][_0x5e20('0x87')][_0x5e20('0xf5')](_0x3a88df)[_0x5e20('0xb9')]({'singleCharacters':!0x0})){const _0xdc06c5=this[_0x5e20('0xd5')](_0x2b9453),_0x493f50=_0x5e20('0xf9')==_0x2b9453[_0x5e20('0x9')]?_0x2b9453['previousPosition']['path']['slice'](0x0,-0x1):_0x2b9453[_0x5e20('0x3b')]['path'],_0x286e35=_0x333261[_0x5e20('0xa')](_0x493f50);_0x286e35[_0x5e20('0x90')](_0xdc06c5)>0x0||_0x286e35['_setAttribute'](_0xdc06c5,_0x53a4b9[_0x2c9d4d++]);}for(const [_0x4b4cd2,_0x19a9fc]of _0x3a88df[_0x5e20('0x52')])_0x4b4cd2[_0x5e20('0x41')]('revision:')||this[_0x5e20('0xc0')][_0x5e20('0xd6')](_0x4b4cd2,_0x19a9fc);}const _0x3a3175=G(_0x5e20('0x9f'));this[_0x5e20('0x89')][_0x5e20('0xd6')]('$graveyard',_0x3a3175),this[_0x5e20('0xf2')][_0x5e20('0xd6')](_0x5e20('0x9f'),this['_makeIdsRoot'](_0x3a3175,0x1));const _0x104b4f=G('$graveyard');this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x5e20('0x9f'),_0x104b4f),this['_idsRoots'][_0x5e20('0xd6')](_0x5e20('0x9f'),this[_0x5e20('0xb1')](_0x104b4f,0x1));const _0x4a064a=Array[_0x5e20('0x106')](this['_diffRoots'])[_0x5e20('0xf')](([_0x569bdb,_0x4c9fc7])=>[_0x569bdb,q(_0x4c9fc7)]);this[_0x5e20('0xc5')](this['_lastTo'],_0x4a064a,this[_0x5e20('0xc0')],_0x54be54);}[_0x5e20('0xfa')](_0x22fc6a){const _0x3143f6=JSON[_0x5e20('0x2d')](_0x22fc6a),_0x49dc4b=this['editor']['editing'][_0x5e20('0x53')]['document'],_0x16f088=new _0x5185bc(_0x49dc4b,_0x3143f6[_0x5e20('0xf')](_0x446df8=>J(_0x446df8,this[_0x5e20('0xbe')])));return this['editor'][_0x5e20('0x49')]['toModel'](_0x16f088);}[_0x5e20('0xc5')](_0xb801e6,_0x4cbe03,_0x42c810,_0x4b03f4){const _0x539aa6=new Map(_0x4cbe03),_0x266bb2=new Map(_0x3c23d6(_0x4b03f4)),_0x5b3350=new Map();for(const [_0x2af8d1,_0x304596]of _0x42c810)_0x5b3350[_0x5e20('0xd6')](_0x2af8d1,{'start':_0x304596[_0x5e20('0xdb')][_0x5e20('0x5f')](),'end':_0x304596[_0x5e20('0xa5')][_0x5e20('0x5f')](),'rootName':_0x304596['root']['rootName']});this[_0x5e20('0xb0')][_0x5e20('0xd6')](_0xb801e6,{'roots':_0x539aa6,'markers':_0x5b3350,'rootsAttributes':_0x266bb2});}['_removeMetaData'](_0x4ab34b){this[_0x5e20('0xb0')][_0x5e20('0x2c')](_0x4ab34b);}[_0x5e20('0xce')](){this[_0x5e20('0x6a')](),this['_lastFrom']=-0x1,this[_0x5e20('0x44')]=-0x1,this[_0x5e20('0xb0')][_0x5e20('0x1d')](),this[_0x5e20('0x92')](this[_0x5e20('0x80')]);}[_0x5e20('0x6a')](){this[_0x5e20('0x10a')][_0x5e20('0x1d')](),this[_0x5e20('0xd2')][_0x5e20('0x1d')](),this[_0x5e20('0x24')]['clear'](),this[_0x5e20('0x8f')]['clear'](),this['_diffRootsAttributes'][_0x5e20('0x1d')](),this[_0x5e20('0x89')][_0x5e20('0x1d')](),this[_0x5e20('0xf0')][_0x5e20('0x1d')](),this[_0x5e20('0xf1')][_0x5e20('0x1d')](),this[_0x5e20('0xf2')][_0x5e20('0x1d')](),this[_0x5e20('0xc0')][_0x5e20('0x1d')](),this[_0x5e20('0x55')]=0x1,this[_0x5e20('0x6e')]=this['_revisionId'];}[_0x5e20('0xb1')](_0x356d3d,_0x207351=null){let _0x3678f0=null;_0x356d3d['is'](_0x5e20('0xb6'))||(_0x3678f0=new _0x1232af(_0x356d3d[_0x5e20('0xcf')],{'vid_start':null===_0x207351?this[_0x5e20('0x55')]++:_0x207351++}));const _0xe8e7da=[];for(const _0xd4c3e2 of _0x356d3d[_0x5e20('0xea')]())if(_0xd4c3e2['is'](_0x5e20('0x40'))){_0xe8e7da['push'](this['_makeIdsRoot'](_0xd4c3e2,_0x207351));const _0x239733=_0xe8e7da[_0xe8e7da[_0x5e20('0xe0')]-0x1];null!==_0x207351&&(_0x207351=_0x239733['is'](_0x5e20('0x40'),'$text')?_0x239733[_0x5e20('0x90')](_0x5e20('0x83'))+0x1:_0x239733[_0x5e20('0x90')](_0x5e20('0x91'))+0x1);}else for(let _0x46dd9b=0x0;_0x46dd9b<_0xd4c3e2['offsetSize'];_0x46dd9b++)_0xe8e7da[_0x5e20('0x1c')](new _0x1232af(_0x5e20('0xe2'),{'vid':null===_0x207351?this['_revisionId']++:_0x207351++}));if(_0x356d3d['is'](_0x5e20('0xb6'))){const _0x43470e=G(_0x356d3d[_0x5e20('0xe8')]);return _0x43470e['_insertChild'](0x0,_0xe8e7da),_0x43470e;}return _0x3678f0[_0x5e20('0xdd')]('vid_end',null===_0x207351?this['_revisionId']++:_0x207351++),_0x3678f0[_0x5e20('0xa4')](0x0,_0xe8e7da),_0x3678f0;}[_0x5e20('0xdf')](_0x17e942,_0x1f9e66,_0x3bb6cc){this[_0x5e20('0x6a')]();const {roots:_0x4289f5,markers:_0xed5fa,rootsAttributes:_0x46028f}=this['_savedMetaData'][_0x5e20('0x59')](_0x17e942);this[_0x5e20('0x89')]=new Map(_0x4289f5),this['_baseRootsAttributes']=new Map(_0x3c23d6(_0x46028f));for(const [_0xee0754,_0x30a977]of this[_0x5e20('0x89')])if(_0x5e20('0x9f')!==_0xee0754&&(this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0xee0754,q(_0x30a977)),this['_diffRootsAttributes']=new Map(_0x3c23d6(_0x46028f)),_0x3bb6cc)){const _0x53b932=this[_0x5e20('0x55')];this[_0x5e20('0xf1')][_0x5e20('0xd6')](_0xee0754,this[_0x5e20('0xb1')](_0x30a977)),this['_baseIdsRoots'][_0x5e20('0xd6')](_0xee0754,this[_0x5e20('0xb1')](_0x30a977,_0x53b932));}this[_0x5e20('0x6e')]=this[_0x5e20('0x55')],this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x5e20('0x9f'),q(this['_baseRoots']['get'](_0x5e20('0x9f')))),_0x3bb6cc&&this[_0x5e20('0xf1')][_0x5e20('0xd6')]('$graveyard',this[_0x5e20('0xb1')](this[_0x5e20('0x89')][_0x5e20('0x59')]('$graveyard')));for(const [_0x524411,_0x342c05]of _0xed5fa){const _0x549124=this[_0x5e20('0x89')][_0x5e20('0x59')](_0x342c05[_0x5e20('0xe8')]),_0x2389bb=this[_0x5e20('0x8f')][_0x5e20('0x59')](_0x342c05[_0x5e20('0xe8')]),_0x42846a=new _0x472eca(this[_0x5e20('0x51')](_0x342c05[_0x5e20('0xdb')],_0x549124),this[_0x5e20('0x51')](_0x342c05[_0x5e20('0xa5')],_0x549124)),_0x5e6973=this[_0x5e20('0x31')](_0x42846a,_0x2389bb);_0x549124['markers'][_0x5e20('0xd6')](_0x524411,_0x42846a),this[_0x5e20('0xc0')]['set'](_0x524411,_0x5e6973);}this[_0x5e20('0xbc')](_0x17e942,_0x1f9e66,_0x3bb6cc);}[_0x5e20('0xbc')](_0x44c7cc,_0x15e740,_0x18fd8e){for(const _0x38f833 of this[_0x5e20('0x80')][_0x5e20('0x105')](_0x44c7cc,_0x15e740))this[_0x5e20('0x4d')](_0x38f833,_0x18fd8e);for(const _0x23b5be of this[_0x5e20('0x8f')][_0x5e20('0x7d')]())_0x23b5be[_0x5e20('0x52')]['clear']();for(const [_0x113b52,_0x29b4e3]of this[_0x5e20('0xc0')]){this[_0x5e20('0x8f')][_0x5e20('0x59')](_0x29b4e3['root'][_0x5e20('0xe8')])[_0x5e20('0x52')][_0x5e20('0xd6')](_0x113b52,_0x29b4e3[_0x5e20('0x5f')]());}const _0x1fce10=new Map(),_0x4cfe29=new Map();for(const [_0x3ad339,_0x4da7bf]of this[_0x5e20('0x8f')])_0x1fce10[_0x5e20('0xd6')](_0x3ad339,q(_0x4da7bf)),_0x4cfe29[_0x5e20('0xd6')](_0x3ad339,this[_0x5e20('0x6b')]['get'](_0x3ad339));this[_0x5e20('0xc5')](_0x15e740,_0x1fce10,this[_0x5e20('0xc0')],_0x4cfe29);}[_0x5e20('0x22')](_0x2b6db8){const _0xec70a0=Array[_0x5e20('0x106')](this[_0x5e20('0xb0')][_0x5e20('0x15')]());_0xec70a0[_0x5e20('0x10d')]((_0x1aec18,_0x158466)=>_0x1aec18-_0x158466),_0xec70a0[_0x5e20('0xdc')]();for(const _0x59ff95 of _0xec70a0)if(_0x59ff95<_0x2b6db8)return _0x59ff95;return Number['NEGATIVE_INFINITY'];}[_0x5e20('0x10b')](_0x1df6c1,_0x22c43d){const _0x52bb1e=Array['from'](_0x22c43d['markers'])[_0x5e20('0xf')](([_0x27836d,_0x20369c])=>[_0x27836d,this[_0x5e20('0x31')](_0x20369c,_0x1df6c1)]);_0x1df6c1[_0x5e20('0x52')]=new Map(_0x52bb1e);}[_0x5e20('0x74')](_0x32201e){for(const _0xcfb3b9 of this['_markers']['values']()){const _0x2e6d95=_0xcfb3b9['getTransformedByOperation'](_0x32201e),_0x3618de=_0x472eca[_0x5e20('0xd')](_0x2e6d95);_0xcfb3b9[_0x5e20('0xdb')]=_0x3618de[_0x5e20('0xdb')],_0xcfb3b9[_0x5e20('0xa5')]=_0x3618de[_0x5e20('0xa5')];}}[_0x5e20('0x4d')](_0x25b6f7,_0x1ac249){if(_0x5e20('0x0')==_0x25b6f7[_0x5e20('0x9')]||'detachRoot'==_0x25b6f7[_0x5e20('0x9')])return void this[_0x5e20('0x1')](_0x25b6f7,_0x1ac249);if(_0x5e20('0x1b')==_0x25b6f7[_0x5e20('0x9')]){const _0x8440c0=_0x25b6f7[_0x5e20('0x1f')][_0x5e20('0x27')]['rootName'];this[_0x5e20('0x8f')][_0x5e20('0xb7')](_0x8440c0)||(this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x8440c0,G(_0x8440c0,!0x0)),this[_0x5e20('0x6b')][_0x5e20('0xd6')](_0x8440c0,{}),_0x1ac249&&this[_0x5e20('0xf1')]['set'](_0x8440c0,G(_0x8440c0,!0x0)));}else{if('addRootAttribute'==_0x25b6f7[_0x5e20('0x9')]||_0x5e20('0x94')==_0x25b6f7[_0x5e20('0x9')]||'changeRootAttribute'==_0x25b6f7['type'])return void this['_handleRootAttributeOperation'](_0x25b6f7);}const _0x443a22=this[_0x5e20('0x100')](_0x25b6f7,this[_0x5e20('0x8f')]);if(_0x5e20('0x81')!==_0x25b6f7[_0x5e20('0x9')]&&(_0x443a22[_0x5e20('0x23')](),this[_0x5e20('0x74')](_0x443a22)),_0x1ac249)switch(_0x443a22['type']){case'insert':this['_handleInsertOperation'](_0x25b6f7);break;case _0x5e20('0x3a'):case'remove':case _0x5e20('0xc7'):this[_0x5e20('0xcb')](_0x25b6f7);break;case _0x5e20('0x9d'):this[_0x5e20('0x99')](_0x25b6f7);break;case _0x5e20('0x13'):this[_0x5e20('0x20')](_0x25b6f7);break;case _0x5e20('0x81'):this[_0x5e20('0xd3')](_0x25b6f7);}}[_0x5e20('0x100')](_0x60f297,_0x76d528){const _0xe94266=_0x60f297[_0x5e20('0x5f')]();return _0xe94266[_0x5e20('0xe')]=_0x60f297[_0x5e20('0xe')],this['_fixOperation'](_0xe94266,_0x76d528),_0xe94266;}[_0x5e20('0xda')](_0x11ea6c){return _0x11ea6c[_0x5e20('0xf')](_0x19812d=>{const _0x43460f=this[_0x5e20('0xd5')](_0x19812d);return Number(_0x19812d[_0x5e20('0x93')][_0x5e20('0x90')](_0x43460f));});}['_generateTape'](_0x5f1842,_0x36f833){if(_0x5f1842['is'](_0x5e20('0x40'),_0x5e20('0xe2')))_0x36f833[_0x5e20('0x1c')]({'item':_0x5f1842,'type':_0x5e20('0x58')});else{_0x5f1842['is'](_0x5e20('0x40'))&&_0x36f833[_0x5e20('0x1c')]({'item':_0x5f1842,'type':_0x5e20('0x3e')});for(const _0x172c40 of _0x5f1842[_0x5e20('0xea')]())this[_0x5e20('0xd9')](_0x172c40,_0x36f833);_0x5f1842['is'](_0x5e20('0x40'))&&_0x36f833[_0x5e20('0x1c')]({'item':_0x5f1842,'type':_0x5e20('0xf9')});}return _0x36f833;}[_0x5e20('0x79')](){const _0x2b00b4=new Map(this[_0x5e20('0x10a')]),_0x3c0c28=new Map(_0x2b00b4),_0x43d4d4=new Map(),_0x4a9138={'insertions':{},'deletions':{}},_0x15570c={'insertions':{},'deletions':{}},_0x215d08=new Map(),_0xd69901=new Set([...this[_0x5e20('0x89')][_0x5e20('0x15')](),...this[_0x5e20('0x8f')][_0x5e20('0x15')]()]);_0xd69901[_0x5e20('0x2c')](_0x5e20('0x9f'));for(const _0x4a6d66 of _0xd69901){const _0x6b33ac=this[_0x5e20('0x8f')]['get'](_0x4a6d66)||G(_0x4a6d66,!0x1),_0x385d4c=this[_0x5e20('0x89')]['get'](_0x4a6d66)||G(_0x4a6d66,!0x1);_0x6b33ac[_0x5e20('0xb5')]()||_0x385d4c['isAttached']()?(_0x4a9138['insertions'][_0x4a6d66]=q(_0x6b33ac),_0x4a9138[_0x5e20('0xe1')][_0x4a6d66]=q(_0x385d4c),this[_0x5e20('0x10b')](_0x4a9138[_0x5e20('0xe1')][_0x4a6d66],_0x385d4c),this[_0x5e20('0x10b')](_0x4a9138[_0x5e20('0xd7')][_0x4a6d66],_0x6b33ac),_0x15570c[_0x5e20('0xd7')][_0x4a6d66]=this[_0x5e20('0xd9')](this[_0x5e20('0xf1')][_0x5e20('0x59')](_0x4a6d66),[]),_0x15570c[_0x5e20('0xe1')][_0x4a6d66]=this[_0x5e20('0xd9')](this['_baseIdsRoots'][_0x5e20('0x59')](_0x4a6d66)||G(_0x4a6d66,!0x1),[])):_0xd69901[_0x5e20('0x2c')](_0x4a6d66);}for(const _0xc893e0 of _0xd69901){const _0x155413=_0x15570c[_0x5e20('0xd7')][_0xc893e0];for(const _0x208871 of _0x155413){const _0x3e9e41=this['_getVidAttributeName'](_0x208871),_0x311ad9=_0x208871[_0x5e20('0x93')][_0x5e20('0x90')](_0x3e9e41);_0x3c0c28[_0x5e20('0x2c')](_0x311ad9),_0x311ad9>=this[_0x5e20('0x6e')]&&_0x43d4d4[_0x5e20('0xd6')](_0x311ad9,_0x2b00b4[_0x5e20('0x59')](_0x311ad9));}}for(const _0x5ee3ba of _0xd69901){const _0x38f522=_0x15570c[_0x5e20('0xd7')][_0x5ee3ba],_0x30b8c0=this[_0x5e20('0xda')](_0x15570c[_0x5e20('0xe1')][_0x5ee3ba]);let _0x3ccfbe=0x0;for(const _0x22d741 of _0x38f522){const _0x40555c=this[_0x5e20('0xd5')](_0x22d741),_0x274a9b=_0x22d741[_0x5e20('0x93')][_0x5e20('0x90')](_0x40555c);if(!_0x43d4d4[_0x5e20('0xb7')](_0x274a9b)&&!_0x215d08[_0x5e20('0xb7')](_0x274a9b)){if(_0x3c0c28[_0x5e20('0xb7')](_0x274a9b))_0x3ccfbe++;else{if(_0x274a9b!=_0x30b8c0[_0x3ccfbe]){const _0xc3df59=_0x2b00b4[_0x5e20('0x59')](_0x274a9b)||_0x2b00b4[_0x5e20('0x59')](_0x30b8c0[_0x3ccfbe]);for(;_0x274a9b!=_0x30b8c0[_0x3ccfbe];)_0x3c0c28[_0x5e20('0xb7')](_0x30b8c0[_0x3ccfbe])||(_0x215d08['set'](_0x30b8c0[_0x3ccfbe],_0xc3df59),_0x2b00b4[_0x5e20('0xd6')](_0x30b8c0[_0x3ccfbe],_0xc3df59)),_0x3ccfbe++;}_0x3ccfbe++;}}}}for(const _0x5ac0de of _0xd69901){const _0x803a06=_0x15570c[_0x5e20('0xd7')][_0x5ac0de];for(const _0x481056 of _0x803a06){const _0x5d2c94=this['_getVidAttributeName'](_0x481056),_0x205506=_0x481056[_0x5e20('0x93')]['getAttribute'](_0x5d2c94);if(_0x215d08[_0x5e20('0xb7')](_0x205506)){const _0x250e28=_0x215d08[_0x5e20('0x59')](_0x205506);_0x3c0c28[_0x5e20('0xb7')](_0x205506)||_0x3c0c28[_0x5e20('0xd6')](_0x205506,{..._0x250e28}),_0x43d4d4[_0x5e20('0xd6')](_0x205506,{..._0x250e28});}}}for(const _0x9deb4c of _0x3c0c28['keys']())_0x9deb4c>=this['_startingRevisionId']&&_0x3c0c28['delete'](_0x9deb4c);const _0x511620=new Map();for(const _0x36a726 of _0xd69901){let _0x292def=_0x15570c['insertions'][_0x36a726];for(const _0x21c058 of _0x292def)if(_0x21c058[_0x5e20('0x93')]['is'](_0x5e20('0x40'),_0x5e20('0x8'))){const _0x42136a=this['_getVidAttributeName'](_0x21c058),_0x472bde=_0x21c058[_0x5e20('0x93')][_0x5e20('0x90')](_0x42136a);if(_0x43d4d4[_0x5e20('0xb7')](_0x472bde)){const _0x104123=_0x21c058['item'][_0x5e20('0x82')]['parent']['getAttribute'](_0x5e20('0x66')),_0x1c848c=_0x511620['get'](_0x104123)||new Set();_0x1c848c['add'](_0x43d4d4[_0x5e20('0x59')](_0x472bde)['userId']),_0x511620[_0x5e20('0xd6')](_0x104123,_0x1c848c);}}_0x292def=_0x15570c[_0x5e20('0xe1')][_0x36a726];for(const _0x2f26da of _0x292def)if(_0x2f26da[_0x5e20('0x93')]['is']('element',_0x5e20('0x8'))){const _0x114fbe=this[_0x5e20('0xd5')](_0x2f26da),_0x4df7e1=_0x2f26da[_0x5e20('0x93')]['getAttribute'](_0x114fbe);if(_0x3c0c28[_0x5e20('0xb7')](_0x4df7e1)){const _0x5ad43f=_0x2f26da[_0x5e20('0x93')]['parent']['parent'][_0x5e20('0x90')](_0x5e20('0x66')),_0x1bd39d=_0x511620[_0x5e20('0x59')](_0x5ad43f)||new Set();_0x1bd39d[_0x5e20('0x104')](_0x3c0c28['get'](_0x4df7e1)[_0x5e20('0x36')]),_0x511620[_0x5e20('0xd6')](_0x5ad43f,_0x1bd39d);}}for(const _0x500d93 of _0x511620[_0x5e20('0x15')]())(_0x43d4d4[_0x5e20('0xb7')](_0x500d93)||_0x3c0c28[_0x5e20('0xb7')](_0x500d93))&&_0x511620[_0x5e20('0x2c')](_0x500d93);}for(const _0x1913ad of _0xd69901){const _0x4b72a0=_0x15570c[_0x5e20('0xd7')][_0x1913ad];let _0x438819=null,_0x53b4d4=null;for(const _0xee7314 of _0x4b72a0){const _0x1b8391=this['_getVidAttributeName'](_0xee7314),_0x5d64c9=_0xee7314['item']['getAttribute'](_0x1b8391),_0x3d361b=_0x511620['get'](_0x5d64c9);_0x3d361b&&'elementStart'==_0xee7314['type']&&(_0x438819=Array['from'](_0x3d361b)[0x0],_0x53b4d4=_0xee7314[_0x5e20('0x93')][_0x5e20('0x90')]('vid_end')),_0x438819&&(_0x3c0c28['set'](_0x5d64c9,{'userId':_0x438819}),_0x43d4d4[_0x5e20('0xd6')](_0x5d64c9,{'userId':_0x438819})),_0x5d64c9==_0x53b4d4&&(_0x438819=null,_0x53b4d4=null);}}const _0x290f50={},_0x255ec6=new Set();for(const _0x50d0f0 of _0xd69901){const _0xadfce1=_0x4a9138[_0x5e20('0xe1')][_0x50d0f0],_0x4705f8=_0x4a9138[_0x5e20('0xd7')][_0x50d0f0];for(const {userId:_0x2329f3}of this[_0x5e20('0xd2')][_0x5e20('0x7d')]())null!==_0x2329f3&&_0x255ec6[_0x5e20('0x104')](_0x2329f3);for(const {userId:_0x12a288}of this['_touchedRoots'][_0x5e20('0x7d')]())null!==_0x12a288&&_0x255ec6[_0x5e20('0x104')](_0x12a288);this[_0x5e20('0x64')](_0x4705f8,_0x15570c[_0x5e20('0xd7')][_0x50d0f0],_0x43d4d4,_0x5e20('0x9c'),_0x255ec6),this[_0x5e20('0x64')](_0xadfce1,_0x15570c[_0x5e20('0xe1')][_0x50d0f0],_0x3c0c28,_0x5e20('0x108'),_0x255ec6),_0x290f50[_0x50d0f0]={'insertions':this[_0x5e20('0xc8')](_0x4705f8),'deletions':this[_0x5e20('0xc8')](_0xadfce1),'attachChange':this[_0x5e20('0x24')]['get'](_0x50d0f0)||null,'attributesBefore':_0x3c23d6(this['_baseRootsAttributes'][_0x5e20('0x59')](_0x50d0f0))||{},'attributesAfter':_0x3c23d6(this[_0x5e20('0x6b')][_0x5e20('0x59')](_0x50d0f0))};}return{'diffData':_0x290f50,'authorsIds':Array[_0x5e20('0x106')](_0x255ec6)};}['_processRootBeforeSave'](_0x5e636a){for(const [,_0x887c5b]of _0x5e636a[_0x5e20('0x52')]){const _0x38072b=_0x887c5b[_0x5e20('0xdb')]['getAncestors']()[_0x5e20('0x5e')](_0x337341=>_0x5e20('0x8')==_0x337341['name']);for(const _0x538ea2 of _0x38072b)0x1==_0x538ea2[_0x5e20('0xba')]&&_0x538ea2['getChild'](0x0)['is'](_0x5e20('0x40'),_0x5e20('0xc3'))&&_0x538ea2[_0x5e20('0x11')](0x0)[_0x5e20('0xdd')](_0x5e20('0x102'),!0x0);}}[_0x5e20('0xc8')](_0x5a13a8){this[_0x5e20('0xc9')](_0x5a13a8);const _0x480a80=this['editor'][_0x5e20('0x49')][_0x5e20('0x14')](_0x5a13a8,{}),_0x384259=Array['from'](_0x480a80[_0x5e20('0xea')]())['map'](_0x338dfe=>this[_0x5e20('0xa7')](_0x338dfe));return JSON[_0x5e20('0x3c')](_0x384259);}[_0x5e20('0xa7')](_0x5f378a){if(_0x5f378a['is']('$text'))return _0x5f378a['data'];{const _0x111b0b=_0x5f378a;return{'type':Object['keys'](B)[_0x5e20('0xc2')](_0x5cfce9=>_0x5f378a instanceof B[_0x5cfce9]),'name':_0x111b0b[_0x5e20('0xcf')],'attributes':Array['from'](_0x111b0b[_0x5e20('0x2')]()),'children':Array[_0x5e20('0x106')](_0x111b0b['getChildren']())['map'](_0x279e83=>this[_0x5e20('0xa7')](_0x279e83))};}}[_0x5e20('0x64')](_0x31b326,_0xb5574d,_0x2e415e,_0x2d65c3,_0x41b050){let _0x19e09d=null,_0x3e597b=null,_0x2751c1=0x0;const _0x4f76d6=this['editor'][_0x5e20('0x87')];for(let _0x2d1e10=0x0;_0x2d1e10<_0xb5574d[_0x5e20('0xe0')];_0x2d1e10++){const _0x348a11=this['_getVidAttributeName'](_0xb5574d[_0x2d1e10]),_0x52cc54=_0xb5574d[_0x2d1e10][_0x5e20('0x93')][_0x5e20('0x90')](_0x348a11),_0x3ecfb5=_0x2e415e['get'](_0x52cc54),_0x29ac9d=_0x2d1e10==_0xb5574d[_0x5e20('0xe0')]-0x1;(!_0x19e09d&&_0x3ecfb5&&(_0x19e09d=_0x3ecfb5,_0x3e597b=_0xb5574d[_0x2d1e10]),_0x19e09d&&(!_0x3ecfb5||_0x3ecfb5[_0x5e20('0x36')]!=_0x19e09d[_0x5e20('0x36')]))&&(_0x9303a2(_0x3ecfb5,L(_0x3e597b,_0x31b326,_0x4f76d6),L(_0xb5574d[_0x2d1e10],_0x31b326,_0x4f76d6)),_0x19e09d=_0x3ecfb5||null,_0x3e597b=_0x3ecfb5?_0xb5574d[_0x2d1e10]:null),_0x19e09d&&_0x29ac9d&&_0x9303a2(_0x3ecfb5,L(_0x3e597b,_0x31b326,_0x4f76d6),W(_0xb5574d[_0x2d1e10],_0x31b326,_0x4f76d6));}function _0x9303a2(_0x45a6a7,_0x4d41f2,_0xdde57f){const _0x2bd60c=_0x19e09d['userId'],_0x3bd81e='revision:'+_0x2d65c3+':'+_0x2bd60c+':'+_0x2751c1++,_0x23ef9f=_0x4f76d6[_0x5e20('0x28')](_0x4d41f2,_0xdde57f);_0x31b326['markers'][_0x5e20('0xd6')](_0x3bd81e,_0x23ef9f),null!==_0x2bd60c&&_0x41b050[_0x5e20('0x104')](_0x2bd60c);}}['_getVidAttributeName'](_0x268d24){switch(_0x268d24['type']){case'elementStart':return _0x5e20('0x66');case _0x5e20('0xf9'):return'vid_end';default:return _0x5e20('0x83');}}[_0x5e20('0x4f')](_0x2d3238,_0x3c49d7){_0x2d3238[_0x5e20('0x21')]=null;for(const _0x400387 in _0x2d3238){const _0x1cae1a=_0x2d3238[_0x400387];if(_0x1cae1a instanceof _0x3af9e3){const _0x34c0ef=_0x3c49d7[_0x5e20('0x59')](_0x1cae1a[_0x5e20('0x27')]['rootName']);_0x2d3238[_0x400387]=this[_0x5e20('0x51')](_0x1cae1a,_0x34c0ef);}if(_0x1cae1a instanceof _0x472eca){const _0x3f21ea=_0x3c49d7[_0x5e20('0x59')](_0x1cae1a[_0x5e20('0x27')][_0x5e20('0xe8')]);_0x2d3238[_0x400387]=this[_0x5e20('0x31')](_0x1cae1a,_0x3f21ea);}_0x5e20('0x27')===_0x400387&&(_0x2d3238[_0x5e20('0x27')]=_0x3c49d7[_0x5e20('0x59')](_0x2d3238['root'][_0x5e20('0xe8')]));}}[_0x5e20('0x31')](_0x4a927f,_0x1aa344){return this[_0x5e20('0xbe')]['model']['createRange'](this['_fixPosition'](_0x4a927f[_0x5e20('0xdb')],_0x1aa344),this['_fixPosition'](_0x4a927f[_0x5e20('0xa5')],_0x1aa344));}[_0x5e20('0x51')](_0x81e81e,_0x4367d2){return this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0x5d')](_0x4367d2,_0x81e81e[_0x5e20('0x84')],_0x81e81e[_0x5e20('0x33')]);}[_0x5e20('0xaf')](_0x3655af){const _0x27def3=this[_0x5e20('0xf1')][_0x5e20('0x59')](_0x3655af[_0x5e20('0x1f')][_0x5e20('0x27')]['rootName']),_0x5aec1c=this['_fixPosition'](_0x3655af[_0x5e20('0x1f')],_0x27def3),_0x23b7fc=null===_0x3655af['_authorId']?null:_0x3655af['_authorId']||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x54bea5=_0x5aec1c[_0x5e20('0x82')],_0x1105e7=this[_0x5e20('0x55')],_0x451eb3=[];for(const _0x39b897 of _0x3655af[_0x5e20('0x17')])if(_0x39b897['is'](_0x5e20('0x40')))_0x451eb3[_0x5e20('0x1c')](this[_0x5e20('0xb1')](_0x39b897));else for(let _0x2efc0e=0x0;_0x2efc0e<_0x39b897[_0x5e20('0x8b')];_0x2efc0e++)_0x451eb3[_0x5e20('0x1c')](new _0x1232af(_0x5e20('0xe2'),{'vid':this['_revisionId']++}));const _0x4e9381=this['_revisionId'];for(let _0x12adfd=_0x1105e7;_0x12adfd<_0x4e9381;_0x12adfd++)this['_touched'][_0x5e20('0xd6')](_0x12adfd,{'userId':_0x23b7fc});_0x54bea5[_0x5e20('0xa4')](_0x5aec1c[_0x5e20('0x9a')],_0x451eb3);}[_0x5e20('0xcb')](_0x39696e){(_0x39696e=this[_0x5e20('0x100')](_0x39696e,this[_0x5e20('0xf1')]))[_0x5e20('0x23')]();const _0x15f5e2=null===_0x39696e[_0x5e20('0xe')]?null:_0x39696e[_0x5e20('0xe')]||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')]('Users')['me']['id'],_0x332d95=_0x39696e[_0x5e20('0x3d')](),_0x3a75cb=_0x332d95[_0x5e20('0x82')],_0x39c5f2=_0x332d95[_0x5e20('0x9a')];!function _0x500953(_0x254bdd,_0x3f0c1a,_0x223a80,_0x22f9fb){for(let _0x498378=_0x223a80;_0x498378<_0x22f9fb;_0x498378++){const _0x423458=_0x3f0c1a[_0x5e20('0x11')](_0x498378);_0x423458['is'](_0x5e20('0x40'),'$text')?_0x254bdd[_0x5e20('0xd6')](_0x423458[_0x5e20('0x90')](_0x5e20('0x83')),{'userId':_0x15f5e2}):(_0x254bdd[_0x5e20('0xd6')](_0x423458[_0x5e20('0x90')]('vid_start'),{'userId':_0x15f5e2}),_0x500953(_0x254bdd,_0x423458,0x0,_0x423458[_0x5e20('0xba')]),_0x254bdd['set'](_0x423458[_0x5e20('0x90')]('vid_end'),{'userId':_0x15f5e2}));}}(this[_0x5e20('0x10a')],_0x3a75cb,_0x39c5f2,_0x39c5f2+_0x39696e['howMany']);}[_0x5e20('0x99')](_0xadb308){const _0x4580ce=null===(_0xadb308=this[_0x5e20('0x100')](_0xadb308,this[_0x5e20('0xf1')]))['_authorId']?null:_0xadb308['_authorId']||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x140ecc=_0xadb308['targetPosition'][_0x5e20('0x82')],_0x4d71e3=_0xadb308[_0x5e20('0xee')][_0x5e20('0x82')],_0x198b61=_0x140ecc[_0x5e20('0x90')](_0x5e20('0x91')),_0x990cf9=_0x4d71e3[_0x5e20('0x90')](_0x5e20('0x66'));_0x140ecc[_0x5e20('0xdd')](_0x5e20('0x91'),_0x4d71e3[_0x5e20('0x90')]('vid_end')),_0x4d71e3[_0x5e20('0xdd')](_0x5e20('0x91'),_0x198b61),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x990cf9,{'userId':_0x4580ce}),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x198b61,{'userId':_0x4580ce}),_0xadb308[_0x5e20('0x23')]();}[_0x5e20('0x20')](_0x4dae14){const _0x3abf26=null===(_0x4dae14=this[_0x5e20('0x100')](_0x4dae14,this[_0x5e20('0xf1')]))[_0x5e20('0xe')]?null:_0x4dae14[_0x5e20('0xe')]||this['editor'][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x42bdd4=_0x4dae14[_0x5e20('0xe9')],_0x51ec70=_0x4dae14[_0x5e20('0x6d')][_0x5e20('0x82')];_0x4dae14[_0x5e20('0x23')]();const _0x46eb6c=_0x51ec70[_0x5e20('0x90')]('vid_end'),_0x2b6f30=_0x4dae14[_0x5e20('0x9b')][_0x5e20('0x5b')];if(_0x42bdd4){const _0x3506d8=_0x2b6f30[_0x5e20('0x90')]('vid_end'),_0x3b125a=_0x51ec70[_0x5e20('0x90')](_0x5e20('0x91'));_0x51ec70['_setAttribute']('vid_end',_0x3506d8),_0x2b6f30['_setAttribute']('vid_end',_0x3b125a),this['_touched'][_0x5e20('0xd6')](_0x51ec70[_0x5e20('0x90')]('vid_end'),{'userId':_0x3abf26}),this['_touched'][_0x5e20('0xd6')](_0x2b6f30[_0x5e20('0x90')](_0x5e20('0x66')),{'userId':_0x3abf26});}else{const _0x585602=this[_0x5e20('0x55')]++,_0x83c61d=this[_0x5e20('0x55')]++;_0x51ec70[_0x5e20('0xdd')](_0x5e20('0x91'),_0x585602),_0x2b6f30['_setAttribute']('vid_start',_0x83c61d),_0x2b6f30[_0x5e20('0xdd')](_0x5e20('0x91'),_0x46eb6c),this['_touched'][_0x5e20('0xd6')](_0x585602,{'userId':_0x3abf26}),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x83c61d,{'userId':_0x3abf26});}}[_0x5e20('0xd3')](_0x594ceb){if(!_0x594ceb[_0x5e20('0xc')])return;const _0x555f16=(_0x594ceb=this['_cloneOperation'](_0x594ceb,this[_0x5e20('0x8f')]))[_0x5e20('0x103')]?_0x594ceb[_0x5e20('0x103')][_0x5e20('0x27')]:null,_0x224d02=_0x594ceb[_0x5e20('0x88')]?_0x594ceb[_0x5e20('0x88')]['root']:null;_0x555f16&&this[_0x5e20('0xc0')][_0x5e20('0x2c')](_0x594ceb[_0x5e20('0xcf')]),_0x224d02&&this[_0x5e20('0xc0')]['set'](_0x594ceb[_0x5e20('0xcf')],_0x594ceb['newRange']['clone']());const _0x738c3f=null===_0x594ceb[_0x5e20('0xe')]?null:_0x594ceb[_0x5e20('0xe')]||this['editor']['plugins'][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x479dd0=_0x594ceb[_0x5e20('0xcf')];if(!this['_touchedMarkers'][_0x5e20('0xb7')](_0x479dd0))return void this[_0x5e20('0xd2')][_0x5e20('0xd6')](_0x479dd0,{'range':_0x594ceb['oldRange'],'userId':_0x738c3f});const _0x7cd578=this[_0x5e20('0xd2')]['get'](_0x479dd0),_0x2d1213=_0x7cd578['range'],_0x2220dd=_0x594ceb[_0x5e20('0x88')];null==_0x2d1213&&null==_0x2220dd||_0x2d1213&&_0x2220dd&&_0x2d1213[_0x5e20('0x4c')](_0x2220dd)?this['_touchedMarkers'][_0x5e20('0x2c')](_0x594ceb[_0x5e20('0xcf')]):_0x7cd578['userId']=_0x738c3f;}[_0x5e20('0x1')](_0x578bf1,_0x4ed742){this[_0x5e20('0x8f')][_0x5e20('0xb7')](_0x578bf1[_0x5e20('0xe8')])?this[_0x5e20('0x8f')][_0x5e20('0x59')](_0x578bf1[_0x5e20('0xe8')])[_0x5e20('0xec')]=_0x578bf1[_0x5e20('0x96')]:(this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x578bf1[_0x5e20('0xe8')],G(_0x578bf1['rootName'],!0x0)),this[_0x5e20('0x6b')][_0x5e20('0xd6')](_0x578bf1['rootName'],{}),_0x4ed742&&this[_0x5e20('0xf1')][_0x5e20('0xd6')](_0x578bf1[_0x5e20('0xe8')],G(_0x578bf1[_0x5e20('0xe8')],!0x0)));const _0x4d5901=null===_0x578bf1[_0x5e20('0xe')]?null:_0x578bf1[_0x5e20('0xe')]||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')]('Users')['me']['id'],_0x19cd36=this[_0x5e20('0x24')][_0x5e20('0x59')](_0x578bf1[_0x5e20('0xe8')]);_0x19cd36&&_0x19cd36[_0x5e20('0x36')]===_0x4d5901?this[_0x5e20('0x24')][_0x5e20('0x2c')](_0x578bf1[_0x5e20('0xe8')]):this[_0x5e20('0x24')][_0x5e20('0xd6')](_0x578bf1[_0x5e20('0xe8')],{'userId':_0x4d5901,'isAttached':_0x578bf1[_0x5e20('0x96')]});}['_handleRootAttributeOperation'](_0x4015f3){const _0x137da1=this['_diffRootsAttributes'][_0x5e20('0x59')](_0x4015f3['root'][_0x5e20('0xe8')]);null===_0x4015f3[_0x5e20('0xa3')]?delete _0x137da1[_0x4015f3[_0x5e20('0xbd')]]:_0x137da1[_0x4015f3[_0x5e20('0xbd')]]=_0x4015f3[_0x5e20('0xa3')];}}function q(_0x2d0dc6){const _0x29dbaf=G(_0x2d0dc6[_0x5e20('0xe8')],_0x2d0dc6['isAttached']());for(const _0x1815ca of _0x2d0dc6['getChildren']()){const _0x2b7bfb=_0x1815ca[_0x5e20('0xac')](!0x0);_0x29dbaf['_appendChild'](_0x2b7bfb);}return _0x29dbaf;}function G(_0x30eef7,_0x5e9af4=!0x0){const _0x51e7a9=new _0x4ea7a3();return _0x51e7a9['rootName']=_0x30eef7,_0x51e7a9[_0x5e20('0xec')]=_0x5e9af4,_0x51e7a9['isAttached']=()=>_0x51e7a9[_0x5e20('0xec')],_0x51e7a9;}function L(_0x2eb5c1,_0x47952a,_0x42a262){const _0x1b914f='elementEnd'==_0x2eb5c1['type']?_0x42a262['createPositionAt'](_0x2eb5c1[_0x5e20('0x93')],_0x5e20('0xa5')):_0x42a262[_0x5e20('0x61')](_0x2eb5c1['item']);return _0x42a262['createPositionFromPath'](_0x47952a,_0x1b914f[_0x5e20('0x84')],_0x1b914f[_0x5e20('0x33')]);}function W(_0x483205,_0x1ee568,_0x59c0c2){const _0x56a9e7=_0x5e20('0x3e')==_0x483205['type']?_0x59c0c2[_0x5e20('0x1a')](_0x483205[_0x5e20('0x93')],0x0):_0x59c0c2[_0x5e20('0x65')](_0x483205[_0x5e20('0x93')]);return _0x59c0c2['createPositionFromPath'](_0x1ee568,_0x56a9e7[_0x5e20('0x84')],_0x56a9e7[_0x5e20('0x33')]);}
|