@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230817.0 → 0.0.0-nightly-20230818.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 _0x2670=['marker','marked','addRoot','_update','isAttached','dataDowncast','PENDING_ACTION_REVISION_HISTORY','item','fromVersion','getWalker','_generateTape','diffData','_findInsertionIndex','isReady','resolve','then','config','Users','_handleOperation','_transformMarkers','collaboration.channelId','elementEnd','version','_isAttached','currentRevision','_baseRoots','addRevision','addRootAttribute','keys','setRevisionData','model','_setAttribute','revision:','RevisionTracker','NEGATIVE_INFINITY','attributesAfter','_copyMarkers','_appendChild','stickiness','_lastTo','view','rootName','_authorId','howMany','length','graveyardPosition','path','end','createPositionAfter','loadState','toVersion','_diffRoots','documentFragment','getIndex','isEqual','size','_handleSplitOperation','getData','affectsData','split','revision-end','_execute','_touchedRoots','locale','toData','startsWith','parse','_saveMetaData','baseVersion','start','_touchedMarkers','parent','editor','document','_loadState','useFillerType','data','init','_loadRevisionData','attributesBefore','for','_markChanges','pluginName','remove','$text','createRange','_cloneOperation','_fixOperation','_getVidAttributeName','has','oldRange','processor','_diffRootsAttributes','getChild','slice','getAttributes','changeRootAttribute','createdAt','deletion','saveRevision','roots','add','_fixPosition','splitPosition','createPositionAt','creator','source','attributes','RevisionsRepository','isAdd','type','map','element','_addPendingAction','includes','elementStart','newRange','getRevisionRootsAttributes','createPositionFromPath','getRevisionDocumentData','_revisionDataBuilder','_getBaseVids','_clone','_prepareViewToSave','rootsAttributes','_revisionId','hasContent','_source','getRange','_calculateMetaData','markers','delete','clear','Initial\x20revision','newValue','from','afterInit','update','_markers','sendBufferedUpdates','_getViewJson','_makeIdsRoot','_getPreviousFrom','trim','string','createRangeIn','_removeMetaData','vid_end','createRevision','_applyOperations','getMovedRangeStart','_reset','_startingVersion','find','createPositionBefore','root','_startingRevisionId','RealTimeCollaborationClient','Empty\x20document','filter','_idsRoots','initialData','_handleInsertOperation','getCurrentRevisionId','max','_getState','editing','_bufferUpdate','setSource','authorsIds','reverse','_createCurrentRevision','getRevisions','push','PendingActions','detachRoot','revision','getUser','tableCell','shift','bind','_processRootBeforeSave','_handleRootAttributeOperation','adapter','toView','_isPendingUpdate','_handleMergeOperation','updateRevisions','markerToData','_handleRootOperation','getLatestVersion','getChildren','removeRootAttribute','targetPosition','creatorId','_baseRootsAttributes','buildRevisionData','authors','_makeRevision','define','keepParagraph','_baseIdsRoots','fromEntries','getRootNames','_removePendingAction','nodeAfter','_touched','_makeModelFromViewString','_createFromRanges','_fixRange','history','_replaceEditorDataWithRevisionData','offsetSize','requires','nodes','merge','get','dataToMarker','position','_handleMarkerOperation','_handleMoveOperation','name','_continueCurrentRevision','previousPosition','$graveyard','conversion','key','_removeRevisionMarkers','_savedMetaData','data-revision-','_loadedStateData','_pendingAction','_bufferedUpdates','insert','insertions','plugins','vid_start','clone','addRevisionData','range','reInit','_getFromVersion','_initialRevisionId','attachChange','values','deletions','insertionPosition','_isInit','children','getOperation','_insertChild','repository','getRevision','set','getAncestors','getAttribute','_lastFrom','upcast','getNodeByPath','vid','childCount','insertion','getRoot','userId','paragraph'];(function(_0x54cd9f,_0x267083){const _0x132649=function(_0x2e12a8){while(--_0x2e12a8){_0x54cd9f['push'](_0x54cd9f['shift']());}};_0x132649(++_0x267083);}(_0x2670,0x1c8));const _0x1326=function(_0x54cd9f,_0x267083){_0x54cd9f=_0x54cd9f-0x0;let _0x132649=_0x2670[_0x54cd9f];return _0x132649;};import{Users as _0x2874dd}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x21d6bc,PendingActions as _0x2d8dd8}from'ckeditor5/src/core';import{logWarning as _0x1eaa17,uid as _0x2f9b26}from'ckeditor5/src/utils';import{Position as _0x304361,Range as _0x854abd,Element as _0x3fe0c9,DocumentFragment as _0x1b7620,ViewText as _0x5eeb3f,ViewElement as _0x4f4585,ViewContainerElement as _0xf6d304,ViewAttributeElement as _0x32aa96,ViewEmptyElement as _0x20fb01,ViewRawElement as _0x29c139,ViewUIElement as _0x535b87,ViewDocumentFragment as _0x63e321}from'ckeditor5/src/engine';import _0x34b80b from'./revisionsrepository';import{getTranslation as _0x5c2055}from'./utils/common-translations';import{cloneDeep as _0x4122fa,isEqual as _0x1472f4}from'lodash-es';const B={'c':_0xf6d304,'a':_0x32aa96,'e':_0x20fb01,'r':_0x29c139,'u':_0x535b87};export default class l extends _0x21d6bc{static get[_0x1326('0x9c')](){return _0x1326('0x6b');}static get[_0x1326('0x16')](){return[_0x2874dd,_0x34b80b,_0x2d8dd8];}constructor(_0x3ffd2c){super(_0x3ffd2c),this['adapter']=null,this[_0x1326('0x62')]=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0x1326('0x33')]=this[_0x1326('0x92')][_0x1326('0x5a')][_0x1326('0x19')](_0x1326('0x5e'))||'initial',this['_bufferedUpdates']=new Map(),this[_0x1326('0x27')]=null;const _0x5765ad=_0x2f9b26();this[_0x1326('0xc9')]={'history':this[_0x1326('0x92')][_0x1326('0x68')][_0x1326('0x93')][_0x1326('0x13')],'getLatestVersion':()=>Promise[_0x1326('0x58')](this[_0x1326('0x92')][_0x1326('0x68')][_0x1326('0x93')][_0x1326('0x60')]),'getCurrentRevisionId':()=>_0x5765ad},this[_0x1326('0x3e')](_0x1326('0x57'),!0x1),this[_0x1326('0x3e')]('isEnabled',!0x0),this[_0x1326('0x3e')](_0x1326('0x103'),!0x1),this[_0x1326('0x92')][_0x1326('0x5a')][_0x1326('0x8')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x1326('0x92')][_0x1326('0x22')][_0x1326('0x9a')](_0x1326('0x42'))[_0x1326('0x1a')]({'view':'revision'});}[_0x1326('0x97')](){this[_0x1326('0x3c')]=this[_0x1326('0x92')]['plugins'][_0x1326('0x19')](_0x1326('0xb6')),this['_setConversion'](),this['editor'][_0x1326('0x96')]['on']('ready',()=>{const _0x4c84bd=this[_0x1326('0x3c')]['getRevision'](0x0),_0x3454f8=_0x4c84bd&&null===_0x4c84bd[_0x1326('0xb3')]?_0x4c84bd:null;if(this['_continueCurrentRevision']=!!_0x3454f8&&this[_0x1326('0x92')][_0x1326('0x5a')][_0x1326('0x19')]('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins'][_0x1326('0xa3')](_0x1326('0xe7'))){const _0x168f56=this[_0x1326('0xc9')][_0x1326('0xed')](),_0x5718c9=this[_0x1326('0x3c')]['getRevision'](_0x168f56);if(_0x5718c9)this['_startingVersion']=_0x5718c9[_0x1326('0x52')],this[_0x1326('0x1f')]=!0x1;else{const _0x2d69c8=this[_0x1326('0xc9')][_0x1326('0x13')]['_operations'][_0x1326('0xe3')](_0x4f7cb4=>!_0x4f7cb4[_0x1326('0x38')]),_0x4164ff=_0x2d69c8?_0x2d69c8[_0x1326('0x8e')]:this[_0x1326('0xc9')][_0x1326('0x13')][_0x1326('0x60')];_0x4c84bd?(_0x4c84bd[_0x1326('0x7c')]<_0x4164ff&&_0x4c84bd[_0x1326('0x4d')]({'toVersion':_0x4164ff}),this['_continueCurrentRevision']?(this[_0x1326('0xc9')]['getCurrentRevisionId']=()=>_0x3454f8['id'],this[_0x1326('0xe2')]=_0x3454f8['fromVersion']):(this['_startingVersion']=_0x4c84bd[_0x1326('0x7c')],this[_0x1326('0x1f')]=!0x1)):(this[_0x1326('0xe2')]=_0x4164ff,this['_continueCurrentRevision']=!0x1);}}else _0x3454f8&&(this[_0x1326('0x92')][_0x1326('0x68')][_0x1326('0x93')]['history'][_0x1326('0x60')]=Math[_0x1326('0xee')](_0x3454f8[_0x1326('0x7c')],this[_0x1326('0x92')]['model'][_0x1326('0x93')][_0x1326('0x13')]['version']),_0x3454f8[_0x1326('0x52')]===_0x3454f8[_0x1326('0x7c')]?(0x0!==_0x3454f8['fromVersion']&&(this[_0x1326('0xc9')][_0x1326('0xed')]=()=>_0x3454f8['id']),this[_0x1326('0x1f')]=!0x1):this[_0x1326('0x1f')]&&(this[_0x1326('0xc9')][_0x1326('0xed')]=()=>_0x3454f8['id'],this[_0x1326('0xe2')]=_0x3454f8[_0x1326('0x52')])),this[_0x1326('0x1f')]||(this['_startingVersion']=this[_0x1326('0x92')]['model'][_0x1326('0x93')][_0x1326('0x60')]);this['_revisionDataBuilder'][_0x1326('0x97')](this[_0x1326('0xc9')][_0x1326('0x13')]),this['_createInitialRevision'](this[_0x1326('0xe2')]),this['_createCurrentRevision'](this[_0x1326('0xe2')]),this[_0x1326('0x101')]&&this[_0x1326('0xd5')]();}),this[_0x1326('0xfe')]('isReady')['to'](this,_0x1326('0x103'),_0x35ba6a=>!_0x35ba6a);}async[_0x1326('0xd2')](){if(this[_0x1326('0x3c')][_0x1326('0x76')]>0x0){const _0x1bf527=this['repository'][_0x1326('0x3d')](0x0),_0x5a7e32=await this[_0x1326('0xc1')](_0x1bf527),_0x19fb61=await this[_0x1326('0xbf')](_0x1bf527);this[_0x1326('0x14')](_0x5a7e32,_0x19fb61);}}[_0x1326('0xf2')](_0x2f548b){this[_0x1326('0xc9')]=_0x2f548b;}async[_0x1326('0xd3')](){const _0x2d3aba=await this[_0x1326('0xc9')][_0x1326('0x108')]();if(_0x2d3aba>this[_0x1326('0x62')][_0x1326('0x7c')]){await this[_0x1326('0x94')]();const _0x3eb6cf=this[_0x1326('0x5')]({'revision':this['currentRevision'],'to':_0x2d3aba});_0x3eb6cf['authors']=_0x3eb6cf[_0x1326('0xf3')][_0x1326('0xb9')](_0x3368c2=>this[_0x1326('0x92')]['plugins']['get'](_0x1326('0x5b'))['getUser'](_0x3368c2)),this[_0x1326('0x62')][_0x1326('0x4d')](_0x3eb6cf);}}async[_0x1326('0x94')](){this[_0x1326('0x1f')]&&!this[_0x1326('0x27')]&&(await this[_0x1326('0x98')](this['currentRevision']),this[_0x1326('0xc2')][_0x1326('0x7b')](this[_0x1326('0x62')]),this['_loadedStateData']={'fromVersion':this[_0x1326('0x62')][_0x1326('0x52')],'authors':this[_0x1326('0x62')][_0x1326('0x6')][_0x1326('0xa8')]()});}async[_0x1326('0xad')](_0xc0f186={},_0x32a145=null){const _0x47f405=[];await this['_loadState'](),this[_0x1326('0x1f')]=!0x1,_0x32a145>this[_0x1326('0x62')][_0x1326('0x7c')]&&(_0x32a145=null),null===_0x32a145&&(_0x32a145=await this[_0x1326('0xc9')][_0x1326('0x108')]());const _0x10b619=this[_0x1326('0x32')](_0x32a145),_0x2de6a9=this[_0x1326('0x5')]({'from':_0x10b619,'to':_0x32a145});if(this[_0x1326('0x62')][_0x1326('0x7c')]<_0x32a145){const _0x3fe499=this[_0x1326('0x5')]({'revision':this['currentRevision'],'from':_0x32a145,'to':_0x32a145});_0x3fe499[_0x1326('0x6')]=[],_0x3fe499[_0x1326('0xf3')]=[],_0x3fe499['id']=this[_0x1326('0x62')]['id'],this['currentRevision'][_0x1326('0x4d')](_0x3fe499,!0x0),delete _0x3fe499[_0x1326('0x6')],_0x47f405[_0x1326('0xf7')](_0x3fe499);}_0xc0f186[_0x1326('0x3')]=this[_0x1326('0x92')][_0x1326('0x2c')][_0x1326('0x19')](_0x1326('0x5b'))['me']['id'],_0xc0f186[_0x1326('0x1e')]=_0xc0f186[_0x1326('0x1e')]||null,_0xc0f186['id']=_0xc0f186['id']||_0x2f9b26(),_0xc0f186={..._0xc0f186,..._0x2de6a9};const _0x291e43=this[_0x1326('0x2f')](_0xc0f186);_0x47f405[_0x1326('0xf7')](_0xc0f186);const _0x64db0=this[_0x1326('0x3c')][_0x1326('0x7f')](_0x291e43);if(0x0!==_0x64db0){const _0x69b253=this[_0x1326('0x3c')][_0x1326('0x3d')](_0x64db0-0x1);if(_0x69b253[_0x1326('0x52')]!==_0x32a145){const _0x109146=this[_0x1326('0xc2')][_0x1326('0x83')](_0x32a145,_0x69b253[_0x1326('0x7c')]),_0x15585c={'id':_0x69b253['id'],'diffData':_0x109146['diffData'],'authorsIds':_0x109146[_0x1326('0xf3')],'authors':_0x109146[_0x1326('0xf3')][_0x1326('0xb9')](_0x249b5c=>this[_0x1326('0x92')][_0x1326('0x2c')]['get']('Users')[_0x1326('0xfb')](_0x249b5c)),'fromVersion':_0x32a145};_0x69b253===this[_0x1326('0x62')]&&(_0x15585c['createdAt']=new Date(_0xc0f186['createdAt']['getTime']()+0xa)),_0x69b253['_update'](_0x15585c,!0x0),delete _0x15585c[_0x1326('0x6')],_0x47f405['push'](_0x15585c);}}if(this[_0x1326('0x101')]){for(const _0x1598a0 of _0x47f405)this[_0x1326('0xf1')](_0x1598a0['id'],_0x1598a0,!0x0);this[_0x1326('0xd5')]();}return _0x291e43;}[_0x1326('0x2f')](_0x4c73e5){const _0x6397e=this[_0x1326('0x3c')][_0x1326('0xde')](_0x4c73e5);return this[_0x1326('0x101')]&&_0x6397e['on'](_0x1326('0x4d'),(_0x54509e,_0x2d5f26,_0x46283c)=>{_0x46283c||(this[_0x1326('0xf1')](_0x2d5f26['id'],_0x2d5f26,!0x0),this[_0x1326('0xd5')]());}),this[_0x1326('0x3c')][_0x1326('0x64')](_0x6397e,this[_0x1326('0x56')](_0x6397e)),_0x6397e;}async['getRevisionDocumentData'](_0x505546){await this[_0x1326('0x98')](_0x505546);const _0x48dd64={};for(const _0x1e0e32 in _0x505546[_0x1326('0x55')]){if(_0x505546[_0x1326('0x55')][_0x1e0e32]['attachChange']&&!_0x505546['diffData'][_0x1e0e32][_0x1326('0x34')]['isAttached'])continue;const _0x84e065=this[_0x1326('0x24')](JSON[_0x1326('0x8c')](_0x505546['diffData'][_0x1e0e32][_0x1326('0x2b')])),_0x459165=this[_0x1326('0x92')][_0x1326('0xf0')][_0x1326('0x72')][_0x1326('0x93')],_0x3f51aa=new _0x63e321(_0x459165,_0x84e065['map'](_0x3b4432=>J(_0x3b4432,this['editor'])));this['editor'][_0x1326('0x96')][_0x1326('0xa5')][_0x1326('0x95')](_0x1326('0x4b')),_0x48dd64[_0x1e0e32]=this[_0x1326('0x92')][_0x1326('0x96')][_0x1326('0xa5')][_0x1326('0x8a')](_0x3f51aa),this[_0x1326('0x92')][_0x1326('0x96')][_0x1326('0xa5')][_0x1326('0x95')]('default');}return _0x48dd64;}async[_0x1326('0xbf')](_0x293815){await this[_0x1326('0x98')](_0x293815);const _0x64845={};for(const _0x38d6d1 in _0x293815[_0x1326('0x55')])_0x293815['diffData'][_0x38d6d1][_0x1326('0x34')]&&!_0x293815[_0x1326('0x55')][_0x38d6d1]['attachChange'][_0x1326('0x4e')]||(_0x64845[_0x38d6d1]=_0x293815['diffData'][_0x38d6d1][_0x1326('0x6d')]||{});return _0x64845;}[_0x1326('0xd5')](){if(0x0===this[_0x1326('0x29')][_0x1326('0x81')])return;if(this[_0x1326('0x103')])return;let _0x11eb3d=Array['from'](this[_0x1326('0x29')]['values']());this[_0x1326('0x29')][_0x1326('0xce')]();for(let _0x4b3d1f=0x0;_0x4b3d1f<_0x11eb3d[_0x1326('0x76')];_0x4b3d1f++){const _0x401974=_0x11eb3d[_0x4b3d1f];let _0x242d67=!0x1;for(const _0x597f43 of Object[_0x1326('0x66')](_0x401974))void 0x0===_0x401974[_0x597f43]?delete _0x401974[_0x597f43]:'id'!==_0x597f43&&(_0x242d67=!0x0);_0x242d67||(_0x11eb3d[_0x4b3d1f]=null);}if(_0x11eb3d=_0x11eb3d[_0x1326('0xe9')](_0x1b5d09=>null!==_0x1b5d09),!_0x11eb3d['length'])return;for(let _0x246fa4=0x0;_0x246fa4<_0x11eb3d['length'];_0x246fa4++){const _0x309f24=_0x11eb3d[_0x246fa4];void 0x0!==_0x309f24[_0x1326('0x52')]&&void 0x0===_0x309f24[_0x1326('0x7c')]&&(_0x309f24[_0x1326('0x7c')]=this[_0x1326('0x3c')][_0x1326('0x3d')](_0x309f24['id'])[_0x1326('0x7c')]),void 0x0!==_0x309f24['toVersion']&&void 0x0===_0x309f24[_0x1326('0x52')]&&(_0x309f24['fromVersion']=this[_0x1326('0x3c')][_0x1326('0x3d')](_0x309f24['id'])[_0x1326('0x52')]);}const _0xd2b67a=this['editor']['config']['get'](_0x1326('0x5e'));this[_0x1326('0x103')]=!0x0,this['_addPendingAction'](),this[_0x1326('0x101')][_0x1326('0x105')](_0x11eb3d,_0xd2b67a)['finally'](()=>{this['_isPendingUpdate']=!0x1;})[_0x1326('0x59')](_0x350cd9=>{if(_0x350cd9)for(const _0x4e79be of _0x350cd9)this[_0x1326('0x67')]({'id':_0x4e79be['id'],'createdAt':_0x4e79be[_0x1326('0xab')]});this[_0x1326('0xd')](),this[_0x1326('0xd5')]();});}[_0x1326('0x14')](_0x45ae27,_0x1e3223){let _0x2416c5=this[_0x1326('0x92')][_0x1326('0x5a')][_0x1326('0x19')](_0x1326('0xeb')),_0x2199c8=this['editor']['config'][_0x1326('0x19')](_0x1326('0xc6'));if(void 0x0===_0x2416c5){_0x2416c5={};for(const _0x337c2e of this[_0x1326('0x92')][_0x1326('0x68')][_0x1326('0x93')][_0x1326('0xc')]())_0x2416c5[_0x337c2e]='';}if(_0x1326('0xda')==typeof _0x2416c5&&(_0x2416c5={'main':_0x2416c5}),void 0x0===_0x2199c8){_0x2199c8={};for(const _0x5a0c47 of this[_0x1326('0x92')][_0x1326('0x68')][_0x1326('0x93')][_0x1326('0xc')]())_0x2199c8[_0x5a0c47]={};}let _0x270b5d=!0x1;const _0x44b2f0=Object[_0x1326('0x66')](_0x2416c5),_0x397786=Object[_0x1326('0x66')](_0x45ae27);for(const _0x31ca7a of _0x44b2f0){if(_0x2416c5[_0x31ca7a]!==_0x45ae27[_0x31ca7a]&&''!==_0x2416c5[_0x31ca7a][_0x1326('0xd9')]()){_0x270b5d=!0x0;break;}if(!_0x1472f4(_0x2199c8[_0x31ca7a],_0x1e3223[_0x31ca7a])&&Object['keys'](_0x2199c8[_0x31ca7a])['length']>0x0){_0x270b5d=!0x0;break;}}_0x270b5d||(_0x270b5d=_0x397786['some'](_0x10ad91=>!this[_0x1326('0x92')][_0x1326('0x68')][_0x1326('0x93')][_0x1326('0x47')](_0x10ad91))),_0x270b5d&&_0x1eaa17('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2416c5,'editorRootsAttributes':_0x2199c8,'revisionData':_0x45ae27,'revisionRootsAttributes':_0x1e3223}),this['editor'][_0x1326('0x5a')][_0x1326('0x3e')](_0x1326('0xeb'),_0x45ae27),this[_0x1326('0x92')][_0x1326('0x5a')]['set']('rootsAttributes',_0x1e3223);}[_0x1326('0xbb')](){if(!this[_0x1326('0x28')]){const _0x5dd1f4=this['editor'][_0x1326('0x2c')][_0x1326('0x19')]('PendingActions');this['_pendingAction']=_0x5dd1f4[_0x1326('0xaf')](_0x5c2055(this[_0x1326('0x92')]['locale'],_0x1326('0x50')));}}[_0x1326('0xd')](){this['_pendingAction']&&(this['editor'][_0x1326('0x2c')][_0x1326('0x19')](_0x1326('0xf8'))[_0x1326('0x9d')](this['_pendingAction']),this['_pendingAction']=null);}[_0x1326('0x56')](_0x3eaf03){const _0x4e8189=this[_0x1326('0x3c')][_0x1326('0xf6')]();_0x4e8189[_0x1326('0xf4')]();let _0x3b2dfc=0x0;for(;_0x3b2dfc<_0x4e8189[_0x1326('0x76')];){const _0x342579=_0x4e8189[_0x3b2dfc];if(_0x342579===this['currentRevision']){_0x3b2dfc++;continue;}if(_0x342579['id']===this[_0x1326('0x33')])break;const _0x189272=_0x3eaf03[_0x1326('0x7c')]-_0x342579[_0x1326('0x7c')]||_0x3eaf03[_0x1326('0x52')]-_0x342579[_0x1326('0x52')];if(_0x189272>0x0)break;if(_0x189272<0x0)_0x3b2dfc++;else{if(!_0x3eaf03[_0x1326('0xb3')]&&_0x342579['creator'])break;if(_0x342579['creator']||!_0x3eaf03['creator']){if(_0x3eaf03[_0x1326('0xab')]>_0x342579[_0x1326('0xab')])break;_0x3b2dfc++;}else _0x3b2dfc++;}}return _0x3b2dfc;}[_0x1326('0x67')](_0x52b21c){const _0x1f9c3c=this[_0x1326('0x3c')][_0x1326('0x3d')](_0x52b21c['id']);if(_0x52b21c['createdAt']&&(_0x52b21c[_0x1326('0xab')]=new Date(_0x52b21c[_0x1326('0xab')])),_0x52b21c['authorsIds']){const _0x2eb22e=this[_0x1326('0x92')][_0x1326('0x2c')][_0x1326('0x19')](_0x1326('0x5b'));_0x52b21c['authors']=_0x52b21c[_0x1326('0xf3')]['map'](_0x2254ce=>_0x2eb22e[_0x1326('0xfb')](_0x2254ce));}_0x1f9c3c[_0x1326('0x4d')](_0x52b21c,!0x0);}[_0x1326('0x5')]({revision:_0x3a9c16=null,from:_0x4d1050=null,to:_0x22dab0=null}){_0x4d1050=null!==_0x4d1050?_0x4d1050:_0x3a9c16[_0x1326('0x52')],_0x22dab0=null!==_0x22dab0?_0x22dab0:_0x3a9c16[_0x1326('0x7c')];const _0x21273b=this[_0x1326('0xc2')]['getData'](_0x4d1050,_0x22dab0),_0x505ca6={'diffData':_0x21273b[_0x1326('0x55')],'authorsIds':_0x21273b[_0x1326('0xf3')],'fromVersion':_0x4d1050,'toVersion':_0x22dab0};if(!_0x3a9c16||_0x22dab0!==_0x3a9c16[_0x1326('0x7c')]){const _0x11802d=_0x22dab0-0x1,_0x21d089=this[_0x1326('0xc9')]['history'][_0x1326('0x3a')](_0x11802d);_0x505ca6[_0x1326('0xab')]=_0x21d089&&_0x21d089['createdAt']||new Date();}if(this[_0x1326('0x27')]&&_0x4d1050===this[_0x1326('0x27')][_0x1326('0x52')])for(const _0x1b88c1 of this[_0x1326('0x27')]['authors'])_0x505ca6[_0x1326('0xf3')][_0x1326('0xbc')](_0x1b88c1['id'])||_0x505ca6[_0x1326('0xf3')][_0x1326('0xf7')](_0x1b88c1['id']);return _0x505ca6;}[_0x1326('0x98')](_0x2d653b){if(!_0x2d653b||_0x2d653b['diffData'])return Promise[_0x1326('0x58')]();{const _0x5f06c9=this[_0x1326('0x92')][_0x1326('0x5a')]['get'](_0x1326('0x5e'));return this[_0x1326('0x101')]['getRevision']({'channelId':_0x5f06c9,'revisionId':_0x2d653b['id']})[_0x1326('0x59')](_0x19c3c8=>{_0x2d653b[_0x1326('0x55')]=_0x19c3c8[_0x1326('0x55')];});}}['_bufferUpdate'](_0x58fffb,_0x40b694,_0x36fad2){if(this['_bufferedUpdates'][_0x1326('0xa3')](_0x58fffb)){const _0x3d69e0=this[_0x1326('0x29')]['get'](_0x58fffb);_0x40b694=_0x36fad2?{..._0x3d69e0,..._0x40b694}:{..._0x40b694,..._0x3d69e0};}this[_0x1326('0x29')][_0x1326('0x3e')](_0x58fffb,_0x40b694);}[_0x1326('0x32')](_0x35451b){const _0x25a427=this[_0x1326('0x3c')]['getRevisions']();_0x25a427[_0x1326('0xf4')](),_0x25a427[_0x1326('0xfd')]();const _0x417ee1=_0x25a427[_0x1326('0xe3')](_0x5c5bd3=>_0x5c5bd3['toVersion']<=_0x35451b)[_0x1326('0x7c')];return _0x417ee1<this[_0x1326('0xe2')]?this[_0x1326('0xe2')]:_0x417ee1;}['_createInitialRevision'](_0x1ce432){const _0x36bac5=this[_0x1326('0x3c')][_0x1326('0x3d')](this[_0x1326('0x3c')][_0x1326('0x76')]-0x1);if(_0x36bac5)this[_0x1326('0x33')]=_0x36bac5['id'];else{const _0x317d45=!this[_0x1326('0x92')][_0x1326('0x68')][_0x1326('0x93')][_0x1326('0xae')][_0x1326('0xe3')](_0x4da1d7=>this[_0x1326('0x92')][_0x1326('0x68')][_0x1326('0xc8')](_0x4da1d7)),_0xa1f17b=this['editor'][_0x1326('0x2c')][_0x1326('0x19')](_0x1326('0x5b'))['me']['id'],_0x362119=_0x5c2055(this[_0x1326('0x92')][_0x1326('0x89')],_0x317d45?_0x1326('0xe8'):_0x1326('0xcf'));this[_0x1326('0x7')]({'from':_0x1ce432,'to':_0x1ce432,'id':this[_0x1326('0x33')],'name':_0x362119,'creatorId':_0xa1f17b});}}[_0x1326('0xf5')](_0x2a46c9){const _0x1da685=this[_0x1326('0xc9')][_0x1326('0xed')]();this[_0x1326('0x62')]=this[_0x1326('0x3c')][_0x1326('0x3d')](_0x1da685),this[_0x1326('0x62')]||(this[_0x1326('0x62')]=this[_0x1326('0x7')]({'from':_0x2a46c9,'to':_0x2a46c9,'id':_0x1da685,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1a2aa9,from:_0x2d19f5,to:_0x557cbb,creatorId:_0x5e8f6e,id:_0x1f2dd4}){const _0x2b3907=this[_0x1326('0x5')]({'from':_0x2d19f5,'to':_0x557cbb});_0x2b3907[_0x1326('0x1e')]=_0x1a2aa9,_0x2b3907[_0x1326('0x3')]=_0x5e8f6e,_0x2b3907['id']=_0x1f2dd4;const _0x3d63e0=this[_0x1326('0x2f')](_0x2b3907);return this[_0x1326('0x101')]&&this[_0x1326('0xf1')](_0x2b3907['id'],_0x2b3907,!0x0),_0x3d63e0;}['_setConversion'](){this['editor'][_0x1326('0x22')][_0x1326('0x9a')](_0x1326('0x4f'))[_0x1326('0x106')]({'model':_0x1326('0xfa')});}[_0x1326('0x24')](_0x55e03e){return(_0x55e03e=_0x55e03e['filter'](_0xec5ceb=>!_0xec5ceb['name']||'revision-start'!==_0xec5ceb['name']&&_0x1326('0x86')!==_0xec5ceb[_0x1326('0x1e')]))['forEach'](_0x2390e8=>{_0x1326('0xda')!=typeof _0x2390e8&&(_0x2390e8[_0x1326('0x39')]=this[_0x1326('0x24')](_0x2390e8[_0x1326('0x39')]),_0x2390e8['attributes']=_0x2390e8[_0x1326('0xb5')][_0x1326('0xe9')](_0x4a2ba6=>!_0x4a2ba6[0x0][_0x1326('0x8b')](_0x1326('0x26'))));}),_0x55e03e;}}function J(_0x308e3d,_0x4ff1e9){const _0x4ca79c=_0x4ff1e9[_0x1326('0xf0')][_0x1326('0x72')][_0x1326('0x93')];if(_0x1326('0xda')==typeof _0x308e3d)return new _0x5eeb3f(_0x4ca79c,_0x308e3d);{const _0x1158f8=_0x308e3d[_0x1326('0x39')][_0x1326('0xb9')](_0x113404=>J(_0x113404,_0x4ff1e9));return new(B[_0x308e3d[(_0x1326('0xb8'))]]||_0x4f4585)(_0x4ca79c,_0x308e3d[_0x1326('0x1e')],_0x308e3d[_0x1326('0xb5')],_0x1158f8);}}class H{constructor(_0x408e01){this[_0x1326('0x92')]=_0x408e01,this[_0x1326('0x25')]=new Map(),this[_0x1326('0x41')]=-0x1,this['_lastTo']=-0x1,this[_0x1326('0xd4')]=new Map(),this[_0x1326('0x7d')]=new Map(),this[_0x1326('0xa6')]=new Map(),this[_0x1326('0x63')]=new Map(),this[_0x1326('0x4')]=new Map(),this['_idsRoots']=new Map(),this[_0x1326('0xa')]=new Map(),this[_0x1326('0xf')]=new Map(),this[_0x1326('0x90')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x4037b0){this[_0x1326('0xb4')]=_0x4037b0;const _0x566fde=new Map(),_0x4d5373=new Map(),_0x241ae7=this[_0x1326('0x92')][_0x1326('0x68')][_0x1326('0x93')][_0x1326('0xae')]['map'](_0x41f450=>_0x41f450['rootName']);for(const _0x1b955a of _0x241ae7){const _0x394bb3=this[_0x1326('0x92')][_0x1326('0x68')][_0x1326('0x93')]['getRoot'](_0x1b955a),_0x2d3280=q(_0x394bb3);_0x566fde[_0x1326('0x3e')](_0x1b955a,_0x2d3280),_0x4d5373[_0x1326('0x3e')](_0x1b955a,Object[_0x1326('0xb')](_0x394bb3[_0x1326('0xa9')]()));}const _0x2dbe55=Array['from'](this['editor'][_0x1326('0x68')][_0x1326('0xcc')])['map'](_0x1f27c3=>[_0x1f27c3[_0x1326('0x1e')],_0x1f27c3[_0x1326('0xca')]()]),_0x1c2253=this[_0x1326('0xb4')][_0x1326('0x60')];this[_0x1326('0x8d')](_0x1c2253,_0x566fde,_0x2dbe55,_0x4d5373),this['_startingRevisionId']=this[_0x1326('0xc7')];const _0x3123cd=new Map(),_0x3bdb2a=new Map();for(const _0x66cc07 of _0x241ae7){const _0x23ca12=G(_0x66cc07);_0x3123cd[_0x1326('0x3e')](_0x66cc07,_0x23ca12),_0x3bdb2a['set'](_0x66cc07,{});}this['_saveMetaData'](Number[_0x1326('0x6c')],_0x3123cd,[],_0x3bdb2a);}[_0x1326('0x83')](_0x5efc41,_0x32581c){if(this[_0x1326('0x41')]===_0x5efc41&&this['_lastTo']<=_0x32581c)this[_0x1326('0x25')][_0x1326('0x81')]>0x1&&this[_0x1326('0xdc')](this[_0x1326('0x71')]),this[_0x1326('0xdf')](this['_lastTo'],_0x32581c,!0x0);else{if(!this[_0x1326('0x25')][_0x1326('0xa3')](_0x5efc41)){const _0x4f57f3=this[_0x1326('0xd8')](_0x5efc41);this[_0x1326('0xcb')](_0x4f57f3,_0x5efc41,!0x1);}this[_0x1326('0xcb')](_0x5efc41,_0x32581c,!0x0);}return this[_0x1326('0x41')]=_0x5efc41,this[_0x1326('0x71')]=_0x32581c,this[_0x1326('0xef')]();}[_0x1326('0x7b')](_0x1d3d46){this[_0x1326('0xe1')](),this[_0x1326('0x41')]=_0x1d3d46['fromVersion'],this['_lastTo']=_0x1d3d46[_0x1326('0x7c')];for(const _0x267841 in _0x1d3d46[_0x1326('0x55')]){const _0x1794e3=_0x1d3d46['diffData'][_0x267841][_0x1326('0x34')],_0x224d60=_0x4122fa(_0x1d3d46['diffData'][_0x267841][_0x1326('0x99')])||{},_0x47c88c=this[_0x1326('0x10')](_0x1d3d46[_0x1326('0x55')][_0x267841][_0x1326('0x36')]);_0x47c88c[_0x1326('0x73')]=_0x267841,_0x47c88c[_0x1326('0x61')]=!_0x1794e3||!_0x1794e3[_0x1326('0x4e')],_0x47c88c[_0x1326('0x4e')]=()=>_0x47c88c[_0x1326('0x61')],this[_0x1326('0x63')][_0x1326('0x3e')](_0x267841,_0x47c88c),this[_0x1326('0x4')][_0x1326('0x3e')](_0x267841,_0x224d60),_0x1794e3&&this[_0x1326('0x88')][_0x1326('0x3e')](_0x267841,_0x1794e3);const _0x4ef114=this[_0x1326('0xd7')](_0x47c88c);this[_0x1326('0xa')][_0x1326('0x3e')](_0x267841,_0x4ef114);for(const [_0x389710,_0x34d367]of _0x47c88c[_0x1326('0xcc')]){if(!_0x389710[_0x1326('0x8b')](_0x1326('0x6a')))continue;const _0x42ee81=_0x389710[_0x1326('0x85')](':')[0x2];for(const _0xabdb69 of _0x34d367['getWalker']({'singleCharacters':!0x0})){const _0x144c4d=this[_0x1326('0xa2')](_0xabdb69),_0x5d961a=_0x1326('0x5f')==_0xabdb69['type']?_0xabdb69[_0x1326('0x20')][_0x1326('0x78')][_0x1326('0xa8')](0x0,-0x1):_0xabdb69[_0x1326('0x20')][_0x1326('0x78')],_0x10a471=_0x4ef114['getNodeByPath'](_0x5d961a)[_0x1326('0x40')](_0x144c4d);this['_touched'][_0x1326('0x3e')](_0x10a471,{'userId':_0x42ee81});}}}this[_0x1326('0xe6')]=this[_0x1326('0xc7')];const _0x542d93=[...Array(this[_0x1326('0xc7')])[_0x1326('0x66')]()]['slice'](0x1)[_0x1326('0xe9')](_0x5f2b40=>!this[_0x1326('0xf')][_0x1326('0xa3')](_0x5f2b40));let _0xb3ad11=0x0;const _0x69364=new Map();for(const _0x1df039 in _0x1d3d46[_0x1326('0x55')]){const _0x16d564=_0x1d3d46['diffData'][_0x1df039][_0x1326('0x34')],_0x4b2bf4=_0x4122fa(_0x1d3d46[_0x1326('0x55')][_0x1df039][_0x1326('0x6d')])||{},_0x284ad5=this['_makeModelFromViewString'](_0x1d3d46[_0x1326('0x55')][_0x1df039][_0x1326('0x2b')]);_0x284ad5[_0x1326('0x73')]=_0x1df039,_0x284ad5['_isAttached']=!_0x16d564||_0x16d564[_0x1326('0x4e')],_0x284ad5[_0x1326('0x4e')]=()=>_0x284ad5[_0x1326('0x61')],this[_0x1326('0x7d')][_0x1326('0x3e')](_0x1df039,_0x284ad5),this['_diffRootsAttributes'][_0x1326('0x3e')](_0x1df039,_0x4b2bf4);const _0x3a39a0=this[_0x1326('0xd7')](_0x284ad5,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1df039,_0x3a39a0),_0x69364[_0x1326('0x3e')](_0x1df039,_0x284ad5['isAttached']()?_0x4b2bf4:{});for(const [_0x4e2a62,_0x5a319e]of _0x284ad5['markers']){if(!_0x4e2a62['startsWith'](_0x1326('0x6a')))continue;const _0x25edc7=_0x4e2a62[_0x1326('0x85')](':')[0x2];for(const _0x1af544 of _0x5a319e[_0x1326('0x53')]({'singleCharacters':!0x0})){const _0x43758c=this['_getVidAttributeName'](_0x1af544),_0x1d1c0c=this['_revisionId']++,_0x2ef584=_0x1326('0x5f')==_0x1af544['type']?_0x1af544[_0x1326('0x20')][_0x1326('0x78')]['slice'](0x0,-0x1):_0x1af544[_0x1326('0x20')][_0x1326('0x78')];_0x3a39a0['getNodeByPath'](_0x2ef584)[_0x1326('0x69')](_0x43758c,_0x1d1c0c),this[_0x1326('0xf')][_0x1326('0x3e')](_0x1d1c0c,{'userId':_0x25edc7});}}for(const _0x4d72c6 of this[_0x1326('0x92')][_0x1326('0x68')][_0x1326('0xdb')](_0x284ad5)[_0x1326('0x53')]({'singleCharacters':!0x0})){const _0x3bdfce=this[_0x1326('0xa2')](_0x4d72c6),_0xbf1497=_0x1326('0x5f')==_0x4d72c6['type']?_0x4d72c6[_0x1326('0x20')][_0x1326('0x78')][_0x1326('0xa8')](0x0,-0x1):_0x4d72c6[_0x1326('0x20')][_0x1326('0x78')],_0x26bd7c=_0x3a39a0[_0x1326('0x43')](_0xbf1497);_0x26bd7c['getAttribute'](_0x3bdfce)>0x0||_0x26bd7c['_setAttribute'](_0x3bdfce,_0x542d93[_0xb3ad11++]);}for(const [_0x402f92,_0x20102c]of _0x284ad5[_0x1326('0xcc')])_0x402f92[_0x1326('0x8b')](_0x1326('0x6a'))||this[_0x1326('0xd4')][_0x1326('0x3e')](_0x402f92,_0x20102c);}const _0x3a108c=G('$graveyard');this[_0x1326('0x63')][_0x1326('0x3e')](_0x1326('0x21'),_0x3a108c),this['_baseIdsRoots'][_0x1326('0x3e')]('$graveyard',this[_0x1326('0xd7')](_0x3a108c,0x1));const _0x243808=G(_0x1326('0x21'));this['_diffRoots'][_0x1326('0x3e')](_0x1326('0x21'),_0x243808),this[_0x1326('0xea')][_0x1326('0x3e')](_0x1326('0x21'),this[_0x1326('0xd7')](_0x243808,0x1));const _0x323a1e=Array[_0x1326('0xd1')](this[_0x1326('0x7d')])['map'](([_0x3ef383,_0xc99fcf])=>[_0x3ef383,q(_0xc99fcf)]);this[_0x1326('0x8d')](this[_0x1326('0x71')],_0x323a1e,this[_0x1326('0xd4')],_0x69364);}[_0x1326('0x10')](_0x3b7fb1){const _0xa85fed=JSON[_0x1326('0x8c')](_0x3b7fb1),_0x416564=this['editor'][_0x1326('0xf0')][_0x1326('0x72')][_0x1326('0x93')],_0x271fb3=new _0x63e321(_0x416564,_0xa85fed[_0x1326('0xb9')](_0x2047c2=>J(_0x2047c2,this['editor'])));return this['editor'][_0x1326('0x96')]['toModel'](_0x271fb3);}[_0x1326('0x8d')](_0x54fff9,_0x32bcb2,_0x53260e,_0x2e7e44){const _0x639d1e=new Map(_0x32bcb2),_0x27d1f7=new Map(_0x4122fa(_0x2e7e44)),_0x1f70fb=new Map();for(const [_0x53c66e,_0x59b939]of _0x53260e)_0x1f70fb[_0x1326('0x3e')](_0x53c66e,{'start':_0x59b939[_0x1326('0x8f')][_0x1326('0x2e')](),'end':_0x59b939[_0x1326('0x79')][_0x1326('0x2e')](),'rootName':_0x59b939[_0x1326('0xe5')][_0x1326('0x73')]});this[_0x1326('0x25')][_0x1326('0x3e')](_0x54fff9,{'roots':_0x639d1e,'markers':_0x1f70fb,'rootsAttributes':_0x27d1f7});}[_0x1326('0xdc')](_0x296aff){this[_0x1326('0x25')][_0x1326('0xcd')](_0x296aff);}[_0x1326('0x31')](){this[_0x1326('0xe1')](),this[_0x1326('0x41')]=-0x1,this[_0x1326('0x71')]=-0x1,this[_0x1326('0x25')]['clear'](),this[_0x1326('0x97')](this[_0x1326('0xb4')]);}['_reset'](){this[_0x1326('0xf')][_0x1326('0xce')](),this[_0x1326('0x90')][_0x1326('0xce')](),this[_0x1326('0x88')][_0x1326('0xce')](),this[_0x1326('0x7d')]['clear'](),this[_0x1326('0xa6')]['clear'](),this[_0x1326('0x63')][_0x1326('0xce')](),this[_0x1326('0x4')][_0x1326('0xce')](),this[_0x1326('0xea')][_0x1326('0xce')](),this['_baseIdsRoots'][_0x1326('0xce')](),this[_0x1326('0xd4')][_0x1326('0xce')](),this['_revisionId']=0x1,this[_0x1326('0xe6')]=this[_0x1326('0xc7')];}[_0x1326('0xd7')](_0x3e1421,_0x42aea2=null){let _0x15dadc=null;_0x3e1421['is'](_0x1326('0x7e'))||(_0x15dadc=new _0x3fe0c9(_0x3e1421[_0x1326('0x1e')],{'vid_start':null===_0x42aea2?this['_revisionId']++:_0x42aea2++}));const _0x3e8b79=[];for(const _0x95a47 of _0x3e1421[_0x1326('0x0')]())if(_0x95a47['is'](_0x1326('0xba'))){_0x3e8b79[_0x1326('0xf7')](this[_0x1326('0xd7')](_0x95a47,_0x42aea2));const _0x4e6b30=_0x3e8b79[_0x3e8b79[_0x1326('0x76')]-0x1];null!==_0x42aea2&&(_0x42aea2=_0x4e6b30['is']('element',_0x1326('0x9e'))?_0x4e6b30[_0x1326('0x40')](_0x1326('0x44'))+0x1:_0x4e6b30[_0x1326('0x40')](_0x1326('0xdd'))+0x1);}else for(let _0x5b61d0=0x0;_0x5b61d0<_0x95a47['offsetSize'];_0x5b61d0++)_0x3e8b79[_0x1326('0xf7')](new _0x3fe0c9('$text',{'vid':null===_0x42aea2?this['_revisionId']++:_0x42aea2++}));if(_0x3e1421['is'](_0x1326('0x7e'))){const _0xb18bd4=G(_0x3e1421[_0x1326('0x73')]);return _0xb18bd4['_insertChild'](0x0,_0x3e8b79),_0xb18bd4;}return _0x15dadc['_setAttribute'](_0x1326('0xdd'),null===_0x42aea2?this[_0x1326('0xc7')]++:_0x42aea2++),_0x15dadc[_0x1326('0x3b')](0x0,_0x3e8b79),_0x15dadc;}[_0x1326('0xcb')](_0x2ef9c7,_0x5af36e,_0xc6e83a){this['_reset']();const {roots:_0x3bdc78,markers:_0x25c430,rootsAttributes:_0x2097cd}=this[_0x1326('0x25')][_0x1326('0x19')](_0x2ef9c7);this['_baseRoots']=new Map(_0x3bdc78),this[_0x1326('0x4')]=new Map(_0x4122fa(_0x2097cd));for(const [_0x452e2a,_0x447274]of this[_0x1326('0x63')])if(_0x1326('0x21')!==_0x452e2a&&(this[_0x1326('0x7d')]['set'](_0x452e2a,q(_0x447274)),this['_diffRootsAttributes']=new Map(_0x4122fa(_0x2097cd)),_0xc6e83a)){const _0x135512=this['_revisionId'];this[_0x1326('0xea')][_0x1326('0x3e')](_0x452e2a,this['_makeIdsRoot'](_0x447274)),this['_baseIdsRoots'][_0x1326('0x3e')](_0x452e2a,this['_makeIdsRoot'](_0x447274,_0x135512));}this[_0x1326('0xe6')]=this[_0x1326('0xc7')],this[_0x1326('0x7d')][_0x1326('0x3e')](_0x1326('0x21'),q(this[_0x1326('0x63')][_0x1326('0x19')]('$graveyard'))),_0xc6e83a&&this['_idsRoots'][_0x1326('0x3e')](_0x1326('0x21'),this[_0x1326('0xd7')](this[_0x1326('0x63')][_0x1326('0x19')](_0x1326('0x21'))));for(const [_0x194750,_0x3473bf]of _0x25c430){const _0x2004b2=this['_baseRoots']['get'](_0x3473bf[_0x1326('0x73')]),_0x4e4f19=this[_0x1326('0x7d')][_0x1326('0x19')](_0x3473bf['rootName']),_0x5a315b=new _0x854abd(this[_0x1326('0xb0')](_0x3473bf[_0x1326('0x8f')],_0x2004b2),this['_fixPosition'](_0x3473bf[_0x1326('0x79')],_0x2004b2)),_0x405569=this[_0x1326('0x12')](_0x5a315b,_0x4e4f19);_0x2004b2[_0x1326('0xcc')][_0x1326('0x3e')](_0x194750,_0x5a315b),this[_0x1326('0xd4')]['set'](_0x194750,_0x405569);}this[_0x1326('0xdf')](_0x2ef9c7,_0x5af36e,_0xc6e83a);}[_0x1326('0xdf')](_0x3ad01f,_0x540ede,_0xed6b66){for(const _0x13ad39 of this[_0x1326('0xb4')]['getOperations'](_0x3ad01f,_0x540ede))this[_0x1326('0x5c')](_0x13ad39,_0xed6b66);for(const _0x3e7d34 of this['_diffRoots']['values']())_0x3e7d34[_0x1326('0xcc')][_0x1326('0xce')]();for(const [_0x3abe35,_0x4c04e7]of this[_0x1326('0xd4')]){this['_diffRoots'][_0x1326('0x19')](_0x4c04e7[_0x1326('0xe5')][_0x1326('0x73')])[_0x1326('0xcc')][_0x1326('0x3e')](_0x3abe35,_0x4c04e7[_0x1326('0x2e')]());}const _0x152d93=new Map(),_0x227022=new Map();for(const [_0x4c0e0b,_0x4d76a7]of this[_0x1326('0x7d')])_0x152d93['set'](_0x4c0e0b,q(_0x4d76a7)),_0x227022['set'](_0x4c0e0b,this['_diffRootsAttributes']['get'](_0x4c0e0b));this[_0x1326('0x8d')](_0x540ede,_0x152d93,this[_0x1326('0xd4')],_0x227022);}[_0x1326('0xd8')](_0x2c5d5d){const _0x331a5c=Array[_0x1326('0xd1')](this['_savedMetaData'][_0x1326('0x66')]());_0x331a5c['sort']((_0x5eef80,_0x5f75e7)=>_0x5eef80-_0x5f75e7),_0x331a5c[_0x1326('0xf4')]();for(const _0x3f8778 of _0x331a5c)if(_0x3f8778<_0x2c5d5d)return _0x3f8778;return Number[_0x1326('0x6c')];}[_0x1326('0x6e')](_0x498575,_0x1231c2){const _0xb51e60=Array[_0x1326('0xd1')](_0x1231c2[_0x1326('0xcc')])[_0x1326('0xb9')](([_0x3a0997,_0x516ed0])=>[_0x3a0997,this[_0x1326('0x12')](_0x516ed0,_0x498575)]);_0x498575[_0x1326('0xcc')]=new Map(_0xb51e60);}[_0x1326('0x5d')](_0xb4895f){for(const _0x1102a5 of this[_0x1326('0xd4')][_0x1326('0x35')]()){const _0xdb06d1=_0x1102a5['getTransformedByOperation'](_0xb4895f),_0xa2de8c=_0x854abd[_0x1326('0x11')](_0xdb06d1);_0x1102a5[_0x1326('0x8f')]=_0xa2de8c['start'],_0x1102a5[_0x1326('0x79')]=_0xa2de8c[_0x1326('0x79')];}}['_handleOperation'](_0x36beb7,_0x262a46){if(_0x1326('0x4c')==_0x36beb7[_0x1326('0xb8')]||_0x1326('0xf9')==_0x36beb7[_0x1326('0xb8')])return void this[_0x1326('0x107')](_0x36beb7,_0x262a46);if(_0x1326('0x2a')==_0x36beb7[_0x1326('0xb8')]){const _0x3870aa=_0x36beb7[_0x1326('0x1b')][_0x1326('0xe5')]['rootName'];this[_0x1326('0x7d')][_0x1326('0xa3')](_0x3870aa)||(this[_0x1326('0x7d')][_0x1326('0x3e')](_0x3870aa,G(_0x3870aa,!0x0)),this[_0x1326('0xa6')][_0x1326('0x3e')](_0x3870aa,{}),_0x262a46&&this[_0x1326('0xea')][_0x1326('0x3e')](_0x3870aa,G(_0x3870aa,!0x0)));}else{if(_0x1326('0x65')==_0x36beb7[_0x1326('0xb8')]||_0x1326('0x1')==_0x36beb7[_0x1326('0xb8')]||_0x1326('0xaa')==_0x36beb7[_0x1326('0xb8')])return void this[_0x1326('0x100')](_0x36beb7);}const _0x5acf91=this['_cloneOperation'](_0x36beb7,this[_0x1326('0x7d')]);if('marker'!==_0x36beb7[_0x1326('0xb8')]&&(_0x5acf91[_0x1326('0x87')](),this[_0x1326('0x5d')](_0x5acf91)),_0x262a46)switch(_0x5acf91[_0x1326('0xb8')]){case'insert':this[_0x1326('0xec')](_0x36beb7);break;case'move':case _0x1326('0x9d'):case'reinsert':this[_0x1326('0x1d')](_0x36beb7);break;case _0x1326('0x18'):this[_0x1326('0x104')](_0x36beb7);break;case _0x1326('0x85'):this[_0x1326('0x82')](_0x36beb7);break;case _0x1326('0x4a'):this[_0x1326('0x1c')](_0x36beb7);}}[_0x1326('0xa0')](_0x59f2d6,_0x4c8822){const _0x327323=_0x59f2d6[_0x1326('0x2e')]();return _0x327323[_0x1326('0x74')]=_0x59f2d6[_0x1326('0x74')],this['_fixOperation'](_0x327323,_0x4c8822),_0x327323;}[_0x1326('0xc3')](_0x2b5695){return _0x2b5695[_0x1326('0xb9')](_0x11844c=>{const _0x2e8f67=this[_0x1326('0xa2')](_0x11844c);return Number(_0x11844c[_0x1326('0x51')][_0x1326('0x40')](_0x2e8f67));});}[_0x1326('0x54')](_0x151e8c,_0x5b8fe9){if(_0x151e8c['is'](_0x1326('0xba'),_0x1326('0x9e')))_0x5b8fe9['push']({'item':_0x151e8c,'type':'text'});else{_0x151e8c['is'](_0x1326('0xba'))&&_0x5b8fe9[_0x1326('0xf7')]({'item':_0x151e8c,'type':_0x1326('0xbd')});for(const _0x46b2b1 of _0x151e8c['getChildren']())this[_0x1326('0x54')](_0x46b2b1,_0x5b8fe9);_0x151e8c['is']('element')&&_0x5b8fe9['push']({'item':_0x151e8c,'type':_0x1326('0x5f')});}return _0x5b8fe9;}[_0x1326('0xef')](){const _0x4c7600=new Map(this[_0x1326('0xf')]),_0x120a41=new Map(_0x4c7600),_0xed3cad=new Map(),_0x471f49={'insertions':{},'deletions':{}},_0x2f9608={'insertions':{},'deletions':{}},_0x3422a1=new Map(),_0x55a89c=new Set([...this['_baseRoots'][_0x1326('0x66')](),...this[_0x1326('0x7d')][_0x1326('0x66')]()]);_0x55a89c[_0x1326('0xcd')](_0x1326('0x21'));for(const _0x248a91 of _0x55a89c){const _0x3deb6b=this['_diffRoots'][_0x1326('0x19')](_0x248a91)||G(_0x248a91,!0x1),_0xe902fe=this[_0x1326('0x63')][_0x1326('0x19')](_0x248a91)||G(_0x248a91,!0x1);_0x3deb6b['isAttached']()||_0xe902fe[_0x1326('0x4e')]()?(_0x471f49[_0x1326('0x2b')][_0x248a91]=q(_0x3deb6b),_0x471f49['deletions'][_0x248a91]=q(_0xe902fe),this[_0x1326('0x6e')](_0x471f49['deletions'][_0x248a91],_0xe902fe),this[_0x1326('0x6e')](_0x471f49['insertions'][_0x248a91],_0x3deb6b),_0x2f9608['insertions'][_0x248a91]=this[_0x1326('0x54')](this[_0x1326('0xea')][_0x1326('0x19')](_0x248a91),[]),_0x2f9608[_0x1326('0x36')][_0x248a91]=this[_0x1326('0x54')](this[_0x1326('0xa')]['get'](_0x248a91)||G(_0x248a91,!0x1),[])):_0x55a89c['delete'](_0x248a91);}for(const _0x56b065 of _0x55a89c){const _0x5df704=_0x2f9608[_0x1326('0x2b')][_0x56b065];for(const _0x42732e of _0x5df704){const _0x27b14f=this['_getVidAttributeName'](_0x42732e),_0x31f6de=_0x42732e[_0x1326('0x51')]['getAttribute'](_0x27b14f);_0x120a41[_0x1326('0xcd')](_0x31f6de),_0x31f6de>=this[_0x1326('0xe6')]&&_0xed3cad[_0x1326('0x3e')](_0x31f6de,_0x4c7600[_0x1326('0x19')](_0x31f6de));}}for(const _0x349851 of _0x55a89c){const _0x431161=_0x2f9608['insertions'][_0x349851],_0x258b23=this[_0x1326('0xc3')](_0x2f9608[_0x1326('0x36')][_0x349851]);let _0x48e520=0x0;for(const _0x364496 of _0x431161){const _0x16ac5a=this[_0x1326('0xa2')](_0x364496),_0xf9fd7b=_0x364496[_0x1326('0x51')][_0x1326('0x40')](_0x16ac5a);if(!_0xed3cad[_0x1326('0xa3')](_0xf9fd7b)&&!_0x3422a1[_0x1326('0xa3')](_0xf9fd7b)){if(_0x120a41[_0x1326('0xa3')](_0xf9fd7b))_0x48e520++;else{if(_0xf9fd7b!=_0x258b23[_0x48e520]){const _0xc7eb49=_0x4c7600['get'](_0xf9fd7b)||_0x4c7600[_0x1326('0x19')](_0x258b23[_0x48e520]);for(;_0xf9fd7b!=_0x258b23[_0x48e520];)_0x120a41[_0x1326('0xa3')](_0x258b23[_0x48e520])||(_0x3422a1[_0x1326('0x3e')](_0x258b23[_0x48e520],_0xc7eb49),_0x4c7600[_0x1326('0x3e')](_0x258b23[_0x48e520],_0xc7eb49)),_0x48e520++;}_0x48e520++;}}}}for(const _0x5027a9 of _0x55a89c){const _0x26a308=_0x2f9608['insertions'][_0x5027a9];for(const _0x20c43b of _0x26a308){const _0x469c7b=this['_getVidAttributeName'](_0x20c43b),_0x186192=_0x20c43b['item'][_0x1326('0x40')](_0x469c7b);if(_0x3422a1[_0x1326('0xa3')](_0x186192)){const _0x3b020c=_0x3422a1['get'](_0x186192);_0x120a41[_0x1326('0xa3')](_0x186192)||_0x120a41[_0x1326('0x3e')](_0x186192,{..._0x3b020c}),_0xed3cad['set'](_0x186192,{..._0x3b020c});}}}for(const _0x44bc42 of _0x120a41[_0x1326('0x66')]())_0x44bc42>=this[_0x1326('0xe6')]&&_0x120a41[_0x1326('0xcd')](_0x44bc42);const _0x28497b=new Map();for(const _0x4976ce of _0x55a89c){let _0x5a2c76=_0x2f9608[_0x1326('0x2b')][_0x4976ce];for(const _0x48a0ef of _0x5a2c76)if(_0x48a0ef[_0x1326('0x51')]['is']('element',_0x1326('0xfc'))){const _0x13a2e6=this[_0x1326('0xa2')](_0x48a0ef),_0x1e1f69=_0x48a0ef[_0x1326('0x51')][_0x1326('0x40')](_0x13a2e6);if(_0xed3cad[_0x1326('0xa3')](_0x1e1f69)){const _0x4dd32c=_0x48a0ef['item'][_0x1326('0x91')][_0x1326('0x91')]['getAttribute'](_0x1326('0x2d')),_0x5e01ac=_0x28497b[_0x1326('0x19')](_0x4dd32c)||new Set();_0x5e01ac[_0x1326('0xaf')](_0xed3cad[_0x1326('0x19')](_0x1e1f69)['userId']),_0x28497b[_0x1326('0x3e')](_0x4dd32c,_0x5e01ac);}}_0x5a2c76=_0x2f9608[_0x1326('0x36')][_0x4976ce];for(const _0x266e92 of _0x5a2c76)if(_0x266e92[_0x1326('0x51')]['is'](_0x1326('0xba'),_0x1326('0xfc'))){const _0x3d17f3=this[_0x1326('0xa2')](_0x266e92),_0x122dcd=_0x266e92['item'][_0x1326('0x40')](_0x3d17f3);if(_0x120a41[_0x1326('0xa3')](_0x122dcd)){const _0x2e054f=_0x266e92[_0x1326('0x51')][_0x1326('0x91')][_0x1326('0x91')][_0x1326('0x40')](_0x1326('0x2d')),_0x4c2455=_0x28497b[_0x1326('0x19')](_0x2e054f)||new Set();_0x4c2455['add'](_0x120a41[_0x1326('0x19')](_0x122dcd)['userId']),_0x28497b[_0x1326('0x3e')](_0x2e054f,_0x4c2455);}}for(const _0x36a6a2 of _0x28497b[_0x1326('0x66')]())(_0xed3cad['has'](_0x36a6a2)||_0x120a41[_0x1326('0xa3')](_0x36a6a2))&&_0x28497b['delete'](_0x36a6a2);}for(const _0x19ff2f of _0x55a89c){const _0x4830c6=_0x2f9608[_0x1326('0x2b')][_0x19ff2f];let _0x194335=null,_0x3acc02=null;for(const _0x47fc51 of _0x4830c6){const _0x23829f=this[_0x1326('0xa2')](_0x47fc51),_0x3293b5=_0x47fc51[_0x1326('0x51')][_0x1326('0x40')](_0x23829f),_0x1c706a=_0x28497b[_0x1326('0x19')](_0x3293b5);_0x1c706a&&_0x1326('0xbd')==_0x47fc51[_0x1326('0xb8')]&&(_0x194335=Array[_0x1326('0xd1')](_0x1c706a)[0x0],_0x3acc02=_0x47fc51[_0x1326('0x51')]['getAttribute'](_0x1326('0xdd'))),_0x194335&&(_0x120a41[_0x1326('0x3e')](_0x3293b5,{'userId':_0x194335}),_0xed3cad[_0x1326('0x3e')](_0x3293b5,{'userId':_0x194335})),_0x3293b5==_0x3acc02&&(_0x194335=null,_0x3acc02=null);}}const _0x3a5c6c={},_0xa4ce55=new Set();for(const _0xe0e2ca of _0x55a89c){const _0x297c34=_0x471f49[_0x1326('0x36')][_0xe0e2ca],_0x375760=_0x471f49[_0x1326('0x2b')][_0xe0e2ca];for(const {userId:_0x5cf3f9}of this['_touchedMarkers'][_0x1326('0x35')]())null!==_0x5cf3f9&&_0xa4ce55[_0x1326('0xaf')](_0x5cf3f9);for(const {userId:_0x1f1353}of this['_touchedRoots'][_0x1326('0x35')]())null!==_0x1f1353&&_0xa4ce55[_0x1326('0xaf')](_0x1f1353);this[_0x1326('0x9b')](_0x375760,_0x2f9608['insertions'][_0xe0e2ca],_0xed3cad,_0x1326('0x46'),_0xa4ce55),this[_0x1326('0x9b')](_0x297c34,_0x2f9608[_0x1326('0x36')][_0xe0e2ca],_0x120a41,_0x1326('0xac'),_0xa4ce55),_0x3a5c6c[_0xe0e2ca]={'insertions':this[_0x1326('0xc5')](_0x375760),'deletions':this['_prepareViewToSave'](_0x297c34),'attachChange':this[_0x1326('0x88')][_0x1326('0x19')](_0xe0e2ca)||null,'attributesBefore':_0x4122fa(this[_0x1326('0x4')][_0x1326('0x19')](_0xe0e2ca))||{},'attributesAfter':_0x4122fa(this[_0x1326('0xa6')]['get'](_0xe0e2ca))};}return{'diffData':_0x3a5c6c,'authorsIds':Array['from'](_0xa4ce55)};}[_0x1326('0xff')](_0x234993){for(const [,_0x12a2c0]of _0x234993['markers']){const _0x425b6b=_0x12a2c0[_0x1326('0x8f')][_0x1326('0x3f')]()[_0x1326('0xe9')](_0x14fabb=>'tableCell'==_0x14fabb[_0x1326('0x1e')]);for(const _0x43415c of _0x425b6b)0x1==_0x43415c[_0x1326('0x45')]&&_0x43415c[_0x1326('0xa7')](0x0)['is'](_0x1326('0xba'),_0x1326('0x49'))&&_0x43415c['getChild'](0x0)[_0x1326('0x69')](_0x1326('0x9'),!0x0);}}[_0x1326('0xc5')](_0x4214f4){this['_processRootBeforeSave'](_0x4214f4);const _0x406fe2=this[_0x1326('0x92')][_0x1326('0x96')][_0x1326('0x102')](_0x4214f4,{}),_0x3e7a20=Array[_0x1326('0xd1')](_0x406fe2['getChildren']())[_0x1326('0xb9')](_0x3947fe=>this[_0x1326('0xd6')](_0x3947fe));return JSON['stringify'](_0x3e7a20);}[_0x1326('0xd6')](_0x5a9286){if(_0x5a9286['is'](_0x1326('0x9e')))return _0x5a9286[_0x1326('0x96')];{const _0x55e67a=_0x5a9286;return{'type':Object[_0x1326('0x66')](B)[_0x1326('0xe3')](_0x23ae75=>_0x5a9286 instanceof B[_0x23ae75]),'name':_0x55e67a[_0x1326('0x1e')],'attributes':Array[_0x1326('0xd1')](_0x55e67a[_0x1326('0xa9')]()),'children':Array[_0x1326('0xd1')](_0x55e67a[_0x1326('0x0')]())[_0x1326('0xb9')](_0x1ddec5=>this['_getViewJson'](_0x1ddec5))};}}[_0x1326('0x9b')](_0x693f95,_0x386e6f,_0x51e18c,_0x3e71f9,_0x9901){let _0x5b5077=null,_0x14a6cd=null,_0x483ac1=0x0;const _0x4b7bb9=this['editor'][_0x1326('0x68')];for(let _0x2cdaf6=0x0;_0x2cdaf6<_0x386e6f[_0x1326('0x76')];_0x2cdaf6++){const _0x1d2eb5=this[_0x1326('0xa2')](_0x386e6f[_0x2cdaf6]),_0x1c90d5=_0x386e6f[_0x2cdaf6][_0x1326('0x51')][_0x1326('0x40')](_0x1d2eb5),_0x275fc7=_0x51e18c['get'](_0x1c90d5),_0x25d06f=_0x2cdaf6==_0x386e6f[_0x1326('0x76')]-0x1;(!_0x5b5077&&_0x275fc7&&(_0x5b5077=_0x275fc7,_0x14a6cd=_0x386e6f[_0x2cdaf6]),_0x5b5077&&(!_0x275fc7||_0x275fc7[_0x1326('0x48')]!=_0x5b5077[_0x1326('0x48')]))&&(_0x4553f1(_0x275fc7,L(_0x14a6cd,_0x693f95,_0x4b7bb9),L(_0x386e6f[_0x2cdaf6],_0x693f95,_0x4b7bb9)),_0x5b5077=_0x275fc7||null,_0x14a6cd=_0x275fc7?_0x386e6f[_0x2cdaf6]:null),_0x5b5077&&_0x25d06f&&_0x4553f1(_0x275fc7,L(_0x14a6cd,_0x693f95,_0x4b7bb9),W(_0x386e6f[_0x2cdaf6],_0x693f95,_0x4b7bb9));}function _0x4553f1(_0x590354,_0x5dc0d8,_0x10a2cb){const _0x32eaaa=_0x5b5077['userId'],_0x4a23b1=_0x1326('0x6a')+_0x3e71f9+':'+_0x32eaaa+':'+_0x483ac1++,_0x41960e=_0x4b7bb9[_0x1326('0x9f')](_0x5dc0d8,_0x10a2cb);_0x693f95['markers']['set'](_0x4a23b1,_0x41960e),null!==_0x32eaaa&&_0x9901[_0x1326('0xaf')](_0x32eaaa);}}['_getVidAttributeName'](_0xc026b4){switch(_0xc026b4[_0x1326('0xb8')]){case _0x1326('0xbd'):return _0x1326('0x2d');case'elementEnd':return _0x1326('0xdd');default:return'vid';}}[_0x1326('0xa1')](_0x12d63c,_0x269802){_0x12d63c[_0x1326('0x8e')]=null;for(const _0x5f27da in _0x12d63c){const _0x4e66be=_0x12d63c[_0x5f27da];if(_0x4e66be instanceof _0x304361){const _0x23a422=_0x269802[_0x1326('0x19')](_0x4e66be[_0x1326('0xe5')][_0x1326('0x73')]);_0x12d63c[_0x5f27da]=this[_0x1326('0xb0')](_0x4e66be,_0x23a422);}if(_0x4e66be instanceof _0x854abd){const _0xe97745=_0x269802['get'](_0x4e66be[_0x1326('0xe5')][_0x1326('0x73')]);_0x12d63c[_0x5f27da]=this[_0x1326('0x12')](_0x4e66be,_0xe97745);}'root'===_0x5f27da&&(_0x12d63c[_0x1326('0xe5')]=_0x269802[_0x1326('0x19')](_0x12d63c['root'][_0x1326('0x73')]));}}[_0x1326('0x12')](_0x1fecb6,_0x14512f){return this[_0x1326('0x92')][_0x1326('0x68')]['createRange'](this[_0x1326('0xb0')](_0x1fecb6['start'],_0x14512f),this[_0x1326('0xb0')](_0x1fecb6[_0x1326('0x79')],_0x14512f));}[_0x1326('0xb0')](_0x376786,_0x1b8ef0){return this['editor'][_0x1326('0x68')]['createPositionFromPath'](_0x1b8ef0,_0x376786[_0x1326('0x78')],_0x376786['stickiness']);}['_handleInsertOperation'](_0x37eb1b){const _0x1d4fa9=this[_0x1326('0xea')][_0x1326('0x19')](_0x37eb1b[_0x1326('0x1b')][_0x1326('0xe5')][_0x1326('0x73')]),_0x3f3d05=this[_0x1326('0xb0')](_0x37eb1b['position'],_0x1d4fa9),_0x372974=null===_0x37eb1b[_0x1326('0x74')]?null:_0x37eb1b['_authorId']||this[_0x1326('0x92')][_0x1326('0x2c')][_0x1326('0x19')](_0x1326('0x5b'))['me']['id'],_0x254379=_0x3f3d05['parent'],_0x44124e=this[_0x1326('0xc7')],_0x287621=[];for(const _0x5c8a8d of _0x37eb1b[_0x1326('0x17')])if(_0x5c8a8d['is'](_0x1326('0xba')))_0x287621[_0x1326('0xf7')](this['_makeIdsRoot'](_0x5c8a8d));else for(let _0x1808ac=0x0;_0x1808ac<_0x5c8a8d[_0x1326('0x15')];_0x1808ac++)_0x287621[_0x1326('0xf7')](new _0x3fe0c9(_0x1326('0x9e'),{'vid':this[_0x1326('0xc7')]++}));const _0x1f62ba=this[_0x1326('0xc7')];for(let _0x1cecb4=_0x44124e;_0x1cecb4<_0x1f62ba;_0x1cecb4++)this[_0x1326('0xf')][_0x1326('0x3e')](_0x1cecb4,{'userId':_0x372974});_0x254379['_insertChild'](_0x3f3d05['offset'],_0x287621);}[_0x1326('0x1d')](_0x32df31){(_0x32df31=this[_0x1326('0xa0')](_0x32df31,this[_0x1326('0xea')]))[_0x1326('0x87')]();const _0x2f19e5=null===_0x32df31['_authorId']?null:_0x32df31[_0x1326('0x74')]||this['editor'][_0x1326('0x2c')][_0x1326('0x19')](_0x1326('0x5b'))['me']['id'],_0x9952d6=_0x32df31[_0x1326('0xe0')](),_0x535103=_0x9952d6[_0x1326('0x91')],_0x4ab0a1=_0x9952d6['offset'];!function _0x1159a5(_0x371651,_0x183715,_0x26539b,_0x1fa848){for(let _0x33bbc6=_0x26539b;_0x33bbc6<_0x1fa848;_0x33bbc6++){const _0x1556ac=_0x183715[_0x1326('0xa7')](_0x33bbc6);_0x1556ac['is'](_0x1326('0xba'),_0x1326('0x9e'))?_0x371651[_0x1326('0x3e')](_0x1556ac[_0x1326('0x40')]('vid'),{'userId':_0x2f19e5}):(_0x371651[_0x1326('0x3e')](_0x1556ac[_0x1326('0x40')](_0x1326('0x2d')),{'userId':_0x2f19e5}),_0x1159a5(_0x371651,_0x1556ac,0x0,_0x1556ac['childCount']),_0x371651[_0x1326('0x3e')](_0x1556ac[_0x1326('0x40')](_0x1326('0xdd')),{'userId':_0x2f19e5}));}}(this[_0x1326('0xf')],_0x535103,_0x4ab0a1,_0x4ab0a1+_0x32df31[_0x1326('0x75')]);}[_0x1326('0x104')](_0x5925bc){const _0x46f828=null===(_0x5925bc=this[_0x1326('0xa0')](_0x5925bc,this[_0x1326('0xea')]))[_0x1326('0x74')]?null:_0x5925bc[_0x1326('0x74')]||this[_0x1326('0x92')]['plugins']['get']('Users')['me']['id'],_0x5a50f0=_0x5925bc[_0x1326('0x2')][_0x1326('0x91')],_0x27aec6=_0x5925bc['sourcePosition'][_0x1326('0x91')],_0x38d631=_0x5a50f0[_0x1326('0x40')]('vid_end'),_0x47b9bf=_0x27aec6[_0x1326('0x40')](_0x1326('0x2d'));_0x5a50f0[_0x1326('0x69')](_0x1326('0xdd'),_0x27aec6['getAttribute']('vid_end')),_0x27aec6[_0x1326('0x69')](_0x1326('0xdd'),_0x38d631),this[_0x1326('0xf')][_0x1326('0x3e')](_0x47b9bf,{'userId':_0x46f828}),this['_touched'][_0x1326('0x3e')](_0x38d631,{'userId':_0x46f828}),_0x5925bc[_0x1326('0x87')]();}[_0x1326('0x82')](_0x548f94){const _0x4f6a39=null===(_0x548f94=this[_0x1326('0xa0')](_0x548f94,this['_idsRoots']))[_0x1326('0x74')]?null:_0x548f94['_authorId']||this[_0x1326('0x92')][_0x1326('0x2c')]['get'](_0x1326('0x5b'))['me']['id'],_0x158aa6=_0x548f94[_0x1326('0x77')],_0x566e51=_0x548f94[_0x1326('0xb1')][_0x1326('0x91')];_0x548f94[_0x1326('0x87')]();const _0x2c3f9c=_0x566e51[_0x1326('0x40')](_0x1326('0xdd')),_0x13aa2c=_0x548f94[_0x1326('0x37')][_0x1326('0xe')];if(_0x158aa6){const _0x48a070=_0x13aa2c[_0x1326('0x40')](_0x1326('0xdd')),_0x574edf=_0x566e51['getAttribute'](_0x1326('0xdd'));_0x566e51[_0x1326('0x69')](_0x1326('0xdd'),_0x48a070),_0x13aa2c[_0x1326('0x69')]('vid_end',_0x574edf),this['_touched'][_0x1326('0x3e')](_0x566e51[_0x1326('0x40')]('vid_end'),{'userId':_0x4f6a39}),this[_0x1326('0xf')][_0x1326('0x3e')](_0x13aa2c['getAttribute'](_0x1326('0x2d')),{'userId':_0x4f6a39});}else{const _0x10015f=this[_0x1326('0xc7')]++,_0x24859b=this['_revisionId']++;_0x566e51[_0x1326('0x69')](_0x1326('0xdd'),_0x10015f),_0x13aa2c[_0x1326('0x69')](_0x1326('0x2d'),_0x24859b),_0x13aa2c[_0x1326('0x69')](_0x1326('0xdd'),_0x2c3f9c),this[_0x1326('0xf')][_0x1326('0x3e')](_0x10015f,{'userId':_0x4f6a39}),this[_0x1326('0xf')][_0x1326('0x3e')](_0x24859b,{'userId':_0x4f6a39});}}[_0x1326('0x1c')](_0x374809){if(!_0x374809[_0x1326('0x84')])return;const _0x39f6ae=(_0x374809=this['_cloneOperation'](_0x374809,this[_0x1326('0x7d')]))[_0x1326('0xa4')]?_0x374809[_0x1326('0xa4')][_0x1326('0xe5')]:null,_0x3ca929=_0x374809[_0x1326('0xbe')]?_0x374809['newRange'][_0x1326('0xe5')]:null;_0x39f6ae&&this[_0x1326('0xd4')][_0x1326('0xcd')](_0x374809[_0x1326('0x1e')]),_0x3ca929&&this['_markers']['set'](_0x374809[_0x1326('0x1e')],_0x374809['newRange'][_0x1326('0x2e')]());const _0x130a31=null===_0x374809[_0x1326('0x74')]?null:_0x374809[_0x1326('0x74')]||this[_0x1326('0x92')][_0x1326('0x2c')][_0x1326('0x19')](_0x1326('0x5b'))['me']['id'],_0xc559b2=_0x374809['name'];if(!this[_0x1326('0x90')][_0x1326('0xa3')](_0xc559b2))return void this[_0x1326('0x90')]['set'](_0xc559b2,{'range':_0x374809[_0x1326('0xa4')],'userId':_0x130a31});const _0x3b0dd8=this['_touchedMarkers']['get'](_0xc559b2),_0x392a18=_0x3b0dd8[_0x1326('0x30')],_0x2cf864=_0x374809[_0x1326('0xbe')];null==_0x392a18&&null==_0x2cf864||_0x392a18&&_0x2cf864&&_0x392a18[_0x1326('0x80')](_0x2cf864)?this[_0x1326('0x90')][_0x1326('0xcd')](_0x374809[_0x1326('0x1e')]):_0x3b0dd8[_0x1326('0x48')]=_0x130a31;}[_0x1326('0x107')](_0x117b20,_0x5b09ad){this[_0x1326('0x7d')][_0x1326('0xa3')](_0x117b20[_0x1326('0x73')])?this[_0x1326('0x7d')][_0x1326('0x19')](_0x117b20[_0x1326('0x73')])[_0x1326('0x61')]=_0x117b20[_0x1326('0xb7')]:(this[_0x1326('0x7d')][_0x1326('0x3e')](_0x117b20[_0x1326('0x73')],G(_0x117b20[_0x1326('0x73')],!0x0)),this['_diffRootsAttributes'][_0x1326('0x3e')](_0x117b20[_0x1326('0x73')],{}),_0x5b09ad&&this[_0x1326('0xea')][_0x1326('0x3e')](_0x117b20[_0x1326('0x73')],G(_0x117b20[_0x1326('0x73')],!0x0)));const _0x3e570a=null===_0x117b20[_0x1326('0x74')]?null:_0x117b20[_0x1326('0x74')]||this[_0x1326('0x92')]['plugins'][_0x1326('0x19')](_0x1326('0x5b'))['me']['id'],_0x4b6695=this[_0x1326('0x88')][_0x1326('0x19')](_0x117b20[_0x1326('0x73')]);_0x4b6695&&_0x4b6695[_0x1326('0x48')]===_0x3e570a?this[_0x1326('0x88')][_0x1326('0xcd')](_0x117b20[_0x1326('0x73')]):this['_touchedRoots'][_0x1326('0x3e')](_0x117b20['rootName'],{'userId':_0x3e570a,'isAttached':_0x117b20[_0x1326('0xb7')]});}[_0x1326('0x100')](_0x46ac3f){const _0x4dd2c4=this[_0x1326('0xa6')][_0x1326('0x19')](_0x46ac3f[_0x1326('0xe5')][_0x1326('0x73')]);null===_0x46ac3f['newValue']?delete _0x4dd2c4[_0x46ac3f[_0x1326('0x23')]]:_0x4dd2c4[_0x46ac3f[_0x1326('0x23')]]=_0x46ac3f[_0x1326('0xd0')];}}function q(_0x1e1bfd){const _0x252a7b=G(_0x1e1bfd[_0x1326('0x73')],_0x1e1bfd[_0x1326('0x4e')]());for(const _0x557e35 of _0x1e1bfd[_0x1326('0x0')]()){const _0x38093f=_0x557e35[_0x1326('0xc4')](!0x0);_0x252a7b[_0x1326('0x6f')](_0x38093f);}return _0x252a7b;}function G(_0x49302c,_0x23f875=!0x0){const _0x3b7be2=new _0x1b7620();return _0x3b7be2['rootName']=_0x49302c,_0x3b7be2[_0x1326('0x61')]=_0x23f875,_0x3b7be2[_0x1326('0x4e')]=()=>_0x3b7be2[_0x1326('0x61')],_0x3b7be2;}function L(_0x5aa855,_0x267dc7,_0x322a2b){const _0x16a64d='elementEnd'==_0x5aa855[_0x1326('0xb8')]?_0x322a2b[_0x1326('0xb2')](_0x5aa855[_0x1326('0x51')],_0x1326('0x79')):_0x322a2b[_0x1326('0xe4')](_0x5aa855['item']);return _0x322a2b[_0x1326('0xc0')](_0x267dc7,_0x16a64d[_0x1326('0x78')],_0x16a64d[_0x1326('0x70')]);}function W(_0x2a0516,_0x1e5849,_0x11a5ec){const _0x1118fb='elementStart'==_0x2a0516[_0x1326('0xb8')]?_0x11a5ec[_0x1326('0xb2')](_0x2a0516[_0x1326('0x51')],0x0):_0x11a5ec[_0x1326('0x7a')](_0x2a0516['item']);return _0x11a5ec[_0x1326('0xc0')](_0x1e5849,_0x1118fb[_0x1326('0x78')],_0x1118fb['stickiness']);}
|
|
23
|
+
const _0x5118=['_createCurrentRevision','length','authorsIds','attributes','documentFragment','insertion','_addPendingAction','setRevisionData','splitPosition','$graveyard','getIndex','childCount','_handleOperation','upcast','has','_createFromRanges','_lastTo','attachChange','removeRootAttribute','vid','getAncestors','from','updateRevisions','_pendingAction','createPositionAfter','_fixPosition','_bufferedUpdates','getRevisions','repository','getCurrentRevisionId','vid_end','_markChanges','createPositionBefore','elementStart','keepParagraph','_insertChild','insert','root','position','_findInsertionIndex','getChildren','_cloneOperation','offsetSize','default','getRevision','getChild','buildRevisionData','text','_touchedMarkers','_fixOperation','_startingRevisionId','delete','toVersion','clone','rootsAttributes','_getViewJson','_operations','_baseRootsAttributes','markers','shift','getOperation','getTransformedByOperation','string','find','_calculateMetaData','view','_startingVersion','_makeIdsRoot','initial','authors','Users','revision','createdAt','model','_isPendingUpdate','_execute','_appendChild','getUser','pluginName','getTime','rootName','oldRange','dataToMarker','offset','define','_replaceEditorDataWithRevisionData','version','editing','_getFromVersion','_baseRoots','isEqual','_removePendingAction','_isAttached','PendingActions','adapter','_authorId','_markers','size','_diffRoots','get','_handleRootOperation','document','map','creator','_prepareViewToSave','_removeRevisionMarkers','_getVidAttributeName','config','path','creatorId','_removeMetaData','_getPreviousFrom','_loadRevisionData','push','$text','affectsData','_copyMarkers','range','targetPosition','element','includes','split','getRevisionDocumentData','_makeRevision','afterInit','getNodeByPath','addRoot','_handleSplitOperation','createRevision','previousPosition','Initial\x20revision','insertionPosition','reInit','plugins','newRange','newValue','getData','isReady','stringify','RevisionTracker','markerToData','roots','vid_start','_update','NEGATIVE_INFINITY','locale','move','then','attributesAfter','_handleRootAttributeOperation','isAttached','item','values','key','type','_savedMetaData','name','tableCell','parse','createPositionFromPath','_touched','howMany','finally','_revisionDataBuilder','revisionHistory.resumeUnsavedRevision','merge','filter','end','_fixRange','deletion','_baseIdsRoots','_getBaseVids','_clone','collaboration.channelId','clear','processor','elementEnd','_reset','data','stickiness','insertions','currentRevision','keys','_lastFrom','deletions','createRange','_createInitialRevision','graveyardPosition','children','toModel','conversion','getWalker','getMovedRangeStart','slice','start','_loadState','_idsRoots','source','editor','some','trim','baseVersion','_handleMarkerOperation','_getState','hasContent','_transformMarkers','attributesBefore','toData','_isInit','sendBufferedUpdates','sort','getOperations','getAttributes','_saveMetaData','revision:','fromEntries','fromVersion','remove','marked','saveRevision','nodeAfter','getAttribute','for','_touchedRoots','getRoot','_diffRootsAttributes','set','loadState','data-revision-','marker','history','_initialRevisionId','_setAttribute','isAdd','resolve','useFillerType','Empty\x20document','_generateTape','_setConversion','revision-start','startsWith','getRootNames','getRevisionRootsAttributes','_loadedStateData','bind','parent','_processRootBeforeSave','init','diffData','_continueCurrentRevision','_revisionId','paragraph','userId','_applyOperations','reverse','initialData','update','add','_handleMergeOperation','_makeModelFromViewString','_bufferUpdate','revision-end','addRevisionData','_source'];(function(_0x3241c3,_0x51182f){const _0x2c6fa6=function(_0x2871e3){while(--_0x2871e3){_0x3241c3['push'](_0x3241c3['shift']());}};_0x2c6fa6(++_0x51182f);}(_0x5118,0x137));const _0x2c6f=function(_0x3241c3,_0x51182f){_0x3241c3=_0x3241c3-0x0;let _0x2c6fa6=_0x5118[_0x3241c3];return _0x2c6fa6;};import{Users as _0x2f72d3}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xd14f5c,PendingActions as _0xa2e87b}from'ckeditor5/src/core';import{logWarning as _0x41377c,uid as _0x154040}from'ckeditor5/src/utils';import{Position as _0x4f2d96,Range as _0x20270a,Element as _0x2bfd72,DocumentFragment as _0x381441,ViewText as _0x11c7bb,ViewElement as _0x31128b,ViewContainerElement as _0x7f07bf,ViewAttributeElement as _0x407e78,ViewEmptyElement as _0x505704,ViewRawElement as _0x49524d,ViewUIElement as _0x2e1638,ViewDocumentFragment as _0x4ab740}from'ckeditor5/src/engine';import _0x33a4ba from'./revisionsrepository';import{getTranslation as _0x34622a}from'./utils/common-translations';import{cloneDeep as _0x165835,isEqual as _0x20092c}from'lodash-es';const B={'c':_0x7f07bf,'a':_0x407e78,'e':_0x505704,'r':_0x49524d,'u':_0x2e1638};export default class l extends _0xd14f5c{static get[_0x2c6f('0x1f')](){return _0x2c6f('0x5c');}static get['requires'](){return[_0x2f72d3,_0x33a4ba,_0xa2e87b];}constructor(_0x476ff4){super(_0x476ff4),this[_0x2c6f('0x2f')]=null,this['currentRevision']=null,this['_revisionDataBuilder']=new H(this[_0x2c6f('0x97')]),this['_initialRevisionId']=this[_0x2c6f('0x97')]['config']['get'](_0x2c6f('0x7e'))||_0x2c6f('0x15'),this[_0x2c6f('0xf3')]=new Map(),this['_loadedStateData']=null;const _0x4aa6b1=_0x154040();this[_0x2c6f('0xd8')]={'history':this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')]['history'],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0x27')]),'getCurrentRevisionId':()=>_0x4aa6b1},this['set']('isReady',!0x1),this[_0x2c6f('0xb3')]('isEnabled',!0x0),this[_0x2c6f('0xb3')](_0x2c6f('0x1b'),!0x1),this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x25')](_0x2c6f('0x75'),!0x0),this[_0x2c6f('0x97')][_0x2c6f('0x8f')]['for'](_0x2c6f('0xe6'))[_0x2c6f('0x23')]({'view':_0x2c6f('0x18')});}[_0x2c6f('0xc8')](){this[_0x2c6f('0xf5')]=this['editor'][_0x2c6f('0x56')][_0x2c6f('0x34')]('RevisionsRepository'),this[_0x2c6f('0xbf')](),this[_0x2c6f('0x97')]['data']['on']('ready',()=>{const _0x15d920=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](0x0),_0x295c53=_0x15d920&&null===_0x15d920['creator']?_0x15d920:null;if(this['_continueCurrentRevision']=!!_0x295c53&&this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x34')](_0x2c6f('0x75')),this[_0x2c6f('0x97')]['plugins'][_0x2c6f('0xe7')]('RealTimeCollaborationClient')){const _0xfcf58=this[_0x2c6f('0xd8')]['getCurrentRevisionId'](),_0x3d03bd=this[_0x2c6f('0xf5')]['getRevision'](_0xfcf58);if(_0x3d03bd)this[_0x2c6f('0x13')]=_0x3d03bd[_0x2c6f('0xa9')],this[_0x2c6f('0xca')]=!0x1;else{const _0x31429d=this['_source']['history'][_0x2c6f('0x9')][_0x2c6f('0x10')](_0x1cf2c4=>!_0x1cf2c4[_0x2c6f('0xa1')]),_0x3fc914=_0x31429d?_0x31429d[_0x2c6f('0x9a')]:this[_0x2c6f('0xd8')][_0x2c6f('0xb7')][_0x2c6f('0x27')];_0x15d920?(_0x15d920[_0x2c6f('0x5')]<_0x3fc914&&_0x15d920[_0x2c6f('0x60')]({'toVersion':_0x3fc914}),this[_0x2c6f('0xca')]?(this[_0x2c6f('0xd8')][_0x2c6f('0xf6')]=()=>_0x295c53['id'],this[_0x2c6f('0x13')]=_0x295c53['fromVersion']):(this['_startingVersion']=_0x15d920[_0x2c6f('0x5')],this[_0x2c6f('0xca')]=!0x1)):(this[_0x2c6f('0x13')]=_0x3fc914,this[_0x2c6f('0xca')]=!0x1);}}else _0x295c53&&(this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0xb7')]['version']=Math['max'](_0x295c53[_0x2c6f('0x5')],this[_0x2c6f('0x97')]['model'][_0x2c6f('0x36')][_0x2c6f('0xb7')][_0x2c6f('0x27')]),_0x295c53[_0x2c6f('0xa9')]===_0x295c53[_0x2c6f('0x5')]?(0x0!==_0x295c53[_0x2c6f('0xa9')]&&(this[_0x2c6f('0xd8')][_0x2c6f('0xf6')]=()=>_0x295c53['id']),this['_continueCurrentRevision']=!0x1):this[_0x2c6f('0xca')]&&(this[_0x2c6f('0xd8')]['getCurrentRevisionId']=()=>_0x295c53['id'],this['_startingVersion']=_0x295c53[_0x2c6f('0xa9')])),this[_0x2c6f('0xca')]||(this[_0x2c6f('0x13')]=this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0x27')]);this['_revisionDataBuilder'][_0x2c6f('0xc8')](this[_0x2c6f('0xd8')][_0x2c6f('0xb7')]),this[_0x2c6f('0x8b')](this[_0x2c6f('0x13')]),this[_0x2c6f('0xd9')](this[_0x2c6f('0x13')]),this[_0x2c6f('0x2f')]&&this['sendBufferedUpdates']();}),this[_0x2c6f('0xc5')](_0x2c6f('0x5a'))['to'](this,_0x2c6f('0x1b'),_0x808fd7=>!_0x808fd7);}async[_0x2c6f('0x4d')](){if(this['repository'][_0x2c6f('0xda')]>0x0){const _0x34e5cf=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](0x0),_0x2497db=await this[_0x2c6f('0x4b')](_0x34e5cf),_0x414da6=await this[_0x2c6f('0xc3')](_0x34e5cf);this[_0x2c6f('0x26')](_0x2497db,_0x414da6);}}['setSource'](_0x53806c){this[_0x2c6f('0xd8')]=_0x53806c;}async[_0x2c6f('0xd1')](){const _0x2437fc=await this[_0x2c6f('0xd8')]['getLatestVersion']();if(_0x2437fc>this[_0x2c6f('0x86')][_0x2c6f('0x5')]){await this[_0x2c6f('0x94')]();const _0xc664d1=this[_0x2c6f('0x107')]({'revision':this[_0x2c6f('0x86')],'to':_0x2437fc});_0xc664d1[_0x2c6f('0x16')]=_0xc664d1[_0x2c6f('0xdb')]['map'](_0xfb0609=>this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'))[_0x2c6f('0x1e')](_0xfb0609)),this['currentRevision'][_0x2c6f('0x60')](_0xc664d1);}}async[_0x2c6f('0x94')](){this[_0x2c6f('0xca')]&&!this[_0x2c6f('0xc4')]&&(await this[_0x2c6f('0x41')](this['currentRevision']),this[_0x2c6f('0x74')][_0x2c6f('0xb4')](this[_0x2c6f('0x86')]),this[_0x2c6f('0xc4')]={'fromVersion':this[_0x2c6f('0x86')][_0x2c6f('0xa9')],'authors':this['currentRevision']['authors'][_0x2c6f('0x92')]()});}async[_0x2c6f('0xac')](_0x41e6b9={},_0x173245=null){const _0x44280b=[];await this[_0x2c6f('0x94')](),this[_0x2c6f('0xca')]=!0x1,_0x173245>this[_0x2c6f('0x86')][_0x2c6f('0x5')]&&(_0x173245=null),null===_0x173245&&(_0x173245=await this[_0x2c6f('0xd8')]['getLatestVersion']());const _0x184daf=this[_0x2c6f('0x29')](_0x173245),_0x4d5df6=this['buildRevisionData']({'from':_0x184daf,'to':_0x173245});if(this[_0x2c6f('0x86')]['toVersion']<_0x173245){const _0x156253=this[_0x2c6f('0x107')]({'revision':this['currentRevision'],'from':_0x173245,'to':_0x173245});_0x156253['authors']=[],_0x156253['authorsIds']=[],_0x156253['id']=this[_0x2c6f('0x86')]['id'],this['currentRevision'][_0x2c6f('0x60')](_0x156253,!0x0),delete _0x156253[_0x2c6f('0x16')],_0x44280b['push'](_0x156253);}_0x41e6b9[_0x2c6f('0x3e')]=this[_0x2c6f('0x97')]['plugins']['get']('Users')['me']['id'],_0x41e6b9['name']=_0x41e6b9[_0x2c6f('0x6d')]||null,_0x41e6b9['id']=_0x41e6b9['id']||_0x154040(),_0x41e6b9={..._0x41e6b9,..._0x4d5df6};const _0x426d37=this[_0x2c6f('0xd7')](_0x41e6b9);_0x44280b[_0x2c6f('0x42')](_0x41e6b9);const _0x2c588e=this[_0x2c6f('0xf5')][_0x2c6f('0xe3')](_0x426d37);if(0x0!==_0x2c588e){const _0x320d70=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](_0x2c588e-0x1);if(_0x320d70[_0x2c6f('0xa9')]!==_0x173245){const _0x3352ae=this[_0x2c6f('0x74')]['getData'](_0x173245,_0x320d70[_0x2c6f('0x5')]),_0x35ef3f={'id':_0x320d70['id'],'diffData':_0x3352ae[_0x2c6f('0xc9')],'authorsIds':_0x3352ae[_0x2c6f('0xdb')],'authors':_0x3352ae[_0x2c6f('0xdb')][_0x2c6f('0x37')](_0x509d30=>this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'))[_0x2c6f('0x1e')](_0x509d30)),'fromVersion':_0x173245};_0x320d70===this['currentRevision']&&(_0x35ef3f['createdAt']=new Date(_0x41e6b9[_0x2c6f('0x19')][_0x2c6f('0x20')]()+0xa)),_0x320d70[_0x2c6f('0x60')](_0x35ef3f,!0x0),delete _0x35ef3f[_0x2c6f('0x16')],_0x44280b[_0x2c6f('0x42')](_0x35ef3f);}}if(this['adapter']){for(const _0x176a0d of _0x44280b)this[_0x2c6f('0xd5')](_0x176a0d['id'],_0x176a0d,!0x0);this[_0x2c6f('0xa2')]();}return _0x426d37;}[_0x2c6f('0xd7')](_0x58ab7a){const _0x119d8c=this[_0x2c6f('0xf5')][_0x2c6f('0x51')](_0x58ab7a);return this[_0x2c6f('0x2f')]&&_0x119d8c['on'](_0x2c6f('0x60'),(_0x311c03,_0x4b1975,_0x5a3f82)=>{_0x5a3f82||(this['_bufferUpdate'](_0x4b1975['id'],_0x4b1975,!0x0),this['sendBufferedUpdates']());}),this[_0x2c6f('0xf5')]['addRevision'](_0x119d8c,this[_0x2c6f('0x100')](_0x119d8c)),_0x119d8c;}async[_0x2c6f('0x4b')](_0x141f8e){await this[_0x2c6f('0x41')](_0x141f8e);const _0x5e5c9c={};for(const _0x234104 in _0x141f8e[_0x2c6f('0xc9')]){if(_0x141f8e[_0x2c6f('0xc9')][_0x234104]['attachChange']&&!_0x141f8e[_0x2c6f('0xc9')][_0x234104][_0x2c6f('0xea')][_0x2c6f('0x67')])continue;const _0x1ea51b=this[_0x2c6f('0x3a')](JSON[_0x2c6f('0x6f')](_0x141f8e['diffData'][_0x234104][_0x2c6f('0x85')])),_0x242b4c=this['editor'][_0x2c6f('0x28')][_0x2c6f('0x12')][_0x2c6f('0x36')],_0x773be6=new _0x4ab740(_0x242b4c,_0x1ea51b[_0x2c6f('0x37')](_0x213d0e=>J(_0x213d0e,this['editor'])));this[_0x2c6f('0x97')][_0x2c6f('0x83')][_0x2c6f('0x80')][_0x2c6f('0xbc')](_0x2c6f('0xab')),_0x5e5c9c[_0x234104]=this[_0x2c6f('0x97')][_0x2c6f('0x83')][_0x2c6f('0x80')][_0x2c6f('0xa0')](_0x773be6),this[_0x2c6f('0x97')][_0x2c6f('0x83')]['processor']['useFillerType'](_0x2c6f('0x104'));}return _0x5e5c9c;}async['getRevisionRootsAttributes'](_0x316ef7){await this[_0x2c6f('0x41')](_0x316ef7);const _0x25252e={};for(const _0x3828cc in _0x316ef7['diffData'])_0x316ef7['diffData'][_0x3828cc]['attachChange']&&!_0x316ef7[_0x2c6f('0xc9')][_0x3828cc]['attachChange'][_0x2c6f('0x67')]||(_0x25252e[_0x3828cc]=_0x316ef7[_0x2c6f('0xc9')][_0x3828cc][_0x2c6f('0x65')]||{});return _0x25252e;}[_0x2c6f('0xa2')](){if(0x0===this[_0x2c6f('0xf3')][_0x2c6f('0x32')])return;if(this[_0x2c6f('0x1b')])return;let _0x966eda=Array[_0x2c6f('0xee')](this[_0x2c6f('0xf3')][_0x2c6f('0x69')]());this['_bufferedUpdates'][_0x2c6f('0x7f')]();for(let _0x41a5dc=0x0;_0x41a5dc<_0x966eda['length'];_0x41a5dc++){const _0x598a50=_0x966eda[_0x41a5dc];let _0x41f57c=!0x1;for(const _0x53bc47 of Object[_0x2c6f('0x87')](_0x598a50))void 0x0===_0x598a50[_0x53bc47]?delete _0x598a50[_0x53bc47]:'id'!==_0x53bc47&&(_0x41f57c=!0x0);_0x41f57c||(_0x966eda[_0x41a5dc]=null);}if(_0x966eda=_0x966eda['filter'](_0x588802=>null!==_0x588802),!_0x966eda['length'])return;for(let _0x2a3eb0=0x0;_0x2a3eb0<_0x966eda[_0x2c6f('0xda')];_0x2a3eb0++){const _0x485a6e=_0x966eda[_0x2a3eb0];void 0x0!==_0x485a6e['fromVersion']&&void 0x0===_0x485a6e[_0x2c6f('0x5')]&&(_0x485a6e[_0x2c6f('0x5')]=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](_0x485a6e['id'])[_0x2c6f('0x5')]),void 0x0!==_0x485a6e['toVersion']&&void 0x0===_0x485a6e[_0x2c6f('0xa9')]&&(_0x485a6e['fromVersion']=this['repository'][_0x2c6f('0x105')](_0x485a6e['id'])[_0x2c6f('0xa9')]);}const _0x2b5ba2=this[_0x2c6f('0x97')]['config'][_0x2c6f('0x34')](_0x2c6f('0x7e'));this['_isPendingUpdate']=!0x0,this[_0x2c6f('0xdf')](),this[_0x2c6f('0x2f')][_0x2c6f('0xef')](_0x966eda,_0x2b5ba2)[_0x2c6f('0x73')](()=>{this[_0x2c6f('0x1b')]=!0x1;})[_0x2c6f('0x64')](_0x347e17=>{if(_0x347e17)for(const _0x56f3ab of _0x347e17)this[_0x2c6f('0xe0')]({'id':_0x56f3ab['id'],'createdAt':_0x56f3ab['createdAt']});this[_0x2c6f('0x2c')](),this[_0x2c6f('0xa2')]();});}[_0x2c6f('0x26')](_0x1465ce,_0x211f9c){let _0x95713f=this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x34')](_0x2c6f('0xd0')),_0x313d0a=this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0x34')](_0x2c6f('0x7'));if(void 0x0===_0x95713f){_0x95713f={};for(const _0x2fa771 of this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0xc2')]())_0x95713f[_0x2fa771]='';}if(_0x2c6f('0xf')==typeof _0x95713f&&(_0x95713f={'main':_0x95713f}),void 0x0===_0x313d0a){_0x313d0a={};for(const _0x4fc412 of this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0xc2')]())_0x313d0a[_0x4fc412]={};}let _0x316d1e=!0x1;const _0x336d7f=Object['keys'](_0x95713f),_0x48902d=Object[_0x2c6f('0x87')](_0x1465ce);for(const _0x4120ff of _0x336d7f){if(_0x95713f[_0x4120ff]!==_0x1465ce[_0x4120ff]&&''!==_0x95713f[_0x4120ff][_0x2c6f('0x99')]()){_0x316d1e=!0x0;break;}if(!_0x20092c(_0x313d0a[_0x4120ff],_0x211f9c[_0x4120ff])&&Object[_0x2c6f('0x87')](_0x313d0a[_0x4120ff])[_0x2c6f('0xda')]>0x0){_0x316d1e=!0x0;break;}}_0x316d1e||(_0x316d1e=_0x48902d[_0x2c6f('0x98')](_0x4fa5e3=>!this[_0x2c6f('0x97')]['model'][_0x2c6f('0x36')][_0x2c6f('0xb1')](_0x4fa5e3))),_0x316d1e&&_0x41377c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x95713f,'editorRootsAttributes':_0x313d0a,'revisionData':_0x1465ce,'revisionRootsAttributes':_0x211f9c}),this['editor'][_0x2c6f('0x3c')][_0x2c6f('0xb3')]('initialData',_0x1465ce),this[_0x2c6f('0x97')][_0x2c6f('0x3c')][_0x2c6f('0xb3')](_0x2c6f('0x7'),_0x211f9c);}[_0x2c6f('0xdf')](){if(!this['_pendingAction']){const _0x33ce4d=this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x2e'));this['_pendingAction']=_0x33ce4d[_0x2c6f('0xd2')](_0x34622a(this[_0x2c6f('0x97')][_0x2c6f('0x62')],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x2c6f('0xf0')]&&(this[_0x2c6f('0x97')][_0x2c6f('0x56')]['get'](_0x2c6f('0x2e'))[_0x2c6f('0xaa')](this[_0x2c6f('0xf0')]),this[_0x2c6f('0xf0')]=null);}[_0x2c6f('0x100')](_0x5ec0ed){const _0x582c18=this[_0x2c6f('0xf5')][_0x2c6f('0xf4')]();_0x582c18[_0x2c6f('0xcf')]();let _0x46db9a=0x0;for(;_0x46db9a<_0x582c18[_0x2c6f('0xda')];){const _0x3d4c8b=_0x582c18[_0x46db9a];if(_0x3d4c8b===this['currentRevision']){_0x46db9a++;continue;}if(_0x3d4c8b['id']===this['_initialRevisionId'])break;const _0xf9c3df=_0x5ec0ed['toVersion']-_0x3d4c8b['toVersion']||_0x5ec0ed[_0x2c6f('0xa9')]-_0x3d4c8b[_0x2c6f('0xa9')];if(_0xf9c3df>0x0)break;if(_0xf9c3df<0x0)_0x46db9a++;else{if(!_0x5ec0ed[_0x2c6f('0x38')]&&_0x3d4c8b[_0x2c6f('0x38')])break;if(_0x3d4c8b[_0x2c6f('0x38')]||!_0x5ec0ed[_0x2c6f('0x38')]){if(_0x5ec0ed['createdAt']>_0x3d4c8b[_0x2c6f('0x19')])break;_0x46db9a++;}else _0x46db9a++;}}return _0x46db9a;}[_0x2c6f('0xe0')](_0x423d06){const _0x22ecde=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](_0x423d06['id']);if(_0x423d06[_0x2c6f('0x19')]&&(_0x423d06[_0x2c6f('0x19')]=new Date(_0x423d06[_0x2c6f('0x19')])),_0x423d06[_0x2c6f('0xdb')]){const _0x5b638a=this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'));_0x423d06[_0x2c6f('0x16')]=_0x423d06['authorsIds'][_0x2c6f('0x37')](_0x5d7af7=>_0x5b638a['getUser'](_0x5d7af7));}_0x22ecde[_0x2c6f('0x60')](_0x423d06,!0x0);}[_0x2c6f('0x107')]({revision:_0x366f26=null,from:_0x5a0cce=null,to:_0x3ce034=null}){_0x5a0cce=null!==_0x5a0cce?_0x5a0cce:_0x366f26[_0x2c6f('0xa9')],_0x3ce034=null!==_0x3ce034?_0x3ce034:_0x366f26[_0x2c6f('0x5')];const _0x1d7164=this[_0x2c6f('0x74')][_0x2c6f('0x59')](_0x5a0cce,_0x3ce034),_0x4b7e46={'diffData':_0x1d7164[_0x2c6f('0xc9')],'authorsIds':_0x1d7164[_0x2c6f('0xdb')],'fromVersion':_0x5a0cce,'toVersion':_0x3ce034};if(!_0x366f26||_0x3ce034!==_0x366f26[_0x2c6f('0x5')]){const _0x2ce9bd=_0x3ce034-0x1,_0x3fd647=this[_0x2c6f('0xd8')][_0x2c6f('0xb7')][_0x2c6f('0xd')](_0x2ce9bd);_0x4b7e46[_0x2c6f('0x19')]=_0x3fd647&&_0x3fd647[_0x2c6f('0x19')]||new Date();}if(this[_0x2c6f('0xc4')]&&_0x5a0cce===this[_0x2c6f('0xc4')][_0x2c6f('0xa9')])for(const _0x2f83c1 of this[_0x2c6f('0xc4')][_0x2c6f('0x16')])_0x4b7e46[_0x2c6f('0xdb')][_0x2c6f('0x49')](_0x2f83c1['id'])||_0x4b7e46['authorsIds']['push'](_0x2f83c1['id']);return _0x4b7e46;}[_0x2c6f('0x41')](_0x52392f){if(!_0x52392f||_0x52392f[_0x2c6f('0xc9')])return Promise[_0x2c6f('0xbb')]();{const _0x328bbf=this[_0x2c6f('0x97')]['config'][_0x2c6f('0x34')]('collaboration.channelId');return this[_0x2c6f('0x2f')][_0x2c6f('0x105')]({'channelId':_0x328bbf,'revisionId':_0x52392f['id']})[_0x2c6f('0x64')](_0x1ec1a1=>{_0x52392f['diffData']=_0x1ec1a1[_0x2c6f('0xc9')];});}}[_0x2c6f('0xd5')](_0x183a2a,_0x633194,_0xbda6f0){if(this[_0x2c6f('0xf3')][_0x2c6f('0xe7')](_0x183a2a)){const _0x33954c=this[_0x2c6f('0xf3')][_0x2c6f('0x34')](_0x183a2a);_0x633194=_0xbda6f0?{..._0x33954c,..._0x633194}:{..._0x633194,..._0x33954c};}this[_0x2c6f('0xf3')][_0x2c6f('0xb3')](_0x183a2a,_0x633194);}[_0x2c6f('0x29')](_0x214068){const _0x28b4cc=this[_0x2c6f('0xf5')][_0x2c6f('0xf4')]();_0x28b4cc['reverse'](),_0x28b4cc[_0x2c6f('0xc')]();const _0x502903=_0x28b4cc['find'](_0x29b90d=>_0x29b90d[_0x2c6f('0x5')]<=_0x214068)[_0x2c6f('0x5')];return _0x502903<this[_0x2c6f('0x13')]?this[_0x2c6f('0x13')]:_0x502903;}[_0x2c6f('0x8b')](_0x49dc01){const _0xb3bb71=this[_0x2c6f('0xf5')][_0x2c6f('0x105')](this[_0x2c6f('0xf5')]['length']-0x1);if(_0xb3bb71)this[_0x2c6f('0xb8')]=_0xb3bb71['id'];else{const _0x44d530=!this[_0x2c6f('0x97')]['model'][_0x2c6f('0x36')]['roots'][_0x2c6f('0x10')](_0x20717e=>this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x9d')](_0x20717e)),_0x378e26=this['editor']['plugins'][_0x2c6f('0x34')]('Users')['me']['id'],_0x4a5193=_0x34622a(this[_0x2c6f('0x97')][_0x2c6f('0x62')],_0x44d530?_0x2c6f('0xbd'):_0x2c6f('0x53'));this[_0x2c6f('0x4c')]({'from':_0x49dc01,'to':_0x49dc01,'id':this[_0x2c6f('0xb8')],'name':_0x4a5193,'creatorId':_0x378e26});}}[_0x2c6f('0xd9')](_0xa5873c){const _0x159147=this[_0x2c6f('0xd8')]['getCurrentRevisionId']();this[_0x2c6f('0x86')]=this[_0x2c6f('0xf5')]['getRevision'](_0x159147),this[_0x2c6f('0x86')]||(this[_0x2c6f('0x86')]=this[_0x2c6f('0x4c')]({'from':_0xa5873c,'to':_0xa5873c,'id':_0x159147,'name':'','creatorId':null}));}[_0x2c6f('0x4c')]({name:_0x25de1f,from:_0x47dcd2,to:_0x1ca0e9,creatorId:_0x3a9916,id:_0x32a28a}){const _0x170683=this[_0x2c6f('0x107')]({'from':_0x47dcd2,'to':_0x1ca0e9});_0x170683[_0x2c6f('0x6d')]=_0x25de1f,_0x170683[_0x2c6f('0x3e')]=_0x3a9916,_0x170683['id']=_0x32a28a;const _0x1828d3=this[_0x2c6f('0xd7')](_0x170683);return this[_0x2c6f('0x2f')]&&this['_bufferUpdate'](_0x170683['id'],_0x170683,!0x0),_0x1828d3;}['_setConversion'](){this[_0x2c6f('0x97')][_0x2c6f('0x8f')][_0x2c6f('0xaf')]('dataDowncast')[_0x2c6f('0x5d')]({'model':_0x2c6f('0x18')});}['_removeRevisionMarkers'](_0x12f9b2){return(_0x12f9b2=_0x12f9b2[_0x2c6f('0x77')](_0x2753cb=>!_0x2753cb[_0x2c6f('0x6d')]||_0x2c6f('0xc0')!==_0x2753cb['name']&&_0x2c6f('0xd6')!==_0x2753cb[_0x2c6f('0x6d')]))['forEach'](_0x32957a=>{'string'!=typeof _0x32957a&&(_0x32957a[_0x2c6f('0x8d')]=this['_removeRevisionMarkers'](_0x32957a['children']),_0x32957a[_0x2c6f('0xdc')]=_0x32957a[_0x2c6f('0xdc')][_0x2c6f('0x77')](_0x3c81c9=>!_0x3c81c9[0x0][_0x2c6f('0xc1')](_0x2c6f('0xb5'))));}),_0x12f9b2;}}function J(_0x250b5c,_0x4eb293){const _0x284cb3=_0x4eb293['editing']['view'][_0x2c6f('0x36')];if(_0x2c6f('0xf')==typeof _0x250b5c)return new _0x11c7bb(_0x284cb3,_0x250b5c);{const _0x4d3316=_0x250b5c[_0x2c6f('0x8d')][_0x2c6f('0x37')](_0x47f68f=>J(_0x47f68f,_0x4eb293));return new(B[_0x250b5c[(_0x2c6f('0x6b'))]]||_0x31128b)(_0x284cb3,_0x250b5c['name'],_0x250b5c['attributes'],_0x4d3316);}}class H{constructor(_0x1d7d2a){this[_0x2c6f('0x97')]=_0x1d7d2a,this[_0x2c6f('0x6c')]=new Map(),this[_0x2c6f('0x88')]=-0x1,this[_0x2c6f('0xe9')]=-0x1,this[_0x2c6f('0x31')]=new Map(),this[_0x2c6f('0x33')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x2c6f('0x2a')]=new Map(),this[_0x2c6f('0xa')]=new Map(),this[_0x2c6f('0x95')]=new Map(),this[_0x2c6f('0x7b')]=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this[_0x2c6f('0xb0')]=new Map(),this[_0x2c6f('0xcb')]=0x1;}[_0x2c6f('0xc8')](_0x2c13fe){this[_0x2c6f('0x96')]=_0x2c13fe;const _0x3a41b1=new Map(),_0x4c5fea=new Map(),_0x443fa7=this['editor'][_0x2c6f('0x1a')][_0x2c6f('0x36')][_0x2c6f('0x5e')]['map'](_0xe40376=>_0xe40376[_0x2c6f('0x21')]);for(const _0xf1fd0e of _0x443fa7){const _0x352dbf=this['editor'][_0x2c6f('0x1a')]['document'][_0x2c6f('0xb1')](_0xf1fd0e),_0x403bd3=q(_0x352dbf);_0x3a41b1[_0x2c6f('0xb3')](_0xf1fd0e,_0x403bd3),_0x4c5fea[_0x2c6f('0xb3')](_0xf1fd0e,Object[_0x2c6f('0xa8')](_0x352dbf[_0x2c6f('0xa5')]()));}const _0x133cc4=Array[_0x2c6f('0xee')](this['editor'][_0x2c6f('0x1a')][_0x2c6f('0xb')])['map'](_0x31b8ec=>[_0x31b8ec[_0x2c6f('0x6d')],_0x31b8ec['getRange']()]),_0x116f40=this[_0x2c6f('0x96')][_0x2c6f('0x27')];this[_0x2c6f('0xa6')](_0x116f40,_0x3a41b1,_0x133cc4,_0x4c5fea),this[_0x2c6f('0x3')]=this[_0x2c6f('0xcb')];const _0x3f36e9=new Map(),_0x1c0f5f=new Map();for(const _0x396ca8 of _0x443fa7){const _0x5b95e9=G(_0x396ca8);_0x3f36e9[_0x2c6f('0xb3')](_0x396ca8,_0x5b95e9),_0x1c0f5f[_0x2c6f('0xb3')](_0x396ca8,{});}this[_0x2c6f('0xa6')](Number['NEGATIVE_INFINITY'],_0x3f36e9,[],_0x1c0f5f);}[_0x2c6f('0x59')](_0x2f9921,_0x266d7f){if(this['_lastFrom']===_0x2f9921&&this[_0x2c6f('0xe9')]<=_0x266d7f)this[_0x2c6f('0x6c')][_0x2c6f('0x32')]>0x1&&this[_0x2c6f('0x3f')](this[_0x2c6f('0xe9')]),this[_0x2c6f('0xce')](this[_0x2c6f('0xe9')],_0x266d7f,!0x0);else{if(!this[_0x2c6f('0x6c')]['has'](_0x2f9921)){const _0x151374=this[_0x2c6f('0x40')](_0x2f9921);this[_0x2c6f('0x11')](_0x151374,_0x2f9921,!0x1);}this['_calculateMetaData'](_0x2f9921,_0x266d7f,!0x0);}return this['_lastFrom']=_0x2f9921,this[_0x2c6f('0xe9')]=_0x266d7f,this['_getState']();}[_0x2c6f('0xb4')](_0x3e5b03){this['_reset'](),this[_0x2c6f('0x88')]=_0x3e5b03[_0x2c6f('0xa9')],this['_lastTo']=_0x3e5b03['toVersion'];for(const _0x574e56 in _0x3e5b03['diffData']){const _0x18a18f=_0x3e5b03[_0x2c6f('0xc9')][_0x574e56][_0x2c6f('0xea')],_0x472861=_0x165835(_0x3e5b03[_0x2c6f('0xc9')][_0x574e56][_0x2c6f('0x9f')])||{},_0x501dfc=this[_0x2c6f('0xd4')](_0x3e5b03['diffData'][_0x574e56]['deletions']);_0x501dfc['rootName']=_0x574e56,_0x501dfc[_0x2c6f('0x2d')]=!_0x18a18f||!_0x18a18f['isAttached'],_0x501dfc[_0x2c6f('0x67')]=()=>_0x501dfc[_0x2c6f('0x2d')],this[_0x2c6f('0x2a')][_0x2c6f('0xb3')](_0x574e56,_0x501dfc),this[_0x2c6f('0xa')]['set'](_0x574e56,_0x472861),_0x18a18f&&this[_0x2c6f('0xb0')][_0x2c6f('0xb3')](_0x574e56,_0x18a18f);const _0x5bd5dd=this[_0x2c6f('0x14')](_0x501dfc);this[_0x2c6f('0x7b')][_0x2c6f('0xb3')](_0x574e56,_0x5bd5dd);for(const [_0x59f937,_0x394c53]of _0x501dfc['markers']){if(!_0x59f937[_0x2c6f('0xc1')](_0x2c6f('0xa7')))continue;const _0xdd825f=_0x59f937[_0x2c6f('0x4a')](':')[0x2];for(const _0x1c25bd of _0x394c53[_0x2c6f('0x90')]({'singleCharacters':!0x0})){const _0x304ae1=this[_0x2c6f('0x3b')](_0x1c25bd),_0x4c1ac9=_0x2c6f('0x81')==_0x1c25bd[_0x2c6f('0x6b')]?_0x1c25bd['previousPosition']['path']['slice'](0x0,-0x1):_0x1c25bd['previousPosition'][_0x2c6f('0x3d')],_0x58b780=_0x5bd5dd[_0x2c6f('0x4e')](_0x4c1ac9)['getAttribute'](_0x304ae1);this['_touched'][_0x2c6f('0xb3')](_0x58b780,{'userId':_0xdd825f});}}}this[_0x2c6f('0x3')]=this[_0x2c6f('0xcb')];const _0x402e48=[...Array(this[_0x2c6f('0xcb')])['keys']()][_0x2c6f('0x92')](0x1)[_0x2c6f('0x77')](_0x5ef6c2=>!this[_0x2c6f('0x71')][_0x2c6f('0xe7')](_0x5ef6c2));let _0x4bdd10=0x0;const _0xa25e47=new Map();for(const _0x53f3e4 in _0x3e5b03[_0x2c6f('0xc9')]){const _0x3ea9f6=_0x3e5b03[_0x2c6f('0xc9')][_0x53f3e4][_0x2c6f('0xea')],_0x11f9cf=_0x165835(_0x3e5b03[_0x2c6f('0xc9')][_0x53f3e4][_0x2c6f('0x65')])||{},_0x2e66a5=this['_makeModelFromViewString'](_0x3e5b03[_0x2c6f('0xc9')][_0x53f3e4][_0x2c6f('0x85')]);_0x2e66a5[_0x2c6f('0x21')]=_0x53f3e4,_0x2e66a5['_isAttached']=!_0x3ea9f6||_0x3ea9f6[_0x2c6f('0x67')],_0x2e66a5['isAttached']=()=>_0x2e66a5[_0x2c6f('0x2d')],this[_0x2c6f('0x33')][_0x2c6f('0xb3')](_0x53f3e4,_0x2e66a5),this[_0x2c6f('0xb2')][_0x2c6f('0xb3')](_0x53f3e4,_0x11f9cf);const _0x749c26=this[_0x2c6f('0x14')](_0x2e66a5,Number[_0x2c6f('0x61')]);this[_0x2c6f('0x95')][_0x2c6f('0xb3')](_0x53f3e4,_0x749c26),_0xa25e47[_0x2c6f('0xb3')](_0x53f3e4,_0x2e66a5['isAttached']()?_0x11f9cf:{});for(const [_0x3d5211,_0x5e3926]of _0x2e66a5[_0x2c6f('0xb')]){if(!_0x3d5211['startsWith'](_0x2c6f('0xa7')))continue;const _0x2a614=_0x3d5211[_0x2c6f('0x4a')](':')[0x2];for(const _0x32f5e6 of _0x5e3926[_0x2c6f('0x90')]({'singleCharacters':!0x0})){const _0x43ec68=this['_getVidAttributeName'](_0x32f5e6),_0x12ff7e=this[_0x2c6f('0xcb')]++,_0x4159d7=_0x2c6f('0x81')==_0x32f5e6[_0x2c6f('0x6b')]?_0x32f5e6[_0x2c6f('0x52')]['path']['slice'](0x0,-0x1):_0x32f5e6[_0x2c6f('0x52')][_0x2c6f('0x3d')];_0x749c26[_0x2c6f('0x4e')](_0x4159d7)[_0x2c6f('0xb9')](_0x43ec68,_0x12ff7e),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x12ff7e,{'userId':_0x2a614});}}for(const _0x8fe0b of this[_0x2c6f('0x97')][_0x2c6f('0x1a')]['createRangeIn'](_0x2e66a5)[_0x2c6f('0x90')]({'singleCharacters':!0x0})){const _0x523715=this[_0x2c6f('0x3b')](_0x8fe0b),_0x1fd034=_0x2c6f('0x81')==_0x8fe0b[_0x2c6f('0x6b')]?_0x8fe0b[_0x2c6f('0x52')][_0x2c6f('0x3d')][_0x2c6f('0x92')](0x0,-0x1):_0x8fe0b[_0x2c6f('0x52')][_0x2c6f('0x3d')],_0x405650=_0x749c26[_0x2c6f('0x4e')](_0x1fd034);_0x405650[_0x2c6f('0xae')](_0x523715)>0x0||_0x405650[_0x2c6f('0xb9')](_0x523715,_0x402e48[_0x4bdd10++]);}for(const [_0x390e02,_0xf17ef5]of _0x2e66a5[_0x2c6f('0xb')])_0x390e02[_0x2c6f('0xc1')](_0x2c6f('0xa7'))||this[_0x2c6f('0x31')][_0x2c6f('0xb3')](_0x390e02,_0xf17ef5);}const _0x39bf54=G('$graveyard');this[_0x2c6f('0x2a')][_0x2c6f('0xb3')](_0x2c6f('0xe2'),_0x39bf54),this[_0x2c6f('0x7b')][_0x2c6f('0xb3')]('$graveyard',this[_0x2c6f('0x14')](_0x39bf54,0x1));const _0x17df60=G('$graveyard');this[_0x2c6f('0x33')][_0x2c6f('0xb3')](_0x2c6f('0xe2'),_0x17df60),this[_0x2c6f('0x95')][_0x2c6f('0xb3')](_0x2c6f('0xe2'),this[_0x2c6f('0x14')](_0x17df60,0x1));const _0x48b9a5=Array[_0x2c6f('0xee')](this[_0x2c6f('0x33')])[_0x2c6f('0x37')](([_0x181eea,_0x31fc8c])=>[_0x181eea,q(_0x31fc8c)]);this[_0x2c6f('0xa6')](this[_0x2c6f('0xe9')],_0x48b9a5,this[_0x2c6f('0x31')],_0xa25e47);}[_0x2c6f('0xd4')](_0x4e0f0e){const _0x50fa9c=JSON[_0x2c6f('0x6f')](_0x4e0f0e),_0xf01ba1=this[_0x2c6f('0x97')][_0x2c6f('0x28')][_0x2c6f('0x12')][_0x2c6f('0x36')],_0x6dbbab=new _0x4ab740(_0xf01ba1,_0x50fa9c['map'](_0x198e27=>J(_0x198e27,this['editor'])));return this[_0x2c6f('0x97')]['data'][_0x2c6f('0x8e')](_0x6dbbab);}[_0x2c6f('0xa6')](_0x2c6103,_0x4f052f,_0x156f66,_0x52ccf2){const _0x4a4756=new Map(_0x4f052f),_0x1bb5c6=new Map(_0x165835(_0x52ccf2)),_0x5f3ac5=new Map();for(const [_0x3d239e,_0x126a3c]of _0x156f66)_0x5f3ac5[_0x2c6f('0xb3')](_0x3d239e,{'start':_0x126a3c[_0x2c6f('0x93')]['clone'](),'end':_0x126a3c[_0x2c6f('0x78')]['clone'](),'rootName':_0x126a3c[_0x2c6f('0xfe')][_0x2c6f('0x21')]});this[_0x2c6f('0x6c')][_0x2c6f('0xb3')](_0x2c6103,{'roots':_0x4a4756,'markers':_0x5f3ac5,'rootsAttributes':_0x1bb5c6});}[_0x2c6f('0x3f')](_0x2ed098){this[_0x2c6f('0x6c')][_0x2c6f('0x4')](_0x2ed098);}[_0x2c6f('0x55')](){this[_0x2c6f('0x82')](),this[_0x2c6f('0x88')]=-0x1,this['_lastTo']=-0x1,this[_0x2c6f('0x6c')][_0x2c6f('0x7f')](),this[_0x2c6f('0xc8')](this[_0x2c6f('0x96')]);}['_reset'](){this['_touched'][_0x2c6f('0x7f')](),this[_0x2c6f('0x1')][_0x2c6f('0x7f')](),this[_0x2c6f('0xb0')][_0x2c6f('0x7f')](),this[_0x2c6f('0x33')][_0x2c6f('0x7f')](),this['_diffRootsAttributes']['clear'](),this[_0x2c6f('0x2a')][_0x2c6f('0x7f')](),this['_baseRootsAttributes'][_0x2c6f('0x7f')](),this[_0x2c6f('0x95')]['clear'](),this[_0x2c6f('0x7b')][_0x2c6f('0x7f')](),this[_0x2c6f('0x31')][_0x2c6f('0x7f')](),this[_0x2c6f('0xcb')]=0x1,this['_startingRevisionId']=this[_0x2c6f('0xcb')];}[_0x2c6f('0x14')](_0x17f611,_0x1e99b7=null){let _0x5bdd73=null;_0x17f611['is']('documentFragment')||(_0x5bdd73=new _0x2bfd72(_0x17f611['name'],{'vid_start':null===_0x1e99b7?this['_revisionId']++:_0x1e99b7++}));const _0x5ce822=[];for(const _0x7278e9 of _0x17f611[_0x2c6f('0x101')]())if(_0x7278e9['is']('element')){_0x5ce822[_0x2c6f('0x42')](this[_0x2c6f('0x14')](_0x7278e9,_0x1e99b7));const _0x5b02a0=_0x5ce822[_0x5ce822['length']-0x1];null!==_0x1e99b7&&(_0x1e99b7=_0x5b02a0['is'](_0x2c6f('0x48'),_0x2c6f('0x43'))?_0x5b02a0[_0x2c6f('0xae')](_0x2c6f('0xec'))+0x1:_0x5b02a0[_0x2c6f('0xae')](_0x2c6f('0xf7'))+0x1);}else for(let _0x368c94=0x0;_0x368c94<_0x7278e9[_0x2c6f('0x103')];_0x368c94++)_0x5ce822[_0x2c6f('0x42')](new _0x2bfd72('$text',{'vid':null===_0x1e99b7?this[_0x2c6f('0xcb')]++:_0x1e99b7++}));if(_0x17f611['is'](_0x2c6f('0xdd'))){const _0x5d5abb=G(_0x17f611['rootName']);return _0x5d5abb['_insertChild'](0x0,_0x5ce822),_0x5d5abb;}return _0x5bdd73[_0x2c6f('0xb9')]('vid_end',null===_0x1e99b7?this[_0x2c6f('0xcb')]++:_0x1e99b7++),_0x5bdd73[_0x2c6f('0xfc')](0x0,_0x5ce822),_0x5bdd73;}['_calculateMetaData'](_0x4bf6c3,_0xaf9b13,_0x372e61){this['_reset']();const {roots:_0x37762a,markers:_0x3305b6,rootsAttributes:_0x243d35}=this[_0x2c6f('0x6c')][_0x2c6f('0x34')](_0x4bf6c3);this[_0x2c6f('0x2a')]=new Map(_0x37762a),this['_baseRootsAttributes']=new Map(_0x165835(_0x243d35));for(const [_0x56513d,_0x14cf44]of this[_0x2c6f('0x2a')])if('$graveyard'!==_0x56513d&&(this['_diffRoots']['set'](_0x56513d,q(_0x14cf44)),this[_0x2c6f('0xb2')]=new Map(_0x165835(_0x243d35)),_0x372e61)){const _0x2940fe=this[_0x2c6f('0xcb')];this['_idsRoots'][_0x2c6f('0xb3')](_0x56513d,this[_0x2c6f('0x14')](_0x14cf44)),this[_0x2c6f('0x7b')]['set'](_0x56513d,this['_makeIdsRoot'](_0x14cf44,_0x2940fe));}this[_0x2c6f('0x3')]=this[_0x2c6f('0xcb')],this['_diffRoots']['set'](_0x2c6f('0xe2'),q(this[_0x2c6f('0x2a')]['get']('$graveyard'))),_0x372e61&&this[_0x2c6f('0x95')][_0x2c6f('0xb3')]('$graveyard',this[_0x2c6f('0x14')](this['_baseRoots'][_0x2c6f('0x34')](_0x2c6f('0xe2'))));for(const [_0x3237bc,_0x413c94]of _0x3305b6){const _0x12a91e=this['_baseRoots'][_0x2c6f('0x34')](_0x413c94[_0x2c6f('0x21')]),_0x5b1a80=this[_0x2c6f('0x33')][_0x2c6f('0x34')](_0x413c94['rootName']),_0x1cbed3=new _0x20270a(this[_0x2c6f('0xf2')](_0x413c94['start'],_0x12a91e),this[_0x2c6f('0xf2')](_0x413c94[_0x2c6f('0x78')],_0x12a91e)),_0x9d23ca=this['_fixRange'](_0x1cbed3,_0x5b1a80);_0x12a91e['markers']['set'](_0x3237bc,_0x1cbed3),this['_markers'][_0x2c6f('0xb3')](_0x3237bc,_0x9d23ca);}this[_0x2c6f('0xce')](_0x4bf6c3,_0xaf9b13,_0x372e61);}[_0x2c6f('0xce')](_0x550d19,_0x126e33,_0x2a81f8){for(const _0x5b698a of this[_0x2c6f('0x96')][_0x2c6f('0xa4')](_0x550d19,_0x126e33))this[_0x2c6f('0xe5')](_0x5b698a,_0x2a81f8);for(const _0x36f3f0 of this[_0x2c6f('0x33')]['values']())_0x36f3f0['markers'][_0x2c6f('0x7f')]();for(const [_0x2aa728,_0x44d65f]of this[_0x2c6f('0x31')]){this[_0x2c6f('0x33')]['get'](_0x44d65f[_0x2c6f('0xfe')]['rootName'])[_0x2c6f('0xb')][_0x2c6f('0xb3')](_0x2aa728,_0x44d65f[_0x2c6f('0x6')]());}const _0x599a29=new Map(),_0x5a34a2=new Map();for(const [_0x1f9101,_0x5172b2]of this[_0x2c6f('0x33')])_0x599a29[_0x2c6f('0xb3')](_0x1f9101,q(_0x5172b2)),_0x5a34a2[_0x2c6f('0xb3')](_0x1f9101,this[_0x2c6f('0xb2')][_0x2c6f('0x34')](_0x1f9101));this[_0x2c6f('0xa6')](_0x126e33,_0x599a29,this['_markers'],_0x5a34a2);}['_getPreviousFrom'](_0x211aee){const _0x5aaf63=Array[_0x2c6f('0xee')](this['_savedMetaData'][_0x2c6f('0x87')]());_0x5aaf63[_0x2c6f('0xa3')]((_0x3005ac,_0x5e7955)=>_0x3005ac-_0x5e7955),_0x5aaf63[_0x2c6f('0xcf')]();for(const _0x584816 of _0x5aaf63)if(_0x584816<_0x211aee)return _0x584816;return Number[_0x2c6f('0x61')];}['_copyMarkers'](_0x4b431b,_0x5d0927){const _0x3014da=Array[_0x2c6f('0xee')](_0x5d0927[_0x2c6f('0xb')])[_0x2c6f('0x37')](([_0x3675f9,_0x15a087])=>[_0x3675f9,this[_0x2c6f('0x79')](_0x15a087,_0x4b431b)]);_0x4b431b[_0x2c6f('0xb')]=new Map(_0x3014da);}[_0x2c6f('0x9e')](_0x1b3d8b){for(const _0x4f1d89 of this['_markers'][_0x2c6f('0x69')]()){const _0x5ceb6a=_0x4f1d89[_0x2c6f('0xe')](_0x1b3d8b),_0xd6287d=_0x20270a[_0x2c6f('0xe8')](_0x5ceb6a);_0x4f1d89['start']=_0xd6287d[_0x2c6f('0x93')],_0x4f1d89['end']=_0xd6287d[_0x2c6f('0x78')];}}[_0x2c6f('0xe5')](_0x426d21,_0x419662){if(_0x2c6f('0x4f')==_0x426d21[_0x2c6f('0x6b')]||'detachRoot'==_0x426d21[_0x2c6f('0x6b')])return void this[_0x2c6f('0x35')](_0x426d21,_0x419662);if(_0x2c6f('0xfd')==_0x426d21[_0x2c6f('0x6b')]){const _0x3bc45c=_0x426d21[_0x2c6f('0xff')][_0x2c6f('0xfe')][_0x2c6f('0x21')];this[_0x2c6f('0x33')][_0x2c6f('0xe7')](_0x3bc45c)||(this['_diffRoots'][_0x2c6f('0xb3')](_0x3bc45c,G(_0x3bc45c,!0x0)),this[_0x2c6f('0xb2')][_0x2c6f('0xb3')](_0x3bc45c,{}),_0x419662&&this[_0x2c6f('0x95')][_0x2c6f('0xb3')](_0x3bc45c,G(_0x3bc45c,!0x0)));}else{if('addRootAttribute'==_0x426d21[_0x2c6f('0x6b')]||_0x2c6f('0xeb')==_0x426d21[_0x2c6f('0x6b')]||'changeRootAttribute'==_0x426d21[_0x2c6f('0x6b')])return void this['_handleRootAttributeOperation'](_0x426d21);}const _0x2573e0=this[_0x2c6f('0x102')](_0x426d21,this[_0x2c6f('0x33')]);if(_0x2c6f('0xb6')!==_0x426d21[_0x2c6f('0x6b')]&&(_0x2573e0[_0x2c6f('0x1c')](),this[_0x2c6f('0x9e')](_0x2573e0)),_0x419662)switch(_0x2573e0[_0x2c6f('0x6b')]){case _0x2c6f('0xfd'):this['_handleInsertOperation'](_0x426d21);break;case _0x2c6f('0x63'):case _0x2c6f('0xaa'):case'reinsert':this['_handleMoveOperation'](_0x426d21);break;case _0x2c6f('0x76'):this[_0x2c6f('0xd3')](_0x426d21);break;case _0x2c6f('0x4a'):this[_0x2c6f('0x50')](_0x426d21);break;case'marker':this[_0x2c6f('0x9b')](_0x426d21);}}[_0x2c6f('0x102')](_0x49ddf9,_0x35f676){const _0x25b19e=_0x49ddf9[_0x2c6f('0x6')]();return _0x25b19e['_authorId']=_0x49ddf9['_authorId'],this[_0x2c6f('0x2')](_0x25b19e,_0x35f676),_0x25b19e;}['_getBaseVids'](_0x258614){return _0x258614[_0x2c6f('0x37')](_0x58f04a=>{const _0x16cb2a=this['_getVidAttributeName'](_0x58f04a);return Number(_0x58f04a['item'][_0x2c6f('0xae')](_0x16cb2a));});}[_0x2c6f('0xbe')](_0x556e5b,_0x7c3565){if(_0x556e5b['is'](_0x2c6f('0x48'),'$text'))_0x7c3565[_0x2c6f('0x42')]({'item':_0x556e5b,'type':_0x2c6f('0x0')});else{_0x556e5b['is'](_0x2c6f('0x48'))&&_0x7c3565[_0x2c6f('0x42')]({'item':_0x556e5b,'type':_0x2c6f('0xfa')});for(const _0x778c8c of _0x556e5b[_0x2c6f('0x101')]())this[_0x2c6f('0xbe')](_0x778c8c,_0x7c3565);_0x556e5b['is'](_0x2c6f('0x48'))&&_0x7c3565['push']({'item':_0x556e5b,'type':'elementEnd'});}return _0x7c3565;}[_0x2c6f('0x9c')](){const _0x4f5a91=new Map(this[_0x2c6f('0x71')]),_0x2188ca=new Map(_0x4f5a91),_0xabdbb9=new Map(),_0x22e47d={'insertions':{},'deletions':{}},_0x302e79={'insertions':{},'deletions':{}},_0x897ec9=new Map(),_0x1d8eb0=new Set([...this[_0x2c6f('0x2a')][_0x2c6f('0x87')](),...this['_diffRoots']['keys']()]);_0x1d8eb0['delete']('$graveyard');for(const _0x5c4207 of _0x1d8eb0){const _0x51eda1=this[_0x2c6f('0x33')][_0x2c6f('0x34')](_0x5c4207)||G(_0x5c4207,!0x1),_0x260beb=this[_0x2c6f('0x2a')][_0x2c6f('0x34')](_0x5c4207)||G(_0x5c4207,!0x1);_0x51eda1[_0x2c6f('0x67')]()||_0x260beb[_0x2c6f('0x67')]()?(_0x22e47d[_0x2c6f('0x85')][_0x5c4207]=q(_0x51eda1),_0x22e47d[_0x2c6f('0x89')][_0x5c4207]=q(_0x260beb),this[_0x2c6f('0x45')](_0x22e47d[_0x2c6f('0x89')][_0x5c4207],_0x260beb),this['_copyMarkers'](_0x22e47d['insertions'][_0x5c4207],_0x51eda1),_0x302e79['insertions'][_0x5c4207]=this[_0x2c6f('0xbe')](this[_0x2c6f('0x95')][_0x2c6f('0x34')](_0x5c4207),[]),_0x302e79[_0x2c6f('0x89')][_0x5c4207]=this[_0x2c6f('0xbe')](this['_baseIdsRoots'][_0x2c6f('0x34')](_0x5c4207)||G(_0x5c4207,!0x1),[])):_0x1d8eb0['delete'](_0x5c4207);}for(const _0x466399 of _0x1d8eb0){const _0x5188fe=_0x302e79[_0x2c6f('0x85')][_0x466399];for(const _0x507941 of _0x5188fe){const _0x3b49ba=this[_0x2c6f('0x3b')](_0x507941),_0x3cd8fe=_0x507941[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x3b49ba);_0x2188ca['delete'](_0x3cd8fe),_0x3cd8fe>=this['_startingRevisionId']&&_0xabdbb9['set'](_0x3cd8fe,_0x4f5a91[_0x2c6f('0x34')](_0x3cd8fe));}}for(const _0x4d44e8 of _0x1d8eb0){const _0x2df4a1=_0x302e79[_0x2c6f('0x85')][_0x4d44e8],_0x14e8f5=this[_0x2c6f('0x7c')](_0x302e79[_0x2c6f('0x89')][_0x4d44e8]);let _0x566fa8=0x0;for(const _0x59d1f5 of _0x2df4a1){const _0x18fe94=this['_getVidAttributeName'](_0x59d1f5),_0x3d5ce3=_0x59d1f5['item'][_0x2c6f('0xae')](_0x18fe94);if(!_0xabdbb9[_0x2c6f('0xe7')](_0x3d5ce3)&&!_0x897ec9[_0x2c6f('0xe7')](_0x3d5ce3)){if(_0x2188ca['has'](_0x3d5ce3))_0x566fa8++;else{if(_0x3d5ce3!=_0x14e8f5[_0x566fa8]){const _0x1f52ab=_0x4f5a91[_0x2c6f('0x34')](_0x3d5ce3)||_0x4f5a91['get'](_0x14e8f5[_0x566fa8]);for(;_0x3d5ce3!=_0x14e8f5[_0x566fa8];)_0x2188ca[_0x2c6f('0xe7')](_0x14e8f5[_0x566fa8])||(_0x897ec9['set'](_0x14e8f5[_0x566fa8],_0x1f52ab),_0x4f5a91[_0x2c6f('0xb3')](_0x14e8f5[_0x566fa8],_0x1f52ab)),_0x566fa8++;}_0x566fa8++;}}}}for(const _0x4e9af7 of _0x1d8eb0){const _0x532564=_0x302e79[_0x2c6f('0x85')][_0x4e9af7];for(const _0x433225 of _0x532564){const _0x37e7a5=this[_0x2c6f('0x3b')](_0x433225),_0x14e2ec=_0x433225[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x37e7a5);if(_0x897ec9['has'](_0x14e2ec)){const _0x8b072=_0x897ec9[_0x2c6f('0x34')](_0x14e2ec);_0x2188ca[_0x2c6f('0xe7')](_0x14e2ec)||_0x2188ca[_0x2c6f('0xb3')](_0x14e2ec,{..._0x8b072}),_0xabdbb9[_0x2c6f('0xb3')](_0x14e2ec,{..._0x8b072});}}}for(const _0xc116bc of _0x2188ca[_0x2c6f('0x87')]())_0xc116bc>=this['_startingRevisionId']&&_0x2188ca[_0x2c6f('0x4')](_0xc116bc);const _0x4f4d07=new Map();for(const _0x172098 of _0x1d8eb0){let _0x3654cf=_0x302e79['insertions'][_0x172098];for(const _0x8863cf of _0x3654cf)if(_0x8863cf['item']['is'](_0x2c6f('0x48'),_0x2c6f('0x6e'))){const _0x1d7881=this[_0x2c6f('0x3b')](_0x8863cf),_0x22254c=_0x8863cf[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x1d7881);if(_0xabdbb9[_0x2c6f('0xe7')](_0x22254c)){const _0x3fc460=_0x8863cf[_0x2c6f('0x68')]['parent'][_0x2c6f('0xc6')][_0x2c6f('0xae')](_0x2c6f('0x5f')),_0x2a3599=_0x4f4d07[_0x2c6f('0x34')](_0x3fc460)||new Set();_0x2a3599[_0x2c6f('0xd2')](_0xabdbb9[_0x2c6f('0x34')](_0x22254c)[_0x2c6f('0xcd')]),_0x4f4d07[_0x2c6f('0xb3')](_0x3fc460,_0x2a3599);}}_0x3654cf=_0x302e79['deletions'][_0x172098];for(const _0x251c92 of _0x3654cf)if(_0x251c92[_0x2c6f('0x68')]['is'](_0x2c6f('0x48'),_0x2c6f('0x6e'))){const _0x207409=this['_getVidAttributeName'](_0x251c92),_0x144f6c=_0x251c92[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x207409);if(_0x2188ca[_0x2c6f('0xe7')](_0x144f6c)){const _0x2ac17f=_0x251c92[_0x2c6f('0x68')][_0x2c6f('0xc6')][_0x2c6f('0xc6')]['getAttribute']('vid_start'),_0x34c1b8=_0x4f4d07[_0x2c6f('0x34')](_0x2ac17f)||new Set();_0x34c1b8['add'](_0x2188ca[_0x2c6f('0x34')](_0x144f6c)[_0x2c6f('0xcd')]),_0x4f4d07[_0x2c6f('0xb3')](_0x2ac17f,_0x34c1b8);}}for(const _0x44941a of _0x4f4d07[_0x2c6f('0x87')]())(_0xabdbb9[_0x2c6f('0xe7')](_0x44941a)||_0x2188ca['has'](_0x44941a))&&_0x4f4d07[_0x2c6f('0x4')](_0x44941a);}for(const _0x20c2e6 of _0x1d8eb0){const _0x12d375=_0x302e79['insertions'][_0x20c2e6];let _0x5be0c6=null,_0x47c4f1=null;for(const _0x1db0ed of _0x12d375){const _0x3347c6=this[_0x2c6f('0x3b')](_0x1db0ed),_0x2e06b1=_0x1db0ed[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x3347c6),_0xa64ee8=_0x4f4d07[_0x2c6f('0x34')](_0x2e06b1);_0xa64ee8&&_0x2c6f('0xfa')==_0x1db0ed[_0x2c6f('0x6b')]&&(_0x5be0c6=Array[_0x2c6f('0xee')](_0xa64ee8)[0x0],_0x47c4f1=_0x1db0ed[_0x2c6f('0x68')][_0x2c6f('0xae')](_0x2c6f('0xf7'))),_0x5be0c6&&(_0x2188ca['set'](_0x2e06b1,{'userId':_0x5be0c6}),_0xabdbb9[_0x2c6f('0xb3')](_0x2e06b1,{'userId':_0x5be0c6})),_0x2e06b1==_0x47c4f1&&(_0x5be0c6=null,_0x47c4f1=null);}}const _0x1fae6d={},_0x4cb5ec=new Set();for(const _0x5a80cb of _0x1d8eb0){const _0x498405=_0x22e47d[_0x2c6f('0x89')][_0x5a80cb],_0x4ed96e=_0x22e47d[_0x2c6f('0x85')][_0x5a80cb];for(const {userId:_0x24fa48}of this[_0x2c6f('0x1')][_0x2c6f('0x69')]())null!==_0x24fa48&&_0x4cb5ec[_0x2c6f('0xd2')](_0x24fa48);for(const {userId:_0x18213b}of this[_0x2c6f('0xb0')][_0x2c6f('0x69')]())null!==_0x18213b&&_0x4cb5ec['add'](_0x18213b);this[_0x2c6f('0xf8')](_0x4ed96e,_0x302e79[_0x2c6f('0x85')][_0x5a80cb],_0xabdbb9,_0x2c6f('0xde'),_0x4cb5ec),this[_0x2c6f('0xf8')](_0x498405,_0x302e79[_0x2c6f('0x89')][_0x5a80cb],_0x2188ca,_0x2c6f('0x7a'),_0x4cb5ec),_0x1fae6d[_0x5a80cb]={'insertions':this[_0x2c6f('0x39')](_0x4ed96e),'deletions':this[_0x2c6f('0x39')](_0x498405),'attachChange':this[_0x2c6f('0xb0')][_0x2c6f('0x34')](_0x5a80cb)||null,'attributesBefore':_0x165835(this['_baseRootsAttributes'][_0x2c6f('0x34')](_0x5a80cb))||{},'attributesAfter':_0x165835(this[_0x2c6f('0xb2')]['get'](_0x5a80cb))};}return{'diffData':_0x1fae6d,'authorsIds':Array['from'](_0x4cb5ec)};}['_processRootBeforeSave'](_0x3428a4){for(const [,_0x3a8701]of _0x3428a4[_0x2c6f('0xb')]){const _0x46ec8b=_0x3a8701[_0x2c6f('0x93')][_0x2c6f('0xed')]()[_0x2c6f('0x77')](_0x5ab56e=>_0x2c6f('0x6e')==_0x5ab56e[_0x2c6f('0x6d')]);for(const _0x37e8d5 of _0x46ec8b)0x1==_0x37e8d5[_0x2c6f('0xe4')]&&_0x37e8d5[_0x2c6f('0x106')](0x0)['is']('element',_0x2c6f('0xcc'))&&_0x37e8d5[_0x2c6f('0x106')](0x0)[_0x2c6f('0xb9')](_0x2c6f('0xfb'),!0x0);}}['_prepareViewToSave'](_0x35e761){this[_0x2c6f('0xc7')](_0x35e761);const _0x16f09f=this[_0x2c6f('0x97')][_0x2c6f('0x83')]['toView'](_0x35e761,{}),_0x318e3f=Array[_0x2c6f('0xee')](_0x16f09f[_0x2c6f('0x101')]())[_0x2c6f('0x37')](_0x204f35=>this['_getViewJson'](_0x204f35));return JSON[_0x2c6f('0x5b')](_0x318e3f);}[_0x2c6f('0x8')](_0x333da0){if(_0x333da0['is'](_0x2c6f('0x43')))return _0x333da0['data'];{const _0x1fc7a9=_0x333da0;return{'type':Object['keys'](B)[_0x2c6f('0x10')](_0x1ecc85=>_0x333da0 instanceof B[_0x1ecc85]),'name':_0x1fc7a9['name'],'attributes':Array[_0x2c6f('0xee')](_0x1fc7a9['getAttributes']()),'children':Array['from'](_0x1fc7a9[_0x2c6f('0x101')]())[_0x2c6f('0x37')](_0x3b3946=>this[_0x2c6f('0x8')](_0x3b3946))};}}['_markChanges'](_0x54d606,_0x426126,_0x4fafbe,_0x4c6fa4,_0x1abde9){let _0x5a7b2b=null,_0x18193a=null,_0x1ae484=0x0;const _0x46c855=this[_0x2c6f('0x97')][_0x2c6f('0x1a')];for(let _0x3bf376=0x0;_0x3bf376<_0x426126[_0x2c6f('0xda')];_0x3bf376++){const _0x40d22a=this[_0x2c6f('0x3b')](_0x426126[_0x3bf376]),_0x859e78=_0x426126[_0x3bf376][_0x2c6f('0x68')][_0x2c6f('0xae')](_0x40d22a),_0xfd0ac6=_0x4fafbe[_0x2c6f('0x34')](_0x859e78),_0x59d275=_0x3bf376==_0x426126['length']-0x1;(!_0x5a7b2b&&_0xfd0ac6&&(_0x5a7b2b=_0xfd0ac6,_0x18193a=_0x426126[_0x3bf376]),_0x5a7b2b&&(!_0xfd0ac6||_0xfd0ac6[_0x2c6f('0xcd')]!=_0x5a7b2b[_0x2c6f('0xcd')]))&&(_0x5dd1d4(_0xfd0ac6,L(_0x18193a,_0x54d606,_0x46c855),L(_0x426126[_0x3bf376],_0x54d606,_0x46c855)),_0x5a7b2b=_0xfd0ac6||null,_0x18193a=_0xfd0ac6?_0x426126[_0x3bf376]:null),_0x5a7b2b&&_0x59d275&&_0x5dd1d4(_0xfd0ac6,L(_0x18193a,_0x54d606,_0x46c855),W(_0x426126[_0x3bf376],_0x54d606,_0x46c855));}function _0x5dd1d4(_0xbb6cdb,_0x5b7393,_0xb61c5){const _0x3ffb30=_0x5a7b2b['userId'],_0x1db64c='revision:'+_0x4c6fa4+':'+_0x3ffb30+':'+_0x1ae484++,_0x296e1a=_0x46c855[_0x2c6f('0x8a')](_0x5b7393,_0xb61c5);_0x54d606[_0x2c6f('0xb')]['set'](_0x1db64c,_0x296e1a),null!==_0x3ffb30&&_0x1abde9['add'](_0x3ffb30);}}[_0x2c6f('0x3b')](_0x413960){switch(_0x413960[_0x2c6f('0x6b')]){case _0x2c6f('0xfa'):return _0x2c6f('0x5f');case _0x2c6f('0x81'):return _0x2c6f('0xf7');default:return'vid';}}[_0x2c6f('0x2')](_0x1dc0af,_0x348db3){_0x1dc0af[_0x2c6f('0x9a')]=null;for(const _0x292573 in _0x1dc0af){const _0x4c0439=_0x1dc0af[_0x292573];if(_0x4c0439 instanceof _0x4f2d96){const _0x19ba37=_0x348db3['get'](_0x4c0439[_0x2c6f('0xfe')]['rootName']);_0x1dc0af[_0x292573]=this['_fixPosition'](_0x4c0439,_0x19ba37);}if(_0x4c0439 instanceof _0x20270a){const _0x5c23ce=_0x348db3[_0x2c6f('0x34')](_0x4c0439[_0x2c6f('0xfe')][_0x2c6f('0x21')]);_0x1dc0af[_0x292573]=this[_0x2c6f('0x79')](_0x4c0439,_0x5c23ce);}_0x2c6f('0xfe')===_0x292573&&(_0x1dc0af[_0x2c6f('0xfe')]=_0x348db3[_0x2c6f('0x34')](_0x1dc0af[_0x2c6f('0xfe')][_0x2c6f('0x21')]));}}[_0x2c6f('0x79')](_0x330a7f,_0x46013e){return this[_0x2c6f('0x97')][_0x2c6f('0x1a')][_0x2c6f('0x8a')](this[_0x2c6f('0xf2')](_0x330a7f[_0x2c6f('0x93')],_0x46013e),this[_0x2c6f('0xf2')](_0x330a7f[_0x2c6f('0x78')],_0x46013e));}[_0x2c6f('0xf2')](_0x17cff9,_0x34a530){return this[_0x2c6f('0x97')]['model'][_0x2c6f('0x70')](_0x34a530,_0x17cff9[_0x2c6f('0x3d')],_0x17cff9[_0x2c6f('0x84')]);}['_handleInsertOperation'](_0x377205){const _0x588a0b=this['_idsRoots']['get'](_0x377205[_0x2c6f('0xff')][_0x2c6f('0xfe')]['rootName']),_0x13bee1=this[_0x2c6f('0xf2')](_0x377205[_0x2c6f('0xff')],_0x588a0b),_0x1f91f1=null===_0x377205['_authorId']?null:_0x377205[_0x2c6f('0x30')]||this[_0x2c6f('0x97')]['plugins'][_0x2c6f('0x34')](_0x2c6f('0x17'))['me']['id'],_0x5c34bd=_0x13bee1[_0x2c6f('0xc6')],_0x2858c7=this[_0x2c6f('0xcb')],_0x20a298=[];for(const _0x56e7be of _0x377205['nodes'])if(_0x56e7be['is'](_0x2c6f('0x48')))_0x20a298['push'](this[_0x2c6f('0x14')](_0x56e7be));else for(let _0x1eeb0c=0x0;_0x1eeb0c<_0x56e7be[_0x2c6f('0x103')];_0x1eeb0c++)_0x20a298[_0x2c6f('0x42')](new _0x2bfd72(_0x2c6f('0x43'),{'vid':this[_0x2c6f('0xcb')]++}));const _0x25e3c3=this['_revisionId'];for(let _0x2b1c38=_0x2858c7;_0x2b1c38<_0x25e3c3;_0x2b1c38++)this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x2b1c38,{'userId':_0x1f91f1});_0x5c34bd[_0x2c6f('0xfc')](_0x13bee1[_0x2c6f('0x24')],_0x20a298);}['_handleMoveOperation'](_0x163300){(_0x163300=this['_cloneOperation'](_0x163300,this[_0x2c6f('0x95')]))['_execute']();const _0x4ac3a7=null===_0x163300['_authorId']?null:_0x163300[_0x2c6f('0x30')]||this[_0x2c6f('0x97')]['plugins'][_0x2c6f('0x34')](_0x2c6f('0x17'))['me']['id'],_0x263afd=_0x163300[_0x2c6f('0x91')](),_0xd42d9c=_0x263afd[_0x2c6f('0xc6')],_0x423240=_0x263afd['offset'];!function _0x5c555f(_0x48358f,_0x5789a4,_0x4e0fb0,_0x37ac0e){for(let _0x36422d=_0x4e0fb0;_0x36422d<_0x37ac0e;_0x36422d++){const _0x531570=_0x5789a4[_0x2c6f('0x106')](_0x36422d);_0x531570['is']('element',_0x2c6f('0x43'))?_0x48358f[_0x2c6f('0xb3')](_0x531570[_0x2c6f('0xae')](_0x2c6f('0xec')),{'userId':_0x4ac3a7}):(_0x48358f[_0x2c6f('0xb3')](_0x531570[_0x2c6f('0xae')](_0x2c6f('0x5f')),{'userId':_0x4ac3a7}),_0x5c555f(_0x48358f,_0x531570,0x0,_0x531570[_0x2c6f('0xe4')]),_0x48358f[_0x2c6f('0xb3')](_0x531570[_0x2c6f('0xae')](_0x2c6f('0xf7')),{'userId':_0x4ac3a7}));}}(this[_0x2c6f('0x71')],_0xd42d9c,_0x423240,_0x423240+_0x163300[_0x2c6f('0x72')]);}[_0x2c6f('0xd3')](_0x4b8a5a){const _0x177353=null===(_0x4b8a5a=this[_0x2c6f('0x102')](_0x4b8a5a,this['_idsRoots']))[_0x2c6f('0x30')]?null:_0x4b8a5a[_0x2c6f('0x30')]||this[_0x2c6f('0x97')][_0x2c6f('0x56')][_0x2c6f('0x34')]('Users')['me']['id'],_0x88893d=_0x4b8a5a[_0x2c6f('0x47')][_0x2c6f('0xc6')],_0x3c0711=_0x4b8a5a['sourcePosition'][_0x2c6f('0xc6')],_0x455ee9=_0x88893d[_0x2c6f('0xae')]('vid_end'),_0x943870=_0x3c0711[_0x2c6f('0xae')]('vid_start');_0x88893d[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x3c0711['getAttribute'](_0x2c6f('0xf7'))),_0x3c0711['_setAttribute'](_0x2c6f('0xf7'),_0x455ee9),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x943870,{'userId':_0x177353}),this['_touched']['set'](_0x455ee9,{'userId':_0x177353}),_0x4b8a5a[_0x2c6f('0x1c')]();}[_0x2c6f('0x50')](_0x1f3645){const _0x11277b=null===(_0x1f3645=this[_0x2c6f('0x102')](_0x1f3645,this[_0x2c6f('0x95')]))['_authorId']?null:_0x1f3645[_0x2c6f('0x30')]||this[_0x2c6f('0x97')][_0x2c6f('0x56')]['get'](_0x2c6f('0x17'))['me']['id'],_0x547602=_0x1f3645[_0x2c6f('0x8c')],_0x4e3f43=_0x1f3645[_0x2c6f('0xe1')][_0x2c6f('0xc6')];_0x1f3645['_execute']();const _0x532833=_0x4e3f43['getAttribute'](_0x2c6f('0xf7')),_0x247f5d=_0x1f3645[_0x2c6f('0x54')][_0x2c6f('0xad')];if(_0x547602){const _0x1ffd4b=_0x247f5d[_0x2c6f('0xae')](_0x2c6f('0xf7')),_0x10de10=_0x4e3f43[_0x2c6f('0xae')](_0x2c6f('0xf7'));_0x4e3f43[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x1ffd4b),_0x247f5d[_0x2c6f('0xb9')]('vid_end',_0x10de10),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x4e3f43['getAttribute'](_0x2c6f('0xf7')),{'userId':_0x11277b}),this['_touched'][_0x2c6f('0xb3')](_0x247f5d[_0x2c6f('0xae')](_0x2c6f('0x5f')),{'userId':_0x11277b});}else{const _0x4719a1=this[_0x2c6f('0xcb')]++,_0x325cc3=this[_0x2c6f('0xcb')]++;_0x4e3f43[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x4719a1),_0x247f5d[_0x2c6f('0xb9')](_0x2c6f('0x5f'),_0x325cc3),_0x247f5d[_0x2c6f('0xb9')](_0x2c6f('0xf7'),_0x532833),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x4719a1,{'userId':_0x11277b}),this[_0x2c6f('0x71')][_0x2c6f('0xb3')](_0x325cc3,{'userId':_0x11277b});}}[_0x2c6f('0x9b')](_0x2ab684){if(!_0x2ab684[_0x2c6f('0x44')])return;const _0x2e6a00=(_0x2ab684=this[_0x2c6f('0x102')](_0x2ab684,this[_0x2c6f('0x33')]))['oldRange']?_0x2ab684[_0x2c6f('0x22')][_0x2c6f('0xfe')]:null,_0xb7e13=_0x2ab684['newRange']?_0x2ab684[_0x2c6f('0x57')][_0x2c6f('0xfe')]:null;_0x2e6a00&&this[_0x2c6f('0x31')][_0x2c6f('0x4')](_0x2ab684['name']),_0xb7e13&&this[_0x2c6f('0x31')][_0x2c6f('0xb3')](_0x2ab684[_0x2c6f('0x6d')],_0x2ab684[_0x2c6f('0x57')][_0x2c6f('0x6')]());const _0x575c3e=null===_0x2ab684['_authorId']?null:_0x2ab684[_0x2c6f('0x30')]||this['editor'][_0x2c6f('0x56')][_0x2c6f('0x34')](_0x2c6f('0x17'))['me']['id'],_0x4e023e=_0x2ab684[_0x2c6f('0x6d')];if(!this[_0x2c6f('0x1')]['has'](_0x4e023e))return void this[_0x2c6f('0x1')]['set'](_0x4e023e,{'range':_0x2ab684['oldRange'],'userId':_0x575c3e});const _0x5128e5=this[_0x2c6f('0x1')][_0x2c6f('0x34')](_0x4e023e),_0x26a029=_0x5128e5[_0x2c6f('0x46')],_0x27a492=_0x2ab684[_0x2c6f('0x57')];null==_0x26a029&&null==_0x27a492||_0x26a029&&_0x27a492&&_0x26a029[_0x2c6f('0x2b')](_0x27a492)?this[_0x2c6f('0x1')][_0x2c6f('0x4')](_0x2ab684[_0x2c6f('0x6d')]):_0x5128e5['userId']=_0x575c3e;}[_0x2c6f('0x35')](_0x5f50f0,_0x3eafe5){this['_diffRoots'][_0x2c6f('0xe7')](_0x5f50f0['rootName'])?this[_0x2c6f('0x33')]['get'](_0x5f50f0[_0x2c6f('0x21')])[_0x2c6f('0x2d')]=_0x5f50f0[_0x2c6f('0xba')]:(this['_diffRoots'][_0x2c6f('0xb3')](_0x5f50f0[_0x2c6f('0x21')],G(_0x5f50f0[_0x2c6f('0x21')],!0x0)),this[_0x2c6f('0xb2')][_0x2c6f('0xb3')](_0x5f50f0[_0x2c6f('0x21')],{}),_0x3eafe5&&this['_idsRoots']['set'](_0x5f50f0[_0x2c6f('0x21')],G(_0x5f50f0['rootName'],!0x0)));const _0x393af9=null===_0x5f50f0[_0x2c6f('0x30')]?null:_0x5f50f0[_0x2c6f('0x30')]||this[_0x2c6f('0x97')][_0x2c6f('0x56')]['get']('Users')['me']['id'],_0x1db418=this[_0x2c6f('0xb0')][_0x2c6f('0x34')](_0x5f50f0['rootName']);_0x1db418&&_0x1db418[_0x2c6f('0xcd')]===_0x393af9?this['_touchedRoots'][_0x2c6f('0x4')](_0x5f50f0[_0x2c6f('0x21')]):this[_0x2c6f('0xb0')][_0x2c6f('0xb3')](_0x5f50f0[_0x2c6f('0x21')],{'userId':_0x393af9,'isAttached':_0x5f50f0[_0x2c6f('0xba')]});}[_0x2c6f('0x66')](_0x372a9e){const _0x2d8a60=this[_0x2c6f('0xb2')]['get'](_0x372a9e[_0x2c6f('0xfe')][_0x2c6f('0x21')]);null===_0x372a9e[_0x2c6f('0x58')]?delete _0x2d8a60[_0x372a9e[_0x2c6f('0x6a')]]:_0x2d8a60[_0x372a9e['key']]=_0x372a9e[_0x2c6f('0x58')];}}function q(_0x17fb24){const _0x50aa84=G(_0x17fb24['rootName'],_0x17fb24[_0x2c6f('0x67')]());for(const _0x509fdb of _0x17fb24[_0x2c6f('0x101')]()){const _0xfe55e6=_0x509fdb[_0x2c6f('0x7d')](!0x0);_0x50aa84[_0x2c6f('0x1d')](_0xfe55e6);}return _0x50aa84;}function G(_0x2747db,_0xb803b2=!0x0){const _0x1fc4af=new _0x381441();return _0x1fc4af[_0x2c6f('0x21')]=_0x2747db,_0x1fc4af[_0x2c6f('0x2d')]=_0xb803b2,_0x1fc4af[_0x2c6f('0x67')]=()=>_0x1fc4af[_0x2c6f('0x2d')],_0x1fc4af;}function L(_0x1b865f,_0x59306e,_0x3d67c2){const _0x23279d=_0x2c6f('0x81')==_0x1b865f[_0x2c6f('0x6b')]?_0x3d67c2['createPositionAt'](_0x1b865f[_0x2c6f('0x68')],_0x2c6f('0x78')):_0x3d67c2[_0x2c6f('0xf9')](_0x1b865f['item']);return _0x3d67c2[_0x2c6f('0x70')](_0x59306e,_0x23279d[_0x2c6f('0x3d')],_0x23279d[_0x2c6f('0x84')]);}function W(_0x268276,_0x5c510d,_0x3736d3){const _0x34c8c4=_0x2c6f('0xfa')==_0x268276[_0x2c6f('0x6b')]?_0x3736d3['createPositionAt'](_0x268276[_0x2c6f('0x68')],0x0):_0x3736d3[_0x2c6f('0xf1')](_0x268276[_0x2c6f('0x68')]);return _0x3736d3['createPositionFromPath'](_0x5c510d,_0x34c8c4[_0x2c6f('0x3d')],_0x34c8c4[_0x2c6f('0x84')]);}
|