@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230907.0 → 0.0.0-nightly-20230908.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 _0x30eb=['position','_handleMergeOperation','vid_start','vid_end','_baseRoots','sourcePosition','type','_startingVersion','_loadRevisionData','getRootNames','max','getRange','some','insertion','tableCell','text','isEqual','_fixOperation','revision:','buildRevisionData','upcast','getData','reverse','_lastTo','children','_markers','_createCurrentRevision','_diffRoots','_generateTape','documentFragment','editor-initial-data-replaced-with-revision-data','newRange','howMany','map','pluginName','_makeRevision','_makeIdsRoot','_copyMarkers','root','has','createPositionAfter','reinsert','collaboration.channelId','find','_loadedStateData','conversion','_lastFrom','key','attributesBefore','toModel','_handleRootAttributeOperation','insert','_applyOperations','_addPendingAction','shift','delete','_handleSplitOperation','splitPosition','_handleMarkerOperation','parent','clear','bind','for','Initial\x20revision','_isPendingUpdate','source','userId','merge','model','default','elementEnd','getRevisionDocumentData','vid','_handleMoveOperation','_getPreviousFrom','_clone','attributesAfter','config','graveyardPosition','getUser','_idsRoots','_createInitialRevision','_findInsertionIndex','_handleInsertOperation','RealTimeCollaborationClient','markerToData','update','_bufferUpdate','element','getChild','slice','document','getWalker','rootName','markers','end','_touched','view','getRevisions','toVersion','_touchedMarkers','editor','_authorId','_setAttribute','_startingRevisionId','start','_saveMetaData','initialData','Users','clone','paragraph','createPositionBefore','_getVidAttributeName','_getFromVersion','currentRevision','_getState','getAncestors','offsetSize','oldRange','$graveyard','add','getAttributes','marker','_cloneOperation','includes','startsWith','repository','dataDowncast','getChildren','_reset','authorsIds','afterInit','size','move','roots','revisionHistory.resumeUnsavedRevision','parse','baseVersion','createdAt','childCount','NEGATIVE_INFINITY','_bufferedUpdates','creatorId','_getViewJson','_loadState','revision-start','newValue','insertions','history','resolve','_insertChild','creator','getCurrentRevisionId','affectsData','isAttached','_savedMetaData','from','finally','offset','targetPosition','marked','PENDING_ACTION_REVISION_HISTORY','_removeMetaData','getRevision','_isAttached','_touchedRoots','previousPosition','nodes','attributes','_pendingAction','sort','RevisionsRepository','deletions','_processRootBeforeSave','stickiness','_revisionDataBuilder','Empty\x20document','createPositionFromPath','_getBaseVids','_diffRootsAttributes','_baseIdsRoots','_source','getNodeByPath','toData','getMovedRangeStart','processor','RevisionTracker','useFillerType','isEnabled','createPositionAt','_replaceEditorDataWithRevisionData','_calculateMetaData','addRevision','initial','then','loadState','_removePendingAction','version','nodeAfter','get','$text','item','_handleRootOperation','removeRootAttribute','plugins','authors','fromVersion','name','editing','rootsAttributes','revision-end','isAdd','addRevisionData','setRevisionData','push','_execute','_continueCurrentRevision','elementStart','length','_fixRange','_fixPosition','_update','detachRoot','values','addRootAttribute','_prepareViewToSave','getAttribute','_handleOperation','keys','set','adapter','_initialRevisionId','attachChange','locale','getRevisionRootsAttributes','getLatestVersion','split','forEach','sendBufferedUpdates','_revisionId','trim','_makeModelFromViewString','diffData','init','stringify','_baseRootsAttributes','string','dataToMarker','keepParagraph','reInit','getTransformedByOperation','requires','isReady','data','filter','_markChanges','_removeRevisionMarkers','path'];(function(_0x2d0f78,_0x30eb33){const _0x18a543=function(_0x7240d4){while(--_0x7240d4){_0x2d0f78['push'](_0x2d0f78['shift']());}};_0x18a543(++_0x30eb33);}(_0x30eb,0x121));const _0x18a5=function(_0x2d0f78,_0x30eb33){_0x2d0f78=_0x2d0f78-0x0;let _0x18a543=_0x30eb[_0x2d0f78];return _0x18a543;};import{Users as _0x1a58e2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xe77ae8,PendingActions as _0xe7ecc3}from'ckeditor5/src/core';import{logWarning as _0x3519c4,uid as _0x7d457c}from'ckeditor5/src/utils';import{Position as _0x170f37,Range as _0x287ef,Element as _0x5f4c69,DocumentFragment as _0x1d8fd3,ViewText as _0x585615,ViewElement as _0x1e0a6b,ViewContainerElement as _0x1c2131,ViewAttributeElement as _0x4710a6,ViewEmptyElement as _0x35c355,ViewRawElement as _0x3b2455,ViewUIElement as _0x32f24e,ViewDocumentFragment as _0x3a7ce5}from'ckeditor5/src/engine';import _0x30b6b3 from'./revisionsrepository';import{getTranslation as _0x18fdb9}from'./utils/common-translations';import{cloneDeep as _0x158255,isEqual as _0x50f222}from'lodash-es';const B={'c':_0x1c2131,'a':_0x4710a6,'e':_0x35c355,'r':_0x3b2455,'u':_0x32f24e};export default class l extends _0xe77ae8{static get[_0x18a5('0x3')](){return _0x18a5('0x9b');}static get[_0x18a5('0xdc')](){return[_0x1a58e2,_0x30b6b3,_0xe7ecc3];}constructor(_0xa791a0){super(_0xa791a0),this[_0x18a5('0xc7')]=null,this['currentRevision']=null,this[_0x18a5('0x90')]=new H(this[_0x18a5('0x46')]),this[_0x18a5('0xc8')]=this['editor'][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb'))||_0x18a5('0xa2'),this['_bufferedUpdates']=new Map(),this[_0x18a5('0xd')]=null;const _0x40e7ba=_0x7d457c();this[_0x18a5('0x96')]={'history':this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x75')],'getLatestVersion':()=>Promise[_0x18a5('0x76')](this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0xa6')]),'getCurrentRevisionId':()=>_0x40e7ba},this[_0x18a5('0xc6')](_0x18a5('0xdd'),!0x1),this['set'](_0x18a5('0x9d'),!0x0),this[_0x18a5('0xc6')](_0x18a5('0x21'),!0x1),this[_0x18a5('0x46')][_0x18a5('0x2e')]['define'](_0x18a5('0x68'),!0x0),this[_0x18a5('0x46')][_0x18a5('0xe')][_0x18a5('0x1f')](_0x18a5('0xf7'))[_0x18a5('0xd8')]({'view':'revision'});}[_0x18a5('0xd4')](){this[_0x18a5('0x5f')]=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x8c')),this['_setConversion'](),this[_0x18a5('0x46')]['data']['on']('ready',()=>{const _0x12ced4=this[_0x18a5('0x5f')]['getRevision'](0x0),_0x2ed20b=_0x12ced4&&null===_0x12ced4[_0x18a5('0x78')]?_0x12ced4:null;if(this[_0x18a5('0xb9')]=!!_0x2ed20b&&this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0x68')),this['editor'][_0x18a5('0xad')]['has'](_0x18a5('0x35'))){const _0xb583fe=this[_0x18a5('0x96')][_0x18a5('0x79')](),_0x3cc9bf=this[_0x18a5('0x5f')][_0x18a5('0x84')](_0xb583fe);if(_0x3cc9bf)this[_0x18a5('0xea')]=_0x3cc9bf[_0x18a5('0xaf')],this['_continueCurrentRevision']=!0x1;else{const _0x1b5892=this[_0x18a5('0x96')]['history']['_operations'][_0x18a5('0xc')](_0x36b31e=>!_0x36b31e['_isInit']),_0x383e6=_0x1b5892?_0x1b5892[_0x18a5('0x6a')]:this[_0x18a5('0x96')][_0x18a5('0x75')][_0x18a5('0xa6')];_0x12ced4?(_0x12ced4[_0x18a5('0x44')]<_0x383e6&&_0x12ced4['_update']({'toVersion':_0x383e6}),this[_0x18a5('0xb9')]?(this[_0x18a5('0x96')][_0x18a5('0x79')]=()=>_0x2ed20b['id'],this[_0x18a5('0xea')]=_0x2ed20b[_0x18a5('0xaf')]):(this['_startingVersion']=_0x12ced4[_0x18a5('0x44')],this[_0x18a5('0xb9')]=!0x1)):(this[_0x18a5('0xea')]=_0x383e6,this[_0x18a5('0xb9')]=!0x1);}}else _0x2ed20b&&(this[_0x18a5('0x46')]['model']['document']['history'][_0x18a5('0xa6')]=Math[_0x18a5('0xed')](_0x2ed20b[_0x18a5('0x44')],this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x75')][_0x18a5('0xa6')]),_0x2ed20b[_0x18a5('0xaf')]===_0x2ed20b['toVersion']?(0x0!==_0x2ed20b[_0x18a5('0xaf')]&&(this[_0x18a5('0x96')][_0x18a5('0x79')]=()=>_0x2ed20b['id']),this[_0x18a5('0xb9')]=!0x1):this[_0x18a5('0xb9')]&&(this[_0x18a5('0x96')]['getCurrentRevisionId']=()=>_0x2ed20b['id'],this[_0x18a5('0xea')]=_0x2ed20b['fromVersion'])),this[_0x18a5('0xb9')]||(this['_startingVersion']=this['editor']['model']['document'][_0x18a5('0xa6')]);this[_0x18a5('0x90')][_0x18a5('0xd4')](this[_0x18a5('0x96')][_0x18a5('0x75')]),this['_createInitialRevision'](this[_0x18a5('0xea')]),this[_0x18a5('0xfd')](this[_0x18a5('0xea')]),this[_0x18a5('0xc7')]&&this[_0x18a5('0xcf')]();}),this[_0x18a5('0x1e')](_0x18a5('0xdd'))['to'](this,_0x18a5('0x21'),_0x571211=>!_0x571211);}async[_0x18a5('0x64')](){if(this[_0x18a5('0x5f')][_0x18a5('0xbb')]>0x0){const _0x4ea8d0=this[_0x18a5('0x5f')][_0x18a5('0x84')](0x0),_0x4614a6=await this[_0x18a5('0x28')](_0x4ea8d0),_0x484063=await this[_0x18a5('0xcb')](_0x4ea8d0);this[_0x18a5('0x9f')](_0x4614a6,_0x484063);}}['setSource'](_0x3693f2){this[_0x18a5('0x96')]=_0x3693f2;}async[_0x18a5('0x37')](){const _0x3de340=await this[_0x18a5('0x96')]['getLatestVersion']();if(_0x3de340>this[_0x18a5('0x53')]['toVersion']){await this[_0x18a5('0x71')]();const _0x5a7770=this[_0x18a5('0xf6')]({'revision':this[_0x18a5('0x53')],'to':_0x3de340});_0x5a7770['authors']=_0x5a7770[_0x18a5('0x63')]['map'](_0x80a53b=>this[_0x18a5('0x46')]['plugins'][_0x18a5('0xa8')]('Users')[_0x18a5('0x30')](_0x80a53b)),this[_0x18a5('0x53')][_0x18a5('0xbe')](_0x5a7770);}}async[_0x18a5('0x71')](){this[_0x18a5('0xb9')]&&!this['_loadedStateData']&&(await this[_0x18a5('0xeb')](this[_0x18a5('0x53')]),this[_0x18a5('0x90')][_0x18a5('0xa4')](this[_0x18a5('0x53')]),this['_loadedStateData']={'fromVersion':this[_0x18a5('0x53')]['fromVersion'],'authors':this[_0x18a5('0x53')]['authors']['slice']()});}async['saveRevision'](_0xd796b2={},_0x16bbe6=null){const _0x328557=[];await this[_0x18a5('0x71')](),this['_continueCurrentRevision']=!0x1,_0x16bbe6>this['currentRevision'][_0x18a5('0x44')]&&(_0x16bbe6=null),null===_0x16bbe6&&(_0x16bbe6=await this[_0x18a5('0x96')][_0x18a5('0xcc')]());const _0x2bc665=this[_0x18a5('0x52')](_0x16bbe6),_0x4800ee=this['buildRevisionData']({'from':_0x2bc665,'to':_0x16bbe6});if(this[_0x18a5('0x53')]['toVersion']<_0x16bbe6){const _0x275de9=this[_0x18a5('0xf6')]({'revision':this[_0x18a5('0x53')],'from':_0x16bbe6,'to':_0x16bbe6});_0x275de9['authors']=[],_0x275de9[_0x18a5('0x63')]=[],_0x275de9['id']=this[_0x18a5('0x53')]['id'],this[_0x18a5('0x53')][_0x18a5('0xbe')](_0x275de9,!0x0),delete _0x275de9[_0x18a5('0xae')],_0x328557[_0x18a5('0xb7')](_0x275de9);}_0xd796b2[_0x18a5('0x6f')]=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0xd796b2[_0x18a5('0xb0')]=_0xd796b2[_0x18a5('0xb0')]||null,_0xd796b2['id']=_0xd796b2['id']||_0x7d457c(),_0xd796b2={..._0xd796b2,..._0x4800ee};const _0x526c3b=this[_0x18a5('0xb5')](_0xd796b2);_0x328557['push'](_0xd796b2);const _0x1f99b5=this[_0x18a5('0x5f')]['getIndex'](_0x526c3b);if(0x0!==_0x1f99b5){const _0x4ce88e=this[_0x18a5('0x5f')][_0x18a5('0x84')](_0x1f99b5-0x1);if(_0x4ce88e[_0x18a5('0xaf')]!==_0x16bbe6){const _0x45968a=this[_0x18a5('0x90')][_0x18a5('0xf8')](_0x16bbe6,_0x4ce88e[_0x18a5('0x44')]),_0x54a00f={'id':_0x4ce88e['id'],'diffData':_0x45968a[_0x18a5('0xd3')],'authorsIds':_0x45968a[_0x18a5('0x63')],'authors':_0x45968a[_0x18a5('0x63')][_0x18a5('0x2')](_0x4055d5=>this[_0x18a5('0x46')]['plugins'][_0x18a5('0xa8')](_0x18a5('0x4d'))[_0x18a5('0x30')](_0x4055d5)),'fromVersion':_0x16bbe6};_0x4ce88e===this['currentRevision']&&(_0x54a00f[_0x18a5('0x6b')]=new Date(_0xd796b2[_0x18a5('0x6b')]['getTime']()+0xa)),_0x4ce88e[_0x18a5('0xbe')](_0x54a00f,!0x0),delete _0x54a00f[_0x18a5('0xae')],_0x328557['push'](_0x54a00f);}}if(this['adapter']){for(const _0x2fe128 of _0x328557)this[_0x18a5('0x38')](_0x2fe128['id'],_0x2fe128,!0x0);this['sendBufferedUpdates']();}return _0x526c3b;}[_0x18a5('0xb5')](_0x363581){const _0x5345a8=this['repository']['createRevision'](_0x363581);return this['adapter']&&_0x5345a8['on'](_0x18a5('0xbe'),(_0x1ceaa5,_0x26f3fa,_0x19bfff)=>{_0x19bfff||(this[_0x18a5('0x38')](_0x26f3fa['id'],_0x26f3fa,!0x0),this[_0x18a5('0xcf')]());}),this[_0x18a5('0x5f')][_0x18a5('0xa1')](_0x5345a8,this[_0x18a5('0x33')](_0x5345a8)),_0x5345a8;}async[_0x18a5('0x28')](_0x33c7d7){await this[_0x18a5('0xeb')](_0x33c7d7);const _0x30e16f={};for(const _0x2dbce4 in _0x33c7d7['diffData']){if(_0x33c7d7['diffData'][_0x2dbce4][_0x18a5('0xc9')]&&!_0x33c7d7[_0x18a5('0xd3')][_0x2dbce4][_0x18a5('0xc9')][_0x18a5('0x7b')])continue;const _0x4ad4a8=this[_0x18a5('0xe1')](JSON[_0x18a5('0x69')](_0x33c7d7[_0x18a5('0xd3')][_0x2dbce4][_0x18a5('0x74')])),_0x1d4242=this[_0x18a5('0x46')][_0x18a5('0xb1')][_0x18a5('0x42')][_0x18a5('0x3c')],_0x5641b0=new _0x3a7ce5(_0x1d4242,_0x4ad4a8[_0x18a5('0x2')](_0x21a7ee=>J(_0x21a7ee,this['editor'])));this['editor'][_0x18a5('0xde')][_0x18a5('0x9a')]['useFillerType'](_0x18a5('0x81')),_0x30e16f[_0x2dbce4]=this[_0x18a5('0x46')][_0x18a5('0xde')][_0x18a5('0x9a')][_0x18a5('0x98')](_0x5641b0),this[_0x18a5('0x46')][_0x18a5('0xde')][_0x18a5('0x9a')][_0x18a5('0x9c')](_0x18a5('0x26'));}return _0x30e16f;}async[_0x18a5('0xcb')](_0x315f9e){await this['_loadRevisionData'](_0x315f9e);const _0x443fbc={};for(const _0x30ca2b in _0x315f9e[_0x18a5('0xd3')])_0x315f9e[_0x18a5('0xd3')][_0x30ca2b][_0x18a5('0xc9')]&&!_0x315f9e['diffData'][_0x30ca2b][_0x18a5('0xc9')][_0x18a5('0x7b')]||(_0x443fbc[_0x30ca2b]=_0x315f9e[_0x18a5('0xd3')][_0x30ca2b][_0x18a5('0x2d')]||{});return _0x443fbc;}['sendBufferedUpdates'](){if(0x0===this[_0x18a5('0x6e')][_0x18a5('0x65')])return;if(this[_0x18a5('0x21')])return;let _0x3bfb87=Array['from'](this[_0x18a5('0x6e')][_0x18a5('0xc0')]());this[_0x18a5('0x6e')]['clear']();for(let _0x268fe2=0x0;_0x268fe2<_0x3bfb87[_0x18a5('0xbb')];_0x268fe2++){const _0x30f0d2=_0x3bfb87[_0x268fe2];let _0x210604=!0x1;for(const _0x206708 of Object[_0x18a5('0xc5')](_0x30f0d2))void 0x0===_0x30f0d2[_0x206708]?delete _0x30f0d2[_0x206708]:'id'!==_0x206708&&(_0x210604=!0x0);_0x210604||(_0x3bfb87[_0x268fe2]=null);}if(_0x3bfb87=_0x3bfb87[_0x18a5('0xdf')](_0x1c733f=>null!==_0x1c733f),!_0x3bfb87[_0x18a5('0xbb')])return;for(let _0x1ec269=0x0;_0x1ec269<_0x3bfb87[_0x18a5('0xbb')];_0x1ec269++){const _0x2c078c=_0x3bfb87[_0x1ec269];void 0x0!==_0x2c078c[_0x18a5('0xaf')]&&void 0x0===_0x2c078c[_0x18a5('0x44')]&&(_0x2c078c['toVersion']=this[_0x18a5('0x5f')][_0x18a5('0x84')](_0x2c078c['id'])[_0x18a5('0x44')]),void 0x0!==_0x2c078c[_0x18a5('0x44')]&&void 0x0===_0x2c078c[_0x18a5('0xaf')]&&(_0x2c078c['fromVersion']=this[_0x18a5('0x5f')]['getRevision'](_0x2c078c['id'])[_0x18a5('0xaf')]);}const _0x1fc9a1=this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb'));this[_0x18a5('0x21')]=!0x0,this['_addPendingAction'](),this[_0x18a5('0xc7')]['updateRevisions'](_0x3bfb87,_0x1fc9a1)[_0x18a5('0x7e')](()=>{this[_0x18a5('0x21')]=!0x1;})[_0x18a5('0xa3')](_0x210ae9=>{if(_0x210ae9)for(const _0xc7f5d3 of _0x210ae9)this[_0x18a5('0xb6')]({'id':_0xc7f5d3['id'],'createdAt':_0xc7f5d3[_0x18a5('0x6b')]});this[_0x18a5('0xa5')](),this[_0x18a5('0xcf')]();});}[_0x18a5('0x9f')](_0x16029e,_0x1fbb6a){let _0x29a2bc=this[_0x18a5('0x46')]['config'][_0x18a5('0xa8')](_0x18a5('0x4c')),_0x3d5ffa=this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb2'));if(void 0x0===_0x29a2bc){_0x29a2bc={};for(const _0x27db89 of this['editor'][_0x18a5('0x25')][_0x18a5('0x3c')]['getRootNames']())_0x29a2bc[_0x27db89]='';}if(_0x18a5('0xd7')==typeof _0x29a2bc&&(_0x29a2bc={'main':_0x29a2bc}),void 0x0===_0x3d5ffa){_0x3d5ffa={};for(const _0x5acff8 of this[_0x18a5('0x46')][_0x18a5('0x25')]['document'][_0x18a5('0xec')]())_0x3d5ffa[_0x5acff8]={};}let _0x31612d=!0x1;const _0x26eab6=Object[_0x18a5('0xc5')](_0x29a2bc),_0x44a3c9=Object['keys'](_0x16029e);for(const _0x36507e of _0x26eab6){if(_0x29a2bc[_0x36507e]!==_0x16029e[_0x36507e]&&''!==_0x29a2bc[_0x36507e][_0x18a5('0xd1')]()){_0x31612d=!0x0;break;}if(!_0x50f222(_0x3d5ffa[_0x36507e],_0x1fbb6a[_0x36507e])&&Object[_0x18a5('0xc5')](_0x3d5ffa[_0x36507e])[_0x18a5('0xbb')]>0x0){_0x31612d=!0x0;break;}}_0x31612d||(_0x31612d=_0x44a3c9[_0x18a5('0xef')](_0x327ffb=>!this['editor']['model'][_0x18a5('0x3c')]['getRoot'](_0x327ffb))),_0x31612d&&_0x3519c4(_0x18a5('0x101'),{'editorData':_0x29a2bc,'editorRootsAttributes':_0x3d5ffa,'revisionData':_0x16029e,'revisionRootsAttributes':_0x1fbb6a}),this[_0x18a5('0x46')][_0x18a5('0x2e')]['set']('initialData',_0x16029e),this[_0x18a5('0x46')]['config'][_0x18a5('0xc6')](_0x18a5('0xb2'),_0x1fbb6a);}[_0x18a5('0x16')](){if(!this[_0x18a5('0x8a')]){const _0x5940b8=this[_0x18a5('0x46')][_0x18a5('0xad')]['get']('PendingActions');this[_0x18a5('0x8a')]=_0x5940b8['add'](_0x18fdb9(this[_0x18a5('0x46')]['locale'],_0x18a5('0x82')));}}[_0x18a5('0xa5')](){this[_0x18a5('0x8a')]&&(this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')]('PendingActions')['remove'](this[_0x18a5('0x8a')]),this['_pendingAction']=null);}[_0x18a5('0x33')](_0x1fb6d5){const _0x589f27=this[_0x18a5('0x5f')]['getRevisions']();_0x589f27[_0x18a5('0xf9')]();let _0xbd5733=0x0;for(;_0xbd5733<_0x589f27[_0x18a5('0xbb')];){const _0x12bcb5=_0x589f27[_0xbd5733];if(_0x12bcb5===this[_0x18a5('0x53')]){_0xbd5733++;continue;}if(_0x12bcb5['id']===this[_0x18a5('0xc8')])break;const _0x105932=_0x1fb6d5[_0x18a5('0x44')]-_0x12bcb5['toVersion']||_0x1fb6d5[_0x18a5('0xaf')]-_0x12bcb5[_0x18a5('0xaf')];if(_0x105932>0x0)break;if(_0x105932<0x0)_0xbd5733++;else{if(!_0x1fb6d5[_0x18a5('0x78')]&&_0x12bcb5['creator'])break;if(_0x12bcb5[_0x18a5('0x78')]||!_0x1fb6d5[_0x18a5('0x78')]){if(_0x1fb6d5[_0x18a5('0x6b')]>_0x12bcb5[_0x18a5('0x6b')])break;_0xbd5733++;}else _0xbd5733++;}}return _0xbd5733;}[_0x18a5('0xb6')](_0x344043){const _0x4b7dc4=this['repository'][_0x18a5('0x84')](_0x344043['id']);if(_0x344043[_0x18a5('0x6b')]&&(_0x344043[_0x18a5('0x6b')]=new Date(_0x344043['createdAt'])),_0x344043['authorsIds']){const _0x215035=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'));_0x344043[_0x18a5('0xae')]=_0x344043[_0x18a5('0x63')][_0x18a5('0x2')](_0x3c119b=>_0x215035[_0x18a5('0x30')](_0x3c119b));}_0x4b7dc4[_0x18a5('0xbe')](_0x344043,!0x0);}[_0x18a5('0xf6')]({revision:_0x444822=null,from:_0x3f298f=null,to:_0x9d66e7=null}){_0x3f298f=null!==_0x3f298f?_0x3f298f:_0x444822[_0x18a5('0xaf')],_0x9d66e7=null!==_0x9d66e7?_0x9d66e7:_0x444822[_0x18a5('0x44')];const _0x1d99f7=this[_0x18a5('0x90')][_0x18a5('0xf8')](_0x3f298f,_0x9d66e7),_0x38d9c9={'diffData':_0x1d99f7[_0x18a5('0xd3')],'authorsIds':_0x1d99f7[_0x18a5('0x63')],'fromVersion':_0x3f298f,'toVersion':_0x9d66e7};if(!_0x444822||_0x9d66e7!==_0x444822[_0x18a5('0x44')]){const _0x1091e7=_0x9d66e7-0x1,_0x576fcf=this[_0x18a5('0x96')][_0x18a5('0x75')]['getOperation'](_0x1091e7);_0x38d9c9['createdAt']=_0x576fcf&&_0x576fcf[_0x18a5('0x6b')]||new Date();}if(this[_0x18a5('0xd')]&&_0x3f298f===this['_loadedStateData'][_0x18a5('0xaf')])for(const _0x7a0068 of this['_loadedStateData'][_0x18a5('0xae')])_0x38d9c9[_0x18a5('0x63')][_0x18a5('0x5d')](_0x7a0068['id'])||_0x38d9c9[_0x18a5('0x63')][_0x18a5('0xb7')](_0x7a0068['id']);return _0x38d9c9;}[_0x18a5('0xeb')](_0x2e852b){if(!_0x2e852b||_0x2e852b[_0x18a5('0xd3')])return Promise['resolve']();{const _0xd5b881=this[_0x18a5('0x46')][_0x18a5('0x2e')][_0x18a5('0xa8')](_0x18a5('0xb'));return this['adapter']['getRevision']({'channelId':_0xd5b881,'revisionId':_0x2e852b['id']})[_0x18a5('0xa3')](_0x42cc6e=>{_0x2e852b[_0x18a5('0xd3')]=_0x42cc6e[_0x18a5('0xd3')];});}}[_0x18a5('0x38')](_0x1209cf,_0x34443b,_0x470e6c){if(this[_0x18a5('0x6e')][_0x18a5('0x8')](_0x1209cf)){const _0x26e5d8=this[_0x18a5('0x6e')][_0x18a5('0xa8')](_0x1209cf);_0x34443b=_0x470e6c?{..._0x26e5d8,..._0x34443b}:{..._0x34443b,..._0x26e5d8};}this['_bufferedUpdates'][_0x18a5('0xc6')](_0x1209cf,_0x34443b);}['_getFromVersion'](_0x216b9e){const _0x27ce6a=this['repository'][_0x18a5('0x43')]();_0x27ce6a[_0x18a5('0xf9')](),_0x27ce6a[_0x18a5('0x17')]();const _0x1bf070=_0x27ce6a[_0x18a5('0xc')](_0x42474b=>_0x42474b[_0x18a5('0x44')]<=_0x216b9e)[_0x18a5('0x44')];return _0x1bf070<this[_0x18a5('0xea')]?this[_0x18a5('0xea')]:_0x1bf070;}[_0x18a5('0x32')](_0x240e2e){const _0x3fb0f7=this[_0x18a5('0x5f')][_0x18a5('0x84')](this[_0x18a5('0x5f')][_0x18a5('0xbb')]-0x1);if(_0x3fb0f7)this[_0x18a5('0xc8')]=_0x3fb0f7['id'];else{const _0x4645cf=!this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x67')]['find'](_0x2ea01c=>this[_0x18a5('0x46')][_0x18a5('0x25')]['hasContent'](_0x2ea01c)),_0x28f3aa=this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x1ba35d=_0x18fdb9(this[_0x18a5('0x46')][_0x18a5('0xca')],_0x4645cf?_0x18a5('0x91'):_0x18a5('0x20'));this[_0x18a5('0x4')]({'from':_0x240e2e,'to':_0x240e2e,'id':this[_0x18a5('0xc8')],'name':_0x1ba35d,'creatorId':_0x28f3aa});}}[_0x18a5('0xfd')](_0x166f1b){const _0x507062=this[_0x18a5('0x96')][_0x18a5('0x79')]();this[_0x18a5('0x53')]=this['repository'][_0x18a5('0x84')](_0x507062),this[_0x18a5('0x53')]||(this[_0x18a5('0x53')]=this[_0x18a5('0x4')]({'from':_0x166f1b,'to':_0x166f1b,'id':_0x507062,'name':'','creatorId':null}));}['_makeRevision']({name:_0xfb5c88,from:_0x1b1b9e,to:_0x1b77c8,creatorId:_0x571e2e,id:_0x2de521}){const _0x41ec28=this[_0x18a5('0xf6')]({'from':_0x1b1b9e,'to':_0x1b77c8});_0x41ec28[_0x18a5('0xb0')]=_0xfb5c88,_0x41ec28[_0x18a5('0x6f')]=_0x571e2e,_0x41ec28['id']=_0x2de521;const _0x5b4087=this['addRevisionData'](_0x41ec28);return this['adapter']&&this['_bufferUpdate'](_0x41ec28['id'],_0x41ec28,!0x0),_0x5b4087;}['_setConversion'](){this[_0x18a5('0x46')][_0x18a5('0xe')][_0x18a5('0x1f')](_0x18a5('0x60'))[_0x18a5('0x36')]({'model':'revision'});}['_removeRevisionMarkers'](_0x4f739c){return(_0x4f739c=_0x4f739c['filter'](_0x4a34f2=>!_0x4a34f2[_0x18a5('0xb0')]||_0x18a5('0x72')!==_0x4a34f2[_0x18a5('0xb0')]&&_0x18a5('0xb3')!==_0x4a34f2['name']))[_0x18a5('0xce')](_0x11e99c=>{_0x18a5('0xd7')!=typeof _0x11e99c&&(_0x11e99c[_0x18a5('0xfb')]=this[_0x18a5('0xe1')](_0x11e99c[_0x18a5('0xfb')]),_0x11e99c[_0x18a5('0x89')]=_0x11e99c['attributes']['filter'](_0x5e641e=>!_0x5e641e[0x0]['startsWith']('data-revision-')));}),_0x4f739c;}}function J(_0x299e5f,_0x4f76f9){const _0x324982=_0x4f76f9['editing'][_0x18a5('0x42')][_0x18a5('0x3c')];if(_0x18a5('0xd7')==typeof _0x299e5f)return new _0x585615(_0x324982,_0x299e5f);{const _0x18bb2c=_0x299e5f[_0x18a5('0xfb')]['map'](_0x111ed2=>J(_0x111ed2,_0x4f76f9));return new(B[_0x299e5f[(_0x18a5('0xe9'))]]||_0x1e0a6b)(_0x324982,_0x299e5f[_0x18a5('0xb0')],_0x299e5f[_0x18a5('0x89')],_0x18bb2c);}}class H{constructor(_0x20c8ad){this['editor']=_0x20c8ad,this['_savedMetaData']=new Map(),this[_0x18a5('0xf')]=-0x1,this[_0x18a5('0xfa')]=-0x1,this[_0x18a5('0xfc')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x18a5('0xe7')]=new Map(),this[_0x18a5('0xd6')]=new Map(),this['_idsRoots']=new Map(),this[_0x18a5('0x95')]=new Map(),this[_0x18a5('0x41')]=new Map(),this[_0x18a5('0x45')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x10d34a){this[_0x18a5('0x22')]=_0x10d34a;const _0x2e885d=new Map(),_0x3e437f=new Map(),_0x24ff10=this['editor'][_0x18a5('0x25')][_0x18a5('0x3c')][_0x18a5('0x67')][_0x18a5('0x2')](_0x2c7cbb=>_0x2c7cbb[_0x18a5('0x3e')]);for(const _0xf2e391 of _0x24ff10){const _0x2d5a13=this[_0x18a5('0x46')][_0x18a5('0x25')][_0x18a5('0x3c')]['getRoot'](_0xf2e391),_0x14b5aa=q(_0x2d5a13);_0x2e885d[_0x18a5('0xc6')](_0xf2e391,_0x14b5aa),_0x3e437f['set'](_0xf2e391,Object['fromEntries'](_0x2d5a13[_0x18a5('0x5a')]()));}const _0x3dd944=Array[_0x18a5('0x7d')](this[_0x18a5('0x46')][_0x18a5('0x25')]['markers'])[_0x18a5('0x2')](_0x553830=>[_0x553830[_0x18a5('0xb0')],_0x553830[_0x18a5('0xee')]()]),_0x4ddbdf=this[_0x18a5('0x22')][_0x18a5('0xa6')];this[_0x18a5('0x4b')](_0x4ddbdf,_0x2e885d,_0x3dd944,_0x3e437f),this[_0x18a5('0x49')]=this['_revisionId'];const _0x92a1c1=new Map(),_0x5c070f=new Map();for(const _0x330ae8 of _0x24ff10){const _0x3216c5=G(_0x330ae8);_0x92a1c1['set'](_0x330ae8,_0x3216c5),_0x5c070f['set'](_0x330ae8,{});}this[_0x18a5('0x4b')](Number[_0x18a5('0x6d')],_0x92a1c1,[],_0x5c070f);}[_0x18a5('0xf8')](_0xfb863c,_0x4433a7){if(this['_lastFrom']===_0xfb863c&&this[_0x18a5('0xfa')]<=_0x4433a7)this[_0x18a5('0x7c')][_0x18a5('0x65')]>0x1&&this[_0x18a5('0x83')](this[_0x18a5('0xfa')]),this['_applyOperations'](this[_0x18a5('0xfa')],_0x4433a7,!0x0);else{if(!this[_0x18a5('0x7c')][_0x18a5('0x8')](_0xfb863c)){const _0xfb17c3=this[_0x18a5('0x2b')](_0xfb863c);this[_0x18a5('0xa0')](_0xfb17c3,_0xfb863c,!0x1);}this[_0x18a5('0xa0')](_0xfb863c,_0x4433a7,!0x0);}return this[_0x18a5('0xf')]=_0xfb863c,this[_0x18a5('0xfa')]=_0x4433a7,this[_0x18a5('0x54')]();}['loadState'](_0x7c141f){this['_reset'](),this[_0x18a5('0xf')]=_0x7c141f['fromVersion'],this[_0x18a5('0xfa')]=_0x7c141f[_0x18a5('0x44')];for(const _0x294a9b in _0x7c141f['diffData']){const _0x2eafcf=_0x7c141f['diffData'][_0x294a9b][_0x18a5('0xc9')],_0x23dd7d=_0x158255(_0x7c141f[_0x18a5('0xd3')][_0x294a9b][_0x18a5('0x11')])||{},_0xf50d0b=this[_0x18a5('0xd2')](_0x7c141f[_0x18a5('0xd3')][_0x294a9b][_0x18a5('0x8d')]);_0xf50d0b['rootName']=_0x294a9b,_0xf50d0b[_0x18a5('0x85')]=!_0x2eafcf||!_0x2eafcf[_0x18a5('0x7b')],_0xf50d0b[_0x18a5('0x7b')]=()=>_0xf50d0b[_0x18a5('0x85')],this[_0x18a5('0xe7')][_0x18a5('0xc6')](_0x294a9b,_0xf50d0b),this[_0x18a5('0xd6')][_0x18a5('0xc6')](_0x294a9b,_0x23dd7d),_0x2eafcf&&this[_0x18a5('0x86')][_0x18a5('0xc6')](_0x294a9b,_0x2eafcf);const _0x5a98e6=this[_0x18a5('0x5')](_0xf50d0b);this['_baseIdsRoots'][_0x18a5('0xc6')](_0x294a9b,_0x5a98e6);for(const [_0x180b14,_0x2a40b6]of _0xf50d0b[_0x18a5('0x3f')]){if(!_0x180b14[_0x18a5('0x5e')](_0x18a5('0xf5')))continue;const _0x3d6a05=_0x180b14[_0x18a5('0xcd')](':')[0x2];for(const _0x14241a of _0x2a40b6[_0x18a5('0x3d')]({'singleCharacters':!0x0})){const _0x3b3c38=this[_0x18a5('0x51')](_0x14241a),_0x3b3302=_0x18a5('0x27')==_0x14241a[_0x18a5('0xe9')]?_0x14241a[_0x18a5('0x87')][_0x18a5('0xe2')][_0x18a5('0x3b')](0x0,-0x1):_0x14241a[_0x18a5('0x87')]['path'],_0x58f075=_0x5a98e6[_0x18a5('0x97')](_0x3b3302)[_0x18a5('0xc3')](_0x3b3c38);this[_0x18a5('0x41')]['set'](_0x58f075,{'userId':_0x3d6a05});}}}this[_0x18a5('0x49')]=this[_0x18a5('0xd0')];const _0x577027=[...Array(this[_0x18a5('0xd0')])[_0x18a5('0xc5')]()][_0x18a5('0x3b')](0x1)['filter'](_0x4f97fe=>!this[_0x18a5('0x41')][_0x18a5('0x8')](_0x4f97fe));let _0x2400b5=0x0;const _0x41803d=new Map();for(const _0x8d9d8d in _0x7c141f[_0x18a5('0xd3')]){const _0x2c0597=_0x7c141f[_0x18a5('0xd3')][_0x8d9d8d]['attachChange'],_0x3ba7f1=_0x158255(_0x7c141f[_0x18a5('0xd3')][_0x8d9d8d][_0x18a5('0x2d')])||{},_0xf70a1a=this[_0x18a5('0xd2')](_0x7c141f[_0x18a5('0xd3')][_0x8d9d8d]['insertions']);_0xf70a1a[_0x18a5('0x3e')]=_0x8d9d8d,_0xf70a1a[_0x18a5('0x85')]=!_0x2c0597||_0x2c0597['isAttached'],_0xf70a1a[_0x18a5('0x7b')]=()=>_0xf70a1a[_0x18a5('0x85')],this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x8d9d8d,_0xf70a1a),this[_0x18a5('0x94')][_0x18a5('0xc6')](_0x8d9d8d,_0x3ba7f1);const _0x41cf2f=this[_0x18a5('0x5')](_0xf70a1a,Number[_0x18a5('0x6d')]);this[_0x18a5('0x31')]['set'](_0x8d9d8d,_0x41cf2f),_0x41803d[_0x18a5('0xc6')](_0x8d9d8d,_0xf70a1a[_0x18a5('0x7b')]()?_0x3ba7f1:{});for(const [_0x3b33fc,_0x369f5d]of _0xf70a1a[_0x18a5('0x3f')]){if(!_0x3b33fc[_0x18a5('0x5e')](_0x18a5('0xf5')))continue;const _0x184206=_0x3b33fc[_0x18a5('0xcd')](':')[0x2];for(const _0x75b5fc of _0x369f5d['getWalker']({'singleCharacters':!0x0})){const _0x16924c=this[_0x18a5('0x51')](_0x75b5fc),_0x1d62aa=this['_revisionId']++,_0x42cc12='elementEnd'==_0x75b5fc[_0x18a5('0xe9')]?_0x75b5fc['previousPosition'][_0x18a5('0xe2')][_0x18a5('0x3b')](0x0,-0x1):_0x75b5fc[_0x18a5('0x87')][_0x18a5('0xe2')];_0x41cf2f[_0x18a5('0x97')](_0x42cc12)['_setAttribute'](_0x16924c,_0x1d62aa),this['_touched'][_0x18a5('0xc6')](_0x1d62aa,{'userId':_0x184206});}}for(const _0x121ac1 of this[_0x18a5('0x46')][_0x18a5('0x25')]['createRangeIn'](_0xf70a1a)[_0x18a5('0x3d')]({'singleCharacters':!0x0})){const _0x22c2fe=this[_0x18a5('0x51')](_0x121ac1),_0x4e2268=_0x18a5('0x27')==_0x121ac1['type']?_0x121ac1['previousPosition']['path'][_0x18a5('0x3b')](0x0,-0x1):_0x121ac1[_0x18a5('0x87')][_0x18a5('0xe2')],_0x249820=_0x41cf2f[_0x18a5('0x97')](_0x4e2268);_0x249820['getAttribute'](_0x22c2fe)>0x0||_0x249820[_0x18a5('0x48')](_0x22c2fe,_0x577027[_0x2400b5++]);}for(const [_0x3ba39f,_0x22c60d]of _0xf70a1a[_0x18a5('0x3f')])_0x3ba39f[_0x18a5('0x5e')](_0x18a5('0xf5'))||this['_markers'][_0x18a5('0xc6')](_0x3ba39f,_0x22c60d);}const _0x4c7b88=G(_0x18a5('0x58'));this['_baseRoots'][_0x18a5('0xc6')]('$graveyard',_0x4c7b88),this[_0x18a5('0x95')][_0x18a5('0xc6')](_0x18a5('0x58'),this[_0x18a5('0x5')](_0x4c7b88,0x1));const _0x4c6cb8=G(_0x18a5('0x58'));this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x18a5('0x58'),_0x4c6cb8),this[_0x18a5('0x31')][_0x18a5('0xc6')]('$graveyard',this[_0x18a5('0x5')](_0x4c6cb8,0x1));const _0x597e5d=Array[_0x18a5('0x7d')](this[_0x18a5('0xfe')])[_0x18a5('0x2')](([_0xe17843,_0x3e4d26])=>[_0xe17843,q(_0x3e4d26)]);this[_0x18a5('0x4b')](this[_0x18a5('0xfa')],_0x597e5d,this[_0x18a5('0xfc')],_0x41803d);}[_0x18a5('0xd2')](_0x3db930){const _0x371b92=JSON['parse'](_0x3db930),_0x3b02e4=this[_0x18a5('0x46')][_0x18a5('0xb1')][_0x18a5('0x42')][_0x18a5('0x3c')],_0x31389c=new _0x3a7ce5(_0x3b02e4,_0x371b92['map'](_0x60bea6=>J(_0x60bea6,this[_0x18a5('0x46')])));return this[_0x18a5('0x46')][_0x18a5('0xde')][_0x18a5('0x12')](_0x31389c);}[_0x18a5('0x4b')](_0x5caa8d,_0x65c5d0,_0x84e5cb,_0x58ed56){const _0x3de103=new Map(_0x65c5d0),_0xd0a626=new Map(_0x158255(_0x58ed56)),_0x344a0c=new Map();for(const [_0x1438d3,_0x49d2ba]of _0x84e5cb)_0x344a0c['set'](_0x1438d3,{'start':_0x49d2ba[_0x18a5('0x4a')][_0x18a5('0x4e')](),'end':_0x49d2ba[_0x18a5('0x40')][_0x18a5('0x4e')](),'rootName':_0x49d2ba[_0x18a5('0x7')][_0x18a5('0x3e')]});this[_0x18a5('0x7c')][_0x18a5('0xc6')](_0x5caa8d,{'roots':_0x3de103,'markers':_0x344a0c,'rootsAttributes':_0xd0a626});}[_0x18a5('0x83')](_0x21695a){this[_0x18a5('0x7c')][_0x18a5('0x18')](_0x21695a);}[_0x18a5('0xda')](){this[_0x18a5('0x62')](),this[_0x18a5('0xf')]=-0x1,this[_0x18a5('0xfa')]=-0x1,this[_0x18a5('0x7c')][_0x18a5('0x1d')](),this[_0x18a5('0xd4')](this[_0x18a5('0x22')]);}[_0x18a5('0x62')](){this[_0x18a5('0x41')]['clear'](),this[_0x18a5('0x45')][_0x18a5('0x1d')](),this['_touchedRoots'][_0x18a5('0x1d')](),this[_0x18a5('0xfe')][_0x18a5('0x1d')](),this['_diffRootsAttributes'][_0x18a5('0x1d')](),this[_0x18a5('0xe7')][_0x18a5('0x1d')](),this['_baseRootsAttributes'][_0x18a5('0x1d')](),this[_0x18a5('0x31')][_0x18a5('0x1d')](),this[_0x18a5('0x95')][_0x18a5('0x1d')](),this[_0x18a5('0xfc')][_0x18a5('0x1d')](),this[_0x18a5('0xd0')]=0x1,this[_0x18a5('0x49')]=this[_0x18a5('0xd0')];}[_0x18a5('0x5')](_0x239567,_0xdee8b5=null){let _0x3b4ed1=null;_0x239567['is'](_0x18a5('0x100'))||(_0x3b4ed1=new _0x5f4c69(_0x239567['name'],{'vid_start':null===_0xdee8b5?this[_0x18a5('0xd0')]++:_0xdee8b5++}));const _0x2a5d82=[];for(const _0x582cf3 of _0x239567[_0x18a5('0x61')]())if(_0x582cf3['is'](_0x18a5('0x39'))){_0x2a5d82[_0x18a5('0xb7')](this[_0x18a5('0x5')](_0x582cf3,_0xdee8b5));const _0x30f177=_0x2a5d82[_0x2a5d82[_0x18a5('0xbb')]-0x1];null!==_0xdee8b5&&(_0xdee8b5=_0x30f177['is'](_0x18a5('0x39'),_0x18a5('0xa9'))?_0x30f177[_0x18a5('0xc3')](_0x18a5('0x29'))+0x1:_0x30f177['getAttribute'](_0x18a5('0xe6'))+0x1);}else for(let _0x1fe79b=0x0;_0x1fe79b<_0x582cf3[_0x18a5('0x56')];_0x1fe79b++)_0x2a5d82['push'](new _0x5f4c69(_0x18a5('0xa9'),{'vid':null===_0xdee8b5?this[_0x18a5('0xd0')]++:_0xdee8b5++}));if(_0x239567['is'](_0x18a5('0x100'))){const _0x56d17f=G(_0x239567[_0x18a5('0x3e')]);return _0x56d17f['_insertChild'](0x0,_0x2a5d82),_0x56d17f;}return _0x3b4ed1[_0x18a5('0x48')](_0x18a5('0xe6'),null===_0xdee8b5?this[_0x18a5('0xd0')]++:_0xdee8b5++),_0x3b4ed1['_insertChild'](0x0,_0x2a5d82),_0x3b4ed1;}[_0x18a5('0xa0')](_0x20cd69,_0x307bfb,_0x3e44ec){this[_0x18a5('0x62')]();const {roots:_0x593e47,markers:_0x11834b,rootsAttributes:_0x2c33d2}=this['_savedMetaData'][_0x18a5('0xa8')](_0x20cd69);this[_0x18a5('0xe7')]=new Map(_0x593e47),this[_0x18a5('0xd6')]=new Map(_0x158255(_0x2c33d2));for(const [_0x214523,_0x405a7f]of this[_0x18a5('0xe7')])if(_0x18a5('0x58')!==_0x214523&&(this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x214523,q(_0x405a7f)),this[_0x18a5('0x94')]=new Map(_0x158255(_0x2c33d2)),_0x3e44ec)){const _0x5050b0=this[_0x18a5('0xd0')];this[_0x18a5('0x31')][_0x18a5('0xc6')](_0x214523,this[_0x18a5('0x5')](_0x405a7f)),this['_baseIdsRoots'][_0x18a5('0xc6')](_0x214523,this[_0x18a5('0x5')](_0x405a7f,_0x5050b0));}this[_0x18a5('0x49')]=this['_revisionId'],this[_0x18a5('0xfe')][_0x18a5('0xc6')]('$graveyard',q(this[_0x18a5('0xe7')][_0x18a5('0xa8')](_0x18a5('0x58')))),_0x3e44ec&&this[_0x18a5('0x31')]['set'](_0x18a5('0x58'),this['_makeIdsRoot'](this['_baseRoots'][_0x18a5('0xa8')](_0x18a5('0x58'))));for(const [_0x14c994,_0x258fd7]of _0x11834b){const _0x2112c0=this[_0x18a5('0xe7')][_0x18a5('0xa8')](_0x258fd7[_0x18a5('0x3e')]),_0x393185=this['_diffRoots'][_0x18a5('0xa8')](_0x258fd7[_0x18a5('0x3e')]),_0x3a67c5=new _0x287ef(this['_fixPosition'](_0x258fd7[_0x18a5('0x4a')],_0x2112c0),this[_0x18a5('0xbd')](_0x258fd7['end'],_0x2112c0)),_0x21d912=this[_0x18a5('0xbc')](_0x3a67c5,_0x393185);_0x2112c0['markers'][_0x18a5('0xc6')](_0x14c994,_0x3a67c5),this[_0x18a5('0xfc')][_0x18a5('0xc6')](_0x14c994,_0x21d912);}this[_0x18a5('0x15')](_0x20cd69,_0x307bfb,_0x3e44ec);}[_0x18a5('0x15')](_0x3596e2,_0x3c7152,_0x60108a){for(const _0x531c8e of this[_0x18a5('0x22')]['getOperations'](_0x3596e2,_0x3c7152))this[_0x18a5('0xc4')](_0x531c8e,_0x60108a);for(const _0x2f5ea9 of this[_0x18a5('0xfe')][_0x18a5('0xc0')]())_0x2f5ea9['markers']['clear']();for(const [_0x4a7668,_0x3b0cae]of this[_0x18a5('0xfc')]){this[_0x18a5('0xfe')]['get'](_0x3b0cae[_0x18a5('0x7')][_0x18a5('0x3e')])[_0x18a5('0x3f')][_0x18a5('0xc6')](_0x4a7668,_0x3b0cae[_0x18a5('0x4e')]());}const _0x18d0bd=new Map(),_0xd7005e=new Map();for(const [_0x490caa,_0x5c4306]of this[_0x18a5('0xfe')])_0x18d0bd[_0x18a5('0xc6')](_0x490caa,q(_0x5c4306)),_0xd7005e['set'](_0x490caa,this['_diffRootsAttributes'][_0x18a5('0xa8')](_0x490caa));this[_0x18a5('0x4b')](_0x3c7152,_0x18d0bd,this['_markers'],_0xd7005e);}[_0x18a5('0x2b')](_0x2e3f81){const _0x8b218c=Array[_0x18a5('0x7d')](this[_0x18a5('0x7c')][_0x18a5('0xc5')]());_0x8b218c[_0x18a5('0x8b')]((_0x538f46,_0x5d7b4b)=>_0x538f46-_0x5d7b4b),_0x8b218c['reverse']();for(const _0x1de700 of _0x8b218c)if(_0x1de700<_0x2e3f81)return _0x1de700;return Number[_0x18a5('0x6d')];}[_0x18a5('0x6')](_0x48b690,_0x484d8b){const _0x218493=Array[_0x18a5('0x7d')](_0x484d8b[_0x18a5('0x3f')])[_0x18a5('0x2')](([_0xbc32ce,_0x38396b])=>[_0xbc32ce,this['_fixRange'](_0x38396b,_0x48b690)]);_0x48b690[_0x18a5('0x3f')]=new Map(_0x218493);}['_transformMarkers'](_0x2df58e){for(const _0x21b075 of this['_markers']['values']()){const _0x53cc8c=_0x21b075[_0x18a5('0xdb')](_0x2df58e),_0x3a76e6=_0x287ef['_createFromRanges'](_0x53cc8c);_0x21b075['start']=_0x3a76e6[_0x18a5('0x4a')],_0x21b075['end']=_0x3a76e6[_0x18a5('0x40')];}}[_0x18a5('0xc4')](_0x304b77,_0x392f95){if('addRoot'==_0x304b77[_0x18a5('0xe9')]||_0x18a5('0xbf')==_0x304b77[_0x18a5('0xe9')])return void this[_0x18a5('0xab')](_0x304b77,_0x392f95);if(_0x18a5('0x14')==_0x304b77[_0x18a5('0xe9')]){const _0x569561=_0x304b77['position'][_0x18a5('0x7')][_0x18a5('0x3e')];this[_0x18a5('0xfe')][_0x18a5('0x8')](_0x569561)||(this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x569561,G(_0x569561,!0x0)),this[_0x18a5('0x94')][_0x18a5('0xc6')](_0x569561,{}),_0x392f95&&this[_0x18a5('0x31')][_0x18a5('0xc6')](_0x569561,G(_0x569561,!0x0)));}else{if(_0x18a5('0xc1')==_0x304b77['type']||_0x18a5('0xac')==_0x304b77['type']||'changeRootAttribute'==_0x304b77['type'])return void this[_0x18a5('0x13')](_0x304b77);}const _0x207514=this[_0x18a5('0x5c')](_0x304b77,this[_0x18a5('0xfe')]);if(_0x18a5('0x5b')!==_0x304b77[_0x18a5('0xe9')]&&(_0x207514[_0x18a5('0xb8')](),this['_transformMarkers'](_0x207514)),_0x392f95)switch(_0x207514[_0x18a5('0xe9')]){case _0x18a5('0x14'):this[_0x18a5('0x34')](_0x304b77);break;case _0x18a5('0x66'):case'remove':case _0x18a5('0xa'):this[_0x18a5('0x2a')](_0x304b77);break;case _0x18a5('0x24'):this[_0x18a5('0xe4')](_0x304b77);break;case'split':this['_handleSplitOperation'](_0x304b77);break;case _0x18a5('0x5b'):this['_handleMarkerOperation'](_0x304b77);}}[_0x18a5('0x5c')](_0x39840c,_0x3bb3f0){const _0x3c468a=_0x39840c[_0x18a5('0x4e')]();return _0x3c468a[_0x18a5('0x47')]=_0x39840c['_authorId'],this[_0x18a5('0xf4')](_0x3c468a,_0x3bb3f0),_0x3c468a;}[_0x18a5('0x93')](_0x59bada){return _0x59bada[_0x18a5('0x2')](_0x45cf0e=>{const _0x1f0ee6=this[_0x18a5('0x51')](_0x45cf0e);return Number(_0x45cf0e[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x1f0ee6));});}['_generateTape'](_0x391aee,_0x46c40d){if(_0x391aee['is']('element',_0x18a5('0xa9')))_0x46c40d[_0x18a5('0xb7')]({'item':_0x391aee,'type':_0x18a5('0xf2')});else{_0x391aee['is'](_0x18a5('0x39'))&&_0x46c40d[_0x18a5('0xb7')]({'item':_0x391aee,'type':_0x18a5('0xba')});for(const _0x359f52 of _0x391aee['getChildren']())this[_0x18a5('0xff')](_0x359f52,_0x46c40d);_0x391aee['is'](_0x18a5('0x39'))&&_0x46c40d[_0x18a5('0xb7')]({'item':_0x391aee,'type':_0x18a5('0x27')});}return _0x46c40d;}['_getState'](){const _0x55aae7=new Map(this[_0x18a5('0x41')]),_0x5e8eac=new Map(_0x55aae7),_0x209f35=new Map(),_0x47fd42={'insertions':{},'deletions':{}},_0x4d65c8={'insertions':{},'deletions':{}},_0x196c4d=new Map(),_0x1ebe17=new Set([...this[_0x18a5('0xe7')][_0x18a5('0xc5')](),...this['_diffRoots']['keys']()]);_0x1ebe17[_0x18a5('0x18')](_0x18a5('0x58'));for(const _0x457ad3 of _0x1ebe17){const _0x3e43c8=this[_0x18a5('0xfe')][_0x18a5('0xa8')](_0x457ad3)||G(_0x457ad3,!0x1),_0x5474e6=this[_0x18a5('0xe7')][_0x18a5('0xa8')](_0x457ad3)||G(_0x457ad3,!0x1);_0x3e43c8[_0x18a5('0x7b')]()||_0x5474e6[_0x18a5('0x7b')]()?(_0x47fd42[_0x18a5('0x74')][_0x457ad3]=q(_0x3e43c8),_0x47fd42[_0x18a5('0x8d')][_0x457ad3]=q(_0x5474e6),this[_0x18a5('0x6')](_0x47fd42[_0x18a5('0x8d')][_0x457ad3],_0x5474e6),this[_0x18a5('0x6')](_0x47fd42[_0x18a5('0x74')][_0x457ad3],_0x3e43c8),_0x4d65c8[_0x18a5('0x74')][_0x457ad3]=this['_generateTape'](this[_0x18a5('0x31')]['get'](_0x457ad3),[]),_0x4d65c8['deletions'][_0x457ad3]=this[_0x18a5('0xff')](this[_0x18a5('0x95')][_0x18a5('0xa8')](_0x457ad3)||G(_0x457ad3,!0x1),[])):_0x1ebe17[_0x18a5('0x18')](_0x457ad3);}for(const _0x14a382 of _0x1ebe17){const _0x2bef2b=_0x4d65c8[_0x18a5('0x74')][_0x14a382];for(const _0x12eb6b of _0x2bef2b){const _0x221c3c=this[_0x18a5('0x51')](_0x12eb6b),_0x52f160=_0x12eb6b[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x221c3c);_0x5e8eac['delete'](_0x52f160),_0x52f160>=this[_0x18a5('0x49')]&&_0x209f35['set'](_0x52f160,_0x55aae7[_0x18a5('0xa8')](_0x52f160));}}for(const _0x34a953 of _0x1ebe17){const _0x3d401c=_0x4d65c8['insertions'][_0x34a953],_0x36a42b=this[_0x18a5('0x93')](_0x4d65c8['deletions'][_0x34a953]);let _0x30d8c4=0x0;for(const _0x1f556a of _0x3d401c){const _0x1fbd59=this[_0x18a5('0x51')](_0x1f556a),_0x5deee6=_0x1f556a[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x1fbd59);if(!_0x209f35['has'](_0x5deee6)&&!_0x196c4d['has'](_0x5deee6)){if(_0x5e8eac[_0x18a5('0x8')](_0x5deee6))_0x30d8c4++;else{if(_0x5deee6!=_0x36a42b[_0x30d8c4]){const _0x196a6a=_0x55aae7[_0x18a5('0xa8')](_0x5deee6)||_0x55aae7[_0x18a5('0xa8')](_0x36a42b[_0x30d8c4]);for(;_0x5deee6!=_0x36a42b[_0x30d8c4];)_0x5e8eac[_0x18a5('0x8')](_0x36a42b[_0x30d8c4])||(_0x196c4d[_0x18a5('0xc6')](_0x36a42b[_0x30d8c4],_0x196a6a),_0x55aae7['set'](_0x36a42b[_0x30d8c4],_0x196a6a)),_0x30d8c4++;}_0x30d8c4++;}}}}for(const _0x3c12bf of _0x1ebe17){const _0x584ae4=_0x4d65c8[_0x18a5('0x74')][_0x3c12bf];for(const _0x2d599a of _0x584ae4){const _0x6d1118=this[_0x18a5('0x51')](_0x2d599a),_0x5c6cd2=_0x2d599a['item'][_0x18a5('0xc3')](_0x6d1118);if(_0x196c4d['has'](_0x5c6cd2)){const _0x24ecd2=_0x196c4d[_0x18a5('0xa8')](_0x5c6cd2);_0x5e8eac[_0x18a5('0x8')](_0x5c6cd2)||_0x5e8eac[_0x18a5('0xc6')](_0x5c6cd2,{..._0x24ecd2}),_0x209f35['set'](_0x5c6cd2,{..._0x24ecd2});}}}for(const _0x2940e2 of _0x5e8eac['keys']())_0x2940e2>=this[_0x18a5('0x49')]&&_0x5e8eac['delete'](_0x2940e2);const _0x4a2f4a=new Map();for(const _0x547aff of _0x1ebe17){let _0x46f0b7=_0x4d65c8[_0x18a5('0x74')][_0x547aff];for(const _0x17e483 of _0x46f0b7)if(_0x17e483[_0x18a5('0xaa')]['is'](_0x18a5('0x39'),_0x18a5('0xf1'))){const _0x3d9325=this[_0x18a5('0x51')](_0x17e483),_0x1d47ee=_0x17e483[_0x18a5('0xaa')]['getAttribute'](_0x3d9325);if(_0x209f35[_0x18a5('0x8')](_0x1d47ee)){const _0x4f4076=_0x17e483[_0x18a5('0xaa')]['parent'][_0x18a5('0x1c')]['getAttribute'](_0x18a5('0xe5')),_0x17e5e6=_0x4a2f4a[_0x18a5('0xa8')](_0x4f4076)||new Set();_0x17e5e6['add'](_0x209f35[_0x18a5('0xa8')](_0x1d47ee)[_0x18a5('0x23')]),_0x4a2f4a[_0x18a5('0xc6')](_0x4f4076,_0x17e5e6);}}_0x46f0b7=_0x4d65c8['deletions'][_0x547aff];for(const _0x30b9c0 of _0x46f0b7)if(_0x30b9c0[_0x18a5('0xaa')]['is'](_0x18a5('0x39'),'tableCell')){const _0x255254=this['_getVidAttributeName'](_0x30b9c0),_0x773dd1=_0x30b9c0[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x255254);if(_0x5e8eac[_0x18a5('0x8')](_0x773dd1)){const _0x3fbb35=_0x30b9c0[_0x18a5('0xaa')][_0x18a5('0x1c')][_0x18a5('0x1c')]['getAttribute'](_0x18a5('0xe5')),_0x43a53c=_0x4a2f4a[_0x18a5('0xa8')](_0x3fbb35)||new Set();_0x43a53c['add'](_0x5e8eac['get'](_0x773dd1)[_0x18a5('0x23')]),_0x4a2f4a[_0x18a5('0xc6')](_0x3fbb35,_0x43a53c);}}for(const _0x562fdd of _0x4a2f4a[_0x18a5('0xc5')]())(_0x209f35[_0x18a5('0x8')](_0x562fdd)||_0x5e8eac[_0x18a5('0x8')](_0x562fdd))&&_0x4a2f4a['delete'](_0x562fdd);}for(const _0x52dc19 of _0x1ebe17){const _0x577b1f=_0x4d65c8[_0x18a5('0x74')][_0x52dc19];let _0x560a74=null,_0x545b34=null;for(const _0x24b99e of _0x577b1f){const _0x5a02f9=this[_0x18a5('0x51')](_0x24b99e),_0x46cfa8=_0x24b99e[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x5a02f9),_0xfe6f42=_0x4a2f4a['get'](_0x46cfa8);_0xfe6f42&&_0x18a5('0xba')==_0x24b99e[_0x18a5('0xe9')]&&(_0x560a74=Array[_0x18a5('0x7d')](_0xfe6f42)[0x0],_0x545b34=_0x24b99e[_0x18a5('0xaa')][_0x18a5('0xc3')](_0x18a5('0xe6'))),_0x560a74&&(_0x5e8eac[_0x18a5('0xc6')](_0x46cfa8,{'userId':_0x560a74}),_0x209f35[_0x18a5('0xc6')](_0x46cfa8,{'userId':_0x560a74})),_0x46cfa8==_0x545b34&&(_0x560a74=null,_0x545b34=null);}}const _0x25e1e0={},_0x4974a8=new Set();for(const _0x5b1560 of _0x1ebe17){const _0x1da87f=_0x47fd42[_0x18a5('0x8d')][_0x5b1560],_0x25bb59=_0x47fd42['insertions'][_0x5b1560];for(const {userId:_0x4267d7}of this['_touchedMarkers'][_0x18a5('0xc0')]())null!==_0x4267d7&&_0x4974a8[_0x18a5('0x59')](_0x4267d7);for(const {userId:_0x17a0fc}of this[_0x18a5('0x86')][_0x18a5('0xc0')]())null!==_0x17a0fc&&_0x4974a8[_0x18a5('0x59')](_0x17a0fc);this[_0x18a5('0xe0')](_0x25bb59,_0x4d65c8[_0x18a5('0x74')][_0x5b1560],_0x209f35,_0x18a5('0xf0'),_0x4974a8),this[_0x18a5('0xe0')](_0x1da87f,_0x4d65c8['deletions'][_0x5b1560],_0x5e8eac,'deletion',_0x4974a8),_0x25e1e0[_0x5b1560]={'insertions':this[_0x18a5('0xc2')](_0x25bb59),'deletions':this[_0x18a5('0xc2')](_0x1da87f),'attachChange':this[_0x18a5('0x86')][_0x18a5('0xa8')](_0x5b1560)||null,'attributesBefore':_0x158255(this['_baseRootsAttributes'][_0x18a5('0xa8')](_0x5b1560))||{},'attributesAfter':_0x158255(this[_0x18a5('0x94')][_0x18a5('0xa8')](_0x5b1560))};}return{'diffData':_0x25e1e0,'authorsIds':Array['from'](_0x4974a8)};}[_0x18a5('0x8e')](_0x1869b6){for(const [,_0x460add]of _0x1869b6[_0x18a5('0x3f')]){const _0x162b89=_0x460add[_0x18a5('0x4a')][_0x18a5('0x55')]()[_0x18a5('0xdf')](_0x20fe87=>'tableCell'==_0x20fe87['name']);for(const _0xe587f3 of _0x162b89)0x1==_0xe587f3[_0x18a5('0x6c')]&&_0xe587f3[_0x18a5('0x3a')](0x0)['is']('element',_0x18a5('0x4f'))&&_0xe587f3[_0x18a5('0x3a')](0x0)[_0x18a5('0x48')](_0x18a5('0xd9'),!0x0);}}[_0x18a5('0xc2')](_0x1e7968){this[_0x18a5('0x8e')](_0x1e7968);const _0x57ab8d=this[_0x18a5('0x46')]['data']['toView'](_0x1e7968,{}),_0xa2f05b=Array[_0x18a5('0x7d')](_0x57ab8d[_0x18a5('0x61')]())['map'](_0x16b104=>this[_0x18a5('0x70')](_0x16b104));return JSON[_0x18a5('0xd5')](_0xa2f05b);}['_getViewJson'](_0x375054){if(_0x375054['is'](_0x18a5('0xa9')))return _0x375054[_0x18a5('0xde')];{const _0x1c44d1=_0x375054;return{'type':Object[_0x18a5('0xc5')](B)['find'](_0x234c40=>_0x375054 instanceof B[_0x234c40]),'name':_0x1c44d1[_0x18a5('0xb0')],'attributes':Array['from'](_0x1c44d1['getAttributes']()),'children':Array[_0x18a5('0x7d')](_0x1c44d1[_0x18a5('0x61')]())[_0x18a5('0x2')](_0x3ffbf6=>this[_0x18a5('0x70')](_0x3ffbf6))};}}[_0x18a5('0xe0')](_0x1aa355,_0x524f83,_0x5a635e,_0x15c0ad,_0x5a7555){let _0x35d79d=null,_0x366620=null,_0x3f245f=0x0;const _0xb61c3f=this[_0x18a5('0x46')][_0x18a5('0x25')];for(let _0x18aedc=0x0;_0x18aedc<_0x524f83[_0x18a5('0xbb')];_0x18aedc++){const _0x6eb9=this['_getVidAttributeName'](_0x524f83[_0x18aedc]),_0x463cbc=_0x524f83[_0x18aedc][_0x18a5('0xaa')][_0x18a5('0xc3')](_0x6eb9),_0x461282=_0x5a635e[_0x18a5('0xa8')](_0x463cbc),_0x5e86fa=_0x18aedc==_0x524f83[_0x18a5('0xbb')]-0x1;(!_0x35d79d&&_0x461282&&(_0x35d79d=_0x461282,_0x366620=_0x524f83[_0x18aedc]),_0x35d79d&&(!_0x461282||_0x461282[_0x18a5('0x23')]!=_0x35d79d[_0x18a5('0x23')]))&&(_0x11e719(_0x461282,L(_0x366620,_0x1aa355,_0xb61c3f),L(_0x524f83[_0x18aedc],_0x1aa355,_0xb61c3f)),_0x35d79d=_0x461282||null,_0x366620=_0x461282?_0x524f83[_0x18aedc]:null),_0x35d79d&&_0x5e86fa&&_0x11e719(_0x461282,L(_0x366620,_0x1aa355,_0xb61c3f),W(_0x524f83[_0x18aedc],_0x1aa355,_0xb61c3f));}function _0x11e719(_0x4c1475,_0x130930,_0xe4df92){const _0x43b641=_0x35d79d['userId'],_0x2503ff='revision:'+_0x15c0ad+':'+_0x43b641+':'+_0x3f245f++,_0x460f18=_0xb61c3f['createRange'](_0x130930,_0xe4df92);_0x1aa355[_0x18a5('0x3f')][_0x18a5('0xc6')](_0x2503ff,_0x460f18),null!==_0x43b641&&_0x5a7555[_0x18a5('0x59')](_0x43b641);}}[_0x18a5('0x51')](_0xb4821f){switch(_0xb4821f['type']){case _0x18a5('0xba'):return _0x18a5('0xe5');case _0x18a5('0x27'):return _0x18a5('0xe6');default:return _0x18a5('0x29');}}['_fixOperation'](_0x1f8d08,_0x5c1d1f){_0x1f8d08[_0x18a5('0x6a')]=null;for(const _0x1db911 in _0x1f8d08){const _0x4351fe=_0x1f8d08[_0x1db911];if(_0x4351fe instanceof _0x170f37){const _0x57b900=_0x5c1d1f[_0x18a5('0xa8')](_0x4351fe[_0x18a5('0x7')][_0x18a5('0x3e')]);_0x1f8d08[_0x1db911]=this[_0x18a5('0xbd')](_0x4351fe,_0x57b900);}if(_0x4351fe instanceof _0x287ef){const _0x14bc31=_0x5c1d1f['get'](_0x4351fe[_0x18a5('0x7')][_0x18a5('0x3e')]);_0x1f8d08[_0x1db911]=this[_0x18a5('0xbc')](_0x4351fe,_0x14bc31);}'root'===_0x1db911&&(_0x1f8d08[_0x18a5('0x7')]=_0x5c1d1f[_0x18a5('0xa8')](_0x1f8d08['root'][_0x18a5('0x3e')]));}}['_fixRange'](_0x26c4ec,_0x18524d){return this[_0x18a5('0x46')]['model']['createRange'](this[_0x18a5('0xbd')](_0x26c4ec['start'],_0x18524d),this[_0x18a5('0xbd')](_0x26c4ec['end'],_0x18524d));}[_0x18a5('0xbd')](_0x6bc95f,_0x1d0421){return this[_0x18a5('0x46')]['model'][_0x18a5('0x92')](_0x1d0421,_0x6bc95f['path'],_0x6bc95f[_0x18a5('0x8f')]);}[_0x18a5('0x34')](_0x1cbedb){const _0x511ca6=this[_0x18a5('0x31')][_0x18a5('0xa8')](_0x1cbedb[_0x18a5('0xe3')]['root'][_0x18a5('0x3e')]),_0x54f688=this[_0x18a5('0xbd')](_0x1cbedb[_0x18a5('0xe3')],_0x511ca6),_0x40bbc7=null===_0x1cbedb[_0x18a5('0x47')]?null:_0x1cbedb[_0x18a5('0x47')]||this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x554590=_0x54f688[_0x18a5('0x1c')],_0x45facf=this['_revisionId'],_0x2b32ec=[];for(const _0x5aa5f0 of _0x1cbedb[_0x18a5('0x88')])if(_0x5aa5f0['is'](_0x18a5('0x39')))_0x2b32ec[_0x18a5('0xb7')](this[_0x18a5('0x5')](_0x5aa5f0));else for(let _0x22eaea=0x0;_0x22eaea<_0x5aa5f0[_0x18a5('0x56')];_0x22eaea++)_0x2b32ec['push'](new _0x5f4c69('$text',{'vid':this[_0x18a5('0xd0')]++}));const _0x2a7ac2=this['_revisionId'];for(let _0x4c8f21=_0x45facf;_0x4c8f21<_0x2a7ac2;_0x4c8f21++)this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x4c8f21,{'userId':_0x40bbc7});_0x554590[_0x18a5('0x77')](_0x54f688[_0x18a5('0x7f')],_0x2b32ec);}['_handleMoveOperation'](_0xe1813c){(_0xe1813c=this[_0x18a5('0x5c')](_0xe1813c,this[_0x18a5('0x31')]))[_0x18a5('0xb8')]();const _0x4ed3be=null===_0xe1813c[_0x18a5('0x47')]?null:_0xe1813c[_0x18a5('0x47')]||this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x21087c=_0xe1813c[_0x18a5('0x99')](),_0xbe1ec3=_0x21087c[_0x18a5('0x1c')],_0x573ad9=_0x21087c['offset'];!function _0x3008e1(_0x5ef54a,_0xe9d41b,_0x2817d0,_0x527f22){for(let _0x25ba89=_0x2817d0;_0x25ba89<_0x527f22;_0x25ba89++){const _0x59c5a1=_0xe9d41b[_0x18a5('0x3a')](_0x25ba89);_0x59c5a1['is'](_0x18a5('0x39'),_0x18a5('0xa9'))?_0x5ef54a[_0x18a5('0xc6')](_0x59c5a1[_0x18a5('0xc3')](_0x18a5('0x29')),{'userId':_0x4ed3be}):(_0x5ef54a[_0x18a5('0xc6')](_0x59c5a1[_0x18a5('0xc3')](_0x18a5('0xe5')),{'userId':_0x4ed3be}),_0x3008e1(_0x5ef54a,_0x59c5a1,0x0,_0x59c5a1[_0x18a5('0x6c')]),_0x5ef54a[_0x18a5('0xc6')](_0x59c5a1[_0x18a5('0xc3')](_0x18a5('0xe6')),{'userId':_0x4ed3be}));}}(this[_0x18a5('0x41')],_0xbe1ec3,_0x573ad9,_0x573ad9+_0xe1813c[_0x18a5('0x1')]);}[_0x18a5('0xe4')](_0x16cc60){const _0xd66361=null===(_0x16cc60=this[_0x18a5('0x5c')](_0x16cc60,this['_idsRoots']))['_authorId']?null:_0x16cc60[_0x18a5('0x47')]||this['editor'][_0x18a5('0xad')][_0x18a5('0xa8')]('Users')['me']['id'],_0x467c6b=_0x16cc60[_0x18a5('0x80')][_0x18a5('0x1c')],_0x45a7a3=_0x16cc60[_0x18a5('0xe8')]['parent'],_0x88f603=_0x467c6b[_0x18a5('0xc3')](_0x18a5('0xe6')),_0x2098da=_0x45a7a3[_0x18a5('0xc3')](_0x18a5('0xe5'));_0x467c6b[_0x18a5('0x48')]('vid_end',_0x45a7a3[_0x18a5('0xc3')](_0x18a5('0xe6'))),_0x45a7a3[_0x18a5('0x48')](_0x18a5('0xe6'),_0x88f603),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x2098da,{'userId':_0xd66361}),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x88f603,{'userId':_0xd66361}),_0x16cc60['_execute']();}[_0x18a5('0x19')](_0x6870ce){const _0x1f8d00=null===(_0x6870ce=this[_0x18a5('0x5c')](_0x6870ce,this[_0x18a5('0x31')]))[_0x18a5('0x47')]?null:_0x6870ce[_0x18a5('0x47')]||this[_0x18a5('0x46')]['plugins'][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x1d8167=_0x6870ce[_0x18a5('0x2f')],_0x6a0966=_0x6870ce[_0x18a5('0x1a')]['parent'];_0x6870ce[_0x18a5('0xb8')]();const _0x297606=_0x6a0966[_0x18a5('0xc3')](_0x18a5('0xe6')),_0x36ff20=_0x6870ce['insertionPosition'][_0x18a5('0xa7')];if(_0x1d8167){const _0x5eb763=_0x36ff20[_0x18a5('0xc3')](_0x18a5('0xe6')),_0x45e781=_0x6a0966['getAttribute']('vid_end');_0x6a0966[_0x18a5('0x48')]('vid_end',_0x5eb763),_0x36ff20[_0x18a5('0x48')]('vid_end',_0x45e781),this['_touched'][_0x18a5('0xc6')](_0x6a0966[_0x18a5('0xc3')](_0x18a5('0xe6')),{'userId':_0x1f8d00}),this[_0x18a5('0x41')]['set'](_0x36ff20['getAttribute']('vid_start'),{'userId':_0x1f8d00});}else{const _0x58f286=this[_0x18a5('0xd0')]++,_0x2826a0=this[_0x18a5('0xd0')]++;_0x6a0966[_0x18a5('0x48')](_0x18a5('0xe6'),_0x58f286),_0x36ff20['_setAttribute'](_0x18a5('0xe5'),_0x2826a0),_0x36ff20[_0x18a5('0x48')](_0x18a5('0xe6'),_0x297606),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x58f286,{'userId':_0x1f8d00}),this[_0x18a5('0x41')][_0x18a5('0xc6')](_0x2826a0,{'userId':_0x1f8d00});}}[_0x18a5('0x1b')](_0x4e6623){if(!_0x4e6623[_0x18a5('0x7a')])return;const _0x2f3856=(_0x4e6623=this[_0x18a5('0x5c')](_0x4e6623,this[_0x18a5('0xfe')]))[_0x18a5('0x57')]?_0x4e6623[_0x18a5('0x57')][_0x18a5('0x7')]:null,_0x152b7f=_0x4e6623[_0x18a5('0x0')]?_0x4e6623['newRange']['root']:null;_0x2f3856&&this[_0x18a5('0xfc')][_0x18a5('0x18')](_0x4e6623[_0x18a5('0xb0')]),_0x152b7f&&this[_0x18a5('0xfc')]['set'](_0x4e6623[_0x18a5('0xb0')],_0x4e6623[_0x18a5('0x0')]['clone']());const _0x50dca4=null===_0x4e6623[_0x18a5('0x47')]?null:_0x4e6623[_0x18a5('0x47')]||this['editor'][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x30e996=_0x4e6623['name'];if(!this[_0x18a5('0x45')][_0x18a5('0x8')](_0x30e996))return void this[_0x18a5('0x45')][_0x18a5('0xc6')](_0x30e996,{'range':_0x4e6623[_0x18a5('0x57')],'userId':_0x50dca4});const _0x5c4d48=this[_0x18a5('0x45')][_0x18a5('0xa8')](_0x30e996),_0x55e34d=_0x5c4d48['range'],_0x5e1120=_0x4e6623[_0x18a5('0x0')];null==_0x55e34d&&null==_0x5e1120||_0x55e34d&&_0x5e1120&&_0x55e34d[_0x18a5('0xf3')](_0x5e1120)?this['_touchedMarkers']['delete'](_0x4e6623['name']):_0x5c4d48[_0x18a5('0x23')]=_0x50dca4;}[_0x18a5('0xab')](_0x26a04c,_0x20f8ba){this[_0x18a5('0xfe')][_0x18a5('0x8')](_0x26a04c['rootName'])?this[_0x18a5('0xfe')][_0x18a5('0xa8')](_0x26a04c['rootName'])[_0x18a5('0x85')]=_0x26a04c['isAdd']:(this[_0x18a5('0xfe')][_0x18a5('0xc6')](_0x26a04c[_0x18a5('0x3e')],G(_0x26a04c['rootName'],!0x0)),this[_0x18a5('0x94')]['set'](_0x26a04c['rootName'],{}),_0x20f8ba&&this['_idsRoots']['set'](_0x26a04c[_0x18a5('0x3e')],G(_0x26a04c['rootName'],!0x0)));const _0x17142d=null===_0x26a04c[_0x18a5('0x47')]?null:_0x26a04c[_0x18a5('0x47')]||this[_0x18a5('0x46')][_0x18a5('0xad')][_0x18a5('0xa8')](_0x18a5('0x4d'))['me']['id'],_0x48c2a2=this['_touchedRoots'][_0x18a5('0xa8')](_0x26a04c[_0x18a5('0x3e')]);_0x48c2a2&&_0x48c2a2[_0x18a5('0x23')]===_0x17142d?this[_0x18a5('0x86')][_0x18a5('0x18')](_0x26a04c[_0x18a5('0x3e')]):this[_0x18a5('0x86')][_0x18a5('0xc6')](_0x26a04c['rootName'],{'userId':_0x17142d,'isAttached':_0x26a04c[_0x18a5('0xb4')]});}['_handleRootAttributeOperation'](_0x36b91f){const _0x39d7b5=this['_diffRootsAttributes']['get'](_0x36b91f[_0x18a5('0x7')][_0x18a5('0x3e')]);null===_0x36b91f[_0x18a5('0x73')]?delete _0x39d7b5[_0x36b91f['key']]:_0x39d7b5[_0x36b91f[_0x18a5('0x10')]]=_0x36b91f[_0x18a5('0x73')];}}function q(_0x36fd9c){const _0x30e9e6=G(_0x36fd9c[_0x18a5('0x3e')],_0x36fd9c[_0x18a5('0x7b')]());for(const _0x1a784e of _0x36fd9c[_0x18a5('0x61')]()){const _0x2a82e0=_0x1a784e[_0x18a5('0x2c')](!0x0);_0x30e9e6['_appendChild'](_0x2a82e0);}return _0x30e9e6;}function G(_0x5b47b6,_0x26cf99=!0x0){const _0x143db3=new _0x1d8fd3();return _0x143db3['rootName']=_0x5b47b6,_0x143db3['_isAttached']=_0x26cf99,_0x143db3['isAttached']=()=>_0x143db3[_0x18a5('0x85')],_0x143db3;}function L(_0x33c656,_0x426a36,_0x36558a){const _0x32b46e=_0x18a5('0x27')==_0x33c656[_0x18a5('0xe9')]?_0x36558a[_0x18a5('0x9e')](_0x33c656['item'],_0x18a5('0x40')):_0x36558a[_0x18a5('0x50')](_0x33c656[_0x18a5('0xaa')]);return _0x36558a[_0x18a5('0x92')](_0x426a36,_0x32b46e[_0x18a5('0xe2')],_0x32b46e['stickiness']);}function W(_0x48be14,_0x295b3a,_0x2a8556){const _0x473c8a=_0x18a5('0xba')==_0x48be14[_0x18a5('0xe9')]?_0x2a8556[_0x18a5('0x9e')](_0x48be14[_0x18a5('0xaa')],0x0):_0x2a8556[_0x18a5('0x9')](_0x48be14[_0x18a5('0xaa')]);return _0x2a8556['createPositionFromPath'](_0x295b3a,_0x473c8a[_0x18a5('0xe2')],_0x473c8a[_0x18a5('0x8f')]);}
|
|
23
|
+
const _0x125a=['setRevisionData','for','addRoot','_makeModelFromViewString','position','_markChanges','repository','getData','_touchedRoots','hasContent','data','resolve','merge','addRevision','_removeRevisionMarkers','dataToMarker','getLatestVersion','_initialRevisionId','view','_handleMarkerOperation','_generateTape','toView','editing','adapter','getRevision','toModel','Users','conversion','history','_getBaseVids','version','insert','_applyOperations','roots','howMany','isEnabled','_execute','offsetSize','_touched','getIndex','includes','getChildren','upcast','_touchedMarkers','values','_fixRange','ready','startsWith','_processRootBeforeSave','_handleRootOperation','pluginName','_loadState','_update','_authorId','editor','revision-start','marker','reInit','_lastTo','insertions','elementEnd','_appendChild','push','vid_end','newRange','find','createPositionBefore','_baseRootsAttributes','_setAttribute','marked','revision:','_savedMetaData','removeRootAttribute','range','_getPreviousFrom','vid_start','initialData','_fixPosition','createRange','data-revision-','config','split','RevisionTracker','deletions','rootName','_getViewJson','attributesBefore','string','detachRoot','loadState','path','PendingActions','reverse','_isAttached','move','rootsAttributes','_getState','_startingRevisionId','_makeRevision','init','size','_setConversion','root','_idsRoots','fromEntries','_createCurrentRevision','max','_handleOperation','previousPosition','parse','_markers','key','RealTimeCollaborationClient','_loadedStateData','keys','markers','then','nodeAfter','createPositionAfter','_bufferedUpdates','addRevisionData','baseVersion','_saveMetaData','childCount','splitPosition','_bufferUpdate','clear','trim','RevisionsRepository','attributes','_handleMergeOperation','children','_handleSplitOperation','createRangeIn','from','_findInsertionIndex','getRoot','isAttached','initial','requires','oldRange','_getFromVersion','offset','_pendingAction','_cloneOperation','_insertChild','sendBufferedUpdates','collaboration.channelId','getRevisionRootsAttributes','item','has','_handleMoveOperation','getCurrentRevisionId','_continueCurrentRevision','plugins','setSource','createPositionFromPath','_handleRootAttributeOperation','authors','_handleInsertOperation','getMovedRangeStart','getNodeByPath','element','revision-end','_baseIdsRoots','currentRevision','bind','newValue','_reset','useFillerType','afterInit','length','_revisionDataBuilder','shift','processor','buildRevisionData','fromVersion','getChild','_removeMetaData','_diffRootsAttributes','update','attributesAfter','_clone','dataDowncast','nodes','_addPendingAction','_baseRoots','_prepareViewToSave','_replaceEditorDataWithRevisionData','map','creator','getTime','end','graveyardPosition','_source','NEGATIVE_INFINITY','_removePendingAction','addRootAttribute','slice','createRevision','name','_createFromRanges','tableCell','locale','_revisionId','revisionHistory.resumeUnsavedRevision','revision','documentFragment','_calculateMetaData','model','getUser','toData','targetPosition','changeRootAttribute','getRevisionDocumentData','remove','authorsIds','filter','stickiness','_makeIdsRoot','get','_diffRoots','_getVidAttributeName','vid','_copyMarkers','getAttributes','createPositionAt','isReady','_isPendingUpdate','toVersion','_isInit','set','getOperations','document','getOperation','parent','saveRevision','diffData','source','attachChange','_loadRevisionData','_startingVersion','_transformMarkers','elementStart','clone','isEqual','getAncestors','userId','_lastFrom','$graveyard','_createInitialRevision','type','add','$text','getWalker','delete','getAttribute','_fixOperation','getRevisions','PENDING_ACTION_REVISION_HISTORY','start','createdAt','editor-initial-data-replaced-with-revision-data','creatorId'];(function(_0x3c2e48,_0x125ac6){const _0x50fbe8=function(_0x4ca5da){while(--_0x4ca5da){_0x3c2e48['push'](_0x3c2e48['shift']());}};_0x50fbe8(++_0x125ac6);}(_0x125a,0x73));const _0x50fb=function(_0x3c2e48,_0x125ac6){_0x3c2e48=_0x3c2e48-0x0;let _0x50fbe8=_0x125a[_0x3c2e48];return _0x50fbe8;};import{Users as _0x10078a}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x52ae07,PendingActions as _0x292181}from'ckeditor5/src/core';import{logWarning as _0x838920,uid as _0x17a79d}from'ckeditor5/src/utils';import{Position as _0x43e92a,Range as _0x7b4d61,Element as _0x161915,DocumentFragment as _0x496a5b,ViewText as _0x29a111,ViewElement as _0x4e0364,ViewContainerElement as _0x19f5c1,ViewAttributeElement as _0x39bc74,ViewEmptyElement as _0x2ff576,ViewRawElement as _0x1000f0,ViewUIElement as _0x205595,ViewDocumentFragment as _0x50f246}from'ckeditor5/src/engine';import _0x2437e1 from'./revisionsrepository';import{getTranslation as _0x1d4030}from'./utils/common-translations';import{cloneDeep as _0x4f8a65,isEqual as _0xc082f6}from'lodash-es';const B={'c':_0x19f5c1,'a':_0x39bc74,'e':_0x2ff576,'r':_0x1000f0,'u':_0x205595};export default class l extends _0x52ae07{static get[_0x50fb('0xc7')](){return _0x50fb('0xe7');}static get[_0x50fb('0x18')](){return[_0x10078a,_0x2437e1,_0x292181];}constructor(_0x10e4fb){super(_0x10e4fb),this[_0x50fb('0xac')]=null,this['currentRevision']=null,this[_0x50fb('0x39')]=new H(this[_0x50fb('0xcb')]),this[_0x50fb('0xa6')]=this[_0x50fb('0xcb')][_0x50fb('0xe5')]['get'](_0x50fb('0x20'))||_0x50fb('0x17'),this[_0x50fb('0x4')]=new Map(),this['_loadedStateData']=null;const _0x10eeff=_0x17a79d();this[_0x50fb('0x4f')]={'history':this[_0x50fb('0xcb')]['model'][_0x50fb('0x76')][_0x50fb('0xb1')],'getLatestVersion':()=>Promise[_0x50fb('0xa0')](this[_0x50fb('0xcb')][_0x50fb('0x5e')]['document'][_0x50fb('0xb3')]),'getCurrentRevisionId':()=>_0x10eeff},this[_0x50fb('0x74')](_0x50fb('0x70'),!0x1),this[_0x50fb('0x74')](_0x50fb('0xb8'),!0x0),this[_0x50fb('0x74')]('_isPendingUpdate',!0x1),this[_0x50fb('0xcb')][_0x50fb('0xe5')]['define'](_0x50fb('0x5a'),!0x0),this['editor'][_0x50fb('0xb0')][_0x50fb('0x96')](_0x50fb('0xbf'))[_0x50fb('0xa4')]({'view':_0x50fb('0x5b')});}[_0x50fb('0xf8')](){this[_0x50fb('0x9b')]=this['editor'][_0x50fb('0x27')]['get'](_0x50fb('0xd')),this[_0x50fb('0xfa')](),this['editor'][_0x50fb('0x9f')]['on'](_0x50fb('0xc3'),()=>{const _0x592fe1=this[_0x50fb('0x9b')][_0x50fb('0xad')](0x0),_0x79197f=_0x592fe1&&null===_0x592fe1[_0x50fb('0x4b')]?_0x592fe1:null;if(this[_0x50fb('0x26')]=!!_0x79197f&&this['editor'][_0x50fb('0xe5')]['get'](_0x50fb('0x5a')),this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x23')](_0x50fb('0x105'))){const _0x4218dd=this[_0x50fb('0x4f')][_0x50fb('0x25')](),_0x50964d=this['repository'][_0x50fb('0xad')](_0x4218dd);if(_0x50964d)this[_0x50fb('0x7e')]=_0x50964d[_0x50fb('0x3d')],this['_continueCurrentRevision']=!0x1;else{const _0x555565=this[_0x50fb('0x4f')][_0x50fb('0xb1')]['_operations'][_0x50fb('0xd6')](_0x4bbeac=>!_0x4bbeac[_0x50fb('0x73')]),_0x49e02d=_0x555565?_0x555565[_0x50fb('0x6')]:this[_0x50fb('0x4f')][_0x50fb('0xb1')][_0x50fb('0xb3')];_0x592fe1?(_0x592fe1[_0x50fb('0x72')]<_0x49e02d&&_0x592fe1[_0x50fb('0xc9')]({'toVersion':_0x49e02d}),this[_0x50fb('0x26')]?(this[_0x50fb('0x4f')]['getCurrentRevisionId']=()=>_0x79197f['id'],this[_0x50fb('0x7e')]=_0x79197f[_0x50fb('0x3d')]):(this[_0x50fb('0x7e')]=_0x592fe1[_0x50fb('0x72')],this[_0x50fb('0x26')]=!0x1)):(this['_startingVersion']=_0x49e02d,this[_0x50fb('0x26')]=!0x1);}}else _0x79197f&&(this[_0x50fb('0xcb')]['model'][_0x50fb('0x76')][_0x50fb('0xb1')][_0x50fb('0xb3')]=Math[_0x50fb('0xff')](_0x79197f[_0x50fb('0x72')],this[_0x50fb('0xcb')]['model'][_0x50fb('0x76')][_0x50fb('0xb1')][_0x50fb('0xb3')]),_0x79197f[_0x50fb('0x3d')]===_0x79197f[_0x50fb('0x72')]?(0x0!==_0x79197f['fromVersion']&&(this['_source'][_0x50fb('0x25')]=()=>_0x79197f['id']),this[_0x50fb('0x26')]=!0x1):this[_0x50fb('0x26')]&&(this[_0x50fb('0x4f')]['getCurrentRevisionId']=()=>_0x79197f['id'],this[_0x50fb('0x7e')]=_0x79197f[_0x50fb('0x3d')])),this['_continueCurrentRevision']||(this[_0x50fb('0x7e')]=this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0xb3')]);this[_0x50fb('0x39')][_0x50fb('0xf8')](this['_source'][_0x50fb('0xb1')]),this['_createInitialRevision'](this[_0x50fb('0x7e')]),this[_0x50fb('0xfe')](this[_0x50fb('0x7e')]),this[_0x50fb('0xac')]&&this[_0x50fb('0x1f')]();}),this[_0x50fb('0x33')]('isReady')['to'](this,_0x50fb('0x71'),_0x1c6a6c=>!_0x1c6a6c);}async[_0x50fb('0x37')](){if(this[_0x50fb('0x9b')][_0x50fb('0x38')]>0x0){const _0x5257a3=this[_0x50fb('0x9b')][_0x50fb('0xad')](0x0),_0x169719=await this[_0x50fb('0x63')](_0x5257a3),_0x1b6b0a=await this['getRevisionRootsAttributes'](_0x5257a3);this['_replaceEditorDataWithRevisionData'](_0x169719,_0x1b6b0a);}}[_0x50fb('0x28')](_0x558e6d){this[_0x50fb('0x4f')]=_0x558e6d;}async[_0x50fb('0x41')](){const _0x379f2e=await this[_0x50fb('0x4f')][_0x50fb('0xa5')]();if(_0x379f2e>this[_0x50fb('0x32')][_0x50fb('0x72')]){await this['_loadState']();const _0x55ea10=this[_0x50fb('0x3c')]({'revision':this[_0x50fb('0x32')],'to':_0x379f2e});_0x55ea10[_0x50fb('0x2b')]=_0x55ea10[_0x50fb('0x65')]['map'](_0x3498b8=>this['editor'][_0x50fb('0x27')]['get'](_0x50fb('0xaf'))[_0x50fb('0x5f')](_0x3498b8)),this['currentRevision'][_0x50fb('0xc9')](_0x55ea10);}}async[_0x50fb('0xc8')](){this[_0x50fb('0x26')]&&!this[_0x50fb('0x106')]&&(await this[_0x50fb('0x7d')](this[_0x50fb('0x32')]),this['_revisionDataBuilder'][_0x50fb('0xee')](this[_0x50fb('0x32')]),this[_0x50fb('0x106')]={'fromVersion':this[_0x50fb('0x32')][_0x50fb('0x3d')],'authors':this[_0x50fb('0x32')][_0x50fb('0x2b')][_0x50fb('0x53')]()});}async[_0x50fb('0x79')](_0x4b228d={},_0x84c992=null){const _0x5d3de5=[];await this[_0x50fb('0xc8')](),this['_continueCurrentRevision']=!0x1,_0x84c992>this[_0x50fb('0x32')][_0x50fb('0x72')]&&(_0x84c992=null),null===_0x84c992&&(_0x84c992=await this['_source'][_0x50fb('0xa5')]());const _0x2b6ae5=this[_0x50fb('0x1a')](_0x84c992),_0x5e5a8a=this[_0x50fb('0x3c')]({'from':_0x2b6ae5,'to':_0x84c992});if(this['currentRevision'][_0x50fb('0x72')]<_0x84c992){const _0x405c4d=this[_0x50fb('0x3c')]({'revision':this['currentRevision'],'from':_0x84c992,'to':_0x84c992});_0x405c4d[_0x50fb('0x2b')]=[],_0x405c4d[_0x50fb('0x65')]=[],_0x405c4d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x405c4d,!0x0),delete _0x405c4d[_0x50fb('0x2b')],_0x5d3de5[_0x50fb('0xd3')](_0x405c4d);}_0x4b228d[_0x50fb('0x94')]=this[_0x50fb('0xcb')][_0x50fb('0x27')]['get'](_0x50fb('0xaf'))['me']['id'],_0x4b228d[_0x50fb('0x55')]=_0x4b228d[_0x50fb('0x55')]||null,_0x4b228d['id']=_0x4b228d['id']||_0x17a79d(),_0x4b228d={..._0x4b228d,..._0x5e5a8a};const _0x24868e=this['addRevisionData'](_0x4b228d);_0x5d3de5[_0x50fb('0xd3')](_0x4b228d);const _0x5eb496=this[_0x50fb('0x9b')][_0x50fb('0xbc')](_0x24868e);if(0x0!==_0x5eb496){const _0x51dd3e=this[_0x50fb('0x9b')][_0x50fb('0xad')](_0x5eb496-0x1);if(_0x51dd3e['fromVersion']!==_0x84c992){const _0x2d09d3=this['_revisionDataBuilder'][_0x50fb('0x9c')](_0x84c992,_0x51dd3e['toVersion']),_0x249359={'id':_0x51dd3e['id'],'diffData':_0x2d09d3[_0x50fb('0x7a')],'authorsIds':_0x2d09d3[_0x50fb('0x65')],'authors':_0x2d09d3[_0x50fb('0x65')][_0x50fb('0x4a')](_0x273228=>this[_0x50fb('0xcb')][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['getUser'](_0x273228)),'fromVersion':_0x84c992};_0x51dd3e===this[_0x50fb('0x32')]&&(_0x249359[_0x50fb('0x92')]=new Date(_0x4b228d[_0x50fb('0x92')][_0x50fb('0x4c')]()+0xa)),_0x51dd3e[_0x50fb('0xc9')](_0x249359,!0x0),delete _0x249359[_0x50fb('0x2b')],_0x5d3de5[_0x50fb('0xd3')](_0x249359);}}if(this[_0x50fb('0xac')]){for(const _0x451b1a of _0x5d3de5)this[_0x50fb('0xa')](_0x451b1a['id'],_0x451b1a,!0x0);this[_0x50fb('0x1f')]();}return _0x24868e;}['addRevisionData'](_0x28aff8){const _0x128160=this[_0x50fb('0x9b')][_0x50fb('0x54')](_0x28aff8);return this[_0x50fb('0xac')]&&_0x128160['on']('_update',(_0x5416da,_0x35003c,_0x486eff)=>{_0x486eff||(this['_bufferUpdate'](_0x35003c['id'],_0x35003c,!0x0),this['sendBufferedUpdates']());}),this[_0x50fb('0x9b')][_0x50fb('0xa2')](_0x128160,this[_0x50fb('0x14')](_0x128160)),_0x128160;}async[_0x50fb('0x63')](_0x1bc4d7){await this['_loadRevisionData'](_0x1bc4d7);const _0x52ec5d={};for(const _0x953a in _0x1bc4d7[_0x50fb('0x7a')]){if(_0x1bc4d7[_0x50fb('0x7a')][_0x953a]['attachChange']&&!_0x1bc4d7[_0x50fb('0x7a')][_0x953a][_0x50fb('0x7c')][_0x50fb('0x16')])continue;const _0x58ed30=this[_0x50fb('0xa3')](JSON[_0x50fb('0x102')](_0x1bc4d7[_0x50fb('0x7a')][_0x953a][_0x50fb('0xd0')])),_0x36eb63=this[_0x50fb('0xcb')][_0x50fb('0xab')][_0x50fb('0xa7')][_0x50fb('0x76')],_0x3b7712=new _0x50f246(_0x36eb63,_0x58ed30[_0x50fb('0x4a')](_0x5d5784=>J(_0x5d5784,this[_0x50fb('0xcb')])));this['editor'][_0x50fb('0x9f')][_0x50fb('0x3b')][_0x50fb('0x36')](_0x50fb('0xda')),_0x52ec5d[_0x953a]=this[_0x50fb('0xcb')][_0x50fb('0x9f')][_0x50fb('0x3b')][_0x50fb('0x60')](_0x3b7712),this['editor'][_0x50fb('0x9f')]['processor'][_0x50fb('0x36')]('default');}return _0x52ec5d;}async[_0x50fb('0x21')](_0x237b75){await this['_loadRevisionData'](_0x237b75);const _0xb6c831={};for(const _0x11b8fe in _0x237b75['diffData'])_0x237b75[_0x50fb('0x7a')][_0x11b8fe][_0x50fb('0x7c')]&&!_0x237b75[_0x50fb('0x7a')][_0x11b8fe]['attachChange'][_0x50fb('0x16')]||(_0xb6c831[_0x11b8fe]=_0x237b75[_0x50fb('0x7a')][_0x11b8fe][_0x50fb('0x42')]||{});return _0xb6c831;}[_0x50fb('0x1f')](){if(0x0===this[_0x50fb('0x4')][_0x50fb('0xf9')])return;if(this['_isPendingUpdate'])return;let _0x5ad457=Array['from'](this['_bufferedUpdates'][_0x50fb('0xc1')]());this[_0x50fb('0x4')][_0x50fb('0xb')]();for(let _0x3c5375=0x0;_0x3c5375<_0x5ad457[_0x50fb('0x38')];_0x3c5375++){const _0x77c15c=_0x5ad457[_0x3c5375];let _0x46a8ec=!0x1;for(const _0x4d7077 of Object[_0x50fb('0x107')](_0x77c15c))void 0x0===_0x77c15c[_0x4d7077]?delete _0x77c15c[_0x4d7077]:'id'!==_0x4d7077&&(_0x46a8ec=!0x0);_0x46a8ec||(_0x5ad457[_0x3c5375]=null);}if(_0x5ad457=_0x5ad457[_0x50fb('0x66')](_0x504170=>null!==_0x504170),!_0x5ad457[_0x50fb('0x38')])return;for(let _0x3c9e15=0x0;_0x3c9e15<_0x5ad457[_0x50fb('0x38')];_0x3c9e15++){const _0x97066=_0x5ad457[_0x3c9e15];void 0x0!==_0x97066['fromVersion']&&void 0x0===_0x97066['toVersion']&&(_0x97066[_0x50fb('0x72')]=this['repository'][_0x50fb('0xad')](_0x97066['id'])[_0x50fb('0x72')]),void 0x0!==_0x97066[_0x50fb('0x72')]&&void 0x0===_0x97066[_0x50fb('0x3d')]&&(_0x97066['fromVersion']=this[_0x50fb('0x9b')]['getRevision'](_0x97066['id'])[_0x50fb('0x3d')]);}const _0x4b1391=this['editor']['config'][_0x50fb('0x69')]('collaboration.channelId');this[_0x50fb('0x71')]=!0x0,this[_0x50fb('0x46')](),this[_0x50fb('0xac')]['updateRevisions'](_0x5ad457,_0x4b1391)['finally'](()=>{this[_0x50fb('0x71')]=!0x1;})[_0x50fb('0x1')](_0x261d11=>{if(_0x261d11)for(const _0x350b69 of _0x261d11)this[_0x50fb('0x95')]({'id':_0x350b69['id'],'createdAt':_0x350b69['createdAt']});this['_removePendingAction'](),this[_0x50fb('0x1f')]();});}[_0x50fb('0x49')](_0x10adc7,_0x2493ef){let _0x3ff06b=this[_0x50fb('0xcb')]['config'][_0x50fb('0x69')](_0x50fb('0xe1')),_0x2f176f=this[_0x50fb('0xcb')]['config'][_0x50fb('0x69')](_0x50fb('0xf4'));if(void 0x0===_0x3ff06b){_0x3ff06b={};for(const _0x2d2e58 of this[_0x50fb('0xcb')]['model']['document']['getRootNames']())_0x3ff06b[_0x2d2e58]='';}if(_0x50fb('0xec')==typeof _0x3ff06b&&(_0x3ff06b={'main':_0x3ff06b}),void 0x0===_0x2f176f){_0x2f176f={};for(const _0x1c2019 of this[_0x50fb('0xcb')][_0x50fb('0x5e')]['document']['getRootNames']())_0x2f176f[_0x1c2019]={};}let _0x500c6a=!0x1;const _0x598fa6=Object[_0x50fb('0x107')](_0x3ff06b),_0x565925=Object[_0x50fb('0x107')](_0x10adc7);for(const _0x5ed868 of _0x598fa6){if(_0x3ff06b[_0x5ed868]!==_0x10adc7[_0x5ed868]&&''!==_0x3ff06b[_0x5ed868][_0x50fb('0xc')]()){_0x500c6a=!0x0;break;}if(!_0xc082f6(_0x2f176f[_0x5ed868],_0x2493ef[_0x5ed868])&&Object[_0x50fb('0x107')](_0x2f176f[_0x5ed868])[_0x50fb('0x38')]>0x0){_0x500c6a=!0x0;break;}}_0x500c6a||(_0x500c6a=_0x565925['some'](_0x5325f0=>!this[_0x50fb('0xcb')][_0x50fb('0x5e')]['document'][_0x50fb('0x15')](_0x5325f0))),_0x500c6a&&_0x838920(_0x50fb('0x93'),{'editorData':_0x3ff06b,'editorRootsAttributes':_0x2f176f,'revisionData':_0x10adc7,'revisionRootsAttributes':_0x2493ef}),this[_0x50fb('0xcb')][_0x50fb('0xe5')][_0x50fb('0x74')](_0x50fb('0xe1'),_0x10adc7),this[_0x50fb('0xcb')][_0x50fb('0xe5')][_0x50fb('0x74')]('rootsAttributes',_0x2493ef);}[_0x50fb('0x46')](){if(!this['_pendingAction']){const _0x5dc19a=this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x69')](_0x50fb('0xf0'));this[_0x50fb('0x1c')]=_0x5dc19a[_0x50fb('0x89')](_0x1d4030(this[_0x50fb('0xcb')][_0x50fb('0x58')],_0x50fb('0x90')));}}[_0x50fb('0x51')](){this[_0x50fb('0x1c')]&&(this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xf0'))['remove'](this['_pendingAction']),this[_0x50fb('0x1c')]=null);}[_0x50fb('0x14')](_0x31484f){const _0x434a4e=this[_0x50fb('0x9b')][_0x50fb('0x8f')]();_0x434a4e[_0x50fb('0xf1')]();let _0x2c2290=0x0;for(;_0x2c2290<_0x434a4e['length'];){const _0x432492=_0x434a4e[_0x2c2290];if(_0x432492===this['currentRevision']){_0x2c2290++;continue;}if(_0x432492['id']===this['_initialRevisionId'])break;const _0x494c1f=_0x31484f[_0x50fb('0x72')]-_0x432492[_0x50fb('0x72')]||_0x31484f['fromVersion']-_0x432492['fromVersion'];if(_0x494c1f>0x0)break;if(_0x494c1f<0x0)_0x2c2290++;else{if(!_0x31484f[_0x50fb('0x4b')]&&_0x432492[_0x50fb('0x4b')])break;if(_0x432492[_0x50fb('0x4b')]||!_0x31484f[_0x50fb('0x4b')]){if(_0x31484f[_0x50fb('0x92')]>_0x432492[_0x50fb('0x92')])break;_0x2c2290++;}else _0x2c2290++;}}return _0x2c2290;}['setRevisionData'](_0x4451b0){const _0x5d8626=this[_0x50fb('0x9b')][_0x50fb('0xad')](_0x4451b0['id']);if(_0x4451b0[_0x50fb('0x92')]&&(_0x4451b0[_0x50fb('0x92')]=new Date(_0x4451b0[_0x50fb('0x92')])),_0x4451b0[_0x50fb('0x65')]){const _0x5a773a=this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x69')]('Users');_0x4451b0['authors']=_0x4451b0[_0x50fb('0x65')][_0x50fb('0x4a')](_0x5aaef6=>_0x5a773a['getUser'](_0x5aaef6));}_0x5d8626[_0x50fb('0xc9')](_0x4451b0,!0x0);}[_0x50fb('0x3c')]({revision:_0x446724=null,from:_0x5a4ea3=null,to:_0x3d87e0=null}){_0x5a4ea3=null!==_0x5a4ea3?_0x5a4ea3:_0x446724[_0x50fb('0x3d')],_0x3d87e0=null!==_0x3d87e0?_0x3d87e0:_0x446724[_0x50fb('0x72')];const _0x330604=this[_0x50fb('0x39')][_0x50fb('0x9c')](_0x5a4ea3,_0x3d87e0),_0x12186c={'diffData':_0x330604[_0x50fb('0x7a')],'authorsIds':_0x330604[_0x50fb('0x65')],'fromVersion':_0x5a4ea3,'toVersion':_0x3d87e0};if(!_0x446724||_0x3d87e0!==_0x446724[_0x50fb('0x72')]){const _0x17a833=_0x3d87e0-0x1,_0x5826b1=this[_0x50fb('0x4f')]['history'][_0x50fb('0x77')](_0x17a833);_0x12186c[_0x50fb('0x92')]=_0x5826b1&&_0x5826b1[_0x50fb('0x92')]||new Date();}if(this[_0x50fb('0x106')]&&_0x5a4ea3===this[_0x50fb('0x106')]['fromVersion'])for(const _0x33c4e2 of this[_0x50fb('0x106')]['authors'])_0x12186c[_0x50fb('0x65')][_0x50fb('0xbd')](_0x33c4e2['id'])||_0x12186c[_0x50fb('0x65')][_0x50fb('0xd3')](_0x33c4e2['id']);return _0x12186c;}[_0x50fb('0x7d')](_0x314a23){if(!_0x314a23||_0x314a23[_0x50fb('0x7a')])return Promise[_0x50fb('0xa0')]();{const _0x227b45=this['editor'][_0x50fb('0xe5')][_0x50fb('0x69')](_0x50fb('0x20'));return this[_0x50fb('0xac')]['getRevision']({'channelId':_0x227b45,'revisionId':_0x314a23['id']})[_0x50fb('0x1')](_0x4da818=>{_0x314a23[_0x50fb('0x7a')]=_0x4da818['diffData'];});}}['_bufferUpdate'](_0x1b3816,_0x1d9092,_0x50957b){if(this[_0x50fb('0x4')][_0x50fb('0x23')](_0x1b3816)){const _0x13bdc5=this['_bufferedUpdates'][_0x50fb('0x69')](_0x1b3816);_0x1d9092=_0x50957b?{..._0x13bdc5,..._0x1d9092}:{..._0x1d9092,..._0x13bdc5};}this[_0x50fb('0x4')][_0x50fb('0x74')](_0x1b3816,_0x1d9092);}['_getFromVersion'](_0x3dc82e){const _0x1a0219=this['repository']['getRevisions']();_0x1a0219[_0x50fb('0xf1')](),_0x1a0219[_0x50fb('0x3a')]();const _0x27ed2f=_0x1a0219[_0x50fb('0xd6')](_0x1ec5e6=>_0x1ec5e6['toVersion']<=_0x3dc82e)['toVersion'];return _0x27ed2f<this['_startingVersion']?this[_0x50fb('0x7e')]:_0x27ed2f;}[_0x50fb('0x87')](_0x293ce1){const _0x4b72ac=this[_0x50fb('0x9b')][_0x50fb('0xad')](this['repository'][_0x50fb('0x38')]-0x1);if(_0x4b72ac)this['_initialRevisionId']=_0x4b72ac['id'];else{const _0x32c557=!this['editor'][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0xb6')]['find'](_0x4b82d6=>this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x9e')](_0x4b82d6)),_0x1fb5d8=this['editor'][_0x50fb('0x27')]['get'](_0x50fb('0xaf'))['me']['id'],_0x352979=_0x1d4030(this[_0x50fb('0xcb')]['locale'],_0x32c557?'Empty\x20document':'Initial\x20revision');this[_0x50fb('0xf7')]({'from':_0x293ce1,'to':_0x293ce1,'id':this[_0x50fb('0xa6')],'name':_0x352979,'creatorId':_0x1fb5d8});}}[_0x50fb('0xfe')](_0x19f11a){const _0x5a93c8=this['_source'][_0x50fb('0x25')]();this[_0x50fb('0x32')]=this['repository'][_0x50fb('0xad')](_0x5a93c8),this[_0x50fb('0x32')]||(this[_0x50fb('0x32')]=this[_0x50fb('0xf7')]({'from':_0x19f11a,'to':_0x19f11a,'id':_0x5a93c8,'name':'','creatorId':null}));}[_0x50fb('0xf7')]({name:_0x40ac48,from:_0x4b7dc7,to:_0x31fa68,creatorId:_0x43a4b4,id:_0x41c279}){const _0x33983f=this[_0x50fb('0x3c')]({'from':_0x4b7dc7,'to':_0x31fa68});_0x33983f[_0x50fb('0x55')]=_0x40ac48,_0x33983f[_0x50fb('0x94')]=_0x43a4b4,_0x33983f['id']=_0x41c279;const _0x440999=this[_0x50fb('0x5')](_0x33983f);return this['adapter']&&this['_bufferUpdate'](_0x33983f['id'],_0x33983f,!0x0),_0x440999;}[_0x50fb('0xfa')](){this[_0x50fb('0xcb')][_0x50fb('0xb0')]['for'](_0x50fb('0x44'))['markerToData']({'model':_0x50fb('0x5b')});}[_0x50fb('0xa3')](_0x5cc608){return(_0x5cc608=_0x5cc608[_0x50fb('0x66')](_0x22324c=>!_0x22324c[_0x50fb('0x55')]||_0x50fb('0xcc')!==_0x22324c[_0x50fb('0x55')]&&_0x50fb('0x30')!==_0x22324c[_0x50fb('0x55')]))['forEach'](_0x5a3619=>{_0x50fb('0xec')!=typeof _0x5a3619&&(_0x5a3619[_0x50fb('0x10')]=this['_removeRevisionMarkers'](_0x5a3619[_0x50fb('0x10')]),_0x5a3619[_0x50fb('0xe')]=_0x5a3619[_0x50fb('0xe')][_0x50fb('0x66')](_0x1f2f38=>!_0x1f2f38[0x0][_0x50fb('0xc4')](_0x50fb('0xe4'))));}),_0x5cc608;}}function J(_0x58e841,_0x1b31a1){const _0x5b6ee5=_0x1b31a1['editing'][_0x50fb('0xa7')]['document'];if(_0x50fb('0xec')==typeof _0x58e841)return new _0x29a111(_0x5b6ee5,_0x58e841);{const _0x44ada3=_0x58e841['children']['map'](_0x163d0b=>J(_0x163d0b,_0x1b31a1));return new(B[_0x58e841['type']]||_0x4e0364)(_0x5b6ee5,_0x58e841['name'],_0x58e841['attributes'],_0x44ada3);}}class H{constructor(_0x334d3c){this['editor']=_0x334d3c,this['_savedMetaData']=new Map(),this[_0x50fb('0x85')]=-0x1,this['_lastTo']=-0x1,this[_0x50fb('0x103')]=new Map(),this[_0x50fb('0x6a')]=new Map(),this[_0x50fb('0x40')]=new Map(),this['_baseRoots']=new Map(),this[_0x50fb('0xd8')]=new Map(),this[_0x50fb('0xfc')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x50fb('0xbb')]=new Map(),this[_0x50fb('0xc0')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x50fb('0xf8')](_0x37c1b3){this[_0x50fb('0x7b')]=_0x37c1b3;const _0x4c0187=new Map(),_0x525e09=new Map(),_0x2878f6=this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0xb6')][_0x50fb('0x4a')](_0x11a486=>_0x11a486[_0x50fb('0xe9')]);for(const _0x1392d4 of _0x2878f6){const _0x46649f=this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x76')][_0x50fb('0x15')](_0x1392d4),_0x566690=q(_0x46649f);_0x4c0187[_0x50fb('0x74')](_0x1392d4,_0x566690),_0x525e09[_0x50fb('0x74')](_0x1392d4,Object[_0x50fb('0xfd')](_0x46649f[_0x50fb('0x6e')]()));}const _0x5f223b=Array[_0x50fb('0x13')](this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x0')])['map'](_0x3927a6=>[_0x3927a6[_0x50fb('0x55')],_0x3927a6['getRange']()]),_0x3ef26f=this[_0x50fb('0x7b')]['version'];this['_saveMetaData'](_0x3ef26f,_0x4c0187,_0x5f223b,_0x525e09),this[_0x50fb('0xf6')]=this[_0x50fb('0x59')];const _0x177882=new Map(),_0x2c9992=new Map();for(const _0x5e179c of _0x2878f6){const _0x22a3fb=G(_0x5e179c);_0x177882['set'](_0x5e179c,_0x22a3fb),_0x2c9992[_0x50fb('0x74')](_0x5e179c,{});}this[_0x50fb('0x7')](Number[_0x50fb('0x50')],_0x177882,[],_0x2c9992);}[_0x50fb('0x9c')](_0x455c61,_0x15fbbd){if(this[_0x50fb('0x85')]===_0x455c61&&this[_0x50fb('0xcf')]<=_0x15fbbd)this[_0x50fb('0xdc')][_0x50fb('0xf9')]>0x1&&this[_0x50fb('0x3f')](this[_0x50fb('0xcf')]),this[_0x50fb('0xb5')](this[_0x50fb('0xcf')],_0x15fbbd,!0x0);else{if(!this[_0x50fb('0xdc')][_0x50fb('0x23')](_0x455c61)){const _0x1d20c0=this[_0x50fb('0xdf')](_0x455c61);this['_calculateMetaData'](_0x1d20c0,_0x455c61,!0x1);}this[_0x50fb('0x5d')](_0x455c61,_0x15fbbd,!0x0);}return this['_lastFrom']=_0x455c61,this['_lastTo']=_0x15fbbd,this[_0x50fb('0xf5')]();}[_0x50fb('0xee')](_0x2e535d){this[_0x50fb('0x35')](),this[_0x50fb('0x85')]=_0x2e535d[_0x50fb('0x3d')],this['_lastTo']=_0x2e535d[_0x50fb('0x72')];for(const _0x51e42c in _0x2e535d[_0x50fb('0x7a')]){const _0x3f6bc5=_0x2e535d[_0x50fb('0x7a')][_0x51e42c][_0x50fb('0x7c')],_0x3ab2d3=_0x4f8a65(_0x2e535d[_0x50fb('0x7a')][_0x51e42c][_0x50fb('0xeb')])||{},_0x5077e6=this['_makeModelFromViewString'](_0x2e535d[_0x50fb('0x7a')][_0x51e42c][_0x50fb('0xe8')]);_0x5077e6['rootName']=_0x51e42c,_0x5077e6[_0x50fb('0xf2')]=!_0x3f6bc5||!_0x3f6bc5[_0x50fb('0x16')],_0x5077e6[_0x50fb('0x16')]=()=>_0x5077e6['_isAttached'],this[_0x50fb('0x47')][_0x50fb('0x74')](_0x51e42c,_0x5077e6),this[_0x50fb('0xd8')][_0x50fb('0x74')](_0x51e42c,_0x3ab2d3),_0x3f6bc5&&this[_0x50fb('0x9d')][_0x50fb('0x74')](_0x51e42c,_0x3f6bc5);const _0x4356d9=this['_makeIdsRoot'](_0x5077e6);this[_0x50fb('0x31')][_0x50fb('0x74')](_0x51e42c,_0x4356d9);for(const [_0x167090,_0x4555b6]of _0x5077e6[_0x50fb('0x0')]){if(!_0x167090[_0x50fb('0xc4')](_0x50fb('0xdb')))continue;const _0x23ac34=_0x167090[_0x50fb('0xe6')](':')[0x2];for(const _0x1864f8 of _0x4555b6[_0x50fb('0x8b')]({'singleCharacters':!0x0})){const _0x596aca=this[_0x50fb('0x6b')](_0x1864f8),_0x2e684e=_0x50fb('0xd1')==_0x1864f8[_0x50fb('0x88')]?_0x1864f8[_0x50fb('0x101')]['path'][_0x50fb('0x53')](0x0,-0x1):_0x1864f8['previousPosition'][_0x50fb('0xef')],_0x142316=_0x4356d9[_0x50fb('0x2e')](_0x2e684e)[_0x50fb('0x8d')](_0x596aca);this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x142316,{'userId':_0x23ac34});}}}this['_startingRevisionId']=this[_0x50fb('0x59')];const _0xaef156=[...Array(this[_0x50fb('0x59')])['keys']()][_0x50fb('0x53')](0x1)[_0x50fb('0x66')](_0x4926e2=>!this[_0x50fb('0xbb')][_0x50fb('0x23')](_0x4926e2));let _0x3fba0d=0x0;const _0x59d249=new Map();for(const _0x315d06 in _0x2e535d[_0x50fb('0x7a')]){const _0x2ab483=_0x2e535d[_0x50fb('0x7a')][_0x315d06]['attachChange'],_0x3fc337=_0x4f8a65(_0x2e535d['diffData'][_0x315d06][_0x50fb('0x42')])||{},_0x427eff=this[_0x50fb('0x98')](_0x2e535d['diffData'][_0x315d06]['insertions']);_0x427eff[_0x50fb('0xe9')]=_0x315d06,_0x427eff[_0x50fb('0xf2')]=!_0x2ab483||_0x2ab483['isAttached'],_0x427eff[_0x50fb('0x16')]=()=>_0x427eff[_0x50fb('0xf2')],this['_diffRoots'][_0x50fb('0x74')](_0x315d06,_0x427eff),this['_diffRootsAttributes']['set'](_0x315d06,_0x3fc337);const _0x26d5ef=this[_0x50fb('0x68')](_0x427eff,Number['NEGATIVE_INFINITY']);this[_0x50fb('0xfc')][_0x50fb('0x74')](_0x315d06,_0x26d5ef),_0x59d249[_0x50fb('0x74')](_0x315d06,_0x427eff[_0x50fb('0x16')]()?_0x3fc337:{});for(const [_0x165efb,_0x55bac9]of _0x427eff['markers']){if(!_0x165efb['startsWith'](_0x50fb('0xdb')))continue;const _0x335e53=_0x165efb[_0x50fb('0xe6')](':')[0x2];for(const _0x3e8aa5 of _0x55bac9[_0x50fb('0x8b')]({'singleCharacters':!0x0})){const _0x5dad3e=this[_0x50fb('0x6b')](_0x3e8aa5),_0x1dbda5=this[_0x50fb('0x59')]++,_0x1fb40b=_0x50fb('0xd1')==_0x3e8aa5[_0x50fb('0x88')]?_0x3e8aa5[_0x50fb('0x101')][_0x50fb('0xef')][_0x50fb('0x53')](0x0,-0x1):_0x3e8aa5[_0x50fb('0x101')][_0x50fb('0xef')];_0x26d5ef[_0x50fb('0x2e')](_0x1fb40b)[_0x50fb('0xd9')](_0x5dad3e,_0x1dbda5),this[_0x50fb('0xbb')]['set'](_0x1dbda5,{'userId':_0x335e53});}}for(const _0x54e6a0 of this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0x12')](_0x427eff)['getWalker']({'singleCharacters':!0x0})){const _0x28ce11=this[_0x50fb('0x6b')](_0x54e6a0),_0x50cd03=_0x50fb('0xd1')==_0x54e6a0[_0x50fb('0x88')]?_0x54e6a0[_0x50fb('0x101')][_0x50fb('0xef')][_0x50fb('0x53')](0x0,-0x1):_0x54e6a0['previousPosition']['path'],_0x2d4908=_0x26d5ef[_0x50fb('0x2e')](_0x50cd03);_0x2d4908[_0x50fb('0x8d')](_0x28ce11)>0x0||_0x2d4908[_0x50fb('0xd9')](_0x28ce11,_0xaef156[_0x3fba0d++]);}for(const [_0x24282d,_0x5551b7]of _0x427eff[_0x50fb('0x0')])_0x24282d[_0x50fb('0xc4')](_0x50fb('0xdb'))||this[_0x50fb('0x103')]['set'](_0x24282d,_0x5551b7);}const _0x22045a=G(_0x50fb('0x86'));this[_0x50fb('0x47')]['set'](_0x50fb('0x86'),_0x22045a),this['_baseIdsRoots'][_0x50fb('0x74')](_0x50fb('0x86'),this[_0x50fb('0x68')](_0x22045a,0x1));const _0x44e8c2=G(_0x50fb('0x86'));this[_0x50fb('0x6a')][_0x50fb('0x74')](_0x50fb('0x86'),_0x44e8c2),this[_0x50fb('0xfc')][_0x50fb('0x74')]('$graveyard',this[_0x50fb('0x68')](_0x44e8c2,0x1));const _0x2e8de1=Array[_0x50fb('0x13')](this[_0x50fb('0x6a')])['map'](([_0x1f34d3,_0x1e6f9d])=>[_0x1f34d3,q(_0x1e6f9d)]);this['_saveMetaData'](this['_lastTo'],_0x2e8de1,this[_0x50fb('0x103')],_0x59d249);}[_0x50fb('0x98')](_0x2cd681){const _0x12d56f=JSON[_0x50fb('0x102')](_0x2cd681),_0x361a0d=this[_0x50fb('0xcb')][_0x50fb('0xab')][_0x50fb('0xa7')][_0x50fb('0x76')],_0x11f6ff=new _0x50f246(_0x361a0d,_0x12d56f[_0x50fb('0x4a')](_0x4c94cf=>J(_0x4c94cf,this['editor'])));return this[_0x50fb('0xcb')][_0x50fb('0x9f')][_0x50fb('0xae')](_0x11f6ff);}[_0x50fb('0x7')](_0x4318f0,_0x2d8033,_0x3d2191,_0xacd0d6){const _0x129f66=new Map(_0x2d8033),_0x508aa4=new Map(_0x4f8a65(_0xacd0d6)),_0x5a403d=new Map();for(const [_0x43612c,_0x5e4b71]of _0x3d2191)_0x5a403d[_0x50fb('0x74')](_0x43612c,{'start':_0x5e4b71[_0x50fb('0x91')][_0x50fb('0x81')](),'end':_0x5e4b71[_0x50fb('0x4d')][_0x50fb('0x81')](),'rootName':_0x5e4b71[_0x50fb('0xfb')][_0x50fb('0xe9')]});this[_0x50fb('0xdc')][_0x50fb('0x74')](_0x4318f0,{'roots':_0x129f66,'markers':_0x5a403d,'rootsAttributes':_0x508aa4});}[_0x50fb('0x3f')](_0x1e0d65){this[_0x50fb('0xdc')][_0x50fb('0x8c')](_0x1e0d65);}[_0x50fb('0xce')](){this[_0x50fb('0x35')](),this[_0x50fb('0x85')]=-0x1,this[_0x50fb('0xcf')]=-0x1,this[_0x50fb('0xdc')][_0x50fb('0xb')](),this['init'](this[_0x50fb('0x7b')]);}[_0x50fb('0x35')](){this[_0x50fb('0xbb')]['clear'](),this['_touchedMarkers'][_0x50fb('0xb')](),this[_0x50fb('0x9d')][_0x50fb('0xb')](),this[_0x50fb('0x6a')][_0x50fb('0xb')](),this[_0x50fb('0x40')][_0x50fb('0xb')](),this[_0x50fb('0x47')][_0x50fb('0xb')](),this[_0x50fb('0xd8')]['clear'](),this[_0x50fb('0xfc')]['clear'](),this[_0x50fb('0x31')][_0x50fb('0xb')](),this[_0x50fb('0x103')][_0x50fb('0xb')](),this[_0x50fb('0x59')]=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4498c6,_0x577f4e=null){let _0x21bc6e=null;_0x4498c6['is'](_0x50fb('0x5c'))||(_0x21bc6e=new _0x161915(_0x4498c6[_0x50fb('0x55')],{'vid_start':null===_0x577f4e?this[_0x50fb('0x59')]++:_0x577f4e++}));const _0xa1430d=[];for(const _0x12b5bd of _0x4498c6['getChildren']())if(_0x12b5bd['is'](_0x50fb('0x2f'))){_0xa1430d[_0x50fb('0xd3')](this[_0x50fb('0x68')](_0x12b5bd,_0x577f4e));const _0x34ab29=_0xa1430d[_0xa1430d[_0x50fb('0x38')]-0x1];null!==_0x577f4e&&(_0x577f4e=_0x34ab29['is'](_0x50fb('0x2f'),_0x50fb('0x8a'))?_0x34ab29[_0x50fb('0x8d')](_0x50fb('0x6c'))+0x1:_0x34ab29[_0x50fb('0x8d')](_0x50fb('0xd4'))+0x1);}else for(let _0x2a5cb8=0x0;_0x2a5cb8<_0x12b5bd[_0x50fb('0xba')];_0x2a5cb8++)_0xa1430d[_0x50fb('0xd3')](new _0x161915(_0x50fb('0x8a'),{'vid':null===_0x577f4e?this['_revisionId']++:_0x577f4e++}));if(_0x4498c6['is'](_0x50fb('0x5c'))){const _0x1c6b75=G(_0x4498c6[_0x50fb('0xe9')]);return _0x1c6b75['_insertChild'](0x0,_0xa1430d),_0x1c6b75;}return _0x21bc6e[_0x50fb('0xd9')]('vid_end',null===_0x577f4e?this[_0x50fb('0x59')]++:_0x577f4e++),_0x21bc6e[_0x50fb('0x1e')](0x0,_0xa1430d),_0x21bc6e;}[_0x50fb('0x5d')](_0x45bca7,_0x139ad3,_0x369243){this['_reset']();const {roots:_0x36546f,markers:_0xa81471,rootsAttributes:_0x29819f}=this[_0x50fb('0xdc')][_0x50fb('0x69')](_0x45bca7);this['_baseRoots']=new Map(_0x36546f),this[_0x50fb('0xd8')]=new Map(_0x4f8a65(_0x29819f));for(const [_0x5346b7,_0x51e6af]of this[_0x50fb('0x47')])if(_0x50fb('0x86')!==_0x5346b7&&(this['_diffRoots']['set'](_0x5346b7,q(_0x51e6af)),this[_0x50fb('0x40')]=new Map(_0x4f8a65(_0x29819f)),_0x369243)){const _0x17d936=this[_0x50fb('0x59')];this['_idsRoots']['set'](_0x5346b7,this['_makeIdsRoot'](_0x51e6af)),this[_0x50fb('0x31')][_0x50fb('0x74')](_0x5346b7,this[_0x50fb('0x68')](_0x51e6af,_0x17d936));}this[_0x50fb('0xf6')]=this[_0x50fb('0x59')],this[_0x50fb('0x6a')][_0x50fb('0x74')](_0x50fb('0x86'),q(this['_baseRoots'][_0x50fb('0x69')]('$graveyard'))),_0x369243&&this['_idsRoots'][_0x50fb('0x74')]('$graveyard',this[_0x50fb('0x68')](this[_0x50fb('0x47')][_0x50fb('0x69')](_0x50fb('0x86'))));for(const [_0x220961,_0x199bc0]of _0xa81471){const _0x141868=this[_0x50fb('0x47')][_0x50fb('0x69')](_0x199bc0[_0x50fb('0xe9')]),_0x3fe602=this[_0x50fb('0x6a')][_0x50fb('0x69')](_0x199bc0[_0x50fb('0xe9')]),_0x1e5fe1=new _0x7b4d61(this[_0x50fb('0xe2')](_0x199bc0['start'],_0x141868),this[_0x50fb('0xe2')](_0x199bc0[_0x50fb('0x4d')],_0x141868)),_0x5237c1=this[_0x50fb('0xc2')](_0x1e5fe1,_0x3fe602);_0x141868[_0x50fb('0x0')][_0x50fb('0x74')](_0x220961,_0x1e5fe1),this[_0x50fb('0x103')][_0x50fb('0x74')](_0x220961,_0x5237c1);}this[_0x50fb('0xb5')](_0x45bca7,_0x139ad3,_0x369243);}[_0x50fb('0xb5')](_0x323a8d,_0x3359b2,_0x233539){for(const _0x30628e of this[_0x50fb('0x7b')][_0x50fb('0x75')](_0x323a8d,_0x3359b2))this[_0x50fb('0x100')](_0x30628e,_0x233539);for(const _0xe59a1e of this['_diffRoots'][_0x50fb('0xc1')]())_0xe59a1e[_0x50fb('0x0')][_0x50fb('0xb')]();for(const [_0x3981a6,_0x39e25e]of this[_0x50fb('0x103')]){this[_0x50fb('0x6a')][_0x50fb('0x69')](_0x39e25e[_0x50fb('0xfb')]['rootName'])['markers'][_0x50fb('0x74')](_0x3981a6,_0x39e25e[_0x50fb('0x81')]());}const _0x33fad4=new Map(),_0x961ca4=new Map();for(const [_0x3372bd,_0x234420]of this['_diffRoots'])_0x33fad4['set'](_0x3372bd,q(_0x234420)),_0x961ca4[_0x50fb('0x74')](_0x3372bd,this[_0x50fb('0x40')][_0x50fb('0x69')](_0x3372bd));this[_0x50fb('0x7')](_0x3359b2,_0x33fad4,this[_0x50fb('0x103')],_0x961ca4);}[_0x50fb('0xdf')](_0x18b5d9){const _0x3c5000=Array['from'](this['_savedMetaData']['keys']());_0x3c5000['sort']((_0x5436d2,_0x447079)=>_0x5436d2-_0x447079),_0x3c5000['reverse']();for(const _0x12def5 of _0x3c5000)if(_0x12def5<_0x18b5d9)return _0x12def5;return Number[_0x50fb('0x50')];}[_0x50fb('0x6d')](_0x1836bb,_0x44ccde){const _0x5aadb6=Array['from'](_0x44ccde[_0x50fb('0x0')])[_0x50fb('0x4a')](([_0x57ec82,_0x281bd9])=>[_0x57ec82,this[_0x50fb('0xc2')](_0x281bd9,_0x1836bb)]);_0x1836bb[_0x50fb('0x0')]=new Map(_0x5aadb6);}[_0x50fb('0x7f')](_0x574a2d){for(const _0xcad334 of this[_0x50fb('0x103')][_0x50fb('0xc1')]()){const _0x3fe10e=_0xcad334['getTransformedByOperation'](_0x574a2d),_0x372c96=_0x7b4d61[_0x50fb('0x56')](_0x3fe10e);_0xcad334['start']=_0x372c96[_0x50fb('0x91')],_0xcad334[_0x50fb('0x4d')]=_0x372c96[_0x50fb('0x4d')];}}[_0x50fb('0x100')](_0x592ea9,_0x4c8d5a){if(_0x50fb('0x97')==_0x592ea9[_0x50fb('0x88')]||_0x50fb('0xed')==_0x592ea9[_0x50fb('0x88')])return void this[_0x50fb('0xc6')](_0x592ea9,_0x4c8d5a);if(_0x50fb('0xb4')==_0x592ea9[_0x50fb('0x88')]){const _0x1b4adf=_0x592ea9[_0x50fb('0x99')][_0x50fb('0xfb')]['rootName'];this[_0x50fb('0x6a')][_0x50fb('0x23')](_0x1b4adf)||(this[_0x50fb('0x6a')][_0x50fb('0x74')](_0x1b4adf,G(_0x1b4adf,!0x0)),this[_0x50fb('0x40')][_0x50fb('0x74')](_0x1b4adf,{}),_0x4c8d5a&&this[_0x50fb('0xfc')][_0x50fb('0x74')](_0x1b4adf,G(_0x1b4adf,!0x0)));}else{if(_0x50fb('0x52')==_0x592ea9[_0x50fb('0x88')]||_0x50fb('0xdd')==_0x592ea9[_0x50fb('0x88')]||_0x50fb('0x62')==_0x592ea9['type'])return void this['_handleRootAttributeOperation'](_0x592ea9);}const _0x27e8f6=this[_0x50fb('0x1d')](_0x592ea9,this[_0x50fb('0x6a')]);if(_0x50fb('0xcd')!==_0x592ea9[_0x50fb('0x88')]&&(_0x27e8f6[_0x50fb('0xb9')](),this[_0x50fb('0x7f')](_0x27e8f6)),_0x4c8d5a)switch(_0x27e8f6[_0x50fb('0x88')]){case _0x50fb('0xb4'):this['_handleInsertOperation'](_0x592ea9);break;case _0x50fb('0xf3'):case _0x50fb('0x64'):case'reinsert':this[_0x50fb('0x24')](_0x592ea9);break;case _0x50fb('0xa1'):this[_0x50fb('0xf')](_0x592ea9);break;case'split':this['_handleSplitOperation'](_0x592ea9);break;case _0x50fb('0xcd'):this[_0x50fb('0xa8')](_0x592ea9);}}[_0x50fb('0x1d')](_0x391294,_0x29493a){const _0x239a0d=_0x391294[_0x50fb('0x81')]();return _0x239a0d['_authorId']=_0x391294[_0x50fb('0xca')],this[_0x50fb('0x8e')](_0x239a0d,_0x29493a),_0x239a0d;}[_0x50fb('0xb2')](_0x20f047){return _0x20f047[_0x50fb('0x4a')](_0x17cdd1=>{const _0x7c3e1b=this[_0x50fb('0x6b')](_0x17cdd1);return Number(_0x17cdd1[_0x50fb('0x22')][_0x50fb('0x8d')](_0x7c3e1b));});}['_generateTape'](_0x467b8b,_0x580cd5){if(_0x467b8b['is'](_0x50fb('0x2f'),_0x50fb('0x8a')))_0x580cd5[_0x50fb('0xd3')]({'item':_0x467b8b,'type':'text'});else{_0x467b8b['is'](_0x50fb('0x2f'))&&_0x580cd5[_0x50fb('0xd3')]({'item':_0x467b8b,'type':'elementStart'});for(const _0x216327 of _0x467b8b[_0x50fb('0xbe')]())this[_0x50fb('0xa9')](_0x216327,_0x580cd5);_0x467b8b['is'](_0x50fb('0x2f'))&&_0x580cd5[_0x50fb('0xd3')]({'item':_0x467b8b,'type':'elementEnd'});}return _0x580cd5;}[_0x50fb('0xf5')](){const _0x29e8f6=new Map(this[_0x50fb('0xbb')]),_0x410939=new Map(_0x29e8f6),_0x51d8d8=new Map(),_0x2abe6c={'insertions':{},'deletions':{}},_0xd57e44={'insertions':{},'deletions':{}},_0x1dab25=new Map(),_0x53210f=new Set([...this[_0x50fb('0x47')][_0x50fb('0x107')](),...this[_0x50fb('0x6a')][_0x50fb('0x107')]()]);_0x53210f['delete'](_0x50fb('0x86'));for(const _0x2c0df6 of _0x53210f){const _0x56c95c=this['_diffRoots'][_0x50fb('0x69')](_0x2c0df6)||G(_0x2c0df6,!0x1),_0x232fb2=this[_0x50fb('0x47')][_0x50fb('0x69')](_0x2c0df6)||G(_0x2c0df6,!0x1);_0x56c95c[_0x50fb('0x16')]()||_0x232fb2[_0x50fb('0x16')]()?(_0x2abe6c[_0x50fb('0xd0')][_0x2c0df6]=q(_0x56c95c),_0x2abe6c[_0x50fb('0xe8')][_0x2c0df6]=q(_0x232fb2),this['_copyMarkers'](_0x2abe6c[_0x50fb('0xe8')][_0x2c0df6],_0x232fb2),this[_0x50fb('0x6d')](_0x2abe6c['insertions'][_0x2c0df6],_0x56c95c),_0xd57e44[_0x50fb('0xd0')][_0x2c0df6]=this[_0x50fb('0xa9')](this[_0x50fb('0xfc')][_0x50fb('0x69')](_0x2c0df6),[]),_0xd57e44[_0x50fb('0xe8')][_0x2c0df6]=this[_0x50fb('0xa9')](this[_0x50fb('0x31')][_0x50fb('0x69')](_0x2c0df6)||G(_0x2c0df6,!0x1),[])):_0x53210f[_0x50fb('0x8c')](_0x2c0df6);}for(const _0x3c8063 of _0x53210f){const _0x56bd96=_0xd57e44['insertions'][_0x3c8063];for(const _0x473c73 of _0x56bd96){const _0x66705b=this[_0x50fb('0x6b')](_0x473c73),_0x4cbeb0=_0x473c73[_0x50fb('0x22')][_0x50fb('0x8d')](_0x66705b);_0x410939[_0x50fb('0x8c')](_0x4cbeb0),_0x4cbeb0>=this[_0x50fb('0xf6')]&&_0x51d8d8[_0x50fb('0x74')](_0x4cbeb0,_0x29e8f6[_0x50fb('0x69')](_0x4cbeb0));}}for(const _0x4641c7 of _0x53210f){const _0x41e419=_0xd57e44[_0x50fb('0xd0')][_0x4641c7],_0x25be7b=this['_getBaseVids'](_0xd57e44[_0x50fb('0xe8')][_0x4641c7]);let _0x249878=0x0;for(const _0x13e69c of _0x41e419){const _0x2f7668=this[_0x50fb('0x6b')](_0x13e69c),_0xc0d445=_0x13e69c[_0x50fb('0x22')][_0x50fb('0x8d')](_0x2f7668);if(!_0x51d8d8[_0x50fb('0x23')](_0xc0d445)&&!_0x1dab25[_0x50fb('0x23')](_0xc0d445)){if(_0x410939[_0x50fb('0x23')](_0xc0d445))_0x249878++;else{if(_0xc0d445!=_0x25be7b[_0x249878]){const _0x16095a=_0x29e8f6[_0x50fb('0x69')](_0xc0d445)||_0x29e8f6['get'](_0x25be7b[_0x249878]);for(;_0xc0d445!=_0x25be7b[_0x249878];)_0x410939['has'](_0x25be7b[_0x249878])||(_0x1dab25[_0x50fb('0x74')](_0x25be7b[_0x249878],_0x16095a),_0x29e8f6[_0x50fb('0x74')](_0x25be7b[_0x249878],_0x16095a)),_0x249878++;}_0x249878++;}}}}for(const _0x41335 of _0x53210f){const _0x12da23=_0xd57e44[_0x50fb('0xd0')][_0x41335];for(const _0x7884b of _0x12da23){const _0x1243ad=this['_getVidAttributeName'](_0x7884b),_0x58d85f=_0x7884b[_0x50fb('0x22')][_0x50fb('0x8d')](_0x1243ad);if(_0x1dab25[_0x50fb('0x23')](_0x58d85f)){const _0x375a55=_0x1dab25[_0x50fb('0x69')](_0x58d85f);_0x410939[_0x50fb('0x23')](_0x58d85f)||_0x410939['set'](_0x58d85f,{..._0x375a55}),_0x51d8d8[_0x50fb('0x74')](_0x58d85f,{..._0x375a55});}}}for(const _0x45e82d of _0x410939['keys']())_0x45e82d>=this['_startingRevisionId']&&_0x410939['delete'](_0x45e82d);const _0x2e16bf=new Map();for(const _0x1c166c of _0x53210f){let _0x157afe=_0xd57e44[_0x50fb('0xd0')][_0x1c166c];for(const _0x4aa94c of _0x157afe)if(_0x4aa94c[_0x50fb('0x22')]['is']('element',_0x50fb('0x57'))){const _0x4230f4=this['_getVidAttributeName'](_0x4aa94c),_0x21378a=_0x4aa94c[_0x50fb('0x22')][_0x50fb('0x8d')](_0x4230f4);if(_0x51d8d8[_0x50fb('0x23')](_0x21378a)){const _0x4c398e=_0x4aa94c[_0x50fb('0x22')]['parent'][_0x50fb('0x78')][_0x50fb('0x8d')](_0x50fb('0xe0')),_0x10c2fc=_0x2e16bf[_0x50fb('0x69')](_0x4c398e)||new Set();_0x10c2fc[_0x50fb('0x89')](_0x51d8d8[_0x50fb('0x69')](_0x21378a)[_0x50fb('0x84')]),_0x2e16bf[_0x50fb('0x74')](_0x4c398e,_0x10c2fc);}}_0x157afe=_0xd57e44[_0x50fb('0xe8')][_0x1c166c];for(const _0x3ec2ef of _0x157afe)if(_0x3ec2ef['item']['is'](_0x50fb('0x2f'),_0x50fb('0x57'))){const _0x1578ac=this[_0x50fb('0x6b')](_0x3ec2ef),_0x2b89c5=_0x3ec2ef[_0x50fb('0x22')][_0x50fb('0x8d')](_0x1578ac);if(_0x410939['has'](_0x2b89c5)){const _0x5c7cc8=_0x3ec2ef['item']['parent'][_0x50fb('0x78')]['getAttribute'](_0x50fb('0xe0')),_0x2c724d=_0x2e16bf[_0x50fb('0x69')](_0x5c7cc8)||new Set();_0x2c724d[_0x50fb('0x89')](_0x410939['get'](_0x2b89c5)[_0x50fb('0x84')]),_0x2e16bf['set'](_0x5c7cc8,_0x2c724d);}}for(const _0x51f700 of _0x2e16bf[_0x50fb('0x107')]())(_0x51d8d8['has'](_0x51f700)||_0x410939[_0x50fb('0x23')](_0x51f700))&&_0x2e16bf['delete'](_0x51f700);}for(const _0x6eb9fb of _0x53210f){const _0x5f9797=_0xd57e44[_0x50fb('0xd0')][_0x6eb9fb];let _0x2a4888=null,_0x1f6b4d=null;for(const _0x569278 of _0x5f9797){const _0x3dd24d=this[_0x50fb('0x6b')](_0x569278),_0x21313d=_0x569278['item'][_0x50fb('0x8d')](_0x3dd24d),_0x2c98c6=_0x2e16bf['get'](_0x21313d);_0x2c98c6&&_0x50fb('0x80')==_0x569278[_0x50fb('0x88')]&&(_0x2a4888=Array[_0x50fb('0x13')](_0x2c98c6)[0x0],_0x1f6b4d=_0x569278[_0x50fb('0x22')]['getAttribute'](_0x50fb('0xd4'))),_0x2a4888&&(_0x410939[_0x50fb('0x74')](_0x21313d,{'userId':_0x2a4888}),_0x51d8d8[_0x50fb('0x74')](_0x21313d,{'userId':_0x2a4888})),_0x21313d==_0x1f6b4d&&(_0x2a4888=null,_0x1f6b4d=null);}}const _0x4fd348={},_0x56d165=new Set();for(const _0x58c973 of _0x53210f){const _0x529bd1=_0x2abe6c[_0x50fb('0xe8')][_0x58c973],_0x52a08f=_0x2abe6c[_0x50fb('0xd0')][_0x58c973];for(const {userId:_0x5c4114}of this[_0x50fb('0xc0')][_0x50fb('0xc1')]())null!==_0x5c4114&&_0x56d165[_0x50fb('0x89')](_0x5c4114);for(const {userId:_0x781f83}of this['_touchedRoots'][_0x50fb('0xc1')]())null!==_0x781f83&&_0x56d165[_0x50fb('0x89')](_0x781f83);this[_0x50fb('0x9a')](_0x52a08f,_0xd57e44[_0x50fb('0xd0')][_0x58c973],_0x51d8d8,'insertion',_0x56d165),this[_0x50fb('0x9a')](_0x529bd1,_0xd57e44[_0x50fb('0xe8')][_0x58c973],_0x410939,'deletion',_0x56d165),_0x4fd348[_0x58c973]={'insertions':this[_0x50fb('0x48')](_0x52a08f),'deletions':this[_0x50fb('0x48')](_0x529bd1),'attachChange':this[_0x50fb('0x9d')][_0x50fb('0x69')](_0x58c973)||null,'attributesBefore':_0x4f8a65(this[_0x50fb('0xd8')][_0x50fb('0x69')](_0x58c973))||{},'attributesAfter':_0x4f8a65(this[_0x50fb('0x40')]['get'](_0x58c973))};}return{'diffData':_0x4fd348,'authorsIds':Array[_0x50fb('0x13')](_0x56d165)};}['_processRootBeforeSave'](_0x1865d4){for(const [,_0x172d90]of _0x1865d4[_0x50fb('0x0')]){const _0x3572d6=_0x172d90[_0x50fb('0x91')][_0x50fb('0x83')]()[_0x50fb('0x66')](_0x1d15da=>_0x50fb('0x57')==_0x1d15da[_0x50fb('0x55')]);for(const _0x42b432 of _0x3572d6)0x1==_0x42b432[_0x50fb('0x8')]&&_0x42b432[_0x50fb('0x3e')](0x0)['is'](_0x50fb('0x2f'),'paragraph')&&_0x42b432[_0x50fb('0x3e')](0x0)[_0x50fb('0xd9')]('keepParagraph',!0x0);}}[_0x50fb('0x48')](_0x2c3d45){this[_0x50fb('0xc5')](_0x2c3d45);const _0x30ae16=this[_0x50fb('0xcb')][_0x50fb('0x9f')][_0x50fb('0xaa')](_0x2c3d45,{}),_0x70ee33=Array[_0x50fb('0x13')](_0x30ae16[_0x50fb('0xbe')]())[_0x50fb('0x4a')](_0x270755=>this['_getViewJson'](_0x270755));return JSON['stringify'](_0x70ee33);}[_0x50fb('0xea')](_0x4f8188){if(_0x4f8188['is'](_0x50fb('0x8a')))return _0x4f8188[_0x50fb('0x9f')];{const _0x55a4af=_0x4f8188;return{'type':Object[_0x50fb('0x107')](B)['find'](_0x2b0898=>_0x4f8188 instanceof B[_0x2b0898]),'name':_0x55a4af[_0x50fb('0x55')],'attributes':Array[_0x50fb('0x13')](_0x55a4af[_0x50fb('0x6e')]()),'children':Array['from'](_0x55a4af[_0x50fb('0xbe')]())['map'](_0x27d69c=>this[_0x50fb('0xea')](_0x27d69c))};}}[_0x50fb('0x9a')](_0x551caf,_0x5e1585,_0x14c453,_0x67f4e9,_0x3c3cfc){let _0xd3bf26=null,_0x1cd8f7=null,_0x51ce5d=0x0;const _0xe15455=this[_0x50fb('0xcb')][_0x50fb('0x5e')];for(let _0x1a0686=0x0;_0x1a0686<_0x5e1585[_0x50fb('0x38')];_0x1a0686++){const _0x1138df=this['_getVidAttributeName'](_0x5e1585[_0x1a0686]),_0x2ea118=_0x5e1585[_0x1a0686][_0x50fb('0x22')]['getAttribute'](_0x1138df),_0x2f7e0f=_0x14c453[_0x50fb('0x69')](_0x2ea118),_0x1bbaf0=_0x1a0686==_0x5e1585['length']-0x1;(!_0xd3bf26&&_0x2f7e0f&&(_0xd3bf26=_0x2f7e0f,_0x1cd8f7=_0x5e1585[_0x1a0686]),_0xd3bf26&&(!_0x2f7e0f||_0x2f7e0f['userId']!=_0xd3bf26[_0x50fb('0x84')]))&&(_0x23d9ad(_0x2f7e0f,L(_0x1cd8f7,_0x551caf,_0xe15455),L(_0x5e1585[_0x1a0686],_0x551caf,_0xe15455)),_0xd3bf26=_0x2f7e0f||null,_0x1cd8f7=_0x2f7e0f?_0x5e1585[_0x1a0686]:null),_0xd3bf26&&_0x1bbaf0&&_0x23d9ad(_0x2f7e0f,L(_0x1cd8f7,_0x551caf,_0xe15455),W(_0x5e1585[_0x1a0686],_0x551caf,_0xe15455));}function _0x23d9ad(_0x1dc0d0,_0x27e2b6,_0x3f2251){const _0x129d52=_0xd3bf26[_0x50fb('0x84')],_0x6a5c5d=_0x50fb('0xdb')+_0x67f4e9+':'+_0x129d52+':'+_0x51ce5d++,_0x1f427b=_0xe15455[_0x50fb('0xe3')](_0x27e2b6,_0x3f2251);_0x551caf[_0x50fb('0x0')][_0x50fb('0x74')](_0x6a5c5d,_0x1f427b),null!==_0x129d52&&_0x3c3cfc[_0x50fb('0x89')](_0x129d52);}}['_getVidAttributeName'](_0x4741f7){switch(_0x4741f7['type']){case _0x50fb('0x80'):return _0x50fb('0xe0');case'elementEnd':return _0x50fb('0xd4');default:return _0x50fb('0x6c');}}[_0x50fb('0x8e')](_0x807da5,_0x5490f3){_0x807da5[_0x50fb('0x6')]=null;for(const _0x47b66a in _0x807da5){const _0x1460cf=_0x807da5[_0x47b66a];if(_0x1460cf instanceof _0x43e92a){const _0x59fdb0=_0x5490f3['get'](_0x1460cf['root'][_0x50fb('0xe9')]);_0x807da5[_0x47b66a]=this['_fixPosition'](_0x1460cf,_0x59fdb0);}if(_0x1460cf instanceof _0x7b4d61){const _0x760d5=_0x5490f3[_0x50fb('0x69')](_0x1460cf[_0x50fb('0xfb')]['rootName']);_0x807da5[_0x47b66a]=this['_fixRange'](_0x1460cf,_0x760d5);}_0x50fb('0xfb')===_0x47b66a&&(_0x807da5[_0x50fb('0xfb')]=_0x5490f3['get'](_0x807da5[_0x50fb('0xfb')]['rootName']));}}[_0x50fb('0xc2')](_0x3a950c,_0x31e3f7){return this[_0x50fb('0xcb')][_0x50fb('0x5e')][_0x50fb('0xe3')](this[_0x50fb('0xe2')](_0x3a950c[_0x50fb('0x91')],_0x31e3f7),this[_0x50fb('0xe2')](_0x3a950c[_0x50fb('0x4d')],_0x31e3f7));}[_0x50fb('0xe2')](_0x347109,_0x59242f){return this['editor']['model']['createPositionFromPath'](_0x59242f,_0x347109[_0x50fb('0xef')],_0x347109[_0x50fb('0x67')]);}[_0x50fb('0x2c')](_0x189aba){const _0x58b59c=this[_0x50fb('0xfc')][_0x50fb('0x69')](_0x189aba[_0x50fb('0x99')][_0x50fb('0xfb')][_0x50fb('0xe9')]),_0x3edb93=this[_0x50fb('0xe2')](_0x189aba['position'],_0x58b59c),_0x3ac253=null===_0x189aba[_0x50fb('0xca')]?null:_0x189aba['_authorId']||this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x41b999=_0x3edb93[_0x50fb('0x78')],_0x3550c8=this[_0x50fb('0x59')],_0x38a9c9=[];for(const _0x777ed4 of _0x189aba[_0x50fb('0x45')])if(_0x777ed4['is'](_0x50fb('0x2f')))_0x38a9c9[_0x50fb('0xd3')](this['_makeIdsRoot'](_0x777ed4));else for(let _0x58df4b=0x0;_0x58df4b<_0x777ed4[_0x50fb('0xba')];_0x58df4b++)_0x38a9c9[_0x50fb('0xd3')](new _0x161915(_0x50fb('0x8a'),{'vid':this[_0x50fb('0x59')]++}));const _0x2838ca=this[_0x50fb('0x59')];for(let _0x42c410=_0x3550c8;_0x42c410<_0x2838ca;_0x42c410++)this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x42c410,{'userId':_0x3ac253});_0x41b999[_0x50fb('0x1e')](_0x3edb93[_0x50fb('0x1b')],_0x38a9c9);}['_handleMoveOperation'](_0x448b4e){(_0x448b4e=this['_cloneOperation'](_0x448b4e,this[_0x50fb('0xfc')]))['_execute']();const _0x285838=null===_0x448b4e['_authorId']?null:_0x448b4e['_authorId']||this[_0x50fb('0xcb')]['plugins'][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x40ca97=_0x448b4e[_0x50fb('0x2d')](),_0x132bec=_0x40ca97['parent'],_0x41a002=_0x40ca97[_0x50fb('0x1b')];!function _0x5d62d0(_0x43b50a,_0x1f6c71,_0x144fe6,_0x131cce){for(let _0x534728=_0x144fe6;_0x534728<_0x131cce;_0x534728++){const _0x400c82=_0x1f6c71[_0x50fb('0x3e')](_0x534728);_0x400c82['is'](_0x50fb('0x2f'),'$text')?_0x43b50a[_0x50fb('0x74')](_0x400c82[_0x50fb('0x8d')](_0x50fb('0x6c')),{'userId':_0x285838}):(_0x43b50a['set'](_0x400c82[_0x50fb('0x8d')](_0x50fb('0xe0')),{'userId':_0x285838}),_0x5d62d0(_0x43b50a,_0x400c82,0x0,_0x400c82[_0x50fb('0x8')]),_0x43b50a[_0x50fb('0x74')](_0x400c82[_0x50fb('0x8d')](_0x50fb('0xd4')),{'userId':_0x285838}));}}(this[_0x50fb('0xbb')],_0x132bec,_0x41a002,_0x41a002+_0x448b4e[_0x50fb('0xb7')]);}[_0x50fb('0xf')](_0x4bae81){const _0x4aa134=null===(_0x4bae81=this['_cloneOperation'](_0x4bae81,this[_0x50fb('0xfc')]))[_0x50fb('0xca')]?null:_0x4bae81[_0x50fb('0xca')]||this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0xe4d699=_0x4bae81[_0x50fb('0x61')][_0x50fb('0x78')],_0x1d0345=_0x4bae81['sourcePosition']['parent'],_0x36a110=_0xe4d699[_0x50fb('0x8d')]('vid_end'),_0x28df77=_0x1d0345[_0x50fb('0x8d')]('vid_start');_0xe4d699[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x1d0345[_0x50fb('0x8d')](_0x50fb('0xd4'))),_0x1d0345['_setAttribute'](_0x50fb('0xd4'),_0x36a110),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x28df77,{'userId':_0x4aa134}),this['_touched'][_0x50fb('0x74')](_0x36a110,{'userId':_0x4aa134}),_0x4bae81[_0x50fb('0xb9')]();}[_0x50fb('0x11')](_0x5cc15e){const _0x1fadef=null===(_0x5cc15e=this[_0x50fb('0x1d')](_0x5cc15e,this[_0x50fb('0xfc')]))[_0x50fb('0xca')]?null:_0x5cc15e['_authorId']||this['editor']['plugins'][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x46727d=_0x5cc15e[_0x50fb('0x4e')],_0x1038a9=_0x5cc15e[_0x50fb('0x9')]['parent'];_0x5cc15e[_0x50fb('0xb9')]();const _0x28fafa=_0x1038a9[_0x50fb('0x8d')](_0x50fb('0xd4')),_0x13cd5e=_0x5cc15e['insertionPosition'][_0x50fb('0x2')];if(_0x46727d){const _0x19c48e=_0x13cd5e['getAttribute']('vid_end'),_0x1416f1=_0x1038a9['getAttribute'](_0x50fb('0xd4'));_0x1038a9[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x19c48e),_0x13cd5e[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x1416f1),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x1038a9[_0x50fb('0x8d')](_0x50fb('0xd4')),{'userId':_0x1fadef}),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x13cd5e[_0x50fb('0x8d')](_0x50fb('0xe0')),{'userId':_0x1fadef});}else{const _0x4f9d2c=this['_revisionId']++,_0x455791=this[_0x50fb('0x59')]++;_0x1038a9['_setAttribute'](_0x50fb('0xd4'),_0x4f9d2c),_0x13cd5e[_0x50fb('0xd9')](_0x50fb('0xe0'),_0x455791),_0x13cd5e[_0x50fb('0xd9')](_0x50fb('0xd4'),_0x28fafa),this[_0x50fb('0xbb')][_0x50fb('0x74')](_0x4f9d2c,{'userId':_0x1fadef}),this[_0x50fb('0xbb')]['set'](_0x455791,{'userId':_0x1fadef});}}[_0x50fb('0xa8')](_0x3dc2c3){if(!_0x3dc2c3['affectsData'])return;const _0x3d3af0=(_0x3dc2c3=this[_0x50fb('0x1d')](_0x3dc2c3,this[_0x50fb('0x6a')]))[_0x50fb('0x19')]?_0x3dc2c3[_0x50fb('0x19')]['root']:null,_0x25bd45=_0x3dc2c3[_0x50fb('0xd5')]?_0x3dc2c3['newRange'][_0x50fb('0xfb')]:null;_0x3d3af0&&this[_0x50fb('0x103')][_0x50fb('0x8c')](_0x3dc2c3[_0x50fb('0x55')]),_0x25bd45&&this[_0x50fb('0x103')][_0x50fb('0x74')](_0x3dc2c3['name'],_0x3dc2c3[_0x50fb('0xd5')][_0x50fb('0x81')]());const _0x3f6b32=null===_0x3dc2c3['_authorId']?null:_0x3dc2c3['_authorId']||this[_0x50fb('0xcb')][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x5d9f2a=_0x3dc2c3[_0x50fb('0x55')];if(!this[_0x50fb('0xc0')]['has'](_0x5d9f2a))return void this['_touchedMarkers'][_0x50fb('0x74')](_0x5d9f2a,{'range':_0x3dc2c3[_0x50fb('0x19')],'userId':_0x3f6b32});const _0x4dd4f7=this[_0x50fb('0xc0')][_0x50fb('0x69')](_0x5d9f2a),_0x5ea94a=_0x4dd4f7[_0x50fb('0xde')],_0x5bdf36=_0x3dc2c3[_0x50fb('0xd5')];null==_0x5ea94a&&null==_0x5bdf36||_0x5ea94a&&_0x5bdf36&&_0x5ea94a[_0x50fb('0x82')](_0x5bdf36)?this[_0x50fb('0xc0')]['delete'](_0x3dc2c3[_0x50fb('0x55')]):_0x4dd4f7[_0x50fb('0x84')]=_0x3f6b32;}[_0x50fb('0xc6')](_0xd1a7ec,_0x19b74b){this[_0x50fb('0x6a')]['has'](_0xd1a7ec[_0x50fb('0xe9')])?this['_diffRoots'][_0x50fb('0x69')](_0xd1a7ec[_0x50fb('0xe9')])['_isAttached']=_0xd1a7ec['isAdd']:(this['_diffRoots'][_0x50fb('0x74')](_0xd1a7ec[_0x50fb('0xe9')],G(_0xd1a7ec[_0x50fb('0xe9')],!0x0)),this[_0x50fb('0x40')][_0x50fb('0x74')](_0xd1a7ec[_0x50fb('0xe9')],{}),_0x19b74b&&this['_idsRoots'][_0x50fb('0x74')](_0xd1a7ec['rootName'],G(_0xd1a7ec['rootName'],!0x0)));const _0x46bee9=null===_0xd1a7ec[_0x50fb('0xca')]?null:_0xd1a7ec['_authorId']||this['editor'][_0x50fb('0x27')][_0x50fb('0x69')](_0x50fb('0xaf'))['me']['id'],_0x1436b1=this[_0x50fb('0x9d')][_0x50fb('0x69')](_0xd1a7ec[_0x50fb('0xe9')]);_0x1436b1&&_0x1436b1['userId']===_0x46bee9?this['_touchedRoots'][_0x50fb('0x8c')](_0xd1a7ec[_0x50fb('0xe9')]):this[_0x50fb('0x9d')][_0x50fb('0x74')](_0xd1a7ec[_0x50fb('0xe9')],{'userId':_0x46bee9,'isAttached':_0xd1a7ec['isAdd']});}[_0x50fb('0x2a')](_0x32ab4e){const _0x3bc48f=this['_diffRootsAttributes'][_0x50fb('0x69')](_0x32ab4e['root'][_0x50fb('0xe9')]);null===_0x32ab4e[_0x50fb('0x34')]?delete _0x3bc48f[_0x32ab4e[_0x50fb('0x104')]]:_0x3bc48f[_0x32ab4e[_0x50fb('0x104')]]=_0x32ab4e[_0x50fb('0x34')];}}function q(_0x2d6b9d){const _0x28407f=G(_0x2d6b9d['rootName'],_0x2d6b9d[_0x50fb('0x16')]());for(const _0x35619a of _0x2d6b9d[_0x50fb('0xbe')]()){const _0x4e174e=_0x35619a[_0x50fb('0x43')](!0x0);_0x28407f[_0x50fb('0xd2')](_0x4e174e);}return _0x28407f;}function G(_0x31c7c9,_0x388724=!0x0){const _0x3466a8=new _0x496a5b();return _0x3466a8[_0x50fb('0xe9')]=_0x31c7c9,_0x3466a8[_0x50fb('0xf2')]=_0x388724,_0x3466a8[_0x50fb('0x16')]=()=>_0x3466a8[_0x50fb('0xf2')],_0x3466a8;}function L(_0x22b78d,_0x584730,_0x2afa5a){const _0x2ac565=_0x50fb('0xd1')==_0x22b78d[_0x50fb('0x88')]?_0x2afa5a[_0x50fb('0x6f')](_0x22b78d['item'],_0x50fb('0x4d')):_0x2afa5a[_0x50fb('0xd7')](_0x22b78d['item']);return _0x2afa5a['createPositionFromPath'](_0x584730,_0x2ac565[_0x50fb('0xef')],_0x2ac565[_0x50fb('0x67')]);}function W(_0x1745af,_0x3e3327,_0x412a3f){const _0x67c546=_0x50fb('0x80')==_0x1745af[_0x50fb('0x88')]?_0x412a3f[_0x50fb('0x6f')](_0x1745af[_0x50fb('0x22')],0x0):_0x412a3f[_0x50fb('0x3')](_0x1745af['item']);return _0x412a3f[_0x50fb('0x29')](_0x3e3327,_0x67c546['path'],_0x67c546['stickiness']);}
|