@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231025.0 → 0.0.0-nightly-20231027.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 _0x41b5=['repository','_setConversion','getAttribute','_getFromVersion','_handleInsertOperation','_findInsertionIndex','Empty\x20document','item','pluginName','revision-start','parent','insertion','fromVersion','_setAttribute','createPositionAfter','data','getWalker','_saveMetaData','addRevisionData','sort','vid_start','authorsIds','isReady','RevisionTracker','createdAt','clear','getLatestVersion','_handleMoveOperation','fromEntries','loadState','RevisionsRepository','_createCurrentRevision','Initial\x20revision','getAttributes','model','source','_makeModelFromViewString','NEGATIVE_INFINITY','_startingRevisionId','_makeRevision','startsWith','merge','ready','reinsert','afterInit','getMovedRangeStart','useFillerType','roots','insertions','childCount','_handleMergeOperation','history','initialData','delete','creatorId','_replaceEditorDataWithRevisionData','_diffRootsAttributes','for','view','add','authors','isAttached','collaboration.channelId','position','from','text','finally','previousPosition','slice','_reset','_loadRevisionData','buildRevisionData','getTime','_generateTape','end','createPositionFromPath','deletion','RealTimeCollaborationClient','nodes','hasContent','_baseRootsAttributes','document','createRevision','length','createPositionAt','deletions','_continueCurrentRevision','getRootNames','_initialRevisionId','getRevisionRootsAttributes','get','_revisionDataBuilder','clone','key','_transformMarkers','_processRootBeforeSave','requires','PendingActions','resolve','some','children','getRevision','move','root','trim','_lastTo','offset','getRange','getIndex','addRevision','_createFromRanges','_lastFrom','_update','_baseIdsRoots','PENDING_ACTION_REVISION_HISTORY','_insertChild','_removePendingAction','attributes','_removeRevisionMarkers','_getState','$text','_fixPosition','path','_authorId','_applyOperations','update','getChildren','_getViewJson','_handleOperation','splitPosition','revision:','_loadState','_handleRootOperation','changeRootAttribute','editing','Users','_cloneOperation','isEnabled','element','dataDowncast','getCurrentRevisionId','_markChanges','revisionHistory.resumeUnsavedRevision','$graveyard','detachRoot','toVersion','_execute','markerToData','_operations','elementEnd','_clone','toView','adapter','_addPendingAction','keys','start','rootsAttributes','rootName','_isPendingUpdate','offsetSize','map','size','sourcePosition','markers','vid_end','conversion','name','config','split','default','_source','attachChange','getData','stickiness','_removeMetaData','_startingVersion','newValue','getUser','reverse','diffData','insert','type','_fixRange','_idsRoots','_bufferedUpdates','_markers','_bufferUpdate','define','newRange','createRange','marker','remove','createPositionBefore','_makeIdsRoot','push','_baseRoots','baseVersion','_createInitialRevision','_fixOperation','getNodeByPath','vid','_getVidAttributeName','_loadedStateData','getOperation','initial','currentRevision','_handleSplitOperation','getRevisionDocumentData','paragraph','has','revision','string','_calculateMetaData','_touchedRoots','values','init','oldRange','elementStart','plugins','_savedMetaData','set','_copyMarkers','isAdd','marked','_handleRootAttributeOperation','addRoot','saveRevision','creator','_getPreviousFrom','tableCell','updateRevisions','toModel','_getBaseVids','_pendingAction','attributesAfter','_touchedMarkers','_touched','_isAttached','userId','locale','editor','find','parse','_diffRoots','getChild','sendBufferedUpdates','version','setSource','_revisionId','filter','_handleMarkerOperation','graveyardPosition','getTransformedByOperation'];(function(_0x59fd9b,_0x41b502){const _0x33476b=function(_0xe2d2f0){while(--_0xe2d2f0){_0x59fd9b['push'](_0x59fd9b['shift']());}};_0x33476b(++_0x41b502);}(_0x41b5,0x1de));const _0x3347=function(_0x59fd9b,_0x41b502){_0x59fd9b=_0x59fd9b-0x0;let _0x33476b=_0x41b5[_0x59fd9b];return _0x33476b;};import{Users as _0x5b0ea9}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3a2db4,PendingActions as _0x470ea4}from'ckeditor5/src/core';import{logWarning as _0x54d0e2,uid as _0x285280}from'ckeditor5/src/utils';import{Position as _0x35969a,Range as _0x7f1367,Element as _0x4e33b1,DocumentFragment as _0x56135f,ViewText as _0x3f54b5,ViewElement as _0x1d5ee1,ViewContainerElement as _0x3c8d05,ViewAttributeElement as _0x48fec1,ViewEmptyElement as _0x48de5e,ViewRawElement as _0x2f9d8a,ViewUIElement as _0x16654c,ViewDocumentFragment as _0x34afa3}from'ckeditor5/src/engine';import _0x4acb95 from'./revisionsrepository';import{getTranslation as _0x142d06}from'./utils/common-translations';import{cloneDeep as _0x2f8f84,isEqual as _0x5abe5b}from'lodash-es';const B={'c':_0x3c8d05,'a':_0x48fec1,'e':_0x48de5e,'r':_0x2f9d8a,'u':_0x16654c};export default class l extends _0x3a2db4{static get[_0x3347('0x24')](){return _0x3347('0x33');}static get[_0x3347('0x7c')](){return[_0x5b0ea9,_0x4acb95,_0x470ea4];}constructor(_0x2b02ac){super(_0x2b02ac),this[_0x3347('0xb4')]=null,this['currentRevision']=null,this[_0x3347('0x77')]=new H(this[_0x3347('0xf')]),this[_0x3347('0x74')]=this[_0x3347('0xf')]['config']['get']('collaboration.channelId')||_0x3347('0xe8'),this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x46df09=_0x285280();this[_0x3347('0xc6')]={'history':this[_0x3347('0xf')]['model'][_0x3347('0x6d')][_0x3347('0x4f')],'getLatestVersion':()=>Promise[_0x3347('0x7e')](this['editor'][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x15')]),'getCurrentRevisionId':()=>_0x46df09},this['set'](_0x3347('0x32'),!0x1),this[_0x3347('0xf8')](_0x3347('0xa5'),!0x0),this[_0x3347('0xf8')](_0x3347('0xba'),!0x1),this['editor']['config'][_0x3347('0xd7')](_0x3347('0xaa'),!0x0),this[_0x3347('0xf')]['conversion'][_0x3347('0x55')]('upcast')['dataToMarker']({'view':_0x3347('0xee')});}[_0x3347('0xf3')](){this[_0x3347('0x1c')]=this[_0x3347('0xf')][_0x3347('0xf6')]['get'](_0x3347('0x3a')),this[_0x3347('0x1d')](),this[_0x3347('0xf')][_0x3347('0x2b')]['on'](_0x3347('0x46'),()=>{const _0x49cfab=this[_0x3347('0x1c')][_0x3347('0x81')](0x0),_0xd407bc=_0x49cfab&&null===_0x49cfab['creator']?_0x49cfab:null;if(this[_0x3347('0x72')]=!!_0xd407bc&&this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0xaa')),this['editor'][_0x3347('0xf6')]['has'](_0x3347('0x69'))){const _0x194353=this[_0x3347('0xc6')][_0x3347('0xa8')](),_0x2dac3f=this[_0x3347('0x1c')][_0x3347('0x81')](_0x194353);if(_0x2dac3f)this[_0x3347('0xcb')]=_0x2dac3f[_0x3347('0x28')],this[_0x3347('0x72')]=!0x1;else{const _0x5e32da=this[_0x3347('0xc6')][_0x3347('0x4f')][_0x3347('0xb0')][_0x3347('0x10')](_0x55c14d=>!_0x55c14d['_isInit']),_0x21a1bd=_0x5e32da?_0x5e32da[_0x3347('0xe0')]:this[_0x3347('0xc6')][_0x3347('0x4f')][_0x3347('0x15')];_0x49cfab?(_0x49cfab[_0x3347('0xad')]<_0x21a1bd&&_0x49cfab[_0x3347('0x8c')]({'toVersion':_0x21a1bd}),this[_0x3347('0x72')]?(this[_0x3347('0xc6')][_0x3347('0xa8')]=()=>_0xd407bc['id'],this['_startingVersion']=_0xd407bc['fromVersion']):(this['_startingVersion']=_0x49cfab[_0x3347('0xad')],this[_0x3347('0x72')]=!0x1)):(this[_0x3347('0xcb')]=_0x21a1bd,this[_0x3347('0x72')]=!0x1);}}else _0xd407bc&&(this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x4f')][_0x3347('0x15')]=Math['max'](_0xd407bc['toVersion'],this[_0x3347('0xf')][_0x3347('0x3e')]['document'][_0x3347('0x4f')]['version']),_0xd407bc['fromVersion']===_0xd407bc[_0x3347('0xad')]?(0x0!==_0xd407bc['fromVersion']&&(this['_source'][_0x3347('0xa8')]=()=>_0xd407bc['id']),this[_0x3347('0x72')]=!0x1):this['_continueCurrentRevision']&&(this[_0x3347('0xc6')][_0x3347('0xa8')]=()=>_0xd407bc['id'],this['_startingVersion']=_0xd407bc[_0x3347('0x28')])),this[_0x3347('0x72')]||(this['_startingVersion']=this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x15')]);this[_0x3347('0x77')][_0x3347('0xf3')](this[_0x3347('0xc6')][_0x3347('0x4f')]),this[_0x3347('0xe1')](this[_0x3347('0xcb')]),this[_0x3347('0x3b')](this['_startingVersion']),this[_0x3347('0xb4')]&&this[_0x3347('0x14')]();}),this['bind'](_0x3347('0x32'))['to'](this,_0x3347('0xba'),_0x226b55=>!_0x226b55);}async[_0x3347('0x48')](){if(this[_0x3347('0x1c')]['length']>0x0){const _0x3a3302=this[_0x3347('0x1c')][_0x3347('0x81')](0x0),_0x10a4c7=await this[_0x3347('0xeb')](_0x3a3302),_0x474038=await this[_0x3347('0x75')](_0x3a3302);this[_0x3347('0x53')](_0x10a4c7,_0x474038);}}[_0x3347('0x16')](_0x634f70){this[_0x3347('0xc6')]=_0x634f70;}async[_0x3347('0x99')](){const _0x19df9f=await this[_0x3347('0xc6')][_0x3347('0x36')]();if(_0x19df9f>this[_0x3347('0xe9')]['toVersion']){await this[_0x3347('0x9f')]();const _0x430cc3=this[_0x3347('0x63')]({'revision':this[_0x3347('0xe9')],'to':_0x19df9f});_0x430cc3['authors']=_0x430cc3[_0x3347('0x31')][_0x3347('0xbc')](_0x20901b=>this['editor'][_0x3347('0xf6')]['get'](_0x3347('0xa3'))[_0x3347('0xcd')](_0x20901b)),this[_0x3347('0xe9')]['_update'](_0x430cc3);}}async[_0x3347('0x9f')](){this['_continueCurrentRevision']&&!this[_0x3347('0xe6')]&&(await this['_loadRevisionData'](this[_0x3347('0xe9')]),this[_0x3347('0x77')][_0x3347('0x39')](this[_0x3347('0xe9')]),this[_0x3347('0xe6')]={'fromVersion':this['currentRevision'][_0x3347('0x28')],'authors':this[_0x3347('0xe9')]['authors'][_0x3347('0x60')]()});}async[_0x3347('0x1')](_0x19b5a2={},_0x139e0a=null){const _0x29ea9b=[];await this[_0x3347('0x9f')](),this[_0x3347('0x72')]=!0x1,_0x139e0a>this[_0x3347('0xe9')][_0x3347('0xad')]&&(_0x139e0a=null),null===_0x139e0a&&(_0x139e0a=await this['_source']['getLatestVersion']());const _0x3ad37d=this[_0x3347('0x1f')](_0x139e0a),_0x410b25=this[_0x3347('0x63')]({'from':_0x3ad37d,'to':_0x139e0a});if(this[_0x3347('0xe9')][_0x3347('0xad')]<_0x139e0a){const _0x21a6a8=this[_0x3347('0x63')]({'revision':this[_0x3347('0xe9')],'from':_0x139e0a,'to':_0x139e0a});_0x21a6a8[_0x3347('0x58')]=[],_0x21a6a8[_0x3347('0x31')]=[],_0x21a6a8['id']=this[_0x3347('0xe9')]['id'],this[_0x3347('0xe9')]['_update'](_0x21a6a8,!0x0),delete _0x21a6a8[_0x3347('0x58')],_0x29ea9b[_0x3347('0xde')](_0x21a6a8);}_0x19b5a2['creatorId']=this[_0x3347('0xf')][_0x3347('0xf6')]['get']('Users')['me']['id'],_0x19b5a2['name']=_0x19b5a2['name']||null,_0x19b5a2['id']=_0x19b5a2['id']||_0x285280(),_0x19b5a2={..._0x19b5a2,..._0x410b25};const _0x2d244c=this[_0x3347('0x2e')](_0x19b5a2);_0x29ea9b[_0x3347('0xde')](_0x19b5a2);const _0x3dbdac=this[_0x3347('0x1c')][_0x3347('0x88')](_0x2d244c);if(0x0!==_0x3dbdac){const _0x3f5fe7=this[_0x3347('0x1c')][_0x3347('0x81')](_0x3dbdac-0x1);if(_0x3f5fe7['fromVersion']!==_0x139e0a){const _0x294a54=this['_revisionDataBuilder'][_0x3347('0xc8')](_0x139e0a,_0x3f5fe7['toVersion']),_0xedf33f={'id':_0x3f5fe7['id'],'diffData':_0x294a54['diffData'],'authorsIds':_0x294a54[_0x3347('0x31')],'authors':_0x294a54[_0x3347('0x31')][_0x3347('0xbc')](_0x38f7b7=>this['editor'][_0x3347('0xf6')][_0x3347('0x76')](_0x3347('0xa3'))['getUser'](_0x38f7b7)),'fromVersion':_0x139e0a};_0x3f5fe7===this[_0x3347('0xe9')]&&(_0xedf33f[_0x3347('0x34')]=new Date(_0x19b5a2[_0x3347('0x34')][_0x3347('0x64')]()+0xa)),_0x3f5fe7[_0x3347('0x8c')](_0xedf33f,!0x0),delete _0xedf33f[_0x3347('0x58')],_0x29ea9b[_0x3347('0xde')](_0xedf33f);}}if(this[_0x3347('0xb4')]){for(const _0x20e014 of _0x29ea9b)this[_0x3347('0xd6')](_0x20e014['id'],_0x20e014,!0x0);this[_0x3347('0x14')]();}return _0x2d244c;}['addRevisionData'](_0x285fd1){const _0x5381c1=this[_0x3347('0x1c')][_0x3347('0x6e')](_0x285fd1);return this[_0x3347('0xb4')]&&_0x5381c1['on'](_0x3347('0x8c'),(_0x20a1e3,_0x1a1a22,_0x48cf26)=>{_0x48cf26||(this['_bufferUpdate'](_0x1a1a22['id'],_0x1a1a22,!0x0),this[_0x3347('0x14')]());}),this[_0x3347('0x1c')][_0x3347('0x89')](_0x5381c1,this[_0x3347('0x21')](_0x5381c1)),_0x5381c1;}async[_0x3347('0xeb')](_0x424708){await this[_0x3347('0x62')](_0x424708);const _0x5b3c86={};for(const _0x276378 in _0x424708[_0x3347('0xcf')]){if(_0x424708[_0x3347('0xcf')][_0x276378]['attachChange']&&!_0x424708[_0x3347('0xcf')][_0x276378]['attachChange'][_0x3347('0x59')])continue;const _0x40858e=this[_0x3347('0x92')](JSON[_0x3347('0x11')](_0x424708['diffData'][_0x276378][_0x3347('0x4c')])),_0x472a84=this[_0x3347('0xf')][_0x3347('0xa2')][_0x3347('0x56')][_0x3347('0x6d')],_0x5eb94e=new _0x34afa3(_0x472a84,_0x40858e[_0x3347('0xbc')](_0x4acdc2=>J(_0x4acdc2,this[_0x3347('0xf')])));this['editor']['data']['processor'][_0x3347('0x4a')](_0x3347('0xfb')),_0x5b3c86[_0x276378]=this[_0x3347('0xf')]['data']['processor']['toData'](_0x5eb94e),this[_0x3347('0xf')][_0x3347('0x2b')]['processor'][_0x3347('0x4a')](_0x3347('0xc5'));}return _0x5b3c86;}async[_0x3347('0x75')](_0x50b7b4){await this['_loadRevisionData'](_0x50b7b4);const _0x2b9f14={};for(const _0x2073f2 in _0x50b7b4[_0x3347('0xcf')])_0x50b7b4[_0x3347('0xcf')][_0x2073f2][_0x3347('0xc7')]&&!_0x50b7b4[_0x3347('0xcf')][_0x2073f2]['attachChange']['isAttached']||(_0x2b9f14[_0x2073f2]=_0x50b7b4['diffData'][_0x2073f2][_0x3347('0x9')]||{});return _0x2b9f14;}['sendBufferedUpdates'](){if(0x0===this[_0x3347('0xd4')][_0x3347('0xbd')])return;if(this['_isPendingUpdate'])return;let _0x523a83=Array[_0x3347('0x5c')](this[_0x3347('0xd4')][_0x3347('0xf2')]());this[_0x3347('0xd4')][_0x3347('0x35')]();for(let _0x3d8af6=0x0;_0x3d8af6<_0x523a83[_0x3347('0x6f')];_0x3d8af6++){const _0x185bdd=_0x523a83[_0x3d8af6];let _0x1f8024=!0x1;for(const _0x1abd5f of Object[_0x3347('0xb6')](_0x185bdd))void 0x0===_0x185bdd[_0x1abd5f]?delete _0x185bdd[_0x1abd5f]:'id'!==_0x1abd5f&&(_0x1f8024=!0x0);_0x1f8024||(_0x523a83[_0x3d8af6]=null);}if(_0x523a83=_0x523a83['filter'](_0x20a9d2=>null!==_0x20a9d2),!_0x523a83[_0x3347('0x6f')])return;for(let _0x1b29a8=0x0;_0x1b29a8<_0x523a83[_0x3347('0x6f')];_0x1b29a8++){const _0x2914ab=_0x523a83[_0x1b29a8];void 0x0!==_0x2914ab[_0x3347('0x28')]&&void 0x0===_0x2914ab[_0x3347('0xad')]&&(_0x2914ab['toVersion']=this['repository'][_0x3347('0x81')](_0x2914ab['id'])[_0x3347('0xad')]),void 0x0!==_0x2914ab[_0x3347('0xad')]&&void 0x0===_0x2914ab[_0x3347('0x28')]&&(_0x2914ab[_0x3347('0x28')]=this['repository'][_0x3347('0x81')](_0x2914ab['id'])[_0x3347('0x28')]);}const _0x48f330=this['editor'][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0x5a'));this[_0x3347('0xba')]=!0x0,this[_0x3347('0xb5')](),this[_0x3347('0xb4')][_0x3347('0x5')](_0x523a83,_0x48f330)[_0x3347('0x5e')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x49220f=>{if(_0x49220f)for(const _0x35de32 of _0x49220f)this['setRevisionData']({'id':_0x35de32['id'],'createdAt':_0x35de32[_0x3347('0x34')]});this[_0x3347('0x90')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x571d5d,_0xdd00b0){let _0x398d73=this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0x50')),_0x44b1c3=this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0x76')]('rootsAttributes');if(void 0x0===_0x398d73){_0x398d73={};for(const _0x44efb5 of this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')]['getRootNames']())_0x398d73[_0x44efb5]='';}if(_0x3347('0xef')==typeof _0x398d73&&(_0x398d73={'main':_0x398d73}),void 0x0===_0x44b1c3){_0x44b1c3={};for(const _0x5f1958 of this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x73')]())_0x44b1c3[_0x5f1958]={};}let _0x5664c2=!0x1;const _0x336d47=Object[_0x3347('0xb6')](_0x398d73),_0x5662d4=Object[_0x3347('0xb6')](_0x571d5d);for(const _0x22800c of _0x336d47){if(_0x398d73[_0x22800c]!==_0x571d5d[_0x22800c]&&''!==_0x398d73[_0x22800c][_0x3347('0x84')]()){_0x5664c2=!0x0;break;}if(!_0x5abe5b(_0x44b1c3[_0x22800c],_0xdd00b0[_0x22800c])&&Object[_0x3347('0xb6')](_0x44b1c3[_0x22800c])[_0x3347('0x6f')]>0x0){_0x5664c2=!0x0;break;}}_0x5664c2||(_0x5664c2=_0x5662d4[_0x3347('0x7f')](_0x567536=>!this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')]['getRoot'](_0x567536))),_0x5664c2&&_0x54d0e2('editor-initial-data-replaced-with-revision-data',{'editorData':_0x398d73,'editorRootsAttributes':_0x44b1c3,'revisionData':_0x571d5d,'revisionRootsAttributes':_0xdd00b0}),this[_0x3347('0xf')]['config'][_0x3347('0xf8')](_0x3347('0x50'),_0x571d5d),this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0xf8')](_0x3347('0xb8'),_0xdd00b0);}['_addPendingAction'](){if(!this[_0x3347('0x8')]){const _0x14fe44=this[_0x3347('0xf')][_0x3347('0xf6')]['get'](_0x3347('0x7d'));this[_0x3347('0x8')]=_0x14fe44[_0x3347('0x57')](_0x142d06(this[_0x3347('0xf')][_0x3347('0xe')],_0x3347('0x8e')));}}[_0x3347('0x90')](){this['_pendingAction']&&(this['editor']['plugins'][_0x3347('0x76')](_0x3347('0x7d'))[_0x3347('0xdb')](this[_0x3347('0x8')]),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3bb3f8){const _0x1c6e98=this[_0x3347('0x1c')]['getRevisions']();_0x1c6e98[_0x3347('0xce')]();let _0x2b9982=0x0;for(;_0x2b9982<_0x1c6e98[_0x3347('0x6f')];){const _0x4d3648=_0x1c6e98[_0x2b9982];if(_0x4d3648===this[_0x3347('0xe9')]){_0x2b9982++;continue;}if(_0x4d3648['id']===this[_0x3347('0x74')])break;const _0xcbfc90=_0x3bb3f8[_0x3347('0xad')]-_0x4d3648['toVersion']||_0x3bb3f8[_0x3347('0x28')]-_0x4d3648[_0x3347('0x28')];if(_0xcbfc90>0x0)break;if(_0xcbfc90<0x0)_0x2b9982++;else{if(!_0x3bb3f8[_0x3347('0x2')]&&_0x4d3648[_0x3347('0x2')])break;if(_0x4d3648[_0x3347('0x2')]||!_0x3bb3f8[_0x3347('0x2')]){if(_0x3bb3f8['createdAt']>_0x4d3648[_0x3347('0x34')])break;_0x2b9982++;}else _0x2b9982++;}}return _0x2b9982;}['setRevisionData'](_0x5c7439){const _0x141c49=this['repository'][_0x3347('0x81')](_0x5c7439['id']);if(_0x5c7439[_0x3347('0x34')]&&(_0x5c7439[_0x3347('0x34')]=new Date(_0x5c7439[_0x3347('0x34')])),_0x5c7439[_0x3347('0x31')]){const _0x18ab63=this[_0x3347('0xf')][_0x3347('0xf6')][_0x3347('0x76')]('Users');_0x5c7439[_0x3347('0x58')]=_0x5c7439[_0x3347('0x31')][_0x3347('0xbc')](_0x5b4a4b=>_0x18ab63[_0x3347('0xcd')](_0x5b4a4b));}_0x141c49[_0x3347('0x8c')](_0x5c7439,!0x0);}[_0x3347('0x63')]({revision:_0xda0455=null,from:_0x2dd736=null,to:_0x3efdbb=null}){_0x2dd736=null!==_0x2dd736?_0x2dd736:_0xda0455[_0x3347('0x28')],_0x3efdbb=null!==_0x3efdbb?_0x3efdbb:_0xda0455[_0x3347('0xad')];const _0x55c0a8=this[_0x3347('0x77')][_0x3347('0xc8')](_0x2dd736,_0x3efdbb),_0x4370aa={'diffData':_0x55c0a8['diffData'],'authorsIds':_0x55c0a8[_0x3347('0x31')],'fromVersion':_0x2dd736,'toVersion':_0x3efdbb};if(!_0xda0455||_0x3efdbb!==_0xda0455['toVersion']){const _0x3c98c5=_0x3efdbb-0x1,_0x19b262=this[_0x3347('0xc6')][_0x3347('0x4f')][_0x3347('0xe7')](_0x3c98c5);_0x4370aa[_0x3347('0x34')]=_0x19b262&&_0x19b262[_0x3347('0x34')]||new Date();}if(this[_0x3347('0xe6')]&&_0x2dd736===this[_0x3347('0xe6')][_0x3347('0x28')])for(const _0x2746a4 of this[_0x3347('0xe6')][_0x3347('0x58')])_0x4370aa[_0x3347('0x31')]['includes'](_0x2746a4['id'])||_0x4370aa[_0x3347('0x31')]['push'](_0x2746a4['id']);return _0x4370aa;}[_0x3347('0x62')](_0x1985cf){if(!_0x1985cf||_0x1985cf[_0x3347('0xcf')])return Promise[_0x3347('0x7e')]();{const _0x392ba0=this['editor'][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0x5a'));return this[_0x3347('0xb4')]['getRevision']({'channelId':_0x392ba0,'revisionId':_0x1985cf['id']})['then'](_0x8f4737=>{_0x1985cf[_0x3347('0xcf')]=_0x8f4737['diffData'];});}}[_0x3347('0xd6')](_0x16b01e,_0x28c563,_0x10742f){if(this[_0x3347('0xd4')]['has'](_0x16b01e)){const _0xf77f9a=this[_0x3347('0xd4')][_0x3347('0x76')](_0x16b01e);_0x28c563=_0x10742f?{..._0xf77f9a,..._0x28c563}:{..._0x28c563,..._0xf77f9a};}this[_0x3347('0xd4')][_0x3347('0xf8')](_0x16b01e,_0x28c563);}[_0x3347('0x1f')](_0x4e5f7){const _0xc9bc84=this['repository']['getRevisions']();_0xc9bc84[_0x3347('0xce')](),_0xc9bc84['shift']();const _0xaec426=_0xc9bc84['find'](_0x13db15=>_0x13db15[_0x3347('0xad')]<=_0x4e5f7)[_0x3347('0xad')];return _0xaec426<this['_startingVersion']?this[_0x3347('0xcb')]:_0xaec426;}['_createInitialRevision'](_0x579e3e){const _0x1aa6f1=this['repository'][_0x3347('0x81')](this[_0x3347('0x1c')][_0x3347('0x6f')]-0x1);if(_0x1aa6f1)this[_0x3347('0x74')]=_0x1aa6f1['id'];else{const _0x4f1f94=!this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x4b')]['find'](_0x20aa56=>this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6b')](_0x20aa56)),_0x4c30fc=this[_0x3347('0xf')][_0x3347('0xf6')]['get'](_0x3347('0xa3'))['me']['id'],_0x4a6977=_0x142d06(this[_0x3347('0xf')]['locale'],_0x4f1f94?_0x3347('0x22'):_0x3347('0x3c'));this[_0x3347('0x43')]({'from':_0x579e3e,'to':_0x579e3e,'id':this[_0x3347('0x74')],'name':_0x4a6977,'creatorId':_0x4c30fc});}}['_createCurrentRevision'](_0x47b5bf){const _0xfcfe6=this[_0x3347('0xc6')][_0x3347('0xa8')]();this[_0x3347('0xe9')]=this[_0x3347('0x1c')][_0x3347('0x81')](_0xfcfe6),this[_0x3347('0xe9')]||(this[_0x3347('0xe9')]=this[_0x3347('0x43')]({'from':_0x47b5bf,'to':_0x47b5bf,'id':_0xfcfe6,'name':'','creatorId':null}));}[_0x3347('0x43')]({name:_0xd34d7c,from:_0x747fe6,to:_0x4d610e,creatorId:_0x4d5e7e,id:_0x245257}){const _0x4956b6=this[_0x3347('0x63')]({'from':_0x747fe6,'to':_0x4d610e});_0x4956b6[_0x3347('0xc2')]=_0xd34d7c,_0x4956b6[_0x3347('0x52')]=_0x4d5e7e,_0x4956b6['id']=_0x245257;const _0x1f4c3a=this['addRevisionData'](_0x4956b6);return this[_0x3347('0xb4')]&&this[_0x3347('0xd6')](_0x4956b6['id'],_0x4956b6,!0x0),_0x1f4c3a;}[_0x3347('0x1d')](){this[_0x3347('0xf')][_0x3347('0xc1')][_0x3347('0x55')](_0x3347('0xa7'))[_0x3347('0xaf')]({'model':'revision'});}[_0x3347('0x92')](_0x284c5d){return(_0x284c5d=_0x284c5d['filter'](_0x49f402=>!_0x49f402[_0x3347('0xc2')]||_0x3347('0x25')!==_0x49f402[_0x3347('0xc2')]&&'revision-end'!==_0x49f402[_0x3347('0xc2')]))['forEach'](_0x3419b5=>{_0x3347('0xef')!=typeof _0x3419b5&&(_0x3419b5[_0x3347('0x80')]=this[_0x3347('0x92')](_0x3419b5[_0x3347('0x80')]),_0x3419b5[_0x3347('0x91')]=_0x3419b5['attributes'][_0x3347('0x18')](_0x53eb7e=>!_0x53eb7e[0x0][_0x3347('0x44')]('data-revision-')));}),_0x284c5d;}}function J(_0x3199dd,_0x1f1caa){const _0x2fefe1=_0x1f1caa[_0x3347('0xa2')]['view']['document'];if(_0x3347('0xef')==typeof _0x3199dd)return new _0x3f54b5(_0x2fefe1,_0x3199dd);{const _0x4a7068=_0x3199dd[_0x3347('0x80')][_0x3347('0xbc')](_0x2a8fbb=>J(_0x2a8fbb,_0x1f1caa));return new(B[_0x3199dd['type']]||_0x1d5ee1)(_0x2fefe1,_0x3199dd[_0x3347('0xc2')],_0x3199dd[_0x3347('0x91')],_0x4a7068);}}class H{constructor(_0x487e92){this['editor']=_0x487e92,this[_0x3347('0xf7')]=new Map(),this[_0x3347('0x8b')]=-0x1,this[_0x3347('0x85')]=-0x1,this[_0x3347('0xd5')]=new Map(),this['_diffRoots']=new Map(),this[_0x3347('0x54')]=new Map(),this[_0x3347('0xdf')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this[_0x3347('0x8d')]=new Map(),this[_0x3347('0xb')]=new Map(),this[_0x3347('0xa')]=new Map(),this[_0x3347('0xf1')]=new Map(),this[_0x3347('0x17')]=0x1;}['init'](_0x4e83e2){this[_0x3347('0x3f')]=_0x4e83e2;const _0x17300e=new Map(),_0x3d0dda=new Map(),_0x19ee0b=this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')]['roots'][_0x3347('0xbc')](_0x414366=>_0x414366[_0x3347('0xb9')]);for(const _0x3fd19d of _0x19ee0b){const _0x44df88=this[_0x3347('0xf')]['model'][_0x3347('0x6d')]['getRoot'](_0x3fd19d),_0x55bf71=q(_0x44df88);_0x17300e[_0x3347('0xf8')](_0x3fd19d,_0x55bf71),_0x3d0dda[_0x3347('0xf8')](_0x3fd19d,Object[_0x3347('0x38')](_0x44df88[_0x3347('0x3d')]()));}const _0x5ca9ab=Array[_0x3347('0x5c')](this[_0x3347('0xf')]['model'][_0x3347('0xbf')])['map'](_0x2b4f51=>[_0x2b4f51[_0x3347('0xc2')],_0x2b4f51[_0x3347('0x87')]()]),_0x598c1e=this[_0x3347('0x3f')][_0x3347('0x15')];this[_0x3347('0x2d')](_0x598c1e,_0x17300e,_0x5ca9ab,_0x3d0dda),this['_startingRevisionId']=this[_0x3347('0x17')];const _0x486621=new Map(),_0x1ae5a6=new Map();for(const _0x3f0e67 of _0x19ee0b){const _0x442ee5=G(_0x3f0e67);_0x486621[_0x3347('0xf8')](_0x3f0e67,_0x442ee5),_0x1ae5a6['set'](_0x3f0e67,{});}this[_0x3347('0x2d')](Number['NEGATIVE_INFINITY'],_0x486621,[],_0x1ae5a6);}[_0x3347('0xc8')](_0x4890c4,_0x32fe85){if(this[_0x3347('0x8b')]===_0x4890c4&&this[_0x3347('0x85')]<=_0x32fe85)this[_0x3347('0xf7')][_0x3347('0xbd')]>0x1&&this[_0x3347('0xca')](this['_lastTo']),this[_0x3347('0x98')](this[_0x3347('0x85')],_0x32fe85,!0x0);else{if(!this[_0x3347('0xf7')][_0x3347('0xed')](_0x4890c4)){const _0xfb270b=this[_0x3347('0x3')](_0x4890c4);this[_0x3347('0xf0')](_0xfb270b,_0x4890c4,!0x1);}this[_0x3347('0xf0')](_0x4890c4,_0x32fe85,!0x0);}return this['_lastFrom']=_0x4890c4,this[_0x3347('0x85')]=_0x32fe85,this[_0x3347('0x93')]();}[_0x3347('0x39')](_0x1e3816){this['_reset'](),this[_0x3347('0x8b')]=_0x1e3816[_0x3347('0x28')],this[_0x3347('0x85')]=_0x1e3816[_0x3347('0xad')];for(const _0x110448 in _0x1e3816[_0x3347('0xcf')]){const _0x4678ba=_0x1e3816[_0x3347('0xcf')][_0x110448][_0x3347('0xc7')],_0x2d124e=_0x2f8f84(_0x1e3816['diffData'][_0x110448]['attributesBefore'])||{},_0x2eafdc=this[_0x3347('0x40')](_0x1e3816['diffData'][_0x110448][_0x3347('0x71')]);_0x2eafdc[_0x3347('0xb9')]=_0x110448,_0x2eafdc[_0x3347('0xc')]=!_0x4678ba||!_0x4678ba[_0x3347('0x59')],_0x2eafdc[_0x3347('0x59')]=()=>_0x2eafdc[_0x3347('0xc')],this[_0x3347('0xdf')][_0x3347('0xf8')](_0x110448,_0x2eafdc),this[_0x3347('0x6c')][_0x3347('0xf8')](_0x110448,_0x2d124e),_0x4678ba&&this[_0x3347('0xf1')]['set'](_0x110448,_0x4678ba);const _0x4e6c7c=this[_0x3347('0xdd')](_0x2eafdc);this[_0x3347('0x8d')][_0x3347('0xf8')](_0x110448,_0x4e6c7c);for(const [_0x1fefa7,_0x4f1897]of _0x2eafdc['markers']){if(!_0x1fefa7[_0x3347('0x44')]('revision:'))continue;const _0x45f940=_0x1fefa7[_0x3347('0xc4')](':')[0x2];for(const _0x119d33 of _0x4f1897[_0x3347('0x2c')]({'singleCharacters':!0x0})){const _0x3a32a8=this[_0x3347('0xe5')](_0x119d33),_0x224917=_0x3347('0xb1')==_0x119d33['type']?_0x119d33[_0x3347('0x5f')][_0x3347('0x96')][_0x3347('0x60')](0x0,-0x1):_0x119d33[_0x3347('0x5f')][_0x3347('0x96')],_0x3306ec=_0x4e6c7c['getNodeByPath'](_0x224917)[_0x3347('0x1e')](_0x3a32a8);this[_0x3347('0xb')]['set'](_0x3306ec,{'userId':_0x45f940});}}}this['_startingRevisionId']=this[_0x3347('0x17')];const _0xe317e8=[...Array(this['_revisionId'])[_0x3347('0xb6')]()][_0x3347('0x60')](0x1)[_0x3347('0x18')](_0x5339a7=>!this[_0x3347('0xb')]['has'](_0x5339a7));let _0x5762dd=0x0;const _0x543af3=new Map();for(const _0x55b9b7 in _0x1e3816[_0x3347('0xcf')]){const _0x269ffb=_0x1e3816[_0x3347('0xcf')][_0x55b9b7][_0x3347('0xc7')],_0x40eeca=_0x2f8f84(_0x1e3816[_0x3347('0xcf')][_0x55b9b7][_0x3347('0x9')])||{},_0x472a42=this['_makeModelFromViewString'](_0x1e3816['diffData'][_0x55b9b7][_0x3347('0x4c')]);_0x472a42[_0x3347('0xb9')]=_0x55b9b7,_0x472a42['_isAttached']=!_0x269ffb||_0x269ffb[_0x3347('0x59')],_0x472a42[_0x3347('0x59')]=()=>_0x472a42[_0x3347('0xc')],this[_0x3347('0x12')]['set'](_0x55b9b7,_0x472a42),this[_0x3347('0x54')][_0x3347('0xf8')](_0x55b9b7,_0x40eeca);const _0x4c2bb5=this['_makeIdsRoot'](_0x472a42,Number[_0x3347('0x41')]);this[_0x3347('0xd3')]['set'](_0x55b9b7,_0x4c2bb5),_0x543af3[_0x3347('0xf8')](_0x55b9b7,_0x472a42[_0x3347('0x59')]()?_0x40eeca:{});for(const [_0x354ec4,_0x4a9c2f]of _0x472a42[_0x3347('0xbf')]){if(!_0x354ec4[_0x3347('0x44')]('revision:'))continue;const _0x5b9369=_0x354ec4[_0x3347('0xc4')](':')[0x2];for(const _0x5f2bdc of _0x4a9c2f[_0x3347('0x2c')]({'singleCharacters':!0x0})){const _0x546a15=this[_0x3347('0xe5')](_0x5f2bdc),_0x16cae9=this['_revisionId']++,_0xca0385=_0x3347('0xb1')==_0x5f2bdc['type']?_0x5f2bdc['previousPosition']['path'][_0x3347('0x60')](0x0,-0x1):_0x5f2bdc[_0x3347('0x5f')][_0x3347('0x96')];_0x4c2bb5[_0x3347('0xe3')](_0xca0385)[_0x3347('0x29')](_0x546a15,_0x16cae9),this[_0x3347('0xb')]['set'](_0x16cae9,{'userId':_0x5b9369});}}for(const _0x3e3af1 of this[_0x3347('0xf')]['model']['createRangeIn'](_0x472a42)[_0x3347('0x2c')]({'singleCharacters':!0x0})){const _0x2538e7=this[_0x3347('0xe5')](_0x3e3af1),_0xbc63a8='elementEnd'==_0x3e3af1[_0x3347('0xd1')]?_0x3e3af1[_0x3347('0x5f')][_0x3347('0x96')][_0x3347('0x60')](0x0,-0x1):_0x3e3af1['previousPosition'][_0x3347('0x96')],_0x155895=_0x4c2bb5[_0x3347('0xe3')](_0xbc63a8);_0x155895[_0x3347('0x1e')](_0x2538e7)>0x0||_0x155895[_0x3347('0x29')](_0x2538e7,_0xe317e8[_0x5762dd++]);}for(const [_0x495a3b,_0x364227]of _0x472a42[_0x3347('0xbf')])_0x495a3b[_0x3347('0x44')](_0x3347('0x9e'))||this[_0x3347('0xd5')][_0x3347('0xf8')](_0x495a3b,_0x364227);}const _0x34b4e1=G(_0x3347('0xab'));this[_0x3347('0xdf')][_0x3347('0xf8')](_0x3347('0xab'),_0x34b4e1),this[_0x3347('0x8d')][_0x3347('0xf8')](_0x3347('0xab'),this[_0x3347('0xdd')](_0x34b4e1,0x1));const _0x564a75=G(_0x3347('0xab'));this[_0x3347('0x12')][_0x3347('0xf8')](_0x3347('0xab'),_0x564a75),this[_0x3347('0xd3')][_0x3347('0xf8')](_0x3347('0xab'),this['_makeIdsRoot'](_0x564a75,0x1));const _0x57540d=Array[_0x3347('0x5c')](this[_0x3347('0x12')])['map'](([_0x37dab4,_0x8c86f4])=>[_0x37dab4,q(_0x8c86f4)]);this[_0x3347('0x2d')](this[_0x3347('0x85')],_0x57540d,this[_0x3347('0xd5')],_0x543af3);}[_0x3347('0x40')](_0x4442e1){const _0x4509e9=JSON['parse'](_0x4442e1),_0x311c76=this['editor'][_0x3347('0xa2')][_0x3347('0x56')]['document'],_0x248364=new _0x34afa3(_0x311c76,_0x4509e9[_0x3347('0xbc')](_0x475aa6=>J(_0x475aa6,this[_0x3347('0xf')])));return this[_0x3347('0xf')][_0x3347('0x2b')][_0x3347('0x6')](_0x248364);}[_0x3347('0x2d')](_0x14c8cb,_0x4ca190,_0x5b5234,_0x1624eb){const _0x49329e=new Map(_0x4ca190),_0x543af0=new Map(_0x2f8f84(_0x1624eb)),_0x5ecb06=new Map();for(const [_0x59217c,_0x2d7a9e]of _0x5b5234)_0x5ecb06[_0x3347('0xf8')](_0x59217c,{'start':_0x2d7a9e[_0x3347('0xb7')]['clone'](),'end':_0x2d7a9e[_0x3347('0x66')][_0x3347('0x78')](),'rootName':_0x2d7a9e[_0x3347('0x83')][_0x3347('0xb9')]});this['_savedMetaData'][_0x3347('0xf8')](_0x14c8cb,{'roots':_0x49329e,'markers':_0x5ecb06,'rootsAttributes':_0x543af0});}[_0x3347('0xca')](_0x1abb56){this[_0x3347('0xf7')][_0x3347('0x51')](_0x1abb56);}['reInit'](){this[_0x3347('0x61')](),this[_0x3347('0x8b')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x3347('0x35')](),this[_0x3347('0xf3')](this[_0x3347('0x3f')]);}[_0x3347('0x61')](){this[_0x3347('0xb')][_0x3347('0x35')](),this[_0x3347('0xa')][_0x3347('0x35')](),this[_0x3347('0xf1')]['clear'](),this[_0x3347('0x12')][_0x3347('0x35')](),this[_0x3347('0x54')][_0x3347('0x35')](),this[_0x3347('0xdf')][_0x3347('0x35')](),this[_0x3347('0x6c')]['clear'](),this[_0x3347('0xd3')][_0x3347('0x35')](),this['_baseIdsRoots']['clear'](),this[_0x3347('0xd5')][_0x3347('0x35')](),this[_0x3347('0x17')]=0x1,this[_0x3347('0x42')]=this[_0x3347('0x17')];}[_0x3347('0xdd')](_0x275d88,_0x568868=null){let _0x44636d=null;_0x275d88['is']('documentFragment')||(_0x44636d=new _0x4e33b1(_0x275d88[_0x3347('0xc2')],{'vid_start':null===_0x568868?this[_0x3347('0x17')]++:_0x568868++}));const _0x12004d=[];for(const _0x4fc1bb of _0x275d88[_0x3347('0x9a')]())if(_0x4fc1bb['is'](_0x3347('0xa6'))){_0x12004d['push'](this[_0x3347('0xdd')](_0x4fc1bb,_0x568868));const _0x538b18=_0x12004d[_0x12004d[_0x3347('0x6f')]-0x1];null!==_0x568868&&(_0x568868=_0x538b18['is'](_0x3347('0xa6'),'$text')?_0x538b18[_0x3347('0x1e')](_0x3347('0xe4'))+0x1:_0x538b18['getAttribute'](_0x3347('0xc0'))+0x1);}else for(let _0x5ef6dc=0x0;_0x5ef6dc<_0x4fc1bb['offsetSize'];_0x5ef6dc++)_0x12004d['push'](new _0x4e33b1(_0x3347('0x94'),{'vid':null===_0x568868?this[_0x3347('0x17')]++:_0x568868++}));if(_0x275d88['is']('documentFragment')){const _0x19fcd0=G(_0x275d88[_0x3347('0xb9')]);return _0x19fcd0[_0x3347('0x8f')](0x0,_0x12004d),_0x19fcd0;}return _0x44636d[_0x3347('0x29')]('vid_end',null===_0x568868?this['_revisionId']++:_0x568868++),_0x44636d[_0x3347('0x8f')](0x0,_0x12004d),_0x44636d;}['_calculateMetaData'](_0x37b350,_0x48cd95,_0x382dfc){this[_0x3347('0x61')]();const {roots:_0x4f0ff2,markers:_0x197a37,rootsAttributes:_0x255dc0}=this[_0x3347('0xf7')][_0x3347('0x76')](_0x37b350);this[_0x3347('0xdf')]=new Map(_0x4f0ff2),this[_0x3347('0x6c')]=new Map(_0x2f8f84(_0x255dc0));for(const [_0x2c13ae,_0x2e263e]of this[_0x3347('0xdf')])if(_0x3347('0xab')!==_0x2c13ae&&(this[_0x3347('0x12')][_0x3347('0xf8')](_0x2c13ae,q(_0x2e263e)),this['_diffRootsAttributes']=new Map(_0x2f8f84(_0x255dc0)),_0x382dfc)){const _0x30c737=this[_0x3347('0x17')];this[_0x3347('0xd3')]['set'](_0x2c13ae,this[_0x3347('0xdd')](_0x2e263e)),this[_0x3347('0x8d')][_0x3347('0xf8')](_0x2c13ae,this['_makeIdsRoot'](_0x2e263e,_0x30c737));}this['_startingRevisionId']=this[_0x3347('0x17')],this[_0x3347('0x12')]['set'](_0x3347('0xab'),q(this[_0x3347('0xdf')][_0x3347('0x76')](_0x3347('0xab')))),_0x382dfc&&this['_idsRoots'][_0x3347('0xf8')](_0x3347('0xab'),this[_0x3347('0xdd')](this['_baseRoots']['get'](_0x3347('0xab'))));for(const [_0x5d2665,_0x1bf35e]of _0x197a37){const _0x14d12c=this[_0x3347('0xdf')]['get'](_0x1bf35e['rootName']),_0xc1a650=this['_diffRoots'][_0x3347('0x76')](_0x1bf35e['rootName']),_0x2d64c9=new _0x7f1367(this[_0x3347('0x95')](_0x1bf35e['start'],_0x14d12c),this[_0x3347('0x95')](_0x1bf35e[_0x3347('0x66')],_0x14d12c)),_0x2f1448=this['_fixRange'](_0x2d64c9,_0xc1a650);_0x14d12c[_0x3347('0xbf')][_0x3347('0xf8')](_0x5d2665,_0x2d64c9),this[_0x3347('0xd5')][_0x3347('0xf8')](_0x5d2665,_0x2f1448);}this[_0x3347('0x98')](_0x37b350,_0x48cd95,_0x382dfc);}[_0x3347('0x98')](_0x23a1c2,_0x2a278f,_0x4c4e32){for(const _0x5bf5a1 of this[_0x3347('0x3f')]['getOperations'](_0x23a1c2,_0x2a278f))this[_0x3347('0x9c')](_0x5bf5a1,_0x4c4e32);for(const _0x1681f3 of this[_0x3347('0x12')][_0x3347('0xf2')]())_0x1681f3[_0x3347('0xbf')][_0x3347('0x35')]();for(const [_0xb8f7db,_0x38dad7]of this['_markers']){this[_0x3347('0x12')][_0x3347('0x76')](_0x38dad7[_0x3347('0x83')][_0x3347('0xb9')])[_0x3347('0xbf')][_0x3347('0xf8')](_0xb8f7db,_0x38dad7[_0x3347('0x78')]());}const _0x375425=new Map(),_0x4bf651=new Map();for(const [_0x4bf252,_0x35625a]of this[_0x3347('0x12')])_0x375425[_0x3347('0xf8')](_0x4bf252,q(_0x35625a)),_0x4bf651['set'](_0x4bf252,this['_diffRootsAttributes'][_0x3347('0x76')](_0x4bf252));this['_saveMetaData'](_0x2a278f,_0x375425,this[_0x3347('0xd5')],_0x4bf651);}['_getPreviousFrom'](_0xe8c188){const _0x2314fd=Array[_0x3347('0x5c')](this[_0x3347('0xf7')][_0x3347('0xb6')]());_0x2314fd[_0x3347('0x2f')]((_0x36932e,_0x3b14ca)=>_0x36932e-_0x3b14ca),_0x2314fd[_0x3347('0xce')]();for(const _0x568e2a of _0x2314fd)if(_0x568e2a<_0xe8c188)return _0x568e2a;return Number[_0x3347('0x41')];}['_copyMarkers'](_0x1ddeb6,_0x34976d){const _0x53ded0=Array[_0x3347('0x5c')](_0x34976d['markers'])[_0x3347('0xbc')](([_0x19b7e0,_0x207c2d])=>[_0x19b7e0,this[_0x3347('0xd2')](_0x207c2d,_0x1ddeb6)]);_0x1ddeb6[_0x3347('0xbf')]=new Map(_0x53ded0);}[_0x3347('0x7a')](_0x559b38){for(const _0x72e05b of this['_markers']['values']()){const _0x22a6fb=_0x72e05b[_0x3347('0x1b')](_0x559b38),_0x1d7514=_0x7f1367[_0x3347('0x8a')](_0x22a6fb);_0x72e05b[_0x3347('0xb7')]=_0x1d7514['start'],_0x72e05b[_0x3347('0x66')]=_0x1d7514['end'];}}[_0x3347('0x9c')](_0x3f4aca,_0x35f4a6){if(_0x3347('0x0')==_0x3f4aca[_0x3347('0xd1')]||_0x3347('0xac')==_0x3f4aca[_0x3347('0xd1')])return void this['_handleRootOperation'](_0x3f4aca,_0x35f4a6);if('insert'==_0x3f4aca[_0x3347('0xd1')]){const _0x21bde1=_0x3f4aca['position'][_0x3347('0x83')]['rootName'];this[_0x3347('0x12')][_0x3347('0xed')](_0x21bde1)||(this[_0x3347('0x12')][_0x3347('0xf8')](_0x21bde1,G(_0x21bde1,!0x0)),this[_0x3347('0x54')][_0x3347('0xf8')](_0x21bde1,{}),_0x35f4a6&&this[_0x3347('0xd3')]['set'](_0x21bde1,G(_0x21bde1,!0x0)));}else{if('addRootAttribute'==_0x3f4aca[_0x3347('0xd1')]||'removeRootAttribute'==_0x3f4aca['type']||_0x3347('0xa1')==_0x3f4aca[_0x3347('0xd1')])return void this[_0x3347('0xfc')](_0x3f4aca);}const _0x4eff92=this['_cloneOperation'](_0x3f4aca,this['_diffRoots']);if(_0x3347('0xda')!==_0x3f4aca[_0x3347('0xd1')]&&(_0x4eff92[_0x3347('0xae')](),this[_0x3347('0x7a')](_0x4eff92)),_0x35f4a6)switch(_0x4eff92[_0x3347('0xd1')]){case _0x3347('0xd0'):this[_0x3347('0x20')](_0x3f4aca);break;case _0x3347('0x82'):case _0x3347('0xdb'):case _0x3347('0x47'):this['_handleMoveOperation'](_0x3f4aca);break;case _0x3347('0x45'):this[_0x3347('0x4e')](_0x3f4aca);break;case _0x3347('0xc4'):this[_0x3347('0xea')](_0x3f4aca);break;case _0x3347('0xda'):this[_0x3347('0x19')](_0x3f4aca);}}[_0x3347('0xa4')](_0x286296,_0xc7709e){const _0x29f1e0=_0x286296[_0x3347('0x78')]();return _0x29f1e0[_0x3347('0x97')]=_0x286296[_0x3347('0x97')],this[_0x3347('0xe2')](_0x29f1e0,_0xc7709e),_0x29f1e0;}[_0x3347('0x7')](_0x252e6c){return _0x252e6c[_0x3347('0xbc')](_0x441590=>{const _0x7dfc8e=this[_0x3347('0xe5')](_0x441590);return Number(_0x441590[_0x3347('0x23')][_0x3347('0x1e')](_0x7dfc8e));});}[_0x3347('0x65')](_0x206a4a,_0x39b988){if(_0x206a4a['is'](_0x3347('0xa6'),'$text'))_0x39b988['push']({'item':_0x206a4a,'type':_0x3347('0x5d')});else{_0x206a4a['is'](_0x3347('0xa6'))&&_0x39b988[_0x3347('0xde')]({'item':_0x206a4a,'type':_0x3347('0xf5')});for(const _0x2c39e9 of _0x206a4a[_0x3347('0x9a')]())this[_0x3347('0x65')](_0x2c39e9,_0x39b988);_0x206a4a['is'](_0x3347('0xa6'))&&_0x39b988[_0x3347('0xde')]({'item':_0x206a4a,'type':_0x3347('0xb1')});}return _0x39b988;}[_0x3347('0x93')](){const _0x522e93=new Map(this[_0x3347('0xb')]),_0x3c57fe=new Map(_0x522e93),_0x46c5f2=new Map(),_0x47a4c7={'insertions':{},'deletions':{}},_0x19cf2d={'insertions':{},'deletions':{}},_0x2be429=new Map(),_0x2a96a9=new Set([...this['_baseRoots'][_0x3347('0xb6')](),...this[_0x3347('0x12')][_0x3347('0xb6')]()]);_0x2a96a9[_0x3347('0x51')](_0x3347('0xab'));for(const _0x1bc4e6 of _0x2a96a9){const _0x5ad079=this[_0x3347('0x12')][_0x3347('0x76')](_0x1bc4e6)||G(_0x1bc4e6,!0x1),_0x363bca=this[_0x3347('0xdf')][_0x3347('0x76')](_0x1bc4e6)||G(_0x1bc4e6,!0x1);_0x5ad079[_0x3347('0x59')]()||_0x363bca[_0x3347('0x59')]()?(_0x47a4c7[_0x3347('0x4c')][_0x1bc4e6]=q(_0x5ad079),_0x47a4c7['deletions'][_0x1bc4e6]=q(_0x363bca),this[_0x3347('0xf9')](_0x47a4c7[_0x3347('0x71')][_0x1bc4e6],_0x363bca),this['_copyMarkers'](_0x47a4c7[_0x3347('0x4c')][_0x1bc4e6],_0x5ad079),_0x19cf2d[_0x3347('0x4c')][_0x1bc4e6]=this[_0x3347('0x65')](this['_idsRoots']['get'](_0x1bc4e6),[]),_0x19cf2d['deletions'][_0x1bc4e6]=this[_0x3347('0x65')](this['_baseIdsRoots']['get'](_0x1bc4e6)||G(_0x1bc4e6,!0x1),[])):_0x2a96a9['delete'](_0x1bc4e6);}for(const _0x1c4004 of _0x2a96a9){const _0x445c9b=_0x19cf2d[_0x3347('0x4c')][_0x1c4004];for(const _0xc2a224 of _0x445c9b){const _0x24a008=this[_0x3347('0xe5')](_0xc2a224),_0x34763e=_0xc2a224[_0x3347('0x23')][_0x3347('0x1e')](_0x24a008);_0x3c57fe[_0x3347('0x51')](_0x34763e),_0x34763e>=this[_0x3347('0x42')]&&_0x46c5f2[_0x3347('0xf8')](_0x34763e,_0x522e93['get'](_0x34763e));}}for(const _0x1a5b02 of _0x2a96a9){const _0x3d512e=_0x19cf2d[_0x3347('0x4c')][_0x1a5b02],_0x29c35a=this['_getBaseVids'](_0x19cf2d[_0x3347('0x71')][_0x1a5b02]);let _0xc03dad=0x0;for(const _0x53617f of _0x3d512e){const _0x153c63=this[_0x3347('0xe5')](_0x53617f),_0x184d3b=_0x53617f['item'][_0x3347('0x1e')](_0x153c63);if(!_0x46c5f2[_0x3347('0xed')](_0x184d3b)&&!_0x2be429[_0x3347('0xed')](_0x184d3b)){if(_0x3c57fe['has'](_0x184d3b))_0xc03dad++;else{if(_0x184d3b!=_0x29c35a[_0xc03dad]){const _0x33b686=_0x522e93['get'](_0x184d3b)||_0x522e93[_0x3347('0x76')](_0x29c35a[_0xc03dad]);for(;_0x184d3b!=_0x29c35a[_0xc03dad];)_0x3c57fe[_0x3347('0xed')](_0x29c35a[_0xc03dad])||(_0x2be429['set'](_0x29c35a[_0xc03dad],_0x33b686),_0x522e93[_0x3347('0xf8')](_0x29c35a[_0xc03dad],_0x33b686)),_0xc03dad++;}_0xc03dad++;}}}}for(const _0x22edb6 of _0x2a96a9){const _0x19f784=_0x19cf2d['insertions'][_0x22edb6];for(const _0x34481b of _0x19f784){const _0x1a5377=this[_0x3347('0xe5')](_0x34481b),_0x2f186c=_0x34481b[_0x3347('0x23')][_0x3347('0x1e')](_0x1a5377);if(_0x2be429[_0x3347('0xed')](_0x2f186c)){const _0x402bee=_0x2be429[_0x3347('0x76')](_0x2f186c);_0x3c57fe[_0x3347('0xed')](_0x2f186c)||_0x3c57fe[_0x3347('0xf8')](_0x2f186c,{..._0x402bee}),_0x46c5f2['set'](_0x2f186c,{..._0x402bee});}}}for(const _0x248488 of _0x3c57fe[_0x3347('0xb6')]())_0x248488>=this[_0x3347('0x42')]&&_0x3c57fe[_0x3347('0x51')](_0x248488);const _0x243297=new Map();for(const _0xcd96b4 of _0x2a96a9){let _0x55943e=_0x19cf2d['insertions'][_0xcd96b4];for(const _0x3c86a2 of _0x55943e)if(_0x3c86a2[_0x3347('0x23')]['is']('element',_0x3347('0x4'))){const _0x33e0a9=this['_getVidAttributeName'](_0x3c86a2),_0x3215a8=_0x3c86a2['item'][_0x3347('0x1e')](_0x33e0a9);if(_0x46c5f2['has'](_0x3215a8)){const _0x5cc3a2=_0x3c86a2[_0x3347('0x23')]['parent']['parent'][_0x3347('0x1e')](_0x3347('0x30')),_0x57244e=_0x243297['get'](_0x5cc3a2)||new Set();_0x57244e[_0x3347('0x57')](_0x46c5f2[_0x3347('0x76')](_0x3215a8)[_0x3347('0xd')]),_0x243297[_0x3347('0xf8')](_0x5cc3a2,_0x57244e);}}_0x55943e=_0x19cf2d[_0x3347('0x71')][_0xcd96b4];for(const _0xc2d0c1 of _0x55943e)if(_0xc2d0c1[_0x3347('0x23')]['is'](_0x3347('0xa6'),_0x3347('0x4'))){const _0x29bae7=this['_getVidAttributeName'](_0xc2d0c1),_0x3c7fae=_0xc2d0c1[_0x3347('0x23')][_0x3347('0x1e')](_0x29bae7);if(_0x3c57fe[_0x3347('0xed')](_0x3c7fae)){const _0xe96a19=_0xc2d0c1[_0x3347('0x23')]['parent'][_0x3347('0x26')]['getAttribute'](_0x3347('0x30')),_0x4d1642=_0x243297[_0x3347('0x76')](_0xe96a19)||new Set();_0x4d1642['add'](_0x3c57fe[_0x3347('0x76')](_0x3c7fae)['userId']),_0x243297['set'](_0xe96a19,_0x4d1642);}}for(const _0x5b332e of _0x243297[_0x3347('0xb6')]())(_0x46c5f2[_0x3347('0xed')](_0x5b332e)||_0x3c57fe['has'](_0x5b332e))&&_0x243297[_0x3347('0x51')](_0x5b332e);}for(const _0x400f09 of _0x2a96a9){const _0x38f93=_0x19cf2d[_0x3347('0x4c')][_0x400f09];let _0x4c466f=null,_0x57e552=null;for(const _0x2fd0b6 of _0x38f93){const _0x2a7547=this['_getVidAttributeName'](_0x2fd0b6),_0x297988=_0x2fd0b6[_0x3347('0x23')][_0x3347('0x1e')](_0x2a7547),_0x37429d=_0x243297[_0x3347('0x76')](_0x297988);_0x37429d&&'elementStart'==_0x2fd0b6[_0x3347('0xd1')]&&(_0x4c466f=Array['from'](_0x37429d)[0x0],_0x57e552=_0x2fd0b6[_0x3347('0x23')][_0x3347('0x1e')](_0x3347('0xc0'))),_0x4c466f&&(_0x3c57fe[_0x3347('0xf8')](_0x297988,{'userId':_0x4c466f}),_0x46c5f2[_0x3347('0xf8')](_0x297988,{'userId':_0x4c466f})),_0x297988==_0x57e552&&(_0x4c466f=null,_0x57e552=null);}}const _0x33ff4f={},_0x948e06=new Set();for(const _0x3bebe7 of _0x2a96a9){const _0x32f18e=_0x47a4c7[_0x3347('0x71')][_0x3bebe7],_0xc4aa31=_0x47a4c7[_0x3347('0x4c')][_0x3bebe7];for(const {userId:_0x4e1a00}of this[_0x3347('0xa')][_0x3347('0xf2')]())null!==_0x4e1a00&&_0x948e06[_0x3347('0x57')](_0x4e1a00);for(const {userId:_0xc3c457}of this[_0x3347('0xf1')][_0x3347('0xf2')]())null!==_0xc3c457&&_0x948e06[_0x3347('0x57')](_0xc3c457);this['_markChanges'](_0xc4aa31,_0x19cf2d[_0x3347('0x4c')][_0x3bebe7],_0x46c5f2,_0x3347('0x27'),_0x948e06),this[_0x3347('0xa9')](_0x32f18e,_0x19cf2d[_0x3347('0x71')][_0x3bebe7],_0x3c57fe,_0x3347('0x68'),_0x948e06),_0x33ff4f[_0x3bebe7]={'insertions':this['_prepareViewToSave'](_0xc4aa31),'deletions':this['_prepareViewToSave'](_0x32f18e),'attachChange':this[_0x3347('0xf1')][_0x3347('0x76')](_0x3bebe7)||null,'attributesBefore':_0x2f8f84(this['_baseRootsAttributes']['get'](_0x3bebe7))||{},'attributesAfter':_0x2f8f84(this[_0x3347('0x54')][_0x3347('0x76')](_0x3bebe7))};}return{'diffData':_0x33ff4f,'authorsIds':Array[_0x3347('0x5c')](_0x948e06)};}[_0x3347('0x7b')](_0x3db14b){for(const [,_0x494891]of _0x3db14b['markers']){const _0xa059df=_0x494891[_0x3347('0xb7')]['getAncestors']()[_0x3347('0x18')](_0x5da19d=>_0x3347('0x4')==_0x5da19d[_0x3347('0xc2')]);for(const _0x1ce72d of _0xa059df)0x1==_0x1ce72d[_0x3347('0x4d')]&&_0x1ce72d[_0x3347('0x13')](0x0)['is']('element',_0x3347('0xec'))&&_0x1ce72d['getChild'](0x0)[_0x3347('0x29')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4ba180){this[_0x3347('0x7b')](_0x4ba180);const _0x2d6d67=this[_0x3347('0xf')]['data'][_0x3347('0xb3')](_0x4ba180,{}),_0x46df01=Array[_0x3347('0x5c')](_0x2d6d67[_0x3347('0x9a')]())[_0x3347('0xbc')](_0x569a58=>this[_0x3347('0x9b')](_0x569a58));return JSON['stringify'](_0x46df01);}['_getViewJson'](_0x57731b){if(_0x57731b['is'](_0x3347('0x94')))return _0x57731b[_0x3347('0x2b')];{const _0x5b4a19=_0x57731b;return{'type':Object[_0x3347('0xb6')](B)[_0x3347('0x10')](_0x3bb3d3=>_0x57731b instanceof B[_0x3bb3d3]),'name':_0x5b4a19[_0x3347('0xc2')],'attributes':Array[_0x3347('0x5c')](_0x5b4a19['getAttributes']()),'children':Array[_0x3347('0x5c')](_0x5b4a19[_0x3347('0x9a')]())[_0x3347('0xbc')](_0x54e981=>this[_0x3347('0x9b')](_0x54e981))};}}['_markChanges'](_0x103392,_0x545f4f,_0x17cee3,_0x3d71ed,_0x3d7967){let _0x25d61c=null,_0x2ac700=null,_0x1b1190=0x0;const _0x2291fb=this[_0x3347('0xf')][_0x3347('0x3e')];for(let _0x185f2e=0x0;_0x185f2e<_0x545f4f['length'];_0x185f2e++){const _0x23a351=this[_0x3347('0xe5')](_0x545f4f[_0x185f2e]),_0x5653e5=_0x545f4f[_0x185f2e]['item'][_0x3347('0x1e')](_0x23a351),_0x3702a5=_0x17cee3['get'](_0x5653e5),_0x5e2556=_0x185f2e==_0x545f4f[_0x3347('0x6f')]-0x1;(!_0x25d61c&&_0x3702a5&&(_0x25d61c=_0x3702a5,_0x2ac700=_0x545f4f[_0x185f2e]),_0x25d61c&&(!_0x3702a5||_0x3702a5[_0x3347('0xd')]!=_0x25d61c[_0x3347('0xd')]))&&(_0xf4dd5f(_0x3702a5,L(_0x2ac700,_0x103392,_0x2291fb),L(_0x545f4f[_0x185f2e],_0x103392,_0x2291fb)),_0x25d61c=_0x3702a5||null,_0x2ac700=_0x3702a5?_0x545f4f[_0x185f2e]:null),_0x25d61c&&_0x5e2556&&_0xf4dd5f(_0x3702a5,L(_0x2ac700,_0x103392,_0x2291fb),W(_0x545f4f[_0x185f2e],_0x103392,_0x2291fb));}function _0xf4dd5f(_0x1bd63c,_0x1b6d55,_0x4f3c27){const _0x252230=_0x25d61c['userId'],_0x47dd04=_0x3347('0x9e')+_0x3d71ed+':'+_0x252230+':'+_0x1b1190++,_0x35997c=_0x2291fb['createRange'](_0x1b6d55,_0x4f3c27);_0x103392[_0x3347('0xbf')][_0x3347('0xf8')](_0x47dd04,_0x35997c),null!==_0x252230&&_0x3d7967[_0x3347('0x57')](_0x252230);}}[_0x3347('0xe5')](_0x4c64de){switch(_0x4c64de[_0x3347('0xd1')]){case'elementStart':return _0x3347('0x30');case _0x3347('0xb1'):return'vid_end';default:return _0x3347('0xe4');}}['_fixOperation'](_0x420309,_0x27b5b8){_0x420309[_0x3347('0xe0')]=null;for(const _0x568445 in _0x420309){const _0x19150a=_0x420309[_0x568445];if(_0x19150a instanceof _0x35969a){const _0x367af1=_0x27b5b8[_0x3347('0x76')](_0x19150a['root'][_0x3347('0xb9')]);_0x420309[_0x568445]=this[_0x3347('0x95')](_0x19150a,_0x367af1);}if(_0x19150a instanceof _0x7f1367){const _0x53ff0c=_0x27b5b8[_0x3347('0x76')](_0x19150a[_0x3347('0x83')][_0x3347('0xb9')]);_0x420309[_0x568445]=this[_0x3347('0xd2')](_0x19150a,_0x53ff0c);}_0x3347('0x83')===_0x568445&&(_0x420309[_0x3347('0x83')]=_0x27b5b8['get'](_0x420309[_0x3347('0x83')]['rootName']));}}[_0x3347('0xd2')](_0x7173fc,_0x11a1f7){return this['editor'][_0x3347('0x3e')][_0x3347('0xd9')](this['_fixPosition'](_0x7173fc[_0x3347('0xb7')],_0x11a1f7),this[_0x3347('0x95')](_0x7173fc[_0x3347('0x66')],_0x11a1f7));}['_fixPosition'](_0x1cedeb,_0x12675c){return this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x67')](_0x12675c,_0x1cedeb['path'],_0x1cedeb[_0x3347('0xc9')]);}['_handleInsertOperation'](_0x1cfa95){const _0x4cc73f=this[_0x3347('0xd3')]['get'](_0x1cfa95[_0x3347('0x5b')][_0x3347('0x83')][_0x3347('0xb9')]),_0x53ec7e=this[_0x3347('0x95')](_0x1cfa95[_0x3347('0x5b')],_0x4cc73f),_0x5631ca=null===_0x1cfa95[_0x3347('0x97')]?null:_0x1cfa95[_0x3347('0x97')]||this['editor'][_0x3347('0xf6')]['get']('Users')['me']['id'],_0x1777aa=_0x53ec7e[_0x3347('0x26')],_0x533126=this[_0x3347('0x17')],_0x56be5b=[];for(const _0x3deaeb of _0x1cfa95[_0x3347('0x6a')])if(_0x3deaeb['is'](_0x3347('0xa6')))_0x56be5b['push'](this['_makeIdsRoot'](_0x3deaeb));else for(let _0x3dcaaa=0x0;_0x3dcaaa<_0x3deaeb[_0x3347('0xbb')];_0x3dcaaa++)_0x56be5b['push'](new _0x4e33b1(_0x3347('0x94'),{'vid':this['_revisionId']++}));const _0x404337=this[_0x3347('0x17')];for(let _0x349225=_0x533126;_0x349225<_0x404337;_0x349225++)this[_0x3347('0xb')]['set'](_0x349225,{'userId':_0x5631ca});_0x1777aa[_0x3347('0x8f')](_0x53ec7e['offset'],_0x56be5b);}[_0x3347('0x37')](_0x590e2f){(_0x590e2f=this[_0x3347('0xa4')](_0x590e2f,this['_idsRoots']))[_0x3347('0xae')]();const _0x47c958=null===_0x590e2f[_0x3347('0x97')]?null:_0x590e2f[_0x3347('0x97')]||this[_0x3347('0xf')]['plugins'][_0x3347('0x76')]('Users')['me']['id'],_0x3383b2=_0x590e2f[_0x3347('0x49')](),_0x49609a=_0x3383b2[_0x3347('0x26')],_0x3ec32=_0x3383b2[_0x3347('0x86')];!function _0x4b5053(_0x2f50f6,_0x20b066,_0x3246e0,_0x5de4cd){for(let _0x157d79=_0x3246e0;_0x157d79<_0x5de4cd;_0x157d79++){const _0x3b5ffd=_0x20b066[_0x3347('0x13')](_0x157d79);_0x3b5ffd['is'](_0x3347('0xa6'),_0x3347('0x94'))?_0x2f50f6[_0x3347('0xf8')](_0x3b5ffd[_0x3347('0x1e')](_0x3347('0xe4')),{'userId':_0x47c958}):(_0x2f50f6[_0x3347('0xf8')](_0x3b5ffd['getAttribute'](_0x3347('0x30')),{'userId':_0x47c958}),_0x4b5053(_0x2f50f6,_0x3b5ffd,0x0,_0x3b5ffd['childCount']),_0x2f50f6[_0x3347('0xf8')](_0x3b5ffd['getAttribute'](_0x3347('0xc0')),{'userId':_0x47c958}));}}(this['_touched'],_0x49609a,_0x3ec32,_0x3ec32+_0x590e2f['howMany']);}[_0x3347('0x4e')](_0xf0b802){const _0x35529f=null===(_0xf0b802=this[_0x3347('0xa4')](_0xf0b802,this['_idsRoots']))[_0x3347('0x97')]?null:_0xf0b802[_0x3347('0x97')]||this['editor'][_0x3347('0xf6')][_0x3347('0x76')](_0x3347('0xa3'))['me']['id'],_0x498f68=_0xf0b802['targetPosition'][_0x3347('0x26')],_0x4ad00b=_0xf0b802[_0x3347('0xbe')][_0x3347('0x26')],_0x3b85e2=_0x498f68[_0x3347('0x1e')](_0x3347('0xc0')),_0x43b73e=_0x4ad00b[_0x3347('0x1e')]('vid_start');_0x498f68[_0x3347('0x29')](_0x3347('0xc0'),_0x4ad00b[_0x3347('0x1e')](_0x3347('0xc0'))),_0x4ad00b[_0x3347('0x29')](_0x3347('0xc0'),_0x3b85e2),this[_0x3347('0xb')][_0x3347('0xf8')](_0x43b73e,{'userId':_0x35529f}),this[_0x3347('0xb')][_0x3347('0xf8')](_0x3b85e2,{'userId':_0x35529f}),_0xf0b802[_0x3347('0xae')]();}[_0x3347('0xea')](_0x2cda79){const _0x3a5627=null===(_0x2cda79=this[_0x3347('0xa4')](_0x2cda79,this['_idsRoots']))[_0x3347('0x97')]?null:_0x2cda79['_authorId']||this[_0x3347('0xf')][_0x3347('0xf6')][_0x3347('0x76')]('Users')['me']['id'],_0x3f216c=_0x2cda79[_0x3347('0x1a')],_0xd4a7b1=_0x2cda79[_0x3347('0x9d')][_0x3347('0x26')];_0x2cda79[_0x3347('0xae')]();const _0x49d914=_0xd4a7b1[_0x3347('0x1e')](_0x3347('0xc0')),_0x57cf0a=_0x2cda79['insertionPosition']['nodeAfter'];if(_0x3f216c){const _0x18df4a=_0x57cf0a[_0x3347('0x1e')](_0x3347('0xc0')),_0x4dea89=_0xd4a7b1[_0x3347('0x1e')](_0x3347('0xc0'));_0xd4a7b1[_0x3347('0x29')](_0x3347('0xc0'),_0x18df4a),_0x57cf0a[_0x3347('0x29')](_0x3347('0xc0'),_0x4dea89),this['_touched'][_0x3347('0xf8')](_0xd4a7b1[_0x3347('0x1e')](_0x3347('0xc0')),{'userId':_0x3a5627}),this['_touched'][_0x3347('0xf8')](_0x57cf0a['getAttribute'](_0x3347('0x30')),{'userId':_0x3a5627});}else{const _0x258f72=this[_0x3347('0x17')]++,_0x266d8e=this['_revisionId']++;_0xd4a7b1[_0x3347('0x29')](_0x3347('0xc0'),_0x258f72),_0x57cf0a[_0x3347('0x29')](_0x3347('0x30'),_0x266d8e),_0x57cf0a['_setAttribute'](_0x3347('0xc0'),_0x49d914),this[_0x3347('0xb')]['set'](_0x258f72,{'userId':_0x3a5627}),this[_0x3347('0xb')]['set'](_0x266d8e,{'userId':_0x3a5627});}}['_handleMarkerOperation'](_0x2b08a6){if(!_0x2b08a6['affectsData'])return;const _0x3f07cb=(_0x2b08a6=this['_cloneOperation'](_0x2b08a6,this[_0x3347('0x12')]))['oldRange']?_0x2b08a6[_0x3347('0xf4')][_0x3347('0x83')]:null,_0x53efa4=_0x2b08a6[_0x3347('0xd8')]?_0x2b08a6[_0x3347('0xd8')][_0x3347('0x83')]:null;_0x3f07cb&&this[_0x3347('0xd5')][_0x3347('0x51')](_0x2b08a6[_0x3347('0xc2')]),_0x53efa4&&this[_0x3347('0xd5')][_0x3347('0xf8')](_0x2b08a6[_0x3347('0xc2')],_0x2b08a6[_0x3347('0xd8')]['clone']());const _0x4bb1f1=null===_0x2b08a6[_0x3347('0x97')]?null:_0x2b08a6[_0x3347('0x97')]||this['editor']['plugins'][_0x3347('0x76')]('Users')['me']['id'],_0x9209fd=_0x2b08a6[_0x3347('0xc2')];if(!this[_0x3347('0xa')][_0x3347('0xed')](_0x9209fd))return void this['_touchedMarkers'][_0x3347('0xf8')](_0x9209fd,{'range':_0x2b08a6[_0x3347('0xf4')],'userId':_0x4bb1f1});const _0x251f1f=this[_0x3347('0xa')][_0x3347('0x76')](_0x9209fd),_0x22394=_0x251f1f['range'],_0x34a9b6=_0x2b08a6[_0x3347('0xd8')];null==_0x22394&&null==_0x34a9b6||_0x22394&&_0x34a9b6&&_0x22394['isEqual'](_0x34a9b6)?this[_0x3347('0xa')][_0x3347('0x51')](_0x2b08a6['name']):_0x251f1f[_0x3347('0xd')]=_0x4bb1f1;}[_0x3347('0xa0')](_0x2dce4c,_0x41664c){this[_0x3347('0x12')][_0x3347('0xed')](_0x2dce4c['rootName'])?this['_diffRoots']['get'](_0x2dce4c[_0x3347('0xb9')])[_0x3347('0xc')]=_0x2dce4c[_0x3347('0xfa')]:(this['_diffRoots'][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],G(_0x2dce4c[_0x3347('0xb9')],!0x0)),this[_0x3347('0x54')][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],{}),_0x41664c&&this[_0x3347('0xd3')][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],G(_0x2dce4c[_0x3347('0xb9')],!0x0)));const _0xe449a3=null===_0x2dce4c[_0x3347('0x97')]?null:_0x2dce4c['_authorId']||this['editor']['plugins']['get'](_0x3347('0xa3'))['me']['id'],_0x5c6fd2=this[_0x3347('0xf1')][_0x3347('0x76')](_0x2dce4c[_0x3347('0xb9')]);_0x5c6fd2&&_0x5c6fd2[_0x3347('0xd')]===_0xe449a3?this[_0x3347('0xf1')][_0x3347('0x51')](_0x2dce4c[_0x3347('0xb9')]):this[_0x3347('0xf1')][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],{'userId':_0xe449a3,'isAttached':_0x2dce4c[_0x3347('0xfa')]});}[_0x3347('0xfc')](_0x59d384){const _0x334cb0=this[_0x3347('0x54')][_0x3347('0x76')](_0x59d384['root'][_0x3347('0xb9')]);null===_0x59d384['newValue']?delete _0x334cb0[_0x59d384[_0x3347('0x79')]]:_0x334cb0[_0x59d384['key']]=_0x59d384[_0x3347('0xcc')];}}function q(_0x4be601){const _0x30e814=G(_0x4be601['rootName'],_0x4be601[_0x3347('0x59')]());for(const _0x38f606 of _0x4be601[_0x3347('0x9a')]()){const _0x10fe9f=_0x38f606[_0x3347('0xb2')](!0x0);_0x30e814['_appendChild'](_0x10fe9f);}return _0x30e814;}function G(_0x2b7374,_0x3f41ec=!0x0){const _0x30085f=new _0x56135f();return _0x30085f[_0x3347('0xb9')]=_0x2b7374,_0x30085f[_0x3347('0xc')]=_0x3f41ec,_0x30085f[_0x3347('0x59')]=()=>_0x30085f[_0x3347('0xc')],_0x30085f;}function L(_0xbea314,_0x28a1f2,_0x2fda30){const _0x307611=_0x3347('0xb1')==_0xbea314['type']?_0x2fda30[_0x3347('0x70')](_0xbea314[_0x3347('0x23')],_0x3347('0x66')):_0x2fda30[_0x3347('0xdc')](_0xbea314[_0x3347('0x23')]);return _0x2fda30[_0x3347('0x67')](_0x28a1f2,_0x307611['path'],_0x307611[_0x3347('0xc9')]);}function W(_0x46ff66,_0x419508,_0x5ec1af){const _0x2bd319=_0x3347('0xf5')==_0x46ff66[_0x3347('0xd1')]?_0x5ec1af[_0x3347('0x70')](_0x46ff66['item'],0x0):_0x5ec1af[_0x3347('0x2a')](_0x46ff66[_0x3347('0x23')]);return _0x5ec1af[_0x3347('0x67')](_0x419508,_0x2bd319[_0x3347('0x96')],_0x2bd319[_0x3347('0xc9')]);}
|
|
23
|
+
const _0x200e=['find','_handleMoveOperation','vid_start','parent','update','_handleRootAttributeOperation','_setAttribute','_startingVersion','afterInit','sort','get','_continueCurrentRevision','splitPosition','_makeModelFromViewString','_replaceEditorDataWithRevisionData','_touchedRoots','slice','_isPendingUpdate','startsWith','element','nodeAfter','reverse','getAttributes','push','pluginName','_getFromVersion','RevisionTracker','_getState','_prepareViewToSave','adapter','roots','documentFragment','path','_revisionId','vid','baseVersion','_setConversion','config','_pendingAction','stickiness','getTransformedByOperation','_createCurrentRevision','_loadedStateData','_reset','_appendChild','removeRootAttribute','_transformMarkers','keepParagraph','upcast','_markChanges','_handleMarkerOperation','Empty\x20document','_calculateMetaData','repository','revision-end','root','previousPosition','_getBaseVids','toModel','_handleOperation','RevisionsRepository','addRootAttribute','document','creatorId','PendingActions','vid_end','name','_clone','_removeRevisionMarkers','NEGATIVE_INFINITY','resolve','processor','move','saveRevision','clone','howMany','buildRevisionData','type','bind','rootName','source','size','define','_createInitialRevision','clear','init','newRange','_fixOperation','$graveyard','getAncestors','authorsIds','_touched','userId','rootsAttributes','map','set','for','_lastTo','_diffRoots','_lastFrom','_removePendingAction','collaboration.channelId','createRange','reInit','data','_isAttached','filter','fromVersion','markers','_makeRevision','_baseIdsRoots','deletions','_baseRootsAttributes','_copyMarkers','createPositionFromPath','_fixPosition','oldRange','editing','start','_idsRoots','_handleMergeOperation','attachChange','_handleSplitOperation','useFillerType','_diffRootsAttributes','getRevision','marked','revisionHistory.resumeUnsavedRevision','getRevisions','toView','plugins','getNodeByPath','markerToData','insert','attributesAfter','_getViewJson','marker','createPositionAfter','from','_touchedMarkers','parse','PENDING_ACTION_REVISION_HISTORY','addRoot','getMovedRangeStart','_applyOperations','merge','_execute','_handleInsertOperation','affectsData','getUser','remove','_initialRevisionId','loadState','ready','_processRootBeforeSave','locale','_operations','_findInsertionIndex','insertions','_authorId','_handleRootOperation','add','_cloneOperation','authors','_saveMetaData','toVersion','createPositionAt','key','createdAt','_isInit','_addPendingAction','_makeIdsRoot','forEach','editor','isEnabled','changeRootAttribute','_fixRange','deletion','version','detachRoot','position','delete','getTime','creator','_getVidAttributeName','addRevisionData','trim','insertion','elementStart','currentRevision','_source','some','getRevisionRootsAttributes','_loadState','tableCell','offsetSize','string','_revisionDataBuilder','data-revision-','keys','Users','setRevisionData','newValue','_markers','isEqual','$text','graveyardPosition','getAttribute','attributesBefore','isAdd','_createFromRanges','targetPosition','_bufferUpdate','_baseRoots','getData','createRangeIn','offset','length','_savedMetaData','_update','diffData','split','_removeMetaData','Initial\x20revision','elementEnd','getWalker','item','_startingRevisionId','initialData','updateRevisions','revision:','attributes','_generateTape','getChild','getCurrentRevisionId','getRootNames','_getPreviousFrom','isAttached','_loadRevisionData','sendBufferedUpdates','view','getOperation','_bufferedUpdates','end','getIndex','model','conversion','_insertChild','dataToMarker','isReady','getChildren','values','history','has','shift','children','getRoot'];(function(_0x31ab5d,_0x200e09){const _0x1f29bc=function(_0x14e5ff){while(--_0x14e5ff){_0x31ab5d['push'](_0x31ab5d['shift']());}};_0x1f29bc(++_0x200e09);}(_0x200e,0x134));const _0x1f29=function(_0x31ab5d,_0x200e09){_0x31ab5d=_0x31ab5d-0x0;let _0x1f29bc=_0x200e[_0x31ab5d];return _0x1f29bc;};import{Users as _0x321e13}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3e8263,PendingActions as _0x26c8cd}from'ckeditor5/src/core';import{logWarning as _0x142348,uid as _0x417ca5}from'ckeditor5/src/utils';import{Position as _0x19e12c,Range as _0x2de140,Element as _0x28cd05,DocumentFragment as _0x4511db,ViewText as _0x594c3f,ViewElement as _0x16218f,ViewContainerElement as _0x2529b5,ViewAttributeElement as _0x5e3a86,ViewEmptyElement as _0x2c951f,ViewRawElement as _0x5c6b3e,ViewUIElement as _0x8bb71c,ViewDocumentFragment as _0x1fbff7}from'ckeditor5/src/engine';import _0x483f09 from'./revisionsrepository';import{getTranslation as _0x3119a5}from'./utils/common-translations';import{cloneDeep as _0x1b57dc,isEqual as _0x43a38b}from'lodash-es';const B={'c':_0x2529b5,'a':_0x5e3a86,'e':_0x2c951f,'r':_0x5c6b3e,'u':_0x8bb71c};export default class l extends _0x3e8263{static get[_0x1f29('0xe6')](){return _0x1f29('0xe8');}static get['requires'](){return[_0x321e13,_0x483f09,_0x26c8cd];}constructor(_0x3fac25){super(_0x3fac25),this['adapter']=null,this[_0x1f29('0x8a')]=null,this['_revisionDataBuilder']=new H(this[_0x1f29('0x7a')]),this['_initialRevisionId']=this[_0x1f29('0x7a')]['config'][_0x1f29('0xd8')](_0x1f29('0x32'))||'initial',this[_0x1f29('0xbf')]=new Map(),this[_0x1f29('0xf8')]=null;const _0x5bc68c=_0x417ca5();this['_source']={'history':this[_0x1f29('0x7a')]['model'][_0x1f29('0xb')][_0x1f29('0xc9')],'getLatestVersion':()=>Promise[_0x1f29('0x13')](this[_0x1f29('0x7a')]['model']['document'][_0x1f29('0x7f')]),'getCurrentRevisionId':()=>_0x5bc68c},this['set']('isReady',!0x1),this[_0x1f29('0x2c')](_0x1f29('0x7b'),!0x0),this['set'](_0x1f29('0xdf'),!0x1),this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0x1f')](_0x1f29('0x4c'),!0x0),this[_0x1f29('0x7a')][_0x1f29('0xc3')][_0x1f29('0x2d')](_0x1f29('0xfe'))[_0x1f29('0xc5')]({'view':'revision'});}['init'](){this['repository']=this[_0x1f29('0x7a')]['plugins'][_0x1f29('0xd8')](_0x1f29('0x9')),this['_setConversion'](),this['editor'][_0x1f29('0x35')]['on'](_0x1f29('0x66'),()=>{const _0x4fe4e2=this[_0x1f29('0x2')][_0x1f29('0x4a')](0x0),_0x4fcb7f=_0x4fe4e2&&null===_0x4fe4e2[_0x1f29('0x84')]?_0x4fe4e2:null;if(this[_0x1f29('0xd9')]=!!_0x4fcb7f&&this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')]('revisionHistory.resumeUnsavedRevision'),this[_0x1f29('0x7a')][_0x1f29('0x4f')]['has']('RealTimeCollaborationClient')){const _0x527166=this[_0x1f29('0x8b')]['getCurrentRevisionId'](),_0xb04883=this[_0x1f29('0x2')][_0x1f29('0x4a')](_0x527166);if(_0xb04883)this[_0x1f29('0xd5')]=_0xb04883[_0x1f29('0x38')],this[_0x1f29('0xd9')]=!0x1;else{const _0x360cbd=this[_0x1f29('0x8b')]['history'][_0x1f29('0x69')]['find'](_0x479cb5=>!_0x479cb5[_0x1f29('0x76')]),_0x5f14fa=_0x360cbd?_0x360cbd[_0x1f29('0xf1')]:this[_0x1f29('0x8b')][_0x1f29('0xc9')]['version'];_0x4fe4e2?(_0x4fe4e2['toVersion']<_0x5f14fa&&_0x4fe4e2['_update']({'toVersion':_0x5f14fa}),this[_0x1f29('0xd9')]?(this[_0x1f29('0x8b')][_0x1f29('0xb7')]=()=>_0x4fcb7f['id'],this[_0x1f29('0xd5')]=_0x4fcb7f[_0x1f29('0x38')]):(this[_0x1f29('0xd5')]=_0x4fe4e2[_0x1f29('0x72')],this[_0x1f29('0xd9')]=!0x1)):(this[_0x1f29('0xd5')]=_0x5f14fa,this[_0x1f29('0xd9')]=!0x1);}}else _0x4fcb7f&&(this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')]['history'][_0x1f29('0x7f')]=Math['max'](_0x4fcb7f[_0x1f29('0x72')],this['editor'][_0x1f29('0xc2')]['document'][_0x1f29('0xc9')]['version']),_0x4fcb7f['fromVersion']===_0x4fcb7f[_0x1f29('0x72')]?(0x0!==_0x4fcb7f['fromVersion']&&(this[_0x1f29('0x8b')][_0x1f29('0xb7')]=()=>_0x4fcb7f['id']),this[_0x1f29('0xd9')]=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fcb7f['id'],this[_0x1f29('0xd5')]=_0x4fcb7f[_0x1f29('0x38')])),this[_0x1f29('0xd9')]||(this[_0x1f29('0xd5')]=this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0x7f')]);this[_0x1f29('0x92')][_0x1f29('0x22')](this[_0x1f29('0x8b')]['history']),this[_0x1f29('0x20')](this[_0x1f29('0xd5')]),this[_0x1f29('0xf7')](this[_0x1f29('0xd5')]),this[_0x1f29('0xeb')]&&this[_0x1f29('0xbc')]();}),this[_0x1f29('0x1b')](_0x1f29('0xc6'))['to'](this,_0x1f29('0xdf'),_0x2f9fda=>!_0x2f9fda);}async[_0x1f29('0xd6')](){if(this[_0x1f29('0x2')][_0x1f29('0xa6')]>0x0){const _0x3bec93=this[_0x1f29('0x2')][_0x1f29('0x4a')](0x0),_0x106d87=await this['getRevisionDocumentData'](_0x3bec93),_0x38de4f=await this[_0x1f29('0x8d')](_0x3bec93);this[_0x1f29('0xdc')](_0x106d87,_0x38de4f);}}['setSource'](_0xc2c6f3){this[_0x1f29('0x8b')]=_0xc2c6f3;}async[_0x1f29('0xd2')](){const _0x3d3439=await this[_0x1f29('0x8b')]['getLatestVersion']();if(_0x3d3439>this[_0x1f29('0x8a')][_0x1f29('0x72')]){await this[_0x1f29('0x8e')]();const _0x590be1=this[_0x1f29('0x19')]({'revision':this[_0x1f29('0x8a')],'to':_0x3d3439});_0x590be1[_0x1f29('0x70')]=_0x590be1[_0x1f29('0x27')]['map'](_0x314ff7=>this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')](_0x1f29('0x95'))[_0x1f29('0x62')](_0x314ff7)),this[_0x1f29('0x8a')][_0x1f29('0xa8')](_0x590be1);}}async[_0x1f29('0x8e')](){this['_continueCurrentRevision']&&!this[_0x1f29('0xf8')]&&(await this['_loadRevisionData'](this[_0x1f29('0x8a')]),this['_revisionDataBuilder']['loadState'](this[_0x1f29('0x8a')]),this[_0x1f29('0xf8')]={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x1f29('0x8a')][_0x1f29('0x70')][_0x1f29('0xde')]()});}async[_0x1f29('0x16')](_0x2156d7={},_0x1946fc=null){const _0x3db560=[];await this[_0x1f29('0x8e')](),this[_0x1f29('0xd9')]=!0x1,_0x1946fc>this[_0x1f29('0x8a')]['toVersion']&&(_0x1946fc=null),null===_0x1946fc&&(_0x1946fc=await this[_0x1f29('0x8b')]['getLatestVersion']());const _0x3c0af0=this[_0x1f29('0xe7')](_0x1946fc),_0x389e86=this[_0x1f29('0x19')]({'from':_0x3c0af0,'to':_0x1946fc});if(this[_0x1f29('0x8a')]['toVersion']<_0x1946fc){const _0x15e79b=this[_0x1f29('0x19')]({'revision':this['currentRevision'],'from':_0x1946fc,'to':_0x1946fc});_0x15e79b[_0x1f29('0x70')]=[],_0x15e79b[_0x1f29('0x27')]=[],_0x15e79b['id']=this[_0x1f29('0x8a')]['id'],this[_0x1f29('0x8a')]['_update'](_0x15e79b,!0x0),delete _0x15e79b[_0x1f29('0x70')],_0x3db560['push'](_0x15e79b);}_0x2156d7[_0x1f29('0xc')]=this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('Users')['me']['id'],_0x2156d7[_0x1f29('0xf')]=_0x2156d7[_0x1f29('0xf')]||null,_0x2156d7['id']=_0x2156d7['id']||_0x417ca5(),_0x2156d7={..._0x2156d7,..._0x389e86};const _0x499a66=this[_0x1f29('0x86')](_0x2156d7);_0x3db560[_0x1f29('0xe5')](_0x2156d7);const _0x1296a9=this[_0x1f29('0x2')][_0x1f29('0xc1')](_0x499a66);if(0x0!==_0x1296a9){const _0x5accb6=this['repository']['getRevision'](_0x1296a9-0x1);if(_0x5accb6[_0x1f29('0x38')]!==_0x1946fc){const _0x571baf=this[_0x1f29('0x92')][_0x1f29('0xa3')](_0x1946fc,_0x5accb6['toVersion']),_0x4720c0={'id':_0x5accb6['id'],'diffData':_0x571baf[_0x1f29('0xa9')],'authorsIds':_0x571baf['authorsIds'],'authors':_0x571baf['authorsIds'][_0x1f29('0x2b')](_0x596e95=>this[_0x1f29('0x7a')][_0x1f29('0x4f')]['get'](_0x1f29('0x95'))['getUser'](_0x596e95)),'fromVersion':_0x1946fc};_0x5accb6===this[_0x1f29('0x8a')]&&(_0x4720c0[_0x1f29('0x75')]=new Date(_0x2156d7[_0x1f29('0x75')][_0x1f29('0x83')]()+0xa)),_0x5accb6[_0x1f29('0xa8')](_0x4720c0,!0x0),delete _0x4720c0['authors'],_0x3db560[_0x1f29('0xe5')](_0x4720c0);}}if(this['adapter']){for(const _0x1c78e0 of _0x3db560)this[_0x1f29('0xa1')](_0x1c78e0['id'],_0x1c78e0,!0x0);this[_0x1f29('0xbc')]();}return _0x499a66;}[_0x1f29('0x86')](_0x1260fd){const _0x2d41da=this[_0x1f29('0x2')]['createRevision'](_0x1260fd);return this[_0x1f29('0xeb')]&&_0x2d41da['on'](_0x1f29('0xa8'),(_0x1c127d,_0x430dcc,_0x8f97fd)=>{_0x8f97fd||(this[_0x1f29('0xa1')](_0x430dcc['id'],_0x430dcc,!0x0),this[_0x1f29('0xbc')]());}),this[_0x1f29('0x2')]['addRevision'](_0x2d41da,this[_0x1f29('0x6a')](_0x2d41da)),_0x2d41da;}async['getRevisionDocumentData'](_0x490f5b){await this[_0x1f29('0xbb')](_0x490f5b);const _0x4f20fa={};for(const _0x252fb6 in _0x490f5b[_0x1f29('0xa9')]){if(_0x490f5b['diffData'][_0x252fb6][_0x1f29('0x46')]&&!_0x490f5b[_0x1f29('0xa9')][_0x252fb6][_0x1f29('0x46')]['isAttached'])continue;const _0x46b334=this[_0x1f29('0x11')](JSON[_0x1f29('0x59')](_0x490f5b[_0x1f29('0xa9')][_0x252fb6][_0x1f29('0x6b')])),_0xc7f6c3=this['editor']['editing'][_0x1f29('0xbd')][_0x1f29('0xb')],_0x2fb254=new _0x1fbff7(_0xc7f6c3,_0x46b334[_0x1f29('0x2b')](_0x37a7c5=>J(_0x37a7c5,this['editor'])));this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x14')]['useFillerType'](_0x1f29('0x4b')),_0x4f20fa[_0x252fb6]=this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x14')]['toData'](_0x2fb254),this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x14')][_0x1f29('0x48')]('default');}return _0x4f20fa;}async['getRevisionRootsAttributes'](_0x57a6b4){await this[_0x1f29('0xbb')](_0x57a6b4);const _0x30cd39={};for(const _0x52eae3 in _0x57a6b4[_0x1f29('0xa9')])_0x57a6b4[_0x1f29('0xa9')][_0x52eae3]['attachChange']&&!_0x57a6b4[_0x1f29('0xa9')][_0x52eae3][_0x1f29('0x46')][_0x1f29('0xba')]||(_0x30cd39[_0x52eae3]=_0x57a6b4[_0x1f29('0xa9')][_0x52eae3][_0x1f29('0x53')]||{});return _0x30cd39;}[_0x1f29('0xbc')](){if(0x0===this[_0x1f29('0xbf')]['size'])return;if(this[_0x1f29('0xdf')])return;let _0x55d913=Array['from'](this[_0x1f29('0xbf')][_0x1f29('0xc8')]());this[_0x1f29('0xbf')][_0x1f29('0x21')]();for(let _0x5a814c=0x0;_0x5a814c<_0x55d913[_0x1f29('0xa6')];_0x5a814c++){const _0x16a24a=_0x55d913[_0x5a814c];let _0x1fc65a=!0x1;for(const _0x4b43fb of Object['keys'](_0x16a24a))void 0x0===_0x16a24a[_0x4b43fb]?delete _0x16a24a[_0x4b43fb]:'id'!==_0x4b43fb&&(_0x1fc65a=!0x0);_0x1fc65a||(_0x55d913[_0x5a814c]=null);}if(_0x55d913=_0x55d913[_0x1f29('0x37')](_0x569836=>null!==_0x569836),!_0x55d913[_0x1f29('0xa6')])return;for(let _0xe76265=0x0;_0xe76265<_0x55d913[_0x1f29('0xa6')];_0xe76265++){const _0x48b261=_0x55d913[_0xe76265];void 0x0!==_0x48b261['fromVersion']&&void 0x0===_0x48b261[_0x1f29('0x72')]&&(_0x48b261['toVersion']=this['repository'][_0x1f29('0x4a')](_0x48b261['id'])[_0x1f29('0x72')]),void 0x0!==_0x48b261['toVersion']&&void 0x0===_0x48b261[_0x1f29('0x38')]&&(_0x48b261[_0x1f29('0x38')]=this[_0x1f29('0x2')][_0x1f29('0x4a')](_0x48b261['id'])[_0x1f29('0x38')]);}const _0x568f50=this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')](_0x1f29('0x32'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0x1f29('0xeb')][_0x1f29('0xb2')](_0x55d913,_0x568f50)['finally'](()=>{this[_0x1f29('0xdf')]=!0x1;})['then'](_0x4955af=>{if(_0x4955af)for(const _0x39bc1b of _0x4955af)this[_0x1f29('0x96')]({'id':_0x39bc1b['id'],'createdAt':_0x39bc1b[_0x1f29('0x75')]});this[_0x1f29('0x31')](),this[_0x1f29('0xbc')]();});}[_0x1f29('0xdc')](_0x1b5c92,_0x37cfeb){let _0x49e05d=this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')](_0x1f29('0xb1')),_0x41680e=this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0xd8')](_0x1f29('0x2a'));if(void 0x0===_0x49e05d){_0x49e05d={};for(const _0xc026eb of this['editor'][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xb8')]())_0x49e05d[_0xc026eb]='';}if(_0x1f29('0x91')==typeof _0x49e05d&&(_0x49e05d={'main':_0x49e05d}),void 0x0===_0x41680e){_0x41680e={};for(const _0x400d23 of this['editor']['model']['document'][_0x1f29('0xb8')]())_0x41680e[_0x400d23]={};}let _0x3b6905=!0x1;const _0x54353f=Object[_0x1f29('0x94')](_0x49e05d),_0x457065=Object[_0x1f29('0x94')](_0x1b5c92);for(const _0x2e326b of _0x54353f){if(_0x49e05d[_0x2e326b]!==_0x1b5c92[_0x2e326b]&&''!==_0x49e05d[_0x2e326b][_0x1f29('0x87')]()){_0x3b6905=!0x0;break;}if(!_0x43a38b(_0x41680e[_0x2e326b],_0x37cfeb[_0x2e326b])&&Object[_0x1f29('0x94')](_0x41680e[_0x2e326b])[_0x1f29('0xa6')]>0x0){_0x3b6905=!0x0;break;}}_0x3b6905||(_0x3b6905=_0x457065[_0x1f29('0x8c')](_0x12a87e=>!this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xcd')](_0x12a87e))),_0x3b6905&&_0x142348('editor-initial-data-replaced-with-revision-data',{'editorData':_0x49e05d,'editorRootsAttributes':_0x41680e,'revisionData':_0x1b5c92,'revisionRootsAttributes':_0x37cfeb}),this['editor'][_0x1f29('0xf3')][_0x1f29('0x2c')](_0x1f29('0xb1'),_0x1b5c92),this[_0x1f29('0x7a')][_0x1f29('0xf3')][_0x1f29('0x2c')]('rootsAttributes',_0x37cfeb);}[_0x1f29('0x77')](){if(!this[_0x1f29('0xf4')]){const _0x273618=this['editor']['plugins'][_0x1f29('0xd8')](_0x1f29('0xd'));this[_0x1f29('0xf4')]=_0x273618[_0x1f29('0x6e')](_0x3119a5(this[_0x1f29('0x7a')][_0x1f29('0x68')],_0x1f29('0x5a')));}}[_0x1f29('0x31')](){this[_0x1f29('0xf4')]&&(this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('PendingActions')[_0x1f29('0x63')](this['_pendingAction']),this['_pendingAction']=null);}[_0x1f29('0x6a')](_0x5c8646){const _0x30bd73=this[_0x1f29('0x2')][_0x1f29('0x4d')]();_0x30bd73[_0x1f29('0xe3')]();let _0x11b1d6=0x0;for(;_0x11b1d6<_0x30bd73[_0x1f29('0xa6')];){const _0x34abf3=_0x30bd73[_0x11b1d6];if(_0x34abf3===this[_0x1f29('0x8a')]){_0x11b1d6++;continue;}if(_0x34abf3['id']===this[_0x1f29('0x64')])break;const _0x2ca914=_0x5c8646[_0x1f29('0x72')]-_0x34abf3[_0x1f29('0x72')]||_0x5c8646['fromVersion']-_0x34abf3[_0x1f29('0x38')];if(_0x2ca914>0x0)break;if(_0x2ca914<0x0)_0x11b1d6++;else{if(!_0x5c8646[_0x1f29('0x84')]&&_0x34abf3[_0x1f29('0x84')])break;if(_0x34abf3[_0x1f29('0x84')]||!_0x5c8646[_0x1f29('0x84')]){if(_0x5c8646[_0x1f29('0x75')]>_0x34abf3[_0x1f29('0x75')])break;_0x11b1d6++;}else _0x11b1d6++;}}return _0x11b1d6;}['setRevisionData'](_0x244442){const _0x5a3b6c=this[_0x1f29('0x2')]['getRevision'](_0x244442['id']);if(_0x244442['createdAt']&&(_0x244442['createdAt']=new Date(_0x244442[_0x1f29('0x75')])),_0x244442[_0x1f29('0x27')]){const _0x209415=this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('Users');_0x244442['authors']=_0x244442[_0x1f29('0x27')][_0x1f29('0x2b')](_0x69297b=>_0x209415[_0x1f29('0x62')](_0x69297b));}_0x5a3b6c[_0x1f29('0xa8')](_0x244442,!0x0);}['buildRevisionData']({revision:_0x658b1f=null,from:_0xb72fa9=null,to:_0x3a4120=null}){_0xb72fa9=null!==_0xb72fa9?_0xb72fa9:_0x658b1f[_0x1f29('0x38')],_0x3a4120=null!==_0x3a4120?_0x3a4120:_0x658b1f['toVersion'];const _0x505ef8=this[_0x1f29('0x92')][_0x1f29('0xa3')](_0xb72fa9,_0x3a4120),_0x3431b9={'diffData':_0x505ef8['diffData'],'authorsIds':_0x505ef8['authorsIds'],'fromVersion':_0xb72fa9,'toVersion':_0x3a4120};if(!_0x658b1f||_0x3a4120!==_0x658b1f['toVersion']){const _0x34e6da=_0x3a4120-0x1,_0x418307=this['_source'][_0x1f29('0xc9')][_0x1f29('0xbe')](_0x34e6da);_0x3431b9[_0x1f29('0x75')]=_0x418307&&_0x418307[_0x1f29('0x75')]||new Date();}if(this[_0x1f29('0xf8')]&&_0xb72fa9===this[_0x1f29('0xf8')][_0x1f29('0x38')])for(const _0x5da380 of this['_loadedStateData'][_0x1f29('0x70')])_0x3431b9[_0x1f29('0x27')]['includes'](_0x5da380['id'])||_0x3431b9[_0x1f29('0x27')][_0x1f29('0xe5')](_0x5da380['id']);return _0x3431b9;}[_0x1f29('0xbb')](_0x36816a){if(!_0x36816a||_0x36816a[_0x1f29('0xa9')])return Promise['resolve']();{const _0x1b7758=this[_0x1f29('0x7a')]['config'][_0x1f29('0xd8')](_0x1f29('0x32'));return this[_0x1f29('0xeb')][_0x1f29('0x4a')]({'channelId':_0x1b7758,'revisionId':_0x36816a['id']})['then'](_0x31d360=>{_0x36816a[_0x1f29('0xa9')]=_0x31d360[_0x1f29('0xa9')];});}}[_0x1f29('0xa1')](_0x54acc8,_0x225e51,_0x46eb3c){if(this[_0x1f29('0xbf')]['has'](_0x54acc8)){const _0x636291=this[_0x1f29('0xbf')]['get'](_0x54acc8);_0x225e51=_0x46eb3c?{..._0x636291,..._0x225e51}:{..._0x225e51,..._0x636291};}this[_0x1f29('0xbf')][_0x1f29('0x2c')](_0x54acc8,_0x225e51);}[_0x1f29('0xe7')](_0x3866d1){const _0x10fd57=this[_0x1f29('0x2')][_0x1f29('0x4d')]();_0x10fd57[_0x1f29('0xe3')](),_0x10fd57[_0x1f29('0xcb')]();const _0x2838bd=_0x10fd57[_0x1f29('0xce')](_0x41a1b2=>_0x41a1b2[_0x1f29('0x72')]<=_0x3866d1)[_0x1f29('0x72')];return _0x2838bd<this['_startingVersion']?this[_0x1f29('0xd5')]:_0x2838bd;}[_0x1f29('0x20')](_0x228428){const _0x4a9bbd=this['repository'][_0x1f29('0x4a')](this['repository'][_0x1f29('0xa6')]-0x1);if(_0x4a9bbd)this[_0x1f29('0x64')]=_0x4a9bbd['id'];else{const _0x1ad74b=!this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')]['roots'][_0x1f29('0xce')](_0x1d6e3c=>this[_0x1f29('0x7a')][_0x1f29('0xc2')]['hasContent'](_0x1d6e3c)),_0x4db3dc=this[_0x1f29('0x7a')]['plugins'][_0x1f29('0xd8')](_0x1f29('0x95'))['me']['id'],_0x44dc5d=_0x3119a5(this[_0x1f29('0x7a')][_0x1f29('0x68')],_0x1ad74b?_0x1f29('0x0'):_0x1f29('0xac'));this[_0x1f29('0x3a')]({'from':_0x228428,'to':_0x228428,'id':this['_initialRevisionId'],'name':_0x44dc5d,'creatorId':_0x4db3dc});}}[_0x1f29('0xf7')](_0x3c408d){const _0x2e8808=this[_0x1f29('0x8b')][_0x1f29('0xb7')]();this[_0x1f29('0x8a')]=this[_0x1f29('0x2')][_0x1f29('0x4a')](_0x2e8808),this[_0x1f29('0x8a')]||(this[_0x1f29('0x8a')]=this['_makeRevision']({'from':_0x3c408d,'to':_0x3c408d,'id':_0x2e8808,'name':'','creatorId':null}));}[_0x1f29('0x3a')]({name:_0x3dd255,from:_0x2705bd,to:_0x127986,creatorId:_0x18e653,id:_0x3dba9f}){const _0x547ef1=this[_0x1f29('0x19')]({'from':_0x2705bd,'to':_0x127986});_0x547ef1['name']=_0x3dd255,_0x547ef1['creatorId']=_0x18e653,_0x547ef1['id']=_0x3dba9f;const _0x5792c8=this[_0x1f29('0x86')](_0x547ef1);return this[_0x1f29('0xeb')]&&this[_0x1f29('0xa1')](_0x547ef1['id'],_0x547ef1,!0x0),_0x5792c8;}[_0x1f29('0xf2')](){this[_0x1f29('0x7a')]['conversion']['for']('dataDowncast')[_0x1f29('0x51')]({'model':'revision'});}[_0x1f29('0x11')](_0x37f347){return(_0x37f347=_0x37f347[_0x1f29('0x37')](_0x41aa6b=>!_0x41aa6b[_0x1f29('0xf')]||'revision-start'!==_0x41aa6b[_0x1f29('0xf')]&&_0x1f29('0x3')!==_0x41aa6b[_0x1f29('0xf')]))[_0x1f29('0x79')](_0x30e85b=>{_0x1f29('0x91')!=typeof _0x30e85b&&(_0x30e85b[_0x1f29('0xcc')]=this[_0x1f29('0x11')](_0x30e85b['children']),_0x30e85b[_0x1f29('0xb4')]=_0x30e85b['attributes']['filter'](_0x120205=>!_0x120205[0x0][_0x1f29('0xe0')](_0x1f29('0x93'))));}),_0x37f347;}}function J(_0x296803,_0x59547d){const _0x1d3d90=_0x59547d[_0x1f29('0x42')][_0x1f29('0xbd')][_0x1f29('0xb')];if(_0x1f29('0x91')==typeof _0x296803)return new _0x594c3f(_0x1d3d90,_0x296803);{const _0x3864a9=_0x296803[_0x1f29('0xcc')][_0x1f29('0x2b')](_0x4db38b=>J(_0x4db38b,_0x59547d));return new(B[_0x296803[(_0x1f29('0x1a'))]]||_0x16218f)(_0x1d3d90,_0x296803[_0x1f29('0xf')],_0x296803['attributes'],_0x3864a9);}}class H{constructor(_0x5998f7){this['editor']=_0x5998f7,this[_0x1f29('0xa7')]=new Map(),this[_0x1f29('0x30')]=-0x1,this[_0x1f29('0x2e')]=-0x1,this[_0x1f29('0x98')]=new Map(),this[_0x1f29('0x2f')]=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x1f29('0x44')]=new Map(),this[_0x1f29('0x3b')]=new Map(),this[_0x1f29('0x28')]=new Map(),this[_0x1f29('0x58')]=new Map(),this[_0x1f29('0xdd')]=new Map(),this[_0x1f29('0xef')]=0x1;}[_0x1f29('0x22')](_0x3cc63b){this['source']=_0x3cc63b;const _0x40f6c9=new Map(),_0x22c20d=new Map(),_0x7a6d62=this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xec')][_0x1f29('0x2b')](_0x436648=>_0x436648[_0x1f29('0x1c')]);for(const _0x403be2 of _0x7a6d62){const _0x199d6c=this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0xb')][_0x1f29('0xcd')](_0x403be2),_0x20c5da=q(_0x199d6c);_0x40f6c9['set'](_0x403be2,_0x20c5da),_0x22c20d[_0x1f29('0x2c')](_0x403be2,Object['fromEntries'](_0x199d6c[_0x1f29('0xe4')]()));}const _0x58b9d1=Array[_0x1f29('0x57')](this[_0x1f29('0x7a')][_0x1f29('0xc2')][_0x1f29('0x39')])[_0x1f29('0x2b')](_0x295ff2=>[_0x295ff2['name'],_0x295ff2['getRange']()]),_0x2ae40b=this['source'][_0x1f29('0x7f')];this[_0x1f29('0x71')](_0x2ae40b,_0x40f6c9,_0x58b9d1,_0x22c20d),this[_0x1f29('0xb0')]=this[_0x1f29('0xef')];const _0x56eb01=new Map(),_0x4406d4=new Map();for(const _0x2a8da0 of _0x7a6d62){const _0x3a3796=G(_0x2a8da0);_0x56eb01[_0x1f29('0x2c')](_0x2a8da0,_0x3a3796),_0x4406d4[_0x1f29('0x2c')](_0x2a8da0,{});}this[_0x1f29('0x71')](Number[_0x1f29('0x12')],_0x56eb01,[],_0x4406d4);}[_0x1f29('0xa3')](_0x46c258,_0x201a04){if(this[_0x1f29('0x30')]===_0x46c258&&this['_lastTo']<=_0x201a04)this['_savedMetaData'][_0x1f29('0x1e')]>0x1&&this[_0x1f29('0xab')](this['_lastTo']),this[_0x1f29('0x5d')](this[_0x1f29('0x2e')],_0x201a04,!0x0);else{if(!this[_0x1f29('0xa7')][_0x1f29('0xca')](_0x46c258)){const _0x262f75=this[_0x1f29('0xb9')](_0x46c258);this[_0x1f29('0x1')](_0x262f75,_0x46c258,!0x1);}this[_0x1f29('0x1')](_0x46c258,_0x201a04,!0x0);}return this[_0x1f29('0x30')]=_0x46c258,this[_0x1f29('0x2e')]=_0x201a04,this[_0x1f29('0xe9')]();}[_0x1f29('0x65')](_0x1c0a68){this[_0x1f29('0xf9')](),this[_0x1f29('0x30')]=_0x1c0a68['fromVersion'],this[_0x1f29('0x2e')]=_0x1c0a68[_0x1f29('0x72')];for(const _0x2aaba4 in _0x1c0a68[_0x1f29('0xa9')]){const _0x3e4e6d=_0x1c0a68[_0x1f29('0xa9')][_0x2aaba4][_0x1f29('0x46')],_0xf24c93=_0x1b57dc(_0x1c0a68[_0x1f29('0xa9')][_0x2aaba4][_0x1f29('0x9d')])||{},_0x5df279=this[_0x1f29('0xdb')](_0x1c0a68[_0x1f29('0xa9')][_0x2aaba4][_0x1f29('0x3c')]);_0x5df279[_0x1f29('0x1c')]=_0x2aaba4,_0x5df279[_0x1f29('0x36')]=!_0x3e4e6d||!_0x3e4e6d['isAttached'],_0x5df279[_0x1f29('0xba')]=()=>_0x5df279[_0x1f29('0x36')],this[_0x1f29('0xa2')][_0x1f29('0x2c')](_0x2aaba4,_0x5df279),this[_0x1f29('0x3d')][_0x1f29('0x2c')](_0x2aaba4,_0xf24c93),_0x3e4e6d&&this['_touchedRoots'][_0x1f29('0x2c')](_0x2aaba4,_0x3e4e6d);const _0x94471f=this['_makeIdsRoot'](_0x5df279);this[_0x1f29('0x3b')][_0x1f29('0x2c')](_0x2aaba4,_0x94471f);for(const [_0x5b695b,_0x51a1c1]of _0x5df279[_0x1f29('0x39')]){if(!_0x5b695b[_0x1f29('0xe0')](_0x1f29('0xb3')))continue;const _0x45182c=_0x5b695b[_0x1f29('0xaa')](':')[0x2];for(const _0x56c5aa of _0x51a1c1[_0x1f29('0xae')]({'singleCharacters':!0x0})){const _0x4932e0=this['_getVidAttributeName'](_0x56c5aa),_0x1e61cb=_0x1f29('0xad')==_0x56c5aa[_0x1f29('0x1a')]?_0x56c5aa[_0x1f29('0x5')][_0x1f29('0xee')]['slice'](0x0,-0x1):_0x56c5aa['previousPosition']['path'],_0x5b5774=_0x94471f['getNodeByPath'](_0x1e61cb)[_0x1f29('0x9c')](_0x4932e0);this['_touched'][_0x1f29('0x2c')](_0x5b5774,{'userId':_0x45182c});}}}this[_0x1f29('0xb0')]=this[_0x1f29('0xef')];const _0x243cc3=[...Array(this[_0x1f29('0xef')])[_0x1f29('0x94')]()][_0x1f29('0xde')](0x1)[_0x1f29('0x37')](_0x162000=>!this[_0x1f29('0x28')][_0x1f29('0xca')](_0x162000));let _0x8e3657=0x0;const _0x286797=new Map();for(const _0x4c5a24 in _0x1c0a68[_0x1f29('0xa9')]){const _0x1e9b60=_0x1c0a68[_0x1f29('0xa9')][_0x4c5a24][_0x1f29('0x46')],_0x23cfeb=_0x1b57dc(_0x1c0a68[_0x1f29('0xa9')][_0x4c5a24][_0x1f29('0x53')])||{},_0x2c69fb=this[_0x1f29('0xdb')](_0x1c0a68['diffData'][_0x4c5a24]['insertions']);_0x2c69fb[_0x1f29('0x1c')]=_0x4c5a24,_0x2c69fb['_isAttached']=!_0x1e9b60||_0x1e9b60[_0x1f29('0xba')],_0x2c69fb[_0x1f29('0xba')]=()=>_0x2c69fb[_0x1f29('0x36')],this[_0x1f29('0x2f')][_0x1f29('0x2c')](_0x4c5a24,_0x2c69fb),this[_0x1f29('0x49')]['set'](_0x4c5a24,_0x23cfeb);const _0x29348c=this[_0x1f29('0x78')](_0x2c69fb,Number[_0x1f29('0x12')]);this['_idsRoots']['set'](_0x4c5a24,_0x29348c),_0x286797['set'](_0x4c5a24,_0x2c69fb[_0x1f29('0xba')]()?_0x23cfeb:{});for(const [_0x17ec72,_0x20190a]of _0x2c69fb[_0x1f29('0x39')]){if(!_0x17ec72[_0x1f29('0xe0')]('revision:'))continue;const _0x24f0d2=_0x17ec72[_0x1f29('0xaa')](':')[0x2];for(const _0x8ea1f6 of _0x20190a['getWalker']({'singleCharacters':!0x0})){const _0x2f1728=this[_0x1f29('0x85')](_0x8ea1f6),_0x556b2a=this[_0x1f29('0xef')]++,_0x58044c=_0x1f29('0xad')==_0x8ea1f6[_0x1f29('0x1a')]?_0x8ea1f6['previousPosition'][_0x1f29('0xee')]['slice'](0x0,-0x1):_0x8ea1f6[_0x1f29('0x5')][_0x1f29('0xee')];_0x29348c['getNodeByPath'](_0x58044c)['_setAttribute'](_0x2f1728,_0x556b2a),this[_0x1f29('0x28')]['set'](_0x556b2a,{'userId':_0x24f0d2});}}for(const _0x4ad030 of this['editor'][_0x1f29('0xc2')][_0x1f29('0xa4')](_0x2c69fb)[_0x1f29('0xae')]({'singleCharacters':!0x0})){const _0x295d6e=this[_0x1f29('0x85')](_0x4ad030),_0x36ab69=_0x1f29('0xad')==_0x4ad030[_0x1f29('0x1a')]?_0x4ad030[_0x1f29('0x5')]['path'][_0x1f29('0xde')](0x0,-0x1):_0x4ad030[_0x1f29('0x5')][_0x1f29('0xee')],_0x3bd169=_0x29348c[_0x1f29('0x50')](_0x36ab69);_0x3bd169['getAttribute'](_0x295d6e)>0x0||_0x3bd169[_0x1f29('0xd4')](_0x295d6e,_0x243cc3[_0x8e3657++]);}for(const [_0x4d0ff2,_0xa08f2e]of _0x2c69fb[_0x1f29('0x39')])_0x4d0ff2[_0x1f29('0xe0')](_0x1f29('0xb3'))||this[_0x1f29('0x98')]['set'](_0x4d0ff2,_0xa08f2e);}const _0x2f1cc8=G(_0x1f29('0x25'));this['_baseRoots'][_0x1f29('0x2c')](_0x1f29('0x25'),_0x2f1cc8),this['_baseIdsRoots'][_0x1f29('0x2c')](_0x1f29('0x25'),this[_0x1f29('0x78')](_0x2f1cc8,0x1));const _0x2747e4=G(_0x1f29('0x25'));this[_0x1f29('0x2f')]['set'](_0x1f29('0x25'),_0x2747e4),this[_0x1f29('0x44')][_0x1f29('0x2c')](_0x1f29('0x25'),this[_0x1f29('0x78')](_0x2747e4,0x1));const _0x2efe6c=Array[_0x1f29('0x57')](this['_diffRoots'])[_0x1f29('0x2b')](([_0x39814f,_0x45bada])=>[_0x39814f,q(_0x45bada)]);this['_saveMetaData'](this[_0x1f29('0x2e')],_0x2efe6c,this['_markers'],_0x286797);}[_0x1f29('0xdb')](_0x148967){const _0xbb70d9=JSON[_0x1f29('0x59')](_0x148967),_0x535ccf=this[_0x1f29('0x7a')][_0x1f29('0x42')]['view'][_0x1f29('0xb')],_0x5e2315=new _0x1fbff7(_0x535ccf,_0xbb70d9[_0x1f29('0x2b')](_0x231751=>J(_0x231751,this[_0x1f29('0x7a')])));return this[_0x1f29('0x7a')][_0x1f29('0x35')][_0x1f29('0x7')](_0x5e2315);}[_0x1f29('0x71')](_0x256c49,_0x3f7eca,_0x565671,_0xaf4d59){const _0x6e3105=new Map(_0x3f7eca),_0x201378=new Map(_0x1b57dc(_0xaf4d59)),_0x2d9b43=new Map();for(const [_0x538d93,_0x7cf2f0]of _0x565671)_0x2d9b43[_0x1f29('0x2c')](_0x538d93,{'start':_0x7cf2f0['start'][_0x1f29('0x17')](),'end':_0x7cf2f0[_0x1f29('0xc0')][_0x1f29('0x17')](),'rootName':_0x7cf2f0[_0x1f29('0x4')]['rootName']});this[_0x1f29('0xa7')][_0x1f29('0x2c')](_0x256c49,{'roots':_0x6e3105,'markers':_0x2d9b43,'rootsAttributes':_0x201378});}[_0x1f29('0xab')](_0x5e38bd){this[_0x1f29('0xa7')]['delete'](_0x5e38bd);}[_0x1f29('0x34')](){this[_0x1f29('0xf9')](),this['_lastFrom']=-0x1,this[_0x1f29('0x2e')]=-0x1,this[_0x1f29('0xa7')][_0x1f29('0x21')](),this['init'](this[_0x1f29('0x1d')]);}[_0x1f29('0xf9')](){this[_0x1f29('0x28')][_0x1f29('0x21')](),this['_touchedMarkers'][_0x1f29('0x21')](),this['_touchedRoots'][_0x1f29('0x21')](),this[_0x1f29('0x2f')][_0x1f29('0x21')](),this[_0x1f29('0x49')][_0x1f29('0x21')](),this[_0x1f29('0xa2')][_0x1f29('0x21')](),this[_0x1f29('0x3d')][_0x1f29('0x21')](),this[_0x1f29('0x44')][_0x1f29('0x21')](),this[_0x1f29('0x3b')][_0x1f29('0x21')](),this[_0x1f29('0x98')][_0x1f29('0x21')](),this[_0x1f29('0xef')]=0x1,this[_0x1f29('0xb0')]=this[_0x1f29('0xef')];}[_0x1f29('0x78')](_0x4a62bc,_0x2270b6=null){let _0x26243e=null;_0x4a62bc['is'](_0x1f29('0xed'))||(_0x26243e=new _0x28cd05(_0x4a62bc[_0x1f29('0xf')],{'vid_start':null===_0x2270b6?this[_0x1f29('0xef')]++:_0x2270b6++}));const _0x19c759=[];for(const _0x1b8157 of _0x4a62bc['getChildren']())if(_0x1b8157['is'](_0x1f29('0xe1'))){_0x19c759[_0x1f29('0xe5')](this[_0x1f29('0x78')](_0x1b8157,_0x2270b6));const _0x38fd96=_0x19c759[_0x19c759[_0x1f29('0xa6')]-0x1];null!==_0x2270b6&&(_0x2270b6=_0x38fd96['is'](_0x1f29('0xe1'),'$text')?_0x38fd96['getAttribute']('vid')+0x1:_0x38fd96[_0x1f29('0x9c')](_0x1f29('0xe'))+0x1);}else for(let _0x2ee088=0x0;_0x2ee088<_0x1b8157[_0x1f29('0x90')];_0x2ee088++)_0x19c759[_0x1f29('0xe5')](new _0x28cd05('$text',{'vid':null===_0x2270b6?this[_0x1f29('0xef')]++:_0x2270b6++}));if(_0x4a62bc['is']('documentFragment')){const _0x10fe74=G(_0x4a62bc['rootName']);return _0x10fe74['_insertChild'](0x0,_0x19c759),_0x10fe74;}return _0x26243e[_0x1f29('0xd4')](_0x1f29('0xe'),null===_0x2270b6?this['_revisionId']++:_0x2270b6++),_0x26243e[_0x1f29('0xc4')](0x0,_0x19c759),_0x26243e;}[_0x1f29('0x1')](_0x53b9d7,_0x4ae781,_0x55f694){this[_0x1f29('0xf9')]();const {roots:_0x199106,markers:_0x17372b,rootsAttributes:_0xf0ac01}=this[_0x1f29('0xa7')][_0x1f29('0xd8')](_0x53b9d7);this[_0x1f29('0xa2')]=new Map(_0x199106),this['_baseRootsAttributes']=new Map(_0x1b57dc(_0xf0ac01));for(const [_0x46dcd0,_0x4971c9]of this[_0x1f29('0xa2')])if(_0x1f29('0x25')!==_0x46dcd0&&(this[_0x1f29('0x2f')][_0x1f29('0x2c')](_0x46dcd0,q(_0x4971c9)),this[_0x1f29('0x49')]=new Map(_0x1b57dc(_0xf0ac01)),_0x55f694)){const _0x4d9f67=this[_0x1f29('0xef')];this['_idsRoots']['set'](_0x46dcd0,this[_0x1f29('0x78')](_0x4971c9)),this['_baseIdsRoots']['set'](_0x46dcd0,this['_makeIdsRoot'](_0x4971c9,_0x4d9f67));}this[_0x1f29('0xb0')]=this['_revisionId'],this[_0x1f29('0x2f')]['set'](_0x1f29('0x25'),q(this['_baseRoots'][_0x1f29('0xd8')]('$graveyard'))),_0x55f694&&this[_0x1f29('0x44')][_0x1f29('0x2c')](_0x1f29('0x25'),this['_makeIdsRoot'](this[_0x1f29('0xa2')][_0x1f29('0xd8')]('$graveyard')));for(const [_0x194ade,_0x3311e5]of _0x17372b){const _0x5aee49=this[_0x1f29('0xa2')][_0x1f29('0xd8')](_0x3311e5[_0x1f29('0x1c')]),_0x26fe11=this[_0x1f29('0x2f')][_0x1f29('0xd8')](_0x3311e5[_0x1f29('0x1c')]),_0x10edc4=new _0x2de140(this[_0x1f29('0x40')](_0x3311e5['start'],_0x5aee49),this[_0x1f29('0x40')](_0x3311e5[_0x1f29('0xc0')],_0x5aee49)),_0x20d46d=this['_fixRange'](_0x10edc4,_0x26fe11);_0x5aee49['markers'][_0x1f29('0x2c')](_0x194ade,_0x10edc4),this['_markers'][_0x1f29('0x2c')](_0x194ade,_0x20d46d);}this[_0x1f29('0x5d')](_0x53b9d7,_0x4ae781,_0x55f694);}[_0x1f29('0x5d')](_0x282039,_0x4ebacf,_0x2161c8){for(const _0x309f5e of this[_0x1f29('0x1d')]['getOperations'](_0x282039,_0x4ebacf))this[_0x1f29('0x8')](_0x309f5e,_0x2161c8);for(const _0x61bad5 of this[_0x1f29('0x2f')][_0x1f29('0xc8')]())_0x61bad5['markers']['clear']();for(const [_0x4bb889,_0x4104da]of this[_0x1f29('0x98')]){this[_0x1f29('0x2f')][_0x1f29('0xd8')](_0x4104da[_0x1f29('0x4')]['rootName'])[_0x1f29('0x39')]['set'](_0x4bb889,_0x4104da[_0x1f29('0x17')]());}const _0x3ef526=new Map(),_0x23bbf3=new Map();for(const [_0x2bd340,_0x1ebf62]of this[_0x1f29('0x2f')])_0x3ef526[_0x1f29('0x2c')](_0x2bd340,q(_0x1ebf62)),_0x23bbf3[_0x1f29('0x2c')](_0x2bd340,this[_0x1f29('0x49')][_0x1f29('0xd8')](_0x2bd340));this[_0x1f29('0x71')](_0x4ebacf,_0x3ef526,this[_0x1f29('0x98')],_0x23bbf3);}[_0x1f29('0xb9')](_0x3eb1ed){const _0x22e28c=Array['from'](this[_0x1f29('0xa7')]['keys']());_0x22e28c[_0x1f29('0xd7')]((_0x47be1c,_0x3a64b5)=>_0x47be1c-_0x3a64b5),_0x22e28c[_0x1f29('0xe3')]();for(const _0x44f2cc of _0x22e28c)if(_0x44f2cc<_0x3eb1ed)return _0x44f2cc;return Number[_0x1f29('0x12')];}[_0x1f29('0x3e')](_0x1a8c3d,_0x422303){const _0x51a033=Array['from'](_0x422303['markers'])[_0x1f29('0x2b')](([_0xdad5d0,_0x40b331])=>[_0xdad5d0,this[_0x1f29('0x7d')](_0x40b331,_0x1a8c3d)]);_0x1a8c3d[_0x1f29('0x39')]=new Map(_0x51a033);}[_0x1f29('0xfc')](_0x191820){for(const _0x1911c6 of this[_0x1f29('0x98')][_0x1f29('0xc8')]()){const _0x255a2b=_0x1911c6[_0x1f29('0xf6')](_0x191820),_0x55e465=_0x2de140[_0x1f29('0x9f')](_0x255a2b);_0x1911c6[_0x1f29('0x43')]=_0x55e465[_0x1f29('0x43')],_0x1911c6[_0x1f29('0xc0')]=_0x55e465['end'];}}[_0x1f29('0x8')](_0x1c4115,_0x57049e){if(_0x1f29('0x5b')==_0x1c4115[_0x1f29('0x1a')]||_0x1f29('0x80')==_0x1c4115[_0x1f29('0x1a')])return void this[_0x1f29('0x6d')](_0x1c4115,_0x57049e);if('insert'==_0x1c4115['type']){const _0x1ae47d=_0x1c4115[_0x1f29('0x81')]['root'][_0x1f29('0x1c')];this['_diffRoots'][_0x1f29('0xca')](_0x1ae47d)||(this[_0x1f29('0x2f')]['set'](_0x1ae47d,G(_0x1ae47d,!0x0)),this[_0x1f29('0x49')][_0x1f29('0x2c')](_0x1ae47d,{}),_0x57049e&&this[_0x1f29('0x44')]['set'](_0x1ae47d,G(_0x1ae47d,!0x0)));}else{if(_0x1f29('0xa')==_0x1c4115['type']||_0x1f29('0xfb')==_0x1c4115[_0x1f29('0x1a')]||_0x1f29('0x7c')==_0x1c4115['type'])return void this[_0x1f29('0xd3')](_0x1c4115);}const _0x5f04a0=this[_0x1f29('0x6f')](_0x1c4115,this[_0x1f29('0x2f')]);if(_0x1f29('0x55')!==_0x1c4115[_0x1f29('0x1a')]&&(_0x5f04a0['_execute'](),this['_transformMarkers'](_0x5f04a0)),_0x57049e)switch(_0x5f04a0[_0x1f29('0x1a')]){case _0x1f29('0x52'):this[_0x1f29('0x60')](_0x1c4115);break;case _0x1f29('0x15'):case _0x1f29('0x63'):case'reinsert':this[_0x1f29('0xcf')](_0x1c4115);break;case _0x1f29('0x5e'):this[_0x1f29('0x45')](_0x1c4115);break;case'split':this[_0x1f29('0x47')](_0x1c4115);break;case'marker':this[_0x1f29('0x100')](_0x1c4115);}}[_0x1f29('0x6f')](_0x538630,_0x3ad94a){const _0x481ef4=_0x538630[_0x1f29('0x17')]();return _0x481ef4[_0x1f29('0x6c')]=_0x538630['_authorId'],this['_fixOperation'](_0x481ef4,_0x3ad94a),_0x481ef4;}[_0x1f29('0x6')](_0x214a41){return _0x214a41[_0x1f29('0x2b')](_0x321108=>{const _0x3917c6=this[_0x1f29('0x85')](_0x321108);return Number(_0x321108[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x3917c6));});}[_0x1f29('0xb5')](_0x4b9fe0,_0x4a7d10){if(_0x4b9fe0['is'](_0x1f29('0xe1'),_0x1f29('0x9a')))_0x4a7d10[_0x1f29('0xe5')]({'item':_0x4b9fe0,'type':'text'});else{_0x4b9fe0['is'](_0x1f29('0xe1'))&&_0x4a7d10[_0x1f29('0xe5')]({'item':_0x4b9fe0,'type':_0x1f29('0x89')});for(const _0x207c68 of _0x4b9fe0[_0x1f29('0xc7')]())this[_0x1f29('0xb5')](_0x207c68,_0x4a7d10);_0x4b9fe0['is'](_0x1f29('0xe1'))&&_0x4a7d10[_0x1f29('0xe5')]({'item':_0x4b9fe0,'type':_0x1f29('0xad')});}return _0x4a7d10;}[_0x1f29('0xe9')](){const _0x28f178=new Map(this[_0x1f29('0x28')]),_0x38d503=new Map(_0x28f178),_0x8cc198=new Map(),_0x3b5fa5={'insertions':{},'deletions':{}},_0x3df87b={'insertions':{},'deletions':{}},_0x20d75b=new Map(),_0x3a9e15=new Set([...this[_0x1f29('0xa2')]['keys'](),...this[_0x1f29('0x2f')][_0x1f29('0x94')]()]);_0x3a9e15[_0x1f29('0x82')](_0x1f29('0x25'));for(const _0x56a744 of _0x3a9e15){const _0x4f719e=this[_0x1f29('0x2f')]['get'](_0x56a744)||G(_0x56a744,!0x1),_0x335408=this[_0x1f29('0xa2')]['get'](_0x56a744)||G(_0x56a744,!0x1);_0x4f719e[_0x1f29('0xba')]()||_0x335408[_0x1f29('0xba')]()?(_0x3b5fa5[_0x1f29('0x6b')][_0x56a744]=q(_0x4f719e),_0x3b5fa5[_0x1f29('0x3c')][_0x56a744]=q(_0x335408),this[_0x1f29('0x3e')](_0x3b5fa5[_0x1f29('0x3c')][_0x56a744],_0x335408),this[_0x1f29('0x3e')](_0x3b5fa5[_0x1f29('0x6b')][_0x56a744],_0x4f719e),_0x3df87b[_0x1f29('0x6b')][_0x56a744]=this['_generateTape'](this[_0x1f29('0x44')][_0x1f29('0xd8')](_0x56a744),[]),_0x3df87b[_0x1f29('0x3c')][_0x56a744]=this[_0x1f29('0xb5')](this['_baseIdsRoots'][_0x1f29('0xd8')](_0x56a744)||G(_0x56a744,!0x1),[])):_0x3a9e15[_0x1f29('0x82')](_0x56a744);}for(const _0x2a4248 of _0x3a9e15){const _0x10e600=_0x3df87b[_0x1f29('0x6b')][_0x2a4248];for(const _0x21921d of _0x10e600){const _0x15e20e=this[_0x1f29('0x85')](_0x21921d),_0x2babfa=_0x21921d[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x15e20e);_0x38d503[_0x1f29('0x82')](_0x2babfa),_0x2babfa>=this['_startingRevisionId']&&_0x8cc198[_0x1f29('0x2c')](_0x2babfa,_0x28f178[_0x1f29('0xd8')](_0x2babfa));}}for(const _0x4760e3 of _0x3a9e15){const _0x184289=_0x3df87b[_0x1f29('0x6b')][_0x4760e3],_0x49e95f=this['_getBaseVids'](_0x3df87b[_0x1f29('0x3c')][_0x4760e3]);let _0x520ab2=0x0;for(const _0x37296d of _0x184289){const _0x53c3b8=this[_0x1f29('0x85')](_0x37296d),_0x34535c=_0x37296d[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x53c3b8);if(!_0x8cc198[_0x1f29('0xca')](_0x34535c)&&!_0x20d75b[_0x1f29('0xca')](_0x34535c)){if(_0x38d503[_0x1f29('0xca')](_0x34535c))_0x520ab2++;else{if(_0x34535c!=_0x49e95f[_0x520ab2]){const _0x922f14=_0x28f178[_0x1f29('0xd8')](_0x34535c)||_0x28f178['get'](_0x49e95f[_0x520ab2]);for(;_0x34535c!=_0x49e95f[_0x520ab2];)_0x38d503[_0x1f29('0xca')](_0x49e95f[_0x520ab2])||(_0x20d75b[_0x1f29('0x2c')](_0x49e95f[_0x520ab2],_0x922f14),_0x28f178[_0x1f29('0x2c')](_0x49e95f[_0x520ab2],_0x922f14)),_0x520ab2++;}_0x520ab2++;}}}}for(const _0x277548 of _0x3a9e15){const _0x58d662=_0x3df87b['insertions'][_0x277548];for(const _0x2f1295 of _0x58d662){const _0x5a3fa8=this['_getVidAttributeName'](_0x2f1295),_0x3b338a=_0x2f1295[_0x1f29('0xaf')][_0x1f29('0x9c')](_0x5a3fa8);if(_0x20d75b['has'](_0x3b338a)){const _0x155955=_0x20d75b[_0x1f29('0xd8')](_0x3b338a);_0x38d503[_0x1f29('0xca')](_0x3b338a)||_0x38d503[_0x1f29('0x2c')](_0x3b338a,{..._0x155955}),_0x8cc198[_0x1f29('0x2c')](_0x3b338a,{..._0x155955});}}}for(const _0x2a049e of _0x38d503[_0x1f29('0x94')]())_0x2a049e>=this[_0x1f29('0xb0')]&&_0x38d503['delete'](_0x2a049e);const _0x56a950=new Map();for(const _0xa70fce of _0x3a9e15){let _0x1a9ce8=_0x3df87b[_0x1f29('0x6b')][_0xa70fce];for(const _0x178cf9 of _0x1a9ce8)if(_0x178cf9[_0x1f29('0xaf')]['is']('element',_0x1f29('0x8f'))){const _0x4a4d7a=this[_0x1f29('0x85')](_0x178cf9),_0x5022a7=_0x178cf9[_0x1f29('0xaf')]['getAttribute'](_0x4a4d7a);if(_0x8cc198[_0x1f29('0xca')](_0x5022a7)){const _0x104e19=_0x178cf9['item'][_0x1f29('0xd1')][_0x1f29('0xd1')][_0x1f29('0x9c')]('vid_start'),_0x28e5a5=_0x56a950[_0x1f29('0xd8')](_0x104e19)||new Set();_0x28e5a5['add'](_0x8cc198[_0x1f29('0xd8')](_0x5022a7)[_0x1f29('0x29')]),_0x56a950[_0x1f29('0x2c')](_0x104e19,_0x28e5a5);}}_0x1a9ce8=_0x3df87b[_0x1f29('0x3c')][_0xa70fce];for(const _0x492a09 of _0x1a9ce8)if(_0x492a09[_0x1f29('0xaf')]['is'](_0x1f29('0xe1'),_0x1f29('0x8f'))){const _0x169f49=this[_0x1f29('0x85')](_0x492a09),_0x16237c=_0x492a09['item']['getAttribute'](_0x169f49);if(_0x38d503[_0x1f29('0xca')](_0x16237c)){const _0x9dfa43=_0x492a09[_0x1f29('0xaf')][_0x1f29('0xd1')]['parent'][_0x1f29('0x9c')]('vid_start'),_0x2af587=_0x56a950[_0x1f29('0xd8')](_0x9dfa43)||new Set();_0x2af587['add'](_0x38d503[_0x1f29('0xd8')](_0x16237c)[_0x1f29('0x29')]),_0x56a950[_0x1f29('0x2c')](_0x9dfa43,_0x2af587);}}for(const _0x37fcd8 of _0x56a950[_0x1f29('0x94')]())(_0x8cc198['has'](_0x37fcd8)||_0x38d503[_0x1f29('0xca')](_0x37fcd8))&&_0x56a950['delete'](_0x37fcd8);}for(const _0xf01ba2 of _0x3a9e15){const _0x1b5d66=_0x3df87b[_0x1f29('0x6b')][_0xf01ba2];let _0x4234c4=null,_0x432ed8=null;for(const _0x10586c of _0x1b5d66){const _0x5b1cb5=this[_0x1f29('0x85')](_0x10586c),_0x296ec6=_0x10586c['item'][_0x1f29('0x9c')](_0x5b1cb5),_0x2a736d=_0x56a950[_0x1f29('0xd8')](_0x296ec6);_0x2a736d&&_0x1f29('0x89')==_0x10586c[_0x1f29('0x1a')]&&(_0x4234c4=Array[_0x1f29('0x57')](_0x2a736d)[0x0],_0x432ed8=_0x10586c['item']['getAttribute']('vid_end')),_0x4234c4&&(_0x38d503[_0x1f29('0x2c')](_0x296ec6,{'userId':_0x4234c4}),_0x8cc198[_0x1f29('0x2c')](_0x296ec6,{'userId':_0x4234c4})),_0x296ec6==_0x432ed8&&(_0x4234c4=null,_0x432ed8=null);}}const _0x25e060={},_0x656c45=new Set();for(const _0x266a5f of _0x3a9e15){const _0x3c7b44=_0x3b5fa5[_0x1f29('0x3c')][_0x266a5f],_0x1710f7=_0x3b5fa5[_0x1f29('0x6b')][_0x266a5f];for(const {userId:_0x576c66}of this[_0x1f29('0x58')][_0x1f29('0xc8')]())null!==_0x576c66&&_0x656c45[_0x1f29('0x6e')](_0x576c66);for(const {userId:_0x25919a}of this[_0x1f29('0xdd')][_0x1f29('0xc8')]())null!==_0x25919a&&_0x656c45['add'](_0x25919a);this[_0x1f29('0xff')](_0x1710f7,_0x3df87b[_0x1f29('0x6b')][_0x266a5f],_0x8cc198,_0x1f29('0x88'),_0x656c45),this[_0x1f29('0xff')](_0x3c7b44,_0x3df87b['deletions'][_0x266a5f],_0x38d503,_0x1f29('0x7e'),_0x656c45),_0x25e060[_0x266a5f]={'insertions':this[_0x1f29('0xea')](_0x1710f7),'deletions':this[_0x1f29('0xea')](_0x3c7b44),'attachChange':this[_0x1f29('0xdd')]['get'](_0x266a5f)||null,'attributesBefore':_0x1b57dc(this[_0x1f29('0x3d')][_0x1f29('0xd8')](_0x266a5f))||{},'attributesAfter':_0x1b57dc(this['_diffRootsAttributes'][_0x1f29('0xd8')](_0x266a5f))};}return{'diffData':_0x25e060,'authorsIds':Array[_0x1f29('0x57')](_0x656c45)};}[_0x1f29('0x67')](_0x2ff0bb){for(const [,_0x12f5c7]of _0x2ff0bb['markers']){const _0x8c658b=_0x12f5c7[_0x1f29('0x43')][_0x1f29('0x26')]()[_0x1f29('0x37')](_0x2fae05=>_0x1f29('0x8f')==_0x2fae05[_0x1f29('0xf')]);for(const _0x3def2c of _0x8c658b)0x1==_0x3def2c['childCount']&&_0x3def2c['getChild'](0x0)['is'](_0x1f29('0xe1'),'paragraph')&&_0x3def2c[_0x1f29('0xb6')](0x0)['_setAttribute'](_0x1f29('0xfd'),!0x0);}}[_0x1f29('0xea')](_0x8c96e){this[_0x1f29('0x67')](_0x8c96e);const _0x160142=this[_0x1f29('0x7a')]['data'][_0x1f29('0x4e')](_0x8c96e,{}),_0x450097=Array[_0x1f29('0x57')](_0x160142['getChildren']())[_0x1f29('0x2b')](_0x109e1b=>this[_0x1f29('0x54')](_0x109e1b));return JSON['stringify'](_0x450097);}[_0x1f29('0x54')](_0x2842c3){if(_0x2842c3['is']('$text'))return _0x2842c3[_0x1f29('0x35')];{const _0x36e1c7=_0x2842c3;return{'type':Object[_0x1f29('0x94')](B)[_0x1f29('0xce')](_0x1ee94d=>_0x2842c3 instanceof B[_0x1ee94d]),'name':_0x36e1c7[_0x1f29('0xf')],'attributes':Array['from'](_0x36e1c7[_0x1f29('0xe4')]()),'children':Array[_0x1f29('0x57')](_0x36e1c7[_0x1f29('0xc7')]())['map'](_0x2b4e45=>this['_getViewJson'](_0x2b4e45))};}}['_markChanges'](_0x2f45cc,_0x40139e,_0x4919b5,_0x28b350,_0x16fd66){let _0x512370=null,_0xf35eb4=null,_0x474059=0x0;const _0x20c394=this[_0x1f29('0x7a')][_0x1f29('0xc2')];for(let _0x4eb6b2=0x0;_0x4eb6b2<_0x40139e[_0x1f29('0xa6')];_0x4eb6b2++){const _0x177b06=this[_0x1f29('0x85')](_0x40139e[_0x4eb6b2]),_0x7d597c=_0x40139e[_0x4eb6b2][_0x1f29('0xaf')][_0x1f29('0x9c')](_0x177b06),_0xbf32f7=_0x4919b5['get'](_0x7d597c),_0x2abdd4=_0x4eb6b2==_0x40139e[_0x1f29('0xa6')]-0x1;(!_0x512370&&_0xbf32f7&&(_0x512370=_0xbf32f7,_0xf35eb4=_0x40139e[_0x4eb6b2]),_0x512370&&(!_0xbf32f7||_0xbf32f7[_0x1f29('0x29')]!=_0x512370['userId']))&&(_0x31f8bf(_0xbf32f7,L(_0xf35eb4,_0x2f45cc,_0x20c394),L(_0x40139e[_0x4eb6b2],_0x2f45cc,_0x20c394)),_0x512370=_0xbf32f7||null,_0xf35eb4=_0xbf32f7?_0x40139e[_0x4eb6b2]:null),_0x512370&&_0x2abdd4&&_0x31f8bf(_0xbf32f7,L(_0xf35eb4,_0x2f45cc,_0x20c394),W(_0x40139e[_0x4eb6b2],_0x2f45cc,_0x20c394));}function _0x31f8bf(_0x3cbbc7,_0x313156,_0x1b835d){const _0x496d9c=_0x512370['userId'],_0x163f25=_0x1f29('0xb3')+_0x28b350+':'+_0x496d9c+':'+_0x474059++,_0x1e404e=_0x20c394['createRange'](_0x313156,_0x1b835d);_0x2f45cc[_0x1f29('0x39')][_0x1f29('0x2c')](_0x163f25,_0x1e404e),null!==_0x496d9c&&_0x16fd66[_0x1f29('0x6e')](_0x496d9c);}}[_0x1f29('0x85')](_0x5b9792){switch(_0x5b9792[_0x1f29('0x1a')]){case _0x1f29('0x89'):return _0x1f29('0xd0');case _0x1f29('0xad'):return'vid_end';default:return _0x1f29('0xf0');}}[_0x1f29('0x24')](_0x1fba83,_0x5d2dc2){_0x1fba83[_0x1f29('0xf1')]=null;for(const _0x242ff7 in _0x1fba83){const _0x2c92d5=_0x1fba83[_0x242ff7];if(_0x2c92d5 instanceof _0x19e12c){const _0x2b2a31=_0x5d2dc2[_0x1f29('0xd8')](_0x2c92d5[_0x1f29('0x4')][_0x1f29('0x1c')]);_0x1fba83[_0x242ff7]=this[_0x1f29('0x40')](_0x2c92d5,_0x2b2a31);}if(_0x2c92d5 instanceof _0x2de140){const _0xa0dfa0=_0x5d2dc2['get'](_0x2c92d5[_0x1f29('0x4')][_0x1f29('0x1c')]);_0x1fba83[_0x242ff7]=this[_0x1f29('0x7d')](_0x2c92d5,_0xa0dfa0);}_0x1f29('0x4')===_0x242ff7&&(_0x1fba83['root']=_0x5d2dc2[_0x1f29('0xd8')](_0x1fba83[_0x1f29('0x4')][_0x1f29('0x1c')]));}}['_fixRange'](_0x50f9bd,_0x2bd9b9){return this[_0x1f29('0x7a')]['model'][_0x1f29('0x33')](this['_fixPosition'](_0x50f9bd[_0x1f29('0x43')],_0x2bd9b9),this[_0x1f29('0x40')](_0x50f9bd[_0x1f29('0xc0')],_0x2bd9b9));}[_0x1f29('0x40')](_0x35f3f4,_0x3da807){return this['editor'][_0x1f29('0xc2')][_0x1f29('0x3f')](_0x3da807,_0x35f3f4[_0x1f29('0xee')],_0x35f3f4[_0x1f29('0xf5')]);}[_0x1f29('0x60')](_0x257ccb){const _0x2ffe80=this[_0x1f29('0x44')][_0x1f29('0xd8')](_0x257ccb[_0x1f29('0x81')][_0x1f29('0x4')]['rootName']),_0x146437=this['_fixPosition'](_0x257ccb['position'],_0x2ffe80),_0x3729ea=null===_0x257ccb['_authorId']?null:_0x257ccb['_authorId']||this['editor'][_0x1f29('0x4f')][_0x1f29('0xd8')](_0x1f29('0x95'))['me']['id'],_0xd7a74=_0x146437['parent'],_0x31a4c2=this[_0x1f29('0xef')],_0x39bd74=[];for(const _0x14d9e7 of _0x257ccb['nodes'])if(_0x14d9e7['is'](_0x1f29('0xe1')))_0x39bd74[_0x1f29('0xe5')](this[_0x1f29('0x78')](_0x14d9e7));else for(let _0x462c8d=0x0;_0x462c8d<_0x14d9e7['offsetSize'];_0x462c8d++)_0x39bd74[_0x1f29('0xe5')](new _0x28cd05(_0x1f29('0x9a'),{'vid':this[_0x1f29('0xef')]++}));const _0x46304a=this[_0x1f29('0xef')];for(let _0x110147=_0x31a4c2;_0x110147<_0x46304a;_0x110147++)this[_0x1f29('0x28')][_0x1f29('0x2c')](_0x110147,{'userId':_0x3729ea});_0xd7a74[_0x1f29('0xc4')](_0x146437[_0x1f29('0xa5')],_0x39bd74);}['_handleMoveOperation'](_0x3af8a2){(_0x3af8a2=this['_cloneOperation'](_0x3af8a2,this[_0x1f29('0x44')]))[_0x1f29('0x5f')]();const _0x5d6fea=null===_0x3af8a2[_0x1f29('0x6c')]?null:_0x3af8a2['_authorId']||this[_0x1f29('0x7a')]['plugins']['get'](_0x1f29('0x95'))['me']['id'],_0x1170e7=_0x3af8a2[_0x1f29('0x5c')](),_0x121143=_0x1170e7['parent'],_0x1584ba=_0x1170e7['offset'];!function _0x496559(_0x1085f9,_0x2959f8,_0xd33947,_0x121331){for(let _0x3ce174=_0xd33947;_0x3ce174<_0x121331;_0x3ce174++){const _0x1bb9fd=_0x2959f8[_0x1f29('0xb6')](_0x3ce174);_0x1bb9fd['is'](_0x1f29('0xe1'),_0x1f29('0x9a'))?_0x1085f9['set'](_0x1bb9fd['getAttribute']('vid'),{'userId':_0x5d6fea}):(_0x1085f9[_0x1f29('0x2c')](_0x1bb9fd[_0x1f29('0x9c')](_0x1f29('0xd0')),{'userId':_0x5d6fea}),_0x496559(_0x1085f9,_0x1bb9fd,0x0,_0x1bb9fd['childCount']),_0x1085f9[_0x1f29('0x2c')](_0x1bb9fd['getAttribute']('vid_end'),{'userId':_0x5d6fea}));}}(this[_0x1f29('0x28')],_0x121143,_0x1584ba,_0x1584ba+_0x3af8a2[_0x1f29('0x18')]);}[_0x1f29('0x45')](_0x52acee){const _0x46b870=null===(_0x52acee=this['_cloneOperation'](_0x52acee,this['_idsRoots']))[_0x1f29('0x6c')]?null:_0x52acee['_authorId']||this['editor'][_0x1f29('0x4f')]['get'](_0x1f29('0x95'))['me']['id'],_0x363725=_0x52acee[_0x1f29('0xa0')][_0x1f29('0xd1')],_0xe6ea3a=_0x52acee['sourcePosition'][_0x1f29('0xd1')],_0x5ac2d9=_0x363725[_0x1f29('0x9c')](_0x1f29('0xe')),_0x19a440=_0xe6ea3a[_0x1f29('0x9c')]('vid_start');_0x363725['_setAttribute'](_0x1f29('0xe'),_0xe6ea3a['getAttribute'](_0x1f29('0xe'))),_0xe6ea3a[_0x1f29('0xd4')](_0x1f29('0xe'),_0x5ac2d9),this[_0x1f29('0x28')]['set'](_0x19a440,{'userId':_0x46b870}),this['_touched']['set'](_0x5ac2d9,{'userId':_0x46b870}),_0x52acee['_execute']();}[_0x1f29('0x47')](_0x28df17){const _0x2b7736=null===(_0x28df17=this['_cloneOperation'](_0x28df17,this[_0x1f29('0x44')]))['_authorId']?null:_0x28df17[_0x1f29('0x6c')]||this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')](_0x1f29('0x95'))['me']['id'],_0x98363b=_0x28df17[_0x1f29('0x9b')],_0x174b66=_0x28df17[_0x1f29('0xda')][_0x1f29('0xd1')];_0x28df17[_0x1f29('0x5f')]();const _0x8a67c2=_0x174b66['getAttribute'](_0x1f29('0xe')),_0x41b7bf=_0x28df17['insertionPosition'][_0x1f29('0xe2')];if(_0x98363b){const _0x598396=_0x41b7bf[_0x1f29('0x9c')](_0x1f29('0xe')),_0x404dc4=_0x174b66[_0x1f29('0x9c')]('vid_end');_0x174b66[_0x1f29('0xd4')](_0x1f29('0xe'),_0x598396),_0x41b7bf[_0x1f29('0xd4')](_0x1f29('0xe'),_0x404dc4),this['_touched'][_0x1f29('0x2c')](_0x174b66['getAttribute'](_0x1f29('0xe')),{'userId':_0x2b7736}),this[_0x1f29('0x28')][_0x1f29('0x2c')](_0x41b7bf[_0x1f29('0x9c')](_0x1f29('0xd0')),{'userId':_0x2b7736});}else{const _0x2e18ef=this[_0x1f29('0xef')]++,_0x5d0fd9=this[_0x1f29('0xef')]++;_0x174b66[_0x1f29('0xd4')](_0x1f29('0xe'),_0x2e18ef),_0x41b7bf[_0x1f29('0xd4')](_0x1f29('0xd0'),_0x5d0fd9),_0x41b7bf['_setAttribute'](_0x1f29('0xe'),_0x8a67c2),this[_0x1f29('0x28')][_0x1f29('0x2c')](_0x2e18ef,{'userId':_0x2b7736}),this[_0x1f29('0x28')]['set'](_0x5d0fd9,{'userId':_0x2b7736});}}[_0x1f29('0x100')](_0x359429){if(!_0x359429[_0x1f29('0x61')])return;const _0x2ec924=(_0x359429=this[_0x1f29('0x6f')](_0x359429,this[_0x1f29('0x2f')]))[_0x1f29('0x41')]?_0x359429[_0x1f29('0x41')][_0x1f29('0x4')]:null,_0x6dbacf=_0x359429[_0x1f29('0x23')]?_0x359429['newRange'][_0x1f29('0x4')]:null;_0x2ec924&&this[_0x1f29('0x98')][_0x1f29('0x82')](_0x359429['name']),_0x6dbacf&&this[_0x1f29('0x98')][_0x1f29('0x2c')](_0x359429[_0x1f29('0xf')],_0x359429[_0x1f29('0x23')][_0x1f29('0x17')]());const _0x3c1541=null===_0x359429[_0x1f29('0x6c')]?null:_0x359429['_authorId']||this[_0x1f29('0x7a')][_0x1f29('0x4f')][_0x1f29('0xd8')]('Users')['me']['id'],_0x447f5e=_0x359429[_0x1f29('0xf')];if(!this['_touchedMarkers'][_0x1f29('0xca')](_0x447f5e))return void this[_0x1f29('0x58')][_0x1f29('0x2c')](_0x447f5e,{'range':_0x359429['oldRange'],'userId':_0x3c1541});const _0x3e84cd=this[_0x1f29('0x58')][_0x1f29('0xd8')](_0x447f5e),_0x2a2718=_0x3e84cd['range'],_0x4f907e=_0x359429['newRange'];null==_0x2a2718&&null==_0x4f907e||_0x2a2718&&_0x4f907e&&_0x2a2718[_0x1f29('0x99')](_0x4f907e)?this['_touchedMarkers']['delete'](_0x359429[_0x1f29('0xf')]):_0x3e84cd[_0x1f29('0x29')]=_0x3c1541;}[_0x1f29('0x6d')](_0x28fe79,_0x395e49){this['_diffRoots'][_0x1f29('0xca')](_0x28fe79[_0x1f29('0x1c')])?this[_0x1f29('0x2f')][_0x1f29('0xd8')](_0x28fe79['rootName'])['_isAttached']=_0x28fe79['isAdd']:(this[_0x1f29('0x2f')][_0x1f29('0x2c')](_0x28fe79[_0x1f29('0x1c')],G(_0x28fe79['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x28fe79[_0x1f29('0x1c')],{}),_0x395e49&&this[_0x1f29('0x44')][_0x1f29('0x2c')](_0x28fe79[_0x1f29('0x1c')],G(_0x28fe79[_0x1f29('0x1c')],!0x0)));const _0x30321a=null===_0x28fe79[_0x1f29('0x6c')]?null:_0x28fe79[_0x1f29('0x6c')]||this[_0x1f29('0x7a')][_0x1f29('0x4f')]['get']('Users')['me']['id'],_0x4aebb3=this[_0x1f29('0xdd')][_0x1f29('0xd8')](_0x28fe79[_0x1f29('0x1c')]);_0x4aebb3&&_0x4aebb3['userId']===_0x30321a?this[_0x1f29('0xdd')][_0x1f29('0x82')](_0x28fe79[_0x1f29('0x1c')]):this['_touchedRoots'][_0x1f29('0x2c')](_0x28fe79[_0x1f29('0x1c')],{'userId':_0x30321a,'isAttached':_0x28fe79[_0x1f29('0x9e')]});}['_handleRootAttributeOperation'](_0x25e2f5){const _0x47d5ca=this['_diffRootsAttributes'][_0x1f29('0xd8')](_0x25e2f5[_0x1f29('0x4')]['rootName']);null===_0x25e2f5[_0x1f29('0x97')]?delete _0x47d5ca[_0x25e2f5[_0x1f29('0x74')]]:_0x47d5ca[_0x25e2f5[_0x1f29('0x74')]]=_0x25e2f5[_0x1f29('0x97')];}}function q(_0x2d2a08){const _0x3e440b=G(_0x2d2a08[_0x1f29('0x1c')],_0x2d2a08[_0x1f29('0xba')]());for(const _0x3b3242 of _0x2d2a08['getChildren']()){const _0x13f20e=_0x3b3242[_0x1f29('0x10')](!0x0);_0x3e440b[_0x1f29('0xfa')](_0x13f20e);}return _0x3e440b;}function G(_0x1afb8d,_0x376058=!0x0){const _0x4407bc=new _0x4511db();return _0x4407bc[_0x1f29('0x1c')]=_0x1afb8d,_0x4407bc[_0x1f29('0x36')]=_0x376058,_0x4407bc[_0x1f29('0xba')]=()=>_0x4407bc[_0x1f29('0x36')],_0x4407bc;}function L(_0x48cb90,_0x2e1f5a,_0x51f2a7){const _0x609dd8=_0x1f29('0xad')==_0x48cb90[_0x1f29('0x1a')]?_0x51f2a7[_0x1f29('0x73')](_0x48cb90[_0x1f29('0xaf')],_0x1f29('0xc0')):_0x51f2a7['createPositionBefore'](_0x48cb90[_0x1f29('0xaf')]);return _0x51f2a7[_0x1f29('0x3f')](_0x2e1f5a,_0x609dd8[_0x1f29('0xee')],_0x609dd8[_0x1f29('0xf5')]);}function W(_0x5dd8ee,_0x5221af,_0x1be0f4){const _0x3ba51f=_0x1f29('0x89')==_0x5dd8ee[_0x1f29('0x1a')]?_0x1be0f4[_0x1f29('0x73')](_0x5dd8ee[_0x1f29('0xaf')],0x0):_0x1be0f4[_0x1f29('0x56')](_0x5dd8ee[_0x1f29('0xaf')]);return _0x1be0f4[_0x1f29('0x3f')](_0x5221af,_0x3ba51f[_0x1f29('0xee')],_0x3ba51f[_0x1f29('0xf5')]);}
|