@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240131.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 +5 -5
  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 _0x22a4=['insertions','graveyardPosition','RevisionsRepository','model','_createCurrentRevision','_handleMergeOperation','nodes','PendingActions','filter','changeRootAttribute','getChildren','addRevisionData','getCurrentRevisionId','getRevisions','delete','userId','_bufferedUpdates','name','_operations','offset','$text','_markChanges','addRootAttribute','documentFragment','_baseRoots','revision:','getRevisionRootsAttributes','_fixPosition','_authorId','startsWith','RevisionTracker','_getViewJson','then','toView','getAttributes','_execute','_transformMarkers','values','isAttached','buildRevisionData','locale','updateRevisions','_cloneOperation','parse','removeRootAttribute','Users','afterInit','_startingVersion','keepParagraph','history','attributes','diffData','_prepareViewToSave','version','baseVersion','getChild','_handleMoveOperation','getMovedRangeStart','some','set','text','element','newRange','_initialRevisionId','_generateTape','slice','_isAttached','insert','sort','detachRoot','_lastFrom','item','_markers','path','loadState','toData','insertion','_appendChild','_diffRoots','type','setSource','splitPosition','merge','markers','marker','getTransformedByOperation','_setAttribute','source','_getFromVersion','reInit','has','vid_start','initialData','_fixRange','createRevision','_savedMetaData','creator','editor','_pendingAction','requires','forEach','creatorId','plugins','_removePendingAction','reverse','_loadState','editing','_touchedMarkers','getOperation','stickiness','PENDING_ACTION_REVISION_HISTORY','sourcePosition','get','useFillerType','howMany','_touched','getData','attachChange','createPositionBefore','isEqual','_handleSplitOperation','stringify','reinsert','deletion','_handleOperation','getRevision','NEGATIVE_INFINITY','pluginName','data-revision-','createPositionFromPath','view','find','_source','_startingRevisionId','keys','_setConversion','_diffRootsAttributes','split','document','_addPendingAction','finally','revisionHistory.resumeUnsavedRevision','authorsIds','getRootNames','_idsRoots','_makeIdsRoot','_baseIdsRoots','root','update','rootsAttributes','getLatestVersion','string','_insertChild','for','_getState','fromVersion','toVersion','roots','size','getRevisionDocumentData','setRevisionData','resolve','from','end','_calculateMetaData','_makeModelFromViewString','_getPreviousFrom','$graveyard','_handleInsertOperation','_touchedRoots','sendBufferedUpdates','vid_end','fromEntries','_handleRootAttributeOperation','config','editor-initial-data-replaced-with-revision-data','RealTimeCollaborationClient','max','childCount','processor','revision','_clone','_update','_lastTo','_removeRevisionMarkers','clear','currentRevision','key','vid','parent','affectsData','push','_bufferUpdate','collaboration.channelId','range','getRoot','tableCell','map','_applyOperations','elementEnd','getWalker','_createInitialRevision','revision-start','authors','dataToMarker','bind','_createFromRanges','paragraph','init','_removeMetaData','clone','shift','createdAt','_reset','getNodeByPath','attributesBefore','getAttribute','getAncestors','isAdd','_isPendingUpdate','adapter','children','conversion','data','_continueCurrentRevision','addRoot','_revisionId','_baseRootsAttributes','define','getIndex','_findInsertionIndex','position','elementStart','previousPosition','rootName','getRange','deletions','dataDowncast','_makeRevision','_processRootBeforeSave','oldRange','createPositionAt','offsetSize','_loadRevisionData','createRangeIn','add','repository','_copyMarkers','ready','_loadedStateData','targetPosition','getUser','_fixOperation','_revisionDataBuilder','length','attributesAfter','createRange','isReady','insertionPosition','default','newValue','_saveMetaData','Initial\x20revision','start','marked','_getVidAttributeName'];(function(_0x18abaa,_0x22a4a2){const _0x463ba7=function(_0x5a6610){while(--_0x5a6610){_0x18abaa['push'](_0x18abaa['shift']());}};_0x463ba7(++_0x22a4a2);}(_0x22a4,0xcb));const _0x463b=function(_0x18abaa,_0x22a4a2){_0x18abaa=_0x18abaa-0x0;let _0x463ba7=_0x22a4[_0x18abaa];return _0x463ba7;};import{Users as _0x452440}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0xd1f1e0,PendingActions as _0x22ca2e}from'ckeditor5/src/core.js';import{logWarning as _0x5967f4,uid as _0x334698}from'ckeditor5/src/utils.js';import{Position as _0x2799b2,Range as _0x51b5dc,Element as _0x332638,DocumentFragment as _0x25a69a,ViewText as _0x18d0c7,ViewElement as _0x132b11,ViewContainerElement as _0x17ed79,ViewAttributeElement as _0x5f1517,ViewEmptyElement as _0x53f113,ViewRawElement as _0x483fce,ViewUIElement as _0x20b413,ViewDocumentFragment as _0x255f00}from'ckeditor5/src/engine.js';import _0x8b26fa from'./revisionsrepository.js';import{getTranslation as _0x45b0a9}from'./utils/common-translations.js';import{cloneDeep as _0x375ea6,isEqual as _0x36efd1}from'lodash-es';const B={'c':_0x17ed79,'a':_0x5f1517,'e':_0x53f113,'r':_0x483fce,'u':_0x20b413};export default class l extends _0xd1f1e0{static get[_0x463b('0xbe')](){return _0x463b('0x5d');}static get[_0x463b('0xa2')](){return[_0x452440,_0x8b26fa,_0x22ca2e];}constructor(_0x4140eb){super(_0x4140eb),this['adapter']=null,this['currentRevision']=null,this[_0x463b('0x32')]=new H(this[_0x463b('0xa0')]),this[_0x463b('0x7e')]=this['editor'][_0x463b('0xed')]['get'](_0x463b('0x100'))||'initial',this[_0x463b('0x4f')]=new Map(),this[_0x463b('0x2e')]=null;const _0x31beb0=_0x334698();this[_0x463b('0xc3')]={'history':this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc9')][_0x463b('0x70')],'getLatestVersion':()=>Promise[_0x463b('0xe0')](this['editor'][_0x463b('0x42')][_0x463b('0xc9')][_0x463b('0x74')]),'getCurrentRevisionId':()=>_0x31beb0},this[_0x463b('0x7a')]('isReady',!0x1),this['set']('isEnabled',!0x0),this[_0x463b('0x7a')](_0x463b('0x10'),!0x1),this['editor'][_0x463b('0xed')][_0x463b('0x19')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x463b('0xa0')][_0x463b('0x13')]['for']('upcast')[_0x463b('0x1')]({'view':_0x463b('0xf3')});}[_0x463b('0x5')](){this['repository']=this[_0x463b('0xa0')]['plugins'][_0x463b('0xaf')](_0x463b('0x41')),this[_0x463b('0xc6')](),this[_0x463b('0xa0')][_0x463b('0x14')]['on'](_0x463b('0x2d'),()=>{const _0x1b4382=this[_0x463b('0x2b')][_0x463b('0xbc')](0x0),_0x531b63=_0x1b4382&&null===_0x1b4382[_0x463b('0x9f')]?_0x1b4382:null;if(this[_0x463b('0x15')]=!!_0x531b63&&this[_0x463b('0xa0')][_0x463b('0xed')][_0x463b('0xaf')](_0x463b('0xcc')),this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0x99')](_0x463b('0xef'))){const _0x23a198=this['_source']['getCurrentRevisionId'](),_0x22b614=this['repository']['getRevision'](_0x23a198);if(_0x22b614)this[_0x463b('0x6e')]=_0x22b614[_0x463b('0xda')],this[_0x463b('0x15')]=!0x1;else{const _0x416d14=this['_source'][_0x463b('0x70')][_0x463b('0x51')][_0x463b('0xc2')](_0x2b47a8=>!_0x2b47a8['_isInit']),_0x4465fb=_0x416d14?_0x416d14[_0x463b('0x75')]:this[_0x463b('0xc3')][_0x463b('0x70')][_0x463b('0x74')];_0x1b4382?(_0x1b4382['toVersion']<_0x4465fb&&_0x1b4382[_0x463b('0xf5')]({'toVersion':_0x4465fb}),this['_continueCurrentRevision']?(this['_source'][_0x463b('0x4b')]=()=>_0x531b63['id'],this['_startingVersion']=_0x531b63[_0x463b('0xda')]):(this[_0x463b('0x6e')]=_0x1b4382[_0x463b('0xdb')],this[_0x463b('0x15')]=!0x1)):(this['_startingVersion']=_0x4465fb,this['_continueCurrentRevision']=!0x1);}}else _0x531b63&&(this['editor'][_0x463b('0x42')]['document']['history'][_0x463b('0x74')]=Math[_0x463b('0xf0')](_0x531b63['toVersion'],this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc9')]['history']['version']),_0x531b63[_0x463b('0xda')]===_0x531b63[_0x463b('0xdb')]?(0x0!==_0x531b63[_0x463b('0xda')]&&(this['_source']['getCurrentRevisionId']=()=>_0x531b63['id']),this['_continueCurrentRevision']=!0x1):this[_0x463b('0x15')]&&(this[_0x463b('0xc3')]['getCurrentRevisionId']=()=>_0x531b63['id'],this['_startingVersion']=_0x531b63[_0x463b('0xda')])),this['_continueCurrentRevision']||(this[_0x463b('0x6e')]=this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc9')]['version']);this['_revisionDataBuilder'][_0x463b('0x5')](this[_0x463b('0xc3')][_0x463b('0x70')]),this[_0x463b('0x108')](this['_startingVersion']),this['_createCurrentRevision'](this[_0x463b('0x6e')]),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x463b('0x2')](_0x463b('0x36'))['to'](this,_0x463b('0x10'),_0x1124a1=>!_0x1124a1);}async[_0x463b('0x6d')](){if(this[_0x463b('0x2b')][_0x463b('0x33')]>0x0){const _0x5c620f=this[_0x463b('0x2b')][_0x463b('0xbc')](0x0),_0x1461b4=await this['getRevisionDocumentData'](_0x5c620f),_0x3d4f09=await this[_0x463b('0x59')](_0x5c620f);this['_replaceEditorDataWithRevisionData'](_0x1461b4,_0x3d4f09);}}[_0x463b('0x8f')](_0x4345c0){this[_0x463b('0xc3')]=_0x4345c0;}async[_0x463b('0xd3')](){const _0x270a4a=await this[_0x463b('0xc3')][_0x463b('0xd5')]();if(_0x270a4a>this[_0x463b('0xf9')]['toVersion']){await this[_0x463b('0xa8')]();const _0x1bd37b=this['buildRevisionData']({'revision':this[_0x463b('0xf9')],'to':_0x270a4a});_0x1bd37b[_0x463b('0x0')]=_0x1bd37b[_0x463b('0xcd')]['map'](_0x56e854=>this[_0x463b('0xa0')][_0x463b('0xa5')]['get']('Users')[_0x463b('0x30')](_0x56e854)),this[_0x463b('0xf9')][_0x463b('0xf5')](_0x1bd37b);}}async[_0x463b('0xa8')](){this['_continueCurrentRevision']&&!this[_0x463b('0x2e')]&&(await this['_loadRevisionData'](this[_0x463b('0xf9')]),this[_0x463b('0x32')]['loadState'](this[_0x463b('0xf9')]),this[_0x463b('0x2e')]={'fromVersion':this['currentRevision'][_0x463b('0xda')],'authors':this[_0x463b('0xf9')]['authors']['slice']()});}async['saveRevision'](_0x1ce23f={},_0x4461a5=null){const _0x43372e=[];await this[_0x463b('0xa8')](),this[_0x463b('0x15')]=!0x1,_0x4461a5>this[_0x463b('0xf9')]['toVersion']&&(_0x4461a5=null),null===_0x4461a5&&(_0x4461a5=await this['_source']['getLatestVersion']());const _0x6f365b=this[_0x463b('0x97')](_0x4461a5),_0x29a5d7=this[_0x463b('0x66')]({'from':_0x6f365b,'to':_0x4461a5});if(this[_0x463b('0xf9')][_0x463b('0xdb')]<_0x4461a5){const _0x538daa=this[_0x463b('0x66')]({'revision':this[_0x463b('0xf9')],'from':_0x4461a5,'to':_0x4461a5});_0x538daa[_0x463b('0x0')]=[],_0x538daa[_0x463b('0xcd')]=[],_0x538daa['id']=this[_0x463b('0xf9')]['id'],this[_0x463b('0xf9')][_0x463b('0xf5')](_0x538daa,!0x0),delete _0x538daa[_0x463b('0x0')],_0x43372e[_0x463b('0xfe')](_0x538daa);}_0x1ce23f[_0x463b('0xa4')]=this[_0x463b('0xa0')][_0x463b('0xa5')]['get'](_0x463b('0x6c'))['me']['id'],_0x1ce23f['name']=_0x1ce23f['name']||null,_0x1ce23f['id']=_0x1ce23f['id']||_0x334698(),_0x1ce23f={..._0x1ce23f,..._0x29a5d7};const _0xd0da8d=this['addRevisionData'](_0x1ce23f);_0x43372e[_0x463b('0xfe')](_0x1ce23f);const _0x5a55e9=this[_0x463b('0x2b')][_0x463b('0x1a')](_0xd0da8d);if(0x0!==_0x5a55e9){const _0x35c2bd=this[_0x463b('0x2b')][_0x463b('0xbc')](_0x5a55e9-0x1);if(_0x35c2bd['fromVersion']!==_0x4461a5){const _0x56152b=this['_revisionDataBuilder'][_0x463b('0xb3')](_0x4461a5,_0x35c2bd['toVersion']),_0x29b367={'id':_0x35c2bd['id'],'diffData':_0x56152b[_0x463b('0x72')],'authorsIds':_0x56152b[_0x463b('0xcd')],'authors':_0x56152b[_0x463b('0xcd')][_0x463b('0x104')](_0x45cfae=>this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x6c'))['getUser'](_0x45cfae)),'fromVersion':_0x4461a5};_0x35c2bd===this[_0x463b('0xf9')]&&(_0x29b367['createdAt']=new Date(_0x1ce23f[_0x463b('0x9')]['getTime']()+0xa)),_0x35c2bd[_0x463b('0xf5')](_0x29b367,!0x0),delete _0x29b367[_0x463b('0x0')],_0x43372e[_0x463b('0xfe')](_0x29b367);}}if(this[_0x463b('0x11')]){for(const _0x225775 of _0x43372e)this[_0x463b('0xff')](_0x225775['id'],_0x225775,!0x0);this[_0x463b('0xe9')]();}return _0xd0da8d;}[_0x463b('0x4a')](_0x2731ed){const _0x3ed963=this[_0x463b('0x2b')][_0x463b('0x9d')](_0x2731ed);return this[_0x463b('0x11')]&&_0x3ed963['on'](_0x463b('0xf5'),(_0x5d028c,_0x517181,_0x1285ed)=>{_0x1285ed||(this[_0x463b('0xff')](_0x517181['id'],_0x517181,!0x0),this[_0x463b('0xe9')]());}),this[_0x463b('0x2b')]['addRevision'](_0x3ed963,this[_0x463b('0x1b')](_0x3ed963)),_0x3ed963;}async[_0x463b('0xde')](_0x1fe0de){await this[_0x463b('0x28')](_0x1fe0de);const _0x25abe9={};for(const _0x5ae4d2 in _0x1fe0de[_0x463b('0x72')]){if(_0x1fe0de[_0x463b('0x72')][_0x5ae4d2][_0x463b('0xb4')]&&!_0x1fe0de['diffData'][_0x5ae4d2][_0x463b('0xb4')][_0x463b('0x65')])continue;const _0x29f6ba=this[_0x463b('0xf7')](JSON[_0x463b('0x6a')](_0x1fe0de['diffData'][_0x5ae4d2]['insertions'])),_0x58a18a=this[_0x463b('0xa0')][_0x463b('0xa9')][_0x463b('0xc1')]['document'],_0x5b6d07=new _0x255f00(_0x58a18a,_0x29f6ba['map'](_0xb48fae=>J(_0xb48fae,this[_0x463b('0xa0')])));this[_0x463b('0xa0')]['data'][_0x463b('0xf2')]['useFillerType'](_0x463b('0x3d')),_0x25abe9[_0x5ae4d2]=this[_0x463b('0xa0')]['data'][_0x463b('0xf2')][_0x463b('0x8a')](_0x5b6d07),this['editor']['data'][_0x463b('0xf2')][_0x463b('0xb0')](_0x463b('0x38'));}return _0x25abe9;}async[_0x463b('0x59')](_0x468c3c){await this[_0x463b('0x28')](_0x468c3c);const _0x1e1e22={};for(const _0x5ab212 in _0x468c3c[_0x463b('0x72')])_0x468c3c[_0x463b('0x72')][_0x5ab212][_0x463b('0xb4')]&&!_0x468c3c[_0x463b('0x72')][_0x5ab212][_0x463b('0xb4')][_0x463b('0x65')]||(_0x1e1e22[_0x5ab212]=_0x468c3c[_0x463b('0x72')][_0x5ab212][_0x463b('0x34')]||{});return _0x1e1e22;}[_0x463b('0xe9')](){if(0x0===this[_0x463b('0x4f')]['size'])return;if(this[_0x463b('0x10')])return;let _0x1851c9=Array[_0x463b('0xe1')](this[_0x463b('0x4f')][_0x463b('0x64')]());this[_0x463b('0x4f')][_0x463b('0xf8')]();for(let _0x4ef8be=0x0;_0x4ef8be<_0x1851c9[_0x463b('0x33')];_0x4ef8be++){const _0x4b2a99=_0x1851c9[_0x4ef8be];let _0x3c678e=!0x1;for(const _0x1c5f06 of Object['keys'](_0x4b2a99))void 0x0===_0x4b2a99[_0x1c5f06]?delete _0x4b2a99[_0x1c5f06]:'id'!==_0x1c5f06&&(_0x3c678e=!0x0);_0x3c678e||(_0x1851c9[_0x4ef8be]=null);}if(_0x1851c9=_0x1851c9[_0x463b('0x47')](_0xfe9fda=>null!==_0xfe9fda),!_0x1851c9['length'])return;for(let _0x312847=0x0;_0x312847<_0x1851c9[_0x463b('0x33')];_0x312847++){const _0x2f32fb=_0x1851c9[_0x312847];void 0x0!==_0x2f32fb[_0x463b('0xda')]&&void 0x0===_0x2f32fb[_0x463b('0xdb')]&&(_0x2f32fb['toVersion']=this[_0x463b('0x2b')]['getRevision'](_0x2f32fb['id'])[_0x463b('0xdb')]),void 0x0!==_0x2f32fb['toVersion']&&void 0x0===_0x2f32fb['fromVersion']&&(_0x2f32fb[_0x463b('0xda')]=this['repository'][_0x463b('0xbc')](_0x2f32fb['id'])['fromVersion']);}const _0x4229af=this[_0x463b('0xa0')][_0x463b('0xed')][_0x463b('0xaf')](_0x463b('0x100'));this[_0x463b('0x10')]=!0x0,this[_0x463b('0xca')](),this[_0x463b('0x11')][_0x463b('0x68')](_0x1851c9,_0x4229af)[_0x463b('0xcb')](()=>{this['_isPendingUpdate']=!0x1;})[_0x463b('0x5f')](_0x4a4a7e=>{if(_0x4a4a7e)for(const _0xedd5fb of _0x4a4a7e)this[_0x463b('0xdf')]({'id':_0xedd5fb['id'],'createdAt':_0xedd5fb[_0x463b('0x9')]});this[_0x463b('0xa6')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x150fbe,_0x2e6c1e){let _0x5d9159=this[_0x463b('0xa0')]['config'][_0x463b('0xaf')](_0x463b('0x9b')),_0xd8f7be=this[_0x463b('0xa0')]['config'][_0x463b('0xaf')]('rootsAttributes');if(void 0x0===_0x5d9159){_0x5d9159={};for(const _0x43b00e of this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc9')]['getRootNames']())_0x5d9159[_0x43b00e]='';}if(_0x463b('0xd6')==typeof _0x5d9159&&(_0x5d9159={'main':_0x5d9159}),void 0x0===_0xd8f7be){_0xd8f7be={};for(const _0x555a62 of this['editor'][_0x463b('0x42')][_0x463b('0xc9')][_0x463b('0xce')]())_0xd8f7be[_0x555a62]={};}let _0x1042b4=!0x1;const _0xdaa4da=Object['keys'](_0x5d9159),_0x5dd19e=Object['keys'](_0x150fbe);for(const _0x5dcf88 of _0xdaa4da){if(_0x5d9159[_0x5dcf88]!==_0x150fbe[_0x5dcf88]&&''!==_0x5d9159[_0x5dcf88]['trim']()){_0x1042b4=!0x0;break;}if(!_0x36efd1(_0xd8f7be[_0x5dcf88],_0x2e6c1e[_0x5dcf88])&&Object[_0x463b('0xc5')](_0xd8f7be[_0x5dcf88])[_0x463b('0x33')]>0x0){_0x1042b4=!0x0;break;}}_0x1042b4||(_0x1042b4=_0x5dd19e[_0x463b('0x79')](_0x1f6107=>!this[_0x463b('0xa0')]['model'][_0x463b('0xc9')][_0x463b('0x102')](_0x1f6107))),_0x1042b4&&_0x5967f4(_0x463b('0xee'),{'editorData':_0x5d9159,'editorRootsAttributes':_0xd8f7be,'revisionData':_0x150fbe,'revisionRootsAttributes':_0x2e6c1e}),this[_0x463b('0xa0')][_0x463b('0xed')][_0x463b('0x7a')]('initialData',_0x150fbe),this[_0x463b('0xa0')][_0x463b('0xed')][_0x463b('0x7a')](_0x463b('0xd4'),_0x2e6c1e);}[_0x463b('0xca')](){if(!this[_0x463b('0xa1')]){const _0x56e04d=this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x46'));this[_0x463b('0xa1')]=_0x56e04d[_0x463b('0x2a')](_0x45b0a9(this[_0x463b('0xa0')][_0x463b('0x67')],_0x463b('0xad')));}}[_0x463b('0xa6')](){this['_pendingAction']&&(this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x46'))['remove'](this['_pendingAction']),this[_0x463b('0xa1')]=null);}[_0x463b('0x1b')](_0x9fa8f3){const _0x237979=this[_0x463b('0x2b')][_0x463b('0x4c')]();_0x237979[_0x463b('0xa7')]();let _0x58be7a=0x0;for(;_0x58be7a<_0x237979[_0x463b('0x33')];){const _0x32585f=_0x237979[_0x58be7a];if(_0x32585f===this['currentRevision']){_0x58be7a++;continue;}if(_0x32585f['id']===this[_0x463b('0x7e')])break;const _0x3963fa=_0x9fa8f3[_0x463b('0xdb')]-_0x32585f[_0x463b('0xdb')]||_0x9fa8f3[_0x463b('0xda')]-_0x32585f[_0x463b('0xda')];if(_0x3963fa>0x0)break;if(_0x3963fa<0x0)_0x58be7a++;else{if(!_0x9fa8f3[_0x463b('0x9f')]&&_0x32585f['creator'])break;if(_0x32585f['creator']||!_0x9fa8f3[_0x463b('0x9f')]){if(_0x9fa8f3[_0x463b('0x9')]>_0x32585f[_0x463b('0x9')])break;_0x58be7a++;}else _0x58be7a++;}}return _0x58be7a;}[_0x463b('0xdf')](_0x38b4ec){const _0x157217=this['repository'][_0x463b('0xbc')](_0x38b4ec['id']);if(_0x38b4ec[_0x463b('0x9')]&&(_0x38b4ec[_0x463b('0x9')]=new Date(_0x38b4ec['createdAt'])),_0x38b4ec[_0x463b('0xcd')]){const _0x22d31a=this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x6c'));_0x38b4ec[_0x463b('0x0')]=_0x38b4ec[_0x463b('0xcd')][_0x463b('0x104')](_0x23e6bf=>_0x22d31a[_0x463b('0x30')](_0x23e6bf));}_0x157217[_0x463b('0xf5')](_0x38b4ec,!0x0);}[_0x463b('0x66')]({revision:_0x86d8c2=null,from:_0x2576b5=null,to:_0x87d2ed=null}){_0x2576b5=null!==_0x2576b5?_0x2576b5:_0x86d8c2[_0x463b('0xda')],_0x87d2ed=null!==_0x87d2ed?_0x87d2ed:_0x86d8c2[_0x463b('0xdb')];const _0x26c4a4=this[_0x463b('0x32')]['getData'](_0x2576b5,_0x87d2ed),_0x52ddc4={'diffData':_0x26c4a4['diffData'],'authorsIds':_0x26c4a4[_0x463b('0xcd')],'fromVersion':_0x2576b5,'toVersion':_0x87d2ed};if(!_0x86d8c2||_0x87d2ed!==_0x86d8c2[_0x463b('0xdb')]){const _0x3b6037=_0x87d2ed-0x1,_0x48ec6f=this[_0x463b('0xc3')][_0x463b('0x70')][_0x463b('0xab')](_0x3b6037);_0x52ddc4['createdAt']=_0x48ec6f&&_0x48ec6f[_0x463b('0x9')]||new Date();}if(this[_0x463b('0x2e')]&&_0x2576b5===this[_0x463b('0x2e')][_0x463b('0xda')])for(const _0x3e9af3 of this[_0x463b('0x2e')]['authors'])_0x52ddc4[_0x463b('0xcd')]['includes'](_0x3e9af3['id'])||_0x52ddc4[_0x463b('0xcd')][_0x463b('0xfe')](_0x3e9af3['id']);return _0x52ddc4;}[_0x463b('0x28')](_0x12bdcc){if(!_0x12bdcc||_0x12bdcc[_0x463b('0x72')])return Promise[_0x463b('0xe0')]();{const _0x3d22e6=this[_0x463b('0xa0')][_0x463b('0xed')][_0x463b('0xaf')](_0x463b('0x100'));return this[_0x463b('0x11')]['getRevision']({'channelId':_0x3d22e6,'revisionId':_0x12bdcc['id']})[_0x463b('0x5f')](_0x11637a=>{_0x12bdcc[_0x463b('0x72')]=_0x11637a[_0x463b('0x72')];});}}[_0x463b('0xff')](_0x357c69,_0x3222ce,_0xfdf4d0){if(this[_0x463b('0x4f')][_0x463b('0x99')](_0x357c69)){const _0x28bca0=this['_bufferedUpdates'][_0x463b('0xaf')](_0x357c69);_0x3222ce=_0xfdf4d0?{..._0x28bca0,..._0x3222ce}:{..._0x3222ce,..._0x28bca0};}this['_bufferedUpdates'][_0x463b('0x7a')](_0x357c69,_0x3222ce);}[_0x463b('0x97')](_0x3a1743){const _0x414207=this[_0x463b('0x2b')][_0x463b('0x4c')]();_0x414207[_0x463b('0xa7')](),_0x414207[_0x463b('0x8')]();const _0x4db779=_0x414207[_0x463b('0xc2')](_0x11fa43=>_0x11fa43['toVersion']<=_0x3a1743)[_0x463b('0xdb')];return _0x4db779<this[_0x463b('0x6e')]?this[_0x463b('0x6e')]:_0x4db779;}[_0x463b('0x108')](_0x25d4c9){const _0xda47d8=this[_0x463b('0x2b')][_0x463b('0xbc')](this[_0x463b('0x2b')][_0x463b('0x33')]-0x1);if(_0xda47d8)this['_initialRevisionId']=_0xda47d8['id'];else{const _0x3a70f7=!this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc9')][_0x463b('0xdc')][_0x463b('0xc2')](_0x23b0c7=>this[_0x463b('0xa0')][_0x463b('0x42')]['hasContent'](_0x23b0c7)),_0x4bfc6b=this['editor']['plugins'][_0x463b('0xaf')](_0x463b('0x6c'))['me']['id'],_0x4652a2=_0x45b0a9(this[_0x463b('0xa0')]['locale'],_0x3a70f7?'Empty\x20document':_0x463b('0x3b'));this[_0x463b('0x23')]({'from':_0x25d4c9,'to':_0x25d4c9,'id':this[_0x463b('0x7e')],'name':_0x4652a2,'creatorId':_0x4bfc6b});}}[_0x463b('0x43')](_0x55e55b){const _0xc3dec3=this['_source'][_0x463b('0x4b')]();this[_0x463b('0xf9')]=this[_0x463b('0x2b')][_0x463b('0xbc')](_0xc3dec3),this['currentRevision']||(this[_0x463b('0xf9')]=this[_0x463b('0x23')]({'from':_0x55e55b,'to':_0x55e55b,'id':_0xc3dec3,'name':'','creatorId':null}));}[_0x463b('0x23')]({name:_0x2fe338,from:_0x554b8c,to:_0x48932f,creatorId:_0x4430f7,id:_0x5006bd}){const _0x236e5d=this['buildRevisionData']({'from':_0x554b8c,'to':_0x48932f});_0x236e5d[_0x463b('0x50')]=_0x2fe338,_0x236e5d[_0x463b('0xa4')]=_0x4430f7,_0x236e5d['id']=_0x5006bd;const _0x15abb7=this[_0x463b('0x4a')](_0x236e5d);return this['adapter']&&this[_0x463b('0xff')](_0x236e5d['id'],_0x236e5d,!0x0),_0x15abb7;}[_0x463b('0xc6')](){this[_0x463b('0xa0')][_0x463b('0x13')][_0x463b('0xd8')](_0x463b('0x22'))['markerToData']({'model':_0x463b('0xf3')});}[_0x463b('0xf7')](_0x220e7f){return(_0x220e7f=_0x220e7f[_0x463b('0x47')](_0x58dbc8=>!_0x58dbc8[_0x463b('0x50')]||_0x463b('0x109')!==_0x58dbc8[_0x463b('0x50')]&&'revision-end'!==_0x58dbc8['name']))[_0x463b('0xa3')](_0x8683e=>{_0x463b('0xd6')!=typeof _0x8683e&&(_0x8683e['children']=this[_0x463b('0xf7')](_0x8683e[_0x463b('0x12')]),_0x8683e[_0x463b('0x71')]=_0x8683e[_0x463b('0x71')][_0x463b('0x47')](_0x225d04=>!_0x225d04[0x0][_0x463b('0x5c')](_0x463b('0xbf'))));}),_0x220e7f;}}function J(_0x39bf9a,_0xbc901b){const _0x22dfca=_0xbc901b[_0x463b('0xa9')][_0x463b('0xc1')][_0x463b('0xc9')];if(_0x463b('0xd6')==typeof _0x39bf9a)return new _0x18d0c7(_0x22dfca,_0x39bf9a);{const _0x5e56ba=_0x39bf9a['children']['map'](_0x583ff8=>J(_0x583ff8,_0xbc901b));return new(B[_0x39bf9a[(_0x463b('0x8e'))]]||_0x132b11)(_0x22dfca,_0x39bf9a['name'],_0x39bf9a[_0x463b('0x71')],_0x5e56ba);}}class H{constructor(_0x1e0e7d){this[_0x463b('0xa0')]=_0x1e0e7d,this[_0x463b('0x9e')]=new Map(),this[_0x463b('0x85')]=-0x1,this['_lastTo']=-0x1,this[_0x463b('0x87')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x463b('0x57')]=new Map(),this[_0x463b('0x18')]=new Map(),this[_0x463b('0xcf')]=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this[_0x463b('0xaa')]=new Map(),this[_0x463b('0xe8')]=new Map(),this[_0x463b('0x17')]=0x1;}[_0x463b('0x5')](_0xad9681){this[_0x463b('0x96')]=_0xad9681;const _0x4ac749=new Map(),_0x10d719=new Map(),_0xc8581f=this['editor']['model'][_0x463b('0xc9')][_0x463b('0xdc')][_0x463b('0x104')](_0x1fc191=>_0x1fc191['rootName']);for(const _0x1fb2aa of _0xc8581f){const _0x58c786=this['editor']['model'][_0x463b('0xc9')]['getRoot'](_0x1fb2aa),_0x56a2b7=q(_0x58c786);_0x4ac749['set'](_0x1fb2aa,_0x56a2b7),_0x10d719[_0x463b('0x7a')](_0x1fb2aa,Object[_0x463b('0xeb')](_0x58c786[_0x463b('0x61')]()));}const _0x222ce5=Array[_0x463b('0xe1')](this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0x92')])[_0x463b('0x104')](_0x204469=>[_0x204469['name'],_0x204469[_0x463b('0x20')]()]),_0x528b56=this[_0x463b('0x96')][_0x463b('0x74')];this['_saveMetaData'](_0x528b56,_0x4ac749,_0x222ce5,_0x10d719),this[_0x463b('0xc4')]=this['_revisionId'];const _0x43802e=new Map(),_0x341809=new Map();for(const _0x432003 of _0xc8581f){const _0x5d85d4=G(_0x432003);_0x43802e['set'](_0x432003,_0x5d85d4),_0x341809[_0x463b('0x7a')](_0x432003,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x43802e,[],_0x341809);}[_0x463b('0xb3')](_0x47b23f,_0x9e3abb){if(this[_0x463b('0x85')]===_0x47b23f&&this['_lastTo']<=_0x9e3abb)this['_savedMetaData'][_0x463b('0xdd')]>0x1&&this[_0x463b('0x6')](this['_lastTo']),this['_applyOperations'](this[_0x463b('0xf6')],_0x9e3abb,!0x0);else{if(!this[_0x463b('0x9e')][_0x463b('0x99')](_0x47b23f)){const _0x8e851d=this['_getPreviousFrom'](_0x47b23f);this[_0x463b('0xe3')](_0x8e851d,_0x47b23f,!0x1);}this[_0x463b('0xe3')](_0x47b23f,_0x9e3abb,!0x0);}return this[_0x463b('0x85')]=_0x47b23f,this['_lastTo']=_0x9e3abb,this[_0x463b('0xd9')]();}[_0x463b('0x89')](_0x7c2bf){this[_0x463b('0xa')](),this['_lastFrom']=_0x7c2bf['fromVersion'],this['_lastTo']=_0x7c2bf[_0x463b('0xdb')];for(const _0x86c8c7 in _0x7c2bf['diffData']){const _0x167343=_0x7c2bf['diffData'][_0x86c8c7][_0x463b('0xb4')],_0x530d88=_0x375ea6(_0x7c2bf[_0x463b('0x72')][_0x86c8c7][_0x463b('0xc')])||{},_0x32b7e1=this['_makeModelFromViewString'](_0x7c2bf['diffData'][_0x86c8c7][_0x463b('0x21')]);_0x32b7e1[_0x463b('0x1f')]=_0x86c8c7,_0x32b7e1['_isAttached']=!_0x167343||!_0x167343[_0x463b('0x65')],_0x32b7e1[_0x463b('0x65')]=()=>_0x32b7e1['_isAttached'],this['_baseRoots'][_0x463b('0x7a')](_0x86c8c7,_0x32b7e1),this['_baseRootsAttributes'][_0x463b('0x7a')](_0x86c8c7,_0x530d88),_0x167343&&this['_touchedRoots'][_0x463b('0x7a')](_0x86c8c7,_0x167343);const _0x367a8e=this[_0x463b('0xd0')](_0x32b7e1);this['_baseIdsRoots'][_0x463b('0x7a')](_0x86c8c7,_0x367a8e);for(const [_0x3d239d,_0x2e52de]of _0x32b7e1[_0x463b('0x92')]){if(!_0x3d239d[_0x463b('0x5c')](_0x463b('0x58')))continue;const _0x146eab=_0x3d239d['split'](':')[0x2];for(const _0x20021e of _0x2e52de[_0x463b('0x107')]({'singleCharacters':!0x0})){const _0x22a7c2=this[_0x463b('0x3e')](_0x20021e),_0x1b95e9=_0x463b('0x106')==_0x20021e['type']?_0x20021e[_0x463b('0x1e')][_0x463b('0x88')][_0x463b('0x80')](0x0,-0x1):_0x20021e[_0x463b('0x1e')][_0x463b('0x88')],_0x5084fa=_0x367a8e[_0x463b('0xb')](_0x1b95e9)[_0x463b('0xd')](_0x22a7c2);this[_0x463b('0xb2')]['set'](_0x5084fa,{'userId':_0x146eab});}}}this[_0x463b('0xc4')]=this[_0x463b('0x17')];const _0x4522a8=[...Array(this[_0x463b('0x17')])[_0x463b('0xc5')]()][_0x463b('0x80')](0x1)[_0x463b('0x47')](_0x4dd37c=>!this[_0x463b('0xb2')][_0x463b('0x99')](_0x4dd37c));let _0x81d8c8=0x0;const _0x2a0d53=new Map();for(const _0x8e5d5a in _0x7c2bf[_0x463b('0x72')]){const _0x515c4a=_0x7c2bf[_0x463b('0x72')][_0x8e5d5a][_0x463b('0xb4')],_0x37d1c1=_0x375ea6(_0x7c2bf['diffData'][_0x8e5d5a][_0x463b('0x34')])||{},_0xb0f5ea=this[_0x463b('0xe4')](_0x7c2bf[_0x463b('0x72')][_0x8e5d5a][_0x463b('0x3f')]);_0xb0f5ea[_0x463b('0x1f')]=_0x8e5d5a,_0xb0f5ea[_0x463b('0x81')]=!_0x515c4a||_0x515c4a[_0x463b('0x65')],_0xb0f5ea[_0x463b('0x65')]=()=>_0xb0f5ea[_0x463b('0x81')],this['_diffRoots'][_0x463b('0x7a')](_0x8e5d5a,_0xb0f5ea),this[_0x463b('0xc7')][_0x463b('0x7a')](_0x8e5d5a,_0x37d1c1);const _0x3e6af9=this[_0x463b('0xd0')](_0xb0f5ea,Number[_0x463b('0xbd')]);this['_idsRoots'][_0x463b('0x7a')](_0x8e5d5a,_0x3e6af9),_0x2a0d53[_0x463b('0x7a')](_0x8e5d5a,_0xb0f5ea[_0x463b('0x65')]()?_0x37d1c1:{});for(const [_0x1e86f1,_0x7e07d0]of _0xb0f5ea[_0x463b('0x92')]){if(!_0x1e86f1['startsWith'](_0x463b('0x58')))continue;const _0x30bac4=_0x1e86f1['split'](':')[0x2];for(const _0x33d3f8 of _0x7e07d0[_0x463b('0x107')]({'singleCharacters':!0x0})){const _0x2e732e=this['_getVidAttributeName'](_0x33d3f8),_0x3d57e6=this[_0x463b('0x17')]++,_0x4691d9=_0x463b('0x106')==_0x33d3f8[_0x463b('0x8e')]?_0x33d3f8[_0x463b('0x1e')][_0x463b('0x88')][_0x463b('0x80')](0x0,-0x1):_0x33d3f8[_0x463b('0x1e')][_0x463b('0x88')];_0x3e6af9[_0x463b('0xb')](_0x4691d9)['_setAttribute'](_0x2e732e,_0x3d57e6),this[_0x463b('0xb2')][_0x463b('0x7a')](_0x3d57e6,{'userId':_0x30bac4});}}for(const _0x2bb0ec of this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0x29')](_0xb0f5ea)[_0x463b('0x107')]({'singleCharacters':!0x0})){const _0x197001=this[_0x463b('0x3e')](_0x2bb0ec),_0x4f03ff=_0x463b('0x106')==_0x2bb0ec['type']?_0x2bb0ec['previousPosition'][_0x463b('0x88')][_0x463b('0x80')](0x0,-0x1):_0x2bb0ec[_0x463b('0x1e')][_0x463b('0x88')],_0x5622a4=_0x3e6af9[_0x463b('0xb')](_0x4f03ff);_0x5622a4[_0x463b('0xd')](_0x197001)>0x0||_0x5622a4['_setAttribute'](_0x197001,_0x4522a8[_0x81d8c8++]);}for(const [_0x25acca,_0x3047f1]of _0xb0f5ea[_0x463b('0x92')])_0x25acca[_0x463b('0x5c')](_0x463b('0x58'))||this[_0x463b('0x87')][_0x463b('0x7a')](_0x25acca,_0x3047f1);}const _0xb45dca=G('$graveyard');this[_0x463b('0x57')][_0x463b('0x7a')](_0x463b('0xe6'),_0xb45dca),this['_baseIdsRoots']['set']('$graveyard',this[_0x463b('0xd0')](_0xb45dca,0x1));const _0x4c28ec=G(_0x463b('0xe6'));this[_0x463b('0x8d')][_0x463b('0x7a')](_0x463b('0xe6'),_0x4c28ec),this[_0x463b('0xcf')][_0x463b('0x7a')](_0x463b('0xe6'),this[_0x463b('0xd0')](_0x4c28ec,0x1));const _0x5ee676=Array[_0x463b('0xe1')](this['_diffRoots'])['map'](([_0x2d9b5f,_0x58195f])=>[_0x2d9b5f,q(_0x58195f)]);this['_saveMetaData'](this[_0x463b('0xf6')],_0x5ee676,this[_0x463b('0x87')],_0x2a0d53);}[_0x463b('0xe4')](_0x539a24){const _0x2debfe=JSON['parse'](_0x539a24),_0x25e838=this[_0x463b('0xa0')][_0x463b('0xa9')][_0x463b('0xc1')]['document'],_0x3d0178=new _0x255f00(_0x25e838,_0x2debfe[_0x463b('0x104')](_0x2c6d0e=>J(_0x2c6d0e,this['editor'])));return this[_0x463b('0xa0')][_0x463b('0x14')]['toModel'](_0x3d0178);}[_0x463b('0x3a')](_0x1ee95e,_0xcefb33,_0x19aad3,_0x2f13da){const _0x33f3ab=new Map(_0xcefb33),_0x2ac899=new Map(_0x375ea6(_0x2f13da)),_0x4a0776=new Map();for(const [_0x8a31ee,_0x3f72da]of _0x19aad3)_0x4a0776[_0x463b('0x7a')](_0x8a31ee,{'start':_0x3f72da[_0x463b('0x3c')][_0x463b('0x7')](),'end':_0x3f72da['end'][_0x463b('0x7')](),'rootName':_0x3f72da[_0x463b('0xd2')]['rootName']});this[_0x463b('0x9e')][_0x463b('0x7a')](_0x1ee95e,{'roots':_0x33f3ab,'markers':_0x4a0776,'rootsAttributes':_0x2ac899});}[_0x463b('0x6')](_0x4664e3){this[_0x463b('0x9e')]['delete'](_0x4664e3);}[_0x463b('0x98')](){this[_0x463b('0xa')](),this[_0x463b('0x85')]=-0x1,this[_0x463b('0xf6')]=-0x1,this[_0x463b('0x9e')][_0x463b('0xf8')](),this['init'](this[_0x463b('0x96')]);}['_reset'](){this[_0x463b('0xb2')][_0x463b('0xf8')](),this[_0x463b('0xaa')][_0x463b('0xf8')](),this[_0x463b('0xe8')][_0x463b('0xf8')](),this['_diffRoots'][_0x463b('0xf8')](),this[_0x463b('0xc7')]['clear'](),this[_0x463b('0x57')][_0x463b('0xf8')](),this['_baseRootsAttributes']['clear'](),this[_0x463b('0xcf')]['clear'](),this[_0x463b('0xd1')][_0x463b('0xf8')](),this[_0x463b('0x87')][_0x463b('0xf8')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x463b('0x17')];}[_0x463b('0xd0')](_0x31f2c2,_0x2926ed=null){let _0x59ed75=null;_0x31f2c2['is'](_0x463b('0x56'))||(_0x59ed75=new _0x332638(_0x31f2c2[_0x463b('0x50')],{'vid_start':null===_0x2926ed?this['_revisionId']++:_0x2926ed++}));const _0x528448=[];for(const _0x5d800d of _0x31f2c2[_0x463b('0x49')]())if(_0x5d800d['is'](_0x463b('0x7c'))){_0x528448[_0x463b('0xfe')](this[_0x463b('0xd0')](_0x5d800d,_0x2926ed));const _0xc80c2d=_0x528448[_0x528448[_0x463b('0x33')]-0x1];null!==_0x2926ed&&(_0x2926ed=_0xc80c2d['is'](_0x463b('0x7c'),_0x463b('0x53'))?_0xc80c2d['getAttribute']('vid')+0x1:_0xc80c2d[_0x463b('0xd')]('vid_end')+0x1);}else for(let _0x51c2dd=0x0;_0x51c2dd<_0x5d800d[_0x463b('0x27')];_0x51c2dd++)_0x528448[_0x463b('0xfe')](new _0x332638(_0x463b('0x53'),{'vid':null===_0x2926ed?this[_0x463b('0x17')]++:_0x2926ed++}));if(_0x31f2c2['is'](_0x463b('0x56'))){const _0x136a39=G(_0x31f2c2['rootName']);return _0x136a39[_0x463b('0xd7')](0x0,_0x528448),_0x136a39;}return _0x59ed75[_0x463b('0x95')](_0x463b('0xea'),null===_0x2926ed?this[_0x463b('0x17')]++:_0x2926ed++),_0x59ed75['_insertChild'](0x0,_0x528448),_0x59ed75;}[_0x463b('0xe3')](_0x1abd3c,_0xe2a3df,_0x249141){this[_0x463b('0xa')]();const {roots:_0x232a1e,markers:_0x420241,rootsAttributes:_0x39a062}=this['_savedMetaData']['get'](_0x1abd3c);this[_0x463b('0x57')]=new Map(_0x232a1e),this[_0x463b('0x18')]=new Map(_0x375ea6(_0x39a062));for(const [_0xfed6d0,_0x39e22d]of this['_baseRoots'])if(_0x463b('0xe6')!==_0xfed6d0&&(this[_0x463b('0x8d')]['set'](_0xfed6d0,q(_0x39e22d)),this[_0x463b('0xc7')]=new Map(_0x375ea6(_0x39a062)),_0x249141)){const _0x5c3691=this[_0x463b('0x17')];this[_0x463b('0xcf')][_0x463b('0x7a')](_0xfed6d0,this[_0x463b('0xd0')](_0x39e22d)),this[_0x463b('0xd1')][_0x463b('0x7a')](_0xfed6d0,this[_0x463b('0xd0')](_0x39e22d,_0x5c3691));}this[_0x463b('0xc4')]=this[_0x463b('0x17')],this[_0x463b('0x8d')][_0x463b('0x7a')](_0x463b('0xe6'),q(this[_0x463b('0x57')][_0x463b('0xaf')](_0x463b('0xe6')))),_0x249141&&this[_0x463b('0xcf')][_0x463b('0x7a')]('$graveyard',this[_0x463b('0xd0')](this['_baseRoots'][_0x463b('0xaf')](_0x463b('0xe6'))));for(const [_0x1eec51,_0x7ae35c]of _0x420241){const _0x346452=this['_baseRoots'][_0x463b('0xaf')](_0x7ae35c[_0x463b('0x1f')]),_0x5ac919=this[_0x463b('0x8d')]['get'](_0x7ae35c['rootName']),_0x26744b=new _0x51b5dc(this['_fixPosition'](_0x7ae35c[_0x463b('0x3c')],_0x346452),this[_0x463b('0x5a')](_0x7ae35c[_0x463b('0xe2')],_0x346452)),_0x4236c4=this[_0x463b('0x9c')](_0x26744b,_0x5ac919);_0x346452['markers'][_0x463b('0x7a')](_0x1eec51,_0x26744b),this[_0x463b('0x87')][_0x463b('0x7a')](_0x1eec51,_0x4236c4);}this[_0x463b('0x105')](_0x1abd3c,_0xe2a3df,_0x249141);}[_0x463b('0x105')](_0x266ed9,_0x332eee,_0x2fad16){for(const _0x260114 of this['source']['getOperations'](_0x266ed9,_0x332eee))this['_handleOperation'](_0x260114,_0x2fad16);for(const _0x4f468c of this[_0x463b('0x8d')][_0x463b('0x64')]())_0x4f468c[_0x463b('0x92')][_0x463b('0xf8')]();for(const [_0x1c3dcd,_0x4bdcc4]of this[_0x463b('0x87')]){this[_0x463b('0x8d')][_0x463b('0xaf')](_0x4bdcc4[_0x463b('0xd2')][_0x463b('0x1f')])[_0x463b('0x92')][_0x463b('0x7a')](_0x1c3dcd,_0x4bdcc4[_0x463b('0x7')]());}const _0x28b77d=new Map(),_0x58abac=new Map();for(const [_0x1b81f8,_0x2c470d]of this[_0x463b('0x8d')])_0x28b77d[_0x463b('0x7a')](_0x1b81f8,q(_0x2c470d)),_0x58abac['set'](_0x1b81f8,this[_0x463b('0xc7')][_0x463b('0xaf')](_0x1b81f8));this[_0x463b('0x3a')](_0x332eee,_0x28b77d,this[_0x463b('0x87')],_0x58abac);}[_0x463b('0xe5')](_0xd2c3fe){const _0x153dd4=Array['from'](this['_savedMetaData'][_0x463b('0xc5')]());_0x153dd4[_0x463b('0x83')]((_0x18b63e,_0x36f150)=>_0x18b63e-_0x36f150),_0x153dd4[_0x463b('0xa7')]();for(const _0x464d96 of _0x153dd4)if(_0x464d96<_0xd2c3fe)return _0x464d96;return Number['NEGATIVE_INFINITY'];}[_0x463b('0x2c')](_0x4a5f9a,_0xf58378){const _0x2b5d3c=Array['from'](_0xf58378[_0x463b('0x92')])[_0x463b('0x104')](([_0x323e56,_0x38e29e])=>[_0x323e56,this[_0x463b('0x9c')](_0x38e29e,_0x4a5f9a)]);_0x4a5f9a[_0x463b('0x92')]=new Map(_0x2b5d3c);}[_0x463b('0x63')](_0x44d059){for(const _0x425cdc of this[_0x463b('0x87')]['values']()){const _0x8ad50d=_0x425cdc[_0x463b('0x94')](_0x44d059),_0x27882f=_0x51b5dc[_0x463b('0x3')](_0x8ad50d);_0x425cdc[_0x463b('0x3c')]=_0x27882f['start'],_0x425cdc[_0x463b('0xe2')]=_0x27882f[_0x463b('0xe2')];}}[_0x463b('0xbb')](_0x344be7,_0x1749a9){if(_0x463b('0x16')==_0x344be7['type']||_0x463b('0x84')==_0x344be7[_0x463b('0x8e')])return void this['_handleRootOperation'](_0x344be7,_0x1749a9);if('insert'==_0x344be7[_0x463b('0x8e')]){const _0x208b2c=_0x344be7[_0x463b('0x1c')][_0x463b('0xd2')][_0x463b('0x1f')];this[_0x463b('0x8d')][_0x463b('0x99')](_0x208b2c)||(this[_0x463b('0x8d')][_0x463b('0x7a')](_0x208b2c,G(_0x208b2c,!0x0)),this[_0x463b('0xc7')]['set'](_0x208b2c,{}),_0x1749a9&&this[_0x463b('0xcf')][_0x463b('0x7a')](_0x208b2c,G(_0x208b2c,!0x0)));}else{if(_0x463b('0x55')==_0x344be7[_0x463b('0x8e')]||_0x463b('0x6b')==_0x344be7['type']||_0x463b('0x48')==_0x344be7[_0x463b('0x8e')])return void this[_0x463b('0xec')](_0x344be7);}const _0x338e1d=this[_0x463b('0x69')](_0x344be7,this[_0x463b('0x8d')]);if(_0x463b('0x93')!==_0x344be7[_0x463b('0x8e')]&&(_0x338e1d[_0x463b('0x62')](),this['_transformMarkers'](_0x338e1d)),_0x1749a9)switch(_0x338e1d[_0x463b('0x8e')]){case _0x463b('0x82'):this[_0x463b('0xe7')](_0x344be7);break;case'move':case'remove':case _0x463b('0xb9'):this['_handleMoveOperation'](_0x344be7);break;case _0x463b('0x91'):this[_0x463b('0x44')](_0x344be7);break;case _0x463b('0xc8'):this[_0x463b('0xb7')](_0x344be7);break;case _0x463b('0x93'):this['_handleMarkerOperation'](_0x344be7);}}[_0x463b('0x69')](_0x37bb1d,_0x40f4d4){const _0x28a83e=_0x37bb1d[_0x463b('0x7')]();return _0x28a83e[_0x463b('0x5b')]=_0x37bb1d[_0x463b('0x5b')],this[_0x463b('0x31')](_0x28a83e,_0x40f4d4),_0x28a83e;}['_getBaseVids'](_0x18e75e){return _0x18e75e[_0x463b('0x104')](_0x2f253c=>{const _0x5aebfe=this['_getVidAttributeName'](_0x2f253c);return Number(_0x2f253c['item'][_0x463b('0xd')](_0x5aebfe));});}[_0x463b('0x7f')](_0x1e825d,_0x2b6aed){if(_0x1e825d['is']('element','$text'))_0x2b6aed[_0x463b('0xfe')]({'item':_0x1e825d,'type':_0x463b('0x7b')});else{_0x1e825d['is'](_0x463b('0x7c'))&&_0x2b6aed[_0x463b('0xfe')]({'item':_0x1e825d,'type':_0x463b('0x1d')});for(const _0x12c7d8 of _0x1e825d[_0x463b('0x49')]())this[_0x463b('0x7f')](_0x12c7d8,_0x2b6aed);_0x1e825d['is'](_0x463b('0x7c'))&&_0x2b6aed[_0x463b('0xfe')]({'item':_0x1e825d,'type':_0x463b('0x106')});}return _0x2b6aed;}[_0x463b('0xd9')](){const _0x554c67=new Map(this[_0x463b('0xb2')]),_0x2d09c2=new Map(_0x554c67),_0x534c68=new Map(),_0x2a37e1={'insertions':{},'deletions':{}},_0x228fd8={'insertions':{},'deletions':{}},_0x4e35f0=new Map(),_0x1a094f=new Set([...this['_baseRoots'][_0x463b('0xc5')](),...this['_diffRoots'][_0x463b('0xc5')]()]);_0x1a094f[_0x463b('0x4d')](_0x463b('0xe6'));for(const _0x56d022 of _0x1a094f){const _0x3140f6=this['_diffRoots'][_0x463b('0xaf')](_0x56d022)||G(_0x56d022,!0x1),_0x2d65a5=this[_0x463b('0x57')][_0x463b('0xaf')](_0x56d022)||G(_0x56d022,!0x1);_0x3140f6['isAttached']()||_0x2d65a5[_0x463b('0x65')]()?(_0x2a37e1[_0x463b('0x3f')][_0x56d022]=q(_0x3140f6),_0x2a37e1[_0x463b('0x21')][_0x56d022]=q(_0x2d65a5),this[_0x463b('0x2c')](_0x2a37e1[_0x463b('0x21')][_0x56d022],_0x2d65a5),this[_0x463b('0x2c')](_0x2a37e1[_0x463b('0x3f')][_0x56d022],_0x3140f6),_0x228fd8[_0x463b('0x3f')][_0x56d022]=this[_0x463b('0x7f')](this[_0x463b('0xcf')]['get'](_0x56d022),[]),_0x228fd8['deletions'][_0x56d022]=this['_generateTape'](this[_0x463b('0xd1')][_0x463b('0xaf')](_0x56d022)||G(_0x56d022,!0x1),[])):_0x1a094f[_0x463b('0x4d')](_0x56d022);}for(const _0x5be7c2 of _0x1a094f){const _0x2b6540=_0x228fd8[_0x463b('0x3f')][_0x5be7c2];for(const _0x1d7d59 of _0x2b6540){const _0x5b31a0=this[_0x463b('0x3e')](_0x1d7d59),_0x9719e3=_0x1d7d59[_0x463b('0x86')]['getAttribute'](_0x5b31a0);_0x2d09c2['delete'](_0x9719e3),_0x9719e3>=this[_0x463b('0xc4')]&&_0x534c68['set'](_0x9719e3,_0x554c67[_0x463b('0xaf')](_0x9719e3));}}for(const _0x55cf05 of _0x1a094f){const _0x2951a5=_0x228fd8[_0x463b('0x3f')][_0x55cf05],_0x2ef33c=this['_getBaseVids'](_0x228fd8['deletions'][_0x55cf05]);let _0x19d09c=0x0;for(const _0x247bc6 of _0x2951a5){const _0x239dd1=this[_0x463b('0x3e')](_0x247bc6),_0x45aa1d=_0x247bc6[_0x463b('0x86')]['getAttribute'](_0x239dd1);if(!_0x534c68[_0x463b('0x99')](_0x45aa1d)&&!_0x4e35f0[_0x463b('0x99')](_0x45aa1d)){if(_0x2d09c2[_0x463b('0x99')](_0x45aa1d))_0x19d09c++;else{if(_0x45aa1d!=_0x2ef33c[_0x19d09c]){const _0x3a91b0=_0x554c67[_0x463b('0xaf')](_0x45aa1d)||_0x554c67['get'](_0x2ef33c[_0x19d09c]);for(;_0x45aa1d!=_0x2ef33c[_0x19d09c];)_0x2d09c2[_0x463b('0x99')](_0x2ef33c[_0x19d09c])||(_0x4e35f0['set'](_0x2ef33c[_0x19d09c],_0x3a91b0),_0x554c67[_0x463b('0x7a')](_0x2ef33c[_0x19d09c],_0x3a91b0)),_0x19d09c++;}_0x19d09c++;}}}}for(const _0x4d93f9 of _0x1a094f){const _0x30f4e8=_0x228fd8[_0x463b('0x3f')][_0x4d93f9];for(const _0x1681dd of _0x30f4e8){const _0x2586c2=this[_0x463b('0x3e')](_0x1681dd),_0x9981ea=_0x1681dd[_0x463b('0x86')][_0x463b('0xd')](_0x2586c2);if(_0x4e35f0[_0x463b('0x99')](_0x9981ea)){const _0x441961=_0x4e35f0[_0x463b('0xaf')](_0x9981ea);_0x2d09c2[_0x463b('0x99')](_0x9981ea)||_0x2d09c2[_0x463b('0x7a')](_0x9981ea,{..._0x441961}),_0x534c68[_0x463b('0x7a')](_0x9981ea,{..._0x441961});}}}for(const _0x42e447 of _0x2d09c2[_0x463b('0xc5')]())_0x42e447>=this[_0x463b('0xc4')]&&_0x2d09c2['delete'](_0x42e447);const _0x5ac94a=new Map();for(const _0x1f7469 of _0x1a094f){let _0x1c92a3=_0x228fd8[_0x463b('0x3f')][_0x1f7469];for(const _0x4d2b74 of _0x1c92a3)if(_0x4d2b74['item']['is'](_0x463b('0x7c'),_0x463b('0x103'))){const _0x3d9c08=this[_0x463b('0x3e')](_0x4d2b74),_0x126a10=_0x4d2b74[_0x463b('0x86')][_0x463b('0xd')](_0x3d9c08);if(_0x534c68['has'](_0x126a10)){const _0x5d7c15=_0x4d2b74[_0x463b('0x86')][_0x463b('0xfc')][_0x463b('0xfc')]['getAttribute'](_0x463b('0x9a')),_0x373b89=_0x5ac94a['get'](_0x5d7c15)||new Set();_0x373b89['add'](_0x534c68[_0x463b('0xaf')](_0x126a10)[_0x463b('0x4e')]),_0x5ac94a[_0x463b('0x7a')](_0x5d7c15,_0x373b89);}}_0x1c92a3=_0x228fd8['deletions'][_0x1f7469];for(const _0x5b21ca of _0x1c92a3)if(_0x5b21ca[_0x463b('0x86')]['is']('element','tableCell')){const _0x20b017=this[_0x463b('0x3e')](_0x5b21ca),_0x1c896d=_0x5b21ca[_0x463b('0x86')][_0x463b('0xd')](_0x20b017);if(_0x2d09c2[_0x463b('0x99')](_0x1c896d)){const _0x415d1d=_0x5b21ca[_0x463b('0x86')]['parent'][_0x463b('0xfc')][_0x463b('0xd')](_0x463b('0x9a')),_0x2aea0d=_0x5ac94a[_0x463b('0xaf')](_0x415d1d)||new Set();_0x2aea0d[_0x463b('0x2a')](_0x2d09c2[_0x463b('0xaf')](_0x1c896d)['userId']),_0x5ac94a[_0x463b('0x7a')](_0x415d1d,_0x2aea0d);}}for(const _0x32256f of _0x5ac94a[_0x463b('0xc5')]())(_0x534c68[_0x463b('0x99')](_0x32256f)||_0x2d09c2['has'](_0x32256f))&&_0x5ac94a[_0x463b('0x4d')](_0x32256f);}for(const _0x4a3c99 of _0x1a094f){const _0x522ca3=_0x228fd8[_0x463b('0x3f')][_0x4a3c99];let _0x2bcfd4=null,_0x4f7a62=null;for(const _0x274498 of _0x522ca3){const _0x4fc32a=this[_0x463b('0x3e')](_0x274498),_0x42de87=_0x274498[_0x463b('0x86')][_0x463b('0xd')](_0x4fc32a),_0x59fcb1=_0x5ac94a[_0x463b('0xaf')](_0x42de87);_0x59fcb1&&_0x463b('0x1d')==_0x274498['type']&&(_0x2bcfd4=Array[_0x463b('0xe1')](_0x59fcb1)[0x0],_0x4f7a62=_0x274498[_0x463b('0x86')][_0x463b('0xd')](_0x463b('0xea'))),_0x2bcfd4&&(_0x2d09c2[_0x463b('0x7a')](_0x42de87,{'userId':_0x2bcfd4}),_0x534c68[_0x463b('0x7a')](_0x42de87,{'userId':_0x2bcfd4})),_0x42de87==_0x4f7a62&&(_0x2bcfd4=null,_0x4f7a62=null);}}const _0x1813c2={},_0x2d3754=new Set();for(const _0x134add of _0x1a094f){const _0x27648a=_0x2a37e1[_0x463b('0x21')][_0x134add],_0x491961=_0x2a37e1[_0x463b('0x3f')][_0x134add];for(const {userId:_0x2aa3b6}of this['_touchedMarkers'][_0x463b('0x64')]())null!==_0x2aa3b6&&_0x2d3754[_0x463b('0x2a')](_0x2aa3b6);for(const {userId:_0x3fb96e}of this[_0x463b('0xe8')]['values']())null!==_0x3fb96e&&_0x2d3754[_0x463b('0x2a')](_0x3fb96e);this[_0x463b('0x54')](_0x491961,_0x228fd8[_0x463b('0x3f')][_0x134add],_0x534c68,_0x463b('0x8b'),_0x2d3754),this[_0x463b('0x54')](_0x27648a,_0x228fd8['deletions'][_0x134add],_0x2d09c2,_0x463b('0xba'),_0x2d3754),_0x1813c2[_0x134add]={'insertions':this[_0x463b('0x73')](_0x491961),'deletions':this[_0x463b('0x73')](_0x27648a),'attachChange':this['_touchedRoots'][_0x463b('0xaf')](_0x134add)||null,'attributesBefore':_0x375ea6(this[_0x463b('0x18')][_0x463b('0xaf')](_0x134add))||{},'attributesAfter':_0x375ea6(this[_0x463b('0xc7')][_0x463b('0xaf')](_0x134add))};}return{'diffData':_0x1813c2,'authorsIds':Array['from'](_0x2d3754)};}[_0x463b('0x24')](_0x5e8064){for(const [,_0xd3f10e]of _0x5e8064[_0x463b('0x92')]){const _0x567a03=_0xd3f10e[_0x463b('0x3c')][_0x463b('0xe')]()[_0x463b('0x47')](_0x3884b1=>_0x463b('0x103')==_0x3884b1[_0x463b('0x50')]);for(const _0x5bab9f of _0x567a03)0x1==_0x5bab9f['childCount']&&_0x5bab9f[_0x463b('0x76')](0x0)['is'](_0x463b('0x7c'),_0x463b('0x4'))&&_0x5bab9f[_0x463b('0x76')](0x0)[_0x463b('0x95')](_0x463b('0x6f'),!0x0);}}['_prepareViewToSave'](_0x4f92e6){this[_0x463b('0x24')](_0x4f92e6);const _0xdb2053=this[_0x463b('0xa0')]['data'][_0x463b('0x60')](_0x4f92e6,{}),_0x2d0657=Array[_0x463b('0xe1')](_0xdb2053['getChildren']())[_0x463b('0x104')](_0x2a4514=>this[_0x463b('0x5e')](_0x2a4514));return JSON[_0x463b('0xb8')](_0x2d0657);}['_getViewJson'](_0x3a6544){if(_0x3a6544['is'](_0x463b('0x53')))return _0x3a6544[_0x463b('0x14')];{const _0x57e14f=_0x3a6544;return{'type':Object[_0x463b('0xc5')](B)[_0x463b('0xc2')](_0x4e9ec2=>_0x3a6544 instanceof B[_0x4e9ec2]),'name':_0x57e14f[_0x463b('0x50')],'attributes':Array[_0x463b('0xe1')](_0x57e14f['getAttributes']()),'children':Array[_0x463b('0xe1')](_0x57e14f[_0x463b('0x49')]())[_0x463b('0x104')](_0x86438a=>this[_0x463b('0x5e')](_0x86438a))};}}[_0x463b('0x54')](_0x44fb6c,_0x46d518,_0x10c3a2,_0x48a33b,_0x319377){let _0x40e28f=null,_0x3fa102=null,_0xf79526=0x0;const _0x9cdf00=this['editor'][_0x463b('0x42')];for(let _0x56634b=0x0;_0x56634b<_0x46d518[_0x463b('0x33')];_0x56634b++){const _0x1e844b=this[_0x463b('0x3e')](_0x46d518[_0x56634b]),_0x4fc4f5=_0x46d518[_0x56634b][_0x463b('0x86')]['getAttribute'](_0x1e844b),_0x36bdc0=_0x10c3a2[_0x463b('0xaf')](_0x4fc4f5),_0x4c34ab=_0x56634b==_0x46d518[_0x463b('0x33')]-0x1;(!_0x40e28f&&_0x36bdc0&&(_0x40e28f=_0x36bdc0,_0x3fa102=_0x46d518[_0x56634b]),_0x40e28f&&(!_0x36bdc0||_0x36bdc0[_0x463b('0x4e')]!=_0x40e28f[_0x463b('0x4e')]))&&(_0x39a32f(_0x36bdc0,L(_0x3fa102,_0x44fb6c,_0x9cdf00),L(_0x46d518[_0x56634b],_0x44fb6c,_0x9cdf00)),_0x40e28f=_0x36bdc0||null,_0x3fa102=_0x36bdc0?_0x46d518[_0x56634b]:null),_0x40e28f&&_0x4c34ab&&_0x39a32f(_0x36bdc0,L(_0x3fa102,_0x44fb6c,_0x9cdf00),W(_0x46d518[_0x56634b],_0x44fb6c,_0x9cdf00));}function _0x39a32f(_0x1d0bc6,_0x42b9c3,_0x319714){const _0x505829=_0x40e28f['userId'],_0x4d933c=_0x463b('0x58')+_0x48a33b+':'+_0x505829+':'+_0xf79526++,_0x50c5a4=_0x9cdf00[_0x463b('0x35')](_0x42b9c3,_0x319714);_0x44fb6c[_0x463b('0x92')]['set'](_0x4d933c,_0x50c5a4),null!==_0x505829&&_0x319377[_0x463b('0x2a')](_0x505829);}}[_0x463b('0x3e')](_0x11400a){switch(_0x11400a[_0x463b('0x8e')]){case _0x463b('0x1d'):return _0x463b('0x9a');case'elementEnd':return _0x463b('0xea');default:return _0x463b('0xfb');}}[_0x463b('0x31')](_0x53a192,_0x5d1007){_0x53a192[_0x463b('0x75')]=null;for(const _0x18e578 in _0x53a192){const _0x3fbba7=_0x53a192[_0x18e578];if(_0x3fbba7 instanceof _0x2799b2){const _0x4dc97a=_0x5d1007[_0x463b('0xaf')](_0x3fbba7[_0x463b('0xd2')]['rootName']);_0x53a192[_0x18e578]=this['_fixPosition'](_0x3fbba7,_0x4dc97a);}if(_0x3fbba7 instanceof _0x51b5dc){const _0xa2b877=_0x5d1007[_0x463b('0xaf')](_0x3fbba7['root'][_0x463b('0x1f')]);_0x53a192[_0x18e578]=this[_0x463b('0x9c')](_0x3fbba7,_0xa2b877);}_0x463b('0xd2')===_0x18e578&&(_0x53a192[_0x463b('0xd2')]=_0x5d1007[_0x463b('0xaf')](_0x53a192[_0x463b('0xd2')]['rootName']));}}[_0x463b('0x9c')](_0x18ab20,_0x2ec2d8){return this['editor'][_0x463b('0x42')][_0x463b('0x35')](this[_0x463b('0x5a')](_0x18ab20[_0x463b('0x3c')],_0x2ec2d8),this[_0x463b('0x5a')](_0x18ab20[_0x463b('0xe2')],_0x2ec2d8));}[_0x463b('0x5a')](_0x98b520,_0x1494d3){return this[_0x463b('0xa0')][_0x463b('0x42')][_0x463b('0xc0')](_0x1494d3,_0x98b520[_0x463b('0x88')],_0x98b520['stickiness']);}[_0x463b('0xe7')](_0x12420a){const _0x4030db=this[_0x463b('0xcf')]['get'](_0x12420a[_0x463b('0x1c')][_0x463b('0xd2')][_0x463b('0x1f')]),_0x5f548a=this[_0x463b('0x5a')](_0x12420a[_0x463b('0x1c')],_0x4030db),_0x3a22f3=null===_0x12420a[_0x463b('0x5b')]?null:_0x12420a[_0x463b('0x5b')]||this[_0x463b('0xa0')]['plugins'][_0x463b('0xaf')]('Users')['me']['id'],_0x3cf5f6=_0x5f548a[_0x463b('0xfc')],_0x584c1f=this['_revisionId'],_0x58cb24=[];for(const _0x5854d6 of _0x12420a[_0x463b('0x45')])if(_0x5854d6['is']('element'))_0x58cb24['push'](this[_0x463b('0xd0')](_0x5854d6));else for(let _0x4567b7=0x0;_0x4567b7<_0x5854d6['offsetSize'];_0x4567b7++)_0x58cb24['push'](new _0x332638(_0x463b('0x53'),{'vid':this[_0x463b('0x17')]++}));const _0x1ff1db=this[_0x463b('0x17')];for(let _0x58070e=_0x584c1f;_0x58070e<_0x1ff1db;_0x58070e++)this['_touched'][_0x463b('0x7a')](_0x58070e,{'userId':_0x3a22f3});_0x3cf5f6['_insertChild'](_0x5f548a[_0x463b('0x52')],_0x58cb24);}[_0x463b('0x77')](_0x14f5c2){(_0x14f5c2=this[_0x463b('0x69')](_0x14f5c2,this[_0x463b('0xcf')]))['_execute']();const _0x174383=null===_0x14f5c2[_0x463b('0x5b')]?null:_0x14f5c2['_authorId']||this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x6c'))['me']['id'],_0x190c9d=_0x14f5c2[_0x463b('0x78')](),_0x192a7a=_0x190c9d[_0x463b('0xfc')],_0x3ebb0e=_0x190c9d['offset'];!function _0x327d13(_0x1c2c84,_0x5d9614,_0x53cdc6,_0x361e39){for(let _0x3d3564=_0x53cdc6;_0x3d3564<_0x361e39;_0x3d3564++){const _0x1ef1dd=_0x5d9614[_0x463b('0x76')](_0x3d3564);_0x1ef1dd['is']('element',_0x463b('0x53'))?_0x1c2c84[_0x463b('0x7a')](_0x1ef1dd['getAttribute']('vid'),{'userId':_0x174383}):(_0x1c2c84[_0x463b('0x7a')](_0x1ef1dd[_0x463b('0xd')](_0x463b('0x9a')),{'userId':_0x174383}),_0x327d13(_0x1c2c84,_0x1ef1dd,0x0,_0x1ef1dd[_0x463b('0xf1')]),_0x1c2c84[_0x463b('0x7a')](_0x1ef1dd[_0x463b('0xd')](_0x463b('0xea')),{'userId':_0x174383}));}}(this[_0x463b('0xb2')],_0x192a7a,_0x3ebb0e,_0x3ebb0e+_0x14f5c2[_0x463b('0xb1')]);}['_handleMergeOperation'](_0x114505){const _0xf84be2=null===(_0x114505=this[_0x463b('0x69')](_0x114505,this[_0x463b('0xcf')]))[_0x463b('0x5b')]?null:_0x114505[_0x463b('0x5b')]||this[_0x463b('0xa0')][_0x463b('0xa5')]['get'](_0x463b('0x6c'))['me']['id'],_0x261d63=_0x114505[_0x463b('0x2f')][_0x463b('0xfc')],_0x5b20a4=_0x114505[_0x463b('0xae')][_0x463b('0xfc')],_0x34a54c=_0x261d63[_0x463b('0xd')](_0x463b('0xea')),_0x174dc2=_0x5b20a4['getAttribute'](_0x463b('0x9a'));_0x261d63['_setAttribute'](_0x463b('0xea'),_0x5b20a4[_0x463b('0xd')]('vid_end')),_0x5b20a4[_0x463b('0x95')](_0x463b('0xea'),_0x34a54c),this[_0x463b('0xb2')]['set'](_0x174dc2,{'userId':_0xf84be2}),this[_0x463b('0xb2')][_0x463b('0x7a')](_0x34a54c,{'userId':_0xf84be2}),_0x114505['_execute']();}[_0x463b('0xb7')](_0x3c6663){const _0x2a9389=null===(_0x3c6663=this[_0x463b('0x69')](_0x3c6663,this[_0x463b('0xcf')]))['_authorId']?null:_0x3c6663[_0x463b('0x5b')]||this[_0x463b('0xa0')][_0x463b('0xa5')]['get']('Users')['me']['id'],_0x1b6a0c=_0x3c6663[_0x463b('0x40')],_0x5d52ee=_0x3c6663[_0x463b('0x90')][_0x463b('0xfc')];_0x3c6663[_0x463b('0x62')]();const _0x3551d2=_0x5d52ee[_0x463b('0xd')]('vid_end'),_0x579d33=_0x3c6663[_0x463b('0x37')]['nodeAfter'];if(_0x1b6a0c){const _0x34fd22=_0x579d33[_0x463b('0xd')](_0x463b('0xea')),_0x37c441=_0x5d52ee[_0x463b('0xd')](_0x463b('0xea'));_0x5d52ee['_setAttribute'](_0x463b('0xea'),_0x34fd22),_0x579d33['_setAttribute'](_0x463b('0xea'),_0x37c441),this[_0x463b('0xb2')][_0x463b('0x7a')](_0x5d52ee[_0x463b('0xd')]('vid_end'),{'userId':_0x2a9389}),this['_touched'][_0x463b('0x7a')](_0x579d33[_0x463b('0xd')](_0x463b('0x9a')),{'userId':_0x2a9389});}else{const _0x5b7a0f=this[_0x463b('0x17')]++,_0x550e42=this[_0x463b('0x17')]++;_0x5d52ee[_0x463b('0x95')]('vid_end',_0x5b7a0f),_0x579d33[_0x463b('0x95')](_0x463b('0x9a'),_0x550e42),_0x579d33['_setAttribute'](_0x463b('0xea'),_0x3551d2),this[_0x463b('0xb2')][_0x463b('0x7a')](_0x5b7a0f,{'userId':_0x2a9389}),this['_touched'][_0x463b('0x7a')](_0x550e42,{'userId':_0x2a9389});}}['_handleMarkerOperation'](_0x428b05){if(!_0x428b05[_0x463b('0xfd')])return;const _0x5bb28f=(_0x428b05=this[_0x463b('0x69')](_0x428b05,this[_0x463b('0x8d')]))[_0x463b('0x25')]?_0x428b05['oldRange'][_0x463b('0xd2')]:null,_0x542460=_0x428b05['newRange']?_0x428b05['newRange']['root']:null;_0x5bb28f&&this['_markers']['delete'](_0x428b05[_0x463b('0x50')]),_0x542460&&this['_markers'][_0x463b('0x7a')](_0x428b05[_0x463b('0x50')],_0x428b05[_0x463b('0x7d')][_0x463b('0x7')]());const _0x1c19e1=null===_0x428b05[_0x463b('0x5b')]?null:_0x428b05[_0x463b('0x5b')]||this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x6c'))['me']['id'],_0xc6ad0f=_0x428b05['name'];if(!this[_0x463b('0xaa')][_0x463b('0x99')](_0xc6ad0f))return void this['_touchedMarkers'][_0x463b('0x7a')](_0xc6ad0f,{'range':_0x428b05[_0x463b('0x25')],'userId':_0x1c19e1});const _0x3b2787=this[_0x463b('0xaa')][_0x463b('0xaf')](_0xc6ad0f),_0x25ed97=_0x3b2787[_0x463b('0x101')],_0x475848=_0x428b05[_0x463b('0x7d')];null==_0x25ed97&&null==_0x475848||_0x25ed97&&_0x475848&&_0x25ed97[_0x463b('0xb6')](_0x475848)?this[_0x463b('0xaa')]['delete'](_0x428b05['name']):_0x3b2787[_0x463b('0x4e')]=_0x1c19e1;}['_handleRootOperation'](_0x1a79e3,_0x164dfd){this[_0x463b('0x8d')][_0x463b('0x99')](_0x1a79e3[_0x463b('0x1f')])?this[_0x463b('0x8d')]['get'](_0x1a79e3['rootName'])['_isAttached']=_0x1a79e3[_0x463b('0xf')]:(this[_0x463b('0x8d')][_0x463b('0x7a')](_0x1a79e3['rootName'],G(_0x1a79e3[_0x463b('0x1f')],!0x0)),this[_0x463b('0xc7')]['set'](_0x1a79e3[_0x463b('0x1f')],{}),_0x164dfd&&this[_0x463b('0xcf')][_0x463b('0x7a')](_0x1a79e3['rootName'],G(_0x1a79e3['rootName'],!0x0)));const _0x1cefc2=null===_0x1a79e3[_0x463b('0x5b')]?null:_0x1a79e3[_0x463b('0x5b')]||this[_0x463b('0xa0')][_0x463b('0xa5')][_0x463b('0xaf')](_0x463b('0x6c'))['me']['id'],_0x28a66e=this[_0x463b('0xe8')][_0x463b('0xaf')](_0x1a79e3[_0x463b('0x1f')]);_0x28a66e&&_0x28a66e[_0x463b('0x4e')]===_0x1cefc2?this[_0x463b('0xe8')][_0x463b('0x4d')](_0x1a79e3[_0x463b('0x1f')]):this[_0x463b('0xe8')][_0x463b('0x7a')](_0x1a79e3['rootName'],{'userId':_0x1cefc2,'isAttached':_0x1a79e3[_0x463b('0xf')]});}[_0x463b('0xec')](_0x10045f){const _0xf3b409=this[_0x463b('0xc7')]['get'](_0x10045f[_0x463b('0xd2')][_0x463b('0x1f')]);null===_0x10045f[_0x463b('0x39')]?delete _0xf3b409[_0x10045f[_0x463b('0xfa')]]:_0xf3b409[_0x10045f[_0x463b('0xfa')]]=_0x10045f[_0x463b('0x39')];}}function q(_0x17027e){const _0x383712=G(_0x17027e[_0x463b('0x1f')],_0x17027e[_0x463b('0x65')]());for(const _0x6e342c of _0x17027e[_0x463b('0x49')]()){const _0x12617a=_0x6e342c[_0x463b('0xf4')](!0x0);_0x383712[_0x463b('0x8c')](_0x12617a);}return _0x383712;}function G(_0x213713,_0x2e2eb3=!0x0){const _0x1bcc39=new _0x25a69a();return _0x1bcc39[_0x463b('0x1f')]=_0x213713,_0x1bcc39[_0x463b('0x81')]=_0x2e2eb3,_0x1bcc39[_0x463b('0x65')]=()=>_0x1bcc39[_0x463b('0x81')],_0x1bcc39;}function L(_0x36527a,_0x3dcf20,_0x293b03){const _0x5efe15=_0x463b('0x106')==_0x36527a[_0x463b('0x8e')]?_0x293b03[_0x463b('0x26')](_0x36527a[_0x463b('0x86')],_0x463b('0xe2')):_0x293b03[_0x463b('0xb5')](_0x36527a[_0x463b('0x86')]);return _0x293b03[_0x463b('0xc0')](_0x3dcf20,_0x5efe15[_0x463b('0x88')],_0x5efe15['stickiness']);}function W(_0x9c5065,_0x53dd98,_0x47408d){const _0x1d50e9=_0x463b('0x1d')==_0x9c5065[_0x463b('0x8e')]?_0x47408d[_0x463b('0x26')](_0x9c5065[_0x463b('0x86')],0x0):_0x47408d['createPositionAfter'](_0x9c5065[_0x463b('0x86')]);return _0x47408d[_0x463b('0xc0')](_0x53dd98,_0x1d50e9[_0x463b('0x88')],_0x1d50e9[_0x463b('0xac')]);}
23
+ const _0x2f25=['config','_processRootBeforeSave','model','nodeAfter','_generateTape','_touchedRoots','deletion','ready','for','elementEnd','length','_setAttribute','path','_getPreviousFrom','document','_authorId','isEqual','$text','baseVersion','addRootAttribute','_baseRootsAttributes','getMovedRangeStart','define','getRange','_update','previousPosition','version','get','requires','newValue','name','upcast','vid','getChildren','shift','insertions','pluginName','stringify','marker','from','_removeRevisionMarkers','delete','_markers','howMany','update','_handleRootAttributeOperation','_pendingAction','root','newRange','_handleOperation','parent','getCurrentRevisionId','_setConversion','trim','PENDING_ACTION_REVISION_HISTORY','has','NEGATIVE_INFINITY','finally','RealTimeCollaborationClient','getNodeByPath','getRevisionDocumentData','_findInsertionIndex','_operations','_handleMergeOperation','dataToMarker','getAttribute','history','setRevisionData','getRevision','getAncestors','updateRevisions','move','_baseIdsRoots','remove','addRoot','position','userId','_insertChild','loadState','editing','_startingRevisionId','revisionHistory.resumeUnsavedRevision','offset','adapter','attributesBefore','_bufferedUpdates','_getFromVersion','_savedMetaData','_getState','find','init','parse','editor','_execute','add','_source','toData','saveRevision','key','_lastTo','createRangeIn','tableCell','_transformMarkers','_handleRootOperation','_fixRange','affectsData','some','getData','RevisionTracker','_cloneOperation','filter','conversion','nodes','_isPendingUpdate','_makeModelFromViewString','isAttached','_startingVersion','clone','_loadState','plugins','createdAt','PendingActions','_getBaseVids','_diffRootsAttributes','_baseRoots','split','_createInitialRevision','elementStart','source','addRevisionData','_continueCurrentRevision','data-revision-','createRange','getLatestVersion','attachChange','slice','_createCurrentRevision','getUser','_handleSplitOperation','attributes','createRevision','deletions','revision-end','vid_start','_initialRevisionId','size','isEnabled','keepParagraph','$graveyard','fromVersion','clear','element','range','_revisionId','_saveMetaData','_clone','keys','view','toVersion','bind','_calculateMetaData','creator','set','startsWith','isReady','_loadedStateData','vid_end','then','merge','_makeRevision','processor','buildRevisionData','rootName','getAttributes','getRoot','max','_applyOperations','addRevision','resolve','createPositionFromPath','collaboration.channelId','initial','_loadRevisionData','_reset','RevisionsRepository','_isAttached','toView','rootsAttributes','_idsRoots','type','attributesAfter','end','childCount','roots','sendBufferedUpdates','hasContent','marked','removeRootAttribute','setSource','isAdd','string','children','Users','stickiness','fromEntries','push','graveyardPosition','documentFragment','_markChanges','markers','paragraph','_handleInsertOperation','_handleMoveOperation','getOperations','_bufferUpdate','createPositionAt','diffData','createPositionBefore','_touchedMarkers','_getVidAttributeName','revision:','_touched','item','start','reverse','data','_fixOperation','_appendChild','_makeIdsRoot','creatorId','_copyMarkers','authors','_removePendingAction','_prepareViewToSave','currentRevision','text','getWalker','includes','oldRange','_fixPosition','useFillerType','_lastFrom','createPositionAfter','insert','repository','offsetSize','initialData','_diffRoots','detachRoot','map','values','_revisionDataBuilder','_removeMetaData','dataDowncast','getChild','reInit','sourcePosition','authorsIds','getTransformedByOperation','_getViewJson'];(function(_0x29dd1e,_0x2f25f0){const _0x42335=function(_0x53cf2b){while(--_0x53cf2b){_0x29dd1e['push'](_0x29dd1e['shift']());}};_0x42335(++_0x2f25f0);}(_0x2f25,0x114));const _0x4233=function(_0x29dd1e,_0x2f25f0){_0x29dd1e=_0x29dd1e-0x0;let _0x42335=_0x2f25[_0x29dd1e];return _0x42335;};import{Users as _0x110352}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x5beb56,PendingActions as _0x16fed9}from'ckeditor5/src/core.js';import{logWarning as _0x140905,uid as _0x1a562c}from'ckeditor5/src/utils.js';import{Position as _0x15b85a,Range as _0x346d9c,Element as _0x803ef4,DocumentFragment as _0x52d8b,ViewText as _0x5354fa,ViewElement as _0x46b10d,ViewContainerElement as _0x58f8c8,ViewAttributeElement as _0x55dd97,ViewEmptyElement as _0x24e1d1,ViewRawElement as _0x210509,ViewUIElement as _0x3bd765,ViewDocumentFragment as _0x660609}from'ckeditor5/src/engine.js';import _0x4fa119 from'./revisionsrepository.js';import{getTranslation as _0x53f580}from'./utils/common-translations.js';import{cloneDeep as _0x2df165,isEqual as _0x34d25e}from'lodash-es';const B={'c':_0x58f8c8,'a':_0x55dd97,'e':_0x24e1d1,'r':_0x210509,'u':_0x3bd765};export default class l extends _0x5beb56{static get[_0x4233('0x14')](){return _0x4233('0x5c');}static get[_0x4233('0xc')](){return[_0x110352,_0x4fa119,_0x16fed9];}constructor(_0x2f7346){super(_0x2f7346),this[_0x4233('0x43')]=null,this[_0x4233('0xda')]=null,this[_0x4233('0xeb')]=new H(this['editor']),this[_0x4233('0x80')]=this[_0x4233('0x4c')][_0x4233('0xf4')][_0x4233('0xb')](_0x4233('0xa4'))||_0x4233('0xa5'),this['_bufferedUpdates']=new Map(),this[_0x4233('0x95')]=null;const _0x1233c8=_0x1a562c();this[_0x4233('0x4f')]={'history':this[_0x4233('0x4c')][_0x4233('0xf6')]['document']['history'],'getLatestVersion':()=>Promise[_0x4233('0xa2')](this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0x102')]['version']),'getCurrentRevisionId':()=>_0x1233c8},this[_0x4233('0x92')](_0x4233('0x94'),!0x1),this[_0x4233('0x92')](_0x4233('0x82'),!0x0),this[_0x4233('0x92')](_0x4233('0x61'),!0x1),this['editor'][_0x4233('0xf4')][_0x4233('0x6')](_0x4233('0x41'),!0x0),this[_0x4233('0x4c')]['conversion'][_0x4233('0xfc')](_0x4233('0xf'))[_0x4233('0x30')]({'view':'revision'});}[_0x4233('0x4a')](){this[_0x4233('0xe4')]=this['editor']['plugins']['get'](_0x4233('0xa8')),this['_setConversion'](),this[_0x4233('0x4c')]['data']['on'](_0x4233('0xfb'),()=>{const _0x2dfed0=this['repository'][_0x4233('0x34')](0x0),_0x6516e2=_0x2dfed0&&null===_0x2dfed0['creator']?_0x2dfed0:null;if(this[_0x4233('0x72')]=!!_0x6516e2&&this[_0x4233('0x4c')][_0x4233('0xf4')]['get'](_0x4233('0x41')),this['editor'][_0x4233('0x67')]['has'](_0x4233('0x2a'))){const _0x58a61d=this[_0x4233('0x4f')][_0x4233('0x23')](),_0x4cbe41=this['repository'][_0x4233('0x34')](_0x58a61d);if(_0x4cbe41)this[_0x4233('0x64')]=_0x4cbe41[_0x4233('0x85')],this['_continueCurrentRevision']=!0x1;else{const _0x3ecf61=this[_0x4233('0x4f')]['history'][_0x4233('0x2e')][_0x4233('0x49')](_0x541817=>!_0x541817['_isInit']),_0x296d9e=_0x3ecf61?_0x3ecf61[_0x4233('0x2')]:this['_source']['history'][_0x4233('0xa')];_0x2dfed0?(_0x2dfed0['toVersion']<_0x296d9e&&_0x2dfed0[_0x4233('0x8')]({'toVersion':_0x296d9e}),this[_0x4233('0x72')]?(this[_0x4233('0x4f')][_0x4233('0x23')]=()=>_0x6516e2['id'],this[_0x4233('0x64')]=_0x6516e2[_0x4233('0x85')]):(this[_0x4233('0x64')]=_0x2dfed0[_0x4233('0x8e')],this[_0x4233('0x72')]=!0x1)):(this[_0x4233('0x64')]=_0x296d9e,this[_0x4233('0x72')]=!0x1);}}else _0x6516e2&&(this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0x102')]['history'][_0x4233('0xa')]=Math[_0x4233('0x9f')](_0x6516e2[_0x4233('0x8e')],this['editor'][_0x4233('0xf6')][_0x4233('0x102')]['history']['version']),_0x6516e2[_0x4233('0x85')]===_0x6516e2[_0x4233('0x8e')]?(0x0!==_0x6516e2['fromVersion']&&(this[_0x4233('0x4f')]['getCurrentRevisionId']=()=>_0x6516e2['id']),this['_continueCurrentRevision']=!0x1):this[_0x4233('0x72')]&&(this[_0x4233('0x4f')][_0x4233('0x23')]=()=>_0x6516e2['id'],this['_startingVersion']=_0x6516e2[_0x4233('0x85')])),this[_0x4233('0x72')]||(this[_0x4233('0x64')]=this['editor'][_0x4233('0xf6')][_0x4233('0x102')][_0x4233('0xa')]);this[_0x4233('0xeb')]['init'](this[_0x4233('0x4f')][_0x4233('0x32')]),this[_0x4233('0x6e')](this[_0x4233('0x64')]),this[_0x4233('0x78')](this[_0x4233('0x64')]),this[_0x4233('0x43')]&&this[_0x4233('0xb2')]();}),this[_0x4233('0x8f')](_0x4233('0x94'))['to'](this,_0x4233('0x61'),_0x58c204=>!_0x58c204);}async['afterInit'](){if(this[_0x4233('0xe4')]['length']>0x0){const _0x410fe9=this[_0x4233('0xe4')][_0x4233('0x34')](0x0),_0x1f4d5a=await this['getRevisionDocumentData'](_0x410fe9),_0x4fdcb4=await this['getRevisionRootsAttributes'](_0x410fe9);this['_replaceEditorDataWithRevisionData'](_0x1f4d5a,_0x4fdcb4);}}[_0x4233('0xb6')](_0x5bb4b7){this['_source']=_0x5bb4b7;}async[_0x4233('0x1c')](){const _0x10812c=await this[_0x4233('0x4f')][_0x4233('0x75')]();if(_0x10812c>this[_0x4233('0xda')]['toVersion']){await this['_loadState']();const _0x513613=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x10812c});_0x513613[_0x4233('0xd7')]=_0x513613[_0x4233('0xf1')][_0x4233('0xe9')](_0x3a1b0f=>this[_0x4233('0x4c')]['plugins']['get'](_0x4233('0xba'))[_0x4233('0x79')](_0x3a1b0f)),this[_0x4233('0xda')][_0x4233('0x8')](_0x513613);}}async[_0x4233('0x66')](){this[_0x4233('0x72')]&&!this[_0x4233('0x95')]&&(await this[_0x4233('0xa6')](this[_0x4233('0xda')]),this[_0x4233('0xeb')]['loadState'](this[_0x4233('0xda')]),this['_loadedStateData']={'fromVersion':this['currentRevision'][_0x4233('0x85')],'authors':this[_0x4233('0xda')][_0x4233('0xd7')][_0x4233('0x77')]()});}async[_0x4233('0x51')](_0x8b5d70={},_0x4f2f91=null){const _0x1206ed=[];await this[_0x4233('0x66')](),this[_0x4233('0x72')]=!0x1,_0x4f2f91>this['currentRevision'][_0x4233('0x8e')]&&(_0x4f2f91=null),null===_0x4f2f91&&(_0x4f2f91=await this[_0x4233('0x4f')][_0x4233('0x75')]());const _0x13a465=this[_0x4233('0x46')](_0x4f2f91),_0x2b7e02=this[_0x4233('0x9b')]({'from':_0x13a465,'to':_0x4f2f91});if(this['currentRevision'][_0x4233('0x8e')]<_0x4f2f91){const _0x4f42ee=this[_0x4233('0x9b')]({'revision':this[_0x4233('0xda')],'from':_0x4f2f91,'to':_0x4f2f91});_0x4f42ee[_0x4233('0xd7')]=[],_0x4f42ee[_0x4233('0xf1')]=[],_0x4f42ee['id']=this['currentRevision']['id'],this[_0x4233('0xda')]['_update'](_0x4f42ee,!0x0),delete _0x4f42ee[_0x4233('0xd7')],_0x1206ed['push'](_0x4f42ee);}_0x8b5d70[_0x4233('0xd5')]=this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x8b5d70[_0x4233('0xe')]=_0x8b5d70[_0x4233('0xe')]||null,_0x8b5d70['id']=_0x8b5d70['id']||_0x1a562c(),_0x8b5d70={..._0x8b5d70,..._0x2b7e02};const _0x5ad87a=this[_0x4233('0x71')](_0x8b5d70);_0x1206ed[_0x4233('0xbd')](_0x8b5d70);const _0x3f7ae9=this['repository']['getIndex'](_0x5ad87a);if(0x0!==_0x3f7ae9){const _0x328f02=this[_0x4233('0xe4')][_0x4233('0x34')](_0x3f7ae9-0x1);if(_0x328f02[_0x4233('0x85')]!==_0x4f2f91){const _0x4f8efb=this[_0x4233('0xeb')][_0x4233('0x5b')](_0x4f2f91,_0x328f02[_0x4233('0x8e')]),_0x707798={'id':_0x328f02['id'],'diffData':_0x4f8efb[_0x4233('0xc8')],'authorsIds':_0x4f8efb[_0x4233('0xf1')],'authors':_0x4f8efb[_0x4233('0xf1')][_0x4233('0xe9')](_0x4e84d9=>this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))[_0x4233('0x79')](_0x4e84d9)),'fromVersion':_0x4f2f91};_0x328f02===this[_0x4233('0xda')]&&(_0x707798[_0x4233('0x68')]=new Date(_0x8b5d70[_0x4233('0x68')]['getTime']()+0xa)),_0x328f02[_0x4233('0x8')](_0x707798,!0x0),delete _0x707798[_0x4233('0xd7')],_0x1206ed['push'](_0x707798);}}if(this[_0x4233('0x43')]){for(const _0x178c96 of _0x1206ed)this[_0x4233('0xc6')](_0x178c96['id'],_0x178c96,!0x0);this[_0x4233('0xb2')]();}return _0x5ad87a;}[_0x4233('0x71')](_0x206101){const _0x572ad1=this[_0x4233('0xe4')][_0x4233('0x7c')](_0x206101);return this[_0x4233('0x43')]&&_0x572ad1['on']('_update',(_0x52d8cd,_0x350d63,_0x1f29e6)=>{_0x1f29e6||(this['_bufferUpdate'](_0x350d63['id'],_0x350d63,!0x0),this[_0x4233('0xb2')]());}),this[_0x4233('0xe4')][_0x4233('0xa1')](_0x572ad1,this[_0x4233('0x2d')](_0x572ad1)),_0x572ad1;}async[_0x4233('0x2c')](_0x251368){await this[_0x4233('0xa6')](_0x251368);const _0x1c4915={};for(const _0x32597f in _0x251368['diffData']){if(_0x251368[_0x4233('0xc8')][_0x32597f][_0x4233('0x76')]&&!_0x251368[_0x4233('0xc8')][_0x32597f][_0x4233('0x76')]['isAttached'])continue;const _0x781875=this['_removeRevisionMarkers'](JSON['parse'](_0x251368[_0x4233('0xc8')][_0x32597f][_0x4233('0x13')])),_0x3d626c=this[_0x4233('0x4c')][_0x4233('0x3f')][_0x4233('0x8d')][_0x4233('0x102')],_0x37704b=new _0x660609(_0x3d626c,_0x781875['map'](_0xd9e0fb=>J(_0xd9e0fb,this[_0x4233('0x4c')])));this[_0x4233('0x4c')][_0x4233('0xd1')][_0x4233('0x9a')][_0x4233('0xe0')](_0x4233('0xb4')),_0x1c4915[_0x32597f]=this[_0x4233('0x4c')][_0x4233('0xd1')][_0x4233('0x9a')][_0x4233('0x50')](_0x37704b),this[_0x4233('0x4c')]['data'][_0x4233('0x9a')][_0x4233('0xe0')]('default');}return _0x1c4915;}async['getRevisionRootsAttributes'](_0x354092){await this[_0x4233('0xa6')](_0x354092);const _0x135eb7={};for(const _0x20a037 in _0x354092['diffData'])_0x354092['diffData'][_0x20a037][_0x4233('0x76')]&&!_0x354092[_0x4233('0xc8')][_0x20a037][_0x4233('0x76')][_0x4233('0x63')]||(_0x135eb7[_0x20a037]=_0x354092[_0x4233('0xc8')][_0x20a037]['attributesAfter']||{});return _0x135eb7;}['sendBufferedUpdates'](){if(0x0===this[_0x4233('0x45')][_0x4233('0x81')])return;if(this[_0x4233('0x61')])return;let _0x13635e=Array['from'](this['_bufferedUpdates'][_0x4233('0xea')]());this[_0x4233('0x45')][_0x4233('0x86')]();for(let _0x3b03e6=0x0;_0x3b03e6<_0x13635e[_0x4233('0xfe')];_0x3b03e6++){const _0x3f175b=_0x13635e[_0x3b03e6];let _0x2eb205=!0x1;for(const _0x400f94 of Object[_0x4233('0x8c')](_0x3f175b))void 0x0===_0x3f175b[_0x400f94]?delete _0x3f175b[_0x400f94]:'id'!==_0x400f94&&(_0x2eb205=!0x0);_0x2eb205||(_0x13635e[_0x3b03e6]=null);}if(_0x13635e=_0x13635e['filter'](_0x3f8a56=>null!==_0x3f8a56),!_0x13635e[_0x4233('0xfe')])return;for(let _0x3af09e=0x0;_0x3af09e<_0x13635e[_0x4233('0xfe')];_0x3af09e++){const _0xd5462a=_0x13635e[_0x3af09e];void 0x0!==_0xd5462a['fromVersion']&&void 0x0===_0xd5462a['toVersion']&&(_0xd5462a[_0x4233('0x8e')]=this[_0x4233('0xe4')][_0x4233('0x34')](_0xd5462a['id'])['toVersion']),void 0x0!==_0xd5462a[_0x4233('0x8e')]&&void 0x0===_0xd5462a[_0x4233('0x85')]&&(_0xd5462a[_0x4233('0x85')]=this[_0x4233('0xe4')]['getRevision'](_0xd5462a['id'])[_0x4233('0x85')]);}const _0xa76e87=this[_0x4233('0x4c')][_0x4233('0xf4')][_0x4233('0xb')](_0x4233('0xa4'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0x4233('0x43')][_0x4233('0x36')](_0x13635e,_0xa76e87)[_0x4233('0x29')](()=>{this[_0x4233('0x61')]=!0x1;})[_0x4233('0x97')](_0x5d895a=>{if(_0x5d895a)for(const _0x2335ae of _0x5d895a)this[_0x4233('0x33')]({'id':_0x2335ae['id'],'createdAt':_0x2335ae['createdAt']});this[_0x4233('0xd8')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x59125d,_0x4ad76a){let _0x38bd04=this[_0x4233('0x4c')]['config'][_0x4233('0xb')](_0x4233('0xe6')),_0x22126e=this['editor'][_0x4233('0xf4')][_0x4233('0xb')]('rootsAttributes');if(void 0x0===_0x38bd04){_0x38bd04={};for(const _0x66b4aa of this[_0x4233('0x4c')]['model']['document']['getRootNames']())_0x38bd04[_0x66b4aa]='';}if('string'==typeof _0x38bd04&&(_0x38bd04={'main':_0x38bd04}),void 0x0===_0x22126e){_0x22126e={};for(const _0x11f326 of this['editor']['model']['document']['getRootNames']())_0x22126e[_0x11f326]={};}let _0x3757eb=!0x1;const _0x5e5ac4=Object[_0x4233('0x8c')](_0x38bd04),_0xac8927=Object['keys'](_0x59125d);for(const _0x239f66 of _0x5e5ac4){if(_0x38bd04[_0x239f66]!==_0x59125d[_0x239f66]&&''!==_0x38bd04[_0x239f66][_0x4233('0x25')]()){_0x3757eb=!0x0;break;}if(!_0x34d25e(_0x22126e[_0x239f66],_0x4ad76a[_0x239f66])&&Object['keys'](_0x22126e[_0x239f66])[_0x4233('0xfe')]>0x0){_0x3757eb=!0x0;break;}}_0x3757eb||(_0x3757eb=_0xac8927[_0x4233('0x5a')](_0x29ce09=>!this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0x102')][_0x4233('0x9e')](_0x29ce09))),_0x3757eb&&_0x140905('editor-initial-data-replaced-with-revision-data',{'editorData':_0x38bd04,'editorRootsAttributes':_0x22126e,'revisionData':_0x59125d,'revisionRootsAttributes':_0x4ad76a}),this['editor'][_0x4233('0xf4')][_0x4233('0x92')](_0x4233('0xe6'),_0x59125d),this[_0x4233('0x4c')][_0x4233('0xf4')][_0x4233('0x92')](_0x4233('0xab'),_0x4ad76a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5f1a99=this[_0x4233('0x4c')]['plugins'][_0x4233('0xb')](_0x4233('0x69'));this[_0x4233('0x1e')]=_0x5f1a99['add'](_0x53f580(this[_0x4233('0x4c')]['locale'],_0x4233('0x26')));}}['_removePendingAction'](){this[_0x4233('0x1e')]&&(this[_0x4233('0x4c')]['plugins'][_0x4233('0xb')](_0x4233('0x69'))['remove'](this[_0x4233('0x1e')]),this['_pendingAction']=null);}[_0x4233('0x2d')](_0x19756c){const _0x30a7f4=this[_0x4233('0xe4')]['getRevisions']();_0x30a7f4[_0x4233('0xd0')]();let _0x29f932=0x0;for(;_0x29f932<_0x30a7f4['length'];){const _0x33f640=_0x30a7f4[_0x29f932];if(_0x33f640===this[_0x4233('0xda')]){_0x29f932++;continue;}if(_0x33f640['id']===this[_0x4233('0x80')])break;const _0xc8a6b7=_0x19756c[_0x4233('0x8e')]-_0x33f640[_0x4233('0x8e')]||_0x19756c[_0x4233('0x85')]-_0x33f640[_0x4233('0x85')];if(_0xc8a6b7>0x0)break;if(_0xc8a6b7<0x0)_0x29f932++;else{if(!_0x19756c['creator']&&_0x33f640[_0x4233('0x91')])break;if(_0x33f640[_0x4233('0x91')]||!_0x19756c[_0x4233('0x91')]){if(_0x19756c[_0x4233('0x68')]>_0x33f640[_0x4233('0x68')])break;_0x29f932++;}else _0x29f932++;}}return _0x29f932;}[_0x4233('0x33')](_0x20c6fb){const _0xf7e132=this[_0x4233('0xe4')][_0x4233('0x34')](_0x20c6fb['id']);if(_0x20c6fb[_0x4233('0x68')]&&(_0x20c6fb['createdAt']=new Date(_0x20c6fb[_0x4233('0x68')])),_0x20c6fb['authorsIds']){const _0x4f3662=this[_0x4233('0x4c')][_0x4233('0x67')]['get']('Users');_0x20c6fb[_0x4233('0xd7')]=_0x20c6fb['authorsIds'][_0x4233('0xe9')](_0x2e6503=>_0x4f3662[_0x4233('0x79')](_0x2e6503));}_0xf7e132['_update'](_0x20c6fb,!0x0);}[_0x4233('0x9b')]({revision:_0x3da6c6=null,from:_0x4030a4=null,to:_0x398e96=null}){_0x4030a4=null!==_0x4030a4?_0x4030a4:_0x3da6c6[_0x4233('0x85')],_0x398e96=null!==_0x398e96?_0x398e96:_0x3da6c6['toVersion'];const _0x2a3bb6=this[_0x4233('0xeb')][_0x4233('0x5b')](_0x4030a4,_0x398e96),_0x1aaa36={'diffData':_0x2a3bb6['diffData'],'authorsIds':_0x2a3bb6['authorsIds'],'fromVersion':_0x4030a4,'toVersion':_0x398e96};if(!_0x3da6c6||_0x398e96!==_0x3da6c6[_0x4233('0x8e')]){const _0x34ade6=_0x398e96-0x1,_0x4a919d=this[_0x4233('0x4f')][_0x4233('0x32')]['getOperation'](_0x34ade6);_0x1aaa36[_0x4233('0x68')]=_0x4a919d&&_0x4a919d[_0x4233('0x68')]||new Date();}if(this[_0x4233('0x95')]&&_0x4030a4===this[_0x4233('0x95')][_0x4233('0x85')])for(const _0x3e6952 of this['_loadedStateData'][_0x4233('0xd7')])_0x1aaa36[_0x4233('0xf1')][_0x4233('0xdd')](_0x3e6952['id'])||_0x1aaa36[_0x4233('0xf1')][_0x4233('0xbd')](_0x3e6952['id']);return _0x1aaa36;}['_loadRevisionData'](_0x5dfa0b){if(!_0x5dfa0b||_0x5dfa0b[_0x4233('0xc8')])return Promise[_0x4233('0xa2')]();{const _0x3cbfe6=this[_0x4233('0x4c')][_0x4233('0xf4')][_0x4233('0xb')](_0x4233('0xa4'));return this[_0x4233('0x43')][_0x4233('0x34')]({'channelId':_0x3cbfe6,'revisionId':_0x5dfa0b['id']})[_0x4233('0x97')](_0x61827a=>{_0x5dfa0b[_0x4233('0xc8')]=_0x61827a[_0x4233('0xc8')];});}}[_0x4233('0xc6')](_0x4cc20a,_0x425e23,_0x3b394b){if(this['_bufferedUpdates'][_0x4233('0x27')](_0x4cc20a)){const _0xaf3083=this[_0x4233('0x45')][_0x4233('0xb')](_0x4cc20a);_0x425e23=_0x3b394b?{..._0xaf3083,..._0x425e23}:{..._0x425e23,..._0xaf3083};}this[_0x4233('0x45')][_0x4233('0x92')](_0x4cc20a,_0x425e23);}[_0x4233('0x46')](_0x3d35b2){const _0x5060c5=this['repository']['getRevisions']();_0x5060c5[_0x4233('0xd0')](),_0x5060c5[_0x4233('0x12')]();const _0x376198=_0x5060c5[_0x4233('0x49')](_0x4ad43a=>_0x4ad43a[_0x4233('0x8e')]<=_0x3d35b2)[_0x4233('0x8e')];return _0x376198<this[_0x4233('0x64')]?this['_startingVersion']:_0x376198;}[_0x4233('0x6e')](_0x314260){const _0x41d999=this[_0x4233('0xe4')]['getRevision'](this[_0x4233('0xe4')][_0x4233('0xfe')]-0x1);if(_0x41d999)this[_0x4233('0x80')]=_0x41d999['id'];else{const _0x1bff41=!this['editor']['model'][_0x4233('0x102')][_0x4233('0xb1')][_0x4233('0x49')](_0x1eaec8=>this[_0x4233('0x4c')]['model'][_0x4233('0xb3')](_0x1eaec8)),_0x2720c2=this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')]('Users')['me']['id'],_0x4f58b7=_0x53f580(this[_0x4233('0x4c')]['locale'],_0x1bff41?'Empty\x20document':'Initial\x20revision');this[_0x4233('0x99')]({'from':_0x314260,'to':_0x314260,'id':this[_0x4233('0x80')],'name':_0x4f58b7,'creatorId':_0x2720c2});}}[_0x4233('0x78')](_0x786795){const _0x3f0fdb=this[_0x4233('0x4f')][_0x4233('0x23')]();this['currentRevision']=this[_0x4233('0xe4')][_0x4233('0x34')](_0x3f0fdb),this[_0x4233('0xda')]||(this['currentRevision']=this[_0x4233('0x99')]({'from':_0x786795,'to':_0x786795,'id':_0x3f0fdb,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4d2a1e,from:_0x5092c3,to:_0x2decb8,creatorId:_0x335206,id:_0x395903}){const _0x81f1d6=this[_0x4233('0x9b')]({'from':_0x5092c3,'to':_0x2decb8});_0x81f1d6[_0x4233('0xe')]=_0x4d2a1e,_0x81f1d6['creatorId']=_0x335206,_0x81f1d6['id']=_0x395903;const _0x113467=this['addRevisionData'](_0x81f1d6);return this['adapter']&&this[_0x4233('0xc6')](_0x81f1d6['id'],_0x81f1d6,!0x0),_0x113467;}[_0x4233('0x24')](){this[_0x4233('0x4c')][_0x4233('0x5f')][_0x4233('0xfc')](_0x4233('0xed'))['markerToData']({'model':'revision'});}[_0x4233('0x18')](_0x1e7e49){return(_0x1e7e49=_0x1e7e49[_0x4233('0x5e')](_0x5cd100=>!_0x5cd100[_0x4233('0xe')]||'revision-start'!==_0x5cd100['name']&&_0x4233('0x7e')!==_0x5cd100[_0x4233('0xe')]))['forEach'](_0x2c8c60=>{_0x4233('0xb8')!=typeof _0x2c8c60&&(_0x2c8c60[_0x4233('0xb9')]=this[_0x4233('0x18')](_0x2c8c60[_0x4233('0xb9')]),_0x2c8c60[_0x4233('0x7b')]=_0x2c8c60[_0x4233('0x7b')][_0x4233('0x5e')](_0x470f33=>!_0x470f33[0x0][_0x4233('0x93')](_0x4233('0x73'))));}),_0x1e7e49;}}function J(_0x4c3cea,_0x522556){const _0x3bca17=_0x522556[_0x4233('0x3f')][_0x4233('0x8d')][_0x4233('0x102')];if(_0x4233('0xb8')==typeof _0x4c3cea)return new _0x5354fa(_0x3bca17,_0x4c3cea);{const _0x508598=_0x4c3cea['children']['map'](_0x343f92=>J(_0x343f92,_0x522556));return new(B[_0x4c3cea[(_0x4233('0xad'))]]||_0x46b10d)(_0x3bca17,_0x4c3cea[_0x4233('0xe')],_0x4c3cea['attributes'],_0x508598);}}class H{constructor(_0x398ce8){this[_0x4233('0x4c')]=_0x398ce8,this[_0x4233('0x47')]=new Map(),this[_0x4233('0xe1')]=-0x1,this[_0x4233('0x53')]=-0x1,this[_0x4233('0x1a')]=new Map(),this[_0x4233('0xe7')]=new Map(),this[_0x4233('0x6b')]=new Map(),this[_0x4233('0x6c')]=new Map(),this[_0x4233('0x4')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0x4233('0xcd')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x4233('0xf9')]=new Map(),this[_0x4233('0x89')]=0x1;}[_0x4233('0x4a')](_0x59ca91){this[_0x4233('0x70')]=_0x59ca91;const _0x2d8c6c=new Map(),_0x2c9f13=new Map(),_0x39502f=this[_0x4233('0x4c')]['model'][_0x4233('0x102')][_0x4233('0xb1')]['map'](_0x55d90a=>_0x55d90a[_0x4233('0x9c')]);for(const _0x18c1ca of _0x39502f){const _0x3fedaa=this['editor'][_0x4233('0xf6')]['document'][_0x4233('0x9e')](_0x18c1ca),_0x23c1bc=q(_0x3fedaa);_0x2d8c6c[_0x4233('0x92')](_0x18c1ca,_0x23c1bc),_0x2c9f13[_0x4233('0x92')](_0x18c1ca,Object[_0x4233('0xbc')](_0x3fedaa[_0x4233('0x9d')]()));}const _0x2529c1=Array[_0x4233('0x17')](this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0xc1')])[_0x4233('0xe9')](_0x16ced8=>[_0x16ced8[_0x4233('0xe')],_0x16ced8[_0x4233('0x7')]()]),_0x10b66a=this[_0x4233('0x70')][_0x4233('0xa')];this[_0x4233('0x8a')](_0x10b66a,_0x2d8c6c,_0x2529c1,_0x2c9f13),this[_0x4233('0x40')]=this[_0x4233('0x89')];const _0xa24849=new Map(),_0x4b10d7=new Map();for(const _0x39fd6c of _0x39502f){const _0x495d28=G(_0x39fd6c);_0xa24849[_0x4233('0x92')](_0x39fd6c,_0x495d28),_0x4b10d7[_0x4233('0x92')](_0x39fd6c,{});}this[_0x4233('0x8a')](Number[_0x4233('0x28')],_0xa24849,[],_0x4b10d7);}['getData'](_0x4be0fb,_0xaeb411){if(this['_lastFrom']===_0x4be0fb&&this[_0x4233('0x53')]<=_0xaeb411)this[_0x4233('0x47')][_0x4233('0x81')]>0x1&&this['_removeMetaData'](this[_0x4233('0x53')]),this[_0x4233('0xa0')](this['_lastTo'],_0xaeb411,!0x0);else{if(!this['_savedMetaData']['has'](_0x4be0fb)){const _0x18fcf2=this[_0x4233('0x101')](_0x4be0fb);this[_0x4233('0x90')](_0x18fcf2,_0x4be0fb,!0x1);}this['_calculateMetaData'](_0x4be0fb,_0xaeb411,!0x0);}return this[_0x4233('0xe1')]=_0x4be0fb,this[_0x4233('0x53')]=_0xaeb411,this[_0x4233('0x48')]();}[_0x4233('0x3e')](_0x1f30b7){this[_0x4233('0xa7')](),this[_0x4233('0xe1')]=_0x1f30b7[_0x4233('0x85')],this[_0x4233('0x53')]=_0x1f30b7[_0x4233('0x8e')];for(const _0x1debfe in _0x1f30b7[_0x4233('0xc8')]){const _0x51bae0=_0x1f30b7[_0x4233('0xc8')][_0x1debfe][_0x4233('0x76')],_0x3f289c=_0x2df165(_0x1f30b7['diffData'][_0x1debfe][_0x4233('0x44')])||{},_0x3883b6=this[_0x4233('0x62')](_0x1f30b7[_0x4233('0xc8')][_0x1debfe][_0x4233('0x7d')]);_0x3883b6[_0x4233('0x9c')]=_0x1debfe,_0x3883b6[_0x4233('0xa9')]=!_0x51bae0||!_0x51bae0[_0x4233('0x63')],_0x3883b6[_0x4233('0x63')]=()=>_0x3883b6['_isAttached'],this['_baseRoots']['set'](_0x1debfe,_0x3883b6),this['_baseRootsAttributes']['set'](_0x1debfe,_0x3f289c),_0x51bae0&&this[_0x4233('0xf9')][_0x4233('0x92')](_0x1debfe,_0x51bae0);const _0x29ce13=this[_0x4233('0xd4')](_0x3883b6);this['_baseIdsRoots'][_0x4233('0x92')](_0x1debfe,_0x29ce13);for(const [_0x2c6e05,_0x2a98da]of _0x3883b6[_0x4233('0xc1')]){if(!_0x2c6e05[_0x4233('0x93')](_0x4233('0xcc')))continue;const _0x5316b7=_0x2c6e05['split'](':')[0x2];for(const _0x2fa378 of _0x2a98da[_0x4233('0xdc')]({'singleCharacters':!0x0})){const _0x29bcc1=this['_getVidAttributeName'](_0x2fa378),_0x1d8f9a=_0x4233('0xfd')==_0x2fa378[_0x4233('0xad')]?_0x2fa378[_0x4233('0x9')][_0x4233('0x100')][_0x4233('0x77')](0x0,-0x1):_0x2fa378[_0x4233('0x9')][_0x4233('0x100')],_0x4ff72e=_0x29ce13['getNodeByPath'](_0x1d8f9a)[_0x4233('0x31')](_0x29bcc1);this[_0x4233('0xcd')]['set'](_0x4ff72e,{'userId':_0x5316b7});}}}this['_startingRevisionId']=this['_revisionId'];const _0x24c019=[...Array(this['_revisionId'])[_0x4233('0x8c')]()]['slice'](0x1)[_0x4233('0x5e')](_0x3a050f=>!this[_0x4233('0xcd')][_0x4233('0x27')](_0x3a050f));let _0x1003c7=0x0;const _0x5035ff=new Map();for(const _0x5642c2 in _0x1f30b7[_0x4233('0xc8')]){const _0x445429=_0x1f30b7['diffData'][_0x5642c2]['attachChange'],_0x430468=_0x2df165(_0x1f30b7[_0x4233('0xc8')][_0x5642c2][_0x4233('0xae')])||{},_0x69cecf=this[_0x4233('0x62')](_0x1f30b7[_0x4233('0xc8')][_0x5642c2]['insertions']);_0x69cecf['rootName']=_0x5642c2,_0x69cecf['_isAttached']=!_0x445429||_0x445429[_0x4233('0x63')],_0x69cecf['isAttached']=()=>_0x69cecf[_0x4233('0xa9')],this['_diffRoots'][_0x4233('0x92')](_0x5642c2,_0x69cecf),this[_0x4233('0x6b')][_0x4233('0x92')](_0x5642c2,_0x430468);const _0x13fa5a=this[_0x4233('0xd4')](_0x69cecf,Number[_0x4233('0x28')]);this[_0x4233('0xac')]['set'](_0x5642c2,_0x13fa5a),_0x5035ff[_0x4233('0x92')](_0x5642c2,_0x69cecf[_0x4233('0x63')]()?_0x430468:{});for(const [_0xa8858a,_0x284752]of _0x69cecf[_0x4233('0xc1')]){if(!_0xa8858a['startsWith'](_0x4233('0xcc')))continue;const _0x28fc8c=_0xa8858a['split'](':')[0x2];for(const _0x4ece51 of _0x284752['getWalker']({'singleCharacters':!0x0})){const _0xe0c800=this[_0x4233('0xcb')](_0x4ece51),_0x414ec7=this[_0x4233('0x89')]++,_0x418005=_0x4233('0xfd')==_0x4ece51['type']?_0x4ece51[_0x4233('0x9')][_0x4233('0x100')]['slice'](0x0,-0x1):_0x4ece51['previousPosition'][_0x4233('0x100')];_0x13fa5a['getNodeByPath'](_0x418005)[_0x4233('0xff')](_0xe0c800,_0x414ec7),this['_touched'][_0x4233('0x92')](_0x414ec7,{'userId':_0x28fc8c});}}for(const _0x36ba09 of this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0x54')](_0x69cecf)['getWalker']({'singleCharacters':!0x0})){const _0x32013e=this['_getVidAttributeName'](_0x36ba09),_0x50edf6=_0x4233('0xfd')==_0x36ba09[_0x4233('0xad')]?_0x36ba09[_0x4233('0x9')]['path'][_0x4233('0x77')](0x0,-0x1):_0x36ba09['previousPosition'][_0x4233('0x100')],_0x2aff40=_0x13fa5a[_0x4233('0x2b')](_0x50edf6);_0x2aff40[_0x4233('0x31')](_0x32013e)>0x0||_0x2aff40[_0x4233('0xff')](_0x32013e,_0x24c019[_0x1003c7++]);}for(const [_0x55dfb8,_0x5a6428]of _0x69cecf['markers'])_0x55dfb8[_0x4233('0x93')]('revision:')||this['_markers'][_0x4233('0x92')](_0x55dfb8,_0x5a6428);}const _0x16629c=G(_0x4233('0x84'));this[_0x4233('0x6c')][_0x4233('0x92')](_0x4233('0x84'),_0x16629c),this[_0x4233('0x38')][_0x4233('0x92')]('$graveyard',this[_0x4233('0xd4')](_0x16629c,0x1));const _0x1e157e=G(_0x4233('0x84'));this[_0x4233('0xe7')][_0x4233('0x92')](_0x4233('0x84'),_0x1e157e),this[_0x4233('0xac')]['set'](_0x4233('0x84'),this[_0x4233('0xd4')](_0x1e157e,0x1));const _0x5e8158=Array['from'](this[_0x4233('0xe7')])[_0x4233('0xe9')](([_0x49062d,_0xf7f7cc])=>[_0x49062d,q(_0xf7f7cc)]);this[_0x4233('0x8a')](this['_lastTo'],_0x5e8158,this['_markers'],_0x5035ff);}[_0x4233('0x62')](_0x2362b2){const _0x34e700=JSON[_0x4233('0x4b')](_0x2362b2),_0x256e1c=this[_0x4233('0x4c')][_0x4233('0x3f')][_0x4233('0x8d')][_0x4233('0x102')],_0x1f55c5=new _0x660609(_0x256e1c,_0x34e700[_0x4233('0xe9')](_0x3e1adb=>J(_0x3e1adb,this[_0x4233('0x4c')])));return this[_0x4233('0x4c')][_0x4233('0xd1')]['toModel'](_0x1f55c5);}[_0x4233('0x8a')](_0x364d53,_0x1428a5,_0x3e8549,_0x1dc428){const _0x4d96df=new Map(_0x1428a5),_0x252204=new Map(_0x2df165(_0x1dc428)),_0x1e47ae=new Map();for(const [_0x33aad7,_0xc38941]of _0x3e8549)_0x1e47ae[_0x4233('0x92')](_0x33aad7,{'start':_0xc38941['start'][_0x4233('0x65')](),'end':_0xc38941[_0x4233('0xaf')][_0x4233('0x65')](),'rootName':_0xc38941[_0x4233('0x1f')][_0x4233('0x9c')]});this[_0x4233('0x47')][_0x4233('0x92')](_0x364d53,{'roots':_0x4d96df,'markers':_0x1e47ae,'rootsAttributes':_0x252204});}[_0x4233('0xec')](_0x579093){this['_savedMetaData'][_0x4233('0x19')](_0x579093);}[_0x4233('0xef')](){this[_0x4233('0xa7')](),this[_0x4233('0xe1')]=-0x1,this[_0x4233('0x53')]=-0x1,this[_0x4233('0x47')][_0x4233('0x86')](),this[_0x4233('0x4a')](this[_0x4233('0x70')]);}[_0x4233('0xa7')](){this[_0x4233('0xcd')][_0x4233('0x86')](),this[_0x4233('0xca')][_0x4233('0x86')](),this[_0x4233('0xf9')][_0x4233('0x86')](),this[_0x4233('0xe7')][_0x4233('0x86')](),this[_0x4233('0x6b')][_0x4233('0x86')](),this[_0x4233('0x6c')][_0x4233('0x86')](),this[_0x4233('0x4')][_0x4233('0x86')](),this[_0x4233('0xac')]['clear'](),this[_0x4233('0x38')][_0x4233('0x86')](),this[_0x4233('0x1a')][_0x4233('0x86')](),this[_0x4233('0x89')]=0x1,this['_startingRevisionId']=this[_0x4233('0x89')];}[_0x4233('0xd4')](_0x509c56,_0x61703d=null){let _0x4434fd=null;_0x509c56['is'](_0x4233('0xbf'))||(_0x4434fd=new _0x803ef4(_0x509c56[_0x4233('0xe')],{'vid_start':null===_0x61703d?this['_revisionId']++:_0x61703d++}));const _0x32a049=[];for(const _0x3d6168 of _0x509c56[_0x4233('0x11')]())if(_0x3d6168['is'](_0x4233('0x87'))){_0x32a049['push'](this['_makeIdsRoot'](_0x3d6168,_0x61703d));const _0x1eee47=_0x32a049[_0x32a049['length']-0x1];null!==_0x61703d&&(_0x61703d=_0x1eee47['is']('element',_0x4233('0x1'))?_0x1eee47[_0x4233('0x31')]('vid')+0x1:_0x1eee47[_0x4233('0x31')](_0x4233('0x96'))+0x1);}else for(let _0x597ccf=0x0;_0x597ccf<_0x3d6168[_0x4233('0xe5')];_0x597ccf++)_0x32a049[_0x4233('0xbd')](new _0x803ef4(_0x4233('0x1'),{'vid':null===_0x61703d?this['_revisionId']++:_0x61703d++}));if(_0x509c56['is']('documentFragment')){const _0x4eae61=G(_0x509c56['rootName']);return _0x4eae61[_0x4233('0x3d')](0x0,_0x32a049),_0x4eae61;}return _0x4434fd[_0x4233('0xff')](_0x4233('0x96'),null===_0x61703d?this['_revisionId']++:_0x61703d++),_0x4434fd[_0x4233('0x3d')](0x0,_0x32a049),_0x4434fd;}[_0x4233('0x90')](_0xa6bef6,_0x41f5d3,_0x26e2ad){this[_0x4233('0xa7')]();const {roots:_0x1b8dca,markers:_0xebcc1e,rootsAttributes:_0x8db2e9}=this[_0x4233('0x47')][_0x4233('0xb')](_0xa6bef6);this[_0x4233('0x6c')]=new Map(_0x1b8dca),this[_0x4233('0x4')]=new Map(_0x2df165(_0x8db2e9));for(const [_0x5791f5,_0x39bfc4]of this[_0x4233('0x6c')])if(_0x4233('0x84')!==_0x5791f5&&(this[_0x4233('0xe7')][_0x4233('0x92')](_0x5791f5,q(_0x39bfc4)),this[_0x4233('0x6b')]=new Map(_0x2df165(_0x8db2e9)),_0x26e2ad)){const _0x328367=this[_0x4233('0x89')];this['_idsRoots']['set'](_0x5791f5,this[_0x4233('0xd4')](_0x39bfc4)),this[_0x4233('0x38')]['set'](_0x5791f5,this[_0x4233('0xd4')](_0x39bfc4,_0x328367));}this['_startingRevisionId']=this[_0x4233('0x89')],this[_0x4233('0xe7')]['set'](_0x4233('0x84'),q(this[_0x4233('0x6c')]['get'](_0x4233('0x84')))),_0x26e2ad&&this['_idsRoots']['set'](_0x4233('0x84'),this['_makeIdsRoot'](this[_0x4233('0x6c')][_0x4233('0xb')](_0x4233('0x84'))));for(const [_0x5175f1,_0x33c6d7]of _0xebcc1e){const _0x7b6a8e=this[_0x4233('0x6c')][_0x4233('0xb')](_0x33c6d7['rootName']),_0x249bd7=this[_0x4233('0xe7')][_0x4233('0xb')](_0x33c6d7[_0x4233('0x9c')]),_0x1e66c3=new _0x346d9c(this[_0x4233('0xdf')](_0x33c6d7[_0x4233('0xcf')],_0x7b6a8e),this['_fixPosition'](_0x33c6d7[_0x4233('0xaf')],_0x7b6a8e)),_0x22a1f4=this[_0x4233('0x58')](_0x1e66c3,_0x249bd7);_0x7b6a8e['markers'][_0x4233('0x92')](_0x5175f1,_0x1e66c3),this['_markers'][_0x4233('0x92')](_0x5175f1,_0x22a1f4);}this['_applyOperations'](_0xa6bef6,_0x41f5d3,_0x26e2ad);}[_0x4233('0xa0')](_0x3bf550,_0x506021,_0x397c15){for(const _0x54b83d of this[_0x4233('0x70')][_0x4233('0xc5')](_0x3bf550,_0x506021))this['_handleOperation'](_0x54b83d,_0x397c15);for(const _0x43433f of this['_diffRoots'][_0x4233('0xea')]())_0x43433f[_0x4233('0xc1')][_0x4233('0x86')]();for(const [_0x5b2c49,_0x5c347a]of this['_markers']){this[_0x4233('0xe7')][_0x4233('0xb')](_0x5c347a[_0x4233('0x1f')][_0x4233('0x9c')])[_0x4233('0xc1')][_0x4233('0x92')](_0x5b2c49,_0x5c347a[_0x4233('0x65')]());}const _0x1af885=new Map(),_0x5c190f=new Map();for(const [_0x13996d,_0x1c560b]of this[_0x4233('0xe7')])_0x1af885[_0x4233('0x92')](_0x13996d,q(_0x1c560b)),_0x5c190f['set'](_0x13996d,this['_diffRootsAttributes'][_0x4233('0xb')](_0x13996d));this[_0x4233('0x8a')](_0x506021,_0x1af885,this[_0x4233('0x1a')],_0x5c190f);}[_0x4233('0x101')](_0x5f25f5){const _0x1d6644=Array['from'](this[_0x4233('0x47')][_0x4233('0x8c')]());_0x1d6644['sort']((_0x15452b,_0x3680ba)=>_0x15452b-_0x3680ba),_0x1d6644[_0x4233('0xd0')]();for(const _0x233989 of _0x1d6644)if(_0x233989<_0x5f25f5)return _0x233989;return Number[_0x4233('0x28')];}[_0x4233('0xd6')](_0x512cc4,_0x5c82e2){const _0x1baaeb=Array[_0x4233('0x17')](_0x5c82e2['markers'])[_0x4233('0xe9')](([_0xf93f05,_0x11b14b])=>[_0xf93f05,this[_0x4233('0x58')](_0x11b14b,_0x512cc4)]);_0x512cc4[_0x4233('0xc1')]=new Map(_0x1baaeb);}['_transformMarkers'](_0x2b1bed){for(const _0x198a62 of this['_markers'][_0x4233('0xea')]()){const _0x3c28a3=_0x198a62[_0x4233('0xf2')](_0x2b1bed),_0x2e8f62=_0x346d9c['_createFromRanges'](_0x3c28a3);_0x198a62['start']=_0x2e8f62[_0x4233('0xcf')],_0x198a62[_0x4233('0xaf')]=_0x2e8f62[_0x4233('0xaf')];}}[_0x4233('0x21')](_0x3f3d12,_0x181426){if(_0x4233('0x3a')==_0x3f3d12[_0x4233('0xad')]||_0x4233('0xe8')==_0x3f3d12[_0x4233('0xad')])return void this[_0x4233('0x57')](_0x3f3d12,_0x181426);if(_0x4233('0xe3')==_0x3f3d12[_0x4233('0xad')]){const _0x1c4ebd=_0x3f3d12[_0x4233('0x3b')]['root'][_0x4233('0x9c')];this[_0x4233('0xe7')][_0x4233('0x27')](_0x1c4ebd)||(this[_0x4233('0xe7')]['set'](_0x1c4ebd,G(_0x1c4ebd,!0x0)),this['_diffRootsAttributes'][_0x4233('0x92')](_0x1c4ebd,{}),_0x181426&&this[_0x4233('0xac')][_0x4233('0x92')](_0x1c4ebd,G(_0x1c4ebd,!0x0)));}else{if(_0x4233('0x3')==_0x3f3d12[_0x4233('0xad')]||_0x4233('0xb5')==_0x3f3d12[_0x4233('0xad')]||'changeRootAttribute'==_0x3f3d12['type'])return void this[_0x4233('0x1d')](_0x3f3d12);}const _0x48ea20=this[_0x4233('0x5d')](_0x3f3d12,this['_diffRoots']);if('marker'!==_0x3f3d12[_0x4233('0xad')]&&(_0x48ea20[_0x4233('0x4d')](),this[_0x4233('0x56')](_0x48ea20)),_0x181426)switch(_0x48ea20['type']){case _0x4233('0xe3'):this[_0x4233('0xc3')](_0x3f3d12);break;case _0x4233('0x37'):case _0x4233('0x39'):case'reinsert':this[_0x4233('0xc4')](_0x3f3d12);break;case _0x4233('0x98'):this[_0x4233('0x2f')](_0x3f3d12);break;case _0x4233('0x6d'):this[_0x4233('0x7a')](_0x3f3d12);break;case _0x4233('0x16'):this['_handleMarkerOperation'](_0x3f3d12);}}[_0x4233('0x5d')](_0x4f3802,_0x56e941){const _0x49c887=_0x4f3802[_0x4233('0x65')]();return _0x49c887[_0x4233('0x103')]=_0x4f3802['_authorId'],this[_0x4233('0xd2')](_0x49c887,_0x56e941),_0x49c887;}[_0x4233('0x6a')](_0x4d2be2){return _0x4d2be2[_0x4233('0xe9')](_0x261e8e=>{const _0x3ec34b=this[_0x4233('0xcb')](_0x261e8e);return Number(_0x261e8e['item'][_0x4233('0x31')](_0x3ec34b));});}[_0x4233('0xf8')](_0x3776ce,_0x31a814){if(_0x3776ce['is'](_0x4233('0x87'),_0x4233('0x1')))_0x31a814[_0x4233('0xbd')]({'item':_0x3776ce,'type':_0x4233('0xdb')});else{_0x3776ce['is']('element')&&_0x31a814[_0x4233('0xbd')]({'item':_0x3776ce,'type':_0x4233('0x6f')});for(const _0x3c0254 of _0x3776ce[_0x4233('0x11')]())this[_0x4233('0xf8')](_0x3c0254,_0x31a814);_0x3776ce['is'](_0x4233('0x87'))&&_0x31a814[_0x4233('0xbd')]({'item':_0x3776ce,'type':_0x4233('0xfd')});}return _0x31a814;}[_0x4233('0x48')](){const _0x427d03=new Map(this['_touched']),_0x535079=new Map(_0x427d03),_0x4854da=new Map(),_0x572006={'insertions':{},'deletions':{}},_0xdef1b8={'insertions':{},'deletions':{}},_0x4a9b77=new Map(),_0x3c5fc7=new Set([...this[_0x4233('0x6c')][_0x4233('0x8c')](),...this[_0x4233('0xe7')]['keys']()]);_0x3c5fc7['delete'](_0x4233('0x84'));for(const _0x27eb2a of _0x3c5fc7){const _0x53e34c=this[_0x4233('0xe7')][_0x4233('0xb')](_0x27eb2a)||G(_0x27eb2a,!0x1),_0x398bb5=this[_0x4233('0x6c')][_0x4233('0xb')](_0x27eb2a)||G(_0x27eb2a,!0x1);_0x53e34c['isAttached']()||_0x398bb5[_0x4233('0x63')]()?(_0x572006[_0x4233('0x13')][_0x27eb2a]=q(_0x53e34c),_0x572006[_0x4233('0x7d')][_0x27eb2a]=q(_0x398bb5),this[_0x4233('0xd6')](_0x572006['deletions'][_0x27eb2a],_0x398bb5),this[_0x4233('0xd6')](_0x572006['insertions'][_0x27eb2a],_0x53e34c),_0xdef1b8[_0x4233('0x13')][_0x27eb2a]=this[_0x4233('0xf8')](this[_0x4233('0xac')]['get'](_0x27eb2a),[]),_0xdef1b8[_0x4233('0x7d')][_0x27eb2a]=this[_0x4233('0xf8')](this[_0x4233('0x38')][_0x4233('0xb')](_0x27eb2a)||G(_0x27eb2a,!0x1),[])):_0x3c5fc7['delete'](_0x27eb2a);}for(const _0x2a09b3 of _0x3c5fc7){const _0x4a000b=_0xdef1b8[_0x4233('0x13')][_0x2a09b3];for(const _0x287877 of _0x4a000b){const _0x406430=this[_0x4233('0xcb')](_0x287877),_0x2a26bd=_0x287877[_0x4233('0xce')][_0x4233('0x31')](_0x406430);_0x535079[_0x4233('0x19')](_0x2a26bd),_0x2a26bd>=this[_0x4233('0x40')]&&_0x4854da[_0x4233('0x92')](_0x2a26bd,_0x427d03['get'](_0x2a26bd));}}for(const _0x52e82b of _0x3c5fc7){const _0x5ef463=_0xdef1b8[_0x4233('0x13')][_0x52e82b],_0x7b4b4c=this[_0x4233('0x6a')](_0xdef1b8[_0x4233('0x7d')][_0x52e82b]);let _0x87f876=0x0;for(const _0x4df1d3 of _0x5ef463){const _0x27ddee=this['_getVidAttributeName'](_0x4df1d3),_0x4976f6=_0x4df1d3[_0x4233('0xce')][_0x4233('0x31')](_0x27ddee);if(!_0x4854da[_0x4233('0x27')](_0x4976f6)&&!_0x4a9b77['has'](_0x4976f6)){if(_0x535079[_0x4233('0x27')](_0x4976f6))_0x87f876++;else{if(_0x4976f6!=_0x7b4b4c[_0x87f876]){const _0xfb8034=_0x427d03[_0x4233('0xb')](_0x4976f6)||_0x427d03[_0x4233('0xb')](_0x7b4b4c[_0x87f876]);for(;_0x4976f6!=_0x7b4b4c[_0x87f876];)_0x535079['has'](_0x7b4b4c[_0x87f876])||(_0x4a9b77[_0x4233('0x92')](_0x7b4b4c[_0x87f876],_0xfb8034),_0x427d03[_0x4233('0x92')](_0x7b4b4c[_0x87f876],_0xfb8034)),_0x87f876++;}_0x87f876++;}}}}for(const _0x52a377 of _0x3c5fc7){const _0x139a40=_0xdef1b8[_0x4233('0x13')][_0x52a377];for(const _0x4d713d of _0x139a40){const _0x1976c3=this[_0x4233('0xcb')](_0x4d713d),_0x219cbb=_0x4d713d[_0x4233('0xce')][_0x4233('0x31')](_0x1976c3);if(_0x4a9b77['has'](_0x219cbb)){const _0x4768b7=_0x4a9b77['get'](_0x219cbb);_0x535079['has'](_0x219cbb)||_0x535079[_0x4233('0x92')](_0x219cbb,{..._0x4768b7}),_0x4854da[_0x4233('0x92')](_0x219cbb,{..._0x4768b7});}}}for(const _0x6775f9 of _0x535079[_0x4233('0x8c')]())_0x6775f9>=this[_0x4233('0x40')]&&_0x535079[_0x4233('0x19')](_0x6775f9);const _0xdd08eb=new Map();for(const _0x59722c of _0x3c5fc7){let _0x10d482=_0xdef1b8[_0x4233('0x13')][_0x59722c];for(const _0x1a797e of _0x10d482)if(_0x1a797e[_0x4233('0xce')]['is']('element',_0x4233('0x55'))){const _0x494a9b=this[_0x4233('0xcb')](_0x1a797e),_0x572bbc=_0x1a797e[_0x4233('0xce')][_0x4233('0x31')](_0x494a9b);if(_0x4854da[_0x4233('0x27')](_0x572bbc)){const _0x403ba3=_0x1a797e[_0x4233('0xce')][_0x4233('0x22')][_0x4233('0x22')]['getAttribute']('vid_start'),_0x15e72f=_0xdd08eb['get'](_0x403ba3)||new Set();_0x15e72f[_0x4233('0x4e')](_0x4854da[_0x4233('0xb')](_0x572bbc)[_0x4233('0x3c')]),_0xdd08eb[_0x4233('0x92')](_0x403ba3,_0x15e72f);}}_0x10d482=_0xdef1b8[_0x4233('0x7d')][_0x59722c];for(const _0x15d185 of _0x10d482)if(_0x15d185['item']['is'](_0x4233('0x87'),'tableCell')){const _0x1060dd=this[_0x4233('0xcb')](_0x15d185),_0x26dd59=_0x15d185['item'][_0x4233('0x31')](_0x1060dd);if(_0x535079[_0x4233('0x27')](_0x26dd59)){const _0x4eab0b=_0x15d185[_0x4233('0xce')]['parent'][_0x4233('0x22')][_0x4233('0x31')](_0x4233('0x7f')),_0xc676da=_0xdd08eb[_0x4233('0xb')](_0x4eab0b)||new Set();_0xc676da[_0x4233('0x4e')](_0x535079[_0x4233('0xb')](_0x26dd59)[_0x4233('0x3c')]),_0xdd08eb[_0x4233('0x92')](_0x4eab0b,_0xc676da);}}for(const _0x3251d0 of _0xdd08eb[_0x4233('0x8c')]())(_0x4854da[_0x4233('0x27')](_0x3251d0)||_0x535079[_0x4233('0x27')](_0x3251d0))&&_0xdd08eb['delete'](_0x3251d0);}for(const _0x5dae45 of _0x3c5fc7){const _0x408cd5=_0xdef1b8[_0x4233('0x13')][_0x5dae45];let _0x4ddfe1=null,_0x5775ad=null;for(const _0x4cb999 of _0x408cd5){const _0x418f3e=this[_0x4233('0xcb')](_0x4cb999),_0x54ed06=_0x4cb999[_0x4233('0xce')]['getAttribute'](_0x418f3e),_0x16ff5d=_0xdd08eb[_0x4233('0xb')](_0x54ed06);_0x16ff5d&&_0x4233('0x6f')==_0x4cb999[_0x4233('0xad')]&&(_0x4ddfe1=Array['from'](_0x16ff5d)[0x0],_0x5775ad=_0x4cb999[_0x4233('0xce')][_0x4233('0x31')](_0x4233('0x96'))),_0x4ddfe1&&(_0x535079['set'](_0x54ed06,{'userId':_0x4ddfe1}),_0x4854da[_0x4233('0x92')](_0x54ed06,{'userId':_0x4ddfe1})),_0x54ed06==_0x5775ad&&(_0x4ddfe1=null,_0x5775ad=null);}}const _0x56a4a9={},_0x2f0ff0=new Set();for(const _0x27aa7c of _0x3c5fc7){const _0xe99dd6=_0x572006[_0x4233('0x7d')][_0x27aa7c],_0x53cfd8=_0x572006[_0x4233('0x13')][_0x27aa7c];for(const {userId:_0x1ee991}of this[_0x4233('0xca')][_0x4233('0xea')]())null!==_0x1ee991&&_0x2f0ff0[_0x4233('0x4e')](_0x1ee991);for(const {userId:_0xeb1505}of this[_0x4233('0xf9')][_0x4233('0xea')]())null!==_0xeb1505&&_0x2f0ff0[_0x4233('0x4e')](_0xeb1505);this['_markChanges'](_0x53cfd8,_0xdef1b8['insertions'][_0x27aa7c],_0x4854da,'insertion',_0x2f0ff0),this[_0x4233('0xc0')](_0xe99dd6,_0xdef1b8[_0x4233('0x7d')][_0x27aa7c],_0x535079,_0x4233('0xfa'),_0x2f0ff0),_0x56a4a9[_0x27aa7c]={'insertions':this[_0x4233('0xd9')](_0x53cfd8),'deletions':this[_0x4233('0xd9')](_0xe99dd6),'attachChange':this[_0x4233('0xf9')][_0x4233('0xb')](_0x27aa7c)||null,'attributesBefore':_0x2df165(this[_0x4233('0x4')][_0x4233('0xb')](_0x27aa7c))||{},'attributesAfter':_0x2df165(this['_diffRootsAttributes'][_0x4233('0xb')](_0x27aa7c))};}return{'diffData':_0x56a4a9,'authorsIds':Array[_0x4233('0x17')](_0x2f0ff0)};}[_0x4233('0xf5')](_0x4dd187){for(const [,_0x10be31]of _0x4dd187[_0x4233('0xc1')]){const _0x54014f=_0x10be31[_0x4233('0xcf')][_0x4233('0x35')]()[_0x4233('0x5e')](_0xede1f2=>_0x4233('0x55')==_0xede1f2['name']);for(const _0x415b02 of _0x54014f)0x1==_0x415b02[_0x4233('0xb0')]&&_0x415b02[_0x4233('0xee')](0x0)['is'](_0x4233('0x87'),_0x4233('0xc2'))&&_0x415b02['getChild'](0x0)[_0x4233('0xff')](_0x4233('0x83'),!0x0);}}[_0x4233('0xd9')](_0x8b3e8){this[_0x4233('0xf5')](_0x8b3e8);const _0xf7eaa1=this[_0x4233('0x4c')][_0x4233('0xd1')][_0x4233('0xaa')](_0x8b3e8,{}),_0x5a23d1=Array[_0x4233('0x17')](_0xf7eaa1[_0x4233('0x11')]())[_0x4233('0xe9')](_0x366fba=>this['_getViewJson'](_0x366fba));return JSON[_0x4233('0x15')](_0x5a23d1);}[_0x4233('0xf3')](_0x545c29){if(_0x545c29['is'](_0x4233('0x1')))return _0x545c29[_0x4233('0xd1')];{const _0xbb679=_0x545c29;return{'type':Object[_0x4233('0x8c')](B)['find'](_0x1a1821=>_0x545c29 instanceof B[_0x1a1821]),'name':_0xbb679['name'],'attributes':Array[_0x4233('0x17')](_0xbb679['getAttributes']()),'children':Array[_0x4233('0x17')](_0xbb679[_0x4233('0x11')]())['map'](_0x5bf5be=>this['_getViewJson'](_0x5bf5be))};}}['_markChanges'](_0x2f58b9,_0xb03cc,_0x162e62,_0x591a00,_0x3002aa){let _0x4aed0d=null,_0x463dbb=null,_0x576ea0=0x0;const _0x57e934=this['editor'][_0x4233('0xf6')];for(let _0x2921e2=0x0;_0x2921e2<_0xb03cc[_0x4233('0xfe')];_0x2921e2++){const _0x9adace=this['_getVidAttributeName'](_0xb03cc[_0x2921e2]),_0x5eaac4=_0xb03cc[_0x2921e2][_0x4233('0xce')]['getAttribute'](_0x9adace),_0xb92f2d=_0x162e62['get'](_0x5eaac4),_0x516e46=_0x2921e2==_0xb03cc['length']-0x1;(!_0x4aed0d&&_0xb92f2d&&(_0x4aed0d=_0xb92f2d,_0x463dbb=_0xb03cc[_0x2921e2]),_0x4aed0d&&(!_0xb92f2d||_0xb92f2d[_0x4233('0x3c')]!=_0x4aed0d[_0x4233('0x3c')]))&&(_0x189b99(_0xb92f2d,L(_0x463dbb,_0x2f58b9,_0x57e934),L(_0xb03cc[_0x2921e2],_0x2f58b9,_0x57e934)),_0x4aed0d=_0xb92f2d||null,_0x463dbb=_0xb92f2d?_0xb03cc[_0x2921e2]:null),_0x4aed0d&&_0x516e46&&_0x189b99(_0xb92f2d,L(_0x463dbb,_0x2f58b9,_0x57e934),W(_0xb03cc[_0x2921e2],_0x2f58b9,_0x57e934));}function _0x189b99(_0x27ed4f,_0x26754b,_0x2f4be5){const _0x3d82bf=_0x4aed0d[_0x4233('0x3c')],_0x484429=_0x4233('0xcc')+_0x591a00+':'+_0x3d82bf+':'+_0x576ea0++,_0x288232=_0x57e934[_0x4233('0x74')](_0x26754b,_0x2f4be5);_0x2f58b9[_0x4233('0xc1')][_0x4233('0x92')](_0x484429,_0x288232),null!==_0x3d82bf&&_0x3002aa[_0x4233('0x4e')](_0x3d82bf);}}[_0x4233('0xcb')](_0x5f1ae7){switch(_0x5f1ae7[_0x4233('0xad')]){case _0x4233('0x6f'):return _0x4233('0x7f');case _0x4233('0xfd'):return'vid_end';default:return _0x4233('0x10');}}[_0x4233('0xd2')](_0x50a2dd,_0x33f3f2){_0x50a2dd[_0x4233('0x2')]=null;for(const _0x11f7ca in _0x50a2dd){const _0x38e3f2=_0x50a2dd[_0x11f7ca];if(_0x38e3f2 instanceof _0x15b85a){const _0x48bbb9=_0x33f3f2[_0x4233('0xb')](_0x38e3f2[_0x4233('0x1f')][_0x4233('0x9c')]);_0x50a2dd[_0x11f7ca]=this['_fixPosition'](_0x38e3f2,_0x48bbb9);}if(_0x38e3f2 instanceof _0x346d9c){const _0x3e1605=_0x33f3f2[_0x4233('0xb')](_0x38e3f2[_0x4233('0x1f')][_0x4233('0x9c')]);_0x50a2dd[_0x11f7ca]=this[_0x4233('0x58')](_0x38e3f2,_0x3e1605);}_0x4233('0x1f')===_0x11f7ca&&(_0x50a2dd[_0x4233('0x1f')]=_0x33f3f2['get'](_0x50a2dd[_0x4233('0x1f')][_0x4233('0x9c')]));}}[_0x4233('0x58')](_0x11b36c,_0x506588){return this[_0x4233('0x4c')][_0x4233('0xf6')][_0x4233('0x74')](this[_0x4233('0xdf')](_0x11b36c[_0x4233('0xcf')],_0x506588),this['_fixPosition'](_0x11b36c[_0x4233('0xaf')],_0x506588));}['_fixPosition'](_0x45bee3,_0x22d341){return this[_0x4233('0x4c')]['model'][_0x4233('0xa3')](_0x22d341,_0x45bee3[_0x4233('0x100')],_0x45bee3[_0x4233('0xbb')]);}[_0x4233('0xc3')](_0x35a5bc){const _0x4f6f23=this['_idsRoots'][_0x4233('0xb')](_0x35a5bc[_0x4233('0x3b')][_0x4233('0x1f')][_0x4233('0x9c')]),_0x45c8ae=this[_0x4233('0xdf')](_0x35a5bc['position'],_0x4f6f23),_0x25a595=null===_0x35a5bc['_authorId']?null:_0x35a5bc[_0x4233('0x103')]||this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x53f9e1=_0x45c8ae[_0x4233('0x22')],_0x596b3a=this[_0x4233('0x89')],_0x1ea810=[];for(const _0x560b3e of _0x35a5bc[_0x4233('0x60')])if(_0x560b3e['is'](_0x4233('0x87')))_0x1ea810['push'](this[_0x4233('0xd4')](_0x560b3e));else for(let _0xad5c10=0x0;_0xad5c10<_0x560b3e['offsetSize'];_0xad5c10++)_0x1ea810[_0x4233('0xbd')](new _0x803ef4(_0x4233('0x1'),{'vid':this[_0x4233('0x89')]++}));const _0x4be922=this[_0x4233('0x89')];for(let _0x58bdc7=_0x596b3a;_0x58bdc7<_0x4be922;_0x58bdc7++)this[_0x4233('0xcd')][_0x4233('0x92')](_0x58bdc7,{'userId':_0x25a595});_0x53f9e1['_insertChild'](_0x45c8ae[_0x4233('0x42')],_0x1ea810);}[_0x4233('0xc4')](_0xf8b97d){(_0xf8b97d=this[_0x4233('0x5d')](_0xf8b97d,this['_idsRoots']))[_0x4233('0x4d')]();const _0x170e4d=null===_0xf8b97d['_authorId']?null:_0xf8b97d[_0x4233('0x103')]||this['editor'][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x1372a8=_0xf8b97d[_0x4233('0x5')](),_0x164167=_0x1372a8[_0x4233('0x22')],_0x53d558=_0x1372a8['offset'];!function _0x2dcc44(_0x56eff9,_0x2c8a2f,_0x8a975b,_0x29a5ce){for(let _0xcfa0=_0x8a975b;_0xcfa0<_0x29a5ce;_0xcfa0++){const _0xe88fa=_0x2c8a2f[_0x4233('0xee')](_0xcfa0);_0xe88fa['is'](_0x4233('0x87'),_0x4233('0x1'))?_0x56eff9[_0x4233('0x92')](_0xe88fa[_0x4233('0x31')](_0x4233('0x10')),{'userId':_0x170e4d}):(_0x56eff9['set'](_0xe88fa['getAttribute'](_0x4233('0x7f')),{'userId':_0x170e4d}),_0x2dcc44(_0x56eff9,_0xe88fa,0x0,_0xe88fa[_0x4233('0xb0')]),_0x56eff9[_0x4233('0x92')](_0xe88fa[_0x4233('0x31')](_0x4233('0x96')),{'userId':_0x170e4d}));}}(this[_0x4233('0xcd')],_0x164167,_0x53d558,_0x53d558+_0xf8b97d[_0x4233('0x1b')]);}['_handleMergeOperation'](_0x52489b){const _0x2739b4=null===(_0x52489b=this[_0x4233('0x5d')](_0x52489b,this[_0x4233('0xac')]))[_0x4233('0x103')]?null:_0x52489b[_0x4233('0x103')]||this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x164f7b=_0x52489b['targetPosition'][_0x4233('0x22')],_0x52db95=_0x52489b[_0x4233('0xf0')][_0x4233('0x22')],_0x79127e=_0x164f7b[_0x4233('0x31')](_0x4233('0x96')),_0x476e11=_0x52db95['getAttribute'](_0x4233('0x7f'));_0x164f7b[_0x4233('0xff')]('vid_end',_0x52db95[_0x4233('0x31')](_0x4233('0x96'))),_0x52db95[_0x4233('0xff')](_0x4233('0x96'),_0x79127e),this[_0x4233('0xcd')][_0x4233('0x92')](_0x476e11,{'userId':_0x2739b4}),this[_0x4233('0xcd')]['set'](_0x79127e,{'userId':_0x2739b4}),_0x52489b['_execute']();}['_handleSplitOperation'](_0x372830){const _0xeff180=null===(_0x372830=this[_0x4233('0x5d')](_0x372830,this['_idsRoots']))[_0x4233('0x103')]?null:_0x372830[_0x4233('0x103')]||this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x33f798=_0x372830[_0x4233('0xbe')],_0x348513=_0x372830['splitPosition'][_0x4233('0x22')];_0x372830[_0x4233('0x4d')]();const _0x3e6c9a=_0x348513[_0x4233('0x31')](_0x4233('0x96')),_0x17b6dd=_0x372830['insertionPosition'][_0x4233('0xf7')];if(_0x33f798){const _0x18e8fe=_0x17b6dd[_0x4233('0x31')](_0x4233('0x96')),_0x5e9f2c=_0x348513['getAttribute'](_0x4233('0x96'));_0x348513['_setAttribute'](_0x4233('0x96'),_0x18e8fe),_0x17b6dd['_setAttribute'](_0x4233('0x96'),_0x5e9f2c),this[_0x4233('0xcd')][_0x4233('0x92')](_0x348513[_0x4233('0x31')]('vid_end'),{'userId':_0xeff180}),this[_0x4233('0xcd')][_0x4233('0x92')](_0x17b6dd[_0x4233('0x31')]('vid_start'),{'userId':_0xeff180});}else{const _0x463661=this[_0x4233('0x89')]++,_0x33b854=this[_0x4233('0x89')]++;_0x348513[_0x4233('0xff')](_0x4233('0x96'),_0x463661),_0x17b6dd[_0x4233('0xff')](_0x4233('0x7f'),_0x33b854),_0x17b6dd['_setAttribute'](_0x4233('0x96'),_0x3e6c9a),this['_touched'][_0x4233('0x92')](_0x463661,{'userId':_0xeff180}),this[_0x4233('0xcd')][_0x4233('0x92')](_0x33b854,{'userId':_0xeff180});}}['_handleMarkerOperation'](_0x47db8b){if(!_0x47db8b[_0x4233('0x59')])return;const _0x7a20c9=(_0x47db8b=this[_0x4233('0x5d')](_0x47db8b,this['_diffRoots']))[_0x4233('0xde')]?_0x47db8b[_0x4233('0xde')]['root']:null,_0x43ee4a=_0x47db8b[_0x4233('0x20')]?_0x47db8b[_0x4233('0x20')][_0x4233('0x1f')]:null;_0x7a20c9&&this[_0x4233('0x1a')][_0x4233('0x19')](_0x47db8b['name']),_0x43ee4a&&this[_0x4233('0x1a')][_0x4233('0x92')](_0x47db8b[_0x4233('0xe')],_0x47db8b['newRange']['clone']());const _0x3b554c=null===_0x47db8b['_authorId']?null:_0x47db8b[_0x4233('0x103')]||this[_0x4233('0x4c')]['plugins'][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x5e3e39=_0x47db8b['name'];if(!this['_touchedMarkers'][_0x4233('0x27')](_0x5e3e39))return void this[_0x4233('0xca')]['set'](_0x5e3e39,{'range':_0x47db8b[_0x4233('0xde')],'userId':_0x3b554c});const _0x4632e3=this[_0x4233('0xca')][_0x4233('0xb')](_0x5e3e39),_0xd7371e=_0x4632e3[_0x4233('0x88')],_0xf13100=_0x47db8b[_0x4233('0x20')];null==_0xd7371e&&null==_0xf13100||_0xd7371e&&_0xf13100&&_0xd7371e[_0x4233('0x0')](_0xf13100)?this[_0x4233('0xca')][_0x4233('0x19')](_0x47db8b[_0x4233('0xe')]):_0x4632e3[_0x4233('0x3c')]=_0x3b554c;}['_handleRootOperation'](_0x3dbc48,_0x165fd2){this['_diffRoots'][_0x4233('0x27')](_0x3dbc48[_0x4233('0x9c')])?this[_0x4233('0xe7')][_0x4233('0xb')](_0x3dbc48[_0x4233('0x9c')])[_0x4233('0xa9')]=_0x3dbc48[_0x4233('0xb7')]:(this[_0x4233('0xe7')][_0x4233('0x92')](_0x3dbc48[_0x4233('0x9c')],G(_0x3dbc48['rootName'],!0x0)),this[_0x4233('0x6b')][_0x4233('0x92')](_0x3dbc48['rootName'],{}),_0x165fd2&&this[_0x4233('0xac')]['set'](_0x3dbc48[_0x4233('0x9c')],G(_0x3dbc48['rootName'],!0x0)));const _0x2f40a1=null===_0x3dbc48[_0x4233('0x103')]?null:_0x3dbc48[_0x4233('0x103')]||this[_0x4233('0x4c')][_0x4233('0x67')][_0x4233('0xb')](_0x4233('0xba'))['me']['id'],_0x52435d=this[_0x4233('0xf9')]['get'](_0x3dbc48[_0x4233('0x9c')]);_0x52435d&&_0x52435d['userId']===_0x2f40a1?this['_touchedRoots'][_0x4233('0x19')](_0x3dbc48[_0x4233('0x9c')]):this[_0x4233('0xf9')]['set'](_0x3dbc48[_0x4233('0x9c')],{'userId':_0x2f40a1,'isAttached':_0x3dbc48[_0x4233('0xb7')]});}[_0x4233('0x1d')](_0x57cd0b){const _0x3963b4=this[_0x4233('0x6b')][_0x4233('0xb')](_0x57cd0b['root']['rootName']);null===_0x57cd0b['newValue']?delete _0x3963b4[_0x57cd0b[_0x4233('0x52')]]:_0x3963b4[_0x57cd0b[_0x4233('0x52')]]=_0x57cd0b[_0x4233('0xd')];}}function q(_0x2036c5){const _0x5ceca0=G(_0x2036c5[_0x4233('0x9c')],_0x2036c5['isAttached']());for(const _0x2884e9 of _0x2036c5[_0x4233('0x11')]()){const _0x56fa10=_0x2884e9[_0x4233('0x8b')](!0x0);_0x5ceca0[_0x4233('0xd3')](_0x56fa10);}return _0x5ceca0;}function G(_0x363775,_0x437aaf=!0x0){const _0x53746e=new _0x52d8b();return _0x53746e[_0x4233('0x9c')]=_0x363775,_0x53746e[_0x4233('0xa9')]=_0x437aaf,_0x53746e['isAttached']=()=>_0x53746e[_0x4233('0xa9')],_0x53746e;}function L(_0x4988c3,_0x4422bf,_0x3bac06){const _0x151607='elementEnd'==_0x4988c3[_0x4233('0xad')]?_0x3bac06[_0x4233('0xc7')](_0x4988c3[_0x4233('0xce')],_0x4233('0xaf')):_0x3bac06[_0x4233('0xc9')](_0x4988c3[_0x4233('0xce')]);return _0x3bac06['createPositionFromPath'](_0x4422bf,_0x151607[_0x4233('0x100')],_0x151607['stickiness']);}function W(_0x5a0821,_0x2736c5,_0x3cee55){const _0x2e2001=_0x4233('0x6f')==_0x5a0821[_0x4233('0xad')]?_0x3cee55['createPositionAt'](_0x5a0821[_0x4233('0xce')],0x0):_0x3cee55[_0x4233('0xe2')](_0x5a0821['item']);return _0x3cee55[_0x4233('0xa3')](_0x2736c5,_0x2e2001[_0x4233('0x100')],_0x2e2001['stickiness']);}