@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230829.0 → 0.0.0-nightly-20230830.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 _0x6bbe=['paragraph','hasContent','roots','model','addRoot','PendingActions','offsetSize','initialData','afterInit','set','elementStart','nodeAfter','_getBaseVids','adapter','finally','baseVersion','_baseRootsAttributes','getData','_bufferUpdate','attributesBefore','resolve','_revisionDataBuilder','sourcePosition','clone','isEqual','_applyOperations','_fixOperation','_handleInsertOperation','_getFromVersion','getOperation','documentFragment','marked','getRevisions','newValue','delete','markerToData','_authorId','element','_copyMarkers','requires','_revisionId','_getPreviousFrom','deletions','_fixPosition','$graveyard','_handleRootOperation','locale','keepParagraph','dataToMarker','setSource','define','trim','deletion','_handleRootAttributeOperation','_calculateMetaData','getChild','_savedMetaData','merge','_createCurrentRevision','stickiness','$text','getRevisionDocumentData','vid_start','parent','isAttached','_clone','_isInit','parse','RealTimeCollaborationClient','_execute','editing','type','keys','previousPosition','getRoot','_handleMoveOperation','offset','isAdd','data-revision-','_startingRevisionId','add','_operations','collaboration.channelId','getNodeByPath','currentRevision','splitPosition','attributes','values','_reset','targetPosition','slice','getRootNames','Initial\x20revision','affectsData','createPositionFromPath','revision','creator','addRevisionData','rootName','startsWith','_addPendingAction','removeRootAttribute','path','getLatestVersion','stringify','key','nodes','PENDING_ACTION_REVISION_HISTORY','_processRootBeforeSave','_baseRoots','item','_loadRevisionData','getMovedRangeStart','_appendChild','_isAttached','diffData','createRange','_makeModelFromViewString','getAncestors','markers','tableCell','shift','getAttribute','history','for','_lastFrom','reinsert','_source','authors','addRevision','_makeRevision','_prepareViewToSave','authorsIds','elementEnd','getChildren','_handleMarkerOperation','Users','_isPendingUpdate','_getState','_pendingAction','_markers','getCurrentRevisionId','name','isEnabled','_getViewJson','processor','getRevision','string','_setConversion','detachRoot','_markChanges','createPositionAt','init','split','graveyardPosition','attributesAfter','size','_getVidAttributeName','find','_insertChild','reverse','update','includes','_handleMergeOperation','source','insertions','_handleOperation','some','children','remove','clear','toView','get','newRange','creatorId','_startingVersion','push','root','reInit','version','_removeMetaData','sendBufferedUpdates','childCount','toVersion','config','oldRange','start','_touched','ready','insertion','buildRevisionData','createPositionAfter','getWalker','data','filter','loadState','attachChange','createRevision','_cloneOperation','setRevisionData','_removePendingAction','createdAt','_loadState','getIndex','NEGATIVE_INFINITY','createRangeIn','updateRevisions','_handleSplitOperation','useFillerType','revision:','vid_end','vid','plugins','then','_setAttribute','sort','howMany','has','from','map','_touchedMarkers','getUser','text','view','_initialRevisionId','isReady','_diffRoots','_transformMarkers','_bufferedUpdates','editor','dataDowncast','_loadedStateData','RevisionsRepository','_createFromRanges','_generateTape','_continueCurrentRevision','_lastTo','end','_saveMetaData','_touchedRoots','_fixRange','default','insert','_findInsertionIndex','repository','_update','rootsAttributes','revisionHistory.resumeUnsavedRevision','_idsRoots','createPositionBefore','marker','_makeIdsRoot','position','_diffRootsAttributes','length','getRange','_baseIdsRoots','bind','fromVersion','userId','document','_removeRevisionMarkers','changeRootAttribute'];(function(_0x97f3e9,_0x6bbed6){const _0x5e1555=function(_0x556b8f){while(--_0x556b8f){_0x97f3e9['push'](_0x97f3e9['shift']());}};_0x5e1555(++_0x6bbed6);}(_0x6bbe,0x8b));const _0x5e15=function(_0x97f3e9,_0x6bbed6){_0x97f3e9=_0x97f3e9-0x0;let _0x5e1555=_0x6bbe[_0x97f3e9];return _0x5e1555;};import{Users as _0xbc240e}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x5868c7,PendingActions as _0x3fa143}from'ckeditor5/src/core';import{logWarning as _0x2b693c,uid as _0x40f2ca}from'ckeditor5/src/utils';import{Position as _0x27cce9,Range as _0x1267ff,Element as _0x41cbf8,DocumentFragment as _0x143316,ViewText as _0x540e8f,ViewElement as _0x6f9192,ViewContainerElement as _0x21bfff,ViewAttributeElement as _0xdff235,ViewEmptyElement as _0x249be3,ViewRawElement as _0x33bcf6,ViewUIElement as _0x164ab4,ViewDocumentFragment as _0x5c797f}from'ckeditor5/src/engine';import _0x106220 from'./revisionsrepository';import{getTranslation as _0x58a6dd}from'./utils/common-translations';import{cloneDeep as _0x6bddad,isEqual as _0x1dd850}from'lodash-es';const B={'c':_0x21bfff,'a':_0xdff235,'e':_0x249be3,'r':_0x33bcf6,'u':_0x164ab4};export default class l extends _0x5868c7{static get['pluginName'](){return'RevisionTracker';}static get[_0x5e15('0xa3')](){return[_0xbc240e,_0x106220,_0x3fa143];}constructor(_0x74c174){super(_0x74c174),this['adapter']=null,this[_0x5e15('0xd0')]=null,this[_0x5e15('0x91')]=new H(this[_0x5e15('0x5a')]),this[_0x5e15('0x55')]=this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0x21')]('collaboration.channelId')||'initial',this[_0x5e15('0x59')]=new Map(),this[_0x5e15('0x5c')]=null;const _0x504472=_0x40f2ca();this[_0x5e15('0xfb')]={'history':this['editor'][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0xf7')],'getLatestVersion':()=>Promise[_0x5e15('0x90')](this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')]['version']),'getCurrentRevisionId':()=>_0x504472},this[_0x5e15('0x85')](_0x5e15('0x56'),!0x1),this[_0x5e15('0x85')](_0x5e15('0x4'),!0x0),this[_0x5e15('0x85')](_0x5e15('0x105'),!0x1),this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0xae')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x5e15('0x5a')]['conversion']['for']('upcast')[_0x5e15('0xac')]({'view':_0x5e15('0xdb')});}['init'](){this['repository']=this['editor'][_0x5e15('0x49')]['get'](_0x5e15('0x5d')),this[_0x5e15('0x9')](),this[_0x5e15('0x5a')][_0x5e15('0x36')]['on'](_0x5e15('0x31'),()=>{const _0xc731e3=this[_0x5e15('0x69')][_0x5e15('0x7')](0x0),_0x15bfab=_0xc731e3&&null===_0xc731e3[_0x5e15('0xdc')]?_0xc731e3:null;if(this['_continueCurrentRevision']=!!_0x15bfab&&this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0x21')](_0x5e15('0x6c')),this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x4e')](_0x5e15('0xc0'))){const _0x280631=this['_source'][_0x5e15('0x2')](),_0x4febbf=this[_0x5e15('0x69')][_0x5e15('0x7')](_0x280631);if(_0x4febbf)this['_startingVersion']=_0x4febbf[_0x5e15('0x77')],this[_0x5e15('0x60')]=!0x1;else{const _0x21f7ef=this[_0x5e15('0xfb')]['history'][_0x5e15('0xcd')][_0x5e15('0x13')](_0x26c1f6=>!_0x26c1f6[_0x5e15('0xbe')]),_0x4407ac=_0x21f7ef?_0x21f7ef['baseVersion']:this['_source'][_0x5e15('0xf7')][_0x5e15('0x28')];_0xc731e3?(_0xc731e3[_0x5e15('0x2c')]<_0x4407ac&&_0xc731e3[_0x5e15('0x6a')]({'toVersion':_0x4407ac}),this[_0x5e15('0x60')]?(this[_0x5e15('0xfb')][_0x5e15('0x2')]=()=>_0x15bfab['id'],this[_0x5e15('0x24')]=_0x15bfab[_0x5e15('0x77')]):(this['_startingVersion']=_0xc731e3['toVersion'],this[_0x5e15('0x60')]=!0x1)):(this[_0x5e15('0x24')]=_0x4407ac,this[_0x5e15('0x60')]=!0x1);}}else _0x15bfab&&(this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0xf7')][_0x5e15('0x28')]=Math['max'](_0x15bfab[_0x5e15('0x2c')],this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0xf7')][_0x5e15('0x28')]),_0x15bfab[_0x5e15('0x77')]===_0x15bfab[_0x5e15('0x2c')]?(0x0!==_0x15bfab[_0x5e15('0x77')]&&(this['_source'][_0x5e15('0x2')]=()=>_0x15bfab['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source'][_0x5e15('0x2')]=()=>_0x15bfab['id'],this[_0x5e15('0x24')]=_0x15bfab[_0x5e15('0x77')])),this[_0x5e15('0x60')]||(this['_startingVersion']=this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0x28')]);this[_0x5e15('0x91')]['init'](this[_0x5e15('0xfb')][_0x5e15('0xf7')]),this['_createInitialRevision'](this[_0x5e15('0x24')]),this['_createCurrentRevision'](this[_0x5e15('0x24')]),this[_0x5e15('0x89')]&&this[_0x5e15('0x2a')]();}),this[_0x5e15('0x76')](_0x5e15('0x56'))['to'](this,_0x5e15('0x105'),_0x245404=>!_0x245404);}async[_0x5e15('0x84')](){if(this[_0x5e15('0x69')][_0x5e15('0x73')]>0x0){const _0x3016a4=this['repository'][_0x5e15('0x7')](0x0),_0x225b4d=await this[_0x5e15('0xb9')](_0x3016a4),_0x2c6339=await this['getRevisionRootsAttributes'](_0x3016a4);this['_replaceEditorDataWithRevisionData'](_0x225b4d,_0x2c6339);}}[_0x5e15('0xad')](_0x37415a){this[_0x5e15('0xfb')]=_0x37415a;}async[_0x5e15('0x16')](){const _0x2e3b36=await this['_source'][_0x5e15('0xe3')]();if(_0x2e3b36>this[_0x5e15('0xd0')]['toVersion']){await this[_0x5e15('0x3f')]();const _0x197618=this[_0x5e15('0x33')]({'revision':this[_0x5e15('0xd0')],'to':_0x2e3b36});_0x197618[_0x5e15('0xfc')]=_0x197618[_0x5e15('0x100')][_0x5e15('0x50')](_0x4a3566=>this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x104'))[_0x5e15('0x52')](_0x4a3566)),this[_0x5e15('0xd0')]['_update'](_0x197618);}}async['_loadState'](){this[_0x5e15('0x60')]&&!this[_0x5e15('0x5c')]&&(await this[_0x5e15('0xeb')](this[_0x5e15('0xd0')]),this[_0x5e15('0x91')][_0x5e15('0x38')](this[_0x5e15('0xd0')]),this[_0x5e15('0x5c')]={'fromVersion':this['currentRevision'][_0x5e15('0x77')],'authors':this[_0x5e15('0xd0')][_0x5e15('0xfc')][_0x5e15('0xd6')]()});}async['saveRevision'](_0x7ac5d8={},_0x5b07af=null){const _0x40d690=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5b07af>this[_0x5e15('0xd0')][_0x5e15('0x2c')]&&(_0x5b07af=null),null===_0x5b07af&&(_0x5b07af=await this['_source']['getLatestVersion']());const _0x3272ec=this[_0x5e15('0x98')](_0x5b07af),_0xcf1132=this[_0x5e15('0x33')]({'from':_0x3272ec,'to':_0x5b07af});if(this[_0x5e15('0xd0')][_0x5e15('0x2c')]<_0x5b07af){const _0x155b55=this[_0x5e15('0x33')]({'revision':this['currentRevision'],'from':_0x5b07af,'to':_0x5b07af});_0x155b55[_0x5e15('0xfc')]=[],_0x155b55[_0x5e15('0x100')]=[],_0x155b55['id']=this['currentRevision']['id'],this['currentRevision'][_0x5e15('0x6a')](_0x155b55,!0x0),delete _0x155b55[_0x5e15('0xfc')],_0x40d690[_0x5e15('0x25')](_0x155b55);}_0x7ac5d8['creatorId']=this['editor'][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x7ac5d8['name']=_0x7ac5d8[_0x5e15('0x3')]||null,_0x7ac5d8['id']=_0x7ac5d8['id']||_0x40f2ca(),_0x7ac5d8={..._0x7ac5d8,..._0xcf1132};const _0x535c07=this[_0x5e15('0xdd')](_0x7ac5d8);_0x40d690[_0x5e15('0x25')](_0x7ac5d8);const _0x366775=this['repository'][_0x5e15('0x40')](_0x535c07);if(0x0!==_0x366775){const _0x43554f=this[_0x5e15('0x69')][_0x5e15('0x7')](_0x366775-0x1);if(_0x43554f[_0x5e15('0x77')]!==_0x5b07af){const _0x5ba3c2=this['_revisionDataBuilder'][_0x5e15('0x8d')](_0x5b07af,_0x43554f['toVersion']),_0x4f6979={'id':_0x43554f['id'],'diffData':_0x5ba3c2[_0x5e15('0xef')],'authorsIds':_0x5ba3c2[_0x5e15('0x100')],'authors':_0x5ba3c2[_0x5e15('0x100')][_0x5e15('0x50')](_0x2e81f7=>this[_0x5e15('0x5a')]['plugins'][_0x5e15('0x21')](_0x5e15('0x104'))[_0x5e15('0x52')](_0x2e81f7)),'fromVersion':_0x5b07af};_0x43554f===this['currentRevision']&&(_0x4f6979[_0x5e15('0x3e')]=new Date(_0x7ac5d8[_0x5e15('0x3e')]['getTime']()+0xa)),_0x43554f['_update'](_0x4f6979,!0x0),delete _0x4f6979[_0x5e15('0xfc')],_0x40d690[_0x5e15('0x25')](_0x4f6979);}}if(this[_0x5e15('0x89')]){for(const _0x330581 of _0x40d690)this[_0x5e15('0x8e')](_0x330581['id'],_0x330581,!0x0);this['sendBufferedUpdates']();}return _0x535c07;}['addRevisionData'](_0x2fac9f){const _0xa925d4=this[_0x5e15('0x69')][_0x5e15('0x3a')](_0x2fac9f);return this[_0x5e15('0x89')]&&_0xa925d4['on'](_0x5e15('0x6a'),(_0x39ec68,_0x58c63e,_0x175bf9)=>{_0x175bf9||(this['_bufferUpdate'](_0x58c63e['id'],_0x58c63e,!0x0),this[_0x5e15('0x2a')]());}),this[_0x5e15('0x69')][_0x5e15('0xfd')](_0xa925d4,this[_0x5e15('0x68')](_0xa925d4)),_0xa925d4;}async[_0x5e15('0xb9')](_0x248321){await this[_0x5e15('0xeb')](_0x248321);const _0x5a327b={};for(const _0x26d23d in _0x248321[_0x5e15('0xef')]){if(_0x248321['diffData'][_0x26d23d][_0x5e15('0x39')]&&!_0x248321[_0x5e15('0xef')][_0x26d23d][_0x5e15('0x39')][_0x5e15('0xbc')])continue;const _0x4bc2c3=this[_0x5e15('0x7a')](JSON[_0x5e15('0xbf')](_0x248321['diffData'][_0x26d23d][_0x5e15('0x1a')])),_0x21c122=this[_0x5e15('0x5a')][_0x5e15('0xc2')][_0x5e15('0x54')][_0x5e15('0x79')],_0x17b6a7=new _0x5c797f(_0x21c122,_0x4bc2c3[_0x5e15('0x50')](_0x5500f2=>J(_0x5500f2,this[_0x5e15('0x5a')])));this['editor'][_0x5e15('0x36')][_0x5e15('0x6')][_0x5e15('0x45')](_0x5e15('0x9b')),_0x5a327b[_0x26d23d]=this[_0x5e15('0x5a')][_0x5e15('0x36')][_0x5e15('0x6')]['toData'](_0x17b6a7),this[_0x5e15('0x5a')][_0x5e15('0x36')][_0x5e15('0x6')][_0x5e15('0x45')](_0x5e15('0x66'));}return _0x5a327b;}async['getRevisionRootsAttributes'](_0x991363){await this[_0x5e15('0xeb')](_0x991363);const _0x3ed440={};for(const _0x162be3 in _0x991363[_0x5e15('0xef')])_0x991363['diffData'][_0x162be3][_0x5e15('0x39')]&&!_0x991363[_0x5e15('0xef')][_0x162be3][_0x5e15('0x39')][_0x5e15('0xbc')]||(_0x3ed440[_0x162be3]=_0x991363[_0x5e15('0xef')][_0x162be3][_0x5e15('0x10')]||{});return _0x3ed440;}[_0x5e15('0x2a')](){if(0x0===this[_0x5e15('0x59')]['size'])return;if(this['_isPendingUpdate'])return;let _0x509724=Array[_0x5e15('0x4f')](this[_0x5e15('0x59')][_0x5e15('0xd3')]());this[_0x5e15('0x59')][_0x5e15('0x1f')]();for(let _0x4c02fc=0x0;_0x4c02fc<_0x509724[_0x5e15('0x73')];_0x4c02fc++){const _0x1830a0=_0x509724[_0x4c02fc];let _0x225636=!0x1;for(const _0x284bde of Object['keys'](_0x1830a0))void 0x0===_0x1830a0[_0x284bde]?delete _0x1830a0[_0x284bde]:'id'!==_0x284bde&&(_0x225636=!0x0);_0x225636||(_0x509724[_0x4c02fc]=null);}if(_0x509724=_0x509724['filter'](_0x5d8c16=>null!==_0x5d8c16),!_0x509724[_0x5e15('0x73')])return;for(let _0x311063=0x0;_0x311063<_0x509724[_0x5e15('0x73')];_0x311063++){const _0x2a4c32=_0x509724[_0x311063];void 0x0!==_0x2a4c32[_0x5e15('0x77')]&&void 0x0===_0x2a4c32[_0x5e15('0x2c')]&&(_0x2a4c32[_0x5e15('0x2c')]=this[_0x5e15('0x69')][_0x5e15('0x7')](_0x2a4c32['id'])['toVersion']),void 0x0!==_0x2a4c32[_0x5e15('0x2c')]&&void 0x0===_0x2a4c32[_0x5e15('0x77')]&&(_0x2a4c32['fromVersion']=this[_0x5e15('0x69')]['getRevision'](_0x2a4c32['id'])[_0x5e15('0x77')]);}const _0x178d51=this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0x21')](_0x5e15('0xce'));this['_isPendingUpdate']=!0x0,this[_0x5e15('0xe0')](),this[_0x5e15('0x89')][_0x5e15('0x43')](_0x509724,_0x178d51)[_0x5e15('0x8a')](()=>{this[_0x5e15('0x105')]=!0x1;})[_0x5e15('0x4a')](_0x3b9b66=>{if(_0x3b9b66)for(const _0x5bd327 of _0x3b9b66)this[_0x5e15('0x3c')]({'id':_0x5bd327['id'],'createdAt':_0x5bd327[_0x5e15('0x3e')]});this[_0x5e15('0x3d')](),this[_0x5e15('0x2a')]();});}['_replaceEditorDataWithRevisionData'](_0x36c0d2,_0x29ad0f){let _0x11de63=this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0x21')](_0x5e15('0x83')),_0x154008=this[_0x5e15('0x5a')]['config'][_0x5e15('0x21')](_0x5e15('0x6b'));if(void 0x0===_0x11de63){_0x11de63={};for(const _0x98dd7c of this[_0x5e15('0x5a')]['model'][_0x5e15('0x79')]['getRootNames']())_0x11de63[_0x98dd7c]='';}if(_0x5e15('0x8')==typeof _0x11de63&&(_0x11de63={'main':_0x11de63}),void 0x0===_0x154008){_0x154008={};for(const _0x49fe0d of this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0xd7')]())_0x154008[_0x49fe0d]={};}let _0x515ac8=!0x1;const _0x203d49=Object[_0x5e15('0xc4')](_0x11de63),_0x230435=Object[_0x5e15('0xc4')](_0x36c0d2);for(const _0x48fdfc of _0x203d49){if(_0x11de63[_0x48fdfc]!==_0x36c0d2[_0x48fdfc]&&''!==_0x11de63[_0x48fdfc][_0x5e15('0xaf')]()){_0x515ac8=!0x0;break;}if(!_0x1dd850(_0x154008[_0x48fdfc],_0x29ad0f[_0x48fdfc])&&Object[_0x5e15('0xc4')](_0x154008[_0x48fdfc])[_0x5e15('0x73')]>0x0){_0x515ac8=!0x0;break;}}_0x515ac8||(_0x515ac8=_0x230435[_0x5e15('0x1c')](_0x427ba2=>!this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')]['getRoot'](_0x427ba2))),_0x515ac8&&_0x2b693c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x11de63,'editorRootsAttributes':_0x154008,'revisionData':_0x36c0d2,'revisionRootsAttributes':_0x29ad0f}),this[_0x5e15('0x5a')][_0x5e15('0x2d')][_0x5e15('0x85')](_0x5e15('0x83'),_0x36c0d2),this[_0x5e15('0x5a')]['config'][_0x5e15('0x85')](_0x5e15('0x6b'),_0x29ad0f);}['_addPendingAction'](){if(!this[_0x5e15('0x0')]){const _0xf285b=this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x81'));this[_0x5e15('0x0')]=_0xf285b[_0x5e15('0xcc')](_0x58a6dd(this[_0x5e15('0x5a')][_0x5e15('0xaa')],_0x5e15('0xe7')));}}[_0x5e15('0x3d')](){this[_0x5e15('0x0')]&&(this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x81'))[_0x5e15('0x1e')](this['_pendingAction']),this[_0x5e15('0x0')]=null);}[_0x5e15('0x68')](_0x3f0961){const _0x731c03=this[_0x5e15('0x69')][_0x5e15('0x9c')]();_0x731c03[_0x5e15('0x15')]();let _0x26fe02=0x0;for(;_0x26fe02<_0x731c03[_0x5e15('0x73')];){const _0x4804b6=_0x731c03[_0x26fe02];if(_0x4804b6===this[_0x5e15('0xd0')]){_0x26fe02++;continue;}if(_0x4804b6['id']===this[_0x5e15('0x55')])break;const _0x1fcbd3=_0x3f0961[_0x5e15('0x2c')]-_0x4804b6[_0x5e15('0x2c')]||_0x3f0961['fromVersion']-_0x4804b6[_0x5e15('0x77')];if(_0x1fcbd3>0x0)break;if(_0x1fcbd3<0x0)_0x26fe02++;else{if(!_0x3f0961[_0x5e15('0xdc')]&&_0x4804b6['creator'])break;if(_0x4804b6[_0x5e15('0xdc')]||!_0x3f0961[_0x5e15('0xdc')]){if(_0x3f0961[_0x5e15('0x3e')]>_0x4804b6[_0x5e15('0x3e')])break;_0x26fe02++;}else _0x26fe02++;}}return _0x26fe02;}['setRevisionData'](_0x32d8f5){const _0x5242c7=this[_0x5e15('0x69')][_0x5e15('0x7')](_0x32d8f5['id']);if(_0x32d8f5[_0x5e15('0x3e')]&&(_0x32d8f5[_0x5e15('0x3e')]=new Date(_0x32d8f5[_0x5e15('0x3e')])),_0x32d8f5[_0x5e15('0x100')]){const _0x416d4d=this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')]('Users');_0x32d8f5[_0x5e15('0xfc')]=_0x32d8f5[_0x5e15('0x100')][_0x5e15('0x50')](_0x5bfc95=>_0x416d4d[_0x5e15('0x52')](_0x5bfc95));}_0x5242c7[_0x5e15('0x6a')](_0x32d8f5,!0x0);}[_0x5e15('0x33')]({revision:_0x35a906=null,from:_0x202a34=null,to:_0x580301=null}){_0x202a34=null!==_0x202a34?_0x202a34:_0x35a906[_0x5e15('0x77')],_0x580301=null!==_0x580301?_0x580301:_0x35a906[_0x5e15('0x2c')];const _0x5847be=this['_revisionDataBuilder'][_0x5e15('0x8d')](_0x202a34,_0x580301),_0x205789={'diffData':_0x5847be[_0x5e15('0xef')],'authorsIds':_0x5847be['authorsIds'],'fromVersion':_0x202a34,'toVersion':_0x580301};if(!_0x35a906||_0x580301!==_0x35a906['toVersion']){const _0x54f56c=_0x580301-0x1,_0x265c95=this[_0x5e15('0xfb')][_0x5e15('0xf7')][_0x5e15('0x99')](_0x54f56c);_0x205789[_0x5e15('0x3e')]=_0x265c95&&_0x265c95[_0x5e15('0x3e')]||new Date();}if(this['_loadedStateData']&&_0x202a34===this[_0x5e15('0x5c')][_0x5e15('0x77')])for(const _0x5343cc of this[_0x5e15('0x5c')]['authors'])_0x205789[_0x5e15('0x100')][_0x5e15('0x17')](_0x5343cc['id'])||_0x205789['authorsIds'][_0x5e15('0x25')](_0x5343cc['id']);return _0x205789;}[_0x5e15('0xeb')](_0x15fd40){if(!_0x15fd40||_0x15fd40[_0x5e15('0xef')])return Promise[_0x5e15('0x90')]();{const _0x322f6b=this[_0x5e15('0x5a')]['config']['get'](_0x5e15('0xce'));return this[_0x5e15('0x89')][_0x5e15('0x7')]({'channelId':_0x322f6b,'revisionId':_0x15fd40['id']})[_0x5e15('0x4a')](_0xfc6f71=>{_0x15fd40[_0x5e15('0xef')]=_0xfc6f71[_0x5e15('0xef')];});}}[_0x5e15('0x8e')](_0x4da3b6,_0x401d06,_0x41ab34){if(this[_0x5e15('0x59')][_0x5e15('0x4e')](_0x4da3b6)){const _0x249f24=this[_0x5e15('0x59')][_0x5e15('0x21')](_0x4da3b6);_0x401d06=_0x41ab34?{..._0x249f24,..._0x401d06}:{..._0x401d06,..._0x249f24};}this[_0x5e15('0x59')]['set'](_0x4da3b6,_0x401d06);}[_0x5e15('0x98')](_0x4c3cef){const _0x278d0b=this[_0x5e15('0x69')][_0x5e15('0x9c')]();_0x278d0b[_0x5e15('0x15')](),_0x278d0b[_0x5e15('0xf5')]();const _0x5e79f2=_0x278d0b[_0x5e15('0x13')](_0x5d9ea7=>_0x5d9ea7[_0x5e15('0x2c')]<=_0x4c3cef)[_0x5e15('0x2c')];return _0x5e79f2<this[_0x5e15('0x24')]?this['_startingVersion']:_0x5e79f2;}['_createInitialRevision'](_0x539c07){const _0x23e771=this['repository'][_0x5e15('0x7')](this[_0x5e15('0x69')][_0x5e15('0x73')]-0x1);if(_0x23e771)this[_0x5e15('0x55')]=_0x23e771['id'];else{const _0xd4d724=!this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')]['roots'][_0x5e15('0x13')](_0x4068de=>this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x7d')](_0x4068de)),_0x39a81f=this[_0x5e15('0x5a')]['plugins'][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x2001cf=_0x58a6dd(this[_0x5e15('0x5a')][_0x5e15('0xaa')],_0xd4d724?'Empty\x20document':_0x5e15('0xd8'));this[_0x5e15('0xfe')]({'from':_0x539c07,'to':_0x539c07,'id':this[_0x5e15('0x55')],'name':_0x2001cf,'creatorId':_0x39a81f});}}[_0x5e15('0xb6')](_0x58800d){const _0x19101a=this[_0x5e15('0xfb')][_0x5e15('0x2')]();this[_0x5e15('0xd0')]=this[_0x5e15('0x69')][_0x5e15('0x7')](_0x19101a),this[_0x5e15('0xd0')]||(this['currentRevision']=this['_makeRevision']({'from':_0x58800d,'to':_0x58800d,'id':_0x19101a,'name':'','creatorId':null}));}['_makeRevision']({name:_0x231c36,from:_0x4a8774,to:_0x281b68,creatorId:_0x10c1e5,id:_0x4a15c8}){const _0x56f60a=this[_0x5e15('0x33')]({'from':_0x4a8774,'to':_0x281b68});_0x56f60a[_0x5e15('0x3')]=_0x231c36,_0x56f60a[_0x5e15('0x23')]=_0x10c1e5,_0x56f60a['id']=_0x4a15c8;const _0x23a317=this['addRevisionData'](_0x56f60a);return this['adapter']&&this[_0x5e15('0x8e')](_0x56f60a['id'],_0x56f60a,!0x0),_0x23a317;}[_0x5e15('0x9')](){this[_0x5e15('0x5a')]['conversion'][_0x5e15('0xf8')](_0x5e15('0x5b'))[_0x5e15('0x9f')]({'model':_0x5e15('0xdb')});}[_0x5e15('0x7a')](_0x2858c1){return(_0x2858c1=_0x2858c1['filter'](_0x2208fb=>!_0x2208fb['name']||'revision-start'!==_0x2208fb[_0x5e15('0x3')]&&'revision-end'!==_0x2208fb[_0x5e15('0x3')]))['forEach'](_0x1e9e25=>{_0x5e15('0x8')!=typeof _0x1e9e25&&(_0x1e9e25['children']=this[_0x5e15('0x7a')](_0x1e9e25[_0x5e15('0x1d')]),_0x1e9e25['attributes']=_0x1e9e25[_0x5e15('0xd2')]['filter'](_0x305918=>!_0x305918[0x0]['startsWith'](_0x5e15('0xca'))));}),_0x2858c1;}}function J(_0x3cb194,_0x4a06da){const _0x2203be=_0x4a06da[_0x5e15('0xc2')][_0x5e15('0x54')][_0x5e15('0x79')];if(_0x5e15('0x8')==typeof _0x3cb194)return new _0x540e8f(_0x2203be,_0x3cb194);{const _0x29f1ab=_0x3cb194[_0x5e15('0x1d')][_0x5e15('0x50')](_0x9bdb9=>J(_0x9bdb9,_0x4a06da));return new(B[_0x3cb194['type']]||_0x6f9192)(_0x2203be,_0x3cb194[_0x5e15('0x3')],_0x3cb194[_0x5e15('0xd2')],_0x29f1ab);}}class H{constructor(_0x3f0ec6){this[_0x5e15('0x5a')]=_0x3f0ec6,this[_0x5e15('0xb4')]=new Map(),this[_0x5e15('0xf9')]=-0x1,this['_lastTo']=-0x1,this[_0x5e15('0x1')]=new Map(),this['_diffRoots']=new Map(),this[_0x5e15('0x72')]=new Map(),this[_0x5e15('0xe9')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x5e15('0x6d')]=new Map(),this[_0x5e15('0x75')]=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x5e15('0xd')](_0x20e6ea){this['source']=_0x20e6ea;const _0x2b0417=new Map(),_0x54d089=new Map(),_0x185152=this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0x7e')][_0x5e15('0x50')](_0x5eeefb=>_0x5eeefb['rootName']);for(const _0x47cb6b of _0x185152){const _0x234fc4=this[_0x5e15('0x5a')][_0x5e15('0x7f')][_0x5e15('0x79')][_0x5e15('0xc6')](_0x47cb6b),_0x90dc5c=q(_0x234fc4);_0x2b0417[_0x5e15('0x85')](_0x47cb6b,_0x90dc5c),_0x54d089[_0x5e15('0x85')](_0x47cb6b,Object['fromEntries'](_0x234fc4['getAttributes']()));}const _0x28f098=Array[_0x5e15('0x4f')](this[_0x5e15('0x5a')][_0x5e15('0x7f')]['markers'])[_0x5e15('0x50')](_0xd895e3=>[_0xd895e3[_0x5e15('0x3')],_0xd895e3[_0x5e15('0x74')]()]),_0x2ea899=this['source']['version'];this['_saveMetaData'](_0x2ea899,_0x2b0417,_0x28f098,_0x54d089),this[_0x5e15('0xcb')]=this[_0x5e15('0xa4')];const _0x363f4a=new Map(),_0x49654e=new Map();for(const _0x51b207 of _0x185152){const _0x3c9c92=G(_0x51b207);_0x363f4a[_0x5e15('0x85')](_0x51b207,_0x3c9c92),_0x49654e[_0x5e15('0x85')](_0x51b207,{});}this[_0x5e15('0x63')](Number[_0x5e15('0x41')],_0x363f4a,[],_0x49654e);}[_0x5e15('0x8d')](_0x517f26,_0x5dcc1e){if(this[_0x5e15('0xf9')]===_0x517f26&&this[_0x5e15('0x61')]<=_0x5dcc1e)this['_savedMetaData'][_0x5e15('0x11')]>0x1&&this[_0x5e15('0x29')](this[_0x5e15('0x61')]),this[_0x5e15('0x95')](this[_0x5e15('0x61')],_0x5dcc1e,!0x0);else{if(!this[_0x5e15('0xb4')]['has'](_0x517f26)){const _0x1a54ce=this[_0x5e15('0xa5')](_0x517f26);this[_0x5e15('0xb2')](_0x1a54ce,_0x517f26,!0x1);}this[_0x5e15('0xb2')](_0x517f26,_0x5dcc1e,!0x0);}return this[_0x5e15('0xf9')]=_0x517f26,this[_0x5e15('0x61')]=_0x5dcc1e,this[_0x5e15('0x106')]();}['loadState'](_0x3ba38d){this[_0x5e15('0xd4')](),this['_lastFrom']=_0x3ba38d[_0x5e15('0x77')],this[_0x5e15('0x61')]=_0x3ba38d['toVersion'];for(const _0x3d3310 in _0x3ba38d[_0x5e15('0xef')]){const _0x206354=_0x3ba38d[_0x5e15('0xef')][_0x3d3310][_0x5e15('0x39')],_0x451538=_0x6bddad(_0x3ba38d[_0x5e15('0xef')][_0x3d3310][_0x5e15('0x8f')])||{},_0x34c5d5=this[_0x5e15('0xf1')](_0x3ba38d[_0x5e15('0xef')][_0x3d3310][_0x5e15('0xa6')]);_0x34c5d5[_0x5e15('0xde')]=_0x3d3310,_0x34c5d5['_isAttached']=!_0x206354||!_0x206354[_0x5e15('0xbc')],_0x34c5d5[_0x5e15('0xbc')]=()=>_0x34c5d5[_0x5e15('0xee')],this[_0x5e15('0xe9')][_0x5e15('0x85')](_0x3d3310,_0x34c5d5),this[_0x5e15('0x8c')][_0x5e15('0x85')](_0x3d3310,_0x451538),_0x206354&&this['_touchedRoots'][_0x5e15('0x85')](_0x3d3310,_0x206354);const _0x58fafd=this[_0x5e15('0x70')](_0x34c5d5);this[_0x5e15('0x75')]['set'](_0x3d3310,_0x58fafd);for(const [_0x171da2,_0x1d08b8]of _0x34c5d5[_0x5e15('0xf3')]){if(!_0x171da2[_0x5e15('0xdf')](_0x5e15('0x46')))continue;const _0x167763=_0x171da2[_0x5e15('0xe')](':')[0x2];for(const _0xefbfcb of _0x1d08b8['getWalker']({'singleCharacters':!0x0})){const _0x51f123=this[_0x5e15('0x12')](_0xefbfcb),_0x4d0f06=_0x5e15('0x101')==_0xefbfcb[_0x5e15('0xc3')]?_0xefbfcb[_0x5e15('0xc5')][_0x5e15('0xe2')]['slice'](0x0,-0x1):_0xefbfcb[_0x5e15('0xc5')][_0x5e15('0xe2')],_0x3d7e2c=_0x58fafd[_0x5e15('0xcf')](_0x4d0f06)[_0x5e15('0xf6')](_0x51f123);this[_0x5e15('0x30')]['set'](_0x3d7e2c,{'userId':_0x167763});}}}this[_0x5e15('0xcb')]=this[_0x5e15('0xa4')];const _0x285e51=[...Array(this['_revisionId'])[_0x5e15('0xc4')]()][_0x5e15('0xd6')](0x1)[_0x5e15('0x37')](_0xf9b2c7=>!this[_0x5e15('0x30')][_0x5e15('0x4e')](_0xf9b2c7));let _0xe859a9=0x0;const _0x5c9ca4=new Map();for(const _0x37bc88 in _0x3ba38d['diffData']){const _0x18ecc6=_0x3ba38d[_0x5e15('0xef')][_0x37bc88][_0x5e15('0x39')],_0x1c4b20=_0x6bddad(_0x3ba38d[_0x5e15('0xef')][_0x37bc88][_0x5e15('0x10')])||{},_0x20d5f9=this[_0x5e15('0xf1')](_0x3ba38d['diffData'][_0x37bc88][_0x5e15('0x1a')]);_0x20d5f9[_0x5e15('0xde')]=_0x37bc88,_0x20d5f9[_0x5e15('0xee')]=!_0x18ecc6||_0x18ecc6[_0x5e15('0xbc')],_0x20d5f9['isAttached']=()=>_0x20d5f9[_0x5e15('0xee')],this[_0x5e15('0x57')][_0x5e15('0x85')](_0x37bc88,_0x20d5f9),this['_diffRootsAttributes'][_0x5e15('0x85')](_0x37bc88,_0x1c4b20);const _0x5308f5=this[_0x5e15('0x70')](_0x20d5f9,Number['NEGATIVE_INFINITY']);this[_0x5e15('0x6d')][_0x5e15('0x85')](_0x37bc88,_0x5308f5),_0x5c9ca4['set'](_0x37bc88,_0x20d5f9[_0x5e15('0xbc')]()?_0x1c4b20:{});for(const [_0x2bd6ae,_0x27a648]of _0x20d5f9[_0x5e15('0xf3')]){if(!_0x2bd6ae[_0x5e15('0xdf')]('revision:'))continue;const _0x1919db=_0x2bd6ae['split'](':')[0x2];for(const _0x4eefe9 of _0x27a648[_0x5e15('0x35')]({'singleCharacters':!0x0})){const _0x431348=this[_0x5e15('0x12')](_0x4eefe9),_0x143ef4=this[_0x5e15('0xa4')]++,_0x12137f=_0x5e15('0x101')==_0x4eefe9[_0x5e15('0xc3')]?_0x4eefe9[_0x5e15('0xc5')]['path']['slice'](0x0,-0x1):_0x4eefe9['previousPosition']['path'];_0x5308f5[_0x5e15('0xcf')](_0x12137f)[_0x5e15('0x4b')](_0x431348,_0x143ef4),this['_touched'][_0x5e15('0x85')](_0x143ef4,{'userId':_0x1919db});}}for(const _0x9f03ec of this[_0x5e15('0x5a')]['model'][_0x5e15('0x42')](_0x20d5f9)['getWalker']({'singleCharacters':!0x0})){const _0x139b74=this[_0x5e15('0x12')](_0x9f03ec),_0x387ecf=_0x5e15('0x101')==_0x9f03ec[_0x5e15('0xc3')]?_0x9f03ec[_0x5e15('0xc5')][_0x5e15('0xe2')]['slice'](0x0,-0x1):_0x9f03ec['previousPosition'][_0x5e15('0xe2')],_0x160f9d=_0x5308f5[_0x5e15('0xcf')](_0x387ecf);_0x160f9d['getAttribute'](_0x139b74)>0x0||_0x160f9d[_0x5e15('0x4b')](_0x139b74,_0x285e51[_0xe859a9++]);}for(const [_0x5a30bb,_0x5e9563]of _0x20d5f9[_0x5e15('0xf3')])_0x5a30bb[_0x5e15('0xdf')]('revision:')||this[_0x5e15('0x1')][_0x5e15('0x85')](_0x5a30bb,_0x5e9563);}const _0x960d2a=G(_0x5e15('0xa8'));this[_0x5e15('0xe9')]['set'](_0x5e15('0xa8'),_0x960d2a),this[_0x5e15('0x75')][_0x5e15('0x85')](_0x5e15('0xa8'),this['_makeIdsRoot'](_0x960d2a,0x1));const _0x598ddb=G(_0x5e15('0xa8'));this[_0x5e15('0x57')][_0x5e15('0x85')](_0x5e15('0xa8'),_0x598ddb),this[_0x5e15('0x6d')][_0x5e15('0x85')](_0x5e15('0xa8'),this[_0x5e15('0x70')](_0x598ddb,0x1));const _0x55090f=Array[_0x5e15('0x4f')](this[_0x5e15('0x57')])['map'](([_0x1e3d3a,_0x55c84])=>[_0x1e3d3a,q(_0x55c84)]);this['_saveMetaData'](this[_0x5e15('0x61')],_0x55090f,this['_markers'],_0x5c9ca4);}[_0x5e15('0xf1')](_0x44b904){const _0x1f9989=JSON[_0x5e15('0xbf')](_0x44b904),_0x29ba3a=this['editor']['editing'][_0x5e15('0x54')][_0x5e15('0x79')],_0x4e106b=new _0x5c797f(_0x29ba3a,_0x1f9989[_0x5e15('0x50')](_0x2c8898=>J(_0x2c8898,this[_0x5e15('0x5a')])));return this[_0x5e15('0x5a')]['data']['toModel'](_0x4e106b);}[_0x5e15('0x63')](_0x1fb624,_0x453002,_0x157304,_0x330158){const _0x1f6dff=new Map(_0x453002),_0x2fd5b0=new Map(_0x6bddad(_0x330158)),_0xe57936=new Map();for(const [_0x40de1e,_0x1e9afb]of _0x157304)_0xe57936[_0x5e15('0x85')](_0x40de1e,{'start':_0x1e9afb[_0x5e15('0x2f')][_0x5e15('0x93')](),'end':_0x1e9afb['end']['clone'](),'rootName':_0x1e9afb['root'][_0x5e15('0xde')]});this[_0x5e15('0xb4')][_0x5e15('0x85')](_0x1fb624,{'roots':_0x1f6dff,'markers':_0xe57936,'rootsAttributes':_0x2fd5b0});}[_0x5e15('0x29')](_0x3b65fd){this[_0x5e15('0xb4')][_0x5e15('0x9e')](_0x3b65fd);}[_0x5e15('0x27')](){this[_0x5e15('0xd4')](),this[_0x5e15('0xf9')]=-0x1,this[_0x5e15('0x61')]=-0x1,this[_0x5e15('0xb4')][_0x5e15('0x1f')](),this[_0x5e15('0xd')](this[_0x5e15('0x19')]);}[_0x5e15('0xd4')](){this[_0x5e15('0x30')][_0x5e15('0x1f')](),this[_0x5e15('0x51')][_0x5e15('0x1f')](),this[_0x5e15('0x64')]['clear'](),this[_0x5e15('0x57')][_0x5e15('0x1f')](),this[_0x5e15('0x72')][_0x5e15('0x1f')](),this[_0x5e15('0xe9')]['clear'](),this[_0x5e15('0x8c')][_0x5e15('0x1f')](),this[_0x5e15('0x6d')][_0x5e15('0x1f')](),this['_baseIdsRoots'][_0x5e15('0x1f')](),this[_0x5e15('0x1')]['clear'](),this[_0x5e15('0xa4')]=0x1,this[_0x5e15('0xcb')]=this[_0x5e15('0xa4')];}[_0x5e15('0x70')](_0xf146ba,_0x5da576=null){let _0x3bf28a=null;_0xf146ba['is']('documentFragment')||(_0x3bf28a=new _0x41cbf8(_0xf146ba[_0x5e15('0x3')],{'vid_start':null===_0x5da576?this[_0x5e15('0xa4')]++:_0x5da576++}));const _0x5af803=[];for(const _0x6c1f3c of _0xf146ba['getChildren']())if(_0x6c1f3c['is'](_0x5e15('0xa1'))){_0x5af803[_0x5e15('0x25')](this[_0x5e15('0x70')](_0x6c1f3c,_0x5da576));const _0x333cba=_0x5af803[_0x5af803[_0x5e15('0x73')]-0x1];null!==_0x5da576&&(_0x5da576=_0x333cba['is']('element',_0x5e15('0xb8'))?_0x333cba['getAttribute'](_0x5e15('0x48'))+0x1:_0x333cba[_0x5e15('0xf6')](_0x5e15('0x47'))+0x1);}else for(let _0x342bfd=0x0;_0x342bfd<_0x6c1f3c[_0x5e15('0x82')];_0x342bfd++)_0x5af803[_0x5e15('0x25')](new _0x41cbf8(_0x5e15('0xb8'),{'vid':null===_0x5da576?this[_0x5e15('0xa4')]++:_0x5da576++}));if(_0xf146ba['is'](_0x5e15('0x9a'))){const _0x52d1d7=G(_0xf146ba[_0x5e15('0xde')]);return _0x52d1d7[_0x5e15('0x14')](0x0,_0x5af803),_0x52d1d7;}return _0x3bf28a[_0x5e15('0x4b')]('vid_end',null===_0x5da576?this[_0x5e15('0xa4')]++:_0x5da576++),_0x3bf28a['_insertChild'](0x0,_0x5af803),_0x3bf28a;}[_0x5e15('0xb2')](_0x571f32,_0x5cdc10,_0x6dda1f){this[_0x5e15('0xd4')]();const {roots:_0x3fa82b,markers:_0x532a02,rootsAttributes:_0x21312d}=this[_0x5e15('0xb4')][_0x5e15('0x21')](_0x571f32);this[_0x5e15('0xe9')]=new Map(_0x3fa82b),this[_0x5e15('0x8c')]=new Map(_0x6bddad(_0x21312d));for(const [_0x47a024,_0x1b80dc]of this['_baseRoots'])if(_0x5e15('0xa8')!==_0x47a024&&(this[_0x5e15('0x57')]['set'](_0x47a024,q(_0x1b80dc)),this['_diffRootsAttributes']=new Map(_0x6bddad(_0x21312d)),_0x6dda1f)){const _0xca6ae4=this[_0x5e15('0xa4')];this['_idsRoots'][_0x5e15('0x85')](_0x47a024,this[_0x5e15('0x70')](_0x1b80dc)),this[_0x5e15('0x75')][_0x5e15('0x85')](_0x47a024,this[_0x5e15('0x70')](_0x1b80dc,_0xca6ae4));}this[_0x5e15('0xcb')]=this[_0x5e15('0xa4')],this[_0x5e15('0x57')]['set']('$graveyard',q(this[_0x5e15('0xe9')]['get'](_0x5e15('0xa8')))),_0x6dda1f&&this['_idsRoots'][_0x5e15('0x85')](_0x5e15('0xa8'),this['_makeIdsRoot'](this[_0x5e15('0xe9')]['get']('$graveyard')));for(const [_0x23356b,_0x3d9cf1]of _0x532a02){const _0x2150fb=this['_baseRoots'][_0x5e15('0x21')](_0x3d9cf1[_0x5e15('0xde')]),_0x87ab4a=this[_0x5e15('0x57')][_0x5e15('0x21')](_0x3d9cf1['rootName']),_0xf3fc7c=new _0x1267ff(this[_0x5e15('0xa7')](_0x3d9cf1[_0x5e15('0x2f')],_0x2150fb),this[_0x5e15('0xa7')](_0x3d9cf1['end'],_0x2150fb)),_0x3cc0f5=this[_0x5e15('0x65')](_0xf3fc7c,_0x87ab4a);_0x2150fb['markers']['set'](_0x23356b,_0xf3fc7c),this[_0x5e15('0x1')]['set'](_0x23356b,_0x3cc0f5);}this['_applyOperations'](_0x571f32,_0x5cdc10,_0x6dda1f);}[_0x5e15('0x95')](_0x430187,_0x569eeb,_0x17cc2a){for(const _0x556290 of this[_0x5e15('0x19')]['getOperations'](_0x430187,_0x569eeb))this[_0x5e15('0x1b')](_0x556290,_0x17cc2a);for(const _0x5ea67c of this[_0x5e15('0x57')][_0x5e15('0xd3')]())_0x5ea67c[_0x5e15('0xf3')][_0x5e15('0x1f')]();for(const [_0x536695,_0x56d8fa]of this[_0x5e15('0x1')]){this[_0x5e15('0x57')][_0x5e15('0x21')](_0x56d8fa['root'][_0x5e15('0xde')])[_0x5e15('0xf3')][_0x5e15('0x85')](_0x536695,_0x56d8fa[_0x5e15('0x93')]());}const _0x4c7ad5=new Map(),_0x585be5=new Map();for(const [_0x4094d5,_0x1c4952]of this[_0x5e15('0x57')])_0x4c7ad5[_0x5e15('0x85')](_0x4094d5,q(_0x1c4952)),_0x585be5[_0x5e15('0x85')](_0x4094d5,this[_0x5e15('0x72')]['get'](_0x4094d5));this[_0x5e15('0x63')](_0x569eeb,_0x4c7ad5,this[_0x5e15('0x1')],_0x585be5);}[_0x5e15('0xa5')](_0x3d1442){const _0x3bbec3=Array[_0x5e15('0x4f')](this[_0x5e15('0xb4')]['keys']());_0x3bbec3[_0x5e15('0x4c')]((_0x355191,_0x4b680d)=>_0x355191-_0x4b680d),_0x3bbec3[_0x5e15('0x15')]();for(const _0x33dcc5 of _0x3bbec3)if(_0x33dcc5<_0x3d1442)return _0x33dcc5;return Number[_0x5e15('0x41')];}[_0x5e15('0xa2')](_0xead8d3,_0x2bb550){const _0x52d4cb=Array['from'](_0x2bb550[_0x5e15('0xf3')])[_0x5e15('0x50')](([_0x430a9c,_0x502886])=>[_0x430a9c,this[_0x5e15('0x65')](_0x502886,_0xead8d3)]);_0xead8d3['markers']=new Map(_0x52d4cb);}['_transformMarkers'](_0x300fe2){for(const _0x5a9815 of this[_0x5e15('0x1')][_0x5e15('0xd3')]()){const _0x19b255=_0x5a9815['getTransformedByOperation'](_0x300fe2),_0x2f6f62=_0x1267ff[_0x5e15('0x5e')](_0x19b255);_0x5a9815['start']=_0x2f6f62[_0x5e15('0x2f')],_0x5a9815[_0x5e15('0x62')]=_0x2f6f62[_0x5e15('0x62')];}}[_0x5e15('0x1b')](_0x420aaf,_0x4f4ac2){if(_0x5e15('0x80')==_0x420aaf['type']||_0x5e15('0xa')==_0x420aaf[_0x5e15('0xc3')])return void this[_0x5e15('0xa9')](_0x420aaf,_0x4f4ac2);if(_0x5e15('0x67')==_0x420aaf[_0x5e15('0xc3')]){const _0x41bb1d=_0x420aaf[_0x5e15('0x71')][_0x5e15('0x26')][_0x5e15('0xde')];this[_0x5e15('0x57')][_0x5e15('0x4e')](_0x41bb1d)||(this[_0x5e15('0x57')][_0x5e15('0x85')](_0x41bb1d,G(_0x41bb1d,!0x0)),this['_diffRootsAttributes'][_0x5e15('0x85')](_0x41bb1d,{}),_0x4f4ac2&&this['_idsRoots'][_0x5e15('0x85')](_0x41bb1d,G(_0x41bb1d,!0x0)));}else{if('addRootAttribute'==_0x420aaf[_0x5e15('0xc3')]||_0x5e15('0xe1')==_0x420aaf[_0x5e15('0xc3')]||_0x5e15('0x7b')==_0x420aaf[_0x5e15('0xc3')])return void this[_0x5e15('0xb1')](_0x420aaf);}const _0x11a8ed=this['_cloneOperation'](_0x420aaf,this[_0x5e15('0x57')]);if(_0x5e15('0x6f')!==_0x420aaf['type']&&(_0x11a8ed[_0x5e15('0xc1')](),this[_0x5e15('0x58')](_0x11a8ed)),_0x4f4ac2)switch(_0x11a8ed[_0x5e15('0xc3')]){case _0x5e15('0x67'):this[_0x5e15('0x97')](_0x420aaf);break;case'move':case'remove':case _0x5e15('0xfa'):this[_0x5e15('0xc7')](_0x420aaf);break;case _0x5e15('0xb5'):this['_handleMergeOperation'](_0x420aaf);break;case'split':this['_handleSplitOperation'](_0x420aaf);break;case _0x5e15('0x6f'):this[_0x5e15('0x103')](_0x420aaf);}}[_0x5e15('0x3b')](_0x37232d,_0x5ed3f7){const _0x360839=_0x37232d[_0x5e15('0x93')]();return _0x360839[_0x5e15('0xa0')]=_0x37232d['_authorId'],this[_0x5e15('0x96')](_0x360839,_0x5ed3f7),_0x360839;}[_0x5e15('0x88')](_0x118685){return _0x118685[_0x5e15('0x50')](_0x5ce7e3=>{const _0x3626ed=this[_0x5e15('0x12')](_0x5ce7e3);return Number(_0x5ce7e3['item'][_0x5e15('0xf6')](_0x3626ed));});}[_0x5e15('0x5f')](_0x1d883b,_0x29623){if(_0x1d883b['is']('element',_0x5e15('0xb8')))_0x29623['push']({'item':_0x1d883b,'type':_0x5e15('0x53')});else{_0x1d883b['is'](_0x5e15('0xa1'))&&_0x29623[_0x5e15('0x25')]({'item':_0x1d883b,'type':_0x5e15('0x86')});for(const _0x4bcf48 of _0x1d883b[_0x5e15('0x102')]())this[_0x5e15('0x5f')](_0x4bcf48,_0x29623);_0x1d883b['is'](_0x5e15('0xa1'))&&_0x29623[_0x5e15('0x25')]({'item':_0x1d883b,'type':_0x5e15('0x101')});}return _0x29623;}[_0x5e15('0x106')](){const _0x4d2d69=new Map(this[_0x5e15('0x30')]),_0x3c0767=new Map(_0x4d2d69),_0x43c5de=new Map(),_0x5459c9={'insertions':{},'deletions':{}},_0x48a8e0={'insertions':{},'deletions':{}},_0x2996f5=new Map(),_0x158b56=new Set([...this[_0x5e15('0xe9')]['keys'](),...this[_0x5e15('0x57')][_0x5e15('0xc4')]()]);_0x158b56['delete'](_0x5e15('0xa8'));for(const _0x1037da of _0x158b56){const _0x1a48a5=this['_diffRoots'][_0x5e15('0x21')](_0x1037da)||G(_0x1037da,!0x1),_0x163ff8=this[_0x5e15('0xe9')][_0x5e15('0x21')](_0x1037da)||G(_0x1037da,!0x1);_0x1a48a5[_0x5e15('0xbc')]()||_0x163ff8[_0x5e15('0xbc')]()?(_0x5459c9[_0x5e15('0x1a')][_0x1037da]=q(_0x1a48a5),_0x5459c9[_0x5e15('0xa6')][_0x1037da]=q(_0x163ff8),this[_0x5e15('0xa2')](_0x5459c9[_0x5e15('0xa6')][_0x1037da],_0x163ff8),this['_copyMarkers'](_0x5459c9['insertions'][_0x1037da],_0x1a48a5),_0x48a8e0[_0x5e15('0x1a')][_0x1037da]=this[_0x5e15('0x5f')](this[_0x5e15('0x6d')]['get'](_0x1037da),[]),_0x48a8e0[_0x5e15('0xa6')][_0x1037da]=this[_0x5e15('0x5f')](this['_baseIdsRoots'][_0x5e15('0x21')](_0x1037da)||G(_0x1037da,!0x1),[])):_0x158b56[_0x5e15('0x9e')](_0x1037da);}for(const _0x377057 of _0x158b56){const _0x58d584=_0x48a8e0[_0x5e15('0x1a')][_0x377057];for(const _0x87ee8e of _0x58d584){const _0x1a3028=this[_0x5e15('0x12')](_0x87ee8e),_0x3ca84d=_0x87ee8e[_0x5e15('0xea')]['getAttribute'](_0x1a3028);_0x3c0767['delete'](_0x3ca84d),_0x3ca84d>=this[_0x5e15('0xcb')]&&_0x43c5de[_0x5e15('0x85')](_0x3ca84d,_0x4d2d69[_0x5e15('0x21')](_0x3ca84d));}}for(const _0x1004f3 of _0x158b56){const _0x45187f=_0x48a8e0[_0x5e15('0x1a')][_0x1004f3],_0x1e8686=this[_0x5e15('0x88')](_0x48a8e0[_0x5e15('0xa6')][_0x1004f3]);let _0x1a935e=0x0;for(const _0x3d0d0c of _0x45187f){const _0x3e8bd1=this['_getVidAttributeName'](_0x3d0d0c),_0x3a59a3=_0x3d0d0c[_0x5e15('0xea')][_0x5e15('0xf6')](_0x3e8bd1);if(!_0x43c5de[_0x5e15('0x4e')](_0x3a59a3)&&!_0x2996f5[_0x5e15('0x4e')](_0x3a59a3)){if(_0x3c0767[_0x5e15('0x4e')](_0x3a59a3))_0x1a935e++;else{if(_0x3a59a3!=_0x1e8686[_0x1a935e]){const _0x462471=_0x4d2d69[_0x5e15('0x21')](_0x3a59a3)||_0x4d2d69[_0x5e15('0x21')](_0x1e8686[_0x1a935e]);for(;_0x3a59a3!=_0x1e8686[_0x1a935e];)_0x3c0767[_0x5e15('0x4e')](_0x1e8686[_0x1a935e])||(_0x2996f5[_0x5e15('0x85')](_0x1e8686[_0x1a935e],_0x462471),_0x4d2d69[_0x5e15('0x85')](_0x1e8686[_0x1a935e],_0x462471)),_0x1a935e++;}_0x1a935e++;}}}}for(const _0x47a86a of _0x158b56){const _0x14ee1a=_0x48a8e0[_0x5e15('0x1a')][_0x47a86a];for(const _0x21db1d of _0x14ee1a){const _0x15560b=this[_0x5e15('0x12')](_0x21db1d),_0x5f3342=_0x21db1d[_0x5e15('0xea')][_0x5e15('0xf6')](_0x15560b);if(_0x2996f5[_0x5e15('0x4e')](_0x5f3342)){const _0x1ca26d=_0x2996f5[_0x5e15('0x21')](_0x5f3342);_0x3c0767['has'](_0x5f3342)||_0x3c0767[_0x5e15('0x85')](_0x5f3342,{..._0x1ca26d}),_0x43c5de[_0x5e15('0x85')](_0x5f3342,{..._0x1ca26d});}}}for(const _0x575801 of _0x3c0767[_0x5e15('0xc4')]())_0x575801>=this[_0x5e15('0xcb')]&&_0x3c0767[_0x5e15('0x9e')](_0x575801);const _0x40bd85=new Map();for(const _0x137406 of _0x158b56){let _0x254f4c=_0x48a8e0[_0x5e15('0x1a')][_0x137406];for(const _0x4dd9d5 of _0x254f4c)if(_0x4dd9d5[_0x5e15('0xea')]['is'](_0x5e15('0xa1'),_0x5e15('0xf4'))){const _0x554898=this[_0x5e15('0x12')](_0x4dd9d5),_0x9ce2f9=_0x4dd9d5[_0x5e15('0xea')][_0x5e15('0xf6')](_0x554898);if(_0x43c5de[_0x5e15('0x4e')](_0x9ce2f9)){const _0x78c1a3=_0x4dd9d5[_0x5e15('0xea')][_0x5e15('0xbb')][_0x5e15('0xbb')][_0x5e15('0xf6')](_0x5e15('0xba')),_0x17a72d=_0x40bd85['get'](_0x78c1a3)||new Set();_0x17a72d[_0x5e15('0xcc')](_0x43c5de[_0x5e15('0x21')](_0x9ce2f9)[_0x5e15('0x78')]),_0x40bd85['set'](_0x78c1a3,_0x17a72d);}}_0x254f4c=_0x48a8e0[_0x5e15('0xa6')][_0x137406];for(const _0x55a4c3 of _0x254f4c)if(_0x55a4c3[_0x5e15('0xea')]['is'](_0x5e15('0xa1'),_0x5e15('0xf4'))){const _0x3bfdc8=this[_0x5e15('0x12')](_0x55a4c3),_0x39c3fb=_0x55a4c3[_0x5e15('0xea')][_0x5e15('0xf6')](_0x3bfdc8);if(_0x3c0767[_0x5e15('0x4e')](_0x39c3fb)){const _0x5884d0=_0x55a4c3['item'][_0x5e15('0xbb')][_0x5e15('0xbb')][_0x5e15('0xf6')](_0x5e15('0xba')),_0x1a45fb=_0x40bd85[_0x5e15('0x21')](_0x5884d0)||new Set();_0x1a45fb[_0x5e15('0xcc')](_0x3c0767['get'](_0x39c3fb)[_0x5e15('0x78')]),_0x40bd85[_0x5e15('0x85')](_0x5884d0,_0x1a45fb);}}for(const _0x528665 of _0x40bd85[_0x5e15('0xc4')]())(_0x43c5de[_0x5e15('0x4e')](_0x528665)||_0x3c0767['has'](_0x528665))&&_0x40bd85[_0x5e15('0x9e')](_0x528665);}for(const _0x44bbf0 of _0x158b56){const _0x204b61=_0x48a8e0[_0x5e15('0x1a')][_0x44bbf0];let _0x2951a7=null,_0x209919=null;for(const _0x342bd7 of _0x204b61){const _0x5c87d6=this[_0x5e15('0x12')](_0x342bd7),_0x4f2bb2=_0x342bd7[_0x5e15('0xea')][_0x5e15('0xf6')](_0x5c87d6),_0x1ce7be=_0x40bd85[_0x5e15('0x21')](_0x4f2bb2);_0x1ce7be&&_0x5e15('0x86')==_0x342bd7[_0x5e15('0xc3')]&&(_0x2951a7=Array[_0x5e15('0x4f')](_0x1ce7be)[0x0],_0x209919=_0x342bd7['item'][_0x5e15('0xf6')]('vid_end')),_0x2951a7&&(_0x3c0767[_0x5e15('0x85')](_0x4f2bb2,{'userId':_0x2951a7}),_0x43c5de[_0x5e15('0x85')](_0x4f2bb2,{'userId':_0x2951a7})),_0x4f2bb2==_0x209919&&(_0x2951a7=null,_0x209919=null);}}const _0x592e7e={},_0x40694e=new Set();for(const _0x2c51e6 of _0x158b56){const _0x5a4ca8=_0x5459c9[_0x5e15('0xa6')][_0x2c51e6],_0x19d5b0=_0x5459c9[_0x5e15('0x1a')][_0x2c51e6];for(const {userId:_0x24f902}of this[_0x5e15('0x51')]['values']())null!==_0x24f902&&_0x40694e[_0x5e15('0xcc')](_0x24f902);for(const {userId:_0x26ad37}of this[_0x5e15('0x64')][_0x5e15('0xd3')]())null!==_0x26ad37&&_0x40694e[_0x5e15('0xcc')](_0x26ad37);this[_0x5e15('0xb')](_0x19d5b0,_0x48a8e0['insertions'][_0x2c51e6],_0x43c5de,_0x5e15('0x32'),_0x40694e),this[_0x5e15('0xb')](_0x5a4ca8,_0x48a8e0[_0x5e15('0xa6')][_0x2c51e6],_0x3c0767,_0x5e15('0xb0'),_0x40694e),_0x592e7e[_0x2c51e6]={'insertions':this[_0x5e15('0xff')](_0x19d5b0),'deletions':this[_0x5e15('0xff')](_0x5a4ca8),'attachChange':this[_0x5e15('0x64')]['get'](_0x2c51e6)||null,'attributesBefore':_0x6bddad(this[_0x5e15('0x8c')][_0x5e15('0x21')](_0x2c51e6))||{},'attributesAfter':_0x6bddad(this[_0x5e15('0x72')]['get'](_0x2c51e6))};}return{'diffData':_0x592e7e,'authorsIds':Array[_0x5e15('0x4f')](_0x40694e)};}[_0x5e15('0xe8')](_0x30360a){for(const [,_0xc6c150]of _0x30360a['markers']){const _0x1a986c=_0xc6c150[_0x5e15('0x2f')][_0x5e15('0xf2')]()[_0x5e15('0x37')](_0x50b1dd=>'tableCell'==_0x50b1dd['name']);for(const _0x10f353 of _0x1a986c)0x1==_0x10f353[_0x5e15('0x2b')]&&_0x10f353['getChild'](0x0)['is'](_0x5e15('0xa1'),_0x5e15('0x7c'))&&_0x10f353[_0x5e15('0xb3')](0x0)['_setAttribute'](_0x5e15('0xab'),!0x0);}}[_0x5e15('0xff')](_0x4bcf3c){this[_0x5e15('0xe8')](_0x4bcf3c);const _0x3e5989=this[_0x5e15('0x5a')][_0x5e15('0x36')][_0x5e15('0x20')](_0x4bcf3c,{}),_0x53a08b=Array[_0x5e15('0x4f')](_0x3e5989['getChildren']())['map'](_0x4be49b=>this[_0x5e15('0x5')](_0x4be49b));return JSON[_0x5e15('0xe4')](_0x53a08b);}['_getViewJson'](_0x5333b2){if(_0x5333b2['is'](_0x5e15('0xb8')))return _0x5333b2[_0x5e15('0x36')];{const _0x14eba6=_0x5333b2;return{'type':Object[_0x5e15('0xc4')](B)['find'](_0x58ae5c=>_0x5333b2 instanceof B[_0x58ae5c]),'name':_0x14eba6['name'],'attributes':Array[_0x5e15('0x4f')](_0x14eba6['getAttributes']()),'children':Array[_0x5e15('0x4f')](_0x14eba6[_0x5e15('0x102')]())[_0x5e15('0x50')](_0x474a07=>this[_0x5e15('0x5')](_0x474a07))};}}[_0x5e15('0xb')](_0x21527d,_0x720832,_0xe494a8,_0x3ce614,_0x593cf3){let _0x30d596=null,_0x396452=null,_0x4b917c=0x0;const _0x452cb1=this[_0x5e15('0x5a')][_0x5e15('0x7f')];for(let _0x25a76c=0x0;_0x25a76c<_0x720832[_0x5e15('0x73')];_0x25a76c++){const _0x573593=this['_getVidAttributeName'](_0x720832[_0x25a76c]),_0x5541c6=_0x720832[_0x25a76c][_0x5e15('0xea')]['getAttribute'](_0x573593),_0x4db680=_0xe494a8[_0x5e15('0x21')](_0x5541c6),_0x31b782=_0x25a76c==_0x720832[_0x5e15('0x73')]-0x1;(!_0x30d596&&_0x4db680&&(_0x30d596=_0x4db680,_0x396452=_0x720832[_0x25a76c]),_0x30d596&&(!_0x4db680||_0x4db680[_0x5e15('0x78')]!=_0x30d596[_0x5e15('0x78')]))&&(_0x3e6179(_0x4db680,L(_0x396452,_0x21527d,_0x452cb1),L(_0x720832[_0x25a76c],_0x21527d,_0x452cb1)),_0x30d596=_0x4db680||null,_0x396452=_0x4db680?_0x720832[_0x25a76c]:null),_0x30d596&&_0x31b782&&_0x3e6179(_0x4db680,L(_0x396452,_0x21527d,_0x452cb1),W(_0x720832[_0x25a76c],_0x21527d,_0x452cb1));}function _0x3e6179(_0x13821b,_0x4a69a4,_0x592ecb){const _0x480327=_0x30d596[_0x5e15('0x78')],_0x1dd14c=_0x5e15('0x46')+_0x3ce614+':'+_0x480327+':'+_0x4b917c++,_0x5dc730=_0x452cb1['createRange'](_0x4a69a4,_0x592ecb);_0x21527d[_0x5e15('0xf3')]['set'](_0x1dd14c,_0x5dc730),null!==_0x480327&&_0x593cf3[_0x5e15('0xcc')](_0x480327);}}[_0x5e15('0x12')](_0x2696ec){switch(_0x2696ec[_0x5e15('0xc3')]){case _0x5e15('0x86'):return _0x5e15('0xba');case _0x5e15('0x101'):return'vid_end';default:return _0x5e15('0x48');}}[_0x5e15('0x96')](_0x2913b2,_0xd38e83){_0x2913b2[_0x5e15('0x8b')]=null;for(const _0x479bf5 in _0x2913b2){const _0x38b0bd=_0x2913b2[_0x479bf5];if(_0x38b0bd instanceof _0x27cce9){const _0x30e3e9=_0xd38e83[_0x5e15('0x21')](_0x38b0bd[_0x5e15('0x26')]['rootName']);_0x2913b2[_0x479bf5]=this[_0x5e15('0xa7')](_0x38b0bd,_0x30e3e9);}if(_0x38b0bd instanceof _0x1267ff){const _0x56dfd5=_0xd38e83[_0x5e15('0x21')](_0x38b0bd[_0x5e15('0x26')][_0x5e15('0xde')]);_0x2913b2[_0x479bf5]=this[_0x5e15('0x65')](_0x38b0bd,_0x56dfd5);}_0x5e15('0x26')===_0x479bf5&&(_0x2913b2[_0x5e15('0x26')]=_0xd38e83[_0x5e15('0x21')](_0x2913b2[_0x5e15('0x26')][_0x5e15('0xde')]));}}[_0x5e15('0x65')](_0x4de740,_0x6f1680){return this[_0x5e15('0x5a')]['model'][_0x5e15('0xf0')](this[_0x5e15('0xa7')](_0x4de740['start'],_0x6f1680),this[_0x5e15('0xa7')](_0x4de740[_0x5e15('0x62')],_0x6f1680));}[_0x5e15('0xa7')](_0x2324d1,_0x4e8d93){return this['editor'][_0x5e15('0x7f')]['createPositionFromPath'](_0x4e8d93,_0x2324d1[_0x5e15('0xe2')],_0x2324d1[_0x5e15('0xb7')]);}['_handleInsertOperation'](_0x13ed8d){const _0x3b157e=this[_0x5e15('0x6d')][_0x5e15('0x21')](_0x13ed8d[_0x5e15('0x71')][_0x5e15('0x26')][_0x5e15('0xde')]),_0x122147=this[_0x5e15('0xa7')](_0x13ed8d[_0x5e15('0x71')],_0x3b157e),_0x3afdb6=null===_0x13ed8d[_0x5e15('0xa0')]?null:_0x13ed8d['_authorId']||this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x305fab=_0x122147[_0x5e15('0xbb')],_0x175af4=this[_0x5e15('0xa4')],_0x17c006=[];for(const _0x3f8024 of _0x13ed8d[_0x5e15('0xe6')])if(_0x3f8024['is'](_0x5e15('0xa1')))_0x17c006[_0x5e15('0x25')](this[_0x5e15('0x70')](_0x3f8024));else for(let _0x1b136f=0x0;_0x1b136f<_0x3f8024['offsetSize'];_0x1b136f++)_0x17c006[_0x5e15('0x25')](new _0x41cbf8(_0x5e15('0xb8'),{'vid':this['_revisionId']++}));const _0x4440d2=this[_0x5e15('0xa4')];for(let _0x461ed2=_0x175af4;_0x461ed2<_0x4440d2;_0x461ed2++)this[_0x5e15('0x30')][_0x5e15('0x85')](_0x461ed2,{'userId':_0x3afdb6});_0x305fab['_insertChild'](_0x122147['offset'],_0x17c006);}['_handleMoveOperation'](_0x3d73e7){(_0x3d73e7=this[_0x5e15('0x3b')](_0x3d73e7,this[_0x5e15('0x6d')]))['_execute']();const _0x4a98a1=null===_0x3d73e7[_0x5e15('0xa0')]?null:_0x3d73e7['_authorId']||this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x34e357=_0x3d73e7[_0x5e15('0xec')](),_0x252b8d=_0x34e357[_0x5e15('0xbb')],_0x57b61c=_0x34e357[_0x5e15('0xc8')];!function _0xf203c6(_0x16dcce,_0x2486e6,_0x390318,_0x58ffe5){for(let _0x14d135=_0x390318;_0x14d135<_0x58ffe5;_0x14d135++){const _0x12bcc9=_0x2486e6[_0x5e15('0xb3')](_0x14d135);_0x12bcc9['is'](_0x5e15('0xa1'),_0x5e15('0xb8'))?_0x16dcce[_0x5e15('0x85')](_0x12bcc9[_0x5e15('0xf6')](_0x5e15('0x48')),{'userId':_0x4a98a1}):(_0x16dcce[_0x5e15('0x85')](_0x12bcc9[_0x5e15('0xf6')]('vid_start'),{'userId':_0x4a98a1}),_0xf203c6(_0x16dcce,_0x12bcc9,0x0,_0x12bcc9[_0x5e15('0x2b')]),_0x16dcce[_0x5e15('0x85')](_0x12bcc9[_0x5e15('0xf6')](_0x5e15('0x47')),{'userId':_0x4a98a1}));}}(this[_0x5e15('0x30')],_0x252b8d,_0x57b61c,_0x57b61c+_0x3d73e7[_0x5e15('0x4d')]);}[_0x5e15('0x18')](_0xaae83e){const _0x20c5c5=null===(_0xaae83e=this['_cloneOperation'](_0xaae83e,this[_0x5e15('0x6d')]))[_0x5e15('0xa0')]?null:_0xaae83e[_0x5e15('0xa0')]||this['editor'][_0x5e15('0x49')]['get'](_0x5e15('0x104'))['me']['id'],_0x12f3c3=_0xaae83e[_0x5e15('0xd5')]['parent'],_0x1936c6=_0xaae83e[_0x5e15('0x92')][_0x5e15('0xbb')],_0x3a13ef=_0x12f3c3[_0x5e15('0xf6')](_0x5e15('0x47')),_0x1069f7=_0x1936c6['getAttribute'](_0x5e15('0xba'));_0x12f3c3[_0x5e15('0x4b')]('vid_end',_0x1936c6['getAttribute'](_0x5e15('0x47'))),_0x1936c6[_0x5e15('0x4b')](_0x5e15('0x47'),_0x3a13ef),this[_0x5e15('0x30')]['set'](_0x1069f7,{'userId':_0x20c5c5}),this[_0x5e15('0x30')][_0x5e15('0x85')](_0x3a13ef,{'userId':_0x20c5c5}),_0xaae83e[_0x5e15('0xc1')]();}[_0x5e15('0x44')](_0x33586b){const _0xf9ef8f=null===(_0x33586b=this[_0x5e15('0x3b')](_0x33586b,this[_0x5e15('0x6d')]))[_0x5e15('0xa0')]?null:_0x33586b[_0x5e15('0xa0')]||this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')]('Users')['me']['id'],_0x540ffc=_0x33586b[_0x5e15('0xf')],_0x58f743=_0x33586b[_0x5e15('0xd1')][_0x5e15('0xbb')];_0x33586b['_execute']();const _0x9051d8=_0x58f743['getAttribute'](_0x5e15('0x47')),_0x4273c7=_0x33586b['insertionPosition'][_0x5e15('0x87')];if(_0x540ffc){const _0x2fec63=_0x4273c7['getAttribute'](_0x5e15('0x47')),_0x39361f=_0x58f743[_0x5e15('0xf6')](_0x5e15('0x47'));_0x58f743['_setAttribute'](_0x5e15('0x47'),_0x2fec63),_0x4273c7['_setAttribute'](_0x5e15('0x47'),_0x39361f),this['_touched']['set'](_0x58f743[_0x5e15('0xf6')](_0x5e15('0x47')),{'userId':_0xf9ef8f}),this['_touched']['set'](_0x4273c7[_0x5e15('0xf6')](_0x5e15('0xba')),{'userId':_0xf9ef8f});}else{const _0x706ee9=this[_0x5e15('0xa4')]++,_0x256d52=this['_revisionId']++;_0x58f743['_setAttribute'](_0x5e15('0x47'),_0x706ee9),_0x4273c7[_0x5e15('0x4b')]('vid_start',_0x256d52),_0x4273c7['_setAttribute']('vid_end',_0x9051d8),this[_0x5e15('0x30')][_0x5e15('0x85')](_0x706ee9,{'userId':_0xf9ef8f}),this[_0x5e15('0x30')][_0x5e15('0x85')](_0x256d52,{'userId':_0xf9ef8f});}}[_0x5e15('0x103')](_0x4cbeb4){if(!_0x4cbeb4[_0x5e15('0xd9')])return;const _0x174029=(_0x4cbeb4=this[_0x5e15('0x3b')](_0x4cbeb4,this['_diffRoots']))[_0x5e15('0x2e')]?_0x4cbeb4[_0x5e15('0x2e')][_0x5e15('0x26')]:null,_0x343f8a=_0x4cbeb4[_0x5e15('0x22')]?_0x4cbeb4[_0x5e15('0x22')][_0x5e15('0x26')]:null;_0x174029&&this[_0x5e15('0x1')][_0x5e15('0x9e')](_0x4cbeb4[_0x5e15('0x3')]),_0x343f8a&&this[_0x5e15('0x1')]['set'](_0x4cbeb4['name'],_0x4cbeb4[_0x5e15('0x22')]['clone']());const _0x24d0ed=null===_0x4cbeb4['_authorId']?null:_0x4cbeb4[_0x5e15('0xa0')]||this[_0x5e15('0x5a')]['plugins'][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x56b982=_0x4cbeb4[_0x5e15('0x3')];if(!this[_0x5e15('0x51')][_0x5e15('0x4e')](_0x56b982))return void this['_touchedMarkers'][_0x5e15('0x85')](_0x56b982,{'range':_0x4cbeb4[_0x5e15('0x2e')],'userId':_0x24d0ed});const _0x5f31c4=this['_touchedMarkers'][_0x5e15('0x21')](_0x56b982),_0x513093=_0x5f31c4['range'],_0x4efd4d=_0x4cbeb4[_0x5e15('0x22')];null==_0x513093&&null==_0x4efd4d||_0x513093&&_0x4efd4d&&_0x513093[_0x5e15('0x94')](_0x4efd4d)?this['_touchedMarkers'][_0x5e15('0x9e')](_0x4cbeb4[_0x5e15('0x3')]):_0x5f31c4[_0x5e15('0x78')]=_0x24d0ed;}[_0x5e15('0xa9')](_0x288605,_0x304c5e){this['_diffRoots'][_0x5e15('0x4e')](_0x288605[_0x5e15('0xde')])?this[_0x5e15('0x57')]['get'](_0x288605[_0x5e15('0xde')])[_0x5e15('0xee')]=_0x288605[_0x5e15('0xc9')]:(this[_0x5e15('0x57')][_0x5e15('0x85')](_0x288605['rootName'],G(_0x288605[_0x5e15('0xde')],!0x0)),this['_diffRootsAttributes'][_0x5e15('0x85')](_0x288605[_0x5e15('0xde')],{}),_0x304c5e&&this[_0x5e15('0x6d')][_0x5e15('0x85')](_0x288605[_0x5e15('0xde')],G(_0x288605[_0x5e15('0xde')],!0x0)));const _0x50f44b=null===_0x288605[_0x5e15('0xa0')]?null:_0x288605['_authorId']||this[_0x5e15('0x5a')][_0x5e15('0x49')][_0x5e15('0x21')](_0x5e15('0x104'))['me']['id'],_0x19ed1a=this[_0x5e15('0x64')][_0x5e15('0x21')](_0x288605[_0x5e15('0xde')]);_0x19ed1a&&_0x19ed1a[_0x5e15('0x78')]===_0x50f44b?this[_0x5e15('0x64')][_0x5e15('0x9e')](_0x288605[_0x5e15('0xde')]):this['_touchedRoots']['set'](_0x288605[_0x5e15('0xde')],{'userId':_0x50f44b,'isAttached':_0x288605[_0x5e15('0xc9')]});}[_0x5e15('0xb1')](_0x4f43e9){const _0x2fe6db=this[_0x5e15('0x72')][_0x5e15('0x21')](_0x4f43e9['root'][_0x5e15('0xde')]);null===_0x4f43e9[_0x5e15('0x9d')]?delete _0x2fe6db[_0x4f43e9[_0x5e15('0xe5')]]:_0x2fe6db[_0x4f43e9[_0x5e15('0xe5')]]=_0x4f43e9[_0x5e15('0x9d')];}}function q(_0x4cd09d){const _0x24e937=G(_0x4cd09d['rootName'],_0x4cd09d[_0x5e15('0xbc')]());for(const _0x56fae0 of _0x4cd09d['getChildren']()){const _0x9bae77=_0x56fae0[_0x5e15('0xbd')](!0x0);_0x24e937[_0x5e15('0xed')](_0x9bae77);}return _0x24e937;}function G(_0x305177,_0x495e70=!0x0){const _0x4e6174=new _0x143316();return _0x4e6174[_0x5e15('0xde')]=_0x305177,_0x4e6174[_0x5e15('0xee')]=_0x495e70,_0x4e6174[_0x5e15('0xbc')]=()=>_0x4e6174['_isAttached'],_0x4e6174;}function L(_0x28543c,_0x2dc201,_0x4d81ea){const _0x2c37a8=_0x5e15('0x101')==_0x28543c['type']?_0x4d81ea['createPositionAt'](_0x28543c[_0x5e15('0xea')],'end'):_0x4d81ea[_0x5e15('0x6e')](_0x28543c[_0x5e15('0xea')]);return _0x4d81ea[_0x5e15('0xda')](_0x2dc201,_0x2c37a8['path'],_0x2c37a8[_0x5e15('0xb7')]);}function W(_0x3a8495,_0xad50b9,_0x372acb){const _0x17791a='elementStart'==_0x3a8495[_0x5e15('0xc3')]?_0x372acb[_0x5e15('0xc')](_0x3a8495[_0x5e15('0xea')],0x0):_0x372acb[_0x5e15('0x34')](_0x3a8495[_0x5e15('0xea')]);return _0x372acb[_0x5e15('0xda')](_0xad50b9,_0x17791a[_0x5e15('0xe2')],_0x17791a[_0x5e15('0xb7')]);}
23
+ const _0x2a5f=['Initial\x20revision','bind','values','upcast','filter','find','elementEnd','isReady','isAttached','_addPendingAction','has','reverse','define','createRevision','editor','revision-start','authors','_source','getRevisions','createPositionFromPath','Empty\x20document','newRange','_idsRoots','toVersion','addRevisionData','view','data','_touchedRoots','getRevision','editing','isAdd','elementStart','processor','_bufferedUpdates','length','requires','_makeModelFromViewString','vid_start','locale','push','_fixPosition','parent','conversion','keepParagraph','Users','_handleInsertOperation','insertion','stickiness','newValue','fromEntries','creatorId','_diffRootsAttributes','version','creator','childCount','remove','_processRootBeforeSave','then','oldRange','roots','getWalker','trim','config','fromVersion','sendBufferedUpdates','_baseIdsRoots','keys','document','position','getRootNames','vid','getData','_baseRoots','split','includes','revisionHistory.resumeUnsavedRevision','get','some','_initialRevisionId','howMany','getChildren','start','_getFromVersion','size','getAttribute','_pendingAction','_handleRootOperation','parse','marker','isEnabled','_handleOperation','insert','buildRevisionData','name','_lastTo','collaboration.channelId','move','getLatestVersion','getRoot','baseVersion','_insertChild','documentFragment','range','getIndex','_baseRootsAttributes','RevisionTracker','getNodeByPath','changeRootAttribute','createRangeIn','createPositionAt','_loadedStateData','_operations','sourcePosition','_setConversion','from','type','_execute','_startingRevisionId','_loadRevisionData','path','getAttributes','vid_end','clear','_clone','setRevisionData','detachRoot','toData','getOperation','add','_fixRange','_continueCurrentRevision','repository','_cloneOperation','markerToData','_markChanges','init','children','dataToMarker','_lastFrom','offset','tableCell','string','loadState','reinsert','_handleSplitOperation','userId','hasContent','_revisionDataBuilder','getTransformedByOperation','_loadState','_getBaseVids','revision','data-revision-','_generateTape','updateRevisions','_reset','marked','stringify','markers','_setAttribute','initial','offsetSize','startsWith','RevisionsRepository','delete','revision:','source','_removeRevisionMarkers','history','set','_bufferUpdate','attributes','slice','_startingVersion','targetPosition','attachChange','authorsIds','getCurrentRevisionId','_calculateMetaData','_handleRootAttributeOperation','initialData','addRevision','attributesAfter','getUser','_update','createRange','_prepareViewToSave','_getViewJson','_makeRevision','setSource','map','$text','pluginName','item','getRevisionRootsAttributes','_handleMarkerOperation','diffData','_touched','_copyMarkers','_savedMetaData','resolve','_saveMetaData','NEGATIVE_INFINITY','getOperations','attributesBefore','key','_handleMoveOperation','graveyardPosition','deletion','previousPosition','adapter','_isAttached','$graveyard','_markers','_diffRoots','_makeIdsRoot','getRevisionDocumentData','reInit','_appendChild','createPositionAfter','nodeAfter','insertions','useFillerType','deletions','_applyOperations','clone','_handleMergeOperation','_removePendingAction','getMovedRangeStart','getRange','_getState','affectsData','toModel','_isPendingUpdate','root','_revisionId','rootName','paragraph','model','_createCurrentRevision','_findInsertionIndex','RealTimeCollaborationClient','isEqual','_fixOperation','saveRevision','sort','insertionPosition','_createInitialRevision','_removeMetaData','_touchedMarkers','rootsAttributes','createdAt','getTime','max','end','_authorId','_transformMarkers','_getVidAttributeName','getChild','plugins','element','PendingActions','_getPreviousFrom','currentRevision'];(function(_0x9ec97f,_0x2a5f47){const _0x278f5f=function(_0x37bf9a){while(--_0x37bf9a){_0x9ec97f['push'](_0x9ec97f['shift']());}};_0x278f5f(++_0x2a5f47);}(_0x2a5f,0x8d));const _0x278f=function(_0x9ec97f,_0x2a5f47){_0x9ec97f=_0x9ec97f-0x0;let _0x278f5f=_0x2a5f[_0x9ec97f];return _0x278f5f;};import{Users as _0xfe55ab}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xa4b1dc,PendingActions as _0x421ffa}from'ckeditor5/src/core';import{logWarning as _0x30e08f,uid as _0x5e4a78}from'ckeditor5/src/utils';import{Position as _0x31ab12,Range as _0x1c53ff,Element as _0x56b0b7,DocumentFragment as _0x5ab8b3,ViewText as _0x8bc594,ViewElement as _0x4bbc5f,ViewContainerElement as _0x4fe476,ViewAttributeElement as _0x437cc4,ViewEmptyElement as _0x114adc,ViewRawElement as _0x392a89,ViewUIElement as _0x2c767d,ViewDocumentFragment as _0x4b065d}from'ckeditor5/src/engine';import _0x11361b from'./revisionsrepository';import{getTranslation as _0x527825}from'./utils/common-translations';import{cloneDeep as _0x297498,isEqual as _0x45c1da}from'lodash-es';const B={'c':_0x4fe476,'a':_0x437cc4,'e':_0x114adc,'r':_0x392a89,'u':_0x2c767d};export default class l extends _0xa4b1dc{static get[_0x278f('0x33')](){return _0x278f('0xe4');}static get[_0x278f('0x9e')](){return[_0xfe55ab,_0x11361b,_0x421ffa];}constructor(_0x2db9ec){super(_0x2db9ec),this[_0x278f('0x45')]=null,this['currentRevision']=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0x278f('0xc9')]=this[_0x278f('0x89')][_0x278f('0xb9')][_0x278f('0xc7')]('collaboration.channelId')||_0x278f('0x13'),this[_0x278f('0x9c')]=new Map(),this[_0x278f('0xe9')]=null;const _0x300689=_0x5e4a78();this[_0x278f('0x8c')]={'history':this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0xbe')]['history'],'getLatestVersion':()=>Promise[_0x278f('0x3b')](this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0xbe')][_0x278f('0xaf')]),'getCurrentRevisionId':()=>_0x300689},this[_0x278f('0x1c')](_0x278f('0x82'),!0x1),this['set'](_0x278f('0xd4'),!0x0),this['set'](_0x278f('0x5c'),!0x1),this[_0x278f('0x89')][_0x278f('0xb9')][_0x278f('0x87')](_0x278f('0xc6'),!0x0),this[_0x278f('0x89')][_0x278f('0xa5')]['for'](_0x278f('0x7e'))[_0x278f('0x104')]({'view':_0x278f('0xa')});}[_0x278f('0x102')](){this[_0x278f('0xfe')]=this[_0x278f('0x89')][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0x16')),this[_0x278f('0xec')](),this[_0x278f('0x89')][_0x278f('0x95')]['on']('ready',()=>{const _0xb0bd55=this[_0x278f('0xfe')][_0x278f('0x97')](0x0),_0x5a16b3=_0xb0bd55&&null===_0xb0bd55['creator']?_0xb0bd55:null;if(this['_continueCurrentRevision']=!!_0x5a16b3&&this['editor'][_0x278f('0xb9')]['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins'][_0x278f('0x85')](_0x278f('0x64'))){const _0x3f4a62=this['_source']['getCurrentRevisionId'](),_0x59f814=this['repository'][_0x278f('0x97')](_0x3f4a62);if(_0x59f814)this[_0x278f('0x20')]=_0x59f814[_0x278f('0xba')],this[_0x278f('0xfd')]=!0x1;else{const _0x446bd0=this[_0x278f('0x8c')]['history'][_0x278f('0xea')]['find'](_0x48e8f9=>!_0x48e8f9['_isInit']),_0x485764=_0x446bd0?_0x446bd0[_0x278f('0xde')]:this[_0x278f('0x8c')]['history']['version'];_0xb0bd55?(_0xb0bd55[_0x278f('0x92')]<_0x485764&&_0xb0bd55['_update']({'toVersion':_0x485764}),this['_continueCurrentRevision']?(this[_0x278f('0x8c')][_0x278f('0x24')]=()=>_0x5a16b3['id'],this['_startingVersion']=_0x5a16b3[_0x278f('0xba')]):(this[_0x278f('0x20')]=_0xb0bd55[_0x278f('0x92')],this[_0x278f('0xfd')]=!0x1)):(this[_0x278f('0x20')]=_0x485764,this[_0x278f('0xfd')]=!0x1);}}else _0x5a16b3&&(this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0xbe')]['history'][_0x278f('0xaf')]=Math[_0x278f('0x70')](_0x5a16b3[_0x278f('0x92')],this[_0x278f('0x89')]['model'][_0x278f('0xbe')][_0x278f('0x1b')]['version']),_0x5a16b3[_0x278f('0xba')]===_0x5a16b3[_0x278f('0x92')]?(0x0!==_0x5a16b3['fromVersion']&&(this[_0x278f('0x8c')][_0x278f('0x24')]=()=>_0x5a16b3['id']),this['_continueCurrentRevision']=!0x1):this[_0x278f('0xfd')]&&(this[_0x278f('0x8c')][_0x278f('0x24')]=()=>_0x5a16b3['id'],this['_startingVersion']=_0x5a16b3['fromVersion'])),this[_0x278f('0xfd')]||(this[_0x278f('0x20')]=this[_0x278f('0x89')][_0x278f('0x61')]['document']['version']);this[_0x278f('0x6')][_0x278f('0x102')](this[_0x278f('0x8c')]['history']),this[_0x278f('0x6a')](this[_0x278f('0x20')]),this['_createCurrentRevision'](this['_startingVersion']),this[_0x278f('0x45')]&&this['sendBufferedUpdates']();}),this[_0x278f('0x7c')](_0x278f('0x82'))['to'](this,'_isPendingUpdate',_0x5695af=>!_0x5695af);}async['afterInit'](){if(this[_0x278f('0xfe')][_0x278f('0x9d')]>0x0){const _0x5f2a71=this[_0x278f('0xfe')]['getRevision'](0x0),_0x38d774=await this['getRevisionDocumentData'](_0x5f2a71),_0x528955=await this[_0x278f('0x35')](_0x5f2a71);this['_replaceEditorDataWithRevisionData'](_0x38d774,_0x528955);}}[_0x278f('0x30')](_0x1bc134){this[_0x278f('0x8c')]=_0x1bc134;}async['update'](){const _0x3573e4=await this[_0x278f('0x8c')][_0x278f('0xdc')]();if(_0x3573e4>this[_0x278f('0x7a')][_0x278f('0x92')]){await this['_loadState']();const _0x47b504=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3573e4});_0x47b504[_0x278f('0x8b')]=_0x47b504[_0x278f('0x23')][_0x278f('0x31')](_0x3763cd=>this[_0x278f('0x89')][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0xa7'))['getUser'](_0x3763cd)),this[_0x278f('0x7a')][_0x278f('0x2b')](_0x47b504);}}async['_loadState'](){this[_0x278f('0xfd')]&&!this[_0x278f('0xe9')]&&(await this[_0x278f('0xf1')](this[_0x278f('0x7a')]),this[_0x278f('0x6')][_0x278f('0x1')](this['currentRevision']),this['_loadedStateData']={'fromVersion':this[_0x278f('0x7a')][_0x278f('0xba')],'authors':this[_0x278f('0x7a')][_0x278f('0x8b')]['slice']()});}async[_0x278f('0x67')](_0x3397b5={},_0x566eea=null){const _0x4182f3=[];await this[_0x278f('0x8')](),this[_0x278f('0xfd')]=!0x1,_0x566eea>this['currentRevision'][_0x278f('0x92')]&&(_0x566eea=null),null===_0x566eea&&(_0x566eea=await this[_0x278f('0x8c')]['getLatestVersion']());const _0x55f8c3=this[_0x278f('0xcd')](_0x566eea),_0x24df04=this[_0x278f('0xd7')]({'from':_0x55f8c3,'to':_0x566eea});if(this[_0x278f('0x7a')][_0x278f('0x92')]<_0x566eea){const _0x35d212=this[_0x278f('0xd7')]({'revision':this[_0x278f('0x7a')],'from':_0x566eea,'to':_0x566eea});_0x35d212[_0x278f('0x8b')]=[],_0x35d212[_0x278f('0x23')]=[],_0x35d212['id']=this[_0x278f('0x7a')]['id'],this['currentRevision'][_0x278f('0x2b')](_0x35d212,!0x0),delete _0x35d212['authors'],_0x4182f3[_0x278f('0xa2')](_0x35d212);}_0x3397b5[_0x278f('0xad')]=this[_0x278f('0x89')][_0x278f('0x76')]['get'](_0x278f('0xa7'))['me']['id'],_0x3397b5[_0x278f('0xd8')]=_0x3397b5[_0x278f('0xd8')]||null,_0x3397b5['id']=_0x3397b5['id']||_0x5e4a78(),_0x3397b5={..._0x3397b5,..._0x24df04};const _0x5e42e5=this[_0x278f('0x93')](_0x3397b5);_0x4182f3[_0x278f('0xa2')](_0x3397b5);const _0x416fd6=this[_0x278f('0xfe')][_0x278f('0xe2')](_0x5e42e5);if(0x0!==_0x416fd6){const _0x164fc4=this[_0x278f('0xfe')][_0x278f('0x97')](_0x416fd6-0x1);if(_0x164fc4['fromVersion']!==_0x566eea){const _0x109e3e=this['_revisionDataBuilder'][_0x278f('0xc2')](_0x566eea,_0x164fc4[_0x278f('0x92')]),_0x495a13={'id':_0x164fc4['id'],'diffData':_0x109e3e[_0x278f('0x37')],'authorsIds':_0x109e3e[_0x278f('0x23')],'authors':_0x109e3e['authorsIds']['map'](_0x38387a=>this[_0x278f('0x89')]['plugins']['get'](_0x278f('0xa7'))[_0x278f('0x2a')](_0x38387a)),'fromVersion':_0x566eea};_0x164fc4===this[_0x278f('0x7a')]&&(_0x495a13[_0x278f('0x6e')]=new Date(_0x3397b5['createdAt'][_0x278f('0x6f')]()+0xa)),_0x164fc4[_0x278f('0x2b')](_0x495a13,!0x0),delete _0x495a13['authors'],_0x4182f3[_0x278f('0xa2')](_0x495a13);}}if(this[_0x278f('0x45')]){for(const _0x3f78d1 of _0x4182f3)this['_bufferUpdate'](_0x3f78d1['id'],_0x3f78d1,!0x0);this[_0x278f('0xbb')]();}return _0x5e42e5;}[_0x278f('0x93')](_0x9b8cc5){const _0x2800aa=this[_0x278f('0xfe')][_0x278f('0x88')](_0x9b8cc5);return this[_0x278f('0x45')]&&_0x2800aa['on']('_update',(_0x3820da,_0x32b3b4,_0x35efac)=>{_0x35efac||(this[_0x278f('0x1d')](_0x32b3b4['id'],_0x32b3b4,!0x0),this[_0x278f('0xbb')]());}),this[_0x278f('0xfe')][_0x278f('0x28')](_0x2800aa,this[_0x278f('0x63')](_0x2800aa)),_0x2800aa;}async[_0x278f('0x4b')](_0x412c4c){await this[_0x278f('0xf1')](_0x412c4c);const _0x4b41db={};for(const _0x4871eb in _0x412c4c[_0x278f('0x37')]){if(_0x412c4c[_0x278f('0x37')][_0x4871eb]['attachChange']&&!_0x412c4c[_0x278f('0x37')][_0x4871eb][_0x278f('0x22')]['isAttached'])continue;const _0x406171=this[_0x278f('0x1a')](JSON['parse'](_0x412c4c['diffData'][_0x4871eb][_0x278f('0x50')])),_0x3e84b0=this[_0x278f('0x89')][_0x278f('0x98')][_0x278f('0x94')]['document'],_0x2e4216=new _0x4b065d(_0x3e84b0,_0x406171[_0x278f('0x31')](_0x3ebfcc=>J(_0x3ebfcc,this['editor'])));this['editor'][_0x278f('0x95')][_0x278f('0x9b')][_0x278f('0x51')](_0x278f('0xf')),_0x4b41db[_0x4871eb]=this[_0x278f('0x89')][_0x278f('0x95')][_0x278f('0x9b')][_0x278f('0xf9')](_0x2e4216),this[_0x278f('0x89')][_0x278f('0x95')][_0x278f('0x9b')][_0x278f('0x51')]('default');}return _0x4b41db;}async[_0x278f('0x35')](_0xf921fe){await this[_0x278f('0xf1')](_0xf921fe);const _0x3a6156={};for(const _0x51c9e6 in _0xf921fe[_0x278f('0x37')])_0xf921fe[_0x278f('0x37')][_0x51c9e6][_0x278f('0x22')]&&!_0xf921fe['diffData'][_0x51c9e6]['attachChange'][_0x278f('0x83')]||(_0x3a6156[_0x51c9e6]=_0xf921fe['diffData'][_0x51c9e6][_0x278f('0x29')]||{});return _0x3a6156;}['sendBufferedUpdates'](){if(0x0===this[_0x278f('0x9c')][_0x278f('0xce')])return;if(this['_isPendingUpdate'])return;let _0x58b8b2=Array['from'](this[_0x278f('0x9c')][_0x278f('0x7d')]());this['_bufferedUpdates'][_0x278f('0xf5')]();for(let _0x3eaa4c=0x0;_0x3eaa4c<_0x58b8b2['length'];_0x3eaa4c++){const _0x2de5da=_0x58b8b2[_0x3eaa4c];let _0x38bccc=!0x1;for(const _0x3355d3 of Object[_0x278f('0xbd')](_0x2de5da))void 0x0===_0x2de5da[_0x3355d3]?delete _0x2de5da[_0x3355d3]:'id'!==_0x3355d3&&(_0x38bccc=!0x0);_0x38bccc||(_0x58b8b2[_0x3eaa4c]=null);}if(_0x58b8b2=_0x58b8b2['filter'](_0x357b25=>null!==_0x357b25),!_0x58b8b2[_0x278f('0x9d')])return;for(let _0x4dbb98=0x0;_0x4dbb98<_0x58b8b2[_0x278f('0x9d')];_0x4dbb98++){const _0x2b0e18=_0x58b8b2[_0x4dbb98];void 0x0!==_0x2b0e18[_0x278f('0xba')]&&void 0x0===_0x2b0e18[_0x278f('0x92')]&&(_0x2b0e18[_0x278f('0x92')]=this[_0x278f('0xfe')][_0x278f('0x97')](_0x2b0e18['id'])[_0x278f('0x92')]),void 0x0!==_0x2b0e18[_0x278f('0x92')]&&void 0x0===_0x2b0e18['fromVersion']&&(_0x2b0e18[_0x278f('0xba')]=this[_0x278f('0xfe')][_0x278f('0x97')](_0x2b0e18['id'])[_0x278f('0xba')]);}const _0x25b2c3=this[_0x278f('0x89')]['config']['get'](_0x278f('0xda'));this[_0x278f('0x5c')]=!0x0,this[_0x278f('0x84')](),this[_0x278f('0x45')][_0x278f('0xd')](_0x58b8b2,_0x25b2c3)['finally'](()=>{this[_0x278f('0x5c')]=!0x1;})[_0x278f('0xb4')](_0x467c91=>{if(_0x467c91)for(const _0x104aad of _0x467c91)this[_0x278f('0xf7')]({'id':_0x104aad['id'],'createdAt':_0x104aad['createdAt']});this[_0x278f('0x56')](),this[_0x278f('0xbb')]();});}['_replaceEditorDataWithRevisionData'](_0x1845ec,_0x27faf4){let _0x34ed12=this[_0x278f('0x89')][_0x278f('0xb9')][_0x278f('0xc7')](_0x278f('0x27')),_0x554c3f=this[_0x278f('0x89')][_0x278f('0xb9')][_0x278f('0xc7')]('rootsAttributes');if(void 0x0===_0x34ed12){_0x34ed12={};for(const _0x59d3d4 of this['editor'][_0x278f('0x61')][_0x278f('0xbe')][_0x278f('0xc0')]())_0x34ed12[_0x59d3d4]='';}if('string'==typeof _0x34ed12&&(_0x34ed12={'main':_0x34ed12}),void 0x0===_0x554c3f){_0x554c3f={};for(const _0x522155 of this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0xbe')][_0x278f('0xc0')]())_0x554c3f[_0x522155]={};}let _0x567e5c=!0x1;const _0x3eaed6=Object['keys'](_0x34ed12),_0x33caf2=Object[_0x278f('0xbd')](_0x1845ec);for(const _0x4b8bce of _0x3eaed6){if(_0x34ed12[_0x4b8bce]!==_0x1845ec[_0x4b8bce]&&''!==_0x34ed12[_0x4b8bce][_0x278f('0xb8')]()){_0x567e5c=!0x0;break;}if(!_0x45c1da(_0x554c3f[_0x4b8bce],_0x27faf4[_0x4b8bce])&&Object[_0x278f('0xbd')](_0x554c3f[_0x4b8bce])['length']>0x0){_0x567e5c=!0x0;break;}}_0x567e5c||(_0x567e5c=_0x33caf2[_0x278f('0xc8')](_0x44c9b5=>!this['editor']['model'][_0x278f('0xbe')][_0x278f('0xdd')](_0x44c9b5))),_0x567e5c&&_0x30e08f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x34ed12,'editorRootsAttributes':_0x554c3f,'revisionData':_0x1845ec,'revisionRootsAttributes':_0x27faf4}),this['editor'][_0x278f('0xb9')][_0x278f('0x1c')](_0x278f('0x27'),_0x1845ec),this[_0x278f('0x89')]['config'][_0x278f('0x1c')](_0x278f('0x6d'),_0x27faf4);}[_0x278f('0x84')](){if(!this[_0x278f('0xd0')]){const _0x3a8f8f=this['editor']['plugins'][_0x278f('0xc7')](_0x278f('0x78'));this[_0x278f('0xd0')]=_0x3a8f8f[_0x278f('0xfb')](_0x527825(this[_0x278f('0x89')]['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x278f('0xd0')]&&(this[_0x278f('0x89')][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0x78'))[_0x278f('0xb2')](this[_0x278f('0xd0')]),this[_0x278f('0xd0')]=null);}[_0x278f('0x63')](_0xd875d9){const _0x37913f=this[_0x278f('0xfe')][_0x278f('0x8d')]();_0x37913f[_0x278f('0x86')]();let _0x4c6570=0x0;for(;_0x4c6570<_0x37913f[_0x278f('0x9d')];){const _0x475d3e=_0x37913f[_0x4c6570];if(_0x475d3e===this['currentRevision']){_0x4c6570++;continue;}if(_0x475d3e['id']===this[_0x278f('0xc9')])break;const _0x181bf4=_0xd875d9[_0x278f('0x92')]-_0x475d3e['toVersion']||_0xd875d9[_0x278f('0xba')]-_0x475d3e[_0x278f('0xba')];if(_0x181bf4>0x0)break;if(_0x181bf4<0x0)_0x4c6570++;else{if(!_0xd875d9[_0x278f('0xb0')]&&_0x475d3e[_0x278f('0xb0')])break;if(_0x475d3e[_0x278f('0xb0')]||!_0xd875d9['creator']){if(_0xd875d9[_0x278f('0x6e')]>_0x475d3e[_0x278f('0x6e')])break;_0x4c6570++;}else _0x4c6570++;}}return _0x4c6570;}[_0x278f('0xf7')](_0x20582a){const _0x4e2cf2=this[_0x278f('0xfe')][_0x278f('0x97')](_0x20582a['id']);if(_0x20582a['createdAt']&&(_0x20582a[_0x278f('0x6e')]=new Date(_0x20582a['createdAt'])),_0x20582a[_0x278f('0x23')]){const _0x389bb2=this[_0x278f('0x89')]['plugins'][_0x278f('0xc7')](_0x278f('0xa7'));_0x20582a[_0x278f('0x8b')]=_0x20582a[_0x278f('0x23')]['map'](_0x13b428=>_0x389bb2[_0x278f('0x2a')](_0x13b428));}_0x4e2cf2[_0x278f('0x2b')](_0x20582a,!0x0);}[_0x278f('0xd7')]({revision:_0x7c02e3=null,from:_0x5de529=null,to:_0x406207=null}){_0x5de529=null!==_0x5de529?_0x5de529:_0x7c02e3[_0x278f('0xba')],_0x406207=null!==_0x406207?_0x406207:_0x7c02e3[_0x278f('0x92')];const _0x182021=this['_revisionDataBuilder'][_0x278f('0xc2')](_0x5de529,_0x406207),_0x187da3={'diffData':_0x182021[_0x278f('0x37')],'authorsIds':_0x182021['authorsIds'],'fromVersion':_0x5de529,'toVersion':_0x406207};if(!_0x7c02e3||_0x406207!==_0x7c02e3[_0x278f('0x92')]){const _0x47b8b9=_0x406207-0x1,_0xdf0acd=this[_0x278f('0x8c')][_0x278f('0x1b')][_0x278f('0xfa')](_0x47b8b9);_0x187da3['createdAt']=_0xdf0acd&&_0xdf0acd['createdAt']||new Date();}if(this[_0x278f('0xe9')]&&_0x5de529===this[_0x278f('0xe9')][_0x278f('0xba')])for(const _0x13f542 of this['_loadedStateData']['authors'])_0x187da3['authorsIds'][_0x278f('0xc5')](_0x13f542['id'])||_0x187da3[_0x278f('0x23')][_0x278f('0xa2')](_0x13f542['id']);return _0x187da3;}[_0x278f('0xf1')](_0x1bf749){if(!_0x1bf749||_0x1bf749[_0x278f('0x37')])return Promise[_0x278f('0x3b')]();{const _0x306a40=this[_0x278f('0x89')][_0x278f('0xb9')]['get'](_0x278f('0xda'));return this[_0x278f('0x45')][_0x278f('0x97')]({'channelId':_0x306a40,'revisionId':_0x1bf749['id']})[_0x278f('0xb4')](_0x2d90d2=>{_0x1bf749['diffData']=_0x2d90d2[_0x278f('0x37')];});}}['_bufferUpdate'](_0x422b88,_0x24e30e,_0x1d95bd){if(this['_bufferedUpdates']['has'](_0x422b88)){const _0x14cbd9=this[_0x278f('0x9c')][_0x278f('0xc7')](_0x422b88);_0x24e30e=_0x1d95bd?{..._0x14cbd9,..._0x24e30e}:{..._0x24e30e,..._0x14cbd9};}this[_0x278f('0x9c')]['set'](_0x422b88,_0x24e30e);}[_0x278f('0xcd')](_0x54d7aa){const _0x36954d=this[_0x278f('0xfe')][_0x278f('0x8d')]();_0x36954d['reverse'](),_0x36954d['shift']();const _0x3fc893=_0x36954d[_0x278f('0x80')](_0x236d2b=>_0x236d2b[_0x278f('0x92')]<=_0x54d7aa)[_0x278f('0x92')];return _0x3fc893<this['_startingVersion']?this[_0x278f('0x20')]:_0x3fc893;}['_createInitialRevision'](_0x16eaab){const _0x1430a4=this['repository']['getRevision'](this[_0x278f('0xfe')][_0x278f('0x9d')]-0x1);if(_0x1430a4)this['_initialRevisionId']=_0x1430a4['id'];else{const _0x3d85b1=!this[_0x278f('0x89')]['model'][_0x278f('0xbe')]['roots'][_0x278f('0x80')](_0x1461af=>this['editor']['model'][_0x278f('0x5')](_0x1461af)),_0x456834=this[_0x278f('0x89')]['plugins'][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x3dbc91=_0x527825(this[_0x278f('0x89')][_0x278f('0xa1')],_0x3d85b1?_0x278f('0x8f'):_0x278f('0x7b'));this[_0x278f('0x2f')]({'from':_0x16eaab,'to':_0x16eaab,'id':this[_0x278f('0xc9')],'name':_0x3dbc91,'creatorId':_0x456834});}}[_0x278f('0x62')](_0x69f025){const _0x53c72c=this[_0x278f('0x8c')][_0x278f('0x24')]();this[_0x278f('0x7a')]=this['repository']['getRevision'](_0x53c72c),this[_0x278f('0x7a')]||(this['currentRevision']=this[_0x278f('0x2f')]({'from':_0x69f025,'to':_0x69f025,'id':_0x53c72c,'name':'','creatorId':null}));}[_0x278f('0x2f')]({name:_0x28160c,from:_0x17acb9,to:_0x19d2d2,creatorId:_0x26cf76,id:_0x28c129}){const _0x5bcea3=this[_0x278f('0xd7')]({'from':_0x17acb9,'to':_0x19d2d2});_0x5bcea3['name']=_0x28160c,_0x5bcea3['creatorId']=_0x26cf76,_0x5bcea3['id']=_0x28c129;const _0x1693c3=this[_0x278f('0x93')](_0x5bcea3);return this[_0x278f('0x45')]&&this[_0x278f('0x1d')](_0x5bcea3['id'],_0x5bcea3,!0x0),_0x1693c3;}[_0x278f('0xec')](){this['editor'][_0x278f('0xa5')]['for']('dataDowncast')[_0x278f('0x100')]({'model':_0x278f('0xa')});}[_0x278f('0x1a')](_0x44366e){return(_0x44366e=_0x44366e[_0x278f('0x7f')](_0x254546=>!_0x254546[_0x278f('0xd8')]||_0x278f('0x8a')!==_0x254546[_0x278f('0xd8')]&&'revision-end'!==_0x254546[_0x278f('0xd8')]))['forEach'](_0x467e40=>{_0x278f('0x0')!=typeof _0x467e40&&(_0x467e40[_0x278f('0x103')]=this[_0x278f('0x1a')](_0x467e40[_0x278f('0x103')]),_0x467e40[_0x278f('0x1e')]=_0x467e40['attributes']['filter'](_0x10d471=>!_0x10d471[0x0]['startsWith'](_0x278f('0xb'))));}),_0x44366e;}}function J(_0x4d0967,_0x4da7bb){const _0x272104=_0x4da7bb['editing'][_0x278f('0x94')][_0x278f('0xbe')];if(_0x278f('0x0')==typeof _0x4d0967)return new _0x8bc594(_0x272104,_0x4d0967);{const _0x5180e7=_0x4d0967[_0x278f('0x103')]['map'](_0x1266df=>J(_0x1266df,_0x4da7bb));return new(B[_0x4d0967[(_0x278f('0xee'))]]||_0x4bbc5f)(_0x272104,_0x4d0967['name'],_0x4d0967[_0x278f('0x1e')],_0x5180e7);}}class H{constructor(_0x175e2c){this['editor']=_0x175e2c,this[_0x278f('0x3a')]=new Map(),this[_0x278f('0x105')]=-0x1,this['_lastTo']=-0x1,this[_0x278f('0x48')]=new Map(),this[_0x278f('0x49')]=new Map(),this[_0x278f('0xae')]=new Map(),this['_baseRoots']=new Map(),this[_0x278f('0xe3')]=new Map(),this[_0x278f('0x91')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x278f('0x38')]=new Map(),this[_0x278f('0x6c')]=new Map(),this[_0x278f('0x96')]=new Map(),this['_revisionId']=0x1;}['init'](_0x1d497e){this[_0x278f('0x19')]=_0x1d497e;const _0x560b8b=new Map(),_0x11b0d9=new Map(),_0x398776=this['editor'][_0x278f('0x61')][_0x278f('0xbe')][_0x278f('0xb6')][_0x278f('0x31')](_0xe62b8d=>_0xe62b8d['rootName']);for(const _0x578dae of _0x398776){const _0x2f954c=this[_0x278f('0x89')]['model'][_0x278f('0xbe')][_0x278f('0xdd')](_0x578dae),_0x174d17=q(_0x2f954c);_0x560b8b[_0x278f('0x1c')](_0x578dae,_0x174d17),_0x11b0d9[_0x278f('0x1c')](_0x578dae,Object[_0x278f('0xac')](_0x2f954c[_0x278f('0xf3')]()));}const _0x31e0a6=Array['from'](this['editor'][_0x278f('0x61')]['markers'])[_0x278f('0x31')](_0x56de5c=>[_0x56de5c[_0x278f('0xd8')],_0x56de5c[_0x278f('0x58')]()]),_0x520f03=this[_0x278f('0x19')][_0x278f('0xaf')];this[_0x278f('0x3c')](_0x520f03,_0x560b8b,_0x31e0a6,_0x11b0d9),this[_0x278f('0xf0')]=this['_revisionId'];const _0x15ae04=new Map(),_0x18ce40=new Map();for(const _0x4877e5 of _0x398776){const _0x3c1b2b=G(_0x4877e5);_0x15ae04[_0x278f('0x1c')](_0x4877e5,_0x3c1b2b),_0x18ce40['set'](_0x4877e5,{});}this[_0x278f('0x3c')](Number[_0x278f('0x3d')],_0x15ae04,[],_0x18ce40);}[_0x278f('0xc2')](_0x7f400c,_0x2ecb32){if(this[_0x278f('0x105')]===_0x7f400c&&this[_0x278f('0xd9')]<=_0x2ecb32)this[_0x278f('0x3a')][_0x278f('0xce')]>0x1&&this[_0x278f('0x6b')](this[_0x278f('0xd9')]),this[_0x278f('0x53')](this[_0x278f('0xd9')],_0x2ecb32,!0x0);else{if(!this[_0x278f('0x3a')][_0x278f('0x85')](_0x7f400c)){const _0x282204=this[_0x278f('0x79')](_0x7f400c);this[_0x278f('0x25')](_0x282204,_0x7f400c,!0x1);}this[_0x278f('0x25')](_0x7f400c,_0x2ecb32,!0x0);}return this[_0x278f('0x105')]=_0x7f400c,this[_0x278f('0xd9')]=_0x2ecb32,this[_0x278f('0x59')]();}[_0x278f('0x1')](_0x406ec0){this['_reset'](),this['_lastFrom']=_0x406ec0[_0x278f('0xba')],this[_0x278f('0xd9')]=_0x406ec0[_0x278f('0x92')];for(const _0x1d8ef6 in _0x406ec0['diffData']){const _0x1c17d1=_0x406ec0[_0x278f('0x37')][_0x1d8ef6][_0x278f('0x22')],_0xd54c0f=_0x297498(_0x406ec0[_0x278f('0x37')][_0x1d8ef6][_0x278f('0x3f')])||{},_0x3056a2=this[_0x278f('0x9f')](_0x406ec0[_0x278f('0x37')][_0x1d8ef6][_0x278f('0x52')]);_0x3056a2[_0x278f('0x5f')]=_0x1d8ef6,_0x3056a2[_0x278f('0x46')]=!_0x1c17d1||!_0x1c17d1[_0x278f('0x83')],_0x3056a2['isAttached']=()=>_0x3056a2[_0x278f('0x46')],this['_baseRoots'][_0x278f('0x1c')](_0x1d8ef6,_0x3056a2),this['_baseRootsAttributes'][_0x278f('0x1c')](_0x1d8ef6,_0xd54c0f),_0x1c17d1&&this['_touchedRoots']['set'](_0x1d8ef6,_0x1c17d1);const _0x19bcc9=this[_0x278f('0x4a')](_0x3056a2);this['_baseIdsRoots']['set'](_0x1d8ef6,_0x19bcc9);for(const [_0x35094a,_0x3dd8ca]of _0x3056a2[_0x278f('0x11')]){if(!_0x35094a[_0x278f('0x15')]('revision:'))continue;const _0x1bd70b=_0x35094a['split'](':')[0x2];for(const _0x32d6b6 of _0x3dd8ca[_0x278f('0xb7')]({'singleCharacters':!0x0})){const _0x73ec95=this[_0x278f('0x74')](_0x32d6b6),_0x4ce4a1=_0x278f('0x81')==_0x32d6b6['type']?_0x32d6b6[_0x278f('0x44')][_0x278f('0xf2')][_0x278f('0x1f')](0x0,-0x1):_0x32d6b6['previousPosition']['path'],_0x48146c=_0x19bcc9['getNodeByPath'](_0x4ce4a1)[_0x278f('0xcf')](_0x73ec95);this[_0x278f('0x38')][_0x278f('0x1c')](_0x48146c,{'userId':_0x1bd70b});}}}this[_0x278f('0xf0')]=this[_0x278f('0x5e')];const _0x133206=[...Array(this[_0x278f('0x5e')])['keys']()]['slice'](0x1)[_0x278f('0x7f')](_0xaab54f=>!this[_0x278f('0x38')][_0x278f('0x85')](_0xaab54f));let _0x3af256=0x0;const _0x544913=new Map();for(const _0x3b0f1d in _0x406ec0[_0x278f('0x37')]){const _0x561520=_0x406ec0['diffData'][_0x3b0f1d][_0x278f('0x22')],_0x34642b=_0x297498(_0x406ec0[_0x278f('0x37')][_0x3b0f1d]['attributesAfter'])||{},_0x3f838d=this[_0x278f('0x9f')](_0x406ec0[_0x278f('0x37')][_0x3b0f1d][_0x278f('0x50')]);_0x3f838d[_0x278f('0x5f')]=_0x3b0f1d,_0x3f838d['_isAttached']=!_0x561520||_0x561520['isAttached'],_0x3f838d['isAttached']=()=>_0x3f838d[_0x278f('0x46')],this[_0x278f('0x49')][_0x278f('0x1c')](_0x3b0f1d,_0x3f838d),this[_0x278f('0xae')][_0x278f('0x1c')](_0x3b0f1d,_0x34642b);const _0x221d17=this[_0x278f('0x4a')](_0x3f838d,Number['NEGATIVE_INFINITY']);this[_0x278f('0x91')][_0x278f('0x1c')](_0x3b0f1d,_0x221d17),_0x544913[_0x278f('0x1c')](_0x3b0f1d,_0x3f838d['isAttached']()?_0x34642b:{});for(const [_0x2418d1,_0x54a628]of _0x3f838d[_0x278f('0x11')]){if(!_0x2418d1[_0x278f('0x15')](_0x278f('0x18')))continue;const _0x5d77fe=_0x2418d1[_0x278f('0xc4')](':')[0x2];for(const _0x4a7996 of _0x54a628['getWalker']({'singleCharacters':!0x0})){const _0x3841fc=this[_0x278f('0x74')](_0x4a7996),_0x3b925e=this['_revisionId']++,_0x3f591e=_0x278f('0x81')==_0x4a7996[_0x278f('0xee')]?_0x4a7996[_0x278f('0x44')][_0x278f('0xf2')][_0x278f('0x1f')](0x0,-0x1):_0x4a7996[_0x278f('0x44')][_0x278f('0xf2')];_0x221d17[_0x278f('0xe5')](_0x3f591e)['_setAttribute'](_0x3841fc,_0x3b925e),this[_0x278f('0x38')][_0x278f('0x1c')](_0x3b925e,{'userId':_0x5d77fe});}}for(const _0x5eb08e of this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0xe7')](_0x3f838d)[_0x278f('0xb7')]({'singleCharacters':!0x0})){const _0x1aae14=this['_getVidAttributeName'](_0x5eb08e),_0x38f1ff=_0x278f('0x81')==_0x5eb08e['type']?_0x5eb08e[_0x278f('0x44')][_0x278f('0xf2')][_0x278f('0x1f')](0x0,-0x1):_0x5eb08e[_0x278f('0x44')][_0x278f('0xf2')],_0x24d94c=_0x221d17[_0x278f('0xe5')](_0x38f1ff);_0x24d94c[_0x278f('0xcf')](_0x1aae14)>0x0||_0x24d94c['_setAttribute'](_0x1aae14,_0x133206[_0x3af256++]);}for(const [_0x4814d6,_0x3bf109]of _0x3f838d[_0x278f('0x11')])_0x4814d6[_0x278f('0x15')]('revision:')||this[_0x278f('0x48')]['set'](_0x4814d6,_0x3bf109);}const _0x529f76=G(_0x278f('0x47'));this[_0x278f('0xc3')][_0x278f('0x1c')](_0x278f('0x47'),_0x529f76),this[_0x278f('0xbc')]['set']('$graveyard',this[_0x278f('0x4a')](_0x529f76,0x1));const _0x16c90c=G(_0x278f('0x47'));this['_diffRoots'][_0x278f('0x1c')](_0x278f('0x47'),_0x16c90c),this[_0x278f('0x91')][_0x278f('0x1c')]('$graveyard',this[_0x278f('0x4a')](_0x16c90c,0x1));const _0x5d35a6=Array[_0x278f('0xed')](this['_diffRoots'])[_0x278f('0x31')](([_0x153955,_0x2c0957])=>[_0x153955,q(_0x2c0957)]);this[_0x278f('0x3c')](this['_lastTo'],_0x5d35a6,this['_markers'],_0x544913);}[_0x278f('0x9f')](_0x2dca59){const _0x3f156f=JSON[_0x278f('0xd2')](_0x2dca59),_0x46c17d=this[_0x278f('0x89')][_0x278f('0x98')]['view']['document'],_0x1f01f0=new _0x4b065d(_0x46c17d,_0x3f156f[_0x278f('0x31')](_0x541e8e=>J(_0x541e8e,this['editor'])));return this[_0x278f('0x89')][_0x278f('0x95')][_0x278f('0x5b')](_0x1f01f0);}[_0x278f('0x3c')](_0x5782e4,_0x186ae9,_0x50945f,_0x25314e){const _0x3d1da4=new Map(_0x186ae9),_0x4c9800=new Map(_0x297498(_0x25314e)),_0x45e96b=new Map();for(const [_0xd09b2e,_0x479ed5]of _0x50945f)_0x45e96b[_0x278f('0x1c')](_0xd09b2e,{'start':_0x479ed5[_0x278f('0xcc')][_0x278f('0x54')](),'end':_0x479ed5['end'][_0x278f('0x54')](),'rootName':_0x479ed5[_0x278f('0x5d')][_0x278f('0x5f')]});this[_0x278f('0x3a')][_0x278f('0x1c')](_0x5782e4,{'roots':_0x3d1da4,'markers':_0x45e96b,'rootsAttributes':_0x4c9800});}[_0x278f('0x6b')](_0x4286ef){this[_0x278f('0x3a')]['delete'](_0x4286ef);}[_0x278f('0x4c')](){this[_0x278f('0xe')](),this[_0x278f('0x105')]=-0x1,this[_0x278f('0xd9')]=-0x1,this['_savedMetaData']['clear'](),this[_0x278f('0x102')](this[_0x278f('0x19')]);}[_0x278f('0xe')](){this[_0x278f('0x38')]['clear'](),this[_0x278f('0x6c')][_0x278f('0xf5')](),this[_0x278f('0x96')][_0x278f('0xf5')](),this[_0x278f('0x49')]['clear'](),this[_0x278f('0xae')][_0x278f('0xf5')](),this[_0x278f('0xc3')][_0x278f('0xf5')](),this[_0x278f('0xe3')][_0x278f('0xf5')](),this[_0x278f('0x91')]['clear'](),this[_0x278f('0xbc')][_0x278f('0xf5')](),this['_markers'][_0x278f('0xf5')](),this[_0x278f('0x5e')]=0x1,this[_0x278f('0xf0')]=this[_0x278f('0x5e')];}[_0x278f('0x4a')](_0x41c527,_0x2afcab=null){let _0x3d083f=null;_0x41c527['is'](_0x278f('0xe0'))||(_0x3d083f=new _0x56b0b7(_0x41c527[_0x278f('0xd8')],{'vid_start':null===_0x2afcab?this['_revisionId']++:_0x2afcab++}));const _0x53d562=[];for(const _0x4759ea of _0x41c527['getChildren']())if(_0x4759ea['is'](_0x278f('0x77'))){_0x53d562[_0x278f('0xa2')](this[_0x278f('0x4a')](_0x4759ea,_0x2afcab));const _0x218cd1=_0x53d562[_0x53d562[_0x278f('0x9d')]-0x1];null!==_0x2afcab&&(_0x2afcab=_0x218cd1['is']('element',_0x278f('0x32'))?_0x218cd1['getAttribute']('vid')+0x1:_0x218cd1[_0x278f('0xcf')](_0x278f('0xf4'))+0x1);}else for(let _0x572240=0x0;_0x572240<_0x4759ea[_0x278f('0x14')];_0x572240++)_0x53d562[_0x278f('0xa2')](new _0x56b0b7('$text',{'vid':null===_0x2afcab?this[_0x278f('0x5e')]++:_0x2afcab++}));if(_0x41c527['is'](_0x278f('0xe0'))){const _0x2f57fd=G(_0x41c527[_0x278f('0x5f')]);return _0x2f57fd[_0x278f('0xdf')](0x0,_0x53d562),_0x2f57fd;}return _0x3d083f['_setAttribute'](_0x278f('0xf4'),null===_0x2afcab?this[_0x278f('0x5e')]++:_0x2afcab++),_0x3d083f[_0x278f('0xdf')](0x0,_0x53d562),_0x3d083f;}[_0x278f('0x25')](_0x2842a9,_0x36df3d,_0x242ecb){this[_0x278f('0xe')]();const {roots:_0x2a9f55,markers:_0x152bb1,rootsAttributes:_0x31474b}=this[_0x278f('0x3a')][_0x278f('0xc7')](_0x2842a9);this[_0x278f('0xc3')]=new Map(_0x2a9f55),this[_0x278f('0xe3')]=new Map(_0x297498(_0x31474b));for(const [_0x57165d,_0x255863]of this[_0x278f('0xc3')])if('$graveyard'!==_0x57165d&&(this[_0x278f('0x49')]['set'](_0x57165d,q(_0x255863)),this[_0x278f('0xae')]=new Map(_0x297498(_0x31474b)),_0x242ecb)){const _0x165c67=this[_0x278f('0x5e')];this[_0x278f('0x91')][_0x278f('0x1c')](_0x57165d,this['_makeIdsRoot'](_0x255863)),this['_baseIdsRoots'][_0x278f('0x1c')](_0x57165d,this[_0x278f('0x4a')](_0x255863,_0x165c67));}this[_0x278f('0xf0')]=this[_0x278f('0x5e')],this[_0x278f('0x49')][_0x278f('0x1c')]('$graveyard',q(this[_0x278f('0xc3')][_0x278f('0xc7')](_0x278f('0x47')))),_0x242ecb&&this[_0x278f('0x91')][_0x278f('0x1c')](_0x278f('0x47'),this['_makeIdsRoot'](this[_0x278f('0xc3')]['get'](_0x278f('0x47'))));for(const [_0x54df7b,_0x17b8f3]of _0x152bb1){const _0x2063a7=this[_0x278f('0xc3')][_0x278f('0xc7')](_0x17b8f3[_0x278f('0x5f')]),_0xbd80ed=this[_0x278f('0x49')][_0x278f('0xc7')](_0x17b8f3[_0x278f('0x5f')]),_0x2b1d6a=new _0x1c53ff(this['_fixPosition'](_0x17b8f3['start'],_0x2063a7),this[_0x278f('0xa3')](_0x17b8f3[_0x278f('0x71')],_0x2063a7)),_0x3689a0=this[_0x278f('0xfc')](_0x2b1d6a,_0xbd80ed);_0x2063a7[_0x278f('0x11')][_0x278f('0x1c')](_0x54df7b,_0x2b1d6a),this['_markers'][_0x278f('0x1c')](_0x54df7b,_0x3689a0);}this['_applyOperations'](_0x2842a9,_0x36df3d,_0x242ecb);}[_0x278f('0x53')](_0x3dfca6,_0x5ac6f5,_0x25bb72){for(const _0x2971a1 of this[_0x278f('0x19')][_0x278f('0x3e')](_0x3dfca6,_0x5ac6f5))this[_0x278f('0xd5')](_0x2971a1,_0x25bb72);for(const _0x1a893d of this['_diffRoots'][_0x278f('0x7d')]())_0x1a893d['markers']['clear']();for(const [_0x27dcff,_0x4bd8a6]of this[_0x278f('0x48')]){this[_0x278f('0x49')]['get'](_0x4bd8a6[_0x278f('0x5d')][_0x278f('0x5f')])[_0x278f('0x11')]['set'](_0x27dcff,_0x4bd8a6['clone']());}const _0x270353=new Map(),_0x24aa9c=new Map();for(const [_0x5766a9,_0x498670]of this[_0x278f('0x49')])_0x270353[_0x278f('0x1c')](_0x5766a9,q(_0x498670)),_0x24aa9c[_0x278f('0x1c')](_0x5766a9,this['_diffRootsAttributes']['get'](_0x5766a9));this[_0x278f('0x3c')](_0x5ac6f5,_0x270353,this[_0x278f('0x48')],_0x24aa9c);}[_0x278f('0x79')](_0x4ed31e){const _0x1afa8b=Array['from'](this[_0x278f('0x3a')][_0x278f('0xbd')]());_0x1afa8b[_0x278f('0x68')]((_0x496266,_0x240519)=>_0x496266-_0x240519),_0x1afa8b[_0x278f('0x86')]();for(const _0x5f10ff of _0x1afa8b)if(_0x5f10ff<_0x4ed31e)return _0x5f10ff;return Number['NEGATIVE_INFINITY'];}[_0x278f('0x39')](_0x690481,_0x41f59b){const _0x3fc3b2=Array[_0x278f('0xed')](_0x41f59b['markers'])['map'](([_0x5198c9,_0x245e87])=>[_0x5198c9,this[_0x278f('0xfc')](_0x245e87,_0x690481)]);_0x690481[_0x278f('0x11')]=new Map(_0x3fc3b2);}[_0x278f('0x73')](_0x3d89ed){for(const _0x3144a7 of this[_0x278f('0x48')][_0x278f('0x7d')]()){const _0x41d529=_0x3144a7[_0x278f('0x7')](_0x3d89ed),_0x1e510c=_0x1c53ff['_createFromRanges'](_0x41d529);_0x3144a7['start']=_0x1e510c[_0x278f('0xcc')],_0x3144a7[_0x278f('0x71')]=_0x1e510c[_0x278f('0x71')];}}[_0x278f('0xd5')](_0x518109,_0x27dddc){if('addRoot'==_0x518109[_0x278f('0xee')]||_0x278f('0xf8')==_0x518109[_0x278f('0xee')])return void this[_0x278f('0xd1')](_0x518109,_0x27dddc);if(_0x278f('0xd6')==_0x518109[_0x278f('0xee')]){const _0x30e314=_0x518109[_0x278f('0xbf')]['root'][_0x278f('0x5f')];this['_diffRoots'][_0x278f('0x85')](_0x30e314)||(this['_diffRoots'][_0x278f('0x1c')](_0x30e314,G(_0x30e314,!0x0)),this[_0x278f('0xae')][_0x278f('0x1c')](_0x30e314,{}),_0x27dddc&&this[_0x278f('0x91')]['set'](_0x30e314,G(_0x30e314,!0x0)));}else{if('addRootAttribute'==_0x518109['type']||'removeRootAttribute'==_0x518109[_0x278f('0xee')]||_0x278f('0xe6')==_0x518109['type'])return void this[_0x278f('0x26')](_0x518109);}const _0x45eea2=this['_cloneOperation'](_0x518109,this['_diffRoots']);if('marker'!==_0x518109[_0x278f('0xee')]&&(_0x45eea2['_execute'](),this[_0x278f('0x73')](_0x45eea2)),_0x27dddc)switch(_0x45eea2[_0x278f('0xee')]){case _0x278f('0xd6'):this[_0x278f('0xa8')](_0x518109);break;case _0x278f('0xdb'):case'remove':case _0x278f('0x2'):this[_0x278f('0x41')](_0x518109);break;case'merge':this[_0x278f('0x55')](_0x518109);break;case'split':this[_0x278f('0x3')](_0x518109);break;case _0x278f('0xd3'):this[_0x278f('0x36')](_0x518109);}}[_0x278f('0xff')](_0x4d18b8,_0x165477){const _0x252e91=_0x4d18b8[_0x278f('0x54')]();return _0x252e91[_0x278f('0x72')]=_0x4d18b8['_authorId'],this['_fixOperation'](_0x252e91,_0x165477),_0x252e91;}[_0x278f('0x9')](_0x517146){return _0x517146['map'](_0x3906a6=>{const _0x3c8110=this['_getVidAttributeName'](_0x3906a6);return Number(_0x3906a6['item'][_0x278f('0xcf')](_0x3c8110));});}[_0x278f('0xc')](_0x16dfb9,_0x5d15e7){if(_0x16dfb9['is'](_0x278f('0x77'),_0x278f('0x32')))_0x5d15e7[_0x278f('0xa2')]({'item':_0x16dfb9,'type':'text'});else{_0x16dfb9['is'](_0x278f('0x77'))&&_0x5d15e7[_0x278f('0xa2')]({'item':_0x16dfb9,'type':_0x278f('0x9a')});for(const _0x183c08 of _0x16dfb9[_0x278f('0xcb')]())this[_0x278f('0xc')](_0x183c08,_0x5d15e7);_0x16dfb9['is'](_0x278f('0x77'))&&_0x5d15e7[_0x278f('0xa2')]({'item':_0x16dfb9,'type':_0x278f('0x81')});}return _0x5d15e7;}['_getState'](){const _0x59ef9c=new Map(this[_0x278f('0x38')]),_0x2042c6=new Map(_0x59ef9c),_0x38ef14=new Map(),_0x2750ec={'insertions':{},'deletions':{}},_0x4ea661={'insertions':{},'deletions':{}},_0x26c74a=new Map(),_0x5f3e50=new Set([...this[_0x278f('0xc3')][_0x278f('0xbd')](),...this[_0x278f('0x49')][_0x278f('0xbd')]()]);_0x5f3e50[_0x278f('0x17')](_0x278f('0x47'));for(const _0xeac258 of _0x5f3e50){const _0x410afa=this[_0x278f('0x49')][_0x278f('0xc7')](_0xeac258)||G(_0xeac258,!0x1),_0x4a625a=this[_0x278f('0xc3')]['get'](_0xeac258)||G(_0xeac258,!0x1);_0x410afa[_0x278f('0x83')]()||_0x4a625a[_0x278f('0x83')]()?(_0x2750ec['insertions'][_0xeac258]=q(_0x410afa),_0x2750ec[_0x278f('0x52')][_0xeac258]=q(_0x4a625a),this[_0x278f('0x39')](_0x2750ec[_0x278f('0x52')][_0xeac258],_0x4a625a),this['_copyMarkers'](_0x2750ec[_0x278f('0x50')][_0xeac258],_0x410afa),_0x4ea661[_0x278f('0x50')][_0xeac258]=this[_0x278f('0xc')](this[_0x278f('0x91')][_0x278f('0xc7')](_0xeac258),[]),_0x4ea661[_0x278f('0x52')][_0xeac258]=this[_0x278f('0xc')](this['_baseIdsRoots'][_0x278f('0xc7')](_0xeac258)||G(_0xeac258,!0x1),[])):_0x5f3e50['delete'](_0xeac258);}for(const _0xc0bb4e of _0x5f3e50){const _0x2a4c78=_0x4ea661[_0x278f('0x50')][_0xc0bb4e];for(const _0x7d8413 of _0x2a4c78){const _0x244d05=this['_getVidAttributeName'](_0x7d8413),_0xf5821b=_0x7d8413[_0x278f('0x34')]['getAttribute'](_0x244d05);_0x2042c6[_0x278f('0x17')](_0xf5821b),_0xf5821b>=this[_0x278f('0xf0')]&&_0x38ef14['set'](_0xf5821b,_0x59ef9c[_0x278f('0xc7')](_0xf5821b));}}for(const _0x346199 of _0x5f3e50){const _0x4ff6f8=_0x4ea661[_0x278f('0x50')][_0x346199],_0x298bbf=this[_0x278f('0x9')](_0x4ea661[_0x278f('0x52')][_0x346199]);let _0xe46833=0x0;for(const _0x3e3c2b of _0x4ff6f8){const _0x54c171=this[_0x278f('0x74')](_0x3e3c2b),_0x377b3a=_0x3e3c2b[_0x278f('0x34')][_0x278f('0xcf')](_0x54c171);if(!_0x38ef14[_0x278f('0x85')](_0x377b3a)&&!_0x26c74a[_0x278f('0x85')](_0x377b3a)){if(_0x2042c6[_0x278f('0x85')](_0x377b3a))_0xe46833++;else{if(_0x377b3a!=_0x298bbf[_0xe46833]){const _0x41bb69=_0x59ef9c[_0x278f('0xc7')](_0x377b3a)||_0x59ef9c[_0x278f('0xc7')](_0x298bbf[_0xe46833]);for(;_0x377b3a!=_0x298bbf[_0xe46833];)_0x2042c6[_0x278f('0x85')](_0x298bbf[_0xe46833])||(_0x26c74a[_0x278f('0x1c')](_0x298bbf[_0xe46833],_0x41bb69),_0x59ef9c['set'](_0x298bbf[_0xe46833],_0x41bb69)),_0xe46833++;}_0xe46833++;}}}}for(const _0x442966 of _0x5f3e50){const _0x65f4e0=_0x4ea661[_0x278f('0x50')][_0x442966];for(const _0x440db2 of _0x65f4e0){const _0x16652c=this['_getVidAttributeName'](_0x440db2),_0x5d278d=_0x440db2[_0x278f('0x34')][_0x278f('0xcf')](_0x16652c);if(_0x26c74a[_0x278f('0x85')](_0x5d278d)){const _0x156fb3=_0x26c74a[_0x278f('0xc7')](_0x5d278d);_0x2042c6[_0x278f('0x85')](_0x5d278d)||_0x2042c6[_0x278f('0x1c')](_0x5d278d,{..._0x156fb3}),_0x38ef14[_0x278f('0x1c')](_0x5d278d,{..._0x156fb3});}}}for(const _0x260e22 of _0x2042c6[_0x278f('0xbd')]())_0x260e22>=this[_0x278f('0xf0')]&&_0x2042c6['delete'](_0x260e22);const _0x391be8=new Map();for(const _0x5b161e of _0x5f3e50){let _0x40a285=_0x4ea661['insertions'][_0x5b161e];for(const _0x599ab8 of _0x40a285)if(_0x599ab8[_0x278f('0x34')]['is']('element',_0x278f('0x107'))){const _0x14dce9=this[_0x278f('0x74')](_0x599ab8),_0x599dbd=_0x599ab8[_0x278f('0x34')]['getAttribute'](_0x14dce9);if(_0x38ef14[_0x278f('0x85')](_0x599dbd)){const _0x189750=_0x599ab8[_0x278f('0x34')]['parent'][_0x278f('0xa4')][_0x278f('0xcf')](_0x278f('0xa0')),_0x5d377e=_0x391be8[_0x278f('0xc7')](_0x189750)||new Set();_0x5d377e[_0x278f('0xfb')](_0x38ef14[_0x278f('0xc7')](_0x599dbd)['userId']),_0x391be8['set'](_0x189750,_0x5d377e);}}_0x40a285=_0x4ea661[_0x278f('0x52')][_0x5b161e];for(const _0x1da3c1 of _0x40a285)if(_0x1da3c1[_0x278f('0x34')]['is'](_0x278f('0x77'),_0x278f('0x107'))){const _0x34ee2f=this[_0x278f('0x74')](_0x1da3c1),_0x436486=_0x1da3c1[_0x278f('0x34')][_0x278f('0xcf')](_0x34ee2f);if(_0x2042c6['has'](_0x436486)){const _0x1bed38=_0x1da3c1[_0x278f('0x34')][_0x278f('0xa4')][_0x278f('0xa4')][_0x278f('0xcf')]('vid_start'),_0x24bf3f=_0x391be8['get'](_0x1bed38)||new Set();_0x24bf3f[_0x278f('0xfb')](_0x2042c6[_0x278f('0xc7')](_0x436486)[_0x278f('0x4')]),_0x391be8[_0x278f('0x1c')](_0x1bed38,_0x24bf3f);}}for(const _0x24d75b of _0x391be8[_0x278f('0xbd')]())(_0x38ef14['has'](_0x24d75b)||_0x2042c6[_0x278f('0x85')](_0x24d75b))&&_0x391be8[_0x278f('0x17')](_0x24d75b);}for(const _0x8d5da9 of _0x5f3e50){const _0x57c077=_0x4ea661[_0x278f('0x50')][_0x8d5da9];let _0x3f0a35=null,_0x373227=null;for(const _0xe94121 of _0x57c077){const _0x2f8693=this[_0x278f('0x74')](_0xe94121),_0x30969c=_0xe94121[_0x278f('0x34')][_0x278f('0xcf')](_0x2f8693),_0x5e21df=_0x391be8[_0x278f('0xc7')](_0x30969c);_0x5e21df&&_0x278f('0x9a')==_0xe94121[_0x278f('0xee')]&&(_0x3f0a35=Array[_0x278f('0xed')](_0x5e21df)[0x0],_0x373227=_0xe94121['item'][_0x278f('0xcf')](_0x278f('0xf4'))),_0x3f0a35&&(_0x2042c6[_0x278f('0x1c')](_0x30969c,{'userId':_0x3f0a35}),_0x38ef14[_0x278f('0x1c')](_0x30969c,{'userId':_0x3f0a35})),_0x30969c==_0x373227&&(_0x3f0a35=null,_0x373227=null);}}const _0x312263={},_0x1baed7=new Set();for(const _0x472287 of _0x5f3e50){const _0x35c638=_0x2750ec[_0x278f('0x52')][_0x472287],_0x4600b7=_0x2750ec[_0x278f('0x50')][_0x472287];for(const {userId:_0x146120}of this['_touchedMarkers'][_0x278f('0x7d')]())null!==_0x146120&&_0x1baed7[_0x278f('0xfb')](_0x146120);for(const {userId:_0x36268c}of this['_touchedRoots'][_0x278f('0x7d')]())null!==_0x36268c&&_0x1baed7[_0x278f('0xfb')](_0x36268c);this[_0x278f('0x101')](_0x4600b7,_0x4ea661['insertions'][_0x472287],_0x38ef14,_0x278f('0xa9'),_0x1baed7),this[_0x278f('0x101')](_0x35c638,_0x4ea661[_0x278f('0x52')][_0x472287],_0x2042c6,_0x278f('0x43'),_0x1baed7),_0x312263[_0x472287]={'insertions':this['_prepareViewToSave'](_0x4600b7),'deletions':this[_0x278f('0x2d')](_0x35c638),'attachChange':this[_0x278f('0x96')][_0x278f('0xc7')](_0x472287)||null,'attributesBefore':_0x297498(this[_0x278f('0xe3')][_0x278f('0xc7')](_0x472287))||{},'attributesAfter':_0x297498(this[_0x278f('0xae')][_0x278f('0xc7')](_0x472287))};}return{'diffData':_0x312263,'authorsIds':Array['from'](_0x1baed7)};}[_0x278f('0xb3')](_0x4ce19b){for(const [,_0x47c839]of _0x4ce19b['markers']){const _0x5becbc=_0x47c839[_0x278f('0xcc')]['getAncestors']()['filter'](_0x5d1f6e=>_0x278f('0x107')==_0x5d1f6e['name']);for(const _0x785d6c of _0x5becbc)0x1==_0x785d6c['childCount']&&_0x785d6c[_0x278f('0x75')](0x0)['is'](_0x278f('0x77'),_0x278f('0x60'))&&_0x785d6c[_0x278f('0x75')](0x0)['_setAttribute'](_0x278f('0xa6'),!0x0);}}['_prepareViewToSave'](_0x199031){this[_0x278f('0xb3')](_0x199031);const _0x565b02=this[_0x278f('0x89')][_0x278f('0x95')]['toView'](_0x199031,{}),_0x276775=Array[_0x278f('0xed')](_0x565b02[_0x278f('0xcb')]())['map'](_0x28fd1c=>this[_0x278f('0x2e')](_0x28fd1c));return JSON[_0x278f('0x10')](_0x276775);}[_0x278f('0x2e')](_0x4bd6ca){if(_0x4bd6ca['is']('$text'))return _0x4bd6ca[_0x278f('0x95')];{const _0x22f86f=_0x4bd6ca;return{'type':Object[_0x278f('0xbd')](B)[_0x278f('0x80')](_0xbac4f2=>_0x4bd6ca instanceof B[_0xbac4f2]),'name':_0x22f86f[_0x278f('0xd8')],'attributes':Array[_0x278f('0xed')](_0x22f86f['getAttributes']()),'children':Array[_0x278f('0xed')](_0x22f86f[_0x278f('0xcb')]())[_0x278f('0x31')](_0x1dae89=>this[_0x278f('0x2e')](_0x1dae89))};}}[_0x278f('0x101')](_0x281c04,_0x403927,_0x27cb12,_0x292b22,_0x4a8b6a){let _0x5a5430=null,_0x18b222=null,_0x38ca2c=0x0;const _0x49aeb4=this[_0x278f('0x89')][_0x278f('0x61')];for(let _0x36afab=0x0;_0x36afab<_0x403927[_0x278f('0x9d')];_0x36afab++){const _0x3c5eba=this[_0x278f('0x74')](_0x403927[_0x36afab]),_0x43e28e=_0x403927[_0x36afab][_0x278f('0x34')][_0x278f('0xcf')](_0x3c5eba),_0x423613=_0x27cb12[_0x278f('0xc7')](_0x43e28e),_0x33eeb2=_0x36afab==_0x403927[_0x278f('0x9d')]-0x1;(!_0x5a5430&&_0x423613&&(_0x5a5430=_0x423613,_0x18b222=_0x403927[_0x36afab]),_0x5a5430&&(!_0x423613||_0x423613[_0x278f('0x4')]!=_0x5a5430[_0x278f('0x4')]))&&(_0x1f5f32(_0x423613,L(_0x18b222,_0x281c04,_0x49aeb4),L(_0x403927[_0x36afab],_0x281c04,_0x49aeb4)),_0x5a5430=_0x423613||null,_0x18b222=_0x423613?_0x403927[_0x36afab]:null),_0x5a5430&&_0x33eeb2&&_0x1f5f32(_0x423613,L(_0x18b222,_0x281c04,_0x49aeb4),W(_0x403927[_0x36afab],_0x281c04,_0x49aeb4));}function _0x1f5f32(_0x4de050,_0x557503,_0x2bdf0f){const _0x297639=_0x5a5430[_0x278f('0x4')],_0x2fea8a='revision:'+_0x292b22+':'+_0x297639+':'+_0x38ca2c++,_0x4f049b=_0x49aeb4[_0x278f('0x2c')](_0x557503,_0x2bdf0f);_0x281c04[_0x278f('0x11')]['set'](_0x2fea8a,_0x4f049b),null!==_0x297639&&_0x4a8b6a[_0x278f('0xfb')](_0x297639);}}[_0x278f('0x74')](_0x404ce8){switch(_0x404ce8[_0x278f('0xee')]){case _0x278f('0x9a'):return _0x278f('0xa0');case'elementEnd':return _0x278f('0xf4');default:return _0x278f('0xc1');}}[_0x278f('0x66')](_0xd87a53,_0x2b4111){_0xd87a53[_0x278f('0xde')]=null;for(const _0x14bfbd in _0xd87a53){const _0x576cea=_0xd87a53[_0x14bfbd];if(_0x576cea instanceof _0x31ab12){const _0x1e3f4c=_0x2b4111['get'](_0x576cea[_0x278f('0x5d')][_0x278f('0x5f')]);_0xd87a53[_0x14bfbd]=this[_0x278f('0xa3')](_0x576cea,_0x1e3f4c);}if(_0x576cea instanceof _0x1c53ff){const _0x338117=_0x2b4111[_0x278f('0xc7')](_0x576cea[_0x278f('0x5d')][_0x278f('0x5f')]);_0xd87a53[_0x14bfbd]=this['_fixRange'](_0x576cea,_0x338117);}'root'===_0x14bfbd&&(_0xd87a53[_0x278f('0x5d')]=_0x2b4111[_0x278f('0xc7')](_0xd87a53['root'][_0x278f('0x5f')]));}}[_0x278f('0xfc')](_0x36d487,_0x56336c){return this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0x2c')](this['_fixPosition'](_0x36d487[_0x278f('0xcc')],_0x56336c),this[_0x278f('0xa3')](_0x36d487[_0x278f('0x71')],_0x56336c));}['_fixPosition'](_0x2fc073,_0x482247){return this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0x8e')](_0x482247,_0x2fc073[_0x278f('0xf2')],_0x2fc073[_0x278f('0xaa')]);}[_0x278f('0xa8')](_0x54bf35){const _0x2dff68=this['_idsRoots'][_0x278f('0xc7')](_0x54bf35[_0x278f('0xbf')][_0x278f('0x5d')][_0x278f('0x5f')]),_0x4b26de=this[_0x278f('0xa3')](_0x54bf35[_0x278f('0xbf')],_0x2dff68),_0x50e335=null===_0x54bf35['_authorId']?null:_0x54bf35['_authorId']||this[_0x278f('0x89')][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x346c0a=_0x4b26de[_0x278f('0xa4')],_0x42d3cf=this[_0x278f('0x5e')],_0x492239=[];for(const _0x3e175c of _0x54bf35['nodes'])if(_0x3e175c['is'](_0x278f('0x77')))_0x492239[_0x278f('0xa2')](this[_0x278f('0x4a')](_0x3e175c));else for(let _0x2dc838=0x0;_0x2dc838<_0x3e175c['offsetSize'];_0x2dc838++)_0x492239[_0x278f('0xa2')](new _0x56b0b7(_0x278f('0x32'),{'vid':this[_0x278f('0x5e')]++}));const _0x28befc=this['_revisionId'];for(let _0x3b312f=_0x42d3cf;_0x3b312f<_0x28befc;_0x3b312f++)this[_0x278f('0x38')]['set'](_0x3b312f,{'userId':_0x50e335});_0x346c0a[_0x278f('0xdf')](_0x4b26de[_0x278f('0x106')],_0x492239);}[_0x278f('0x41')](_0x5dca83){(_0x5dca83=this[_0x278f('0xff')](_0x5dca83,this['_idsRoots']))[_0x278f('0xef')]();const _0x3a6cc6=null===_0x5dca83[_0x278f('0x72')]?null:_0x5dca83[_0x278f('0x72')]||this['editor'][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x1bc6e7=_0x5dca83[_0x278f('0x57')](),_0x1b30f9=_0x1bc6e7[_0x278f('0xa4')],_0x4548ec=_0x1bc6e7[_0x278f('0x106')];!function _0x5df5ab(_0x2c7ffc,_0x1be661,_0x22813e,_0x20ba3e){for(let _0x29cdfc=_0x22813e;_0x29cdfc<_0x20ba3e;_0x29cdfc++){const _0x33d507=_0x1be661[_0x278f('0x75')](_0x29cdfc);_0x33d507['is'](_0x278f('0x77'),_0x278f('0x32'))?_0x2c7ffc['set'](_0x33d507[_0x278f('0xcf')](_0x278f('0xc1')),{'userId':_0x3a6cc6}):(_0x2c7ffc['set'](_0x33d507[_0x278f('0xcf')]('vid_start'),{'userId':_0x3a6cc6}),_0x5df5ab(_0x2c7ffc,_0x33d507,0x0,_0x33d507[_0x278f('0xb1')]),_0x2c7ffc[_0x278f('0x1c')](_0x33d507[_0x278f('0xcf')](_0x278f('0xf4')),{'userId':_0x3a6cc6}));}}(this[_0x278f('0x38')],_0x1b30f9,_0x4548ec,_0x4548ec+_0x5dca83[_0x278f('0xca')]);}[_0x278f('0x55')](_0x3cfa8f){const _0x20e3b7=null===(_0x3cfa8f=this[_0x278f('0xff')](_0x3cfa8f,this[_0x278f('0x91')]))[_0x278f('0x72')]?null:_0x3cfa8f[_0x278f('0x72')]||this[_0x278f('0x89')][_0x278f('0x76')]['get'](_0x278f('0xa7'))['me']['id'],_0x271d5a=_0x3cfa8f[_0x278f('0x21')][_0x278f('0xa4')],_0xcb635a=_0x3cfa8f[_0x278f('0xeb')][_0x278f('0xa4')],_0x2145e5=_0x271d5a[_0x278f('0xcf')](_0x278f('0xf4')),_0x4253ae=_0xcb635a[_0x278f('0xcf')](_0x278f('0xa0'));_0x271d5a[_0x278f('0x12')]('vid_end',_0xcb635a[_0x278f('0xcf')](_0x278f('0xf4'))),_0xcb635a['_setAttribute'](_0x278f('0xf4'),_0x2145e5),this[_0x278f('0x38')][_0x278f('0x1c')](_0x4253ae,{'userId':_0x20e3b7}),this['_touched'][_0x278f('0x1c')](_0x2145e5,{'userId':_0x20e3b7}),_0x3cfa8f[_0x278f('0xef')]();}[_0x278f('0x3')](_0x2abe59){const _0x5f372e=null===(_0x2abe59=this['_cloneOperation'](_0x2abe59,this[_0x278f('0x91')]))[_0x278f('0x72')]?null:_0x2abe59[_0x278f('0x72')]||this['editor']['plugins'][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x347150=_0x2abe59[_0x278f('0x42')],_0x28fe04=_0x2abe59['splitPosition'][_0x278f('0xa4')];_0x2abe59[_0x278f('0xef')]();const _0x3218cf=_0x28fe04['getAttribute'](_0x278f('0xf4')),_0x5661b4=_0x2abe59[_0x278f('0x69')][_0x278f('0x4f')];if(_0x347150){const _0x16b04d=_0x5661b4[_0x278f('0xcf')](_0x278f('0xf4')),_0x4ec9a8=_0x28fe04[_0x278f('0xcf')](_0x278f('0xf4'));_0x28fe04[_0x278f('0x12')](_0x278f('0xf4'),_0x16b04d),_0x5661b4[_0x278f('0x12')](_0x278f('0xf4'),_0x4ec9a8),this[_0x278f('0x38')][_0x278f('0x1c')](_0x28fe04[_0x278f('0xcf')](_0x278f('0xf4')),{'userId':_0x5f372e}),this[_0x278f('0x38')]['set'](_0x5661b4[_0x278f('0xcf')]('vid_start'),{'userId':_0x5f372e});}else{const _0x1f25df=this[_0x278f('0x5e')]++,_0x297c04=this[_0x278f('0x5e')]++;_0x28fe04[_0x278f('0x12')]('vid_end',_0x1f25df),_0x5661b4[_0x278f('0x12')](_0x278f('0xa0'),_0x297c04),_0x5661b4[_0x278f('0x12')](_0x278f('0xf4'),_0x3218cf),this[_0x278f('0x38')][_0x278f('0x1c')](_0x1f25df,{'userId':_0x5f372e}),this[_0x278f('0x38')][_0x278f('0x1c')](_0x297c04,{'userId':_0x5f372e});}}[_0x278f('0x36')](_0x195466){if(!_0x195466[_0x278f('0x5a')])return;const _0x32ed55=(_0x195466=this[_0x278f('0xff')](_0x195466,this[_0x278f('0x49')]))[_0x278f('0xb5')]?_0x195466[_0x278f('0xb5')][_0x278f('0x5d')]:null,_0x5714fa=_0x195466[_0x278f('0x90')]?_0x195466[_0x278f('0x90')][_0x278f('0x5d')]:null;_0x32ed55&&this[_0x278f('0x48')][_0x278f('0x17')](_0x195466[_0x278f('0xd8')]),_0x5714fa&&this[_0x278f('0x48')][_0x278f('0x1c')](_0x195466[_0x278f('0xd8')],_0x195466[_0x278f('0x90')][_0x278f('0x54')]());const _0x423217=null===_0x195466[_0x278f('0x72')]?null:_0x195466[_0x278f('0x72')]||this[_0x278f('0x89')][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x3205bf=_0x195466[_0x278f('0xd8')];if(!this[_0x278f('0x6c')]['has'](_0x3205bf))return void this[_0x278f('0x6c')][_0x278f('0x1c')](_0x3205bf,{'range':_0x195466[_0x278f('0xb5')],'userId':_0x423217});const _0x2ec8f6=this[_0x278f('0x6c')]['get'](_0x3205bf),_0x39b815=_0x2ec8f6[_0x278f('0xe1')],_0x6cc0e3=_0x195466[_0x278f('0x90')];null==_0x39b815&&null==_0x6cc0e3||_0x39b815&&_0x6cc0e3&&_0x39b815[_0x278f('0x65')](_0x6cc0e3)?this['_touchedMarkers'][_0x278f('0x17')](_0x195466[_0x278f('0xd8')]):_0x2ec8f6[_0x278f('0x4')]=_0x423217;}['_handleRootOperation'](_0xb51cc6,_0x1424a3){this[_0x278f('0x49')]['has'](_0xb51cc6['rootName'])?this[_0x278f('0x49')][_0x278f('0xc7')](_0xb51cc6[_0x278f('0x5f')])[_0x278f('0x46')]=_0xb51cc6[_0x278f('0x99')]:(this[_0x278f('0x49')][_0x278f('0x1c')](_0xb51cc6[_0x278f('0x5f')],G(_0xb51cc6[_0x278f('0x5f')],!0x0)),this[_0x278f('0xae')][_0x278f('0x1c')](_0xb51cc6['rootName'],{}),_0x1424a3&&this[_0x278f('0x91')][_0x278f('0x1c')](_0xb51cc6[_0x278f('0x5f')],G(_0xb51cc6['rootName'],!0x0)));const _0x16fec5=null===_0xb51cc6[_0x278f('0x72')]?null:_0xb51cc6[_0x278f('0x72')]||this['editor'][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x324cb6=this[_0x278f('0x96')][_0x278f('0xc7')](_0xb51cc6[_0x278f('0x5f')]);_0x324cb6&&_0x324cb6[_0x278f('0x4')]===_0x16fec5?this['_touchedRoots'][_0x278f('0x17')](_0xb51cc6[_0x278f('0x5f')]):this[_0x278f('0x96')]['set'](_0xb51cc6['rootName'],{'userId':_0x16fec5,'isAttached':_0xb51cc6[_0x278f('0x99')]});}['_handleRootAttributeOperation'](_0x511804){const _0x568b9c=this[_0x278f('0xae')][_0x278f('0xc7')](_0x511804['root'][_0x278f('0x5f')]);null===_0x511804[_0x278f('0xab')]?delete _0x568b9c[_0x511804['key']]:_0x568b9c[_0x511804[_0x278f('0x40')]]=_0x511804[_0x278f('0xab')];}}function q(_0x2b619e){const _0xe38180=G(_0x2b619e[_0x278f('0x5f')],_0x2b619e[_0x278f('0x83')]());for(const _0x1d562a of _0x2b619e[_0x278f('0xcb')]()){const _0x5f07e3=_0x1d562a[_0x278f('0xf6')](!0x0);_0xe38180[_0x278f('0x4d')](_0x5f07e3);}return _0xe38180;}function G(_0x25662d,_0x40c140=!0x0){const _0x37c7b3=new _0x5ab8b3();return _0x37c7b3['rootName']=_0x25662d,_0x37c7b3[_0x278f('0x46')]=_0x40c140,_0x37c7b3[_0x278f('0x83')]=()=>_0x37c7b3[_0x278f('0x46')],_0x37c7b3;}function L(_0x58f0c7,_0x5851d1,_0x561f8a){const _0x276e67=_0x278f('0x81')==_0x58f0c7['type']?_0x561f8a[_0x278f('0xe8')](_0x58f0c7['item'],_0x278f('0x71')):_0x561f8a['createPositionBefore'](_0x58f0c7[_0x278f('0x34')]);return _0x561f8a[_0x278f('0x8e')](_0x5851d1,_0x276e67[_0x278f('0xf2')],_0x276e67[_0x278f('0xaa')]);}function W(_0x35d4c5,_0x2d22d9,_0x5aa978){const _0x5ba174='elementStart'==_0x35d4c5[_0x278f('0xee')]?_0x5aa978[_0x278f('0xe8')](_0x35d4c5[_0x278f('0x34')],0x0):_0x5aa978[_0x278f('0x4e')](_0x35d4c5[_0x278f('0x34')]);return _0x5aa978[_0x278f('0x8e')](_0x2d22d9,_0x5ba174[_0x278f('0xf2')],_0x5ba174[_0x278f('0xaa')]);}