@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231123.0 → 0.0.0-nightly-20231125.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4494=['data','PendingActions','_handleRootOperation','_operations','_handleRootAttributeOperation','size','getRevisionDocumentData','_removeMetaData','getOperations','changeRootAttribute','move','item','then','key','setSource','buildRevisionData','Empty\x20document','insert','_handleInsertOperation','some','source','attributesBefore','add','toVersion','RevisionTracker','isAttached','_touchedMarkers','targetPosition','_bufferUpdate','createPositionFromPath','resolve','from','_lastTo','elementStart','_handleSplitOperation','createdAt','_initialRevisionId','_prepareViewToSave','revisionHistory.resumeUnsavedRevision','revision','attributes','offsetSize','revision:','_handleMoveOperation','_removePendingAction','_baseRootsAttributes','addRevisionData','getTime','_applyOperations','sourcePosition','newRange','filter','roots','ready','initialData','diffData','getNodeByPath','pluginName','_continueCurrentRevision','_update','_isPendingUpdate','_cloneOperation','type','RevisionsRepository','keys','createRange','slice','currentRevision','_appendChild','toModel','offset','_source','map','_setAttribute','_revisionId','baseVersion','getRevisionRootsAttributes','getRevisions','_pendingAction','getWalker','_baseIdsRoots','getChildren','insertions','data-revision-','isReady','_createCurrentRevision','_processRootBeforeSave','end','getCurrentRevisionId','afterInit','max','adapter','_markers','values','createRangeIn','init','bind','getAttribute','_fixOperation','createRevision','_generateTape','start','_diffRootsAttributes','position','useFillerType','upcast','config','documentFragment','root','_insertChild','getUser','newValue','_copyMarkers','_fixPosition','model','_getViewJson','_handleMarkerOperation','push','_getVidAttributeName','childCount','Users','stringify','insertionPosition','authors','NEGATIVE_INFINITY','deletions','processor','length','getOperation','_baseRoots','tableCell','attachChange','editor-initial-data-replaced-with-revision-data','graveyardPosition','isAdd','sort','revision-end','getChild','howMany','_removeRevisionMarkers','getRoot','getAttributes','plugins','conversion','history','split','set','_touched','reInit','createPositionBefore','dataDowncast','markers','vid','setRevisionData','removeRootAttribute','fromEntries','vid_start','version','_lastFrom','markerToData','_loadedStateData','$graveyard','_createInitialRevision','toData','getData','previousPosition','name','deletion','_makeIdsRoot','_getFromVersion','_addPendingAction','_revisionDataBuilder','remove','_reset','document','getRootNames','define','for','view','createPositionAt','marker','authorsIds','editing','keepParagraph','getTransformedByOperation','fromVersion','startsWith','addRevision','_getState','stickiness','rootsAttributes','_findInsertionIndex','_handleOperation','delete','rootName','_touchedRoots','repository','_transformMarkers','_startingVersion','marked','_startingRevisionId','_replaceEditorDataWithRevisionData','_savedMetaData','editor','clone','vid_end','creator','string','dataToMarker','elementEnd','trim','_setConversion','_diffRoots','text','clear','_loadRevisionData','default','_markChanges','getRevision','oldRange','children','_clone','_bufferedUpdates','find','_makeRevision','addRoot','_handleMergeOperation','_saveMetaData','userId','_getPreviousFrom','PENDING_ACTION_REVISION_HISTORY','_execute','_fixRange','element','range','getLatestVersion','_loadState','includes','_idsRoots','_isInit','_getBaseVids','_makeModelFromViewString','get','reverse','_isAttached','parent','has','sendBufferedUpdates','$text','_authorId','requires','parse','getMovedRangeStart','path','forEach'];(function(_0x4b98b6,_0x4494de){const _0x7affe7=function(_0x3a21dd){while(--_0x3a21dd){_0x4b98b6['push'](_0x4b98b6['shift']());}};_0x7affe7(++_0x4494de);}(_0x4494,0x1a1));const _0x7aff=function(_0x4b98b6,_0x4494de){_0x4b98b6=_0x4b98b6-0x0;let _0x7affe7=_0x4494[_0x4b98b6];return _0x7affe7;};import{Users as _0x3fefb7}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2af11e,PendingActions as _0x454405}from'ckeditor5/src/core';import{logWarning as _0x68fee7,uid as _0x5647b3}from'ckeditor5/src/utils';import{Position as _0x576a27,Range as _0x23cb2f,Element as _0x371ba5,DocumentFragment as _0x33b7b8,ViewText as _0x28ab94,ViewElement as _0x18ea86,ViewContainerElement as _0x1559cb,ViewAttributeElement as _0x49cffa,ViewEmptyElement as _0x151cb8,ViewRawElement as _0x4f37c0,ViewUIElement as _0x54b5c9,ViewDocumentFragment as _0x397dc4}from'ckeditor5/src/engine';import _0x133f4e from'./revisionsrepository';import{getTranslation as _0x427c39}from'./utils/common-translations';import{cloneDeep as _0x53c182,isEqual as _0x4a475f}from'lodash-es';const B={'c':_0x1559cb,'a':_0x49cffa,'e':_0x151cb8,'r':_0x4f37c0,'u':_0x54b5c9};export default class l extends _0x2af11e{static get[_0x7aff('0x96')](){return _0x7aff('0x75');}static get[_0x7aff('0x58')](){return[_0x3fefb7,_0x133f4e,_0x454405];}constructor(_0x390907){super(_0x390907),this[_0x7aff('0xb8')]=null,this[_0x7aff('0xa0')]=null,this[_0x7aff('0x9')]=new H(this[_0x7aff('0x29')]),this[_0x7aff('0x81')]=this[_0x7aff('0x29')][_0x7aff('0xc7')][_0x7aff('0x50')]('collaboration.channelId')||'initial',this[_0x7aff('0x3c')]=new Map(),this['_loadedStateData']=null;const _0x2a0674=_0x5647b3();this[_0x7aff('0xa4')]={'history':this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')][_0x7aff('0xed')],'getLatestVersion':()=>Promise['resolve'](this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')][_0x7aff('0xfa')]),'getCurrentRevisionId':()=>_0x2a0674},this[_0x7aff('0xef')](_0x7aff('0xb1'),!0x1),this[_0x7aff('0xef')]('isEnabled',!0x0),this[_0x7aff('0xef')](_0x7aff('0x99'),!0x1),this[_0x7aff('0x29')][_0x7aff('0xc7')][_0x7aff('0xe')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x7aff('0x29')]['conversion'][_0x7aff('0xf')](_0x7aff('0xc6'))[_0x7aff('0x2e')]({'view':_0x7aff('0x84')});}['init'](){this[_0x7aff('0x22')]=this[_0x7aff('0x29')][_0x7aff('0xeb')]['get'](_0x7aff('0x9c')),this[_0x7aff('0x31')](),this[_0x7aff('0x29')]['data']['on'](_0x7aff('0x92'),()=>{const _0x491a11=this[_0x7aff('0x22')][_0x7aff('0x38')](0x0),_0x99a24=_0x491a11&&null===_0x491a11[_0x7aff('0x2c')]?_0x491a11:null;if(this['_continueCurrentRevision']=!!_0x99a24&&this[_0x7aff('0x29')]['config']['get'](_0x7aff('0x83')),this[_0x7aff('0x29')][_0x7aff('0xeb')]['has']('RealTimeCollaborationClient')){const _0x11c5b3=this[_0x7aff('0xa4')]['getCurrentRevisionId'](),_0x456cac=this[_0x7aff('0x22')]['getRevision'](_0x11c5b3);if(_0x456cac)this[_0x7aff('0x24')]=_0x456cac['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x38a4b5=this['_source'][_0x7aff('0xed')][_0x7aff('0x60')][_0x7aff('0x3d')](_0x18c58b=>!_0x18c58b[_0x7aff('0x4d')]),_0x13d5ad=_0x38a4b5?_0x38a4b5[_0x7aff('0xa8')]:this[_0x7aff('0xa4')][_0x7aff('0xed')]['version'];_0x491a11?(_0x491a11[_0x7aff('0x74')]<_0x13d5ad&&_0x491a11[_0x7aff('0x98')]({'toVersion':_0x13d5ad}),this['_continueCurrentRevision']?(this[_0x7aff('0xa4')][_0x7aff('0xb5')]=()=>_0x99a24['id'],this[_0x7aff('0x24')]=_0x99a24[_0x7aff('0x17')]):(this[_0x7aff('0x24')]=_0x491a11[_0x7aff('0x74')],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x13d5ad,this['_continueCurrentRevision']=!0x1);}}else _0x99a24&&(this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')][_0x7aff('0xed')][_0x7aff('0xfa')]=Math[_0x7aff('0xb7')](_0x99a24[_0x7aff('0x74')],this['editor'][_0x7aff('0xcf')][_0x7aff('0xc')]['history'][_0x7aff('0xfa')]),_0x99a24[_0x7aff('0x17')]===_0x99a24[_0x7aff('0x74')]?(0x0!==_0x99a24[_0x7aff('0x17')]&&(this[_0x7aff('0xa4')]['getCurrentRevisionId']=()=>_0x99a24['id']),this['_continueCurrentRevision']=!0x1):this[_0x7aff('0x97')]&&(this['_source'][_0x7aff('0xb5')]=()=>_0x99a24['id'],this['_startingVersion']=_0x99a24[_0x7aff('0x17')])),this['_continueCurrentRevision']||(this['_startingVersion']=this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')]['version']);this[_0x7aff('0x9')]['init'](this['_source'][_0x7aff('0xed')]),this[_0x7aff('0x0')](this[_0x7aff('0x24')]),this[_0x7aff('0xb2')](this[_0x7aff('0x24')]),this[_0x7aff('0xb8')]&&this[_0x7aff('0x55')]();}),this[_0x7aff('0xbd')](_0x7aff('0xb1'))['to'](this,_0x7aff('0x99'),_0x5c2fd3=>!_0x5c2fd3);}async[_0x7aff('0xb6')](){if(this[_0x7aff('0x22')]['length']>0x0){const _0x2df127=this[_0x7aff('0x22')][_0x7aff('0x38')](0x0),_0x5405d5=await this[_0x7aff('0x63')](_0x2df127),_0x4bea2b=await this[_0x7aff('0xa9')](_0x2df127);this[_0x7aff('0x27')](_0x5405d5,_0x4bea2b);}}[_0x7aff('0x6b')](_0x5b40ef){this[_0x7aff('0xa4')]=_0x5b40ef;}async['update'](){const _0x2b5a60=await this['_source'][_0x7aff('0x49')]();if(_0x2b5a60>this[_0x7aff('0xa0')][_0x7aff('0x74')]){await this['_loadState']();const _0x3b380b=this[_0x7aff('0x6c')]({'revision':this[_0x7aff('0xa0')],'to':_0x2b5a60});_0x3b380b[_0x7aff('0xd8')]=_0x3b380b['authorsIds'][_0x7aff('0xa5')](_0x20f859=>this[_0x7aff('0x29')][_0x7aff('0xeb')]['get']('Users')['getUser'](_0x20f859)),this['currentRevision']['_update'](_0x3b380b);}}async[_0x7aff('0x4a')](){this[_0x7aff('0x97')]&&!this['_loadedStateData']&&(await this[_0x7aff('0x35')](this[_0x7aff('0xa0')]),this[_0x7aff('0x9')]['loadState'](this[_0x7aff('0xa0')]),this[_0x7aff('0xfd')]={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x7aff('0xa0')][_0x7aff('0xd8')][_0x7aff('0x9f')]()});}async['saveRevision'](_0x287a13={},_0x4754ae=null){const _0x3b8c56=[];await this[_0x7aff('0x4a')](),this['_continueCurrentRevision']=!0x1,_0x4754ae>this[_0x7aff('0xa0')][_0x7aff('0x74')]&&(_0x4754ae=null),null===_0x4754ae&&(_0x4754ae=await this[_0x7aff('0xa4')][_0x7aff('0x49')]());const _0x461334=this[_0x7aff('0x7')](_0x4754ae),_0x43fc97=this[_0x7aff('0x6c')]({'from':_0x461334,'to':_0x4754ae});if(this[_0x7aff('0xa0')]['toVersion']<_0x4754ae){const _0x2f4b6b=this[_0x7aff('0x6c')]({'revision':this['currentRevision'],'from':_0x4754ae,'to':_0x4754ae});_0x2f4b6b[_0x7aff('0xd8')]=[],_0x2f4b6b[_0x7aff('0x13')]=[],_0x2f4b6b['id']=this[_0x7aff('0xa0')]['id'],this['currentRevision'][_0x7aff('0x98')](_0x2f4b6b,!0x0),delete _0x2f4b6b[_0x7aff('0xd8')],_0x3b8c56[_0x7aff('0xd2')](_0x2f4b6b);}_0x287a13['creatorId']=this[_0x7aff('0x29')]['plugins'][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0x287a13['name']=_0x287a13['name']||null,_0x287a13['id']=_0x287a13['id']||_0x5647b3(),_0x287a13={..._0x287a13,..._0x43fc97};const _0x186576=this[_0x7aff('0x8b')](_0x287a13);_0x3b8c56[_0x7aff('0xd2')](_0x287a13);const _0x1890a2=this[_0x7aff('0x22')]['getIndex'](_0x186576);if(0x0!==_0x1890a2){const _0x37a06e=this[_0x7aff('0x22')]['getRevision'](_0x1890a2-0x1);if(_0x37a06e[_0x7aff('0x17')]!==_0x4754ae){const _0x5314eb=this[_0x7aff('0x9')][_0x7aff('0x2')](_0x4754ae,_0x37a06e[_0x7aff('0x74')]),_0x1c204a={'id':_0x37a06e['id'],'diffData':_0x5314eb[_0x7aff('0x94')],'authorsIds':_0x5314eb[_0x7aff('0x13')],'authors':_0x5314eb['authorsIds'][_0x7aff('0xa5')](_0x4d623e=>this[_0x7aff('0x29')]['plugins'][_0x7aff('0x50')](_0x7aff('0xd5'))[_0x7aff('0xcb')](_0x4d623e)),'fromVersion':_0x4754ae};_0x37a06e===this[_0x7aff('0xa0')]&&(_0x1c204a[_0x7aff('0x80')]=new Date(_0x287a13[_0x7aff('0x80')][_0x7aff('0x8c')]()+0xa)),_0x37a06e[_0x7aff('0x98')](_0x1c204a,!0x0),delete _0x1c204a[_0x7aff('0xd8')],_0x3b8c56[_0x7aff('0xd2')](_0x1c204a);}}if(this[_0x7aff('0xb8')]){for(const _0x4a0496 of _0x3b8c56)this['_bufferUpdate'](_0x4a0496['id'],_0x4a0496,!0x0);this[_0x7aff('0x55')]();}return _0x186576;}[_0x7aff('0x8b')](_0x432505){const _0x34952f=this[_0x7aff('0x22')][_0x7aff('0xc0')](_0x432505);return this[_0x7aff('0xb8')]&&_0x34952f['on'](_0x7aff('0x98'),(_0x5346ad,_0x17faaa,_0x375613)=>{_0x375613||(this[_0x7aff('0x79')](_0x17faaa['id'],_0x17faaa,!0x0),this[_0x7aff('0x55')]());}),this[_0x7aff('0x22')][_0x7aff('0x19')](_0x34952f,this[_0x7aff('0x1d')](_0x34952f)),_0x34952f;}async['getRevisionDocumentData'](_0x26be93){await this[_0x7aff('0x35')](_0x26be93);const _0x56d7f7={};for(const _0x503920 in _0x26be93[_0x7aff('0x94')]){if(_0x26be93['diffData'][_0x503920][_0x7aff('0xe0')]&&!_0x26be93[_0x7aff('0x94')][_0x503920]['attachChange'][_0x7aff('0x76')])continue;const _0x5cd274=this[_0x7aff('0xe8')](JSON[_0x7aff('0x59')](_0x26be93[_0x7aff('0x94')][_0x503920][_0x7aff('0xaf')])),_0x3ffcdf=this[_0x7aff('0x29')]['editing'][_0x7aff('0x10')][_0x7aff('0xc')],_0x29bab5=new _0x397dc4(_0x3ffcdf,_0x5cd274[_0x7aff('0xa5')](_0x348f4e=>J(_0x348f4e,this[_0x7aff('0x29')])));this[_0x7aff('0x29')][_0x7aff('0x5d')]['processor']['useFillerType'](_0x7aff('0x25')),_0x56d7f7[_0x503920]=this[_0x7aff('0x29')]['data'][_0x7aff('0xdb')][_0x7aff('0x1')](_0x29bab5),this['editor']['data']['processor'][_0x7aff('0xc5')](_0x7aff('0x36'));}return _0x56d7f7;}async[_0x7aff('0xa9')](_0xda9bd){await this[_0x7aff('0x35')](_0xda9bd);const _0x5dd5da={};for(const _0x3ed048 in _0xda9bd['diffData'])_0xda9bd[_0x7aff('0x94')][_0x3ed048][_0x7aff('0xe0')]&&!_0xda9bd[_0x7aff('0x94')][_0x3ed048]['attachChange']['isAttached']||(_0x5dd5da[_0x3ed048]=_0xda9bd[_0x7aff('0x94')][_0x3ed048]['attributesAfter']||{});return _0x5dd5da;}[_0x7aff('0x55')](){if(0x0===this[_0x7aff('0x3c')][_0x7aff('0x62')])return;if(this[_0x7aff('0x99')])return;let _0xc9a23a=Array[_0x7aff('0x7c')](this['_bufferedUpdates'][_0x7aff('0xba')]());this['_bufferedUpdates'][_0x7aff('0x34')]();for(let _0xdef90c=0x0;_0xdef90c<_0xc9a23a[_0x7aff('0xdc')];_0xdef90c++){const _0x59c3ff=_0xc9a23a[_0xdef90c];let _0x317754=!0x1;for(const _0x1c21d0 of Object[_0x7aff('0x9d')](_0x59c3ff))void 0x0===_0x59c3ff[_0x1c21d0]?delete _0x59c3ff[_0x1c21d0]:'id'!==_0x1c21d0&&(_0x317754=!0x0);_0x317754||(_0xc9a23a[_0xdef90c]=null);}if(_0xc9a23a=_0xc9a23a[_0x7aff('0x90')](_0x135334=>null!==_0x135334),!_0xc9a23a[_0x7aff('0xdc')])return;for(let _0x1401da=0x0;_0x1401da<_0xc9a23a['length'];_0x1401da++){const _0x838fd3=_0xc9a23a[_0x1401da];void 0x0!==_0x838fd3[_0x7aff('0x17')]&&void 0x0===_0x838fd3[_0x7aff('0x74')]&&(_0x838fd3[_0x7aff('0x74')]=this[_0x7aff('0x22')]['getRevision'](_0x838fd3['id'])[_0x7aff('0x74')]),void 0x0!==_0x838fd3['toVersion']&&void 0x0===_0x838fd3[_0x7aff('0x17')]&&(_0x838fd3['fromVersion']=this[_0x7aff('0x22')][_0x7aff('0x38')](_0x838fd3['id'])[_0x7aff('0x17')]);}const _0x570781=this[_0x7aff('0x29')][_0x7aff('0xc7')]['get']('collaboration.channelId');this[_0x7aff('0x99')]=!0x0,this[_0x7aff('0x8')](),this[_0x7aff('0xb8')]['updateRevisions'](_0xc9a23a,_0x570781)['finally'](()=>{this[_0x7aff('0x99')]=!0x1;})[_0x7aff('0x69')](_0xea2bd8=>{if(_0xea2bd8)for(const _0x16037c of _0xea2bd8)this[_0x7aff('0xf6')]({'id':_0x16037c['id'],'createdAt':_0x16037c[_0x7aff('0x80')]});this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x305da7,_0xd2b13f){let _0x572b54=this[_0x7aff('0x29')][_0x7aff('0xc7')][_0x7aff('0x50')](_0x7aff('0x93')),_0x12dca1=this['editor']['config'][_0x7aff('0x50')](_0x7aff('0x1c'));if(void 0x0===_0x572b54){_0x572b54={};for(const _0x13b1ea of this[_0x7aff('0x29')]['model']['document'][_0x7aff('0xd')]())_0x572b54[_0x13b1ea]='';}if(_0x7aff('0x2d')==typeof _0x572b54&&(_0x572b54={'main':_0x572b54}),void 0x0===_0x12dca1){_0x12dca1={};for(const _0x56375b of this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')]['getRootNames']())_0x12dca1[_0x56375b]={};}let _0x5afcc1=!0x1;const _0x2bc054=Object[_0x7aff('0x9d')](_0x572b54),_0x38c706=Object[_0x7aff('0x9d')](_0x305da7);for(const _0x2ebd8e of _0x2bc054){if(_0x572b54[_0x2ebd8e]!==_0x305da7[_0x2ebd8e]&&''!==_0x572b54[_0x2ebd8e][_0x7aff('0x30')]()){_0x5afcc1=!0x0;break;}if(!_0x4a475f(_0x12dca1[_0x2ebd8e],_0xd2b13f[_0x2ebd8e])&&Object[_0x7aff('0x9d')](_0x12dca1[_0x2ebd8e])[_0x7aff('0xdc')]>0x0){_0x5afcc1=!0x0;break;}}_0x5afcc1||(_0x5afcc1=_0x38c706[_0x7aff('0x70')](_0x539272=>!this[_0x7aff('0x29')]['model'][_0x7aff('0xc')][_0x7aff('0xe9')](_0x539272))),_0x5afcc1&&_0x68fee7(_0x7aff('0xe1'),{'editorData':_0x572b54,'editorRootsAttributes':_0x12dca1,'revisionData':_0x305da7,'revisionRootsAttributes':_0xd2b13f}),this[_0x7aff('0x29')][_0x7aff('0xc7')]['set'](_0x7aff('0x93'),_0x305da7),this['editor'][_0x7aff('0xc7')][_0x7aff('0xef')](_0x7aff('0x1c'),_0xd2b13f);}[_0x7aff('0x8')](){if(!this[_0x7aff('0xab')]){const _0x4cb1f9=this[_0x7aff('0x29')][_0x7aff('0xeb')]['get'](_0x7aff('0x5e'));this[_0x7aff('0xab')]=_0x4cb1f9[_0x7aff('0x73')](_0x427c39(this[_0x7aff('0x29')]['locale'],_0x7aff('0x44')));}}[_0x7aff('0x89')](){this[_0x7aff('0xab')]&&(this[_0x7aff('0x29')][_0x7aff('0xeb')][_0x7aff('0x50')]('PendingActions')[_0x7aff('0xa')](this[_0x7aff('0xab')]),this['_pendingAction']=null);}['_findInsertionIndex'](_0x7bf012){const _0x4e596c=this[_0x7aff('0x22')][_0x7aff('0xaa')]();_0x4e596c[_0x7aff('0x51')]();let _0x4d34ee=0x0;for(;_0x4d34ee<_0x4e596c[_0x7aff('0xdc')];){const _0x5d6919=_0x4e596c[_0x4d34ee];if(_0x5d6919===this['currentRevision']){_0x4d34ee++;continue;}if(_0x5d6919['id']===this[_0x7aff('0x81')])break;const _0x12ff52=_0x7bf012[_0x7aff('0x74')]-_0x5d6919[_0x7aff('0x74')]||_0x7bf012[_0x7aff('0x17')]-_0x5d6919[_0x7aff('0x17')];if(_0x12ff52>0x0)break;if(_0x12ff52<0x0)_0x4d34ee++;else{if(!_0x7bf012[_0x7aff('0x2c')]&&_0x5d6919[_0x7aff('0x2c')])break;if(_0x5d6919[_0x7aff('0x2c')]||!_0x7bf012[_0x7aff('0x2c')]){if(_0x7bf012['createdAt']>_0x5d6919[_0x7aff('0x80')])break;_0x4d34ee++;}else _0x4d34ee++;}}return _0x4d34ee;}[_0x7aff('0xf6')](_0x52d74a){const _0x3d2e97=this[_0x7aff('0x22')][_0x7aff('0x38')](_0x52d74a['id']);if(_0x52d74a[_0x7aff('0x80')]&&(_0x52d74a[_0x7aff('0x80')]=new Date(_0x52d74a[_0x7aff('0x80')])),_0x52d74a[_0x7aff('0x13')]){const _0x277f77=this[_0x7aff('0x29')][_0x7aff('0xeb')]['get']('Users');_0x52d74a[_0x7aff('0xd8')]=_0x52d74a[_0x7aff('0x13')][_0x7aff('0xa5')](_0x1fd993=>_0x277f77['getUser'](_0x1fd993));}_0x3d2e97[_0x7aff('0x98')](_0x52d74a,!0x0);}[_0x7aff('0x6c')]({revision:_0x3c5edc=null,from:_0x333838=null,to:_0x4a911c=null}){_0x333838=null!==_0x333838?_0x333838:_0x3c5edc[_0x7aff('0x17')],_0x4a911c=null!==_0x4a911c?_0x4a911c:_0x3c5edc['toVersion'];const _0x51aa27=this[_0x7aff('0x9')][_0x7aff('0x2')](_0x333838,_0x4a911c),_0x170cbe={'diffData':_0x51aa27[_0x7aff('0x94')],'authorsIds':_0x51aa27[_0x7aff('0x13')],'fromVersion':_0x333838,'toVersion':_0x4a911c};if(!_0x3c5edc||_0x4a911c!==_0x3c5edc['toVersion']){const _0x5b70f4=_0x4a911c-0x1,_0x21f479=this[_0x7aff('0xa4')][_0x7aff('0xed')][_0x7aff('0xdd')](_0x5b70f4);_0x170cbe['createdAt']=_0x21f479&&_0x21f479[_0x7aff('0x80')]||new Date();}if(this[_0x7aff('0xfd')]&&_0x333838===this[_0x7aff('0xfd')][_0x7aff('0x17')])for(const _0x26a551 of this[_0x7aff('0xfd')][_0x7aff('0xd8')])_0x170cbe[_0x7aff('0x13')][_0x7aff('0x4b')](_0x26a551['id'])||_0x170cbe[_0x7aff('0x13')][_0x7aff('0xd2')](_0x26a551['id']);return _0x170cbe;}[_0x7aff('0x35')](_0x333c2c){if(!_0x333c2c||_0x333c2c[_0x7aff('0x94')])return Promise[_0x7aff('0x7b')]();{const _0x1b8ecc=this[_0x7aff('0x29')]['config'][_0x7aff('0x50')]('collaboration.channelId');return this['adapter'][_0x7aff('0x38')]({'channelId':_0x1b8ecc,'revisionId':_0x333c2c['id']})['then'](_0x660f2c=>{_0x333c2c['diffData']=_0x660f2c[_0x7aff('0x94')];});}}[_0x7aff('0x79')](_0x4374d2,_0x5a93f8,_0x5524a8){if(this[_0x7aff('0x3c')]['has'](_0x4374d2)){const _0xa3c1c1=this[_0x7aff('0x3c')][_0x7aff('0x50')](_0x4374d2);_0x5a93f8=_0x5524a8?{..._0xa3c1c1,..._0x5a93f8}:{..._0x5a93f8,..._0xa3c1c1};}this[_0x7aff('0x3c')][_0x7aff('0xef')](_0x4374d2,_0x5a93f8);}[_0x7aff('0x7')](_0x23d16a){const _0x5edc3c=this[_0x7aff('0x22')][_0x7aff('0xaa')]();_0x5edc3c[_0x7aff('0x51')](),_0x5edc3c['shift']();const _0x33270d=_0x5edc3c[_0x7aff('0x3d')](_0x261676=>_0x261676[_0x7aff('0x74')]<=_0x23d16a)[_0x7aff('0x74')];return _0x33270d<this[_0x7aff('0x24')]?this[_0x7aff('0x24')]:_0x33270d;}[_0x7aff('0x0')](_0x44423f){const _0x4b8cb1=this[_0x7aff('0x22')][_0x7aff('0x38')](this[_0x7aff('0x22')][_0x7aff('0xdc')]-0x1);if(_0x4b8cb1)this[_0x7aff('0x81')]=_0x4b8cb1['id'];else{const _0x20b28e=!this[_0x7aff('0x29')][_0x7aff('0xcf')]['document'][_0x7aff('0x91')][_0x7aff('0x3d')](_0x160b3d=>this[_0x7aff('0x29')][_0x7aff('0xcf')]['hasContent'](_0x160b3d)),_0x3dffa3=this['editor'][_0x7aff('0xeb')][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0xb05682=_0x427c39(this[_0x7aff('0x29')]['locale'],_0x20b28e?_0x7aff('0x6d'):'Initial\x20revision');this['_makeRevision']({'from':_0x44423f,'to':_0x44423f,'id':this[_0x7aff('0x81')],'name':_0xb05682,'creatorId':_0x3dffa3});}}[_0x7aff('0xb2')](_0x34549e){const _0x4deda7=this[_0x7aff('0xa4')][_0x7aff('0xb5')]();this[_0x7aff('0xa0')]=this[_0x7aff('0x22')][_0x7aff('0x38')](_0x4deda7),this[_0x7aff('0xa0')]||(this['currentRevision']=this[_0x7aff('0x3e')]({'from':_0x34549e,'to':_0x34549e,'id':_0x4deda7,'name':'','creatorId':null}));}[_0x7aff('0x3e')]({name:_0x3b1196,from:_0x344e71,to:_0x4f49c9,creatorId:_0x4951d0,id:_0x315eac}){const _0x2ff13e=this[_0x7aff('0x6c')]({'from':_0x344e71,'to':_0x4f49c9});_0x2ff13e[_0x7aff('0x4')]=_0x3b1196,_0x2ff13e['creatorId']=_0x4951d0,_0x2ff13e['id']=_0x315eac;const _0xe4aff8=this['addRevisionData'](_0x2ff13e);return this[_0x7aff('0xb8')]&&this[_0x7aff('0x79')](_0x2ff13e['id'],_0x2ff13e,!0x0),_0xe4aff8;}[_0x7aff('0x31')](){this[_0x7aff('0x29')][_0x7aff('0xec')][_0x7aff('0xf')](_0x7aff('0xf3'))[_0x7aff('0xfc')]({'model':_0x7aff('0x84')});}[_0x7aff('0xe8')](_0x580797){return(_0x580797=_0x580797[_0x7aff('0x90')](_0x57d76e=>!_0x57d76e[_0x7aff('0x4')]||'revision-start'!==_0x57d76e['name']&&_0x7aff('0xe5')!==_0x57d76e['name']))[_0x7aff('0x5c')](_0x3bccad=>{'string'!=typeof _0x3bccad&&(_0x3bccad[_0x7aff('0x3a')]=this['_removeRevisionMarkers'](_0x3bccad[_0x7aff('0x3a')]),_0x3bccad[_0x7aff('0x85')]=_0x3bccad['attributes'][_0x7aff('0x90')](_0x1c9e1e=>!_0x1c9e1e[0x0][_0x7aff('0x18')](_0x7aff('0xb0'))));}),_0x580797;}}function J(_0x54d4c0,_0x182b36){const _0x520a0d=_0x182b36[_0x7aff('0x14')][_0x7aff('0x10')][_0x7aff('0xc')];if(_0x7aff('0x2d')==typeof _0x54d4c0)return new _0x28ab94(_0x520a0d,_0x54d4c0);{const _0x4d178f=_0x54d4c0[_0x7aff('0x3a')]['map'](_0x1b9ad5=>J(_0x1b9ad5,_0x182b36));return new(B[_0x54d4c0[(_0x7aff('0x9b'))]]||_0x18ea86)(_0x520a0d,_0x54d4c0[_0x7aff('0x4')],_0x54d4c0[_0x7aff('0x85')],_0x4d178f);}}class H{constructor(_0x45c3d3){this[_0x7aff('0x29')]=_0x45c3d3,this[_0x7aff('0x28')]=new Map(),this[_0x7aff('0xfb')]=-0x1,this[_0x7aff('0x7d')]=-0x1,this[_0x7aff('0xb9')]=new Map(),this[_0x7aff('0x32')]=new Map(),this[_0x7aff('0xc3')]=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x7aff('0x4c')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x7aff('0xf0')]=new Map(),this[_0x7aff('0x77')]=new Map(),this[_0x7aff('0x21')]=new Map(),this[_0x7aff('0xa7')]=0x1;}[_0x7aff('0xbc')](_0x2c1561){this[_0x7aff('0x71')]=_0x2c1561;const _0x55138e=new Map(),_0x1a445e=new Map(),_0x2a164b=this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')]['roots']['map'](_0x233094=>_0x233094['rootName']);for(const _0x276eab of _0x2a164b){const _0x5a4bcb=this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0xc')][_0x7aff('0xe9')](_0x276eab),_0x19a2a1=q(_0x5a4bcb);_0x55138e[_0x7aff('0xef')](_0x276eab,_0x19a2a1),_0x1a445e[_0x7aff('0xef')](_0x276eab,Object[_0x7aff('0xf8')](_0x5a4bcb[_0x7aff('0xea')]()));}const _0x40fac1=Array[_0x7aff('0x7c')](this['editor'][_0x7aff('0xcf')][_0x7aff('0xf4')])[_0x7aff('0xa5')](_0x10bbad=>[_0x10bbad[_0x7aff('0x4')],_0x10bbad['getRange']()]),_0x101542=this['source'][_0x7aff('0xfa')];this[_0x7aff('0x41')](_0x101542,_0x55138e,_0x40fac1,_0x1a445e),this[_0x7aff('0x26')]=this['_revisionId'];const _0x233226=new Map(),_0x24b2f3=new Map();for(const _0x3826b0 of _0x2a164b){const _0x4a408b=G(_0x3826b0);_0x233226[_0x7aff('0xef')](_0x3826b0,_0x4a408b),_0x24b2f3[_0x7aff('0xef')](_0x3826b0,{});}this[_0x7aff('0x41')](Number[_0x7aff('0xd9')],_0x233226,[],_0x24b2f3);}[_0x7aff('0x2')](_0x3babe8,_0x1e17c6){if(this[_0x7aff('0xfb')]===_0x3babe8&&this[_0x7aff('0x7d')]<=_0x1e17c6)this[_0x7aff('0x28')][_0x7aff('0x62')]>0x1&&this['_removeMetaData'](this['_lastTo']),this[_0x7aff('0x8d')](this['_lastTo'],_0x1e17c6,!0x0);else{if(!this[_0x7aff('0x28')][_0x7aff('0x54')](_0x3babe8)){const _0x5aa1cb=this[_0x7aff('0x43')](_0x3babe8);this['_calculateMetaData'](_0x5aa1cb,_0x3babe8,!0x1);}this['_calculateMetaData'](_0x3babe8,_0x1e17c6,!0x0);}return this['_lastFrom']=_0x3babe8,this[_0x7aff('0x7d')]=_0x1e17c6,this['_getState']();}['loadState'](_0x784e){this[_0x7aff('0xb')](),this[_0x7aff('0xfb')]=_0x784e[_0x7aff('0x17')],this[_0x7aff('0x7d')]=_0x784e['toVersion'];for(const _0xd65217 in _0x784e[_0x7aff('0x94')]){const _0x45abb3=_0x784e['diffData'][_0xd65217][_0x7aff('0xe0')],_0x4f199e=_0x53c182(_0x784e[_0x7aff('0x94')][_0xd65217][_0x7aff('0x72')])||{},_0x5145dc=this[_0x7aff('0x4f')](_0x784e['diffData'][_0xd65217][_0x7aff('0xda')]);_0x5145dc[_0x7aff('0x20')]=_0xd65217,_0x5145dc[_0x7aff('0x52')]=!_0x45abb3||!_0x45abb3[_0x7aff('0x76')],_0x5145dc[_0x7aff('0x76')]=()=>_0x5145dc[_0x7aff('0x52')],this['_baseRoots'][_0x7aff('0xef')](_0xd65217,_0x5145dc),this[_0x7aff('0x8a')][_0x7aff('0xef')](_0xd65217,_0x4f199e),_0x45abb3&&this[_0x7aff('0x21')][_0x7aff('0xef')](_0xd65217,_0x45abb3);const _0xc4671b=this[_0x7aff('0x6')](_0x5145dc);this['_baseIdsRoots'][_0x7aff('0xef')](_0xd65217,_0xc4671b);for(const [_0x39b2bb,_0x4dbe01]of _0x5145dc[_0x7aff('0xf4')]){if(!_0x39b2bb[_0x7aff('0x18')](_0x7aff('0x87')))continue;const _0x4874a5=_0x39b2bb[_0x7aff('0xee')](':')[0x2];for(const _0x2f0d64 of _0x4dbe01[_0x7aff('0xac')]({'singleCharacters':!0x0})){const _0xf70d7f=this[_0x7aff('0xd3')](_0x2f0d64),_0x21b8a4=_0x7aff('0x2f')==_0x2f0d64[_0x7aff('0x9b')]?_0x2f0d64[_0x7aff('0x3')][_0x7aff('0x5b')][_0x7aff('0x9f')](0x0,-0x1):_0x2f0d64[_0x7aff('0x3')]['path'],_0x1d972a=_0xc4671b[_0x7aff('0x95')](_0x21b8a4)[_0x7aff('0xbe')](_0xf70d7f);this['_touched'][_0x7aff('0xef')](_0x1d972a,{'userId':_0x4874a5});}}}this[_0x7aff('0x26')]=this['_revisionId'];const _0x5d7b97=[...Array(this[_0x7aff('0xa7')])[_0x7aff('0x9d')]()][_0x7aff('0x9f')](0x1)['filter'](_0x14f523=>!this[_0x7aff('0xf0')][_0x7aff('0x54')](_0x14f523));let _0x1ac6ce=0x0;const _0x2564b2=new Map();for(const _0x58e03b in _0x784e[_0x7aff('0x94')]){const _0x234b86=_0x784e[_0x7aff('0x94')][_0x58e03b][_0x7aff('0xe0')],_0x28b33b=_0x53c182(_0x784e[_0x7aff('0x94')][_0x58e03b]['attributesAfter'])||{},_0x33dc17=this['_makeModelFromViewString'](_0x784e['diffData'][_0x58e03b][_0x7aff('0xaf')]);_0x33dc17[_0x7aff('0x20')]=_0x58e03b,_0x33dc17[_0x7aff('0x52')]=!_0x234b86||_0x234b86[_0x7aff('0x76')],_0x33dc17[_0x7aff('0x76')]=()=>_0x33dc17[_0x7aff('0x52')],this['_diffRoots'][_0x7aff('0xef')](_0x58e03b,_0x33dc17),this[_0x7aff('0xc3')][_0x7aff('0xef')](_0x58e03b,_0x28b33b);const _0x204418=this[_0x7aff('0x6')](_0x33dc17,Number[_0x7aff('0xd9')]);this[_0x7aff('0x4c')][_0x7aff('0xef')](_0x58e03b,_0x204418),_0x2564b2['set'](_0x58e03b,_0x33dc17[_0x7aff('0x76')]()?_0x28b33b:{});for(const [_0xb0bb0e,_0x33bf9c]of _0x33dc17['markers']){if(!_0xb0bb0e[_0x7aff('0x18')]('revision:'))continue;const _0x2659c4=_0xb0bb0e['split'](':')[0x2];for(const _0x99f06f of _0x33bf9c[_0x7aff('0xac')]({'singleCharacters':!0x0})){const _0x3670fc=this[_0x7aff('0xd3')](_0x99f06f),_0xa7b63a=this[_0x7aff('0xa7')]++,_0x2ff25a='elementEnd'==_0x99f06f[_0x7aff('0x9b')]?_0x99f06f[_0x7aff('0x3')][_0x7aff('0x5b')][_0x7aff('0x9f')](0x0,-0x1):_0x99f06f[_0x7aff('0x3')]['path'];_0x204418[_0x7aff('0x95')](_0x2ff25a)['_setAttribute'](_0x3670fc,_0xa7b63a),this[_0x7aff('0xf0')][_0x7aff('0xef')](_0xa7b63a,{'userId':_0x2659c4});}}for(const _0x300f4a of this['editor'][_0x7aff('0xcf')][_0x7aff('0xbb')](_0x33dc17)[_0x7aff('0xac')]({'singleCharacters':!0x0})){const _0x112a12=this[_0x7aff('0xd3')](_0x300f4a),_0x384a20=_0x7aff('0x2f')==_0x300f4a[_0x7aff('0x9b')]?_0x300f4a['previousPosition']['path']['slice'](0x0,-0x1):_0x300f4a[_0x7aff('0x3')]['path'],_0x5012dd=_0x204418[_0x7aff('0x95')](_0x384a20);_0x5012dd[_0x7aff('0xbe')](_0x112a12)>0x0||_0x5012dd[_0x7aff('0xa6')](_0x112a12,_0x5d7b97[_0x1ac6ce++]);}for(const [_0x34a0eb,_0x4a7596]of _0x33dc17['markers'])_0x34a0eb[_0x7aff('0x18')](_0x7aff('0x87'))||this[_0x7aff('0xb9')]['set'](_0x34a0eb,_0x4a7596);}const _0x42fce5=G(_0x7aff('0xfe'));this[_0x7aff('0xde')][_0x7aff('0xef')](_0x7aff('0xfe'),_0x42fce5),this[_0x7aff('0xad')][_0x7aff('0xef')]('$graveyard',this[_0x7aff('0x6')](_0x42fce5,0x1));const _0x40a072=G(_0x7aff('0xfe'));this[_0x7aff('0x32')][_0x7aff('0xef')](_0x7aff('0xfe'),_0x40a072),this[_0x7aff('0x4c')][_0x7aff('0xef')](_0x7aff('0xfe'),this[_0x7aff('0x6')](_0x40a072,0x1));const _0x143bc7=Array[_0x7aff('0x7c')](this[_0x7aff('0x32')])[_0x7aff('0xa5')](([_0x1831df,_0x31e3eb])=>[_0x1831df,q(_0x31e3eb)]);this[_0x7aff('0x41')](this[_0x7aff('0x7d')],_0x143bc7,this['_markers'],_0x2564b2);}[_0x7aff('0x4f')](_0x3e6ddf){const _0x326210=JSON['parse'](_0x3e6ddf),_0x490df5=this[_0x7aff('0x29')][_0x7aff('0x14')][_0x7aff('0x10')][_0x7aff('0xc')],_0x1a8d8f=new _0x397dc4(_0x490df5,_0x326210[_0x7aff('0xa5')](_0x1d29e8=>J(_0x1d29e8,this[_0x7aff('0x29')])));return this[_0x7aff('0x29')][_0x7aff('0x5d')][_0x7aff('0xa2')](_0x1a8d8f);}[_0x7aff('0x41')](_0x829d9e,_0x271e32,_0x5e0bea,_0x4fb22b){const _0x2fbe22=new Map(_0x271e32),_0x21da35=new Map(_0x53c182(_0x4fb22b)),_0x45028e=new Map();for(const [_0x52aa9c,_0x1f479a]of _0x5e0bea)_0x45028e[_0x7aff('0xef')](_0x52aa9c,{'start':_0x1f479a[_0x7aff('0xc2')][_0x7aff('0x2a')](),'end':_0x1f479a[_0x7aff('0xb4')][_0x7aff('0x2a')](),'rootName':_0x1f479a['root']['rootName']});this[_0x7aff('0x28')][_0x7aff('0xef')](_0x829d9e,{'roots':_0x2fbe22,'markers':_0x45028e,'rootsAttributes':_0x21da35});}[_0x7aff('0x64')](_0x481eb8){this['_savedMetaData'][_0x7aff('0x1f')](_0x481eb8);}[_0x7aff('0xf1')](){this[_0x7aff('0xb')](),this[_0x7aff('0xfb')]=-0x1,this['_lastTo']=-0x1,this[_0x7aff('0x28')][_0x7aff('0x34')](),this[_0x7aff('0xbc')](this[_0x7aff('0x71')]);}[_0x7aff('0xb')](){this[_0x7aff('0xf0')]['clear'](),this['_touchedMarkers'][_0x7aff('0x34')](),this[_0x7aff('0x21')][_0x7aff('0x34')](),this[_0x7aff('0x32')][_0x7aff('0x34')](),this['_diffRootsAttributes']['clear'](),this[_0x7aff('0xde')]['clear'](),this['_baseRootsAttributes'][_0x7aff('0x34')](),this[_0x7aff('0x4c')]['clear'](),this['_baseIdsRoots'][_0x7aff('0x34')](),this['_markers']['clear'](),this[_0x7aff('0xa7')]=0x1,this[_0x7aff('0x26')]=this[_0x7aff('0xa7')];}['_makeIdsRoot'](_0xae54f4,_0x1f4631=null){let _0x389268=null;_0xae54f4['is'](_0x7aff('0xc8'))||(_0x389268=new _0x371ba5(_0xae54f4['name'],{'vid_start':null===_0x1f4631?this[_0x7aff('0xa7')]++:_0x1f4631++}));const _0x4cf41a=[];for(const _0x1fd3de of _0xae54f4[_0x7aff('0xae')]())if(_0x1fd3de['is'](_0x7aff('0x47'))){_0x4cf41a[_0x7aff('0xd2')](this[_0x7aff('0x6')](_0x1fd3de,_0x1f4631));const _0x25fff1=_0x4cf41a[_0x4cf41a[_0x7aff('0xdc')]-0x1];null!==_0x1f4631&&(_0x1f4631=_0x25fff1['is'](_0x7aff('0x47'),_0x7aff('0x56'))?_0x25fff1['getAttribute']('vid')+0x1:_0x25fff1[_0x7aff('0xbe')]('vid_end')+0x1);}else for(let _0xddce3b=0x0;_0xddce3b<_0x1fd3de[_0x7aff('0x86')];_0xddce3b++)_0x4cf41a[_0x7aff('0xd2')](new _0x371ba5(_0x7aff('0x56'),{'vid':null===_0x1f4631?this['_revisionId']++:_0x1f4631++}));if(_0xae54f4['is'](_0x7aff('0xc8'))){const _0x2d509d=G(_0xae54f4[_0x7aff('0x20')]);return _0x2d509d[_0x7aff('0xca')](0x0,_0x4cf41a),_0x2d509d;}return _0x389268[_0x7aff('0xa6')]('vid_end',null===_0x1f4631?this[_0x7aff('0xa7')]++:_0x1f4631++),_0x389268['_insertChild'](0x0,_0x4cf41a),_0x389268;}['_calculateMetaData'](_0x3f915b,_0x6a61eb,_0x2d42b7){this[_0x7aff('0xb')]();const {roots:_0x2fc70a,markers:_0x3f1631,rootsAttributes:_0xaf543e}=this[_0x7aff('0x28')][_0x7aff('0x50')](_0x3f915b);this['_baseRoots']=new Map(_0x2fc70a),this[_0x7aff('0x8a')]=new Map(_0x53c182(_0xaf543e));for(const [_0x25b7f5,_0x226231]of this['_baseRoots'])if(_0x7aff('0xfe')!==_0x25b7f5&&(this['_diffRoots'][_0x7aff('0xef')](_0x25b7f5,q(_0x226231)),this[_0x7aff('0xc3')]=new Map(_0x53c182(_0xaf543e)),_0x2d42b7)){const _0x2049d9=this[_0x7aff('0xa7')];this['_idsRoots'][_0x7aff('0xef')](_0x25b7f5,this[_0x7aff('0x6')](_0x226231)),this['_baseIdsRoots']['set'](_0x25b7f5,this['_makeIdsRoot'](_0x226231,_0x2049d9));}this[_0x7aff('0x26')]=this['_revisionId'],this[_0x7aff('0x32')][_0x7aff('0xef')](_0x7aff('0xfe'),q(this[_0x7aff('0xde')]['get']('$graveyard'))),_0x2d42b7&&this[_0x7aff('0x4c')][_0x7aff('0xef')](_0x7aff('0xfe'),this['_makeIdsRoot'](this[_0x7aff('0xde')][_0x7aff('0x50')]('$graveyard')));for(const [_0x4cf8eb,_0x5c47cd]of _0x3f1631){const _0x5d0008=this['_baseRoots'][_0x7aff('0x50')](_0x5c47cd[_0x7aff('0x20')]),_0x5a0eb6=this[_0x7aff('0x32')][_0x7aff('0x50')](_0x5c47cd[_0x7aff('0x20')]),_0xce371a=new _0x23cb2f(this[_0x7aff('0xce')](_0x5c47cd[_0x7aff('0xc2')],_0x5d0008),this['_fixPosition'](_0x5c47cd['end'],_0x5d0008)),_0x54ae6d=this['_fixRange'](_0xce371a,_0x5a0eb6);_0x5d0008['markers']['set'](_0x4cf8eb,_0xce371a),this[_0x7aff('0xb9')][_0x7aff('0xef')](_0x4cf8eb,_0x54ae6d);}this[_0x7aff('0x8d')](_0x3f915b,_0x6a61eb,_0x2d42b7);}['_applyOperations'](_0x4ff6ce,_0xc7efa6,_0x7712a3){for(const _0x334c89 of this['source'][_0x7aff('0x65')](_0x4ff6ce,_0xc7efa6))this[_0x7aff('0x1e')](_0x334c89,_0x7712a3);for(const _0x7698f9 of this[_0x7aff('0x32')][_0x7aff('0xba')]())_0x7698f9[_0x7aff('0xf4')][_0x7aff('0x34')]();for(const [_0x9ab5be,_0xeb09ef]of this[_0x7aff('0xb9')]){this[_0x7aff('0x32')][_0x7aff('0x50')](_0xeb09ef['root'][_0x7aff('0x20')])[_0x7aff('0xf4')][_0x7aff('0xef')](_0x9ab5be,_0xeb09ef['clone']());}const _0x214273=new Map(),_0x12ffc4=new Map();for(const [_0x30812c,_0x140a65]of this[_0x7aff('0x32')])_0x214273[_0x7aff('0xef')](_0x30812c,q(_0x140a65)),_0x12ffc4[_0x7aff('0xef')](_0x30812c,this[_0x7aff('0xc3')][_0x7aff('0x50')](_0x30812c));this[_0x7aff('0x41')](_0xc7efa6,_0x214273,this[_0x7aff('0xb9')],_0x12ffc4);}['_getPreviousFrom'](_0x104fc7){const _0x841f06=Array[_0x7aff('0x7c')](this[_0x7aff('0x28')][_0x7aff('0x9d')]());_0x841f06[_0x7aff('0xe4')]((_0x2aaf47,_0x209866)=>_0x2aaf47-_0x209866),_0x841f06[_0x7aff('0x51')]();for(const _0x5902c4 of _0x841f06)if(_0x5902c4<_0x104fc7)return _0x5902c4;return Number[_0x7aff('0xd9')];}['_copyMarkers'](_0x405d57,_0x4bfc39){const _0xde6cdd=Array['from'](_0x4bfc39[_0x7aff('0xf4')])['map'](([_0x40f7f4,_0x2c1355])=>[_0x40f7f4,this[_0x7aff('0x46')](_0x2c1355,_0x405d57)]);_0x405d57[_0x7aff('0xf4')]=new Map(_0xde6cdd);}['_transformMarkers'](_0x195ea6){for(const _0x4321b8 of this[_0x7aff('0xb9')][_0x7aff('0xba')]()){const _0x1972ee=_0x4321b8[_0x7aff('0x16')](_0x195ea6),_0x5866a3=_0x23cb2f['_createFromRanges'](_0x1972ee);_0x4321b8[_0x7aff('0xc2')]=_0x5866a3[_0x7aff('0xc2')],_0x4321b8[_0x7aff('0xb4')]=_0x5866a3['end'];}}[_0x7aff('0x1e')](_0x23bd3b,_0x50d457){if(_0x7aff('0x3f')==_0x23bd3b[_0x7aff('0x9b')]||'detachRoot'==_0x23bd3b[_0x7aff('0x9b')])return void this['_handleRootOperation'](_0x23bd3b,_0x50d457);if('insert'==_0x23bd3b['type']){const _0x26b3bf=_0x23bd3b['position']['root'][_0x7aff('0x20')];this[_0x7aff('0x32')][_0x7aff('0x54')](_0x26b3bf)||(this['_diffRoots'][_0x7aff('0xef')](_0x26b3bf,G(_0x26b3bf,!0x0)),this[_0x7aff('0xc3')][_0x7aff('0xef')](_0x26b3bf,{}),_0x50d457&&this[_0x7aff('0x4c')][_0x7aff('0xef')](_0x26b3bf,G(_0x26b3bf,!0x0)));}else{if('addRootAttribute'==_0x23bd3b['type']||_0x7aff('0xf7')==_0x23bd3b[_0x7aff('0x9b')]||_0x7aff('0x66')==_0x23bd3b[_0x7aff('0x9b')])return void this[_0x7aff('0x61')](_0x23bd3b);}const _0x341042=this[_0x7aff('0x9a')](_0x23bd3b,this[_0x7aff('0x32')]);if(_0x7aff('0x12')!==_0x23bd3b[_0x7aff('0x9b')]&&(_0x341042[_0x7aff('0x45')](),this[_0x7aff('0x23')](_0x341042)),_0x50d457)switch(_0x341042[_0x7aff('0x9b')]){case _0x7aff('0x6e'):this[_0x7aff('0x6f')](_0x23bd3b);break;case _0x7aff('0x67'):case _0x7aff('0xa'):case'reinsert':this[_0x7aff('0x88')](_0x23bd3b);break;case'merge':this[_0x7aff('0x40')](_0x23bd3b);break;case _0x7aff('0xee'):this['_handleSplitOperation'](_0x23bd3b);break;case _0x7aff('0x12'):this[_0x7aff('0xd1')](_0x23bd3b);}}[_0x7aff('0x9a')](_0x4178f1,_0x575e0d){const _0x5cb4d4=_0x4178f1[_0x7aff('0x2a')]();return _0x5cb4d4[_0x7aff('0x57')]=_0x4178f1[_0x7aff('0x57')],this['_fixOperation'](_0x5cb4d4,_0x575e0d),_0x5cb4d4;}[_0x7aff('0x4e')](_0x4191d0){return _0x4191d0[_0x7aff('0xa5')](_0x36c820=>{const _0x2dd7ef=this[_0x7aff('0xd3')](_0x36c820);return Number(_0x36c820['item'][_0x7aff('0xbe')](_0x2dd7ef));});}[_0x7aff('0xc1')](_0x44bfe4,_0x51ff93){if(_0x44bfe4['is'](_0x7aff('0x47'),_0x7aff('0x56')))_0x51ff93[_0x7aff('0xd2')]({'item':_0x44bfe4,'type':_0x7aff('0x33')});else{_0x44bfe4['is']('element')&&_0x51ff93[_0x7aff('0xd2')]({'item':_0x44bfe4,'type':_0x7aff('0x7e')});for(const _0x50b369 of _0x44bfe4[_0x7aff('0xae')]())this[_0x7aff('0xc1')](_0x50b369,_0x51ff93);_0x44bfe4['is'](_0x7aff('0x47'))&&_0x51ff93[_0x7aff('0xd2')]({'item':_0x44bfe4,'type':_0x7aff('0x2f')});}return _0x51ff93;}[_0x7aff('0x1a')](){const _0x5aafc4=new Map(this[_0x7aff('0xf0')]),_0x3e95c8=new Map(_0x5aafc4),_0x1900e7=new Map(),_0x57443a={'insertions':{},'deletions':{}},_0x2c6421={'insertions':{},'deletions':{}},_0x5d7a2a=new Map(),_0x40c921=new Set([...this[_0x7aff('0xde')][_0x7aff('0x9d')](),...this[_0x7aff('0x32')][_0x7aff('0x9d')]()]);_0x40c921[_0x7aff('0x1f')](_0x7aff('0xfe'));for(const _0x15d1e1 of _0x40c921){const _0x130a19=this[_0x7aff('0x32')][_0x7aff('0x50')](_0x15d1e1)||G(_0x15d1e1,!0x1),_0x3a104c=this['_baseRoots'][_0x7aff('0x50')](_0x15d1e1)||G(_0x15d1e1,!0x1);_0x130a19[_0x7aff('0x76')]()||_0x3a104c[_0x7aff('0x76')]()?(_0x57443a['insertions'][_0x15d1e1]=q(_0x130a19),_0x57443a['deletions'][_0x15d1e1]=q(_0x3a104c),this['_copyMarkers'](_0x57443a[_0x7aff('0xda')][_0x15d1e1],_0x3a104c),this[_0x7aff('0xcd')](_0x57443a[_0x7aff('0xaf')][_0x15d1e1],_0x130a19),_0x2c6421[_0x7aff('0xaf')][_0x15d1e1]=this[_0x7aff('0xc1')](this[_0x7aff('0x4c')][_0x7aff('0x50')](_0x15d1e1),[]),_0x2c6421[_0x7aff('0xda')][_0x15d1e1]=this['_generateTape'](this[_0x7aff('0xad')][_0x7aff('0x50')](_0x15d1e1)||G(_0x15d1e1,!0x1),[])):_0x40c921[_0x7aff('0x1f')](_0x15d1e1);}for(const _0x28260c of _0x40c921){const _0x4c741d=_0x2c6421[_0x7aff('0xaf')][_0x28260c];for(const _0x35af51 of _0x4c741d){const _0xce8c5d=this[_0x7aff('0xd3')](_0x35af51),_0x3d6a15=_0x35af51['item'][_0x7aff('0xbe')](_0xce8c5d);_0x3e95c8[_0x7aff('0x1f')](_0x3d6a15),_0x3d6a15>=this[_0x7aff('0x26')]&&_0x1900e7[_0x7aff('0xef')](_0x3d6a15,_0x5aafc4[_0x7aff('0x50')](_0x3d6a15));}}for(const _0x169629 of _0x40c921){const _0x2478f4=_0x2c6421['insertions'][_0x169629],_0x4809b5=this[_0x7aff('0x4e')](_0x2c6421['deletions'][_0x169629]);let _0x5a84df=0x0;for(const _0x1f1a0b of _0x2478f4){const _0x52b170=this[_0x7aff('0xd3')](_0x1f1a0b),_0x1786f2=_0x1f1a0b[_0x7aff('0x68')][_0x7aff('0xbe')](_0x52b170);if(!_0x1900e7[_0x7aff('0x54')](_0x1786f2)&&!_0x5d7a2a[_0x7aff('0x54')](_0x1786f2)){if(_0x3e95c8[_0x7aff('0x54')](_0x1786f2))_0x5a84df++;else{if(_0x1786f2!=_0x4809b5[_0x5a84df]){const _0x1c3d8d=_0x5aafc4['get'](_0x1786f2)||_0x5aafc4['get'](_0x4809b5[_0x5a84df]);for(;_0x1786f2!=_0x4809b5[_0x5a84df];)_0x3e95c8['has'](_0x4809b5[_0x5a84df])||(_0x5d7a2a[_0x7aff('0xef')](_0x4809b5[_0x5a84df],_0x1c3d8d),_0x5aafc4[_0x7aff('0xef')](_0x4809b5[_0x5a84df],_0x1c3d8d)),_0x5a84df++;}_0x5a84df++;}}}}for(const _0x44a015 of _0x40c921){const _0x8c678b=_0x2c6421[_0x7aff('0xaf')][_0x44a015];for(const _0x2b26f0 of _0x8c678b){const _0x16b5f0=this[_0x7aff('0xd3')](_0x2b26f0),_0x26bdf1=_0x2b26f0[_0x7aff('0x68')]['getAttribute'](_0x16b5f0);if(_0x5d7a2a['has'](_0x26bdf1)){const _0x105f3d=_0x5d7a2a['get'](_0x26bdf1);_0x3e95c8[_0x7aff('0x54')](_0x26bdf1)||_0x3e95c8['set'](_0x26bdf1,{..._0x105f3d}),_0x1900e7[_0x7aff('0xef')](_0x26bdf1,{..._0x105f3d});}}}for(const _0x34664b of _0x3e95c8['keys']())_0x34664b>=this[_0x7aff('0x26')]&&_0x3e95c8['delete'](_0x34664b);const _0x440c08=new Map();for(const _0x10f797 of _0x40c921){let _0x640857=_0x2c6421[_0x7aff('0xaf')][_0x10f797];for(const _0x14388a of _0x640857)if(_0x14388a[_0x7aff('0x68')]['is'](_0x7aff('0x47'),_0x7aff('0xdf'))){const _0x40839c=this[_0x7aff('0xd3')](_0x14388a),_0x47436=_0x14388a[_0x7aff('0x68')]['getAttribute'](_0x40839c);if(_0x1900e7['has'](_0x47436)){const _0x54d236=_0x14388a['item']['parent']['parent'][_0x7aff('0xbe')](_0x7aff('0xf9')),_0x58259d=_0x440c08[_0x7aff('0x50')](_0x54d236)||new Set();_0x58259d[_0x7aff('0x73')](_0x1900e7[_0x7aff('0x50')](_0x47436)['userId']),_0x440c08['set'](_0x54d236,_0x58259d);}}_0x640857=_0x2c6421[_0x7aff('0xda')][_0x10f797];for(const _0x490a4d of _0x640857)if(_0x490a4d[_0x7aff('0x68')]['is']('element',_0x7aff('0xdf'))){const _0xd2cf60=this['_getVidAttributeName'](_0x490a4d),_0x5ba3d8=_0x490a4d[_0x7aff('0x68')][_0x7aff('0xbe')](_0xd2cf60);if(_0x3e95c8[_0x7aff('0x54')](_0x5ba3d8)){const _0x5a9ea0=_0x490a4d['item']['parent']['parent'][_0x7aff('0xbe')](_0x7aff('0xf9')),_0x524386=_0x440c08[_0x7aff('0x50')](_0x5a9ea0)||new Set();_0x524386[_0x7aff('0x73')](_0x3e95c8[_0x7aff('0x50')](_0x5ba3d8)['userId']),_0x440c08[_0x7aff('0xef')](_0x5a9ea0,_0x524386);}}for(const _0x182584 of _0x440c08[_0x7aff('0x9d')]())(_0x1900e7[_0x7aff('0x54')](_0x182584)||_0x3e95c8['has'](_0x182584))&&_0x440c08['delete'](_0x182584);}for(const _0x1cf364 of _0x40c921){const _0x4f4a32=_0x2c6421['insertions'][_0x1cf364];let _0x7aa88=null,_0x29e7c4=null;for(const _0x27e3ab of _0x4f4a32){const _0x1bcdb7=this[_0x7aff('0xd3')](_0x27e3ab),_0x3ec6e2=_0x27e3ab[_0x7aff('0x68')][_0x7aff('0xbe')](_0x1bcdb7),_0x178412=_0x440c08[_0x7aff('0x50')](_0x3ec6e2);_0x178412&&'elementStart'==_0x27e3ab['type']&&(_0x7aa88=Array[_0x7aff('0x7c')](_0x178412)[0x0],_0x29e7c4=_0x27e3ab['item'][_0x7aff('0xbe')](_0x7aff('0x2b'))),_0x7aa88&&(_0x3e95c8[_0x7aff('0xef')](_0x3ec6e2,{'userId':_0x7aa88}),_0x1900e7[_0x7aff('0xef')](_0x3ec6e2,{'userId':_0x7aa88})),_0x3ec6e2==_0x29e7c4&&(_0x7aa88=null,_0x29e7c4=null);}}const _0x2e55b4={},_0x311705=new Set();for(const _0x494616 of _0x40c921){const _0x218153=_0x57443a[_0x7aff('0xda')][_0x494616],_0x56cea9=_0x57443a['insertions'][_0x494616];for(const {userId:_0x4237f9}of this[_0x7aff('0x77')][_0x7aff('0xba')]())null!==_0x4237f9&&_0x311705[_0x7aff('0x73')](_0x4237f9);for(const {userId:_0x4e708a}of this[_0x7aff('0x21')][_0x7aff('0xba')]())null!==_0x4e708a&&_0x311705[_0x7aff('0x73')](_0x4e708a);this['_markChanges'](_0x56cea9,_0x2c6421['insertions'][_0x494616],_0x1900e7,'insertion',_0x311705),this['_markChanges'](_0x218153,_0x2c6421[_0x7aff('0xda')][_0x494616],_0x3e95c8,_0x7aff('0x5'),_0x311705),_0x2e55b4[_0x494616]={'insertions':this[_0x7aff('0x82')](_0x56cea9),'deletions':this[_0x7aff('0x82')](_0x218153),'attachChange':this[_0x7aff('0x21')][_0x7aff('0x50')](_0x494616)||null,'attributesBefore':_0x53c182(this[_0x7aff('0x8a')][_0x7aff('0x50')](_0x494616))||{},'attributesAfter':_0x53c182(this[_0x7aff('0xc3')][_0x7aff('0x50')](_0x494616))};}return{'diffData':_0x2e55b4,'authorsIds':Array[_0x7aff('0x7c')](_0x311705)};}['_processRootBeforeSave'](_0x5d3192){for(const [,_0x89389a]of _0x5d3192['markers']){const _0x108834=_0x89389a[_0x7aff('0xc2')]['getAncestors']()[_0x7aff('0x90')](_0x15a222=>_0x7aff('0xdf')==_0x15a222['name']);for(const _0x2a4605 of _0x108834)0x1==_0x2a4605[_0x7aff('0xd4')]&&_0x2a4605[_0x7aff('0xe6')](0x0)['is'](_0x7aff('0x47'),'paragraph')&&_0x2a4605[_0x7aff('0xe6')](0x0)[_0x7aff('0xa6')](_0x7aff('0x15'),!0x0);}}[_0x7aff('0x82')](_0x4367a9){this[_0x7aff('0xb3')](_0x4367a9);const _0x28b587=this[_0x7aff('0x29')][_0x7aff('0x5d')]['toView'](_0x4367a9,{}),_0x4c5489=Array[_0x7aff('0x7c')](_0x28b587[_0x7aff('0xae')]())[_0x7aff('0xa5')](_0x504012=>this[_0x7aff('0xd0')](_0x504012));return JSON[_0x7aff('0xd6')](_0x4c5489);}[_0x7aff('0xd0')](_0xe11920){if(_0xe11920['is']('$text'))return _0xe11920[_0x7aff('0x5d')];{const _0x5072d2=_0xe11920;return{'type':Object['keys'](B)['find'](_0x512511=>_0xe11920 instanceof B[_0x512511]),'name':_0x5072d2[_0x7aff('0x4')],'attributes':Array[_0x7aff('0x7c')](_0x5072d2[_0x7aff('0xea')]()),'children':Array[_0x7aff('0x7c')](_0x5072d2[_0x7aff('0xae')]())[_0x7aff('0xa5')](_0x26cc91=>this[_0x7aff('0xd0')](_0x26cc91))};}}[_0x7aff('0x37')](_0x3a7618,_0x596029,_0x3a4c5d,_0x53ac37,_0x3c6dda){let _0x3dd31c=null,_0x173382=null,_0xc5b572=0x0;const _0x19126f=this[_0x7aff('0x29')][_0x7aff('0xcf')];for(let _0x12cf2=0x0;_0x12cf2<_0x596029[_0x7aff('0xdc')];_0x12cf2++){const _0x302f0d=this[_0x7aff('0xd3')](_0x596029[_0x12cf2]),_0x333191=_0x596029[_0x12cf2]['item'][_0x7aff('0xbe')](_0x302f0d),_0x1e081e=_0x3a4c5d['get'](_0x333191),_0x5b1554=_0x12cf2==_0x596029[_0x7aff('0xdc')]-0x1;(!_0x3dd31c&&_0x1e081e&&(_0x3dd31c=_0x1e081e,_0x173382=_0x596029[_0x12cf2]),_0x3dd31c&&(!_0x1e081e||_0x1e081e[_0x7aff('0x42')]!=_0x3dd31c[_0x7aff('0x42')]))&&(_0x43968a(_0x1e081e,L(_0x173382,_0x3a7618,_0x19126f),L(_0x596029[_0x12cf2],_0x3a7618,_0x19126f)),_0x3dd31c=_0x1e081e||null,_0x173382=_0x1e081e?_0x596029[_0x12cf2]:null),_0x3dd31c&&_0x5b1554&&_0x43968a(_0x1e081e,L(_0x173382,_0x3a7618,_0x19126f),W(_0x596029[_0x12cf2],_0x3a7618,_0x19126f));}function _0x43968a(_0x4413ca,_0x12463c,_0x52258c){const _0x1b7560=_0x3dd31c[_0x7aff('0x42')],_0xdeb5c0=_0x7aff('0x87')+_0x53ac37+':'+_0x1b7560+':'+_0xc5b572++,_0x4466cd=_0x19126f[_0x7aff('0x9e')](_0x12463c,_0x52258c);_0x3a7618['markers']['set'](_0xdeb5c0,_0x4466cd),null!==_0x1b7560&&_0x3c6dda[_0x7aff('0x73')](_0x1b7560);}}[_0x7aff('0xd3')](_0x57cc3){switch(_0x57cc3[_0x7aff('0x9b')]){case _0x7aff('0x7e'):return _0x7aff('0xf9');case'elementEnd':return _0x7aff('0x2b');default:return _0x7aff('0xf5');}}[_0x7aff('0xbf')](_0x1540df,_0x4fd874){_0x1540df[_0x7aff('0xa8')]=null;for(const _0x3da5d1 in _0x1540df){const _0xd3828=_0x1540df[_0x3da5d1];if(_0xd3828 instanceof _0x576a27){const _0x10d8d0=_0x4fd874[_0x7aff('0x50')](_0xd3828['root'][_0x7aff('0x20')]);_0x1540df[_0x3da5d1]=this[_0x7aff('0xce')](_0xd3828,_0x10d8d0);}if(_0xd3828 instanceof _0x23cb2f){const _0x30eae7=_0x4fd874[_0x7aff('0x50')](_0xd3828['root']['rootName']);_0x1540df[_0x3da5d1]=this[_0x7aff('0x46')](_0xd3828,_0x30eae7);}_0x7aff('0xc9')===_0x3da5d1&&(_0x1540df['root']=_0x4fd874[_0x7aff('0x50')](_0x1540df[_0x7aff('0xc9')][_0x7aff('0x20')]));}}['_fixRange'](_0x13b24d,_0x422433){return this[_0x7aff('0x29')][_0x7aff('0xcf')][_0x7aff('0x9e')](this['_fixPosition'](_0x13b24d[_0x7aff('0xc2')],_0x422433),this['_fixPosition'](_0x13b24d[_0x7aff('0xb4')],_0x422433));}['_fixPosition'](_0x56f95f,_0x3f0b49){return this['editor'][_0x7aff('0xcf')][_0x7aff('0x7a')](_0x3f0b49,_0x56f95f['path'],_0x56f95f['stickiness']);}[_0x7aff('0x6f')](_0x50c254){const _0xf1fb19=this[_0x7aff('0x4c')]['get'](_0x50c254[_0x7aff('0xc4')][_0x7aff('0xc9')]['rootName']),_0x11ea00=this[_0x7aff('0xce')](_0x50c254['position'],_0xf1fb19),_0x1817dc=null===_0x50c254[_0x7aff('0x57')]?null:_0x50c254[_0x7aff('0x57')]||this[_0x7aff('0x29')][_0x7aff('0xeb')][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0xfbd718=_0x11ea00[_0x7aff('0x53')],_0x385306=this['_revisionId'],_0x489876=[];for(const _0x100548 of _0x50c254['nodes'])if(_0x100548['is']('element'))_0x489876['push'](this['_makeIdsRoot'](_0x100548));else for(let _0x5d8c72=0x0;_0x5d8c72<_0x100548[_0x7aff('0x86')];_0x5d8c72++)_0x489876[_0x7aff('0xd2')](new _0x371ba5('$text',{'vid':this[_0x7aff('0xa7')]++}));const _0x2bbf92=this[_0x7aff('0xa7')];for(let _0x21abff=_0x385306;_0x21abff<_0x2bbf92;_0x21abff++)this[_0x7aff('0xf0')][_0x7aff('0xef')](_0x21abff,{'userId':_0x1817dc});_0xfbd718['_insertChild'](_0x11ea00[_0x7aff('0xa3')],_0x489876);}['_handleMoveOperation'](_0x4dbe1a){(_0x4dbe1a=this[_0x7aff('0x9a')](_0x4dbe1a,this['_idsRoots']))[_0x7aff('0x45')]();const _0x2b0440=null===_0x4dbe1a[_0x7aff('0x57')]?null:_0x4dbe1a[_0x7aff('0x57')]||this[_0x7aff('0x29')][_0x7aff('0xeb')][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0x280ec6=_0x4dbe1a[_0x7aff('0x5a')](),_0x6e65ea=_0x280ec6[_0x7aff('0x53')],_0x548bb1=_0x280ec6[_0x7aff('0xa3')];!function _0x356785(_0xcd460b,_0x22a9c2,_0x26b3ef,_0x24f247){for(let _0x5455f0=_0x26b3ef;_0x5455f0<_0x24f247;_0x5455f0++){const _0x196987=_0x22a9c2['getChild'](_0x5455f0);_0x196987['is']('element',_0x7aff('0x56'))?_0xcd460b['set'](_0x196987[_0x7aff('0xbe')](_0x7aff('0xf5')),{'userId':_0x2b0440}):(_0xcd460b[_0x7aff('0xef')](_0x196987[_0x7aff('0xbe')]('vid_start'),{'userId':_0x2b0440}),_0x356785(_0xcd460b,_0x196987,0x0,_0x196987[_0x7aff('0xd4')]),_0xcd460b[_0x7aff('0xef')](_0x196987[_0x7aff('0xbe')](_0x7aff('0x2b')),{'userId':_0x2b0440}));}}(this[_0x7aff('0xf0')],_0x6e65ea,_0x548bb1,_0x548bb1+_0x4dbe1a[_0x7aff('0xe7')]);}[_0x7aff('0x40')](_0x12b2a5){const _0xd57ff9=null===(_0x12b2a5=this[_0x7aff('0x9a')](_0x12b2a5,this[_0x7aff('0x4c')]))[_0x7aff('0x57')]?null:_0x12b2a5[_0x7aff('0x57')]||this['editor'][_0x7aff('0xeb')][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0x2249d7=_0x12b2a5[_0x7aff('0x78')][_0x7aff('0x53')],_0x5d1cfa=_0x12b2a5[_0x7aff('0x8e')][_0x7aff('0x53')],_0x404a08=_0x2249d7[_0x7aff('0xbe')]('vid_end'),_0x5b8099=_0x5d1cfa[_0x7aff('0xbe')](_0x7aff('0xf9'));_0x2249d7[_0x7aff('0xa6')](_0x7aff('0x2b'),_0x5d1cfa[_0x7aff('0xbe')](_0x7aff('0x2b'))),_0x5d1cfa[_0x7aff('0xa6')](_0x7aff('0x2b'),_0x404a08),this[_0x7aff('0xf0')][_0x7aff('0xef')](_0x5b8099,{'userId':_0xd57ff9}),this[_0x7aff('0xf0')][_0x7aff('0xef')](_0x404a08,{'userId':_0xd57ff9}),_0x12b2a5[_0x7aff('0x45')]();}[_0x7aff('0x7f')](_0x2018c9){const _0x463e0a=null===(_0x2018c9=this[_0x7aff('0x9a')](_0x2018c9,this[_0x7aff('0x4c')]))['_authorId']?null:_0x2018c9['_authorId']||this[_0x7aff('0x29')][_0x7aff('0xeb')]['get'](_0x7aff('0xd5'))['me']['id'],_0x211b7c=_0x2018c9[_0x7aff('0xe2')],_0x264a3a=_0x2018c9['splitPosition'][_0x7aff('0x53')];_0x2018c9['_execute']();const _0x112e25=_0x264a3a[_0x7aff('0xbe')]('vid_end'),_0x372f4a=_0x2018c9[_0x7aff('0xd7')]['nodeAfter'];if(_0x211b7c){const _0x590389=_0x372f4a['getAttribute']('vid_end'),_0x574c5d=_0x264a3a[_0x7aff('0xbe')](_0x7aff('0x2b'));_0x264a3a['_setAttribute'](_0x7aff('0x2b'),_0x590389),_0x372f4a[_0x7aff('0xa6')](_0x7aff('0x2b'),_0x574c5d),this[_0x7aff('0xf0')][_0x7aff('0xef')](_0x264a3a['getAttribute'](_0x7aff('0x2b')),{'userId':_0x463e0a}),this[_0x7aff('0xf0')]['set'](_0x372f4a[_0x7aff('0xbe')](_0x7aff('0xf9')),{'userId':_0x463e0a});}else{const _0x139f13=this[_0x7aff('0xa7')]++,_0x34ada7=this[_0x7aff('0xa7')]++;_0x264a3a[_0x7aff('0xa6')]('vid_end',_0x139f13),_0x372f4a[_0x7aff('0xa6')](_0x7aff('0xf9'),_0x34ada7),_0x372f4a[_0x7aff('0xa6')](_0x7aff('0x2b'),_0x112e25),this['_touched'][_0x7aff('0xef')](_0x139f13,{'userId':_0x463e0a}),this[_0x7aff('0xf0')][_0x7aff('0xef')](_0x34ada7,{'userId':_0x463e0a});}}[_0x7aff('0xd1')](_0x500e7f){if(!_0x500e7f['affectsData'])return;const _0x34515e=(_0x500e7f=this[_0x7aff('0x9a')](_0x500e7f,this[_0x7aff('0x32')]))['oldRange']?_0x500e7f[_0x7aff('0x39')][_0x7aff('0xc9')]:null,_0x1e8e3c=_0x500e7f[_0x7aff('0x8f')]?_0x500e7f[_0x7aff('0x8f')][_0x7aff('0xc9')]:null;_0x34515e&&this['_markers'][_0x7aff('0x1f')](_0x500e7f['name']),_0x1e8e3c&&this['_markers'][_0x7aff('0xef')](_0x500e7f[_0x7aff('0x4')],_0x500e7f[_0x7aff('0x8f')]['clone']());const _0x3d4106=null===_0x500e7f['_authorId']?null:_0x500e7f[_0x7aff('0x57')]||this[_0x7aff('0x29')][_0x7aff('0xeb')][_0x7aff('0x50')](_0x7aff('0xd5'))['me']['id'],_0x47ced7=_0x500e7f[_0x7aff('0x4')];if(!this[_0x7aff('0x77')][_0x7aff('0x54')](_0x47ced7))return void this[_0x7aff('0x77')][_0x7aff('0xef')](_0x47ced7,{'range':_0x500e7f[_0x7aff('0x39')],'userId':_0x3d4106});const _0x1e78fe=this[_0x7aff('0x77')][_0x7aff('0x50')](_0x47ced7),_0x5a262e=_0x1e78fe[_0x7aff('0x48')],_0x995113=_0x500e7f[_0x7aff('0x8f')];null==_0x5a262e&&null==_0x995113||_0x5a262e&&_0x995113&&_0x5a262e['isEqual'](_0x995113)?this[_0x7aff('0x77')][_0x7aff('0x1f')](_0x500e7f[_0x7aff('0x4')]):_0x1e78fe['userId']=_0x3d4106;}[_0x7aff('0x5f')](_0x28e683,_0x56dca3){this[_0x7aff('0x32')][_0x7aff('0x54')](_0x28e683[_0x7aff('0x20')])?this['_diffRoots'][_0x7aff('0x50')](_0x28e683[_0x7aff('0x20')])[_0x7aff('0x52')]=_0x28e683[_0x7aff('0xe3')]:(this[_0x7aff('0x32')][_0x7aff('0xef')](_0x28e683[_0x7aff('0x20')],G(_0x28e683['rootName'],!0x0)),this[_0x7aff('0xc3')][_0x7aff('0xef')](_0x28e683['rootName'],{}),_0x56dca3&&this['_idsRoots'][_0x7aff('0xef')](_0x28e683['rootName'],G(_0x28e683[_0x7aff('0x20')],!0x0)));const _0x45d261=null===_0x28e683[_0x7aff('0x57')]?null:_0x28e683[_0x7aff('0x57')]||this[_0x7aff('0x29')][_0x7aff('0xeb')]['get'](_0x7aff('0xd5'))['me']['id'],_0x492317=this['_touchedRoots'][_0x7aff('0x50')](_0x28e683[_0x7aff('0x20')]);_0x492317&&_0x492317[_0x7aff('0x42')]===_0x45d261?this['_touchedRoots'][_0x7aff('0x1f')](_0x28e683['rootName']):this['_touchedRoots'][_0x7aff('0xef')](_0x28e683[_0x7aff('0x20')],{'userId':_0x45d261,'isAttached':_0x28e683[_0x7aff('0xe3')]});}[_0x7aff('0x61')](_0x616642){const _0x950999=this[_0x7aff('0xc3')][_0x7aff('0x50')](_0x616642['root'][_0x7aff('0x20')]);null===_0x616642[_0x7aff('0xcc')]?delete _0x950999[_0x616642[_0x7aff('0x6a')]]:_0x950999[_0x616642[_0x7aff('0x6a')]]=_0x616642[_0x7aff('0xcc')];}}function q(_0x7df5d2){const _0x2f2c25=G(_0x7df5d2[_0x7aff('0x20')],_0x7df5d2[_0x7aff('0x76')]());for(const _0x31d28d of _0x7df5d2[_0x7aff('0xae')]()){const _0x27b055=_0x31d28d[_0x7aff('0x3b')](!0x0);_0x2f2c25[_0x7aff('0xa1')](_0x27b055);}return _0x2f2c25;}function G(_0x329c3b,_0x3b8d4c=!0x0){const _0xcb737f=new _0x33b7b8();return _0xcb737f[_0x7aff('0x20')]=_0x329c3b,_0xcb737f[_0x7aff('0x52')]=_0x3b8d4c,_0xcb737f[_0x7aff('0x76')]=()=>_0xcb737f['_isAttached'],_0xcb737f;}function L(_0x259da7,_0x24878e,_0x107ac0){const _0x17f95e=_0x7aff('0x2f')==_0x259da7[_0x7aff('0x9b')]?_0x107ac0['createPositionAt'](_0x259da7[_0x7aff('0x68')],_0x7aff('0xb4')):_0x107ac0[_0x7aff('0xf2')](_0x259da7[_0x7aff('0x68')]);return _0x107ac0['createPositionFromPath'](_0x24878e,_0x17f95e[_0x7aff('0x5b')],_0x17f95e[_0x7aff('0x1b')]);}function W(_0xd72521,_0x276277,_0x3fa26d){const _0x3b3afb=_0x7aff('0x7e')==_0xd72521[_0x7aff('0x9b')]?_0x3fa26d[_0x7aff('0x11')](_0xd72521[_0x7aff('0x68')],0x0):_0x3fa26d['createPositionAfter'](_0xd72521[_0x7aff('0x68')]);return _0x3fa26d['createPositionFromPath'](_0x276277,_0x3b3afb['path'],_0x3b3afb[_0x7aff('0x1b')]);}
|
|
23
|
+
const _0x3589=['attachChange','repository','keepParagraph','userId','data','version','diffData','_makeModelFromViewString','_handleRootAttributeOperation','revisionHistory.resumeUnsavedRevision','forEach','getChild','trim','remove','updateRevisions','_createInitialRevision','authors','length','model','find','toView','Initial\x20revision','addRootAttribute','$text','_fixPosition','_replaceEditorDataWithRevisionData','clear','startsWith','toVersion','locale','end','elementEnd','vid_end','plugins','getData','get','upcast','source','getRevisionDocumentData','getRange','includes','_markers','slice','_generateTape','baseVersion','editor','_getBaseVids','reverse','define','_getViewJson','text','offsetSize','default','getRoot','_touchedRoots','view','creator','collaboration.channelId','add','reInit','key','_makeRevision','rootsAttributes','deletions','requires','adapter','_calculateMetaData','revision:','_bufferedUpdates','processor','_getVidAttributeName','_loadState','_source','_baseRootsAttributes','revision-end','push','nodes','type','childCount','map','getRevisions','item','splitPosition','_execute','attributes','insertion','_diffRootsAttributes','$graveyard','getChildren','_findInsertionIndex','set','string','_handleMoveOperation','for','loadState','rootName','_createFromRanges','RevisionTracker','parent','_initialRevisionId','isEqual','elementStart','max','_setAttribute','_idsRoots','history','editing','keys','_handleMarkerOperation','getAttribute','_transformMarkers','vid_start','createRevision','sourcePosition','_baseRoots','_clone','RevisionsRepository','initial','split','reinsert','_reset','getMovedRangeStart','NEGATIVE_INFINITY','buildRevisionData','toData','values','_handleMergeOperation','saveRevision','isEnabled','_lastFrom','_loadedStateData','_revisionId','_insertChild','_addPendingAction','Users','addRevisionData','element','_cloneOperation','_copyMarkers','document','path','_appendChild','_fixRange','getLatestVersion','_revisionDataBuilder','PendingActions','setRevisionData','createPositionFromPath','_startingRevisionId','roots','tableCell','root','_prepareViewToSave','_getPreviousFrom','newRange','getUser','createRange','init','_saveMetaData','getNodeByPath','position','graveyardPosition','insertionPosition','ready','createPositionAfter','_lastTo','previousPosition','isAttached','_isAttached','addRoot','howMany','conversion','_createCurrentRevision','insert','creatorId','start','name','_authorId','authorsIds','_getState','insertions','PENDING_ACTION_REVISION_HISTORY','_continueCurrentRevision','_update','move','children','paragraph','from','range','revision','_touchedMarkers','bind','_setConversion','targetPosition','finally','_savedMetaData','update','hasContent','getCurrentRevisionId','_removeMetaData','initialData','_touched','affectsData','offset','_handleSplitOperation','getRevision','_operations','isAdd','useFillerType','_makeIdsRoot','_markChanges','_pendingAction','nodeAfter','removeRootAttribute','getIndex','fromEntries','detachRoot','_loadRevisionData','size','filter','config','afterInit','shift','_applyOperations','getOperation','_getFromVersion','isReady','deletion','createdAt','getRevisionRootsAttributes','getWalker','merge','then','createPositionAt','setSource','dataToMarker','_removePendingAction','parse','markers','getAttributes','getAncestors','delete','_fixOperation','has','createRangeIn','sendBufferedUpdates','_startingVersion','addRevision','currentRevision','_isPendingUpdate','getOperations','stringify','_handleOperation','vid','_bufferUpdate','clone','stickiness','_diffRoots','fromVersion','RealTimeCollaborationClient','_handleInsertOperation','some','oldRange','_removeRevisionMarkers','_baseIdsRoots','getRootNames'];(function(_0x450ccf,_0x358982){const _0x3f60f4=function(_0x2933e4){while(--_0x2933e4){_0x450ccf['push'](_0x450ccf['shift']());}};_0x3f60f4(++_0x358982);}(_0x3589,0x186));const _0x3f60=function(_0x450ccf,_0x358982){_0x450ccf=_0x450ccf-0x0;let _0x3f60f4=_0x3589[_0x450ccf];return _0x3f60f4;};import{Users as _0x3cd5e8}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x5c36c4,PendingActions as _0x145c42}from'ckeditor5/src/core';import{logWarning as _0x10d96a,uid as _0xcc8e31}from'ckeditor5/src/utils';import{Position as _0xba1a39,Range as _0x90af34,Element as _0x2cfae2,DocumentFragment as _0x2943f8,ViewText as _0x727ddd,ViewElement as _0x573196,ViewContainerElement as _0x3793fb,ViewAttributeElement as _0x3ce3bb,ViewEmptyElement as _0x2680d1,ViewRawElement as _0x53b171,ViewUIElement as _0x1153b7,ViewDocumentFragment as _0x391344}from'ckeditor5/src/engine';import _0x42705a from'./revisionsrepository';import{getTranslation as _0x574f8b}from'./utils/common-translations';import{cloneDeep as _0x136f39,isEqual as _0x4cb03c}from'lodash-es';const B={'c':_0x3793fb,'a':_0x3ce3bb,'e':_0x2680d1,'r':_0x53b171,'u':_0x1153b7};export default class l extends _0x5c36c4{static get['pluginName'](){return _0x3f60('0xef');}static get[_0x3f60('0xce')](){return[_0x3cd5e8,_0x42705a,_0x145c42];}constructor(_0x32c741){super(_0x32c741),this[_0x3f60('0xcf')]=null,this['currentRevision']=null,this[_0x3f60('0x14')]=new H(this[_0x3f60('0xbb')]),this[_0x3f60('0xf1')]=this[_0x3f60('0xbb')]['config'][_0x3f60('0xb1')](_0x3f60('0xc7'))||_0x3f60('0x103'),this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2532b0=_0xcc8e31();this[_0x3f60('0xd6')]={'history':this['editor'][_0x3f60('0xa0')]['document'][_0x3f60('0xf7')],'getLatestVersion':()=>Promise['resolve'](this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0xf')][_0x3f60('0x93')]),'getCurrentRevisionId':()=>_0x2532b0},this['set'](_0x3f60('0x66'),!0x1),this[_0x3f60('0xe8')](_0x3f60('0x4'),!0x0),this[_0x3f60('0xe8')](_0x3f60('0x7d'),!0x1),this['editor'][_0x3f60('0x60')][_0x3f60('0xbe')](_0x3f60('0x97'),!0x0),this[_0x3f60('0xbb')][_0x3f60('0x2f')][_0x3f60('0xeb')](_0x3f60('0xb2'))[_0x3f60('0x6f')]({'view':_0x3f60('0x41')});}['init'](){this[_0x3f60('0x8f')]=this['editor'][_0x3f60('0xaf')]['get'](_0x3f60('0x102')),this[_0x3f60('0x44')](),this['editor'][_0x3f60('0x92')]['on'](_0x3f60('0x27'),()=>{const _0x489479=this[_0x3f60('0x8f')][_0x3f60('0x51')](0x0),_0x389b55=_0x489479&&null===_0x489479[_0x3f60('0xc6')]?_0x489479:null;if(this[_0x3f60('0x3a')]=!!_0x389b55&&this['editor']['config'][_0x3f60('0xb1')](_0x3f60('0x97')),this[_0x3f60('0xbb')][_0x3f60('0xaf')]['has'](_0x3f60('0x87'))){const _0x5a68d3=this[_0x3f60('0xd6')]['getCurrentRevisionId'](),_0x2dd35c=this['repository'][_0x3f60('0x51')](_0x5a68d3);if(_0x2dd35c)this[_0x3f60('0x7a')]=_0x2dd35c[_0x3f60('0x86')],this[_0x3f60('0x3a')]=!0x1;else{const _0x1f1647=this[_0x3f60('0xd6')]['history'][_0x3f60('0x52')][_0x3f60('0xa1')](_0x5bcc53=>!_0x5bcc53['_isInit']),_0x228b30=_0x1f1647?_0x1f1647['baseVersion']:this[_0x3f60('0xd6')][_0x3f60('0xf7')]['version'];_0x489479?(_0x489479[_0x3f60('0xaa')]<_0x228b30&&_0x489479[_0x3f60('0x3b')]({'toVersion':_0x228b30}),this[_0x3f60('0x3a')]?(this[_0x3f60('0xd6')]['getCurrentRevisionId']=()=>_0x389b55['id'],this['_startingVersion']=_0x389b55[_0x3f60('0x86')]):(this[_0x3f60('0x7a')]=_0x489479['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x228b30,this[_0x3f60('0x3a')]=!0x1);}}else _0x389b55&&(this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0xf')][_0x3f60('0xf7')][_0x3f60('0x93')]=Math[_0x3f60('0xf4')](_0x389b55[_0x3f60('0xaa')],this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0xf')]['history'][_0x3f60('0x93')]),_0x389b55[_0x3f60('0x86')]===_0x389b55['toVersion']?(0x0!==_0x389b55[_0x3f60('0x86')]&&(this[_0x3f60('0xd6')]['getCurrentRevisionId']=()=>_0x389b55['id']),this[_0x3f60('0x3a')]=!0x1):this['_continueCurrentRevision']&&(this[_0x3f60('0xd6')][_0x3f60('0x4a')]=()=>_0x389b55['id'],this[_0x3f60('0x7a')]=_0x389b55['fromVersion'])),this['_continueCurrentRevision']||(this[_0x3f60('0x7a')]=this[_0x3f60('0xbb')]['model'][_0x3f60('0xf')]['version']);this[_0x3f60('0x14')][_0x3f60('0x21')](this['_source'][_0x3f60('0xf7')]),this[_0x3f60('0x9d')](this[_0x3f60('0x7a')]),this[_0x3f60('0x30')](this[_0x3f60('0x7a')]),this['adapter']&&this[_0x3f60('0x79')]();}),this[_0x3f60('0x43')](_0x3f60('0x66'))['to'](this,_0x3f60('0x7d'),_0x1af08b=>!_0x1af08b);}async[_0x3f60('0x61')](){if(this[_0x3f60('0x8f')][_0x3f60('0x9f')]>0x0){const _0x276961=this[_0x3f60('0x8f')]['getRevision'](0x0),_0xbdc86e=await this['getRevisionDocumentData'](_0x276961),_0x5d0599=await this[_0x3f60('0x69')](_0x276961);this[_0x3f60('0xa7')](_0xbdc86e,_0x5d0599);}}[_0x3f60('0x6e')](_0x45095d){this[_0x3f60('0xd6')]=_0x45095d;}async[_0x3f60('0x48')](){const _0x17be47=await this[_0x3f60('0xd6')][_0x3f60('0x13')]();if(_0x17be47>this['currentRevision'][_0x3f60('0xaa')]){await this['_loadState']();const _0x1f941f=this['buildRevisionData']({'revision':this[_0x3f60('0x7c')],'to':_0x17be47});_0x1f941f[_0x3f60('0x9e')]=_0x1f941f[_0x3f60('0x36')]['map'](_0x26d921=>this[_0x3f60('0xbb')]['plugins'][_0x3f60('0xb1')](_0x3f60('0xa'))['getUser'](_0x26d921)),this[_0x3f60('0x7c')][_0x3f60('0x3b')](_0x1f941f);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x3f60('0x6')]&&(await this[_0x3f60('0x5d')](this[_0x3f60('0x7c')]),this[_0x3f60('0x14')]['loadState'](this[_0x3f60('0x7c')]),this[_0x3f60('0x6')]={'fromVersion':this[_0x3f60('0x7c')][_0x3f60('0x86')],'authors':this[_0x3f60('0x7c')]['authors'][_0x3f60('0xb8')]()});}async[_0x3f60('0x3')](_0x3d56ab={},_0x52785e=null){const _0x2793ee=[];await this[_0x3f60('0xd5')](),this[_0x3f60('0x3a')]=!0x1,_0x52785e>this[_0x3f60('0x7c')][_0x3f60('0xaa')]&&(_0x52785e=null),null===_0x52785e&&(_0x52785e=await this[_0x3f60('0xd6')][_0x3f60('0x13')]());const _0x42a196=this[_0x3f60('0x65')](_0x52785e),_0x9cfdcd=this['buildRevisionData']({'from':_0x42a196,'to':_0x52785e});if(this[_0x3f60('0x7c')][_0x3f60('0xaa')]<_0x52785e){const _0x282b5d=this[_0x3f60('0x109')]({'revision':this[_0x3f60('0x7c')],'from':_0x52785e,'to':_0x52785e});_0x282b5d[_0x3f60('0x9e')]=[],_0x282b5d[_0x3f60('0x36')]=[],_0x282b5d['id']=this[_0x3f60('0x7c')]['id'],this[_0x3f60('0x7c')][_0x3f60('0x3b')](_0x282b5d,!0x0),delete _0x282b5d[_0x3f60('0x9e')],_0x2793ee[_0x3f60('0xd9')](_0x282b5d);}_0x3d56ab['creatorId']=this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get'](_0x3f60('0xa'))['me']['id'],_0x3d56ab[_0x3f60('0x34')]=_0x3d56ab[_0x3f60('0x34')]||null,_0x3d56ab['id']=_0x3d56ab['id']||_0xcc8e31(),_0x3d56ab={..._0x3d56ab,..._0x9cfdcd};const _0x381f46=this[_0x3f60('0xb')](_0x3d56ab);_0x2793ee[_0x3f60('0xd9')](_0x3d56ab);const _0x1a2a86=this['repository'][_0x3f60('0x5a')](_0x381f46);if(0x0!==_0x1a2a86){const _0x56906c=this['repository'][_0x3f60('0x51')](_0x1a2a86-0x1);if(_0x56906c[_0x3f60('0x86')]!==_0x52785e){const _0x3ca037=this[_0x3f60('0x14')]['getData'](_0x52785e,_0x56906c[_0x3f60('0xaa')]),_0x100b0a={'id':_0x56906c['id'],'diffData':_0x3ca037['diffData'],'authorsIds':_0x3ca037[_0x3f60('0x36')],'authors':_0x3ca037[_0x3f60('0x36')][_0x3f60('0xdd')](_0x5adac0=>this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get']('Users')['getUser'](_0x5adac0)),'fromVersion':_0x52785e};_0x56906c===this[_0x3f60('0x7c')]&&(_0x100b0a[_0x3f60('0x68')]=new Date(_0x3d56ab['createdAt']['getTime']()+0xa)),_0x56906c['_update'](_0x100b0a,!0x0),delete _0x100b0a[_0x3f60('0x9e')],_0x2793ee['push'](_0x100b0a);}}if(this[_0x3f60('0xcf')]){for(const _0x1ecd49 of _0x2793ee)this[_0x3f60('0x82')](_0x1ecd49['id'],_0x1ecd49,!0x0);this[_0x3f60('0x79')]();}return _0x381f46;}[_0x3f60('0xb')](_0x1ea7df){const _0x2111e6=this[_0x3f60('0x8f')][_0x3f60('0xfe')](_0x1ea7df);return this[_0x3f60('0xcf')]&&_0x2111e6['on'](_0x3f60('0x3b'),(_0x5868d3,_0x33da6c,_0x2d148e)=>{_0x2d148e||(this['_bufferUpdate'](_0x33da6c['id'],_0x33da6c,!0x0),this[_0x3f60('0x79')]());}),this['repository'][_0x3f60('0x7b')](_0x2111e6,this[_0x3f60('0xe7')](_0x2111e6)),_0x2111e6;}async[_0x3f60('0xb4')](_0x41cadd){await this[_0x3f60('0x5d')](_0x41cadd);const _0x5bf103={};for(const _0x58bc54 in _0x41cadd['diffData']){if(_0x41cadd['diffData'][_0x58bc54][_0x3f60('0x8e')]&&!_0x41cadd[_0x3f60('0x94')][_0x58bc54]['attachChange']['isAttached'])continue;const _0x3c2e4d=this[_0x3f60('0x8b')](JSON[_0x3f60('0x71')](_0x41cadd[_0x3f60('0x94')][_0x58bc54][_0x3f60('0x38')])),_0x2dfc2c=this[_0x3f60('0xbb')][_0x3f60('0xf8')][_0x3f60('0xc5')][_0x3f60('0xf')],_0x1897f6=new _0x391344(_0x2dfc2c,_0x3c2e4d[_0x3f60('0xdd')](_0x359024=>J(_0x359024,this[_0x3f60('0xbb')])));this['editor'][_0x3f60('0x92')]['processor'][_0x3f60('0x54')]('marked'),_0x5bf103[_0x58bc54]=this[_0x3f60('0xbb')]['data'][_0x3f60('0xd3')][_0x3f60('0x0')](_0x1897f6),this[_0x3f60('0xbb')][_0x3f60('0x92')][_0x3f60('0xd3')][_0x3f60('0x54')](_0x3f60('0xc2'));}return _0x5bf103;}async[_0x3f60('0x69')](_0x2f80a9){await this[_0x3f60('0x5d')](_0x2f80a9);const _0x2e0b31={};for(const _0x4cca65 in _0x2f80a9[_0x3f60('0x94')])_0x2f80a9['diffData'][_0x4cca65][_0x3f60('0x8e')]&&!_0x2f80a9['diffData'][_0x4cca65]['attachChange'][_0x3f60('0x2b')]||(_0x2e0b31[_0x4cca65]=_0x2f80a9[_0x3f60('0x94')][_0x4cca65]['attributesAfter']||{});return _0x2e0b31;}[_0x3f60('0x79')](){if(0x0===this[_0x3f60('0xd2')][_0x3f60('0x5e')])return;if(this[_0x3f60('0x7d')])return;let _0x33e19d=Array[_0x3f60('0x3f')](this['_bufferedUpdates'][_0x3f60('0x1')]());this[_0x3f60('0xd2')][_0x3f60('0xa8')]();for(let _0x30cd78=0x0;_0x30cd78<_0x33e19d[_0x3f60('0x9f')];_0x30cd78++){const _0xbbaa68=_0x33e19d[_0x30cd78];let _0x40c49e=!0x1;for(const _0x49f00b of Object[_0x3f60('0xf9')](_0xbbaa68))void 0x0===_0xbbaa68[_0x49f00b]?delete _0xbbaa68[_0x49f00b]:'id'!==_0x49f00b&&(_0x40c49e=!0x0);_0x40c49e||(_0x33e19d[_0x30cd78]=null);}if(_0x33e19d=_0x33e19d['filter'](_0x306eb4=>null!==_0x306eb4),!_0x33e19d[_0x3f60('0x9f')])return;for(let _0x565bcc=0x0;_0x565bcc<_0x33e19d['length'];_0x565bcc++){const _0x37a4b3=_0x33e19d[_0x565bcc];void 0x0!==_0x37a4b3[_0x3f60('0x86')]&&void 0x0===_0x37a4b3['toVersion']&&(_0x37a4b3[_0x3f60('0xaa')]=this[_0x3f60('0x8f')]['getRevision'](_0x37a4b3['id'])[_0x3f60('0xaa')]),void 0x0!==_0x37a4b3['toVersion']&&void 0x0===_0x37a4b3[_0x3f60('0x86')]&&(_0x37a4b3[_0x3f60('0x86')]=this[_0x3f60('0x8f')]['getRevision'](_0x37a4b3['id'])['fromVersion']);}const _0x275a81=this[_0x3f60('0xbb')]['config'][_0x3f60('0xb1')](_0x3f60('0xc7'));this[_0x3f60('0x7d')]=!0x0,this[_0x3f60('0x9')](),this[_0x3f60('0xcf')][_0x3f60('0x9c')](_0x33e19d,_0x275a81)[_0x3f60('0x46')](()=>{this['_isPendingUpdate']=!0x1;})[_0x3f60('0x6c')](_0x505c00=>{if(_0x505c00)for(const _0x2adf55 of _0x505c00)this[_0x3f60('0x16')]({'id':_0x2adf55['id'],'createdAt':_0x2adf55[_0x3f60('0x68')]});this['_removePendingAction'](),this[_0x3f60('0x79')]();});}[_0x3f60('0xa7')](_0x17dffd,_0x945ec8){let _0x42bed3=this['editor'][_0x3f60('0x60')][_0x3f60('0xb1')]('initialData'),_0x260ba5=this[_0x3f60('0xbb')]['config'][_0x3f60('0xb1')](_0x3f60('0xcc'));if(void 0x0===_0x42bed3){_0x42bed3={};for(const _0x55c96d of this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0xf')]['getRootNames']())_0x42bed3[_0x55c96d]='';}if(_0x3f60('0xe9')==typeof _0x42bed3&&(_0x42bed3={'main':_0x42bed3}),void 0x0===_0x260ba5){_0x260ba5={};for(const _0x507314 of this[_0x3f60('0xbb')]['model'][_0x3f60('0xf')][_0x3f60('0x8d')]())_0x260ba5[_0x507314]={};}let _0x15fa5c=!0x1;const _0x9b2ea4=Object['keys'](_0x42bed3),_0x512926=Object[_0x3f60('0xf9')](_0x17dffd);for(const _0x33f3ca of _0x9b2ea4){if(_0x42bed3[_0x33f3ca]!==_0x17dffd[_0x33f3ca]&&''!==_0x42bed3[_0x33f3ca][_0x3f60('0x9a')]()){_0x15fa5c=!0x0;break;}if(!_0x4cb03c(_0x260ba5[_0x33f3ca],_0x945ec8[_0x33f3ca])&&Object[_0x3f60('0xf9')](_0x260ba5[_0x33f3ca])['length']>0x0){_0x15fa5c=!0x0;break;}}_0x15fa5c||(_0x15fa5c=_0x512926[_0x3f60('0x89')](_0x55b8da=>!this[_0x3f60('0xbb')][_0x3f60('0xa0')]['document']['getRoot'](_0x55b8da))),_0x15fa5c&&_0x10d96a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x42bed3,'editorRootsAttributes':_0x260ba5,'revisionData':_0x17dffd,'revisionRootsAttributes':_0x945ec8}),this[_0x3f60('0xbb')][_0x3f60('0x60')]['set'](_0x3f60('0x4c'),_0x17dffd),this[_0x3f60('0xbb')][_0x3f60('0x60')]['set'](_0x3f60('0xcc'),_0x945ec8);}[_0x3f60('0x9')](){if(!this[_0x3f60('0x57')]){const _0x500066=this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get'](_0x3f60('0x15'));this[_0x3f60('0x57')]=_0x500066['add'](_0x574f8b(this[_0x3f60('0xbb')][_0x3f60('0xab')],_0x3f60('0x39')));}}[_0x3f60('0x70')](){this['_pendingAction']&&(this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get'](_0x3f60('0x15'))[_0x3f60('0x9b')](this[_0x3f60('0x57')]),this[_0x3f60('0x57')]=null);}[_0x3f60('0xe7')](_0x2156d1){const _0x44ffb4=this[_0x3f60('0x8f')][_0x3f60('0xde')]();_0x44ffb4[_0x3f60('0xbd')]();let _0x2b9dc3=0x0;for(;_0x2b9dc3<_0x44ffb4['length'];){const _0x1393bd=_0x44ffb4[_0x2b9dc3];if(_0x1393bd===this[_0x3f60('0x7c')]){_0x2b9dc3++;continue;}if(_0x1393bd['id']===this['_initialRevisionId'])break;const _0x3f7247=_0x2156d1[_0x3f60('0xaa')]-_0x1393bd['toVersion']||_0x2156d1['fromVersion']-_0x1393bd[_0x3f60('0x86')];if(_0x3f7247>0x0)break;if(_0x3f7247<0x0)_0x2b9dc3++;else{if(!_0x2156d1[_0x3f60('0xc6')]&&_0x1393bd[_0x3f60('0xc6')])break;if(_0x1393bd[_0x3f60('0xc6')]||!_0x2156d1[_0x3f60('0xc6')]){if(_0x2156d1[_0x3f60('0x68')]>_0x1393bd[_0x3f60('0x68')])break;_0x2b9dc3++;}else _0x2b9dc3++;}}return _0x2b9dc3;}['setRevisionData'](_0x304882){const _0x4de2aa=this[_0x3f60('0x8f')][_0x3f60('0x51')](_0x304882['id']);if(_0x304882[_0x3f60('0x68')]&&(_0x304882[_0x3f60('0x68')]=new Date(_0x304882['createdAt'])),_0x304882['authorsIds']){const _0x3bbd04=this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get'](_0x3f60('0xa'));_0x304882[_0x3f60('0x9e')]=_0x304882[_0x3f60('0x36')][_0x3f60('0xdd')](_0x5c57a3=>_0x3bbd04[_0x3f60('0x1f')](_0x5c57a3));}_0x4de2aa[_0x3f60('0x3b')](_0x304882,!0x0);}[_0x3f60('0x109')]({revision:_0x282281=null,from:_0x238c09=null,to:_0x3e57b4=null}){_0x238c09=null!==_0x238c09?_0x238c09:_0x282281[_0x3f60('0x86')],_0x3e57b4=null!==_0x3e57b4?_0x3e57b4:_0x282281[_0x3f60('0xaa')];const _0x57e9cc=this[_0x3f60('0x14')][_0x3f60('0xb0')](_0x238c09,_0x3e57b4),_0x3fbeb4={'diffData':_0x57e9cc[_0x3f60('0x94')],'authorsIds':_0x57e9cc[_0x3f60('0x36')],'fromVersion':_0x238c09,'toVersion':_0x3e57b4};if(!_0x282281||_0x3e57b4!==_0x282281['toVersion']){const _0x48e6b4=_0x3e57b4-0x1,_0x1a4a7c=this[_0x3f60('0xd6')][_0x3f60('0xf7')][_0x3f60('0x64')](_0x48e6b4);_0x3fbeb4['createdAt']=_0x1a4a7c&&_0x1a4a7c[_0x3f60('0x68')]||new Date();}if(this[_0x3f60('0x6')]&&_0x238c09===this[_0x3f60('0x6')][_0x3f60('0x86')])for(const _0x21c626 of this[_0x3f60('0x6')]['authors'])_0x3fbeb4['authorsIds'][_0x3f60('0xb6')](_0x21c626['id'])||_0x3fbeb4['authorsIds'][_0x3f60('0xd9')](_0x21c626['id']);return _0x3fbeb4;}[_0x3f60('0x5d')](_0x330c02){if(!_0x330c02||_0x330c02[_0x3f60('0x94')])return Promise['resolve']();{const _0x31dfc1=this[_0x3f60('0xbb')]['config']['get'](_0x3f60('0xc7'));return this[_0x3f60('0xcf')][_0x3f60('0x51')]({'channelId':_0x31dfc1,'revisionId':_0x330c02['id']})[_0x3f60('0x6c')](_0x4a1025=>{_0x330c02[_0x3f60('0x94')]=_0x4a1025[_0x3f60('0x94')];});}}[_0x3f60('0x82')](_0x1abeec,_0x23a6a7,_0x32c684){if(this[_0x3f60('0xd2')][_0x3f60('0x77')](_0x1abeec)){const _0x3434bd=this[_0x3f60('0xd2')][_0x3f60('0xb1')](_0x1abeec);_0x23a6a7=_0x32c684?{..._0x3434bd,..._0x23a6a7}:{..._0x23a6a7,..._0x3434bd};}this[_0x3f60('0xd2')][_0x3f60('0xe8')](_0x1abeec,_0x23a6a7);}[_0x3f60('0x65')](_0x208bf4){const _0x520f8b=this[_0x3f60('0x8f')][_0x3f60('0xde')]();_0x520f8b[_0x3f60('0xbd')](),_0x520f8b[_0x3f60('0x62')]();const _0x2fee7b=_0x520f8b[_0x3f60('0xa1')](_0x127f63=>_0x127f63['toVersion']<=_0x208bf4)[_0x3f60('0xaa')];return _0x2fee7b<this[_0x3f60('0x7a')]?this['_startingVersion']:_0x2fee7b;}[_0x3f60('0x9d')](_0x563ac7){const _0xe83d07=this[_0x3f60('0x8f')][_0x3f60('0x51')](this[_0x3f60('0x8f')]['length']-0x1);if(_0xe83d07)this['_initialRevisionId']=_0xe83d07['id'];else{const _0x7599eb=!this[_0x3f60('0xbb')]['model'][_0x3f60('0xf')][_0x3f60('0x19')][_0x3f60('0xa1')](_0x1062ec=>this['editor']['model'][_0x3f60('0x49')](_0x1062ec)),_0x24d456=this[_0x3f60('0xbb')][_0x3f60('0xaf')][_0x3f60('0xb1')](_0x3f60('0xa'))['me']['id'],_0x3e1bff=_0x574f8b(this[_0x3f60('0xbb')]['locale'],_0x7599eb?'Empty\x20document':_0x3f60('0xa3'));this[_0x3f60('0xcb')]({'from':_0x563ac7,'to':_0x563ac7,'id':this[_0x3f60('0xf1')],'name':_0x3e1bff,'creatorId':_0x24d456});}}[_0x3f60('0x30')](_0x524852){const _0x1e0293=this['_source'][_0x3f60('0x4a')]();this[_0x3f60('0x7c')]=this[_0x3f60('0x8f')]['getRevision'](_0x1e0293),this[_0x3f60('0x7c')]||(this['currentRevision']=this[_0x3f60('0xcb')]({'from':_0x524852,'to':_0x524852,'id':_0x1e0293,'name':'','creatorId':null}));}['_makeRevision']({name:_0x24f006,from:_0x4736a3,to:_0x30dc27,creatorId:_0x3283d9,id:_0x4bbc86}){const _0x1c94c6=this[_0x3f60('0x109')]({'from':_0x4736a3,'to':_0x30dc27});_0x1c94c6[_0x3f60('0x34')]=_0x24f006,_0x1c94c6[_0x3f60('0x32')]=_0x3283d9,_0x1c94c6['id']=_0x4bbc86;const _0x2586cf=this[_0x3f60('0xb')](_0x1c94c6);return this[_0x3f60('0xcf')]&&this[_0x3f60('0x82')](_0x1c94c6['id'],_0x1c94c6,!0x0),_0x2586cf;}[_0x3f60('0x44')](){this[_0x3f60('0xbb')][_0x3f60('0x2f')][_0x3f60('0xeb')]('dataDowncast')['markerToData']({'model':_0x3f60('0x41')});}[_0x3f60('0x8b')](_0x4ad89a){return(_0x4ad89a=_0x4ad89a['filter'](_0x1bddb8=>!_0x1bddb8['name']||'revision-start'!==_0x1bddb8['name']&&_0x3f60('0xd8')!==_0x1bddb8[_0x3f60('0x34')]))[_0x3f60('0x98')](_0xc3e01a=>{_0x3f60('0xe9')!=typeof _0xc3e01a&&(_0xc3e01a[_0x3f60('0x3d')]=this[_0x3f60('0x8b')](_0xc3e01a[_0x3f60('0x3d')]),_0xc3e01a[_0x3f60('0xe2')]=_0xc3e01a[_0x3f60('0xe2')][_0x3f60('0x5f')](_0x15f970=>!_0x15f970[0x0][_0x3f60('0xa9')]('data-revision-')));}),_0x4ad89a;}}function J(_0x56a99d,_0xae1f73){const _0x148ded=_0xae1f73['editing'][_0x3f60('0xc5')]['document'];if(_0x3f60('0xe9')==typeof _0x56a99d)return new _0x727ddd(_0x148ded,_0x56a99d);{const _0x57b9f1=_0x56a99d[_0x3f60('0x3d')]['map'](_0x48d1b5=>J(_0x48d1b5,_0xae1f73));return new(B[_0x56a99d[(_0x3f60('0xdb'))]]||_0x573196)(_0x148ded,_0x56a99d[_0x3f60('0x34')],_0x56a99d[_0x3f60('0xe2')],_0x57b9f1);}}class H{constructor(_0x1e7710){this[_0x3f60('0xbb')]=_0x1e7710,this[_0x3f60('0x47')]=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this[_0x3f60('0xb7')]=new Map(),this[_0x3f60('0x85')]=new Map(),this[_0x3f60('0xe4')]=new Map(),this[_0x3f60('0x100')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this[_0x3f60('0x8c')]=new Map(),this[_0x3f60('0x4d')]=new Map(),this[_0x3f60('0x42')]=new Map(),this[_0x3f60('0xc4')]=new Map(),this[_0x3f60('0x7')]=0x1;}[_0x3f60('0x21')](_0x46bd7a){this[_0x3f60('0xb3')]=_0x46bd7a;const _0x32c9f6=new Map(),_0x28eff0=new Map(),_0xafd021=this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0xf')][_0x3f60('0x19')][_0x3f60('0xdd')](_0x1431bb=>_0x1431bb[_0x3f60('0xed')]);for(const _0x267eef of _0xafd021){const _0x132bce=this[_0x3f60('0xbb')]['model'][_0x3f60('0xf')][_0x3f60('0xc3')](_0x267eef),_0x562e65=q(_0x132bce);_0x32c9f6[_0x3f60('0xe8')](_0x267eef,_0x562e65),_0x28eff0[_0x3f60('0xe8')](_0x267eef,Object[_0x3f60('0x5b')](_0x132bce[_0x3f60('0x73')]()));}const _0x56e00f=Array[_0x3f60('0x3f')](this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0x72')])[_0x3f60('0xdd')](_0x27d804=>[_0x27d804[_0x3f60('0x34')],_0x27d804[_0x3f60('0xb5')]()]),_0x544044=this[_0x3f60('0xb3')][_0x3f60('0x93')];this[_0x3f60('0x22')](_0x544044,_0x32c9f6,_0x56e00f,_0x28eff0),this[_0x3f60('0x18')]=this[_0x3f60('0x7')];const _0x13862a=new Map(),_0x32a55b=new Map();for(const _0x43550f of _0xafd021){const _0x2016c6=G(_0x43550f);_0x13862a[_0x3f60('0xe8')](_0x43550f,_0x2016c6),_0x32a55b[_0x3f60('0xe8')](_0x43550f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x13862a,[],_0x32a55b);}[_0x3f60('0xb0')](_0x2aad37,_0x216ba7){if(this[_0x3f60('0x5')]===_0x2aad37&&this[_0x3f60('0x29')]<=_0x216ba7)this['_savedMetaData'][_0x3f60('0x5e')]>0x1&&this[_0x3f60('0x4b')](this[_0x3f60('0x29')]),this[_0x3f60('0x63')](this[_0x3f60('0x29')],_0x216ba7,!0x0);else{if(!this[_0x3f60('0x47')][_0x3f60('0x77')](_0x2aad37)){const _0xc344d4=this[_0x3f60('0x1d')](_0x2aad37);this[_0x3f60('0xd0')](_0xc344d4,_0x2aad37,!0x1);}this[_0x3f60('0xd0')](_0x2aad37,_0x216ba7,!0x0);}return this[_0x3f60('0x5')]=_0x2aad37,this[_0x3f60('0x29')]=_0x216ba7,this[_0x3f60('0x37')]();}[_0x3f60('0xec')](_0x3492bb){this['_reset'](),this[_0x3f60('0x5')]=_0x3492bb['fromVersion'],this[_0x3f60('0x29')]=_0x3492bb[_0x3f60('0xaa')];for(const _0xf3a280 in _0x3492bb['diffData']){const _0x530191=_0x3492bb[_0x3f60('0x94')][_0xf3a280][_0x3f60('0x8e')],_0x37f5d9=_0x136f39(_0x3492bb[_0x3f60('0x94')][_0xf3a280]['attributesBefore'])||{},_0xc624ac=this['_makeModelFromViewString'](_0x3492bb['diffData'][_0xf3a280][_0x3f60('0xcd')]);_0xc624ac[_0x3f60('0xed')]=_0xf3a280,_0xc624ac[_0x3f60('0x2c')]=!_0x530191||!_0x530191[_0x3f60('0x2b')],_0xc624ac[_0x3f60('0x2b')]=()=>_0xc624ac['_isAttached'],this[_0x3f60('0x100')][_0x3f60('0xe8')](_0xf3a280,_0xc624ac),this[_0x3f60('0xd7')][_0x3f60('0xe8')](_0xf3a280,_0x37f5d9),_0x530191&&this['_touchedRoots']['set'](_0xf3a280,_0x530191);const _0x25b911=this[_0x3f60('0x55')](_0xc624ac);this[_0x3f60('0x8c')]['set'](_0xf3a280,_0x25b911);for(const [_0x2e2175,_0x279c35]of _0xc624ac[_0x3f60('0x72')]){if(!_0x2e2175[_0x3f60('0xa9')](_0x3f60('0xd1')))continue;const _0x397439=_0x2e2175[_0x3f60('0x104')](':')[0x2];for(const _0x14d6c2 of _0x279c35[_0x3f60('0x6a')]({'singleCharacters':!0x0})){const _0x2082de=this[_0x3f60('0xd4')](_0x14d6c2),_0x18a265='elementEnd'==_0x14d6c2[_0x3f60('0xdb')]?_0x14d6c2[_0x3f60('0x2a')]['path'][_0x3f60('0xb8')](0x0,-0x1):_0x14d6c2[_0x3f60('0x2a')]['path'],_0x376643=_0x25b911['getNodeByPath'](_0x18a265)[_0x3f60('0xfb')](_0x2082de);this[_0x3f60('0x4d')]['set'](_0x376643,{'userId':_0x397439});}}}this[_0x3f60('0x18')]=this[_0x3f60('0x7')];const _0x1bd92e=[...Array(this[_0x3f60('0x7')])[_0x3f60('0xf9')]()]['slice'](0x1)[_0x3f60('0x5f')](_0x5f3e4e=>!this[_0x3f60('0x4d')][_0x3f60('0x77')](_0x5f3e4e));let _0x3abb23=0x0;const _0x374355=new Map();for(const _0x2dc4a9 in _0x3492bb['diffData']){const _0x4b4f3b=_0x3492bb['diffData'][_0x2dc4a9][_0x3f60('0x8e')],_0x533cd5=_0x136f39(_0x3492bb[_0x3f60('0x94')][_0x2dc4a9]['attributesAfter'])||{},_0x52da58=this[_0x3f60('0x95')](_0x3492bb[_0x3f60('0x94')][_0x2dc4a9]['insertions']);_0x52da58[_0x3f60('0xed')]=_0x2dc4a9,_0x52da58[_0x3f60('0x2c')]=!_0x4b4f3b||_0x4b4f3b['isAttached'],_0x52da58[_0x3f60('0x2b')]=()=>_0x52da58[_0x3f60('0x2c')],this[_0x3f60('0x85')][_0x3f60('0xe8')](_0x2dc4a9,_0x52da58),this[_0x3f60('0xe4')][_0x3f60('0xe8')](_0x2dc4a9,_0x533cd5);const _0x169168=this[_0x3f60('0x55')](_0x52da58,Number[_0x3f60('0x108')]);this[_0x3f60('0xf6')]['set'](_0x2dc4a9,_0x169168),_0x374355[_0x3f60('0xe8')](_0x2dc4a9,_0x52da58['isAttached']()?_0x533cd5:{});for(const [_0x19531a,_0x39ce1e]of _0x52da58[_0x3f60('0x72')]){if(!_0x19531a[_0x3f60('0xa9')](_0x3f60('0xd1')))continue;const _0x124fae=_0x19531a[_0x3f60('0x104')](':')[0x2];for(const _0x1f3fea of _0x39ce1e[_0x3f60('0x6a')]({'singleCharacters':!0x0})){const _0x1e424c=this['_getVidAttributeName'](_0x1f3fea),_0x3198c2=this[_0x3f60('0x7')]++,_0x561a34=_0x3f60('0xad')==_0x1f3fea[_0x3f60('0xdb')]?_0x1f3fea['previousPosition'][_0x3f60('0x10')][_0x3f60('0xb8')](0x0,-0x1):_0x1f3fea['previousPosition']['path'];_0x169168[_0x3f60('0x23')](_0x561a34)['_setAttribute'](_0x1e424c,_0x3198c2),this['_touched'][_0x3f60('0xe8')](_0x3198c2,{'userId':_0x124fae});}}for(const _0x4b8d8c of this['editor'][_0x3f60('0xa0')][_0x3f60('0x78')](_0x52da58)[_0x3f60('0x6a')]({'singleCharacters':!0x0})){const _0x3941b7=this[_0x3f60('0xd4')](_0x4b8d8c),_0x2ba971=_0x3f60('0xad')==_0x4b8d8c[_0x3f60('0xdb')]?_0x4b8d8c['previousPosition'][_0x3f60('0x10')][_0x3f60('0xb8')](0x0,-0x1):_0x4b8d8c[_0x3f60('0x2a')]['path'],_0x36f4e8=_0x169168[_0x3f60('0x23')](_0x2ba971);_0x36f4e8['getAttribute'](_0x3941b7)>0x0||_0x36f4e8[_0x3f60('0xf5')](_0x3941b7,_0x1bd92e[_0x3abb23++]);}for(const [_0xd04756,_0x2e8919]of _0x52da58[_0x3f60('0x72')])_0xd04756[_0x3f60('0xa9')](_0x3f60('0xd1'))||this['_markers'][_0x3f60('0xe8')](_0xd04756,_0x2e8919);}const _0x37340b=G(_0x3f60('0xe5'));this[_0x3f60('0x100')][_0x3f60('0xe8')](_0x3f60('0xe5'),_0x37340b),this[_0x3f60('0x8c')][_0x3f60('0xe8')]('$graveyard',this[_0x3f60('0x55')](_0x37340b,0x1));const _0x5d3af2=G(_0x3f60('0xe5'));this[_0x3f60('0x85')][_0x3f60('0xe8')](_0x3f60('0xe5'),_0x5d3af2),this[_0x3f60('0xf6')]['set'](_0x3f60('0xe5'),this[_0x3f60('0x55')](_0x5d3af2,0x1));const _0xdf674=Array[_0x3f60('0x3f')](this[_0x3f60('0x85')])['map'](([_0x33c6f9,_0x56e352])=>[_0x33c6f9,q(_0x56e352)]);this[_0x3f60('0x22')](this[_0x3f60('0x29')],_0xdf674,this[_0x3f60('0xb7')],_0x374355);}[_0x3f60('0x95')](_0x55a51d){const _0x4bd514=JSON[_0x3f60('0x71')](_0x55a51d),_0x4bdfe9=this[_0x3f60('0xbb')][_0x3f60('0xf8')][_0x3f60('0xc5')][_0x3f60('0xf')],_0x12794e=new _0x391344(_0x4bdfe9,_0x4bd514[_0x3f60('0xdd')](_0x661a12=>J(_0x661a12,this[_0x3f60('0xbb')])));return this[_0x3f60('0xbb')][_0x3f60('0x92')]['toModel'](_0x12794e);}[_0x3f60('0x22')](_0x4915fe,_0x4e3cb2,_0x2e4f1b,_0x302e31){const _0x45356b=new Map(_0x4e3cb2),_0x8d1042=new Map(_0x136f39(_0x302e31)),_0x1bb644=new Map();for(const [_0x27b33f,_0x409510]of _0x2e4f1b)_0x1bb644['set'](_0x27b33f,{'start':_0x409510[_0x3f60('0x33')][_0x3f60('0x83')](),'end':_0x409510[_0x3f60('0xac')]['clone'](),'rootName':_0x409510['root']['rootName']});this['_savedMetaData'][_0x3f60('0xe8')](_0x4915fe,{'roots':_0x45356b,'markers':_0x1bb644,'rootsAttributes':_0x8d1042});}[_0x3f60('0x4b')](_0xcfc32e){this[_0x3f60('0x47')][_0x3f60('0x75')](_0xcfc32e);}[_0x3f60('0xc9')](){this[_0x3f60('0x106')](),this[_0x3f60('0x5')]=-0x1,this[_0x3f60('0x29')]=-0x1,this[_0x3f60('0x47')]['clear'](),this[_0x3f60('0x21')](this[_0x3f60('0xb3')]);}[_0x3f60('0x106')](){this[_0x3f60('0x4d')][_0x3f60('0xa8')](),this[_0x3f60('0x42')][_0x3f60('0xa8')](),this['_touchedRoots'][_0x3f60('0xa8')](),this[_0x3f60('0x85')][_0x3f60('0xa8')](),this['_diffRootsAttributes'][_0x3f60('0xa8')](),this[_0x3f60('0x100')][_0x3f60('0xa8')](),this[_0x3f60('0xd7')][_0x3f60('0xa8')](),this[_0x3f60('0xf6')]['clear'](),this[_0x3f60('0x8c')][_0x3f60('0xa8')](),this['_markers'][_0x3f60('0xa8')](),this[_0x3f60('0x7')]=0x1,this[_0x3f60('0x18')]=this[_0x3f60('0x7')];}[_0x3f60('0x55')](_0x44c7be,_0x45c224=null){let _0x152f55=null;_0x44c7be['is']('documentFragment')||(_0x152f55=new _0x2cfae2(_0x44c7be['name'],{'vid_start':null===_0x45c224?this['_revisionId']++:_0x45c224++}));const _0x2c37bd=[];for(const _0xa136b4 of _0x44c7be[_0x3f60('0xe6')]())if(_0xa136b4['is'](_0x3f60('0xc'))){_0x2c37bd[_0x3f60('0xd9')](this['_makeIdsRoot'](_0xa136b4,_0x45c224));const _0x39a7fc=_0x2c37bd[_0x2c37bd[_0x3f60('0x9f')]-0x1];null!==_0x45c224&&(_0x45c224=_0x39a7fc['is'](_0x3f60('0xc'),'$text')?_0x39a7fc['getAttribute']('vid')+0x1:_0x39a7fc[_0x3f60('0xfb')](_0x3f60('0xae'))+0x1);}else for(let _0x23451f=0x0;_0x23451f<_0xa136b4[_0x3f60('0xc1')];_0x23451f++)_0x2c37bd[_0x3f60('0xd9')](new _0x2cfae2(_0x3f60('0xa5'),{'vid':null===_0x45c224?this[_0x3f60('0x7')]++:_0x45c224++}));if(_0x44c7be['is']('documentFragment')){const _0x4b98be=G(_0x44c7be[_0x3f60('0xed')]);return _0x4b98be[_0x3f60('0x8')](0x0,_0x2c37bd),_0x4b98be;}return _0x152f55[_0x3f60('0xf5')](_0x3f60('0xae'),null===_0x45c224?this['_revisionId']++:_0x45c224++),_0x152f55['_insertChild'](0x0,_0x2c37bd),_0x152f55;}[_0x3f60('0xd0')](_0x4ce210,_0x5eb110,_0x314779){this['_reset']();const {roots:_0x25e75c,markers:_0x2083e5,rootsAttributes:_0x1da7fd}=this['_savedMetaData'][_0x3f60('0xb1')](_0x4ce210);this['_baseRoots']=new Map(_0x25e75c),this['_baseRootsAttributes']=new Map(_0x136f39(_0x1da7fd));for(const [_0x3eef03,_0x36cf22]of this['_baseRoots'])if(_0x3f60('0xe5')!==_0x3eef03&&(this['_diffRoots']['set'](_0x3eef03,q(_0x36cf22)),this[_0x3f60('0xe4')]=new Map(_0x136f39(_0x1da7fd)),_0x314779)){const _0x4ae84f=this[_0x3f60('0x7')];this[_0x3f60('0xf6')]['set'](_0x3eef03,this['_makeIdsRoot'](_0x36cf22)),this['_baseIdsRoots'][_0x3f60('0xe8')](_0x3eef03,this[_0x3f60('0x55')](_0x36cf22,_0x4ae84f));}this[_0x3f60('0x18')]=this['_revisionId'],this['_diffRoots'][_0x3f60('0xe8')](_0x3f60('0xe5'),q(this['_baseRoots']['get'](_0x3f60('0xe5')))),_0x314779&&this[_0x3f60('0xf6')][_0x3f60('0xe8')](_0x3f60('0xe5'),this[_0x3f60('0x55')](this[_0x3f60('0x100')]['get'](_0x3f60('0xe5'))));for(const [_0x5402d1,_0x53276c]of _0x2083e5){const _0x56ce0a=this[_0x3f60('0x100')][_0x3f60('0xb1')](_0x53276c[_0x3f60('0xed')]),_0x35b728=this['_diffRoots'][_0x3f60('0xb1')](_0x53276c['rootName']),_0x4229b3=new _0x90af34(this[_0x3f60('0xa6')](_0x53276c[_0x3f60('0x33')],_0x56ce0a),this[_0x3f60('0xa6')](_0x53276c[_0x3f60('0xac')],_0x56ce0a)),_0x127cbb=this['_fixRange'](_0x4229b3,_0x35b728);_0x56ce0a[_0x3f60('0x72')]['set'](_0x5402d1,_0x4229b3),this[_0x3f60('0xb7')][_0x3f60('0xe8')](_0x5402d1,_0x127cbb);}this[_0x3f60('0x63')](_0x4ce210,_0x5eb110,_0x314779);}['_applyOperations'](_0x52cada,_0x2b8251,_0x118e9d){for(const _0x4f47f8 of this[_0x3f60('0xb3')][_0x3f60('0x7e')](_0x52cada,_0x2b8251))this[_0x3f60('0x80')](_0x4f47f8,_0x118e9d);for(const _0x5f08c9 of this['_diffRoots'][_0x3f60('0x1')]())_0x5f08c9[_0x3f60('0x72')][_0x3f60('0xa8')]();for(const [_0x46b5e2,_0x183a0a]of this[_0x3f60('0xb7')]){this[_0x3f60('0x85')][_0x3f60('0xb1')](_0x183a0a[_0x3f60('0x1b')][_0x3f60('0xed')])[_0x3f60('0x72')][_0x3f60('0xe8')](_0x46b5e2,_0x183a0a['clone']());}const _0x5d264b=new Map(),_0x2c915e=new Map();for(const [_0x4a94fe,_0x2fb02e]of this[_0x3f60('0x85')])_0x5d264b[_0x3f60('0xe8')](_0x4a94fe,q(_0x2fb02e)),_0x2c915e[_0x3f60('0xe8')](_0x4a94fe,this[_0x3f60('0xe4')][_0x3f60('0xb1')](_0x4a94fe));this[_0x3f60('0x22')](_0x2b8251,_0x5d264b,this[_0x3f60('0xb7')],_0x2c915e);}['_getPreviousFrom'](_0x18affe){const _0xe5b268=Array[_0x3f60('0x3f')](this['_savedMetaData']['keys']());_0xe5b268['sort']((_0x2bad7d,_0x4314cc)=>_0x2bad7d-_0x4314cc),_0xe5b268[_0x3f60('0xbd')]();for(const _0x2ffd65 of _0xe5b268)if(_0x2ffd65<_0x18affe)return _0x2ffd65;return Number[_0x3f60('0x108')];}[_0x3f60('0xe')](_0x51134b,_0x47e5f4){const _0x45e593=Array[_0x3f60('0x3f')](_0x47e5f4[_0x3f60('0x72')])['map'](([_0x5f3b96,_0x356574])=>[_0x5f3b96,this[_0x3f60('0x12')](_0x356574,_0x51134b)]);_0x51134b[_0x3f60('0x72')]=new Map(_0x45e593);}[_0x3f60('0xfc')](_0x3377fd){for(const _0x11e977 of this[_0x3f60('0xb7')][_0x3f60('0x1')]()){const _0xc3c3c0=_0x11e977['getTransformedByOperation'](_0x3377fd),_0x19bb42=_0x90af34[_0x3f60('0xee')](_0xc3c3c0);_0x11e977['start']=_0x19bb42[_0x3f60('0x33')],_0x11e977['end']=_0x19bb42[_0x3f60('0xac')];}}[_0x3f60('0x80')](_0x82a5da,_0x469cc3){if(_0x3f60('0x2d')==_0x82a5da['type']||_0x3f60('0x5c')==_0x82a5da[_0x3f60('0xdb')])return void this['_handleRootOperation'](_0x82a5da,_0x469cc3);if(_0x3f60('0x31')==_0x82a5da[_0x3f60('0xdb')]){const _0x2f8c4f=_0x82a5da[_0x3f60('0x24')][_0x3f60('0x1b')]['rootName'];this['_diffRoots'][_0x3f60('0x77')](_0x2f8c4f)||(this[_0x3f60('0x85')]['set'](_0x2f8c4f,G(_0x2f8c4f,!0x0)),this['_diffRootsAttributes']['set'](_0x2f8c4f,{}),_0x469cc3&&this[_0x3f60('0xf6')][_0x3f60('0xe8')](_0x2f8c4f,G(_0x2f8c4f,!0x0)));}else{if(_0x3f60('0xa4')==_0x82a5da[_0x3f60('0xdb')]||_0x3f60('0x59')==_0x82a5da[_0x3f60('0xdb')]||'changeRootAttribute'==_0x82a5da[_0x3f60('0xdb')])return void this[_0x3f60('0x96')](_0x82a5da);}const _0xd8d2bc=this['_cloneOperation'](_0x82a5da,this[_0x3f60('0x85')]);if('marker'!==_0x82a5da[_0x3f60('0xdb')]&&(_0xd8d2bc['_execute'](),this['_transformMarkers'](_0xd8d2bc)),_0x469cc3)switch(_0xd8d2bc[_0x3f60('0xdb')]){case _0x3f60('0x31'):this[_0x3f60('0x88')](_0x82a5da);break;case _0x3f60('0x3c'):case _0x3f60('0x9b'):case _0x3f60('0x105'):this[_0x3f60('0xea')](_0x82a5da);break;case _0x3f60('0x6b'):this[_0x3f60('0x2')](_0x82a5da);break;case _0x3f60('0x104'):this[_0x3f60('0x50')](_0x82a5da);break;case'marker':this[_0x3f60('0xfa')](_0x82a5da);}}[_0x3f60('0xd')](_0x1c53ac,_0x13ceb5){const _0x5c633a=_0x1c53ac[_0x3f60('0x83')]();return _0x5c633a[_0x3f60('0x35')]=_0x1c53ac[_0x3f60('0x35')],this[_0x3f60('0x76')](_0x5c633a,_0x13ceb5),_0x5c633a;}[_0x3f60('0xbc')](_0x1f414a){return _0x1f414a[_0x3f60('0xdd')](_0x69ad7c=>{const _0x384238=this['_getVidAttributeName'](_0x69ad7c);return Number(_0x69ad7c['item']['getAttribute'](_0x384238));});}[_0x3f60('0xb9')](_0x26a99e,_0x3690a4){if(_0x26a99e['is'](_0x3f60('0xc'),_0x3f60('0xa5')))_0x3690a4[_0x3f60('0xd9')]({'item':_0x26a99e,'type':_0x3f60('0xc0')});else{_0x26a99e['is'](_0x3f60('0xc'))&&_0x3690a4['push']({'item':_0x26a99e,'type':'elementStart'});for(const _0x2cdfb1 of _0x26a99e[_0x3f60('0xe6')]())this[_0x3f60('0xb9')](_0x2cdfb1,_0x3690a4);_0x26a99e['is'](_0x3f60('0xc'))&&_0x3690a4[_0x3f60('0xd9')]({'item':_0x26a99e,'type':'elementEnd'});}return _0x3690a4;}['_getState'](){const _0xaf7383=new Map(this[_0x3f60('0x4d')]),_0x322b21=new Map(_0xaf7383),_0x3d37cb=new Map(),_0x7c6dc8={'insertions':{},'deletions':{}},_0x8c3eac={'insertions':{},'deletions':{}},_0xed6ed3=new Map(),_0x52378a=new Set([...this['_baseRoots'][_0x3f60('0xf9')](),...this[_0x3f60('0x85')][_0x3f60('0xf9')]()]);_0x52378a[_0x3f60('0x75')](_0x3f60('0xe5'));for(const _0x588a1f of _0x52378a){const _0x268958=this['_diffRoots'][_0x3f60('0xb1')](_0x588a1f)||G(_0x588a1f,!0x1),_0x2d79af=this[_0x3f60('0x100')][_0x3f60('0xb1')](_0x588a1f)||G(_0x588a1f,!0x1);_0x268958['isAttached']()||_0x2d79af[_0x3f60('0x2b')]()?(_0x7c6dc8['insertions'][_0x588a1f]=q(_0x268958),_0x7c6dc8[_0x3f60('0xcd')][_0x588a1f]=q(_0x2d79af),this[_0x3f60('0xe')](_0x7c6dc8['deletions'][_0x588a1f],_0x2d79af),this[_0x3f60('0xe')](_0x7c6dc8['insertions'][_0x588a1f],_0x268958),_0x8c3eac[_0x3f60('0x38')][_0x588a1f]=this['_generateTape'](this[_0x3f60('0xf6')][_0x3f60('0xb1')](_0x588a1f),[]),_0x8c3eac[_0x3f60('0xcd')][_0x588a1f]=this[_0x3f60('0xb9')](this[_0x3f60('0x8c')]['get'](_0x588a1f)||G(_0x588a1f,!0x1),[])):_0x52378a['delete'](_0x588a1f);}for(const _0x18772d of _0x52378a){const _0x45bbd2=_0x8c3eac[_0x3f60('0x38')][_0x18772d];for(const _0x3592d3 of _0x45bbd2){const _0x8a33f3=this[_0x3f60('0xd4')](_0x3592d3),_0x435874=_0x3592d3[_0x3f60('0xdf')][_0x3f60('0xfb')](_0x8a33f3);_0x322b21[_0x3f60('0x75')](_0x435874),_0x435874>=this[_0x3f60('0x18')]&&_0x3d37cb[_0x3f60('0xe8')](_0x435874,_0xaf7383['get'](_0x435874));}}for(const _0x2f69e4 of _0x52378a){const _0x381721=_0x8c3eac[_0x3f60('0x38')][_0x2f69e4],_0x3ee380=this[_0x3f60('0xbc')](_0x8c3eac[_0x3f60('0xcd')][_0x2f69e4]);let _0x39f337=0x0;for(const _0x5d4e10 of _0x381721){const _0x74ccb0=this[_0x3f60('0xd4')](_0x5d4e10),_0x35c34d=_0x5d4e10[_0x3f60('0xdf')]['getAttribute'](_0x74ccb0);if(!_0x3d37cb[_0x3f60('0x77')](_0x35c34d)&&!_0xed6ed3[_0x3f60('0x77')](_0x35c34d)){if(_0x322b21['has'](_0x35c34d))_0x39f337++;else{if(_0x35c34d!=_0x3ee380[_0x39f337]){const _0x1a6ff2=_0xaf7383[_0x3f60('0xb1')](_0x35c34d)||_0xaf7383[_0x3f60('0xb1')](_0x3ee380[_0x39f337]);for(;_0x35c34d!=_0x3ee380[_0x39f337];)_0x322b21[_0x3f60('0x77')](_0x3ee380[_0x39f337])||(_0xed6ed3[_0x3f60('0xe8')](_0x3ee380[_0x39f337],_0x1a6ff2),_0xaf7383[_0x3f60('0xe8')](_0x3ee380[_0x39f337],_0x1a6ff2)),_0x39f337++;}_0x39f337++;}}}}for(const _0x591fae of _0x52378a){const _0x3ba30f=_0x8c3eac['insertions'][_0x591fae];for(const _0x1a51f6 of _0x3ba30f){const _0x26195a=this[_0x3f60('0xd4')](_0x1a51f6),_0x321857=_0x1a51f6[_0x3f60('0xdf')][_0x3f60('0xfb')](_0x26195a);if(_0xed6ed3[_0x3f60('0x77')](_0x321857)){const _0x4e9c76=_0xed6ed3['get'](_0x321857);_0x322b21[_0x3f60('0x77')](_0x321857)||_0x322b21[_0x3f60('0xe8')](_0x321857,{..._0x4e9c76}),_0x3d37cb['set'](_0x321857,{..._0x4e9c76});}}}for(const _0x272948 of _0x322b21[_0x3f60('0xf9')]())_0x272948>=this[_0x3f60('0x18')]&&_0x322b21[_0x3f60('0x75')](_0x272948);const _0x131c31=new Map();for(const _0x3e1dc9 of _0x52378a){let _0x398ac1=_0x8c3eac[_0x3f60('0x38')][_0x3e1dc9];for(const _0x5965da of _0x398ac1)if(_0x5965da[_0x3f60('0xdf')]['is'](_0x3f60('0xc'),_0x3f60('0x1a'))){const _0x5aa647=this[_0x3f60('0xd4')](_0x5965da),_0x13dcaf=_0x5965da[_0x3f60('0xdf')][_0x3f60('0xfb')](_0x5aa647);if(_0x3d37cb[_0x3f60('0x77')](_0x13dcaf)){const _0x469334=_0x5965da[_0x3f60('0xdf')][_0x3f60('0xf0')][_0x3f60('0xf0')][_0x3f60('0xfb')](_0x3f60('0xfd')),_0x59b129=_0x131c31[_0x3f60('0xb1')](_0x469334)||new Set();_0x59b129['add'](_0x3d37cb[_0x3f60('0xb1')](_0x13dcaf)['userId']),_0x131c31[_0x3f60('0xe8')](_0x469334,_0x59b129);}}_0x398ac1=_0x8c3eac[_0x3f60('0xcd')][_0x3e1dc9];for(const _0x4c0f9e of _0x398ac1)if(_0x4c0f9e[_0x3f60('0xdf')]['is'](_0x3f60('0xc'),_0x3f60('0x1a'))){const _0x1c2480=this[_0x3f60('0xd4')](_0x4c0f9e),_0x7d386d=_0x4c0f9e[_0x3f60('0xdf')]['getAttribute'](_0x1c2480);if(_0x322b21[_0x3f60('0x77')](_0x7d386d)){const _0x5898c7=_0x4c0f9e[_0x3f60('0xdf')][_0x3f60('0xf0')]['parent'][_0x3f60('0xfb')](_0x3f60('0xfd')),_0x1d4dcd=_0x131c31['get'](_0x5898c7)||new Set();_0x1d4dcd[_0x3f60('0xc8')](_0x322b21[_0x3f60('0xb1')](_0x7d386d)[_0x3f60('0x91')]),_0x131c31[_0x3f60('0xe8')](_0x5898c7,_0x1d4dcd);}}for(const _0x1b953 of _0x131c31[_0x3f60('0xf9')]())(_0x3d37cb[_0x3f60('0x77')](_0x1b953)||_0x322b21[_0x3f60('0x77')](_0x1b953))&&_0x131c31[_0x3f60('0x75')](_0x1b953);}for(const _0x55e039 of _0x52378a){const _0x17fcb9=_0x8c3eac[_0x3f60('0x38')][_0x55e039];let _0x320441=null,_0x58c764=null;for(const _0x3dac8d of _0x17fcb9){const _0xc8ff95=this['_getVidAttributeName'](_0x3dac8d),_0x507498=_0x3dac8d[_0x3f60('0xdf')][_0x3f60('0xfb')](_0xc8ff95),_0x35ff49=_0x131c31['get'](_0x507498);_0x35ff49&&_0x3f60('0xf3')==_0x3dac8d[_0x3f60('0xdb')]&&(_0x320441=Array[_0x3f60('0x3f')](_0x35ff49)[0x0],_0x58c764=_0x3dac8d['item'][_0x3f60('0xfb')](_0x3f60('0xae'))),_0x320441&&(_0x322b21[_0x3f60('0xe8')](_0x507498,{'userId':_0x320441}),_0x3d37cb[_0x3f60('0xe8')](_0x507498,{'userId':_0x320441})),_0x507498==_0x58c764&&(_0x320441=null,_0x58c764=null);}}const _0x12e423={},_0x5b1fbb=new Set();for(const _0x2b9fe1 of _0x52378a){const _0x150398=_0x7c6dc8[_0x3f60('0xcd')][_0x2b9fe1],_0x5cc7e7=_0x7c6dc8[_0x3f60('0x38')][_0x2b9fe1];for(const {userId:_0x3cec78}of this[_0x3f60('0x42')]['values']())null!==_0x3cec78&&_0x5b1fbb[_0x3f60('0xc8')](_0x3cec78);for(const {userId:_0x39fd5f}of this['_touchedRoots'][_0x3f60('0x1')]())null!==_0x39fd5f&&_0x5b1fbb['add'](_0x39fd5f);this[_0x3f60('0x56')](_0x5cc7e7,_0x8c3eac['insertions'][_0x2b9fe1],_0x3d37cb,_0x3f60('0xe3'),_0x5b1fbb),this['_markChanges'](_0x150398,_0x8c3eac[_0x3f60('0xcd')][_0x2b9fe1],_0x322b21,_0x3f60('0x67'),_0x5b1fbb),_0x12e423[_0x2b9fe1]={'insertions':this[_0x3f60('0x1c')](_0x5cc7e7),'deletions':this[_0x3f60('0x1c')](_0x150398),'attachChange':this[_0x3f60('0xc4')][_0x3f60('0xb1')](_0x2b9fe1)||null,'attributesBefore':_0x136f39(this['_baseRootsAttributes'][_0x3f60('0xb1')](_0x2b9fe1))||{},'attributesAfter':_0x136f39(this[_0x3f60('0xe4')]['get'](_0x2b9fe1))};}return{'diffData':_0x12e423,'authorsIds':Array[_0x3f60('0x3f')](_0x5b1fbb)};}['_processRootBeforeSave'](_0x17bbf4){for(const [,_0x4719ec]of _0x17bbf4[_0x3f60('0x72')]){const _0x3b4d3a=_0x4719ec[_0x3f60('0x33')][_0x3f60('0x74')]()[_0x3f60('0x5f')](_0x553901=>_0x3f60('0x1a')==_0x553901[_0x3f60('0x34')]);for(const _0x2d6b76 of _0x3b4d3a)0x1==_0x2d6b76[_0x3f60('0xdc')]&&_0x2d6b76[_0x3f60('0x99')](0x0)['is'](_0x3f60('0xc'),_0x3f60('0x3e'))&&_0x2d6b76[_0x3f60('0x99')](0x0)[_0x3f60('0xf5')](_0x3f60('0x90'),!0x0);}}[_0x3f60('0x1c')](_0x17c6e0){this['_processRootBeforeSave'](_0x17c6e0);const _0x52dea4=this['editor'][_0x3f60('0x92')][_0x3f60('0xa2')](_0x17c6e0,{}),_0x56ccd1=Array[_0x3f60('0x3f')](_0x52dea4[_0x3f60('0xe6')]())[_0x3f60('0xdd')](_0x4b8c09=>this['_getViewJson'](_0x4b8c09));return JSON[_0x3f60('0x7f')](_0x56ccd1);}['_getViewJson'](_0x367716){if(_0x367716['is'](_0x3f60('0xa5')))return _0x367716['data'];{const _0x2e7028=_0x367716;return{'type':Object[_0x3f60('0xf9')](B)[_0x3f60('0xa1')](_0x14e007=>_0x367716 instanceof B[_0x14e007]),'name':_0x2e7028[_0x3f60('0x34')],'attributes':Array[_0x3f60('0x3f')](_0x2e7028[_0x3f60('0x73')]()),'children':Array[_0x3f60('0x3f')](_0x2e7028['getChildren']())['map'](_0x1fbf55=>this[_0x3f60('0xbf')](_0x1fbf55))};}}[_0x3f60('0x56')](_0x158f6c,_0x129242,_0x4eb7b9,_0x2c1e9a,_0x30b48d){let _0x4dd3b4=null,_0x5ea173=null,_0x41edc7=0x0;const _0x17c353=this[_0x3f60('0xbb')][_0x3f60('0xa0')];for(let _0x227b81=0x0;_0x227b81<_0x129242[_0x3f60('0x9f')];_0x227b81++){const _0x1f54b3=this[_0x3f60('0xd4')](_0x129242[_0x227b81]),_0x1a03d8=_0x129242[_0x227b81][_0x3f60('0xdf')][_0x3f60('0xfb')](_0x1f54b3),_0x8c4da5=_0x4eb7b9[_0x3f60('0xb1')](_0x1a03d8),_0x4e769a=_0x227b81==_0x129242[_0x3f60('0x9f')]-0x1;(!_0x4dd3b4&&_0x8c4da5&&(_0x4dd3b4=_0x8c4da5,_0x5ea173=_0x129242[_0x227b81]),_0x4dd3b4&&(!_0x8c4da5||_0x8c4da5[_0x3f60('0x91')]!=_0x4dd3b4[_0x3f60('0x91')]))&&(_0x163ffe(_0x8c4da5,L(_0x5ea173,_0x158f6c,_0x17c353),L(_0x129242[_0x227b81],_0x158f6c,_0x17c353)),_0x4dd3b4=_0x8c4da5||null,_0x5ea173=_0x8c4da5?_0x129242[_0x227b81]:null),_0x4dd3b4&&_0x4e769a&&_0x163ffe(_0x8c4da5,L(_0x5ea173,_0x158f6c,_0x17c353),W(_0x129242[_0x227b81],_0x158f6c,_0x17c353));}function _0x163ffe(_0x36c27a,_0x404c5d,_0x5a8c37){const _0xbb166e=_0x4dd3b4[_0x3f60('0x91')],_0x9e777a=_0x3f60('0xd1')+_0x2c1e9a+':'+_0xbb166e+':'+_0x41edc7++,_0x13fad2=_0x17c353['createRange'](_0x404c5d,_0x5a8c37);_0x158f6c[_0x3f60('0x72')]['set'](_0x9e777a,_0x13fad2),null!==_0xbb166e&&_0x30b48d['add'](_0xbb166e);}}[_0x3f60('0xd4')](_0x44057d){switch(_0x44057d[_0x3f60('0xdb')]){case'elementStart':return'vid_start';case'elementEnd':return _0x3f60('0xae');default:return _0x3f60('0x81');}}[_0x3f60('0x76')](_0x16a5e9,_0x111bcd){_0x16a5e9[_0x3f60('0xba')]=null;for(const _0x50e9a0 in _0x16a5e9){const _0x2ec02a=_0x16a5e9[_0x50e9a0];if(_0x2ec02a instanceof _0xba1a39){const _0x46bddc=_0x111bcd[_0x3f60('0xb1')](_0x2ec02a['root'][_0x3f60('0xed')]);_0x16a5e9[_0x50e9a0]=this[_0x3f60('0xa6')](_0x2ec02a,_0x46bddc);}if(_0x2ec02a instanceof _0x90af34){const _0x14beeb=_0x111bcd[_0x3f60('0xb1')](_0x2ec02a[_0x3f60('0x1b')][_0x3f60('0xed')]);_0x16a5e9[_0x50e9a0]=this[_0x3f60('0x12')](_0x2ec02a,_0x14beeb);}_0x3f60('0x1b')===_0x50e9a0&&(_0x16a5e9[_0x3f60('0x1b')]=_0x111bcd['get'](_0x16a5e9[_0x3f60('0x1b')][_0x3f60('0xed')]));}}[_0x3f60('0x12')](_0x15b097,_0x3864c7){return this['editor']['model'][_0x3f60('0x20')](this[_0x3f60('0xa6')](_0x15b097[_0x3f60('0x33')],_0x3864c7),this['_fixPosition'](_0x15b097['end'],_0x3864c7));}[_0x3f60('0xa6')](_0x2f96e5,_0x394009){return this[_0x3f60('0xbb')][_0x3f60('0xa0')][_0x3f60('0x17')](_0x394009,_0x2f96e5['path'],_0x2f96e5['stickiness']);}[_0x3f60('0x88')](_0x4b89c3){const _0x31098e=this[_0x3f60('0xf6')]['get'](_0x4b89c3['position'][_0x3f60('0x1b')]['rootName']),_0x5f7442=this[_0x3f60('0xa6')](_0x4b89c3[_0x3f60('0x24')],_0x31098e),_0x974c24=null===_0x4b89c3[_0x3f60('0x35')]?null:_0x4b89c3[_0x3f60('0x35')]||this[_0x3f60('0xbb')]['plugins']['get'](_0x3f60('0xa'))['me']['id'],_0x2a4367=_0x5f7442[_0x3f60('0xf0')],_0x58ad72=this['_revisionId'],_0x45634=[];for(const _0x287ccb of _0x4b89c3[_0x3f60('0xda')])if(_0x287ccb['is'](_0x3f60('0xc')))_0x45634['push'](this['_makeIdsRoot'](_0x287ccb));else for(let _0xb9ffa2=0x0;_0xb9ffa2<_0x287ccb['offsetSize'];_0xb9ffa2++)_0x45634[_0x3f60('0xd9')](new _0x2cfae2(_0x3f60('0xa5'),{'vid':this['_revisionId']++}));const _0xd294cd=this[_0x3f60('0x7')];for(let _0x48aa38=_0x58ad72;_0x48aa38<_0xd294cd;_0x48aa38++)this[_0x3f60('0x4d')][_0x3f60('0xe8')](_0x48aa38,{'userId':_0x974c24});_0x2a4367[_0x3f60('0x8')](_0x5f7442[_0x3f60('0x4f')],_0x45634);}['_handleMoveOperation'](_0x1ba4e9){(_0x1ba4e9=this[_0x3f60('0xd')](_0x1ba4e9,this['_idsRoots']))['_execute']();const _0x5706e4=null===_0x1ba4e9[_0x3f60('0x35')]?null:_0x1ba4e9['_authorId']||this[_0x3f60('0xbb')][_0x3f60('0xaf')][_0x3f60('0xb1')](_0x3f60('0xa'))['me']['id'],_0x5bacb6=_0x1ba4e9[_0x3f60('0x107')](),_0x1c5418=_0x5bacb6[_0x3f60('0xf0')],_0x4ac695=_0x5bacb6[_0x3f60('0x4f')];!function _0x5c7a6b(_0x153540,_0x1c8658,_0x2befdb,_0x4e5262){for(let _0x2d58b6=_0x2befdb;_0x2d58b6<_0x4e5262;_0x2d58b6++){const _0x3d4d2c=_0x1c8658[_0x3f60('0x99')](_0x2d58b6);_0x3d4d2c['is'](_0x3f60('0xc'),_0x3f60('0xa5'))?_0x153540[_0x3f60('0xe8')](_0x3d4d2c['getAttribute'](_0x3f60('0x81')),{'userId':_0x5706e4}):(_0x153540[_0x3f60('0xe8')](_0x3d4d2c['getAttribute'](_0x3f60('0xfd')),{'userId':_0x5706e4}),_0x5c7a6b(_0x153540,_0x3d4d2c,0x0,_0x3d4d2c[_0x3f60('0xdc')]),_0x153540['set'](_0x3d4d2c[_0x3f60('0xfb')]('vid_end'),{'userId':_0x5706e4}));}}(this[_0x3f60('0x4d')],_0x1c5418,_0x4ac695,_0x4ac695+_0x1ba4e9[_0x3f60('0x2e')]);}['_handleMergeOperation'](_0x20ffb2){const _0x558d64=null===(_0x20ffb2=this[_0x3f60('0xd')](_0x20ffb2,this[_0x3f60('0xf6')]))[_0x3f60('0x35')]?null:_0x20ffb2[_0x3f60('0x35')]||this['editor'][_0x3f60('0xaf')][_0x3f60('0xb1')]('Users')['me']['id'],_0x204b7a=_0x20ffb2[_0x3f60('0x45')][_0x3f60('0xf0')],_0x19bcd5=_0x20ffb2[_0x3f60('0xff')]['parent'],_0x31690f=_0x204b7a[_0x3f60('0xfb')](_0x3f60('0xae')),_0xc7f06c=_0x19bcd5['getAttribute'](_0x3f60('0xfd'));_0x204b7a[_0x3f60('0xf5')](_0x3f60('0xae'),_0x19bcd5['getAttribute'](_0x3f60('0xae'))),_0x19bcd5[_0x3f60('0xf5')]('vid_end',_0x31690f),this['_touched'][_0x3f60('0xe8')](_0xc7f06c,{'userId':_0x558d64}),this[_0x3f60('0x4d')][_0x3f60('0xe8')](_0x31690f,{'userId':_0x558d64}),_0x20ffb2[_0x3f60('0xe1')]();}[_0x3f60('0x50')](_0x2afa6b){const _0x7a0e6c=null===(_0x2afa6b=this[_0x3f60('0xd')](_0x2afa6b,this[_0x3f60('0xf6')]))[_0x3f60('0x35')]?null:_0x2afa6b['_authorId']||this['editor']['plugins'][_0x3f60('0xb1')](_0x3f60('0xa'))['me']['id'],_0x3ff57a=_0x2afa6b[_0x3f60('0x25')],_0x3cfd68=_0x2afa6b[_0x3f60('0xe0')][_0x3f60('0xf0')];_0x2afa6b['_execute']();const _0x1d8cc7=_0x3cfd68[_0x3f60('0xfb')](_0x3f60('0xae')),_0x558a98=_0x2afa6b[_0x3f60('0x26')][_0x3f60('0x58')];if(_0x3ff57a){const _0x17aeae=_0x558a98[_0x3f60('0xfb')](_0x3f60('0xae')),_0x328823=_0x3cfd68['getAttribute'](_0x3f60('0xae'));_0x3cfd68['_setAttribute'](_0x3f60('0xae'),_0x17aeae),_0x558a98[_0x3f60('0xf5')](_0x3f60('0xae'),_0x328823),this[_0x3f60('0x4d')][_0x3f60('0xe8')](_0x3cfd68[_0x3f60('0xfb')](_0x3f60('0xae')),{'userId':_0x7a0e6c}),this[_0x3f60('0x4d')]['set'](_0x558a98['getAttribute']('vid_start'),{'userId':_0x7a0e6c});}else{const _0x311ddc=this['_revisionId']++,_0x121409=this['_revisionId']++;_0x3cfd68[_0x3f60('0xf5')](_0x3f60('0xae'),_0x311ddc),_0x558a98['_setAttribute'](_0x3f60('0xfd'),_0x121409),_0x558a98[_0x3f60('0xf5')]('vid_end',_0x1d8cc7),this[_0x3f60('0x4d')]['set'](_0x311ddc,{'userId':_0x7a0e6c}),this[_0x3f60('0x4d')][_0x3f60('0xe8')](_0x121409,{'userId':_0x7a0e6c});}}['_handleMarkerOperation'](_0x3f26c2){if(!_0x3f26c2[_0x3f60('0x4e')])return;const _0x5cfb59=(_0x3f26c2=this['_cloneOperation'](_0x3f26c2,this[_0x3f60('0x85')]))[_0x3f60('0x8a')]?_0x3f26c2[_0x3f60('0x8a')]['root']:null,_0x16758c=_0x3f26c2[_0x3f60('0x1e')]?_0x3f26c2['newRange'][_0x3f60('0x1b')]:null;_0x5cfb59&&this[_0x3f60('0xb7')][_0x3f60('0x75')](_0x3f26c2[_0x3f60('0x34')]),_0x16758c&&this[_0x3f60('0xb7')][_0x3f60('0xe8')](_0x3f26c2[_0x3f60('0x34')],_0x3f26c2[_0x3f60('0x1e')][_0x3f60('0x83')]());const _0x422d36=null===_0x3f26c2[_0x3f60('0x35')]?null:_0x3f26c2['_authorId']||this[_0x3f60('0xbb')][_0x3f60('0xaf')]['get'](_0x3f60('0xa'))['me']['id'],_0x5cd648=_0x3f26c2[_0x3f60('0x34')];if(!this[_0x3f60('0x42')][_0x3f60('0x77')](_0x5cd648))return void this[_0x3f60('0x42')][_0x3f60('0xe8')](_0x5cd648,{'range':_0x3f26c2[_0x3f60('0x8a')],'userId':_0x422d36});const _0x323cee=this[_0x3f60('0x42')][_0x3f60('0xb1')](_0x5cd648),_0xb37448=_0x323cee[_0x3f60('0x40')],_0x51fdd5=_0x3f26c2[_0x3f60('0x1e')];null==_0xb37448&&null==_0x51fdd5||_0xb37448&&_0x51fdd5&&_0xb37448[_0x3f60('0xf2')](_0x51fdd5)?this[_0x3f60('0x42')][_0x3f60('0x75')](_0x3f26c2[_0x3f60('0x34')]):_0x323cee[_0x3f60('0x91')]=_0x422d36;}['_handleRootOperation'](_0x5041a4,_0x221530){this[_0x3f60('0x85')][_0x3f60('0x77')](_0x5041a4['rootName'])?this[_0x3f60('0x85')]['get'](_0x5041a4['rootName'])[_0x3f60('0x2c')]=_0x5041a4[_0x3f60('0x53')]:(this[_0x3f60('0x85')][_0x3f60('0xe8')](_0x5041a4[_0x3f60('0xed')],G(_0x5041a4[_0x3f60('0xed')],!0x0)),this[_0x3f60('0xe4')][_0x3f60('0xe8')](_0x5041a4['rootName'],{}),_0x221530&&this[_0x3f60('0xf6')]['set'](_0x5041a4[_0x3f60('0xed')],G(_0x5041a4[_0x3f60('0xed')],!0x0)));const _0x54b3d1=null===_0x5041a4[_0x3f60('0x35')]?null:_0x5041a4[_0x3f60('0x35')]||this['editor'][_0x3f60('0xaf')][_0x3f60('0xb1')](_0x3f60('0xa'))['me']['id'],_0x50bcf7=this[_0x3f60('0xc4')][_0x3f60('0xb1')](_0x5041a4[_0x3f60('0xed')]);_0x50bcf7&&_0x50bcf7[_0x3f60('0x91')]===_0x54b3d1?this[_0x3f60('0xc4')]['delete'](_0x5041a4['rootName']):this[_0x3f60('0xc4')]['set'](_0x5041a4[_0x3f60('0xed')],{'userId':_0x54b3d1,'isAttached':_0x5041a4['isAdd']});}['_handleRootAttributeOperation'](_0x2aa51b){const _0x43ca1f=this['_diffRootsAttributes'][_0x3f60('0xb1')](_0x2aa51b[_0x3f60('0x1b')][_0x3f60('0xed')]);null===_0x2aa51b['newValue']?delete _0x43ca1f[_0x2aa51b[_0x3f60('0xca')]]:_0x43ca1f[_0x2aa51b[_0x3f60('0xca')]]=_0x2aa51b['newValue'];}}function q(_0x511f95){const _0x44e8bf=G(_0x511f95[_0x3f60('0xed')],_0x511f95[_0x3f60('0x2b')]());for(const _0x14d719 of _0x511f95['getChildren']()){const _0x486a2c=_0x14d719[_0x3f60('0x101')](!0x0);_0x44e8bf[_0x3f60('0x11')](_0x486a2c);}return _0x44e8bf;}function G(_0x52212d,_0x45d0e4=!0x0){const _0x1d645a=new _0x2943f8();return _0x1d645a[_0x3f60('0xed')]=_0x52212d,_0x1d645a['_isAttached']=_0x45d0e4,_0x1d645a[_0x3f60('0x2b')]=()=>_0x1d645a[_0x3f60('0x2c')],_0x1d645a;}function L(_0x2c6f7b,_0x5712bf,_0xfe8ed6){const _0x1d5886=_0x3f60('0xad')==_0x2c6f7b[_0x3f60('0xdb')]?_0xfe8ed6[_0x3f60('0x6d')](_0x2c6f7b[_0x3f60('0xdf')],_0x3f60('0xac')):_0xfe8ed6['createPositionBefore'](_0x2c6f7b['item']);return _0xfe8ed6['createPositionFromPath'](_0x5712bf,_0x1d5886['path'],_0x1d5886[_0x3f60('0x84')]);}function W(_0x58a1a0,_0x184aa9,_0x3eb80d){const _0xfa3eed='elementStart'==_0x58a1a0[_0x3f60('0xdb')]?_0x3eb80d[_0x3f60('0x6d')](_0x58a1a0[_0x3f60('0xdf')],0x0):_0x3eb80d[_0x3f60('0x28')](_0x58a1a0[_0x3f60('0xdf')]);return _0x3eb80d[_0x3f60('0x17')](_0x184aa9,_0xfa3eed[_0x3f60('0x10')],_0xfa3eed[_0x3f60('0x84')]);}
|