@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231016.0 → 0.0.0-nightly-20231018.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 _0x89ec=['slice','offsetSize','attributesAfter','diffData','getRevisionRootsAttributes','_diffRoots','getAttribute','vid_end','init','item','removeRootAttribute','_loadRevisionData','isAdd','_continueCurrentRevision','authorsIds','_handleMergeOperation','offset','insertionPosition','insertion','merge','_findInsertionIndex','$graveyard','getRevisions','Initial\x20revision','shift','newValue','_insertChild','end','children','_getViewJson','RealTimeCollaborationClient','finally','loadState','_createCurrentRevision','_clone','_lastFrom','update','_handleInsertOperation','_savedMetaData','_makeIdsRoot','setRevisionData','getCurrentRevisionId','fromVersion','isAttached','documentFragment','has','getRootNames','getWalker','childCount','_createInitialRevision','_applyOperations','key','editor','conversion','_markers','_loadedStateData','find','paragraph','roots','_saveMetaData','_replaceEditorDataWithRevisionData','reinsert','_prepareViewToSave','_processRootBeforeSave','collaboration.channelId','_handleMoveOperation','size','getUser','reInit','name','currentRevision','setSource','_touchedMarkers','_handleMarkerOperation','upcast','_getVidAttributeName','set','insertions','revision-start','_generateTape','_getBaseVids','start','reverse','_setAttribute','document','_calculateMetaData','length','deletions','$text','dataToMarker','locale','buildRevisionData','revision-end','_revisionDataBuilder','rootName','graveyardPosition','getChildren','getRevisionDocumentData','_isAttached','repository','sourcePosition','addRevisionData','_baseRootsAttributes','_idsRoots','_baseIdsRoots','adapter','for','createRangeIn','getRevision','_removeRevisionMarkers','createdAt','elementEnd','_makeModelFromViewString','data-revision-','trim','_pendingAction','attributes','_isPendingUpdate','_cloneOperation','some','keepParagraph','oldRange','add','getOperations','from','dataDowncast','deletion','_loadState','_touched','_copyMarkers','revisionHistory.resumeUnsavedRevision','sort','addRoot','_handleRootOperation','getAttributes','attachChange','creator','_source','version','PendingActions','tableCell','type','getNodeByPath','PENDING_ACTION_REVISION_HISTORY','affectsData','_createFromRanges','_authorId','map','_bufferedUpdates','getChild','creatorId','split','toView','keys','requires','nodes','_makeRevision','sendBufferedUpdates','createPositionAt','insert','push','clear','ready','position','_handleSplitOperation','baseVersion','_getPreviousFrom','_execute','_touchedRoots','marked','_removePendingAction','root','createRange','fromEntries','RevisionTracker','createRevision','delete','parse','getIndex','forEach','revision:','_fixRange','resolve','stickiness','define','then','userId','isEnabled','hasContent','Users','move','previousPosition','stringify','getMovedRangeStart','elementStart','rootsAttributes','element','startsWith','getLatestVersion','Empty\x20document','_lastTo','string','toData','_setConversion','useFillerType','data','NEGATIVE_INFINITY','_getFromVersion','isEqual','_handleOperation','_operations','_fixOperation','isReady','_fixPosition','markers','view','plugins','_revisionId','initialData','afterInit','text','get','toVersion','nodeAfter','RevisionsRepository','createPositionFromPath','filter','clone','markerToData','createPositionBefore','history','processor','_markChanges','createPositionAfter','vid_start','saveRevision','default','includes','_reset','_diffRootsAttributes','getRange','splitPosition','_startingRevisionId','getData','_removeMetaData','getRoot','max','_initialRevisionId','_transformMarkers','_update','config','pluginName','editing','_getState','updateRevisions','_addPendingAction','revision','values','addRevision','_startingVersion','source','marker','parent','vid','path','_bufferUpdate','authors','model','newRange','_baseRoots'];(function(_0x47d868,_0x89ec69){const _0x5e20fe=function(_0x54bd56){while(--_0x54bd56){_0x47d868['push'](_0x47d868['shift']());}};_0x5e20fe(++_0x89ec69);}(_0x89ec,0x192));const _0x5e20=function(_0x47d868,_0x89ec69){_0x47d868=_0x47d868-0x0;let _0x5e20fe=_0x89ec[_0x47d868];return _0x5e20fe;};import{Users as _0x1ec901}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x16814d,PendingActions as _0x3046e3}from'ckeditor5/src/core';import{logWarning as _0x514e5f,uid as _0x4ab4fb}from'ckeditor5/src/utils';import{Position as _0x3af9e3,Range as _0x472eca,Element as _0x1232af,DocumentFragment as _0x4ea7a3,ViewText as _0x505f06,ViewElement as _0x8fa111,ViewContainerElement as _0x45a9c5,ViewAttributeElement as _0x5b525b,ViewEmptyElement as _0x46e0ac,ViewRawElement as _0x4ac50d,ViewUIElement as _0x5dcfe0,ViewDocumentFragment as _0x5185bc}from'ckeditor5/src/engine';import _0x58b8d4 from'./revisionsrepository';import{getTranslation as _0x3c1f4c}from'./utils/common-translations';import{cloneDeep as _0x3c23d6,isEqual as _0x39ebcc}from'lodash-es';const B={'c':_0x45a9c5,'a':_0x5b525b,'e':_0x46e0ac,'r':_0x4ac50d,'u':_0x5dcfe0};export default class l extends _0x16814d{static get[_0x5e20('0x77')](){return _0x5e20('0x2a');}static get[_0x5e20('0x16')](){return[_0x1ec901,_0x58b8d4,_0x3046e3];}constructor(_0x53faed){super(_0x53faed),this[_0x5e20('0xf3')]=null,this['currentRevision']=null,this[_0x5e20('0xe7')]=new H(this[_0x5e20('0xbe')]),this[_0x5e20('0x73')]=this[_0x5e20('0xbe')]['config'][_0x5e20('0x59')]('collaboration.channelId')||'initial',this[_0x5e20('0x10')]=new Map(),this[_0x5e20('0xc1')]=null;const _0x1017ef=_0x4ab4fb();this[_0x5e20('0x5')]={'history':this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x62')],'getLatestVersion':()=>Promise['resolve'](this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x6')]),'getCurrentRevisionId':()=>_0x1017ef},this[_0x5e20('0xd6')]('isReady',!0x1),this[_0x5e20('0xd6')](_0x5e20('0x37'),!0x0),this[_0x5e20('0xd6')](_0x5e20('0xff'),!0x1),this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x34')]('revisionHistory.resumeUnsavedRevision',!0x0),this['editor'][_0x5e20('0xbf')][_0x5e20('0xf4')](_0x5e20('0xd4'))[_0x5e20('0xe3')]({'view':_0x5e20('0x7c')});}[_0x5e20('0x92')](){this[_0x5e20('0xed')]=this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x5c')),this[_0x5e20('0x47')](),this[_0x5e20('0xbe')][_0x5e20('0x49')]['on'](_0x5e20('0x1e'),()=>{const _0x314f62=this['repository'][_0x5e20('0xf6')](0x0),_0x4608bb=_0x314f62&&null===_0x314f62[_0x5e20('0x4')]?_0x314f62:null;if(this[_0x5e20('0x97')]=!!_0x4608bb&&this[_0x5e20('0xbe')][_0x5e20('0x76')]['get'](_0x5e20('0x10c')),this[_0x5e20('0xbe')]['plugins']['has'](_0x5e20('0xa8'))){const _0x1bc30a=this[_0x5e20('0x5')][_0x5e20('0xb3')](),_0xf7fd9e=this['repository'][_0x5e20('0xf6')](_0x1bc30a);if(_0xf7fd9e)this[_0x5e20('0x7f')]=_0xf7fd9e[_0x5e20('0xb4')],this[_0x5e20('0x97')]=!0x1;else{const _0x3e30cc=this[_0x5e20('0x5')][_0x5e20('0x62')][_0x5e20('0x4e')][_0x5e20('0xc2')](_0x2bd910=>!_0x2bd910['_isInit']),_0x1c0ece=_0x3e30cc?_0x3e30cc[_0x5e20('0x21')]:this[_0x5e20('0x5')][_0x5e20('0x62')][_0x5e20('0x6')];_0x314f62?(_0x314f62[_0x5e20('0x5a')]<_0x1c0ece&&_0x314f62['_update']({'toVersion':_0x1c0ece}),this[_0x5e20('0x97')]?(this[_0x5e20('0x5')]['getCurrentRevisionId']=()=>_0x4608bb['id'],this['_startingVersion']=_0x4608bb['fromVersion']):(this[_0x5e20('0x7f')]=_0x314f62[_0x5e20('0x5a')],this[_0x5e20('0x97')]=!0x1)):(this[_0x5e20('0x7f')]=_0x1c0ece,this[_0x5e20('0x97')]=!0x1);}}else _0x4608bb&&(this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x62')][_0x5e20('0x6')]=Math[_0x5e20('0x72')](_0x4608bb[_0x5e20('0x5a')],this[_0x5e20('0xbe')]['model']['document'][_0x5e20('0x62')][_0x5e20('0x6')]),_0x4608bb['fromVersion']===_0x4608bb[_0x5e20('0x5a')]?(0x0!==_0x4608bb[_0x5e20('0xb4')]&&(this[_0x5e20('0x5')][_0x5e20('0xb3')]=()=>_0x4608bb['id']),this[_0x5e20('0x97')]=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4608bb['id'],this['_startingVersion']=_0x4608bb[_0x5e20('0xb4')])),this[_0x5e20('0x97')]||(this[_0x5e20('0x7f')]=this[_0x5e20('0xbe')]['model'][_0x5e20('0xde')][_0x5e20('0x6')]);this[_0x5e20('0xe7')][_0x5e20('0x92')](this[_0x5e20('0x5')][_0x5e20('0x62')]),this[_0x5e20('0xbb')](this[_0x5e20('0x7f')]),this[_0x5e20('0xab')](this['_startingVersion']),this[_0x5e20('0xf3')]&&this['sendBufferedUpdates']();}),this['bind'](_0x5e20('0x50'))['to'](this,'_isPendingUpdate',_0x378a4e=>!_0x378a4e);}async[_0x5e20('0x57')](){if(this[_0x5e20('0xed')][_0x5e20('0xe0')]>0x0){const _0x47bc3a=this[_0x5e20('0xed')][_0x5e20('0xf6')](0x0),_0x309caa=await this[_0x5e20('0xeb')](_0x47bc3a),_0xcb65ed=await this[_0x5e20('0x8e')](_0x47bc3a);this['_replaceEditorDataWithRevisionData'](_0x309caa,_0xcb65ed);}}[_0x5e20('0xd1')](_0x5d4c5e){this[_0x5e20('0x5')]=_0x5d4c5e;}async[_0x5e20('0xae')](){const _0x3e74e1=await this[_0x5e20('0x5')][_0x5e20('0x42')]();if(_0x3e74e1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x28ed59=this['buildRevisionData']({'revision':this[_0x5e20('0xd0')],'to':_0x3e74e1});_0x28ed59[_0x5e20('0x86')]=_0x28ed59[_0x5e20('0x98')][_0x5e20('0xf')](_0x487396=>this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')]('Users')['getUser'](_0x487396)),this[_0x5e20('0xd0')][_0x5e20('0x75')](_0x28ed59);}}async['_loadState'](){this[_0x5e20('0x97')]&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this[_0x5e20('0xd0')]),this[_0x5e20('0xe7')][_0x5e20('0xaa')](this[_0x5e20('0xd0')]),this['_loadedStateData']={'fromVersion':this[_0x5e20('0xd0')][_0x5e20('0xb4')],'authors':this[_0x5e20('0xd0')][_0x5e20('0x86')][_0x5e20('0x8a')]()});}async[_0x5e20('0x67')](_0x292212={},_0xed352b=null){const _0x392887=[];await this[_0x5e20('0x109')](),this['_continueCurrentRevision']=!0x1,_0xed352b>this[_0x5e20('0xd0')][_0x5e20('0x5a')]&&(_0xed352b=null),null===_0xed352b&&(_0xed352b=await this[_0x5e20('0x5')]['getLatestVersion']());const _0x5b9651=this[_0x5e20('0x4b')](_0xed352b),_0xc51363=this[_0x5e20('0xe5')]({'from':_0x5b9651,'to':_0xed352b});if(this['currentRevision'][_0x5e20('0x5a')]<_0xed352b){const _0x2ed8bd=this[_0x5e20('0xe5')]({'revision':this['currentRevision'],'from':_0xed352b,'to':_0xed352b});_0x2ed8bd['authors']=[],_0x2ed8bd[_0x5e20('0x98')]=[],_0x2ed8bd['id']=this['currentRevision']['id'],this[_0x5e20('0xd0')][_0x5e20('0x75')](_0x2ed8bd,!0x0),delete _0x2ed8bd[_0x5e20('0x86')],_0x392887[_0x5e20('0x1c')](_0x2ed8bd);}_0x292212[_0x5e20('0x12')]=this['editor']['plugins'][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x292212[_0x5e20('0xcf')]=_0x292212['name']||null,_0x292212['id']=_0x292212['id']||_0x4ab4fb(),_0x292212={..._0x292212,..._0xc51363};const _0x11a0b2=this[_0x5e20('0xef')](_0x292212);_0x392887[_0x5e20('0x1c')](_0x292212);const _0xbb48fe=this[_0x5e20('0xed')][_0x5e20('0x2e')](_0x11a0b2);if(0x0!==_0xbb48fe){const _0x2735c0=this[_0x5e20('0xed')]['getRevision'](_0xbb48fe-0x1);if(_0x2735c0['fromVersion']!==_0xed352b){const _0x25124a=this['_revisionDataBuilder'][_0x5e20('0x6f')](_0xed352b,_0x2735c0[_0x5e20('0x5a')]),_0x4653bc={'id':_0x2735c0['id'],'diffData':_0x25124a[_0x5e20('0x8d')],'authorsIds':_0x25124a['authorsIds'],'authors':_0x25124a[_0x5e20('0x98')][_0x5e20('0xf')](_0x3e7530=>this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))[_0x5e20('0xcd')](_0x3e7530)),'fromVersion':_0xed352b};_0x2735c0===this[_0x5e20('0xd0')]&&(_0x4653bc['createdAt']=new Date(_0x292212[_0x5e20('0xf8')]['getTime']()+0xa)),_0x2735c0['_update'](_0x4653bc,!0x0),delete _0x4653bc[_0x5e20('0x86')],_0x392887[_0x5e20('0x1c')](_0x4653bc);}}if(this[_0x5e20('0xf3')]){for(const _0x3db971 of _0x392887)this[_0x5e20('0x85')](_0x3db971['id'],_0x3db971,!0x0);this[_0x5e20('0x19')]();}return _0x11a0b2;}[_0x5e20('0xef')](_0x417762){const _0x3cd5db=this[_0x5e20('0xed')][_0x5e20('0x2b')](_0x417762);return this[_0x5e20('0xf3')]&&_0x3cd5db['on'](_0x5e20('0x75'),(_0x2a7300,_0x241aa9,_0x5f48ea)=>{_0x5f48ea||(this['_bufferUpdate'](_0x241aa9['id'],_0x241aa9,!0x0),this[_0x5e20('0x19')]());}),this[_0x5e20('0xed')][_0x5e20('0x7e')](_0x3cd5db,this[_0x5e20('0x9e')](_0x3cd5db)),_0x3cd5db;}async[_0x5e20('0xeb')](_0x4078ce){await this[_0x5e20('0x95')](_0x4078ce);const _0x23ef0b={};for(const _0x35b415 in _0x4078ce[_0x5e20('0x8d')]){if(_0x4078ce[_0x5e20('0x8d')][_0x35b415][_0x5e20('0x3')]&&!_0x4078ce['diffData'][_0x35b415][_0x5e20('0x3')][_0x5e20('0xb5')])continue;const _0xb47462=this[_0x5e20('0xf7')](JSON['parse'](_0x4078ce[_0x5e20('0x8d')][_0x35b415][_0x5e20('0xd7')])),_0x79d15e=this[_0x5e20('0xbe')][_0x5e20('0x78')]['view'][_0x5e20('0xde')],_0x420c28=new _0x5185bc(_0x79d15e,_0xb47462[_0x5e20('0xf')](_0x1a0b5a=>J(_0x1a0b5a,this[_0x5e20('0xbe')])));this[_0x5e20('0xbe')][_0x5e20('0x49')][_0x5e20('0x63')][_0x5e20('0x48')](_0x5e20('0x25')),_0x23ef0b[_0x35b415]=this[_0x5e20('0xbe')][_0x5e20('0x49')]['processor'][_0x5e20('0x46')](_0x420c28),this[_0x5e20('0xbe')][_0x5e20('0x49')][_0x5e20('0x63')][_0x5e20('0x48')](_0x5e20('0x68'));}return _0x23ef0b;}async[_0x5e20('0x8e')](_0x4d1d33){await this['_loadRevisionData'](_0x4d1d33);const _0x485839={};for(const _0x36cfea in _0x4d1d33[_0x5e20('0x8d')])_0x4d1d33['diffData'][_0x36cfea][_0x5e20('0x3')]&&!_0x4d1d33['diffData'][_0x36cfea]['attachChange'][_0x5e20('0xb5')]||(_0x485839[_0x36cfea]=_0x4d1d33[_0x5e20('0x8d')][_0x36cfea][_0x5e20('0x8c')]||{});return _0x485839;}[_0x5e20('0x19')](){if(0x0===this[_0x5e20('0x10')][_0x5e20('0xcc')])return;if(this['_isPendingUpdate'])return;let _0x179c79=Array['from'](this['_bufferedUpdates'][_0x5e20('0x7d')]());this[_0x5e20('0x10')][_0x5e20('0x1d')]();for(let _0x4e2e78=0x0;_0x4e2e78<_0x179c79[_0x5e20('0xe0')];_0x4e2e78++){const _0x3ed019=_0x179c79[_0x4e2e78];let _0x1ef497=!0x1;for(const _0x4a833d of Object['keys'](_0x3ed019))void 0x0===_0x3ed019[_0x4a833d]?delete _0x3ed019[_0x4a833d]:'id'!==_0x4a833d&&(_0x1ef497=!0x0);_0x1ef497||(_0x179c79[_0x4e2e78]=null);}if(_0x179c79=_0x179c79[_0x5e20('0x5e')](_0x28de80=>null!==_0x28de80),!_0x179c79[_0x5e20('0xe0')])return;for(let _0x5466e5=0x0;_0x5466e5<_0x179c79['length'];_0x5466e5++){const _0x452eae=_0x179c79[_0x5466e5];void 0x0!==_0x452eae[_0x5e20('0xb4')]&&void 0x0===_0x452eae[_0x5e20('0x5a')]&&(_0x452eae[_0x5e20('0x5a')]=this[_0x5e20('0xed')][_0x5e20('0xf6')](_0x452eae['id'])['toVersion']),void 0x0!==_0x452eae[_0x5e20('0x5a')]&&void 0x0===_0x452eae[_0x5e20('0xb4')]&&(_0x452eae['fromVersion']=this['repository'][_0x5e20('0xf6')](_0x452eae['id'])[_0x5e20('0xb4')]);}const _0x141cf6=this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0xca'));this[_0x5e20('0xff')]=!0x0,this[_0x5e20('0x7b')](),this[_0x5e20('0xf3')][_0x5e20('0x7a')](_0x179c79,_0x141cf6)[_0x5e20('0xa9')](()=>{this[_0x5e20('0xff')]=!0x1;})[_0x5e20('0x35')](_0x2fecf4=>{if(_0x2fecf4)for(const _0x45f608 of _0x2fecf4)this[_0x5e20('0xb2')]({'id':_0x45f608['id'],'createdAt':_0x45f608[_0x5e20('0xf8')]});this[_0x5e20('0x26')](),this[_0x5e20('0x19')]();});}[_0x5e20('0xc6')](_0x3e48f6,_0x36aa1b){let _0x222865=this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0x56')),_0x150861=this['editor'][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0x3f'));if(void 0x0===_0x222865){_0x222865={};for(const _0x488de7 of this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0xb8')]())_0x222865[_0x488de7]='';}if(_0x5e20('0x45')==typeof _0x222865&&(_0x222865={'main':_0x222865}),void 0x0===_0x150861){_0x150861={};for(const _0x3ce0d5 of this[_0x5e20('0xbe')]['model'][_0x5e20('0xde')][_0x5e20('0xb8')]())_0x150861[_0x3ce0d5]={};}let _0x220500=!0x1;const _0x4ef09c=Object[_0x5e20('0x15')](_0x222865),_0x5ef873=Object['keys'](_0x3e48f6);for(const _0x233231 of _0x4ef09c){if(_0x222865[_0x233231]!==_0x3e48f6[_0x233231]&&''!==_0x222865[_0x233231][_0x5e20('0xfc')]()){_0x220500=!0x0;break;}if(!_0x39ebcc(_0x150861[_0x233231],_0x36aa1b[_0x233231])&&Object[_0x5e20('0x15')](_0x150861[_0x233231])[_0x5e20('0xe0')]>0x0){_0x220500=!0x0;break;}}_0x220500||(_0x220500=_0x5ef873[_0x5e20('0x101')](_0x547e4a=>!this[_0x5e20('0xbe')][_0x5e20('0x87')]['document'][_0x5e20('0x71')](_0x547e4a))),_0x220500&&_0x514e5f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x222865,'editorRootsAttributes':_0x150861,'revisionData':_0x3e48f6,'revisionRootsAttributes':_0x36aa1b}),this[_0x5e20('0xbe')]['config']['set']('initialData',_0x3e48f6),this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0xd6')](_0x5e20('0x3f'),_0x36aa1b);}['_addPendingAction'](){if(!this[_0x5e20('0xfd')]){const _0x5069dc=this[_0x5e20('0xbe')][_0x5e20('0x54')]['get'](_0x5e20('0x7'));this[_0x5e20('0xfd')]=_0x5069dc[_0x5e20('0x104')](_0x3c1f4c(this[_0x5e20('0xbe')][_0x5e20('0xe4')],_0x5e20('0xb')));}}[_0x5e20('0x26')](){this[_0x5e20('0xfd')]&&(this['editor']['plugins'][_0x5e20('0x59')](_0x5e20('0x7'))['remove'](this[_0x5e20('0xfd')]),this[_0x5e20('0xfd')]=null);}[_0x5e20('0x9e')](_0x26cfea){const _0xcccdb0=this[_0x5e20('0xed')][_0x5e20('0xa0')]();_0xcccdb0['reverse']();let _0xd4dfae=0x0;for(;_0xd4dfae<_0xcccdb0[_0x5e20('0xe0')];){const _0x37e044=_0xcccdb0[_0xd4dfae];if(_0x37e044===this[_0x5e20('0xd0')]){_0xd4dfae++;continue;}if(_0x37e044['id']===this['_initialRevisionId'])break;const _0x5b9cfb=_0x26cfea[_0x5e20('0x5a')]-_0x37e044[_0x5e20('0x5a')]||_0x26cfea[_0x5e20('0xb4')]-_0x37e044[_0x5e20('0xb4')];if(_0x5b9cfb>0x0)break;if(_0x5b9cfb<0x0)_0xd4dfae++;else{if(!_0x26cfea[_0x5e20('0x4')]&&_0x37e044[_0x5e20('0x4')])break;if(_0x37e044[_0x5e20('0x4')]||!_0x26cfea['creator']){if(_0x26cfea[_0x5e20('0xf8')]>_0x37e044[_0x5e20('0xf8')])break;_0xd4dfae++;}else _0xd4dfae++;}}return _0xd4dfae;}[_0x5e20('0xb2')](_0x406453){const _0x3f739b=this[_0x5e20('0xed')][_0x5e20('0xf6')](_0x406453['id']);if(_0x406453[_0x5e20('0xf8')]&&(_0x406453[_0x5e20('0xf8')]=new Date(_0x406453[_0x5e20('0xf8')])),_0x406453[_0x5e20('0x98')]){const _0xe6306=this['editor'][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'));_0x406453[_0x5e20('0x86')]=_0x406453[_0x5e20('0x98')][_0x5e20('0xf')](_0x245112=>_0xe6306['getUser'](_0x245112));}_0x3f739b[_0x5e20('0x75')](_0x406453,!0x0);}[_0x5e20('0xe5')]({revision:_0x25b5e1=null,from:_0x5e81fa=null,to:_0x53f10c=null}){_0x5e81fa=null!==_0x5e81fa?_0x5e81fa:_0x25b5e1[_0x5e20('0xb4')],_0x53f10c=null!==_0x53f10c?_0x53f10c:_0x25b5e1[_0x5e20('0x5a')];const _0x2fbc4f=this[_0x5e20('0xe7')][_0x5e20('0x6f')](_0x5e81fa,_0x53f10c),_0x4c88ae={'diffData':_0x2fbc4f[_0x5e20('0x8d')],'authorsIds':_0x2fbc4f['authorsIds'],'fromVersion':_0x5e81fa,'toVersion':_0x53f10c};if(!_0x25b5e1||_0x53f10c!==_0x25b5e1[_0x5e20('0x5a')]){const _0x4dcd1f=_0x53f10c-0x1,_0x4d496a=this[_0x5e20('0x5')][_0x5e20('0x62')]['getOperation'](_0x4dcd1f);_0x4c88ae['createdAt']=_0x4d496a&&_0x4d496a[_0x5e20('0xf8')]||new Date();}if(this['_loadedStateData']&&_0x5e81fa===this[_0x5e20('0xc1')][_0x5e20('0xb4')])for(const _0x4761cb of this[_0x5e20('0xc1')]['authors'])_0x4c88ae['authorsIds'][_0x5e20('0x69')](_0x4761cb['id'])||_0x4c88ae[_0x5e20('0x98')][_0x5e20('0x1c')](_0x4761cb['id']);return _0x4c88ae;}[_0x5e20('0x95')](_0x4cce19){if(!_0x4cce19||_0x4cce19[_0x5e20('0x8d')])return Promise[_0x5e20('0x32')]();{const _0x2fbd34=this[_0x5e20('0xbe')][_0x5e20('0x76')][_0x5e20('0x59')](_0x5e20('0xca'));return this[_0x5e20('0xf3')][_0x5e20('0xf6')]({'channelId':_0x2fbd34,'revisionId':_0x4cce19['id']})[_0x5e20('0x35')](_0x2d72a4=>{_0x4cce19['diffData']=_0x2d72a4['diffData'];});}}[_0x5e20('0x85')](_0x4445cb,_0x5a5685,_0x28244c){if(this['_bufferedUpdates'][_0x5e20('0xb7')](_0x4445cb)){const _0x472a19=this['_bufferedUpdates'][_0x5e20('0x59')](_0x4445cb);_0x5a5685=_0x28244c?{..._0x472a19,..._0x5a5685}:{..._0x5a5685,..._0x472a19};}this[_0x5e20('0x10')]['set'](_0x4445cb,_0x5a5685);}['_getFromVersion'](_0x57a2aa){const _0x3e7590=this[_0x5e20('0xed')]['getRevisions']();_0x3e7590[_0x5e20('0xdc')](),_0x3e7590[_0x5e20('0xa2')]();const _0x3a74e7=_0x3e7590[_0x5e20('0xc2')](_0x343795=>_0x343795['toVersion']<=_0x57a2aa)[_0x5e20('0x5a')];return _0x3a74e7<this[_0x5e20('0x7f')]?this[_0x5e20('0x7f')]:_0x3a74e7;}[_0x5e20('0xbb')](_0x19b6bc){const _0x4ae738=this[_0x5e20('0xed')][_0x5e20('0xf6')](this[_0x5e20('0xed')][_0x5e20('0xe0')]-0x1);if(_0x4ae738)this['_initialRevisionId']=_0x4ae738['id'];else{const _0x45f3a3=!this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0xc4')][_0x5e20('0xc2')](_0x1a2fa9=>this[_0x5e20('0xbe')]['model'][_0x5e20('0x38')](_0x1a2fa9)),_0x1adbf7=this['editor']['plugins'][_0x5e20('0x59')]('Users')['me']['id'],_0x3fd5fd=_0x3c1f4c(this[_0x5e20('0xbe')][_0x5e20('0xe4')],_0x45f3a3?_0x5e20('0x43'):_0x5e20('0xa1'));this['_makeRevision']({'from':_0x19b6bc,'to':_0x19b6bc,'id':this[_0x5e20('0x73')],'name':_0x3fd5fd,'creatorId':_0x1adbf7});}}[_0x5e20('0xab')](_0x4bcf94){const _0x1c6416=this[_0x5e20('0x5')]['getCurrentRevisionId']();this[_0x5e20('0xd0')]=this[_0x5e20('0xed')]['getRevision'](_0x1c6416),this[_0x5e20('0xd0')]||(this['currentRevision']=this[_0x5e20('0x18')]({'from':_0x4bcf94,'to':_0x4bcf94,'id':_0x1c6416,'name':'','creatorId':null}));}['_makeRevision']({name:_0x338721,from:_0x483606,to:_0xf3a27d,creatorId:_0x3d83f3,id:_0x4a662f}){const _0x4a4488=this[_0x5e20('0xe5')]({'from':_0x483606,'to':_0xf3a27d});_0x4a4488[_0x5e20('0xcf')]=_0x338721,_0x4a4488[_0x5e20('0x12')]=_0x3d83f3,_0x4a4488['id']=_0x4a662f;const _0x597c02=this[_0x5e20('0xef')](_0x4a4488);return this['adapter']&&this[_0x5e20('0x85')](_0x4a4488['id'],_0x4a4488,!0x0),_0x597c02;}[_0x5e20('0x47')](){this[_0x5e20('0xbe')][_0x5e20('0xbf')]['for'](_0x5e20('0x107'))[_0x5e20('0x60')]({'model':_0x5e20('0x7c')});}[_0x5e20('0xf7')](_0x3c6c8a){return(_0x3c6c8a=_0x3c6c8a[_0x5e20('0x5e')](_0x2cea56=>!_0x2cea56[_0x5e20('0xcf')]||_0x5e20('0xd8')!==_0x2cea56[_0x5e20('0xcf')]&&_0x5e20('0xe6')!==_0x2cea56[_0x5e20('0xcf')]))[_0x5e20('0x2f')](_0x3f4b33=>{'string'!=typeof _0x3f4b33&&(_0x3f4b33[_0x5e20('0xa6')]=this[_0x5e20('0xf7')](_0x3f4b33[_0x5e20('0xa6')]),_0x3f4b33[_0x5e20('0xfe')]=_0x3f4b33[_0x5e20('0xfe')]['filter'](_0x4ceb7d=>!_0x4ceb7d[0x0][_0x5e20('0x41')](_0x5e20('0xfb'))));}),_0x3c6c8a;}}function J(_0x38f30e,_0x1ec764){const _0x49f818=_0x1ec764['editing'][_0x5e20('0x53')]['document'];if('string'==typeof _0x38f30e)return new _0x505f06(_0x49f818,_0x38f30e);{const _0x55b7cf=_0x38f30e[_0x5e20('0xa6')][_0x5e20('0xf')](_0x5dc890=>J(_0x5dc890,_0x1ec764));return new(B[_0x38f30e[(_0x5e20('0x9'))]]||_0x8fa111)(_0x49f818,_0x38f30e[_0x5e20('0xcf')],_0x38f30e[_0x5e20('0xfe')],_0x55b7cf);}}class H{constructor(_0x3bfaa7){this[_0x5e20('0xbe')]=_0x3bfaa7,this[_0x5e20('0xb0')]=new Map(),this[_0x5e20('0xad')]=-0x1,this[_0x5e20('0x44')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x5e20('0x89')]=new Map(),this[_0x5e20('0xf0')]=new Map(),this[_0x5e20('0xf1')]=new Map(),this[_0x5e20('0xf2')]=new Map(),this[_0x5e20('0x10a')]=new Map(),this[_0x5e20('0xd2')]=new Map(),this[_0x5e20('0x24')]=new Map(),this[_0x5e20('0x55')]=0x1;}[_0x5e20('0x92')](_0x42f119){this[_0x5e20('0x80')]=_0x42f119;const _0x4a4cad=new Map(),_0x26e4fb=new Map(),_0x22e4ef=this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0xde')]['roots'][_0x5e20('0xf')](_0x1d0bc2=>_0x1d0bc2[_0x5e20('0xe8')]);for(const _0x28f8a1 of _0x22e4ef){const _0x239911=this['editor'][_0x5e20('0x87')][_0x5e20('0xde')][_0x5e20('0x71')](_0x28f8a1),_0x93c641=q(_0x239911);_0x4a4cad['set'](_0x28f8a1,_0x93c641),_0x26e4fb['set'](_0x28f8a1,Object[_0x5e20('0x29')](_0x239911['getAttributes']()));}const _0x45b634=Array[_0x5e20('0x106')](this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0x52')])[_0x5e20('0xf')](_0xb58bb3=>[_0xb58bb3[_0x5e20('0xcf')],_0xb58bb3[_0x5e20('0x6c')]()]),_0x4093b4=this['source'][_0x5e20('0x6')];this[_0x5e20('0xc5')](_0x4093b4,_0x4a4cad,_0x45b634,_0x26e4fb),this['_startingRevisionId']=this[_0x5e20('0x55')];const _0x16eb4f=new Map(),_0x14c0da=new Map();for(const _0x278c31 of _0x22e4ef){const _0x5034f2=G(_0x278c31);_0x16eb4f[_0x5e20('0xd6')](_0x278c31,_0x5034f2),_0x14c0da['set'](_0x278c31,{});}this['_saveMetaData'](Number[_0x5e20('0x4a')],_0x16eb4f,[],_0x14c0da);}['getData'](_0x420ccf,_0x552256){if(this[_0x5e20('0xad')]===_0x420ccf&&this[_0x5e20('0x44')]<=_0x552256)this['_savedMetaData']['size']>0x1&&this[_0x5e20('0x70')](this[_0x5e20('0x44')]),this[_0x5e20('0xbc')](this['_lastTo'],_0x552256,!0x0);else{if(!this[_0x5e20('0xb0')][_0x5e20('0xb7')](_0x420ccf)){const _0x591222=this[_0x5e20('0x22')](_0x420ccf);this[_0x5e20('0xdf')](_0x591222,_0x420ccf,!0x1);}this[_0x5e20('0xdf')](_0x420ccf,_0x552256,!0x0);}return this[_0x5e20('0xad')]=_0x420ccf,this[_0x5e20('0x44')]=_0x552256,this[_0x5e20('0x79')]();}[_0x5e20('0xaa')](_0x326497){this['_reset'](),this['_lastFrom']=_0x326497[_0x5e20('0xb4')],this[_0x5e20('0x44')]=_0x326497['toVersion'];for(const _0x4214d0 in _0x326497[_0x5e20('0x8d')]){const _0x2bd31c=_0x326497[_0x5e20('0x8d')][_0x4214d0][_0x5e20('0x3')],_0x266750=_0x3c23d6(_0x326497[_0x5e20('0x8d')][_0x4214d0]['attributesBefore'])||{},_0x21ce1d=this[_0x5e20('0xfa')](_0x326497[_0x5e20('0x8d')][_0x4214d0][_0x5e20('0xe1')]);_0x21ce1d[_0x5e20('0xe8')]=_0x4214d0,_0x21ce1d[_0x5e20('0xec')]=!_0x2bd31c||!_0x2bd31c[_0x5e20('0xb5')],_0x21ce1d[_0x5e20('0xb5')]=()=>_0x21ce1d[_0x5e20('0xec')],this[_0x5e20('0x89')]['set'](_0x4214d0,_0x21ce1d),this['_baseRootsAttributes'][_0x5e20('0xd6')](_0x4214d0,_0x266750),_0x2bd31c&&this['_touchedRoots']['set'](_0x4214d0,_0x2bd31c);const _0x77e495=this['_makeIdsRoot'](_0x21ce1d);this[_0x5e20('0xf2')]['set'](_0x4214d0,_0x77e495);for(const [_0xf51d37,_0x275bdb]of _0x21ce1d[_0x5e20('0x52')]){if(!_0xf51d37['startsWith'](_0x5e20('0x30')))continue;const _0x18b728=_0xf51d37[_0x5e20('0x13')](':')[0x2];for(const _0x45fa39 of _0x275bdb[_0x5e20('0xb9')]({'singleCharacters':!0x0})){const _0x2e1215=this[_0x5e20('0xd5')](_0x45fa39),_0x32eb47=_0x5e20('0xf9')==_0x45fa39['type']?_0x45fa39[_0x5e20('0x3b')][_0x5e20('0x84')][_0x5e20('0x8a')](0x0,-0x1):_0x45fa39[_0x5e20('0x3b')][_0x5e20('0x84')],_0x30df38=_0x77e495[_0x5e20('0xa')](_0x32eb47)['getAttribute'](_0x2e1215);this[_0x5e20('0x10a')]['set'](_0x30df38,{'userId':_0x18b728});}}}this['_startingRevisionId']=this[_0x5e20('0x55')];const _0x53a4b9=[...Array(this[_0x5e20('0x55')])[_0x5e20('0x15')]()]['slice'](0x1)[_0x5e20('0x5e')](_0x27cd8c=>!this[_0x5e20('0x10a')][_0x5e20('0xb7')](_0x27cd8c));let _0x2c9d4d=0x0;const _0x54be54=new Map();for(const _0x3d069a in _0x326497[_0x5e20('0x8d')]){const _0x49a685=_0x326497[_0x5e20('0x8d')][_0x3d069a][_0x5e20('0x3')],_0x2475e6=_0x3c23d6(_0x326497[_0x5e20('0x8d')][_0x3d069a][_0x5e20('0x8c')])||{},_0x3a88df=this[_0x5e20('0xfa')](_0x326497[_0x5e20('0x8d')][_0x3d069a]['insertions']);_0x3a88df['rootName']=_0x3d069a,_0x3a88df[_0x5e20('0xec')]=!_0x49a685||_0x49a685['isAttached'],_0x3a88df[_0x5e20('0xb5')]=()=>_0x3a88df[_0x5e20('0xec')],this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x3d069a,_0x3a88df),this[_0x5e20('0x6b')][_0x5e20('0xd6')](_0x3d069a,_0x2475e6);const _0x333261=this[_0x5e20('0xb1')](_0x3a88df,Number[_0x5e20('0x4a')]);this['_idsRoots'][_0x5e20('0xd6')](_0x3d069a,_0x333261),_0x54be54[_0x5e20('0xd6')](_0x3d069a,_0x3a88df[_0x5e20('0xb5')]()?_0x2475e6:{});for(const [_0x17aa5c,_0x361bd3]of _0x3a88df['markers']){if(!_0x17aa5c[_0x5e20('0x41')]('revision:'))continue;const _0x322cbc=_0x17aa5c[_0x5e20('0x13')](':')[0x2];for(const _0x369a38 of _0x361bd3[_0x5e20('0xb9')]({'singleCharacters':!0x0})){const _0x80e10f=this['_getVidAttributeName'](_0x369a38),_0x3b696a=this[_0x5e20('0x55')]++,_0x1e1f94=_0x5e20('0xf9')==_0x369a38['type']?_0x369a38[_0x5e20('0x3b')][_0x5e20('0x84')][_0x5e20('0x8a')](0x0,-0x1):_0x369a38['previousPosition'][_0x5e20('0x84')];_0x333261[_0x5e20('0xa')](_0x1e1f94)['_setAttribute'](_0x80e10f,_0x3b696a),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x3b696a,{'userId':_0x322cbc});}}for(const _0x2b9453 of this['editor'][_0x5e20('0x87')][_0x5e20('0xf5')](_0x3a88df)[_0x5e20('0xb9')]({'singleCharacters':!0x0})){const _0xdc06c5=this[_0x5e20('0xd5')](_0x2b9453),_0x493f50=_0x5e20('0xf9')==_0x2b9453[_0x5e20('0x9')]?_0x2b9453['previousPosition']['path']['slice'](0x0,-0x1):_0x2b9453[_0x5e20('0x3b')]['path'],_0x286e35=_0x333261[_0x5e20('0xa')](_0x493f50);_0x286e35[_0x5e20('0x90')](_0xdc06c5)>0x0||_0x286e35['_setAttribute'](_0xdc06c5,_0x53a4b9[_0x2c9d4d++]);}for(const [_0x4b4cd2,_0x19a9fc]of _0x3a88df[_0x5e20('0x52')])_0x4b4cd2[_0x5e20('0x41')]('revision:')||this[_0x5e20('0xc0')][_0x5e20('0xd6')](_0x4b4cd2,_0x19a9fc);}const _0x3a3175=G(_0x5e20('0x9f'));this[_0x5e20('0x89')][_0x5e20('0xd6')]('$graveyard',_0x3a3175),this[_0x5e20('0xf2')][_0x5e20('0xd6')](_0x5e20('0x9f'),this['_makeIdsRoot'](_0x3a3175,0x1));const _0x104b4f=G('$graveyard');this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x5e20('0x9f'),_0x104b4f),this['_idsRoots'][_0x5e20('0xd6')](_0x5e20('0x9f'),this[_0x5e20('0xb1')](_0x104b4f,0x1));const _0x4a064a=Array[_0x5e20('0x106')](this['_diffRoots'])[_0x5e20('0xf')](([_0x569bdb,_0x4c9fc7])=>[_0x569bdb,q(_0x4c9fc7)]);this[_0x5e20('0xc5')](this['_lastTo'],_0x4a064a,this[_0x5e20('0xc0')],_0x54be54);}[_0x5e20('0xfa')](_0x22fc6a){const _0x3143f6=JSON[_0x5e20('0x2d')](_0x22fc6a),_0x49dc4b=this['editor']['editing'][_0x5e20('0x53')]['document'],_0x16f088=new _0x5185bc(_0x49dc4b,_0x3143f6[_0x5e20('0xf')](_0x446df8=>J(_0x446df8,this[_0x5e20('0xbe')])));return this['editor'][_0x5e20('0x49')]['toModel'](_0x16f088);}[_0x5e20('0xc5')](_0xb801e6,_0x4cbe03,_0x42c810,_0x4b03f4){const _0x539aa6=new Map(_0x4cbe03),_0x266bb2=new Map(_0x3c23d6(_0x4b03f4)),_0x5b3350=new Map();for(const [_0x2af8d1,_0x304596]of _0x42c810)_0x5b3350[_0x5e20('0xd6')](_0x2af8d1,{'start':_0x304596[_0x5e20('0xdb')][_0x5e20('0x5f')](),'end':_0x304596[_0x5e20('0xa5')][_0x5e20('0x5f')](),'rootName':_0x304596['root']['rootName']});this[_0x5e20('0xb0')][_0x5e20('0xd6')](_0xb801e6,{'roots':_0x539aa6,'markers':_0x5b3350,'rootsAttributes':_0x266bb2});}['_removeMetaData'](_0x4ab34b){this[_0x5e20('0xb0')][_0x5e20('0x2c')](_0x4ab34b);}[_0x5e20('0xce')](){this[_0x5e20('0x6a')](),this['_lastFrom']=-0x1,this[_0x5e20('0x44')]=-0x1,this[_0x5e20('0xb0')][_0x5e20('0x1d')](),this[_0x5e20('0x92')](this[_0x5e20('0x80')]);}[_0x5e20('0x6a')](){this[_0x5e20('0x10a')][_0x5e20('0x1d')](),this[_0x5e20('0xd2')][_0x5e20('0x1d')](),this[_0x5e20('0x24')]['clear'](),this[_0x5e20('0x8f')]['clear'](),this['_diffRootsAttributes'][_0x5e20('0x1d')](),this[_0x5e20('0x89')][_0x5e20('0x1d')](),this[_0x5e20('0xf0')][_0x5e20('0x1d')](),this[_0x5e20('0xf1')][_0x5e20('0x1d')](),this[_0x5e20('0xf2')][_0x5e20('0x1d')](),this[_0x5e20('0xc0')][_0x5e20('0x1d')](),this[_0x5e20('0x55')]=0x1,this[_0x5e20('0x6e')]=this['_revisionId'];}[_0x5e20('0xb1')](_0x356d3d,_0x207351=null){let _0x3678f0=null;_0x356d3d['is'](_0x5e20('0xb6'))||(_0x3678f0=new _0x1232af(_0x356d3d[_0x5e20('0xcf')],{'vid_start':null===_0x207351?this[_0x5e20('0x55')]++:_0x207351++}));const _0xe8e7da=[];for(const _0xd4c3e2 of _0x356d3d[_0x5e20('0xea')]())if(_0xd4c3e2['is'](_0x5e20('0x40'))){_0xe8e7da['push'](this['_makeIdsRoot'](_0xd4c3e2,_0x207351));const _0x239733=_0xe8e7da[_0xe8e7da[_0x5e20('0xe0')]-0x1];null!==_0x207351&&(_0x207351=_0x239733['is'](_0x5e20('0x40'),'$text')?_0x239733[_0x5e20('0x90')](_0x5e20('0x83'))+0x1:_0x239733[_0x5e20('0x90')](_0x5e20('0x91'))+0x1);}else for(let _0x46dd9b=0x0;_0x46dd9b<_0xd4c3e2['offsetSize'];_0x46dd9b++)_0xe8e7da[_0x5e20('0x1c')](new _0x1232af(_0x5e20('0xe2'),{'vid':null===_0x207351?this['_revisionId']++:_0x207351++}));if(_0x356d3d['is'](_0x5e20('0xb6'))){const _0x43470e=G(_0x356d3d[_0x5e20('0xe8')]);return _0x43470e['_insertChild'](0x0,_0xe8e7da),_0x43470e;}return _0x3678f0[_0x5e20('0xdd')]('vid_end',null===_0x207351?this['_revisionId']++:_0x207351++),_0x3678f0[_0x5e20('0xa4')](0x0,_0xe8e7da),_0x3678f0;}[_0x5e20('0xdf')](_0x17e942,_0x1f9e66,_0x3bb6cc){this[_0x5e20('0x6a')]();const {roots:_0x4289f5,markers:_0xed5fa,rootsAttributes:_0x46028f}=this['_savedMetaData'][_0x5e20('0x59')](_0x17e942);this[_0x5e20('0x89')]=new Map(_0x4289f5),this['_baseRootsAttributes']=new Map(_0x3c23d6(_0x46028f));for(const [_0xee0754,_0x30a977]of this[_0x5e20('0x89')])if(_0x5e20('0x9f')!==_0xee0754&&(this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0xee0754,q(_0x30a977)),this['_diffRootsAttributes']=new Map(_0x3c23d6(_0x46028f)),_0x3bb6cc)){const _0x53b932=this[_0x5e20('0x55')];this[_0x5e20('0xf1')][_0x5e20('0xd6')](_0xee0754,this[_0x5e20('0xb1')](_0x30a977)),this['_baseIdsRoots'][_0x5e20('0xd6')](_0xee0754,this[_0x5e20('0xb1')](_0x30a977,_0x53b932));}this[_0x5e20('0x6e')]=this[_0x5e20('0x55')],this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x5e20('0x9f'),q(this['_baseRoots']['get'](_0x5e20('0x9f')))),_0x3bb6cc&&this[_0x5e20('0xf1')][_0x5e20('0xd6')]('$graveyard',this[_0x5e20('0xb1')](this[_0x5e20('0x89')][_0x5e20('0x59')]('$graveyard')));for(const [_0x524411,_0x342c05]of _0xed5fa){const _0x549124=this[_0x5e20('0x89')][_0x5e20('0x59')](_0x342c05[_0x5e20('0xe8')]),_0x2389bb=this[_0x5e20('0x8f')][_0x5e20('0x59')](_0x342c05[_0x5e20('0xe8')]),_0x42846a=new _0x472eca(this[_0x5e20('0x51')](_0x342c05[_0x5e20('0xdb')],_0x549124),this[_0x5e20('0x51')](_0x342c05[_0x5e20('0xa5')],_0x549124)),_0x5e6973=this[_0x5e20('0x31')](_0x42846a,_0x2389bb);_0x549124['markers'][_0x5e20('0xd6')](_0x524411,_0x42846a),this[_0x5e20('0xc0')]['set'](_0x524411,_0x5e6973);}this[_0x5e20('0xbc')](_0x17e942,_0x1f9e66,_0x3bb6cc);}[_0x5e20('0xbc')](_0x44c7cc,_0x15e740,_0x18fd8e){for(const _0x38f833 of this[_0x5e20('0x80')][_0x5e20('0x105')](_0x44c7cc,_0x15e740))this[_0x5e20('0x4d')](_0x38f833,_0x18fd8e);for(const _0x23b5be of this[_0x5e20('0x8f')][_0x5e20('0x7d')]())_0x23b5be[_0x5e20('0x52')]['clear']();for(const [_0x113b52,_0x29b4e3]of this[_0x5e20('0xc0')]){this[_0x5e20('0x8f')][_0x5e20('0x59')](_0x29b4e3['root'][_0x5e20('0xe8')])[_0x5e20('0x52')][_0x5e20('0xd6')](_0x113b52,_0x29b4e3[_0x5e20('0x5f')]());}const _0x1fce10=new Map(),_0x4cfe29=new Map();for(const [_0x3ad339,_0x4da7bf]of this[_0x5e20('0x8f')])_0x1fce10[_0x5e20('0xd6')](_0x3ad339,q(_0x4da7bf)),_0x4cfe29[_0x5e20('0xd6')](_0x3ad339,this[_0x5e20('0x6b')]['get'](_0x3ad339));this[_0x5e20('0xc5')](_0x15e740,_0x1fce10,this[_0x5e20('0xc0')],_0x4cfe29);}[_0x5e20('0x22')](_0x2b6db8){const _0xec70a0=Array[_0x5e20('0x106')](this[_0x5e20('0xb0')][_0x5e20('0x15')]());_0xec70a0[_0x5e20('0x10d')]((_0x1aec18,_0x158466)=>_0x1aec18-_0x158466),_0xec70a0[_0x5e20('0xdc')]();for(const _0x59ff95 of _0xec70a0)if(_0x59ff95<_0x2b6db8)return _0x59ff95;return Number['NEGATIVE_INFINITY'];}[_0x5e20('0x10b')](_0x1df6c1,_0x22c43d){const _0x52bb1e=Array['from'](_0x22c43d['markers'])[_0x5e20('0xf')](([_0x27836d,_0x20369c])=>[_0x27836d,this[_0x5e20('0x31')](_0x20369c,_0x1df6c1)]);_0x1df6c1[_0x5e20('0x52')]=new Map(_0x52bb1e);}[_0x5e20('0x74')](_0x32201e){for(const _0xcfb3b9 of this['_markers']['values']()){const _0x2e6d95=_0xcfb3b9['getTransformedByOperation'](_0x32201e),_0x3618de=_0x472eca[_0x5e20('0xd')](_0x2e6d95);_0xcfb3b9[_0x5e20('0xdb')]=_0x3618de[_0x5e20('0xdb')],_0xcfb3b9[_0x5e20('0xa5')]=_0x3618de[_0x5e20('0xa5')];}}[_0x5e20('0x4d')](_0x25b6f7,_0x1ac249){if(_0x5e20('0x0')==_0x25b6f7[_0x5e20('0x9')]||'detachRoot'==_0x25b6f7[_0x5e20('0x9')])return void this[_0x5e20('0x1')](_0x25b6f7,_0x1ac249);if(_0x5e20('0x1b')==_0x25b6f7[_0x5e20('0x9')]){const _0x8440c0=_0x25b6f7[_0x5e20('0x1f')][_0x5e20('0x27')]['rootName'];this[_0x5e20('0x8f')][_0x5e20('0xb7')](_0x8440c0)||(this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x8440c0,G(_0x8440c0,!0x0)),this[_0x5e20('0x6b')][_0x5e20('0xd6')](_0x8440c0,{}),_0x1ac249&&this[_0x5e20('0xf1')]['set'](_0x8440c0,G(_0x8440c0,!0x0)));}else{if('addRootAttribute'==_0x25b6f7[_0x5e20('0x9')]||_0x5e20('0x94')==_0x25b6f7[_0x5e20('0x9')]||'changeRootAttribute'==_0x25b6f7['type'])return void this['_handleRootAttributeOperation'](_0x25b6f7);}const _0x443a22=this[_0x5e20('0x100')](_0x25b6f7,this[_0x5e20('0x8f')]);if(_0x5e20('0x81')!==_0x25b6f7[_0x5e20('0x9')]&&(_0x443a22[_0x5e20('0x23')](),this[_0x5e20('0x74')](_0x443a22)),_0x1ac249)switch(_0x443a22['type']){case'insert':this['_handleInsertOperation'](_0x25b6f7);break;case _0x5e20('0x3a'):case'remove':case _0x5e20('0xc7'):this[_0x5e20('0xcb')](_0x25b6f7);break;case _0x5e20('0x9d'):this[_0x5e20('0x99')](_0x25b6f7);break;case _0x5e20('0x13'):this[_0x5e20('0x20')](_0x25b6f7);break;case _0x5e20('0x81'):this[_0x5e20('0xd3')](_0x25b6f7);}}[_0x5e20('0x100')](_0x60f297,_0x76d528){const _0xe94266=_0x60f297[_0x5e20('0x5f')]();return _0xe94266[_0x5e20('0xe')]=_0x60f297[_0x5e20('0xe')],this['_fixOperation'](_0xe94266,_0x76d528),_0xe94266;}[_0x5e20('0xda')](_0x11ea6c){return _0x11ea6c[_0x5e20('0xf')](_0x19812d=>{const _0x43460f=this[_0x5e20('0xd5')](_0x19812d);return Number(_0x19812d[_0x5e20('0x93')][_0x5e20('0x90')](_0x43460f));});}['_generateTape'](_0x5f1842,_0x36f833){if(_0x5f1842['is'](_0x5e20('0x40'),_0x5e20('0xe2')))_0x36f833[_0x5e20('0x1c')]({'item':_0x5f1842,'type':_0x5e20('0x58')});else{_0x5f1842['is'](_0x5e20('0x40'))&&_0x36f833[_0x5e20('0x1c')]({'item':_0x5f1842,'type':_0x5e20('0x3e')});for(const _0x172c40 of _0x5f1842[_0x5e20('0xea')]())this[_0x5e20('0xd9')](_0x172c40,_0x36f833);_0x5f1842['is'](_0x5e20('0x40'))&&_0x36f833[_0x5e20('0x1c')]({'item':_0x5f1842,'type':_0x5e20('0xf9')});}return _0x36f833;}[_0x5e20('0x79')](){const _0x2b00b4=new Map(this[_0x5e20('0x10a')]),_0x3c0c28=new Map(_0x2b00b4),_0x43d4d4=new Map(),_0x4a9138={'insertions':{},'deletions':{}},_0x15570c={'insertions':{},'deletions':{}},_0x215d08=new Map(),_0xd69901=new Set([...this[_0x5e20('0x89')][_0x5e20('0x15')](),...this[_0x5e20('0x8f')][_0x5e20('0x15')]()]);_0xd69901[_0x5e20('0x2c')](_0x5e20('0x9f'));for(const _0x4a6d66 of _0xd69901){const _0x6b33ac=this[_0x5e20('0x8f')]['get'](_0x4a6d66)||G(_0x4a6d66,!0x1),_0x385d4c=this[_0x5e20('0x89')]['get'](_0x4a6d66)||G(_0x4a6d66,!0x1);_0x6b33ac[_0x5e20('0xb5')]()||_0x385d4c['isAttached']()?(_0x4a9138['insertions'][_0x4a6d66]=q(_0x6b33ac),_0x4a9138[_0x5e20('0xe1')][_0x4a6d66]=q(_0x385d4c),this[_0x5e20('0x10b')](_0x4a9138[_0x5e20('0xe1')][_0x4a6d66],_0x385d4c),this[_0x5e20('0x10b')](_0x4a9138[_0x5e20('0xd7')][_0x4a6d66],_0x6b33ac),_0x15570c[_0x5e20('0xd7')][_0x4a6d66]=this[_0x5e20('0xd9')](this[_0x5e20('0xf1')][_0x5e20('0x59')](_0x4a6d66),[]),_0x15570c[_0x5e20('0xe1')][_0x4a6d66]=this[_0x5e20('0xd9')](this['_baseIdsRoots'][_0x5e20('0x59')](_0x4a6d66)||G(_0x4a6d66,!0x1),[])):_0xd69901[_0x5e20('0x2c')](_0x4a6d66);}for(const _0xc893e0 of _0xd69901){const _0x155413=_0x15570c[_0x5e20('0xd7')][_0xc893e0];for(const _0x208871 of _0x155413){const _0x3e9e41=this['_getVidAttributeName'](_0x208871),_0x311ad9=_0x208871[_0x5e20('0x93')][_0x5e20('0x90')](_0x3e9e41);_0x3c0c28[_0x5e20('0x2c')](_0x311ad9),_0x311ad9>=this[_0x5e20('0x6e')]&&_0x43d4d4[_0x5e20('0xd6')](_0x311ad9,_0x2b00b4[_0x5e20('0x59')](_0x311ad9));}}for(const _0x5ee3ba of _0xd69901){const _0x38f522=_0x15570c[_0x5e20('0xd7')][_0x5ee3ba],_0x30b8c0=this[_0x5e20('0xda')](_0x15570c[_0x5e20('0xe1')][_0x5ee3ba]);let _0x3ccfbe=0x0;for(const _0x22d741 of _0x38f522){const _0x40555c=this[_0x5e20('0xd5')](_0x22d741),_0x274a9b=_0x22d741[_0x5e20('0x93')][_0x5e20('0x90')](_0x40555c);if(!_0x43d4d4[_0x5e20('0xb7')](_0x274a9b)&&!_0x215d08[_0x5e20('0xb7')](_0x274a9b)){if(_0x3c0c28[_0x5e20('0xb7')](_0x274a9b))_0x3ccfbe++;else{if(_0x274a9b!=_0x30b8c0[_0x3ccfbe]){const _0xc3df59=_0x2b00b4[_0x5e20('0x59')](_0x274a9b)||_0x2b00b4[_0x5e20('0x59')](_0x30b8c0[_0x3ccfbe]);for(;_0x274a9b!=_0x30b8c0[_0x3ccfbe];)_0x3c0c28[_0x5e20('0xb7')](_0x30b8c0[_0x3ccfbe])||(_0x215d08['set'](_0x30b8c0[_0x3ccfbe],_0xc3df59),_0x2b00b4[_0x5e20('0xd6')](_0x30b8c0[_0x3ccfbe],_0xc3df59)),_0x3ccfbe++;}_0x3ccfbe++;}}}}for(const _0x5ac0de of _0xd69901){const _0x803a06=_0x15570c[_0x5e20('0xd7')][_0x5ac0de];for(const _0x481056 of _0x803a06){const _0x5d2c94=this['_getVidAttributeName'](_0x481056),_0x205506=_0x481056[_0x5e20('0x93')]['getAttribute'](_0x5d2c94);if(_0x215d08[_0x5e20('0xb7')](_0x205506)){const _0x250e28=_0x215d08[_0x5e20('0x59')](_0x205506);_0x3c0c28[_0x5e20('0xb7')](_0x205506)||_0x3c0c28[_0x5e20('0xd6')](_0x205506,{..._0x250e28}),_0x43d4d4[_0x5e20('0xd6')](_0x205506,{..._0x250e28});}}}for(const _0x9deb4c of _0x3c0c28['keys']())_0x9deb4c>=this['_startingRevisionId']&&_0x3c0c28['delete'](_0x9deb4c);const _0x511620=new Map();for(const _0x36a726 of _0xd69901){let _0x292def=_0x15570c['insertions'][_0x36a726];for(const _0x21c058 of _0x292def)if(_0x21c058[_0x5e20('0x93')]['is'](_0x5e20('0x40'),_0x5e20('0x8'))){const _0x42136a=this['_getVidAttributeName'](_0x21c058),_0x472bde=_0x21c058[_0x5e20('0x93')][_0x5e20('0x90')](_0x42136a);if(_0x43d4d4[_0x5e20('0xb7')](_0x472bde)){const _0x104123=_0x21c058['item'][_0x5e20('0x82')]['parent']['getAttribute'](_0x5e20('0x66')),_0x1c848c=_0x511620['get'](_0x104123)||new Set();_0x1c848c['add'](_0x43d4d4[_0x5e20('0x59')](_0x472bde)['userId']),_0x511620[_0x5e20('0xd6')](_0x104123,_0x1c848c);}}_0x292def=_0x15570c[_0x5e20('0xe1')][_0x36a726];for(const _0x2f26da of _0x292def)if(_0x2f26da[_0x5e20('0x93')]['is']('element',_0x5e20('0x8'))){const _0x114fbe=this[_0x5e20('0xd5')](_0x2f26da),_0x4df7e1=_0x2f26da[_0x5e20('0x93')]['getAttribute'](_0x114fbe);if(_0x3c0c28[_0x5e20('0xb7')](_0x4df7e1)){const _0x5ad43f=_0x2f26da[_0x5e20('0x93')]['parent']['parent'][_0x5e20('0x90')](_0x5e20('0x66')),_0x1bd39d=_0x511620[_0x5e20('0x59')](_0x5ad43f)||new Set();_0x1bd39d[_0x5e20('0x104')](_0x3c0c28['get'](_0x4df7e1)[_0x5e20('0x36')]),_0x511620[_0x5e20('0xd6')](_0x5ad43f,_0x1bd39d);}}for(const _0x500d93 of _0x511620[_0x5e20('0x15')]())(_0x43d4d4[_0x5e20('0xb7')](_0x500d93)||_0x3c0c28[_0x5e20('0xb7')](_0x500d93))&&_0x511620[_0x5e20('0x2c')](_0x500d93);}for(const _0x1913ad of _0xd69901){const _0x4b72a0=_0x15570c[_0x5e20('0xd7')][_0x1913ad];let _0x438819=null,_0x53b4d4=null;for(const _0xee7314 of _0x4b72a0){const _0x1b8391=this['_getVidAttributeName'](_0xee7314),_0x5d64c9=_0xee7314['item']['getAttribute'](_0x1b8391),_0x3d361b=_0x511620['get'](_0x5d64c9);_0x3d361b&&'elementStart'==_0xee7314['type']&&(_0x438819=Array['from'](_0x3d361b)[0x0],_0x53b4d4=_0xee7314[_0x5e20('0x93')][_0x5e20('0x90')]('vid_end')),_0x438819&&(_0x3c0c28['set'](_0x5d64c9,{'userId':_0x438819}),_0x43d4d4[_0x5e20('0xd6')](_0x5d64c9,{'userId':_0x438819})),_0x5d64c9==_0x53b4d4&&(_0x438819=null,_0x53b4d4=null);}}const _0x290f50={},_0x255ec6=new Set();for(const _0x50d0f0 of _0xd69901){const _0xadfce1=_0x4a9138[_0x5e20('0xe1')][_0x50d0f0],_0x4705f8=_0x4a9138[_0x5e20('0xd7')][_0x50d0f0];for(const {userId:_0x2329f3}of this[_0x5e20('0xd2')][_0x5e20('0x7d')]())null!==_0x2329f3&&_0x255ec6[_0x5e20('0x104')](_0x2329f3);for(const {userId:_0x12a288}of this['_touchedRoots'][_0x5e20('0x7d')]())null!==_0x12a288&&_0x255ec6[_0x5e20('0x104')](_0x12a288);this[_0x5e20('0x64')](_0x4705f8,_0x15570c[_0x5e20('0xd7')][_0x50d0f0],_0x43d4d4,_0x5e20('0x9c'),_0x255ec6),this[_0x5e20('0x64')](_0xadfce1,_0x15570c[_0x5e20('0xe1')][_0x50d0f0],_0x3c0c28,_0x5e20('0x108'),_0x255ec6),_0x290f50[_0x50d0f0]={'insertions':this[_0x5e20('0xc8')](_0x4705f8),'deletions':this[_0x5e20('0xc8')](_0xadfce1),'attachChange':this[_0x5e20('0x24')]['get'](_0x50d0f0)||null,'attributesBefore':_0x3c23d6(this['_baseRootsAttributes'][_0x5e20('0x59')](_0x50d0f0))||{},'attributesAfter':_0x3c23d6(this[_0x5e20('0x6b')][_0x5e20('0x59')](_0x50d0f0))};}return{'diffData':_0x290f50,'authorsIds':Array[_0x5e20('0x106')](_0x255ec6)};}['_processRootBeforeSave'](_0x5e636a){for(const [,_0x887c5b]of _0x5e636a[_0x5e20('0x52')]){const _0x38072b=_0x887c5b[_0x5e20('0xdb')]['getAncestors']()[_0x5e20('0x5e')](_0x337341=>_0x5e20('0x8')==_0x337341['name']);for(const _0x538ea2 of _0x38072b)0x1==_0x538ea2[_0x5e20('0xba')]&&_0x538ea2['getChild'](0x0)['is'](_0x5e20('0x40'),_0x5e20('0xc3'))&&_0x538ea2[_0x5e20('0x11')](0x0)[_0x5e20('0xdd')](_0x5e20('0x102'),!0x0);}}[_0x5e20('0xc8')](_0x5a13a8){this[_0x5e20('0xc9')](_0x5a13a8);const _0x480a80=this['editor'][_0x5e20('0x49')][_0x5e20('0x14')](_0x5a13a8,{}),_0x384259=Array['from'](_0x480a80[_0x5e20('0xea')]())['map'](_0x338dfe=>this[_0x5e20('0xa7')](_0x338dfe));return JSON[_0x5e20('0x3c')](_0x384259);}[_0x5e20('0xa7')](_0x5f378a){if(_0x5f378a['is']('$text'))return _0x5f378a['data'];{const _0x111b0b=_0x5f378a;return{'type':Object['keys'](B)[_0x5e20('0xc2')](_0x5cfce9=>_0x5f378a instanceof B[_0x5cfce9]),'name':_0x111b0b[_0x5e20('0xcf')],'attributes':Array['from'](_0x111b0b[_0x5e20('0x2')]()),'children':Array[_0x5e20('0x106')](_0x111b0b['getChildren']())['map'](_0x279e83=>this[_0x5e20('0xa7')](_0x279e83))};}}[_0x5e20('0x64')](_0x31b326,_0xb5574d,_0x2e415e,_0x2d65c3,_0x41b050){let _0x19e09d=null,_0x3e597b=null,_0x2751c1=0x0;const _0x4f76d6=this['editor'][_0x5e20('0x87')];for(let _0x2d1e10=0x0;_0x2d1e10<_0xb5574d[_0x5e20('0xe0')];_0x2d1e10++){const _0x348a11=this['_getVidAttributeName'](_0xb5574d[_0x2d1e10]),_0x52cc54=_0xb5574d[_0x2d1e10][_0x5e20('0x93')][_0x5e20('0x90')](_0x348a11),_0x3ecfb5=_0x2e415e['get'](_0x52cc54),_0x29ac9d=_0x2d1e10==_0xb5574d[_0x5e20('0xe0')]-0x1;(!_0x19e09d&&_0x3ecfb5&&(_0x19e09d=_0x3ecfb5,_0x3e597b=_0xb5574d[_0x2d1e10]),_0x19e09d&&(!_0x3ecfb5||_0x3ecfb5[_0x5e20('0x36')]!=_0x19e09d[_0x5e20('0x36')]))&&(_0x9303a2(_0x3ecfb5,L(_0x3e597b,_0x31b326,_0x4f76d6),L(_0xb5574d[_0x2d1e10],_0x31b326,_0x4f76d6)),_0x19e09d=_0x3ecfb5||null,_0x3e597b=_0x3ecfb5?_0xb5574d[_0x2d1e10]:null),_0x19e09d&&_0x29ac9d&&_0x9303a2(_0x3ecfb5,L(_0x3e597b,_0x31b326,_0x4f76d6),W(_0xb5574d[_0x2d1e10],_0x31b326,_0x4f76d6));}function _0x9303a2(_0x45a6a7,_0x4d41f2,_0xdde57f){const _0x2bd60c=_0x19e09d['userId'],_0x3bd81e='revision:'+_0x2d65c3+':'+_0x2bd60c+':'+_0x2751c1++,_0x23ef9f=_0x4f76d6[_0x5e20('0x28')](_0x4d41f2,_0xdde57f);_0x31b326['markers'][_0x5e20('0xd6')](_0x3bd81e,_0x23ef9f),null!==_0x2bd60c&&_0x41b050[_0x5e20('0x104')](_0x2bd60c);}}['_getVidAttributeName'](_0x268d24){switch(_0x268d24['type']){case'elementStart':return _0x5e20('0x66');case _0x5e20('0xf9'):return'vid_end';default:return _0x5e20('0x83');}}[_0x5e20('0x4f')](_0x2d3238,_0x3c49d7){_0x2d3238[_0x5e20('0x21')]=null;for(const _0x400387 in _0x2d3238){const _0x1cae1a=_0x2d3238[_0x400387];if(_0x1cae1a instanceof _0x3af9e3){const _0x34c0ef=_0x3c49d7[_0x5e20('0x59')](_0x1cae1a[_0x5e20('0x27')]['rootName']);_0x2d3238[_0x400387]=this[_0x5e20('0x51')](_0x1cae1a,_0x34c0ef);}if(_0x1cae1a instanceof _0x472eca){const _0x3f21ea=_0x3c49d7[_0x5e20('0x59')](_0x1cae1a[_0x5e20('0x27')][_0x5e20('0xe8')]);_0x2d3238[_0x400387]=this[_0x5e20('0x31')](_0x1cae1a,_0x3f21ea);}_0x5e20('0x27')===_0x400387&&(_0x2d3238[_0x5e20('0x27')]=_0x3c49d7[_0x5e20('0x59')](_0x2d3238['root'][_0x5e20('0xe8')]));}}[_0x5e20('0x31')](_0x4a927f,_0x1aa344){return this[_0x5e20('0xbe')]['model']['createRange'](this['_fixPosition'](_0x4a927f[_0x5e20('0xdb')],_0x1aa344),this['_fixPosition'](_0x4a927f[_0x5e20('0xa5')],_0x1aa344));}[_0x5e20('0x51')](_0x81e81e,_0x4367d2){return this[_0x5e20('0xbe')][_0x5e20('0x87')][_0x5e20('0x5d')](_0x4367d2,_0x81e81e[_0x5e20('0x84')],_0x81e81e[_0x5e20('0x33')]);}[_0x5e20('0xaf')](_0x3655af){const _0x27def3=this[_0x5e20('0xf1')][_0x5e20('0x59')](_0x3655af[_0x5e20('0x1f')][_0x5e20('0x27')]['rootName']),_0x5aec1c=this['_fixPosition'](_0x3655af[_0x5e20('0x1f')],_0x27def3),_0x23b7fc=null===_0x3655af['_authorId']?null:_0x3655af['_authorId']||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x54bea5=_0x5aec1c[_0x5e20('0x82')],_0x1105e7=this[_0x5e20('0x55')],_0x451eb3=[];for(const _0x39b897 of _0x3655af[_0x5e20('0x17')])if(_0x39b897['is'](_0x5e20('0x40')))_0x451eb3[_0x5e20('0x1c')](this[_0x5e20('0xb1')](_0x39b897));else for(let _0x2efc0e=0x0;_0x2efc0e<_0x39b897[_0x5e20('0x8b')];_0x2efc0e++)_0x451eb3[_0x5e20('0x1c')](new _0x1232af(_0x5e20('0xe2'),{'vid':this['_revisionId']++}));const _0x4e9381=this['_revisionId'];for(let _0x12adfd=_0x1105e7;_0x12adfd<_0x4e9381;_0x12adfd++)this['_touched'][_0x5e20('0xd6')](_0x12adfd,{'userId':_0x23b7fc});_0x54bea5[_0x5e20('0xa4')](_0x5aec1c[_0x5e20('0x9a')],_0x451eb3);}[_0x5e20('0xcb')](_0x39696e){(_0x39696e=this[_0x5e20('0x100')](_0x39696e,this[_0x5e20('0xf1')]))[_0x5e20('0x23')]();const _0x15f5e2=null===_0x39696e[_0x5e20('0xe')]?null:_0x39696e[_0x5e20('0xe')]||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')]('Users')['me']['id'],_0x332d95=_0x39696e[_0x5e20('0x3d')](),_0x3a75cb=_0x332d95[_0x5e20('0x82')],_0x39c5f2=_0x332d95[_0x5e20('0x9a')];!function _0x500953(_0x254bdd,_0x3f0c1a,_0x223a80,_0x22f9fb){for(let _0x498378=_0x223a80;_0x498378<_0x22f9fb;_0x498378++){const _0x423458=_0x3f0c1a[_0x5e20('0x11')](_0x498378);_0x423458['is'](_0x5e20('0x40'),'$text')?_0x254bdd[_0x5e20('0xd6')](_0x423458[_0x5e20('0x90')](_0x5e20('0x83')),{'userId':_0x15f5e2}):(_0x254bdd[_0x5e20('0xd6')](_0x423458[_0x5e20('0x90')]('vid_start'),{'userId':_0x15f5e2}),_0x500953(_0x254bdd,_0x423458,0x0,_0x423458[_0x5e20('0xba')]),_0x254bdd['set'](_0x423458[_0x5e20('0x90')]('vid_end'),{'userId':_0x15f5e2}));}}(this[_0x5e20('0x10a')],_0x3a75cb,_0x39c5f2,_0x39c5f2+_0x39696e['howMany']);}[_0x5e20('0x99')](_0xadb308){const _0x4580ce=null===(_0xadb308=this[_0x5e20('0x100')](_0xadb308,this[_0x5e20('0xf1')]))['_authorId']?null:_0xadb308['_authorId']||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x140ecc=_0xadb308['targetPosition'][_0x5e20('0x82')],_0x4d71e3=_0xadb308[_0x5e20('0xee')][_0x5e20('0x82')],_0x198b61=_0x140ecc[_0x5e20('0x90')](_0x5e20('0x91')),_0x990cf9=_0x4d71e3[_0x5e20('0x90')](_0x5e20('0x66'));_0x140ecc[_0x5e20('0xdd')](_0x5e20('0x91'),_0x4d71e3[_0x5e20('0x90')]('vid_end')),_0x4d71e3[_0x5e20('0xdd')](_0x5e20('0x91'),_0x198b61),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x990cf9,{'userId':_0x4580ce}),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x198b61,{'userId':_0x4580ce}),_0xadb308[_0x5e20('0x23')]();}[_0x5e20('0x20')](_0x4dae14){const _0x3abf26=null===(_0x4dae14=this[_0x5e20('0x100')](_0x4dae14,this[_0x5e20('0xf1')]))[_0x5e20('0xe')]?null:_0x4dae14[_0x5e20('0xe')]||this['editor'][_0x5e20('0x54')][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x42bdd4=_0x4dae14[_0x5e20('0xe9')],_0x51ec70=_0x4dae14[_0x5e20('0x6d')][_0x5e20('0x82')];_0x4dae14[_0x5e20('0x23')]();const _0x46eb6c=_0x51ec70[_0x5e20('0x90')]('vid_end'),_0x2b6f30=_0x4dae14[_0x5e20('0x9b')][_0x5e20('0x5b')];if(_0x42bdd4){const _0x3506d8=_0x2b6f30[_0x5e20('0x90')]('vid_end'),_0x3b125a=_0x51ec70[_0x5e20('0x90')](_0x5e20('0x91'));_0x51ec70['_setAttribute']('vid_end',_0x3506d8),_0x2b6f30['_setAttribute']('vid_end',_0x3b125a),this['_touched'][_0x5e20('0xd6')](_0x51ec70[_0x5e20('0x90')]('vid_end'),{'userId':_0x3abf26}),this['_touched'][_0x5e20('0xd6')](_0x2b6f30[_0x5e20('0x90')](_0x5e20('0x66')),{'userId':_0x3abf26});}else{const _0x585602=this[_0x5e20('0x55')]++,_0x83c61d=this[_0x5e20('0x55')]++;_0x51ec70[_0x5e20('0xdd')](_0x5e20('0x91'),_0x585602),_0x2b6f30['_setAttribute']('vid_start',_0x83c61d),_0x2b6f30[_0x5e20('0xdd')](_0x5e20('0x91'),_0x46eb6c),this['_touched'][_0x5e20('0xd6')](_0x585602,{'userId':_0x3abf26}),this[_0x5e20('0x10a')][_0x5e20('0xd6')](_0x83c61d,{'userId':_0x3abf26});}}[_0x5e20('0xd3')](_0x594ceb){if(!_0x594ceb[_0x5e20('0xc')])return;const _0x555f16=(_0x594ceb=this['_cloneOperation'](_0x594ceb,this[_0x5e20('0x8f')]))[_0x5e20('0x103')]?_0x594ceb[_0x5e20('0x103')][_0x5e20('0x27')]:null,_0x224d02=_0x594ceb[_0x5e20('0x88')]?_0x594ceb[_0x5e20('0x88')]['root']:null;_0x555f16&&this[_0x5e20('0xc0')][_0x5e20('0x2c')](_0x594ceb[_0x5e20('0xcf')]),_0x224d02&&this[_0x5e20('0xc0')]['set'](_0x594ceb[_0x5e20('0xcf')],_0x594ceb['newRange']['clone']());const _0x738c3f=null===_0x594ceb[_0x5e20('0xe')]?null:_0x594ceb[_0x5e20('0xe')]||this['editor']['plugins'][_0x5e20('0x59')](_0x5e20('0x39'))['me']['id'],_0x479dd0=_0x594ceb[_0x5e20('0xcf')];if(!this['_touchedMarkers'][_0x5e20('0xb7')](_0x479dd0))return void this[_0x5e20('0xd2')][_0x5e20('0xd6')](_0x479dd0,{'range':_0x594ceb['oldRange'],'userId':_0x738c3f});const _0x7cd578=this[_0x5e20('0xd2')]['get'](_0x479dd0),_0x2d1213=_0x7cd578['range'],_0x2220dd=_0x594ceb[_0x5e20('0x88')];null==_0x2d1213&&null==_0x2220dd||_0x2d1213&&_0x2220dd&&_0x2d1213[_0x5e20('0x4c')](_0x2220dd)?this['_touchedMarkers'][_0x5e20('0x2c')](_0x594ceb[_0x5e20('0xcf')]):_0x7cd578['userId']=_0x738c3f;}[_0x5e20('0x1')](_0x578bf1,_0x4ed742){this[_0x5e20('0x8f')][_0x5e20('0xb7')](_0x578bf1[_0x5e20('0xe8')])?this[_0x5e20('0x8f')][_0x5e20('0x59')](_0x578bf1[_0x5e20('0xe8')])[_0x5e20('0xec')]=_0x578bf1[_0x5e20('0x96')]:(this[_0x5e20('0x8f')][_0x5e20('0xd6')](_0x578bf1[_0x5e20('0xe8')],G(_0x578bf1['rootName'],!0x0)),this[_0x5e20('0x6b')][_0x5e20('0xd6')](_0x578bf1['rootName'],{}),_0x4ed742&&this[_0x5e20('0xf1')][_0x5e20('0xd6')](_0x578bf1[_0x5e20('0xe8')],G(_0x578bf1[_0x5e20('0xe8')],!0x0)));const _0x4d5901=null===_0x578bf1[_0x5e20('0xe')]?null:_0x578bf1[_0x5e20('0xe')]||this[_0x5e20('0xbe')][_0x5e20('0x54')][_0x5e20('0x59')]('Users')['me']['id'],_0x19cd36=this[_0x5e20('0x24')][_0x5e20('0x59')](_0x578bf1[_0x5e20('0xe8')]);_0x19cd36&&_0x19cd36[_0x5e20('0x36')]===_0x4d5901?this[_0x5e20('0x24')][_0x5e20('0x2c')](_0x578bf1[_0x5e20('0xe8')]):this[_0x5e20('0x24')][_0x5e20('0xd6')](_0x578bf1[_0x5e20('0xe8')],{'userId':_0x4d5901,'isAttached':_0x578bf1[_0x5e20('0x96')]});}['_handleRootAttributeOperation'](_0x4015f3){const _0x137da1=this['_diffRootsAttributes'][_0x5e20('0x59')](_0x4015f3['root'][_0x5e20('0xe8')]);null===_0x4015f3[_0x5e20('0xa3')]?delete _0x137da1[_0x4015f3[_0x5e20('0xbd')]]:_0x137da1[_0x4015f3[_0x5e20('0xbd')]]=_0x4015f3[_0x5e20('0xa3')];}}function q(_0x2d0dc6){const _0x29dbaf=G(_0x2d0dc6[_0x5e20('0xe8')],_0x2d0dc6['isAttached']());for(const _0x1815ca of _0x2d0dc6['getChildren']()){const _0x2b7bfb=_0x1815ca[_0x5e20('0xac')](!0x0);_0x29dbaf['_appendChild'](_0x2b7bfb);}return _0x29dbaf;}function G(_0x30eef7,_0x5e9af4=!0x0){const _0x51e7a9=new _0x4ea7a3();return _0x51e7a9['rootName']=_0x30eef7,_0x51e7a9[_0x5e20('0xec')]=_0x5e9af4,_0x51e7a9['isAttached']=()=>_0x51e7a9[_0x5e20('0xec')],_0x51e7a9;}function L(_0x2eb5c1,_0x47952a,_0x42a262){const _0x1b914f='elementEnd'==_0x2eb5c1['type']?_0x42a262['createPositionAt'](_0x2eb5c1[_0x5e20('0x93')],_0x5e20('0xa5')):_0x42a262[_0x5e20('0x61')](_0x2eb5c1['item']);return _0x42a262['createPositionFromPath'](_0x47952a,_0x1b914f[_0x5e20('0x84')],_0x1b914f[_0x5e20('0x33')]);}function W(_0x483205,_0x1ee568,_0x59c0c2){const _0x56a9e7=_0x5e20('0x3e')==_0x483205['type']?_0x59c0c2[_0x5e20('0x1a')](_0x483205[_0x5e20('0x93')],0x0):_0x59c0c2[_0x5e20('0x65')](_0x483205[_0x5e20('0x93')]);return _0x59c0c2['createPositionFromPath'](_0x1ee568,_0x56a9e7[_0x5e20('0x84')],_0x56a9e7[_0x5e20('0x33')]);}
|
|
23
|
+
const _0x3eb7=['vid_end','_pendingAction','_execute','addRevisionData','deletion','_update','remove','reInit','splitPosition','getRevisions','_revisionId','_isAttached','elementEnd','_loadRevisionData','string','find','authors','_idsRoots','editor-initial-data-replaced-with-revision-data','isEqual','_clone','detachRoot','_markChanges','_removeMetaData','getChildren','_handleInsertOperation','toVersion','getChild','for','_processRootBeforeSave','roots','_handleRootOperation','_handleMarkerOperation','_handleMergeOperation','creator','PENDING_ACTION_REVISION_HISTORY','getRange','_baseIdsRoots','_setAttribute','revisionHistory.resumeUnsavedRevision','source','PendingActions','initial','merge','_source','stickiness','toData','authorsIds','_getBaseVids','_replaceEditorDataWithRevisionData','sourcePosition','Users','name','attributes','createPositionFromPath','useFillerType','changeRootAttribute','vid_start','adapter','_bufferedUpdates','getData','fromVersion','createRangeIn','history','_touchedRoots','addRevision','nodes','getIndex','addRootAttribute','getAttribute','loadState','getRevisionDocumentData','parent','get','afterInit','type','_createCurrentRevision','updateRevisions','getTransformedByOperation','sendBufferedUpdates','insertion','getRevision','version','insert','item','init','sort','range','push','deletions','isReady','data-revision-','add','has','forEach','_handleMoveOperation','userId','affectsData','getTime','_startingVersion','start','_applyOperations','attributesAfter','_reset','markers','filter','baseVersion','slice','getRootNames','position','elementStart','define','isAttached','attachChange','_revisionDataBuilder','resolve','offset','_setConversion','_startingRevisionId','_removeRevisionMarkers','getLatestVersion','_getState','previousPosition','hasContent','dataToMarker','insertions','length','_fixRange','Empty\x20document','_savedMetaData','_handleSplitOperation','clone','createPositionBefore','RealTimeCollaborationClient','getOperation','createRevision','markerToData','ready','revision:','$graveyard','parse','document','newRange','repository','toModel','_isPendingUpdate','delete','data','_diffRoots','_lastFrom','getWalker','_handleRootAttributeOperation','marked','default','processor','_fixPosition','_getViewJson','RevisionsRepository','collaboration.channelId','size','_prepareViewToSave','_calculateMetaData','move','vid','attributesBefore','_loadState','createPositionAt','removeRootAttribute','Initial\x20revision','_getPreviousFrom','_saveMetaData','_getFromVersion','_operations','_insertChild','requires','_baseRootsAttributes','max','isEnabled','offsetSize','getRoot','graveyardPosition','editor','key','_touched','getAncestors','getMovedRangeStart','set','root','paragraph','reverse','split','startsWith','_handleOperation','setSource','keepParagraph','_makeRevision','_cloneOperation','keys','_isInit','documentFragment','_makeIdsRoot','_loadedStateData','editing','_bufferUpdate','childCount','_getVidAttributeName','reinsert','getNodeByPath','config','NEGATIVE_INFINITY','_createFromRanges','values','getCurrentRevisionId','$text','_createInitialRevision','_findInsertionIndex','createdAt','buildRevisionData','from','clear','dataDowncast','trim','children','then','_continueCurrentRevision','_transformMarkers','initialData','locale','finally','getOperations','map','_touchedMarkers','shift','_authorId','_generateTape','_copyMarkers','oldRange','_diffRootsAttributes','targetPosition','diffData','_appendChild','_removePendingAction','view','_markers','rootsAttributes','isAdd','_lastTo','newValue','_initialRevisionId','rootName','getUser','marker','tableCell','_addPendingAction','_fixOperation','element','howMany','path','creatorId','fromEntries','setRevisionData','plugins','_baseRoots','end','model','currentRevision','insertionPosition','conversion','addRoot'];(function(_0x5d3b1f,_0x3eb709){const _0x1efa6f=function(_0x5ae1e1){while(--_0x5ae1e1){_0x5d3b1f['push'](_0x5d3b1f['shift']());}};_0x1efa6f(++_0x3eb709);}(_0x3eb7,0x1ec));const _0x1efa=function(_0x5d3b1f,_0x3eb709){_0x5d3b1f=_0x5d3b1f-0x0;let _0x1efa6f=_0x3eb7[_0x5d3b1f];return _0x1efa6f;};import{Users as _0x611cc4}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x28a56d,PendingActions as _0x41fc44}from'ckeditor5/src/core';import{logWarning as _0x423018,uid as _0x5a49bf}from'ckeditor5/src/utils';import{Position as _0x40ca33,Range as _0x4bae08,Element as _0x54f8f9,DocumentFragment as _0x638994,ViewText as _0x9be36c,ViewElement as _0x145c57,ViewContainerElement as _0x5ce86e,ViewAttributeElement as _0x1f4cba,ViewEmptyElement as _0x4fac98,ViewRawElement as _0x9e905e,ViewUIElement as _0x322bd4,ViewDocumentFragment as _0x394920}from'ckeditor5/src/engine';import _0x2ed9bd from'./revisionsrepository';import{getTranslation as _0xf72c0}from'./utils/common-translations';import{cloneDeep as _0x3876ea,isEqual as _0x59b0dd}from'lodash-es';const B={'c':_0x5ce86e,'a':_0x1f4cba,'e':_0x4fac98,'r':_0x9e905e,'u':_0x322bd4};export default class l extends _0x28a56d{static get['pluginName'](){return'RevisionTracker';}static get[_0x1efa('0xdc')](){return[_0x611cc4,_0x2ed9bd,_0x41fc44];}constructor(_0x8ac3e3){super(_0x8ac3e3),this['adapter']=null,this[_0x1efa('0x2a')]=null,this[_0x1efa('0xa0')]=new H(this[_0x1efa('0xe3')]),this[_0x1efa('0x19')]=this['editor'][_0x1efa('0xfe')][_0x1efa('0x77')](_0x1efa('0xcc'))||_0x1efa('0x58'),this[_0x1efa('0x69')]=new Map(),this[_0x1efa('0xf7')]=null;const _0x430992=_0x5a49bf();this[_0x1efa('0x5a')]={'history':this['editor'][_0x1efa('0x29')]['document'][_0x1efa('0x6d')],'getLatestVersion':()=>Promise[_0x1efa('0xa1')](this[_0x1efa('0xe3')]['model'][_0x1efa('0xbb')][_0x1efa('0x80')]),'getCurrentRevisionId':()=>_0x430992},this['set'](_0x1efa('0x88'),!0x1),this[_0x1efa('0xe8')](_0x1efa('0xdf'),!0x0),this['set'](_0x1efa('0xbf'),!0x1),this['editor'][_0x1efa('0xfe')][_0x1efa('0x9d')](_0x1efa('0x55'),!0x0),this[_0x1efa('0xe3')]['conversion'][_0x1efa('0x4a')]('upcast')[_0x1efa('0xaa')]({'view':'revision'});}[_0x1efa('0x83')](){this[_0x1efa('0xbd')]=this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0xcb')),this[_0x1efa('0xa3')](),this[_0x1efa('0xe3')]['data']['on'](_0x1efa('0xb7'),()=>{const _0x45cf37=this[_0x1efa('0xbd')]['getRevision'](0x0),_0x2af00e=_0x45cf37&&null===_0x45cf37['creator']?_0x45cf37:null;if(this[_0x1efa('0x1')]=!!_0x2af00e&&this[_0x1efa('0xe3')][_0x1efa('0xfe')]['get'](_0x1efa('0x55')),this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x8b')](_0x1efa('0xb3'))){const _0x15e313=this['_source'][_0x1efa('0x102')](),_0x294db0=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x15e313);if(_0x294db0)this['_startingVersion']=_0x294db0[_0x1efa('0x6b')],this[_0x1efa('0x1')]=!0x1;else{const _0x50ade8=this[_0x1efa('0x5a')][_0x1efa('0x6d')][_0x1efa('0xda')]['find'](_0x501e43=>!_0x501e43[_0x1efa('0xf4')]),_0x16378e=_0x50ade8?_0x50ade8[_0x1efa('0x98')]:this[_0x1efa('0x5a')][_0x1efa('0x6d')][_0x1efa('0x80')];_0x45cf37?(_0x45cf37['toVersion']<_0x16378e&&_0x45cf37[_0x1efa('0x33')]({'toVersion':_0x16378e}),this[_0x1efa('0x1')]?(this[_0x1efa('0x5a')][_0x1efa('0x102')]=()=>_0x2af00e['id'],this[_0x1efa('0x91')]=_0x2af00e[_0x1efa('0x6b')]):(this[_0x1efa('0x91')]=_0x45cf37[_0x1efa('0x48')],this[_0x1efa('0x1')]=!0x1)):(this[_0x1efa('0x91')]=_0x16378e,this[_0x1efa('0x1')]=!0x1);}}else _0x2af00e&&(this[_0x1efa('0xe3')]['model'][_0x1efa('0xbb')][_0x1efa('0x6d')][_0x1efa('0x80')]=Math[_0x1efa('0xde')](_0x2af00e[_0x1efa('0x48')],this[_0x1efa('0xe3')]['model'][_0x1efa('0xbb')][_0x1efa('0x6d')][_0x1efa('0x80')]),_0x2af00e[_0x1efa('0x6b')]===_0x2af00e[_0x1efa('0x48')]?(0x0!==_0x2af00e[_0x1efa('0x6b')]&&(this[_0x1efa('0x5a')][_0x1efa('0x102')]=()=>_0x2af00e['id']),this[_0x1efa('0x1')]=!0x1):this['_continueCurrentRevision']&&(this[_0x1efa('0x5a')]['getCurrentRevisionId']=()=>_0x2af00e['id'],this[_0x1efa('0x91')]=_0x2af00e[_0x1efa('0x6b')])),this[_0x1efa('0x1')]||(this['_startingVersion']=this[_0x1efa('0xe3')]['model']['document'][_0x1efa('0x80')]);this[_0x1efa('0xa0')]['init'](this[_0x1efa('0x5a')][_0x1efa('0x6d')]),this['_createInitialRevision'](this[_0x1efa('0x91')]),this[_0x1efa('0x7a')](this[_0x1efa('0x91')]),this[_0x1efa('0x68')]&&this[_0x1efa('0x7d')]();}),this['bind']('isReady')['to'](this,_0x1efa('0xbf'),_0x3d0e3b=>!_0x3d0e3b);}async[_0x1efa('0x78')](){if(this['repository']['length']>0x0){const _0x4d9616=this[_0x1efa('0xbd')][_0x1efa('0x7f')](0x0),_0x3bd752=await this[_0x1efa('0x75')](_0x4d9616),_0x2974f8=await this['getRevisionRootsAttributes'](_0x4d9616);this['_replaceEditorDataWithRevisionData'](_0x3bd752,_0x2974f8);}}[_0x1efa('0xef')](_0x55b6ce){this['_source']=_0x55b6ce;}async['update'](){const _0x311af3=await this[_0x1efa('0x5a')][_0x1efa('0xa6')]();if(_0x311af3>this['currentRevision'][_0x1efa('0x48')]){await this[_0x1efa('0xd3')]();const _0x396e1a=this['buildRevisionData']({'revision':this[_0x1efa('0x2a')],'to':_0x311af3});_0x396e1a[_0x1efa('0x3e')]=_0x396e1a[_0x1efa('0x5d')]['map'](_0x3f165b=>this[_0x1efa('0xe3')]['plugins'][_0x1efa('0x77')](_0x1efa('0x61'))['getUser'](_0x3f165b)),this[_0x1efa('0x2a')][_0x1efa('0x33')](_0x396e1a);}}async[_0x1efa('0xd3')](){this['_continueCurrentRevision']&&!this[_0x1efa('0xf7')]&&(await this[_0x1efa('0x3b')](this[_0x1efa('0x2a')]),this[_0x1efa('0xa0')][_0x1efa('0x74')](this[_0x1efa('0x2a')]),this[_0x1efa('0xf7')]={'fromVersion':this['currentRevision'][_0x1efa('0x6b')],'authors':this[_0x1efa('0x2a')]['authors'][_0x1efa('0x99')]()});}async['saveRevision'](_0x21888e={},_0x1f7e9d=null){const _0x32191f=[];await this[_0x1efa('0xd3')](),this[_0x1efa('0x1')]=!0x1,_0x1f7e9d>this['currentRevision'][_0x1efa('0x48')]&&(_0x1f7e9d=null),null===_0x1f7e9d&&(_0x1f7e9d=await this[_0x1efa('0x5a')][_0x1efa('0xa6')]());const _0x2de304=this[_0x1efa('0xd9')](_0x1f7e9d),_0x1586a8=this[_0x1efa('0x107')]({'from':_0x2de304,'to':_0x1f7e9d});if(this[_0x1efa('0x2a')][_0x1efa('0x48')]<_0x1f7e9d){const _0x22e0f1=this[_0x1efa('0x107')]({'revision':this[_0x1efa('0x2a')],'from':_0x1f7e9d,'to':_0x1f7e9d});_0x22e0f1['authors']=[],_0x22e0f1['authorsIds']=[],_0x22e0f1['id']=this[_0x1efa('0x2a')]['id'],this[_0x1efa('0x2a')][_0x1efa('0x33')](_0x22e0f1,!0x0),delete _0x22e0f1[_0x1efa('0x3e')],_0x32191f[_0x1efa('0x86')](_0x22e0f1);}_0x21888e[_0x1efa('0x23')]=this['editor'][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0x21888e[_0x1efa('0x62')]=_0x21888e[_0x1efa('0x62')]||null,_0x21888e['id']=_0x21888e['id']||_0x5a49bf(),_0x21888e={..._0x21888e,..._0x1586a8};const _0x1faca4=this[_0x1efa('0x31')](_0x21888e);_0x32191f['push'](_0x21888e);const _0x27eb94=this[_0x1efa('0xbd')][_0x1efa('0x71')](_0x1faca4);if(0x0!==_0x27eb94){const _0x2dc8a9=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x27eb94-0x1);if(_0x2dc8a9[_0x1efa('0x6b')]!==_0x1f7e9d){const _0x451123=this[_0x1efa('0xa0')]['getData'](_0x1f7e9d,_0x2dc8a9[_0x1efa('0x48')]),_0x343a75={'id':_0x2dc8a9['id'],'diffData':_0x451123[_0x1efa('0x10')],'authorsIds':_0x451123[_0x1efa('0x5d')],'authors':_0x451123[_0x1efa('0x5d')][_0x1efa('0x7')](_0x49be61=>this[_0x1efa('0xe3')]['plugins'][_0x1efa('0x77')](_0x1efa('0x61'))[_0x1efa('0x1b')](_0x49be61)),'fromVersion':_0x1f7e9d};_0x2dc8a9===this[_0x1efa('0x2a')]&&(_0x343a75[_0x1efa('0x106')]=new Date(_0x21888e[_0x1efa('0x106')][_0x1efa('0x90')]()+0xa)),_0x2dc8a9[_0x1efa('0x33')](_0x343a75,!0x0),delete _0x343a75[_0x1efa('0x3e')],_0x32191f['push'](_0x343a75);}}if(this[_0x1efa('0x68')]){for(const _0x65a7e1 of _0x32191f)this[_0x1efa('0xf9')](_0x65a7e1['id'],_0x65a7e1,!0x0);this[_0x1efa('0x7d')]();}return _0x1faca4;}[_0x1efa('0x31')](_0xff0a9f){const _0x4fd357=this[_0x1efa('0xbd')][_0x1efa('0xb5')](_0xff0a9f);return this['adapter']&&_0x4fd357['on'](_0x1efa('0x33'),(_0x566076,_0x44c157,_0x5bff92)=>{_0x5bff92||(this['_bufferUpdate'](_0x44c157['id'],_0x44c157,!0x0),this['sendBufferedUpdates']());}),this[_0x1efa('0xbd')][_0x1efa('0x6f')](_0x4fd357,this['_findInsertionIndex'](_0x4fd357)),_0x4fd357;}async[_0x1efa('0x75')](_0x5299e4){await this[_0x1efa('0x3b')](_0x5299e4);const _0x3cff7c={};for(const _0x44f48c in _0x5299e4['diffData']){if(_0x5299e4['diffData'][_0x44f48c]['attachChange']&&!_0x5299e4['diffData'][_0x44f48c][_0x1efa('0x9f')][_0x1efa('0x9e')])continue;const _0x572b64=this[_0x1efa('0xa5')](JSON[_0x1efa('0xba')](_0x5299e4[_0x1efa('0x10')][_0x44f48c][_0x1efa('0xab')])),_0xdca219=this['editor'][_0x1efa('0xf8')][_0x1efa('0x13')]['document'],_0x1c7d2f=new _0x394920(_0xdca219,_0x572b64[_0x1efa('0x7')](_0x3df812=>J(_0x3df812,this[_0x1efa('0xe3')])));this[_0x1efa('0xe3')][_0x1efa('0xc1')]['processor'][_0x1efa('0x65')](_0x1efa('0xc6')),_0x3cff7c[_0x44f48c]=this[_0x1efa('0xe3')][_0x1efa('0xc1')][_0x1efa('0xc8')][_0x1efa('0x5c')](_0x1c7d2f),this['editor'][_0x1efa('0xc1')]['processor'][_0x1efa('0x65')](_0x1efa('0xc7'));}return _0x3cff7c;}async['getRevisionRootsAttributes'](_0x48f44d){await this[_0x1efa('0x3b')](_0x48f44d);const _0x46fcd9={};for(const _0x49189e in _0x48f44d['diffData'])_0x48f44d['diffData'][_0x49189e][_0x1efa('0x9f')]&&!_0x48f44d[_0x1efa('0x10')][_0x49189e][_0x1efa('0x9f')][_0x1efa('0x9e')]||(_0x46fcd9[_0x49189e]=_0x48f44d['diffData'][_0x49189e][_0x1efa('0x94')]||{});return _0x46fcd9;}[_0x1efa('0x7d')](){if(0x0===this['_bufferedUpdates'][_0x1efa('0xcd')])return;if(this[_0x1efa('0xbf')])return;let _0x4679fc=Array[_0x1efa('0x108')](this[_0x1efa('0x69')][_0x1efa('0x101')]());this['_bufferedUpdates']['clear']();for(let _0x3192c5=0x0;_0x3192c5<_0x4679fc[_0x1efa('0xac')];_0x3192c5++){const _0x23dad1=_0x4679fc[_0x3192c5];let _0x5c579b=!0x1;for(const _0x161342 of Object[_0x1efa('0xf3')](_0x23dad1))void 0x0===_0x23dad1[_0x161342]?delete _0x23dad1[_0x161342]:'id'!==_0x161342&&(_0x5c579b=!0x0);_0x5c579b||(_0x4679fc[_0x3192c5]=null);}if(_0x4679fc=_0x4679fc[_0x1efa('0x97')](_0x3d0585=>null!==_0x3d0585),!_0x4679fc['length'])return;for(let _0x72a87f=0x0;_0x72a87f<_0x4679fc[_0x1efa('0xac')];_0x72a87f++){const _0x27c393=_0x4679fc[_0x72a87f];void 0x0!==_0x27c393[_0x1efa('0x6b')]&&void 0x0===_0x27c393[_0x1efa('0x48')]&&(_0x27c393[_0x1efa('0x48')]=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x27c393['id'])[_0x1efa('0x48')]),void 0x0!==_0x27c393[_0x1efa('0x48')]&&void 0x0===_0x27c393['fromVersion']&&(_0x27c393[_0x1efa('0x6b')]=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x27c393['id'])[_0x1efa('0x6b')]);}const _0x313e19=this[_0x1efa('0xe3')]['config'][_0x1efa('0x77')]('collaboration.channelId');this[_0x1efa('0xbf')]=!0x0,this['_addPendingAction'](),this['adapter'][_0x1efa('0x7b')](_0x4679fc,_0x313e19)[_0x1efa('0x5')](()=>{this[_0x1efa('0xbf')]=!0x1;})['then'](_0x276bab=>{if(_0x276bab)for(const _0xe51aba of _0x276bab)this[_0x1efa('0x25')]({'id':_0xe51aba['id'],'createdAt':_0xe51aba[_0x1efa('0x106')]});this[_0x1efa('0x12')](),this[_0x1efa('0x7d')]();});}[_0x1efa('0x5f')](_0x3dcae0,_0x261072){let _0x254359=this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0x77')]('initialData'),_0x5773bf=this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0x77')](_0x1efa('0x15'));if(void 0x0===_0x254359){_0x254359={};for(const _0x3f6622 of this[_0x1efa('0xe3')][_0x1efa('0x29')]['document'][_0x1efa('0x9a')]())_0x254359[_0x3f6622]='';}if(_0x1efa('0x3c')==typeof _0x254359&&(_0x254359={'main':_0x254359}),void 0x0===_0x5773bf){_0x5773bf={};for(const _0x42ae46 of this[_0x1efa('0xe3')]['model']['document'][_0x1efa('0x9a')]())_0x5773bf[_0x42ae46]={};}let _0x316505=!0x1;const _0x25aead=Object[_0x1efa('0xf3')](_0x254359),_0x366589=Object['keys'](_0x3dcae0);for(const _0x28911a of _0x25aead){if(_0x254359[_0x28911a]!==_0x3dcae0[_0x28911a]&&''!==_0x254359[_0x28911a][_0x1efa('0x10b')]()){_0x316505=!0x0;break;}if(!_0x59b0dd(_0x5773bf[_0x28911a],_0x261072[_0x28911a])&&Object[_0x1efa('0xf3')](_0x5773bf[_0x28911a])['length']>0x0){_0x316505=!0x0;break;}}_0x316505||(_0x316505=_0x366589['some'](_0x36598f=>!this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xbb')]['getRoot'](_0x36598f))),_0x316505&&_0x423018(_0x1efa('0x40'),{'editorData':_0x254359,'editorRootsAttributes':_0x5773bf,'revisionData':_0x3dcae0,'revisionRootsAttributes':_0x261072}),this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0xe8')](_0x1efa('0x3'),_0x3dcae0),this[_0x1efa('0xe3')][_0x1efa('0xfe')][_0x1efa('0xe8')](_0x1efa('0x15'),_0x261072);}[_0x1efa('0x1e')](){if(!this['_pendingAction']){const _0x135225=this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x57'));this[_0x1efa('0x2f')]=_0x135225[_0x1efa('0x8a')](_0xf72c0(this[_0x1efa('0xe3')]['locale'],_0x1efa('0x51')));}}[_0x1efa('0x12')](){this[_0x1efa('0x2f')]&&(this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x57'))[_0x1efa('0x34')](this[_0x1efa('0x2f')]),this[_0x1efa('0x2f')]=null);}[_0x1efa('0x105')](_0x358456){const _0x4ee776=this[_0x1efa('0xbd')][_0x1efa('0x37')]();_0x4ee776[_0x1efa('0xeb')]();let _0x51c149=0x0;for(;_0x51c149<_0x4ee776[_0x1efa('0xac')];){const _0x3c02d0=_0x4ee776[_0x51c149];if(_0x3c02d0===this[_0x1efa('0x2a')]){_0x51c149++;continue;}if(_0x3c02d0['id']===this[_0x1efa('0x19')])break;const _0x439ead=_0x358456[_0x1efa('0x48')]-_0x3c02d0[_0x1efa('0x48')]||_0x358456[_0x1efa('0x6b')]-_0x3c02d0['fromVersion'];if(_0x439ead>0x0)break;if(_0x439ead<0x0)_0x51c149++;else{if(!_0x358456['creator']&&_0x3c02d0[_0x1efa('0x50')])break;if(_0x3c02d0['creator']||!_0x358456[_0x1efa('0x50')]){if(_0x358456[_0x1efa('0x106')]>_0x3c02d0[_0x1efa('0x106')])break;_0x51c149++;}else _0x51c149++;}}return _0x51c149;}[_0x1efa('0x25')](_0x43c9ea){const _0x41d553=this[_0x1efa('0xbd')]['getRevision'](_0x43c9ea['id']);if(_0x43c9ea[_0x1efa('0x106')]&&(_0x43c9ea[_0x1efa('0x106')]=new Date(_0x43c9ea[_0x1efa('0x106')])),_0x43c9ea['authorsIds']){const _0x2ef73e=this[_0x1efa('0xe3')][_0x1efa('0x26')]['get'](_0x1efa('0x61'));_0x43c9ea[_0x1efa('0x3e')]=_0x43c9ea['authorsIds']['map'](_0x5c8271=>_0x2ef73e['getUser'](_0x5c8271));}_0x41d553[_0x1efa('0x33')](_0x43c9ea,!0x0);}[_0x1efa('0x107')]({revision:_0x5e9801=null,from:_0x6c845a=null,to:_0x4a4f2f=null}){_0x6c845a=null!==_0x6c845a?_0x6c845a:_0x5e9801[_0x1efa('0x6b')],_0x4a4f2f=null!==_0x4a4f2f?_0x4a4f2f:_0x5e9801[_0x1efa('0x48')];const _0x3ff27a=this[_0x1efa('0xa0')][_0x1efa('0x6a')](_0x6c845a,_0x4a4f2f),_0x4f2b3e={'diffData':_0x3ff27a['diffData'],'authorsIds':_0x3ff27a[_0x1efa('0x5d')],'fromVersion':_0x6c845a,'toVersion':_0x4a4f2f};if(!_0x5e9801||_0x4a4f2f!==_0x5e9801[_0x1efa('0x48')]){const _0x465d95=_0x4a4f2f-0x1,_0x4151f2=this[_0x1efa('0x5a')][_0x1efa('0x6d')][_0x1efa('0xb4')](_0x465d95);_0x4f2b3e[_0x1efa('0x106')]=_0x4151f2&&_0x4151f2[_0x1efa('0x106')]||new Date();}if(this[_0x1efa('0xf7')]&&_0x6c845a===this[_0x1efa('0xf7')][_0x1efa('0x6b')])for(const _0x102b11 of this[_0x1efa('0xf7')]['authors'])_0x4f2b3e[_0x1efa('0x5d')]['includes'](_0x102b11['id'])||_0x4f2b3e[_0x1efa('0x5d')][_0x1efa('0x86')](_0x102b11['id']);return _0x4f2b3e;}[_0x1efa('0x3b')](_0x21662f){if(!_0x21662f||_0x21662f[_0x1efa('0x10')])return Promise[_0x1efa('0xa1')]();{const _0x1b6c60=this[_0x1efa('0xe3')][_0x1efa('0xfe')]['get'](_0x1efa('0xcc'));return this[_0x1efa('0x68')][_0x1efa('0x7f')]({'channelId':_0x1b6c60,'revisionId':_0x21662f['id']})[_0x1efa('0x0')](_0x206059=>{_0x21662f['diffData']=_0x206059[_0x1efa('0x10')];});}}[_0x1efa('0xf9')](_0x31831c,_0x4ce973,_0x519dbb){if(this['_bufferedUpdates'][_0x1efa('0x8b')](_0x31831c)){const _0x21c9ba=this[_0x1efa('0x69')][_0x1efa('0x77')](_0x31831c);_0x4ce973=_0x519dbb?{..._0x21c9ba,..._0x4ce973}:{..._0x4ce973,..._0x21c9ba};}this[_0x1efa('0x69')][_0x1efa('0xe8')](_0x31831c,_0x4ce973);}[_0x1efa('0xd9')](_0xf25a30){const _0xa575bc=this[_0x1efa('0xbd')]['getRevisions']();_0xa575bc['reverse'](),_0xa575bc[_0x1efa('0x9')]();const _0xf1d636=_0xa575bc['find'](_0xe03803=>_0xe03803['toVersion']<=_0xf25a30)[_0x1efa('0x48')];return _0xf1d636<this[_0x1efa('0x91')]?this[_0x1efa('0x91')]:_0xf1d636;}[_0x1efa('0x104')](_0x120bed){const _0x5422af=this['repository']['getRevision'](this[_0x1efa('0xbd')][_0x1efa('0xac')]-0x1);if(_0x5422af)this[_0x1efa('0x19')]=_0x5422af['id'];else{const _0x21ef3f=!this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xbb')][_0x1efa('0x4c')]['find'](_0x408213=>this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xa9')](_0x408213)),_0xd915f0=this['editor'][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0x2e067c=_0xf72c0(this['editor'][_0x1efa('0x4')],_0x21ef3f?_0x1efa('0xae'):_0x1efa('0xd6'));this['_makeRevision']({'from':_0x120bed,'to':_0x120bed,'id':this[_0x1efa('0x19')],'name':_0x2e067c,'creatorId':_0xd915f0});}}[_0x1efa('0x7a')](_0x377d2c){const _0x492177=this[_0x1efa('0x5a')]['getCurrentRevisionId']();this[_0x1efa('0x2a')]=this[_0x1efa('0xbd')][_0x1efa('0x7f')](_0x492177),this[_0x1efa('0x2a')]||(this['currentRevision']=this[_0x1efa('0xf1')]({'from':_0x377d2c,'to':_0x377d2c,'id':_0x492177,'name':'','creatorId':null}));}[_0x1efa('0xf1')]({name:_0x22a743,from:_0x19fec9,to:_0x5a2ca1,creatorId:_0xc2dace,id:_0x594302}){const _0x278bd9=this[_0x1efa('0x107')]({'from':_0x19fec9,'to':_0x5a2ca1});_0x278bd9[_0x1efa('0x62')]=_0x22a743,_0x278bd9[_0x1efa('0x23')]=_0xc2dace,_0x278bd9['id']=_0x594302;const _0x34b4b2=this[_0x1efa('0x31')](_0x278bd9);return this[_0x1efa('0x68')]&&this[_0x1efa('0xf9')](_0x278bd9['id'],_0x278bd9,!0x0),_0x34b4b2;}['_setConversion'](){this[_0x1efa('0xe3')][_0x1efa('0x2c')]['for'](_0x1efa('0x10a'))[_0x1efa('0xb6')]({'model':'revision'});}[_0x1efa('0xa5')](_0x3cdea4){return(_0x3cdea4=_0x3cdea4[_0x1efa('0x97')](_0x239fec=>!_0x239fec[_0x1efa('0x62')]||'revision-start'!==_0x239fec[_0x1efa('0x62')]&&'revision-end'!==_0x239fec[_0x1efa('0x62')]))[_0x1efa('0x8c')](_0x2a274c=>{'string'!=typeof _0x2a274c&&(_0x2a274c[_0x1efa('0x10c')]=this[_0x1efa('0xa5')](_0x2a274c[_0x1efa('0x10c')]),_0x2a274c['attributes']=_0x2a274c[_0x1efa('0x63')]['filter'](_0x41a209=>!_0x41a209[0x0][_0x1efa('0xed')](_0x1efa('0x89'))));}),_0x3cdea4;}}function J(_0xccfd9f,_0x22dd73){const _0x7a54ca=_0x22dd73[_0x1efa('0xf8')]['view'][_0x1efa('0xbb')];if(_0x1efa('0x3c')==typeof _0xccfd9f)return new _0x9be36c(_0x7a54ca,_0xccfd9f);{const _0x2b2973=_0xccfd9f[_0x1efa('0x10c')][_0x1efa('0x7')](_0x47fc1a=>J(_0x47fc1a,_0x22dd73));return new(B[_0xccfd9f[(_0x1efa('0x79'))]]||_0x145c57)(_0x7a54ca,_0xccfd9f[_0x1efa('0x62')],_0xccfd9f[_0x1efa('0x63')],_0x2b2973);}}class H{constructor(_0x4ab63f){this[_0x1efa('0xe3')]=_0x4ab63f,this[_0x1efa('0xaf')]=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this[_0x1efa('0xc2')]=new Map(),this[_0x1efa('0xe')]=new Map(),this['_baseRoots']=new Map(),this[_0x1efa('0xdd')]=new Map(),this[_0x1efa('0x3f')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x1efa('0xe5')]=new Map(),this[_0x1efa('0x8')]=new Map(),this[_0x1efa('0x6e')]=new Map(),this[_0x1efa('0x38')]=0x1;}[_0x1efa('0x83')](_0x4dd269){this[_0x1efa('0x56')]=_0x4dd269;const _0x339bd6=new Map(),_0x4feb06=new Map(),_0x1db136=this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0xbb')][_0x1efa('0x4c')][_0x1efa('0x7')](_0x494efd=>_0x494efd[_0x1efa('0x1a')]);for(const _0x118287 of _0x1db136){const _0x45a49b=this[_0x1efa('0xe3')]['model']['document'][_0x1efa('0xe1')](_0x118287),_0x454811=q(_0x45a49b);_0x339bd6['set'](_0x118287,_0x454811),_0x4feb06[_0x1efa('0xe8')](_0x118287,Object[_0x1efa('0x24')](_0x45a49b['getAttributes']()));}const _0x23bee4=Array[_0x1efa('0x108')](this[_0x1efa('0xe3')][_0x1efa('0x29')][_0x1efa('0x96')])[_0x1efa('0x7')](_0x59b60e=>[_0x59b60e['name'],_0x59b60e[_0x1efa('0x52')]()]),_0x4cbce1=this[_0x1efa('0x56')]['version'];this[_0x1efa('0xd8')](_0x4cbce1,_0x339bd6,_0x23bee4,_0x4feb06),this[_0x1efa('0xa4')]=this[_0x1efa('0x38')];const _0x1af092=new Map(),_0x481cd9=new Map();for(const _0x3d8162 of _0x1db136){const _0x5d0f42=G(_0x3d8162);_0x1af092[_0x1efa('0xe8')](_0x3d8162,_0x5d0f42),_0x481cd9[_0x1efa('0xe8')](_0x3d8162,{});}this[_0x1efa('0xd8')](Number[_0x1efa('0xff')],_0x1af092,[],_0x481cd9);}[_0x1efa('0x6a')](_0x6ea24d,_0x28ba5e){if(this[_0x1efa('0xc3')]===_0x6ea24d&&this['_lastTo']<=_0x28ba5e)this[_0x1efa('0xaf')]['size']>0x1&&this[_0x1efa('0x45')](this['_lastTo']),this[_0x1efa('0x93')](this[_0x1efa('0x17')],_0x28ba5e,!0x0);else{if(!this[_0x1efa('0xaf')]['has'](_0x6ea24d)){const _0x4c87d5=this[_0x1efa('0xd7')](_0x6ea24d);this[_0x1efa('0xcf')](_0x4c87d5,_0x6ea24d,!0x1);}this[_0x1efa('0xcf')](_0x6ea24d,_0x28ba5e,!0x0);}return this[_0x1efa('0xc3')]=_0x6ea24d,this[_0x1efa('0x17')]=_0x28ba5e,this[_0x1efa('0xa7')]();}[_0x1efa('0x74')](_0x1132cd){this['_reset'](),this[_0x1efa('0xc3')]=_0x1132cd['fromVersion'],this[_0x1efa('0x17')]=_0x1132cd[_0x1efa('0x48')];for(const _0x173676 in _0x1132cd['diffData']){const _0x1d7048=_0x1132cd['diffData'][_0x173676]['attachChange'],_0x5c4e80=_0x3876ea(_0x1132cd['diffData'][_0x173676][_0x1efa('0xd2')])||{},_0xa13af9=this['_makeModelFromViewString'](_0x1132cd[_0x1efa('0x10')][_0x173676][_0x1efa('0x87')]);_0xa13af9[_0x1efa('0x1a')]=_0x173676,_0xa13af9['_isAttached']=!_0x1d7048||!_0x1d7048[_0x1efa('0x9e')],_0xa13af9[_0x1efa('0x9e')]=()=>_0xa13af9[_0x1efa('0x39')],this[_0x1efa('0x27')][_0x1efa('0xe8')](_0x173676,_0xa13af9),this[_0x1efa('0xdd')][_0x1efa('0xe8')](_0x173676,_0x5c4e80),_0x1d7048&&this[_0x1efa('0x6e')][_0x1efa('0xe8')](_0x173676,_0x1d7048);const _0x4e8c52=this[_0x1efa('0xf6')](_0xa13af9);this[_0x1efa('0x53')][_0x1efa('0xe8')](_0x173676,_0x4e8c52);for(const [_0x2cecc4,_0x587459]of _0xa13af9[_0x1efa('0x96')]){if(!_0x2cecc4[_0x1efa('0xed')]('revision:'))continue;const _0x36c092=_0x2cecc4[_0x1efa('0xec')](':')[0x2];for(const _0x35205a of _0x587459[_0x1efa('0xc4')]({'singleCharacters':!0x0})){const _0x2822c3=this[_0x1efa('0xfb')](_0x35205a),_0x1ef58c='elementEnd'==_0x35205a[_0x1efa('0x79')]?_0x35205a[_0x1efa('0xa8')]['path'][_0x1efa('0x99')](0x0,-0x1):_0x35205a[_0x1efa('0xa8')]['path'],_0x3aad0b=_0x4e8c52[_0x1efa('0xfd')](_0x1ef58c)[_0x1efa('0x73')](_0x2822c3);this[_0x1efa('0xe5')]['set'](_0x3aad0b,{'userId':_0x36c092});}}}this[_0x1efa('0xa4')]=this[_0x1efa('0x38')];const _0x367611=[...Array(this[_0x1efa('0x38')])[_0x1efa('0xf3')]()][_0x1efa('0x99')](0x1)['filter'](_0x3e3bdb=>!this[_0x1efa('0xe5')][_0x1efa('0x8b')](_0x3e3bdb));let _0x2c6d89=0x0;const _0x1e698e=new Map();for(const _0x2ce84b in _0x1132cd[_0x1efa('0x10')]){const _0x1c5afb=_0x1132cd[_0x1efa('0x10')][_0x2ce84b][_0x1efa('0x9f')],_0x2df69f=_0x3876ea(_0x1132cd[_0x1efa('0x10')][_0x2ce84b][_0x1efa('0x94')])||{},_0x34ce7c=this['_makeModelFromViewString'](_0x1132cd[_0x1efa('0x10')][_0x2ce84b][_0x1efa('0xab')]);_0x34ce7c[_0x1efa('0x1a')]=_0x2ce84b,_0x34ce7c[_0x1efa('0x39')]=!_0x1c5afb||_0x1c5afb[_0x1efa('0x9e')],_0x34ce7c[_0x1efa('0x9e')]=()=>_0x34ce7c['_isAttached'],this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x2ce84b,_0x34ce7c),this[_0x1efa('0xe')]['set'](_0x2ce84b,_0x2df69f);const _0x20d4ac=this[_0x1efa('0xf6')](_0x34ce7c,Number[_0x1efa('0xff')]);this[_0x1efa('0x3f')]['set'](_0x2ce84b,_0x20d4ac),_0x1e698e[_0x1efa('0xe8')](_0x2ce84b,_0x34ce7c[_0x1efa('0x9e')]()?_0x2df69f:{});for(const [_0x567974,_0x104fbe]of _0x34ce7c[_0x1efa('0x96')]){if(!_0x567974['startsWith'](_0x1efa('0xb8')))continue;const _0x2857c9=_0x567974[_0x1efa('0xec')](':')[0x2];for(const _0x3a0b57 of _0x104fbe['getWalker']({'singleCharacters':!0x0})){const _0x5661ba=this['_getVidAttributeName'](_0x3a0b57),_0x20a0ae=this[_0x1efa('0x38')]++,_0x2542a5=_0x1efa('0x3a')==_0x3a0b57[_0x1efa('0x79')]?_0x3a0b57['previousPosition'][_0x1efa('0x22')]['slice'](0x0,-0x1):_0x3a0b57[_0x1efa('0xa8')][_0x1efa('0x22')];_0x20d4ac[_0x1efa('0xfd')](_0x2542a5)[_0x1efa('0x54')](_0x5661ba,_0x20a0ae),this[_0x1efa('0xe5')][_0x1efa('0xe8')](_0x20a0ae,{'userId':_0x2857c9});}}for(const _0x50ae5d of this[_0x1efa('0xe3')]['model'][_0x1efa('0x6c')](_0x34ce7c)['getWalker']({'singleCharacters':!0x0})){const _0x357886=this[_0x1efa('0xfb')](_0x50ae5d),_0x11688a=_0x1efa('0x3a')==_0x50ae5d[_0x1efa('0x79')]?_0x50ae5d[_0x1efa('0xa8')][_0x1efa('0x22')][_0x1efa('0x99')](0x0,-0x1):_0x50ae5d[_0x1efa('0xa8')][_0x1efa('0x22')],_0x58c8d0=_0x20d4ac[_0x1efa('0xfd')](_0x11688a);_0x58c8d0[_0x1efa('0x73')](_0x357886)>0x0||_0x58c8d0[_0x1efa('0x54')](_0x357886,_0x367611[_0x2c6d89++]);}for(const [_0x4dfaa4,_0x232ab6]of _0x34ce7c['markers'])_0x4dfaa4[_0x1efa('0xed')]('revision:')||this[_0x1efa('0x14')][_0x1efa('0xe8')](_0x4dfaa4,_0x232ab6);}const _0x3754c0=G(_0x1efa('0xb9'));this['_baseRoots'][_0x1efa('0xe8')](_0x1efa('0xb9'),_0x3754c0),this[_0x1efa('0x53')][_0x1efa('0xe8')]('$graveyard',this[_0x1efa('0xf6')](_0x3754c0,0x1));const _0x404e45=G('$graveyard');this['_diffRoots'][_0x1efa('0xe8')](_0x1efa('0xb9'),_0x404e45),this['_idsRoots'][_0x1efa('0xe8')](_0x1efa('0xb9'),this['_makeIdsRoot'](_0x404e45,0x1));const _0x44467e=Array['from'](this['_diffRoots'])[_0x1efa('0x7')](([_0x4fa448,_0x167c1d])=>[_0x4fa448,q(_0x167c1d)]);this[_0x1efa('0xd8')](this[_0x1efa('0x17')],_0x44467e,this['_markers'],_0x1e698e);}['_makeModelFromViewString'](_0x4dabac){const _0x239329=JSON[_0x1efa('0xba')](_0x4dabac),_0x1b29cf=this[_0x1efa('0xe3')][_0x1efa('0xf8')][_0x1efa('0x13')]['document'],_0x4fd390=new _0x394920(_0x1b29cf,_0x239329[_0x1efa('0x7')](_0x1adc9d=>J(_0x1adc9d,this['editor'])));return this['editor'][_0x1efa('0xc1')][_0x1efa('0xbe')](_0x4fd390);}[_0x1efa('0xd8')](_0x30df07,_0x18a5a5,_0x26de0c,_0x4f06cd){const _0x276742=new Map(_0x18a5a5),_0x9d8199=new Map(_0x3876ea(_0x4f06cd)),_0x5ee84a=new Map();for(const [_0x158b89,_0x3b9bb4]of _0x26de0c)_0x5ee84a['set'](_0x158b89,{'start':_0x3b9bb4['start']['clone'](),'end':_0x3b9bb4[_0x1efa('0x28')][_0x1efa('0xb1')](),'rootName':_0x3b9bb4[_0x1efa('0xe9')][_0x1efa('0x1a')]});this['_savedMetaData'][_0x1efa('0xe8')](_0x30df07,{'roots':_0x276742,'markers':_0x5ee84a,'rootsAttributes':_0x9d8199});}[_0x1efa('0x45')](_0x235dad){this['_savedMetaData']['delete'](_0x235dad);}[_0x1efa('0x35')](){this[_0x1efa('0x95')](),this['_lastFrom']=-0x1,this[_0x1efa('0x17')]=-0x1,this['_savedMetaData'][_0x1efa('0x109')](),this[_0x1efa('0x83')](this['source']);}['_reset'](){this[_0x1efa('0xe5')]['clear'](),this[_0x1efa('0x8')][_0x1efa('0x109')](),this[_0x1efa('0x6e')][_0x1efa('0x109')](),this[_0x1efa('0xc2')][_0x1efa('0x109')](),this['_diffRootsAttributes']['clear'](),this[_0x1efa('0x27')][_0x1efa('0x109')](),this[_0x1efa('0xdd')][_0x1efa('0x109')](),this['_idsRoots'][_0x1efa('0x109')](),this[_0x1efa('0x53')][_0x1efa('0x109')](),this['_markers'][_0x1efa('0x109')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x1efa('0x38')];}[_0x1efa('0xf6')](_0x176a8f,_0x28b105=null){let _0x342300=null;_0x176a8f['is'](_0x1efa('0xf5'))||(_0x342300=new _0x54f8f9(_0x176a8f[_0x1efa('0x62')],{'vid_start':null===_0x28b105?this[_0x1efa('0x38')]++:_0x28b105++}));const _0x2ba18f=[];for(const _0xe78192 of _0x176a8f[_0x1efa('0x46')]())if(_0xe78192['is'](_0x1efa('0x20'))){_0x2ba18f[_0x1efa('0x86')](this['_makeIdsRoot'](_0xe78192,_0x28b105));const _0x138c07=_0x2ba18f[_0x2ba18f[_0x1efa('0xac')]-0x1];null!==_0x28b105&&(_0x28b105=_0x138c07['is'](_0x1efa('0x20'),'$text')?_0x138c07[_0x1efa('0x73')](_0x1efa('0xd1'))+0x1:_0x138c07[_0x1efa('0x73')](_0x1efa('0x2e'))+0x1);}else for(let _0x590d05=0x0;_0x590d05<_0xe78192[_0x1efa('0xe0')];_0x590d05++)_0x2ba18f['push'](new _0x54f8f9(_0x1efa('0x103'),{'vid':null===_0x28b105?this['_revisionId']++:_0x28b105++}));if(_0x176a8f['is']('documentFragment')){const _0xaa83dc=G(_0x176a8f[_0x1efa('0x1a')]);return _0xaa83dc[_0x1efa('0xdb')](0x0,_0x2ba18f),_0xaa83dc;}return _0x342300['_setAttribute'](_0x1efa('0x2e'),null===_0x28b105?this[_0x1efa('0x38')]++:_0x28b105++),_0x342300[_0x1efa('0xdb')](0x0,_0x2ba18f),_0x342300;}[_0x1efa('0xcf')](_0x20b919,_0x29bc8c,_0x247001){this['_reset']();const {roots:_0x53c8f2,markers:_0x57e054,rootsAttributes:_0x378197}=this['_savedMetaData'][_0x1efa('0x77')](_0x20b919);this[_0x1efa('0x27')]=new Map(_0x53c8f2),this[_0x1efa('0xdd')]=new Map(_0x3876ea(_0x378197));for(const [_0x1a10fe,_0x35c674]of this[_0x1efa('0x27')])if(_0x1efa('0xb9')!==_0x1a10fe&&(this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x1a10fe,q(_0x35c674)),this[_0x1efa('0xe')]=new Map(_0x3876ea(_0x378197)),_0x247001)){const _0x1122ec=this[_0x1efa('0x38')];this['_idsRoots'][_0x1efa('0xe8')](_0x1a10fe,this['_makeIdsRoot'](_0x35c674)),this[_0x1efa('0x53')][_0x1efa('0xe8')](_0x1a10fe,this['_makeIdsRoot'](_0x35c674,_0x1122ec));}this[_0x1efa('0xa4')]=this['_revisionId'],this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x1efa('0xb9'),q(this[_0x1efa('0x27')][_0x1efa('0x77')](_0x1efa('0xb9')))),_0x247001&&this[_0x1efa('0x3f')][_0x1efa('0xe8')](_0x1efa('0xb9'),this['_makeIdsRoot'](this[_0x1efa('0x27')][_0x1efa('0x77')](_0x1efa('0xb9'))));for(const [_0x54dd07,_0x13f295]of _0x57e054){const _0x3b8598=this[_0x1efa('0x27')][_0x1efa('0x77')](_0x13f295[_0x1efa('0x1a')]),_0x212d04=this['_diffRoots'][_0x1efa('0x77')](_0x13f295[_0x1efa('0x1a')]),_0x1c0b89=new _0x4bae08(this[_0x1efa('0xc9')](_0x13f295[_0x1efa('0x92')],_0x3b8598),this[_0x1efa('0xc9')](_0x13f295[_0x1efa('0x28')],_0x3b8598)),_0x25ac59=this[_0x1efa('0xad')](_0x1c0b89,_0x212d04);_0x3b8598['markers'][_0x1efa('0xe8')](_0x54dd07,_0x1c0b89),this[_0x1efa('0x14')][_0x1efa('0xe8')](_0x54dd07,_0x25ac59);}this[_0x1efa('0x93')](_0x20b919,_0x29bc8c,_0x247001);}[_0x1efa('0x93')](_0x405cf8,_0x428f15,_0x26fe97){for(const _0x9a092d of this[_0x1efa('0x56')][_0x1efa('0x6')](_0x405cf8,_0x428f15))this[_0x1efa('0xee')](_0x9a092d,_0x26fe97);for(const _0x218c24 of this['_diffRoots'][_0x1efa('0x101')]())_0x218c24[_0x1efa('0x96')][_0x1efa('0x109')]();for(const [_0x2a2fa7,_0x4cca66]of this[_0x1efa('0x14')]){this[_0x1efa('0xc2')][_0x1efa('0x77')](_0x4cca66[_0x1efa('0xe9')][_0x1efa('0x1a')])['markers'][_0x1efa('0xe8')](_0x2a2fa7,_0x4cca66['clone']());}const _0x3ca374=new Map(),_0x186fa9=new Map();for(const [_0x1b2353,_0x2b7444]of this[_0x1efa('0xc2')])_0x3ca374[_0x1efa('0xe8')](_0x1b2353,q(_0x2b7444)),_0x186fa9['set'](_0x1b2353,this[_0x1efa('0xe')][_0x1efa('0x77')](_0x1b2353));this['_saveMetaData'](_0x428f15,_0x3ca374,this['_markers'],_0x186fa9);}['_getPreviousFrom'](_0x52c6dc){const _0xa15e2=Array[_0x1efa('0x108')](this['_savedMetaData'][_0x1efa('0xf3')]());_0xa15e2[_0x1efa('0x84')]((_0xbc212a,_0x17120d)=>_0xbc212a-_0x17120d),_0xa15e2[_0x1efa('0xeb')]();for(const _0x4db886 of _0xa15e2)if(_0x4db886<_0x52c6dc)return _0x4db886;return Number['NEGATIVE_INFINITY'];}[_0x1efa('0xc')](_0x4d2161,_0x120d85){const _0x5a901d=Array[_0x1efa('0x108')](_0x120d85['markers'])[_0x1efa('0x7')](([_0x1d07b1,_0x9f636a])=>[_0x1d07b1,this[_0x1efa('0xad')](_0x9f636a,_0x4d2161)]);_0x4d2161[_0x1efa('0x96')]=new Map(_0x5a901d);}[_0x1efa('0x2')](_0x50dd49){for(const _0x4edcb7 of this[_0x1efa('0x14')][_0x1efa('0x101')]()){const _0x27c7a3=_0x4edcb7[_0x1efa('0x7c')](_0x50dd49),_0x488404=_0x4bae08[_0x1efa('0x100')](_0x27c7a3);_0x4edcb7[_0x1efa('0x92')]=_0x488404['start'],_0x4edcb7[_0x1efa('0x28')]=_0x488404[_0x1efa('0x28')];}}['_handleOperation'](_0x13a85f,_0x3d7839){if(_0x1efa('0x2d')==_0x13a85f[_0x1efa('0x79')]||_0x1efa('0x43')==_0x13a85f[_0x1efa('0x79')])return void this[_0x1efa('0x4d')](_0x13a85f,_0x3d7839);if('insert'==_0x13a85f['type']){const _0x3970f6=_0x13a85f[_0x1efa('0x9b')][_0x1efa('0xe9')][_0x1efa('0x1a')];this[_0x1efa('0xc2')][_0x1efa('0x8b')](_0x3970f6)||(this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x3970f6,G(_0x3970f6,!0x0)),this[_0x1efa('0xe')]['set'](_0x3970f6,{}),_0x3d7839&&this['_idsRoots'][_0x1efa('0xe8')](_0x3970f6,G(_0x3970f6,!0x0)));}else{if(_0x1efa('0x72')==_0x13a85f[_0x1efa('0x79')]||_0x1efa('0xd5')==_0x13a85f['type']||_0x1efa('0x66')==_0x13a85f[_0x1efa('0x79')])return void this['_handleRootAttributeOperation'](_0x13a85f);}const _0x9f3e41=this[_0x1efa('0xf2')](_0x13a85f,this[_0x1efa('0xc2')]);if(_0x1efa('0x1c')!==_0x13a85f['type']&&(_0x9f3e41[_0x1efa('0x30')](),this[_0x1efa('0x2')](_0x9f3e41)),_0x3d7839)switch(_0x9f3e41[_0x1efa('0x79')]){case _0x1efa('0x81'):this[_0x1efa('0x47')](_0x13a85f);break;case _0x1efa('0xd0'):case _0x1efa('0x34'):case _0x1efa('0xfc'):this[_0x1efa('0x8d')](_0x13a85f);break;case _0x1efa('0x59'):this['_handleMergeOperation'](_0x13a85f);break;case'split':this[_0x1efa('0xb0')](_0x13a85f);break;case _0x1efa('0x1c'):this[_0x1efa('0x4e')](_0x13a85f);}}['_cloneOperation'](_0x205b62,_0x5b056e){const _0x6ca352=_0x205b62[_0x1efa('0xb1')]();return _0x6ca352[_0x1efa('0xa')]=_0x205b62[_0x1efa('0xa')],this[_0x1efa('0x1f')](_0x6ca352,_0x5b056e),_0x6ca352;}[_0x1efa('0x5e')](_0xaba1ff){return _0xaba1ff[_0x1efa('0x7')](_0x3855bb=>{const _0x5bf6d7=this['_getVidAttributeName'](_0x3855bb);return Number(_0x3855bb[_0x1efa('0x82')]['getAttribute'](_0x5bf6d7));});}[_0x1efa('0xb')](_0x2a8292,_0x1f6b87){if(_0x2a8292['is'](_0x1efa('0x20'),'$text'))_0x1f6b87[_0x1efa('0x86')]({'item':_0x2a8292,'type':'text'});else{_0x2a8292['is'](_0x1efa('0x20'))&&_0x1f6b87[_0x1efa('0x86')]({'item':_0x2a8292,'type':'elementStart'});for(const _0x81de46 of _0x2a8292['getChildren']())this[_0x1efa('0xb')](_0x81de46,_0x1f6b87);_0x2a8292['is'](_0x1efa('0x20'))&&_0x1f6b87['push']({'item':_0x2a8292,'type':'elementEnd'});}return _0x1f6b87;}[_0x1efa('0xa7')](){const _0x5af435=new Map(this[_0x1efa('0xe5')]),_0x1e2f28=new Map(_0x5af435),_0x3baa9d=new Map(),_0x455bf8={'insertions':{},'deletions':{}},_0x355556={'insertions':{},'deletions':{}},_0x2dda18=new Map(),_0x30cb9b=new Set([...this[_0x1efa('0x27')]['keys'](),...this[_0x1efa('0xc2')][_0x1efa('0xf3')]()]);_0x30cb9b['delete'](_0x1efa('0xb9'));for(const _0x276c68 of _0x30cb9b){const _0x3c94fd=this[_0x1efa('0xc2')][_0x1efa('0x77')](_0x276c68)||G(_0x276c68,!0x1),_0x1de2f3=this['_baseRoots'][_0x1efa('0x77')](_0x276c68)||G(_0x276c68,!0x1);_0x3c94fd[_0x1efa('0x9e')]()||_0x1de2f3['isAttached']()?(_0x455bf8[_0x1efa('0xab')][_0x276c68]=q(_0x3c94fd),_0x455bf8[_0x1efa('0x87')][_0x276c68]=q(_0x1de2f3),this[_0x1efa('0xc')](_0x455bf8[_0x1efa('0x87')][_0x276c68],_0x1de2f3),this[_0x1efa('0xc')](_0x455bf8[_0x1efa('0xab')][_0x276c68],_0x3c94fd),_0x355556['insertions'][_0x276c68]=this['_generateTape'](this[_0x1efa('0x3f')][_0x1efa('0x77')](_0x276c68),[]),_0x355556[_0x1efa('0x87')][_0x276c68]=this[_0x1efa('0xb')](this[_0x1efa('0x53')]['get'](_0x276c68)||G(_0x276c68,!0x1),[])):_0x30cb9b['delete'](_0x276c68);}for(const _0x4e3aeb of _0x30cb9b){const _0x4c9bff=_0x355556[_0x1efa('0xab')][_0x4e3aeb];for(const _0x3d3109 of _0x4c9bff){const _0x516b57=this['_getVidAttributeName'](_0x3d3109),_0x525dce=_0x3d3109['item'][_0x1efa('0x73')](_0x516b57);_0x1e2f28['delete'](_0x525dce),_0x525dce>=this['_startingRevisionId']&&_0x3baa9d['set'](_0x525dce,_0x5af435[_0x1efa('0x77')](_0x525dce));}}for(const _0x5ed43a of _0x30cb9b){const _0x11f861=_0x355556[_0x1efa('0xab')][_0x5ed43a],_0x571152=this[_0x1efa('0x5e')](_0x355556[_0x1efa('0x87')][_0x5ed43a]);let _0x3f7409=0x0;for(const _0x5d4011 of _0x11f861){const _0x4b27ce=this['_getVidAttributeName'](_0x5d4011),_0x3ea9c8=_0x5d4011['item']['getAttribute'](_0x4b27ce);if(!_0x3baa9d[_0x1efa('0x8b')](_0x3ea9c8)&&!_0x2dda18['has'](_0x3ea9c8)){if(_0x1e2f28[_0x1efa('0x8b')](_0x3ea9c8))_0x3f7409++;else{if(_0x3ea9c8!=_0x571152[_0x3f7409]){const _0x49936d=_0x5af435[_0x1efa('0x77')](_0x3ea9c8)||_0x5af435['get'](_0x571152[_0x3f7409]);for(;_0x3ea9c8!=_0x571152[_0x3f7409];)_0x1e2f28[_0x1efa('0x8b')](_0x571152[_0x3f7409])||(_0x2dda18['set'](_0x571152[_0x3f7409],_0x49936d),_0x5af435[_0x1efa('0xe8')](_0x571152[_0x3f7409],_0x49936d)),_0x3f7409++;}_0x3f7409++;}}}}for(const _0x609706 of _0x30cb9b){const _0xd57474=_0x355556[_0x1efa('0xab')][_0x609706];for(const _0x2a79c3 of _0xd57474){const _0x393f29=this[_0x1efa('0xfb')](_0x2a79c3),_0x4938bc=_0x2a79c3[_0x1efa('0x82')][_0x1efa('0x73')](_0x393f29);if(_0x2dda18[_0x1efa('0x8b')](_0x4938bc)){const _0x200a81=_0x2dda18['get'](_0x4938bc);_0x1e2f28[_0x1efa('0x8b')](_0x4938bc)||_0x1e2f28[_0x1efa('0xe8')](_0x4938bc,{..._0x200a81}),_0x3baa9d[_0x1efa('0xe8')](_0x4938bc,{..._0x200a81});}}}for(const _0x5639c2 of _0x1e2f28['keys']())_0x5639c2>=this['_startingRevisionId']&&_0x1e2f28[_0x1efa('0xc0')](_0x5639c2);const _0x2bf4e0=new Map();for(const _0x4b7e11 of _0x30cb9b){let _0x15d6f1=_0x355556[_0x1efa('0xab')][_0x4b7e11];for(const _0x1d30e3 of _0x15d6f1)if(_0x1d30e3[_0x1efa('0x82')]['is'](_0x1efa('0x20'),_0x1efa('0x1d'))){const _0x11cb86=this['_getVidAttributeName'](_0x1d30e3),_0x310398=_0x1d30e3[_0x1efa('0x82')][_0x1efa('0x73')](_0x11cb86);if(_0x3baa9d[_0x1efa('0x8b')](_0x310398)){const _0x248656=_0x1d30e3[_0x1efa('0x82')][_0x1efa('0x76')][_0x1efa('0x76')][_0x1efa('0x73')]('vid_start'),_0x410b87=_0x2bf4e0[_0x1efa('0x77')](_0x248656)||new Set();_0x410b87[_0x1efa('0x8a')](_0x3baa9d[_0x1efa('0x77')](_0x310398)[_0x1efa('0x8e')]),_0x2bf4e0['set'](_0x248656,_0x410b87);}}_0x15d6f1=_0x355556['deletions'][_0x4b7e11];for(const _0x1af55d of _0x15d6f1)if(_0x1af55d[_0x1efa('0x82')]['is']('element',_0x1efa('0x1d'))){const _0x24887c=this['_getVidAttributeName'](_0x1af55d),_0x215522=_0x1af55d[_0x1efa('0x82')][_0x1efa('0x73')](_0x24887c);if(_0x1e2f28['has'](_0x215522)){const _0x50b6e3=_0x1af55d['item'][_0x1efa('0x76')][_0x1efa('0x76')][_0x1efa('0x73')](_0x1efa('0x67')),_0x3d97c6=_0x2bf4e0[_0x1efa('0x77')](_0x50b6e3)||new Set();_0x3d97c6[_0x1efa('0x8a')](_0x1e2f28[_0x1efa('0x77')](_0x215522)[_0x1efa('0x8e')]),_0x2bf4e0[_0x1efa('0xe8')](_0x50b6e3,_0x3d97c6);}}for(const _0x1b2c71 of _0x2bf4e0[_0x1efa('0xf3')]())(_0x3baa9d[_0x1efa('0x8b')](_0x1b2c71)||_0x1e2f28['has'](_0x1b2c71))&&_0x2bf4e0['delete'](_0x1b2c71);}for(const _0x219a2d of _0x30cb9b){const _0x59ca30=_0x355556[_0x1efa('0xab')][_0x219a2d];let _0x371a42=null,_0x43aaa9=null;for(const _0x171984 of _0x59ca30){const _0x90f8f6=this[_0x1efa('0xfb')](_0x171984),_0x7ceb41=_0x171984[_0x1efa('0x82')][_0x1efa('0x73')](_0x90f8f6),_0x57a00b=_0x2bf4e0[_0x1efa('0x77')](_0x7ceb41);_0x57a00b&&_0x1efa('0x9c')==_0x171984['type']&&(_0x371a42=Array[_0x1efa('0x108')](_0x57a00b)[0x0],_0x43aaa9=_0x171984[_0x1efa('0x82')][_0x1efa('0x73')](_0x1efa('0x2e'))),_0x371a42&&(_0x1e2f28[_0x1efa('0xe8')](_0x7ceb41,{'userId':_0x371a42}),_0x3baa9d['set'](_0x7ceb41,{'userId':_0x371a42})),_0x7ceb41==_0x43aaa9&&(_0x371a42=null,_0x43aaa9=null);}}const _0x37d28b={},_0x3427e9=new Set();for(const _0x17d149 of _0x30cb9b){const _0x47808f=_0x455bf8[_0x1efa('0x87')][_0x17d149],_0xa8db50=_0x455bf8[_0x1efa('0xab')][_0x17d149];for(const {userId:_0x83bdd0}of this['_touchedMarkers']['values']())null!==_0x83bdd0&&_0x3427e9[_0x1efa('0x8a')](_0x83bdd0);for(const {userId:_0xfb7bcc}of this['_touchedRoots'][_0x1efa('0x101')]())null!==_0xfb7bcc&&_0x3427e9[_0x1efa('0x8a')](_0xfb7bcc);this[_0x1efa('0x44')](_0xa8db50,_0x355556['insertions'][_0x17d149],_0x3baa9d,_0x1efa('0x7e'),_0x3427e9),this[_0x1efa('0x44')](_0x47808f,_0x355556[_0x1efa('0x87')][_0x17d149],_0x1e2f28,_0x1efa('0x32'),_0x3427e9),_0x37d28b[_0x17d149]={'insertions':this[_0x1efa('0xce')](_0xa8db50),'deletions':this['_prepareViewToSave'](_0x47808f),'attachChange':this[_0x1efa('0x6e')][_0x1efa('0x77')](_0x17d149)||null,'attributesBefore':_0x3876ea(this['_baseRootsAttributes'][_0x1efa('0x77')](_0x17d149))||{},'attributesAfter':_0x3876ea(this['_diffRootsAttributes'][_0x1efa('0x77')](_0x17d149))};}return{'diffData':_0x37d28b,'authorsIds':Array[_0x1efa('0x108')](_0x3427e9)};}[_0x1efa('0x4b')](_0x5e229b){for(const [,_0x272d08]of _0x5e229b[_0x1efa('0x96')]){const _0x2db30b=_0x272d08[_0x1efa('0x92')][_0x1efa('0xe6')]()['filter'](_0x302a29=>_0x1efa('0x1d')==_0x302a29[_0x1efa('0x62')]);for(const _0x34f3a9 of _0x2db30b)0x1==_0x34f3a9['childCount']&&_0x34f3a9['getChild'](0x0)['is'](_0x1efa('0x20'),_0x1efa('0xea'))&&_0x34f3a9[_0x1efa('0x49')](0x0)[_0x1efa('0x54')](_0x1efa('0xf0'),!0x0);}}[_0x1efa('0xce')](_0x3571ea){this[_0x1efa('0x4b')](_0x3571ea);const _0xbb2816=this[_0x1efa('0xe3')][_0x1efa('0xc1')]['toView'](_0x3571ea,{}),_0x213f5f=Array[_0x1efa('0x108')](_0xbb2816[_0x1efa('0x46')]())['map'](_0x591778=>this[_0x1efa('0xca')](_0x591778));return JSON['stringify'](_0x213f5f);}[_0x1efa('0xca')](_0x3c034b){if(_0x3c034b['is'](_0x1efa('0x103')))return _0x3c034b[_0x1efa('0xc1')];{const _0x4bf087=_0x3c034b;return{'type':Object[_0x1efa('0xf3')](B)[_0x1efa('0x3d')](_0x20ae17=>_0x3c034b instanceof B[_0x20ae17]),'name':_0x4bf087[_0x1efa('0x62')],'attributes':Array[_0x1efa('0x108')](_0x4bf087['getAttributes']()),'children':Array['from'](_0x4bf087['getChildren']())['map'](_0x39d9fb=>this[_0x1efa('0xca')](_0x39d9fb))};}}['_markChanges'](_0x40a5b5,_0x3c68e0,_0x3b4ce3,_0x2f7944,_0x564e42){let _0x60c3a3=null,_0x222a4a=null,_0x1a3992=0x0;const _0x5e4cef=this[_0x1efa('0xe3')]['model'];for(let _0x110af8=0x0;_0x110af8<_0x3c68e0[_0x1efa('0xac')];_0x110af8++){const _0x2453fb=this['_getVidAttributeName'](_0x3c68e0[_0x110af8]),_0x2b10e2=_0x3c68e0[_0x110af8]['item']['getAttribute'](_0x2453fb),_0x50a88d=_0x3b4ce3['get'](_0x2b10e2),_0x3db3e0=_0x110af8==_0x3c68e0['length']-0x1;(!_0x60c3a3&&_0x50a88d&&(_0x60c3a3=_0x50a88d,_0x222a4a=_0x3c68e0[_0x110af8]),_0x60c3a3&&(!_0x50a88d||_0x50a88d['userId']!=_0x60c3a3[_0x1efa('0x8e')]))&&(_0x44b9bb(_0x50a88d,L(_0x222a4a,_0x40a5b5,_0x5e4cef),L(_0x3c68e0[_0x110af8],_0x40a5b5,_0x5e4cef)),_0x60c3a3=_0x50a88d||null,_0x222a4a=_0x50a88d?_0x3c68e0[_0x110af8]:null),_0x60c3a3&&_0x3db3e0&&_0x44b9bb(_0x50a88d,L(_0x222a4a,_0x40a5b5,_0x5e4cef),W(_0x3c68e0[_0x110af8],_0x40a5b5,_0x5e4cef));}function _0x44b9bb(_0x263bc7,_0x1ff90a,_0x3862e0){const _0x5a3e2e=_0x60c3a3[_0x1efa('0x8e')],_0xa683d8=_0x1efa('0xb8')+_0x2f7944+':'+_0x5a3e2e+':'+_0x1a3992++,_0x16be74=_0x5e4cef['createRange'](_0x1ff90a,_0x3862e0);_0x40a5b5[_0x1efa('0x96')][_0x1efa('0xe8')](_0xa683d8,_0x16be74),null!==_0x5a3e2e&&_0x564e42[_0x1efa('0x8a')](_0x5a3e2e);}}['_getVidAttributeName'](_0x93abfe){switch(_0x93abfe[_0x1efa('0x79')]){case _0x1efa('0x9c'):return'vid_start';case _0x1efa('0x3a'):return _0x1efa('0x2e');default:return _0x1efa('0xd1');}}[_0x1efa('0x1f')](_0x59e946,_0x53c83b){_0x59e946['baseVersion']=null;for(const _0x48bb13 in _0x59e946){const _0x3df4cc=_0x59e946[_0x48bb13];if(_0x3df4cc instanceof _0x40ca33){const _0x5b3029=_0x53c83b['get'](_0x3df4cc[_0x1efa('0xe9')]['rootName']);_0x59e946[_0x48bb13]=this[_0x1efa('0xc9')](_0x3df4cc,_0x5b3029);}if(_0x3df4cc instanceof _0x4bae08){const _0x71f5d8=_0x53c83b[_0x1efa('0x77')](_0x3df4cc[_0x1efa('0xe9')][_0x1efa('0x1a')]);_0x59e946[_0x48bb13]=this['_fixRange'](_0x3df4cc,_0x71f5d8);}_0x1efa('0xe9')===_0x48bb13&&(_0x59e946[_0x1efa('0xe9')]=_0x53c83b[_0x1efa('0x77')](_0x59e946[_0x1efa('0xe9')][_0x1efa('0x1a')]));}}[_0x1efa('0xad')](_0x4cc756,_0x50fe8b){return this[_0x1efa('0xe3')]['model']['createRange'](this[_0x1efa('0xc9')](_0x4cc756[_0x1efa('0x92')],_0x50fe8b),this[_0x1efa('0xc9')](_0x4cc756[_0x1efa('0x28')],_0x50fe8b));}['_fixPosition'](_0x4c6bb8,_0x84ec4f){return this['editor']['model']['createPositionFromPath'](_0x84ec4f,_0x4c6bb8['path'],_0x4c6bb8[_0x1efa('0x5b')]);}[_0x1efa('0x47')](_0x37d3d6){const _0x1da52c=this[_0x1efa('0x3f')][_0x1efa('0x77')](_0x37d3d6[_0x1efa('0x9b')][_0x1efa('0xe9')][_0x1efa('0x1a')]),_0x24b157=this[_0x1efa('0xc9')](_0x37d3d6[_0x1efa('0x9b')],_0x1da52c),_0x59bd65=null===_0x37d3d6[_0x1efa('0xa')]?null:_0x37d3d6[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')]['get']('Users')['me']['id'],_0x875467=_0x24b157['parent'],_0x3940f8=this['_revisionId'],_0x4aeabc=[];for(const _0x589d0f of _0x37d3d6[_0x1efa('0x70')])if(_0x589d0f['is'](_0x1efa('0x20')))_0x4aeabc[_0x1efa('0x86')](this['_makeIdsRoot'](_0x589d0f));else for(let _0xd76e38=0x0;_0xd76e38<_0x589d0f[_0x1efa('0xe0')];_0xd76e38++)_0x4aeabc[_0x1efa('0x86')](new _0x54f8f9('$text',{'vid':this[_0x1efa('0x38')]++}));const _0x1d3059=this['_revisionId'];for(let _0x1a8661=_0x3940f8;_0x1a8661<_0x1d3059;_0x1a8661++)this[_0x1efa('0xe5')]['set'](_0x1a8661,{'userId':_0x59bd65});_0x875467[_0x1efa('0xdb')](_0x24b157[_0x1efa('0xa2')],_0x4aeabc);}['_handleMoveOperation'](_0x3b80e1){(_0x3b80e1=this[_0x1efa('0xf2')](_0x3b80e1,this[_0x1efa('0x3f')]))['_execute']();const _0x86ca50=null===_0x3b80e1[_0x1efa('0xa')]?null:_0x3b80e1[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')]('Users')['me']['id'],_0x27c7b5=_0x3b80e1[_0x1efa('0xe7')](),_0x53a6ed=_0x27c7b5[_0x1efa('0x76')],_0x5b1593=_0x27c7b5['offset'];!function _0x35eaa1(_0x590ee6,_0x27e555,_0x16642d,_0x2e22dd){for(let _0x4f2b51=_0x16642d;_0x4f2b51<_0x2e22dd;_0x4f2b51++){const _0xa054cc=_0x27e555[_0x1efa('0x49')](_0x4f2b51);_0xa054cc['is'](_0x1efa('0x20'),'$text')?_0x590ee6['set'](_0xa054cc['getAttribute'](_0x1efa('0xd1')),{'userId':_0x86ca50}):(_0x590ee6[_0x1efa('0xe8')](_0xa054cc[_0x1efa('0x73')](_0x1efa('0x67')),{'userId':_0x86ca50}),_0x35eaa1(_0x590ee6,_0xa054cc,0x0,_0xa054cc[_0x1efa('0xfa')]),_0x590ee6['set'](_0xa054cc[_0x1efa('0x73')](_0x1efa('0x2e')),{'userId':_0x86ca50}));}}(this[_0x1efa('0xe5')],_0x53a6ed,_0x5b1593,_0x5b1593+_0x3b80e1[_0x1efa('0x21')]);}[_0x1efa('0x4f')](_0x36bfee){const _0x45c95f=null===(_0x36bfee=this[_0x1efa('0xf2')](_0x36bfee,this['_idsRoots']))[_0x1efa('0xa')]?null:_0x36bfee[_0x1efa('0xa')]||this[_0x1efa('0xe3')]['plugins']['get']('Users')['me']['id'],_0x2a1308=_0x36bfee[_0x1efa('0xf')][_0x1efa('0x76')],_0x51730d=_0x36bfee[_0x1efa('0x60')]['parent'],_0x32f150=_0x2a1308['getAttribute'](_0x1efa('0x2e')),_0x1731b8=_0x51730d['getAttribute'](_0x1efa('0x67'));_0x2a1308['_setAttribute'](_0x1efa('0x2e'),_0x51730d[_0x1efa('0x73')](_0x1efa('0x2e'))),_0x51730d[_0x1efa('0x54')](_0x1efa('0x2e'),_0x32f150),this[_0x1efa('0xe5')][_0x1efa('0xe8')](_0x1731b8,{'userId':_0x45c95f}),this['_touched']['set'](_0x32f150,{'userId':_0x45c95f}),_0x36bfee['_execute']();}[_0x1efa('0xb0')](_0x40df1d){const _0x5e9366=null===(_0x40df1d=this[_0x1efa('0xf2')](_0x40df1d,this['_idsRoots']))[_0x1efa('0xa')]?null:_0x40df1d[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0x1b6c7c=_0x40df1d[_0x1efa('0xe2')],_0x2e3278=_0x40df1d[_0x1efa('0x36')]['parent'];_0x40df1d[_0x1efa('0x30')]();const _0x2356be=_0x2e3278['getAttribute'](_0x1efa('0x2e')),_0x4a7731=_0x40df1d[_0x1efa('0x2b')]['nodeAfter'];if(_0x1b6c7c){const _0x29ef6f=_0x4a7731[_0x1efa('0x73')](_0x1efa('0x2e')),_0x51e00a=_0x2e3278[_0x1efa('0x73')](_0x1efa('0x2e'));_0x2e3278[_0x1efa('0x54')](_0x1efa('0x2e'),_0x29ef6f),_0x4a7731['_setAttribute']('vid_end',_0x51e00a),this['_touched'][_0x1efa('0xe8')](_0x2e3278[_0x1efa('0x73')](_0x1efa('0x2e')),{'userId':_0x5e9366}),this[_0x1efa('0xe5')]['set'](_0x4a7731[_0x1efa('0x73')](_0x1efa('0x67')),{'userId':_0x5e9366});}else{const _0x199ac1=this[_0x1efa('0x38')]++,_0x353096=this[_0x1efa('0x38')]++;_0x2e3278[_0x1efa('0x54')](_0x1efa('0x2e'),_0x199ac1),_0x4a7731[_0x1efa('0x54')](_0x1efa('0x67'),_0x353096),_0x4a7731[_0x1efa('0x54')](_0x1efa('0x2e'),_0x2356be),this[_0x1efa('0xe5')][_0x1efa('0xe8')](_0x199ac1,{'userId':_0x5e9366}),this['_touched'][_0x1efa('0xe8')](_0x353096,{'userId':_0x5e9366});}}[_0x1efa('0x4e')](_0x44fcef){if(!_0x44fcef[_0x1efa('0x8f')])return;const _0x32d018=(_0x44fcef=this[_0x1efa('0xf2')](_0x44fcef,this[_0x1efa('0xc2')]))['oldRange']?_0x44fcef[_0x1efa('0xd')][_0x1efa('0xe9')]:null,_0x58ab5d=_0x44fcef[_0x1efa('0xbc')]?_0x44fcef[_0x1efa('0xbc')][_0x1efa('0xe9')]:null;_0x32d018&&this[_0x1efa('0x14')]['delete'](_0x44fcef[_0x1efa('0x62')]),_0x58ab5d&&this['_markers'][_0x1efa('0xe8')](_0x44fcef['name'],_0x44fcef[_0x1efa('0xbc')]['clone']());const _0x54c0c7=null===_0x44fcef[_0x1efa('0xa')]?null:_0x44fcef[_0x1efa('0xa')]||this[_0x1efa('0xe3')][_0x1efa('0x26')][_0x1efa('0x77')](_0x1efa('0x61'))['me']['id'],_0xb7ad6d=_0x44fcef[_0x1efa('0x62')];if(!this['_touchedMarkers']['has'](_0xb7ad6d))return void this[_0x1efa('0x8')]['set'](_0xb7ad6d,{'range':_0x44fcef[_0x1efa('0xd')],'userId':_0x54c0c7});const _0x394f39=this['_touchedMarkers'][_0x1efa('0x77')](_0xb7ad6d),_0x2e4b1a=_0x394f39[_0x1efa('0x85')],_0x220783=_0x44fcef[_0x1efa('0xbc')];null==_0x2e4b1a&&null==_0x220783||_0x2e4b1a&&_0x220783&&_0x2e4b1a[_0x1efa('0x41')](_0x220783)?this[_0x1efa('0x8')]['delete'](_0x44fcef[_0x1efa('0x62')]):_0x394f39[_0x1efa('0x8e')]=_0x54c0c7;}['_handleRootOperation'](_0x23c7cc,_0x465fec){this[_0x1efa('0xc2')][_0x1efa('0x8b')](_0x23c7cc[_0x1efa('0x1a')])?this[_0x1efa('0xc2')]['get'](_0x23c7cc['rootName'])[_0x1efa('0x39')]=_0x23c7cc[_0x1efa('0x16')]:(this[_0x1efa('0xc2')][_0x1efa('0xe8')](_0x23c7cc[_0x1efa('0x1a')],G(_0x23c7cc[_0x1efa('0x1a')],!0x0)),this[_0x1efa('0xe')][_0x1efa('0xe8')](_0x23c7cc[_0x1efa('0x1a')],{}),_0x465fec&&this['_idsRoots'][_0x1efa('0xe8')](_0x23c7cc['rootName'],G(_0x23c7cc[_0x1efa('0x1a')],!0x0)));const _0x54a7ac=null===_0x23c7cc[_0x1efa('0xa')]?null:_0x23c7cc[_0x1efa('0xa')]||this[_0x1efa('0xe3')]['plugins']['get'](_0x1efa('0x61'))['me']['id'],_0x4b8059=this['_touchedRoots'][_0x1efa('0x77')](_0x23c7cc[_0x1efa('0x1a')]);_0x4b8059&&_0x4b8059[_0x1efa('0x8e')]===_0x54a7ac?this[_0x1efa('0x6e')]['delete'](_0x23c7cc['rootName']):this[_0x1efa('0x6e')]['set'](_0x23c7cc['rootName'],{'userId':_0x54a7ac,'isAttached':_0x23c7cc[_0x1efa('0x16')]});}[_0x1efa('0xc5')](_0x5967d6){const _0x3cd8ee=this[_0x1efa('0xe')]['get'](_0x5967d6[_0x1efa('0xe9')][_0x1efa('0x1a')]);null===_0x5967d6[_0x1efa('0x18')]?delete _0x3cd8ee[_0x5967d6[_0x1efa('0xe4')]]:_0x3cd8ee[_0x5967d6[_0x1efa('0xe4')]]=_0x5967d6['newValue'];}}function q(_0x2556a6){const _0x5159ad=G(_0x2556a6[_0x1efa('0x1a')],_0x2556a6['isAttached']());for(const _0x16ef16 of _0x2556a6[_0x1efa('0x46')]()){const _0x4f6dad=_0x16ef16[_0x1efa('0x42')](!0x0);_0x5159ad[_0x1efa('0x11')](_0x4f6dad);}return _0x5159ad;}function G(_0x33ab74,_0x2d751f=!0x0){const _0xcc1d6d=new _0x638994();return _0xcc1d6d[_0x1efa('0x1a')]=_0x33ab74,_0xcc1d6d['_isAttached']=_0x2d751f,_0xcc1d6d[_0x1efa('0x9e')]=()=>_0xcc1d6d['_isAttached'],_0xcc1d6d;}function L(_0x31c186,_0x385715,_0x266cbf){const _0x389698=_0x1efa('0x3a')==_0x31c186[_0x1efa('0x79')]?_0x266cbf[_0x1efa('0xd4')](_0x31c186[_0x1efa('0x82')],_0x1efa('0x28')):_0x266cbf[_0x1efa('0xb2')](_0x31c186[_0x1efa('0x82')]);return _0x266cbf['createPositionFromPath'](_0x385715,_0x389698[_0x1efa('0x22')],_0x389698[_0x1efa('0x5b')]);}function W(_0x37ab9e,_0x38dfd9,_0x1059c7){const _0x2e3f15='elementStart'==_0x37ab9e[_0x1efa('0x79')]?_0x1059c7['createPositionAt'](_0x37ab9e[_0x1efa('0x82')],0x0):_0x1059c7['createPositionAfter'](_0x37ab9e[_0x1efa('0x82')]);return _0x1059c7[_0x1efa('0x64')](_0x38dfd9,_0x2e3f15[_0x1efa('0x22')],_0x2e3f15[_0x1efa('0x5b')]);}
|