@ckeditor/ckeditor5-revision-history 38.0.0-rc.0 → 38.0.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 _0x170e=['_isPendingUpdate','isReady','model','children','update','updateRevisions','howMany','root','reInit','_replaceEditorDataWithRevisionData','keys','_prepareViewToSave','plugins','repository','_createInitialRevision','markerToData','config','nodeAfter','data-revision-','elementEnd','_fixPosition','_loadedStateData','_getBaseVids','key','revisionHistory.resumeUnsavedRevision','revision-end','attributes','previousPosition','start','vid','createPositionFromPath','getCurrentRevisionId','attributesAfter','_handleRootAttributeOperation','_initialRoots','_lastTo','splitPosition','reverse','PendingActions','split','insertions','getRevisions','history','document','insert','_idsRoots','_markChanges','upcast','_removeRevisionMarkers','toModel','_reset','reinsert','_handleMoveOperation','shift','_execute','dataDowncast','_createFromRanges','_processRootBeforeSave','$text','end','createPositionAfter','affectsData','size','Empty\x20document','from','_saveMetaData','_initialRevisionId','marker','_source','_removePendingAction','_touchedMarkers','toData','fromVersion','setRevisionData','length','_insertChild','item','createdAt','initialData','startsWith','rootName','currentRevision','oldRange','ready','element','getAncestors','vid_start','source','getUser','_update','bind','_removeMetaData','_handleInsertOperation','_makeRevision','roots','toVersion','processor','remove','rootsAttributes','collaboration.channelId','saveRevision','editor','revision:','set','afterInit','createRange','locale','getRoot','_touched','Users','markers','toView','_transformMarkers','creatorId','addRevision','move','_handleRootOperation','addRootAttribute','_applyOperations','_getState','_makeModelFromViewString','attachChange','sendBufferedUpdates','init','_bufferedUpdates','string','documentFragment','revision','Initial\x20revision','_bufferUpdate','range','_clone','clear','position','revision-start','_findInsertionIndex','getNodeByPath','delete','view','getChild','getChildren','_lastFrom','elementStart','includes','_isInit','push','getAttributes','_startingVersion','createRevision','_generateTape','_calculateMetaData','newRange','resolve','max','creator','RevisionTracker','getRange','name','type','path','_baseRootsAttributes','useFillerType','NEGATIVE_INFINITY','authorsIds','_diffRoots','find','version','getIndex','_touchedRoots','RealTimeCollaborationClient','isEqual','keepParagraph','createPositionAt','_loadRevisionData','setSource','getWalker','_markers','_diffRootsAttributes','_fixRange','_handleMarkerOperation','clone','isAdd','parent','_cloneOperation','hasContent','buildRevisionData','_addPendingAction','RevisionsRepository','filter','getAttribute','_setConversion','stickiness','merge','_handleSplitOperation','_revisionDataBuilder','getRevisionDocumentData','_baseIdsRoots','dataToMarker','_loadState','deletion','some','_getVidAttributeName','diffData','_copyMarkers','requires','for','map','_handleOperation','get','_continueCurrentRevision','_isAttached','vid_end','tableCell','add','_pendingAction','editing','_startingRevisionId','conversion','isAttached','define','authors','getRevision','userId','getTime','_savedMetaData','_revisionId','has','newValue','_handleMergeOperation','_authorId','addRevisionData','attributesBefore','nodes','graveyardPosition','targetPosition','createPositionBefore','getRootNames','deletions','then','_getPreviousFrom','_createCurrentRevision','getRevisionRootsAttributes','paragraph','_setAttribute','_getFromVersion','_makeIdsRoot','getData','getLatestVersion','_baseRoots','data','slice','baseVersion','loadState','parse','offsetSize','values','adapter','_fixOperation','isEnabled','getTransformedByOperation','finally','$graveyard','forEach'];(function(_0x44854e,_0x170e17){const _0x584882=function(_0x429d74){while(--_0x429d74){_0x44854e['push'](_0x44854e['shift']());}};_0x584882(++_0x170e17);}(_0x170e,0x184));const _0x5848=function(_0x44854e,_0x170e17){_0x44854e=_0x44854e-0x0;let _0x584882=_0x170e[_0x44854e];return _0x584882;};import{Users as _0x1a6a68}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x34844c,PendingActions as _0xfdd86a}from'ckeditor5/src/core';import{logWarning as _0x1461fb,uid as _0x31c0d1}from'ckeditor5/src/utils';import{Position as _0x5cf6ce,Range as _0x325215,Element as _0xff880d,DocumentFragment as _0x2edb62,ViewText as _0x4a0d50,ViewElement as _0x6a31b0,ViewContainerElement as _0x20aef9,ViewAttributeElement as _0x301b3c,ViewEmptyElement as _0x3e16a4,ViewRawElement as _0x45d35d,ViewUIElement as _0x3d25ea,ViewDocumentFragment as _0x27b500}from'ckeditor5/src/engine';import _0x222cd5 from'./revisionsrepository';import{getTranslation as _0x20a1bb}from'./utils/common-translations';import{cloneDeep as _0x1a20f3,isEqual as _0xa78a5b}from'lodash-es';const j={'c':_0x20aef9,'a':_0x301b3c,'e':_0x3e16a4,'r':_0x45d35d,'u':_0x3d25ea};export default class l extends _0x34844c{static get['pluginName'](){return _0x5848('0x1e');}static get[_0x5848('0x4f')](){return[_0x1a6a68,_0x222cd5,_0xfdd86a];}constructor(_0x5daa1b){super(_0x5daa1b),this['adapter']=null,this[_0x5848('0xdb')]=null,this['_revisionDataBuilder']=new T(this[_0x5848('0xef')]),this[_0x5848('0xcc')]=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xed'))||'initial',this[_0x5848('0x106')]=new Map(),this[_0x5848('0x9f')]=null;const _0x4e287c=_0x31c0d1();this[_0x5848('0xce')]={'history':this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0xb4')],'getLatestVersion':()=>Promise[_0x5848('0x1b')](this[_0x5848('0xef')][_0x5848('0x8c')]['document']['version']),'getCurrentRevisionId':()=>_0x4e287c},this['set'](_0x5848('0x8b'),!0x1),this[_0x5848('0xf1')](_0x5848('0x85'),!0x0),this['set'](_0x5848('0x8a'),!0x1),this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0x5e')](_0x5848('0xa2'),!0x0),this[_0x5848('0xef')][_0x5848('0x5c')][_0x5848('0x50')](_0x5848('0xb9'))[_0x5848('0x48')]({'view':_0x5848('0x2')});}[_0x5848('0x105')](){this[_0x5848('0x97')]=this['editor'][_0x5848('0x96')]['get'](_0x5848('0x3e')),this[_0x5848('0x41')](),this[_0x5848('0xef')][_0x5848('0x7c')]['on'](_0x5848('0xdd'),()=>{const _0x54f114=this['repository'][_0x5848('0x60')](0x0),_0x58c4f9=_0x54f114&&null===_0x54f114['creator']?_0x54f114:null;if(this['_continueCurrentRevision']=!!_0x58c4f9&&this['editor']['config']['get'](_0x5848('0xa2')),this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x65')](_0x5848('0x2c'))){const _0x2e4d3d=this[_0x5848('0xce')][_0x5848('0xa9')](),_0x1a2cc3=this[_0x5848('0x97')][_0x5848('0x60')](_0x2e4d3d);if(_0x1a2cc3)this[_0x5848('0x16')]=_0x1a2cc3['fromVersion'],this[_0x5848('0x54')]=!0x1;else{const _0x41b3d2=this['_source'][_0x5848('0xb4')]['_operations'][_0x5848('0x28')](_0x45f996=>!_0x45f996[_0x5848('0x13')]),_0x3ebd81=_0x41b3d2?_0x41b3d2[_0x5848('0x7e')]:this[_0x5848('0xce')][_0x5848('0xb4')][_0x5848('0x29')];_0x54f114?(_0x54f114[_0x5848('0xe9')]<_0x3ebd81&&_0x54f114[_0x5848('0xe3')]({'toVersion':_0x3ebd81}),this['_continueCurrentRevision']?(this[_0x5848('0xce')][_0x5848('0xa9')]=()=>_0x58c4f9['id'],this[_0x5848('0x16')]=_0x58c4f9[_0x5848('0xd2')]):(this['_startingVersion']=_0x54f114['toVersion'],this[_0x5848('0x54')]=!0x1)):(this['_startingVersion']=_0x3ebd81,this[_0x5848('0x54')]=!0x1);}}else _0x58c4f9&&(this[_0x5848('0xef')]['model'][_0x5848('0xb5')][_0x5848('0xb4')][_0x5848('0x29')]=Math[_0x5848('0x1c')](_0x58c4f9[_0x5848('0xe9')],this['editor']['model'][_0x5848('0xb5')][_0x5848('0xb4')][_0x5848('0x29')]),_0x58c4f9[_0x5848('0xd2')]===_0x58c4f9['toVersion']?(0x0!==_0x58c4f9[_0x5848('0xd2')]&&(this['_source'][_0x5848('0xa9')]=()=>_0x58c4f9['id']),this['_continueCurrentRevision']=!0x1):this[_0x5848('0x54')]&&(this[_0x5848('0xce')][_0x5848('0xa9')]=()=>_0x58c4f9['id'],this[_0x5848('0x16')]=_0x58c4f9[_0x5848('0xd2')])),this['_continueCurrentRevision']||(this[_0x5848('0x16')]=this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x29')]);this[_0x5848('0x45')]['init'](this[_0x5848('0xce')][_0x5848('0xb4')]),this[_0x5848('0x98')](this['_startingVersion']),this[_0x5848('0x73')](this['_startingVersion']),this[_0x5848('0x83')]&&this[_0x5848('0x104')]();}),this[_0x5848('0xe4')](_0x5848('0x8b'))['to'](this,_0x5848('0x8a'),_0x2aa687=>!_0x2aa687);}async[_0x5848('0xf2')](){if(this[_0x5848('0x97')][_0x5848('0xd4')]>0x0){const _0x4fea36=this['repository'][_0x5848('0x60')](0x0),_0x1ea2f7=await this[_0x5848('0x46')](_0x4fea36),_0x3d111c=await this[_0x5848('0x74')](_0x4fea36);this['_replaceEditorDataWithRevisionData'](_0x1ea2f7,_0x3d111c);}}[_0x5848('0x31')](_0x1f989c){this[_0x5848('0xce')]=_0x1f989c;}async[_0x5848('0x8e')](){const _0x2520e8=await this['_source'][_0x5848('0x7a')]();if(_0x2520e8>this[_0x5848('0xdb')][_0x5848('0xe9')]){await this[_0x5848('0x49')]();const _0x2ff7db=this['buildRevisionData']({'revision':this[_0x5848('0xdb')],'to':_0x2520e8});_0x2ff7db[_0x5848('0x5f')]=_0x2ff7db[_0x5848('0x26')]['map'](_0x5300c2=>this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xf7'))[_0x5848('0xe2')](_0x5300c2)),this[_0x5848('0xdb')][_0x5848('0xe3')](_0x2ff7db);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x5848('0x9f')]&&(await this[_0x5848('0x30')](this[_0x5848('0xdb')]),this[_0x5848('0x45')][_0x5848('0x7f')](this['currentRevision']),this[_0x5848('0x9f')]={'fromVersion':this[_0x5848('0xdb')][_0x5848('0xd2')],'authors':this[_0x5848('0xdb')][_0x5848('0x5f')][_0x5848('0x7d')]()});}async[_0x5848('0xee')](_0x1dca98={},_0x44a843=null){const _0x4a009b=[];await this['_loadState'](),this[_0x5848('0x54')]=!0x1,_0x44a843>this[_0x5848('0xdb')][_0x5848('0xe9')]&&(_0x44a843=null),null===_0x44a843&&(_0x44a843=await this[_0x5848('0xce')]['getLatestVersion']());const _0x104468=this[_0x5848('0x77')](_0x44a843),_0x224943=this[_0x5848('0x3c')]({'from':_0x104468,'to':_0x44a843});if(this[_0x5848('0xdb')][_0x5848('0xe9')]<_0x44a843){const _0x6d1434=this[_0x5848('0x3c')]({'revision':this[_0x5848('0xdb')],'from':_0x44a843,'to':_0x44a843});_0x6d1434[_0x5848('0x5f')]=[],_0x6d1434[_0x5848('0x26')]=[],_0x6d1434['id']=this[_0x5848('0xdb')]['id'],this[_0x5848('0xdb')]['_update'](_0x6d1434,!0x0),delete _0x6d1434[_0x5848('0x5f')],_0x4a009b[_0x5848('0x14')](_0x6d1434);}_0x1dca98[_0x5848('0xfb')]=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')]('Users')['me']['id'],_0x1dca98[_0x5848('0x20')]=_0x1dca98[_0x5848('0x20')]||null,_0x1dca98['id']=_0x1dca98['id']||_0x31c0d1(),_0x1dca98={..._0x1dca98,..._0x224943};const _0x305b20=this['addRevisionData'](_0x1dca98);_0x4a009b['push'](_0x1dca98);const _0x1e8cb6=this['repository'][_0x5848('0x2a')](_0x305b20);if(0x0!==_0x1e8cb6){const _0x3bbd18=this[_0x5848('0x97')][_0x5848('0x60')](_0x1e8cb6-0x1);if(_0x3bbd18[_0x5848('0xd2')]!==_0x44a843){const _0x3544c4=this[_0x5848('0x45')]['getData'](_0x44a843,_0x3bbd18['toVersion']),_0xb5a21c={'id':_0x3bbd18['id'],'diffData':_0x3544c4['diffData'],'authorsIds':_0x3544c4['authorsIds'],'authors':_0x3544c4[_0x5848('0x26')][_0x5848('0x51')](_0x497d45=>this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['getUser'](_0x497d45)),'fromVersion':_0x44a843};_0x3bbd18===this[_0x5848('0xdb')]&&(_0xb5a21c['createdAt']=new Date(_0x1dca98[_0x5848('0xd7')][_0x5848('0x62')]()+0xa)),_0x3bbd18[_0x5848('0xe3')](_0xb5a21c,!0x0),delete _0xb5a21c['authors'],_0x4a009b[_0x5848('0x14')](_0xb5a21c);}}if(this[_0x5848('0x83')]){for(const _0x115e42 of _0x4a009b)this[_0x5848('0x4')](_0x115e42['id'],_0x115e42,!0x0);this[_0x5848('0x104')]();}return _0x305b20;}[_0x5848('0x69')](_0x30738d){const _0x560f6c=this[_0x5848('0x97')][_0x5848('0x17')](_0x30738d);return this[_0x5848('0x83')]&&_0x560f6c['on']('_update',(_0x21ad72,_0xba6b1b,_0x1fb655)=>{_0x1fb655||(this['_bufferUpdate'](_0xba6b1b['id'],_0xba6b1b,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x5848('0xfc')](_0x560f6c,this[_0x5848('0xa')](_0x560f6c)),_0x560f6c;}async['getRevisionDocumentData'](_0x277a3e){await this[_0x5848('0x30')](_0x277a3e);const _0x41a5c4={};for(const _0x3f93d5 in _0x277a3e[_0x5848('0x4d')]){if(_0x277a3e['diffData'][_0x3f93d5]['attachChange']&&!_0x277a3e[_0x5848('0x4d')][_0x3f93d5]['attachChange'][_0x5848('0x5d')])continue;const _0x238ea4=this[_0x5848('0xba')](JSON[_0x5848('0x80')](_0x277a3e['diffData'][_0x3f93d5][_0x5848('0xb2')])),_0x1f90df=this['editor']['editing'][_0x5848('0xd')]['document'],_0x4834ce=new _0x27b500(_0x1f90df,_0x238ea4['map'](_0xa25a08=>F(_0xa25a08,this['editor'])));this[_0x5848('0xef')]['data']['processor']['useFillerType']('marked'),_0x41a5c4[_0x3f93d5]=this[_0x5848('0xef')][_0x5848('0x7c')][_0x5848('0xea')][_0x5848('0xd1')](_0x4834ce),this['editor']['data'][_0x5848('0xea')][_0x5848('0x24')]('default');}return _0x41a5c4;}async['getRevisionRootsAttributes'](_0xefd3a6){await this[_0x5848('0x30')](_0xefd3a6);const _0xfc244a={};for(const _0x2fa8c1 in _0xefd3a6[_0x5848('0x4d')])_0xefd3a6['diffData'][_0x2fa8c1][_0x5848('0x103')]&&!_0xefd3a6[_0x5848('0x4d')][_0x2fa8c1][_0x5848('0x103')][_0x5848('0x5d')]||(_0xfc244a[_0x2fa8c1]=_0xefd3a6[_0x5848('0x4d')][_0x2fa8c1][_0x5848('0xaa')]||{});return _0xfc244a;}['sendBufferedUpdates'](){if(0x0===this[_0x5848('0x106')][_0x5848('0xc8')])return;if(this[_0x5848('0x8a')])return;let _0x5e5f16=Array[_0x5848('0xca')](this[_0x5848('0x106')][_0x5848('0x82')]());this[_0x5848('0x106')]['clear']();for(let _0x4da5a5=0x0;_0x4da5a5<_0x5e5f16[_0x5848('0xd4')];_0x4da5a5++){const _0x5681e2=_0x5e5f16[_0x4da5a5];let _0x1d72b7=!0x1;for(const _0x17d447 of Object['keys'](_0x5681e2))void 0x0===_0x5681e2[_0x17d447]?delete _0x5681e2[_0x17d447]:'id'!==_0x17d447&&(_0x1d72b7=!0x0);_0x1d72b7||(_0x5e5f16[_0x4da5a5]=null);}if(_0x5e5f16=_0x5e5f16['filter'](_0x5d4666=>null!==_0x5d4666),!_0x5e5f16[_0x5848('0xd4')])return;for(let _0x16b662=0x0;_0x16b662<_0x5e5f16[_0x5848('0xd4')];_0x16b662++){const _0x3da442=_0x5e5f16[_0x16b662];void 0x0!==_0x3da442['fromVersion']&&void 0x0===_0x3da442[_0x5848('0xe9')]&&(_0x3da442[_0x5848('0xe9')]=this[_0x5848('0x97')][_0x5848('0x60')](_0x3da442['id'])['toVersion']),void 0x0!==_0x3da442[_0x5848('0xe9')]&&void 0x0===_0x3da442[_0x5848('0xd2')]&&(_0x3da442[_0x5848('0xd2')]=this[_0x5848('0x97')][_0x5848('0x60')](_0x3da442['id'])[_0x5848('0xd2')]);}const _0x203ebe=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xed'));this[_0x5848('0x8a')]=!0x0,this[_0x5848('0x3d')](),this[_0x5848('0x83')][_0x5848('0x8f')](_0x5e5f16,_0x203ebe)[_0x5848('0x87')](()=>{this[_0x5848('0x8a')]=!0x1;})[_0x5848('0x71')](_0xbd48ff=>{if(_0xbd48ff)for(const _0x1b4343 of _0xbd48ff)this['setRevisionData']({'id':_0x1b4343['id'],'createdAt':_0x1b4343[_0x5848('0xd7')]});this['_removePendingAction'](),this[_0x5848('0x104')]();});}[_0x5848('0x93')](_0x19233e,_0x2f5be8){let _0x913122=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xd8')),_0xa23260=this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0x53')](_0x5848('0xec'));if(void 0x0===_0x913122){_0x913122={};for(const _0x4f5962 of this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')]())_0x913122[_0x4f5962]='';}if(_0x5848('0x0')==typeof _0x913122&&(_0x913122={'main':_0x913122}),void 0x0===_0xa23260){_0xa23260={};for(const _0x466a91 of this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')]())_0xa23260[_0x466a91]={};}let _0x5ad8c6=!0x1;const _0xc1e762=Object[_0x5848('0x94')](_0x913122),_0x4e6283=Object[_0x5848('0x94')](_0x19233e);for(const _0x559c37 of _0xc1e762){if(_0x913122[_0x559c37]!==_0x19233e[_0x559c37]&&''!==_0x913122[_0x559c37]['trim']()){_0x5ad8c6=!0x0;break;}if(!_0xa78a5b(_0xa23260[_0x559c37],_0x2f5be8[_0x559c37])&&Object[_0x5848('0x94')](_0xa23260[_0x559c37])[_0x5848('0xd4')]>0x0){_0x5ad8c6=!0x0;break;}}_0x5ad8c6||(_0x5ad8c6=_0x4e6283[_0x5848('0x4b')](_0x49bbcd=>!_0xc1e762[_0x5848('0x12')](_0x49bbcd))),_0x5ad8c6&&_0x1461fb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x913122,'editorRootsAttributes':_0xa23260,'revisionData':_0x19233e,'revisionRootsAttributes':_0x2f5be8}),this['editor']['config']['set'](_0x5848('0xd8'),_0x19233e),this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0xf1')](_0x5848('0xec'),_0x2f5be8);}[_0x5848('0x3d')](){if(!this[_0x5848('0x59')]){const _0x25a1e2=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xb0'));this[_0x5848('0x59')]=_0x25a1e2[_0x5848('0x58')](_0x20a1bb(this[_0x5848('0xef')][_0x5848('0xf4')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x5848('0xcf')](){this[_0x5848('0x59')]&&(this['editor'][_0x5848('0x96')]['get']('PendingActions')['remove'](this[_0x5848('0x59')]),this[_0x5848('0x59')]=null);}[_0x5848('0xa')](_0xed97a4){const _0xa7ba5=this[_0x5848('0x97')][_0x5848('0xb3')]();_0xa7ba5[_0x5848('0xaf')]();let _0x2d6a2a=0x0;for(;_0x2d6a2a<_0xa7ba5['length'];){const _0x1481d4=_0xa7ba5[_0x2d6a2a];if(_0x1481d4===this[_0x5848('0xdb')]){_0x2d6a2a++;continue;}if(_0x1481d4['id']===this[_0x5848('0xcc')])break;const _0x149689=_0xed97a4[_0x5848('0xe9')]-_0x1481d4[_0x5848('0xe9')]||_0xed97a4[_0x5848('0xd2')]-_0x1481d4['fromVersion'];if(_0x149689>0x0)break;if(_0x149689<0x0)_0x2d6a2a++;else{if(!_0xed97a4['creator']&&_0x1481d4[_0x5848('0x1d')])break;if(_0x1481d4[_0x5848('0x1d')]||!_0xed97a4['creator']){if(_0xed97a4[_0x5848('0xd7')]>_0x1481d4[_0x5848('0xd7')])break;_0x2d6a2a++;}else _0x2d6a2a++;}}return _0x2d6a2a;}[_0x5848('0xd3')](_0x2a9955){const _0x39d767=this[_0x5848('0x97')]['getRevision'](_0x2a9955['id']);if(_0x2a9955[_0x5848('0xd7')]&&(_0x2a9955[_0x5848('0xd7')]=new Date(_0x2a9955[_0x5848('0xd7')])),_0x2a9955[_0x5848('0x26')]){const _0x517c88=this['editor']['plugins']['get'](_0x5848('0xf7'));_0x2a9955[_0x5848('0x5f')]=_0x2a9955[_0x5848('0x26')][_0x5848('0x51')](_0x318d7b=>_0x517c88[_0x5848('0xe2')](_0x318d7b));}_0x39d767[_0x5848('0xe3')](_0x2a9955,!0x0);}['buildRevisionData']({revision:_0xe990b8=null,from:_0x72646b=null,to:_0x109cc6=null}){_0x72646b=null!==_0x72646b?_0x72646b:_0xe990b8[_0x5848('0xd2')],_0x109cc6=null!==_0x109cc6?_0x109cc6:_0xe990b8[_0x5848('0xe9')];const _0xcfd75f=this[_0x5848('0x45')]['getData'](_0x72646b,_0x109cc6),_0x1b84c8={'diffData':_0xcfd75f[_0x5848('0x4d')],'authorsIds':_0xcfd75f[_0x5848('0x26')],'fromVersion':_0x72646b,'toVersion':_0x109cc6};if(!_0xe990b8||_0x109cc6!==_0xe990b8[_0x5848('0xe9')]){const _0x3fe118=_0x109cc6-0x1,_0x4cdf19=this[_0x5848('0xce')][_0x5848('0xb4')]['getOperation'](_0x3fe118);_0x1b84c8['createdAt']=_0x4cdf19&&_0x4cdf19[_0x5848('0xd7')]||new Date();}if(this[_0x5848('0x9f')]&&_0x72646b===this['_loadedStateData'][_0x5848('0xd2')])for(const _0x18c804 of this[_0x5848('0x9f')]['authors'])_0x1b84c8['authorsIds'][_0x5848('0x12')](_0x18c804['id'])||_0x1b84c8[_0x5848('0x26')][_0x5848('0x14')](_0x18c804['id']);return _0x1b84c8;}['_loadRevisionData'](_0x11747e){if(!_0x11747e||_0x11747e[_0x5848('0x4d')])return Promise['resolve']();{const _0x5d4d15=this['editor'][_0x5848('0x9a')][_0x5848('0x53')]('collaboration.channelId');return this[_0x5848('0x83')][_0x5848('0x60')]({'channelId':_0x5d4d15,'revisionId':_0x11747e['id']})['then'](_0x2e9d88=>{_0x11747e[_0x5848('0x4d')]=_0x2e9d88['diffData'];});}}['_bufferUpdate'](_0x500ea5,_0x3e5c8d,_0x40a137){if(this[_0x5848('0x106')][_0x5848('0x65')](_0x500ea5)){const _0x400865=this['_bufferedUpdates'][_0x5848('0x53')](_0x500ea5);_0x3e5c8d=_0x40a137?{..._0x400865,..._0x3e5c8d}:{..._0x3e5c8d,..._0x400865};}this[_0x5848('0x106')]['set'](_0x500ea5,_0x3e5c8d);}[_0x5848('0x77')](_0x238965){const _0x5de286=this['repository'][_0x5848('0xb3')]();_0x5de286[_0x5848('0xaf')](),_0x5de286[_0x5848('0xbf')]();const _0x354486=_0x5de286[_0x5848('0x28')](_0x201afb=>_0x201afb[_0x5848('0xe9')]<=_0x238965)['toVersion'];return _0x354486<this['_startingVersion']?this[_0x5848('0x16')]:_0x354486;}['_createInitialRevision'](_0x5674ca){const _0x34eab4=this[_0x5848('0x97')][_0x5848('0x60')](this[_0x5848('0x97')][_0x5848('0xd4')]-0x1);if(_0x34eab4)this[_0x5848('0xcc')]=_0x34eab4['id'];else{const _0x44c998=!this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0xe8')][_0x5848('0x28')](_0x16b8c4=>this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0x3b')](_0x16b8c4)),_0x4e010d=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')]('Users')['me']['id'],_0x554a6c=_0x20a1bb(this[_0x5848('0xef')][_0x5848('0xf4')],_0x44c998?_0x5848('0xc9'):_0x5848('0x3'));this[_0x5848('0xe7')]({'from':_0x5674ca,'to':_0x5674ca,'id':this['_initialRevisionId'],'name':_0x554a6c,'creatorId':_0x4e010d});}}[_0x5848('0x73')](_0x21d2af){const _0x47129b=this[_0x5848('0xce')][_0x5848('0xa9')]();this['currentRevision']=this[_0x5848('0x97')][_0x5848('0x60')](_0x47129b),this[_0x5848('0xdb')]||(this[_0x5848('0xdb')]=this[_0x5848('0xe7')]({'from':_0x21d2af,'to':_0x21d2af,'id':_0x47129b,'name':'','creatorId':null}));}[_0x5848('0xe7')]({name:_0x4214a6,from:_0x2f01d2,to:_0x46021e,creatorId:_0x1e893a,id:_0x1f2713}){const _0x39f9f9=this['buildRevisionData']({'from':_0x2f01d2,'to':_0x46021e});_0x39f9f9[_0x5848('0x20')]=_0x4214a6,_0x39f9f9[_0x5848('0xfb')]=_0x1e893a,_0x39f9f9['id']=_0x1f2713;const _0x370776=this[_0x5848('0x69')](_0x39f9f9);return this[_0x5848('0x83')]&&this['_bufferUpdate'](_0x39f9f9['id'],_0x39f9f9,!0x0),_0x370776;}['_setConversion'](){this[_0x5848('0xef')][_0x5848('0x5c')][_0x5848('0x50')](_0x5848('0xc1'))[_0x5848('0x99')]({'model':'revision'});}[_0x5848('0xba')](_0x5e1a89){return(_0x5e1a89=_0x5e1a89[_0x5848('0x3f')](_0xfe9db3=>!_0xfe9db3['name']||_0x5848('0x9')!==_0xfe9db3[_0x5848('0x20')]&&_0x5848('0xa3')!==_0xfe9db3[_0x5848('0x20')]))[_0x5848('0x89')](_0xeecb02=>{_0x5848('0x0')!=typeof _0xeecb02&&(_0xeecb02[_0x5848('0x8d')]=this[_0x5848('0xba')](_0xeecb02[_0x5848('0x8d')]),_0xeecb02['attributes']=_0xeecb02[_0x5848('0xa4')][_0x5848('0x3f')](_0x8a8c6a=>!_0x8a8c6a[0x0]['startsWith'](_0x5848('0x9c'))));}),_0x5e1a89;}}function F(_0x2e7b7b,_0x3480e0){const _0x42ae79=_0x3480e0[_0x5848('0x5a')][_0x5848('0xd')]['document'];if(_0x5848('0x0')==typeof _0x2e7b7b)return new _0x4a0d50(_0x42ae79,_0x2e7b7b);{const _0x385323=_0x2e7b7b[_0x5848('0x8d')][_0x5848('0x51')](_0x530269=>F(_0x530269,_0x3480e0));return new(j[_0x2e7b7b[(_0x5848('0x21'))]]||_0x6a31b0)(_0x42ae79,_0x2e7b7b[_0x5848('0x20')],_0x2e7b7b['attributes'],_0x385323);}}class T{constructor(_0x21b36f){this[_0x5848('0xef')]=_0x21b36f,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x5848('0xad')]=-0x1,this[_0x5848('0x33')]=new Map(),this['_diffRoots']=new Map(),this[_0x5848('0x34')]=new Map(),this[_0x5848('0x7b')]=new Map(),this[_0x5848('0x23')]=new Map(),this[_0x5848('0xb7')]=new Map(),this[_0x5848('0x47')]=new Map(),this[_0x5848('0xf6')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x5848('0x2b')]=new Map(),this[_0x5848('0x64')]=0x1,this[_0x5848('0xac')]=this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')](),this[_0x5848('0xac')][_0x5848('0x14')](_0x5848('0x88'));}[_0x5848('0x105')](_0x2550a5){this[_0x5848('0xe1')]=_0x2550a5;const _0x72b35b=new Map(),_0x18d540=new Map(),_0x5361a3=this['editor'][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')](!0x0);_0x5361a3[_0x5848('0x14')]('$graveyard');for(const _0x4fd033 of _0x5361a3){const _0x2b35a8=this['editor'][_0x5848('0x8c')]['document'][_0x5848('0xf5')](_0x4fd033),_0x1501b7=B(_0x2b35a8);_0x72b35b[_0x5848('0xf1')](_0x4fd033,_0x1501b7),_0x18d540[_0x5848('0xf1')](_0x4fd033,Object['fromEntries'](_0x2b35a8['getAttributes']()));}const _0x9cd1b6=Array['from'](this[_0x5848('0xef')]['model'][_0x5848('0xf8')])[_0x5848('0x51')](_0x2e6581=>[_0x2e6581[_0x5848('0x20')],_0x2e6581[_0x5848('0x1f')]()]),_0x353739=this[_0x5848('0xe1')][_0x5848('0x29')];this['_saveMetaData'](_0x353739,_0x72b35b,_0x9cd1b6,_0x18d540),this[_0x5848('0x5b')]=this['_revisionId'];const _0x5ddc28=new Map(),_0x2596ca=new Map();for(const _0x53a146 of this[_0x5848('0xac')]){const _0x1a76a3=J(_0x53a146);_0x5ddc28[_0x5848('0xf1')](_0x53a146,_0x1a76a3),_0x2596ca[_0x5848('0xf1')](_0x53a146,{});}this[_0x5848('0xcb')](Number[_0x5848('0x25')],_0x5ddc28,[],_0x2596ca);}[_0x5848('0x79')](_0x319154,_0x5b5849){if(this[_0x5848('0x10')]===_0x319154&&this[_0x5848('0xad')]<=_0x5b5849)this[_0x5848('0x63')]['size']>0x1&&this[_0x5848('0xe5')](this[_0x5848('0xad')]),this['_applyOperations'](this[_0x5848('0xad')],_0x5b5849,!0x0);else{if(!this[_0x5848('0x63')]['has'](_0x319154)){const _0x42389e=this[_0x5848('0x72')](_0x319154);this['_calculateMetaData'](_0x42389e,_0x319154,!0x1);}this[_0x5848('0x19')](_0x319154,_0x5b5849,!0x0);}return this[_0x5848('0x10')]=_0x319154,this['_lastTo']=_0x5b5849,this[_0x5848('0x101')]();}[_0x5848('0x7f')](_0xdf5efe){this[_0x5848('0xbc')](),this['_lastFrom']=_0xdf5efe[_0x5848('0xd2')],this['_lastTo']=_0xdf5efe[_0x5848('0xe9')];for(const _0x390c38 in _0xdf5efe[_0x5848('0x4d')]){const _0x4027cc=_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x103')],_0x5d4f77=_0x1a20f3(_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x6a')])||{},_0x45de3c=this[_0x5848('0x102')](_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x70')]);_0x45de3c['rootName']=_0x390c38,_0x45de3c[_0x5848('0x55')]=!_0x4027cc||!_0x4027cc[_0x5848('0x5d')],_0x45de3c['isAttached']=()=>_0x45de3c[_0x5848('0x55')],this[_0x5848('0x7b')]['set'](_0x390c38,_0x45de3c),this[_0x5848('0x23')][_0x5848('0xf1')](_0x390c38,_0x5d4f77),_0x4027cc&&this[_0x5848('0x2b')][_0x5848('0xf1')](_0x390c38,_0x4027cc);const _0x4e5f47=this[_0x5848('0x78')](_0x45de3c);this[_0x5848('0x47')][_0x5848('0xf1')](_0x390c38,_0x4e5f47);for(const [_0x1a8aa2,_0x31380d]of _0x45de3c[_0x5848('0xf8')]){if(!_0x1a8aa2[_0x5848('0xd9')](_0x5848('0xf0')))continue;const _0x1e6523=_0x1a8aa2['split'](':')[0x2];for(const _0x5c67a6 of _0x31380d[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0x3001c1=this[_0x5848('0x4c')](_0x5c67a6),_0x24ab94=_0x5848('0x9d')==_0x5c67a6[_0x5848('0x21')]?_0x5c67a6['previousPosition']['path']['slice'](0x0,-0x1):_0x5c67a6[_0x5848('0xa5')][_0x5848('0x22')],_0x13791c=_0x4e5f47[_0x5848('0xb')](_0x24ab94)[_0x5848('0x40')](_0x3001c1);this[_0x5848('0xf6')][_0x5848('0xf1')](_0x13791c,{'userId':_0x1e6523});}}}this[_0x5848('0x5b')]=this['_revisionId'];const _0x320835=[...Array(this[_0x5848('0x64')])[_0x5848('0x94')]()]['slice'](0x1)['filter'](_0x4aa281=>!this['_touched']['has'](_0x4aa281));let _0x4cf247=0x0;const _0x404bcf=new Map();for(const _0x572c10 in _0xdf5efe['diffData']){const _0x588e9d=_0xdf5efe[_0x5848('0x4d')][_0x572c10][_0x5848('0x103')],_0x399cc7=_0x1a20f3(_0xdf5efe[_0x5848('0x4d')][_0x572c10][_0x5848('0xaa')])||{},_0x1d0a5c=this[_0x5848('0x102')](_0xdf5efe[_0x5848('0x4d')][_0x572c10]['insertions']);_0x1d0a5c[_0x5848('0xda')]=_0x572c10,_0x1d0a5c[_0x5848('0x55')]=!_0x588e9d||_0x588e9d[_0x5848('0x5d')],_0x1d0a5c[_0x5848('0x5d')]=()=>_0x1d0a5c['_isAttached'],this[_0x5848('0x27')][_0x5848('0xf1')](_0x572c10,_0x1d0a5c),this[_0x5848('0x34')][_0x5848('0xf1')](_0x572c10,_0x399cc7);const _0x965183=this[_0x5848('0x78')](_0x1d0a5c,Number[_0x5848('0x25')]);this[_0x5848('0xb7')]['set'](_0x572c10,_0x965183),_0x404bcf['set'](_0x572c10,_0x1d0a5c[_0x5848('0x5d')]()?_0x399cc7:{});for(const [_0x5355ca,_0x202300]of _0x1d0a5c[_0x5848('0xf8')]){if(!_0x5355ca[_0x5848('0xd9')](_0x5848('0xf0')))continue;const _0x398a3c=_0x5355ca[_0x5848('0xb1')](':')[0x2];for(const _0x27afc9 of _0x202300[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0x1713e9=this[_0x5848('0x4c')](_0x27afc9),_0x76c766=this['_revisionId']++,_0x283089='elementEnd'==_0x27afc9[_0x5848('0x21')]?_0x27afc9[_0x5848('0xa5')][_0x5848('0x22')][_0x5848('0x7d')](0x0,-0x1):_0x27afc9[_0x5848('0xa5')][_0x5848('0x22')];_0x965183['getNodeByPath'](_0x283089)[_0x5848('0x76')](_0x1713e9,_0x76c766),this[_0x5848('0xf6')]['set'](_0x76c766,{'userId':_0x398a3c});}}for(const _0x343414 of this[_0x5848('0xef')][_0x5848('0x8c')]['createRangeIn'](_0x1d0a5c)[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0xbade6c=this[_0x5848('0x4c')](_0x343414),_0x63a914=_0x5848('0x9d')==_0x343414['type']?_0x343414['previousPosition'][_0x5848('0x22')]['slice'](0x0,-0x1):_0x343414[_0x5848('0xa5')][_0x5848('0x22')],_0x24963f=_0x965183[_0x5848('0xb')](_0x63a914);_0x24963f['getAttribute'](_0xbade6c)>0x0||_0x24963f[_0x5848('0x76')](_0xbade6c,_0x320835[_0x4cf247++]);}for(const [_0x31314c,_0x5370a2]of _0x1d0a5c[_0x5848('0xf8')])_0x31314c['startsWith'](_0x5848('0xf0'))||this[_0x5848('0x33')]['set'](_0x31314c,_0x5370a2);}const _0x16a159=J(_0x5848('0x88'));this[_0x5848('0x7b')][_0x5848('0xf1')]('$graveyard',_0x16a159),this[_0x5848('0x47')][_0x5848('0xf1')](_0x5848('0x88'),this[_0x5848('0x78')](_0x16a159,0x1));const _0x1db5a2=J(_0x5848('0x88'));this[_0x5848('0x27')][_0x5848('0xf1')](_0x5848('0x88'),_0x1db5a2),this[_0x5848('0xb7')][_0x5848('0xf1')]('$graveyard',this['_makeIdsRoot'](_0x1db5a2,0x1));const _0x5ac608=Array['from'](this[_0x5848('0x27')])[_0x5848('0x51')](([_0x43a984,_0x338203])=>[_0x43a984,B(_0x338203)]);this[_0x5848('0xcb')](this[_0x5848('0xad')],_0x5ac608,this[_0x5848('0x33')],_0x404bcf);}[_0x5848('0x102')](_0x3a5596){const _0x4f012f=JSON[_0x5848('0x80')](_0x3a5596),_0x490355=this[_0x5848('0xef')][_0x5848('0x5a')]['view'][_0x5848('0xb5')],_0x33ecb3=new _0x27b500(_0x490355,_0x4f012f[_0x5848('0x51')](_0x42e951=>F(_0x42e951,this[_0x5848('0xef')])));return this['editor']['data'][_0x5848('0xbb')](_0x33ecb3);}[_0x5848('0xcb')](_0x5b118e,_0x3b6b30,_0x2977de,_0x465ceb){const _0x187d82=new Map(_0x3b6b30),_0x23c0db=new Map(_0x1a20f3(_0x465ceb)),_0x13681c=new Map();for(const [_0x6f96e1,_0x4753eb]of _0x2977de)_0x13681c[_0x5848('0xf1')](_0x6f96e1,{'start':_0x4753eb[_0x5848('0xa6')]['clone'](),'end':_0x4753eb[_0x5848('0xc5')][_0x5848('0x37')](),'rootName':_0x4753eb[_0x5848('0x91')][_0x5848('0xda')]});this['_savedMetaData'][_0x5848('0xf1')](_0x5b118e,{'roots':_0x187d82,'markers':_0x13681c,'rootsAttributes':_0x23c0db});}[_0x5848('0xe5')](_0x199486){this[_0x5848('0x63')][_0x5848('0xc')](_0x199486);}[_0x5848('0x92')](){this['_reset'](),this[_0x5848('0x10')]=-0x1,this[_0x5848('0xad')]=-0x1,this['_savedMetaData'][_0x5848('0x7')](),this[_0x5848('0x105')](this[_0x5848('0xe1')]);}[_0x5848('0xbc')](){this['_touched'][_0x5848('0x7')](),this['_touchedMarkers'][_0x5848('0x7')](),this[_0x5848('0x2b')][_0x5848('0x7')](),this['_diffRoots'][_0x5848('0x7')](),this[_0x5848('0x34')][_0x5848('0x7')](),this[_0x5848('0x7b')]['clear'](),this[_0x5848('0x23')][_0x5848('0x7')](),this[_0x5848('0xb7')][_0x5848('0x7')](),this[_0x5848('0x47')][_0x5848('0x7')](),this[_0x5848('0x33')][_0x5848('0x7')](),this[_0x5848('0x64')]=0x1,this[_0x5848('0x5b')]=this['_revisionId'];}[_0x5848('0x78')](_0x4aef02,_0x562078=null){let _0x15ba03=null;_0x4aef02['is'](_0x5848('0x1'))||(_0x15ba03=new _0xff880d(_0x4aef02[_0x5848('0x20')],{'vid_start':null===_0x562078?this['_revisionId']++:_0x562078++}));const _0x2d0b9b=[];for(const _0xdee884 of _0x4aef02['getChildren']())if(_0xdee884['is'](_0x5848('0xde'))){_0x2d0b9b[_0x5848('0x14')](this['_makeIdsRoot'](_0xdee884,_0x562078));const _0x1dc338=_0x2d0b9b[_0x2d0b9b[_0x5848('0xd4')]-0x1];null!==_0x562078&&(_0x562078=_0x1dc338['is'](_0x5848('0xde'),_0x5848('0xc4'))?_0x1dc338[_0x5848('0x40')](_0x5848('0xa7'))+0x1:_0x1dc338[_0x5848('0x40')](_0x5848('0x56'))+0x1);}else for(let _0x34d5d4=0x0;_0x34d5d4<_0xdee884[_0x5848('0x81')];_0x34d5d4++)_0x2d0b9b['push'](new _0xff880d(_0x5848('0xc4'),{'vid':null===_0x562078?this[_0x5848('0x64')]++:_0x562078++}));if(_0x4aef02['is']('documentFragment')){const _0x60b564=J(_0x4aef02[_0x5848('0xda')]);return _0x60b564[_0x5848('0xd5')](0x0,_0x2d0b9b),_0x60b564;}return _0x15ba03[_0x5848('0x76')]('vid_end',null===_0x562078?this['_revisionId']++:_0x562078++),_0x15ba03['_insertChild'](0x0,_0x2d0b9b),_0x15ba03;}[_0x5848('0x19')](_0x5a3c2e,_0x495786,_0x400aff){this[_0x5848('0xbc')]();const {roots:_0x3585ff,markers:_0x49694e,rootsAttributes:_0x2b33aa}=this[_0x5848('0x63')][_0x5848('0x53')](_0x5a3c2e);this[_0x5848('0x7b')]=new Map(_0x3585ff),this[_0x5848('0x23')]=new Map(_0x1a20f3(_0x2b33aa));for(const [_0x1d93c2,_0x54bd38]of this['_baseRoots'])if(_0x5848('0x88')!==_0x1d93c2&&(this[_0x5848('0x27')]['set'](_0x1d93c2,B(_0x54bd38)),this['_diffRootsAttributes']=new Map(_0x1a20f3(_0x2b33aa)),_0x400aff)){const _0x328a1d=this[_0x5848('0x64')];this['_idsRoots'][_0x5848('0xf1')](_0x1d93c2,this['_makeIdsRoot'](_0x54bd38)),this[_0x5848('0x47')][_0x5848('0xf1')](_0x1d93c2,this[_0x5848('0x78')](_0x54bd38,_0x328a1d));}this[_0x5848('0x5b')]=this[_0x5848('0x64')],this[_0x5848('0x27')][_0x5848('0xf1')](_0x5848('0x88'),B(this[_0x5848('0x7b')]['get'](_0x5848('0x88')))),_0x400aff&&this[_0x5848('0xb7')]['set']('$graveyard',this[_0x5848('0x78')](this[_0x5848('0x7b')][_0x5848('0x53')](_0x5848('0x88'))));for(const [_0x183e99,_0x443b11]of _0x49694e){const _0x3d572a=this[_0x5848('0x7b')][_0x5848('0x53')](_0x443b11[_0x5848('0xda')]),_0x27e87a=this['_diffRoots'][_0x5848('0x53')](_0x443b11['rootName']),_0x383afe=new _0x325215(this[_0x5848('0x9e')](_0x443b11[_0x5848('0xa6')],_0x3d572a),this[_0x5848('0x9e')](_0x443b11['end'],_0x3d572a)),_0x3dcc29=this[_0x5848('0x35')](_0x383afe,_0x27e87a);_0x3d572a[_0x5848('0xf8')][_0x5848('0xf1')](_0x183e99,_0x383afe),this[_0x5848('0x33')]['set'](_0x183e99,_0x3dcc29);}this[_0x5848('0x100')](_0x5a3c2e,_0x495786,_0x400aff);}[_0x5848('0x100')](_0x28e70c,_0xd5cf94,_0x68da8f){for(const _0x47c3c7 of this['source']['getOperations'](_0x28e70c,_0xd5cf94))this[_0x5848('0x52')](_0x47c3c7,_0x68da8f);for(const _0x21a05c of this[_0x5848('0x27')][_0x5848('0x82')]())_0x21a05c[_0x5848('0xf8')][_0x5848('0x7')]();for(const [_0x589540,_0x2f245f]of this[_0x5848('0x33')]){this['_diffRoots']['get'](_0x2f245f[_0x5848('0x91')][_0x5848('0xda')])[_0x5848('0xf8')][_0x5848('0xf1')](_0x589540,_0x2f245f['clone']());}const _0x1e5439=new Map(),_0x2a4ae5=new Map();for(const [_0x372b77,_0x204426]of this['_diffRoots'])_0x1e5439[_0x5848('0xf1')](_0x372b77,B(_0x204426)),_0x2a4ae5['set'](_0x372b77,this[_0x5848('0x34')][_0x5848('0x53')](_0x372b77));this[_0x5848('0xcb')](_0xd5cf94,_0x1e5439,this[_0x5848('0x33')],_0x2a4ae5);}[_0x5848('0x72')](_0x49ed40){const _0x2fc8fa=Array[_0x5848('0xca')](this[_0x5848('0x63')][_0x5848('0x94')]());_0x2fc8fa['sort']((_0xb2c73e,_0x40b2ec)=>_0xb2c73e-_0x40b2ec),_0x2fc8fa[_0x5848('0xaf')]();for(const _0x7314e9 of _0x2fc8fa)if(_0x7314e9<_0x49ed40)return _0x7314e9;return Number['NEGATIVE_INFINITY'];}[_0x5848('0x4e')](_0x19342c,_0x4a1a18){const _0x151e50=Array[_0x5848('0xca')](_0x4a1a18[_0x5848('0xf8')])['map'](([_0x5726c2,_0x1dc0fe])=>[_0x5726c2,this[_0x5848('0x35')](_0x1dc0fe,_0x19342c)]);_0x19342c[_0x5848('0xf8')]=new Map(_0x151e50);}['_transformMarkers'](_0x1f0330){for(const _0x1ae008 of this[_0x5848('0x33')][_0x5848('0x82')]()){const _0x50149d=_0x1ae008[_0x5848('0x86')](_0x1f0330),_0x3fa2e9=_0x325215[_0x5848('0xc2')](_0x50149d);_0x1ae008[_0x5848('0xa6')]=_0x3fa2e9[_0x5848('0xa6')],_0x1ae008[_0x5848('0xc5')]=_0x3fa2e9[_0x5848('0xc5')];}}[_0x5848('0x52')](_0x29e121,_0x23ae0b){if('addRoot'==_0x29e121['type']||'detachRoot'==_0x29e121[_0x5848('0x21')])return void this[_0x5848('0xfe')](_0x29e121,_0x23ae0b);if(_0x5848('0xb6')==_0x29e121['type']){const _0x507f98=_0x29e121[_0x5848('0x8')][_0x5848('0x91')][_0x5848('0xda')];this[_0x5848('0x27')][_0x5848('0x65')](_0x507f98)||(this[_0x5848('0x27')][_0x5848('0xf1')](_0x507f98,J(_0x507f98,!0x0)),this[_0x5848('0x34')][_0x5848('0xf1')](_0x507f98,{}),_0x23ae0b&&this[_0x5848('0xb7')]['set'](_0x507f98,J(_0x507f98,!0x0)));}if(_0x5848('0xff')==_0x29e121['type']||'removeRootAttribute'==_0x29e121[_0x5848('0x21')]||'changeRootAttribute'==_0x29e121[_0x5848('0x21')])return void this[_0x5848('0xab')](_0x29e121);const _0x150237=this[_0x5848('0x3a')](_0x29e121,this[_0x5848('0x27')]);if(_0x5848('0xcd')!==_0x29e121[_0x5848('0x21')]&&(_0x150237[_0x5848('0xc0')](),this[_0x5848('0xfa')](_0x150237)),_0x23ae0b)switch(_0x150237[_0x5848('0x21')]){case _0x5848('0xb6'):this[_0x5848('0xe6')](_0x29e121);break;case _0x5848('0xfd'):case _0x5848('0xeb'):case _0x5848('0xbd'):this['_handleMoveOperation'](_0x29e121);break;case _0x5848('0x43'):this[_0x5848('0x67')](_0x29e121);break;case _0x5848('0xb1'):this[_0x5848('0x44')](_0x29e121);break;case'marker':this[_0x5848('0x36')](_0x29e121);}}[_0x5848('0x3a')](_0x130013,_0x48cffd){const _0x2ae05f=_0x130013[_0x5848('0x37')]();return _0x2ae05f['_authorId']=_0x130013[_0x5848('0x68')],this[_0x5848('0x84')](_0x2ae05f,_0x48cffd),_0x2ae05f;}[_0x5848('0xa0')](_0x4aa2f9){return _0x4aa2f9[_0x5848('0x51')](_0x4d36d1=>{const _0x310de0=this['_getVidAttributeName'](_0x4d36d1);return Number(_0x4d36d1[_0x5848('0xd6')][_0x5848('0x40')](_0x310de0));});}[_0x5848('0x18')](_0x5f575a,_0x400662){if(_0x5f575a['is'](_0x5848('0xde'),_0x5848('0xc4')))_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':'text'});else{_0x5f575a['is']('element')&&_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':'elementStart'});for(const _0x342a31 of _0x5f575a[_0x5848('0xf')]())this['_generateTape'](_0x342a31,_0x400662);_0x5f575a['is'](_0x5848('0xde'))&&_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':_0x5848('0x9d')});}return _0x400662;}['_getState'](){const _0xaf0202=new Map(this[_0x5848('0xf6')]),_0x1607f9=new Map(_0xaf0202),_0x3bab6f=new Map(),_0xd3cfb2={'insertions':{},'deletions':{}},_0xe03a61={'insertions':{},'deletions':{}},_0x93cea4=new Map(),_0xfdc68c=new Set([...this[_0x5848('0x7b')][_0x5848('0x94')](),...this[_0x5848('0x27')][_0x5848('0x94')]()]);_0xfdc68c[_0x5848('0xc')]('$graveyard');for(const _0x2093d4 of _0xfdc68c){const _0x1b7edf=this[_0x5848('0x27')][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1),_0x3d38da=this[_0x5848('0x7b')][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1);_0x1b7edf['isAttached']()||_0x3d38da[_0x5848('0x5d')]()?(_0xd3cfb2[_0x5848('0xb2')][_0x2093d4]=B(_0x1b7edf),_0xd3cfb2[_0x5848('0x70')][_0x2093d4]=B(_0x3d38da),this[_0x5848('0x4e')](_0xd3cfb2['deletions'][_0x2093d4],_0x3d38da),this[_0x5848('0x4e')](_0xd3cfb2[_0x5848('0xb2')][_0x2093d4],_0x1b7edf),_0xe03a61[_0x5848('0xb2')][_0x2093d4]=this[_0x5848('0x18')](this['_idsRoots']['get'](_0x2093d4),[]),_0xe03a61[_0x5848('0x70')][_0x2093d4]=this[_0x5848('0x18')](this['_baseIdsRoots'][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1),[])):_0xfdc68c['delete'](_0x2093d4);}for(const _0x5dd3ce of _0xfdc68c){const _0x585f05=_0xe03a61[_0x5848('0xb2')][_0x5dd3ce];for(const _0x12236f of _0x585f05){const _0x3081ef=this[_0x5848('0x4c')](_0x12236f),_0x46f284=_0x12236f[_0x5848('0xd6')][_0x5848('0x40')](_0x3081ef);_0x1607f9[_0x5848('0xc')](_0x46f284),_0x46f284>=this['_startingRevisionId']&&_0x3bab6f[_0x5848('0xf1')](_0x46f284,_0xaf0202[_0x5848('0x53')](_0x46f284));}}for(const _0x5f0c82 of _0xfdc68c){const _0x55d8b4=_0xe03a61[_0x5848('0xb2')][_0x5f0c82],_0x21b007=this['_getBaseVids'](_0xe03a61[_0x5848('0x70')][_0x5f0c82]);let _0x435e01=0x0;for(const _0x5e6522 of _0x55d8b4){const _0x2dcb58=this[_0x5848('0x4c')](_0x5e6522),_0x384f=_0x5e6522[_0x5848('0xd6')][_0x5848('0x40')](_0x2dcb58);if(!_0x3bab6f[_0x5848('0x65')](_0x384f)&&!_0x93cea4[_0x5848('0x65')](_0x384f)){if(_0x1607f9[_0x5848('0x65')](_0x384f))_0x435e01++;else{if(_0x384f!=_0x21b007[_0x435e01]){const _0x1fcf90=_0xaf0202['get'](_0x384f)||_0xaf0202['get'](_0x21b007[_0x435e01]);for(;_0x384f!=_0x21b007[_0x435e01];)_0x1607f9['has'](_0x21b007[_0x435e01])||(_0x93cea4[_0x5848('0xf1')](_0x21b007[_0x435e01],_0x1fcf90),_0xaf0202['set'](_0x21b007[_0x435e01],_0x1fcf90)),_0x435e01++;}_0x435e01++;}}}}for(const _0x3f4d13 of _0xfdc68c){const _0xcac51c=_0xe03a61[_0x5848('0xb2')][_0x3f4d13];for(const _0x55a87e of _0xcac51c){const _0x28591a=this[_0x5848('0x4c')](_0x55a87e),_0x26ea51=_0x55a87e[_0x5848('0xd6')][_0x5848('0x40')](_0x28591a);if(_0x93cea4[_0x5848('0x65')](_0x26ea51)){const _0x27f1d4=_0x93cea4['get'](_0x26ea51);_0x1607f9[_0x5848('0x65')](_0x26ea51)||_0x1607f9[_0x5848('0xf1')](_0x26ea51,{..._0x27f1d4}),_0x3bab6f[_0x5848('0xf1')](_0x26ea51,{..._0x27f1d4});}}}for(const _0x591466 of _0x1607f9[_0x5848('0x94')]())_0x591466>=this[_0x5848('0x5b')]&&_0x1607f9['delete'](_0x591466);const _0x17ca21=new Map();for(const _0x36ef5e of _0xfdc68c){let _0x4a6fdd=_0xe03a61['insertions'][_0x36ef5e];for(const _0x410333 of _0x4a6fdd)if(_0x410333[_0x5848('0xd6')]['is'](_0x5848('0xde'),_0x5848('0x57'))){const _0x99e570=this[_0x5848('0x4c')](_0x410333),_0x2c7e26=_0x410333[_0x5848('0xd6')][_0x5848('0x40')](_0x99e570);if(_0x3bab6f[_0x5848('0x65')](_0x2c7e26)){const _0x291290=_0x410333['item'][_0x5848('0x39')][_0x5848('0x39')]['getAttribute']('vid_start'),_0x2bfa59=_0x17ca21['get'](_0x291290)||new Set();_0x2bfa59['add'](_0x3bab6f['get'](_0x2c7e26)[_0x5848('0x61')]),_0x17ca21[_0x5848('0xf1')](_0x291290,_0x2bfa59);}}_0x4a6fdd=_0xe03a61[_0x5848('0x70')][_0x36ef5e];for(const _0x3c04da of _0x4a6fdd)if(_0x3c04da[_0x5848('0xd6')]['is'](_0x5848('0xde'),'tableCell')){const _0x1425d1=this[_0x5848('0x4c')](_0x3c04da),_0x590778=_0x3c04da[_0x5848('0xd6')][_0x5848('0x40')](_0x1425d1);if(_0x1607f9['has'](_0x590778)){const _0x3b3247=_0x3c04da['item'][_0x5848('0x39')][_0x5848('0x39')][_0x5848('0x40')]('vid_start'),_0x108e15=_0x17ca21[_0x5848('0x53')](_0x3b3247)||new Set();_0x108e15['add'](_0x1607f9[_0x5848('0x53')](_0x590778)[_0x5848('0x61')]),_0x17ca21[_0x5848('0xf1')](_0x3b3247,_0x108e15);}}for(const _0x5399bd of _0x17ca21['keys']())(_0x3bab6f[_0x5848('0x65')](_0x5399bd)||_0x1607f9[_0x5848('0x65')](_0x5399bd))&&_0x17ca21[_0x5848('0xc')](_0x5399bd);}for(const _0x30dfed of _0xfdc68c){const _0x22b9a2=_0xe03a61['insertions'][_0x30dfed];let _0x343536=null,_0x34cf67=null;for(const _0x397a39 of _0x22b9a2){const _0x7d2af2=this[_0x5848('0x4c')](_0x397a39),_0x247a7a=_0x397a39[_0x5848('0xd6')]['getAttribute'](_0x7d2af2),_0x394944=_0x17ca21['get'](_0x247a7a);_0x394944&&_0x5848('0x11')==_0x397a39['type']&&(_0x343536=Array[_0x5848('0xca')](_0x394944)[0x0],_0x34cf67=_0x397a39['item'][_0x5848('0x40')](_0x5848('0x56'))),_0x343536&&(_0x1607f9[_0x5848('0xf1')](_0x247a7a,{'userId':_0x343536}),_0x3bab6f['set'](_0x247a7a,{'userId':_0x343536})),_0x247a7a==_0x34cf67&&(_0x343536=null,_0x34cf67=null);}}const _0x56b9a0={},_0x59d97d=new Set();for(const _0x18c5bf of _0xfdc68c){const _0x458fcb=_0xd3cfb2['deletions'][_0x18c5bf],_0x18e975=_0xd3cfb2[_0x5848('0xb2')][_0x18c5bf];for(const {userId:_0x1bebef}of this['_touchedMarkers'][_0x5848('0x82')]())null!==_0x1bebef&&_0x59d97d['add'](_0x1bebef);for(const {userId:_0x46fb9c}of this['_touchedRoots'][_0x5848('0x82')]())null!==_0x46fb9c&&_0x59d97d['add'](_0x46fb9c);this[_0x5848('0xb8')](_0x18e975,_0xe03a61[_0x5848('0xb2')][_0x18c5bf],_0x3bab6f,'insertion',_0x59d97d),this[_0x5848('0xb8')](_0x458fcb,_0xe03a61['deletions'][_0x18c5bf],_0x1607f9,_0x5848('0x4a'),_0x59d97d),_0x56b9a0[_0x18c5bf]={'insertions':this[_0x5848('0x95')](_0x18e975),'deletions':this[_0x5848('0x95')](_0x458fcb),'attachChange':this[_0x5848('0x2b')][_0x5848('0x53')](_0x18c5bf)||null,'attributesBefore':_0x1a20f3(this['_baseRootsAttributes'][_0x5848('0x53')](_0x18c5bf))||{},'attributesAfter':_0x1a20f3(this[_0x5848('0x34')]['get'](_0x18c5bf))};}return{'diffData':_0x56b9a0,'authorsIds':Array['from'](_0x59d97d)};}['_processRootBeforeSave'](_0x178dc7){for(const [,_0x167ee2]of _0x178dc7[_0x5848('0xf8')]){const _0x3695ed=_0x167ee2[_0x5848('0xa6')][_0x5848('0xdf')]()[_0x5848('0x3f')](_0x147095=>'tableCell'==_0x147095[_0x5848('0x20')]);for(const _0x1f3891 of _0x3695ed)0x1==_0x1f3891['childCount']&&_0x1f3891[_0x5848('0xe')](0x0)['is']('element',_0x5848('0x75'))&&_0x1f3891['getChild'](0x0)[_0x5848('0x76')](_0x5848('0x2e'),!0x0);}}[_0x5848('0x95')](_0x4681d6){this[_0x5848('0xc3')](_0x4681d6);const _0x1681d0=this['editor'][_0x5848('0x7c')][_0x5848('0xf9')](_0x4681d6,{}),_0x2bae2a=Array[_0x5848('0xca')](_0x1681d0['getChildren']())[_0x5848('0x51')](_0x44284f=>this['_getViewJson'](_0x44284f));return JSON['stringify'](_0x2bae2a);}['_getViewJson'](_0x1fc4ec){if(_0x1fc4ec['is'](_0x5848('0xc4')))return _0x1fc4ec[_0x5848('0x7c')];{const _0x41836d=_0x1fc4ec;return{'type':Object['keys'](j)['find'](_0x13ca77=>_0x1fc4ec instanceof j[_0x13ca77]),'name':_0x41836d[_0x5848('0x20')],'attributes':Array[_0x5848('0xca')](_0x41836d[_0x5848('0x15')]()),'children':Array[_0x5848('0xca')](_0x41836d['getChildren']())[_0x5848('0x51')](_0x3972c4=>this['_getViewJson'](_0x3972c4))};}}['_markChanges'](_0x1d7f6b,_0x6a6c49,_0x95d36e,_0x86b9c0,_0x384f7d){let _0x11fd68=null,_0x51616b=null,_0x351c93=0x0;const _0x16967c=this[_0x5848('0xef')][_0x5848('0x8c')];for(let _0x1caab6=0x0;_0x1caab6<_0x6a6c49[_0x5848('0xd4')];_0x1caab6++){const _0x58984f=this['_getVidAttributeName'](_0x6a6c49[_0x1caab6]),_0x6e9da9=_0x6a6c49[_0x1caab6][_0x5848('0xd6')][_0x5848('0x40')](_0x58984f),_0x14f561=_0x95d36e[_0x5848('0x53')](_0x6e9da9),_0x597c71=_0x1caab6==_0x6a6c49[_0x5848('0xd4')]-0x1;(!_0x11fd68&&_0x14f561&&(_0x11fd68=_0x14f561,_0x51616b=_0x6a6c49[_0x1caab6]),_0x11fd68&&(!_0x14f561||_0x14f561[_0x5848('0x61')]!=_0x11fd68[_0x5848('0x61')]))&&(_0x4580f6(_0x14f561,H(_0x51616b,_0x1d7f6b,_0x16967c),H(_0x6a6c49[_0x1caab6],_0x1d7f6b,_0x16967c)),_0x11fd68=_0x14f561||null,_0x51616b=_0x14f561?_0x6a6c49[_0x1caab6]:null),_0x11fd68&&_0x597c71&&_0x4580f6(_0x14f561,H(_0x51616b,_0x1d7f6b,_0x16967c),q(_0x6a6c49[_0x1caab6],_0x1d7f6b,_0x16967c));}function _0x4580f6(_0x1959ed,_0x3af606,_0x122370){const _0x1bdc58=_0x11fd68[_0x5848('0x61')],_0x150bf9=_0x5848('0xf0')+_0x86b9c0+':'+_0x1bdc58+':'+_0x351c93++,_0x21df43=_0x16967c[_0x5848('0xf3')](_0x3af606,_0x122370);_0x1d7f6b[_0x5848('0xf8')][_0x5848('0xf1')](_0x150bf9,_0x21df43),null!==_0x1bdc58&&_0x384f7d[_0x5848('0x58')](_0x1bdc58);}}[_0x5848('0x4c')](_0x15b305){switch(_0x15b305[_0x5848('0x21')]){case _0x5848('0x11'):return _0x5848('0xe0');case _0x5848('0x9d'):return _0x5848('0x56');default:return'vid';}}['_fixOperation'](_0x203c29,_0x178a6b){_0x203c29['baseVersion']=null;for(const _0x116bf1 in _0x203c29){const _0x1662bf=_0x203c29[_0x116bf1];if(_0x1662bf instanceof _0x5cf6ce){const _0x5707de=_0x178a6b[_0x5848('0x53')](_0x1662bf[_0x5848('0x91')][_0x5848('0xda')]);_0x203c29[_0x116bf1]=this[_0x5848('0x9e')](_0x1662bf,_0x5707de);}if(_0x1662bf instanceof _0x325215){const _0x47e539=_0x178a6b['get'](_0x1662bf[_0x5848('0x91')][_0x5848('0xda')]);_0x203c29[_0x116bf1]=this[_0x5848('0x35')](_0x1662bf,_0x47e539);}_0x5848('0x91')===_0x116bf1&&(_0x203c29[_0x5848('0x91')]=_0x178a6b[_0x5848('0x53')](_0x203c29[_0x5848('0x91')][_0x5848('0xda')]));}}[_0x5848('0x35')](_0x50bfa1,_0x525f99){return this['editor']['model'][_0x5848('0xf3')](this[_0x5848('0x9e')](_0x50bfa1[_0x5848('0xa6')],_0x525f99),this[_0x5848('0x9e')](_0x50bfa1[_0x5848('0xc5')],_0x525f99));}[_0x5848('0x9e')](_0x348592,_0x17b3dc){return this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xa8')](_0x17b3dc,_0x348592[_0x5848('0x22')],_0x348592[_0x5848('0x42')]);}['_handleInsertOperation'](_0x1b44fa){const _0x3f6ed0=this[_0x5848('0xb7')][_0x5848('0x53')](_0x1b44fa[_0x5848('0x8')][_0x5848('0x91')][_0x5848('0xda')]),_0x13318d=this[_0x5848('0x9e')](_0x1b44fa[_0x5848('0x8')],_0x3f6ed0),_0x520dd7=null===_0x1b44fa['_authorId']?null:_0x1b44fa['_authorId']||this['editor']['plugins'][_0x5848('0x53')]('Users')['me']['id'],_0x4d052f=_0x13318d['parent'],_0x16d18e=this[_0x5848('0x64')],_0x3d1c68=[];for(const _0x373d8b of _0x1b44fa[_0x5848('0x6b')])if(_0x373d8b['is']('element'))_0x3d1c68[_0x5848('0x14')](this[_0x5848('0x78')](_0x373d8b));else for(let _0x46540a=0x0;_0x46540a<_0x373d8b['offsetSize'];_0x46540a++)_0x3d1c68['push'](new _0xff880d('$text',{'vid':this['_revisionId']++}));const _0x11c6c8=this[_0x5848('0x64')];for(let _0x2b1e37=_0x16d18e;_0x2b1e37<_0x11c6c8;_0x2b1e37++)this[_0x5848('0xf6')][_0x5848('0xf1')](_0x2b1e37,{'userId':_0x520dd7});_0x4d052f[_0x5848('0xd5')](_0x13318d['offset'],_0x3d1c68);}[_0x5848('0xbe')](_0x15329e){(_0x15329e=this[_0x5848('0x3a')](_0x15329e,this[_0x5848('0xb7')]))[_0x5848('0xc0')]();const _0x34f79b=null===_0x15329e[_0x5848('0x68')]?null:_0x15329e['_authorId']||this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x1a23ef=_0x15329e['getMovedRangeStart'](),_0x3119b5=_0x1a23ef[_0x5848('0x39')],_0x9474ce=_0x1a23ef['offset'];!function _0x54a64e(_0x4a4cea,_0x2c68f8,_0x25e142,_0x5ec7e3){for(let _0x294934=_0x25e142;_0x294934<_0x5ec7e3;_0x294934++){const _0x22d496=_0x2c68f8[_0x5848('0xe')](_0x294934);_0x22d496['is'](_0x5848('0xde'),_0x5848('0xc4'))?_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0xa7')),{'userId':_0x34f79b}):(_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0xe0')),{'userId':_0x34f79b}),_0x54a64e(_0x4a4cea,_0x22d496,0x0,_0x22d496['childCount']),_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0x56')),{'userId':_0x34f79b}));}}(this[_0x5848('0xf6')],_0x3119b5,_0x9474ce,_0x9474ce+_0x15329e[_0x5848('0x90')]);}[_0x5848('0x67')](_0x2381c2){const _0x23ebe7=null===(_0x2381c2=this['_cloneOperation'](_0x2381c2,this[_0x5848('0xb7')]))['_authorId']?null:_0x2381c2[_0x5848('0x68')]||this['editor']['plugins']['get'](_0x5848('0xf7'))['me']['id'],_0x2d2306=_0x2381c2[_0x5848('0x6d')][_0x5848('0x39')],_0x4839fc=_0x2381c2['sourcePosition'][_0x5848('0x39')],_0x143f8a=_0x2d2306[_0x5848('0x40')](_0x5848('0x56')),_0x3e6737=_0x4839fc[_0x5848('0x40')](_0x5848('0xe0'));_0x2d2306[_0x5848('0x76')](_0x5848('0x56'),_0x4839fc[_0x5848('0x40')]('vid_end')),_0x4839fc[_0x5848('0x76')]('vid_end',_0x143f8a),this[_0x5848('0xf6')]['set'](_0x3e6737,{'userId':_0x23ebe7}),this[_0x5848('0xf6')]['set'](_0x143f8a,{'userId':_0x23ebe7}),_0x2381c2[_0x5848('0xc0')]();}['_handleSplitOperation'](_0x56da36){const _0x3e3a90=null===(_0x56da36=this[_0x5848('0x3a')](_0x56da36,this[_0x5848('0xb7')]))[_0x5848('0x68')]?null:_0x56da36['_authorId']||this[_0x5848('0xef')][_0x5848('0x96')]['get'](_0x5848('0xf7'))['me']['id'],_0x5f22b3=_0x56da36[_0x5848('0x6c')],_0xefa9f6=_0x56da36[_0x5848('0xae')][_0x5848('0x39')];_0x56da36[_0x5848('0xc0')]();const _0x148be6=_0xefa9f6['getAttribute'](_0x5848('0x56')),_0x5d3580=_0x56da36['insertionPosition'][_0x5848('0x9b')];if(_0x5f22b3){const _0x1c74b5=_0x5d3580['getAttribute'](_0x5848('0x56')),_0x5e1f9b=_0xefa9f6[_0x5848('0x40')](_0x5848('0x56'));_0xefa9f6[_0x5848('0x76')](_0x5848('0x56'),_0x1c74b5),_0x5d3580[_0x5848('0x76')]('vid_end',_0x5e1f9b),this[_0x5848('0xf6')][_0x5848('0xf1')](_0xefa9f6['getAttribute']('vid_end'),{'userId':_0x3e3a90}),this[_0x5848('0xf6')][_0x5848('0xf1')](_0x5d3580[_0x5848('0x40')](_0x5848('0xe0')),{'userId':_0x3e3a90});}else{const _0x2f12d0=this[_0x5848('0x64')]++,_0x1d4787=this[_0x5848('0x64')]++;_0xefa9f6[_0x5848('0x76')](_0x5848('0x56'),_0x2f12d0),_0x5d3580[_0x5848('0x76')]('vid_start',_0x1d4787),_0x5d3580[_0x5848('0x76')](_0x5848('0x56'),_0x148be6),this[_0x5848('0xf6')]['set'](_0x2f12d0,{'userId':_0x3e3a90}),this[_0x5848('0xf6')]['set'](_0x1d4787,{'userId':_0x3e3a90});}}[_0x5848('0x36')](_0x5c7f35){if(!_0x5c7f35[_0x5848('0xc7')])return;const _0x4b6fa9=(_0x5c7f35=this[_0x5848('0x3a')](_0x5c7f35,this[_0x5848('0x27')]))[_0x5848('0xdc')]?_0x5c7f35[_0x5848('0xdc')][_0x5848('0x91')]:null,_0x51f1cd=_0x5c7f35[_0x5848('0x1a')]?_0x5c7f35['newRange'][_0x5848('0x91')]:null;_0x4b6fa9&&this['_markers'][_0x5848('0xc')](_0x5c7f35[_0x5848('0x20')]),_0x51f1cd&&this['_markers'][_0x5848('0xf1')](_0x5c7f35['name'],_0x5c7f35[_0x5848('0x1a')]['clone']());const _0x2ecc28=null===_0x5c7f35[_0x5848('0x68')]?null:_0x5c7f35['_authorId']||this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x5dcdf9=_0x5c7f35[_0x5848('0x20')];if(!this[_0x5848('0xd0')]['has'](_0x5dcdf9))return void this[_0x5848('0xd0')][_0x5848('0xf1')](_0x5dcdf9,{'range':_0x5c7f35[_0x5848('0xdc')],'userId':_0x2ecc28});const _0x44a0a0=this[_0x5848('0xd0')][_0x5848('0x53')](_0x5dcdf9),_0x1dd533=_0x44a0a0[_0x5848('0x5')],_0x1d71bc=_0x5c7f35[_0x5848('0x1a')];null==_0x1dd533&&null==_0x1d71bc||_0x1dd533&&_0x1d71bc&&_0x1dd533[_0x5848('0x2d')](_0x1d71bc)?this[_0x5848('0xd0')][_0x5848('0xc')](_0x5c7f35[_0x5848('0x20')]):_0x44a0a0[_0x5848('0x61')]=_0x2ecc28;}[_0x5848('0xfe')](_0x2e8d5d,_0x26830c){this[_0x5848('0x27')]['has'](_0x2e8d5d['rootName'])?this[_0x5848('0x27')]['get'](_0x2e8d5d[_0x5848('0xda')])[_0x5848('0x55')]=_0x2e8d5d[_0x5848('0x38')]:(this['_diffRoots'][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],J(_0x2e8d5d[_0x5848('0xda')],!0x0)),this['_diffRootsAttributes'][_0x5848('0xf1')](_0x2e8d5d['rootName'],{}),_0x26830c&&this['_idsRoots'][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],J(_0x2e8d5d['rootName'],!0x0)));const _0x45e843=null===_0x2e8d5d[_0x5848('0x68')]?null:_0x2e8d5d['_authorId']||this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x2f5f48=this[_0x5848('0x2b')]['get'](_0x2e8d5d[_0x5848('0xda')]);_0x2f5f48&&_0x2f5f48[_0x5848('0x61')]===_0x45e843?this[_0x5848('0x2b')]['delete'](_0x2e8d5d[_0x5848('0xda')]):this[_0x5848('0x2b')][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],{'userId':_0x45e843,'isAttached':_0x2e8d5d[_0x5848('0x38')]});}[_0x5848('0xab')](_0xf0809d){const _0x43bcd8=this[_0x5848('0x34')][_0x5848('0x53')](_0xf0809d[_0x5848('0x91')][_0x5848('0xda')]);null===_0xf0809d[_0x5848('0x66')]?delete _0x43bcd8[_0xf0809d[_0x5848('0xa1')]]:_0x43bcd8[_0xf0809d[_0x5848('0xa1')]]=_0xf0809d[_0x5848('0x66')];}}function B(_0xf61e04){const _0x5d7896=J(_0xf61e04[_0x5848('0xda')],_0xf61e04['isAttached']());for(const _0x2b5200 of _0xf61e04[_0x5848('0xf')]()){const _0x47743a=_0x2b5200[_0x5848('0x6')](!0x0);_0x5d7896['_appendChild'](_0x47743a);}return _0x5d7896;}function J(_0x4a76fa,_0x510292=!0x0){const _0x1ea547=new _0x2edb62();return _0x1ea547[_0x5848('0xda')]=_0x4a76fa,_0x1ea547[_0x5848('0x55')]=_0x510292,_0x1ea547[_0x5848('0x5d')]=()=>_0x1ea547[_0x5848('0x55')],_0x1ea547;}function H(_0xb1dfac,_0x3c93ce,_0x47fdf2){const _0x4ac448=_0x5848('0x9d')==_0xb1dfac[_0x5848('0x21')]?_0x47fdf2[_0x5848('0x2f')](_0xb1dfac[_0x5848('0xd6')],'end'):_0x47fdf2[_0x5848('0x6e')](_0xb1dfac[_0x5848('0xd6')]);return _0x47fdf2['createPositionFromPath'](_0x3c93ce,_0x4ac448[_0x5848('0x22')],_0x4ac448['stickiness']);}function q(_0x52bdda,_0x2e7753,_0x28fcc0){const _0x4b7ba5=_0x5848('0x11')==_0x52bdda[_0x5848('0x21')]?_0x28fcc0['createPositionAt'](_0x52bdda['item'],0x0):_0x28fcc0[_0x5848('0xc6')](_0x52bdda['item']);return _0x28fcc0['createPositionFromPath'](_0x2e7753,_0x4b7ba5[_0x5848('0x22')],_0x4b7ba5['stickiness']);}
|
|
23
|
+
const _0x4ad7=['getChild','creator','_diffRootsAttributes','requires','_makeRevision','position','_loadRevisionData','paragraph','setRevisionData','marker','newRange','resolve','$graveyard','_baseRootsAttributes','_lastTo','RevisionsRepository','has','clear','string','_removeRevisionMarkers','_pendingAction','_removeMetaData','getOperation','editing','conversion','isReady','_removePendingAction','set','repository','name','_prepareViewToSave','loadState','oldRange','_handleMarkerOperation','plugins','_appendChild','changeRootAttribute','element','define','vid_start','remove','revisionHistory.resumeUnsavedRevision','initial','getOperations','range','_diffRoots','_getBaseVids','view','children','for','root','merge','_authorId','addRevision','some','editor','_getFromVersion','getAttribute','initialData','baseVersion','_baseRoots','fromEntries','tableCell','documentFragment','userId','attributesAfter','split','size','deletion','processor','authors','from','collaboration.channelId','revision:','_handleRootOperation','_createInitialRevision','_continueCurrentRevision','createPositionAfter','keepParagraph','revision-start','offsetSize','push','targetPosition','_fixRange','bind','shift','elementEnd','creatorId','delete','isEnabled','nodes','createPositionAt','getRootNames','_generateTape','_bufferUpdate','values','PendingActions','forEach','sourcePosition','find','_calculateMetaData','clone','filter','getRevisionDocumentData','_lastFrom','attributesBefore','getCurrentRevisionId','_savedMetaData','data','init','getUser','vid','attachChange','insert','dataToMarker','version','keys','attributes','_source','useFillerType','getRevision','_reset','locale','then','_makeModelFromViewString','removeRootAttribute','roots','_update','isEqual','deletions','_execute','Empty\x20document','childCount','sendBufferedUpdates','update','addRevisionData','_saveMetaData','key','_replaceEditorDataWithRevisionData','diffData','getIndex','insertions','path','_setAttribute','createPositionFromPath','_markChanges','getData','rootName','_copyMarkers','getRange','_touchedMarkers','nodeAfter','authorsIds','createRange','currentRevision','trim','PENDING_ACTION_REVISION_HISTORY','buildRevisionData','_revisionId','_clone','getWalker','reInit','getMovedRangeStart','getNodeByPath','revision','getTime','isAdd','_touchedRoots','createdAt','finally','get','_addPendingAction','stickiness','_setConversion','_startingRevisionId','getAncestors','elementStart','_loadState','includes','detachRoot','RealTimeCollaborationClient','hasContent','getChildren','reverse','createRangeIn','default','_getViewJson','afterInit','_bufferedUpdates','_fixPosition','_touched','affectsData','_idsRoots','dataDowncast','_handleMoveOperation','map','max','end','_initialRevisionId','config','slice','model','_cloneOperation','_baseIdsRoots','parent','editor-initial-data-replaced-with-revision-data','RevisionTracker','vid_end','NEGATIVE_INFINITY','_handleOperation','_getState','updateRevisions','createRevision','offset','startsWith','_startingVersion','_processRootBeforeSave','rootsAttributes','getAttributes','addRoot','document','reinsert','text','toVersion','_handleSplitOperation','Users','_transformMarkers','graveyardPosition','$text','toData','length','data-revision-','_isInit','previousPosition','getRevisionRootsAttributes','Initial\x20revision','markerToData','_getVidAttributeName','_fixOperation','_isAttached','getTransformedByOperation','adapter','_findInsertionIndex','add','_makeIdsRoot','_markers','fromVersion','setSource','type','_handleInsertOperation','addRootAttribute','getRevisions','markers','_loadedStateData','_isPendingUpdate','history','parse','_getPreviousFrom','revision-end','isAttached','item','_revisionDataBuilder','_initialRoots','_insertChild','_operations','splitPosition','_handleMergeOperation','stringify','newValue','start','_applyOperations','_createCurrentRevision','source'];(function(_0x5cdddd,_0x4ad75b){const _0xa74930=function(_0x5df8f2){while(--_0x5df8f2){_0x5cdddd['push'](_0x5cdddd['shift']());}};_0xa74930(++_0x4ad75b);}(_0x4ad7,0x7c));const _0xa749=function(_0x5cdddd,_0x4ad75b){_0x5cdddd=_0x5cdddd-0x0;let _0xa74930=_0x4ad7[_0x5cdddd];return _0xa74930;};import{Users as _0x4f8fad}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x935ad3,PendingActions as _0x23de58}from'ckeditor5/src/core';import{logWarning as _0x3bdae5,uid as _0x389857}from'ckeditor5/src/utils';import{Position as _0x4a0de6,Range as _0x130d70,Element as _0xbc8c15,DocumentFragment as _0x33b272,ViewText as _0x5794fc,ViewElement as _0x466aac,ViewContainerElement as _0x270f48,ViewAttributeElement as _0xec83fc,ViewEmptyElement as _0x301448,ViewRawElement as _0x393ed0,ViewUIElement as _0x3193ca,ViewDocumentFragment as _0x58adee}from'ckeditor5/src/engine';import _0x508395 from'./revisionsrepository';import{getTranslation as _0x22c3f1}from'./utils/common-translations';import{cloneDeep as _0x40da37,isEqual as _0x392821}from'lodash-es';const j={'c':_0x270f48,'a':_0xec83fc,'e':_0x301448,'r':_0x393ed0,'u':_0x3193ca};export default class l extends _0x935ad3{static get['pluginName'](){return _0xa749('0x52');}static get[_0xa749('0x98')](){return[_0x4f8fad,_0x508395,_0x23de58];}constructor(_0x40c880){super(_0x40c880),this['adapter']=null,this[_0xa749('0x1e')]=null,this[_0xa749('0x89')]=new T(this[_0xa749('0xcc')]),this['_initialRevisionId']=this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0x2e')](_0xa749('0xdd'))||_0xa749('0xbf'),this[_0xa749('0x40')]=new Map(),this[_0xa749('0x81')]=null;const _0x31752b=_0x389857();this['_source']={'history':this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')]['history'],'getLatestVersion':()=>Promise[_0xa749('0xa0')](this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0x108')]),'getCurrentRevisionId':()=>_0x31752b},this[_0xa749('0xb0')](_0xa749('0xae'),!0x1),this[_0xa749('0xb0')](_0xa749('0xee'),!0x0),this[_0xa749('0xb0')](_0xa749('0x82'),!0x1),this['editor'][_0xa749('0x4b')][_0xa749('0xbb')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0xa749('0xcc')][_0xa749('0xad')][_0xa749('0xc6')]('upcast')[_0xa749('0x107')]({'view':_0xa749('0x28')});}['init'](){this[_0xa749('0xb1')]=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0xa4')),this[_0xa749('0x31')](),this[_0xa749('0xcc')][_0xa749('0x101')]['on']('ready',()=>{const _0x40a81d=this[_0xa749('0xb1')]['getRevision'](0x0),_0x5e2698=_0x40a81d&&null===_0x40a81d[_0xa749('0x96')]?_0x40a81d:null;if(this['_continueCurrentRevision']=!!_0x5e2698&&this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0x2e')](_0xa749('0xbe')),this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0xa5')](_0xa749('0x38'))){const _0x48adfc=this[_0xa749('0x10b')][_0xa749('0xff')](),_0x346949=this['repository']['getRevision'](_0x48adfc);if(_0x346949)this[_0xa749('0x5b')]=_0x346949['fromVersion'],this[_0xa749('0xe1')]=!0x1;else{const _0x5a0309=this[_0xa749('0x10b')]['history'][_0xa749('0x8c')][_0xa749('0xf8')](_0x31e2a6=>!_0x31e2a6[_0xa749('0x6c')]),_0x429531=_0x5a0309?_0x5a0309[_0xa749('0xd0')]:this[_0xa749('0x10b')]['history'][_0xa749('0x108')];_0x40a81d?(_0x40a81d[_0xa749('0x63')]<_0x429531&&_0x40a81d['_update']({'toVersion':_0x429531}),this[_0xa749('0xe1')]?(this['_source'][_0xa749('0xff')]=()=>_0x5e2698['id'],this['_startingVersion']=_0x5e2698[_0xa749('0x7a')]):(this['_startingVersion']=_0x40a81d[_0xa749('0x63')],this[_0xa749('0xe1')]=!0x1)):(this[_0xa749('0x5b')]=_0x429531,this[_0xa749('0xe1')]=!0x1);}}else _0x5e2698&&(this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0x83')][_0xa749('0x108')]=Math[_0xa749('0x48')](_0x5e2698[_0xa749('0x63')],this['editor']['model'][_0xa749('0x60')][_0xa749('0x83')]['version']),_0x5e2698['fromVersion']===_0x5e2698[_0xa749('0x63')]?(0x0!==_0x5e2698[_0xa749('0x7a')]&&(this[_0xa749('0x10b')][_0xa749('0xff')]=()=>_0x5e2698['id']),this[_0xa749('0xe1')]=!0x1):this[_0xa749('0xe1')]&&(this[_0xa749('0x10b')]['getCurrentRevisionId']=()=>_0x5e2698['id'],this[_0xa749('0x5b')]=_0x5e2698[_0xa749('0x7a')])),this[_0xa749('0xe1')]||(this[_0xa749('0x5b')]=this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')]['version']);this[_0xa749('0x89')][_0xa749('0x102')](this[_0xa749('0x10b')][_0xa749('0x83')]),this[_0xa749('0xe0')](this[_0xa749('0x5b')]),this[_0xa749('0x93')](this['_startingVersion']),this[_0xa749('0x75')]&&this[_0xa749('0x9')]();}),this[_0xa749('0xe9')](_0xa749('0xae'))['to'](this,_0xa749('0x82'),_0x9559ef=>!_0x9559ef);}async[_0xa749('0x3f')](){if(this[_0xa749('0xb1')][_0xa749('0x6a')]>0x0){const _0x275ed1=this['repository']['getRevision'](0x0),_0x153451=await this[_0xa749('0xfc')](_0x275ed1),_0x21726d=await this[_0xa749('0x6e')](_0x275ed1);this[_0xa749('0xe')](_0x153451,_0x21726d);}}[_0xa749('0x7b')](_0x500aeb){this[_0xa749('0x10b')]=_0x500aeb;}async[_0xa749('0xa')](){const _0x53b328=await this['_source']['getLatestVersion']();if(_0x53b328>this[_0xa749('0x1e')][_0xa749('0x63')]){await this[_0xa749('0x35')]();const _0x397cd0=this[_0xa749('0x21')]({'revision':this['currentRevision'],'to':_0x53b328});_0x397cd0[_0xa749('0xdb')]=_0x397cd0[_0xa749('0x1c')]['map'](_0x18071a=>this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))[_0xa749('0x103')](_0x18071a)),this[_0xa749('0x1e')][_0xa749('0x3')](_0x397cd0);}}async[_0xa749('0x35')](){this['_continueCurrentRevision']&&!this[_0xa749('0x81')]&&(await this['_loadRevisionData'](this[_0xa749('0x1e')]),this[_0xa749('0x89')][_0xa749('0xb4')](this['currentRevision']),this[_0xa749('0x81')]={'fromVersion':this['currentRevision'][_0xa749('0x7a')],'authors':this[_0xa749('0x1e')][_0xa749('0xdb')][_0xa749('0x4c')]()});}async['saveRevision'](_0x3daaf8={},_0x285af1=null){const _0x5ccc8c=[];await this[_0xa749('0x35')](),this[_0xa749('0xe1')]=!0x1,_0x285af1>this['currentRevision'][_0xa749('0x63')]&&(_0x285af1=null),null===_0x285af1&&(_0x285af1=await this[_0xa749('0x10b')]['getLatestVersion']());const _0x1b7058=this[_0xa749('0xcd')](_0x285af1),_0x3495a1=this[_0xa749('0x21')]({'from':_0x1b7058,'to':_0x285af1});if(this[_0xa749('0x1e')][_0xa749('0x63')]<_0x285af1){const _0x574881=this['buildRevisionData']({'revision':this[_0xa749('0x1e')],'from':_0x285af1,'to':_0x285af1});_0x574881[_0xa749('0xdb')]=[],_0x574881['authorsIds']=[],_0x574881['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x574881,!0x0),delete _0x574881[_0xa749('0xdb')],_0x5ccc8c['push'](_0x574881);}_0x3daaf8[_0xa749('0xec')]=this[_0xa749('0xcc')][_0xa749('0xb7')]['get'](_0xa749('0x65'))['me']['id'],_0x3daaf8[_0xa749('0xb2')]=_0x3daaf8[_0xa749('0xb2')]||null,_0x3daaf8['id']=_0x3daaf8['id']||_0x389857(),_0x3daaf8={..._0x3daaf8,..._0x3495a1};const _0x31e9c9=this[_0xa749('0xb')](_0x3daaf8);_0x5ccc8c['push'](_0x3daaf8);const _0x57292d=this[_0xa749('0xb1')][_0xa749('0x10')](_0x31e9c9);if(0x0!==_0x57292d){const _0x303dc7=this[_0xa749('0xb1')][_0xa749('0x10d')](_0x57292d-0x1);if(_0x303dc7[_0xa749('0x7a')]!==_0x285af1){const _0x1d8ed3=this['_revisionDataBuilder'][_0xa749('0x16')](_0x285af1,_0x303dc7[_0xa749('0x63')]),_0x521eae={'id':_0x303dc7['id'],'diffData':_0x1d8ed3[_0xa749('0xf')],'authorsIds':_0x1d8ed3[_0xa749('0x1c')],'authors':_0x1d8ed3[_0xa749('0x1c')][_0xa749('0x47')](_0x4397e3=>this[_0xa749('0xcc')][_0xa749('0xb7')]['get'](_0xa749('0x65'))[_0xa749('0x103')](_0x4397e3)),'fromVersion':_0x285af1};_0x303dc7===this[_0xa749('0x1e')]&&(_0x521eae[_0xa749('0x2c')]=new Date(_0x3daaf8[_0xa749('0x2c')][_0xa749('0x29')]()+0xa)),_0x303dc7['_update'](_0x521eae,!0x0),delete _0x521eae['authors'],_0x5ccc8c['push'](_0x521eae);}}if(this[_0xa749('0x75')]){for(const _0x59a354 of _0x5ccc8c)this[_0xa749('0xf3')](_0x59a354['id'],_0x59a354,!0x0);this[_0xa749('0x9')]();}return _0x31e9c9;}[_0xa749('0xb')](_0x14012a){const _0x4f795e=this[_0xa749('0xb1')][_0xa749('0x58')](_0x14012a);return this['adapter']&&_0x4f795e['on']('_update',(_0x1cbeac,_0x29f41a,_0x5de808)=>{_0x5de808||(this['_bufferUpdate'](_0x29f41a['id'],_0x29f41a,!0x0),this[_0xa749('0x9')]());}),this[_0xa749('0xb1')][_0xa749('0xca')](_0x4f795e,this['_findInsertionIndex'](_0x4f795e)),_0x4f795e;}async[_0xa749('0xfc')](_0x43d706){await this[_0xa749('0x9b')](_0x43d706);const _0x2093b1={};for(const _0x54f5a0 in _0x43d706[_0xa749('0xf')]){if(_0x43d706[_0xa749('0xf')][_0x54f5a0][_0xa749('0x105')]&&!_0x43d706[_0xa749('0xf')][_0x54f5a0]['attachChange'][_0xa749('0x87')])continue;const _0x1b3324=this[_0xa749('0xa8')](JSON[_0xa749('0x84')](_0x43d706['diffData'][_0x54f5a0]['insertions'])),_0x2a92dc=this[_0xa749('0xcc')]['editing'][_0xa749('0xc4')][_0xa749('0x60')],_0x548479=new _0x58adee(_0x2a92dc,_0x1b3324[_0xa749('0x47')](_0x1b3346=>F(_0x1b3346,this[_0xa749('0xcc')])));this[_0xa749('0xcc')][_0xa749('0x101')]['processor']['useFillerType']('marked'),_0x2093b1[_0x54f5a0]=this[_0xa749('0xcc')][_0xa749('0x101')][_0xa749('0xda')][_0xa749('0x69')](_0x548479),this[_0xa749('0xcc')][_0xa749('0x101')][_0xa749('0xda')][_0xa749('0x10c')](_0xa749('0x3d'));}return _0x2093b1;}async[_0xa749('0x6e')](_0x17b03d){await this['_loadRevisionData'](_0x17b03d);const _0x31ed08={};for(const _0x2b0580 in _0x17b03d[_0xa749('0xf')])_0x17b03d[_0xa749('0xf')][_0x2b0580][_0xa749('0x105')]&&!_0x17b03d['diffData'][_0x2b0580][_0xa749('0x105')][_0xa749('0x87')]||(_0x31ed08[_0x2b0580]=_0x17b03d[_0xa749('0xf')][_0x2b0580]['attributesAfter']||{});return _0x31ed08;}['sendBufferedUpdates'](){if(0x0===this[_0xa749('0x40')][_0xa749('0xd8')])return;if(this[_0xa749('0x82')])return;let _0x235607=Array[_0xa749('0xdc')](this[_0xa749('0x40')][_0xa749('0xf4')]());this['_bufferedUpdates'][_0xa749('0xa6')]();for(let _0x42647e=0x0;_0x42647e<_0x235607['length'];_0x42647e++){const _0x5e708e=_0x235607[_0x42647e];let _0x49a657=!0x1;for(const _0x232d7e of Object[_0xa749('0x109')](_0x5e708e))void 0x0===_0x5e708e[_0x232d7e]?delete _0x5e708e[_0x232d7e]:'id'!==_0x232d7e&&(_0x49a657=!0x0);_0x49a657||(_0x235607[_0x42647e]=null);}if(_0x235607=_0x235607[_0xa749('0xfb')](_0x23a493=>null!==_0x23a493),!_0x235607[_0xa749('0x6a')])return;for(let _0x4c32a7=0x0;_0x4c32a7<_0x235607[_0xa749('0x6a')];_0x4c32a7++){const _0x167157=_0x235607[_0x4c32a7];void 0x0!==_0x167157[_0xa749('0x7a')]&&void 0x0===_0x167157[_0xa749('0x63')]&&(_0x167157['toVersion']=this[_0xa749('0xb1')]['getRevision'](_0x167157['id'])[_0xa749('0x63')]),void 0x0!==_0x167157['toVersion']&&void 0x0===_0x167157[_0xa749('0x7a')]&&(_0x167157[_0xa749('0x7a')]=this['repository']['getRevision'](_0x167157['id'])[_0xa749('0x7a')]);}const _0xaa6def=this['editor']['config'][_0xa749('0x2e')](_0xa749('0xdd'));this[_0xa749('0x82')]=!0x0,this[_0xa749('0x2f')](),this[_0xa749('0x75')][_0xa749('0x57')](_0x235607,_0xaa6def)[_0xa749('0x2d')](()=>{this[_0xa749('0x82')]=!0x1;})[_0xa749('0x110')](_0x145c65=>{if(_0x145c65)for(const _0x4d825d of _0x145c65)this[_0xa749('0x9d')]({'id':_0x4d825d['id'],'createdAt':_0x4d825d['createdAt']});this['_removePendingAction'](),this[_0xa749('0x9')]();});}['_replaceEditorDataWithRevisionData'](_0x2ff397,_0x5e1ca1){let _0x3788bf=this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0x2e')](_0xa749('0xcf')),_0xfd2ca0=this[_0xa749('0xcc')]['config']['get'](_0xa749('0x5d'));if(void 0x0===_0x3788bf){_0x3788bf={};for(const _0x2b8338 of this['editor'][_0xa749('0x4d')]['document'][_0xa749('0xf1')]())_0x3788bf[_0x2b8338]='';}if('string'==typeof _0x3788bf&&(_0x3788bf={'main':_0x3788bf}),void 0x0===_0xfd2ca0){_0xfd2ca0={};for(const _0xa2fbbd of this['editor'][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0xf1')]())_0xfd2ca0[_0xa2fbbd]={};}let _0x188315=!0x1;const _0x2134be=Object[_0xa749('0x109')](_0x3788bf),_0x6de7c0=Object['keys'](_0x2ff397);for(const _0x4d6a6c of _0x2134be){if(_0x3788bf[_0x4d6a6c]!==_0x2ff397[_0x4d6a6c]&&''!==_0x3788bf[_0x4d6a6c][_0xa749('0x1f')]()){_0x188315=!0x0;break;}if(!_0x392821(_0xfd2ca0[_0x4d6a6c],_0x5e1ca1[_0x4d6a6c])&&Object[_0xa749('0x109')](_0xfd2ca0[_0x4d6a6c])[_0xa749('0x6a')]>0x0){_0x188315=!0x0;break;}}_0x188315||(_0x188315=_0x6de7c0[_0xa749('0xcb')](_0x150e3c=>!_0x2134be[_0xa749('0x36')](_0x150e3c))),_0x188315&&_0x3bdae5(_0xa749('0x51'),{'editorData':_0x3788bf,'editorRootsAttributes':_0xfd2ca0,'revisionData':_0x2ff397,'revisionRootsAttributes':_0x5e1ca1}),this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0xb0')](_0xa749('0xcf'),_0x2ff397),this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0xb0')](_0xa749('0x5d'),_0x5e1ca1);}[_0xa749('0x2f')](){if(!this['_pendingAction']){const _0x26419f=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0xf5'));this[_0xa749('0xa9')]=_0x26419f[_0xa749('0x77')](_0x22c3f1(this['editor'][_0xa749('0x10f')],_0xa749('0x20')));}}[_0xa749('0xaf')](){this['_pendingAction']&&(this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0xf5'))[_0xa749('0xbd')](this[_0xa749('0xa9')]),this[_0xa749('0xa9')]=null);}[_0xa749('0x76')](_0x37eb2a){const _0x3af2a9=this[_0xa749('0xb1')][_0xa749('0x7f')]();_0x3af2a9[_0xa749('0x3b')]();let _0xe9f9c9=0x0;for(;_0xe9f9c9<_0x3af2a9['length'];){const _0x54163e=_0x3af2a9[_0xe9f9c9];if(_0x54163e===this['currentRevision']){_0xe9f9c9++;continue;}if(_0x54163e['id']===this['_initialRevisionId'])break;const _0xc0428b=_0x37eb2a[_0xa749('0x63')]-_0x54163e[_0xa749('0x63')]||_0x37eb2a[_0xa749('0x7a')]-_0x54163e['fromVersion'];if(_0xc0428b>0x0)break;if(_0xc0428b<0x0)_0xe9f9c9++;else{if(!_0x37eb2a[_0xa749('0x96')]&&_0x54163e[_0xa749('0x96')])break;if(_0x54163e[_0xa749('0x96')]||!_0x37eb2a[_0xa749('0x96')]){if(_0x37eb2a['createdAt']>_0x54163e[_0xa749('0x2c')])break;_0xe9f9c9++;}else _0xe9f9c9++;}}return _0xe9f9c9;}['setRevisionData'](_0x48277a){const _0x8dbbcd=this[_0xa749('0xb1')]['getRevision'](_0x48277a['id']);if(_0x48277a[_0xa749('0x2c')]&&(_0x48277a[_0xa749('0x2c')]=new Date(_0x48277a[_0xa749('0x2c')])),_0x48277a[_0xa749('0x1c')]){const _0x4091e1=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'));_0x48277a[_0xa749('0xdb')]=_0x48277a[_0xa749('0x1c')][_0xa749('0x47')](_0x3f0b0f=>_0x4091e1[_0xa749('0x103')](_0x3f0b0f));}_0x8dbbcd[_0xa749('0x3')](_0x48277a,!0x0);}['buildRevisionData']({revision:_0x3afa6a=null,from:_0x4e96a2=null,to:_0x5249c7=null}){_0x4e96a2=null!==_0x4e96a2?_0x4e96a2:_0x3afa6a[_0xa749('0x7a')],_0x5249c7=null!==_0x5249c7?_0x5249c7:_0x3afa6a['toVersion'];const _0x133326=this[_0xa749('0x89')][_0xa749('0x16')](_0x4e96a2,_0x5249c7),_0x59197b={'diffData':_0x133326[_0xa749('0xf')],'authorsIds':_0x133326['authorsIds'],'fromVersion':_0x4e96a2,'toVersion':_0x5249c7};if(!_0x3afa6a||_0x5249c7!==_0x3afa6a[_0xa749('0x63')]){const _0x2567a2=_0x5249c7-0x1,_0x213c04=this[_0xa749('0x10b')][_0xa749('0x83')][_0xa749('0xab')](_0x2567a2);_0x59197b[_0xa749('0x2c')]=_0x213c04&&_0x213c04[_0xa749('0x2c')]||new Date();}if(this[_0xa749('0x81')]&&_0x4e96a2===this['_loadedStateData']['fromVersion'])for(const _0x544dfe of this[_0xa749('0x81')][_0xa749('0xdb')])_0x59197b[_0xa749('0x1c')][_0xa749('0x36')](_0x544dfe['id'])||_0x59197b[_0xa749('0x1c')]['push'](_0x544dfe['id']);return _0x59197b;}['_loadRevisionData'](_0xc84146){if(!_0xc84146||_0xc84146[_0xa749('0xf')])return Promise[_0xa749('0xa0')]();{const _0x29a6fd=this[_0xa749('0xcc')][_0xa749('0x4b')]['get']('collaboration.channelId');return this[_0xa749('0x75')][_0xa749('0x10d')]({'channelId':_0x29a6fd,'revisionId':_0xc84146['id']})['then'](_0xdb15fd=>{_0xc84146[_0xa749('0xf')]=_0xdb15fd['diffData'];});}}[_0xa749('0xf3')](_0xd61ff0,_0x3d2595,_0x2cc307){if(this['_bufferedUpdates'][_0xa749('0xa5')](_0xd61ff0)){const _0x88e799=this['_bufferedUpdates'][_0xa749('0x2e')](_0xd61ff0);_0x3d2595=_0x2cc307?{..._0x88e799,..._0x3d2595}:{..._0x3d2595,..._0x88e799};}this['_bufferedUpdates'][_0xa749('0xb0')](_0xd61ff0,_0x3d2595);}[_0xa749('0xcd')](_0x1403f6){const _0x39a88f=this[_0xa749('0xb1')][_0xa749('0x7f')]();_0x39a88f[_0xa749('0x3b')](),_0x39a88f[_0xa749('0xea')]();const _0x3cae69=_0x39a88f[_0xa749('0xf8')](_0x1546b1=>_0x1546b1[_0xa749('0x63')]<=_0x1403f6)[_0xa749('0x63')];return _0x3cae69<this[_0xa749('0x5b')]?this[_0xa749('0x5b')]:_0x3cae69;}[_0xa749('0xe0')](_0x28a074){const _0x3a06e4=this['repository']['getRevision'](this[_0xa749('0xb1')]['length']-0x1);if(_0x3a06e4)this['_initialRevisionId']=_0x3a06e4['id'];else{const _0x4d2da0=!this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0x2')][_0xa749('0xf8')](_0x321f6c=>this['editor']['model'][_0xa749('0x39')](_0x321f6c)),_0x5de62c=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x54421e=_0x22c3f1(this[_0xa749('0xcc')]['locale'],_0x4d2da0?_0xa749('0x7'):_0xa749('0x6f'));this[_0xa749('0x99')]({'from':_0x28a074,'to':_0x28a074,'id':this[_0xa749('0x4a')],'name':_0x54421e,'creatorId':_0x5de62c});}}[_0xa749('0x93')](_0x5e7b65){const _0x459d9c=this[_0xa749('0x10b')][_0xa749('0xff')]();this[_0xa749('0x1e')]=this[_0xa749('0xb1')]['getRevision'](_0x459d9c),this[_0xa749('0x1e')]||(this[_0xa749('0x1e')]=this[_0xa749('0x99')]({'from':_0x5e7b65,'to':_0x5e7b65,'id':_0x459d9c,'name':'','creatorId':null}));}[_0xa749('0x99')]({name:_0x366986,from:_0x1d1a9e,to:_0x3e1c62,creatorId:_0x193f86,id:_0x352ea6}){const _0xc4db89=this[_0xa749('0x21')]({'from':_0x1d1a9e,'to':_0x3e1c62});_0xc4db89['name']=_0x366986,_0xc4db89['creatorId']=_0x193f86,_0xc4db89['id']=_0x352ea6;const _0x3486c3=this[_0xa749('0xb')](_0xc4db89);return this['adapter']&&this['_bufferUpdate'](_0xc4db89['id'],_0xc4db89,!0x0),_0x3486c3;}[_0xa749('0x31')](){this['editor'][_0xa749('0xad')][_0xa749('0xc6')](_0xa749('0x45'))[_0xa749('0x70')]({'model':'revision'});}[_0xa749('0xa8')](_0x46f03e){return(_0x46f03e=_0x46f03e['filter'](_0x19ddbf=>!_0x19ddbf[_0xa749('0xb2')]||_0xa749('0xe4')!==_0x19ddbf['name']&&_0xa749('0x86')!==_0x19ddbf[_0xa749('0xb2')]))[_0xa749('0xf6')](_0x4a7eb3=>{'string'!=typeof _0x4a7eb3&&(_0x4a7eb3['children']=this[_0xa749('0xa8')](_0x4a7eb3[_0xa749('0xc5')]),_0x4a7eb3[_0xa749('0x10a')]=_0x4a7eb3[_0xa749('0x10a')][_0xa749('0xfb')](_0x9d7189=>!_0x9d7189[0x0][_0xa749('0x5a')](_0xa749('0x6b'))));}),_0x46f03e;}}function F(_0x138619,_0x142bd5){const _0x3e20b8=_0x142bd5[_0xa749('0xac')][_0xa749('0xc4')][_0xa749('0x60')];if(_0xa749('0xa7')==typeof _0x138619)return new _0x5794fc(_0x3e20b8,_0x138619);{const _0x5bff53=_0x138619[_0xa749('0xc5')][_0xa749('0x47')](_0x467b80=>F(_0x467b80,_0x142bd5));return new(j[_0x138619['type']]||_0x466aac)(_0x3e20b8,_0x138619[_0xa749('0xb2')],_0x138619[_0xa749('0x10a')],_0x5bff53);}}class T{constructor(_0x4c3bee){this[_0xa749('0xcc')]=_0x4c3bee,this[_0xa749('0x100')]=new Map(),this[_0xa749('0xfd')]=-0x1,this[_0xa749('0xa3')]=-0x1,this[_0xa749('0x79')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0xa749('0xd1')]=new Map(),this[_0xa749('0xa2')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0xa749('0x42')]=new Map(),this[_0xa749('0x1a')]=new Map(),this[_0xa749('0x2b')]=new Map(),this[_0xa749('0x22')]=0x1,this[_0xa749('0x8a')]=this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0xf1')](),this[_0xa749('0x8a')][_0xa749('0xe6')](_0xa749('0xa1'));}[_0xa749('0x102')](_0x516ac1){this[_0xa749('0x94')]=_0x516ac1;const _0x37a3ec=new Map(),_0x4af330=new Map(),_0x2091a0=this['editor'][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0xf1')](!0x0);_0x2091a0['push'](_0xa749('0xa1'));for(const _0x2f4d38 of _0x2091a0){const _0x5c6940=this[_0xa749('0xcc')]['model'][_0xa749('0x60')]['getRoot'](_0x2f4d38),_0x1d4144=B(_0x5c6940);_0x37a3ec[_0xa749('0xb0')](_0x2f4d38,_0x1d4144),_0x4af330[_0xa749('0xb0')](_0x2f4d38,Object[_0xa749('0xd2')](_0x5c6940['getAttributes']()));}const _0x271591=Array['from'](this['editor'][_0xa749('0x4d')][_0xa749('0x80')])[_0xa749('0x47')](_0x347615=>[_0x347615[_0xa749('0xb2')],_0x347615[_0xa749('0x19')]()]),_0x21c244=this[_0xa749('0x94')][_0xa749('0x108')];this[_0xa749('0xc')](_0x21c244,_0x37a3ec,_0x271591,_0x4af330),this[_0xa749('0x32')]=this[_0xa749('0x22')];const _0x29b12e=new Map(),_0x3bd711=new Map();for(const _0x22cb45 of this[_0xa749('0x8a')]){const _0xb330e5=J(_0x22cb45);_0x29b12e[_0xa749('0xb0')](_0x22cb45,_0xb330e5),_0x3bd711['set'](_0x22cb45,{});}this[_0xa749('0xc')](Number[_0xa749('0x54')],_0x29b12e,[],_0x3bd711);}['getData'](_0x21a5e4,_0x28e7d7){if(this[_0xa749('0xfd')]===_0x21a5e4&&this['_lastTo']<=_0x28e7d7)this['_savedMetaData'][_0xa749('0xd8')]>0x1&&this['_removeMetaData'](this[_0xa749('0xa3')]),this[_0xa749('0x92')](this[_0xa749('0xa3')],_0x28e7d7,!0x0);else{if(!this[_0xa749('0x100')][_0xa749('0xa5')](_0x21a5e4)){const _0x5aa7be=this[_0xa749('0x85')](_0x21a5e4);this[_0xa749('0xf9')](_0x5aa7be,_0x21a5e4,!0x1);}this[_0xa749('0xf9')](_0x21a5e4,_0x28e7d7,!0x0);}return this[_0xa749('0xfd')]=_0x21a5e4,this[_0xa749('0xa3')]=_0x28e7d7,this[_0xa749('0x56')]();}[_0xa749('0xb4')](_0x28c635){this['_reset'](),this['_lastFrom']=_0x28c635[_0xa749('0x7a')],this[_0xa749('0xa3')]=_0x28c635['toVersion'];for(const _0x57a787 in _0x28c635[_0xa749('0xf')]){const _0x457a64=_0x28c635[_0xa749('0xf')][_0x57a787][_0xa749('0x105')],_0x945806=_0x40da37(_0x28c635['diffData'][_0x57a787][_0xa749('0xfe')])||{},_0x5d4167=this[_0xa749('0x0')](_0x28c635['diffData'][_0x57a787][_0xa749('0x5')]);_0x5d4167[_0xa749('0x17')]=_0x57a787,_0x5d4167[_0xa749('0x73')]=!_0x457a64||!_0x457a64[_0xa749('0x87')],_0x5d4167[_0xa749('0x87')]=()=>_0x5d4167[_0xa749('0x73')],this[_0xa749('0xd1')]['set'](_0x57a787,_0x5d4167),this[_0xa749('0xa2')]['set'](_0x57a787,_0x945806),_0x457a64&&this[_0xa749('0x2b')][_0xa749('0xb0')](_0x57a787,_0x457a64);const _0x18ceb6=this[_0xa749('0x78')](_0x5d4167);this['_baseIdsRoots']['set'](_0x57a787,_0x18ceb6);for(const [_0x3693de,_0x222f88]of _0x5d4167[_0xa749('0x80')]){if(!_0x3693de['startsWith'](_0xa749('0xde')))continue;const _0x3c3054=_0x3693de[_0xa749('0xd7')](':')[0x2];for(const _0xf769eb of _0x222f88[_0xa749('0x24')]({'singleCharacters':!0x0})){const _0x3024c5=this[_0xa749('0x71')](_0xf769eb),_0x52236e=_0xa749('0xeb')==_0xf769eb['type']?_0xf769eb['previousPosition']['path'][_0xa749('0x4c')](0x0,-0x1):_0xf769eb[_0xa749('0x6d')]['path'],_0x5764fd=_0x18ceb6[_0xa749('0x27')](_0x52236e)[_0xa749('0xce')](_0x3024c5);this[_0xa749('0x42')][_0xa749('0xb0')](_0x5764fd,{'userId':_0x3c3054});}}}this[_0xa749('0x32')]=this[_0xa749('0x22')];const _0x13b911=[...Array(this['_revisionId'])[_0xa749('0x109')]()][_0xa749('0x4c')](0x1)['filter'](_0x2f6b2b=>!this['_touched'][_0xa749('0xa5')](_0x2f6b2b));let _0x510ddc=0x0;const _0x42f605=new Map();for(const _0x516202 in _0x28c635[_0xa749('0xf')]){const _0x3f766b=_0x28c635[_0xa749('0xf')][_0x516202][_0xa749('0x105')],_0x2c279a=_0x40da37(_0x28c635['diffData'][_0x516202][_0xa749('0xd6')])||{},_0x5c0db2=this[_0xa749('0x0')](_0x28c635[_0xa749('0xf')][_0x516202]['insertions']);_0x5c0db2[_0xa749('0x17')]=_0x516202,_0x5c0db2[_0xa749('0x73')]=!_0x3f766b||_0x3f766b[_0xa749('0x87')],_0x5c0db2[_0xa749('0x87')]=()=>_0x5c0db2['_isAttached'],this[_0xa749('0xc2')]['set'](_0x516202,_0x5c0db2),this['_diffRootsAttributes']['set'](_0x516202,_0x2c279a);const _0x13bd84=this['_makeIdsRoot'](_0x5c0db2,Number[_0xa749('0x54')]);this['_idsRoots']['set'](_0x516202,_0x13bd84),_0x42f605[_0xa749('0xb0')](_0x516202,_0x5c0db2[_0xa749('0x87')]()?_0x2c279a:{});for(const [_0x332a75,_0x4e4caa]of _0x5c0db2[_0xa749('0x80')]){if(!_0x332a75[_0xa749('0x5a')]('revision:'))continue;const _0x3445c6=_0x332a75[_0xa749('0xd7')](':')[0x2];for(const _0xb7b58e of _0x4e4caa[_0xa749('0x24')]({'singleCharacters':!0x0})){const _0x40f9ac=this[_0xa749('0x71')](_0xb7b58e),_0x4fd789=this[_0xa749('0x22')]++,_0x4138b2=_0xa749('0xeb')==_0xb7b58e[_0xa749('0x7c')]?_0xb7b58e[_0xa749('0x6d')][_0xa749('0x12')][_0xa749('0x4c')](0x0,-0x1):_0xb7b58e['previousPosition'][_0xa749('0x12')];_0x13bd84[_0xa749('0x27')](_0x4138b2)[_0xa749('0x13')](_0x40f9ac,_0x4fd789),this['_touched'][_0xa749('0xb0')](_0x4fd789,{'userId':_0x3445c6});}}for(const _0x404e71 of this['editor']['model'][_0xa749('0x3c')](_0x5c0db2)['getWalker']({'singleCharacters':!0x0})){const _0x44b254=this[_0xa749('0x71')](_0x404e71),_0x5c8e33='elementEnd'==_0x404e71[_0xa749('0x7c')]?_0x404e71[_0xa749('0x6d')]['path'][_0xa749('0x4c')](0x0,-0x1):_0x404e71[_0xa749('0x6d')][_0xa749('0x12')],_0xae8985=_0x13bd84[_0xa749('0x27')](_0x5c8e33);_0xae8985[_0xa749('0xce')](_0x44b254)>0x0||_0xae8985[_0xa749('0x13')](_0x44b254,_0x13b911[_0x510ddc++]);}for(const [_0x340421,_0x49bec4]of _0x5c0db2[_0xa749('0x80')])_0x340421[_0xa749('0x5a')](_0xa749('0xde'))||this['_markers']['set'](_0x340421,_0x49bec4);}const _0x3d3f98=J(_0xa749('0xa1'));this['_baseRoots'][_0xa749('0xb0')](_0xa749('0xa1'),_0x3d3f98),this[_0xa749('0x4f')][_0xa749('0xb0')](_0xa749('0xa1'),this['_makeIdsRoot'](_0x3d3f98,0x1));const _0x3028d8=J('$graveyard');this['_diffRoots']['set'](_0xa749('0xa1'),_0x3028d8),this[_0xa749('0x44')]['set'](_0xa749('0xa1'),this[_0xa749('0x78')](_0x3028d8,0x1));const _0x4a50ad=Array['from'](this[_0xa749('0xc2')])['map'](([_0x4ca4e4,_0x335613])=>[_0x4ca4e4,B(_0x335613)]);this[_0xa749('0xc')](this[_0xa749('0xa3')],_0x4a50ad,this[_0xa749('0x79')],_0x42f605);}[_0xa749('0x0')](_0xebfa13){const _0x4881ee=JSON[_0xa749('0x84')](_0xebfa13),_0x386480=this[_0xa749('0xcc')][_0xa749('0xac')][_0xa749('0xc4')][_0xa749('0x60')],_0x6b5c71=new _0x58adee(_0x386480,_0x4881ee[_0xa749('0x47')](_0x48bfd7=>F(_0x48bfd7,this[_0xa749('0xcc')])));return this[_0xa749('0xcc')][_0xa749('0x101')]['toModel'](_0x6b5c71);}[_0xa749('0xc')](_0x391d26,_0x108d39,_0x59a28d,_0x3b0d0e){const _0x101c78=new Map(_0x108d39),_0x1f236c=new Map(_0x40da37(_0x3b0d0e)),_0x2736a0=new Map();for(const [_0x1c1ec3,_0x3aff8f]of _0x59a28d)_0x2736a0[_0xa749('0xb0')](_0x1c1ec3,{'start':_0x3aff8f[_0xa749('0x91')]['clone'](),'end':_0x3aff8f[_0xa749('0x49')][_0xa749('0xfa')](),'rootName':_0x3aff8f[_0xa749('0xc7')]['rootName']});this['_savedMetaData'][_0xa749('0xb0')](_0x391d26,{'roots':_0x101c78,'markers':_0x2736a0,'rootsAttributes':_0x1f236c});}[_0xa749('0xaa')](_0x409d5a){this[_0xa749('0x100')][_0xa749('0xed')](_0x409d5a);}[_0xa749('0x25')](){this[_0xa749('0x10e')](),this[_0xa749('0xfd')]=-0x1,this[_0xa749('0xa3')]=-0x1,this[_0xa749('0x100')]['clear'](),this[_0xa749('0x102')](this['source']);}['_reset'](){this[_0xa749('0x42')]['clear'](),this['_touchedMarkers'][_0xa749('0xa6')](),this['_touchedRoots'][_0xa749('0xa6')](),this[_0xa749('0xc2')]['clear'](),this[_0xa749('0x97')][_0xa749('0xa6')](),this[_0xa749('0xd1')][_0xa749('0xa6')](),this[_0xa749('0xa2')][_0xa749('0xa6')](),this['_idsRoots'][_0xa749('0xa6')](),this[_0xa749('0x4f')][_0xa749('0xa6')](),this[_0xa749('0x79')][_0xa749('0xa6')](),this[_0xa749('0x22')]=0x1,this['_startingRevisionId']=this[_0xa749('0x22')];}[_0xa749('0x78')](_0x4e11e5,_0x1476d2=null){let _0x3a7712=null;_0x4e11e5['is']('documentFragment')||(_0x3a7712=new _0xbc8c15(_0x4e11e5[_0xa749('0xb2')],{'vid_start':null===_0x1476d2?this[_0xa749('0x22')]++:_0x1476d2++}));const _0x1c1f9f=[];for(const _0x45542b of _0x4e11e5[_0xa749('0x3a')]())if(_0x45542b['is']('element')){_0x1c1f9f[_0xa749('0xe6')](this[_0xa749('0x78')](_0x45542b,_0x1476d2));const _0x358e3d=_0x1c1f9f[_0x1c1f9f[_0xa749('0x6a')]-0x1];null!==_0x1476d2&&(_0x1476d2=_0x358e3d['is'](_0xa749('0xba'),_0xa749('0x68'))?_0x358e3d['getAttribute'](_0xa749('0x104'))+0x1:_0x358e3d[_0xa749('0xce')]('vid_end')+0x1);}else for(let _0x465378=0x0;_0x465378<_0x45542b[_0xa749('0xe5')];_0x465378++)_0x1c1f9f[_0xa749('0xe6')](new _0xbc8c15(_0xa749('0x68'),{'vid':null===_0x1476d2?this[_0xa749('0x22')]++:_0x1476d2++}));if(_0x4e11e5['is'](_0xa749('0xd4'))){const _0x1b8c5b=J(_0x4e11e5[_0xa749('0x17')]);return _0x1b8c5b[_0xa749('0x8b')](0x0,_0x1c1f9f),_0x1b8c5b;}return _0x3a7712[_0xa749('0x13')]('vid_end',null===_0x1476d2?this[_0xa749('0x22')]++:_0x1476d2++),_0x3a7712['_insertChild'](0x0,_0x1c1f9f),_0x3a7712;}['_calculateMetaData'](_0x2157a9,_0x305e29,_0x3a9a16){this[_0xa749('0x10e')]();const {roots:_0x50124c,markers:_0x4898f3,rootsAttributes:_0x4c58d5}=this[_0xa749('0x100')]['get'](_0x2157a9);this[_0xa749('0xd1')]=new Map(_0x50124c),this[_0xa749('0xa2')]=new Map(_0x40da37(_0x4c58d5));for(const [_0xfc2dc6,_0x46fbf1]of this[_0xa749('0xd1')])if('$graveyard'!==_0xfc2dc6&&(this[_0xa749('0xc2')][_0xa749('0xb0')](_0xfc2dc6,B(_0x46fbf1)),this[_0xa749('0x97')]=new Map(_0x40da37(_0x4c58d5)),_0x3a9a16)){const _0x50fd1e=this['_revisionId'];this[_0xa749('0x44')][_0xa749('0xb0')](_0xfc2dc6,this[_0xa749('0x78')](_0x46fbf1)),this[_0xa749('0x4f')][_0xa749('0xb0')](_0xfc2dc6,this[_0xa749('0x78')](_0x46fbf1,_0x50fd1e));}this[_0xa749('0x32')]=this[_0xa749('0x22')],this[_0xa749('0xc2')][_0xa749('0xb0')](_0xa749('0xa1'),B(this[_0xa749('0xd1')][_0xa749('0x2e')](_0xa749('0xa1')))),_0x3a9a16&&this[_0xa749('0x44')][_0xa749('0xb0')](_0xa749('0xa1'),this['_makeIdsRoot'](this[_0xa749('0xd1')][_0xa749('0x2e')]('$graveyard')));for(const [_0x2f0158,_0x23eed8]of _0x4898f3){const _0x571774=this[_0xa749('0xd1')]['get'](_0x23eed8[_0xa749('0x17')]),_0x138e40=this[_0xa749('0xc2')][_0xa749('0x2e')](_0x23eed8[_0xa749('0x17')]),_0x409e20=new _0x130d70(this[_0xa749('0x41')](_0x23eed8[_0xa749('0x91')],_0x571774),this[_0xa749('0x41')](_0x23eed8[_0xa749('0x49')],_0x571774)),_0x239bbf=this[_0xa749('0xe8')](_0x409e20,_0x138e40);_0x571774[_0xa749('0x80')][_0xa749('0xb0')](_0x2f0158,_0x409e20),this[_0xa749('0x79')][_0xa749('0xb0')](_0x2f0158,_0x239bbf);}this['_applyOperations'](_0x2157a9,_0x305e29,_0x3a9a16);}['_applyOperations'](_0x3b429d,_0x2ea398,_0x2693e6){for(const _0x33fe48 of this['source'][_0xa749('0xc0')](_0x3b429d,_0x2ea398))this[_0xa749('0x55')](_0x33fe48,_0x2693e6);for(const _0x2cc2ac of this[_0xa749('0xc2')][_0xa749('0xf4')]())_0x2cc2ac[_0xa749('0x80')][_0xa749('0xa6')]();for(const [_0x2f5e40,_0x581145]of this[_0xa749('0x79')]){this[_0xa749('0xc2')][_0xa749('0x2e')](_0x581145['root'][_0xa749('0x17')])['markers']['set'](_0x2f5e40,_0x581145[_0xa749('0xfa')]());}const _0x5b5004=new Map(),_0x4d05e2=new Map();for(const [_0x13c7e7,_0x37251a]of this[_0xa749('0xc2')])_0x5b5004[_0xa749('0xb0')](_0x13c7e7,B(_0x37251a)),_0x4d05e2[_0xa749('0xb0')](_0x13c7e7,this[_0xa749('0x97')]['get'](_0x13c7e7));this[_0xa749('0xc')](_0x2ea398,_0x5b5004,this['_markers'],_0x4d05e2);}[_0xa749('0x85')](_0x19a2c6){const _0x469017=Array['from'](this['_savedMetaData'][_0xa749('0x109')]());_0x469017['sort']((_0x5b6076,_0x1b1ee0)=>_0x5b6076-_0x1b1ee0),_0x469017[_0xa749('0x3b')]();for(const _0x52eab2 of _0x469017)if(_0x52eab2<_0x19a2c6)return _0x52eab2;return Number[_0xa749('0x54')];}[_0xa749('0x18')](_0x13e71f,_0x22d3ea){const _0x3513d8=Array[_0xa749('0xdc')](_0x22d3ea['markers'])[_0xa749('0x47')](([_0x3a4989,_0x41dd36])=>[_0x3a4989,this[_0xa749('0xe8')](_0x41dd36,_0x13e71f)]);_0x13e71f[_0xa749('0x80')]=new Map(_0x3513d8);}[_0xa749('0x66')](_0x34fa62){for(const _0x53e0d9 of this[_0xa749('0x79')][_0xa749('0xf4')]()){const _0x39113f=_0x53e0d9[_0xa749('0x74')](_0x34fa62),_0x119b86=_0x130d70['_createFromRanges'](_0x39113f);_0x53e0d9[_0xa749('0x91')]=_0x119b86[_0xa749('0x91')],_0x53e0d9[_0xa749('0x49')]=_0x119b86[_0xa749('0x49')];}}[_0xa749('0x55')](_0x471c8d,_0x346348){if(_0xa749('0x5f')==_0x471c8d[_0xa749('0x7c')]||_0xa749('0x37')==_0x471c8d['type'])return void this[_0xa749('0xdf')](_0x471c8d,_0x346348);if(_0xa749('0x106')==_0x471c8d[_0xa749('0x7c')]){const _0x4941e5=_0x471c8d[_0xa749('0x9a')][_0xa749('0xc7')][_0xa749('0x17')];this[_0xa749('0xc2')][_0xa749('0xa5')](_0x4941e5)||(this[_0xa749('0xc2')]['set'](_0x4941e5,J(_0x4941e5,!0x0)),this['_diffRootsAttributes'][_0xa749('0xb0')](_0x4941e5,{}),_0x346348&&this[_0xa749('0x44')]['set'](_0x4941e5,J(_0x4941e5,!0x0)));}if(_0xa749('0x7e')==_0x471c8d[_0xa749('0x7c')]||_0xa749('0x1')==_0x471c8d['type']||_0xa749('0xb9')==_0x471c8d[_0xa749('0x7c')])return void this['_handleRootAttributeOperation'](_0x471c8d);const _0x498edf=this[_0xa749('0x4e')](_0x471c8d,this[_0xa749('0xc2')]);if(_0xa749('0x9e')!==_0x471c8d['type']&&(_0x498edf[_0xa749('0x6')](),this[_0xa749('0x66')](_0x498edf)),_0x346348)switch(_0x498edf[_0xa749('0x7c')]){case _0xa749('0x106'):this[_0xa749('0x7d')](_0x471c8d);break;case'move':case _0xa749('0xbd'):case _0xa749('0x61'):this[_0xa749('0x46')](_0x471c8d);break;case _0xa749('0xc8'):this['_handleMergeOperation'](_0x471c8d);break;case'split':this[_0xa749('0x64')](_0x471c8d);break;case'marker':this[_0xa749('0xb6')](_0x471c8d);}}[_0xa749('0x4e')](_0xf32046,_0x5d16ad){const _0x13892e=_0xf32046[_0xa749('0xfa')]();return _0x13892e[_0xa749('0xc9')]=_0xf32046[_0xa749('0xc9')],this[_0xa749('0x72')](_0x13892e,_0x5d16ad),_0x13892e;}[_0xa749('0xc3')](_0x53b7e3){return _0x53b7e3[_0xa749('0x47')](_0x564fc8=>{const _0x5dee4b=this['_getVidAttributeName'](_0x564fc8);return Number(_0x564fc8[_0xa749('0x88')][_0xa749('0xce')](_0x5dee4b));});}['_generateTape'](_0x1be61a,_0x31351e){if(_0x1be61a['is']('element',_0xa749('0x68')))_0x31351e[_0xa749('0xe6')]({'item':_0x1be61a,'type':_0xa749('0x62')});else{_0x1be61a['is'](_0xa749('0xba'))&&_0x31351e['push']({'item':_0x1be61a,'type':_0xa749('0x34')});for(const _0x48b2ec of _0x1be61a[_0xa749('0x3a')]())this[_0xa749('0xf2')](_0x48b2ec,_0x31351e);_0x1be61a['is'](_0xa749('0xba'))&&_0x31351e['push']({'item':_0x1be61a,'type':_0xa749('0xeb')});}return _0x31351e;}['_getState'](){const _0x195f63=new Map(this[_0xa749('0x42')]),_0x350c2c=new Map(_0x195f63),_0x3aac1d=new Map(),_0x1418bc={'insertions':{},'deletions':{}},_0x2d6d6c={'insertions':{},'deletions':{}},_0x59748b=new Map(),_0x15d8bb=new Set([...this[_0xa749('0xd1')]['keys'](),...this[_0xa749('0xc2')][_0xa749('0x109')]()]);_0x15d8bb['delete'](_0xa749('0xa1'));for(const _0x8e2645 of _0x15d8bb){const _0xbb9d1c=this[_0xa749('0xc2')][_0xa749('0x2e')](_0x8e2645)||J(_0x8e2645,!0x1),_0x33c3a0=this['_baseRoots'][_0xa749('0x2e')](_0x8e2645)||J(_0x8e2645,!0x1);_0xbb9d1c[_0xa749('0x87')]()||_0x33c3a0[_0xa749('0x87')]()?(_0x1418bc[_0xa749('0x11')][_0x8e2645]=B(_0xbb9d1c),_0x1418bc['deletions'][_0x8e2645]=B(_0x33c3a0),this[_0xa749('0x18')](_0x1418bc[_0xa749('0x5')][_0x8e2645],_0x33c3a0),this['_copyMarkers'](_0x1418bc[_0xa749('0x11')][_0x8e2645],_0xbb9d1c),_0x2d6d6c[_0xa749('0x11')][_0x8e2645]=this[_0xa749('0xf2')](this[_0xa749('0x44')][_0xa749('0x2e')](_0x8e2645),[]),_0x2d6d6c[_0xa749('0x5')][_0x8e2645]=this[_0xa749('0xf2')](this[_0xa749('0x4f')][_0xa749('0x2e')](_0x8e2645)||J(_0x8e2645,!0x1),[])):_0x15d8bb[_0xa749('0xed')](_0x8e2645);}for(const _0x40bd73 of _0x15d8bb){const _0x78edf1=_0x2d6d6c[_0xa749('0x11')][_0x40bd73];for(const _0x3a5d1e of _0x78edf1){const _0x11b5ab=this[_0xa749('0x71')](_0x3a5d1e),_0x3fca88=_0x3a5d1e[_0xa749('0x88')][_0xa749('0xce')](_0x11b5ab);_0x350c2c[_0xa749('0xed')](_0x3fca88),_0x3fca88>=this[_0xa749('0x32')]&&_0x3aac1d[_0xa749('0xb0')](_0x3fca88,_0x195f63['get'](_0x3fca88));}}for(const _0xf94ef5 of _0x15d8bb){const _0x2163f9=_0x2d6d6c['insertions'][_0xf94ef5],_0x3bebd5=this[_0xa749('0xc3')](_0x2d6d6c[_0xa749('0x5')][_0xf94ef5]);let _0x14b003=0x0;for(const _0x3316b7 of _0x2163f9){const _0x2321ad=this[_0xa749('0x71')](_0x3316b7),_0x561b56=_0x3316b7['item'][_0xa749('0xce')](_0x2321ad);if(!_0x3aac1d[_0xa749('0xa5')](_0x561b56)&&!_0x59748b['has'](_0x561b56)){if(_0x350c2c['has'](_0x561b56))_0x14b003++;else{if(_0x561b56!=_0x3bebd5[_0x14b003]){const _0x4081d1=_0x195f63[_0xa749('0x2e')](_0x561b56)||_0x195f63[_0xa749('0x2e')](_0x3bebd5[_0x14b003]);for(;_0x561b56!=_0x3bebd5[_0x14b003];)_0x350c2c[_0xa749('0xa5')](_0x3bebd5[_0x14b003])||(_0x59748b[_0xa749('0xb0')](_0x3bebd5[_0x14b003],_0x4081d1),_0x195f63[_0xa749('0xb0')](_0x3bebd5[_0x14b003],_0x4081d1)),_0x14b003++;}_0x14b003++;}}}}for(const _0x86d27f of _0x15d8bb){const _0x355f48=_0x2d6d6c[_0xa749('0x11')][_0x86d27f];for(const _0x53fc82 of _0x355f48){const _0x3a9a17=this[_0xa749('0x71')](_0x53fc82),_0x1dbdc1=_0x53fc82[_0xa749('0x88')][_0xa749('0xce')](_0x3a9a17);if(_0x59748b['has'](_0x1dbdc1)){const _0xb09f71=_0x59748b[_0xa749('0x2e')](_0x1dbdc1);_0x350c2c[_0xa749('0xa5')](_0x1dbdc1)||_0x350c2c[_0xa749('0xb0')](_0x1dbdc1,{..._0xb09f71}),_0x3aac1d[_0xa749('0xb0')](_0x1dbdc1,{..._0xb09f71});}}}for(const _0xb2a96 of _0x350c2c[_0xa749('0x109')]())_0xb2a96>=this[_0xa749('0x32')]&&_0x350c2c[_0xa749('0xed')](_0xb2a96);const _0x3be2ba=new Map();for(const _0x5bd42f of _0x15d8bb){let _0x5d0f9c=_0x2d6d6c[_0xa749('0x11')][_0x5bd42f];for(const _0x14a03a of _0x5d0f9c)if(_0x14a03a[_0xa749('0x88')]['is'](_0xa749('0xba'),_0xa749('0xd3'))){const _0x26dabd=this[_0xa749('0x71')](_0x14a03a),_0x31d77c=_0x14a03a['item'][_0xa749('0xce')](_0x26dabd);if(_0x3aac1d['has'](_0x31d77c)){const _0x36fdeb=_0x14a03a['item'][_0xa749('0x50')]['parent'][_0xa749('0xce')](_0xa749('0xbc')),_0x131021=_0x3be2ba[_0xa749('0x2e')](_0x36fdeb)||new Set();_0x131021[_0xa749('0x77')](_0x3aac1d[_0xa749('0x2e')](_0x31d77c)['userId']),_0x3be2ba[_0xa749('0xb0')](_0x36fdeb,_0x131021);}}_0x5d0f9c=_0x2d6d6c[_0xa749('0x5')][_0x5bd42f];for(const _0x332995 of _0x5d0f9c)if(_0x332995['item']['is'](_0xa749('0xba'),_0xa749('0xd3'))){const _0x480311=this[_0xa749('0x71')](_0x332995),_0x3bb1e3=_0x332995[_0xa749('0x88')][_0xa749('0xce')](_0x480311);if(_0x350c2c[_0xa749('0xa5')](_0x3bb1e3)){const _0x1b350a=_0x332995[_0xa749('0x88')][_0xa749('0x50')][_0xa749('0x50')][_0xa749('0xce')]('vid_start'),_0x40d615=_0x3be2ba[_0xa749('0x2e')](_0x1b350a)||new Set();_0x40d615[_0xa749('0x77')](_0x350c2c['get'](_0x3bb1e3)['userId']),_0x3be2ba[_0xa749('0xb0')](_0x1b350a,_0x40d615);}}for(const _0x194648 of _0x3be2ba[_0xa749('0x109')]())(_0x3aac1d['has'](_0x194648)||_0x350c2c[_0xa749('0xa5')](_0x194648))&&_0x3be2ba[_0xa749('0xed')](_0x194648);}for(const _0x23ba32 of _0x15d8bb){const _0x381e51=_0x2d6d6c[_0xa749('0x11')][_0x23ba32];let _0x456274=null,_0x522ed5=null;for(const _0x565366 of _0x381e51){const _0xca7d36=this[_0xa749('0x71')](_0x565366),_0x5359f1=_0x565366[_0xa749('0x88')][_0xa749('0xce')](_0xca7d36),_0x880706=_0x3be2ba[_0xa749('0x2e')](_0x5359f1);_0x880706&&'elementStart'==_0x565366[_0xa749('0x7c')]&&(_0x456274=Array['from'](_0x880706)[0x0],_0x522ed5=_0x565366[_0xa749('0x88')][_0xa749('0xce')](_0xa749('0x53'))),_0x456274&&(_0x350c2c[_0xa749('0xb0')](_0x5359f1,{'userId':_0x456274}),_0x3aac1d[_0xa749('0xb0')](_0x5359f1,{'userId':_0x456274})),_0x5359f1==_0x522ed5&&(_0x456274=null,_0x522ed5=null);}}const _0x44cac3={},_0x59d804=new Set();for(const _0x492656 of _0x15d8bb){const _0x13d4d2=_0x1418bc[_0xa749('0x5')][_0x492656],_0x58c692=_0x1418bc[_0xa749('0x11')][_0x492656];for(const {userId:_0x32772b}of this[_0xa749('0x1a')][_0xa749('0xf4')]())null!==_0x32772b&&_0x59d804[_0xa749('0x77')](_0x32772b);for(const {userId:_0x594817}of this[_0xa749('0x2b')][_0xa749('0xf4')]())null!==_0x594817&&_0x59d804[_0xa749('0x77')](_0x594817);this[_0xa749('0x15')](_0x58c692,_0x2d6d6c[_0xa749('0x11')][_0x492656],_0x3aac1d,'insertion',_0x59d804),this[_0xa749('0x15')](_0x13d4d2,_0x2d6d6c[_0xa749('0x5')][_0x492656],_0x350c2c,_0xa749('0xd9'),_0x59d804),_0x44cac3[_0x492656]={'insertions':this['_prepareViewToSave'](_0x58c692),'deletions':this[_0xa749('0xb3')](_0x13d4d2),'attachChange':this['_touchedRoots']['get'](_0x492656)||null,'attributesBefore':_0x40da37(this[_0xa749('0xa2')]['get'](_0x492656))||{},'attributesAfter':_0x40da37(this[_0xa749('0x97')][_0xa749('0x2e')](_0x492656))};}return{'diffData':_0x44cac3,'authorsIds':Array['from'](_0x59d804)};}['_processRootBeforeSave'](_0x20963a){for(const [,_0x18cf95]of _0x20963a[_0xa749('0x80')]){const _0x495cd7=_0x18cf95[_0xa749('0x91')][_0xa749('0x33')]()[_0xa749('0xfb')](_0x1cd534=>_0xa749('0xd3')==_0x1cd534[_0xa749('0xb2')]);for(const _0x5e2643 of _0x495cd7)0x1==_0x5e2643['childCount']&&_0x5e2643[_0xa749('0x95')](0x0)['is'](_0xa749('0xba'),_0xa749('0x9c'))&&_0x5e2643[_0xa749('0x95')](0x0)['_setAttribute'](_0xa749('0xe3'),!0x0);}}['_prepareViewToSave'](_0x49cf26){this[_0xa749('0x5c')](_0x49cf26);const _0x158ecd=this['editor'][_0xa749('0x101')]['toView'](_0x49cf26,{}),_0x538698=Array[_0xa749('0xdc')](_0x158ecd[_0xa749('0x3a')]())[_0xa749('0x47')](_0x15d221=>this[_0xa749('0x3e')](_0x15d221));return JSON[_0xa749('0x8f')](_0x538698);}[_0xa749('0x3e')](_0x1fceab){if(_0x1fceab['is']('$text'))return _0x1fceab[_0xa749('0x101')];{const _0x3f8cfc=_0x1fceab;return{'type':Object[_0xa749('0x109')](j)[_0xa749('0xf8')](_0x416b40=>_0x1fceab instanceof j[_0x416b40]),'name':_0x3f8cfc[_0xa749('0xb2')],'attributes':Array[_0xa749('0xdc')](_0x3f8cfc[_0xa749('0x5e')]()),'children':Array[_0xa749('0xdc')](_0x3f8cfc[_0xa749('0x3a')]())['map'](_0x5a4466=>this[_0xa749('0x3e')](_0x5a4466))};}}[_0xa749('0x15')](_0x28cdd1,_0x5a1579,_0x246333,_0x4d8b02,_0x1ac6ab){let _0x162f50=null,_0x7eb909=null,_0xc5c8d7=0x0;const _0x5053e7=this[_0xa749('0xcc')]['model'];for(let _0x14ae9a=0x0;_0x14ae9a<_0x5a1579[_0xa749('0x6a')];_0x14ae9a++){const _0x2a7446=this[_0xa749('0x71')](_0x5a1579[_0x14ae9a]),_0x22ddea=_0x5a1579[_0x14ae9a][_0xa749('0x88')][_0xa749('0xce')](_0x2a7446),_0xc28062=_0x246333[_0xa749('0x2e')](_0x22ddea),_0x37e9dd=_0x14ae9a==_0x5a1579[_0xa749('0x6a')]-0x1;(!_0x162f50&&_0xc28062&&(_0x162f50=_0xc28062,_0x7eb909=_0x5a1579[_0x14ae9a]),_0x162f50&&(!_0xc28062||_0xc28062[_0xa749('0xd5')]!=_0x162f50[_0xa749('0xd5')]))&&(_0x3c2799(_0xc28062,H(_0x7eb909,_0x28cdd1,_0x5053e7),H(_0x5a1579[_0x14ae9a],_0x28cdd1,_0x5053e7)),_0x162f50=_0xc28062||null,_0x7eb909=_0xc28062?_0x5a1579[_0x14ae9a]:null),_0x162f50&&_0x37e9dd&&_0x3c2799(_0xc28062,H(_0x7eb909,_0x28cdd1,_0x5053e7),q(_0x5a1579[_0x14ae9a],_0x28cdd1,_0x5053e7));}function _0x3c2799(_0x1aad0d,_0xcfae04,_0x5ed95a){const _0x2cf3cd=_0x162f50[_0xa749('0xd5')],_0x2ffc53=_0xa749('0xde')+_0x4d8b02+':'+_0x2cf3cd+':'+_0xc5c8d7++,_0x53e6fc=_0x5053e7[_0xa749('0x1d')](_0xcfae04,_0x5ed95a);_0x28cdd1[_0xa749('0x80')][_0xa749('0xb0')](_0x2ffc53,_0x53e6fc),null!==_0x2cf3cd&&_0x1ac6ab[_0xa749('0x77')](_0x2cf3cd);}}[_0xa749('0x71')](_0xffaedd){switch(_0xffaedd[_0xa749('0x7c')]){case _0xa749('0x34'):return _0xa749('0xbc');case _0xa749('0xeb'):return _0xa749('0x53');default:return _0xa749('0x104');}}[_0xa749('0x72')](_0x4934d6,_0x24f67c){_0x4934d6[_0xa749('0xd0')]=null;for(const _0x31c299 in _0x4934d6){const _0x3f9efb=_0x4934d6[_0x31c299];if(_0x3f9efb instanceof _0x4a0de6){const _0x2bb14c=_0x24f67c['get'](_0x3f9efb[_0xa749('0xc7')][_0xa749('0x17')]);_0x4934d6[_0x31c299]=this[_0xa749('0x41')](_0x3f9efb,_0x2bb14c);}if(_0x3f9efb instanceof _0x130d70){const _0x512a21=_0x24f67c[_0xa749('0x2e')](_0x3f9efb['root'][_0xa749('0x17')]);_0x4934d6[_0x31c299]=this[_0xa749('0xe8')](_0x3f9efb,_0x512a21);}_0xa749('0xc7')===_0x31c299&&(_0x4934d6[_0xa749('0xc7')]=_0x24f67c[_0xa749('0x2e')](_0x4934d6[_0xa749('0xc7')][_0xa749('0x17')]));}}[_0xa749('0xe8')](_0x359dea,_0x4d623d){return this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x1d')](this[_0xa749('0x41')](_0x359dea['start'],_0x4d623d),this[_0xa749('0x41')](_0x359dea['end'],_0x4d623d));}[_0xa749('0x41')](_0xc0a8ff,_0x187c5e){return this[_0xa749('0xcc')]['model'][_0xa749('0x14')](_0x187c5e,_0xc0a8ff['path'],_0xc0a8ff[_0xa749('0x30')]);}['_handleInsertOperation'](_0x5f0d33){const _0x51f009=this[_0xa749('0x44')][_0xa749('0x2e')](_0x5f0d33[_0xa749('0x9a')][_0xa749('0xc7')][_0xa749('0x17')]),_0x427841=this[_0xa749('0x41')](_0x5f0d33[_0xa749('0x9a')],_0x51f009),_0x3fc162=null===_0x5f0d33['_authorId']?null:_0x5f0d33[_0xa749('0xc9')]||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')]('Users')['me']['id'],_0xc6265c=_0x427841[_0xa749('0x50')],_0x265205=this['_revisionId'],_0xee9fa0=[];for(const _0x145404 of _0x5f0d33[_0xa749('0xef')])if(_0x145404['is'](_0xa749('0xba')))_0xee9fa0['push'](this[_0xa749('0x78')](_0x145404));else for(let _0x3cf5af=0x0;_0x3cf5af<_0x145404['offsetSize'];_0x3cf5af++)_0xee9fa0[_0xa749('0xe6')](new _0xbc8c15(_0xa749('0x68'),{'vid':this['_revisionId']++}));const _0x391a9f=this[_0xa749('0x22')];for(let _0x4790b4=_0x265205;_0x4790b4<_0x391a9f;_0x4790b4++)this[_0xa749('0x42')][_0xa749('0xb0')](_0x4790b4,{'userId':_0x3fc162});_0xc6265c[_0xa749('0x8b')](_0x427841[_0xa749('0x59')],_0xee9fa0);}[_0xa749('0x46')](_0x1f61be){(_0x1f61be=this[_0xa749('0x4e')](_0x1f61be,this[_0xa749('0x44')]))[_0xa749('0x6')]();const _0x10a830=null===_0x1f61be[_0xa749('0xc9')]?null:_0x1f61be['_authorId']||this[_0xa749('0xcc')]['plugins'][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x4a7104=_0x1f61be[_0xa749('0x26')](),_0x4fc2fe=_0x4a7104['parent'],_0x41dff0=_0x4a7104[_0xa749('0x59')];!function _0x52dd17(_0x55fce8,_0x372b67,_0x2b7ea5,_0x354176){for(let _0x5ddae1=_0x2b7ea5;_0x5ddae1<_0x354176;_0x5ddae1++){const _0x29e409=_0x372b67[_0xa749('0x95')](_0x5ddae1);_0x29e409['is'](_0xa749('0xba'),'$text')?_0x55fce8['set'](_0x29e409[_0xa749('0xce')](_0xa749('0x104')),{'userId':_0x10a830}):(_0x55fce8[_0xa749('0xb0')](_0x29e409[_0xa749('0xce')](_0xa749('0xbc')),{'userId':_0x10a830}),_0x52dd17(_0x55fce8,_0x29e409,0x0,_0x29e409[_0xa749('0x8')]),_0x55fce8[_0xa749('0xb0')](_0x29e409['getAttribute'](_0xa749('0x53')),{'userId':_0x10a830}));}}(this[_0xa749('0x42')],_0x4fc2fe,_0x41dff0,_0x41dff0+_0x1f61be['howMany']);}[_0xa749('0x8e')](_0x42a1a2){const _0x539c73=null===(_0x42a1a2=this['_cloneOperation'](_0x42a1a2,this[_0xa749('0x44')]))['_authorId']?null:_0x42a1a2[_0xa749('0xc9')]||this['editor'][_0xa749('0xb7')]['get'](_0xa749('0x65'))['me']['id'],_0x55e1ef=_0x42a1a2[_0xa749('0xe7')]['parent'],_0x139ad5=_0x42a1a2[_0xa749('0xf7')][_0xa749('0x50')],_0x215e2a=_0x55e1ef[_0xa749('0xce')](_0xa749('0x53')),_0x18ba71=_0x139ad5[_0xa749('0xce')]('vid_start');_0x55e1ef[_0xa749('0x13')](_0xa749('0x53'),_0x139ad5[_0xa749('0xce')]('vid_end')),_0x139ad5[_0xa749('0x13')](_0xa749('0x53'),_0x215e2a),this[_0xa749('0x42')]['set'](_0x18ba71,{'userId':_0x539c73}),this[_0xa749('0x42')]['set'](_0x215e2a,{'userId':_0x539c73}),_0x42a1a2[_0xa749('0x6')]();}['_handleSplitOperation'](_0x564136){const _0xe7e29d=null===(_0x564136=this[_0xa749('0x4e')](_0x564136,this[_0xa749('0x44')]))[_0xa749('0xc9')]?null:_0x564136['_authorId']||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x3ac17b=_0x564136[_0xa749('0x67')],_0x4d3965=_0x564136[_0xa749('0x8d')]['parent'];_0x564136[_0xa749('0x6')]();const _0x3917c1=_0x4d3965['getAttribute'](_0xa749('0x53')),_0x4d95b2=_0x564136['insertionPosition'][_0xa749('0x1b')];if(_0x3ac17b){const _0x1e2a6c=_0x4d95b2[_0xa749('0xce')](_0xa749('0x53')),_0x1990a6=_0x4d3965[_0xa749('0xce')](_0xa749('0x53'));_0x4d3965[_0xa749('0x13')](_0xa749('0x53'),_0x1e2a6c),_0x4d95b2[_0xa749('0x13')](_0xa749('0x53'),_0x1990a6),this[_0xa749('0x42')][_0xa749('0xb0')](_0x4d3965[_0xa749('0xce')](_0xa749('0x53')),{'userId':_0xe7e29d}),this[_0xa749('0x42')]['set'](_0x4d95b2[_0xa749('0xce')](_0xa749('0xbc')),{'userId':_0xe7e29d});}else{const _0xdf8024=this[_0xa749('0x22')]++,_0x3b5811=this[_0xa749('0x22')]++;_0x4d3965[_0xa749('0x13')](_0xa749('0x53'),_0xdf8024),_0x4d95b2[_0xa749('0x13')](_0xa749('0xbc'),_0x3b5811),_0x4d95b2[_0xa749('0x13')]('vid_end',_0x3917c1),this['_touched'][_0xa749('0xb0')](_0xdf8024,{'userId':_0xe7e29d}),this['_touched'][_0xa749('0xb0')](_0x3b5811,{'userId':_0xe7e29d});}}['_handleMarkerOperation'](_0x211d5e){if(!_0x211d5e[_0xa749('0x43')])return;const _0x152267=(_0x211d5e=this[_0xa749('0x4e')](_0x211d5e,this[_0xa749('0xc2')]))[_0xa749('0xb5')]?_0x211d5e[_0xa749('0xb5')][_0xa749('0xc7')]:null,_0x1a65c4=_0x211d5e[_0xa749('0x9f')]?_0x211d5e[_0xa749('0x9f')][_0xa749('0xc7')]:null;_0x152267&&this[_0xa749('0x79')][_0xa749('0xed')](_0x211d5e[_0xa749('0xb2')]),_0x1a65c4&&this[_0xa749('0x79')]['set'](_0x211d5e['name'],_0x211d5e['newRange'][_0xa749('0xfa')]());const _0x1cc016=null===_0x211d5e[_0xa749('0xc9')]?null:_0x211d5e[_0xa749('0xc9')]||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x4db991=_0x211d5e[_0xa749('0xb2')];if(!this[_0xa749('0x1a')]['has'](_0x4db991))return void this[_0xa749('0x1a')][_0xa749('0xb0')](_0x4db991,{'range':_0x211d5e[_0xa749('0xb5')],'userId':_0x1cc016});const _0x5b8ef0=this['_touchedMarkers'][_0xa749('0x2e')](_0x4db991),_0x4ed092=_0x5b8ef0[_0xa749('0xc1')],_0x40b850=_0x211d5e[_0xa749('0x9f')];null==_0x4ed092&&null==_0x40b850||_0x4ed092&&_0x40b850&&_0x4ed092[_0xa749('0x4')](_0x40b850)?this['_touchedMarkers'][_0xa749('0xed')](_0x211d5e['name']):_0x5b8ef0[_0xa749('0xd5')]=_0x1cc016;}['_handleRootOperation'](_0x36dda9,_0x4bcdf6){this[_0xa749('0xc2')]['has'](_0x36dda9[_0xa749('0x17')])?this['_diffRoots'][_0xa749('0x2e')](_0x36dda9[_0xa749('0x17')])[_0xa749('0x73')]=_0x36dda9[_0xa749('0x2a')]:(this[_0xa749('0xc2')][_0xa749('0xb0')](_0x36dda9[_0xa749('0x17')],J(_0x36dda9[_0xa749('0x17')],!0x0)),this[_0xa749('0x97')][_0xa749('0xb0')](_0x36dda9[_0xa749('0x17')],{}),_0x4bcdf6&&this[_0xa749('0x44')]['set'](_0x36dda9[_0xa749('0x17')],J(_0x36dda9[_0xa749('0x17')],!0x0)));const _0x5861f2=null===_0x36dda9[_0xa749('0xc9')]?null:_0x36dda9[_0xa749('0xc9')]||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')]('Users')['me']['id'],_0x98783f=this['_touchedRoots'][_0xa749('0x2e')](_0x36dda9[_0xa749('0x17')]);_0x98783f&&_0x98783f[_0xa749('0xd5')]===_0x5861f2?this[_0xa749('0x2b')][_0xa749('0xed')](_0x36dda9[_0xa749('0x17')]):this['_touchedRoots'][_0xa749('0xb0')](_0x36dda9[_0xa749('0x17')],{'userId':_0x5861f2,'isAttached':_0x36dda9['isAdd']});}['_handleRootAttributeOperation'](_0x47a8ea){const _0x34f40e=this[_0xa749('0x97')][_0xa749('0x2e')](_0x47a8ea['root'][_0xa749('0x17')]);null===_0x47a8ea[_0xa749('0x90')]?delete _0x34f40e[_0x47a8ea[_0xa749('0xd')]]:_0x34f40e[_0x47a8ea[_0xa749('0xd')]]=_0x47a8ea[_0xa749('0x90')];}}function B(_0x177a87){const _0x3202c2=J(_0x177a87[_0xa749('0x17')],_0x177a87['isAttached']());for(const _0x109ff0 of _0x177a87[_0xa749('0x3a')]()){const _0x24a69d=_0x109ff0[_0xa749('0x23')](!0x0);_0x3202c2[_0xa749('0xb8')](_0x24a69d);}return _0x3202c2;}function J(_0x17035a,_0x5dad8e=!0x0){const _0x4d2fe7=new _0x33b272();return _0x4d2fe7[_0xa749('0x17')]=_0x17035a,_0x4d2fe7[_0xa749('0x73')]=_0x5dad8e,_0x4d2fe7[_0xa749('0x87')]=()=>_0x4d2fe7['_isAttached'],_0x4d2fe7;}function H(_0x8cc936,_0xbb0bc8,_0x5904b6){const _0x254ae8=_0xa749('0xeb')==_0x8cc936[_0xa749('0x7c')]?_0x5904b6[_0xa749('0xf0')](_0x8cc936[_0xa749('0x88')],_0xa749('0x49')):_0x5904b6['createPositionBefore'](_0x8cc936[_0xa749('0x88')]);return _0x5904b6[_0xa749('0x14')](_0xbb0bc8,_0x254ae8[_0xa749('0x12')],_0x254ae8[_0xa749('0x30')]);}function q(_0x12fcb0,_0x4d78d1,_0x3714ff){const _0xe37c0c=_0xa749('0x34')==_0x12fcb0[_0xa749('0x7c')]?_0x3714ff[_0xa749('0xf0')](_0x12fcb0[_0xa749('0x88')],0x0):_0x3714ff[_0xa749('0xe2')](_0x12fcb0['item']);return _0x3714ff[_0xa749('0x14')](_0x4d78d1,_0xe37c0c[_0xa749('0x12')],_0xe37c0c[_0xa749('0x30')]);}
|