@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231228.0 → 0.0.0-nightly-20231230.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +5 -5
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5244=['rootName','_loadedStateData','howMany','oldRange','getAttribute','_insertChild','removeRootAttribute','_startingRevisionId','_createFromRanges','PendingActions','insertion','shift','_fixRange','history','end','_fixOperation','_loadRevisionData','requires','getOperations','_handleRootAttributeOperation','_lastFrom','set','sourcePosition','repository','item','source','getData','createPositionAfter','_replaceEditorDataWithRevisionData','elementStart','changeRootAttribute','_removeMetaData','graveyardPosition','_baseRootsAttributes','_continueCurrentRevision','RevisionTracker','documentFragment','update','addRevisionData','insert','initial','Empty\x20document','_saveMetaData','string','getRevisions','trim','clone','getCurrentRevisionId','from','elementEnd','has','split','deletions','fromEntries','userId','_findInsertionIndex','createPositionAt','getTransformedByOperation','_bufferedUpdates','key','clear','getUser','attributesAfter','currentRevision','map','isAttached','_diffRootsAttributes','resolve','attributesBefore','model','define','_touchedMarkers','sort','document','isEnabled','offsetSize','toVersion','vid_start','getRoot','useFillerType','getAncestors','_revisionId','add','getNodeByPath','baseVersion','_startingVersion','_diffRoots','attachChange','createPositionFromPath','hasContent','isReady','_lastTo','offset','attributes','_getFromVersion','newValue','insertions','range','finally','_addPendingAction','_makeModelFromViewString','_handleInsertOperation','_reset','getIndex','forEach','_getViewJson','roots','vid_end','root','_appendChild','bind','some','_getBaseVids','getRootNames','isEqual','_isPendingUpdate','isAdd','nodes','_isInit','_handleSplitOperation','values','push','marker','getRange','authors','Users','init','previousPosition','affectsData','_handleRootOperation','rootsAttributes','authorsIds','createRange','_setAttribute','revision-end','creatorId','getRevision','addRoot','markerToData','path','for','_transformMarkers','children','collaboration.channelId','version','editor','markers','creator','_initialRevisionId','fromVersion','getTime','_applyOperations','stringify','length','_revisionDataBuilder','setSource','_calculateMetaData','$text','keys','_touchedRoots','_markChanges','_isAttached','revision','reverse','deletion','loadState','parent','data','_touched','setRevisionData','$graveyard','addRootAttribute','vid','_makeIdsRoot','revision-start','revisionHistory.resumeUnsavedRevision','delete','getAttributes','newRange','tableCell','getRevisionDocumentData','buildRevisionData','_copyMarkers','addRevision','_handleMoveOperation','getMovedRangeStart','updateRevisions','view','plugins','_createCurrentRevision','getWalker','getRevisionRootsAttributes','find','nodeAfter','name','createRevision','_execute','_fixPosition','reInit','marked','editor-initial-data-replaced-with-revision-data','_authorId','afterInit','_handleOperation','locale','data-revision-','reinsert','revision:','targetPosition','remove','_getPreviousFrom','sendBufferedUpdates','initialData','_prepareViewToSave','size','start','_markers','_savedMetaData','conversion','move','_baseRoots','filter','type','_generateTape','_createInitialRevision','element','getLatestVersion','_bufferUpdate','processor','childCount','_makeRevision','_removeRevisionMarkers','_source','_update','get','_handleMarkerOperation','RevisionsRepository','paragraph','_removePendingAction','editing','diffData','createdAt','_idsRoots','position','_baseIdsRoots','toModel','dataDowncast','_loadState','adapter','then','getChild','_cloneOperation','_handleMergeOperation','NEGATIVE_INFINITY','_pendingAction','startsWith','PENDING_ACTION_REVISION_HISTORY','includes','_getVidAttributeName','_getState','_clone','slice','config','createRangeIn','getChildren'];(function(_0x219ec7,_0x5244c8){const _0x14e991=function(_0x530489){while(--_0x530489){_0x219ec7['push'](_0x219ec7['shift']());}};_0x14e991(++_0x5244c8);}(_0x5244,0xf1));const _0x14e9=function(_0x219ec7,_0x5244c8){_0x219ec7=_0x219ec7-0x0;let _0x14e991=_0x5244[_0x219ec7];return _0x14e991;};import{Users as _0xa1626e}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x3d62a6,PendingActions as _0x3083ab}from'ckeditor5/src/core.js';import{logWarning as _0x41b416,uid as _0xbd0158}from'ckeditor5/src/utils.js';import{Position as _0x2e12b2,Range as _0xe568a4,Element as _0x2f8e61,DocumentFragment as _0x2e2c8b,ViewText as _0x18ae4b,ViewElement as _0x1da778,ViewContainerElement as _0x7a331e,ViewAttributeElement as _0x5e4eb2,ViewEmptyElement as _0x3ff636,ViewRawElement as _0x527fad,ViewUIElement as _0x1ae942,ViewDocumentFragment as _0x295250}from'ckeditor5/src/engine.js';import _0x578f89 from'./revisionsrepository.js';import{getTranslation as _0x44a65b}from'./utils/common-translations.js';import{cloneDeep as _0x3babc4,isEqual as _0x2ba955}from'lodash-es';const B={'c':_0x7a331e,'a':_0x5e4eb2,'e':_0x3ff636,'r':_0x527fad,'u':_0x1ae942};export default class l extends _0x3d62a6{static get['pluginName'](){return _0x14e9('0x3b');}static get[_0x14e9('0x29')](){return[_0xa1626e,_0x578f89,_0x3083ab];}constructor(_0x494ce4){super(_0x494ce4),this[_0x14e9('0x7')]=null,this[_0x14e9('0x57')]=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0x14e9('0xac')]=this[_0x14e9('0xa9')]['config'][_0x14e9('0x102')](_0x14e9('0xa7'))||_0x14e9('0x40'),this[_0x14e9('0x52')]=new Map(),this[_0x14e9('0x19')]=null;const _0x43de78=_0xbd0158();this[_0x14e9('0x100')]={'history':this[_0x14e9('0xa9')]['model'][_0x14e9('0x61')][_0x14e9('0x25')],'getLatestVersion':()=>Promise[_0x14e9('0x5b')](this[_0x14e9('0xa9')][_0x14e9('0x5d')]['document']['version']),'getCurrentRevisionId':()=>_0x43de78},this[_0x14e9('0x2d')](_0x14e9('0x72'),!0x1),this[_0x14e9('0x2d')](_0x14e9('0x62'),!0x0),this[_0x14e9('0x2d')](_0x14e9('0x8b'),!0x1),this[_0x14e9('0xa9')][_0x14e9('0x15')][_0x14e9('0x5e')](_0x14e9('0xc7'),!0x0),this[_0x14e9('0xa9')]['conversion'][_0x14e9('0xa4')]('upcast')['dataToMarker']({'view':'revision'});}['init'](){this[_0x14e9('0x2f')]=this[_0x14e9('0xa9')][_0x14e9('0xd4')][_0x14e9('0x102')](_0x14e9('0x104')),this['_setConversion'](),this[_0x14e9('0xa9')][_0x14e9('0xbf')]['on']('ready',()=>{const _0x141448=this[_0x14e9('0x2f')][_0x14e9('0xa0')](0x0),_0x4b41b7=_0x141448&&null===_0x141448['creator']?_0x141448:null;if(this[_0x14e9('0x3a')]=!!_0x4b41b7&&this[_0x14e9('0xa9')]['config'][_0x14e9('0x102')](_0x14e9('0xc7')),this['editor'][_0x14e9('0xd4')]['has']('RealTimeCollaborationClient')){const _0x25aabb=this['_source'][_0x14e9('0x47')](),_0x375066=this[_0x14e9('0x2f')][_0x14e9('0xa0')](_0x25aabb);if(_0x375066)this['_startingVersion']=_0x375066[_0x14e9('0xad')],this[_0x14e9('0x3a')]=!0x1;else{const _0x11a7d0=this[_0x14e9('0x100')][_0x14e9('0x25')]['_operations'][_0x14e9('0xd8')](_0xb1259b=>!_0xb1259b[_0x14e9('0x8e')]),_0x441462=_0x11a7d0?_0x11a7d0[_0x14e9('0x6c')]:this[_0x14e9('0x100')][_0x14e9('0x25')][_0x14e9('0xa8')];_0x141448?(_0x141448[_0x14e9('0x64')]<_0x441462&&_0x141448[_0x14e9('0x101')]({'toVersion':_0x441462}),this[_0x14e9('0x3a')]?(this[_0x14e9('0x100')][_0x14e9('0x47')]=()=>_0x4b41b7['id'],this[_0x14e9('0x6d')]=_0x4b41b7[_0x14e9('0xad')]):(this['_startingVersion']=_0x141448['toVersion'],this['_continueCurrentRevision']=!0x1)):(this[_0x14e9('0x6d')]=_0x441462,this[_0x14e9('0x3a')]=!0x1);}}else _0x4b41b7&&(this[_0x14e9('0xa9')][_0x14e9('0x5d')][_0x14e9('0x61')]['history'][_0x14e9('0xa8')]=Math['max'](_0x4b41b7[_0x14e9('0x64')],this[_0x14e9('0xa9')][_0x14e9('0x5d')]['document'][_0x14e9('0x25')]['version']),_0x4b41b7[_0x14e9('0xad')]===_0x4b41b7[_0x14e9('0x64')]?(0x0!==_0x4b41b7[_0x14e9('0xad')]&&(this['_source'][_0x14e9('0x47')]=()=>_0x4b41b7['id']),this[_0x14e9('0x3a')]=!0x1):this[_0x14e9('0x3a')]&&(this[_0x14e9('0x100')][_0x14e9('0x47')]=()=>_0x4b41b7['id'],this[_0x14e9('0x6d')]=_0x4b41b7[_0x14e9('0xad')])),this[_0x14e9('0x3a')]||(this[_0x14e9('0x6d')]=this[_0x14e9('0xa9')][_0x14e9('0x5d')]['document'][_0x14e9('0xa8')]);this[_0x14e9('0xb2')][_0x14e9('0x96')](this['_source'][_0x14e9('0x25')]),this[_0x14e9('0xf8')](this[_0x14e9('0x6d')]),this[_0x14e9('0xd5')](this[_0x14e9('0x6d')]),this[_0x14e9('0x7')]&&this[_0x14e9('0xeb')]();}),this[_0x14e9('0x86')](_0x14e9('0x72'))['to'](this,'_isPendingUpdate',_0x264c4d=>!_0x264c4d);}async[_0x14e9('0xe2')](){if(this[_0x14e9('0x2f')][_0x14e9('0xb1')]>0x0){const _0x586cd1=this[_0x14e9('0x2f')][_0x14e9('0xa0')](0x0),_0x5b24dd=await this[_0x14e9('0xcc')](_0x586cd1),_0x4bd6ca=await this[_0x14e9('0xd7')](_0x586cd1);this[_0x14e9('0x34')](_0x5b24dd,_0x4bd6ca);}}[_0x14e9('0xb3')](_0x18135c){this[_0x14e9('0x100')]=_0x18135c;}async[_0x14e9('0x3d')](){const _0x113ead=await this['_source'][_0x14e9('0xfa')]();if(_0x113ead>this[_0x14e9('0x57')][_0x14e9('0x64')]){await this[_0x14e9('0x6')]();const _0x2851b7=this[_0x14e9('0xcd')]({'revision':this[_0x14e9('0x57')],'to':_0x113ead});_0x2851b7[_0x14e9('0x94')]=_0x2851b7[_0x14e9('0x9b')][_0x14e9('0x58')](_0x3f968b=>this[_0x14e9('0xa9')][_0x14e9('0xd4')][_0x14e9('0x102')](_0x14e9('0x95'))[_0x14e9('0x55')](_0x3f968b)),this[_0x14e9('0x57')]['_update'](_0x2851b7);}}async[_0x14e9('0x6')](){this[_0x14e9('0x3a')]&&!this[_0x14e9('0x19')]&&(await this[_0x14e9('0x28')](this[_0x14e9('0x57')]),this['_revisionDataBuilder'][_0x14e9('0xbd')](this[_0x14e9('0x57')]),this[_0x14e9('0x19')]={'fromVersion':this[_0x14e9('0x57')][_0x14e9('0xad')],'authors':this[_0x14e9('0x57')][_0x14e9('0x94')][_0x14e9('0x14')]()});}async['saveRevision'](_0x36f000={},_0x1e65c3=null){const _0x8bd1e1=[];await this[_0x14e9('0x6')](),this[_0x14e9('0x3a')]=!0x1,_0x1e65c3>this[_0x14e9('0x57')][_0x14e9('0x64')]&&(_0x1e65c3=null),null===_0x1e65c3&&(_0x1e65c3=await this['_source'][_0x14e9('0xfa')]());const _0x37a6be=this[_0x14e9('0x76')](_0x1e65c3),_0xc7d42a=this[_0x14e9('0xcd')]({'from':_0x37a6be,'to':_0x1e65c3});if(this['currentRevision']['toVersion']<_0x1e65c3){const _0x3c5505=this[_0x14e9('0xcd')]({'revision':this['currentRevision'],'from':_0x1e65c3,'to':_0x1e65c3});_0x3c5505[_0x14e9('0x94')]=[],_0x3c5505[_0x14e9('0x9b')]=[],_0x3c5505['id']=this[_0x14e9('0x57')]['id'],this[_0x14e9('0x57')][_0x14e9('0x101')](_0x3c5505,!0x0),delete _0x3c5505[_0x14e9('0x94')],_0x8bd1e1['push'](_0x3c5505);}_0x36f000['creatorId']=this[_0x14e9('0xa9')][_0x14e9('0xd4')]['get']('Users')['me']['id'],_0x36f000[_0x14e9('0xda')]=_0x36f000[_0x14e9('0xda')]||null,_0x36f000['id']=_0x36f000['id']||_0xbd0158(),_0x36f000={..._0x36f000,..._0xc7d42a};const _0x6cb549=this['addRevisionData'](_0x36f000);_0x8bd1e1[_0x14e9('0x91')](_0x36f000);const _0xee791c=this[_0x14e9('0x2f')][_0x14e9('0x7f')](_0x6cb549);if(0x0!==_0xee791c){const _0x598470=this[_0x14e9('0x2f')][_0x14e9('0xa0')](_0xee791c-0x1);if(_0x598470[_0x14e9('0xad')]!==_0x1e65c3){const _0x42e5d3=this['_revisionDataBuilder'][_0x14e9('0x32')](_0x1e65c3,_0x598470[_0x14e9('0x64')]),_0x278306={'id':_0x598470['id'],'diffData':_0x42e5d3['diffData'],'authorsIds':_0x42e5d3[_0x14e9('0x9b')],'authors':_0x42e5d3[_0x14e9('0x9b')]['map'](_0x2ea45c=>this[_0x14e9('0xa9')][_0x14e9('0xd4')][_0x14e9('0x102')](_0x14e9('0x95'))['getUser'](_0x2ea45c)),'fromVersion':_0x1e65c3};_0x598470===this['currentRevision']&&(_0x278306[_0x14e9('0x0')]=new Date(_0x36f000[_0x14e9('0x0')][_0x14e9('0xae')]()+0xa)),_0x598470[_0x14e9('0x101')](_0x278306,!0x0),delete _0x278306[_0x14e9('0x94')],_0x8bd1e1[_0x14e9('0x91')](_0x278306);}}if(this['adapter']){for(const _0x570463 of _0x8bd1e1)this['_bufferUpdate'](_0x570463['id'],_0x570463,!0x0);this[_0x14e9('0xeb')]();}return _0x6cb549;}[_0x14e9('0x3e')](_0x1cc80e){const _0x199b23=this[_0x14e9('0x2f')][_0x14e9('0xdb')](_0x1cc80e);return this[_0x14e9('0x7')]&&_0x199b23['on'](_0x14e9('0x101'),(_0x116518,_0x687eee,_0x44f0e8)=>{_0x44f0e8||(this[_0x14e9('0xfb')](_0x687eee['id'],_0x687eee,!0x0),this[_0x14e9('0xeb')]());}),this['repository'][_0x14e9('0xcf')](_0x199b23,this[_0x14e9('0x4f')](_0x199b23)),_0x199b23;}async[_0x14e9('0xcc')](_0x1faf92){await this[_0x14e9('0x28')](_0x1faf92);const _0x5440f7={};for(const _0x33e888 in _0x1faf92[_0x14e9('0x108')]){if(_0x1faf92[_0x14e9('0x108')][_0x33e888][_0x14e9('0x6f')]&&!_0x1faf92[_0x14e9('0x108')][_0x33e888][_0x14e9('0x6f')][_0x14e9('0x59')])continue;const _0x53fc98=this[_0x14e9('0xff')](JSON['parse'](_0x1faf92[_0x14e9('0x108')][_0x33e888][_0x14e9('0x78')])),_0x419ffb=this[_0x14e9('0xa9')][_0x14e9('0x107')][_0x14e9('0xd3')][_0x14e9('0x61')],_0x17c56a=new _0x295250(_0x419ffb,_0x53fc98[_0x14e9('0x58')](_0x1d8798=>J(_0x1d8798,this['editor'])));this[_0x14e9('0xa9')][_0x14e9('0xbf')][_0x14e9('0xfc')][_0x14e9('0x67')](_0x14e9('0xdf')),_0x5440f7[_0x33e888]=this[_0x14e9('0xa9')]['data'][_0x14e9('0xfc')]['toData'](_0x17c56a),this[_0x14e9('0xa9')]['data'][_0x14e9('0xfc')][_0x14e9('0x67')]('default');}return _0x5440f7;}async['getRevisionRootsAttributes'](_0xbaa081){await this[_0x14e9('0x28')](_0xbaa081);const _0x1be60b={};for(const _0x2d7a90 in _0xbaa081[_0x14e9('0x108')])_0xbaa081[_0x14e9('0x108')][_0x2d7a90]['attachChange']&&!_0xbaa081['diffData'][_0x2d7a90][_0x14e9('0x6f')][_0x14e9('0x59')]||(_0x1be60b[_0x2d7a90]=_0xbaa081[_0x14e9('0x108')][_0x2d7a90][_0x14e9('0x56')]||{});return _0x1be60b;}[_0x14e9('0xeb')](){if(0x0===this['_bufferedUpdates'][_0x14e9('0xee')])return;if(this[_0x14e9('0x8b')])return;let _0x342280=Array[_0x14e9('0x48')](this[_0x14e9('0x52')][_0x14e9('0x90')]());this[_0x14e9('0x52')][_0x14e9('0x54')]();for(let _0x4ecf46=0x0;_0x4ecf46<_0x342280[_0x14e9('0xb1')];_0x4ecf46++){const _0x4b4bb4=_0x342280[_0x4ecf46];let _0x4f2281=!0x1;for(const _0x23cbf5 of Object[_0x14e9('0xb6')](_0x4b4bb4))void 0x0===_0x4b4bb4[_0x23cbf5]?delete _0x4b4bb4[_0x23cbf5]:'id'!==_0x23cbf5&&(_0x4f2281=!0x0);_0x4f2281||(_0x342280[_0x4ecf46]=null);}if(_0x342280=_0x342280[_0x14e9('0xf5')](_0x30eeda=>null!==_0x30eeda),!_0x342280[_0x14e9('0xb1')])return;for(let _0x569918=0x0;_0x569918<_0x342280[_0x14e9('0xb1')];_0x569918++){const _0x335752=_0x342280[_0x569918];void 0x0!==_0x335752['fromVersion']&&void 0x0===_0x335752[_0x14e9('0x64')]&&(_0x335752[_0x14e9('0x64')]=this['repository']['getRevision'](_0x335752['id'])[_0x14e9('0x64')]),void 0x0!==_0x335752[_0x14e9('0x64')]&&void 0x0===_0x335752['fromVersion']&&(_0x335752[_0x14e9('0xad')]=this[_0x14e9('0x2f')]['getRevision'](_0x335752['id'])['fromVersion']);}const _0x343166=this[_0x14e9('0xa9')][_0x14e9('0x15')]['get'](_0x14e9('0xa7'));this[_0x14e9('0x8b')]=!0x0,this[_0x14e9('0x7b')](),this[_0x14e9('0x7')][_0x14e9('0xd2')](_0x342280,_0x343166)[_0x14e9('0x7a')](()=>{this['_isPendingUpdate']=!0x1;})[_0x14e9('0x8')](_0x183733=>{if(_0x183733)for(const _0x10e723 of _0x183733)this['setRevisionData']({'id':_0x10e723['id'],'createdAt':_0x10e723[_0x14e9('0x0')]});this['_removePendingAction'](),this[_0x14e9('0xeb')]();});}[_0x14e9('0x34')](_0x1e7055,_0x5a5353){let _0x46507b=this[_0x14e9('0xa9')]['config'][_0x14e9('0x102')](_0x14e9('0xec')),_0x3b99f7=this[_0x14e9('0xa9')][_0x14e9('0x15')][_0x14e9('0x102')](_0x14e9('0x9a'));if(void 0x0===_0x46507b){_0x46507b={};for(const _0x4c3792 of this['editor'][_0x14e9('0x5d')][_0x14e9('0x61')][_0x14e9('0x89')]())_0x46507b[_0x4c3792]='';}if(_0x14e9('0x43')==typeof _0x46507b&&(_0x46507b={'main':_0x46507b}),void 0x0===_0x3b99f7){_0x3b99f7={};for(const _0x14f238 of this['editor'][_0x14e9('0x5d')][_0x14e9('0x61')][_0x14e9('0x89')]())_0x3b99f7[_0x14f238]={};}let _0x1b21d0=!0x1;const _0x37371f=Object[_0x14e9('0xb6')](_0x46507b),_0x4e3d3a=Object[_0x14e9('0xb6')](_0x1e7055);for(const _0x40766f of _0x37371f){if(_0x46507b[_0x40766f]!==_0x1e7055[_0x40766f]&&''!==_0x46507b[_0x40766f][_0x14e9('0x45')]()){_0x1b21d0=!0x0;break;}if(!_0x2ba955(_0x3b99f7[_0x40766f],_0x5a5353[_0x40766f])&&Object['keys'](_0x3b99f7[_0x40766f])['length']>0x0){_0x1b21d0=!0x0;break;}}_0x1b21d0||(_0x1b21d0=_0x4e3d3a[_0x14e9('0x87')](_0xdf9b1=>!this[_0x14e9('0xa9')]['model']['document']['getRoot'](_0xdf9b1))),_0x1b21d0&&_0x41b416(_0x14e9('0xe0'),{'editorData':_0x46507b,'editorRootsAttributes':_0x3b99f7,'revisionData':_0x1e7055,'revisionRootsAttributes':_0x5a5353}),this[_0x14e9('0xa9')][_0x14e9('0x15')]['set'](_0x14e9('0xec'),_0x1e7055),this[_0x14e9('0xa9')]['config'][_0x14e9('0x2d')]('rootsAttributes',_0x5a5353);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x69aa81=this[_0x14e9('0xa9')]['plugins']['get'](_0x14e9('0x21'));this[_0x14e9('0xd')]=_0x69aa81[_0x14e9('0x6a')](_0x44a65b(this[_0x14e9('0xa9')][_0x14e9('0xe4')],_0x14e9('0xf')));}}[_0x14e9('0x106')](){this[_0x14e9('0xd')]&&(this[_0x14e9('0xa9')][_0x14e9('0xd4')][_0x14e9('0x102')]('PendingActions')['remove'](this[_0x14e9('0xd')]),this[_0x14e9('0xd')]=null);}[_0x14e9('0x4f')](_0x5ba91b){const _0x86f0f4=this['repository']['getRevisions']();_0x86f0f4[_0x14e9('0xbb')]();let _0x24a6af=0x0;for(;_0x24a6af<_0x86f0f4[_0x14e9('0xb1')];){const _0x1b106f=_0x86f0f4[_0x24a6af];if(_0x1b106f===this[_0x14e9('0x57')]){_0x24a6af++;continue;}if(_0x1b106f['id']===this['_initialRevisionId'])break;const _0x7fcbc5=_0x5ba91b[_0x14e9('0x64')]-_0x1b106f[_0x14e9('0x64')]||_0x5ba91b[_0x14e9('0xad')]-_0x1b106f['fromVersion'];if(_0x7fcbc5>0x0)break;if(_0x7fcbc5<0x0)_0x24a6af++;else{if(!_0x5ba91b['creator']&&_0x1b106f[_0x14e9('0xab')])break;if(_0x1b106f[_0x14e9('0xab')]||!_0x5ba91b[_0x14e9('0xab')]){if(_0x5ba91b[_0x14e9('0x0')]>_0x1b106f['createdAt'])break;_0x24a6af++;}else _0x24a6af++;}}return _0x24a6af;}[_0x14e9('0xc1')](_0x5268cd){const _0x17f48c=this[_0x14e9('0x2f')][_0x14e9('0xa0')](_0x5268cd['id']);if(_0x5268cd[_0x14e9('0x0')]&&(_0x5268cd[_0x14e9('0x0')]=new Date(_0x5268cd[_0x14e9('0x0')])),_0x5268cd[_0x14e9('0x9b')]){const _0x2949fe=this[_0x14e9('0xa9')][_0x14e9('0xd4')]['get'](_0x14e9('0x95'));_0x5268cd[_0x14e9('0x94')]=_0x5268cd[_0x14e9('0x9b')][_0x14e9('0x58')](_0x44ac02=>_0x2949fe[_0x14e9('0x55')](_0x44ac02));}_0x17f48c[_0x14e9('0x101')](_0x5268cd,!0x0);}['buildRevisionData']({revision:_0xbdf6d=null,from:_0x565343=null,to:_0x1f050e=null}){_0x565343=null!==_0x565343?_0x565343:_0xbdf6d[_0x14e9('0xad')],_0x1f050e=null!==_0x1f050e?_0x1f050e:_0xbdf6d['toVersion'];const _0x374cff=this['_revisionDataBuilder']['getData'](_0x565343,_0x1f050e),_0x39550e={'diffData':_0x374cff[_0x14e9('0x108')],'authorsIds':_0x374cff[_0x14e9('0x9b')],'fromVersion':_0x565343,'toVersion':_0x1f050e};if(!_0xbdf6d||_0x1f050e!==_0xbdf6d[_0x14e9('0x64')]){const _0x5cc99d=_0x1f050e-0x1,_0x2dd8cf=this[_0x14e9('0x100')][_0x14e9('0x25')]['getOperation'](_0x5cc99d);_0x39550e[_0x14e9('0x0')]=_0x2dd8cf&&_0x2dd8cf['createdAt']||new Date();}if(this[_0x14e9('0x19')]&&_0x565343===this[_0x14e9('0x19')][_0x14e9('0xad')])for(const _0x3ee19e of this[_0x14e9('0x19')][_0x14e9('0x94')])_0x39550e[_0x14e9('0x9b')][_0x14e9('0x10')](_0x3ee19e['id'])||_0x39550e[_0x14e9('0x9b')]['push'](_0x3ee19e['id']);return _0x39550e;}[_0x14e9('0x28')](_0xfc3bff){if(!_0xfc3bff||_0xfc3bff[_0x14e9('0x108')])return Promise[_0x14e9('0x5b')]();{const _0x4bc4b3=this['editor'][_0x14e9('0x15')]['get'](_0x14e9('0xa7'));return this[_0x14e9('0x7')][_0x14e9('0xa0')]({'channelId':_0x4bc4b3,'revisionId':_0xfc3bff['id']})[_0x14e9('0x8')](_0x4ed3db=>{_0xfc3bff[_0x14e9('0x108')]=_0x4ed3db[_0x14e9('0x108')];});}}[_0x14e9('0xfb')](_0x482729,_0x708fe6,_0x36455a){if(this[_0x14e9('0x52')]['has'](_0x482729)){const _0x2c1898=this['_bufferedUpdates'][_0x14e9('0x102')](_0x482729);_0x708fe6=_0x36455a?{..._0x2c1898,..._0x708fe6}:{..._0x708fe6,..._0x2c1898};}this[_0x14e9('0x52')][_0x14e9('0x2d')](_0x482729,_0x708fe6);}[_0x14e9('0x76')](_0x3ad25f){const _0x3954c4=this[_0x14e9('0x2f')][_0x14e9('0x44')]();_0x3954c4['reverse'](),_0x3954c4[_0x14e9('0x23')]();const _0x473474=_0x3954c4['find'](_0x49a18c=>_0x49a18c['toVersion']<=_0x3ad25f)[_0x14e9('0x64')];return _0x473474<this[_0x14e9('0x6d')]?this[_0x14e9('0x6d')]:_0x473474;}[_0x14e9('0xf8')](_0x4cadd5){const _0x2d47ad=this[_0x14e9('0x2f')]['getRevision'](this[_0x14e9('0x2f')]['length']-0x1);if(_0x2d47ad)this[_0x14e9('0xac')]=_0x2d47ad['id'];else{const _0x3957c6=!this[_0x14e9('0xa9')]['model'][_0x14e9('0x61')][_0x14e9('0x82')][_0x14e9('0xd8')](_0x53f231=>this['editor'][_0x14e9('0x5d')][_0x14e9('0x71')](_0x53f231)),_0x31af79=this[_0x14e9('0xa9')][_0x14e9('0xd4')][_0x14e9('0x102')](_0x14e9('0x95'))['me']['id'],_0x2e8170=_0x44a65b(this[_0x14e9('0xa9')]['locale'],_0x3957c6?_0x14e9('0x41'):'Initial\x20revision');this['_makeRevision']({'from':_0x4cadd5,'to':_0x4cadd5,'id':this['_initialRevisionId'],'name':_0x2e8170,'creatorId':_0x31af79});}}[_0x14e9('0xd5')](_0x2633d1){const _0x4d1c4a=this[_0x14e9('0x100')][_0x14e9('0x47')]();this['currentRevision']=this[_0x14e9('0x2f')][_0x14e9('0xa0')](_0x4d1c4a),this[_0x14e9('0x57')]||(this[_0x14e9('0x57')]=this[_0x14e9('0xfe')]({'from':_0x2633d1,'to':_0x2633d1,'id':_0x4d1c4a,'name':'','creatorId':null}));}[_0x14e9('0xfe')]({name:_0x3dae0c,from:_0x5f2a9e,to:_0x568197,creatorId:_0x41cdca,id:_0x14b554}){const _0x459982=this[_0x14e9('0xcd')]({'from':_0x5f2a9e,'to':_0x568197});_0x459982[_0x14e9('0xda')]=_0x3dae0c,_0x459982[_0x14e9('0x9f')]=_0x41cdca,_0x459982['id']=_0x14b554;const _0x19ad72=this['addRevisionData'](_0x459982);return this[_0x14e9('0x7')]&&this[_0x14e9('0xfb')](_0x459982['id'],_0x459982,!0x0),_0x19ad72;}['_setConversion'](){this[_0x14e9('0xa9')][_0x14e9('0xf2')]['for'](_0x14e9('0x5'))[_0x14e9('0xa2')]({'model':_0x14e9('0xba')});}[_0x14e9('0xff')](_0xaf02df){return(_0xaf02df=_0xaf02df[_0x14e9('0xf5')](_0x4617c3=>!_0x4617c3[_0x14e9('0xda')]||_0x14e9('0xc6')!==_0x4617c3[_0x14e9('0xda')]&&_0x14e9('0x9e')!==_0x4617c3[_0x14e9('0xda')]))[_0x14e9('0x80')](_0x4ecaed=>{_0x14e9('0x43')!=typeof _0x4ecaed&&(_0x4ecaed['children']=this[_0x14e9('0xff')](_0x4ecaed[_0x14e9('0xa6')]),_0x4ecaed[_0x14e9('0x75')]=_0x4ecaed[_0x14e9('0x75')][_0x14e9('0xf5')](_0x2710fc=>!_0x2710fc[0x0][_0x14e9('0xe')](_0x14e9('0xe5'))));}),_0xaf02df;}}function J(_0x152af6,_0x491508){const _0x4b79fc=_0x491508[_0x14e9('0x107')][_0x14e9('0xd3')]['document'];if(_0x14e9('0x43')==typeof _0x152af6)return new _0x18ae4b(_0x4b79fc,_0x152af6);{const _0x1c32ab=_0x152af6[_0x14e9('0xa6')][_0x14e9('0x58')](_0x3e2b6d=>J(_0x3e2b6d,_0x491508));return new(B[_0x152af6[(_0x14e9('0xf6'))]]||_0x1da778)(_0x4b79fc,_0x152af6[_0x14e9('0xda')],_0x152af6['attributes'],_0x1c32ab);}}class H{constructor(_0x42756b){this[_0x14e9('0xa9')]=_0x42756b,this[_0x14e9('0xf1')]=new Map(),this[_0x14e9('0x2c')]=-0x1,this[_0x14e9('0x73')]=-0x1,this[_0x14e9('0xf0')]=new Map(),this[_0x14e9('0x6e')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x14e9('0xf4')]=new Map(),this[_0x14e9('0x39')]=new Map(),this[_0x14e9('0x1')]=new Map(),this[_0x14e9('0x3')]=new Map(),this['_touched']=new Map(),this[_0x14e9('0x5f')]=new Map(),this[_0x14e9('0xb7')]=new Map(),this[_0x14e9('0x69')]=0x1;}[_0x14e9('0x96')](_0x272130){this[_0x14e9('0x31')]=_0x272130;const _0x1296d1=new Map(),_0x3c3b60=new Map(),_0x2b7be3=this[_0x14e9('0xa9')][_0x14e9('0x5d')]['document']['roots']['map'](_0x3702d6=>_0x3702d6[_0x14e9('0x18')]);for(const _0x3cf4ad of _0x2b7be3){const _0x45e946=this[_0x14e9('0xa9')][_0x14e9('0x5d')]['document'][_0x14e9('0x66')](_0x3cf4ad),_0x40bc26=q(_0x45e946);_0x1296d1[_0x14e9('0x2d')](_0x3cf4ad,_0x40bc26),_0x3c3b60['set'](_0x3cf4ad,Object[_0x14e9('0x4d')](_0x45e946[_0x14e9('0xc9')]()));}const _0x48d7ad=Array[_0x14e9('0x48')](this['editor'][_0x14e9('0x5d')][_0x14e9('0xaa')])[_0x14e9('0x58')](_0x4595a3=>[_0x4595a3[_0x14e9('0xda')],_0x4595a3[_0x14e9('0x93')]()]),_0x57342b=this[_0x14e9('0x31')][_0x14e9('0xa8')];this[_0x14e9('0x42')](_0x57342b,_0x1296d1,_0x48d7ad,_0x3c3b60),this[_0x14e9('0x1f')]=this[_0x14e9('0x69')];const _0x14588a=new Map(),_0x141f8a=new Map();for(const _0x546d62 of _0x2b7be3){const _0x2b72a0=G(_0x546d62);_0x14588a['set'](_0x546d62,_0x2b72a0),_0x141f8a['set'](_0x546d62,{});}this['_saveMetaData'](Number[_0x14e9('0xc')],_0x14588a,[],_0x141f8a);}[_0x14e9('0x32')](_0x6f2b7d,_0x1ae8f0){if(this['_lastFrom']===_0x6f2b7d&&this[_0x14e9('0x73')]<=_0x1ae8f0)this[_0x14e9('0xf1')][_0x14e9('0xee')]>0x1&&this[_0x14e9('0x37')](this[_0x14e9('0x73')]),this[_0x14e9('0xaf')](this[_0x14e9('0x73')],_0x1ae8f0,!0x0);else{if(!this[_0x14e9('0xf1')][_0x14e9('0x4a')](_0x6f2b7d)){const _0x233bb0=this[_0x14e9('0xea')](_0x6f2b7d);this['_calculateMetaData'](_0x233bb0,_0x6f2b7d,!0x1);}this[_0x14e9('0xb4')](_0x6f2b7d,_0x1ae8f0,!0x0);}return this[_0x14e9('0x2c')]=_0x6f2b7d,this['_lastTo']=_0x1ae8f0,this[_0x14e9('0x12')]();}['loadState'](_0x307007){this[_0x14e9('0x7e')](),this[_0x14e9('0x2c')]=_0x307007['fromVersion'],this[_0x14e9('0x73')]=_0x307007[_0x14e9('0x64')];for(const _0x477021 in _0x307007[_0x14e9('0x108')]){const _0x249c8e=_0x307007[_0x14e9('0x108')][_0x477021]['attachChange'],_0x4ffba7=_0x3babc4(_0x307007[_0x14e9('0x108')][_0x477021][_0x14e9('0x5c')])||{},_0x388e54=this[_0x14e9('0x7c')](_0x307007[_0x14e9('0x108')][_0x477021][_0x14e9('0x4c')]);_0x388e54[_0x14e9('0x18')]=_0x477021,_0x388e54['_isAttached']=!_0x249c8e||!_0x249c8e[_0x14e9('0x59')],_0x388e54[_0x14e9('0x59')]=()=>_0x388e54[_0x14e9('0xb9')],this[_0x14e9('0xf4')]['set'](_0x477021,_0x388e54),this['_baseRootsAttributes']['set'](_0x477021,_0x4ffba7),_0x249c8e&&this['_touchedRoots']['set'](_0x477021,_0x249c8e);const _0x14c2d4=this[_0x14e9('0xc5')](_0x388e54);this[_0x14e9('0x3')][_0x14e9('0x2d')](_0x477021,_0x14c2d4);for(const [_0x283727,_0x3eabcf]of _0x388e54[_0x14e9('0xaa')]){if(!_0x283727[_0x14e9('0xe')](_0x14e9('0xe7')))continue;const _0xe8ab2e=_0x283727[_0x14e9('0x4b')](':')[0x2];for(const _0x11fcfc of _0x3eabcf[_0x14e9('0xd6')]({'singleCharacters':!0x0})){const _0x49f92c=this['_getVidAttributeName'](_0x11fcfc),_0xc051b0=_0x14e9('0x49')==_0x11fcfc[_0x14e9('0xf6')]?_0x11fcfc[_0x14e9('0x97')][_0x14e9('0xa3')][_0x14e9('0x14')](0x0,-0x1):_0x11fcfc[_0x14e9('0x97')][_0x14e9('0xa3')],_0x19cc15=_0x14c2d4['getNodeByPath'](_0xc051b0)[_0x14e9('0x1c')](_0x49f92c);this[_0x14e9('0xc0')][_0x14e9('0x2d')](_0x19cc15,{'userId':_0xe8ab2e});}}}this[_0x14e9('0x1f')]=this[_0x14e9('0x69')];const _0x58a29a=[...Array(this[_0x14e9('0x69')])[_0x14e9('0xb6')]()][_0x14e9('0x14')](0x1)[_0x14e9('0xf5')](_0x4df68b=>!this[_0x14e9('0xc0')]['has'](_0x4df68b));let _0x2411f4=0x0;const _0x561f34=new Map();for(const _0x46e90d in _0x307007[_0x14e9('0x108')]){const _0x418080=_0x307007[_0x14e9('0x108')][_0x46e90d][_0x14e9('0x6f')],_0x1e6481=_0x3babc4(_0x307007[_0x14e9('0x108')][_0x46e90d][_0x14e9('0x56')])||{},_0x2e5a82=this[_0x14e9('0x7c')](_0x307007[_0x14e9('0x108')][_0x46e90d]['insertions']);_0x2e5a82[_0x14e9('0x18')]=_0x46e90d,_0x2e5a82[_0x14e9('0xb9')]=!_0x418080||_0x418080['isAttached'],_0x2e5a82[_0x14e9('0x59')]=()=>_0x2e5a82[_0x14e9('0xb9')],this[_0x14e9('0x6e')][_0x14e9('0x2d')](_0x46e90d,_0x2e5a82),this[_0x14e9('0x5a')][_0x14e9('0x2d')](_0x46e90d,_0x1e6481);const _0x474236=this[_0x14e9('0xc5')](_0x2e5a82,Number[_0x14e9('0xc')]);this['_idsRoots']['set'](_0x46e90d,_0x474236),_0x561f34[_0x14e9('0x2d')](_0x46e90d,_0x2e5a82[_0x14e9('0x59')]()?_0x1e6481:{});for(const [_0x7ca633,_0x1c60d6]of _0x2e5a82[_0x14e9('0xaa')]){if(!_0x7ca633[_0x14e9('0xe')](_0x14e9('0xe7')))continue;const _0xec40e=_0x7ca633['split'](':')[0x2];for(const _0x2c77fe of _0x1c60d6[_0x14e9('0xd6')]({'singleCharacters':!0x0})){const _0x3bf648=this['_getVidAttributeName'](_0x2c77fe),_0x59cced=this['_revisionId']++,_0x18ae49=_0x14e9('0x49')==_0x2c77fe['type']?_0x2c77fe[_0x14e9('0x97')][_0x14e9('0xa3')][_0x14e9('0x14')](0x0,-0x1):_0x2c77fe['previousPosition'][_0x14e9('0xa3')];_0x474236[_0x14e9('0x6b')](_0x18ae49)[_0x14e9('0x9d')](_0x3bf648,_0x59cced),this[_0x14e9('0xc0')][_0x14e9('0x2d')](_0x59cced,{'userId':_0xec40e});}}for(const _0x443f13 of this[_0x14e9('0xa9')][_0x14e9('0x5d')][_0x14e9('0x16')](_0x2e5a82)[_0x14e9('0xd6')]({'singleCharacters':!0x0})){const _0x256328=this['_getVidAttributeName'](_0x443f13),_0x5253a6='elementEnd'==_0x443f13[_0x14e9('0xf6')]?_0x443f13[_0x14e9('0x97')][_0x14e9('0xa3')][_0x14e9('0x14')](0x0,-0x1):_0x443f13[_0x14e9('0x97')][_0x14e9('0xa3')],_0x251631=_0x474236[_0x14e9('0x6b')](_0x5253a6);_0x251631[_0x14e9('0x1c')](_0x256328)>0x0||_0x251631[_0x14e9('0x9d')](_0x256328,_0x58a29a[_0x2411f4++]);}for(const [_0x3235d0,_0x49f110]of _0x2e5a82[_0x14e9('0xaa')])_0x3235d0['startsWith'](_0x14e9('0xe7'))||this['_markers'][_0x14e9('0x2d')](_0x3235d0,_0x49f110);}const _0x31d658=G(_0x14e9('0xc2'));this['_baseRoots'][_0x14e9('0x2d')]('$graveyard',_0x31d658),this[_0x14e9('0x3')][_0x14e9('0x2d')]('$graveyard',this[_0x14e9('0xc5')](_0x31d658,0x1));const _0x344731=G(_0x14e9('0xc2'));this[_0x14e9('0x6e')]['set']('$graveyard',_0x344731),this[_0x14e9('0x1')]['set']('$graveyard',this[_0x14e9('0xc5')](_0x344731,0x1));const _0xb33414=Array['from'](this[_0x14e9('0x6e')])['map'](([_0x30021a,_0xfac6fd])=>[_0x30021a,q(_0xfac6fd)]);this[_0x14e9('0x42')](this[_0x14e9('0x73')],_0xb33414,this[_0x14e9('0xf0')],_0x561f34);}[_0x14e9('0x7c')](_0x55c01b){const _0x57f976=JSON['parse'](_0x55c01b),_0xf0a69=this[_0x14e9('0xa9')][_0x14e9('0x107')][_0x14e9('0xd3')][_0x14e9('0x61')],_0x47619b=new _0x295250(_0xf0a69,_0x57f976[_0x14e9('0x58')](_0x20425e=>J(_0x20425e,this[_0x14e9('0xa9')])));return this[_0x14e9('0xa9')][_0x14e9('0xbf')][_0x14e9('0x4')](_0x47619b);}[_0x14e9('0x42')](_0x2edd77,_0x59916b,_0x51ae28,_0x3cd781){const _0x1be509=new Map(_0x59916b),_0x12ed2a=new Map(_0x3babc4(_0x3cd781)),_0xcd8bef=new Map();for(const [_0x11b384,_0x2c67e1]of _0x51ae28)_0xcd8bef[_0x14e9('0x2d')](_0x11b384,{'start':_0x2c67e1['start']['clone'](),'end':_0x2c67e1[_0x14e9('0x26')][_0x14e9('0x46')](),'rootName':_0x2c67e1[_0x14e9('0x84')][_0x14e9('0x18')]});this[_0x14e9('0xf1')][_0x14e9('0x2d')](_0x2edd77,{'roots':_0x1be509,'markers':_0xcd8bef,'rootsAttributes':_0x12ed2a});}[_0x14e9('0x37')](_0x518cee){this[_0x14e9('0xf1')]['delete'](_0x518cee);}[_0x14e9('0xde')](){this[_0x14e9('0x7e')](),this['_lastFrom']=-0x1,this[_0x14e9('0x73')]=-0x1,this[_0x14e9('0xf1')][_0x14e9('0x54')](),this['init'](this[_0x14e9('0x31')]);}[_0x14e9('0x7e')](){this[_0x14e9('0xc0')][_0x14e9('0x54')](),this[_0x14e9('0x5f')]['clear'](),this['_touchedRoots']['clear'](),this[_0x14e9('0x6e')][_0x14e9('0x54')](),this['_diffRootsAttributes'][_0x14e9('0x54')](),this[_0x14e9('0xf4')][_0x14e9('0x54')](),this['_baseRootsAttributes'][_0x14e9('0x54')](),this[_0x14e9('0x1')][_0x14e9('0x54')](),this[_0x14e9('0x3')][_0x14e9('0x54')](),this[_0x14e9('0xf0')][_0x14e9('0x54')](),this[_0x14e9('0x69')]=0x1,this['_startingRevisionId']=this[_0x14e9('0x69')];}[_0x14e9('0xc5')](_0x1d1967,_0x1c1916=null){let _0x13f37d=null;_0x1d1967['is']('documentFragment')||(_0x13f37d=new _0x2f8e61(_0x1d1967[_0x14e9('0xda')],{'vid_start':null===_0x1c1916?this[_0x14e9('0x69')]++:_0x1c1916++}));const _0x619478=[];for(const _0x5e300a of _0x1d1967[_0x14e9('0x17')]())if(_0x5e300a['is'](_0x14e9('0xf9'))){_0x619478[_0x14e9('0x91')](this[_0x14e9('0xc5')](_0x5e300a,_0x1c1916));const _0x6598f4=_0x619478[_0x619478[_0x14e9('0xb1')]-0x1];null!==_0x1c1916&&(_0x1c1916=_0x6598f4['is'](_0x14e9('0xf9'),_0x14e9('0xb5'))?_0x6598f4[_0x14e9('0x1c')](_0x14e9('0xc4'))+0x1:_0x6598f4[_0x14e9('0x1c')](_0x14e9('0x83'))+0x1);}else for(let _0x1bf126=0x0;_0x1bf126<_0x5e300a[_0x14e9('0x63')];_0x1bf126++)_0x619478['push'](new _0x2f8e61(_0x14e9('0xb5'),{'vid':null===_0x1c1916?this['_revisionId']++:_0x1c1916++}));if(_0x1d1967['is'](_0x14e9('0x3c'))){const _0x1ebd82=G(_0x1d1967[_0x14e9('0x18')]);return _0x1ebd82[_0x14e9('0x1d')](0x0,_0x619478),_0x1ebd82;}return _0x13f37d[_0x14e9('0x9d')]('vid_end',null===_0x1c1916?this[_0x14e9('0x69')]++:_0x1c1916++),_0x13f37d[_0x14e9('0x1d')](0x0,_0x619478),_0x13f37d;}['_calculateMetaData'](_0x3a4228,_0x25df63,_0x10ef4f){this[_0x14e9('0x7e')]();const {roots:_0x2b5aa3,markers:_0xbd76d6,rootsAttributes:_0x51672a}=this[_0x14e9('0xf1')]['get'](_0x3a4228);this[_0x14e9('0xf4')]=new Map(_0x2b5aa3),this[_0x14e9('0x39')]=new Map(_0x3babc4(_0x51672a));for(const [_0xff15a3,_0x41c2c0]of this[_0x14e9('0xf4')])if(_0x14e9('0xc2')!==_0xff15a3&&(this['_diffRoots'][_0x14e9('0x2d')](_0xff15a3,q(_0x41c2c0)),this['_diffRootsAttributes']=new Map(_0x3babc4(_0x51672a)),_0x10ef4f)){const _0x57ce96=this[_0x14e9('0x69')];this[_0x14e9('0x1')][_0x14e9('0x2d')](_0xff15a3,this[_0x14e9('0xc5')](_0x41c2c0)),this['_baseIdsRoots']['set'](_0xff15a3,this[_0x14e9('0xc5')](_0x41c2c0,_0x57ce96));}this[_0x14e9('0x1f')]=this[_0x14e9('0x69')],this[_0x14e9('0x6e')]['set'](_0x14e9('0xc2'),q(this[_0x14e9('0xf4')]['get'](_0x14e9('0xc2')))),_0x10ef4f&&this[_0x14e9('0x1')][_0x14e9('0x2d')](_0x14e9('0xc2'),this[_0x14e9('0xc5')](this['_baseRoots']['get'](_0x14e9('0xc2'))));for(const [_0x43341f,_0x1f77ee]of _0xbd76d6){const _0xb05df6=this[_0x14e9('0xf4')][_0x14e9('0x102')](_0x1f77ee['rootName']),_0x35c863=this[_0x14e9('0x6e')][_0x14e9('0x102')](_0x1f77ee['rootName']),_0x43b2a6=new _0xe568a4(this[_0x14e9('0xdd')](_0x1f77ee[_0x14e9('0xef')],_0xb05df6),this[_0x14e9('0xdd')](_0x1f77ee[_0x14e9('0x26')],_0xb05df6)),_0xea6d22=this[_0x14e9('0x24')](_0x43b2a6,_0x35c863);_0xb05df6[_0x14e9('0xaa')][_0x14e9('0x2d')](_0x43341f,_0x43b2a6),this[_0x14e9('0xf0')][_0x14e9('0x2d')](_0x43341f,_0xea6d22);}this[_0x14e9('0xaf')](_0x3a4228,_0x25df63,_0x10ef4f);}['_applyOperations'](_0x4926f0,_0x124d71,_0x14042f){for(const _0xf99624 of this[_0x14e9('0x31')][_0x14e9('0x2a')](_0x4926f0,_0x124d71))this[_0x14e9('0xe3')](_0xf99624,_0x14042f);for(const _0x43ddc1 of this[_0x14e9('0x6e')][_0x14e9('0x90')]())_0x43ddc1['markers'][_0x14e9('0x54')]();for(const [_0x2280fe,_0x208e55]of this[_0x14e9('0xf0')]){this[_0x14e9('0x6e')][_0x14e9('0x102')](_0x208e55[_0x14e9('0x84')][_0x14e9('0x18')])['markers'][_0x14e9('0x2d')](_0x2280fe,_0x208e55[_0x14e9('0x46')]());}const _0x4c0bf8=new Map(),_0x37d4db=new Map();for(const [_0x2be6e9,_0x2c745b]of this[_0x14e9('0x6e')])_0x4c0bf8[_0x14e9('0x2d')](_0x2be6e9,q(_0x2c745b)),_0x37d4db[_0x14e9('0x2d')](_0x2be6e9,this[_0x14e9('0x5a')][_0x14e9('0x102')](_0x2be6e9));this[_0x14e9('0x42')](_0x124d71,_0x4c0bf8,this['_markers'],_0x37d4db);}[_0x14e9('0xea')](_0x1904f2){const _0x8c8542=Array['from'](this[_0x14e9('0xf1')]['keys']());_0x8c8542[_0x14e9('0x60')]((_0xb685be,_0x1ab5ff)=>_0xb685be-_0x1ab5ff),_0x8c8542[_0x14e9('0xbb')]();for(const _0x58ca6d of _0x8c8542)if(_0x58ca6d<_0x1904f2)return _0x58ca6d;return Number[_0x14e9('0xc')];}[_0x14e9('0xce')](_0x535808,_0x3d2c02){const _0x7b07c7=Array[_0x14e9('0x48')](_0x3d2c02['markers'])['map'](([_0x54705f,_0x462d9d])=>[_0x54705f,this[_0x14e9('0x24')](_0x462d9d,_0x535808)]);_0x535808[_0x14e9('0xaa')]=new Map(_0x7b07c7);}[_0x14e9('0xa5')](_0x42e2d2){for(const _0x46f100 of this['_markers'][_0x14e9('0x90')]()){const _0x2bae47=_0x46f100[_0x14e9('0x51')](_0x42e2d2),_0x3bf64e=_0xe568a4[_0x14e9('0x20')](_0x2bae47);_0x46f100[_0x14e9('0xef')]=_0x3bf64e[_0x14e9('0xef')],_0x46f100[_0x14e9('0x26')]=_0x3bf64e[_0x14e9('0x26')];}}['_handleOperation'](_0x44566b,_0x580ce3){if(_0x14e9('0xa1')==_0x44566b[_0x14e9('0xf6')]||'detachRoot'==_0x44566b[_0x14e9('0xf6')])return void this[_0x14e9('0x99')](_0x44566b,_0x580ce3);if('insert'==_0x44566b['type']){const _0x810613=_0x44566b[_0x14e9('0x2')][_0x14e9('0x84')]['rootName'];this['_diffRoots'][_0x14e9('0x4a')](_0x810613)||(this['_diffRoots'][_0x14e9('0x2d')](_0x810613,G(_0x810613,!0x0)),this[_0x14e9('0x5a')]['set'](_0x810613,{}),_0x580ce3&&this['_idsRoots'][_0x14e9('0x2d')](_0x810613,G(_0x810613,!0x0)));}else{if(_0x14e9('0xc3')==_0x44566b[_0x14e9('0xf6')]||_0x14e9('0x1e')==_0x44566b[_0x14e9('0xf6')]||_0x14e9('0x36')==_0x44566b[_0x14e9('0xf6')])return void this[_0x14e9('0x2b')](_0x44566b);}const _0x412006=this[_0x14e9('0xa')](_0x44566b,this['_diffRoots']);if(_0x14e9('0x92')!==_0x44566b['type']&&(_0x412006[_0x14e9('0xdc')](),this[_0x14e9('0xa5')](_0x412006)),_0x580ce3)switch(_0x412006['type']){case _0x14e9('0x3f'):this[_0x14e9('0x7d')](_0x44566b);break;case _0x14e9('0xf3'):case _0x14e9('0xe9'):case _0x14e9('0xe6'):this[_0x14e9('0xd0')](_0x44566b);break;case'merge':this['_handleMergeOperation'](_0x44566b);break;case _0x14e9('0x4b'):this[_0x14e9('0x8f')](_0x44566b);break;case'marker':this[_0x14e9('0x103')](_0x44566b);}}[_0x14e9('0xa')](_0x21c41b,_0x4c8fa2){const _0x1fd07d=_0x21c41b[_0x14e9('0x46')]();return _0x1fd07d[_0x14e9('0xe1')]=_0x21c41b['_authorId'],this['_fixOperation'](_0x1fd07d,_0x4c8fa2),_0x1fd07d;}[_0x14e9('0x88')](_0x17b5d6){return _0x17b5d6[_0x14e9('0x58')](_0xe84ec4=>{const _0x405df5=this[_0x14e9('0x11')](_0xe84ec4);return Number(_0xe84ec4['item']['getAttribute'](_0x405df5));});}[_0x14e9('0xf7')](_0x1cfac6,_0x5c8ad1){if(_0x1cfac6['is']('element',_0x14e9('0xb5')))_0x5c8ad1[_0x14e9('0x91')]({'item':_0x1cfac6,'type':'text'});else{_0x1cfac6['is'](_0x14e9('0xf9'))&&_0x5c8ad1['push']({'item':_0x1cfac6,'type':_0x14e9('0x35')});for(const _0x4a9992 of _0x1cfac6['getChildren']())this[_0x14e9('0xf7')](_0x4a9992,_0x5c8ad1);_0x1cfac6['is'](_0x14e9('0xf9'))&&_0x5c8ad1[_0x14e9('0x91')]({'item':_0x1cfac6,'type':_0x14e9('0x49')});}return _0x5c8ad1;}['_getState'](){const _0x37de25=new Map(this[_0x14e9('0xc0')]),_0x41b7b7=new Map(_0x37de25),_0x4b5ad2=new Map(),_0x348a4a={'insertions':{},'deletions':{}},_0x3f0d0a={'insertions':{},'deletions':{}},_0x5aed5b=new Map(),_0x57b821=new Set([...this[_0x14e9('0xf4')][_0x14e9('0xb6')](),...this[_0x14e9('0x6e')][_0x14e9('0xb6')]()]);_0x57b821[_0x14e9('0xc8')](_0x14e9('0xc2'));for(const _0x2e81da of _0x57b821){const _0x3d2ce6=this[_0x14e9('0x6e')][_0x14e9('0x102')](_0x2e81da)||G(_0x2e81da,!0x1),_0x26fdea=this[_0x14e9('0xf4')][_0x14e9('0x102')](_0x2e81da)||G(_0x2e81da,!0x1);_0x3d2ce6['isAttached']()||_0x26fdea['isAttached']()?(_0x348a4a[_0x14e9('0x78')][_0x2e81da]=q(_0x3d2ce6),_0x348a4a[_0x14e9('0x4c')][_0x2e81da]=q(_0x26fdea),this[_0x14e9('0xce')](_0x348a4a[_0x14e9('0x4c')][_0x2e81da],_0x26fdea),this[_0x14e9('0xce')](_0x348a4a['insertions'][_0x2e81da],_0x3d2ce6),_0x3f0d0a[_0x14e9('0x78')][_0x2e81da]=this['_generateTape'](this[_0x14e9('0x1')][_0x14e9('0x102')](_0x2e81da),[]),_0x3f0d0a[_0x14e9('0x4c')][_0x2e81da]=this[_0x14e9('0xf7')](this['_baseIdsRoots']['get'](_0x2e81da)||G(_0x2e81da,!0x1),[])):_0x57b821[_0x14e9('0xc8')](_0x2e81da);}for(const _0x5bc497 of _0x57b821){const _0x3947c9=_0x3f0d0a[_0x14e9('0x78')][_0x5bc497];for(const _0x7cb3de of _0x3947c9){const _0x172891=this[_0x14e9('0x11')](_0x7cb3de),_0x32e7a=_0x7cb3de[_0x14e9('0x30')][_0x14e9('0x1c')](_0x172891);_0x41b7b7[_0x14e9('0xc8')](_0x32e7a),_0x32e7a>=this[_0x14e9('0x1f')]&&_0x4b5ad2['set'](_0x32e7a,_0x37de25[_0x14e9('0x102')](_0x32e7a));}}for(const _0x25aef4 of _0x57b821){const _0x2937d2=_0x3f0d0a['insertions'][_0x25aef4],_0x819479=this[_0x14e9('0x88')](_0x3f0d0a[_0x14e9('0x4c')][_0x25aef4]);let _0x5915f7=0x0;for(const _0x1d99fc of _0x2937d2){const _0xb90100=this['_getVidAttributeName'](_0x1d99fc),_0x1b525f=_0x1d99fc['item']['getAttribute'](_0xb90100);if(!_0x4b5ad2[_0x14e9('0x4a')](_0x1b525f)&&!_0x5aed5b[_0x14e9('0x4a')](_0x1b525f)){if(_0x41b7b7[_0x14e9('0x4a')](_0x1b525f))_0x5915f7++;else{if(_0x1b525f!=_0x819479[_0x5915f7]){const _0x1a3bbd=_0x37de25[_0x14e9('0x102')](_0x1b525f)||_0x37de25[_0x14e9('0x102')](_0x819479[_0x5915f7]);for(;_0x1b525f!=_0x819479[_0x5915f7];)_0x41b7b7['has'](_0x819479[_0x5915f7])||(_0x5aed5b['set'](_0x819479[_0x5915f7],_0x1a3bbd),_0x37de25[_0x14e9('0x2d')](_0x819479[_0x5915f7],_0x1a3bbd)),_0x5915f7++;}_0x5915f7++;}}}}for(const _0x51a258 of _0x57b821){const _0xcfd18f=_0x3f0d0a[_0x14e9('0x78')][_0x51a258];for(const _0x2b397a of _0xcfd18f){const _0xb6ef30=this[_0x14e9('0x11')](_0x2b397a),_0x2db565=_0x2b397a['item'][_0x14e9('0x1c')](_0xb6ef30);if(_0x5aed5b[_0x14e9('0x4a')](_0x2db565)){const _0x27ab61=_0x5aed5b[_0x14e9('0x102')](_0x2db565);_0x41b7b7[_0x14e9('0x4a')](_0x2db565)||_0x41b7b7[_0x14e9('0x2d')](_0x2db565,{..._0x27ab61}),_0x4b5ad2['set'](_0x2db565,{..._0x27ab61});}}}for(const _0x59607a of _0x41b7b7[_0x14e9('0xb6')]())_0x59607a>=this[_0x14e9('0x1f')]&&_0x41b7b7[_0x14e9('0xc8')](_0x59607a);const _0xf5458a=new Map();for(const _0x1a3123 of _0x57b821){let _0x5642db=_0x3f0d0a[_0x14e9('0x78')][_0x1a3123];for(const _0x569a2e of _0x5642db)if(_0x569a2e[_0x14e9('0x30')]['is']('element',_0x14e9('0xcb'))){const _0xc0aea6=this[_0x14e9('0x11')](_0x569a2e),_0x4264f8=_0x569a2e['item'][_0x14e9('0x1c')](_0xc0aea6);if(_0x4b5ad2[_0x14e9('0x4a')](_0x4264f8)){const _0xfc0636=_0x569a2e['item'][_0x14e9('0xbe')][_0x14e9('0xbe')]['getAttribute'](_0x14e9('0x65')),_0x3a6bc0=_0xf5458a[_0x14e9('0x102')](_0xfc0636)||new Set();_0x3a6bc0['add'](_0x4b5ad2[_0x14e9('0x102')](_0x4264f8)[_0x14e9('0x4e')]),_0xf5458a['set'](_0xfc0636,_0x3a6bc0);}}_0x5642db=_0x3f0d0a['deletions'][_0x1a3123];for(const _0x1ad358 of _0x5642db)if(_0x1ad358[_0x14e9('0x30')]['is'](_0x14e9('0xf9'),_0x14e9('0xcb'))){const _0x1417a7=this[_0x14e9('0x11')](_0x1ad358),_0x39b082=_0x1ad358['item'][_0x14e9('0x1c')](_0x1417a7);if(_0x41b7b7[_0x14e9('0x4a')](_0x39b082)){const _0x3deea8=_0x1ad358[_0x14e9('0x30')]['parent']['parent'][_0x14e9('0x1c')](_0x14e9('0x65')),_0x5cd777=_0xf5458a[_0x14e9('0x102')](_0x3deea8)||new Set();_0x5cd777[_0x14e9('0x6a')](_0x41b7b7[_0x14e9('0x102')](_0x39b082)[_0x14e9('0x4e')]),_0xf5458a[_0x14e9('0x2d')](_0x3deea8,_0x5cd777);}}for(const _0x36ee97 of _0xf5458a[_0x14e9('0xb6')]())(_0x4b5ad2[_0x14e9('0x4a')](_0x36ee97)||_0x41b7b7[_0x14e9('0x4a')](_0x36ee97))&&_0xf5458a[_0x14e9('0xc8')](_0x36ee97);}for(const _0x4f1f91 of _0x57b821){const _0x361b54=_0x3f0d0a['insertions'][_0x4f1f91];let _0x187138=null,_0x5e3101=null;for(const _0x1afcca of _0x361b54){const _0x44a28d=this[_0x14e9('0x11')](_0x1afcca),_0xef2da9=_0x1afcca[_0x14e9('0x30')][_0x14e9('0x1c')](_0x44a28d),_0x45bfeb=_0xf5458a[_0x14e9('0x102')](_0xef2da9);_0x45bfeb&&_0x14e9('0x35')==_0x1afcca[_0x14e9('0xf6')]&&(_0x187138=Array[_0x14e9('0x48')](_0x45bfeb)[0x0],_0x5e3101=_0x1afcca[_0x14e9('0x30')][_0x14e9('0x1c')](_0x14e9('0x83'))),_0x187138&&(_0x41b7b7[_0x14e9('0x2d')](_0xef2da9,{'userId':_0x187138}),_0x4b5ad2[_0x14e9('0x2d')](_0xef2da9,{'userId':_0x187138})),_0xef2da9==_0x5e3101&&(_0x187138=null,_0x5e3101=null);}}const _0x220bd3={},_0x1e4ac4=new Set();for(const _0x509ad0 of _0x57b821){const _0x1beff5=_0x348a4a['deletions'][_0x509ad0],_0x1c9f45=_0x348a4a[_0x14e9('0x78')][_0x509ad0];for(const {userId:_0x2cfe14}of this[_0x14e9('0x5f')]['values']())null!==_0x2cfe14&&_0x1e4ac4[_0x14e9('0x6a')](_0x2cfe14);for(const {userId:_0x4df1c9}of this[_0x14e9('0xb7')][_0x14e9('0x90')]())null!==_0x4df1c9&&_0x1e4ac4['add'](_0x4df1c9);this[_0x14e9('0xb8')](_0x1c9f45,_0x3f0d0a[_0x14e9('0x78')][_0x509ad0],_0x4b5ad2,_0x14e9('0x22'),_0x1e4ac4),this[_0x14e9('0xb8')](_0x1beff5,_0x3f0d0a['deletions'][_0x509ad0],_0x41b7b7,_0x14e9('0xbc'),_0x1e4ac4),_0x220bd3[_0x509ad0]={'insertions':this[_0x14e9('0xed')](_0x1c9f45),'deletions':this[_0x14e9('0xed')](_0x1beff5),'attachChange':this[_0x14e9('0xb7')][_0x14e9('0x102')](_0x509ad0)||null,'attributesBefore':_0x3babc4(this['_baseRootsAttributes'][_0x14e9('0x102')](_0x509ad0))||{},'attributesAfter':_0x3babc4(this[_0x14e9('0x5a')][_0x14e9('0x102')](_0x509ad0))};}return{'diffData':_0x220bd3,'authorsIds':Array['from'](_0x1e4ac4)};}['_processRootBeforeSave'](_0x1d779e){for(const [,_0x2ea6ea]of _0x1d779e[_0x14e9('0xaa')]){const _0x10251b=_0x2ea6ea[_0x14e9('0xef')][_0x14e9('0x68')]()['filter'](_0x2c034f=>_0x14e9('0xcb')==_0x2c034f[_0x14e9('0xda')]);for(const _0x6e457d of _0x10251b)0x1==_0x6e457d[_0x14e9('0xfd')]&&_0x6e457d[_0x14e9('0x9')](0x0)['is'](_0x14e9('0xf9'),_0x14e9('0x105'))&&_0x6e457d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x307aee){this['_processRootBeforeSave'](_0x307aee);const _0xd7fdc9=this[_0x14e9('0xa9')]['data']['toView'](_0x307aee,{}),_0x341e78=Array[_0x14e9('0x48')](_0xd7fdc9[_0x14e9('0x17')]())[_0x14e9('0x58')](_0x518e14=>this[_0x14e9('0x81')](_0x518e14));return JSON[_0x14e9('0xb0')](_0x341e78);}[_0x14e9('0x81')](_0x56cb27){if(_0x56cb27['is'](_0x14e9('0xb5')))return _0x56cb27[_0x14e9('0xbf')];{const _0x1a6dcf=_0x56cb27;return{'type':Object[_0x14e9('0xb6')](B)[_0x14e9('0xd8')](_0x490d20=>_0x56cb27 instanceof B[_0x490d20]),'name':_0x1a6dcf[_0x14e9('0xda')],'attributes':Array[_0x14e9('0x48')](_0x1a6dcf[_0x14e9('0xc9')]()),'children':Array['from'](_0x1a6dcf[_0x14e9('0x17')]())[_0x14e9('0x58')](_0xfe67f2=>this['_getViewJson'](_0xfe67f2))};}}[_0x14e9('0xb8')](_0x42a432,_0x3968c0,_0x22c02e,_0x30d160,_0x24ad0b){let _0x16b18d=null,_0x53f884=null,_0x5216a4=0x0;const _0x2b1d24=this[_0x14e9('0xa9')]['model'];for(let _0x44a434=0x0;_0x44a434<_0x3968c0['length'];_0x44a434++){const _0x3e01b7=this[_0x14e9('0x11')](_0x3968c0[_0x44a434]),_0x193227=_0x3968c0[_0x44a434]['item'][_0x14e9('0x1c')](_0x3e01b7),_0x2361bb=_0x22c02e[_0x14e9('0x102')](_0x193227),_0xaef6d7=_0x44a434==_0x3968c0[_0x14e9('0xb1')]-0x1;(!_0x16b18d&&_0x2361bb&&(_0x16b18d=_0x2361bb,_0x53f884=_0x3968c0[_0x44a434]),_0x16b18d&&(!_0x2361bb||_0x2361bb[_0x14e9('0x4e')]!=_0x16b18d[_0x14e9('0x4e')]))&&(_0x78fc91(_0x2361bb,L(_0x53f884,_0x42a432,_0x2b1d24),L(_0x3968c0[_0x44a434],_0x42a432,_0x2b1d24)),_0x16b18d=_0x2361bb||null,_0x53f884=_0x2361bb?_0x3968c0[_0x44a434]:null),_0x16b18d&&_0xaef6d7&&_0x78fc91(_0x2361bb,L(_0x53f884,_0x42a432,_0x2b1d24),W(_0x3968c0[_0x44a434],_0x42a432,_0x2b1d24));}function _0x78fc91(_0x15654b,_0x285b15,_0x36f767){const _0x2420d9=_0x16b18d[_0x14e9('0x4e')],_0x395edd=_0x14e9('0xe7')+_0x30d160+':'+_0x2420d9+':'+_0x5216a4++,_0x4a35cb=_0x2b1d24['createRange'](_0x285b15,_0x36f767);_0x42a432[_0x14e9('0xaa')]['set'](_0x395edd,_0x4a35cb),null!==_0x2420d9&&_0x24ad0b[_0x14e9('0x6a')](_0x2420d9);}}[_0x14e9('0x11')](_0x483095){switch(_0x483095[_0x14e9('0xf6')]){case _0x14e9('0x35'):return _0x14e9('0x65');case _0x14e9('0x49'):return _0x14e9('0x83');default:return _0x14e9('0xc4');}}[_0x14e9('0x27')](_0x30a5d6,_0x111f83){_0x30a5d6[_0x14e9('0x6c')]=null;for(const _0x1036f9 in _0x30a5d6){const _0x19412f=_0x30a5d6[_0x1036f9];if(_0x19412f instanceof _0x2e12b2){const _0x17faa2=_0x111f83[_0x14e9('0x102')](_0x19412f[_0x14e9('0x84')][_0x14e9('0x18')]);_0x30a5d6[_0x1036f9]=this[_0x14e9('0xdd')](_0x19412f,_0x17faa2);}if(_0x19412f instanceof _0xe568a4){const _0x423a80=_0x111f83[_0x14e9('0x102')](_0x19412f[_0x14e9('0x84')][_0x14e9('0x18')]);_0x30a5d6[_0x1036f9]=this[_0x14e9('0x24')](_0x19412f,_0x423a80);}_0x14e9('0x84')===_0x1036f9&&(_0x30a5d6[_0x14e9('0x84')]=_0x111f83[_0x14e9('0x102')](_0x30a5d6['root'][_0x14e9('0x18')]));}}['_fixRange'](_0x32a09a,_0x1a0eb4){return this[_0x14e9('0xa9')]['model'][_0x14e9('0x9c')](this[_0x14e9('0xdd')](_0x32a09a[_0x14e9('0xef')],_0x1a0eb4),this[_0x14e9('0xdd')](_0x32a09a['end'],_0x1a0eb4));}['_fixPosition'](_0x9dd50f,_0x3096ec){return this['editor'][_0x14e9('0x5d')]['createPositionFromPath'](_0x3096ec,_0x9dd50f[_0x14e9('0xa3')],_0x9dd50f['stickiness']);}[_0x14e9('0x7d')](_0x43cb9a){const _0x6af3d4=this[_0x14e9('0x1')][_0x14e9('0x102')](_0x43cb9a[_0x14e9('0x2')][_0x14e9('0x84')][_0x14e9('0x18')]),_0x5c4465=this[_0x14e9('0xdd')](_0x43cb9a[_0x14e9('0x2')],_0x6af3d4),_0x4afb1b=null===_0x43cb9a[_0x14e9('0xe1')]?null:_0x43cb9a['_authorId']||this['editor'][_0x14e9('0xd4')][_0x14e9('0x102')](_0x14e9('0x95'))['me']['id'],_0x3d3618=_0x5c4465['parent'],_0x4626a4=this[_0x14e9('0x69')],_0x175e82=[];for(const _0x2f317c of _0x43cb9a[_0x14e9('0x8d')])if(_0x2f317c['is'](_0x14e9('0xf9')))_0x175e82['push'](this[_0x14e9('0xc5')](_0x2f317c));else for(let _0x5e2cd6=0x0;_0x5e2cd6<_0x2f317c[_0x14e9('0x63')];_0x5e2cd6++)_0x175e82['push'](new _0x2f8e61(_0x14e9('0xb5'),{'vid':this[_0x14e9('0x69')]++}));const _0x4ff30a=this[_0x14e9('0x69')];for(let _0x5bb6c1=_0x4626a4;_0x5bb6c1<_0x4ff30a;_0x5bb6c1++)this[_0x14e9('0xc0')]['set'](_0x5bb6c1,{'userId':_0x4afb1b});_0x3d3618[_0x14e9('0x1d')](_0x5c4465[_0x14e9('0x74')],_0x175e82);}[_0x14e9('0xd0')](_0x5ab1d4){(_0x5ab1d4=this[_0x14e9('0xa')](_0x5ab1d4,this[_0x14e9('0x1')]))[_0x14e9('0xdc')]();const _0x2afab6=null===_0x5ab1d4['_authorId']?null:_0x5ab1d4[_0x14e9('0xe1')]||this[_0x14e9('0xa9')][_0x14e9('0xd4')][_0x14e9('0x102')](_0x14e9('0x95'))['me']['id'],_0x1f5f50=_0x5ab1d4[_0x14e9('0xd1')](),_0x48fe9a=_0x1f5f50['parent'],_0xa55ea6=_0x1f5f50['offset'];!function _0x2dd356(_0x396e16,_0x260145,_0x5e0cfc,_0x4f21f5){for(let _0x55655b=_0x5e0cfc;_0x55655b<_0x4f21f5;_0x55655b++){const _0x2f3ce4=_0x260145[_0x14e9('0x9')](_0x55655b);_0x2f3ce4['is'](_0x14e9('0xf9'),_0x14e9('0xb5'))?_0x396e16[_0x14e9('0x2d')](_0x2f3ce4[_0x14e9('0x1c')](_0x14e9('0xc4')),{'userId':_0x2afab6}):(_0x396e16['set'](_0x2f3ce4[_0x14e9('0x1c')](_0x14e9('0x65')),{'userId':_0x2afab6}),_0x2dd356(_0x396e16,_0x2f3ce4,0x0,_0x2f3ce4['childCount']),_0x396e16[_0x14e9('0x2d')](_0x2f3ce4[_0x14e9('0x1c')](_0x14e9('0x83')),{'userId':_0x2afab6}));}}(this[_0x14e9('0xc0')],_0x48fe9a,_0xa55ea6,_0xa55ea6+_0x5ab1d4[_0x14e9('0x1a')]);}[_0x14e9('0xb')](_0x566726){const _0xf38d11=null===(_0x566726=this[_0x14e9('0xa')](_0x566726,this[_0x14e9('0x1')]))[_0x14e9('0xe1')]?null:_0x566726[_0x14e9('0xe1')]||this[_0x14e9('0xa9')][_0x14e9('0xd4')][_0x14e9('0x102')]('Users')['me']['id'],_0x4ede38=_0x566726[_0x14e9('0xe8')][_0x14e9('0xbe')],_0x4e8e63=_0x566726[_0x14e9('0x2e')][_0x14e9('0xbe')],_0x2f8095=_0x4ede38[_0x14e9('0x1c')]('vid_end'),_0x2698ad=_0x4e8e63[_0x14e9('0x1c')](_0x14e9('0x65'));_0x4ede38[_0x14e9('0x9d')](_0x14e9('0x83'),_0x4e8e63['getAttribute'](_0x14e9('0x83'))),_0x4e8e63[_0x14e9('0x9d')]('vid_end',_0x2f8095),this['_touched'][_0x14e9('0x2d')](_0x2698ad,{'userId':_0xf38d11}),this[_0x14e9('0xc0')][_0x14e9('0x2d')](_0x2f8095,{'userId':_0xf38d11}),_0x566726[_0x14e9('0xdc')]();}[_0x14e9('0x8f')](_0x2b6776){const _0x1f0be4=null===(_0x2b6776=this[_0x14e9('0xa')](_0x2b6776,this[_0x14e9('0x1')]))[_0x14e9('0xe1')]?null:_0x2b6776[_0x14e9('0xe1')]||this['editor'][_0x14e9('0xd4')][_0x14e9('0x102')](_0x14e9('0x95'))['me']['id'],_0x8ef074=_0x2b6776[_0x14e9('0x38')],_0x4de39d=_0x2b6776['splitPosition']['parent'];_0x2b6776['_execute']();const _0x4420ed=_0x4de39d['getAttribute'](_0x14e9('0x83')),_0x23bf95=_0x2b6776['insertionPosition'][_0x14e9('0xd9')];if(_0x8ef074){const _0x346f6a=_0x23bf95[_0x14e9('0x1c')](_0x14e9('0x83')),_0x32a44b=_0x4de39d['getAttribute'](_0x14e9('0x83'));_0x4de39d['_setAttribute']('vid_end',_0x346f6a),_0x23bf95[_0x14e9('0x9d')](_0x14e9('0x83'),_0x32a44b),this[_0x14e9('0xc0')][_0x14e9('0x2d')](_0x4de39d['getAttribute'](_0x14e9('0x83')),{'userId':_0x1f0be4}),this[_0x14e9('0xc0')][_0x14e9('0x2d')](_0x23bf95['getAttribute']('vid_start'),{'userId':_0x1f0be4});}else{const _0x419833=this[_0x14e9('0x69')]++,_0x5c1c60=this[_0x14e9('0x69')]++;_0x4de39d[_0x14e9('0x9d')]('vid_end',_0x419833),_0x23bf95[_0x14e9('0x9d')](_0x14e9('0x65'),_0x5c1c60),_0x23bf95[_0x14e9('0x9d')](_0x14e9('0x83'),_0x4420ed),this[_0x14e9('0xc0')][_0x14e9('0x2d')](_0x419833,{'userId':_0x1f0be4}),this[_0x14e9('0xc0')]['set'](_0x5c1c60,{'userId':_0x1f0be4});}}[_0x14e9('0x103')](_0x5705de){if(!_0x5705de[_0x14e9('0x98')])return;const _0x3e01b1=(_0x5705de=this['_cloneOperation'](_0x5705de,this['_diffRoots']))['oldRange']?_0x5705de[_0x14e9('0x1b')][_0x14e9('0x84')]:null,_0x1084bd=_0x5705de[_0x14e9('0xca')]?_0x5705de[_0x14e9('0xca')][_0x14e9('0x84')]:null;_0x3e01b1&&this[_0x14e9('0xf0')][_0x14e9('0xc8')](_0x5705de[_0x14e9('0xda')]),_0x1084bd&&this['_markers'][_0x14e9('0x2d')](_0x5705de[_0x14e9('0xda')],_0x5705de[_0x14e9('0xca')][_0x14e9('0x46')]());const _0x2b6ae4=null===_0x5705de[_0x14e9('0xe1')]?null:_0x5705de[_0x14e9('0xe1')]||this[_0x14e9('0xa9')][_0x14e9('0xd4')][_0x14e9('0x102')]('Users')['me']['id'],_0x1359c4=_0x5705de[_0x14e9('0xda')];if(!this[_0x14e9('0x5f')]['has'](_0x1359c4))return void this[_0x14e9('0x5f')][_0x14e9('0x2d')](_0x1359c4,{'range':_0x5705de[_0x14e9('0x1b')],'userId':_0x2b6ae4});const _0x506294=this[_0x14e9('0x5f')][_0x14e9('0x102')](_0x1359c4),_0xf643a8=_0x506294[_0x14e9('0x79')],_0x2cf642=_0x5705de['newRange'];null==_0xf643a8&&null==_0x2cf642||_0xf643a8&&_0x2cf642&&_0xf643a8[_0x14e9('0x8a')](_0x2cf642)?this[_0x14e9('0x5f')][_0x14e9('0xc8')](_0x5705de[_0x14e9('0xda')]):_0x506294[_0x14e9('0x4e')]=_0x2b6ae4;}[_0x14e9('0x99')](_0xa2ec81,_0x6c944f){this['_diffRoots'][_0x14e9('0x4a')](_0xa2ec81['rootName'])?this[_0x14e9('0x6e')][_0x14e9('0x102')](_0xa2ec81[_0x14e9('0x18')])[_0x14e9('0xb9')]=_0xa2ec81['isAdd']:(this[_0x14e9('0x6e')]['set'](_0xa2ec81['rootName'],G(_0xa2ec81[_0x14e9('0x18')],!0x0)),this[_0x14e9('0x5a')][_0x14e9('0x2d')](_0xa2ec81[_0x14e9('0x18')],{}),_0x6c944f&&this[_0x14e9('0x1')][_0x14e9('0x2d')](_0xa2ec81[_0x14e9('0x18')],G(_0xa2ec81['rootName'],!0x0)));const _0x27745f=null===_0xa2ec81[_0x14e9('0xe1')]?null:_0xa2ec81[_0x14e9('0xe1')]||this[_0x14e9('0xa9')][_0x14e9('0xd4')][_0x14e9('0x102')](_0x14e9('0x95'))['me']['id'],_0x1c5a2a=this[_0x14e9('0xb7')][_0x14e9('0x102')](_0xa2ec81[_0x14e9('0x18')]);_0x1c5a2a&&_0x1c5a2a[_0x14e9('0x4e')]===_0x27745f?this[_0x14e9('0xb7')][_0x14e9('0xc8')](_0xa2ec81[_0x14e9('0x18')]):this[_0x14e9('0xb7')][_0x14e9('0x2d')](_0xa2ec81[_0x14e9('0x18')],{'userId':_0x27745f,'isAttached':_0xa2ec81[_0x14e9('0x8c')]});}['_handleRootAttributeOperation'](_0x45a995){const _0x4faf43=this['_diffRootsAttributes']['get'](_0x45a995[_0x14e9('0x84')][_0x14e9('0x18')]);null===_0x45a995[_0x14e9('0x77')]?delete _0x4faf43[_0x45a995[_0x14e9('0x53')]]:_0x4faf43[_0x45a995[_0x14e9('0x53')]]=_0x45a995[_0x14e9('0x77')];}}function q(_0x236499){const _0x4062c2=G(_0x236499[_0x14e9('0x18')],_0x236499[_0x14e9('0x59')]());for(const _0x21a4d9 of _0x236499[_0x14e9('0x17')]()){const _0x22d6d5=_0x21a4d9[_0x14e9('0x13')](!0x0);_0x4062c2[_0x14e9('0x85')](_0x22d6d5);}return _0x4062c2;}function G(_0x5d920d,_0x2b5b02=!0x0){const _0xe06b31=new _0x2e2c8b();return _0xe06b31[_0x14e9('0x18')]=_0x5d920d,_0xe06b31[_0x14e9('0xb9')]=_0x2b5b02,_0xe06b31[_0x14e9('0x59')]=()=>_0xe06b31[_0x14e9('0xb9')],_0xe06b31;}function L(_0x221b02,_0x4bef22,_0x4c11e8){const _0x3839c0=_0x14e9('0x49')==_0x221b02[_0x14e9('0xf6')]?_0x4c11e8['createPositionAt'](_0x221b02[_0x14e9('0x30')],'end'):_0x4c11e8['createPositionBefore'](_0x221b02['item']);return _0x4c11e8[_0x14e9('0x70')](_0x4bef22,_0x3839c0[_0x14e9('0xa3')],_0x3839c0['stickiness']);}function W(_0x5785f0,_0x1c9cee,_0x4cd0f1){const _0x495fd3=_0x14e9('0x35')==_0x5785f0[_0x14e9('0xf6')]?_0x4cd0f1[_0x14e9('0x50')](_0x5785f0['item'],0x0):_0x4cd0f1[_0x14e9('0x33')](_0x5785f0[_0x14e9('0x30')]);return _0x4cd0f1[_0x14e9('0x70')](_0x1c9cee,_0x495fd3[_0x14e9('0xa3')],_0x495fd3['stickiness']);}
23
+ const _0x24b1=['affectsData','insertions','dataDowncast','pluginName','element','split','_fixRange','_makeIdsRoot','finally','revision-end','createRangeIn','updateRevisions','addRoot','afterInit','_reset','string','reverse','_copyMarkers','isAdd','initialData','_insertChild','offset','init','_setConversion','_lastFrom','insertion','_appendChild','source','offsetSize','revision-start','_markers','document','_baseIdsRoots','_handleRootOperation','createdAt','_handleOperation','reinsert','previousPosition','_fixPosition','getAttributes','attributesAfter','authorsIds','stickiness','vid','delete','_saveMetaData','end','setRevisionData','addRevision','authors','oldRange','_authorId','insert','max','_replaceEditorDataWithRevisionData','_transformMarkers','text','isEqual','_prepareViewToSave','upcast','getUser','_removeRevisionMarkers','_createFromRanges','range','toVersion','history','_touchedMarkers','_baseRoots','hasContent','_handleMoveOperation','_lastTo','rootName','editor-initial-data-replaced-with-revision-data','RevisionsRepository','_handleInsertOperation','clear','_getBaseVids','Empty\x20document','parse','paragraph','tableCell','adapter','loadState','size','plugins','_makeModelFromViewString','_touched','elementEnd','toData','_isPendingUpdate','resolve','_startingVersion','getRoot','shift','fromEntries','parent','targetPosition','NEGATIVE_INFINITY','_calculateMetaData','getRevisionRootsAttributes','map','data-revision-','values','baseVersion','newValue','createPositionAfter','marker','_addPendingAction','graveyardPosition','push','_generateTape','getLatestVersion','nodes','_getFromVersion','keepParagraph','setSource','conversion','Initial\x20revision','from','_pendingAction','_removePendingAction','markerToData','get','revisionHistory.resumeUnsavedRevision','initial','$graveyard','creator','diffData','length','getWalker','_createInitialRevision','dataToMarker','_diffRoots','sourcePosition','_setAttribute','fromVersion','newRange','_markChanges','getOperations','PENDING_ACTION_REVISION_HISTORY','getRevision','processor','define','path','marked','includes','default','getData','_continueCurrentRevision','_source','data','startsWith','revision','childCount','_handleSplitOperation','model','clone','RealTimeCollaborationClient','start','_startingRevisionId','_cloneOperation','set','isEnabled','createPositionFromPath','_clone','createRevision','merge','getTime','remove','_loadRevisionData','stringify','_applyOperations','attributesBefore','getAttribute','_revisionId','find','_execute','createPositionAt','version','move','_loadedStateData','saveRevision','_fixOperation','add','view','PendingActions','_touchedRoots','root','_bufferUpdate','Users','_getVidAttributeName','revision:','_loadState','position','_savedMetaData','getCurrentRevisionId','trim','_idsRoots','_processRootBeforeSave','vid_end','removeRootAttribute','locale','_createCurrentRevision','markers','attachChange','addRootAttribute','some','roots','getChild','getRevisionDocumentData','_getState','getRootNames','documentFragment','elementStart','editor','keys','sendBufferedUpdates','creatorId','repository','getChildren','editing','getRevisions','sort','name','has','attributes','item','_removeMetaData','buildRevisionData','$text','bind','then','_revisionDataBuilder','userId','rootsAttributes','_diffRootsAttributes','slice','addRevisionData','_isAttached','_bufferedUpdates','deletions','_initialRevisionId','update','_update','_findInsertionIndex','useFillerType','collaboration.channelId','type','config','howMany','createRange','children','currentRevision','_baseRootsAttributes','_getViewJson','getNodeByPath','filter','nodeAfter','vid_start','_makeRevision','isAttached','_handleMarkerOperation','RevisionTracker','toModel'];(function(_0x226e7a,_0x24b1ce){const _0x185a29=function(_0x23610f){while(--_0x23610f){_0x226e7a['push'](_0x226e7a['shift']());}};_0x185a29(++_0x24b1ce);}(_0x24b1,0xf4));const _0x185a=function(_0x226e7a,_0x24b1ce){_0x226e7a=_0x226e7a-0x0;let _0x185a29=_0x24b1[_0x226e7a];return _0x185a29;};import{Users as _0x441d44}from'ckeditor5-collaboration/src/collaboration-core.js';import{Plugin as _0x5a3d86,PendingActions as _0x3ee409}from'ckeditor5/src/core.js';import{logWarning as _0xfbdb25,uid as _0x1aa673}from'ckeditor5/src/utils.js';import{Position as _0x2b681b,Range as _0xbdadd7,Element as _0x1d4e4d,DocumentFragment as _0x28129d,ViewText as _0x86e1d4,ViewElement as _0xd84814,ViewContainerElement as _0x3d358a,ViewAttributeElement as _0x470c50,ViewEmptyElement as _0x1eb5c7,ViewRawElement as _0x2b59e9,ViewUIElement as _0x2f83d7,ViewDocumentFragment as _0x51d10b}from'ckeditor5/src/engine.js';import _0x5335d1 from'./revisionsrepository.js';import{getTranslation as _0x352859}from'./utils/common-translations.js';import{cloneDeep as _0x4d1603,isEqual as _0x27cf90}from'lodash-es';const B={'c':_0x3d358a,'a':_0x470c50,'e':_0x1eb5c7,'r':_0x2b59e9,'u':_0x2f83d7};export default class l extends _0x5a3d86{static get[_0x185a('0x17')](){return _0x185a('0x12');}static get['requires'](){return[_0x441d44,_0x5335d1,_0x3ee409];}constructor(_0x3fb430){super(_0x3fb430),this[_0x185a('0x65')]=null,this['currentRevision']=null,this[_0x185a('0xfc')]=new H(this[_0x185a('0xea')]),this['_initialRevisionId']=this[_0x185a('0xea')][_0x185a('0x4')][_0x185a('0x8e')](_0x185a('0x2'))||_0x185a('0x90'),this[_0x185a('0x103')]=new Map(),this[_0x185a('0xc8')]=null;const _0x417821=_0x1aa673();this[_0x185a('0xa9')]={'history':this[_0x185a('0xea')][_0x185a('0xaf')][_0x185a('0x33')][_0x185a('0x55')],'getLatestVersion':()=>Promise[_0x185a('0x6e')](this['editor'][_0x185a('0xaf')][_0x185a('0x33')][_0x185a('0xc6')]),'getCurrentRevisionId':()=>_0x417821},this[_0x185a('0xb5')]('isReady',!0x1),this[_0x185a('0xb5')](_0x185a('0xb6'),!0x0),this[_0x185a('0xb5')](_0x185a('0x6d'),!0x1),this[_0x185a('0xea')][_0x185a('0x4')][_0x185a('0xa2')](_0x185a('0x8f'),!0x0),this[_0x185a('0xea')][_0x185a('0x88')]['for'](_0x185a('0x4f'))[_0x185a('0x97')]({'view':_0x185a('0xac')});}[_0x185a('0x2a')](){this[_0x185a('0xee')]=this[_0x185a('0xea')][_0x185a('0x68')]['get'](_0x185a('0x5d')),this[_0x185a('0x2b')](),this[_0x185a('0xea')]['data']['on']('ready',()=>{const _0x518d2e=this[_0x185a('0xee')][_0x185a('0xa0')](0x0),_0x431236=_0x518d2e&&null===_0x518d2e[_0x185a('0x92')]?_0x518d2e:null;if(this['_continueCurrentRevision']=!!_0x431236&&this[_0x185a('0xea')]['config'][_0x185a('0x8e')](_0x185a('0x8f')),this['editor'][_0x185a('0x68')][_0x185a('0xf4')](_0x185a('0xb1'))){const _0x3b2a45=this[_0x185a('0xa9')][_0x185a('0xd7')](),_0x2e462e=this[_0x185a('0xee')][_0x185a('0xa0')](_0x3b2a45);if(_0x2e462e)this[_0x185a('0x6f')]=_0x2e462e[_0x185a('0x9b')],this[_0x185a('0xa8')]=!0x1;else{const _0x242674=this[_0x185a('0xa9')]['history']['_operations'][_0x185a('0xc3')](_0x2131ca=>!_0x2131ca['_isInit']),_0x3a027d=_0x242674?_0x242674[_0x185a('0x7b')]:this[_0x185a('0xa9')][_0x185a('0x55')][_0x185a('0xc6')];_0x518d2e?(_0x518d2e[_0x185a('0x54')]<_0x3a027d&&_0x518d2e[_0x185a('0x107')]({'toVersion':_0x3a027d}),this[_0x185a('0xa8')]?(this[_0x185a('0xa9')][_0x185a('0xd7')]=()=>_0x431236['id'],this[_0x185a('0x6f')]=_0x431236['fromVersion']):(this[_0x185a('0x6f')]=_0x518d2e[_0x185a('0x54')],this['_continueCurrentRevision']=!0x1)):(this[_0x185a('0x6f')]=_0x3a027d,this[_0x185a('0xa8')]=!0x1);}}else _0x431236&&(this[_0x185a('0xea')][_0x185a('0xaf')][_0x185a('0x33')][_0x185a('0x55')][_0x185a('0xc6')]=Math[_0x185a('0x49')](_0x431236[_0x185a('0x54')],this['editor'][_0x185a('0xaf')][_0x185a('0x33')][_0x185a('0x55')][_0x185a('0xc6')]),_0x431236['fromVersion']===_0x431236[_0x185a('0x54')]?(0x0!==_0x431236['fromVersion']&&(this[_0x185a('0xa9')][_0x185a('0xd7')]=()=>_0x431236['id']),this[_0x185a('0xa8')]=!0x1):this[_0x185a('0xa8')]&&(this[_0x185a('0xa9')]['getCurrentRevisionId']=()=>_0x431236['id'],this[_0x185a('0x6f')]=_0x431236[_0x185a('0x9b')])),this['_continueCurrentRevision']||(this[_0x185a('0x6f')]=this[_0x185a('0xea')]['model']['document']['version']);this['_revisionDataBuilder']['init'](this[_0x185a('0xa9')][_0x185a('0x55')]),this[_0x185a('0x96')](this[_0x185a('0x6f')]),this[_0x185a('0xde')](this[_0x185a('0x6f')]),this[_0x185a('0x65')]&&this[_0x185a('0xec')]();}),this[_0x185a('0xfa')]('isReady')['to'](this,'_isPendingUpdate',_0x3c2e9d=>!_0x3c2e9d);}async[_0x185a('0x21')](){if(this[_0x185a('0xee')][_0x185a('0x94')]>0x0){const _0x2bbfa8=this['repository'][_0x185a('0xa0')](0x0),_0x437dca=await this[_0x185a('0xe5')](_0x2bbfa8),_0x28f34b=await this['getRevisionRootsAttributes'](_0x2bbfa8);this[_0x185a('0x4a')](_0x437dca,_0x28f34b);}}[_0x185a('0x87')](_0x405ac5){this[_0x185a('0xa9')]=_0x405ac5;}async[_0x185a('0x106')](){const _0x5e99f9=await this[_0x185a('0xa9')][_0x185a('0x83')]();if(_0x5e99f9>this['currentRevision'][_0x185a('0x54')]){await this[_0x185a('0xd4')]();const _0x1e0773=this[_0x185a('0xf8')]({'revision':this[_0x185a('0x8')],'to':_0x5e99f9});_0x1e0773[_0x185a('0x45')]=_0x1e0773[_0x185a('0x3d')][_0x185a('0x78')](_0x556742=>this[_0x185a('0xea')][_0x185a('0x68')][_0x185a('0x8e')](_0x185a('0xd1'))[_0x185a('0x50')](_0x556742)),this['currentRevision'][_0x185a('0x107')](_0x1e0773);}}async[_0x185a('0xd4')](){this[_0x185a('0xa8')]&&!this[_0x185a('0xc8')]&&(await this[_0x185a('0xbd')](this[_0x185a('0x8')]),this['_revisionDataBuilder'][_0x185a('0x66')](this[_0x185a('0x8')]),this['_loadedStateData']={'fromVersion':this[_0x185a('0x8')][_0x185a('0x9b')],'authors':this[_0x185a('0x8')][_0x185a('0x45')]['slice']()});}async[_0x185a('0xc9')](_0x25e838={},_0x4bc0cf=null){const _0x2dc898=[];await this[_0x185a('0xd4')](),this[_0x185a('0xa8')]=!0x1,_0x4bc0cf>this[_0x185a('0x8')][_0x185a('0x54')]&&(_0x4bc0cf=null),null===_0x4bc0cf&&(_0x4bc0cf=await this[_0x185a('0xa9')][_0x185a('0x83')]());const _0x47d444=this[_0x185a('0x85')](_0x4bc0cf),_0x4bf12a=this[_0x185a('0xf8')]({'from':_0x47d444,'to':_0x4bc0cf});if(this[_0x185a('0x8')][_0x185a('0x54')]<_0x4bc0cf){const _0x4f47b5=this['buildRevisionData']({'revision':this[_0x185a('0x8')],'from':_0x4bc0cf,'to':_0x4bc0cf});_0x4f47b5['authors']=[],_0x4f47b5[_0x185a('0x3d')]=[],_0x4f47b5['id']=this[_0x185a('0x8')]['id'],this[_0x185a('0x8')]['_update'](_0x4f47b5,!0x0),delete _0x4f47b5[_0x185a('0x45')],_0x2dc898['push'](_0x4f47b5);}_0x25e838[_0x185a('0xed')]=this[_0x185a('0xea')][_0x185a('0x68')][_0x185a('0x8e')](_0x185a('0xd1'))['me']['id'],_0x25e838[_0x185a('0xf3')]=_0x25e838['name']||null,_0x25e838['id']=_0x25e838['id']||_0x1aa673(),_0x25e838={..._0x25e838,..._0x4bf12a};const _0x30f537=this[_0x185a('0x101')](_0x25e838);_0x2dc898[_0x185a('0x81')](_0x25e838);const _0x13d425=this[_0x185a('0xee')]['getIndex'](_0x30f537);if(0x0!==_0x13d425){const _0x246b5f=this[_0x185a('0xee')][_0x185a('0xa0')](_0x13d425-0x1);if(_0x246b5f[_0x185a('0x9b')]!==_0x4bc0cf){const _0x486b29=this[_0x185a('0xfc')][_0x185a('0xa7')](_0x4bc0cf,_0x246b5f[_0x185a('0x54')]),_0x5c9122={'id':_0x246b5f['id'],'diffData':_0x486b29[_0x185a('0x93')],'authorsIds':_0x486b29['authorsIds'],'authors':_0x486b29[_0x185a('0x3d')]['map'](_0xe9d90a=>this[_0x185a('0xea')][_0x185a('0x68')]['get'](_0x185a('0xd1'))['getUser'](_0xe9d90a)),'fromVersion':_0x4bc0cf};_0x246b5f===this[_0x185a('0x8')]&&(_0x5c9122[_0x185a('0x36')]=new Date(_0x25e838[_0x185a('0x36')][_0x185a('0xbb')]()+0xa)),_0x246b5f[_0x185a('0x107')](_0x5c9122,!0x0),delete _0x5c9122['authors'],_0x2dc898['push'](_0x5c9122);}}if(this[_0x185a('0x65')]){for(const _0x14415b of _0x2dc898)this['_bufferUpdate'](_0x14415b['id'],_0x14415b,!0x0);this[_0x185a('0xec')]();}return _0x30f537;}[_0x185a('0x101')](_0x2d9e8f){const _0x480832=this[_0x185a('0xee')][_0x185a('0xb9')](_0x2d9e8f);return this['adapter']&&_0x480832['on'](_0x185a('0x107'),(_0x1eebfe,_0x1442a7,_0x18ec58)=>{_0x18ec58||(this[_0x185a('0xd0')](_0x1442a7['id'],_0x1442a7,!0x0),this[_0x185a('0xec')]());}),this[_0x185a('0xee')][_0x185a('0x44')](_0x480832,this[_0x185a('0x0')](_0x480832)),_0x480832;}async[_0x185a('0xe5')](_0xd492a0){await this[_0x185a('0xbd')](_0xd492a0);const _0x593e66={};for(const _0x5c63e3 in _0xd492a0[_0x185a('0x93')]){if(_0xd492a0[_0x185a('0x93')][_0x5c63e3][_0x185a('0xe0')]&&!_0xd492a0['diffData'][_0x5c63e3][_0x185a('0xe0')][_0x185a('0x10')])continue;const _0x488b4f=this[_0x185a('0x51')](JSON[_0x185a('0x62')](_0xd492a0[_0x185a('0x93')][_0x5c63e3][_0x185a('0x15')])),_0x489231=this[_0x185a('0xea')][_0x185a('0xf0')][_0x185a('0xcc')][_0x185a('0x33')],_0x2e49a1=new _0x51d10b(_0x489231,_0x488b4f[_0x185a('0x78')](_0x4b4231=>J(_0x4b4231,this['editor'])));this['editor']['data']['processor'][_0x185a('0x1')](_0x185a('0xa4')),_0x593e66[_0x5c63e3]=this['editor'][_0x185a('0xaa')][_0x185a('0xa1')][_0x185a('0x6c')](_0x2e49a1),this['editor']['data'][_0x185a('0xa1')][_0x185a('0x1')](_0x185a('0xa6'));}return _0x593e66;}async[_0x185a('0x77')](_0x1398f3){await this[_0x185a('0xbd')](_0x1398f3);const _0x51d820={};for(const _0x26462a in _0x1398f3[_0x185a('0x93')])_0x1398f3['diffData'][_0x26462a][_0x185a('0xe0')]&&!_0x1398f3['diffData'][_0x26462a]['attachChange']['isAttached']||(_0x51d820[_0x26462a]=_0x1398f3['diffData'][_0x26462a][_0x185a('0x3c')]||{});return _0x51d820;}[_0x185a('0xec')](){if(0x0===this[_0x185a('0x103')][_0x185a('0x67')])return;if(this[_0x185a('0x6d')])return;let _0x49eff2=Array[_0x185a('0x8a')](this['_bufferedUpdates'][_0x185a('0x7a')]());this['_bufferedUpdates'][_0x185a('0x5f')]();for(let _0x2578b4=0x0;_0x2578b4<_0x49eff2[_0x185a('0x94')];_0x2578b4++){const _0x2d6311=_0x49eff2[_0x2578b4];let _0x435d04=!0x1;for(const _0x3c3938 of Object[_0x185a('0xeb')](_0x2d6311))void 0x0===_0x2d6311[_0x3c3938]?delete _0x2d6311[_0x3c3938]:'id'!==_0x3c3938&&(_0x435d04=!0x0);_0x435d04||(_0x49eff2[_0x2578b4]=null);}if(_0x49eff2=_0x49eff2[_0x185a('0xc')](_0x1a5d60=>null!==_0x1a5d60),!_0x49eff2[_0x185a('0x94')])return;for(let _0x97080f=0x0;_0x97080f<_0x49eff2['length'];_0x97080f++){const _0x3b2cd6=_0x49eff2[_0x97080f];void 0x0!==_0x3b2cd6[_0x185a('0x9b')]&&void 0x0===_0x3b2cd6[_0x185a('0x54')]&&(_0x3b2cd6[_0x185a('0x54')]=this['repository'][_0x185a('0xa0')](_0x3b2cd6['id'])[_0x185a('0x54')]),void 0x0!==_0x3b2cd6[_0x185a('0x54')]&&void 0x0===_0x3b2cd6[_0x185a('0x9b')]&&(_0x3b2cd6[_0x185a('0x9b')]=this[_0x185a('0xee')]['getRevision'](_0x3b2cd6['id'])[_0x185a('0x9b')]);}const _0x2d26c3=this[_0x185a('0xea')][_0x185a('0x4')]['get']('collaboration.channelId');this[_0x185a('0x6d')]=!0x0,this[_0x185a('0x7f')](),this[_0x185a('0x65')][_0x185a('0x1f')](_0x49eff2,_0x2d26c3)[_0x185a('0x1c')](()=>{this['_isPendingUpdate']=!0x1;})[_0x185a('0xfb')](_0x49900d=>{if(_0x49900d)for(const _0xf66f32 of _0x49900d)this['setRevisionData']({'id':_0xf66f32['id'],'createdAt':_0xf66f32[_0x185a('0x36')]});this[_0x185a('0x8c')](),this[_0x185a('0xec')]();});}[_0x185a('0x4a')](_0x41d921,_0x861ba){let _0x3aedae=this[_0x185a('0xea')][_0x185a('0x4')][_0x185a('0x8e')](_0x185a('0x27')),_0x2ddf01=this[_0x185a('0xea')][_0x185a('0x4')][_0x185a('0x8e')]('rootsAttributes');if(void 0x0===_0x3aedae){_0x3aedae={};for(const _0x38b366 of this[_0x185a('0xea')]['model']['document'][_0x185a('0xe7')]())_0x3aedae[_0x38b366]='';}if(_0x185a('0x23')==typeof _0x3aedae&&(_0x3aedae={'main':_0x3aedae}),void 0x0===_0x2ddf01){_0x2ddf01={};for(const _0x301d9d of this[_0x185a('0xea')][_0x185a('0xaf')][_0x185a('0x33')][_0x185a('0xe7')]())_0x2ddf01[_0x301d9d]={};}let _0x22d09e=!0x1;const _0x20e41d=Object[_0x185a('0xeb')](_0x3aedae),_0x14e360=Object[_0x185a('0xeb')](_0x41d921);for(const _0x3414ba of _0x20e41d){if(_0x3aedae[_0x3414ba]!==_0x41d921[_0x3414ba]&&''!==_0x3aedae[_0x3414ba][_0x185a('0xd8')]()){_0x22d09e=!0x0;break;}if(!_0x27cf90(_0x2ddf01[_0x3414ba],_0x861ba[_0x3414ba])&&Object[_0x185a('0xeb')](_0x2ddf01[_0x3414ba])[_0x185a('0x94')]>0x0){_0x22d09e=!0x0;break;}}_0x22d09e||(_0x22d09e=_0x14e360[_0x185a('0xe2')](_0x1c0552=>!this[_0x185a('0xea')]['model'][_0x185a('0x33')][_0x185a('0x70')](_0x1c0552))),_0x22d09e&&_0xfbdb25(_0x185a('0x5c'),{'editorData':_0x3aedae,'editorRootsAttributes':_0x2ddf01,'revisionData':_0x41d921,'revisionRootsAttributes':_0x861ba}),this['editor'][_0x185a('0x4')][_0x185a('0xb5')]('initialData',_0x41d921),this['editor']['config'][_0x185a('0xb5')](_0x185a('0xfe'),_0x861ba);}[_0x185a('0x7f')](){if(!this[_0x185a('0x8b')]){const _0xb52377=this['editor'][_0x185a('0x68')][_0x185a('0x8e')](_0x185a('0xcd'));this[_0x185a('0x8b')]=_0xb52377['add'](_0x352859(this[_0x185a('0xea')]['locale'],_0x185a('0x9f')));}}[_0x185a('0x8c')](){this[_0x185a('0x8b')]&&(this['editor'][_0x185a('0x68')][_0x185a('0x8e')](_0x185a('0xcd'))[_0x185a('0xbc')](this['_pendingAction']),this[_0x185a('0x8b')]=null);}[_0x185a('0x0')](_0x4470e5){const _0x563dad=this[_0x185a('0xee')][_0x185a('0xf1')]();_0x563dad[_0x185a('0x24')]();let _0x59daf1=0x0;for(;_0x59daf1<_0x563dad[_0x185a('0x94')];){const _0x463196=_0x563dad[_0x59daf1];if(_0x463196===this[_0x185a('0x8')]){_0x59daf1++;continue;}if(_0x463196['id']===this[_0x185a('0x105')])break;const _0x163d17=_0x4470e5[_0x185a('0x54')]-_0x463196[_0x185a('0x54')]||_0x4470e5['fromVersion']-_0x463196[_0x185a('0x9b')];if(_0x163d17>0x0)break;if(_0x163d17<0x0)_0x59daf1++;else{if(!_0x4470e5['creator']&&_0x463196['creator'])break;if(_0x463196[_0x185a('0x92')]||!_0x4470e5['creator']){if(_0x4470e5[_0x185a('0x36')]>_0x463196[_0x185a('0x36')])break;_0x59daf1++;}else _0x59daf1++;}}return _0x59daf1;}[_0x185a('0x43')](_0x37df23){const _0x1c7533=this[_0x185a('0xee')]['getRevision'](_0x37df23['id']);if(_0x37df23[_0x185a('0x36')]&&(_0x37df23[_0x185a('0x36')]=new Date(_0x37df23[_0x185a('0x36')])),_0x37df23['authorsIds']){const _0x6cef95=this[_0x185a('0xea')][_0x185a('0x68')][_0x185a('0x8e')](_0x185a('0xd1'));_0x37df23[_0x185a('0x45')]=_0x37df23[_0x185a('0x3d')][_0x185a('0x78')](_0x1d4214=>_0x6cef95['getUser'](_0x1d4214));}_0x1c7533[_0x185a('0x107')](_0x37df23,!0x0);}[_0x185a('0xf8')]({revision:_0xf1a78a=null,from:_0x65a1c0=null,to:_0x41fd6d=null}){_0x65a1c0=null!==_0x65a1c0?_0x65a1c0:_0xf1a78a[_0x185a('0x9b')],_0x41fd6d=null!==_0x41fd6d?_0x41fd6d:_0xf1a78a[_0x185a('0x54')];const _0x326d8d=this['_revisionDataBuilder'][_0x185a('0xa7')](_0x65a1c0,_0x41fd6d),_0x2bbf66={'diffData':_0x326d8d[_0x185a('0x93')],'authorsIds':_0x326d8d[_0x185a('0x3d')],'fromVersion':_0x65a1c0,'toVersion':_0x41fd6d};if(!_0xf1a78a||_0x41fd6d!==_0xf1a78a['toVersion']){const _0x4ec115=_0x41fd6d-0x1,_0x50ca8f=this['_source']['history']['getOperation'](_0x4ec115);_0x2bbf66[_0x185a('0x36')]=_0x50ca8f&&_0x50ca8f['createdAt']||new Date();}if(this[_0x185a('0xc8')]&&_0x65a1c0===this['_loadedStateData'][_0x185a('0x9b')])for(const _0x3e24a7 of this[_0x185a('0xc8')][_0x185a('0x45')])_0x2bbf66['authorsIds'][_0x185a('0xa5')](_0x3e24a7['id'])||_0x2bbf66['authorsIds']['push'](_0x3e24a7['id']);return _0x2bbf66;}[_0x185a('0xbd')](_0x27d1c6){if(!_0x27d1c6||_0x27d1c6[_0x185a('0x93')])return Promise[_0x185a('0x6e')]();{const _0x2898f8=this[_0x185a('0xea')]['config']['get'](_0x185a('0x2'));return this[_0x185a('0x65')][_0x185a('0xa0')]({'channelId':_0x2898f8,'revisionId':_0x27d1c6['id']})[_0x185a('0xfb')](_0xebb587=>{_0x27d1c6['diffData']=_0xebb587[_0x185a('0x93')];});}}[_0x185a('0xd0')](_0x42a3e5,_0x367502,_0x548ace){if(this['_bufferedUpdates'][_0x185a('0xf4')](_0x42a3e5)){const _0x23c986=this[_0x185a('0x103')][_0x185a('0x8e')](_0x42a3e5);_0x367502=_0x548ace?{..._0x23c986,..._0x367502}:{..._0x367502,..._0x23c986};}this[_0x185a('0x103')][_0x185a('0xb5')](_0x42a3e5,_0x367502);}[_0x185a('0x85')](_0x1b42fe){const _0x113054=this[_0x185a('0xee')][_0x185a('0xf1')]();_0x113054['reverse'](),_0x113054[_0x185a('0x71')]();const _0x127595=_0x113054[_0x185a('0xc3')](_0x351279=>_0x351279[_0x185a('0x54')]<=_0x1b42fe)[_0x185a('0x54')];return _0x127595<this[_0x185a('0x6f')]?this[_0x185a('0x6f')]:_0x127595;}[_0x185a('0x96')](_0x8f9887){const _0x2319c1=this[_0x185a('0xee')][_0x185a('0xa0')](this[_0x185a('0xee')][_0x185a('0x94')]-0x1);if(_0x2319c1)this[_0x185a('0x105')]=_0x2319c1['id'];else{const _0x51240=!this[_0x185a('0xea')][_0x185a('0xaf')][_0x185a('0x33')][_0x185a('0xe3')][_0x185a('0xc3')](_0x155915=>this[_0x185a('0xea')][_0x185a('0xaf')][_0x185a('0x58')](_0x155915)),_0x10089d=this[_0x185a('0xea')][_0x185a('0x68')]['get'](_0x185a('0xd1'))['me']['id'],_0x46b3e2=_0x352859(this['editor'][_0x185a('0xdd')],_0x51240?_0x185a('0x61'):_0x185a('0x89'));this[_0x185a('0xf')]({'from':_0x8f9887,'to':_0x8f9887,'id':this[_0x185a('0x105')],'name':_0x46b3e2,'creatorId':_0x10089d});}}[_0x185a('0xde')](_0x388c30){const _0x45839e=this[_0x185a('0xa9')][_0x185a('0xd7')]();this[_0x185a('0x8')]=this[_0x185a('0xee')][_0x185a('0xa0')](_0x45839e),this[_0x185a('0x8')]||(this['currentRevision']=this[_0x185a('0xf')]({'from':_0x388c30,'to':_0x388c30,'id':_0x45839e,'name':'','creatorId':null}));}[_0x185a('0xf')]({name:_0xe04865,from:_0x54270a,to:_0x2d6332,creatorId:_0x41ec94,id:_0x42a99a}){const _0x167a6a=this[_0x185a('0xf8')]({'from':_0x54270a,'to':_0x2d6332});_0x167a6a[_0x185a('0xf3')]=_0xe04865,_0x167a6a['creatorId']=_0x41ec94,_0x167a6a['id']=_0x42a99a;const _0x3c6692=this['addRevisionData'](_0x167a6a);return this[_0x185a('0x65')]&&this[_0x185a('0xd0')](_0x167a6a['id'],_0x167a6a,!0x0),_0x3c6692;}['_setConversion'](){this[_0x185a('0xea')]['conversion']['for'](_0x185a('0x16'))[_0x185a('0x8d')]({'model':_0x185a('0xac')});}['_removeRevisionMarkers'](_0x214ae2){return(_0x214ae2=_0x214ae2['filter'](_0x254aa3=>!_0x254aa3[_0x185a('0xf3')]||_0x185a('0x31')!==_0x254aa3[_0x185a('0xf3')]&&_0x185a('0x1d')!==_0x254aa3['name']))['forEach'](_0x1ff133=>{_0x185a('0x23')!=typeof _0x1ff133&&(_0x1ff133[_0x185a('0x7')]=this['_removeRevisionMarkers'](_0x1ff133[_0x185a('0x7')]),_0x1ff133['attributes']=_0x1ff133[_0x185a('0xf5')][_0x185a('0xc')](_0x11997e=>!_0x11997e[0x0][_0x185a('0xab')](_0x185a('0x79'))));}),_0x214ae2;}}function J(_0x5c70a0,_0x4a74ec){const _0x3d57f7=_0x4a74ec['editing'][_0x185a('0xcc')]['document'];if(_0x185a('0x23')==typeof _0x5c70a0)return new _0x86e1d4(_0x3d57f7,_0x5c70a0);{const _0xc3e06=_0x5c70a0[_0x185a('0x7')][_0x185a('0x78')](_0x9c33e6=>J(_0x9c33e6,_0x4a74ec));return new(B[_0x5c70a0[(_0x185a('0x3'))]]||_0xd84814)(_0x3d57f7,_0x5c70a0['name'],_0x5c70a0[_0x185a('0xf5')],_0xc3e06);}}class H{constructor(_0x2581c9){this[_0x185a('0xea')]=_0x2581c9,this[_0x185a('0xd6')]=new Map(),this[_0x185a('0x2c')]=-0x1,this['_lastTo']=-0x1,this[_0x185a('0x32')]=new Map(),this[_0x185a('0x98')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x185a('0x57')]=new Map(),this[_0x185a('0x9')]=new Map(),this[_0x185a('0xd9')]=new Map(),this[_0x185a('0x34')]=new Map(),this[_0x185a('0x6a')]=new Map(),this[_0x185a('0x56')]=new Map(),this[_0x185a('0xce')]=new Map(),this[_0x185a('0xc2')]=0x1;}[_0x185a('0x2a')](_0x399ccf){this[_0x185a('0x2f')]=_0x399ccf;const _0x5eda30=new Map(),_0x41ccc2=new Map(),_0x11e4a8=this[_0x185a('0xea')][_0x185a('0xaf')]['document']['roots']['map'](_0x3f48be=>_0x3f48be[_0x185a('0x5b')]);for(const _0x2aedc4 of _0x11e4a8){const _0x3a3d98=this[_0x185a('0xea')][_0x185a('0xaf')]['document'][_0x185a('0x70')](_0x2aedc4),_0x4458c3=q(_0x3a3d98);_0x5eda30[_0x185a('0xb5')](_0x2aedc4,_0x4458c3),_0x41ccc2[_0x185a('0xb5')](_0x2aedc4,Object[_0x185a('0x72')](_0x3a3d98[_0x185a('0x3b')]()));}const _0x16d09e=Array[_0x185a('0x8a')](this[_0x185a('0xea')][_0x185a('0xaf')][_0x185a('0xdf')])['map'](_0x2fe712=>[_0x2fe712['name'],_0x2fe712['getRange']()]),_0x3ac0ba=this[_0x185a('0x2f')]['version'];this['_saveMetaData'](_0x3ac0ba,_0x5eda30,_0x16d09e,_0x41ccc2),this['_startingRevisionId']=this[_0x185a('0xc2')];const _0xdd9513=new Map(),_0x2e6dd6=new Map();for(const _0x45982 of _0x11e4a8){const _0x4c0a5d=G(_0x45982);_0xdd9513[_0x185a('0xb5')](_0x45982,_0x4c0a5d),_0x2e6dd6[_0x185a('0xb5')](_0x45982,{});}this[_0x185a('0x41')](Number[_0x185a('0x75')],_0xdd9513,[],_0x2e6dd6);}['getData'](_0x51472a,_0x3fb66c){if(this[_0x185a('0x2c')]===_0x51472a&&this[_0x185a('0x5a')]<=_0x3fb66c)this[_0x185a('0xd6')][_0x185a('0x67')]>0x1&&this[_0x185a('0xf7')](this['_lastTo']),this[_0x185a('0xbf')](this['_lastTo'],_0x3fb66c,!0x0);else{if(!this[_0x185a('0xd6')][_0x185a('0xf4')](_0x51472a)){const _0x5424f3=this['_getPreviousFrom'](_0x51472a);this[_0x185a('0x76')](_0x5424f3,_0x51472a,!0x1);}this[_0x185a('0x76')](_0x51472a,_0x3fb66c,!0x0);}return this[_0x185a('0x2c')]=_0x51472a,this['_lastTo']=_0x3fb66c,this[_0x185a('0xe6')]();}[_0x185a('0x66')](_0x2e5fdf){this[_0x185a('0x22')](),this['_lastFrom']=_0x2e5fdf[_0x185a('0x9b')],this['_lastTo']=_0x2e5fdf[_0x185a('0x54')];for(const _0x3b1129 in _0x2e5fdf[_0x185a('0x93')]){const _0x1f9f39=_0x2e5fdf[_0x185a('0x93')][_0x3b1129][_0x185a('0xe0')],_0x43d693=_0x4d1603(_0x2e5fdf[_0x185a('0x93')][_0x3b1129][_0x185a('0xc0')])||{},_0x13a34f=this[_0x185a('0x69')](_0x2e5fdf[_0x185a('0x93')][_0x3b1129][_0x185a('0x104')]);_0x13a34f[_0x185a('0x5b')]=_0x3b1129,_0x13a34f['_isAttached']=!_0x1f9f39||!_0x1f9f39[_0x185a('0x10')],_0x13a34f[_0x185a('0x10')]=()=>_0x13a34f[_0x185a('0x102')],this['_baseRoots'][_0x185a('0xb5')](_0x3b1129,_0x13a34f),this[_0x185a('0x9')][_0x185a('0xb5')](_0x3b1129,_0x43d693),_0x1f9f39&&this[_0x185a('0xce')]['set'](_0x3b1129,_0x1f9f39);const _0x2d00a3=this['_makeIdsRoot'](_0x13a34f);this[_0x185a('0x34')][_0x185a('0xb5')](_0x3b1129,_0x2d00a3);for(const [_0x41daad,_0x57d2bc]of _0x13a34f[_0x185a('0xdf')]){if(!_0x41daad[_0x185a('0xab')]('revision:'))continue;const _0xc2607f=_0x41daad[_0x185a('0x19')](':')[0x2];for(const _0x3b3965 of _0x57d2bc['getWalker']({'singleCharacters':!0x0})){const _0x3f0afa=this[_0x185a('0xd2')](_0x3b3965),_0xfe0e5c=_0x185a('0x6b')==_0x3b3965[_0x185a('0x3')]?_0x3b3965['previousPosition'][_0x185a('0xa3')][_0x185a('0x100')](0x0,-0x1):_0x3b3965['previousPosition'][_0x185a('0xa3')],_0xc0f92a=_0x2d00a3[_0x185a('0xb')](_0xfe0e5c)['getAttribute'](_0x3f0afa);this[_0x185a('0x6a')][_0x185a('0xb5')](_0xc0f92a,{'userId':_0xc2607f});}}}this['_startingRevisionId']=this[_0x185a('0xc2')];const _0x59a877=[...Array(this[_0x185a('0xc2')])[_0x185a('0xeb')]()][_0x185a('0x100')](0x1)[_0x185a('0xc')](_0x44475b=>!this['_touched'][_0x185a('0xf4')](_0x44475b));let _0xc6fa44=0x0;const _0x1f7ced=new Map();for(const _0x3956cc in _0x2e5fdf[_0x185a('0x93')]){const _0x5eb59c=_0x2e5fdf[_0x185a('0x93')][_0x3956cc][_0x185a('0xe0')],_0x229e78=_0x4d1603(_0x2e5fdf['diffData'][_0x3956cc][_0x185a('0x3c')])||{},_0x528753=this[_0x185a('0x69')](_0x2e5fdf[_0x185a('0x93')][_0x3956cc]['insertions']);_0x528753['rootName']=_0x3956cc,_0x528753[_0x185a('0x102')]=!_0x5eb59c||_0x5eb59c[_0x185a('0x10')],_0x528753['isAttached']=()=>_0x528753[_0x185a('0x102')],this[_0x185a('0x98')]['set'](_0x3956cc,_0x528753),this[_0x185a('0xff')][_0x185a('0xb5')](_0x3956cc,_0x229e78);const _0x420641=this[_0x185a('0x1b')](_0x528753,Number[_0x185a('0x75')]);this[_0x185a('0xd9')]['set'](_0x3956cc,_0x420641),_0x1f7ced[_0x185a('0xb5')](_0x3956cc,_0x528753[_0x185a('0x10')]()?_0x229e78:{});for(const [_0x3cd9c2,_0x5ea6d7]of _0x528753['markers']){if(!_0x3cd9c2['startsWith']('revision:'))continue;const _0x9acae8=_0x3cd9c2['split'](':')[0x2];for(const _0x5d8e15 of _0x5ea6d7[_0x185a('0x95')]({'singleCharacters':!0x0})){const _0x5388d1=this[_0x185a('0xd2')](_0x5d8e15),_0x1aecc0=this[_0x185a('0xc2')]++,_0x3015e6='elementEnd'==_0x5d8e15[_0x185a('0x3')]?_0x5d8e15[_0x185a('0x39')][_0x185a('0xa3')][_0x185a('0x100')](0x0,-0x1):_0x5d8e15[_0x185a('0x39')][_0x185a('0xa3')];_0x420641[_0x185a('0xb')](_0x3015e6)['_setAttribute'](_0x5388d1,_0x1aecc0),this[_0x185a('0x6a')][_0x185a('0xb5')](_0x1aecc0,{'userId':_0x9acae8});}}for(const _0x38543e of this[_0x185a('0xea')][_0x185a('0xaf')][_0x185a('0x1e')](_0x528753)[_0x185a('0x95')]({'singleCharacters':!0x0})){const _0x5ef3e1=this[_0x185a('0xd2')](_0x38543e),_0x14331f=_0x185a('0x6b')==_0x38543e[_0x185a('0x3')]?_0x38543e['previousPosition'][_0x185a('0xa3')][_0x185a('0x100')](0x0,-0x1):_0x38543e['previousPosition'][_0x185a('0xa3')],_0x20af94=_0x420641['getNodeByPath'](_0x14331f);_0x20af94['getAttribute'](_0x5ef3e1)>0x0||_0x20af94['_setAttribute'](_0x5ef3e1,_0x59a877[_0xc6fa44++]);}for(const [_0x2d2c54,_0x2af6d3]of _0x528753[_0x185a('0xdf')])_0x2d2c54[_0x185a('0xab')]('revision:')||this[_0x185a('0x32')][_0x185a('0xb5')](_0x2d2c54,_0x2af6d3);}const _0xd1cf5e=G('$graveyard');this[_0x185a('0x57')][_0x185a('0xb5')](_0x185a('0x91'),_0xd1cf5e),this[_0x185a('0x34')][_0x185a('0xb5')](_0x185a('0x91'),this[_0x185a('0x1b')](_0xd1cf5e,0x1));const _0x55daa1=G(_0x185a('0x91'));this[_0x185a('0x98')][_0x185a('0xb5')]('$graveyard',_0x55daa1),this[_0x185a('0xd9')][_0x185a('0xb5')]('$graveyard',this[_0x185a('0x1b')](_0x55daa1,0x1));const _0x350a6e=Array[_0x185a('0x8a')](this[_0x185a('0x98')])[_0x185a('0x78')](([_0xcd856d,_0x5f3a89])=>[_0xcd856d,q(_0x5f3a89)]);this[_0x185a('0x41')](this[_0x185a('0x5a')],_0x350a6e,this[_0x185a('0x32')],_0x1f7ced);}['_makeModelFromViewString'](_0x30c9a9){const _0x26b697=JSON['parse'](_0x30c9a9),_0x333f5a=this[_0x185a('0xea')][_0x185a('0xf0')][_0x185a('0xcc')][_0x185a('0x33')],_0x454bbc=new _0x51d10b(_0x333f5a,_0x26b697['map'](_0x3e4327=>J(_0x3e4327,this[_0x185a('0xea')])));return this[_0x185a('0xea')][_0x185a('0xaa')][_0x185a('0x13')](_0x454bbc);}['_saveMetaData'](_0x299f7f,_0x4bfb7a,_0x35e71e,_0x4bb38c){const _0x57a8af=new Map(_0x4bfb7a),_0x806a1d=new Map(_0x4d1603(_0x4bb38c)),_0x271b7c=new Map();for(const [_0x357a29,_0x5c0279]of _0x35e71e)_0x271b7c[_0x185a('0xb5')](_0x357a29,{'start':_0x5c0279['start'][_0x185a('0xb0')](),'end':_0x5c0279['end']['clone'](),'rootName':_0x5c0279[_0x185a('0xcf')]['rootName']});this[_0x185a('0xd6')][_0x185a('0xb5')](_0x299f7f,{'roots':_0x57a8af,'markers':_0x271b7c,'rootsAttributes':_0x806a1d});}['_removeMetaData'](_0x1b5dfa){this[_0x185a('0xd6')][_0x185a('0x40')](_0x1b5dfa);}['reInit'](){this[_0x185a('0x22')](),this['_lastFrom']=-0x1,this[_0x185a('0x5a')]=-0x1,this[_0x185a('0xd6')][_0x185a('0x5f')](),this['init'](this['source']);}[_0x185a('0x22')](){this[_0x185a('0x6a')][_0x185a('0x5f')](),this['_touchedMarkers']['clear'](),this[_0x185a('0xce')][_0x185a('0x5f')](),this[_0x185a('0x98')]['clear'](),this['_diffRootsAttributes'][_0x185a('0x5f')](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this[_0x185a('0xd9')]['clear'](),this[_0x185a('0x34')][_0x185a('0x5f')](),this[_0x185a('0x32')][_0x185a('0x5f')](),this['_revisionId']=0x1,this[_0x185a('0xb3')]=this[_0x185a('0xc2')];}[_0x185a('0x1b')](_0x34190e,_0x52f289=null){let _0x27e67a=null;_0x34190e['is'](_0x185a('0xe8'))||(_0x27e67a=new _0x1d4e4d(_0x34190e[_0x185a('0xf3')],{'vid_start':null===_0x52f289?this[_0x185a('0xc2')]++:_0x52f289++}));const _0x2ef609=[];for(const _0x3d8e50 of _0x34190e[_0x185a('0xef')]())if(_0x3d8e50['is'](_0x185a('0x18'))){_0x2ef609[_0x185a('0x81')](this[_0x185a('0x1b')](_0x3d8e50,_0x52f289));const _0x387426=_0x2ef609[_0x2ef609[_0x185a('0x94')]-0x1];null!==_0x52f289&&(_0x52f289=_0x387426['is'](_0x185a('0x18'),'$text')?_0x387426['getAttribute'](_0x185a('0x3f'))+0x1:_0x387426[_0x185a('0xc1')](_0x185a('0xdb'))+0x1);}else for(let _0x44cae5=0x0;_0x44cae5<_0x3d8e50['offsetSize'];_0x44cae5++)_0x2ef609[_0x185a('0x81')](new _0x1d4e4d(_0x185a('0xf9'),{'vid':null===_0x52f289?this[_0x185a('0xc2')]++:_0x52f289++}));if(_0x34190e['is'](_0x185a('0xe8'))){const _0x58bd7a=G(_0x34190e[_0x185a('0x5b')]);return _0x58bd7a[_0x185a('0x28')](0x0,_0x2ef609),_0x58bd7a;}return _0x27e67a['_setAttribute'](_0x185a('0xdb'),null===_0x52f289?this['_revisionId']++:_0x52f289++),_0x27e67a[_0x185a('0x28')](0x0,_0x2ef609),_0x27e67a;}['_calculateMetaData'](_0x48fa72,_0x54bbea,_0x198ed6){this['_reset']();const {roots:_0x54dcad,markers:_0x18b4e0,rootsAttributes:_0x323d43}=this[_0x185a('0xd6')][_0x185a('0x8e')](_0x48fa72);this['_baseRoots']=new Map(_0x54dcad),this['_baseRootsAttributes']=new Map(_0x4d1603(_0x323d43));for(const [_0x5e83d5,_0x1d50ec]of this[_0x185a('0x57')])if(_0x185a('0x91')!==_0x5e83d5&&(this[_0x185a('0x98')]['set'](_0x5e83d5,q(_0x1d50ec)),this['_diffRootsAttributes']=new Map(_0x4d1603(_0x323d43)),_0x198ed6)){const _0x26a5fc=this['_revisionId'];this[_0x185a('0xd9')][_0x185a('0xb5')](_0x5e83d5,this[_0x185a('0x1b')](_0x1d50ec)),this[_0x185a('0x34')][_0x185a('0xb5')](_0x5e83d5,this[_0x185a('0x1b')](_0x1d50ec,_0x26a5fc));}this[_0x185a('0xb3')]=this[_0x185a('0xc2')],this['_diffRoots'][_0x185a('0xb5')](_0x185a('0x91'),q(this[_0x185a('0x57')][_0x185a('0x8e')](_0x185a('0x91')))),_0x198ed6&&this['_idsRoots']['set'](_0x185a('0x91'),this[_0x185a('0x1b')](this[_0x185a('0x57')][_0x185a('0x8e')]('$graveyard')));for(const [_0x28c03a,_0x2f9742]of _0x18b4e0){const _0x4e7caa=this[_0x185a('0x57')][_0x185a('0x8e')](_0x2f9742[_0x185a('0x5b')]),_0x21cef6=this['_diffRoots'][_0x185a('0x8e')](_0x2f9742[_0x185a('0x5b')]),_0x454773=new _0xbdadd7(this['_fixPosition'](_0x2f9742[_0x185a('0xb2')],_0x4e7caa),this[_0x185a('0x3a')](_0x2f9742['end'],_0x4e7caa)),_0x31a6e8=this['_fixRange'](_0x454773,_0x21cef6);_0x4e7caa[_0x185a('0xdf')]['set'](_0x28c03a,_0x454773),this[_0x185a('0x32')][_0x185a('0xb5')](_0x28c03a,_0x31a6e8);}this[_0x185a('0xbf')](_0x48fa72,_0x54bbea,_0x198ed6);}[_0x185a('0xbf')](_0x35c83,_0x5bce33,_0x4f423e){for(const _0x52aefb of this[_0x185a('0x2f')][_0x185a('0x9e')](_0x35c83,_0x5bce33))this[_0x185a('0x37')](_0x52aefb,_0x4f423e);for(const _0x31625e of this[_0x185a('0x98')]['values']())_0x31625e['markers'][_0x185a('0x5f')]();for(const [_0x1a2e95,_0x58217a]of this[_0x185a('0x32')]){this[_0x185a('0x98')][_0x185a('0x8e')](_0x58217a[_0x185a('0xcf')][_0x185a('0x5b')])[_0x185a('0xdf')][_0x185a('0xb5')](_0x1a2e95,_0x58217a['clone']());}const _0x296434=new Map(),_0x2add02=new Map();for(const [_0x52b576,_0x4f6021]of this['_diffRoots'])_0x296434['set'](_0x52b576,q(_0x4f6021)),_0x2add02[_0x185a('0xb5')](_0x52b576,this[_0x185a('0xff')][_0x185a('0x8e')](_0x52b576));this[_0x185a('0x41')](_0x5bce33,_0x296434,this[_0x185a('0x32')],_0x2add02);}['_getPreviousFrom'](_0x122e0d){const _0x2a2afb=Array['from'](this['_savedMetaData'][_0x185a('0xeb')]());_0x2a2afb[_0x185a('0xf2')]((_0x29a68d,_0x342ad0)=>_0x29a68d-_0x342ad0),_0x2a2afb[_0x185a('0x24')]();for(const _0x2808e9 of _0x2a2afb)if(_0x2808e9<_0x122e0d)return _0x2808e9;return Number[_0x185a('0x75')];}['_copyMarkers'](_0x4b74f5,_0x20cd30){const _0xabea3b=Array[_0x185a('0x8a')](_0x20cd30[_0x185a('0xdf')])[_0x185a('0x78')](([_0x1a7963,_0x8f2c58])=>[_0x1a7963,this[_0x185a('0x1a')](_0x8f2c58,_0x4b74f5)]);_0x4b74f5[_0x185a('0xdf')]=new Map(_0xabea3b);}['_transformMarkers'](_0x57f1fa){for(const _0x18a361 of this['_markers'][_0x185a('0x7a')]()){const _0x5c6be2=_0x18a361['getTransformedByOperation'](_0x57f1fa),_0x4abc3f=_0xbdadd7[_0x185a('0x52')](_0x5c6be2);_0x18a361[_0x185a('0xb2')]=_0x4abc3f[_0x185a('0xb2')],_0x18a361['end']=_0x4abc3f[_0x185a('0x42')];}}[_0x185a('0x37')](_0x4b2953,_0x4fd48f){if(_0x185a('0x20')==_0x4b2953[_0x185a('0x3')]||'detachRoot'==_0x4b2953['type'])return void this[_0x185a('0x35')](_0x4b2953,_0x4fd48f);if(_0x185a('0x48')==_0x4b2953[_0x185a('0x3')]){const _0x19566d=_0x4b2953[_0x185a('0xd5')][_0x185a('0xcf')][_0x185a('0x5b')];this['_diffRoots'][_0x185a('0xf4')](_0x19566d)||(this[_0x185a('0x98')][_0x185a('0xb5')](_0x19566d,G(_0x19566d,!0x0)),this[_0x185a('0xff')][_0x185a('0xb5')](_0x19566d,{}),_0x4fd48f&&this['_idsRoots']['set'](_0x19566d,G(_0x19566d,!0x0)));}else{if(_0x185a('0xe1')==_0x4b2953[_0x185a('0x3')]||_0x185a('0xdc')==_0x4b2953['type']||'changeRootAttribute'==_0x4b2953['type'])return void this['_handleRootAttributeOperation'](_0x4b2953);}const _0x227381=this[_0x185a('0xb4')](_0x4b2953,this[_0x185a('0x98')]);if(_0x185a('0x7e')!==_0x4b2953[_0x185a('0x3')]&&(_0x227381['_execute'](),this[_0x185a('0x4b')](_0x227381)),_0x4fd48f)switch(_0x227381[_0x185a('0x3')]){case _0x185a('0x48'):this[_0x185a('0x5e')](_0x4b2953);break;case _0x185a('0xc7'):case'remove':case _0x185a('0x38'):this[_0x185a('0x59')](_0x4b2953);break;case _0x185a('0xba'):this['_handleMergeOperation'](_0x4b2953);break;case'split':this[_0x185a('0xae')](_0x4b2953);break;case _0x185a('0x7e'):this[_0x185a('0x11')](_0x4b2953);}}[_0x185a('0xb4')](_0x4b0ff6,_0x2df275){const _0x3bce73=_0x4b0ff6['clone']();return _0x3bce73[_0x185a('0x47')]=_0x4b0ff6[_0x185a('0x47')],this[_0x185a('0xca')](_0x3bce73,_0x2df275),_0x3bce73;}[_0x185a('0x60')](_0x38c417){return _0x38c417['map'](_0x39a67b=>{const _0x37b761=this['_getVidAttributeName'](_0x39a67b);return Number(_0x39a67b['item']['getAttribute'](_0x37b761));});}['_generateTape'](_0x3c9708,_0x10af16){if(_0x3c9708['is']('element',_0x185a('0xf9')))_0x10af16[_0x185a('0x81')]({'item':_0x3c9708,'type':_0x185a('0x4c')});else{_0x3c9708['is']('element')&&_0x10af16[_0x185a('0x81')]({'item':_0x3c9708,'type':'elementStart'});for(const _0x280856 of _0x3c9708[_0x185a('0xef')]())this[_0x185a('0x82')](_0x280856,_0x10af16);_0x3c9708['is'](_0x185a('0x18'))&&_0x10af16['push']({'item':_0x3c9708,'type':_0x185a('0x6b')});}return _0x10af16;}['_getState'](){const _0x98cca7=new Map(this[_0x185a('0x6a')]),_0x30c339=new Map(_0x98cca7),_0x32a9f1=new Map(),_0x1e2f38={'insertions':{},'deletions':{}},_0x68598f={'insertions':{},'deletions':{}},_0x26bd4f=new Map(),_0x5e0f90=new Set([...this[_0x185a('0x57')][_0x185a('0xeb')](),...this[_0x185a('0x98')][_0x185a('0xeb')]()]);_0x5e0f90['delete'](_0x185a('0x91'));for(const _0x40ca46 of _0x5e0f90){const _0xeb2ac8=this['_diffRoots']['get'](_0x40ca46)||G(_0x40ca46,!0x1),_0x2cad4a=this[_0x185a('0x57')][_0x185a('0x8e')](_0x40ca46)||G(_0x40ca46,!0x1);_0xeb2ac8[_0x185a('0x10')]()||_0x2cad4a['isAttached']()?(_0x1e2f38[_0x185a('0x15')][_0x40ca46]=q(_0xeb2ac8),_0x1e2f38['deletions'][_0x40ca46]=q(_0x2cad4a),this[_0x185a('0x25')](_0x1e2f38[_0x185a('0x104')][_0x40ca46],_0x2cad4a),this['_copyMarkers'](_0x1e2f38[_0x185a('0x15')][_0x40ca46],_0xeb2ac8),_0x68598f[_0x185a('0x15')][_0x40ca46]=this[_0x185a('0x82')](this[_0x185a('0xd9')][_0x185a('0x8e')](_0x40ca46),[]),_0x68598f[_0x185a('0x104')][_0x40ca46]=this['_generateTape'](this[_0x185a('0x34')][_0x185a('0x8e')](_0x40ca46)||G(_0x40ca46,!0x1),[])):_0x5e0f90[_0x185a('0x40')](_0x40ca46);}for(const _0x5bb71b of _0x5e0f90){const _0x22c140=_0x68598f['insertions'][_0x5bb71b];for(const _0x1e62d0 of _0x22c140){const _0x5843fe=this[_0x185a('0xd2')](_0x1e62d0),_0x1c972f=_0x1e62d0[_0x185a('0xf6')][_0x185a('0xc1')](_0x5843fe);_0x30c339[_0x185a('0x40')](_0x1c972f),_0x1c972f>=this[_0x185a('0xb3')]&&_0x32a9f1['set'](_0x1c972f,_0x98cca7[_0x185a('0x8e')](_0x1c972f));}}for(const _0x19a62f of _0x5e0f90){const _0x1c2ca2=_0x68598f[_0x185a('0x15')][_0x19a62f],_0x5beb59=this[_0x185a('0x60')](_0x68598f[_0x185a('0x104')][_0x19a62f]);let _0x1bd947=0x0;for(const _0x10bc14 of _0x1c2ca2){const _0x3f7272=this[_0x185a('0xd2')](_0x10bc14),_0x8f8e86=_0x10bc14[_0x185a('0xf6')]['getAttribute'](_0x3f7272);if(!_0x32a9f1[_0x185a('0xf4')](_0x8f8e86)&&!_0x26bd4f[_0x185a('0xf4')](_0x8f8e86)){if(_0x30c339['has'](_0x8f8e86))_0x1bd947++;else{if(_0x8f8e86!=_0x5beb59[_0x1bd947]){const _0x1429a1=_0x98cca7[_0x185a('0x8e')](_0x8f8e86)||_0x98cca7[_0x185a('0x8e')](_0x5beb59[_0x1bd947]);for(;_0x8f8e86!=_0x5beb59[_0x1bd947];)_0x30c339['has'](_0x5beb59[_0x1bd947])||(_0x26bd4f[_0x185a('0xb5')](_0x5beb59[_0x1bd947],_0x1429a1),_0x98cca7[_0x185a('0xb5')](_0x5beb59[_0x1bd947],_0x1429a1)),_0x1bd947++;}_0x1bd947++;}}}}for(const _0x3bfec3 of _0x5e0f90){const _0x53d21d=_0x68598f[_0x185a('0x15')][_0x3bfec3];for(const _0x5bc9f9 of _0x53d21d){const _0x3581ca=this[_0x185a('0xd2')](_0x5bc9f9),_0x1a9aa7=_0x5bc9f9['item'][_0x185a('0xc1')](_0x3581ca);if(_0x26bd4f[_0x185a('0xf4')](_0x1a9aa7)){const _0x4e8eeb=_0x26bd4f[_0x185a('0x8e')](_0x1a9aa7);_0x30c339['has'](_0x1a9aa7)||_0x30c339['set'](_0x1a9aa7,{..._0x4e8eeb}),_0x32a9f1[_0x185a('0xb5')](_0x1a9aa7,{..._0x4e8eeb});}}}for(const _0x133035 of _0x30c339[_0x185a('0xeb')]())_0x133035>=this['_startingRevisionId']&&_0x30c339[_0x185a('0x40')](_0x133035);const _0x271a3e=new Map();for(const _0x25cf84 of _0x5e0f90){let _0x95b7bb=_0x68598f['insertions'][_0x25cf84];for(const _0x4be6da of _0x95b7bb)if(_0x4be6da['item']['is']('element',_0x185a('0x64'))){const _0x3c03e9=this[_0x185a('0xd2')](_0x4be6da),_0x1de569=_0x4be6da[_0x185a('0xf6')]['getAttribute'](_0x3c03e9);if(_0x32a9f1[_0x185a('0xf4')](_0x1de569)){const _0x2a3ccf=_0x4be6da[_0x185a('0xf6')]['parent']['parent'][_0x185a('0xc1')](_0x185a('0xe')),_0x2216c9=_0x271a3e[_0x185a('0x8e')](_0x2a3ccf)||new Set();_0x2216c9[_0x185a('0xcb')](_0x32a9f1['get'](_0x1de569)[_0x185a('0xfd')]),_0x271a3e[_0x185a('0xb5')](_0x2a3ccf,_0x2216c9);}}_0x95b7bb=_0x68598f['deletions'][_0x25cf84];for(const _0x4493f2 of _0x95b7bb)if(_0x4493f2[_0x185a('0xf6')]['is'](_0x185a('0x18'),_0x185a('0x64'))){const _0x190e75=this[_0x185a('0xd2')](_0x4493f2),_0x2fc122=_0x4493f2[_0x185a('0xf6')][_0x185a('0xc1')](_0x190e75);if(_0x30c339['has'](_0x2fc122)){const _0x15638e=_0x4493f2[_0x185a('0xf6')]['parent'][_0x185a('0x73')][_0x185a('0xc1')](_0x185a('0xe')),_0x1a4cb5=_0x271a3e[_0x185a('0x8e')](_0x15638e)||new Set();_0x1a4cb5[_0x185a('0xcb')](_0x30c339[_0x185a('0x8e')](_0x2fc122)[_0x185a('0xfd')]),_0x271a3e[_0x185a('0xb5')](_0x15638e,_0x1a4cb5);}}for(const _0x538950 of _0x271a3e[_0x185a('0xeb')]())(_0x32a9f1['has'](_0x538950)||_0x30c339[_0x185a('0xf4')](_0x538950))&&_0x271a3e[_0x185a('0x40')](_0x538950);}for(const _0x2192b of _0x5e0f90){const _0x2fe9e6=_0x68598f[_0x185a('0x15')][_0x2192b];let _0x13e871=null,_0x18c1d8=null;for(const _0x2e87c5 of _0x2fe9e6){const _0x8f75d4=this[_0x185a('0xd2')](_0x2e87c5),_0x97a1f9=_0x2e87c5[_0x185a('0xf6')]['getAttribute'](_0x8f75d4),_0x5027ca=_0x271a3e[_0x185a('0x8e')](_0x97a1f9);_0x5027ca&&_0x185a('0xe9')==_0x2e87c5['type']&&(_0x13e871=Array['from'](_0x5027ca)[0x0],_0x18c1d8=_0x2e87c5['item'][_0x185a('0xc1')](_0x185a('0xdb'))),_0x13e871&&(_0x30c339['set'](_0x97a1f9,{'userId':_0x13e871}),_0x32a9f1[_0x185a('0xb5')](_0x97a1f9,{'userId':_0x13e871})),_0x97a1f9==_0x18c1d8&&(_0x13e871=null,_0x18c1d8=null);}}const _0x389970={},_0x423fb0=new Set();for(const _0x200977 of _0x5e0f90){const _0x146541=_0x1e2f38['deletions'][_0x200977],_0x4ab32b=_0x1e2f38['insertions'][_0x200977];for(const {userId:_0x287c6f}of this[_0x185a('0x56')]['values']())null!==_0x287c6f&&_0x423fb0[_0x185a('0xcb')](_0x287c6f);for(const {userId:_0x171901}of this[_0x185a('0xce')][_0x185a('0x7a')]())null!==_0x171901&&_0x423fb0[_0x185a('0xcb')](_0x171901);this['_markChanges'](_0x4ab32b,_0x68598f[_0x185a('0x15')][_0x200977],_0x32a9f1,_0x185a('0x2d'),_0x423fb0),this['_markChanges'](_0x146541,_0x68598f[_0x185a('0x104')][_0x200977],_0x30c339,'deletion',_0x423fb0),_0x389970[_0x200977]={'insertions':this[_0x185a('0x4e')](_0x4ab32b),'deletions':this[_0x185a('0x4e')](_0x146541),'attachChange':this[_0x185a('0xce')][_0x185a('0x8e')](_0x200977)||null,'attributesBefore':_0x4d1603(this['_baseRootsAttributes'][_0x185a('0x8e')](_0x200977))||{},'attributesAfter':_0x4d1603(this['_diffRootsAttributes']['get'](_0x200977))};}return{'diffData':_0x389970,'authorsIds':Array[_0x185a('0x8a')](_0x423fb0)};}[_0x185a('0xda')](_0x41c944){for(const [,_0x3455d5]of _0x41c944['markers']){const _0x1b9688=_0x3455d5[_0x185a('0xb2')]['getAncestors']()[_0x185a('0xc')](_0x4c20dd=>_0x185a('0x64')==_0x4c20dd[_0x185a('0xf3')]);for(const _0x2f5d2c of _0x1b9688)0x1==_0x2f5d2c[_0x185a('0xad')]&&_0x2f5d2c[_0x185a('0xe4')](0x0)['is']('element',_0x185a('0x63'))&&_0x2f5d2c['getChild'](0x0)['_setAttribute'](_0x185a('0x86'),!0x0);}}[_0x185a('0x4e')](_0x3953dc){this['_processRootBeforeSave'](_0x3953dc);const _0x238e2e=this['editor']['data']['toView'](_0x3953dc,{}),_0x258fb6=Array[_0x185a('0x8a')](_0x238e2e[_0x185a('0xef')]())['map'](_0x62d87a=>this[_0x185a('0xa')](_0x62d87a));return JSON[_0x185a('0xbe')](_0x258fb6);}['_getViewJson'](_0x28e56e){if(_0x28e56e['is'](_0x185a('0xf9')))return _0x28e56e[_0x185a('0xaa')];{const _0x351229=_0x28e56e;return{'type':Object['keys'](B)[_0x185a('0xc3')](_0x5d0cfc=>_0x28e56e instanceof B[_0x5d0cfc]),'name':_0x351229[_0x185a('0xf3')],'attributes':Array[_0x185a('0x8a')](_0x351229['getAttributes']()),'children':Array[_0x185a('0x8a')](_0x351229[_0x185a('0xef')]())[_0x185a('0x78')](_0x4ef7fc=>this[_0x185a('0xa')](_0x4ef7fc))};}}[_0x185a('0x9d')](_0x2e7d39,_0x46bf12,_0x2ce529,_0x9b94e6,_0x2b8a7e){let _0x17e495=null,_0x15d89c=null,_0x2cb6a1=0x0;const _0x5865b1=this[_0x185a('0xea')]['model'];for(let _0x150b87=0x0;_0x150b87<_0x46bf12[_0x185a('0x94')];_0x150b87++){const _0x4bc0df=this[_0x185a('0xd2')](_0x46bf12[_0x150b87]),_0x240210=_0x46bf12[_0x150b87][_0x185a('0xf6')]['getAttribute'](_0x4bc0df),_0x2f423a=_0x2ce529['get'](_0x240210),_0x2eda83=_0x150b87==_0x46bf12[_0x185a('0x94')]-0x1;(!_0x17e495&&_0x2f423a&&(_0x17e495=_0x2f423a,_0x15d89c=_0x46bf12[_0x150b87]),_0x17e495&&(!_0x2f423a||_0x2f423a['userId']!=_0x17e495['userId']))&&(_0x469a2e(_0x2f423a,L(_0x15d89c,_0x2e7d39,_0x5865b1),L(_0x46bf12[_0x150b87],_0x2e7d39,_0x5865b1)),_0x17e495=_0x2f423a||null,_0x15d89c=_0x2f423a?_0x46bf12[_0x150b87]:null),_0x17e495&&_0x2eda83&&_0x469a2e(_0x2f423a,L(_0x15d89c,_0x2e7d39,_0x5865b1),W(_0x46bf12[_0x150b87],_0x2e7d39,_0x5865b1));}function _0x469a2e(_0xc7b64c,_0x212258,_0x533049){const _0x11a52d=_0x17e495[_0x185a('0xfd')],_0x5ef72f=_0x185a('0xd3')+_0x9b94e6+':'+_0x11a52d+':'+_0x2cb6a1++,_0x291bee=_0x5865b1[_0x185a('0x6')](_0x212258,_0x533049);_0x2e7d39[_0x185a('0xdf')][_0x185a('0xb5')](_0x5ef72f,_0x291bee),null!==_0x11a52d&&_0x2b8a7e[_0x185a('0xcb')](_0x11a52d);}}[_0x185a('0xd2')](_0x13849b){switch(_0x13849b['type']){case _0x185a('0xe9'):return _0x185a('0xe');case _0x185a('0x6b'):return _0x185a('0xdb');default:return _0x185a('0x3f');}}['_fixOperation'](_0x40622f,_0x4116d0){_0x40622f[_0x185a('0x7b')]=null;for(const _0x2dd342 in _0x40622f){const _0x399193=_0x40622f[_0x2dd342];if(_0x399193 instanceof _0x2b681b){const _0x440e07=_0x4116d0[_0x185a('0x8e')](_0x399193[_0x185a('0xcf')][_0x185a('0x5b')]);_0x40622f[_0x2dd342]=this[_0x185a('0x3a')](_0x399193,_0x440e07);}if(_0x399193 instanceof _0xbdadd7){const _0x4dbed0=_0x4116d0['get'](_0x399193[_0x185a('0xcf')][_0x185a('0x5b')]);_0x40622f[_0x2dd342]=this[_0x185a('0x1a')](_0x399193,_0x4dbed0);}_0x185a('0xcf')===_0x2dd342&&(_0x40622f[_0x185a('0xcf')]=_0x4116d0[_0x185a('0x8e')](_0x40622f['root'][_0x185a('0x5b')]));}}[_0x185a('0x1a')](_0x161a21,_0x2b5033){return this[_0x185a('0xea')][_0x185a('0xaf')]['createRange'](this[_0x185a('0x3a')](_0x161a21[_0x185a('0xb2')],_0x2b5033),this[_0x185a('0x3a')](_0x161a21['end'],_0x2b5033));}['_fixPosition'](_0x2f446c,_0x4fd76a){return this[_0x185a('0xea')]['model'][_0x185a('0xb7')](_0x4fd76a,_0x2f446c[_0x185a('0xa3')],_0x2f446c[_0x185a('0x3e')]);}[_0x185a('0x5e')](_0x258a65){const _0x324c9c=this['_idsRoots'][_0x185a('0x8e')](_0x258a65[_0x185a('0xd5')][_0x185a('0xcf')][_0x185a('0x5b')]),_0x224629=this['_fixPosition'](_0x258a65[_0x185a('0xd5')],_0x324c9c),_0x50a2a8=null===_0x258a65[_0x185a('0x47')]?null:_0x258a65['_authorId']||this[_0x185a('0xea')][_0x185a('0x68')][_0x185a('0x8e')](_0x185a('0xd1'))['me']['id'],_0x3c64c6=_0x224629['parent'],_0x361e65=this['_revisionId'],_0x3fa5b3=[];for(const _0xd79f6c of _0x258a65[_0x185a('0x84')])if(_0xd79f6c['is'](_0x185a('0x18')))_0x3fa5b3[_0x185a('0x81')](this[_0x185a('0x1b')](_0xd79f6c));else for(let _0xd8f7ea=0x0;_0xd8f7ea<_0xd79f6c[_0x185a('0x30')];_0xd8f7ea++)_0x3fa5b3['push'](new _0x1d4e4d(_0x185a('0xf9'),{'vid':this['_revisionId']++}));const _0x3deaef=this['_revisionId'];for(let _0x3c7e2e=_0x361e65;_0x3c7e2e<_0x3deaef;_0x3c7e2e++)this[_0x185a('0x6a')][_0x185a('0xb5')](_0x3c7e2e,{'userId':_0x50a2a8});_0x3c64c6[_0x185a('0x28')](_0x224629[_0x185a('0x29')],_0x3fa5b3);}[_0x185a('0x59')](_0x5c9c2d){(_0x5c9c2d=this[_0x185a('0xb4')](_0x5c9c2d,this['_idsRoots']))[_0x185a('0xc4')]();const _0x428b46=null===_0x5c9c2d[_0x185a('0x47')]?null:_0x5c9c2d[_0x185a('0x47')]||this[_0x185a('0xea')][_0x185a('0x68')][_0x185a('0x8e')](_0x185a('0xd1'))['me']['id'],_0x464170=_0x5c9c2d['getMovedRangeStart'](),_0x33f6c5=_0x464170['parent'],_0x4ce265=_0x464170[_0x185a('0x29')];!function _0x5486dc(_0x2dad32,_0x325ae7,_0x4e01a6,_0x975ce2){for(let _0x2c2308=_0x4e01a6;_0x2c2308<_0x975ce2;_0x2c2308++){const _0x48c169=_0x325ae7[_0x185a('0xe4')](_0x2c2308);_0x48c169['is']('element','$text')?_0x2dad32[_0x185a('0xb5')](_0x48c169[_0x185a('0xc1')](_0x185a('0x3f')),{'userId':_0x428b46}):(_0x2dad32[_0x185a('0xb5')](_0x48c169['getAttribute'](_0x185a('0xe')),{'userId':_0x428b46}),_0x5486dc(_0x2dad32,_0x48c169,0x0,_0x48c169[_0x185a('0xad')]),_0x2dad32['set'](_0x48c169[_0x185a('0xc1')](_0x185a('0xdb')),{'userId':_0x428b46}));}}(this[_0x185a('0x6a')],_0x33f6c5,_0x4ce265,_0x4ce265+_0x5c9c2d[_0x185a('0x5')]);}['_handleMergeOperation'](_0x5495fa){const _0x301a93=null===(_0x5495fa=this[_0x185a('0xb4')](_0x5495fa,this[_0x185a('0xd9')]))[_0x185a('0x47')]?null:_0x5495fa['_authorId']||this[_0x185a('0xea')]['plugins'][_0x185a('0x8e')]('Users')['me']['id'],_0x28a9c4=_0x5495fa[_0x185a('0x74')][_0x185a('0x73')],_0x1fd463=_0x5495fa[_0x185a('0x99')]['parent'],_0x5cbe50=_0x28a9c4[_0x185a('0xc1')]('vid_end'),_0x22796b=_0x1fd463[_0x185a('0xc1')]('vid_start');_0x28a9c4[_0x185a('0x9a')](_0x185a('0xdb'),_0x1fd463[_0x185a('0xc1')](_0x185a('0xdb'))),_0x1fd463[_0x185a('0x9a')](_0x185a('0xdb'),_0x5cbe50),this[_0x185a('0x6a')][_0x185a('0xb5')](_0x22796b,{'userId':_0x301a93}),this[_0x185a('0x6a')]['set'](_0x5cbe50,{'userId':_0x301a93}),_0x5495fa['_execute']();}[_0x185a('0xae')](_0x367610){const _0x13c4f8=null===(_0x367610=this[_0x185a('0xb4')](_0x367610,this['_idsRoots']))['_authorId']?null:_0x367610['_authorId']||this['editor']['plugins']['get'](_0x185a('0xd1'))['me']['id'],_0x11de28=_0x367610[_0x185a('0x80')],_0x55350b=_0x367610['splitPosition']['parent'];_0x367610[_0x185a('0xc4')]();const _0x55276c=_0x55350b[_0x185a('0xc1')]('vid_end'),_0x539728=_0x367610['insertionPosition'][_0x185a('0xd')];if(_0x11de28){const _0x9977ea=_0x539728[_0x185a('0xc1')]('vid_end'),_0x107d61=_0x55350b[_0x185a('0xc1')]('vid_end');_0x55350b[_0x185a('0x9a')](_0x185a('0xdb'),_0x9977ea),_0x539728['_setAttribute']('vid_end',_0x107d61),this[_0x185a('0x6a')][_0x185a('0xb5')](_0x55350b[_0x185a('0xc1')](_0x185a('0xdb')),{'userId':_0x13c4f8}),this['_touched']['set'](_0x539728['getAttribute']('vid_start'),{'userId':_0x13c4f8});}else{const _0x3a5782=this[_0x185a('0xc2')]++,_0x4ac1fb=this[_0x185a('0xc2')]++;_0x55350b[_0x185a('0x9a')](_0x185a('0xdb'),_0x3a5782),_0x539728[_0x185a('0x9a')]('vid_start',_0x4ac1fb),_0x539728[_0x185a('0x9a')](_0x185a('0xdb'),_0x55276c),this[_0x185a('0x6a')][_0x185a('0xb5')](_0x3a5782,{'userId':_0x13c4f8}),this[_0x185a('0x6a')]['set'](_0x4ac1fb,{'userId':_0x13c4f8});}}[_0x185a('0x11')](_0x4a51a6){if(!_0x4a51a6[_0x185a('0x14')])return;const _0x365b26=(_0x4a51a6=this[_0x185a('0xb4')](_0x4a51a6,this[_0x185a('0x98')]))[_0x185a('0x46')]?_0x4a51a6['oldRange']['root']:null,_0x2fde42=_0x4a51a6[_0x185a('0x9c')]?_0x4a51a6['newRange']['root']:null;_0x365b26&&this[_0x185a('0x32')][_0x185a('0x40')](_0x4a51a6['name']),_0x2fde42&&this[_0x185a('0x32')][_0x185a('0xb5')](_0x4a51a6['name'],_0x4a51a6[_0x185a('0x9c')][_0x185a('0xb0')]());const _0x3d3765=null===_0x4a51a6[_0x185a('0x47')]?null:_0x4a51a6[_0x185a('0x47')]||this[_0x185a('0xea')][_0x185a('0x68')][_0x185a('0x8e')]('Users')['me']['id'],_0x4c15b5=_0x4a51a6[_0x185a('0xf3')];if(!this[_0x185a('0x56')][_0x185a('0xf4')](_0x4c15b5))return void this['_touchedMarkers'][_0x185a('0xb5')](_0x4c15b5,{'range':_0x4a51a6[_0x185a('0x46')],'userId':_0x3d3765});const _0x1b05c3=this[_0x185a('0x56')][_0x185a('0x8e')](_0x4c15b5),_0x4d9b8d=_0x1b05c3[_0x185a('0x53')],_0x4cff3b=_0x4a51a6[_0x185a('0x9c')];null==_0x4d9b8d&&null==_0x4cff3b||_0x4d9b8d&&_0x4cff3b&&_0x4d9b8d[_0x185a('0x4d')](_0x4cff3b)?this[_0x185a('0x56')][_0x185a('0x40')](_0x4a51a6[_0x185a('0xf3')]):_0x1b05c3[_0x185a('0xfd')]=_0x3d3765;}[_0x185a('0x35')](_0x5e172d,_0x36e342){this['_diffRoots']['has'](_0x5e172d[_0x185a('0x5b')])?this['_diffRoots']['get'](_0x5e172d[_0x185a('0x5b')])[_0x185a('0x102')]=_0x5e172d[_0x185a('0x26')]:(this[_0x185a('0x98')][_0x185a('0xb5')](_0x5e172d['rootName'],G(_0x5e172d[_0x185a('0x5b')],!0x0)),this[_0x185a('0xff')][_0x185a('0xb5')](_0x5e172d[_0x185a('0x5b')],{}),_0x36e342&&this[_0x185a('0xd9')][_0x185a('0xb5')](_0x5e172d[_0x185a('0x5b')],G(_0x5e172d[_0x185a('0x5b')],!0x0)));const _0x36359d=null===_0x5e172d[_0x185a('0x47')]?null:_0x5e172d[_0x185a('0x47')]||this[_0x185a('0xea')]['plugins'][_0x185a('0x8e')]('Users')['me']['id'],_0x3bc192=this['_touchedRoots'][_0x185a('0x8e')](_0x5e172d[_0x185a('0x5b')]);_0x3bc192&&_0x3bc192[_0x185a('0xfd')]===_0x36359d?this['_touchedRoots'][_0x185a('0x40')](_0x5e172d[_0x185a('0x5b')]):this[_0x185a('0xce')][_0x185a('0xb5')](_0x5e172d[_0x185a('0x5b')],{'userId':_0x36359d,'isAttached':_0x5e172d['isAdd']});}['_handleRootAttributeOperation'](_0x2b58e8){const _0x19b3d0=this[_0x185a('0xff')][_0x185a('0x8e')](_0x2b58e8[_0x185a('0xcf')][_0x185a('0x5b')]);null===_0x2b58e8['newValue']?delete _0x19b3d0[_0x2b58e8['key']]:_0x19b3d0[_0x2b58e8['key']]=_0x2b58e8[_0x185a('0x7c')];}}function q(_0x1ca0c0){const _0x4ce98d=G(_0x1ca0c0['rootName'],_0x1ca0c0[_0x185a('0x10')]());for(const _0x42e3c0 of _0x1ca0c0[_0x185a('0xef')]()){const _0xf2ee9a=_0x42e3c0[_0x185a('0xb8')](!0x0);_0x4ce98d[_0x185a('0x2e')](_0xf2ee9a);}return _0x4ce98d;}function G(_0x188407,_0x2e193d=!0x0){const _0xa0e827=new _0x28129d();return _0xa0e827[_0x185a('0x5b')]=_0x188407,_0xa0e827['_isAttached']=_0x2e193d,_0xa0e827[_0x185a('0x10')]=()=>_0xa0e827[_0x185a('0x102')],_0xa0e827;}function L(_0x40d1b0,_0x2568da,_0xb17362){const _0x18c71d='elementEnd'==_0x40d1b0[_0x185a('0x3')]?_0xb17362[_0x185a('0xc5')](_0x40d1b0[_0x185a('0xf6')],_0x185a('0x42')):_0xb17362['createPositionBefore'](_0x40d1b0[_0x185a('0xf6')]);return _0xb17362[_0x185a('0xb7')](_0x2568da,_0x18c71d[_0x185a('0xa3')],_0x18c71d[_0x185a('0x3e')]);}function W(_0x460549,_0x47495f,_0x2500be){const _0x44ecb6='elementStart'==_0x460549[_0x185a('0x3')]?_0x2500be[_0x185a('0xc5')](_0x460549[_0x185a('0xf6')],0x0):_0x2500be[_0x185a('0x7d')](_0x460549[_0x185a('0xf6')]);return _0x2500be[_0x185a('0xb7')](_0x47495f,_0x44ecb6[_0x185a('0xa3')],_0x44ecb6['stickiness']);}