@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231120.0 → 0.0.0-nightly-20231122.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 _0x3caf=['_startingVersion','stringify','define','_fixOperation','_baseRootsAttributes','attachChange','getUser','addRevision','slice','_appendChild','isEqual','isAttached','end','editor','previousPosition','getRevisionDocumentData','_loadRevisionData','oldRange','_handleOperation','createPositionBefore','insert','move','_lastFrom','revision-start','getRevision','insertion','_getFromVersion','max','_getBaseVids','element','clear','creatorId','_makeIdsRoot','_initialRevisionId','RevisionsRepository','_applyOperations','creator','for','_fixPosition','_touchedMarkers','getChild','getLatestVersion','initialData','sendBufferedUpdates','elementEnd','data-revision-','_handleSplitOperation','push','baseVersion','getRootNames','parse','editing','startsWith','Initial\x20revision','_bufferUpdate','_update','_bufferedUpdates','ready','markerToData','elementStart','resolve','getAncestors','map','find','sourcePosition','stickiness','keepParagraph','getAttribute','forEach','from','getChildren','then','update','_saveMetaData','_transformMarkers','NEGATIVE_INFINITY','set','view','document','diffData','getOperations','getWalker','_handleMarkerOperation','range','model','createPositionAfter','split','PendingActions','_insertChild','authors','_handleInsertOperation','_reset','vid_end','pluginName','useFillerType','updateRevisions','_revisionId','keys','editor-initial-data-replaced-with-revision-data','bind','markers','createPositionAt','RealTimeCollaborationClient','targetPosition','getRange','_fixRange','_handleMoveOperation','reinsert','_calculateMetaData','position','_lastTo','vid','_getPreviousFrom','_makeModelFromViewString','_prepareViewToSave','_removeRevisionMarkers','revision','_source','attributesAfter','fromVersion','_idsRoots','source','afterInit','_pendingAction','_operations','offset','revisionHistory.resumeUnsavedRevision','attributes','item','remove','conversion','_authorId','$graveyard','length','filter','upcast','dataToMarker','toView','type','rootName','reverse','getIndex','_continueCurrentRevision','revision:','_baseIdsRoots','_handleRootOperation','_handleMergeOperation','userId','rootsAttributes','setSource','_diffRoots','getRoot','RevisionTracker','getData','_removePendingAction','_copyMarkers','$text','paragraph','attributesBefore','_touched','reInit','createRange','childCount','tableCell','newRange','_createCurrentRevision','start','_loadedStateData','key','_isAttached','_baseRoots','repository','adapter','config','version','_removeMetaData','trim','currentRevision','nodes','locale','add','_markers','_makeRevision','deletions','_revisionDataBuilder','includes','toModel','processor','root','some','_startingRevisionId','name','values','get','history','Users','_diffRootsAttributes','data','string','roots','_handleRootAttributeOperation','finally','createRevision','Empty\x20document','path','changeRootAttribute','_getVidAttributeName','buildRevisionData','getRevisions','_setAttribute','_touchedRoots','_setConversion','authorsIds','_getViewJson','newValue','collaboration.channelId','offsetSize','detachRoot','deletion','_processRootBeforeSave','_markChanges','fromEntries','getNodeByPath','initial','affectsData','init','documentFragment','_createInitialRevision','splitPosition','children','getRevisionRootsAttributes','PENDING_ACTION_REVISION_HISTORY','loadState','_isPendingUpdate','shift','saveRevision','getAttributes','insertions','_execute','sort','setRevisionData','graveyardPosition','createdAt','clone','size','marker','has','_savedMetaData','revision-end','_getState','createPositionFromPath','requires','createRangeIn','isReady','toVersion','default','addRootAttribute','parent','delete','plugins','addRevisionData','_cloneOperation','getCurrentRevisionId','_generateTape','_addPendingAction','vid_start','_loadState','_isInit'];(function(_0x483d03,_0x3caf56){const _0x41eda8=function(_0x298d78){while(--_0x298d78){_0x483d03['push'](_0x483d03['shift']());}};_0x41eda8(++_0x3caf56);}(_0x3caf,0x193));const _0x41ed=function(_0x483d03,_0x3caf56){_0x483d03=_0x483d03-0x0;let _0x41eda8=_0x3caf[_0x483d03];return _0x41eda8;};import{Users as _0x3529e5}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x4a4773,PendingActions as _0x13d6b6}from'ckeditor5/src/core';import{logWarning as _0x43a941,uid as _0x2f1c29}from'ckeditor5/src/utils';import{Position as _0x36d179,Range as _0x285279,Element as _0x2f4999,DocumentFragment as _0x4fa6bf,ViewText as _0x453e67,ViewElement as _0x5b0633,ViewContainerElement as _0x40ae22,ViewAttributeElement as _0x5d532c,ViewEmptyElement as _0x11af20,ViewRawElement as _0x5a0321,ViewUIElement as _0x4aedb7,ViewDocumentFragment as _0x5189f2}from'ckeditor5/src/engine';import _0x34cf7e from'./revisionsrepository';import{getTranslation as _0x2648c4}from'./utils/common-translations';import{cloneDeep as _0x2cd86e,isEqual as _0x173bf7}from'lodash-es';const B={'c':_0x40ae22,'a':_0x5d532c,'e':_0x11af20,'r':_0x5a0321,'u':_0x4aedb7};export default class l extends _0x4a4773{static get[_0x41ed('0xe2')](){return _0x41ed('0x11');}static get[_0x41ed('0x74')](){return[_0x3529e5,_0x34cf7e,_0x13d6b6];}constructor(_0x1bdc6d){super(_0x1bdc6d),this[_0x41ed('0x25')]=null,this[_0x41ed('0x2a')]=null,this[_0x41ed('0x31')]=new H(this[_0x41ed('0x92')]),this['_initialRevisionId']=this[_0x41ed('0x92')][_0x41ed('0x26')][_0x41ed('0x3a')](_0x41ed('0x50'))||_0x41ed('0x58'),this['_bufferedUpdates']=new Map(),this[_0x41ed('0x20')]=null;const _0x3e4fa5=_0x2f1c29();this['_source']={'history':this['editor'][_0x41ed('0xd9')][_0x41ed('0xd3')]['history'],'getLatestVersion':()=>Promise[_0x41ed('0xc1')](this['editor']['model']['document'][_0x41ed('0x27')]),'getCurrentRevisionId':()=>_0x3e4fa5},this['set'](_0x41ed('0x76'),!0x1),this[_0x41ed('0xd1')]('isEnabled',!0x0),this['set'](_0x41ed('0x62'),!0x1),this[_0x41ed('0x92')]['config'][_0x41ed('0x87')]('revisionHistory.resumeUnsavedRevision',!0x0),this['editor'][_0x41ed('0x107')][_0x41ed('0xaa')](_0x41ed('0x0'))[_0x41ed('0x1')]({'view':_0x41ed('0xf9')});}['init'](){this[_0x41ed('0x24')]=this[_0x41ed('0x92')]['plugins'][_0x41ed('0x3a')](_0x41ed('0xa7')),this[_0x41ed('0x4c')](),this[_0x41ed('0x92')][_0x41ed('0x3e')]['on'](_0x41ed('0xbe'),()=>{const _0x15e940=this['repository'][_0x41ed('0x9d')](0x0),_0x2fb41d=_0x15e940&&null===_0x15e940[_0x41ed('0xa9')]?_0x15e940:null;if(this[_0x41ed('0x7')]=!!_0x2fb41d&&this[_0x41ed('0x92')][_0x41ed('0x26')][_0x41ed('0x3a')](_0x41ed('0x103')),this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x6f')](_0x41ed('0xeb'))){const _0x252603=this['_source'][_0x41ed('0x7f')](),_0x509fa3=this[_0x41ed('0x24')]['getRevision'](_0x252603);if(_0x509fa3)this[_0x41ed('0x85')]=_0x509fa3[_0x41ed('0xfc')],this[_0x41ed('0x7')]=!0x1;else{const _0x2a6cc8=this[_0x41ed('0xfa')]['history'][_0x41ed('0x101')]['find'](_0x9ec38=>!_0x9ec38[_0x41ed('0x84')]),_0x37ca9b=_0x2a6cc8?_0x2a6cc8[_0x41ed('0xb5')]:this[_0x41ed('0xfa')][_0x41ed('0x3b')][_0x41ed('0x27')];_0x15e940?(_0x15e940['toVersion']<_0x37ca9b&&_0x15e940[_0x41ed('0xbc')]({'toVersion':_0x37ca9b}),this[_0x41ed('0x7')]?(this[_0x41ed('0xfa')]['getCurrentRevisionId']=()=>_0x2fb41d['id'],this['_startingVersion']=_0x2fb41d[_0x41ed('0xfc')]):(this['_startingVersion']=_0x15e940[_0x41ed('0x77')],this[_0x41ed('0x7')]=!0x1)):(this[_0x41ed('0x85')]=_0x37ca9b,this['_continueCurrentRevision']=!0x1);}}else _0x2fb41d&&(this[_0x41ed('0x92')][_0x41ed('0xd9')]['document'][_0x41ed('0x3b')][_0x41ed('0x27')]=Math[_0x41ed('0xa0')](_0x2fb41d[_0x41ed('0x77')],this['editor']['model']['document'][_0x41ed('0x3b')][_0x41ed('0x27')]),_0x2fb41d[_0x41ed('0xfc')]===_0x2fb41d[_0x41ed('0x77')]?(0x0!==_0x2fb41d[_0x41ed('0xfc')]&&(this[_0x41ed('0xfa')][_0x41ed('0x7f')]=()=>_0x2fb41d['id']),this[_0x41ed('0x7')]=!0x1):this['_continueCurrentRevision']&&(this[_0x41ed('0xfa')][_0x41ed('0x7f')]=()=>_0x2fb41d['id'],this[_0x41ed('0x85')]=_0x2fb41d[_0x41ed('0xfc')])),this[_0x41ed('0x7')]||(this['_startingVersion']=this['editor'][_0x41ed('0xd9')][_0x41ed('0xd3')][_0x41ed('0x27')]);this[_0x41ed('0x31')][_0x41ed('0x5a')](this[_0x41ed('0xfa')][_0x41ed('0x3b')]),this['_createInitialRevision'](this[_0x41ed('0x85')]),this['_createCurrentRevision'](this[_0x41ed('0x85')]),this[_0x41ed('0x25')]&&this[_0x41ed('0xb0')]();}),this[_0x41ed('0xe8')](_0x41ed('0x76'))['to'](this,_0x41ed('0x62'),_0x295ce9=>!_0x295ce9);}async[_0x41ed('0xff')](){if(this['repository'][_0x41ed('0x10a')]>0x0){const _0x5abd79=this[_0x41ed('0x24')][_0x41ed('0x9d')](0x0),_0x88f72a=await this['getRevisionDocumentData'](_0x5abd79),_0x170e29=await this[_0x41ed('0x5f')](_0x5abd79);this['_replaceEditorDataWithRevisionData'](_0x88f72a,_0x170e29);}}[_0x41ed('0xe')](_0x43f089){this[_0x41ed('0xfa')]=_0x43f089;}async[_0x41ed('0xcd')](){const _0x530025=await this[_0x41ed('0xfa')][_0x41ed('0xae')]();if(_0x530025>this[_0x41ed('0x2a')][_0x41ed('0x77')]){await this[_0x41ed('0x83')]();const _0x262828=this['buildRevisionData']({'revision':this[_0x41ed('0x2a')],'to':_0x530025});_0x262828[_0x41ed('0xde')]=_0x262828[_0x41ed('0x4d')][_0x41ed('0xc3')](_0x2c63d9=>this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')]('Users')['getUser'](_0x2c63d9)),this['currentRevision'][_0x41ed('0xbc')](_0x262828);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder'][_0x41ed('0x61')](this[_0x41ed('0x2a')]),this[_0x41ed('0x20')]={'fromVersion':this[_0x41ed('0x2a')][_0x41ed('0xfc')],'authors':this[_0x41ed('0x2a')][_0x41ed('0xde')]['slice']()});}async[_0x41ed('0x64')](_0xe72a56={},_0x5be69e=null){const _0x5394dd=[];await this[_0x41ed('0x83')](),this[_0x41ed('0x7')]=!0x1,_0x5be69e>this['currentRevision']['toVersion']&&(_0x5be69e=null),null===_0x5be69e&&(_0x5be69e=await this[_0x41ed('0xfa')][_0x41ed('0xae')]());const _0x414682=this[_0x41ed('0x9f')](_0x5be69e),_0x215334=this[_0x41ed('0x48')]({'from':_0x414682,'to':_0x5be69e});if(this[_0x41ed('0x2a')][_0x41ed('0x77')]<_0x5be69e){const _0x3cd6e5=this[_0x41ed('0x48')]({'revision':this[_0x41ed('0x2a')],'from':_0x5be69e,'to':_0x5be69e});_0x3cd6e5[_0x41ed('0xde')]=[],_0x3cd6e5[_0x41ed('0x4d')]=[],_0x3cd6e5['id']=this[_0x41ed('0x2a')]['id'],this['currentRevision'][_0x41ed('0xbc')](_0x3cd6e5,!0x0),delete _0x3cd6e5[_0x41ed('0xde')],_0x5394dd[_0x41ed('0xb4')](_0x3cd6e5);}_0xe72a56[_0x41ed('0xa4')]=this[_0x41ed('0x92')]['plugins'][_0x41ed('0x3a')](_0x41ed('0x3c'))['me']['id'],_0xe72a56[_0x41ed('0x38')]=_0xe72a56[_0x41ed('0x38')]||null,_0xe72a56['id']=_0xe72a56['id']||_0x2f1c29(),_0xe72a56={..._0xe72a56,..._0x215334};const _0x1b9f6b=this['addRevisionData'](_0xe72a56);_0x5394dd[_0x41ed('0xb4')](_0xe72a56);const _0x46c09e=this[_0x41ed('0x24')][_0x41ed('0x6')](_0x1b9f6b);if(0x0!==_0x46c09e){const _0x4f9092=this[_0x41ed('0x24')][_0x41ed('0x9d')](_0x46c09e-0x1);if(_0x4f9092[_0x41ed('0xfc')]!==_0x5be69e){const _0x4b0fca=this[_0x41ed('0x31')][_0x41ed('0x12')](_0x5be69e,_0x4f9092[_0x41ed('0x77')]),_0x3d66c8={'id':_0x4f9092['id'],'diffData':_0x4b0fca[_0x41ed('0xd4')],'authorsIds':_0x4b0fca[_0x41ed('0x4d')],'authors':_0x4b0fca[_0x41ed('0x4d')]['map'](_0x37fb64=>this[_0x41ed('0x92')][_0x41ed('0x7c')]['get'](_0x41ed('0x3c'))[_0x41ed('0x8b')](_0x37fb64)),'fromVersion':_0x5be69e};_0x4f9092===this['currentRevision']&&(_0x3d66c8['createdAt']=new Date(_0xe72a56[_0x41ed('0x6b')]['getTime']()+0xa)),_0x4f9092['_update'](_0x3d66c8,!0x0),delete _0x3d66c8[_0x41ed('0xde')],_0x5394dd[_0x41ed('0xb4')](_0x3d66c8);}}if(this[_0x41ed('0x25')]){for(const _0x511af3 of _0x5394dd)this[_0x41ed('0xbb')](_0x511af3['id'],_0x511af3,!0x0);this[_0x41ed('0xb0')]();}return _0x1b9f6b;}['addRevisionData'](_0x270b3f){const _0x59c15d=this['repository'][_0x41ed('0x43')](_0x270b3f);return this[_0x41ed('0x25')]&&_0x59c15d['on'](_0x41ed('0xbc'),(_0x241006,_0x20a573,_0x3b4341)=>{_0x3b4341||(this[_0x41ed('0xbb')](_0x20a573['id'],_0x20a573,!0x0),this[_0x41ed('0xb0')]());}),this[_0x41ed('0x24')][_0x41ed('0x8c')](_0x59c15d,this['_findInsertionIndex'](_0x59c15d)),_0x59c15d;}async[_0x41ed('0x94')](_0x5c53d0){await this[_0x41ed('0x95')](_0x5c53d0);const _0x452b22={};for(const _0x4adc57 in _0x5c53d0[_0x41ed('0xd4')]){if(_0x5c53d0[_0x41ed('0xd4')][_0x4adc57][_0x41ed('0x8a')]&&!_0x5c53d0[_0x41ed('0xd4')][_0x4adc57][_0x41ed('0x8a')]['isAttached'])continue;const _0x24eae2=this[_0x41ed('0xf8')](JSON[_0x41ed('0xb7')](_0x5c53d0['diffData'][_0x4adc57][_0x41ed('0x66')])),_0x544acd=this[_0x41ed('0x92')][_0x41ed('0xb8')][_0x41ed('0xd2')][_0x41ed('0xd3')],_0x34bed4=new _0x5189f2(_0x544acd,_0x24eae2[_0x41ed('0xc3')](_0x5df1ab=>J(_0x5df1ab,this[_0x41ed('0x92')])));this[_0x41ed('0x92')]['data'][_0x41ed('0x34')][_0x41ed('0xe3')]('marked'),_0x452b22[_0x4adc57]=this[_0x41ed('0x92')][_0x41ed('0x3e')][_0x41ed('0x34')]['toData'](_0x34bed4),this[_0x41ed('0x92')][_0x41ed('0x3e')]['processor'][_0x41ed('0xe3')](_0x41ed('0x78'));}return _0x452b22;}async[_0x41ed('0x5f')](_0x5db511){await this[_0x41ed('0x95')](_0x5db511);const _0x92c97d={};for(const _0x345cff in _0x5db511[_0x41ed('0xd4')])_0x5db511[_0x41ed('0xd4')][_0x345cff][_0x41ed('0x8a')]&&!_0x5db511[_0x41ed('0xd4')][_0x345cff][_0x41ed('0x8a')][_0x41ed('0x90')]||(_0x92c97d[_0x345cff]=_0x5db511[_0x41ed('0xd4')][_0x345cff][_0x41ed('0xfb')]||{});return _0x92c97d;}[_0x41ed('0xb0')](){if(0x0===this['_bufferedUpdates'][_0x41ed('0x6d')])return;if(this[_0x41ed('0x62')])return;let _0x1793ef=Array[_0x41ed('0xca')](this[_0x41ed('0xbd')]['values']());this[_0x41ed('0xbd')][_0x41ed('0xa3')]();for(let _0x553429=0x0;_0x553429<_0x1793ef[_0x41ed('0x10a')];_0x553429++){const _0x2f198b=_0x1793ef[_0x553429];let _0x73af22=!0x1;for(const _0x9cace0 of Object[_0x41ed('0xe6')](_0x2f198b))void 0x0===_0x2f198b[_0x9cace0]?delete _0x2f198b[_0x9cace0]:'id'!==_0x9cace0&&(_0x73af22=!0x0);_0x73af22||(_0x1793ef[_0x553429]=null);}if(_0x1793ef=_0x1793ef[_0x41ed('0x10b')](_0x1a3c91=>null!==_0x1a3c91),!_0x1793ef[_0x41ed('0x10a')])return;for(let _0x1e1293=0x0;_0x1e1293<_0x1793ef['length'];_0x1e1293++){const _0x2da412=_0x1793ef[_0x1e1293];void 0x0!==_0x2da412[_0x41ed('0xfc')]&&void 0x0===_0x2da412[_0x41ed('0x77')]&&(_0x2da412['toVersion']=this[_0x41ed('0x24')][_0x41ed('0x9d')](_0x2da412['id'])[_0x41ed('0x77')]),void 0x0!==_0x2da412[_0x41ed('0x77')]&&void 0x0===_0x2da412[_0x41ed('0xfc')]&&(_0x2da412[_0x41ed('0xfc')]=this[_0x41ed('0x24')][_0x41ed('0x9d')](_0x2da412['id'])[_0x41ed('0xfc')]);}const _0x25a987=this[_0x41ed('0x92')][_0x41ed('0x26')][_0x41ed('0x3a')](_0x41ed('0x50'));this[_0x41ed('0x62')]=!0x0,this[_0x41ed('0x81')](),this[_0x41ed('0x25')][_0x41ed('0xe4')](_0x1793ef,_0x25a987)[_0x41ed('0x42')](()=>{this['_isPendingUpdate']=!0x1;})[_0x41ed('0xcc')](_0x1245c5=>{if(_0x1245c5)for(const _0x1b5c7f of _0x1245c5)this[_0x41ed('0x69')]({'id':_0x1b5c7f['id'],'createdAt':_0x1b5c7f[_0x41ed('0x6b')]});this['_removePendingAction'](),this[_0x41ed('0xb0')]();});}['_replaceEditorDataWithRevisionData'](_0x4d8776,_0x3fc6a1){let _0x3404d5=this[_0x41ed('0x92')][_0x41ed('0x26')][_0x41ed('0x3a')](_0x41ed('0xaf')),_0x158f1a=this[_0x41ed('0x92')][_0x41ed('0x26')][_0x41ed('0x3a')](_0x41ed('0xd'));if(void 0x0===_0x3404d5){_0x3404d5={};for(const _0x45ce17 of this[_0x41ed('0x92')]['model'][_0x41ed('0xd3')][_0x41ed('0xb6')]())_0x3404d5[_0x45ce17]='';}if(_0x41ed('0x3f')==typeof _0x3404d5&&(_0x3404d5={'main':_0x3404d5}),void 0x0===_0x158f1a){_0x158f1a={};for(const _0x3f4473 of this[_0x41ed('0x92')]['model'][_0x41ed('0xd3')][_0x41ed('0xb6')]())_0x158f1a[_0x3f4473]={};}let _0x33be8b=!0x1;const _0x4c88d7=Object['keys'](_0x3404d5),_0x45cbcd=Object[_0x41ed('0xe6')](_0x4d8776);for(const _0x588a81 of _0x4c88d7){if(_0x3404d5[_0x588a81]!==_0x4d8776[_0x588a81]&&''!==_0x3404d5[_0x588a81][_0x41ed('0x29')]()){_0x33be8b=!0x0;break;}if(!_0x173bf7(_0x158f1a[_0x588a81],_0x3fc6a1[_0x588a81])&&Object[_0x41ed('0xe6')](_0x158f1a[_0x588a81])[_0x41ed('0x10a')]>0x0){_0x33be8b=!0x0;break;}}_0x33be8b||(_0x33be8b=_0x45cbcd[_0x41ed('0x36')](_0x29c63e=>!this[_0x41ed('0x92')][_0x41ed('0xd9')][_0x41ed('0xd3')][_0x41ed('0x10')](_0x29c63e))),_0x33be8b&&_0x43a941(_0x41ed('0xe7'),{'editorData':_0x3404d5,'editorRootsAttributes':_0x158f1a,'revisionData':_0x4d8776,'revisionRootsAttributes':_0x3fc6a1}),this['editor']['config'][_0x41ed('0xd1')]('initialData',_0x4d8776),this['editor']['config']['set']('rootsAttributes',_0x3fc6a1);}[_0x41ed('0x81')](){if(!this[_0x41ed('0x100')]){const _0x3b52ca=this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')](_0x41ed('0xdc'));this[_0x41ed('0x100')]=_0x3b52ca[_0x41ed('0x2d')](_0x2648c4(this[_0x41ed('0x92')][_0x41ed('0x2c')],_0x41ed('0x60')));}}[_0x41ed('0x13')](){this['_pendingAction']&&(this['editor']['plugins'][_0x41ed('0x3a')](_0x41ed('0xdc'))[_0x41ed('0x106')](this['_pendingAction']),this[_0x41ed('0x100')]=null);}['_findInsertionIndex'](_0x567fb7){const _0x459dea=this[_0x41ed('0x24')][_0x41ed('0x49')]();_0x459dea[_0x41ed('0x5')]();let _0x18b20f=0x0;for(;_0x18b20f<_0x459dea['length'];){const _0x2de281=_0x459dea[_0x18b20f];if(_0x2de281===this['currentRevision']){_0x18b20f++;continue;}if(_0x2de281['id']===this[_0x41ed('0xa6')])break;const _0x2596b3=_0x567fb7[_0x41ed('0x77')]-_0x2de281[_0x41ed('0x77')]||_0x567fb7['fromVersion']-_0x2de281[_0x41ed('0xfc')];if(_0x2596b3>0x0)break;if(_0x2596b3<0x0)_0x18b20f++;else{if(!_0x567fb7[_0x41ed('0xa9')]&&_0x2de281['creator'])break;if(_0x2de281[_0x41ed('0xa9')]||!_0x567fb7[_0x41ed('0xa9')]){if(_0x567fb7[_0x41ed('0x6b')]>_0x2de281['createdAt'])break;_0x18b20f++;}else _0x18b20f++;}}return _0x18b20f;}[_0x41ed('0x69')](_0x52891f){const _0x1278b8=this[_0x41ed('0x24')]['getRevision'](_0x52891f['id']);if(_0x52891f[_0x41ed('0x6b')]&&(_0x52891f['createdAt']=new Date(_0x52891f['createdAt'])),_0x52891f[_0x41ed('0x4d')]){const _0x17d2f0=this['editor'][_0x41ed('0x7c')][_0x41ed('0x3a')](_0x41ed('0x3c'));_0x52891f['authors']=_0x52891f[_0x41ed('0x4d')]['map'](_0x3ad60d=>_0x17d2f0[_0x41ed('0x8b')](_0x3ad60d));}_0x1278b8[_0x41ed('0xbc')](_0x52891f,!0x0);}[_0x41ed('0x48')]({revision:_0x356a6e=null,from:_0x329744=null,to:_0x3afd66=null}){_0x329744=null!==_0x329744?_0x329744:_0x356a6e['fromVersion'],_0x3afd66=null!==_0x3afd66?_0x3afd66:_0x356a6e[_0x41ed('0x77')];const _0x2fe03e=this[_0x41ed('0x31')][_0x41ed('0x12')](_0x329744,_0x3afd66),_0x117ef9={'diffData':_0x2fe03e[_0x41ed('0xd4')],'authorsIds':_0x2fe03e[_0x41ed('0x4d')],'fromVersion':_0x329744,'toVersion':_0x3afd66};if(!_0x356a6e||_0x3afd66!==_0x356a6e[_0x41ed('0x77')]){const _0x441162=_0x3afd66-0x1,_0x50bbd0=this['_source']['history']['getOperation'](_0x441162);_0x117ef9[_0x41ed('0x6b')]=_0x50bbd0&&_0x50bbd0[_0x41ed('0x6b')]||new Date();}if(this[_0x41ed('0x20')]&&_0x329744===this[_0x41ed('0x20')]['fromVersion'])for(const _0x380340 of this['_loadedStateData'][_0x41ed('0xde')])_0x117ef9[_0x41ed('0x4d')][_0x41ed('0x32')](_0x380340['id'])||_0x117ef9[_0x41ed('0x4d')]['push'](_0x380340['id']);return _0x117ef9;}['_loadRevisionData'](_0x54bc19){if(!_0x54bc19||_0x54bc19[_0x41ed('0xd4')])return Promise[_0x41ed('0xc1')]();{const _0x17fa3d=this[_0x41ed('0x92')]['config'][_0x41ed('0x3a')](_0x41ed('0x50'));return this[_0x41ed('0x25')]['getRevision']({'channelId':_0x17fa3d,'revisionId':_0x54bc19['id']})[_0x41ed('0xcc')](_0x4ec0ff=>{_0x54bc19[_0x41ed('0xd4')]=_0x4ec0ff[_0x41ed('0xd4')];});}}[_0x41ed('0xbb')](_0x9b9552,_0x483fcf,_0x129719){if(this[_0x41ed('0xbd')]['has'](_0x9b9552)){const _0x17f217=this[_0x41ed('0xbd')][_0x41ed('0x3a')](_0x9b9552);_0x483fcf=_0x129719?{..._0x17f217,..._0x483fcf}:{..._0x483fcf,..._0x17f217};}this[_0x41ed('0xbd')][_0x41ed('0xd1')](_0x9b9552,_0x483fcf);}[_0x41ed('0x9f')](_0x3a946f){const _0x2d2608=this['repository'][_0x41ed('0x49')]();_0x2d2608[_0x41ed('0x5')](),_0x2d2608[_0x41ed('0x63')]();const _0xccaf41=_0x2d2608[_0x41ed('0xc4')](_0xe64ac=>_0xe64ac[_0x41ed('0x77')]<=_0x3a946f)[_0x41ed('0x77')];return _0xccaf41<this[_0x41ed('0x85')]?this[_0x41ed('0x85')]:_0xccaf41;}[_0x41ed('0x5c')](_0x35fb33){const _0x49a970=this[_0x41ed('0x24')]['getRevision'](this[_0x41ed('0x24')][_0x41ed('0x10a')]-0x1);if(_0x49a970)this['_initialRevisionId']=_0x49a970['id'];else{const _0x43b75c=!this['editor']['model'][_0x41ed('0xd3')][_0x41ed('0x40')][_0x41ed('0xc4')](_0x566c14=>this['editor']['model']['hasContent'](_0x566c14)),_0x1de8d1=this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')](_0x41ed('0x3c'))['me']['id'],_0x2ec4ee=_0x2648c4(this['editor'][_0x41ed('0x2c')],_0x43b75c?_0x41ed('0x44'):_0x41ed('0xba'));this[_0x41ed('0x2f')]({'from':_0x35fb33,'to':_0x35fb33,'id':this[_0x41ed('0xa6')],'name':_0x2ec4ee,'creatorId':_0x1de8d1});}}[_0x41ed('0x1e')](_0x29a4a5){const _0x2bf6ea=this[_0x41ed('0xfa')][_0x41ed('0x7f')]();this[_0x41ed('0x2a')]=this[_0x41ed('0x24')][_0x41ed('0x9d')](_0x2bf6ea),this['currentRevision']||(this[_0x41ed('0x2a')]=this[_0x41ed('0x2f')]({'from':_0x29a4a5,'to':_0x29a4a5,'id':_0x2bf6ea,'name':'','creatorId':null}));}[_0x41ed('0x2f')]({name:_0x3925e1,from:_0x3b7c3f,to:_0x1091a9,creatorId:_0x3cb1a3,id:_0x1e4c1e}){const _0x24d3ef=this[_0x41ed('0x48')]({'from':_0x3b7c3f,'to':_0x1091a9});_0x24d3ef[_0x41ed('0x38')]=_0x3925e1,_0x24d3ef[_0x41ed('0xa4')]=_0x3cb1a3,_0x24d3ef['id']=_0x1e4c1e;const _0x2efcdf=this[_0x41ed('0x7d')](_0x24d3ef);return this['adapter']&&this[_0x41ed('0xbb')](_0x24d3ef['id'],_0x24d3ef,!0x0),_0x2efcdf;}['_setConversion'](){this['editor']['conversion'][_0x41ed('0xaa')]('dataDowncast')[_0x41ed('0xbf')]({'model':_0x41ed('0xf9')});}[_0x41ed('0xf8')](_0x587a6d){return(_0x587a6d=_0x587a6d[_0x41ed('0x10b')](_0x32c872=>!_0x32c872[_0x41ed('0x38')]||_0x41ed('0x9c')!==_0x32c872[_0x41ed('0x38')]&&_0x41ed('0x71')!==_0x32c872['name']))[_0x41ed('0xc9')](_0x9ec092=>{'string'!=typeof _0x9ec092&&(_0x9ec092[_0x41ed('0x5e')]=this[_0x41ed('0xf8')](_0x9ec092['children']),_0x9ec092[_0x41ed('0x104')]=_0x9ec092[_0x41ed('0x104')][_0x41ed('0x10b')](_0x2f72f0=>!_0x2f72f0[0x0][_0x41ed('0xb9')](_0x41ed('0xb2'))));}),_0x587a6d;}}function J(_0x48e089,_0x4edd0c){const _0x3ec6e7=_0x4edd0c['editing'][_0x41ed('0xd2')][_0x41ed('0xd3')];if(_0x41ed('0x3f')==typeof _0x48e089)return new _0x453e67(_0x3ec6e7,_0x48e089);{const _0x2c7038=_0x48e089[_0x41ed('0x5e')][_0x41ed('0xc3')](_0x31dc37=>J(_0x31dc37,_0x4edd0c));return new(B[_0x48e089[(_0x41ed('0x3'))]]||_0x5b0633)(_0x3ec6e7,_0x48e089[_0x41ed('0x38')],_0x48e089['attributes'],_0x2c7038);}}class H{constructor(_0x33c534){this['editor']=_0x33c534,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x41ed('0xf3')]=-0x1,this[_0x41ed('0x2e')]=new Map(),this[_0x41ed('0xf')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x41ed('0x23')]=new Map(),this[_0x41ed('0x89')]=new Map(),this[_0x41ed('0xfd')]=new Map(),this[_0x41ed('0x9')]=new Map(),this[_0x41ed('0x18')]=new Map(),this[_0x41ed('0xac')]=new Map(),this[_0x41ed('0x4b')]=new Map(),this[_0x41ed('0xe5')]=0x1;}[_0x41ed('0x5a')](_0x30f905){this[_0x41ed('0xfe')]=_0x30f905;const _0x4acd96=new Map(),_0x519d4e=new Map(),_0x12a207=this[_0x41ed('0x92')][_0x41ed('0xd9')][_0x41ed('0xd3')]['roots']['map'](_0x8481c9=>_0x8481c9[_0x41ed('0x4')]);for(const _0x307bb5 of _0x12a207){const _0x250ae2=this[_0x41ed('0x92')][_0x41ed('0xd9')][_0x41ed('0xd3')][_0x41ed('0x10')](_0x307bb5),_0x1c6eb2=q(_0x250ae2);_0x4acd96[_0x41ed('0xd1')](_0x307bb5,_0x1c6eb2),_0x519d4e[_0x41ed('0xd1')](_0x307bb5,Object[_0x41ed('0x56')](_0x250ae2['getAttributes']()));}const _0x36b508=Array[_0x41ed('0xca')](this[_0x41ed('0x92')][_0x41ed('0xd9')][_0x41ed('0xe9')])[_0x41ed('0xc3')](_0x46c42f=>[_0x46c42f[_0x41ed('0x38')],_0x46c42f[_0x41ed('0xed')]()]),_0xd6bcf5=this[_0x41ed('0xfe')][_0x41ed('0x27')];this[_0x41ed('0xce')](_0xd6bcf5,_0x4acd96,_0x36b508,_0x519d4e),this[_0x41ed('0x37')]=this[_0x41ed('0xe5')];const _0x4a9990=new Map(),_0x105f3e=new Map();for(const _0x9ab3d7 of _0x12a207){const _0x2de9a1=G(_0x9ab3d7);_0x4a9990[_0x41ed('0xd1')](_0x9ab3d7,_0x2de9a1),_0x105f3e[_0x41ed('0xd1')](_0x9ab3d7,{});}this[_0x41ed('0xce')](Number[_0x41ed('0xd0')],_0x4a9990,[],_0x105f3e);}[_0x41ed('0x12')](_0x276b4c,_0x258a0c){if(this[_0x41ed('0x9b')]===_0x276b4c&&this[_0x41ed('0xf3')]<=_0x258a0c)this[_0x41ed('0x70')][_0x41ed('0x6d')]>0x1&&this['_removeMetaData'](this[_0x41ed('0xf3')]),this[_0x41ed('0xa8')](this[_0x41ed('0xf3')],_0x258a0c,!0x0);else{if(!this['_savedMetaData'][_0x41ed('0x6f')](_0x276b4c)){const _0x4e61fd=this[_0x41ed('0xf5')](_0x276b4c);this[_0x41ed('0xf1')](_0x4e61fd,_0x276b4c,!0x1);}this['_calculateMetaData'](_0x276b4c,_0x258a0c,!0x0);}return this[_0x41ed('0x9b')]=_0x276b4c,this['_lastTo']=_0x258a0c,this[_0x41ed('0x72')]();}[_0x41ed('0x61')](_0x317607){this[_0x41ed('0xe0')](),this[_0x41ed('0x9b')]=_0x317607[_0x41ed('0xfc')],this['_lastTo']=_0x317607[_0x41ed('0x77')];for(const _0x257200 in _0x317607[_0x41ed('0xd4')]){const _0x31a535=_0x317607[_0x41ed('0xd4')][_0x257200][_0x41ed('0x8a')],_0x4157e7=_0x2cd86e(_0x317607[_0x41ed('0xd4')][_0x257200][_0x41ed('0x17')])||{},_0xcd6108=this['_makeModelFromViewString'](_0x317607[_0x41ed('0xd4')][_0x257200][_0x41ed('0x30')]);_0xcd6108[_0x41ed('0x4')]=_0x257200,_0xcd6108['_isAttached']=!_0x31a535||!_0x31a535[_0x41ed('0x90')],_0xcd6108[_0x41ed('0x90')]=()=>_0xcd6108[_0x41ed('0x22')],this[_0x41ed('0x23')]['set'](_0x257200,_0xcd6108),this[_0x41ed('0x89')][_0x41ed('0xd1')](_0x257200,_0x4157e7),_0x31a535&&this['_touchedRoots']['set'](_0x257200,_0x31a535);const _0x448a7e=this['_makeIdsRoot'](_0xcd6108);this['_baseIdsRoots'][_0x41ed('0xd1')](_0x257200,_0x448a7e);for(const [_0xceb7ab,_0x463421]of _0xcd6108[_0x41ed('0xe9')]){if(!_0xceb7ab['startsWith']('revision:'))continue;const _0xc0ab6b=_0xceb7ab[_0x41ed('0xdb')](':')[0x2];for(const _0xb4b315 of _0x463421[_0x41ed('0xd6')]({'singleCharacters':!0x0})){const _0x2da1a8=this[_0x41ed('0x47')](_0xb4b315),_0x4a8c44=_0x41ed('0xb1')==_0xb4b315[_0x41ed('0x3')]?_0xb4b315['previousPosition'][_0x41ed('0x45')][_0x41ed('0x8d')](0x0,-0x1):_0xb4b315['previousPosition'][_0x41ed('0x45')],_0x8fed1d=_0x448a7e[_0x41ed('0x57')](_0x4a8c44)[_0x41ed('0xc8')](_0x2da1a8);this[_0x41ed('0x18')][_0x41ed('0xd1')](_0x8fed1d,{'userId':_0xc0ab6b});}}}this[_0x41ed('0x37')]=this[_0x41ed('0xe5')];const _0x4e3bec=[...Array(this[_0x41ed('0xe5')])['keys']()][_0x41ed('0x8d')](0x1)[_0x41ed('0x10b')](_0x3549ad=>!this['_touched']['has'](_0x3549ad));let _0x338095=0x0;const _0xda75ab=new Map();for(const _0x154466 in _0x317607[_0x41ed('0xd4')]){const _0x37ad39=_0x317607[_0x41ed('0xd4')][_0x154466][_0x41ed('0x8a')],_0x341845=_0x2cd86e(_0x317607[_0x41ed('0xd4')][_0x154466]['attributesAfter'])||{},_0x49bc6c=this[_0x41ed('0xf6')](_0x317607['diffData'][_0x154466]['insertions']);_0x49bc6c[_0x41ed('0x4')]=_0x154466,_0x49bc6c[_0x41ed('0x22')]=!_0x37ad39||_0x37ad39[_0x41ed('0x90')],_0x49bc6c[_0x41ed('0x90')]=()=>_0x49bc6c[_0x41ed('0x22')],this[_0x41ed('0xf')][_0x41ed('0xd1')](_0x154466,_0x49bc6c),this[_0x41ed('0x3d')][_0x41ed('0xd1')](_0x154466,_0x341845);const _0x12e078=this[_0x41ed('0xa5')](_0x49bc6c,Number[_0x41ed('0xd0')]);this[_0x41ed('0xfd')][_0x41ed('0xd1')](_0x154466,_0x12e078),_0xda75ab[_0x41ed('0xd1')](_0x154466,_0x49bc6c['isAttached']()?_0x341845:{});for(const [_0xfdc9a5,_0x417706]of _0x49bc6c[_0x41ed('0xe9')]){if(!_0xfdc9a5[_0x41ed('0xb9')](_0x41ed('0x8')))continue;const _0x58d6bc=_0xfdc9a5[_0x41ed('0xdb')](':')[0x2];for(const _0x300b87 of _0x417706[_0x41ed('0xd6')]({'singleCharacters':!0x0})){const _0x505dbc=this[_0x41ed('0x47')](_0x300b87),_0x58a772=this[_0x41ed('0xe5')]++,_0x15c79e=_0x41ed('0xb1')==_0x300b87[_0x41ed('0x3')]?_0x300b87[_0x41ed('0x93')][_0x41ed('0x45')][_0x41ed('0x8d')](0x0,-0x1):_0x300b87[_0x41ed('0x93')][_0x41ed('0x45')];_0x12e078[_0x41ed('0x57')](_0x15c79e)['_setAttribute'](_0x505dbc,_0x58a772),this[_0x41ed('0x18')][_0x41ed('0xd1')](_0x58a772,{'userId':_0x58d6bc});}}for(const _0x2dee3f of this['editor']['model'][_0x41ed('0x75')](_0x49bc6c)[_0x41ed('0xd6')]({'singleCharacters':!0x0})){const _0x44a1a9=this[_0x41ed('0x47')](_0x2dee3f),_0x3d7d0a=_0x41ed('0xb1')==_0x2dee3f[_0x41ed('0x3')]?_0x2dee3f[_0x41ed('0x93')][_0x41ed('0x45')][_0x41ed('0x8d')](0x0,-0x1):_0x2dee3f[_0x41ed('0x93')][_0x41ed('0x45')],_0x49c67a=_0x12e078['getNodeByPath'](_0x3d7d0a);_0x49c67a[_0x41ed('0xc8')](_0x44a1a9)>0x0||_0x49c67a[_0x41ed('0x4a')](_0x44a1a9,_0x4e3bec[_0x338095++]);}for(const [_0x849955,_0x3c693e]of _0x49bc6c[_0x41ed('0xe9')])_0x849955[_0x41ed('0xb9')](_0x41ed('0x8'))||this[_0x41ed('0x2e')]['set'](_0x849955,_0x3c693e);}const _0x5ab5a0=G(_0x41ed('0x109'));this[_0x41ed('0x23')][_0x41ed('0xd1')](_0x41ed('0x109'),_0x5ab5a0),this['_baseIdsRoots']['set'](_0x41ed('0x109'),this['_makeIdsRoot'](_0x5ab5a0,0x1));const _0x241d9b=G(_0x41ed('0x109'));this[_0x41ed('0xf')][_0x41ed('0xd1')](_0x41ed('0x109'),_0x241d9b),this[_0x41ed('0xfd')]['set'](_0x41ed('0x109'),this[_0x41ed('0xa5')](_0x241d9b,0x1));const _0x2df0a8=Array['from'](this[_0x41ed('0xf')])['map'](([_0x291f97,_0x2de180])=>[_0x291f97,q(_0x2de180)]);this['_saveMetaData'](this['_lastTo'],_0x2df0a8,this['_markers'],_0xda75ab);}[_0x41ed('0xf6')](_0x18bd89){const _0x47ab5b=JSON[_0x41ed('0xb7')](_0x18bd89),_0x5d4b55=this['editor'][_0x41ed('0xb8')][_0x41ed('0xd2')][_0x41ed('0xd3')],_0x908565=new _0x5189f2(_0x5d4b55,_0x47ab5b[_0x41ed('0xc3')](_0x578c22=>J(_0x578c22,this[_0x41ed('0x92')])));return this[_0x41ed('0x92')][_0x41ed('0x3e')][_0x41ed('0x33')](_0x908565);}['_saveMetaData'](_0x5618cb,_0x2027f7,_0xd4990f,_0x14fc6b){const _0x34b5c9=new Map(_0x2027f7),_0x454adc=new Map(_0x2cd86e(_0x14fc6b)),_0x3f12f3=new Map();for(const [_0x5586c6,_0x1044e]of _0xd4990f)_0x3f12f3['set'](_0x5586c6,{'start':_0x1044e[_0x41ed('0x1f')][_0x41ed('0x6c')](),'end':_0x1044e[_0x41ed('0x91')][_0x41ed('0x6c')](),'rootName':_0x1044e[_0x41ed('0x35')][_0x41ed('0x4')]});this['_savedMetaData'][_0x41ed('0xd1')](_0x5618cb,{'roots':_0x34b5c9,'markers':_0x3f12f3,'rootsAttributes':_0x454adc});}[_0x41ed('0x28')](_0x353465){this['_savedMetaData']['delete'](_0x353465);}[_0x41ed('0x19')](){this[_0x41ed('0xe0')](),this['_lastFrom']=-0x1,this[_0x41ed('0xf3')]=-0x1,this[_0x41ed('0x70')][_0x41ed('0xa3')](),this[_0x41ed('0x5a')](this[_0x41ed('0xfe')]);}['_reset'](){this[_0x41ed('0x18')][_0x41ed('0xa3')](),this[_0x41ed('0xac')][_0x41ed('0xa3')](),this['_touchedRoots'][_0x41ed('0xa3')](),this[_0x41ed('0xf')][_0x41ed('0xa3')](),this[_0x41ed('0x3d')][_0x41ed('0xa3')](),this['_baseRoots'][_0x41ed('0xa3')](),this[_0x41ed('0x89')][_0x41ed('0xa3')](),this[_0x41ed('0xfd')][_0x41ed('0xa3')](),this[_0x41ed('0x9')][_0x41ed('0xa3')](),this[_0x41ed('0x2e')][_0x41ed('0xa3')](),this[_0x41ed('0xe5')]=0x1,this[_0x41ed('0x37')]=this['_revisionId'];}['_makeIdsRoot'](_0x2ce758,_0x24359b=null){let _0x3100f8=null;_0x2ce758['is'](_0x41ed('0x5b'))||(_0x3100f8=new _0x2f4999(_0x2ce758[_0x41ed('0x38')],{'vid_start':null===_0x24359b?this[_0x41ed('0xe5')]++:_0x24359b++}));const _0x2156b8=[];for(const _0x2adf8e of _0x2ce758[_0x41ed('0xcb')]())if(_0x2adf8e['is'](_0x41ed('0xa2'))){_0x2156b8[_0x41ed('0xb4')](this['_makeIdsRoot'](_0x2adf8e,_0x24359b));const _0x5144bd=_0x2156b8[_0x2156b8[_0x41ed('0x10a')]-0x1];null!==_0x24359b&&(_0x24359b=_0x5144bd['is'](_0x41ed('0xa2'),_0x41ed('0x15'))?_0x5144bd['getAttribute'](_0x41ed('0xf4'))+0x1:_0x5144bd[_0x41ed('0xc8')](_0x41ed('0xe1'))+0x1);}else for(let _0x267c4c=0x0;_0x267c4c<_0x2adf8e['offsetSize'];_0x267c4c++)_0x2156b8['push'](new _0x2f4999(_0x41ed('0x15'),{'vid':null===_0x24359b?this[_0x41ed('0xe5')]++:_0x24359b++}));if(_0x2ce758['is']('documentFragment')){const _0x12b501=G(_0x2ce758[_0x41ed('0x4')]);return _0x12b501['_insertChild'](0x0,_0x2156b8),_0x12b501;}return _0x3100f8[_0x41ed('0x4a')](_0x41ed('0xe1'),null===_0x24359b?this[_0x41ed('0xe5')]++:_0x24359b++),_0x3100f8[_0x41ed('0xdd')](0x0,_0x2156b8),_0x3100f8;}['_calculateMetaData'](_0x4d2e7e,_0x42b971,_0x2293ae){this[_0x41ed('0xe0')]();const {roots:_0x4058f3,markers:_0x501321,rootsAttributes:_0x470ff5}=this[_0x41ed('0x70')]['get'](_0x4d2e7e);this[_0x41ed('0x23')]=new Map(_0x4058f3),this[_0x41ed('0x89')]=new Map(_0x2cd86e(_0x470ff5));for(const [_0x1dfd68,_0x141270]of this[_0x41ed('0x23')])if(_0x41ed('0x109')!==_0x1dfd68&&(this['_diffRoots']['set'](_0x1dfd68,q(_0x141270)),this[_0x41ed('0x3d')]=new Map(_0x2cd86e(_0x470ff5)),_0x2293ae)){const _0x5757ad=this['_revisionId'];this[_0x41ed('0xfd')][_0x41ed('0xd1')](_0x1dfd68,this[_0x41ed('0xa5')](_0x141270)),this[_0x41ed('0x9')][_0x41ed('0xd1')](_0x1dfd68,this[_0x41ed('0xa5')](_0x141270,_0x5757ad));}this[_0x41ed('0x37')]=this[_0x41ed('0xe5')],this[_0x41ed('0xf')]['set'](_0x41ed('0x109'),q(this['_baseRoots'][_0x41ed('0x3a')](_0x41ed('0x109')))),_0x2293ae&&this[_0x41ed('0xfd')][_0x41ed('0xd1')](_0x41ed('0x109'),this['_makeIdsRoot'](this[_0x41ed('0x23')][_0x41ed('0x3a')]('$graveyard')));for(const [_0x42348d,_0x1fe22f]of _0x501321){const _0x3ce836=this['_baseRoots'][_0x41ed('0x3a')](_0x1fe22f['rootName']),_0x5395cb=this[_0x41ed('0xf')]['get'](_0x1fe22f[_0x41ed('0x4')]),_0xe4087d=new _0x285279(this[_0x41ed('0xab')](_0x1fe22f['start'],_0x3ce836),this[_0x41ed('0xab')](_0x1fe22f['end'],_0x3ce836)),_0x371c03=this['_fixRange'](_0xe4087d,_0x5395cb);_0x3ce836[_0x41ed('0xe9')][_0x41ed('0xd1')](_0x42348d,_0xe4087d),this[_0x41ed('0x2e')][_0x41ed('0xd1')](_0x42348d,_0x371c03);}this['_applyOperations'](_0x4d2e7e,_0x42b971,_0x2293ae);}[_0x41ed('0xa8')](_0xca3c5c,_0x63353d,_0xd715cf){for(const _0x5b36f3 of this[_0x41ed('0xfe')][_0x41ed('0xd5')](_0xca3c5c,_0x63353d))this[_0x41ed('0x97')](_0x5b36f3,_0xd715cf);for(const _0xf70348 of this['_diffRoots'][_0x41ed('0x39')]())_0xf70348[_0x41ed('0xe9')]['clear']();for(const [_0x17e268,_0xd8e44]of this['_markers']){this[_0x41ed('0xf')]['get'](_0xd8e44['root'][_0x41ed('0x4')])[_0x41ed('0xe9')][_0x41ed('0xd1')](_0x17e268,_0xd8e44[_0x41ed('0x6c')]());}const _0x426b2f=new Map(),_0x33f05c=new Map();for(const [_0x3f9f4e,_0xccfa93]of this['_diffRoots'])_0x426b2f['set'](_0x3f9f4e,q(_0xccfa93)),_0x33f05c[_0x41ed('0xd1')](_0x3f9f4e,this[_0x41ed('0x3d')][_0x41ed('0x3a')](_0x3f9f4e));this[_0x41ed('0xce')](_0x63353d,_0x426b2f,this[_0x41ed('0x2e')],_0x33f05c);}[_0x41ed('0xf5')](_0x172e09){const _0x3c28fe=Array[_0x41ed('0xca')](this[_0x41ed('0x70')][_0x41ed('0xe6')]());_0x3c28fe[_0x41ed('0x68')]((_0x3406cc,_0x2ecdb0)=>_0x3406cc-_0x2ecdb0),_0x3c28fe['reverse']();for(const _0x57d0df of _0x3c28fe)if(_0x57d0df<_0x172e09)return _0x57d0df;return Number[_0x41ed('0xd0')];}[_0x41ed('0x14')](_0x5abf7b,_0x4db95d){const _0x58751b=Array[_0x41ed('0xca')](_0x4db95d[_0x41ed('0xe9')])[_0x41ed('0xc3')](([_0x2d50f0,_0x3ab2b0])=>[_0x2d50f0,this[_0x41ed('0xee')](_0x3ab2b0,_0x5abf7b)]);_0x5abf7b[_0x41ed('0xe9')]=new Map(_0x58751b);}[_0x41ed('0xcf')](_0x5e6f88){for(const _0x3432e7 of this[_0x41ed('0x2e')][_0x41ed('0x39')]()){const _0x280074=_0x3432e7['getTransformedByOperation'](_0x5e6f88),_0x29f24b=_0x285279['_createFromRanges'](_0x280074);_0x3432e7[_0x41ed('0x1f')]=_0x29f24b[_0x41ed('0x1f')],_0x3432e7[_0x41ed('0x91')]=_0x29f24b[_0x41ed('0x91')];}}[_0x41ed('0x97')](_0x4aecb5,_0x2bc2b7){if('addRoot'==_0x4aecb5['type']||_0x41ed('0x52')==_0x4aecb5[_0x41ed('0x3')])return void this[_0x41ed('0xa')](_0x4aecb5,_0x2bc2b7);if(_0x41ed('0x99')==_0x4aecb5['type']){const _0x32457b=_0x4aecb5[_0x41ed('0xf2')][_0x41ed('0x35')][_0x41ed('0x4')];this['_diffRoots'][_0x41ed('0x6f')](_0x32457b)||(this[_0x41ed('0xf')][_0x41ed('0xd1')](_0x32457b,G(_0x32457b,!0x0)),this[_0x41ed('0x3d')][_0x41ed('0xd1')](_0x32457b,{}),_0x2bc2b7&&this[_0x41ed('0xfd')][_0x41ed('0xd1')](_0x32457b,G(_0x32457b,!0x0)));}else{if(_0x41ed('0x79')==_0x4aecb5[_0x41ed('0x3')]||'removeRootAttribute'==_0x4aecb5[_0x41ed('0x3')]||_0x41ed('0x46')==_0x4aecb5[_0x41ed('0x3')])return void this[_0x41ed('0x41')](_0x4aecb5);}const _0x2baea8=this['_cloneOperation'](_0x4aecb5,this['_diffRoots']);if(_0x41ed('0x6e')!==_0x4aecb5['type']&&(_0x2baea8[_0x41ed('0x67')](),this[_0x41ed('0xcf')](_0x2baea8)),_0x2bc2b7)switch(_0x2baea8[_0x41ed('0x3')]){case _0x41ed('0x99'):this[_0x41ed('0xdf')](_0x4aecb5);break;case _0x41ed('0x9a'):case _0x41ed('0x106'):case _0x41ed('0xf0'):this[_0x41ed('0xef')](_0x4aecb5);break;case'merge':this[_0x41ed('0xb')](_0x4aecb5);break;case _0x41ed('0xdb'):this[_0x41ed('0xb3')](_0x4aecb5);break;case'marker':this[_0x41ed('0xd7')](_0x4aecb5);}}['_cloneOperation'](_0x19e22c,_0x28d51a){const _0xa66a25=_0x19e22c[_0x41ed('0x6c')]();return _0xa66a25[_0x41ed('0x108')]=_0x19e22c[_0x41ed('0x108')],this[_0x41ed('0x88')](_0xa66a25,_0x28d51a),_0xa66a25;}['_getBaseVids'](_0x4c44f4){return _0x4c44f4[_0x41ed('0xc3')](_0x3316b7=>{const _0x28eab6=this[_0x41ed('0x47')](_0x3316b7);return Number(_0x3316b7[_0x41ed('0x105')][_0x41ed('0xc8')](_0x28eab6));});}[_0x41ed('0x80')](_0x36cf86,_0x30fc50){if(_0x36cf86['is'](_0x41ed('0xa2'),'$text'))_0x30fc50['push']({'item':_0x36cf86,'type':'text'});else{_0x36cf86['is'](_0x41ed('0xa2'))&&_0x30fc50[_0x41ed('0xb4')]({'item':_0x36cf86,'type':'elementStart'});for(const _0x381381 of _0x36cf86['getChildren']())this['_generateTape'](_0x381381,_0x30fc50);_0x36cf86['is']('element')&&_0x30fc50[_0x41ed('0xb4')]({'item':_0x36cf86,'type':_0x41ed('0xb1')});}return _0x30fc50;}[_0x41ed('0x72')](){const _0x10fa2d=new Map(this['_touched']),_0x534a15=new Map(_0x10fa2d),_0x205464=new Map(),_0xbfd1={'insertions':{},'deletions':{}},_0x2ab57d={'insertions':{},'deletions':{}},_0x152486=new Map(),_0x55e8b5=new Set([...this['_baseRoots'][_0x41ed('0xe6')](),...this[_0x41ed('0xf')][_0x41ed('0xe6')]()]);_0x55e8b5[_0x41ed('0x7b')](_0x41ed('0x109'));for(const _0x133425 of _0x55e8b5){const _0x169088=this[_0x41ed('0xf')]['get'](_0x133425)||G(_0x133425,!0x1),_0x1deb32=this[_0x41ed('0x23')][_0x41ed('0x3a')](_0x133425)||G(_0x133425,!0x1);_0x169088['isAttached']()||_0x1deb32[_0x41ed('0x90')]()?(_0xbfd1['insertions'][_0x133425]=q(_0x169088),_0xbfd1[_0x41ed('0x30')][_0x133425]=q(_0x1deb32),this[_0x41ed('0x14')](_0xbfd1['deletions'][_0x133425],_0x1deb32),this[_0x41ed('0x14')](_0xbfd1[_0x41ed('0x66')][_0x133425],_0x169088),_0x2ab57d['insertions'][_0x133425]=this[_0x41ed('0x80')](this['_idsRoots'][_0x41ed('0x3a')](_0x133425),[]),_0x2ab57d[_0x41ed('0x30')][_0x133425]=this['_generateTape'](this['_baseIdsRoots'][_0x41ed('0x3a')](_0x133425)||G(_0x133425,!0x1),[])):_0x55e8b5[_0x41ed('0x7b')](_0x133425);}for(const _0x465e04 of _0x55e8b5){const _0x56fec2=_0x2ab57d[_0x41ed('0x66')][_0x465e04];for(const _0x3c90fc of _0x56fec2){const _0x104366=this['_getVidAttributeName'](_0x3c90fc),_0x1d1de4=_0x3c90fc[_0x41ed('0x105')][_0x41ed('0xc8')](_0x104366);_0x534a15[_0x41ed('0x7b')](_0x1d1de4),_0x1d1de4>=this['_startingRevisionId']&&_0x205464['set'](_0x1d1de4,_0x10fa2d['get'](_0x1d1de4));}}for(const _0x3956a1 of _0x55e8b5){const _0x42c129=_0x2ab57d[_0x41ed('0x66')][_0x3956a1],_0x28c486=this[_0x41ed('0xa1')](_0x2ab57d[_0x41ed('0x30')][_0x3956a1]);let _0x3493a2=0x0;for(const _0x3e6804 of _0x42c129){const _0x1cc0f4=this[_0x41ed('0x47')](_0x3e6804),_0x450866=_0x3e6804['item'][_0x41ed('0xc8')](_0x1cc0f4);if(!_0x205464[_0x41ed('0x6f')](_0x450866)&&!_0x152486['has'](_0x450866)){if(_0x534a15[_0x41ed('0x6f')](_0x450866))_0x3493a2++;else{if(_0x450866!=_0x28c486[_0x3493a2]){const _0x239a46=_0x10fa2d[_0x41ed('0x3a')](_0x450866)||_0x10fa2d[_0x41ed('0x3a')](_0x28c486[_0x3493a2]);for(;_0x450866!=_0x28c486[_0x3493a2];)_0x534a15['has'](_0x28c486[_0x3493a2])||(_0x152486[_0x41ed('0xd1')](_0x28c486[_0x3493a2],_0x239a46),_0x10fa2d[_0x41ed('0xd1')](_0x28c486[_0x3493a2],_0x239a46)),_0x3493a2++;}_0x3493a2++;}}}}for(const _0x255e62 of _0x55e8b5){const _0x47c0af=_0x2ab57d[_0x41ed('0x66')][_0x255e62];for(const _0x44fa4c of _0x47c0af){const _0x1f7712=this['_getVidAttributeName'](_0x44fa4c),_0x23a006=_0x44fa4c[_0x41ed('0x105')]['getAttribute'](_0x1f7712);if(_0x152486[_0x41ed('0x6f')](_0x23a006)){const _0x37402e=_0x152486[_0x41ed('0x3a')](_0x23a006);_0x534a15['has'](_0x23a006)||_0x534a15[_0x41ed('0xd1')](_0x23a006,{..._0x37402e}),_0x205464[_0x41ed('0xd1')](_0x23a006,{..._0x37402e});}}}for(const _0x327d1f of _0x534a15[_0x41ed('0xe6')]())_0x327d1f>=this[_0x41ed('0x37')]&&_0x534a15[_0x41ed('0x7b')](_0x327d1f);const _0x36bde9=new Map();for(const _0x2b236e of _0x55e8b5){let _0x34b9b6=_0x2ab57d[_0x41ed('0x66')][_0x2b236e];for(const _0x1f1547 of _0x34b9b6)if(_0x1f1547[_0x41ed('0x105')]['is'](_0x41ed('0xa2'),'tableCell')){const _0x10d30c=this[_0x41ed('0x47')](_0x1f1547),_0x1cb2fa=_0x1f1547[_0x41ed('0x105')][_0x41ed('0xc8')](_0x10d30c);if(_0x205464[_0x41ed('0x6f')](_0x1cb2fa)){const _0x562580=_0x1f1547[_0x41ed('0x105')][_0x41ed('0x7a')][_0x41ed('0x7a')][_0x41ed('0xc8')](_0x41ed('0x82')),_0x56dcd5=_0x36bde9['get'](_0x562580)||new Set();_0x56dcd5[_0x41ed('0x2d')](_0x205464[_0x41ed('0x3a')](_0x1cb2fa)[_0x41ed('0xc')]),_0x36bde9[_0x41ed('0xd1')](_0x562580,_0x56dcd5);}}_0x34b9b6=_0x2ab57d[_0x41ed('0x30')][_0x2b236e];for(const _0x20a3ef of _0x34b9b6)if(_0x20a3ef[_0x41ed('0x105')]['is'](_0x41ed('0xa2'),'tableCell')){const _0x406c15=this['_getVidAttributeName'](_0x20a3ef),_0x56f2c5=_0x20a3ef[_0x41ed('0x105')][_0x41ed('0xc8')](_0x406c15);if(_0x534a15['has'](_0x56f2c5)){const _0x23c2fe=_0x20a3ef['item']['parent'][_0x41ed('0x7a')][_0x41ed('0xc8')](_0x41ed('0x82')),_0x1c493e=_0x36bde9[_0x41ed('0x3a')](_0x23c2fe)||new Set();_0x1c493e[_0x41ed('0x2d')](_0x534a15[_0x41ed('0x3a')](_0x56f2c5)[_0x41ed('0xc')]),_0x36bde9[_0x41ed('0xd1')](_0x23c2fe,_0x1c493e);}}for(const _0x9f0a87 of _0x36bde9[_0x41ed('0xe6')]())(_0x205464[_0x41ed('0x6f')](_0x9f0a87)||_0x534a15[_0x41ed('0x6f')](_0x9f0a87))&&_0x36bde9[_0x41ed('0x7b')](_0x9f0a87);}for(const _0x567987 of _0x55e8b5){const _0x55adcc=_0x2ab57d[_0x41ed('0x66')][_0x567987];let _0x290f8b=null,_0x3801f5=null;for(const _0x15aa97 of _0x55adcc){const _0x25069e=this[_0x41ed('0x47')](_0x15aa97),_0xbbe0cd=_0x15aa97['item'][_0x41ed('0xc8')](_0x25069e),_0x38a0ee=_0x36bde9[_0x41ed('0x3a')](_0xbbe0cd);_0x38a0ee&&_0x41ed('0xc0')==_0x15aa97[_0x41ed('0x3')]&&(_0x290f8b=Array[_0x41ed('0xca')](_0x38a0ee)[0x0],_0x3801f5=_0x15aa97[_0x41ed('0x105')][_0x41ed('0xc8')](_0x41ed('0xe1'))),_0x290f8b&&(_0x534a15[_0x41ed('0xd1')](_0xbbe0cd,{'userId':_0x290f8b}),_0x205464[_0x41ed('0xd1')](_0xbbe0cd,{'userId':_0x290f8b})),_0xbbe0cd==_0x3801f5&&(_0x290f8b=null,_0x3801f5=null);}}const _0x1b6a67={},_0x330334=new Set();for(const _0x4f2cf8 of _0x55e8b5){const _0x3afcee=_0xbfd1[_0x41ed('0x30')][_0x4f2cf8],_0x2d3eee=_0xbfd1[_0x41ed('0x66')][_0x4f2cf8];for(const {userId:_0x76a1ba}of this['_touchedMarkers']['values']())null!==_0x76a1ba&&_0x330334[_0x41ed('0x2d')](_0x76a1ba);for(const {userId:_0x319eeb}of this['_touchedRoots'][_0x41ed('0x39')]())null!==_0x319eeb&&_0x330334[_0x41ed('0x2d')](_0x319eeb);this[_0x41ed('0x55')](_0x2d3eee,_0x2ab57d[_0x41ed('0x66')][_0x4f2cf8],_0x205464,_0x41ed('0x9e'),_0x330334),this[_0x41ed('0x55')](_0x3afcee,_0x2ab57d[_0x41ed('0x30')][_0x4f2cf8],_0x534a15,_0x41ed('0x53'),_0x330334),_0x1b6a67[_0x4f2cf8]={'insertions':this['_prepareViewToSave'](_0x2d3eee),'deletions':this[_0x41ed('0xf7')](_0x3afcee),'attachChange':this[_0x41ed('0x4b')]['get'](_0x4f2cf8)||null,'attributesBefore':_0x2cd86e(this[_0x41ed('0x89')][_0x41ed('0x3a')](_0x4f2cf8))||{},'attributesAfter':_0x2cd86e(this[_0x41ed('0x3d')]['get'](_0x4f2cf8))};}return{'diffData':_0x1b6a67,'authorsIds':Array['from'](_0x330334)};}[_0x41ed('0x54')](_0x2e4ad9){for(const [,_0x36ef53]of _0x2e4ad9['markers']){const _0x159f9a=_0x36ef53[_0x41ed('0x1f')][_0x41ed('0xc2')]()[_0x41ed('0x10b')](_0x4bbc60=>_0x41ed('0x1c')==_0x4bbc60['name']);for(const _0x45b792 of _0x159f9a)0x1==_0x45b792[_0x41ed('0x1b')]&&_0x45b792['getChild'](0x0)['is'](_0x41ed('0xa2'),_0x41ed('0x16'))&&_0x45b792[_0x41ed('0xad')](0x0)['_setAttribute'](_0x41ed('0xc7'),!0x0);}}[_0x41ed('0xf7')](_0x457d5e){this[_0x41ed('0x54')](_0x457d5e);const _0x5454d6=this[_0x41ed('0x92')][_0x41ed('0x3e')][_0x41ed('0x2')](_0x457d5e,{}),_0x28d50b=Array[_0x41ed('0xca')](_0x5454d6['getChildren']())[_0x41ed('0xc3')](_0x10dde8=>this['_getViewJson'](_0x10dde8));return JSON[_0x41ed('0x86')](_0x28d50b);}['_getViewJson'](_0x28c275){if(_0x28c275['is'](_0x41ed('0x15')))return _0x28c275['data'];{const _0x127482=_0x28c275;return{'type':Object[_0x41ed('0xe6')](B)[_0x41ed('0xc4')](_0x10a0b1=>_0x28c275 instanceof B[_0x10a0b1]),'name':_0x127482[_0x41ed('0x38')],'attributes':Array[_0x41ed('0xca')](_0x127482[_0x41ed('0x65')]()),'children':Array[_0x41ed('0xca')](_0x127482[_0x41ed('0xcb')]())['map'](_0x2bacce=>this[_0x41ed('0x4e')](_0x2bacce))};}}[_0x41ed('0x55')](_0x4e9670,_0x5cba66,_0x5c5d42,_0x3cb212,_0x19148a){let _0x22fa31=null,_0x2135ef=null,_0x11776c=0x0;const _0x3a2b5d=this[_0x41ed('0x92')][_0x41ed('0xd9')];for(let _0x3b99da=0x0;_0x3b99da<_0x5cba66['length'];_0x3b99da++){const _0x147516=this[_0x41ed('0x47')](_0x5cba66[_0x3b99da]),_0x5d84d4=_0x5cba66[_0x3b99da][_0x41ed('0x105')][_0x41ed('0xc8')](_0x147516),_0x4b01a7=_0x5c5d42['get'](_0x5d84d4),_0x447318=_0x3b99da==_0x5cba66['length']-0x1;(!_0x22fa31&&_0x4b01a7&&(_0x22fa31=_0x4b01a7,_0x2135ef=_0x5cba66[_0x3b99da]),_0x22fa31&&(!_0x4b01a7||_0x4b01a7['userId']!=_0x22fa31[_0x41ed('0xc')]))&&(_0x4382db(_0x4b01a7,L(_0x2135ef,_0x4e9670,_0x3a2b5d),L(_0x5cba66[_0x3b99da],_0x4e9670,_0x3a2b5d)),_0x22fa31=_0x4b01a7||null,_0x2135ef=_0x4b01a7?_0x5cba66[_0x3b99da]:null),_0x22fa31&&_0x447318&&_0x4382db(_0x4b01a7,L(_0x2135ef,_0x4e9670,_0x3a2b5d),W(_0x5cba66[_0x3b99da],_0x4e9670,_0x3a2b5d));}function _0x4382db(_0x49a3f1,_0x43dc36,_0x4fef5b){const _0x2bd36a=_0x22fa31[_0x41ed('0xc')],_0xf62c63='revision:'+_0x3cb212+':'+_0x2bd36a+':'+_0x11776c++,_0x37e94e=_0x3a2b5d[_0x41ed('0x1a')](_0x43dc36,_0x4fef5b);_0x4e9670[_0x41ed('0xe9')][_0x41ed('0xd1')](_0xf62c63,_0x37e94e),null!==_0x2bd36a&&_0x19148a[_0x41ed('0x2d')](_0x2bd36a);}}[_0x41ed('0x47')](_0x35bdaa){switch(_0x35bdaa[_0x41ed('0x3')]){case _0x41ed('0xc0'):return _0x41ed('0x82');case _0x41ed('0xb1'):return _0x41ed('0xe1');default:return _0x41ed('0xf4');}}[_0x41ed('0x88')](_0x4a07e4,_0x523e60){_0x4a07e4[_0x41ed('0xb5')]=null;for(const _0x3dbeaa in _0x4a07e4){const _0x5bc7c7=_0x4a07e4[_0x3dbeaa];if(_0x5bc7c7 instanceof _0x36d179){const _0x1fd392=_0x523e60['get'](_0x5bc7c7['root'][_0x41ed('0x4')]);_0x4a07e4[_0x3dbeaa]=this['_fixPosition'](_0x5bc7c7,_0x1fd392);}if(_0x5bc7c7 instanceof _0x285279){const _0x1441fc=_0x523e60['get'](_0x5bc7c7['root']['rootName']);_0x4a07e4[_0x3dbeaa]=this[_0x41ed('0xee')](_0x5bc7c7,_0x1441fc);}_0x41ed('0x35')===_0x3dbeaa&&(_0x4a07e4[_0x41ed('0x35')]=_0x523e60['get'](_0x4a07e4[_0x41ed('0x35')]['rootName']));}}[_0x41ed('0xee')](_0x5d0e91,_0x21ab51){return this[_0x41ed('0x92')][_0x41ed('0xd9')][_0x41ed('0x1a')](this[_0x41ed('0xab')](_0x5d0e91['start'],_0x21ab51),this[_0x41ed('0xab')](_0x5d0e91['end'],_0x21ab51));}[_0x41ed('0xab')](_0x3773c3,_0x265ccd){return this['editor'][_0x41ed('0xd9')]['createPositionFromPath'](_0x265ccd,_0x3773c3[_0x41ed('0x45')],_0x3773c3[_0x41ed('0xc6')]);}['_handleInsertOperation'](_0xd3cd39){const _0x33b7e7=this[_0x41ed('0xfd')]['get'](_0xd3cd39[_0x41ed('0xf2')][_0x41ed('0x35')]['rootName']),_0x32b3b1=this[_0x41ed('0xab')](_0xd3cd39[_0x41ed('0xf2')],_0x33b7e7),_0x4048cc=null===_0xd3cd39[_0x41ed('0x108')]?null:_0xd3cd39[_0x41ed('0x108')]||this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')]('Users')['me']['id'],_0x45917b=_0x32b3b1[_0x41ed('0x7a')],_0x22b5a5=this[_0x41ed('0xe5')],_0xd965b5=[];for(const _0x2cf018 of _0xd3cd39[_0x41ed('0x2b')])if(_0x2cf018['is'](_0x41ed('0xa2')))_0xd965b5['push'](this[_0x41ed('0xa5')](_0x2cf018));else for(let _0x41953a=0x0;_0x41953a<_0x2cf018[_0x41ed('0x51')];_0x41953a++)_0xd965b5[_0x41ed('0xb4')](new _0x2f4999(_0x41ed('0x15'),{'vid':this[_0x41ed('0xe5')]++}));const _0xadee56=this[_0x41ed('0xe5')];for(let _0x2fb175=_0x22b5a5;_0x2fb175<_0xadee56;_0x2fb175++)this[_0x41ed('0x18')][_0x41ed('0xd1')](_0x2fb175,{'userId':_0x4048cc});_0x45917b[_0x41ed('0xdd')](_0x32b3b1[_0x41ed('0x102')],_0xd965b5);}[_0x41ed('0xef')](_0x3ac1cb){(_0x3ac1cb=this[_0x41ed('0x7e')](_0x3ac1cb,this[_0x41ed('0xfd')]))[_0x41ed('0x67')]();const _0x21553d=null===_0x3ac1cb[_0x41ed('0x108')]?null:_0x3ac1cb[_0x41ed('0x108')]||this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')]('Users')['me']['id'],_0x3d04a5=_0x3ac1cb['getMovedRangeStart'](),_0x777076=_0x3d04a5[_0x41ed('0x7a')],_0x29c028=_0x3d04a5[_0x41ed('0x102')];!function _0x3fb178(_0x574512,_0x5eb1b6,_0x350452,_0x3350bc){for(let _0xe71955=_0x350452;_0xe71955<_0x3350bc;_0xe71955++){const _0x378622=_0x5eb1b6[_0x41ed('0xad')](_0xe71955);_0x378622['is'](_0x41ed('0xa2'),_0x41ed('0x15'))?_0x574512['set'](_0x378622[_0x41ed('0xc8')](_0x41ed('0xf4')),{'userId':_0x21553d}):(_0x574512[_0x41ed('0xd1')](_0x378622[_0x41ed('0xc8')]('vid_start'),{'userId':_0x21553d}),_0x3fb178(_0x574512,_0x378622,0x0,_0x378622[_0x41ed('0x1b')]),_0x574512[_0x41ed('0xd1')](_0x378622['getAttribute'](_0x41ed('0xe1')),{'userId':_0x21553d}));}}(this[_0x41ed('0x18')],_0x777076,_0x29c028,_0x29c028+_0x3ac1cb['howMany']);}[_0x41ed('0xb')](_0x196dc2){const _0x1e508c=null===(_0x196dc2=this[_0x41ed('0x7e')](_0x196dc2,this['_idsRoots']))[_0x41ed('0x108')]?null:_0x196dc2[_0x41ed('0x108')]||this[_0x41ed('0x92')]['plugins'][_0x41ed('0x3a')]('Users')['me']['id'],_0x3c9dfc=_0x196dc2[_0x41ed('0xec')]['parent'],_0x315378=_0x196dc2[_0x41ed('0xc5')]['parent'],_0x404067=_0x3c9dfc['getAttribute'](_0x41ed('0xe1')),_0x3ba74a=_0x315378[_0x41ed('0xc8')](_0x41ed('0x82'));_0x3c9dfc[_0x41ed('0x4a')]('vid_end',_0x315378[_0x41ed('0xc8')](_0x41ed('0xe1'))),_0x315378[_0x41ed('0x4a')](_0x41ed('0xe1'),_0x404067),this[_0x41ed('0x18')][_0x41ed('0xd1')](_0x3ba74a,{'userId':_0x1e508c}),this[_0x41ed('0x18')][_0x41ed('0xd1')](_0x404067,{'userId':_0x1e508c}),_0x196dc2[_0x41ed('0x67')]();}[_0x41ed('0xb3')](_0x31cf01){const _0x22f535=null===(_0x31cf01=this['_cloneOperation'](_0x31cf01,this[_0x41ed('0xfd')]))['_authorId']?null:_0x31cf01[_0x41ed('0x108')]||this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')](_0x41ed('0x3c'))['me']['id'],_0x4c5d16=_0x31cf01[_0x41ed('0x6a')],_0x4fb4b3=_0x31cf01[_0x41ed('0x5d')][_0x41ed('0x7a')];_0x31cf01[_0x41ed('0x67')]();const _0x1248d6=_0x4fb4b3[_0x41ed('0xc8')](_0x41ed('0xe1')),_0x5e3df2=_0x31cf01['insertionPosition']['nodeAfter'];if(_0x4c5d16){const _0x199673=_0x5e3df2[_0x41ed('0xc8')](_0x41ed('0xe1')),_0x274a7c=_0x4fb4b3['getAttribute'](_0x41ed('0xe1'));_0x4fb4b3[_0x41ed('0x4a')]('vid_end',_0x199673),_0x5e3df2[_0x41ed('0x4a')](_0x41ed('0xe1'),_0x274a7c),this[_0x41ed('0x18')]['set'](_0x4fb4b3['getAttribute']('vid_end'),{'userId':_0x22f535}),this[_0x41ed('0x18')]['set'](_0x5e3df2['getAttribute']('vid_start'),{'userId':_0x22f535});}else{const _0x168b9d=this[_0x41ed('0xe5')]++,_0x4d1712=this['_revisionId']++;_0x4fb4b3[_0x41ed('0x4a')](_0x41ed('0xe1'),_0x168b9d),_0x5e3df2[_0x41ed('0x4a')](_0x41ed('0x82'),_0x4d1712),_0x5e3df2[_0x41ed('0x4a')](_0x41ed('0xe1'),_0x1248d6),this[_0x41ed('0x18')]['set'](_0x168b9d,{'userId':_0x22f535}),this['_touched'][_0x41ed('0xd1')](_0x4d1712,{'userId':_0x22f535});}}[_0x41ed('0xd7')](_0x59662c){if(!_0x59662c[_0x41ed('0x59')])return;const _0x2e1ff1=(_0x59662c=this[_0x41ed('0x7e')](_0x59662c,this[_0x41ed('0xf')]))['oldRange']?_0x59662c['oldRange'][_0x41ed('0x35')]:null,_0x493853=_0x59662c['newRange']?_0x59662c['newRange'][_0x41ed('0x35')]:null;_0x2e1ff1&&this[_0x41ed('0x2e')]['delete'](_0x59662c['name']),_0x493853&&this['_markers'][_0x41ed('0xd1')](_0x59662c[_0x41ed('0x38')],_0x59662c[_0x41ed('0x1d')]['clone']());const _0x3a117b=null===_0x59662c[_0x41ed('0x108')]?null:_0x59662c[_0x41ed('0x108')]||this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')](_0x41ed('0x3c'))['me']['id'],_0x3a8923=_0x59662c['name'];if(!this[_0x41ed('0xac')][_0x41ed('0x6f')](_0x3a8923))return void this[_0x41ed('0xac')][_0x41ed('0xd1')](_0x3a8923,{'range':_0x59662c[_0x41ed('0x96')],'userId':_0x3a117b});const _0x463554=this[_0x41ed('0xac')]['get'](_0x3a8923),_0x213f9a=_0x463554[_0x41ed('0xd8')],_0x170459=_0x59662c[_0x41ed('0x1d')];null==_0x213f9a&&null==_0x170459||_0x213f9a&&_0x170459&&_0x213f9a[_0x41ed('0x8f')](_0x170459)?this[_0x41ed('0xac')][_0x41ed('0x7b')](_0x59662c[_0x41ed('0x38')]):_0x463554[_0x41ed('0xc')]=_0x3a117b;}['_handleRootOperation'](_0xfd42bc,_0x377b2b){this[_0x41ed('0xf')][_0x41ed('0x6f')](_0xfd42bc['rootName'])?this[_0x41ed('0xf')]['get'](_0xfd42bc[_0x41ed('0x4')])[_0x41ed('0x22')]=_0xfd42bc['isAdd']:(this[_0x41ed('0xf')][_0x41ed('0xd1')](_0xfd42bc[_0x41ed('0x4')],G(_0xfd42bc[_0x41ed('0x4')],!0x0)),this[_0x41ed('0x3d')][_0x41ed('0xd1')](_0xfd42bc['rootName'],{}),_0x377b2b&&this[_0x41ed('0xfd')][_0x41ed('0xd1')](_0xfd42bc[_0x41ed('0x4')],G(_0xfd42bc[_0x41ed('0x4')],!0x0)));const _0x3db185=null===_0xfd42bc[_0x41ed('0x108')]?null:_0xfd42bc[_0x41ed('0x108')]||this[_0x41ed('0x92')][_0x41ed('0x7c')][_0x41ed('0x3a')]('Users')['me']['id'],_0x5b4ddb=this[_0x41ed('0x4b')]['get'](_0xfd42bc[_0x41ed('0x4')]);_0x5b4ddb&&_0x5b4ddb[_0x41ed('0xc')]===_0x3db185?this['_touchedRoots']['delete'](_0xfd42bc['rootName']):this[_0x41ed('0x4b')][_0x41ed('0xd1')](_0xfd42bc['rootName'],{'userId':_0x3db185,'isAttached':_0xfd42bc['isAdd']});}[_0x41ed('0x41')](_0x2bb07e){const _0x7ed17a=this['_diffRootsAttributes'][_0x41ed('0x3a')](_0x2bb07e[_0x41ed('0x35')]['rootName']);null===_0x2bb07e[_0x41ed('0x4f')]?delete _0x7ed17a[_0x2bb07e[_0x41ed('0x21')]]:_0x7ed17a[_0x2bb07e[_0x41ed('0x21')]]=_0x2bb07e[_0x41ed('0x4f')];}}function q(_0x58c5d0){const _0x5a3e58=G(_0x58c5d0[_0x41ed('0x4')],_0x58c5d0[_0x41ed('0x90')]());for(const _0x57de36 of _0x58c5d0[_0x41ed('0xcb')]()){const _0x55d22d=_0x57de36['_clone'](!0x0);_0x5a3e58[_0x41ed('0x8e')](_0x55d22d);}return _0x5a3e58;}function G(_0x1fc20a,_0x19d421=!0x0){const _0x4e4396=new _0x4fa6bf();return _0x4e4396[_0x41ed('0x4')]=_0x1fc20a,_0x4e4396['_isAttached']=_0x19d421,_0x4e4396[_0x41ed('0x90')]=()=>_0x4e4396[_0x41ed('0x22')],_0x4e4396;}function L(_0xceb9f1,_0x364910,_0x448cfa){const _0x200a5b=_0x41ed('0xb1')==_0xceb9f1[_0x41ed('0x3')]?_0x448cfa[_0x41ed('0xea')](_0xceb9f1[_0x41ed('0x105')],_0x41ed('0x91')):_0x448cfa[_0x41ed('0x98')](_0xceb9f1[_0x41ed('0x105')]);return _0x448cfa['createPositionFromPath'](_0x364910,_0x200a5b[_0x41ed('0x45')],_0x200a5b['stickiness']);}function W(_0x1b530e,_0x818b5e,_0x80583){const _0x31dc59=_0x41ed('0xc0')==_0x1b530e[_0x41ed('0x3')]?_0x80583[_0x41ed('0xea')](_0x1b530e[_0x41ed('0x105')],0x0):_0x80583[_0x41ed('0xda')](_0x1b530e[_0x41ed('0x105')]);return _0x80583[_0x41ed('0x73')](_0x818b5e,_0x31dc59[_0x41ed('0x45')],_0x31dc59[_0x41ed('0xc6')]);}
|
|
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')]);}
|