@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230808.0 → 0.0.0-nightly-20230809.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10c7=['vid_start','_saveMetaData','baseVersion','define','insertion','createPositionFromPath','saveRevision','_replaceEditorDataWithRevisionData','key','_getState','_createCurrentRevision','_bufferedUpdates','clone','createPositionAt','_copyMarkers','offset','length','useFillerType','revision','resolve','targetPosition','NEGATIVE_INFINITY','_handleMergeOperation','_getBaseVids','filter','_loadRevisionData','ready','createPositionAfter','getData','_handleMarkerOperation','_appendChild','Users','getRevisionDocumentData','string','end','getAncestors','attributesBefore','_processRootBeforeSave','howMany','size','$graveyard','_addPendingAction','deletion','split','getLatestVersion','clear','getRoot','marker','hasContent','_fixRange','getOperation','config','getRevisionRootsAttributes','getUser','loadState','_prepareViewToSave','initial','name','authors','getTime','PendingActions','plugins','rootName','_startingRevisionId','toData','get','_removeRevisionMarkers','slice','isReady','RevisionsRepository','_handleRootAttributeOperation','_makeIdsRoot','then','getOperations','editor','_startingVersion','reverse','repository','_savedMetaData','sendBufferedUpdates','removeRootAttribute','diffData','_execute','_getPreviousFrom','vid_end','text','item','type','_initialRevisionId','newValue','add','finally','graveyardPosition','afterInit','roots','from','update','_diffRootsAttributes','_markChanges','history','_touched','start','_makeModelFromViewString','stickiness','_fixPosition','_applyOperations','_getFromVersion','fromEntries','_lastTo','createRangeIn','reinsert','_touchedRoots','_createFromRanges','max','elementEnd','position','getChild','_source','editing','revisionHistory.resumeUnsavedRevision','_setConversion','_revisionDataBuilder','_authorId','values','for','find','_handleSplitOperation','processor','map','detachRoot','getWalker','rootsAttributes','_makeRevision','oldRange','model','_insertChild','_bufferUpdate','_loadedStateData','addRootAttribute','_getVidAttributeName','affectsData','_lastFrom','revision-end','_isInit','attributes','addRevision','insert','_handleInsertOperation','_removeMetaData','creatorId','createRange','getRange','parent','sort','has','elementStart','_baseRoots','getRevisions','_transformMarkers','insertions','_createInitialRevision','_handleOperation','_calculateMetaData','_pendingAction','startsWith','tableCell','_getViewJson','attachChange','userId','version','getChildren','data','_isPendingUpdate','isEqual','attributesAfter','nodeAfter','bind','keys','vid','offsetSize','buildRevisionData','_handleMoveOperation','$text','childCount','_loadState','PENDING_ACTION_REVISION_HISTORY','merge','includes','forEach','_idsRoots','_setAttribute','RevisionTracker','_findInsertionIndex','shift','revision:','addRevisionData','path','set','init','setRevisionData','addRoot','documentFragment','createdAt','setSource','_handleRootOperation','isAdd','_baseIdsRoots','root','getAttribute','_removePendingAction','push','collaboration.channelId','_operations','getIndex','element','currentRevision','previousPosition','_markers','_generateTape','initialData','getCurrentRevisionId','_revisionId','marked','_baseRootsAttributes','dataDowncast','_fixOperation','newRange','keepParagraph','splitPosition','_isAttached','updateRevisions','isAttached','authorsIds','toView','default','RealTimeCollaborationClient','isEnabled','_touchedMarkers','delete','_clone','fromVersion','getTransformedByOperation','_diffRoots','Initial\x20revision','Empty\x20document','markers','document','_update','children','adapter','toModel','_continueCurrentRevision','dataToMarker','data-revision-','source','parse','_cloneOperation','getRevision','creator','getNodeByPath','view','toVersion','deletions'];(function(_0x6c1ab,_0x10c75e){const _0x362434=function(_0x2f0689){while(--_0x2f0689){_0x6c1ab['push'](_0x6c1ab['shift']());}};_0x362434(++_0x10c75e);}(_0x10c7,0x65));const _0x3624=function(_0x6c1ab,_0x10c75e){_0x6c1ab=_0x6c1ab-0x0;let _0x362434=_0x10c7[_0x6c1ab];return _0x362434;};import{Users as _0x262bd9}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x203884,PendingActions as _0x291ba2}from'ckeditor5/src/core';import{logWarning as _0x19a1a8,uid as _0x3437af}from'ckeditor5/src/utils';import{Position as _0x1442ec,Range as _0x5d635b,Element as _0x58fcf1,DocumentFragment as _0x4414b4,ViewText as _0x31721e,ViewElement as _0x4b5d7b,ViewContainerElement as _0xae999,ViewAttributeElement as _0x3a3f2b,ViewEmptyElement as _0x485689,ViewRawElement as _0x4d9a26,ViewUIElement as _0xde4d20,ViewDocumentFragment as _0x4331b3}from'ckeditor5/src/engine';import _0x30e224 from'./revisionsrepository';import{getTranslation as _0x252512}from'./utils/common-translations';import{cloneDeep as _0x324ce0,isEqual as _0x5af5cb}from'lodash-es';const B={'c':_0xae999,'a':_0x3a3f2b,'e':_0x485689,'r':_0x4d9a26,'u':_0xde4d20};export default class l extends _0x203884{static get['pluginName'](){return _0x3624('0x5a');}static get['requires'](){return[_0x262bd9,_0x30e224,_0x291ba2];}constructor(_0x560ac5){super(_0x560ac5),this[_0x3624('0x94')]=null,this[_0x3624('0x72')]=null,this[_0x3624('0x14')]=new H(this[_0x3624('0xec')]),this[_0x3624('0xfa')]=this[_0x3624('0xec')][_0x3624('0xd5')][_0x3624('0xe3')](_0x3624('0x6e'))||_0x3624('0xda'),this[_0x3624('0xad')]=new Map(),this[_0x3624('0x24')]=null;const _0x4c8522=_0x3437af();this[_0x3624('0x10')]={'history':this[_0x3624('0xec')][_0x3624('0x21')]['document'][_0x3624('0x105')],'getLatestVersion':()=>Promise['resolve'](this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0x44')]),'getCurrentRevisionId':()=>_0x4c8522},this[_0x3624('0x60')](_0x3624('0xe6'),!0x1),this[_0x3624('0x60')](_0x3624('0x87'),!0x0),this[_0x3624('0x60')](_0x3624('0x47'),!0x1),this[_0x3624('0xec')][_0x3624('0xd5')][_0x3624('0xa5')](_0x3624('0x12'),!0x0),this[_0x3624('0xec')]['conversion'][_0x3624('0x17')]('upcast')[_0x3624('0x97')]({'view':'revision'});}[_0x3624('0x61')](){this[_0x3624('0xef')]=this[_0x3624('0xec')][_0x3624('0xdf')]['get'](_0x3624('0xe7')),this[_0x3624('0x13')](),this[_0x3624('0xec')][_0x3624('0x46')]['on'](_0x3624('0xbc'),()=>{const _0x340e15=this[_0x3624('0xef')][_0x3624('0x9c')](0x0),_0x2cc7a0=_0x340e15&&null===_0x340e15[_0x3624('0x9d')]?_0x340e15:null;if(this['_continueCurrentRevision']=!!_0x2cc7a0&&this['editor']['config']['get'](_0x3624('0x12')),this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0x35')](_0x3624('0x86'))){const _0x2b5a20=this[_0x3624('0x10')]['getCurrentRevisionId'](),_0xf9dcc0=this['repository'][_0x3624('0x9c')](_0x2b5a20);if(_0xf9dcc0)this[_0x3624('0xed')]=_0xf9dcc0[_0x3624('0x8b')],this[_0x3624('0x96')]=!0x1;else{const _0xbae0eb=this[_0x3624('0x10')]['history'][_0x3624('0x6f')]['find'](_0x3cf6eb=>!_0x3cf6eb[_0x3624('0x2a')]),_0xd79979=_0xbae0eb?_0xbae0eb[_0x3624('0xa4')]:this[_0x3624('0x10')][_0x3624('0x105')][_0x3624('0x44')];_0x340e15?(_0x340e15['toVersion']<_0xd79979&&_0x340e15[_0x3624('0x92')]({'toVersion':_0xd79979}),this['_continueCurrentRevision']?(this['_source'][_0x3624('0x77')]=()=>_0x2cc7a0['id'],this[_0x3624('0xed')]=_0x2cc7a0[_0x3624('0x8b')]):(this[_0x3624('0xed')]=_0x340e15[_0x3624('0xa0')],this[_0x3624('0x96')]=!0x1)):(this['_startingVersion']=_0xd79979,this[_0x3624('0x96')]=!0x1);}}else _0x2cc7a0&&(this[_0x3624('0xec')][_0x3624('0x21')]['document']['history'][_0x3624('0x44')]=Math[_0x3624('0xc')](_0x2cc7a0[_0x3624('0xa0')],this['editor'][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0x105')][_0x3624('0x44')]),_0x2cc7a0[_0x3624('0x8b')]===_0x2cc7a0[_0x3624('0xa0')]?(0x0!==_0x2cc7a0[_0x3624('0x8b')]&&(this[_0x3624('0x10')][_0x3624('0x77')]=()=>_0x2cc7a0['id']),this[_0x3624('0x96')]=!0x1):this[_0x3624('0x96')]&&(this[_0x3624('0x10')][_0x3624('0x77')]=()=>_0x2cc7a0['id'],this['_startingVersion']=_0x2cc7a0[_0x3624('0x8b')])),this[_0x3624('0x96')]||(this[_0x3624('0xed')]=this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0x44')]);this[_0x3624('0x14')][_0x3624('0x61')](this[_0x3624('0x10')][_0x3624('0x105')]),this[_0x3624('0x3b')](this[_0x3624('0xed')]),this[_0x3624('0xac')](this['_startingVersion']),this[_0x3624('0x94')]&&this[_0x3624('0xf1')]();}),this[_0x3624('0x4b')](_0x3624('0xe6'))['to'](this,'_isPendingUpdate',_0x1524e5=>!_0x1524e5);}async[_0x3624('0xff')](){if(this['repository'][_0x3624('0xb2')]>0x0){const _0x546aeb=this[_0x3624('0xef')][_0x3624('0x9c')](0x0),_0x56ac49=await this['getRevisionDocumentData'](_0x546aeb),_0x11ab66=await this[_0x3624('0xd6')](_0x546aeb);this[_0x3624('0xa9')](_0x56ac49,_0x11ab66);}}[_0x3624('0x66')](_0x470824){this[_0x3624('0x10')]=_0x470824;}async[_0x3624('0x102')](){const _0x21aa18=await this[_0x3624('0x10')][_0x3624('0xce')]();if(_0x21aa18>this[_0x3624('0x72')][_0x3624('0xa0')]){await this[_0x3624('0x53')]();const _0x10f7ba=this[_0x3624('0x4f')]({'revision':this[_0x3624('0x72')],'to':_0x21aa18});_0x10f7ba[_0x3624('0xdc')]=_0x10f7ba[_0x3624('0x83')][_0x3624('0x1b')](_0x5063cf=>this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')](_0x3624('0xc1'))[_0x3624('0xd7')](_0x5063cf)),this[_0x3624('0x72')][_0x3624('0x92')](_0x10f7ba);}}async['_loadState'](){this[_0x3624('0x96')]&&!this['_loadedStateData']&&(await this[_0x3624('0xbb')](this[_0x3624('0x72')]),this['_revisionDataBuilder']['loadState'](this[_0x3624('0x72')]),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x3624('0x72')][_0x3624('0xdc')][_0x3624('0xe5')]()});}async[_0x3624('0xa8')](_0xa18f1b={},_0x48f8b3=null){const _0x441b32=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x48f8b3>this[_0x3624('0x72')]['toVersion']&&(_0x48f8b3=null),null===_0x48f8b3&&(_0x48f8b3=await this[_0x3624('0x10')][_0x3624('0xce')]());const _0x3ef711=this[_0x3624('0x5')](_0x48f8b3),_0x353f4e=this[_0x3624('0x4f')]({'from':_0x3ef711,'to':_0x48f8b3});if(this[_0x3624('0x72')][_0x3624('0xa0')]<_0x48f8b3){const _0x12db31=this[_0x3624('0x4f')]({'revision':this[_0x3624('0x72')],'from':_0x48f8b3,'to':_0x48f8b3});_0x12db31['authors']=[],_0x12db31[_0x3624('0x83')]=[],_0x12db31['id']=this[_0x3624('0x72')]['id'],this[_0x3624('0x72')][_0x3624('0x92')](_0x12db31,!0x0),delete _0x12db31[_0x3624('0xdc')],_0x441b32[_0x3624('0x6d')](_0x12db31);}_0xa18f1b[_0x3624('0x30')]=this['editor'][_0x3624('0xdf')]['get'](_0x3624('0xc1'))['me']['id'],_0xa18f1b[_0x3624('0xdb')]=_0xa18f1b[_0x3624('0xdb')]||null,_0xa18f1b['id']=_0xa18f1b['id']||_0x3437af(),_0xa18f1b={..._0xa18f1b,..._0x353f4e};const _0x2ec6a6=this['addRevisionData'](_0xa18f1b);_0x441b32[_0x3624('0x6d')](_0xa18f1b);const _0x230751=this['repository'][_0x3624('0x70')](_0x2ec6a6);if(0x0!==_0x230751){const _0x90ace=this[_0x3624('0xef')][_0x3624('0x9c')](_0x230751-0x1);if(_0x90ace['fromVersion']!==_0x48f8b3){const _0x16f4ba=this[_0x3624('0x14')][_0x3624('0xbe')](_0x48f8b3,_0x90ace[_0x3624('0xa0')]),_0xe9fdb9={'id':_0x90ace['id'],'diffData':_0x16f4ba[_0x3624('0xf3')],'authorsIds':_0x16f4ba[_0x3624('0x83')],'authors':_0x16f4ba[_0x3624('0x83')][_0x3624('0x1b')](_0x127e93=>this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')](_0x3624('0xc1'))[_0x3624('0xd7')](_0x127e93)),'fromVersion':_0x48f8b3};_0x90ace===this['currentRevision']&&(_0xe9fdb9[_0x3624('0x65')]=new Date(_0xa18f1b[_0x3624('0x65')][_0x3624('0xdd')]()+0xa)),_0x90ace[_0x3624('0x92')](_0xe9fdb9,!0x0),delete _0xe9fdb9['authors'],_0x441b32[_0x3624('0x6d')](_0xe9fdb9);}}if(this[_0x3624('0x94')]){for(const _0x737f8d of _0x441b32)this[_0x3624('0x23')](_0x737f8d['id'],_0x737f8d,!0x0);this['sendBufferedUpdates']();}return _0x2ec6a6;}[_0x3624('0x5e')](_0x1927f3){const _0x540d55=this[_0x3624('0xef')]['createRevision'](_0x1927f3);return this['adapter']&&_0x540d55['on'](_0x3624('0x92'),(_0x511704,_0x43c183,_0x14109c)=>{_0x14109c||(this[_0x3624('0x23')](_0x43c183['id'],_0x43c183,!0x0),this[_0x3624('0xf1')]());}),this[_0x3624('0xef')][_0x3624('0x2c')](_0x540d55,this[_0x3624('0x5b')](_0x540d55)),_0x540d55;}async[_0x3624('0xc2')](_0x32ef07){await this['_loadRevisionData'](_0x32ef07);const _0x1eb3ae={};for(const _0x5b6970 in _0x32ef07['diffData']){if(_0x32ef07[_0x3624('0xf3')][_0x5b6970][_0x3624('0x42')]&&!_0x32ef07['diffData'][_0x5b6970][_0x3624('0x42')][_0x3624('0x82')])continue;const _0x3beadd=this[_0x3624('0xe4')](JSON[_0x3624('0x9a')](_0x32ef07[_0x3624('0xf3')][_0x5b6970][_0x3624('0x3a')])),_0xe884fd=this[_0x3624('0xec')][_0x3624('0x11')]['view']['document'],_0x9135dd=new _0x4331b3(_0xe884fd,_0x3beadd['map'](_0x2e1011=>J(_0x2e1011,this[_0x3624('0xec')])));this[_0x3624('0xec')][_0x3624('0x46')]['processor'][_0x3624('0xb3')](_0x3624('0x79')),_0x1eb3ae[_0x5b6970]=this[_0x3624('0xec')][_0x3624('0x46')][_0x3624('0x1a')][_0x3624('0xe2')](_0x9135dd),this[_0x3624('0xec')]['data'][_0x3624('0x1a')][_0x3624('0xb3')](_0x3624('0x85'));}return _0x1eb3ae;}async[_0x3624('0xd6')](_0xee63fa){await this[_0x3624('0xbb')](_0xee63fa);const _0x588c5d={};for(const _0x1e7bcb in _0xee63fa[_0x3624('0xf3')])_0xee63fa[_0x3624('0xf3')][_0x1e7bcb][_0x3624('0x42')]&&!_0xee63fa['diffData'][_0x1e7bcb][_0x3624('0x42')][_0x3624('0x82')]||(_0x588c5d[_0x1e7bcb]=_0xee63fa[_0x3624('0xf3')][_0x1e7bcb][_0x3624('0x49')]||{});return _0x588c5d;}[_0x3624('0xf1')](){if(0x0===this['_bufferedUpdates'][_0x3624('0xc9')])return;if(this[_0x3624('0x47')])return;let _0x1008d2=Array[_0x3624('0x101')](this[_0x3624('0xad')][_0x3624('0x16')]());this['_bufferedUpdates'][_0x3624('0xcf')]();for(let _0x2c9bee=0x0;_0x2c9bee<_0x1008d2[_0x3624('0xb2')];_0x2c9bee++){const _0x4398bd=_0x1008d2[_0x2c9bee];let _0xdad1c1=!0x1;for(const _0x4e3ed8 of Object[_0x3624('0x4c')](_0x4398bd))void 0x0===_0x4398bd[_0x4e3ed8]?delete _0x4398bd[_0x4e3ed8]:'id'!==_0x4e3ed8&&(_0xdad1c1=!0x0);_0xdad1c1||(_0x1008d2[_0x2c9bee]=null);}if(_0x1008d2=_0x1008d2[_0x3624('0xba')](_0xca2954=>null!==_0xca2954),!_0x1008d2[_0x3624('0xb2')])return;for(let _0x1c38b1=0x0;_0x1c38b1<_0x1008d2[_0x3624('0xb2')];_0x1c38b1++){const _0x4514db=_0x1008d2[_0x1c38b1];void 0x0!==_0x4514db['fromVersion']&&void 0x0===_0x4514db[_0x3624('0xa0')]&&(_0x4514db[_0x3624('0xa0')]=this[_0x3624('0xef')][_0x3624('0x9c')](_0x4514db['id'])['toVersion']),void 0x0!==_0x4514db['toVersion']&&void 0x0===_0x4514db[_0x3624('0x8b')]&&(_0x4514db[_0x3624('0x8b')]=this[_0x3624('0xef')][_0x3624('0x9c')](_0x4514db['id'])[_0x3624('0x8b')]);}const _0x2d03ec=this['editor'][_0x3624('0xd5')][_0x3624('0xe3')]('collaboration.channelId');this[_0x3624('0x47')]=!0x0,this[_0x3624('0xcb')](),this['adapter'][_0x3624('0x81')](_0x1008d2,_0x2d03ec)[_0x3624('0xfd')](()=>{this[_0x3624('0x47')]=!0x1;})[_0x3624('0xea')](_0x3053e6=>{if(_0x3053e6)for(const _0x4c4615 of _0x3053e6)this[_0x3624('0x62')]({'id':_0x4c4615['id'],'createdAt':_0x4c4615[_0x3624('0x65')]});this[_0x3624('0x6c')](),this[_0x3624('0xf1')]();});}[_0x3624('0xa9')](_0x339fc9,_0x385dd1){let _0x366b45=this[_0x3624('0xec')][_0x3624('0xd5')]['get']('initialData'),_0x10561c=this[_0x3624('0xec')][_0x3624('0xd5')][_0x3624('0xe3')](_0x3624('0x1e'));if(void 0x0===_0x366b45){_0x366b45={};for(const _0x352892 of this[_0x3624('0xec')]['model']['document']['getRootNames']())_0x366b45[_0x352892]='';}if(_0x3624('0xc3')==typeof _0x366b45&&(_0x366b45={'main':_0x366b45}),void 0x0===_0x10561c){_0x10561c={};for(const _0x3dd21b of this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')]['getRootNames']())_0x10561c[_0x3dd21b]={};}let _0x594520=!0x1;const _0x3e8403=Object[_0x3624('0x4c')](_0x366b45),_0x24997f=Object['keys'](_0x339fc9);for(const _0x458a10 of _0x3e8403){if(_0x366b45[_0x458a10]!==_0x339fc9[_0x458a10]&&''!==_0x366b45[_0x458a10]['trim']()){_0x594520=!0x0;break;}if(!_0x5af5cb(_0x10561c[_0x458a10],_0x385dd1[_0x458a10])&&Object[_0x3624('0x4c')](_0x10561c[_0x458a10])[_0x3624('0xb2')]>0x0){_0x594520=!0x0;break;}}_0x594520||(_0x594520=_0x24997f['some'](_0x44c2b4=>!this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0xd0')](_0x44c2b4))),_0x594520&&_0x19a1a8('editor-initial-data-replaced-with-revision-data',{'editorData':_0x366b45,'editorRootsAttributes':_0x10561c,'revisionData':_0x339fc9,'revisionRootsAttributes':_0x385dd1}),this[_0x3624('0xec')]['config'][_0x3624('0x60')](_0x3624('0x76'),_0x339fc9),this[_0x3624('0xec')][_0x3624('0xd5')]['set'](_0x3624('0x1e'),_0x385dd1);}[_0x3624('0xcb')](){if(!this[_0x3624('0x3e')]){const _0x3efcdc=this[_0x3624('0xec')][_0x3624('0xdf')]['get'](_0x3624('0xde'));this[_0x3624('0x3e')]=_0x3efcdc[_0x3624('0xfc')](_0x252512(this[_0x3624('0xec')]['locale'],_0x3624('0x54')));}}[_0x3624('0x6c')](){this[_0x3624('0x3e')]&&(this[_0x3624('0xec')]['plugins'][_0x3624('0xe3')](_0x3624('0xde'))['remove'](this[_0x3624('0x3e')]),this['_pendingAction']=null);}[_0x3624('0x5b')](_0xfca5b1){const _0x12fe99=this[_0x3624('0xef')]['getRevisions']();_0x12fe99[_0x3624('0xee')]();let _0x430821=0x0;for(;_0x430821<_0x12fe99[_0x3624('0xb2')];){const _0x48a8df=_0x12fe99[_0x430821];if(_0x48a8df===this[_0x3624('0x72')]){_0x430821++;continue;}if(_0x48a8df['id']===this[_0x3624('0xfa')])break;const _0x27bbab=_0xfca5b1[_0x3624('0xa0')]-_0x48a8df[_0x3624('0xa0')]||_0xfca5b1[_0x3624('0x8b')]-_0x48a8df[_0x3624('0x8b')];if(_0x27bbab>0x0)break;if(_0x27bbab<0x0)_0x430821++;else{if(!_0xfca5b1[_0x3624('0x9d')]&&_0x48a8df[_0x3624('0x9d')])break;if(_0x48a8df['creator']||!_0xfca5b1['creator']){if(_0xfca5b1['createdAt']>_0x48a8df[_0x3624('0x65')])break;_0x430821++;}else _0x430821++;}}return _0x430821;}[_0x3624('0x62')](_0x360405){const _0x4fc28b=this[_0x3624('0xef')]['getRevision'](_0x360405['id']);if(_0x360405['createdAt']&&(_0x360405[_0x3624('0x65')]=new Date(_0x360405[_0x3624('0x65')])),_0x360405[_0x3624('0x83')]){const _0x8cf5f8=this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')](_0x3624('0xc1'));_0x360405[_0x3624('0xdc')]=_0x360405[_0x3624('0x83')][_0x3624('0x1b')](_0x10ac9a=>_0x8cf5f8[_0x3624('0xd7')](_0x10ac9a));}_0x4fc28b[_0x3624('0x92')](_0x360405,!0x0);}[_0x3624('0x4f')]({revision:_0x49c149=null,from:_0x15f78e=null,to:_0x10a5e8=null}){_0x15f78e=null!==_0x15f78e?_0x15f78e:_0x49c149[_0x3624('0x8b')],_0x10a5e8=null!==_0x10a5e8?_0x10a5e8:_0x49c149[_0x3624('0xa0')];const _0x2ab139=this[_0x3624('0x14')][_0x3624('0xbe')](_0x15f78e,_0x10a5e8),_0x2a1c04={'diffData':_0x2ab139[_0x3624('0xf3')],'authorsIds':_0x2ab139[_0x3624('0x83')],'fromVersion':_0x15f78e,'toVersion':_0x10a5e8};if(!_0x49c149||_0x10a5e8!==_0x49c149[_0x3624('0xa0')]){const _0x4d18dc=_0x10a5e8-0x1,_0x54050e=this['_source'][_0x3624('0x105')][_0x3624('0xd4')](_0x4d18dc);_0x2a1c04[_0x3624('0x65')]=_0x54050e&&_0x54050e[_0x3624('0x65')]||new Date();}if(this['_loadedStateData']&&_0x15f78e===this[_0x3624('0x24')][_0x3624('0x8b')])for(const _0x55c7a4 of this[_0x3624('0x24')][_0x3624('0xdc')])_0x2a1c04[_0x3624('0x83')][_0x3624('0x56')](_0x55c7a4['id'])||_0x2a1c04[_0x3624('0x83')][_0x3624('0x6d')](_0x55c7a4['id']);return _0x2a1c04;}[_0x3624('0xbb')](_0x4e578f){if(!_0x4e578f||_0x4e578f['diffData'])return Promise[_0x3624('0xb5')]();{const _0x3f403d=this[_0x3624('0xec')][_0x3624('0xd5')]['get'](_0x3624('0x6e'));return this[_0x3624('0x94')][_0x3624('0x9c')]({'channelId':_0x3f403d,'revisionId':_0x4e578f['id']})[_0x3624('0xea')](_0x74db17=>{_0x4e578f[_0x3624('0xf3')]=_0x74db17['diffData'];});}}[_0x3624('0x23')](_0x5f1fad,_0x412e43,_0x4b56da){if(this[_0x3624('0xad')][_0x3624('0x35')](_0x5f1fad)){const _0x2972d0=this[_0x3624('0xad')][_0x3624('0xe3')](_0x5f1fad);_0x412e43=_0x4b56da?{..._0x2972d0,..._0x412e43}:{..._0x412e43,..._0x2972d0};}this[_0x3624('0xad')][_0x3624('0x60')](_0x5f1fad,_0x412e43);}[_0x3624('0x5')](_0x58b45f){const _0x53bdae=this['repository'][_0x3624('0x38')]();_0x53bdae[_0x3624('0xee')](),_0x53bdae[_0x3624('0x5c')]();const _0x1fdad8=_0x53bdae['find'](_0x4a23a2=>_0x4a23a2['toVersion']<=_0x58b45f)[_0x3624('0xa0')];return _0x1fdad8<this[_0x3624('0xed')]?this[_0x3624('0xed')]:_0x1fdad8;}[_0x3624('0x3b')](_0x1f9d12){const _0x44e9e7=this['repository'][_0x3624('0x9c')](this[_0x3624('0xef')]['length']-0x1);if(_0x44e9e7)this['_initialRevisionId']=_0x44e9e7['id'];else{const _0x2c7f06=!this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0x100')][_0x3624('0x18')](_0x3d2e78=>this['editor']['model'][_0x3624('0xd2')](_0x3d2e78)),_0x704f40=this[_0x3624('0xec')][_0x3624('0xdf')]['get'](_0x3624('0xc1'))['me']['id'],_0x18dc31=_0x252512(this[_0x3624('0xec')]['locale'],_0x2c7f06?_0x3624('0x8f'):_0x3624('0x8e'));this['_makeRevision']({'from':_0x1f9d12,'to':_0x1f9d12,'id':this[_0x3624('0xfa')],'name':_0x18dc31,'creatorId':_0x704f40});}}[_0x3624('0xac')](_0x9834da){const _0x5d31e3=this[_0x3624('0x10')][_0x3624('0x77')]();this[_0x3624('0x72')]=this[_0x3624('0xef')][_0x3624('0x9c')](_0x5d31e3),this[_0x3624('0x72')]||(this['currentRevision']=this[_0x3624('0x1f')]({'from':_0x9834da,'to':_0x9834da,'id':_0x5d31e3,'name':'','creatorId':null}));}[_0x3624('0x1f')]({name:_0x37e8c3,from:_0x56672a,to:_0x22bfe4,creatorId:_0x4e2bee,id:_0x3d8624}){const _0x32145d=this[_0x3624('0x4f')]({'from':_0x56672a,'to':_0x22bfe4});_0x32145d[_0x3624('0xdb')]=_0x37e8c3,_0x32145d['creatorId']=_0x4e2bee,_0x32145d['id']=_0x3d8624;const _0x1e54ec=this[_0x3624('0x5e')](_0x32145d);return this[_0x3624('0x94')]&&this['_bufferUpdate'](_0x32145d['id'],_0x32145d,!0x0),_0x1e54ec;}['_setConversion'](){this['editor']['conversion'][_0x3624('0x17')](_0x3624('0x7b'))['markerToData']({'model':_0x3624('0xb4')});}['_removeRevisionMarkers'](_0x4a9cd5){return(_0x4a9cd5=_0x4a9cd5['filter'](_0x3894f6=>!_0x3894f6['name']||'revision-start'!==_0x3894f6['name']&&_0x3624('0x29')!==_0x3894f6['name']))[_0x3624('0x57')](_0x1ba6ab=>{_0x3624('0xc3')!=typeof _0x1ba6ab&&(_0x1ba6ab[_0x3624('0x93')]=this[_0x3624('0xe4')](_0x1ba6ab[_0x3624('0x93')]),_0x1ba6ab[_0x3624('0x2b')]=_0x1ba6ab[_0x3624('0x2b')][_0x3624('0xba')](_0xb6de24=>!_0xb6de24[0x0]['startsWith'](_0x3624('0x98'))));}),_0x4a9cd5;}}function J(_0x3b0cb2,_0xae2f29){const _0x3f57fb=_0xae2f29[_0x3624('0x11')][_0x3624('0x9f')][_0x3624('0x91')];if('string'==typeof _0x3b0cb2)return new _0x31721e(_0x3f57fb,_0x3b0cb2);{const _0x466da9=_0x3b0cb2[_0x3624('0x93')][_0x3624('0x1b')](_0x1bf68f=>J(_0x1bf68f,_0xae2f29));return new(B[_0x3b0cb2[(_0x3624('0xf9'))]]||_0x4b5d7b)(_0x3f57fb,_0x3b0cb2[_0x3624('0xdb')],_0x3b0cb2[_0x3624('0x2b')],_0x466da9);}}class H{constructor(_0x2eacef){this[_0x3624('0xec')]=_0x2eacef,this[_0x3624('0xf0')]=new Map(),this[_0x3624('0x28')]=-0x1,this[_0x3624('0x7')]=-0x1,this[_0x3624('0x74')]=new Map(),this[_0x3624('0x8d')]=new Map(),this[_0x3624('0x103')]=new Map(),this[_0x3624('0x37')]=new Map(),this[_0x3624('0x7a')]=new Map(),this[_0x3624('0x58')]=new Map(),this[_0x3624('0x69')]=new Map(),this[_0x3624('0x106')]=new Map(),this[_0x3624('0x88')]=new Map(),this[_0x3624('0xa')]=new Map(),this[_0x3624('0x78')]=0x1;}[_0x3624('0x61')](_0x148e29){this[_0x3624('0x99')]=_0x148e29;const _0x5642c8=new Map(),_0x580155=new Map(),_0x675b31=this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x91')][_0x3624('0x100')][_0x3624('0x1b')](_0x56cf4e=>_0x56cf4e[_0x3624('0xe0')]);for(const _0x458c1e of _0x675b31){const _0x22cf1a=this[_0x3624('0xec')]['model'][_0x3624('0x91')][_0x3624('0xd0')](_0x458c1e),_0x457ca7=q(_0x22cf1a);_0x5642c8[_0x3624('0x60')](_0x458c1e,_0x457ca7),_0x580155['set'](_0x458c1e,Object[_0x3624('0x6')](_0x22cf1a['getAttributes']()));}const _0x12b6b5=Array[_0x3624('0x101')](this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0x90')])[_0x3624('0x1b')](_0x2c9b2c=>[_0x2c9b2c[_0x3624('0xdb')],_0x2c9b2c[_0x3624('0x32')]()]),_0x733b9=this['source'][_0x3624('0x44')];this['_saveMetaData'](_0x733b9,_0x5642c8,_0x12b6b5,_0x580155),this[_0x3624('0xe1')]=this['_revisionId'];const _0x52ff1c=new Map(),_0x4de239=new Map();for(const _0x230cd2 of _0x675b31){const _0x49fea5=G(_0x230cd2);_0x52ff1c['set'](_0x230cd2,_0x49fea5),_0x4de239['set'](_0x230cd2,{});}this[_0x3624('0xa3')](Number[_0x3624('0xb7')],_0x52ff1c,[],_0x4de239);}[_0x3624('0xbe')](_0x1129bd,_0x5f451f){if(this[_0x3624('0x28')]===_0x1129bd&&this[_0x3624('0x7')]<=_0x5f451f)this[_0x3624('0xf0')]['size']>0x1&&this['_removeMetaData'](this[_0x3624('0x7')]),this[_0x3624('0x4')](this[_0x3624('0x7')],_0x5f451f,!0x0);else{if(!this[_0x3624('0xf0')][_0x3624('0x35')](_0x1129bd)){const _0x3cffa3=this[_0x3624('0xf5')](_0x1129bd);this[_0x3624('0x3d')](_0x3cffa3,_0x1129bd,!0x1);}this[_0x3624('0x3d')](_0x1129bd,_0x5f451f,!0x0);}return this[_0x3624('0x28')]=_0x1129bd,this[_0x3624('0x7')]=_0x5f451f,this['_getState']();}[_0x3624('0xd8')](_0x3b44e6){this['_reset'](),this[_0x3624('0x28')]=_0x3b44e6['fromVersion'],this[_0x3624('0x7')]=_0x3b44e6['toVersion'];for(const _0x143db6 in _0x3b44e6[_0x3624('0xf3')]){const _0x119dd3=_0x3b44e6[_0x3624('0xf3')][_0x143db6]['attachChange'],_0x1c002e=_0x324ce0(_0x3b44e6[_0x3624('0xf3')][_0x143db6][_0x3624('0xc6')])||{},_0x187d24=this[_0x3624('0x1')](_0x3b44e6[_0x3624('0xf3')][_0x143db6]['deletions']);_0x187d24[_0x3624('0xe0')]=_0x143db6,_0x187d24['_isAttached']=!_0x119dd3||!_0x119dd3[_0x3624('0x82')],_0x187d24[_0x3624('0x82')]=()=>_0x187d24[_0x3624('0x80')],this[_0x3624('0x37')][_0x3624('0x60')](_0x143db6,_0x187d24),this[_0x3624('0x7a')][_0x3624('0x60')](_0x143db6,_0x1c002e),_0x119dd3&&this['_touchedRoots'][_0x3624('0x60')](_0x143db6,_0x119dd3);const _0x5b9c97=this[_0x3624('0xe9')](_0x187d24);this[_0x3624('0x69')]['set'](_0x143db6,_0x5b9c97);for(const [_0x365b01,_0x459d0c]of _0x187d24['markers']){if(!_0x365b01[_0x3624('0x3f')](_0x3624('0x5d')))continue;const _0x2a38d9=_0x365b01[_0x3624('0xcd')](':')[0x2];for(const _0x17ab4e of _0x459d0c[_0x3624('0x1d')]({'singleCharacters':!0x0})){const _0x483fa5=this[_0x3624('0x26')](_0x17ab4e),_0x56f2c3='elementEnd'==_0x17ab4e[_0x3624('0xf9')]?_0x17ab4e[_0x3624('0x73')][_0x3624('0x5f')]['slice'](0x0,-0x1):_0x17ab4e['previousPosition'][_0x3624('0x5f')],_0x52e06e=_0x5b9c97[_0x3624('0x9e')](_0x56f2c3)[_0x3624('0x6b')](_0x483fa5);this[_0x3624('0x106')]['set'](_0x52e06e,{'userId':_0x2a38d9});}}}this[_0x3624('0xe1')]=this['_revisionId'];const _0x248a20=[...Array(this[_0x3624('0x78')])[_0x3624('0x4c')]()][_0x3624('0xe5')](0x1)[_0x3624('0xba')](_0x5d421e=>!this[_0x3624('0x106')][_0x3624('0x35')](_0x5d421e));let _0x5ef373=0x0;const _0x2acc5a=new Map();for(const _0x3f8cc8 in _0x3b44e6[_0x3624('0xf3')]){const _0x22103d=_0x3b44e6[_0x3624('0xf3')][_0x3f8cc8]['attachChange'],_0x57f2b4=_0x324ce0(_0x3b44e6[_0x3624('0xf3')][_0x3f8cc8]['attributesAfter'])||{},_0x395d87=this[_0x3624('0x1')](_0x3b44e6['diffData'][_0x3f8cc8]['insertions']);_0x395d87[_0x3624('0xe0')]=_0x3f8cc8,_0x395d87[_0x3624('0x80')]=!_0x22103d||_0x22103d[_0x3624('0x82')],_0x395d87[_0x3624('0x82')]=()=>_0x395d87['_isAttached'],this[_0x3624('0x8d')][_0x3624('0x60')](_0x3f8cc8,_0x395d87),this[_0x3624('0x103')][_0x3624('0x60')](_0x3f8cc8,_0x57f2b4);const _0x385a2d=this[_0x3624('0xe9')](_0x395d87,Number[_0x3624('0xb7')]);this[_0x3624('0x58')][_0x3624('0x60')](_0x3f8cc8,_0x385a2d),_0x2acc5a['set'](_0x3f8cc8,_0x395d87['isAttached']()?_0x57f2b4:{});for(const [_0x55e353,_0x5eb266]of _0x395d87[_0x3624('0x90')]){if(!_0x55e353[_0x3624('0x3f')](_0x3624('0x5d')))continue;const _0x46ed98=_0x55e353[_0x3624('0xcd')](':')[0x2];for(const _0x3095da of _0x5eb266['getWalker']({'singleCharacters':!0x0})){const _0x4f7cb4=this['_getVidAttributeName'](_0x3095da),_0xdce8b6=this['_revisionId']++,_0x5678d2=_0x3624('0xd')==_0x3095da[_0x3624('0xf9')]?_0x3095da[_0x3624('0x73')]['path'][_0x3624('0xe5')](0x0,-0x1):_0x3095da['previousPosition'][_0x3624('0x5f')];_0x385a2d[_0x3624('0x9e')](_0x5678d2)[_0x3624('0x59')](_0x4f7cb4,_0xdce8b6),this[_0x3624('0x106')]['set'](_0xdce8b6,{'userId':_0x46ed98});}}for(const _0x43eff2 of this['editor']['model'][_0x3624('0x8')](_0x395d87)[_0x3624('0x1d')]({'singleCharacters':!0x0})){const _0x4d8086=this[_0x3624('0x26')](_0x43eff2),_0x481381=_0x3624('0xd')==_0x43eff2[_0x3624('0xf9')]?_0x43eff2[_0x3624('0x73')][_0x3624('0x5f')][_0x3624('0xe5')](0x0,-0x1):_0x43eff2[_0x3624('0x73')]['path'],_0x51389c=_0x385a2d[_0x3624('0x9e')](_0x481381);_0x51389c['getAttribute'](_0x4d8086)>0x0||_0x51389c[_0x3624('0x59')](_0x4d8086,_0x248a20[_0x5ef373++]);}for(const [_0x554b06,_0x1b18be]of _0x395d87['markers'])_0x554b06[_0x3624('0x3f')](_0x3624('0x5d'))||this['_markers'][_0x3624('0x60')](_0x554b06,_0x1b18be);}const _0x23c1ef=G(_0x3624('0xca'));this[_0x3624('0x37')][_0x3624('0x60')]('$graveyard',_0x23c1ef),this[_0x3624('0x69')][_0x3624('0x60')]('$graveyard',this[_0x3624('0xe9')](_0x23c1ef,0x1));const _0x1d1a9e=G('$graveyard');this['_diffRoots'][_0x3624('0x60')]('$graveyard',_0x1d1a9e),this[_0x3624('0x58')][_0x3624('0x60')](_0x3624('0xca'),this['_makeIdsRoot'](_0x1d1a9e,0x1));const _0x30862e=Array[_0x3624('0x101')](this[_0x3624('0x8d')])[_0x3624('0x1b')](([_0x1f4e73,_0x4cad3c])=>[_0x1f4e73,q(_0x4cad3c)]);this[_0x3624('0xa3')](this[_0x3624('0x7')],_0x30862e,this[_0x3624('0x74')],_0x2acc5a);}[_0x3624('0x1')](_0x7a6383){const _0x550d90=JSON[_0x3624('0x9a')](_0x7a6383),_0x11dd86=this[_0x3624('0xec')][_0x3624('0x11')][_0x3624('0x9f')][_0x3624('0x91')],_0x46b79a=new _0x4331b3(_0x11dd86,_0x550d90[_0x3624('0x1b')](_0x149553=>J(_0x149553,this[_0x3624('0xec')])));return this[_0x3624('0xec')]['data'][_0x3624('0x95')](_0x46b79a);}[_0x3624('0xa3')](_0x1a94be,_0x966bd,_0x52558a,_0x21ee31){const _0x40b4ea=new Map(_0x966bd),_0x2835f7=new Map(_0x324ce0(_0x21ee31)),_0x51a117=new Map();for(const [_0x4bc23f,_0x29a10c]of _0x52558a)_0x51a117['set'](_0x4bc23f,{'start':_0x29a10c[_0x3624('0x0')]['clone'](),'end':_0x29a10c[_0x3624('0xc4')]['clone'](),'rootName':_0x29a10c[_0x3624('0x6a')][_0x3624('0xe0')]});this[_0x3624('0xf0')][_0x3624('0x60')](_0x1a94be,{'roots':_0x40b4ea,'markers':_0x51a117,'rootsAttributes':_0x2835f7});}[_0x3624('0x2f')](_0x2cc5f6){this[_0x3624('0xf0')][_0x3624('0x89')](_0x2cc5f6);}['reInit'](){this['_reset'](),this[_0x3624('0x28')]=-0x1,this[_0x3624('0x7')]=-0x1,this['_savedMetaData']['clear'](),this[_0x3624('0x61')](this[_0x3624('0x99')]);}['_reset'](){this[_0x3624('0x106')][_0x3624('0xcf')](),this[_0x3624('0x88')][_0x3624('0xcf')](),this['_touchedRoots'][_0x3624('0xcf')](),this['_diffRoots'][_0x3624('0xcf')](),this[_0x3624('0x103')][_0x3624('0xcf')](),this[_0x3624('0x37')][_0x3624('0xcf')](),this[_0x3624('0x7a')][_0x3624('0xcf')](),this[_0x3624('0x58')][_0x3624('0xcf')](),this[_0x3624('0x69')][_0x3624('0xcf')](),this[_0x3624('0x74')]['clear'](),this[_0x3624('0x78')]=0x1,this[_0x3624('0xe1')]=this[_0x3624('0x78')];}['_makeIdsRoot'](_0x3fdebb,_0x4a0382=null){let _0x5d836a=null;_0x3fdebb['is'](_0x3624('0x64'))||(_0x5d836a=new _0x58fcf1(_0x3fdebb['name'],{'vid_start':null===_0x4a0382?this['_revisionId']++:_0x4a0382++}));const _0x5895e4=[];for(const _0x375845 of _0x3fdebb[_0x3624('0x45')]())if(_0x375845['is'](_0x3624('0x71'))){_0x5895e4[_0x3624('0x6d')](this[_0x3624('0xe9')](_0x375845,_0x4a0382));const _0x3e00e1=_0x5895e4[_0x5895e4[_0x3624('0xb2')]-0x1];null!==_0x4a0382&&(_0x4a0382=_0x3e00e1['is'](_0x3624('0x71'),_0x3624('0x51'))?_0x3e00e1[_0x3624('0x6b')](_0x3624('0x4d'))+0x1:_0x3e00e1[_0x3624('0x6b')](_0x3624('0xf6'))+0x1);}else for(let _0x6d65aa=0x0;_0x6d65aa<_0x375845[_0x3624('0x4e')];_0x6d65aa++)_0x5895e4[_0x3624('0x6d')](new _0x58fcf1(_0x3624('0x51'),{'vid':null===_0x4a0382?this[_0x3624('0x78')]++:_0x4a0382++}));if(_0x3fdebb['is']('documentFragment')){const _0x356fc2=G(_0x3fdebb[_0x3624('0xe0')]);return _0x356fc2[_0x3624('0x22')](0x0,_0x5895e4),_0x356fc2;}return _0x5d836a[_0x3624('0x59')](_0x3624('0xf6'),null===_0x4a0382?this[_0x3624('0x78')]++:_0x4a0382++),_0x5d836a[_0x3624('0x22')](0x0,_0x5895e4),_0x5d836a;}['_calculateMetaData'](_0x479afd,_0x16ccbe,_0xbcf972){this['_reset']();const {roots:_0xb13865,markers:_0x5a52ce,rootsAttributes:_0x51b0fe}=this['_savedMetaData']['get'](_0x479afd);this[_0x3624('0x37')]=new Map(_0xb13865),this[_0x3624('0x7a')]=new Map(_0x324ce0(_0x51b0fe));for(const [_0x123bee,_0x243423]of this[_0x3624('0x37')])if(_0x3624('0xca')!==_0x123bee&&(this[_0x3624('0x8d')][_0x3624('0x60')](_0x123bee,q(_0x243423)),this['_diffRootsAttributes']=new Map(_0x324ce0(_0x51b0fe)),_0xbcf972)){const _0x45565f=this['_revisionId'];this['_idsRoots'][_0x3624('0x60')](_0x123bee,this[_0x3624('0xe9')](_0x243423)),this['_baseIdsRoots'][_0x3624('0x60')](_0x123bee,this[_0x3624('0xe9')](_0x243423,_0x45565f));}this[_0x3624('0xe1')]=this['_revisionId'],this['_diffRoots'][_0x3624('0x60')](_0x3624('0xca'),q(this['_baseRoots'][_0x3624('0xe3')]('$graveyard'))),_0xbcf972&&this['_idsRoots'][_0x3624('0x60')](_0x3624('0xca'),this[_0x3624('0xe9')](this[_0x3624('0x37')][_0x3624('0xe3')](_0x3624('0xca'))));for(const [_0x33a79c,_0x19040b]of _0x5a52ce){const _0x250c72=this['_baseRoots']['get'](_0x19040b[_0x3624('0xe0')]),_0x86607a=this[_0x3624('0x8d')][_0x3624('0xe3')](_0x19040b[_0x3624('0xe0')]),_0x2c4478=new _0x5d635b(this[_0x3624('0x3')](_0x19040b['start'],_0x250c72),this['_fixPosition'](_0x19040b[_0x3624('0xc4')],_0x250c72)),_0x500007=this[_0x3624('0xd3')](_0x2c4478,_0x86607a);_0x250c72[_0x3624('0x90')]['set'](_0x33a79c,_0x2c4478),this[_0x3624('0x74')][_0x3624('0x60')](_0x33a79c,_0x500007);}this[_0x3624('0x4')](_0x479afd,_0x16ccbe,_0xbcf972);}[_0x3624('0x4')](_0x36701f,_0x34e766,_0x230caf){for(const _0x38f027 of this[_0x3624('0x99')][_0x3624('0xeb')](_0x36701f,_0x34e766))this['_handleOperation'](_0x38f027,_0x230caf);for(const _0xd83963 of this[_0x3624('0x8d')][_0x3624('0x16')]())_0xd83963['markers'][_0x3624('0xcf')]();for(const [_0x50fcd2,_0x126fef]of this['_markers']){this[_0x3624('0x8d')]['get'](_0x126fef[_0x3624('0x6a')][_0x3624('0xe0')])[_0x3624('0x90')][_0x3624('0x60')](_0x50fcd2,_0x126fef[_0x3624('0xae')]());}const _0x8ed165=new Map(),_0x1d0f02=new Map();for(const [_0x3bea87,_0x2c9368]of this[_0x3624('0x8d')])_0x8ed165[_0x3624('0x60')](_0x3bea87,q(_0x2c9368)),_0x1d0f02['set'](_0x3bea87,this['_diffRootsAttributes'][_0x3624('0xe3')](_0x3bea87));this[_0x3624('0xa3')](_0x34e766,_0x8ed165,this[_0x3624('0x74')],_0x1d0f02);}[_0x3624('0xf5')](_0x5190d6){const _0x1e5939=Array[_0x3624('0x101')](this['_savedMetaData'][_0x3624('0x4c')]());_0x1e5939[_0x3624('0x34')]((_0x3e0387,_0x5866db)=>_0x3e0387-_0x5866db),_0x1e5939[_0x3624('0xee')]();for(const _0x3670fc of _0x1e5939)if(_0x3670fc<_0x5190d6)return _0x3670fc;return Number[_0x3624('0xb7')];}['_copyMarkers'](_0x3b1794,_0x5e60a2){const _0x48d382=Array['from'](_0x5e60a2[_0x3624('0x90')])[_0x3624('0x1b')](([_0x4622ff,_0x575924])=>[_0x4622ff,this[_0x3624('0xd3')](_0x575924,_0x3b1794)]);_0x3b1794['markers']=new Map(_0x48d382);}['_transformMarkers'](_0x13161a){for(const _0xa5769 of this[_0x3624('0x74')][_0x3624('0x16')]()){const _0x4009ad=_0xa5769[_0x3624('0x8c')](_0x13161a),_0x43815b=_0x5d635b[_0x3624('0xb')](_0x4009ad);_0xa5769[_0x3624('0x0')]=_0x43815b['start'],_0xa5769['end']=_0x43815b['end'];}}[_0x3624('0x3c')](_0x5ed538,_0x2adf36){if(_0x3624('0x63')==_0x5ed538[_0x3624('0xf9')]||_0x3624('0x1c')==_0x5ed538[_0x3624('0xf9')])return void this['_handleRootOperation'](_0x5ed538,_0x2adf36);if(_0x3624('0x2d')==_0x5ed538[_0x3624('0xf9')]){const _0x4c80d9=_0x5ed538['position']['root']['rootName'];this[_0x3624('0x8d')]['has'](_0x4c80d9)||(this[_0x3624('0x8d')]['set'](_0x4c80d9,G(_0x4c80d9,!0x0)),this['_diffRootsAttributes'][_0x3624('0x60')](_0x4c80d9,{}),_0x2adf36&&this[_0x3624('0x58')][_0x3624('0x60')](_0x4c80d9,G(_0x4c80d9,!0x0)));}else{if(_0x3624('0x25')==_0x5ed538[_0x3624('0xf9')]||_0x3624('0xf2')==_0x5ed538[_0x3624('0xf9')]||'changeRootAttribute'==_0x5ed538[_0x3624('0xf9')])return void this[_0x3624('0xe8')](_0x5ed538);}const _0x147eb7=this[_0x3624('0x9b')](_0x5ed538,this[_0x3624('0x8d')]);if(_0x3624('0xd1')!==_0x5ed538[_0x3624('0xf9')]&&(_0x147eb7['_execute'](),this[_0x3624('0x39')](_0x147eb7)),_0x2adf36)switch(_0x147eb7[_0x3624('0xf9')]){case'insert':this[_0x3624('0x2e')](_0x5ed538);break;case'move':case'remove':case _0x3624('0x9'):this[_0x3624('0x50')](_0x5ed538);break;case _0x3624('0x55'):this[_0x3624('0xb8')](_0x5ed538);break;case _0x3624('0xcd'):this[_0x3624('0x19')](_0x5ed538);break;case'marker':this[_0x3624('0xbf')](_0x5ed538);}}[_0x3624('0x9b')](_0x535645,_0x2292ac){const _0xc7fb32=_0x535645['clone']();return _0xc7fb32[_0x3624('0x15')]=_0x535645[_0x3624('0x15')],this[_0x3624('0x7c')](_0xc7fb32,_0x2292ac),_0xc7fb32;}['_getBaseVids'](_0x1013b7){return _0x1013b7[_0x3624('0x1b')](_0x3f9ed5=>{const _0x313d92=this[_0x3624('0x26')](_0x3f9ed5);return Number(_0x3f9ed5[_0x3624('0xf8')]['getAttribute'](_0x313d92));});}[_0x3624('0x75')](_0x14d276,_0x469360){if(_0x14d276['is'](_0x3624('0x71'),'$text'))_0x469360[_0x3624('0x6d')]({'item':_0x14d276,'type':_0x3624('0xf7')});else{_0x14d276['is'](_0x3624('0x71'))&&_0x469360[_0x3624('0x6d')]({'item':_0x14d276,'type':_0x3624('0x36')});for(const _0x43388a of _0x14d276['getChildren']())this[_0x3624('0x75')](_0x43388a,_0x469360);_0x14d276['is'](_0x3624('0x71'))&&_0x469360[_0x3624('0x6d')]({'item':_0x14d276,'type':'elementEnd'});}return _0x469360;}[_0x3624('0xab')](){const _0x320656=new Map(this[_0x3624('0x106')]),_0x21fdb4=new Map(_0x320656),_0x5de8f0=new Map(),_0x20ef25={'insertions':{},'deletions':{}},_0x75d87e={'insertions':{},'deletions':{}},_0x431c93=new Map(),_0x544267=new Set([...this['_baseRoots'][_0x3624('0x4c')](),...this[_0x3624('0x8d')][_0x3624('0x4c')]()]);_0x544267[_0x3624('0x89')](_0x3624('0xca'));for(const _0x575026 of _0x544267){const _0x413a73=this[_0x3624('0x8d')][_0x3624('0xe3')](_0x575026)||G(_0x575026,!0x1),_0x28db5d=this[_0x3624('0x37')][_0x3624('0xe3')](_0x575026)||G(_0x575026,!0x1);_0x413a73[_0x3624('0x82')]()||_0x28db5d[_0x3624('0x82')]()?(_0x20ef25[_0x3624('0x3a')][_0x575026]=q(_0x413a73),_0x20ef25[_0x3624('0xa1')][_0x575026]=q(_0x28db5d),this['_copyMarkers'](_0x20ef25[_0x3624('0xa1')][_0x575026],_0x28db5d),this[_0x3624('0xb0')](_0x20ef25[_0x3624('0x3a')][_0x575026],_0x413a73),_0x75d87e[_0x3624('0x3a')][_0x575026]=this[_0x3624('0x75')](this['_idsRoots'][_0x3624('0xe3')](_0x575026),[]),_0x75d87e[_0x3624('0xa1')][_0x575026]=this[_0x3624('0x75')](this['_baseIdsRoots'][_0x3624('0xe3')](_0x575026)||G(_0x575026,!0x1),[])):_0x544267[_0x3624('0x89')](_0x575026);}for(const _0x5c6eff of _0x544267){const _0x35486b=_0x75d87e[_0x3624('0x3a')][_0x5c6eff];for(const _0x1f7c2d of _0x35486b){const _0x2000fa=this[_0x3624('0x26')](_0x1f7c2d),_0x569869=_0x1f7c2d['item'][_0x3624('0x6b')](_0x2000fa);_0x21fdb4[_0x3624('0x89')](_0x569869),_0x569869>=this['_startingRevisionId']&&_0x5de8f0['set'](_0x569869,_0x320656[_0x3624('0xe3')](_0x569869));}}for(const _0x579195 of _0x544267){const _0x535335=_0x75d87e[_0x3624('0x3a')][_0x579195],_0x5b4e51=this[_0x3624('0xb9')](_0x75d87e['deletions'][_0x579195]);let _0x432d7b=0x0;for(const _0xcd3559 of _0x535335){const _0x318477=this['_getVidAttributeName'](_0xcd3559),_0x3e3a44=_0xcd3559[_0x3624('0xf8')]['getAttribute'](_0x318477);if(!_0x5de8f0[_0x3624('0x35')](_0x3e3a44)&&!_0x431c93['has'](_0x3e3a44)){if(_0x21fdb4[_0x3624('0x35')](_0x3e3a44))_0x432d7b++;else{if(_0x3e3a44!=_0x5b4e51[_0x432d7b]){const _0x33c618=_0x320656[_0x3624('0xe3')](_0x3e3a44)||_0x320656[_0x3624('0xe3')](_0x5b4e51[_0x432d7b]);for(;_0x3e3a44!=_0x5b4e51[_0x432d7b];)_0x21fdb4['has'](_0x5b4e51[_0x432d7b])||(_0x431c93['set'](_0x5b4e51[_0x432d7b],_0x33c618),_0x320656[_0x3624('0x60')](_0x5b4e51[_0x432d7b],_0x33c618)),_0x432d7b++;}_0x432d7b++;}}}}for(const _0x28745b of _0x544267){const _0x2b17c1=_0x75d87e[_0x3624('0x3a')][_0x28745b];for(const _0x20dfc7 of _0x2b17c1){const _0xe32dcd=this[_0x3624('0x26')](_0x20dfc7),_0x268ced=_0x20dfc7[_0x3624('0xf8')][_0x3624('0x6b')](_0xe32dcd);if(_0x431c93['has'](_0x268ced)){const _0x3b4708=_0x431c93['get'](_0x268ced);_0x21fdb4['has'](_0x268ced)||_0x21fdb4[_0x3624('0x60')](_0x268ced,{..._0x3b4708}),_0x5de8f0[_0x3624('0x60')](_0x268ced,{..._0x3b4708});}}}for(const _0x2027f2 of _0x21fdb4[_0x3624('0x4c')]())_0x2027f2>=this[_0x3624('0xe1')]&&_0x21fdb4['delete'](_0x2027f2);const _0x3469fa=new Map();for(const _0x4e3d32 of _0x544267){let _0x3af8ff=_0x75d87e[_0x3624('0x3a')][_0x4e3d32];for(const _0x395296 of _0x3af8ff)if(_0x395296[_0x3624('0xf8')]['is'](_0x3624('0x71'),_0x3624('0x40'))){const _0x322853=this['_getVidAttributeName'](_0x395296),_0x3b7d5e=_0x395296[_0x3624('0xf8')][_0x3624('0x6b')](_0x322853);if(_0x5de8f0['has'](_0x3b7d5e)){const _0x55a059=_0x395296[_0x3624('0xf8')][_0x3624('0x33')]['parent'][_0x3624('0x6b')](_0x3624('0xa2')),_0x2e03d4=_0x3469fa[_0x3624('0xe3')](_0x55a059)||new Set();_0x2e03d4[_0x3624('0xfc')](_0x5de8f0['get'](_0x3b7d5e)[_0x3624('0x43')]),_0x3469fa[_0x3624('0x60')](_0x55a059,_0x2e03d4);}}_0x3af8ff=_0x75d87e[_0x3624('0xa1')][_0x4e3d32];for(const _0x595b07 of _0x3af8ff)if(_0x595b07[_0x3624('0xf8')]['is'](_0x3624('0x71'),_0x3624('0x40'))){const _0xc6f2dc=this['_getVidAttributeName'](_0x595b07),_0x133934=_0x595b07[_0x3624('0xf8')]['getAttribute'](_0xc6f2dc);if(_0x21fdb4[_0x3624('0x35')](_0x133934)){const _0x43d362=_0x595b07['item'][_0x3624('0x33')]['parent'][_0x3624('0x6b')](_0x3624('0xa2')),_0x354885=_0x3469fa[_0x3624('0xe3')](_0x43d362)||new Set();_0x354885[_0x3624('0xfc')](_0x21fdb4[_0x3624('0xe3')](_0x133934)[_0x3624('0x43')]),_0x3469fa['set'](_0x43d362,_0x354885);}}for(const _0x32e553 of _0x3469fa[_0x3624('0x4c')]())(_0x5de8f0[_0x3624('0x35')](_0x32e553)||_0x21fdb4['has'](_0x32e553))&&_0x3469fa['delete'](_0x32e553);}for(const _0x2de908 of _0x544267){const _0x50d214=_0x75d87e[_0x3624('0x3a')][_0x2de908];let _0x3830dc=null,_0x39b426=null;for(const _0x20c376 of _0x50d214){const _0xb3dae9=this[_0x3624('0x26')](_0x20c376),_0x5cac12=_0x20c376[_0x3624('0xf8')][_0x3624('0x6b')](_0xb3dae9),_0x41a8d8=_0x3469fa[_0x3624('0xe3')](_0x5cac12);_0x41a8d8&&_0x3624('0x36')==_0x20c376[_0x3624('0xf9')]&&(_0x3830dc=Array[_0x3624('0x101')](_0x41a8d8)[0x0],_0x39b426=_0x20c376[_0x3624('0xf8')]['getAttribute'](_0x3624('0xf6'))),_0x3830dc&&(_0x21fdb4[_0x3624('0x60')](_0x5cac12,{'userId':_0x3830dc}),_0x5de8f0[_0x3624('0x60')](_0x5cac12,{'userId':_0x3830dc})),_0x5cac12==_0x39b426&&(_0x3830dc=null,_0x39b426=null);}}const _0x497080={},_0x306fbc=new Set();for(const _0x12265c of _0x544267){const _0x5c025b=_0x20ef25[_0x3624('0xa1')][_0x12265c],_0x15d633=_0x20ef25['insertions'][_0x12265c];for(const {userId:_0x2914d0}of this[_0x3624('0x88')][_0x3624('0x16')]())null!==_0x2914d0&&_0x306fbc[_0x3624('0xfc')](_0x2914d0);for(const {userId:_0x86fe76}of this['_touchedRoots'][_0x3624('0x16')]())null!==_0x86fe76&&_0x306fbc[_0x3624('0xfc')](_0x86fe76);this[_0x3624('0x104')](_0x15d633,_0x75d87e[_0x3624('0x3a')][_0x12265c],_0x5de8f0,_0x3624('0xa6'),_0x306fbc),this['_markChanges'](_0x5c025b,_0x75d87e[_0x3624('0xa1')][_0x12265c],_0x21fdb4,_0x3624('0xcc'),_0x306fbc),_0x497080[_0x12265c]={'insertions':this[_0x3624('0xd9')](_0x15d633),'deletions':this['_prepareViewToSave'](_0x5c025b),'attachChange':this[_0x3624('0xa')][_0x3624('0xe3')](_0x12265c)||null,'attributesBefore':_0x324ce0(this['_baseRootsAttributes']['get'](_0x12265c))||{},'attributesAfter':_0x324ce0(this[_0x3624('0x103')]['get'](_0x12265c))};}return{'diffData':_0x497080,'authorsIds':Array[_0x3624('0x101')](_0x306fbc)};}[_0x3624('0xc7')](_0x5ab4c8){for(const [,_0x5a55d4]of _0x5ab4c8['markers']){const _0x1221a3=_0x5a55d4[_0x3624('0x0')][_0x3624('0xc5')]()[_0x3624('0xba')](_0x24d430=>_0x3624('0x40')==_0x24d430[_0x3624('0xdb')]);for(const _0x1c2119 of _0x1221a3)0x1==_0x1c2119[_0x3624('0x52')]&&_0x1c2119[_0x3624('0xf')](0x0)['is'](_0x3624('0x71'),'paragraph')&&_0x1c2119[_0x3624('0xf')](0x0)[_0x3624('0x59')](_0x3624('0x7e'),!0x0);}}[_0x3624('0xd9')](_0x2c85b0){this[_0x3624('0xc7')](_0x2c85b0);const _0x437f00=this['editor'][_0x3624('0x46')][_0x3624('0x84')](_0x2c85b0,{}),_0x16b7c2=Array[_0x3624('0x101')](_0x437f00[_0x3624('0x45')]())[_0x3624('0x1b')](_0x2566bc=>this[_0x3624('0x41')](_0x2566bc));return JSON['stringify'](_0x16b7c2);}[_0x3624('0x41')](_0x3ff4d3){if(_0x3ff4d3['is']('$text'))return _0x3ff4d3[_0x3624('0x46')];{const _0x4e0a50=_0x3ff4d3;return{'type':Object[_0x3624('0x4c')](B)[_0x3624('0x18')](_0x3137f2=>_0x3ff4d3 instanceof B[_0x3137f2]),'name':_0x4e0a50[_0x3624('0xdb')],'attributes':Array[_0x3624('0x101')](_0x4e0a50['getAttributes']()),'children':Array[_0x3624('0x101')](_0x4e0a50[_0x3624('0x45')]())[_0x3624('0x1b')](_0x38a027=>this['_getViewJson'](_0x38a027))};}}[_0x3624('0x104')](_0x2f2af3,_0x4be8d2,_0x325b73,_0x292ee7,_0x17b3ea){let _0x319a44=null,_0x20c7d9=null,_0x581047=0x0;const _0x46f47f=this[_0x3624('0xec')][_0x3624('0x21')];for(let _0x4ed58f=0x0;_0x4ed58f<_0x4be8d2[_0x3624('0xb2')];_0x4ed58f++){const _0x20acb2=this[_0x3624('0x26')](_0x4be8d2[_0x4ed58f]),_0x5772c6=_0x4be8d2[_0x4ed58f][_0x3624('0xf8')][_0x3624('0x6b')](_0x20acb2),_0x38eecf=_0x325b73['get'](_0x5772c6),_0x11291f=_0x4ed58f==_0x4be8d2[_0x3624('0xb2')]-0x1;(!_0x319a44&&_0x38eecf&&(_0x319a44=_0x38eecf,_0x20c7d9=_0x4be8d2[_0x4ed58f]),_0x319a44&&(!_0x38eecf||_0x38eecf[_0x3624('0x43')]!=_0x319a44[_0x3624('0x43')]))&&(_0x59eed8(_0x38eecf,L(_0x20c7d9,_0x2f2af3,_0x46f47f),L(_0x4be8d2[_0x4ed58f],_0x2f2af3,_0x46f47f)),_0x319a44=_0x38eecf||null,_0x20c7d9=_0x38eecf?_0x4be8d2[_0x4ed58f]:null),_0x319a44&&_0x11291f&&_0x59eed8(_0x38eecf,L(_0x20c7d9,_0x2f2af3,_0x46f47f),W(_0x4be8d2[_0x4ed58f],_0x2f2af3,_0x46f47f));}function _0x59eed8(_0x371bd0,_0x556f2e,_0xbee001){const _0x3a0eda=_0x319a44[_0x3624('0x43')],_0x4dc258=_0x3624('0x5d')+_0x292ee7+':'+_0x3a0eda+':'+_0x581047++,_0x4c911a=_0x46f47f[_0x3624('0x31')](_0x556f2e,_0xbee001);_0x2f2af3[_0x3624('0x90')][_0x3624('0x60')](_0x4dc258,_0x4c911a),null!==_0x3a0eda&&_0x17b3ea[_0x3624('0xfc')](_0x3a0eda);}}[_0x3624('0x26')](_0x8c0827){switch(_0x8c0827[_0x3624('0xf9')]){case'elementStart':return _0x3624('0xa2');case _0x3624('0xd'):return _0x3624('0xf6');default:return _0x3624('0x4d');}}[_0x3624('0x7c')](_0x5101c2,_0x547be4){_0x5101c2['baseVersion']=null;for(const _0x5ed5b3 in _0x5101c2){const _0x24f6ac=_0x5101c2[_0x5ed5b3];if(_0x24f6ac instanceof _0x1442ec){const _0x220832=_0x547be4[_0x3624('0xe3')](_0x24f6ac[_0x3624('0x6a')][_0x3624('0xe0')]);_0x5101c2[_0x5ed5b3]=this[_0x3624('0x3')](_0x24f6ac,_0x220832);}if(_0x24f6ac instanceof _0x5d635b){const _0x3cc85b=_0x547be4[_0x3624('0xe3')](_0x24f6ac[_0x3624('0x6a')][_0x3624('0xe0')]);_0x5101c2[_0x5ed5b3]=this['_fixRange'](_0x24f6ac,_0x3cc85b);}_0x3624('0x6a')===_0x5ed5b3&&(_0x5101c2['root']=_0x547be4[_0x3624('0xe3')](_0x5101c2[_0x3624('0x6a')][_0x3624('0xe0')]));}}[_0x3624('0xd3')](_0x23005e,_0x57357b){return this['editor'][_0x3624('0x21')][_0x3624('0x31')](this[_0x3624('0x3')](_0x23005e[_0x3624('0x0')],_0x57357b),this['_fixPosition'](_0x23005e[_0x3624('0xc4')],_0x57357b));}[_0x3624('0x3')](_0x1f84b2,_0x15534d){return this[_0x3624('0xec')][_0x3624('0x21')][_0x3624('0xa7')](_0x15534d,_0x1f84b2[_0x3624('0x5f')],_0x1f84b2[_0x3624('0x2')]);}[_0x3624('0x2e')](_0x4afd02){const _0x12383a=this['_idsRoots'][_0x3624('0xe3')](_0x4afd02[_0x3624('0xe')][_0x3624('0x6a')][_0x3624('0xe0')]),_0x178fdc=this[_0x3624('0x3')](_0x4afd02['position'],_0x12383a),_0x7557d=null===_0x4afd02[_0x3624('0x15')]?null:_0x4afd02[_0x3624('0x15')]||this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')]('Users')['me']['id'],_0x175f81=_0x178fdc['parent'],_0x57df60=this[_0x3624('0x78')],_0x2c6adf=[];for(const _0x2a9141 of _0x4afd02['nodes'])if(_0x2a9141['is'](_0x3624('0x71')))_0x2c6adf[_0x3624('0x6d')](this[_0x3624('0xe9')](_0x2a9141));else for(let _0x555766=0x0;_0x555766<_0x2a9141['offsetSize'];_0x555766++)_0x2c6adf[_0x3624('0x6d')](new _0x58fcf1(_0x3624('0x51'),{'vid':this[_0x3624('0x78')]++}));const _0x28f658=this[_0x3624('0x78')];for(let _0x43b8e6=_0x57df60;_0x43b8e6<_0x28f658;_0x43b8e6++)this['_touched'][_0x3624('0x60')](_0x43b8e6,{'userId':_0x7557d});_0x175f81[_0x3624('0x22')](_0x178fdc[_0x3624('0xb1')],_0x2c6adf);}[_0x3624('0x50')](_0x58c105){(_0x58c105=this[_0x3624('0x9b')](_0x58c105,this['_idsRoots']))[_0x3624('0xf4')]();const _0x21504c=null===_0x58c105[_0x3624('0x15')]?null:_0x58c105[_0x3624('0x15')]||this[_0x3624('0xec')]['plugins'][_0x3624('0xe3')](_0x3624('0xc1'))['me']['id'],_0x17e7c5=_0x58c105['getMovedRangeStart'](),_0x29d8d3=_0x17e7c5['parent'],_0x3b2360=_0x17e7c5[_0x3624('0xb1')];!function _0x118bd1(_0x166595,_0x1b0aa0,_0x226856,_0x1ad584){for(let _0x4dc751=_0x226856;_0x4dc751<_0x1ad584;_0x4dc751++){const _0x3044e7=_0x1b0aa0['getChild'](_0x4dc751);_0x3044e7['is'](_0x3624('0x71'),_0x3624('0x51'))?_0x166595[_0x3624('0x60')](_0x3044e7[_0x3624('0x6b')](_0x3624('0x4d')),{'userId':_0x21504c}):(_0x166595[_0x3624('0x60')](_0x3044e7[_0x3624('0x6b')](_0x3624('0xa2')),{'userId':_0x21504c}),_0x118bd1(_0x166595,_0x3044e7,0x0,_0x3044e7[_0x3624('0x52')]),_0x166595[_0x3624('0x60')](_0x3044e7[_0x3624('0x6b')](_0x3624('0xf6')),{'userId':_0x21504c}));}}(this[_0x3624('0x106')],_0x29d8d3,_0x3b2360,_0x3b2360+_0x58c105[_0x3624('0xc8')]);}[_0x3624('0xb8')](_0x23bce6){const _0x3f2929=null===(_0x23bce6=this['_cloneOperation'](_0x23bce6,this[_0x3624('0x58')]))['_authorId']?null:_0x23bce6[_0x3624('0x15')]||this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')]('Users')['me']['id'],_0x9cad53=_0x23bce6[_0x3624('0xb6')]['parent'],_0x582c8a=_0x23bce6['sourcePosition'][_0x3624('0x33')],_0x4f51bc=_0x9cad53[_0x3624('0x6b')](_0x3624('0xf6')),_0x243905=_0x582c8a[_0x3624('0x6b')](_0x3624('0xa2'));_0x9cad53[_0x3624('0x59')](_0x3624('0xf6'),_0x582c8a[_0x3624('0x6b')]('vid_end')),_0x582c8a['_setAttribute'](_0x3624('0xf6'),_0x4f51bc),this[_0x3624('0x106')][_0x3624('0x60')](_0x243905,{'userId':_0x3f2929}),this[_0x3624('0x106')][_0x3624('0x60')](_0x4f51bc,{'userId':_0x3f2929}),_0x23bce6[_0x3624('0xf4')]();}[_0x3624('0x19')](_0x16dd1f){const _0x3bcd85=null===(_0x16dd1f=this[_0x3624('0x9b')](_0x16dd1f,this['_idsRoots']))[_0x3624('0x15')]?null:_0x16dd1f[_0x3624('0x15')]||this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')](_0x3624('0xc1'))['me']['id'],_0x119ecc=_0x16dd1f[_0x3624('0xfe')],_0x844e50=_0x16dd1f[_0x3624('0x7f')][_0x3624('0x33')];_0x16dd1f['_execute']();const _0x300a42=_0x844e50[_0x3624('0x6b')](_0x3624('0xf6')),_0x381c74=_0x16dd1f['insertionPosition'][_0x3624('0x4a')];if(_0x119ecc){const _0x1c0a2c=_0x381c74[_0x3624('0x6b')](_0x3624('0xf6')),_0xd1baf7=_0x844e50[_0x3624('0x6b')](_0x3624('0xf6'));_0x844e50[_0x3624('0x59')](_0x3624('0xf6'),_0x1c0a2c),_0x381c74['_setAttribute'](_0x3624('0xf6'),_0xd1baf7),this[_0x3624('0x106')][_0x3624('0x60')](_0x844e50['getAttribute'](_0x3624('0xf6')),{'userId':_0x3bcd85}),this[_0x3624('0x106')][_0x3624('0x60')](_0x381c74['getAttribute'](_0x3624('0xa2')),{'userId':_0x3bcd85});}else{const _0x3ef16e=this[_0x3624('0x78')]++,_0x188cef=this[_0x3624('0x78')]++;_0x844e50[_0x3624('0x59')](_0x3624('0xf6'),_0x3ef16e),_0x381c74[_0x3624('0x59')](_0x3624('0xa2'),_0x188cef),_0x381c74['_setAttribute'](_0x3624('0xf6'),_0x300a42),this[_0x3624('0x106')][_0x3624('0x60')](_0x3ef16e,{'userId':_0x3bcd85}),this['_touched'][_0x3624('0x60')](_0x188cef,{'userId':_0x3bcd85});}}[_0x3624('0xbf')](_0x19b5ca){if(!_0x19b5ca[_0x3624('0x27')])return;const _0x188c18=(_0x19b5ca=this[_0x3624('0x9b')](_0x19b5ca,this[_0x3624('0x8d')]))[_0x3624('0x20')]?_0x19b5ca['oldRange'][_0x3624('0x6a')]:null,_0x47ec04=_0x19b5ca['newRange']?_0x19b5ca[_0x3624('0x7d')]['root']:null;_0x188c18&&this[_0x3624('0x74')][_0x3624('0x89')](_0x19b5ca[_0x3624('0xdb')]),_0x47ec04&&this[_0x3624('0x74')][_0x3624('0x60')](_0x19b5ca['name'],_0x19b5ca[_0x3624('0x7d')]['clone']());const _0x357093=null===_0x19b5ca['_authorId']?null:_0x19b5ca['_authorId']||this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')](_0x3624('0xc1'))['me']['id'],_0x2f46db=_0x19b5ca[_0x3624('0xdb')];if(!this[_0x3624('0x88')][_0x3624('0x35')](_0x2f46db))return void this[_0x3624('0x88')][_0x3624('0x60')](_0x2f46db,{'range':_0x19b5ca[_0x3624('0x20')],'userId':_0x357093});const _0x24d9e6=this['_touchedMarkers'][_0x3624('0xe3')](_0x2f46db),_0x186313=_0x24d9e6['range'],_0xc8356=_0x19b5ca[_0x3624('0x7d')];null==_0x186313&&null==_0xc8356||_0x186313&&_0xc8356&&_0x186313[_0x3624('0x48')](_0xc8356)?this['_touchedMarkers']['delete'](_0x19b5ca[_0x3624('0xdb')]):_0x24d9e6['userId']=_0x357093;}[_0x3624('0x67')](_0x2fbc39,_0x21e1e4){this[_0x3624('0x8d')]['has'](_0x2fbc39[_0x3624('0xe0')])?this[_0x3624('0x8d')][_0x3624('0xe3')](_0x2fbc39[_0x3624('0xe0')])['_isAttached']=_0x2fbc39[_0x3624('0x68')]:(this[_0x3624('0x8d')][_0x3624('0x60')](_0x2fbc39[_0x3624('0xe0')],G(_0x2fbc39[_0x3624('0xe0')],!0x0)),this[_0x3624('0x103')][_0x3624('0x60')](_0x2fbc39[_0x3624('0xe0')],{}),_0x21e1e4&&this[_0x3624('0x58')][_0x3624('0x60')](_0x2fbc39[_0x3624('0xe0')],G(_0x2fbc39[_0x3624('0xe0')],!0x0)));const _0x67bb27=null===_0x2fbc39[_0x3624('0x15')]?null:_0x2fbc39[_0x3624('0x15')]||this[_0x3624('0xec')][_0x3624('0xdf')][_0x3624('0xe3')]('Users')['me']['id'],_0x29e1a3=this[_0x3624('0xa')][_0x3624('0xe3')](_0x2fbc39['rootName']);_0x29e1a3&&_0x29e1a3['userId']===_0x67bb27?this['_touchedRoots'][_0x3624('0x89')](_0x2fbc39['rootName']):this[_0x3624('0xa')][_0x3624('0x60')](_0x2fbc39[_0x3624('0xe0')],{'userId':_0x67bb27,'isAttached':_0x2fbc39[_0x3624('0x68')]});}[_0x3624('0xe8')](_0x439b5c){const _0x398587=this['_diffRootsAttributes'][_0x3624('0xe3')](_0x439b5c['root'][_0x3624('0xe0')]);null===_0x439b5c[_0x3624('0xfb')]?delete _0x398587[_0x439b5c[_0x3624('0xaa')]]:_0x398587[_0x439b5c[_0x3624('0xaa')]]=_0x439b5c[_0x3624('0xfb')];}}function q(_0x533044){const _0x1b3abd=G(_0x533044[_0x3624('0xe0')],_0x533044[_0x3624('0x82')]());for(const _0x56ed81 of _0x533044['getChildren']()){const _0x53ee54=_0x56ed81[_0x3624('0x8a')](!0x0);_0x1b3abd[_0x3624('0xc0')](_0x53ee54);}return _0x1b3abd;}function G(_0xaeab48,_0x5ba1e9=!0x0){const _0xd47c10=new _0x4414b4();return _0xd47c10['rootName']=_0xaeab48,_0xd47c10[_0x3624('0x80')]=_0x5ba1e9,_0xd47c10[_0x3624('0x82')]=()=>_0xd47c10['_isAttached'],_0xd47c10;}function L(_0x69aa5b,_0x270950,_0x58ea91){const _0x3ae1c9='elementEnd'==_0x69aa5b[_0x3624('0xf9')]?_0x58ea91[_0x3624('0xaf')](_0x69aa5b[_0x3624('0xf8')],'end'):_0x58ea91['createPositionBefore'](_0x69aa5b[_0x3624('0xf8')]);return _0x58ea91['createPositionFromPath'](_0x270950,_0x3ae1c9[_0x3624('0x5f')],_0x3ae1c9['stickiness']);}function W(_0xfc196a,_0xf14f70,_0x39d395){const _0x447c4e=_0x3624('0x36')==_0xfc196a[_0x3624('0xf9')]?_0x39d395[_0x3624('0xaf')](_0xfc196a['item'],0x0):_0x39d395[_0x3624('0xbd')](_0xfc196a[_0x3624('0xf8')]);return _0x39d395[_0x3624('0xa7')](_0xf14f70,_0x447c4e[_0x3624('0x5f')],_0x447c4e[_0x3624('0x2')]);}
23
+ const _0x3385=['getUser','upcast','filter','hasContent','detachRoot','getOperation','view','bind','_touchedMarkers','vid_end','getNodeByPath','requires','createRange','insert','createPositionAt','then','$text','addRootAttribute','move','elementStart','editor','toModel','keys','addRevision','sourcePosition','item','currentRevision','editor-initial-data-replaced-with-revision-data','_reset','insertionPosition','_touchedRoots','slice','revisionHistory.resumeUnsavedRevision','add','getRange','init','_cloneOperation','attributesAfter','_diffRootsAttributes','_setAttribute','key','_handleRootOperation','getRoot','fromVersion','history','_handleInsertOperation','_copyMarkers','trim','_fixOperation','RealTimeCollaborationClient','clear','config','_getState','addRevisionData','end','createPositionFromPath','_isPendingUpdate','_startingRevisionId','from','attributesBefore','useFillerType','_markers','remove','deletion','Users','removeRootAttribute','_touched','getChild','initialData','get','_handleMarkerOperation','_startingVersion','length','getRevisionDocumentData','resolve','type','getRevision','children','_pendingAction','startsWith','path','set','_fixPosition','_markChanges','isAttached','reinsert','root','elementEnd','getData','_continueCurrentRevision','parent','_addPendingAction','_removePendingAction','newValue','marked','getIndex','includes','buildRevisionData','parse','previousPosition','newRange','_bufferedUpdates','isAdd','revision-start','document','processor','baseVersion','_clone','updateRevisions','conversion','push','update','creatorId','oldRange','element','_removeRevisionMarkers','_calculateMetaData','_revisionDataBuilder','data-revision-','_isAttached','forEach','PENDING_ACTION_REVISION_HISTORY','isReady','_isInit','split','_source','_applyOperations','reInit','_generateTape','data','insertion','revision','_loadState','stickiness','_replaceEditorDataWithRevisionData','offset','range','getRevisionRootsAttributes','_getVidAttributeName','map','name','rootsAttributes','getWalker','repository','_getBaseVids','deletions','_fixRange','values','finally','revision-end','some','_handleMergeOperation','position','_initialRevisionId','_getPreviousFrom','has','for','_findInsertionIndex','source','_diffRoots','toVersion','marker','getLatestVersion','setSource','version','_createCurrentRevision','_update','locale','saveRevision','createdAt','getAttributes','_handleOperation','_processRootBeforeSave','_bufferUpdate','getRevisions','_authorId','adapter','_baseRootsAttributes','default','_getViewJson','collaboration.channelId','_makeModelFromViewString','find','_makeRevision','_setConversion','$graveyard','_lastTo','howMany','offsetSize','_baseRoots','splitPosition','getCurrentRevisionId','_insertChild','roots','_handleSplitOperation','vid_start','authorsIds','getRootNames','setRevisionData','_createFromRanges','start','diffData','markers','NEGATIVE_INFINITY','max','clone','initial','insertions','createPositionAfter','affectsData','_revisionId','_lastFrom','rootName','size','tableCell','_loadRevisionData','Empty\x20document','_removeMetaData','_loadedStateData','creator','getMovedRangeStart','getAttribute','_createInitialRevision','_handleRootAttributeOperation','getChildren','PendingActions','string','childCount','_makeIdsRoot','markerToData','addRoot','delete','toData','_idsRoots','nodeAfter','createRangeIn','dataToMarker','attachChange','model','reverse','_prepareViewToSave','stringify','isEqual','userId','_saveMetaData','graveyardPosition','_baseIdsRoots','vid','_getFromVersion','_execute','_savedMetaData','plugins','shift','authors','sendBufferedUpdates','keepParagraph','editing','revision:','loadState'];(function(_0x3232b9,_0x338547){const _0x2c3fc9=function(_0x1398b1){while(--_0x1398b1){_0x3232b9['push'](_0x3232b9['shift']());}};_0x2c3fc9(++_0x338547);}(_0x3385,0x137));const _0x2c3f=function(_0x3232b9,_0x338547){_0x3232b9=_0x3232b9-0x0;let _0x2c3fc9=_0x3385[_0x3232b9];return _0x2c3fc9;};import{Users as _0x672194}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x370324,PendingActions as _0x5b0903}from'ckeditor5/src/core';import{logWarning as _0x232210,uid as _0x51def7}from'ckeditor5/src/utils';import{Position as _0x14de34,Range as _0x169f5a,Element as _0x450319,DocumentFragment as _0x126caa,ViewText as _0x42498e,ViewElement as _0x567810,ViewContainerElement as _0x408415,ViewAttributeElement as _0x547667,ViewEmptyElement as _0x18399c,ViewRawElement as _0x142ccb,ViewUIElement as _0x4f7ce2,ViewDocumentFragment as _0x92e906}from'ckeditor5/src/engine';import _0x5f4e57 from'./revisionsrepository';import{getTranslation as _0xe28fab}from'./utils/common-translations';import{cloneDeep as _0x475970,isEqual as _0x211cd6}from'lodash-es';const B={'c':_0x408415,'a':_0x547667,'e':_0x18399c,'r':_0x142ccb,'u':_0x4f7ce2};export default class l extends _0x370324{static get['pluginName'](){return'RevisionTracker';}static get[_0x2c3f('0xda')](){return[_0x672194,_0x5f4e57,_0x5b0903];}constructor(_0xd23aac){super(_0xd23aac),this[_0x2c3f('0x7c')]=null,this[_0x2c3f('0xe9')]=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0x2c3f('0x65')]=this[_0x2c3f('0xe3')]['config'][_0x2c3f('0x11')](_0x2c3f('0x80'))||_0x2c3f('0x9a'),this['_bufferedUpdates']=new Map(),this[_0x2c3f('0xa6')]=null;const _0xfc7d55=_0x51def7();this[_0x2c3f('0x49')]={'history':this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')][_0x2c3f('0xfb')],'getLatestVersion':()=>Promise[_0x2c3f('0x16')](this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')]['version']),'getCurrentRevisionId':()=>_0xfc7d55},this[_0x2c3f('0x1d')](_0x2c3f('0x46'),!0x1),this[_0x2c3f('0x1d')]('isEnabled',!0x0),this[_0x2c3f('0x1d')](_0x2c3f('0x4'),!0x1),this['editor']['config']['define'](_0x2c3f('0xef'),!0x0),this['editor']['conversion'][_0x2c3f('0x68')](_0x2c3f('0xd0'))[_0x2c3f('0xb8')]({'view':_0x2c3f('0x4f')});}['init'](){this[_0x2c3f('0x5b')]=this[_0x2c3f('0xe3')]['plugins'][_0x2c3f('0x11')]('RevisionsRepository'),this[_0x2c3f('0x84')](),this['editor'][_0x2c3f('0x4d')]['on']('ready',()=>{const _0x518fe9=this['repository'][_0x2c3f('0x18')](0x0),_0x13202b=_0x518fe9&&null===_0x518fe9[_0x2c3f('0xa7')]?_0x518fe9:null;if(this[_0x2c3f('0x25')]=!!_0x13202b&&this[_0x2c3f('0xe3')]['config'][_0x2c3f('0x11')](_0x2c3f('0xef')),this['editor'][_0x2c3f('0xc7')][_0x2c3f('0x67')](_0x2c3f('0x100'))){const _0x1e4b9f=this[_0x2c3f('0x49')][_0x2c3f('0x8b')](),_0x5285a4=this[_0x2c3f('0x5b')]['getRevision'](_0x1e4b9f);if(_0x5285a4)this[_0x2c3f('0x13')]=_0x5285a4[_0x2c3f('0xfa')],this[_0x2c3f('0x25')]=!0x1;else{const _0x7b246=this[_0x2c3f('0x49')][_0x2c3f('0xfb')]['_operations'][_0x2c3f('0x82')](_0x3ec13b=>!_0x3ec13b[_0x2c3f('0x47')]),_0x523a7e=_0x7b246?_0x7b246[_0x2c3f('0x36')]:this[_0x2c3f('0x49')][_0x2c3f('0xfb')][_0x2c3f('0x70')];_0x518fe9?(_0x518fe9[_0x2c3f('0x6c')]<_0x523a7e&&_0x518fe9[_0x2c3f('0x72')]({'toVersion':_0x523a7e}),this[_0x2c3f('0x25')]?(this[_0x2c3f('0x49')][_0x2c3f('0x8b')]=()=>_0x13202b['id'],this[_0x2c3f('0x13')]=_0x13202b['fromVersion']):(this['_startingVersion']=_0x518fe9['toVersion'],this[_0x2c3f('0x25')]=!0x1)):(this['_startingVersion']=_0x523a7e,this['_continueCurrentRevision']=!0x1);}}else _0x13202b&&(this[_0x2c3f('0xe3')][_0x2c3f('0xba')]['document'][_0x2c3f('0xfb')]['version']=Math[_0x2c3f('0x98')](_0x13202b['toVersion'],this[_0x2c3f('0xe3')][_0x2c3f('0xba')]['document'][_0x2c3f('0xfb')]['version']),_0x13202b[_0x2c3f('0xfa')]===_0x13202b[_0x2c3f('0x6c')]?(0x0!==_0x13202b[_0x2c3f('0xfa')]&&(this[_0x2c3f('0x49')][_0x2c3f('0x8b')]=()=>_0x13202b['id']),this[_0x2c3f('0x25')]=!0x1):this[_0x2c3f('0x25')]&&(this['_source'][_0x2c3f('0x8b')]=()=>_0x13202b['id'],this[_0x2c3f('0x13')]=_0x13202b[_0x2c3f('0xfa')])),this[_0x2c3f('0x25')]||(this['_startingVersion']=this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')]['version']);this[_0x2c3f('0x41')]['init'](this[_0x2c3f('0x49')][_0x2c3f('0xfb')]),this[_0x2c3f('0xaa')](this[_0x2c3f('0x13')]),this['_createCurrentRevision'](this[_0x2c3f('0x13')]),this[_0x2c3f('0x7c')]&&this[_0x2c3f('0xca')]();}),this[_0x2c3f('0xd6')](_0x2c3f('0x46'))['to'](this,'_isPendingUpdate',_0x273948=>!_0x273948);}async['afterInit'](){if(this[_0x2c3f('0x5b')][_0x2c3f('0x14')]>0x0){const _0x5244d8=this[_0x2c3f('0x5b')][_0x2c3f('0x18')](0x0),_0x48fd9c=await this[_0x2c3f('0x15')](_0x5244d8),_0x25e630=await this[_0x2c3f('0x55')](_0x5244d8);this['_replaceEditorDataWithRevisionData'](_0x48fd9c,_0x25e630);}}[_0x2c3f('0x6f')](_0x3c50bf){this[_0x2c3f('0x49')]=_0x3c50bf;}async[_0x2c3f('0x3b')](){const _0x48aa26=await this[_0x2c3f('0x49')]['getLatestVersion']();if(_0x48aa26>this[_0x2c3f('0xe9')][_0x2c3f('0x6c')]){await this[_0x2c3f('0x50')]();const _0x4e3bd8=this[_0x2c3f('0x2d')]({'revision':this[_0x2c3f('0xe9')],'to':_0x48aa26});_0x4e3bd8[_0x2c3f('0xc9')]=_0x4e3bd8[_0x2c3f('0x90')][_0x2c3f('0x57')](_0x39b2f6=>this[_0x2c3f('0xe3')]['plugins'][_0x2c3f('0x11')](_0x2c3f('0xc'))[_0x2c3f('0xcf')](_0x39b2f6)),this['currentRevision'][_0x2c3f('0x72')](_0x4e3bd8);}}async[_0x2c3f('0x50')](){this[_0x2c3f('0x25')]&&!this[_0x2c3f('0xa6')]&&(await this[_0x2c3f('0xa3')](this[_0x2c3f('0xe9')]),this['_revisionDataBuilder'][_0x2c3f('0xce')](this[_0x2c3f('0xe9')]),this[_0x2c3f('0xa6')]={'fromVersion':this[_0x2c3f('0xe9')][_0x2c3f('0xfa')],'authors':this[_0x2c3f('0xe9')]['authors'][_0x2c3f('0xee')]()});}async[_0x2c3f('0x74')](_0x2abee3={},_0x3295e4=null){const _0x47a58e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3295e4>this[_0x2c3f('0xe9')][_0x2c3f('0x6c')]&&(_0x3295e4=null),null===_0x3295e4&&(_0x3295e4=await this['_source'][_0x2c3f('0x6e')]());const _0x3bc9ee=this[_0x2c3f('0xc4')](_0x3295e4),_0x260661=this['buildRevisionData']({'from':_0x3bc9ee,'to':_0x3295e4});if(this[_0x2c3f('0xe9')][_0x2c3f('0x6c')]<_0x3295e4){const _0x3bbe6a=this[_0x2c3f('0x2d')]({'revision':this['currentRevision'],'from':_0x3295e4,'to':_0x3295e4});_0x3bbe6a[_0x2c3f('0xc9')]=[],_0x3bbe6a[_0x2c3f('0x90')]=[],_0x3bbe6a['id']=this['currentRevision']['id'],this[_0x2c3f('0xe9')][_0x2c3f('0x72')](_0x3bbe6a,!0x0),delete _0x3bbe6a['authors'],_0x47a58e[_0x2c3f('0x3a')](_0x3bbe6a);}_0x2abee3[_0x2c3f('0x3c')]=this[_0x2c3f('0xe3')][_0x2c3f('0xc7')][_0x2c3f('0x11')]('Users')['me']['id'],_0x2abee3[_0x2c3f('0x58')]=_0x2abee3[_0x2c3f('0x58')]||null,_0x2abee3['id']=_0x2abee3['id']||_0x51def7(),_0x2abee3={..._0x2abee3,..._0x260661};const _0x324fa4=this[_0x2c3f('0x1')](_0x2abee3);_0x47a58e['push'](_0x2abee3);const _0x3a54b1=this[_0x2c3f('0x5b')][_0x2c3f('0x2b')](_0x324fa4);if(0x0!==_0x3a54b1){const _0x35dda9=this[_0x2c3f('0x5b')][_0x2c3f('0x18')](_0x3a54b1-0x1);if(_0x35dda9[_0x2c3f('0xfa')]!==_0x3295e4){const _0x3499f8=this[_0x2c3f('0x41')][_0x2c3f('0x24')](_0x3295e4,_0x35dda9[_0x2c3f('0x6c')]),_0x5203bc={'id':_0x35dda9['id'],'diffData':_0x3499f8[_0x2c3f('0x95')],'authorsIds':_0x3499f8[_0x2c3f('0x90')],'authors':_0x3499f8[_0x2c3f('0x90')][_0x2c3f('0x57')](_0x5ea8b=>this['editor'][_0x2c3f('0xc7')]['get']('Users')[_0x2c3f('0xcf')](_0x5ea8b)),'fromVersion':_0x3295e4};_0x35dda9===this[_0x2c3f('0xe9')]&&(_0x5203bc[_0x2c3f('0x75')]=new Date(_0x2abee3[_0x2c3f('0x75')]['getTime']()+0xa)),_0x35dda9[_0x2c3f('0x72')](_0x5203bc,!0x0),delete _0x5203bc[_0x2c3f('0xc9')],_0x47a58e['push'](_0x5203bc);}}if(this[_0x2c3f('0x7c')]){for(const _0xb0df14 of _0x47a58e)this['_bufferUpdate'](_0xb0df14['id'],_0xb0df14,!0x0);this['sendBufferedUpdates']();}return _0x324fa4;}[_0x2c3f('0x1')](_0x2df78e){const _0x448b2c=this[_0x2c3f('0x5b')]['createRevision'](_0x2df78e);return this[_0x2c3f('0x7c')]&&_0x448b2c['on'](_0x2c3f('0x72'),(_0xb3bff6,_0x19a6c5,_0x30e567)=>{_0x30e567||(this[_0x2c3f('0x79')](_0x19a6c5['id'],_0x19a6c5,!0x0),this[_0x2c3f('0xca')]());}),this[_0x2c3f('0x5b')][_0x2c3f('0xe6')](_0x448b2c,this[_0x2c3f('0x69')](_0x448b2c)),_0x448b2c;}async[_0x2c3f('0x15')](_0xa4aba2){await this['_loadRevisionData'](_0xa4aba2);const _0x54e63c={};for(const _0x2a3349 in _0xa4aba2['diffData']){if(_0xa4aba2[_0x2c3f('0x95')][_0x2a3349][_0x2c3f('0xb9')]&&!_0xa4aba2['diffData'][_0x2a3349]['attachChange'][_0x2c3f('0x20')])continue;const _0x39e8f9=this[_0x2c3f('0x3f')](JSON[_0x2c3f('0x2e')](_0xa4aba2[_0x2c3f('0x95')][_0x2a3349][_0x2c3f('0x9b')])),_0x301a87=this['editor'][_0x2c3f('0xcc')][_0x2c3f('0xd5')][_0x2c3f('0x34')],_0x324ace=new _0x92e906(_0x301a87,_0x39e8f9[_0x2c3f('0x57')](_0x53116d=>J(_0x53116d,this['editor'])));this[_0x2c3f('0xe3')]['data'][_0x2c3f('0x35')][_0x2c3f('0x8')](_0x2c3f('0x2a')),_0x54e63c[_0x2a3349]=this[_0x2c3f('0xe3')][_0x2c3f('0x4d')]['processor'][_0x2c3f('0xb4')](_0x324ace),this['editor'][_0x2c3f('0x4d')][_0x2c3f('0x35')]['useFillerType'](_0x2c3f('0x7e'));}return _0x54e63c;}async[_0x2c3f('0x55')](_0x9b586f){await this[_0x2c3f('0xa3')](_0x9b586f);const _0x3a9aaf={};for(const _0x6c038 in _0x9b586f[_0x2c3f('0x95')])_0x9b586f[_0x2c3f('0x95')][_0x6c038][_0x2c3f('0xb9')]&&!_0x9b586f[_0x2c3f('0x95')][_0x6c038]['attachChange'][_0x2c3f('0x20')]||(_0x3a9aaf[_0x6c038]=_0x9b586f[_0x2c3f('0x95')][_0x6c038][_0x2c3f('0xf4')]||{});return _0x3a9aaf;}[_0x2c3f('0xca')](){if(0x0===this[_0x2c3f('0x31')][_0x2c3f('0xa1')])return;if(this[_0x2c3f('0x4')])return;let _0x17adee=Array[_0x2c3f('0x6')](this['_bufferedUpdates'][_0x2c3f('0x5f')]());this[_0x2c3f('0x31')][_0x2c3f('0x101')]();for(let _0x3d843d=0x0;_0x3d843d<_0x17adee['length'];_0x3d843d++){const _0x19500=_0x17adee[_0x3d843d];let _0x424bb6=!0x1;for(const _0x49b355 of Object[_0x2c3f('0xe5')](_0x19500))void 0x0===_0x19500[_0x49b355]?delete _0x19500[_0x49b355]:'id'!==_0x49b355&&(_0x424bb6=!0x0);_0x424bb6||(_0x17adee[_0x3d843d]=null);}if(_0x17adee=_0x17adee[_0x2c3f('0xd1')](_0x128ab0=>null!==_0x128ab0),!_0x17adee[_0x2c3f('0x14')])return;for(let _0x28ab86=0x0;_0x28ab86<_0x17adee[_0x2c3f('0x14')];_0x28ab86++){const _0x1a17c8=_0x17adee[_0x28ab86];void 0x0!==_0x1a17c8[_0x2c3f('0xfa')]&&void 0x0===_0x1a17c8[_0x2c3f('0x6c')]&&(_0x1a17c8[_0x2c3f('0x6c')]=this[_0x2c3f('0x5b')][_0x2c3f('0x18')](_0x1a17c8['id'])[_0x2c3f('0x6c')]),void 0x0!==_0x1a17c8[_0x2c3f('0x6c')]&&void 0x0===_0x1a17c8['fromVersion']&&(_0x1a17c8[_0x2c3f('0xfa')]=this['repository']['getRevision'](_0x1a17c8['id'])[_0x2c3f('0xfa')]);}const _0x3886fa=this[_0x2c3f('0xe3')]['config']['get']('collaboration.channelId');this[_0x2c3f('0x4')]=!0x0,this['_addPendingAction'](),this['adapter'][_0x2c3f('0x38')](_0x17adee,_0x3886fa)[_0x2c3f('0x60')](()=>{this[_0x2c3f('0x4')]=!0x1;})[_0x2c3f('0xde')](_0x33730e=>{if(_0x33730e)for(const _0x3336bc of _0x33730e)this[_0x2c3f('0x92')]({'id':_0x3336bc['id'],'createdAt':_0x3336bc[_0x2c3f('0x75')]});this['_removePendingAction'](),this[_0x2c3f('0xca')]();});}[_0x2c3f('0x52')](_0x429be8,_0x20a435){let _0x493c08=this[_0x2c3f('0xe3')][_0x2c3f('0x102')]['get'](_0x2c3f('0x10')),_0x310a87=this[_0x2c3f('0xe3')][_0x2c3f('0x102')][_0x2c3f('0x11')](_0x2c3f('0x59'));if(void 0x0===_0x493c08){_0x493c08={};for(const _0x4bbef2 of this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')][_0x2c3f('0x91')]())_0x493c08[_0x4bbef2]='';}if(_0x2c3f('0xae')==typeof _0x493c08&&(_0x493c08={'main':_0x493c08}),void 0x0===_0x310a87){_0x310a87={};for(const _0xbea62a of this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')][_0x2c3f('0x91')]())_0x310a87[_0xbea62a]={};}let _0x50c31b=!0x1;const _0x24c58d=Object[_0x2c3f('0xe5')](_0x493c08),_0x10fe0c=Object[_0x2c3f('0xe5')](_0x429be8);for(const _0x1ef2f9 of _0x24c58d){if(_0x493c08[_0x1ef2f9]!==_0x429be8[_0x1ef2f9]&&''!==_0x493c08[_0x1ef2f9][_0x2c3f('0xfe')]()){_0x50c31b=!0x0;break;}if(!_0x211cd6(_0x310a87[_0x1ef2f9],_0x20a435[_0x1ef2f9])&&Object['keys'](_0x310a87[_0x1ef2f9])['length']>0x0){_0x50c31b=!0x0;break;}}_0x50c31b||(_0x50c31b=_0x10fe0c[_0x2c3f('0x62')](_0x215166=>!this[_0x2c3f('0xe3')]['model'][_0x2c3f('0x34')]['getRoot'](_0x215166))),_0x50c31b&&_0x232210(_0x2c3f('0xea'),{'editorData':_0x493c08,'editorRootsAttributes':_0x310a87,'revisionData':_0x429be8,'revisionRootsAttributes':_0x20a435}),this[_0x2c3f('0xe3')][_0x2c3f('0x102')][_0x2c3f('0x1d')](_0x2c3f('0x10'),_0x429be8),this[_0x2c3f('0xe3')]['config']['set'](_0x2c3f('0x59'),_0x20a435);}[_0x2c3f('0x27')](){if(!this[_0x2c3f('0x1a')]){const _0x34d466=this[_0x2c3f('0xe3')][_0x2c3f('0xc7')][_0x2c3f('0x11')](_0x2c3f('0xad'));this[_0x2c3f('0x1a')]=_0x34d466[_0x2c3f('0xf0')](_0xe28fab(this[_0x2c3f('0xe3')][_0x2c3f('0x73')],_0x2c3f('0x45')));}}[_0x2c3f('0x28')](){this[_0x2c3f('0x1a')]&&(this['editor'][_0x2c3f('0xc7')][_0x2c3f('0x11')](_0x2c3f('0xad'))[_0x2c3f('0xa')](this[_0x2c3f('0x1a')]),this[_0x2c3f('0x1a')]=null);}[_0x2c3f('0x69')](_0x56ba2f){const _0x51ba1a=this[_0x2c3f('0x5b')]['getRevisions']();_0x51ba1a[_0x2c3f('0xbb')]();let _0x197233=0x0;for(;_0x197233<_0x51ba1a['length'];){const _0x4ec4cd=_0x51ba1a[_0x197233];if(_0x4ec4cd===this[_0x2c3f('0xe9')]){_0x197233++;continue;}if(_0x4ec4cd['id']===this[_0x2c3f('0x65')])break;const _0x203c37=_0x56ba2f['toVersion']-_0x4ec4cd[_0x2c3f('0x6c')]||_0x56ba2f[_0x2c3f('0xfa')]-_0x4ec4cd[_0x2c3f('0xfa')];if(_0x203c37>0x0)break;if(_0x203c37<0x0)_0x197233++;else{if(!_0x56ba2f[_0x2c3f('0xa7')]&&_0x4ec4cd[_0x2c3f('0xa7')])break;if(_0x4ec4cd[_0x2c3f('0xa7')]||!_0x56ba2f[_0x2c3f('0xa7')]){if(_0x56ba2f[_0x2c3f('0x75')]>_0x4ec4cd[_0x2c3f('0x75')])break;_0x197233++;}else _0x197233++;}}return _0x197233;}[_0x2c3f('0x92')](_0x3a308a){const _0x68bd68=this[_0x2c3f('0x5b')][_0x2c3f('0x18')](_0x3a308a['id']);if(_0x3a308a[_0x2c3f('0x75')]&&(_0x3a308a[_0x2c3f('0x75')]=new Date(_0x3a308a[_0x2c3f('0x75')])),_0x3a308a[_0x2c3f('0x90')]){const _0x5760b5=this['editor']['plugins'][_0x2c3f('0x11')](_0x2c3f('0xc'));_0x3a308a[_0x2c3f('0xc9')]=_0x3a308a[_0x2c3f('0x90')]['map'](_0x1e07b9=>_0x5760b5['getUser'](_0x1e07b9));}_0x68bd68['_update'](_0x3a308a,!0x0);}['buildRevisionData']({revision:_0x19804c=null,from:_0x1c76e1=null,to:_0x4e50da=null}){_0x1c76e1=null!==_0x1c76e1?_0x1c76e1:_0x19804c[_0x2c3f('0xfa')],_0x4e50da=null!==_0x4e50da?_0x4e50da:_0x19804c[_0x2c3f('0x6c')];const _0xc4c38b=this['_revisionDataBuilder'][_0x2c3f('0x24')](_0x1c76e1,_0x4e50da),_0x312cd5={'diffData':_0xc4c38b[_0x2c3f('0x95')],'authorsIds':_0xc4c38b[_0x2c3f('0x90')],'fromVersion':_0x1c76e1,'toVersion':_0x4e50da};if(!_0x19804c||_0x4e50da!==_0x19804c[_0x2c3f('0x6c')]){const _0x202db6=_0x4e50da-0x1,_0x2f9271=this[_0x2c3f('0x49')][_0x2c3f('0xfb')][_0x2c3f('0xd4')](_0x202db6);_0x312cd5['createdAt']=_0x2f9271&&_0x2f9271[_0x2c3f('0x75')]||new Date();}if(this[_0x2c3f('0xa6')]&&_0x1c76e1===this['_loadedStateData']['fromVersion'])for(const _0x42209a of this['_loadedStateData'][_0x2c3f('0xc9')])_0x312cd5[_0x2c3f('0x90')][_0x2c3f('0x2c')](_0x42209a['id'])||_0x312cd5[_0x2c3f('0x90')]['push'](_0x42209a['id']);return _0x312cd5;}['_loadRevisionData'](_0x5ef6aa){if(!_0x5ef6aa||_0x5ef6aa[_0x2c3f('0x95')])return Promise[_0x2c3f('0x16')]();{const _0x8c2299=this['editor'][_0x2c3f('0x102')][_0x2c3f('0x11')](_0x2c3f('0x80'));return this[_0x2c3f('0x7c')][_0x2c3f('0x18')]({'channelId':_0x8c2299,'revisionId':_0x5ef6aa['id']})[_0x2c3f('0xde')](_0x22ba57=>{_0x5ef6aa[_0x2c3f('0x95')]=_0x22ba57['diffData'];});}}[_0x2c3f('0x79')](_0x42496e,_0x25f0e,_0x251664){if(this[_0x2c3f('0x31')][_0x2c3f('0x67')](_0x42496e)){const _0x44df47=this[_0x2c3f('0x31')][_0x2c3f('0x11')](_0x42496e);_0x25f0e=_0x251664?{..._0x44df47,..._0x25f0e}:{..._0x25f0e,..._0x44df47};}this[_0x2c3f('0x31')]['set'](_0x42496e,_0x25f0e);}[_0x2c3f('0xc4')](_0x44a3a2){const _0x4a8c73=this[_0x2c3f('0x5b')][_0x2c3f('0x7a')]();_0x4a8c73['reverse'](),_0x4a8c73[_0x2c3f('0xc8')]();const _0x20f14d=_0x4a8c73[_0x2c3f('0x82')](_0x205639=>_0x205639['toVersion']<=_0x44a3a2)[_0x2c3f('0x6c')];return _0x20f14d<this['_startingVersion']?this['_startingVersion']:_0x20f14d;}[_0x2c3f('0xaa')](_0x21acdd){const _0x129c97=this[_0x2c3f('0x5b')]['getRevision'](this['repository']['length']-0x1);if(_0x129c97)this[_0x2c3f('0x65')]=_0x129c97['id'];else{const _0x461763=!this[_0x2c3f('0xe3')][_0x2c3f('0xba')]['document']['roots'][_0x2c3f('0x82')](_0x14c7f1=>this['editor'][_0x2c3f('0xba')][_0x2c3f('0xd2')](_0x14c7f1)),_0x116f9b=this['editor'][_0x2c3f('0xc7')]['get']('Users')['me']['id'],_0x2838ab=_0xe28fab(this['editor'][_0x2c3f('0x73')],_0x461763?_0x2c3f('0xa4'):'Initial\x20revision');this[_0x2c3f('0x83')]({'from':_0x21acdd,'to':_0x21acdd,'id':this[_0x2c3f('0x65')],'name':_0x2838ab,'creatorId':_0x116f9b});}}[_0x2c3f('0x71')](_0x1c01b8){const _0x489ff3=this[_0x2c3f('0x49')][_0x2c3f('0x8b')]();this[_0x2c3f('0xe9')]=this[_0x2c3f('0x5b')]['getRevision'](_0x489ff3),this['currentRevision']||(this['currentRevision']=this[_0x2c3f('0x83')]({'from':_0x1c01b8,'to':_0x1c01b8,'id':_0x489ff3,'name':'','creatorId':null}));}[_0x2c3f('0x83')]({name:_0x42d206,from:_0x1634ac,to:_0x11d442,creatorId:_0x7fbdc5,id:_0x3a9764}){const _0x6c2c83=this[_0x2c3f('0x2d')]({'from':_0x1634ac,'to':_0x11d442});_0x6c2c83[_0x2c3f('0x58')]=_0x42d206,_0x6c2c83[_0x2c3f('0x3c')]=_0x7fbdc5,_0x6c2c83['id']=_0x3a9764;const _0x3c45f3=this[_0x2c3f('0x1')](_0x6c2c83);return this[_0x2c3f('0x7c')]&&this[_0x2c3f('0x79')](_0x6c2c83['id'],_0x6c2c83,!0x0),_0x3c45f3;}[_0x2c3f('0x84')](){this['editor'][_0x2c3f('0x39')]['for']('dataDowncast')[_0x2c3f('0xb1')]({'model':_0x2c3f('0x4f')});}[_0x2c3f('0x3f')](_0x3dc8e9){return(_0x3dc8e9=_0x3dc8e9[_0x2c3f('0xd1')](_0x242d51=>!_0x242d51[_0x2c3f('0x58')]||_0x2c3f('0x33')!==_0x242d51[_0x2c3f('0x58')]&&_0x2c3f('0x61')!==_0x242d51[_0x2c3f('0x58')]))[_0x2c3f('0x44')](_0x215537=>{_0x2c3f('0xae')!=typeof _0x215537&&(_0x215537[_0x2c3f('0x19')]=this[_0x2c3f('0x3f')](_0x215537[_0x2c3f('0x19')]),_0x215537['attributes']=_0x215537['attributes'][_0x2c3f('0xd1')](_0x5414b8=>!_0x5414b8[0x0][_0x2c3f('0x1b')](_0x2c3f('0x42'))));}),_0x3dc8e9;}}function J(_0x200c04,_0x47d821){const _0x227a9d=_0x47d821[_0x2c3f('0xcc')][_0x2c3f('0xd5')][_0x2c3f('0x34')];if('string'==typeof _0x200c04)return new _0x42498e(_0x227a9d,_0x200c04);{const _0x2f0a7c=_0x200c04[_0x2c3f('0x19')]['map'](_0x43b4bd=>J(_0x43b4bd,_0x47d821));return new(B[_0x200c04['type']]||_0x567810)(_0x227a9d,_0x200c04[_0x2c3f('0x58')],_0x200c04['attributes'],_0x2f0a7c);}}class H{constructor(_0x215b44){this[_0x2c3f('0xe3')]=_0x215b44,this['_savedMetaData']=new Map(),this[_0x2c3f('0x9f')]=-0x1,this[_0x2c3f('0x86')]=-0x1,this[_0x2c3f('0x9')]=new Map(),this[_0x2c3f('0x6b')]=new Map(),this[_0x2c3f('0xf5')]=new Map(),this[_0x2c3f('0x89')]=new Map(),this[_0x2c3f('0x7d')]=new Map(),this[_0x2c3f('0xb5')]=new Map(),this[_0x2c3f('0xc2')]=new Map(),this[_0x2c3f('0xe')]=new Map(),this[_0x2c3f('0xd7')]=new Map(),this[_0x2c3f('0xed')]=new Map(),this[_0x2c3f('0x9e')]=0x1;}[_0x2c3f('0xf2')](_0xeda64d){this[_0x2c3f('0x6a')]=_0xeda64d;const _0x426e94=new Map(),_0xb33f85=new Map(),_0x4181ba=this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')][_0x2c3f('0x8d')]['map'](_0x26a33f=>_0x26a33f[_0x2c3f('0xa0')]);for(const _0x42d5bd of _0x4181ba){const _0x4cc8f4=this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')][_0x2c3f('0xf9')](_0x42d5bd),_0x1f46e4=q(_0x4cc8f4);_0x426e94['set'](_0x42d5bd,_0x1f46e4),_0xb33f85[_0x2c3f('0x1d')](_0x42d5bd,Object['fromEntries'](_0x4cc8f4[_0x2c3f('0x76')]()));}const _0x44df99=Array[_0x2c3f('0x6')](this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x96')])[_0x2c3f('0x57')](_0x46f81b=>[_0x46f81b[_0x2c3f('0x58')],_0x46f81b[_0x2c3f('0xf1')]()]),_0x2f24cc=this[_0x2c3f('0x6a')]['version'];this['_saveMetaData'](_0x2f24cc,_0x426e94,_0x44df99,_0xb33f85),this[_0x2c3f('0x5')]=this[_0x2c3f('0x9e')];const _0x9d9919=new Map(),_0x12b62e=new Map();for(const _0x5944f0 of _0x4181ba){const _0x260699=G(_0x5944f0);_0x9d9919[_0x2c3f('0x1d')](_0x5944f0,_0x260699),_0x12b62e[_0x2c3f('0x1d')](_0x5944f0,{});}this[_0x2c3f('0xc0')](Number[_0x2c3f('0x97')],_0x9d9919,[],_0x12b62e);}['getData'](_0x463bb7,_0x1a4541){if(this[_0x2c3f('0x9f')]===_0x463bb7&&this['_lastTo']<=_0x1a4541)this[_0x2c3f('0xc6')][_0x2c3f('0xa1')]>0x1&&this['_removeMetaData'](this['_lastTo']),this[_0x2c3f('0x4a')](this[_0x2c3f('0x86')],_0x1a4541,!0x0);else{if(!this[_0x2c3f('0xc6')][_0x2c3f('0x67')](_0x463bb7)){const _0x132021=this[_0x2c3f('0x66')](_0x463bb7);this['_calculateMetaData'](_0x132021,_0x463bb7,!0x1);}this[_0x2c3f('0x40')](_0x463bb7,_0x1a4541,!0x0);}return this[_0x2c3f('0x9f')]=_0x463bb7,this[_0x2c3f('0x86')]=_0x1a4541,this['_getState']();}[_0x2c3f('0xce')](_0x30f302){this[_0x2c3f('0xeb')](),this[_0x2c3f('0x9f')]=_0x30f302[_0x2c3f('0xfa')],this[_0x2c3f('0x86')]=_0x30f302[_0x2c3f('0x6c')];for(const _0x348c6b in _0x30f302[_0x2c3f('0x95')]){const _0x49f797=_0x30f302[_0x2c3f('0x95')][_0x348c6b][_0x2c3f('0xb9')],_0x43ea2d=_0x475970(_0x30f302['diffData'][_0x348c6b][_0x2c3f('0x7')])||{},_0x1700b9=this['_makeModelFromViewString'](_0x30f302[_0x2c3f('0x95')][_0x348c6b][_0x2c3f('0x5d')]);_0x1700b9[_0x2c3f('0xa0')]=_0x348c6b,_0x1700b9[_0x2c3f('0x43')]=!_0x49f797||!_0x49f797[_0x2c3f('0x20')],_0x1700b9[_0x2c3f('0x20')]=()=>_0x1700b9['_isAttached'],this[_0x2c3f('0x89')][_0x2c3f('0x1d')](_0x348c6b,_0x1700b9),this[_0x2c3f('0x7d')][_0x2c3f('0x1d')](_0x348c6b,_0x43ea2d),_0x49f797&&this[_0x2c3f('0xed')][_0x2c3f('0x1d')](_0x348c6b,_0x49f797);const _0x1604e4=this['_makeIdsRoot'](_0x1700b9);this[_0x2c3f('0xc2')][_0x2c3f('0x1d')](_0x348c6b,_0x1604e4);for(const [_0x440996,_0x5dd277]of _0x1700b9[_0x2c3f('0x96')]){if(!_0x440996[_0x2c3f('0x1b')](_0x2c3f('0xcd')))continue;const _0x4356f3=_0x440996[_0x2c3f('0x48')](':')[0x2];for(const _0x30bfe5 of _0x5dd277[_0x2c3f('0x5a')]({'singleCharacters':!0x0})){const _0x570675=this['_getVidAttributeName'](_0x30bfe5),_0x3b36bb=_0x2c3f('0x23')==_0x30bfe5[_0x2c3f('0x17')]?_0x30bfe5[_0x2c3f('0x2f')][_0x2c3f('0x1c')][_0x2c3f('0xee')](0x0,-0x1):_0x30bfe5[_0x2c3f('0x2f')][_0x2c3f('0x1c')],_0x24c844=_0x1604e4[_0x2c3f('0xd9')](_0x3b36bb)[_0x2c3f('0xa9')](_0x570675);this[_0x2c3f('0xe')]['set'](_0x24c844,{'userId':_0x4356f3});}}}this[_0x2c3f('0x5')]=this[_0x2c3f('0x9e')];const _0x433437=[...Array(this[_0x2c3f('0x9e')])[_0x2c3f('0xe5')]()][_0x2c3f('0xee')](0x1)[_0x2c3f('0xd1')](_0x1a5e26=>!this[_0x2c3f('0xe')][_0x2c3f('0x67')](_0x1a5e26));let _0x587ab0=0x0;const _0x3932df=new Map();for(const _0x3a463a in _0x30f302[_0x2c3f('0x95')]){const _0x4085f5=_0x30f302['diffData'][_0x3a463a]['attachChange'],_0x3d6b96=_0x475970(_0x30f302[_0x2c3f('0x95')][_0x3a463a][_0x2c3f('0xf4')])||{},_0x473782=this[_0x2c3f('0x81')](_0x30f302[_0x2c3f('0x95')][_0x3a463a]['insertions']);_0x473782['rootName']=_0x3a463a,_0x473782[_0x2c3f('0x43')]=!_0x4085f5||_0x4085f5['isAttached'],_0x473782['isAttached']=()=>_0x473782[_0x2c3f('0x43')],this[_0x2c3f('0x6b')][_0x2c3f('0x1d')](_0x3a463a,_0x473782),this[_0x2c3f('0xf5')][_0x2c3f('0x1d')](_0x3a463a,_0x3d6b96);const _0x47a4aa=this[_0x2c3f('0xb0')](_0x473782,Number[_0x2c3f('0x97')]);this[_0x2c3f('0xb5')][_0x2c3f('0x1d')](_0x3a463a,_0x47a4aa),_0x3932df['set'](_0x3a463a,_0x473782[_0x2c3f('0x20')]()?_0x3d6b96:{});for(const [_0x460c91,_0xc928c]of _0x473782[_0x2c3f('0x96')]){if(!_0x460c91[_0x2c3f('0x1b')](_0x2c3f('0xcd')))continue;const _0x2e158c=_0x460c91[_0x2c3f('0x48')](':')[0x2];for(const _0x239b51 of _0xc928c[_0x2c3f('0x5a')]({'singleCharacters':!0x0})){const _0xdb73e=this[_0x2c3f('0x56')](_0x239b51),_0xcb0e20=this[_0x2c3f('0x9e')]++,_0x13d091=_0x2c3f('0x23')==_0x239b51[_0x2c3f('0x17')]?_0x239b51['previousPosition'][_0x2c3f('0x1c')]['slice'](0x0,-0x1):_0x239b51[_0x2c3f('0x2f')][_0x2c3f('0x1c')];_0x47a4aa[_0x2c3f('0xd9')](_0x13d091)[_0x2c3f('0xf6')](_0xdb73e,_0xcb0e20),this[_0x2c3f('0xe')]['set'](_0xcb0e20,{'userId':_0x2e158c});}}for(const _0x40f101 of this['editor'][_0x2c3f('0xba')][_0x2c3f('0xb7')](_0x473782)[_0x2c3f('0x5a')]({'singleCharacters':!0x0})){const _0x197af0=this['_getVidAttributeName'](_0x40f101),_0xe66892=_0x2c3f('0x23')==_0x40f101['type']?_0x40f101[_0x2c3f('0x2f')][_0x2c3f('0x1c')][_0x2c3f('0xee')](0x0,-0x1):_0x40f101[_0x2c3f('0x2f')][_0x2c3f('0x1c')],_0x247980=_0x47a4aa[_0x2c3f('0xd9')](_0xe66892);_0x247980[_0x2c3f('0xa9')](_0x197af0)>0x0||_0x247980[_0x2c3f('0xf6')](_0x197af0,_0x433437[_0x587ab0++]);}for(const [_0xd116ce,_0x2115de]of _0x473782[_0x2c3f('0x96')])_0xd116ce[_0x2c3f('0x1b')](_0x2c3f('0xcd'))||this['_markers']['set'](_0xd116ce,_0x2115de);}const _0x502557=G(_0x2c3f('0x85'));this['_baseRoots'][_0x2c3f('0x1d')]('$graveyard',_0x502557),this[_0x2c3f('0xc2')][_0x2c3f('0x1d')](_0x2c3f('0x85'),this[_0x2c3f('0xb0')](_0x502557,0x1));const _0x283663=G(_0x2c3f('0x85'));this[_0x2c3f('0x6b')][_0x2c3f('0x1d')](_0x2c3f('0x85'),_0x283663),this[_0x2c3f('0xb5')]['set']('$graveyard',this[_0x2c3f('0xb0')](_0x283663,0x1));const _0x77ac30=Array[_0x2c3f('0x6')](this['_diffRoots'])[_0x2c3f('0x57')](([_0x1e43f1,_0x32d2f7])=>[_0x1e43f1,q(_0x32d2f7)]);this['_saveMetaData'](this[_0x2c3f('0x86')],_0x77ac30,this[_0x2c3f('0x9')],_0x3932df);}['_makeModelFromViewString'](_0x17cca2){const _0x362a65=JSON[_0x2c3f('0x2e')](_0x17cca2),_0x45d8a6=this[_0x2c3f('0xe3')][_0x2c3f('0xcc')]['view'][_0x2c3f('0x34')],_0x24e55d=new _0x92e906(_0x45d8a6,_0x362a65[_0x2c3f('0x57')](_0x47f698=>J(_0x47f698,this[_0x2c3f('0xe3')])));return this[_0x2c3f('0xe3')][_0x2c3f('0x4d')][_0x2c3f('0xe4')](_0x24e55d);}['_saveMetaData'](_0x27787a,_0x23800f,_0x27e523,_0x1e534a){const _0x1c9cb1=new Map(_0x23800f),_0x3b4522=new Map(_0x475970(_0x1e534a)),_0x3d8621=new Map();for(const [_0xbc9d45,_0x3f30f2]of _0x27e523)_0x3d8621['set'](_0xbc9d45,{'start':_0x3f30f2[_0x2c3f('0x94')][_0x2c3f('0x99')](),'end':_0x3f30f2['end'][_0x2c3f('0x99')](),'rootName':_0x3f30f2[_0x2c3f('0x22')][_0x2c3f('0xa0')]});this[_0x2c3f('0xc6')][_0x2c3f('0x1d')](_0x27787a,{'roots':_0x1c9cb1,'markers':_0x3d8621,'rootsAttributes':_0x3b4522});}[_0x2c3f('0xa5')](_0x35b33d){this[_0x2c3f('0xc6')]['delete'](_0x35b33d);}[_0x2c3f('0x4b')](){this[_0x2c3f('0xeb')](),this[_0x2c3f('0x9f')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x2c3f('0x101')](),this['init'](this[_0x2c3f('0x6a')]);}[_0x2c3f('0xeb')](){this[_0x2c3f('0xe')]['clear'](),this['_touchedMarkers'][_0x2c3f('0x101')](),this[_0x2c3f('0xed')][_0x2c3f('0x101')](),this[_0x2c3f('0x6b')][_0x2c3f('0x101')](),this[_0x2c3f('0xf5')][_0x2c3f('0x101')](),this[_0x2c3f('0x89')]['clear'](),this[_0x2c3f('0x7d')][_0x2c3f('0x101')](),this[_0x2c3f('0xb5')][_0x2c3f('0x101')](),this[_0x2c3f('0xc2')]['clear'](),this[_0x2c3f('0x9')][_0x2c3f('0x101')](),this[_0x2c3f('0x9e')]=0x1,this[_0x2c3f('0x5')]=this['_revisionId'];}[_0x2c3f('0xb0')](_0x49c38e,_0x8597db=null){let _0x1015cf=null;_0x49c38e['is']('documentFragment')||(_0x1015cf=new _0x450319(_0x49c38e['name'],{'vid_start':null===_0x8597db?this[_0x2c3f('0x9e')]++:_0x8597db++}));const _0x2dfeb1=[];for(const _0x4fd3ca of _0x49c38e[_0x2c3f('0xac')]())if(_0x4fd3ca['is'](_0x2c3f('0x3e'))){_0x2dfeb1['push'](this[_0x2c3f('0xb0')](_0x4fd3ca,_0x8597db));const _0x34d6e4=_0x2dfeb1[_0x2dfeb1[_0x2c3f('0x14')]-0x1];null!==_0x8597db&&(_0x8597db=_0x34d6e4['is']('element',_0x2c3f('0xdf'))?_0x34d6e4[_0x2c3f('0xa9')](_0x2c3f('0xc3'))+0x1:_0x34d6e4['getAttribute'](_0x2c3f('0xd8'))+0x1);}else for(let _0x4f348c=0x0;_0x4f348c<_0x4fd3ca['offsetSize'];_0x4f348c++)_0x2dfeb1[_0x2c3f('0x3a')](new _0x450319('$text',{'vid':null===_0x8597db?this[_0x2c3f('0x9e')]++:_0x8597db++}));if(_0x49c38e['is']('documentFragment')){const _0x4995c0=G(_0x49c38e[_0x2c3f('0xa0')]);return _0x4995c0[_0x2c3f('0x8c')](0x0,_0x2dfeb1),_0x4995c0;}return _0x1015cf[_0x2c3f('0xf6')](_0x2c3f('0xd8'),null===_0x8597db?this['_revisionId']++:_0x8597db++),_0x1015cf[_0x2c3f('0x8c')](0x0,_0x2dfeb1),_0x1015cf;}[_0x2c3f('0x40')](_0x230679,_0x3ebc03,_0x32320d){this[_0x2c3f('0xeb')]();const {roots:_0x19f7fc,markers:_0x488af9,rootsAttributes:_0x356e16}=this[_0x2c3f('0xc6')][_0x2c3f('0x11')](_0x230679);this[_0x2c3f('0x89')]=new Map(_0x19f7fc),this[_0x2c3f('0x7d')]=new Map(_0x475970(_0x356e16));for(const [_0xf89ecd,_0x3fa34e]of this[_0x2c3f('0x89')])if('$graveyard'!==_0xf89ecd&&(this[_0x2c3f('0x6b')][_0x2c3f('0x1d')](_0xf89ecd,q(_0x3fa34e)),this[_0x2c3f('0xf5')]=new Map(_0x475970(_0x356e16)),_0x32320d)){const _0x17de59=this[_0x2c3f('0x9e')];this[_0x2c3f('0xb5')][_0x2c3f('0x1d')](_0xf89ecd,this[_0x2c3f('0xb0')](_0x3fa34e)),this['_baseIdsRoots'][_0x2c3f('0x1d')](_0xf89ecd,this[_0x2c3f('0xb0')](_0x3fa34e,_0x17de59));}this[_0x2c3f('0x5')]=this[_0x2c3f('0x9e')],this[_0x2c3f('0x6b')][_0x2c3f('0x1d')](_0x2c3f('0x85'),q(this[_0x2c3f('0x89')][_0x2c3f('0x11')](_0x2c3f('0x85')))),_0x32320d&&this['_idsRoots'][_0x2c3f('0x1d')]('$graveyard',this[_0x2c3f('0xb0')](this[_0x2c3f('0x89')][_0x2c3f('0x11')](_0x2c3f('0x85'))));for(const [_0x23d288,_0x207c6f]of _0x488af9){const _0x1060e5=this[_0x2c3f('0x89')]['get'](_0x207c6f['rootName']),_0x1685e8=this[_0x2c3f('0x6b')][_0x2c3f('0x11')](_0x207c6f[_0x2c3f('0xa0')]),_0x1125df=new _0x169f5a(this[_0x2c3f('0x1e')](_0x207c6f[_0x2c3f('0x94')],_0x1060e5),this['_fixPosition'](_0x207c6f['end'],_0x1060e5)),_0x41432b=this['_fixRange'](_0x1125df,_0x1685e8);_0x1060e5['markers'][_0x2c3f('0x1d')](_0x23d288,_0x1125df),this['_markers'][_0x2c3f('0x1d')](_0x23d288,_0x41432b);}this[_0x2c3f('0x4a')](_0x230679,_0x3ebc03,_0x32320d);}[_0x2c3f('0x4a')](_0x1bec5e,_0x145e7c,_0x242a29){for(const _0x17762c of this['source']['getOperations'](_0x1bec5e,_0x145e7c))this['_handleOperation'](_0x17762c,_0x242a29);for(const _0x41a89e of this['_diffRoots'][_0x2c3f('0x5f')]())_0x41a89e[_0x2c3f('0x96')]['clear']();for(const [_0x29db49,_0x2569ca]of this['_markers']){this[_0x2c3f('0x6b')][_0x2c3f('0x11')](_0x2569ca['root'][_0x2c3f('0xa0')])['markers'][_0x2c3f('0x1d')](_0x29db49,_0x2569ca[_0x2c3f('0x99')]());}const _0x311ecb=new Map(),_0xaed826=new Map();for(const [_0x128641,_0x4345e8]of this['_diffRoots'])_0x311ecb[_0x2c3f('0x1d')](_0x128641,q(_0x4345e8)),_0xaed826[_0x2c3f('0x1d')](_0x128641,this['_diffRootsAttributes'][_0x2c3f('0x11')](_0x128641));this[_0x2c3f('0xc0')](_0x145e7c,_0x311ecb,this['_markers'],_0xaed826);}[_0x2c3f('0x66')](_0x45e82b){const _0x346021=Array[_0x2c3f('0x6')](this[_0x2c3f('0xc6')][_0x2c3f('0xe5')]());_0x346021['sort']((_0x4abc15,_0x2ef5ce)=>_0x4abc15-_0x2ef5ce),_0x346021[_0x2c3f('0xbb')]();for(const _0x33baca of _0x346021)if(_0x33baca<_0x45e82b)return _0x33baca;return Number[_0x2c3f('0x97')];}[_0x2c3f('0xfd')](_0x592cab,_0x537d88){const _0x4cf729=Array[_0x2c3f('0x6')](_0x537d88['markers'])[_0x2c3f('0x57')](([_0x818fa5,_0x1bc830])=>[_0x818fa5,this[_0x2c3f('0x5e')](_0x1bc830,_0x592cab)]);_0x592cab[_0x2c3f('0x96')]=new Map(_0x4cf729);}['_transformMarkers'](_0x3f3ede){for(const _0x5a4e65 of this[_0x2c3f('0x9')]['values']()){const _0x556d9e=_0x5a4e65['getTransformedByOperation'](_0x3f3ede),_0x2a1023=_0x169f5a[_0x2c3f('0x93')](_0x556d9e);_0x5a4e65['start']=_0x2a1023[_0x2c3f('0x94')],_0x5a4e65['end']=_0x2a1023[_0x2c3f('0x2')];}}[_0x2c3f('0x77')](_0x1a2c2d,_0xcc3acb){if(_0x2c3f('0xb2')==_0x1a2c2d['type']||_0x2c3f('0xd3')==_0x1a2c2d[_0x2c3f('0x17')])return void this[_0x2c3f('0xf8')](_0x1a2c2d,_0xcc3acb);if(_0x2c3f('0xdc')==_0x1a2c2d['type']){const _0x853d54=_0x1a2c2d[_0x2c3f('0x64')][_0x2c3f('0x22')][_0x2c3f('0xa0')];this[_0x2c3f('0x6b')][_0x2c3f('0x67')](_0x853d54)||(this[_0x2c3f('0x6b')][_0x2c3f('0x1d')](_0x853d54,G(_0x853d54,!0x0)),this['_diffRootsAttributes'][_0x2c3f('0x1d')](_0x853d54,{}),_0xcc3acb&&this[_0x2c3f('0xb5')][_0x2c3f('0x1d')](_0x853d54,G(_0x853d54,!0x0)));}else{if(_0x2c3f('0xe0')==_0x1a2c2d[_0x2c3f('0x17')]||_0x2c3f('0xd')==_0x1a2c2d[_0x2c3f('0x17')]||'changeRootAttribute'==_0x1a2c2d[_0x2c3f('0x17')])return void this[_0x2c3f('0xab')](_0x1a2c2d);}const _0x5628b4=this['_cloneOperation'](_0x1a2c2d,this[_0x2c3f('0x6b')]);if(_0x2c3f('0x6d')!==_0x1a2c2d[_0x2c3f('0x17')]&&(_0x5628b4[_0x2c3f('0xc5')](),this['_transformMarkers'](_0x5628b4)),_0xcc3acb)switch(_0x5628b4[_0x2c3f('0x17')]){case _0x2c3f('0xdc'):this[_0x2c3f('0xfc')](_0x1a2c2d);break;case _0x2c3f('0xe1'):case _0x2c3f('0xa'):case _0x2c3f('0x21'):this['_handleMoveOperation'](_0x1a2c2d);break;case'merge':this[_0x2c3f('0x63')](_0x1a2c2d);break;case _0x2c3f('0x48'):this[_0x2c3f('0x8e')](_0x1a2c2d);break;case _0x2c3f('0x6d'):this[_0x2c3f('0x12')](_0x1a2c2d);}}[_0x2c3f('0xf3')](_0x21be9d,_0x1e4005){const _0x3455ff=_0x21be9d[_0x2c3f('0x99')]();return _0x3455ff['_authorId']=_0x21be9d[_0x2c3f('0x7b')],this[_0x2c3f('0xff')](_0x3455ff,_0x1e4005),_0x3455ff;}['_getBaseVids'](_0x56039c){return _0x56039c['map'](_0x43547b=>{const _0x4d7143=this[_0x2c3f('0x56')](_0x43547b);return Number(_0x43547b[_0x2c3f('0xe8')][_0x2c3f('0xa9')](_0x4d7143));});}[_0x2c3f('0x4c')](_0x5f3ef8,_0x219808){if(_0x5f3ef8['is']('element',_0x2c3f('0xdf')))_0x219808[_0x2c3f('0x3a')]({'item':_0x5f3ef8,'type':'text'});else{_0x5f3ef8['is']('element')&&_0x219808[_0x2c3f('0x3a')]({'item':_0x5f3ef8,'type':_0x2c3f('0xe2')});for(const _0xbaf35 of _0x5f3ef8[_0x2c3f('0xac')]())this[_0x2c3f('0x4c')](_0xbaf35,_0x219808);_0x5f3ef8['is']('element')&&_0x219808[_0x2c3f('0x3a')]({'item':_0x5f3ef8,'type':_0x2c3f('0x23')});}return _0x219808;}[_0x2c3f('0x0')](){const _0x39e95b=new Map(this[_0x2c3f('0xe')]),_0x5d34dd=new Map(_0x39e95b),_0x1a9ef4=new Map(),_0x2ded81={'insertions':{},'deletions':{}},_0x38015a={'insertions':{},'deletions':{}},_0xf61f96=new Map(),_0x24b5b6=new Set([...this[_0x2c3f('0x89')]['keys'](),...this[_0x2c3f('0x6b')][_0x2c3f('0xe5')]()]);_0x24b5b6[_0x2c3f('0xb3')]('$graveyard');for(const _0x4f46fd of _0x24b5b6){const _0x481df5=this['_diffRoots'][_0x2c3f('0x11')](_0x4f46fd)||G(_0x4f46fd,!0x1),_0x8c78b9=this[_0x2c3f('0x89')][_0x2c3f('0x11')](_0x4f46fd)||G(_0x4f46fd,!0x1);_0x481df5[_0x2c3f('0x20')]()||_0x8c78b9['isAttached']()?(_0x2ded81[_0x2c3f('0x9b')][_0x4f46fd]=q(_0x481df5),_0x2ded81[_0x2c3f('0x5d')][_0x4f46fd]=q(_0x8c78b9),this[_0x2c3f('0xfd')](_0x2ded81[_0x2c3f('0x5d')][_0x4f46fd],_0x8c78b9),this[_0x2c3f('0xfd')](_0x2ded81[_0x2c3f('0x9b')][_0x4f46fd],_0x481df5),_0x38015a[_0x2c3f('0x9b')][_0x4f46fd]=this[_0x2c3f('0x4c')](this[_0x2c3f('0xb5')]['get'](_0x4f46fd),[]),_0x38015a[_0x2c3f('0x5d')][_0x4f46fd]=this[_0x2c3f('0x4c')](this['_baseIdsRoots']['get'](_0x4f46fd)||G(_0x4f46fd,!0x1),[])):_0x24b5b6[_0x2c3f('0xb3')](_0x4f46fd);}for(const _0x841a7b of _0x24b5b6){const _0x1a8d2d=_0x38015a[_0x2c3f('0x9b')][_0x841a7b];for(const _0x1fe347 of _0x1a8d2d){const _0x59f7fa=this[_0x2c3f('0x56')](_0x1fe347),_0x1880b8=_0x1fe347[_0x2c3f('0xe8')]['getAttribute'](_0x59f7fa);_0x5d34dd[_0x2c3f('0xb3')](_0x1880b8),_0x1880b8>=this[_0x2c3f('0x5')]&&_0x1a9ef4['set'](_0x1880b8,_0x39e95b[_0x2c3f('0x11')](_0x1880b8));}}for(const _0x6c61ba of _0x24b5b6){const _0x33255b=_0x38015a[_0x2c3f('0x9b')][_0x6c61ba],_0x334ae4=this[_0x2c3f('0x5c')](_0x38015a[_0x2c3f('0x5d')][_0x6c61ba]);let _0x11ba36=0x0;for(const _0x508efb of _0x33255b){const _0x2b5984=this[_0x2c3f('0x56')](_0x508efb),_0x117566=_0x508efb['item'][_0x2c3f('0xa9')](_0x2b5984);if(!_0x1a9ef4['has'](_0x117566)&&!_0xf61f96[_0x2c3f('0x67')](_0x117566)){if(_0x5d34dd[_0x2c3f('0x67')](_0x117566))_0x11ba36++;else{if(_0x117566!=_0x334ae4[_0x11ba36]){const _0x3e57ac=_0x39e95b[_0x2c3f('0x11')](_0x117566)||_0x39e95b[_0x2c3f('0x11')](_0x334ae4[_0x11ba36]);for(;_0x117566!=_0x334ae4[_0x11ba36];)_0x5d34dd[_0x2c3f('0x67')](_0x334ae4[_0x11ba36])||(_0xf61f96[_0x2c3f('0x1d')](_0x334ae4[_0x11ba36],_0x3e57ac),_0x39e95b['set'](_0x334ae4[_0x11ba36],_0x3e57ac)),_0x11ba36++;}_0x11ba36++;}}}}for(const _0x3f7c3f of _0x24b5b6){const _0x2d7267=_0x38015a[_0x2c3f('0x9b')][_0x3f7c3f];for(const _0x1723dc of _0x2d7267){const _0x1c82a1=this['_getVidAttributeName'](_0x1723dc),_0x5d35dd=_0x1723dc[_0x2c3f('0xe8')]['getAttribute'](_0x1c82a1);if(_0xf61f96['has'](_0x5d35dd)){const _0x5ac703=_0xf61f96[_0x2c3f('0x11')](_0x5d35dd);_0x5d34dd[_0x2c3f('0x67')](_0x5d35dd)||_0x5d34dd['set'](_0x5d35dd,{..._0x5ac703}),_0x1a9ef4[_0x2c3f('0x1d')](_0x5d35dd,{..._0x5ac703});}}}for(const _0x451da2 of _0x5d34dd[_0x2c3f('0xe5')]())_0x451da2>=this[_0x2c3f('0x5')]&&_0x5d34dd['delete'](_0x451da2);const _0xa3ecf0=new Map();for(const _0x460327 of _0x24b5b6){let _0x520d35=_0x38015a[_0x2c3f('0x9b')][_0x460327];for(const _0x3b9213 of _0x520d35)if(_0x3b9213[_0x2c3f('0xe8')]['is'](_0x2c3f('0x3e'),'tableCell')){const _0x3fb4fb=this[_0x2c3f('0x56')](_0x3b9213),_0x449eeb=_0x3b9213[_0x2c3f('0xe8')]['getAttribute'](_0x3fb4fb);if(_0x1a9ef4[_0x2c3f('0x67')](_0x449eeb)){const _0x443df0=_0x3b9213[_0x2c3f('0xe8')][_0x2c3f('0x26')][_0x2c3f('0x26')][_0x2c3f('0xa9')](_0x2c3f('0x8f')),_0x179b96=_0xa3ecf0[_0x2c3f('0x11')](_0x443df0)||new Set();_0x179b96[_0x2c3f('0xf0')](_0x1a9ef4[_0x2c3f('0x11')](_0x449eeb)[_0x2c3f('0xbf')]),_0xa3ecf0[_0x2c3f('0x1d')](_0x443df0,_0x179b96);}}_0x520d35=_0x38015a[_0x2c3f('0x5d')][_0x460327];for(const _0x4e24ae of _0x520d35)if(_0x4e24ae[_0x2c3f('0xe8')]['is'](_0x2c3f('0x3e'),_0x2c3f('0xa2'))){const _0x18c0ac=this['_getVidAttributeName'](_0x4e24ae),_0x26234d=_0x4e24ae[_0x2c3f('0xe8')][_0x2c3f('0xa9')](_0x18c0ac);if(_0x5d34dd[_0x2c3f('0x67')](_0x26234d)){const _0x2f0e00=_0x4e24ae['item'][_0x2c3f('0x26')][_0x2c3f('0x26')][_0x2c3f('0xa9')]('vid_start'),_0x571e57=_0xa3ecf0['get'](_0x2f0e00)||new Set();_0x571e57['add'](_0x5d34dd['get'](_0x26234d)[_0x2c3f('0xbf')]),_0xa3ecf0[_0x2c3f('0x1d')](_0x2f0e00,_0x571e57);}}for(const _0xc7a3 of _0xa3ecf0[_0x2c3f('0xe5')]())(_0x1a9ef4[_0x2c3f('0x67')](_0xc7a3)||_0x5d34dd['has'](_0xc7a3))&&_0xa3ecf0[_0x2c3f('0xb3')](_0xc7a3);}for(const _0x206ab0 of _0x24b5b6){const _0x353d2b=_0x38015a[_0x2c3f('0x9b')][_0x206ab0];let _0x20236f=null,_0x389561=null;for(const _0x31af14 of _0x353d2b){const _0x3f0863=this[_0x2c3f('0x56')](_0x31af14),_0x581ccb=_0x31af14['item'][_0x2c3f('0xa9')](_0x3f0863),_0x4286fa=_0xa3ecf0[_0x2c3f('0x11')](_0x581ccb);_0x4286fa&&_0x2c3f('0xe2')==_0x31af14[_0x2c3f('0x17')]&&(_0x20236f=Array[_0x2c3f('0x6')](_0x4286fa)[0x0],_0x389561=_0x31af14['item'][_0x2c3f('0xa9')]('vid_end')),_0x20236f&&(_0x5d34dd[_0x2c3f('0x1d')](_0x581ccb,{'userId':_0x20236f}),_0x1a9ef4[_0x2c3f('0x1d')](_0x581ccb,{'userId':_0x20236f})),_0x581ccb==_0x389561&&(_0x20236f=null,_0x389561=null);}}const _0x389900={},_0x2587e0=new Set();for(const _0x5427c8 of _0x24b5b6){const _0x2d01ce=_0x2ded81[_0x2c3f('0x5d')][_0x5427c8],_0x21489f=_0x2ded81['insertions'][_0x5427c8];for(const {userId:_0x2e4d08}of this[_0x2c3f('0xd7')]['values']())null!==_0x2e4d08&&_0x2587e0['add'](_0x2e4d08);for(const {userId:_0x48faa1}of this[_0x2c3f('0xed')][_0x2c3f('0x5f')]())null!==_0x48faa1&&_0x2587e0['add'](_0x48faa1);this[_0x2c3f('0x1f')](_0x21489f,_0x38015a[_0x2c3f('0x9b')][_0x5427c8],_0x1a9ef4,_0x2c3f('0x4e'),_0x2587e0),this[_0x2c3f('0x1f')](_0x2d01ce,_0x38015a['deletions'][_0x5427c8],_0x5d34dd,_0x2c3f('0xb'),_0x2587e0),_0x389900[_0x5427c8]={'insertions':this[_0x2c3f('0xbc')](_0x21489f),'deletions':this['_prepareViewToSave'](_0x2d01ce),'attachChange':this[_0x2c3f('0xed')]['get'](_0x5427c8)||null,'attributesBefore':_0x475970(this[_0x2c3f('0x7d')]['get'](_0x5427c8))||{},'attributesAfter':_0x475970(this[_0x2c3f('0xf5')][_0x2c3f('0x11')](_0x5427c8))};}return{'diffData':_0x389900,'authorsIds':Array[_0x2c3f('0x6')](_0x2587e0)};}[_0x2c3f('0x78')](_0x7de61f){for(const [,_0x1f6b7f]of _0x7de61f[_0x2c3f('0x96')]){const _0x238c7a=_0x1f6b7f['start']['getAncestors']()['filter'](_0x28962b=>_0x2c3f('0xa2')==_0x28962b[_0x2c3f('0x58')]);for(const _0xe4e67a of _0x238c7a)0x1==_0xe4e67a['childCount']&&_0xe4e67a['getChild'](0x0)['is'](_0x2c3f('0x3e'),'paragraph')&&_0xe4e67a['getChild'](0x0)[_0x2c3f('0xf6')](_0x2c3f('0xcb'),!0x0);}}[_0x2c3f('0xbc')](_0x4b7ac1){this['_processRootBeforeSave'](_0x4b7ac1);const _0x31f282=this[_0x2c3f('0xe3')]['data']['toView'](_0x4b7ac1,{}),_0x35c619=Array[_0x2c3f('0x6')](_0x31f282[_0x2c3f('0xac')]())['map'](_0x5f4f3d=>this[_0x2c3f('0x7f')](_0x5f4f3d));return JSON[_0x2c3f('0xbd')](_0x35c619);}[_0x2c3f('0x7f')](_0x258f5d){if(_0x258f5d['is'](_0x2c3f('0xdf')))return _0x258f5d[_0x2c3f('0x4d')];{const _0x4e2a5e=_0x258f5d;return{'type':Object[_0x2c3f('0xe5')](B)[_0x2c3f('0x82')](_0x2bfb6d=>_0x258f5d instanceof B[_0x2bfb6d]),'name':_0x4e2a5e[_0x2c3f('0x58')],'attributes':Array['from'](_0x4e2a5e[_0x2c3f('0x76')]()),'children':Array['from'](_0x4e2a5e[_0x2c3f('0xac')]())[_0x2c3f('0x57')](_0x1176fd=>this[_0x2c3f('0x7f')](_0x1176fd))};}}['_markChanges'](_0x3a211c,_0x6a5e8a,_0x5e7e9c,_0x3642c3,_0x56ab71){let _0x15abe9=null,_0x17dfdd=null,_0x1ac2e4=0x0;const _0x3c7c43=this[_0x2c3f('0xe3')]['model'];for(let _0x591680=0x0;_0x591680<_0x6a5e8a[_0x2c3f('0x14')];_0x591680++){const _0x35e5aa=this[_0x2c3f('0x56')](_0x6a5e8a[_0x591680]),_0x2d56a6=_0x6a5e8a[_0x591680][_0x2c3f('0xe8')][_0x2c3f('0xa9')](_0x35e5aa),_0x5b2d66=_0x5e7e9c[_0x2c3f('0x11')](_0x2d56a6),_0xcf4131=_0x591680==_0x6a5e8a[_0x2c3f('0x14')]-0x1;(!_0x15abe9&&_0x5b2d66&&(_0x15abe9=_0x5b2d66,_0x17dfdd=_0x6a5e8a[_0x591680]),_0x15abe9&&(!_0x5b2d66||_0x5b2d66[_0x2c3f('0xbf')]!=_0x15abe9[_0x2c3f('0xbf')]))&&(_0x3e367e(_0x5b2d66,L(_0x17dfdd,_0x3a211c,_0x3c7c43),L(_0x6a5e8a[_0x591680],_0x3a211c,_0x3c7c43)),_0x15abe9=_0x5b2d66||null,_0x17dfdd=_0x5b2d66?_0x6a5e8a[_0x591680]:null),_0x15abe9&&_0xcf4131&&_0x3e367e(_0x5b2d66,L(_0x17dfdd,_0x3a211c,_0x3c7c43),W(_0x6a5e8a[_0x591680],_0x3a211c,_0x3c7c43));}function _0x3e367e(_0xd97639,_0x22fdb8,_0x472e0a){const _0x352743=_0x15abe9[_0x2c3f('0xbf')],_0x3fb939=_0x2c3f('0xcd')+_0x3642c3+':'+_0x352743+':'+_0x1ac2e4++,_0x3dc591=_0x3c7c43[_0x2c3f('0xdb')](_0x22fdb8,_0x472e0a);_0x3a211c[_0x2c3f('0x96')]['set'](_0x3fb939,_0x3dc591),null!==_0x352743&&_0x56ab71[_0x2c3f('0xf0')](_0x352743);}}['_getVidAttributeName'](_0x36efbb){switch(_0x36efbb['type']){case _0x2c3f('0xe2'):return'vid_start';case'elementEnd':return _0x2c3f('0xd8');default:return _0x2c3f('0xc3');}}[_0x2c3f('0xff')](_0x536d59,_0x108153){_0x536d59[_0x2c3f('0x36')]=null;for(const _0x57e701 in _0x536d59){const _0x54b2d3=_0x536d59[_0x57e701];if(_0x54b2d3 instanceof _0x14de34){const _0x4f60e1=_0x108153[_0x2c3f('0x11')](_0x54b2d3[_0x2c3f('0x22')][_0x2c3f('0xa0')]);_0x536d59[_0x57e701]=this['_fixPosition'](_0x54b2d3,_0x4f60e1);}if(_0x54b2d3 instanceof _0x169f5a){const _0x241728=_0x108153['get'](_0x54b2d3[_0x2c3f('0x22')]['rootName']);_0x536d59[_0x57e701]=this[_0x2c3f('0x5e')](_0x54b2d3,_0x241728);}_0x2c3f('0x22')===_0x57e701&&(_0x536d59['root']=_0x108153[_0x2c3f('0x11')](_0x536d59[_0x2c3f('0x22')][_0x2c3f('0xa0')]));}}[_0x2c3f('0x5e')](_0x595957,_0x36b8c6){return this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0xdb')](this[_0x2c3f('0x1e')](_0x595957[_0x2c3f('0x94')],_0x36b8c6),this[_0x2c3f('0x1e')](_0x595957[_0x2c3f('0x2')],_0x36b8c6));}[_0x2c3f('0x1e')](_0x2a7c11,_0x44884a){return this[_0x2c3f('0xe3')]['model'][_0x2c3f('0x3')](_0x44884a,_0x2a7c11[_0x2c3f('0x1c')],_0x2a7c11[_0x2c3f('0x51')]);}[_0x2c3f('0xfc')](_0xda5ce6){const _0x51144b=this[_0x2c3f('0xb5')][_0x2c3f('0x11')](_0xda5ce6['position'][_0x2c3f('0x22')]['rootName']),_0x37551f=this[_0x2c3f('0x1e')](_0xda5ce6['position'],_0x51144b),_0x607b7b=null===_0xda5ce6['_authorId']?null:_0xda5ce6[_0x2c3f('0x7b')]||this['editor']['plugins']['get']('Users')['me']['id'],_0x29e384=_0x37551f[_0x2c3f('0x26')],_0x4e267f=this[_0x2c3f('0x9e')],_0x367906=[];for(const _0x3250ab of _0xda5ce6['nodes'])if(_0x3250ab['is'](_0x2c3f('0x3e')))_0x367906['push'](this[_0x2c3f('0xb0')](_0x3250ab));else for(let _0x4773cb=0x0;_0x4773cb<_0x3250ab[_0x2c3f('0x88')];_0x4773cb++)_0x367906[_0x2c3f('0x3a')](new _0x450319(_0x2c3f('0xdf'),{'vid':this['_revisionId']++}));const _0x2cf531=this[_0x2c3f('0x9e')];for(let _0x238db6=_0x4e267f;_0x238db6<_0x2cf531;_0x238db6++)this[_0x2c3f('0xe')][_0x2c3f('0x1d')](_0x238db6,{'userId':_0x607b7b});_0x29e384[_0x2c3f('0x8c')](_0x37551f[_0x2c3f('0x53')],_0x367906);}['_handleMoveOperation'](_0x50254d){(_0x50254d=this[_0x2c3f('0xf3')](_0x50254d,this[_0x2c3f('0xb5')]))[_0x2c3f('0xc5')]();const _0x208d0b=null===_0x50254d[_0x2c3f('0x7b')]?null:_0x50254d[_0x2c3f('0x7b')]||this[_0x2c3f('0xe3')][_0x2c3f('0xc7')]['get'](_0x2c3f('0xc'))['me']['id'],_0x31b33b=_0x50254d[_0x2c3f('0xa8')](),_0x33bd5e=_0x31b33b[_0x2c3f('0x26')],_0x59034f=_0x31b33b[_0x2c3f('0x53')];!function _0x53cdb1(_0x48648f,_0x984b78,_0x5d54f4,_0x4ebb62){for(let _0x359f65=_0x5d54f4;_0x359f65<_0x4ebb62;_0x359f65++){const _0x2d69ab=_0x984b78[_0x2c3f('0xf')](_0x359f65);_0x2d69ab['is'](_0x2c3f('0x3e'),'$text')?_0x48648f['set'](_0x2d69ab[_0x2c3f('0xa9')](_0x2c3f('0xc3')),{'userId':_0x208d0b}):(_0x48648f[_0x2c3f('0x1d')](_0x2d69ab[_0x2c3f('0xa9')](_0x2c3f('0x8f')),{'userId':_0x208d0b}),_0x53cdb1(_0x48648f,_0x2d69ab,0x0,_0x2d69ab[_0x2c3f('0xaf')]),_0x48648f['set'](_0x2d69ab[_0x2c3f('0xa9')](_0x2c3f('0xd8')),{'userId':_0x208d0b}));}}(this[_0x2c3f('0xe')],_0x33bd5e,_0x59034f,_0x59034f+_0x50254d[_0x2c3f('0x87')]);}[_0x2c3f('0x63')](_0x3f5184){const _0x58899d=null===(_0x3f5184=this['_cloneOperation'](_0x3f5184,this[_0x2c3f('0xb5')]))['_authorId']?null:_0x3f5184[_0x2c3f('0x7b')]||this[_0x2c3f('0xe3')]['plugins'][_0x2c3f('0x11')](_0x2c3f('0xc'))['me']['id'],_0x46a49f=_0x3f5184['targetPosition'][_0x2c3f('0x26')],_0xa4f469=_0x3f5184[_0x2c3f('0xe7')]['parent'],_0x29770c=_0x46a49f['getAttribute'](_0x2c3f('0xd8')),_0x173388=_0xa4f469['getAttribute'](_0x2c3f('0x8f'));_0x46a49f[_0x2c3f('0xf6')]('vid_end',_0xa4f469[_0x2c3f('0xa9')](_0x2c3f('0xd8'))),_0xa4f469[_0x2c3f('0xf6')](_0x2c3f('0xd8'),_0x29770c),this[_0x2c3f('0xe')][_0x2c3f('0x1d')](_0x173388,{'userId':_0x58899d}),this[_0x2c3f('0xe')][_0x2c3f('0x1d')](_0x29770c,{'userId':_0x58899d}),_0x3f5184[_0x2c3f('0xc5')]();}[_0x2c3f('0x8e')](_0x156487){const _0x41c4be=null===(_0x156487=this[_0x2c3f('0xf3')](_0x156487,this[_0x2c3f('0xb5')]))['_authorId']?null:_0x156487[_0x2c3f('0x7b')]||this[_0x2c3f('0xe3')][_0x2c3f('0xc7')][_0x2c3f('0x11')](_0x2c3f('0xc'))['me']['id'],_0x3981a9=_0x156487[_0x2c3f('0xc1')],_0x18da91=_0x156487[_0x2c3f('0x8a')]['parent'];_0x156487[_0x2c3f('0xc5')]();const _0x5d9fb5=_0x18da91[_0x2c3f('0xa9')](_0x2c3f('0xd8')),_0x375b1f=_0x156487[_0x2c3f('0xec')][_0x2c3f('0xb6')];if(_0x3981a9){const _0x3190b5=_0x375b1f[_0x2c3f('0xa9')]('vid_end'),_0x5cb324=_0x18da91[_0x2c3f('0xa9')](_0x2c3f('0xd8'));_0x18da91[_0x2c3f('0xf6')](_0x2c3f('0xd8'),_0x3190b5),_0x375b1f[_0x2c3f('0xf6')](_0x2c3f('0xd8'),_0x5cb324),this[_0x2c3f('0xe')]['set'](_0x18da91[_0x2c3f('0xa9')](_0x2c3f('0xd8')),{'userId':_0x41c4be}),this['_touched'][_0x2c3f('0x1d')](_0x375b1f[_0x2c3f('0xa9')](_0x2c3f('0x8f')),{'userId':_0x41c4be});}else{const _0x4c9075=this[_0x2c3f('0x9e')]++,_0xc462ad=this[_0x2c3f('0x9e')]++;_0x18da91[_0x2c3f('0xf6')](_0x2c3f('0xd8'),_0x4c9075),_0x375b1f[_0x2c3f('0xf6')](_0x2c3f('0x8f'),_0xc462ad),_0x375b1f[_0x2c3f('0xf6')](_0x2c3f('0xd8'),_0x5d9fb5),this[_0x2c3f('0xe')][_0x2c3f('0x1d')](_0x4c9075,{'userId':_0x41c4be}),this['_touched'][_0x2c3f('0x1d')](_0xc462ad,{'userId':_0x41c4be});}}[_0x2c3f('0x12')](_0x319ac0){if(!_0x319ac0[_0x2c3f('0x9d')])return;const _0x2ddbdf=(_0x319ac0=this['_cloneOperation'](_0x319ac0,this[_0x2c3f('0x6b')]))['oldRange']?_0x319ac0[_0x2c3f('0x3d')][_0x2c3f('0x22')]:null,_0x2d5a7d=_0x319ac0[_0x2c3f('0x30')]?_0x319ac0[_0x2c3f('0x30')][_0x2c3f('0x22')]:null;_0x2ddbdf&&this['_markers'][_0x2c3f('0xb3')](_0x319ac0[_0x2c3f('0x58')]),_0x2d5a7d&&this[_0x2c3f('0x9')][_0x2c3f('0x1d')](_0x319ac0[_0x2c3f('0x58')],_0x319ac0[_0x2c3f('0x30')]['clone']());const _0x3c0a9a=null===_0x319ac0[_0x2c3f('0x7b')]?null:_0x319ac0[_0x2c3f('0x7b')]||this['editor'][_0x2c3f('0xc7')][_0x2c3f('0x11')](_0x2c3f('0xc'))['me']['id'],_0x50b84d=_0x319ac0['name'];if(!this['_touchedMarkers'][_0x2c3f('0x67')](_0x50b84d))return void this[_0x2c3f('0xd7')]['set'](_0x50b84d,{'range':_0x319ac0['oldRange'],'userId':_0x3c0a9a});const _0x5ccede=this[_0x2c3f('0xd7')][_0x2c3f('0x11')](_0x50b84d),_0xeaff16=_0x5ccede[_0x2c3f('0x54')],_0x136a78=_0x319ac0[_0x2c3f('0x30')];null==_0xeaff16&&null==_0x136a78||_0xeaff16&&_0x136a78&&_0xeaff16[_0x2c3f('0xbe')](_0x136a78)?this[_0x2c3f('0xd7')][_0x2c3f('0xb3')](_0x319ac0[_0x2c3f('0x58')]):_0x5ccede['userId']=_0x3c0a9a;}[_0x2c3f('0xf8')](_0x2162ca,_0x53c8b2){this[_0x2c3f('0x6b')][_0x2c3f('0x67')](_0x2162ca[_0x2c3f('0xa0')])?this['_diffRoots'][_0x2c3f('0x11')](_0x2162ca[_0x2c3f('0xa0')])[_0x2c3f('0x43')]=_0x2162ca[_0x2c3f('0x32')]:(this['_diffRoots'][_0x2c3f('0x1d')](_0x2162ca[_0x2c3f('0xa0')],G(_0x2162ca[_0x2c3f('0xa0')],!0x0)),this[_0x2c3f('0xf5')][_0x2c3f('0x1d')](_0x2162ca[_0x2c3f('0xa0')],{}),_0x53c8b2&&this[_0x2c3f('0xb5')][_0x2c3f('0x1d')](_0x2162ca[_0x2c3f('0xa0')],G(_0x2162ca[_0x2c3f('0xa0')],!0x0)));const _0x53bf96=null===_0x2162ca[_0x2c3f('0x7b')]?null:_0x2162ca[_0x2c3f('0x7b')]||this['editor'][_0x2c3f('0xc7')][_0x2c3f('0x11')](_0x2c3f('0xc'))['me']['id'],_0x5a38a6=this[_0x2c3f('0xed')]['get'](_0x2162ca[_0x2c3f('0xa0')]);_0x5a38a6&&_0x5a38a6[_0x2c3f('0xbf')]===_0x53bf96?this[_0x2c3f('0xed')][_0x2c3f('0xb3')](_0x2162ca[_0x2c3f('0xa0')]):this[_0x2c3f('0xed')][_0x2c3f('0x1d')](_0x2162ca[_0x2c3f('0xa0')],{'userId':_0x53bf96,'isAttached':_0x2162ca['isAdd']});}['_handleRootAttributeOperation'](_0x286ca6){const _0x4164bd=this[_0x2c3f('0xf5')][_0x2c3f('0x11')](_0x286ca6['root'][_0x2c3f('0xa0')]);null===_0x286ca6[_0x2c3f('0x29')]?delete _0x4164bd[_0x286ca6[_0x2c3f('0xf7')]]:_0x4164bd[_0x286ca6[_0x2c3f('0xf7')]]=_0x286ca6[_0x2c3f('0x29')];}}function q(_0x2c4ea6){const _0x26ddc4=G(_0x2c4ea6[_0x2c3f('0xa0')],_0x2c4ea6[_0x2c3f('0x20')]());for(const _0x2afa75 of _0x2c4ea6[_0x2c3f('0xac')]()){const _0x2c6f00=_0x2afa75[_0x2c3f('0x37')](!0x0);_0x26ddc4['_appendChild'](_0x2c6f00);}return _0x26ddc4;}function G(_0x2ba732,_0x2913a6=!0x0){const _0x53cdc8=new _0x126caa();return _0x53cdc8['rootName']=_0x2ba732,_0x53cdc8[_0x2c3f('0x43')]=_0x2913a6,_0x53cdc8['isAttached']=()=>_0x53cdc8[_0x2c3f('0x43')],_0x53cdc8;}function L(_0x222d88,_0x4a7c1a,_0x684a7c){const _0x460200=_0x2c3f('0x23')==_0x222d88[_0x2c3f('0x17')]?_0x684a7c[_0x2c3f('0xdd')](_0x222d88[_0x2c3f('0xe8')],_0x2c3f('0x2')):_0x684a7c['createPositionBefore'](_0x222d88[_0x2c3f('0xe8')]);return _0x684a7c['createPositionFromPath'](_0x4a7c1a,_0x460200[_0x2c3f('0x1c')],_0x460200[_0x2c3f('0x51')]);}function W(_0x8797,_0x549eb6,_0x1d4d3a){const _0x1af715='elementStart'==_0x8797[_0x2c3f('0x17')]?_0x1d4d3a[_0x2c3f('0xdd')](_0x8797[_0x2c3f('0xe8')],0x0):_0x1d4d3a[_0x2c3f('0x9c')](_0x8797[_0x2c3f('0xe8')]);return _0x1d4d3a['createPositionFromPath'](_0x549eb6,_0x1af715['path'],_0x1af715[_0x2c3f('0x51')]);}