@ckeditor/ckeditor5-revision-history 38.0.0 → 38.0.1

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 _0x4ad7=['getChild','creator','_diffRootsAttributes','requires','_makeRevision','position','_loadRevisionData','paragraph','setRevisionData','marker','newRange','resolve','$graveyard','_baseRootsAttributes','_lastTo','RevisionsRepository','has','clear','string','_removeRevisionMarkers','_pendingAction','_removeMetaData','getOperation','editing','conversion','isReady','_removePendingAction','set','repository','name','_prepareViewToSave','loadState','oldRange','_handleMarkerOperation','plugins','_appendChild','changeRootAttribute','element','define','vid_start','remove','revisionHistory.resumeUnsavedRevision','initial','getOperations','range','_diffRoots','_getBaseVids','view','children','for','root','merge','_authorId','addRevision','some','editor','_getFromVersion','getAttribute','initialData','baseVersion','_baseRoots','fromEntries','tableCell','documentFragment','userId','attributesAfter','split','size','deletion','processor','authors','from','collaboration.channelId','revision:','_handleRootOperation','_createInitialRevision','_continueCurrentRevision','createPositionAfter','keepParagraph','revision-start','offsetSize','push','targetPosition','_fixRange','bind','shift','elementEnd','creatorId','delete','isEnabled','nodes','createPositionAt','getRootNames','_generateTape','_bufferUpdate','values','PendingActions','forEach','sourcePosition','find','_calculateMetaData','clone','filter','getRevisionDocumentData','_lastFrom','attributesBefore','getCurrentRevisionId','_savedMetaData','data','init','getUser','vid','attachChange','insert','dataToMarker','version','keys','attributes','_source','useFillerType','getRevision','_reset','locale','then','_makeModelFromViewString','removeRootAttribute','roots','_update','isEqual','deletions','_execute','Empty\x20document','childCount','sendBufferedUpdates','update','addRevisionData','_saveMetaData','key','_replaceEditorDataWithRevisionData','diffData','getIndex','insertions','path','_setAttribute','createPositionFromPath','_markChanges','getData','rootName','_copyMarkers','getRange','_touchedMarkers','nodeAfter','authorsIds','createRange','currentRevision','trim','PENDING_ACTION_REVISION_HISTORY','buildRevisionData','_revisionId','_clone','getWalker','reInit','getMovedRangeStart','getNodeByPath','revision','getTime','isAdd','_touchedRoots','createdAt','finally','get','_addPendingAction','stickiness','_setConversion','_startingRevisionId','getAncestors','elementStart','_loadState','includes','detachRoot','RealTimeCollaborationClient','hasContent','getChildren','reverse','createRangeIn','default','_getViewJson','afterInit','_bufferedUpdates','_fixPosition','_touched','affectsData','_idsRoots','dataDowncast','_handleMoveOperation','map','max','end','_initialRevisionId','config','slice','model','_cloneOperation','_baseIdsRoots','parent','editor-initial-data-replaced-with-revision-data','RevisionTracker','vid_end','NEGATIVE_INFINITY','_handleOperation','_getState','updateRevisions','createRevision','offset','startsWith','_startingVersion','_processRootBeforeSave','rootsAttributes','getAttributes','addRoot','document','reinsert','text','toVersion','_handleSplitOperation','Users','_transformMarkers','graveyardPosition','$text','toData','length','data-revision-','_isInit','previousPosition','getRevisionRootsAttributes','Initial\x20revision','markerToData','_getVidAttributeName','_fixOperation','_isAttached','getTransformedByOperation','adapter','_findInsertionIndex','add','_makeIdsRoot','_markers','fromVersion','setSource','type','_handleInsertOperation','addRootAttribute','getRevisions','markers','_loadedStateData','_isPendingUpdate','history','parse','_getPreviousFrom','revision-end','isAttached','item','_revisionDataBuilder','_initialRoots','_insertChild','_operations','splitPosition','_handleMergeOperation','stringify','newValue','start','_applyOperations','_createCurrentRevision','source'];(function(_0x5cdddd,_0x4ad75b){const _0xa74930=function(_0x5df8f2){while(--_0x5df8f2){_0x5cdddd['push'](_0x5cdddd['shift']());}};_0xa74930(++_0x4ad75b);}(_0x4ad7,0x7c));const _0xa749=function(_0x5cdddd,_0x4ad75b){_0x5cdddd=_0x5cdddd-0x0;let _0xa74930=_0x4ad7[_0x5cdddd];return _0xa74930;};import{Users as _0x4f8fad}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x935ad3,PendingActions as _0x23de58}from'ckeditor5/src/core';import{logWarning as _0x3bdae5,uid as _0x389857}from'ckeditor5/src/utils';import{Position as _0x4a0de6,Range as _0x130d70,Element as _0xbc8c15,DocumentFragment as _0x33b272,ViewText as _0x5794fc,ViewElement as _0x466aac,ViewContainerElement as _0x270f48,ViewAttributeElement as _0xec83fc,ViewEmptyElement as _0x301448,ViewRawElement as _0x393ed0,ViewUIElement as _0x3193ca,ViewDocumentFragment as _0x58adee}from'ckeditor5/src/engine';import _0x508395 from'./revisionsrepository';import{getTranslation as _0x22c3f1}from'./utils/common-translations';import{cloneDeep as _0x40da37,isEqual as _0x392821}from'lodash-es';const j={'c':_0x270f48,'a':_0xec83fc,'e':_0x301448,'r':_0x393ed0,'u':_0x3193ca};export default class l extends _0x935ad3{static get['pluginName'](){return _0xa749('0x52');}static get[_0xa749('0x98')](){return[_0x4f8fad,_0x508395,_0x23de58];}constructor(_0x40c880){super(_0x40c880),this['adapter']=null,this[_0xa749('0x1e')]=null,this[_0xa749('0x89')]=new T(this[_0xa749('0xcc')]),this['_initialRevisionId']=this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0x2e')](_0xa749('0xdd'))||_0xa749('0xbf'),this[_0xa749('0x40')]=new Map(),this[_0xa749('0x81')]=null;const _0x31752b=_0x389857();this['_source']={'history':this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')]['history'],'getLatestVersion':()=>Promise[_0xa749('0xa0')](this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0x108')]),'getCurrentRevisionId':()=>_0x31752b},this[_0xa749('0xb0')](_0xa749('0xae'),!0x1),this[_0xa749('0xb0')](_0xa749('0xee'),!0x0),this[_0xa749('0xb0')](_0xa749('0x82'),!0x1),this['editor'][_0xa749('0x4b')][_0xa749('0xbb')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0xa749('0xcc')][_0xa749('0xad')][_0xa749('0xc6')]('upcast')[_0xa749('0x107')]({'view':_0xa749('0x28')});}['init'](){this[_0xa749('0xb1')]=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0xa4')),this[_0xa749('0x31')](),this[_0xa749('0xcc')][_0xa749('0x101')]['on']('ready',()=>{const _0x40a81d=this[_0xa749('0xb1')]['getRevision'](0x0),_0x5e2698=_0x40a81d&&null===_0x40a81d[_0xa749('0x96')]?_0x40a81d:null;if(this['_continueCurrentRevision']=!!_0x5e2698&&this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0x2e')](_0xa749('0xbe')),this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0xa5')](_0xa749('0x38'))){const _0x48adfc=this[_0xa749('0x10b')][_0xa749('0xff')](),_0x346949=this['repository']['getRevision'](_0x48adfc);if(_0x346949)this[_0xa749('0x5b')]=_0x346949['fromVersion'],this[_0xa749('0xe1')]=!0x1;else{const _0x5a0309=this[_0xa749('0x10b')]['history'][_0xa749('0x8c')][_0xa749('0xf8')](_0x31e2a6=>!_0x31e2a6[_0xa749('0x6c')]),_0x429531=_0x5a0309?_0x5a0309[_0xa749('0xd0')]:this[_0xa749('0x10b')]['history'][_0xa749('0x108')];_0x40a81d?(_0x40a81d[_0xa749('0x63')]<_0x429531&&_0x40a81d['_update']({'toVersion':_0x429531}),this[_0xa749('0xe1')]?(this['_source'][_0xa749('0xff')]=()=>_0x5e2698['id'],this['_startingVersion']=_0x5e2698[_0xa749('0x7a')]):(this['_startingVersion']=_0x40a81d[_0xa749('0x63')],this[_0xa749('0xe1')]=!0x1)):(this[_0xa749('0x5b')]=_0x429531,this[_0xa749('0xe1')]=!0x1);}}else _0x5e2698&&(this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0x83')][_0xa749('0x108')]=Math[_0xa749('0x48')](_0x5e2698[_0xa749('0x63')],this['editor']['model'][_0xa749('0x60')][_0xa749('0x83')]['version']),_0x5e2698['fromVersion']===_0x5e2698[_0xa749('0x63')]?(0x0!==_0x5e2698[_0xa749('0x7a')]&&(this[_0xa749('0x10b')][_0xa749('0xff')]=()=>_0x5e2698['id']),this[_0xa749('0xe1')]=!0x1):this[_0xa749('0xe1')]&&(this[_0xa749('0x10b')]['getCurrentRevisionId']=()=>_0x5e2698['id'],this[_0xa749('0x5b')]=_0x5e2698[_0xa749('0x7a')])),this[_0xa749('0xe1')]||(this[_0xa749('0x5b')]=this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')]['version']);this[_0xa749('0x89')][_0xa749('0x102')](this[_0xa749('0x10b')][_0xa749('0x83')]),this[_0xa749('0xe0')](this[_0xa749('0x5b')]),this[_0xa749('0x93')](this['_startingVersion']),this[_0xa749('0x75')]&&this[_0xa749('0x9')]();}),this[_0xa749('0xe9')](_0xa749('0xae'))['to'](this,_0xa749('0x82'),_0x9559ef=>!_0x9559ef);}async[_0xa749('0x3f')](){if(this[_0xa749('0xb1')][_0xa749('0x6a')]>0x0){const _0x275ed1=this['repository']['getRevision'](0x0),_0x153451=await this[_0xa749('0xfc')](_0x275ed1),_0x21726d=await this[_0xa749('0x6e')](_0x275ed1);this[_0xa749('0xe')](_0x153451,_0x21726d);}}[_0xa749('0x7b')](_0x500aeb){this[_0xa749('0x10b')]=_0x500aeb;}async[_0xa749('0xa')](){const _0x53b328=await this['_source']['getLatestVersion']();if(_0x53b328>this[_0xa749('0x1e')][_0xa749('0x63')]){await this[_0xa749('0x35')]();const _0x397cd0=this[_0xa749('0x21')]({'revision':this['currentRevision'],'to':_0x53b328});_0x397cd0[_0xa749('0xdb')]=_0x397cd0[_0xa749('0x1c')]['map'](_0x18071a=>this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))[_0xa749('0x103')](_0x18071a)),this[_0xa749('0x1e')][_0xa749('0x3')](_0x397cd0);}}async[_0xa749('0x35')](){this['_continueCurrentRevision']&&!this[_0xa749('0x81')]&&(await this['_loadRevisionData'](this[_0xa749('0x1e')]),this[_0xa749('0x89')][_0xa749('0xb4')](this['currentRevision']),this[_0xa749('0x81')]={'fromVersion':this['currentRevision'][_0xa749('0x7a')],'authors':this[_0xa749('0x1e')][_0xa749('0xdb')][_0xa749('0x4c')]()});}async['saveRevision'](_0x3daaf8={},_0x285af1=null){const _0x5ccc8c=[];await this[_0xa749('0x35')](),this[_0xa749('0xe1')]=!0x1,_0x285af1>this['currentRevision'][_0xa749('0x63')]&&(_0x285af1=null),null===_0x285af1&&(_0x285af1=await this[_0xa749('0x10b')]['getLatestVersion']());const _0x1b7058=this[_0xa749('0xcd')](_0x285af1),_0x3495a1=this[_0xa749('0x21')]({'from':_0x1b7058,'to':_0x285af1});if(this[_0xa749('0x1e')][_0xa749('0x63')]<_0x285af1){const _0x574881=this['buildRevisionData']({'revision':this[_0xa749('0x1e')],'from':_0x285af1,'to':_0x285af1});_0x574881[_0xa749('0xdb')]=[],_0x574881['authorsIds']=[],_0x574881['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x574881,!0x0),delete _0x574881[_0xa749('0xdb')],_0x5ccc8c['push'](_0x574881);}_0x3daaf8[_0xa749('0xec')]=this[_0xa749('0xcc')][_0xa749('0xb7')]['get'](_0xa749('0x65'))['me']['id'],_0x3daaf8[_0xa749('0xb2')]=_0x3daaf8[_0xa749('0xb2')]||null,_0x3daaf8['id']=_0x3daaf8['id']||_0x389857(),_0x3daaf8={..._0x3daaf8,..._0x3495a1};const _0x31e9c9=this[_0xa749('0xb')](_0x3daaf8);_0x5ccc8c['push'](_0x3daaf8);const _0x57292d=this[_0xa749('0xb1')][_0xa749('0x10')](_0x31e9c9);if(0x0!==_0x57292d){const _0x303dc7=this[_0xa749('0xb1')][_0xa749('0x10d')](_0x57292d-0x1);if(_0x303dc7[_0xa749('0x7a')]!==_0x285af1){const _0x1d8ed3=this['_revisionDataBuilder'][_0xa749('0x16')](_0x285af1,_0x303dc7[_0xa749('0x63')]),_0x521eae={'id':_0x303dc7['id'],'diffData':_0x1d8ed3[_0xa749('0xf')],'authorsIds':_0x1d8ed3[_0xa749('0x1c')],'authors':_0x1d8ed3[_0xa749('0x1c')][_0xa749('0x47')](_0x4397e3=>this[_0xa749('0xcc')][_0xa749('0xb7')]['get'](_0xa749('0x65'))[_0xa749('0x103')](_0x4397e3)),'fromVersion':_0x285af1};_0x303dc7===this[_0xa749('0x1e')]&&(_0x521eae[_0xa749('0x2c')]=new Date(_0x3daaf8[_0xa749('0x2c')][_0xa749('0x29')]()+0xa)),_0x303dc7['_update'](_0x521eae,!0x0),delete _0x521eae['authors'],_0x5ccc8c['push'](_0x521eae);}}if(this[_0xa749('0x75')]){for(const _0x59a354 of _0x5ccc8c)this[_0xa749('0xf3')](_0x59a354['id'],_0x59a354,!0x0);this[_0xa749('0x9')]();}return _0x31e9c9;}[_0xa749('0xb')](_0x14012a){const _0x4f795e=this[_0xa749('0xb1')][_0xa749('0x58')](_0x14012a);return this['adapter']&&_0x4f795e['on']('_update',(_0x1cbeac,_0x29f41a,_0x5de808)=>{_0x5de808||(this['_bufferUpdate'](_0x29f41a['id'],_0x29f41a,!0x0),this[_0xa749('0x9')]());}),this[_0xa749('0xb1')][_0xa749('0xca')](_0x4f795e,this['_findInsertionIndex'](_0x4f795e)),_0x4f795e;}async[_0xa749('0xfc')](_0x43d706){await this[_0xa749('0x9b')](_0x43d706);const _0x2093b1={};for(const _0x54f5a0 in _0x43d706[_0xa749('0xf')]){if(_0x43d706[_0xa749('0xf')][_0x54f5a0][_0xa749('0x105')]&&!_0x43d706[_0xa749('0xf')][_0x54f5a0]['attachChange'][_0xa749('0x87')])continue;const _0x1b3324=this[_0xa749('0xa8')](JSON[_0xa749('0x84')](_0x43d706['diffData'][_0x54f5a0]['insertions'])),_0x2a92dc=this[_0xa749('0xcc')]['editing'][_0xa749('0xc4')][_0xa749('0x60')],_0x548479=new _0x58adee(_0x2a92dc,_0x1b3324[_0xa749('0x47')](_0x1b3346=>F(_0x1b3346,this[_0xa749('0xcc')])));this[_0xa749('0xcc')][_0xa749('0x101')]['processor']['useFillerType']('marked'),_0x2093b1[_0x54f5a0]=this[_0xa749('0xcc')][_0xa749('0x101')][_0xa749('0xda')][_0xa749('0x69')](_0x548479),this[_0xa749('0xcc')][_0xa749('0x101')][_0xa749('0xda')][_0xa749('0x10c')](_0xa749('0x3d'));}return _0x2093b1;}async[_0xa749('0x6e')](_0x17b03d){await this['_loadRevisionData'](_0x17b03d);const _0x31ed08={};for(const _0x2b0580 in _0x17b03d[_0xa749('0xf')])_0x17b03d[_0xa749('0xf')][_0x2b0580][_0xa749('0x105')]&&!_0x17b03d['diffData'][_0x2b0580][_0xa749('0x105')][_0xa749('0x87')]||(_0x31ed08[_0x2b0580]=_0x17b03d[_0xa749('0xf')][_0x2b0580]['attributesAfter']||{});return _0x31ed08;}['sendBufferedUpdates'](){if(0x0===this[_0xa749('0x40')][_0xa749('0xd8')])return;if(this[_0xa749('0x82')])return;let _0x235607=Array[_0xa749('0xdc')](this[_0xa749('0x40')][_0xa749('0xf4')]());this['_bufferedUpdates'][_0xa749('0xa6')]();for(let _0x42647e=0x0;_0x42647e<_0x235607['length'];_0x42647e++){const _0x5e708e=_0x235607[_0x42647e];let _0x49a657=!0x1;for(const _0x232d7e of Object[_0xa749('0x109')](_0x5e708e))void 0x0===_0x5e708e[_0x232d7e]?delete _0x5e708e[_0x232d7e]:'id'!==_0x232d7e&&(_0x49a657=!0x0);_0x49a657||(_0x235607[_0x42647e]=null);}if(_0x235607=_0x235607[_0xa749('0xfb')](_0x23a493=>null!==_0x23a493),!_0x235607[_0xa749('0x6a')])return;for(let _0x4c32a7=0x0;_0x4c32a7<_0x235607[_0xa749('0x6a')];_0x4c32a7++){const _0x167157=_0x235607[_0x4c32a7];void 0x0!==_0x167157[_0xa749('0x7a')]&&void 0x0===_0x167157[_0xa749('0x63')]&&(_0x167157['toVersion']=this[_0xa749('0xb1')]['getRevision'](_0x167157['id'])[_0xa749('0x63')]),void 0x0!==_0x167157['toVersion']&&void 0x0===_0x167157[_0xa749('0x7a')]&&(_0x167157[_0xa749('0x7a')]=this['repository']['getRevision'](_0x167157['id'])[_0xa749('0x7a')]);}const _0xaa6def=this['editor']['config'][_0xa749('0x2e')](_0xa749('0xdd'));this[_0xa749('0x82')]=!0x0,this[_0xa749('0x2f')](),this[_0xa749('0x75')][_0xa749('0x57')](_0x235607,_0xaa6def)[_0xa749('0x2d')](()=>{this[_0xa749('0x82')]=!0x1;})[_0xa749('0x110')](_0x145c65=>{if(_0x145c65)for(const _0x4d825d of _0x145c65)this[_0xa749('0x9d')]({'id':_0x4d825d['id'],'createdAt':_0x4d825d['createdAt']});this['_removePendingAction'](),this[_0xa749('0x9')]();});}['_replaceEditorDataWithRevisionData'](_0x2ff397,_0x5e1ca1){let _0x3788bf=this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0x2e')](_0xa749('0xcf')),_0xfd2ca0=this[_0xa749('0xcc')]['config']['get'](_0xa749('0x5d'));if(void 0x0===_0x3788bf){_0x3788bf={};for(const _0x2b8338 of this['editor'][_0xa749('0x4d')]['document'][_0xa749('0xf1')]())_0x3788bf[_0x2b8338]='';}if('string'==typeof _0x3788bf&&(_0x3788bf={'main':_0x3788bf}),void 0x0===_0xfd2ca0){_0xfd2ca0={};for(const _0xa2fbbd of this['editor'][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0xf1')]())_0xfd2ca0[_0xa2fbbd]={};}let _0x188315=!0x1;const _0x2134be=Object[_0xa749('0x109')](_0x3788bf),_0x6de7c0=Object['keys'](_0x2ff397);for(const _0x4d6a6c of _0x2134be){if(_0x3788bf[_0x4d6a6c]!==_0x2ff397[_0x4d6a6c]&&''!==_0x3788bf[_0x4d6a6c][_0xa749('0x1f')]()){_0x188315=!0x0;break;}if(!_0x392821(_0xfd2ca0[_0x4d6a6c],_0x5e1ca1[_0x4d6a6c])&&Object[_0xa749('0x109')](_0xfd2ca0[_0x4d6a6c])[_0xa749('0x6a')]>0x0){_0x188315=!0x0;break;}}_0x188315||(_0x188315=_0x6de7c0[_0xa749('0xcb')](_0x150e3c=>!_0x2134be[_0xa749('0x36')](_0x150e3c))),_0x188315&&_0x3bdae5(_0xa749('0x51'),{'editorData':_0x3788bf,'editorRootsAttributes':_0xfd2ca0,'revisionData':_0x2ff397,'revisionRootsAttributes':_0x5e1ca1}),this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0xb0')](_0xa749('0xcf'),_0x2ff397),this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0xb0')](_0xa749('0x5d'),_0x5e1ca1);}[_0xa749('0x2f')](){if(!this['_pendingAction']){const _0x26419f=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0xf5'));this[_0xa749('0xa9')]=_0x26419f[_0xa749('0x77')](_0x22c3f1(this['editor'][_0xa749('0x10f')],_0xa749('0x20')));}}[_0xa749('0xaf')](){this['_pendingAction']&&(this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0xf5'))[_0xa749('0xbd')](this[_0xa749('0xa9')]),this[_0xa749('0xa9')]=null);}[_0xa749('0x76')](_0x37eb2a){const _0x3af2a9=this[_0xa749('0xb1')][_0xa749('0x7f')]();_0x3af2a9[_0xa749('0x3b')]();let _0xe9f9c9=0x0;for(;_0xe9f9c9<_0x3af2a9['length'];){const _0x54163e=_0x3af2a9[_0xe9f9c9];if(_0x54163e===this['currentRevision']){_0xe9f9c9++;continue;}if(_0x54163e['id']===this['_initialRevisionId'])break;const _0xc0428b=_0x37eb2a[_0xa749('0x63')]-_0x54163e[_0xa749('0x63')]||_0x37eb2a[_0xa749('0x7a')]-_0x54163e['fromVersion'];if(_0xc0428b>0x0)break;if(_0xc0428b<0x0)_0xe9f9c9++;else{if(!_0x37eb2a[_0xa749('0x96')]&&_0x54163e[_0xa749('0x96')])break;if(_0x54163e[_0xa749('0x96')]||!_0x37eb2a[_0xa749('0x96')]){if(_0x37eb2a['createdAt']>_0x54163e[_0xa749('0x2c')])break;_0xe9f9c9++;}else _0xe9f9c9++;}}return _0xe9f9c9;}['setRevisionData'](_0x48277a){const _0x8dbbcd=this[_0xa749('0xb1')]['getRevision'](_0x48277a['id']);if(_0x48277a[_0xa749('0x2c')]&&(_0x48277a[_0xa749('0x2c')]=new Date(_0x48277a[_0xa749('0x2c')])),_0x48277a[_0xa749('0x1c')]){const _0x4091e1=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'));_0x48277a[_0xa749('0xdb')]=_0x48277a[_0xa749('0x1c')][_0xa749('0x47')](_0x3f0b0f=>_0x4091e1[_0xa749('0x103')](_0x3f0b0f));}_0x8dbbcd[_0xa749('0x3')](_0x48277a,!0x0);}['buildRevisionData']({revision:_0x3afa6a=null,from:_0x4e96a2=null,to:_0x5249c7=null}){_0x4e96a2=null!==_0x4e96a2?_0x4e96a2:_0x3afa6a[_0xa749('0x7a')],_0x5249c7=null!==_0x5249c7?_0x5249c7:_0x3afa6a['toVersion'];const _0x133326=this[_0xa749('0x89')][_0xa749('0x16')](_0x4e96a2,_0x5249c7),_0x59197b={'diffData':_0x133326[_0xa749('0xf')],'authorsIds':_0x133326['authorsIds'],'fromVersion':_0x4e96a2,'toVersion':_0x5249c7};if(!_0x3afa6a||_0x5249c7!==_0x3afa6a[_0xa749('0x63')]){const _0x2567a2=_0x5249c7-0x1,_0x213c04=this[_0xa749('0x10b')][_0xa749('0x83')][_0xa749('0xab')](_0x2567a2);_0x59197b[_0xa749('0x2c')]=_0x213c04&&_0x213c04[_0xa749('0x2c')]||new Date();}if(this[_0xa749('0x81')]&&_0x4e96a2===this['_loadedStateData']['fromVersion'])for(const _0x544dfe of this[_0xa749('0x81')][_0xa749('0xdb')])_0x59197b[_0xa749('0x1c')][_0xa749('0x36')](_0x544dfe['id'])||_0x59197b[_0xa749('0x1c')]['push'](_0x544dfe['id']);return _0x59197b;}['_loadRevisionData'](_0xc84146){if(!_0xc84146||_0xc84146[_0xa749('0xf')])return Promise[_0xa749('0xa0')]();{const _0x29a6fd=this[_0xa749('0xcc')][_0xa749('0x4b')]['get']('collaboration.channelId');return this[_0xa749('0x75')][_0xa749('0x10d')]({'channelId':_0x29a6fd,'revisionId':_0xc84146['id']})['then'](_0xdb15fd=>{_0xc84146[_0xa749('0xf')]=_0xdb15fd['diffData'];});}}[_0xa749('0xf3')](_0xd61ff0,_0x3d2595,_0x2cc307){if(this['_bufferedUpdates'][_0xa749('0xa5')](_0xd61ff0)){const _0x88e799=this['_bufferedUpdates'][_0xa749('0x2e')](_0xd61ff0);_0x3d2595=_0x2cc307?{..._0x88e799,..._0x3d2595}:{..._0x3d2595,..._0x88e799};}this['_bufferedUpdates'][_0xa749('0xb0')](_0xd61ff0,_0x3d2595);}[_0xa749('0xcd')](_0x1403f6){const _0x39a88f=this[_0xa749('0xb1')][_0xa749('0x7f')]();_0x39a88f[_0xa749('0x3b')](),_0x39a88f[_0xa749('0xea')]();const _0x3cae69=_0x39a88f[_0xa749('0xf8')](_0x1546b1=>_0x1546b1[_0xa749('0x63')]<=_0x1403f6)[_0xa749('0x63')];return _0x3cae69<this[_0xa749('0x5b')]?this[_0xa749('0x5b')]:_0x3cae69;}[_0xa749('0xe0')](_0x28a074){const _0x3a06e4=this['repository']['getRevision'](this[_0xa749('0xb1')]['length']-0x1);if(_0x3a06e4)this['_initialRevisionId']=_0x3a06e4['id'];else{const _0x4d2da0=!this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0x2')][_0xa749('0xf8')](_0x321f6c=>this['editor']['model'][_0xa749('0x39')](_0x321f6c)),_0x5de62c=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x54421e=_0x22c3f1(this[_0xa749('0xcc')]['locale'],_0x4d2da0?_0xa749('0x7'):_0xa749('0x6f'));this[_0xa749('0x99')]({'from':_0x28a074,'to':_0x28a074,'id':this[_0xa749('0x4a')],'name':_0x54421e,'creatorId':_0x5de62c});}}[_0xa749('0x93')](_0x5e7b65){const _0x459d9c=this[_0xa749('0x10b')][_0xa749('0xff')]();this[_0xa749('0x1e')]=this[_0xa749('0xb1')]['getRevision'](_0x459d9c),this[_0xa749('0x1e')]||(this[_0xa749('0x1e')]=this[_0xa749('0x99')]({'from':_0x5e7b65,'to':_0x5e7b65,'id':_0x459d9c,'name':'','creatorId':null}));}[_0xa749('0x99')]({name:_0x366986,from:_0x1d1a9e,to:_0x3e1c62,creatorId:_0x193f86,id:_0x352ea6}){const _0xc4db89=this[_0xa749('0x21')]({'from':_0x1d1a9e,'to':_0x3e1c62});_0xc4db89['name']=_0x366986,_0xc4db89['creatorId']=_0x193f86,_0xc4db89['id']=_0x352ea6;const _0x3486c3=this[_0xa749('0xb')](_0xc4db89);return this['adapter']&&this['_bufferUpdate'](_0xc4db89['id'],_0xc4db89,!0x0),_0x3486c3;}[_0xa749('0x31')](){this['editor'][_0xa749('0xad')][_0xa749('0xc6')](_0xa749('0x45'))[_0xa749('0x70')]({'model':'revision'});}[_0xa749('0xa8')](_0x46f03e){return(_0x46f03e=_0x46f03e['filter'](_0x19ddbf=>!_0x19ddbf[_0xa749('0xb2')]||_0xa749('0xe4')!==_0x19ddbf['name']&&_0xa749('0x86')!==_0x19ddbf[_0xa749('0xb2')]))[_0xa749('0xf6')](_0x4a7eb3=>{'string'!=typeof _0x4a7eb3&&(_0x4a7eb3['children']=this[_0xa749('0xa8')](_0x4a7eb3[_0xa749('0xc5')]),_0x4a7eb3[_0xa749('0x10a')]=_0x4a7eb3[_0xa749('0x10a')][_0xa749('0xfb')](_0x9d7189=>!_0x9d7189[0x0][_0xa749('0x5a')](_0xa749('0x6b'))));}),_0x46f03e;}}function F(_0x138619,_0x142bd5){const _0x3e20b8=_0x142bd5[_0xa749('0xac')][_0xa749('0xc4')][_0xa749('0x60')];if(_0xa749('0xa7')==typeof _0x138619)return new _0x5794fc(_0x3e20b8,_0x138619);{const _0x5bff53=_0x138619[_0xa749('0xc5')][_0xa749('0x47')](_0x467b80=>F(_0x467b80,_0x142bd5));return new(j[_0x138619['type']]||_0x466aac)(_0x3e20b8,_0x138619[_0xa749('0xb2')],_0x138619[_0xa749('0x10a')],_0x5bff53);}}class T{constructor(_0x4c3bee){this[_0xa749('0xcc')]=_0x4c3bee,this[_0xa749('0x100')]=new Map(),this[_0xa749('0xfd')]=-0x1,this[_0xa749('0xa3')]=-0x1,this[_0xa749('0x79')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0xa749('0xd1')]=new Map(),this[_0xa749('0xa2')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0xa749('0x42')]=new Map(),this[_0xa749('0x1a')]=new Map(),this[_0xa749('0x2b')]=new Map(),this[_0xa749('0x22')]=0x1,this[_0xa749('0x8a')]=this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0xf1')](),this[_0xa749('0x8a')][_0xa749('0xe6')](_0xa749('0xa1'));}[_0xa749('0x102')](_0x516ac1){this[_0xa749('0x94')]=_0x516ac1;const _0x37a3ec=new Map(),_0x4af330=new Map(),_0x2091a0=this['editor'][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0xf1')](!0x0);_0x2091a0['push'](_0xa749('0xa1'));for(const _0x2f4d38 of _0x2091a0){const _0x5c6940=this[_0xa749('0xcc')]['model'][_0xa749('0x60')]['getRoot'](_0x2f4d38),_0x1d4144=B(_0x5c6940);_0x37a3ec[_0xa749('0xb0')](_0x2f4d38,_0x1d4144),_0x4af330[_0xa749('0xb0')](_0x2f4d38,Object[_0xa749('0xd2')](_0x5c6940['getAttributes']()));}const _0x271591=Array['from'](this['editor'][_0xa749('0x4d')][_0xa749('0x80')])[_0xa749('0x47')](_0x347615=>[_0x347615[_0xa749('0xb2')],_0x347615[_0xa749('0x19')]()]),_0x21c244=this[_0xa749('0x94')][_0xa749('0x108')];this[_0xa749('0xc')](_0x21c244,_0x37a3ec,_0x271591,_0x4af330),this[_0xa749('0x32')]=this[_0xa749('0x22')];const _0x29b12e=new Map(),_0x3bd711=new Map();for(const _0x22cb45 of this[_0xa749('0x8a')]){const _0xb330e5=J(_0x22cb45);_0x29b12e[_0xa749('0xb0')](_0x22cb45,_0xb330e5),_0x3bd711['set'](_0x22cb45,{});}this[_0xa749('0xc')](Number[_0xa749('0x54')],_0x29b12e,[],_0x3bd711);}['getData'](_0x21a5e4,_0x28e7d7){if(this[_0xa749('0xfd')]===_0x21a5e4&&this['_lastTo']<=_0x28e7d7)this['_savedMetaData'][_0xa749('0xd8')]>0x1&&this['_removeMetaData'](this[_0xa749('0xa3')]),this[_0xa749('0x92')](this[_0xa749('0xa3')],_0x28e7d7,!0x0);else{if(!this[_0xa749('0x100')][_0xa749('0xa5')](_0x21a5e4)){const _0x5aa7be=this[_0xa749('0x85')](_0x21a5e4);this[_0xa749('0xf9')](_0x5aa7be,_0x21a5e4,!0x1);}this[_0xa749('0xf9')](_0x21a5e4,_0x28e7d7,!0x0);}return this[_0xa749('0xfd')]=_0x21a5e4,this[_0xa749('0xa3')]=_0x28e7d7,this[_0xa749('0x56')]();}[_0xa749('0xb4')](_0x28c635){this['_reset'](),this['_lastFrom']=_0x28c635[_0xa749('0x7a')],this[_0xa749('0xa3')]=_0x28c635['toVersion'];for(const _0x57a787 in _0x28c635[_0xa749('0xf')]){const _0x457a64=_0x28c635[_0xa749('0xf')][_0x57a787][_0xa749('0x105')],_0x945806=_0x40da37(_0x28c635['diffData'][_0x57a787][_0xa749('0xfe')])||{},_0x5d4167=this[_0xa749('0x0')](_0x28c635['diffData'][_0x57a787][_0xa749('0x5')]);_0x5d4167[_0xa749('0x17')]=_0x57a787,_0x5d4167[_0xa749('0x73')]=!_0x457a64||!_0x457a64[_0xa749('0x87')],_0x5d4167[_0xa749('0x87')]=()=>_0x5d4167[_0xa749('0x73')],this[_0xa749('0xd1')]['set'](_0x57a787,_0x5d4167),this[_0xa749('0xa2')]['set'](_0x57a787,_0x945806),_0x457a64&&this[_0xa749('0x2b')][_0xa749('0xb0')](_0x57a787,_0x457a64);const _0x18ceb6=this[_0xa749('0x78')](_0x5d4167);this['_baseIdsRoots']['set'](_0x57a787,_0x18ceb6);for(const [_0x3693de,_0x222f88]of _0x5d4167[_0xa749('0x80')]){if(!_0x3693de['startsWith'](_0xa749('0xde')))continue;const _0x3c3054=_0x3693de[_0xa749('0xd7')](':')[0x2];for(const _0xf769eb of _0x222f88[_0xa749('0x24')]({'singleCharacters':!0x0})){const _0x3024c5=this[_0xa749('0x71')](_0xf769eb),_0x52236e=_0xa749('0xeb')==_0xf769eb['type']?_0xf769eb['previousPosition']['path'][_0xa749('0x4c')](0x0,-0x1):_0xf769eb[_0xa749('0x6d')]['path'],_0x5764fd=_0x18ceb6[_0xa749('0x27')](_0x52236e)[_0xa749('0xce')](_0x3024c5);this[_0xa749('0x42')][_0xa749('0xb0')](_0x5764fd,{'userId':_0x3c3054});}}}this[_0xa749('0x32')]=this[_0xa749('0x22')];const _0x13b911=[...Array(this['_revisionId'])[_0xa749('0x109')]()][_0xa749('0x4c')](0x1)['filter'](_0x2f6b2b=>!this['_touched'][_0xa749('0xa5')](_0x2f6b2b));let _0x510ddc=0x0;const _0x42f605=new Map();for(const _0x516202 in _0x28c635[_0xa749('0xf')]){const _0x3f766b=_0x28c635[_0xa749('0xf')][_0x516202][_0xa749('0x105')],_0x2c279a=_0x40da37(_0x28c635['diffData'][_0x516202][_0xa749('0xd6')])||{},_0x5c0db2=this[_0xa749('0x0')](_0x28c635[_0xa749('0xf')][_0x516202]['insertions']);_0x5c0db2[_0xa749('0x17')]=_0x516202,_0x5c0db2[_0xa749('0x73')]=!_0x3f766b||_0x3f766b[_0xa749('0x87')],_0x5c0db2[_0xa749('0x87')]=()=>_0x5c0db2['_isAttached'],this[_0xa749('0xc2')]['set'](_0x516202,_0x5c0db2),this['_diffRootsAttributes']['set'](_0x516202,_0x2c279a);const _0x13bd84=this['_makeIdsRoot'](_0x5c0db2,Number[_0xa749('0x54')]);this['_idsRoots']['set'](_0x516202,_0x13bd84),_0x42f605[_0xa749('0xb0')](_0x516202,_0x5c0db2[_0xa749('0x87')]()?_0x2c279a:{});for(const [_0x332a75,_0x4e4caa]of _0x5c0db2[_0xa749('0x80')]){if(!_0x332a75[_0xa749('0x5a')]('revision:'))continue;const _0x3445c6=_0x332a75[_0xa749('0xd7')](':')[0x2];for(const _0xb7b58e of _0x4e4caa[_0xa749('0x24')]({'singleCharacters':!0x0})){const _0x40f9ac=this[_0xa749('0x71')](_0xb7b58e),_0x4fd789=this[_0xa749('0x22')]++,_0x4138b2=_0xa749('0xeb')==_0xb7b58e[_0xa749('0x7c')]?_0xb7b58e[_0xa749('0x6d')][_0xa749('0x12')][_0xa749('0x4c')](0x0,-0x1):_0xb7b58e['previousPosition'][_0xa749('0x12')];_0x13bd84[_0xa749('0x27')](_0x4138b2)[_0xa749('0x13')](_0x40f9ac,_0x4fd789),this['_touched'][_0xa749('0xb0')](_0x4fd789,{'userId':_0x3445c6});}}for(const _0x404e71 of this['editor']['model'][_0xa749('0x3c')](_0x5c0db2)['getWalker']({'singleCharacters':!0x0})){const _0x44b254=this[_0xa749('0x71')](_0x404e71),_0x5c8e33='elementEnd'==_0x404e71[_0xa749('0x7c')]?_0x404e71[_0xa749('0x6d')]['path'][_0xa749('0x4c')](0x0,-0x1):_0x404e71[_0xa749('0x6d')][_0xa749('0x12')],_0xae8985=_0x13bd84[_0xa749('0x27')](_0x5c8e33);_0xae8985[_0xa749('0xce')](_0x44b254)>0x0||_0xae8985[_0xa749('0x13')](_0x44b254,_0x13b911[_0x510ddc++]);}for(const [_0x340421,_0x49bec4]of _0x5c0db2[_0xa749('0x80')])_0x340421[_0xa749('0x5a')](_0xa749('0xde'))||this['_markers']['set'](_0x340421,_0x49bec4);}const _0x3d3f98=J(_0xa749('0xa1'));this['_baseRoots'][_0xa749('0xb0')](_0xa749('0xa1'),_0x3d3f98),this[_0xa749('0x4f')][_0xa749('0xb0')](_0xa749('0xa1'),this['_makeIdsRoot'](_0x3d3f98,0x1));const _0x3028d8=J('$graveyard');this['_diffRoots']['set'](_0xa749('0xa1'),_0x3028d8),this[_0xa749('0x44')]['set'](_0xa749('0xa1'),this[_0xa749('0x78')](_0x3028d8,0x1));const _0x4a50ad=Array['from'](this[_0xa749('0xc2')])['map'](([_0x4ca4e4,_0x335613])=>[_0x4ca4e4,B(_0x335613)]);this[_0xa749('0xc')](this[_0xa749('0xa3')],_0x4a50ad,this[_0xa749('0x79')],_0x42f605);}[_0xa749('0x0')](_0xebfa13){const _0x4881ee=JSON[_0xa749('0x84')](_0xebfa13),_0x386480=this[_0xa749('0xcc')][_0xa749('0xac')][_0xa749('0xc4')][_0xa749('0x60')],_0x6b5c71=new _0x58adee(_0x386480,_0x4881ee[_0xa749('0x47')](_0x48bfd7=>F(_0x48bfd7,this[_0xa749('0xcc')])));return this[_0xa749('0xcc')][_0xa749('0x101')]['toModel'](_0x6b5c71);}[_0xa749('0xc')](_0x391d26,_0x108d39,_0x59a28d,_0x3b0d0e){const _0x101c78=new Map(_0x108d39),_0x1f236c=new Map(_0x40da37(_0x3b0d0e)),_0x2736a0=new Map();for(const [_0x1c1ec3,_0x3aff8f]of _0x59a28d)_0x2736a0[_0xa749('0xb0')](_0x1c1ec3,{'start':_0x3aff8f[_0xa749('0x91')]['clone'](),'end':_0x3aff8f[_0xa749('0x49')][_0xa749('0xfa')](),'rootName':_0x3aff8f[_0xa749('0xc7')]['rootName']});this['_savedMetaData'][_0xa749('0xb0')](_0x391d26,{'roots':_0x101c78,'markers':_0x2736a0,'rootsAttributes':_0x1f236c});}[_0xa749('0xaa')](_0x409d5a){this[_0xa749('0x100')][_0xa749('0xed')](_0x409d5a);}[_0xa749('0x25')](){this[_0xa749('0x10e')](),this[_0xa749('0xfd')]=-0x1,this[_0xa749('0xa3')]=-0x1,this[_0xa749('0x100')]['clear'](),this[_0xa749('0x102')](this['source']);}['_reset'](){this[_0xa749('0x42')]['clear'](),this['_touchedMarkers'][_0xa749('0xa6')](),this['_touchedRoots'][_0xa749('0xa6')](),this[_0xa749('0xc2')]['clear'](),this[_0xa749('0x97')][_0xa749('0xa6')](),this[_0xa749('0xd1')][_0xa749('0xa6')](),this[_0xa749('0xa2')][_0xa749('0xa6')](),this['_idsRoots'][_0xa749('0xa6')](),this[_0xa749('0x4f')][_0xa749('0xa6')](),this[_0xa749('0x79')][_0xa749('0xa6')](),this[_0xa749('0x22')]=0x1,this['_startingRevisionId']=this[_0xa749('0x22')];}[_0xa749('0x78')](_0x4e11e5,_0x1476d2=null){let _0x3a7712=null;_0x4e11e5['is']('documentFragment')||(_0x3a7712=new _0xbc8c15(_0x4e11e5[_0xa749('0xb2')],{'vid_start':null===_0x1476d2?this[_0xa749('0x22')]++:_0x1476d2++}));const _0x1c1f9f=[];for(const _0x45542b of _0x4e11e5[_0xa749('0x3a')]())if(_0x45542b['is']('element')){_0x1c1f9f[_0xa749('0xe6')](this[_0xa749('0x78')](_0x45542b,_0x1476d2));const _0x358e3d=_0x1c1f9f[_0x1c1f9f[_0xa749('0x6a')]-0x1];null!==_0x1476d2&&(_0x1476d2=_0x358e3d['is'](_0xa749('0xba'),_0xa749('0x68'))?_0x358e3d['getAttribute'](_0xa749('0x104'))+0x1:_0x358e3d[_0xa749('0xce')]('vid_end')+0x1);}else for(let _0x465378=0x0;_0x465378<_0x45542b[_0xa749('0xe5')];_0x465378++)_0x1c1f9f[_0xa749('0xe6')](new _0xbc8c15(_0xa749('0x68'),{'vid':null===_0x1476d2?this[_0xa749('0x22')]++:_0x1476d2++}));if(_0x4e11e5['is'](_0xa749('0xd4'))){const _0x1b8c5b=J(_0x4e11e5[_0xa749('0x17')]);return _0x1b8c5b[_0xa749('0x8b')](0x0,_0x1c1f9f),_0x1b8c5b;}return _0x3a7712[_0xa749('0x13')]('vid_end',null===_0x1476d2?this[_0xa749('0x22')]++:_0x1476d2++),_0x3a7712['_insertChild'](0x0,_0x1c1f9f),_0x3a7712;}['_calculateMetaData'](_0x2157a9,_0x305e29,_0x3a9a16){this[_0xa749('0x10e')]();const {roots:_0x50124c,markers:_0x4898f3,rootsAttributes:_0x4c58d5}=this[_0xa749('0x100')]['get'](_0x2157a9);this[_0xa749('0xd1')]=new Map(_0x50124c),this[_0xa749('0xa2')]=new Map(_0x40da37(_0x4c58d5));for(const [_0xfc2dc6,_0x46fbf1]of this[_0xa749('0xd1')])if('$graveyard'!==_0xfc2dc6&&(this[_0xa749('0xc2')][_0xa749('0xb0')](_0xfc2dc6,B(_0x46fbf1)),this[_0xa749('0x97')]=new Map(_0x40da37(_0x4c58d5)),_0x3a9a16)){const _0x50fd1e=this['_revisionId'];this[_0xa749('0x44')][_0xa749('0xb0')](_0xfc2dc6,this[_0xa749('0x78')](_0x46fbf1)),this[_0xa749('0x4f')][_0xa749('0xb0')](_0xfc2dc6,this[_0xa749('0x78')](_0x46fbf1,_0x50fd1e));}this[_0xa749('0x32')]=this[_0xa749('0x22')],this[_0xa749('0xc2')][_0xa749('0xb0')](_0xa749('0xa1'),B(this[_0xa749('0xd1')][_0xa749('0x2e')](_0xa749('0xa1')))),_0x3a9a16&&this[_0xa749('0x44')][_0xa749('0xb0')](_0xa749('0xa1'),this['_makeIdsRoot'](this[_0xa749('0xd1')][_0xa749('0x2e')]('$graveyard')));for(const [_0x2f0158,_0x23eed8]of _0x4898f3){const _0x571774=this[_0xa749('0xd1')]['get'](_0x23eed8[_0xa749('0x17')]),_0x138e40=this[_0xa749('0xc2')][_0xa749('0x2e')](_0x23eed8[_0xa749('0x17')]),_0x409e20=new _0x130d70(this[_0xa749('0x41')](_0x23eed8[_0xa749('0x91')],_0x571774),this[_0xa749('0x41')](_0x23eed8[_0xa749('0x49')],_0x571774)),_0x239bbf=this[_0xa749('0xe8')](_0x409e20,_0x138e40);_0x571774[_0xa749('0x80')][_0xa749('0xb0')](_0x2f0158,_0x409e20),this[_0xa749('0x79')][_0xa749('0xb0')](_0x2f0158,_0x239bbf);}this['_applyOperations'](_0x2157a9,_0x305e29,_0x3a9a16);}['_applyOperations'](_0x3b429d,_0x2ea398,_0x2693e6){for(const _0x33fe48 of this['source'][_0xa749('0xc0')](_0x3b429d,_0x2ea398))this[_0xa749('0x55')](_0x33fe48,_0x2693e6);for(const _0x2cc2ac of this[_0xa749('0xc2')][_0xa749('0xf4')]())_0x2cc2ac[_0xa749('0x80')][_0xa749('0xa6')]();for(const [_0x2f5e40,_0x581145]of this[_0xa749('0x79')]){this[_0xa749('0xc2')][_0xa749('0x2e')](_0x581145['root'][_0xa749('0x17')])['markers']['set'](_0x2f5e40,_0x581145[_0xa749('0xfa')]());}const _0x5b5004=new Map(),_0x4d05e2=new Map();for(const [_0x13c7e7,_0x37251a]of this[_0xa749('0xc2')])_0x5b5004[_0xa749('0xb0')](_0x13c7e7,B(_0x37251a)),_0x4d05e2[_0xa749('0xb0')](_0x13c7e7,this[_0xa749('0x97')]['get'](_0x13c7e7));this[_0xa749('0xc')](_0x2ea398,_0x5b5004,this['_markers'],_0x4d05e2);}[_0xa749('0x85')](_0x19a2c6){const _0x469017=Array['from'](this['_savedMetaData'][_0xa749('0x109')]());_0x469017['sort']((_0x5b6076,_0x1b1ee0)=>_0x5b6076-_0x1b1ee0),_0x469017[_0xa749('0x3b')]();for(const _0x52eab2 of _0x469017)if(_0x52eab2<_0x19a2c6)return _0x52eab2;return Number[_0xa749('0x54')];}[_0xa749('0x18')](_0x13e71f,_0x22d3ea){const _0x3513d8=Array[_0xa749('0xdc')](_0x22d3ea['markers'])[_0xa749('0x47')](([_0x3a4989,_0x41dd36])=>[_0x3a4989,this[_0xa749('0xe8')](_0x41dd36,_0x13e71f)]);_0x13e71f[_0xa749('0x80')]=new Map(_0x3513d8);}[_0xa749('0x66')](_0x34fa62){for(const _0x53e0d9 of this[_0xa749('0x79')][_0xa749('0xf4')]()){const _0x39113f=_0x53e0d9[_0xa749('0x74')](_0x34fa62),_0x119b86=_0x130d70['_createFromRanges'](_0x39113f);_0x53e0d9[_0xa749('0x91')]=_0x119b86[_0xa749('0x91')],_0x53e0d9[_0xa749('0x49')]=_0x119b86[_0xa749('0x49')];}}[_0xa749('0x55')](_0x471c8d,_0x346348){if(_0xa749('0x5f')==_0x471c8d[_0xa749('0x7c')]||_0xa749('0x37')==_0x471c8d['type'])return void this[_0xa749('0xdf')](_0x471c8d,_0x346348);if(_0xa749('0x106')==_0x471c8d[_0xa749('0x7c')]){const _0x4941e5=_0x471c8d[_0xa749('0x9a')][_0xa749('0xc7')][_0xa749('0x17')];this[_0xa749('0xc2')][_0xa749('0xa5')](_0x4941e5)||(this[_0xa749('0xc2')]['set'](_0x4941e5,J(_0x4941e5,!0x0)),this['_diffRootsAttributes'][_0xa749('0xb0')](_0x4941e5,{}),_0x346348&&this[_0xa749('0x44')]['set'](_0x4941e5,J(_0x4941e5,!0x0)));}if(_0xa749('0x7e')==_0x471c8d[_0xa749('0x7c')]||_0xa749('0x1')==_0x471c8d['type']||_0xa749('0xb9')==_0x471c8d[_0xa749('0x7c')])return void this['_handleRootAttributeOperation'](_0x471c8d);const _0x498edf=this[_0xa749('0x4e')](_0x471c8d,this[_0xa749('0xc2')]);if(_0xa749('0x9e')!==_0x471c8d['type']&&(_0x498edf[_0xa749('0x6')](),this[_0xa749('0x66')](_0x498edf)),_0x346348)switch(_0x498edf[_0xa749('0x7c')]){case _0xa749('0x106'):this[_0xa749('0x7d')](_0x471c8d);break;case'move':case _0xa749('0xbd'):case _0xa749('0x61'):this[_0xa749('0x46')](_0x471c8d);break;case _0xa749('0xc8'):this['_handleMergeOperation'](_0x471c8d);break;case'split':this[_0xa749('0x64')](_0x471c8d);break;case'marker':this[_0xa749('0xb6')](_0x471c8d);}}[_0xa749('0x4e')](_0xf32046,_0x5d16ad){const _0x13892e=_0xf32046[_0xa749('0xfa')]();return _0x13892e[_0xa749('0xc9')]=_0xf32046[_0xa749('0xc9')],this[_0xa749('0x72')](_0x13892e,_0x5d16ad),_0x13892e;}[_0xa749('0xc3')](_0x53b7e3){return _0x53b7e3[_0xa749('0x47')](_0x564fc8=>{const _0x5dee4b=this['_getVidAttributeName'](_0x564fc8);return Number(_0x564fc8[_0xa749('0x88')][_0xa749('0xce')](_0x5dee4b));});}['_generateTape'](_0x1be61a,_0x31351e){if(_0x1be61a['is']('element',_0xa749('0x68')))_0x31351e[_0xa749('0xe6')]({'item':_0x1be61a,'type':_0xa749('0x62')});else{_0x1be61a['is'](_0xa749('0xba'))&&_0x31351e['push']({'item':_0x1be61a,'type':_0xa749('0x34')});for(const _0x48b2ec of _0x1be61a[_0xa749('0x3a')]())this[_0xa749('0xf2')](_0x48b2ec,_0x31351e);_0x1be61a['is'](_0xa749('0xba'))&&_0x31351e['push']({'item':_0x1be61a,'type':_0xa749('0xeb')});}return _0x31351e;}['_getState'](){const _0x195f63=new Map(this[_0xa749('0x42')]),_0x350c2c=new Map(_0x195f63),_0x3aac1d=new Map(),_0x1418bc={'insertions':{},'deletions':{}},_0x2d6d6c={'insertions':{},'deletions':{}},_0x59748b=new Map(),_0x15d8bb=new Set([...this[_0xa749('0xd1')]['keys'](),...this[_0xa749('0xc2')][_0xa749('0x109')]()]);_0x15d8bb['delete'](_0xa749('0xa1'));for(const _0x8e2645 of _0x15d8bb){const _0xbb9d1c=this[_0xa749('0xc2')][_0xa749('0x2e')](_0x8e2645)||J(_0x8e2645,!0x1),_0x33c3a0=this['_baseRoots'][_0xa749('0x2e')](_0x8e2645)||J(_0x8e2645,!0x1);_0xbb9d1c[_0xa749('0x87')]()||_0x33c3a0[_0xa749('0x87')]()?(_0x1418bc[_0xa749('0x11')][_0x8e2645]=B(_0xbb9d1c),_0x1418bc['deletions'][_0x8e2645]=B(_0x33c3a0),this[_0xa749('0x18')](_0x1418bc[_0xa749('0x5')][_0x8e2645],_0x33c3a0),this['_copyMarkers'](_0x1418bc[_0xa749('0x11')][_0x8e2645],_0xbb9d1c),_0x2d6d6c[_0xa749('0x11')][_0x8e2645]=this[_0xa749('0xf2')](this[_0xa749('0x44')][_0xa749('0x2e')](_0x8e2645),[]),_0x2d6d6c[_0xa749('0x5')][_0x8e2645]=this[_0xa749('0xf2')](this[_0xa749('0x4f')][_0xa749('0x2e')](_0x8e2645)||J(_0x8e2645,!0x1),[])):_0x15d8bb[_0xa749('0xed')](_0x8e2645);}for(const _0x40bd73 of _0x15d8bb){const _0x78edf1=_0x2d6d6c[_0xa749('0x11')][_0x40bd73];for(const _0x3a5d1e of _0x78edf1){const _0x11b5ab=this[_0xa749('0x71')](_0x3a5d1e),_0x3fca88=_0x3a5d1e[_0xa749('0x88')][_0xa749('0xce')](_0x11b5ab);_0x350c2c[_0xa749('0xed')](_0x3fca88),_0x3fca88>=this[_0xa749('0x32')]&&_0x3aac1d[_0xa749('0xb0')](_0x3fca88,_0x195f63['get'](_0x3fca88));}}for(const _0xf94ef5 of _0x15d8bb){const _0x2163f9=_0x2d6d6c['insertions'][_0xf94ef5],_0x3bebd5=this[_0xa749('0xc3')](_0x2d6d6c[_0xa749('0x5')][_0xf94ef5]);let _0x14b003=0x0;for(const _0x3316b7 of _0x2163f9){const _0x2321ad=this[_0xa749('0x71')](_0x3316b7),_0x561b56=_0x3316b7['item'][_0xa749('0xce')](_0x2321ad);if(!_0x3aac1d[_0xa749('0xa5')](_0x561b56)&&!_0x59748b['has'](_0x561b56)){if(_0x350c2c['has'](_0x561b56))_0x14b003++;else{if(_0x561b56!=_0x3bebd5[_0x14b003]){const _0x4081d1=_0x195f63[_0xa749('0x2e')](_0x561b56)||_0x195f63[_0xa749('0x2e')](_0x3bebd5[_0x14b003]);for(;_0x561b56!=_0x3bebd5[_0x14b003];)_0x350c2c[_0xa749('0xa5')](_0x3bebd5[_0x14b003])||(_0x59748b[_0xa749('0xb0')](_0x3bebd5[_0x14b003],_0x4081d1),_0x195f63[_0xa749('0xb0')](_0x3bebd5[_0x14b003],_0x4081d1)),_0x14b003++;}_0x14b003++;}}}}for(const _0x86d27f of _0x15d8bb){const _0x355f48=_0x2d6d6c[_0xa749('0x11')][_0x86d27f];for(const _0x53fc82 of _0x355f48){const _0x3a9a17=this[_0xa749('0x71')](_0x53fc82),_0x1dbdc1=_0x53fc82[_0xa749('0x88')][_0xa749('0xce')](_0x3a9a17);if(_0x59748b['has'](_0x1dbdc1)){const _0xb09f71=_0x59748b[_0xa749('0x2e')](_0x1dbdc1);_0x350c2c[_0xa749('0xa5')](_0x1dbdc1)||_0x350c2c[_0xa749('0xb0')](_0x1dbdc1,{..._0xb09f71}),_0x3aac1d[_0xa749('0xb0')](_0x1dbdc1,{..._0xb09f71});}}}for(const _0xb2a96 of _0x350c2c[_0xa749('0x109')]())_0xb2a96>=this[_0xa749('0x32')]&&_0x350c2c[_0xa749('0xed')](_0xb2a96);const _0x3be2ba=new Map();for(const _0x5bd42f of _0x15d8bb){let _0x5d0f9c=_0x2d6d6c[_0xa749('0x11')][_0x5bd42f];for(const _0x14a03a of _0x5d0f9c)if(_0x14a03a[_0xa749('0x88')]['is'](_0xa749('0xba'),_0xa749('0xd3'))){const _0x26dabd=this[_0xa749('0x71')](_0x14a03a),_0x31d77c=_0x14a03a['item'][_0xa749('0xce')](_0x26dabd);if(_0x3aac1d['has'](_0x31d77c)){const _0x36fdeb=_0x14a03a['item'][_0xa749('0x50')]['parent'][_0xa749('0xce')](_0xa749('0xbc')),_0x131021=_0x3be2ba[_0xa749('0x2e')](_0x36fdeb)||new Set();_0x131021[_0xa749('0x77')](_0x3aac1d[_0xa749('0x2e')](_0x31d77c)['userId']),_0x3be2ba[_0xa749('0xb0')](_0x36fdeb,_0x131021);}}_0x5d0f9c=_0x2d6d6c[_0xa749('0x5')][_0x5bd42f];for(const _0x332995 of _0x5d0f9c)if(_0x332995['item']['is'](_0xa749('0xba'),_0xa749('0xd3'))){const _0x480311=this[_0xa749('0x71')](_0x332995),_0x3bb1e3=_0x332995[_0xa749('0x88')][_0xa749('0xce')](_0x480311);if(_0x350c2c[_0xa749('0xa5')](_0x3bb1e3)){const _0x1b350a=_0x332995[_0xa749('0x88')][_0xa749('0x50')][_0xa749('0x50')][_0xa749('0xce')]('vid_start'),_0x40d615=_0x3be2ba[_0xa749('0x2e')](_0x1b350a)||new Set();_0x40d615[_0xa749('0x77')](_0x350c2c['get'](_0x3bb1e3)['userId']),_0x3be2ba[_0xa749('0xb0')](_0x1b350a,_0x40d615);}}for(const _0x194648 of _0x3be2ba[_0xa749('0x109')]())(_0x3aac1d['has'](_0x194648)||_0x350c2c[_0xa749('0xa5')](_0x194648))&&_0x3be2ba[_0xa749('0xed')](_0x194648);}for(const _0x23ba32 of _0x15d8bb){const _0x381e51=_0x2d6d6c[_0xa749('0x11')][_0x23ba32];let _0x456274=null,_0x522ed5=null;for(const _0x565366 of _0x381e51){const _0xca7d36=this[_0xa749('0x71')](_0x565366),_0x5359f1=_0x565366[_0xa749('0x88')][_0xa749('0xce')](_0xca7d36),_0x880706=_0x3be2ba[_0xa749('0x2e')](_0x5359f1);_0x880706&&'elementStart'==_0x565366[_0xa749('0x7c')]&&(_0x456274=Array['from'](_0x880706)[0x0],_0x522ed5=_0x565366[_0xa749('0x88')][_0xa749('0xce')](_0xa749('0x53'))),_0x456274&&(_0x350c2c[_0xa749('0xb0')](_0x5359f1,{'userId':_0x456274}),_0x3aac1d[_0xa749('0xb0')](_0x5359f1,{'userId':_0x456274})),_0x5359f1==_0x522ed5&&(_0x456274=null,_0x522ed5=null);}}const _0x44cac3={},_0x59d804=new Set();for(const _0x492656 of _0x15d8bb){const _0x13d4d2=_0x1418bc[_0xa749('0x5')][_0x492656],_0x58c692=_0x1418bc[_0xa749('0x11')][_0x492656];for(const {userId:_0x32772b}of this[_0xa749('0x1a')][_0xa749('0xf4')]())null!==_0x32772b&&_0x59d804[_0xa749('0x77')](_0x32772b);for(const {userId:_0x594817}of this[_0xa749('0x2b')][_0xa749('0xf4')]())null!==_0x594817&&_0x59d804[_0xa749('0x77')](_0x594817);this[_0xa749('0x15')](_0x58c692,_0x2d6d6c[_0xa749('0x11')][_0x492656],_0x3aac1d,'insertion',_0x59d804),this[_0xa749('0x15')](_0x13d4d2,_0x2d6d6c[_0xa749('0x5')][_0x492656],_0x350c2c,_0xa749('0xd9'),_0x59d804),_0x44cac3[_0x492656]={'insertions':this['_prepareViewToSave'](_0x58c692),'deletions':this[_0xa749('0xb3')](_0x13d4d2),'attachChange':this['_touchedRoots']['get'](_0x492656)||null,'attributesBefore':_0x40da37(this[_0xa749('0xa2')]['get'](_0x492656))||{},'attributesAfter':_0x40da37(this[_0xa749('0x97')][_0xa749('0x2e')](_0x492656))};}return{'diffData':_0x44cac3,'authorsIds':Array['from'](_0x59d804)};}['_processRootBeforeSave'](_0x20963a){for(const [,_0x18cf95]of _0x20963a[_0xa749('0x80')]){const _0x495cd7=_0x18cf95[_0xa749('0x91')][_0xa749('0x33')]()[_0xa749('0xfb')](_0x1cd534=>_0xa749('0xd3')==_0x1cd534[_0xa749('0xb2')]);for(const _0x5e2643 of _0x495cd7)0x1==_0x5e2643['childCount']&&_0x5e2643[_0xa749('0x95')](0x0)['is'](_0xa749('0xba'),_0xa749('0x9c'))&&_0x5e2643[_0xa749('0x95')](0x0)['_setAttribute'](_0xa749('0xe3'),!0x0);}}['_prepareViewToSave'](_0x49cf26){this[_0xa749('0x5c')](_0x49cf26);const _0x158ecd=this['editor'][_0xa749('0x101')]['toView'](_0x49cf26,{}),_0x538698=Array[_0xa749('0xdc')](_0x158ecd[_0xa749('0x3a')]())[_0xa749('0x47')](_0x15d221=>this[_0xa749('0x3e')](_0x15d221));return JSON[_0xa749('0x8f')](_0x538698);}[_0xa749('0x3e')](_0x1fceab){if(_0x1fceab['is']('$text'))return _0x1fceab[_0xa749('0x101')];{const _0x3f8cfc=_0x1fceab;return{'type':Object[_0xa749('0x109')](j)[_0xa749('0xf8')](_0x416b40=>_0x1fceab instanceof j[_0x416b40]),'name':_0x3f8cfc[_0xa749('0xb2')],'attributes':Array[_0xa749('0xdc')](_0x3f8cfc[_0xa749('0x5e')]()),'children':Array[_0xa749('0xdc')](_0x3f8cfc[_0xa749('0x3a')]())['map'](_0x5a4466=>this[_0xa749('0x3e')](_0x5a4466))};}}[_0xa749('0x15')](_0x28cdd1,_0x5a1579,_0x246333,_0x4d8b02,_0x1ac6ab){let _0x162f50=null,_0x7eb909=null,_0xc5c8d7=0x0;const _0x5053e7=this[_0xa749('0xcc')]['model'];for(let _0x14ae9a=0x0;_0x14ae9a<_0x5a1579[_0xa749('0x6a')];_0x14ae9a++){const _0x2a7446=this[_0xa749('0x71')](_0x5a1579[_0x14ae9a]),_0x22ddea=_0x5a1579[_0x14ae9a][_0xa749('0x88')][_0xa749('0xce')](_0x2a7446),_0xc28062=_0x246333[_0xa749('0x2e')](_0x22ddea),_0x37e9dd=_0x14ae9a==_0x5a1579[_0xa749('0x6a')]-0x1;(!_0x162f50&&_0xc28062&&(_0x162f50=_0xc28062,_0x7eb909=_0x5a1579[_0x14ae9a]),_0x162f50&&(!_0xc28062||_0xc28062[_0xa749('0xd5')]!=_0x162f50[_0xa749('0xd5')]))&&(_0x3c2799(_0xc28062,H(_0x7eb909,_0x28cdd1,_0x5053e7),H(_0x5a1579[_0x14ae9a],_0x28cdd1,_0x5053e7)),_0x162f50=_0xc28062||null,_0x7eb909=_0xc28062?_0x5a1579[_0x14ae9a]:null),_0x162f50&&_0x37e9dd&&_0x3c2799(_0xc28062,H(_0x7eb909,_0x28cdd1,_0x5053e7),q(_0x5a1579[_0x14ae9a],_0x28cdd1,_0x5053e7));}function _0x3c2799(_0x1aad0d,_0xcfae04,_0x5ed95a){const _0x2cf3cd=_0x162f50[_0xa749('0xd5')],_0x2ffc53=_0xa749('0xde')+_0x4d8b02+':'+_0x2cf3cd+':'+_0xc5c8d7++,_0x53e6fc=_0x5053e7[_0xa749('0x1d')](_0xcfae04,_0x5ed95a);_0x28cdd1[_0xa749('0x80')][_0xa749('0xb0')](_0x2ffc53,_0x53e6fc),null!==_0x2cf3cd&&_0x1ac6ab[_0xa749('0x77')](_0x2cf3cd);}}[_0xa749('0x71')](_0xffaedd){switch(_0xffaedd[_0xa749('0x7c')]){case _0xa749('0x34'):return _0xa749('0xbc');case _0xa749('0xeb'):return _0xa749('0x53');default:return _0xa749('0x104');}}[_0xa749('0x72')](_0x4934d6,_0x24f67c){_0x4934d6[_0xa749('0xd0')]=null;for(const _0x31c299 in _0x4934d6){const _0x3f9efb=_0x4934d6[_0x31c299];if(_0x3f9efb instanceof _0x4a0de6){const _0x2bb14c=_0x24f67c['get'](_0x3f9efb[_0xa749('0xc7')][_0xa749('0x17')]);_0x4934d6[_0x31c299]=this[_0xa749('0x41')](_0x3f9efb,_0x2bb14c);}if(_0x3f9efb instanceof _0x130d70){const _0x512a21=_0x24f67c[_0xa749('0x2e')](_0x3f9efb['root'][_0xa749('0x17')]);_0x4934d6[_0x31c299]=this[_0xa749('0xe8')](_0x3f9efb,_0x512a21);}_0xa749('0xc7')===_0x31c299&&(_0x4934d6[_0xa749('0xc7')]=_0x24f67c[_0xa749('0x2e')](_0x4934d6[_0xa749('0xc7')][_0xa749('0x17')]));}}[_0xa749('0xe8')](_0x359dea,_0x4d623d){return this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x1d')](this[_0xa749('0x41')](_0x359dea['start'],_0x4d623d),this[_0xa749('0x41')](_0x359dea['end'],_0x4d623d));}[_0xa749('0x41')](_0xc0a8ff,_0x187c5e){return this[_0xa749('0xcc')]['model'][_0xa749('0x14')](_0x187c5e,_0xc0a8ff['path'],_0xc0a8ff[_0xa749('0x30')]);}['_handleInsertOperation'](_0x5f0d33){const _0x51f009=this[_0xa749('0x44')][_0xa749('0x2e')](_0x5f0d33[_0xa749('0x9a')][_0xa749('0xc7')][_0xa749('0x17')]),_0x427841=this[_0xa749('0x41')](_0x5f0d33[_0xa749('0x9a')],_0x51f009),_0x3fc162=null===_0x5f0d33['_authorId']?null:_0x5f0d33[_0xa749('0xc9')]||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')]('Users')['me']['id'],_0xc6265c=_0x427841[_0xa749('0x50')],_0x265205=this['_revisionId'],_0xee9fa0=[];for(const _0x145404 of _0x5f0d33[_0xa749('0xef')])if(_0x145404['is'](_0xa749('0xba')))_0xee9fa0['push'](this[_0xa749('0x78')](_0x145404));else for(let _0x3cf5af=0x0;_0x3cf5af<_0x145404['offsetSize'];_0x3cf5af++)_0xee9fa0[_0xa749('0xe6')](new _0xbc8c15(_0xa749('0x68'),{'vid':this['_revisionId']++}));const _0x391a9f=this[_0xa749('0x22')];for(let _0x4790b4=_0x265205;_0x4790b4<_0x391a9f;_0x4790b4++)this[_0xa749('0x42')][_0xa749('0xb0')](_0x4790b4,{'userId':_0x3fc162});_0xc6265c[_0xa749('0x8b')](_0x427841[_0xa749('0x59')],_0xee9fa0);}[_0xa749('0x46')](_0x1f61be){(_0x1f61be=this[_0xa749('0x4e')](_0x1f61be,this[_0xa749('0x44')]))[_0xa749('0x6')]();const _0x10a830=null===_0x1f61be[_0xa749('0xc9')]?null:_0x1f61be['_authorId']||this[_0xa749('0xcc')]['plugins'][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x4a7104=_0x1f61be[_0xa749('0x26')](),_0x4fc2fe=_0x4a7104['parent'],_0x41dff0=_0x4a7104[_0xa749('0x59')];!function _0x52dd17(_0x55fce8,_0x372b67,_0x2b7ea5,_0x354176){for(let _0x5ddae1=_0x2b7ea5;_0x5ddae1<_0x354176;_0x5ddae1++){const _0x29e409=_0x372b67[_0xa749('0x95')](_0x5ddae1);_0x29e409['is'](_0xa749('0xba'),'$text')?_0x55fce8['set'](_0x29e409[_0xa749('0xce')](_0xa749('0x104')),{'userId':_0x10a830}):(_0x55fce8[_0xa749('0xb0')](_0x29e409[_0xa749('0xce')](_0xa749('0xbc')),{'userId':_0x10a830}),_0x52dd17(_0x55fce8,_0x29e409,0x0,_0x29e409[_0xa749('0x8')]),_0x55fce8[_0xa749('0xb0')](_0x29e409['getAttribute'](_0xa749('0x53')),{'userId':_0x10a830}));}}(this[_0xa749('0x42')],_0x4fc2fe,_0x41dff0,_0x41dff0+_0x1f61be['howMany']);}[_0xa749('0x8e')](_0x42a1a2){const _0x539c73=null===(_0x42a1a2=this['_cloneOperation'](_0x42a1a2,this[_0xa749('0x44')]))['_authorId']?null:_0x42a1a2[_0xa749('0xc9')]||this['editor'][_0xa749('0xb7')]['get'](_0xa749('0x65'))['me']['id'],_0x55e1ef=_0x42a1a2[_0xa749('0xe7')]['parent'],_0x139ad5=_0x42a1a2[_0xa749('0xf7')][_0xa749('0x50')],_0x215e2a=_0x55e1ef[_0xa749('0xce')](_0xa749('0x53')),_0x18ba71=_0x139ad5[_0xa749('0xce')]('vid_start');_0x55e1ef[_0xa749('0x13')](_0xa749('0x53'),_0x139ad5[_0xa749('0xce')]('vid_end')),_0x139ad5[_0xa749('0x13')](_0xa749('0x53'),_0x215e2a),this[_0xa749('0x42')]['set'](_0x18ba71,{'userId':_0x539c73}),this[_0xa749('0x42')]['set'](_0x215e2a,{'userId':_0x539c73}),_0x42a1a2[_0xa749('0x6')]();}['_handleSplitOperation'](_0x564136){const _0xe7e29d=null===(_0x564136=this[_0xa749('0x4e')](_0x564136,this[_0xa749('0x44')]))[_0xa749('0xc9')]?null:_0x564136['_authorId']||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x3ac17b=_0x564136[_0xa749('0x67')],_0x4d3965=_0x564136[_0xa749('0x8d')]['parent'];_0x564136[_0xa749('0x6')]();const _0x3917c1=_0x4d3965['getAttribute'](_0xa749('0x53')),_0x4d95b2=_0x564136['insertionPosition'][_0xa749('0x1b')];if(_0x3ac17b){const _0x1e2a6c=_0x4d95b2[_0xa749('0xce')](_0xa749('0x53')),_0x1990a6=_0x4d3965[_0xa749('0xce')](_0xa749('0x53'));_0x4d3965[_0xa749('0x13')](_0xa749('0x53'),_0x1e2a6c),_0x4d95b2[_0xa749('0x13')](_0xa749('0x53'),_0x1990a6),this[_0xa749('0x42')][_0xa749('0xb0')](_0x4d3965[_0xa749('0xce')](_0xa749('0x53')),{'userId':_0xe7e29d}),this[_0xa749('0x42')]['set'](_0x4d95b2[_0xa749('0xce')](_0xa749('0xbc')),{'userId':_0xe7e29d});}else{const _0xdf8024=this[_0xa749('0x22')]++,_0x3b5811=this[_0xa749('0x22')]++;_0x4d3965[_0xa749('0x13')](_0xa749('0x53'),_0xdf8024),_0x4d95b2[_0xa749('0x13')](_0xa749('0xbc'),_0x3b5811),_0x4d95b2[_0xa749('0x13')]('vid_end',_0x3917c1),this['_touched'][_0xa749('0xb0')](_0xdf8024,{'userId':_0xe7e29d}),this['_touched'][_0xa749('0xb0')](_0x3b5811,{'userId':_0xe7e29d});}}['_handleMarkerOperation'](_0x211d5e){if(!_0x211d5e[_0xa749('0x43')])return;const _0x152267=(_0x211d5e=this[_0xa749('0x4e')](_0x211d5e,this[_0xa749('0xc2')]))[_0xa749('0xb5')]?_0x211d5e[_0xa749('0xb5')][_0xa749('0xc7')]:null,_0x1a65c4=_0x211d5e[_0xa749('0x9f')]?_0x211d5e[_0xa749('0x9f')][_0xa749('0xc7')]:null;_0x152267&&this[_0xa749('0x79')][_0xa749('0xed')](_0x211d5e[_0xa749('0xb2')]),_0x1a65c4&&this[_0xa749('0x79')]['set'](_0x211d5e['name'],_0x211d5e['newRange'][_0xa749('0xfa')]());const _0x1cc016=null===_0x211d5e[_0xa749('0xc9')]?null:_0x211d5e[_0xa749('0xc9')]||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x4db991=_0x211d5e[_0xa749('0xb2')];if(!this[_0xa749('0x1a')]['has'](_0x4db991))return void this[_0xa749('0x1a')][_0xa749('0xb0')](_0x4db991,{'range':_0x211d5e[_0xa749('0xb5')],'userId':_0x1cc016});const _0x5b8ef0=this['_touchedMarkers'][_0xa749('0x2e')](_0x4db991),_0x4ed092=_0x5b8ef0[_0xa749('0xc1')],_0x40b850=_0x211d5e[_0xa749('0x9f')];null==_0x4ed092&&null==_0x40b850||_0x4ed092&&_0x40b850&&_0x4ed092[_0xa749('0x4')](_0x40b850)?this['_touchedMarkers'][_0xa749('0xed')](_0x211d5e['name']):_0x5b8ef0[_0xa749('0xd5')]=_0x1cc016;}['_handleRootOperation'](_0x36dda9,_0x4bcdf6){this[_0xa749('0xc2')]['has'](_0x36dda9[_0xa749('0x17')])?this['_diffRoots'][_0xa749('0x2e')](_0x36dda9[_0xa749('0x17')])[_0xa749('0x73')]=_0x36dda9[_0xa749('0x2a')]:(this[_0xa749('0xc2')][_0xa749('0xb0')](_0x36dda9[_0xa749('0x17')],J(_0x36dda9[_0xa749('0x17')],!0x0)),this[_0xa749('0x97')][_0xa749('0xb0')](_0x36dda9[_0xa749('0x17')],{}),_0x4bcdf6&&this[_0xa749('0x44')]['set'](_0x36dda9[_0xa749('0x17')],J(_0x36dda9[_0xa749('0x17')],!0x0)));const _0x5861f2=null===_0x36dda9[_0xa749('0xc9')]?null:_0x36dda9[_0xa749('0xc9')]||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')]('Users')['me']['id'],_0x98783f=this['_touchedRoots'][_0xa749('0x2e')](_0x36dda9[_0xa749('0x17')]);_0x98783f&&_0x98783f[_0xa749('0xd5')]===_0x5861f2?this[_0xa749('0x2b')][_0xa749('0xed')](_0x36dda9[_0xa749('0x17')]):this['_touchedRoots'][_0xa749('0xb0')](_0x36dda9[_0xa749('0x17')],{'userId':_0x5861f2,'isAttached':_0x36dda9['isAdd']});}['_handleRootAttributeOperation'](_0x47a8ea){const _0x34f40e=this[_0xa749('0x97')][_0xa749('0x2e')](_0x47a8ea['root'][_0xa749('0x17')]);null===_0x47a8ea[_0xa749('0x90')]?delete _0x34f40e[_0x47a8ea[_0xa749('0xd')]]:_0x34f40e[_0x47a8ea[_0xa749('0xd')]]=_0x47a8ea[_0xa749('0x90')];}}function B(_0x177a87){const _0x3202c2=J(_0x177a87[_0xa749('0x17')],_0x177a87['isAttached']());for(const _0x109ff0 of _0x177a87[_0xa749('0x3a')]()){const _0x24a69d=_0x109ff0[_0xa749('0x23')](!0x0);_0x3202c2[_0xa749('0xb8')](_0x24a69d);}return _0x3202c2;}function J(_0x17035a,_0x5dad8e=!0x0){const _0x4d2fe7=new _0x33b272();return _0x4d2fe7[_0xa749('0x17')]=_0x17035a,_0x4d2fe7[_0xa749('0x73')]=_0x5dad8e,_0x4d2fe7[_0xa749('0x87')]=()=>_0x4d2fe7['_isAttached'],_0x4d2fe7;}function H(_0x8cc936,_0xbb0bc8,_0x5904b6){const _0x254ae8=_0xa749('0xeb')==_0x8cc936[_0xa749('0x7c')]?_0x5904b6[_0xa749('0xf0')](_0x8cc936[_0xa749('0x88')],_0xa749('0x49')):_0x5904b6['createPositionBefore'](_0x8cc936[_0xa749('0x88')]);return _0x5904b6[_0xa749('0x14')](_0xbb0bc8,_0x254ae8[_0xa749('0x12')],_0x254ae8[_0xa749('0x30')]);}function q(_0x12fcb0,_0x4d78d1,_0x3714ff){const _0xe37c0c=_0xa749('0x34')==_0x12fcb0[_0xa749('0x7c')]?_0x3714ff[_0xa749('0xf0')](_0x12fcb0[_0xa749('0x88')],0x0):_0x3714ff[_0xa749('0xe2')](_0x12fcb0['item']);return _0x3714ff[_0xa749('0x14')](_0x4d78d1,_0xe37c0c[_0xa749('0x12')],_0xe37c0c[_0xa749('0x30')]);}
23
+ const _0x3e95=['$graveyard','_handleRootOperation','RevisionTracker','includes','_touchedRoots','_getViewJson','deletions','createRevision','revisionHistory.resumeUnsavedRevision','_source','_removePendingAction','getTransformedByOperation','version','length','getCurrentRevisionId','data','markers','model','_revisionDataBuilder','children','_getPreviousFrom','_reset','marked','_generateTape','markerToData','createRangeIn','affectsData','targetPosition','_pendingAction','start','_isAttached','insertion','ready','insert','editing','_removeMetaData','slice','collaboration.channelId','clone','getAttributes','size','newValue','_fixPosition','_diffRootsAttributes','_lastFrom','parse','isAttached','name','end','merge','createPositionFromPath','_baseIdsRoots','_setConversion','rootsAttributes','_fixRange','requires','_makeModelFromViewString','_markers','getRoot','marker','_saveMetaData','item','stickiness','startsWith','string','reverse','buildRevisionData','newRange','howMany','_processRootBeforeSave','dataDowncast','getRevisions','_handleRootAttributeOperation','_update','previousPosition','filter','userId','addRootAttribute','_findInsertionIndex','for','getAncestors','view','_bufferUpdate','getLatestVersion','clear','getAttribute','oldRange','keepParagraph','_handleInsertOperation','resolve','getRevision','diffData','RealTimeCollaborationClient','adapter','_baseRoots','document','getTime','getWalker','loadState','sort','_cloneOperation','then','_diffRoots','_createInitialRevision','bind','data-revision-','reInit','rootName','getChild','_execute','getRootNames','detachRoot','createdAt','_isInit','childCount','_idsRoots','_getState','source','vid','setSource','_baseRootsAttributes','elementEnd','_applyOperations','setRevisionData','_setAttribute','_handleSplitOperation','_copyMarkers','_getBaseVids','_fixOperation','elementStart','currentRevision','_removeRevisionMarkers','_touchedMarkers','updateRevisions','_touched','pluginName','_lastTo','isReady','parent','initialData','conversion','_initialRevisionId','attributesAfter','from','get','insertionPosition','editor-initial-data-replaced-with-revision-data','_authorId','RevisionsRepository','_handleMergeOperation','creator','removeRootAttribute','$text','update','_makeRevision','getNodeByPath','path','_startingRevisionId','some','root','creatorId','roots','_markChanges','plugins','sendBufferedUpdates','revision-start','_handleMarkerOperation','isEqual','default','position','createPositionAt','map','add','splitPosition','revision-end','values','toVersion','getUser','upcast','hasContent','define','_loadState','_initialRoots','vid_end','NEGATIVE_INFINITY','find','_loadedStateData','init','_revisionId','_handleMoveOperation','addRevisionData','Initial\x20revision','baseVersion','attributesBefore','revision:','_continueCurrentRevision','deletion','authors','nodes','processor','attributes','getRevisionRootsAttributes','_createCurrentRevision','_calculateMetaData','_getFromVersion','dataToMarker','_makeIdsRoot','_addPendingAction','_loadRevisionData','useFillerType','offsetSize','toModel','authorsIds','_getVidAttributeName','forEach','getData','history','editor','key','_startingVersion','initial','offset','getOperations','repository','fromEntries','vid_start','set','graveyardPosition','Users','fromVersion','createPositionAfter','saveRevision','config','_handleOperation','_replaceEditorDataWithRevisionData','PendingActions','_savedMetaData','_isPendingUpdate','getChildren','toData','keys','paragraph','_operations','addRoot','changeRootAttribute','tableCell','getOperation','isAdd','_transformMarkers','_createFromRanges','createRange','split','push','_prepareViewToSave','delete','type','insertions','_bufferedUpdates','attachChange','documentFragment','_insertChild','nodeAfter','remove','_clone','element','toView','reinsert','has','revision'];(function(_0x4845d8,_0x3e9517){const _0x329c48=function(_0x4e1869){while(--_0x4e1869){_0x4845d8['push'](_0x4845d8['shift']());}};_0x329c48(++_0x3e9517);}(_0x3e95,0x193));const _0x329c=function(_0x4845d8,_0x3e9517){_0x4845d8=_0x4845d8-0x0;let _0x329c48=_0x3e95[_0x4845d8];return _0x329c48;};import{Users as _0x7aae2f}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xc96d0e,PendingActions as _0x107c7e}from'ckeditor5/src/core';import{logWarning as _0x2aa93e,uid as _0x18bbc3}from'ckeditor5/src/utils';import{Position as _0x12f2d2,Range as _0x60a973,Element as _0x48a53c,DocumentFragment as _0x16b774,ViewText as _0x5b422c,ViewElement as _0x37da6a,ViewContainerElement as _0x5c7608,ViewAttributeElement as _0x5bd2d2,ViewEmptyElement as _0x2db38c,ViewRawElement as _0x4dfacf,ViewUIElement as _0x34694d,ViewDocumentFragment as _0x4fcb82}from'ckeditor5/src/engine';import _0x495a00 from'./revisionsrepository';import{getTranslation as _0x573f70}from'./utils/common-translations';import{cloneDeep as _0x45e264,isEqual as _0xb522f9}from'lodash-es';const j={'c':_0x5c7608,'a':_0x5bd2d2,'e':_0x2db38c,'r':_0x4dfacf,'u':_0x34694d};export default class l extends _0xc96d0e{static get[_0x329c('0x1')](){return _0x329c('0x89');}static get[_0x329c('0xbe')](){return[_0x7aae2f,_0x495a00,_0x107c7e];}constructor(_0x3d8b20){super(_0x3d8b20),this[_0x329c('0xe4')]=null,this[_0x329c('0x109')]=null,this[_0x329c('0x99')]=new T(this[_0x329c('0x53')]),this['_initialRevisionId']=this[_0x329c('0x53')][_0x329c('0x62')][_0x329c('0xa')](_0x329c('0xac'))||_0x329c('0x56'),this[_0x329c('0x7b')]=new Map(),this[_0x329c('0x34')]=null;const _0x14d9c2=_0x18bbc3();this[_0x329c('0x90')]={'history':this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xe6')][_0x329c('0x52')],'getLatestVersion':()=>Promise[_0x329c('0xe0')](this[_0x329c('0x53')][_0x329c('0x98')]['document'][_0x329c('0x93')]),'getCurrentRevisionId':()=>_0x14d9c2},this['set'](_0x329c('0x3'),!0x1),this[_0x329c('0x5c')]('isEnabled',!0x0),this[_0x329c('0x5c')](_0x329c('0x67'),!0x1),this[_0x329c('0x53')][_0x329c('0x62')][_0x329c('0x2e')](_0x329c('0x8f'),!0x0),this['editor'][_0x329c('0x6')][_0x329c('0xd6')](_0x329c('0x2c'))[_0x329c('0x47')]({'view':_0x329c('0x86')});}[_0x329c('0x35')](){this['repository']=this[_0x329c('0x53')][_0x329c('0x1d')][_0x329c('0xa')](_0x329c('0xe')),this[_0x329c('0xbb')](),this[_0x329c('0x53')][_0x329c('0x96')]['on'](_0x329c('0xa7'),()=>{const _0x5a6d72=this[_0x329c('0x59')][_0x329c('0xe1')](0x0),_0x17a16d=_0x5a6d72&&null===_0x5a6d72[_0x329c('0x10')]?_0x5a6d72:null;if(this[_0x329c('0x3d')]=!!_0x17a16d&&this['editor'][_0x329c('0x62')][_0x329c('0xa')](_0x329c('0x8f')),this['editor']['plugins'][_0x329c('0x85')](_0x329c('0xe3'))){const _0x2cced8=this[_0x329c('0x90')][_0x329c('0x95')](),_0x182912=this[_0x329c('0x59')][_0x329c('0xe1')](_0x2cced8);if(_0x182912)this[_0x329c('0x55')]=_0x182912[_0x329c('0x5f')],this[_0x329c('0x3d')]=!0x1;else{const _0x248a11=this[_0x329c('0x90')]['history'][_0x329c('0x6c')][_0x329c('0x33')](_0x35cd4c=>!_0x35cd4c[_0x329c('0xf8')]),_0x58a6b0=_0x248a11?_0x248a11[_0x329c('0x3a')]:this['_source'][_0x329c('0x52')][_0x329c('0x93')];_0x5a6d72?(_0x5a6d72[_0x329c('0x2a')]<_0x58a6b0&&_0x5a6d72[_0x329c('0xd0')]({'toVersion':_0x58a6b0}),this[_0x329c('0x3d')]?(this[_0x329c('0x90')][_0x329c('0x95')]=()=>_0x17a16d['id'],this[_0x329c('0x55')]=_0x17a16d['fromVersion']):(this[_0x329c('0x55')]=_0x5a6d72[_0x329c('0x2a')],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x58a6b0,this[_0x329c('0x3d')]=!0x1);}}else _0x17a16d&&(this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xe6')][_0x329c('0x52')][_0x329c('0x93')]=Math['max'](_0x17a16d['toVersion'],this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xe6')]['history'][_0x329c('0x93')]),_0x17a16d[_0x329c('0x5f')]===_0x17a16d[_0x329c('0x2a')]?(0x0!==_0x17a16d[_0x329c('0x5f')]&&(this[_0x329c('0x90')][_0x329c('0x95')]=()=>_0x17a16d['id']),this[_0x329c('0x3d')]=!0x1):this[_0x329c('0x3d')]&&(this[_0x329c('0x90')][_0x329c('0x95')]=()=>_0x17a16d['id'],this['_startingVersion']=_0x17a16d[_0x329c('0x5f')])),this[_0x329c('0x3d')]||(this['_startingVersion']=this[_0x329c('0x53')]['model'][_0x329c('0xe6')][_0x329c('0x93')]);this['_revisionDataBuilder'][_0x329c('0x35')](this[_0x329c('0x90')][_0x329c('0x52')]),this[_0x329c('0xee')](this[_0x329c('0x55')]),this[_0x329c('0x44')](this[_0x329c('0x55')]),this[_0x329c('0xe4')]&&this['sendBufferedUpdates']();}),this[_0x329c('0xef')](_0x329c('0x3'))['to'](this,'_isPendingUpdate',_0x33142d=>!_0x33142d);}async['afterInit'](){if(this[_0x329c('0x59')][_0x329c('0x94')]>0x0){const _0x3af537=this[_0x329c('0x59')][_0x329c('0xe1')](0x0),_0x577ae1=await this['getRevisionDocumentData'](_0x3af537),_0x12b0ed=await this[_0x329c('0x43')](_0x3af537);this['_replaceEditorDataWithRevisionData'](_0x577ae1,_0x12b0ed);}}[_0x329c('0xfe')](_0x419fb1){this[_0x329c('0x90')]=_0x419fb1;}async[_0x329c('0x13')](){const _0x2afc37=await this[_0x329c('0x90')][_0x329c('0xda')]();if(_0x2afc37>this[_0x329c('0x109')][_0x329c('0x2a')]){await this[_0x329c('0x2f')]();const _0x3c80f8=this[_0x329c('0xc9')]({'revision':this[_0x329c('0x109')],'to':_0x2afc37});_0x3c80f8[_0x329c('0x3f')]=_0x3c80f8[_0x329c('0x4e')][_0x329c('0x25')](_0x3d6ea4=>this[_0x329c('0x53')]['plugins'][_0x329c('0xa')](_0x329c('0x5e'))['getUser'](_0x3d6ea4)),this['currentRevision']['_update'](_0x3c80f8);}}async[_0x329c('0x2f')](){this[_0x329c('0x3d')]&&!this[_0x329c('0x34')]&&(await this[_0x329c('0x4a')](this['currentRevision']),this[_0x329c('0x99')][_0x329c('0xe9')](this['currentRevision']),this[_0x329c('0x34')]={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x329c('0x109')][_0x329c('0x3f')][_0x329c('0xab')]()});}async[_0x329c('0x61')](_0x405ea9={},_0x93437b=null){const _0x20c804=[];await this[_0x329c('0x2f')](),this['_continueCurrentRevision']=!0x1,_0x93437b>this[_0x329c('0x109')][_0x329c('0x2a')]&&(_0x93437b=null),null===_0x93437b&&(_0x93437b=await this['_source'][_0x329c('0xda')]());const _0x2bb285=this[_0x329c('0x46')](_0x93437b),_0x45fb8c=this[_0x329c('0xc9')]({'from':_0x2bb285,'to':_0x93437b});if(this[_0x329c('0x109')][_0x329c('0x2a')]<_0x93437b){const _0x4bfa0b=this[_0x329c('0xc9')]({'revision':this[_0x329c('0x109')],'from':_0x93437b,'to':_0x93437b});_0x4bfa0b[_0x329c('0x3f')]=[],_0x4bfa0b[_0x329c('0x4e')]=[],_0x4bfa0b['id']=this[_0x329c('0x109')]['id'],this[_0x329c('0x109')][_0x329c('0xd0')](_0x4bfa0b,!0x0),delete _0x4bfa0b[_0x329c('0x3f')],_0x20c804['push'](_0x4bfa0b);}_0x405ea9[_0x329c('0x1a')]=this[_0x329c('0x53')]['plugins']['get'](_0x329c('0x5e'))['me']['id'],_0x405ea9[_0x329c('0xb6')]=_0x405ea9['name']||null,_0x405ea9['id']=_0x405ea9['id']||_0x18bbc3(),_0x405ea9={..._0x405ea9,..._0x45fb8c};const _0x5d10a2=this[_0x329c('0x38')](_0x405ea9);_0x20c804['push'](_0x405ea9);const _0x34f21c=this['repository']['getIndex'](_0x5d10a2);if(0x0!==_0x34f21c){const _0x1f57b7=this[_0x329c('0x59')][_0x329c('0xe1')](_0x34f21c-0x1);if(_0x1f57b7[_0x329c('0x5f')]!==_0x93437b){const _0x1716cb=this['_revisionDataBuilder']['getData'](_0x93437b,_0x1f57b7[_0x329c('0x2a')]),_0x4c64cf={'id':_0x1f57b7['id'],'diffData':_0x1716cb[_0x329c('0xe2')],'authorsIds':_0x1716cb[_0x329c('0x4e')],'authors':_0x1716cb[_0x329c('0x4e')]['map'](_0x50a123=>this['editor']['plugins'][_0x329c('0xa')](_0x329c('0x5e'))[_0x329c('0x2b')](_0x50a123)),'fromVersion':_0x93437b};_0x1f57b7===this[_0x329c('0x109')]&&(_0x4c64cf[_0x329c('0xf7')]=new Date(_0x405ea9[_0x329c('0xf7')][_0x329c('0xe7')]()+0xa)),_0x1f57b7['_update'](_0x4c64cf,!0x0),delete _0x4c64cf[_0x329c('0x3f')],_0x20c804[_0x329c('0x76')](_0x4c64cf);}}if(this['adapter']){for(const _0x35135b of _0x20c804)this[_0x329c('0xd9')](_0x35135b['id'],_0x35135b,!0x0);this[_0x329c('0x1e')]();}return _0x5d10a2;}[_0x329c('0x38')](_0x3d8b0f){const _0x500d80=this[_0x329c('0x59')][_0x329c('0x8e')](_0x3d8b0f);return this[_0x329c('0xe4')]&&_0x500d80['on'](_0x329c('0xd0'),(_0x5a860c,_0x4158ff,_0x49d931)=>{_0x49d931||(this['_bufferUpdate'](_0x4158ff['id'],_0x4158ff,!0x0),this[_0x329c('0x1e')]());}),this['repository']['addRevision'](_0x500d80,this[_0x329c('0xd5')](_0x500d80)),_0x500d80;}async['getRevisionDocumentData'](_0x43f4f2){await this[_0x329c('0x4a')](_0x43f4f2);const _0x1b189c={};for(const _0x253cf4 in _0x43f4f2[_0x329c('0xe2')]){if(_0x43f4f2[_0x329c('0xe2')][_0x253cf4][_0x329c('0x7c')]&&!_0x43f4f2[_0x329c('0xe2')][_0x253cf4][_0x329c('0x7c')][_0x329c('0xb5')])continue;const _0x54514e=this[_0x329c('0x10a')](JSON[_0x329c('0xb4')](_0x43f4f2['diffData'][_0x253cf4]['insertions'])),_0x17fa0a=this[_0x329c('0x53')][_0x329c('0xa9')]['view'][_0x329c('0xe6')],_0x3ec9ef=new _0x4fcb82(_0x17fa0a,_0x54514e[_0x329c('0x25')](_0x35131d=>F(_0x35131d,this['editor'])));this[_0x329c('0x53')][_0x329c('0x96')][_0x329c('0x41')][_0x329c('0x4b')](_0x329c('0x9d')),_0x1b189c[_0x253cf4]=this['editor'][_0x329c('0x96')]['processor'][_0x329c('0x69')](_0x3ec9ef),this[_0x329c('0x53')][_0x329c('0x96')][_0x329c('0x41')]['useFillerType'](_0x329c('0x22'));}return _0x1b189c;}async[_0x329c('0x43')](_0xbb6c9a){await this[_0x329c('0x4a')](_0xbb6c9a);const _0x2b05af={};for(const _0x9d0e18 in _0xbb6c9a[_0x329c('0xe2')])_0xbb6c9a[_0x329c('0xe2')][_0x9d0e18][_0x329c('0x7c')]&&!_0xbb6c9a[_0x329c('0xe2')][_0x9d0e18][_0x329c('0x7c')][_0x329c('0xb5')]||(_0x2b05af[_0x9d0e18]=_0xbb6c9a[_0x329c('0xe2')][_0x9d0e18]['attributesAfter']||{});return _0x2b05af;}[_0x329c('0x1e')](){if(0x0===this[_0x329c('0x7b')][_0x329c('0xaf')])return;if(this[_0x329c('0x67')])return;let _0x3b97a4=Array['from'](this[_0x329c('0x7b')][_0x329c('0x29')]());this[_0x329c('0x7b')][_0x329c('0xdb')]();for(let _0x14c03f=0x0;_0x14c03f<_0x3b97a4[_0x329c('0x94')];_0x14c03f++){const _0x4fd26a=_0x3b97a4[_0x14c03f];let _0x10141d=!0x1;for(const _0x97f878 of Object[_0x329c('0x6a')](_0x4fd26a))void 0x0===_0x4fd26a[_0x97f878]?delete _0x4fd26a[_0x97f878]:'id'!==_0x97f878&&(_0x10141d=!0x0);_0x10141d||(_0x3b97a4[_0x14c03f]=null);}if(_0x3b97a4=_0x3b97a4[_0x329c('0xd2')](_0x2f8a42=>null!==_0x2f8a42),!_0x3b97a4[_0x329c('0x94')])return;for(let _0x205f65=0x0;_0x205f65<_0x3b97a4['length'];_0x205f65++){const _0x184feb=_0x3b97a4[_0x205f65];void 0x0!==_0x184feb[_0x329c('0x5f')]&&void 0x0===_0x184feb[_0x329c('0x2a')]&&(_0x184feb[_0x329c('0x2a')]=this['repository'][_0x329c('0xe1')](_0x184feb['id'])[_0x329c('0x2a')]),void 0x0!==_0x184feb['toVersion']&&void 0x0===_0x184feb[_0x329c('0x5f')]&&(_0x184feb['fromVersion']=this[_0x329c('0x59')][_0x329c('0xe1')](_0x184feb['id'])[_0x329c('0x5f')]);}const _0x361a20=this[_0x329c('0x53')][_0x329c('0x62')]['get'](_0x329c('0xac'));this['_isPendingUpdate']=!0x0,this[_0x329c('0x49')](),this['adapter'][_0x329c('0x10c')](_0x3b97a4,_0x361a20)['finally'](()=>{this[_0x329c('0x67')]=!0x1;})['then'](_0x1fd03d=>{if(_0x1fd03d)for(const _0xa56b77 of _0x1fd03d)this['setRevisionData']({'id':_0xa56b77['id'],'createdAt':_0xa56b77[_0x329c('0xf7')]});this['_removePendingAction'](),this[_0x329c('0x1e')]();});}[_0x329c('0x64')](_0xe533e1,_0x55eab6){let _0x19f0b0=this['editor'][_0x329c('0x62')]['get'](_0x329c('0x5')),_0x480c6b=this[_0x329c('0x53')][_0x329c('0x62')][_0x329c('0xa')](_0x329c('0xbc'));if(void 0x0===_0x19f0b0){_0x19f0b0={};for(const _0x43c1d5 of this['editor']['model'][_0x329c('0xe6')][_0x329c('0xf5')]())_0x19f0b0[_0x43c1d5]='';}if(_0x329c('0xc7')==typeof _0x19f0b0&&(_0x19f0b0={'main':_0x19f0b0}),void 0x0===_0x480c6b){_0x480c6b={};for(const _0x38476b of this[_0x329c('0x53')][_0x329c('0x98')]['document'][_0x329c('0xf5')]())_0x480c6b[_0x38476b]={};}let _0xaf1438=!0x1;const _0x1d2190=Object[_0x329c('0x6a')](_0x19f0b0),_0x163534=Object[_0x329c('0x6a')](_0xe533e1);for(const _0x456dc3 of _0x1d2190){if(_0x19f0b0[_0x456dc3]!==_0xe533e1[_0x456dc3]&&''!==_0x19f0b0[_0x456dc3]['trim']()){_0xaf1438=!0x0;break;}if(!_0xb522f9(_0x480c6b[_0x456dc3],_0x55eab6[_0x456dc3])&&Object[_0x329c('0x6a')](_0x480c6b[_0x456dc3])[_0x329c('0x94')]>0x0){_0xaf1438=!0x0;break;}}_0xaf1438||(_0xaf1438=_0x163534[_0x329c('0x18')](_0xc7a3a7=>!_0x1d2190[_0x329c('0x8a')](_0xc7a3a7))),_0xaf1438&&_0x2aa93e(_0x329c('0xc'),{'editorData':_0x19f0b0,'editorRootsAttributes':_0x480c6b,'revisionData':_0xe533e1,'revisionRootsAttributes':_0x55eab6}),this[_0x329c('0x53')]['config'][_0x329c('0x5c')]('initialData',_0xe533e1),this[_0x329c('0x53')][_0x329c('0x62')][_0x329c('0x5c')](_0x329c('0xbc'),_0x55eab6);}[_0x329c('0x49')](){if(!this[_0x329c('0xa3')]){const _0x49a31f=this[_0x329c('0x53')][_0x329c('0x1d')][_0x329c('0xa')]('PendingActions');this[_0x329c('0xa3')]=_0x49a31f[_0x329c('0x26')](_0x573f70(this[_0x329c('0x53')]['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x329c('0x91')](){this[_0x329c('0xa3')]&&(this[_0x329c('0x53')][_0x329c('0x1d')][_0x329c('0xa')](_0x329c('0x65'))[_0x329c('0x80')](this['_pendingAction']),this[_0x329c('0xa3')]=null);}['_findInsertionIndex'](_0x1439c6){const _0x2b543f=this[_0x329c('0x59')][_0x329c('0xce')]();_0x2b543f[_0x329c('0xc8')]();let _0x4a92a9=0x0;for(;_0x4a92a9<_0x2b543f[_0x329c('0x94')];){const _0x483490=_0x2b543f[_0x4a92a9];if(_0x483490===this[_0x329c('0x109')]){_0x4a92a9++;continue;}if(_0x483490['id']===this[_0x329c('0x7')])break;const _0x24c06c=_0x1439c6[_0x329c('0x2a')]-_0x483490[_0x329c('0x2a')]||_0x1439c6[_0x329c('0x5f')]-_0x483490[_0x329c('0x5f')];if(_0x24c06c>0x0)break;if(_0x24c06c<0x0)_0x4a92a9++;else{if(!_0x1439c6[_0x329c('0x10')]&&_0x483490[_0x329c('0x10')])break;if(_0x483490['creator']||!_0x1439c6[_0x329c('0x10')]){if(_0x1439c6[_0x329c('0xf7')]>_0x483490['createdAt'])break;_0x4a92a9++;}else _0x4a92a9++;}}return _0x4a92a9;}[_0x329c('0x102')](_0x95549c){const _0x37569c=this[_0x329c('0x59')][_0x329c('0xe1')](_0x95549c['id']);if(_0x95549c[_0x329c('0xf7')]&&(_0x95549c['createdAt']=new Date(_0x95549c[_0x329c('0xf7')])),_0x95549c[_0x329c('0x4e')]){const _0xde62eb=this[_0x329c('0x53')][_0x329c('0x1d')][_0x329c('0xa')](_0x329c('0x5e'));_0x95549c[_0x329c('0x3f')]=_0x95549c['authorsIds']['map'](_0x284ddd=>_0xde62eb[_0x329c('0x2b')](_0x284ddd));}_0x37569c[_0x329c('0xd0')](_0x95549c,!0x0);}['buildRevisionData']({revision:_0x52cea3=null,from:_0x16374b=null,to:_0x119740=null}){_0x16374b=null!==_0x16374b?_0x16374b:_0x52cea3[_0x329c('0x5f')],_0x119740=null!==_0x119740?_0x119740:_0x52cea3[_0x329c('0x2a')];const _0x527cc8=this['_revisionDataBuilder'][_0x329c('0x51')](_0x16374b,_0x119740),_0x386025={'diffData':_0x527cc8[_0x329c('0xe2')],'authorsIds':_0x527cc8[_0x329c('0x4e')],'fromVersion':_0x16374b,'toVersion':_0x119740};if(!_0x52cea3||_0x119740!==_0x52cea3['toVersion']){const _0x1fa0d0=_0x119740-0x1,_0x22109f=this['_source'][_0x329c('0x52')][_0x329c('0x70')](_0x1fa0d0);_0x386025[_0x329c('0xf7')]=_0x22109f&&_0x22109f[_0x329c('0xf7')]||new Date();}if(this[_0x329c('0x34')]&&_0x16374b===this[_0x329c('0x34')][_0x329c('0x5f')])for(const _0x104ae8 of this[_0x329c('0x34')][_0x329c('0x3f')])_0x386025[_0x329c('0x4e')][_0x329c('0x8a')](_0x104ae8['id'])||_0x386025[_0x329c('0x4e')]['push'](_0x104ae8['id']);return _0x386025;}[_0x329c('0x4a')](_0x29ac98){if(!_0x29ac98||_0x29ac98[_0x329c('0xe2')])return Promise[_0x329c('0xe0')]();{const _0x5c7aa8=this[_0x329c('0x53')][_0x329c('0x62')]['get']('collaboration.channelId');return this['adapter'][_0x329c('0xe1')]({'channelId':_0x5c7aa8,'revisionId':_0x29ac98['id']})[_0x329c('0xec')](_0x3d0b56=>{_0x29ac98[_0x329c('0xe2')]=_0x3d0b56[_0x329c('0xe2')];});}}[_0x329c('0xd9')](_0x436da5,_0x17086d,_0x9e82a2){if(this[_0x329c('0x7b')][_0x329c('0x85')](_0x436da5)){const _0x10f227=this[_0x329c('0x7b')][_0x329c('0xa')](_0x436da5);_0x17086d=_0x9e82a2?{..._0x10f227,..._0x17086d}:{..._0x17086d,..._0x10f227};}this['_bufferedUpdates'][_0x329c('0x5c')](_0x436da5,_0x17086d);}[_0x329c('0x46')](_0x21eb57){const _0x4230be=this['repository'][_0x329c('0xce')]();_0x4230be[_0x329c('0xc8')](),_0x4230be['shift']();const _0xc36ba7=_0x4230be['find'](_0x1582a2=>_0x1582a2[_0x329c('0x2a')]<=_0x21eb57)['toVersion'];return _0xc36ba7<this[_0x329c('0x55')]?this['_startingVersion']:_0xc36ba7;}[_0x329c('0xee')](_0x1332dc){const _0x29fc0f=this[_0x329c('0x59')][_0x329c('0xe1')](this[_0x329c('0x59')][_0x329c('0x94')]-0x1);if(_0x29fc0f)this[_0x329c('0x7')]=_0x29fc0f['id'];else{const _0x5c2c84=!this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xe6')][_0x329c('0x1b')][_0x329c('0x33')](_0x54960b=>this['editor'][_0x329c('0x98')][_0x329c('0x2d')](_0x54960b)),_0x249401=this['editor'][_0x329c('0x1d')][_0x329c('0xa')](_0x329c('0x5e'))['me']['id'],_0x8faaaa=_0x573f70(this[_0x329c('0x53')]['locale'],_0x5c2c84?'Empty\x20document':_0x329c('0x39'));this['_makeRevision']({'from':_0x1332dc,'to':_0x1332dc,'id':this[_0x329c('0x7')],'name':_0x8faaaa,'creatorId':_0x249401});}}[_0x329c('0x44')](_0x58fb13){const _0x23ca8d=this[_0x329c('0x90')][_0x329c('0x95')]();this['currentRevision']=this[_0x329c('0x59')][_0x329c('0xe1')](_0x23ca8d),this[_0x329c('0x109')]||(this[_0x329c('0x109')]=this['_makeRevision']({'from':_0x58fb13,'to':_0x58fb13,'id':_0x23ca8d,'name':'','creatorId':null}));}[_0x329c('0x14')]({name:_0xc06ecc,from:_0x49fa4d,to:_0x31649d,creatorId:_0x39bca8,id:_0x53b4e8}){const _0x29a5e5=this[_0x329c('0xc9')]({'from':_0x49fa4d,'to':_0x31649d});_0x29a5e5[_0x329c('0xb6')]=_0xc06ecc,_0x29a5e5[_0x329c('0x1a')]=_0x39bca8,_0x29a5e5['id']=_0x53b4e8;const _0x3bc945=this['addRevisionData'](_0x29a5e5);return this['adapter']&&this['_bufferUpdate'](_0x29a5e5['id'],_0x29a5e5,!0x0),_0x3bc945;}[_0x329c('0xbb')](){this[_0x329c('0x53')][_0x329c('0x6')][_0x329c('0xd6')](_0x329c('0xcd'))[_0x329c('0x9f')]({'model':'revision'});}[_0x329c('0x10a')](_0x5e3564){return(_0x5e3564=_0x5e3564[_0x329c('0xd2')](_0x33decf=>!_0x33decf[_0x329c('0xb6')]||_0x329c('0x1f')!==_0x33decf[_0x329c('0xb6')]&&_0x329c('0x28')!==_0x33decf[_0x329c('0xb6')]))[_0x329c('0x50')](_0xc29fb7=>{'string'!=typeof _0xc29fb7&&(_0xc29fb7[_0x329c('0x9a')]=this['_removeRevisionMarkers'](_0xc29fb7['children']),_0xc29fb7['attributes']=_0xc29fb7[_0x329c('0x42')]['filter'](_0x4000cc=>!_0x4000cc[0x0][_0x329c('0xc6')](_0x329c('0xf0'))));}),_0x5e3564;}}function F(_0x5e73ef,_0x21a8a0){const _0x3876a2=_0x21a8a0[_0x329c('0xa9')][_0x329c('0xd8')][_0x329c('0xe6')];if(_0x329c('0xc7')==typeof _0x5e73ef)return new _0x5b422c(_0x3876a2,_0x5e73ef);{const _0x37ed8e=_0x5e73ef[_0x329c('0x9a')]['map'](_0x2b5ae6=>F(_0x2b5ae6,_0x21a8a0));return new(j[_0x5e73ef['type']]||_0x37da6a)(_0x3876a2,_0x5e73ef['name'],_0x5e73ef[_0x329c('0x42')],_0x37ed8e);}}class T{constructor(_0x2ae105){this['editor']=_0x2ae105,this[_0x329c('0x66')]=new Map(),this[_0x329c('0xb3')]=-0x1,this['_lastTo']=-0x1,this[_0x329c('0xc0')]=new Map(),this[_0x329c('0xed')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x329c('0xe5')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x329c('0xfa')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x329c('0x0')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x329c('0x8b')]=new Map(),this[_0x329c('0x36')]=0x1,this[_0x329c('0x30')]=this['editor'][_0x329c('0x98')][_0x329c('0xe6')][_0x329c('0xf5')](),this[_0x329c('0x30')][_0x329c('0x76')](_0x329c('0x87'));}[_0x329c('0x35')](_0x397bfb){this[_0x329c('0xfc')]=_0x397bfb;const _0x2bc98b=new Map(),_0xe4ccc4=new Map(),_0x239ef4=this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xe6')]['getRootNames'](!0x0);_0x239ef4[_0x329c('0x76')]('$graveyard');for(const _0x5811cb of _0x239ef4){const _0x22c975=this[_0x329c('0x53')]['model']['document'][_0x329c('0xc1')](_0x5811cb),_0x109a42=B(_0x22c975);_0x2bc98b[_0x329c('0x5c')](_0x5811cb,_0x109a42),_0xe4ccc4['set'](_0x5811cb,Object[_0x329c('0x5a')](_0x22c975[_0x329c('0xae')]()));}const _0x34dea5=Array[_0x329c('0x9')](this[_0x329c('0x53')]['model']['markers'])[_0x329c('0x25')](_0x5a2ae7=>[_0x5a2ae7[_0x329c('0xb6')],_0x5a2ae7['getRange']()]),_0x187188=this[_0x329c('0xfc')][_0x329c('0x93')];this['_saveMetaData'](_0x187188,_0x2bc98b,_0x34dea5,_0xe4ccc4),this[_0x329c('0x17')]=this['_revisionId'];const _0x361439=new Map(),_0x12ec95=new Map();for(const _0x1a6b3b of this[_0x329c('0x30')]){const _0x132819=J(_0x1a6b3b);_0x361439[_0x329c('0x5c')](_0x1a6b3b,_0x132819),_0x12ec95['set'](_0x1a6b3b,{});}this['_saveMetaData'](Number[_0x329c('0x32')],_0x361439,[],_0x12ec95);}['getData'](_0x43ec89,_0x2d2a68){if(this[_0x329c('0xb3')]===_0x43ec89&&this[_0x329c('0x2')]<=_0x2d2a68)this['_savedMetaData']['size']>0x1&&this[_0x329c('0xaa')](this[_0x329c('0x2')]),this[_0x329c('0x101')](this[_0x329c('0x2')],_0x2d2a68,!0x0);else{if(!this[_0x329c('0x66')][_0x329c('0x85')](_0x43ec89)){const _0x136491=this['_getPreviousFrom'](_0x43ec89);this[_0x329c('0x45')](_0x136491,_0x43ec89,!0x1);}this['_calculateMetaData'](_0x43ec89,_0x2d2a68,!0x0);}return this['_lastFrom']=_0x43ec89,this[_0x329c('0x2')]=_0x2d2a68,this['_getState']();}['loadState'](_0x12ff0b){this[_0x329c('0x9c')](),this[_0x329c('0xb3')]=_0x12ff0b[_0x329c('0x5f')],this[_0x329c('0x2')]=_0x12ff0b[_0x329c('0x2a')];for(const _0x2f6f4c in _0x12ff0b['diffData']){const _0x3ab911=_0x12ff0b[_0x329c('0xe2')][_0x2f6f4c][_0x329c('0x7c')],_0x565b94=_0x45e264(_0x12ff0b[_0x329c('0xe2')][_0x2f6f4c][_0x329c('0x3b')])||{},_0x2b7401=this['_makeModelFromViewString'](_0x12ff0b[_0x329c('0xe2')][_0x2f6f4c][_0x329c('0x8d')]);_0x2b7401[_0x329c('0xf2')]=_0x2f6f4c,_0x2b7401[_0x329c('0xa5')]=!_0x3ab911||!_0x3ab911[_0x329c('0xb5')],_0x2b7401[_0x329c('0xb5')]=()=>_0x2b7401[_0x329c('0xa5')],this[_0x329c('0xe5')][_0x329c('0x5c')](_0x2f6f4c,_0x2b7401),this[_0x329c('0xff')][_0x329c('0x5c')](_0x2f6f4c,_0x565b94),_0x3ab911&&this['_touchedRoots'][_0x329c('0x5c')](_0x2f6f4c,_0x3ab911);const _0x739818=this[_0x329c('0x48')](_0x2b7401);this['_baseIdsRoots'][_0x329c('0x5c')](_0x2f6f4c,_0x739818);for(const [_0xcaacfb,_0x58c9b2]of _0x2b7401[_0x329c('0x97')]){if(!_0xcaacfb['startsWith'](_0x329c('0x3c')))continue;const _0x4b72c0=_0xcaacfb['split'](':')[0x2];for(const _0x1612ec of _0x58c9b2['getWalker']({'singleCharacters':!0x0})){const _0x357081=this[_0x329c('0x4f')](_0x1612ec),_0x22617b=_0x329c('0x100')==_0x1612ec['type']?_0x1612ec[_0x329c('0xd1')][_0x329c('0x16')][_0x329c('0xab')](0x0,-0x1):_0x1612ec[_0x329c('0xd1')][_0x329c('0x16')],_0x3cf471=_0x739818[_0x329c('0x15')](_0x22617b)['getAttribute'](_0x357081);this[_0x329c('0x0')][_0x329c('0x5c')](_0x3cf471,{'userId':_0x4b72c0});}}}this[_0x329c('0x17')]=this[_0x329c('0x36')];const _0x3f86fc=[...Array(this['_revisionId'])[_0x329c('0x6a')]()][_0x329c('0xab')](0x1)[_0x329c('0xd2')](_0xc22462=>!this[_0x329c('0x0')]['has'](_0xc22462));let _0x4e2af9=0x0;const _0x165b3f=new Map();for(const _0x5d6844 in _0x12ff0b[_0x329c('0xe2')]){const _0x5d76fa=_0x12ff0b[_0x329c('0xe2')][_0x5d6844][_0x329c('0x7c')],_0x5c157a=_0x45e264(_0x12ff0b['diffData'][_0x5d6844][_0x329c('0x8')])||{},_0x2171ee=this[_0x329c('0xbf')](_0x12ff0b[_0x329c('0xe2')][_0x5d6844]['insertions']);_0x2171ee[_0x329c('0xf2')]=_0x5d6844,_0x2171ee[_0x329c('0xa5')]=!_0x5d76fa||_0x5d76fa[_0x329c('0xb5')],_0x2171ee['isAttached']=()=>_0x2171ee[_0x329c('0xa5')],this[_0x329c('0xed')][_0x329c('0x5c')](_0x5d6844,_0x2171ee),this['_diffRootsAttributes'][_0x329c('0x5c')](_0x5d6844,_0x5c157a);const _0xe0955b=this[_0x329c('0x48')](_0x2171ee,Number[_0x329c('0x32')]);this[_0x329c('0xfa')][_0x329c('0x5c')](_0x5d6844,_0xe0955b),_0x165b3f[_0x329c('0x5c')](_0x5d6844,_0x2171ee[_0x329c('0xb5')]()?_0x5c157a:{});for(const [_0x51af4d,_0x64b5fe]of _0x2171ee[_0x329c('0x97')]){if(!_0x51af4d[_0x329c('0xc6')]('revision:'))continue;const _0x5a64b0=_0x51af4d['split'](':')[0x2];for(const _0x5ba466 of _0x64b5fe[_0x329c('0xe8')]({'singleCharacters':!0x0})){const _0x4f6269=this[_0x329c('0x4f')](_0x5ba466),_0x5c114d=this[_0x329c('0x36')]++,_0xb5ab47='elementEnd'==_0x5ba466['type']?_0x5ba466[_0x329c('0xd1')][_0x329c('0x16')]['slice'](0x0,-0x1):_0x5ba466[_0x329c('0xd1')][_0x329c('0x16')];_0xe0955b[_0x329c('0x15')](_0xb5ab47)[_0x329c('0x103')](_0x4f6269,_0x5c114d),this[_0x329c('0x0')]['set'](_0x5c114d,{'userId':_0x5a64b0});}}for(const _0x50fd27 of this[_0x329c('0x53')]['model'][_0x329c('0xa0')](_0x2171ee)[_0x329c('0xe8')]({'singleCharacters':!0x0})){const _0x687af5=this['_getVidAttributeName'](_0x50fd27),_0x216260=_0x329c('0x100')==_0x50fd27[_0x329c('0x79')]?_0x50fd27[_0x329c('0xd1')][_0x329c('0x16')]['slice'](0x0,-0x1):_0x50fd27['previousPosition'][_0x329c('0x16')],_0x2d5f87=_0xe0955b[_0x329c('0x15')](_0x216260);_0x2d5f87[_0x329c('0xdc')](_0x687af5)>0x0||_0x2d5f87['_setAttribute'](_0x687af5,_0x3f86fc[_0x4e2af9++]);}for(const [_0x51a815,_0x3c66c5]of _0x2171ee[_0x329c('0x97')])_0x51a815[_0x329c('0xc6')](_0x329c('0x3c'))||this[_0x329c('0xc0')][_0x329c('0x5c')](_0x51a815,_0x3c66c5);}const _0x20de89=J(_0x329c('0x87'));this[_0x329c('0xe5')]['set'](_0x329c('0x87'),_0x20de89),this[_0x329c('0xba')][_0x329c('0x5c')]('$graveyard',this[_0x329c('0x48')](_0x20de89,0x1));const _0xcaeff=J(_0x329c('0x87'));this[_0x329c('0xed')]['set'](_0x329c('0x87'),_0xcaeff),this[_0x329c('0xfa')][_0x329c('0x5c')](_0x329c('0x87'),this[_0x329c('0x48')](_0xcaeff,0x1));const _0x3cd5a7=Array['from'](this[_0x329c('0xed')])['map'](([_0xb49d02,_0x4813da])=>[_0xb49d02,B(_0x4813da)]);this[_0x329c('0xc3')](this[_0x329c('0x2')],_0x3cd5a7,this[_0x329c('0xc0')],_0x165b3f);}[_0x329c('0xbf')](_0x47e6cb){const _0x2d0aeb=JSON[_0x329c('0xb4')](_0x47e6cb),_0xd502a8=this[_0x329c('0x53')][_0x329c('0xa9')][_0x329c('0xd8')][_0x329c('0xe6')],_0x1768c0=new _0x4fcb82(_0xd502a8,_0x2d0aeb[_0x329c('0x25')](_0x1093a7=>F(_0x1093a7,this['editor'])));return this[_0x329c('0x53')][_0x329c('0x96')][_0x329c('0x4d')](_0x1768c0);}[_0x329c('0xc3')](_0x372a3b,_0x49e14b,_0x1ed2b2,_0x2cd0f8){const _0x163dea=new Map(_0x49e14b),_0x35a406=new Map(_0x45e264(_0x2cd0f8)),_0x3a56d3=new Map();for(const [_0x2a5f42,_0x220d7a]of _0x1ed2b2)_0x3a56d3['set'](_0x2a5f42,{'start':_0x220d7a['start'][_0x329c('0xad')](),'end':_0x220d7a[_0x329c('0xb7')][_0x329c('0xad')](),'rootName':_0x220d7a[_0x329c('0x19')][_0x329c('0xf2')]});this[_0x329c('0x66')][_0x329c('0x5c')](_0x372a3b,{'roots':_0x163dea,'markers':_0x3a56d3,'rootsAttributes':_0x35a406});}[_0x329c('0xaa')](_0x5c653f){this['_savedMetaData'][_0x329c('0x78')](_0x5c653f);}[_0x329c('0xf1')](){this[_0x329c('0x9c')](),this[_0x329c('0xb3')]=-0x1,this[_0x329c('0x2')]=-0x1,this[_0x329c('0x66')][_0x329c('0xdb')](),this[_0x329c('0x35')](this[_0x329c('0xfc')]);}['_reset'](){this['_touched']['clear'](),this[_0x329c('0x10b')]['clear'](),this[_0x329c('0x8b')][_0x329c('0xdb')](),this[_0x329c('0xed')]['clear'](),this['_diffRootsAttributes'][_0x329c('0xdb')](),this[_0x329c('0xe5')][_0x329c('0xdb')](),this[_0x329c('0xff')][_0x329c('0xdb')](),this[_0x329c('0xfa')]['clear'](),this[_0x329c('0xba')][_0x329c('0xdb')](),this[_0x329c('0xc0')][_0x329c('0xdb')](),this[_0x329c('0x36')]=0x1,this['_startingRevisionId']=this['_revisionId'];}[_0x329c('0x48')](_0x4ffcf3,_0x52001a=null){let _0x81feed=null;_0x4ffcf3['is'](_0x329c('0x7d'))||(_0x81feed=new _0x48a53c(_0x4ffcf3[_0x329c('0xb6')],{'vid_start':null===_0x52001a?this[_0x329c('0x36')]++:_0x52001a++}));const _0x7c18b=[];for(const _0x14a60f of _0x4ffcf3[_0x329c('0x68')]())if(_0x14a60f['is'](_0x329c('0x82'))){_0x7c18b['push'](this[_0x329c('0x48')](_0x14a60f,_0x52001a));const _0x39d11a=_0x7c18b[_0x7c18b[_0x329c('0x94')]-0x1];null!==_0x52001a&&(_0x52001a=_0x39d11a['is'](_0x329c('0x82'),_0x329c('0x12'))?_0x39d11a[_0x329c('0xdc')](_0x329c('0xfd'))+0x1:_0x39d11a[_0x329c('0xdc')](_0x329c('0x31'))+0x1);}else for(let _0x2d1b10=0x0;_0x2d1b10<_0x14a60f['offsetSize'];_0x2d1b10++)_0x7c18b[_0x329c('0x76')](new _0x48a53c(_0x329c('0x12'),{'vid':null===_0x52001a?this[_0x329c('0x36')]++:_0x52001a++}));if(_0x4ffcf3['is'](_0x329c('0x7d'))){const _0x21526b=J(_0x4ffcf3[_0x329c('0xf2')]);return _0x21526b[_0x329c('0x7e')](0x0,_0x7c18b),_0x21526b;}return _0x81feed[_0x329c('0x103')](_0x329c('0x31'),null===_0x52001a?this[_0x329c('0x36')]++:_0x52001a++),_0x81feed[_0x329c('0x7e')](0x0,_0x7c18b),_0x81feed;}[_0x329c('0x45')](_0x59215d,_0x696f99,_0xac37cb){this[_0x329c('0x9c')]();const {roots:_0x1b6c9a,markers:_0x390f4e,rootsAttributes:_0x154651}=this[_0x329c('0x66')][_0x329c('0xa')](_0x59215d);this[_0x329c('0xe5')]=new Map(_0x1b6c9a),this[_0x329c('0xff')]=new Map(_0x45e264(_0x154651));for(const [_0x1747b2,_0x4eb81a]of this[_0x329c('0xe5')])if(_0x329c('0x87')!==_0x1747b2&&(this[_0x329c('0xed')]['set'](_0x1747b2,B(_0x4eb81a)),this[_0x329c('0xb2')]=new Map(_0x45e264(_0x154651)),_0xac37cb)){const _0x4b11c9=this[_0x329c('0x36')];this[_0x329c('0xfa')][_0x329c('0x5c')](_0x1747b2,this[_0x329c('0x48')](_0x4eb81a)),this['_baseIdsRoots'][_0x329c('0x5c')](_0x1747b2,this[_0x329c('0x48')](_0x4eb81a,_0x4b11c9));}this[_0x329c('0x17')]=this['_revisionId'],this['_diffRoots'][_0x329c('0x5c')](_0x329c('0x87'),B(this[_0x329c('0xe5')][_0x329c('0xa')]('$graveyard'))),_0xac37cb&&this[_0x329c('0xfa')]['set'](_0x329c('0x87'),this['_makeIdsRoot'](this[_0x329c('0xe5')][_0x329c('0xa')]('$graveyard')));for(const [_0x3bd48e,_0x5ebcf3]of _0x390f4e){const _0x23e178=this['_baseRoots'][_0x329c('0xa')](_0x5ebcf3[_0x329c('0xf2')]),_0x16abc7=this[_0x329c('0xed')]['get'](_0x5ebcf3['rootName']),_0x2172a4=new _0x60a973(this[_0x329c('0xb1')](_0x5ebcf3[_0x329c('0xa4')],_0x23e178),this[_0x329c('0xb1')](_0x5ebcf3[_0x329c('0xb7')],_0x23e178)),_0x2c56f5=this['_fixRange'](_0x2172a4,_0x16abc7);_0x23e178[_0x329c('0x97')][_0x329c('0x5c')](_0x3bd48e,_0x2172a4),this[_0x329c('0xc0')][_0x329c('0x5c')](_0x3bd48e,_0x2c56f5);}this['_applyOperations'](_0x59215d,_0x696f99,_0xac37cb);}[_0x329c('0x101')](_0x2613a9,_0x4d974b,_0x484b9f){for(const _0x46b2fc of this['source'][_0x329c('0x58')](_0x2613a9,_0x4d974b))this['_handleOperation'](_0x46b2fc,_0x484b9f);for(const _0x3632b8 of this[_0x329c('0xed')][_0x329c('0x29')]())_0x3632b8[_0x329c('0x97')][_0x329c('0xdb')]();for(const [_0x494b92,_0x433663]of this[_0x329c('0xc0')]){this[_0x329c('0xed')][_0x329c('0xa')](_0x433663[_0x329c('0x19')][_0x329c('0xf2')])['markers'][_0x329c('0x5c')](_0x494b92,_0x433663['clone']());}const _0x138846=new Map(),_0x3a0df8=new Map();for(const [_0x2869e3,_0x4a944c]of this['_diffRoots'])_0x138846[_0x329c('0x5c')](_0x2869e3,B(_0x4a944c)),_0x3a0df8[_0x329c('0x5c')](_0x2869e3,this[_0x329c('0xb2')]['get'](_0x2869e3));this[_0x329c('0xc3')](_0x4d974b,_0x138846,this[_0x329c('0xc0')],_0x3a0df8);}[_0x329c('0x9b')](_0x1b0a79){const _0x1f73a6=Array[_0x329c('0x9')](this[_0x329c('0x66')][_0x329c('0x6a')]());_0x1f73a6[_0x329c('0xea')]((_0x7dc89,_0x52ba8e)=>_0x7dc89-_0x52ba8e),_0x1f73a6[_0x329c('0xc8')]();for(const _0x11325f of _0x1f73a6)if(_0x11325f<_0x1b0a79)return _0x11325f;return Number[_0x329c('0x32')];}['_copyMarkers'](_0x77a810,_0x53feb2){const _0x104d44=Array[_0x329c('0x9')](_0x53feb2['markers'])[_0x329c('0x25')](([_0x57bc78,_0x39cc4a])=>[_0x57bc78,this[_0x329c('0xbd')](_0x39cc4a,_0x77a810)]);_0x77a810[_0x329c('0x97')]=new Map(_0x104d44);}[_0x329c('0x72')](_0x5eb941){for(const _0x1f321e of this[_0x329c('0xc0')][_0x329c('0x29')]()){const _0x1ac057=_0x1f321e[_0x329c('0x92')](_0x5eb941),_0x4283ec=_0x60a973[_0x329c('0x73')](_0x1ac057);_0x1f321e[_0x329c('0xa4')]=_0x4283ec[_0x329c('0xa4')],_0x1f321e['end']=_0x4283ec[_0x329c('0xb7')];}}[_0x329c('0x63')](_0x579fe0,_0x3b5b01){if(_0x329c('0x6d')==_0x579fe0[_0x329c('0x79')]||_0x329c('0xf6')==_0x579fe0[_0x329c('0x79')])return void this[_0x329c('0x88')](_0x579fe0,_0x3b5b01);if(_0x329c('0xa8')==_0x579fe0[_0x329c('0x79')]){const _0x1692da=_0x579fe0[_0x329c('0x23')]['root'][_0x329c('0xf2')];this[_0x329c('0xed')]['has'](_0x1692da)||(this[_0x329c('0xed')]['set'](_0x1692da,J(_0x1692da,!0x0)),this[_0x329c('0xb2')][_0x329c('0x5c')](_0x1692da,{}),_0x3b5b01&&this['_idsRoots']['set'](_0x1692da,J(_0x1692da,!0x0)));}if(_0x329c('0xd4')==_0x579fe0[_0x329c('0x79')]||_0x329c('0x11')==_0x579fe0['type']||_0x329c('0x6e')==_0x579fe0[_0x329c('0x79')])return void this[_0x329c('0xcf')](_0x579fe0);const _0x8950cf=this[_0x329c('0xeb')](_0x579fe0,this['_diffRoots']);if(_0x329c('0xc2')!==_0x579fe0[_0x329c('0x79')]&&(_0x8950cf[_0x329c('0xf4')](),this[_0x329c('0x72')](_0x8950cf)),_0x3b5b01)switch(_0x8950cf[_0x329c('0x79')]){case'insert':this[_0x329c('0xdf')](_0x579fe0);break;case'move':case _0x329c('0x80'):case _0x329c('0x84'):this['_handleMoveOperation'](_0x579fe0);break;case _0x329c('0xb8'):this[_0x329c('0xf')](_0x579fe0);break;case _0x329c('0x75'):this['_handleSplitOperation'](_0x579fe0);break;case _0x329c('0xc2'):this[_0x329c('0x20')](_0x579fe0);}}[_0x329c('0xeb')](_0x397729,_0xc50bf1){const _0x210eda=_0x397729[_0x329c('0xad')]();return _0x210eda['_authorId']=_0x397729[_0x329c('0xd')],this['_fixOperation'](_0x210eda,_0xc50bf1),_0x210eda;}[_0x329c('0x106')](_0x492a6b){return _0x492a6b['map'](_0xfd310c=>{const _0xb187bb=this[_0x329c('0x4f')](_0xfd310c);return Number(_0xfd310c['item'][_0x329c('0xdc')](_0xb187bb));});}['_generateTape'](_0x1afd7a,_0x4c97f2){if(_0x1afd7a['is'](_0x329c('0x82'),_0x329c('0x12')))_0x4c97f2[_0x329c('0x76')]({'item':_0x1afd7a,'type':'text'});else{_0x1afd7a['is']('element')&&_0x4c97f2['push']({'item':_0x1afd7a,'type':_0x329c('0x108')});for(const _0xe51a03 of _0x1afd7a[_0x329c('0x68')]())this['_generateTape'](_0xe51a03,_0x4c97f2);_0x1afd7a['is'](_0x329c('0x82'))&&_0x4c97f2['push']({'item':_0x1afd7a,'type':_0x329c('0x100')});}return _0x4c97f2;}[_0x329c('0xfb')](){const _0x5c7795=new Map(this['_touched']),_0x2b4f40=new Map(_0x5c7795),_0x46e516=new Map(),_0x34ec91={'insertions':{},'deletions':{}},_0x49214e={'insertions':{},'deletions':{}},_0xc54a7c=new Map(),_0x1d7137=new Set([...this['_baseRoots'][_0x329c('0x6a')](),...this[_0x329c('0xed')][_0x329c('0x6a')]()]);_0x1d7137[_0x329c('0x78')](_0x329c('0x87'));for(const _0x1a655e of _0x1d7137){const _0x2b1100=this['_diffRoots']['get'](_0x1a655e)||J(_0x1a655e,!0x1),_0x34cac6=this[_0x329c('0xe5')][_0x329c('0xa')](_0x1a655e)||J(_0x1a655e,!0x1);_0x2b1100[_0x329c('0xb5')]()||_0x34cac6[_0x329c('0xb5')]()?(_0x34ec91[_0x329c('0x7a')][_0x1a655e]=B(_0x2b1100),_0x34ec91[_0x329c('0x8d')][_0x1a655e]=B(_0x34cac6),this[_0x329c('0x105')](_0x34ec91[_0x329c('0x8d')][_0x1a655e],_0x34cac6),this[_0x329c('0x105')](_0x34ec91[_0x329c('0x7a')][_0x1a655e],_0x2b1100),_0x49214e[_0x329c('0x7a')][_0x1a655e]=this['_generateTape'](this[_0x329c('0xfa')][_0x329c('0xa')](_0x1a655e),[]),_0x49214e['deletions'][_0x1a655e]=this[_0x329c('0x9e')](this[_0x329c('0xba')][_0x329c('0xa')](_0x1a655e)||J(_0x1a655e,!0x1),[])):_0x1d7137['delete'](_0x1a655e);}for(const _0x30cb6e of _0x1d7137){const _0x524c31=_0x49214e[_0x329c('0x7a')][_0x30cb6e];for(const _0x57e01a of _0x524c31){const _0x379ae1=this[_0x329c('0x4f')](_0x57e01a),_0x68b47e=_0x57e01a[_0x329c('0xc4')][_0x329c('0xdc')](_0x379ae1);_0x2b4f40[_0x329c('0x78')](_0x68b47e),_0x68b47e>=this[_0x329c('0x17')]&&_0x46e516[_0x329c('0x5c')](_0x68b47e,_0x5c7795[_0x329c('0xa')](_0x68b47e));}}for(const _0x11fede of _0x1d7137){const _0xbf741f=_0x49214e['insertions'][_0x11fede],_0x33542e=this[_0x329c('0x106')](_0x49214e[_0x329c('0x8d')][_0x11fede]);let _0x31b4b4=0x0;for(const _0x459c45 of _0xbf741f){const _0x126c76=this[_0x329c('0x4f')](_0x459c45),_0x23654e=_0x459c45['item'][_0x329c('0xdc')](_0x126c76);if(!_0x46e516[_0x329c('0x85')](_0x23654e)&&!_0xc54a7c[_0x329c('0x85')](_0x23654e)){if(_0x2b4f40[_0x329c('0x85')](_0x23654e))_0x31b4b4++;else{if(_0x23654e!=_0x33542e[_0x31b4b4]){const _0x489123=_0x5c7795[_0x329c('0xa')](_0x23654e)||_0x5c7795[_0x329c('0xa')](_0x33542e[_0x31b4b4]);for(;_0x23654e!=_0x33542e[_0x31b4b4];)_0x2b4f40[_0x329c('0x85')](_0x33542e[_0x31b4b4])||(_0xc54a7c['set'](_0x33542e[_0x31b4b4],_0x489123),_0x5c7795[_0x329c('0x5c')](_0x33542e[_0x31b4b4],_0x489123)),_0x31b4b4++;}_0x31b4b4++;}}}}for(const _0x57a745 of _0x1d7137){const _0x49657d=_0x49214e['insertions'][_0x57a745];for(const _0x360665 of _0x49657d){const _0x524ffe=this[_0x329c('0x4f')](_0x360665),_0x3bffb0=_0x360665[_0x329c('0xc4')]['getAttribute'](_0x524ffe);if(_0xc54a7c[_0x329c('0x85')](_0x3bffb0)){const _0x37409c=_0xc54a7c[_0x329c('0xa')](_0x3bffb0);_0x2b4f40[_0x329c('0x85')](_0x3bffb0)||_0x2b4f40[_0x329c('0x5c')](_0x3bffb0,{..._0x37409c}),_0x46e516['set'](_0x3bffb0,{..._0x37409c});}}}for(const _0x766dd7 of _0x2b4f40[_0x329c('0x6a')]())_0x766dd7>=this[_0x329c('0x17')]&&_0x2b4f40[_0x329c('0x78')](_0x766dd7);const _0x3c336d=new Map();for(const _0x2b17a0 of _0x1d7137){let _0x58780c=_0x49214e[_0x329c('0x7a')][_0x2b17a0];for(const _0x5e1aae of _0x58780c)if(_0x5e1aae['item']['is']('element','tableCell')){const _0x5e1ac8=this[_0x329c('0x4f')](_0x5e1aae),_0x20f4b8=_0x5e1aae[_0x329c('0xc4')][_0x329c('0xdc')](_0x5e1ac8);if(_0x46e516[_0x329c('0x85')](_0x20f4b8)){const _0x39dbb1=_0x5e1aae[_0x329c('0xc4')][_0x329c('0x4')][_0x329c('0x4')][_0x329c('0xdc')](_0x329c('0x5b')),_0x3e043f=_0x3c336d['get'](_0x39dbb1)||new Set();_0x3e043f[_0x329c('0x26')](_0x46e516[_0x329c('0xa')](_0x20f4b8)[_0x329c('0xd3')]),_0x3c336d['set'](_0x39dbb1,_0x3e043f);}}_0x58780c=_0x49214e[_0x329c('0x8d')][_0x2b17a0];for(const _0x3b0a90 of _0x58780c)if(_0x3b0a90['item']['is'](_0x329c('0x82'),'tableCell')){const _0x4509cc=this[_0x329c('0x4f')](_0x3b0a90),_0x35ef4c=_0x3b0a90[_0x329c('0xc4')]['getAttribute'](_0x4509cc);if(_0x2b4f40[_0x329c('0x85')](_0x35ef4c)){const _0x459641=_0x3b0a90[_0x329c('0xc4')][_0x329c('0x4')]['parent'][_0x329c('0xdc')]('vid_start'),_0x322b30=_0x3c336d[_0x329c('0xa')](_0x459641)||new Set();_0x322b30[_0x329c('0x26')](_0x2b4f40[_0x329c('0xa')](_0x35ef4c)[_0x329c('0xd3')]),_0x3c336d[_0x329c('0x5c')](_0x459641,_0x322b30);}}for(const _0x59e331 of _0x3c336d[_0x329c('0x6a')]())(_0x46e516['has'](_0x59e331)||_0x2b4f40[_0x329c('0x85')](_0x59e331))&&_0x3c336d[_0x329c('0x78')](_0x59e331);}for(const _0x270568 of _0x1d7137){const _0x18068d=_0x49214e[_0x329c('0x7a')][_0x270568];let _0x2e89ca=null,_0x143fb7=null;for(const _0x1824e0 of _0x18068d){const _0x110fad=this['_getVidAttributeName'](_0x1824e0),_0x5f214f=_0x1824e0[_0x329c('0xc4')][_0x329c('0xdc')](_0x110fad),_0xc89377=_0x3c336d['get'](_0x5f214f);_0xc89377&&_0x329c('0x108')==_0x1824e0['type']&&(_0x2e89ca=Array['from'](_0xc89377)[0x0],_0x143fb7=_0x1824e0[_0x329c('0xc4')]['getAttribute'](_0x329c('0x31'))),_0x2e89ca&&(_0x2b4f40[_0x329c('0x5c')](_0x5f214f,{'userId':_0x2e89ca}),_0x46e516[_0x329c('0x5c')](_0x5f214f,{'userId':_0x2e89ca})),_0x5f214f==_0x143fb7&&(_0x2e89ca=null,_0x143fb7=null);}}const _0x19b44b={},_0x50e224=new Set();for(const _0x4549a7 of _0x1d7137){const _0x270af1=_0x34ec91['deletions'][_0x4549a7],_0x9f0048=_0x34ec91[_0x329c('0x7a')][_0x4549a7];for(const {userId:_0x3cb5f6}of this[_0x329c('0x10b')]['values']())null!==_0x3cb5f6&&_0x50e224[_0x329c('0x26')](_0x3cb5f6);for(const {userId:_0x5b9d22}of this[_0x329c('0x8b')][_0x329c('0x29')]())null!==_0x5b9d22&&_0x50e224[_0x329c('0x26')](_0x5b9d22);this[_0x329c('0x1c')](_0x9f0048,_0x49214e[_0x329c('0x7a')][_0x4549a7],_0x46e516,_0x329c('0xa6'),_0x50e224),this[_0x329c('0x1c')](_0x270af1,_0x49214e[_0x329c('0x8d')][_0x4549a7],_0x2b4f40,_0x329c('0x3e'),_0x50e224),_0x19b44b[_0x4549a7]={'insertions':this['_prepareViewToSave'](_0x9f0048),'deletions':this[_0x329c('0x77')](_0x270af1),'attachChange':this['_touchedRoots'][_0x329c('0xa')](_0x4549a7)||null,'attributesBefore':_0x45e264(this[_0x329c('0xff')][_0x329c('0xa')](_0x4549a7))||{},'attributesAfter':_0x45e264(this['_diffRootsAttributes'][_0x329c('0xa')](_0x4549a7))};}return{'diffData':_0x19b44b,'authorsIds':Array['from'](_0x50e224)};}[_0x329c('0xcc')](_0x1617f6){for(const [,_0x5ad3f9]of _0x1617f6[_0x329c('0x97')]){const _0xec1f68=_0x5ad3f9[_0x329c('0xa4')][_0x329c('0xd7')]()[_0x329c('0xd2')](_0x4d8436=>_0x329c('0x6f')==_0x4d8436[_0x329c('0xb6')]);for(const _0x314f99 of _0xec1f68)0x1==_0x314f99[_0x329c('0xf9')]&&_0x314f99[_0x329c('0xf3')](0x0)['is']('element',_0x329c('0x6b'))&&_0x314f99[_0x329c('0xf3')](0x0)['_setAttribute'](_0x329c('0xde'),!0x0);}}[_0x329c('0x77')](_0x232066){this[_0x329c('0xcc')](_0x232066);const _0x4bc55c=this[_0x329c('0x53')][_0x329c('0x96')][_0x329c('0x83')](_0x232066,{}),_0x2b24d9=Array['from'](_0x4bc55c[_0x329c('0x68')]())['map'](_0x5a1e6b=>this[_0x329c('0x8c')](_0x5a1e6b));return JSON['stringify'](_0x2b24d9);}['_getViewJson'](_0x4a9948){if(_0x4a9948['is'](_0x329c('0x12')))return _0x4a9948[_0x329c('0x96')];{const _0x3de209=_0x4a9948;return{'type':Object[_0x329c('0x6a')](j)[_0x329c('0x33')](_0x40fc8b=>_0x4a9948 instanceof j[_0x40fc8b]),'name':_0x3de209[_0x329c('0xb6')],'attributes':Array[_0x329c('0x9')](_0x3de209['getAttributes']()),'children':Array['from'](_0x3de209[_0x329c('0x68')]())[_0x329c('0x25')](_0x28d6a0=>this[_0x329c('0x8c')](_0x28d6a0))};}}['_markChanges'](_0x2f1795,_0x15d7cf,_0x1fe3ee,_0x81f58f,_0x1fc717){let _0x358a6e=null,_0x1cb087=null,_0x2373dc=0x0;const _0x533bcd=this[_0x329c('0x53')][_0x329c('0x98')];for(let _0x4a7982=0x0;_0x4a7982<_0x15d7cf[_0x329c('0x94')];_0x4a7982++){const _0x28ac9a=this['_getVidAttributeName'](_0x15d7cf[_0x4a7982]),_0x5c0832=_0x15d7cf[_0x4a7982][_0x329c('0xc4')][_0x329c('0xdc')](_0x28ac9a),_0x204909=_0x1fe3ee[_0x329c('0xa')](_0x5c0832),_0x314c25=_0x4a7982==_0x15d7cf['length']-0x1;(!_0x358a6e&&_0x204909&&(_0x358a6e=_0x204909,_0x1cb087=_0x15d7cf[_0x4a7982]),_0x358a6e&&(!_0x204909||_0x204909[_0x329c('0xd3')]!=_0x358a6e[_0x329c('0xd3')]))&&(_0x190d01(_0x204909,H(_0x1cb087,_0x2f1795,_0x533bcd),H(_0x15d7cf[_0x4a7982],_0x2f1795,_0x533bcd)),_0x358a6e=_0x204909||null,_0x1cb087=_0x204909?_0x15d7cf[_0x4a7982]:null),_0x358a6e&&_0x314c25&&_0x190d01(_0x204909,H(_0x1cb087,_0x2f1795,_0x533bcd),q(_0x15d7cf[_0x4a7982],_0x2f1795,_0x533bcd));}function _0x190d01(_0xdd183f,_0x395a8b,_0x10b1ef){const _0xdd04ed=_0x358a6e[_0x329c('0xd3')],_0x3b9a67=_0x329c('0x3c')+_0x81f58f+':'+_0xdd04ed+':'+_0x2373dc++,_0x40db84=_0x533bcd[_0x329c('0x74')](_0x395a8b,_0x10b1ef);_0x2f1795[_0x329c('0x97')][_0x329c('0x5c')](_0x3b9a67,_0x40db84),null!==_0xdd04ed&&_0x1fc717['add'](_0xdd04ed);}}['_getVidAttributeName'](_0x1affb8){switch(_0x1affb8[_0x329c('0x79')]){case _0x329c('0x108'):return _0x329c('0x5b');case _0x329c('0x100'):return _0x329c('0x31');default:return _0x329c('0xfd');}}[_0x329c('0x107')](_0x287266,_0x4662c3){_0x287266[_0x329c('0x3a')]=null;for(const _0xe36f7f in _0x287266){const _0x49ad31=_0x287266[_0xe36f7f];if(_0x49ad31 instanceof _0x12f2d2){const _0x53be32=_0x4662c3[_0x329c('0xa')](_0x49ad31[_0x329c('0x19')]['rootName']);_0x287266[_0xe36f7f]=this[_0x329c('0xb1')](_0x49ad31,_0x53be32);}if(_0x49ad31 instanceof _0x60a973){const _0x500880=_0x4662c3[_0x329c('0xa')](_0x49ad31[_0x329c('0x19')]['rootName']);_0x287266[_0xe36f7f]=this[_0x329c('0xbd')](_0x49ad31,_0x500880);}'root'===_0xe36f7f&&(_0x287266[_0x329c('0x19')]=_0x4662c3['get'](_0x287266[_0x329c('0x19')]['rootName']));}}[_0x329c('0xbd')](_0x42f21b,_0xdd3f57){return this[_0x329c('0x53')]['model'][_0x329c('0x74')](this[_0x329c('0xb1')](_0x42f21b[_0x329c('0xa4')],_0xdd3f57),this[_0x329c('0xb1')](_0x42f21b[_0x329c('0xb7')],_0xdd3f57));}[_0x329c('0xb1')](_0x22bb68,_0x30243c){return this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xb9')](_0x30243c,_0x22bb68[_0x329c('0x16')],_0x22bb68[_0x329c('0xc5')]);}[_0x329c('0xdf')](_0x28abcf){const _0x5d4392=this[_0x329c('0xfa')][_0x329c('0xa')](_0x28abcf[_0x329c('0x23')][_0x329c('0x19')][_0x329c('0xf2')]),_0x44b30a=this[_0x329c('0xb1')](_0x28abcf['position'],_0x5d4392),_0xc57edb=null===_0x28abcf[_0x329c('0xd')]?null:_0x28abcf['_authorId']||this[_0x329c('0x53')]['plugins']['get']('Users')['me']['id'],_0x51110b=_0x44b30a[_0x329c('0x4')],_0x3aac5a=this[_0x329c('0x36')],_0x152f6a=[];for(const _0x38dbd7 of _0x28abcf[_0x329c('0x40')])if(_0x38dbd7['is'](_0x329c('0x82')))_0x152f6a[_0x329c('0x76')](this['_makeIdsRoot'](_0x38dbd7));else for(let _0x30b01a=0x0;_0x30b01a<_0x38dbd7[_0x329c('0x4c')];_0x30b01a++)_0x152f6a['push'](new _0x48a53c(_0x329c('0x12'),{'vid':this[_0x329c('0x36')]++}));const _0x36df05=this[_0x329c('0x36')];for(let _0x2b2de3=_0x3aac5a;_0x2b2de3<_0x36df05;_0x2b2de3++)this[_0x329c('0x0')][_0x329c('0x5c')](_0x2b2de3,{'userId':_0xc57edb});_0x51110b[_0x329c('0x7e')](_0x44b30a[_0x329c('0x57')],_0x152f6a);}[_0x329c('0x37')](_0x4ac22a){(_0x4ac22a=this[_0x329c('0xeb')](_0x4ac22a,this['_idsRoots']))[_0x329c('0xf4')]();const _0x32b62c=null===_0x4ac22a[_0x329c('0xd')]?null:_0x4ac22a['_authorId']||this['editor']['plugins'][_0x329c('0xa')](_0x329c('0x5e'))['me']['id'],_0x4d4199=_0x4ac22a['getMovedRangeStart'](),_0x42c36a=_0x4d4199[_0x329c('0x4')],_0x20f1ec=_0x4d4199[_0x329c('0x57')];!function _0x2c68c6(_0x52e81f,_0x3d0a13,_0x2e63d1,_0x2c7cbe){for(let _0xa75097=_0x2e63d1;_0xa75097<_0x2c7cbe;_0xa75097++){const _0x1bddd4=_0x3d0a13[_0x329c('0xf3')](_0xa75097);_0x1bddd4['is'](_0x329c('0x82'),'$text')?_0x52e81f[_0x329c('0x5c')](_0x1bddd4[_0x329c('0xdc')](_0x329c('0xfd')),{'userId':_0x32b62c}):(_0x52e81f[_0x329c('0x5c')](_0x1bddd4[_0x329c('0xdc')](_0x329c('0x5b')),{'userId':_0x32b62c}),_0x2c68c6(_0x52e81f,_0x1bddd4,0x0,_0x1bddd4[_0x329c('0xf9')]),_0x52e81f[_0x329c('0x5c')](_0x1bddd4[_0x329c('0xdc')](_0x329c('0x31')),{'userId':_0x32b62c}));}}(this[_0x329c('0x0')],_0x42c36a,_0x20f1ec,_0x20f1ec+_0x4ac22a[_0x329c('0xcb')]);}['_handleMergeOperation'](_0x40dedf){const _0x5c911b=null===(_0x40dedf=this[_0x329c('0xeb')](_0x40dedf,this[_0x329c('0xfa')]))[_0x329c('0xd')]?null:_0x40dedf['_authorId']||this['editor'][_0x329c('0x1d')]['get'](_0x329c('0x5e'))['me']['id'],_0x110c4b=_0x40dedf[_0x329c('0xa2')][_0x329c('0x4')],_0x549426=_0x40dedf['sourcePosition']['parent'],_0xa6c09e=_0x110c4b[_0x329c('0xdc')](_0x329c('0x31')),_0x2bd2ff=_0x549426[_0x329c('0xdc')](_0x329c('0x5b'));_0x110c4b[_0x329c('0x103')](_0x329c('0x31'),_0x549426[_0x329c('0xdc')](_0x329c('0x31'))),_0x549426[_0x329c('0x103')](_0x329c('0x31'),_0xa6c09e),this[_0x329c('0x0')][_0x329c('0x5c')](_0x2bd2ff,{'userId':_0x5c911b}),this[_0x329c('0x0')]['set'](_0xa6c09e,{'userId':_0x5c911b}),_0x40dedf[_0x329c('0xf4')]();}[_0x329c('0x104')](_0x38ab63){const _0x1d9919=null===(_0x38ab63=this['_cloneOperation'](_0x38ab63,this[_0x329c('0xfa')]))[_0x329c('0xd')]?null:_0x38ab63[_0x329c('0xd')]||this[_0x329c('0x53')][_0x329c('0x1d')]['get']('Users')['me']['id'],_0x4edf1c=_0x38ab63[_0x329c('0x5d')],_0x22fe9f=_0x38ab63[_0x329c('0x27')][_0x329c('0x4')];_0x38ab63[_0x329c('0xf4')]();const _0x237a77=_0x22fe9f[_0x329c('0xdc')](_0x329c('0x31')),_0x4fd179=_0x38ab63[_0x329c('0xb')][_0x329c('0x7f')];if(_0x4edf1c){const _0x35d30b=_0x4fd179[_0x329c('0xdc')]('vid_end'),_0x4cabb1=_0x22fe9f[_0x329c('0xdc')]('vid_end');_0x22fe9f[_0x329c('0x103')](_0x329c('0x31'),_0x35d30b),_0x4fd179[_0x329c('0x103')](_0x329c('0x31'),_0x4cabb1),this[_0x329c('0x0')][_0x329c('0x5c')](_0x22fe9f[_0x329c('0xdc')](_0x329c('0x31')),{'userId':_0x1d9919}),this[_0x329c('0x0')][_0x329c('0x5c')](_0x4fd179['getAttribute'](_0x329c('0x5b')),{'userId':_0x1d9919});}else{const _0x53ef8b=this[_0x329c('0x36')]++,_0x317157=this['_revisionId']++;_0x22fe9f[_0x329c('0x103')](_0x329c('0x31'),_0x53ef8b),_0x4fd179[_0x329c('0x103')](_0x329c('0x5b'),_0x317157),_0x4fd179[_0x329c('0x103')](_0x329c('0x31'),_0x237a77),this['_touched']['set'](_0x53ef8b,{'userId':_0x1d9919}),this[_0x329c('0x0')]['set'](_0x317157,{'userId':_0x1d9919});}}[_0x329c('0x20')](_0x1cb15e){if(!_0x1cb15e[_0x329c('0xa1')])return;const _0x50bd57=(_0x1cb15e=this['_cloneOperation'](_0x1cb15e,this['_diffRoots']))[_0x329c('0xdd')]?_0x1cb15e[_0x329c('0xdd')]['root']:null,_0x56a72e=_0x1cb15e['newRange']?_0x1cb15e[_0x329c('0xca')][_0x329c('0x19')]:null;_0x50bd57&&this[_0x329c('0xc0')]['delete'](_0x1cb15e[_0x329c('0xb6')]),_0x56a72e&&this[_0x329c('0xc0')][_0x329c('0x5c')](_0x1cb15e[_0x329c('0xb6')],_0x1cb15e[_0x329c('0xca')][_0x329c('0xad')]());const _0x37cf21=null===_0x1cb15e[_0x329c('0xd')]?null:_0x1cb15e['_authorId']||this[_0x329c('0x53')][_0x329c('0x1d')][_0x329c('0xa')](_0x329c('0x5e'))['me']['id'],_0x226890=_0x1cb15e[_0x329c('0xb6')];if(!this[_0x329c('0x10b')][_0x329c('0x85')](_0x226890))return void this[_0x329c('0x10b')][_0x329c('0x5c')](_0x226890,{'range':_0x1cb15e[_0x329c('0xdd')],'userId':_0x37cf21});const _0x52dea2=this[_0x329c('0x10b')][_0x329c('0xa')](_0x226890),_0x35b525=_0x52dea2['range'],_0x500066=_0x1cb15e[_0x329c('0xca')];null==_0x35b525&&null==_0x500066||_0x35b525&&_0x500066&&_0x35b525[_0x329c('0x21')](_0x500066)?this[_0x329c('0x10b')]['delete'](_0x1cb15e[_0x329c('0xb6')]):_0x52dea2[_0x329c('0xd3')]=_0x37cf21;}[_0x329c('0x88')](_0x53f6c4,_0x3b08f2){this['_diffRoots'][_0x329c('0x85')](_0x53f6c4[_0x329c('0xf2')])?this[_0x329c('0xed')]['get'](_0x53f6c4['rootName'])[_0x329c('0xa5')]=_0x53f6c4[_0x329c('0x71')]:(this[_0x329c('0xed')]['set'](_0x53f6c4[_0x329c('0xf2')],J(_0x53f6c4[_0x329c('0xf2')],!0x0)),this[_0x329c('0xb2')][_0x329c('0x5c')](_0x53f6c4['rootName'],{}),_0x3b08f2&&this['_idsRoots'][_0x329c('0x5c')](_0x53f6c4[_0x329c('0xf2')],J(_0x53f6c4[_0x329c('0xf2')],!0x0)));const _0x19c641=null===_0x53f6c4[_0x329c('0xd')]?null:_0x53f6c4['_authorId']||this[_0x329c('0x53')]['plugins']['get'](_0x329c('0x5e'))['me']['id'],_0x14c431=this[_0x329c('0x8b')][_0x329c('0xa')](_0x53f6c4[_0x329c('0xf2')]);_0x14c431&&_0x14c431[_0x329c('0xd3')]===_0x19c641?this[_0x329c('0x8b')][_0x329c('0x78')](_0x53f6c4[_0x329c('0xf2')]):this['_touchedRoots'][_0x329c('0x5c')](_0x53f6c4[_0x329c('0xf2')],{'userId':_0x19c641,'isAttached':_0x53f6c4[_0x329c('0x71')]});}[_0x329c('0xcf')](_0x57d021){const _0x46c981=this[_0x329c('0xb2')][_0x329c('0xa')](_0x57d021[_0x329c('0x19')][_0x329c('0xf2')]);null===_0x57d021['newValue']?delete _0x46c981[_0x57d021[_0x329c('0x54')]]:_0x46c981[_0x57d021['key']]=_0x57d021[_0x329c('0xb0')];}}function B(_0x31a87b){const _0x52ee78=J(_0x31a87b[_0x329c('0xf2')],_0x31a87b[_0x329c('0xb5')]());for(const _0x274df1 of _0x31a87b[_0x329c('0x68')]()){const _0x8aa975=_0x274df1[_0x329c('0x81')](!0x0);_0x52ee78['_appendChild'](_0x8aa975);}return _0x52ee78;}function J(_0x3b0208,_0x4bd1b2=!0x0){const _0xd1ec1c=new _0x16b774();return _0xd1ec1c[_0x329c('0xf2')]=_0x3b0208,_0xd1ec1c['_isAttached']=_0x4bd1b2,_0xd1ec1c[_0x329c('0xb5')]=()=>_0xd1ec1c[_0x329c('0xa5')],_0xd1ec1c;}function H(_0x574dec,_0x28163b,_0x5b5fc2){const _0x1cd772=_0x329c('0x100')==_0x574dec[_0x329c('0x79')]?_0x5b5fc2[_0x329c('0x24')](_0x574dec[_0x329c('0xc4')],'end'):_0x5b5fc2['createPositionBefore'](_0x574dec[_0x329c('0xc4')]);return _0x5b5fc2[_0x329c('0xb9')](_0x28163b,_0x1cd772[_0x329c('0x16')],_0x1cd772['stickiness']);}function q(_0x194b49,_0x383955,_0xb9cf4f){const _0x2ab0a5=_0x329c('0x108')==_0x194b49[_0x329c('0x79')]?_0xb9cf4f[_0x329c('0x24')](_0x194b49['item'],0x0):_0xb9cf4f[_0x329c('0x60')](_0x194b49[_0x329c('0xc4')]);return _0xb9cf4f['createPositionFromPath'](_0x383955,_0x2ab0a5['path'],_0x2ab0a5[_0x329c('0xc5')]);}