@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230904.0 → 0.0.0-nightly-20230906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1389=['_makeRevision','_appendChild','shift','_createInitialRevision','document','adapter','getRevisionDocumentData','_prepareViewToSave','_diffRoots','_handleSplitOperation','history','rootsAttributes','_handleMergeOperation','length','_markers','string','item','$text','_fixOperation','getRange','stickiness','_getFromVersion','getLatestVersion','_source','_processRootBeforeSave','finally','getWalker','split','upcast','getTime','newValue','creatorId','_clone','getNodeByPath','removeRootAttribute','getAttributes','_getBaseVids','attributesAfter','getChild','insert','userId','sourcePosition','getRevision','merge','diffData','_continueCurrentRevision','_bufferedUpdates','_handleMoveOperation','clone','collaboration.channelId','_setConversion','editor-initial-data-replaced-with-revision-data','_isPendingUpdate','_getPreviousFrom','_handleRootOperation','getIndex','_lastTo','toModel','createPositionAt','_startingVersion','_touchedMarkers','init','some','documentFragment','_handleOperation','_update','start','Initial\x20revision','_getViewJson','root','values','_copyMarkers','attributesBefore','getRootNames','getUser','data-revision-','repository','_generateTape','dataToMarker','view','graveyardPosition','insertions','_setAttribute','for','_baseRoots','_touchedRoots','clear','vid','_loadedStateData','_handleRootAttributeOperation','createRange','_saveMetaData','_lastFrom','_insertChild','fromVersion','_bufferUpdate','_removeMetaData','offset','childCount','set','sort','pluginName','editor','conversion','text','_calculateMetaData','_transformMarkers','_idsRoots','_cloneOperation','createRevision','createPositionBefore','PendingActions','_baseIdsRoots','_startingRevisionId','markers','toData','authors','_loadState','_makeIdsRoot','Users','deletions','isEqual','default','isReady','_savedMetaData','position','getRevisions','slice','setRevisionData','hasContent','NEGATIVE_INFINITY','range','trim','parse','_touched','revision-start','get','nodes','_fixRange','authorsIds','processor','roots','isEnabled','addRevisionData','splitPosition','_removePendingAction','_initialRevisionId','_operations','saveRevision','sendBufferedUpdates','size','reverse','_reset','_revisionDataBuilder','rootName','reinsert','startsWith','getAttribute','requires','_handleInsertOperation','howMany','getRevisionRootsAttributes','elementStart','_loadRevisionData','parent','addRoot','createdAt','_getVidAttributeName','config','define','_addPendingAction','path','_replaceEditorDataWithRevisionData','_findInsertionIndex','update','revisionHistory.resumeUnsavedRevision','Empty\x20document','createPositionFromPath','getChildren','initial','has','filter','forEach','revision:','_removeRevisionMarkers','marked','_pendingAction','type','version','delete','children','then','$graveyard','isAttached','attributes','createPositionAfter','end','add','_createCurrentRevision','changeRootAttribute','_isAttached','RealTimeCollaborationClient','keys','_execute','nodeAfter','newRange','getAncestors','afterInit','getData','getCurrentRevisionId','model','currentRevision','_authorId','data','bind','offsetSize','source','vid_start','keepParagraph','detachRoot','reInit','baseVersion','_markChanges','stringify','addRootAttribute','toVersion','insertionPosition','_makeModelFromViewString','RevisionTracker','_isInit','elementEnd','creator','tableCell','key','_diffRootsAttributes','_handleMarkerOperation','toView','targetPosition','remove','plugins','oldRange','_fixPosition','getRoot','getTransformedByOperation','loadState','getMovedRangeStart','setSource','vid_end','from','push','map','element','move','isAdd','revision','createRangeIn','buildRevisionData','_applyOperations','useFillerType','insertion','ready','editing','_createFromRanges','_baseRootsAttributes','find','previousPosition','name','attachChange','_revisionId','marker','initialData'];(function(_0x322fdb,_0x13898d){const _0x922452=function(_0x38582b){while(--_0x38582b){_0x322fdb['push'](_0x322fdb['shift']());}};_0x922452(++_0x13898d);}(_0x1389,0x137));const _0x9224=function(_0x322fdb,_0x13898d){_0x322fdb=_0x322fdb-0x0;let _0x922452=_0x1389[_0x322fdb];return _0x922452;};import{Users as _0x20aa46}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x150960,PendingActions as _0x450007}from'ckeditor5/src/core';import{logWarning as _0x32a003,uid as _0x400c30}from'ckeditor5/src/utils';import{Position as _0x337c7d,Range as _0x1ce991,Element as _0x1b1112,DocumentFragment as _0x5c86e9,ViewText as _0x246986,ViewElement as _0x156674,ViewContainerElement as _0x103964,ViewAttributeElement as _0x33eb9d,ViewEmptyElement as _0x5085d1,ViewRawElement as _0x5b02ce,ViewUIElement as _0xc849e1,ViewDocumentFragment as _0x3016be}from'ckeditor5/src/engine';import _0xda7f3f from'./revisionsrepository';import{getTranslation as _0x196e6b}from'./utils/common-translations';import{cloneDeep as _0x42780f,isEqual as _0x208ebb}from'lodash-es';const B={'c':_0x103964,'a':_0x33eb9d,'e':_0x5085d1,'r':_0x5b02ce,'u':_0xc849e1};export default class l extends _0x150960{static get[_0x9224('0x3d')](){return _0x9224('0xbc');}static get[_0x9224('0x76')](){return[_0x20aa46,_0xda7f3f,_0x450007];}constructor(_0x2dce57){super(_0x2dce57),this[_0x9224('0xec')]=null,this['currentRevision']=null,this[_0x9224('0x71')]=new H(this['editor']),this[_0x9224('0x6a')]=this[_0x9224('0x3e')][_0x9224('0x80')][_0x9224('0x60')](_0x9224('0x9'))||_0x9224('0x8b'),this[_0x9224('0x6')]=new Map(),this[_0x9224('0x30')]=null;const _0x5a77f0=_0x400c30();this[_0x9224('0xfe')]={'history':this[_0x9224('0x3e')][_0x9224('0xaa')]['document'][_0x9224('0xf1')],'getLatestVersion':()=>Promise['resolve'](this[_0x9224('0x3e')][_0x9224('0xaa')][_0x9224('0xeb')][_0x9224('0x94')]),'getCurrentRevisionId':()=>_0x5a77f0},this[_0x9224('0x3b')](_0x9224('0x53'),!0x1),this[_0x9224('0x3b')](_0x9224('0x66'),!0x0),this[_0x9224('0x3b')](_0x9224('0xc'),!0x1),this['editor'][_0x9224('0x80')][_0x9224('0x81')](_0x9224('0x87'),!0x0),this[_0x9224('0x3e')][_0x9224('0x3f')][_0x9224('0x2b')](_0x9224('0x103'))[_0x9224('0x26')]({'view':_0x9224('0xd6')});}['init'](){this[_0x9224('0x24')]=this['editor'][_0x9224('0xc7')][_0x9224('0x60')]('RevisionsRepository'),this['_setConversion'](),this[_0x9224('0x3e')]['data']['on'](_0x9224('0xdc'),()=>{const _0x5469c9=this['repository'][_0x9224('0x2')](0x0),_0x598f78=_0x5469c9&&null===_0x5469c9[_0x9224('0xbf')]?_0x5469c9:null;if(this[_0x9224('0x5')]=!!_0x598f78&&this[_0x9224('0x3e')][_0x9224('0x80')][_0x9224('0x60')](_0x9224('0x87')),this[_0x9224('0x3e')]['plugins'][_0x9224('0x8c')](_0x9224('0xa1'))){const _0x5b408a=this[_0x9224('0xfe')]['getCurrentRevisionId'](),_0x230f1c=this[_0x9224('0x24')]['getRevision'](_0x5b408a);if(_0x230f1c)this[_0x9224('0x13')]=_0x230f1c[_0x9224('0x36')],this[_0x9224('0x5')]=!0x1;else{const _0x10f4fd=this[_0x9224('0xfe')][_0x9224('0xf1')][_0x9224('0x6b')][_0x9224('0xe0')](_0x27c321=>!_0x27c321[_0x9224('0xbd')]),_0x2aabf0=_0x10f4fd?_0x10f4fd[_0x9224('0xb5')]:this[_0x9224('0xfe')][_0x9224('0xf1')][_0x9224('0x94')];_0x5469c9?(_0x5469c9[_0x9224('0xb9')]<_0x2aabf0&&_0x5469c9[_0x9224('0x19')]({'toVersion':_0x2aabf0}),this[_0x9224('0x5')]?(this[_0x9224('0xfe')][_0x9224('0xa9')]=()=>_0x598f78['id'],this[_0x9224('0x13')]=_0x598f78[_0x9224('0x36')]):(this[_0x9224('0x13')]=_0x5469c9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2aabf0,this[_0x9224('0x5')]=!0x1);}}else _0x598f78&&(this[_0x9224('0x3e')][_0x9224('0xaa')][_0x9224('0xeb')][_0x9224('0xf1')][_0x9224('0x94')]=Math['max'](_0x598f78['toVersion'],this[_0x9224('0x3e')][_0x9224('0xaa')][_0x9224('0xeb')][_0x9224('0xf1')][_0x9224('0x94')]),_0x598f78[_0x9224('0x36')]===_0x598f78[_0x9224('0xb9')]?(0x0!==_0x598f78[_0x9224('0x36')]&&(this[_0x9224('0xfe')]['getCurrentRevisionId']=()=>_0x598f78['id']),this[_0x9224('0x5')]=!0x1):this[_0x9224('0x5')]&&(this['_source'][_0x9224('0xa9')]=()=>_0x598f78['id'],this[_0x9224('0x13')]=_0x598f78[_0x9224('0x36')])),this[_0x9224('0x5')]||(this[_0x9224('0x13')]=this[_0x9224('0x3e')][_0x9224('0xaa')][_0x9224('0xeb')][_0x9224('0x94')]);this[_0x9224('0x71')][_0x9224('0x15')](this[_0x9224('0xfe')][_0x9224('0xf1')]),this[_0x9224('0xea')](this[_0x9224('0x13')]),this[_0x9224('0x9e')](this[_0x9224('0x13')]),this[_0x9224('0xec')]&&this[_0x9224('0x6d')]();}),this[_0x9224('0xae')](_0x9224('0x53'))['to'](this,_0x9224('0xc'),_0x275d13=>!_0x275d13);}async[_0x9224('0xa7')](){if(this[_0x9224('0x24')][_0x9224('0xf4')]>0x0){const _0x3a04fe=this[_0x9224('0x24')][_0x9224('0x2')](0x0),_0x7fac50=await this[_0x9224('0xed')](_0x3a04fe),_0x5a013e=await this[_0x9224('0x79')](_0x3a04fe);this[_0x9224('0x84')](_0x7fac50,_0x5a013e);}}[_0x9224('0xce')](_0x329a73){this[_0x9224('0xfe')]=_0x329a73;}async[_0x9224('0x86')](){const _0xa45e97=await this[_0x9224('0xfe')][_0x9224('0xfd')]();if(_0xa45e97>this[_0x9224('0xab')][_0x9224('0xb9')]){await this[_0x9224('0x4d')]();const _0x12072f=this[_0x9224('0xd8')]({'revision':this['currentRevision'],'to':_0xa45e97});_0x12072f[_0x9224('0x4c')]=_0x12072f[_0x9224('0x63')][_0x9224('0xd2')](_0x1cedf0=>this[_0x9224('0x3e')][_0x9224('0xc7')]['get'](_0x9224('0x4f'))[_0x9224('0x22')](_0x1cedf0)),this[_0x9224('0xab')][_0x9224('0x19')](_0x12072f);}}async[_0x9224('0x4d')](){this[_0x9224('0x5')]&&!this[_0x9224('0x30')]&&(await this[_0x9224('0x7b')](this['currentRevision']),this['_revisionDataBuilder'][_0x9224('0xcc')](this[_0x9224('0xab')]),this[_0x9224('0x30')]={'fromVersion':this[_0x9224('0xab')][_0x9224('0x36')],'authors':this[_0x9224('0xab')][_0x9224('0x4c')][_0x9224('0x57')]()});}async[_0x9224('0x6c')](_0x2b8749={},_0x3cb148=null){const _0x4ba286=[];await this[_0x9224('0x4d')](),this[_0x9224('0x5')]=!0x1,_0x3cb148>this[_0x9224('0xab')][_0x9224('0xb9')]&&(_0x3cb148=null),null===_0x3cb148&&(_0x3cb148=await this[_0x9224('0xfe')]['getLatestVersion']());const _0x2754b4=this[_0x9224('0xfc')](_0x3cb148),_0x3e4555=this[_0x9224('0xd8')]({'from':_0x2754b4,'to':_0x3cb148});if(this[_0x9224('0xab')]['toVersion']<_0x3cb148){const _0x334b12=this[_0x9224('0xd8')]({'revision':this[_0x9224('0xab')],'from':_0x3cb148,'to':_0x3cb148});_0x334b12[_0x9224('0x4c')]=[],_0x334b12[_0x9224('0x63')]=[],_0x334b12['id']=this[_0x9224('0xab')]['id'],this[_0x9224('0xab')]['_update'](_0x334b12,!0x0),delete _0x334b12[_0x9224('0x4c')],_0x4ba286[_0x9224('0xd1')](_0x334b12);}_0x2b8749[_0x9224('0x106')]=this[_0x9224('0x3e')][_0x9224('0xc7')][_0x9224('0x60')](_0x9224('0x4f'))['me']['id'],_0x2b8749[_0x9224('0xe2')]=_0x2b8749['name']||null,_0x2b8749['id']=_0x2b8749['id']||_0x400c30(),_0x2b8749={..._0x2b8749,..._0x3e4555};const _0xed0f86=this['addRevisionData'](_0x2b8749);_0x4ba286[_0x9224('0xd1')](_0x2b8749);const _0x400535=this['repository'][_0x9224('0xf')](_0xed0f86);if(0x0!==_0x400535){const _0x1eab44=this[_0x9224('0x24')][_0x9224('0x2')](_0x400535-0x1);if(_0x1eab44[_0x9224('0x36')]!==_0x3cb148){const _0x1373e9=this[_0x9224('0x71')][_0x9224('0xa8')](_0x3cb148,_0x1eab44[_0x9224('0xb9')]),_0x5e0dff={'id':_0x1eab44['id'],'diffData':_0x1373e9[_0x9224('0x4')],'authorsIds':_0x1373e9['authorsIds'],'authors':_0x1373e9[_0x9224('0x63')]['map'](_0x474034=>this[_0x9224('0x3e')][_0x9224('0xc7')][_0x9224('0x60')](_0x9224('0x4f'))['getUser'](_0x474034)),'fromVersion':_0x3cb148};_0x1eab44===this[_0x9224('0xab')]&&(_0x5e0dff[_0x9224('0x7e')]=new Date(_0x2b8749[_0x9224('0x7e')][_0x9224('0x104')]()+0xa)),_0x1eab44[_0x9224('0x19')](_0x5e0dff,!0x0),delete _0x5e0dff['authors'],_0x4ba286[_0x9224('0xd1')](_0x5e0dff);}}if(this[_0x9224('0xec')]){for(const _0x458cf2 of _0x4ba286)this[_0x9224('0x37')](_0x458cf2['id'],_0x458cf2,!0x0);this[_0x9224('0x6d')]();}return _0xed0f86;}[_0x9224('0x67')](_0x281077){const _0x47dfb7=this[_0x9224('0x24')][_0x9224('0x45')](_0x281077);return this[_0x9224('0xec')]&&_0x47dfb7['on'](_0x9224('0x19'),(_0x68d1c0,_0x4311db,_0x4faa9e)=>{_0x4faa9e||(this[_0x9224('0x37')](_0x4311db['id'],_0x4311db,!0x0),this[_0x9224('0x6d')]());}),this[_0x9224('0x24')]['addRevision'](_0x47dfb7,this[_0x9224('0x85')](_0x47dfb7)),_0x47dfb7;}async[_0x9224('0xed')](_0x58af2d){await this['_loadRevisionData'](_0x58af2d);const _0xd45f99={};for(const _0x155802 in _0x58af2d[_0x9224('0x4')]){if(_0x58af2d[_0x9224('0x4')][_0x155802][_0x9224('0xe3')]&&!_0x58af2d[_0x9224('0x4')][_0x155802][_0x9224('0xe3')]['isAttached'])continue;const _0x11dc68=this[_0x9224('0x90')](JSON['parse'](_0x58af2d['diffData'][_0x155802][_0x9224('0x29')])),_0x213020=this[_0x9224('0x3e')][_0x9224('0xdd')][_0x9224('0x27')][_0x9224('0xeb')],_0x187041=new _0x3016be(_0x213020,_0x11dc68['map'](_0x53ff5e=>J(_0x53ff5e,this[_0x9224('0x3e')])));this[_0x9224('0x3e')][_0x9224('0xad')]['processor']['useFillerType'](_0x9224('0x91')),_0xd45f99[_0x155802]=this['editor'][_0x9224('0xad')][_0x9224('0x64')][_0x9224('0x4b')](_0x187041),this[_0x9224('0x3e')][_0x9224('0xad')][_0x9224('0x64')][_0x9224('0xda')](_0x9224('0x52'));}return _0xd45f99;}async[_0x9224('0x79')](_0xaffda8){await this[_0x9224('0x7b')](_0xaffda8);const _0x2fb41e={};for(const _0xe21cd in _0xaffda8[_0x9224('0x4')])_0xaffda8[_0x9224('0x4')][_0xe21cd][_0x9224('0xe3')]&&!_0xaffda8[_0x9224('0x4')][_0xe21cd]['attachChange'][_0x9224('0x99')]||(_0x2fb41e[_0xe21cd]=_0xaffda8[_0x9224('0x4')][_0xe21cd][_0x9224('0x10c')]||{});return _0x2fb41e;}['sendBufferedUpdates'](){if(0x0===this[_0x9224('0x6')][_0x9224('0x6e')])return;if(this[_0x9224('0xc')])return;let _0x15796c=Array[_0x9224('0xd0')](this[_0x9224('0x6')][_0x9224('0x1e')]());this[_0x9224('0x6')]['clear']();for(let _0x28d938=0x0;_0x28d938<_0x15796c[_0x9224('0xf4')];_0x28d938++){const _0xd0f52c=_0x15796c[_0x28d938];let _0xb7ac86=!0x1;for(const _0x345df1 of Object[_0x9224('0xa2')](_0xd0f52c))void 0x0===_0xd0f52c[_0x345df1]?delete _0xd0f52c[_0x345df1]:'id'!==_0x345df1&&(_0xb7ac86=!0x0);_0xb7ac86||(_0x15796c[_0x28d938]=null);}if(_0x15796c=_0x15796c[_0x9224('0x8d')](_0x10f464=>null!==_0x10f464),!_0x15796c[_0x9224('0xf4')])return;for(let _0xe455a1=0x0;_0xe455a1<_0x15796c[_0x9224('0xf4')];_0xe455a1++){const _0x2b1aa8=_0x15796c[_0xe455a1];void 0x0!==_0x2b1aa8[_0x9224('0x36')]&&void 0x0===_0x2b1aa8[_0x9224('0xb9')]&&(_0x2b1aa8[_0x9224('0xb9')]=this[_0x9224('0x24')]['getRevision'](_0x2b1aa8['id'])['toVersion']),void 0x0!==_0x2b1aa8['toVersion']&&void 0x0===_0x2b1aa8[_0x9224('0x36')]&&(_0x2b1aa8[_0x9224('0x36')]=this[_0x9224('0x24')]['getRevision'](_0x2b1aa8['id'])[_0x9224('0x36')]);}const _0x13267d=this['editor'][_0x9224('0x80')][_0x9224('0x60')](_0x9224('0x9'));this[_0x9224('0xc')]=!0x0,this[_0x9224('0x82')](),this[_0x9224('0xec')]['updateRevisions'](_0x15796c,_0x13267d)[_0x9224('0x100')](()=>{this[_0x9224('0xc')]=!0x1;})['then'](_0x21d4ae=>{if(_0x21d4ae)for(const _0x332919 of _0x21d4ae)this[_0x9224('0x58')]({'id':_0x332919['id'],'createdAt':_0x332919[_0x9224('0x7e')]});this[_0x9224('0x69')](),this[_0x9224('0x6d')]();});}[_0x9224('0x84')](_0x5a4d5e,_0x3a67b1){let _0x23c382=this[_0x9224('0x3e')][_0x9224('0x80')][_0x9224('0x60')]('initialData'),_0x287db3=this[_0x9224('0x3e')][_0x9224('0x80')][_0x9224('0x60')](_0x9224('0xf2'));if(void 0x0===_0x23c382){_0x23c382={};for(const _0x6b5a84 of this[_0x9224('0x3e')][_0x9224('0xaa')][_0x9224('0xeb')][_0x9224('0x21')]())_0x23c382[_0x6b5a84]='';}if(_0x9224('0xf6')==typeof _0x23c382&&(_0x23c382={'main':_0x23c382}),void 0x0===_0x287db3){_0x287db3={};for(const _0x22437a of this[_0x9224('0x3e')][_0x9224('0xaa')][_0x9224('0xeb')][_0x9224('0x21')]())_0x287db3[_0x22437a]={};}let _0x32c9d7=!0x1;const _0x5277da=Object[_0x9224('0xa2')](_0x23c382),_0x5a4164=Object['keys'](_0x5a4d5e);for(const _0x209262 of _0x5277da){if(_0x23c382[_0x209262]!==_0x5a4d5e[_0x209262]&&''!==_0x23c382[_0x209262][_0x9224('0x5c')]()){_0x32c9d7=!0x0;break;}if(!_0x208ebb(_0x287db3[_0x209262],_0x3a67b1[_0x209262])&&Object['keys'](_0x287db3[_0x209262])[_0x9224('0xf4')]>0x0){_0x32c9d7=!0x0;break;}}_0x32c9d7||(_0x32c9d7=_0x5a4164[_0x9224('0x16')](_0x1e142e=>!this[_0x9224('0x3e')][_0x9224('0xaa')]['document'][_0x9224('0xca')](_0x1e142e))),_0x32c9d7&&_0x32a003(_0x9224('0xb'),{'editorData':_0x23c382,'editorRootsAttributes':_0x287db3,'revisionData':_0x5a4d5e,'revisionRootsAttributes':_0x3a67b1}),this[_0x9224('0x3e')][_0x9224('0x80')][_0x9224('0x3b')](_0x9224('0xe6'),_0x5a4d5e),this['editor']['config']['set'](_0x9224('0xf2'),_0x3a67b1);}[_0x9224('0x82')](){if(!this[_0x9224('0x92')]){const _0x1a0dea=this[_0x9224('0x3e')][_0x9224('0xc7')][_0x9224('0x60')](_0x9224('0x47'));this[_0x9224('0x92')]=_0x1a0dea[_0x9224('0x9d')](_0x196e6b(this[_0x9224('0x3e')]['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x9224('0x69')](){this['_pendingAction']&&(this[_0x9224('0x3e')]['plugins']['get']('PendingActions')[_0x9224('0xc6')](this[_0x9224('0x92')]),this[_0x9224('0x92')]=null);}[_0x9224('0x85')](_0x42fcab){const _0x3196a3=this[_0x9224('0x24')][_0x9224('0x56')]();_0x3196a3[_0x9224('0x6f')]();let _0xd17c57=0x0;for(;_0xd17c57<_0x3196a3[_0x9224('0xf4')];){const _0x319b5e=_0x3196a3[_0xd17c57];if(_0x319b5e===this['currentRevision']){_0xd17c57++;continue;}if(_0x319b5e['id']===this[_0x9224('0x6a')])break;const _0x3f5e0c=_0x42fcab[_0x9224('0xb9')]-_0x319b5e[_0x9224('0xb9')]||_0x42fcab['fromVersion']-_0x319b5e[_0x9224('0x36')];if(_0x3f5e0c>0x0)break;if(_0x3f5e0c<0x0)_0xd17c57++;else{if(!_0x42fcab[_0x9224('0xbf')]&&_0x319b5e[_0x9224('0xbf')])break;if(_0x319b5e[_0x9224('0xbf')]||!_0x42fcab[_0x9224('0xbf')]){if(_0x42fcab['createdAt']>_0x319b5e['createdAt'])break;_0xd17c57++;}else _0xd17c57++;}}return _0xd17c57;}[_0x9224('0x58')](_0x969a03){const _0x34653a=this['repository']['getRevision'](_0x969a03['id']);if(_0x969a03[_0x9224('0x7e')]&&(_0x969a03[_0x9224('0x7e')]=new Date(_0x969a03[_0x9224('0x7e')])),_0x969a03[_0x9224('0x63')]){const _0x489ce1=this[_0x9224('0x3e')][_0x9224('0xc7')][_0x9224('0x60')](_0x9224('0x4f'));_0x969a03[_0x9224('0x4c')]=_0x969a03[_0x9224('0x63')][_0x9224('0xd2')](_0x1bb622=>_0x489ce1[_0x9224('0x22')](_0x1bb622));}_0x34653a['_update'](_0x969a03,!0x0);}[_0x9224('0xd8')]({revision:_0x4a436e=null,from:_0x5a647b=null,to:_0x42ef55=null}){_0x5a647b=null!==_0x5a647b?_0x5a647b:_0x4a436e[_0x9224('0x36')],_0x42ef55=null!==_0x42ef55?_0x42ef55:_0x4a436e[_0x9224('0xb9')];const _0x461e5c=this[_0x9224('0x71')][_0x9224('0xa8')](_0x5a647b,_0x42ef55),_0x186ac3={'diffData':_0x461e5c['diffData'],'authorsIds':_0x461e5c['authorsIds'],'fromVersion':_0x5a647b,'toVersion':_0x42ef55};if(!_0x4a436e||_0x42ef55!==_0x4a436e['toVersion']){const _0x249892=_0x42ef55-0x1,_0x82299a=this['_source'][_0x9224('0xf1')]['getOperation'](_0x249892);_0x186ac3[_0x9224('0x7e')]=_0x82299a&&_0x82299a[_0x9224('0x7e')]||new Date();}if(this[_0x9224('0x30')]&&_0x5a647b===this[_0x9224('0x30')][_0x9224('0x36')])for(const _0x2476b7 of this[_0x9224('0x30')]['authors'])_0x186ac3[_0x9224('0x63')]['includes'](_0x2476b7['id'])||_0x186ac3[_0x9224('0x63')][_0x9224('0xd1')](_0x2476b7['id']);return _0x186ac3;}[_0x9224('0x7b')](_0x44a899){if(!_0x44a899||_0x44a899[_0x9224('0x4')])return Promise['resolve']();{const _0x1afe20=this['editor'][_0x9224('0x80')][_0x9224('0x60')](_0x9224('0x9'));return this[_0x9224('0xec')][_0x9224('0x2')]({'channelId':_0x1afe20,'revisionId':_0x44a899['id']})[_0x9224('0x97')](_0x11376c=>{_0x44a899[_0x9224('0x4')]=_0x11376c['diffData'];});}}['_bufferUpdate'](_0x2ec7d8,_0x45b52e,_0x5d0f3d){if(this[_0x9224('0x6')][_0x9224('0x8c')](_0x2ec7d8)){const _0x31222e=this[_0x9224('0x6')]['get'](_0x2ec7d8);_0x45b52e=_0x5d0f3d?{..._0x31222e,..._0x45b52e}:{..._0x45b52e,..._0x31222e};}this[_0x9224('0x6')][_0x9224('0x3b')](_0x2ec7d8,_0x45b52e);}[_0x9224('0xfc')](_0x47a800){const _0x290a94=this['repository'][_0x9224('0x56')]();_0x290a94[_0x9224('0x6f')](),_0x290a94[_0x9224('0xe9')]();const _0x5e0cf8=_0x290a94[_0x9224('0xe0')](_0x27108e=>_0x27108e[_0x9224('0xb9')]<=_0x47a800)['toVersion'];return _0x5e0cf8<this[_0x9224('0x13')]?this[_0x9224('0x13')]:_0x5e0cf8;}['_createInitialRevision'](_0x529e30){const _0x1c10d2=this['repository'][_0x9224('0x2')](this[_0x9224('0x24')][_0x9224('0xf4')]-0x1);if(_0x1c10d2)this[_0x9224('0x6a')]=_0x1c10d2['id'];else{const _0x10f3e2=!this[_0x9224('0x3e')][_0x9224('0xaa')][_0x9224('0xeb')][_0x9224('0x65')][_0x9224('0xe0')](_0x527548=>this[_0x9224('0x3e')][_0x9224('0xaa')][_0x9224('0x59')](_0x527548)),_0x25e46e=this[_0x9224('0x3e')][_0x9224('0xc7')][_0x9224('0x60')](_0x9224('0x4f'))['me']['id'],_0x103bc1=_0x196e6b(this[_0x9224('0x3e')]['locale'],_0x10f3e2?_0x9224('0x88'):_0x9224('0x1b'));this['_makeRevision']({'from':_0x529e30,'to':_0x529e30,'id':this[_0x9224('0x6a')],'name':_0x103bc1,'creatorId':_0x25e46e});}}[_0x9224('0x9e')](_0x298c6b){const _0x44443d=this['_source']['getCurrentRevisionId']();this[_0x9224('0xab')]=this[_0x9224('0x24')][_0x9224('0x2')](_0x44443d),this[_0x9224('0xab')]||(this[_0x9224('0xab')]=this['_makeRevision']({'from':_0x298c6b,'to':_0x298c6b,'id':_0x44443d,'name':'','creatorId':null}));}[_0x9224('0xe7')]({name:_0x58dfbe,from:_0x1b69d0,to:_0x18afac,creatorId:_0x419ffe,id:_0x285f6c}){const _0x55f21a=this[_0x9224('0xd8')]({'from':_0x1b69d0,'to':_0x18afac});_0x55f21a[_0x9224('0xe2')]=_0x58dfbe,_0x55f21a[_0x9224('0x106')]=_0x419ffe,_0x55f21a['id']=_0x285f6c;const _0x54ab7f=this[_0x9224('0x67')](_0x55f21a);return this[_0x9224('0xec')]&&this[_0x9224('0x37')](_0x55f21a['id'],_0x55f21a,!0x0),_0x54ab7f;}[_0x9224('0xa')](){this[_0x9224('0x3e')][_0x9224('0x3f')][_0x9224('0x2b')]('dataDowncast')['markerToData']({'model':'revision'});}[_0x9224('0x90')](_0x1a715f){return(_0x1a715f=_0x1a715f[_0x9224('0x8d')](_0x114b5d=>!_0x114b5d[_0x9224('0xe2')]||_0x9224('0x5f')!==_0x114b5d['name']&&'revision-end'!==_0x114b5d[_0x9224('0xe2')]))[_0x9224('0x8e')](_0x10e57a=>{_0x9224('0xf6')!=typeof _0x10e57a&&(_0x10e57a[_0x9224('0x96')]=this[_0x9224('0x90')](_0x10e57a[_0x9224('0x96')]),_0x10e57a[_0x9224('0x9a')]=_0x10e57a[_0x9224('0x9a')][_0x9224('0x8d')](_0x66f3bd=>!_0x66f3bd[0x0][_0x9224('0x74')](_0x9224('0x23'))));}),_0x1a715f;}}function J(_0x5c6f0b,_0x3bb638){const _0x49f6ee=_0x3bb638[_0x9224('0xdd')][_0x9224('0x27')]['document'];if('string'==typeof _0x5c6f0b)return new _0x246986(_0x49f6ee,_0x5c6f0b);{const _0x2b5712=_0x5c6f0b['children']['map'](_0x1c9c15=>J(_0x1c9c15,_0x3bb638));return new(B[_0x5c6f0b[(_0x9224('0x93'))]]||_0x156674)(_0x49f6ee,_0x5c6f0b[_0x9224('0xe2')],_0x5c6f0b[_0x9224('0x9a')],_0x2b5712);}}class H{constructor(_0x4c9bb1){this[_0x9224('0x3e')]=_0x4c9bb1,this['_savedMetaData']=new Map(),this[_0x9224('0x34')]=-0x1,this[_0x9224('0x10')]=-0x1,this[_0x9224('0xf5')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x9224('0x2c')]=new Map(),this[_0x9224('0xdf')]=new Map(),this[_0x9224('0x43')]=new Map(),this[_0x9224('0x48')]=new Map(),this[_0x9224('0x5e')]=new Map(),this[_0x9224('0x14')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x9224('0x15')](_0x282722){this[_0x9224('0xb0')]=_0x282722;const _0x4018b1=new Map(),_0x1b86fb=new Map(),_0x3d00d7=this[_0x9224('0x3e')][_0x9224('0xaa')][_0x9224('0xeb')][_0x9224('0x65')][_0x9224('0xd2')](_0x26c5cb=>_0x26c5cb[_0x9224('0x72')]);for(const _0x6d0b46 of _0x3d00d7){const _0xdb0044=this[_0x9224('0x3e')]['model'][_0x9224('0xeb')][_0x9224('0xca')](_0x6d0b46),_0x3ddc5d=q(_0xdb0044);_0x4018b1[_0x9224('0x3b')](_0x6d0b46,_0x3ddc5d),_0x1b86fb[_0x9224('0x3b')](_0x6d0b46,Object['fromEntries'](_0xdb0044['getAttributes']()));}const _0x58f0fb=Array['from'](this[_0x9224('0x3e')][_0x9224('0xaa')]['markers'])['map'](_0x17a85d=>[_0x17a85d['name'],_0x17a85d[_0x9224('0xfa')]()]),_0x5e23d6=this[_0x9224('0xb0')][_0x9224('0x94')];this['_saveMetaData'](_0x5e23d6,_0x4018b1,_0x58f0fb,_0x1b86fb),this[_0x9224('0x49')]=this['_revisionId'];const _0x353fe5=new Map(),_0x4e6bd0=new Map();for(const _0x2cfa4d of _0x3d00d7){const _0x57f402=G(_0x2cfa4d);_0x353fe5[_0x9224('0x3b')](_0x2cfa4d,_0x57f402),_0x4e6bd0[_0x9224('0x3b')](_0x2cfa4d,{});}this['_saveMetaData'](Number[_0x9224('0x5a')],_0x353fe5,[],_0x4e6bd0);}[_0x9224('0xa8')](_0x241723,_0x431285){if(this['_lastFrom']===_0x241723&&this[_0x9224('0x10')]<=_0x431285)this[_0x9224('0x54')][_0x9224('0x6e')]>0x1&&this[_0x9224('0x38')](this[_0x9224('0x10')]),this['_applyOperations'](this['_lastTo'],_0x431285,!0x0);else{if(!this[_0x9224('0x54')]['has'](_0x241723)){const _0x2f4210=this[_0x9224('0xd')](_0x241723);this[_0x9224('0x41')](_0x2f4210,_0x241723,!0x1);}this['_calculateMetaData'](_0x241723,_0x431285,!0x0);}return this[_0x9224('0x34')]=_0x241723,this[_0x9224('0x10')]=_0x431285,this['_getState']();}[_0x9224('0xcc')](_0x5ca3ba){this[_0x9224('0x70')](),this[_0x9224('0x34')]=_0x5ca3ba[_0x9224('0x36')],this[_0x9224('0x10')]=_0x5ca3ba['toVersion'];for(const _0x24c88d in _0x5ca3ba['diffData']){const _0x3d96cd=_0x5ca3ba['diffData'][_0x24c88d][_0x9224('0xe3')],_0x10c317=_0x42780f(_0x5ca3ba[_0x9224('0x4')][_0x24c88d][_0x9224('0x20')])||{},_0xaf5d4b=this[_0x9224('0xbb')](_0x5ca3ba[_0x9224('0x4')][_0x24c88d]['deletions']);_0xaf5d4b[_0x9224('0x72')]=_0x24c88d,_0xaf5d4b['_isAttached']=!_0x3d96cd||!_0x3d96cd[_0x9224('0x99')],_0xaf5d4b[_0x9224('0x99')]=()=>_0xaf5d4b[_0x9224('0xa0')],this[_0x9224('0x2c')][_0x9224('0x3b')](_0x24c88d,_0xaf5d4b),this[_0x9224('0xdf')]['set'](_0x24c88d,_0x10c317),_0x3d96cd&&this[_0x9224('0x2d')][_0x9224('0x3b')](_0x24c88d,_0x3d96cd);const _0x5aa283=this[_0x9224('0x4e')](_0xaf5d4b);this['_baseIdsRoots'][_0x9224('0x3b')](_0x24c88d,_0x5aa283);for(const [_0x1a1e99,_0x2252e7]of _0xaf5d4b['markers']){if(!_0x1a1e99[_0x9224('0x74')](_0x9224('0x8f')))continue;const _0x1a7697=_0x1a1e99[_0x9224('0x102')](':')[0x2];for(const _0x1c336d of _0x2252e7[_0x9224('0x101')]({'singleCharacters':!0x0})){const _0x1deee8=this[_0x9224('0x7f')](_0x1c336d),_0x1754c2=_0x9224('0xbe')==_0x1c336d[_0x9224('0x93')]?_0x1c336d['previousPosition'][_0x9224('0x83')][_0x9224('0x57')](0x0,-0x1):_0x1c336d[_0x9224('0xe1')][_0x9224('0x83')],_0x3c1b46=_0x5aa283[_0x9224('0x108')](_0x1754c2)[_0x9224('0x75')](_0x1deee8);this[_0x9224('0x5e')][_0x9224('0x3b')](_0x3c1b46,{'userId':_0x1a7697});}}}this[_0x9224('0x49')]=this['_revisionId'];const _0x4cef88=[...Array(this[_0x9224('0xe4')])[_0x9224('0xa2')]()]['slice'](0x1)[_0x9224('0x8d')](_0x29ad6a=>!this[_0x9224('0x5e')]['has'](_0x29ad6a));let _0x11e5d3=0x0;const _0x54e65e=new Map();for(const _0x4bb979 in _0x5ca3ba['diffData']){const _0x5e7fbf=_0x5ca3ba[_0x9224('0x4')][_0x4bb979][_0x9224('0xe3')],_0x1ccca3=_0x42780f(_0x5ca3ba[_0x9224('0x4')][_0x4bb979][_0x9224('0x10c')])||{},_0x97d4fb=this['_makeModelFromViewString'](_0x5ca3ba['diffData'][_0x4bb979][_0x9224('0x29')]);_0x97d4fb[_0x9224('0x72')]=_0x4bb979,_0x97d4fb[_0x9224('0xa0')]=!_0x5e7fbf||_0x5e7fbf[_0x9224('0x99')],_0x97d4fb[_0x9224('0x99')]=()=>_0x97d4fb['_isAttached'],this['_diffRoots']['set'](_0x4bb979,_0x97d4fb),this['_diffRootsAttributes'][_0x9224('0x3b')](_0x4bb979,_0x1ccca3);const _0x21faa0=this[_0x9224('0x4e')](_0x97d4fb,Number['NEGATIVE_INFINITY']);this['_idsRoots'][_0x9224('0x3b')](_0x4bb979,_0x21faa0),_0x54e65e[_0x9224('0x3b')](_0x4bb979,_0x97d4fb[_0x9224('0x99')]()?_0x1ccca3:{});for(const [_0x1840c0,_0x169ef4]of _0x97d4fb[_0x9224('0x4a')]){if(!_0x1840c0[_0x9224('0x74')](_0x9224('0x8f')))continue;const _0x238169=_0x1840c0['split'](':')[0x2];for(const _0x3ccb5d of _0x169ef4[_0x9224('0x101')]({'singleCharacters':!0x0})){const _0x33baca=this[_0x9224('0x7f')](_0x3ccb5d),_0xd1ec25=this[_0x9224('0xe4')]++,_0x3e21ee=_0x9224('0xbe')==_0x3ccb5d['type']?_0x3ccb5d['previousPosition'][_0x9224('0x83')][_0x9224('0x57')](0x0,-0x1):_0x3ccb5d[_0x9224('0xe1')]['path'];_0x21faa0[_0x9224('0x108')](_0x3e21ee)[_0x9224('0x2a')](_0x33baca,_0xd1ec25),this[_0x9224('0x5e')][_0x9224('0x3b')](_0xd1ec25,{'userId':_0x238169});}}for(const _0x22a273 of this['editor']['model'][_0x9224('0xd7')](_0x97d4fb)[_0x9224('0x101')]({'singleCharacters':!0x0})){const _0x3e6987=this['_getVidAttributeName'](_0x22a273),_0x3aaa90=_0x9224('0xbe')==_0x22a273[_0x9224('0x93')]?_0x22a273[_0x9224('0xe1')][_0x9224('0x83')][_0x9224('0x57')](0x0,-0x1):_0x22a273[_0x9224('0xe1')][_0x9224('0x83')],_0x151c57=_0x21faa0['getNodeByPath'](_0x3aaa90);_0x151c57[_0x9224('0x75')](_0x3e6987)>0x0||_0x151c57[_0x9224('0x2a')](_0x3e6987,_0x4cef88[_0x11e5d3++]);}for(const [_0x13527a,_0x3215fc]of _0x97d4fb[_0x9224('0x4a')])_0x13527a['startsWith'](_0x9224('0x8f'))||this['_markers']['set'](_0x13527a,_0x3215fc);}const _0x476fe9=G('$graveyard');this[_0x9224('0x2c')][_0x9224('0x3b')](_0x9224('0x98'),_0x476fe9),this[_0x9224('0x48')]['set']('$graveyard',this[_0x9224('0x4e')](_0x476fe9,0x1));const _0x12d368=G(_0x9224('0x98'));this[_0x9224('0xef')]['set'](_0x9224('0x98'),_0x12d368),this[_0x9224('0x43')][_0x9224('0x3b')](_0x9224('0x98'),this[_0x9224('0x4e')](_0x12d368,0x1));const _0x4b8d5f=Array['from'](this['_diffRoots'])[_0x9224('0xd2')](([_0x274f7f,_0x380958])=>[_0x274f7f,q(_0x380958)]);this[_0x9224('0x33')](this['_lastTo'],_0x4b8d5f,this[_0x9224('0xf5')],_0x54e65e);}[_0x9224('0xbb')](_0x4ec56a){const _0x37b830=JSON[_0x9224('0x5d')](_0x4ec56a),_0x58dfd3=this[_0x9224('0x3e')][_0x9224('0xdd')][_0x9224('0x27')]['document'],_0x33f5b7=new _0x3016be(_0x58dfd3,_0x37b830['map'](_0x5050ca=>J(_0x5050ca,this[_0x9224('0x3e')])));return this[_0x9224('0x3e')]['data'][_0x9224('0x11')](_0x33f5b7);}[_0x9224('0x33')](_0x122e7b,_0x4c8068,_0x1ce857,_0x6c675f){const _0x4b1b2b=new Map(_0x4c8068),_0x2550fc=new Map(_0x42780f(_0x6c675f)),_0x1d4295=new Map();for(const [_0x1ddf47,_0x4090a9]of _0x1ce857)_0x1d4295['set'](_0x1ddf47,{'start':_0x4090a9[_0x9224('0x1a')]['clone'](),'end':_0x4090a9[_0x9224('0x9c')][_0x9224('0x8')](),'rootName':_0x4090a9['root'][_0x9224('0x72')]});this[_0x9224('0x54')][_0x9224('0x3b')](_0x122e7b,{'roots':_0x4b1b2b,'markers':_0x1d4295,'rootsAttributes':_0x2550fc});}[_0x9224('0x38')](_0x23869c){this['_savedMetaData'][_0x9224('0x95')](_0x23869c);}[_0x9224('0xb4')](){this['_reset'](),this['_lastFrom']=-0x1,this[_0x9224('0x10')]=-0x1,this[_0x9224('0x54')][_0x9224('0x2e')](),this[_0x9224('0x15')](this[_0x9224('0xb0')]);}[_0x9224('0x70')](){this[_0x9224('0x5e')]['clear'](),this[_0x9224('0x14')][_0x9224('0x2e')](),this['_touchedRoots']['clear'](),this[_0x9224('0xef')][_0x9224('0x2e')](),this[_0x9224('0xc2')][_0x9224('0x2e')](),this[_0x9224('0x2c')]['clear'](),this[_0x9224('0xdf')][_0x9224('0x2e')](),this[_0x9224('0x43')][_0x9224('0x2e')](),this['_baseIdsRoots'][_0x9224('0x2e')](),this['_markers'][_0x9224('0x2e')](),this[_0x9224('0xe4')]=0x1,this[_0x9224('0x49')]=this[_0x9224('0xe4')];}[_0x9224('0x4e')](_0x4331ad,_0x36e767=null){let _0x25d6e0=null;_0x4331ad['is'](_0x9224('0x17'))||(_0x25d6e0=new _0x1b1112(_0x4331ad[_0x9224('0xe2')],{'vid_start':null===_0x36e767?this[_0x9224('0xe4')]++:_0x36e767++}));const _0x27e4a9=[];for(const _0x41a654 of _0x4331ad[_0x9224('0x8a')]())if(_0x41a654['is']('element')){_0x27e4a9['push'](this[_0x9224('0x4e')](_0x41a654,_0x36e767));const _0x27c256=_0x27e4a9[_0x27e4a9[_0x9224('0xf4')]-0x1];null!==_0x36e767&&(_0x36e767=_0x27c256['is'](_0x9224('0xd3'),_0x9224('0xf8'))?_0x27c256['getAttribute'](_0x9224('0x2f'))+0x1:_0x27c256['getAttribute'](_0x9224('0xcf'))+0x1);}else for(let _0x4e38c3=0x0;_0x4e38c3<_0x41a654[_0x9224('0xaf')];_0x4e38c3++)_0x27e4a9[_0x9224('0xd1')](new _0x1b1112(_0x9224('0xf8'),{'vid':null===_0x36e767?this[_0x9224('0xe4')]++:_0x36e767++}));if(_0x4331ad['is'](_0x9224('0x17'))){const _0x3c55ee=G(_0x4331ad[_0x9224('0x72')]);return _0x3c55ee[_0x9224('0x35')](0x0,_0x27e4a9),_0x3c55ee;}return _0x25d6e0[_0x9224('0x2a')](_0x9224('0xcf'),null===_0x36e767?this[_0x9224('0xe4')]++:_0x36e767++),_0x25d6e0[_0x9224('0x35')](0x0,_0x27e4a9),_0x25d6e0;}[_0x9224('0x41')](_0x2f0d65,_0x4e9116,_0x258d56){this[_0x9224('0x70')]();const {roots:_0x44979b,markers:_0x1404fe,rootsAttributes:_0x3f2d21}=this['_savedMetaData']['get'](_0x2f0d65);this['_baseRoots']=new Map(_0x44979b),this['_baseRootsAttributes']=new Map(_0x42780f(_0x3f2d21));for(const [_0x430ecc,_0x2e256b]of this[_0x9224('0x2c')])if('$graveyard'!==_0x430ecc&&(this[_0x9224('0xef')][_0x9224('0x3b')](_0x430ecc,q(_0x2e256b)),this['_diffRootsAttributes']=new Map(_0x42780f(_0x3f2d21)),_0x258d56)){const _0x3c2567=this['_revisionId'];this[_0x9224('0x43')]['set'](_0x430ecc,this[_0x9224('0x4e')](_0x2e256b)),this[_0x9224('0x48')]['set'](_0x430ecc,this[_0x9224('0x4e')](_0x2e256b,_0x3c2567));}this[_0x9224('0x49')]=this[_0x9224('0xe4')],this[_0x9224('0xef')][_0x9224('0x3b')]('$graveyard',q(this[_0x9224('0x2c')][_0x9224('0x60')](_0x9224('0x98')))),_0x258d56&&this[_0x9224('0x43')][_0x9224('0x3b')](_0x9224('0x98'),this[_0x9224('0x4e')](this[_0x9224('0x2c')][_0x9224('0x60')]('$graveyard')));for(const [_0x3f9f3f,_0xf3b016]of _0x1404fe){const _0xd2822f=this[_0x9224('0x2c')][_0x9224('0x60')](_0xf3b016['rootName']),_0x55c309=this[_0x9224('0xef')][_0x9224('0x60')](_0xf3b016[_0x9224('0x72')]),_0x331117=new _0x1ce991(this[_0x9224('0xc9')](_0xf3b016['start'],_0xd2822f),this[_0x9224('0xc9')](_0xf3b016['end'],_0xd2822f)),_0xb8a1f=this[_0x9224('0x62')](_0x331117,_0x55c309);_0xd2822f[_0x9224('0x4a')][_0x9224('0x3b')](_0x3f9f3f,_0x331117),this[_0x9224('0xf5')]['set'](_0x3f9f3f,_0xb8a1f);}this[_0x9224('0xd9')](_0x2f0d65,_0x4e9116,_0x258d56);}[_0x9224('0xd9')](_0x4dabd4,_0x260cee,_0x18ceef){for(const _0x13a7df of this[_0x9224('0xb0')]['getOperations'](_0x4dabd4,_0x260cee))this[_0x9224('0x18')](_0x13a7df,_0x18ceef);for(const _0x56c57f of this[_0x9224('0xef')][_0x9224('0x1e')]())_0x56c57f['markers'][_0x9224('0x2e')]();for(const [_0x1a3a4d,_0x398e81]of this[_0x9224('0xf5')]){this[_0x9224('0xef')][_0x9224('0x60')](_0x398e81[_0x9224('0x1d')][_0x9224('0x72')])['markers'][_0x9224('0x3b')](_0x1a3a4d,_0x398e81[_0x9224('0x8')]());}const _0x4090e7=new Map(),_0x3ee780=new Map();for(const [_0x1a0a40,_0x199211]of this['_diffRoots'])_0x4090e7[_0x9224('0x3b')](_0x1a0a40,q(_0x199211)),_0x3ee780[_0x9224('0x3b')](_0x1a0a40,this['_diffRootsAttributes'][_0x9224('0x60')](_0x1a0a40));this['_saveMetaData'](_0x260cee,_0x4090e7,this[_0x9224('0xf5')],_0x3ee780);}[_0x9224('0xd')](_0x1cb66f){const _0x1252f0=Array[_0x9224('0xd0')](this[_0x9224('0x54')]['keys']());_0x1252f0[_0x9224('0x3c')]((_0x228431,_0x3bee1f)=>_0x228431-_0x3bee1f),_0x1252f0['reverse']();for(const _0xc72c50 of _0x1252f0)if(_0xc72c50<_0x1cb66f)return _0xc72c50;return Number['NEGATIVE_INFINITY'];}[_0x9224('0x1f')](_0x3de7a0,_0x28713f){const _0x408898=Array[_0x9224('0xd0')](_0x28713f[_0x9224('0x4a')])[_0x9224('0xd2')](([_0x2d1dc9,_0x34f98b])=>[_0x2d1dc9,this[_0x9224('0x62')](_0x34f98b,_0x3de7a0)]);_0x3de7a0['markers']=new Map(_0x408898);}[_0x9224('0x42')](_0x5bda6e){for(const _0x7f9b78 of this[_0x9224('0xf5')]['values']()){const _0x21c8eb=_0x7f9b78[_0x9224('0xcb')](_0x5bda6e),_0x15f1b9=_0x1ce991[_0x9224('0xde')](_0x21c8eb);_0x7f9b78[_0x9224('0x1a')]=_0x15f1b9[_0x9224('0x1a')],_0x7f9b78[_0x9224('0x9c')]=_0x15f1b9[_0x9224('0x9c')];}}[_0x9224('0x18')](_0x16f26b,_0x46aa36){if(_0x9224('0x7d')==_0x16f26b[_0x9224('0x93')]||_0x9224('0xb3')==_0x16f26b[_0x9224('0x93')])return void this[_0x9224('0xe')](_0x16f26b,_0x46aa36);if(_0x9224('0x10e')==_0x16f26b[_0x9224('0x93')]){const _0x5cdf10=_0x16f26b[_0x9224('0x55')]['root'][_0x9224('0x72')];this[_0x9224('0xef')]['has'](_0x5cdf10)||(this[_0x9224('0xef')][_0x9224('0x3b')](_0x5cdf10,G(_0x5cdf10,!0x0)),this[_0x9224('0xc2')][_0x9224('0x3b')](_0x5cdf10,{}),_0x46aa36&&this[_0x9224('0x43')][_0x9224('0x3b')](_0x5cdf10,G(_0x5cdf10,!0x0)));}else{if(_0x9224('0xb8')==_0x16f26b[_0x9224('0x93')]||_0x9224('0x109')==_0x16f26b[_0x9224('0x93')]||_0x9224('0x9f')==_0x16f26b['type'])return void this[_0x9224('0x31')](_0x16f26b);}const _0x363000=this['_cloneOperation'](_0x16f26b,this['_diffRoots']);if('marker'!==_0x16f26b['type']&&(_0x363000['_execute'](),this[_0x9224('0x42')](_0x363000)),_0x46aa36)switch(_0x363000[_0x9224('0x93')]){case _0x9224('0x10e'):this['_handleInsertOperation'](_0x16f26b);break;case _0x9224('0xd4'):case _0x9224('0xc6'):case _0x9224('0x73'):this[_0x9224('0x7')](_0x16f26b);break;case _0x9224('0x3'):this['_handleMergeOperation'](_0x16f26b);break;case _0x9224('0x102'):this[_0x9224('0xf0')](_0x16f26b);break;case _0x9224('0xe5'):this[_0x9224('0xc3')](_0x16f26b);}}[_0x9224('0x44')](_0x300ea9,_0x2680dd){const _0x1375de=_0x300ea9['clone']();return _0x1375de[_0x9224('0xac')]=_0x300ea9[_0x9224('0xac')],this['_fixOperation'](_0x1375de,_0x2680dd),_0x1375de;}[_0x9224('0x10b')](_0x2efe3a){return _0x2efe3a[_0x9224('0xd2')](_0x36c37f=>{const _0x586a03=this[_0x9224('0x7f')](_0x36c37f);return Number(_0x36c37f[_0x9224('0xf7')][_0x9224('0x75')](_0x586a03));});}[_0x9224('0x25')](_0x49bb81,_0x1a4504){if(_0x49bb81['is'](_0x9224('0xd3'),_0x9224('0xf8')))_0x1a4504['push']({'item':_0x49bb81,'type':_0x9224('0x40')});else{_0x49bb81['is'](_0x9224('0xd3'))&&_0x1a4504[_0x9224('0xd1')]({'item':_0x49bb81,'type':_0x9224('0x7a')});for(const _0x4f6d1b of _0x49bb81[_0x9224('0x8a')]())this['_generateTape'](_0x4f6d1b,_0x1a4504);_0x49bb81['is'](_0x9224('0xd3'))&&_0x1a4504['push']({'item':_0x49bb81,'type':_0x9224('0xbe')});}return _0x1a4504;}['_getState'](){const _0x41c0c8=new Map(this[_0x9224('0x5e')]),_0x5e104c=new Map(_0x41c0c8),_0x4c0d77=new Map(),_0x41b761={'insertions':{},'deletions':{}},_0xd76215={'insertions':{},'deletions':{}},_0x3a6766=new Map(),_0x374de8=new Set([...this[_0x9224('0x2c')]['keys'](),...this['_diffRoots'][_0x9224('0xa2')]()]);_0x374de8['delete'](_0x9224('0x98'));for(const _0x5d0276 of _0x374de8){const _0x3d1e45=this[_0x9224('0xef')][_0x9224('0x60')](_0x5d0276)||G(_0x5d0276,!0x1),_0x3eea3c=this['_baseRoots'][_0x9224('0x60')](_0x5d0276)||G(_0x5d0276,!0x1);_0x3d1e45['isAttached']()||_0x3eea3c[_0x9224('0x99')]()?(_0x41b761[_0x9224('0x29')][_0x5d0276]=q(_0x3d1e45),_0x41b761[_0x9224('0x50')][_0x5d0276]=q(_0x3eea3c),this[_0x9224('0x1f')](_0x41b761[_0x9224('0x50')][_0x5d0276],_0x3eea3c),this[_0x9224('0x1f')](_0x41b761[_0x9224('0x29')][_0x5d0276],_0x3d1e45),_0xd76215[_0x9224('0x29')][_0x5d0276]=this['_generateTape'](this['_idsRoots'][_0x9224('0x60')](_0x5d0276),[]),_0xd76215[_0x9224('0x50')][_0x5d0276]=this[_0x9224('0x25')](this['_baseIdsRoots']['get'](_0x5d0276)||G(_0x5d0276,!0x1),[])):_0x374de8[_0x9224('0x95')](_0x5d0276);}for(const _0xca3d41 of _0x374de8){const _0x564ace=_0xd76215[_0x9224('0x29')][_0xca3d41];for(const _0x5b2e37 of _0x564ace){const _0x4fae0e=this['_getVidAttributeName'](_0x5b2e37),_0x2ddd93=_0x5b2e37[_0x9224('0xf7')][_0x9224('0x75')](_0x4fae0e);_0x5e104c[_0x9224('0x95')](_0x2ddd93),_0x2ddd93>=this[_0x9224('0x49')]&&_0x4c0d77[_0x9224('0x3b')](_0x2ddd93,_0x41c0c8[_0x9224('0x60')](_0x2ddd93));}}for(const _0x389cea of _0x374de8){const _0x516be6=_0xd76215[_0x9224('0x29')][_0x389cea],_0x462b0f=this[_0x9224('0x10b')](_0xd76215['deletions'][_0x389cea]);let _0x5b1dd7=0x0;for(const _0xc428ba of _0x516be6){const _0x3421a2=this[_0x9224('0x7f')](_0xc428ba),_0x1b7acd=_0xc428ba[_0x9224('0xf7')][_0x9224('0x75')](_0x3421a2);if(!_0x4c0d77[_0x9224('0x8c')](_0x1b7acd)&&!_0x3a6766[_0x9224('0x8c')](_0x1b7acd)){if(_0x5e104c[_0x9224('0x8c')](_0x1b7acd))_0x5b1dd7++;else{if(_0x1b7acd!=_0x462b0f[_0x5b1dd7]){const _0x254b0d=_0x41c0c8['get'](_0x1b7acd)||_0x41c0c8[_0x9224('0x60')](_0x462b0f[_0x5b1dd7]);for(;_0x1b7acd!=_0x462b0f[_0x5b1dd7];)_0x5e104c[_0x9224('0x8c')](_0x462b0f[_0x5b1dd7])||(_0x3a6766[_0x9224('0x3b')](_0x462b0f[_0x5b1dd7],_0x254b0d),_0x41c0c8[_0x9224('0x3b')](_0x462b0f[_0x5b1dd7],_0x254b0d)),_0x5b1dd7++;}_0x5b1dd7++;}}}}for(const _0x3d30de of _0x374de8){const _0x3d029e=_0xd76215['insertions'][_0x3d30de];for(const _0x1b49c2 of _0x3d029e){const _0xc9002d=this[_0x9224('0x7f')](_0x1b49c2),_0xc8d74e=_0x1b49c2['item'][_0x9224('0x75')](_0xc9002d);if(_0x3a6766['has'](_0xc8d74e)){const _0x2d9cd5=_0x3a6766[_0x9224('0x60')](_0xc8d74e);_0x5e104c[_0x9224('0x8c')](_0xc8d74e)||_0x5e104c[_0x9224('0x3b')](_0xc8d74e,{..._0x2d9cd5}),_0x4c0d77[_0x9224('0x3b')](_0xc8d74e,{..._0x2d9cd5});}}}for(const _0x459df2 of _0x5e104c[_0x9224('0xa2')]())_0x459df2>=this[_0x9224('0x49')]&&_0x5e104c[_0x9224('0x95')](_0x459df2);const _0x450315=new Map();for(const _0x187284 of _0x374de8){let _0x44b485=_0xd76215[_0x9224('0x29')][_0x187284];for(const _0x3a5bff of _0x44b485)if(_0x3a5bff[_0x9224('0xf7')]['is'](_0x9224('0xd3'),'tableCell')){const _0x41d17b=this[_0x9224('0x7f')](_0x3a5bff),_0x47b8ba=_0x3a5bff[_0x9224('0xf7')][_0x9224('0x75')](_0x41d17b);if(_0x4c0d77[_0x9224('0x8c')](_0x47b8ba)){const _0x1976b6=_0x3a5bff[_0x9224('0xf7')][_0x9224('0x7c')][_0x9224('0x7c')]['getAttribute']('vid_start'),_0x5612dc=_0x450315[_0x9224('0x60')](_0x1976b6)||new Set();_0x5612dc[_0x9224('0x9d')](_0x4c0d77[_0x9224('0x60')](_0x47b8ba)[_0x9224('0x0')]),_0x450315[_0x9224('0x3b')](_0x1976b6,_0x5612dc);}}_0x44b485=_0xd76215[_0x9224('0x50')][_0x187284];for(const _0x4b4398 of _0x44b485)if(_0x4b4398[_0x9224('0xf7')]['is'](_0x9224('0xd3'),_0x9224('0xc0'))){const _0x38b615=this[_0x9224('0x7f')](_0x4b4398),_0x175a6e=_0x4b4398[_0x9224('0xf7')][_0x9224('0x75')](_0x38b615);if(_0x5e104c['has'](_0x175a6e)){const _0x43c9a6=_0x4b4398['item'][_0x9224('0x7c')]['parent'][_0x9224('0x75')](_0x9224('0xb1')),_0x2bf380=_0x450315['get'](_0x43c9a6)||new Set();_0x2bf380[_0x9224('0x9d')](_0x5e104c[_0x9224('0x60')](_0x175a6e)['userId']),_0x450315[_0x9224('0x3b')](_0x43c9a6,_0x2bf380);}}for(const _0x4d227b of _0x450315['keys']())(_0x4c0d77['has'](_0x4d227b)||_0x5e104c[_0x9224('0x8c')](_0x4d227b))&&_0x450315['delete'](_0x4d227b);}for(const _0x5702c1 of _0x374de8){const _0x3aa65c=_0xd76215[_0x9224('0x29')][_0x5702c1];let _0x22f303=null,_0x204ba5=null;for(const _0x43a054 of _0x3aa65c){const _0x47062c=this['_getVidAttributeName'](_0x43a054),_0xe54e48=_0x43a054['item'][_0x9224('0x75')](_0x47062c),_0x39ef9c=_0x450315[_0x9224('0x60')](_0xe54e48);_0x39ef9c&&_0x9224('0x7a')==_0x43a054['type']&&(_0x22f303=Array[_0x9224('0xd0')](_0x39ef9c)[0x0],_0x204ba5=_0x43a054[_0x9224('0xf7')][_0x9224('0x75')]('vid_end')),_0x22f303&&(_0x5e104c[_0x9224('0x3b')](_0xe54e48,{'userId':_0x22f303}),_0x4c0d77['set'](_0xe54e48,{'userId':_0x22f303})),_0xe54e48==_0x204ba5&&(_0x22f303=null,_0x204ba5=null);}}const _0x4f8bb2={},_0x303e90=new Set();for(const _0x45585e of _0x374de8){const _0x367f8b=_0x41b761[_0x9224('0x50')][_0x45585e],_0x5f05bc=_0x41b761['insertions'][_0x45585e];for(const {userId:_0x20db32}of this[_0x9224('0x14')][_0x9224('0x1e')]())null!==_0x20db32&&_0x303e90['add'](_0x20db32);for(const {userId:_0x2838a8}of this[_0x9224('0x2d')][_0x9224('0x1e')]())null!==_0x2838a8&&_0x303e90[_0x9224('0x9d')](_0x2838a8);this[_0x9224('0xb6')](_0x5f05bc,_0xd76215['insertions'][_0x45585e],_0x4c0d77,_0x9224('0xdb'),_0x303e90),this[_0x9224('0xb6')](_0x367f8b,_0xd76215['deletions'][_0x45585e],_0x5e104c,'deletion',_0x303e90),_0x4f8bb2[_0x45585e]={'insertions':this[_0x9224('0xee')](_0x5f05bc),'deletions':this['_prepareViewToSave'](_0x367f8b),'attachChange':this[_0x9224('0x2d')][_0x9224('0x60')](_0x45585e)||null,'attributesBefore':_0x42780f(this[_0x9224('0xdf')][_0x9224('0x60')](_0x45585e))||{},'attributesAfter':_0x42780f(this[_0x9224('0xc2')][_0x9224('0x60')](_0x45585e))};}return{'diffData':_0x4f8bb2,'authorsIds':Array[_0x9224('0xd0')](_0x303e90)};}[_0x9224('0xff')](_0x565ad5){for(const [,_0x253dd6]of _0x565ad5[_0x9224('0x4a')]){const _0xfffe95=_0x253dd6[_0x9224('0x1a')][_0x9224('0xa6')]()['filter'](_0x22ffd2=>_0x9224('0xc0')==_0x22ffd2['name']);for(const _0x119811 of _0xfffe95)0x1==_0x119811[_0x9224('0x3a')]&&_0x119811[_0x9224('0x10d')](0x0)['is'](_0x9224('0xd3'),'paragraph')&&_0x119811['getChild'](0x0)[_0x9224('0x2a')](_0x9224('0xb2'),!0x0);}}[_0x9224('0xee')](_0x2f65fa){this[_0x9224('0xff')](_0x2f65fa);const _0x52f4d0=this[_0x9224('0x3e')][_0x9224('0xad')][_0x9224('0xc4')](_0x2f65fa,{}),_0x1f9d1b=Array[_0x9224('0xd0')](_0x52f4d0[_0x9224('0x8a')]())[_0x9224('0xd2')](_0x9e8a6=>this[_0x9224('0x1c')](_0x9e8a6));return JSON[_0x9224('0xb7')](_0x1f9d1b);}['_getViewJson'](_0x4b8f95){if(_0x4b8f95['is'](_0x9224('0xf8')))return _0x4b8f95[_0x9224('0xad')];{const _0x3b83b0=_0x4b8f95;return{'type':Object[_0x9224('0xa2')](B)[_0x9224('0xe0')](_0x3681f0=>_0x4b8f95 instanceof B[_0x3681f0]),'name':_0x3b83b0['name'],'attributes':Array[_0x9224('0xd0')](_0x3b83b0[_0x9224('0x10a')]()),'children':Array['from'](_0x3b83b0['getChildren']())[_0x9224('0xd2')](_0x27809b=>this[_0x9224('0x1c')](_0x27809b))};}}[_0x9224('0xb6')](_0x37e657,_0x456af3,_0x28a8d8,_0x2488b6,_0x48ac25){let _0x4e8136=null,_0x55a2fe=null,_0x168c54=0x0;const _0x1b7c7d=this['editor'][_0x9224('0xaa')];for(let _0x46a621=0x0;_0x46a621<_0x456af3[_0x9224('0xf4')];_0x46a621++){const _0x55173b=this[_0x9224('0x7f')](_0x456af3[_0x46a621]),_0x3d8df0=_0x456af3[_0x46a621][_0x9224('0xf7')][_0x9224('0x75')](_0x55173b),_0xb2f66f=_0x28a8d8[_0x9224('0x60')](_0x3d8df0),_0x1a2ffa=_0x46a621==_0x456af3[_0x9224('0xf4')]-0x1;(!_0x4e8136&&_0xb2f66f&&(_0x4e8136=_0xb2f66f,_0x55a2fe=_0x456af3[_0x46a621]),_0x4e8136&&(!_0xb2f66f||_0xb2f66f['userId']!=_0x4e8136['userId']))&&(_0x5556b7(_0xb2f66f,L(_0x55a2fe,_0x37e657,_0x1b7c7d),L(_0x456af3[_0x46a621],_0x37e657,_0x1b7c7d)),_0x4e8136=_0xb2f66f||null,_0x55a2fe=_0xb2f66f?_0x456af3[_0x46a621]:null),_0x4e8136&&_0x1a2ffa&&_0x5556b7(_0xb2f66f,L(_0x55a2fe,_0x37e657,_0x1b7c7d),W(_0x456af3[_0x46a621],_0x37e657,_0x1b7c7d));}function _0x5556b7(_0x58e93f,_0x339b75,_0x26d393){const _0x4d757b=_0x4e8136[_0x9224('0x0')],_0x4ecf85=_0x9224('0x8f')+_0x2488b6+':'+_0x4d757b+':'+_0x168c54++,_0x91df4e=_0x1b7c7d[_0x9224('0x32')](_0x339b75,_0x26d393);_0x37e657[_0x9224('0x4a')][_0x9224('0x3b')](_0x4ecf85,_0x91df4e),null!==_0x4d757b&&_0x48ac25['add'](_0x4d757b);}}[_0x9224('0x7f')](_0x555911){switch(_0x555911[_0x9224('0x93')]){case _0x9224('0x7a'):return'vid_start';case _0x9224('0xbe'):return _0x9224('0xcf');default:return _0x9224('0x2f');}}[_0x9224('0xf9')](_0xf3589,_0x50904c){_0xf3589['baseVersion']=null;for(const _0x1c9f29 in _0xf3589){const _0x43dc6c=_0xf3589[_0x1c9f29];if(_0x43dc6c instanceof _0x337c7d){const _0x2d1ad2=_0x50904c[_0x9224('0x60')](_0x43dc6c[_0x9224('0x1d')][_0x9224('0x72')]);_0xf3589[_0x1c9f29]=this['_fixPosition'](_0x43dc6c,_0x2d1ad2);}if(_0x43dc6c instanceof _0x1ce991){const _0x1447a0=_0x50904c[_0x9224('0x60')](_0x43dc6c[_0x9224('0x1d')][_0x9224('0x72')]);_0xf3589[_0x1c9f29]=this[_0x9224('0x62')](_0x43dc6c,_0x1447a0);}_0x9224('0x1d')===_0x1c9f29&&(_0xf3589[_0x9224('0x1d')]=_0x50904c[_0x9224('0x60')](_0xf3589['root'][_0x9224('0x72')]));}}[_0x9224('0x62')](_0x38edc5,_0x1538c6){return this[_0x9224('0x3e')][_0x9224('0xaa')][_0x9224('0x32')](this[_0x9224('0xc9')](_0x38edc5[_0x9224('0x1a')],_0x1538c6),this[_0x9224('0xc9')](_0x38edc5['end'],_0x1538c6));}[_0x9224('0xc9')](_0xaa61a5,_0xd7034){return this[_0x9224('0x3e')]['model'][_0x9224('0x89')](_0xd7034,_0xaa61a5['path'],_0xaa61a5[_0x9224('0xfb')]);}[_0x9224('0x77')](_0x27dd8b){const _0x5e0709=this[_0x9224('0x43')][_0x9224('0x60')](_0x27dd8b[_0x9224('0x55')][_0x9224('0x1d')][_0x9224('0x72')]),_0x52c01c=this[_0x9224('0xc9')](_0x27dd8b[_0x9224('0x55')],_0x5e0709),_0x3a558e=null===_0x27dd8b['_authorId']?null:_0x27dd8b['_authorId']||this[_0x9224('0x3e')][_0x9224('0xc7')][_0x9224('0x60')](_0x9224('0x4f'))['me']['id'],_0x31d56c=_0x52c01c[_0x9224('0x7c')],_0xabaceb=this[_0x9224('0xe4')],_0x2d74fb=[];for(const _0xe2cdc7 of _0x27dd8b[_0x9224('0x61')])if(_0xe2cdc7['is'](_0x9224('0xd3')))_0x2d74fb['push'](this['_makeIdsRoot'](_0xe2cdc7));else for(let _0x288fbb=0x0;_0x288fbb<_0xe2cdc7[_0x9224('0xaf')];_0x288fbb++)_0x2d74fb[_0x9224('0xd1')](new _0x1b1112('$text',{'vid':this[_0x9224('0xe4')]++}));const _0x569555=this[_0x9224('0xe4')];for(let _0x820c1c=_0xabaceb;_0x820c1c<_0x569555;_0x820c1c++)this[_0x9224('0x5e')][_0x9224('0x3b')](_0x820c1c,{'userId':_0x3a558e});_0x31d56c[_0x9224('0x35')](_0x52c01c[_0x9224('0x39')],_0x2d74fb);}['_handleMoveOperation'](_0x59628d){(_0x59628d=this[_0x9224('0x44')](_0x59628d,this['_idsRoots']))[_0x9224('0xa3')]();const _0x17a960=null===_0x59628d[_0x9224('0xac')]?null:_0x59628d[_0x9224('0xac')]||this[_0x9224('0x3e')][_0x9224('0xc7')][_0x9224('0x60')](_0x9224('0x4f'))['me']['id'],_0x95eb95=_0x59628d[_0x9224('0xcd')](),_0x4564db=_0x95eb95[_0x9224('0x7c')],_0x5079ce=_0x95eb95[_0x9224('0x39')];!function _0xfa5ba2(_0x503cdb,_0x125107,_0x9813e2,_0x1f951d){for(let _0x2a5a1a=_0x9813e2;_0x2a5a1a<_0x1f951d;_0x2a5a1a++){const _0x351d36=_0x125107[_0x9224('0x10d')](_0x2a5a1a);_0x351d36['is']('element','$text')?_0x503cdb[_0x9224('0x3b')](_0x351d36[_0x9224('0x75')](_0x9224('0x2f')),{'userId':_0x17a960}):(_0x503cdb[_0x9224('0x3b')](_0x351d36[_0x9224('0x75')](_0x9224('0xb1')),{'userId':_0x17a960}),_0xfa5ba2(_0x503cdb,_0x351d36,0x0,_0x351d36['childCount']),_0x503cdb[_0x9224('0x3b')](_0x351d36[_0x9224('0x75')]('vid_end'),{'userId':_0x17a960}));}}(this[_0x9224('0x5e')],_0x4564db,_0x5079ce,_0x5079ce+_0x59628d[_0x9224('0x78')]);}[_0x9224('0xf3')](_0x375121){const _0x5eac64=null===(_0x375121=this['_cloneOperation'](_0x375121,this[_0x9224('0x43')]))[_0x9224('0xac')]?null:_0x375121[_0x9224('0xac')]||this[_0x9224('0x3e')][_0x9224('0xc7')]['get'](_0x9224('0x4f'))['me']['id'],_0x1e9456=_0x375121[_0x9224('0xc5')][_0x9224('0x7c')],_0x1ce214=_0x375121[_0x9224('0x1')]['parent'],_0x25f715=_0x1e9456[_0x9224('0x75')]('vid_end'),_0x269fa7=_0x1ce214[_0x9224('0x75')]('vid_start');_0x1e9456[_0x9224('0x2a')](_0x9224('0xcf'),_0x1ce214['getAttribute'](_0x9224('0xcf'))),_0x1ce214[_0x9224('0x2a')]('vid_end',_0x25f715),this[_0x9224('0x5e')]['set'](_0x269fa7,{'userId':_0x5eac64}),this[_0x9224('0x5e')][_0x9224('0x3b')](_0x25f715,{'userId':_0x5eac64}),_0x375121['_execute']();}[_0x9224('0xf0')](_0x5460b7){const _0x350f1a=null===(_0x5460b7=this[_0x9224('0x44')](_0x5460b7,this[_0x9224('0x43')]))[_0x9224('0xac')]?null:_0x5460b7[_0x9224('0xac')]||this['editor'][_0x9224('0xc7')][_0x9224('0x60')](_0x9224('0x4f'))['me']['id'],_0x2d0009=_0x5460b7[_0x9224('0x28')],_0x4d2af2=_0x5460b7[_0x9224('0x68')][_0x9224('0x7c')];_0x5460b7[_0x9224('0xa3')]();const _0x14434b=_0x4d2af2['getAttribute']('vid_end'),_0x1ba2a2=_0x5460b7[_0x9224('0xba')][_0x9224('0xa4')];if(_0x2d0009){const _0x2f0d79=_0x1ba2a2[_0x9224('0x75')]('vid_end'),_0x2c6015=_0x4d2af2[_0x9224('0x75')](_0x9224('0xcf'));_0x4d2af2[_0x9224('0x2a')]('vid_end',_0x2f0d79),_0x1ba2a2[_0x9224('0x2a')](_0x9224('0xcf'),_0x2c6015),this['_touched'][_0x9224('0x3b')](_0x4d2af2[_0x9224('0x75')](_0x9224('0xcf')),{'userId':_0x350f1a}),this['_touched'][_0x9224('0x3b')](_0x1ba2a2[_0x9224('0x75')](_0x9224('0xb1')),{'userId':_0x350f1a});}else{const _0x454e6e=this['_revisionId']++,_0x3b6393=this[_0x9224('0xe4')]++;_0x4d2af2[_0x9224('0x2a')](_0x9224('0xcf'),_0x454e6e),_0x1ba2a2['_setAttribute'](_0x9224('0xb1'),_0x3b6393),_0x1ba2a2[_0x9224('0x2a')](_0x9224('0xcf'),_0x14434b),this[_0x9224('0x5e')][_0x9224('0x3b')](_0x454e6e,{'userId':_0x350f1a}),this['_touched'][_0x9224('0x3b')](_0x3b6393,{'userId':_0x350f1a});}}[_0x9224('0xc3')](_0x208d94){if(!_0x208d94['affectsData'])return;const _0x2b3c06=(_0x208d94=this[_0x9224('0x44')](_0x208d94,this[_0x9224('0xef')]))[_0x9224('0xc8')]?_0x208d94['oldRange'][_0x9224('0x1d')]:null,_0x862e26=_0x208d94[_0x9224('0xa5')]?_0x208d94[_0x9224('0xa5')]['root']:null;_0x2b3c06&&this[_0x9224('0xf5')][_0x9224('0x95')](_0x208d94[_0x9224('0xe2')]),_0x862e26&&this[_0x9224('0xf5')][_0x9224('0x3b')](_0x208d94['name'],_0x208d94[_0x9224('0xa5')][_0x9224('0x8')]());const _0x2d781c=null===_0x208d94[_0x9224('0xac')]?null:_0x208d94[_0x9224('0xac')]||this[_0x9224('0x3e')]['plugins'][_0x9224('0x60')](_0x9224('0x4f'))['me']['id'],_0x2e86a0=_0x208d94[_0x9224('0xe2')];if(!this[_0x9224('0x14')][_0x9224('0x8c')](_0x2e86a0))return void this['_touchedMarkers']['set'](_0x2e86a0,{'range':_0x208d94[_0x9224('0xc8')],'userId':_0x2d781c});const _0x3352a5=this[_0x9224('0x14')][_0x9224('0x60')](_0x2e86a0),_0xf4d3b4=_0x3352a5[_0x9224('0x5b')],_0x58f4c4=_0x208d94[_0x9224('0xa5')];null==_0xf4d3b4&&null==_0x58f4c4||_0xf4d3b4&&_0x58f4c4&&_0xf4d3b4[_0x9224('0x51')](_0x58f4c4)?this[_0x9224('0x14')]['delete'](_0x208d94[_0x9224('0xe2')]):_0x3352a5[_0x9224('0x0')]=_0x2d781c;}[_0x9224('0xe')](_0x46b33d,_0x5a0288){this['_diffRoots'][_0x9224('0x8c')](_0x46b33d[_0x9224('0x72')])?this[_0x9224('0xef')][_0x9224('0x60')](_0x46b33d[_0x9224('0x72')])[_0x9224('0xa0')]=_0x46b33d[_0x9224('0xd5')]:(this[_0x9224('0xef')][_0x9224('0x3b')](_0x46b33d['rootName'],G(_0x46b33d[_0x9224('0x72')],!0x0)),this['_diffRootsAttributes']['set'](_0x46b33d[_0x9224('0x72')],{}),_0x5a0288&&this['_idsRoots'][_0x9224('0x3b')](_0x46b33d['rootName'],G(_0x46b33d[_0x9224('0x72')],!0x0)));const _0x2998e4=null===_0x46b33d[_0x9224('0xac')]?null:_0x46b33d[_0x9224('0xac')]||this[_0x9224('0x3e')][_0x9224('0xc7')]['get'](_0x9224('0x4f'))['me']['id'],_0x589bc8=this[_0x9224('0x2d')][_0x9224('0x60')](_0x46b33d[_0x9224('0x72')]);_0x589bc8&&_0x589bc8['userId']===_0x2998e4?this[_0x9224('0x2d')]['delete'](_0x46b33d[_0x9224('0x72')]):this[_0x9224('0x2d')]['set'](_0x46b33d[_0x9224('0x72')],{'userId':_0x2998e4,'isAttached':_0x46b33d['isAdd']});}['_handleRootAttributeOperation'](_0x3ae26e){const _0x2a8c8f=this[_0x9224('0xc2')][_0x9224('0x60')](_0x3ae26e['root'][_0x9224('0x72')]);null===_0x3ae26e[_0x9224('0x105')]?delete _0x2a8c8f[_0x3ae26e[_0x9224('0xc1')]]:_0x2a8c8f[_0x3ae26e[_0x9224('0xc1')]]=_0x3ae26e[_0x9224('0x105')];}}function q(_0x325774){const _0xce684=G(_0x325774[_0x9224('0x72')],_0x325774[_0x9224('0x99')]());for(const _0x14345d of _0x325774[_0x9224('0x8a')]()){const _0x4d1199=_0x14345d[_0x9224('0x107')](!0x0);_0xce684[_0x9224('0xe8')](_0x4d1199);}return _0xce684;}function G(_0xfb4538,_0xf013cd=!0x0){const _0x850190=new _0x5c86e9();return _0x850190[_0x9224('0x72')]=_0xfb4538,_0x850190[_0x9224('0xa0')]=_0xf013cd,_0x850190[_0x9224('0x99')]=()=>_0x850190[_0x9224('0xa0')],_0x850190;}function L(_0x39b348,_0x3e9864,_0x930b91){const _0x320fd0=_0x9224('0xbe')==_0x39b348['type']?_0x930b91[_0x9224('0x12')](_0x39b348[_0x9224('0xf7')],_0x9224('0x9c')):_0x930b91[_0x9224('0x46')](_0x39b348[_0x9224('0xf7')]);return _0x930b91[_0x9224('0x89')](_0x3e9864,_0x320fd0[_0x9224('0x83')],_0x320fd0[_0x9224('0xfb')]);}function W(_0x5a9c61,_0xf6c12a,_0x2de685){const _0x77a1e3=_0x9224('0x7a')==_0x5a9c61[_0x9224('0x93')]?_0x2de685['createPositionAt'](_0x5a9c61['item'],0x0):_0x2de685[_0x9224('0x9b')](_0x5a9c61[_0x9224('0xf7')]);return _0x2de685[_0x9224('0x89')](_0xf6c12a,_0x77a1e3[_0x9224('0x83')],_0x77a1e3[_0x9224('0xfb')]);}
23
+ const _0x2b3c=['name','getTransformedByOperation','_authorId','_removeMetaData','editor','addRevisionData','processor','_replaceEditorDataWithRevisionData','add','createPositionAt','define','locale','_markers','_fixRange','fromVersion','getRootNames','getAttributes','for','offset','newRange','max','toData','forEach','userId','_baseIdsRoots','_createFromRanges','toView','rootsAttributes','plugins','_isAttached','newValue','source','keepParagraph','creatorId','getRevisionRootsAttributes','view','vid_end','_lastTo','find','set','sendBufferedUpdates','resolve','sourcePosition','_transformMarkers','_handleRootAttributeOperation','model','_createCurrentRevision','setSource','insertion','filter','afterInit','stringify','_saveMetaData','_baseRootsAttributes','revisionHistory.resumeUnsavedRevision','_handleMoveOperation','element','adapter','_clone','getUser','_copyMarkers','editing','path','_source','some','isReady','document','documentFragment','baseVersion','authors','_bufferUpdate','reInit','init','rootName','_getViewJson','update','conversion','attributesBefore','_getState','getRoot','loadState','_fixOperation','position','merge','hasContent','_pendingAction','markers','createRange','getRevision','_touched','pluginName','vid_start','_findInsertionIndex','$graveyard','_makeRevision','end','includes','keys','createPositionFromPath','getRevisions','push','getWalker','creator','RevisionTracker','delete','revision-end','values','stickiness','_initialRevisionId','_idsRoots','addRevision','createdAt','_isInit','splitPosition','initial','_touchedMarkers','_getPreviousFrom','_baseRoots','authorsIds','getLatestVersion','changeRootAttribute','getAttribute','elementEnd','isEqual','getChild','repository','_loadState','_makeModelFromViewString','key','attachChange','_setConversion','children','getChildren','finally','_loadRevisionData','_touchedRoots','_savedMetaData','string','roots','_execute','getData','size','childCount','get','dataToMarker','_prepareViewToSave','getOperation','_reset','oldRange','_fixPosition','Empty\x20document','NEGATIVE_INFINITY','Users','deletion','bind','_handleRootOperation','marker','requires','remove','_startingVersion','revision-start','toVersion','nodes','revision','insert','buildRevisionData','previousPosition','_diffRoots','_addPendingAction','getNodeByPath','history','start','_getBaseVids','elementStart','RevisionsRepository','_removePendingAction','type','getOperations','Initial\x20revision','currentRevision','removeRootAttribute','_diffRootsAttributes','_applyOperations','getRevisionDocumentData','item','_update','_setAttribute','then','_loadedStateData','_markChanges','_continueCurrentRevision','addRootAttribute','insertionPosition','_handleMarkerOperation','ready','attributesAfter','upcast','_makeIdsRoot','_calculateMetaData','$text','toModel','_handleInsertOperation','startsWith','isAdd','graveyardPosition','_startingRevisionId','_revisionId','getRange','nodeAfter','setRevisionData','saveRevision','_handleOperation','revision:','reverse','_insertChild','PendingActions','_cloneOperation','_bufferedUpdates','deletions','_getFromVersion','length','paragraph','targetPosition','tableCell','root','_lastFrom','affectsData','markerToData','clone','createRevision','config','from','_handleSplitOperation','collaboration.channelId','vid','_getVidAttributeName','_generateTape','clear','getMovedRangeStart','split','getCurrentRevisionId','map','_removeRevisionMarkers','PENDING_ACTION_REVISION_HISTORY','isAttached','data','slice','diffData','_revisionDataBuilder','initialData','parent','offsetSize','editor-initial-data-replaced-with-revision-data','_processRootBeforeSave','useFillerType','_createInitialRevision','_isPendingUpdate','reinsert','_handleMergeOperation','has','version','parse','insertions'];(function(_0x5b2119,_0x2b3c93){const _0x4aac28=function(_0x531437){while(--_0x531437){_0x5b2119['push'](_0x5b2119['shift']());}};_0x4aac28(++_0x2b3c93);}(_0x2b3c,0x1e3));const _0x4aac=function(_0x5b2119,_0x2b3c93){_0x5b2119=_0x5b2119-0x0;let _0x4aac28=_0x2b3c[_0x5b2119];return _0x4aac28;};import{Users as _0x67db30}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x37b6b5,PendingActions as _0x2d395d}from'ckeditor5/src/core';import{logWarning as _0x405653,uid as _0x12c7b0}from'ckeditor5/src/utils';import{Position as _0x39217c,Range as _0xde2b77,Element as _0x5edf95,DocumentFragment as _0x54e3f3,ViewText as _0x29b519,ViewElement as _0x328351,ViewContainerElement as _0x129b3f,ViewAttributeElement as _0x17b23f,ViewEmptyElement as _0x55616b,ViewRawElement as _0x255c2a,ViewUIElement as _0x1e3f63,ViewDocumentFragment as _0x1c0f09}from'ckeditor5/src/engine';import _0x14622a from'./revisionsrepository';import{getTranslation as _0x50a069}from'./utils/common-translations';import{cloneDeep as _0x2c2fc7,isEqual as _0x260448}from'lodash-es';const B={'c':_0x129b3f,'a':_0x17b23f,'e':_0x55616b,'r':_0x255c2a,'u':_0x1e3f63};export default class l extends _0x37b6b5{static get[_0x4aac('0x85')](){return _0x4aac('0x92');}static get[_0x4aac('0xc8')](){return[_0x67db30,_0x14622a,_0x2d395d];}constructor(_0x428c07){super(_0x428c07),this['adapter']=null,this['currentRevision']=null,this[_0x4aac('0x1c')]=new H(this[_0x4aac('0x2f')]),this[_0x4aac('0x97')]=this[_0x4aac('0x2f')][_0x4aac('0xa')]['get'](_0x4aac('0xd'))||_0x4aac('0x9d'),this['_bufferedUpdates']=new Map(),this[_0x4aac('0xe7')]=null;const _0x3bc019=_0x12c7b0();this[_0x4aac('0x6a')]={'history':this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['history'],'getLatestVersion':()=>Promise[_0x4aac('0x54')](this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['version']),'getCurrentRevisionId':()=>_0x3bc019},this[_0x4aac('0x52')]('isReady',!0x1),this[_0x4aac('0x52')]('isEnabled',!0x0),this[_0x4aac('0x52')](_0x4aac('0x24'),!0x1),this['editor'][_0x4aac('0xa')][_0x4aac('0x35')](_0x4aac('0x61'),!0x0),this[_0x4aac('0x2f')]['conversion']['for'](_0x4aac('0xef'))[_0x4aac('0xbb')]({'view':_0x4aac('0xce')});}['init'](){this[_0x4aac('0xa8')]=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xd9')),this[_0x4aac('0xad')](),this[_0x4aac('0x2f')]['data']['on'](_0x4aac('0xed'),()=>{const _0x3307e3=this[_0x4aac('0xa8')]['getRevision'](0x0),_0x484c8f=_0x3307e3&&null===_0x3307e3[_0x4aac('0x91')]?_0x3307e3:null;if(this[_0x4aac('0xe9')]=!!_0x484c8f&&this[_0x4aac('0x2f')]['config'][_0x4aac('0xba')](_0x4aac('0x61')),this[_0x4aac('0x2f')][_0x4aac('0x47')]['has']('RealTimeCollaborationClient')){const _0x3ab54b=this[_0x4aac('0x6a')][_0x4aac('0x14')](),_0xcd416d=this[_0x4aac('0xa8')][_0x4aac('0x83')](_0x3ab54b);if(_0xcd416d)this[_0x4aac('0xca')]=_0xcd416d[_0x4aac('0x39')],this[_0x4aac('0xe9')]=!0x1;else{const _0x20a74b=this[_0x4aac('0x6a')][_0x4aac('0xd5')]['_operations']['find'](_0xdcf17f=>!_0xdcf17f[_0x4aac('0x9b')]),_0x36dde8=_0x20a74b?_0x20a74b[_0x4aac('0x6f')]:this[_0x4aac('0x6a')][_0x4aac('0xd5')][_0x4aac('0x28')];_0x3307e3?(_0x3307e3['toVersion']<_0x36dde8&&_0x3307e3['_update']({'toVersion':_0x36dde8}),this[_0x4aac('0xe9')]?(this['_source'][_0x4aac('0x14')]=()=>_0x484c8f['id'],this[_0x4aac('0xca')]=_0x484c8f[_0x4aac('0x39')]):(this[_0x4aac('0xca')]=_0x3307e3[_0x4aac('0xcc')],this['_continueCurrentRevision']=!0x1)):(this[_0x4aac('0xca')]=_0x36dde8,this[_0x4aac('0xe9')]=!0x1);}}else _0x484c8f&&(this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')][_0x4aac('0xd5')]['version']=Math[_0x4aac('0x3f')](_0x484c8f[_0x4aac('0xcc')],this['editor'][_0x4aac('0x58')][_0x4aac('0x6d')][_0x4aac('0xd5')][_0x4aac('0x28')]),_0x484c8f[_0x4aac('0x39')]===_0x484c8f[_0x4aac('0xcc')]?(0x0!==_0x484c8f[_0x4aac('0x39')]&&(this[_0x4aac('0x6a')]['getCurrentRevisionId']=()=>_0x484c8f['id']),this[_0x4aac('0xe9')]=!0x1):this[_0x4aac('0xe9')]&&(this[_0x4aac('0x6a')]['getCurrentRevisionId']=()=>_0x484c8f['id'],this[_0x4aac('0xca')]=_0x484c8f[_0x4aac('0x39')])),this['_continueCurrentRevision']||(this['_startingVersion']=this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')][_0x4aac('0x28')]);this[_0x4aac('0x1c')][_0x4aac('0x73')](this[_0x4aac('0x6a')][_0x4aac('0xd5')]),this[_0x4aac('0x23')](this[_0x4aac('0xca')]),this[_0x4aac('0x59')](this[_0x4aac('0xca')]),this[_0x4aac('0x64')]&&this[_0x4aac('0x53')]();}),this[_0x4aac('0xc5')](_0x4aac('0x6c'))['to'](this,_0x4aac('0x24'),_0x39aa0d=>!_0x39aa0d);}async[_0x4aac('0x5d')](){if(this[_0x4aac('0xa8')][_0x4aac('0x0')]>0x0){const _0x321fd0=this['repository'][_0x4aac('0x83')](0x0),_0x437ea8=await this['getRevisionDocumentData'](_0x321fd0),_0x1ec4fb=await this[_0x4aac('0x4d')](_0x321fd0);this[_0x4aac('0x32')](_0x437ea8,_0x1ec4fb);}}[_0x4aac('0x5a')](_0x1ecbf9){this[_0x4aac('0x6a')]=_0x1ecbf9;}async[_0x4aac('0x76')](){const _0x26b894=await this[_0x4aac('0x6a')]['getLatestVersion']();if(_0x26b894>this['currentRevision'][_0x4aac('0xcc')]){await this['_loadState']();const _0x1c1851=this[_0x4aac('0xd0')]({'revision':this[_0x4aac('0xde')],'to':_0x26b894});_0x1c1851[_0x4aac('0x70')]=_0x1c1851[_0x4aac('0xa1')]['map'](_0x4b6a55=>this[_0x4aac('0x2f')][_0x4aac('0x47')]['get'](_0x4aac('0xc3'))['getUser'](_0x4b6a55)),this[_0x4aac('0xde')][_0x4aac('0xe4')](_0x1c1851);}}async[_0x4aac('0xa9')](){this[_0x4aac('0xe9')]&&!this[_0x4aac('0xe7')]&&(await this['_loadRevisionData'](this[_0x4aac('0xde')]),this[_0x4aac('0x1c')][_0x4aac('0x7b')](this[_0x4aac('0xde')]),this[_0x4aac('0xe7')]={'fromVersion':this[_0x4aac('0xde')][_0x4aac('0x39')],'authors':this[_0x4aac('0xde')][_0x4aac('0x70')]['slice']()});}async[_0x4aac('0xfd')](_0xc21f76={},_0xe7a2ee=null){const _0x2d5ff3=[];await this[_0x4aac('0xa9')](),this[_0x4aac('0xe9')]=!0x1,_0xe7a2ee>this[_0x4aac('0xde')][_0x4aac('0xcc')]&&(_0xe7a2ee=null),null===_0xe7a2ee&&(_0xe7a2ee=await this['_source'][_0x4aac('0xa2')]());const _0x1ca04a=this[_0x4aac('0x106')](_0xe7a2ee),_0x5917b2=this['buildRevisionData']({'from':_0x1ca04a,'to':_0xe7a2ee});if(this[_0x4aac('0xde')][_0x4aac('0xcc')]<_0xe7a2ee){const _0x1c36c7=this['buildRevisionData']({'revision':this[_0x4aac('0xde')],'from':_0xe7a2ee,'to':_0xe7a2ee});_0x1c36c7['authors']=[],_0x1c36c7[_0x4aac('0xa1')]=[],_0x1c36c7['id']=this[_0x4aac('0xde')]['id'],this[_0x4aac('0xde')]['_update'](_0x1c36c7,!0x0),delete _0x1c36c7['authors'],_0x2d5ff3[_0x4aac('0x8f')](_0x1c36c7);}_0xc21f76[_0x4aac('0x4c')]=this[_0x4aac('0x2f')][_0x4aac('0x47')]['get'](_0x4aac('0xc3'))['me']['id'],_0xc21f76['name']=_0xc21f76['name']||null,_0xc21f76['id']=_0xc21f76['id']||_0x12c7b0(),_0xc21f76={..._0xc21f76,..._0x5917b2};const _0xc7802=this[_0x4aac('0x30')](_0xc21f76);_0x2d5ff3['push'](_0xc21f76);const _0x5039b1=this[_0x4aac('0xa8')]['getIndex'](_0xc7802);if(0x0!==_0x5039b1){const _0x10ac15=this[_0x4aac('0xa8')]['getRevision'](_0x5039b1-0x1);if(_0x10ac15[_0x4aac('0x39')]!==_0xe7a2ee){const _0x3537bc=this['_revisionDataBuilder']['getData'](_0xe7a2ee,_0x10ac15['toVersion']),_0x326764={'id':_0x10ac15['id'],'diffData':_0x3537bc[_0x4aac('0x1b')],'authorsIds':_0x3537bc['authorsIds'],'authors':_0x3537bc['authorsIds'][_0x4aac('0x15')](_0x3add36=>this['editor'][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))[_0x4aac('0x66')](_0x3add36)),'fromVersion':_0xe7a2ee};_0x10ac15===this[_0x4aac('0xde')]&&(_0x326764[_0x4aac('0x9a')]=new Date(_0xc21f76['createdAt']['getTime']()+0xa)),_0x10ac15[_0x4aac('0xe4')](_0x326764,!0x0),delete _0x326764[_0x4aac('0x70')],_0x2d5ff3[_0x4aac('0x8f')](_0x326764);}}if(this[_0x4aac('0x64')]){for(const _0x2c125d of _0x2d5ff3)this[_0x4aac('0x71')](_0x2c125d['id'],_0x2c125d,!0x0);this[_0x4aac('0x53')]();}return _0xc7802;}[_0x4aac('0x30')](_0x38c849){const _0x41db76=this['repository'][_0x4aac('0x9')](_0x38c849);return this[_0x4aac('0x64')]&&_0x41db76['on'](_0x4aac('0xe4'),(_0x3c7447,_0x204837,_0x4a1819)=>{_0x4a1819||(this[_0x4aac('0x71')](_0x204837['id'],_0x204837,!0x0),this[_0x4aac('0x53')]());}),this['repository'][_0x4aac('0x99')](_0x41db76,this[_0x4aac('0x87')](_0x41db76)),_0x41db76;}async[_0x4aac('0xe2')](_0x51e7ad){await this[_0x4aac('0xb1')](_0x51e7ad);const _0x4fd400={};for(const _0x107578 in _0x51e7ad['diffData']){if(_0x51e7ad[_0x4aac('0x1b')][_0x107578]['attachChange']&&!_0x51e7ad[_0x4aac('0x1b')][_0x107578][_0x4aac('0xac')][_0x4aac('0x18')])continue;const _0x437aeb=this['_removeRevisionMarkers'](JSON['parse'](_0x51e7ad[_0x4aac('0x1b')][_0x107578][_0x4aac('0x2a')])),_0x4ac8b0=this[_0x4aac('0x2f')]['editing']['view'][_0x4aac('0x6d')],_0x194099=new _0x1c0f09(_0x4ac8b0,_0x437aeb[_0x4aac('0x15')](_0x20f0c5=>J(_0x20f0c5,this['editor'])));this[_0x4aac('0x2f')][_0x4aac('0x19')][_0x4aac('0x31')]['useFillerType']('marked'),_0x4fd400[_0x107578]=this[_0x4aac('0x2f')][_0x4aac('0x19')][_0x4aac('0x31')][_0x4aac('0x40')](_0x194099),this[_0x4aac('0x2f')][_0x4aac('0x19')]['processor'][_0x4aac('0x22')]('default');}return _0x4fd400;}async['getRevisionRootsAttributes'](_0x3abd69){await this['_loadRevisionData'](_0x3abd69);const _0x402d37={};for(const _0x69c7d in _0x3abd69['diffData'])_0x3abd69['diffData'][_0x69c7d][_0x4aac('0xac')]&&!_0x3abd69[_0x4aac('0x1b')][_0x69c7d][_0x4aac('0xac')][_0x4aac('0x18')]||(_0x402d37[_0x69c7d]=_0x3abd69[_0x4aac('0x1b')][_0x69c7d][_0x4aac('0xee')]||{});return _0x402d37;}['sendBufferedUpdates'](){if(0x0===this[_0x4aac('0x104')][_0x4aac('0xb8')])return;if(this[_0x4aac('0x24')])return;let _0x527d26=Array[_0x4aac('0xb')](this[_0x4aac('0x104')][_0x4aac('0x95')]());this[_0x4aac('0x104')][_0x4aac('0x11')]();for(let _0x55f7eb=0x0;_0x55f7eb<_0x527d26[_0x4aac('0x0')];_0x55f7eb++){const _0x2edb55=_0x527d26[_0x55f7eb];let _0x5da2d4=!0x1;for(const _0x4b618e of Object[_0x4aac('0x8c')](_0x2edb55))void 0x0===_0x2edb55[_0x4b618e]?delete _0x2edb55[_0x4b618e]:'id'!==_0x4b618e&&(_0x5da2d4=!0x0);_0x5da2d4||(_0x527d26[_0x55f7eb]=null);}if(_0x527d26=_0x527d26[_0x4aac('0x5c')](_0x2839b4=>null!==_0x2839b4),!_0x527d26[_0x4aac('0x0')])return;for(let _0x4e0f75=0x0;_0x4e0f75<_0x527d26[_0x4aac('0x0')];_0x4e0f75++){const _0x3e0256=_0x527d26[_0x4e0f75];void 0x0!==_0x3e0256[_0x4aac('0x39')]&&void 0x0===_0x3e0256[_0x4aac('0xcc')]&&(_0x3e0256[_0x4aac('0xcc')]=this[_0x4aac('0xa8')][_0x4aac('0x83')](_0x3e0256['id'])[_0x4aac('0xcc')]),void 0x0!==_0x3e0256[_0x4aac('0xcc')]&&void 0x0===_0x3e0256[_0x4aac('0x39')]&&(_0x3e0256[_0x4aac('0x39')]=this[_0x4aac('0xa8')]['getRevision'](_0x3e0256['id'])['fromVersion']);}const _0x53f8f2=this[_0x4aac('0x2f')][_0x4aac('0xa')]['get']('collaboration.channelId');this[_0x4aac('0x24')]=!0x0,this[_0x4aac('0xd3')](),this['adapter']['updateRevisions'](_0x527d26,_0x53f8f2)[_0x4aac('0xb0')](()=>{this[_0x4aac('0x24')]=!0x1;})[_0x4aac('0xe6')](_0x3a6cff=>{if(_0x3a6cff)for(const _0x379fb4 of _0x3a6cff)this[_0x4aac('0xfc')]({'id':_0x379fb4['id'],'createdAt':_0x379fb4[_0x4aac('0x9a')]});this[_0x4aac('0xda')](),this[_0x4aac('0x53')]();});}[_0x4aac('0x32')](_0x434df3,_0x5e5800){let _0x210c16=this[_0x4aac('0x2f')][_0x4aac('0xa')][_0x4aac('0xba')](_0x4aac('0x1d')),_0x1f2a28=this[_0x4aac('0x2f')][_0x4aac('0xa')]['get'](_0x4aac('0x46'));if(void 0x0===_0x210c16){_0x210c16={};for(const _0x52a95b of this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['getRootNames']())_0x210c16[_0x52a95b]='';}if(_0x4aac('0xb4')==typeof _0x210c16&&(_0x210c16={'main':_0x210c16}),void 0x0===_0x1f2a28){_0x1f2a28={};for(const _0x4163e5 of this[_0x4aac('0x2f')]['model'][_0x4aac('0x6d')][_0x4aac('0x3a')]())_0x1f2a28[_0x4163e5]={};}let _0x323966=!0x1;const _0x15381a=Object['keys'](_0x210c16),_0x2cee98=Object[_0x4aac('0x8c')](_0x434df3);for(const _0x57d4f9 of _0x15381a){if(_0x210c16[_0x57d4f9]!==_0x434df3[_0x57d4f9]&&''!==_0x210c16[_0x57d4f9]['trim']()){_0x323966=!0x0;break;}if(!_0x260448(_0x1f2a28[_0x57d4f9],_0x5e5800[_0x57d4f9])&&Object['keys'](_0x1f2a28[_0x57d4f9])[_0x4aac('0x0')]>0x0){_0x323966=!0x0;break;}}_0x323966||(_0x323966=_0x2cee98[_0x4aac('0x6b')](_0x56cb83=>!this['editor']['model'][_0x4aac('0x6d')][_0x4aac('0x7a')](_0x56cb83))),_0x323966&&_0x405653(_0x4aac('0x20'),{'editorData':_0x210c16,'editorRootsAttributes':_0x1f2a28,'revisionData':_0x434df3,'revisionRootsAttributes':_0x5e5800}),this[_0x4aac('0x2f')][_0x4aac('0xa')][_0x4aac('0x52')](_0x4aac('0x1d'),_0x434df3),this[_0x4aac('0x2f')][_0x4aac('0xa')][_0x4aac('0x52')](_0x4aac('0x46'),_0x5e5800);}[_0x4aac('0xd3')](){if(!this['_pendingAction']){const _0x20e5cd=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0x102'));this['_pendingAction']=_0x20e5cd['add'](_0x50a069(this[_0x4aac('0x2f')][_0x4aac('0x36')],_0x4aac('0x17')));}}[_0x4aac('0xda')](){this[_0x4aac('0x80')]&&(this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0x102'))[_0x4aac('0xc9')](this[_0x4aac('0x80')]),this[_0x4aac('0x80')]=null);}['_findInsertionIndex'](_0x2d0035){const _0x5b19be=this[_0x4aac('0xa8')][_0x4aac('0x8e')]();_0x5b19be[_0x4aac('0x100')]();let _0x3edf6c=0x0;for(;_0x3edf6c<_0x5b19be['length'];){const _0x270668=_0x5b19be[_0x3edf6c];if(_0x270668===this[_0x4aac('0xde')]){_0x3edf6c++;continue;}if(_0x270668['id']===this[_0x4aac('0x97')])break;const _0x54cd2e=_0x2d0035[_0x4aac('0xcc')]-_0x270668[_0x4aac('0xcc')]||_0x2d0035[_0x4aac('0x39')]-_0x270668[_0x4aac('0x39')];if(_0x54cd2e>0x0)break;if(_0x54cd2e<0x0)_0x3edf6c++;else{if(!_0x2d0035['creator']&&_0x270668[_0x4aac('0x91')])break;if(_0x270668[_0x4aac('0x91')]||!_0x2d0035[_0x4aac('0x91')]){if(_0x2d0035['createdAt']>_0x270668[_0x4aac('0x9a')])break;_0x3edf6c++;}else _0x3edf6c++;}}return _0x3edf6c;}[_0x4aac('0xfc')](_0x134116){const _0x442771=this['repository'][_0x4aac('0x83')](_0x134116['id']);if(_0x134116['createdAt']&&(_0x134116[_0x4aac('0x9a')]=new Date(_0x134116[_0x4aac('0x9a')])),_0x134116[_0x4aac('0xa1')]){const _0x3a2cc0=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'));_0x134116[_0x4aac('0x70')]=_0x134116[_0x4aac('0xa1')][_0x4aac('0x15')](_0x2b61e3=>_0x3a2cc0[_0x4aac('0x66')](_0x2b61e3));}_0x442771[_0x4aac('0xe4')](_0x134116,!0x0);}[_0x4aac('0xd0')]({revision:_0x4322f7=null,from:_0x22828f=null,to:_0x23c87f=null}){_0x22828f=null!==_0x22828f?_0x22828f:_0x4322f7[_0x4aac('0x39')],_0x23c87f=null!==_0x23c87f?_0x23c87f:_0x4322f7['toVersion'];const _0x28d0a6=this[_0x4aac('0x1c')][_0x4aac('0xb7')](_0x22828f,_0x23c87f),_0x2c1f09={'diffData':_0x28d0a6[_0x4aac('0x1b')],'authorsIds':_0x28d0a6[_0x4aac('0xa1')],'fromVersion':_0x22828f,'toVersion':_0x23c87f};if(!_0x4322f7||_0x23c87f!==_0x4322f7[_0x4aac('0xcc')]){const _0x3dedcc=_0x23c87f-0x1,_0x36734b=this[_0x4aac('0x6a')][_0x4aac('0xd5')][_0x4aac('0xbd')](_0x3dedcc);_0x2c1f09['createdAt']=_0x36734b&&_0x36734b[_0x4aac('0x9a')]||new Date();}if(this[_0x4aac('0xe7')]&&_0x22828f===this[_0x4aac('0xe7')][_0x4aac('0x39')])for(const _0x2d9a91 of this[_0x4aac('0xe7')]['authors'])_0x2c1f09[_0x4aac('0xa1')][_0x4aac('0x8b')](_0x2d9a91['id'])||_0x2c1f09[_0x4aac('0xa1')][_0x4aac('0x8f')](_0x2d9a91['id']);return _0x2c1f09;}[_0x4aac('0xb1')](_0x33368b){if(!_0x33368b||_0x33368b['diffData'])return Promise['resolve']();{const _0x223363=this['editor'][_0x4aac('0xa')][_0x4aac('0xba')]('collaboration.channelId');return this[_0x4aac('0x64')][_0x4aac('0x83')]({'channelId':_0x223363,'revisionId':_0x33368b['id']})['then'](_0x4f58da=>{_0x33368b[_0x4aac('0x1b')]=_0x4f58da[_0x4aac('0x1b')];});}}[_0x4aac('0x71')](_0x267257,_0x4cbf56,_0x33a1c1){if(this[_0x4aac('0x104')]['has'](_0x267257)){const _0x51fab8=this[_0x4aac('0x104')][_0x4aac('0xba')](_0x267257);_0x4cbf56=_0x33a1c1?{..._0x51fab8,..._0x4cbf56}:{..._0x4cbf56,..._0x51fab8};}this[_0x4aac('0x104')][_0x4aac('0x52')](_0x267257,_0x4cbf56);}[_0x4aac('0x106')](_0x142865){const _0x589d6a=this[_0x4aac('0xa8')]['getRevisions']();_0x589d6a[_0x4aac('0x100')](),_0x589d6a['shift']();const _0x66b0c1=_0x589d6a['find'](_0x151d33=>_0x151d33['toVersion']<=_0x142865)[_0x4aac('0xcc')];return _0x66b0c1<this[_0x4aac('0xca')]?this[_0x4aac('0xca')]:_0x66b0c1;}[_0x4aac('0x23')](_0x4ab2a1){const _0xcdea03=this['repository']['getRevision'](this['repository'][_0x4aac('0x0')]-0x1);if(_0xcdea03)this[_0x4aac('0x97')]=_0xcdea03['id'];else{const _0x4c344d=!this[_0x4aac('0x2f')][_0x4aac('0x58')]['document'][_0x4aac('0xb5')][_0x4aac('0x51')](_0x5354e8=>this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x7f')](_0x5354e8)),_0x14d6cb=this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')]('Users')['me']['id'],_0x692cf0=_0x50a069(this[_0x4aac('0x2f')]['locale'],_0x4c344d?_0x4aac('0xc1'):_0x4aac('0xdd'));this[_0x4aac('0x89')]({'from':_0x4ab2a1,'to':_0x4ab2a1,'id':this['_initialRevisionId'],'name':_0x692cf0,'creatorId':_0x14d6cb});}}[_0x4aac('0x59')](_0x3c3c68){const _0x36d914=this[_0x4aac('0x6a')]['getCurrentRevisionId']();this['currentRevision']=this[_0x4aac('0xa8')]['getRevision'](_0x36d914),this[_0x4aac('0xde')]||(this['currentRevision']=this[_0x4aac('0x89')]({'from':_0x3c3c68,'to':_0x3c3c68,'id':_0x36d914,'name':'','creatorId':null}));}[_0x4aac('0x89')]({name:_0x52bfb6,from:_0x42f995,to:_0x3a0114,creatorId:_0x25040a,id:_0x211200}){const _0x1dcd3b=this[_0x4aac('0xd0')]({'from':_0x42f995,'to':_0x3a0114});_0x1dcd3b[_0x4aac('0x2b')]=_0x52bfb6,_0x1dcd3b[_0x4aac('0x4c')]=_0x25040a,_0x1dcd3b['id']=_0x211200;const _0xbb6698=this['addRevisionData'](_0x1dcd3b);return this[_0x4aac('0x64')]&&this[_0x4aac('0x71')](_0x1dcd3b['id'],_0x1dcd3b,!0x0),_0xbb6698;}[_0x4aac('0xad')](){this['editor'][_0x4aac('0x77')][_0x4aac('0x3c')]('dataDowncast')[_0x4aac('0x7')]({'model':_0x4aac('0xce')});}[_0x4aac('0x16')](_0x219a9e){return(_0x219a9e=_0x219a9e[_0x4aac('0x5c')](_0xb4c071=>!_0xb4c071[_0x4aac('0x2b')]||_0x4aac('0xcb')!==_0xb4c071[_0x4aac('0x2b')]&&_0x4aac('0x94')!==_0xb4c071[_0x4aac('0x2b')]))[_0x4aac('0x41')](_0x17fe91=>{_0x4aac('0xb4')!=typeof _0x17fe91&&(_0x17fe91[_0x4aac('0xae')]=this[_0x4aac('0x16')](_0x17fe91[_0x4aac('0xae')]),_0x17fe91['attributes']=_0x17fe91['attributes'][_0x4aac('0x5c')](_0x36a478=>!_0x36a478[0x0][_0x4aac('0xf5')]('data-revision-')));}),_0x219a9e;}}function J(_0x48ecca,_0xa1773a){const _0x39ea35=_0xa1773a['editing'][_0x4aac('0x4e')][_0x4aac('0x6d')];if('string'==typeof _0x48ecca)return new _0x29b519(_0x39ea35,_0x48ecca);{const _0x33c659=_0x48ecca[_0x4aac('0xae')]['map'](_0xefd7c3=>J(_0xefd7c3,_0xa1773a));return new(B[_0x48ecca[(_0x4aac('0xdb'))]]||_0x328351)(_0x39ea35,_0x48ecca[_0x4aac('0x2b')],_0x48ecca['attributes'],_0x33c659);}}class H{constructor(_0x3c9a36){this[_0x4aac('0x2f')]=_0x3c9a36,this[_0x4aac('0xb3')]=new Map(),this[_0x4aac('0x5')]=-0x1,this[_0x4aac('0x50')]=-0x1,this[_0x4aac('0x37')]=new Map(),this[_0x4aac('0xd2')]=new Map(),this[_0x4aac('0xe0')]=new Map(),this[_0x4aac('0xa0')]=new Map(),this[_0x4aac('0x60')]=new Map(),this[_0x4aac('0x98')]=new Map(),this[_0x4aac('0x43')]=new Map(),this[_0x4aac('0x84')]=new Map(),this[_0x4aac('0x9e')]=new Map(),this[_0x4aac('0xb2')]=new Map(),this[_0x4aac('0xf9')]=0x1;}[_0x4aac('0x73')](_0x430994){this[_0x4aac('0x4a')]=_0x430994;const _0x445e5b=new Map(),_0x186ecb=new Map(),_0x211292=this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x6d')]['roots'][_0x4aac('0x15')](_0x18e75b=>_0x18e75b[_0x4aac('0x74')]);for(const _0x33c3e9 of _0x211292){const _0xdb15b8=this['editor']['model'][_0x4aac('0x6d')][_0x4aac('0x7a')](_0x33c3e9),_0x26286e=q(_0xdb15b8);_0x445e5b[_0x4aac('0x52')](_0x33c3e9,_0x26286e),_0x186ecb[_0x4aac('0x52')](_0x33c3e9,Object['fromEntries'](_0xdb15b8[_0x4aac('0x3b')]()));}const _0x56ca09=Array[_0x4aac('0xb')](this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x81')])[_0x4aac('0x15')](_0x10b6ca=>[_0x10b6ca[_0x4aac('0x2b')],_0x10b6ca[_0x4aac('0xfa')]()]),_0x4c7cc7=this[_0x4aac('0x4a')][_0x4aac('0x28')];this[_0x4aac('0x5f')](_0x4c7cc7,_0x445e5b,_0x56ca09,_0x186ecb),this[_0x4aac('0xf8')]=this[_0x4aac('0xf9')];const _0x52e1b1=new Map(),_0x2f74bb=new Map();for(const _0x3dae45 of _0x211292){const _0x4c751d=G(_0x3dae45);_0x52e1b1[_0x4aac('0x52')](_0x3dae45,_0x4c751d),_0x2f74bb[_0x4aac('0x52')](_0x3dae45,{});}this[_0x4aac('0x5f')](Number[_0x4aac('0xc2')],_0x52e1b1,[],_0x2f74bb);}[_0x4aac('0xb7')](_0x32a985,_0x270950){if(this[_0x4aac('0x5')]===_0x32a985&&this['_lastTo']<=_0x270950)this['_savedMetaData']['size']>0x1&&this[_0x4aac('0x2e')](this[_0x4aac('0x50')]),this['_applyOperations'](this[_0x4aac('0x50')],_0x270950,!0x0);else{if(!this[_0x4aac('0xb3')]['has'](_0x32a985)){const _0x29a08b=this[_0x4aac('0x9f')](_0x32a985);this[_0x4aac('0xf1')](_0x29a08b,_0x32a985,!0x1);}this[_0x4aac('0xf1')](_0x32a985,_0x270950,!0x0);}return this[_0x4aac('0x5')]=_0x32a985,this[_0x4aac('0x50')]=_0x270950,this[_0x4aac('0x79')]();}[_0x4aac('0x7b')](_0x403eb6){this['_reset'](),this['_lastFrom']=_0x403eb6['fromVersion'],this[_0x4aac('0x50')]=_0x403eb6['toVersion'];for(const _0x5bf51e in _0x403eb6['diffData']){const _0x21ec80=_0x403eb6['diffData'][_0x5bf51e]['attachChange'],_0x4b1988=_0x2c2fc7(_0x403eb6[_0x4aac('0x1b')][_0x5bf51e][_0x4aac('0x78')])||{},_0x2d9615=this['_makeModelFromViewString'](_0x403eb6[_0x4aac('0x1b')][_0x5bf51e]['deletions']);_0x2d9615[_0x4aac('0x74')]=_0x5bf51e,_0x2d9615[_0x4aac('0x48')]=!_0x21ec80||!_0x21ec80[_0x4aac('0x18')],_0x2d9615[_0x4aac('0x18')]=()=>_0x2d9615[_0x4aac('0x48')],this[_0x4aac('0xa0')][_0x4aac('0x52')](_0x5bf51e,_0x2d9615),this['_baseRootsAttributes'][_0x4aac('0x52')](_0x5bf51e,_0x4b1988),_0x21ec80&&this['_touchedRoots'][_0x4aac('0x52')](_0x5bf51e,_0x21ec80);const _0x4025bb=this['_makeIdsRoot'](_0x2d9615);this[_0x4aac('0x43')][_0x4aac('0x52')](_0x5bf51e,_0x4025bb);for(const [_0x1abd72,_0x3f6685]of _0x2d9615[_0x4aac('0x81')]){if(!_0x1abd72['startsWith'](_0x4aac('0xff')))continue;const _0xfb746e=_0x1abd72[_0x4aac('0x13')](':')[0x2];for(const _0xb90190 of _0x3f6685[_0x4aac('0x90')]({'singleCharacters':!0x0})){const _0xf25168=this[_0x4aac('0xf')](_0xb90190),_0x2803f8=_0x4aac('0xa5')==_0xb90190['type']?_0xb90190['previousPosition'][_0x4aac('0x69')][_0x4aac('0x1a')](0x0,-0x1):_0xb90190[_0x4aac('0xd1')][_0x4aac('0x69')],_0x2df577=_0x4025bb[_0x4aac('0xd4')](_0x2803f8)[_0x4aac('0xa4')](_0xf25168);this[_0x4aac('0x84')]['set'](_0x2df577,{'userId':_0xfb746e});}}}this[_0x4aac('0xf8')]=this['_revisionId'];const _0x1835f6=[...Array(this[_0x4aac('0xf9')])[_0x4aac('0x8c')]()][_0x4aac('0x1a')](0x1)[_0x4aac('0x5c')](_0x3f8520=>!this['_touched'][_0x4aac('0x27')](_0x3f8520));let _0x524ecf=0x0;const _0x466535=new Map();for(const _0x3589b3 in _0x403eb6[_0x4aac('0x1b')]){const _0x31f1a8=_0x403eb6[_0x4aac('0x1b')][_0x3589b3][_0x4aac('0xac')],_0x2ffb21=_0x2c2fc7(_0x403eb6['diffData'][_0x3589b3][_0x4aac('0xee')])||{},_0x46d792=this[_0x4aac('0xaa')](_0x403eb6[_0x4aac('0x1b')][_0x3589b3][_0x4aac('0x2a')]);_0x46d792[_0x4aac('0x74')]=_0x3589b3,_0x46d792[_0x4aac('0x48')]=!_0x31f1a8||_0x31f1a8['isAttached'],_0x46d792['isAttached']=()=>_0x46d792[_0x4aac('0x48')],this['_diffRoots']['set'](_0x3589b3,_0x46d792),this[_0x4aac('0xe0')][_0x4aac('0x52')](_0x3589b3,_0x2ffb21);const _0x50e8f7=this[_0x4aac('0xf0')](_0x46d792,Number['NEGATIVE_INFINITY']);this[_0x4aac('0x98')][_0x4aac('0x52')](_0x3589b3,_0x50e8f7),_0x466535[_0x4aac('0x52')](_0x3589b3,_0x46d792['isAttached']()?_0x2ffb21:{});for(const [_0x239429,_0x5c4fde]of _0x46d792[_0x4aac('0x81')]){if(!_0x239429[_0x4aac('0xf5')]('revision:'))continue;const _0x47c96c=_0x239429[_0x4aac('0x13')](':')[0x2];for(const _0x2959b5 of _0x5c4fde[_0x4aac('0x90')]({'singleCharacters':!0x0})){const _0x161cbe=this[_0x4aac('0xf')](_0x2959b5),_0x1809b0=this['_revisionId']++,_0x55bbe5=_0x4aac('0xa5')==_0x2959b5[_0x4aac('0xdb')]?_0x2959b5[_0x4aac('0xd1')][_0x4aac('0x69')][_0x4aac('0x1a')](0x0,-0x1):_0x2959b5[_0x4aac('0xd1')][_0x4aac('0x69')];_0x50e8f7['getNodeByPath'](_0x55bbe5)[_0x4aac('0xe5')](_0x161cbe,_0x1809b0),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x1809b0,{'userId':_0x47c96c});}}for(const _0x8b806b of this[_0x4aac('0x2f')]['model']['createRangeIn'](_0x46d792)[_0x4aac('0x90')]({'singleCharacters':!0x0})){const _0x52fb6a=this[_0x4aac('0xf')](_0x8b806b),_0x1e577d=_0x4aac('0xa5')==_0x8b806b[_0x4aac('0xdb')]?_0x8b806b[_0x4aac('0xd1')][_0x4aac('0x69')]['slice'](0x0,-0x1):_0x8b806b['previousPosition']['path'],_0x60d39=_0x50e8f7[_0x4aac('0xd4')](_0x1e577d);_0x60d39['getAttribute'](_0x52fb6a)>0x0||_0x60d39[_0x4aac('0xe5')](_0x52fb6a,_0x1835f6[_0x524ecf++]);}for(const [_0xe1ce1d,_0x29181a]of _0x46d792[_0x4aac('0x81')])_0xe1ce1d[_0x4aac('0xf5')]('revision:')||this[_0x4aac('0x37')][_0x4aac('0x52')](_0xe1ce1d,_0x29181a);}const _0x41c4bd=G(_0x4aac('0x88'));this[_0x4aac('0xa0')]['set'](_0x4aac('0x88'),_0x41c4bd),this[_0x4aac('0x43')][_0x4aac('0x52')](_0x4aac('0x88'),this[_0x4aac('0xf0')](_0x41c4bd,0x1));const _0x4ec9eb=G(_0x4aac('0x88'));this[_0x4aac('0xd2')]['set']('$graveyard',_0x4ec9eb),this[_0x4aac('0x98')][_0x4aac('0x52')]('$graveyard',this[_0x4aac('0xf0')](_0x4ec9eb,0x1));const _0x2b276f=Array[_0x4aac('0xb')](this['_diffRoots'])[_0x4aac('0x15')](([_0x28cdc1,_0x452d69])=>[_0x28cdc1,q(_0x452d69)]);this[_0x4aac('0x5f')](this['_lastTo'],_0x2b276f,this['_markers'],_0x466535);}[_0x4aac('0xaa')](_0x148994){const _0x172496=JSON[_0x4aac('0x29')](_0x148994),_0x48c93f=this[_0x4aac('0x2f')][_0x4aac('0x68')]['view']['document'],_0x5ea4a2=new _0x1c0f09(_0x48c93f,_0x172496[_0x4aac('0x15')](_0x215fcb=>J(_0x215fcb,this['editor'])));return this[_0x4aac('0x2f')]['data'][_0x4aac('0xf3')](_0x5ea4a2);}[_0x4aac('0x5f')](_0x1193c5,_0x1a0b56,_0x481d74,_0x470d00){const _0x3618c0=new Map(_0x1a0b56),_0xd9db43=new Map(_0x2c2fc7(_0x470d00)),_0x34769b=new Map();for(const [_0x1da419,_0x452ec3]of _0x481d74)_0x34769b['set'](_0x1da419,{'start':_0x452ec3[_0x4aac('0xd6')]['clone'](),'end':_0x452ec3[_0x4aac('0x8a')]['clone'](),'rootName':_0x452ec3[_0x4aac('0x4')][_0x4aac('0x74')]});this[_0x4aac('0xb3')][_0x4aac('0x52')](_0x1193c5,{'roots':_0x3618c0,'markers':_0x34769b,'rootsAttributes':_0xd9db43});}[_0x4aac('0x2e')](_0x4353bd){this[_0x4aac('0xb3')][_0x4aac('0x93')](_0x4353bd);}[_0x4aac('0x72')](){this['_reset'](),this[_0x4aac('0x5')]=-0x1,this[_0x4aac('0x50')]=-0x1,this['_savedMetaData'][_0x4aac('0x11')](),this['init'](this['source']);}[_0x4aac('0xbe')](){this[_0x4aac('0x84')][_0x4aac('0x11')](),this['_touchedMarkers']['clear'](),this[_0x4aac('0xb2')][_0x4aac('0x11')](),this[_0x4aac('0xd2')][_0x4aac('0x11')](),this[_0x4aac('0xe0')]['clear'](),this[_0x4aac('0xa0')][_0x4aac('0x11')](),this[_0x4aac('0x60')]['clear'](),this[_0x4aac('0x98')][_0x4aac('0x11')](),this['_baseIdsRoots'][_0x4aac('0x11')](),this['_markers'][_0x4aac('0x11')](),this[_0x4aac('0xf9')]=0x1,this[_0x4aac('0xf8')]=this[_0x4aac('0xf9')];}[_0x4aac('0xf0')](_0x10f86a,_0x2bac8=null){let _0x149e37=null;_0x10f86a['is'](_0x4aac('0x6e'))||(_0x149e37=new _0x5edf95(_0x10f86a['name'],{'vid_start':null===_0x2bac8?this['_revisionId']++:_0x2bac8++}));const _0x107844=[];for(const _0x2dede6 of _0x10f86a[_0x4aac('0xaf')]())if(_0x2dede6['is'](_0x4aac('0x63'))){_0x107844[_0x4aac('0x8f')](this['_makeIdsRoot'](_0x2dede6,_0x2bac8));const _0x762e26=_0x107844[_0x107844[_0x4aac('0x0')]-0x1];null!==_0x2bac8&&(_0x2bac8=_0x762e26['is'](_0x4aac('0x63'),'$text')?_0x762e26[_0x4aac('0xa4')](_0x4aac('0xe'))+0x1:_0x762e26[_0x4aac('0xa4')](_0x4aac('0x4f'))+0x1);}else for(let _0x31cbca=0x0;_0x31cbca<_0x2dede6[_0x4aac('0x1f')];_0x31cbca++)_0x107844['push'](new _0x5edf95(_0x4aac('0xf2'),{'vid':null===_0x2bac8?this[_0x4aac('0xf9')]++:_0x2bac8++}));if(_0x10f86a['is'](_0x4aac('0x6e'))){const _0x4564f9=G(_0x10f86a[_0x4aac('0x74')]);return _0x4564f9[_0x4aac('0x101')](0x0,_0x107844),_0x4564f9;}return _0x149e37[_0x4aac('0xe5')](_0x4aac('0x4f'),null===_0x2bac8?this[_0x4aac('0xf9')]++:_0x2bac8++),_0x149e37[_0x4aac('0x101')](0x0,_0x107844),_0x149e37;}['_calculateMetaData'](_0x45d433,_0xb727c1,_0x294a4b){this[_0x4aac('0xbe')]();const {roots:_0x711223,markers:_0x5251b5,rootsAttributes:_0x4e2389}=this[_0x4aac('0xb3')][_0x4aac('0xba')](_0x45d433);this['_baseRoots']=new Map(_0x711223),this[_0x4aac('0x60')]=new Map(_0x2c2fc7(_0x4e2389));for(const [_0x5f1c33,_0xaf53bf]of this['_baseRoots'])if('$graveyard'!==_0x5f1c33&&(this[_0x4aac('0xd2')][_0x4aac('0x52')](_0x5f1c33,q(_0xaf53bf)),this[_0x4aac('0xe0')]=new Map(_0x2c2fc7(_0x4e2389)),_0x294a4b)){const _0x4534b2=this['_revisionId'];this[_0x4aac('0x98')][_0x4aac('0x52')](_0x5f1c33,this[_0x4aac('0xf0')](_0xaf53bf)),this[_0x4aac('0x43')][_0x4aac('0x52')](_0x5f1c33,this[_0x4aac('0xf0')](_0xaf53bf,_0x4534b2));}this['_startingRevisionId']=this[_0x4aac('0xf9')],this[_0x4aac('0xd2')][_0x4aac('0x52')]('$graveyard',q(this['_baseRoots'][_0x4aac('0xba')](_0x4aac('0x88')))),_0x294a4b&&this[_0x4aac('0x98')][_0x4aac('0x52')]('$graveyard',this[_0x4aac('0xf0')](this[_0x4aac('0xa0')][_0x4aac('0xba')](_0x4aac('0x88'))));for(const [_0x125962,_0x3b0dd5]of _0x5251b5){const _0x377dad=this[_0x4aac('0xa0')][_0x4aac('0xba')](_0x3b0dd5[_0x4aac('0x74')]),_0x54490f=this[_0x4aac('0xd2')]['get'](_0x3b0dd5[_0x4aac('0x74')]),_0x471662=new _0xde2b77(this[_0x4aac('0xc0')](_0x3b0dd5[_0x4aac('0xd6')],_0x377dad),this[_0x4aac('0xc0')](_0x3b0dd5[_0x4aac('0x8a')],_0x377dad)),_0x537256=this[_0x4aac('0x38')](_0x471662,_0x54490f);_0x377dad[_0x4aac('0x81')][_0x4aac('0x52')](_0x125962,_0x471662),this[_0x4aac('0x37')][_0x4aac('0x52')](_0x125962,_0x537256);}this[_0x4aac('0xe1')](_0x45d433,_0xb727c1,_0x294a4b);}[_0x4aac('0xe1')](_0x5cf419,_0x225cd5,_0x3964b9){for(const _0xb1baa5 of this['source'][_0x4aac('0xdc')](_0x5cf419,_0x225cd5))this['_handleOperation'](_0xb1baa5,_0x3964b9);for(const _0x415f37 of this[_0x4aac('0xd2')]['values']())_0x415f37[_0x4aac('0x81')]['clear']();for(const [_0x31aa1b,_0x54c591]of this[_0x4aac('0x37')]){this[_0x4aac('0xd2')][_0x4aac('0xba')](_0x54c591[_0x4aac('0x4')]['rootName'])['markers'][_0x4aac('0x52')](_0x31aa1b,_0x54c591['clone']());}const _0x379b3f=new Map(),_0x4dd55c=new Map();for(const [_0x11484f,_0x498dcf]of this[_0x4aac('0xd2')])_0x379b3f[_0x4aac('0x52')](_0x11484f,q(_0x498dcf)),_0x4dd55c[_0x4aac('0x52')](_0x11484f,this[_0x4aac('0xe0')][_0x4aac('0xba')](_0x11484f));this[_0x4aac('0x5f')](_0x225cd5,_0x379b3f,this['_markers'],_0x4dd55c);}[_0x4aac('0x9f')](_0x47223b){const _0x19056f=Array[_0x4aac('0xb')](this[_0x4aac('0xb3')][_0x4aac('0x8c')]());_0x19056f['sort']((_0x4e5e29,_0x19f76d)=>_0x4e5e29-_0x19f76d),_0x19056f['reverse']();for(const _0x4134b7 of _0x19056f)if(_0x4134b7<_0x47223b)return _0x4134b7;return Number[_0x4aac('0xc2')];}[_0x4aac('0x67')](_0x1543d2,_0x569da7){const _0x3c342e=Array[_0x4aac('0xb')](_0x569da7[_0x4aac('0x81')])[_0x4aac('0x15')](([_0x4ad6f9,_0x27bde5])=>[_0x4ad6f9,this['_fixRange'](_0x27bde5,_0x1543d2)]);_0x1543d2[_0x4aac('0x81')]=new Map(_0x3c342e);}[_0x4aac('0x56')](_0x4065da){for(const _0x4633ee of this[_0x4aac('0x37')][_0x4aac('0x95')]()){const _0x295859=_0x4633ee[_0x4aac('0x2c')](_0x4065da),_0x1d16a3=_0xde2b77[_0x4aac('0x44')](_0x295859);_0x4633ee['start']=_0x1d16a3[_0x4aac('0xd6')],_0x4633ee[_0x4aac('0x8a')]=_0x1d16a3[_0x4aac('0x8a')];}}[_0x4aac('0xfe')](_0x4f9556,_0x46d327){if('addRoot'==_0x4f9556[_0x4aac('0xdb')]||'detachRoot'==_0x4f9556[_0x4aac('0xdb')])return void this[_0x4aac('0xc6')](_0x4f9556,_0x46d327);if('insert'==_0x4f9556['type']){const _0xf36bf2=_0x4f9556[_0x4aac('0x7d')][_0x4aac('0x4')]['rootName'];this[_0x4aac('0xd2')][_0x4aac('0x27')](_0xf36bf2)||(this['_diffRoots'][_0x4aac('0x52')](_0xf36bf2,G(_0xf36bf2,!0x0)),this[_0x4aac('0xe0')][_0x4aac('0x52')](_0xf36bf2,{}),_0x46d327&&this[_0x4aac('0x98')][_0x4aac('0x52')](_0xf36bf2,G(_0xf36bf2,!0x0)));}else{if(_0x4aac('0xea')==_0x4f9556[_0x4aac('0xdb')]||_0x4aac('0xdf')==_0x4f9556['type']||_0x4aac('0xa3')==_0x4f9556[_0x4aac('0xdb')])return void this[_0x4aac('0x57')](_0x4f9556);}const _0x32a9c8=this['_cloneOperation'](_0x4f9556,this[_0x4aac('0xd2')]);if(_0x4aac('0xc7')!==_0x4f9556[_0x4aac('0xdb')]&&(_0x32a9c8[_0x4aac('0xb6')](),this['_transformMarkers'](_0x32a9c8)),_0x46d327)switch(_0x32a9c8[_0x4aac('0xdb')]){case _0x4aac('0xcf'):this[_0x4aac('0xf4')](_0x4f9556);break;case'move':case'remove':case _0x4aac('0x25'):this['_handleMoveOperation'](_0x4f9556);break;case _0x4aac('0x7e'):this[_0x4aac('0x26')](_0x4f9556);break;case _0x4aac('0x13'):this[_0x4aac('0xc')](_0x4f9556);break;case _0x4aac('0xc7'):this[_0x4aac('0xec')](_0x4f9556);}}[_0x4aac('0x103')](_0x4cd27e,_0x54fd42){const _0x1247e9=_0x4cd27e[_0x4aac('0x8')]();return _0x1247e9[_0x4aac('0x2d')]=_0x4cd27e['_authorId'],this['_fixOperation'](_0x1247e9,_0x54fd42),_0x1247e9;}[_0x4aac('0xd7')](_0x13bbeb){return _0x13bbeb['map'](_0x1deb2f=>{const _0x11e8ff=this[_0x4aac('0xf')](_0x1deb2f);return Number(_0x1deb2f[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x11e8ff));});}[_0x4aac('0x10')](_0x5c29cf,_0x346c22){if(_0x5c29cf['is'](_0x4aac('0x63'),'$text'))_0x346c22[_0x4aac('0x8f')]({'item':_0x5c29cf,'type':'text'});else{_0x5c29cf['is'](_0x4aac('0x63'))&&_0x346c22[_0x4aac('0x8f')]({'item':_0x5c29cf,'type':'elementStart'});for(const _0x5bbd4b of _0x5c29cf[_0x4aac('0xaf')]())this['_generateTape'](_0x5bbd4b,_0x346c22);_0x5c29cf['is']('element')&&_0x346c22[_0x4aac('0x8f')]({'item':_0x5c29cf,'type':'elementEnd'});}return _0x346c22;}[_0x4aac('0x79')](){const _0x5ede27=new Map(this[_0x4aac('0x84')]),_0x398ea2=new Map(_0x5ede27),_0x404bd8=new Map(),_0x4c1ae3={'insertions':{},'deletions':{}},_0x29da76={'insertions':{},'deletions':{}},_0x230093=new Map(),_0x688de=new Set([...this[_0x4aac('0xa0')][_0x4aac('0x8c')](),...this[_0x4aac('0xd2')]['keys']()]);_0x688de['delete'](_0x4aac('0x88'));for(const _0x49f9ee of _0x688de){const _0x13836d=this[_0x4aac('0xd2')]['get'](_0x49f9ee)||G(_0x49f9ee,!0x1),_0x1ade61=this[_0x4aac('0xa0')][_0x4aac('0xba')](_0x49f9ee)||G(_0x49f9ee,!0x1);_0x13836d[_0x4aac('0x18')]()||_0x1ade61[_0x4aac('0x18')]()?(_0x4c1ae3['insertions'][_0x49f9ee]=q(_0x13836d),_0x4c1ae3['deletions'][_0x49f9ee]=q(_0x1ade61),this['_copyMarkers'](_0x4c1ae3['deletions'][_0x49f9ee],_0x1ade61),this['_copyMarkers'](_0x4c1ae3[_0x4aac('0x2a')][_0x49f9ee],_0x13836d),_0x29da76[_0x4aac('0x2a')][_0x49f9ee]=this['_generateTape'](this[_0x4aac('0x98')]['get'](_0x49f9ee),[]),_0x29da76[_0x4aac('0x105')][_0x49f9ee]=this[_0x4aac('0x10')](this['_baseIdsRoots'][_0x4aac('0xba')](_0x49f9ee)||G(_0x49f9ee,!0x1),[])):_0x688de[_0x4aac('0x93')](_0x49f9ee);}for(const _0x9359cf of _0x688de){const _0x429d6f=_0x29da76['insertions'][_0x9359cf];for(const _0x19f976 of _0x429d6f){const _0x5559c4=this[_0x4aac('0xf')](_0x19f976),_0x323247=_0x19f976[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x5559c4);_0x398ea2[_0x4aac('0x93')](_0x323247),_0x323247>=this[_0x4aac('0xf8')]&&_0x404bd8[_0x4aac('0x52')](_0x323247,_0x5ede27['get'](_0x323247));}}for(const _0xdbcdce of _0x688de){const _0x86b567=_0x29da76[_0x4aac('0x2a')][_0xdbcdce],_0x4fd53d=this[_0x4aac('0xd7')](_0x29da76['deletions'][_0xdbcdce]);let _0x78a72a=0x0;for(const _0x5b1566 of _0x86b567){const _0x5bcc41=this['_getVidAttributeName'](_0x5b1566),_0x105721=_0x5b1566[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x5bcc41);if(!_0x404bd8[_0x4aac('0x27')](_0x105721)&&!_0x230093[_0x4aac('0x27')](_0x105721)){if(_0x398ea2[_0x4aac('0x27')](_0x105721))_0x78a72a++;else{if(_0x105721!=_0x4fd53d[_0x78a72a]){const _0x430ce9=_0x5ede27[_0x4aac('0xba')](_0x105721)||_0x5ede27['get'](_0x4fd53d[_0x78a72a]);for(;_0x105721!=_0x4fd53d[_0x78a72a];)_0x398ea2[_0x4aac('0x27')](_0x4fd53d[_0x78a72a])||(_0x230093[_0x4aac('0x52')](_0x4fd53d[_0x78a72a],_0x430ce9),_0x5ede27[_0x4aac('0x52')](_0x4fd53d[_0x78a72a],_0x430ce9)),_0x78a72a++;}_0x78a72a++;}}}}for(const _0x260cd1 of _0x688de){const _0x4db839=_0x29da76['insertions'][_0x260cd1];for(const _0x1271df of _0x4db839){const _0x150f64=this[_0x4aac('0xf')](_0x1271df),_0x39fa13=_0x1271df[_0x4aac('0xe3')]['getAttribute'](_0x150f64);if(_0x230093[_0x4aac('0x27')](_0x39fa13)){const _0x459625=_0x230093[_0x4aac('0xba')](_0x39fa13);_0x398ea2['has'](_0x39fa13)||_0x398ea2['set'](_0x39fa13,{..._0x459625}),_0x404bd8[_0x4aac('0x52')](_0x39fa13,{..._0x459625});}}}for(const _0x3c846a of _0x398ea2[_0x4aac('0x8c')]())_0x3c846a>=this['_startingRevisionId']&&_0x398ea2[_0x4aac('0x93')](_0x3c846a);const _0x389706=new Map();for(const _0x1f29c2 of _0x688de){let _0x571c10=_0x29da76['insertions'][_0x1f29c2];for(const _0x31de3b of _0x571c10)if(_0x31de3b['item']['is'](_0x4aac('0x63'),'tableCell')){const _0x1261d1=this[_0x4aac('0xf')](_0x31de3b),_0x4c90b5=_0x31de3b[_0x4aac('0xe3')]['getAttribute'](_0x1261d1);if(_0x404bd8[_0x4aac('0x27')](_0x4c90b5)){const _0x3d37e5=_0x31de3b[_0x4aac('0xe3')]['parent'][_0x4aac('0x1e')][_0x4aac('0xa4')]('vid_start'),_0x5a3546=_0x389706['get'](_0x3d37e5)||new Set();_0x5a3546[_0x4aac('0x33')](_0x404bd8[_0x4aac('0xba')](_0x4c90b5)['userId']),_0x389706['set'](_0x3d37e5,_0x5a3546);}}_0x571c10=_0x29da76[_0x4aac('0x105')][_0x1f29c2];for(const _0x30db23 of _0x571c10)if(_0x30db23[_0x4aac('0xe3')]['is'](_0x4aac('0x63'),'tableCell')){const _0x19256c=this[_0x4aac('0xf')](_0x30db23),_0x175a53=_0x30db23[_0x4aac('0xe3')][_0x4aac('0xa4')](_0x19256c);if(_0x398ea2[_0x4aac('0x27')](_0x175a53)){const _0x3f95f7=_0x30db23[_0x4aac('0xe3')][_0x4aac('0x1e')]['parent']['getAttribute']('vid_start'),_0xaf59c5=_0x389706[_0x4aac('0xba')](_0x3f95f7)||new Set();_0xaf59c5[_0x4aac('0x33')](_0x398ea2[_0x4aac('0xba')](_0x175a53)[_0x4aac('0x42')]),_0x389706[_0x4aac('0x52')](_0x3f95f7,_0xaf59c5);}}for(const _0x25d659 of _0x389706[_0x4aac('0x8c')]())(_0x404bd8['has'](_0x25d659)||_0x398ea2[_0x4aac('0x27')](_0x25d659))&&_0x389706[_0x4aac('0x93')](_0x25d659);}for(const _0x32f245 of _0x688de){const _0x4ddd09=_0x29da76[_0x4aac('0x2a')][_0x32f245];let _0x1d0ea8=null,_0x3c3ea1=null;for(const _0x3a1c1f of _0x4ddd09){const _0x3490e2=this['_getVidAttributeName'](_0x3a1c1f),_0x193505=_0x3a1c1f['item'][_0x4aac('0xa4')](_0x3490e2),_0x4b43bd=_0x389706[_0x4aac('0xba')](_0x193505);_0x4b43bd&&_0x4aac('0xd8')==_0x3a1c1f[_0x4aac('0xdb')]&&(_0x1d0ea8=Array['from'](_0x4b43bd)[0x0],_0x3c3ea1=_0x3a1c1f[_0x4aac('0xe3')][_0x4aac('0xa4')]('vid_end')),_0x1d0ea8&&(_0x398ea2['set'](_0x193505,{'userId':_0x1d0ea8}),_0x404bd8[_0x4aac('0x52')](_0x193505,{'userId':_0x1d0ea8})),_0x193505==_0x3c3ea1&&(_0x1d0ea8=null,_0x3c3ea1=null);}}const _0x4924de={},_0x1997dd=new Set();for(const _0x289c64 of _0x688de){const _0x48a602=_0x4c1ae3['deletions'][_0x289c64],_0x1bba4c=_0x4c1ae3['insertions'][_0x289c64];for(const {userId:_0x582fd1}of this['_touchedMarkers'][_0x4aac('0x95')]())null!==_0x582fd1&&_0x1997dd[_0x4aac('0x33')](_0x582fd1);for(const {userId:_0x14d419}of this['_touchedRoots'][_0x4aac('0x95')]())null!==_0x14d419&&_0x1997dd[_0x4aac('0x33')](_0x14d419);this[_0x4aac('0xe8')](_0x1bba4c,_0x29da76['insertions'][_0x289c64],_0x404bd8,_0x4aac('0x5b'),_0x1997dd),this['_markChanges'](_0x48a602,_0x29da76[_0x4aac('0x105')][_0x289c64],_0x398ea2,_0x4aac('0xc4'),_0x1997dd),_0x4924de[_0x289c64]={'insertions':this[_0x4aac('0xbc')](_0x1bba4c),'deletions':this[_0x4aac('0xbc')](_0x48a602),'attachChange':this[_0x4aac('0xb2')][_0x4aac('0xba')](_0x289c64)||null,'attributesBefore':_0x2c2fc7(this['_baseRootsAttributes']['get'](_0x289c64))||{},'attributesAfter':_0x2c2fc7(this['_diffRootsAttributes'][_0x4aac('0xba')](_0x289c64))};}return{'diffData':_0x4924de,'authorsIds':Array[_0x4aac('0xb')](_0x1997dd)};}[_0x4aac('0x21')](_0x4ce947){for(const [,_0xaa13b7]of _0x4ce947[_0x4aac('0x81')]){const _0x22865f=_0xaa13b7[_0x4aac('0xd6')]['getAncestors']()['filter'](_0x57c0d1=>_0x4aac('0x3')==_0x57c0d1[_0x4aac('0x2b')]);for(const _0x2687ac of _0x22865f)0x1==_0x2687ac[_0x4aac('0xb9')]&&_0x2687ac['getChild'](0x0)['is'](_0x4aac('0x63'),_0x4aac('0x1'))&&_0x2687ac[_0x4aac('0xa7')](0x0)[_0x4aac('0xe5')](_0x4aac('0x4b'),!0x0);}}[_0x4aac('0xbc')](_0x52ab5f){this[_0x4aac('0x21')](_0x52ab5f);const _0x1e4136=this[_0x4aac('0x2f')][_0x4aac('0x19')][_0x4aac('0x45')](_0x52ab5f,{}),_0x211514=Array[_0x4aac('0xb')](_0x1e4136[_0x4aac('0xaf')]())[_0x4aac('0x15')](_0x58e028=>this[_0x4aac('0x75')](_0x58e028));return JSON[_0x4aac('0x5e')](_0x211514);}['_getViewJson'](_0x40224f){if(_0x40224f['is'](_0x4aac('0xf2')))return _0x40224f[_0x4aac('0x19')];{const _0x234701=_0x40224f;return{'type':Object[_0x4aac('0x8c')](B)[_0x4aac('0x51')](_0x56c9d0=>_0x40224f instanceof B[_0x56c9d0]),'name':_0x234701['name'],'attributes':Array[_0x4aac('0xb')](_0x234701[_0x4aac('0x3b')]()),'children':Array[_0x4aac('0xb')](_0x234701[_0x4aac('0xaf')]())[_0x4aac('0x15')](_0x41ac90=>this[_0x4aac('0x75')](_0x41ac90))};}}[_0x4aac('0xe8')](_0x35c8f1,_0x19a6ee,_0x2cce76,_0x1ce3ab,_0x4762e6){let _0x309df8=null,_0x5bfc9c=null,_0x5678b9=0x0;const _0x1457c9=this[_0x4aac('0x2f')]['model'];for(let _0x4555ea=0x0;_0x4555ea<_0x19a6ee[_0x4aac('0x0')];_0x4555ea++){const _0x5ce21b=this[_0x4aac('0xf')](_0x19a6ee[_0x4555ea]),_0x23e141=_0x19a6ee[_0x4555ea]['item'][_0x4aac('0xa4')](_0x5ce21b),_0x2da112=_0x2cce76[_0x4aac('0xba')](_0x23e141),_0x245caa=_0x4555ea==_0x19a6ee[_0x4aac('0x0')]-0x1;(!_0x309df8&&_0x2da112&&(_0x309df8=_0x2da112,_0x5bfc9c=_0x19a6ee[_0x4555ea]),_0x309df8&&(!_0x2da112||_0x2da112['userId']!=_0x309df8[_0x4aac('0x42')]))&&(_0x5a9d6f(_0x2da112,L(_0x5bfc9c,_0x35c8f1,_0x1457c9),L(_0x19a6ee[_0x4555ea],_0x35c8f1,_0x1457c9)),_0x309df8=_0x2da112||null,_0x5bfc9c=_0x2da112?_0x19a6ee[_0x4555ea]:null),_0x309df8&&_0x245caa&&_0x5a9d6f(_0x2da112,L(_0x5bfc9c,_0x35c8f1,_0x1457c9),W(_0x19a6ee[_0x4555ea],_0x35c8f1,_0x1457c9));}function _0x5a9d6f(_0xda8bac,_0x458610,_0x4d27dd){const _0x50f6ee=_0x309df8['userId'],_0x493443=_0x4aac('0xff')+_0x1ce3ab+':'+_0x50f6ee+':'+_0x5678b9++,_0x273f5b=_0x1457c9[_0x4aac('0x82')](_0x458610,_0x4d27dd);_0x35c8f1['markers'][_0x4aac('0x52')](_0x493443,_0x273f5b),null!==_0x50f6ee&&_0x4762e6['add'](_0x50f6ee);}}[_0x4aac('0xf')](_0x1fbc62){switch(_0x1fbc62['type']){case _0x4aac('0xd8'):return _0x4aac('0x86');case _0x4aac('0xa5'):return _0x4aac('0x4f');default:return _0x4aac('0xe');}}[_0x4aac('0x7c')](_0x527a77,_0x2c89b5){_0x527a77[_0x4aac('0x6f')]=null;for(const _0x45952d in _0x527a77){const _0x316c14=_0x527a77[_0x45952d];if(_0x316c14 instanceof _0x39217c){const _0x41a830=_0x2c89b5[_0x4aac('0xba')](_0x316c14['root'][_0x4aac('0x74')]);_0x527a77[_0x45952d]=this[_0x4aac('0xc0')](_0x316c14,_0x41a830);}if(_0x316c14 instanceof _0xde2b77){const _0x406665=_0x2c89b5[_0x4aac('0xba')](_0x316c14[_0x4aac('0x4')][_0x4aac('0x74')]);_0x527a77[_0x45952d]=this[_0x4aac('0x38')](_0x316c14,_0x406665);}_0x4aac('0x4')===_0x45952d&&(_0x527a77[_0x4aac('0x4')]=_0x2c89b5[_0x4aac('0xba')](_0x527a77[_0x4aac('0x4')][_0x4aac('0x74')]));}}[_0x4aac('0x38')](_0x2ed686,_0x13b9f4){return this[_0x4aac('0x2f')][_0x4aac('0x58')][_0x4aac('0x82')](this[_0x4aac('0xc0')](_0x2ed686['start'],_0x13b9f4),this[_0x4aac('0xc0')](_0x2ed686[_0x4aac('0x8a')],_0x13b9f4));}[_0x4aac('0xc0')](_0x3ec910,_0x1f11ec){return this['editor'][_0x4aac('0x58')][_0x4aac('0x8d')](_0x1f11ec,_0x3ec910[_0x4aac('0x69')],_0x3ec910['stickiness']);}['_handleInsertOperation'](_0x5c53d2){const _0x461992=this[_0x4aac('0x98')][_0x4aac('0xba')](_0x5c53d2[_0x4aac('0x7d')][_0x4aac('0x4')][_0x4aac('0x74')]),_0x2d93db=this[_0x4aac('0xc0')](_0x5c53d2['position'],_0x461992),_0x5e6579=null===_0x5c53d2['_authorId']?null:_0x5c53d2[_0x4aac('0x2d')]||this[_0x4aac('0x2f')]['plugins']['get'](_0x4aac('0xc3'))['me']['id'],_0x16ace5=_0x2d93db[_0x4aac('0x1e')],_0x51b986=this[_0x4aac('0xf9')],_0x2c0f52=[];for(const _0x4238e4 of _0x5c53d2[_0x4aac('0xcd')])if(_0x4238e4['is'](_0x4aac('0x63')))_0x2c0f52['push'](this[_0x4aac('0xf0')](_0x4238e4));else for(let _0x445129=0x0;_0x445129<_0x4238e4[_0x4aac('0x1f')];_0x445129++)_0x2c0f52[_0x4aac('0x8f')](new _0x5edf95('$text',{'vid':this['_revisionId']++}));const _0x217bc2=this['_revisionId'];for(let _0x5f372f=_0x51b986;_0x5f372f<_0x217bc2;_0x5f372f++)this[_0x4aac('0x84')][_0x4aac('0x52')](_0x5f372f,{'userId':_0x5e6579});_0x16ace5[_0x4aac('0x101')](_0x2d93db[_0x4aac('0x3d')],_0x2c0f52);}[_0x4aac('0x62')](_0xa3dccb){(_0xa3dccb=this[_0x4aac('0x103')](_0xa3dccb,this[_0x4aac('0x98')]))[_0x4aac('0xb6')]();const _0x1679ea=null===_0xa3dccb[_0x4aac('0x2d')]?null:_0xa3dccb[_0x4aac('0x2d')]||this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x13d32f=_0xa3dccb[_0x4aac('0x12')](),_0x5a3839=_0x13d32f[_0x4aac('0x1e')],_0x8e1c1b=_0x13d32f[_0x4aac('0x3d')];!function _0x12e160(_0x3801da,_0x40567c,_0x5abf08,_0x5274be){for(let _0x503673=_0x5abf08;_0x503673<_0x5274be;_0x503673++){const _0x53e6cb=_0x40567c[_0x4aac('0xa7')](_0x503673);_0x53e6cb['is'](_0x4aac('0x63'),'$text')?_0x3801da[_0x4aac('0x52')](_0x53e6cb['getAttribute']('vid'),{'userId':_0x1679ea}):(_0x3801da[_0x4aac('0x52')](_0x53e6cb[_0x4aac('0xa4')](_0x4aac('0x86')),{'userId':_0x1679ea}),_0x12e160(_0x3801da,_0x53e6cb,0x0,_0x53e6cb[_0x4aac('0xb9')]),_0x3801da[_0x4aac('0x52')](_0x53e6cb[_0x4aac('0xa4')](_0x4aac('0x4f')),{'userId':_0x1679ea}));}}(this['_touched'],_0x5a3839,_0x8e1c1b,_0x8e1c1b+_0xa3dccb['howMany']);}['_handleMergeOperation'](_0x14ca9f){const _0x4a0fe1=null===(_0x14ca9f=this[_0x4aac('0x103')](_0x14ca9f,this[_0x4aac('0x98')]))[_0x4aac('0x2d')]?null:_0x14ca9f[_0x4aac('0x2d')]||this['editor'][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x12d73b=_0x14ca9f[_0x4aac('0x2')][_0x4aac('0x1e')],_0x44115a=_0x14ca9f[_0x4aac('0x55')][_0x4aac('0x1e')],_0x100dde=_0x12d73b[_0x4aac('0xa4')](_0x4aac('0x4f')),_0x45fd37=_0x44115a[_0x4aac('0xa4')](_0x4aac('0x86'));_0x12d73b['_setAttribute'](_0x4aac('0x4f'),_0x44115a[_0x4aac('0xa4')](_0x4aac('0x4f'))),_0x44115a['_setAttribute'](_0x4aac('0x4f'),_0x100dde),this[_0x4aac('0x84')]['set'](_0x45fd37,{'userId':_0x4a0fe1}),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x100dde,{'userId':_0x4a0fe1}),_0x14ca9f['_execute']();}[_0x4aac('0xc')](_0x24126b){const _0x3319da=null===(_0x24126b=this[_0x4aac('0x103')](_0x24126b,this[_0x4aac('0x98')]))[_0x4aac('0x2d')]?null:_0x24126b['_authorId']||this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x75ec27=_0x24126b[_0x4aac('0xf7')],_0x5e4407=_0x24126b[_0x4aac('0x9c')][_0x4aac('0x1e')];_0x24126b['_execute']();const _0x4fb5e4=_0x5e4407[_0x4aac('0xa4')]('vid_end'),_0x23ca53=_0x24126b[_0x4aac('0xeb')][_0x4aac('0xfb')];if(_0x75ec27){const _0x3b27be=_0x23ca53[_0x4aac('0xa4')]('vid_end'),_0x467628=_0x5e4407[_0x4aac('0xa4')](_0x4aac('0x4f'));_0x5e4407[_0x4aac('0xe5')](_0x4aac('0x4f'),_0x3b27be),_0x23ca53[_0x4aac('0xe5')]('vid_end',_0x467628),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x5e4407[_0x4aac('0xa4')](_0x4aac('0x4f')),{'userId':_0x3319da}),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x23ca53[_0x4aac('0xa4')](_0x4aac('0x86')),{'userId':_0x3319da});}else{const _0x13844e=this[_0x4aac('0xf9')]++,_0x32bfcb=this[_0x4aac('0xf9')]++;_0x5e4407[_0x4aac('0xe5')]('vid_end',_0x13844e),_0x23ca53[_0x4aac('0xe5')]('vid_start',_0x32bfcb),_0x23ca53[_0x4aac('0xe5')]('vid_end',_0x4fb5e4),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x13844e,{'userId':_0x3319da}),this[_0x4aac('0x84')][_0x4aac('0x52')](_0x32bfcb,{'userId':_0x3319da});}}[_0x4aac('0xec')](_0x525acb){if(!_0x525acb[_0x4aac('0x6')])return;const _0x11c597=(_0x525acb=this[_0x4aac('0x103')](_0x525acb,this[_0x4aac('0xd2')]))[_0x4aac('0xbf')]?_0x525acb[_0x4aac('0xbf')][_0x4aac('0x4')]:null,_0x3b87f4=_0x525acb[_0x4aac('0x3e')]?_0x525acb[_0x4aac('0x3e')]['root']:null;_0x11c597&&this['_markers'][_0x4aac('0x93')](_0x525acb[_0x4aac('0x2b')]),_0x3b87f4&&this[_0x4aac('0x37')][_0x4aac('0x52')](_0x525acb[_0x4aac('0x2b')],_0x525acb[_0x4aac('0x3e')][_0x4aac('0x8')]());const _0x59bd3d=null===_0x525acb[_0x4aac('0x2d')]?null:_0x525acb[_0x4aac('0x2d')]||this[_0x4aac('0x2f')][_0x4aac('0x47')][_0x4aac('0xba')](_0x4aac('0xc3'))['me']['id'],_0x2b36ee=_0x525acb[_0x4aac('0x2b')];if(!this[_0x4aac('0x9e')][_0x4aac('0x27')](_0x2b36ee))return void this[_0x4aac('0x9e')]['set'](_0x2b36ee,{'range':_0x525acb[_0x4aac('0xbf')],'userId':_0x59bd3d});const _0x4252ca=this[_0x4aac('0x9e')][_0x4aac('0xba')](_0x2b36ee),_0x54143b=_0x4252ca['range'],_0x2be7ce=_0x525acb[_0x4aac('0x3e')];null==_0x54143b&&null==_0x2be7ce||_0x54143b&&_0x2be7ce&&_0x54143b[_0x4aac('0xa6')](_0x2be7ce)?this[_0x4aac('0x9e')]['delete'](_0x525acb['name']):_0x4252ca[_0x4aac('0x42')]=_0x59bd3d;}[_0x4aac('0xc6')](_0x3b84e4,_0x4f4885){this[_0x4aac('0xd2')][_0x4aac('0x27')](_0x3b84e4[_0x4aac('0x74')])?this[_0x4aac('0xd2')][_0x4aac('0xba')](_0x3b84e4[_0x4aac('0x74')])['_isAttached']=_0x3b84e4['isAdd']:(this[_0x4aac('0xd2')][_0x4aac('0x52')](_0x3b84e4['rootName'],G(_0x3b84e4[_0x4aac('0x74')],!0x0)),this['_diffRootsAttributes'][_0x4aac('0x52')](_0x3b84e4['rootName'],{}),_0x4f4885&&this[_0x4aac('0x98')]['set'](_0x3b84e4[_0x4aac('0x74')],G(_0x3b84e4[_0x4aac('0x74')],!0x0)));const _0x1cda71=null===_0x3b84e4[_0x4aac('0x2d')]?null:_0x3b84e4[_0x4aac('0x2d')]||this['editor'][_0x4aac('0x47')]['get'](_0x4aac('0xc3'))['me']['id'],_0x496573=this[_0x4aac('0xb2')][_0x4aac('0xba')](_0x3b84e4['rootName']);_0x496573&&_0x496573[_0x4aac('0x42')]===_0x1cda71?this[_0x4aac('0xb2')][_0x4aac('0x93')](_0x3b84e4[_0x4aac('0x74')]):this[_0x4aac('0xb2')][_0x4aac('0x52')](_0x3b84e4[_0x4aac('0x74')],{'userId':_0x1cda71,'isAttached':_0x3b84e4[_0x4aac('0xf6')]});}['_handleRootAttributeOperation'](_0x40a04e){const _0x4cdf8f=this[_0x4aac('0xe0')][_0x4aac('0xba')](_0x40a04e[_0x4aac('0x4')][_0x4aac('0x74')]);null===_0x40a04e[_0x4aac('0x49')]?delete _0x4cdf8f[_0x40a04e[_0x4aac('0xab')]]:_0x4cdf8f[_0x40a04e['key']]=_0x40a04e['newValue'];}}function q(_0x3dec90){const _0x511220=G(_0x3dec90[_0x4aac('0x74')],_0x3dec90['isAttached']());for(const _0x4ae3e5 of _0x3dec90['getChildren']()){const _0x47e3f6=_0x4ae3e5[_0x4aac('0x65')](!0x0);_0x511220['_appendChild'](_0x47e3f6);}return _0x511220;}function G(_0x1ad117,_0x12ce0e=!0x0){const _0x458b4a=new _0x54e3f3();return _0x458b4a[_0x4aac('0x74')]=_0x1ad117,_0x458b4a[_0x4aac('0x48')]=_0x12ce0e,_0x458b4a['isAttached']=()=>_0x458b4a[_0x4aac('0x48')],_0x458b4a;}function L(_0x12c1fe,_0x49c7a4,_0x57f201){const _0x231480=_0x4aac('0xa5')==_0x12c1fe[_0x4aac('0xdb')]?_0x57f201[_0x4aac('0x34')](_0x12c1fe['item'],_0x4aac('0x8a')):_0x57f201['createPositionBefore'](_0x12c1fe[_0x4aac('0xe3')]);return _0x57f201[_0x4aac('0x8d')](_0x49c7a4,_0x231480[_0x4aac('0x69')],_0x231480[_0x4aac('0x96')]);}function W(_0x1ce93f,_0x5243ab,_0x2844cf){const _0x4ff6cd=_0x4aac('0xd8')==_0x1ce93f['type']?_0x2844cf[_0x4aac('0x34')](_0x1ce93f['item'],0x0):_0x2844cf['createPositionAfter'](_0x1ce93f[_0x4aac('0xe3')]);return _0x2844cf[_0x4aac('0x8d')](_0x5243ab,_0x4ff6cd[_0x4aac('0x69')],_0x4ff6cd[_0x4aac('0x96')]);}