@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240201.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 _0x22a4=['insertions','graveyardPosition','RevisionsRepository','model','_createCurrentRevision','_handleMergeOperation','nodes','PendingActions','filter','changeRootAttribute','getChildren','addRevisionData','getCurrentRevisionId','getRevisions','delete','userId','_bufferedUpdates','name','_operations','offset','$text','_markChanges','addRootAttribute','documentFragment','_baseRoots','revision:','getRevisionRootsAttributes','_fixPosition','_authorId','startsWith','RevisionTracker','_getViewJson','then','toView','getAttributes','_execute','_transformMarkers','values','isAttached','buildRevisionData','locale','updateRevisions','_cloneOperation','parse','removeRootAttribute','Users','afterInit','_startingVersion','keepParagraph','history','attributes','diffData','_prepareViewToSave','version','baseVersion','getChild','_handleMoveOperation','getMovedRangeStart','some','set','text','element','newRange','_initialRevisionId','_generateTape','slice','_isAttached','insert','sort','detachRoot','_lastFrom','item','_markers','path','loadState','toData','insertion','_appendChild','_diffRoots','type','setSource','splitPosition','merge','markers','marker','getTransformedByOperation','_setAttribute','source','_getFromVersion','reInit','has','vid_start','initialData','_fixRange','createRevision','_savedMetaData','creator','editor','_pendingAction','requires','forEach','creatorId','plugins','_removePendingAction','reverse','_loadState','editing','_touchedMarkers','getOperation','stickiness','PENDING_ACTION_REVISION_HISTORY','sourcePosition','get','useFillerType','howMany','_touched','getData','attachChange','createPositionBefore','isEqual','_handleSplitOperation','stringify','reinsert','deletion','_handleOperation','getRevision','NEGATIVE_INFINITY','pluginName','data-revision-','createPositionFromPath','view','find','_source','_startingRevisionId','keys','_setConversion','_diffRootsAttributes','split','document','_addPendingAction','finally','revisionHistory.resumeUnsavedRevision','authorsIds','getRootNames','_idsRoots','_makeIdsRoot','_baseIdsRoots','root','update','rootsAttributes','getLatestVersion','string','_insertChild','for','_getState','fromVersion','toVersion','roots','size','getRevisionDocumentData','setRevisionData','resolve','from','end','_calculateMetaData','_makeModelFromViewString','_getPreviousFrom','$graveyard','_handleInsertOperation','_touchedRoots','sendBufferedUpdates','vid_end','fromEntries','_handleRootAttributeOperation','config','editor-initial-data-replaced-with-revision-data','RealTimeCollaborationClient','max','childCount','processor','revision','_clone','_update','_lastTo','_removeRevisionMarkers','clear','currentRevision','key','vid','parent','affectsData','push','_bufferUpdate','collaboration.channelId','range','getRoot','tableCell','map','_applyOperations','elementEnd','getWalker','_createInitialRevision','revision-start','authors','dataToMarker','bind','_createFromRanges','paragraph','init','_removeMetaData','clone','shift','createdAt','_reset','getNodeByPath','attributesBefore','getAttribute','getAncestors','isAdd','_isPendingUpdate','adapter','children','conversion','data','_continueCurrentRevision','addRoot','_revisionId','_baseRootsAttributes','define','getIndex','_findInsertionIndex','position','elementStart','previousPosition','rootName','getRange','deletions','dataDowncast','_makeRevision','_processRootBeforeSave','oldRange','createPositionAt','offsetSize','_loadRevisionData','createRangeIn','add','repository','_copyMarkers','ready','_loadedStateData','targetPosition','getUser','_fixOperation','_revisionDataBuilder','length','attributesAfter','createRange','isReady','insertionPosition','default','newValue','_saveMetaData','Initial\x20revision','start','marked','_getVidAttributeName'];(function(_0x18abaa,_0x22a4a2){const _0x463ba7=function(_0x5a6610){while(--_0x5a6610){_0x18abaa['push'](_0x18abaa['shift']());}};_0x463ba7(++_0x22a4a2);}(_0x22a4,0xcb));const _0x463b=function(_0x18abaa,_0x22a4a2){_0x18abaa=_0x18abaa-0x0;let _0x463ba7=_0x22a4[_0x18abaa];return _0x463ba7;};import{Users as _0x452440}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0xd1f1e0,PendingActions as _0x22ca2e}from'ckeditor5/src/core.js';import{logWarning as _0x5967f4,uid as _0x334698}from'ckeditor5/src/utils.js';import{Position as _0x2799b2,Range as _0x51b5dc,Element as _0x332638,DocumentFragment as _0x25a69a,ViewText as _0x18d0c7,ViewElement as _0x132b11,ViewContainerElement as _0x17ed79,ViewAttributeElement as _0x5f1517,ViewEmptyElement as _0x53f113,ViewRawElement as _0x483fce,ViewUIElement as _0x20b413,ViewDocumentFragment as _0x255f00}from'ckeditor5/src/engine.js';import _0x8b26fa from'./revisionsrepository.js';import{getTranslation as _0x45b0a9}from'./utils/common-translations.js';import{cloneDeep as _0x375ea6,isEqual as _0x36efd1}from'lodash-es';const B={'c':_0x17ed79,'a':_0x5f1517,'e':_0x53f113,'r':_0x483fce,'u':_0x20b413};export default class l extends _0xd1f1e0{static get[_0x463b('0xbe')](){return _0x463b('0x5d');}static get[_0x463b('0xa2')](){return[_0x452440,_0x8b26fa,_0x22ca2e];}constructor(_0x4140eb){super(_0x4140eb),this['adapter']=null,this['currentRevision']=null,this[_0x463b('0x32')]=new H(this[_0x463b('0xa0')]),this[_0x463b('0x7e')]=this['editor'][_0x463b('0xed')]['get'](_0x463b('0x100'))||'initial',this[_0x463b('0x4f')]=new Map(),this[_0x463b('0x2e')]=null;const _0x31beb0=_0x334698();this[_0x463b('0xc3')]={'history':this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc9')][_0x463b('0x70')],'getLatestVersion':()=>Promise[_0x463b('0xe0')](this['editor'][_0x463b('0x42')][_0x463b('0xc9')][_0x463b('0x74')]),'getCurrentRevisionId':()=>_0x31beb0},this[_0x463b('0x7a')]('isReady',!0x1),this['set']('isEnabled',!0x0),this[_0x463b('0x7a')](_0x463b('0x10'),!0x1),this['editor'][_0x463b('0xed')][_0x463b('0x19')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x463b('0xa0')][_0x463b('0x13')]['for']('upcast')[_0x463b('0x1')]({'view':_0x463b('0xf3')});}[_0x463b('0x5')](){this['repository']=this[_0x463b('0xa0')]['plugins'][_0x463b('0xaf')](_0x463b('0x41')),this[_0x463b('0xc6')](),this[_0x463b('0xa0')][_0x463b('0x14')]['on'](_0x463b('0x2d'),()=>{const _0x1b4382=this[_0x463b('0x2b')][_0x463b('0xbc')](0x0),_0x531b63=_0x1b4382&&null===_0x1b4382[_0x463b('0x9f')]?_0x1b4382:null;if(this[_0x463b('0x15')]=!!_0x531b63&&this[_0x463b('0xa0')][_0x463b('0xed')][_0x463b('0xaf')](_0x463b('0xcc')),this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0x99')](_0x463b('0xef'))){const _0x23a198=this['_source']['getCurrentRevisionId'](),_0x22b614=this['repository']['getRevision'](_0x23a198);if(_0x22b614)this[_0x463b('0x6e')]=_0x22b614[_0x463b('0xda')],this[_0x463b('0x15')]=!0x1;else{const _0x416d14=this['_source'][_0x463b('0x70')][_0x463b('0x51')][_0x463b('0xc2')](_0x2b47a8=>!_0x2b47a8['_isInit']),_0x4465fb=_0x416d14?_0x416d14[_0x463b('0x75')]:this[_0x463b('0xc3')][_0x463b('0x70')][_0x463b('0x74')];_0x1b4382?(_0x1b4382['toVersion']<_0x4465fb&&_0x1b4382[_0x463b('0xf5')]({'toVersion':_0x4465fb}),this['_continueCurrentRevision']?(this['_source'][_0x463b('0x4b')]=()=>_0x531b63['id'],this['_startingVersion']=_0x531b63[_0x463b('0xda')]):(this[_0x463b('0x6e')]=_0x1b4382[_0x463b('0xdb')],this[_0x463b('0x15')]=!0x1)):(this['_startingVersion']=_0x4465fb,this['_continueCurrentRevision']=!0x1);}}else _0x531b63&&(this['editor'][_0x463b('0x42')]['document']['history'][_0x463b('0x74')]=Math[_0x463b('0xf0')](_0x531b63['toVersion'],this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc9')]['history']['version']),_0x531b63[_0x463b('0xda')]===_0x531b63[_0x463b('0xdb')]?(0x0!==_0x531b63[_0x463b('0xda')]&&(this['_source']['getCurrentRevisionId']=()=>_0x531b63['id']),this['_continueCurrentRevision']=!0x1):this[_0x463b('0x15')]&&(this[_0x463b('0xc3')]['getCurrentRevisionId']=()=>_0x531b63['id'],this['_startingVersion']=_0x531b63[_0x463b('0xda')])),this['_continueCurrentRevision']||(this[_0x463b('0x6e')]=this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc9')]['version']);this['_revisionDataBuilder'][_0x463b('0x5')](this[_0x463b('0xc3')][_0x463b('0x70')]),this[_0x463b('0x108')](this['_startingVersion']),this['_createCurrentRevision'](this[_0x463b('0x6e')]),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x463b('0x2')](_0x463b('0x36'))['to'](this,_0x463b('0x10'),_0x1124a1=>!_0x1124a1);}async[_0x463b('0x6d')](){if(this[_0x463b('0x2b')][_0x463b('0x33')]>0x0){const _0x5c620f=this[_0x463b('0x2b')][_0x463b('0xbc')](0x0),_0x1461b4=await this['getRevisionDocumentData'](_0x5c620f),_0x3d4f09=await this[_0x463b('0x59')](_0x5c620f);this['_replaceEditorDataWithRevisionData'](_0x1461b4,_0x3d4f09);}}[_0x463b('0x8f')](_0x4345c0){this[_0x463b('0xc3')]=_0x4345c0;}async[_0x463b('0xd3')](){const _0x270a4a=await this[_0x463b('0xc3')][_0x463b('0xd5')]();if(_0x270a4a>this[_0x463b('0xf9')]['toVersion']){await this[_0x463b('0xa8')]();const _0x1bd37b=this['buildRevisionData']({'revision':this[_0x463b('0xf9')],'to':_0x270a4a});_0x1bd37b[_0x463b('0x0')]=_0x1bd37b[_0x463b('0xcd')]['map'](_0x56e854=>this[_0x463b('0xa0')][_0x463b('0xa5')]['get']('Users')[_0x463b('0x30')](_0x56e854)),this[_0x463b('0xf9')][_0x463b('0xf5')](_0x1bd37b);}}async[_0x463b('0xa8')](){this['_continueCurrentRevision']&&!this[_0x463b('0x2e')]&&(await this['_loadRevisionData'](this[_0x463b('0xf9')]),this[_0x463b('0x32')]['loadState'](this[_0x463b('0xf9')]),this[_0x463b('0x2e')]={'fromVersion':this['currentRevision'][_0x463b('0xda')],'authors':this[_0x463b('0xf9')]['authors']['slice']()});}async['saveRevision'](_0x1ce23f={},_0x4461a5=null){const _0x43372e=[];await this[_0x463b('0xa8')](),this[_0x463b('0x15')]=!0x1,_0x4461a5>this[_0x463b('0xf9')]['toVersion']&&(_0x4461a5=null),null===_0x4461a5&&(_0x4461a5=await this['_source']['getLatestVersion']());const _0x6f365b=this[_0x463b('0x97')](_0x4461a5),_0x29a5d7=this[_0x463b('0x66')]({'from':_0x6f365b,'to':_0x4461a5});if(this[_0x463b('0xf9')][_0x463b('0xdb')]<_0x4461a5){const _0x538daa=this[_0x463b('0x66')]({'revision':this[_0x463b('0xf9')],'from':_0x4461a5,'to':_0x4461a5});_0x538daa[_0x463b('0x0')]=[],_0x538daa[_0x463b('0xcd')]=[],_0x538daa['id']=this[_0x463b('0xf9')]['id'],this[_0x463b('0xf9')][_0x463b('0xf5')](_0x538daa,!0x0),delete _0x538daa[_0x463b('0x0')],_0x43372e[_0x463b('0xfe')](_0x538daa);}_0x1ce23f[_0x463b('0xa4')]=this[_0x463b('0xa0')][_0x463b('0xa5')]['get'](_0x463b('0x6c'))['me']['id'],_0x1ce23f['name']=_0x1ce23f['name']||null,_0x1ce23f['id']=_0x1ce23f['id']||_0x334698(),_0x1ce23f={..._0x1ce23f,..._0x29a5d7};const _0xd0da8d=this['addRevisionData'](_0x1ce23f);_0x43372e[_0x463b('0xfe')](_0x1ce23f);const _0x5a55e9=this[_0x463b('0x2b')][_0x463b('0x1a')](_0xd0da8d);if(0x0!==_0x5a55e9){const _0x35c2bd=this[_0x463b('0x2b')][_0x463b('0xbc')](_0x5a55e9-0x1);if(_0x35c2bd['fromVersion']!==_0x4461a5){const _0x56152b=this['_revisionDataBuilder'][_0x463b('0xb3')](_0x4461a5,_0x35c2bd['toVersion']),_0x29b367={'id':_0x35c2bd['id'],'diffData':_0x56152b[_0x463b('0x72')],'authorsIds':_0x56152b[_0x463b('0xcd')],'authors':_0x56152b[_0x463b('0xcd')][_0x463b('0x104')](_0x45cfae=>this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x6c'))['getUser'](_0x45cfae)),'fromVersion':_0x4461a5};_0x35c2bd===this[_0x463b('0xf9')]&&(_0x29b367['createdAt']=new Date(_0x1ce23f[_0x463b('0x9')]['getTime']()+0xa)),_0x35c2bd[_0x463b('0xf5')](_0x29b367,!0x0),delete _0x29b367[_0x463b('0x0')],_0x43372e[_0x463b('0xfe')](_0x29b367);}}if(this[_0x463b('0x11')]){for(const _0x225775 of _0x43372e)this[_0x463b('0xff')](_0x225775['id'],_0x225775,!0x0);this[_0x463b('0xe9')]();}return _0xd0da8d;}[_0x463b('0x4a')](_0x2731ed){const _0x3ed963=this[_0x463b('0x2b')][_0x463b('0x9d')](_0x2731ed);return this[_0x463b('0x11')]&&_0x3ed963['on'](_0x463b('0xf5'),(_0x5d028c,_0x517181,_0x1285ed)=>{_0x1285ed||(this[_0x463b('0xff')](_0x517181['id'],_0x517181,!0x0),this[_0x463b('0xe9')]());}),this[_0x463b('0x2b')]['addRevision'](_0x3ed963,this[_0x463b('0x1b')](_0x3ed963)),_0x3ed963;}async[_0x463b('0xde')](_0x1fe0de){await this[_0x463b('0x28')](_0x1fe0de);const _0x25abe9={};for(const _0x5ae4d2 in _0x1fe0de[_0x463b('0x72')]){if(_0x1fe0de[_0x463b('0x72')][_0x5ae4d2][_0x463b('0xb4')]&&!_0x1fe0de['diffData'][_0x5ae4d2][_0x463b('0xb4')][_0x463b('0x65')])continue;const _0x29f6ba=this[_0x463b('0xf7')](JSON[_0x463b('0x6a')](_0x1fe0de['diffData'][_0x5ae4d2]['insertions'])),_0x58a18a=this[_0x463b('0xa0')][_0x463b('0xa9')][_0x463b('0xc1')]['document'],_0x5b6d07=new _0x255f00(_0x58a18a,_0x29f6ba['map'](_0xb48fae=>J(_0xb48fae,this[_0x463b('0xa0')])));this[_0x463b('0xa0')]['data'][_0x463b('0xf2')]['useFillerType'](_0x463b('0x3d')),_0x25abe9[_0x5ae4d2]=this[_0x463b('0xa0')]['data'][_0x463b('0xf2')][_0x463b('0x8a')](_0x5b6d07),this['editor']['data'][_0x463b('0xf2')][_0x463b('0xb0')](_0x463b('0x38'));}return _0x25abe9;}async[_0x463b('0x59')](_0x468c3c){await this[_0x463b('0x28')](_0x468c3c);const _0x1e1e22={};for(const _0x5ab212 in _0x468c3c[_0x463b('0x72')])_0x468c3c[_0x463b('0x72')][_0x5ab212][_0x463b('0xb4')]&&!_0x468c3c[_0x463b('0x72')][_0x5ab212][_0x463b('0xb4')][_0x463b('0x65')]||(_0x1e1e22[_0x5ab212]=_0x468c3c[_0x463b('0x72')][_0x5ab212][_0x463b('0x34')]||{});return _0x1e1e22;}[_0x463b('0xe9')](){if(0x0===this[_0x463b('0x4f')]['size'])return;if(this[_0x463b('0x10')])return;let _0x1851c9=Array[_0x463b('0xe1')](this[_0x463b('0x4f')][_0x463b('0x64')]());this[_0x463b('0x4f')][_0x463b('0xf8')]();for(let _0x4ef8be=0x0;_0x4ef8be<_0x1851c9[_0x463b('0x33')];_0x4ef8be++){const _0x4b2a99=_0x1851c9[_0x4ef8be];let _0x3c678e=!0x1;for(const _0x1c5f06 of Object['keys'](_0x4b2a99))void 0x0===_0x4b2a99[_0x1c5f06]?delete _0x4b2a99[_0x1c5f06]:'id'!==_0x1c5f06&&(_0x3c678e=!0x0);_0x3c678e||(_0x1851c9[_0x4ef8be]=null);}if(_0x1851c9=_0x1851c9[_0x463b('0x47')](_0xfe9fda=>null!==_0xfe9fda),!_0x1851c9['length'])return;for(let _0x312847=0x0;_0x312847<_0x1851c9[_0x463b('0x33')];_0x312847++){const _0x2f32fb=_0x1851c9[_0x312847];void 0x0!==_0x2f32fb[_0x463b('0xda')]&&void 0x0===_0x2f32fb[_0x463b('0xdb')]&&(_0x2f32fb['toVersion']=this[_0x463b('0x2b')]['getRevision'](_0x2f32fb['id'])[_0x463b('0xdb')]),void 0x0!==_0x2f32fb['toVersion']&&void 0x0===_0x2f32fb['fromVersion']&&(_0x2f32fb[_0x463b('0xda')]=this['repository'][_0x463b('0xbc')](_0x2f32fb['id'])['fromVersion']);}const _0x4229af=this[_0x463b('0xa0')][_0x463b('0xed')][_0x463b('0xaf')](_0x463b('0x100'));this[_0x463b('0x10')]=!0x0,this[_0x463b('0xca')](),this[_0x463b('0x11')][_0x463b('0x68')](_0x1851c9,_0x4229af)[_0x463b('0xcb')](()=>{this['_isPendingUpdate']=!0x1;})[_0x463b('0x5f')](_0x4a4a7e=>{if(_0x4a4a7e)for(const _0xedd5fb of _0x4a4a7e)this[_0x463b('0xdf')]({'id':_0xedd5fb['id'],'createdAt':_0xedd5fb[_0x463b('0x9')]});this[_0x463b('0xa6')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x150fbe,_0x2e6c1e){let _0x5d9159=this[_0x463b('0xa0')]['config'][_0x463b('0xaf')](_0x463b('0x9b')),_0xd8f7be=this[_0x463b('0xa0')]['config'][_0x463b('0xaf')]('rootsAttributes');if(void 0x0===_0x5d9159){_0x5d9159={};for(const _0x43b00e of this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc9')]['getRootNames']())_0x5d9159[_0x43b00e]='';}if(_0x463b('0xd6')==typeof _0x5d9159&&(_0x5d9159={'main':_0x5d9159}),void 0x0===_0xd8f7be){_0xd8f7be={};for(const _0x555a62 of this['editor'][_0x463b('0x42')][_0x463b('0xc9')][_0x463b('0xce')]())_0xd8f7be[_0x555a62]={};}let _0x1042b4=!0x1;const _0xdaa4da=Object['keys'](_0x5d9159),_0x5dd19e=Object['keys'](_0x150fbe);for(const _0x5dcf88 of _0xdaa4da){if(_0x5d9159[_0x5dcf88]!==_0x150fbe[_0x5dcf88]&&''!==_0x5d9159[_0x5dcf88]['trim']()){_0x1042b4=!0x0;break;}if(!_0x36efd1(_0xd8f7be[_0x5dcf88],_0x2e6c1e[_0x5dcf88])&&Object[_0x463b('0xc5')](_0xd8f7be[_0x5dcf88])[_0x463b('0x33')]>0x0){_0x1042b4=!0x0;break;}}_0x1042b4||(_0x1042b4=_0x5dd19e[_0x463b('0x79')](_0x1f6107=>!this[_0x463b('0xa0')]['model'][_0x463b('0xc9')][_0x463b('0x102')](_0x1f6107))),_0x1042b4&&_0x5967f4(_0x463b('0xee'),{'editorData':_0x5d9159,'editorRootsAttributes':_0xd8f7be,'revisionData':_0x150fbe,'revisionRootsAttributes':_0x2e6c1e}),this[_0x463b('0xa0')][_0x463b('0xed')][_0x463b('0x7a')]('initialData',_0x150fbe),this[_0x463b('0xa0')][_0x463b('0xed')][_0x463b('0x7a')](_0x463b('0xd4'),_0x2e6c1e);}[_0x463b('0xca')](){if(!this[_0x463b('0xa1')]){const _0x56e04d=this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x46'));this[_0x463b('0xa1')]=_0x56e04d[_0x463b('0x2a')](_0x45b0a9(this[_0x463b('0xa0')][_0x463b('0x67')],_0x463b('0xad')));}}[_0x463b('0xa6')](){this['_pendingAction']&&(this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x46'))['remove'](this['_pendingAction']),this[_0x463b('0xa1')]=null);}[_0x463b('0x1b')](_0x9fa8f3){const _0x237979=this[_0x463b('0x2b')][_0x463b('0x4c')]();_0x237979[_0x463b('0xa7')]();let _0x58be7a=0x0;for(;_0x58be7a<_0x237979[_0x463b('0x33')];){const _0x32585f=_0x237979[_0x58be7a];if(_0x32585f===this['currentRevision']){_0x58be7a++;continue;}if(_0x32585f['id']===this[_0x463b('0x7e')])break;const _0x3963fa=_0x9fa8f3[_0x463b('0xdb')]-_0x32585f[_0x463b('0xdb')]||_0x9fa8f3[_0x463b('0xda')]-_0x32585f[_0x463b('0xda')];if(_0x3963fa>0x0)break;if(_0x3963fa<0x0)_0x58be7a++;else{if(!_0x9fa8f3[_0x463b('0x9f')]&&_0x32585f['creator'])break;if(_0x32585f['creator']||!_0x9fa8f3[_0x463b('0x9f')]){if(_0x9fa8f3[_0x463b('0x9')]>_0x32585f[_0x463b('0x9')])break;_0x58be7a++;}else _0x58be7a++;}}return _0x58be7a;}[_0x463b('0xdf')](_0x38b4ec){const _0x157217=this['repository'][_0x463b('0xbc')](_0x38b4ec['id']);if(_0x38b4ec[_0x463b('0x9')]&&(_0x38b4ec[_0x463b('0x9')]=new Date(_0x38b4ec['createdAt'])),_0x38b4ec[_0x463b('0xcd')]){const _0x22d31a=this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x6c'));_0x38b4ec[_0x463b('0x0')]=_0x38b4ec[_0x463b('0xcd')][_0x463b('0x104')](_0x23e6bf=>_0x22d31a[_0x463b('0x30')](_0x23e6bf));}_0x157217[_0x463b('0xf5')](_0x38b4ec,!0x0);}[_0x463b('0x66')]({revision:_0x86d8c2=null,from:_0x2576b5=null,to:_0x87d2ed=null}){_0x2576b5=null!==_0x2576b5?_0x2576b5:_0x86d8c2[_0x463b('0xda')],_0x87d2ed=null!==_0x87d2ed?_0x87d2ed:_0x86d8c2[_0x463b('0xdb')];const _0x26c4a4=this[_0x463b('0x32')]['getData'](_0x2576b5,_0x87d2ed),_0x52ddc4={'diffData':_0x26c4a4['diffData'],'authorsIds':_0x26c4a4[_0x463b('0xcd')],'fromVersion':_0x2576b5,'toVersion':_0x87d2ed};if(!_0x86d8c2||_0x87d2ed!==_0x86d8c2[_0x463b('0xdb')]){const _0x3b6037=_0x87d2ed-0x1,_0x48ec6f=this[_0x463b('0xc3')][_0x463b('0x70')][_0x463b('0xab')](_0x3b6037);_0x52ddc4['createdAt']=_0x48ec6f&&_0x48ec6f[_0x463b('0x9')]||new Date();}if(this[_0x463b('0x2e')]&&_0x2576b5===this[_0x463b('0x2e')][_0x463b('0xda')])for(const _0x3e9af3 of this[_0x463b('0x2e')]['authors'])_0x52ddc4[_0x463b('0xcd')]['includes'](_0x3e9af3['id'])||_0x52ddc4[_0x463b('0xcd')][_0x463b('0xfe')](_0x3e9af3['id']);return _0x52ddc4;}[_0x463b('0x28')](_0x12bdcc){if(!_0x12bdcc||_0x12bdcc[_0x463b('0x72')])return Promise[_0x463b('0xe0')]();{const _0x3d22e6=this[_0x463b('0xa0')][_0x463b('0xed')][_0x463b('0xaf')](_0x463b('0x100'));return this[_0x463b('0x11')]['getRevision']({'channelId':_0x3d22e6,'revisionId':_0x12bdcc['id']})[_0x463b('0x5f')](_0x11637a=>{_0x12bdcc[_0x463b('0x72')]=_0x11637a[_0x463b('0x72')];});}}[_0x463b('0xff')](_0x357c69,_0x3222ce,_0xfdf4d0){if(this[_0x463b('0x4f')][_0x463b('0x99')](_0x357c69)){const _0x28bca0=this['_bufferedUpdates'][_0x463b('0xaf')](_0x357c69);_0x3222ce=_0xfdf4d0?{..._0x28bca0,..._0x3222ce}:{..._0x3222ce,..._0x28bca0};}this['_bufferedUpdates'][_0x463b('0x7a')](_0x357c69,_0x3222ce);}[_0x463b('0x97')](_0x3a1743){const _0x414207=this[_0x463b('0x2b')][_0x463b('0x4c')]();_0x414207[_0x463b('0xa7')](),_0x414207[_0x463b('0x8')]();const _0x4db779=_0x414207[_0x463b('0xc2')](_0x11fa43=>_0x11fa43['toVersion']<=_0x3a1743)[_0x463b('0xdb')];return _0x4db779<this[_0x463b('0x6e')]?this[_0x463b('0x6e')]:_0x4db779;}[_0x463b('0x108')](_0x25d4c9){const _0xda47d8=this[_0x463b('0x2b')][_0x463b('0xbc')](this[_0x463b('0x2b')][_0x463b('0x33')]-0x1);if(_0xda47d8)this['_initialRevisionId']=_0xda47d8['id'];else{const _0x3a70f7=!this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc9')][_0x463b('0xdc')][_0x463b('0xc2')](_0x23b0c7=>this[_0x463b('0xa0')][_0x463b('0x42')]['hasContent'](_0x23b0c7)),_0x4bfc6b=this['editor']['plugins'][_0x463b('0xaf')](_0x463b('0x6c'))['me']['id'],_0x4652a2=_0x45b0a9(this[_0x463b('0xa0')]['locale'],_0x3a70f7?'Empty\x20document':_0x463b('0x3b'));this[_0x463b('0x23')]({'from':_0x25d4c9,'to':_0x25d4c9,'id':this[_0x463b('0x7e')],'name':_0x4652a2,'creatorId':_0x4bfc6b});}}[_0x463b('0x43')](_0x55e55b){const _0xc3dec3=this['_source'][_0x463b('0x4b')]();this[_0x463b('0xf9')]=this[_0x463b('0x2b')][_0x463b('0xbc')](_0xc3dec3),this['currentRevision']||(this[_0x463b('0xf9')]=this[_0x463b('0x23')]({'from':_0x55e55b,'to':_0x55e55b,'id':_0xc3dec3,'name':'','creatorId':null}));}[_0x463b('0x23')]({name:_0x2fe338,from:_0x554b8c,to:_0x48932f,creatorId:_0x4430f7,id:_0x5006bd}){const _0x236e5d=this['buildRevisionData']({'from':_0x554b8c,'to':_0x48932f});_0x236e5d[_0x463b('0x50')]=_0x2fe338,_0x236e5d[_0x463b('0xa4')]=_0x4430f7,_0x236e5d['id']=_0x5006bd;const _0x15abb7=this[_0x463b('0x4a')](_0x236e5d);return this['adapter']&&this[_0x463b('0xff')](_0x236e5d['id'],_0x236e5d,!0x0),_0x15abb7;}[_0x463b('0xc6')](){this[_0x463b('0xa0')][_0x463b('0x13')][_0x463b('0xd8')](_0x463b('0x22'))['markerToData']({'model':_0x463b('0xf3')});}[_0x463b('0xf7')](_0x220e7f){return(_0x220e7f=_0x220e7f[_0x463b('0x47')](_0x58dbc8=>!_0x58dbc8[_0x463b('0x50')]||_0x463b('0x109')!==_0x58dbc8[_0x463b('0x50')]&&'revision-end'!==_0x58dbc8['name']))[_0x463b('0xa3')](_0x8683e=>{_0x463b('0xd6')!=typeof _0x8683e&&(_0x8683e['children']=this[_0x463b('0xf7')](_0x8683e[_0x463b('0x12')]),_0x8683e[_0x463b('0x71')]=_0x8683e[_0x463b('0x71')][_0x463b('0x47')](_0x225d04=>!_0x225d04[0x0][_0x463b('0x5c')](_0x463b('0xbf'))));}),_0x220e7f;}}function J(_0x39bf9a,_0xbc901b){const _0x22dfca=_0xbc901b[_0x463b('0xa9')][_0x463b('0xc1')][_0x463b('0xc9')];if(_0x463b('0xd6')==typeof _0x39bf9a)return new _0x18d0c7(_0x22dfca,_0x39bf9a);{const _0x5e56ba=_0x39bf9a['children']['map'](_0x583ff8=>J(_0x583ff8,_0xbc901b));return new(B[_0x39bf9a[(_0x463b('0x8e'))]]||_0x132b11)(_0x22dfca,_0x39bf9a['name'],_0x39bf9a[_0x463b('0x71')],_0x5e56ba);}}class H{constructor(_0x1e0e7d){this[_0x463b('0xa0')]=_0x1e0e7d,this[_0x463b('0x9e')]=new Map(),this[_0x463b('0x85')]=-0x1,this['_lastTo']=-0x1,this[_0x463b('0x87')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x463b('0x57')]=new Map(),this[_0x463b('0x18')]=new Map(),this[_0x463b('0xcf')]=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this[_0x463b('0xaa')]=new Map(),this[_0x463b('0xe8')]=new Map(),this[_0x463b('0x17')]=0x1;}[_0x463b('0x5')](_0xad9681){this[_0x463b('0x96')]=_0xad9681;const _0x4ac749=new Map(),_0x10d719=new Map(),_0xc8581f=this['editor']['model'][_0x463b('0xc9')][_0x463b('0xdc')][_0x463b('0x104')](_0x1fc191=>_0x1fc191['rootName']);for(const _0x1fb2aa of _0xc8581f){const _0x58c786=this['editor']['model'][_0x463b('0xc9')]['getRoot'](_0x1fb2aa),_0x56a2b7=q(_0x58c786);_0x4ac749['set'](_0x1fb2aa,_0x56a2b7),_0x10d719[_0x463b('0x7a')](_0x1fb2aa,Object[_0x463b('0xeb')](_0x58c786[_0x463b('0x61')]()));}const _0x222ce5=Array[_0x463b('0xe1')](this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0x92')])[_0x463b('0x104')](_0x204469=>[_0x204469['name'],_0x204469[_0x463b('0x20')]()]),_0x528b56=this[_0x463b('0x96')][_0x463b('0x74')];this['_saveMetaData'](_0x528b56,_0x4ac749,_0x222ce5,_0x10d719),this[_0x463b('0xc4')]=this['_revisionId'];const _0x43802e=new Map(),_0x341809=new Map();for(const _0x432003 of _0xc8581f){const _0x5d85d4=G(_0x432003);_0x43802e['set'](_0x432003,_0x5d85d4),_0x341809[_0x463b('0x7a')](_0x432003,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x43802e,[],_0x341809);}[_0x463b('0xb3')](_0x47b23f,_0x9e3abb){if(this[_0x463b('0x85')]===_0x47b23f&&this['_lastTo']<=_0x9e3abb)this['_savedMetaData'][_0x463b('0xdd')]>0x1&&this[_0x463b('0x6')](this['_lastTo']),this['_applyOperations'](this[_0x463b('0xf6')],_0x9e3abb,!0x0);else{if(!this[_0x463b('0x9e')][_0x463b('0x99')](_0x47b23f)){const _0x8e851d=this['_getPreviousFrom'](_0x47b23f);this[_0x463b('0xe3')](_0x8e851d,_0x47b23f,!0x1);}this[_0x463b('0xe3')](_0x47b23f,_0x9e3abb,!0x0);}return this[_0x463b('0x85')]=_0x47b23f,this['_lastTo']=_0x9e3abb,this[_0x463b('0xd9')]();}[_0x463b('0x89')](_0x7c2bf){this[_0x463b('0xa')](),this['_lastFrom']=_0x7c2bf['fromVersion'],this['_lastTo']=_0x7c2bf[_0x463b('0xdb')];for(const _0x86c8c7 in _0x7c2bf['diffData']){const _0x167343=_0x7c2bf['diffData'][_0x86c8c7][_0x463b('0xb4')],_0x530d88=_0x375ea6(_0x7c2bf[_0x463b('0x72')][_0x86c8c7][_0x463b('0xc')])||{},_0x32b7e1=this['_makeModelFromViewString'](_0x7c2bf['diffData'][_0x86c8c7][_0x463b('0x21')]);_0x32b7e1[_0x463b('0x1f')]=_0x86c8c7,_0x32b7e1['_isAttached']=!_0x167343||!_0x167343[_0x463b('0x65')],_0x32b7e1[_0x463b('0x65')]=()=>_0x32b7e1['_isAttached'],this['_baseRoots'][_0x463b('0x7a')](_0x86c8c7,_0x32b7e1),this['_baseRootsAttributes'][_0x463b('0x7a')](_0x86c8c7,_0x530d88),_0x167343&&this['_touchedRoots'][_0x463b('0x7a')](_0x86c8c7,_0x167343);const _0x367a8e=this[_0x463b('0xd0')](_0x32b7e1);this['_baseIdsRoots'][_0x463b('0x7a')](_0x86c8c7,_0x367a8e);for(const [_0x3d239d,_0x2e52de]of _0x32b7e1[_0x463b('0x92')]){if(!_0x3d239d[_0x463b('0x5c')](_0x463b('0x58')))continue;const _0x146eab=_0x3d239d['split'](':')[0x2];for(const _0x20021e of _0x2e52de[_0x463b('0x107')]({'singleCharacters':!0x0})){const _0x22a7c2=this[_0x463b('0x3e')](_0x20021e),_0x1b95e9=_0x463b('0x106')==_0x20021e['type']?_0x20021e[_0x463b('0x1e')][_0x463b('0x88')][_0x463b('0x80')](0x0,-0x1):_0x20021e[_0x463b('0x1e')][_0x463b('0x88')],_0x5084fa=_0x367a8e[_0x463b('0xb')](_0x1b95e9)[_0x463b('0xd')](_0x22a7c2);this[_0x463b('0xb2')]['set'](_0x5084fa,{'userId':_0x146eab});}}}this[_0x463b('0xc4')]=this[_0x463b('0x17')];const _0x4522a8=[...Array(this[_0x463b('0x17')])[_0x463b('0xc5')]()][_0x463b('0x80')](0x1)[_0x463b('0x47')](_0x4dd37c=>!this[_0x463b('0xb2')][_0x463b('0x99')](_0x4dd37c));let _0x81d8c8=0x0;const _0x2a0d53=new Map();for(const _0x8e5d5a in _0x7c2bf[_0x463b('0x72')]){const _0x515c4a=_0x7c2bf[_0x463b('0x72')][_0x8e5d5a][_0x463b('0xb4')],_0x37d1c1=_0x375ea6(_0x7c2bf['diffData'][_0x8e5d5a][_0x463b('0x34')])||{},_0xb0f5ea=this[_0x463b('0xe4')](_0x7c2bf[_0x463b('0x72')][_0x8e5d5a][_0x463b('0x3f')]);_0xb0f5ea[_0x463b('0x1f')]=_0x8e5d5a,_0xb0f5ea[_0x463b('0x81')]=!_0x515c4a||_0x515c4a[_0x463b('0x65')],_0xb0f5ea[_0x463b('0x65')]=()=>_0xb0f5ea[_0x463b('0x81')],this['_diffRoots'][_0x463b('0x7a')](_0x8e5d5a,_0xb0f5ea),this[_0x463b('0xc7')][_0x463b('0x7a')](_0x8e5d5a,_0x37d1c1);const _0x3e6af9=this[_0x463b('0xd0')](_0xb0f5ea,Number[_0x463b('0xbd')]);this['_idsRoots'][_0x463b('0x7a')](_0x8e5d5a,_0x3e6af9),_0x2a0d53[_0x463b('0x7a')](_0x8e5d5a,_0xb0f5ea[_0x463b('0x65')]()?_0x37d1c1:{});for(const [_0x1e86f1,_0x7e07d0]of _0xb0f5ea[_0x463b('0x92')]){if(!_0x1e86f1['startsWith'](_0x463b('0x58')))continue;const _0x30bac4=_0x1e86f1['split'](':')[0x2];for(const _0x33d3f8 of _0x7e07d0[_0x463b('0x107')]({'singleCharacters':!0x0})){const _0x2e732e=this['_getVidAttributeName'](_0x33d3f8),_0x3d57e6=this[_0x463b('0x17')]++,_0x4691d9=_0x463b('0x106')==_0x33d3f8[_0x463b('0x8e')]?_0x33d3f8[_0x463b('0x1e')][_0x463b('0x88')][_0x463b('0x80')](0x0,-0x1):_0x33d3f8[_0x463b('0x1e')][_0x463b('0x88')];_0x3e6af9[_0x463b('0xb')](_0x4691d9)['_setAttribute'](_0x2e732e,_0x3d57e6),this[_0x463b('0xb2')][_0x463b('0x7a')](_0x3d57e6,{'userId':_0x30bac4});}}for(const _0x2bb0ec of this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0x29')](_0xb0f5ea)[_0x463b('0x107')]({'singleCharacters':!0x0})){const _0x197001=this[_0x463b('0x3e')](_0x2bb0ec),_0x4f03ff=_0x463b('0x106')==_0x2bb0ec['type']?_0x2bb0ec['previousPosition'][_0x463b('0x88')][_0x463b('0x80')](0x0,-0x1):_0x2bb0ec[_0x463b('0x1e')][_0x463b('0x88')],_0x5622a4=_0x3e6af9[_0x463b('0xb')](_0x4f03ff);_0x5622a4[_0x463b('0xd')](_0x197001)>0x0||_0x5622a4['_setAttribute'](_0x197001,_0x4522a8[_0x81d8c8++]);}for(const [_0x25acca,_0x3047f1]of _0xb0f5ea[_0x463b('0x92')])_0x25acca[_0x463b('0x5c')](_0x463b('0x58'))||this[_0x463b('0x87')][_0x463b('0x7a')](_0x25acca,_0x3047f1);}const _0xb45dca=G('$graveyard');this[_0x463b('0x57')][_0x463b('0x7a')](_0x463b('0xe6'),_0xb45dca),this['_baseIdsRoots']['set']('$graveyard',this[_0x463b('0xd0')](_0xb45dca,0x1));const _0x4c28ec=G(_0x463b('0xe6'));this[_0x463b('0x8d')][_0x463b('0x7a')](_0x463b('0xe6'),_0x4c28ec),this[_0x463b('0xcf')][_0x463b('0x7a')](_0x463b('0xe6'),this[_0x463b('0xd0')](_0x4c28ec,0x1));const _0x5ee676=Array[_0x463b('0xe1')](this['_diffRoots'])['map'](([_0x2d9b5f,_0x58195f])=>[_0x2d9b5f,q(_0x58195f)]);this['_saveMetaData'](this[_0x463b('0xf6')],_0x5ee676,this[_0x463b('0x87')],_0x2a0d53);}[_0x463b('0xe4')](_0x539a24){const _0x2debfe=JSON['parse'](_0x539a24),_0x25e838=this[_0x463b('0xa0')][_0x463b('0xa9')][_0x463b('0xc1')]['document'],_0x3d0178=new _0x255f00(_0x25e838,_0x2debfe[_0x463b('0x104')](_0x2c6d0e=>J(_0x2c6d0e,this['editor'])));return this[_0x463b('0xa0')][_0x463b('0x14')]['toModel'](_0x3d0178);}[_0x463b('0x3a')](_0x1ee95e,_0xcefb33,_0x19aad3,_0x2f13da){const _0x33f3ab=new Map(_0xcefb33),_0x2ac899=new Map(_0x375ea6(_0x2f13da)),_0x4a0776=new Map();for(const [_0x8a31ee,_0x3f72da]of _0x19aad3)_0x4a0776[_0x463b('0x7a')](_0x8a31ee,{'start':_0x3f72da[_0x463b('0x3c')][_0x463b('0x7')](),'end':_0x3f72da['end'][_0x463b('0x7')](),'rootName':_0x3f72da[_0x463b('0xd2')]['rootName']});this[_0x463b('0x9e')][_0x463b('0x7a')](_0x1ee95e,{'roots':_0x33f3ab,'markers':_0x4a0776,'rootsAttributes':_0x2ac899});}[_0x463b('0x6')](_0x4664e3){this[_0x463b('0x9e')]['delete'](_0x4664e3);}[_0x463b('0x98')](){this[_0x463b('0xa')](),this[_0x463b('0x85')]=-0x1,this[_0x463b('0xf6')]=-0x1,this[_0x463b('0x9e')][_0x463b('0xf8')](),this['init'](this[_0x463b('0x96')]);}['_reset'](){this[_0x463b('0xb2')][_0x463b('0xf8')](),this[_0x463b('0xaa')][_0x463b('0xf8')](),this[_0x463b('0xe8')][_0x463b('0xf8')](),this['_diffRoots'][_0x463b('0xf8')](),this[_0x463b('0xc7')]['clear'](),this[_0x463b('0x57')][_0x463b('0xf8')](),this['_baseRootsAttributes']['clear'](),this[_0x463b('0xcf')]['clear'](),this[_0x463b('0xd1')][_0x463b('0xf8')](),this[_0x463b('0x87')][_0x463b('0xf8')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x463b('0x17')];}[_0x463b('0xd0')](_0x31f2c2,_0x2926ed=null){let _0x59ed75=null;_0x31f2c2['is'](_0x463b('0x56'))||(_0x59ed75=new _0x332638(_0x31f2c2[_0x463b('0x50')],{'vid_start':null===_0x2926ed?this['_revisionId']++:_0x2926ed++}));const _0x528448=[];for(const _0x5d800d of _0x31f2c2[_0x463b('0x49')]())if(_0x5d800d['is'](_0x463b('0x7c'))){_0x528448[_0x463b('0xfe')](this[_0x463b('0xd0')](_0x5d800d,_0x2926ed));const _0xc80c2d=_0x528448[_0x528448[_0x463b('0x33')]-0x1];null!==_0x2926ed&&(_0x2926ed=_0xc80c2d['is'](_0x463b('0x7c'),_0x463b('0x53'))?_0xc80c2d['getAttribute']('vid')+0x1:_0xc80c2d[_0x463b('0xd')]('vid_end')+0x1);}else for(let _0x51c2dd=0x0;_0x51c2dd<_0x5d800d[_0x463b('0x27')];_0x51c2dd++)_0x528448[_0x463b('0xfe')](new _0x332638(_0x463b('0x53'),{'vid':null===_0x2926ed?this[_0x463b('0x17')]++:_0x2926ed++}));if(_0x31f2c2['is'](_0x463b('0x56'))){const _0x136a39=G(_0x31f2c2['rootName']);return _0x136a39[_0x463b('0xd7')](0x0,_0x528448),_0x136a39;}return _0x59ed75[_0x463b('0x95')](_0x463b('0xea'),null===_0x2926ed?this[_0x463b('0x17')]++:_0x2926ed++),_0x59ed75['_insertChild'](0x0,_0x528448),_0x59ed75;}[_0x463b('0xe3')](_0x1abd3c,_0xe2a3df,_0x249141){this[_0x463b('0xa')]();const {roots:_0x232a1e,markers:_0x420241,rootsAttributes:_0x39a062}=this['_savedMetaData']['get'](_0x1abd3c);this[_0x463b('0x57')]=new Map(_0x232a1e),this[_0x463b('0x18')]=new Map(_0x375ea6(_0x39a062));for(const [_0xfed6d0,_0x39e22d]of this['_baseRoots'])if(_0x463b('0xe6')!==_0xfed6d0&&(this[_0x463b('0x8d')]['set'](_0xfed6d0,q(_0x39e22d)),this[_0x463b('0xc7')]=new Map(_0x375ea6(_0x39a062)),_0x249141)){const _0x5c3691=this[_0x463b('0x17')];this[_0x463b('0xcf')][_0x463b('0x7a')](_0xfed6d0,this[_0x463b('0xd0')](_0x39e22d)),this[_0x463b('0xd1')][_0x463b('0x7a')](_0xfed6d0,this[_0x463b('0xd0')](_0x39e22d,_0x5c3691));}this[_0x463b('0xc4')]=this[_0x463b('0x17')],this[_0x463b('0x8d')][_0x463b('0x7a')](_0x463b('0xe6'),q(this[_0x463b('0x57')][_0x463b('0xaf')](_0x463b('0xe6')))),_0x249141&&this[_0x463b('0xcf')][_0x463b('0x7a')]('$graveyard',this[_0x463b('0xd0')](this['_baseRoots'][_0x463b('0xaf')](_0x463b('0xe6'))));for(const [_0x1eec51,_0x7ae35c]of _0x420241){const _0x346452=this['_baseRoots'][_0x463b('0xaf')](_0x7ae35c[_0x463b('0x1f')]),_0x5ac919=this[_0x463b('0x8d')]['get'](_0x7ae35c['rootName']),_0x26744b=new _0x51b5dc(this['_fixPosition'](_0x7ae35c[_0x463b('0x3c')],_0x346452),this[_0x463b('0x5a')](_0x7ae35c[_0x463b('0xe2')],_0x346452)),_0x4236c4=this[_0x463b('0x9c')](_0x26744b,_0x5ac919);_0x346452['markers'][_0x463b('0x7a')](_0x1eec51,_0x26744b),this[_0x463b('0x87')][_0x463b('0x7a')](_0x1eec51,_0x4236c4);}this[_0x463b('0x105')](_0x1abd3c,_0xe2a3df,_0x249141);}[_0x463b('0x105')](_0x266ed9,_0x332eee,_0x2fad16){for(const _0x260114 of this['source']['getOperations'](_0x266ed9,_0x332eee))this['_handleOperation'](_0x260114,_0x2fad16);for(const _0x4f468c of this[_0x463b('0x8d')][_0x463b('0x64')]())_0x4f468c[_0x463b('0x92')][_0x463b('0xf8')]();for(const [_0x1c3dcd,_0x4bdcc4]of this[_0x463b('0x87')]){this[_0x463b('0x8d')][_0x463b('0xaf')](_0x4bdcc4[_0x463b('0xd2')][_0x463b('0x1f')])[_0x463b('0x92')][_0x463b('0x7a')](_0x1c3dcd,_0x4bdcc4[_0x463b('0x7')]());}const _0x28b77d=new Map(),_0x58abac=new Map();for(const [_0x1b81f8,_0x2c470d]of this[_0x463b('0x8d')])_0x28b77d[_0x463b('0x7a')](_0x1b81f8,q(_0x2c470d)),_0x58abac['set'](_0x1b81f8,this[_0x463b('0xc7')][_0x463b('0xaf')](_0x1b81f8));this[_0x463b('0x3a')](_0x332eee,_0x28b77d,this[_0x463b('0x87')],_0x58abac);}[_0x463b('0xe5')](_0xd2c3fe){const _0x153dd4=Array['from'](this['_savedMetaData'][_0x463b('0xc5')]());_0x153dd4[_0x463b('0x83')]((_0x18b63e,_0x36f150)=>_0x18b63e-_0x36f150),_0x153dd4[_0x463b('0xa7')]();for(const _0x464d96 of _0x153dd4)if(_0x464d96<_0xd2c3fe)return _0x464d96;return Number['NEGATIVE_INFINITY'];}[_0x463b('0x2c')](_0x4a5f9a,_0xf58378){const _0x2b5d3c=Array['from'](_0xf58378[_0x463b('0x92')])[_0x463b('0x104')](([_0x323e56,_0x38e29e])=>[_0x323e56,this[_0x463b('0x9c')](_0x38e29e,_0x4a5f9a)]);_0x4a5f9a[_0x463b('0x92')]=new Map(_0x2b5d3c);}[_0x463b('0x63')](_0x44d059){for(const _0x425cdc of this[_0x463b('0x87')]['values']()){const _0x8ad50d=_0x425cdc[_0x463b('0x94')](_0x44d059),_0x27882f=_0x51b5dc[_0x463b('0x3')](_0x8ad50d);_0x425cdc[_0x463b('0x3c')]=_0x27882f['start'],_0x425cdc[_0x463b('0xe2')]=_0x27882f[_0x463b('0xe2')];}}[_0x463b('0xbb')](_0x344be7,_0x1749a9){if(_0x463b('0x16')==_0x344be7['type']||_0x463b('0x84')==_0x344be7[_0x463b('0x8e')])return void this['_handleRootOperation'](_0x344be7,_0x1749a9);if('insert'==_0x344be7[_0x463b('0x8e')]){const _0x208b2c=_0x344be7[_0x463b('0x1c')][_0x463b('0xd2')][_0x463b('0x1f')];this[_0x463b('0x8d')][_0x463b('0x99')](_0x208b2c)||(this[_0x463b('0x8d')][_0x463b('0x7a')](_0x208b2c,G(_0x208b2c,!0x0)),this[_0x463b('0xc7')]['set'](_0x208b2c,{}),_0x1749a9&&this[_0x463b('0xcf')][_0x463b('0x7a')](_0x208b2c,G(_0x208b2c,!0x0)));}else{if(_0x463b('0x55')==_0x344be7[_0x463b('0x8e')]||_0x463b('0x6b')==_0x344be7['type']||_0x463b('0x48')==_0x344be7[_0x463b('0x8e')])return void this[_0x463b('0xec')](_0x344be7);}const _0x338e1d=this[_0x463b('0x69')](_0x344be7,this[_0x463b('0x8d')]);if(_0x463b('0x93')!==_0x344be7[_0x463b('0x8e')]&&(_0x338e1d[_0x463b('0x62')](),this['_transformMarkers'](_0x338e1d)),_0x1749a9)switch(_0x338e1d[_0x463b('0x8e')]){case _0x463b('0x82'):this[_0x463b('0xe7')](_0x344be7);break;case'move':case'remove':case _0x463b('0xb9'):this['_handleMoveOperation'](_0x344be7);break;case _0x463b('0x91'):this[_0x463b('0x44')](_0x344be7);break;case _0x463b('0xc8'):this[_0x463b('0xb7')](_0x344be7);break;case _0x463b('0x93'):this['_handleMarkerOperation'](_0x344be7);}}[_0x463b('0x69')](_0x37bb1d,_0x40f4d4){const _0x28a83e=_0x37bb1d[_0x463b('0x7')]();return _0x28a83e[_0x463b('0x5b')]=_0x37bb1d[_0x463b('0x5b')],this[_0x463b('0x31')](_0x28a83e,_0x40f4d4),_0x28a83e;}['_getBaseVids'](_0x18e75e){return _0x18e75e[_0x463b('0x104')](_0x2f253c=>{const _0x5aebfe=this['_getVidAttributeName'](_0x2f253c);return Number(_0x2f253c['item'][_0x463b('0xd')](_0x5aebfe));});}[_0x463b('0x7f')](_0x1e825d,_0x2b6aed){if(_0x1e825d['is']('element','$text'))_0x2b6aed[_0x463b('0xfe')]({'item':_0x1e825d,'type':_0x463b('0x7b')});else{_0x1e825d['is'](_0x463b('0x7c'))&&_0x2b6aed[_0x463b('0xfe')]({'item':_0x1e825d,'type':_0x463b('0x1d')});for(const _0x12c7d8 of _0x1e825d[_0x463b('0x49')]())this[_0x463b('0x7f')](_0x12c7d8,_0x2b6aed);_0x1e825d['is'](_0x463b('0x7c'))&&_0x2b6aed[_0x463b('0xfe')]({'item':_0x1e825d,'type':_0x463b('0x106')});}return _0x2b6aed;}[_0x463b('0xd9')](){const _0x554c67=new Map(this[_0x463b('0xb2')]),_0x2d09c2=new Map(_0x554c67),_0x534c68=new Map(),_0x2a37e1={'insertions':{},'deletions':{}},_0x228fd8={'insertions':{},'deletions':{}},_0x4e35f0=new Map(),_0x1a094f=new Set([...this['_baseRoots'][_0x463b('0xc5')](),...this['_diffRoots'][_0x463b('0xc5')]()]);_0x1a094f[_0x463b('0x4d')](_0x463b('0xe6'));for(const _0x56d022 of _0x1a094f){const _0x3140f6=this['_diffRoots'][_0x463b('0xaf')](_0x56d022)||G(_0x56d022,!0x1),_0x2d65a5=this[_0x463b('0x57')][_0x463b('0xaf')](_0x56d022)||G(_0x56d022,!0x1);_0x3140f6['isAttached']()||_0x2d65a5[_0x463b('0x65')]()?(_0x2a37e1[_0x463b('0x3f')][_0x56d022]=q(_0x3140f6),_0x2a37e1[_0x463b('0x21')][_0x56d022]=q(_0x2d65a5),this[_0x463b('0x2c')](_0x2a37e1[_0x463b('0x21')][_0x56d022],_0x2d65a5),this[_0x463b('0x2c')](_0x2a37e1[_0x463b('0x3f')][_0x56d022],_0x3140f6),_0x228fd8[_0x463b('0x3f')][_0x56d022]=this[_0x463b('0x7f')](this[_0x463b('0xcf')]['get'](_0x56d022),[]),_0x228fd8['deletions'][_0x56d022]=this['_generateTape'](this[_0x463b('0xd1')][_0x463b('0xaf')](_0x56d022)||G(_0x56d022,!0x1),[])):_0x1a094f[_0x463b('0x4d')](_0x56d022);}for(const _0x5be7c2 of _0x1a094f){const _0x2b6540=_0x228fd8[_0x463b('0x3f')][_0x5be7c2];for(const _0x1d7d59 of _0x2b6540){const _0x5b31a0=this[_0x463b('0x3e')](_0x1d7d59),_0x9719e3=_0x1d7d59[_0x463b('0x86')]['getAttribute'](_0x5b31a0);_0x2d09c2['delete'](_0x9719e3),_0x9719e3>=this[_0x463b('0xc4')]&&_0x534c68['set'](_0x9719e3,_0x554c67[_0x463b('0xaf')](_0x9719e3));}}for(const _0x55cf05 of _0x1a094f){const _0x2951a5=_0x228fd8[_0x463b('0x3f')][_0x55cf05],_0x2ef33c=this['_getBaseVids'](_0x228fd8['deletions'][_0x55cf05]);let _0x19d09c=0x0;for(const _0x247bc6 of _0x2951a5){const _0x239dd1=this[_0x463b('0x3e')](_0x247bc6),_0x45aa1d=_0x247bc6[_0x463b('0x86')]['getAttribute'](_0x239dd1);if(!_0x534c68[_0x463b('0x99')](_0x45aa1d)&&!_0x4e35f0[_0x463b('0x99')](_0x45aa1d)){if(_0x2d09c2[_0x463b('0x99')](_0x45aa1d))_0x19d09c++;else{if(_0x45aa1d!=_0x2ef33c[_0x19d09c]){const _0x3a91b0=_0x554c67[_0x463b('0xaf')](_0x45aa1d)||_0x554c67['get'](_0x2ef33c[_0x19d09c]);for(;_0x45aa1d!=_0x2ef33c[_0x19d09c];)_0x2d09c2[_0x463b('0x99')](_0x2ef33c[_0x19d09c])||(_0x4e35f0['set'](_0x2ef33c[_0x19d09c],_0x3a91b0),_0x554c67[_0x463b('0x7a')](_0x2ef33c[_0x19d09c],_0x3a91b0)),_0x19d09c++;}_0x19d09c++;}}}}for(const _0x4d93f9 of _0x1a094f){const _0x30f4e8=_0x228fd8[_0x463b('0x3f')][_0x4d93f9];for(const _0x1681dd of _0x30f4e8){const _0x2586c2=this[_0x463b('0x3e')](_0x1681dd),_0x9981ea=_0x1681dd[_0x463b('0x86')][_0x463b('0xd')](_0x2586c2);if(_0x4e35f0[_0x463b('0x99')](_0x9981ea)){const _0x441961=_0x4e35f0[_0x463b('0xaf')](_0x9981ea);_0x2d09c2[_0x463b('0x99')](_0x9981ea)||_0x2d09c2[_0x463b('0x7a')](_0x9981ea,{..._0x441961}),_0x534c68[_0x463b('0x7a')](_0x9981ea,{..._0x441961});}}}for(const _0x42e447 of _0x2d09c2[_0x463b('0xc5')]())_0x42e447>=this[_0x463b('0xc4')]&&_0x2d09c2['delete'](_0x42e447);const _0x5ac94a=new Map();for(const _0x1f7469 of _0x1a094f){let _0x1c92a3=_0x228fd8[_0x463b('0x3f')][_0x1f7469];for(const _0x4d2b74 of _0x1c92a3)if(_0x4d2b74['item']['is'](_0x463b('0x7c'),_0x463b('0x103'))){const _0x3d9c08=this[_0x463b('0x3e')](_0x4d2b74),_0x126a10=_0x4d2b74[_0x463b('0x86')][_0x463b('0xd')](_0x3d9c08);if(_0x534c68['has'](_0x126a10)){const _0x5d7c15=_0x4d2b74[_0x463b('0x86')][_0x463b('0xfc')][_0x463b('0xfc')]['getAttribute'](_0x463b('0x9a')),_0x373b89=_0x5ac94a['get'](_0x5d7c15)||new Set();_0x373b89['add'](_0x534c68[_0x463b('0xaf')](_0x126a10)[_0x463b('0x4e')]),_0x5ac94a[_0x463b('0x7a')](_0x5d7c15,_0x373b89);}}_0x1c92a3=_0x228fd8['deletions'][_0x1f7469];for(const _0x5b21ca of _0x1c92a3)if(_0x5b21ca[_0x463b('0x86')]['is']('element','tableCell')){const _0x20b017=this[_0x463b('0x3e')](_0x5b21ca),_0x1c896d=_0x5b21ca[_0x463b('0x86')][_0x463b('0xd')](_0x20b017);if(_0x2d09c2[_0x463b('0x99')](_0x1c896d)){const _0x415d1d=_0x5b21ca[_0x463b('0x86')]['parent'][_0x463b('0xfc')][_0x463b('0xd')](_0x463b('0x9a')),_0x2aea0d=_0x5ac94a[_0x463b('0xaf')](_0x415d1d)||new Set();_0x2aea0d[_0x463b('0x2a')](_0x2d09c2[_0x463b('0xaf')](_0x1c896d)['userId']),_0x5ac94a[_0x463b('0x7a')](_0x415d1d,_0x2aea0d);}}for(const _0x32256f of _0x5ac94a[_0x463b('0xc5')]())(_0x534c68[_0x463b('0x99')](_0x32256f)||_0x2d09c2['has'](_0x32256f))&&_0x5ac94a[_0x463b('0x4d')](_0x32256f);}for(const _0x4a3c99 of _0x1a094f){const _0x522ca3=_0x228fd8[_0x463b('0x3f')][_0x4a3c99];let _0x2bcfd4=null,_0x4f7a62=null;for(const _0x274498 of _0x522ca3){const _0x4fc32a=this[_0x463b('0x3e')](_0x274498),_0x42de87=_0x274498[_0x463b('0x86')][_0x463b('0xd')](_0x4fc32a),_0x59fcb1=_0x5ac94a[_0x463b('0xaf')](_0x42de87);_0x59fcb1&&_0x463b('0x1d')==_0x274498['type']&&(_0x2bcfd4=Array[_0x463b('0xe1')](_0x59fcb1)[0x0],_0x4f7a62=_0x274498[_0x463b('0x86')][_0x463b('0xd')](_0x463b('0xea'))),_0x2bcfd4&&(_0x2d09c2[_0x463b('0x7a')](_0x42de87,{'userId':_0x2bcfd4}),_0x534c68[_0x463b('0x7a')](_0x42de87,{'userId':_0x2bcfd4})),_0x42de87==_0x4f7a62&&(_0x2bcfd4=null,_0x4f7a62=null);}}const _0x1813c2={},_0x2d3754=new Set();for(const _0x134add of _0x1a094f){const _0x27648a=_0x2a37e1[_0x463b('0x21')][_0x134add],_0x491961=_0x2a37e1[_0x463b('0x3f')][_0x134add];for(const {userId:_0x2aa3b6}of this['_touchedMarkers'][_0x463b('0x64')]())null!==_0x2aa3b6&&_0x2d3754[_0x463b('0x2a')](_0x2aa3b6);for(const {userId:_0x3fb96e}of this[_0x463b('0xe8')]['values']())null!==_0x3fb96e&&_0x2d3754[_0x463b('0x2a')](_0x3fb96e);this[_0x463b('0x54')](_0x491961,_0x228fd8[_0x463b('0x3f')][_0x134add],_0x534c68,_0x463b('0x8b'),_0x2d3754),this[_0x463b('0x54')](_0x27648a,_0x228fd8['deletions'][_0x134add],_0x2d09c2,_0x463b('0xba'),_0x2d3754),_0x1813c2[_0x134add]={'insertions':this[_0x463b('0x73')](_0x491961),'deletions':this[_0x463b('0x73')](_0x27648a),'attachChange':this['_touchedRoots'][_0x463b('0xaf')](_0x134add)||null,'attributesBefore':_0x375ea6(this[_0x463b('0x18')][_0x463b('0xaf')](_0x134add))||{},'attributesAfter':_0x375ea6(this[_0x463b('0xc7')][_0x463b('0xaf')](_0x134add))};}return{'diffData':_0x1813c2,'authorsIds':Array['from'](_0x2d3754)};}[_0x463b('0x24')](_0x5e8064){for(const [,_0xd3f10e]of _0x5e8064[_0x463b('0x92')]){const _0x567a03=_0xd3f10e[_0x463b('0x3c')][_0x463b('0xe')]()[_0x463b('0x47')](_0x3884b1=>_0x463b('0x103')==_0x3884b1[_0x463b('0x50')]);for(const _0x5bab9f of _0x567a03)0x1==_0x5bab9f['childCount']&&_0x5bab9f[_0x463b('0x76')](0x0)['is'](_0x463b('0x7c'),_0x463b('0x4'))&&_0x5bab9f[_0x463b('0x76')](0x0)[_0x463b('0x95')](_0x463b('0x6f'),!0x0);}}['_prepareViewToSave'](_0x4f92e6){this[_0x463b('0x24')](_0x4f92e6);const _0xdb2053=this[_0x463b('0xa0')]['data'][_0x463b('0x60')](_0x4f92e6,{}),_0x2d0657=Array[_0x463b('0xe1')](_0xdb2053['getChildren']())[_0x463b('0x104')](_0x2a4514=>this[_0x463b('0x5e')](_0x2a4514));return JSON[_0x463b('0xb8')](_0x2d0657);}['_getViewJson'](_0x3a6544){if(_0x3a6544['is'](_0x463b('0x53')))return _0x3a6544[_0x463b('0x14')];{const _0x57e14f=_0x3a6544;return{'type':Object[_0x463b('0xc5')](B)[_0x463b('0xc2')](_0x4e9ec2=>_0x3a6544 instanceof B[_0x4e9ec2]),'name':_0x57e14f[_0x463b('0x50')],'attributes':Array[_0x463b('0xe1')](_0x57e14f['getAttributes']()),'children':Array[_0x463b('0xe1')](_0x57e14f[_0x463b('0x49')]())[_0x463b('0x104')](_0x86438a=>this[_0x463b('0x5e')](_0x86438a))};}}[_0x463b('0x54')](_0x44fb6c,_0x46d518,_0x10c3a2,_0x48a33b,_0x319377){let _0x40e28f=null,_0x3fa102=null,_0xf79526=0x0;const _0x9cdf00=this['editor'][_0x463b('0x42')];for(let _0x56634b=0x0;_0x56634b<_0x46d518[_0x463b('0x33')];_0x56634b++){const _0x1e844b=this[_0x463b('0x3e')](_0x46d518[_0x56634b]),_0x4fc4f5=_0x46d518[_0x56634b][_0x463b('0x86')]['getAttribute'](_0x1e844b),_0x36bdc0=_0x10c3a2[_0x463b('0xaf')](_0x4fc4f5),_0x4c34ab=_0x56634b==_0x46d518[_0x463b('0x33')]-0x1;(!_0x40e28f&&_0x36bdc0&&(_0x40e28f=_0x36bdc0,_0x3fa102=_0x46d518[_0x56634b]),_0x40e28f&&(!_0x36bdc0||_0x36bdc0[_0x463b('0x4e')]!=_0x40e28f[_0x463b('0x4e')]))&&(_0x39a32f(_0x36bdc0,L(_0x3fa102,_0x44fb6c,_0x9cdf00),L(_0x46d518[_0x56634b],_0x44fb6c,_0x9cdf00)),_0x40e28f=_0x36bdc0||null,_0x3fa102=_0x36bdc0?_0x46d518[_0x56634b]:null),_0x40e28f&&_0x4c34ab&&_0x39a32f(_0x36bdc0,L(_0x3fa102,_0x44fb6c,_0x9cdf00),W(_0x46d518[_0x56634b],_0x44fb6c,_0x9cdf00));}function _0x39a32f(_0x1d0bc6,_0x42b9c3,_0x319714){const _0x505829=_0x40e28f['userId'],_0x4d933c=_0x463b('0x58')+_0x48a33b+':'+_0x505829+':'+_0xf79526++,_0x50c5a4=_0x9cdf00[_0x463b('0x35')](_0x42b9c3,_0x319714);_0x44fb6c[_0x463b('0x92')]['set'](_0x4d933c,_0x50c5a4),null!==_0x505829&&_0x319377[_0x463b('0x2a')](_0x505829);}}[_0x463b('0x3e')](_0x11400a){switch(_0x11400a[_0x463b('0x8e')]){case _0x463b('0x1d'):return _0x463b('0x9a');case'elementEnd':return _0x463b('0xea');default:return _0x463b('0xfb');}}[_0x463b('0x31')](_0x53a192,_0x5d1007){_0x53a192[_0x463b('0x75')]=null;for(const _0x18e578 in _0x53a192){const _0x3fbba7=_0x53a192[_0x18e578];if(_0x3fbba7 instanceof _0x2799b2){const _0x4dc97a=_0x5d1007[_0x463b('0xaf')](_0x3fbba7[_0x463b('0xd2')]['rootName']);_0x53a192[_0x18e578]=this['_fixPosition'](_0x3fbba7,_0x4dc97a);}if(_0x3fbba7 instanceof _0x51b5dc){const _0xa2b877=_0x5d1007[_0x463b('0xaf')](_0x3fbba7['root'][_0x463b('0x1f')]);_0x53a192[_0x18e578]=this[_0x463b('0x9c')](_0x3fbba7,_0xa2b877);}_0x463b('0xd2')===_0x18e578&&(_0x53a192[_0x463b('0xd2')]=_0x5d1007[_0x463b('0xaf')](_0x53a192[_0x463b('0xd2')]['rootName']));}}[_0x463b('0x9c')](_0x18ab20,_0x2ec2d8){return this['editor'][_0x463b('0x42')][_0x463b('0x35')](this[_0x463b('0x5a')](_0x18ab20[_0x463b('0x3c')],_0x2ec2d8),this[_0x463b('0x5a')](_0x18ab20[_0x463b('0xe2')],_0x2ec2d8));}[_0x463b('0x5a')](_0x98b520,_0x1494d3){return this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc0')](_0x1494d3,_0x98b520[_0x463b('0x88')],_0x98b520['stickiness']);}[_0x463b('0xe7')](_0x12420a){const _0x4030db=this[_0x463b('0xcf')]['get'](_0x12420a[_0x463b('0x1c')][_0x463b('0xd2')][_0x463b('0x1f')]),_0x5f548a=this[_0x463b('0x5a')](_0x12420a[_0x463b('0x1c')],_0x4030db),_0x3a22f3=null===_0x12420a[_0x463b('0x5b')]?null:_0x12420a[_0x463b('0x5b')]||this[_0x463b('0xa0')]['plugins'][_0x463b('0xaf')]('Users')['me']['id'],_0x3cf5f6=_0x5f548a[_0x463b('0xfc')],_0x584c1f=this['_revisionId'],_0x58cb24=[];for(const _0x5854d6 of _0x12420a[_0x463b('0x45')])if(_0x5854d6['is']('element'))_0x58cb24['push'](this[_0x463b('0xd0')](_0x5854d6));else for(let _0x4567b7=0x0;_0x4567b7<_0x5854d6['offsetSize'];_0x4567b7++)_0x58cb24['push'](new _0x332638(_0x463b('0x53'),{'vid':this[_0x463b('0x17')]++}));const _0x1ff1db=this[_0x463b('0x17')];for(let _0x58070e=_0x584c1f;_0x58070e<_0x1ff1db;_0x58070e++)this['_touched'][_0x463b('0x7a')](_0x58070e,{'userId':_0x3a22f3});_0x3cf5f6['_insertChild'](_0x5f548a[_0x463b('0x52')],_0x58cb24);}[_0x463b('0x77')](_0x14f5c2){(_0x14f5c2=this[_0x463b('0x69')](_0x14f5c2,this[_0x463b('0xcf')]))['_execute']();const _0x174383=null===_0x14f5c2[_0x463b('0x5b')]?null:_0x14f5c2['_authorId']||this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x6c'))['me']['id'],_0x190c9d=_0x14f5c2[_0x463b('0x78')](),_0x192a7a=_0x190c9d[_0x463b('0xfc')],_0x3ebb0e=_0x190c9d['offset'];!function _0x327d13(_0x1c2c84,_0x5d9614,_0x53cdc6,_0x361e39){for(let _0x3d3564=_0x53cdc6;_0x3d3564<_0x361e39;_0x3d3564++){const _0x1ef1dd=_0x5d9614[_0x463b('0x76')](_0x3d3564);_0x1ef1dd['is']('element',_0x463b('0x53'))?_0x1c2c84[_0x463b('0x7a')](_0x1ef1dd['getAttribute']('vid'),{'userId':_0x174383}):(_0x1c2c84[_0x463b('0x7a')](_0x1ef1dd[_0x463b('0xd')](_0x463b('0x9a')),{'userId':_0x174383}),_0x327d13(_0x1c2c84,_0x1ef1dd,0x0,_0x1ef1dd[_0x463b('0xf1')]),_0x1c2c84[_0x463b('0x7a')](_0x1ef1dd[_0x463b('0xd')](_0x463b('0xea')),{'userId':_0x174383}));}}(this[_0x463b('0xb2')],_0x192a7a,_0x3ebb0e,_0x3ebb0e+_0x14f5c2[_0x463b('0xb1')]);}['_handleMergeOperation'](_0x114505){const _0xf84be2=null===(_0x114505=this[_0x463b('0x69')](_0x114505,this[_0x463b('0xcf')]))[_0x463b('0x5b')]?null:_0x114505[_0x463b('0x5b')]||this[_0x463b('0xa0')][_0x463b('0xa5')]['get'](_0x463b('0x6c'))['me']['id'],_0x261d63=_0x114505[_0x463b('0x2f')][_0x463b('0xfc')],_0x5b20a4=_0x114505[_0x463b('0xae')][_0x463b('0xfc')],_0x34a54c=_0x261d63[_0x463b('0xd')](_0x463b('0xea')),_0x174dc2=_0x5b20a4['getAttribute'](_0x463b('0x9a'));_0x261d63['_setAttribute'](_0x463b('0xea'),_0x5b20a4[_0x463b('0xd')]('vid_end')),_0x5b20a4[_0x463b('0x95')](_0x463b('0xea'),_0x34a54c),this[_0x463b('0xb2')]['set'](_0x174dc2,{'userId':_0xf84be2}),this[_0x463b('0xb2')][_0x463b('0x7a')](_0x34a54c,{'userId':_0xf84be2}),_0x114505['_execute']();}[_0x463b('0xb7')](_0x3c6663){const _0x2a9389=null===(_0x3c6663=this[_0x463b('0x69')](_0x3c6663,this[_0x463b('0xcf')]))['_authorId']?null:_0x3c6663[_0x463b('0x5b')]||this[_0x463b('0xa0')][_0x463b('0xa5')]['get']('Users')['me']['id'],_0x1b6a0c=_0x3c6663[_0x463b('0x40')],_0x5d52ee=_0x3c6663[_0x463b('0x90')][_0x463b('0xfc')];_0x3c6663[_0x463b('0x62')]();const _0x3551d2=_0x5d52ee[_0x463b('0xd')]('vid_end'),_0x579d33=_0x3c6663[_0x463b('0x37')]['nodeAfter'];if(_0x1b6a0c){const _0x34fd22=_0x579d33[_0x463b('0xd')](_0x463b('0xea')),_0x37c441=_0x5d52ee[_0x463b('0xd')](_0x463b('0xea'));_0x5d52ee['_setAttribute'](_0x463b('0xea'),_0x34fd22),_0x579d33['_setAttribute'](_0x463b('0xea'),_0x37c441),this[_0x463b('0xb2')][_0x463b('0x7a')](_0x5d52ee[_0x463b('0xd')]('vid_end'),{'userId':_0x2a9389}),this['_touched'][_0x463b('0x7a')](_0x579d33[_0x463b('0xd')](_0x463b('0x9a')),{'userId':_0x2a9389});}else{const _0x5b7a0f=this[_0x463b('0x17')]++,_0x550e42=this[_0x463b('0x17')]++;_0x5d52ee[_0x463b('0x95')]('vid_end',_0x5b7a0f),_0x579d33[_0x463b('0x95')](_0x463b('0x9a'),_0x550e42),_0x579d33['_setAttribute'](_0x463b('0xea'),_0x3551d2),this[_0x463b('0xb2')][_0x463b('0x7a')](_0x5b7a0f,{'userId':_0x2a9389}),this['_touched'][_0x463b('0x7a')](_0x550e42,{'userId':_0x2a9389});}}['_handleMarkerOperation'](_0x428b05){if(!_0x428b05[_0x463b('0xfd')])return;const _0x5bb28f=(_0x428b05=this[_0x463b('0x69')](_0x428b05,this[_0x463b('0x8d')]))[_0x463b('0x25')]?_0x428b05['oldRange'][_0x463b('0xd2')]:null,_0x542460=_0x428b05['newRange']?_0x428b05['newRange']['root']:null;_0x5bb28f&&this['_markers']['delete'](_0x428b05[_0x463b('0x50')]),_0x542460&&this['_markers'][_0x463b('0x7a')](_0x428b05[_0x463b('0x50')],_0x428b05[_0x463b('0x7d')][_0x463b('0x7')]());const _0x1c19e1=null===_0x428b05[_0x463b('0x5b')]?null:_0x428b05[_0x463b('0x5b')]||this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x6c'))['me']['id'],_0xc6ad0f=_0x428b05['name'];if(!this[_0x463b('0xaa')][_0x463b('0x99')](_0xc6ad0f))return void this['_touchedMarkers'][_0x463b('0x7a')](_0xc6ad0f,{'range':_0x428b05[_0x463b('0x25')],'userId':_0x1c19e1});const _0x3b2787=this[_0x463b('0xaa')][_0x463b('0xaf')](_0xc6ad0f),_0x25ed97=_0x3b2787[_0x463b('0x101')],_0x475848=_0x428b05[_0x463b('0x7d')];null==_0x25ed97&&null==_0x475848||_0x25ed97&&_0x475848&&_0x25ed97[_0x463b('0xb6')](_0x475848)?this[_0x463b('0xaa')]['delete'](_0x428b05['name']):_0x3b2787[_0x463b('0x4e')]=_0x1c19e1;}['_handleRootOperation'](_0x1a79e3,_0x164dfd){this[_0x463b('0x8d')][_0x463b('0x99')](_0x1a79e3[_0x463b('0x1f')])?this[_0x463b('0x8d')]['get'](_0x1a79e3['rootName'])['_isAttached']=_0x1a79e3[_0x463b('0xf')]:(this[_0x463b('0x8d')][_0x463b('0x7a')](_0x1a79e3['rootName'],G(_0x1a79e3[_0x463b('0x1f')],!0x0)),this[_0x463b('0xc7')]['set'](_0x1a79e3[_0x463b('0x1f')],{}),_0x164dfd&&this[_0x463b('0xcf')][_0x463b('0x7a')](_0x1a79e3['rootName'],G(_0x1a79e3['rootName'],!0x0)));const _0x1cefc2=null===_0x1a79e3[_0x463b('0x5b')]?null:_0x1a79e3[_0x463b('0x5b')]||this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x6c'))['me']['id'],_0x28a66e=this[_0x463b('0xe8')][_0x463b('0xaf')](_0x1a79e3[_0x463b('0x1f')]);_0x28a66e&&_0x28a66e[_0x463b('0x4e')]===_0x1cefc2?this[_0x463b('0xe8')][_0x463b('0x4d')](_0x1a79e3[_0x463b('0x1f')]):this[_0x463b('0xe8')][_0x463b('0x7a')](_0x1a79e3['rootName'],{'userId':_0x1cefc2,'isAttached':_0x1a79e3[_0x463b('0xf')]});}[_0x463b('0xec')](_0x10045f){const _0xf3b409=this[_0x463b('0xc7')]['get'](_0x10045f[_0x463b('0xd2')][_0x463b('0x1f')]);null===_0x10045f[_0x463b('0x39')]?delete _0xf3b409[_0x10045f[_0x463b('0xfa')]]:_0xf3b409[_0x10045f[_0x463b('0xfa')]]=_0x10045f[_0x463b('0x39')];}}function q(_0x17027e){const _0x383712=G(_0x17027e[_0x463b('0x1f')],_0x17027e[_0x463b('0x65')]());for(const _0x6e342c of _0x17027e[_0x463b('0x49')]()){const _0x12617a=_0x6e342c[_0x463b('0xf4')](!0x0);_0x383712[_0x463b('0x8c')](_0x12617a);}return _0x383712;}function G(_0x213713,_0x2e2eb3=!0x0){const _0x1bcc39=new _0x25a69a();return _0x1bcc39[_0x463b('0x1f')]=_0x213713,_0x1bcc39[_0x463b('0x81')]=_0x2e2eb3,_0x1bcc39[_0x463b('0x65')]=()=>_0x1bcc39[_0x463b('0x81')],_0x1bcc39;}function L(_0x36527a,_0x3dcf20,_0x293b03){const _0x5efe15=_0x463b('0x106')==_0x36527a[_0x463b('0x8e')]?_0x293b03[_0x463b('0x26')](_0x36527a[_0x463b('0x86')],_0x463b('0xe2')):_0x293b03[_0x463b('0xb5')](_0x36527a[_0x463b('0x86')]);return _0x293b03[_0x463b('0xc0')](_0x3dcf20,_0x5efe15[_0x463b('0x88')],_0x5efe15['stickiness']);}function W(_0x9c5065,_0x53dd98,_0x47408d){const _0x1d50e9=_0x463b('0x1d')==_0x9c5065[_0x463b('0x8e')]?_0x47408d[_0x463b('0x26')](_0x9c5065[_0x463b('0x86')],0x0):_0x47408d['createPositionAfter'](_0x9c5065[_0x463b('0x86')]);return _0x47408d[_0x463b('0xc0')](_0x53dd98,_0x1d50e9[_0x463b('0x88')],_0x1d50e9[_0x463b('0xac')]);}
|
|
23
|
+
const _0x5766=['createPositionAfter','_markers','repository','keys','adapter','_getViewJson','merge','PENDING_ACTION_REVISION_HISTORY','key','markerToData','_getFromVersion','setRevisionData','path','getLatestVersion','createPositionFromPath','_makeIdsRoot','graveyardPosition','creator','setSource','documentFragment','hasContent','_update','createRangeIn','addRevision','_handleSplitOperation','update','rootsAttributes','_savedMetaData','locale','addRootAttribute','fromEntries','offsetSize','newRange','initialData','resolve','_getPreviousFrom','revisionHistory.resumeUnsavedRevision','createdAt','isEqual','getData','getChild','_getState','map','set','collaboration.channelId','get','deletion','plugins','_initialRevisionId','finally','getChildren','deletions','_cloneOperation','_operations','getAttribute','_getVidAttributeName','element','_diffRootsAttributes','_removePendingAction','sendBufferedUpdates','size','_generateTape','diffData','_markChanges','push','vid_end','afterInit','_startingRevisionId','forEach','reverse','getTransformedByOperation','from','insertionPosition','_revisionId','getTime','source','$text','isAdd','nodes','_lastTo','_handleOperation','removeRootAttribute','createPositionAt','_touchedRoots','_handleMergeOperation','_baseRootsAttributes','_createInitialRevision','fromVersion','data','getAncestors','createPositionBefore','editing','string','vid','toVersion','end','_findInsertionIndex','define','_touched','authors','RevisionTracker','_source','init','getOperation','_execute','delete','length','_handleRootOperation','revision-end','revision:','_isPendingUpdate','pluginName','elementStart','userId','currentRevision','_insertChild','slice','config','getRoot','PendingActions','baseVersion','ready','_fixOperation','isReady','name','$graveyard','getCurrentRevisionId','attributes','clear','_touchedMarkers','_makeModelFromViewString','_lastFrom','getUser','Initial\x20revision','view','_loadRevisionData','_makeRevision','startsWith','for','_baseRoots','getRevisionRootsAttributes','add','_revisionDataBuilder','changeRootAttribute','version','document','_isAttached','saveRevision','authorsIds','_addPendingAction','tableCell','getRevisionDocumentData','childCount','remove','split','_bufferUpdate','_pendingAction','children','affectsData','previousPosition','splitPosition','detachRoot','_processRootBeforeSave','_copyMarkers','conversion','revision','sort','insert','_applyOperations','Users','vid_start','howMany','bind','updateRevisions','position','filter','dataToMarker','parent','model','stickiness','attributesAfter','_startingVersion','_bufferedUpdates','_loadState','values','getWalker','initial','getNodeByPath','requires','item','clone','_fixRange','_fixPosition','_setConversion','_handleMoveOperation','useFillerType','buildRevisionData','editor-initial-data-replaced-with-revision-data','_appendChild','_saveMetaData','_baseIdsRoots','_diffRoots','shift','getOperations','has','rootName','_createFromRanges','getRevisions','history','_isInit','_handleInsertOperation','isEnabled','_handleRootAttributeOperation','markers','creatorId','_authorId','isAttached','range','_createCurrentRevision','some','_setAttribute','loadState','addRoot','insertions','targetPosition','marker','dataDowncast','_calculateMetaData','root','nodeAfter','_continueCurrentRevision','type','insertion','default','getRevision','attachChange','toModel','_loadedStateData','elementEnd','reinsert','processor','start','find','_idsRoots','addRevisionData','_reset','_clone','_prepareViewToSave','editor','offset','getAttributes','then','sourcePosition','_removeRevisionMarkers','_handleMarkerOperation','keepParagraph','_replaceEditorDataWithRevisionData','parse'];(function(_0x740e1d,_0x57663a){const _0x122548=function(_0x49aede){while(--_0x49aede){_0x740e1d['push'](_0x740e1d['shift']());}};_0x122548(++_0x57663a);}(_0x5766,0x82));const _0x1225=function(_0x740e1d,_0x57663a){_0x740e1d=_0x740e1d-0x0;let _0x122548=_0x5766[_0x740e1d];return _0x122548;};import{Users as _0x42fbf5}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x2b071e,PendingActions as _0x1a15ef}from'ckeditor5/src/core.js';import{logWarning as _0x39515f,uid as _0x326333}from'ckeditor5/src/utils.js';import{Position as _0x225867,Range as _0x379084,Element as _0xc8ece,DocumentFragment as _0x4e8298,ViewText as _0x5276d3,ViewElement as _0x50fae2,ViewContainerElement as _0x5a518a,ViewAttributeElement as _0x28b7e0,ViewEmptyElement as _0xf7c68c,ViewRawElement as _0x17aae3,ViewUIElement as _0x18f8d4,ViewDocumentFragment as _0xf4dc88}from'ckeditor5/src/engine.js';import _0x297954 from'./revisionsrepository.js';import{getTranslation as _0x3dfefa}from'./utils/common-translations.js';import{cloneDeep as _0x1baa21,isEqual as _0x3e5581}from'lodash-es';const B={'c':_0x5a518a,'a':_0x28b7e0,'e':_0xf7c68c,'r':_0x17aae3,'u':_0x18f8d4};export default class l extends _0x2b071e{static get[_0x1225('0xef')](){return _0x1225('0xe4');}static get[_0x1225('0x3a')](){return[_0x42fbf5,_0x297954,_0x1a15ef];}constructor(_0x4192ff){super(_0x4192ff),this['adapter']=null,this[_0x1225('0xf2')]=null,this[_0x1225('0xc')]=new H(this['editor']),this[_0x1225('0xb0')]=this[_0x1225('0x76')]['config'][_0x1225('0xad')](_0x1225('0xac'))||_0x1225('0x38'),this['_bufferedUpdates']=new Map(),this[_0x1225('0x6b')]=null;const _0x58c7d3=_0x326333();this[_0x1225('0xe5')]={'history':this[_0x1225('0x76')][_0x1225('0x30')]['document']['history'],'getLatestVersion':()=>Promise[_0x1225('0xa2')](this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0xf')][_0x1225('0xe')]),'getCurrentRevisionId':()=>_0x58c7d3},this[_0x1225('0xab')](_0x1225('0xfb'),!0x1),this['set'](_0x1225('0x51'),!0x0),this['set']('_isPendingUpdate',!0x1),this[_0x1225('0x76')][_0x1225('0xf5')][_0x1225('0xe1')](_0x1225('0xa4'),!0x0),this[_0x1225('0x76')]['conversion'][_0x1225('0x8')]('upcast')[_0x1225('0x2e')]({'view':_0x1225('0x23')});}[_0x1225('0xe6')](){this[_0x1225('0x82')]=this[_0x1225('0x76')][_0x1225('0xaf')]['get']('RevisionsRepository'),this[_0x1225('0x3f')](),this['editor'][_0x1225('0xd8')]['on'](_0x1225('0xf9'),()=>{const _0x194f7c=this[_0x1225('0x82')]['getRevision'](0x0),_0x3c3315=_0x194f7c&&null===_0x194f7c[_0x1225('0x91')]?_0x194f7c:null;if(this[_0x1225('0x64')]=!!_0x3c3315&&this['editor']['config']['get'](_0x1225('0xa4')),this['editor'][_0x1225('0xaf')]['has']('RealTimeCollaborationClient')){const _0xc21d41=this[_0x1225('0xe5')]['getCurrentRevisionId'](),_0x661083=this[_0x1225('0x82')]['getRevision'](_0xc21d41);if(_0x661083)this[_0x1225('0x33')]=_0x661083['fromVersion'],this[_0x1225('0x64')]=!0x1;else{const _0x158df7=this[_0x1225('0xe5')]['history'][_0x1225('0xb5')][_0x1225('0x70')](_0x187391=>!_0x187391[_0x1225('0x4f')]),_0x45482d=_0x158df7?_0x158df7[_0x1225('0xf8')]:this['_source'][_0x1225('0x4e')][_0x1225('0xe')];_0x194f7c?(_0x194f7c['toVersion']<_0x45482d&&_0x194f7c[_0x1225('0x95')]({'toVersion':_0x45482d}),this[_0x1225('0x64')]?(this[_0x1225('0xe5')]['getCurrentRevisionId']=()=>_0x3c3315['id'],this[_0x1225('0x33')]=_0x3c3315[_0x1225('0xd7')]):(this['_startingVersion']=_0x194f7c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x45482d,this[_0x1225('0x64')]=!0x1);}}else _0x3c3315&&(this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0xf')]['history'][_0x1225('0xe')]=Math['max'](_0x3c3315[_0x1225('0xde')],this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0xf')][_0x1225('0x4e')][_0x1225('0xe')]),_0x3c3315[_0x1225('0xd7')]===_0x3c3315[_0x1225('0xde')]?(0x0!==_0x3c3315[_0x1225('0xd7')]&&(this[_0x1225('0xe5')][_0x1225('0xfe')]=()=>_0x3c3315['id']),this[_0x1225('0x64')]=!0x1):this['_continueCurrentRevision']&&(this[_0x1225('0xe5')][_0x1225('0xfe')]=()=>_0x3c3315['id'],this[_0x1225('0x33')]=_0x3c3315[_0x1225('0xd7')])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor'][_0x1225('0x30')]['document']['version']);this[_0x1225('0xc')][_0x1225('0xe6')](this[_0x1225('0xe5')][_0x1225('0x4e')]),this[_0x1225('0xd6')](this[_0x1225('0x33')]),this[_0x1225('0x58')](this[_0x1225('0x33')]),this[_0x1225('0x84')]&&this['sendBufferedUpdates']();}),this[_0x1225('0x2a')](_0x1225('0xfb'))['to'](this,_0x1225('0xee'),_0x27c815=>!_0x27c815);}async[_0x1225('0xc2')](){if(this['repository'][_0x1225('0xea')]>0x0){const _0x2decdc=this['repository'][_0x1225('0x68')](0x0),_0x5480b4=await this[_0x1225('0x15')](_0x2decdc),_0x1b50ac=await this['getRevisionRootsAttributes'](_0x2decdc);this[_0x1225('0x7e')](_0x5480b4,_0x1b50ac);}}[_0x1225('0x92')](_0x1cbb20){this[_0x1225('0xe5')]=_0x1cbb20;}async[_0x1225('0x99')](){const _0x57865c=await this[_0x1225('0xe5')]['getLatestVersion']();if(_0x57865c>this[_0x1225('0xf2')][_0x1225('0xde')]){await this[_0x1225('0x35')]();const _0x2a7743=this[_0x1225('0x42')]({'revision':this[_0x1225('0xf2')],'to':_0x57865c});_0x2a7743['authors']=_0x2a7743[_0x1225('0x12')]['map'](_0xba382f=>this[_0x1225('0x76')][_0x1225('0xaf')]['get'](_0x1225('0x27'))['getUser'](_0xba382f)),this[_0x1225('0xf2')][_0x1225('0x95')](_0x2a7743);}}async[_0x1225('0x35')](){this[_0x1225('0x64')]&&!this['_loadedStateData']&&(await this[_0x1225('0x5')](this[_0x1225('0xf2')]),this[_0x1225('0xc')][_0x1225('0x5b')](this[_0x1225('0xf2')]),this['_loadedStateData']={'fromVersion':this[_0x1225('0xf2')][_0x1225('0xd7')],'authors':this[_0x1225('0xf2')][_0x1225('0xe3')]['slice']()});}async[_0x1225('0x11')](_0x537f79={},_0x5ca4b9=null){const _0x2ea04f=[];await this[_0x1225('0x35')](),this[_0x1225('0x64')]=!0x1,_0x5ca4b9>this[_0x1225('0xf2')][_0x1225('0xde')]&&(_0x5ca4b9=null),null===_0x5ca4b9&&(_0x5ca4b9=await this[_0x1225('0xe5')][_0x1225('0x8d')]());const _0x4242fc=this[_0x1225('0x8a')](_0x5ca4b9),_0x8e5993=this[_0x1225('0x42')]({'from':_0x4242fc,'to':_0x5ca4b9});if(this[_0x1225('0xf2')]['toVersion']<_0x5ca4b9){const _0x16d3ec=this['buildRevisionData']({'revision':this[_0x1225('0xf2')],'from':_0x5ca4b9,'to':_0x5ca4b9});_0x16d3ec[_0x1225('0xe3')]=[],_0x16d3ec[_0x1225('0x12')]=[],_0x16d3ec['id']=this[_0x1225('0xf2')]['id'],this[_0x1225('0xf2')]['_update'](_0x16d3ec,!0x0),delete _0x16d3ec[_0x1225('0xe3')],_0x2ea04f[_0x1225('0xc0')](_0x16d3ec);}_0x537f79[_0x1225('0x54')]=this[_0x1225('0x76')]['plugins'][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0x537f79[_0x1225('0xfc')]=_0x537f79['name']||null,_0x537f79['id']=_0x537f79['id']||_0x326333(),_0x537f79={..._0x537f79,..._0x8e5993};const _0x1edc9e=this[_0x1225('0x72')](_0x537f79);_0x2ea04f[_0x1225('0xc0')](_0x537f79);const _0x3fa7ec=this[_0x1225('0x82')]['getIndex'](_0x1edc9e);if(0x0!==_0x3fa7ec){const _0x40e8e2=this['repository'][_0x1225('0x68')](_0x3fa7ec-0x1);if(_0x40e8e2[_0x1225('0xd7')]!==_0x5ca4b9){const _0x2b339e=this[_0x1225('0xc')][_0x1225('0xa7')](_0x5ca4b9,_0x40e8e2['toVersion']),_0x2bf483={'id':_0x40e8e2['id'],'diffData':_0x2b339e[_0x1225('0xbe')],'authorsIds':_0x2b339e[_0x1225('0x12')],'authors':_0x2b339e[_0x1225('0x12')][_0x1225('0xaa')](_0x72af18=>this[_0x1225('0x76')]['plugins'][_0x1225('0xad')](_0x1225('0x27'))[_0x1225('0x2')](_0x72af18)),'fromVersion':_0x5ca4b9};_0x40e8e2===this['currentRevision']&&(_0x2bf483[_0x1225('0xa5')]=new Date(_0x537f79['createdAt'][_0x1225('0xca')]()+0xa)),_0x40e8e2['_update'](_0x2bf483,!0x0),delete _0x2bf483['authors'],_0x2ea04f[_0x1225('0xc0')](_0x2bf483);}}if(this[_0x1225('0x84')]){for(const _0x15b196 of _0x2ea04f)this[_0x1225('0x19')](_0x15b196['id'],_0x15b196,!0x0);this['sendBufferedUpdates']();}return _0x1edc9e;}['addRevisionData'](_0x5be383){const _0x57d0aa=this[_0x1225('0x82')]['createRevision'](_0x5be383);return this[_0x1225('0x84')]&&_0x57d0aa['on']('_update',(_0x704e96,_0x16b38d,_0x463dae)=>{_0x463dae||(this[_0x1225('0x19')](_0x16b38d['id'],_0x16b38d,!0x0),this[_0x1225('0xbb')]());}),this['repository'][_0x1225('0x97')](_0x57d0aa,this[_0x1225('0xe0')](_0x57d0aa)),_0x57d0aa;}async[_0x1225('0x15')](_0x9527de){await this['_loadRevisionData'](_0x9527de);const _0x1623a7={};for(const _0x2fba40 in _0x9527de[_0x1225('0xbe')]){if(_0x9527de[_0x1225('0xbe')][_0x2fba40]['attachChange']&&!_0x9527de['diffData'][_0x2fba40]['attachChange']['isAttached'])continue;const _0x4d3283=this['_removeRevisionMarkers'](JSON[_0x1225('0x7f')](_0x9527de['diffData'][_0x2fba40]['insertions'])),_0x316ee6=this[_0x1225('0x76')]['editing'][_0x1225('0x4')][_0x1225('0xf')],_0x53ba9a=new _0xf4dc88(_0x316ee6,_0x4d3283[_0x1225('0xaa')](_0x296898=>J(_0x296898,this[_0x1225('0x76')])));this[_0x1225('0x76')][_0x1225('0xd8')][_0x1225('0x6e')]['useFillerType']('marked'),_0x1623a7[_0x2fba40]=this['editor'][_0x1225('0xd8')][_0x1225('0x6e')]['toData'](_0x53ba9a),this[_0x1225('0x76')][_0x1225('0xd8')]['processor'][_0x1225('0x41')](_0x1225('0x67'));}return _0x1623a7;}async[_0x1225('0xa')](_0x15f1a0){await this[_0x1225('0x5')](_0x15f1a0);const _0x5c077e={};for(const _0x33c6a9 in _0x15f1a0['diffData'])_0x15f1a0[_0x1225('0xbe')][_0x33c6a9][_0x1225('0x69')]&&!_0x15f1a0[_0x1225('0xbe')][_0x33c6a9][_0x1225('0x69')][_0x1225('0x56')]||(_0x5c077e[_0x33c6a9]=_0x15f1a0[_0x1225('0xbe')][_0x33c6a9][_0x1225('0x32')]||{});return _0x5c077e;}['sendBufferedUpdates'](){if(0x0===this[_0x1225('0x34')][_0x1225('0xbc')])return;if(this['_isPendingUpdate'])return;let _0x409d6d=Array['from'](this[_0x1225('0x34')][_0x1225('0x36')]());this[_0x1225('0x34')][_0x1225('0x100')]();for(let _0x4534d5=0x0;_0x4534d5<_0x409d6d[_0x1225('0xea')];_0x4534d5++){const _0x14501c=_0x409d6d[_0x4534d5];let _0xb8676f=!0x1;for(const _0x541b71 of Object[_0x1225('0x83')](_0x14501c))void 0x0===_0x14501c[_0x541b71]?delete _0x14501c[_0x541b71]:'id'!==_0x541b71&&(_0xb8676f=!0x0);_0xb8676f||(_0x409d6d[_0x4534d5]=null);}if(_0x409d6d=_0x409d6d[_0x1225('0x2d')](_0x5052f5=>null!==_0x5052f5),!_0x409d6d['length'])return;for(let _0x586685=0x0;_0x586685<_0x409d6d['length'];_0x586685++){const _0x5e061d=_0x409d6d[_0x586685];void 0x0!==_0x5e061d[_0x1225('0xd7')]&&void 0x0===_0x5e061d[_0x1225('0xde')]&&(_0x5e061d[_0x1225('0xde')]=this[_0x1225('0x82')]['getRevision'](_0x5e061d['id'])['toVersion']),void 0x0!==_0x5e061d[_0x1225('0xde')]&&void 0x0===_0x5e061d[_0x1225('0xd7')]&&(_0x5e061d[_0x1225('0xd7')]=this[_0x1225('0x82')][_0x1225('0x68')](_0x5e061d['id'])['fromVersion']);}const _0x459945=this[_0x1225('0x76')][_0x1225('0xf5')][_0x1225('0xad')](_0x1225('0xac'));this[_0x1225('0xee')]=!0x0,this['_addPendingAction'](),this['adapter'][_0x1225('0x2b')](_0x409d6d,_0x459945)[_0x1225('0xb1')](()=>{this['_isPendingUpdate']=!0x1;})[_0x1225('0x79')](_0x1756f1=>{if(_0x1756f1)for(const _0x47b21b of _0x1756f1)this['setRevisionData']({'id':_0x47b21b['id'],'createdAt':_0x47b21b[_0x1225('0xa5')]});this[_0x1225('0xba')](),this[_0x1225('0xbb')]();});}[_0x1225('0x7e')](_0x1e42ca,_0x5e3cfa){let _0x55e83=this[_0x1225('0x76')][_0x1225('0xf5')]['get']('initialData'),_0x233d12=this[_0x1225('0x76')][_0x1225('0xf5')][_0x1225('0xad')](_0x1225('0x9a'));if(void 0x0===_0x55e83){_0x55e83={};for(const _0x331131 of this[_0x1225('0x76')]['model'][_0x1225('0xf')]['getRootNames']())_0x55e83[_0x331131]='';}if(_0x1225('0xdc')==typeof _0x55e83&&(_0x55e83={'main':_0x55e83}),void 0x0===_0x233d12){_0x233d12={};for(const _0x91e4e4 of this['editor']['model'][_0x1225('0xf')]['getRootNames']())_0x233d12[_0x91e4e4]={};}let _0x4b461e=!0x1;const _0x33ee09=Object[_0x1225('0x83')](_0x55e83),_0x87aed4=Object[_0x1225('0x83')](_0x1e42ca);for(const _0x38ef3b of _0x33ee09){if(_0x55e83[_0x38ef3b]!==_0x1e42ca[_0x38ef3b]&&''!==_0x55e83[_0x38ef3b]['trim']()){_0x4b461e=!0x0;break;}if(!_0x3e5581(_0x233d12[_0x38ef3b],_0x5e3cfa[_0x38ef3b])&&Object[_0x1225('0x83')](_0x233d12[_0x38ef3b])[_0x1225('0xea')]>0x0){_0x4b461e=!0x0;break;}}_0x4b461e||(_0x4b461e=_0x87aed4[_0x1225('0x59')](_0x412846=>!this[_0x1225('0x76')]['model'][_0x1225('0xf')][_0x1225('0xf6')](_0x412846))),_0x4b461e&&_0x39515f(_0x1225('0x43'),{'editorData':_0x55e83,'editorRootsAttributes':_0x233d12,'revisionData':_0x1e42ca,'revisionRootsAttributes':_0x5e3cfa}),this[_0x1225('0x76')][_0x1225('0xf5')][_0x1225('0xab')](_0x1225('0xa1'),_0x1e42ca),this[_0x1225('0x76')][_0x1225('0xf5')][_0x1225('0xab')]('rootsAttributes',_0x5e3cfa);}[_0x1225('0x13')](){if(!this[_0x1225('0x1a')]){const _0xe08907=this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0xf7'));this[_0x1225('0x1a')]=_0xe08907[_0x1225('0xb')](_0x3dfefa(this[_0x1225('0x76')][_0x1225('0x9c')],_0x1225('0x87')));}}[_0x1225('0xba')](){this['_pendingAction']&&(this['editor'][_0x1225('0xaf')][_0x1225('0xad')]('PendingActions')[_0x1225('0x17')](this[_0x1225('0x1a')]),this['_pendingAction']=null);}[_0x1225('0xe0')](_0x1ac152){const _0x222859=this[_0x1225('0x82')][_0x1225('0x4d')]();_0x222859[_0x1225('0xc5')]();let _0xe1664a=0x0;for(;_0xe1664a<_0x222859[_0x1225('0xea')];){const _0x50d87e=_0x222859[_0xe1664a];if(_0x50d87e===this[_0x1225('0xf2')]){_0xe1664a++;continue;}if(_0x50d87e['id']===this['_initialRevisionId'])break;const _0xee30d1=_0x1ac152[_0x1225('0xde')]-_0x50d87e[_0x1225('0xde')]||_0x1ac152[_0x1225('0xd7')]-_0x50d87e[_0x1225('0xd7')];if(_0xee30d1>0x0)break;if(_0xee30d1<0x0)_0xe1664a++;else{if(!_0x1ac152['creator']&&_0x50d87e[_0x1225('0x91')])break;if(_0x50d87e[_0x1225('0x91')]||!_0x1ac152[_0x1225('0x91')]){if(_0x1ac152[_0x1225('0xa5')]>_0x50d87e['createdAt'])break;_0xe1664a++;}else _0xe1664a++;}}return _0xe1664a;}[_0x1225('0x8b')](_0x39de83){const _0x4db4bf=this[_0x1225('0x82')][_0x1225('0x68')](_0x39de83['id']);if(_0x39de83['createdAt']&&(_0x39de83['createdAt']=new Date(_0x39de83[_0x1225('0xa5')])),_0x39de83[_0x1225('0x12')]){const _0x2cb8b2=this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'));_0x39de83[_0x1225('0xe3')]=_0x39de83[_0x1225('0x12')][_0x1225('0xaa')](_0x477a4e=>_0x2cb8b2[_0x1225('0x2')](_0x477a4e));}_0x4db4bf[_0x1225('0x95')](_0x39de83,!0x0);}[_0x1225('0x42')]({revision:_0x3ee73d=null,from:_0x313b03=null,to:_0x1b6a30=null}){_0x313b03=null!==_0x313b03?_0x313b03:_0x3ee73d[_0x1225('0xd7')],_0x1b6a30=null!==_0x1b6a30?_0x1b6a30:_0x3ee73d['toVersion'];const _0x31fcf6=this['_revisionDataBuilder']['getData'](_0x313b03,_0x1b6a30),_0x1af05f={'diffData':_0x31fcf6[_0x1225('0xbe')],'authorsIds':_0x31fcf6['authorsIds'],'fromVersion':_0x313b03,'toVersion':_0x1b6a30};if(!_0x3ee73d||_0x1b6a30!==_0x3ee73d[_0x1225('0xde')]){const _0x384660=_0x1b6a30-0x1,_0x25932e=this[_0x1225('0xe5')][_0x1225('0x4e')][_0x1225('0xe7')](_0x384660);_0x1af05f['createdAt']=_0x25932e&&_0x25932e[_0x1225('0xa5')]||new Date();}if(this[_0x1225('0x6b')]&&_0x313b03===this['_loadedStateData']['fromVersion'])for(const _0x34ec06 of this[_0x1225('0x6b')]['authors'])_0x1af05f[_0x1225('0x12')]['includes'](_0x34ec06['id'])||_0x1af05f[_0x1225('0x12')][_0x1225('0xc0')](_0x34ec06['id']);return _0x1af05f;}[_0x1225('0x5')](_0x2eeaa3){if(!_0x2eeaa3||_0x2eeaa3[_0x1225('0xbe')])return Promise[_0x1225('0xa2')]();{const _0x563c07=this[_0x1225('0x76')]['config'][_0x1225('0xad')](_0x1225('0xac'));return this[_0x1225('0x84')][_0x1225('0x68')]({'channelId':_0x563c07,'revisionId':_0x2eeaa3['id']})['then'](_0x3ff580=>{_0x2eeaa3[_0x1225('0xbe')]=_0x3ff580['diffData'];});}}[_0x1225('0x19')](_0xdf3dd6,_0x48509a,_0x316a14){if(this[_0x1225('0x34')]['has'](_0xdf3dd6)){const _0x3157df=this[_0x1225('0x34')]['get'](_0xdf3dd6);_0x48509a=_0x316a14?{..._0x3157df,..._0x48509a}:{..._0x48509a,..._0x3157df};}this[_0x1225('0x34')]['set'](_0xdf3dd6,_0x48509a);}[_0x1225('0x8a')](_0x1bae7b){const _0x25389a=this[_0x1225('0x82')][_0x1225('0x4d')]();_0x25389a[_0x1225('0xc5')](),_0x25389a[_0x1225('0x48')]();const _0x1807b0=_0x25389a['find'](_0x48144f=>_0x48144f[_0x1225('0xde')]<=_0x1bae7b)[_0x1225('0xde')];return _0x1807b0<this[_0x1225('0x33')]?this[_0x1225('0x33')]:_0x1807b0;}[_0x1225('0xd6')](_0x1847b8){const _0x19684c=this[_0x1225('0x82')][_0x1225('0x68')](this[_0x1225('0x82')]['length']-0x1);if(_0x19684c)this[_0x1225('0xb0')]=_0x19684c['id'];else{const _0xb774=!this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0xf')]['roots']['find'](_0x3b2bea=>this['editor'][_0x1225('0x30')][_0x1225('0x94')](_0x3b2bea)),_0x4b1e52=this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0x8fadb3=_0x3dfefa(this['editor']['locale'],_0xb774?'Empty\x20document':_0x1225('0x3'));this['_makeRevision']({'from':_0x1847b8,'to':_0x1847b8,'id':this[_0x1225('0xb0')],'name':_0x8fadb3,'creatorId':_0x4b1e52});}}[_0x1225('0x58')](_0x42371f){const _0x5f49ef=this['_source'][_0x1225('0xfe')]();this[_0x1225('0xf2')]=this[_0x1225('0x82')][_0x1225('0x68')](_0x5f49ef),this[_0x1225('0xf2')]||(this['currentRevision']=this[_0x1225('0x6')]({'from':_0x42371f,'to':_0x42371f,'id':_0x5f49ef,'name':'','creatorId':null}));}[_0x1225('0x6')]({name:_0x3787f1,from:_0x42256c,to:_0x35de23,creatorId:_0x201e74,id:_0x3c63fd}){const _0x2ed4e7=this['buildRevisionData']({'from':_0x42256c,'to':_0x35de23});_0x2ed4e7[_0x1225('0xfc')]=_0x3787f1,_0x2ed4e7[_0x1225('0x54')]=_0x201e74,_0x2ed4e7['id']=_0x3c63fd;const _0x578ee2=this['addRevisionData'](_0x2ed4e7);return this[_0x1225('0x84')]&&this[_0x1225('0x19')](_0x2ed4e7['id'],_0x2ed4e7,!0x0),_0x578ee2;}[_0x1225('0x3f')](){this[_0x1225('0x76')][_0x1225('0x22')][_0x1225('0x8')](_0x1225('0x60'))[_0x1225('0x89')]({'model':_0x1225('0x23')});}[_0x1225('0x7b')](_0x3cbc84){return(_0x3cbc84=_0x3cbc84[_0x1225('0x2d')](_0x55b9e8=>!_0x55b9e8[_0x1225('0xfc')]||'revision-start'!==_0x55b9e8[_0x1225('0xfc')]&&_0x1225('0xec')!==_0x55b9e8[_0x1225('0xfc')]))[_0x1225('0xc4')](_0xeed76c=>{_0x1225('0xdc')!=typeof _0xeed76c&&(_0xeed76c[_0x1225('0x1b')]=this['_removeRevisionMarkers'](_0xeed76c[_0x1225('0x1b')]),_0xeed76c[_0x1225('0xff')]=_0xeed76c[_0x1225('0xff')][_0x1225('0x2d')](_0x5b8db1=>!_0x5b8db1[0x0][_0x1225('0x7')]('data-revision-')));}),_0x3cbc84;}}function J(_0x2af786,_0x136e1c){const _0x4e07ad=_0x136e1c['editing'][_0x1225('0x4')][_0x1225('0xf')];if(_0x1225('0xdc')==typeof _0x2af786)return new _0x5276d3(_0x4e07ad,_0x2af786);{const _0x5c70a8=_0x2af786[_0x1225('0x1b')][_0x1225('0xaa')](_0x36fac4=>J(_0x36fac4,_0x136e1c));return new(B[_0x2af786[(_0x1225('0x65'))]]||_0x50fae2)(_0x4e07ad,_0x2af786['name'],_0x2af786[_0x1225('0xff')],_0x5c70a8);}}class H{constructor(_0x1c727f){this[_0x1225('0x76')]=_0x1c727f,this[_0x1225('0x9b')]=new Map(),this[_0x1225('0x1')]=-0x1,this[_0x1225('0xcf')]=-0x1,this[_0x1225('0x81')]=new Map(),this['_diffRoots']=new Map(),this[_0x1225('0xb9')]=new Map(),this[_0x1225('0x9')]=new Map(),this[_0x1225('0xd5')]=new Map(),this[_0x1225('0x71')]=new Map(),this[_0x1225('0x46')]=new Map(),this[_0x1225('0xe2')]=new Map(),this[_0x1225('0x101')]=new Map(),this[_0x1225('0xd3')]=new Map(),this[_0x1225('0xc9')]=0x1;}[_0x1225('0xe6')](_0x2dbbcf){this[_0x1225('0xcb')]=_0x2dbbcf;const _0xe1955e=new Map(),_0x2fa935=new Map(),_0x116767=this[_0x1225('0x76')]['model']['document']['roots'][_0x1225('0xaa')](_0x58c611=>_0x58c611[_0x1225('0x4b')]);for(const _0x173619 of _0x116767){const _0xd77391=this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0xf')][_0x1225('0xf6')](_0x173619),_0x4ffae8=q(_0xd77391);_0xe1955e[_0x1225('0xab')](_0x173619,_0x4ffae8),_0x2fa935[_0x1225('0xab')](_0x173619,Object[_0x1225('0x9e')](_0xd77391[_0x1225('0x78')]()));}const _0x3717cc=Array[_0x1225('0xc7')](this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0x53')])[_0x1225('0xaa')](_0x343ec4=>[_0x343ec4[_0x1225('0xfc')],_0x343ec4['getRange']()]),_0x43f595=this[_0x1225('0xcb')]['version'];this[_0x1225('0x45')](_0x43f595,_0xe1955e,_0x3717cc,_0x2fa935),this[_0x1225('0xc3')]=this[_0x1225('0xc9')];const _0x1c5b3e=new Map(),_0x557d7e=new Map();for(const _0x547ce9 of _0x116767){const _0x14d03c=G(_0x547ce9);_0x1c5b3e[_0x1225('0xab')](_0x547ce9,_0x14d03c),_0x557d7e['set'](_0x547ce9,{});}this[_0x1225('0x45')](Number['NEGATIVE_INFINITY'],_0x1c5b3e,[],_0x557d7e);}[_0x1225('0xa7')](_0xcae1b0,_0x5ae893){if(this[_0x1225('0x1')]===_0xcae1b0&&this[_0x1225('0xcf')]<=_0x5ae893)this[_0x1225('0x9b')]['size']>0x1&&this['_removeMetaData'](this[_0x1225('0xcf')]),this[_0x1225('0x26')](this[_0x1225('0xcf')],_0x5ae893,!0x0);else{if(!this[_0x1225('0x9b')]['has'](_0xcae1b0)){const _0x1e661c=this['_getPreviousFrom'](_0xcae1b0);this['_calculateMetaData'](_0x1e661c,_0xcae1b0,!0x1);}this[_0x1225('0x61')](_0xcae1b0,_0x5ae893,!0x0);}return this['_lastFrom']=_0xcae1b0,this[_0x1225('0xcf')]=_0x5ae893,this['_getState']();}[_0x1225('0x5b')](_0x586fde){this['_reset'](),this['_lastFrom']=_0x586fde[_0x1225('0xd7')],this[_0x1225('0xcf')]=_0x586fde[_0x1225('0xde')];for(const _0x319893 in _0x586fde[_0x1225('0xbe')]){const _0x20a8fe=_0x586fde[_0x1225('0xbe')][_0x319893][_0x1225('0x69')],_0x263a46=_0x1baa21(_0x586fde[_0x1225('0xbe')][_0x319893]['attributesBefore'])||{},_0x145eae=this[_0x1225('0x0')](_0x586fde[_0x1225('0xbe')][_0x319893]['deletions']);_0x145eae[_0x1225('0x4b')]=_0x319893,_0x145eae[_0x1225('0x10')]=!_0x20a8fe||!_0x20a8fe[_0x1225('0x56')],_0x145eae[_0x1225('0x56')]=()=>_0x145eae[_0x1225('0x10')],this['_baseRoots'][_0x1225('0xab')](_0x319893,_0x145eae),this['_baseRootsAttributes'][_0x1225('0xab')](_0x319893,_0x263a46),_0x20a8fe&&this['_touchedRoots'][_0x1225('0xab')](_0x319893,_0x20a8fe);const _0x1c5e1a=this[_0x1225('0x8f')](_0x145eae);this['_baseIdsRoots'][_0x1225('0xab')](_0x319893,_0x1c5e1a);for(const [_0x17edeb,_0x54605f]of _0x145eae[_0x1225('0x53')]){if(!_0x17edeb[_0x1225('0x7')](_0x1225('0xed')))continue;const _0x4e4f8c=_0x17edeb[_0x1225('0x18')](':')[0x2];for(const _0x31c2c5 of _0x54605f[_0x1225('0x37')]({'singleCharacters':!0x0})){const _0x5d0f71=this[_0x1225('0xb7')](_0x31c2c5),_0xa300cb=_0x1225('0x6c')==_0x31c2c5[_0x1225('0x65')]?_0x31c2c5['previousPosition'][_0x1225('0x8c')][_0x1225('0xf4')](0x0,-0x1):_0x31c2c5['previousPosition'][_0x1225('0x8c')],_0x3051bf=_0x1c5e1a['getNodeByPath'](_0xa300cb)['getAttribute'](_0x5d0f71);this[_0x1225('0xe2')]['set'](_0x3051bf,{'userId':_0x4e4f8c});}}}this[_0x1225('0xc3')]=this[_0x1225('0xc9')];const _0x356c8e=[...Array(this[_0x1225('0xc9')])[_0x1225('0x83')]()][_0x1225('0xf4')](0x1)[_0x1225('0x2d')](_0x17e6b4=>!this[_0x1225('0xe2')][_0x1225('0x4a')](_0x17e6b4));let _0xc63e91=0x0;const _0x1b6095=new Map();for(const _0x2f7874 in _0x586fde[_0x1225('0xbe')]){const _0x493035=_0x586fde[_0x1225('0xbe')][_0x2f7874][_0x1225('0x69')],_0x3d7a7b=_0x1baa21(_0x586fde['diffData'][_0x2f7874][_0x1225('0x32')])||{},_0x31bd8b=this[_0x1225('0x0')](_0x586fde[_0x1225('0xbe')][_0x2f7874][_0x1225('0x5d')]);_0x31bd8b[_0x1225('0x4b')]=_0x2f7874,_0x31bd8b['_isAttached']=!_0x493035||_0x493035[_0x1225('0x56')],_0x31bd8b[_0x1225('0x56')]=()=>_0x31bd8b['_isAttached'],this[_0x1225('0x47')][_0x1225('0xab')](_0x2f7874,_0x31bd8b),this['_diffRootsAttributes']['set'](_0x2f7874,_0x3d7a7b);const _0x523488=this[_0x1225('0x8f')](_0x31bd8b,Number['NEGATIVE_INFINITY']);this[_0x1225('0x71')][_0x1225('0xab')](_0x2f7874,_0x523488),_0x1b6095[_0x1225('0xab')](_0x2f7874,_0x31bd8b['isAttached']()?_0x3d7a7b:{});for(const [_0x42f19d,_0x1bfdfe]of _0x31bd8b[_0x1225('0x53')]){if(!_0x42f19d['startsWith'](_0x1225('0xed')))continue;const _0x38e0b7=_0x42f19d['split'](':')[0x2];for(const _0x46150e of _0x1bfdfe[_0x1225('0x37')]({'singleCharacters':!0x0})){const _0x2ce56b=this[_0x1225('0xb7')](_0x46150e),_0x5a25a3=this[_0x1225('0xc9')]++,_0x142a3c=_0x1225('0x6c')==_0x46150e[_0x1225('0x65')]?_0x46150e['previousPosition'][_0x1225('0x8c')][_0x1225('0xf4')](0x0,-0x1):_0x46150e[_0x1225('0x1d')][_0x1225('0x8c')];_0x523488['getNodeByPath'](_0x142a3c)['_setAttribute'](_0x2ce56b,_0x5a25a3),this[_0x1225('0xe2')][_0x1225('0xab')](_0x5a25a3,{'userId':_0x38e0b7});}}for(const _0x202556 of this[_0x1225('0x76')]['model'][_0x1225('0x96')](_0x31bd8b)[_0x1225('0x37')]({'singleCharacters':!0x0})){const _0x5cf013=this[_0x1225('0xb7')](_0x202556),_0x132aec='elementEnd'==_0x202556[_0x1225('0x65')]?_0x202556['previousPosition']['path'][_0x1225('0xf4')](0x0,-0x1):_0x202556['previousPosition'][_0x1225('0x8c')],_0x5b123e=_0x523488[_0x1225('0x39')](_0x132aec);_0x5b123e['getAttribute'](_0x5cf013)>0x0||_0x5b123e['_setAttribute'](_0x5cf013,_0x356c8e[_0xc63e91++]);}for(const [_0xb85cca,_0x288d93]of _0x31bd8b[_0x1225('0x53')])_0xb85cca[_0x1225('0x7')](_0x1225('0xed'))||this[_0x1225('0x81')][_0x1225('0xab')](_0xb85cca,_0x288d93);}const _0x498635=G(_0x1225('0xfd'));this['_baseRoots']['set'](_0x1225('0xfd'),_0x498635),this[_0x1225('0x46')][_0x1225('0xab')](_0x1225('0xfd'),this[_0x1225('0x8f')](_0x498635,0x1));const _0x147c8b=G(_0x1225('0xfd'));this[_0x1225('0x47')][_0x1225('0xab')]('$graveyard',_0x147c8b),this[_0x1225('0x71')]['set'](_0x1225('0xfd'),this[_0x1225('0x8f')](_0x147c8b,0x1));const _0x44233a=Array[_0x1225('0xc7')](this[_0x1225('0x47')])[_0x1225('0xaa')](([_0x1cd957,_0x1d6a34])=>[_0x1cd957,q(_0x1d6a34)]);this[_0x1225('0x45')](this[_0x1225('0xcf')],_0x44233a,this[_0x1225('0x81')],_0x1b6095);}[_0x1225('0x0')](_0x1eb140){const _0x2ab9ed=JSON['parse'](_0x1eb140),_0x4dae2b=this[_0x1225('0x76')][_0x1225('0xdb')][_0x1225('0x4')][_0x1225('0xf')],_0x29e051=new _0xf4dc88(_0x4dae2b,_0x2ab9ed[_0x1225('0xaa')](_0x3b3fdd=>J(_0x3b3fdd,this[_0x1225('0x76')])));return this[_0x1225('0x76')][_0x1225('0xd8')][_0x1225('0x6a')](_0x29e051);}['_saveMetaData'](_0x25cbfa,_0x2882a5,_0x43089a,_0x49fdd6){const _0xb24e0d=new Map(_0x2882a5),_0x41d5d4=new Map(_0x1baa21(_0x49fdd6)),_0x1eacc9=new Map();for(const [_0x5ca945,_0x19cb57]of _0x43089a)_0x1eacc9[_0x1225('0xab')](_0x5ca945,{'start':_0x19cb57['start'][_0x1225('0x3c')](),'end':_0x19cb57[_0x1225('0xdf')][_0x1225('0x3c')](),'rootName':_0x19cb57['root'][_0x1225('0x4b')]});this[_0x1225('0x9b')][_0x1225('0xab')](_0x25cbfa,{'roots':_0xb24e0d,'markers':_0x1eacc9,'rootsAttributes':_0x41d5d4});}['_removeMetaData'](_0x913d8f){this['_savedMetaData'][_0x1225('0xe9')](_0x913d8f);}['reInit'](){this['_reset'](),this[_0x1225('0x1')]=-0x1,this[_0x1225('0xcf')]=-0x1,this[_0x1225('0x9b')]['clear'](),this['init'](this[_0x1225('0xcb')]);}[_0x1225('0x73')](){this['_touched'][_0x1225('0x100')](),this[_0x1225('0x101')][_0x1225('0x100')](),this[_0x1225('0xd3')][_0x1225('0x100')](),this[_0x1225('0x47')][_0x1225('0x100')](),this[_0x1225('0xb9')][_0x1225('0x100')](),this[_0x1225('0x9')][_0x1225('0x100')](),this[_0x1225('0xd5')][_0x1225('0x100')](),this[_0x1225('0x71')][_0x1225('0x100')](),this[_0x1225('0x46')][_0x1225('0x100')](),this['_markers'][_0x1225('0x100')](),this[_0x1225('0xc9')]=0x1,this[_0x1225('0xc3')]=this[_0x1225('0xc9')];}[_0x1225('0x8f')](_0x211db1,_0x562548=null){let _0x4c4a65=null;_0x211db1['is'](_0x1225('0x93'))||(_0x4c4a65=new _0xc8ece(_0x211db1[_0x1225('0xfc')],{'vid_start':null===_0x562548?this[_0x1225('0xc9')]++:_0x562548++}));const _0x437798=[];for(const _0x3f8c52 of _0x211db1[_0x1225('0xb2')]())if(_0x3f8c52['is'](_0x1225('0xb8'))){_0x437798[_0x1225('0xc0')](this[_0x1225('0x8f')](_0x3f8c52,_0x562548));const _0x4f11e8=_0x437798[_0x437798[_0x1225('0xea')]-0x1];null!==_0x562548&&(_0x562548=_0x4f11e8['is'](_0x1225('0xb8'),_0x1225('0xcc'))?_0x4f11e8[_0x1225('0xb6')](_0x1225('0xdd'))+0x1:_0x4f11e8[_0x1225('0xb6')](_0x1225('0xc1'))+0x1);}else for(let _0x462482=0x0;_0x462482<_0x3f8c52[_0x1225('0x9f')];_0x462482++)_0x437798['push'](new _0xc8ece(_0x1225('0xcc'),{'vid':null===_0x562548?this['_revisionId']++:_0x562548++}));if(_0x211db1['is'](_0x1225('0x93'))){const _0x37b505=G(_0x211db1[_0x1225('0x4b')]);return _0x37b505[_0x1225('0xf3')](0x0,_0x437798),_0x37b505;}return _0x4c4a65[_0x1225('0x5a')](_0x1225('0xc1'),null===_0x562548?this[_0x1225('0xc9')]++:_0x562548++),_0x4c4a65[_0x1225('0xf3')](0x0,_0x437798),_0x4c4a65;}[_0x1225('0x61')](_0x3daa54,_0x4f3fb9,_0x54fd5a){this['_reset']();const {roots:_0xa67271,markers:_0x1119f2,rootsAttributes:_0x35a35f}=this[_0x1225('0x9b')][_0x1225('0xad')](_0x3daa54);this[_0x1225('0x9')]=new Map(_0xa67271),this[_0x1225('0xd5')]=new Map(_0x1baa21(_0x35a35f));for(const [_0x483156,_0x41ef0a]of this[_0x1225('0x9')])if(_0x1225('0xfd')!==_0x483156&&(this[_0x1225('0x47')][_0x1225('0xab')](_0x483156,q(_0x41ef0a)),this[_0x1225('0xb9')]=new Map(_0x1baa21(_0x35a35f)),_0x54fd5a)){const _0x32b9c6=this[_0x1225('0xc9')];this['_idsRoots'][_0x1225('0xab')](_0x483156,this[_0x1225('0x8f')](_0x41ef0a)),this[_0x1225('0x46')][_0x1225('0xab')](_0x483156,this[_0x1225('0x8f')](_0x41ef0a,_0x32b9c6));}this[_0x1225('0xc3')]=this[_0x1225('0xc9')],this[_0x1225('0x47')]['set'](_0x1225('0xfd'),q(this['_baseRoots']['get']('$graveyard'))),_0x54fd5a&&this[_0x1225('0x71')][_0x1225('0xab')](_0x1225('0xfd'),this[_0x1225('0x8f')](this[_0x1225('0x9')]['get'](_0x1225('0xfd'))));for(const [_0xabe7e6,_0x12e141]of _0x1119f2){const _0x48ab69=this[_0x1225('0x9')][_0x1225('0xad')](_0x12e141[_0x1225('0x4b')]),_0xd94b8c=this[_0x1225('0x47')][_0x1225('0xad')](_0x12e141[_0x1225('0x4b')]),_0x17c28c=new _0x379084(this['_fixPosition'](_0x12e141[_0x1225('0x6f')],_0x48ab69),this[_0x1225('0x3e')](_0x12e141[_0x1225('0xdf')],_0x48ab69)),_0x35ca9a=this[_0x1225('0x3d')](_0x17c28c,_0xd94b8c);_0x48ab69[_0x1225('0x53')]['set'](_0xabe7e6,_0x17c28c),this[_0x1225('0x81')][_0x1225('0xab')](_0xabe7e6,_0x35ca9a);}this['_applyOperations'](_0x3daa54,_0x4f3fb9,_0x54fd5a);}['_applyOperations'](_0x1eec69,_0x27e2ab,_0xf67f62){for(const _0x4b7881 of this[_0x1225('0xcb')][_0x1225('0x49')](_0x1eec69,_0x27e2ab))this[_0x1225('0xd0')](_0x4b7881,_0xf67f62);for(const _0x237428 of this['_diffRoots'][_0x1225('0x36')]())_0x237428[_0x1225('0x53')][_0x1225('0x100')]();for(const [_0x94f67,_0x33848f]of this[_0x1225('0x81')]){this['_diffRoots'][_0x1225('0xad')](_0x33848f[_0x1225('0x62')]['rootName'])[_0x1225('0x53')][_0x1225('0xab')](_0x94f67,_0x33848f[_0x1225('0x3c')]());}const _0x4a3029=new Map(),_0x3eb8b3=new Map();for(const [_0x494ab3,_0x47e5e8]of this['_diffRoots'])_0x4a3029['set'](_0x494ab3,q(_0x47e5e8)),_0x3eb8b3[_0x1225('0xab')](_0x494ab3,this[_0x1225('0xb9')][_0x1225('0xad')](_0x494ab3));this[_0x1225('0x45')](_0x27e2ab,_0x4a3029,this['_markers'],_0x3eb8b3);}[_0x1225('0xa3')](_0x46e32e){const _0x1b54e8=Array[_0x1225('0xc7')](this[_0x1225('0x9b')]['keys']());_0x1b54e8[_0x1225('0x24')]((_0x496c07,_0x2c97c5)=>_0x496c07-_0x2c97c5),_0x1b54e8[_0x1225('0xc5')]();for(const _0x4aab2c of _0x1b54e8)if(_0x4aab2c<_0x46e32e)return _0x4aab2c;return Number['NEGATIVE_INFINITY'];}[_0x1225('0x21')](_0x58374b,_0x65f5b0){const _0x40727f=Array[_0x1225('0xc7')](_0x65f5b0[_0x1225('0x53')])[_0x1225('0xaa')](([_0x4afd18,_0x8f01a5])=>[_0x4afd18,this[_0x1225('0x3d')](_0x8f01a5,_0x58374b)]);_0x58374b[_0x1225('0x53')]=new Map(_0x40727f);}['_transformMarkers'](_0x1125d2){for(const _0x5c3c79 of this[_0x1225('0x81')][_0x1225('0x36')]()){const _0xe9786f=_0x5c3c79[_0x1225('0xc6')](_0x1125d2),_0xca1f3a=_0x379084[_0x1225('0x4c')](_0xe9786f);_0x5c3c79['start']=_0xca1f3a['start'],_0x5c3c79[_0x1225('0xdf')]=_0xca1f3a[_0x1225('0xdf')];}}[_0x1225('0xd0')](_0x3da94b,_0x500696){if(_0x1225('0x5c')==_0x3da94b[_0x1225('0x65')]||_0x1225('0x1f')==_0x3da94b[_0x1225('0x65')])return void this[_0x1225('0xeb')](_0x3da94b,_0x500696);if(_0x1225('0x25')==_0x3da94b[_0x1225('0x65')]){const _0x3adddf=_0x3da94b[_0x1225('0x2c')]['root']['rootName'];this[_0x1225('0x47')]['has'](_0x3adddf)||(this[_0x1225('0x47')]['set'](_0x3adddf,G(_0x3adddf,!0x0)),this['_diffRootsAttributes'][_0x1225('0xab')](_0x3adddf,{}),_0x500696&&this[_0x1225('0x71')][_0x1225('0xab')](_0x3adddf,G(_0x3adddf,!0x0)));}else{if(_0x1225('0x9d')==_0x3da94b[_0x1225('0x65')]||_0x1225('0xd1')==_0x3da94b['type']||_0x1225('0xd')==_0x3da94b[_0x1225('0x65')])return void this['_handleRootAttributeOperation'](_0x3da94b);}const _0x2bd5b8=this[_0x1225('0xb4')](_0x3da94b,this[_0x1225('0x47')]);if('marker'!==_0x3da94b[_0x1225('0x65')]&&(_0x2bd5b8['_execute'](),this['_transformMarkers'](_0x2bd5b8)),_0x500696)switch(_0x2bd5b8[_0x1225('0x65')]){case'insert':this['_handleInsertOperation'](_0x3da94b);break;case'move':case _0x1225('0x17'):case _0x1225('0x6d'):this[_0x1225('0x40')](_0x3da94b);break;case _0x1225('0x86'):this[_0x1225('0xd4')](_0x3da94b);break;case _0x1225('0x18'):this[_0x1225('0x98')](_0x3da94b);break;case _0x1225('0x5f'):this[_0x1225('0x7c')](_0x3da94b);}}[_0x1225('0xb4')](_0x127aab,_0x24e6a0){const _0x5cac61=_0x127aab['clone']();return _0x5cac61['_authorId']=_0x127aab[_0x1225('0x55')],this[_0x1225('0xfa')](_0x5cac61,_0x24e6a0),_0x5cac61;}['_getBaseVids'](_0x5c48e8){return _0x5c48e8[_0x1225('0xaa')](_0xcd2a82=>{const _0x46fc25=this[_0x1225('0xb7')](_0xcd2a82);return Number(_0xcd2a82[_0x1225('0x3b')][_0x1225('0xb6')](_0x46fc25));});}['_generateTape'](_0x48a7c9,_0x479d2d){if(_0x48a7c9['is']('element','$text'))_0x479d2d[_0x1225('0xc0')]({'item':_0x48a7c9,'type':'text'});else{_0x48a7c9['is'](_0x1225('0xb8'))&&_0x479d2d[_0x1225('0xc0')]({'item':_0x48a7c9,'type':_0x1225('0xf0')});for(const _0x5d9494 of _0x48a7c9[_0x1225('0xb2')]())this[_0x1225('0xbd')](_0x5d9494,_0x479d2d);_0x48a7c9['is'](_0x1225('0xb8'))&&_0x479d2d[_0x1225('0xc0')]({'item':_0x48a7c9,'type':'elementEnd'});}return _0x479d2d;}[_0x1225('0xa9')](){const _0x5b1571=new Map(this['_touched']),_0x290731=new Map(_0x5b1571),_0x42432a=new Map(),_0x132402={'insertions':{},'deletions':{}},_0xdb5c1c={'insertions':{},'deletions':{}},_0x594f56=new Map(),_0x4b6f28=new Set([...this[_0x1225('0x9')][_0x1225('0x83')](),...this[_0x1225('0x47')]['keys']()]);_0x4b6f28['delete'](_0x1225('0xfd'));for(const _0x487d59 of _0x4b6f28){const _0x4e4471=this[_0x1225('0x47')][_0x1225('0xad')](_0x487d59)||G(_0x487d59,!0x1),_0x391cc0=this[_0x1225('0x9')][_0x1225('0xad')](_0x487d59)||G(_0x487d59,!0x1);_0x4e4471[_0x1225('0x56')]()||_0x391cc0['isAttached']()?(_0x132402[_0x1225('0x5d')][_0x487d59]=q(_0x4e4471),_0x132402['deletions'][_0x487d59]=q(_0x391cc0),this['_copyMarkers'](_0x132402[_0x1225('0xb3')][_0x487d59],_0x391cc0),this[_0x1225('0x21')](_0x132402[_0x1225('0x5d')][_0x487d59],_0x4e4471),_0xdb5c1c[_0x1225('0x5d')][_0x487d59]=this[_0x1225('0xbd')](this['_idsRoots'][_0x1225('0xad')](_0x487d59),[]),_0xdb5c1c[_0x1225('0xb3')][_0x487d59]=this[_0x1225('0xbd')](this[_0x1225('0x46')][_0x1225('0xad')](_0x487d59)||G(_0x487d59,!0x1),[])):_0x4b6f28[_0x1225('0xe9')](_0x487d59);}for(const _0x4a7925 of _0x4b6f28){const _0x1aec34=_0xdb5c1c[_0x1225('0x5d')][_0x4a7925];for(const _0x20d4e8 of _0x1aec34){const _0x2e421b=this[_0x1225('0xb7')](_0x20d4e8),_0x4ea679=_0x20d4e8[_0x1225('0x3b')]['getAttribute'](_0x2e421b);_0x290731[_0x1225('0xe9')](_0x4ea679),_0x4ea679>=this[_0x1225('0xc3')]&&_0x42432a[_0x1225('0xab')](_0x4ea679,_0x5b1571[_0x1225('0xad')](_0x4ea679));}}for(const _0x27fa84 of _0x4b6f28){const _0x39f3a9=_0xdb5c1c[_0x1225('0x5d')][_0x27fa84],_0x1b42de=this['_getBaseVids'](_0xdb5c1c[_0x1225('0xb3')][_0x27fa84]);let _0x515bce=0x0;for(const _0x1c6fcc of _0x39f3a9){const _0x2ba624=this[_0x1225('0xb7')](_0x1c6fcc),_0x229863=_0x1c6fcc[_0x1225('0x3b')][_0x1225('0xb6')](_0x2ba624);if(!_0x42432a[_0x1225('0x4a')](_0x229863)&&!_0x594f56[_0x1225('0x4a')](_0x229863)){if(_0x290731[_0x1225('0x4a')](_0x229863))_0x515bce++;else{if(_0x229863!=_0x1b42de[_0x515bce]){const _0x2e97a6=_0x5b1571[_0x1225('0xad')](_0x229863)||_0x5b1571[_0x1225('0xad')](_0x1b42de[_0x515bce]);for(;_0x229863!=_0x1b42de[_0x515bce];)_0x290731[_0x1225('0x4a')](_0x1b42de[_0x515bce])||(_0x594f56[_0x1225('0xab')](_0x1b42de[_0x515bce],_0x2e97a6),_0x5b1571[_0x1225('0xab')](_0x1b42de[_0x515bce],_0x2e97a6)),_0x515bce++;}_0x515bce++;}}}}for(const _0x4d0289 of _0x4b6f28){const _0xbaaa2c=_0xdb5c1c[_0x1225('0x5d')][_0x4d0289];for(const _0x51e7bc of _0xbaaa2c){const _0x1b2620=this[_0x1225('0xb7')](_0x51e7bc),_0x41e441=_0x51e7bc[_0x1225('0x3b')][_0x1225('0xb6')](_0x1b2620);if(_0x594f56['has'](_0x41e441)){const _0x33f97c=_0x594f56[_0x1225('0xad')](_0x41e441);_0x290731[_0x1225('0x4a')](_0x41e441)||_0x290731[_0x1225('0xab')](_0x41e441,{..._0x33f97c}),_0x42432a[_0x1225('0xab')](_0x41e441,{..._0x33f97c});}}}for(const _0x58c8cb of _0x290731['keys']())_0x58c8cb>=this['_startingRevisionId']&&_0x290731['delete'](_0x58c8cb);const _0x3e8cd8=new Map();for(const _0x1da4db of _0x4b6f28){let _0x32e412=_0xdb5c1c[_0x1225('0x5d')][_0x1da4db];for(const _0x44c125 of _0x32e412)if(_0x44c125[_0x1225('0x3b')]['is']('element',_0x1225('0x14'))){const _0x499ea8=this['_getVidAttributeName'](_0x44c125),_0x318287=_0x44c125[_0x1225('0x3b')]['getAttribute'](_0x499ea8);if(_0x42432a[_0x1225('0x4a')](_0x318287)){const _0x5c2998=_0x44c125['item'][_0x1225('0x2f')][_0x1225('0x2f')][_0x1225('0xb6')](_0x1225('0x28')),_0x53755f=_0x3e8cd8[_0x1225('0xad')](_0x5c2998)||new Set();_0x53755f[_0x1225('0xb')](_0x42432a[_0x1225('0xad')](_0x318287)[_0x1225('0xf1')]),_0x3e8cd8[_0x1225('0xab')](_0x5c2998,_0x53755f);}}_0x32e412=_0xdb5c1c[_0x1225('0xb3')][_0x1da4db];for(const _0x134ee3 of _0x32e412)if(_0x134ee3[_0x1225('0x3b')]['is']('element',_0x1225('0x14'))){const _0x5d694c=this[_0x1225('0xb7')](_0x134ee3),_0x2d3d14=_0x134ee3['item'][_0x1225('0xb6')](_0x5d694c);if(_0x290731[_0x1225('0x4a')](_0x2d3d14)){const _0x3b79e8=_0x134ee3[_0x1225('0x3b')][_0x1225('0x2f')][_0x1225('0x2f')][_0x1225('0xb6')](_0x1225('0x28')),_0x132b58=_0x3e8cd8['get'](_0x3b79e8)||new Set();_0x132b58['add'](_0x290731['get'](_0x2d3d14)[_0x1225('0xf1')]),_0x3e8cd8['set'](_0x3b79e8,_0x132b58);}}for(const _0x1fdd06 of _0x3e8cd8[_0x1225('0x83')]())(_0x42432a[_0x1225('0x4a')](_0x1fdd06)||_0x290731[_0x1225('0x4a')](_0x1fdd06))&&_0x3e8cd8[_0x1225('0xe9')](_0x1fdd06);}for(const _0x53ea15 of _0x4b6f28){const _0x11fd5a=_0xdb5c1c['insertions'][_0x53ea15];let _0x3b7c2c=null,_0x591718=null;for(const _0xf77edf of _0x11fd5a){const _0x1cdacb=this[_0x1225('0xb7')](_0xf77edf),_0x52b1b4=_0xf77edf[_0x1225('0x3b')][_0x1225('0xb6')](_0x1cdacb),_0x94137e=_0x3e8cd8['get'](_0x52b1b4);_0x94137e&&_0x1225('0xf0')==_0xf77edf[_0x1225('0x65')]&&(_0x3b7c2c=Array[_0x1225('0xc7')](_0x94137e)[0x0],_0x591718=_0xf77edf[_0x1225('0x3b')][_0x1225('0xb6')](_0x1225('0xc1'))),_0x3b7c2c&&(_0x290731[_0x1225('0xab')](_0x52b1b4,{'userId':_0x3b7c2c}),_0x42432a[_0x1225('0xab')](_0x52b1b4,{'userId':_0x3b7c2c})),_0x52b1b4==_0x591718&&(_0x3b7c2c=null,_0x591718=null);}}const _0x8d2646={},_0x5892df=new Set();for(const _0x3a7920 of _0x4b6f28){const _0x472013=_0x132402['deletions'][_0x3a7920],_0x276dbd=_0x132402[_0x1225('0x5d')][_0x3a7920];for(const {userId:_0x261d95}of this[_0x1225('0x101')][_0x1225('0x36')]())null!==_0x261d95&&_0x5892df[_0x1225('0xb')](_0x261d95);for(const {userId:_0x1a90fd}of this[_0x1225('0xd3')][_0x1225('0x36')]())null!==_0x1a90fd&&_0x5892df[_0x1225('0xb')](_0x1a90fd);this[_0x1225('0xbf')](_0x276dbd,_0xdb5c1c['insertions'][_0x3a7920],_0x42432a,_0x1225('0x66'),_0x5892df),this['_markChanges'](_0x472013,_0xdb5c1c['deletions'][_0x3a7920],_0x290731,_0x1225('0xae'),_0x5892df),_0x8d2646[_0x3a7920]={'insertions':this[_0x1225('0x75')](_0x276dbd),'deletions':this[_0x1225('0x75')](_0x472013),'attachChange':this[_0x1225('0xd3')][_0x1225('0xad')](_0x3a7920)||null,'attributesBefore':_0x1baa21(this['_baseRootsAttributes'][_0x1225('0xad')](_0x3a7920))||{},'attributesAfter':_0x1baa21(this[_0x1225('0xb9')][_0x1225('0xad')](_0x3a7920))};}return{'diffData':_0x8d2646,'authorsIds':Array[_0x1225('0xc7')](_0x5892df)};}[_0x1225('0x20')](_0x34c646){for(const [,_0xa99b1e]of _0x34c646[_0x1225('0x53')]){const _0xd599c6=_0xa99b1e[_0x1225('0x6f')][_0x1225('0xd9')]()[_0x1225('0x2d')](_0x55cfaa=>_0x1225('0x14')==_0x55cfaa[_0x1225('0xfc')]);for(const _0x280a4f of _0xd599c6)0x1==_0x280a4f[_0x1225('0x16')]&&_0x280a4f['getChild'](0x0)['is']('element','paragraph')&&_0x280a4f[_0x1225('0xa8')](0x0)['_setAttribute'](_0x1225('0x7d'),!0x0);}}[_0x1225('0x75')](_0x4f3a17){this['_processRootBeforeSave'](_0x4f3a17);const _0x1ea7ef=this[_0x1225('0x76')]['data']['toView'](_0x4f3a17,{}),_0x3e27e5=Array['from'](_0x1ea7ef[_0x1225('0xb2')]())['map'](_0x5f118c=>this['_getViewJson'](_0x5f118c));return JSON['stringify'](_0x3e27e5);}[_0x1225('0x85')](_0x3b9102){if(_0x3b9102['is'](_0x1225('0xcc')))return _0x3b9102[_0x1225('0xd8')];{const _0x2610ae=_0x3b9102;return{'type':Object[_0x1225('0x83')](B)[_0x1225('0x70')](_0x16b865=>_0x3b9102 instanceof B[_0x16b865]),'name':_0x2610ae[_0x1225('0xfc')],'attributes':Array[_0x1225('0xc7')](_0x2610ae['getAttributes']()),'children':Array[_0x1225('0xc7')](_0x2610ae[_0x1225('0xb2')]())['map'](_0x3849ba=>this[_0x1225('0x85')](_0x3849ba))};}}['_markChanges'](_0x21f1d5,_0x4ca3ca,_0x1a1d8,_0x2a0bf5,_0x3c8190){let _0x231259=null,_0x410791=null,_0x1e423c=0x0;const _0x3e409b=this[_0x1225('0x76')][_0x1225('0x30')];for(let _0x64d010=0x0;_0x64d010<_0x4ca3ca[_0x1225('0xea')];_0x64d010++){const _0x5879f3=this['_getVidAttributeName'](_0x4ca3ca[_0x64d010]),_0x304f8e=_0x4ca3ca[_0x64d010]['item']['getAttribute'](_0x5879f3),_0x47c050=_0x1a1d8[_0x1225('0xad')](_0x304f8e),_0x3244b9=_0x64d010==_0x4ca3ca[_0x1225('0xea')]-0x1;(!_0x231259&&_0x47c050&&(_0x231259=_0x47c050,_0x410791=_0x4ca3ca[_0x64d010]),_0x231259&&(!_0x47c050||_0x47c050[_0x1225('0xf1')]!=_0x231259[_0x1225('0xf1')]))&&(_0x5ad153(_0x47c050,L(_0x410791,_0x21f1d5,_0x3e409b),L(_0x4ca3ca[_0x64d010],_0x21f1d5,_0x3e409b)),_0x231259=_0x47c050||null,_0x410791=_0x47c050?_0x4ca3ca[_0x64d010]:null),_0x231259&&_0x3244b9&&_0x5ad153(_0x47c050,L(_0x410791,_0x21f1d5,_0x3e409b),W(_0x4ca3ca[_0x64d010],_0x21f1d5,_0x3e409b));}function _0x5ad153(_0x1fd3fa,_0x6519a4,_0x28f6f0){const _0x5b0b91=_0x231259[_0x1225('0xf1')],_0x1f11b4=_0x1225('0xed')+_0x2a0bf5+':'+_0x5b0b91+':'+_0x1e423c++,_0x58033c=_0x3e409b['createRange'](_0x6519a4,_0x28f6f0);_0x21f1d5['markers'][_0x1225('0xab')](_0x1f11b4,_0x58033c),null!==_0x5b0b91&&_0x3c8190[_0x1225('0xb')](_0x5b0b91);}}[_0x1225('0xb7')](_0x241a49){switch(_0x241a49['type']){case _0x1225('0xf0'):return _0x1225('0x28');case _0x1225('0x6c'):return _0x1225('0xc1');default:return _0x1225('0xdd');}}[_0x1225('0xfa')](_0x1b5560,_0x1f2b1c){_0x1b5560['baseVersion']=null;for(const _0x1d55f5 in _0x1b5560){const _0x51379b=_0x1b5560[_0x1d55f5];if(_0x51379b instanceof _0x225867){const _0x1e842f=_0x1f2b1c[_0x1225('0xad')](_0x51379b[_0x1225('0x62')][_0x1225('0x4b')]);_0x1b5560[_0x1d55f5]=this[_0x1225('0x3e')](_0x51379b,_0x1e842f);}if(_0x51379b instanceof _0x379084){const _0x51c780=_0x1f2b1c[_0x1225('0xad')](_0x51379b['root'][_0x1225('0x4b')]);_0x1b5560[_0x1d55f5]=this[_0x1225('0x3d')](_0x51379b,_0x51c780);}'root'===_0x1d55f5&&(_0x1b5560[_0x1225('0x62')]=_0x1f2b1c[_0x1225('0xad')](_0x1b5560['root'][_0x1225('0x4b')]));}}[_0x1225('0x3d')](_0x38b5b2,_0x488813){return this[_0x1225('0x76')][_0x1225('0x30')]['createRange'](this['_fixPosition'](_0x38b5b2[_0x1225('0x6f')],_0x488813),this['_fixPosition'](_0x38b5b2[_0x1225('0xdf')],_0x488813));}[_0x1225('0x3e')](_0xf0b854,_0x23d124){return this[_0x1225('0x76')][_0x1225('0x30')][_0x1225('0x8e')](_0x23d124,_0xf0b854[_0x1225('0x8c')],_0xf0b854[_0x1225('0x31')]);}[_0x1225('0x50')](_0x2415a2){const _0xe8d936=this[_0x1225('0x71')][_0x1225('0xad')](_0x2415a2[_0x1225('0x2c')][_0x1225('0x62')][_0x1225('0x4b')]),_0x426aa0=this['_fixPosition'](_0x2415a2[_0x1225('0x2c')],_0xe8d936),_0x3ef175=null===_0x2415a2[_0x1225('0x55')]?null:_0x2415a2['_authorId']||this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0x43183e=_0x426aa0[_0x1225('0x2f')],_0x2e8848=this[_0x1225('0xc9')],_0x2898f9=[];for(const _0x483166 of _0x2415a2[_0x1225('0xce')])if(_0x483166['is'](_0x1225('0xb8')))_0x2898f9[_0x1225('0xc0')](this[_0x1225('0x8f')](_0x483166));else for(let _0xbbcb52=0x0;_0xbbcb52<_0x483166[_0x1225('0x9f')];_0xbbcb52++)_0x2898f9[_0x1225('0xc0')](new _0xc8ece(_0x1225('0xcc'),{'vid':this[_0x1225('0xc9')]++}));const _0x5372bd=this[_0x1225('0xc9')];for(let _0x2efe42=_0x2e8848;_0x2efe42<_0x5372bd;_0x2efe42++)this[_0x1225('0xe2')][_0x1225('0xab')](_0x2efe42,{'userId':_0x3ef175});_0x43183e['_insertChild'](_0x426aa0[_0x1225('0x77')],_0x2898f9);}['_handleMoveOperation'](_0x563a15){(_0x563a15=this[_0x1225('0xb4')](_0x563a15,this['_idsRoots']))[_0x1225('0xe8')]();const _0x242e7b=null===_0x563a15[_0x1225('0x55')]?null:_0x563a15[_0x1225('0x55')]||this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0xd94f37=_0x563a15['getMovedRangeStart'](),_0x27214b=_0xd94f37['parent'],_0x1b747f=_0xd94f37[_0x1225('0x77')];!function _0x148643(_0x53716c,_0x439fd1,_0x247a0f,_0x192829){for(let _0x2b220a=_0x247a0f;_0x2b220a<_0x192829;_0x2b220a++){const _0x2cf085=_0x439fd1[_0x1225('0xa8')](_0x2b220a);_0x2cf085['is']('element','$text')?_0x53716c['set'](_0x2cf085[_0x1225('0xb6')](_0x1225('0xdd')),{'userId':_0x242e7b}):(_0x53716c['set'](_0x2cf085[_0x1225('0xb6')]('vid_start'),{'userId':_0x242e7b}),_0x148643(_0x53716c,_0x2cf085,0x0,_0x2cf085['childCount']),_0x53716c[_0x1225('0xab')](_0x2cf085[_0x1225('0xb6')]('vid_end'),{'userId':_0x242e7b}));}}(this[_0x1225('0xe2')],_0x27214b,_0x1b747f,_0x1b747f+_0x563a15[_0x1225('0x29')]);}['_handleMergeOperation'](_0x1ec9c2){const _0x1826a2=null===(_0x1ec9c2=this[_0x1225('0xb4')](_0x1ec9c2,this['_idsRoots']))[_0x1225('0x55')]?null:_0x1ec9c2[_0x1225('0x55')]||this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0x517f08=_0x1ec9c2[_0x1225('0x5e')][_0x1225('0x2f')],_0x143f56=_0x1ec9c2[_0x1225('0x7a')][_0x1225('0x2f')],_0x4270e3=_0x517f08[_0x1225('0xb6')](_0x1225('0xc1')),_0x36b900=_0x143f56['getAttribute'](_0x1225('0x28'));_0x517f08[_0x1225('0x5a')](_0x1225('0xc1'),_0x143f56[_0x1225('0xb6')](_0x1225('0xc1'))),_0x143f56['_setAttribute'](_0x1225('0xc1'),_0x4270e3),this['_touched'][_0x1225('0xab')](_0x36b900,{'userId':_0x1826a2}),this['_touched'][_0x1225('0xab')](_0x4270e3,{'userId':_0x1826a2}),_0x1ec9c2[_0x1225('0xe8')]();}[_0x1225('0x98')](_0x34cb6a){const _0x568d41=null===(_0x34cb6a=this[_0x1225('0xb4')](_0x34cb6a,this[_0x1225('0x71')]))['_authorId']?null:_0x34cb6a[_0x1225('0x55')]||this[_0x1225('0x76')][_0x1225('0xaf')]['get'](_0x1225('0x27'))['me']['id'],_0x9e780f=_0x34cb6a[_0x1225('0x90')],_0x599b50=_0x34cb6a[_0x1225('0x1e')][_0x1225('0x2f')];_0x34cb6a[_0x1225('0xe8')]();const _0x1ee3da=_0x599b50[_0x1225('0xb6')](_0x1225('0xc1')),_0x307646=_0x34cb6a[_0x1225('0xc8')][_0x1225('0x63')];if(_0x9e780f){const _0x7ad7b4=_0x307646[_0x1225('0xb6')](_0x1225('0xc1')),_0x146efd=_0x599b50['getAttribute'](_0x1225('0xc1'));_0x599b50[_0x1225('0x5a')](_0x1225('0xc1'),_0x7ad7b4),_0x307646[_0x1225('0x5a')](_0x1225('0xc1'),_0x146efd),this[_0x1225('0xe2')][_0x1225('0xab')](_0x599b50[_0x1225('0xb6')](_0x1225('0xc1')),{'userId':_0x568d41}),this[_0x1225('0xe2')][_0x1225('0xab')](_0x307646[_0x1225('0xb6')](_0x1225('0x28')),{'userId':_0x568d41});}else{const _0x1699db=this[_0x1225('0xc9')]++,_0x4f7923=this[_0x1225('0xc9')]++;_0x599b50[_0x1225('0x5a')](_0x1225('0xc1'),_0x1699db),_0x307646['_setAttribute'](_0x1225('0x28'),_0x4f7923),_0x307646[_0x1225('0x5a')](_0x1225('0xc1'),_0x1ee3da),this[_0x1225('0xe2')][_0x1225('0xab')](_0x1699db,{'userId':_0x568d41}),this[_0x1225('0xe2')][_0x1225('0xab')](_0x4f7923,{'userId':_0x568d41});}}[_0x1225('0x7c')](_0x2a96c9){if(!_0x2a96c9[_0x1225('0x1c')])return;const _0x3d9c62=(_0x2a96c9=this[_0x1225('0xb4')](_0x2a96c9,this[_0x1225('0x47')]))['oldRange']?_0x2a96c9['oldRange'][_0x1225('0x62')]:null,_0x5b5d8=_0x2a96c9['newRange']?_0x2a96c9[_0x1225('0xa0')][_0x1225('0x62')]:null;_0x3d9c62&&this[_0x1225('0x81')][_0x1225('0xe9')](_0x2a96c9['name']),_0x5b5d8&&this['_markers']['set'](_0x2a96c9[_0x1225('0xfc')],_0x2a96c9[_0x1225('0xa0')]['clone']());const _0x33518d=null===_0x2a96c9['_authorId']?null:_0x2a96c9['_authorId']||this[_0x1225('0x76')][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0xbc636b=_0x2a96c9[_0x1225('0xfc')];if(!this[_0x1225('0x101')]['has'](_0xbc636b))return void this[_0x1225('0x101')][_0x1225('0xab')](_0xbc636b,{'range':_0x2a96c9['oldRange'],'userId':_0x33518d});const _0x14025d=this['_touchedMarkers'][_0x1225('0xad')](_0xbc636b),_0x31d01f=_0x14025d[_0x1225('0x57')],_0x1313f7=_0x2a96c9[_0x1225('0xa0')];null==_0x31d01f&&null==_0x1313f7||_0x31d01f&&_0x1313f7&&_0x31d01f[_0x1225('0xa6')](_0x1313f7)?this[_0x1225('0x101')]['delete'](_0x2a96c9['name']):_0x14025d[_0x1225('0xf1')]=_0x33518d;}[_0x1225('0xeb')](_0x362751,_0x134e35){this[_0x1225('0x47')][_0x1225('0x4a')](_0x362751[_0x1225('0x4b')])?this[_0x1225('0x47')][_0x1225('0xad')](_0x362751[_0x1225('0x4b')])[_0x1225('0x10')]=_0x362751['isAdd']:(this[_0x1225('0x47')]['set'](_0x362751['rootName'],G(_0x362751['rootName'],!0x0)),this['_diffRootsAttributes'][_0x1225('0xab')](_0x362751['rootName'],{}),_0x134e35&&this[_0x1225('0x71')]['set'](_0x362751[_0x1225('0x4b')],G(_0x362751[_0x1225('0x4b')],!0x0)));const _0x7dc318=null===_0x362751[_0x1225('0x55')]?null:_0x362751[_0x1225('0x55')]||this['editor'][_0x1225('0xaf')][_0x1225('0xad')](_0x1225('0x27'))['me']['id'],_0x511752=this[_0x1225('0xd3')]['get'](_0x362751[_0x1225('0x4b')]);_0x511752&&_0x511752[_0x1225('0xf1')]===_0x7dc318?this[_0x1225('0xd3')]['delete'](_0x362751[_0x1225('0x4b')]):this['_touchedRoots'][_0x1225('0xab')](_0x362751[_0x1225('0x4b')],{'userId':_0x7dc318,'isAttached':_0x362751[_0x1225('0xcd')]});}[_0x1225('0x52')](_0x13c531){const _0x167443=this[_0x1225('0xb9')]['get'](_0x13c531[_0x1225('0x62')]['rootName']);null===_0x13c531['newValue']?delete _0x167443[_0x13c531[_0x1225('0x88')]]:_0x167443[_0x13c531[_0x1225('0x88')]]=_0x13c531['newValue'];}}function q(_0x41a3b4){const _0x9f7ef=G(_0x41a3b4[_0x1225('0x4b')],_0x41a3b4['isAttached']());for(const _0x9381f4 of _0x41a3b4[_0x1225('0xb2')]()){const _0x42950b=_0x9381f4[_0x1225('0x74')](!0x0);_0x9f7ef[_0x1225('0x44')](_0x42950b);}return _0x9f7ef;}function G(_0x1bdb6c,_0x1c5574=!0x0){const _0xa9addd=new _0x4e8298();return _0xa9addd['rootName']=_0x1bdb6c,_0xa9addd[_0x1225('0x10')]=_0x1c5574,_0xa9addd['isAttached']=()=>_0xa9addd[_0x1225('0x10')],_0xa9addd;}function L(_0x397810,_0x14d48a,_0x1d9eac){const _0x5b8aaa=_0x1225('0x6c')==_0x397810[_0x1225('0x65')]?_0x1d9eac[_0x1225('0xd2')](_0x397810['item'],_0x1225('0xdf')):_0x1d9eac[_0x1225('0xda')](_0x397810[_0x1225('0x3b')]);return _0x1d9eac[_0x1225('0x8e')](_0x14d48a,_0x5b8aaa[_0x1225('0x8c')],_0x5b8aaa[_0x1225('0x31')]);}function W(_0x380e7c,_0x189420,_0x3dfabf){const _0x2f89c3='elementStart'==_0x380e7c['type']?_0x3dfabf[_0x1225('0xd2')](_0x380e7c['item'],0x0):_0x3dfabf[_0x1225('0x80')](_0x380e7c[_0x1225('0x3b')]);return _0x3dfabf[_0x1225('0x8e')](_0x189420,_0x2f89c3['path'],_0x2f89c3[_0x1225('0x31')]);}
|