@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230827.0 → 0.0.0-nightly-20230829.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 _0x44ac=['_handleRootAttributeOperation','_generateTape','_getViewJson','children','_loadedStateData','previousPosition','document','define','childCount','baseVersion','editing','_removeMetaData','values','_createCurrentRevision','set','revision:','Initial\x20revision','_cloneOperation','PENDING_ACTION_REVISION_HISTORY','_getPreviousFrom','_touchedMarkers','loadState','setRevisionData','shift','newValue','addRootAttribute','userId','getWalker','diffData','toVersion','_bufferUpdate','_baseRootsAttributes','update','_idsRoots','documentFragment','offsetSize','get','from','range','has','keys','_removePendingAction','getChild','nodes','_makeModelFromViewString','position','_replaceEditorDataWithRevisionData','_loadState','_addPendingAction','updateRevisions','root','model','RevisionTracker','_saveMetaData','attributesBefore','addRevisionData','size','_source','splitPosition','tableCell','_startingRevisionId','element','attributesAfter','sendBufferedUpdates','_fixRange','_handleInsertOperation','editor','history','path','pluginName','_getVidAttributeName','length','_prepareViewToSave','keepParagraph','newRange','deletions','_startingVersion','RealTimeCollaborationClient','_savedMetaData','elementStart','_makeIdsRoot','elementEnd','_pendingAction','_markers','push','offset','vid_start','createRangeIn','_handleRootOperation','buildRevisionData','_reset','_handleMarkerOperation','initialData','getMovedRangeStart','_handleOperation','_touchedRoots','getRevisions','_fixOperation','currentRevision','afterInit','collaboration.channelId','_fixPosition','sourcePosition','createRange','createPositionAt','roots','_lastTo','addRevision','setSource','isReady','conversion','map','rootsAttributes','_authorId','getRange','removeRootAttribute','max','$graveyard','item','getChildren','parent','data-revision-','insertionPosition','hasContent','detachRoot','end','upcast','type','createdAt','start','revisionHistory.resumeUnsavedRevision','authors','getIndex','_update','_diffRootsAttributes','getRevisionDocumentData','_continueCurrentRevision','_setAttribute','view','_getState','_isInit','insertion','find','_lastFrom','isAttached','createPositionFromPath','revision','_isPendingUpdate','getData','attributes','parse','_setConversion','insertions','version','for','startsWith','toView','targetPosition','getRevision','clone','insert','getNodeByPath','ready','_diffRoots','repository','default','reverse','getTransformedByOperation','affectsData','editor-initial-data-replaced-with-revision-data','_revisionId','_getBaseVids','remove','dataDowncast','toModel','RevisionsRepository','createRevision','_operations','_handleMoveOperation','getAttribute','_markChanges','rootName','vid','sort','getAttributes','fromVersion','_findInsertionIndex','requires','$text','then','clear','_execute','_applyOperations','graveyardPosition','_handleMergeOperation','getCurrentRevisionId','reinsert','_revisionDataBuilder','useFillerType','key','stickiness','locale','resolve','processor','_initialRevisionId','_getFromVersion','howMany','_baseRoots','saveRevision','marker','creator','bind','getLatestVersion','_createInitialRevision','oldRange','_makeRevision','getAncestors','getRevisionRootsAttributes','paragraph','filter','config','authorsIds','_createFromRanges','move','isEnabled','creatorId','getOperation','adapter','isAdd','_copyMarkers','attachChange','plugins','data','PendingActions','vid_end','_loadRevisionData','stringify','name','getRootNames','NEGATIVE_INFINITY','_baseIdsRoots','_transformMarkers','text','_isAttached','string','source','revision-end','delete','init','_insertChild','_bufferedUpdates','createPositionAfter','markerToData','getOperations','_processRootBeforeSave','_removeRevisionMarkers','getRoot','markers','deletion','dataToMarker','_calculateMetaData','split','_touched','add','Users'];(function(_0x4b5adf,_0x44accf){const _0x15b562=function(_0x408026){while(--_0x408026){_0x4b5adf['push'](_0x4b5adf['shift']());}};_0x15b562(++_0x44accf);}(_0x44ac,0x1a0));const _0x15b5=function(_0x4b5adf,_0x44accf){_0x4b5adf=_0x4b5adf-0x0;let _0x15b562=_0x44ac[_0x4b5adf];return _0x15b562;};import{Users as _0x45008a}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x208e19,PendingActions as _0x16d3db}from'ckeditor5/src/core';import{logWarning as _0x29db7e,uid as _0x53ddbb}from'ckeditor5/src/utils';import{Position as _0x4d7909,Range as _0x124c67,Element as _0x245fee,DocumentFragment as _0x254a89,ViewText as _0xf42b80,ViewElement as _0x5ee2d9,ViewContainerElement as _0x4133fb,ViewAttributeElement as _0x4003ee,ViewEmptyElement as _0x361ba2,ViewRawElement as _0x4f9cbd,ViewUIElement as _0x3bf892,ViewDocumentFragment as _0x522da4}from'ckeditor5/src/engine';import _0x53592b from'./revisionsrepository';import{getTranslation as _0x334244}from'./utils/common-translations';import{cloneDeep as _0x1f2f4d,isEqual as _0x509f3b}from'lodash-es';const B={'c':_0x4133fb,'a':_0x4003ee,'e':_0x361ba2,'r':_0x4f9cbd,'u':_0x3bf892};export default class l extends _0x208e19{static get[_0x15b5('0xb7')](){return _0x15b5('0xa6');}static get[_0x15b5('0x24')](){return[_0x45008a,_0x53592b,_0x16d3db];}constructor(_0x381a5b){super(_0x381a5b),this['adapter']=null,this[_0x15b5('0xd4')]=null,this[_0x15b5('0x2e')]=new H(this[_0x15b5('0xb4')]),this['_initialRevisionId']=this['editor'][_0x15b5('0x45')][_0x15b5('0x96')](_0x15b5('0xd6'))||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x593af0=_0x53ddbb();this['_source']={'history':this[_0x15b5('0xb4')][_0x15b5('0xa5')]['document'][_0x15b5('0xb5')],'getLatestVersion':()=>Promise[_0x15b5('0x33')](this['editor']['model'][_0x15b5('0x78')][_0x15b5('0x2')]),'getCurrentRevisionId':()=>_0x593af0},this[_0x15b5('0x80')](_0x15b5('0xdf'),!0x1),this[_0x15b5('0x80')](_0x15b5('0x49'),!0x0),this[_0x15b5('0x80')](_0x15b5('0x105'),!0x1),this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x79')](_0x15b5('0xf4'),!0x0),this[_0x15b5('0xb4')][_0x15b5('0xe0')][_0x15b5('0x3')](_0x15b5('0xf0'))[_0x15b5('0x6c')]({'view':_0x15b5('0x104')});}[_0x15b5('0x61')](){this[_0x15b5('0xd')]=this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x18')),this[_0x15b5('0x0')](),this[_0x15b5('0xb4')][_0x15b5('0x51')]['on'](_0x15b5('0xb'),()=>{const _0x4eca88=this[_0x15b5('0xd')][_0x15b5('0x7')](0x0),_0x4b5c4e=_0x4eca88&&null===_0x4eca88[_0x15b5('0x3b')]?_0x4eca88:null;if(this[_0x15b5('0xfa')]=!!_0x4b5c4e&&this[_0x15b5('0xb4')]['config']['get'](_0x15b5('0xf4')),this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x99')](_0x15b5('0xbf'))){const _0x348801=this[_0x15b5('0xab')][_0x15b5('0x2c')](),_0x1bc83f=this[_0x15b5('0xd')][_0x15b5('0x7')](_0x348801);if(_0x1bc83f)this['_startingVersion']=_0x1bc83f['fromVersion'],this[_0x15b5('0xfa')]=!0x1;else{const _0xfc977=this[_0x15b5('0xab')]['history'][_0x15b5('0x1a')][_0x15b5('0x100')](_0x1b2778=>!_0x1b2778[_0x15b5('0xfe')]),_0x230316=_0xfc977?_0xfc977[_0x15b5('0x7b')]:this[_0x15b5('0xab')][_0x15b5('0xb5')][_0x15b5('0x2')];_0x4eca88?(_0x4eca88[_0x15b5('0x8f')]<_0x230316&&_0x4eca88[_0x15b5('0xf7')]({'toVersion':_0x230316}),this[_0x15b5('0xfa')]?(this[_0x15b5('0xab')]['getCurrentRevisionId']=()=>_0x4b5c4e['id'],this[_0x15b5('0xbe')]=_0x4b5c4e[_0x15b5('0x22')]):(this[_0x15b5('0xbe')]=_0x4eca88[_0x15b5('0x8f')],this['_continueCurrentRevision']=!0x1)):(this[_0x15b5('0xbe')]=_0x230316,this[_0x15b5('0xfa')]=!0x1);}}else _0x4b5c4e&&(this['editor']['model']['document']['history'][_0x15b5('0x2')]=Math[_0x15b5('0xe6')](_0x4b5c4e[_0x15b5('0x8f')],this['editor']['model']['document']['history']['version']),_0x4b5c4e[_0x15b5('0x22')]===_0x4b5c4e['toVersion']?(0x0!==_0x4b5c4e[_0x15b5('0x22')]&&(this[_0x15b5('0xab')][_0x15b5('0x2c')]=()=>_0x4b5c4e['id']),this['_continueCurrentRevision']=!0x1):this[_0x15b5('0xfa')]&&(this[_0x15b5('0xab')][_0x15b5('0x2c')]=()=>_0x4b5c4e['id'],this[_0x15b5('0xbe')]=_0x4b5c4e[_0x15b5('0x22')])),this[_0x15b5('0xfa')]||(this[_0x15b5('0xbe')]=this['editor'][_0x15b5('0xa5')][_0x15b5('0x78')][_0x15b5('0x2')]);this[_0x15b5('0x2e')][_0x15b5('0x61')](this['_source'][_0x15b5('0xb5')]),this[_0x15b5('0x3e')](this[_0x15b5('0xbe')]),this['_createCurrentRevision'](this[_0x15b5('0xbe')]),this[_0x15b5('0x4c')]&&this[_0x15b5('0xb1')]();}),this[_0x15b5('0x3c')](_0x15b5('0xdf'))['to'](this,'_isPendingUpdate',_0x3225ac=>!_0x3225ac);}async[_0x15b5('0xd5')](){if(this[_0x15b5('0xd')][_0x15b5('0xb9')]>0x0){const _0x5dec8b=this[_0x15b5('0xd')][_0x15b5('0x7')](0x0),_0x2a6ee6=await this[_0x15b5('0xf9')](_0x5dec8b),_0x538db9=await this[_0x15b5('0x42')](_0x5dec8b);this[_0x15b5('0xa0')](_0x2a6ee6,_0x538db9);}}[_0x15b5('0xde')](_0x347a01){this[_0x15b5('0xab')]=_0x347a01;}async[_0x15b5('0x92')](){const _0x1d1b53=await this[_0x15b5('0xab')][_0x15b5('0x3d')]();if(_0x1d1b53>this[_0x15b5('0xd4')][_0x15b5('0x8f')]){await this[_0x15b5('0xa1')]();const _0xb094f1=this[_0x15b5('0xcb')]({'revision':this[_0x15b5('0xd4')],'to':_0x1d1b53});_0xb094f1['authors']=_0xb094f1[_0x15b5('0x46')][_0x15b5('0xe1')](_0x373e59=>this[_0x15b5('0xb4')][_0x15b5('0x50')]['get']('Users')['getUser'](_0x373e59)),this[_0x15b5('0xd4')][_0x15b5('0xf7')](_0xb094f1);}}async[_0x15b5('0xa1')](){this[_0x15b5('0xfa')]&&!this[_0x15b5('0x76')]&&(await this[_0x15b5('0x54')](this[_0x15b5('0xd4')]),this[_0x15b5('0x2e')][_0x15b5('0x87')](this[_0x15b5('0xd4')]),this[_0x15b5('0x76')]={'fromVersion':this[_0x15b5('0xd4')][_0x15b5('0x22')],'authors':this['currentRevision'][_0x15b5('0xf5')]['slice']()});}async[_0x15b5('0x39')](_0x2a59f4={},_0x253bc8=null){const _0x3aeb63=[];await this[_0x15b5('0xa1')](),this[_0x15b5('0xfa')]=!0x1,_0x253bc8>this['currentRevision'][_0x15b5('0x8f')]&&(_0x253bc8=null),null===_0x253bc8&&(_0x253bc8=await this[_0x15b5('0xab')][_0x15b5('0x3d')]());const _0x2bde67=this[_0x15b5('0x36')](_0x253bc8),_0x386acd=this['buildRevisionData']({'from':_0x2bde67,'to':_0x253bc8});if(this['currentRevision'][_0x15b5('0x8f')]<_0x253bc8){const _0x172e24=this[_0x15b5('0xcb')]({'revision':this['currentRevision'],'from':_0x253bc8,'to':_0x253bc8});_0x172e24['authors']=[],_0x172e24[_0x15b5('0x46')]=[],_0x172e24['id']=this['currentRevision']['id'],this[_0x15b5('0xd4')]['_update'](_0x172e24,!0x0),delete _0x172e24[_0x15b5('0xf5')],_0x3aeb63[_0x15b5('0xc6')](_0x172e24);}_0x2a59f4['creatorId']=this['editor']['plugins'][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x2a59f4[_0x15b5('0x56')]=_0x2a59f4[_0x15b5('0x56')]||null,_0x2a59f4['id']=_0x2a59f4['id']||_0x53ddbb(),_0x2a59f4={..._0x2a59f4,..._0x386acd};const _0x1e3364=this['addRevisionData'](_0x2a59f4);_0x3aeb63['push'](_0x2a59f4);const _0x43549a=this['repository'][_0x15b5('0xf6')](_0x1e3364);if(0x0!==_0x43549a){const _0x273be9=this[_0x15b5('0xd')][_0x15b5('0x7')](_0x43549a-0x1);if(_0x273be9[_0x15b5('0x22')]!==_0x253bc8){const _0x101c65=this[_0x15b5('0x2e')][_0x15b5('0x106')](_0x253bc8,_0x273be9[_0x15b5('0x8f')]),_0x59b18a={'id':_0x273be9['id'],'diffData':_0x101c65[_0x15b5('0x8e')],'authorsIds':_0x101c65[_0x15b5('0x46')],'authors':_0x101c65['authorsIds'][_0x15b5('0xe1')](_0x1b3a76=>this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x71'))['getUser'](_0x1b3a76)),'fromVersion':_0x253bc8};_0x273be9===this[_0x15b5('0xd4')]&&(_0x59b18a[_0x15b5('0xf2')]=new Date(_0x2a59f4[_0x15b5('0xf2')]['getTime']()+0xa)),_0x273be9[_0x15b5('0xf7')](_0x59b18a,!0x0),delete _0x59b18a[_0x15b5('0xf5')],_0x3aeb63[_0x15b5('0xc6')](_0x59b18a);}}if(this['adapter']){for(const _0x2abee7 of _0x3aeb63)this[_0x15b5('0x90')](_0x2abee7['id'],_0x2abee7,!0x0);this['sendBufferedUpdates']();}return _0x1e3364;}[_0x15b5('0xa9')](_0x3ea9f9){const _0x4c0f15=this[_0x15b5('0xd')][_0x15b5('0x19')](_0x3ea9f9);return this['adapter']&&_0x4c0f15['on'](_0x15b5('0xf7'),(_0x422966,_0x5d23d2,_0x15fce4)=>{_0x15fce4||(this[_0x15b5('0x90')](_0x5d23d2['id'],_0x5d23d2,!0x0),this[_0x15b5('0xb1')]());}),this['repository'][_0x15b5('0xdd')](_0x4c0f15,this[_0x15b5('0x23')](_0x4c0f15)),_0x4c0f15;}async[_0x15b5('0xf9')](_0x1976c4){await this[_0x15b5('0x54')](_0x1976c4);const _0x5f77d4={};for(const _0x480c67 in _0x1976c4['diffData']){if(_0x1976c4[_0x15b5('0x8e')][_0x480c67][_0x15b5('0x4f')]&&!_0x1976c4[_0x15b5('0x8e')][_0x480c67][_0x15b5('0x4f')][_0x15b5('0x102')])continue;const _0x2a6732=this['_removeRevisionMarkers'](JSON['parse'](_0x1976c4['diffData'][_0x480c67][_0x15b5('0x1')])),_0xf91395=this['editor'][_0x15b5('0x7c')][_0x15b5('0xfc')][_0x15b5('0x78')],_0x31ca05=new _0x522da4(_0xf91395,_0x2a6732[_0x15b5('0xe1')](_0x5a5e64=>J(_0x5a5e64,this[_0x15b5('0xb4')])));this['editor'][_0x15b5('0x51')][_0x15b5('0x34')][_0x15b5('0x2f')]('marked'),_0x5f77d4[_0x480c67]=this[_0x15b5('0xb4')][_0x15b5('0x51')][_0x15b5('0x34')]['toData'](_0x31ca05),this[_0x15b5('0xb4')][_0x15b5('0x51')][_0x15b5('0x34')][_0x15b5('0x2f')](_0x15b5('0xe'));}return _0x5f77d4;}async[_0x15b5('0x42')](_0x179c07){await this[_0x15b5('0x54')](_0x179c07);const _0x10f63e={};for(const _0x286bbb in _0x179c07['diffData'])_0x179c07[_0x15b5('0x8e')][_0x286bbb][_0x15b5('0x4f')]&&!_0x179c07[_0x15b5('0x8e')][_0x286bbb]['attachChange'][_0x15b5('0x102')]||(_0x10f63e[_0x286bbb]=_0x179c07['diffData'][_0x286bbb]['attributesAfter']||{});return _0x10f63e;}[_0x15b5('0xb1')](){if(0x0===this[_0x15b5('0x63')][_0x15b5('0xaa')])return;if(this['_isPendingUpdate'])return;let _0x302648=Array[_0x15b5('0x97')](this[_0x15b5('0x63')][_0x15b5('0x7e')]());this['_bufferedUpdates'][_0x15b5('0x27')]();for(let _0x304c6f=0x0;_0x304c6f<_0x302648[_0x15b5('0xb9')];_0x304c6f++){const _0x29ff5c=_0x302648[_0x304c6f];let _0x3c7bd2=!0x1;for(const _0x597328 of Object[_0x15b5('0x9a')](_0x29ff5c))void 0x0===_0x29ff5c[_0x597328]?delete _0x29ff5c[_0x597328]:'id'!==_0x597328&&(_0x3c7bd2=!0x0);_0x3c7bd2||(_0x302648[_0x304c6f]=null);}if(_0x302648=_0x302648[_0x15b5('0x44')](_0x47dd52=>null!==_0x47dd52),!_0x302648['length'])return;for(let _0x2a8ae8=0x0;_0x2a8ae8<_0x302648[_0x15b5('0xb9')];_0x2a8ae8++){const _0x18aa53=_0x302648[_0x2a8ae8];void 0x0!==_0x18aa53[_0x15b5('0x22')]&&void 0x0===_0x18aa53[_0x15b5('0x8f')]&&(_0x18aa53[_0x15b5('0x8f')]=this['repository'][_0x15b5('0x7')](_0x18aa53['id'])[_0x15b5('0x8f')]),void 0x0!==_0x18aa53['toVersion']&&void 0x0===_0x18aa53['fromVersion']&&(_0x18aa53['fromVersion']=this[_0x15b5('0xd')]['getRevision'](_0x18aa53['id'])['fromVersion']);}const _0x49f33b=this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x96')](_0x15b5('0xd6'));this[_0x15b5('0x105')]=!0x0,this[_0x15b5('0xa2')](),this['adapter'][_0x15b5('0xa3')](_0x302648,_0x49f33b)['finally'](()=>{this[_0x15b5('0x105')]=!0x1;})[_0x15b5('0x26')](_0x29a089=>{if(_0x29a089)for(const _0x5babb6 of _0x29a089)this[_0x15b5('0x88')]({'id':_0x5babb6['id'],'createdAt':_0x5babb6[_0x15b5('0xf2')]});this[_0x15b5('0x9b')](),this[_0x15b5('0xb1')]();});}[_0x15b5('0xa0')](_0x2f3bc0,_0x4f041b){let _0x312ea1=this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x96')](_0x15b5('0xce')),_0x2324c7=this[_0x15b5('0xb4')][_0x15b5('0x45')]['get'](_0x15b5('0xe2'));if(void 0x0===_0x312ea1){_0x312ea1={};for(const _0x575f65 of this['editor'][_0x15b5('0xa5')][_0x15b5('0x78')]['getRootNames']())_0x312ea1[_0x575f65]='';}if(_0x15b5('0x5d')==typeof _0x312ea1&&(_0x312ea1={'main':_0x312ea1}),void 0x0===_0x2324c7){_0x2324c7={};for(const _0x403b7a of this[_0x15b5('0xb4')][_0x15b5('0xa5')][_0x15b5('0x78')][_0x15b5('0x57')]())_0x2324c7[_0x403b7a]={};}let _0x468e9b=!0x1;const _0x336214=Object[_0x15b5('0x9a')](_0x312ea1),_0x1d33b8=Object[_0x15b5('0x9a')](_0x2f3bc0);for(const _0x3b7a44 of _0x336214){if(_0x312ea1[_0x3b7a44]!==_0x2f3bc0[_0x3b7a44]&&''!==_0x312ea1[_0x3b7a44]['trim']()){_0x468e9b=!0x0;break;}if(!_0x509f3b(_0x2324c7[_0x3b7a44],_0x4f041b[_0x3b7a44])&&Object['keys'](_0x2324c7[_0x3b7a44])[_0x15b5('0xb9')]>0x0){_0x468e9b=!0x0;break;}}_0x468e9b||(_0x468e9b=_0x1d33b8['some'](_0x1ca9b7=>!this['editor']['model']['document'][_0x15b5('0x69')](_0x1ca9b7))),_0x468e9b&&_0x29db7e(_0x15b5('0x12'),{'editorData':_0x312ea1,'editorRootsAttributes':_0x2324c7,'revisionData':_0x2f3bc0,'revisionRootsAttributes':_0x4f041b}),this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x80')](_0x15b5('0xce'),_0x2f3bc0),this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x80')](_0x15b5('0xe2'),_0x4f041b);}[_0x15b5('0xa2')](){if(!this[_0x15b5('0xc4')]){const _0x3ebbeb=this['editor'][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x52'));this[_0x15b5('0xc4')]=_0x3ebbeb[_0x15b5('0x70')](_0x334244(this[_0x15b5('0xb4')][_0x15b5('0x32')],_0x15b5('0x84')));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor'][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x52'))[_0x15b5('0x15')](this[_0x15b5('0xc4')]),this[_0x15b5('0xc4')]=null);}[_0x15b5('0x23')](_0x353551){const _0x458984=this[_0x15b5('0xd')][_0x15b5('0xd2')]();_0x458984[_0x15b5('0xf')]();let _0x2aabe6=0x0;for(;_0x2aabe6<_0x458984[_0x15b5('0xb9')];){const _0x5eb2df=_0x458984[_0x2aabe6];if(_0x5eb2df===this[_0x15b5('0xd4')]){_0x2aabe6++;continue;}if(_0x5eb2df['id']===this['_initialRevisionId'])break;const _0x306fa4=_0x353551['toVersion']-_0x5eb2df[_0x15b5('0x8f')]||_0x353551['fromVersion']-_0x5eb2df[_0x15b5('0x22')];if(_0x306fa4>0x0)break;if(_0x306fa4<0x0)_0x2aabe6++;else{if(!_0x353551[_0x15b5('0x3b')]&&_0x5eb2df[_0x15b5('0x3b')])break;if(_0x5eb2df['creator']||!_0x353551['creator']){if(_0x353551[_0x15b5('0xf2')]>_0x5eb2df[_0x15b5('0xf2')])break;_0x2aabe6++;}else _0x2aabe6++;}}return _0x2aabe6;}['setRevisionData'](_0x8906d6){const _0x2c7b9e=this[_0x15b5('0xd')][_0x15b5('0x7')](_0x8906d6['id']);if(_0x8906d6[_0x15b5('0xf2')]&&(_0x8906d6[_0x15b5('0xf2')]=new Date(_0x8906d6[_0x15b5('0xf2')])),_0x8906d6[_0x15b5('0x46')]){const _0x267a46=this[_0x15b5('0xb4')][_0x15b5('0x50')]['get'](_0x15b5('0x71'));_0x8906d6['authors']=_0x8906d6['authorsIds'][_0x15b5('0xe1')](_0x38a989=>_0x267a46['getUser'](_0x38a989));}_0x2c7b9e[_0x15b5('0xf7')](_0x8906d6,!0x0);}[_0x15b5('0xcb')]({revision:_0x4eeeba=null,from:_0x539506=null,to:_0x4e72e2=null}){_0x539506=null!==_0x539506?_0x539506:_0x4eeeba[_0x15b5('0x22')],_0x4e72e2=null!==_0x4e72e2?_0x4e72e2:_0x4eeeba[_0x15b5('0x8f')];const _0xdba1fe=this[_0x15b5('0x2e')][_0x15b5('0x106')](_0x539506,_0x4e72e2),_0x6276fe={'diffData':_0xdba1fe[_0x15b5('0x8e')],'authorsIds':_0xdba1fe[_0x15b5('0x46')],'fromVersion':_0x539506,'toVersion':_0x4e72e2};if(!_0x4eeeba||_0x4e72e2!==_0x4eeeba['toVersion']){const _0x54f0e7=_0x4e72e2-0x1,_0x4dfefa=this[_0x15b5('0xab')]['history'][_0x15b5('0x4b')](_0x54f0e7);_0x6276fe['createdAt']=_0x4dfefa&&_0x4dfefa[_0x15b5('0xf2')]||new Date();}if(this[_0x15b5('0x76')]&&_0x539506===this[_0x15b5('0x76')]['fromVersion'])for(const _0xbc8c4a of this[_0x15b5('0x76')][_0x15b5('0xf5')])_0x6276fe[_0x15b5('0x46')]['includes'](_0xbc8c4a['id'])||_0x6276fe[_0x15b5('0x46')][_0x15b5('0xc6')](_0xbc8c4a['id']);return _0x6276fe;}[_0x15b5('0x54')](_0x449f80){if(!_0x449f80||_0x449f80['diffData'])return Promise[_0x15b5('0x33')]();{const _0x335d2d=this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x96')](_0x15b5('0xd6'));return this[_0x15b5('0x4c')][_0x15b5('0x7')]({'channelId':_0x335d2d,'revisionId':_0x449f80['id']})[_0x15b5('0x26')](_0x36ba70=>{_0x449f80[_0x15b5('0x8e')]=_0x36ba70[_0x15b5('0x8e')];});}}[_0x15b5('0x90')](_0x4ad913,_0x44ec00,_0x2138cc){if(this[_0x15b5('0x63')][_0x15b5('0x99')](_0x4ad913)){const _0x24b9d8=this[_0x15b5('0x63')][_0x15b5('0x96')](_0x4ad913);_0x44ec00=_0x2138cc?{..._0x24b9d8,..._0x44ec00}:{..._0x44ec00,..._0x24b9d8};}this[_0x15b5('0x63')][_0x15b5('0x80')](_0x4ad913,_0x44ec00);}['_getFromVersion'](_0x53d6d0){const _0x50aaed=this['repository'][_0x15b5('0xd2')]();_0x50aaed[_0x15b5('0xf')](),_0x50aaed[_0x15b5('0x89')]();const _0x1fc89d=_0x50aaed[_0x15b5('0x100')](_0x300feb=>_0x300feb[_0x15b5('0x8f')]<=_0x53d6d0)['toVersion'];return _0x1fc89d<this['_startingVersion']?this[_0x15b5('0xbe')]:_0x1fc89d;}[_0x15b5('0x3e')](_0x24c99e){const _0x337379=this['repository'][_0x15b5('0x7')](this[_0x15b5('0xd')][_0x15b5('0xb9')]-0x1);if(_0x337379)this[_0x15b5('0x35')]=_0x337379['id'];else{const _0x75e8a1=!this[_0x15b5('0xb4')][_0x15b5('0xa5')]['document'][_0x15b5('0xdb')][_0x15b5('0x100')](_0x516ae2=>this[_0x15b5('0xb4')][_0x15b5('0xa5')][_0x15b5('0xed')](_0x516ae2)),_0x7af2df=this['editor']['plugins'][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x3f8836=_0x334244(this[_0x15b5('0xb4')][_0x15b5('0x32')],_0x75e8a1?'Empty\x20document':_0x15b5('0x82'));this[_0x15b5('0x40')]({'from':_0x24c99e,'to':_0x24c99e,'id':this[_0x15b5('0x35')],'name':_0x3f8836,'creatorId':_0x7af2df});}}[_0x15b5('0x7f')](_0x5fe765){const _0x39d367=this[_0x15b5('0xab')][_0x15b5('0x2c')]();this[_0x15b5('0xd4')]=this[_0x15b5('0xd')]['getRevision'](_0x39d367),this[_0x15b5('0xd4')]||(this[_0x15b5('0xd4')]=this[_0x15b5('0x40')]({'from':_0x5fe765,'to':_0x5fe765,'id':_0x39d367,'name':'','creatorId':null}));}[_0x15b5('0x40')]({name:_0x5cfc89,from:_0x3cc781,to:_0x1bb606,creatorId:_0x4db695,id:_0x6f9845}){const _0xebed7f=this['buildRevisionData']({'from':_0x3cc781,'to':_0x1bb606});_0xebed7f[_0x15b5('0x56')]=_0x5cfc89,_0xebed7f[_0x15b5('0x4a')]=_0x4db695,_0xebed7f['id']=_0x6f9845;const _0x2e43e0=this[_0x15b5('0xa9')](_0xebed7f);return this[_0x15b5('0x4c')]&&this[_0x15b5('0x90')](_0xebed7f['id'],_0xebed7f,!0x0),_0x2e43e0;}['_setConversion'](){this['editor']['conversion'][_0x15b5('0x3')](_0x15b5('0x16'))[_0x15b5('0x65')]({'model':'revision'});}['_removeRevisionMarkers'](_0x4f0a72){return(_0x4f0a72=_0x4f0a72['filter'](_0x57e094=>!_0x57e094[_0x15b5('0x56')]||'revision-start'!==_0x57e094[_0x15b5('0x56')]&&_0x15b5('0x5f')!==_0x57e094[_0x15b5('0x56')]))['forEach'](_0x5efded=>{_0x15b5('0x5d')!=typeof _0x5efded&&(_0x5efded[_0x15b5('0x75')]=this[_0x15b5('0x68')](_0x5efded[_0x15b5('0x75')]),_0x5efded[_0x15b5('0x107')]=_0x5efded[_0x15b5('0x107')][_0x15b5('0x44')](_0x36d24c=>!_0x36d24c[0x0]['startsWith'](_0x15b5('0xeb'))));}),_0x4f0a72;}}function J(_0x3a4525,_0x3dcd52){const _0x21b6f1=_0x3dcd52['editing']['view'][_0x15b5('0x78')];if(_0x15b5('0x5d')==typeof _0x3a4525)return new _0xf42b80(_0x21b6f1,_0x3a4525);{const _0x3ec12d=_0x3a4525[_0x15b5('0x75')][_0x15b5('0xe1')](_0x3c6bde=>J(_0x3c6bde,_0x3dcd52));return new(B[_0x3a4525['type']]||_0x5ee2d9)(_0x21b6f1,_0x3a4525[_0x15b5('0x56')],_0x3a4525[_0x15b5('0x107')],_0x3ec12d);}}class H{constructor(_0x581b6d){this[_0x15b5('0xb4')]=_0x581b6d,this[_0x15b5('0xc0')]=new Map(),this[_0x15b5('0x101')]=-0x1,this[_0x15b5('0xdc')]=-0x1,this[_0x15b5('0xc5')]=new Map(),this[_0x15b5('0xc')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x15b5('0x38')]=new Map(),this[_0x15b5('0x91')]=new Map(),this[_0x15b5('0x93')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x15b5('0x6f')]=new Map(),this[_0x15b5('0x86')]=new Map(),this[_0x15b5('0xd1')]=new Map(),this[_0x15b5('0x13')]=0x1;}[_0x15b5('0x61')](_0xd31900){this[_0x15b5('0x5e')]=_0xd31900;const _0x4befd6=new Map(),_0x31f9ac=new Map(),_0x5c4102=this[_0x15b5('0xb4')][_0x15b5('0xa5')][_0x15b5('0x78')][_0x15b5('0xdb')][_0x15b5('0xe1')](_0x23a74b=>_0x23a74b[_0x15b5('0x1e')]);for(const _0x24eab4 of _0x5c4102){const _0x13944d=this[_0x15b5('0xb4')]['model'][_0x15b5('0x78')][_0x15b5('0x69')](_0x24eab4),_0x57268c=q(_0x13944d);_0x4befd6[_0x15b5('0x80')](_0x24eab4,_0x57268c),_0x31f9ac['set'](_0x24eab4,Object['fromEntries'](_0x13944d[_0x15b5('0x21')]()));}const _0x10912c=Array['from'](this['editor']['model']['markers'])[_0x15b5('0xe1')](_0x3c8238=>[_0x3c8238[_0x15b5('0x56')],_0x3c8238[_0x15b5('0xe4')]()]),_0x459bc3=this[_0x15b5('0x5e')][_0x15b5('0x2')];this[_0x15b5('0xa7')](_0x459bc3,_0x4befd6,_0x10912c,_0x31f9ac),this[_0x15b5('0xae')]=this[_0x15b5('0x13')];const _0x6c351=new Map(),_0x58f8d2=new Map();for(const _0x462b62 of _0x5c4102){const _0x1e04f9=G(_0x462b62);_0x6c351['set'](_0x462b62,_0x1e04f9),_0x58f8d2[_0x15b5('0x80')](_0x462b62,{});}this[_0x15b5('0xa7')](Number[_0x15b5('0x58')],_0x6c351,[],_0x58f8d2);}[_0x15b5('0x106')](_0xd88925,_0x372600){if(this[_0x15b5('0x101')]===_0xd88925&&this[_0x15b5('0xdc')]<=_0x372600)this['_savedMetaData'][_0x15b5('0xaa')]>0x1&&this[_0x15b5('0x7d')](this['_lastTo']),this[_0x15b5('0x29')](this[_0x15b5('0xdc')],_0x372600,!0x0);else{if(!this['_savedMetaData'][_0x15b5('0x99')](_0xd88925)){const _0x4d51d3=this[_0x15b5('0x85')](_0xd88925);this[_0x15b5('0x6d')](_0x4d51d3,_0xd88925,!0x1);}this[_0x15b5('0x6d')](_0xd88925,_0x372600,!0x0);}return this['_lastFrom']=_0xd88925,this[_0x15b5('0xdc')]=_0x372600,this[_0x15b5('0xfd')]();}[_0x15b5('0x87')](_0x4d8c8d){this[_0x15b5('0xcc')](),this[_0x15b5('0x101')]=_0x4d8c8d[_0x15b5('0x22')],this[_0x15b5('0xdc')]=_0x4d8c8d[_0x15b5('0x8f')];for(const _0x4380b4 in _0x4d8c8d[_0x15b5('0x8e')]){const _0x3fb5fe=_0x4d8c8d[_0x15b5('0x8e')][_0x4380b4]['attachChange'],_0x2e46f8=_0x1f2f4d(_0x4d8c8d['diffData'][_0x4380b4][_0x15b5('0xa8')])||{},_0x1de0af=this[_0x15b5('0x9e')](_0x4d8c8d['diffData'][_0x4380b4][_0x15b5('0xbd')]);_0x1de0af['rootName']=_0x4380b4,_0x1de0af['_isAttached']=!_0x3fb5fe||!_0x3fb5fe[_0x15b5('0x102')],_0x1de0af['isAttached']=()=>_0x1de0af[_0x15b5('0x5c')],this['_baseRoots'][_0x15b5('0x80')](_0x4380b4,_0x1de0af),this[_0x15b5('0x91')][_0x15b5('0x80')](_0x4380b4,_0x2e46f8),_0x3fb5fe&&this[_0x15b5('0xd1')][_0x15b5('0x80')](_0x4380b4,_0x3fb5fe);const _0x35df82=this[_0x15b5('0xc2')](_0x1de0af);this[_0x15b5('0x59')][_0x15b5('0x80')](_0x4380b4,_0x35df82);for(const [_0x2243e6,_0xadf9c6]of _0x1de0af[_0x15b5('0x6a')]){if(!_0x2243e6[_0x15b5('0x4')](_0x15b5('0x81')))continue;const _0x13bf4a=_0x2243e6[_0x15b5('0x6e')](':')[0x2];for(const _0x14ca5f of _0xadf9c6['getWalker']({'singleCharacters':!0x0})){const _0x4499b3=this[_0x15b5('0xb8')](_0x14ca5f),_0x4af208=_0x15b5('0xc3')==_0x14ca5f[_0x15b5('0xf1')]?_0x14ca5f['previousPosition']['path']['slice'](0x0,-0x1):_0x14ca5f[_0x15b5('0x77')][_0x15b5('0xb6')],_0x2edf6a=_0x35df82['getNodeByPath'](_0x4af208)[_0x15b5('0x1c')](_0x4499b3);this[_0x15b5('0x6f')][_0x15b5('0x80')](_0x2edf6a,{'userId':_0x13bf4a});}}}this[_0x15b5('0xae')]=this[_0x15b5('0x13')];const _0x5168e1=[...Array(this[_0x15b5('0x13')])[_0x15b5('0x9a')]()]['slice'](0x1)[_0x15b5('0x44')](_0x18953f=>!this[_0x15b5('0x6f')][_0x15b5('0x99')](_0x18953f));let _0xda7fb0=0x0;const _0x2831bf=new Map();for(const _0x23eb52 in _0x4d8c8d[_0x15b5('0x8e')]){const _0x400b4f=_0x4d8c8d[_0x15b5('0x8e')][_0x23eb52][_0x15b5('0x4f')],_0x4f5360=_0x1f2f4d(_0x4d8c8d[_0x15b5('0x8e')][_0x23eb52][_0x15b5('0xb0')])||{},_0x1069d4=this[_0x15b5('0x9e')](_0x4d8c8d[_0x15b5('0x8e')][_0x23eb52][_0x15b5('0x1')]);_0x1069d4[_0x15b5('0x1e')]=_0x23eb52,_0x1069d4[_0x15b5('0x5c')]=!_0x400b4f||_0x400b4f['isAttached'],_0x1069d4[_0x15b5('0x102')]=()=>_0x1069d4[_0x15b5('0x5c')],this[_0x15b5('0xc')][_0x15b5('0x80')](_0x23eb52,_0x1069d4),this[_0x15b5('0xf8')][_0x15b5('0x80')](_0x23eb52,_0x4f5360);const _0x2d5685=this[_0x15b5('0xc2')](_0x1069d4,Number[_0x15b5('0x58')]);this[_0x15b5('0x93')][_0x15b5('0x80')](_0x23eb52,_0x2d5685),_0x2831bf['set'](_0x23eb52,_0x1069d4[_0x15b5('0x102')]()?_0x4f5360:{});for(const [_0x36bfc0,_0x33d195]of _0x1069d4['markers']){if(!_0x36bfc0['startsWith']('revision:'))continue;const _0x31330d=_0x36bfc0[_0x15b5('0x6e')](':')[0x2];for(const _0x49fcf9 of _0x33d195[_0x15b5('0x8d')]({'singleCharacters':!0x0})){const _0x3e4f02=this[_0x15b5('0xb8')](_0x49fcf9),_0x56c1e6=this[_0x15b5('0x13')]++,_0xc169e3=_0x15b5('0xc3')==_0x49fcf9['type']?_0x49fcf9[_0x15b5('0x77')][_0x15b5('0xb6')]['slice'](0x0,-0x1):_0x49fcf9[_0x15b5('0x77')][_0x15b5('0xb6')];_0x2d5685[_0x15b5('0xa')](_0xc169e3)[_0x15b5('0xfb')](_0x3e4f02,_0x56c1e6),this['_touched']['set'](_0x56c1e6,{'userId':_0x31330d});}}for(const _0x4eb92f of this[_0x15b5('0xb4')]['model'][_0x15b5('0xc9')](_0x1069d4)['getWalker']({'singleCharacters':!0x0})){const _0x493d7d=this['_getVidAttributeName'](_0x4eb92f),_0x517cfa=_0x15b5('0xc3')==_0x4eb92f['type']?_0x4eb92f[_0x15b5('0x77')]['path']['slice'](0x0,-0x1):_0x4eb92f[_0x15b5('0x77')][_0x15b5('0xb6')],_0x2144be=_0x2d5685[_0x15b5('0xa')](_0x517cfa);_0x2144be[_0x15b5('0x1c')](_0x493d7d)>0x0||_0x2144be['_setAttribute'](_0x493d7d,_0x5168e1[_0xda7fb0++]);}for(const [_0x3d8800,_0x584ddb]of _0x1069d4[_0x15b5('0x6a')])_0x3d8800['startsWith'](_0x15b5('0x81'))||this[_0x15b5('0xc5')][_0x15b5('0x80')](_0x3d8800,_0x584ddb);}const _0x3b4e2a=G(_0x15b5('0xe7'));this[_0x15b5('0x38')][_0x15b5('0x80')](_0x15b5('0xe7'),_0x3b4e2a),this[_0x15b5('0x59')][_0x15b5('0x80')](_0x15b5('0xe7'),this[_0x15b5('0xc2')](_0x3b4e2a,0x1));const _0x522cc5=G(_0x15b5('0xe7'));this[_0x15b5('0xc')][_0x15b5('0x80')](_0x15b5('0xe7'),_0x522cc5),this[_0x15b5('0x93')][_0x15b5('0x80')](_0x15b5('0xe7'),this[_0x15b5('0xc2')](_0x522cc5,0x1));const _0x1af932=Array[_0x15b5('0x97')](this[_0x15b5('0xc')])[_0x15b5('0xe1')](([_0x5c69e1,_0x23b314])=>[_0x5c69e1,q(_0x23b314)]);this[_0x15b5('0xa7')](this['_lastTo'],_0x1af932,this[_0x15b5('0xc5')],_0x2831bf);}[_0x15b5('0x9e')](_0x2c77b8){const _0x56c0fa=JSON[_0x15b5('0x108')](_0x2c77b8),_0x21c83e=this[_0x15b5('0xb4')][_0x15b5('0x7c')][_0x15b5('0xfc')][_0x15b5('0x78')],_0x356b3d=new _0x522da4(_0x21c83e,_0x56c0fa[_0x15b5('0xe1')](_0x3cdd2d=>J(_0x3cdd2d,this['editor'])));return this[_0x15b5('0xb4')]['data'][_0x15b5('0x17')](_0x356b3d);}[_0x15b5('0xa7')](_0x393d6d,_0x3a5ceb,_0x5b826f,_0x470490){const _0x9a9736=new Map(_0x3a5ceb),_0x50e5ef=new Map(_0x1f2f4d(_0x470490)),_0x332698=new Map();for(const [_0x4e84f5,_0x4f79cb]of _0x5b826f)_0x332698['set'](_0x4e84f5,{'start':_0x4f79cb[_0x15b5('0xf3')][_0x15b5('0x8')](),'end':_0x4f79cb[_0x15b5('0xef')]['clone'](),'rootName':_0x4f79cb[_0x15b5('0xa4')]['rootName']});this['_savedMetaData'][_0x15b5('0x80')](_0x393d6d,{'roots':_0x9a9736,'markers':_0x332698,'rootsAttributes':_0x50e5ef});}['_removeMetaData'](_0x560cc9){this['_savedMetaData'][_0x15b5('0x60')](_0x560cc9);}['reInit'](){this['_reset'](),this[_0x15b5('0x101')]=-0x1,this[_0x15b5('0xdc')]=-0x1,this[_0x15b5('0xc0')]['clear'](),this['init'](this[_0x15b5('0x5e')]);}[_0x15b5('0xcc')](){this[_0x15b5('0x6f')][_0x15b5('0x27')](),this[_0x15b5('0x86')][_0x15b5('0x27')](),this['_touchedRoots'][_0x15b5('0x27')](),this[_0x15b5('0xc')][_0x15b5('0x27')](),this[_0x15b5('0xf8')][_0x15b5('0x27')](),this[_0x15b5('0x38')]['clear'](),this[_0x15b5('0x91')][_0x15b5('0x27')](),this[_0x15b5('0x93')][_0x15b5('0x27')](),this[_0x15b5('0x59')][_0x15b5('0x27')](),this[_0x15b5('0xc5')][_0x15b5('0x27')](),this['_revisionId']=0x1,this[_0x15b5('0xae')]=this['_revisionId'];}[_0x15b5('0xc2')](_0x442813,_0x5bb064=null){let _0x2b4bcd=null;_0x442813['is'](_0x15b5('0x94'))||(_0x2b4bcd=new _0x245fee(_0x442813[_0x15b5('0x56')],{'vid_start':null===_0x5bb064?this[_0x15b5('0x13')]++:_0x5bb064++}));const _0x2a65dc=[];for(const _0x4c20a0 of _0x442813[_0x15b5('0xe9')]())if(_0x4c20a0['is'](_0x15b5('0xaf'))){_0x2a65dc[_0x15b5('0xc6')](this[_0x15b5('0xc2')](_0x4c20a0,_0x5bb064));const _0x5de62a=_0x2a65dc[_0x2a65dc[_0x15b5('0xb9')]-0x1];null!==_0x5bb064&&(_0x5bb064=_0x5de62a['is'](_0x15b5('0xaf'),_0x15b5('0x25'))?_0x5de62a['getAttribute']('vid')+0x1:_0x5de62a['getAttribute'](_0x15b5('0x53'))+0x1);}else for(let _0x4e69c9=0x0;_0x4e69c9<_0x4c20a0[_0x15b5('0x95')];_0x4e69c9++)_0x2a65dc['push'](new _0x245fee(_0x15b5('0x25'),{'vid':null===_0x5bb064?this['_revisionId']++:_0x5bb064++}));if(_0x442813['is'](_0x15b5('0x94'))){const _0x305e87=G(_0x442813[_0x15b5('0x1e')]);return _0x305e87[_0x15b5('0x62')](0x0,_0x2a65dc),_0x305e87;}return _0x2b4bcd[_0x15b5('0xfb')](_0x15b5('0x53'),null===_0x5bb064?this[_0x15b5('0x13')]++:_0x5bb064++),_0x2b4bcd[_0x15b5('0x62')](0x0,_0x2a65dc),_0x2b4bcd;}[_0x15b5('0x6d')](_0x583660,_0xc8d74b,_0x334d54){this['_reset']();const {roots:_0x19b722,markers:_0x3b3eed,rootsAttributes:_0x179722}=this[_0x15b5('0xc0')][_0x15b5('0x96')](_0x583660);this['_baseRoots']=new Map(_0x19b722),this[_0x15b5('0x91')]=new Map(_0x1f2f4d(_0x179722));for(const [_0xbfb71d,_0x1abfea]of this[_0x15b5('0x38')])if(_0x15b5('0xe7')!==_0xbfb71d&&(this[_0x15b5('0xc')]['set'](_0xbfb71d,q(_0x1abfea)),this[_0x15b5('0xf8')]=new Map(_0x1f2f4d(_0x179722)),_0x334d54)){const _0x2ad97f=this[_0x15b5('0x13')];this[_0x15b5('0x93')]['set'](_0xbfb71d,this['_makeIdsRoot'](_0x1abfea)),this[_0x15b5('0x59')][_0x15b5('0x80')](_0xbfb71d,this[_0x15b5('0xc2')](_0x1abfea,_0x2ad97f));}this[_0x15b5('0xae')]=this[_0x15b5('0x13')],this[_0x15b5('0xc')][_0x15b5('0x80')](_0x15b5('0xe7'),q(this[_0x15b5('0x38')][_0x15b5('0x96')](_0x15b5('0xe7')))),_0x334d54&&this['_idsRoots'][_0x15b5('0x80')](_0x15b5('0xe7'),this['_makeIdsRoot'](this[_0x15b5('0x38')][_0x15b5('0x96')](_0x15b5('0xe7'))));for(const [_0x5be78b,_0x5e33df]of _0x3b3eed){const _0xd9ffb7=this[_0x15b5('0x38')][_0x15b5('0x96')](_0x5e33df['rootName']),_0x4b25dc=this[_0x15b5('0xc')][_0x15b5('0x96')](_0x5e33df[_0x15b5('0x1e')]),_0x4061d2=new _0x124c67(this[_0x15b5('0xd7')](_0x5e33df[_0x15b5('0xf3')],_0xd9ffb7),this[_0x15b5('0xd7')](_0x5e33df[_0x15b5('0xef')],_0xd9ffb7)),_0x5a9db7=this['_fixRange'](_0x4061d2,_0x4b25dc);_0xd9ffb7[_0x15b5('0x6a')][_0x15b5('0x80')](_0x5be78b,_0x4061d2),this[_0x15b5('0xc5')][_0x15b5('0x80')](_0x5be78b,_0x5a9db7);}this[_0x15b5('0x29')](_0x583660,_0xc8d74b,_0x334d54);}[_0x15b5('0x29')](_0x2f2107,_0x141bf9,_0x43f076){for(const _0x1209fc of this[_0x15b5('0x5e')][_0x15b5('0x66')](_0x2f2107,_0x141bf9))this[_0x15b5('0xd0')](_0x1209fc,_0x43f076);for(const _0x2dbe29 of this[_0x15b5('0xc')][_0x15b5('0x7e')]())_0x2dbe29[_0x15b5('0x6a')]['clear']();for(const [_0x41cf29,_0x31c60f]of this[_0x15b5('0xc5')]){this[_0x15b5('0xc')][_0x15b5('0x96')](_0x31c60f[_0x15b5('0xa4')][_0x15b5('0x1e')])['markers']['set'](_0x41cf29,_0x31c60f[_0x15b5('0x8')]());}const _0x45aa4e=new Map(),_0x39db0a=new Map();for(const [_0x412af0,_0x113122]of this[_0x15b5('0xc')])_0x45aa4e[_0x15b5('0x80')](_0x412af0,q(_0x113122)),_0x39db0a[_0x15b5('0x80')](_0x412af0,this[_0x15b5('0xf8')]['get'](_0x412af0));this[_0x15b5('0xa7')](_0x141bf9,_0x45aa4e,this[_0x15b5('0xc5')],_0x39db0a);}[_0x15b5('0x85')](_0x5decd0){const _0x3920bb=Array[_0x15b5('0x97')](this[_0x15b5('0xc0')][_0x15b5('0x9a')]());_0x3920bb[_0x15b5('0x20')]((_0x3c23ea,_0x34c951)=>_0x3c23ea-_0x34c951),_0x3920bb[_0x15b5('0xf')]();for(const _0x5e2d8e of _0x3920bb)if(_0x5e2d8e<_0x5decd0)return _0x5e2d8e;return Number[_0x15b5('0x58')];}[_0x15b5('0x4e')](_0x2c2330,_0x33e70f){const _0x5af28e=Array['from'](_0x33e70f[_0x15b5('0x6a')])['map'](([_0xad9f3a,_0x49e561])=>[_0xad9f3a,this['_fixRange'](_0x49e561,_0x2c2330)]);_0x2c2330[_0x15b5('0x6a')]=new Map(_0x5af28e);}['_transformMarkers'](_0x573829){for(const _0x50cd80 of this[_0x15b5('0xc5')][_0x15b5('0x7e')]()){const _0x26dfae=_0x50cd80[_0x15b5('0x10')](_0x573829),_0x5d15a5=_0x124c67[_0x15b5('0x47')](_0x26dfae);_0x50cd80[_0x15b5('0xf3')]=_0x5d15a5[_0x15b5('0xf3')],_0x50cd80[_0x15b5('0xef')]=_0x5d15a5[_0x15b5('0xef')];}}[_0x15b5('0xd0')](_0x1706f3,_0x429ef2){if('addRoot'==_0x1706f3[_0x15b5('0xf1')]||_0x15b5('0xee')==_0x1706f3[_0x15b5('0xf1')])return void this[_0x15b5('0xca')](_0x1706f3,_0x429ef2);if(_0x15b5('0x9')==_0x1706f3[_0x15b5('0xf1')]){const _0x5ac324=_0x1706f3['position'][_0x15b5('0xa4')][_0x15b5('0x1e')];this[_0x15b5('0xc')]['has'](_0x5ac324)||(this[_0x15b5('0xc')][_0x15b5('0x80')](_0x5ac324,G(_0x5ac324,!0x0)),this['_diffRootsAttributes'][_0x15b5('0x80')](_0x5ac324,{}),_0x429ef2&&this[_0x15b5('0x93')][_0x15b5('0x80')](_0x5ac324,G(_0x5ac324,!0x0)));}else{if(_0x15b5('0x8b')==_0x1706f3['type']||_0x15b5('0xe5')==_0x1706f3[_0x15b5('0xf1')]||'changeRootAttribute'==_0x1706f3[_0x15b5('0xf1')])return void this[_0x15b5('0x72')](_0x1706f3);}const _0x304ef0=this[_0x15b5('0x83')](_0x1706f3,this[_0x15b5('0xc')]);if(_0x15b5('0x3a')!==_0x1706f3['type']&&(_0x304ef0['_execute'](),this[_0x15b5('0x5a')](_0x304ef0)),_0x429ef2)switch(_0x304ef0[_0x15b5('0xf1')]){case'insert':this['_handleInsertOperation'](_0x1706f3);break;case _0x15b5('0x48'):case _0x15b5('0x15'):case _0x15b5('0x2d'):this['_handleMoveOperation'](_0x1706f3);break;case'merge':this[_0x15b5('0x2b')](_0x1706f3);break;case _0x15b5('0x6e'):this['_handleSplitOperation'](_0x1706f3);break;case _0x15b5('0x3a'):this[_0x15b5('0xcd')](_0x1706f3);}}[_0x15b5('0x83')](_0x25e3c8,_0x5cba5c){const _0x473529=_0x25e3c8[_0x15b5('0x8')]();return _0x473529[_0x15b5('0xe3')]=_0x25e3c8['_authorId'],this[_0x15b5('0xd3')](_0x473529,_0x5cba5c),_0x473529;}[_0x15b5('0x14')](_0x4eedec){return _0x4eedec[_0x15b5('0xe1')](_0x525370=>{const _0x144f00=this[_0x15b5('0xb8')](_0x525370);return Number(_0x525370[_0x15b5('0xe8')][_0x15b5('0x1c')](_0x144f00));});}[_0x15b5('0x73')](_0x497492,_0x354530){if(_0x497492['is'](_0x15b5('0xaf'),'$text'))_0x354530[_0x15b5('0xc6')]({'item':_0x497492,'type':_0x15b5('0x5b')});else{_0x497492['is'](_0x15b5('0xaf'))&&_0x354530[_0x15b5('0xc6')]({'item':_0x497492,'type':_0x15b5('0xc1')});for(const _0x59b557 of _0x497492[_0x15b5('0xe9')]())this[_0x15b5('0x73')](_0x59b557,_0x354530);_0x497492['is'](_0x15b5('0xaf'))&&_0x354530['push']({'item':_0x497492,'type':_0x15b5('0xc3')});}return _0x354530;}[_0x15b5('0xfd')](){const _0x1901aa=new Map(this[_0x15b5('0x6f')]),_0x5d1b50=new Map(_0x1901aa),_0xd8a846=new Map(),_0x1bdc41={'insertions':{},'deletions':{}},_0x1815c8={'insertions':{},'deletions':{}},_0x4f0072=new Map(),_0x413111=new Set([...this['_baseRoots'][_0x15b5('0x9a')](),...this[_0x15b5('0xc')]['keys']()]);_0x413111[_0x15b5('0x60')](_0x15b5('0xe7'));for(const _0x243871 of _0x413111){const _0xde39db=this[_0x15b5('0xc')][_0x15b5('0x96')](_0x243871)||G(_0x243871,!0x1),_0x3af079=this['_baseRoots'][_0x15b5('0x96')](_0x243871)||G(_0x243871,!0x1);_0xde39db[_0x15b5('0x102')]()||_0x3af079['isAttached']()?(_0x1bdc41['insertions'][_0x243871]=q(_0xde39db),_0x1bdc41['deletions'][_0x243871]=q(_0x3af079),this[_0x15b5('0x4e')](_0x1bdc41[_0x15b5('0xbd')][_0x243871],_0x3af079),this[_0x15b5('0x4e')](_0x1bdc41[_0x15b5('0x1')][_0x243871],_0xde39db),_0x1815c8[_0x15b5('0x1')][_0x243871]=this[_0x15b5('0x73')](this[_0x15b5('0x93')][_0x15b5('0x96')](_0x243871),[]),_0x1815c8[_0x15b5('0xbd')][_0x243871]=this['_generateTape'](this[_0x15b5('0x59')][_0x15b5('0x96')](_0x243871)||G(_0x243871,!0x1),[])):_0x413111[_0x15b5('0x60')](_0x243871);}for(const _0xde9678 of _0x413111){const _0x406781=_0x1815c8[_0x15b5('0x1')][_0xde9678];for(const _0x405bea of _0x406781){const _0x18a4cc=this[_0x15b5('0xb8')](_0x405bea),_0xd64717=_0x405bea[_0x15b5('0xe8')]['getAttribute'](_0x18a4cc);_0x5d1b50['delete'](_0xd64717),_0xd64717>=this[_0x15b5('0xae')]&&_0xd8a846[_0x15b5('0x80')](_0xd64717,_0x1901aa['get'](_0xd64717));}}for(const _0x3dce16 of _0x413111){const _0x14cc0a=_0x1815c8[_0x15b5('0x1')][_0x3dce16],_0x5e1529=this[_0x15b5('0x14')](_0x1815c8[_0x15b5('0xbd')][_0x3dce16]);let _0x44c29a=0x0;for(const _0x143700 of _0x14cc0a){const _0x5e078f=this['_getVidAttributeName'](_0x143700),_0x350452=_0x143700[_0x15b5('0xe8')][_0x15b5('0x1c')](_0x5e078f);if(!_0xd8a846['has'](_0x350452)&&!_0x4f0072[_0x15b5('0x99')](_0x350452)){if(_0x5d1b50[_0x15b5('0x99')](_0x350452))_0x44c29a++;else{if(_0x350452!=_0x5e1529[_0x44c29a]){const _0x1cc633=_0x1901aa[_0x15b5('0x96')](_0x350452)||_0x1901aa[_0x15b5('0x96')](_0x5e1529[_0x44c29a]);for(;_0x350452!=_0x5e1529[_0x44c29a];)_0x5d1b50['has'](_0x5e1529[_0x44c29a])||(_0x4f0072['set'](_0x5e1529[_0x44c29a],_0x1cc633),_0x1901aa['set'](_0x5e1529[_0x44c29a],_0x1cc633)),_0x44c29a++;}_0x44c29a++;}}}}for(const _0x4909c9 of _0x413111){const _0x1ab90a=_0x1815c8['insertions'][_0x4909c9];for(const _0x1c872a of _0x1ab90a){const _0xb323de=this['_getVidAttributeName'](_0x1c872a),_0x851593=_0x1c872a['item']['getAttribute'](_0xb323de);if(_0x4f0072[_0x15b5('0x99')](_0x851593)){const _0x4b63ce=_0x4f0072[_0x15b5('0x96')](_0x851593);_0x5d1b50['has'](_0x851593)||_0x5d1b50[_0x15b5('0x80')](_0x851593,{..._0x4b63ce}),_0xd8a846[_0x15b5('0x80')](_0x851593,{..._0x4b63ce});}}}for(const _0x2c4931 of _0x5d1b50[_0x15b5('0x9a')]())_0x2c4931>=this[_0x15b5('0xae')]&&_0x5d1b50[_0x15b5('0x60')](_0x2c4931);const _0x2c29e4=new Map();for(const _0x5c33e1 of _0x413111){let _0x407bdf=_0x1815c8[_0x15b5('0x1')][_0x5c33e1];for(const _0xae360d of _0x407bdf)if(_0xae360d['item']['is'](_0x15b5('0xaf'),_0x15b5('0xad'))){const _0x33102d=this[_0x15b5('0xb8')](_0xae360d),_0x1ab2ca=_0xae360d[_0x15b5('0xe8')][_0x15b5('0x1c')](_0x33102d);if(_0xd8a846[_0x15b5('0x99')](_0x1ab2ca)){const _0x111d45=_0xae360d[_0x15b5('0xe8')][_0x15b5('0xea')][_0x15b5('0xea')][_0x15b5('0x1c')]('vid_start'),_0xb737da=_0x2c29e4[_0x15b5('0x96')](_0x111d45)||new Set();_0xb737da[_0x15b5('0x70')](_0xd8a846[_0x15b5('0x96')](_0x1ab2ca)['userId']),_0x2c29e4[_0x15b5('0x80')](_0x111d45,_0xb737da);}}_0x407bdf=_0x1815c8[_0x15b5('0xbd')][_0x5c33e1];for(const _0x40ba8f of _0x407bdf)if(_0x40ba8f[_0x15b5('0xe8')]['is'](_0x15b5('0xaf'),_0x15b5('0xad'))){const _0x589971=this[_0x15b5('0xb8')](_0x40ba8f),_0x267c66=_0x40ba8f[_0x15b5('0xe8')][_0x15b5('0x1c')](_0x589971);if(_0x5d1b50['has'](_0x267c66)){const _0x78b8fb=_0x40ba8f[_0x15b5('0xe8')][_0x15b5('0xea')]['parent'][_0x15b5('0x1c')](_0x15b5('0xc8')),_0x5545a3=_0x2c29e4[_0x15b5('0x96')](_0x78b8fb)||new Set();_0x5545a3['add'](_0x5d1b50[_0x15b5('0x96')](_0x267c66)[_0x15b5('0x8c')]),_0x2c29e4[_0x15b5('0x80')](_0x78b8fb,_0x5545a3);}}for(const _0x3c5206 of _0x2c29e4[_0x15b5('0x9a')]())(_0xd8a846[_0x15b5('0x99')](_0x3c5206)||_0x5d1b50[_0x15b5('0x99')](_0x3c5206))&&_0x2c29e4[_0x15b5('0x60')](_0x3c5206);}for(const _0x4d855a of _0x413111){const _0x2a4264=_0x1815c8[_0x15b5('0x1')][_0x4d855a];let _0xfb7a80=null,_0x500c7b=null;for(const _0x37d134 of _0x2a4264){const _0xb179e5=this[_0x15b5('0xb8')](_0x37d134),_0x3ed84f=_0x37d134[_0x15b5('0xe8')][_0x15b5('0x1c')](_0xb179e5),_0x3b6952=_0x2c29e4[_0x15b5('0x96')](_0x3ed84f);_0x3b6952&&'elementStart'==_0x37d134[_0x15b5('0xf1')]&&(_0xfb7a80=Array['from'](_0x3b6952)[0x0],_0x500c7b=_0x37d134[_0x15b5('0xe8')][_0x15b5('0x1c')](_0x15b5('0x53'))),_0xfb7a80&&(_0x5d1b50[_0x15b5('0x80')](_0x3ed84f,{'userId':_0xfb7a80}),_0xd8a846['set'](_0x3ed84f,{'userId':_0xfb7a80})),_0x3ed84f==_0x500c7b&&(_0xfb7a80=null,_0x500c7b=null);}}const _0x5b9b09={},_0x4c733=new Set();for(const _0x90a74 of _0x413111){const _0x52c041=_0x1bdc41['deletions'][_0x90a74],_0x5118db=_0x1bdc41[_0x15b5('0x1')][_0x90a74];for(const {userId:_0x49eb65}of this['_touchedMarkers']['values']())null!==_0x49eb65&&_0x4c733['add'](_0x49eb65);for(const {userId:_0x337f67}of this['_touchedRoots'][_0x15b5('0x7e')]())null!==_0x337f67&&_0x4c733[_0x15b5('0x70')](_0x337f67);this[_0x15b5('0x1d')](_0x5118db,_0x1815c8[_0x15b5('0x1')][_0x90a74],_0xd8a846,_0x15b5('0xff'),_0x4c733),this['_markChanges'](_0x52c041,_0x1815c8[_0x15b5('0xbd')][_0x90a74],_0x5d1b50,_0x15b5('0x6b'),_0x4c733),_0x5b9b09[_0x90a74]={'insertions':this[_0x15b5('0xba')](_0x5118db),'deletions':this[_0x15b5('0xba')](_0x52c041),'attachChange':this['_touchedRoots'][_0x15b5('0x96')](_0x90a74)||null,'attributesBefore':_0x1f2f4d(this[_0x15b5('0x91')][_0x15b5('0x96')](_0x90a74))||{},'attributesAfter':_0x1f2f4d(this[_0x15b5('0xf8')][_0x15b5('0x96')](_0x90a74))};}return{'diffData':_0x5b9b09,'authorsIds':Array[_0x15b5('0x97')](_0x4c733)};}[_0x15b5('0x67')](_0x42f2d7){for(const [,_0x15687b]of _0x42f2d7['markers']){const _0x41d959=_0x15687b[_0x15b5('0xf3')][_0x15b5('0x41')]()[_0x15b5('0x44')](_0x20390d=>'tableCell'==_0x20390d['name']);for(const _0x56e78a of _0x41d959)0x1==_0x56e78a['childCount']&&_0x56e78a[_0x15b5('0x9c')](0x0)['is'](_0x15b5('0xaf'),_0x15b5('0x43'))&&_0x56e78a[_0x15b5('0x9c')](0x0)[_0x15b5('0xfb')](_0x15b5('0xbb'),!0x0);}}[_0x15b5('0xba')](_0x23fb4f){this['_processRootBeforeSave'](_0x23fb4f);const _0x1ed4fd=this[_0x15b5('0xb4')]['data'][_0x15b5('0x5')](_0x23fb4f,{}),_0x411197=Array[_0x15b5('0x97')](_0x1ed4fd[_0x15b5('0xe9')]())[_0x15b5('0xe1')](_0x2457e8=>this[_0x15b5('0x74')](_0x2457e8));return JSON[_0x15b5('0x55')](_0x411197);}[_0x15b5('0x74')](_0x5f0618){if(_0x5f0618['is']('$text'))return _0x5f0618[_0x15b5('0x51')];{const _0x4c8873=_0x5f0618;return{'type':Object[_0x15b5('0x9a')](B)[_0x15b5('0x100')](_0x473f26=>_0x5f0618 instanceof B[_0x473f26]),'name':_0x4c8873[_0x15b5('0x56')],'attributes':Array[_0x15b5('0x97')](_0x4c8873[_0x15b5('0x21')]()),'children':Array[_0x15b5('0x97')](_0x4c8873[_0x15b5('0xe9')]())[_0x15b5('0xe1')](_0x1e5691=>this[_0x15b5('0x74')](_0x1e5691))};}}[_0x15b5('0x1d')](_0x299072,_0x2b9169,_0x51fbb9,_0x1d149c,_0x4bedf9){let _0x4241b1=null,_0x1e8ecc=null,_0x5dd103=0x0;const _0x5a44a1=this[_0x15b5('0xb4')][_0x15b5('0xa5')];for(let _0x4e557f=0x0;_0x4e557f<_0x2b9169['length'];_0x4e557f++){const _0x4ec3e1=this['_getVidAttributeName'](_0x2b9169[_0x4e557f]),_0x1cc39f=_0x2b9169[_0x4e557f]['item'][_0x15b5('0x1c')](_0x4ec3e1),_0x4740db=_0x51fbb9['get'](_0x1cc39f),_0x3e3f21=_0x4e557f==_0x2b9169[_0x15b5('0xb9')]-0x1;(!_0x4241b1&&_0x4740db&&(_0x4241b1=_0x4740db,_0x1e8ecc=_0x2b9169[_0x4e557f]),_0x4241b1&&(!_0x4740db||_0x4740db['userId']!=_0x4241b1[_0x15b5('0x8c')]))&&(_0x4fdea4(_0x4740db,L(_0x1e8ecc,_0x299072,_0x5a44a1),L(_0x2b9169[_0x4e557f],_0x299072,_0x5a44a1)),_0x4241b1=_0x4740db||null,_0x1e8ecc=_0x4740db?_0x2b9169[_0x4e557f]:null),_0x4241b1&&_0x3e3f21&&_0x4fdea4(_0x4740db,L(_0x1e8ecc,_0x299072,_0x5a44a1),W(_0x2b9169[_0x4e557f],_0x299072,_0x5a44a1));}function _0x4fdea4(_0x5a1bf1,_0x2aedbe,_0x67a3b2){const _0x135a2f=_0x4241b1[_0x15b5('0x8c')],_0xc5be80=_0x15b5('0x81')+_0x1d149c+':'+_0x135a2f+':'+_0x5dd103++,_0x3abe97=_0x5a44a1[_0x15b5('0xd9')](_0x2aedbe,_0x67a3b2);_0x299072[_0x15b5('0x6a')][_0x15b5('0x80')](_0xc5be80,_0x3abe97),null!==_0x135a2f&&_0x4bedf9[_0x15b5('0x70')](_0x135a2f);}}[_0x15b5('0xb8')](_0x3ea3aa){switch(_0x3ea3aa[_0x15b5('0xf1')]){case _0x15b5('0xc1'):return _0x15b5('0xc8');case _0x15b5('0xc3'):return _0x15b5('0x53');default:return _0x15b5('0x1f');}}[_0x15b5('0xd3')](_0x443bf3,_0x5af4b7){_0x443bf3[_0x15b5('0x7b')]=null;for(const _0x32554b in _0x443bf3){const _0x84b3d5=_0x443bf3[_0x32554b];if(_0x84b3d5 instanceof _0x4d7909){const _0x438b51=_0x5af4b7['get'](_0x84b3d5[_0x15b5('0xa4')][_0x15b5('0x1e')]);_0x443bf3[_0x32554b]=this[_0x15b5('0xd7')](_0x84b3d5,_0x438b51);}if(_0x84b3d5 instanceof _0x124c67){const _0x2c321f=_0x5af4b7[_0x15b5('0x96')](_0x84b3d5[_0x15b5('0xa4')][_0x15b5('0x1e')]);_0x443bf3[_0x32554b]=this['_fixRange'](_0x84b3d5,_0x2c321f);}_0x15b5('0xa4')===_0x32554b&&(_0x443bf3[_0x15b5('0xa4')]=_0x5af4b7[_0x15b5('0x96')](_0x443bf3[_0x15b5('0xa4')][_0x15b5('0x1e')]));}}[_0x15b5('0xb2')](_0x808232,_0x58fba7){return this[_0x15b5('0xb4')][_0x15b5('0xa5')][_0x15b5('0xd9')](this[_0x15b5('0xd7')](_0x808232[_0x15b5('0xf3')],_0x58fba7),this['_fixPosition'](_0x808232[_0x15b5('0xef')],_0x58fba7));}[_0x15b5('0xd7')](_0x526f57,_0x1e66d1){return this[_0x15b5('0xb4')][_0x15b5('0xa5')][_0x15b5('0x103')](_0x1e66d1,_0x526f57['path'],_0x526f57[_0x15b5('0x31')]);}[_0x15b5('0xb3')](_0x32d082){const _0x349371=this[_0x15b5('0x93')][_0x15b5('0x96')](_0x32d082[_0x15b5('0x9f')]['root']['rootName']),_0x384aed=this[_0x15b5('0xd7')](_0x32d082[_0x15b5('0x9f')],_0x349371),_0x5d9cb5=null===_0x32d082[_0x15b5('0xe3')]?null:_0x32d082[_0x15b5('0xe3')]||this[_0x15b5('0xb4')]['plugins'][_0x15b5('0x96')]('Users')['me']['id'],_0x2313fc=_0x384aed['parent'],_0x59f69f=this[_0x15b5('0x13')],_0x294852=[];for(const _0x43c0e8 of _0x32d082[_0x15b5('0x9d')])if(_0x43c0e8['is'](_0x15b5('0xaf')))_0x294852['push'](this[_0x15b5('0xc2')](_0x43c0e8));else for(let _0x4110f4=0x0;_0x4110f4<_0x43c0e8[_0x15b5('0x95')];_0x4110f4++)_0x294852['push'](new _0x245fee('$text',{'vid':this['_revisionId']++}));const _0x4a5986=this[_0x15b5('0x13')];for(let _0x2e92fa=_0x59f69f;_0x2e92fa<_0x4a5986;_0x2e92fa++)this[_0x15b5('0x6f')]['set'](_0x2e92fa,{'userId':_0x5d9cb5});_0x2313fc[_0x15b5('0x62')](_0x384aed[_0x15b5('0xc7')],_0x294852);}[_0x15b5('0x1b')](_0x2b487f){(_0x2b487f=this[_0x15b5('0x83')](_0x2b487f,this[_0x15b5('0x93')]))[_0x15b5('0x28')]();const _0x303d76=null===_0x2b487f[_0x15b5('0xe3')]?null:_0x2b487f[_0x15b5('0xe3')]||this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x37d8ff=_0x2b487f[_0x15b5('0xcf')](),_0x5cd85c=_0x37d8ff['parent'],_0x37baf1=_0x37d8ff[_0x15b5('0xc7')];!function _0x142751(_0x5ad713,_0x17f179,_0x376917,_0x41aa45){for(let _0x450cf6=_0x376917;_0x450cf6<_0x41aa45;_0x450cf6++){const _0x236736=_0x17f179['getChild'](_0x450cf6);_0x236736['is'](_0x15b5('0xaf'),'$text')?_0x5ad713['set'](_0x236736[_0x15b5('0x1c')](_0x15b5('0x1f')),{'userId':_0x303d76}):(_0x5ad713['set'](_0x236736[_0x15b5('0x1c')](_0x15b5('0xc8')),{'userId':_0x303d76}),_0x142751(_0x5ad713,_0x236736,0x0,_0x236736[_0x15b5('0x7a')]),_0x5ad713[_0x15b5('0x80')](_0x236736[_0x15b5('0x1c')]('vid_end'),{'userId':_0x303d76}));}}(this[_0x15b5('0x6f')],_0x5cd85c,_0x37baf1,_0x37baf1+_0x2b487f[_0x15b5('0x37')]);}[_0x15b5('0x2b')](_0x3fc0e6){const _0x360beb=null===(_0x3fc0e6=this[_0x15b5('0x83')](_0x3fc0e6,this[_0x15b5('0x93')]))[_0x15b5('0xe3')]?null:_0x3fc0e6[_0x15b5('0xe3')]||this['editor'][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x2a1153=_0x3fc0e6[_0x15b5('0x6')][_0x15b5('0xea')],_0x40b172=_0x3fc0e6[_0x15b5('0xd8')][_0x15b5('0xea')],_0x4eedd2=_0x2a1153[_0x15b5('0x1c')](_0x15b5('0x53')),_0x3569f9=_0x40b172['getAttribute'](_0x15b5('0xc8'));_0x2a1153[_0x15b5('0xfb')](_0x15b5('0x53'),_0x40b172[_0x15b5('0x1c')]('vid_end')),_0x40b172[_0x15b5('0xfb')](_0x15b5('0x53'),_0x4eedd2),this['_touched'][_0x15b5('0x80')](_0x3569f9,{'userId':_0x360beb}),this[_0x15b5('0x6f')][_0x15b5('0x80')](_0x4eedd2,{'userId':_0x360beb}),_0x3fc0e6[_0x15b5('0x28')]();}['_handleSplitOperation'](_0x36092d){const _0x49af94=null===(_0x36092d=this[_0x15b5('0x83')](_0x36092d,this['_idsRoots']))['_authorId']?null:_0x36092d['_authorId']||this['editor']['plugins'][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x544f98=_0x36092d[_0x15b5('0x2a')],_0x552075=_0x36092d[_0x15b5('0xac')][_0x15b5('0xea')];_0x36092d[_0x15b5('0x28')]();const _0xb23e81=_0x552075[_0x15b5('0x1c')]('vid_end'),_0x33099b=_0x36092d[_0x15b5('0xec')]['nodeAfter'];if(_0x544f98){const _0x160666=_0x33099b[_0x15b5('0x1c')](_0x15b5('0x53')),_0x1a6323=_0x552075[_0x15b5('0x1c')](_0x15b5('0x53'));_0x552075[_0x15b5('0xfb')](_0x15b5('0x53'),_0x160666),_0x33099b[_0x15b5('0xfb')](_0x15b5('0x53'),_0x1a6323),this['_touched'][_0x15b5('0x80')](_0x552075[_0x15b5('0x1c')](_0x15b5('0x53')),{'userId':_0x49af94}),this[_0x15b5('0x6f')][_0x15b5('0x80')](_0x33099b['getAttribute'](_0x15b5('0xc8')),{'userId':_0x49af94});}else{const _0x317edb=this[_0x15b5('0x13')]++,_0x23649a=this[_0x15b5('0x13')]++;_0x552075['_setAttribute'](_0x15b5('0x53'),_0x317edb),_0x33099b['_setAttribute'](_0x15b5('0xc8'),_0x23649a),_0x33099b[_0x15b5('0xfb')](_0x15b5('0x53'),_0xb23e81),this[_0x15b5('0x6f')][_0x15b5('0x80')](_0x317edb,{'userId':_0x49af94}),this[_0x15b5('0x6f')][_0x15b5('0x80')](_0x23649a,{'userId':_0x49af94});}}[_0x15b5('0xcd')](_0xfdc581){if(!_0xfdc581[_0x15b5('0x11')])return;const _0x6bb08f=(_0xfdc581=this[_0x15b5('0x83')](_0xfdc581,this[_0x15b5('0xc')]))[_0x15b5('0x3f')]?_0xfdc581[_0x15b5('0x3f')][_0x15b5('0xa4')]:null,_0x2da6bf=_0xfdc581[_0x15b5('0xbc')]?_0xfdc581[_0x15b5('0xbc')][_0x15b5('0xa4')]:null;_0x6bb08f&&this[_0x15b5('0xc5')][_0x15b5('0x60')](_0xfdc581[_0x15b5('0x56')]),_0x2da6bf&&this[_0x15b5('0xc5')]['set'](_0xfdc581['name'],_0xfdc581['newRange']['clone']());const _0x3db0a3=null===_0xfdc581[_0x15b5('0xe3')]?null:_0xfdc581[_0x15b5('0xe3')]||this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x53b686=_0xfdc581[_0x15b5('0x56')];if(!this['_touchedMarkers']['has'](_0x53b686))return void this['_touchedMarkers']['set'](_0x53b686,{'range':_0xfdc581['oldRange'],'userId':_0x3db0a3});const _0x31433d=this[_0x15b5('0x86')][_0x15b5('0x96')](_0x53b686),_0x531a9f=_0x31433d[_0x15b5('0x98')],_0x1a979e=_0xfdc581[_0x15b5('0xbc')];null==_0x531a9f&&null==_0x1a979e||_0x531a9f&&_0x1a979e&&_0x531a9f['isEqual'](_0x1a979e)?this[_0x15b5('0x86')][_0x15b5('0x60')](_0xfdc581[_0x15b5('0x56')]):_0x31433d[_0x15b5('0x8c')]=_0x3db0a3;}['_handleRootOperation'](_0xe9a669,_0x5e54dd){this[_0x15b5('0xc')]['has'](_0xe9a669['rootName'])?this['_diffRoots']['get'](_0xe9a669[_0x15b5('0x1e')])[_0x15b5('0x5c')]=_0xe9a669[_0x15b5('0x4d')]:(this[_0x15b5('0xc')][_0x15b5('0x80')](_0xe9a669['rootName'],G(_0xe9a669['rootName'],!0x0)),this[_0x15b5('0xf8')][_0x15b5('0x80')](_0xe9a669['rootName'],{}),_0x5e54dd&&this['_idsRoots'][_0x15b5('0x80')](_0xe9a669['rootName'],G(_0xe9a669[_0x15b5('0x1e')],!0x0)));const _0x4aec60=null===_0xe9a669['_authorId']?null:_0xe9a669[_0x15b5('0xe3')]||this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x27dff7=this[_0x15b5('0xd1')]['get'](_0xe9a669['rootName']);_0x27dff7&&_0x27dff7[_0x15b5('0x8c')]===_0x4aec60?this['_touchedRoots'][_0x15b5('0x60')](_0xe9a669[_0x15b5('0x1e')]):this[_0x15b5('0xd1')]['set'](_0xe9a669['rootName'],{'userId':_0x4aec60,'isAttached':_0xe9a669['isAdd']});}[_0x15b5('0x72')](_0x3e6ab0){const _0x1f7628=this[_0x15b5('0xf8')][_0x15b5('0x96')](_0x3e6ab0[_0x15b5('0xa4')][_0x15b5('0x1e')]);null===_0x3e6ab0['newValue']?delete _0x1f7628[_0x3e6ab0[_0x15b5('0x30')]]:_0x1f7628[_0x3e6ab0['key']]=_0x3e6ab0[_0x15b5('0x8a')];}}function q(_0x52a893){const _0x196fb1=G(_0x52a893[_0x15b5('0x1e')],_0x52a893['isAttached']());for(const _0x1b948b of _0x52a893[_0x15b5('0xe9')]()){const _0x79394e=_0x1b948b['_clone'](!0x0);_0x196fb1['_appendChild'](_0x79394e);}return _0x196fb1;}function G(_0x1a6edd,_0xded91=!0x0){const _0x2739f9=new _0x254a89();return _0x2739f9[_0x15b5('0x1e')]=_0x1a6edd,_0x2739f9[_0x15b5('0x5c')]=_0xded91,_0x2739f9[_0x15b5('0x102')]=()=>_0x2739f9[_0x15b5('0x5c')],_0x2739f9;}function L(_0x35bc7b,_0x34da4b,_0x4c7c2d){const _0x2af587='elementEnd'==_0x35bc7b[_0x15b5('0xf1')]?_0x4c7c2d['createPositionAt'](_0x35bc7b['item'],_0x15b5('0xef')):_0x4c7c2d['createPositionBefore'](_0x35bc7b[_0x15b5('0xe8')]);return _0x4c7c2d['createPositionFromPath'](_0x34da4b,_0x2af587[_0x15b5('0xb6')],_0x2af587['stickiness']);}function W(_0x219860,_0x194e46,_0x273a57){const _0x2c52ad=_0x15b5('0xc1')==_0x219860['type']?_0x273a57[_0x15b5('0xda')](_0x219860[_0x15b5('0xe8')],0x0):_0x273a57[_0x15b5('0x64')](_0x219860['item']);return _0x273a57['createPositionFromPath'](_0x194e46,_0x2c52ad[_0x15b5('0xb6')],_0x2c52ad['stickiness']);}
|
|
23
|
+
const _0x6bbe=['paragraph','hasContent','roots','model','addRoot','PendingActions','offsetSize','initialData','afterInit','set','elementStart','nodeAfter','_getBaseVids','adapter','finally','baseVersion','_baseRootsAttributes','getData','_bufferUpdate','attributesBefore','resolve','_revisionDataBuilder','sourcePosition','clone','isEqual','_applyOperations','_fixOperation','_handleInsertOperation','_getFromVersion','getOperation','documentFragment','marked','getRevisions','newValue','delete','markerToData','_authorId','element','_copyMarkers','requires','_revisionId','_getPreviousFrom','deletions','_fixPosition','$graveyard','_handleRootOperation','locale','keepParagraph','dataToMarker','setSource','define','trim','deletion','_handleRootAttributeOperation','_calculateMetaData','getChild','_savedMetaData','merge','_createCurrentRevision','stickiness','$text','getRevisionDocumentData','vid_start','parent','isAttached','_clone','_isInit','parse','RealTimeCollaborationClient','_execute','editing','type','keys','previousPosition','getRoot','_handleMoveOperation','offset','isAdd','data-revision-','_startingRevisionId','add','_operations','collaboration.channelId','getNodeByPath','currentRevision','splitPosition','attributes','values','_reset','targetPosition','slice','getRootNames','Initial\x20revision','affectsData','createPositionFromPath','revision','creator','addRevisionData','rootName','startsWith','_addPendingAction','removeRootAttribute','path','getLatestVersion','stringify','key','nodes','PENDING_ACTION_REVISION_HISTORY','_processRootBeforeSave','_baseRoots','item','_loadRevisionData','getMovedRangeStart','_appendChild','_isAttached','diffData','createRange','_makeModelFromViewString','getAncestors','markers','tableCell','shift','getAttribute','history','for','_lastFrom','reinsert','_source','authors','addRevision','_makeRevision','_prepareViewToSave','authorsIds','elementEnd','getChildren','_handleMarkerOperation','Users','_isPendingUpdate','_getState','_pendingAction','_markers','getCurrentRevisionId','name','isEnabled','_getViewJson','processor','getRevision','string','_setConversion','detachRoot','_markChanges','createPositionAt','init','split','graveyardPosition','attributesAfter','size','_getVidAttributeName','find','_insertChild','reverse','update','includes','_handleMergeOperation','source','insertions','_handleOperation','some','children','remove','clear','toView','get','newRange','creatorId','_startingVersion','push','root','reInit','version','_removeMetaData','sendBufferedUpdates','childCount','toVersion','config','oldRange','start','_touched','ready','insertion','buildRevisionData','createPositionAfter','getWalker','data','filter','loadState','attachChange','createRevision','_cloneOperation','setRevisionData','_removePendingAction','createdAt','_loadState','getIndex','NEGATIVE_INFINITY','createRangeIn','updateRevisions','_handleSplitOperation','useFillerType','revision:','vid_end','vid','plugins','then','_setAttribute','sort','howMany','has','from','map','_touchedMarkers','getUser','text','view','_initialRevisionId','isReady','_diffRoots','_transformMarkers','_bufferedUpdates','editor','dataDowncast','_loadedStateData','RevisionsRepository','_createFromRanges','_generateTape','_continueCurrentRevision','_lastTo','end','_saveMetaData','_touchedRoots','_fixRange','default','insert','_findInsertionIndex','repository','_update','rootsAttributes','revisionHistory.resumeUnsavedRevision','_idsRoots','createPositionBefore','marker','_makeIdsRoot','position','_diffRootsAttributes','length','getRange','_baseIdsRoots','bind','fromVersion','userId','document','_removeRevisionMarkers','changeRootAttribute'];(function(_0x97f3e9,_0x6bbed6){const _0x5e1555=function(_0x556b8f){while(--_0x556b8f){_0x97f3e9['push'](_0x97f3e9['shift']());}};_0x5e1555(++_0x6bbed6);}(_0x6bbe,0x8b));const _0x5e15=function(_0x97f3e9,_0x6bbed6){_0x97f3e9=_0x97f3e9-0x0;let _0x5e1555=_0x6bbe[_0x97f3e9];return _0x5e1555;};import{Users as _0xbc240e}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x5868c7,PendingActions as _0x3fa143}from'ckeditor5/src/core';import{logWarning as _0x2b693c,uid as _0x40f2ca}from'ckeditor5/src/utils';import{Position as _0x27cce9,Range as _0x1267ff,Element as _0x41cbf8,DocumentFragment as _0x143316,ViewText as _0x540e8f,ViewElement as _0x6f9192,ViewContainerElement as _0x21bfff,ViewAttributeElement as _0xdff235,ViewEmptyElement as _0x249be3,ViewRawElement as _0x33bcf6,ViewUIElement as _0x164ab4,ViewDocumentFragment as _0x5c797f}from'ckeditor5/src/engine';import _0x106220 from'./revisionsrepository';import{getTranslation as _0x58a6dd}from'./utils/common-translations';import{cloneDeep as _0x6bddad,isEqual as _0x1dd850}from'lodash-es';const B={'c':_0x21bfff,'a':_0xdff235,'e':_0x249be3,'r':_0x33bcf6,'u':_0x164ab4};export default class l extends _0x5868c7{static get['pluginName'](){return'RevisionTracker';}static get[_0x5e15('0xa3')](){return[_0xbc240e,_0x106220,_0x3fa143];}constructor(_0x74c174){super(_0x74c174),this['adapter']=null,this[_0x5e15('0xd0')]=null,this[_0x5e15('0x91')]=new H(this[_0x5e15('0x5a')]),this[_0x5e15('0x55')]=this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0x21')]('collaboration.channelId')||'initial',this[_0x5e15('0x59')]=new Map(),this[_0x5e15('0x5c')]=null;const _0x504472=_0x40f2ca();this[_0x5e15('0xfb')]={'history':this['editor'][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0xf7')],'getLatestVersion':()=>Promise[_0x5e15('0x90')](this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')]['version']),'getCurrentRevisionId':()=>_0x504472},this[_0x5e15('0x85')](_0x5e15('0x56'),!0x1),this[_0x5e15('0x85')](_0x5e15('0x4'),!0x0),this[_0x5e15('0x85')](_0x5e15('0x105'),!0x1),this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0xae')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x5e15('0x5a')]['conversion']['for']('upcast')[_0x5e15('0xac')]({'view':_0x5e15('0xdb')});}['init'](){this['repository']=this['editor'][_0x5e15('0x49')]['get'](_0x5e15('0x5d')),this[_0x5e15('0x9')](),this[_0x5e15('0x5a')][_0x5e15('0x36')]['on'](_0x5e15('0x31'),()=>{const _0xc731e3=this[_0x5e15('0x69')][_0x5e15('0x7')](0x0),_0x15bfab=_0xc731e3&&null===_0xc731e3[_0x5e15('0xdc')]?_0xc731e3:null;if(this['_continueCurrentRevision']=!!_0x15bfab&&this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0x21')](_0x5e15('0x6c')),this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x4e')](_0x5e15('0xc0'))){const _0x280631=this['_source'][_0x5e15('0x2')](),_0x4febbf=this[_0x5e15('0x69')][_0x5e15('0x7')](_0x280631);if(_0x4febbf)this['_startingVersion']=_0x4febbf[_0x5e15('0x77')],this[_0x5e15('0x60')]=!0x1;else{const _0x21f7ef=this[_0x5e15('0xfb')]['history'][_0x5e15('0xcd')][_0x5e15('0x13')](_0x26c1f6=>!_0x26c1f6[_0x5e15('0xbe')]),_0x4407ac=_0x21f7ef?_0x21f7ef['baseVersion']:this['_source'][_0x5e15('0xf7')][_0x5e15('0x28')];_0xc731e3?(_0xc731e3[_0x5e15('0x2c')]<_0x4407ac&&_0xc731e3[_0x5e15('0x6a')]({'toVersion':_0x4407ac}),this[_0x5e15('0x60')]?(this[_0x5e15('0xfb')][_0x5e15('0x2')]=()=>_0x15bfab['id'],this[_0x5e15('0x24')]=_0x15bfab[_0x5e15('0x77')]):(this['_startingVersion']=_0xc731e3['toVersion'],this[_0x5e15('0x60')]=!0x1)):(this[_0x5e15('0x24')]=_0x4407ac,this[_0x5e15('0x60')]=!0x1);}}else _0x15bfab&&(this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0xf7')][_0x5e15('0x28')]=Math['max'](_0x15bfab[_0x5e15('0x2c')],this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0xf7')][_0x5e15('0x28')]),_0x15bfab[_0x5e15('0x77')]===_0x15bfab[_0x5e15('0x2c')]?(0x0!==_0x15bfab[_0x5e15('0x77')]&&(this['_source'][_0x5e15('0x2')]=()=>_0x15bfab['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source'][_0x5e15('0x2')]=()=>_0x15bfab['id'],this[_0x5e15('0x24')]=_0x15bfab[_0x5e15('0x77')])),this[_0x5e15('0x60')]||(this['_startingVersion']=this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0x28')]);this[_0x5e15('0x91')]['init'](this[_0x5e15('0xfb')][_0x5e15('0xf7')]),this['_createInitialRevision'](this[_0x5e15('0x24')]),this['_createCurrentRevision'](this[_0x5e15('0x24')]),this[_0x5e15('0x89')]&&this[_0x5e15('0x2a')]();}),this[_0x5e15('0x76')](_0x5e15('0x56'))['to'](this,_0x5e15('0x105'),_0x245404=>!_0x245404);}async[_0x5e15('0x84')](){if(this[_0x5e15('0x69')][_0x5e15('0x73')]>0x0){const _0x3016a4=this['repository'][_0x5e15('0x7')](0x0),_0x225b4d=await this[_0x5e15('0xb9')](_0x3016a4),_0x2c6339=await this['getRevisionRootsAttributes'](_0x3016a4);this['_replaceEditorDataWithRevisionData'](_0x225b4d,_0x2c6339);}}[_0x5e15('0xad')](_0x37415a){this[_0x5e15('0xfb')]=_0x37415a;}async[_0x5e15('0x16')](){const _0x2e3b36=await this['_source'][_0x5e15('0xe3')]();if(_0x2e3b36>this[_0x5e15('0xd0')]['toVersion']){await this[_0x5e15('0x3f')]();const _0x197618=this[_0x5e15('0x33')]({'revision':this[_0x5e15('0xd0')],'to':_0x2e3b36});_0x197618[_0x5e15('0xfc')]=_0x197618[_0x5e15('0x100')][_0x5e15('0x50')](_0x4a3566=>this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x104'))[_0x5e15('0x52')](_0x4a3566)),this[_0x5e15('0xd0')]['_update'](_0x197618);}}async['_loadState'](){this[_0x5e15('0x60')]&&!this[_0x5e15('0x5c')]&&(await this[_0x5e15('0xeb')](this[_0x5e15('0xd0')]),this[_0x5e15('0x91')][_0x5e15('0x38')](this[_0x5e15('0xd0')]),this[_0x5e15('0x5c')]={'fromVersion':this['currentRevision'][_0x5e15('0x77')],'authors':this[_0x5e15('0xd0')][_0x5e15('0xfc')][_0x5e15('0xd6')]()});}async['saveRevision'](_0x7ac5d8={},_0x5b07af=null){const _0x40d690=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5b07af>this[_0x5e15('0xd0')][_0x5e15('0x2c')]&&(_0x5b07af=null),null===_0x5b07af&&(_0x5b07af=await this['_source']['getLatestVersion']());const _0x3272ec=this[_0x5e15('0x98')](_0x5b07af),_0xcf1132=this[_0x5e15('0x33')]({'from':_0x3272ec,'to':_0x5b07af});if(this[_0x5e15('0xd0')][_0x5e15('0x2c')]<_0x5b07af){const _0x155b55=this[_0x5e15('0x33')]({'revision':this['currentRevision'],'from':_0x5b07af,'to':_0x5b07af});_0x155b55[_0x5e15('0xfc')]=[],_0x155b55[_0x5e15('0x100')]=[],_0x155b55['id']=this['currentRevision']['id'],this['currentRevision'][_0x5e15('0x6a')](_0x155b55,!0x0),delete _0x155b55[_0x5e15('0xfc')],_0x40d690[_0x5e15('0x25')](_0x155b55);}_0x7ac5d8['creatorId']=this['editor'][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x7ac5d8['name']=_0x7ac5d8[_0x5e15('0x3')]||null,_0x7ac5d8['id']=_0x7ac5d8['id']||_0x40f2ca(),_0x7ac5d8={..._0x7ac5d8,..._0xcf1132};const _0x535c07=this[_0x5e15('0xdd')](_0x7ac5d8);_0x40d690[_0x5e15('0x25')](_0x7ac5d8);const _0x366775=this['repository'][_0x5e15('0x40')](_0x535c07);if(0x0!==_0x366775){const _0x43554f=this[_0x5e15('0x69')][_0x5e15('0x7')](_0x366775-0x1);if(_0x43554f[_0x5e15('0x77')]!==_0x5b07af){const _0x5ba3c2=this['_revisionDataBuilder'][_0x5e15('0x8d')](_0x5b07af,_0x43554f['toVersion']),_0x4f6979={'id':_0x43554f['id'],'diffData':_0x5ba3c2[_0x5e15('0xef')],'authorsIds':_0x5ba3c2[_0x5e15('0x100')],'authors':_0x5ba3c2[_0x5e15('0x100')][_0x5e15('0x50')](_0x2e81f7=>this[_0x5e15('0x5a')]['plugins'][_0x5e15('0x21')](_0x5e15('0x104'))[_0x5e15('0x52')](_0x2e81f7)),'fromVersion':_0x5b07af};_0x43554f===this['currentRevision']&&(_0x4f6979[_0x5e15('0x3e')]=new Date(_0x7ac5d8[_0x5e15('0x3e')]['getTime']()+0xa)),_0x43554f['_update'](_0x4f6979,!0x0),delete _0x4f6979[_0x5e15('0xfc')],_0x40d690[_0x5e15('0x25')](_0x4f6979);}}if(this[_0x5e15('0x89')]){for(const _0x330581 of _0x40d690)this[_0x5e15('0x8e')](_0x330581['id'],_0x330581,!0x0);this['sendBufferedUpdates']();}return _0x535c07;}['addRevisionData'](_0x2fac9f){const _0xa925d4=this[_0x5e15('0x69')][_0x5e15('0x3a')](_0x2fac9f);return this[_0x5e15('0x89')]&&_0xa925d4['on'](_0x5e15('0x6a'),(_0x39ec68,_0x58c63e,_0x175bf9)=>{_0x175bf9||(this['_bufferUpdate'](_0x58c63e['id'],_0x58c63e,!0x0),this[_0x5e15('0x2a')]());}),this[_0x5e15('0x69')][_0x5e15('0xfd')](_0xa925d4,this[_0x5e15('0x68')](_0xa925d4)),_0xa925d4;}async[_0x5e15('0xb9')](_0x248321){await this[_0x5e15('0xeb')](_0x248321);const _0x5a327b={};for(const _0x26d23d in _0x248321[_0x5e15('0xef')]){if(_0x248321['diffData'][_0x26d23d][_0x5e15('0x39')]&&!_0x248321[_0x5e15('0xef')][_0x26d23d][_0x5e15('0x39')][_0x5e15('0xbc')])continue;const _0x4bc2c3=this[_0x5e15('0x7a')](JSON[_0x5e15('0xbf')](_0x248321['diffData'][_0x26d23d][_0x5e15('0x1a')])),_0x21c122=this[_0x5e15('0x5a')][_0x5e15('0xc2')][_0x5e15('0x54')][_0x5e15('0x79')],_0x17b6a7=new _0x5c797f(_0x21c122,_0x4bc2c3[_0x5e15('0x50')](_0x5500f2=>J(_0x5500f2,this[_0x5e15('0x5a')])));this['editor'][_0x5e15('0x36')][_0x5e15('0x6')][_0x5e15('0x45')](_0x5e15('0x9b')),_0x5a327b[_0x26d23d]=this[_0x5e15('0x5a')][_0x5e15('0x36')][_0x5e15('0x6')]['toData'](_0x17b6a7),this[_0x5e15('0x5a')][_0x5e15('0x36')][_0x5e15('0x6')][_0x5e15('0x45')](_0x5e15('0x66'));}return _0x5a327b;}async['getRevisionRootsAttributes'](_0x991363){await this[_0x5e15('0xeb')](_0x991363);const _0x3ed440={};for(const _0x162be3 in _0x991363[_0x5e15('0xef')])_0x991363['diffData'][_0x162be3][_0x5e15('0x39')]&&!_0x991363[_0x5e15('0xef')][_0x162be3][_0x5e15('0x39')][_0x5e15('0xbc')]||(_0x3ed440[_0x162be3]=_0x991363[_0x5e15('0xef')][_0x162be3][_0x5e15('0x10')]||{});return _0x3ed440;}[_0x5e15('0x2a')](){if(0x0===this[_0x5e15('0x59')]['size'])return;if(this['_isPendingUpdate'])return;let _0x509724=Array[_0x5e15('0x4f')](this[_0x5e15('0x59')][_0x5e15('0xd3')]());this[_0x5e15('0x59')][_0x5e15('0x1f')]();for(let _0x4c02fc=0x0;_0x4c02fc<_0x509724[_0x5e15('0x73')];_0x4c02fc++){const _0x1830a0=_0x509724[_0x4c02fc];let _0x225636=!0x1;for(const _0x284bde of Object['keys'](_0x1830a0))void 0x0===_0x1830a0[_0x284bde]?delete _0x1830a0[_0x284bde]:'id'!==_0x284bde&&(_0x225636=!0x0);_0x225636||(_0x509724[_0x4c02fc]=null);}if(_0x509724=_0x509724['filter'](_0x5d8c16=>null!==_0x5d8c16),!_0x509724[_0x5e15('0x73')])return;for(let _0x311063=0x0;_0x311063<_0x509724[_0x5e15('0x73')];_0x311063++){const _0x2a4c32=_0x509724[_0x311063];void 0x0!==_0x2a4c32[_0x5e15('0x77')]&&void 0x0===_0x2a4c32[_0x5e15('0x2c')]&&(_0x2a4c32[_0x5e15('0x2c')]=this[_0x5e15('0x69')][_0x5e15('0x7')](_0x2a4c32['id'])['toVersion']),void 0x0!==_0x2a4c32[_0x5e15('0x2c')]&&void 0x0===_0x2a4c32[_0x5e15('0x77')]&&(_0x2a4c32['fromVersion']=this[_0x5e15('0x69')]['getRevision'](_0x2a4c32['id'])[_0x5e15('0x77')]);}const _0x178d51=this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0x21')](_0x5e15('0xce'));this['_isPendingUpdate']=!0x0,this[_0x5e15('0xe0')](),this[_0x5e15('0x89')][_0x5e15('0x43')](_0x509724,_0x178d51)[_0x5e15('0x8a')](()=>{this[_0x5e15('0x105')]=!0x1;})[_0x5e15('0x4a')](_0x3b9b66=>{if(_0x3b9b66)for(const _0x5bd327 of _0x3b9b66)this[_0x5e15('0x3c')]({'id':_0x5bd327['id'],'createdAt':_0x5bd327[_0x5e15('0x3e')]});this[_0x5e15('0x3d')](),this[_0x5e15('0x2a')]();});}['_replaceEditorDataWithRevisionData'](_0x36c0d2,_0x29ad0f){let _0x11de63=this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0x21')](_0x5e15('0x83')),_0x154008=this[_0x5e15('0x5a')]['config'][_0x5e15('0x21')](_0x5e15('0x6b'));if(void 0x0===_0x11de63){_0x11de63={};for(const _0x98dd7c of this[_0x5e15('0x5a')]['model'][_0x5e15('0x79')]['getRootNames']())_0x11de63[_0x98dd7c]='';}if(_0x5e15('0x8')==typeof _0x11de63&&(_0x11de63={'main':_0x11de63}),void 0x0===_0x154008){_0x154008={};for(const _0x49fe0d of this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0xd7')]())_0x154008[_0x49fe0d]={};}let _0x515ac8=!0x1;const _0x203d49=Object[_0x5e15('0xc4')](_0x11de63),_0x230435=Object[_0x5e15('0xc4')](_0x36c0d2);for(const _0x48fdfc of _0x203d49){if(_0x11de63[_0x48fdfc]!==_0x36c0d2[_0x48fdfc]&&''!==_0x11de63[_0x48fdfc][_0x5e15('0xaf')]()){_0x515ac8=!0x0;break;}if(!_0x1dd850(_0x154008[_0x48fdfc],_0x29ad0f[_0x48fdfc])&&Object[_0x5e15('0xc4')](_0x154008[_0x48fdfc])[_0x5e15('0x73')]>0x0){_0x515ac8=!0x0;break;}}_0x515ac8||(_0x515ac8=_0x230435[_0x5e15('0x1c')](_0x427ba2=>!this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')]['getRoot'](_0x427ba2))),_0x515ac8&&_0x2b693c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x11de63,'editorRootsAttributes':_0x154008,'revisionData':_0x36c0d2,'revisionRootsAttributes':_0x29ad0f}),this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0x85')](_0x5e15('0x83'),_0x36c0d2),this[_0x5e15('0x5a')]['config'][_0x5e15('0x85')](_0x5e15('0x6b'),_0x29ad0f);}['_addPendingAction'](){if(!this[_0x5e15('0x0')]){const _0xf285b=this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x81'));this[_0x5e15('0x0')]=_0xf285b[_0x5e15('0xcc')](_0x58a6dd(this[_0x5e15('0x5a')][_0x5e15('0xaa')],_0x5e15('0xe7')));}}[_0x5e15('0x3d')](){this[_0x5e15('0x0')]&&(this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x81'))[_0x5e15('0x1e')](this['_pendingAction']),this[_0x5e15('0x0')]=null);}[_0x5e15('0x68')](_0x3f0961){const _0x731c03=this[_0x5e15('0x69')][_0x5e15('0x9c')]();_0x731c03[_0x5e15('0x15')]();let _0x26fe02=0x0;for(;_0x26fe02<_0x731c03[_0x5e15('0x73')];){const _0x4804b6=_0x731c03[_0x26fe02];if(_0x4804b6===this[_0x5e15('0xd0')]){_0x26fe02++;continue;}if(_0x4804b6['id']===this[_0x5e15('0x55')])break;const _0x1fcbd3=_0x3f0961[_0x5e15('0x2c')]-_0x4804b6[_0x5e15('0x2c')]||_0x3f0961['fromVersion']-_0x4804b6[_0x5e15('0x77')];if(_0x1fcbd3>0x0)break;if(_0x1fcbd3<0x0)_0x26fe02++;else{if(!_0x3f0961[_0x5e15('0xdc')]&&_0x4804b6['creator'])break;if(_0x4804b6[_0x5e15('0xdc')]||!_0x3f0961[_0x5e15('0xdc')]){if(_0x3f0961[_0x5e15('0x3e')]>_0x4804b6[_0x5e15('0x3e')])break;_0x26fe02++;}else _0x26fe02++;}}return _0x26fe02;}['setRevisionData'](_0x32d8f5){const _0x5242c7=this[_0x5e15('0x69')][_0x5e15('0x7')](_0x32d8f5['id']);if(_0x32d8f5[_0x5e15('0x3e')]&&(_0x32d8f5[_0x5e15('0x3e')]=new Date(_0x32d8f5[_0x5e15('0x3e')])),_0x32d8f5[_0x5e15('0x100')]){const _0x416d4d=this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')]('Users');_0x32d8f5[_0x5e15('0xfc')]=_0x32d8f5[_0x5e15('0x100')][_0x5e15('0x50')](_0x5bfc95=>_0x416d4d[_0x5e15('0x52')](_0x5bfc95));}_0x5242c7[_0x5e15('0x6a')](_0x32d8f5,!0x0);}[_0x5e15('0x33')]({revision:_0x35a906=null,from:_0x202a34=null,to:_0x580301=null}){_0x202a34=null!==_0x202a34?_0x202a34:_0x35a906[_0x5e15('0x77')],_0x580301=null!==_0x580301?_0x580301:_0x35a906[_0x5e15('0x2c')];const _0x5847be=this['_revisionDataBuilder'][_0x5e15('0x8d')](_0x202a34,_0x580301),_0x205789={'diffData':_0x5847be[_0x5e15('0xef')],'authorsIds':_0x5847be['authorsIds'],'fromVersion':_0x202a34,'toVersion':_0x580301};if(!_0x35a906||_0x580301!==_0x35a906['toVersion']){const _0x54f56c=_0x580301-0x1,_0x265c95=this[_0x5e15('0xfb')][_0x5e15('0xf7')][_0x5e15('0x99')](_0x54f56c);_0x205789[_0x5e15('0x3e')]=_0x265c95&&_0x265c95[_0x5e15('0x3e')]||new Date();}if(this['_loadedStateData']&&_0x202a34===this[_0x5e15('0x5c')][_0x5e15('0x77')])for(const _0x5343cc of this[_0x5e15('0x5c')]['authors'])_0x205789[_0x5e15('0x100')][_0x5e15('0x17')](_0x5343cc['id'])||_0x205789['authorsIds'][_0x5e15('0x25')](_0x5343cc['id']);return _0x205789;}[_0x5e15('0xeb')](_0x15fd40){if(!_0x15fd40||_0x15fd40[_0x5e15('0xef')])return Promise[_0x5e15('0x90')]();{const _0x322f6b=this[_0x5e15('0x5a')]['config']['get'](_0x5e15('0xce'));return this[_0x5e15('0x89')][_0x5e15('0x7')]({'channelId':_0x322f6b,'revisionId':_0x15fd40['id']})[_0x5e15('0x4a')](_0xfc6f71=>{_0x15fd40[_0x5e15('0xef')]=_0xfc6f71[_0x5e15('0xef')];});}}[_0x5e15('0x8e')](_0x4da3b6,_0x401d06,_0x41ab34){if(this[_0x5e15('0x59')][_0x5e15('0x4e')](_0x4da3b6)){const _0x249f24=this[_0x5e15('0x59')][_0x5e15('0x21')](_0x4da3b6);_0x401d06=_0x41ab34?{..._0x249f24,..._0x401d06}:{..._0x401d06,..._0x249f24};}this[_0x5e15('0x59')]['set'](_0x4da3b6,_0x401d06);}[_0x5e15('0x98')](_0x4c3cef){const _0x278d0b=this[_0x5e15('0x69')][_0x5e15('0x9c')]();_0x278d0b[_0x5e15('0x15')](),_0x278d0b[_0x5e15('0xf5')]();const _0x5e79f2=_0x278d0b[_0x5e15('0x13')](_0x5d9ea7=>_0x5d9ea7[_0x5e15('0x2c')]<=_0x4c3cef)[_0x5e15('0x2c')];return _0x5e79f2<this[_0x5e15('0x24')]?this['_startingVersion']:_0x5e79f2;}['_createInitialRevision'](_0x539c07){const _0x23e771=this['repository'][_0x5e15('0x7')](this[_0x5e15('0x69')][_0x5e15('0x73')]-0x1);if(_0x23e771)this[_0x5e15('0x55')]=_0x23e771['id'];else{const _0xd4d724=!this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')]['roots'][_0x5e15('0x13')](_0x4068de=>this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x7d')](_0x4068de)),_0x39a81f=this[_0x5e15('0x5a')]['plugins'][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x2001cf=_0x58a6dd(this[_0x5e15('0x5a')][_0x5e15('0xaa')],_0xd4d724?'Empty\x20document':_0x5e15('0xd8'));this[_0x5e15('0xfe')]({'from':_0x539c07,'to':_0x539c07,'id':this[_0x5e15('0x55')],'name':_0x2001cf,'creatorId':_0x39a81f});}}[_0x5e15('0xb6')](_0x58800d){const _0x19101a=this[_0x5e15('0xfb')][_0x5e15('0x2')]();this[_0x5e15('0xd0')]=this[_0x5e15('0x69')][_0x5e15('0x7')](_0x19101a),this[_0x5e15('0xd0')]||(this['currentRevision']=this['_makeRevision']({'from':_0x58800d,'to':_0x58800d,'id':_0x19101a,'name':'','creatorId':null}));}['_makeRevision']({name:_0x231c36,from:_0x4a8774,to:_0x281b68,creatorId:_0x10c1e5,id:_0x4a15c8}){const _0x56f60a=this[_0x5e15('0x33')]({'from':_0x4a8774,'to':_0x281b68});_0x56f60a[_0x5e15('0x3')]=_0x231c36,_0x56f60a[_0x5e15('0x23')]=_0x10c1e5,_0x56f60a['id']=_0x4a15c8;const _0x23a317=this['addRevisionData'](_0x56f60a);return this['adapter']&&this[_0x5e15('0x8e')](_0x56f60a['id'],_0x56f60a,!0x0),_0x23a317;}[_0x5e15('0x9')](){this[_0x5e15('0x5a')]['conversion'][_0x5e15('0xf8')](_0x5e15('0x5b'))[_0x5e15('0x9f')]({'model':_0x5e15('0xdb')});}[_0x5e15('0x7a')](_0x2858c1){return(_0x2858c1=_0x2858c1['filter'](_0x2208fb=>!_0x2208fb['name']||'revision-start'!==_0x2208fb[_0x5e15('0x3')]&&'revision-end'!==_0x2208fb[_0x5e15('0x3')]))['forEach'](_0x1e9e25=>{_0x5e15('0x8')!=typeof _0x1e9e25&&(_0x1e9e25['children']=this[_0x5e15('0x7a')](_0x1e9e25[_0x5e15('0x1d')]),_0x1e9e25['attributes']=_0x1e9e25[_0x5e15('0xd2')]['filter'](_0x305918=>!_0x305918[0x0]['startsWith'](_0x5e15('0xca'))));}),_0x2858c1;}}function J(_0x3cb194,_0x4a06da){const _0x2203be=_0x4a06da[_0x5e15('0xc2')][_0x5e15('0x54')][_0x5e15('0x79')];if(_0x5e15('0x8')==typeof _0x3cb194)return new _0x540e8f(_0x2203be,_0x3cb194);{const _0x29f1ab=_0x3cb194[_0x5e15('0x1d')][_0x5e15('0x50')](_0x9bdb9=>J(_0x9bdb9,_0x4a06da));return new(B[_0x3cb194['type']]||_0x6f9192)(_0x2203be,_0x3cb194[_0x5e15('0x3')],_0x3cb194[_0x5e15('0xd2')],_0x29f1ab);}}class H{constructor(_0x3f0ec6){this[_0x5e15('0x5a')]=_0x3f0ec6,this[_0x5e15('0xb4')]=new Map(),this[_0x5e15('0xf9')]=-0x1,this['_lastTo']=-0x1,this[_0x5e15('0x1')]=new Map(),this['_diffRoots']=new Map(),this[_0x5e15('0x72')]=new Map(),this[_0x5e15('0xe9')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x5e15('0x6d')]=new Map(),this[_0x5e15('0x75')]=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x5e15('0xd')](_0x20e6ea){this['source']=_0x20e6ea;const _0x2b0417=new Map(),_0x54d089=new Map(),_0x185152=this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0x7e')][_0x5e15('0x50')](_0x5eeefb=>_0x5eeefb['rootName']);for(const _0x47cb6b of _0x185152){const _0x234fc4=this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0xc6')](_0x47cb6b),_0x90dc5c=q(_0x234fc4);_0x2b0417[_0x5e15('0x85')](_0x47cb6b,_0x90dc5c),_0x54d089[_0x5e15('0x85')](_0x47cb6b,Object['fromEntries'](_0x234fc4['getAttributes']()));}const _0x28f098=Array[_0x5e15('0x4f')](this[_0x5e15('0x5a')][_0x5e15('0x7f')]['markers'])[_0x5e15('0x50')](_0xd895e3=>[_0xd895e3[_0x5e15('0x3')],_0xd895e3[_0x5e15('0x74')]()]),_0x2ea899=this['source']['version'];this['_saveMetaData'](_0x2ea899,_0x2b0417,_0x28f098,_0x54d089),this[_0x5e15('0xcb')]=this[_0x5e15('0xa4')];const _0x363f4a=new Map(),_0x49654e=new Map();for(const _0x51b207 of _0x185152){const _0x3c9c92=G(_0x51b207);_0x363f4a[_0x5e15('0x85')](_0x51b207,_0x3c9c92),_0x49654e[_0x5e15('0x85')](_0x51b207,{});}this[_0x5e15('0x63')](Number[_0x5e15('0x41')],_0x363f4a,[],_0x49654e);}[_0x5e15('0x8d')](_0x517f26,_0x5dcc1e){if(this[_0x5e15('0xf9')]===_0x517f26&&this[_0x5e15('0x61')]<=_0x5dcc1e)this['_savedMetaData'][_0x5e15('0x11')]>0x1&&this[_0x5e15('0x29')](this[_0x5e15('0x61')]),this[_0x5e15('0x95')](this[_0x5e15('0x61')],_0x5dcc1e,!0x0);else{if(!this[_0x5e15('0xb4')]['has'](_0x517f26)){const _0x1a54ce=this[_0x5e15('0xa5')](_0x517f26);this[_0x5e15('0xb2')](_0x1a54ce,_0x517f26,!0x1);}this[_0x5e15('0xb2')](_0x517f26,_0x5dcc1e,!0x0);}return this[_0x5e15('0xf9')]=_0x517f26,this[_0x5e15('0x61')]=_0x5dcc1e,this[_0x5e15('0x106')]();}['loadState'](_0x3ba38d){this[_0x5e15('0xd4')](),this['_lastFrom']=_0x3ba38d[_0x5e15('0x77')],this[_0x5e15('0x61')]=_0x3ba38d['toVersion'];for(const _0x3d3310 in _0x3ba38d[_0x5e15('0xef')]){const _0x206354=_0x3ba38d[_0x5e15('0xef')][_0x3d3310][_0x5e15('0x39')],_0x451538=_0x6bddad(_0x3ba38d[_0x5e15('0xef')][_0x3d3310][_0x5e15('0x8f')])||{},_0x34c5d5=this[_0x5e15('0xf1')](_0x3ba38d[_0x5e15('0xef')][_0x3d3310][_0x5e15('0xa6')]);_0x34c5d5[_0x5e15('0xde')]=_0x3d3310,_0x34c5d5['_isAttached']=!_0x206354||!_0x206354[_0x5e15('0xbc')],_0x34c5d5[_0x5e15('0xbc')]=()=>_0x34c5d5[_0x5e15('0xee')],this[_0x5e15('0xe9')][_0x5e15('0x85')](_0x3d3310,_0x34c5d5),this[_0x5e15('0x8c')][_0x5e15('0x85')](_0x3d3310,_0x451538),_0x206354&&this['_touchedRoots'][_0x5e15('0x85')](_0x3d3310,_0x206354);const _0x58fafd=this[_0x5e15('0x70')](_0x34c5d5);this[_0x5e15('0x75')]['set'](_0x3d3310,_0x58fafd);for(const [_0x171da2,_0x1d08b8]of _0x34c5d5[_0x5e15('0xf3')]){if(!_0x171da2[_0x5e15('0xdf')](_0x5e15('0x46')))continue;const _0x167763=_0x171da2[_0x5e15('0xe')](':')[0x2];for(const _0xefbfcb of _0x1d08b8['getWalker']({'singleCharacters':!0x0})){const _0x51f123=this[_0x5e15('0x12')](_0xefbfcb),_0x4d0f06=_0x5e15('0x101')==_0xefbfcb[_0x5e15('0xc3')]?_0xefbfcb[_0x5e15('0xc5')][_0x5e15('0xe2')]['slice'](0x0,-0x1):_0xefbfcb[_0x5e15('0xc5')][_0x5e15('0xe2')],_0x3d7e2c=_0x58fafd[_0x5e15('0xcf')](_0x4d0f06)[_0x5e15('0xf6')](_0x51f123);this[_0x5e15('0x30')]['set'](_0x3d7e2c,{'userId':_0x167763});}}}this[_0x5e15('0xcb')]=this[_0x5e15('0xa4')];const _0x285e51=[...Array(this['_revisionId'])[_0x5e15('0xc4')]()][_0x5e15('0xd6')](0x1)[_0x5e15('0x37')](_0xf9b2c7=>!this[_0x5e15('0x30')][_0x5e15('0x4e')](_0xf9b2c7));let _0xe859a9=0x0;const _0x5c9ca4=new Map();for(const _0x37bc88 in _0x3ba38d['diffData']){const _0x18ecc6=_0x3ba38d[_0x5e15('0xef')][_0x37bc88][_0x5e15('0x39')],_0x1c4b20=_0x6bddad(_0x3ba38d[_0x5e15('0xef')][_0x37bc88][_0x5e15('0x10')])||{},_0x20d5f9=this[_0x5e15('0xf1')](_0x3ba38d['diffData'][_0x37bc88][_0x5e15('0x1a')]);_0x20d5f9[_0x5e15('0xde')]=_0x37bc88,_0x20d5f9[_0x5e15('0xee')]=!_0x18ecc6||_0x18ecc6[_0x5e15('0xbc')],_0x20d5f9['isAttached']=()=>_0x20d5f9[_0x5e15('0xee')],this[_0x5e15('0x57')][_0x5e15('0x85')](_0x37bc88,_0x20d5f9),this['_diffRootsAttributes'][_0x5e15('0x85')](_0x37bc88,_0x1c4b20);const _0x5308f5=this[_0x5e15('0x70')](_0x20d5f9,Number['NEGATIVE_INFINITY']);this[_0x5e15('0x6d')][_0x5e15('0x85')](_0x37bc88,_0x5308f5),_0x5c9ca4['set'](_0x37bc88,_0x20d5f9[_0x5e15('0xbc')]()?_0x1c4b20:{});for(const [_0x2bd6ae,_0x27a648]of _0x20d5f9[_0x5e15('0xf3')]){if(!_0x2bd6ae[_0x5e15('0xdf')]('revision:'))continue;const _0x1919db=_0x2bd6ae['split'](':')[0x2];for(const _0x4eefe9 of _0x27a648[_0x5e15('0x35')]({'singleCharacters':!0x0})){const _0x431348=this[_0x5e15('0x12')](_0x4eefe9),_0x143ef4=this[_0x5e15('0xa4')]++,_0x12137f=_0x5e15('0x101')==_0x4eefe9[_0x5e15('0xc3')]?_0x4eefe9[_0x5e15('0xc5')]['path']['slice'](0x0,-0x1):_0x4eefe9['previousPosition']['path'];_0x5308f5[_0x5e15('0xcf')](_0x12137f)[_0x5e15('0x4b')](_0x431348,_0x143ef4),this['_touched'][_0x5e15('0x85')](_0x143ef4,{'userId':_0x1919db});}}for(const _0x9f03ec of this[_0x5e15('0x5a')]['model'][_0x5e15('0x42')](_0x20d5f9)['getWalker']({'singleCharacters':!0x0})){const _0x139b74=this[_0x5e15('0x12')](_0x9f03ec),_0x387ecf=_0x5e15('0x101')==_0x9f03ec[_0x5e15('0xc3')]?_0x9f03ec[_0x5e15('0xc5')][_0x5e15('0xe2')]['slice'](0x0,-0x1):_0x9f03ec['previousPosition'][_0x5e15('0xe2')],_0x160f9d=_0x5308f5[_0x5e15('0xcf')](_0x387ecf);_0x160f9d['getAttribute'](_0x139b74)>0x0||_0x160f9d[_0x5e15('0x4b')](_0x139b74,_0x285e51[_0xe859a9++]);}for(const [_0x5a30bb,_0x5e9563]of _0x20d5f9[_0x5e15('0xf3')])_0x5a30bb[_0x5e15('0xdf')]('revision:')||this[_0x5e15('0x1')][_0x5e15('0x85')](_0x5a30bb,_0x5e9563);}const _0x960d2a=G(_0x5e15('0xa8'));this[_0x5e15('0xe9')]['set'](_0x5e15('0xa8'),_0x960d2a),this[_0x5e15('0x75')][_0x5e15('0x85')](_0x5e15('0xa8'),this['_makeIdsRoot'](_0x960d2a,0x1));const _0x598ddb=G(_0x5e15('0xa8'));this[_0x5e15('0x57')][_0x5e15('0x85')](_0x5e15('0xa8'),_0x598ddb),this[_0x5e15('0x6d')][_0x5e15('0x85')](_0x5e15('0xa8'),this[_0x5e15('0x70')](_0x598ddb,0x1));const _0x55090f=Array[_0x5e15('0x4f')](this[_0x5e15('0x57')])['map'](([_0x1e3d3a,_0x55c84])=>[_0x1e3d3a,q(_0x55c84)]);this['_saveMetaData'](this[_0x5e15('0x61')],_0x55090f,this['_markers'],_0x5c9ca4);}[_0x5e15('0xf1')](_0x44b904){const _0x1f9989=JSON[_0x5e15('0xbf')](_0x44b904),_0x29ba3a=this['editor']['editing'][_0x5e15('0x54')][_0x5e15('0x79')],_0x4e106b=new _0x5c797f(_0x29ba3a,_0x1f9989[_0x5e15('0x50')](_0x2c8898=>J(_0x2c8898,this[_0x5e15('0x5a')])));return this[_0x5e15('0x5a')]['data']['toModel'](_0x4e106b);}[_0x5e15('0x63')](_0x1fb624,_0x453002,_0x157304,_0x330158){const _0x1f6dff=new Map(_0x453002),_0x2fd5b0=new Map(_0x6bddad(_0x330158)),_0xe57936=new Map();for(const [_0x40de1e,_0x1e9afb]of _0x157304)_0xe57936[_0x5e15('0x85')](_0x40de1e,{'start':_0x1e9afb[_0x5e15('0x2f')][_0x5e15('0x93')](),'end':_0x1e9afb['end']['clone'](),'rootName':_0x1e9afb['root'][_0x5e15('0xde')]});this[_0x5e15('0xb4')][_0x5e15('0x85')](_0x1fb624,{'roots':_0x1f6dff,'markers':_0xe57936,'rootsAttributes':_0x2fd5b0});}[_0x5e15('0x29')](_0x3b65fd){this[_0x5e15('0xb4')][_0x5e15('0x9e')](_0x3b65fd);}[_0x5e15('0x27')](){this[_0x5e15('0xd4')](),this[_0x5e15('0xf9')]=-0x1,this[_0x5e15('0x61')]=-0x1,this[_0x5e15('0xb4')][_0x5e15('0x1f')](),this[_0x5e15('0xd')](this[_0x5e15('0x19')]);}[_0x5e15('0xd4')](){this[_0x5e15('0x30')][_0x5e15('0x1f')](),this[_0x5e15('0x51')][_0x5e15('0x1f')](),this[_0x5e15('0x64')]['clear'](),this[_0x5e15('0x57')][_0x5e15('0x1f')](),this[_0x5e15('0x72')][_0x5e15('0x1f')](),this[_0x5e15('0xe9')]['clear'](),this[_0x5e15('0x8c')][_0x5e15('0x1f')](),this[_0x5e15('0x6d')][_0x5e15('0x1f')](),this['_baseIdsRoots'][_0x5e15('0x1f')](),this[_0x5e15('0x1')]['clear'](),this[_0x5e15('0xa4')]=0x1,this[_0x5e15('0xcb')]=this[_0x5e15('0xa4')];}[_0x5e15('0x70')](_0xf146ba,_0x5da576=null){let _0x3bf28a=null;_0xf146ba['is']('documentFragment')||(_0x3bf28a=new _0x41cbf8(_0xf146ba[_0x5e15('0x3')],{'vid_start':null===_0x5da576?this[_0x5e15('0xa4')]++:_0x5da576++}));const _0x5af803=[];for(const _0x6c1f3c of _0xf146ba['getChildren']())if(_0x6c1f3c['is'](_0x5e15('0xa1'))){_0x5af803[_0x5e15('0x25')](this[_0x5e15('0x70')](_0x6c1f3c,_0x5da576));const _0x333cba=_0x5af803[_0x5af803[_0x5e15('0x73')]-0x1];null!==_0x5da576&&(_0x5da576=_0x333cba['is']('element',_0x5e15('0xb8'))?_0x333cba['getAttribute'](_0x5e15('0x48'))+0x1:_0x333cba[_0x5e15('0xf6')](_0x5e15('0x47'))+0x1);}else for(let _0x342bfd=0x0;_0x342bfd<_0x6c1f3c[_0x5e15('0x82')];_0x342bfd++)_0x5af803[_0x5e15('0x25')](new _0x41cbf8(_0x5e15('0xb8'),{'vid':null===_0x5da576?this[_0x5e15('0xa4')]++:_0x5da576++}));if(_0xf146ba['is'](_0x5e15('0x9a'))){const _0x52d1d7=G(_0xf146ba[_0x5e15('0xde')]);return _0x52d1d7[_0x5e15('0x14')](0x0,_0x5af803),_0x52d1d7;}return _0x3bf28a[_0x5e15('0x4b')]('vid_end',null===_0x5da576?this[_0x5e15('0xa4')]++:_0x5da576++),_0x3bf28a['_insertChild'](0x0,_0x5af803),_0x3bf28a;}[_0x5e15('0xb2')](_0x571f32,_0x5cdc10,_0x6dda1f){this[_0x5e15('0xd4')]();const {roots:_0x3fa82b,markers:_0x532a02,rootsAttributes:_0x21312d}=this[_0x5e15('0xb4')][_0x5e15('0x21')](_0x571f32);this[_0x5e15('0xe9')]=new Map(_0x3fa82b),this[_0x5e15('0x8c')]=new Map(_0x6bddad(_0x21312d));for(const [_0x47a024,_0x1b80dc]of this['_baseRoots'])if(_0x5e15('0xa8')!==_0x47a024&&(this[_0x5e15('0x57')]['set'](_0x47a024,q(_0x1b80dc)),this['_diffRootsAttributes']=new Map(_0x6bddad(_0x21312d)),_0x6dda1f)){const _0xca6ae4=this[_0x5e15('0xa4')];this['_idsRoots'][_0x5e15('0x85')](_0x47a024,this[_0x5e15('0x70')](_0x1b80dc)),this[_0x5e15('0x75')][_0x5e15('0x85')](_0x47a024,this[_0x5e15('0x70')](_0x1b80dc,_0xca6ae4));}this[_0x5e15('0xcb')]=this[_0x5e15('0xa4')],this[_0x5e15('0x57')]['set']('$graveyard',q(this[_0x5e15('0xe9')]['get'](_0x5e15('0xa8')))),_0x6dda1f&&this['_idsRoots'][_0x5e15('0x85')](_0x5e15('0xa8'),this['_makeIdsRoot'](this[_0x5e15('0xe9')]['get']('$graveyard')));for(const [_0x23356b,_0x3d9cf1]of _0x532a02){const _0x2150fb=this['_baseRoots'][_0x5e15('0x21')](_0x3d9cf1[_0x5e15('0xde')]),_0x87ab4a=this[_0x5e15('0x57')][_0x5e15('0x21')](_0x3d9cf1['rootName']),_0xf3fc7c=new _0x1267ff(this[_0x5e15('0xa7')](_0x3d9cf1[_0x5e15('0x2f')],_0x2150fb),this[_0x5e15('0xa7')](_0x3d9cf1['end'],_0x2150fb)),_0x3cc0f5=this[_0x5e15('0x65')](_0xf3fc7c,_0x87ab4a);_0x2150fb['markers']['set'](_0x23356b,_0xf3fc7c),this[_0x5e15('0x1')]['set'](_0x23356b,_0x3cc0f5);}this['_applyOperations'](_0x571f32,_0x5cdc10,_0x6dda1f);}[_0x5e15('0x95')](_0x430187,_0x569eeb,_0x17cc2a){for(const _0x556290 of this[_0x5e15('0x19')]['getOperations'](_0x430187,_0x569eeb))this[_0x5e15('0x1b')](_0x556290,_0x17cc2a);for(const _0x5ea67c of this[_0x5e15('0x57')][_0x5e15('0xd3')]())_0x5ea67c[_0x5e15('0xf3')][_0x5e15('0x1f')]();for(const [_0x536695,_0x56d8fa]of this[_0x5e15('0x1')]){this[_0x5e15('0x57')][_0x5e15('0x21')](_0x56d8fa['root'][_0x5e15('0xde')])[_0x5e15('0xf3')][_0x5e15('0x85')](_0x536695,_0x56d8fa[_0x5e15('0x93')]());}const _0x4c7ad5=new Map(),_0x585be5=new Map();for(const [_0x4094d5,_0x1c4952]of this[_0x5e15('0x57')])_0x4c7ad5[_0x5e15('0x85')](_0x4094d5,q(_0x1c4952)),_0x585be5[_0x5e15('0x85')](_0x4094d5,this[_0x5e15('0x72')]['get'](_0x4094d5));this[_0x5e15('0x63')](_0x569eeb,_0x4c7ad5,this[_0x5e15('0x1')],_0x585be5);}[_0x5e15('0xa5')](_0x3d1442){const _0x3bbec3=Array[_0x5e15('0x4f')](this[_0x5e15('0xb4')]['keys']());_0x3bbec3[_0x5e15('0x4c')]((_0x355191,_0x4b680d)=>_0x355191-_0x4b680d),_0x3bbec3[_0x5e15('0x15')]();for(const _0x33dcc5 of _0x3bbec3)if(_0x33dcc5<_0x3d1442)return _0x33dcc5;return Number[_0x5e15('0x41')];}[_0x5e15('0xa2')](_0xead8d3,_0x2bb550){const _0x52d4cb=Array['from'](_0x2bb550[_0x5e15('0xf3')])[_0x5e15('0x50')](([_0x430a9c,_0x502886])=>[_0x430a9c,this[_0x5e15('0x65')](_0x502886,_0xead8d3)]);_0xead8d3['markers']=new Map(_0x52d4cb);}['_transformMarkers'](_0x300fe2){for(const _0x5a9815 of this[_0x5e15('0x1')][_0x5e15('0xd3')]()){const _0x19b255=_0x5a9815['getTransformedByOperation'](_0x300fe2),_0x2f6f62=_0x1267ff[_0x5e15('0x5e')](_0x19b255);_0x5a9815['start']=_0x2f6f62[_0x5e15('0x2f')],_0x5a9815[_0x5e15('0x62')]=_0x2f6f62[_0x5e15('0x62')];}}[_0x5e15('0x1b')](_0x420aaf,_0x4f4ac2){if(_0x5e15('0x80')==_0x420aaf['type']||_0x5e15('0xa')==_0x420aaf[_0x5e15('0xc3')])return void this[_0x5e15('0xa9')](_0x420aaf,_0x4f4ac2);if(_0x5e15('0x67')==_0x420aaf[_0x5e15('0xc3')]){const _0x41bb1d=_0x420aaf[_0x5e15('0x71')][_0x5e15('0x26')][_0x5e15('0xde')];this[_0x5e15('0x57')][_0x5e15('0x4e')](_0x41bb1d)||(this[_0x5e15('0x57')][_0x5e15('0x85')](_0x41bb1d,G(_0x41bb1d,!0x0)),this['_diffRootsAttributes'][_0x5e15('0x85')](_0x41bb1d,{}),_0x4f4ac2&&this['_idsRoots'][_0x5e15('0x85')](_0x41bb1d,G(_0x41bb1d,!0x0)));}else{if('addRootAttribute'==_0x420aaf[_0x5e15('0xc3')]||_0x5e15('0xe1')==_0x420aaf[_0x5e15('0xc3')]||_0x5e15('0x7b')==_0x420aaf[_0x5e15('0xc3')])return void this[_0x5e15('0xb1')](_0x420aaf);}const _0x11a8ed=this['_cloneOperation'](_0x420aaf,this[_0x5e15('0x57')]);if(_0x5e15('0x6f')!==_0x420aaf['type']&&(_0x11a8ed[_0x5e15('0xc1')](),this[_0x5e15('0x58')](_0x11a8ed)),_0x4f4ac2)switch(_0x11a8ed[_0x5e15('0xc3')]){case _0x5e15('0x67'):this[_0x5e15('0x97')](_0x420aaf);break;case'move':case'remove':case _0x5e15('0xfa'):this[_0x5e15('0xc7')](_0x420aaf);break;case _0x5e15('0xb5'):this['_handleMergeOperation'](_0x420aaf);break;case'split':this['_handleSplitOperation'](_0x420aaf);break;case _0x5e15('0x6f'):this[_0x5e15('0x103')](_0x420aaf);}}[_0x5e15('0x3b')](_0x37232d,_0x5ed3f7){const _0x360839=_0x37232d[_0x5e15('0x93')]();return _0x360839[_0x5e15('0xa0')]=_0x37232d['_authorId'],this[_0x5e15('0x96')](_0x360839,_0x5ed3f7),_0x360839;}[_0x5e15('0x88')](_0x118685){return _0x118685[_0x5e15('0x50')](_0x5ce7e3=>{const _0x3626ed=this[_0x5e15('0x12')](_0x5ce7e3);return Number(_0x5ce7e3['item'][_0x5e15('0xf6')](_0x3626ed));});}[_0x5e15('0x5f')](_0x1d883b,_0x29623){if(_0x1d883b['is']('element',_0x5e15('0xb8')))_0x29623['push']({'item':_0x1d883b,'type':_0x5e15('0x53')});else{_0x1d883b['is'](_0x5e15('0xa1'))&&_0x29623[_0x5e15('0x25')]({'item':_0x1d883b,'type':_0x5e15('0x86')});for(const _0x4bcf48 of _0x1d883b[_0x5e15('0x102')]())this[_0x5e15('0x5f')](_0x4bcf48,_0x29623);_0x1d883b['is'](_0x5e15('0xa1'))&&_0x29623[_0x5e15('0x25')]({'item':_0x1d883b,'type':_0x5e15('0x101')});}return _0x29623;}[_0x5e15('0x106')](){const _0x4d2d69=new Map(this[_0x5e15('0x30')]),_0x3c0767=new Map(_0x4d2d69),_0x43c5de=new Map(),_0x5459c9={'insertions':{},'deletions':{}},_0x48a8e0={'insertions':{},'deletions':{}},_0x2996f5=new Map(),_0x158b56=new Set([...this[_0x5e15('0xe9')]['keys'](),...this[_0x5e15('0x57')][_0x5e15('0xc4')]()]);_0x158b56['delete'](_0x5e15('0xa8'));for(const _0x1037da of _0x158b56){const _0x1a48a5=this['_diffRoots'][_0x5e15('0x21')](_0x1037da)||G(_0x1037da,!0x1),_0x163ff8=this[_0x5e15('0xe9')][_0x5e15('0x21')](_0x1037da)||G(_0x1037da,!0x1);_0x1a48a5[_0x5e15('0xbc')]()||_0x163ff8[_0x5e15('0xbc')]()?(_0x5459c9[_0x5e15('0x1a')][_0x1037da]=q(_0x1a48a5),_0x5459c9[_0x5e15('0xa6')][_0x1037da]=q(_0x163ff8),this[_0x5e15('0xa2')](_0x5459c9[_0x5e15('0xa6')][_0x1037da],_0x163ff8),this['_copyMarkers'](_0x5459c9['insertions'][_0x1037da],_0x1a48a5),_0x48a8e0[_0x5e15('0x1a')][_0x1037da]=this[_0x5e15('0x5f')](this[_0x5e15('0x6d')]['get'](_0x1037da),[]),_0x48a8e0[_0x5e15('0xa6')][_0x1037da]=this[_0x5e15('0x5f')](this['_baseIdsRoots'][_0x5e15('0x21')](_0x1037da)||G(_0x1037da,!0x1),[])):_0x158b56[_0x5e15('0x9e')](_0x1037da);}for(const _0x377057 of _0x158b56){const _0x58d584=_0x48a8e0[_0x5e15('0x1a')][_0x377057];for(const _0x87ee8e of _0x58d584){const _0x1a3028=this[_0x5e15('0x12')](_0x87ee8e),_0x3ca84d=_0x87ee8e[_0x5e15('0xea')]['getAttribute'](_0x1a3028);_0x3c0767['delete'](_0x3ca84d),_0x3ca84d>=this[_0x5e15('0xcb')]&&_0x43c5de[_0x5e15('0x85')](_0x3ca84d,_0x4d2d69[_0x5e15('0x21')](_0x3ca84d));}}for(const _0x1004f3 of _0x158b56){const _0x45187f=_0x48a8e0[_0x5e15('0x1a')][_0x1004f3],_0x1e8686=this[_0x5e15('0x88')](_0x48a8e0[_0x5e15('0xa6')][_0x1004f3]);let _0x1a935e=0x0;for(const _0x3d0d0c of _0x45187f){const _0x3e8bd1=this['_getVidAttributeName'](_0x3d0d0c),_0x3a59a3=_0x3d0d0c[_0x5e15('0xea')][_0x5e15('0xf6')](_0x3e8bd1);if(!_0x43c5de[_0x5e15('0x4e')](_0x3a59a3)&&!_0x2996f5[_0x5e15('0x4e')](_0x3a59a3)){if(_0x3c0767[_0x5e15('0x4e')](_0x3a59a3))_0x1a935e++;else{if(_0x3a59a3!=_0x1e8686[_0x1a935e]){const _0x462471=_0x4d2d69[_0x5e15('0x21')](_0x3a59a3)||_0x4d2d69[_0x5e15('0x21')](_0x1e8686[_0x1a935e]);for(;_0x3a59a3!=_0x1e8686[_0x1a935e];)_0x3c0767[_0x5e15('0x4e')](_0x1e8686[_0x1a935e])||(_0x2996f5[_0x5e15('0x85')](_0x1e8686[_0x1a935e],_0x462471),_0x4d2d69[_0x5e15('0x85')](_0x1e8686[_0x1a935e],_0x462471)),_0x1a935e++;}_0x1a935e++;}}}}for(const _0x47a86a of _0x158b56){const _0x14ee1a=_0x48a8e0[_0x5e15('0x1a')][_0x47a86a];for(const _0x21db1d of _0x14ee1a){const _0x15560b=this[_0x5e15('0x12')](_0x21db1d),_0x5f3342=_0x21db1d[_0x5e15('0xea')][_0x5e15('0xf6')](_0x15560b);if(_0x2996f5[_0x5e15('0x4e')](_0x5f3342)){const _0x1ca26d=_0x2996f5[_0x5e15('0x21')](_0x5f3342);_0x3c0767['has'](_0x5f3342)||_0x3c0767[_0x5e15('0x85')](_0x5f3342,{..._0x1ca26d}),_0x43c5de[_0x5e15('0x85')](_0x5f3342,{..._0x1ca26d});}}}for(const _0x575801 of _0x3c0767[_0x5e15('0xc4')]())_0x575801>=this[_0x5e15('0xcb')]&&_0x3c0767[_0x5e15('0x9e')](_0x575801);const _0x40bd85=new Map();for(const _0x137406 of _0x158b56){let _0x254f4c=_0x48a8e0[_0x5e15('0x1a')][_0x137406];for(const _0x4dd9d5 of _0x254f4c)if(_0x4dd9d5[_0x5e15('0xea')]['is'](_0x5e15('0xa1'),_0x5e15('0xf4'))){const _0x554898=this[_0x5e15('0x12')](_0x4dd9d5),_0x9ce2f9=_0x4dd9d5[_0x5e15('0xea')][_0x5e15('0xf6')](_0x554898);if(_0x43c5de[_0x5e15('0x4e')](_0x9ce2f9)){const _0x78c1a3=_0x4dd9d5[_0x5e15('0xea')][_0x5e15('0xbb')][_0x5e15('0xbb')][_0x5e15('0xf6')](_0x5e15('0xba')),_0x17a72d=_0x40bd85['get'](_0x78c1a3)||new Set();_0x17a72d[_0x5e15('0xcc')](_0x43c5de[_0x5e15('0x21')](_0x9ce2f9)[_0x5e15('0x78')]),_0x40bd85['set'](_0x78c1a3,_0x17a72d);}}_0x254f4c=_0x48a8e0[_0x5e15('0xa6')][_0x137406];for(const _0x55a4c3 of _0x254f4c)if(_0x55a4c3[_0x5e15('0xea')]['is'](_0x5e15('0xa1'),_0x5e15('0xf4'))){const _0x3bfdc8=this[_0x5e15('0x12')](_0x55a4c3),_0x39c3fb=_0x55a4c3[_0x5e15('0xea')][_0x5e15('0xf6')](_0x3bfdc8);if(_0x3c0767[_0x5e15('0x4e')](_0x39c3fb)){const _0x5884d0=_0x55a4c3['item'][_0x5e15('0xbb')][_0x5e15('0xbb')][_0x5e15('0xf6')](_0x5e15('0xba')),_0x1a45fb=_0x40bd85[_0x5e15('0x21')](_0x5884d0)||new Set();_0x1a45fb[_0x5e15('0xcc')](_0x3c0767['get'](_0x39c3fb)[_0x5e15('0x78')]),_0x40bd85[_0x5e15('0x85')](_0x5884d0,_0x1a45fb);}}for(const _0x528665 of _0x40bd85[_0x5e15('0xc4')]())(_0x43c5de[_0x5e15('0x4e')](_0x528665)||_0x3c0767['has'](_0x528665))&&_0x40bd85[_0x5e15('0x9e')](_0x528665);}for(const _0x44bbf0 of _0x158b56){const _0x204b61=_0x48a8e0[_0x5e15('0x1a')][_0x44bbf0];let _0x2951a7=null,_0x209919=null;for(const _0x342bd7 of _0x204b61){const _0x5c87d6=this[_0x5e15('0x12')](_0x342bd7),_0x4f2bb2=_0x342bd7[_0x5e15('0xea')][_0x5e15('0xf6')](_0x5c87d6),_0x1ce7be=_0x40bd85[_0x5e15('0x21')](_0x4f2bb2);_0x1ce7be&&_0x5e15('0x86')==_0x342bd7[_0x5e15('0xc3')]&&(_0x2951a7=Array[_0x5e15('0x4f')](_0x1ce7be)[0x0],_0x209919=_0x342bd7['item'][_0x5e15('0xf6')]('vid_end')),_0x2951a7&&(_0x3c0767[_0x5e15('0x85')](_0x4f2bb2,{'userId':_0x2951a7}),_0x43c5de[_0x5e15('0x85')](_0x4f2bb2,{'userId':_0x2951a7})),_0x4f2bb2==_0x209919&&(_0x2951a7=null,_0x209919=null);}}const _0x592e7e={},_0x40694e=new Set();for(const _0x2c51e6 of _0x158b56){const _0x5a4ca8=_0x5459c9[_0x5e15('0xa6')][_0x2c51e6],_0x19d5b0=_0x5459c9[_0x5e15('0x1a')][_0x2c51e6];for(const {userId:_0x24f902}of this[_0x5e15('0x51')]['values']())null!==_0x24f902&&_0x40694e[_0x5e15('0xcc')](_0x24f902);for(const {userId:_0x26ad37}of this[_0x5e15('0x64')][_0x5e15('0xd3')]())null!==_0x26ad37&&_0x40694e[_0x5e15('0xcc')](_0x26ad37);this[_0x5e15('0xb')](_0x19d5b0,_0x48a8e0['insertions'][_0x2c51e6],_0x43c5de,_0x5e15('0x32'),_0x40694e),this[_0x5e15('0xb')](_0x5a4ca8,_0x48a8e0[_0x5e15('0xa6')][_0x2c51e6],_0x3c0767,_0x5e15('0xb0'),_0x40694e),_0x592e7e[_0x2c51e6]={'insertions':this[_0x5e15('0xff')](_0x19d5b0),'deletions':this[_0x5e15('0xff')](_0x5a4ca8),'attachChange':this[_0x5e15('0x64')]['get'](_0x2c51e6)||null,'attributesBefore':_0x6bddad(this[_0x5e15('0x8c')][_0x5e15('0x21')](_0x2c51e6))||{},'attributesAfter':_0x6bddad(this[_0x5e15('0x72')]['get'](_0x2c51e6))};}return{'diffData':_0x592e7e,'authorsIds':Array[_0x5e15('0x4f')](_0x40694e)};}[_0x5e15('0xe8')](_0x30360a){for(const [,_0xc6c150]of _0x30360a['markers']){const _0x1a986c=_0xc6c150[_0x5e15('0x2f')][_0x5e15('0xf2')]()[_0x5e15('0x37')](_0x50b1dd=>'tableCell'==_0x50b1dd['name']);for(const _0x10f353 of _0x1a986c)0x1==_0x10f353[_0x5e15('0x2b')]&&_0x10f353['getChild'](0x0)['is'](_0x5e15('0xa1'),_0x5e15('0x7c'))&&_0x10f353[_0x5e15('0xb3')](0x0)['_setAttribute'](_0x5e15('0xab'),!0x0);}}[_0x5e15('0xff')](_0x4bcf3c){this[_0x5e15('0xe8')](_0x4bcf3c);const _0x3e5989=this[_0x5e15('0x5a')][_0x5e15('0x36')][_0x5e15('0x20')](_0x4bcf3c,{}),_0x53a08b=Array[_0x5e15('0x4f')](_0x3e5989['getChildren']())['map'](_0x4be49b=>this[_0x5e15('0x5')](_0x4be49b));return JSON[_0x5e15('0xe4')](_0x53a08b);}['_getViewJson'](_0x5333b2){if(_0x5333b2['is'](_0x5e15('0xb8')))return _0x5333b2[_0x5e15('0x36')];{const _0x14eba6=_0x5333b2;return{'type':Object[_0x5e15('0xc4')](B)['find'](_0x58ae5c=>_0x5333b2 instanceof B[_0x58ae5c]),'name':_0x14eba6['name'],'attributes':Array[_0x5e15('0x4f')](_0x14eba6['getAttributes']()),'children':Array[_0x5e15('0x4f')](_0x14eba6[_0x5e15('0x102')]())[_0x5e15('0x50')](_0x474a07=>this[_0x5e15('0x5')](_0x474a07))};}}[_0x5e15('0xb')](_0x21527d,_0x720832,_0xe494a8,_0x3ce614,_0x593cf3){let _0x30d596=null,_0x396452=null,_0x4b917c=0x0;const _0x452cb1=this[_0x5e15('0x5a')][_0x5e15('0x7f')];for(let _0x25a76c=0x0;_0x25a76c<_0x720832[_0x5e15('0x73')];_0x25a76c++){const _0x573593=this['_getVidAttributeName'](_0x720832[_0x25a76c]),_0x5541c6=_0x720832[_0x25a76c][_0x5e15('0xea')]['getAttribute'](_0x573593),_0x4db680=_0xe494a8[_0x5e15('0x21')](_0x5541c6),_0x31b782=_0x25a76c==_0x720832[_0x5e15('0x73')]-0x1;(!_0x30d596&&_0x4db680&&(_0x30d596=_0x4db680,_0x396452=_0x720832[_0x25a76c]),_0x30d596&&(!_0x4db680||_0x4db680[_0x5e15('0x78')]!=_0x30d596[_0x5e15('0x78')]))&&(_0x3e6179(_0x4db680,L(_0x396452,_0x21527d,_0x452cb1),L(_0x720832[_0x25a76c],_0x21527d,_0x452cb1)),_0x30d596=_0x4db680||null,_0x396452=_0x4db680?_0x720832[_0x25a76c]:null),_0x30d596&&_0x31b782&&_0x3e6179(_0x4db680,L(_0x396452,_0x21527d,_0x452cb1),W(_0x720832[_0x25a76c],_0x21527d,_0x452cb1));}function _0x3e6179(_0x13821b,_0x4a69a4,_0x592ecb){const _0x480327=_0x30d596[_0x5e15('0x78')],_0x1dd14c=_0x5e15('0x46')+_0x3ce614+':'+_0x480327+':'+_0x4b917c++,_0x5dc730=_0x452cb1['createRange'](_0x4a69a4,_0x592ecb);_0x21527d[_0x5e15('0xf3')]['set'](_0x1dd14c,_0x5dc730),null!==_0x480327&&_0x593cf3[_0x5e15('0xcc')](_0x480327);}}[_0x5e15('0x12')](_0x2696ec){switch(_0x2696ec[_0x5e15('0xc3')]){case _0x5e15('0x86'):return _0x5e15('0xba');case _0x5e15('0x101'):return'vid_end';default:return _0x5e15('0x48');}}[_0x5e15('0x96')](_0x2913b2,_0xd38e83){_0x2913b2[_0x5e15('0x8b')]=null;for(const _0x479bf5 in _0x2913b2){const _0x38b0bd=_0x2913b2[_0x479bf5];if(_0x38b0bd instanceof _0x27cce9){const _0x30e3e9=_0xd38e83[_0x5e15('0x21')](_0x38b0bd[_0x5e15('0x26')]['rootName']);_0x2913b2[_0x479bf5]=this[_0x5e15('0xa7')](_0x38b0bd,_0x30e3e9);}if(_0x38b0bd instanceof _0x1267ff){const _0x56dfd5=_0xd38e83[_0x5e15('0x21')](_0x38b0bd[_0x5e15('0x26')][_0x5e15('0xde')]);_0x2913b2[_0x479bf5]=this[_0x5e15('0x65')](_0x38b0bd,_0x56dfd5);}_0x5e15('0x26')===_0x479bf5&&(_0x2913b2[_0x5e15('0x26')]=_0xd38e83[_0x5e15('0x21')](_0x2913b2[_0x5e15('0x26')][_0x5e15('0xde')]));}}[_0x5e15('0x65')](_0x4de740,_0x6f1680){return this[_0x5e15('0x5a')]['model'][_0x5e15('0xf0')](this[_0x5e15('0xa7')](_0x4de740['start'],_0x6f1680),this[_0x5e15('0xa7')](_0x4de740[_0x5e15('0x62')],_0x6f1680));}[_0x5e15('0xa7')](_0x2324d1,_0x4e8d93){return this['editor'][_0x5e15('0x7f')]['createPositionFromPath'](_0x4e8d93,_0x2324d1[_0x5e15('0xe2')],_0x2324d1[_0x5e15('0xb7')]);}['_handleInsertOperation'](_0x13ed8d){const _0x3b157e=this[_0x5e15('0x6d')][_0x5e15('0x21')](_0x13ed8d[_0x5e15('0x71')][_0x5e15('0x26')][_0x5e15('0xde')]),_0x122147=this[_0x5e15('0xa7')](_0x13ed8d[_0x5e15('0x71')],_0x3b157e),_0x3afdb6=null===_0x13ed8d[_0x5e15('0xa0')]?null:_0x13ed8d['_authorId']||this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x305fab=_0x122147[_0x5e15('0xbb')],_0x175af4=this[_0x5e15('0xa4')],_0x17c006=[];for(const _0x3f8024 of _0x13ed8d[_0x5e15('0xe6')])if(_0x3f8024['is'](_0x5e15('0xa1')))_0x17c006[_0x5e15('0x25')](this[_0x5e15('0x70')](_0x3f8024));else for(let _0x1b136f=0x0;_0x1b136f<_0x3f8024['offsetSize'];_0x1b136f++)_0x17c006[_0x5e15('0x25')](new _0x41cbf8(_0x5e15('0xb8'),{'vid':this['_revisionId']++}));const _0x4440d2=this[_0x5e15('0xa4')];for(let _0x461ed2=_0x175af4;_0x461ed2<_0x4440d2;_0x461ed2++)this[_0x5e15('0x30')][_0x5e15('0x85')](_0x461ed2,{'userId':_0x3afdb6});_0x305fab['_insertChild'](_0x122147['offset'],_0x17c006);}['_handleMoveOperation'](_0x3d73e7){(_0x3d73e7=this[_0x5e15('0x3b')](_0x3d73e7,this[_0x5e15('0x6d')]))['_execute']();const _0x4a98a1=null===_0x3d73e7[_0x5e15('0xa0')]?null:_0x3d73e7['_authorId']||this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x34e357=_0x3d73e7[_0x5e15('0xec')](),_0x252b8d=_0x34e357[_0x5e15('0xbb')],_0x57b61c=_0x34e357[_0x5e15('0xc8')];!function _0xf203c6(_0x16dcce,_0x2486e6,_0x390318,_0x58ffe5){for(let _0x14d135=_0x390318;_0x14d135<_0x58ffe5;_0x14d135++){const _0x12bcc9=_0x2486e6[_0x5e15('0xb3')](_0x14d135);_0x12bcc9['is'](_0x5e15('0xa1'),_0x5e15('0xb8'))?_0x16dcce[_0x5e15('0x85')](_0x12bcc9[_0x5e15('0xf6')](_0x5e15('0x48')),{'userId':_0x4a98a1}):(_0x16dcce[_0x5e15('0x85')](_0x12bcc9[_0x5e15('0xf6')]('vid_start'),{'userId':_0x4a98a1}),_0xf203c6(_0x16dcce,_0x12bcc9,0x0,_0x12bcc9[_0x5e15('0x2b')]),_0x16dcce[_0x5e15('0x85')](_0x12bcc9[_0x5e15('0xf6')](_0x5e15('0x47')),{'userId':_0x4a98a1}));}}(this[_0x5e15('0x30')],_0x252b8d,_0x57b61c,_0x57b61c+_0x3d73e7[_0x5e15('0x4d')]);}[_0x5e15('0x18')](_0xaae83e){const _0x20c5c5=null===(_0xaae83e=this['_cloneOperation'](_0xaae83e,this[_0x5e15('0x6d')]))[_0x5e15('0xa0')]?null:_0xaae83e[_0x5e15('0xa0')]||this['editor'][_0x5e15('0x49')]['get'](_0x5e15('0x104'))['me']['id'],_0x12f3c3=_0xaae83e[_0x5e15('0xd5')]['parent'],_0x1936c6=_0xaae83e[_0x5e15('0x92')][_0x5e15('0xbb')],_0x3a13ef=_0x12f3c3[_0x5e15('0xf6')](_0x5e15('0x47')),_0x1069f7=_0x1936c6['getAttribute'](_0x5e15('0xba'));_0x12f3c3[_0x5e15('0x4b')]('vid_end',_0x1936c6['getAttribute'](_0x5e15('0x47'))),_0x1936c6[_0x5e15('0x4b')](_0x5e15('0x47'),_0x3a13ef),this[_0x5e15('0x30')]['set'](_0x1069f7,{'userId':_0x20c5c5}),this[_0x5e15('0x30')][_0x5e15('0x85')](_0x3a13ef,{'userId':_0x20c5c5}),_0xaae83e[_0x5e15('0xc1')]();}[_0x5e15('0x44')](_0x33586b){const _0xf9ef8f=null===(_0x33586b=this[_0x5e15('0x3b')](_0x33586b,this[_0x5e15('0x6d')]))[_0x5e15('0xa0')]?null:_0x33586b[_0x5e15('0xa0')]||this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')]('Users')['me']['id'],_0x540ffc=_0x33586b[_0x5e15('0xf')],_0x58f743=_0x33586b[_0x5e15('0xd1')][_0x5e15('0xbb')];_0x33586b['_execute']();const _0x9051d8=_0x58f743['getAttribute'](_0x5e15('0x47')),_0x4273c7=_0x33586b['insertionPosition'][_0x5e15('0x87')];if(_0x540ffc){const _0x2fec63=_0x4273c7['getAttribute'](_0x5e15('0x47')),_0x39361f=_0x58f743[_0x5e15('0xf6')](_0x5e15('0x47'));_0x58f743['_setAttribute'](_0x5e15('0x47'),_0x2fec63),_0x4273c7['_setAttribute'](_0x5e15('0x47'),_0x39361f),this['_touched']['set'](_0x58f743[_0x5e15('0xf6')](_0x5e15('0x47')),{'userId':_0xf9ef8f}),this['_touched']['set'](_0x4273c7[_0x5e15('0xf6')](_0x5e15('0xba')),{'userId':_0xf9ef8f});}else{const _0x706ee9=this[_0x5e15('0xa4')]++,_0x256d52=this['_revisionId']++;_0x58f743['_setAttribute'](_0x5e15('0x47'),_0x706ee9),_0x4273c7[_0x5e15('0x4b')]('vid_start',_0x256d52),_0x4273c7['_setAttribute']('vid_end',_0x9051d8),this[_0x5e15('0x30')][_0x5e15('0x85')](_0x706ee9,{'userId':_0xf9ef8f}),this[_0x5e15('0x30')][_0x5e15('0x85')](_0x256d52,{'userId':_0xf9ef8f});}}[_0x5e15('0x103')](_0x4cbeb4){if(!_0x4cbeb4[_0x5e15('0xd9')])return;const _0x174029=(_0x4cbeb4=this[_0x5e15('0x3b')](_0x4cbeb4,this['_diffRoots']))[_0x5e15('0x2e')]?_0x4cbeb4[_0x5e15('0x2e')][_0x5e15('0x26')]:null,_0x343f8a=_0x4cbeb4[_0x5e15('0x22')]?_0x4cbeb4[_0x5e15('0x22')][_0x5e15('0x26')]:null;_0x174029&&this[_0x5e15('0x1')][_0x5e15('0x9e')](_0x4cbeb4[_0x5e15('0x3')]),_0x343f8a&&this[_0x5e15('0x1')]['set'](_0x4cbeb4['name'],_0x4cbeb4[_0x5e15('0x22')]['clone']());const _0x24d0ed=null===_0x4cbeb4['_authorId']?null:_0x4cbeb4[_0x5e15('0xa0')]||this[_0x5e15('0x5a')]['plugins'][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x56b982=_0x4cbeb4[_0x5e15('0x3')];if(!this[_0x5e15('0x51')][_0x5e15('0x4e')](_0x56b982))return void this['_touchedMarkers'][_0x5e15('0x85')](_0x56b982,{'range':_0x4cbeb4[_0x5e15('0x2e')],'userId':_0x24d0ed});const _0x5f31c4=this['_touchedMarkers'][_0x5e15('0x21')](_0x56b982),_0x513093=_0x5f31c4['range'],_0x4efd4d=_0x4cbeb4[_0x5e15('0x22')];null==_0x513093&&null==_0x4efd4d||_0x513093&&_0x4efd4d&&_0x513093[_0x5e15('0x94')](_0x4efd4d)?this['_touchedMarkers'][_0x5e15('0x9e')](_0x4cbeb4[_0x5e15('0x3')]):_0x5f31c4[_0x5e15('0x78')]=_0x24d0ed;}[_0x5e15('0xa9')](_0x288605,_0x304c5e){this['_diffRoots'][_0x5e15('0x4e')](_0x288605[_0x5e15('0xde')])?this[_0x5e15('0x57')]['get'](_0x288605[_0x5e15('0xde')])[_0x5e15('0xee')]=_0x288605[_0x5e15('0xc9')]:(this[_0x5e15('0x57')][_0x5e15('0x85')](_0x288605['rootName'],G(_0x288605[_0x5e15('0xde')],!0x0)),this['_diffRootsAttributes'][_0x5e15('0x85')](_0x288605[_0x5e15('0xde')],{}),_0x304c5e&&this[_0x5e15('0x6d')][_0x5e15('0x85')](_0x288605[_0x5e15('0xde')],G(_0x288605[_0x5e15('0xde')],!0x0)));const _0x50f44b=null===_0x288605[_0x5e15('0xa0')]?null:_0x288605['_authorId']||this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x19ed1a=this[_0x5e15('0x64')][_0x5e15('0x21')](_0x288605[_0x5e15('0xde')]);_0x19ed1a&&_0x19ed1a[_0x5e15('0x78')]===_0x50f44b?this[_0x5e15('0x64')][_0x5e15('0x9e')](_0x288605[_0x5e15('0xde')]):this['_touchedRoots']['set'](_0x288605[_0x5e15('0xde')],{'userId':_0x50f44b,'isAttached':_0x288605[_0x5e15('0xc9')]});}[_0x5e15('0xb1')](_0x4f43e9){const _0x2fe6db=this[_0x5e15('0x72')][_0x5e15('0x21')](_0x4f43e9['root'][_0x5e15('0xde')]);null===_0x4f43e9[_0x5e15('0x9d')]?delete _0x2fe6db[_0x4f43e9[_0x5e15('0xe5')]]:_0x2fe6db[_0x4f43e9[_0x5e15('0xe5')]]=_0x4f43e9[_0x5e15('0x9d')];}}function q(_0x4cd09d){const _0x24e937=G(_0x4cd09d['rootName'],_0x4cd09d[_0x5e15('0xbc')]());for(const _0x56fae0 of _0x4cd09d['getChildren']()){const _0x9bae77=_0x56fae0[_0x5e15('0xbd')](!0x0);_0x24e937[_0x5e15('0xed')](_0x9bae77);}return _0x24e937;}function G(_0x305177,_0x495e70=!0x0){const _0x4e6174=new _0x143316();return _0x4e6174[_0x5e15('0xde')]=_0x305177,_0x4e6174[_0x5e15('0xee')]=_0x495e70,_0x4e6174[_0x5e15('0xbc')]=()=>_0x4e6174['_isAttached'],_0x4e6174;}function L(_0x28543c,_0x2dc201,_0x4d81ea){const _0x2c37a8=_0x5e15('0x101')==_0x28543c['type']?_0x4d81ea['createPositionAt'](_0x28543c[_0x5e15('0xea')],'end'):_0x4d81ea[_0x5e15('0x6e')](_0x28543c[_0x5e15('0xea')]);return _0x4d81ea[_0x5e15('0xda')](_0x2dc201,_0x2c37a8['path'],_0x2c37a8[_0x5e15('0xb7')]);}function W(_0x3a8495,_0xad50b9,_0x372acb){const _0x17791a='elementStart'==_0x3a8495[_0x5e15('0xc3')]?_0x372acb[_0x5e15('0xc')](_0x3a8495[_0x5e15('0xea')],0x0):_0x372acb[_0x5e15('0x34')](_0x3a8495[_0x5e15('0xea')]);return _0x372acb[_0x5e15('0xda')](_0xad50b9,_0x17791a[_0x5e15('0xe2')],_0x17791a[_0x5e15('0xb7')]);}
|