@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230725.1 → 0.0.0-nightly-20230726.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 _0x317d=['initialData','$text','_replaceEditorDataWithRevisionData','getRevisionDocumentData','_isAttached','_source','reInit','_update','createPositionFromPath','_insertChild','history','element','oldRange','_fixPosition','_createFromRanges','markerToData','_findInsertionIndex','offset','_saveMetaData','attributesAfter','bind','_getVidAttributeName','createPositionAt','_authorId','_handleMoveOperation','type','_handleInsertOperation','_baseRoots','_copyMarkers','_makeRevision','deletions','getRootNames','toVersion','isAttached','getRoot','newRange','elementStart','_reset','_removeRevisionMarkers','insertion','keys','_handleRootAttributeOperation','creatorId','paragraph','addRevision','isReady','previousPosition','createPositionBefore','revision','_revisionId','_diffRoots','some','creator','editor','remove','filter','name','_markers','resolve','forEach','map','_baseIdsRoots','useFillerType','changeRootAttribute','_diffRootsAttributes','clone','getWalker','_lastFrom','revision:','_markChanges','_handleRootOperation','createRange','from','pluginName','delete','$graveyard','_fixRange','_setConversion','diffData','_getState','finally','getAncestors','_loadRevisionData','_startingVersion','data','attributes','_removePendingAction','data-revision-','path','_touchedRoots','range','buildRevisionData','text','getRevisionRootsAttributes','sourcePosition','clear','markers','plugins','getChild','isEnabled','_baseRootsAttributes','_getFromVersion','get','affectsData','length','_setAttribute','Empty\x20document','editor-initial-data-replaced-with-revision-data','_continueCurrentRevision','saveRevision','revision-end','_isInit','getRevision','split','_savedMetaData','dataToMarker','RevisionsRepository','getUser','root','fromEntries','_createInitialRevision','_processRootBeforeSave','end','_prepareViewToSave','_addPendingAction','_touched','_makeIdsRoot','_createCurrentRevision','_getBaseVids','size','revision-start','getRange','values','vid','version','has','_bufferedUpdates','authorsIds','reinsert','model','marked','childCount','createRangeIn','parent','hasContent','sendBufferedUpdates','_execute','_getViewJson','view','nodeAfter','attachChange','_makeModelFromViewString','NEGATIVE_INFINITY','source','isAdd','getData','_revisionDataBuilder','document','repository','locale','getOperation','insertions','_handleMergeOperation','marker','createRevision','_operations','getChildren','find','rootName','createPositionAfter','currentRevision','_isPendingUpdate','getCurrentRevisionId','item','add','_transformMarkers','vid_start','removeRootAttribute','slice','getLatestVersion','init','_handleSplitOperation','getOperations','processor','newValue','deletion','start','addRoot','reverse','keepParagraph','adapter','howMany','revisionHistory.resumeUnsavedRevision','detachRoot','set','ready','toModel','_handleMarkerOperation','offsetSize','position','documentFragment','loadState','_idsRoots','baseVersion','insert','PendingActions','elementEnd','_bufferUpdate','initial','_fixOperation','createdAt','stringify','conversion','setRevisionData','_loadState','upcast','targetPosition','fromVersion','then','move','getIndex','_removeMetaData','isEqual','config','_generateTape','push','_calculateMetaData','attributesBefore','Users','_loadedStateData','getNodeByPath','_pendingAction','string','sort','getAttribute','_startingRevisionId','_appendChild','update','Initial\x20revision','_touchedMarkers','_applyOperations','_getPreviousFrom','roots','_initialRoots','userId','_clone','startsWith','getAttributes','tableCell','_cloneOperation','vid_end','_lastTo','children','includes','editing','addRevisionData','getMovedRangeStart','stickiness','afterInit','authors','PENDING_ACTION_REVISION_HISTORY','collaboration.channelId','getRevisions'];(function(_0x3f91aa,_0x317dfc){const _0x3786a5=function(_0x42ad22){while(--_0x42ad22){_0x3f91aa['push'](_0x3f91aa['shift']());}};_0x3786a5(++_0x317dfc);}(_0x317d,0x16f));const _0x3786=function(_0x3f91aa,_0x317dfc){_0x3f91aa=_0x3f91aa-0x0;let _0x3786a5=_0x317d[_0x3f91aa];return _0x3786a5;};import{Users as _0x5d2c4c}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2b8f11,PendingActions as _0x2402a3}from'ckeditor5/src/core';import{logWarning as _0x340e0c,uid as _0x231d5f}from'ckeditor5/src/utils';import{Position as _0x3128a9,Range as _0x53717c,Element as _0x1b8bbd,DocumentFragment as _0x41a162,ViewText as _0x2746cf,ViewElement as _0x247ec7,ViewContainerElement as _0x210b8c,ViewAttributeElement as _0x24a468,ViewEmptyElement as _0x455a4a,ViewRawElement as _0x97aa98,ViewUIElement as _0x320ad1,ViewDocumentFragment as _0xa83c73}from'ckeditor5/src/engine';import _0x1a2bbc from'./revisionsrepository';import{getTranslation as _0x42a1d2}from'./utils/common-translations';import{cloneDeep as _0x4c85e6,isEqual as _0xa0e00f}from'lodash-es';const B={'c':_0x210b8c,'a':_0x24a468,'e':_0x455a4a,'r':_0x97aa98,'u':_0x320ad1};export default class l extends _0x2b8f11{static get[_0x3786('0xe8')](){return'RevisionTracker';}static get['requires'](){return[_0x5d2c4c,_0x1a2bbc,_0x2402a3];}constructor(_0x103524){super(_0x103524),this[_0x3786('0x56')]=null,this['currentRevision']=null,this[_0x3786('0x34')]=new H(this['editor']),this['_initialRevisionId']=this[_0x3786('0xd4')]['config'][_0x3786('0x105')](_0x3786('0x9d'))||_0x3786('0x68'),this[_0x3786('0x20')]=new Map(),this[_0x3786('0x7d')]=null;const _0x1e2b41=_0x231d5f();this[_0x3786('0xa4')]={'history':this[_0x3786('0xd4')]['model'][_0x3786('0x35')][_0x3786('0xa9')],'getLatestVersion':()=>Promise[_0x3786('0xd9')](this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')][_0x3786('0x1e')]),'getCurrentRevisionId':()=>_0x1e2b41},this[_0x3786('0x5a')](_0x3786('0xcc'),!0x1),this[_0x3786('0x5a')](_0x3786('0x102'),!0x0),this[_0x3786('0x5a')](_0x3786('0x43'),!0x1),this[_0x3786('0xd4')]['config']['define'](_0x3786('0x58'),!0x0),this[_0x3786('0xd4')][_0x3786('0x6c')]['for'](_0x3786('0x6f'))[_0x3786('0xb')]({'view':_0x3786('0xcf')});}[_0x3786('0x4c')](){this[_0x3786('0x36')]=this[_0x3786('0xd4')]['plugins']['get'](_0x3786('0xc')),this[_0x3786('0xec')](),this[_0x3786('0xd4')][_0x3786('0xf3')]['on'](_0x3786('0x5b'),()=>{const _0x366239=this['repository'][_0x3786('0x8')](0x0),_0x273272=_0x366239&&null===_0x366239[_0x3786('0xd3')]?_0x366239:null;if(this[_0x3786('0x4')]=!!_0x273272&&this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x105')]('revisionHistory.resumeUnsavedRevision'),this[_0x3786('0xd4')]['plugins']['has']('RealTimeCollaborationClient')){const _0x16d0d1=this[_0x3786('0xa4')]['getCurrentRevisionId'](),_0x13596f=this[_0x3786('0x36')][_0x3786('0x8')](_0x16d0d1);if(_0x13596f)this[_0x3786('0xf2')]=_0x13596f[_0x3786('0x71')],this['_continueCurrentRevision']=!0x1;else{const _0x3236cc=this[_0x3786('0xa4')][_0x3786('0xa9')][_0x3786('0x3d')][_0x3786('0x3f')](_0xeb49f5=>!_0xeb49f5[_0x3786('0x7')]),_0x4fa4c9=_0x3236cc?_0x3236cc[_0x3786('0x63')]:this[_0x3786('0xa4')][_0x3786('0xa9')][_0x3786('0x1e')];_0x366239?(_0x366239[_0x3786('0xbf')]<_0x4fa4c9&&_0x366239[_0x3786('0xa6')]({'toVersion':_0x4fa4c9}),this[_0x3786('0x4')]?(this[_0x3786('0xa4')][_0x3786('0x44')]=()=>_0x273272['id'],this[_0x3786('0xf2')]=_0x273272[_0x3786('0x71')]):(this[_0x3786('0xf2')]=_0x366239[_0x3786('0xbf')],this[_0x3786('0x4')]=!0x1)):(this[_0x3786('0xf2')]=_0x4fa4c9,this['_continueCurrentRevision']=!0x1);}}else _0x273272&&(this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')]['history'][_0x3786('0x1e')]=Math['max'](_0x273272['toVersion'],this[_0x3786('0xd4')]['model'][_0x3786('0x35')]['history'][_0x3786('0x1e')]),_0x273272[_0x3786('0x71')]===_0x273272[_0x3786('0xbf')]?(0x0!==_0x273272[_0x3786('0x71')]&&(this['_source'][_0x3786('0x44')]=()=>_0x273272['id']),this[_0x3786('0x4')]=!0x1):this[_0x3786('0x4')]&&(this[_0x3786('0xa4')]['getCurrentRevisionId']=()=>_0x273272['id'],this[_0x3786('0xf2')]=_0x273272[_0x3786('0x71')])),this['_continueCurrentRevision']||(this['_startingVersion']=this[_0x3786('0xd4')]['model'][_0x3786('0x35')][_0x3786('0x1e')]);this[_0x3786('0x34')]['init'](this[_0x3786('0xa4')][_0x3786('0xa9')]),this[_0x3786('0x10')](this[_0x3786('0xf2')]),this[_0x3786('0x17')](this[_0x3786('0xf2')]),this[_0x3786('0x56')]&&this[_0x3786('0x29')]();}),this[_0x3786('0xb3')](_0x3786('0xcc'))['to'](this,_0x3786('0x43'),_0x2f3356=>!_0x2f3356);}async[_0x3786('0x9a')](){if(this[_0x3786('0x36')]['length']>0x0){const _0x260283=this[_0x3786('0x36')]['getRevision'](0x0),_0x1d857b=await this['getRevisionDocumentData'](_0x260283),_0x1e58cc=await this[_0x3786('0xfc')](_0x260283);this[_0x3786('0xa1')](_0x1d857b,_0x1e58cc);}}['setSource'](_0x16da99){this['_source']=_0x16da99;}async[_0x3786('0x85')](){const _0x42bf05=await this[_0x3786('0xa4')][_0x3786('0x4b')]();if(_0x42bf05>this[_0x3786('0x42')][_0x3786('0xbf')]){await this[_0x3786('0x6e')]();const _0x33f8e6=this[_0x3786('0xfa')]({'revision':this[_0x3786('0x42')],'to':_0x42bf05});_0x33f8e6[_0x3786('0x9b')]=_0x33f8e6[_0x3786('0x21')]['map'](_0x2d5435=>this['editor'][_0x3786('0x100')]['get'](_0x3786('0x7c'))[_0x3786('0xd')](_0x2d5435)),this[_0x3786('0x42')][_0x3786('0xa6')](_0x33f8e6);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this[_0x3786('0x42')]),this[_0x3786('0x34')]['loadState'](this[_0x3786('0x42')]),this[_0x3786('0x7d')]={'fromVersion':this['currentRevision'][_0x3786('0x71')],'authors':this['currentRevision']['authors'][_0x3786('0x4a')]()});}async[_0x3786('0x5')](_0x341d4a={},_0x134d32=null){const _0x8b454e=[];await this[_0x3786('0x6e')](),this[_0x3786('0x4')]=!0x1,_0x134d32>this[_0x3786('0x42')][_0x3786('0xbf')]&&(_0x134d32=null),null===_0x134d32&&(_0x134d32=await this['_source']['getLatestVersion']());const _0x43fde4=this[_0x3786('0x104')](_0x134d32),_0x3e3b8d=this['buildRevisionData']({'from':_0x43fde4,'to':_0x134d32});if(this['currentRevision'][_0x3786('0xbf')]<_0x134d32){const _0x4951b4=this[_0x3786('0xfa')]({'revision':this[_0x3786('0x42')],'from':_0x134d32,'to':_0x134d32});_0x4951b4['authors']=[],_0x4951b4[_0x3786('0x21')]=[],_0x4951b4['id']=this['currentRevision']['id'],this[_0x3786('0x42')][_0x3786('0xa6')](_0x4951b4,!0x0),delete _0x4951b4[_0x3786('0x9b')],_0x8b454e[_0x3786('0x79')](_0x4951b4);}_0x341d4a[_0x3786('0xc9')]=this[_0x3786('0xd4')]['plugins']['get']('Users')['me']['id'],_0x341d4a['name']=_0x341d4a[_0x3786('0xd7')]||null,_0x341d4a['id']=_0x341d4a['id']||_0x231d5f(),_0x341d4a={..._0x341d4a,..._0x3e3b8d};const _0xe3c382=this[_0x3786('0x97')](_0x341d4a);_0x8b454e['push'](_0x341d4a);const _0x17a10a=this[_0x3786('0x36')][_0x3786('0x74')](_0xe3c382);if(0x0!==_0x17a10a){const _0x59e9d7=this[_0x3786('0x36')]['getRevision'](_0x17a10a-0x1);if(_0x59e9d7[_0x3786('0x71')]!==_0x134d32){const _0x26a911=this[_0x3786('0x34')]['getData'](_0x134d32,_0x59e9d7[_0x3786('0xbf')]),_0x553e44={'id':_0x59e9d7['id'],'diffData':_0x26a911[_0x3786('0xed')],'authorsIds':_0x26a911[_0x3786('0x21')],'authors':_0x26a911[_0x3786('0x21')][_0x3786('0xdb')](_0xc95608=>this[_0x3786('0xd4')][_0x3786('0x100')]['get']('Users')[_0x3786('0xd')](_0xc95608)),'fromVersion':_0x134d32};_0x59e9d7===this[_0x3786('0x42')]&&(_0x553e44[_0x3786('0x6a')]=new Date(_0x341d4a[_0x3786('0x6a')]['getTime']()+0xa)),_0x59e9d7[_0x3786('0xa6')](_0x553e44,!0x0),delete _0x553e44[_0x3786('0x9b')],_0x8b454e['push'](_0x553e44);}}if(this[_0x3786('0x56')]){for(const _0x4f0b66 of _0x8b454e)this['_bufferUpdate'](_0x4f0b66['id'],_0x4f0b66,!0x0);this['sendBufferedUpdates']();}return _0xe3c382;}[_0x3786('0x97')](_0x1139d9){const _0x134252=this[_0x3786('0x36')][_0x3786('0x3c')](_0x1139d9);return this[_0x3786('0x56')]&&_0x134252['on'](_0x3786('0xa6'),(_0x156d2f,_0x59fb8d,_0x2237d9)=>{_0x2237d9||(this[_0x3786('0x67')](_0x59fb8d['id'],_0x59fb8d,!0x0),this[_0x3786('0x29')]());}),this[_0x3786('0x36')][_0x3786('0xcb')](_0x134252,this[_0x3786('0xaf')](_0x134252)),_0x134252;}async[_0x3786('0xa2')](_0x2650fe){await this[_0x3786('0xf1')](_0x2650fe);const _0x2ec16c={};for(const _0x172a12 in _0x2650fe[_0x3786('0xed')]){if(_0x2650fe[_0x3786('0xed')][_0x172a12]['attachChange']&&!_0x2650fe[_0x3786('0xed')][_0x172a12][_0x3786('0x2e')]['isAttached'])continue;const _0x54a7d9=this[_0x3786('0xc5')](JSON['parse'](_0x2650fe['diffData'][_0x172a12]['insertions'])),_0x5781ca=this[_0x3786('0xd4')][_0x3786('0x96')]['view'][_0x3786('0x35')],_0x20e2bd=new _0xa83c73(_0x5781ca,_0x54a7d9[_0x3786('0xdb')](_0x33b841=>J(_0x33b841,this[_0x3786('0xd4')])));this[_0x3786('0xd4')][_0x3786('0xf3')][_0x3786('0x4f')]['useFillerType'](_0x3786('0x24')),_0x2ec16c[_0x172a12]=this[_0x3786('0xd4')][_0x3786('0xf3')]['processor']['toData'](_0x20e2bd),this[_0x3786('0xd4')]['data'][_0x3786('0x4f')][_0x3786('0xdd')]('default');}return _0x2ec16c;}async[_0x3786('0xfc')](_0x518b16){await this[_0x3786('0xf1')](_0x518b16);const _0x3cb03d={};for(const _0x408b4d in _0x518b16[_0x3786('0xed')])_0x518b16[_0x3786('0xed')][_0x408b4d]['attachChange']&&!_0x518b16[_0x3786('0xed')][_0x408b4d][_0x3786('0x2e')][_0x3786('0xc0')]||(_0x3cb03d[_0x408b4d]=_0x518b16[_0x3786('0xed')][_0x408b4d][_0x3786('0xb2')]||{});return _0x3cb03d;}[_0x3786('0x29')](){if(0x0===this[_0x3786('0x20')][_0x3786('0x19')])return;if(this[_0x3786('0x43')])return;let _0x5f5bc7=Array[_0x3786('0xe7')](this[_0x3786('0x20')][_0x3786('0x1c')]());this[_0x3786('0x20')][_0x3786('0xfe')]();for(let _0xc71582=0x0;_0xc71582<_0x5f5bc7['length'];_0xc71582++){const _0x23e10e=_0x5f5bc7[_0xc71582];let _0x4bdba0=!0x1;for(const _0x5907e4 of Object[_0x3786('0xc7')](_0x23e10e))void 0x0===_0x23e10e[_0x5907e4]?delete _0x23e10e[_0x5907e4]:'id'!==_0x5907e4&&(_0x4bdba0=!0x0);_0x4bdba0||(_0x5f5bc7[_0xc71582]=null);}if(_0x5f5bc7=_0x5f5bc7[_0x3786('0xd6')](_0x1bd370=>null!==_0x1bd370),!_0x5f5bc7[_0x3786('0x0')])return;for(let _0x59d305=0x0;_0x59d305<_0x5f5bc7[_0x3786('0x0')];_0x59d305++){const _0x46caeb=_0x5f5bc7[_0x59d305];void 0x0!==_0x46caeb['fromVersion']&&void 0x0===_0x46caeb['toVersion']&&(_0x46caeb[_0x3786('0xbf')]=this[_0x3786('0x36')]['getRevision'](_0x46caeb['id'])[_0x3786('0xbf')]),void 0x0!==_0x46caeb[_0x3786('0xbf')]&&void 0x0===_0x46caeb[_0x3786('0x71')]&&(_0x46caeb[_0x3786('0x71')]=this[_0x3786('0x36')][_0x3786('0x8')](_0x46caeb['id'])['fromVersion']);}const _0x1c06a8=this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x105')](_0x3786('0x9d'));this[_0x3786('0x43')]=!0x0,this[_0x3786('0x14')](),this[_0x3786('0x56')]['updateRevisions'](_0x5f5bc7,_0x1c06a8)[_0x3786('0xef')](()=>{this['_isPendingUpdate']=!0x1;})[_0x3786('0x72')](_0x517476=>{if(_0x517476)for(const _0x38bab2 of _0x517476)this['setRevisionData']({'id':_0x38bab2['id'],'createdAt':_0x38bab2[_0x3786('0x6a')]});this[_0x3786('0xf5')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x45d61d,_0x4c828e){let _0x12c546=this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x105')](_0x3786('0x9f')),_0x20591f=this['editor'][_0x3786('0x77')][_0x3786('0x105')]('rootsAttributes');if(void 0x0===_0x12c546){_0x12c546={};for(const _0x2b3cce of this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')][_0x3786('0xbe')]())_0x12c546[_0x2b3cce]='';}if(_0x3786('0x80')==typeof _0x12c546&&(_0x12c546={'main':_0x12c546}),void 0x0===_0x20591f){_0x20591f={};for(const _0xa28627 of this[_0x3786('0xd4')][_0x3786('0x23')]['document']['getRootNames']())_0x20591f[_0xa28627]={};}let _0x5a667f=!0x1;const _0x50d4c4=Object[_0x3786('0xc7')](_0x12c546),_0x575118=Object[_0x3786('0xc7')](_0x45d61d);for(const _0x21807a of _0x50d4c4){if(_0x12c546[_0x21807a]!==_0x45d61d[_0x21807a]&&''!==_0x12c546[_0x21807a]['trim']()){_0x5a667f=!0x0;break;}if(!_0xa0e00f(_0x20591f[_0x21807a],_0x4c828e[_0x21807a])&&Object[_0x3786('0xc7')](_0x20591f[_0x21807a])[_0x3786('0x0')]>0x0){_0x5a667f=!0x0;break;}}_0x5a667f||(_0x5a667f=_0x575118[_0x3786('0xd2')](_0x3927bd=>!_0x50d4c4[_0x3786('0x95')](_0x3927bd))),_0x5a667f&&_0x340e0c(_0x3786('0x3'),{'editorData':_0x12c546,'editorRootsAttributes':_0x20591f,'revisionData':_0x45d61d,'revisionRootsAttributes':_0x4c828e}),this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x5a')](_0x3786('0x9f'),_0x45d61d),this['editor']['config'][_0x3786('0x5a')]('rootsAttributes',_0x4c828e);}[_0x3786('0x14')](){if(!this[_0x3786('0x7f')]){const _0x124611=this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x65'));this['_pendingAction']=_0x124611['add'](_0x42a1d2(this['editor'][_0x3786('0x37')],_0x3786('0x9c')));}}['_removePendingAction'](){this[_0x3786('0x7f')]&&(this['editor']['plugins'][_0x3786('0x105')]('PendingActions')[_0x3786('0xd5')](this['_pendingAction']),this[_0x3786('0x7f')]=null);}['_findInsertionIndex'](_0xc01bf9){const _0x1a6c04=this[_0x3786('0x36')]['getRevisions']();_0x1a6c04['reverse']();let _0x5e8da6=0x0;for(;_0x5e8da6<_0x1a6c04['length'];){const _0x46ec1f=_0x1a6c04[_0x5e8da6];if(_0x46ec1f===this['currentRevision']){_0x5e8da6++;continue;}if(_0x46ec1f['id']===this['_initialRevisionId'])break;const _0x515b55=_0xc01bf9[_0x3786('0xbf')]-_0x46ec1f[_0x3786('0xbf')]||_0xc01bf9[_0x3786('0x71')]-_0x46ec1f[_0x3786('0x71')];if(_0x515b55>0x0)break;if(_0x515b55<0x0)_0x5e8da6++;else{if(!_0xc01bf9['creator']&&_0x46ec1f[_0x3786('0xd3')])break;if(_0x46ec1f[_0x3786('0xd3')]||!_0xc01bf9[_0x3786('0xd3')]){if(_0xc01bf9[_0x3786('0x6a')]>_0x46ec1f[_0x3786('0x6a')])break;_0x5e8da6++;}else _0x5e8da6++;}}return _0x5e8da6;}[_0x3786('0x6d')](_0x242171){const _0x140adc=this[_0x3786('0x36')]['getRevision'](_0x242171['id']);if(_0x242171['createdAt']&&(_0x242171[_0x3786('0x6a')]=new Date(_0x242171[_0x3786('0x6a')])),_0x242171['authorsIds']){const _0x151413=this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x7c'));_0x242171['authors']=_0x242171[_0x3786('0x21')][_0x3786('0xdb')](_0x32f59b=>_0x151413[_0x3786('0xd')](_0x32f59b));}_0x140adc[_0x3786('0xa6')](_0x242171,!0x0);}[_0x3786('0xfa')]({revision:_0x2a7981=null,from:_0x571426=null,to:_0x2ab75f=null}){_0x571426=null!==_0x571426?_0x571426:_0x2a7981[_0x3786('0x71')],_0x2ab75f=null!==_0x2ab75f?_0x2ab75f:_0x2a7981[_0x3786('0xbf')];const _0x3786c9=this[_0x3786('0x34')][_0x3786('0x33')](_0x571426,_0x2ab75f),_0x33f596={'diffData':_0x3786c9[_0x3786('0xed')],'authorsIds':_0x3786c9[_0x3786('0x21')],'fromVersion':_0x571426,'toVersion':_0x2ab75f};if(!_0x2a7981||_0x2ab75f!==_0x2a7981[_0x3786('0xbf')]){const _0x265140=_0x2ab75f-0x1,_0x436947=this['_source'][_0x3786('0xa9')][_0x3786('0x38')](_0x265140);_0x33f596['createdAt']=_0x436947&&_0x436947[_0x3786('0x6a')]||new Date();}if(this[_0x3786('0x7d')]&&_0x571426===this['_loadedStateData']['fromVersion'])for(const _0x258cbc of this[_0x3786('0x7d')][_0x3786('0x9b')])_0x33f596['authorsIds'][_0x3786('0x95')](_0x258cbc['id'])||_0x33f596[_0x3786('0x21')][_0x3786('0x79')](_0x258cbc['id']);return _0x33f596;}[_0x3786('0xf1')](_0x51cc45){if(!_0x51cc45||_0x51cc45[_0x3786('0xed')])return Promise[_0x3786('0xd9')]();{const _0x48669b=this[_0x3786('0xd4')][_0x3786('0x77')]['get']('collaboration.channelId');return this[_0x3786('0x56')]['getRevision']({'channelId':_0x48669b,'revisionId':_0x51cc45['id']})[_0x3786('0x72')](_0x239c30=>{_0x51cc45[_0x3786('0xed')]=_0x239c30[_0x3786('0xed')];});}}['_bufferUpdate'](_0x34f13d,_0xde55e4,_0x5ba62b){if(this[_0x3786('0x20')]['has'](_0x34f13d)){const _0x39a69f=this[_0x3786('0x20')][_0x3786('0x105')](_0x34f13d);_0xde55e4=_0x5ba62b?{..._0x39a69f,..._0xde55e4}:{..._0xde55e4,..._0x39a69f};}this[_0x3786('0x20')][_0x3786('0x5a')](_0x34f13d,_0xde55e4);}[_0x3786('0x104')](_0x402beb){const _0x3b36d6=this[_0x3786('0x36')][_0x3786('0x9e')]();_0x3b36d6[_0x3786('0x54')](),_0x3b36d6['shift']();const _0x5df6a5=_0x3b36d6[_0x3786('0x3f')](_0x31faa1=>_0x31faa1[_0x3786('0xbf')]<=_0x402beb)[_0x3786('0xbf')];return _0x5df6a5<this[_0x3786('0xf2')]?this['_startingVersion']:_0x5df6a5;}[_0x3786('0x10')](_0x49b3b7){const _0x7a1f0e=this[_0x3786('0x36')][_0x3786('0x8')](this[_0x3786('0x36')][_0x3786('0x0')]-0x1);if(_0x7a1f0e)this['_initialRevisionId']=_0x7a1f0e['id'];else{const _0x5cf15e=!this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')][_0x3786('0x8a')][_0x3786('0x3f')](_0x5e256c=>this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x28')](_0x5e256c)),_0x172d82=this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x7c'))['me']['id'],_0x49dcab=_0x42a1d2(this[_0x3786('0xd4')][_0x3786('0x37')],_0x5cf15e?_0x3786('0x2'):_0x3786('0x86'));this[_0x3786('0xbc')]({'from':_0x49b3b7,'to':_0x49b3b7,'id':this['_initialRevisionId'],'name':_0x49dcab,'creatorId':_0x172d82});}}[_0x3786('0x17')](_0x5df917){const _0x5cfc1b=this[_0x3786('0xa4')][_0x3786('0x44')]();this[_0x3786('0x42')]=this[_0x3786('0x36')][_0x3786('0x8')](_0x5cfc1b),this[_0x3786('0x42')]||(this[_0x3786('0x42')]=this[_0x3786('0xbc')]({'from':_0x5df917,'to':_0x5df917,'id':_0x5cfc1b,'name':'','creatorId':null}));}[_0x3786('0xbc')]({name:_0x48b868,from:_0x364820,to:_0x29d92a,creatorId:_0x3f58f3,id:_0x467a55}){const _0x2833db=this[_0x3786('0xfa')]({'from':_0x364820,'to':_0x29d92a});_0x2833db[_0x3786('0xd7')]=_0x48b868,_0x2833db[_0x3786('0xc9')]=_0x3f58f3,_0x2833db['id']=_0x467a55;const _0x592168=this[_0x3786('0x97')](_0x2833db);return this['adapter']&&this[_0x3786('0x67')](_0x2833db['id'],_0x2833db,!0x0),_0x592168;}[_0x3786('0xec')](){this[_0x3786('0xd4')]['conversion']['for']('dataDowncast')[_0x3786('0xae')]({'model':'revision'});}['_removeRevisionMarkers'](_0x30fb32){return(_0x30fb32=_0x30fb32[_0x3786('0xd6')](_0x48080a=>!_0x48080a[_0x3786('0xd7')]||_0x3786('0x1a')!==_0x48080a[_0x3786('0xd7')]&&_0x3786('0x6')!==_0x48080a['name']))[_0x3786('0xda')](_0x2858cd=>{_0x3786('0x80')!=typeof _0x2858cd&&(_0x2858cd[_0x3786('0x94')]=this['_removeRevisionMarkers'](_0x2858cd[_0x3786('0x94')]),_0x2858cd[_0x3786('0xf4')]=_0x2858cd[_0x3786('0xf4')]['filter'](_0x100b9=>!_0x100b9[0x0][_0x3786('0x8e')](_0x3786('0xf6'))));}),_0x30fb32;}}function J(_0x3aaac3,_0x54bfa0){const _0x341bee=_0x54bfa0['editing'][_0x3786('0x2c')][_0x3786('0x35')];if(_0x3786('0x80')==typeof _0x3aaac3)return new _0x2746cf(_0x341bee,_0x3aaac3);{const _0x274c88=_0x3aaac3['children'][_0x3786('0xdb')](_0x5787bc=>J(_0x5787bc,_0x54bfa0));return new(B[_0x3aaac3[(_0x3786('0xb8'))]]||_0x247ec7)(_0x341bee,_0x3aaac3['name'],_0x3aaac3[_0x3786('0xf4')],_0x274c88);}}class H{constructor(_0x4a8406){this[_0x3786('0xd4')]=_0x4a8406,this[_0x3786('0xa')]=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this[_0x3786('0xd1')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x3786('0xba')]=new Map(),this[_0x3786('0x103')]=new Map(),this[_0x3786('0x62')]=new Map(),this[_0x3786('0xdc')]=new Map(),this[_0x3786('0x15')]=new Map(),this[_0x3786('0x87')]=new Map(),this[_0x3786('0xf8')]=new Map(),this['_revisionId']=0x1,this[_0x3786('0x8b')]=this[_0x3786('0xd4')]['model'][_0x3786('0x35')]['getRootNames'](),this[_0x3786('0x8b')]['push']('$graveyard');}[_0x3786('0x4c')](_0x46aea8){this['source']=_0x46aea8;const _0x51e19f=new Map(),_0x77d3ab=new Map(),_0x343126=this[_0x3786('0xd4')][_0x3786('0x23')]['document'][_0x3786('0xbe')](!0x0);_0x343126[_0x3786('0x79')]('$graveyard');for(const _0x39cada of _0x343126){const _0xc41def=this[_0x3786('0xd4')]['model']['document'][_0x3786('0xc1')](_0x39cada),_0xde2f50=q(_0xc41def);_0x51e19f[_0x3786('0x5a')](_0x39cada,_0xde2f50),_0x77d3ab[_0x3786('0x5a')](_0x39cada,Object[_0x3786('0xf')](_0xc41def[_0x3786('0x8f')]()));}const _0x2bdaec=Array[_0x3786('0xe7')](this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0xff')])['map'](_0x4ac653=>[_0x4ac653['name'],_0x4ac653[_0x3786('0x1b')]()]),_0x457cdd=this['source'][_0x3786('0x1e')];this['_saveMetaData'](_0x457cdd,_0x51e19f,_0x2bdaec,_0x77d3ab),this[_0x3786('0x83')]=this[_0x3786('0xd0')];const _0x225a02=new Map(),_0x327769=new Map();for(const _0x44d067 of this[_0x3786('0x8b')]){const _0x40718f=G(_0x44d067);_0x225a02['set'](_0x44d067,_0x40718f),_0x327769[_0x3786('0x5a')](_0x44d067,{});}this[_0x3786('0xb1')](Number['NEGATIVE_INFINITY'],_0x225a02,[],_0x327769);}['getData'](_0x53a4c7,_0x26ce2f){if(this['_lastFrom']===_0x53a4c7&&this[_0x3786('0x93')]<=_0x26ce2f)this[_0x3786('0xa')][_0x3786('0x19')]>0x1&&this['_removeMetaData'](this[_0x3786('0x93')]),this[_0x3786('0x88')](this[_0x3786('0x93')],_0x26ce2f,!0x0);else{if(!this[_0x3786('0xa')][_0x3786('0x1f')](_0x53a4c7)){const _0x29a298=this[_0x3786('0x89')](_0x53a4c7);this['_calculateMetaData'](_0x29a298,_0x53a4c7,!0x1);}this['_calculateMetaData'](_0x53a4c7,_0x26ce2f,!0x0);}return this[_0x3786('0xe2')]=_0x53a4c7,this[_0x3786('0x93')]=_0x26ce2f,this['_getState']();}[_0x3786('0x61')](_0x385bf4){this[_0x3786('0xc4')](),this[_0x3786('0xe2')]=_0x385bf4[_0x3786('0x71')],this[_0x3786('0x93')]=_0x385bf4['toVersion'];for(const _0x2eb15d in _0x385bf4[_0x3786('0xed')]){const _0x2e2030=_0x385bf4['diffData'][_0x2eb15d]['attachChange'],_0x20250b=_0x4c85e6(_0x385bf4[_0x3786('0xed')][_0x2eb15d][_0x3786('0x7b')])||{},_0xdfe463=this[_0x3786('0x2f')](_0x385bf4[_0x3786('0xed')][_0x2eb15d]['deletions']);_0xdfe463[_0x3786('0x40')]=_0x2eb15d,_0xdfe463['_isAttached']=!_0x2e2030||!_0x2e2030['isAttached'],_0xdfe463[_0x3786('0xc0')]=()=>_0xdfe463[_0x3786('0xa3')],this['_baseRoots'][_0x3786('0x5a')](_0x2eb15d,_0xdfe463),this[_0x3786('0x103')][_0x3786('0x5a')](_0x2eb15d,_0x20250b),_0x2e2030&&this['_touchedRoots'][_0x3786('0x5a')](_0x2eb15d,_0x2e2030);const _0x299398=this[_0x3786('0x16')](_0xdfe463);this[_0x3786('0xdc')][_0x3786('0x5a')](_0x2eb15d,_0x299398);for(const [_0x258aea,_0x38dac1]of _0xdfe463[_0x3786('0xff')]){if(!_0x258aea[_0x3786('0x8e')](_0x3786('0xe3')))continue;const _0x148fc9=_0x258aea[_0x3786('0x9')](':')[0x2];for(const _0x182b02 of _0x38dac1[_0x3786('0xe1')]({'singleCharacters':!0x0})){const _0x356559=this[_0x3786('0xb4')](_0x182b02),_0x591ba9=_0x3786('0x66')==_0x182b02[_0x3786('0xb8')]?_0x182b02[_0x3786('0xcd')][_0x3786('0xf7')][_0x3786('0x4a')](0x0,-0x1):_0x182b02['previousPosition'][_0x3786('0xf7')],_0x50900e=_0x299398[_0x3786('0x7e')](_0x591ba9)[_0x3786('0x82')](_0x356559);this[_0x3786('0x15')][_0x3786('0x5a')](_0x50900e,{'userId':_0x148fc9});}}}this[_0x3786('0x83')]=this['_revisionId'];const _0x2b4a57=[...Array(this[_0x3786('0xd0')])[_0x3786('0xc7')]()][_0x3786('0x4a')](0x1)[_0x3786('0xd6')](_0x214433=>!this[_0x3786('0x15')][_0x3786('0x1f')](_0x214433));let _0x2a040f=0x0;const _0x1f0411=new Map();for(const _0x4d4a7d in _0x385bf4[_0x3786('0xed')]){const _0x4f6c75=_0x385bf4['diffData'][_0x4d4a7d][_0x3786('0x2e')],_0x1ac6a9=_0x4c85e6(_0x385bf4[_0x3786('0xed')][_0x4d4a7d][_0x3786('0xb2')])||{},_0x41433d=this['_makeModelFromViewString'](_0x385bf4['diffData'][_0x4d4a7d][_0x3786('0x39')]);_0x41433d['rootName']=_0x4d4a7d,_0x41433d[_0x3786('0xa3')]=!_0x4f6c75||_0x4f6c75['isAttached'],_0x41433d[_0x3786('0xc0')]=()=>_0x41433d[_0x3786('0xa3')],this[_0x3786('0xd1')]['set'](_0x4d4a7d,_0x41433d),this['_diffRootsAttributes'][_0x3786('0x5a')](_0x4d4a7d,_0x1ac6a9);const _0x4d6b78=this[_0x3786('0x16')](_0x41433d,Number[_0x3786('0x30')]);this[_0x3786('0x62')][_0x3786('0x5a')](_0x4d4a7d,_0x4d6b78),_0x1f0411[_0x3786('0x5a')](_0x4d4a7d,_0x41433d[_0x3786('0xc0')]()?_0x1ac6a9:{});for(const [_0x43b2db,_0x4b0217]of _0x41433d[_0x3786('0xff')]){if(!_0x43b2db[_0x3786('0x8e')](_0x3786('0xe3')))continue;const _0x5ba6b0=_0x43b2db[_0x3786('0x9')](':')[0x2];for(const _0x5b760c of _0x4b0217[_0x3786('0xe1')]({'singleCharacters':!0x0})){const _0x56eaf9=this['_getVidAttributeName'](_0x5b760c),_0xb8b307=this[_0x3786('0xd0')]++,_0xfbc8b0=_0x3786('0x66')==_0x5b760c[_0x3786('0xb8')]?_0x5b760c[_0x3786('0xcd')][_0x3786('0xf7')][_0x3786('0x4a')](0x0,-0x1):_0x5b760c[_0x3786('0xcd')]['path'];_0x4d6b78[_0x3786('0x7e')](_0xfbc8b0)[_0x3786('0x1')](_0x56eaf9,_0xb8b307),this['_touched'][_0x3786('0x5a')](_0xb8b307,{'userId':_0x5ba6b0});}}for(const _0x383327 of this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x26')](_0x41433d)['getWalker']({'singleCharacters':!0x0})){const _0x21af27=this[_0x3786('0xb4')](_0x383327),_0x535e7b=_0x3786('0x66')==_0x383327[_0x3786('0xb8')]?_0x383327[_0x3786('0xcd')][_0x3786('0xf7')][_0x3786('0x4a')](0x0,-0x1):_0x383327['previousPosition'][_0x3786('0xf7')],_0x435723=_0x4d6b78[_0x3786('0x7e')](_0x535e7b);_0x435723[_0x3786('0x82')](_0x21af27)>0x0||_0x435723['_setAttribute'](_0x21af27,_0x2b4a57[_0x2a040f++]);}for(const [_0x1d7f86,_0xf362ff]of _0x41433d[_0x3786('0xff')])_0x1d7f86['startsWith'](_0x3786('0xe3'))||this['_markers']['set'](_0x1d7f86,_0xf362ff);}const _0x365fab=G('$graveyard');this[_0x3786('0xba')][_0x3786('0x5a')](_0x3786('0xea'),_0x365fab),this['_baseIdsRoots'][_0x3786('0x5a')](_0x3786('0xea'),this[_0x3786('0x16')](_0x365fab,0x1));const _0x2f9522=G(_0x3786('0xea'));this[_0x3786('0xd1')][_0x3786('0x5a')](_0x3786('0xea'),_0x2f9522),this[_0x3786('0x62')][_0x3786('0x5a')](_0x3786('0xea'),this[_0x3786('0x16')](_0x2f9522,0x1));const _0x4209b0=Array[_0x3786('0xe7')](this['_diffRoots'])[_0x3786('0xdb')](([_0x1fc2bf,_0x145a61])=>[_0x1fc2bf,q(_0x145a61)]);this['_saveMetaData'](this[_0x3786('0x93')],_0x4209b0,this[_0x3786('0xd8')],_0x1f0411);}[_0x3786('0x2f')](_0x5c484f){const _0x5db279=JSON['parse'](_0x5c484f),_0x394bef=this[_0x3786('0xd4')][_0x3786('0x96')][_0x3786('0x2c')][_0x3786('0x35')],_0x294991=new _0xa83c73(_0x394bef,_0x5db279[_0x3786('0xdb')](_0x38c883=>J(_0x38c883,this[_0x3786('0xd4')])));return this[_0x3786('0xd4')][_0x3786('0xf3')][_0x3786('0x5c')](_0x294991);}[_0x3786('0xb1')](_0x52ca64,_0x436983,_0x3a9637,_0x541345){const _0x406951=new Map(_0x436983),_0x2c306f=new Map(_0x4c85e6(_0x541345)),_0xf8cff0=new Map();for(const [_0x1e0aae,_0x1e5065]of _0x3a9637)_0xf8cff0[_0x3786('0x5a')](_0x1e0aae,{'start':_0x1e5065['start'][_0x3786('0xe0')](),'end':_0x1e5065[_0x3786('0x12')][_0x3786('0xe0')](),'rootName':_0x1e5065[_0x3786('0xe')]['rootName']});this['_savedMetaData'][_0x3786('0x5a')](_0x52ca64,{'roots':_0x406951,'markers':_0xf8cff0,'rootsAttributes':_0x2c306f});}[_0x3786('0x75')](_0x41f6b1){this['_savedMetaData'][_0x3786('0xe9')](_0x41f6b1);}[_0x3786('0xa5')](){this['_reset'](),this[_0x3786('0xe2')]=-0x1,this[_0x3786('0x93')]=-0x1,this['_savedMetaData']['clear'](),this[_0x3786('0x4c')](this[_0x3786('0x31')]);}[_0x3786('0xc4')](){this['_touched']['clear'](),this['_touchedMarkers'][_0x3786('0xfe')](),this['_touchedRoots']['clear'](),this['_diffRoots'][_0x3786('0xfe')](),this[_0x3786('0xdf')]['clear'](),this[_0x3786('0xba')][_0x3786('0xfe')](),this[_0x3786('0x103')][_0x3786('0xfe')](),this[_0x3786('0x62')]['clear'](),this[_0x3786('0xdc')][_0x3786('0xfe')](),this['_markers'][_0x3786('0xfe')](),this[_0x3786('0xd0')]=0x1,this[_0x3786('0x83')]=this[_0x3786('0xd0')];}['_makeIdsRoot'](_0x5abc5f,_0x5a29af=null){let _0x1f0f11=null;_0x5abc5f['is']('documentFragment')||(_0x1f0f11=new _0x1b8bbd(_0x5abc5f[_0x3786('0xd7')],{'vid_start':null===_0x5a29af?this['_revisionId']++:_0x5a29af++}));const _0x2e5653=[];for(const _0x4afafa of _0x5abc5f[_0x3786('0x3e')]())if(_0x4afafa['is'](_0x3786('0xaa'))){_0x2e5653['push'](this[_0x3786('0x16')](_0x4afafa,_0x5a29af));const _0x5efdc3=_0x2e5653[_0x2e5653[_0x3786('0x0')]-0x1];null!==_0x5a29af&&(_0x5a29af=_0x5efdc3['is'](_0x3786('0xaa'),_0x3786('0xa0'))?_0x5efdc3[_0x3786('0x82')](_0x3786('0x1d'))+0x1:_0x5efdc3['getAttribute'](_0x3786('0x92'))+0x1);}else for(let _0x2b476a=0x0;_0x2b476a<_0x4afafa[_0x3786('0x5e')];_0x2b476a++)_0x2e5653[_0x3786('0x79')](new _0x1b8bbd(_0x3786('0xa0'),{'vid':null===_0x5a29af?this[_0x3786('0xd0')]++:_0x5a29af++}));if(_0x5abc5f['is'](_0x3786('0x60'))){const _0x1dc195=G(_0x5abc5f[_0x3786('0x40')]);return _0x1dc195[_0x3786('0xa8')](0x0,_0x2e5653),_0x1dc195;}return _0x1f0f11['_setAttribute']('vid_end',null===_0x5a29af?this[_0x3786('0xd0')]++:_0x5a29af++),_0x1f0f11[_0x3786('0xa8')](0x0,_0x2e5653),_0x1f0f11;}[_0x3786('0x7a')](_0x4689a7,_0x22fd3d,_0x41d91c){this['_reset']();const {roots:_0x518e46,markers:_0x1836ad,rootsAttributes:_0x64875d}=this[_0x3786('0xa')][_0x3786('0x105')](_0x4689a7);this[_0x3786('0xba')]=new Map(_0x518e46),this[_0x3786('0x103')]=new Map(_0x4c85e6(_0x64875d));for(const [_0x5f5248,_0x163114]of this[_0x3786('0xba')])if(_0x3786('0xea')!==_0x5f5248&&(this['_diffRoots']['set'](_0x5f5248,q(_0x163114)),this['_diffRootsAttributes']=new Map(_0x4c85e6(_0x64875d)),_0x41d91c)){const _0x207f02=this[_0x3786('0xd0')];this[_0x3786('0x62')][_0x3786('0x5a')](_0x5f5248,this[_0x3786('0x16')](_0x163114)),this[_0x3786('0xdc')][_0x3786('0x5a')](_0x5f5248,this[_0x3786('0x16')](_0x163114,_0x207f02));}this[_0x3786('0x83')]=this[_0x3786('0xd0')],this['_diffRoots'][_0x3786('0x5a')](_0x3786('0xea'),q(this['_baseRoots'][_0x3786('0x105')]('$graveyard'))),_0x41d91c&&this[_0x3786('0x62')][_0x3786('0x5a')]('$graveyard',this[_0x3786('0x16')](this['_baseRoots']['get'](_0x3786('0xea'))));for(const [_0x45c8d8,_0xf44a08]of _0x1836ad){const _0x56d774=this[_0x3786('0xba')][_0x3786('0x105')](_0xf44a08[_0x3786('0x40')]),_0x8b1bd0=this[_0x3786('0xd1')][_0x3786('0x105')](_0xf44a08[_0x3786('0x40')]),_0x3b08d0=new _0x53717c(this[_0x3786('0xac')](_0xf44a08[_0x3786('0x52')],_0x56d774),this[_0x3786('0xac')](_0xf44a08[_0x3786('0x12')],_0x56d774)),_0x2c5ade=this['_fixRange'](_0x3b08d0,_0x8b1bd0);_0x56d774[_0x3786('0xff')]['set'](_0x45c8d8,_0x3b08d0),this[_0x3786('0xd8')][_0x3786('0x5a')](_0x45c8d8,_0x2c5ade);}this[_0x3786('0x88')](_0x4689a7,_0x22fd3d,_0x41d91c);}[_0x3786('0x88')](_0x3ac87d,_0x117414,_0x1778cf){for(const _0x1f0a97 of this[_0x3786('0x31')][_0x3786('0x4e')](_0x3ac87d,_0x117414))this['_handleOperation'](_0x1f0a97,_0x1778cf);for(const _0x35577b of this[_0x3786('0xd1')]['values']())_0x35577b[_0x3786('0xff')][_0x3786('0xfe')]();for(const [_0x22c3e4,_0xef2ca6]of this[_0x3786('0xd8')]){this[_0x3786('0xd1')][_0x3786('0x105')](_0xef2ca6['root'][_0x3786('0x40')])[_0x3786('0xff')]['set'](_0x22c3e4,_0xef2ca6[_0x3786('0xe0')]());}const _0x143017=new Map(),_0x3a4aa7=new Map();for(const [_0x11e298,_0x3add33]of this[_0x3786('0xd1')])_0x143017[_0x3786('0x5a')](_0x11e298,q(_0x3add33)),_0x3a4aa7['set'](_0x11e298,this[_0x3786('0xdf')][_0x3786('0x105')](_0x11e298));this['_saveMetaData'](_0x117414,_0x143017,this[_0x3786('0xd8')],_0x3a4aa7);}[_0x3786('0x89')](_0x5340a2){const _0x289b7e=Array[_0x3786('0xe7')](this[_0x3786('0xa')][_0x3786('0xc7')]());_0x289b7e[_0x3786('0x81')]((_0x53c0f7,_0x28d149)=>_0x53c0f7-_0x28d149),_0x289b7e[_0x3786('0x54')]();for(const _0x501ac9 of _0x289b7e)if(_0x501ac9<_0x5340a2)return _0x501ac9;return Number[_0x3786('0x30')];}[_0x3786('0xbb')](_0x6b0ab4,_0x3f9337){const _0x3b0600=Array[_0x3786('0xe7')](_0x3f9337[_0x3786('0xff')])[_0x3786('0xdb')](([_0x504240,_0x3fa185])=>[_0x504240,this[_0x3786('0xeb')](_0x3fa185,_0x6b0ab4)]);_0x6b0ab4[_0x3786('0xff')]=new Map(_0x3b0600);}[_0x3786('0x47')](_0x35df0a){for(const _0x30b7eb of this[_0x3786('0xd8')]['values']()){const _0x42218e=_0x30b7eb['getTransformedByOperation'](_0x35df0a),_0x3a460f=_0x53717c[_0x3786('0xad')](_0x42218e);_0x30b7eb['start']=_0x3a460f[_0x3786('0x52')],_0x30b7eb[_0x3786('0x12')]=_0x3a460f[_0x3786('0x12')];}}['_handleOperation'](_0x23f937,_0x2726c6){if(_0x3786('0x53')==_0x23f937[_0x3786('0xb8')]||_0x3786('0x59')==_0x23f937[_0x3786('0xb8')])return void this[_0x3786('0xe5')](_0x23f937,_0x2726c6);if(_0x3786('0x64')==_0x23f937[_0x3786('0xb8')]){const _0xa061a3=_0x23f937[_0x3786('0x5f')][_0x3786('0xe')][_0x3786('0x40')];this['_diffRoots'][_0x3786('0x1f')](_0xa061a3)||(this[_0x3786('0xd1')]['set'](_0xa061a3,G(_0xa061a3,!0x0)),this[_0x3786('0xdf')][_0x3786('0x5a')](_0xa061a3,{}),_0x2726c6&&this[_0x3786('0x62')][_0x3786('0x5a')](_0xa061a3,G(_0xa061a3,!0x0)));}if('addRootAttribute'==_0x23f937[_0x3786('0xb8')]||_0x3786('0x49')==_0x23f937[_0x3786('0xb8')]||_0x3786('0xde')==_0x23f937[_0x3786('0xb8')])return void this[_0x3786('0xc8')](_0x23f937);const _0x467547=this[_0x3786('0x91')](_0x23f937,this[_0x3786('0xd1')]);if(_0x3786('0x3b')!==_0x23f937[_0x3786('0xb8')]&&(_0x467547['_execute'](),this[_0x3786('0x47')](_0x467547)),_0x2726c6)switch(_0x467547[_0x3786('0xb8')]){case _0x3786('0x64'):this[_0x3786('0xb9')](_0x23f937);break;case _0x3786('0x73'):case _0x3786('0xd5'):case _0x3786('0x22'):this[_0x3786('0xb7')](_0x23f937);break;case'merge':this[_0x3786('0x3a')](_0x23f937);break;case _0x3786('0x9'):this[_0x3786('0x4d')](_0x23f937);break;case _0x3786('0x3b'):this[_0x3786('0x5d')](_0x23f937);}}[_0x3786('0x91')](_0x55bc7c,_0x150993){const _0x5d5197=_0x55bc7c[_0x3786('0xe0')]();return _0x5d5197[_0x3786('0xb6')]=_0x55bc7c[_0x3786('0xb6')],this['_fixOperation'](_0x5d5197,_0x150993),_0x5d5197;}[_0x3786('0x18')](_0x35cbbb){return _0x35cbbb[_0x3786('0xdb')](_0x530413=>{const _0x2b2669=this['_getVidAttributeName'](_0x530413);return Number(_0x530413[_0x3786('0x45')][_0x3786('0x82')](_0x2b2669));});}[_0x3786('0x78')](_0x691cb3,_0x5243bc){if(_0x691cb3['is'](_0x3786('0xaa'),'$text'))_0x5243bc[_0x3786('0x79')]({'item':_0x691cb3,'type':_0x3786('0xfb')});else{_0x691cb3['is'](_0x3786('0xaa'))&&_0x5243bc[_0x3786('0x79')]({'item':_0x691cb3,'type':_0x3786('0xc3')});for(const _0xebc827 of _0x691cb3['getChildren']())this[_0x3786('0x78')](_0xebc827,_0x5243bc);_0x691cb3['is'](_0x3786('0xaa'))&&_0x5243bc[_0x3786('0x79')]({'item':_0x691cb3,'type':_0x3786('0x66')});}return _0x5243bc;}[_0x3786('0xee')](){const _0x2af9ba=new Map(this[_0x3786('0x15')]),_0x34e0a7=new Map(_0x2af9ba),_0x115884=new Map(),_0xe36d2a={'insertions':{},'deletions':{}},_0x4e15d4={'insertions':{},'deletions':{}},_0x5b4650=new Map(),_0x3c82d2=new Set([...this[_0x3786('0xba')][_0x3786('0xc7')](),...this['_diffRoots'][_0x3786('0xc7')]()]);_0x3c82d2[_0x3786('0xe9')](_0x3786('0xea'));for(const _0x5a2419 of _0x3c82d2){const _0x2a3131=this[_0x3786('0xd1')][_0x3786('0x105')](_0x5a2419)||G(_0x5a2419,!0x1),_0x4f5137=this[_0x3786('0xba')][_0x3786('0x105')](_0x5a2419)||G(_0x5a2419,!0x1);_0x2a3131[_0x3786('0xc0')]()||_0x4f5137[_0x3786('0xc0')]()?(_0xe36d2a[_0x3786('0x39')][_0x5a2419]=q(_0x2a3131),_0xe36d2a[_0x3786('0xbd')][_0x5a2419]=q(_0x4f5137),this['_copyMarkers'](_0xe36d2a[_0x3786('0xbd')][_0x5a2419],_0x4f5137),this[_0x3786('0xbb')](_0xe36d2a[_0x3786('0x39')][_0x5a2419],_0x2a3131),_0x4e15d4[_0x3786('0x39')][_0x5a2419]=this[_0x3786('0x78')](this[_0x3786('0x62')][_0x3786('0x105')](_0x5a2419),[]),_0x4e15d4[_0x3786('0xbd')][_0x5a2419]=this[_0x3786('0x78')](this['_baseIdsRoots'][_0x3786('0x105')](_0x5a2419)||G(_0x5a2419,!0x1),[])):_0x3c82d2[_0x3786('0xe9')](_0x5a2419);}for(const _0x50b9ea of _0x3c82d2){const _0x1c5cbf=_0x4e15d4[_0x3786('0x39')][_0x50b9ea];for(const _0x3a6b3d of _0x1c5cbf){const _0x3f025b=this[_0x3786('0xb4')](_0x3a6b3d),_0x19ff98=_0x3a6b3d[_0x3786('0x45')][_0x3786('0x82')](_0x3f025b);_0x34e0a7['delete'](_0x19ff98),_0x19ff98>=this[_0x3786('0x83')]&&_0x115884[_0x3786('0x5a')](_0x19ff98,_0x2af9ba[_0x3786('0x105')](_0x19ff98));}}for(const _0x4fa22b of _0x3c82d2){const _0x22f81e=_0x4e15d4[_0x3786('0x39')][_0x4fa22b],_0x735839=this[_0x3786('0x18')](_0x4e15d4[_0x3786('0xbd')][_0x4fa22b]);let _0xb18136=0x0;for(const _0x11773b of _0x22f81e){const _0x2dbe2d=this[_0x3786('0xb4')](_0x11773b),_0x307862=_0x11773b[_0x3786('0x45')]['getAttribute'](_0x2dbe2d);if(!_0x115884[_0x3786('0x1f')](_0x307862)&&!_0x5b4650[_0x3786('0x1f')](_0x307862)){if(_0x34e0a7['has'](_0x307862))_0xb18136++;else{if(_0x307862!=_0x735839[_0xb18136]){const _0x37f5de=_0x2af9ba[_0x3786('0x105')](_0x307862)||_0x2af9ba[_0x3786('0x105')](_0x735839[_0xb18136]);for(;_0x307862!=_0x735839[_0xb18136];)_0x34e0a7[_0x3786('0x1f')](_0x735839[_0xb18136])||(_0x5b4650[_0x3786('0x5a')](_0x735839[_0xb18136],_0x37f5de),_0x2af9ba[_0x3786('0x5a')](_0x735839[_0xb18136],_0x37f5de)),_0xb18136++;}_0xb18136++;}}}}for(const _0x4320aa of _0x3c82d2){const _0x229ba2=_0x4e15d4[_0x3786('0x39')][_0x4320aa];for(const _0x1e07a4 of _0x229ba2){const _0x43de55=this[_0x3786('0xb4')](_0x1e07a4),_0xa59d7a=_0x1e07a4[_0x3786('0x45')][_0x3786('0x82')](_0x43de55);if(_0x5b4650[_0x3786('0x1f')](_0xa59d7a)){const _0x25db0c=_0x5b4650[_0x3786('0x105')](_0xa59d7a);_0x34e0a7['has'](_0xa59d7a)||_0x34e0a7[_0x3786('0x5a')](_0xa59d7a,{..._0x25db0c}),_0x115884[_0x3786('0x5a')](_0xa59d7a,{..._0x25db0c});}}}for(const _0x2727b9 of _0x34e0a7[_0x3786('0xc7')]())_0x2727b9>=this[_0x3786('0x83')]&&_0x34e0a7[_0x3786('0xe9')](_0x2727b9);const _0x49b18a=new Map();for(const _0x4024cb of _0x3c82d2){let _0x31e5d3=_0x4e15d4[_0x3786('0x39')][_0x4024cb];for(const _0x357aaa of _0x31e5d3)if(_0x357aaa[_0x3786('0x45')]['is'](_0x3786('0xaa'),_0x3786('0x90'))){const _0x32117e=this[_0x3786('0xb4')](_0x357aaa),_0x169e51=_0x357aaa['item'][_0x3786('0x82')](_0x32117e);if(_0x115884[_0x3786('0x1f')](_0x169e51)){const _0xbb2d23=_0x357aaa[_0x3786('0x45')]['parent']['parent']['getAttribute'](_0x3786('0x48')),_0x3a6e8f=_0x49b18a['get'](_0xbb2d23)||new Set();_0x3a6e8f[_0x3786('0x46')](_0x115884['get'](_0x169e51)[_0x3786('0x8c')]),_0x49b18a[_0x3786('0x5a')](_0xbb2d23,_0x3a6e8f);}}_0x31e5d3=_0x4e15d4['deletions'][_0x4024cb];for(const _0x12ef7b of _0x31e5d3)if(_0x12ef7b['item']['is'](_0x3786('0xaa'),_0x3786('0x90'))){const _0x1093ae=this[_0x3786('0xb4')](_0x12ef7b),_0x17191a=_0x12ef7b[_0x3786('0x45')][_0x3786('0x82')](_0x1093ae);if(_0x34e0a7['has'](_0x17191a)){const _0x2b4055=_0x12ef7b[_0x3786('0x45')][_0x3786('0x27')][_0x3786('0x27')][_0x3786('0x82')]('vid_start'),_0x3ff116=_0x49b18a['get'](_0x2b4055)||new Set();_0x3ff116['add'](_0x34e0a7[_0x3786('0x105')](_0x17191a)['userId']),_0x49b18a[_0x3786('0x5a')](_0x2b4055,_0x3ff116);}}for(const _0x2d676d of _0x49b18a[_0x3786('0xc7')]())(_0x115884[_0x3786('0x1f')](_0x2d676d)||_0x34e0a7[_0x3786('0x1f')](_0x2d676d))&&_0x49b18a[_0x3786('0xe9')](_0x2d676d);}for(const _0x9fc3d2 of _0x3c82d2){const _0x136853=_0x4e15d4[_0x3786('0x39')][_0x9fc3d2];let _0x44f7ea=null,_0xaf8f7a=null;for(const _0x34c57b of _0x136853){const _0x786237=this[_0x3786('0xb4')](_0x34c57b),_0x36b1b6=_0x34c57b[_0x3786('0x45')][_0x3786('0x82')](_0x786237),_0x4a4982=_0x49b18a[_0x3786('0x105')](_0x36b1b6);_0x4a4982&&'elementStart'==_0x34c57b['type']&&(_0x44f7ea=Array[_0x3786('0xe7')](_0x4a4982)[0x0],_0xaf8f7a=_0x34c57b[_0x3786('0x45')][_0x3786('0x82')]('vid_end')),_0x44f7ea&&(_0x34e0a7[_0x3786('0x5a')](_0x36b1b6,{'userId':_0x44f7ea}),_0x115884['set'](_0x36b1b6,{'userId':_0x44f7ea})),_0x36b1b6==_0xaf8f7a&&(_0x44f7ea=null,_0xaf8f7a=null);}}const _0x4537ba={},_0x197c55=new Set();for(const _0x2f031a of _0x3c82d2){const _0x2fad5e=_0xe36d2a[_0x3786('0xbd')][_0x2f031a],_0x1d3313=_0xe36d2a[_0x3786('0x39')][_0x2f031a];for(const {userId:_0x2666c3}of this[_0x3786('0x87')][_0x3786('0x1c')]())null!==_0x2666c3&&_0x197c55['add'](_0x2666c3);for(const {userId:_0x19f790}of this[_0x3786('0xf8')][_0x3786('0x1c')]())null!==_0x19f790&&_0x197c55[_0x3786('0x46')](_0x19f790);this[_0x3786('0xe4')](_0x1d3313,_0x4e15d4['insertions'][_0x2f031a],_0x115884,_0x3786('0xc6'),_0x197c55),this[_0x3786('0xe4')](_0x2fad5e,_0x4e15d4[_0x3786('0xbd')][_0x2f031a],_0x34e0a7,_0x3786('0x51'),_0x197c55),_0x4537ba[_0x2f031a]={'insertions':this[_0x3786('0x13')](_0x1d3313),'deletions':this['_prepareViewToSave'](_0x2fad5e),'attachChange':this[_0x3786('0xf8')]['get'](_0x2f031a)||null,'attributesBefore':_0x4c85e6(this['_baseRootsAttributes']['get'](_0x2f031a))||{},'attributesAfter':_0x4c85e6(this[_0x3786('0xdf')][_0x3786('0x105')](_0x2f031a))};}return{'diffData':_0x4537ba,'authorsIds':Array['from'](_0x197c55)};}['_processRootBeforeSave'](_0x39452b){for(const [,_0x3b1a3e]of _0x39452b['markers']){const _0xbe1db0=_0x3b1a3e[_0x3786('0x52')][_0x3786('0xf0')]()[_0x3786('0xd6')](_0x5a0dfc=>_0x3786('0x90')==_0x5a0dfc[_0x3786('0xd7')]);for(const _0x3566f7 of _0xbe1db0)0x1==_0x3566f7['childCount']&&_0x3566f7['getChild'](0x0)['is'](_0x3786('0xaa'),_0x3786('0xca'))&&_0x3566f7['getChild'](0x0)[_0x3786('0x1')](_0x3786('0x55'),!0x0);}}[_0x3786('0x13')](_0x5565d9){this[_0x3786('0x11')](_0x5565d9);const _0x48dbdb=this[_0x3786('0xd4')][_0x3786('0xf3')]['toView'](_0x5565d9,{}),_0x4a5757=Array['from'](_0x48dbdb[_0x3786('0x3e')]())[_0x3786('0xdb')](_0x11032e=>this[_0x3786('0x2b')](_0x11032e));return JSON[_0x3786('0x6b')](_0x4a5757);}[_0x3786('0x2b')](_0x5dc327){if(_0x5dc327['is'](_0x3786('0xa0')))return _0x5dc327[_0x3786('0xf3')];{const _0xb46910=_0x5dc327;return{'type':Object[_0x3786('0xc7')](B)[_0x3786('0x3f')](_0x1a8ecf=>_0x5dc327 instanceof B[_0x1a8ecf]),'name':_0xb46910['name'],'attributes':Array[_0x3786('0xe7')](_0xb46910[_0x3786('0x8f')]()),'children':Array['from'](_0xb46910[_0x3786('0x3e')]())[_0x3786('0xdb')](_0x137021=>this[_0x3786('0x2b')](_0x137021))};}}[_0x3786('0xe4')](_0x48fb5c,_0x5c6d26,_0x55fd98,_0x5914d8,_0x332415){let _0x5e0d23=null,_0x1dc323=null,_0x3d129b=0x0;const _0x5ccc22=this[_0x3786('0xd4')][_0x3786('0x23')];for(let _0x407472=0x0;_0x407472<_0x5c6d26[_0x3786('0x0')];_0x407472++){const _0x192da6=this['_getVidAttributeName'](_0x5c6d26[_0x407472]),_0x2c3516=_0x5c6d26[_0x407472][_0x3786('0x45')]['getAttribute'](_0x192da6),_0x5f10d8=_0x55fd98[_0x3786('0x105')](_0x2c3516),_0x6bad9e=_0x407472==_0x5c6d26[_0x3786('0x0')]-0x1;(!_0x5e0d23&&_0x5f10d8&&(_0x5e0d23=_0x5f10d8,_0x1dc323=_0x5c6d26[_0x407472]),_0x5e0d23&&(!_0x5f10d8||_0x5f10d8['userId']!=_0x5e0d23['userId']))&&(_0x5a6766(_0x5f10d8,L(_0x1dc323,_0x48fb5c,_0x5ccc22),L(_0x5c6d26[_0x407472],_0x48fb5c,_0x5ccc22)),_0x5e0d23=_0x5f10d8||null,_0x1dc323=_0x5f10d8?_0x5c6d26[_0x407472]:null),_0x5e0d23&&_0x6bad9e&&_0x5a6766(_0x5f10d8,L(_0x1dc323,_0x48fb5c,_0x5ccc22),W(_0x5c6d26[_0x407472],_0x48fb5c,_0x5ccc22));}function _0x5a6766(_0x388deb,_0x3c983e,_0x2891b7){const _0xe4af06=_0x5e0d23[_0x3786('0x8c')],_0xd878ce=_0x3786('0xe3')+_0x5914d8+':'+_0xe4af06+':'+_0x3d129b++,_0x535753=_0x5ccc22[_0x3786('0xe6')](_0x3c983e,_0x2891b7);_0x48fb5c[_0x3786('0xff')]['set'](_0xd878ce,_0x535753),null!==_0xe4af06&&_0x332415['add'](_0xe4af06);}}[_0x3786('0xb4')](_0x1ee2be){switch(_0x1ee2be['type']){case'elementStart':return _0x3786('0x48');case'elementEnd':return'vid_end';default:return'vid';}}[_0x3786('0x69')](_0x4ae38e,_0x5d03f5){_0x4ae38e[_0x3786('0x63')]=null;for(const _0x5295d8 in _0x4ae38e){const _0x3fa72=_0x4ae38e[_0x5295d8];if(_0x3fa72 instanceof _0x3128a9){const _0x99e527=_0x5d03f5[_0x3786('0x105')](_0x3fa72[_0x3786('0xe')][_0x3786('0x40')]);_0x4ae38e[_0x5295d8]=this[_0x3786('0xac')](_0x3fa72,_0x99e527);}if(_0x3fa72 instanceof _0x53717c){const _0x30fc0b=_0x5d03f5[_0x3786('0x105')](_0x3fa72[_0x3786('0xe')][_0x3786('0x40')]);_0x4ae38e[_0x5295d8]=this['_fixRange'](_0x3fa72,_0x30fc0b);}_0x3786('0xe')===_0x5295d8&&(_0x4ae38e[_0x3786('0xe')]=_0x5d03f5['get'](_0x4ae38e['root'][_0x3786('0x40')]));}}['_fixRange'](_0x1878ae,_0x1ea471){return this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0xe6')](this['_fixPosition'](_0x1878ae[_0x3786('0x52')],_0x1ea471),this[_0x3786('0xac')](_0x1878ae[_0x3786('0x12')],_0x1ea471));}[_0x3786('0xac')](_0x52c0d9,_0x22d2ef){return this['editor'][_0x3786('0x23')][_0x3786('0xa7')](_0x22d2ef,_0x52c0d9['path'],_0x52c0d9[_0x3786('0x99')]);}[_0x3786('0xb9')](_0x1d908c){const _0x3931fb=this['_idsRoots'][_0x3786('0x105')](_0x1d908c[_0x3786('0x5f')][_0x3786('0xe')][_0x3786('0x40')]),_0x22c117=this[_0x3786('0xac')](_0x1d908c[_0x3786('0x5f')],_0x3931fb),_0x21d480=null===_0x1d908c['_authorId']?null:_0x1d908c[_0x3786('0xb6')]||this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')]('Users')['me']['id'],_0x2a548c=_0x22c117[_0x3786('0x27')],_0xbe003b=this['_revisionId'],_0x3178b0=[];for(const _0x496f82 of _0x1d908c['nodes'])if(_0x496f82['is']('element'))_0x3178b0[_0x3786('0x79')](this['_makeIdsRoot'](_0x496f82));else for(let _0x53b252=0x0;_0x53b252<_0x496f82[_0x3786('0x5e')];_0x53b252++)_0x3178b0['push'](new _0x1b8bbd(_0x3786('0xa0'),{'vid':this[_0x3786('0xd0')]++}));const _0xfbe362=this[_0x3786('0xd0')];for(let _0x4e2d81=_0xbe003b;_0x4e2d81<_0xfbe362;_0x4e2d81++)this[_0x3786('0x15')][_0x3786('0x5a')](_0x4e2d81,{'userId':_0x21d480});_0x2a548c['_insertChild'](_0x22c117[_0x3786('0xb0')],_0x3178b0);}[_0x3786('0xb7')](_0x1c052d){(_0x1c052d=this[_0x3786('0x91')](_0x1c052d,this[_0x3786('0x62')]))[_0x3786('0x2a')]();const _0x56d369=null===_0x1c052d[_0x3786('0xb6')]?null:_0x1c052d[_0x3786('0xb6')]||this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')]('Users')['me']['id'],_0x3807f2=_0x1c052d[_0x3786('0x98')](),_0x45991a=_0x3807f2[_0x3786('0x27')],_0x4c1fc4=_0x3807f2[_0x3786('0xb0')];!function _0x32f0ce(_0x443d95,_0xc39062,_0x8d5ab6,_0x3fcc9f){for(let _0x2417c7=_0x8d5ab6;_0x2417c7<_0x3fcc9f;_0x2417c7++){const _0x3d7b93=_0xc39062[_0x3786('0x101')](_0x2417c7);_0x3d7b93['is'](_0x3786('0xaa'),'$text')?_0x443d95[_0x3786('0x5a')](_0x3d7b93[_0x3786('0x82')](_0x3786('0x1d')),{'userId':_0x56d369}):(_0x443d95[_0x3786('0x5a')](_0x3d7b93[_0x3786('0x82')]('vid_start'),{'userId':_0x56d369}),_0x32f0ce(_0x443d95,_0x3d7b93,0x0,_0x3d7b93[_0x3786('0x25')]),_0x443d95[_0x3786('0x5a')](_0x3d7b93['getAttribute'](_0x3786('0x92')),{'userId':_0x56d369}));}}(this[_0x3786('0x15')],_0x45991a,_0x4c1fc4,_0x4c1fc4+_0x1c052d[_0x3786('0x57')]);}[_0x3786('0x3a')](_0x554daf){const _0x372ab6=null===(_0x554daf=this[_0x3786('0x91')](_0x554daf,this['_idsRoots']))['_authorId']?null:_0x554daf['_authorId']||this[_0x3786('0xd4')][_0x3786('0x100')]['get'](_0x3786('0x7c'))['me']['id'],_0x59b6bb=_0x554daf[_0x3786('0x70')]['parent'],_0x2ed792=_0x554daf[_0x3786('0xfd')][_0x3786('0x27')],_0xf8010f=_0x59b6bb['getAttribute'](_0x3786('0x92')),_0x1a61f3=_0x2ed792[_0x3786('0x82')]('vid_start');_0x59b6bb['_setAttribute'](_0x3786('0x92'),_0x2ed792['getAttribute']('vid_end')),_0x2ed792['_setAttribute']('vid_end',_0xf8010f),this[_0x3786('0x15')][_0x3786('0x5a')](_0x1a61f3,{'userId':_0x372ab6}),this[_0x3786('0x15')][_0x3786('0x5a')](_0xf8010f,{'userId':_0x372ab6}),_0x554daf[_0x3786('0x2a')]();}['_handleSplitOperation'](_0x29eea7){const _0xb800d6=null===(_0x29eea7=this[_0x3786('0x91')](_0x29eea7,this['_idsRoots']))[_0x3786('0xb6')]?null:_0x29eea7[_0x3786('0xb6')]||this[_0x3786('0xd4')]['plugins'][_0x3786('0x105')](_0x3786('0x7c'))['me']['id'],_0x51d33a=_0x29eea7['graveyardPosition'],_0x3e0ebf=_0x29eea7['splitPosition'][_0x3786('0x27')];_0x29eea7[_0x3786('0x2a')]();const _0x327f65=_0x3e0ebf['getAttribute'](_0x3786('0x92')),_0x2e858c=_0x29eea7['insertionPosition'][_0x3786('0x2d')];if(_0x51d33a){const _0x86f283=_0x2e858c[_0x3786('0x82')](_0x3786('0x92')),_0x43da05=_0x3e0ebf[_0x3786('0x82')](_0x3786('0x92'));_0x3e0ebf['_setAttribute'](_0x3786('0x92'),_0x86f283),_0x2e858c[_0x3786('0x1')](_0x3786('0x92'),_0x43da05),this['_touched']['set'](_0x3e0ebf[_0x3786('0x82')](_0x3786('0x92')),{'userId':_0xb800d6}),this[_0x3786('0x15')][_0x3786('0x5a')](_0x2e858c[_0x3786('0x82')]('vid_start'),{'userId':_0xb800d6});}else{const _0x4e20f5=this[_0x3786('0xd0')]++,_0x24457f=this[_0x3786('0xd0')]++;_0x3e0ebf[_0x3786('0x1')](_0x3786('0x92'),_0x4e20f5),_0x2e858c[_0x3786('0x1')](_0x3786('0x48'),_0x24457f),_0x2e858c[_0x3786('0x1')]('vid_end',_0x327f65),this['_touched'][_0x3786('0x5a')](_0x4e20f5,{'userId':_0xb800d6}),this['_touched'][_0x3786('0x5a')](_0x24457f,{'userId':_0xb800d6});}}['_handleMarkerOperation'](_0x5146d1){if(!_0x5146d1[_0x3786('0x106')])return;const _0x3480f5=(_0x5146d1=this['_cloneOperation'](_0x5146d1,this[_0x3786('0xd1')]))['oldRange']?_0x5146d1[_0x3786('0xab')]['root']:null,_0xafa8dc=_0x5146d1[_0x3786('0xc2')]?_0x5146d1['newRange']['root']:null;_0x3480f5&&this[_0x3786('0xd8')]['delete'](_0x5146d1['name']),_0xafa8dc&&this[_0x3786('0xd8')]['set'](_0x5146d1[_0x3786('0xd7')],_0x5146d1[_0x3786('0xc2')][_0x3786('0xe0')]());const _0x254aa3=null===_0x5146d1[_0x3786('0xb6')]?null:_0x5146d1['_authorId']||this[_0x3786('0xd4')][_0x3786('0x100')]['get'](_0x3786('0x7c'))['me']['id'],_0x5b0c60=_0x5146d1[_0x3786('0xd7')];if(!this[_0x3786('0x87')]['has'](_0x5b0c60))return void this[_0x3786('0x87')][_0x3786('0x5a')](_0x5b0c60,{'range':_0x5146d1[_0x3786('0xab')],'userId':_0x254aa3});const _0x451044=this[_0x3786('0x87')][_0x3786('0x105')](_0x5b0c60),_0x35b196=_0x451044[_0x3786('0xf9')],_0xbc8927=_0x5146d1[_0x3786('0xc2')];null==_0x35b196&&null==_0xbc8927||_0x35b196&&_0xbc8927&&_0x35b196[_0x3786('0x76')](_0xbc8927)?this[_0x3786('0x87')]['delete'](_0x5146d1[_0x3786('0xd7')]):_0x451044[_0x3786('0x8c')]=_0x254aa3;}[_0x3786('0xe5')](_0x35fb1c,_0x492a09){this[_0x3786('0xd1')]['has'](_0x35fb1c['rootName'])?this['_diffRoots'][_0x3786('0x105')](_0x35fb1c['rootName'])[_0x3786('0xa3')]=_0x35fb1c[_0x3786('0x32')]:(this['_diffRoots'][_0x3786('0x5a')](_0x35fb1c[_0x3786('0x40')],G(_0x35fb1c['rootName'],!0x0)),this[_0x3786('0xdf')]['set'](_0x35fb1c[_0x3786('0x40')],{}),_0x492a09&&this[_0x3786('0x62')][_0x3786('0x5a')](_0x35fb1c[_0x3786('0x40')],G(_0x35fb1c[_0x3786('0x40')],!0x0)));const _0x4139dc=null===_0x35fb1c['_authorId']?null:_0x35fb1c[_0x3786('0xb6')]||this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x7c'))['me']['id'],_0x3ae180=this[_0x3786('0xf8')]['get'](_0x35fb1c[_0x3786('0x40')]);_0x3ae180&&_0x3ae180['userId']===_0x4139dc?this[_0x3786('0xf8')][_0x3786('0xe9')](_0x35fb1c[_0x3786('0x40')]):this[_0x3786('0xf8')][_0x3786('0x5a')](_0x35fb1c['rootName'],{'userId':_0x4139dc,'isAttached':_0x35fb1c[_0x3786('0x32')]});}[_0x3786('0xc8')](_0xa3566b){const _0x517b4e=this[_0x3786('0xdf')][_0x3786('0x105')](_0xa3566b[_0x3786('0xe')]['rootName']);null===_0xa3566b['newValue']?delete _0x517b4e[_0xa3566b['key']]:_0x517b4e[_0xa3566b['key']]=_0xa3566b[_0x3786('0x50')];}}function q(_0x574cc5){const _0x232b9b=G(_0x574cc5[_0x3786('0x40')],_0x574cc5['isAttached']());for(const _0x368fcc of _0x574cc5[_0x3786('0x3e')]()){const _0x6490=_0x368fcc[_0x3786('0x8d')](!0x0);_0x232b9b[_0x3786('0x84')](_0x6490);}return _0x232b9b;}function G(_0x3c6bbc,_0x8374c0=!0x0){const _0x55c896=new _0x41a162();return _0x55c896[_0x3786('0x40')]=_0x3c6bbc,_0x55c896[_0x3786('0xa3')]=_0x8374c0,_0x55c896['isAttached']=()=>_0x55c896[_0x3786('0xa3')],_0x55c896;}function L(_0x4bd7fa,_0x469580,_0x43ae1b){const _0x1ba304=_0x3786('0x66')==_0x4bd7fa[_0x3786('0xb8')]?_0x43ae1b[_0x3786('0xb5')](_0x4bd7fa['item'],_0x3786('0x12')):_0x43ae1b[_0x3786('0xce')](_0x4bd7fa['item']);return _0x43ae1b[_0x3786('0xa7')](_0x469580,_0x1ba304[_0x3786('0xf7')],_0x1ba304[_0x3786('0x99')]);}function W(_0x5b8378,_0x1c7626,_0x41ad69){const _0x6452e7=_0x3786('0xc3')==_0x5b8378[_0x3786('0xb8')]?_0x41ad69[_0x3786('0xb5')](_0x5b8378[_0x3786('0x45')],0x0):_0x41ad69[_0x3786('0x41')](_0x5b8378[_0x3786('0x45')]);return _0x41ad69[_0x3786('0xa7')](_0x1c7626,_0x6452e7[_0x3786('0xf7')],_0x6452e7['stickiness']);}
23
+ const _0x1734=['_makeModelFromViewString','_touchedMarkers','_applyOperations','_revisionId','document','toModel','revision:','attributes','RevisionTracker','_touched','_copyMarkers','afterInit','_handleMarkerOperation','getTime','rootName','root','getChild','_touchedRoots','processor','getWalker','offsetSize','end','authorsIds','PendingActions','position','view','forEach','buildRevisionData','_clone','graveyardPosition','_loadState','_bufferedUpdates','_baseRoots','sourcePosition','_revisionDataBuilder','finally','getAncestors','stickiness','_savedMetaData','model','creatorId','vid_start','attachChange','revision','_isInit','shift','set','type','$text','toData','initialData','define','dataDowncast','getRoot','currentRevision','insert','useFillerType','_reset','previousPosition','values','elementEnd','add','version','revisionHistory.resumeUnsavedRevision','push','_loadedStateData','_markers','_calculateMetaData','marked','requires','createdAt','locale','move','_removePendingAction','_saveMetaData','_getVidAttributeName','_createCurrentRevision','tableCell','_createFromRanges','delete','PENDING_ACTION_REVISION_HISTORY','_continueCurrentRevision','_processRootBeforeSave','RevisionsRepository','_removeRevisionMarkers','_isAttached','length','baseVersion','_pendingAction','keys','_execute','start','_operations','config','editor','bind','updateRevisions','history','sendBufferedUpdates','documentFragment','_addPendingAction','source','_transformMarkers','getTransformedByOperation','_createInitialRevision','toVersion','_update','_setConversion','offset','Users','$graveyard','then','getChildren','filter','createRange','getRange','startsWith','getRevisionDocumentData','getRevisionRootsAttributes','getLatestVersion','merge','stringify','editing','authors','has','insertions','_startingRevisionId','split','children','targetPosition','childCount','_setAttribute','oldRange','_replaceEditorDataWithRevisionData','addRevision','_handleSplitOperation','_insertChild','userId','fromEntries','repository','_diffRootsAttributes','createPositionAfter','string','find','paragraph','reverse','newValue','max','_findInsertionIndex','revision-start','isReady','_getPreviousFrom','getIndex','markers','RealTimeCollaborationClient','getUser','_diffRoots','clone','deletions','vid_end','isEnabled','element','parse','_initialRoots','loadState','nodeAfter','_fixRange','_makeIdsRoot','roots','_handleMergeOperation','_appendChild','isAttached','key','getCurrentRevisionId','ready','adapter','_lastFrom','path','marker','_fixPosition','_getViewJson','deletion','_handleInsertOperation','keepParagraph','_getState','Empty\x20document','text','_bufferUpdate','newRange','_handleOperation','range','createRevision','splitPosition','getAttributes','toView','clear','elementStart','getRevisions','get','insertion','getOperation','reinsert','update','howMany','markerToData','data-revision-','isEqual','setRevisionData','_authorId','diffData','parent','name','isAdd','_handleRootOperation','reInit','pluginName','getRootNames','_removeMetaData','conversion','_startingVersion','_loadRevisionData','from','editor-initial-data-replaced-with-revision-data','addRootAttribute','getData','_baseIdsRoots','sort','slice','attributesAfter','NEGATIVE_INFINITY','init','fromVersion','createPositionAt','item','setSource','_cloneOperation','creator','Initial\x20revision','map','getMovedRangeStart','createPositionFromPath','resolve','dataToMarker','addRevisionData','createRangeIn','_makeRevision','_idsRoots','_generateTape','collaboration.channelId','_initialRevisionId','rootsAttributes','_getFromVersion','getRevision','_handleRootAttributeOperation','_markChanges','_getBaseVids','_handleMoveOperation','size','vid','_isPendingUpdate','_baseRootsAttributes','includes','for','getNodeByPath','_fixOperation','_source','data','getAttribute','_prepareViewToSave','plugins','initial','_lastTo'];(function(_0x458fe1,_0x17349d){const _0x4c25bd=function(_0x32d0ca){while(--_0x32d0ca){_0x458fe1['push'](_0x458fe1['shift']());}};_0x4c25bd(++_0x17349d);}(_0x1734,0x188));const _0x4c25=function(_0x458fe1,_0x17349d){_0x458fe1=_0x458fe1-0x0;let _0x4c25bd=_0x1734[_0x458fe1];return _0x4c25bd;};import{Users as _0x4d228a}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2808ac,PendingActions as _0x2899c8}from'ckeditor5/src/core';import{logWarning as _0x591ce1,uid as _0x311898}from'ckeditor5/src/utils';import{Position as _0x6ee2fe,Range as _0xd70dd2,Element as _0x41c059,DocumentFragment as _0x2f2bb2,ViewText as _0x240c52,ViewElement as _0x7a24be,ViewContainerElement as _0x1c9168,ViewAttributeElement as _0x3090fd,ViewEmptyElement as _0x1446b0,ViewRawElement as _0x4d1ce3,ViewUIElement as _0x5f1f5c,ViewDocumentFragment as _0xdb876f}from'ckeditor5/src/engine';import _0x68eede from'./revisionsrepository';import{getTranslation as _0x1c72f5}from'./utils/common-translations';import{cloneDeep as _0x461a48,isEqual as _0x4e452f}from'lodash-es';const B={'c':_0x1c9168,'a':_0x3090fd,'e':_0x1446b0,'r':_0x4d1ce3,'u':_0x5f1f5c};export default class l extends _0x2808ac{static get[_0x4c25('0x5f')](){return _0x4c25('0xa0');}static get[_0x4c25('0xdd')](){return[_0x4d228a,_0x68eede,_0x2899c8];}constructor(_0x35d3b2){super(_0x35d3b2),this[_0x4c25('0x37')]=null,this[_0x4c25('0xce')]=null,this[_0x4c25('0xba')]=new H(this['editor']),this[_0x4c25('0x81')]=this[_0x4c25('0xf6')][_0x4c25('0xf5')][_0x4c25('0x4e')](_0x4c25('0x80'))||_0x4c25('0x96'),this[_0x4c25('0xb7')]=new Map(),this[_0x4c25('0xd9')]=null;const _0x4bd836=_0x311898();this[_0x4c25('0x91')]={'history':this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0xf9')],'getLatestVersion':()=>Promise[_0x4c25('0x79')](this['editor'][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0xd6')]),'getCurrentRevisionId':()=>_0x4bd836},this[_0x4c25('0xc6')](_0x4c25('0x1e'),!0x1),this[_0x4c25('0xc6')](_0x4c25('0x28'),!0x0),this['set'](_0x4c25('0x8b'),!0x1),this['editor'][_0x4c25('0xf5')][_0x4c25('0xcb')](_0x4c25('0xd7'),!0x0),this[_0x4c25('0xf6')][_0x4c25('0x62')][_0x4c25('0x8e')]('upcast')[_0x4c25('0x7a')]({'view':'revision'});}[_0x4c25('0x6e')](){this[_0x4c25('0x13')]=this[_0x4c25('0xf6')][_0x4c25('0x95')]['get'](_0x4c25('0xeb')),this['_setConversion'](),this[_0x4c25('0xf6')][_0x4c25('0x92')]['on'](_0x4c25('0x36'),()=>{const _0x11f052=this[_0x4c25('0x13')][_0x4c25('0x84')](0x0),_0x118436=_0x11f052&&null===_0x11f052['creator']?_0x11f052:null;if(this[_0x4c25('0xe9')]=!!_0x118436&&this['editor']['config'][_0x4c25('0x4e')](_0x4c25('0xd7')),this['editor'][_0x4c25('0x95')]['has'](_0x4c25('0x22'))){const _0x3d78ab=this[_0x4c25('0x91')][_0x4c25('0x35')](),_0x49dbae=this[_0x4c25('0x13')]['getRevision'](_0x3d78ab);if(_0x49dbae)this['_startingVersion']=_0x49dbae[_0x4c25('0x6f')],this[_0x4c25('0xe9')]=!0x1;else{const _0x5b6750=this[_0x4c25('0x91')][_0x4c25('0xf9')][_0x4c25('0xf4')]['find'](_0x30d755=>!_0x30d755[_0x4c25('0xc4')]),_0x23a079=_0x5b6750?_0x5b6750[_0x4c25('0xef')]:this['_source']['history'][_0x4c25('0xd6')];_0x11f052?(_0x11f052[_0x4c25('0x101')]<_0x23a079&&_0x11f052['_update']({'toVersion':_0x23a079}),this[_0x4c25('0xe9')]?(this['_source'][_0x4c25('0x35')]=()=>_0x118436['id'],this['_startingVersion']=_0x118436[_0x4c25('0x6f')]):(this[_0x4c25('0x63')]=_0x11f052[_0x4c25('0x101')],this[_0x4c25('0xe9')]=!0x1)):(this[_0x4c25('0x63')]=_0x23a079,this[_0x4c25('0xe9')]=!0x1);}}else _0x118436&&(this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0xf9')][_0x4c25('0xd6')]=Math[_0x4c25('0x1b')](_0x118436[_0x4c25('0x101')],this[_0x4c25('0xf6')]['model'][_0x4c25('0x9c')]['history']['version']),_0x118436[_0x4c25('0x6f')]===_0x118436[_0x4c25('0x101')]?(0x0!==_0x118436[_0x4c25('0x6f')]&&(this[_0x4c25('0x91')]['getCurrentRevisionId']=()=>_0x118436['id']),this[_0x4c25('0xe9')]=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x118436['id'],this[_0x4c25('0x63')]=_0x118436[_0x4c25('0x6f')])),this[_0x4c25('0xe9')]||(this[_0x4c25('0x63')]=this[_0x4c25('0xf6')]['model'][_0x4c25('0x9c')][_0x4c25('0xd6')]);this[_0x4c25('0xba')]['init'](this[_0x4c25('0x91')][_0x4c25('0xf9')]),this[_0x4c25('0x100')](this[_0x4c25('0x63')]),this['_createCurrentRevision'](this[_0x4c25('0x63')]),this[_0x4c25('0x37')]&&this['sendBufferedUpdates']();}),this[_0x4c25('0xf7')]('isReady')['to'](this,_0x4c25('0x8b'),_0x435575=>!_0x435575);}async[_0x4c25('0xa3')](){if(this[_0x4c25('0x13')]['length']>0x0){const _0x2e4a0f=this[_0x4c25('0x13')]['getRevision'](0x0),_0x22df4a=await this[_0x4c25('0x10d')](_0x2e4a0f),_0x15d957=await this[_0x4c25('0x10e')](_0x2e4a0f);this[_0x4c25('0xd')](_0x22df4a,_0x15d957);}}[_0x4c25('0x72')](_0x413455){this['_source']=_0x413455;}async[_0x4c25('0x52')](){const _0x165f61=await this[_0x4c25('0x91')][_0x4c25('0x10f')]();if(_0x165f61>this[_0x4c25('0xce')][_0x4c25('0x101')]){await this[_0x4c25('0xb6')]();const _0x254f08=this['buildRevisionData']({'revision':this[_0x4c25('0xce')],'to':_0x165f61});_0x254f08[_0x4c25('0x3')]=_0x254f08['authorsIds']['map'](_0x32a132=>this[_0x4c25('0xf6')][_0x4c25('0x95')][_0x4c25('0x4e')](_0x4c25('0x105'))[_0x4c25('0x23')](_0x32a132)),this[_0x4c25('0xce')]['_update'](_0x254f08);}}async[_0x4c25('0xb6')](){this[_0x4c25('0xe9')]&&!this['_loadedStateData']&&(await this[_0x4c25('0x64')](this[_0x4c25('0xce')]),this[_0x4c25('0xba')][_0x4c25('0x2c')](this['currentRevision']),this['_loadedStateData']={'fromVersion':this[_0x4c25('0xce')][_0x4c25('0x6f')],'authors':this[_0x4c25('0xce')][_0x4c25('0x3')][_0x4c25('0x6b')]()});}async['saveRevision'](_0x2e7c33={},_0x5ac2f9=null){const _0x509d80=[];await this[_0x4c25('0xb6')](),this['_continueCurrentRevision']=!0x1,_0x5ac2f9>this['currentRevision'][_0x4c25('0x101')]&&(_0x5ac2f9=null),null===_0x5ac2f9&&(_0x5ac2f9=await this['_source']['getLatestVersion']());const _0xe200b9=this[_0x4c25('0x83')](_0x5ac2f9),_0x1c1dbe=this['buildRevisionData']({'from':_0xe200b9,'to':_0x5ac2f9});if(this['currentRevision'][_0x4c25('0x101')]<_0x5ac2f9){const _0x3fb5e6=this['buildRevisionData']({'revision':this[_0x4c25('0xce')],'from':_0x5ac2f9,'to':_0x5ac2f9});_0x3fb5e6[_0x4c25('0x3')]=[],_0x3fb5e6['authorsIds']=[],_0x3fb5e6['id']=this[_0x4c25('0xce')]['id'],this[_0x4c25('0xce')][_0x4c25('0x102')](_0x3fb5e6,!0x0),delete _0x3fb5e6['authors'],_0x509d80[_0x4c25('0xd8')](_0x3fb5e6);}_0x2e7c33[_0x4c25('0xc0')]=this[_0x4c25('0xf6')]['plugins']['get']('Users')['me']['id'],_0x2e7c33[_0x4c25('0x5b')]=_0x2e7c33[_0x4c25('0x5b')]||null,_0x2e7c33['id']=_0x2e7c33['id']||_0x311898(),_0x2e7c33={..._0x2e7c33,..._0x1c1dbe};const _0x1de13c=this['addRevisionData'](_0x2e7c33);_0x509d80[_0x4c25('0xd8')](_0x2e7c33);const _0x4b6d58=this[_0x4c25('0x13')][_0x4c25('0x20')](_0x1de13c);if(0x0!==_0x4b6d58){const _0x2fd93e=this[_0x4c25('0x13')]['getRevision'](_0x4b6d58-0x1);if(_0x2fd93e['fromVersion']!==_0x5ac2f9){const _0x4a8cc7=this['_revisionDataBuilder'][_0x4c25('0x68')](_0x5ac2f9,_0x2fd93e[_0x4c25('0x101')]),_0x55f4c3={'id':_0x2fd93e['id'],'diffData':_0x4a8cc7[_0x4c25('0x59')],'authorsIds':_0x4a8cc7[_0x4c25('0xae')],'authors':_0x4a8cc7[_0x4c25('0xae')][_0x4c25('0x76')](_0x36b2dc=>this['editor'][_0x4c25('0x95')]['get'](_0x4c25('0x105'))['getUser'](_0x36b2dc)),'fromVersion':_0x5ac2f9};_0x2fd93e===this[_0x4c25('0xce')]&&(_0x55f4c3[_0x4c25('0xde')]=new Date(_0x2e7c33[_0x4c25('0xde')][_0x4c25('0xa5')]()+0xa)),_0x2fd93e['_update'](_0x55f4c3,!0x0),delete _0x55f4c3[_0x4c25('0x3')],_0x509d80[_0x4c25('0xd8')](_0x55f4c3);}}if(this[_0x4c25('0x37')]){for(const _0x2bfdac of _0x509d80)this['_bufferUpdate'](_0x2bfdac['id'],_0x2bfdac,!0x0);this[_0x4c25('0xfa')]();}return _0x1de13c;}[_0x4c25('0x7b')](_0x2b4eac){const _0x49b7c2=this[_0x4c25('0x13')][_0x4c25('0x47')](_0x2b4eac);return this['adapter']&&_0x49b7c2['on']('_update',(_0x54c296,_0x4e27b6,_0x4b879c)=>{_0x4b879c||(this['_bufferUpdate'](_0x4e27b6['id'],_0x4e27b6,!0x0),this[_0x4c25('0xfa')]());}),this[_0x4c25('0x13')][_0x4c25('0xe')](_0x49b7c2,this[_0x4c25('0x1c')](_0x49b7c2)),_0x49b7c2;}async[_0x4c25('0x10d')](_0xe5ba9a){await this['_loadRevisionData'](_0xe5ba9a);const _0x2fe0be={};for(const _0x2ada4c in _0xe5ba9a[_0x4c25('0x59')]){if(_0xe5ba9a[_0x4c25('0x59')][_0x2ada4c][_0x4c25('0xc2')]&&!_0xe5ba9a['diffData'][_0x2ada4c]['attachChange'][_0x4c25('0x33')])continue;const _0x24b358=this[_0x4c25('0xec')](JSON[_0x4c25('0x2a')](_0xe5ba9a['diffData'][_0x2ada4c]['insertions'])),_0xebf7c7=this[_0x4c25('0xf6')][_0x4c25('0x2')][_0x4c25('0xb1')][_0x4c25('0x9c')],_0x2ff830=new _0xdb876f(_0xebf7c7,_0x24b358[_0x4c25('0x76')](_0x1402b4=>J(_0x1402b4,this['editor'])));this[_0x4c25('0xf6')][_0x4c25('0x92')]['processor'][_0x4c25('0xd0')](_0x4c25('0xdc')),_0x2fe0be[_0x2ada4c]=this[_0x4c25('0xf6')][_0x4c25('0x92')][_0x4c25('0xaa')][_0x4c25('0xc9')](_0x2ff830),this['editor'][_0x4c25('0x92')][_0x4c25('0xaa')][_0x4c25('0xd0')]('default');}return _0x2fe0be;}async[_0x4c25('0x10e')](_0x2669dd){await this['_loadRevisionData'](_0x2669dd);const _0x374c03={};for(const _0x1bb138 in _0x2669dd[_0x4c25('0x59')])_0x2669dd[_0x4c25('0x59')][_0x1bb138][_0x4c25('0xc2')]&&!_0x2669dd[_0x4c25('0x59')][_0x1bb138][_0x4c25('0xc2')][_0x4c25('0x33')]||(_0x374c03[_0x1bb138]=_0x2669dd['diffData'][_0x1bb138][_0x4c25('0x6c')]||{});return _0x374c03;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates'][_0x4c25('0x89')])return;if(this[_0x4c25('0x8b')])return;let _0x5c59c4=Array[_0x4c25('0x65')](this[_0x4c25('0xb7')][_0x4c25('0xd3')]());this[_0x4c25('0xb7')][_0x4c25('0x4b')]();for(let _0x547975=0x0;_0x547975<_0x5c59c4[_0x4c25('0xee')];_0x547975++){const _0x6b91e0=_0x5c59c4[_0x547975];let _0x29b27d=!0x1;for(const _0x85efea of Object[_0x4c25('0xf1')](_0x6b91e0))void 0x0===_0x6b91e0[_0x85efea]?delete _0x6b91e0[_0x85efea]:'id'!==_0x85efea&&(_0x29b27d=!0x0);_0x29b27d||(_0x5c59c4[_0x547975]=null);}if(_0x5c59c4=_0x5c59c4[_0x4c25('0x109')](_0x2432b8=>null!==_0x2432b8),!_0x5c59c4[_0x4c25('0xee')])return;for(let _0x3d5d2d=0x0;_0x3d5d2d<_0x5c59c4[_0x4c25('0xee')];_0x3d5d2d++){const _0xf7658e=_0x5c59c4[_0x3d5d2d];void 0x0!==_0xf7658e[_0x4c25('0x6f')]&&void 0x0===_0xf7658e[_0x4c25('0x101')]&&(_0xf7658e[_0x4c25('0x101')]=this[_0x4c25('0x13')]['getRevision'](_0xf7658e['id'])[_0x4c25('0x101')]),void 0x0!==_0xf7658e[_0x4c25('0x101')]&&void 0x0===_0xf7658e[_0x4c25('0x6f')]&&(_0xf7658e[_0x4c25('0x6f')]=this[_0x4c25('0x13')][_0x4c25('0x84')](_0xf7658e['id'])['fromVersion']);}const _0x1ebc16=this[_0x4c25('0xf6')][_0x4c25('0xf5')][_0x4c25('0x4e')](_0x4c25('0x80'));this[_0x4c25('0x8b')]=!0x0,this[_0x4c25('0xfc')](),this[_0x4c25('0x37')][_0x4c25('0xf8')](_0x5c59c4,_0x1ebc16)[_0x4c25('0xbb')](()=>{this[_0x4c25('0x8b')]=!0x1;})[_0x4c25('0x107')](_0x321cd1=>{if(_0x321cd1)for(const _0x57d958 of _0x321cd1)this[_0x4c25('0x57')]({'id':_0x57d958['id'],'createdAt':_0x57d958[_0x4c25('0xde')]});this[_0x4c25('0xe1')](),this[_0x4c25('0xfa')]();});}['_replaceEditorDataWithRevisionData'](_0x5e7a49,_0xb44367){let _0x2db64b=this[_0x4c25('0xf6')]['config']['get'](_0x4c25('0xca')),_0x28cc83=this['editor']['config']['get'](_0x4c25('0x82'));if(void 0x0===_0x2db64b){_0x2db64b={};for(const _0x50e828 of this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0x60')]())_0x2db64b[_0x50e828]='';}if(_0x4c25('0x16')==typeof _0x2db64b&&(_0x2db64b={'main':_0x2db64b}),void 0x0===_0x28cc83){_0x28cc83={};for(const _0x18c191 of this['editor'][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0x60')]())_0x28cc83[_0x18c191]={};}let _0x372b91=!0x1;const _0x49e76f=Object['keys'](_0x2db64b),_0x593245=Object['keys'](_0x5e7a49);for(const _0x5d1e5c of _0x49e76f){if(_0x2db64b[_0x5d1e5c]!==_0x5e7a49[_0x5d1e5c]&&''!==_0x2db64b[_0x5d1e5c]['trim']()){_0x372b91=!0x0;break;}if(!_0x4e452f(_0x28cc83[_0x5d1e5c],_0xb44367[_0x5d1e5c])&&Object[_0x4c25('0xf1')](_0x28cc83[_0x5d1e5c])[_0x4c25('0xee')]>0x0){_0x372b91=!0x0;break;}}_0x372b91||(_0x372b91=_0x593245['some'](_0x499170=>!_0x49e76f[_0x4c25('0x8d')](_0x499170))),_0x372b91&&_0x591ce1(_0x4c25('0x66'),{'editorData':_0x2db64b,'editorRootsAttributes':_0x28cc83,'revisionData':_0x5e7a49,'revisionRootsAttributes':_0xb44367}),this[_0x4c25('0xf6')][_0x4c25('0xf5')][_0x4c25('0xc6')](_0x4c25('0xca'),_0x5e7a49),this[_0x4c25('0xf6')][_0x4c25('0xf5')][_0x4c25('0xc6')](_0x4c25('0x82'),_0xb44367);}[_0x4c25('0xfc')](){if(!this['_pendingAction']){const _0x2b0974=this[_0x4c25('0xf6')][_0x4c25('0x95')][_0x4c25('0x4e')](_0x4c25('0xaf'));this['_pendingAction']=_0x2b0974[_0x4c25('0xd5')](_0x1c72f5(this['editor'][_0x4c25('0xdf')],_0x4c25('0xe8')));}}['_removePendingAction'](){this[_0x4c25('0xf0')]&&(this['editor'][_0x4c25('0x95')]['get'](_0x4c25('0xaf'))['remove'](this[_0x4c25('0xf0')]),this[_0x4c25('0xf0')]=null);}[_0x4c25('0x1c')](_0xf9e9d8){const _0x2816de=this[_0x4c25('0x13')]['getRevisions']();_0x2816de[_0x4c25('0x19')]();let _0x1b8aac=0x0;for(;_0x1b8aac<_0x2816de[_0x4c25('0xee')];){const _0x3f6f89=_0x2816de[_0x1b8aac];if(_0x3f6f89===this[_0x4c25('0xce')]){_0x1b8aac++;continue;}if(_0x3f6f89['id']===this[_0x4c25('0x81')])break;const _0x2552b6=_0xf9e9d8['toVersion']-_0x3f6f89[_0x4c25('0x101')]||_0xf9e9d8[_0x4c25('0x6f')]-_0x3f6f89[_0x4c25('0x6f')];if(_0x2552b6>0x0)break;if(_0x2552b6<0x0)_0x1b8aac++;else{if(!_0xf9e9d8[_0x4c25('0x74')]&&_0x3f6f89['creator'])break;if(_0x3f6f89['creator']||!_0xf9e9d8['creator']){if(_0xf9e9d8[_0x4c25('0xde')]>_0x3f6f89[_0x4c25('0xde')])break;_0x1b8aac++;}else _0x1b8aac++;}}return _0x1b8aac;}[_0x4c25('0x57')](_0x412785){const _0x2f6d82=this[_0x4c25('0x13')][_0x4c25('0x84')](_0x412785['id']);if(_0x412785['createdAt']&&(_0x412785[_0x4c25('0xde')]=new Date(_0x412785[_0x4c25('0xde')])),_0x412785[_0x4c25('0xae')]){const _0x1231c1=this[_0x4c25('0xf6')][_0x4c25('0x95')]['get']('Users');_0x412785[_0x4c25('0x3')]=_0x412785[_0x4c25('0xae')][_0x4c25('0x76')](_0x50ec9c=>_0x1231c1[_0x4c25('0x23')](_0x50ec9c));}_0x2f6d82[_0x4c25('0x102')](_0x412785,!0x0);}['buildRevisionData']({revision:_0x14e9c0=null,from:_0x3fecc2=null,to:_0x4fa1da=null}){_0x3fecc2=null!==_0x3fecc2?_0x3fecc2:_0x14e9c0[_0x4c25('0x6f')],_0x4fa1da=null!==_0x4fa1da?_0x4fa1da:_0x14e9c0[_0x4c25('0x101')];const _0xe3f9dc=this[_0x4c25('0xba')][_0x4c25('0x68')](_0x3fecc2,_0x4fa1da),_0x159c73={'diffData':_0xe3f9dc['diffData'],'authorsIds':_0xe3f9dc['authorsIds'],'fromVersion':_0x3fecc2,'toVersion':_0x4fa1da};if(!_0x14e9c0||_0x4fa1da!==_0x14e9c0[_0x4c25('0x101')]){const _0x1e2fc1=_0x4fa1da-0x1,_0x457baa=this[_0x4c25('0x91')][_0x4c25('0xf9')][_0x4c25('0x50')](_0x1e2fc1);_0x159c73[_0x4c25('0xde')]=_0x457baa&&_0x457baa[_0x4c25('0xde')]||new Date();}if(this['_loadedStateData']&&_0x3fecc2===this[_0x4c25('0xd9')][_0x4c25('0x6f')])for(const _0x54e9fc of this[_0x4c25('0xd9')][_0x4c25('0x3')])_0x159c73[_0x4c25('0xae')][_0x4c25('0x8d')](_0x54e9fc['id'])||_0x159c73[_0x4c25('0xae')][_0x4c25('0xd8')](_0x54e9fc['id']);return _0x159c73;}[_0x4c25('0x64')](_0xc3b518){if(!_0xc3b518||_0xc3b518[_0x4c25('0x59')])return Promise[_0x4c25('0x79')]();{const _0x2b98a2=this['editor'][_0x4c25('0xf5')][_0x4c25('0x4e')](_0x4c25('0x80'));return this[_0x4c25('0x37')]['getRevision']({'channelId':_0x2b98a2,'revisionId':_0xc3b518['id']})['then'](_0xf34960=>{_0xc3b518[_0x4c25('0x59')]=_0xf34960['diffData'];});}}[_0x4c25('0x43')](_0x41f9b2,_0x5966ca,_0x4c6ff0){if(this[_0x4c25('0xb7')][_0x4c25('0x4')](_0x41f9b2)){const _0x342a2e=this['_bufferedUpdates']['get'](_0x41f9b2);_0x5966ca=_0x4c6ff0?{..._0x342a2e,..._0x5966ca}:{..._0x5966ca,..._0x342a2e};}this['_bufferedUpdates'][_0x4c25('0xc6')](_0x41f9b2,_0x5966ca);}[_0x4c25('0x83')](_0x11a2c9){const _0x2f1289=this[_0x4c25('0x13')][_0x4c25('0x4d')]();_0x2f1289[_0x4c25('0x19')](),_0x2f1289[_0x4c25('0xc5')]();const _0x41802d=_0x2f1289[_0x4c25('0x17')](_0x40c419=>_0x40c419[_0x4c25('0x101')]<=_0x11a2c9)['toVersion'];return _0x41802d<this[_0x4c25('0x63')]?this['_startingVersion']:_0x41802d;}['_createInitialRevision'](_0xdba7c6){const _0x4c22e3=this[_0x4c25('0x13')][_0x4c25('0x84')](this[_0x4c25('0x13')]['length']-0x1);if(_0x4c22e3)this[_0x4c25('0x81')]=_0x4c22e3['id'];else{const _0x2976a0=!this[_0x4c25('0xf6')][_0x4c25('0xbf')]['document'][_0x4c25('0x30')][_0x4c25('0x17')](_0x12691e=>this[_0x4c25('0xf6')][_0x4c25('0xbf')]['hasContent'](_0x12691e)),_0x35adb0=this['editor']['plugins'][_0x4c25('0x4e')](_0x4c25('0x105'))['me']['id'],_0x456ae4=_0x1c72f5(this['editor'][_0x4c25('0xdf')],_0x2976a0?_0x4c25('0x41'):_0x4c25('0x75'));this[_0x4c25('0x7d')]({'from':_0xdba7c6,'to':_0xdba7c6,'id':this['_initialRevisionId'],'name':_0x456ae4,'creatorId':_0x35adb0});}}[_0x4c25('0xe4')](_0x111ede){const _0x2c8741=this['_source']['getCurrentRevisionId']();this[_0x4c25('0xce')]=this[_0x4c25('0x13')][_0x4c25('0x84')](_0x2c8741),this['currentRevision']||(this[_0x4c25('0xce')]=this[_0x4c25('0x7d')]({'from':_0x111ede,'to':_0x111ede,'id':_0x2c8741,'name':'','creatorId':null}));}[_0x4c25('0x7d')]({name:_0x2e9aea,from:_0x3a7346,to:_0x1cb377,creatorId:_0x33f598,id:_0x6a94f4}){const _0x551c9a=this[_0x4c25('0xb3')]({'from':_0x3a7346,'to':_0x1cb377});_0x551c9a['name']=_0x2e9aea,_0x551c9a[_0x4c25('0xc0')]=_0x33f598,_0x551c9a['id']=_0x6a94f4;const _0x3e653f=this[_0x4c25('0x7b')](_0x551c9a);return this[_0x4c25('0x37')]&&this['_bufferUpdate'](_0x551c9a['id'],_0x551c9a,!0x0),_0x3e653f;}[_0x4c25('0x103')](){this['editor'][_0x4c25('0x62')][_0x4c25('0x8e')](_0x4c25('0xcc'))[_0x4c25('0x54')]({'model':_0x4c25('0xc3')});}[_0x4c25('0xec')](_0x36c922){return(_0x36c922=_0x36c922[_0x4c25('0x109')](_0x152952=>!_0x152952[_0x4c25('0x5b')]||_0x4c25('0x1d')!==_0x152952['name']&&'revision-end'!==_0x152952[_0x4c25('0x5b')]))[_0x4c25('0xb2')](_0x36ab00=>{_0x4c25('0x16')!=typeof _0x36ab00&&(_0x36ab00[_0x4c25('0x8')]=this[_0x4c25('0xec')](_0x36ab00['children']),_0x36ab00['attributes']=_0x36ab00[_0x4c25('0x9f')][_0x4c25('0x109')](_0x161130=>!_0x161130[0x0][_0x4c25('0x10c')](_0x4c25('0x55'))));}),_0x36c922;}}function J(_0x1d3e5f,_0x319b51){const _0x1c8feb=_0x319b51[_0x4c25('0x2')][_0x4c25('0xb1')][_0x4c25('0x9c')];if('string'==typeof _0x1d3e5f)return new _0x240c52(_0x1c8feb,_0x1d3e5f);{const _0x32ac8c=_0x1d3e5f[_0x4c25('0x8')][_0x4c25('0x76')](_0x793abc=>J(_0x793abc,_0x319b51));return new(B[_0x1d3e5f[(_0x4c25('0xc7'))]]||_0x7a24be)(_0x1c8feb,_0x1d3e5f[_0x4c25('0x5b')],_0x1d3e5f[_0x4c25('0x9f')],_0x32ac8c);}}class H{constructor(_0x5f41ba){this['editor']=_0x5f41ba,this['_savedMetaData']=new Map(),this[_0x4c25('0x38')]=-0x1,this[_0x4c25('0x97')]=-0x1,this[_0x4c25('0xda')]=new Map(),this[_0x4c25('0x24')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x4c25('0xb8')]=new Map(),this[_0x4c25('0x8c')]=new Map(),this[_0x4c25('0x7e')]=new Map(),this[_0x4c25('0x69')]=new Map(),this[_0x4c25('0xa1')]=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this[_0x4c25('0x9b')]=0x1,this[_0x4c25('0x2b')]=this[_0x4c25('0xf6')]['model'][_0x4c25('0x9c')][_0x4c25('0x60')](),this[_0x4c25('0x2b')][_0x4c25('0xd8')](_0x4c25('0x106'));}[_0x4c25('0x6e')](_0x18218e){this['source']=_0x18218e;const _0x58699a=new Map(),_0xb12ee3=new Map(),_0x32a130=this[_0x4c25('0xf6')][_0x4c25('0xbf')]['document']['getRootNames'](!0x0);_0x32a130[_0x4c25('0xd8')](_0x4c25('0x106'));for(const _0x339d09 of _0x32a130){const _0x4f5a33=this['editor'][_0x4c25('0xbf')][_0x4c25('0x9c')][_0x4c25('0xcd')](_0x339d09),_0x1c5213=q(_0x4f5a33);_0x58699a[_0x4c25('0xc6')](_0x339d09,_0x1c5213),_0xb12ee3['set'](_0x339d09,Object[_0x4c25('0x12')](_0x4f5a33[_0x4c25('0x49')]()));}const _0x3f4669=Array[_0x4c25('0x65')](this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x21')])[_0x4c25('0x76')](_0x2e215d=>[_0x2e215d[_0x4c25('0x5b')],_0x2e215d[_0x4c25('0x10b')]()]),_0x1f11bb=this[_0x4c25('0xfd')][_0x4c25('0xd6')];this['_saveMetaData'](_0x1f11bb,_0x58699a,_0x3f4669,_0xb12ee3),this['_startingRevisionId']=this[_0x4c25('0x9b')];const _0x51c0eb=new Map(),_0x1c2127=new Map();for(const _0x3dbf47 of this[_0x4c25('0x2b')]){const _0x462a72=G(_0x3dbf47);_0x51c0eb[_0x4c25('0xc6')](_0x3dbf47,_0x462a72),_0x1c2127[_0x4c25('0xc6')](_0x3dbf47,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x51c0eb,[],_0x1c2127);}['getData'](_0xc2960f,_0x2ff6db){if(this[_0x4c25('0x38')]===_0xc2960f&&this[_0x4c25('0x97')]<=_0x2ff6db)this['_savedMetaData'][_0x4c25('0x89')]>0x1&&this['_removeMetaData'](this[_0x4c25('0x97')]),this[_0x4c25('0x9a')](this[_0x4c25('0x97')],_0x2ff6db,!0x0);else{if(!this[_0x4c25('0xbe')][_0x4c25('0x4')](_0xc2960f)){const _0x2af241=this[_0x4c25('0x1f')](_0xc2960f);this[_0x4c25('0xdb')](_0x2af241,_0xc2960f,!0x1);}this[_0x4c25('0xdb')](_0xc2960f,_0x2ff6db,!0x0);}return this['_lastFrom']=_0xc2960f,this[_0x4c25('0x97')]=_0x2ff6db,this[_0x4c25('0x40')]();}[_0x4c25('0x2c')](_0x16deb0){this[_0x4c25('0xd1')](),this[_0x4c25('0x38')]=_0x16deb0['fromVersion'],this[_0x4c25('0x97')]=_0x16deb0[_0x4c25('0x101')];for(const _0x52f066 in _0x16deb0['diffData']){const _0x54f822=_0x16deb0[_0x4c25('0x59')][_0x52f066][_0x4c25('0xc2')],_0x1c6102=_0x461a48(_0x16deb0[_0x4c25('0x59')][_0x52f066]['attributesBefore'])||{},_0x1dc22f=this[_0x4c25('0x98')](_0x16deb0[_0x4c25('0x59')][_0x52f066][_0x4c25('0x26')]);_0x1dc22f[_0x4c25('0xa6')]=_0x52f066,_0x1dc22f[_0x4c25('0xed')]=!_0x54f822||!_0x54f822['isAttached'],_0x1dc22f[_0x4c25('0x33')]=()=>_0x1dc22f[_0x4c25('0xed')],this['_baseRoots']['set'](_0x52f066,_0x1dc22f),this[_0x4c25('0x8c')][_0x4c25('0xc6')](_0x52f066,_0x1c6102),_0x54f822&&this['_touchedRoots'][_0x4c25('0xc6')](_0x52f066,_0x54f822);const _0x4932a3=this[_0x4c25('0x2f')](_0x1dc22f);this[_0x4c25('0x69')][_0x4c25('0xc6')](_0x52f066,_0x4932a3);for(const [_0x157fc7,_0x536309]of _0x1dc22f[_0x4c25('0x21')]){if(!_0x157fc7['startsWith'](_0x4c25('0x9e')))continue;const _0x1eea88=_0x157fc7[_0x4c25('0x7')](':')[0x2];for(const _0x12dda2 of _0x536309[_0x4c25('0xab')]({'singleCharacters':!0x0})){const _0x56f3ea=this[_0x4c25('0xe3')](_0x12dda2),_0x1d15b3=_0x4c25('0xd4')==_0x12dda2[_0x4c25('0xc7')]?_0x12dda2[_0x4c25('0xd2')][_0x4c25('0x39')][_0x4c25('0x6b')](0x0,-0x1):_0x12dda2['previousPosition'][_0x4c25('0x39')],_0x2790e7=_0x4932a3[_0x4c25('0x8f')](_0x1d15b3)[_0x4c25('0x93')](_0x56f3ea);this[_0x4c25('0xa1')][_0x4c25('0xc6')](_0x2790e7,{'userId':_0x1eea88});}}}this[_0x4c25('0x6')]=this[_0x4c25('0x9b')];const _0x49dbf1=[...Array(this[_0x4c25('0x9b')])[_0x4c25('0xf1')]()][_0x4c25('0x6b')](0x1)[_0x4c25('0x109')](_0x258296=>!this[_0x4c25('0xa1')]['has'](_0x258296));let _0x337be9=0x0;const _0x1ea1e9=new Map();for(const _0x2d29e1 in _0x16deb0[_0x4c25('0x59')]){const _0x35a5b7=_0x16deb0[_0x4c25('0x59')][_0x2d29e1][_0x4c25('0xc2')],_0x3f9af7=_0x461a48(_0x16deb0[_0x4c25('0x59')][_0x2d29e1][_0x4c25('0x6c')])||{},_0x2479c3=this[_0x4c25('0x98')](_0x16deb0['diffData'][_0x2d29e1][_0x4c25('0x5')]);_0x2479c3[_0x4c25('0xa6')]=_0x2d29e1,_0x2479c3[_0x4c25('0xed')]=!_0x35a5b7||_0x35a5b7[_0x4c25('0x33')],_0x2479c3[_0x4c25('0x33')]=()=>_0x2479c3['_isAttached'],this['_diffRoots'][_0x4c25('0xc6')](_0x2d29e1,_0x2479c3),this[_0x4c25('0x14')][_0x4c25('0xc6')](_0x2d29e1,_0x3f9af7);const _0x1af9af=this[_0x4c25('0x2f')](_0x2479c3,Number[_0x4c25('0x6d')]);this[_0x4c25('0x7e')][_0x4c25('0xc6')](_0x2d29e1,_0x1af9af),_0x1ea1e9[_0x4c25('0xc6')](_0x2d29e1,_0x2479c3[_0x4c25('0x33')]()?_0x3f9af7:{});for(const [_0xc4c4c1,_0x431b59]of _0x2479c3[_0x4c25('0x21')]){if(!_0xc4c4c1[_0x4c25('0x10c')]('revision:'))continue;const _0x566772=_0xc4c4c1['split'](':')[0x2];for(const _0x50ab19 of _0x431b59[_0x4c25('0xab')]({'singleCharacters':!0x0})){const _0x1b01f2=this[_0x4c25('0xe3')](_0x50ab19),_0x43be0c=this[_0x4c25('0x9b')]++,_0x1fd92b=_0x4c25('0xd4')==_0x50ab19[_0x4c25('0xc7')]?_0x50ab19['previousPosition'][_0x4c25('0x39')][_0x4c25('0x6b')](0x0,-0x1):_0x50ab19[_0x4c25('0xd2')]['path'];_0x1af9af[_0x4c25('0x8f')](_0x1fd92b)[_0x4c25('0xb')](_0x1b01f2,_0x43be0c),this['_touched'][_0x4c25('0xc6')](_0x43be0c,{'userId':_0x566772});}}for(const _0x36b110 of this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x7c')](_0x2479c3)[_0x4c25('0xab')]({'singleCharacters':!0x0})){const _0x5dd389=this['_getVidAttributeName'](_0x36b110),_0x180b86='elementEnd'==_0x36b110[_0x4c25('0xc7')]?_0x36b110[_0x4c25('0xd2')][_0x4c25('0x39')]['slice'](0x0,-0x1):_0x36b110[_0x4c25('0xd2')]['path'],_0x23b233=_0x1af9af[_0x4c25('0x8f')](_0x180b86);_0x23b233[_0x4c25('0x93')](_0x5dd389)>0x0||_0x23b233[_0x4c25('0xb')](_0x5dd389,_0x49dbf1[_0x337be9++]);}for(const [_0x486818,_0xeab78b]of _0x2479c3[_0x4c25('0x21')])_0x486818['startsWith']('revision:')||this[_0x4c25('0xda')][_0x4c25('0xc6')](_0x486818,_0xeab78b);}const _0x120b17=G(_0x4c25('0x106'));this[_0x4c25('0xb8')][_0x4c25('0xc6')]('$graveyard',_0x120b17),this['_baseIdsRoots'][_0x4c25('0xc6')](_0x4c25('0x106'),this[_0x4c25('0x2f')](_0x120b17,0x1));const _0x1090f5=G(_0x4c25('0x106'));this[_0x4c25('0x24')][_0x4c25('0xc6')]('$graveyard',_0x1090f5),this[_0x4c25('0x7e')][_0x4c25('0xc6')](_0x4c25('0x106'),this[_0x4c25('0x2f')](_0x1090f5,0x1));const _0x1105ac=Array[_0x4c25('0x65')](this[_0x4c25('0x24')])[_0x4c25('0x76')](([_0x327ab1,_0x313b4a])=>[_0x327ab1,q(_0x313b4a)]);this[_0x4c25('0xe2')](this[_0x4c25('0x97')],_0x1105ac,this[_0x4c25('0xda')],_0x1ea1e9);}['_makeModelFromViewString'](_0x442c6d){const _0x3d862e=JSON[_0x4c25('0x2a')](_0x442c6d),_0x1596fb=this[_0x4c25('0xf6')][_0x4c25('0x2')]['view']['document'],_0x2a1657=new _0xdb876f(_0x1596fb,_0x3d862e[_0x4c25('0x76')](_0x5d3743=>J(_0x5d3743,this[_0x4c25('0xf6')])));return this[_0x4c25('0xf6')][_0x4c25('0x92')][_0x4c25('0x9d')](_0x2a1657);}[_0x4c25('0xe2')](_0x4535e6,_0x4b43cb,_0x2f51e6,_0x5e9e1c){const _0x5a0118=new Map(_0x4b43cb),_0x58cdfb=new Map(_0x461a48(_0x5e9e1c)),_0x1fb5ad=new Map();for(const [_0x2429fe,_0xb79445]of _0x2f51e6)_0x1fb5ad['set'](_0x2429fe,{'start':_0xb79445[_0x4c25('0xf3')][_0x4c25('0x25')](),'end':_0xb79445['end'][_0x4c25('0x25')](),'rootName':_0xb79445[_0x4c25('0xa7')][_0x4c25('0xa6')]});this[_0x4c25('0xbe')][_0x4c25('0xc6')](_0x4535e6,{'roots':_0x5a0118,'markers':_0x1fb5ad,'rootsAttributes':_0x58cdfb});}[_0x4c25('0x61')](_0x40c76b){this[_0x4c25('0xbe')]['delete'](_0x40c76b);}[_0x4c25('0x5e')](){this['_reset'](),this[_0x4c25('0x38')]=-0x1,this[_0x4c25('0x97')]=-0x1,this[_0x4c25('0xbe')][_0x4c25('0x4b')](),this[_0x4c25('0x6e')](this[_0x4c25('0xfd')]);}[_0x4c25('0xd1')](){this['_touched']['clear'](),this['_touchedMarkers'][_0x4c25('0x4b')](),this[_0x4c25('0xa9')][_0x4c25('0x4b')](),this[_0x4c25('0x24')][_0x4c25('0x4b')](),this['_diffRootsAttributes'][_0x4c25('0x4b')](),this[_0x4c25('0xb8')][_0x4c25('0x4b')](),this['_baseRootsAttributes'][_0x4c25('0x4b')](),this[_0x4c25('0x7e')][_0x4c25('0x4b')](),this[_0x4c25('0x69')][_0x4c25('0x4b')](),this['_markers'][_0x4c25('0x4b')](),this[_0x4c25('0x9b')]=0x1,this[_0x4c25('0x6')]=this[_0x4c25('0x9b')];}[_0x4c25('0x2f')](_0x31309a,_0x1d97e3=null){let _0x3db2c7=null;_0x31309a['is'](_0x4c25('0xfb'))||(_0x3db2c7=new _0x41c059(_0x31309a[_0x4c25('0x5b')],{'vid_start':null===_0x1d97e3?this[_0x4c25('0x9b')]++:_0x1d97e3++}));const _0x190f7a=[];for(const _0x15e2a2 of _0x31309a['getChildren']())if(_0x15e2a2['is']('element')){_0x190f7a['push'](this['_makeIdsRoot'](_0x15e2a2,_0x1d97e3));const _0x5135f7=_0x190f7a[_0x190f7a['length']-0x1];null!==_0x1d97e3&&(_0x1d97e3=_0x5135f7['is'](_0x4c25('0x29'),_0x4c25('0xc8'))?_0x5135f7['getAttribute'](_0x4c25('0x8a'))+0x1:_0x5135f7['getAttribute'](_0x4c25('0x27'))+0x1);}else for(let _0x3df1ae=0x0;_0x3df1ae<_0x15e2a2[_0x4c25('0xac')];_0x3df1ae++)_0x190f7a[_0x4c25('0xd8')](new _0x41c059(_0x4c25('0xc8'),{'vid':null===_0x1d97e3?this[_0x4c25('0x9b')]++:_0x1d97e3++}));if(_0x31309a['is']('documentFragment')){const _0x3280f2=G(_0x31309a[_0x4c25('0xa6')]);return _0x3280f2[_0x4c25('0x10')](0x0,_0x190f7a),_0x3280f2;}return _0x3db2c7[_0x4c25('0xb')]('vid_end',null===_0x1d97e3?this[_0x4c25('0x9b')]++:_0x1d97e3++),_0x3db2c7[_0x4c25('0x10')](0x0,_0x190f7a),_0x3db2c7;}['_calculateMetaData'](_0x26ff6d,_0x3c3b32,_0x39edd8){this[_0x4c25('0xd1')]();const {roots:_0x2457e1,markers:_0x2c5063,rootsAttributes:_0x48df78}=this[_0x4c25('0xbe')][_0x4c25('0x4e')](_0x26ff6d);this['_baseRoots']=new Map(_0x2457e1),this[_0x4c25('0x8c')]=new Map(_0x461a48(_0x48df78));for(const [_0x506468,_0x29cd36]of this[_0x4c25('0xb8')])if('$graveyard'!==_0x506468&&(this['_diffRoots'][_0x4c25('0xc6')](_0x506468,q(_0x29cd36)),this[_0x4c25('0x14')]=new Map(_0x461a48(_0x48df78)),_0x39edd8)){const _0x6ee8c9=this[_0x4c25('0x9b')];this[_0x4c25('0x7e')]['set'](_0x506468,this[_0x4c25('0x2f')](_0x29cd36)),this[_0x4c25('0x69')]['set'](_0x506468,this['_makeIdsRoot'](_0x29cd36,_0x6ee8c9));}this[_0x4c25('0x6')]=this[_0x4c25('0x9b')],this[_0x4c25('0x24')][_0x4c25('0xc6')](_0x4c25('0x106'),q(this[_0x4c25('0xb8')]['get']('$graveyard'))),_0x39edd8&&this[_0x4c25('0x7e')]['set']('$graveyard',this[_0x4c25('0x2f')](this[_0x4c25('0xb8')][_0x4c25('0x4e')]('$graveyard')));for(const [_0x53f870,_0x2f48c9]of _0x2c5063){const _0x5cf7cd=this[_0x4c25('0xb8')][_0x4c25('0x4e')](_0x2f48c9['rootName']),_0x9bea6=this['_diffRoots'][_0x4c25('0x4e')](_0x2f48c9[_0x4c25('0xa6')]),_0x376167=new _0xd70dd2(this[_0x4c25('0x3b')](_0x2f48c9[_0x4c25('0xf3')],_0x5cf7cd),this['_fixPosition'](_0x2f48c9[_0x4c25('0xad')],_0x5cf7cd)),_0x5f0ee8=this[_0x4c25('0x2e')](_0x376167,_0x9bea6);_0x5cf7cd[_0x4c25('0x21')]['set'](_0x53f870,_0x376167),this[_0x4c25('0xda')]['set'](_0x53f870,_0x5f0ee8);}this[_0x4c25('0x9a')](_0x26ff6d,_0x3c3b32,_0x39edd8);}['_applyOperations'](_0x34b369,_0x2fe0bd,_0x192b5a){for(const _0x1edfc3 of this[_0x4c25('0xfd')]['getOperations'](_0x34b369,_0x2fe0bd))this[_0x4c25('0x45')](_0x1edfc3,_0x192b5a);for(const _0x26b757 of this['_diffRoots'][_0x4c25('0xd3')]())_0x26b757[_0x4c25('0x21')][_0x4c25('0x4b')]();for(const [_0x47195f,_0x1b2771]of this[_0x4c25('0xda')]){this[_0x4c25('0x24')][_0x4c25('0x4e')](_0x1b2771[_0x4c25('0xa7')][_0x4c25('0xa6')])[_0x4c25('0x21')][_0x4c25('0xc6')](_0x47195f,_0x1b2771[_0x4c25('0x25')]());}const _0x207e96=new Map(),_0x34a6c5=new Map();for(const [_0x5bcb93,_0x97f623]of this[_0x4c25('0x24')])_0x207e96['set'](_0x5bcb93,q(_0x97f623)),_0x34a6c5[_0x4c25('0xc6')](_0x5bcb93,this[_0x4c25('0x14')][_0x4c25('0x4e')](_0x5bcb93));this[_0x4c25('0xe2')](_0x2fe0bd,_0x207e96,this[_0x4c25('0xda')],_0x34a6c5);}[_0x4c25('0x1f')](_0x248a31){const _0x68cac6=Array[_0x4c25('0x65')](this[_0x4c25('0xbe')]['keys']());_0x68cac6[_0x4c25('0x6a')]((_0x4e171f,_0xa9fe3e)=>_0x4e171f-_0xa9fe3e),_0x68cac6['reverse']();for(const _0x546162 of _0x68cac6)if(_0x546162<_0x248a31)return _0x546162;return Number['NEGATIVE_INFINITY'];}[_0x4c25('0xa2')](_0x332e0a,_0x5ec24d){const _0x4418e3=Array['from'](_0x5ec24d[_0x4c25('0x21')])[_0x4c25('0x76')](([_0x3059a9,_0x5c518b])=>[_0x3059a9,this[_0x4c25('0x2e')](_0x5c518b,_0x332e0a)]);_0x332e0a[_0x4c25('0x21')]=new Map(_0x4418e3);}[_0x4c25('0xfe')](_0x16f78d){for(const _0x4ff690 of this[_0x4c25('0xda')][_0x4c25('0xd3')]()){const _0x4428aa=_0x4ff690[_0x4c25('0xff')](_0x16f78d),_0x1906d0=_0xd70dd2[_0x4c25('0xe6')](_0x4428aa);_0x4ff690['start']=_0x1906d0[_0x4c25('0xf3')],_0x4ff690[_0x4c25('0xad')]=_0x1906d0[_0x4c25('0xad')];}}['_handleOperation'](_0x515d92,_0xd6932d){if('addRoot'==_0x515d92['type']||'detachRoot'==_0x515d92['type'])return void this[_0x4c25('0x5d')](_0x515d92,_0xd6932d);if(_0x4c25('0xcf')==_0x515d92['type']){const _0x5099a9=_0x515d92[_0x4c25('0xb0')][_0x4c25('0xa7')][_0x4c25('0xa6')];this[_0x4c25('0x24')][_0x4c25('0x4')](_0x5099a9)||(this['_diffRoots']['set'](_0x5099a9,G(_0x5099a9,!0x0)),this[_0x4c25('0x14')]['set'](_0x5099a9,{}),_0xd6932d&&this[_0x4c25('0x7e')]['set'](_0x5099a9,G(_0x5099a9,!0x0)));}if(_0x4c25('0x67')==_0x515d92[_0x4c25('0xc7')]||'removeRootAttribute'==_0x515d92[_0x4c25('0xc7')]||'changeRootAttribute'==_0x515d92[_0x4c25('0xc7')])return void this[_0x4c25('0x85')](_0x515d92);const _0x57e77c=this[_0x4c25('0x73')](_0x515d92,this[_0x4c25('0x24')]);if(_0x4c25('0x3a')!==_0x515d92[_0x4c25('0xc7')]&&(_0x57e77c[_0x4c25('0xf2')](),this[_0x4c25('0xfe')](_0x57e77c)),_0xd6932d)switch(_0x57e77c[_0x4c25('0xc7')]){case _0x4c25('0xcf'):this[_0x4c25('0x3e')](_0x515d92);break;case _0x4c25('0xe0'):case'remove':case _0x4c25('0x51'):this[_0x4c25('0x88')](_0x515d92);break;case _0x4c25('0x0'):this[_0x4c25('0x31')](_0x515d92);break;case _0x4c25('0x7'):this['_handleSplitOperation'](_0x515d92);break;case _0x4c25('0x3a'):this[_0x4c25('0xa4')](_0x515d92);}}[_0x4c25('0x73')](_0xb398a4,_0x3bbe62){const _0x273463=_0xb398a4[_0x4c25('0x25')]();return _0x273463[_0x4c25('0x58')]=_0xb398a4[_0x4c25('0x58')],this[_0x4c25('0x90')](_0x273463,_0x3bbe62),_0x273463;}[_0x4c25('0x87')](_0x566035){return _0x566035[_0x4c25('0x76')](_0x2d2f30=>{const _0x239eec=this[_0x4c25('0xe3')](_0x2d2f30);return Number(_0x2d2f30[_0x4c25('0x71')][_0x4c25('0x93')](_0x239eec));});}['_generateTape'](_0x30b598,_0x5ee334){if(_0x30b598['is']('element',_0x4c25('0xc8')))_0x5ee334['push']({'item':_0x30b598,'type':_0x4c25('0x42')});else{_0x30b598['is'](_0x4c25('0x29'))&&_0x5ee334['push']({'item':_0x30b598,'type':_0x4c25('0x4c')});for(const _0x4e9364 of _0x30b598[_0x4c25('0x108')]())this[_0x4c25('0x7f')](_0x4e9364,_0x5ee334);_0x30b598['is'](_0x4c25('0x29'))&&_0x5ee334[_0x4c25('0xd8')]({'item':_0x30b598,'type':_0x4c25('0xd4')});}return _0x5ee334;}[_0x4c25('0x40')](){const _0x52b59b=new Map(this[_0x4c25('0xa1')]),_0x4bad39=new Map(_0x52b59b),_0x4e513f=new Map(),_0x98c92e={'insertions':{},'deletions':{}},_0x5cecd0={'insertions':{},'deletions':{}},_0x22a397=new Map(),_0x3b1f98=new Set([...this['_baseRoots'][_0x4c25('0xf1')](),...this[_0x4c25('0x24')][_0x4c25('0xf1')]()]);_0x3b1f98[_0x4c25('0xe7')](_0x4c25('0x106'));for(const _0xbcb362 of _0x3b1f98){const _0xce24d3=this[_0x4c25('0x24')][_0x4c25('0x4e')](_0xbcb362)||G(_0xbcb362,!0x1),_0x2331a4=this[_0x4c25('0xb8')][_0x4c25('0x4e')](_0xbcb362)||G(_0xbcb362,!0x1);_0xce24d3[_0x4c25('0x33')]()||_0x2331a4[_0x4c25('0x33')]()?(_0x98c92e[_0x4c25('0x5')][_0xbcb362]=q(_0xce24d3),_0x98c92e[_0x4c25('0x26')][_0xbcb362]=q(_0x2331a4),this[_0x4c25('0xa2')](_0x98c92e[_0x4c25('0x26')][_0xbcb362],_0x2331a4),this['_copyMarkers'](_0x98c92e['insertions'][_0xbcb362],_0xce24d3),_0x5cecd0[_0x4c25('0x5')][_0xbcb362]=this[_0x4c25('0x7f')](this['_idsRoots'][_0x4c25('0x4e')](_0xbcb362),[]),_0x5cecd0[_0x4c25('0x26')][_0xbcb362]=this[_0x4c25('0x7f')](this[_0x4c25('0x69')][_0x4c25('0x4e')](_0xbcb362)||G(_0xbcb362,!0x1),[])):_0x3b1f98[_0x4c25('0xe7')](_0xbcb362);}for(const _0x1cfad0 of _0x3b1f98){const _0x3392e0=_0x5cecd0[_0x4c25('0x5')][_0x1cfad0];for(const _0x46d57a of _0x3392e0){const _0x21c2d2=this[_0x4c25('0xe3')](_0x46d57a),_0x2ac5a0=_0x46d57a['item'][_0x4c25('0x93')](_0x21c2d2);_0x4bad39[_0x4c25('0xe7')](_0x2ac5a0),_0x2ac5a0>=this[_0x4c25('0x6')]&&_0x4e513f[_0x4c25('0xc6')](_0x2ac5a0,_0x52b59b['get'](_0x2ac5a0));}}for(const _0x219409 of _0x3b1f98){const _0x3a402e=_0x5cecd0[_0x4c25('0x5')][_0x219409],_0x33982b=this[_0x4c25('0x87')](_0x5cecd0['deletions'][_0x219409]);let _0xeb8d4c=0x0;for(const _0x4606c6 of _0x3a402e){const _0x438396=this['_getVidAttributeName'](_0x4606c6),_0x5d84d3=_0x4606c6[_0x4c25('0x71')][_0x4c25('0x93')](_0x438396);if(!_0x4e513f[_0x4c25('0x4')](_0x5d84d3)&&!_0x22a397[_0x4c25('0x4')](_0x5d84d3)){if(_0x4bad39[_0x4c25('0x4')](_0x5d84d3))_0xeb8d4c++;else{if(_0x5d84d3!=_0x33982b[_0xeb8d4c]){const _0x2fbc30=_0x52b59b['get'](_0x5d84d3)||_0x52b59b[_0x4c25('0x4e')](_0x33982b[_0xeb8d4c]);for(;_0x5d84d3!=_0x33982b[_0xeb8d4c];)_0x4bad39[_0x4c25('0x4')](_0x33982b[_0xeb8d4c])||(_0x22a397['set'](_0x33982b[_0xeb8d4c],_0x2fbc30),_0x52b59b[_0x4c25('0xc6')](_0x33982b[_0xeb8d4c],_0x2fbc30)),_0xeb8d4c++;}_0xeb8d4c++;}}}}for(const _0x1c9379 of _0x3b1f98){const _0x2db8f0=_0x5cecd0[_0x4c25('0x5')][_0x1c9379];for(const _0x4a45fd of _0x2db8f0){const _0x4757d4=this['_getVidAttributeName'](_0x4a45fd),_0x2145ff=_0x4a45fd[_0x4c25('0x71')][_0x4c25('0x93')](_0x4757d4);if(_0x22a397[_0x4c25('0x4')](_0x2145ff)){const _0x121047=_0x22a397[_0x4c25('0x4e')](_0x2145ff);_0x4bad39['has'](_0x2145ff)||_0x4bad39[_0x4c25('0xc6')](_0x2145ff,{..._0x121047}),_0x4e513f[_0x4c25('0xc6')](_0x2145ff,{..._0x121047});}}}for(const _0x583bb7 of _0x4bad39[_0x4c25('0xf1')]())_0x583bb7>=this['_startingRevisionId']&&_0x4bad39['delete'](_0x583bb7);const _0x58ef84=new Map();for(const _0x5d5da6 of _0x3b1f98){let _0x5543ff=_0x5cecd0[_0x4c25('0x5')][_0x5d5da6];for(const _0x53177e of _0x5543ff)if(_0x53177e[_0x4c25('0x71')]['is'](_0x4c25('0x29'),_0x4c25('0xe5'))){const _0x7b3823=this[_0x4c25('0xe3')](_0x53177e),_0x29d478=_0x53177e[_0x4c25('0x71')][_0x4c25('0x93')](_0x7b3823);if(_0x4e513f[_0x4c25('0x4')](_0x29d478)){const _0x179d8d=_0x53177e[_0x4c25('0x71')][_0x4c25('0x5a')]['parent'][_0x4c25('0x93')](_0x4c25('0xc1')),_0x2ab499=_0x58ef84[_0x4c25('0x4e')](_0x179d8d)||new Set();_0x2ab499[_0x4c25('0xd5')](_0x4e513f[_0x4c25('0x4e')](_0x29d478)[_0x4c25('0x11')]),_0x58ef84['set'](_0x179d8d,_0x2ab499);}}_0x5543ff=_0x5cecd0['deletions'][_0x5d5da6];for(const _0x4f2c6f of _0x5543ff)if(_0x4f2c6f['item']['is'](_0x4c25('0x29'),'tableCell')){const _0x46574b=this['_getVidAttributeName'](_0x4f2c6f),_0x4de2e3=_0x4f2c6f[_0x4c25('0x71')][_0x4c25('0x93')](_0x46574b);if(_0x4bad39[_0x4c25('0x4')](_0x4de2e3)){const _0x121653=_0x4f2c6f['item'][_0x4c25('0x5a')][_0x4c25('0x5a')][_0x4c25('0x93')](_0x4c25('0xc1')),_0x20032b=_0x58ef84['get'](_0x121653)||new Set();_0x20032b['add'](_0x4bad39['get'](_0x4de2e3)[_0x4c25('0x11')]),_0x58ef84['set'](_0x121653,_0x20032b);}}for(const _0x2beec4 of _0x58ef84['keys']())(_0x4e513f[_0x4c25('0x4')](_0x2beec4)||_0x4bad39[_0x4c25('0x4')](_0x2beec4))&&_0x58ef84['delete'](_0x2beec4);}for(const _0x54428b of _0x3b1f98){const _0x1975a0=_0x5cecd0[_0x4c25('0x5')][_0x54428b];let _0x5a7aac=null,_0x5a0009=null;for(const _0x1f4fd5 of _0x1975a0){const _0x1ec4b5=this['_getVidAttributeName'](_0x1f4fd5),_0x7c3493=_0x1f4fd5['item'][_0x4c25('0x93')](_0x1ec4b5),_0x378383=_0x58ef84['get'](_0x7c3493);_0x378383&&_0x4c25('0x4c')==_0x1f4fd5['type']&&(_0x5a7aac=Array['from'](_0x378383)[0x0],_0x5a0009=_0x1f4fd5['item'][_0x4c25('0x93')](_0x4c25('0x27'))),_0x5a7aac&&(_0x4bad39['set'](_0x7c3493,{'userId':_0x5a7aac}),_0x4e513f['set'](_0x7c3493,{'userId':_0x5a7aac})),_0x7c3493==_0x5a0009&&(_0x5a7aac=null,_0x5a0009=null);}}const _0x5b2645={},_0x541033=new Set();for(const _0x4ada1e of _0x3b1f98){const _0x2d10d2=_0x98c92e[_0x4c25('0x26')][_0x4ada1e],_0x1f9b8b=_0x98c92e[_0x4c25('0x5')][_0x4ada1e];for(const {userId:_0xab462e}of this[_0x4c25('0x99')][_0x4c25('0xd3')]())null!==_0xab462e&&_0x541033[_0x4c25('0xd5')](_0xab462e);for(const {userId:_0x3f82b1}of this[_0x4c25('0xa9')]['values']())null!==_0x3f82b1&&_0x541033['add'](_0x3f82b1);this[_0x4c25('0x86')](_0x1f9b8b,_0x5cecd0[_0x4c25('0x5')][_0x4ada1e],_0x4e513f,_0x4c25('0x4f'),_0x541033),this['_markChanges'](_0x2d10d2,_0x5cecd0[_0x4c25('0x26')][_0x4ada1e],_0x4bad39,_0x4c25('0x3d'),_0x541033),_0x5b2645[_0x4ada1e]={'insertions':this[_0x4c25('0x94')](_0x1f9b8b),'deletions':this[_0x4c25('0x94')](_0x2d10d2),'attachChange':this[_0x4c25('0xa9')][_0x4c25('0x4e')](_0x4ada1e)||null,'attributesBefore':_0x461a48(this[_0x4c25('0x8c')][_0x4c25('0x4e')](_0x4ada1e))||{},'attributesAfter':_0x461a48(this[_0x4c25('0x14')][_0x4c25('0x4e')](_0x4ada1e))};}return{'diffData':_0x5b2645,'authorsIds':Array[_0x4c25('0x65')](_0x541033)};}[_0x4c25('0xea')](_0x4b282f){for(const [,_0x4763d7]of _0x4b282f[_0x4c25('0x21')]){const _0x130382=_0x4763d7['start'][_0x4c25('0xbc')]()['filter'](_0x2d834b=>_0x4c25('0xe5')==_0x2d834b[_0x4c25('0x5b')]);for(const _0x41ce6e of _0x130382)0x1==_0x41ce6e[_0x4c25('0xa')]&&_0x41ce6e[_0x4c25('0xa8')](0x0)['is'](_0x4c25('0x29'),_0x4c25('0x18'))&&_0x41ce6e['getChild'](0x0)['_setAttribute'](_0x4c25('0x3f'),!0x0);}}[_0x4c25('0x94')](_0x3997a9){this[_0x4c25('0xea')](_0x3997a9);const _0x41f897=this['editor']['data'][_0x4c25('0x4a')](_0x3997a9,{}),_0x23b2a6=Array[_0x4c25('0x65')](_0x41f897['getChildren']())['map'](_0x43b4ff=>this['_getViewJson'](_0x43b4ff));return JSON[_0x4c25('0x1')](_0x23b2a6);}['_getViewJson'](_0x26e1fa){if(_0x26e1fa['is'](_0x4c25('0xc8')))return _0x26e1fa[_0x4c25('0x92')];{const _0x892a2d=_0x26e1fa;return{'type':Object[_0x4c25('0xf1')](B)[_0x4c25('0x17')](_0x461cc2=>_0x26e1fa instanceof B[_0x461cc2]),'name':_0x892a2d['name'],'attributes':Array[_0x4c25('0x65')](_0x892a2d[_0x4c25('0x49')]()),'children':Array[_0x4c25('0x65')](_0x892a2d[_0x4c25('0x108')]())[_0x4c25('0x76')](_0x25f388=>this[_0x4c25('0x3c')](_0x25f388))};}}[_0x4c25('0x86')](_0x30e69d,_0x5709f9,_0x40c08c,_0x51ea74,_0x5f505e){let _0x44a2e1=null,_0x54bc8c=null,_0x4871cc=0x0;const _0x538095=this['editor'][_0x4c25('0xbf')];for(let _0x4e7c4c=0x0;_0x4e7c4c<_0x5709f9['length'];_0x4e7c4c++){const _0x2e3a55=this[_0x4c25('0xe3')](_0x5709f9[_0x4e7c4c]),_0x1b2331=_0x5709f9[_0x4e7c4c][_0x4c25('0x71')][_0x4c25('0x93')](_0x2e3a55),_0x161363=_0x40c08c['get'](_0x1b2331),_0x5b70c0=_0x4e7c4c==_0x5709f9[_0x4c25('0xee')]-0x1;(!_0x44a2e1&&_0x161363&&(_0x44a2e1=_0x161363,_0x54bc8c=_0x5709f9[_0x4e7c4c]),_0x44a2e1&&(!_0x161363||_0x161363[_0x4c25('0x11')]!=_0x44a2e1[_0x4c25('0x11')]))&&(_0x131c1f(_0x161363,L(_0x54bc8c,_0x30e69d,_0x538095),L(_0x5709f9[_0x4e7c4c],_0x30e69d,_0x538095)),_0x44a2e1=_0x161363||null,_0x54bc8c=_0x161363?_0x5709f9[_0x4e7c4c]:null),_0x44a2e1&&_0x5b70c0&&_0x131c1f(_0x161363,L(_0x54bc8c,_0x30e69d,_0x538095),W(_0x5709f9[_0x4e7c4c],_0x30e69d,_0x538095));}function _0x131c1f(_0x4db321,_0x2de2d1,_0x21f93d){const _0x478fac=_0x44a2e1[_0x4c25('0x11')],_0x2055a9='revision:'+_0x51ea74+':'+_0x478fac+':'+_0x4871cc++,_0x460225=_0x538095[_0x4c25('0x10a')](_0x2de2d1,_0x21f93d);_0x30e69d[_0x4c25('0x21')][_0x4c25('0xc6')](_0x2055a9,_0x460225),null!==_0x478fac&&_0x5f505e[_0x4c25('0xd5')](_0x478fac);}}[_0x4c25('0xe3')](_0x2a4466){switch(_0x2a4466[_0x4c25('0xc7')]){case _0x4c25('0x4c'):return _0x4c25('0xc1');case'elementEnd':return'vid_end';default:return _0x4c25('0x8a');}}[_0x4c25('0x90')](_0x524289,_0x88b2b2){_0x524289['baseVersion']=null;for(const _0x37c2b2 in _0x524289){const _0x58303e=_0x524289[_0x37c2b2];if(_0x58303e instanceof _0x6ee2fe){const _0x2e8efe=_0x88b2b2[_0x4c25('0x4e')](_0x58303e[_0x4c25('0xa7')][_0x4c25('0xa6')]);_0x524289[_0x37c2b2]=this[_0x4c25('0x3b')](_0x58303e,_0x2e8efe);}if(_0x58303e instanceof _0xd70dd2){const _0x418308=_0x88b2b2[_0x4c25('0x4e')](_0x58303e[_0x4c25('0xa7')][_0x4c25('0xa6')]);_0x524289[_0x37c2b2]=this[_0x4c25('0x2e')](_0x58303e,_0x418308);}_0x4c25('0xa7')===_0x37c2b2&&(_0x524289['root']=_0x88b2b2[_0x4c25('0x4e')](_0x524289[_0x4c25('0xa7')][_0x4c25('0xa6')]));}}['_fixRange'](_0x32af6c,_0x426b3e){return this[_0x4c25('0xf6')][_0x4c25('0xbf')][_0x4c25('0x10a')](this[_0x4c25('0x3b')](_0x32af6c[_0x4c25('0xf3')],_0x426b3e),this[_0x4c25('0x3b')](_0x32af6c[_0x4c25('0xad')],_0x426b3e));}[_0x4c25('0x3b')](_0x50a745,_0x141156){return this[_0x4c25('0xf6')][_0x4c25('0xbf')]['createPositionFromPath'](_0x141156,_0x50a745[_0x4c25('0x39')],_0x50a745['stickiness']);}[_0x4c25('0x3e')](_0x487962){const _0xb93d8=this[_0x4c25('0x7e')][_0x4c25('0x4e')](_0x487962[_0x4c25('0xb0')]['root']['rootName']),_0x5d4edc=this[_0x4c25('0x3b')](_0x487962[_0x4c25('0xb0')],_0xb93d8),_0x785972=null===_0x487962[_0x4c25('0x58')]?null:_0x487962[_0x4c25('0x58')]||this[_0x4c25('0xf6')]['plugins'][_0x4c25('0x4e')](_0x4c25('0x105'))['me']['id'],_0x4ba9c2=_0x5d4edc[_0x4c25('0x5a')],_0x248f21=this[_0x4c25('0x9b')],_0x342695=[];for(const _0x5731b8 of _0x487962['nodes'])if(_0x5731b8['is'](_0x4c25('0x29')))_0x342695[_0x4c25('0xd8')](this[_0x4c25('0x2f')](_0x5731b8));else for(let _0x530884=0x0;_0x530884<_0x5731b8[_0x4c25('0xac')];_0x530884++)_0x342695[_0x4c25('0xd8')](new _0x41c059(_0x4c25('0xc8'),{'vid':this['_revisionId']++}));const _0xa84638=this['_revisionId'];for(let _0x1a7bc6=_0x248f21;_0x1a7bc6<_0xa84638;_0x1a7bc6++)this[_0x4c25('0xa1')][_0x4c25('0xc6')](_0x1a7bc6,{'userId':_0x785972});_0x4ba9c2[_0x4c25('0x10')](_0x5d4edc['offset'],_0x342695);}[_0x4c25('0x88')](_0x2cf576){(_0x2cf576=this[_0x4c25('0x73')](_0x2cf576,this[_0x4c25('0x7e')]))['_execute']();const _0x388cdc=null===_0x2cf576[_0x4c25('0x58')]?null:_0x2cf576[_0x4c25('0x58')]||this[_0x4c25('0xf6')]['plugins']['get'](_0x4c25('0x105'))['me']['id'],_0x3d35a1=_0x2cf576[_0x4c25('0x77')](),_0x32761c=_0x3d35a1['parent'],_0x34df02=_0x3d35a1[_0x4c25('0x104')];!function _0x552fa2(_0x4bf36c,_0x5b9ee8,_0x536311,_0x599f34){for(let _0xd665c3=_0x536311;_0xd665c3<_0x599f34;_0xd665c3++){const _0x5292dc=_0x5b9ee8[_0x4c25('0xa8')](_0xd665c3);_0x5292dc['is'](_0x4c25('0x29'),_0x4c25('0xc8'))?_0x4bf36c[_0x4c25('0xc6')](_0x5292dc[_0x4c25('0x93')](_0x4c25('0x8a')),{'userId':_0x388cdc}):(_0x4bf36c[_0x4c25('0xc6')](_0x5292dc[_0x4c25('0x93')](_0x4c25('0xc1')),{'userId':_0x388cdc}),_0x552fa2(_0x4bf36c,_0x5292dc,0x0,_0x5292dc[_0x4c25('0xa')]),_0x4bf36c['set'](_0x5292dc[_0x4c25('0x93')]('vid_end'),{'userId':_0x388cdc}));}}(this[_0x4c25('0xa1')],_0x32761c,_0x34df02,_0x34df02+_0x2cf576[_0x4c25('0x53')]);}[_0x4c25('0x31')](_0x32f100){const _0x1f9587=null===(_0x32f100=this[_0x4c25('0x73')](_0x32f100,this[_0x4c25('0x7e')]))['_authorId']?null:_0x32f100[_0x4c25('0x58')]||this['editor'][_0x4c25('0x95')]['get']('Users')['me']['id'],_0x26fc6b=_0x32f100[_0x4c25('0x9')][_0x4c25('0x5a')],_0xc08eb6=_0x32f100[_0x4c25('0xb9')][_0x4c25('0x5a')],_0x1db2b2=_0x26fc6b[_0x4c25('0x93')]('vid_end'),_0x5bb874=_0xc08eb6[_0x4c25('0x93')]('vid_start');_0x26fc6b[_0x4c25('0xb')](_0x4c25('0x27'),_0xc08eb6['getAttribute'](_0x4c25('0x27'))),_0xc08eb6['_setAttribute'](_0x4c25('0x27'),_0x1db2b2),this[_0x4c25('0xa1')][_0x4c25('0xc6')](_0x5bb874,{'userId':_0x1f9587}),this[_0x4c25('0xa1')]['set'](_0x1db2b2,{'userId':_0x1f9587}),_0x32f100[_0x4c25('0xf2')]();}[_0x4c25('0xf')](_0x32317f){const _0x9dd9c6=null===(_0x32317f=this['_cloneOperation'](_0x32317f,this[_0x4c25('0x7e')]))[_0x4c25('0x58')]?null:_0x32317f[_0x4c25('0x58')]||this['editor']['plugins'][_0x4c25('0x4e')](_0x4c25('0x105'))['me']['id'],_0x3b9d1b=_0x32317f[_0x4c25('0xb5')],_0x54d7f3=_0x32317f[_0x4c25('0x48')][_0x4c25('0x5a')];_0x32317f[_0x4c25('0xf2')]();const _0x130db=_0x54d7f3[_0x4c25('0x93')]('vid_end'),_0x300361=_0x32317f['insertionPosition'][_0x4c25('0x2d')];if(_0x3b9d1b){const _0x474f88=_0x300361[_0x4c25('0x93')](_0x4c25('0x27')),_0x4cc494=_0x54d7f3[_0x4c25('0x93')](_0x4c25('0x27'));_0x54d7f3[_0x4c25('0xb')](_0x4c25('0x27'),_0x474f88),_0x300361[_0x4c25('0xb')](_0x4c25('0x27'),_0x4cc494),this[_0x4c25('0xa1')]['set'](_0x54d7f3[_0x4c25('0x93')]('vid_end'),{'userId':_0x9dd9c6}),this[_0x4c25('0xa1')][_0x4c25('0xc6')](_0x300361[_0x4c25('0x93')]('vid_start'),{'userId':_0x9dd9c6});}else{const _0xd83341=this['_revisionId']++,_0x3aed6f=this[_0x4c25('0x9b')]++;_0x54d7f3[_0x4c25('0xb')](_0x4c25('0x27'),_0xd83341),_0x300361[_0x4c25('0xb')](_0x4c25('0xc1'),_0x3aed6f),_0x300361[_0x4c25('0xb')](_0x4c25('0x27'),_0x130db),this[_0x4c25('0xa1')]['set'](_0xd83341,{'userId':_0x9dd9c6}),this['_touched']['set'](_0x3aed6f,{'userId':_0x9dd9c6});}}[_0x4c25('0xa4')](_0x1372ea){if(!_0x1372ea['affectsData'])return;const _0x5ccaba=(_0x1372ea=this[_0x4c25('0x73')](_0x1372ea,this['_diffRoots']))['oldRange']?_0x1372ea[_0x4c25('0xc')][_0x4c25('0xa7')]:null,_0x507458=_0x1372ea[_0x4c25('0x44')]?_0x1372ea['newRange'][_0x4c25('0xa7')]:null;_0x5ccaba&&this['_markers'][_0x4c25('0xe7')](_0x1372ea[_0x4c25('0x5b')]),_0x507458&&this[_0x4c25('0xda')][_0x4c25('0xc6')](_0x1372ea[_0x4c25('0x5b')],_0x1372ea[_0x4c25('0x44')][_0x4c25('0x25')]());const _0x10cdbe=null===_0x1372ea['_authorId']?null:_0x1372ea[_0x4c25('0x58')]||this['editor'][_0x4c25('0x95')]['get'](_0x4c25('0x105'))['me']['id'],_0x5e2fdb=_0x1372ea['name'];if(!this['_touchedMarkers'][_0x4c25('0x4')](_0x5e2fdb))return void this[_0x4c25('0x99')][_0x4c25('0xc6')](_0x5e2fdb,{'range':_0x1372ea[_0x4c25('0xc')],'userId':_0x10cdbe});const _0x42012a=this['_touchedMarkers'][_0x4c25('0x4e')](_0x5e2fdb),_0x3d3229=_0x42012a[_0x4c25('0x46')],_0xfc76a0=_0x1372ea['newRange'];null==_0x3d3229&&null==_0xfc76a0||_0x3d3229&&_0xfc76a0&&_0x3d3229[_0x4c25('0x56')](_0xfc76a0)?this[_0x4c25('0x99')][_0x4c25('0xe7')](_0x1372ea[_0x4c25('0x5b')]):_0x42012a['userId']=_0x10cdbe;}[_0x4c25('0x5d')](_0x12fe94,_0x14d908){this['_diffRoots'][_0x4c25('0x4')](_0x12fe94[_0x4c25('0xa6')])?this['_diffRoots'][_0x4c25('0x4e')](_0x12fe94[_0x4c25('0xa6')])[_0x4c25('0xed')]=_0x12fe94['isAdd']:(this[_0x4c25('0x24')][_0x4c25('0xc6')](_0x12fe94[_0x4c25('0xa6')],G(_0x12fe94[_0x4c25('0xa6')],!0x0)),this[_0x4c25('0x14')][_0x4c25('0xc6')](_0x12fe94['rootName'],{}),_0x14d908&&this[_0x4c25('0x7e')]['set'](_0x12fe94['rootName'],G(_0x12fe94[_0x4c25('0xa6')],!0x0)));const _0x221f10=null===_0x12fe94['_authorId']?null:_0x12fe94[_0x4c25('0x58')]||this[_0x4c25('0xf6')][_0x4c25('0x95')]['get']('Users')['me']['id'],_0x14b9aa=this['_touchedRoots'][_0x4c25('0x4e')](_0x12fe94[_0x4c25('0xa6')]);_0x14b9aa&&_0x14b9aa[_0x4c25('0x11')]===_0x221f10?this[_0x4c25('0xa9')][_0x4c25('0xe7')](_0x12fe94['rootName']):this[_0x4c25('0xa9')]['set'](_0x12fe94[_0x4c25('0xa6')],{'userId':_0x221f10,'isAttached':_0x12fe94[_0x4c25('0x5c')]});}[_0x4c25('0x85')](_0x21ec01){const _0x4ae8d6=this[_0x4c25('0x14')][_0x4c25('0x4e')](_0x21ec01[_0x4c25('0xa7')][_0x4c25('0xa6')]);null===_0x21ec01[_0x4c25('0x1a')]?delete _0x4ae8d6[_0x21ec01[_0x4c25('0x34')]]:_0x4ae8d6[_0x21ec01[_0x4c25('0x34')]]=_0x21ec01[_0x4c25('0x1a')];}}function q(_0x84667){const _0x1d64cf=G(_0x84667[_0x4c25('0xa6')],_0x84667[_0x4c25('0x33')]());for(const _0x56f000 of _0x84667['getChildren']()){const _0x146233=_0x56f000[_0x4c25('0xb4')](!0x0);_0x1d64cf[_0x4c25('0x32')](_0x146233);}return _0x1d64cf;}function G(_0x44e237,_0x4aa3c9=!0x0){const _0x44ce81=new _0x2f2bb2();return _0x44ce81[_0x4c25('0xa6')]=_0x44e237,_0x44ce81['_isAttached']=_0x4aa3c9,_0x44ce81[_0x4c25('0x33')]=()=>_0x44ce81['_isAttached'],_0x44ce81;}function L(_0x187055,_0x4d756d,_0x1444b2){const _0x7ec3a=_0x4c25('0xd4')==_0x187055[_0x4c25('0xc7')]?_0x1444b2[_0x4c25('0x70')](_0x187055[_0x4c25('0x71')],_0x4c25('0xad')):_0x1444b2['createPositionBefore'](_0x187055[_0x4c25('0x71')]);return _0x1444b2[_0x4c25('0x78')](_0x4d756d,_0x7ec3a['path'],_0x7ec3a[_0x4c25('0xbd')]);}function W(_0x5194bf,_0x4da930,_0x2186c2){const _0x1ff444=_0x4c25('0x4c')==_0x5194bf[_0x4c25('0xc7')]?_0x2186c2[_0x4c25('0x70')](_0x5194bf[_0x4c25('0x71')],0x0):_0x2186c2[_0x4c25('0x15')](_0x5194bf[_0x4c25('0x71')]);return _0x2186c2[_0x4c25('0x78')](_0x4da930,_0x1ff444['path'],_0x1ff444[_0x4c25('0xbd')]);}