@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231008.0 → 0.0.0-nightly-20231010.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.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3413=['source','_handleOperation','RevisionTracker','documentFragment','path','position','_loadState','_getFromVersion','_revisionDataBuilder','_handleSplitOperation','_markers','elementEnd','length','filter','rootsAttributes','attributes','_update','_loadedStateData','useFillerType','_startingVersion','_source','addRevisionData','dataToMarker','text','_setAttribute','markerToData','from','addRevision','insertions','type','_getState','_removeRevisionMarkers','_getVidAttributeName','_processRootBeforeSave','_execute','createPositionBefore','NEGATIVE_INFINITY','has','data','createPositionAfter','fromVersion','_loadRevisionData','split','_makeIdsRoot','_diffRoots','_saveMetaData','authorsIds','_reset','getData','createPositionFromPath','createRange','fromEntries','getMovedRangeStart','insertion','add','isEnabled','_baseRoots','getTime','getNodeByPath','editing','dataDowncast','start','parse','toModel','history','_isAttached','PendingActions','element','range','getChild','repository','map','getChildren','values','roots','_operations','childCount','collaboration.channelId','_fixRange','affectsData','howMany','_handleMergeOperation','_setConversion','nodes','Users','keys','marker','clear','setRevisionData','_fixPosition','sendBufferedUpdates','deletions','_transformMarkers','createdAt','_touchedMarkers','_touched','createRangeIn','offsetSize','changeRootAttribute','insert','toVersion','then','getRange','stickiness','getRevisions','creator','_diffRootsAttributes','sourcePosition','markers','vid','createRevision','delete','_cloneOperation','_makeRevision','_touchedRoots','getLatestVersion','_handleMoveOperation','set','$graveyard','_makeModelFromViewString','revision-end','_applyOperations','_initialRevisionId','_idsRoots','baseVersion','_prepareViewToSave','for','document','editor','key','_handleRootOperation','buildRevisionData','model','_startingRevisionId','_appendChild','adapter','_createCurrentRevision','PENDING_ACTION_REVISION_HISTORY','getAttributes','getUser','init','offset','vid_end','authors','view','plugins','_getPreviousFrom','revisionHistory.resumeUnsavedRevision','getTransformedByOperation','forEach','creatorId','isReady','get','_findInsertionIndex','children','getWalker','processor','userId','getRevision','oldRange','isAdd','previousPosition','_createInitialRevision','_handleRootAttributeOperation','_removeMetaData','attachChange','vid_start','toData','keepParagraph','RealTimeCollaborationClient','size','version','getIndex','_continueCurrentRevision','getRoot','push','root','clone','item','updateRevisions','startsWith','toView','locale','loadState','getRevisionRootsAttributes','getCurrentRevisionId','_savedMetaData','saveRevision','move','_getBaseVids','initialData','_authorId','stringify','merge','tableCell','_markChanges','end','find','graveyardPosition','string','resolve','_addPendingAction','_pendingAction','attributesAfter','_removePendingAction','currentRevision','targetPosition','name','includes','reInit','default','addRootAttribute','$text','isAttached','_baseRootsAttributes','bind','_clone','_insertChild','getAncestors','_getViewJson','revision','_handleInsertOperation','getAttribute','_fixOperation','conversion','_generateTape','_handleMarkerOperation','parent','data-revision-','finally','_lastFrom','getRevisionDocumentData','getRootNames','elementStart','_baseIdsRoots','slice','rootName','_revisionId','sort','update','RevisionsRepository','insertionPosition','config','newRange','addRoot','revision:','_bufferUpdate','_lastTo','newValue','_bufferedUpdates','diffData','_copyMarkers','isEqual','ready','reverse'];(function(_0x30a4d1,_0x34139a){const _0x5779a1=function(_0xad33bb){while(--_0xad33bb){_0x30a4d1['push'](_0x30a4d1['shift']());}};_0x5779a1(++_0x34139a);}(_0x3413,0x70));const _0x5779=function(_0x30a4d1,_0x34139a){_0x30a4d1=_0x30a4d1-0x0;let _0x5779a1=_0x3413[_0x30a4d1];return _0x5779a1;};import{Users as _0x2fb386}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xa4e993,PendingActions as _0x36ba0a}from'ckeditor5/src/core';import{logWarning as _0x437c49,uid as _0x54a455}from'ckeditor5/src/utils';import{Position as _0x59e44b,Range as _0x3b7305,Element as _0x531e94,DocumentFragment as _0x2d3eef,ViewText as _0x3c27ae,ViewElement as _0xf5a0a5,ViewContainerElement as _0x18af0b,ViewAttributeElement as _0x2588ec,ViewEmptyElement as _0x52cdad,ViewRawElement as _0x4f2d83,ViewUIElement as _0x3271a8,ViewDocumentFragment as _0x38fcfa}from'ckeditor5/src/engine';import _0x5ce2f7 from'./revisionsrepository';import{getTranslation as _0x2f71b0}from'./utils/common-translations';import{cloneDeep as _0xdaae97,isEqual as _0x4a1bba}from'lodash-es';const B={'c':_0x18af0b,'a':_0x2588ec,'e':_0x52cdad,'r':_0x4f2d83,'u':_0x3271a8};export default class l extends _0xa4e993{static get['pluginName'](){return _0x5779('0x91');}static get['requires'](){return[_0x2fb386,_0x5ce2f7,_0x36ba0a];}constructor(_0x11deb3){super(_0x11deb3),this['adapter']=null,this[_0x5779('0x5d')]=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0x5779('0xa')]=this['editor'][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0xdc'))||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2f59e5=_0x54a455();this[_0x5779('0xa3')]={'history':this['editor'][_0x5779('0x14')]['document']['history'],'getLatestVersion':()=>Promise[_0x5779('0x58')](this['editor'][_0x5779('0x14')]['document'][_0x5779('0x3b')]),'getCurrentRevisionId':()=>_0x2f59e5},this['set'](_0x5779('0x27'),!0x1),this[_0x5779('0x5')](_0x5779('0xc6'),!0x0),this[_0x5779('0x5')]('_isPendingUpdate',!0x1),this[_0x5779('0x10')]['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x5779('0x10')][_0x5779('0x70')][_0x5779('0xe')]('upcast')[_0x5779('0xa5')]({'view':_0x5779('0x6c')});}[_0x5779('0x1c')](){this['repository']=this[_0x5779('0x10')][_0x5779('0x21')]['get'](_0x5779('0x80')),this[_0x5779('0xe1')](),this['editor']['data']['on'](_0x5779('0x8d'),()=>{const _0x146441=this[_0x5779('0xd5')][_0x5779('0x2e')](0x0),_0x5a0724=_0x146441&&null===_0x146441['creator']?_0x146441:null;if(this[_0x5779('0x3d')]=!!_0x5a0724&&this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0x23')),this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0xb4')](_0x5779('0x39'))){const _0x58e820=this[_0x5779('0xa3')]['getCurrentRevisionId'](),_0x12c6a8=this[_0x5779('0xd5')][_0x5779('0x2e')](_0x58e820);if(_0x12c6a8)this[_0x5779('0xa2')]=_0x12c6a8[_0x5779('0xb7')],this[_0x5779('0x3d')]=!0x1;else{const _0x11a1bb=this[_0x5779('0xa3')][_0x5779('0xcf')][_0x5779('0xda')][_0x5779('0x55')](_0x36ff88=>!_0x36ff88['_isInit']),_0x54f911=_0x11a1bb?_0x11a1bb[_0x5779('0xc')]:this[_0x5779('0xa3')][_0x5779('0xcf')]['version'];_0x146441?(_0x146441[_0x5779('0xf3')]<_0x54f911&&_0x146441[_0x5779('0x9f')]({'toVersion':_0x54f911}),this[_0x5779('0x3d')]?(this[_0x5779('0xa3')][_0x5779('0x49')]=()=>_0x5a0724['id'],this[_0x5779('0xa2')]=_0x5a0724['fromVersion']):(this[_0x5779('0xa2')]=_0x146441[_0x5779('0xf3')],this[_0x5779('0x3d')]=!0x1)):(this[_0x5779('0xa2')]=_0x54f911,this['_continueCurrentRevision']=!0x1);}}else _0x5a0724&&(this[_0x5779('0x10')]['model'][_0x5779('0xf')]['history']['version']=Math['max'](_0x5a0724[_0x5779('0xf3')],this['editor'][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0xcf')][_0x5779('0x3b')]),_0x5a0724[_0x5779('0xb7')]===_0x5a0724[_0x5779('0xf3')]?(0x0!==_0x5a0724[_0x5779('0xb7')]&&(this[_0x5779('0xa3')][_0x5779('0x49')]=()=>_0x5a0724['id']),this[_0x5779('0x3d')]=!0x1):this[_0x5779('0x3d')]&&(this[_0x5779('0xa3')]['getCurrentRevisionId']=()=>_0x5a0724['id'],this['_startingVersion']=_0x5a0724[_0x5779('0xb7')])),this[_0x5779('0x3d')]||(this[_0x5779('0xa2')]=this[_0x5779('0x10')][_0x5779('0x14')]['document'][_0x5779('0x3b')]);this['_revisionDataBuilder'][_0x5779('0x1c')](this[_0x5779('0xa3')][_0x5779('0xcf')]),this[_0x5779('0x32')](this[_0x5779('0xa2')]),this[_0x5779('0x18')](this[_0x5779('0xa2')]),this[_0x5779('0x17')]&&this[_0x5779('0xe9')]();}),this[_0x5779('0x67')]('isReady')['to'](this,'_isPendingUpdate',_0x18ce2b=>!_0x18ce2b);}async['afterInit'](){if(this[_0x5779('0xd5')][_0x5779('0x9b')]>0x0){const _0x30205e=this['repository']['getRevision'](0x0),_0x5dccd9=await this[_0x5779('0x77')](_0x30205e),_0x4f3e04=await this[_0x5779('0x48')](_0x30205e);this['_replaceEditorDataWithRevisionData'](_0x5dccd9,_0x4f3e04);}}['setSource'](_0x5356e1){this[_0x5779('0xa3')]=_0x5356e1;}async[_0x5779('0x7f')](){const _0x5a31ee=await this[_0x5779('0xa3')][_0x5779('0x3')]();if(_0x5a31ee>this[_0x5779('0x5d')][_0x5779('0xf3')]){await this[_0x5779('0x95')]();const _0x43f59c=this['buildRevisionData']({'revision':this[_0x5779('0x5d')],'to':_0x5a31ee});_0x43f59c[_0x5779('0x1f')]=_0x43f59c[_0x5779('0xbd')]['map'](_0x40de40=>this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))[_0x5779('0x1b')](_0x40de40)),this[_0x5779('0x5d')][_0x5779('0x9f')](_0x43f59c);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x5779('0xa0')]&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x5779('0x97')][_0x5779('0x47')](this[_0x5779('0x5d')]),this[_0x5779('0xa0')]={'fromVersion':this[_0x5779('0x5d')][_0x5779('0xb7')],'authors':this[_0x5779('0x5d')][_0x5779('0x1f')][_0x5779('0x7b')]()});}async[_0x5779('0x4b')](_0x3b55d4={},_0x2a7f5a=null){const _0x38eb67=[];await this[_0x5779('0x95')](),this['_continueCurrentRevision']=!0x1,_0x2a7f5a>this[_0x5779('0x5d')][_0x5779('0xf3')]&&(_0x2a7f5a=null),null===_0x2a7f5a&&(_0x2a7f5a=await this['_source'][_0x5779('0x3')]());const _0xaccd2e=this[_0x5779('0x96')](_0x2a7f5a),_0x2fc9f1=this[_0x5779('0x13')]({'from':_0xaccd2e,'to':_0x2a7f5a});if(this[_0x5779('0x5d')][_0x5779('0xf3')]<_0x2a7f5a){const _0x32e7ea=this[_0x5779('0x13')]({'revision':this[_0x5779('0x5d')],'from':_0x2a7f5a,'to':_0x2a7f5a});_0x32e7ea[_0x5779('0x1f')]=[],_0x32e7ea['authorsIds']=[],_0x32e7ea['id']=this[_0x5779('0x5d')]['id'],this['currentRevision'][_0x5779('0x9f')](_0x32e7ea,!0x0),delete _0x32e7ea[_0x5779('0x1f')],_0x38eb67[_0x5779('0x3f')](_0x32e7ea);}_0x3b55d4['creatorId']=this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x3b55d4[_0x5779('0x5f')]=_0x3b55d4[_0x5779('0x5f')]||null,_0x3b55d4['id']=_0x3b55d4['id']||_0x54a455(),_0x3b55d4={..._0x3b55d4,..._0x2fc9f1};const _0x56bcb4=this['addRevisionData'](_0x3b55d4);_0x38eb67[_0x5779('0x3f')](_0x3b55d4);const _0x520d10=this['repository'][_0x5779('0x3c')](_0x56bcb4);if(0x0!==_0x520d10){const _0x57e14a=this[_0x5779('0xd5')][_0x5779('0x2e')](_0x520d10-0x1);if(_0x57e14a[_0x5779('0xb7')]!==_0x2a7f5a){const _0x583c40=this[_0x5779('0x97')]['getData'](_0x2a7f5a,_0x57e14a[_0x5779('0xf3')]),_0x52e33d={'id':_0x57e14a['id'],'diffData':_0x583c40['diffData'],'authorsIds':_0x583c40[_0x5779('0xbd')],'authors':_0x583c40[_0x5779('0xbd')][_0x5779('0xd6')](_0x2f5c75=>this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')]('Users')[_0x5779('0x1b')](_0x2f5c75)),'fromVersion':_0x2a7f5a};_0x57e14a===this['currentRevision']&&(_0x52e33d[_0x5779('0xec')]=new Date(_0x3b55d4[_0x5779('0xec')][_0x5779('0xc8')]()+0xa)),_0x57e14a['_update'](_0x52e33d,!0x0),delete _0x52e33d[_0x5779('0x1f')],_0x38eb67['push'](_0x52e33d);}}if(this[_0x5779('0x17')]){for(const _0x518710 of _0x38eb67)this[_0x5779('0x86')](_0x518710['id'],_0x518710,!0x0);this[_0x5779('0xe9')]();}return _0x56bcb4;}[_0x5779('0xa4')](_0x51e79c){const _0x2c136c=this['repository'][_0x5779('0xfd')](_0x51e79c);return this[_0x5779('0x17')]&&_0x2c136c['on'](_0x5779('0x9f'),(_0x173acf,_0x92802c,_0x1a0075)=>{_0x1a0075||(this['_bufferUpdate'](_0x92802c['id'],_0x92802c,!0x0),this[_0x5779('0xe9')]());}),this[_0x5779('0xd5')][_0x5779('0xaa')](_0x2c136c,this['_findInsertionIndex'](_0x2c136c)),_0x2c136c;}async[_0x5779('0x77')](_0x2bfbd3){await this[_0x5779('0xb8')](_0x2bfbd3);const _0x463450={};for(const _0x25a92d in _0x2bfbd3[_0x5779('0x8a')]){if(_0x2bfbd3[_0x5779('0x8a')][_0x25a92d][_0x5779('0x35')]&&!_0x2bfbd3[_0x5779('0x8a')][_0x25a92d][_0x5779('0x35')]['isAttached'])continue;const _0x2cbba2=this[_0x5779('0xae')](JSON[_0x5779('0xcd')](_0x2bfbd3['diffData'][_0x25a92d][_0x5779('0xab')])),_0x590796=this[_0x5779('0x10')][_0x5779('0xca')][_0x5779('0x20')][_0x5779('0xf')],_0x2bc190=new _0x38fcfa(_0x590796,_0x2cbba2['map'](_0x5922f6=>J(_0x5922f6,this['editor'])));this[_0x5779('0x10')]['data'][_0x5779('0x2c')]['useFillerType']('marked'),_0x463450[_0x25a92d]=this[_0x5779('0x10')][_0x5779('0xb5')]['processor'][_0x5779('0x37')](_0x2bc190),this[_0x5779('0x10')][_0x5779('0xb5')][_0x5779('0x2c')][_0x5779('0xa1')](_0x5779('0x62'));}return _0x463450;}async[_0x5779('0x48')](_0x757c18){await this[_0x5779('0xb8')](_0x757c18);const _0xf4df2={};for(const _0x100e1c in _0x757c18[_0x5779('0x8a')])_0x757c18['diffData'][_0x100e1c][_0x5779('0x35')]&&!_0x757c18[_0x5779('0x8a')][_0x100e1c]['attachChange'][_0x5779('0x65')]||(_0xf4df2[_0x100e1c]=_0x757c18[_0x5779('0x8a')][_0x100e1c][_0x5779('0x5b')]||{});return _0xf4df2;}[_0x5779('0xe9')](){if(0x0===this['_bufferedUpdates'][_0x5779('0x3a')])return;if(this['_isPendingUpdate'])return;let _0x4a0aa4=Array[_0x5779('0xa9')](this[_0x5779('0x89')][_0x5779('0xd8')]());this[_0x5779('0x89')]['clear']();for(let _0x14efed=0x0;_0x14efed<_0x4a0aa4[_0x5779('0x9b')];_0x14efed++){const _0x598899=_0x4a0aa4[_0x14efed];let _0x24627c=!0x1;for(const _0x103aba of Object['keys'](_0x598899))void 0x0===_0x598899[_0x103aba]?delete _0x598899[_0x103aba]:'id'!==_0x103aba&&(_0x24627c=!0x0);_0x24627c||(_0x4a0aa4[_0x14efed]=null);}if(_0x4a0aa4=_0x4a0aa4[_0x5779('0x9c')](_0x3ec6d5=>null!==_0x3ec6d5),!_0x4a0aa4[_0x5779('0x9b')])return;for(let _0x19cfde=0x0;_0x19cfde<_0x4a0aa4[_0x5779('0x9b')];_0x19cfde++){const _0x1e6889=_0x4a0aa4[_0x19cfde];void 0x0!==_0x1e6889[_0x5779('0xb7')]&&void 0x0===_0x1e6889['toVersion']&&(_0x1e6889[_0x5779('0xf3')]=this[_0x5779('0xd5')]['getRevision'](_0x1e6889['id'])[_0x5779('0xf3')]),void 0x0!==_0x1e6889[_0x5779('0xf3')]&&void 0x0===_0x1e6889[_0x5779('0xb7')]&&(_0x1e6889['fromVersion']=this[_0x5779('0xd5')]['getRevision'](_0x1e6889['id'])[_0x5779('0xb7')]);}const _0x52e993=this['editor'][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0xdc'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0x5779('0x17')][_0x5779('0x43')](_0x4a0aa4,_0x52e993)[_0x5779('0x75')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5e1dfd=>{if(_0x5e1dfd)for(const _0x4d065a of _0x5e1dfd)this[_0x5779('0xe7')]({'id':_0x4d065a['id'],'createdAt':_0x4d065a[_0x5779('0xec')]});this[_0x5779('0x5c')](),this[_0x5779('0xe9')]();});}['_replaceEditorDataWithRevisionData'](_0x118483,_0x45ab7d){let _0x94ae87=this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0x4e')),_0x215478=this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0x9d'));if(void 0x0===_0x94ae87){_0x94ae87={};for(const _0x5cd00c of this['editor'][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0x78')]())_0x94ae87[_0x5cd00c]='';}if(_0x5779('0x57')==typeof _0x94ae87&&(_0x94ae87={'main':_0x94ae87}),void 0x0===_0x215478){_0x215478={};for(const _0x356ecb of this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0x78')]())_0x215478[_0x356ecb]={};}let _0x337b90=!0x1;const _0x621075=Object[_0x5779('0xe4')](_0x94ae87),_0x5ab5b5=Object[_0x5779('0xe4')](_0x118483);for(const _0x1b1ee2 of _0x621075){if(_0x94ae87[_0x1b1ee2]!==_0x118483[_0x1b1ee2]&&''!==_0x94ae87[_0x1b1ee2]['trim']()){_0x337b90=!0x0;break;}if(!_0x4a1bba(_0x215478[_0x1b1ee2],_0x45ab7d[_0x1b1ee2])&&Object['keys'](_0x215478[_0x1b1ee2])[_0x5779('0x9b')]>0x0){_0x337b90=!0x0;break;}}_0x337b90||(_0x337b90=_0x5ab5b5['some'](_0x3ed5ad=>!this['editor']['model']['document'][_0x5779('0x3e')](_0x3ed5ad))),_0x337b90&&_0x437c49('editor-initial-data-replaced-with-revision-data',{'editorData':_0x94ae87,'editorRootsAttributes':_0x215478,'revisionData':_0x118483,'revisionRootsAttributes':_0x45ab7d}),this['editor'][_0x5779('0x82')][_0x5779('0x5')](_0x5779('0x4e'),_0x118483),this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x5')]('rootsAttributes',_0x45ab7d);}[_0x5779('0x59')](){if(!this[_0x5779('0x5a')]){const _0x3f0dff=this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')]('PendingActions');this[_0x5779('0x5a')]=_0x3f0dff[_0x5779('0xc5')](_0x2f71b0(this['editor'][_0x5779('0x46')],_0x5779('0x19')));}}[_0x5779('0x5c')](){this[_0x5779('0x5a')]&&(this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xd1'))['remove'](this['_pendingAction']),this['_pendingAction']=null);}[_0x5779('0x29')](_0x17a2c0){const _0x223b13=this[_0x5779('0xd5')]['getRevisions']();_0x223b13[_0x5779('0x8e')]();let _0x2ddfb4=0x0;for(;_0x2ddfb4<_0x223b13[_0x5779('0x9b')];){const _0x31fe5b=_0x223b13[_0x2ddfb4];if(_0x31fe5b===this[_0x5779('0x5d')]){_0x2ddfb4++;continue;}if(_0x31fe5b['id']===this[_0x5779('0xa')])break;const _0x148c85=_0x17a2c0[_0x5779('0xf3')]-_0x31fe5b[_0x5779('0xf3')]||_0x17a2c0[_0x5779('0xb7')]-_0x31fe5b['fromVersion'];if(_0x148c85>0x0)break;if(_0x148c85<0x0)_0x2ddfb4++;else{if(!_0x17a2c0[_0x5779('0xf8')]&&_0x31fe5b[_0x5779('0xf8')])break;if(_0x31fe5b[_0x5779('0xf8')]||!_0x17a2c0[_0x5779('0xf8')]){if(_0x17a2c0[_0x5779('0xec')]>_0x31fe5b['createdAt'])break;_0x2ddfb4++;}else _0x2ddfb4++;}}return _0x2ddfb4;}['setRevisionData'](_0x4bd887){const _0x370ae3=this['repository'][_0x5779('0x2e')](_0x4bd887['id']);if(_0x4bd887[_0x5779('0xec')]&&(_0x4bd887['createdAt']=new Date(_0x4bd887[_0x5779('0xec')])),_0x4bd887[_0x5779('0xbd')]){const _0x326e32=this['editor'][_0x5779('0x21')][_0x5779('0x28')]('Users');_0x4bd887[_0x5779('0x1f')]=_0x4bd887[_0x5779('0xbd')]['map'](_0x40056f=>_0x326e32[_0x5779('0x1b')](_0x40056f));}_0x370ae3[_0x5779('0x9f')](_0x4bd887,!0x0);}['buildRevisionData']({revision:_0x45e12d=null,from:_0x5cd803=null,to:_0x5e1a5f=null}){_0x5cd803=null!==_0x5cd803?_0x5cd803:_0x45e12d[_0x5779('0xb7')],_0x5e1a5f=null!==_0x5e1a5f?_0x5e1a5f:_0x45e12d[_0x5779('0xf3')];const _0x1c3d8f=this['_revisionDataBuilder'][_0x5779('0xbf')](_0x5cd803,_0x5e1a5f),_0x17043b={'diffData':_0x1c3d8f['diffData'],'authorsIds':_0x1c3d8f[_0x5779('0xbd')],'fromVersion':_0x5cd803,'toVersion':_0x5e1a5f};if(!_0x45e12d||_0x5e1a5f!==_0x45e12d[_0x5779('0xf3')]){const _0x511842=_0x5e1a5f-0x1,_0x48c06c=this[_0x5779('0xa3')][_0x5779('0xcf')]['getOperation'](_0x511842);_0x17043b['createdAt']=_0x48c06c&&_0x48c06c[_0x5779('0xec')]||new Date();}if(this[_0x5779('0xa0')]&&_0x5cd803===this['_loadedStateData'][_0x5779('0xb7')])for(const _0x524ca6 of this[_0x5779('0xa0')][_0x5779('0x1f')])_0x17043b['authorsIds'][_0x5779('0x60')](_0x524ca6['id'])||_0x17043b[_0x5779('0xbd')][_0x5779('0x3f')](_0x524ca6['id']);return _0x17043b;}['_loadRevisionData'](_0x14841){if(!_0x14841||_0x14841[_0x5779('0x8a')])return Promise[_0x5779('0x58')]();{const _0x55f1e0=this['editor']['config'][_0x5779('0x28')](_0x5779('0xdc'));return this['adapter'][_0x5779('0x2e')]({'channelId':_0x55f1e0,'revisionId':_0x14841['id']})[_0x5779('0xf4')](_0x405adf=>{_0x14841[_0x5779('0x8a')]=_0x405adf[_0x5779('0x8a')];});}}[_0x5779('0x86')](_0x4ce87b,_0x580115,_0x3a2c6d){if(this[_0x5779('0x89')]['has'](_0x4ce87b)){const _0x56bc22=this[_0x5779('0x89')][_0x5779('0x28')](_0x4ce87b);_0x580115=_0x3a2c6d?{..._0x56bc22,..._0x580115}:{..._0x580115,..._0x56bc22};}this[_0x5779('0x89')]['set'](_0x4ce87b,_0x580115);}['_getFromVersion'](_0x1d8ba6){const _0x3fce52=this['repository'][_0x5779('0xf7')]();_0x3fce52[_0x5779('0x8e')](),_0x3fce52['shift']();const _0x1c06e8=_0x3fce52[_0x5779('0x55')](_0x30c467=>_0x30c467['toVersion']<=_0x1d8ba6)[_0x5779('0xf3')];return _0x1c06e8<this['_startingVersion']?this['_startingVersion']:_0x1c06e8;}['_createInitialRevision'](_0x5df7c9){const _0x11dba3=this['repository'][_0x5779('0x2e')](this[_0x5779('0xd5')][_0x5779('0x9b')]-0x1);if(_0x11dba3)this['_initialRevisionId']=_0x11dba3['id'];else{const _0x4c3808=!this[_0x5779('0x10')]['model'][_0x5779('0xf')][_0x5779('0xd9')]['find'](_0x20cf09=>this['editor'][_0x5779('0x14')]['hasContent'](_0x20cf09)),_0x1a5012=this['editor'][_0x5779('0x21')]['get']('Users')['me']['id'],_0xb64885=_0x2f71b0(this['editor'][_0x5779('0x46')],_0x4c3808?'Empty\x20document':'Initial\x20revision');this[_0x5779('0x1')]({'from':_0x5df7c9,'to':_0x5df7c9,'id':this[_0x5779('0xa')],'name':_0xb64885,'creatorId':_0x1a5012});}}[_0x5779('0x18')](_0x560f75){const _0x19a884=this[_0x5779('0xa3')][_0x5779('0x49')]();this[_0x5779('0x5d')]=this[_0x5779('0xd5')]['getRevision'](_0x19a884),this['currentRevision']||(this[_0x5779('0x5d')]=this['_makeRevision']({'from':_0x560f75,'to':_0x560f75,'id':_0x19a884,'name':'','creatorId':null}));}[_0x5779('0x1')]({name:_0x34fa6d,from:_0x36add4,to:_0x4e5ca0,creatorId:_0x41cc79,id:_0x589aa0}){const _0x5a230b=this[_0x5779('0x13')]({'from':_0x36add4,'to':_0x4e5ca0});_0x5a230b[_0x5779('0x5f')]=_0x34fa6d,_0x5a230b[_0x5779('0x26')]=_0x41cc79,_0x5a230b['id']=_0x589aa0;const _0x582f45=this[_0x5779('0xa4')](_0x5a230b);return this[_0x5779('0x17')]&&this[_0x5779('0x86')](_0x5a230b['id'],_0x5a230b,!0x0),_0x582f45;}[_0x5779('0xe1')](){this[_0x5779('0x10')][_0x5779('0x70')][_0x5779('0xe')](_0x5779('0xcb'))[_0x5779('0xa8')]({'model':_0x5779('0x6c')});}[_0x5779('0xae')](_0x4c6adc){return(_0x4c6adc=_0x4c6adc[_0x5779('0x9c')](_0x5926c8=>!_0x5926c8[_0x5779('0x5f')]||'revision-start'!==_0x5926c8['name']&&_0x5779('0x8')!==_0x5926c8[_0x5779('0x5f')]))[_0x5779('0x25')](_0x15bfdf=>{_0x5779('0x57')!=typeof _0x15bfdf&&(_0x15bfdf[_0x5779('0x2a')]=this[_0x5779('0xae')](_0x15bfdf[_0x5779('0x2a')]),_0x15bfdf[_0x5779('0x9e')]=_0x15bfdf[_0x5779('0x9e')]['filter'](_0x5e00ce=>!_0x5e00ce[0x0][_0x5779('0x44')](_0x5779('0x74'))));}),_0x4c6adc;}}function J(_0x537429,_0x2883a3){const _0x1a3ade=_0x2883a3[_0x5779('0xca')]['view'][_0x5779('0xf')];if(_0x5779('0x57')==typeof _0x537429)return new _0x3c27ae(_0x1a3ade,_0x537429);{const _0x5bf9aa=_0x537429['children'][_0x5779('0xd6')](_0x251689=>J(_0x251689,_0x2883a3));return new(B[_0x537429['type']]||_0xf5a0a5)(_0x1a3ade,_0x537429[_0x5779('0x5f')],_0x537429[_0x5779('0x9e')],_0x5bf9aa);}}class H{constructor(_0x2e752f){this[_0x5779('0x10')]=_0x2e752f,this[_0x5779('0x4a')]=new Map(),this[_0x5779('0x76')]=-0x1,this[_0x5779('0x87')]=-0x1,this['_markers']=new Map(),this[_0x5779('0xbb')]=new Map(),this[_0x5779('0xf9')]=new Map(),this[_0x5779('0xc7')]=new Map(),this[_0x5779('0x66')]=new Map(),this[_0x5779('0xb')]=new Map(),this[_0x5779('0x7a')]=new Map(),this[_0x5779('0xee')]=new Map(),this[_0x5779('0xed')]=new Map(),this[_0x5779('0x2')]=new Map(),this[_0x5779('0x7d')]=0x1;}[_0x5779('0x1c')](_0x81ef5){this[_0x5779('0x8f')]=_0x81ef5;const _0x4ddefd=new Map(),_0x1b96b5=new Map(),_0xe1ce29=this[_0x5779('0x10')][_0x5779('0x14')]['document'][_0x5779('0xd9')][_0x5779('0xd6')](_0x380660=>_0x380660['rootName']);for(const _0x4af762 of _0xe1ce29){const _0x27bfd7=this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0x3e')](_0x4af762),_0x3a40d7=q(_0x27bfd7);_0x4ddefd[_0x5779('0x5')](_0x4af762,_0x3a40d7),_0x1b96b5[_0x5779('0x5')](_0x4af762,Object[_0x5779('0xc2')](_0x27bfd7['getAttributes']()));}const _0x49cd37=Array[_0x5779('0xa9')](this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xfb')])[_0x5779('0xd6')](_0x2b8306=>[_0x2b8306[_0x5779('0x5f')],_0x2b8306[_0x5779('0xf5')]()]),_0x29b8d1=this['source']['version'];this[_0x5779('0xbc')](_0x29b8d1,_0x4ddefd,_0x49cd37,_0x1b96b5),this['_startingRevisionId']=this[_0x5779('0x7d')];const _0xa141c8=new Map(),_0x5109bf=new Map();for(const _0x1ba16e of _0xe1ce29){const _0xb32f75=G(_0x1ba16e);_0xa141c8[_0x5779('0x5')](_0x1ba16e,_0xb32f75),_0x5109bf[_0x5779('0x5')](_0x1ba16e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xa141c8,[],_0x5109bf);}[_0x5779('0xbf')](_0x27cc14,_0x9788fc){if(this[_0x5779('0x76')]===_0x27cc14&&this[_0x5779('0x87')]<=_0x9788fc)this[_0x5779('0x4a')][_0x5779('0x3a')]>0x1&&this[_0x5779('0x34')](this[_0x5779('0x87')]),this[_0x5779('0x9')](this[_0x5779('0x87')],_0x9788fc,!0x0);else{if(!this[_0x5779('0x4a')]['has'](_0x27cc14)){const _0x28ce64=this[_0x5779('0x22')](_0x27cc14);this['_calculateMetaData'](_0x28ce64,_0x27cc14,!0x1);}this['_calculateMetaData'](_0x27cc14,_0x9788fc,!0x0);}return this[_0x5779('0x76')]=_0x27cc14,this[_0x5779('0x87')]=_0x9788fc,this[_0x5779('0xad')]();}['loadState'](_0x5a4b37){this[_0x5779('0xbe')](),this[_0x5779('0x76')]=_0x5a4b37[_0x5779('0xb7')],this[_0x5779('0x87')]=_0x5a4b37['toVersion'];for(const _0x3de72d in _0x5a4b37[_0x5779('0x8a')]){const _0x228a31=_0x5a4b37['diffData'][_0x3de72d][_0x5779('0x35')],_0x3fd03e=_0xdaae97(_0x5a4b37[_0x5779('0x8a')][_0x3de72d]['attributesBefore'])||{},_0x5d5de3=this[_0x5779('0x7')](_0x5a4b37[_0x5779('0x8a')][_0x3de72d]['deletions']);_0x5d5de3[_0x5779('0x7c')]=_0x3de72d,_0x5d5de3[_0x5779('0xd0')]=!_0x228a31||!_0x228a31[_0x5779('0x65')],_0x5d5de3[_0x5779('0x65')]=()=>_0x5d5de3[_0x5779('0xd0')],this[_0x5779('0xc7')]['set'](_0x3de72d,_0x5d5de3),this[_0x5779('0x66')][_0x5779('0x5')](_0x3de72d,_0x3fd03e),_0x228a31&&this[_0x5779('0x2')][_0x5779('0x5')](_0x3de72d,_0x228a31);const _0x10c087=this[_0x5779('0xba')](_0x5d5de3);this[_0x5779('0x7a')]['set'](_0x3de72d,_0x10c087);for(const [_0x43c688,_0x5d7b34]of _0x5d5de3[_0x5779('0xfb')]){if(!_0x43c688[_0x5779('0x44')](_0x5779('0x85')))continue;const _0x42b508=_0x43c688[_0x5779('0xb9')](':')[0x2];for(const _0x1beb22 of _0x5d7b34[_0x5779('0x2b')]({'singleCharacters':!0x0})){const _0x3c9fc5=this[_0x5779('0xaf')](_0x1beb22),_0x43aa16=_0x5779('0x9a')==_0x1beb22[_0x5779('0xac')]?_0x1beb22[_0x5779('0x31')]['path'][_0x5779('0x7b')](0x0,-0x1):_0x1beb22['previousPosition'][_0x5779('0x93')],_0x519323=_0x10c087['getNodeByPath'](_0x43aa16)[_0x5779('0x6e')](_0x3c9fc5);this[_0x5779('0xee')][_0x5779('0x5')](_0x519323,{'userId':_0x42b508});}}}this[_0x5779('0x15')]=this[_0x5779('0x7d')];const _0x240207=[...Array(this[_0x5779('0x7d')])['keys']()][_0x5779('0x7b')](0x1)[_0x5779('0x9c')](_0x3b7852=>!this[_0x5779('0xee')][_0x5779('0xb4')](_0x3b7852));let _0x4e6022=0x0;const _0x114d7a=new Map();for(const _0xc7592b in _0x5a4b37['diffData']){const _0x4aba98=_0x5a4b37[_0x5779('0x8a')][_0xc7592b]['attachChange'],_0x4a2ce4=_0xdaae97(_0x5a4b37['diffData'][_0xc7592b][_0x5779('0x5b')])||{},_0x4d26c6=this['_makeModelFromViewString'](_0x5a4b37[_0x5779('0x8a')][_0xc7592b][_0x5779('0xab')]);_0x4d26c6[_0x5779('0x7c')]=_0xc7592b,_0x4d26c6[_0x5779('0xd0')]=!_0x4aba98||_0x4aba98[_0x5779('0x65')],_0x4d26c6['isAttached']=()=>_0x4d26c6[_0x5779('0xd0')],this[_0x5779('0xbb')]['set'](_0xc7592b,_0x4d26c6),this[_0x5779('0xf9')]['set'](_0xc7592b,_0x4a2ce4);const _0x4af268=this[_0x5779('0xba')](_0x4d26c6,Number[_0x5779('0xb3')]);this['_idsRoots'][_0x5779('0x5')](_0xc7592b,_0x4af268),_0x114d7a['set'](_0xc7592b,_0x4d26c6[_0x5779('0x65')]()?_0x4a2ce4:{});for(const [_0x8f9f23,_0x516889]of _0x4d26c6[_0x5779('0xfb')]){if(!_0x8f9f23[_0x5779('0x44')]('revision:'))continue;const _0xb99edd=_0x8f9f23[_0x5779('0xb9')](':')[0x2];for(const _0x5ac701 of _0x516889['getWalker']({'singleCharacters':!0x0})){const _0x273184=this[_0x5779('0xaf')](_0x5ac701),_0x3b2d85=this[_0x5779('0x7d')]++,_0x1286c9=_0x5779('0x9a')==_0x5ac701[_0x5779('0xac')]?_0x5ac701['previousPosition'][_0x5779('0x93')]['slice'](0x0,-0x1):_0x5ac701['previousPosition']['path'];_0x4af268[_0x5779('0xc9')](_0x1286c9)['_setAttribute'](_0x273184,_0x3b2d85),this[_0x5779('0xee')][_0x5779('0x5')](_0x3b2d85,{'userId':_0xb99edd});}}for(const _0x204c21 of this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xef')](_0x4d26c6)[_0x5779('0x2b')]({'singleCharacters':!0x0})){const _0x32aa20=this[_0x5779('0xaf')](_0x204c21),_0x18419b=_0x5779('0x9a')==_0x204c21[_0x5779('0xac')]?_0x204c21[_0x5779('0x31')]['path']['slice'](0x0,-0x1):_0x204c21[_0x5779('0x31')][_0x5779('0x93')],_0x2b5b22=_0x4af268['getNodeByPath'](_0x18419b);_0x2b5b22[_0x5779('0x6e')](_0x32aa20)>0x0||_0x2b5b22[_0x5779('0xa7')](_0x32aa20,_0x240207[_0x4e6022++]);}for(const [_0x150c0e,_0xddaa02]of _0x4d26c6['markers'])_0x150c0e[_0x5779('0x44')](_0x5779('0x85'))||this['_markers'][_0x5779('0x5')](_0x150c0e,_0xddaa02);}const _0x522bd9=G(_0x5779('0x6'));this['_baseRoots'][_0x5779('0x5')](_0x5779('0x6'),_0x522bd9),this[_0x5779('0x7a')]['set'](_0x5779('0x6'),this[_0x5779('0xba')](_0x522bd9,0x1));const _0x1c2a80=G(_0x5779('0x6'));this['_diffRoots']['set'](_0x5779('0x6'),_0x1c2a80),this['_idsRoots'][_0x5779('0x5')](_0x5779('0x6'),this['_makeIdsRoot'](_0x1c2a80,0x1));const _0x33c425=Array['from'](this[_0x5779('0xbb')])[_0x5779('0xd6')](([_0x584a2d,_0x40ede0])=>[_0x584a2d,q(_0x40ede0)]);this[_0x5779('0xbc')](this['_lastTo'],_0x33c425,this[_0x5779('0x99')],_0x114d7a);}[_0x5779('0x7')](_0x45f9dd){const _0x44ca49=JSON['parse'](_0x45f9dd),_0x262002=this[_0x5779('0x10')]['editing'][_0x5779('0x20')][_0x5779('0xf')],_0x27654a=new _0x38fcfa(_0x262002,_0x44ca49[_0x5779('0xd6')](_0x23fc86=>J(_0x23fc86,this[_0x5779('0x10')])));return this['editor']['data'][_0x5779('0xce')](_0x27654a);}[_0x5779('0xbc')](_0x46e4bb,_0x1c59bf,_0x5caa57,_0x229a29){const _0x341b54=new Map(_0x1c59bf),_0x45a362=new Map(_0xdaae97(_0x229a29)),_0x2a4a5b=new Map();for(const [_0x49232b,_0x54be42]of _0x5caa57)_0x2a4a5b[_0x5779('0x5')](_0x49232b,{'start':_0x54be42[_0x5779('0xcc')]['clone'](),'end':_0x54be42[_0x5779('0x54')]['clone'](),'rootName':_0x54be42[_0x5779('0x40')][_0x5779('0x7c')]});this[_0x5779('0x4a')][_0x5779('0x5')](_0x46e4bb,{'roots':_0x341b54,'markers':_0x2a4a5b,'rootsAttributes':_0x45a362});}[_0x5779('0x34')](_0x49c6cc){this[_0x5779('0x4a')][_0x5779('0xfe')](_0x49c6cc);}[_0x5779('0x61')](){this[_0x5779('0xbe')](),this[_0x5779('0x76')]=-0x1,this['_lastTo']=-0x1,this[_0x5779('0x4a')][_0x5779('0xe6')](),this[_0x5779('0x1c')](this[_0x5779('0x8f')]);}[_0x5779('0xbe')](){this[_0x5779('0xee')][_0x5779('0xe6')](),this[_0x5779('0xed')][_0x5779('0xe6')](),this[_0x5779('0x2')]['clear'](),this[_0x5779('0xbb')][_0x5779('0xe6')](),this[_0x5779('0xf9')][_0x5779('0xe6')](),this[_0x5779('0xc7')][_0x5779('0xe6')](),this['_baseRootsAttributes'][_0x5779('0xe6')](),this[_0x5779('0xb')][_0x5779('0xe6')](),this[_0x5779('0x7a')][_0x5779('0xe6')](),this[_0x5779('0x99')][_0x5779('0xe6')](),this[_0x5779('0x7d')]=0x1,this[_0x5779('0x15')]=this[_0x5779('0x7d')];}[_0x5779('0xba')](_0x323b62,_0x57b85e=null){let _0x3224f2=null;_0x323b62['is'](_0x5779('0x92'))||(_0x3224f2=new _0x531e94(_0x323b62['name'],{'vid_start':null===_0x57b85e?this[_0x5779('0x7d')]++:_0x57b85e++}));const _0x5ac0a8=[];for(const _0x1a3b65 of _0x323b62['getChildren']())if(_0x1a3b65['is'](_0x5779('0xd2'))){_0x5ac0a8[_0x5779('0x3f')](this[_0x5779('0xba')](_0x1a3b65,_0x57b85e));const _0x242742=_0x5ac0a8[_0x5ac0a8[_0x5779('0x9b')]-0x1];null!==_0x57b85e&&(_0x57b85e=_0x242742['is'](_0x5779('0xd2'),_0x5779('0x64'))?_0x242742[_0x5779('0x6e')](_0x5779('0xfc'))+0x1:_0x242742['getAttribute'](_0x5779('0x1e'))+0x1);}else for(let _0x5a4609=0x0;_0x5a4609<_0x1a3b65[_0x5779('0xf0')];_0x5a4609++)_0x5ac0a8['push'](new _0x531e94(_0x5779('0x64'),{'vid':null===_0x57b85e?this[_0x5779('0x7d')]++:_0x57b85e++}));if(_0x323b62['is']('documentFragment')){const _0x50e4c9=G(_0x323b62[_0x5779('0x7c')]);return _0x50e4c9[_0x5779('0x69')](0x0,_0x5ac0a8),_0x50e4c9;}return _0x3224f2['_setAttribute'](_0x5779('0x1e'),null===_0x57b85e?this['_revisionId']++:_0x57b85e++),_0x3224f2[_0x5779('0x69')](0x0,_0x5ac0a8),_0x3224f2;}['_calculateMetaData'](_0x276af1,_0x5c08d3,_0x56bbc0){this[_0x5779('0xbe')]();const {roots:_0x597bf3,markers:_0x1b22ca,rootsAttributes:_0x285e62}=this[_0x5779('0x4a')][_0x5779('0x28')](_0x276af1);this[_0x5779('0xc7')]=new Map(_0x597bf3),this[_0x5779('0x66')]=new Map(_0xdaae97(_0x285e62));for(const [_0x5defb6,_0x5f176e]of this[_0x5779('0xc7')])if(_0x5779('0x6')!==_0x5defb6&&(this[_0x5779('0xbb')][_0x5779('0x5')](_0x5defb6,q(_0x5f176e)),this[_0x5779('0xf9')]=new Map(_0xdaae97(_0x285e62)),_0x56bbc0)){const _0x3f34d1=this[_0x5779('0x7d')];this[_0x5779('0xb')][_0x5779('0x5')](_0x5defb6,this[_0x5779('0xba')](_0x5f176e)),this[_0x5779('0x7a')][_0x5779('0x5')](_0x5defb6,this[_0x5779('0xba')](_0x5f176e,_0x3f34d1));}this[_0x5779('0x15')]=this[_0x5779('0x7d')],this[_0x5779('0xbb')][_0x5779('0x5')](_0x5779('0x6'),q(this[_0x5779('0xc7')][_0x5779('0x28')]('$graveyard'))),_0x56bbc0&&this[_0x5779('0xb')]['set'](_0x5779('0x6'),this['_makeIdsRoot'](this[_0x5779('0xc7')][_0x5779('0x28')](_0x5779('0x6'))));for(const [_0x48e2c4,_0x310127]of _0x1b22ca){const _0x1fe115=this[_0x5779('0xc7')]['get'](_0x310127[_0x5779('0x7c')]),_0xdb82c5=this['_diffRoots'][_0x5779('0x28')](_0x310127[_0x5779('0x7c')]),_0x1b0872=new _0x3b7305(this[_0x5779('0xe8')](_0x310127[_0x5779('0xcc')],_0x1fe115),this['_fixPosition'](_0x310127[_0x5779('0x54')],_0x1fe115)),_0x5ea63a=this[_0x5779('0xdd')](_0x1b0872,_0xdb82c5);_0x1fe115[_0x5779('0xfb')][_0x5779('0x5')](_0x48e2c4,_0x1b0872),this[_0x5779('0x99')][_0x5779('0x5')](_0x48e2c4,_0x5ea63a);}this['_applyOperations'](_0x276af1,_0x5c08d3,_0x56bbc0);}['_applyOperations'](_0x66bd2b,_0x2d2952,_0x475d69){for(const _0x141398 of this[_0x5779('0x8f')]['getOperations'](_0x66bd2b,_0x2d2952))this['_handleOperation'](_0x141398,_0x475d69);for(const _0x224e05 of this['_diffRoots'][_0x5779('0xd8')]())_0x224e05[_0x5779('0xfb')][_0x5779('0xe6')]();for(const [_0x7c63c7,_0x38c959]of this[_0x5779('0x99')]){this[_0x5779('0xbb')]['get'](_0x38c959[_0x5779('0x40')][_0x5779('0x7c')])[_0x5779('0xfb')][_0x5779('0x5')](_0x7c63c7,_0x38c959[_0x5779('0x41')]());}const _0x26d21b=new Map(),_0x13334e=new Map();for(const [_0x53e25f,_0x49f5d8]of this[_0x5779('0xbb')])_0x26d21b[_0x5779('0x5')](_0x53e25f,q(_0x49f5d8)),_0x13334e['set'](_0x53e25f,this['_diffRootsAttributes'][_0x5779('0x28')](_0x53e25f));this[_0x5779('0xbc')](_0x2d2952,_0x26d21b,this[_0x5779('0x99')],_0x13334e);}['_getPreviousFrom'](_0x8594bb){const _0x1b09bc=Array[_0x5779('0xa9')](this[_0x5779('0x4a')][_0x5779('0xe4')]());_0x1b09bc[_0x5779('0x7e')]((_0x2f29d2,_0x1ae6af)=>_0x2f29d2-_0x1ae6af),_0x1b09bc[_0x5779('0x8e')]();for(const _0x55c0de of _0x1b09bc)if(_0x55c0de<_0x8594bb)return _0x55c0de;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x592ef6,_0x4af723){const _0x2f48a6=Array['from'](_0x4af723['markers'])[_0x5779('0xd6')](([_0xfeb3,_0x45ffc7])=>[_0xfeb3,this['_fixRange'](_0x45ffc7,_0x592ef6)]);_0x592ef6['markers']=new Map(_0x2f48a6);}[_0x5779('0xeb')](_0x191551){for(const _0x170014 of this['_markers'][_0x5779('0xd8')]()){const _0x1cf515=_0x170014[_0x5779('0x24')](_0x191551),_0x457cf5=_0x3b7305['_createFromRanges'](_0x1cf515);_0x170014['start']=_0x457cf5[_0x5779('0xcc')],_0x170014['end']=_0x457cf5[_0x5779('0x54')];}}[_0x5779('0x90')](_0x87b0e6,_0x1233ba){if(_0x5779('0x84')==_0x87b0e6[_0x5779('0xac')]||'detachRoot'==_0x87b0e6[_0x5779('0xac')])return void this[_0x5779('0x12')](_0x87b0e6,_0x1233ba);if(_0x5779('0xf2')==_0x87b0e6['type']){const _0x47a08a=_0x87b0e6['position'][_0x5779('0x40')][_0x5779('0x7c')];this[_0x5779('0xbb')][_0x5779('0xb4')](_0x47a08a)||(this[_0x5779('0xbb')][_0x5779('0x5')](_0x47a08a,G(_0x47a08a,!0x0)),this['_diffRootsAttributes'][_0x5779('0x5')](_0x47a08a,{}),_0x1233ba&&this[_0x5779('0xb')][_0x5779('0x5')](_0x47a08a,G(_0x47a08a,!0x0)));}else{if(_0x5779('0x63')==_0x87b0e6[_0x5779('0xac')]||'removeRootAttribute'==_0x87b0e6['type']||_0x5779('0xf1')==_0x87b0e6['type'])return void this[_0x5779('0x33')](_0x87b0e6);}const _0x3a5f53=this['_cloneOperation'](_0x87b0e6,this['_diffRoots']);if(_0x5779('0xe5')!==_0x87b0e6['type']&&(_0x3a5f53['_execute'](),this[_0x5779('0xeb')](_0x3a5f53)),_0x1233ba)switch(_0x3a5f53['type']){case'insert':this[_0x5779('0x6d')](_0x87b0e6);break;case _0x5779('0x4c'):case'remove':case'reinsert':this[_0x5779('0x4')](_0x87b0e6);break;case _0x5779('0x51'):this[_0x5779('0xe0')](_0x87b0e6);break;case'split':this[_0x5779('0x98')](_0x87b0e6);break;case'marker':this[_0x5779('0x72')](_0x87b0e6);}}[_0x5779('0x0')](_0x16d1ad,_0x5b2674){const _0x1b07b9=_0x16d1ad[_0x5779('0x41')]();return _0x1b07b9[_0x5779('0x4f')]=_0x16d1ad[_0x5779('0x4f')],this[_0x5779('0x6f')](_0x1b07b9,_0x5b2674),_0x1b07b9;}[_0x5779('0x4d')](_0x688d02){return _0x688d02[_0x5779('0xd6')](_0x1068d6=>{const _0x4048dc=this[_0x5779('0xaf')](_0x1068d6);return Number(_0x1068d6[_0x5779('0x42')]['getAttribute'](_0x4048dc));});}[_0x5779('0x71')](_0x38c822,_0x1e597c){if(_0x38c822['is'](_0x5779('0xd2'),_0x5779('0x64')))_0x1e597c['push']({'item':_0x38c822,'type':_0x5779('0xa6')});else{_0x38c822['is'](_0x5779('0xd2'))&&_0x1e597c[_0x5779('0x3f')]({'item':_0x38c822,'type':'elementStart'});for(const _0x14c5a5 of _0x38c822[_0x5779('0xd7')]())this[_0x5779('0x71')](_0x14c5a5,_0x1e597c);_0x38c822['is'](_0x5779('0xd2'))&&_0x1e597c[_0x5779('0x3f')]({'item':_0x38c822,'type':_0x5779('0x9a')});}return _0x1e597c;}[_0x5779('0xad')](){const _0x3c4519=new Map(this[_0x5779('0xee')]),_0x27e27d=new Map(_0x3c4519),_0x303639=new Map(),_0x11ec5f={'insertions':{},'deletions':{}},_0x389673={'insertions':{},'deletions':{}},_0xdd673=new Map(),_0x1d663b=new Set([...this[_0x5779('0xc7')]['keys'](),...this[_0x5779('0xbb')][_0x5779('0xe4')]()]);_0x1d663b['delete'](_0x5779('0x6'));for(const _0x3e4839 of _0x1d663b){const _0x3e03c3=this[_0x5779('0xbb')][_0x5779('0x28')](_0x3e4839)||G(_0x3e4839,!0x1),_0x101b66=this['_baseRoots'][_0x5779('0x28')](_0x3e4839)||G(_0x3e4839,!0x1);_0x3e03c3['isAttached']()||_0x101b66['isAttached']()?(_0x11ec5f[_0x5779('0xab')][_0x3e4839]=q(_0x3e03c3),_0x11ec5f[_0x5779('0xea')][_0x3e4839]=q(_0x101b66),this[_0x5779('0x8b')](_0x11ec5f[_0x5779('0xea')][_0x3e4839],_0x101b66),this[_0x5779('0x8b')](_0x11ec5f[_0x5779('0xab')][_0x3e4839],_0x3e03c3),_0x389673[_0x5779('0xab')][_0x3e4839]=this[_0x5779('0x71')](this[_0x5779('0xb')][_0x5779('0x28')](_0x3e4839),[]),_0x389673[_0x5779('0xea')][_0x3e4839]=this[_0x5779('0x71')](this[_0x5779('0x7a')][_0x5779('0x28')](_0x3e4839)||G(_0x3e4839,!0x1),[])):_0x1d663b[_0x5779('0xfe')](_0x3e4839);}for(const _0x3d1f19 of _0x1d663b){const _0x35320f=_0x389673[_0x5779('0xab')][_0x3d1f19];for(const _0x1afa60 of _0x35320f){const _0x65fed3=this[_0x5779('0xaf')](_0x1afa60),_0x127c8f=_0x1afa60[_0x5779('0x42')]['getAttribute'](_0x65fed3);_0x27e27d[_0x5779('0xfe')](_0x127c8f),_0x127c8f>=this['_startingRevisionId']&&_0x303639[_0x5779('0x5')](_0x127c8f,_0x3c4519['get'](_0x127c8f));}}for(const _0x28e968 of _0x1d663b){const _0x3b0637=_0x389673['insertions'][_0x28e968],_0x11f462=this[_0x5779('0x4d')](_0x389673['deletions'][_0x28e968]);let _0x435b82=0x0;for(const _0x4e8d0b of _0x3b0637){const _0x29dbbc=this[_0x5779('0xaf')](_0x4e8d0b),_0x3ab27e=_0x4e8d0b['item'][_0x5779('0x6e')](_0x29dbbc);if(!_0x303639['has'](_0x3ab27e)&&!_0xdd673[_0x5779('0xb4')](_0x3ab27e)){if(_0x27e27d[_0x5779('0xb4')](_0x3ab27e))_0x435b82++;else{if(_0x3ab27e!=_0x11f462[_0x435b82]){const _0x3b6cc9=_0x3c4519[_0x5779('0x28')](_0x3ab27e)||_0x3c4519[_0x5779('0x28')](_0x11f462[_0x435b82]);for(;_0x3ab27e!=_0x11f462[_0x435b82];)_0x27e27d[_0x5779('0xb4')](_0x11f462[_0x435b82])||(_0xdd673[_0x5779('0x5')](_0x11f462[_0x435b82],_0x3b6cc9),_0x3c4519['set'](_0x11f462[_0x435b82],_0x3b6cc9)),_0x435b82++;}_0x435b82++;}}}}for(const _0x24959f of _0x1d663b){const _0x13c828=_0x389673[_0x5779('0xab')][_0x24959f];for(const _0x14bb7d of _0x13c828){const _0x368668=this['_getVidAttributeName'](_0x14bb7d),_0x3b9891=_0x14bb7d[_0x5779('0x42')][_0x5779('0x6e')](_0x368668);if(_0xdd673[_0x5779('0xb4')](_0x3b9891)){const _0x266fcf=_0xdd673[_0x5779('0x28')](_0x3b9891);_0x27e27d[_0x5779('0xb4')](_0x3b9891)||_0x27e27d[_0x5779('0x5')](_0x3b9891,{..._0x266fcf}),_0x303639[_0x5779('0x5')](_0x3b9891,{..._0x266fcf});}}}for(const _0x5024cd of _0x27e27d['keys']())_0x5024cd>=this['_startingRevisionId']&&_0x27e27d[_0x5779('0xfe')](_0x5024cd);const _0x557e19=new Map();for(const _0x5148c6 of _0x1d663b){let _0x1bafbd=_0x389673['insertions'][_0x5148c6];for(const _0x31f241 of _0x1bafbd)if(_0x31f241[_0x5779('0x42')]['is'](_0x5779('0xd2'),_0x5779('0x52'))){const _0x37f1b9=this[_0x5779('0xaf')](_0x31f241),_0x22696f=_0x31f241['item'][_0x5779('0x6e')](_0x37f1b9);if(_0x303639[_0x5779('0xb4')](_0x22696f)){const _0x4d9e20=_0x31f241[_0x5779('0x42')]['parent']['parent'][_0x5779('0x6e')](_0x5779('0x36')),_0x51a5bc=_0x557e19[_0x5779('0x28')](_0x4d9e20)||new Set();_0x51a5bc['add'](_0x303639[_0x5779('0x28')](_0x22696f)['userId']),_0x557e19[_0x5779('0x5')](_0x4d9e20,_0x51a5bc);}}_0x1bafbd=_0x389673[_0x5779('0xea')][_0x5148c6];for(const _0xff04a6 of _0x1bafbd)if(_0xff04a6[_0x5779('0x42')]['is']('element','tableCell')){const _0x2fa75d=this[_0x5779('0xaf')](_0xff04a6),_0x190e7a=_0xff04a6['item'][_0x5779('0x6e')](_0x2fa75d);if(_0x27e27d[_0x5779('0xb4')](_0x190e7a)){const _0x8976d6=_0xff04a6[_0x5779('0x42')][_0x5779('0x73')][_0x5779('0x73')]['getAttribute'](_0x5779('0x36')),_0x3c9945=_0x557e19[_0x5779('0x28')](_0x8976d6)||new Set();_0x3c9945['add'](_0x27e27d[_0x5779('0x28')](_0x190e7a)[_0x5779('0x2d')]),_0x557e19[_0x5779('0x5')](_0x8976d6,_0x3c9945);}}for(const _0x2f0465 of _0x557e19[_0x5779('0xe4')]())(_0x303639[_0x5779('0xb4')](_0x2f0465)||_0x27e27d[_0x5779('0xb4')](_0x2f0465))&&_0x557e19['delete'](_0x2f0465);}for(const _0xa6c7ec of _0x1d663b){const _0x171bdd=_0x389673[_0x5779('0xab')][_0xa6c7ec];let _0x5676fc=null,_0x50e646=null;for(const _0x1dc407 of _0x171bdd){const _0x5480b9=this['_getVidAttributeName'](_0x1dc407),_0x4059f8=_0x1dc407[_0x5779('0x42')][_0x5779('0x6e')](_0x5480b9),_0x227bc6=_0x557e19[_0x5779('0x28')](_0x4059f8);_0x227bc6&&_0x5779('0x79')==_0x1dc407['type']&&(_0x5676fc=Array['from'](_0x227bc6)[0x0],_0x50e646=_0x1dc407[_0x5779('0x42')][_0x5779('0x6e')](_0x5779('0x1e'))),_0x5676fc&&(_0x27e27d[_0x5779('0x5')](_0x4059f8,{'userId':_0x5676fc}),_0x303639[_0x5779('0x5')](_0x4059f8,{'userId':_0x5676fc})),_0x4059f8==_0x50e646&&(_0x5676fc=null,_0x50e646=null);}}const _0x1b5001={},_0x51a370=new Set();for(const _0x52b11c of _0x1d663b){const _0x3ebb17=_0x11ec5f[_0x5779('0xea')][_0x52b11c],_0x5ab00e=_0x11ec5f[_0x5779('0xab')][_0x52b11c];for(const {userId:_0x443ea1}of this[_0x5779('0xed')]['values']())null!==_0x443ea1&&_0x51a370[_0x5779('0xc5')](_0x443ea1);for(const {userId:_0x5f11b8}of this[_0x5779('0x2')]['values']())null!==_0x5f11b8&&_0x51a370[_0x5779('0xc5')](_0x5f11b8);this['_markChanges'](_0x5ab00e,_0x389673[_0x5779('0xab')][_0x52b11c],_0x303639,_0x5779('0xc4'),_0x51a370),this[_0x5779('0x53')](_0x3ebb17,_0x389673['deletions'][_0x52b11c],_0x27e27d,'deletion',_0x51a370),_0x1b5001[_0x52b11c]={'insertions':this[_0x5779('0xd')](_0x5ab00e),'deletions':this['_prepareViewToSave'](_0x3ebb17),'attachChange':this[_0x5779('0x2')][_0x5779('0x28')](_0x52b11c)||null,'attributesBefore':_0xdaae97(this[_0x5779('0x66')][_0x5779('0x28')](_0x52b11c))||{},'attributesAfter':_0xdaae97(this[_0x5779('0xf9')][_0x5779('0x28')](_0x52b11c))};}return{'diffData':_0x1b5001,'authorsIds':Array[_0x5779('0xa9')](_0x51a370)};}['_processRootBeforeSave'](_0x2b4464){for(const [,_0x2df4e9]of _0x2b4464[_0x5779('0xfb')]){const _0x65f1b1=_0x2df4e9['start'][_0x5779('0x6a')]()['filter'](_0x54184b=>_0x5779('0x52')==_0x54184b[_0x5779('0x5f')]);for(const _0xa1a3d7 of _0x65f1b1)0x1==_0xa1a3d7[_0x5779('0xdb')]&&_0xa1a3d7['getChild'](0x0)['is'](_0x5779('0xd2'),'paragraph')&&_0xa1a3d7[_0x5779('0xd4')](0x0)[_0x5779('0xa7')](_0x5779('0x38'),!0x0);}}['_prepareViewToSave'](_0x383542){this[_0x5779('0xb0')](_0x383542);const _0xd8ad68=this['editor'][_0x5779('0xb5')][_0x5779('0x45')](_0x383542,{}),_0xb1d726=Array[_0x5779('0xa9')](_0xd8ad68[_0x5779('0xd7')]())[_0x5779('0xd6')](_0x1f1d97=>this[_0x5779('0x6b')](_0x1f1d97));return JSON[_0x5779('0x50')](_0xb1d726);}[_0x5779('0x6b')](_0x2b90da){if(_0x2b90da['is'](_0x5779('0x64')))return _0x2b90da['data'];{const _0x4e1a95=_0x2b90da;return{'type':Object[_0x5779('0xe4')](B)[_0x5779('0x55')](_0x28fa9d=>_0x2b90da instanceof B[_0x28fa9d]),'name':_0x4e1a95[_0x5779('0x5f')],'attributes':Array[_0x5779('0xa9')](_0x4e1a95[_0x5779('0x1a')]()),'children':Array[_0x5779('0xa9')](_0x4e1a95[_0x5779('0xd7')]())[_0x5779('0xd6')](_0x1ab124=>this[_0x5779('0x6b')](_0x1ab124))};}}[_0x5779('0x53')](_0x3f9d68,_0x483c88,_0x299e3f,_0x2e4d14,_0x3f49e9){let _0x40b525=null,_0x5694c7=null,_0x59fb1d=0x0;const _0x586caf=this['editor'][_0x5779('0x14')];for(let _0x57551e=0x0;_0x57551e<_0x483c88[_0x5779('0x9b')];_0x57551e++){const _0x69243e=this[_0x5779('0xaf')](_0x483c88[_0x57551e]),_0x5a7bcd=_0x483c88[_0x57551e][_0x5779('0x42')][_0x5779('0x6e')](_0x69243e),_0x5db531=_0x299e3f['get'](_0x5a7bcd),_0x15dca1=_0x57551e==_0x483c88[_0x5779('0x9b')]-0x1;(!_0x40b525&&_0x5db531&&(_0x40b525=_0x5db531,_0x5694c7=_0x483c88[_0x57551e]),_0x40b525&&(!_0x5db531||_0x5db531[_0x5779('0x2d')]!=_0x40b525['userId']))&&(_0x56ec19(_0x5db531,L(_0x5694c7,_0x3f9d68,_0x586caf),L(_0x483c88[_0x57551e],_0x3f9d68,_0x586caf)),_0x40b525=_0x5db531||null,_0x5694c7=_0x5db531?_0x483c88[_0x57551e]:null),_0x40b525&&_0x15dca1&&_0x56ec19(_0x5db531,L(_0x5694c7,_0x3f9d68,_0x586caf),W(_0x483c88[_0x57551e],_0x3f9d68,_0x586caf));}function _0x56ec19(_0xcd2d0a,_0x2b12ab,_0x164bdf){const _0x14f3c8=_0x40b525[_0x5779('0x2d')],_0x3cd704=_0x5779('0x85')+_0x2e4d14+':'+_0x14f3c8+':'+_0x59fb1d++,_0x35ed2a=_0x586caf[_0x5779('0xc1')](_0x2b12ab,_0x164bdf);_0x3f9d68[_0x5779('0xfb')][_0x5779('0x5')](_0x3cd704,_0x35ed2a),null!==_0x14f3c8&&_0x3f49e9[_0x5779('0xc5')](_0x14f3c8);}}[_0x5779('0xaf')](_0x2c58b0){switch(_0x2c58b0[_0x5779('0xac')]){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}[_0x5779('0x6f')](_0x3ad837,_0x581139){_0x3ad837[_0x5779('0xc')]=null;for(const _0x9024b8 in _0x3ad837){const _0x5470b9=_0x3ad837[_0x9024b8];if(_0x5470b9 instanceof _0x59e44b){const _0x7a9c8e=_0x581139[_0x5779('0x28')](_0x5470b9[_0x5779('0x40')]['rootName']);_0x3ad837[_0x9024b8]=this[_0x5779('0xe8')](_0x5470b9,_0x7a9c8e);}if(_0x5470b9 instanceof _0x3b7305){const _0x1cb89a=_0x581139['get'](_0x5470b9[_0x5779('0x40')][_0x5779('0x7c')]);_0x3ad837[_0x9024b8]=this['_fixRange'](_0x5470b9,_0x1cb89a);}_0x5779('0x40')===_0x9024b8&&(_0x3ad837[_0x5779('0x40')]=_0x581139['get'](_0x3ad837['root']['rootName']));}}[_0x5779('0xdd')](_0x3abc3c,_0x3df8b2){return this[_0x5779('0x10')][_0x5779('0x14')]['createRange'](this[_0x5779('0xe8')](_0x3abc3c[_0x5779('0xcc')],_0x3df8b2),this[_0x5779('0xe8')](_0x3abc3c[_0x5779('0x54')],_0x3df8b2));}[_0x5779('0xe8')](_0x279b9d,_0x21bf8f){return this['editor']['model'][_0x5779('0xc0')](_0x21bf8f,_0x279b9d[_0x5779('0x93')],_0x279b9d[_0x5779('0xf6')]);}[_0x5779('0x6d')](_0x33ca01){const _0x2eabbe=this[_0x5779('0xb')][_0x5779('0x28')](_0x33ca01[_0x5779('0x94')][_0x5779('0x40')][_0x5779('0x7c')]),_0x25772e=this[_0x5779('0xe8')](_0x33ca01[_0x5779('0x94')],_0x2eabbe),_0x7129fa=null===_0x33ca01[_0x5779('0x4f')]?null:_0x33ca01['_authorId']||this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0xdbc14=_0x25772e[_0x5779('0x73')],_0x249240=this[_0x5779('0x7d')],_0x3987e6=[];for(const _0x16fbaf of _0x33ca01[_0x5779('0xe2')])if(_0x16fbaf['is']('element'))_0x3987e6[_0x5779('0x3f')](this[_0x5779('0xba')](_0x16fbaf));else for(let _0x2bd5bd=0x0;_0x2bd5bd<_0x16fbaf[_0x5779('0xf0')];_0x2bd5bd++)_0x3987e6['push'](new _0x531e94(_0x5779('0x64'),{'vid':this[_0x5779('0x7d')]++}));const _0x1fb4b5=this[_0x5779('0x7d')];for(let _0x1e9849=_0x249240;_0x1e9849<_0x1fb4b5;_0x1e9849++)this[_0x5779('0xee')][_0x5779('0x5')](_0x1e9849,{'userId':_0x7129fa});_0xdbc14[_0x5779('0x69')](_0x25772e[_0x5779('0x1d')],_0x3987e6);}[_0x5779('0x4')](_0x585bee){(_0x585bee=this['_cloneOperation'](_0x585bee,this[_0x5779('0xb')]))[_0x5779('0xb1')]();const _0x5516c=null===_0x585bee[_0x5779('0x4f')]?null:_0x585bee[_0x5779('0x4f')]||this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x46dffb=_0x585bee[_0x5779('0xc3')](),_0x440908=_0x46dffb[_0x5779('0x73')],_0x282d5e=_0x46dffb[_0x5779('0x1d')];!function _0x19f222(_0x1e9b20,_0x4561dc,_0x21dcf6,_0x16c16e){for(let _0x3e82ed=_0x21dcf6;_0x3e82ed<_0x16c16e;_0x3e82ed++){const _0x8eaa14=_0x4561dc[_0x5779('0xd4')](_0x3e82ed);_0x8eaa14['is'](_0x5779('0xd2'),_0x5779('0x64'))?_0x1e9b20[_0x5779('0x5')](_0x8eaa14[_0x5779('0x6e')]('vid'),{'userId':_0x5516c}):(_0x1e9b20['set'](_0x8eaa14[_0x5779('0x6e')]('vid_start'),{'userId':_0x5516c}),_0x19f222(_0x1e9b20,_0x8eaa14,0x0,_0x8eaa14[_0x5779('0xdb')]),_0x1e9b20[_0x5779('0x5')](_0x8eaa14[_0x5779('0x6e')]('vid_end'),{'userId':_0x5516c}));}}(this[_0x5779('0xee')],_0x440908,_0x282d5e,_0x282d5e+_0x585bee[_0x5779('0xdf')]);}[_0x5779('0xe0')](_0x3db4b5){const _0x231d60=null===(_0x3db4b5=this[_0x5779('0x0')](_0x3db4b5,this[_0x5779('0xb')]))[_0x5779('0x4f')]?null:_0x3db4b5['_authorId']||this[_0x5779('0x10')][_0x5779('0x21')]['get'](_0x5779('0xe3'))['me']['id'],_0x378672=_0x3db4b5[_0x5779('0x5e')]['parent'],_0x4f176a=_0x3db4b5[_0x5779('0xfa')][_0x5779('0x73')],_0x457b77=_0x378672[_0x5779('0x6e')](_0x5779('0x1e')),_0x26e117=_0x4f176a[_0x5779('0x6e')](_0x5779('0x36'));_0x378672['_setAttribute'](_0x5779('0x1e'),_0x4f176a['getAttribute'](_0x5779('0x1e'))),_0x4f176a[_0x5779('0xa7')](_0x5779('0x1e'),_0x457b77),this[_0x5779('0xee')][_0x5779('0x5')](_0x26e117,{'userId':_0x231d60}),this[_0x5779('0xee')][_0x5779('0x5')](_0x457b77,{'userId':_0x231d60}),_0x3db4b5[_0x5779('0xb1')]();}[_0x5779('0x98')](_0x196e9e){const _0x2a4ad2=null===(_0x196e9e=this[_0x5779('0x0')](_0x196e9e,this[_0x5779('0xb')]))['_authorId']?null:_0x196e9e['_authorId']||this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x1622a7=_0x196e9e[_0x5779('0x56')],_0x39bf60=_0x196e9e['splitPosition']['parent'];_0x196e9e[_0x5779('0xb1')]();const _0x5a27fa=_0x39bf60[_0x5779('0x6e')]('vid_end'),_0x172bd7=_0x196e9e[_0x5779('0x81')]['nodeAfter'];if(_0x1622a7){const _0x3e3916=_0x172bd7['getAttribute']('vid_end'),_0x15534b=_0x39bf60[_0x5779('0x6e')](_0x5779('0x1e'));_0x39bf60[_0x5779('0xa7')](_0x5779('0x1e'),_0x3e3916),_0x172bd7[_0x5779('0xa7')](_0x5779('0x1e'),_0x15534b),this[_0x5779('0xee')][_0x5779('0x5')](_0x39bf60['getAttribute']('vid_end'),{'userId':_0x2a4ad2}),this[_0x5779('0xee')][_0x5779('0x5')](_0x172bd7['getAttribute']('vid_start'),{'userId':_0x2a4ad2});}else{const _0x32f9ca=this['_revisionId']++,_0x55b592=this[_0x5779('0x7d')]++;_0x39bf60['_setAttribute'](_0x5779('0x1e'),_0x32f9ca),_0x172bd7[_0x5779('0xa7')]('vid_start',_0x55b592),_0x172bd7[_0x5779('0xa7')](_0x5779('0x1e'),_0x5a27fa),this['_touched']['set'](_0x32f9ca,{'userId':_0x2a4ad2}),this['_touched']['set'](_0x55b592,{'userId':_0x2a4ad2});}}[_0x5779('0x72')](_0x27060b){if(!_0x27060b[_0x5779('0xde')])return;const _0x13cc77=(_0x27060b=this[_0x5779('0x0')](_0x27060b,this[_0x5779('0xbb')]))['oldRange']?_0x27060b['oldRange'][_0x5779('0x40')]:null,_0x47b1e3=_0x27060b[_0x5779('0x83')]?_0x27060b['newRange']['root']:null;_0x13cc77&&this['_markers'][_0x5779('0xfe')](_0x27060b[_0x5779('0x5f')]),_0x47b1e3&&this[_0x5779('0x99')][_0x5779('0x5')](_0x27060b[_0x5779('0x5f')],_0x27060b[_0x5779('0x83')][_0x5779('0x41')]());const _0x112e90=null===_0x27060b[_0x5779('0x4f')]?null:_0x27060b[_0x5779('0x4f')]||this[_0x5779('0x10')][_0x5779('0x21')]['get'](_0x5779('0xe3'))['me']['id'],_0x185d69=_0x27060b[_0x5779('0x5f')];if(!this[_0x5779('0xed')][_0x5779('0xb4')](_0x185d69))return void this['_touchedMarkers'][_0x5779('0x5')](_0x185d69,{'range':_0x27060b[_0x5779('0x2f')],'userId':_0x112e90});const _0x37c1ca=this['_touchedMarkers'][_0x5779('0x28')](_0x185d69),_0x256d6b=_0x37c1ca[_0x5779('0xd3')],_0x51ab46=_0x27060b['newRange'];null==_0x256d6b&&null==_0x51ab46||_0x256d6b&&_0x51ab46&&_0x256d6b[_0x5779('0x8c')](_0x51ab46)?this[_0x5779('0xed')]['delete'](_0x27060b[_0x5779('0x5f')]):_0x37c1ca[_0x5779('0x2d')]=_0x112e90;}[_0x5779('0x12')](_0x2fa120,_0x32f43e){this[_0x5779('0xbb')]['has'](_0x2fa120[_0x5779('0x7c')])?this[_0x5779('0xbb')]['get'](_0x2fa120[_0x5779('0x7c')])[_0x5779('0xd0')]=_0x2fa120[_0x5779('0x30')]:(this['_diffRoots']['set'](_0x2fa120[_0x5779('0x7c')],G(_0x2fa120['rootName'],!0x0)),this[_0x5779('0xf9')][_0x5779('0x5')](_0x2fa120[_0x5779('0x7c')],{}),_0x32f43e&&this[_0x5779('0xb')]['set'](_0x2fa120[_0x5779('0x7c')],G(_0x2fa120['rootName'],!0x0)));const _0xb0b0b4=null===_0x2fa120[_0x5779('0x4f')]?null:_0x2fa120[_0x5779('0x4f')]||this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x9bfcf5=this[_0x5779('0x2')][_0x5779('0x28')](_0x2fa120[_0x5779('0x7c')]);_0x9bfcf5&&_0x9bfcf5[_0x5779('0x2d')]===_0xb0b0b4?this[_0x5779('0x2')][_0x5779('0xfe')](_0x2fa120['rootName']):this[_0x5779('0x2')]['set'](_0x2fa120[_0x5779('0x7c')],{'userId':_0xb0b0b4,'isAttached':_0x2fa120[_0x5779('0x30')]});}[_0x5779('0x33')](_0x496da4){const _0x1105dd=this[_0x5779('0xf9')][_0x5779('0x28')](_0x496da4[_0x5779('0x40')][_0x5779('0x7c')]);null===_0x496da4[_0x5779('0x88')]?delete _0x1105dd[_0x496da4[_0x5779('0x11')]]:_0x1105dd[_0x496da4[_0x5779('0x11')]]=_0x496da4[_0x5779('0x88')];}}function q(_0x44c7fc){const _0x4dbd79=G(_0x44c7fc[_0x5779('0x7c')],_0x44c7fc[_0x5779('0x65')]());for(const _0x224484 of _0x44c7fc[_0x5779('0xd7')]()){const _0x910475=_0x224484[_0x5779('0x68')](!0x0);_0x4dbd79[_0x5779('0x16')](_0x910475);}return _0x4dbd79;}function G(_0x1f9d6d,_0x138882=!0x0){const _0x5b884e=new _0x2d3eef();return _0x5b884e['rootName']=_0x1f9d6d,_0x5b884e[_0x5779('0xd0')]=_0x138882,_0x5b884e[_0x5779('0x65')]=()=>_0x5b884e[_0x5779('0xd0')],_0x5b884e;}function L(_0x1117e6,_0xb842c0,_0x37e976){const _0x3bc112=_0x5779('0x9a')==_0x1117e6[_0x5779('0xac')]?_0x37e976['createPositionAt'](_0x1117e6[_0x5779('0x42')],'end'):_0x37e976[_0x5779('0xb2')](_0x1117e6[_0x5779('0x42')]);return _0x37e976['createPositionFromPath'](_0xb842c0,_0x3bc112['path'],_0x3bc112[_0x5779('0xf6')]);}function W(_0xe2bc1c,_0x409a0e,_0x583c49){const _0x58f275=_0x5779('0x79')==_0xe2bc1c[_0x5779('0xac')]?_0x583c49['createPositionAt'](_0xe2bc1c['item'],0x0):_0x583c49[_0x5779('0xb6')](_0xe2bc1c[_0x5779('0x42')]);return _0x583c49[_0x5779('0xc0')](_0x409a0e,_0x58f275[_0x5779('0x93')],_0x58f275[_0x5779('0xf6')]);}
|
|
23
|
+
const _0x4a3e=['createPositionBefore','baseVersion','elementEnd','_createCurrentRevision','_makeIdsRoot','default','_getBaseVids','type','getRoot','_authorId','push','stickiness','nodeAfter','isAttached','_setConversion','getRevision','data','_startingVersion','creator','_touchedRoots','revisionHistory.resumeUnsavedRevision','_loadState','trim','_handleRootOperation','_bufferUpdate','buildRevisionData','_diffRootsAttributes','revision-start','clear','toModel','previousPosition','markerToData','_update','_saveMetaData','plugins','filter','start','oldRange','revision-end','offsetSize','forEach','update','_source','_markChanges','ready','fromVersion','Users','attributes','_removePendingAction','offset','bind','PendingActions','_loadRevisionData','resolve','startsWith','_reset','get','isReady','path','attributesBefore','sort','getOperations','rootName','_baseIdsRoots','changeRootAttribute','deletions','has','children','define','_getPreviousFrom','_makeModelFromViewString','addRevisionData','getRevisionRootsAttributes','version','_handleMoveOperation','locale','repository','childCount','createPositionAfter','editor','_idsRoots','_handleOperation','_isPendingUpdate','_handleMergeOperation','_getViewJson','toVersion','getCurrentRevisionId','revision','stringify','map','addRevision','_cloneOperation','_applyOperations','getChild','_diffRoots','insert','split','loadState','$graveyard','upcast','affectsData','_calculateMetaData','hasContent','_generateTape','userId','Empty\x20document','_createInitialRevision','conversion','_startingRevisionId','isEqual','newValue','data-revision-','getNodeByPath','isAdd','clone','insertionPosition','paragraph','_pendingAction','_touchedMarkers','toData','editor-initial-data-replaced-with-revision-data','rootsAttributes','document','vid_end','getUser','_revisionId','length','init','initial','createRangeIn','name','createdAt','$text','_replaceEditorDataWithRevisionData','find','_markers','getLatestVersion','insertion','_handleRootAttributeOperation','howMany','tableCell','string','fromEntries','elementStart','editing','afterInit','setSource','getAncestors','getData','_isAttached','addRoot','end','for','_copyMarkers','adapter','createPositionFromPath','attachChange','setRevisionData','diffData','remove','history','size','splitPosition','getTime','slice','source','parse','reverse','view','createPositionAt','RealTimeCollaborationClient','merge','_prepareViewToSave','_removeMetaData','getRootNames','then','_processRootBeforeSave','_setAttribute','getMovedRangeStart','config','nodes','getAttribute','currentRevision','item','_bufferedUpdates','detachRoot','_clone','documentFragment','getTransformedByOperation','text','_findInsertionIndex','markers','getRevisions','delete','_revisionDataBuilder','authors','marked','toView','getChildren','position','_fixRange','_lastTo','_handleSplitOperation','_insertChild','sendBufferedUpdates','pluginName','_fixOperation','_makeRevision','marker','element','set','_fixPosition','NEGATIVE_INFINITY','_isInit','getRange','_getFromVersion','_savedMetaData','collaboration.channelId','max','newRange','updateRevisions','revision:','keys','move','getAttributes','parent','requires','roots','vid','useFillerType','_baseRootsAttributes','_getVidAttributeName','createRevision','_handleInsertOperation','values','createRange','vid_start','_addPendingAction','_baseRoots','_loadedStateData','Initial\x20revision','finally','authorsIds','insertions','reinsert','attributesAfter','root','_execute','_initialRevisionId','_handleMarkerOperation','_getState','addRootAttribute','from','_transformMarkers','removeRootAttribute','processor','_continueCurrentRevision','key','_lastFrom','initialData','model','getWalker','_createFromRanges','getRevisionDocumentData','_touched','add'];(function(_0x556865,_0x4a3e4e){const _0x181e42=function(_0x44163f){while(--_0x44163f){_0x556865['push'](_0x556865['shift']());}};_0x181e42(++_0x4a3e4e);}(_0x4a3e,0x1cb));const _0x181e=function(_0x556865,_0x4a3e4e){_0x556865=_0x556865-0x0;let _0x181e42=_0x4a3e[_0x556865];return _0x181e42;};import{Users as _0x3092da}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x278124,PendingActions as _0x761d34}from'ckeditor5/src/core';import{logWarning as _0xa91560,uid as _0x1fcfdf}from'ckeditor5/src/utils';import{Position as _0x4265eb,Range as _0x3a73a8,Element as _0x5b445d,DocumentFragment as _0x49f63f,ViewText as _0x4aabfa,ViewElement as _0x21d8d9,ViewContainerElement as _0x33685b,ViewAttributeElement as _0x1dbf6b,ViewEmptyElement as _0x1a6ecf,ViewRawElement as _0x4d4b57,ViewUIElement as _0x559146,ViewDocumentFragment as _0x3954f6}from'ckeditor5/src/engine';import _0x22eed5 from'./revisionsrepository';import{getTranslation as _0x4346d2}from'./utils/common-translations';import{cloneDeep as _0xa345b6,isEqual as _0x1648a0}from'lodash-es';const B={'c':_0x33685b,'a':_0x1dbf6b,'e':_0x1a6ecf,'r':_0x4d4b57,'u':_0x559146};export default class l extends _0x278124{static get[_0x181e('0xc')](){return'RevisionTracker';}static get[_0x181e('0x21')](){return[_0x3092da,_0x22eed5,_0x761d34];}constructor(_0x13a22d){super(_0x13a22d),this['adapter']=null,this[_0x181e('0xff')]=null,this['_revisionDataBuilder']=new H(this[_0x181e('0x98')]),this[_0x181e('0x37')]=this[_0x181e('0x98')][_0x181e('0xfc')][_0x181e('0x81')](_0x181e('0x18'))||_0x181e('0xc9'),this[_0x181e('0x101')]=new Map(),this[_0x181e('0x2e')]=null;const _0xcd7e22=_0x1fcfdf();this[_0x181e('0x73')]={'history':this['editor'][_0x181e('0x43')]['document']['history'],'getLatestVersion':()=>Promise[_0x181e('0x7e')](this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xc3')][_0x181e('0x92')]),'getCurrentRevisionId':()=>_0xcd7e22},this[_0x181e('0x11')](_0x181e('0x82'),!0x1),this[_0x181e('0x11')]('isEnabled',!0x0),this[_0x181e('0x11')](_0x181e('0x9b'),!0x1),this[_0x181e('0x98')][_0x181e('0xfc')][_0x181e('0x8d')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x181e('0x98')][_0x181e('0xb4')]['for'](_0x181e('0xac'))['dataToMarker']({'view':_0x181e('0xa0')});}[_0x181e('0xc8')](){this[_0x181e('0x95')]=this['editor']['plugins'][_0x181e('0x81')]('RevisionsRepository'),this[_0x181e('0x57')](),this[_0x181e('0x98')]['data']['on'](_0x181e('0x75'),()=>{const _0x5a12c8=this[_0x181e('0x95')][_0x181e('0x58')](0x0),_0xf38688=_0x5a12c8&&null===_0x5a12c8[_0x181e('0x5b')]?_0x5a12c8:null;if(this[_0x181e('0x3f')]=!!_0xf38688&&this[_0x181e('0x98')][_0x181e('0xfc')]['get'](_0x181e('0x5d')),this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x8b')](_0x181e('0xf3'))){const _0x510f83=this[_0x181e('0x73')][_0x181e('0x9f')](),_0x1d179d=this[_0x181e('0x95')][_0x181e('0x58')](_0x510f83);if(_0x1d179d)this[_0x181e('0x5a')]=_0x1d179d[_0x181e('0x76')],this[_0x181e('0x3f')]=!0x1;else{const _0x4de539=this[_0x181e('0x73')][_0x181e('0xe9')]['_operations'][_0x181e('0xcf')](_0x11d73a=>!_0x11d73a[_0x181e('0x14')]),_0xe6f9e9=_0x4de539?_0x4de539['baseVersion']:this[_0x181e('0x73')][_0x181e('0xe9')][_0x181e('0x92')];_0x5a12c8?(_0x5a12c8[_0x181e('0x9e')]<_0xe6f9e9&&_0x5a12c8[_0x181e('0x69')]({'toVersion':_0xe6f9e9}),this[_0x181e('0x3f')]?(this['_source'][_0x181e('0x9f')]=()=>_0xf38688['id'],this[_0x181e('0x5a')]=_0xf38688[_0x181e('0x76')]):(this[_0x181e('0x5a')]=_0x5a12c8[_0x181e('0x9e')],this[_0x181e('0x3f')]=!0x1)):(this[_0x181e('0x5a')]=_0xe6f9e9,this[_0x181e('0x3f')]=!0x1);}}else _0xf38688&&(this[_0x181e('0x98')]['model']['document'][_0x181e('0xe9')][_0x181e('0x92')]=Math[_0x181e('0x19')](_0xf38688[_0x181e('0x9e')],this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xc3')]['history'][_0x181e('0x92')]),_0xf38688[_0x181e('0x76')]===_0xf38688[_0x181e('0x9e')]?(0x0!==_0xf38688[_0x181e('0x76')]&&(this[_0x181e('0x73')][_0x181e('0x9f')]=()=>_0xf38688['id']),this[_0x181e('0x3f')]=!0x1):this[_0x181e('0x3f')]&&(this[_0x181e('0x73')][_0x181e('0x9f')]=()=>_0xf38688['id'],this[_0x181e('0x5a')]=_0xf38688[_0x181e('0x76')])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor'][_0x181e('0x43')][_0x181e('0xc3')][_0x181e('0x92')]);this[_0x181e('0x1')][_0x181e('0xc8')](this['_source']['history']),this['_createInitialRevision'](this[_0x181e('0x5a')]),this[_0x181e('0x4c')](this[_0x181e('0x5a')]),this[_0x181e('0xe3')]&&this[_0x181e('0xb')]();}),this[_0x181e('0x7b')](_0x181e('0x82'))['to'](this,_0x181e('0x9b'),_0x50666c=>!_0x50666c);}async[_0x181e('0xda')](){if(this[_0x181e('0x95')]['length']>0x0){const _0x570fad=this[_0x181e('0x95')]['getRevision'](0x0),_0x3f03e7=await this[_0x181e('0x46')](_0x570fad),_0x3127a2=await this[_0x181e('0x91')](_0x570fad);this[_0x181e('0xce')](_0x3f03e7,_0x3127a2);}}[_0x181e('0xdb')](_0x4bd8c5){this[_0x181e('0x73')]=_0x4bd8c5;}async[_0x181e('0x72')](){const _0x48b075=await this[_0x181e('0x73')]['getLatestVersion']();if(_0x48b075>this['currentRevision'][_0x181e('0x9e')]){await this[_0x181e('0x5e')]();const _0x3322e1=this[_0x181e('0x62')]({'revision':this['currentRevision'],'to':_0x48b075});_0x3322e1['authors']=_0x3322e1['authorsIds'][_0x181e('0xa2')](_0x2723cc=>this[_0x181e('0x98')][_0x181e('0x6b')]['get']('Users')[_0x181e('0xc5')](_0x2723cc)),this[_0x181e('0xff')][_0x181e('0x69')](_0x3322e1);}}async[_0x181e('0x5e')](){this[_0x181e('0x3f')]&&!this[_0x181e('0x2e')]&&(await this[_0x181e('0x7d')](this[_0x181e('0xff')]),this[_0x181e('0x1')][_0x181e('0xaa')](this[_0x181e('0xff')]),this[_0x181e('0x2e')]={'fromVersion':this[_0x181e('0xff')]['fromVersion'],'authors':this[_0x181e('0xff')][_0x181e('0x2')][_0x181e('0xed')]()});}async['saveRevision'](_0x477594={},_0x1a4cfd=null){const _0x45ef5d=[];await this[_0x181e('0x5e')](),this['_continueCurrentRevision']=!0x1,_0x1a4cfd>this['currentRevision'][_0x181e('0x9e')]&&(_0x1a4cfd=null),null===_0x1a4cfd&&(_0x1a4cfd=await this[_0x181e('0x73')][_0x181e('0xd1')]());const _0x847d3d=this[_0x181e('0x16')](_0x1a4cfd),_0x283e9d=this['buildRevisionData']({'from':_0x847d3d,'to':_0x1a4cfd});if(this[_0x181e('0xff')]['toVersion']<_0x1a4cfd){const _0x43a415=this[_0x181e('0x62')]({'revision':this[_0x181e('0xff')],'from':_0x1a4cfd,'to':_0x1a4cfd});_0x43a415[_0x181e('0x2')]=[],_0x43a415[_0x181e('0x31')]=[],_0x43a415['id']=this[_0x181e('0xff')]['id'],this[_0x181e('0xff')][_0x181e('0x69')](_0x43a415,!0x0),delete _0x43a415[_0x181e('0x2')],_0x45ef5d['push'](_0x43a415);}_0x477594['creatorId']=this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0x477594[_0x181e('0xcb')]=_0x477594[_0x181e('0xcb')]||null,_0x477594['id']=_0x477594['id']||_0x1fcfdf(),_0x477594={..._0x477594,..._0x283e9d};const _0x43c906=this[_0x181e('0x90')](_0x477594);_0x45ef5d[_0x181e('0x53')](_0x477594);const _0x31938a=this[_0x181e('0x95')]['getIndex'](_0x43c906);if(0x0!==_0x31938a){const _0x51bdb2=this[_0x181e('0x95')][_0x181e('0x58')](_0x31938a-0x1);if(_0x51bdb2[_0x181e('0x76')]!==_0x1a4cfd){const _0x801816=this[_0x181e('0x1')][_0x181e('0xdd')](_0x1a4cfd,_0x51bdb2[_0x181e('0x9e')]),_0x30c655={'id':_0x51bdb2['id'],'diffData':_0x801816[_0x181e('0xe7')],'authorsIds':_0x801816[_0x181e('0x31')],'authors':_0x801816[_0x181e('0x31')]['map'](_0x5bc953=>this[_0x181e('0x98')][_0x181e('0x6b')]['get']('Users')[_0x181e('0xc5')](_0x5bc953)),'fromVersion':_0x1a4cfd};_0x51bdb2===this[_0x181e('0xff')]&&(_0x30c655[_0x181e('0xcc')]=new Date(_0x477594['createdAt'][_0x181e('0xec')]()+0xa)),_0x51bdb2['_update'](_0x30c655,!0x0),delete _0x30c655[_0x181e('0x2')],_0x45ef5d['push'](_0x30c655);}}if(this[_0x181e('0xe3')]){for(const _0x116f6e of _0x45ef5d)this[_0x181e('0x61')](_0x116f6e['id'],_0x116f6e,!0x0);this[_0x181e('0xb')]();}return _0x43c906;}[_0x181e('0x90')](_0x483b09){const _0x54a002=this[_0x181e('0x95')][_0x181e('0x27')](_0x483b09);return this['adapter']&&_0x54a002['on']('_update',(_0x31a962,_0x47703e,_0x252627)=>{_0x252627||(this['_bufferUpdate'](_0x47703e['id'],_0x47703e,!0x0),this['sendBufferedUpdates']());}),this[_0x181e('0x95')][_0x181e('0xa3')](_0x54a002,this[_0x181e('0x107')](_0x54a002)),_0x54a002;}async[_0x181e('0x46')](_0x234f08){await this['_loadRevisionData'](_0x234f08);const _0x37f97d={};for(const _0x2d89c5 in _0x234f08[_0x181e('0xe7')]){if(_0x234f08[_0x181e('0xe7')][_0x2d89c5][_0x181e('0xe5')]&&!_0x234f08['diffData'][_0x2d89c5][_0x181e('0xe5')]['isAttached'])continue;const _0x5cc7c5=this['_removeRevisionMarkers'](JSON[_0x181e('0xef')](_0x234f08[_0x181e('0xe7')][_0x2d89c5][_0x181e('0x32')])),_0x2b0b0f=this['editor'][_0x181e('0xd9')]['view'][_0x181e('0xc3')],_0x46c1da=new _0x3954f6(_0x2b0b0f,_0x5cc7c5['map'](_0x5a1d08=>J(_0x5a1d08,this[_0x181e('0x98')])));this[_0x181e('0x98')][_0x181e('0x59')]['processor']['useFillerType'](_0x181e('0x3')),_0x37f97d[_0x2d89c5]=this[_0x181e('0x98')][_0x181e('0x59')][_0x181e('0x3e')][_0x181e('0xc0')](_0x46c1da),this[_0x181e('0x98')][_0x181e('0x59')]['processor'][_0x181e('0x24')](_0x181e('0x4e'));}return _0x37f97d;}async[_0x181e('0x91')](_0xfd7277){await this['_loadRevisionData'](_0xfd7277);const _0xd12ca3={};for(const _0x10d712 in _0xfd7277[_0x181e('0xe7')])_0xfd7277[_0x181e('0xe7')][_0x10d712][_0x181e('0xe5')]&&!_0xfd7277[_0x181e('0xe7')][_0x10d712][_0x181e('0xe5')][_0x181e('0x56')]||(_0xd12ca3[_0x10d712]=_0xfd7277[_0x181e('0xe7')][_0x10d712]['attributesAfter']||{});return _0xd12ca3;}[_0x181e('0xb')](){if(0x0===this[_0x181e('0x101')][_0x181e('0xea')])return;if(this[_0x181e('0x9b')])return;let _0xf971a7=Array[_0x181e('0x3b')](this[_0x181e('0x101')][_0x181e('0x29')]());this[_0x181e('0x101')][_0x181e('0x65')]();for(let _0x64a799=0x0;_0x64a799<_0xf971a7[_0x181e('0xc7')];_0x64a799++){const _0x1c0837=_0xf971a7[_0x64a799];let _0x5e080f=!0x1;for(const _0x3b8012 of Object['keys'](_0x1c0837))void 0x0===_0x1c0837[_0x3b8012]?delete _0x1c0837[_0x3b8012]:'id'!==_0x3b8012&&(_0x5e080f=!0x0);_0x5e080f||(_0xf971a7[_0x64a799]=null);}if(_0xf971a7=_0xf971a7[_0x181e('0x6c')](_0x561aab=>null!==_0x561aab),!_0xf971a7[_0x181e('0xc7')])return;for(let _0xf16be=0x0;_0xf16be<_0xf971a7[_0x181e('0xc7')];_0xf16be++){const _0x190367=_0xf971a7[_0xf16be];void 0x0!==_0x190367[_0x181e('0x76')]&&void 0x0===_0x190367['toVersion']&&(_0x190367['toVersion']=this['repository'][_0x181e('0x58')](_0x190367['id'])[_0x181e('0x9e')]),void 0x0!==_0x190367[_0x181e('0x9e')]&&void 0x0===_0x190367['fromVersion']&&(_0x190367[_0x181e('0x76')]=this[_0x181e('0x95')][_0x181e('0x58')](_0x190367['id'])[_0x181e('0x76')]);}const _0x4a92fd=this[_0x181e('0x98')][_0x181e('0xfc')][_0x181e('0x81')](_0x181e('0x18'));this[_0x181e('0x9b')]=!0x0,this[_0x181e('0x2c')](),this[_0x181e('0xe3')][_0x181e('0x1b')](_0xf971a7,_0x4a92fd)[_0x181e('0x30')](()=>{this[_0x181e('0x9b')]=!0x1;})['then'](_0xc98462=>{if(_0xc98462)for(const _0x3279e3 of _0xc98462)this['setRevisionData']({'id':_0x3279e3['id'],'createdAt':_0x3279e3[_0x181e('0xcc')]});this[_0x181e('0x79')](),this['sendBufferedUpdates']();});}[_0x181e('0xce')](_0x72d82d,_0x3a9fa1){let _0x3e8db2=this['editor'][_0x181e('0xfc')][_0x181e('0x81')](_0x181e('0x42')),_0x5b7652=this[_0x181e('0x98')][_0x181e('0xfc')][_0x181e('0x81')](_0x181e('0xc2'));if(void 0x0===_0x3e8db2){_0x3e8db2={};for(const _0x41252f of this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xc3')][_0x181e('0xf7')]())_0x3e8db2[_0x41252f]='';}if(_0x181e('0xd6')==typeof _0x3e8db2&&(_0x3e8db2={'main':_0x3e8db2}),void 0x0===_0x5b7652){_0x5b7652={};for(const _0x23f60e of this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xc3')][_0x181e('0xf7')]())_0x5b7652[_0x23f60e]={};}let _0x5d9a6f=!0x1;const _0x4a4565=Object[_0x181e('0x1d')](_0x3e8db2),_0x40b9a6=Object['keys'](_0x72d82d);for(const _0x422a0e of _0x4a4565){if(_0x3e8db2[_0x422a0e]!==_0x72d82d[_0x422a0e]&&''!==_0x3e8db2[_0x422a0e][_0x181e('0x5f')]()){_0x5d9a6f=!0x0;break;}if(!_0x1648a0(_0x5b7652[_0x422a0e],_0x3a9fa1[_0x422a0e])&&Object[_0x181e('0x1d')](_0x5b7652[_0x422a0e])[_0x181e('0xc7')]>0x0){_0x5d9a6f=!0x0;break;}}_0x5d9a6f||(_0x5d9a6f=_0x40b9a6['some'](_0x2bdea7=>!this[_0x181e('0x98')][_0x181e('0x43')]['document'][_0x181e('0x51')](_0x2bdea7))),_0x5d9a6f&&_0xa91560(_0x181e('0xc1'),{'editorData':_0x3e8db2,'editorRootsAttributes':_0x5b7652,'revisionData':_0x72d82d,'revisionRootsAttributes':_0x3a9fa1}),this[_0x181e('0x98')]['config'][_0x181e('0x11')](_0x181e('0x42'),_0x72d82d),this['editor'][_0x181e('0xfc')][_0x181e('0x11')]('rootsAttributes',_0x3a9fa1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x302379=this[_0x181e('0x98')]['plugins'][_0x181e('0x81')](_0x181e('0x7c'));this[_0x181e('0xbe')]=_0x302379['add'](_0x4346d2(this[_0x181e('0x98')][_0x181e('0x94')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x181e('0x79')](){this['_pendingAction']&&(this[_0x181e('0x98')]['plugins']['get']('PendingActions')[_0x181e('0xe8')](this['_pendingAction']),this[_0x181e('0xbe')]=null);}['_findInsertionIndex'](_0x45dec8){const _0x4629bf=this[_0x181e('0x95')][_0x181e('0x109')]();_0x4629bf[_0x181e('0xf0')]();let _0x5321d5=0x0;for(;_0x5321d5<_0x4629bf['length'];){const _0x168b92=_0x4629bf[_0x5321d5];if(_0x168b92===this['currentRevision']){_0x5321d5++;continue;}if(_0x168b92['id']===this[_0x181e('0x37')])break;const _0x2cbbb0=_0x45dec8[_0x181e('0x9e')]-_0x168b92[_0x181e('0x9e')]||_0x45dec8[_0x181e('0x76')]-_0x168b92[_0x181e('0x76')];if(_0x2cbbb0>0x0)break;if(_0x2cbbb0<0x0)_0x5321d5++;else{if(!_0x45dec8[_0x181e('0x5b')]&&_0x168b92[_0x181e('0x5b')])break;if(_0x168b92[_0x181e('0x5b')]||!_0x45dec8[_0x181e('0x5b')]){if(_0x45dec8['createdAt']>_0x168b92[_0x181e('0xcc')])break;_0x5321d5++;}else _0x5321d5++;}}return _0x5321d5;}[_0x181e('0xe6')](_0x14e0c0){const _0xe911ce=this[_0x181e('0x95')][_0x181e('0x58')](_0x14e0c0['id']);if(_0x14e0c0[_0x181e('0xcc')]&&(_0x14e0c0[_0x181e('0xcc')]=new Date(_0x14e0c0[_0x181e('0xcc')])),_0x14e0c0['authorsIds']){const _0x3fe824=this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')]('Users');_0x14e0c0[_0x181e('0x2')]=_0x14e0c0[_0x181e('0x31')]['map'](_0x55ebac=>_0x3fe824[_0x181e('0xc5')](_0x55ebac));}_0xe911ce[_0x181e('0x69')](_0x14e0c0,!0x0);}['buildRevisionData']({revision:_0x58b1f0=null,from:_0x4ede21=null,to:_0x54be94=null}){_0x4ede21=null!==_0x4ede21?_0x4ede21:_0x58b1f0[_0x181e('0x76')],_0x54be94=null!==_0x54be94?_0x54be94:_0x58b1f0['toVersion'];const _0x149514=this[_0x181e('0x1')]['getData'](_0x4ede21,_0x54be94),_0x1f9053={'diffData':_0x149514[_0x181e('0xe7')],'authorsIds':_0x149514['authorsIds'],'fromVersion':_0x4ede21,'toVersion':_0x54be94};if(!_0x58b1f0||_0x54be94!==_0x58b1f0[_0x181e('0x9e')]){const _0x4a8f96=_0x54be94-0x1,_0x136d27=this['_source'][_0x181e('0xe9')]['getOperation'](_0x4a8f96);_0x1f9053[_0x181e('0xcc')]=_0x136d27&&_0x136d27[_0x181e('0xcc')]||new Date();}if(this['_loadedStateData']&&_0x4ede21===this['_loadedStateData'][_0x181e('0x76')])for(const _0x4f7ac5 of this[_0x181e('0x2e')][_0x181e('0x2')])_0x1f9053[_0x181e('0x31')]['includes'](_0x4f7ac5['id'])||_0x1f9053['authorsIds'][_0x181e('0x53')](_0x4f7ac5['id']);return _0x1f9053;}[_0x181e('0x7d')](_0x281636){if(!_0x281636||_0x281636['diffData'])return Promise['resolve']();{const _0x11e28d=this['editor'][_0x181e('0xfc')]['get'](_0x181e('0x18'));return this[_0x181e('0xe3')]['getRevision']({'channelId':_0x11e28d,'revisionId':_0x281636['id']})[_0x181e('0xf8')](_0x21605a=>{_0x281636[_0x181e('0xe7')]=_0x21605a[_0x181e('0xe7')];});}}[_0x181e('0x61')](_0x2b8824,_0x410576,_0x468c60){if(this[_0x181e('0x101')][_0x181e('0x8b')](_0x2b8824)){const _0x4fdec7=this['_bufferedUpdates'][_0x181e('0x81')](_0x2b8824);_0x410576=_0x468c60?{..._0x4fdec7,..._0x410576}:{..._0x410576,..._0x4fdec7};}this[_0x181e('0x101')][_0x181e('0x11')](_0x2b8824,_0x410576);}[_0x181e('0x16')](_0x45c34f){const _0x15b55b=this[_0x181e('0x95')][_0x181e('0x109')]();_0x15b55b['reverse'](),_0x15b55b['shift']();const _0x49d061=_0x15b55b[_0x181e('0xcf')](_0x2575e7=>_0x2575e7['toVersion']<=_0x45c34f)['toVersion'];return _0x49d061<this[_0x181e('0x5a')]?this[_0x181e('0x5a')]:_0x49d061;}[_0x181e('0xb3')](_0x1b5561){const _0x1e4eda=this[_0x181e('0x95')][_0x181e('0x58')](this[_0x181e('0x95')][_0x181e('0xc7')]-0x1);if(_0x1e4eda)this[_0x181e('0x37')]=_0x1e4eda['id'];else{const _0x5057c4=!this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xc3')][_0x181e('0x22')][_0x181e('0xcf')](_0x15255e=>this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xaf')](_0x15255e)),_0x1ac264=this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0x5bd860=_0x4346d2(this[_0x181e('0x98')][_0x181e('0x94')],_0x5057c4?_0x181e('0xb2'):_0x181e('0x2f'));this['_makeRevision']({'from':_0x1b5561,'to':_0x1b5561,'id':this[_0x181e('0x37')],'name':_0x5bd860,'creatorId':_0x1ac264});}}[_0x181e('0x4c')](_0x2df78f){const _0x79edb4=this[_0x181e('0x73')][_0x181e('0x9f')]();this[_0x181e('0xff')]=this[_0x181e('0x95')][_0x181e('0x58')](_0x79edb4),this[_0x181e('0xff')]||(this[_0x181e('0xff')]=this['_makeRevision']({'from':_0x2df78f,'to':_0x2df78f,'id':_0x79edb4,'name':'','creatorId':null}));}[_0x181e('0xe')]({name:_0x4495ba,from:_0x20be1e,to:_0x527522,creatorId:_0x46d3ea,id:_0x3810c1}){const _0x451ca8=this[_0x181e('0x62')]({'from':_0x20be1e,'to':_0x527522});_0x451ca8[_0x181e('0xcb')]=_0x4495ba,_0x451ca8['creatorId']=_0x46d3ea,_0x451ca8['id']=_0x3810c1;const _0x2ca2bc=this[_0x181e('0x90')](_0x451ca8);return this[_0x181e('0xe3')]&&this[_0x181e('0x61')](_0x451ca8['id'],_0x451ca8,!0x0),_0x2ca2bc;}['_setConversion'](){this['editor'][_0x181e('0xb4')][_0x181e('0xe1')]('dataDowncast')[_0x181e('0x68')]({'model':_0x181e('0xa0')});}['_removeRevisionMarkers'](_0x26d08b){return(_0x26d08b=_0x26d08b['filter'](_0x366a8a=>!_0x366a8a[_0x181e('0xcb')]||_0x181e('0x64')!==_0x366a8a[_0x181e('0xcb')]&&_0x181e('0x6f')!==_0x366a8a[_0x181e('0xcb')]))[_0x181e('0x71')](_0x21a4f6=>{_0x181e('0xd6')!=typeof _0x21a4f6&&(_0x21a4f6['children']=this['_removeRevisionMarkers'](_0x21a4f6[_0x181e('0x8c')]),_0x21a4f6[_0x181e('0x78')]=_0x21a4f6['attributes']['filter'](_0x185fa9=>!_0x185fa9[0x0]['startsWith'](_0x181e('0xb8'))));}),_0x26d08b;}}function J(_0x78cefa,_0x2e9c88){const _0x42af04=_0x2e9c88[_0x181e('0xd9')][_0x181e('0xf1')][_0x181e('0xc3')];if('string'==typeof _0x78cefa)return new _0x4aabfa(_0x42af04,_0x78cefa);{const _0x23ef29=_0x78cefa[_0x181e('0x8c')][_0x181e('0xa2')](_0x277b97=>J(_0x277b97,_0x2e9c88));return new(B[_0x78cefa[(_0x181e('0x50'))]]||_0x21d8d9)(_0x42af04,_0x78cefa[_0x181e('0xcb')],_0x78cefa[_0x181e('0x78')],_0x23ef29);}}class H{constructor(_0x531041){this[_0x181e('0x98')]=_0x531041,this['_savedMetaData']=new Map(),this[_0x181e('0x41')]=-0x1,this[_0x181e('0x8')]=-0x1,this[_0x181e('0xd0')]=new Map(),this[_0x181e('0xa7')]=new Map(),this[_0x181e('0x63')]=new Map(),this['_baseRoots']=new Map(),this[_0x181e('0x25')]=new Map(),this['_idsRoots']=new Map(),this[_0x181e('0x88')]=new Map(),this['_touched']=new Map(),this[_0x181e('0xbf')]=new Map(),this[_0x181e('0x5c')]=new Map(),this[_0x181e('0xc6')]=0x1;}[_0x181e('0xc8')](_0x2103f7){this[_0x181e('0xee')]=_0x2103f7;const _0x2813c8=new Map(),_0x1222f2=new Map(),_0x504c69=this[_0x181e('0x98')][_0x181e('0x43')]['document'][_0x181e('0x22')][_0x181e('0xa2')](_0x1b4be6=>_0x1b4be6[_0x181e('0x87')]);for(const _0x44a59e of _0x504c69){const _0x3f59c8=this[_0x181e('0x98')]['model']['document'][_0x181e('0x51')](_0x44a59e),_0x6e9f9=q(_0x3f59c8);_0x2813c8['set'](_0x44a59e,_0x6e9f9),_0x1222f2[_0x181e('0x11')](_0x44a59e,Object[_0x181e('0xd7')](_0x3f59c8[_0x181e('0x1f')]()));}const _0x55cd6d=Array[_0x181e('0x3b')](this['editor'][_0x181e('0x43')][_0x181e('0x108')])[_0x181e('0xa2')](_0x3e3356=>[_0x3e3356['name'],_0x3e3356[_0x181e('0x15')]()]),_0x2f081c=this['source'][_0x181e('0x92')];this[_0x181e('0x6a')](_0x2f081c,_0x2813c8,_0x55cd6d,_0x1222f2),this[_0x181e('0xb5')]=this[_0x181e('0xc6')];const _0x3830e2=new Map(),_0xdd345a=new Map();for(const _0x560f88 of _0x504c69){const _0x2cb4ea=G(_0x560f88);_0x3830e2['set'](_0x560f88,_0x2cb4ea),_0xdd345a[_0x181e('0x11')](_0x560f88,{});}this[_0x181e('0x6a')](Number[_0x181e('0x13')],_0x3830e2,[],_0xdd345a);}[_0x181e('0xdd')](_0x2ca845,_0x42ba2c){if(this[_0x181e('0x41')]===_0x2ca845&&this[_0x181e('0x8')]<=_0x42ba2c)this[_0x181e('0x17')][_0x181e('0xea')]>0x1&&this[_0x181e('0xf6')](this['_lastTo']),this[_0x181e('0xa5')](this[_0x181e('0x8')],_0x42ba2c,!0x0);else{if(!this[_0x181e('0x17')][_0x181e('0x8b')](_0x2ca845)){const _0xbc86d0=this['_getPreviousFrom'](_0x2ca845);this['_calculateMetaData'](_0xbc86d0,_0x2ca845,!0x1);}this[_0x181e('0xae')](_0x2ca845,_0x42ba2c,!0x0);}return this['_lastFrom']=_0x2ca845,this[_0x181e('0x8')]=_0x42ba2c,this['_getState']();}[_0x181e('0xaa')](_0x42cfe7){this[_0x181e('0x80')](),this[_0x181e('0x41')]=_0x42cfe7[_0x181e('0x76')],this['_lastTo']=_0x42cfe7['toVersion'];for(const _0x25b88a in _0x42cfe7[_0x181e('0xe7')]){const _0x2534a0=_0x42cfe7[_0x181e('0xe7')][_0x25b88a][_0x181e('0xe5')],_0x360c78=_0xa345b6(_0x42cfe7[_0x181e('0xe7')][_0x25b88a][_0x181e('0x84')])||{},_0x975389=this[_0x181e('0x8f')](_0x42cfe7['diffData'][_0x25b88a][_0x181e('0x8a')]);_0x975389[_0x181e('0x87')]=_0x25b88a,_0x975389[_0x181e('0xde')]=!_0x2534a0||!_0x2534a0[_0x181e('0x56')],_0x975389[_0x181e('0x56')]=()=>_0x975389[_0x181e('0xde')],this[_0x181e('0x2d')][_0x181e('0x11')](_0x25b88a,_0x975389),this[_0x181e('0x25')][_0x181e('0x11')](_0x25b88a,_0x360c78),_0x2534a0&&this[_0x181e('0x5c')]['set'](_0x25b88a,_0x2534a0);const _0x46683c=this[_0x181e('0x4d')](_0x975389);this[_0x181e('0x88')][_0x181e('0x11')](_0x25b88a,_0x46683c);for(const [_0x27a4f8,_0x391635]of _0x975389['markers']){if(!_0x27a4f8[_0x181e('0x7f')]('revision:'))continue;const _0x40a4af=_0x27a4f8['split'](':')[0x2];for(const _0x55d0b1 of _0x391635[_0x181e('0x44')]({'singleCharacters':!0x0})){const _0x195d87=this[_0x181e('0x26')](_0x55d0b1),_0x798e26=_0x181e('0x4b')==_0x55d0b1[_0x181e('0x50')]?_0x55d0b1[_0x181e('0x67')]['path'][_0x181e('0xed')](0x0,-0x1):_0x55d0b1[_0x181e('0x67')]['path'],_0x52185e=_0x46683c[_0x181e('0xb9')](_0x798e26)[_0x181e('0xfe')](_0x195d87);this[_0x181e('0x47')][_0x181e('0x11')](_0x52185e,{'userId':_0x40a4af});}}}this[_0x181e('0xb5')]=this[_0x181e('0xc6')];const _0x270fa3=[...Array(this[_0x181e('0xc6')])[_0x181e('0x1d')]()][_0x181e('0xed')](0x1)[_0x181e('0x6c')](_0x1d5629=>!this['_touched'][_0x181e('0x8b')](_0x1d5629));let _0x141d6b=0x0;const _0x1795f1=new Map();for(const _0x47b535 in _0x42cfe7['diffData']){const _0x1ad223=_0x42cfe7['diffData'][_0x47b535]['attachChange'],_0x48cd86=_0xa345b6(_0x42cfe7[_0x181e('0xe7')][_0x47b535][_0x181e('0x34')])||{},_0x22866a=this['_makeModelFromViewString'](_0x42cfe7[_0x181e('0xe7')][_0x47b535][_0x181e('0x32')]);_0x22866a[_0x181e('0x87')]=_0x47b535,_0x22866a['_isAttached']=!_0x1ad223||_0x1ad223['isAttached'],_0x22866a['isAttached']=()=>_0x22866a['_isAttached'],this['_diffRoots']['set'](_0x47b535,_0x22866a),this[_0x181e('0x63')][_0x181e('0x11')](_0x47b535,_0x48cd86);const _0x1d9873=this['_makeIdsRoot'](_0x22866a,Number[_0x181e('0x13')]);this[_0x181e('0x99')][_0x181e('0x11')](_0x47b535,_0x1d9873),_0x1795f1[_0x181e('0x11')](_0x47b535,_0x22866a[_0x181e('0x56')]()?_0x48cd86:{});for(const [_0x4df329,_0x2e07b2]of _0x22866a[_0x181e('0x108')]){if(!_0x4df329[_0x181e('0x7f')](_0x181e('0x1c')))continue;const _0x2caea3=_0x4df329[_0x181e('0xa9')](':')[0x2];for(const _0x55771a of _0x2e07b2[_0x181e('0x44')]({'singleCharacters':!0x0})){const _0x1d0d31=this[_0x181e('0x26')](_0x55771a),_0x14ee0b=this[_0x181e('0xc6')]++,_0x2992ba='elementEnd'==_0x55771a[_0x181e('0x50')]?_0x55771a[_0x181e('0x67')][_0x181e('0x83')]['slice'](0x0,-0x1):_0x55771a[_0x181e('0x67')][_0x181e('0x83')];_0x1d9873[_0x181e('0xb9')](_0x2992ba)['_setAttribute'](_0x1d0d31,_0x14ee0b),this['_touched'][_0x181e('0x11')](_0x14ee0b,{'userId':_0x2caea3});}}for(const _0x3deaf9 of this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xca')](_0x22866a)[_0x181e('0x44')]({'singleCharacters':!0x0})){const _0x2c62f1=this[_0x181e('0x26')](_0x3deaf9),_0x72144=_0x181e('0x4b')==_0x3deaf9[_0x181e('0x50')]?_0x3deaf9['previousPosition'][_0x181e('0x83')][_0x181e('0xed')](0x0,-0x1):_0x3deaf9[_0x181e('0x67')][_0x181e('0x83')],_0x61347c=_0x1d9873[_0x181e('0xb9')](_0x72144);_0x61347c[_0x181e('0xfe')](_0x2c62f1)>0x0||_0x61347c[_0x181e('0xfa')](_0x2c62f1,_0x270fa3[_0x141d6b++]);}for(const [_0x41a5ef,_0xd59362]of _0x22866a['markers'])_0x41a5ef['startsWith']('revision:')||this['_markers'][_0x181e('0x11')](_0x41a5ef,_0xd59362);}const _0x369208=G(_0x181e('0xab'));this['_baseRoots']['set'](_0x181e('0xab'),_0x369208),this[_0x181e('0x88')][_0x181e('0x11')]('$graveyard',this[_0x181e('0x4d')](_0x369208,0x1));const _0x2574a1=G(_0x181e('0xab'));this['_diffRoots'][_0x181e('0x11')]('$graveyard',_0x2574a1),this['_idsRoots'][_0x181e('0x11')](_0x181e('0xab'),this[_0x181e('0x4d')](_0x2574a1,0x1));const _0x5942d6=Array[_0x181e('0x3b')](this['_diffRoots'])[_0x181e('0xa2')](([_0x25a4bc,_0xe88996])=>[_0x25a4bc,q(_0xe88996)]);this['_saveMetaData'](this[_0x181e('0x8')],_0x5942d6,this['_markers'],_0x1795f1);}[_0x181e('0x8f')](_0x4b4b42){const _0x531137=JSON[_0x181e('0xef')](_0x4b4b42),_0x41a4bc=this['editor'][_0x181e('0xd9')][_0x181e('0xf1')][_0x181e('0xc3')],_0x459864=new _0x3954f6(_0x41a4bc,_0x531137[_0x181e('0xa2')](_0x4ffb75=>J(_0x4ffb75,this[_0x181e('0x98')])));return this[_0x181e('0x98')]['data'][_0x181e('0x66')](_0x459864);}[_0x181e('0x6a')](_0x3d5537,_0x44d4fd,_0x504f2e,_0x1e5869){const _0x33be09=new Map(_0x44d4fd),_0x30351a=new Map(_0xa345b6(_0x1e5869)),_0x2db4eb=new Map();for(const [_0x511db5,_0xb55717]of _0x504f2e)_0x2db4eb[_0x181e('0x11')](_0x511db5,{'start':_0xb55717[_0x181e('0x6d')][_0x181e('0xbb')](),'end':_0xb55717['end'][_0x181e('0xbb')](),'rootName':_0xb55717[_0x181e('0x35')][_0x181e('0x87')]});this['_savedMetaData'][_0x181e('0x11')](_0x3d5537,{'roots':_0x33be09,'markers':_0x2db4eb,'rootsAttributes':_0x30351a});}[_0x181e('0xf6')](_0x2eeffb){this[_0x181e('0x17')][_0x181e('0x0')](_0x2eeffb);}['reInit'](){this[_0x181e('0x80')](),this[_0x181e('0x41')]=-0x1,this[_0x181e('0x8')]=-0x1,this[_0x181e('0x17')][_0x181e('0x65')](),this['init'](this[_0x181e('0xee')]);}['_reset'](){this[_0x181e('0x47')][_0x181e('0x65')](),this[_0x181e('0xbf')][_0x181e('0x65')](),this['_touchedRoots']['clear'](),this[_0x181e('0xa7')][_0x181e('0x65')](),this[_0x181e('0x63')][_0x181e('0x65')](),this[_0x181e('0x2d')][_0x181e('0x65')](),this[_0x181e('0x25')]['clear'](),this[_0x181e('0x99')]['clear'](),this[_0x181e('0x88')][_0x181e('0x65')](),this[_0x181e('0xd0')]['clear'](),this[_0x181e('0xc6')]=0x1,this[_0x181e('0xb5')]=this['_revisionId'];}['_makeIdsRoot'](_0x1fd683,_0xdac66f=null){let _0x53155e=null;_0x1fd683['is'](_0x181e('0x104'))||(_0x53155e=new _0x5b445d(_0x1fd683[_0x181e('0xcb')],{'vid_start':null===_0xdac66f?this[_0x181e('0xc6')]++:_0xdac66f++}));const _0x171581=[];for(const _0x5303ef of _0x1fd683['getChildren']())if(_0x5303ef['is']('element')){_0x171581[_0x181e('0x53')](this[_0x181e('0x4d')](_0x5303ef,_0xdac66f));const _0x31d0d3=_0x171581[_0x171581['length']-0x1];null!==_0xdac66f&&(_0xdac66f=_0x31d0d3['is'](_0x181e('0x10'),'$text')?_0x31d0d3['getAttribute'](_0x181e('0x23'))+0x1:_0x31d0d3['getAttribute'](_0x181e('0xc4'))+0x1);}else for(let _0x10a4e6=0x0;_0x10a4e6<_0x5303ef['offsetSize'];_0x10a4e6++)_0x171581[_0x181e('0x53')](new _0x5b445d('$text',{'vid':null===_0xdac66f?this['_revisionId']++:_0xdac66f++}));if(_0x1fd683['is'](_0x181e('0x104'))){const _0x2161d2=G(_0x1fd683['rootName']);return _0x2161d2['_insertChild'](0x0,_0x171581),_0x2161d2;}return _0x53155e[_0x181e('0xfa')](_0x181e('0xc4'),null===_0xdac66f?this['_revisionId']++:_0xdac66f++),_0x53155e[_0x181e('0xa')](0x0,_0x171581),_0x53155e;}[_0x181e('0xae')](_0x4d796a,_0x556e43,_0x3bb54f){this[_0x181e('0x80')]();const {roots:_0x4c8050,markers:_0x330fbe,rootsAttributes:_0x3c12f5}=this[_0x181e('0x17')][_0x181e('0x81')](_0x4d796a);this[_0x181e('0x2d')]=new Map(_0x4c8050),this[_0x181e('0x25')]=new Map(_0xa345b6(_0x3c12f5));for(const [_0x3b5da5,_0x4f12f8]of this[_0x181e('0x2d')])if(_0x181e('0xab')!==_0x3b5da5&&(this[_0x181e('0xa7')][_0x181e('0x11')](_0x3b5da5,q(_0x4f12f8)),this[_0x181e('0x63')]=new Map(_0xa345b6(_0x3c12f5)),_0x3bb54f)){const _0x25320b=this[_0x181e('0xc6')];this[_0x181e('0x99')][_0x181e('0x11')](_0x3b5da5,this['_makeIdsRoot'](_0x4f12f8)),this['_baseIdsRoots'][_0x181e('0x11')](_0x3b5da5,this['_makeIdsRoot'](_0x4f12f8,_0x25320b));}this['_startingRevisionId']=this[_0x181e('0xc6')],this['_diffRoots'][_0x181e('0x11')](_0x181e('0xab'),q(this[_0x181e('0x2d')][_0x181e('0x81')](_0x181e('0xab')))),_0x3bb54f&&this[_0x181e('0x99')][_0x181e('0x11')](_0x181e('0xab'),this[_0x181e('0x4d')](this[_0x181e('0x2d')][_0x181e('0x81')](_0x181e('0xab'))));for(const [_0x3b5096,_0x25e357]of _0x330fbe){const _0x27f4ca=this[_0x181e('0x2d')][_0x181e('0x81')](_0x25e357['rootName']),_0x545ebf=this[_0x181e('0xa7')]['get'](_0x25e357['rootName']),_0x5c3703=new _0x3a73a8(this[_0x181e('0x12')](_0x25e357[_0x181e('0x6d')],_0x27f4ca),this[_0x181e('0x12')](_0x25e357[_0x181e('0xe0')],_0x27f4ca)),_0x2295a3=this['_fixRange'](_0x5c3703,_0x545ebf);_0x27f4ca[_0x181e('0x108')][_0x181e('0x11')](_0x3b5096,_0x5c3703),this[_0x181e('0xd0')][_0x181e('0x11')](_0x3b5096,_0x2295a3);}this[_0x181e('0xa5')](_0x4d796a,_0x556e43,_0x3bb54f);}[_0x181e('0xa5')](_0x194b2b,_0x316486,_0x2e812f){for(const _0x54f893 of this[_0x181e('0xee')][_0x181e('0x86')](_0x194b2b,_0x316486))this[_0x181e('0x9a')](_0x54f893,_0x2e812f);for(const _0x120fad of this['_diffRoots'][_0x181e('0x29')]())_0x120fad[_0x181e('0x108')][_0x181e('0x65')]();for(const [_0x199be2,_0x233787]of this[_0x181e('0xd0')]){this[_0x181e('0xa7')][_0x181e('0x81')](_0x233787[_0x181e('0x35')]['rootName'])[_0x181e('0x108')][_0x181e('0x11')](_0x199be2,_0x233787[_0x181e('0xbb')]());}const _0x35b41b=new Map(),_0x336383=new Map();for(const [_0x50512c,_0x5cdb14]of this[_0x181e('0xa7')])_0x35b41b[_0x181e('0x11')](_0x50512c,q(_0x5cdb14)),_0x336383[_0x181e('0x11')](_0x50512c,this['_diffRootsAttributes'][_0x181e('0x81')](_0x50512c));this['_saveMetaData'](_0x316486,_0x35b41b,this[_0x181e('0xd0')],_0x336383);}[_0x181e('0x8e')](_0x27d763){const _0x260c14=Array[_0x181e('0x3b')](this[_0x181e('0x17')]['keys']());_0x260c14[_0x181e('0x85')]((_0x322c96,_0x5f3d13)=>_0x322c96-_0x5f3d13),_0x260c14[_0x181e('0xf0')]();for(const _0x378d96 of _0x260c14)if(_0x378d96<_0x27d763)return _0x378d96;return Number[_0x181e('0x13')];}['_copyMarkers'](_0x32305e,_0x2d5fad){const _0x4cc010=Array[_0x181e('0x3b')](_0x2d5fad[_0x181e('0x108')])['map'](([_0x574c9f,_0x3819bb])=>[_0x574c9f,this['_fixRange'](_0x3819bb,_0x32305e)]);_0x32305e[_0x181e('0x108')]=new Map(_0x4cc010);}[_0x181e('0x3c')](_0x5bb1f8){for(const _0xc98d1b of this['_markers'][_0x181e('0x29')]()){const _0x37e6b5=_0xc98d1b[_0x181e('0x105')](_0x5bb1f8),_0x11cae9=_0x3a73a8[_0x181e('0x45')](_0x37e6b5);_0xc98d1b[_0x181e('0x6d')]=_0x11cae9[_0x181e('0x6d')],_0xc98d1b[_0x181e('0xe0')]=_0x11cae9[_0x181e('0xe0')];}}[_0x181e('0x9a')](_0x2dbbc7,_0x37c7e2){if(_0x181e('0xdf')==_0x2dbbc7[_0x181e('0x50')]||_0x181e('0x102')==_0x2dbbc7[_0x181e('0x50')])return void this[_0x181e('0x60')](_0x2dbbc7,_0x37c7e2);if(_0x181e('0xa8')==_0x2dbbc7[_0x181e('0x50')]){const _0x37c0c8=_0x2dbbc7['position'][_0x181e('0x35')][_0x181e('0x87')];this[_0x181e('0xa7')][_0x181e('0x8b')](_0x37c0c8)||(this[_0x181e('0xa7')]['set'](_0x37c0c8,G(_0x37c0c8,!0x0)),this[_0x181e('0x63')]['set'](_0x37c0c8,{}),_0x37c7e2&&this[_0x181e('0x99')]['set'](_0x37c0c8,G(_0x37c0c8,!0x0)));}else{if(_0x181e('0x3a')==_0x2dbbc7[_0x181e('0x50')]||_0x181e('0x3d')==_0x2dbbc7['type']||_0x181e('0x89')==_0x2dbbc7[_0x181e('0x50')])return void this['_handleRootAttributeOperation'](_0x2dbbc7);}const _0x4d636c=this['_cloneOperation'](_0x2dbbc7,this['_diffRoots']);if(_0x181e('0xf')!==_0x2dbbc7[_0x181e('0x50')]&&(_0x4d636c['_execute'](),this[_0x181e('0x3c')](_0x4d636c)),_0x37c7e2)switch(_0x4d636c[_0x181e('0x50')]){case _0x181e('0xa8'):this[_0x181e('0x28')](_0x2dbbc7);break;case _0x181e('0x1e'):case _0x181e('0xe8'):case _0x181e('0x33'):this[_0x181e('0x93')](_0x2dbbc7);break;case _0x181e('0xf4'):this[_0x181e('0x9c')](_0x2dbbc7);break;case'split':this['_handleSplitOperation'](_0x2dbbc7);break;case'marker':this[_0x181e('0x38')](_0x2dbbc7);}}[_0x181e('0xa4')](_0x14ee06,_0x14877c){const _0x2bf234=_0x14ee06[_0x181e('0xbb')]();return _0x2bf234[_0x181e('0x52')]=_0x14ee06[_0x181e('0x52')],this[_0x181e('0xd')](_0x2bf234,_0x14877c),_0x2bf234;}[_0x181e('0x4f')](_0x46ac5c){return _0x46ac5c[_0x181e('0xa2')](_0x4abb4f=>{const _0x48cb90=this['_getVidAttributeName'](_0x4abb4f);return Number(_0x4abb4f[_0x181e('0x100')][_0x181e('0xfe')](_0x48cb90));});}['_generateTape'](_0x7c3913,_0xd9f5dd){if(_0x7c3913['is'](_0x181e('0x10'),_0x181e('0xcd')))_0xd9f5dd[_0x181e('0x53')]({'item':_0x7c3913,'type':_0x181e('0x106')});else{_0x7c3913['is'](_0x181e('0x10'))&&_0xd9f5dd['push']({'item':_0x7c3913,'type':_0x181e('0xd8')});for(const _0x4ba0d4 of _0x7c3913['getChildren']())this[_0x181e('0xb0')](_0x4ba0d4,_0xd9f5dd);_0x7c3913['is'](_0x181e('0x10'))&&_0xd9f5dd[_0x181e('0x53')]({'item':_0x7c3913,'type':_0x181e('0x4b')});}return _0xd9f5dd;}[_0x181e('0x39')](){const _0x346a57=new Map(this[_0x181e('0x47')]),_0x204de4=new Map(_0x346a57),_0x5eff39=new Map(),_0x3dde14={'insertions':{},'deletions':{}},_0x2e5d40={'insertions':{},'deletions':{}},_0x1fdd63=new Map(),_0x20ce1f=new Set([...this[_0x181e('0x2d')][_0x181e('0x1d')](),...this[_0x181e('0xa7')][_0x181e('0x1d')]()]);_0x20ce1f[_0x181e('0x0')](_0x181e('0xab'));for(const _0x2afb17 of _0x20ce1f){const _0x2f30c3=this[_0x181e('0xa7')][_0x181e('0x81')](_0x2afb17)||G(_0x2afb17,!0x1),_0x55cdaa=this[_0x181e('0x2d')][_0x181e('0x81')](_0x2afb17)||G(_0x2afb17,!0x1);_0x2f30c3[_0x181e('0x56')]()||_0x55cdaa[_0x181e('0x56')]()?(_0x3dde14['insertions'][_0x2afb17]=q(_0x2f30c3),_0x3dde14['deletions'][_0x2afb17]=q(_0x55cdaa),this[_0x181e('0xe2')](_0x3dde14['deletions'][_0x2afb17],_0x55cdaa),this[_0x181e('0xe2')](_0x3dde14[_0x181e('0x32')][_0x2afb17],_0x2f30c3),_0x2e5d40[_0x181e('0x32')][_0x2afb17]=this[_0x181e('0xb0')](this[_0x181e('0x99')]['get'](_0x2afb17),[]),_0x2e5d40[_0x181e('0x8a')][_0x2afb17]=this['_generateTape'](this[_0x181e('0x88')][_0x181e('0x81')](_0x2afb17)||G(_0x2afb17,!0x1),[])):_0x20ce1f[_0x181e('0x0')](_0x2afb17);}for(const _0x1504ea of _0x20ce1f){const _0x303723=_0x2e5d40[_0x181e('0x32')][_0x1504ea];for(const _0x2feff4 of _0x303723){const _0x57c774=this[_0x181e('0x26')](_0x2feff4),_0x53f20d=_0x2feff4[_0x181e('0x100')][_0x181e('0xfe')](_0x57c774);_0x204de4[_0x181e('0x0')](_0x53f20d),_0x53f20d>=this[_0x181e('0xb5')]&&_0x5eff39[_0x181e('0x11')](_0x53f20d,_0x346a57[_0x181e('0x81')](_0x53f20d));}}for(const _0x3bcea3 of _0x20ce1f){const _0x2f9ee6=_0x2e5d40['insertions'][_0x3bcea3],_0x36c217=this[_0x181e('0x4f')](_0x2e5d40[_0x181e('0x8a')][_0x3bcea3]);let _0x163fe2=0x0;for(const _0x3438b9 of _0x2f9ee6){const _0x16ad8b=this[_0x181e('0x26')](_0x3438b9),_0x4e64a0=_0x3438b9[_0x181e('0x100')]['getAttribute'](_0x16ad8b);if(!_0x5eff39['has'](_0x4e64a0)&&!_0x1fdd63[_0x181e('0x8b')](_0x4e64a0)){if(_0x204de4['has'](_0x4e64a0))_0x163fe2++;else{if(_0x4e64a0!=_0x36c217[_0x163fe2]){const _0x4eb2b3=_0x346a57[_0x181e('0x81')](_0x4e64a0)||_0x346a57[_0x181e('0x81')](_0x36c217[_0x163fe2]);for(;_0x4e64a0!=_0x36c217[_0x163fe2];)_0x204de4[_0x181e('0x8b')](_0x36c217[_0x163fe2])||(_0x1fdd63[_0x181e('0x11')](_0x36c217[_0x163fe2],_0x4eb2b3),_0x346a57[_0x181e('0x11')](_0x36c217[_0x163fe2],_0x4eb2b3)),_0x163fe2++;}_0x163fe2++;}}}}for(const _0x779449 of _0x20ce1f){const _0x336605=_0x2e5d40['insertions'][_0x779449];for(const _0x613c06 of _0x336605){const _0x2743c7=this[_0x181e('0x26')](_0x613c06),_0xb4f6f7=_0x613c06[_0x181e('0x100')]['getAttribute'](_0x2743c7);if(_0x1fdd63['has'](_0xb4f6f7)){const _0x4c6468=_0x1fdd63[_0x181e('0x81')](_0xb4f6f7);_0x204de4[_0x181e('0x8b')](_0xb4f6f7)||_0x204de4[_0x181e('0x11')](_0xb4f6f7,{..._0x4c6468}),_0x5eff39[_0x181e('0x11')](_0xb4f6f7,{..._0x4c6468});}}}for(const _0x4787eb of _0x204de4['keys']())_0x4787eb>=this[_0x181e('0xb5')]&&_0x204de4[_0x181e('0x0')](_0x4787eb);const _0x27a187=new Map();for(const _0x19fdd0 of _0x20ce1f){let _0x22df0d=_0x2e5d40[_0x181e('0x32')][_0x19fdd0];for(const _0x42c575 of _0x22df0d)if(_0x42c575[_0x181e('0x100')]['is'](_0x181e('0x10'),'tableCell')){const _0x35a645=this[_0x181e('0x26')](_0x42c575),_0x17ccd9=_0x42c575[_0x181e('0x100')][_0x181e('0xfe')](_0x35a645);if(_0x5eff39['has'](_0x17ccd9)){const _0x3adec4=_0x42c575[_0x181e('0x100')][_0x181e('0x20')][_0x181e('0x20')][_0x181e('0xfe')]('vid_start'),_0x2316ed=_0x27a187[_0x181e('0x81')](_0x3adec4)||new Set();_0x2316ed[_0x181e('0x48')](_0x5eff39[_0x181e('0x81')](_0x17ccd9)[_0x181e('0xb1')]),_0x27a187[_0x181e('0x11')](_0x3adec4,_0x2316ed);}}_0x22df0d=_0x2e5d40[_0x181e('0x8a')][_0x19fdd0];for(const _0x507996 of _0x22df0d)if(_0x507996['item']['is'](_0x181e('0x10'),'tableCell')){const _0x147d98=this[_0x181e('0x26')](_0x507996),_0x30a56c=_0x507996[_0x181e('0x100')][_0x181e('0xfe')](_0x147d98);if(_0x204de4['has'](_0x30a56c)){const _0x19b828=_0x507996[_0x181e('0x100')][_0x181e('0x20')][_0x181e('0x20')][_0x181e('0xfe')]('vid_start'),_0x52b89c=_0x27a187[_0x181e('0x81')](_0x19b828)||new Set();_0x52b89c[_0x181e('0x48')](_0x204de4[_0x181e('0x81')](_0x30a56c)[_0x181e('0xb1')]),_0x27a187[_0x181e('0x11')](_0x19b828,_0x52b89c);}}for(const _0x2ca240 of _0x27a187[_0x181e('0x1d')]())(_0x5eff39[_0x181e('0x8b')](_0x2ca240)||_0x204de4[_0x181e('0x8b')](_0x2ca240))&&_0x27a187['delete'](_0x2ca240);}for(const _0x49b3ee of _0x20ce1f){const _0x5b8473=_0x2e5d40[_0x181e('0x32')][_0x49b3ee];let _0x4f99c6=null,_0x493691=null;for(const _0xa9d5ed of _0x5b8473){const _0xb94919=this[_0x181e('0x26')](_0xa9d5ed),_0x222993=_0xa9d5ed[_0x181e('0x100')][_0x181e('0xfe')](_0xb94919),_0x5a9fac=_0x27a187['get'](_0x222993);_0x5a9fac&&_0x181e('0xd8')==_0xa9d5ed[_0x181e('0x50')]&&(_0x4f99c6=Array['from'](_0x5a9fac)[0x0],_0x493691=_0xa9d5ed[_0x181e('0x100')][_0x181e('0xfe')]('vid_end')),_0x4f99c6&&(_0x204de4[_0x181e('0x11')](_0x222993,{'userId':_0x4f99c6}),_0x5eff39[_0x181e('0x11')](_0x222993,{'userId':_0x4f99c6})),_0x222993==_0x493691&&(_0x4f99c6=null,_0x493691=null);}}const _0x4a99c6={},_0x23bd02=new Set();for(const _0x4e2f58 of _0x20ce1f){const _0xb99d37=_0x3dde14[_0x181e('0x8a')][_0x4e2f58],_0x2de08f=_0x3dde14[_0x181e('0x32')][_0x4e2f58];for(const {userId:_0x529983}of this[_0x181e('0xbf')]['values']())null!==_0x529983&&_0x23bd02[_0x181e('0x48')](_0x529983);for(const {userId:_0x4fa8bd}of this[_0x181e('0x5c')][_0x181e('0x29')]())null!==_0x4fa8bd&&_0x23bd02['add'](_0x4fa8bd);this[_0x181e('0x74')](_0x2de08f,_0x2e5d40[_0x181e('0x32')][_0x4e2f58],_0x5eff39,_0x181e('0xd2'),_0x23bd02),this[_0x181e('0x74')](_0xb99d37,_0x2e5d40[_0x181e('0x8a')][_0x4e2f58],_0x204de4,'deletion',_0x23bd02),_0x4a99c6[_0x4e2f58]={'insertions':this['_prepareViewToSave'](_0x2de08f),'deletions':this[_0x181e('0xf5')](_0xb99d37),'attachChange':this[_0x181e('0x5c')][_0x181e('0x81')](_0x4e2f58)||null,'attributesBefore':_0xa345b6(this[_0x181e('0x25')][_0x181e('0x81')](_0x4e2f58))||{},'attributesAfter':_0xa345b6(this[_0x181e('0x63')][_0x181e('0x81')](_0x4e2f58))};}return{'diffData':_0x4a99c6,'authorsIds':Array[_0x181e('0x3b')](_0x23bd02)};}['_processRootBeforeSave'](_0x413f5f){for(const [,_0x18c859]of _0x413f5f[_0x181e('0x108')]){const _0x29182b=_0x18c859['start'][_0x181e('0xdc')]()[_0x181e('0x6c')](_0x4076d5=>_0x181e('0xd5')==_0x4076d5[_0x181e('0xcb')]);for(const _0x222a32 of _0x29182b)0x1==_0x222a32[_0x181e('0x96')]&&_0x222a32[_0x181e('0xa6')](0x0)['is']('element',_0x181e('0xbd'))&&_0x222a32[_0x181e('0xa6')](0x0)[_0x181e('0xfa')]('keepParagraph',!0x0);}}[_0x181e('0xf5')](_0x942e83){this[_0x181e('0xf9')](_0x942e83);const _0x93f4e7=this[_0x181e('0x98')][_0x181e('0x59')][_0x181e('0x4')](_0x942e83,{}),_0xec6ef5=Array[_0x181e('0x3b')](_0x93f4e7[_0x181e('0x5')]())['map'](_0x5c7109=>this[_0x181e('0x9d')](_0x5c7109));return JSON[_0x181e('0xa1')](_0xec6ef5);}[_0x181e('0x9d')](_0x2c5f7a){if(_0x2c5f7a['is']('$text'))return _0x2c5f7a[_0x181e('0x59')];{const _0x3bd2e1=_0x2c5f7a;return{'type':Object[_0x181e('0x1d')](B)[_0x181e('0xcf')](_0x5b9b7d=>_0x2c5f7a instanceof B[_0x5b9b7d]),'name':_0x3bd2e1[_0x181e('0xcb')],'attributes':Array['from'](_0x3bd2e1['getAttributes']()),'children':Array[_0x181e('0x3b')](_0x3bd2e1[_0x181e('0x5')]())[_0x181e('0xa2')](_0x400409=>this['_getViewJson'](_0x400409))};}}[_0x181e('0x74')](_0xe4ea3f,_0x58337b,_0x2d91e4,_0x491a40,_0x30b8d7){let _0x2da149=null,_0x37fb54=null,_0x29777e=0x0;const _0x4dee8b=this['editor'][_0x181e('0x43')];for(let _0x1ebce1=0x0;_0x1ebce1<_0x58337b['length'];_0x1ebce1++){const _0x29264a=this[_0x181e('0x26')](_0x58337b[_0x1ebce1]),_0x20bf60=_0x58337b[_0x1ebce1]['item'][_0x181e('0xfe')](_0x29264a),_0xf3b49c=_0x2d91e4[_0x181e('0x81')](_0x20bf60),_0x5eb8d9=_0x1ebce1==_0x58337b[_0x181e('0xc7')]-0x1;(!_0x2da149&&_0xf3b49c&&(_0x2da149=_0xf3b49c,_0x37fb54=_0x58337b[_0x1ebce1]),_0x2da149&&(!_0xf3b49c||_0xf3b49c[_0x181e('0xb1')]!=_0x2da149[_0x181e('0xb1')]))&&(_0x49e3a0(_0xf3b49c,L(_0x37fb54,_0xe4ea3f,_0x4dee8b),L(_0x58337b[_0x1ebce1],_0xe4ea3f,_0x4dee8b)),_0x2da149=_0xf3b49c||null,_0x37fb54=_0xf3b49c?_0x58337b[_0x1ebce1]:null),_0x2da149&&_0x5eb8d9&&_0x49e3a0(_0xf3b49c,L(_0x37fb54,_0xe4ea3f,_0x4dee8b),W(_0x58337b[_0x1ebce1],_0xe4ea3f,_0x4dee8b));}function _0x49e3a0(_0x1127a8,_0x12b927,_0x536730){const _0x493c62=_0x2da149[_0x181e('0xb1')],_0x5f49b8=_0x181e('0x1c')+_0x491a40+':'+_0x493c62+':'+_0x29777e++,_0x385168=_0x4dee8b[_0x181e('0x2a')](_0x12b927,_0x536730);_0xe4ea3f[_0x181e('0x108')]['set'](_0x5f49b8,_0x385168),null!==_0x493c62&&_0x30b8d7['add'](_0x493c62);}}[_0x181e('0x26')](_0x59bd0e){switch(_0x59bd0e[_0x181e('0x50')]){case _0x181e('0xd8'):return _0x181e('0x2b');case _0x181e('0x4b'):return _0x181e('0xc4');default:return'vid';}}[_0x181e('0xd')](_0xa5234b,_0x24a07d){_0xa5234b[_0x181e('0x4a')]=null;for(const _0x43d995 in _0xa5234b){const _0x531539=_0xa5234b[_0x43d995];if(_0x531539 instanceof _0x4265eb){const _0x12c7ff=_0x24a07d['get'](_0x531539[_0x181e('0x35')][_0x181e('0x87')]);_0xa5234b[_0x43d995]=this[_0x181e('0x12')](_0x531539,_0x12c7ff);}if(_0x531539 instanceof _0x3a73a8){const _0x2035fe=_0x24a07d['get'](_0x531539[_0x181e('0x35')]['rootName']);_0xa5234b[_0x43d995]=this[_0x181e('0x7')](_0x531539,_0x2035fe);}_0x181e('0x35')===_0x43d995&&(_0xa5234b['root']=_0x24a07d[_0x181e('0x81')](_0xa5234b[_0x181e('0x35')][_0x181e('0x87')]));}}['_fixRange'](_0x4eaa83,_0x3cb9bb){return this[_0x181e('0x98')]['model']['createRange'](this[_0x181e('0x12')](_0x4eaa83['start'],_0x3cb9bb),this[_0x181e('0x12')](_0x4eaa83[_0x181e('0xe0')],_0x3cb9bb));}[_0x181e('0x12')](_0x52fcee,_0x531a08){return this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xe4')](_0x531a08,_0x52fcee[_0x181e('0x83')],_0x52fcee[_0x181e('0x54')]);}['_handleInsertOperation'](_0x8ead71){const _0x11d720=this[_0x181e('0x99')][_0x181e('0x81')](_0x8ead71[_0x181e('0x6')]['root'][_0x181e('0x87')]),_0x2f78df=this[_0x181e('0x12')](_0x8ead71[_0x181e('0x6')],_0x11d720),_0x1aaa2e=null===_0x8ead71[_0x181e('0x52')]?null:_0x8ead71['_authorId']||this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')]('Users')['me']['id'],_0x17a379=_0x2f78df[_0x181e('0x20')],_0x59fdce=this['_revisionId'],_0xcabc32=[];for(const _0x4982ec of _0x8ead71[_0x181e('0xfd')])if(_0x4982ec['is'](_0x181e('0x10')))_0xcabc32[_0x181e('0x53')](this[_0x181e('0x4d')](_0x4982ec));else for(let _0xb41fd7=0x0;_0xb41fd7<_0x4982ec[_0x181e('0x70')];_0xb41fd7++)_0xcabc32['push'](new _0x5b445d('$text',{'vid':this[_0x181e('0xc6')]++}));const _0x1447d2=this[_0x181e('0xc6')];for(let _0x3bbf01=_0x59fdce;_0x3bbf01<_0x1447d2;_0x3bbf01++)this[_0x181e('0x47')][_0x181e('0x11')](_0x3bbf01,{'userId':_0x1aaa2e});_0x17a379[_0x181e('0xa')](_0x2f78df[_0x181e('0x7a')],_0xcabc32);}['_handleMoveOperation'](_0xdc87f2){(_0xdc87f2=this['_cloneOperation'](_0xdc87f2,this[_0x181e('0x99')]))[_0x181e('0x36')]();const _0x2a91a1=null===_0xdc87f2[_0x181e('0x52')]?null:_0xdc87f2['_authorId']||this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0xd5ff28=_0xdc87f2[_0x181e('0xfb')](),_0x29a687=_0xd5ff28[_0x181e('0x20')],_0x72c61e=_0xd5ff28[_0x181e('0x7a')];!function _0x329289(_0x460b10,_0x45b61a,_0x51af3a,_0x4561fd){for(let _0x40854f=_0x51af3a;_0x40854f<_0x4561fd;_0x40854f++){const _0x15bcd5=_0x45b61a[_0x181e('0xa6')](_0x40854f);_0x15bcd5['is']('element',_0x181e('0xcd'))?_0x460b10[_0x181e('0x11')](_0x15bcd5[_0x181e('0xfe')](_0x181e('0x23')),{'userId':_0x2a91a1}):(_0x460b10[_0x181e('0x11')](_0x15bcd5[_0x181e('0xfe')]('vid_start'),{'userId':_0x2a91a1}),_0x329289(_0x460b10,_0x15bcd5,0x0,_0x15bcd5[_0x181e('0x96')]),_0x460b10['set'](_0x15bcd5[_0x181e('0xfe')](_0x181e('0xc4')),{'userId':_0x2a91a1}));}}(this[_0x181e('0x47')],_0x29a687,_0x72c61e,_0x72c61e+_0xdc87f2[_0x181e('0xd4')]);}[_0x181e('0x9c')](_0x30ee4c){const _0x414f11=null===(_0x30ee4c=this[_0x181e('0xa4')](_0x30ee4c,this['_idsRoots']))['_authorId']?null:_0x30ee4c[_0x181e('0x52')]||this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0x4ac515=_0x30ee4c['targetPosition'][_0x181e('0x20')],_0x4fabb5=_0x30ee4c['sourcePosition'][_0x181e('0x20')],_0x572281=_0x4ac515[_0x181e('0xfe')]('vid_end'),_0x5aa5fd=_0x4fabb5[_0x181e('0xfe')]('vid_start');_0x4ac515[_0x181e('0xfa')](_0x181e('0xc4'),_0x4fabb5['getAttribute'](_0x181e('0xc4'))),_0x4fabb5['_setAttribute']('vid_end',_0x572281),this['_touched'][_0x181e('0x11')](_0x5aa5fd,{'userId':_0x414f11}),this[_0x181e('0x47')][_0x181e('0x11')](_0x572281,{'userId':_0x414f11}),_0x30ee4c[_0x181e('0x36')]();}[_0x181e('0x9')](_0x39d942){const _0xfa534c=null===(_0x39d942=this[_0x181e('0xa4')](_0x39d942,this[_0x181e('0x99')]))[_0x181e('0x52')]?null:_0x39d942[_0x181e('0x52')]||this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0xa6cc62=_0x39d942['graveyardPosition'],_0x4cfff4=_0x39d942[_0x181e('0xeb')][_0x181e('0x20')];_0x39d942['_execute']();const _0x33205f=_0x4cfff4[_0x181e('0xfe')]('vid_end'),_0x5b71ac=_0x39d942[_0x181e('0xbc')][_0x181e('0x55')];if(_0xa6cc62){const _0xc503ee=_0x5b71ac[_0x181e('0xfe')](_0x181e('0xc4')),_0x68c8e0=_0x4cfff4[_0x181e('0xfe')](_0x181e('0xc4'));_0x4cfff4['_setAttribute'](_0x181e('0xc4'),_0xc503ee),_0x5b71ac[_0x181e('0xfa')](_0x181e('0xc4'),_0x68c8e0),this[_0x181e('0x47')]['set'](_0x4cfff4[_0x181e('0xfe')]('vid_end'),{'userId':_0xfa534c}),this[_0x181e('0x47')][_0x181e('0x11')](_0x5b71ac[_0x181e('0xfe')]('vid_start'),{'userId':_0xfa534c});}else{const _0x1b6cad=this['_revisionId']++,_0x5495c0=this[_0x181e('0xc6')]++;_0x4cfff4[_0x181e('0xfa')]('vid_end',_0x1b6cad),_0x5b71ac[_0x181e('0xfa')](_0x181e('0x2b'),_0x5495c0),_0x5b71ac['_setAttribute'](_0x181e('0xc4'),_0x33205f),this[_0x181e('0x47')][_0x181e('0x11')](_0x1b6cad,{'userId':_0xfa534c}),this[_0x181e('0x47')][_0x181e('0x11')](_0x5495c0,{'userId':_0xfa534c});}}[_0x181e('0x38')](_0x215dca){if(!_0x215dca[_0x181e('0xad')])return;const _0x44607b=(_0x215dca=this['_cloneOperation'](_0x215dca,this[_0x181e('0xa7')]))[_0x181e('0x6e')]?_0x215dca[_0x181e('0x6e')]['root']:null,_0x115637=_0x215dca['newRange']?_0x215dca[_0x181e('0x1a')][_0x181e('0x35')]:null;_0x44607b&&this[_0x181e('0xd0')][_0x181e('0x0')](_0x215dca[_0x181e('0xcb')]),_0x115637&&this[_0x181e('0xd0')][_0x181e('0x11')](_0x215dca['name'],_0x215dca[_0x181e('0x1a')][_0x181e('0xbb')]());const _0x3a0ff3=null===_0x215dca[_0x181e('0x52')]?null:_0x215dca[_0x181e('0x52')]||this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0x4ddee0=_0x215dca[_0x181e('0xcb')];if(!this[_0x181e('0xbf')]['has'](_0x4ddee0))return void this[_0x181e('0xbf')][_0x181e('0x11')](_0x4ddee0,{'range':_0x215dca[_0x181e('0x6e')],'userId':_0x3a0ff3});const _0x3cb865=this[_0x181e('0xbf')][_0x181e('0x81')](_0x4ddee0),_0x389faa=_0x3cb865['range'],_0x343ffd=_0x215dca['newRange'];null==_0x389faa&&null==_0x343ffd||_0x389faa&&_0x343ffd&&_0x389faa[_0x181e('0xb6')](_0x343ffd)?this[_0x181e('0xbf')][_0x181e('0x0')](_0x215dca['name']):_0x3cb865[_0x181e('0xb1')]=_0x3a0ff3;}[_0x181e('0x60')](_0x296bcd,_0x2f6bda){this[_0x181e('0xa7')][_0x181e('0x8b')](_0x296bcd[_0x181e('0x87')])?this['_diffRoots'][_0x181e('0x81')](_0x296bcd[_0x181e('0x87')])[_0x181e('0xde')]=_0x296bcd[_0x181e('0xba')]:(this['_diffRoots'][_0x181e('0x11')](_0x296bcd[_0x181e('0x87')],G(_0x296bcd[_0x181e('0x87')],!0x0)),this[_0x181e('0x63')][_0x181e('0x11')](_0x296bcd['rootName'],{}),_0x2f6bda&&this[_0x181e('0x99')][_0x181e('0x11')](_0x296bcd[_0x181e('0x87')],G(_0x296bcd[_0x181e('0x87')],!0x0)));const _0x24f929=null===_0x296bcd[_0x181e('0x52')]?null:_0x296bcd['_authorId']||this[_0x181e('0x98')]['plugins']['get'](_0x181e('0x77'))['me']['id'],_0x20c838=this[_0x181e('0x5c')][_0x181e('0x81')](_0x296bcd[_0x181e('0x87')]);_0x20c838&&_0x20c838[_0x181e('0xb1')]===_0x24f929?this[_0x181e('0x5c')][_0x181e('0x0')](_0x296bcd[_0x181e('0x87')]):this[_0x181e('0x5c')]['set'](_0x296bcd[_0x181e('0x87')],{'userId':_0x24f929,'isAttached':_0x296bcd['isAdd']});}[_0x181e('0xd3')](_0x73d7b3){const _0x5d32f9=this[_0x181e('0x63')]['get'](_0x73d7b3['root'][_0x181e('0x87')]);null===_0x73d7b3[_0x181e('0xb7')]?delete _0x5d32f9[_0x73d7b3[_0x181e('0x40')]]:_0x5d32f9[_0x73d7b3[_0x181e('0x40')]]=_0x73d7b3[_0x181e('0xb7')];}}function q(_0x39e36b){const _0x1bdeb6=G(_0x39e36b[_0x181e('0x87')],_0x39e36b['isAttached']());for(const _0xc337f9 of _0x39e36b['getChildren']()){const _0x569dc8=_0xc337f9[_0x181e('0x103')](!0x0);_0x1bdeb6['_appendChild'](_0x569dc8);}return _0x1bdeb6;}function G(_0x28ff00,_0x1e8006=!0x0){const _0x2ba343=new _0x49f63f();return _0x2ba343['rootName']=_0x28ff00,_0x2ba343[_0x181e('0xde')]=_0x1e8006,_0x2ba343['isAttached']=()=>_0x2ba343[_0x181e('0xde')],_0x2ba343;}function L(_0x37dbd0,_0x190715,_0x234d29){const _0x9af58e='elementEnd'==_0x37dbd0['type']?_0x234d29[_0x181e('0xf2')](_0x37dbd0['item'],'end'):_0x234d29[_0x181e('0x49')](_0x37dbd0[_0x181e('0x100')]);return _0x234d29['createPositionFromPath'](_0x190715,_0x9af58e[_0x181e('0x83')],_0x9af58e['stickiness']);}function W(_0xc00a45,_0x58d2eb,_0x3c3e86){const _0x1fcb5c=_0x181e('0xd8')==_0xc00a45[_0x181e('0x50')]?_0x3c3e86['createPositionAt'](_0xc00a45[_0x181e('0x100')],0x0):_0x3c3e86[_0x181e('0x97')](_0xc00a45[_0x181e('0x100')]);return _0x3c3e86[_0x181e('0xe4')](_0x58d2eb,_0x1fcb5c[_0x181e('0x83')],_0x1fcb5c[_0x181e('0x54')]);}
|