@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231030.0 → 0.0.0-nightly-20231101.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.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x73fd=['_revisionId','remove','some','insertions','startsWith','getNodeByPath','_replaceEditorDataWithRevisionData','Initial\x20revision','_fixOperation','isAttached','newRange','_savedMetaData','upcast','_getPreviousFrom','_baseIdsRoots','nodeAfter','path','_touched','define','push','NEGATIVE_INFINITY','getOperation','_handleRootAttributeOperation','get','getOperations','length','_makeIdsRoot','getRevision','view','_handleMoveOperation','elementEnd','_applyOperations','markers','sendBufferedUpdates','afterInit','setSource','createRevision','key','_processRootBeforeSave','authorsIds','_fixRange','RealTimeCollaborationClient','childCount','fromEntries','_isInit','_touchedMarkers','getTransformedByOperation','creator','createPositionFromPath','useFillerType','markerToData','_baseRootsAttributes','document','editor','getRootNames','parent','getWalker','diffData','_setAttribute','rootName','_loadState','buildRevisionData','_loadRevisionData','reinsert','_lastFrom','sort','_handleOperation','init','Users','name','_fixPosition','revisionHistory.resumeUnsavedRevision','PENDING_ACTION_REVISION_HISTORY','elementStart','_getState','_startingVersion','getIndex','_authorId','fromVersion','finally','_diffRootsAttributes','_handleSplitOperation','revision','rootsAttributes','deletions','getData','baseVersion','for','then','keys','getRoot','$graveyard','_idsRoots','_getVidAttributeName','createRangeIn','currentRevision','getRevisionDocumentData','attributesAfter','addRoot','createPositionBefore','isEqual','size','revision-end','_touchedRoots','sourcePosition','_handleMergeOperation','text','deletion','vid','loadState','_revisionDataBuilder','previousPosition','_update','processor','RevisionTracker','reverse','PendingActions','$text','element','addRevisionData','stringify','getRevisionRootsAttributes','attributes','initial','_reset','detachRoot','includes','_copyMarkers','model','createPositionAt','getLatestVersion','reInit','start','shift','_execute','find','ready','getTime','getUser','addRevision','_getFromVersion','_initialRevisionId','isEnabled','stickiness','toView','isAdd','getCurrentRevisionId','requires','item','clone','repository','createdAt','toVersion','_generateTape','collaboration.channelId','howMany','_continueCurrentRevision','targetPosition','insert','position','_pendingAction','getMovedRangeStart','_prepareViewToSave','_clone','_lastTo','_calculateMetaData','marker','_isPendingUpdate','authors','_bufferUpdate','pluginName','userId','values','default','bind','_cloneOperation','clear','toData','updateRevisions','_baseRoots','vid_start','version','filter','revision-start','_diffRoots','children','getAttributes','splitPosition','roots','_startingRevisionId','adapter','createPositionAfter','delete','_setConversion','setRevisionData','RevisionsRepository','split','_handleMarkerOperation','from','newValue','toModel','_handleInsertOperation','_removeRevisionMarkers','vid_end','_removePendingAction','_makeRevision','type','insertion','_addPendingAction','_transformMarkers','string','_getViewJson','getAttribute','getRevisions','data-revision-','source','getAncestors','max','data','_makeModelFromViewString','_bufferedUpdates','addRootAttribute','documentFragment','creatorId','_removeMetaData','locale','offset','initialData','move','history','root','set','_handleRootOperation','trim','_saveMetaData','config','add','parse','conversion','_markers','offsetSize','slice','_createInitialRevision','_getBaseVids','getChild','getChildren','_insertChild','tableCell','merge','forEach','resolve','isReady','oldRange','_isAttached','end','map','range','_createFromRanges','attachChange','plugins','insertionPosition','saveRevision','_source','editing','has','_loadedStateData','revision:'];(function(_0x2937d4,_0x73fd16){const _0xde56c7=function(_0x141b0f){while(--_0x141b0f){_0x2937d4['push'](_0x2937d4['shift']());}};_0xde56c7(++_0x73fd16);}(_0x73fd,0x111));const _0xde56=function(_0x2937d4,_0x73fd16){_0x2937d4=_0x2937d4-0x0;let _0xde56c7=_0x73fd[_0x2937d4];return _0xde56c7;};import{Users as _0x5e0294}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x368f27,PendingActions as _0x2a1572}from'ckeditor5/src/core';import{logWarning as _0x3ae405,uid as _0x3bba7f}from'ckeditor5/src/utils';import{Position as _0x4604a3,Range as _0x927a0c,Element as _0x4332cf,DocumentFragment as _0x5ac983,ViewText as _0x4ff27b,ViewElement as _0x35bfc4,ViewContainerElement as _0x1146e9,ViewAttributeElement as _0x5c83a2,ViewEmptyElement as _0xb18041,ViewRawElement as _0x43dd33,ViewUIElement as _0x2ba385,ViewDocumentFragment as _0x3823ce}from'ckeditor5/src/engine';import _0x443790 from'./revisionsrepository';import{getTranslation as _0x1601b7}from'./utils/common-translations';import{cloneDeep as _0x4bd79b,isEqual as _0x3cb537}from'lodash-es';const B={'c':_0x1146e9,'a':_0x5c83a2,'e':_0xb18041,'r':_0x43dd33,'u':_0x2ba385};export default class l extends _0x368f27{static get[_0xde56('0xa4')](){return _0xde56('0x6c');}static get[_0xde56('0x8d')](){return[_0x5e0294,_0x443790,_0x2a1572];}constructor(_0x2e0e40){super(_0x2e0e40),this[_0xde56('0xb8')]=null,this[_0xde56('0x59')]=null,this[_0xde56('0x68')]=new H(this[_0xde56('0x2f')]),this[_0xde56('0x87')]=this[_0xde56('0x2f')]['config'][_0xde56('0x11')]('collaboration.channelId')||_0xde56('0x75'),this[_0xde56('0xd6')]=new Map(),this['_loadedStateData']=null;const _0x3df10a=_0x3bba7f();this[_0xde56('0x100')]={'history':this[_0xde56('0x2f')][_0xde56('0x7a')]['document']['history'],'getLatestVersion':()=>Promise[_0xde56('0xf4')](this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xaf')]),'getCurrentRevisionId':()=>_0x3df10a},this[_0xde56('0xe1')]('isReady',!0x1),this[_0xde56('0xe1')](_0xde56('0x88'),!0x0),this['set'](_0xde56('0xa1'),!0x1),this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0xc')](_0xde56('0x41'),!0x0),this[_0xde56('0x2f')][_0xde56('0xe8')][_0xde56('0x51')](_0xde56('0x6'))['dataToMarker']({'view':'revision'});}[_0xde56('0x3d')](){this[_0xde56('0x90')]=this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0xbd')),this[_0xde56('0xbb')](),this['editor']['data']['on'](_0xde56('0x82'),()=>{const _0x2fa6fe=this[_0xde56('0x90')][_0xde56('0x15')](0x0),_0x417c6f=_0x2fa6fe&&null===_0x2fa6fe['creator']?_0x2fa6fe:null;if(this[_0xde56('0x96')]=!!_0x417c6f&&this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0x41')),this[_0xde56('0x2f')][_0xde56('0xfd')]['has'](_0xde56('0x23'))){const _0x193c1e=this[_0xde56('0x100')]['getCurrentRevisionId'](),_0x12b05d=this['repository'][_0xde56('0x15')](_0x193c1e);if(_0x12b05d)this[_0xde56('0x45')]=_0x12b05d[_0xde56('0x48')],this['_continueCurrentRevision']=!0x1;else{const _0x21be33=this[_0xde56('0x100')][_0xde56('0xdf')]['_operations']['find'](_0x27da08=>!_0x27da08[_0xde56('0x26')]),_0x388e74=_0x21be33?_0x21be33[_0xde56('0x50')]:this[_0xde56('0x100')]['history']['version'];_0x2fa6fe?(_0x2fa6fe[_0xde56('0x92')]<_0x388e74&&_0x2fa6fe[_0xde56('0x6a')]({'toVersion':_0x388e74}),this[_0xde56('0x96')]?(this[_0xde56('0x100')][_0xde56('0x8c')]=()=>_0x417c6f['id'],this[_0xde56('0x45')]=_0x417c6f[_0xde56('0x48')]):(this[_0xde56('0x45')]=_0x2fa6fe['toVersion'],this['_continueCurrentRevision']=!0x1)):(this[_0xde56('0x45')]=_0x388e74,this['_continueCurrentRevision']=!0x1);}}else _0x417c6f&&(this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0xdf')]['version']=Math[_0xde56('0xd3')](_0x417c6f[_0xde56('0x92')],this[_0xde56('0x2f')][_0xde56('0x7a')]['document']['history'][_0xde56('0xaf')]),_0x417c6f[_0xde56('0x48')]===_0x417c6f[_0xde56('0x92')]?(0x0!==_0x417c6f[_0xde56('0x48')]&&(this[_0xde56('0x100')][_0xde56('0x8c')]=()=>_0x417c6f['id']),this['_continueCurrentRevision']=!0x1):this[_0xde56('0x96')]&&(this['_source'][_0xde56('0x8c')]=()=>_0x417c6f['id'],this[_0xde56('0x45')]=_0x417c6f[_0xde56('0x48')])),this['_continueCurrentRevision']||(this[_0xde56('0x45')]=this['editor'][_0xde56('0x7a')][_0xde56('0x2e')]['version']);this[_0xde56('0x68')][_0xde56('0x3d')](this[_0xde56('0x100')][_0xde56('0xdf')]),this[_0xde56('0xec')](this['_startingVersion']),this['_createCurrentRevision'](this[_0xde56('0x45')]),this[_0xde56('0xb8')]&&this['sendBufferedUpdates']();}),this[_0xde56('0xa8')](_0xde56('0xf5'))['to'](this,_0xde56('0xa1'),_0x245de9=>!_0x245de9);}async[_0xde56('0x1c')](){if(this[_0xde56('0x90')][_0xde56('0x13')]>0x0){const _0x511ef2=this['repository'][_0xde56('0x15')](0x0),_0x5c018b=await this[_0xde56('0x5a')](_0x511ef2),_0x5a5c2a=await this[_0xde56('0x73')](_0x511ef2);this[_0xde56('0x0')](_0x5c018b,_0x5a5c2a);}}[_0xde56('0x1d')](_0x4629ec){this[_0xde56('0x100')]=_0x4629ec;}async['update'](){const _0x1b4fc1=await this[_0xde56('0x100')][_0xde56('0x7c')]();if(_0x1b4fc1>this[_0xde56('0x59')][_0xde56('0x92')]){await this[_0xde56('0x36')]();const _0x100dd8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b4fc1});_0x100dd8[_0xde56('0xa2')]=_0x100dd8[_0xde56('0x21')][_0xde56('0xf9')](_0x3645cb=>this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')[_0xde56('0x84')](_0x3645cb)),this[_0xde56('0x59')][_0xde56('0x6a')](_0x100dd8);}}async[_0xde56('0x36')](){this[_0xde56('0x96')]&&!this['_loadedStateData']&&(await this[_0xde56('0x38')](this[_0xde56('0x59')]),this[_0xde56('0x68')]['loadState'](this[_0xde56('0x59')]),this[_0xde56('0x103')]={'fromVersion':this['currentRevision'][_0xde56('0x48')],'authors':this['currentRevision'][_0xde56('0xa2')][_0xde56('0xeb')]()});}async[_0xde56('0xff')](_0x364470={},_0x77935c=null){const _0x15c46e=[];await this[_0xde56('0x36')](),this[_0xde56('0x96')]=!0x1,_0x77935c>this[_0xde56('0x59')][_0xde56('0x92')]&&(_0x77935c=null),null===_0x77935c&&(_0x77935c=await this[_0xde56('0x100')][_0xde56('0x7c')]());const _0x39ab89=this[_0xde56('0x86')](_0x77935c),_0x4fe7d9=this['buildRevisionData']({'from':_0x39ab89,'to':_0x77935c});if(this['currentRevision'][_0xde56('0x92')]<_0x77935c){const _0x13cff5=this[_0xde56('0x37')]({'revision':this[_0xde56('0x59')],'from':_0x77935c,'to':_0x77935c});_0x13cff5[_0xde56('0xa2')]=[],_0x13cff5[_0xde56('0x21')]=[],_0x13cff5['id']=this['currentRevision']['id'],this[_0xde56('0x59')][_0xde56('0x6a')](_0x13cff5,!0x0),delete _0x13cff5[_0xde56('0xa2')],_0x15c46e[_0xde56('0xd')](_0x13cff5);}_0x364470[_0xde56('0xd9')]=this['editor'][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x364470['name']=_0x364470['name']||null,_0x364470['id']=_0x364470['id']||_0x3bba7f(),_0x364470={..._0x364470,..._0x4fe7d9};const _0x5f0e91=this[_0xde56('0x71')](_0x364470);_0x15c46e['push'](_0x364470);const _0x1b4376=this[_0xde56('0x90')][_0xde56('0x46')](_0x5f0e91);if(0x0!==_0x1b4376){const _0x44af18=this['repository'][_0xde56('0x15')](_0x1b4376-0x1);if(_0x44af18[_0xde56('0x48')]!==_0x77935c){const _0x3f9321=this[_0xde56('0x68')]['getData'](_0x77935c,_0x44af18[_0xde56('0x92')]),_0x5910e8={'id':_0x44af18['id'],'diffData':_0x3f9321[_0xde56('0x33')],'authorsIds':_0x3f9321[_0xde56('0x21')],'authors':_0x3f9321[_0xde56('0x21')][_0xde56('0xf9')](_0x17638c=>this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['getUser'](_0x17638c)),'fromVersion':_0x77935c};_0x44af18===this['currentRevision']&&(_0x5910e8['createdAt']=new Date(_0x364470[_0xde56('0x91')][_0xde56('0x83')]()+0xa)),_0x44af18[_0xde56('0x6a')](_0x5910e8,!0x0),delete _0x5910e8[_0xde56('0xa2')],_0x15c46e[_0xde56('0xd')](_0x5910e8);}}if(this[_0xde56('0xb8')]){for(const _0x4e58ab of _0x15c46e)this[_0xde56('0xa3')](_0x4e58ab['id'],_0x4e58ab,!0x0);this[_0xde56('0x1b')]();}return _0x5f0e91;}['addRevisionData'](_0x1398f5){const _0x28fc2c=this[_0xde56('0x90')][_0xde56('0x1e')](_0x1398f5);return this[_0xde56('0xb8')]&&_0x28fc2c['on']('_update',(_0x14efab,_0x5e7306,_0x182f84)=>{_0x182f84||(this[_0xde56('0xa3')](_0x5e7306['id'],_0x5e7306,!0x0),this[_0xde56('0x1b')]());}),this['repository'][_0xde56('0x85')](_0x28fc2c,this['_findInsertionIndex'](_0x28fc2c)),_0x28fc2c;}async[_0xde56('0x5a')](_0x5da642){await this[_0xde56('0x38')](_0x5da642);const _0x2f177d={};for(const _0x5e7721 in _0x5da642[_0xde56('0x33')]){if(_0x5da642[_0xde56('0x33')][_0x5e7721]['attachChange']&&!_0x5da642['diffData'][_0x5e7721][_0xde56('0xfc')][_0xde56('0x3')])continue;const _0x470279=this[_0xde56('0xc4')](JSON[_0xde56('0xe7')](_0x5da642[_0xde56('0x33')][_0x5e7721][_0xde56('0x108')])),_0x2f7e0a=this[_0xde56('0x2f')][_0xde56('0x101')]['view'][_0xde56('0x2e')],_0x3b4ac9=new _0x3823ce(_0x2f7e0a,_0x470279[_0xde56('0xf9')](_0x52559d=>J(_0x52559d,this[_0xde56('0x2f')])));this['editor'][_0xde56('0xd4')][_0xde56('0x6b')][_0xde56('0x2b')]('marked'),_0x2f177d[_0x5e7721]=this[_0xde56('0x2f')]['data']['processor'][_0xde56('0xab')](_0x3b4ac9),this[_0xde56('0x2f')]['data'][_0xde56('0x6b')][_0xde56('0x2b')](_0xde56('0xa7'));}return _0x2f177d;}async[_0xde56('0x73')](_0x5420b5){await this[_0xde56('0x38')](_0x5420b5);const _0x367f26={};for(const _0x571c1d in _0x5420b5['diffData'])_0x5420b5[_0xde56('0x33')][_0x571c1d]['attachChange']&&!_0x5420b5[_0xde56('0x33')][_0x571c1d][_0xde56('0xfc')]['isAttached']||(_0x367f26[_0x571c1d]=_0x5420b5['diffData'][_0x571c1d][_0xde56('0x5b')]||{});return _0x367f26;}[_0xde56('0x1b')](){if(0x0===this[_0xde56('0xd6')][_0xde56('0x5f')])return;if(this['_isPendingUpdate'])return;let _0x30f970=Array[_0xde56('0xc0')](this[_0xde56('0xd6')][_0xde56('0xa6')]());this[_0xde56('0xd6')][_0xde56('0xaa')]();for(let _0x3597eb=0x0;_0x3597eb<_0x30f970['length'];_0x3597eb++){const _0x47a4ef=_0x30f970[_0x3597eb];let _0x185121=!0x1;for(const _0x1c2881 of Object[_0xde56('0x53')](_0x47a4ef))void 0x0===_0x47a4ef[_0x1c2881]?delete _0x47a4ef[_0x1c2881]:'id'!==_0x1c2881&&(_0x185121=!0x0);_0x185121||(_0x30f970[_0x3597eb]=null);}if(_0x30f970=_0x30f970[_0xde56('0xb0')](_0x424eb2=>null!==_0x424eb2),!_0x30f970[_0xde56('0x13')])return;for(let _0x2886cf=0x0;_0x2886cf<_0x30f970[_0xde56('0x13')];_0x2886cf++){const _0x467e52=_0x30f970[_0x2886cf];void 0x0!==_0x467e52['fromVersion']&&void 0x0===_0x467e52[_0xde56('0x92')]&&(_0x467e52[_0xde56('0x92')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x467e52['id'])['toVersion']),void 0x0!==_0x467e52[_0xde56('0x92')]&&void 0x0===_0x467e52[_0xde56('0x48')]&&(_0x467e52[_0xde56('0x48')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x467e52['id'])['fromVersion']);}const _0x423df7=this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0x94'));this['_isPendingUpdate']=!0x0,this[_0xde56('0xca')](),this[_0xde56('0xb8')][_0xde56('0xac')](_0x30f970,_0x423df7)[_0xde56('0x49')](()=>{this['_isPendingUpdate']=!0x1;})[_0xde56('0x52')](_0x1a4ae6=>{if(_0x1a4ae6)for(const _0x1afeee of _0x1a4ae6)this[_0xde56('0xbc')]({'id':_0x1afeee['id'],'createdAt':_0x1afeee[_0xde56('0x91')]});this[_0xde56('0xc6')](),this[_0xde56('0x1b')]();});}['_replaceEditorDataWithRevisionData'](_0xd31fb8,_0x25f839){let _0x5dd055=this[_0xde56('0x2f')][_0xde56('0xe5')][_0xde56('0x11')](_0xde56('0xdd')),_0x84b605=this[_0xde56('0x2f')]['config'][_0xde56('0x11')](_0xde56('0x4d'));if(void 0x0===_0x5dd055){_0x5dd055={};for(const _0x5603e2 of this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0x30')]())_0x5dd055[_0x5603e2]='';}if(_0xde56('0xcc')==typeof _0x5dd055&&(_0x5dd055={'main':_0x5dd055}),void 0x0===_0x84b605){_0x84b605={};for(const _0x2d7fac of this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0x30')]())_0x84b605[_0x2d7fac]={};}let _0x42b4a4=!0x1;const _0x56153f=Object[_0xde56('0x53')](_0x5dd055),_0x50214d=Object[_0xde56('0x53')](_0xd31fb8);for(const _0x4926d9 of _0x56153f){if(_0x5dd055[_0x4926d9]!==_0xd31fb8[_0x4926d9]&&''!==_0x5dd055[_0x4926d9][_0xde56('0xe3')]()){_0x42b4a4=!0x0;break;}if(!_0x3cb537(_0x84b605[_0x4926d9],_0x25f839[_0x4926d9])&&Object[_0xde56('0x53')](_0x84b605[_0x4926d9])[_0xde56('0x13')]>0x0){_0x42b4a4=!0x0;break;}}_0x42b4a4||(_0x42b4a4=_0x50214d[_0xde56('0x107')](_0x127d79=>!this[_0xde56('0x2f')]['model'][_0xde56('0x2e')][_0xde56('0x54')](_0x127d79))),_0x42b4a4&&_0x3ae405('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5dd055,'editorRootsAttributes':_0x84b605,'revisionData':_0xd31fb8,'revisionRootsAttributes':_0x25f839}),this[_0xde56('0x2f')]['config'][_0xde56('0xe1')](_0xde56('0xdd'),_0xd31fb8),this['editor'][_0xde56('0xe5')][_0xde56('0xe1')](_0xde56('0x4d'),_0x25f839);}['_addPendingAction'](){if(!this[_0xde56('0x9a')]){const _0x1f285d=this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x6e'));this[_0xde56('0x9a')]=_0x1f285d[_0xde56('0xe6')](_0x1601b7(this[_0xde56('0x2f')][_0xde56('0xdb')],_0xde56('0x42')));}}[_0xde56('0xc6')](){this[_0xde56('0x9a')]&&(this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('PendingActions')['remove'](this[_0xde56('0x9a')]),this[_0xde56('0x9a')]=null);}['_findInsertionIndex'](_0x1254c1){const _0x209958=this['repository'][_0xde56('0xcf')]();_0x209958[_0xde56('0x6d')]();let _0x527f5c=0x0;for(;_0x527f5c<_0x209958[_0xde56('0x13')];){const _0x1d1e53=_0x209958[_0x527f5c];if(_0x1d1e53===this[_0xde56('0x59')]){_0x527f5c++;continue;}if(_0x1d1e53['id']===this[_0xde56('0x87')])break;const _0x17cf03=_0x1254c1[_0xde56('0x92')]-_0x1d1e53[_0xde56('0x92')]||_0x1254c1[_0xde56('0x48')]-_0x1d1e53[_0xde56('0x48')];if(_0x17cf03>0x0)break;if(_0x17cf03<0x0)_0x527f5c++;else{if(!_0x1254c1[_0xde56('0x29')]&&_0x1d1e53[_0xde56('0x29')])break;if(_0x1d1e53[_0xde56('0x29')]||!_0x1254c1[_0xde56('0x29')]){if(_0x1254c1[_0xde56('0x91')]>_0x1d1e53[_0xde56('0x91')])break;_0x527f5c++;}else _0x527f5c++;}}return _0x527f5c;}['setRevisionData'](_0x1b5f02){const _0x1bb1c7=this['repository']['getRevision'](_0x1b5f02['id']);if(_0x1b5f02[_0xde56('0x91')]&&(_0x1b5f02[_0xde56('0x91')]=new Date(_0x1b5f02[_0xde56('0x91')])),_0x1b5f02[_0xde56('0x21')]){const _0x42aeb9=this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x3e'));_0x1b5f02[_0xde56('0xa2')]=_0x1b5f02[_0xde56('0x21')][_0xde56('0xf9')](_0x57d6d9=>_0x42aeb9[_0xde56('0x84')](_0x57d6d9));}_0x1bb1c7[_0xde56('0x6a')](_0x1b5f02,!0x0);}[_0xde56('0x37')]({revision:_0x1bdcc4=null,from:_0x25fe8a=null,to:_0x3a2634=null}){_0x25fe8a=null!==_0x25fe8a?_0x25fe8a:_0x1bdcc4['fromVersion'],_0x3a2634=null!==_0x3a2634?_0x3a2634:_0x1bdcc4[_0xde56('0x92')];const _0x190563=this['_revisionDataBuilder'][_0xde56('0x4f')](_0x25fe8a,_0x3a2634),_0x267fdd={'diffData':_0x190563['diffData'],'authorsIds':_0x190563['authorsIds'],'fromVersion':_0x25fe8a,'toVersion':_0x3a2634};if(!_0x1bdcc4||_0x3a2634!==_0x1bdcc4[_0xde56('0x92')]){const _0x34b4fd=_0x3a2634-0x1,_0x2276dc=this[_0xde56('0x100')][_0xde56('0xdf')][_0xde56('0xf')](_0x34b4fd);_0x267fdd['createdAt']=_0x2276dc&&_0x2276dc[_0xde56('0x91')]||new Date();}if(this['_loadedStateData']&&_0x25fe8a===this['_loadedStateData']['fromVersion'])for(const _0x1e96e5 of this[_0xde56('0x103')][_0xde56('0xa2')])_0x267fdd[_0xde56('0x21')][_0xde56('0x78')](_0x1e96e5['id'])||_0x267fdd['authorsIds'][_0xde56('0xd')](_0x1e96e5['id']);return _0x267fdd;}[_0xde56('0x38')](_0x59fc0f){if(!_0x59fc0f||_0x59fc0f[_0xde56('0x33')])return Promise[_0xde56('0xf4')]();{const _0x4068b0=this[_0xde56('0x2f')]['config']['get'](_0xde56('0x94'));return this[_0xde56('0xb8')][_0xde56('0x15')]({'channelId':_0x4068b0,'revisionId':_0x59fc0f['id']})[_0xde56('0x52')](_0x3495a1=>{_0x59fc0f[_0xde56('0x33')]=_0x3495a1['diffData'];});}}['_bufferUpdate'](_0x5345bd,_0x4bbc30,_0x1e100a){if(this[_0xde56('0xd6')][_0xde56('0x102')](_0x5345bd)){const _0x301b52=this[_0xde56('0xd6')]['get'](_0x5345bd);_0x4bbc30=_0x1e100a?{..._0x301b52,..._0x4bbc30}:{..._0x4bbc30,..._0x301b52};}this['_bufferedUpdates'][_0xde56('0xe1')](_0x5345bd,_0x4bbc30);}[_0xde56('0x86')](_0x1c4fa1){const _0x8b2a4f=this[_0xde56('0x90')][_0xde56('0xcf')]();_0x8b2a4f[_0xde56('0x6d')](),_0x8b2a4f[_0xde56('0x7f')]();const _0x12a7d3=_0x8b2a4f[_0xde56('0x81')](_0x59255a=>_0x59255a[_0xde56('0x92')]<=_0x1c4fa1)[_0xde56('0x92')];return _0x12a7d3<this['_startingVersion']?this[_0xde56('0x45')]:_0x12a7d3;}[_0xde56('0xec')](_0x4c8183){const _0x82a3cf=this['repository'][_0xde56('0x15')](this[_0xde56('0x90')][_0xde56('0x13')]-0x1);if(_0x82a3cf)this[_0xde56('0x87')]=_0x82a3cf['id'];else{const _0x30b81d=!this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xb6')]['find'](_0x3f2294=>this[_0xde56('0x2f')][_0xde56('0x7a')]['hasContent'](_0x3f2294)),_0x3f0dd0=this[_0xde56('0x2f')][_0xde56('0xfd')]['get']('Users')['me']['id'],_0x83be3b=_0x1601b7(this[_0xde56('0x2f')][_0xde56('0xdb')],_0x30b81d?'Empty\x20document':_0xde56('0x1'));this['_makeRevision']({'from':_0x4c8183,'to':_0x4c8183,'id':this[_0xde56('0x87')],'name':_0x83be3b,'creatorId':_0x3f0dd0});}}['_createCurrentRevision'](_0x4c450b){const _0x378722=this[_0xde56('0x100')]['getCurrentRevisionId']();this[_0xde56('0x59')]=this[_0xde56('0x90')][_0xde56('0x15')](_0x378722),this[_0xde56('0x59')]||(this[_0xde56('0x59')]=this[_0xde56('0xc7')]({'from':_0x4c450b,'to':_0x4c450b,'id':_0x378722,'name':'','creatorId':null}));}[_0xde56('0xc7')]({name:_0x1d1f6e,from:_0x4d69e9,to:_0x65ec96,creatorId:_0x3655e9,id:_0x69c760}){const _0x2fc309=this[_0xde56('0x37')]({'from':_0x4d69e9,'to':_0x65ec96});_0x2fc309[_0xde56('0x3f')]=_0x1d1f6e,_0x2fc309[_0xde56('0xd9')]=_0x3655e9,_0x2fc309['id']=_0x69c760;const _0x21d6d7=this[_0xde56('0x71')](_0x2fc309);return this[_0xde56('0xb8')]&&this[_0xde56('0xa3')](_0x2fc309['id'],_0x2fc309,!0x0),_0x21d6d7;}['_setConversion'](){this[_0xde56('0x2f')][_0xde56('0xe8')][_0xde56('0x51')]('dataDowncast')[_0xde56('0x2c')]({'model':_0xde56('0x4c')});}[_0xde56('0xc4')](_0x5509b4){return(_0x5509b4=_0x5509b4[_0xde56('0xb0')](_0x1a2062=>!_0x1a2062[_0xde56('0x3f')]||_0xde56('0xb1')!==_0x1a2062[_0xde56('0x3f')]&&_0xde56('0x60')!==_0x1a2062[_0xde56('0x3f')]))[_0xde56('0xf3')](_0x1400ec=>{_0xde56('0xcc')!=typeof _0x1400ec&&(_0x1400ec['children']=this[_0xde56('0xc4')](_0x1400ec[_0xde56('0xb3')]),_0x1400ec[_0xde56('0x74')]=_0x1400ec[_0xde56('0x74')][_0xde56('0xb0')](_0x20ded8=>!_0x20ded8[0x0][_0xde56('0x109')](_0xde56('0xd0'))));}),_0x5509b4;}}function J(_0x41aa39,_0x22390b){const _0x407e4f=_0x22390b[_0xde56('0x101')]['view'][_0xde56('0x2e')];if(_0xde56('0xcc')==typeof _0x41aa39)return new _0x4ff27b(_0x407e4f,_0x41aa39);{const _0x36e6ee=_0x41aa39[_0xde56('0xb3')]['map'](_0x570130=>J(_0x570130,_0x22390b));return new(B[_0x41aa39[(_0xde56('0xc8'))]]||_0x35bfc4)(_0x407e4f,_0x41aa39[_0xde56('0x3f')],_0x41aa39[_0xde56('0x74')],_0x36e6ee);}}class H{constructor(_0x5e9046){this[_0xde56('0x2f')]=_0x5e9046,this[_0xde56('0x5')]=new Map(),this[_0xde56('0x3a')]=-0x1,this[_0xde56('0x9e')]=-0x1,this[_0xde56('0xe9')]=new Map(),this[_0xde56('0xb2')]=new Map(),this[_0xde56('0x4a')]=new Map(),this[_0xde56('0xad')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0xde56('0x56')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0xde56('0xb')]=new Map(),this[_0xde56('0x27')]=new Map(),this[_0xde56('0x61')]=new Map(),this['_revisionId']=0x1;}[_0xde56('0x3d')](_0x3738cb){this[_0xde56('0xd1')]=_0x3738cb;const _0x50058d=new Map(),_0x18ba21=new Map(),_0x5696a9=this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x2e')][_0xde56('0xb6')][_0xde56('0xf9')](_0xbb2b74=>_0xbb2b74[_0xde56('0x35')]);for(const _0x1db9d4 of _0x5696a9){const _0x2d9d95=this[_0xde56('0x2f')]['model'][_0xde56('0x2e')]['getRoot'](_0x1db9d4),_0x224a40=q(_0x2d9d95);_0x50058d[_0xde56('0xe1')](_0x1db9d4,_0x224a40),_0x18ba21[_0xde56('0xe1')](_0x1db9d4,Object[_0xde56('0x25')](_0x2d9d95[_0xde56('0xb4')]()));}const _0x1ab1ed=Array[_0xde56('0xc0')](this[_0xde56('0x2f')][_0xde56('0x7a')][_0xde56('0x1a')])[_0xde56('0xf9')](_0x4fe6c9=>[_0x4fe6c9['name'],_0x4fe6c9['getRange']()]),_0x5c42b9=this[_0xde56('0xd1')][_0xde56('0xaf')];this['_saveMetaData'](_0x5c42b9,_0x50058d,_0x1ab1ed,_0x18ba21),this[_0xde56('0xb7')]=this[_0xde56('0x105')];const _0x2a938b=new Map(),_0x18bbcb=new Map();for(const _0x5a2fe2 of _0x5696a9){const _0x164f99=G(_0x5a2fe2);_0x2a938b['set'](_0x5a2fe2,_0x164f99),_0x18bbcb[_0xde56('0xe1')](_0x5a2fe2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2a938b,[],_0x18bbcb);}[_0xde56('0x4f')](_0x46a5a6,_0x31e09d){if(this[_0xde56('0x3a')]===_0x46a5a6&&this[_0xde56('0x9e')]<=_0x31e09d)this[_0xde56('0x5')][_0xde56('0x5f')]>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this[_0xde56('0x9e')],_0x31e09d,!0x0);else{if(!this[_0xde56('0x5')][_0xde56('0x102')](_0x46a5a6)){const _0x36d34b=this[_0xde56('0x7')](_0x46a5a6);this['_calculateMetaData'](_0x36d34b,_0x46a5a6,!0x1);}this[_0xde56('0x9f')](_0x46a5a6,_0x31e09d,!0x0);}return this[_0xde56('0x3a')]=_0x46a5a6,this[_0xde56('0x9e')]=_0x31e09d,this[_0xde56('0x44')]();}[_0xde56('0x67')](_0x4fa9d8){this[_0xde56('0x76')](),this[_0xde56('0x3a')]=_0x4fa9d8[_0xde56('0x48')],this[_0xde56('0x9e')]=_0x4fa9d8[_0xde56('0x92')];for(const _0x69a97d in _0x4fa9d8[_0xde56('0x33')]){const _0xc4b5ae=_0x4fa9d8['diffData'][_0x69a97d][_0xde56('0xfc')],_0x4e8950=_0x4bd79b(_0x4fa9d8[_0xde56('0x33')][_0x69a97d]['attributesBefore'])||{},_0x1e2d86=this[_0xde56('0xd5')](_0x4fa9d8[_0xde56('0x33')][_0x69a97d][_0xde56('0x4e')]);_0x1e2d86[_0xde56('0x35')]=_0x69a97d,_0x1e2d86[_0xde56('0xf7')]=!_0xc4b5ae||!_0xc4b5ae[_0xde56('0x3')],_0x1e2d86[_0xde56('0x3')]=()=>_0x1e2d86[_0xde56('0xf7')],this[_0xde56('0xad')]['set'](_0x69a97d,_0x1e2d86),this['_baseRootsAttributes'][_0xde56('0xe1')](_0x69a97d,_0x4e8950),_0xc4b5ae&&this[_0xde56('0x61')][_0xde56('0xe1')](_0x69a97d,_0xc4b5ae);const _0x7d6c84=this[_0xde56('0x14')](_0x1e2d86);this[_0xde56('0x8')][_0xde56('0xe1')](_0x69a97d,_0x7d6c84);for(const [_0xa5c350,_0x43e531]of _0x1e2d86[_0xde56('0x1a')]){if(!_0xa5c350[_0xde56('0x109')](_0xde56('0x104')))continue;const _0x46a947=_0xa5c350[_0xde56('0xbe')](':')[0x2];for(const _0xa0ea25 of _0x43e531[_0xde56('0x32')]({'singleCharacters':!0x0})){const _0x117ae4=this[_0xde56('0x57')](_0xa0ea25),_0x24c550=_0xde56('0x18')==_0xa0ea25[_0xde56('0xc8')]?_0xa0ea25[_0xde56('0x69')][_0xde56('0xa')]['slice'](0x0,-0x1):_0xa0ea25[_0xde56('0x69')][_0xde56('0xa')],_0xe0715e=_0x7d6c84[_0xde56('0x10a')](_0x24c550)[_0xde56('0xce')](_0x117ae4);this['_touched'][_0xde56('0xe1')](_0xe0715e,{'userId':_0x46a947});}}}this[_0xde56('0xb7')]=this[_0xde56('0x105')];const _0x5ffd55=[...Array(this[_0xde56('0x105')])[_0xde56('0x53')]()][_0xde56('0xeb')](0x1)[_0xde56('0xb0')](_0x4cb27d=>!this[_0xde56('0xb')]['has'](_0x4cb27d));let _0x342a58=0x0;const _0x405f24=new Map();for(const _0x3e1494 in _0x4fa9d8['diffData']){const _0x35c971=_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0xfc')],_0x5ea663=_0x4bd79b(_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0x5b')])||{},_0x32fa2a=this[_0xde56('0xd5')](_0x4fa9d8['diffData'][_0x3e1494][_0xde56('0x108')]);_0x32fa2a[_0xde56('0x35')]=_0x3e1494,_0x32fa2a[_0xde56('0xf7')]=!_0x35c971||_0x35c971['isAttached'],_0x32fa2a['isAttached']=()=>_0x32fa2a['_isAttached'],this[_0xde56('0xb2')]['set'](_0x3e1494,_0x32fa2a),this[_0xde56('0x4a')]['set'](_0x3e1494,_0x5ea663);const _0x3999e2=this[_0xde56('0x14')](_0x32fa2a,Number[_0xde56('0xe')]);this['_idsRoots']['set'](_0x3e1494,_0x3999e2),_0x405f24['set'](_0x3e1494,_0x32fa2a[_0xde56('0x3')]()?_0x5ea663:{});for(const [_0x1220cc,_0x4ad81d]of _0x32fa2a['markers']){if(!_0x1220cc[_0xde56('0x109')]('revision:'))continue;const _0x22fcc8=_0x1220cc['split'](':')[0x2];for(const _0x2c8404 of _0x4ad81d[_0xde56('0x32')]({'singleCharacters':!0x0})){const _0x42a194=this[_0xde56('0x57')](_0x2c8404),_0xbb4b19=this[_0xde56('0x105')]++,_0x1988f5='elementEnd'==_0x2c8404[_0xde56('0xc8')]?_0x2c8404[_0xde56('0x69')][_0xde56('0xa')][_0xde56('0xeb')](0x0,-0x1):_0x2c8404['previousPosition'][_0xde56('0xa')];_0x3999e2['getNodeByPath'](_0x1988f5)[_0xde56('0x34')](_0x42a194,_0xbb4b19),this[_0xde56('0xb')][_0xde56('0xe1')](_0xbb4b19,{'userId':_0x22fcc8});}}for(const _0x2cfe8e of this['editor'][_0xde56('0x7a')][_0xde56('0x58')](_0x32fa2a)['getWalker']({'singleCharacters':!0x0})){const _0x2baafb=this[_0xde56('0x57')](_0x2cfe8e),_0x3b35ae='elementEnd'==_0x2cfe8e[_0xde56('0xc8')]?_0x2cfe8e['previousPosition'][_0xde56('0xa')][_0xde56('0xeb')](0x0,-0x1):_0x2cfe8e[_0xde56('0x69')][_0xde56('0xa')],_0x14e613=_0x3999e2[_0xde56('0x10a')](_0x3b35ae);_0x14e613['getAttribute'](_0x2baafb)>0x0||_0x14e613[_0xde56('0x34')](_0x2baafb,_0x5ffd55[_0x342a58++]);}for(const [_0x48588a,_0x4d9d00]of _0x32fa2a[_0xde56('0x1a')])_0x48588a[_0xde56('0x109')]('revision:')||this['_markers'][_0xde56('0xe1')](_0x48588a,_0x4d9d00);}const _0xf6d8b6=G(_0xde56('0x55'));this[_0xde56('0xad')][_0xde56('0xe1')](_0xde56('0x55'),_0xf6d8b6),this[_0xde56('0x8')][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](_0xf6d8b6,0x1));const _0x443fce=G(_0xde56('0x55'));this['_diffRoots'][_0xde56('0xe1')](_0xde56('0x55'),_0x443fce),this['_idsRoots'][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](_0x443fce,0x1));const _0x1bd1cd=Array[_0xde56('0xc0')](this['_diffRoots'])['map'](([_0x55d51e,_0x5859fa])=>[_0x55d51e,q(_0x5859fa)]);this['_saveMetaData'](this['_lastTo'],_0x1bd1cd,this[_0xde56('0xe9')],_0x405f24);}[_0xde56('0xd5')](_0x414d18){const _0x15c4ab=JSON[_0xde56('0xe7')](_0x414d18),_0x2cfd3f=this[_0xde56('0x2f')][_0xde56('0x101')][_0xde56('0x16')][_0xde56('0x2e')],_0x5ec648=new _0x3823ce(_0x2cfd3f,_0x15c4ab['map'](_0x1a26f8=>J(_0x1a26f8,this[_0xde56('0x2f')])));return this[_0xde56('0x2f')]['data'][_0xde56('0xc2')](_0x5ec648);}[_0xde56('0xe4')](_0x41cf01,_0x151323,_0x2183e1,_0x543ee9){const _0x426b96=new Map(_0x151323),_0x53e13e=new Map(_0x4bd79b(_0x543ee9)),_0x1e5df6=new Map();for(const [_0x56a3ec,_0x20540c]of _0x2183e1)_0x1e5df6[_0xde56('0xe1')](_0x56a3ec,{'start':_0x20540c[_0xde56('0x7e')][_0xde56('0x8f')](),'end':_0x20540c[_0xde56('0xf8')][_0xde56('0x8f')](),'rootName':_0x20540c[_0xde56('0xe0')][_0xde56('0x35')]});this[_0xde56('0x5')]['set'](_0x41cf01,{'roots':_0x426b96,'markers':_0x1e5df6,'rootsAttributes':_0x53e13e});}[_0xde56('0xda')](_0x45321e){this[_0xde56('0x5')]['delete'](_0x45321e);}[_0xde56('0x7d')](){this['_reset'](),this[_0xde56('0x3a')]=-0x1,this[_0xde56('0x9e')]=-0x1,this[_0xde56('0x5')]['clear'](),this[_0xde56('0x3d')](this[_0xde56('0xd1')]);}[_0xde56('0x76')](){this[_0xde56('0xb')][_0xde56('0xaa')](),this['_touchedMarkers'][_0xde56('0xaa')](),this['_touchedRoots'][_0xde56('0xaa')](),this[_0xde56('0xb2')][_0xde56('0xaa')](),this[_0xde56('0x4a')]['clear'](),this[_0xde56('0xad')][_0xde56('0xaa')](),this[_0xde56('0x2d')][_0xde56('0xaa')](),this['_idsRoots']['clear'](),this['_baseIdsRoots'][_0xde56('0xaa')](),this[_0xde56('0xe9')][_0xde56('0xaa')](),this[_0xde56('0x105')]=0x1,this[_0xde56('0xb7')]=this[_0xde56('0x105')];}['_makeIdsRoot'](_0x583e4f,_0x1880b0=null){let _0x3b3bc6=null;_0x583e4f['is'](_0xde56('0xd8'))||(_0x3b3bc6=new _0x4332cf(_0x583e4f[_0xde56('0x3f')],{'vid_start':null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++}));const _0x29eadd=[];for(const _0x13a809 of _0x583e4f['getChildren']())if(_0x13a809['is'](_0xde56('0x70'))){_0x29eadd[_0xde56('0xd')](this[_0xde56('0x14')](_0x13a809,_0x1880b0));const _0x216571=_0x29eadd[_0x29eadd[_0xde56('0x13')]-0x1];null!==_0x1880b0&&(_0x1880b0=_0x216571['is'](_0xde56('0x70'),'$text')?_0x216571[_0xde56('0xce')]('vid')+0x1:_0x216571[_0xde56('0xce')](_0xde56('0xc5'))+0x1);}else for(let _0x6487a6=0x0;_0x6487a6<_0x13a809[_0xde56('0xea')];_0x6487a6++)_0x29eadd[_0xde56('0xd')](new _0x4332cf('$text',{'vid':null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++}));if(_0x583e4f['is']('documentFragment')){const _0x42ae6b=G(_0x583e4f[_0xde56('0x35')]);return _0x42ae6b['_insertChild'](0x0,_0x29eadd),_0x42ae6b;}return _0x3b3bc6[_0xde56('0x34')](_0xde56('0xc5'),null===_0x1880b0?this[_0xde56('0x105')]++:_0x1880b0++),_0x3b3bc6[_0xde56('0xf0')](0x0,_0x29eadd),_0x3b3bc6;}[_0xde56('0x9f')](_0x53388e,_0x26c6b8,_0x55961c){this[_0xde56('0x76')]();const {roots:_0x4b0305,markers:_0x14b706,rootsAttributes:_0x3c8f92}=this['_savedMetaData'][_0xde56('0x11')](_0x53388e);this[_0xde56('0xad')]=new Map(_0x4b0305),this[_0xde56('0x2d')]=new Map(_0x4bd79b(_0x3c8f92));for(const [_0x1b5fde,_0x130f0a]of this[_0xde56('0xad')])if(_0xde56('0x55')!==_0x1b5fde&&(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x1b5fde,q(_0x130f0a)),this[_0xde56('0x4a')]=new Map(_0x4bd79b(_0x3c8f92)),_0x55961c)){const _0x5bd3cc=this['_revisionId'];this[_0xde56('0x56')][_0xde56('0xe1')](_0x1b5fde,this[_0xde56('0x14')](_0x130f0a)),this['_baseIdsRoots'][_0xde56('0xe1')](_0x1b5fde,this[_0xde56('0x14')](_0x130f0a,_0x5bd3cc));}this['_startingRevisionId']=this[_0xde56('0x105')],this[_0xde56('0xb2')]['set'](_0xde56('0x55'),q(this[_0xde56('0xad')][_0xde56('0x11')]('$graveyard'))),_0x55961c&&this['_idsRoots'][_0xde56('0xe1')](_0xde56('0x55'),this[_0xde56('0x14')](this[_0xde56('0xad')][_0xde56('0x11')](_0xde56('0x55'))));for(const [_0x295bf7,_0x55dc93]of _0x14b706){const _0x416221=this['_baseRoots'][_0xde56('0x11')](_0x55dc93['rootName']),_0x18984a=this['_diffRoots']['get'](_0x55dc93['rootName']),_0x2066ea=new _0x927a0c(this[_0xde56('0x40')](_0x55dc93[_0xde56('0x7e')],_0x416221),this[_0xde56('0x40')](_0x55dc93[_0xde56('0xf8')],_0x416221)),_0x5ce9f0=this[_0xde56('0x22')](_0x2066ea,_0x18984a);_0x416221[_0xde56('0x1a')]['set'](_0x295bf7,_0x2066ea),this[_0xde56('0xe9')][_0xde56('0xe1')](_0x295bf7,_0x5ce9f0);}this[_0xde56('0x19')](_0x53388e,_0x26c6b8,_0x55961c);}[_0xde56('0x19')](_0x15c830,_0x3089da,_0x5062df){for(const _0x1d3b81 of this[_0xde56('0xd1')][_0xde56('0x12')](_0x15c830,_0x3089da))this[_0xde56('0x3c')](_0x1d3b81,_0x5062df);for(const _0xf698a of this[_0xde56('0xb2')][_0xde56('0xa6')]())_0xf698a[_0xde56('0x1a')][_0xde56('0xaa')]();for(const [_0x226507,_0x1b6c21]of this[_0xde56('0xe9')]){this[_0xde56('0xb2')][_0xde56('0x11')](_0x1b6c21['root'][_0xde56('0x35')])[_0xde56('0x1a')][_0xde56('0xe1')](_0x226507,_0x1b6c21[_0xde56('0x8f')]());}const _0x21b189=new Map(),_0x193cfd=new Map();for(const [_0x5ca712,_0x4d0239]of this[_0xde56('0xb2')])_0x21b189[_0xde56('0xe1')](_0x5ca712,q(_0x4d0239)),_0x193cfd[_0xde56('0xe1')](_0x5ca712,this['_diffRootsAttributes'][_0xde56('0x11')](_0x5ca712));this[_0xde56('0xe4')](_0x3089da,_0x21b189,this[_0xde56('0xe9')],_0x193cfd);}[_0xde56('0x7')](_0x143a95){const _0x267dc6=Array[_0xde56('0xc0')](this[_0xde56('0x5')][_0xde56('0x53')]());_0x267dc6[_0xde56('0x3b')]((_0x55f8ef,_0x4b811f)=>_0x55f8ef-_0x4b811f),_0x267dc6[_0xde56('0x6d')]();for(const _0x3f6401 of _0x267dc6)if(_0x3f6401<_0x143a95)return _0x3f6401;return Number[_0xde56('0xe')];}['_copyMarkers'](_0xfa35dd,_0x1189c8){const _0x450eca=Array['from'](_0x1189c8[_0xde56('0x1a')])[_0xde56('0xf9')](([_0x577c94,_0x43837a])=>[_0x577c94,this[_0xde56('0x22')](_0x43837a,_0xfa35dd)]);_0xfa35dd[_0xde56('0x1a')]=new Map(_0x450eca);}[_0xde56('0xcb')](_0x1dd685){for(const _0x487b9a of this[_0xde56('0xe9')][_0xde56('0xa6')]()){const _0x276591=_0x487b9a[_0xde56('0x28')](_0x1dd685),_0x255a99=_0x927a0c[_0xde56('0xfb')](_0x276591);_0x487b9a[_0xde56('0x7e')]=_0x255a99[_0xde56('0x7e')],_0x487b9a[_0xde56('0xf8')]=_0x255a99[_0xde56('0xf8')];}}[_0xde56('0x3c')](_0x22deef,_0x3e1826){if(_0xde56('0x5c')==_0x22deef[_0xde56('0xc8')]||_0xde56('0x77')==_0x22deef['type'])return void this['_handleRootOperation'](_0x22deef,_0x3e1826);if(_0xde56('0x98')==_0x22deef[_0xde56('0xc8')]){const _0x5ab315=_0x22deef[_0xde56('0x99')][_0xde56('0xe0')][_0xde56('0x35')];this[_0xde56('0xb2')][_0xde56('0x102')](_0x5ab315)||(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x5ab315,G(_0x5ab315,!0x0)),this['_diffRootsAttributes']['set'](_0x5ab315,{}),_0x3e1826&&this[_0xde56('0x56')][_0xde56('0xe1')](_0x5ab315,G(_0x5ab315,!0x0)));}else{if(_0xde56('0xd7')==_0x22deef[_0xde56('0xc8')]||'removeRootAttribute'==_0x22deef[_0xde56('0xc8')]||'changeRootAttribute'==_0x22deef[_0xde56('0xc8')])return void this[_0xde56('0x10')](_0x22deef);}const _0x52e054=this[_0xde56('0xa9')](_0x22deef,this[_0xde56('0xb2')]);if('marker'!==_0x22deef[_0xde56('0xc8')]&&(_0x52e054['_execute'](),this[_0xde56('0xcb')](_0x52e054)),_0x3e1826)switch(_0x52e054['type']){case _0xde56('0x98'):this[_0xde56('0xc3')](_0x22deef);break;case _0xde56('0xde'):case _0xde56('0x106'):case _0xde56('0x39'):this[_0xde56('0x17')](_0x22deef);break;case _0xde56('0xf2'):this[_0xde56('0x63')](_0x22deef);break;case'split':this[_0xde56('0x4b')](_0x22deef);break;case _0xde56('0xa0'):this[_0xde56('0xbf')](_0x22deef);}}[_0xde56('0xa9')](_0x4616d3,_0x49705f){const _0x363565=_0x4616d3[_0xde56('0x8f')]();return _0x363565[_0xde56('0x47')]=_0x4616d3['_authorId'],this[_0xde56('0x2')](_0x363565,_0x49705f),_0x363565;}[_0xde56('0xed')](_0x1cdce2){return _0x1cdce2['map'](_0x4c90ea=>{const _0x4a6851=this[_0xde56('0x57')](_0x4c90ea);return Number(_0x4c90ea[_0xde56('0x8e')][_0xde56('0xce')](_0x4a6851));});}['_generateTape'](_0x28c00d,_0xa95ac2){if(_0x28c00d['is']('element','$text'))_0xa95ac2['push']({'item':_0x28c00d,'type':_0xde56('0x64')});else{_0x28c00d['is']('element')&&_0xa95ac2[_0xde56('0xd')]({'item':_0x28c00d,'type':_0xde56('0x43')});for(const _0x3399b0 of _0x28c00d[_0xde56('0xef')]())this[_0xde56('0x93')](_0x3399b0,_0xa95ac2);_0x28c00d['is']('element')&&_0xa95ac2['push']({'item':_0x28c00d,'type':'elementEnd'});}return _0xa95ac2;}['_getState'](){const _0x3f7909=new Map(this['_touched']),_0xecf87f=new Map(_0x3f7909),_0xd074f2=new Map(),_0x410ceb={'insertions':{},'deletions':{}},_0x222c32={'insertions':{},'deletions':{}},_0x4734c6=new Map(),_0x13c985=new Set([...this[_0xde56('0xad')][_0xde56('0x53')](),...this['_diffRoots'][_0xde56('0x53')]()]);_0x13c985[_0xde56('0xba')](_0xde56('0x55'));for(const _0x2939a8 of _0x13c985){const _0x2fd0f4=this[_0xde56('0xb2')][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1),_0x567d83=this['_baseRoots'][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1);_0x2fd0f4[_0xde56('0x3')]()||_0x567d83[_0xde56('0x3')]()?(_0x410ceb[_0xde56('0x108')][_0x2939a8]=q(_0x2fd0f4),_0x410ceb[_0xde56('0x4e')][_0x2939a8]=q(_0x567d83),this[_0xde56('0x79')](_0x410ceb[_0xde56('0x4e')][_0x2939a8],_0x567d83),this['_copyMarkers'](_0x410ceb[_0xde56('0x108')][_0x2939a8],_0x2fd0f4),_0x222c32[_0xde56('0x108')][_0x2939a8]=this[_0xde56('0x93')](this['_idsRoots'][_0xde56('0x11')](_0x2939a8),[]),_0x222c32['deletions'][_0x2939a8]=this[_0xde56('0x93')](this[_0xde56('0x8')][_0xde56('0x11')](_0x2939a8)||G(_0x2939a8,!0x1),[])):_0x13c985[_0xde56('0xba')](_0x2939a8);}for(const _0x1f6de4 of _0x13c985){const _0x183e15=_0x222c32['insertions'][_0x1f6de4];for(const _0x1c9812 of _0x183e15){const _0x23819f=this[_0xde56('0x57')](_0x1c9812),_0x125721=_0x1c9812['item']['getAttribute'](_0x23819f);_0xecf87f[_0xde56('0xba')](_0x125721),_0x125721>=this[_0xde56('0xb7')]&&_0xd074f2[_0xde56('0xe1')](_0x125721,_0x3f7909[_0xde56('0x11')](_0x125721));}}for(const _0x213603 of _0x13c985){const _0x38c5fa=_0x222c32[_0xde56('0x108')][_0x213603],_0x9dd4=this[_0xde56('0xed')](_0x222c32[_0xde56('0x4e')][_0x213603]);let _0x2411a9=0x0;for(const _0x5c48b6 of _0x38c5fa){const _0x16c517=this[_0xde56('0x57')](_0x5c48b6),_0x318b8e=_0x5c48b6[_0xde56('0x8e')]['getAttribute'](_0x16c517);if(!_0xd074f2['has'](_0x318b8e)&&!_0x4734c6['has'](_0x318b8e)){if(_0xecf87f[_0xde56('0x102')](_0x318b8e))_0x2411a9++;else{if(_0x318b8e!=_0x9dd4[_0x2411a9]){const _0x3d3a68=_0x3f7909[_0xde56('0x11')](_0x318b8e)||_0x3f7909[_0xde56('0x11')](_0x9dd4[_0x2411a9]);for(;_0x318b8e!=_0x9dd4[_0x2411a9];)_0xecf87f['has'](_0x9dd4[_0x2411a9])||(_0x4734c6[_0xde56('0xe1')](_0x9dd4[_0x2411a9],_0x3d3a68),_0x3f7909[_0xde56('0xe1')](_0x9dd4[_0x2411a9],_0x3d3a68)),_0x2411a9++;}_0x2411a9++;}}}}for(const _0x166f0e of _0x13c985){const _0x2df668=_0x222c32['insertions'][_0x166f0e];for(const _0x4a14cf of _0x2df668){const _0xed88f9=this[_0xde56('0x57')](_0x4a14cf),_0x5e4e05=_0x4a14cf[_0xde56('0x8e')][_0xde56('0xce')](_0xed88f9);if(_0x4734c6[_0xde56('0x102')](_0x5e4e05)){const _0x19f6b0=_0x4734c6[_0xde56('0x11')](_0x5e4e05);_0xecf87f[_0xde56('0x102')](_0x5e4e05)||_0xecf87f[_0xde56('0xe1')](_0x5e4e05,{..._0x19f6b0}),_0xd074f2[_0xde56('0xe1')](_0x5e4e05,{..._0x19f6b0});}}}for(const _0x311f6d of _0xecf87f[_0xde56('0x53')]())_0x311f6d>=this[_0xde56('0xb7')]&&_0xecf87f['delete'](_0x311f6d);const _0x466ecb=new Map();for(const _0x5bef60 of _0x13c985){let _0x2abb49=_0x222c32[_0xde56('0x108')][_0x5bef60];for(const _0x38c191 of _0x2abb49)if(_0x38c191['item']['is'](_0xde56('0x70'),_0xde56('0xf1'))){const _0x475302=this['_getVidAttributeName'](_0x38c191),_0x1cdbf8=_0x38c191[_0xde56('0x8e')]['getAttribute'](_0x475302);if(_0xd074f2[_0xde56('0x102')](_0x1cdbf8)){const _0x1c71f3=_0x38c191[_0xde56('0x8e')][_0xde56('0x31')][_0xde56('0x31')][_0xde56('0xce')](_0xde56('0xae')),_0x122db3=_0x466ecb[_0xde56('0x11')](_0x1c71f3)||new Set();_0x122db3[_0xde56('0xe6')](_0xd074f2['get'](_0x1cdbf8)['userId']),_0x466ecb[_0xde56('0xe1')](_0x1c71f3,_0x122db3);}}_0x2abb49=_0x222c32[_0xde56('0x4e')][_0x5bef60];for(const _0x54895f of _0x2abb49)if(_0x54895f[_0xde56('0x8e')]['is'](_0xde56('0x70'),'tableCell')){const _0x145402=this['_getVidAttributeName'](_0x54895f),_0x921039=_0x54895f[_0xde56('0x8e')]['getAttribute'](_0x145402);if(_0xecf87f[_0xde56('0x102')](_0x921039)){const _0x4507e8=_0x54895f['item'][_0xde56('0x31')][_0xde56('0x31')][_0xde56('0xce')](_0xde56('0xae')),_0x30a574=_0x466ecb[_0xde56('0x11')](_0x4507e8)||new Set();_0x30a574['add'](_0xecf87f[_0xde56('0x11')](_0x921039)[_0xde56('0xa5')]),_0x466ecb[_0xde56('0xe1')](_0x4507e8,_0x30a574);}}for(const _0x8508b2 of _0x466ecb['keys']())(_0xd074f2[_0xde56('0x102')](_0x8508b2)||_0xecf87f['has'](_0x8508b2))&&_0x466ecb[_0xde56('0xba')](_0x8508b2);}for(const _0x3bdc55 of _0x13c985){const _0x2a5c7f=_0x222c32[_0xde56('0x108')][_0x3bdc55];let _0x4f729f=null,_0x3cf3a6=null;for(const _0x3a704e of _0x2a5c7f){const _0x44ff89=this[_0xde56('0x57')](_0x3a704e),_0x103036=_0x3a704e[_0xde56('0x8e')][_0xde56('0xce')](_0x44ff89),_0x57cda7=_0x466ecb['get'](_0x103036);_0x57cda7&&_0xde56('0x43')==_0x3a704e[_0xde56('0xc8')]&&(_0x4f729f=Array[_0xde56('0xc0')](_0x57cda7)[0x0],_0x3cf3a6=_0x3a704e['item']['getAttribute'](_0xde56('0xc5'))),_0x4f729f&&(_0xecf87f[_0xde56('0xe1')](_0x103036,{'userId':_0x4f729f}),_0xd074f2['set'](_0x103036,{'userId':_0x4f729f})),_0x103036==_0x3cf3a6&&(_0x4f729f=null,_0x3cf3a6=null);}}const _0x20cae1={},_0x292893=new Set();for(const _0x55cf97 of _0x13c985){const _0x11e7a7=_0x410ceb[_0xde56('0x4e')][_0x55cf97],_0x224d92=_0x410ceb['insertions'][_0x55cf97];for(const {userId:_0x4874c8}of this[_0xde56('0x27')][_0xde56('0xa6')]())null!==_0x4874c8&&_0x292893['add'](_0x4874c8);for(const {userId:_0x2a5e52}of this[_0xde56('0x61')][_0xde56('0xa6')]())null!==_0x2a5e52&&_0x292893['add'](_0x2a5e52);this['_markChanges'](_0x224d92,_0x222c32[_0xde56('0x108')][_0x55cf97],_0xd074f2,_0xde56('0xc9'),_0x292893),this['_markChanges'](_0x11e7a7,_0x222c32[_0xde56('0x4e')][_0x55cf97],_0xecf87f,_0xde56('0x65'),_0x292893),_0x20cae1[_0x55cf97]={'insertions':this[_0xde56('0x9c')](_0x224d92),'deletions':this[_0xde56('0x9c')](_0x11e7a7),'attachChange':this[_0xde56('0x61')]['get'](_0x55cf97)||null,'attributesBefore':_0x4bd79b(this[_0xde56('0x2d')][_0xde56('0x11')](_0x55cf97))||{},'attributesAfter':_0x4bd79b(this[_0xde56('0x4a')][_0xde56('0x11')](_0x55cf97))};}return{'diffData':_0x20cae1,'authorsIds':Array['from'](_0x292893)};}[_0xde56('0x20')](_0x1d8660){for(const [,_0x55d4de]of _0x1d8660[_0xde56('0x1a')]){const _0x26ee75=_0x55d4de[_0xde56('0x7e')][_0xde56('0xd2')]()[_0xde56('0xb0')](_0x50ff64=>_0xde56('0xf1')==_0x50ff64[_0xde56('0x3f')]);for(const _0xe9f03f of _0x26ee75)0x1==_0xe9f03f[_0xde56('0x24')]&&_0xe9f03f[_0xde56('0xee')](0x0)['is']('element','paragraph')&&_0xe9f03f[_0xde56('0xee')](0x0)[_0xde56('0x34')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xcf0c7c){this['_processRootBeforeSave'](_0xcf0c7c);const _0x3d5db6=this[_0xde56('0x2f')][_0xde56('0xd4')][_0xde56('0x8a')](_0xcf0c7c,{}),_0x167afa=Array[_0xde56('0xc0')](_0x3d5db6[_0xde56('0xef')]())[_0xde56('0xf9')](_0x42cf86=>this['_getViewJson'](_0x42cf86));return JSON[_0xde56('0x72')](_0x167afa);}[_0xde56('0xcd')](_0x31ef95){if(_0x31ef95['is']('$text'))return _0x31ef95[_0xde56('0xd4')];{const _0x2869c6=_0x31ef95;return{'type':Object['keys'](B)[_0xde56('0x81')](_0x10538b=>_0x31ef95 instanceof B[_0x10538b]),'name':_0x2869c6[_0xde56('0x3f')],'attributes':Array[_0xde56('0xc0')](_0x2869c6[_0xde56('0xb4')]()),'children':Array[_0xde56('0xc0')](_0x2869c6[_0xde56('0xef')]())['map'](_0x4e7903=>this[_0xde56('0xcd')](_0x4e7903))};}}['_markChanges'](_0x4d3b2b,_0x2d0ec7,_0x3041ea,_0xbf0149,_0x56f2be){let _0x3ca54a=null,_0x10007c=null,_0x54a6fc=0x0;const _0x450797=this[_0xde56('0x2f')][_0xde56('0x7a')];for(let _0x41c436=0x0;_0x41c436<_0x2d0ec7['length'];_0x41c436++){const _0x3b21ed=this['_getVidAttributeName'](_0x2d0ec7[_0x41c436]),_0x1854e1=_0x2d0ec7[_0x41c436][_0xde56('0x8e')][_0xde56('0xce')](_0x3b21ed),_0x40e85c=_0x3041ea[_0xde56('0x11')](_0x1854e1),_0x5d61a5=_0x41c436==_0x2d0ec7[_0xde56('0x13')]-0x1;(!_0x3ca54a&&_0x40e85c&&(_0x3ca54a=_0x40e85c,_0x10007c=_0x2d0ec7[_0x41c436]),_0x3ca54a&&(!_0x40e85c||_0x40e85c['userId']!=_0x3ca54a[_0xde56('0xa5')]))&&(_0xbbfd94(_0x40e85c,L(_0x10007c,_0x4d3b2b,_0x450797),L(_0x2d0ec7[_0x41c436],_0x4d3b2b,_0x450797)),_0x3ca54a=_0x40e85c||null,_0x10007c=_0x40e85c?_0x2d0ec7[_0x41c436]:null),_0x3ca54a&&_0x5d61a5&&_0xbbfd94(_0x40e85c,L(_0x10007c,_0x4d3b2b,_0x450797),W(_0x2d0ec7[_0x41c436],_0x4d3b2b,_0x450797));}function _0xbbfd94(_0x3a8c96,_0x254c08,_0x20e56f){const _0x10ef6e=_0x3ca54a[_0xde56('0xa5')],_0x449232='revision:'+_0xbf0149+':'+_0x10ef6e+':'+_0x54a6fc++,_0x30bfbe=_0x450797['createRange'](_0x254c08,_0x20e56f);_0x4d3b2b[_0xde56('0x1a')][_0xde56('0xe1')](_0x449232,_0x30bfbe),null!==_0x10ef6e&&_0x56f2be['add'](_0x10ef6e);}}[_0xde56('0x57')](_0x1828f1){switch(_0x1828f1['type']){case'elementStart':return _0xde56('0xae');case _0xde56('0x18'):return'vid_end';default:return _0xde56('0x66');}}['_fixOperation'](_0x5acab6,_0x51f5f1){_0x5acab6[_0xde56('0x50')]=null;for(const _0x1321a8 in _0x5acab6){const _0x1b6d63=_0x5acab6[_0x1321a8];if(_0x1b6d63 instanceof _0x4604a3){const _0x1e99c9=_0x51f5f1['get'](_0x1b6d63[_0xde56('0xe0')]['rootName']);_0x5acab6[_0x1321a8]=this[_0xde56('0x40')](_0x1b6d63,_0x1e99c9);}if(_0x1b6d63 instanceof _0x927a0c){const _0x1882c5=_0x51f5f1['get'](_0x1b6d63[_0xde56('0xe0')][_0xde56('0x35')]);_0x5acab6[_0x1321a8]=this[_0xde56('0x22')](_0x1b6d63,_0x1882c5);}'root'===_0x1321a8&&(_0x5acab6[_0xde56('0xe0')]=_0x51f5f1[_0xde56('0x11')](_0x5acab6['root'][_0xde56('0x35')]));}}['_fixRange'](_0x14a3bc,_0x2d84d7){return this[_0xde56('0x2f')][_0xde56('0x7a')]['createRange'](this[_0xde56('0x40')](_0x14a3bc[_0xde56('0x7e')],_0x2d84d7),this[_0xde56('0x40')](_0x14a3bc[_0xde56('0xf8')],_0x2d84d7));}[_0xde56('0x40')](_0x5bcdf7,_0x51650b){return this[_0xde56('0x2f')][_0xde56('0x7a')]['createPositionFromPath'](_0x51650b,_0x5bcdf7[_0xde56('0xa')],_0x5bcdf7[_0xde56('0x89')]);}[_0xde56('0xc3')](_0x452033){const _0x1e7277=this[_0xde56('0x56')][_0xde56('0x11')](_0x452033[_0xde56('0x99')][_0xde56('0xe0')][_0xde56('0x35')]),_0x57c40f=this['_fixPosition'](_0x452033['position'],_0x1e7277),_0x19f247=null===_0x452033[_0xde56('0x47')]?null:_0x452033[_0xde56('0x47')]||this['editor'][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x41c91e=_0x57c40f['parent'],_0x58671b=this['_revisionId'],_0x57b3f3=[];for(const _0x1571d0 of _0x452033['nodes'])if(_0x1571d0['is'](_0xde56('0x70')))_0x57b3f3[_0xde56('0xd')](this[_0xde56('0x14')](_0x1571d0));else for(let _0x1549d4=0x0;_0x1549d4<_0x1571d0[_0xde56('0xea')];_0x1549d4++)_0x57b3f3[_0xde56('0xd')](new _0x4332cf(_0xde56('0x6f'),{'vid':this[_0xde56('0x105')]++}));const _0x3e28e1=this['_revisionId'];for(let _0x312815=_0x58671b;_0x312815<_0x3e28e1;_0x312815++)this[_0xde56('0xb')][_0xde56('0xe1')](_0x312815,{'userId':_0x19f247});_0x41c91e[_0xde56('0xf0')](_0x57c40f[_0xde56('0xdc')],_0x57b3f3);}[_0xde56('0x17')](_0x170838){(_0x170838=this[_0xde56('0xa9')](_0x170838,this[_0xde56('0x56')]))['_execute']();const _0x22dd3b=null===_0x170838[_0xde56('0x47')]?null:_0x170838[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['me']['id'],_0x536e78=_0x170838[_0xde56('0x9b')](),_0x1822bd=_0x536e78[_0xde56('0x31')],_0x547119=_0x536e78['offset'];!function _0x5dd79d(_0x593346,_0x33e599,_0x53bba4,_0x4bc79e){for(let _0x5e7446=_0x53bba4;_0x5e7446<_0x4bc79e;_0x5e7446++){const _0x4a9585=_0x33e599[_0xde56('0xee')](_0x5e7446);_0x4a9585['is']('element',_0xde56('0x6f'))?_0x593346['set'](_0x4a9585['getAttribute'](_0xde56('0x66')),{'userId':_0x22dd3b}):(_0x593346[_0xde56('0xe1')](_0x4a9585[_0xde56('0xce')](_0xde56('0xae')),{'userId':_0x22dd3b}),_0x5dd79d(_0x593346,_0x4a9585,0x0,_0x4a9585['childCount']),_0x593346[_0xde56('0xe1')](_0x4a9585[_0xde56('0xce')](_0xde56('0xc5')),{'userId':_0x22dd3b}));}}(this[_0xde56('0xb')],_0x1822bd,_0x547119,_0x547119+_0x170838[_0xde56('0x95')]);}[_0xde56('0x63')](_0x5e4f98){const _0x4945b1=null===(_0x5e4f98=this['_cloneOperation'](_0x5e4f98,this[_0xde56('0x56')]))[_0xde56('0x47')]?null:_0x5e4f98[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')](_0xde56('0x3e'))['me']['id'],_0x693e50=_0x5e4f98[_0xde56('0x97')][_0xde56('0x31')],_0x247c5a=_0x5e4f98[_0xde56('0x62')][_0xde56('0x31')],_0x5cff64=_0x693e50['getAttribute'](_0xde56('0xc5')),_0x58772d=_0x247c5a['getAttribute'](_0xde56('0xae'));_0x693e50[_0xde56('0x34')](_0xde56('0xc5'),_0x247c5a[_0xde56('0xce')](_0xde56('0xc5'))),_0x247c5a['_setAttribute'](_0xde56('0xc5'),_0x5cff64),this[_0xde56('0xb')][_0xde56('0xe1')](_0x58772d,{'userId':_0x4945b1}),this[_0xde56('0xb')][_0xde56('0xe1')](_0x5cff64,{'userId':_0x4945b1}),_0x5e4f98[_0xde56('0x80')]();}[_0xde56('0x4b')](_0x58f249){const _0x55172f=null===(_0x58f249=this[_0xde56('0xa9')](_0x58f249,this['_idsRoots']))[_0xde56('0x47')]?null:_0x58f249[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x5cab59=_0x58f249['graveyardPosition'],_0x43d349=_0x58f249[_0xde56('0xb5')][_0xde56('0x31')];_0x58f249[_0xde56('0x80')]();const _0x374bd7=_0x43d349['getAttribute']('vid_end'),_0x596309=_0x58f249[_0xde56('0xfe')][_0xde56('0x9')];if(_0x5cab59){const _0x167162=_0x596309[_0xde56('0xce')](_0xde56('0xc5')),_0x180666=_0x43d349[_0xde56('0xce')](_0xde56('0xc5'));_0x43d349[_0xde56('0x34')]('vid_end',_0x167162),_0x596309[_0xde56('0x34')](_0xde56('0xc5'),_0x180666),this[_0xde56('0xb')][_0xde56('0xe1')](_0x43d349[_0xde56('0xce')](_0xde56('0xc5')),{'userId':_0x55172f}),this['_touched'][_0xde56('0xe1')](_0x596309[_0xde56('0xce')](_0xde56('0xae')),{'userId':_0x55172f});}else{const _0x400ad9=this[_0xde56('0x105')]++,_0x225f6e=this[_0xde56('0x105')]++;_0x43d349[_0xde56('0x34')](_0xde56('0xc5'),_0x400ad9),_0x596309[_0xde56('0x34')](_0xde56('0xae'),_0x225f6e),_0x596309[_0xde56('0x34')]('vid_end',_0x374bd7),this['_touched'][_0xde56('0xe1')](_0x400ad9,{'userId':_0x55172f}),this['_touched'][_0xde56('0xe1')](_0x225f6e,{'userId':_0x55172f});}}[_0xde56('0xbf')](_0x39de99){if(!_0x39de99['affectsData'])return;const _0xc33c3=(_0x39de99=this[_0xde56('0xa9')](_0x39de99,this[_0xde56('0xb2')]))['oldRange']?_0x39de99[_0xde56('0xf6')][_0xde56('0xe0')]:null,_0xbe8aa4=_0x39de99[_0xde56('0x4')]?_0x39de99[_0xde56('0x4')][_0xde56('0xe0')]:null;_0xc33c3&&this[_0xde56('0xe9')][_0xde56('0xba')](_0x39de99[_0xde56('0x3f')]),_0xbe8aa4&&this[_0xde56('0xe9')][_0xde56('0xe1')](_0x39de99[_0xde56('0x3f')],_0x39de99['newRange']['clone']());const _0x35f1b6=null===_0x39de99[_0xde56('0x47')]?null:_0x39de99[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')][_0xde56('0x11')]('Users')['me']['id'],_0x2a2d33=_0x39de99['name'];if(!this[_0xde56('0x27')][_0xde56('0x102')](_0x2a2d33))return void this['_touchedMarkers'][_0xde56('0xe1')](_0x2a2d33,{'range':_0x39de99[_0xde56('0xf6')],'userId':_0x35f1b6});const _0x598b1a=this[_0xde56('0x27')][_0xde56('0x11')](_0x2a2d33),_0x55f041=_0x598b1a[_0xde56('0xfa')],_0x37a3a7=_0x39de99[_0xde56('0x4')];null==_0x55f041&&null==_0x37a3a7||_0x55f041&&_0x37a3a7&&_0x55f041[_0xde56('0x5e')](_0x37a3a7)?this[_0xde56('0x27')][_0xde56('0xba')](_0x39de99[_0xde56('0x3f')]):_0x598b1a[_0xde56('0xa5')]=_0x35f1b6;}[_0xde56('0xe2')](_0x55b490,_0x439961){this[_0xde56('0xb2')][_0xde56('0x102')](_0x55b490['rootName'])?this['_diffRoots'][_0xde56('0x11')](_0x55b490[_0xde56('0x35')])[_0xde56('0xf7')]=_0x55b490['isAdd']:(this[_0xde56('0xb2')][_0xde56('0xe1')](_0x55b490[_0xde56('0x35')],G(_0x55b490[_0xde56('0x35')],!0x0)),this['_diffRootsAttributes']['set'](_0x55b490[_0xde56('0x35')],{}),_0x439961&&this[_0xde56('0x56')][_0xde56('0xe1')](_0x55b490['rootName'],G(_0x55b490[_0xde56('0x35')],!0x0)));const _0x2a688e=null===_0x55b490[_0xde56('0x47')]?null:_0x55b490[_0xde56('0x47')]||this[_0xde56('0x2f')][_0xde56('0xfd')]['get'](_0xde56('0x3e'))['me']['id'],_0x22669d=this[_0xde56('0x61')][_0xde56('0x11')](_0x55b490[_0xde56('0x35')]);_0x22669d&&_0x22669d[_0xde56('0xa5')]===_0x2a688e?this['_touchedRoots'][_0xde56('0xba')](_0x55b490[_0xde56('0x35')]):this[_0xde56('0x61')][_0xde56('0xe1')](_0x55b490['rootName'],{'userId':_0x2a688e,'isAttached':_0x55b490[_0xde56('0x8b')]});}[_0xde56('0x10')](_0x1879f3){const _0x265dd0=this[_0xde56('0x4a')][_0xde56('0x11')](_0x1879f3[_0xde56('0xe0')]['rootName']);null===_0x1879f3[_0xde56('0xc1')]?delete _0x265dd0[_0x1879f3[_0xde56('0x1f')]]:_0x265dd0[_0x1879f3[_0xde56('0x1f')]]=_0x1879f3['newValue'];}}function q(_0x2df869){const _0x50eda9=G(_0x2df869[_0xde56('0x35')],_0x2df869[_0xde56('0x3')]());for(const _0x42d016 of _0x2df869[_0xde56('0xef')]()){const _0xa2bb5=_0x42d016[_0xde56('0x9d')](!0x0);_0x50eda9['_appendChild'](_0xa2bb5);}return _0x50eda9;}function G(_0x1785db,_0x228530=!0x0){const _0x3c9d51=new _0x5ac983();return _0x3c9d51[_0xde56('0x35')]=_0x1785db,_0x3c9d51[_0xde56('0xf7')]=_0x228530,_0x3c9d51[_0xde56('0x3')]=()=>_0x3c9d51['_isAttached'],_0x3c9d51;}function L(_0x23d44b,_0x1e60bf,_0x47890f){const _0x57526d=_0xde56('0x18')==_0x23d44b[_0xde56('0xc8')]?_0x47890f[_0xde56('0x7b')](_0x23d44b['item'],_0xde56('0xf8')):_0x47890f[_0xde56('0x5d')](_0x23d44b[_0xde56('0x8e')]);return _0x47890f[_0xde56('0x2a')](_0x1e60bf,_0x57526d[_0xde56('0xa')],_0x57526d[_0xde56('0x89')]);}function W(_0x11c4dd,_0x2c4f9e,_0x472779){const _0x3c6bc8=_0xde56('0x43')==_0x11c4dd[_0xde56('0xc8')]?_0x472779[_0xde56('0x7b')](_0x11c4dd[_0xde56('0x8e')],0x0):_0x472779[_0xde56('0xb9')](_0x11c4dd[_0xde56('0x8e')]);return _0x472779['createPositionFromPath'](_0x2c4f9e,_0x3c6bc8[_0xde56('0xa')],_0x3c6bc8[_0xde56('0x89')]);}
23
+ const _0x2f83=['oldRange','_setAttribute','afterInit','_loadState','_touched','size','isEqual','Empty\x20document','revision-start','getNodeByPath','getTime','revision','_loadRevisionData','stickiness','RevisionsRepository','tableCell','editor','createPositionBefore','config','add','reverse','nodeAfter','forEach','paragraph','_clone','_insertChild','_handleMergeOperation','_copyMarkers','_revisionDataBuilder','startsWith','set','RevisionTracker','_pendingAction','getAttributes','_bufferedUpdates','marker','revision:','path','diffData','end','delete','trim','getChild','from','buildRevisionData','for','_lastFrom','move','getRange','getAttribute','_generateTape','rootName','element','clear','update','_fixRange','createRevision','getMovedRangeStart','_getFromVersion','attachChange','_calculateMetaData','previousPosition','createdAt','name','view','attributesBefore','_handleOperation','_baseRootsAttributes','currentRevision','creator','addRoot','_savedMetaData','key','position','isReady','getUser','requires','source','remove','toData','_bufferUpdate','_createCurrentRevision','addRevision','vid','loadState','creatorId','dataDowncast','_removeMetaData','_makeRevision','insertionPosition','marked','_setConversion','sendBufferedUpdates','childCount','item','_removeRevisionMarkers','isAttached','createPositionAt','getRevision','PendingActions','_isPendingUpdate','createPositionFromPath','_handleMarkerOperation','string','_fixPosition','_idsRoots','_isInit','authorsIds','_getState','addRootAttribute','_markChanges','clone','getAncestors','$graveyard','markers','keepParagraph','sort','getLatestVersion','howMany','find','length','saveRevision','sourcePosition','define','plugins','_revisionId','root','fromVersion','editor-initial-data-replaced-with-revision-data','_appendChild','Users','deletions','_diffRootsAttributes','_handleInsertOperation','range','push','children','_startingVersion','initial','version','getRootNames','offsetSize','getOperations','newRange','_createInitialRevision','history','conversion','documentFragment','_touchedRoots','elementEnd','_handleMoveOperation','bind','type','getRevisions','_replaceEditorDataWithRevisionData','_processRootBeforeSave','_continueCurrentRevision','_getPreviousFrom','has','_applyOperations','RealTimeCollaborationClient','getChildren','fromEntries','values','$text','setSource','_startingRevisionId','userId','vid_start','_cloneOperation','_update','parent','filter','editing','toView','newValue','data-revision-','_fixOperation','_findInsertionIndex','pluginName','getTransformedByOperation','rootsAttributes','_getVidAttributeName','_getBaseVids','getRevisionRootsAttributes','_prepareViewToSave','processor','_operations','getRoot','_reset','_source','shift','collaboration.channelId','insert','data','_makeModelFromViewString','insertions','splitPosition','attributesAfter','markerToData','_lastTo','toModel','baseVersion','_saveMetaData','_getViewJson','_handleRootAttributeOperation','_touchedMarkers','split','parse','_diffRoots','getCurrentRevisionId','map','_isAttached','getData','targetPosition','_baseIdsRoots','affectsData','adapter','createPositionAfter','_initialRevisionId','deletion','dataToMarker','vid_end','upcast','_markers','_handleSplitOperation','updateRevisions','authors','isEnabled','setRevisionData','elementStart','_baseRoots','model','init','insertion','merge','toVersion','getRevisionDocumentData','revisionHistory.resumeUnsavedRevision','offset','some','_handleRootOperation','useFillerType','document','getOperation','_transformMarkers','get','then','isAdd','_makeIdsRoot','keys','_addPendingAction','NEGATIVE_INFINITY','_removePendingAction','start','repository','reinsert','locale','attributes','initialData','max','slice','addRevisionData','getWalker','_loadedStateData','_authorId','detachRoot'];(function(_0x1e94aa,_0x2f833f){const _0x1d1c80=function(_0x400cc7){while(--_0x400cc7){_0x1e94aa['push'](_0x1e94aa['shift']());}};_0x1d1c80(++_0x2f833f);}(_0x2f83,0xe4));const _0x1d1c=function(_0x1e94aa,_0x2f833f){_0x1e94aa=_0x1e94aa-0x0;let _0x1d1c80=_0x2f83[_0x1e94aa];return _0x1d1c80;};import{Users as _0x51942c}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x54917c,PendingActions as _0x1ddd54}from'ckeditor5/src/core';import{logWarning as _0x21ab48,uid as _0x17802b}from'ckeditor5/src/utils';import{Position as _0x4cdda2,Range as _0x119ff0,Element as _0x4e05a5,DocumentFragment as _0x51e9cc,ViewText as _0x281211,ViewElement as _0x1139ad,ViewContainerElement as _0x50bcd5,ViewAttributeElement as _0x22011a,ViewEmptyElement as _0x4bce36,ViewRawElement as _0x57a27b,ViewUIElement as _0x55e04c,ViewDocumentFragment as _0x5d9266}from'ckeditor5/src/engine';import _0x255d81 from'./revisionsrepository';import{getTranslation as _0x2d904e}from'./utils/common-translations';import{cloneDeep as _0xcf531c,isEqual as _0x58edca}from'lodash-es';const B={'c':_0x50bcd5,'a':_0x22011a,'e':_0x4bce36,'r':_0x57a27b,'u':_0x55e04c};export default class l extends _0x54917c{static get[_0x1d1c('0xda')](){return _0x1d1c('0x46');}static get[_0x1d1c('0x73')](){return[_0x51942c,_0x255d81,_0x1ddd54];}constructor(_0x472365){super(_0x472365),this['adapter']=null,this[_0x1d1c('0x6b')]=null,this[_0x1d1c('0x43')]=new H(this[_0x1d1c('0x37')]),this['_initialRevisionId']=this['editor'][_0x1d1c('0x39')][_0x1d1c('0x12')](_0x1d1c('0xe7'))||_0x1d1c('0xb1'),this[_0x1d1c('0x49')]=new Map(),this[_0x1d1c('0x24')]=null;const _0x1c4003=_0x17802b();this[_0x1d1c('0xe5')]={'history':this['editor']['model'][_0x1d1c('0xf')][_0x1d1c('0xb8')],'getLatestVersion':()=>Promise['resolve'](this[_0x1d1c('0x37')]['model']['document'][_0x1d1c('0xb2')]),'getCurrentRevisionId':()=>_0x1c4003},this[_0x1d1c('0x45')](_0x1d1c('0x71'),!0x1),this[_0x1d1c('0x45')](_0x1d1c('0x0'),!0x0),this[_0x1d1c('0x45')]('_isPendingUpdate',!0x1),this[_0x1d1c('0x37')]['config'][_0x1d1c('0xa2')](_0x1d1c('0xa'),!0x0),this[_0x1d1c('0x37')][_0x1d1c('0xb9')][_0x1d1c('0x54')](_0x1d1c('0x106'))[_0x1d1c('0x104')]({'view':'revision'});}['init'](){this[_0x1d1c('0x1b')]=this[_0x1d1c('0x37')][_0x1d1c('0xa3')][_0x1d1c('0x12')](_0x1d1c('0x35')),this[_0x1d1c('0x82')](),this[_0x1d1c('0x37')][_0x1d1c('0xe9')]['on']('ready',()=>{const _0x1d55fd=this['repository'][_0x1d1c('0x89')](0x0),_0x2046cc=_0x1d55fd&&null===_0x1d55fd[_0x1d1c('0x6c')]?_0x1d55fd:null;if(this[_0x1d1c('0xc3')]=!!_0x2046cc&&this[_0x1d1c('0x37')][_0x1d1c('0x39')][_0x1d1c('0x12')](_0x1d1c('0xa')),this[_0x1d1c('0x37')][_0x1d1c('0xa3')]['has'](_0x1d1c('0xc7'))){const _0x4a1a60=this[_0x1d1c('0xe5')][_0x1d1c('0xf9')](),_0x34b008=this[_0x1d1c('0x1b')][_0x1d1c('0x89')](_0x4a1a60);if(_0x34b008)this[_0x1d1c('0xb0')]=_0x34b008['fromVersion'],this[_0x1d1c('0xc3')]=!0x1;else{const _0x437c8b=this[_0x1d1c('0xe5')][_0x1d1c('0xb8')][_0x1d1c('0xe2')][_0x1d1c('0x9e')](_0x5aebfe=>!_0x5aebfe[_0x1d1c('0x91')]),_0x550d7e=_0x437c8b?_0x437c8b[_0x1d1c('0xf1')]:this['_source'][_0x1d1c('0xb8')][_0x1d1c('0xb2')];_0x1d55fd?(_0x1d55fd[_0x1d1c('0x8')]<_0x550d7e&&_0x1d55fd[_0x1d1c('0xd1')]({'toVersion':_0x550d7e}),this[_0x1d1c('0xc3')]?(this[_0x1d1c('0xe5')]['getCurrentRevisionId']=()=>_0x2046cc['id'],this[_0x1d1c('0xb0')]=_0x2046cc[_0x1d1c('0xa6')]):(this['_startingVersion']=_0x1d55fd[_0x1d1c('0x8')],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x550d7e,this[_0x1d1c('0xc3')]=!0x1);}}else _0x2046cc&&(this[_0x1d1c('0x37')][_0x1d1c('0x4')][_0x1d1c('0xf')][_0x1d1c('0xb8')][_0x1d1c('0xb2')]=Math[_0x1d1c('0x20')](_0x2046cc[_0x1d1c('0x8')],this[_0x1d1c('0x37')][_0x1d1c('0x4')][_0x1d1c('0xf')]['history'][_0x1d1c('0xb2')]),_0x2046cc[_0x1d1c('0xa6')]===_0x2046cc[_0x1d1c('0x8')]?(0x0!==_0x2046cc[_0x1d1c('0xa6')]&&(this[_0x1d1c('0xe5')]['getCurrentRevisionId']=()=>_0x2046cc['id']),this['_continueCurrentRevision']=!0x1):this[_0x1d1c('0xc3')]&&(this['_source'][_0x1d1c('0xf9')]=()=>_0x2046cc['id'],this['_startingVersion']=_0x2046cc[_0x1d1c('0xa6')])),this[_0x1d1c('0xc3')]||(this[_0x1d1c('0xb0')]=this[_0x1d1c('0x37')][_0x1d1c('0x4')]['document'][_0x1d1c('0xb2')]);this[_0x1d1c('0x43')][_0x1d1c('0x5')](this[_0x1d1c('0xe5')]['history']),this[_0x1d1c('0xb7')](this[_0x1d1c('0xb0')]),this[_0x1d1c('0x78')](this[_0x1d1c('0xb0')]),this[_0x1d1c('0x100')]&&this['sendBufferedUpdates']();}),this[_0x1d1c('0xbe')](_0x1d1c('0x71'))['to'](this,_0x1d1c('0x8b'),_0x2d6510=>!_0x2d6510);}async[_0x1d1c('0x29')](){if(this[_0x1d1c('0x1b')][_0x1d1c('0x9f')]>0x0){const _0x147cea=this[_0x1d1c('0x1b')][_0x1d1c('0x89')](0x0),_0x41aa5b=await this[_0x1d1c('0x9')](_0x147cea),_0x504724=await this[_0x1d1c('0xdf')](_0x147cea);this[_0x1d1c('0xc1')](_0x41aa5b,_0x504724);}}[_0x1d1c('0xcc')](_0x5eea87){this[_0x1d1c('0xe5')]=_0x5eea87;}async[_0x1d1c('0x5d')](){const _0x51c30d=await this[_0x1d1c('0xe5')]['getLatestVersion']();if(_0x51c30d>this[_0x1d1c('0x6b')][_0x1d1c('0x8')]){await this['_loadState']();const _0x1e2a29=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x51c30d});_0x1e2a29[_0x1d1c('0x10a')]=_0x1e2a29[_0x1d1c('0x92')][_0x1d1c('0xfa')](_0x513b01=>this[_0x1d1c('0x37')][_0x1d1c('0xa3')]['get'](_0x1d1c('0xa9'))[_0x1d1c('0x72')](_0x513b01)),this['currentRevision'][_0x1d1c('0xd1')](_0x1e2a29);}}async[_0x1d1c('0x2a')](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this[_0x1d1c('0x33')](this[_0x1d1c('0x6b')]),this[_0x1d1c('0x43')][_0x1d1c('0x7b')](this[_0x1d1c('0x6b')]),this[_0x1d1c('0x24')]={'fromVersion':this[_0x1d1c('0x6b')]['fromVersion'],'authors':this[_0x1d1c('0x6b')][_0x1d1c('0x10a')]['slice']()});}async[_0x1d1c('0xa0')](_0x246f50={},_0x26adbc=null){const _0x1dcbdd=[];await this[_0x1d1c('0x2a')](),this[_0x1d1c('0xc3')]=!0x1,_0x26adbc>this[_0x1d1c('0x6b')]['toVersion']&&(_0x26adbc=null),null===_0x26adbc&&(_0x26adbc=await this[_0x1d1c('0xe5')][_0x1d1c('0x9c')]());const _0x476ed6=this[_0x1d1c('0x61')](_0x26adbc),_0x7e3d58=this[_0x1d1c('0x53')]({'from':_0x476ed6,'to':_0x26adbc});if(this[_0x1d1c('0x6b')][_0x1d1c('0x8')]<_0x26adbc){const _0x4f1292=this['buildRevisionData']({'revision':this[_0x1d1c('0x6b')],'from':_0x26adbc,'to':_0x26adbc});_0x4f1292['authors']=[],_0x4f1292[_0x1d1c('0x92')]=[],_0x4f1292['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4f1292,!0x0),delete _0x4f1292[_0x1d1c('0x10a')],_0x1dcbdd['push'](_0x4f1292);}_0x246f50[_0x1d1c('0x7c')]=this[_0x1d1c('0x37')][_0x1d1c('0xa3')][_0x1d1c('0x12')](_0x1d1c('0xa9'))['me']['id'],_0x246f50[_0x1d1c('0x66')]=_0x246f50['name']||null,_0x246f50['id']=_0x246f50['id']||_0x17802b(),_0x246f50={..._0x246f50,..._0x7e3d58};const _0x2c4c36=this[_0x1d1c('0x22')](_0x246f50);_0x1dcbdd[_0x1d1c('0xae')](_0x246f50);const _0x28341f=this[_0x1d1c('0x1b')]['getIndex'](_0x2c4c36);if(0x0!==_0x28341f){const _0x348901=this[_0x1d1c('0x1b')]['getRevision'](_0x28341f-0x1);if(_0x348901[_0x1d1c('0xa6')]!==_0x26adbc){const _0x1f6dc2=this[_0x1d1c('0x43')][_0x1d1c('0xfc')](_0x26adbc,_0x348901[_0x1d1c('0x8')]),_0x39e623={'id':_0x348901['id'],'diffData':_0x1f6dc2['diffData'],'authorsIds':_0x1f6dc2[_0x1d1c('0x92')],'authors':_0x1f6dc2['authorsIds'][_0x1d1c('0xfa')](_0x2801fa=>this[_0x1d1c('0x37')]['plugins'][_0x1d1c('0x12')](_0x1d1c('0xa9'))['getUser'](_0x2801fa)),'fromVersion':_0x26adbc};_0x348901===this[_0x1d1c('0x6b')]&&(_0x39e623[_0x1d1c('0x65')]=new Date(_0x246f50[_0x1d1c('0x65')][_0x1d1c('0x31')]()+0xa)),_0x348901[_0x1d1c('0xd1')](_0x39e623,!0x0),delete _0x39e623[_0x1d1c('0x10a')],_0x1dcbdd[_0x1d1c('0xae')](_0x39e623);}}if(this[_0x1d1c('0x100')]){for(const _0x3c9c64 of _0x1dcbdd)this['_bufferUpdate'](_0x3c9c64['id'],_0x3c9c64,!0x0);this[_0x1d1c('0x83')]();}return _0x2c4c36;}[_0x1d1c('0x22')](_0x40feb4){const _0x4e982d=this['repository'][_0x1d1c('0x5f')](_0x40feb4);return this[_0x1d1c('0x100')]&&_0x4e982d['on'](_0x1d1c('0xd1'),(_0x586c4f,_0x14791c,_0x2e1ebc)=>{_0x2e1ebc||(this['_bufferUpdate'](_0x14791c['id'],_0x14791c,!0x0),this['sendBufferedUpdates']());}),this[_0x1d1c('0x1b')][_0x1d1c('0x79')](_0x4e982d,this['_findInsertionIndex'](_0x4e982d)),_0x4e982d;}async[_0x1d1c('0x9')](_0x4057a1){await this[_0x1d1c('0x33')](_0x4057a1);const _0x203391={};for(const _0x33ad1a in _0x4057a1['diffData']){if(_0x4057a1[_0x1d1c('0x4d')][_0x33ad1a]['attachChange']&&!_0x4057a1[_0x1d1c('0x4d')][_0x33ad1a]['attachChange']['isAttached'])continue;const _0x3d28b7=this[_0x1d1c('0x86')](JSON[_0x1d1c('0xf7')](_0x4057a1[_0x1d1c('0x4d')][_0x33ad1a]['insertions'])),_0x1aadb8=this['editor']['editing'][_0x1d1c('0x67')][_0x1d1c('0xf')],_0x279fdf=new _0x5d9266(_0x1aadb8,_0x3d28b7[_0x1d1c('0xfa')](_0x47697c=>J(_0x47697c,this['editor'])));this[_0x1d1c('0x37')][_0x1d1c('0xe9')][_0x1d1c('0xe1')][_0x1d1c('0xe')](_0x1d1c('0x81')),_0x203391[_0x33ad1a]=this[_0x1d1c('0x37')][_0x1d1c('0xe9')][_0x1d1c('0xe1')][_0x1d1c('0x76')](_0x279fdf),this[_0x1d1c('0x37')][_0x1d1c('0xe9')]['processor'][_0x1d1c('0xe')]('default');}return _0x203391;}async['getRevisionRootsAttributes'](_0x2d5c18){await this['_loadRevisionData'](_0x2d5c18);const _0x5ed313={};for(const _0xb764a5 in _0x2d5c18['diffData'])_0x2d5c18[_0x1d1c('0x4d')][_0xb764a5][_0x1d1c('0x62')]&&!_0x2d5c18[_0x1d1c('0x4d')][_0xb764a5]['attachChange'][_0x1d1c('0x87')]||(_0x5ed313[_0xb764a5]=_0x2d5c18[_0x1d1c('0x4d')][_0xb764a5][_0x1d1c('0xed')]||{});return _0x5ed313;}[_0x1d1c('0x83')](){if(0x0===this[_0x1d1c('0x49')]['size'])return;if(this[_0x1d1c('0x8b')])return;let _0x4b5c55=Array[_0x1d1c('0x52')](this[_0x1d1c('0x49')][_0x1d1c('0xca')]());this['_bufferedUpdates'][_0x1d1c('0x5c')]();for(let _0x3c3ea5=0x0;_0x3c3ea5<_0x4b5c55[_0x1d1c('0x9f')];_0x3c3ea5++){const _0x13f7cd=_0x4b5c55[_0x3c3ea5];let _0x142fb8=!0x1;for(const _0x425ada of Object[_0x1d1c('0x16')](_0x13f7cd))void 0x0===_0x13f7cd[_0x425ada]?delete _0x13f7cd[_0x425ada]:'id'!==_0x425ada&&(_0x142fb8=!0x0);_0x142fb8||(_0x4b5c55[_0x3c3ea5]=null);}if(_0x4b5c55=_0x4b5c55['filter'](_0x183d5c=>null!==_0x183d5c),!_0x4b5c55[_0x1d1c('0x9f')])return;for(let _0x3cfa5d=0x0;_0x3cfa5d<_0x4b5c55[_0x1d1c('0x9f')];_0x3cfa5d++){const _0x107485=_0x4b5c55[_0x3cfa5d];void 0x0!==_0x107485[_0x1d1c('0xa6')]&&void 0x0===_0x107485['toVersion']&&(_0x107485[_0x1d1c('0x8')]=this[_0x1d1c('0x1b')][_0x1d1c('0x89')](_0x107485['id'])[_0x1d1c('0x8')]),void 0x0!==_0x107485['toVersion']&&void 0x0===_0x107485[_0x1d1c('0xa6')]&&(_0x107485[_0x1d1c('0xa6')]=this[_0x1d1c('0x1b')][_0x1d1c('0x89')](_0x107485['id'])[_0x1d1c('0xa6')]);}const _0x54da3=this[_0x1d1c('0x37')][_0x1d1c('0x39')][_0x1d1c('0x12')](_0x1d1c('0xe7'));this[_0x1d1c('0x8b')]=!0x0,this[_0x1d1c('0x17')](),this[_0x1d1c('0x100')][_0x1d1c('0x109')](_0x4b5c55,_0x54da3)['finally'](()=>{this[_0x1d1c('0x8b')]=!0x1;})[_0x1d1c('0x13')](_0x1af9b6=>{if(_0x1af9b6)for(const _0x5ed81b of _0x1af9b6)this[_0x1d1c('0x1')]({'id':_0x5ed81b['id'],'createdAt':_0x5ed81b['createdAt']});this['_removePendingAction'](),this[_0x1d1c('0x83')]();});}[_0x1d1c('0xc1')](_0x2ba457,_0x3fa07f){let _0x4a5624=this['editor'][_0x1d1c('0x39')][_0x1d1c('0x12')](_0x1d1c('0x1f')),_0x54aea0=this[_0x1d1c('0x37')][_0x1d1c('0x39')][_0x1d1c('0x12')](_0x1d1c('0xdc'));if(void 0x0===_0x4a5624){_0x4a5624={};for(const _0x27a6ef of this[_0x1d1c('0x37')][_0x1d1c('0x4')]['document'][_0x1d1c('0xb3')]())_0x4a5624[_0x27a6ef]='';}if('string'==typeof _0x4a5624&&(_0x4a5624={'main':_0x4a5624}),void 0x0===_0x54aea0){_0x54aea0={};for(const _0x18d60c of this[_0x1d1c('0x37')][_0x1d1c('0x4')][_0x1d1c('0xf')][_0x1d1c('0xb3')]())_0x54aea0[_0x18d60c]={};}let _0x2620ff=!0x1;const _0x2d2759=Object[_0x1d1c('0x16')](_0x4a5624),_0x2be382=Object['keys'](_0x2ba457);for(const _0x3d54ff of _0x2d2759){if(_0x4a5624[_0x3d54ff]!==_0x2ba457[_0x3d54ff]&&''!==_0x4a5624[_0x3d54ff][_0x1d1c('0x50')]()){_0x2620ff=!0x0;break;}if(!_0x58edca(_0x54aea0[_0x3d54ff],_0x3fa07f[_0x3d54ff])&&Object[_0x1d1c('0x16')](_0x54aea0[_0x3d54ff])[_0x1d1c('0x9f')]>0x0){_0x2620ff=!0x0;break;}}_0x2620ff||(_0x2620ff=_0x2be382[_0x1d1c('0xc')](_0xb32380=>!this[_0x1d1c('0x37')][_0x1d1c('0x4')][_0x1d1c('0xf')]['getRoot'](_0xb32380))),_0x2620ff&&_0x21ab48(_0x1d1c('0xa7'),{'editorData':_0x4a5624,'editorRootsAttributes':_0x54aea0,'revisionData':_0x2ba457,'revisionRootsAttributes':_0x3fa07f}),this[_0x1d1c('0x37')][_0x1d1c('0x39')]['set'](_0x1d1c('0x1f'),_0x2ba457),this[_0x1d1c('0x37')]['config'][_0x1d1c('0x45')]('rootsAttributes',_0x3fa07f);}[_0x1d1c('0x17')](){if(!this['_pendingAction']){const _0x1ab8f8=this['editor'][_0x1d1c('0xa3')]['get']('PendingActions');this[_0x1d1c('0x47')]=_0x1ab8f8[_0x1d1c('0x3a')](_0x2d904e(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x1d1c('0x19')](){this[_0x1d1c('0x47')]&&(this[_0x1d1c('0x37')][_0x1d1c('0xa3')]['get'](_0x1d1c('0x8a'))[_0x1d1c('0x75')](this[_0x1d1c('0x47')]),this[_0x1d1c('0x47')]=null);}[_0x1d1c('0xd9')](_0x54f924){const _0x27e0a5=this[_0x1d1c('0x1b')][_0x1d1c('0xc0')]();_0x27e0a5[_0x1d1c('0x3b')]();let _0x50ca14=0x0;for(;_0x50ca14<_0x27e0a5[_0x1d1c('0x9f')];){const _0x2b0b82=_0x27e0a5[_0x50ca14];if(_0x2b0b82===this[_0x1d1c('0x6b')]){_0x50ca14++;continue;}if(_0x2b0b82['id']===this[_0x1d1c('0x102')])break;const _0x49e011=_0x54f924[_0x1d1c('0x8')]-_0x2b0b82[_0x1d1c('0x8')]||_0x54f924[_0x1d1c('0xa6')]-_0x2b0b82[_0x1d1c('0xa6')];if(_0x49e011>0x0)break;if(_0x49e011<0x0)_0x50ca14++;else{if(!_0x54f924[_0x1d1c('0x6c')]&&_0x2b0b82['creator'])break;if(_0x2b0b82[_0x1d1c('0x6c')]||!_0x54f924[_0x1d1c('0x6c')]){if(_0x54f924['createdAt']>_0x2b0b82[_0x1d1c('0x65')])break;_0x50ca14++;}else _0x50ca14++;}}return _0x50ca14;}[_0x1d1c('0x1')](_0x1da5fd){const _0x4423e9=this[_0x1d1c('0x1b')][_0x1d1c('0x89')](_0x1da5fd['id']);if(_0x1da5fd[_0x1d1c('0x65')]&&(_0x1da5fd[_0x1d1c('0x65')]=new Date(_0x1da5fd['createdAt'])),_0x1da5fd[_0x1d1c('0x92')]){const _0x8850e8=this[_0x1d1c('0x37')][_0x1d1c('0xa3')]['get'](_0x1d1c('0xa9'));_0x1da5fd['authors']=_0x1da5fd['authorsIds'][_0x1d1c('0xfa')](_0x676c7b=>_0x8850e8['getUser'](_0x676c7b));}_0x4423e9[_0x1d1c('0xd1')](_0x1da5fd,!0x0);}[_0x1d1c('0x53')]({revision:_0x48886c=null,from:_0x5ec77e=null,to:_0x58d76b=null}){_0x5ec77e=null!==_0x5ec77e?_0x5ec77e:_0x48886c[_0x1d1c('0xa6')],_0x58d76b=null!==_0x58d76b?_0x58d76b:_0x48886c[_0x1d1c('0x8')];const _0x474d2f=this[_0x1d1c('0x43')]['getData'](_0x5ec77e,_0x58d76b),_0x3187ba={'diffData':_0x474d2f[_0x1d1c('0x4d')],'authorsIds':_0x474d2f['authorsIds'],'fromVersion':_0x5ec77e,'toVersion':_0x58d76b};if(!_0x48886c||_0x58d76b!==_0x48886c[_0x1d1c('0x8')]){const _0x5ca07a=_0x58d76b-0x1,_0x482f1d=this[_0x1d1c('0xe5')]['history'][_0x1d1c('0x10')](_0x5ca07a);_0x3187ba['createdAt']=_0x482f1d&&_0x482f1d[_0x1d1c('0x65')]||new Date();}if(this[_0x1d1c('0x24')]&&_0x5ec77e===this[_0x1d1c('0x24')]['fromVersion'])for(const _0x3af8e3 of this[_0x1d1c('0x24')][_0x1d1c('0x10a')])_0x3187ba[_0x1d1c('0x92')]['includes'](_0x3af8e3['id'])||_0x3187ba[_0x1d1c('0x92')][_0x1d1c('0xae')](_0x3af8e3['id']);return _0x3187ba;}[_0x1d1c('0x33')](_0xdb275){if(!_0xdb275||_0xdb275[_0x1d1c('0x4d')])return Promise['resolve']();{const _0x4e07b9=this[_0x1d1c('0x37')][_0x1d1c('0x39')]['get'](_0x1d1c('0xe7'));return this[_0x1d1c('0x100')][_0x1d1c('0x89')]({'channelId':_0x4e07b9,'revisionId':_0xdb275['id']})['then'](_0x34f234=>{_0xdb275[_0x1d1c('0x4d')]=_0x34f234[_0x1d1c('0x4d')];});}}[_0x1d1c('0x77')](_0x1d2162,_0x43741a,_0x259fbb){if(this[_0x1d1c('0x49')][_0x1d1c('0xc5')](_0x1d2162)){const _0x596238=this[_0x1d1c('0x49')]['get'](_0x1d2162);_0x43741a=_0x259fbb?{..._0x596238,..._0x43741a}:{..._0x43741a,..._0x596238};}this['_bufferedUpdates'][_0x1d1c('0x45')](_0x1d2162,_0x43741a);}['_getFromVersion'](_0xd280f3){const _0x3210c2=this[_0x1d1c('0x1b')][_0x1d1c('0xc0')]();_0x3210c2[_0x1d1c('0x3b')](),_0x3210c2[_0x1d1c('0xe6')]();const _0x1e9a36=_0x3210c2[_0x1d1c('0x9e')](_0x4807ad=>_0x4807ad[_0x1d1c('0x8')]<=_0xd280f3)[_0x1d1c('0x8')];return _0x1e9a36<this[_0x1d1c('0xb0')]?this[_0x1d1c('0xb0')]:_0x1e9a36;}[_0x1d1c('0xb7')](_0x5f0fe1){const _0xc63901=this[_0x1d1c('0x1b')][_0x1d1c('0x89')](this[_0x1d1c('0x1b')][_0x1d1c('0x9f')]-0x1);if(_0xc63901)this[_0x1d1c('0x102')]=_0xc63901['id'];else{const _0x18903f=!this[_0x1d1c('0x37')][_0x1d1c('0x4')][_0x1d1c('0xf')]['roots'][_0x1d1c('0x9e')](_0x1f9077=>this[_0x1d1c('0x37')][_0x1d1c('0x4')]['hasContent'](_0x1f9077)),_0x4a2880=this[_0x1d1c('0x37')][_0x1d1c('0xa3')][_0x1d1c('0x12')](_0x1d1c('0xa9'))['me']['id'],_0x40b1d4=_0x2d904e(this[_0x1d1c('0x37')][_0x1d1c('0x1d')],_0x18903f?_0x1d1c('0x2e'):'Initial\x20revision');this[_0x1d1c('0x7f')]({'from':_0x5f0fe1,'to':_0x5f0fe1,'id':this['_initialRevisionId'],'name':_0x40b1d4,'creatorId':_0x4a2880});}}[_0x1d1c('0x78')](_0x2f0790){const _0x4fb97e=this[_0x1d1c('0xe5')][_0x1d1c('0xf9')]();this[_0x1d1c('0x6b')]=this[_0x1d1c('0x1b')][_0x1d1c('0x89')](_0x4fb97e),this[_0x1d1c('0x6b')]||(this['currentRevision']=this[_0x1d1c('0x7f')]({'from':_0x2f0790,'to':_0x2f0790,'id':_0x4fb97e,'name':'','creatorId':null}));}[_0x1d1c('0x7f')]({name:_0x481580,from:_0x35cef,to:_0xd42178,creatorId:_0x51423c,id:_0x5292dc}){const _0x56d5b8=this[_0x1d1c('0x53')]({'from':_0x35cef,'to':_0xd42178});_0x56d5b8[_0x1d1c('0x66')]=_0x481580,_0x56d5b8[_0x1d1c('0x7c')]=_0x51423c,_0x56d5b8['id']=_0x5292dc;const _0x247816=this[_0x1d1c('0x22')](_0x56d5b8);return this[_0x1d1c('0x100')]&&this[_0x1d1c('0x77')](_0x56d5b8['id'],_0x56d5b8,!0x0),_0x247816;}['_setConversion'](){this[_0x1d1c('0x37')]['conversion'][_0x1d1c('0x54')](_0x1d1c('0x7d'))[_0x1d1c('0xee')]({'model':_0x1d1c('0x32')});}['_removeRevisionMarkers'](_0x540370){return(_0x540370=_0x540370[_0x1d1c('0xd3')](_0x2cf616=>!_0x2cf616[_0x1d1c('0x66')]||_0x1d1c('0x2f')!==_0x2cf616['name']&&'revision-end'!==_0x2cf616['name']))[_0x1d1c('0x3d')](_0x54731d=>{_0x1d1c('0x8e')!=typeof _0x54731d&&(_0x54731d[_0x1d1c('0xaf')]=this[_0x1d1c('0x86')](_0x54731d[_0x1d1c('0xaf')]),_0x54731d[_0x1d1c('0x1e')]=_0x54731d[_0x1d1c('0x1e')][_0x1d1c('0xd3')](_0x3b25d8=>!_0x3b25d8[0x0]['startsWith'](_0x1d1c('0xd7'))));}),_0x540370;}}function J(_0x3da4af,_0x882fd7){const _0x4a1c67=_0x882fd7[_0x1d1c('0xd4')][_0x1d1c('0x67')][_0x1d1c('0xf')];if(_0x1d1c('0x8e')==typeof _0x3da4af)return new _0x281211(_0x4a1c67,_0x3da4af);{const _0x15fe4a=_0x3da4af['children'][_0x1d1c('0xfa')](_0x544059=>J(_0x544059,_0x882fd7));return new(B[_0x3da4af['type']]||_0x1139ad)(_0x4a1c67,_0x3da4af['name'],_0x3da4af[_0x1d1c('0x1e')],_0x15fe4a);}}class H{constructor(_0x41274a){this[_0x1d1c('0x37')]=_0x41274a,this[_0x1d1c('0x6e')]=new Map(),this[_0x1d1c('0x55')]=-0x1,this[_0x1d1c('0xef')]=-0x1,this[_0x1d1c('0x107')]=new Map(),this[_0x1d1c('0xf8')]=new Map(),this[_0x1d1c('0xab')]=new Map(),this[_0x1d1c('0x3')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x1d1c('0x90')]=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this[_0x1d1c('0xf5')]=new Map(),this[_0x1d1c('0xbb')]=new Map(),this[_0x1d1c('0xa4')]=0x1;}[_0x1d1c('0x5')](_0xdcf809){this[_0x1d1c('0x74')]=_0xdcf809;const _0xbac0fa=new Map(),_0xa15f5f=new Map(),_0x19cb3a=this['editor'][_0x1d1c('0x4')]['document']['roots']['map'](_0x446b21=>_0x446b21[_0x1d1c('0x5a')]);for(const _0x1f27b2 of _0x19cb3a){const _0x1e4097=this[_0x1d1c('0x37')][_0x1d1c('0x4')][_0x1d1c('0xf')][_0x1d1c('0xe3')](_0x1f27b2),_0x3248d9=q(_0x1e4097);_0xbac0fa[_0x1d1c('0x45')](_0x1f27b2,_0x3248d9),_0xa15f5f['set'](_0x1f27b2,Object[_0x1d1c('0xc9')](_0x1e4097[_0x1d1c('0x48')]()));}const _0x36a1ab=Array[_0x1d1c('0x52')](this[_0x1d1c('0x37')][_0x1d1c('0x4')][_0x1d1c('0x99')])[_0x1d1c('0xfa')](_0x581ce4=>[_0x581ce4[_0x1d1c('0x66')],_0x581ce4[_0x1d1c('0x57')]()]),_0x4641e1=this['source'][_0x1d1c('0xb2')];this['_saveMetaData'](_0x4641e1,_0xbac0fa,_0x36a1ab,_0xa15f5f),this[_0x1d1c('0xcd')]=this['_revisionId'];const _0x37ba23=new Map(),_0x1e6acc=new Map();for(const _0x5a4961 of _0x19cb3a){const _0x4a9cdd=G(_0x5a4961);_0x37ba23[_0x1d1c('0x45')](_0x5a4961,_0x4a9cdd),_0x1e6acc['set'](_0x5a4961,{});}this[_0x1d1c('0xf2')](Number[_0x1d1c('0x18')],_0x37ba23,[],_0x1e6acc);}[_0x1d1c('0xfc')](_0x4dccb5,_0x33e804){if(this[_0x1d1c('0x55')]===_0x4dccb5&&this['_lastTo']<=_0x33e804)this[_0x1d1c('0x6e')][_0x1d1c('0x2c')]>0x1&&this[_0x1d1c('0x7e')](this[_0x1d1c('0xef')]),this[_0x1d1c('0xc6')](this[_0x1d1c('0xef')],_0x33e804,!0x0);else{if(!this['_savedMetaData'][_0x1d1c('0xc5')](_0x4dccb5)){const _0x35986f=this[_0x1d1c('0xc4')](_0x4dccb5);this[_0x1d1c('0x63')](_0x35986f,_0x4dccb5,!0x1);}this[_0x1d1c('0x63')](_0x4dccb5,_0x33e804,!0x0);}return this[_0x1d1c('0x55')]=_0x4dccb5,this['_lastTo']=_0x33e804,this['_getState']();}[_0x1d1c('0x7b')](_0x59076c){this['_reset'](),this[_0x1d1c('0x55')]=_0x59076c[_0x1d1c('0xa6')],this[_0x1d1c('0xef')]=_0x59076c[_0x1d1c('0x8')];for(const _0x5910a5 in _0x59076c[_0x1d1c('0x4d')]){const _0x3a10c1=_0x59076c[_0x1d1c('0x4d')][_0x5910a5]['attachChange'],_0x55de22=_0xcf531c(_0x59076c['diffData'][_0x5910a5][_0x1d1c('0x68')])||{},_0x157d7d=this[_0x1d1c('0xea')](_0x59076c[_0x1d1c('0x4d')][_0x5910a5][_0x1d1c('0xaa')]);_0x157d7d['rootName']=_0x5910a5,_0x157d7d[_0x1d1c('0xfb')]=!_0x3a10c1||!_0x3a10c1[_0x1d1c('0x87')],_0x157d7d[_0x1d1c('0x87')]=()=>_0x157d7d[_0x1d1c('0xfb')],this[_0x1d1c('0x3')][_0x1d1c('0x45')](_0x5910a5,_0x157d7d),this['_baseRootsAttributes'][_0x1d1c('0x45')](_0x5910a5,_0x55de22),_0x3a10c1&&this[_0x1d1c('0xbb')]['set'](_0x5910a5,_0x3a10c1);const _0x26b795=this[_0x1d1c('0x15')](_0x157d7d);this[_0x1d1c('0xfe')][_0x1d1c('0x45')](_0x5910a5,_0x26b795);for(const [_0x53f5ec,_0x34c3d7]of _0x157d7d[_0x1d1c('0x99')]){if(!_0x53f5ec[_0x1d1c('0x44')](_0x1d1c('0x4b')))continue;const _0x31f776=_0x53f5ec[_0x1d1c('0xf6')](':')[0x2];for(const _0xb5c898 of _0x34c3d7[_0x1d1c('0x23')]({'singleCharacters':!0x0})){const _0x44cb04=this['_getVidAttributeName'](_0xb5c898),_0x48c99b='elementEnd'==_0xb5c898[_0x1d1c('0xbf')]?_0xb5c898[_0x1d1c('0x64')]['path'][_0x1d1c('0x21')](0x0,-0x1):_0xb5c898[_0x1d1c('0x64')][_0x1d1c('0x4c')],_0x2e9441=_0x26b795[_0x1d1c('0x30')](_0x48c99b)['getAttribute'](_0x44cb04);this['_touched'][_0x1d1c('0x45')](_0x2e9441,{'userId':_0x31f776});}}}this[_0x1d1c('0xcd')]=this[_0x1d1c('0xa4')];const _0x5dc65b=[...Array(this[_0x1d1c('0xa4')])[_0x1d1c('0x16')]()]['slice'](0x1)[_0x1d1c('0xd3')](_0x65235=>!this[_0x1d1c('0x2b')][_0x1d1c('0xc5')](_0x65235));let _0x7ceb82=0x0;const _0x456440=new Map();for(const _0x2fecab in _0x59076c['diffData']){const _0x247967=_0x59076c[_0x1d1c('0x4d')][_0x2fecab][_0x1d1c('0x62')],_0x3ede33=_0xcf531c(_0x59076c[_0x1d1c('0x4d')][_0x2fecab][_0x1d1c('0xed')])||{},_0xbb777f=this['_makeModelFromViewString'](_0x59076c['diffData'][_0x2fecab][_0x1d1c('0xeb')]);_0xbb777f[_0x1d1c('0x5a')]=_0x2fecab,_0xbb777f[_0x1d1c('0xfb')]=!_0x247967||_0x247967[_0x1d1c('0x87')],_0xbb777f['isAttached']=()=>_0xbb777f[_0x1d1c('0xfb')],this[_0x1d1c('0xf8')][_0x1d1c('0x45')](_0x2fecab,_0xbb777f),this[_0x1d1c('0xab')][_0x1d1c('0x45')](_0x2fecab,_0x3ede33);const _0x1ace68=this[_0x1d1c('0x15')](_0xbb777f,Number[_0x1d1c('0x18')]);this[_0x1d1c('0x90')]['set'](_0x2fecab,_0x1ace68),_0x456440[_0x1d1c('0x45')](_0x2fecab,_0xbb777f[_0x1d1c('0x87')]()?_0x3ede33:{});for(const [_0x39a2b2,_0x1a0fc0]of _0xbb777f[_0x1d1c('0x99')]){if(!_0x39a2b2[_0x1d1c('0x44')](_0x1d1c('0x4b')))continue;const _0x25e984=_0x39a2b2[_0x1d1c('0xf6')](':')[0x2];for(const _0x25079f of _0x1a0fc0['getWalker']({'singleCharacters':!0x0})){const _0xc03b52=this['_getVidAttributeName'](_0x25079f),_0x59e393=this[_0x1d1c('0xa4')]++,_0x1d84de=_0x1d1c('0xbc')==_0x25079f[_0x1d1c('0xbf')]?_0x25079f[_0x1d1c('0x64')][_0x1d1c('0x4c')][_0x1d1c('0x21')](0x0,-0x1):_0x25079f[_0x1d1c('0x64')][_0x1d1c('0x4c')];_0x1ace68[_0x1d1c('0x30')](_0x1d84de)[_0x1d1c('0x28')](_0xc03b52,_0x59e393),this[_0x1d1c('0x2b')][_0x1d1c('0x45')](_0x59e393,{'userId':_0x25e984});}}for(const _0x310e7a of this['editor']['model']['createRangeIn'](_0xbb777f)[_0x1d1c('0x23')]({'singleCharacters':!0x0})){const _0x378a02=this['_getVidAttributeName'](_0x310e7a),_0xc5c273=_0x1d1c('0xbc')==_0x310e7a['type']?_0x310e7a[_0x1d1c('0x64')]['path'][_0x1d1c('0x21')](0x0,-0x1):_0x310e7a[_0x1d1c('0x64')][_0x1d1c('0x4c')],_0x5eb93b=_0x1ace68[_0x1d1c('0x30')](_0xc5c273);_0x5eb93b['getAttribute'](_0x378a02)>0x0||_0x5eb93b[_0x1d1c('0x28')](_0x378a02,_0x5dc65b[_0x7ceb82++]);}for(const [_0x30c4cc,_0x22dad6]of _0xbb777f[_0x1d1c('0x99')])_0x30c4cc['startsWith'](_0x1d1c('0x4b'))||this[_0x1d1c('0x107')][_0x1d1c('0x45')](_0x30c4cc,_0x22dad6);}const _0x194a71=G(_0x1d1c('0x98'));this[_0x1d1c('0x3')][_0x1d1c('0x45')]('$graveyard',_0x194a71),this['_baseIdsRoots']['set']('$graveyard',this[_0x1d1c('0x15')](_0x194a71,0x1));const _0x101bd3=G(_0x1d1c('0x98'));this[_0x1d1c('0xf8')][_0x1d1c('0x45')](_0x1d1c('0x98'),_0x101bd3),this[_0x1d1c('0x90')][_0x1d1c('0x45')](_0x1d1c('0x98'),this[_0x1d1c('0x15')](_0x101bd3,0x1));const _0x274cd2=Array[_0x1d1c('0x52')](this[_0x1d1c('0xf8')])[_0x1d1c('0xfa')](([_0x1e1832,_0x5ce25f])=>[_0x1e1832,q(_0x5ce25f)]);this[_0x1d1c('0xf2')](this[_0x1d1c('0xef')],_0x274cd2,this[_0x1d1c('0x107')],_0x456440);}[_0x1d1c('0xea')](_0xa69f0e){const _0x20873d=JSON['parse'](_0xa69f0e),_0x1b26c1=this['editor'][_0x1d1c('0xd4')][_0x1d1c('0x67')][_0x1d1c('0xf')],_0x219efa=new _0x5d9266(_0x1b26c1,_0x20873d[_0x1d1c('0xfa')](_0x541fb8=>J(_0x541fb8,this[_0x1d1c('0x37')])));return this[_0x1d1c('0x37')][_0x1d1c('0xe9')][_0x1d1c('0xf0')](_0x219efa);}[_0x1d1c('0xf2')](_0x5adfb3,_0x48bb1c,_0x7bbd7,_0x3873ac){const _0x499653=new Map(_0x48bb1c),_0x24a4a2=new Map(_0xcf531c(_0x3873ac)),_0x5ddece=new Map();for(const [_0x589dfd,_0x28af4d]of _0x7bbd7)_0x5ddece[_0x1d1c('0x45')](_0x589dfd,{'start':_0x28af4d[_0x1d1c('0x1a')]['clone'](),'end':_0x28af4d[_0x1d1c('0x4e')][_0x1d1c('0x96')](),'rootName':_0x28af4d[_0x1d1c('0xa5')][_0x1d1c('0x5a')]});this[_0x1d1c('0x6e')][_0x1d1c('0x45')](_0x5adfb3,{'roots':_0x499653,'markers':_0x5ddece,'rootsAttributes':_0x24a4a2});}[_0x1d1c('0x7e')](_0x57f0cb){this[_0x1d1c('0x6e')][_0x1d1c('0x4f')](_0x57f0cb);}['reInit'](){this[_0x1d1c('0xe4')](),this[_0x1d1c('0x55')]=-0x1,this[_0x1d1c('0xef')]=-0x1,this[_0x1d1c('0x6e')][_0x1d1c('0x5c')](),this[_0x1d1c('0x5')](this[_0x1d1c('0x74')]);}[_0x1d1c('0xe4')](){this[_0x1d1c('0x2b')]['clear'](),this['_touchedMarkers'][_0x1d1c('0x5c')](),this[_0x1d1c('0xbb')][_0x1d1c('0x5c')](),this[_0x1d1c('0xf8')]['clear'](),this[_0x1d1c('0xab')][_0x1d1c('0x5c')](),this[_0x1d1c('0x3')][_0x1d1c('0x5c')](),this['_baseRootsAttributes'][_0x1d1c('0x5c')](),this[_0x1d1c('0x90')][_0x1d1c('0x5c')](),this[_0x1d1c('0xfe')][_0x1d1c('0x5c')](),this[_0x1d1c('0x107')]['clear'](),this[_0x1d1c('0xa4')]=0x1,this[_0x1d1c('0xcd')]=this['_revisionId'];}[_0x1d1c('0x15')](_0x2819c8,_0x5f5149=null){let _0x30caaf=null;_0x2819c8['is'](_0x1d1c('0xba'))||(_0x30caaf=new _0x4e05a5(_0x2819c8['name'],{'vid_start':null===_0x5f5149?this[_0x1d1c('0xa4')]++:_0x5f5149++}));const _0x5f0fa9=[];for(const _0x33543a of _0x2819c8[_0x1d1c('0xc8')]())if(_0x33543a['is'](_0x1d1c('0x5b'))){_0x5f0fa9['push'](this[_0x1d1c('0x15')](_0x33543a,_0x5f5149));const _0x4b98b1=_0x5f0fa9[_0x5f0fa9[_0x1d1c('0x9f')]-0x1];null!==_0x5f5149&&(_0x5f5149=_0x4b98b1['is'](_0x1d1c('0x5b'),_0x1d1c('0xcb'))?_0x4b98b1['getAttribute']('vid')+0x1:_0x4b98b1[_0x1d1c('0x58')]('vid_end')+0x1);}else for(let _0x5ca2c1=0x0;_0x5ca2c1<_0x33543a[_0x1d1c('0xb4')];_0x5ca2c1++)_0x5f0fa9[_0x1d1c('0xae')](new _0x4e05a5(_0x1d1c('0xcb'),{'vid':null===_0x5f5149?this[_0x1d1c('0xa4')]++:_0x5f5149++}));if(_0x2819c8['is'](_0x1d1c('0xba'))){const _0x57f8cd=G(_0x2819c8[_0x1d1c('0x5a')]);return _0x57f8cd['_insertChild'](0x0,_0x5f0fa9),_0x57f8cd;}return _0x30caaf[_0x1d1c('0x28')](_0x1d1c('0x105'),null===_0x5f5149?this[_0x1d1c('0xa4')]++:_0x5f5149++),_0x30caaf[_0x1d1c('0x40')](0x0,_0x5f0fa9),_0x30caaf;}[_0x1d1c('0x63')](_0x1b4cb2,_0x23a2be,_0x57d4f3){this['_reset']();const {roots:_0x56bc83,markers:_0x26556f,rootsAttributes:_0x3220c3}=this[_0x1d1c('0x6e')][_0x1d1c('0x12')](_0x1b4cb2);this[_0x1d1c('0x3')]=new Map(_0x56bc83),this['_baseRootsAttributes']=new Map(_0xcf531c(_0x3220c3));for(const [_0x214373,_0x3cb29a]of this[_0x1d1c('0x3')])if(_0x1d1c('0x98')!==_0x214373&&(this[_0x1d1c('0xf8')][_0x1d1c('0x45')](_0x214373,q(_0x3cb29a)),this[_0x1d1c('0xab')]=new Map(_0xcf531c(_0x3220c3)),_0x57d4f3)){const _0x15be52=this[_0x1d1c('0xa4')];this['_idsRoots'][_0x1d1c('0x45')](_0x214373,this[_0x1d1c('0x15')](_0x3cb29a)),this['_baseIdsRoots'][_0x1d1c('0x45')](_0x214373,this[_0x1d1c('0x15')](_0x3cb29a,_0x15be52));}this['_startingRevisionId']=this[_0x1d1c('0xa4')],this[_0x1d1c('0xf8')][_0x1d1c('0x45')](_0x1d1c('0x98'),q(this[_0x1d1c('0x3')]['get'](_0x1d1c('0x98')))),_0x57d4f3&&this[_0x1d1c('0x90')][_0x1d1c('0x45')](_0x1d1c('0x98'),this['_makeIdsRoot'](this[_0x1d1c('0x3')]['get'](_0x1d1c('0x98'))));for(const [_0x252671,_0x3bbbeb]of _0x26556f){const _0xc874c0=this[_0x1d1c('0x3')][_0x1d1c('0x12')](_0x3bbbeb['rootName']),_0x4390e3=this['_diffRoots'][_0x1d1c('0x12')](_0x3bbbeb[_0x1d1c('0x5a')]),_0x3cb0b1=new _0x119ff0(this[_0x1d1c('0x8f')](_0x3bbbeb['start'],_0xc874c0),this[_0x1d1c('0x8f')](_0x3bbbeb[_0x1d1c('0x4e')],_0xc874c0)),_0x1248d9=this[_0x1d1c('0x5e')](_0x3cb0b1,_0x4390e3);_0xc874c0[_0x1d1c('0x99')][_0x1d1c('0x45')](_0x252671,_0x3cb0b1),this[_0x1d1c('0x107')]['set'](_0x252671,_0x1248d9);}this[_0x1d1c('0xc6')](_0x1b4cb2,_0x23a2be,_0x57d4f3);}[_0x1d1c('0xc6')](_0x34f3f2,_0x19bb0b,_0x243729){for(const _0x1ec770 of this[_0x1d1c('0x74')][_0x1d1c('0xb5')](_0x34f3f2,_0x19bb0b))this[_0x1d1c('0x69')](_0x1ec770,_0x243729);for(const _0x2cf76a of this[_0x1d1c('0xf8')][_0x1d1c('0xca')]())_0x2cf76a['markers'][_0x1d1c('0x5c')]();for(const [_0x1c9976,_0x2cd8a1]of this[_0x1d1c('0x107')]){this['_diffRoots'][_0x1d1c('0x12')](_0x2cd8a1[_0x1d1c('0xa5')][_0x1d1c('0x5a')])[_0x1d1c('0x99')][_0x1d1c('0x45')](_0x1c9976,_0x2cd8a1[_0x1d1c('0x96')]());}const _0x22a2c3=new Map(),_0x4a4164=new Map();for(const [_0x25e0c1,_0x48cb72]of this[_0x1d1c('0xf8')])_0x22a2c3[_0x1d1c('0x45')](_0x25e0c1,q(_0x48cb72)),_0x4a4164[_0x1d1c('0x45')](_0x25e0c1,this[_0x1d1c('0xab')][_0x1d1c('0x12')](_0x25e0c1));this['_saveMetaData'](_0x19bb0b,_0x22a2c3,this['_markers'],_0x4a4164);}[_0x1d1c('0xc4')](_0x3a8547){const _0x504a99=Array[_0x1d1c('0x52')](this[_0x1d1c('0x6e')][_0x1d1c('0x16')]());_0x504a99[_0x1d1c('0x9b')]((_0xdfc615,_0x4fab34)=>_0xdfc615-_0x4fab34),_0x504a99['reverse']();for(const _0x43db3a of _0x504a99)if(_0x43db3a<_0x3a8547)return _0x43db3a;return Number[_0x1d1c('0x18')];}[_0x1d1c('0x42')](_0x502830,_0x2314f0){const _0x38f7c7=Array['from'](_0x2314f0[_0x1d1c('0x99')])['map'](([_0x6e3d6d,_0x496f7e])=>[_0x6e3d6d,this[_0x1d1c('0x5e')](_0x496f7e,_0x502830)]);_0x502830[_0x1d1c('0x99')]=new Map(_0x38f7c7);}['_transformMarkers'](_0x263fe1){for(const _0x204e3a of this[_0x1d1c('0x107')]['values']()){const _0x309ea0=_0x204e3a[_0x1d1c('0xdb')](_0x263fe1),_0x3bf870=_0x119ff0['_createFromRanges'](_0x309ea0);_0x204e3a[_0x1d1c('0x1a')]=_0x3bf870['start'],_0x204e3a[_0x1d1c('0x4e')]=_0x3bf870[_0x1d1c('0x4e')];}}['_handleOperation'](_0x16494f,_0x52be90){if(_0x1d1c('0x6d')==_0x16494f[_0x1d1c('0xbf')]||_0x1d1c('0x26')==_0x16494f[_0x1d1c('0xbf')])return void this[_0x1d1c('0xd')](_0x16494f,_0x52be90);if(_0x1d1c('0xe8')==_0x16494f[_0x1d1c('0xbf')]){const _0x167219=_0x16494f[_0x1d1c('0x70')]['root'][_0x1d1c('0x5a')];this['_diffRoots']['has'](_0x167219)||(this[_0x1d1c('0xf8')][_0x1d1c('0x45')](_0x167219,G(_0x167219,!0x0)),this['_diffRootsAttributes']['set'](_0x167219,{}),_0x52be90&&this[_0x1d1c('0x90')][_0x1d1c('0x45')](_0x167219,G(_0x167219,!0x0)));}else{if(_0x1d1c('0x94')==_0x16494f['type']||'removeRootAttribute'==_0x16494f[_0x1d1c('0xbf')]||'changeRootAttribute'==_0x16494f['type'])return void this[_0x1d1c('0xf4')](_0x16494f);}const _0x27b47d=this[_0x1d1c('0xd0')](_0x16494f,this['_diffRoots']);if(_0x1d1c('0x4a')!==_0x16494f['type']&&(_0x27b47d['_execute'](),this[_0x1d1c('0x11')](_0x27b47d)),_0x52be90)switch(_0x27b47d[_0x1d1c('0xbf')]){case'insert':this[_0x1d1c('0xac')](_0x16494f);break;case _0x1d1c('0x56'):case _0x1d1c('0x75'):case _0x1d1c('0x1c'):this[_0x1d1c('0xbd')](_0x16494f);break;case _0x1d1c('0x7'):this[_0x1d1c('0x41')](_0x16494f);break;case _0x1d1c('0xf6'):this[_0x1d1c('0x108')](_0x16494f);break;case _0x1d1c('0x4a'):this['_handleMarkerOperation'](_0x16494f);}}[_0x1d1c('0xd0')](_0x4a55a6,_0xbaec52){const _0x896567=_0x4a55a6[_0x1d1c('0x96')]();return _0x896567['_authorId']=_0x4a55a6[_0x1d1c('0x25')],this[_0x1d1c('0xd8')](_0x896567,_0xbaec52),_0x896567;}[_0x1d1c('0xde')](_0x3de0d0){return _0x3de0d0[_0x1d1c('0xfa')](_0x5bd679=>{const _0x46c36d=this[_0x1d1c('0xdd')](_0x5bd679);return Number(_0x5bd679[_0x1d1c('0x85')][_0x1d1c('0x58')](_0x46c36d));});}[_0x1d1c('0x59')](_0x688a95,_0x10be1c){if(_0x688a95['is'](_0x1d1c('0x5b'),_0x1d1c('0xcb')))_0x10be1c[_0x1d1c('0xae')]({'item':_0x688a95,'type':'text'});else{_0x688a95['is'](_0x1d1c('0x5b'))&&_0x10be1c[_0x1d1c('0xae')]({'item':_0x688a95,'type':_0x1d1c('0x2')});for(const _0x33da54 of _0x688a95['getChildren']())this[_0x1d1c('0x59')](_0x33da54,_0x10be1c);_0x688a95['is'](_0x1d1c('0x5b'))&&_0x10be1c[_0x1d1c('0xae')]({'item':_0x688a95,'type':_0x1d1c('0xbc')});}return _0x10be1c;}[_0x1d1c('0x93')](){const _0x40cb01=new Map(this[_0x1d1c('0x2b')]),_0x5bd3fa=new Map(_0x40cb01),_0x2d8d27=new Map(),_0x14fc3c={'insertions':{},'deletions':{}},_0x4aae66={'insertions':{},'deletions':{}},_0x1b48e1=new Map(),_0xfde3c3=new Set([...this[_0x1d1c('0x3')][_0x1d1c('0x16')](),...this[_0x1d1c('0xf8')]['keys']()]);_0xfde3c3[_0x1d1c('0x4f')]('$graveyard');for(const _0x152099 of _0xfde3c3){const _0x2aa522=this[_0x1d1c('0xf8')][_0x1d1c('0x12')](_0x152099)||G(_0x152099,!0x1),_0x426e74=this[_0x1d1c('0x3')][_0x1d1c('0x12')](_0x152099)||G(_0x152099,!0x1);_0x2aa522[_0x1d1c('0x87')]()||_0x426e74['isAttached']()?(_0x14fc3c[_0x1d1c('0xeb')][_0x152099]=q(_0x2aa522),_0x14fc3c[_0x1d1c('0xaa')][_0x152099]=q(_0x426e74),this[_0x1d1c('0x42')](_0x14fc3c[_0x1d1c('0xaa')][_0x152099],_0x426e74),this['_copyMarkers'](_0x14fc3c[_0x1d1c('0xeb')][_0x152099],_0x2aa522),_0x4aae66[_0x1d1c('0xeb')][_0x152099]=this[_0x1d1c('0x59')](this[_0x1d1c('0x90')][_0x1d1c('0x12')](_0x152099),[]),_0x4aae66['deletions'][_0x152099]=this['_generateTape'](this[_0x1d1c('0xfe')][_0x1d1c('0x12')](_0x152099)||G(_0x152099,!0x1),[])):_0xfde3c3[_0x1d1c('0x4f')](_0x152099);}for(const _0x7d472 of _0xfde3c3){const _0x196cef=_0x4aae66[_0x1d1c('0xeb')][_0x7d472];for(const _0x14c4eb of _0x196cef){const _0x21cefd=this['_getVidAttributeName'](_0x14c4eb),_0x4f1c8d=_0x14c4eb[_0x1d1c('0x85')][_0x1d1c('0x58')](_0x21cefd);_0x5bd3fa[_0x1d1c('0x4f')](_0x4f1c8d),_0x4f1c8d>=this[_0x1d1c('0xcd')]&&_0x2d8d27[_0x1d1c('0x45')](_0x4f1c8d,_0x40cb01[_0x1d1c('0x12')](_0x4f1c8d));}}for(const _0x269a9d of _0xfde3c3){const _0x30ecaf=_0x4aae66[_0x1d1c('0xeb')][_0x269a9d],_0xf0785b=this[_0x1d1c('0xde')](_0x4aae66[_0x1d1c('0xaa')][_0x269a9d]);let _0x174ce3=0x0;for(const _0x47ba68 of _0x30ecaf){const _0x395e8c=this[_0x1d1c('0xdd')](_0x47ba68),_0x2e8097=_0x47ba68[_0x1d1c('0x85')][_0x1d1c('0x58')](_0x395e8c);if(!_0x2d8d27[_0x1d1c('0xc5')](_0x2e8097)&&!_0x1b48e1[_0x1d1c('0xc5')](_0x2e8097)){if(_0x5bd3fa[_0x1d1c('0xc5')](_0x2e8097))_0x174ce3++;else{if(_0x2e8097!=_0xf0785b[_0x174ce3]){const _0x105226=_0x40cb01['get'](_0x2e8097)||_0x40cb01[_0x1d1c('0x12')](_0xf0785b[_0x174ce3]);for(;_0x2e8097!=_0xf0785b[_0x174ce3];)_0x5bd3fa[_0x1d1c('0xc5')](_0xf0785b[_0x174ce3])||(_0x1b48e1[_0x1d1c('0x45')](_0xf0785b[_0x174ce3],_0x105226),_0x40cb01[_0x1d1c('0x45')](_0xf0785b[_0x174ce3],_0x105226)),_0x174ce3++;}_0x174ce3++;}}}}for(const _0x3b75ec of _0xfde3c3){const _0x35fa1a=_0x4aae66['insertions'][_0x3b75ec];for(const _0x1f8974 of _0x35fa1a){const _0x4e55e6=this[_0x1d1c('0xdd')](_0x1f8974),_0x54a6d1=_0x1f8974[_0x1d1c('0x85')][_0x1d1c('0x58')](_0x4e55e6);if(_0x1b48e1['has'](_0x54a6d1)){const _0x172280=_0x1b48e1[_0x1d1c('0x12')](_0x54a6d1);_0x5bd3fa[_0x1d1c('0xc5')](_0x54a6d1)||_0x5bd3fa['set'](_0x54a6d1,{..._0x172280}),_0x2d8d27[_0x1d1c('0x45')](_0x54a6d1,{..._0x172280});}}}for(const _0xada161 of _0x5bd3fa[_0x1d1c('0x16')]())_0xada161>=this[_0x1d1c('0xcd')]&&_0x5bd3fa[_0x1d1c('0x4f')](_0xada161);const _0x3837e7=new Map();for(const _0x327bcd of _0xfde3c3){let _0xdc1362=_0x4aae66[_0x1d1c('0xeb')][_0x327bcd];for(const _0x3a7654 of _0xdc1362)if(_0x3a7654[_0x1d1c('0x85')]['is']('element',_0x1d1c('0x36'))){const _0x68f3ed=this[_0x1d1c('0xdd')](_0x3a7654),_0xeb7e1=_0x3a7654[_0x1d1c('0x85')][_0x1d1c('0x58')](_0x68f3ed);if(_0x2d8d27[_0x1d1c('0xc5')](_0xeb7e1)){const _0x2fe5f2=_0x3a7654[_0x1d1c('0x85')]['parent']['parent']['getAttribute'](_0x1d1c('0xcf')),_0x4598c6=_0x3837e7[_0x1d1c('0x12')](_0x2fe5f2)||new Set();_0x4598c6['add'](_0x2d8d27[_0x1d1c('0x12')](_0xeb7e1)['userId']),_0x3837e7['set'](_0x2fe5f2,_0x4598c6);}}_0xdc1362=_0x4aae66['deletions'][_0x327bcd];for(const _0x586068 of _0xdc1362)if(_0x586068[_0x1d1c('0x85')]['is']('element','tableCell')){const _0x37376e=this[_0x1d1c('0xdd')](_0x586068),_0x3c56a9=_0x586068[_0x1d1c('0x85')][_0x1d1c('0x58')](_0x37376e);if(_0x5bd3fa[_0x1d1c('0xc5')](_0x3c56a9)){const _0x4e91b2=_0x586068[_0x1d1c('0x85')]['parent'][_0x1d1c('0xd2')][_0x1d1c('0x58')](_0x1d1c('0xcf')),_0x45adb3=_0x3837e7[_0x1d1c('0x12')](_0x4e91b2)||new Set();_0x45adb3[_0x1d1c('0x3a')](_0x5bd3fa[_0x1d1c('0x12')](_0x3c56a9)['userId']),_0x3837e7[_0x1d1c('0x45')](_0x4e91b2,_0x45adb3);}}for(const _0x1bd7e6 of _0x3837e7[_0x1d1c('0x16')]())(_0x2d8d27['has'](_0x1bd7e6)||_0x5bd3fa[_0x1d1c('0xc5')](_0x1bd7e6))&&_0x3837e7[_0x1d1c('0x4f')](_0x1bd7e6);}for(const _0x345b18 of _0xfde3c3){const _0xc8727e=_0x4aae66['insertions'][_0x345b18];let _0x146d78=null,_0x6dc203=null;for(const _0x3796d8 of _0xc8727e){const _0x42e263=this[_0x1d1c('0xdd')](_0x3796d8),_0x20e54d=_0x3796d8['item'][_0x1d1c('0x58')](_0x42e263),_0x395922=_0x3837e7[_0x1d1c('0x12')](_0x20e54d);_0x395922&&_0x1d1c('0x2')==_0x3796d8[_0x1d1c('0xbf')]&&(_0x146d78=Array[_0x1d1c('0x52')](_0x395922)[0x0],_0x6dc203=_0x3796d8[_0x1d1c('0x85')][_0x1d1c('0x58')]('vid_end')),_0x146d78&&(_0x5bd3fa[_0x1d1c('0x45')](_0x20e54d,{'userId':_0x146d78}),_0x2d8d27[_0x1d1c('0x45')](_0x20e54d,{'userId':_0x146d78})),_0x20e54d==_0x6dc203&&(_0x146d78=null,_0x6dc203=null);}}const _0x365c24={},_0x8d4632=new Set();for(const _0x2cc129 of _0xfde3c3){const _0x447821=_0x14fc3c[_0x1d1c('0xaa')][_0x2cc129],_0x1da6f6=_0x14fc3c[_0x1d1c('0xeb')][_0x2cc129];for(const {userId:_0x30438d}of this['_touchedMarkers'][_0x1d1c('0xca')]())null!==_0x30438d&&_0x8d4632[_0x1d1c('0x3a')](_0x30438d);for(const {userId:_0x3c833f}of this['_touchedRoots'][_0x1d1c('0xca')]())null!==_0x3c833f&&_0x8d4632[_0x1d1c('0x3a')](_0x3c833f);this[_0x1d1c('0x95')](_0x1da6f6,_0x4aae66[_0x1d1c('0xeb')][_0x2cc129],_0x2d8d27,_0x1d1c('0x6'),_0x8d4632),this['_markChanges'](_0x447821,_0x4aae66[_0x1d1c('0xaa')][_0x2cc129],_0x5bd3fa,_0x1d1c('0x103'),_0x8d4632),_0x365c24[_0x2cc129]={'insertions':this[_0x1d1c('0xe0')](_0x1da6f6),'deletions':this[_0x1d1c('0xe0')](_0x447821),'attachChange':this[_0x1d1c('0xbb')][_0x1d1c('0x12')](_0x2cc129)||null,'attributesBefore':_0xcf531c(this[_0x1d1c('0x6a')][_0x1d1c('0x12')](_0x2cc129))||{},'attributesAfter':_0xcf531c(this[_0x1d1c('0xab')]['get'](_0x2cc129))};}return{'diffData':_0x365c24,'authorsIds':Array['from'](_0x8d4632)};}[_0x1d1c('0xc2')](_0x133df7){for(const [,_0xe54d7e]of _0x133df7[_0x1d1c('0x99')]){const _0x5a0b10=_0xe54d7e['start'][_0x1d1c('0x97')]()['filter'](_0x599660=>'tableCell'==_0x599660[_0x1d1c('0x66')]);for(const _0x45a00b of _0x5a0b10)0x1==_0x45a00b[_0x1d1c('0x84')]&&_0x45a00b[_0x1d1c('0x51')](0x0)['is'](_0x1d1c('0x5b'),_0x1d1c('0x3e'))&&_0x45a00b[_0x1d1c('0x51')](0x0)[_0x1d1c('0x28')](_0x1d1c('0x9a'),!0x0);}}['_prepareViewToSave'](_0x4eeaf2){this[_0x1d1c('0xc2')](_0x4eeaf2);const _0xa878ff=this[_0x1d1c('0x37')][_0x1d1c('0xe9')][_0x1d1c('0xd5')](_0x4eeaf2,{}),_0x3fc8d6=Array[_0x1d1c('0x52')](_0xa878ff[_0x1d1c('0xc8')]())[_0x1d1c('0xfa')](_0x4160c0=>this[_0x1d1c('0xf3')](_0x4160c0));return JSON['stringify'](_0x3fc8d6);}[_0x1d1c('0xf3')](_0x47c997){if(_0x47c997['is'](_0x1d1c('0xcb')))return _0x47c997[_0x1d1c('0xe9')];{const _0x7a255a=_0x47c997;return{'type':Object['keys'](B)['find'](_0x15dd3c=>_0x47c997 instanceof B[_0x15dd3c]),'name':_0x7a255a[_0x1d1c('0x66')],'attributes':Array[_0x1d1c('0x52')](_0x7a255a[_0x1d1c('0x48')]()),'children':Array[_0x1d1c('0x52')](_0x7a255a['getChildren']())['map'](_0x51473f=>this['_getViewJson'](_0x51473f))};}}[_0x1d1c('0x95')](_0x3d3f18,_0x51e8b4,_0x434470,_0x3fe243,_0x235989){let _0x4718ab=null,_0x24184d=null,_0x255994=0x0;const _0x17310b=this[_0x1d1c('0x37')]['model'];for(let _0x475381=0x0;_0x475381<_0x51e8b4['length'];_0x475381++){const _0x50fba7=this[_0x1d1c('0xdd')](_0x51e8b4[_0x475381]),_0x99a48=_0x51e8b4[_0x475381][_0x1d1c('0x85')][_0x1d1c('0x58')](_0x50fba7),_0x1b0070=_0x434470['get'](_0x99a48),_0x3adfdb=_0x475381==_0x51e8b4['length']-0x1;(!_0x4718ab&&_0x1b0070&&(_0x4718ab=_0x1b0070,_0x24184d=_0x51e8b4[_0x475381]),_0x4718ab&&(!_0x1b0070||_0x1b0070[_0x1d1c('0xce')]!=_0x4718ab[_0x1d1c('0xce')]))&&(_0x5767d8(_0x1b0070,L(_0x24184d,_0x3d3f18,_0x17310b),L(_0x51e8b4[_0x475381],_0x3d3f18,_0x17310b)),_0x4718ab=_0x1b0070||null,_0x24184d=_0x1b0070?_0x51e8b4[_0x475381]:null),_0x4718ab&&_0x3adfdb&&_0x5767d8(_0x1b0070,L(_0x24184d,_0x3d3f18,_0x17310b),W(_0x51e8b4[_0x475381],_0x3d3f18,_0x17310b));}function _0x5767d8(_0x3a805d,_0x1a6a33,_0x41ce9d){const _0x485122=_0x4718ab[_0x1d1c('0xce')],_0x58b87f=_0x1d1c('0x4b')+_0x3fe243+':'+_0x485122+':'+_0x255994++,_0xb2911e=_0x17310b['createRange'](_0x1a6a33,_0x41ce9d);_0x3d3f18['markers'][_0x1d1c('0x45')](_0x58b87f,_0xb2911e),null!==_0x485122&&_0x235989[_0x1d1c('0x3a')](_0x485122);}}['_getVidAttributeName'](_0x24bffc){switch(_0x24bffc['type']){case _0x1d1c('0x2'):return'vid_start';case'elementEnd':return _0x1d1c('0x105');default:return'vid';}}['_fixOperation'](_0x111bd7,_0x3491d2){_0x111bd7[_0x1d1c('0xf1')]=null;for(const _0x52f4eb in _0x111bd7){const _0x32b899=_0x111bd7[_0x52f4eb];if(_0x32b899 instanceof _0x4cdda2){const _0x344578=_0x3491d2['get'](_0x32b899[_0x1d1c('0xa5')][_0x1d1c('0x5a')]);_0x111bd7[_0x52f4eb]=this['_fixPosition'](_0x32b899,_0x344578);}if(_0x32b899 instanceof _0x119ff0){const _0x5ec0cb=_0x3491d2[_0x1d1c('0x12')](_0x32b899[_0x1d1c('0xa5')][_0x1d1c('0x5a')]);_0x111bd7[_0x52f4eb]=this[_0x1d1c('0x5e')](_0x32b899,_0x5ec0cb);}'root'===_0x52f4eb&&(_0x111bd7[_0x1d1c('0xa5')]=_0x3491d2[_0x1d1c('0x12')](_0x111bd7[_0x1d1c('0xa5')][_0x1d1c('0x5a')]));}}[_0x1d1c('0x5e')](_0x33628e,_0x2321a5){return this[_0x1d1c('0x37')][_0x1d1c('0x4')]['createRange'](this[_0x1d1c('0x8f')](_0x33628e[_0x1d1c('0x1a')],_0x2321a5),this['_fixPosition'](_0x33628e[_0x1d1c('0x4e')],_0x2321a5));}[_0x1d1c('0x8f')](_0x9f40ac,_0x137e04){return this[_0x1d1c('0x37')][_0x1d1c('0x4')][_0x1d1c('0x8c')](_0x137e04,_0x9f40ac[_0x1d1c('0x4c')],_0x9f40ac['stickiness']);}[_0x1d1c('0xac')](_0x55698f){const _0x19e7a7=this[_0x1d1c('0x90')][_0x1d1c('0x12')](_0x55698f[_0x1d1c('0x70')][_0x1d1c('0xa5')][_0x1d1c('0x5a')]),_0x1a5019=this[_0x1d1c('0x8f')](_0x55698f[_0x1d1c('0x70')],_0x19e7a7),_0x2a52a4=null===_0x55698f[_0x1d1c('0x25')]?null:_0x55698f['_authorId']||this['editor'][_0x1d1c('0xa3')]['get'](_0x1d1c('0xa9'))['me']['id'],_0x58610b=_0x1a5019['parent'],_0x41d580=this[_0x1d1c('0xa4')],_0x32895d=[];for(const _0x1fdb75 of _0x55698f['nodes'])if(_0x1fdb75['is'](_0x1d1c('0x5b')))_0x32895d[_0x1d1c('0xae')](this[_0x1d1c('0x15')](_0x1fdb75));else for(let _0x5cc583=0x0;_0x5cc583<_0x1fdb75[_0x1d1c('0xb4')];_0x5cc583++)_0x32895d['push'](new _0x4e05a5(_0x1d1c('0xcb'),{'vid':this[_0x1d1c('0xa4')]++}));const _0x20724f=this[_0x1d1c('0xa4')];for(let _0x27818b=_0x41d580;_0x27818b<_0x20724f;_0x27818b++)this[_0x1d1c('0x2b')]['set'](_0x27818b,{'userId':_0x2a52a4});_0x58610b[_0x1d1c('0x40')](_0x1a5019['offset'],_0x32895d);}[_0x1d1c('0xbd')](_0x2ecc80){(_0x2ecc80=this[_0x1d1c('0xd0')](_0x2ecc80,this['_idsRoots']))['_execute']();const _0x3ca470=null===_0x2ecc80[_0x1d1c('0x25')]?null:_0x2ecc80[_0x1d1c('0x25')]||this[_0x1d1c('0x37')][_0x1d1c('0xa3')][_0x1d1c('0x12')](_0x1d1c('0xa9'))['me']['id'],_0x19f8a5=_0x2ecc80[_0x1d1c('0x60')](),_0x3da047=_0x19f8a5['parent'],_0x1ad29e=_0x19f8a5[_0x1d1c('0xb')];!function _0x4dcd78(_0x8975e6,_0x330531,_0x3cfb10,_0x359095){for(let _0x21dfde=_0x3cfb10;_0x21dfde<_0x359095;_0x21dfde++){const _0x116157=_0x330531['getChild'](_0x21dfde);_0x116157['is']('element',_0x1d1c('0xcb'))?_0x8975e6[_0x1d1c('0x45')](_0x116157[_0x1d1c('0x58')](_0x1d1c('0x7a')),{'userId':_0x3ca470}):(_0x8975e6['set'](_0x116157['getAttribute'](_0x1d1c('0xcf')),{'userId':_0x3ca470}),_0x4dcd78(_0x8975e6,_0x116157,0x0,_0x116157[_0x1d1c('0x84')]),_0x8975e6['set'](_0x116157[_0x1d1c('0x58')](_0x1d1c('0x105')),{'userId':_0x3ca470}));}}(this[_0x1d1c('0x2b')],_0x3da047,_0x1ad29e,_0x1ad29e+_0x2ecc80[_0x1d1c('0x9d')]);}['_handleMergeOperation'](_0x190b03){const _0x2bca9a=null===(_0x190b03=this[_0x1d1c('0xd0')](_0x190b03,this['_idsRoots']))['_authorId']?null:_0x190b03[_0x1d1c('0x25')]||this[_0x1d1c('0x37')][_0x1d1c('0xa3')][_0x1d1c('0x12')](_0x1d1c('0xa9'))['me']['id'],_0x459883=_0x190b03[_0x1d1c('0xfd')]['parent'],_0x4eecd3=_0x190b03[_0x1d1c('0xa1')][_0x1d1c('0xd2')],_0x502c80=_0x459883[_0x1d1c('0x58')](_0x1d1c('0x105')),_0x468c3b=_0x4eecd3[_0x1d1c('0x58')](_0x1d1c('0xcf'));_0x459883[_0x1d1c('0x28')](_0x1d1c('0x105'),_0x4eecd3[_0x1d1c('0x58')](_0x1d1c('0x105'))),_0x4eecd3['_setAttribute']('vid_end',_0x502c80),this[_0x1d1c('0x2b')][_0x1d1c('0x45')](_0x468c3b,{'userId':_0x2bca9a}),this[_0x1d1c('0x2b')][_0x1d1c('0x45')](_0x502c80,{'userId':_0x2bca9a}),_0x190b03['_execute']();}['_handleSplitOperation'](_0x1cfd4f){const _0x1d72cb=null===(_0x1cfd4f=this[_0x1d1c('0xd0')](_0x1cfd4f,this['_idsRoots']))[_0x1d1c('0x25')]?null:_0x1cfd4f[_0x1d1c('0x25')]||this[_0x1d1c('0x37')]['plugins'][_0x1d1c('0x12')](_0x1d1c('0xa9'))['me']['id'],_0x49b7ec=_0x1cfd4f['graveyardPosition'],_0x544f65=_0x1cfd4f[_0x1d1c('0xec')]['parent'];_0x1cfd4f['_execute']();const _0x54f75b=_0x544f65[_0x1d1c('0x58')](_0x1d1c('0x105')),_0x218ce4=_0x1cfd4f[_0x1d1c('0x80')][_0x1d1c('0x3c')];if(_0x49b7ec){const _0xa24763=_0x218ce4[_0x1d1c('0x58')]('vid_end'),_0x4e09f9=_0x544f65['getAttribute'](_0x1d1c('0x105'));_0x544f65['_setAttribute'](_0x1d1c('0x105'),_0xa24763),_0x218ce4[_0x1d1c('0x28')](_0x1d1c('0x105'),_0x4e09f9),this[_0x1d1c('0x2b')][_0x1d1c('0x45')](_0x544f65['getAttribute'](_0x1d1c('0x105')),{'userId':_0x1d72cb}),this[_0x1d1c('0x2b')][_0x1d1c('0x45')](_0x218ce4['getAttribute'](_0x1d1c('0xcf')),{'userId':_0x1d72cb});}else{const _0x2a9e64=this['_revisionId']++,_0x337468=this[_0x1d1c('0xa4')]++;_0x544f65[_0x1d1c('0x28')](_0x1d1c('0x105'),_0x2a9e64),_0x218ce4[_0x1d1c('0x28')]('vid_start',_0x337468),_0x218ce4[_0x1d1c('0x28')](_0x1d1c('0x105'),_0x54f75b),this[_0x1d1c('0x2b')][_0x1d1c('0x45')](_0x2a9e64,{'userId':_0x1d72cb}),this[_0x1d1c('0x2b')][_0x1d1c('0x45')](_0x337468,{'userId':_0x1d72cb});}}[_0x1d1c('0x8d')](_0x21d7bb){if(!_0x21d7bb[_0x1d1c('0xff')])return;const _0x41f1e3=(_0x21d7bb=this[_0x1d1c('0xd0')](_0x21d7bb,this[_0x1d1c('0xf8')]))[_0x1d1c('0x27')]?_0x21d7bb[_0x1d1c('0x27')]['root']:null,_0x92d96d=_0x21d7bb[_0x1d1c('0xb6')]?_0x21d7bb[_0x1d1c('0xb6')][_0x1d1c('0xa5')]:null;_0x41f1e3&&this['_markers'][_0x1d1c('0x4f')](_0x21d7bb['name']),_0x92d96d&&this[_0x1d1c('0x107')]['set'](_0x21d7bb[_0x1d1c('0x66')],_0x21d7bb[_0x1d1c('0xb6')][_0x1d1c('0x96')]());const _0x9833ff=null===_0x21d7bb[_0x1d1c('0x25')]?null:_0x21d7bb[_0x1d1c('0x25')]||this[_0x1d1c('0x37')][_0x1d1c('0xa3')][_0x1d1c('0x12')](_0x1d1c('0xa9'))['me']['id'],_0x5b147b=_0x21d7bb[_0x1d1c('0x66')];if(!this[_0x1d1c('0xf5')]['has'](_0x5b147b))return void this[_0x1d1c('0xf5')][_0x1d1c('0x45')](_0x5b147b,{'range':_0x21d7bb['oldRange'],'userId':_0x9833ff});const _0x40a6e1=this[_0x1d1c('0xf5')][_0x1d1c('0x12')](_0x5b147b),_0x32ba1f=_0x40a6e1[_0x1d1c('0xad')],_0x16a8a0=_0x21d7bb[_0x1d1c('0xb6')];null==_0x32ba1f&&null==_0x16a8a0||_0x32ba1f&&_0x16a8a0&&_0x32ba1f[_0x1d1c('0x2d')](_0x16a8a0)?this[_0x1d1c('0xf5')]['delete'](_0x21d7bb[_0x1d1c('0x66')]):_0x40a6e1['userId']=_0x9833ff;}[_0x1d1c('0xd')](_0xa91520,_0x3f17c8){this[_0x1d1c('0xf8')][_0x1d1c('0xc5')](_0xa91520['rootName'])?this[_0x1d1c('0xf8')][_0x1d1c('0x12')](_0xa91520['rootName'])[_0x1d1c('0xfb')]=_0xa91520[_0x1d1c('0x14')]:(this[_0x1d1c('0xf8')]['set'](_0xa91520[_0x1d1c('0x5a')],G(_0xa91520['rootName'],!0x0)),this[_0x1d1c('0xab')][_0x1d1c('0x45')](_0xa91520[_0x1d1c('0x5a')],{}),_0x3f17c8&&this[_0x1d1c('0x90')][_0x1d1c('0x45')](_0xa91520[_0x1d1c('0x5a')],G(_0xa91520[_0x1d1c('0x5a')],!0x0)));const _0x5cd261=null===_0xa91520[_0x1d1c('0x25')]?null:_0xa91520[_0x1d1c('0x25')]||this[_0x1d1c('0x37')][_0x1d1c('0xa3')][_0x1d1c('0x12')]('Users')['me']['id'],_0x611da6=this[_0x1d1c('0xbb')][_0x1d1c('0x12')](_0xa91520[_0x1d1c('0x5a')]);_0x611da6&&_0x611da6[_0x1d1c('0xce')]===_0x5cd261?this[_0x1d1c('0xbb')][_0x1d1c('0x4f')](_0xa91520[_0x1d1c('0x5a')]):this[_0x1d1c('0xbb')]['set'](_0xa91520['rootName'],{'userId':_0x5cd261,'isAttached':_0xa91520[_0x1d1c('0x14')]});}[_0x1d1c('0xf4')](_0x11b8dc){const _0x3981c8=this['_diffRootsAttributes'][_0x1d1c('0x12')](_0x11b8dc[_0x1d1c('0xa5')][_0x1d1c('0x5a')]);null===_0x11b8dc[_0x1d1c('0xd6')]?delete _0x3981c8[_0x11b8dc[_0x1d1c('0x6f')]]:_0x3981c8[_0x11b8dc[_0x1d1c('0x6f')]]=_0x11b8dc[_0x1d1c('0xd6')];}}function q(_0x144932){const _0x43f407=G(_0x144932[_0x1d1c('0x5a')],_0x144932[_0x1d1c('0x87')]());for(const _0x150e52 of _0x144932[_0x1d1c('0xc8')]()){const _0x1cf199=_0x150e52[_0x1d1c('0x3f')](!0x0);_0x43f407[_0x1d1c('0xa8')](_0x1cf199);}return _0x43f407;}function G(_0x34043d,_0x202b97=!0x0){const _0x79478a=new _0x51e9cc();return _0x79478a['rootName']=_0x34043d,_0x79478a['_isAttached']=_0x202b97,_0x79478a[_0x1d1c('0x87')]=()=>_0x79478a['_isAttached'],_0x79478a;}function L(_0x1915eb,_0x28b25d,_0x1c623f){const _0x54093d=_0x1d1c('0xbc')==_0x1915eb[_0x1d1c('0xbf')]?_0x1c623f['createPositionAt'](_0x1915eb[_0x1d1c('0x85')],_0x1d1c('0x4e')):_0x1c623f[_0x1d1c('0x38')](_0x1915eb[_0x1d1c('0x85')]);return _0x1c623f['createPositionFromPath'](_0x28b25d,_0x54093d[_0x1d1c('0x4c')],_0x54093d[_0x1d1c('0x34')]);}function W(_0x590577,_0x17722d,_0x189c44){const _0x10b5d0=_0x1d1c('0x2')==_0x590577['type']?_0x189c44[_0x1d1c('0x88')](_0x590577[_0x1d1c('0x85')],0x0):_0x189c44[_0x1d1c('0x101')](_0x590577[_0x1d1c('0x85')]);return _0x189c44[_0x1d1c('0x8c')](_0x17722d,_0x10b5d0['path'],_0x10b5d0[_0x1d1c('0x34')]);}