@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240123.0 → 0.0.0-nightly-20240125.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 +5 -5
- 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 _0x2c76=['keys','conversion','revision:','values','_loadedStateData','merge','_fixOperation','_handleMarkerOperation','find','includes','has','getLatestVersion','sourcePosition','clone','_insertChild','getRoot','type','startsWith','_savedMetaData','creator','item','roots','parent','elementEnd','_authorId','key','markers','_lastTo','keepParagraph','_baseRoots','editor','_generateTape','finally','_operations','getIndex','rootName','getAncestors','_setAttribute','insertions','getAttributes','getRevisionRootsAttributes','_startingVersion','updateRevisions','path','toData','_clone','PendingActions','getChild','vid_end','toModel','nodeAfter','saveRevision','offsetSize','_makeIdsRoot','_initialRevisionId','insert','some','getAttribute','buildRevisionData','_addPendingAction','history','document','_loadRevisionData','_getPreviousFrom','_isInit','_markChanges','push','_baseRootsAttributes','_revisionDataBuilder','reInit','ready','isEqual','_removeMetaData','_applyOperations','_getFromVersion','diffData','model','removeRootAttribute','requires','_removePendingAction','_isPendingUpdate','_createCurrentRevision','get','isEnabled','slice','createPositionAfter','plugins','_update','vid_start','getTime','_transformMarkers','_handleRootOperation','Users','isAttached','addRootAttribute','createRange','getOperation','getCurrentRevisionId','_handleMoveOperation','initialData','Empty\x20document','addRevision','userId','authorsIds','loadState','_handleSplitOperation','root','getData','_findInsertionIndex','for','attributesBefore','toView','end','getRevisionDocumentData','_lastFrom','source','_prepareViewToSave','upcast','elementStart','_diffRootsAttributes','_handleOperation','_loadState','_copyMarkers','_getVidAttributeName','creatorId','delete','_processRootBeforeSave','isReady','_continueCurrentRevision','attributesAfter','RealTimeCollaborationClient','_calculateMetaData','max','previousPosition','$text','set','reverse','_createFromRanges','size','getRevision','split','setSource','editing','splitPosition','$graveyard','isAdd','toVersion','_bufferedUpdates','trim','setRevisionData','view','targetPosition','_isAttached','useFillerType','string','from','define','element','affectsData','attachChange','paragraph','map','_getViewJson','deletions','attributes','newRange','graveyardPosition','children','RevisionTracker','dataDowncast','nodes','version','_handleRootAttributeOperation','authors','_saveMetaData','editor-initial-data-replaced-with-revision-data','howMany','_touchedRoots','_startingRevisionId','_touchedMarkers','config','RevisionsRepository','revision-start','getChildren','Initial\x20revision','processor','_removeRevisionMarkers','add','revisionHistory.resumeUnsavedRevision','length','getWalker','offset','_idsRoots','fromEntries','_replaceEditorDataWithRevisionData','getNodeByPath','insertion','then','createPositionFromPath','PENDING_ACTION_REVISION_HISTORY','NEGATIVE_INFINITY','getRootNames','_cloneOperation','pluginName','dataToMarker','_pendingAction','_fixPosition','data-revision-','createRangeIn','createPositionAt','documentFragment','_source','rootsAttributes','default','_makeRevision','createRevision','addRoot','shift','move','revision','parse','init','update','stickiness','_handleInsertOperation','_execute','_touched','remove','_reset','_getState','fromVersion','marker','getMovedRangeStart','forEach','reinsert','_markers','detachRoot','_createInitialRevision','initial','_fixRange','collaboration.channelId','filter','currentRevision','adapter','range','start','marked','clear','tableCell','_makeModelFromViewString','_getBaseVids','getUser','oldRange','_revisionId','markerToData','_diffRoots','_bufferUpdate','addRevisionData','createdAt','repository','getRevisions','locale','_handleMergeOperation','name','revision-end','afterInit','resolve','position','data','_setConversion','sendBufferedUpdates','getOperations','_baseIdsRoots','childCount'];(function(_0x3be0ca,_0x2c7654){const _0x26f330=function(_0x26182e){while(--_0x26182e){_0x3be0ca['push'](_0x3be0ca['shift']());}};_0x26f330(++_0x2c7654);}(_0x2c76,0x15f));const _0x26f3=function(_0x3be0ca,_0x2c7654){_0x3be0ca=_0x3be0ca-0x0;let _0x26f330=_0x2c76[_0x3be0ca];return _0x26f330;};import{Users as _0x395c49}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x459470,PendingActions as _0x4e968d}from'ckeditor5/src/core.js';import{logWarning as _0x26e46b,uid as _0x22f0b9}from'ckeditor5/src/utils.js';import{Position as _0x4bbf54,Range as _0x2e3d02,Element as _0x45c2f4,DocumentFragment as _0x47a350,ViewText as _0x38bd7b,ViewElement as _0x587620,ViewContainerElement as _0x314654,ViewAttributeElement as _0x3e3f41,ViewEmptyElement as _0x5704da,ViewRawElement as _0x13ac87,ViewUIElement as _0x343fff,ViewDocumentFragment as _0x596646}from'ckeditor5/src/engine.js';import _0x36b002 from'./revisionsrepository.js';import{getTranslation as _0x13d8b1}from'./utils/common-translations.js';import{cloneDeep as _0x395b4b,isEqual as _0x29db60}from'lodash-es';const B={'c':_0x314654,'a':_0x3e3f41,'e':_0x5704da,'r':_0x13ac87,'u':_0x343fff};export default class l extends _0x459470{static get[_0x26f3('0x7e')](){return _0x26f3('0x5b');}static get[_0x26f3('0x1')](){return[_0x395c49,_0x36b002,_0x4e968d];}constructor(_0x2c4b12){super(_0x2c4b12),this[_0x26f3('0xa6')]=null,this['currentRevision']=null,this[_0x26f3('0x109')]=new H(this['editor']),this[_0x26f3('0xfb')]=this[_0x26f3('0xe3')]['config'][_0x26f3('0x5')]('collaboration.channelId')||_0x26f3('0xa1'),this[_0x26f3('0x46')]=new Map(),this['_loadedStateData']=null;const _0x250d85=_0x22f0b9();this[_0x26f3('0x86')]={'history':this[_0x26f3('0xe3')]['model'][_0x26f3('0x102')][_0x26f3('0x101')],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x26f3('0x111')]['document'][_0x26f3('0x5e')]),'getCurrentRevisionId':()=>_0x250d85},this[_0x26f3('0x3a')](_0x26f3('0x32'),!0x1),this[_0x26f3('0x3a')](_0x26f3('0x6'),!0x0),this[_0x26f3('0x3a')](_0x26f3('0x3'),!0x1),this[_0x26f3('0xe3')]['config'][_0x26f3('0x4f')](_0x26f3('0x6f'),!0x0),this[_0x26f3('0xe3')]['conversion'][_0x26f3('0x20')](_0x26f3('0x28'))[_0x26f3('0x7f')]({'view':_0x26f3('0x8e')});}[_0x26f3('0x90')](){this['repository']=this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0x68')),this[_0x26f3('0xc0')](),this[_0x26f3('0xe3')][_0x26f3('0xbf')]['on'](_0x26f3('0x10b'),()=>{const _0x45514d=this['repository'][_0x26f3('0x3e')](0x0),_0x2c2580=_0x45514d&&null===_0x45514d[_0x26f3('0xd8')]?_0x45514d:null;if(this[_0x26f3('0x33')]=!!_0x2c2580&&this[_0x26f3('0xe3')]['config']['get'](_0x26f3('0x6f')),this[_0x26f3('0xe3')][_0x26f3('0x9')]['has'](_0x26f3('0x35'))){const _0x542684=this[_0x26f3('0x86')]['getCurrentRevisionId'](),_0x32bfa2=this['repository'][_0x26f3('0x3e')](_0x542684);if(_0x32bfa2)this[_0x26f3('0xee')]=_0x32bfa2['fromVersion'],this[_0x26f3('0x33')]=!0x1;else{const _0x3773ca=this[_0x26f3('0x86')][_0x26f3('0x101')][_0x26f3('0xe6')][_0x26f3('0xcd')](_0x27f95e=>!_0x27f95e[_0x26f3('0x105')]),_0x1ce031=_0x3773ca?_0x3773ca['baseVersion']:this[_0x26f3('0x86')][_0x26f3('0x101')][_0x26f3('0x5e')];_0x45514d?(_0x45514d[_0x26f3('0x45')]<_0x1ce031&&_0x45514d[_0x26f3('0xa')]({'toVersion':_0x1ce031}),this[_0x26f3('0x33')]?(this['_source'][_0x26f3('0x14')]=()=>_0x2c2580['id'],this['_startingVersion']=_0x2c2580[_0x26f3('0x99')]):(this[_0x26f3('0xee')]=_0x45514d[_0x26f3('0x45')],this[_0x26f3('0x33')]=!0x1)):(this['_startingVersion']=_0x1ce031,this[_0x26f3('0x33')]=!0x1);}}else _0x2c2580&&(this['editor'][_0x26f3('0x111')]['document']['history'][_0x26f3('0x5e')]=Math[_0x26f3('0x37')](_0x2c2580[_0x26f3('0x45')],this[_0x26f3('0xe3')]['model'][_0x26f3('0x102')][_0x26f3('0x101')][_0x26f3('0x5e')]),_0x2c2580[_0x26f3('0x99')]===_0x2c2580[_0x26f3('0x45')]?(0x0!==_0x2c2580[_0x26f3('0x99')]&&(this[_0x26f3('0x86')][_0x26f3('0x14')]=()=>_0x2c2580['id']),this[_0x26f3('0x33')]=!0x1):this[_0x26f3('0x33')]&&(this[_0x26f3('0x86')]['getCurrentRevisionId']=()=>_0x2c2580['id'],this['_startingVersion']=_0x2c2580[_0x26f3('0x99')])),this['_continueCurrentRevision']||(this[_0x26f3('0xee')]=this[_0x26f3('0xe3')][_0x26f3('0x111')][_0x26f3('0x102')][_0x26f3('0x5e')]);this[_0x26f3('0x109')][_0x26f3('0x90')](this[_0x26f3('0x86')][_0x26f3('0x101')]),this[_0x26f3('0xa0')](this[_0x26f3('0xee')]),this['_createCurrentRevision'](this[_0x26f3('0xee')]),this['adapter']&&this[_0x26f3('0xc1')]();}),this['bind'](_0x26f3('0x32'))['to'](this,_0x26f3('0x3'),_0x15329d=>!_0x15329d);}async[_0x26f3('0xbc')](){if(this[_0x26f3('0xb6')][_0x26f3('0x70')]>0x0){const _0x115287=this['repository']['getRevision'](0x0),_0x281eb0=await this['getRevisionDocumentData'](_0x115287),_0x126d63=await this[_0x26f3('0xed')](_0x115287);this[_0x26f3('0x75')](_0x281eb0,_0x126d63);}}[_0x26f3('0x40')](_0x39d2fe){this['_source']=_0x39d2fe;}async[_0x26f3('0x91')](){const _0x6e8ab0=await this[_0x26f3('0x86')][_0x26f3('0xd0')]();if(_0x6e8ab0>this['currentRevision']['toVersion']){await this[_0x26f3('0x2c')]();const _0xe3bb01=this['buildRevisionData']({'revision':this[_0x26f3('0xa5')],'to':_0x6e8ab0});_0xe3bb01['authors']=_0xe3bb01[_0x26f3('0x1a')][_0x26f3('0x54')](_0xb25d00=>this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf'))[_0x26f3('0xae')](_0xb25d00)),this[_0x26f3('0xa5')][_0x26f3('0xa')](_0xe3bb01);}}async[_0x26f3('0x2c')](){this[_0x26f3('0x33')]&&!this[_0x26f3('0xc9')]&&(await this[_0x26f3('0x103')](this[_0x26f3('0xa5')]),this['_revisionDataBuilder'][_0x26f3('0x1b')](this['currentRevision']),this[_0x26f3('0xc9')]={'fromVersion':this[_0x26f3('0xa5')][_0x26f3('0x99')],'authors':this[_0x26f3('0xa5')][_0x26f3('0x60')][_0x26f3('0x7')]()});}async[_0x26f3('0xf8')](_0x506a5a={},_0x395f51=null){const _0x4b36f6=[];await this[_0x26f3('0x2c')](),this[_0x26f3('0x33')]=!0x1,_0x395f51>this['currentRevision'][_0x26f3('0x45')]&&(_0x395f51=null),null===_0x395f51&&(_0x395f51=await this['_source'][_0x26f3('0xd0')]());const _0x4e3819=this[_0x26f3('0x10f')](_0x395f51),_0x48f681=this[_0x26f3('0xff')]({'from':_0x4e3819,'to':_0x395f51});if(this[_0x26f3('0xa5')][_0x26f3('0x45')]<_0x395f51){const _0x137256=this[_0x26f3('0xff')]({'revision':this[_0x26f3('0xa5')],'from':_0x395f51,'to':_0x395f51});_0x137256[_0x26f3('0x60')]=[],_0x137256['authorsIds']=[],_0x137256['id']=this[_0x26f3('0xa5')]['id'],this[_0x26f3('0xa5')][_0x26f3('0xa')](_0x137256,!0x0),delete _0x137256[_0x26f3('0x60')],_0x4b36f6[_0x26f3('0x107')](_0x137256);}_0x506a5a[_0x26f3('0x2f')]=this['editor'][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf'))['me']['id'],_0x506a5a[_0x26f3('0xba')]=_0x506a5a[_0x26f3('0xba')]||null,_0x506a5a['id']=_0x506a5a['id']||_0x22f0b9(),_0x506a5a={..._0x506a5a,..._0x48f681};const _0x25987d=this[_0x26f3('0xb4')](_0x506a5a);_0x4b36f6[_0x26f3('0x107')](_0x506a5a);const _0x4ad0a2=this['repository'][_0x26f3('0xe7')](_0x25987d);if(0x0!==_0x4ad0a2){const _0x41df62=this['repository']['getRevision'](_0x4ad0a2-0x1);if(_0x41df62[_0x26f3('0x99')]!==_0x395f51){const _0x69d009=this[_0x26f3('0x109')][_0x26f3('0x1e')](_0x395f51,_0x41df62[_0x26f3('0x45')]),_0x6f8949={'id':_0x41df62['id'],'diffData':_0x69d009[_0x26f3('0x110')],'authorsIds':_0x69d009[_0x26f3('0x1a')],'authors':_0x69d009[_0x26f3('0x1a')][_0x26f3('0x54')](_0xf3e916=>this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf'))[_0x26f3('0xae')](_0xf3e916)),'fromVersion':_0x395f51};_0x41df62===this['currentRevision']&&(_0x6f8949[_0x26f3('0xb5')]=new Date(_0x506a5a[_0x26f3('0xb5')][_0x26f3('0xc')]()+0xa)),_0x41df62[_0x26f3('0xa')](_0x6f8949,!0x0),delete _0x6f8949[_0x26f3('0x60')],_0x4b36f6[_0x26f3('0x107')](_0x6f8949);}}if(this[_0x26f3('0xa6')]){for(const _0x43574c of _0x4b36f6)this[_0x26f3('0xb3')](_0x43574c['id'],_0x43574c,!0x0);this[_0x26f3('0xc1')]();}return _0x25987d;}[_0x26f3('0xb4')](_0x5e4aa7){const _0x388cb9=this[_0x26f3('0xb6')][_0x26f3('0x8a')](_0x5e4aa7);return this[_0x26f3('0xa6')]&&_0x388cb9['on'](_0x26f3('0xa'),(_0xa4d02,_0x55df14,_0x470e33)=>{_0x470e33||(this[_0x26f3('0xb3')](_0x55df14['id'],_0x55df14,!0x0),this['sendBufferedUpdates']());}),this[_0x26f3('0xb6')][_0x26f3('0x18')](_0x388cb9,this[_0x26f3('0x1f')](_0x388cb9)),_0x388cb9;}async[_0x26f3('0x24')](_0x5c9e79){await this[_0x26f3('0x103')](_0x5c9e79);const _0x2dcdff={};for(const _0x3afd77 in _0x5c9e79['diffData']){if(_0x5c9e79[_0x26f3('0x110')][_0x3afd77][_0x26f3('0x52')]&&!_0x5c9e79[_0x26f3('0x110')][_0x3afd77][_0x26f3('0x52')][_0x26f3('0x10')])continue;const _0x144591=this['_removeRevisionMarkers'](JSON[_0x26f3('0x8f')](_0x5c9e79[_0x26f3('0x110')][_0x3afd77][_0x26f3('0xeb')])),_0x3e12f3=this[_0x26f3('0xe3')][_0x26f3('0x41')][_0x26f3('0x49')]['document'],_0x129763=new _0x596646(_0x3e12f3,_0x144591['map'](_0x284018=>J(_0x284018,this[_0x26f3('0xe3')])));this[_0x26f3('0xe3')][_0x26f3('0xbf')][_0x26f3('0x6c')][_0x26f3('0x4c')](_0x26f3('0xa9')),_0x2dcdff[_0x3afd77]=this['editor'][_0x26f3('0xbf')]['processor'][_0x26f3('0xf1')](_0x129763),this['editor'][_0x26f3('0xbf')][_0x26f3('0x6c')][_0x26f3('0x4c')](_0x26f3('0x88'));}return _0x2dcdff;}async[_0x26f3('0xed')](_0x509dea){await this['_loadRevisionData'](_0x509dea);const _0xc79751={};for(const _0x485f60 in _0x509dea[_0x26f3('0x110')])_0x509dea[_0x26f3('0x110')][_0x485f60][_0x26f3('0x52')]&&!_0x509dea[_0x26f3('0x110')][_0x485f60][_0x26f3('0x52')]['isAttached']||(_0xc79751[_0x485f60]=_0x509dea[_0x26f3('0x110')][_0x485f60]['attributesAfter']||{});return _0xc79751;}[_0x26f3('0xc1')](){if(0x0===this[_0x26f3('0x46')]['size'])return;if(this[_0x26f3('0x3')])return;let _0x2c8b43=Array[_0x26f3('0x4e')](this[_0x26f3('0x46')][_0x26f3('0xc8')]());this[_0x26f3('0x46')][_0x26f3('0xaa')]();for(let _0x479a35=0x0;_0x479a35<_0x2c8b43['length'];_0x479a35++){const _0x36a597=_0x2c8b43[_0x479a35];let _0x192e4c=!0x1;for(const _0x429584 of Object[_0x26f3('0xc5')](_0x36a597))void 0x0===_0x36a597[_0x429584]?delete _0x36a597[_0x429584]:'id'!==_0x429584&&(_0x192e4c=!0x0);_0x192e4c||(_0x2c8b43[_0x479a35]=null);}if(_0x2c8b43=_0x2c8b43['filter'](_0x2fc902=>null!==_0x2fc902),!_0x2c8b43[_0x26f3('0x70')])return;for(let _0x4274e6=0x0;_0x4274e6<_0x2c8b43[_0x26f3('0x70')];_0x4274e6++){const _0xc20aef=_0x2c8b43[_0x4274e6];void 0x0!==_0xc20aef[_0x26f3('0x99')]&&void 0x0===_0xc20aef[_0x26f3('0x45')]&&(_0xc20aef[_0x26f3('0x45')]=this['repository'][_0x26f3('0x3e')](_0xc20aef['id'])[_0x26f3('0x45')]),void 0x0!==_0xc20aef[_0x26f3('0x45')]&&void 0x0===_0xc20aef[_0x26f3('0x99')]&&(_0xc20aef[_0x26f3('0x99')]=this[_0x26f3('0xb6')][_0x26f3('0x3e')](_0xc20aef['id'])[_0x26f3('0x99')]);}const _0x34d0e7=this['editor'][_0x26f3('0x67')][_0x26f3('0x5')](_0x26f3('0xa3'));this[_0x26f3('0x3')]=!0x0,this['_addPendingAction'](),this[_0x26f3('0xa6')][_0x26f3('0xef')](_0x2c8b43,_0x34d0e7)[_0x26f3('0xe5')](()=>{this[_0x26f3('0x3')]=!0x1;})[_0x26f3('0x78')](_0x33b1e7=>{if(_0x33b1e7)for(const _0x46124e of _0x33b1e7)this[_0x26f3('0x48')]({'id':_0x46124e['id'],'createdAt':_0x46124e[_0x26f3('0xb5')]});this[_0x26f3('0x2')](),this[_0x26f3('0xc1')]();});}[_0x26f3('0x75')](_0xfc9dab,_0x6d61d2){let _0x33e2e7=this[_0x26f3('0xe3')]['config'][_0x26f3('0x5')](_0x26f3('0x16')),_0x12313b=this[_0x26f3('0xe3')][_0x26f3('0x67')][_0x26f3('0x5')](_0x26f3('0x87'));if(void 0x0===_0x33e2e7){_0x33e2e7={};for(const _0x23985a of this[_0x26f3('0xe3')][_0x26f3('0x111')]['document'][_0x26f3('0x7c')]())_0x33e2e7[_0x23985a]='';}if('string'==typeof _0x33e2e7&&(_0x33e2e7={'main':_0x33e2e7}),void 0x0===_0x12313b){_0x12313b={};for(const _0x26f6df of this['editor'][_0x26f3('0x111')][_0x26f3('0x102')]['getRootNames']())_0x12313b[_0x26f6df]={};}let _0x366923=!0x1;const _0x2d3ebf=Object[_0x26f3('0xc5')](_0x33e2e7),_0x2dd3af=Object[_0x26f3('0xc5')](_0xfc9dab);for(const _0x5818d2 of _0x2d3ebf){if(_0x33e2e7[_0x5818d2]!==_0xfc9dab[_0x5818d2]&&''!==_0x33e2e7[_0x5818d2][_0x26f3('0x47')]()){_0x366923=!0x0;break;}if(!_0x29db60(_0x12313b[_0x5818d2],_0x6d61d2[_0x5818d2])&&Object[_0x26f3('0xc5')](_0x12313b[_0x5818d2])[_0x26f3('0x70')]>0x0){_0x366923=!0x0;break;}}_0x366923||(_0x366923=_0x2dd3af[_0x26f3('0xfd')](_0x215366=>!this[_0x26f3('0xe3')][_0x26f3('0x111')][_0x26f3('0x102')][_0x26f3('0xd4')](_0x215366))),_0x366923&&_0x26e46b(_0x26f3('0x62'),{'editorData':_0x33e2e7,'editorRootsAttributes':_0x12313b,'revisionData':_0xfc9dab,'revisionRootsAttributes':_0x6d61d2}),this['editor'][_0x26f3('0x67')][_0x26f3('0x3a')](_0x26f3('0x16'),_0xfc9dab),this[_0x26f3('0xe3')]['config']['set'](_0x26f3('0x87'),_0x6d61d2);}[_0x26f3('0x100')](){if(!this[_0x26f3('0x80')]){const _0x957633=this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf3'));this['_pendingAction']=_0x957633[_0x26f3('0x6e')](_0x13d8b1(this[_0x26f3('0xe3')][_0x26f3('0xb8')],_0x26f3('0x7a')));}}[_0x26f3('0x2')](){this[_0x26f3('0x80')]&&(this['editor']['plugins']['get'](_0x26f3('0xf3'))[_0x26f3('0x96')](this[_0x26f3('0x80')]),this[_0x26f3('0x80')]=null);}[_0x26f3('0x1f')](_0x3b79f5){const _0x258376=this[_0x26f3('0xb6')][_0x26f3('0xb7')]();_0x258376['reverse']();let _0x3dd4a1=0x0;for(;_0x3dd4a1<_0x258376[_0x26f3('0x70')];){const _0x12c421=_0x258376[_0x3dd4a1];if(_0x12c421===this[_0x26f3('0xa5')]){_0x3dd4a1++;continue;}if(_0x12c421['id']===this[_0x26f3('0xfb')])break;const _0xd1fe15=_0x3b79f5['toVersion']-_0x12c421[_0x26f3('0x45')]||_0x3b79f5['fromVersion']-_0x12c421[_0x26f3('0x99')];if(_0xd1fe15>0x0)break;if(_0xd1fe15<0x0)_0x3dd4a1++;else{if(!_0x3b79f5['creator']&&_0x12c421['creator'])break;if(_0x12c421[_0x26f3('0xd8')]||!_0x3b79f5[_0x26f3('0xd8')]){if(_0x3b79f5[_0x26f3('0xb5')]>_0x12c421[_0x26f3('0xb5')])break;_0x3dd4a1++;}else _0x3dd4a1++;}}return _0x3dd4a1;}[_0x26f3('0x48')](_0xcee8bc){const _0xfef864=this[_0x26f3('0xb6')][_0x26f3('0x3e')](_0xcee8bc['id']);if(_0xcee8bc[_0x26f3('0xb5')]&&(_0xcee8bc[_0x26f3('0xb5')]=new Date(_0xcee8bc['createdAt'])),_0xcee8bc[_0x26f3('0x1a')]){const _0x5d7b49=this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')]('Users');_0xcee8bc[_0x26f3('0x60')]=_0xcee8bc['authorsIds'][_0x26f3('0x54')](_0x4706a2=>_0x5d7b49[_0x26f3('0xae')](_0x4706a2));}_0xfef864['_update'](_0xcee8bc,!0x0);}['buildRevisionData']({revision:_0x27746f=null,from:_0x1b0282=null,to:_0x37f8bc=null}){_0x1b0282=null!==_0x1b0282?_0x1b0282:_0x27746f[_0x26f3('0x99')],_0x37f8bc=null!==_0x37f8bc?_0x37f8bc:_0x27746f[_0x26f3('0x45')];const _0x4cf319=this[_0x26f3('0x109')]['getData'](_0x1b0282,_0x37f8bc),_0x2858ec={'diffData':_0x4cf319[_0x26f3('0x110')],'authorsIds':_0x4cf319[_0x26f3('0x1a')],'fromVersion':_0x1b0282,'toVersion':_0x37f8bc};if(!_0x27746f||_0x37f8bc!==_0x27746f[_0x26f3('0x45')]){const _0x324fea=_0x37f8bc-0x1,_0xbbc4fc=this[_0x26f3('0x86')][_0x26f3('0x101')][_0x26f3('0x13')](_0x324fea);_0x2858ec['createdAt']=_0xbbc4fc&&_0xbbc4fc[_0x26f3('0xb5')]||new Date();}if(this[_0x26f3('0xc9')]&&_0x1b0282===this['_loadedStateData'][_0x26f3('0x99')])for(const _0x51080b of this['_loadedStateData'][_0x26f3('0x60')])_0x2858ec[_0x26f3('0x1a')][_0x26f3('0xce')](_0x51080b['id'])||_0x2858ec[_0x26f3('0x1a')][_0x26f3('0x107')](_0x51080b['id']);return _0x2858ec;}['_loadRevisionData'](_0x223df3){if(!_0x223df3||_0x223df3['diffData'])return Promise[_0x26f3('0xbd')]();{const _0x558030=this[_0x26f3('0xe3')][_0x26f3('0x67')][_0x26f3('0x5')](_0x26f3('0xa3'));return this[_0x26f3('0xa6')]['getRevision']({'channelId':_0x558030,'revisionId':_0x223df3['id']})[_0x26f3('0x78')](_0x585905=>{_0x223df3[_0x26f3('0x110')]=_0x585905[_0x26f3('0x110')];});}}['_bufferUpdate'](_0x2b9a41,_0x168a46,_0x10d960){if(this[_0x26f3('0x46')][_0x26f3('0xcf')](_0x2b9a41)){const _0x563b0d=this['_bufferedUpdates'][_0x26f3('0x5')](_0x2b9a41);_0x168a46=_0x10d960?{..._0x563b0d,..._0x168a46}:{..._0x168a46,..._0x563b0d};}this['_bufferedUpdates'][_0x26f3('0x3a')](_0x2b9a41,_0x168a46);}['_getFromVersion'](_0x5806da){const _0x19304d=this[_0x26f3('0xb6')]['getRevisions']();_0x19304d[_0x26f3('0x3b')](),_0x19304d[_0x26f3('0x8c')]();const _0x5a9f1d=_0x19304d[_0x26f3('0xcd')](_0x2a79d9=>_0x2a79d9[_0x26f3('0x45')]<=_0x5806da)['toVersion'];return _0x5a9f1d<this[_0x26f3('0xee')]?this['_startingVersion']:_0x5a9f1d;}[_0x26f3('0xa0')](_0x40f452){const _0x2abe13=this[_0x26f3('0xb6')][_0x26f3('0x3e')](this[_0x26f3('0xb6')][_0x26f3('0x70')]-0x1);if(_0x2abe13)this[_0x26f3('0xfb')]=_0x2abe13['id'];else{const _0x178dcc=!this[_0x26f3('0xe3')][_0x26f3('0x111')]['document'][_0x26f3('0xda')][_0x26f3('0xcd')](_0x3d0d12=>this[_0x26f3('0xe3')]['model']['hasContent'](_0x3d0d12)),_0x583e5c=this[_0x26f3('0xe3')]['plugins'][_0x26f3('0x5')](_0x26f3('0xf'))['me']['id'],_0x479278=_0x13d8b1(this[_0x26f3('0xe3')]['locale'],_0x178dcc?_0x26f3('0x17'):_0x26f3('0x6b'));this[_0x26f3('0x89')]({'from':_0x40f452,'to':_0x40f452,'id':this[_0x26f3('0xfb')],'name':_0x479278,'creatorId':_0x583e5c});}}[_0x26f3('0x4')](_0x20fec8){const _0x3368c0=this[_0x26f3('0x86')]['getCurrentRevisionId']();this['currentRevision']=this[_0x26f3('0xb6')][_0x26f3('0x3e')](_0x3368c0),this[_0x26f3('0xa5')]||(this[_0x26f3('0xa5')]=this['_makeRevision']({'from':_0x20fec8,'to':_0x20fec8,'id':_0x3368c0,'name':'','creatorId':null}));}[_0x26f3('0x89')]({name:_0x4b0554,from:_0x52c335,to:_0x80924c,creatorId:_0x2bd5c9,id:_0xd04957}){const _0x5771a4=this['buildRevisionData']({'from':_0x52c335,'to':_0x80924c});_0x5771a4[_0x26f3('0xba')]=_0x4b0554,_0x5771a4['creatorId']=_0x2bd5c9,_0x5771a4['id']=_0xd04957;const _0x4aa161=this[_0x26f3('0xb4')](_0x5771a4);return this[_0x26f3('0xa6')]&&this[_0x26f3('0xb3')](_0x5771a4['id'],_0x5771a4,!0x0),_0x4aa161;}['_setConversion'](){this[_0x26f3('0xe3')][_0x26f3('0xc6')][_0x26f3('0x20')](_0x26f3('0x5c'))[_0x26f3('0xb1')]({'model':_0x26f3('0x8e')});}[_0x26f3('0x6d')](_0x33d53f){return(_0x33d53f=_0x33d53f['filter'](_0x45e82c=>!_0x45e82c[_0x26f3('0xba')]||_0x26f3('0x69')!==_0x45e82c[_0x26f3('0xba')]&&_0x26f3('0xbb')!==_0x45e82c['name']))[_0x26f3('0x9c')](_0x5986da=>{'string'!=typeof _0x5986da&&(_0x5986da[_0x26f3('0x5a')]=this[_0x26f3('0x6d')](_0x5986da[_0x26f3('0x5a')]),_0x5986da[_0x26f3('0x57')]=_0x5986da[_0x26f3('0x57')]['filter'](_0x10c8eb=>!_0x10c8eb[0x0][_0x26f3('0xd6')](_0x26f3('0x82'))));}),_0x33d53f;}}function J(_0x3f8714,_0x8e7fe8){const _0x33bd65=_0x8e7fe8['editing'][_0x26f3('0x49')][_0x26f3('0x102')];if(_0x26f3('0x4d')==typeof _0x3f8714)return new _0x38bd7b(_0x33bd65,_0x3f8714);{const _0x32cfdc=_0x3f8714[_0x26f3('0x5a')]['map'](_0x225d36=>J(_0x225d36,_0x8e7fe8));return new(B[_0x3f8714[(_0x26f3('0xd5'))]]||_0x587620)(_0x33bd65,_0x3f8714[_0x26f3('0xba')],_0x3f8714[_0x26f3('0x57')],_0x32cfdc);}}class H{constructor(_0x560da8){this[_0x26f3('0xe3')]=_0x560da8,this[_0x26f3('0xd7')]=new Map(),this[_0x26f3('0x25')]=-0x1,this[_0x26f3('0xe0')]=-0x1,this[_0x26f3('0x9e')]=new Map(),this['_diffRoots']=new Map(),this[_0x26f3('0x2a')]=new Map(),this[_0x26f3('0xe2')]=new Map(),this[_0x26f3('0x108')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this[_0x26f3('0xb0')]=0x1;}[_0x26f3('0x90')](_0xac1b4){this[_0x26f3('0x26')]=_0xac1b4;const _0x52d964=new Map(),_0x360e8c=new Map(),_0x1198e1=this[_0x26f3('0xe3')][_0x26f3('0x111')][_0x26f3('0x102')][_0x26f3('0xda')][_0x26f3('0x54')](_0x215956=>_0x215956[_0x26f3('0xe8')]);for(const _0x3dacf1 of _0x1198e1){const _0x18a809=this[_0x26f3('0xe3')]['model'][_0x26f3('0x102')][_0x26f3('0xd4')](_0x3dacf1),_0x81cc2e=q(_0x18a809);_0x52d964['set'](_0x3dacf1,_0x81cc2e),_0x360e8c[_0x26f3('0x3a')](_0x3dacf1,Object[_0x26f3('0x74')](_0x18a809[_0x26f3('0xec')]()));}const _0x726ffd=Array[_0x26f3('0x4e')](this[_0x26f3('0xe3')]['model']['markers'])[_0x26f3('0x54')](_0x26e65c=>[_0x26e65c['name'],_0x26e65c['getRange']()]),_0x53ebe1=this['source'][_0x26f3('0x5e')];this['_saveMetaData'](_0x53ebe1,_0x52d964,_0x726ffd,_0x360e8c),this['_startingRevisionId']=this['_revisionId'];const _0x2d0cf9=new Map(),_0x83a1a5=new Map();for(const _0x470ad1 of _0x1198e1){const _0x16ffa2=G(_0x470ad1);_0x2d0cf9['set'](_0x470ad1,_0x16ffa2),_0x83a1a5[_0x26f3('0x3a')](_0x470ad1,{});}this['_saveMetaData'](Number[_0x26f3('0x7b')],_0x2d0cf9,[],_0x83a1a5);}[_0x26f3('0x1e')](_0x2e84bb,_0x430a09){if(this['_lastFrom']===_0x2e84bb&&this[_0x26f3('0xe0')]<=_0x430a09)this['_savedMetaData'][_0x26f3('0x3d')]>0x1&&this[_0x26f3('0x10d')](this[_0x26f3('0xe0')]),this[_0x26f3('0x10e')](this[_0x26f3('0xe0')],_0x430a09,!0x0);else{if(!this['_savedMetaData'][_0x26f3('0xcf')](_0x2e84bb)){const _0x3eaba5=this[_0x26f3('0x104')](_0x2e84bb);this[_0x26f3('0x36')](_0x3eaba5,_0x2e84bb,!0x1);}this[_0x26f3('0x36')](_0x2e84bb,_0x430a09,!0x0);}return this[_0x26f3('0x25')]=_0x2e84bb,this[_0x26f3('0xe0')]=_0x430a09,this[_0x26f3('0x98')]();}[_0x26f3('0x1b')](_0x4070ac){this[_0x26f3('0x97')](),this[_0x26f3('0x25')]=_0x4070ac[_0x26f3('0x99')],this[_0x26f3('0xe0')]=_0x4070ac[_0x26f3('0x45')];for(const _0x1b755a in _0x4070ac[_0x26f3('0x110')]){const _0x232393=_0x4070ac[_0x26f3('0x110')][_0x1b755a][_0x26f3('0x52')],_0xcd6303=_0x395b4b(_0x4070ac['diffData'][_0x1b755a][_0x26f3('0x21')])||{},_0x3e1578=this['_makeModelFromViewString'](_0x4070ac[_0x26f3('0x110')][_0x1b755a][_0x26f3('0x56')]);_0x3e1578['rootName']=_0x1b755a,_0x3e1578[_0x26f3('0x4b')]=!_0x232393||!_0x232393[_0x26f3('0x10')],_0x3e1578['isAttached']=()=>_0x3e1578[_0x26f3('0x4b')],this['_baseRoots'][_0x26f3('0x3a')](_0x1b755a,_0x3e1578),this[_0x26f3('0x108')]['set'](_0x1b755a,_0xcd6303),_0x232393&&this[_0x26f3('0x64')][_0x26f3('0x3a')](_0x1b755a,_0x232393);const _0x5e29e4=this[_0x26f3('0xfa')](_0x3e1578);this[_0x26f3('0xc3')][_0x26f3('0x3a')](_0x1b755a,_0x5e29e4);for(const [_0x1f0e92,_0x1b668d]of _0x3e1578[_0x26f3('0xdf')]){if(!_0x1f0e92[_0x26f3('0xd6')](_0x26f3('0xc7')))continue;const _0x4dd7ec=_0x1f0e92[_0x26f3('0x3f')](':')[0x2];for(const _0x1638d1 of _0x1b668d[_0x26f3('0x71')]({'singleCharacters':!0x0})){const _0x23a69d=this[_0x26f3('0x2e')](_0x1638d1),_0x1de913=_0x26f3('0xdc')==_0x1638d1['type']?_0x1638d1[_0x26f3('0x38')][_0x26f3('0xf0')][_0x26f3('0x7')](0x0,-0x1):_0x1638d1[_0x26f3('0x38')][_0x26f3('0xf0')],_0x504805=_0x5e29e4[_0x26f3('0x76')](_0x1de913)['getAttribute'](_0x23a69d);this['_touched'][_0x26f3('0x3a')](_0x504805,{'userId':_0x4dd7ec});}}}this['_startingRevisionId']=this[_0x26f3('0xb0')];const _0x1e6849=[...Array(this['_revisionId'])[_0x26f3('0xc5')]()][_0x26f3('0x7')](0x1)['filter'](_0x2ef089=>!this['_touched'][_0x26f3('0xcf')](_0x2ef089));let _0x3eaf3e=0x0;const _0x5d11bb=new Map();for(const _0xf65b88 in _0x4070ac['diffData']){const _0x42f4c3=_0x4070ac[_0x26f3('0x110')][_0xf65b88][_0x26f3('0x52')],_0x48cdd9=_0x395b4b(_0x4070ac[_0x26f3('0x110')][_0xf65b88][_0x26f3('0x34')])||{},_0x23fd96=this[_0x26f3('0xac')](_0x4070ac[_0x26f3('0x110')][_0xf65b88][_0x26f3('0xeb')]);_0x23fd96[_0x26f3('0xe8')]=_0xf65b88,_0x23fd96[_0x26f3('0x4b')]=!_0x42f4c3||_0x42f4c3[_0x26f3('0x10')],_0x23fd96[_0x26f3('0x10')]=()=>_0x23fd96[_0x26f3('0x4b')],this[_0x26f3('0xb2')][_0x26f3('0x3a')](_0xf65b88,_0x23fd96),this[_0x26f3('0x2a')]['set'](_0xf65b88,_0x48cdd9);const _0x19c5df=this[_0x26f3('0xfa')](_0x23fd96,Number[_0x26f3('0x7b')]);this['_idsRoots'][_0x26f3('0x3a')](_0xf65b88,_0x19c5df),_0x5d11bb[_0x26f3('0x3a')](_0xf65b88,_0x23fd96['isAttached']()?_0x48cdd9:{});for(const [_0x5dbc42,_0x5d1096]of _0x23fd96[_0x26f3('0xdf')]){if(!_0x5dbc42[_0x26f3('0xd6')](_0x26f3('0xc7')))continue;const _0x337e3d=_0x5dbc42[_0x26f3('0x3f')](':')[0x2];for(const _0x4484f3 of _0x5d1096['getWalker']({'singleCharacters':!0x0})){const _0x50fee3=this[_0x26f3('0x2e')](_0x4484f3),_0x45b590=this[_0x26f3('0xb0')]++,_0x5e2e8f=_0x26f3('0xdc')==_0x4484f3[_0x26f3('0xd5')]?_0x4484f3['previousPosition'][_0x26f3('0xf0')][_0x26f3('0x7')](0x0,-0x1):_0x4484f3['previousPosition'][_0x26f3('0xf0')];_0x19c5df[_0x26f3('0x76')](_0x5e2e8f)[_0x26f3('0xea')](_0x50fee3,_0x45b590),this[_0x26f3('0x95')][_0x26f3('0x3a')](_0x45b590,{'userId':_0x337e3d});}}for(const _0x2ba0b4 of this[_0x26f3('0xe3')][_0x26f3('0x111')][_0x26f3('0x83')](_0x23fd96)[_0x26f3('0x71')]({'singleCharacters':!0x0})){const _0x4ef510=this['_getVidAttributeName'](_0x2ba0b4),_0x3f6437=_0x26f3('0xdc')==_0x2ba0b4['type']?_0x2ba0b4[_0x26f3('0x38')][_0x26f3('0xf0')][_0x26f3('0x7')](0x0,-0x1):_0x2ba0b4[_0x26f3('0x38')]['path'],_0x320184=_0x19c5df[_0x26f3('0x76')](_0x3f6437);_0x320184[_0x26f3('0xfe')](_0x4ef510)>0x0||_0x320184[_0x26f3('0xea')](_0x4ef510,_0x1e6849[_0x3eaf3e++]);}for(const [_0x58d8ee,_0x34c036]of _0x23fd96['markers'])_0x58d8ee[_0x26f3('0xd6')](_0x26f3('0xc7'))||this[_0x26f3('0x9e')][_0x26f3('0x3a')](_0x58d8ee,_0x34c036);}const _0x2bcfe3=G(_0x26f3('0x43'));this['_baseRoots'][_0x26f3('0x3a')](_0x26f3('0x43'),_0x2bcfe3),this[_0x26f3('0xc3')]['set'](_0x26f3('0x43'),this[_0x26f3('0xfa')](_0x2bcfe3,0x1));const _0x1efe3f=G(_0x26f3('0x43'));this[_0x26f3('0xb2')][_0x26f3('0x3a')](_0x26f3('0x43'),_0x1efe3f),this['_idsRoots']['set'](_0x26f3('0x43'),this[_0x26f3('0xfa')](_0x1efe3f,0x1));const _0x2700ad=Array['from'](this['_diffRoots'])[_0x26f3('0x54')](([_0x1d8fb5,_0x434690])=>[_0x1d8fb5,q(_0x434690)]);this[_0x26f3('0x61')](this[_0x26f3('0xe0')],_0x2700ad,this['_markers'],_0x5d11bb);}[_0x26f3('0xac')](_0x5b47e4){const _0x2798a9=JSON[_0x26f3('0x8f')](_0x5b47e4),_0x47653c=this[_0x26f3('0xe3')][_0x26f3('0x41')][_0x26f3('0x49')]['document'],_0x5a9aa3=new _0x596646(_0x47653c,_0x2798a9[_0x26f3('0x54')](_0x33ea5b=>J(_0x33ea5b,this[_0x26f3('0xe3')])));return this[_0x26f3('0xe3')][_0x26f3('0xbf')][_0x26f3('0xf6')](_0x5a9aa3);}[_0x26f3('0x61')](_0x4d0e68,_0x59e1d2,_0x5172da,_0x94f304){const _0x17b74e=new Map(_0x59e1d2),_0x3287db=new Map(_0x395b4b(_0x94f304)),_0x19e90c=new Map();for(const [_0x307645,_0x345cec]of _0x5172da)_0x19e90c['set'](_0x307645,{'start':_0x345cec[_0x26f3('0xa8')]['clone'](),'end':_0x345cec['end']['clone'](),'rootName':_0x345cec['root'][_0x26f3('0xe8')]});this[_0x26f3('0xd7')][_0x26f3('0x3a')](_0x4d0e68,{'roots':_0x17b74e,'markers':_0x19e90c,'rootsAttributes':_0x3287db});}[_0x26f3('0x10d')](_0x3df306){this[_0x26f3('0xd7')][_0x26f3('0x30')](_0x3df306);}[_0x26f3('0x10a')](){this[_0x26f3('0x97')](),this[_0x26f3('0x25')]=-0x1,this[_0x26f3('0xe0')]=-0x1,this['_savedMetaData'][_0x26f3('0xaa')](),this[_0x26f3('0x90')](this[_0x26f3('0x26')]);}['_reset'](){this[_0x26f3('0x95')]['clear'](),this[_0x26f3('0x66')][_0x26f3('0xaa')](),this['_touchedRoots'][_0x26f3('0xaa')](),this['_diffRoots'][_0x26f3('0xaa')](),this[_0x26f3('0x2a')][_0x26f3('0xaa')](),this[_0x26f3('0xe2')]['clear'](),this[_0x26f3('0x108')]['clear'](),this[_0x26f3('0x73')][_0x26f3('0xaa')](),this[_0x26f3('0xc3')][_0x26f3('0xaa')](),this['_markers'][_0x26f3('0xaa')](),this[_0x26f3('0xb0')]=0x1,this[_0x26f3('0x65')]=this[_0x26f3('0xb0')];}[_0x26f3('0xfa')](_0x441a88,_0x30b400=null){let _0x38c10c=null;_0x441a88['is'](_0x26f3('0x85'))||(_0x38c10c=new _0x45c2f4(_0x441a88[_0x26f3('0xba')],{'vid_start':null===_0x30b400?this[_0x26f3('0xb0')]++:_0x30b400++}));const _0x4ee67c=[];for(const _0x493087 of _0x441a88[_0x26f3('0x6a')]())if(_0x493087['is'](_0x26f3('0x50'))){_0x4ee67c['push'](this['_makeIdsRoot'](_0x493087,_0x30b400));const _0x1dbed8=_0x4ee67c[_0x4ee67c['length']-0x1];null!==_0x30b400&&(_0x30b400=_0x1dbed8['is'](_0x26f3('0x50'),_0x26f3('0x39'))?_0x1dbed8[_0x26f3('0xfe')]('vid')+0x1:_0x1dbed8[_0x26f3('0xfe')](_0x26f3('0xf5'))+0x1);}else for(let _0x105265=0x0;_0x105265<_0x493087[_0x26f3('0xf9')];_0x105265++)_0x4ee67c[_0x26f3('0x107')](new _0x45c2f4('$text',{'vid':null===_0x30b400?this[_0x26f3('0xb0')]++:_0x30b400++}));if(_0x441a88['is']('documentFragment')){const _0x77d8ad=G(_0x441a88[_0x26f3('0xe8')]);return _0x77d8ad['_insertChild'](0x0,_0x4ee67c),_0x77d8ad;}return _0x38c10c['_setAttribute'](_0x26f3('0xf5'),null===_0x30b400?this[_0x26f3('0xb0')]++:_0x30b400++),_0x38c10c[_0x26f3('0xd3')](0x0,_0x4ee67c),_0x38c10c;}[_0x26f3('0x36')](_0x555561,_0x28af68,_0x2db795){this[_0x26f3('0x97')]();const {roots:_0x4ffee6,markers:_0x49024d,rootsAttributes:_0x39afda}=this[_0x26f3('0xd7')]['get'](_0x555561);this[_0x26f3('0xe2')]=new Map(_0x4ffee6),this[_0x26f3('0x108')]=new Map(_0x395b4b(_0x39afda));for(const [_0x23b964,_0x4ef3a2]of this[_0x26f3('0xe2')])if(_0x26f3('0x43')!==_0x23b964&&(this[_0x26f3('0xb2')]['set'](_0x23b964,q(_0x4ef3a2)),this[_0x26f3('0x2a')]=new Map(_0x395b4b(_0x39afda)),_0x2db795)){const _0x2502c5=this['_revisionId'];this['_idsRoots'][_0x26f3('0x3a')](_0x23b964,this['_makeIdsRoot'](_0x4ef3a2)),this[_0x26f3('0xc3')][_0x26f3('0x3a')](_0x23b964,this['_makeIdsRoot'](_0x4ef3a2,_0x2502c5));}this[_0x26f3('0x65')]=this[_0x26f3('0xb0')],this[_0x26f3('0xb2')]['set']('$graveyard',q(this[_0x26f3('0xe2')][_0x26f3('0x5')]('$graveyard'))),_0x2db795&&this[_0x26f3('0x73')][_0x26f3('0x3a')](_0x26f3('0x43'),this[_0x26f3('0xfa')](this[_0x26f3('0xe2')]['get'](_0x26f3('0x43'))));for(const [_0xdfe0e6,_0x4edfb6]of _0x49024d){const _0x351d9c=this['_baseRoots']['get'](_0x4edfb6[_0x26f3('0xe8')]),_0x5d3233=this[_0x26f3('0xb2')]['get'](_0x4edfb6['rootName']),_0x54e69b=new _0x2e3d02(this['_fixPosition'](_0x4edfb6[_0x26f3('0xa8')],_0x351d9c),this[_0x26f3('0x81')](_0x4edfb6['end'],_0x351d9c)),_0x3a3c5d=this[_0x26f3('0xa2')](_0x54e69b,_0x5d3233);_0x351d9c[_0x26f3('0xdf')][_0x26f3('0x3a')](_0xdfe0e6,_0x54e69b),this[_0x26f3('0x9e')]['set'](_0xdfe0e6,_0x3a3c5d);}this['_applyOperations'](_0x555561,_0x28af68,_0x2db795);}[_0x26f3('0x10e')](_0x2bd5f1,_0x2cd679,_0x22210e){for(const _0x534231 of this['source'][_0x26f3('0xc2')](_0x2bd5f1,_0x2cd679))this[_0x26f3('0x2b')](_0x534231,_0x22210e);for(const _0x582ddf of this['_diffRoots']['values']())_0x582ddf[_0x26f3('0xdf')][_0x26f3('0xaa')]();for(const [_0x266db3,_0x3bc206]of this['_markers']){this[_0x26f3('0xb2')][_0x26f3('0x5')](_0x3bc206[_0x26f3('0x1d')][_0x26f3('0xe8')])[_0x26f3('0xdf')][_0x26f3('0x3a')](_0x266db3,_0x3bc206[_0x26f3('0xd2')]());}const _0x29722b=new Map(),_0x17d93c=new Map();for(const [_0xa9834b,_0x30504b]of this['_diffRoots'])_0x29722b['set'](_0xa9834b,q(_0x30504b)),_0x17d93c[_0x26f3('0x3a')](_0xa9834b,this['_diffRootsAttributes']['get'](_0xa9834b));this[_0x26f3('0x61')](_0x2cd679,_0x29722b,this[_0x26f3('0x9e')],_0x17d93c);}[_0x26f3('0x104')](_0xb2c2e){const _0x15e126=Array[_0x26f3('0x4e')](this[_0x26f3('0xd7')][_0x26f3('0xc5')]());_0x15e126['sort']((_0x1ef987,_0x15d484)=>_0x1ef987-_0x15d484),_0x15e126[_0x26f3('0x3b')]();for(const _0x1bcc30 of _0x15e126)if(_0x1bcc30<_0xb2c2e)return _0x1bcc30;return Number[_0x26f3('0x7b')];}[_0x26f3('0x2d')](_0xb34c56,_0x298fb9){const _0x90c2=Array[_0x26f3('0x4e')](_0x298fb9[_0x26f3('0xdf')])[_0x26f3('0x54')](([_0x1ed051,_0x2cf1cd])=>[_0x1ed051,this[_0x26f3('0xa2')](_0x2cf1cd,_0xb34c56)]);_0xb34c56['markers']=new Map(_0x90c2);}[_0x26f3('0xd')](_0x4fe5d8){for(const _0x2d4e22 of this[_0x26f3('0x9e')]['values']()){const _0x2a1d49=_0x2d4e22['getTransformedByOperation'](_0x4fe5d8),_0x49271d=_0x2e3d02[_0x26f3('0x3c')](_0x2a1d49);_0x2d4e22[_0x26f3('0xa8')]=_0x49271d[_0x26f3('0xa8')],_0x2d4e22[_0x26f3('0x23')]=_0x49271d['end'];}}['_handleOperation'](_0x4a99ee,_0x453a72){if(_0x26f3('0x8b')==_0x4a99ee[_0x26f3('0xd5')]||_0x26f3('0x9f')==_0x4a99ee[_0x26f3('0xd5')])return void this[_0x26f3('0xe')](_0x4a99ee,_0x453a72);if(_0x26f3('0xfc')==_0x4a99ee[_0x26f3('0xd5')]){const _0xf7bf34=_0x4a99ee[_0x26f3('0xbe')][_0x26f3('0x1d')][_0x26f3('0xe8')];this[_0x26f3('0xb2')][_0x26f3('0xcf')](_0xf7bf34)||(this[_0x26f3('0xb2')][_0x26f3('0x3a')](_0xf7bf34,G(_0xf7bf34,!0x0)),this[_0x26f3('0x2a')][_0x26f3('0x3a')](_0xf7bf34,{}),_0x453a72&&this['_idsRoots']['set'](_0xf7bf34,G(_0xf7bf34,!0x0)));}else{if(_0x26f3('0x11')==_0x4a99ee[_0x26f3('0xd5')]||_0x26f3('0x0')==_0x4a99ee[_0x26f3('0xd5')]||'changeRootAttribute'==_0x4a99ee[_0x26f3('0xd5')])return void this[_0x26f3('0x5f')](_0x4a99ee);}const _0x17c67a=this[_0x26f3('0x7d')](_0x4a99ee,this[_0x26f3('0xb2')]);if(_0x26f3('0x9a')!==_0x4a99ee[_0x26f3('0xd5')]&&(_0x17c67a[_0x26f3('0x94')](),this['_transformMarkers'](_0x17c67a)),_0x453a72)switch(_0x17c67a['type']){case _0x26f3('0xfc'):this[_0x26f3('0x93')](_0x4a99ee);break;case _0x26f3('0x8d'):case _0x26f3('0x96'):case _0x26f3('0x9d'):this['_handleMoveOperation'](_0x4a99ee);break;case _0x26f3('0xca'):this[_0x26f3('0xb9')](_0x4a99ee);break;case'split':this['_handleSplitOperation'](_0x4a99ee);break;case _0x26f3('0x9a'):this[_0x26f3('0xcc')](_0x4a99ee);}}['_cloneOperation'](_0x5595a5,_0x3ae35c){const _0x1e52b8=_0x5595a5[_0x26f3('0xd2')]();return _0x1e52b8[_0x26f3('0xdd')]=_0x5595a5[_0x26f3('0xdd')],this[_0x26f3('0xcb')](_0x1e52b8,_0x3ae35c),_0x1e52b8;}[_0x26f3('0xad')](_0x4b107b){return _0x4b107b[_0x26f3('0x54')](_0x56768e=>{const _0x4fbb86=this[_0x26f3('0x2e')](_0x56768e);return Number(_0x56768e[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x4fbb86));});}[_0x26f3('0xe4')](_0x5a5348,_0x2dcee2){if(_0x5a5348['is'](_0x26f3('0x50'),_0x26f3('0x39')))_0x2dcee2[_0x26f3('0x107')]({'item':_0x5a5348,'type':'text'});else{_0x5a5348['is'](_0x26f3('0x50'))&&_0x2dcee2[_0x26f3('0x107')]({'item':_0x5a5348,'type':_0x26f3('0x29')});for(const _0x695355 of _0x5a5348['getChildren']())this[_0x26f3('0xe4')](_0x695355,_0x2dcee2);_0x5a5348['is']('element')&&_0x2dcee2[_0x26f3('0x107')]({'item':_0x5a5348,'type':'elementEnd'});}return _0x2dcee2;}[_0x26f3('0x98')](){const _0xa573d3=new Map(this[_0x26f3('0x95')]),_0x437a17=new Map(_0xa573d3),_0xa889b3=new Map(),_0x129fe8={'insertions':{},'deletions':{}},_0x521566={'insertions':{},'deletions':{}},_0x3a8705=new Map(),_0x240dfe=new Set([...this[_0x26f3('0xe2')][_0x26f3('0xc5')](),...this[_0x26f3('0xb2')][_0x26f3('0xc5')]()]);_0x240dfe['delete'](_0x26f3('0x43'));for(const _0x3145f7 of _0x240dfe){const _0x5d9b47=this[_0x26f3('0xb2')][_0x26f3('0x5')](_0x3145f7)||G(_0x3145f7,!0x1),_0x19a138=this['_baseRoots'][_0x26f3('0x5')](_0x3145f7)||G(_0x3145f7,!0x1);_0x5d9b47[_0x26f3('0x10')]()||_0x19a138[_0x26f3('0x10')]()?(_0x129fe8[_0x26f3('0xeb')][_0x3145f7]=q(_0x5d9b47),_0x129fe8[_0x26f3('0x56')][_0x3145f7]=q(_0x19a138),this[_0x26f3('0x2d')](_0x129fe8['deletions'][_0x3145f7],_0x19a138),this[_0x26f3('0x2d')](_0x129fe8[_0x26f3('0xeb')][_0x3145f7],_0x5d9b47),_0x521566[_0x26f3('0xeb')][_0x3145f7]=this['_generateTape'](this[_0x26f3('0x73')][_0x26f3('0x5')](_0x3145f7),[]),_0x521566[_0x26f3('0x56')][_0x3145f7]=this[_0x26f3('0xe4')](this['_baseIdsRoots']['get'](_0x3145f7)||G(_0x3145f7,!0x1),[])):_0x240dfe[_0x26f3('0x30')](_0x3145f7);}for(const _0x116445 of _0x240dfe){const _0x548f83=_0x521566[_0x26f3('0xeb')][_0x116445];for(const _0x585a09 of _0x548f83){const _0x5dd02e=this[_0x26f3('0x2e')](_0x585a09),_0x3caf60=_0x585a09[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x5dd02e);_0x437a17['delete'](_0x3caf60),_0x3caf60>=this[_0x26f3('0x65')]&&_0xa889b3[_0x26f3('0x3a')](_0x3caf60,_0xa573d3['get'](_0x3caf60));}}for(const _0x39b270 of _0x240dfe){const _0x2b6021=_0x521566[_0x26f3('0xeb')][_0x39b270],_0x10c5db=this['_getBaseVids'](_0x521566[_0x26f3('0x56')][_0x39b270]);let _0x2c8899=0x0;for(const _0x851cad of _0x2b6021){const _0x2211c8=this[_0x26f3('0x2e')](_0x851cad),_0x1df4e9=_0x851cad['item'][_0x26f3('0xfe')](_0x2211c8);if(!_0xa889b3[_0x26f3('0xcf')](_0x1df4e9)&&!_0x3a8705[_0x26f3('0xcf')](_0x1df4e9)){if(_0x437a17['has'](_0x1df4e9))_0x2c8899++;else{if(_0x1df4e9!=_0x10c5db[_0x2c8899]){const _0x50cdff=_0xa573d3[_0x26f3('0x5')](_0x1df4e9)||_0xa573d3[_0x26f3('0x5')](_0x10c5db[_0x2c8899]);for(;_0x1df4e9!=_0x10c5db[_0x2c8899];)_0x437a17['has'](_0x10c5db[_0x2c8899])||(_0x3a8705[_0x26f3('0x3a')](_0x10c5db[_0x2c8899],_0x50cdff),_0xa573d3['set'](_0x10c5db[_0x2c8899],_0x50cdff)),_0x2c8899++;}_0x2c8899++;}}}}for(const _0x57153b of _0x240dfe){const _0x1f2f26=_0x521566['insertions'][_0x57153b];for(const _0x5c340b of _0x1f2f26){const _0x77f8b6=this[_0x26f3('0x2e')](_0x5c340b),_0x4f4188=_0x5c340b[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x77f8b6);if(_0x3a8705[_0x26f3('0xcf')](_0x4f4188)){const _0x9d4c45=_0x3a8705[_0x26f3('0x5')](_0x4f4188);_0x437a17['has'](_0x4f4188)||_0x437a17[_0x26f3('0x3a')](_0x4f4188,{..._0x9d4c45}),_0xa889b3[_0x26f3('0x3a')](_0x4f4188,{..._0x9d4c45});}}}for(const _0x1a917b of _0x437a17[_0x26f3('0xc5')]())_0x1a917b>=this[_0x26f3('0x65')]&&_0x437a17[_0x26f3('0x30')](_0x1a917b);const _0xc121c6=new Map();for(const _0x1905f7 of _0x240dfe){let _0x11d510=_0x521566[_0x26f3('0xeb')][_0x1905f7];for(const _0x32471b of _0x11d510)if(_0x32471b[_0x26f3('0xd9')]['is'](_0x26f3('0x50'),_0x26f3('0xab'))){const _0x27836d=this[_0x26f3('0x2e')](_0x32471b),_0x266e87=_0x32471b[_0x26f3('0xd9')]['getAttribute'](_0x27836d);if(_0xa889b3[_0x26f3('0xcf')](_0x266e87)){const _0x89c79=_0x32471b[_0x26f3('0xd9')][_0x26f3('0xdb')][_0x26f3('0xdb')][_0x26f3('0xfe')](_0x26f3('0xb')),_0x37e071=_0xc121c6[_0x26f3('0x5')](_0x89c79)||new Set();_0x37e071[_0x26f3('0x6e')](_0xa889b3['get'](_0x266e87)[_0x26f3('0x19')]),_0xc121c6[_0x26f3('0x3a')](_0x89c79,_0x37e071);}}_0x11d510=_0x521566['deletions'][_0x1905f7];for(const _0x4a34fe of _0x11d510)if(_0x4a34fe['item']['is']('element','tableCell')){const _0x556388=this['_getVidAttributeName'](_0x4a34fe),_0x409718=_0x4a34fe[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x556388);if(_0x437a17[_0x26f3('0xcf')](_0x409718)){const _0x4158a6=_0x4a34fe['item'][_0x26f3('0xdb')]['parent'][_0x26f3('0xfe')](_0x26f3('0xb')),_0xf13bed=_0xc121c6[_0x26f3('0x5')](_0x4158a6)||new Set();_0xf13bed[_0x26f3('0x6e')](_0x437a17[_0x26f3('0x5')](_0x409718)[_0x26f3('0x19')]),_0xc121c6[_0x26f3('0x3a')](_0x4158a6,_0xf13bed);}}for(const _0x3d3fc4 of _0xc121c6['keys']())(_0xa889b3[_0x26f3('0xcf')](_0x3d3fc4)||_0x437a17[_0x26f3('0xcf')](_0x3d3fc4))&&_0xc121c6[_0x26f3('0x30')](_0x3d3fc4);}for(const _0x304f6b of _0x240dfe){const _0x350624=_0x521566[_0x26f3('0xeb')][_0x304f6b];let _0x515ee3=null,_0x3b0379=null;for(const _0x130f44 of _0x350624){const _0x759bcc=this[_0x26f3('0x2e')](_0x130f44),_0x4554f2=_0x130f44[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x759bcc),_0x4e4d2=_0xc121c6[_0x26f3('0x5')](_0x4554f2);_0x4e4d2&&_0x26f3('0x29')==_0x130f44[_0x26f3('0xd5')]&&(_0x515ee3=Array[_0x26f3('0x4e')](_0x4e4d2)[0x0],_0x3b0379=_0x130f44[_0x26f3('0xd9')][_0x26f3('0xfe')](_0x26f3('0xf5'))),_0x515ee3&&(_0x437a17['set'](_0x4554f2,{'userId':_0x515ee3}),_0xa889b3[_0x26f3('0x3a')](_0x4554f2,{'userId':_0x515ee3})),_0x4554f2==_0x3b0379&&(_0x515ee3=null,_0x3b0379=null);}}const _0x4531fc={},_0x47a7ac=new Set();for(const _0xaefcea of _0x240dfe){const _0x49de1b=_0x129fe8[_0x26f3('0x56')][_0xaefcea],_0x30983e=_0x129fe8[_0x26f3('0xeb')][_0xaefcea];for(const {userId:_0x1a83ef}of this[_0x26f3('0x66')][_0x26f3('0xc8')]())null!==_0x1a83ef&&_0x47a7ac[_0x26f3('0x6e')](_0x1a83ef);for(const {userId:_0x49df03}of this[_0x26f3('0x64')][_0x26f3('0xc8')]())null!==_0x49df03&&_0x47a7ac['add'](_0x49df03);this[_0x26f3('0x106')](_0x30983e,_0x521566[_0x26f3('0xeb')][_0xaefcea],_0xa889b3,_0x26f3('0x77'),_0x47a7ac),this[_0x26f3('0x106')](_0x49de1b,_0x521566[_0x26f3('0x56')][_0xaefcea],_0x437a17,'deletion',_0x47a7ac),_0x4531fc[_0xaefcea]={'insertions':this['_prepareViewToSave'](_0x30983e),'deletions':this[_0x26f3('0x27')](_0x49de1b),'attachChange':this[_0x26f3('0x64')][_0x26f3('0x5')](_0xaefcea)||null,'attributesBefore':_0x395b4b(this['_baseRootsAttributes'][_0x26f3('0x5')](_0xaefcea))||{},'attributesAfter':_0x395b4b(this[_0x26f3('0x2a')][_0x26f3('0x5')](_0xaefcea))};}return{'diffData':_0x4531fc,'authorsIds':Array[_0x26f3('0x4e')](_0x47a7ac)};}[_0x26f3('0x31')](_0xffa0a3){for(const [,_0xa462db]of _0xffa0a3[_0x26f3('0xdf')]){const _0x64981e=_0xa462db[_0x26f3('0xa8')][_0x26f3('0xe9')]()[_0x26f3('0xa4')](_0x572278=>_0x26f3('0xab')==_0x572278[_0x26f3('0xba')]);for(const _0x297dc3 of _0x64981e)0x1==_0x297dc3['childCount']&&_0x297dc3['getChild'](0x0)['is'](_0x26f3('0x50'),_0x26f3('0x53'))&&_0x297dc3[_0x26f3('0xf4')](0x0)[_0x26f3('0xea')](_0x26f3('0xe1'),!0x0);}}[_0x26f3('0x27')](_0xcf802f){this[_0x26f3('0x31')](_0xcf802f);const _0x583236=this['editor'][_0x26f3('0xbf')][_0x26f3('0x22')](_0xcf802f,{}),_0x13d596=Array[_0x26f3('0x4e')](_0x583236[_0x26f3('0x6a')]())[_0x26f3('0x54')](_0x4ffe7d=>this[_0x26f3('0x55')](_0x4ffe7d));return JSON['stringify'](_0x13d596);}[_0x26f3('0x55')](_0x45eee8){if(_0x45eee8['is'](_0x26f3('0x39')))return _0x45eee8[_0x26f3('0xbf')];{const _0x2c632e=_0x45eee8;return{'type':Object['keys'](B)[_0x26f3('0xcd')](_0x17f6e5=>_0x45eee8 instanceof B[_0x17f6e5]),'name':_0x2c632e[_0x26f3('0xba')],'attributes':Array[_0x26f3('0x4e')](_0x2c632e[_0x26f3('0xec')]()),'children':Array[_0x26f3('0x4e')](_0x2c632e[_0x26f3('0x6a')]())[_0x26f3('0x54')](_0x4ad45b=>this['_getViewJson'](_0x4ad45b))};}}[_0x26f3('0x106')](_0x335613,_0x158d12,_0x23e8e8,_0x3e55c8,_0x34754c){let _0x335fb9=null,_0x76b7c7=null,_0x439860=0x0;const _0x3a631c=this['editor']['model'];for(let _0x3507b8=0x0;_0x3507b8<_0x158d12[_0x26f3('0x70')];_0x3507b8++){const _0xf1d2f1=this[_0x26f3('0x2e')](_0x158d12[_0x3507b8]),_0x4271d4=_0x158d12[_0x3507b8][_0x26f3('0xd9')]['getAttribute'](_0xf1d2f1),_0x3cb42c=_0x23e8e8[_0x26f3('0x5')](_0x4271d4),_0x13f59a=_0x3507b8==_0x158d12[_0x26f3('0x70')]-0x1;(!_0x335fb9&&_0x3cb42c&&(_0x335fb9=_0x3cb42c,_0x76b7c7=_0x158d12[_0x3507b8]),_0x335fb9&&(!_0x3cb42c||_0x3cb42c['userId']!=_0x335fb9[_0x26f3('0x19')]))&&(_0x31c5e0(_0x3cb42c,L(_0x76b7c7,_0x335613,_0x3a631c),L(_0x158d12[_0x3507b8],_0x335613,_0x3a631c)),_0x335fb9=_0x3cb42c||null,_0x76b7c7=_0x3cb42c?_0x158d12[_0x3507b8]:null),_0x335fb9&&_0x13f59a&&_0x31c5e0(_0x3cb42c,L(_0x76b7c7,_0x335613,_0x3a631c),W(_0x158d12[_0x3507b8],_0x335613,_0x3a631c));}function _0x31c5e0(_0x191114,_0x198edd,_0x4913ec){const _0x1508d3=_0x335fb9['userId'],_0x348bee=_0x26f3('0xc7')+_0x3e55c8+':'+_0x1508d3+':'+_0x439860++,_0x551c14=_0x3a631c[_0x26f3('0x12')](_0x198edd,_0x4913ec);_0x335613['markers'][_0x26f3('0x3a')](_0x348bee,_0x551c14),null!==_0x1508d3&&_0x34754c[_0x26f3('0x6e')](_0x1508d3);}}[_0x26f3('0x2e')](_0x2ff336){switch(_0x2ff336['type']){case _0x26f3('0x29'):return _0x26f3('0xb');case _0x26f3('0xdc'):return _0x26f3('0xf5');default:return'vid';}}[_0x26f3('0xcb')](_0x9dacab,_0x1d6426){_0x9dacab['baseVersion']=null;for(const _0x5c703f in _0x9dacab){const _0x415348=_0x9dacab[_0x5c703f];if(_0x415348 instanceof _0x4bbf54){const _0x19231d=_0x1d6426[_0x26f3('0x5')](_0x415348[_0x26f3('0x1d')][_0x26f3('0xe8')]);_0x9dacab[_0x5c703f]=this[_0x26f3('0x81')](_0x415348,_0x19231d);}if(_0x415348 instanceof _0x2e3d02){const _0x3ab48e=_0x1d6426[_0x26f3('0x5')](_0x415348[_0x26f3('0x1d')][_0x26f3('0xe8')]);_0x9dacab[_0x5c703f]=this['_fixRange'](_0x415348,_0x3ab48e);}_0x26f3('0x1d')===_0x5c703f&&(_0x9dacab[_0x26f3('0x1d')]=_0x1d6426[_0x26f3('0x5')](_0x9dacab[_0x26f3('0x1d')][_0x26f3('0xe8')]));}}[_0x26f3('0xa2')](_0x3bb5dc,_0x285557){return this[_0x26f3('0xe3')]['model'][_0x26f3('0x12')](this[_0x26f3('0x81')](_0x3bb5dc['start'],_0x285557),this[_0x26f3('0x81')](_0x3bb5dc[_0x26f3('0x23')],_0x285557));}[_0x26f3('0x81')](_0x2623e0,_0x37f9bc){return this[_0x26f3('0xe3')][_0x26f3('0x111')][_0x26f3('0x79')](_0x37f9bc,_0x2623e0['path'],_0x2623e0[_0x26f3('0x92')]);}[_0x26f3('0x93')](_0x2d43e2){const _0x5cf944=this[_0x26f3('0x73')][_0x26f3('0x5')](_0x2d43e2[_0x26f3('0xbe')][_0x26f3('0x1d')]['rootName']),_0x3d2079=this[_0x26f3('0x81')](_0x2d43e2[_0x26f3('0xbe')],_0x5cf944),_0x3852bd=null===_0x2d43e2[_0x26f3('0xdd')]?null:_0x2d43e2['_authorId']||this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf'))['me']['id'],_0xfc548b=_0x3d2079['parent'],_0x360ff9=this[_0x26f3('0xb0')],_0x24656c=[];for(const _0x331ce1 of _0x2d43e2[_0x26f3('0x5d')])if(_0x331ce1['is']('element'))_0x24656c[_0x26f3('0x107')](this[_0x26f3('0xfa')](_0x331ce1));else for(let _0x548f6d=0x0;_0x548f6d<_0x331ce1['offsetSize'];_0x548f6d++)_0x24656c[_0x26f3('0x107')](new _0x45c2f4(_0x26f3('0x39'),{'vid':this[_0x26f3('0xb0')]++}));const _0x24ddcc=this[_0x26f3('0xb0')];for(let _0x4a0b8d=_0x360ff9;_0x4a0b8d<_0x24ddcc;_0x4a0b8d++)this[_0x26f3('0x95')][_0x26f3('0x3a')](_0x4a0b8d,{'userId':_0x3852bd});_0xfc548b[_0x26f3('0xd3')](_0x3d2079[_0x26f3('0x72')],_0x24656c);}[_0x26f3('0x15')](_0x425170){(_0x425170=this[_0x26f3('0x7d')](_0x425170,this['_idsRoots']))['_execute']();const _0x4dbc99=null===_0x425170[_0x26f3('0xdd')]?null:_0x425170['_authorId']||this[_0x26f3('0xe3')][_0x26f3('0x9')]['get'](_0x26f3('0xf'))['me']['id'],_0x1f6490=_0x425170[_0x26f3('0x9b')](),_0x429cb5=_0x1f6490['parent'],_0x25c949=_0x1f6490['offset'];!function _0x1d6650(_0x35b6da,_0x42b33d,_0x4eba40,_0x565747){for(let _0x2916fb=_0x4eba40;_0x2916fb<_0x565747;_0x2916fb++){const _0x35a339=_0x42b33d[_0x26f3('0xf4')](_0x2916fb);_0x35a339['is'](_0x26f3('0x50'),'$text')?_0x35b6da['set'](_0x35a339['getAttribute']('vid'),{'userId':_0x4dbc99}):(_0x35b6da['set'](_0x35a339[_0x26f3('0xfe')](_0x26f3('0xb')),{'userId':_0x4dbc99}),_0x1d6650(_0x35b6da,_0x35a339,0x0,_0x35a339[_0x26f3('0xc4')]),_0x35b6da[_0x26f3('0x3a')](_0x35a339[_0x26f3('0xfe')](_0x26f3('0xf5')),{'userId':_0x4dbc99}));}}(this[_0x26f3('0x95')],_0x429cb5,_0x25c949,_0x25c949+_0x425170[_0x26f3('0x63')]);}[_0x26f3('0xb9')](_0x112e45){const _0x140880=null===(_0x112e45=this[_0x26f3('0x7d')](_0x112e45,this[_0x26f3('0x73')]))['_authorId']?null:_0x112e45['_authorId']||this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')](_0x26f3('0xf'))['me']['id'],_0x2b1fd9=_0x112e45[_0x26f3('0x4a')][_0x26f3('0xdb')],_0x51fee8=_0x112e45[_0x26f3('0xd1')]['parent'],_0xb91392=_0x2b1fd9['getAttribute']('vid_end'),_0x4bed0e=_0x51fee8[_0x26f3('0xfe')](_0x26f3('0xb'));_0x2b1fd9['_setAttribute'](_0x26f3('0xf5'),_0x51fee8['getAttribute'](_0x26f3('0xf5'))),_0x51fee8[_0x26f3('0xea')]('vid_end',_0xb91392),this[_0x26f3('0x95')]['set'](_0x4bed0e,{'userId':_0x140880}),this[_0x26f3('0x95')][_0x26f3('0x3a')](_0xb91392,{'userId':_0x140880}),_0x112e45[_0x26f3('0x94')]();}[_0x26f3('0x1c')](_0x320c51){const _0xc92bb2=null===(_0x320c51=this[_0x26f3('0x7d')](_0x320c51,this[_0x26f3('0x73')]))[_0x26f3('0xdd')]?null:_0x320c51[_0x26f3('0xdd')]||this[_0x26f3('0xe3')][_0x26f3('0x9')]['get'](_0x26f3('0xf'))['me']['id'],_0x4b0cb8=_0x320c51[_0x26f3('0x59')],_0x22cd91=_0x320c51[_0x26f3('0x42')][_0x26f3('0xdb')];_0x320c51[_0x26f3('0x94')]();const _0x4dfa86=_0x22cd91['getAttribute']('vid_end'),_0x489400=_0x320c51['insertionPosition'][_0x26f3('0xf7')];if(_0x4b0cb8){const _0xeefbdb=_0x489400['getAttribute'](_0x26f3('0xf5')),_0xed78e8=_0x22cd91['getAttribute']('vid_end');_0x22cd91['_setAttribute'](_0x26f3('0xf5'),_0xeefbdb),_0x489400[_0x26f3('0xea')](_0x26f3('0xf5'),_0xed78e8),this[_0x26f3('0x95')][_0x26f3('0x3a')](_0x22cd91[_0x26f3('0xfe')](_0x26f3('0xf5')),{'userId':_0xc92bb2}),this[_0x26f3('0x95')]['set'](_0x489400[_0x26f3('0xfe')](_0x26f3('0xb')),{'userId':_0xc92bb2});}else{const _0x4bdf17=this[_0x26f3('0xb0')]++,_0x3cb891=this[_0x26f3('0xb0')]++;_0x22cd91[_0x26f3('0xea')](_0x26f3('0xf5'),_0x4bdf17),_0x489400[_0x26f3('0xea')]('vid_start',_0x3cb891),_0x489400[_0x26f3('0xea')]('vid_end',_0x4dfa86),this[_0x26f3('0x95')][_0x26f3('0x3a')](_0x4bdf17,{'userId':_0xc92bb2}),this[_0x26f3('0x95')]['set'](_0x3cb891,{'userId':_0xc92bb2});}}[_0x26f3('0xcc')](_0x11c57e){if(!_0x11c57e[_0x26f3('0x51')])return;const _0x5030e9=(_0x11c57e=this[_0x26f3('0x7d')](_0x11c57e,this[_0x26f3('0xb2')]))[_0x26f3('0xaf')]?_0x11c57e[_0x26f3('0xaf')][_0x26f3('0x1d')]:null,_0x4a7f28=_0x11c57e[_0x26f3('0x58')]?_0x11c57e['newRange'][_0x26f3('0x1d')]:null;_0x5030e9&&this['_markers'][_0x26f3('0x30')](_0x11c57e[_0x26f3('0xba')]),_0x4a7f28&&this[_0x26f3('0x9e')]['set'](_0x11c57e[_0x26f3('0xba')],_0x11c57e[_0x26f3('0x58')][_0x26f3('0xd2')]());const _0x46915b=null===_0x11c57e[_0x26f3('0xdd')]?null:_0x11c57e[_0x26f3('0xdd')]||this['editor'][_0x26f3('0x9')]['get']('Users')['me']['id'],_0x17a8cb=_0x11c57e[_0x26f3('0xba')];if(!this['_touchedMarkers'][_0x26f3('0xcf')](_0x17a8cb))return void this[_0x26f3('0x66')][_0x26f3('0x3a')](_0x17a8cb,{'range':_0x11c57e[_0x26f3('0xaf')],'userId':_0x46915b});const _0x5a7250=this[_0x26f3('0x66')][_0x26f3('0x5')](_0x17a8cb),_0x48d5c9=_0x5a7250[_0x26f3('0xa7')],_0x869086=_0x11c57e['newRange'];null==_0x48d5c9&&null==_0x869086||_0x48d5c9&&_0x869086&&_0x48d5c9[_0x26f3('0x10c')](_0x869086)?this['_touchedMarkers'][_0x26f3('0x30')](_0x11c57e[_0x26f3('0xba')]):_0x5a7250[_0x26f3('0x19')]=_0x46915b;}[_0x26f3('0xe')](_0x5d9034,_0x333ea6){this[_0x26f3('0xb2')]['has'](_0x5d9034['rootName'])?this[_0x26f3('0xb2')][_0x26f3('0x5')](_0x5d9034['rootName'])[_0x26f3('0x4b')]=_0x5d9034['isAdd']:(this[_0x26f3('0xb2')][_0x26f3('0x3a')](_0x5d9034[_0x26f3('0xe8')],G(_0x5d9034['rootName'],!0x0)),this[_0x26f3('0x2a')][_0x26f3('0x3a')](_0x5d9034[_0x26f3('0xe8')],{}),_0x333ea6&&this[_0x26f3('0x73')]['set'](_0x5d9034[_0x26f3('0xe8')],G(_0x5d9034[_0x26f3('0xe8')],!0x0)));const _0x17809c=null===_0x5d9034[_0x26f3('0xdd')]?null:_0x5d9034[_0x26f3('0xdd')]||this[_0x26f3('0xe3')][_0x26f3('0x9')][_0x26f3('0x5')]('Users')['me']['id'],_0x175455=this['_touchedRoots']['get'](_0x5d9034[_0x26f3('0xe8')]);_0x175455&&_0x175455['userId']===_0x17809c?this[_0x26f3('0x64')]['delete'](_0x5d9034['rootName']):this[_0x26f3('0x64')][_0x26f3('0x3a')](_0x5d9034[_0x26f3('0xe8')],{'userId':_0x17809c,'isAttached':_0x5d9034[_0x26f3('0x44')]});}[_0x26f3('0x5f')](_0x3aed8a){const _0x37670b=this[_0x26f3('0x2a')][_0x26f3('0x5')](_0x3aed8a[_0x26f3('0x1d')][_0x26f3('0xe8')]);null===_0x3aed8a['newValue']?delete _0x37670b[_0x3aed8a['key']]:_0x37670b[_0x3aed8a[_0x26f3('0xde')]]=_0x3aed8a['newValue'];}}function q(_0x4dc3c6){const _0x41a9f9=G(_0x4dc3c6['rootName'],_0x4dc3c6[_0x26f3('0x10')]());for(const _0x126d50 of _0x4dc3c6[_0x26f3('0x6a')]()){const _0x4d2db7=_0x126d50[_0x26f3('0xf2')](!0x0);_0x41a9f9['_appendChild'](_0x4d2db7);}return _0x41a9f9;}function G(_0x2497f0,_0x21aac6=!0x0){const _0x442594=new _0x47a350();return _0x442594[_0x26f3('0xe8')]=_0x2497f0,_0x442594['_isAttached']=_0x21aac6,_0x442594[_0x26f3('0x10')]=()=>_0x442594[_0x26f3('0x4b')],_0x442594;}function L(_0x2c5027,_0x4e8401,_0x4dc2e6){const _0x4e2470=_0x26f3('0xdc')==_0x2c5027['type']?_0x4dc2e6[_0x26f3('0x84')](_0x2c5027[_0x26f3('0xd9')],'end'):_0x4dc2e6['createPositionBefore'](_0x2c5027[_0x26f3('0xd9')]);return _0x4dc2e6[_0x26f3('0x79')](_0x4e8401,_0x4e2470[_0x26f3('0xf0')],_0x4e2470['stickiness']);}function W(_0x40e433,_0x50057e,_0x25bf29){const _0x473129=_0x26f3('0x29')==_0x40e433['type']?_0x25bf29[_0x26f3('0x84')](_0x40e433[_0x26f3('0xd9')],0x0):_0x25bf29[_0x26f3('0x8')](_0x40e433['item']);return _0x25bf29[_0x26f3('0x79')](_0x50057e,_0x473129[_0x26f3('0xf0')],_0x473129[_0x26f3('0x92')]);}
|
|
23
|
+
const _0xecb2=['_execute','delete','clone','currentRevision','createRangeIn','offsetSize','documentFragment','parent','getRootNames','sort','_handleInsertOperation','init','_diffRoots','processor','isAttached','version','insertionPosition','stringify','fromVersion','toVersion','from','previousPosition','afterInit','reInit','for','history','_loadRevisionData','getTransformedByOperation','_makeIdsRoot','_handleMergeOperation','revision:','dataToMarker','model','getRevisionRootsAttributes','define','diffData','markerToData','_createInitialRevision','stickiness','_getVidAttributeName','element','addRoot','insertions','initialData','authorsIds','clear','rootsAttributes','trim','remove','createPositionFromPath','updateRevisions','Empty\x20document','graveyardPosition','bind','getData','addRevision','createdAt','createPositionAt','_saveMetaData','getIndex','attributesAfter','start','$text','_processRootBeforeSave','_removePendingAction','plugins','_generateTape','slice','deletions','_createCurrentRevision','splitPosition','_authorId','NEGATIVE_INFINITY','_isPendingUpdate','has','_loadedStateData','map','_source','_getBaseVids','_addPendingAction','getLatestVersion','length','split','pluginName','_touched','_clone','_idsRoots','set','oldRange','_handleMoveOperation','getRange','creatorId','affectsData','root','RealTimeCollaborationClient','getTime','setRevisionData','filter','marked','editor','_operations','_update','_replaceEditorDataWithRevisionData','_markChanges','resolve','_startingRevisionId','paragraph','_transformMarkers','_prepareViewToSave','_fixOperation','_continueCurrentRevision','forEach','tableCell','keys','vid_start','userId','isAdd','type','_insertChild','getRoot','createRevision','newRange','getWalker','get','position','_touchedRoots','_getState','_makeModelFromViewString','getRevision','_appendChild','_baseRoots','initial','_setConversion','attributes','repository','end','howMany','then','key','getOperations','_isInit','markers','marker','_lastTo','$graveyard','creator','_findInsertionIndex','push','useFillerType','default','_createFromRanges','revision-end','_markers','_removeMetaData','_revisionId','_lastFrom','elementEnd','_handleOperation','adapter','collaboration.channelId','values','getCurrentRevisionId','update','deletion','_removeRevisionMarkers','find','item','editing','_cloneOperation','name','insert','sendBufferedUpdates','PendingActions','getAttribute','authors','_bufferUpdate','loadState','_fixPosition','dataDowncast','isReady','max','_handleSplitOperation','Initial\x20revision','_baseRootsAttributes','fromEntries','_isAttached','_handleRootAttributeOperation','attributesBefore','_reset','rootName','_getViewJson','path','removeRootAttribute','data','revisionHistory.resumeUnsavedRevision','_loadState','_revisionDataBuilder','getAncestors','_diffRootsAttributes','shift','roots','string','add','parse','addRevisionData','children','getOperation','vid_end','nodeAfter','getRevisionDocumentData','locale','_initialRevisionId','_savedMetaData','revision-start','_calculateMetaData','config','startsWith','isEqual','_pendingAction','attachChange','sourcePosition','_getPreviousFrom','reverse','finally','getChildren','_handleMarkerOperation','buildRevisionData','move','getMovedRangeStart','_bufferedUpdates','getNodeByPath','newValue','_copyMarkers','view','createRange','_applyOperations','source','conversion','vid','revision','size','isEnabled','Users','getChild','baseVersion','_fixRange','elementStart','_touchedMarkers','_handleRootOperation','data-revision-','getRevisions','document','changeRootAttribute','RevisionTracker','_makeRevision','childCount','_baseIdsRoots','_setAttribute','_startingVersion'];(function(_0xfa79b8,_0xecb2b2){const _0x3241f8=function(_0x270162){while(--_0x270162){_0xfa79b8['push'](_0xfa79b8['shift']());}};_0x3241f8(++_0xecb2b2);}(_0xecb2,0xa5));const _0x3241=function(_0xfa79b8,_0xecb2b2){_0xfa79b8=_0xfa79b8-0x0;let _0x3241f8=_0xecb2[_0xfa79b8];return _0x3241f8;};import{Users as _0x370923}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x2d6e89,PendingActions as _0x30d7b3}from'ckeditor5/src/core.js';import{logWarning as _0x4f215e,uid as _0x20680c}from'ckeditor5/src/utils.js';import{Position as _0x27058a,Range as _0x39f223,Element as _0x20f26a,DocumentFragment as _0x33b03c,ViewText as _0x34ecdc,ViewElement as _0x2d6c17,ViewContainerElement as _0x30f5eb,ViewAttributeElement as _0x418302,ViewEmptyElement as _0x3906b5,ViewRawElement as _0x4bfff8,ViewUIElement as _0x4ae1a5,ViewDocumentFragment as _0x3b0c8f}from'ckeditor5/src/engine.js';import _0x87a3c3 from'./revisionsrepository.js';import{getTranslation as _0xfcf7a8}from'./utils/common-translations.js';import{cloneDeep as _0x3bfbe7,isEqual as _0x78a64d}from'lodash-es';const B={'c':_0x30f5eb,'a':_0x418302,'e':_0x3906b5,'r':_0x4bfff8,'u':_0x4ae1a5};export default class l extends _0x2d6e89{static get[_0x3241('0xb1')](){return _0x3241('0x58');}static get['requires'](){return[_0x370923,_0x87a3c3,_0x30d7b3];}constructor(_0x29f002){super(_0x29f002),this[_0x3241('0xfc')]=null,this[_0x3241('0x61')]=null,this[_0x3241('0x1f')]=new H(this['editor']),this['_initialRevisionId']=this[_0x3241('0xc1')][_0x3241('0x32')][_0x3241('0xd9')](_0x3241('0xfd'))||_0x3241('0xe1'),this[_0x3241('0x40')]=new Map(),this[_0x3241('0xa9')]=null;const _0x104719=_0x20680c();this['_source']={'history':this['editor'][_0x3241('0x7e')][_0x3241('0x56')][_0x3241('0x77')],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x3241('0x7e')][_0x3241('0x56')]['version']),'getCurrentRevisionId':()=>_0x104719},this[_0x3241('0xb5')](_0x3241('0xe'),!0x1),this[_0x3241('0xb5')](_0x3241('0x4c'),!0x0),this[_0x3241('0xb5')]('_isPendingUpdate',!0x1),this[_0x3241('0xc1')][_0x3241('0x32')][_0x3241('0x80')](_0x3241('0x1d'),!0x0),this[_0x3241('0xc1')][_0x3241('0x48')][_0x3241('0x76')]('upcast')[_0x3241('0x7d')]({'view':_0x3241('0x4a')});}[_0x3241('0x69')](){this['repository']=this['editor'][_0x3241('0x9f')]['get']('RevisionsRepository'),this[_0x3241('0xe2')](),this[_0x3241('0xc1')][_0x3241('0x1c')]['on']('ready',()=>{const _0x5ee652=this[_0x3241('0xe4')][_0x3241('0xde')](0x0),_0x13884b=_0x5ee652&&null===_0x5ee652[_0x3241('0xef')]?_0x5ee652:null;if(this['_continueCurrentRevision']=!!_0x13884b&&this[_0x3241('0xc1')][_0x3241('0x32')][_0x3241('0xd9')](_0x3241('0x1d')),this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xa8')](_0x3241('0xbc'))){const _0x26e54f=this['_source'][_0x3241('0xff')](),_0x3bd491=this[_0x3241('0xe4')][_0x3241('0xde')](_0x26e54f);if(_0x3bd491)this['_startingVersion']=_0x3bd491[_0x3241('0x70')],this['_continueCurrentRevision']=!0x1;else{const _0x1a6d37=this['_source']['history'][_0x3241('0xc2')][_0x3241('0x0')](_0x3b2de4=>!_0x3b2de4[_0x3241('0xea')]),_0x2af165=_0x1a6d37?_0x1a6d37[_0x3241('0x4f')]:this[_0x3241('0xab')][_0x3241('0x77')][_0x3241('0x6d')];_0x5ee652?(_0x5ee652[_0x3241('0x71')]<_0x2af165&&_0x5ee652[_0x3241('0xc3')]({'toVersion':_0x2af165}),this[_0x3241('0xcc')]?(this[_0x3241('0xab')]['getCurrentRevisionId']=()=>_0x13884b['id'],this['_startingVersion']=_0x13884b[_0x3241('0x70')]):(this[_0x3241('0x5d')]=_0x5ee652[_0x3241('0x71')],this[_0x3241('0xcc')]=!0x1)):(this['_startingVersion']=_0x2af165,this[_0x3241('0xcc')]=!0x1);}}else _0x13884b&&(this[_0x3241('0xc1')][_0x3241('0x7e')]['document']['history'][_0x3241('0x6d')]=Math[_0x3241('0xf')](_0x13884b[_0x3241('0x71')],this[_0x3241('0xc1')][_0x3241('0x7e')][_0x3241('0x56')][_0x3241('0x77')][_0x3241('0x6d')]),_0x13884b['fromVersion']===_0x13884b[_0x3241('0x71')]?(0x0!==_0x13884b['fromVersion']&&(this['_source'][_0x3241('0xff')]=()=>_0x13884b['id']),this[_0x3241('0xcc')]=!0x1):this[_0x3241('0xcc')]&&(this[_0x3241('0xab')]['getCurrentRevisionId']=()=>_0x13884b['id'],this['_startingVersion']=_0x13884b[_0x3241('0x70')])),this[_0x3241('0xcc')]||(this[_0x3241('0x5d')]=this[_0x3241('0xc1')][_0x3241('0x7e')][_0x3241('0x56')][_0x3241('0x6d')]);this['_revisionDataBuilder'][_0x3241('0x69')](this['_source']['history']),this[_0x3241('0x83')](this[_0x3241('0x5d')]),this[_0x3241('0xa3')](this[_0x3241('0x5d')]),this[_0x3241('0xfc')]&&this[_0x3241('0x6')]();}),this[_0x3241('0x93')](_0x3241('0xe'))['to'](this,'_isPendingUpdate',_0x391715=>!_0x391715);}async[_0x3241('0x74')](){if(this[_0x3241('0xe4')]['length']>0x0){const _0x3afee8=this[_0x3241('0xe4')][_0x3241('0xde')](0x0),_0x4adc12=await this['getRevisionDocumentData'](_0x3afee8),_0x1a794d=await this[_0x3241('0x7f')](_0x3afee8);this[_0x3241('0xc4')](_0x4adc12,_0x1a794d);}}['setSource'](_0x52136b){this[_0x3241('0xab')]=_0x52136b;}async[_0x3241('0x100')](){const _0x18546f=await this[_0x3241('0xab')][_0x3241('0xae')]();if(_0x18546f>this[_0x3241('0x61')][_0x3241('0x71')]){await this[_0x3241('0x1e')]();const _0x48a9fa=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x18546f});_0x48a9fa['authors']=_0x48a9fa['authorsIds'][_0x3241('0xaa')](_0x4c99ce=>this[_0x3241('0xc1')][_0x3241('0x9f')]['get']('Users')['getUser'](_0x4c99ce)),this[_0x3241('0x61')][_0x3241('0xc3')](_0x48a9fa);}}async[_0x3241('0x1e')](){this[_0x3241('0xcc')]&&!this[_0x3241('0xa9')]&&(await this['_loadRevisionData'](this[_0x3241('0x61')]),this[_0x3241('0x1f')][_0x3241('0xb')](this[_0x3241('0x61')]),this['_loadedStateData']={'fromVersion':this[_0x3241('0x61')][_0x3241('0x70')],'authors':this[_0x3241('0x61')][_0x3241('0x9')][_0x3241('0xa1')]()});}async['saveRevision'](_0x594959={},_0x21ffce=null){const _0x565194=[];await this[_0x3241('0x1e')](),this['_continueCurrentRevision']=!0x1,_0x21ffce>this['currentRevision'][_0x3241('0x71')]&&(_0x21ffce=null),null===_0x21ffce&&(_0x21ffce=await this[_0x3241('0xab')][_0x3241('0xae')]());const _0x5b7095=this['_getFromVersion'](_0x21ffce),_0x1f3c6a=this[_0x3241('0x3d')]({'from':_0x5b7095,'to':_0x21ffce});if(this['currentRevision'][_0x3241('0x71')]<_0x21ffce){const _0x3b9554=this[_0x3241('0x3d')]({'revision':this[_0x3241('0x61')],'from':_0x21ffce,'to':_0x21ffce});_0x3b9554[_0x3241('0x9')]=[],_0x3b9554[_0x3241('0x8a')]=[],_0x3b9554['id']=this[_0x3241('0x61')]['id'],this[_0x3241('0x61')][_0x3241('0xc3')](_0x3b9554,!0x0),delete _0x3b9554[_0x3241('0x9')],_0x565194[_0x3241('0xf1')](_0x3b9554);}_0x594959[_0x3241('0xb9')]=this['editor'][_0x3241('0x9f')]['get'](_0x3241('0x4d'))['me']['id'],_0x594959[_0x3241('0x4')]=_0x594959['name']||null,_0x594959['id']=_0x594959['id']||_0x20680c(),_0x594959={..._0x594959,..._0x1f3c6a};const _0x322b77=this[_0x3241('0x27')](_0x594959);_0x565194[_0x3241('0xf1')](_0x594959);const _0x4ff584=this[_0x3241('0xe4')][_0x3241('0x99')](_0x322b77);if(0x0!==_0x4ff584){const _0x22fd95=this[_0x3241('0xe4')][_0x3241('0xde')](_0x4ff584-0x1);if(_0x22fd95[_0x3241('0x70')]!==_0x21ffce){const _0x14e015=this[_0x3241('0x1f')][_0x3241('0x94')](_0x21ffce,_0x22fd95[_0x3241('0x71')]),_0x2fa5b1={'id':_0x22fd95['id'],'diffData':_0x14e015[_0x3241('0x81')],'authorsIds':_0x14e015[_0x3241('0x8a')],'authors':_0x14e015['authorsIds'][_0x3241('0xaa')](_0x2e6379=>this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')](_0x3241('0x4d'))['getUser'](_0x2e6379)),'fromVersion':_0x21ffce};_0x22fd95===this[_0x3241('0x61')]&&(_0x2fa5b1[_0x3241('0x96')]=new Date(_0x594959[_0x3241('0x96')][_0x3241('0xbd')]()+0xa)),_0x22fd95[_0x3241('0xc3')](_0x2fa5b1,!0x0),delete _0x2fa5b1[_0x3241('0x9')],_0x565194[_0x3241('0xf1')](_0x2fa5b1);}}if(this[_0x3241('0xfc')]){for(const _0x4e6e88 of _0x565194)this[_0x3241('0xa')](_0x4e6e88['id'],_0x4e6e88,!0x0);this[_0x3241('0x6')]();}return _0x322b77;}['addRevisionData'](_0x3a5d10){const _0x53e7e4=this[_0x3241('0xe4')][_0x3241('0xd6')](_0x3a5d10);return this[_0x3241('0xfc')]&&_0x53e7e4['on'](_0x3241('0xc3'),(_0x1872c9,_0x188966,_0xd78c6d)=>{_0xd78c6d||(this['_bufferUpdate'](_0x188966['id'],_0x188966,!0x0),this[_0x3241('0x6')]());}),this[_0x3241('0xe4')][_0x3241('0x95')](_0x53e7e4,this['_findInsertionIndex'](_0x53e7e4)),_0x53e7e4;}async[_0x3241('0x2c')](_0x1267e9){await this[_0x3241('0x78')](_0x1267e9);const _0x49aef1={};for(const _0x2da62e in _0x1267e9[_0x3241('0x81')]){if(_0x1267e9[_0x3241('0x81')][_0x2da62e][_0x3241('0x36')]&&!_0x1267e9[_0x3241('0x81')][_0x2da62e][_0x3241('0x36')]['isAttached'])continue;const _0x563b0e=this[_0x3241('0x102')](JSON['parse'](_0x1267e9[_0x3241('0x81')][_0x2da62e][_0x3241('0x88')])),_0x3f8c90=this[_0x3241('0xc1')]['editing'][_0x3241('0x44')][_0x3241('0x56')],_0x2ca655=new _0x3b0c8f(_0x3f8c90,_0x563b0e[_0x3241('0xaa')](_0x14a100=>J(_0x14a100,this[_0x3241('0xc1')])));this[_0x3241('0xc1')][_0x3241('0x1c')][_0x3241('0x6b')][_0x3241('0xf2')](_0x3241('0xc0')),_0x49aef1[_0x2da62e]=this[_0x3241('0xc1')][_0x3241('0x1c')][_0x3241('0x6b')]['toData'](_0x2ca655),this['editor']['data'][_0x3241('0x6b')]['useFillerType'](_0x3241('0xf3'));}return _0x49aef1;}async['getRevisionRootsAttributes'](_0x5ccf24){await this['_loadRevisionData'](_0x5ccf24);const _0x309a27={};for(const _0x26bf84 in _0x5ccf24['diffData'])_0x5ccf24[_0x3241('0x81')][_0x26bf84]['attachChange']&&!_0x5ccf24[_0x3241('0x81')][_0x26bf84][_0x3241('0x36')][_0x3241('0x6c')]||(_0x309a27[_0x26bf84]=_0x5ccf24[_0x3241('0x81')][_0x26bf84][_0x3241('0x9a')]||{});return _0x309a27;}[_0x3241('0x6')](){if(0x0===this[_0x3241('0x40')]['size'])return;if(this[_0x3241('0xa7')])return;let _0x3c8447=Array['from'](this[_0x3241('0x40')][_0x3241('0xfe')]());this[_0x3241('0x40')][_0x3241('0x8b')]();for(let _0x3a4101=0x0;_0x3a4101<_0x3c8447[_0x3241('0xaf')];_0x3a4101++){const _0x32eb87=_0x3c8447[_0x3a4101];let _0x3d5a6b=!0x1;for(const _0x3b3d51 of Object[_0x3241('0xcf')](_0x32eb87))void 0x0===_0x32eb87[_0x3b3d51]?delete _0x32eb87[_0x3b3d51]:'id'!==_0x3b3d51&&(_0x3d5a6b=!0x0);_0x3d5a6b||(_0x3c8447[_0x3a4101]=null);}if(_0x3c8447=_0x3c8447[_0x3241('0xbf')](_0x355d9c=>null!==_0x355d9c),!_0x3c8447[_0x3241('0xaf')])return;for(let _0x53ebba=0x0;_0x53ebba<_0x3c8447['length'];_0x53ebba++){const _0x2f3b00=_0x3c8447[_0x53ebba];void 0x0!==_0x2f3b00[_0x3241('0x70')]&&void 0x0===_0x2f3b00[_0x3241('0x71')]&&(_0x2f3b00[_0x3241('0x71')]=this['repository']['getRevision'](_0x2f3b00['id'])[_0x3241('0x71')]),void 0x0!==_0x2f3b00[_0x3241('0x71')]&&void 0x0===_0x2f3b00['fromVersion']&&(_0x2f3b00[_0x3241('0x70')]=this['repository'][_0x3241('0xde')](_0x2f3b00['id'])[_0x3241('0x70')]);}const _0x3e2564=this['editor'][_0x3241('0x32')]['get'](_0x3241('0xfd'));this[_0x3241('0xa7')]=!0x0,this[_0x3241('0xad')](),this[_0x3241('0xfc')][_0x3241('0x90')](_0x3c8447,_0x3e2564)[_0x3241('0x3a')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x412655=>{if(_0x412655)for(const _0x11d05b of _0x412655)this[_0x3241('0xbe')]({'id':_0x11d05b['id'],'createdAt':_0x11d05b['createdAt']});this[_0x3241('0x9e')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x362ce5,_0x4deced){let _0x220853=this['editor']['config'][_0x3241('0xd9')](_0x3241('0x89')),_0x19fb44=this[_0x3241('0xc1')][_0x3241('0x32')][_0x3241('0xd9')](_0x3241('0x8c'));if(void 0x0===_0x220853){_0x220853={};for(const _0x352240 of this[_0x3241('0xc1')][_0x3241('0x7e')]['document'][_0x3241('0x66')]())_0x220853[_0x352240]='';}if(_0x3241('0x24')==typeof _0x220853&&(_0x220853={'main':_0x220853}),void 0x0===_0x19fb44){_0x19fb44={};for(const _0x26ea96 of this[_0x3241('0xc1')]['model'][_0x3241('0x56')][_0x3241('0x66')]())_0x19fb44[_0x26ea96]={};}let _0x3ea3e1=!0x1;const _0x5014b2=Object[_0x3241('0xcf')](_0x220853),_0x4c0448=Object[_0x3241('0xcf')](_0x362ce5);for(const _0x2f8cfc of _0x5014b2){if(_0x220853[_0x2f8cfc]!==_0x362ce5[_0x2f8cfc]&&''!==_0x220853[_0x2f8cfc][_0x3241('0x8d')]()){_0x3ea3e1=!0x0;break;}if(!_0x78a64d(_0x19fb44[_0x2f8cfc],_0x4deced[_0x2f8cfc])&&Object['keys'](_0x19fb44[_0x2f8cfc])[_0x3241('0xaf')]>0x0){_0x3ea3e1=!0x0;break;}}_0x3ea3e1||(_0x3ea3e1=_0x4c0448['some'](_0x55f472=>!this[_0x3241('0xc1')][_0x3241('0x7e')][_0x3241('0x56')][_0x3241('0xd5')](_0x55f472))),_0x3ea3e1&&_0x4f215e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x220853,'editorRootsAttributes':_0x19fb44,'revisionData':_0x362ce5,'revisionRootsAttributes':_0x4deced}),this[_0x3241('0xc1')][_0x3241('0x32')][_0x3241('0xb5')](_0x3241('0x89'),_0x362ce5),this[_0x3241('0xc1')]['config'][_0x3241('0xb5')]('rootsAttributes',_0x4deced);}['_addPendingAction'](){if(!this[_0x3241('0x35')]){const _0xbe93c7=this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')](_0x3241('0x7'));this['_pendingAction']=_0xbe93c7[_0x3241('0x25')](_0xfcf7a8(this['editor'][_0x3241('0x2d')],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x3241('0x35')]&&(this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')]('PendingActions')[_0x3241('0x8e')](this[_0x3241('0x35')]),this['_pendingAction']=null);}[_0x3241('0xf0')](_0xc084ec){const _0x33f76e=this['repository'][_0x3241('0x55')]();_0x33f76e['reverse']();let _0x2708f4=0x0;for(;_0x2708f4<_0x33f76e[_0x3241('0xaf')];){const _0x175fed=_0x33f76e[_0x2708f4];if(_0x175fed===this[_0x3241('0x61')]){_0x2708f4++;continue;}if(_0x175fed['id']===this[_0x3241('0x2e')])break;const _0x55f53a=_0xc084ec['toVersion']-_0x175fed[_0x3241('0x71')]||_0xc084ec['fromVersion']-_0x175fed[_0x3241('0x70')];if(_0x55f53a>0x0)break;if(_0x55f53a<0x0)_0x2708f4++;else{if(!_0xc084ec[_0x3241('0xef')]&&_0x175fed['creator'])break;if(_0x175fed[_0x3241('0xef')]||!_0xc084ec[_0x3241('0xef')]){if(_0xc084ec['createdAt']>_0x175fed[_0x3241('0x96')])break;_0x2708f4++;}else _0x2708f4++;}}return _0x2708f4;}['setRevisionData'](_0x4f9a28){const _0x2d9b96=this[_0x3241('0xe4')][_0x3241('0xde')](_0x4f9a28['id']);if(_0x4f9a28[_0x3241('0x96')]&&(_0x4f9a28[_0x3241('0x96')]=new Date(_0x4f9a28[_0x3241('0x96')])),_0x4f9a28[_0x3241('0x8a')]){const _0x2b78f5=this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')](_0x3241('0x4d'));_0x4f9a28[_0x3241('0x9')]=_0x4f9a28['authorsIds']['map'](_0x20a36e=>_0x2b78f5['getUser'](_0x20a36e));}_0x2d9b96[_0x3241('0xc3')](_0x4f9a28,!0x0);}['buildRevisionData']({revision:_0x2acf0d=null,from:_0x3c3931=null,to:_0x287a2e=null}){_0x3c3931=null!==_0x3c3931?_0x3c3931:_0x2acf0d['fromVersion'],_0x287a2e=null!==_0x287a2e?_0x287a2e:_0x2acf0d[_0x3241('0x71')];const _0x447269=this[_0x3241('0x1f')][_0x3241('0x94')](_0x3c3931,_0x287a2e),_0x474826={'diffData':_0x447269[_0x3241('0x81')],'authorsIds':_0x447269[_0x3241('0x8a')],'fromVersion':_0x3c3931,'toVersion':_0x287a2e};if(!_0x2acf0d||_0x287a2e!==_0x2acf0d['toVersion']){const _0x4342bb=_0x287a2e-0x1,_0x47271c=this[_0x3241('0xab')][_0x3241('0x77')][_0x3241('0x29')](_0x4342bb);_0x474826['createdAt']=_0x47271c&&_0x47271c[_0x3241('0x96')]||new Date();}if(this[_0x3241('0xa9')]&&_0x3c3931===this[_0x3241('0xa9')][_0x3241('0x70')])for(const _0x3a2b96 of this[_0x3241('0xa9')][_0x3241('0x9')])_0x474826['authorsIds']['includes'](_0x3a2b96['id'])||_0x474826[_0x3241('0x8a')]['push'](_0x3a2b96['id']);return _0x474826;}[_0x3241('0x78')](_0x53d6f1){if(!_0x53d6f1||_0x53d6f1['diffData'])return Promise[_0x3241('0xc6')]();{const _0x31b1b6=this[_0x3241('0xc1')][_0x3241('0x32')]['get'](_0x3241('0xfd'));return this[_0x3241('0xfc')]['getRevision']({'channelId':_0x31b1b6,'revisionId':_0x53d6f1['id']})[_0x3241('0xe7')](_0x21843d=>{_0x53d6f1[_0x3241('0x81')]=_0x21843d[_0x3241('0x81')];});}}['_bufferUpdate'](_0x197ddc,_0x3990f5,_0x3bd405){if(this['_bufferedUpdates'][_0x3241('0xa8')](_0x197ddc)){const _0x5c58ee=this[_0x3241('0x40')]['get'](_0x197ddc);_0x3990f5=_0x3bd405?{..._0x5c58ee,..._0x3990f5}:{..._0x3990f5,..._0x5c58ee};}this[_0x3241('0x40')][_0x3241('0xb5')](_0x197ddc,_0x3990f5);}['_getFromVersion'](_0x53f3f7){const _0x515277=this[_0x3241('0xe4')]['getRevisions']();_0x515277[_0x3241('0x39')](),_0x515277[_0x3241('0x22')]();const _0x466fb8=_0x515277[_0x3241('0x0')](_0x1a7b58=>_0x1a7b58['toVersion']<=_0x53f3f7)[_0x3241('0x71')];return _0x466fb8<this['_startingVersion']?this['_startingVersion']:_0x466fb8;}[_0x3241('0x83')](_0x300e6e){const _0x31de8f=this['repository'][_0x3241('0xde')](this['repository'][_0x3241('0xaf')]-0x1);if(_0x31de8f)this['_initialRevisionId']=_0x31de8f['id'];else{const _0x20d86a=!this[_0x3241('0xc1')]['model'][_0x3241('0x56')]['roots'][_0x3241('0x0')](_0x571203=>this[_0x3241('0xc1')][_0x3241('0x7e')]['hasContent'](_0x571203)),_0x4a3244=this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')]('Users')['me']['id'],_0x26dea1=_0xfcf7a8(this[_0x3241('0xc1')]['locale'],_0x20d86a?_0x3241('0x91'):_0x3241('0x11'));this[_0x3241('0x59')]({'from':_0x300e6e,'to':_0x300e6e,'id':this[_0x3241('0x2e')],'name':_0x26dea1,'creatorId':_0x4a3244});}}[_0x3241('0xa3')](_0x12f7eb){const _0x2aabdc=this[_0x3241('0xab')][_0x3241('0xff')]();this[_0x3241('0x61')]=this[_0x3241('0xe4')][_0x3241('0xde')](_0x2aabdc),this['currentRevision']||(this[_0x3241('0x61')]=this[_0x3241('0x59')]({'from':_0x12f7eb,'to':_0x12f7eb,'id':_0x2aabdc,'name':'','creatorId':null}));}['_makeRevision']({name:_0x44fe25,from:_0x5956d6,to:_0x383fd9,creatorId:_0x591691,id:_0x5b1999}){const _0x4a22d4=this['buildRevisionData']({'from':_0x5956d6,'to':_0x383fd9});_0x4a22d4[_0x3241('0x4')]=_0x44fe25,_0x4a22d4[_0x3241('0xb9')]=_0x591691,_0x4a22d4['id']=_0x5b1999;const _0x146bc4=this[_0x3241('0x27')](_0x4a22d4);return this['adapter']&&this[_0x3241('0xa')](_0x4a22d4['id'],_0x4a22d4,!0x0),_0x146bc4;}[_0x3241('0xe2')](){this[_0x3241('0xc1')][_0x3241('0x48')][_0x3241('0x76')](_0x3241('0xd'))[_0x3241('0x82')]({'model':_0x3241('0x4a')});}[_0x3241('0x102')](_0x4ca2ac){return(_0x4ca2ac=_0x4ca2ac[_0x3241('0xbf')](_0x366a10=>!_0x366a10[_0x3241('0x4')]||_0x3241('0x30')!==_0x366a10[_0x3241('0x4')]&&_0x3241('0xf5')!==_0x366a10[_0x3241('0x4')]))[_0x3241('0xcd')](_0x547135=>{_0x3241('0x24')!=typeof _0x547135&&(_0x547135['children']=this['_removeRevisionMarkers'](_0x547135[_0x3241('0x28')]),_0x547135['attributes']=_0x547135[_0x3241('0xe3')][_0x3241('0xbf')](_0x1f729a=>!_0x1f729a[0x0][_0x3241('0x33')](_0x3241('0x54'))));}),_0x4ca2ac;}}function J(_0x1cbacb,_0x219ae0){const _0x232816=_0x219ae0[_0x3241('0x2')]['view']['document'];if('string'==typeof _0x1cbacb)return new _0x34ecdc(_0x232816,_0x1cbacb);{const _0x5e15c9=_0x1cbacb[_0x3241('0x28')]['map'](_0x290504=>J(_0x290504,_0x219ae0));return new(B[_0x1cbacb[(_0x3241('0xd3'))]]||_0x2d6c17)(_0x232816,_0x1cbacb[_0x3241('0x4')],_0x1cbacb['attributes'],_0x5e15c9);}}class H{constructor(_0x3c8bdd){this[_0x3241('0xc1')]=_0x3c8bdd,this[_0x3241('0x2f')]=new Map(),this[_0x3241('0xf9')]=-0x1,this[_0x3241('0xed')]=-0x1,this[_0x3241('0xf6')]=new Map(),this[_0x3241('0x6a')]=new Map(),this[_0x3241('0x21')]=new Map(),this[_0x3241('0xe0')]=new Map(),this[_0x3241('0x12')]=new Map(),this[_0x3241('0xb4')]=new Map(),this[_0x3241('0x5b')]=new Map(),this[_0x3241('0xb2')]=new Map(),this[_0x3241('0x52')]=new Map(),this[_0x3241('0xdb')]=new Map(),this[_0x3241('0xf8')]=0x1;}[_0x3241('0x69')](_0x170eef){this[_0x3241('0x47')]=_0x170eef;const _0x23915b=new Map(),_0x4becde=new Map(),_0x2a9043=this['editor'][_0x3241('0x7e')][_0x3241('0x56')][_0x3241('0x23')]['map'](_0x3b3901=>_0x3b3901[_0x3241('0x18')]);for(const _0x4a26c1 of _0x2a9043){const _0x4fa5e1=this['editor'][_0x3241('0x7e')]['document'][_0x3241('0xd5')](_0x4a26c1),_0x583f00=q(_0x4fa5e1);_0x23915b[_0x3241('0xb5')](_0x4a26c1,_0x583f00),_0x4becde[_0x3241('0xb5')](_0x4a26c1,Object[_0x3241('0x13')](_0x4fa5e1['getAttributes']()));}const _0x1dde10=Array['from'](this[_0x3241('0xc1')][_0x3241('0x7e')]['markers'])[_0x3241('0xaa')](_0x595b10=>[_0x595b10[_0x3241('0x4')],_0x595b10[_0x3241('0xb8')]()]),_0x11154f=this[_0x3241('0x47')][_0x3241('0x6d')];this['_saveMetaData'](_0x11154f,_0x23915b,_0x1dde10,_0x4becde),this[_0x3241('0xc7')]=this[_0x3241('0xf8')];const _0x426346=new Map(),_0x2c8850=new Map();for(const _0x15b40a of _0x2a9043){const _0x502eba=G(_0x15b40a);_0x426346[_0x3241('0xb5')](_0x15b40a,_0x502eba),_0x2c8850['set'](_0x15b40a,{});}this[_0x3241('0x98')](Number[_0x3241('0xa6')],_0x426346,[],_0x2c8850);}['getData'](_0x4346b5,_0x34295a){if(this[_0x3241('0xf9')]===_0x4346b5&&this[_0x3241('0xed')]<=_0x34295a)this[_0x3241('0x2f')][_0x3241('0x4b')]>0x1&&this[_0x3241('0xf7')](this[_0x3241('0xed')]),this[_0x3241('0x46')](this[_0x3241('0xed')],_0x34295a,!0x0);else{if(!this[_0x3241('0x2f')]['has'](_0x4346b5)){const _0x15af79=this['_getPreviousFrom'](_0x4346b5);this[_0x3241('0x31')](_0x15af79,_0x4346b5,!0x1);}this[_0x3241('0x31')](_0x4346b5,_0x34295a,!0x0);}return this[_0x3241('0xf9')]=_0x4346b5,this[_0x3241('0xed')]=_0x34295a,this[_0x3241('0xdc')]();}[_0x3241('0xb')](_0x2ed391){this[_0x3241('0x17')](),this[_0x3241('0xf9')]=_0x2ed391['fromVersion'],this[_0x3241('0xed')]=_0x2ed391[_0x3241('0x71')];for(const _0x2edb14 in _0x2ed391['diffData']){const _0x562212=_0x2ed391[_0x3241('0x81')][_0x2edb14][_0x3241('0x36')],_0x137924=_0x3bfbe7(_0x2ed391[_0x3241('0x81')][_0x2edb14][_0x3241('0x16')])||{},_0x5ae044=this[_0x3241('0xdd')](_0x2ed391['diffData'][_0x2edb14]['deletions']);_0x5ae044[_0x3241('0x18')]=_0x2edb14,_0x5ae044[_0x3241('0x14')]=!_0x562212||!_0x562212[_0x3241('0x6c')],_0x5ae044[_0x3241('0x6c')]=()=>_0x5ae044[_0x3241('0x14')],this[_0x3241('0xe0')]['set'](_0x2edb14,_0x5ae044),this[_0x3241('0x12')][_0x3241('0xb5')](_0x2edb14,_0x137924),_0x562212&&this[_0x3241('0xdb')][_0x3241('0xb5')](_0x2edb14,_0x562212);const _0x1fd303=this[_0x3241('0x7a')](_0x5ae044);this[_0x3241('0x5b')][_0x3241('0xb5')](_0x2edb14,_0x1fd303);for(const [_0x39e99f,_0x33368b]of _0x5ae044['markers']){if(!_0x39e99f[_0x3241('0x33')](_0x3241('0x7c')))continue;const _0x5ed62e=_0x39e99f[_0x3241('0xb0')](':')[0x2];for(const _0x3251b3 of _0x33368b[_0x3241('0xd8')]({'singleCharacters':!0x0})){const _0x5d3ab1=this[_0x3241('0x85')](_0x3251b3),_0x352b6d=_0x3241('0xfa')==_0x3251b3[_0x3241('0xd3')]?_0x3251b3[_0x3241('0x73')]['path'][_0x3241('0xa1')](0x0,-0x1):_0x3251b3[_0x3241('0x73')]['path'],_0x263789=_0x1fd303[_0x3241('0x41')](_0x352b6d)[_0x3241('0x8')](_0x5d3ab1);this[_0x3241('0xb2')][_0x3241('0xb5')](_0x263789,{'userId':_0x5ed62e});}}}this['_startingRevisionId']=this[_0x3241('0xf8')];const _0x2fd71b=[...Array(this[_0x3241('0xf8')])[_0x3241('0xcf')]()]['slice'](0x1)['filter'](_0x8a059f=>!this[_0x3241('0xb2')][_0x3241('0xa8')](_0x8a059f));let _0x3da81b=0x0;const _0x3a7477=new Map();for(const _0x4d1bac in _0x2ed391[_0x3241('0x81')]){const _0x4e130f=_0x2ed391['diffData'][_0x4d1bac][_0x3241('0x36')],_0x242e5b=_0x3bfbe7(_0x2ed391[_0x3241('0x81')][_0x4d1bac][_0x3241('0x9a')])||{},_0x1e7979=this[_0x3241('0xdd')](_0x2ed391['diffData'][_0x4d1bac][_0x3241('0x88')]);_0x1e7979['rootName']=_0x4d1bac,_0x1e7979['_isAttached']=!_0x4e130f||_0x4e130f[_0x3241('0x6c')],_0x1e7979[_0x3241('0x6c')]=()=>_0x1e7979[_0x3241('0x14')],this[_0x3241('0x6a')][_0x3241('0xb5')](_0x4d1bac,_0x1e7979),this[_0x3241('0x21')][_0x3241('0xb5')](_0x4d1bac,_0x242e5b);const _0xb81bc=this[_0x3241('0x7a')](_0x1e7979,Number[_0x3241('0xa6')]);this[_0x3241('0xb4')][_0x3241('0xb5')](_0x4d1bac,_0xb81bc),_0x3a7477[_0x3241('0xb5')](_0x4d1bac,_0x1e7979[_0x3241('0x6c')]()?_0x242e5b:{});for(const [_0x3dc064,_0x501599]of _0x1e7979[_0x3241('0xeb')]){if(!_0x3dc064[_0x3241('0x33')](_0x3241('0x7c')))continue;const _0x41c564=_0x3dc064[_0x3241('0xb0')](':')[0x2];for(const _0x11b3cd of _0x501599['getWalker']({'singleCharacters':!0x0})){const _0x27e76a=this['_getVidAttributeName'](_0x11b3cd),_0x4b410e=this['_revisionId']++,_0x2bd72e='elementEnd'==_0x11b3cd[_0x3241('0xd3')]?_0x11b3cd[_0x3241('0x73')][_0x3241('0x1a')][_0x3241('0xa1')](0x0,-0x1):_0x11b3cd[_0x3241('0x73')][_0x3241('0x1a')];_0xb81bc[_0x3241('0x41')](_0x2bd72e)[_0x3241('0x5c')](_0x27e76a,_0x4b410e),this['_touched'][_0x3241('0xb5')](_0x4b410e,{'userId':_0x41c564});}}for(const _0xd8234e of this['editor'][_0x3241('0x7e')][_0x3241('0x62')](_0x1e7979)[_0x3241('0xd8')]({'singleCharacters':!0x0})){const _0x207154=this[_0x3241('0x85')](_0xd8234e),_0x4a85cd=_0x3241('0xfa')==_0xd8234e[_0x3241('0xd3')]?_0xd8234e['previousPosition'][_0x3241('0x1a')][_0x3241('0xa1')](0x0,-0x1):_0xd8234e[_0x3241('0x73')]['path'],_0x514cb7=_0xb81bc[_0x3241('0x41')](_0x4a85cd);_0x514cb7[_0x3241('0x8')](_0x207154)>0x0||_0x514cb7[_0x3241('0x5c')](_0x207154,_0x2fd71b[_0x3da81b++]);}for(const [_0x5eacf0,_0x10ddae]of _0x1e7979[_0x3241('0xeb')])_0x5eacf0[_0x3241('0x33')](_0x3241('0x7c'))||this['_markers'][_0x3241('0xb5')](_0x5eacf0,_0x10ddae);}const _0x1186d6=G(_0x3241('0xee'));this[_0x3241('0xe0')][_0x3241('0xb5')](_0x3241('0xee'),_0x1186d6),this[_0x3241('0x5b')][_0x3241('0xb5')](_0x3241('0xee'),this[_0x3241('0x7a')](_0x1186d6,0x1));const _0x118c29=G(_0x3241('0xee'));this['_diffRoots'][_0x3241('0xb5')](_0x3241('0xee'),_0x118c29),this[_0x3241('0xb4')][_0x3241('0xb5')]('$graveyard',this[_0x3241('0x7a')](_0x118c29,0x1));const _0x2b87d0=Array[_0x3241('0x72')](this[_0x3241('0x6a')])[_0x3241('0xaa')](([_0x53ea20,_0x127e44])=>[_0x53ea20,q(_0x127e44)]);this[_0x3241('0x98')](this[_0x3241('0xed')],_0x2b87d0,this['_markers'],_0x3a7477);}[_0x3241('0xdd')](_0x519795){const _0x5d688a=JSON[_0x3241('0x26')](_0x519795),_0xe873b9=this['editor'][_0x3241('0x2')]['view'][_0x3241('0x56')],_0x27c3ad=new _0x3b0c8f(_0xe873b9,_0x5d688a[_0x3241('0xaa')](_0x5c722e=>J(_0x5c722e,this[_0x3241('0xc1')])));return this['editor'][_0x3241('0x1c')]['toModel'](_0x27c3ad);}[_0x3241('0x98')](_0x201ed5,_0x39f3c6,_0x1909f7,_0x1c9101){const _0xcb5fc1=new Map(_0x39f3c6),_0x5ba537=new Map(_0x3bfbe7(_0x1c9101)),_0x1b592c=new Map();for(const [_0x18b305,_0x47e4f1]of _0x1909f7)_0x1b592c[_0x3241('0xb5')](_0x18b305,{'start':_0x47e4f1[_0x3241('0x9b')][_0x3241('0x60')](),'end':_0x47e4f1[_0x3241('0xe5')]['clone'](),'rootName':_0x47e4f1[_0x3241('0xbb')][_0x3241('0x18')]});this[_0x3241('0x2f')][_0x3241('0xb5')](_0x201ed5,{'roots':_0xcb5fc1,'markers':_0x1b592c,'rootsAttributes':_0x5ba537});}['_removeMetaData'](_0x3cb8b3){this[_0x3241('0x2f')][_0x3241('0x5f')](_0x3cb8b3);}[_0x3241('0x75')](){this[_0x3241('0x17')](),this[_0x3241('0xf9')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x3241('0x8b')](),this[_0x3241('0x69')](this[_0x3241('0x47')]);}[_0x3241('0x17')](){this[_0x3241('0xb2')][_0x3241('0x8b')](),this[_0x3241('0x52')][_0x3241('0x8b')](),this[_0x3241('0xdb')][_0x3241('0x8b')](),this[_0x3241('0x6a')][_0x3241('0x8b')](),this['_diffRootsAttributes'][_0x3241('0x8b')](),this[_0x3241('0xe0')][_0x3241('0x8b')](),this[_0x3241('0x12')][_0x3241('0x8b')](),this[_0x3241('0xb4')][_0x3241('0x8b')](),this[_0x3241('0x5b')]['clear'](),this[_0x3241('0xf6')][_0x3241('0x8b')](),this[_0x3241('0xf8')]=0x1,this['_startingRevisionId']=this[_0x3241('0xf8')];}[_0x3241('0x7a')](_0x463a75,_0x5c503d=null){let _0x353504=null;_0x463a75['is'](_0x3241('0x64'))||(_0x353504=new _0x20f26a(_0x463a75[_0x3241('0x4')],{'vid_start':null===_0x5c503d?this[_0x3241('0xf8')]++:_0x5c503d++}));const _0x1da044=[];for(const _0x45407f of _0x463a75[_0x3241('0x3b')]())if(_0x45407f['is'](_0x3241('0x86'))){_0x1da044[_0x3241('0xf1')](this[_0x3241('0x7a')](_0x45407f,_0x5c503d));const _0x5c6a78=_0x1da044[_0x1da044[_0x3241('0xaf')]-0x1];null!==_0x5c503d&&(_0x5c503d=_0x5c6a78['is']('element',_0x3241('0x9c'))?_0x5c6a78[_0x3241('0x8')](_0x3241('0x49'))+0x1:_0x5c6a78[_0x3241('0x8')](_0x3241('0x2a'))+0x1);}else for(let _0x26512e=0x0;_0x26512e<_0x45407f[_0x3241('0x63')];_0x26512e++)_0x1da044[_0x3241('0xf1')](new _0x20f26a(_0x3241('0x9c'),{'vid':null===_0x5c503d?this[_0x3241('0xf8')]++:_0x5c503d++}));if(_0x463a75['is'](_0x3241('0x64'))){const _0x5a29df=G(_0x463a75[_0x3241('0x18')]);return _0x5a29df['_insertChild'](0x0,_0x1da044),_0x5a29df;}return _0x353504['_setAttribute'](_0x3241('0x2a'),null===_0x5c503d?this[_0x3241('0xf8')]++:_0x5c503d++),_0x353504['_insertChild'](0x0,_0x1da044),_0x353504;}[_0x3241('0x31')](_0x280006,_0x3a25a6,_0x4edf30){this['_reset']();const {roots:_0x308a0e,markers:_0xbe4c72,rootsAttributes:_0x10d3f7}=this[_0x3241('0x2f')][_0x3241('0xd9')](_0x280006);this[_0x3241('0xe0')]=new Map(_0x308a0e),this[_0x3241('0x12')]=new Map(_0x3bfbe7(_0x10d3f7));for(const [_0xa2d88e,_0x31ef8b]of this[_0x3241('0xe0')])if('$graveyard'!==_0xa2d88e&&(this[_0x3241('0x6a')][_0x3241('0xb5')](_0xa2d88e,q(_0x31ef8b)),this['_diffRootsAttributes']=new Map(_0x3bfbe7(_0x10d3f7)),_0x4edf30)){const _0x2243f4=this['_revisionId'];this[_0x3241('0xb4')]['set'](_0xa2d88e,this['_makeIdsRoot'](_0x31ef8b)),this[_0x3241('0x5b')][_0x3241('0xb5')](_0xa2d88e,this[_0x3241('0x7a')](_0x31ef8b,_0x2243f4));}this[_0x3241('0xc7')]=this[_0x3241('0xf8')],this[_0x3241('0x6a')][_0x3241('0xb5')](_0x3241('0xee'),q(this['_baseRoots'][_0x3241('0xd9')]('$graveyard'))),_0x4edf30&&this[_0x3241('0xb4')]['set']('$graveyard',this[_0x3241('0x7a')](this['_baseRoots']['get'](_0x3241('0xee'))));for(const [_0x5a4e21,_0x590382]of _0xbe4c72){const _0x3e86b9=this['_baseRoots']['get'](_0x590382['rootName']),_0x14e212=this[_0x3241('0x6a')]['get'](_0x590382['rootName']),_0x31c031=new _0x39f223(this[_0x3241('0xc')](_0x590382[_0x3241('0x9b')],_0x3e86b9),this[_0x3241('0xc')](_0x590382[_0x3241('0xe5')],_0x3e86b9)),_0x59f29f=this['_fixRange'](_0x31c031,_0x14e212);_0x3e86b9['markers'][_0x3241('0xb5')](_0x5a4e21,_0x31c031),this[_0x3241('0xf6')][_0x3241('0xb5')](_0x5a4e21,_0x59f29f);}this['_applyOperations'](_0x280006,_0x3a25a6,_0x4edf30);}['_applyOperations'](_0x24e3aa,_0x1b09f3,_0x7860ea){for(const _0x5501c2 of this[_0x3241('0x47')][_0x3241('0xe9')](_0x24e3aa,_0x1b09f3))this[_0x3241('0xfb')](_0x5501c2,_0x7860ea);for(const _0xd41911 of this[_0x3241('0x6a')][_0x3241('0xfe')]())_0xd41911['markers'][_0x3241('0x8b')]();for(const [_0x26e342,_0x3cb7a7]of this[_0x3241('0xf6')]){this[_0x3241('0x6a')][_0x3241('0xd9')](_0x3cb7a7['root'][_0x3241('0x18')])[_0x3241('0xeb')][_0x3241('0xb5')](_0x26e342,_0x3cb7a7['clone']());}const _0x1428ce=new Map(),_0x3a4e74=new Map();for(const [_0x4e1385,_0x3c7d39]of this[_0x3241('0x6a')])_0x1428ce['set'](_0x4e1385,q(_0x3c7d39)),_0x3a4e74['set'](_0x4e1385,this[_0x3241('0x21')][_0x3241('0xd9')](_0x4e1385));this[_0x3241('0x98')](_0x1b09f3,_0x1428ce,this[_0x3241('0xf6')],_0x3a4e74);}[_0x3241('0x38')](_0xe77125){const _0x505952=Array[_0x3241('0x72')](this[_0x3241('0x2f')][_0x3241('0xcf')]());_0x505952[_0x3241('0x67')]((_0xa046d1,_0xbdb79d)=>_0xa046d1-_0xbdb79d),_0x505952[_0x3241('0x39')]();for(const _0x522548 of _0x505952)if(_0x522548<_0xe77125)return _0x522548;return Number[_0x3241('0xa6')];}[_0x3241('0x43')](_0x10377a,_0x4e9c29){const _0x32923e=Array['from'](_0x4e9c29[_0x3241('0xeb')])[_0x3241('0xaa')](([_0x3c4620,_0xe2557])=>[_0x3c4620,this[_0x3241('0x50')](_0xe2557,_0x10377a)]);_0x10377a[_0x3241('0xeb')]=new Map(_0x32923e);}[_0x3241('0xc9')](_0x55ab65){for(const _0x357262 of this['_markers'][_0x3241('0xfe')]()){const _0x4a4780=_0x357262[_0x3241('0x79')](_0x55ab65),_0x1dd377=_0x39f223[_0x3241('0xf4')](_0x4a4780);_0x357262['start']=_0x1dd377[_0x3241('0x9b')],_0x357262[_0x3241('0xe5')]=_0x1dd377[_0x3241('0xe5')];}}[_0x3241('0xfb')](_0x5d0e2c,_0x213ee9){if(_0x3241('0x87')==_0x5d0e2c[_0x3241('0xd3')]||'detachRoot'==_0x5d0e2c[_0x3241('0xd3')])return void this[_0x3241('0x53')](_0x5d0e2c,_0x213ee9);if(_0x3241('0x5')==_0x5d0e2c[_0x3241('0xd3')]){const _0xce2691=_0x5d0e2c['position']['root']['rootName'];this[_0x3241('0x6a')]['has'](_0xce2691)||(this[_0x3241('0x6a')][_0x3241('0xb5')](_0xce2691,G(_0xce2691,!0x0)),this[_0x3241('0x21')][_0x3241('0xb5')](_0xce2691,{}),_0x213ee9&&this[_0x3241('0xb4')][_0x3241('0xb5')](_0xce2691,G(_0xce2691,!0x0)));}else{if('addRootAttribute'==_0x5d0e2c[_0x3241('0xd3')]||_0x3241('0x1b')==_0x5d0e2c[_0x3241('0xd3')]||_0x3241('0x57')==_0x5d0e2c[_0x3241('0xd3')])return void this[_0x3241('0x15')](_0x5d0e2c);}const _0x27ac90=this[_0x3241('0x3')](_0x5d0e2c,this[_0x3241('0x6a')]);if('marker'!==_0x5d0e2c[_0x3241('0xd3')]&&(_0x27ac90[_0x3241('0x5e')](),this['_transformMarkers'](_0x27ac90)),_0x213ee9)switch(_0x27ac90[_0x3241('0xd3')]){case _0x3241('0x5'):this[_0x3241('0x68')](_0x5d0e2c);break;case _0x3241('0x3e'):case _0x3241('0x8e'):case'reinsert':this[_0x3241('0xb7')](_0x5d0e2c);break;case'merge':this[_0x3241('0x7b')](_0x5d0e2c);break;case'split':this[_0x3241('0x10')](_0x5d0e2c);break;case _0x3241('0xec'):this[_0x3241('0x3c')](_0x5d0e2c);}}[_0x3241('0x3')](_0x5b96d0,_0x4e771e){const _0x35c76e=_0x5b96d0[_0x3241('0x60')]();return _0x35c76e[_0x3241('0xa5')]=_0x5b96d0[_0x3241('0xa5')],this[_0x3241('0xcb')](_0x35c76e,_0x4e771e),_0x35c76e;}['_getBaseVids'](_0x49c865){return _0x49c865[_0x3241('0xaa')](_0x35cca8=>{const _0x10096a=this[_0x3241('0x85')](_0x35cca8);return Number(_0x35cca8[_0x3241('0x1')][_0x3241('0x8')](_0x10096a));});}[_0x3241('0xa0')](_0x64fa84,_0x29a1c1){if(_0x64fa84['is']('element','$text'))_0x29a1c1['push']({'item':_0x64fa84,'type':'text'});else{_0x64fa84['is']('element')&&_0x29a1c1[_0x3241('0xf1')]({'item':_0x64fa84,'type':_0x3241('0x51')});for(const _0x4e7950 of _0x64fa84[_0x3241('0x3b')]())this['_generateTape'](_0x4e7950,_0x29a1c1);_0x64fa84['is'](_0x3241('0x86'))&&_0x29a1c1[_0x3241('0xf1')]({'item':_0x64fa84,'type':'elementEnd'});}return _0x29a1c1;}[_0x3241('0xdc')](){const _0x2aea82=new Map(this[_0x3241('0xb2')]),_0x13eaf1=new Map(_0x2aea82),_0x57500e=new Map(),_0x3a5541={'insertions':{},'deletions':{}},_0x5df041={'insertions':{},'deletions':{}},_0x28b4f5=new Map(),_0x27e67a=new Set([...this[_0x3241('0xe0')]['keys'](),...this[_0x3241('0x6a')][_0x3241('0xcf')]()]);_0x27e67a[_0x3241('0x5f')]('$graveyard');for(const _0x4fd411 of _0x27e67a){const _0x429e3f=this[_0x3241('0x6a')][_0x3241('0xd9')](_0x4fd411)||G(_0x4fd411,!0x1),_0x48ed50=this[_0x3241('0xe0')][_0x3241('0xd9')](_0x4fd411)||G(_0x4fd411,!0x1);_0x429e3f[_0x3241('0x6c')]()||_0x48ed50['isAttached']()?(_0x3a5541[_0x3241('0x88')][_0x4fd411]=q(_0x429e3f),_0x3a5541[_0x3241('0xa2')][_0x4fd411]=q(_0x48ed50),this[_0x3241('0x43')](_0x3a5541['deletions'][_0x4fd411],_0x48ed50),this['_copyMarkers'](_0x3a5541[_0x3241('0x88')][_0x4fd411],_0x429e3f),_0x5df041[_0x3241('0x88')][_0x4fd411]=this['_generateTape'](this[_0x3241('0xb4')][_0x3241('0xd9')](_0x4fd411),[]),_0x5df041[_0x3241('0xa2')][_0x4fd411]=this[_0x3241('0xa0')](this['_baseIdsRoots']['get'](_0x4fd411)||G(_0x4fd411,!0x1),[])):_0x27e67a[_0x3241('0x5f')](_0x4fd411);}for(const _0x3d9bc6 of _0x27e67a){const _0x126cb5=_0x5df041[_0x3241('0x88')][_0x3d9bc6];for(const _0x59c3dc of _0x126cb5){const _0x568fdf=this[_0x3241('0x85')](_0x59c3dc),_0x30922e=_0x59c3dc[_0x3241('0x1')][_0x3241('0x8')](_0x568fdf);_0x13eaf1[_0x3241('0x5f')](_0x30922e),_0x30922e>=this[_0x3241('0xc7')]&&_0x57500e[_0x3241('0xb5')](_0x30922e,_0x2aea82['get'](_0x30922e));}}for(const _0x210408 of _0x27e67a){const _0x860de7=_0x5df041[_0x3241('0x88')][_0x210408],_0x51fd42=this[_0x3241('0xac')](_0x5df041['deletions'][_0x210408]);let _0x43167d=0x0;for(const _0x3339d9 of _0x860de7){const _0x2f1495=this[_0x3241('0x85')](_0x3339d9),_0x42ce6c=_0x3339d9[_0x3241('0x1')][_0x3241('0x8')](_0x2f1495);if(!_0x57500e[_0x3241('0xa8')](_0x42ce6c)&&!_0x28b4f5['has'](_0x42ce6c)){if(_0x13eaf1[_0x3241('0xa8')](_0x42ce6c))_0x43167d++;else{if(_0x42ce6c!=_0x51fd42[_0x43167d]){const _0xf50504=_0x2aea82[_0x3241('0xd9')](_0x42ce6c)||_0x2aea82['get'](_0x51fd42[_0x43167d]);for(;_0x42ce6c!=_0x51fd42[_0x43167d];)_0x13eaf1[_0x3241('0xa8')](_0x51fd42[_0x43167d])||(_0x28b4f5[_0x3241('0xb5')](_0x51fd42[_0x43167d],_0xf50504),_0x2aea82[_0x3241('0xb5')](_0x51fd42[_0x43167d],_0xf50504)),_0x43167d++;}_0x43167d++;}}}}for(const _0x271208 of _0x27e67a){const _0xe6d3b8=_0x5df041[_0x3241('0x88')][_0x271208];for(const _0x260480 of _0xe6d3b8){const _0x1a522b=this['_getVidAttributeName'](_0x260480),_0x51d5d9=_0x260480[_0x3241('0x1')][_0x3241('0x8')](_0x1a522b);if(_0x28b4f5[_0x3241('0xa8')](_0x51d5d9)){const _0x268827=_0x28b4f5[_0x3241('0xd9')](_0x51d5d9);_0x13eaf1[_0x3241('0xa8')](_0x51d5d9)||_0x13eaf1[_0x3241('0xb5')](_0x51d5d9,{..._0x268827}),_0x57500e[_0x3241('0xb5')](_0x51d5d9,{..._0x268827});}}}for(const _0x4a3615 of _0x13eaf1[_0x3241('0xcf')]())_0x4a3615>=this[_0x3241('0xc7')]&&_0x13eaf1['delete'](_0x4a3615);const _0x539363=new Map();for(const _0x5c7be7 of _0x27e67a){let _0x232053=_0x5df041[_0x3241('0x88')][_0x5c7be7];for(const _0x2d4512 of _0x232053)if(_0x2d4512[_0x3241('0x1')]['is'](_0x3241('0x86'),_0x3241('0xce'))){const _0x3c5d13=this[_0x3241('0x85')](_0x2d4512),_0x2e147b=_0x2d4512[_0x3241('0x1')]['getAttribute'](_0x3c5d13);if(_0x57500e[_0x3241('0xa8')](_0x2e147b)){const _0xbd5a64=_0x2d4512['item'][_0x3241('0x65')]['parent']['getAttribute'](_0x3241('0xd0')),_0x280216=_0x539363[_0x3241('0xd9')](_0xbd5a64)||new Set();_0x280216[_0x3241('0x25')](_0x57500e[_0x3241('0xd9')](_0x2e147b)[_0x3241('0xd1')]),_0x539363['set'](_0xbd5a64,_0x280216);}}_0x232053=_0x5df041[_0x3241('0xa2')][_0x5c7be7];for(const _0x1b2ea6 of _0x232053)if(_0x1b2ea6[_0x3241('0x1')]['is'](_0x3241('0x86'),_0x3241('0xce'))){const _0x1e00be=this['_getVidAttributeName'](_0x1b2ea6),_0x849040=_0x1b2ea6[_0x3241('0x1')][_0x3241('0x8')](_0x1e00be);if(_0x13eaf1[_0x3241('0xa8')](_0x849040)){const _0x45c807=_0x1b2ea6[_0x3241('0x1')][_0x3241('0x65')]['parent']['getAttribute'](_0x3241('0xd0')),_0x46e88d=_0x539363['get'](_0x45c807)||new Set();_0x46e88d[_0x3241('0x25')](_0x13eaf1['get'](_0x849040)[_0x3241('0xd1')]),_0x539363[_0x3241('0xb5')](_0x45c807,_0x46e88d);}}for(const _0x30c425 of _0x539363[_0x3241('0xcf')]())(_0x57500e[_0x3241('0xa8')](_0x30c425)||_0x13eaf1[_0x3241('0xa8')](_0x30c425))&&_0x539363[_0x3241('0x5f')](_0x30c425);}for(const _0x11b809 of _0x27e67a){const _0x3e6405=_0x5df041[_0x3241('0x88')][_0x11b809];let _0x4bca01=null,_0x3969a3=null;for(const _0x505edb of _0x3e6405){const _0xdbdc59=this[_0x3241('0x85')](_0x505edb),_0x24b7d6=_0x505edb[_0x3241('0x1')]['getAttribute'](_0xdbdc59),_0x26fcd6=_0x539363[_0x3241('0xd9')](_0x24b7d6);_0x26fcd6&&_0x3241('0x51')==_0x505edb[_0x3241('0xd3')]&&(_0x4bca01=Array[_0x3241('0x72')](_0x26fcd6)[0x0],_0x3969a3=_0x505edb[_0x3241('0x1')][_0x3241('0x8')]('vid_end')),_0x4bca01&&(_0x13eaf1[_0x3241('0xb5')](_0x24b7d6,{'userId':_0x4bca01}),_0x57500e[_0x3241('0xb5')](_0x24b7d6,{'userId':_0x4bca01})),_0x24b7d6==_0x3969a3&&(_0x4bca01=null,_0x3969a3=null);}}const _0x1bb14d={},_0x206bbf=new Set();for(const _0x34e803 of _0x27e67a){const _0x4f9d0d=_0x3a5541[_0x3241('0xa2')][_0x34e803],_0x57992f=_0x3a5541[_0x3241('0x88')][_0x34e803];for(const {userId:_0x16c2f5}of this[_0x3241('0x52')]['values']())null!==_0x16c2f5&&_0x206bbf['add'](_0x16c2f5);for(const {userId:_0x33f566}of this[_0x3241('0xdb')][_0x3241('0xfe')]())null!==_0x33f566&&_0x206bbf['add'](_0x33f566);this[_0x3241('0xc5')](_0x57992f,_0x5df041[_0x3241('0x88')][_0x34e803],_0x57500e,'insertion',_0x206bbf),this[_0x3241('0xc5')](_0x4f9d0d,_0x5df041['deletions'][_0x34e803],_0x13eaf1,_0x3241('0x101'),_0x206bbf),_0x1bb14d[_0x34e803]={'insertions':this['_prepareViewToSave'](_0x57992f),'deletions':this[_0x3241('0xca')](_0x4f9d0d),'attachChange':this[_0x3241('0xdb')]['get'](_0x34e803)||null,'attributesBefore':_0x3bfbe7(this['_baseRootsAttributes'][_0x3241('0xd9')](_0x34e803))||{},'attributesAfter':_0x3bfbe7(this[_0x3241('0x21')][_0x3241('0xd9')](_0x34e803))};}return{'diffData':_0x1bb14d,'authorsIds':Array[_0x3241('0x72')](_0x206bbf)};}[_0x3241('0x9d')](_0x5d02a0){for(const [,_0x3b3341]of _0x5d02a0['markers']){const _0xf44ca=_0x3b3341[_0x3241('0x9b')][_0x3241('0x20')]()['filter'](_0x3f40b0=>_0x3241('0xce')==_0x3f40b0[_0x3241('0x4')]);for(const _0x2b9805 of _0xf44ca)0x1==_0x2b9805['childCount']&&_0x2b9805[_0x3241('0x4e')](0x0)['is'](_0x3241('0x86'),_0x3241('0xc8'))&&_0x2b9805[_0x3241('0x4e')](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x3241('0xca')](_0x32a422){this[_0x3241('0x9d')](_0x32a422);const _0x4a8d74=this[_0x3241('0xc1')][_0x3241('0x1c')]['toView'](_0x32a422,{}),_0x17bd7e=Array[_0x3241('0x72')](_0x4a8d74[_0x3241('0x3b')]())[_0x3241('0xaa')](_0x15ac55=>this['_getViewJson'](_0x15ac55));return JSON[_0x3241('0x6f')](_0x17bd7e);}[_0x3241('0x19')](_0x414e74){if(_0x414e74['is']('$text'))return _0x414e74[_0x3241('0x1c')];{const _0x50417f=_0x414e74;return{'type':Object['keys'](B)[_0x3241('0x0')](_0x255490=>_0x414e74 instanceof B[_0x255490]),'name':_0x50417f[_0x3241('0x4')],'attributes':Array['from'](_0x50417f['getAttributes']()),'children':Array[_0x3241('0x72')](_0x50417f[_0x3241('0x3b')]())[_0x3241('0xaa')](_0x16f7e3=>this[_0x3241('0x19')](_0x16f7e3))};}}[_0x3241('0xc5')](_0x4ecda5,_0x1a5f3b,_0x3f2b6f,_0x45decd,_0x40eb4b){let _0x477d45=null,_0x599897=null,_0x3aadd2=0x0;const _0x12ec3e=this[_0x3241('0xc1')]['model'];for(let _0x33e5da=0x0;_0x33e5da<_0x1a5f3b[_0x3241('0xaf')];_0x33e5da++){const _0x51cf6b=this[_0x3241('0x85')](_0x1a5f3b[_0x33e5da]),_0x272d6b=_0x1a5f3b[_0x33e5da]['item']['getAttribute'](_0x51cf6b),_0x4d5c05=_0x3f2b6f[_0x3241('0xd9')](_0x272d6b),_0x37b123=_0x33e5da==_0x1a5f3b[_0x3241('0xaf')]-0x1;(!_0x477d45&&_0x4d5c05&&(_0x477d45=_0x4d5c05,_0x599897=_0x1a5f3b[_0x33e5da]),_0x477d45&&(!_0x4d5c05||_0x4d5c05[_0x3241('0xd1')]!=_0x477d45[_0x3241('0xd1')]))&&(_0x2141b9(_0x4d5c05,L(_0x599897,_0x4ecda5,_0x12ec3e),L(_0x1a5f3b[_0x33e5da],_0x4ecda5,_0x12ec3e)),_0x477d45=_0x4d5c05||null,_0x599897=_0x4d5c05?_0x1a5f3b[_0x33e5da]:null),_0x477d45&&_0x37b123&&_0x2141b9(_0x4d5c05,L(_0x599897,_0x4ecda5,_0x12ec3e),W(_0x1a5f3b[_0x33e5da],_0x4ecda5,_0x12ec3e));}function _0x2141b9(_0x5e1c89,_0x3e9889,_0x40c89d){const _0x4e70ab=_0x477d45['userId'],_0x2f860d=_0x3241('0x7c')+_0x45decd+':'+_0x4e70ab+':'+_0x3aadd2++,_0x13e0be=_0x12ec3e[_0x3241('0x45')](_0x3e9889,_0x40c89d);_0x4ecda5['markers'][_0x3241('0xb5')](_0x2f860d,_0x13e0be),null!==_0x4e70ab&&_0x40eb4b[_0x3241('0x25')](_0x4e70ab);}}['_getVidAttributeName'](_0x1a96f8){switch(_0x1a96f8[_0x3241('0xd3')]){case _0x3241('0x51'):return _0x3241('0xd0');case'elementEnd':return _0x3241('0x2a');default:return _0x3241('0x49');}}[_0x3241('0xcb')](_0x6fcf95,_0x2ba0fa){_0x6fcf95[_0x3241('0x4f')]=null;for(const _0x4fe942 in _0x6fcf95){const _0x56785e=_0x6fcf95[_0x4fe942];if(_0x56785e instanceof _0x27058a){const _0x955917=_0x2ba0fa['get'](_0x56785e[_0x3241('0xbb')][_0x3241('0x18')]);_0x6fcf95[_0x4fe942]=this[_0x3241('0xc')](_0x56785e,_0x955917);}if(_0x56785e instanceof _0x39f223){const _0x432510=_0x2ba0fa['get'](_0x56785e[_0x3241('0xbb')]['rootName']);_0x6fcf95[_0x4fe942]=this[_0x3241('0x50')](_0x56785e,_0x432510);}'root'===_0x4fe942&&(_0x6fcf95[_0x3241('0xbb')]=_0x2ba0fa[_0x3241('0xd9')](_0x6fcf95[_0x3241('0xbb')]['rootName']));}}['_fixRange'](_0x574a0f,_0x5848d0){return this[_0x3241('0xc1')][_0x3241('0x7e')][_0x3241('0x45')](this[_0x3241('0xc')](_0x574a0f[_0x3241('0x9b')],_0x5848d0),this['_fixPosition'](_0x574a0f[_0x3241('0xe5')],_0x5848d0));}['_fixPosition'](_0x899b7d,_0x1f565b){return this[_0x3241('0xc1')][_0x3241('0x7e')][_0x3241('0x8f')](_0x1f565b,_0x899b7d[_0x3241('0x1a')],_0x899b7d[_0x3241('0x84')]);}[_0x3241('0x68')](_0x5f4ed7){const _0x5a623a=this[_0x3241('0xb4')][_0x3241('0xd9')](_0x5f4ed7[_0x3241('0xda')]['root'][_0x3241('0x18')]),_0x513a56=this[_0x3241('0xc')](_0x5f4ed7[_0x3241('0xda')],_0x5a623a),_0x2ebc87=null===_0x5f4ed7[_0x3241('0xa5')]?null:_0x5f4ed7[_0x3241('0xa5')]||this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')](_0x3241('0x4d'))['me']['id'],_0xacd052=_0x513a56['parent'],_0x4f45ee=this[_0x3241('0xf8')],_0x5a965b=[];for(const _0x26b1ce of _0x5f4ed7['nodes'])if(_0x26b1ce['is'](_0x3241('0x86')))_0x5a965b[_0x3241('0xf1')](this[_0x3241('0x7a')](_0x26b1ce));else for(let _0x4c1a27=0x0;_0x4c1a27<_0x26b1ce[_0x3241('0x63')];_0x4c1a27++)_0x5a965b[_0x3241('0xf1')](new _0x20f26a('$text',{'vid':this[_0x3241('0xf8')]++}));const _0x250250=this[_0x3241('0xf8')];for(let _0x47bfee=_0x4f45ee;_0x47bfee<_0x250250;_0x47bfee++)this['_touched'][_0x3241('0xb5')](_0x47bfee,{'userId':_0x2ebc87});_0xacd052[_0x3241('0xd4')](_0x513a56['offset'],_0x5a965b);}[_0x3241('0xb7')](_0x90df8){(_0x90df8=this[_0x3241('0x3')](_0x90df8,this['_idsRoots']))[_0x3241('0x5e')]();const _0x19634c=null===_0x90df8[_0x3241('0xa5')]?null:_0x90df8[_0x3241('0xa5')]||this[_0x3241('0xc1')]['plugins'][_0x3241('0xd9')](_0x3241('0x4d'))['me']['id'],_0x1de9f0=_0x90df8[_0x3241('0x3f')](),_0x505c08=_0x1de9f0[_0x3241('0x65')],_0x5b9857=_0x1de9f0['offset'];!function _0x50e025(_0x175945,_0x4e45e1,_0x103b7b,_0x5b519a){for(let _0x6501f2=_0x103b7b;_0x6501f2<_0x5b519a;_0x6501f2++){const _0x56743e=_0x4e45e1[_0x3241('0x4e')](_0x6501f2);_0x56743e['is'](_0x3241('0x86'),_0x3241('0x9c'))?_0x175945['set'](_0x56743e[_0x3241('0x8')](_0x3241('0x49')),{'userId':_0x19634c}):(_0x175945[_0x3241('0xb5')](_0x56743e[_0x3241('0x8')](_0x3241('0xd0')),{'userId':_0x19634c}),_0x50e025(_0x175945,_0x56743e,0x0,_0x56743e[_0x3241('0x5a')]),_0x175945[_0x3241('0xb5')](_0x56743e['getAttribute'](_0x3241('0x2a')),{'userId':_0x19634c}));}}(this['_touched'],_0x505c08,_0x5b9857,_0x5b9857+_0x90df8[_0x3241('0xe6')]);}[_0x3241('0x7b')](_0x1dbbb5){const _0x137eae=null===(_0x1dbbb5=this[_0x3241('0x3')](_0x1dbbb5,this[_0x3241('0xb4')]))['_authorId']?null:_0x1dbbb5[_0x3241('0xa5')]||this['editor']['plugins'][_0x3241('0xd9')]('Users')['me']['id'],_0x260166=_0x1dbbb5['targetPosition'][_0x3241('0x65')],_0x2747bb=_0x1dbbb5[_0x3241('0x37')][_0x3241('0x65')],_0x2c44ec=_0x260166['getAttribute'](_0x3241('0x2a')),_0x571d7d=_0x2747bb[_0x3241('0x8')]('vid_start');_0x260166[_0x3241('0x5c')]('vid_end',_0x2747bb['getAttribute'](_0x3241('0x2a'))),_0x2747bb[_0x3241('0x5c')](_0x3241('0x2a'),_0x2c44ec),this['_touched'][_0x3241('0xb5')](_0x571d7d,{'userId':_0x137eae}),this[_0x3241('0xb2')][_0x3241('0xb5')](_0x2c44ec,{'userId':_0x137eae}),_0x1dbbb5['_execute']();}[_0x3241('0x10')](_0x332086){const _0x33f77e=null===(_0x332086=this['_cloneOperation'](_0x332086,this['_idsRoots']))[_0x3241('0xa5')]?null:_0x332086[_0x3241('0xa5')]||this[_0x3241('0xc1')][_0x3241('0x9f')][_0x3241('0xd9')]('Users')['me']['id'],_0x597317=_0x332086[_0x3241('0x92')],_0x31c8f1=_0x332086[_0x3241('0xa4')]['parent'];_0x332086[_0x3241('0x5e')]();const _0x489de6=_0x31c8f1['getAttribute'](_0x3241('0x2a')),_0x2e2115=_0x332086[_0x3241('0x6e')][_0x3241('0x2b')];if(_0x597317){const _0x1ef3af=_0x2e2115[_0x3241('0x8')](_0x3241('0x2a')),_0x341026=_0x31c8f1['getAttribute'](_0x3241('0x2a'));_0x31c8f1[_0x3241('0x5c')](_0x3241('0x2a'),_0x1ef3af),_0x2e2115[_0x3241('0x5c')](_0x3241('0x2a'),_0x341026),this['_touched'][_0x3241('0xb5')](_0x31c8f1['getAttribute'](_0x3241('0x2a')),{'userId':_0x33f77e}),this[_0x3241('0xb2')][_0x3241('0xb5')](_0x2e2115['getAttribute']('vid_start'),{'userId':_0x33f77e});}else{const _0x3f04de=this['_revisionId']++,_0x512cf4=this[_0x3241('0xf8')]++;_0x31c8f1[_0x3241('0x5c')](_0x3241('0x2a'),_0x3f04de),_0x2e2115[_0x3241('0x5c')](_0x3241('0xd0'),_0x512cf4),_0x2e2115[_0x3241('0x5c')](_0x3241('0x2a'),_0x489de6),this[_0x3241('0xb2')][_0x3241('0xb5')](_0x3f04de,{'userId':_0x33f77e}),this[_0x3241('0xb2')][_0x3241('0xb5')](_0x512cf4,{'userId':_0x33f77e});}}[_0x3241('0x3c')](_0x334f13){if(!_0x334f13[_0x3241('0xba')])return;const _0x36b111=(_0x334f13=this[_0x3241('0x3')](_0x334f13,this['_diffRoots']))[_0x3241('0xb6')]?_0x334f13[_0x3241('0xb6')][_0x3241('0xbb')]:null,_0x5eaab4=_0x334f13[_0x3241('0xd7')]?_0x334f13[_0x3241('0xd7')][_0x3241('0xbb')]:null;_0x36b111&&this['_markers']['delete'](_0x334f13[_0x3241('0x4')]),_0x5eaab4&&this[_0x3241('0xf6')][_0x3241('0xb5')](_0x334f13[_0x3241('0x4')],_0x334f13[_0x3241('0xd7')][_0x3241('0x60')]());const _0x2dd372=null===_0x334f13[_0x3241('0xa5')]?null:_0x334f13[_0x3241('0xa5')]||this['editor'][_0x3241('0x9f')][_0x3241('0xd9')](_0x3241('0x4d'))['me']['id'],_0x2ab76f=_0x334f13[_0x3241('0x4')];if(!this[_0x3241('0x52')]['has'](_0x2ab76f))return void this['_touchedMarkers'][_0x3241('0xb5')](_0x2ab76f,{'range':_0x334f13[_0x3241('0xb6')],'userId':_0x2dd372});const _0x355606=this[_0x3241('0x52')][_0x3241('0xd9')](_0x2ab76f),_0x3d1a2f=_0x355606['range'],_0x47b980=_0x334f13[_0x3241('0xd7')];null==_0x3d1a2f&&null==_0x47b980||_0x3d1a2f&&_0x47b980&&_0x3d1a2f[_0x3241('0x34')](_0x47b980)?this[_0x3241('0x52')][_0x3241('0x5f')](_0x334f13['name']):_0x355606[_0x3241('0xd1')]=_0x2dd372;}[_0x3241('0x53')](_0x34803c,_0x4800ba){this['_diffRoots'][_0x3241('0xa8')](_0x34803c[_0x3241('0x18')])?this['_diffRoots'][_0x3241('0xd9')](_0x34803c[_0x3241('0x18')])[_0x3241('0x14')]=_0x34803c['isAdd']:(this[_0x3241('0x6a')][_0x3241('0xb5')](_0x34803c[_0x3241('0x18')],G(_0x34803c[_0x3241('0x18')],!0x0)),this[_0x3241('0x21')]['set'](_0x34803c['rootName'],{}),_0x4800ba&&this[_0x3241('0xb4')][_0x3241('0xb5')](_0x34803c[_0x3241('0x18')],G(_0x34803c[_0x3241('0x18')],!0x0)));const _0x5f6267=null===_0x34803c[_0x3241('0xa5')]?null:_0x34803c[_0x3241('0xa5')]||this['editor']['plugins']['get'](_0x3241('0x4d'))['me']['id'],_0x3d5154=this[_0x3241('0xdb')][_0x3241('0xd9')](_0x34803c['rootName']);_0x3d5154&&_0x3d5154['userId']===_0x5f6267?this[_0x3241('0xdb')][_0x3241('0x5f')](_0x34803c[_0x3241('0x18')]):this[_0x3241('0xdb')][_0x3241('0xb5')](_0x34803c['rootName'],{'userId':_0x5f6267,'isAttached':_0x34803c[_0x3241('0xd2')]});}[_0x3241('0x15')](_0x45ce7e){const _0xdc1c29=this['_diffRootsAttributes'][_0x3241('0xd9')](_0x45ce7e[_0x3241('0xbb')][_0x3241('0x18')]);null===_0x45ce7e['newValue']?delete _0xdc1c29[_0x45ce7e[_0x3241('0xe8')]]:_0xdc1c29[_0x45ce7e[_0x3241('0xe8')]]=_0x45ce7e[_0x3241('0x42')];}}function q(_0x3a0c9d){const _0x75b9aa=G(_0x3a0c9d[_0x3241('0x18')],_0x3a0c9d['isAttached']());for(const _0x1dd75c of _0x3a0c9d[_0x3241('0x3b')]()){const _0x4b7f1c=_0x1dd75c[_0x3241('0xb3')](!0x0);_0x75b9aa[_0x3241('0xdf')](_0x4b7f1c);}return _0x75b9aa;}function G(_0x1c7ed3,_0x5289c9=!0x0){const _0x400555=new _0x33b03c();return _0x400555[_0x3241('0x18')]=_0x1c7ed3,_0x400555['_isAttached']=_0x5289c9,_0x400555[_0x3241('0x6c')]=()=>_0x400555[_0x3241('0x14')],_0x400555;}function L(_0x1a4de0,_0x14c477,_0x40f849){const _0x37f0da='elementEnd'==_0x1a4de0[_0x3241('0xd3')]?_0x40f849[_0x3241('0x97')](_0x1a4de0['item'],'end'):_0x40f849['createPositionBefore'](_0x1a4de0[_0x3241('0x1')]);return _0x40f849[_0x3241('0x8f')](_0x14c477,_0x37f0da['path'],_0x37f0da[_0x3241('0x84')]);}function W(_0x185556,_0x415476,_0x17af3b){const _0x49f3a6='elementStart'==_0x185556[_0x3241('0xd3')]?_0x17af3b[_0x3241('0x97')](_0x185556[_0x3241('0x1')],0x0):_0x17af3b['createPositionAfter'](_0x185556[_0x3241('0x1')]);return _0x17af3b[_0x3241('0x8f')](_0x415476,_0x49f3a6['path'],_0x49f3a6[_0x3241('0x84')]);}
|