@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231010.0 → 0.0.0-nightly-20231011.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a3e=['createPositionBefore','baseVersion','elementEnd','_createCurrentRevision','_makeIdsRoot','default','_getBaseVids','type','getRoot','_authorId','push','stickiness','nodeAfter','isAttached','_setConversion','getRevision','data','_startingVersion','creator','_touchedRoots','revisionHistory.resumeUnsavedRevision','_loadState','trim','_handleRootOperation','_bufferUpdate','buildRevisionData','_diffRootsAttributes','revision-start','clear','toModel','previousPosition','markerToData','_update','_saveMetaData','plugins','filter','start','oldRange','revision-end','offsetSize','forEach','update','_source','_markChanges','ready','fromVersion','Users','attributes','_removePendingAction','offset','bind','PendingActions','_loadRevisionData','resolve','startsWith','_reset','get','isReady','path','attributesBefore','sort','getOperations','rootName','_baseIdsRoots','changeRootAttribute','deletions','has','children','define','_getPreviousFrom','_makeModelFromViewString','addRevisionData','getRevisionRootsAttributes','version','_handleMoveOperation','locale','repository','childCount','createPositionAfter','editor','_idsRoots','_handleOperation','_isPendingUpdate','_handleMergeOperation','_getViewJson','toVersion','getCurrentRevisionId','revision','stringify','map','addRevision','_cloneOperation','_applyOperations','getChild','_diffRoots','insert','split','loadState','$graveyard','upcast','affectsData','_calculateMetaData','hasContent','_generateTape','userId','Empty\x20document','_createInitialRevision','conversion','_startingRevisionId','isEqual','newValue','data-revision-','getNodeByPath','isAdd','clone','insertionPosition','paragraph','_pendingAction','_touchedMarkers','toData','editor-initial-data-replaced-with-revision-data','rootsAttributes','document','vid_end','getUser','_revisionId','length','init','initial','createRangeIn','name','createdAt','$text','_replaceEditorDataWithRevisionData','find','_markers','getLatestVersion','insertion','_handleRootAttributeOperation','howMany','tableCell','string','fromEntries','elementStart','editing','afterInit','setSource','getAncestors','getData','_isAttached','addRoot','end','for','_copyMarkers','adapter','createPositionFromPath','attachChange','setRevisionData','diffData','remove','history','size','splitPosition','getTime','slice','source','parse','reverse','view','createPositionAt','RealTimeCollaborationClient','merge','_prepareViewToSave','_removeMetaData','getRootNames','then','_processRootBeforeSave','_setAttribute','getMovedRangeStart','config','nodes','getAttribute','currentRevision','item','_bufferedUpdates','detachRoot','_clone','documentFragment','getTransformedByOperation','text','_findInsertionIndex','markers','getRevisions','delete','_revisionDataBuilder','authors','marked','toView','getChildren','position','_fixRange','_lastTo','_handleSplitOperation','_insertChild','sendBufferedUpdates','pluginName','_fixOperation','_makeRevision','marker','element','set','_fixPosition','NEGATIVE_INFINITY','_isInit','getRange','_getFromVersion','_savedMetaData','collaboration.channelId','max','newRange','updateRevisions','revision:','keys','move','getAttributes','parent','requires','roots','vid','useFillerType','_baseRootsAttributes','_getVidAttributeName','createRevision','_handleInsertOperation','values','createRange','vid_start','_addPendingAction','_baseRoots','_loadedStateData','Initial\x20revision','finally','authorsIds','insertions','reinsert','attributesAfter','root','_execute','_initialRevisionId','_handleMarkerOperation','_getState','addRootAttribute','from','_transformMarkers','removeRootAttribute','processor','_continueCurrentRevision','key','_lastFrom','initialData','model','getWalker','_createFromRanges','getRevisionDocumentData','_touched','add'];(function(_0x556865,_0x4a3e4e){const _0x181e42=function(_0x44163f){while(--_0x44163f){_0x556865['push'](_0x556865['shift']());}};_0x181e42(++_0x4a3e4e);}(_0x4a3e,0x1cb));const _0x181e=function(_0x556865,_0x4a3e4e){_0x556865=_0x556865-0x0;let _0x181e42=_0x4a3e[_0x556865];return _0x181e42;};import{Users as _0x3092da}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x278124,PendingActions as _0x761d34}from'ckeditor5/src/core';import{logWarning as _0xa91560,uid as _0x1fcfdf}from'ckeditor5/src/utils';import{Position as _0x4265eb,Range as _0x3a73a8,Element as _0x5b445d,DocumentFragment as _0x49f63f,ViewText as _0x4aabfa,ViewElement as _0x21d8d9,ViewContainerElement as _0x33685b,ViewAttributeElement as _0x1dbf6b,ViewEmptyElement as _0x1a6ecf,ViewRawElement as _0x4d4b57,ViewUIElement as _0x559146,ViewDocumentFragment as _0x3954f6}from'ckeditor5/src/engine';import _0x22eed5 from'./revisionsrepository';import{getTranslation as _0x4346d2}from'./utils/common-translations';import{cloneDeep as _0xa345b6,isEqual as _0x1648a0}from'lodash-es';const B={'c':_0x33685b,'a':_0x1dbf6b,'e':_0x1a6ecf,'r':_0x4d4b57,'u':_0x559146};export default class l extends _0x278124{static get[_0x181e('0xc')](){return'RevisionTracker';}static get[_0x181e('0x21')](){return[_0x3092da,_0x22eed5,_0x761d34];}constructor(_0x13a22d){super(_0x13a22d),this['adapter']=null,this[_0x181e('0xff')]=null,this['_revisionDataBuilder']=new H(this[_0x181e('0x98')]),this[_0x181e('0x37')]=this[_0x181e('0x98')][_0x181e('0xfc')][_0x181e('0x81')](_0x181e('0x18'))||_0x181e('0xc9'),this[_0x181e('0x101')]=new Map(),this[_0x181e('0x2e')]=null;const _0xcd7e22=_0x1fcfdf();this[_0x181e('0x73')]={'history':this['editor'][_0x181e('0x43')]['document']['history'],'getLatestVersion':()=>Promise[_0x181e('0x7e')](this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xc3')][_0x181e('0x92')]),'getCurrentRevisionId':()=>_0xcd7e22},this[_0x181e('0x11')](_0x181e('0x82'),!0x1),this[_0x181e('0x11')]('isEnabled',!0x0),this[_0x181e('0x11')](_0x181e('0x9b'),!0x1),this[_0x181e('0x98')][_0x181e('0xfc')][_0x181e('0x8d')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x181e('0x98')][_0x181e('0xb4')]['for'](_0x181e('0xac'))['dataToMarker']({'view':_0x181e('0xa0')});}[_0x181e('0xc8')](){this[_0x181e('0x95')]=this['editor']['plugins'][_0x181e('0x81')]('RevisionsRepository'),this[_0x181e('0x57')](),this[_0x181e('0x98')]['data']['on'](_0x181e('0x75'),()=>{const _0x5a12c8=this[_0x181e('0x95')][_0x181e('0x58')](0x0),_0xf38688=_0x5a12c8&&null===_0x5a12c8[_0x181e('0x5b')]?_0x5a12c8:null;if(this[_0x181e('0x3f')]=!!_0xf38688&&this[_0x181e('0x98')][_0x181e('0xfc')]['get'](_0x181e('0x5d')),this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x8b')](_0x181e('0xf3'))){const _0x510f83=this[_0x181e('0x73')][_0x181e('0x9f')](),_0x1d179d=this[_0x181e('0x95')][_0x181e('0x58')](_0x510f83);if(_0x1d179d)this[_0x181e('0x5a')]=_0x1d179d[_0x181e('0x76')],this[_0x181e('0x3f')]=!0x1;else{const _0x4de539=this[_0x181e('0x73')][_0x181e('0xe9')]['_operations'][_0x181e('0xcf')](_0x11d73a=>!_0x11d73a[_0x181e('0x14')]),_0xe6f9e9=_0x4de539?_0x4de539['baseVersion']:this[_0x181e('0x73')][_0x181e('0xe9')][_0x181e('0x92')];_0x5a12c8?(_0x5a12c8[_0x181e('0x9e')]<_0xe6f9e9&&_0x5a12c8[_0x181e('0x69')]({'toVersion':_0xe6f9e9}),this[_0x181e('0x3f')]?(this['_source'][_0x181e('0x9f')]=()=>_0xf38688['id'],this[_0x181e('0x5a')]=_0xf38688[_0x181e('0x76')]):(this[_0x181e('0x5a')]=_0x5a12c8[_0x181e('0x9e')],this[_0x181e('0x3f')]=!0x1)):(this[_0x181e('0x5a')]=_0xe6f9e9,this[_0x181e('0x3f')]=!0x1);}}else _0xf38688&&(this[_0x181e('0x98')]['model']['document'][_0x181e('0xe9')][_0x181e('0x92')]=Math[_0x181e('0x19')](_0xf38688[_0x181e('0x9e')],this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xc3')]['history'][_0x181e('0x92')]),_0xf38688[_0x181e('0x76')]===_0xf38688[_0x181e('0x9e')]?(0x0!==_0xf38688[_0x181e('0x76')]&&(this[_0x181e('0x73')][_0x181e('0x9f')]=()=>_0xf38688['id']),this[_0x181e('0x3f')]=!0x1):this[_0x181e('0x3f')]&&(this[_0x181e('0x73')][_0x181e('0x9f')]=()=>_0xf38688['id'],this[_0x181e('0x5a')]=_0xf38688[_0x181e('0x76')])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor'][_0x181e('0x43')][_0x181e('0xc3')][_0x181e('0x92')]);this[_0x181e('0x1')][_0x181e('0xc8')](this['_source']['history']),this['_createInitialRevision'](this[_0x181e('0x5a')]),this[_0x181e('0x4c')](this[_0x181e('0x5a')]),this[_0x181e('0xe3')]&&this[_0x181e('0xb')]();}),this[_0x181e('0x7b')](_0x181e('0x82'))['to'](this,_0x181e('0x9b'),_0x50666c=>!_0x50666c);}async[_0x181e('0xda')](){if(this[_0x181e('0x95')]['length']>0x0){const _0x570fad=this[_0x181e('0x95')]['getRevision'](0x0),_0x3f03e7=await this[_0x181e('0x46')](_0x570fad),_0x3127a2=await this[_0x181e('0x91')](_0x570fad);this[_0x181e('0xce')](_0x3f03e7,_0x3127a2);}}[_0x181e('0xdb')](_0x4bd8c5){this[_0x181e('0x73')]=_0x4bd8c5;}async[_0x181e('0x72')](){const _0x48b075=await this[_0x181e('0x73')]['getLatestVersion']();if(_0x48b075>this['currentRevision'][_0x181e('0x9e')]){await this[_0x181e('0x5e')]();const _0x3322e1=this[_0x181e('0x62')]({'revision':this['currentRevision'],'to':_0x48b075});_0x3322e1['authors']=_0x3322e1['authorsIds'][_0x181e('0xa2')](_0x2723cc=>this[_0x181e('0x98')][_0x181e('0x6b')]['get']('Users')[_0x181e('0xc5')](_0x2723cc)),this[_0x181e('0xff')][_0x181e('0x69')](_0x3322e1);}}async[_0x181e('0x5e')](){this[_0x181e('0x3f')]&&!this[_0x181e('0x2e')]&&(await this[_0x181e('0x7d')](this[_0x181e('0xff')]),this[_0x181e('0x1')][_0x181e('0xaa')](this[_0x181e('0xff')]),this[_0x181e('0x2e')]={'fromVersion':this[_0x181e('0xff')]['fromVersion'],'authors':this[_0x181e('0xff')][_0x181e('0x2')][_0x181e('0xed')]()});}async['saveRevision'](_0x477594={},_0x1a4cfd=null){const _0x45ef5d=[];await this[_0x181e('0x5e')](),this['_continueCurrentRevision']=!0x1,_0x1a4cfd>this['currentRevision'][_0x181e('0x9e')]&&(_0x1a4cfd=null),null===_0x1a4cfd&&(_0x1a4cfd=await this[_0x181e('0x73')][_0x181e('0xd1')]());const _0x847d3d=this[_0x181e('0x16')](_0x1a4cfd),_0x283e9d=this['buildRevisionData']({'from':_0x847d3d,'to':_0x1a4cfd});if(this[_0x181e('0xff')]['toVersion']<_0x1a4cfd){const _0x43a415=this[_0x181e('0x62')]({'revision':this[_0x181e('0xff')],'from':_0x1a4cfd,'to':_0x1a4cfd});_0x43a415[_0x181e('0x2')]=[],_0x43a415[_0x181e('0x31')]=[],_0x43a415['id']=this[_0x181e('0xff')]['id'],this[_0x181e('0xff')][_0x181e('0x69')](_0x43a415,!0x0),delete _0x43a415[_0x181e('0x2')],_0x45ef5d['push'](_0x43a415);}_0x477594['creatorId']=this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0x477594[_0x181e('0xcb')]=_0x477594[_0x181e('0xcb')]||null,_0x477594['id']=_0x477594['id']||_0x1fcfdf(),_0x477594={..._0x477594,..._0x283e9d};const _0x43c906=this[_0x181e('0x90')](_0x477594);_0x45ef5d[_0x181e('0x53')](_0x477594);const _0x31938a=this[_0x181e('0x95')]['getIndex'](_0x43c906);if(0x0!==_0x31938a){const _0x51bdb2=this[_0x181e('0x95')][_0x181e('0x58')](_0x31938a-0x1);if(_0x51bdb2[_0x181e('0x76')]!==_0x1a4cfd){const _0x801816=this[_0x181e('0x1')][_0x181e('0xdd')](_0x1a4cfd,_0x51bdb2[_0x181e('0x9e')]),_0x30c655={'id':_0x51bdb2['id'],'diffData':_0x801816[_0x181e('0xe7')],'authorsIds':_0x801816[_0x181e('0x31')],'authors':_0x801816[_0x181e('0x31')]['map'](_0x5bc953=>this[_0x181e('0x98')][_0x181e('0x6b')]['get']('Users')[_0x181e('0xc5')](_0x5bc953)),'fromVersion':_0x1a4cfd};_0x51bdb2===this[_0x181e('0xff')]&&(_0x30c655[_0x181e('0xcc')]=new Date(_0x477594['createdAt'][_0x181e('0xec')]()+0xa)),_0x51bdb2['_update'](_0x30c655,!0x0),delete _0x30c655[_0x181e('0x2')],_0x45ef5d['push'](_0x30c655);}}if(this[_0x181e('0xe3')]){for(const _0x116f6e of _0x45ef5d)this[_0x181e('0x61')](_0x116f6e['id'],_0x116f6e,!0x0);this[_0x181e('0xb')]();}return _0x43c906;}[_0x181e('0x90')](_0x483b09){const _0x54a002=this[_0x181e('0x95')][_0x181e('0x27')](_0x483b09);return this['adapter']&&_0x54a002['on']('_update',(_0x31a962,_0x47703e,_0x252627)=>{_0x252627||(this['_bufferUpdate'](_0x47703e['id'],_0x47703e,!0x0),this['sendBufferedUpdates']());}),this[_0x181e('0x95')][_0x181e('0xa3')](_0x54a002,this[_0x181e('0x107')](_0x54a002)),_0x54a002;}async[_0x181e('0x46')](_0x234f08){await this['_loadRevisionData'](_0x234f08);const _0x37f97d={};for(const _0x2d89c5 in _0x234f08[_0x181e('0xe7')]){if(_0x234f08[_0x181e('0xe7')][_0x2d89c5][_0x181e('0xe5')]&&!_0x234f08['diffData'][_0x2d89c5][_0x181e('0xe5')]['isAttached'])continue;const _0x5cc7c5=this['_removeRevisionMarkers'](JSON[_0x181e('0xef')](_0x234f08[_0x181e('0xe7')][_0x2d89c5][_0x181e('0x32')])),_0x2b0b0f=this['editor'][_0x181e('0xd9')]['view'][_0x181e('0xc3')],_0x46c1da=new _0x3954f6(_0x2b0b0f,_0x5cc7c5['map'](_0x5a1d08=>J(_0x5a1d08,this[_0x181e('0x98')])));this[_0x181e('0x98')][_0x181e('0x59')]['processor']['useFillerType'](_0x181e('0x3')),_0x37f97d[_0x2d89c5]=this[_0x181e('0x98')][_0x181e('0x59')][_0x181e('0x3e')][_0x181e('0xc0')](_0x46c1da),this[_0x181e('0x98')][_0x181e('0x59')]['processor'][_0x181e('0x24')](_0x181e('0x4e'));}return _0x37f97d;}async[_0x181e('0x91')](_0xfd7277){await this['_loadRevisionData'](_0xfd7277);const _0xd12ca3={};for(const _0x10d712 in _0xfd7277[_0x181e('0xe7')])_0xfd7277[_0x181e('0xe7')][_0x10d712][_0x181e('0xe5')]&&!_0xfd7277[_0x181e('0xe7')][_0x10d712][_0x181e('0xe5')][_0x181e('0x56')]||(_0xd12ca3[_0x10d712]=_0xfd7277[_0x181e('0xe7')][_0x10d712]['attributesAfter']||{});return _0xd12ca3;}[_0x181e('0xb')](){if(0x0===this[_0x181e('0x101')][_0x181e('0xea')])return;if(this[_0x181e('0x9b')])return;let _0xf971a7=Array[_0x181e('0x3b')](this[_0x181e('0x101')][_0x181e('0x29')]());this[_0x181e('0x101')][_0x181e('0x65')]();for(let _0x64a799=0x0;_0x64a799<_0xf971a7[_0x181e('0xc7')];_0x64a799++){const _0x1c0837=_0xf971a7[_0x64a799];let _0x5e080f=!0x1;for(const _0x3b8012 of Object['keys'](_0x1c0837))void 0x0===_0x1c0837[_0x3b8012]?delete _0x1c0837[_0x3b8012]:'id'!==_0x3b8012&&(_0x5e080f=!0x0);_0x5e080f||(_0xf971a7[_0x64a799]=null);}if(_0xf971a7=_0xf971a7[_0x181e('0x6c')](_0x561aab=>null!==_0x561aab),!_0xf971a7[_0x181e('0xc7')])return;for(let _0xf16be=0x0;_0xf16be<_0xf971a7[_0x181e('0xc7')];_0xf16be++){const _0x190367=_0xf971a7[_0xf16be];void 0x0!==_0x190367[_0x181e('0x76')]&&void 0x0===_0x190367['toVersion']&&(_0x190367['toVersion']=this['repository'][_0x181e('0x58')](_0x190367['id'])[_0x181e('0x9e')]),void 0x0!==_0x190367[_0x181e('0x9e')]&&void 0x0===_0x190367['fromVersion']&&(_0x190367[_0x181e('0x76')]=this[_0x181e('0x95')][_0x181e('0x58')](_0x190367['id'])[_0x181e('0x76')]);}const _0x4a92fd=this[_0x181e('0x98')][_0x181e('0xfc')][_0x181e('0x81')](_0x181e('0x18'));this[_0x181e('0x9b')]=!0x0,this[_0x181e('0x2c')](),this[_0x181e('0xe3')][_0x181e('0x1b')](_0xf971a7,_0x4a92fd)[_0x181e('0x30')](()=>{this[_0x181e('0x9b')]=!0x1;})['then'](_0xc98462=>{if(_0xc98462)for(const _0x3279e3 of _0xc98462)this['setRevisionData']({'id':_0x3279e3['id'],'createdAt':_0x3279e3[_0x181e('0xcc')]});this[_0x181e('0x79')](),this['sendBufferedUpdates']();});}[_0x181e('0xce')](_0x72d82d,_0x3a9fa1){let _0x3e8db2=this['editor'][_0x181e('0xfc')][_0x181e('0x81')](_0x181e('0x42')),_0x5b7652=this[_0x181e('0x98')][_0x181e('0xfc')][_0x181e('0x81')](_0x181e('0xc2'));if(void 0x0===_0x3e8db2){_0x3e8db2={};for(const _0x41252f of this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xc3')][_0x181e('0xf7')]())_0x3e8db2[_0x41252f]='';}if(_0x181e('0xd6')==typeof _0x3e8db2&&(_0x3e8db2={'main':_0x3e8db2}),void 0x0===_0x5b7652){_0x5b7652={};for(const _0x23f60e of this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xc3')][_0x181e('0xf7')]())_0x5b7652[_0x23f60e]={};}let _0x5d9a6f=!0x1;const _0x4a4565=Object[_0x181e('0x1d')](_0x3e8db2),_0x40b9a6=Object['keys'](_0x72d82d);for(const _0x422a0e of _0x4a4565){if(_0x3e8db2[_0x422a0e]!==_0x72d82d[_0x422a0e]&&''!==_0x3e8db2[_0x422a0e][_0x181e('0x5f')]()){_0x5d9a6f=!0x0;break;}if(!_0x1648a0(_0x5b7652[_0x422a0e],_0x3a9fa1[_0x422a0e])&&Object[_0x181e('0x1d')](_0x5b7652[_0x422a0e])[_0x181e('0xc7')]>0x0){_0x5d9a6f=!0x0;break;}}_0x5d9a6f||(_0x5d9a6f=_0x40b9a6['some'](_0x2bdea7=>!this[_0x181e('0x98')][_0x181e('0x43')]['document'][_0x181e('0x51')](_0x2bdea7))),_0x5d9a6f&&_0xa91560(_0x181e('0xc1'),{'editorData':_0x3e8db2,'editorRootsAttributes':_0x5b7652,'revisionData':_0x72d82d,'revisionRootsAttributes':_0x3a9fa1}),this[_0x181e('0x98')]['config'][_0x181e('0x11')](_0x181e('0x42'),_0x72d82d),this['editor'][_0x181e('0xfc')][_0x181e('0x11')]('rootsAttributes',_0x3a9fa1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x302379=this[_0x181e('0x98')]['plugins'][_0x181e('0x81')](_0x181e('0x7c'));this[_0x181e('0xbe')]=_0x302379['add'](_0x4346d2(this[_0x181e('0x98')][_0x181e('0x94')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x181e('0x79')](){this['_pendingAction']&&(this[_0x181e('0x98')]['plugins']['get']('PendingActions')[_0x181e('0xe8')](this['_pendingAction']),this[_0x181e('0xbe')]=null);}['_findInsertionIndex'](_0x45dec8){const _0x4629bf=this[_0x181e('0x95')][_0x181e('0x109')]();_0x4629bf[_0x181e('0xf0')]();let _0x5321d5=0x0;for(;_0x5321d5<_0x4629bf['length'];){const _0x168b92=_0x4629bf[_0x5321d5];if(_0x168b92===this['currentRevision']){_0x5321d5++;continue;}if(_0x168b92['id']===this[_0x181e('0x37')])break;const _0x2cbbb0=_0x45dec8[_0x181e('0x9e')]-_0x168b92[_0x181e('0x9e')]||_0x45dec8[_0x181e('0x76')]-_0x168b92[_0x181e('0x76')];if(_0x2cbbb0>0x0)break;if(_0x2cbbb0<0x0)_0x5321d5++;else{if(!_0x45dec8[_0x181e('0x5b')]&&_0x168b92[_0x181e('0x5b')])break;if(_0x168b92[_0x181e('0x5b')]||!_0x45dec8[_0x181e('0x5b')]){if(_0x45dec8['createdAt']>_0x168b92[_0x181e('0xcc')])break;_0x5321d5++;}else _0x5321d5++;}}return _0x5321d5;}[_0x181e('0xe6')](_0x14e0c0){const _0xe911ce=this[_0x181e('0x95')][_0x181e('0x58')](_0x14e0c0['id']);if(_0x14e0c0[_0x181e('0xcc')]&&(_0x14e0c0[_0x181e('0xcc')]=new Date(_0x14e0c0[_0x181e('0xcc')])),_0x14e0c0['authorsIds']){const _0x3fe824=this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')]('Users');_0x14e0c0[_0x181e('0x2')]=_0x14e0c0[_0x181e('0x31')]['map'](_0x55ebac=>_0x3fe824[_0x181e('0xc5')](_0x55ebac));}_0xe911ce[_0x181e('0x69')](_0x14e0c0,!0x0);}['buildRevisionData']({revision:_0x58b1f0=null,from:_0x4ede21=null,to:_0x54be94=null}){_0x4ede21=null!==_0x4ede21?_0x4ede21:_0x58b1f0[_0x181e('0x76')],_0x54be94=null!==_0x54be94?_0x54be94:_0x58b1f0['toVersion'];const _0x149514=this[_0x181e('0x1')]['getData'](_0x4ede21,_0x54be94),_0x1f9053={'diffData':_0x149514[_0x181e('0xe7')],'authorsIds':_0x149514['authorsIds'],'fromVersion':_0x4ede21,'toVersion':_0x54be94};if(!_0x58b1f0||_0x54be94!==_0x58b1f0[_0x181e('0x9e')]){const _0x4a8f96=_0x54be94-0x1,_0x136d27=this['_source'][_0x181e('0xe9')]['getOperation'](_0x4a8f96);_0x1f9053[_0x181e('0xcc')]=_0x136d27&&_0x136d27[_0x181e('0xcc')]||new Date();}if(this['_loadedStateData']&&_0x4ede21===this['_loadedStateData'][_0x181e('0x76')])for(const _0x4f7ac5 of this[_0x181e('0x2e')][_0x181e('0x2')])_0x1f9053[_0x181e('0x31')]['includes'](_0x4f7ac5['id'])||_0x1f9053['authorsIds'][_0x181e('0x53')](_0x4f7ac5['id']);return _0x1f9053;}[_0x181e('0x7d')](_0x281636){if(!_0x281636||_0x281636['diffData'])return Promise['resolve']();{const _0x11e28d=this['editor'][_0x181e('0xfc')]['get'](_0x181e('0x18'));return this[_0x181e('0xe3')]['getRevision']({'channelId':_0x11e28d,'revisionId':_0x281636['id']})[_0x181e('0xf8')](_0x21605a=>{_0x281636[_0x181e('0xe7')]=_0x21605a[_0x181e('0xe7')];});}}[_0x181e('0x61')](_0x2b8824,_0x410576,_0x468c60){if(this[_0x181e('0x101')][_0x181e('0x8b')](_0x2b8824)){const _0x4fdec7=this['_bufferedUpdates'][_0x181e('0x81')](_0x2b8824);_0x410576=_0x468c60?{..._0x4fdec7,..._0x410576}:{..._0x410576,..._0x4fdec7};}this[_0x181e('0x101')][_0x181e('0x11')](_0x2b8824,_0x410576);}[_0x181e('0x16')](_0x45c34f){const _0x15b55b=this[_0x181e('0x95')][_0x181e('0x109')]();_0x15b55b['reverse'](),_0x15b55b['shift']();const _0x49d061=_0x15b55b[_0x181e('0xcf')](_0x2575e7=>_0x2575e7['toVersion']<=_0x45c34f)['toVersion'];return _0x49d061<this[_0x181e('0x5a')]?this[_0x181e('0x5a')]:_0x49d061;}[_0x181e('0xb3')](_0x1b5561){const _0x1e4eda=this[_0x181e('0x95')][_0x181e('0x58')](this[_0x181e('0x95')][_0x181e('0xc7')]-0x1);if(_0x1e4eda)this[_0x181e('0x37')]=_0x1e4eda['id'];else{const _0x5057c4=!this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xc3')][_0x181e('0x22')][_0x181e('0xcf')](_0x15255e=>this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xaf')](_0x15255e)),_0x1ac264=this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0x5bd860=_0x4346d2(this[_0x181e('0x98')][_0x181e('0x94')],_0x5057c4?_0x181e('0xb2'):_0x181e('0x2f'));this['_makeRevision']({'from':_0x1b5561,'to':_0x1b5561,'id':this[_0x181e('0x37')],'name':_0x5bd860,'creatorId':_0x1ac264});}}[_0x181e('0x4c')](_0x2df78f){const _0x79edb4=this[_0x181e('0x73')][_0x181e('0x9f')]();this[_0x181e('0xff')]=this[_0x181e('0x95')][_0x181e('0x58')](_0x79edb4),this[_0x181e('0xff')]||(this[_0x181e('0xff')]=this['_makeRevision']({'from':_0x2df78f,'to':_0x2df78f,'id':_0x79edb4,'name':'','creatorId':null}));}[_0x181e('0xe')]({name:_0x4495ba,from:_0x20be1e,to:_0x527522,creatorId:_0x46d3ea,id:_0x3810c1}){const _0x451ca8=this[_0x181e('0x62')]({'from':_0x20be1e,'to':_0x527522});_0x451ca8[_0x181e('0xcb')]=_0x4495ba,_0x451ca8['creatorId']=_0x46d3ea,_0x451ca8['id']=_0x3810c1;const _0x2ca2bc=this[_0x181e('0x90')](_0x451ca8);return this[_0x181e('0xe3')]&&this[_0x181e('0x61')](_0x451ca8['id'],_0x451ca8,!0x0),_0x2ca2bc;}['_setConversion'](){this['editor'][_0x181e('0xb4')][_0x181e('0xe1')]('dataDowncast')[_0x181e('0x68')]({'model':_0x181e('0xa0')});}['_removeRevisionMarkers'](_0x26d08b){return(_0x26d08b=_0x26d08b['filter'](_0x366a8a=>!_0x366a8a[_0x181e('0xcb')]||_0x181e('0x64')!==_0x366a8a[_0x181e('0xcb')]&&_0x181e('0x6f')!==_0x366a8a[_0x181e('0xcb')]))[_0x181e('0x71')](_0x21a4f6=>{_0x181e('0xd6')!=typeof _0x21a4f6&&(_0x21a4f6['children']=this['_removeRevisionMarkers'](_0x21a4f6[_0x181e('0x8c')]),_0x21a4f6[_0x181e('0x78')]=_0x21a4f6['attributes']['filter'](_0x185fa9=>!_0x185fa9[0x0]['startsWith'](_0x181e('0xb8'))));}),_0x26d08b;}}function J(_0x78cefa,_0x2e9c88){const _0x42af04=_0x2e9c88[_0x181e('0xd9')][_0x181e('0xf1')][_0x181e('0xc3')];if('string'==typeof _0x78cefa)return new _0x4aabfa(_0x42af04,_0x78cefa);{const _0x23ef29=_0x78cefa[_0x181e('0x8c')][_0x181e('0xa2')](_0x277b97=>J(_0x277b97,_0x2e9c88));return new(B[_0x78cefa[(_0x181e('0x50'))]]||_0x21d8d9)(_0x42af04,_0x78cefa[_0x181e('0xcb')],_0x78cefa[_0x181e('0x78')],_0x23ef29);}}class H{constructor(_0x531041){this[_0x181e('0x98')]=_0x531041,this['_savedMetaData']=new Map(),this[_0x181e('0x41')]=-0x1,this[_0x181e('0x8')]=-0x1,this[_0x181e('0xd0')]=new Map(),this[_0x181e('0xa7')]=new Map(),this[_0x181e('0x63')]=new Map(),this['_baseRoots']=new Map(),this[_0x181e('0x25')]=new Map(),this['_idsRoots']=new Map(),this[_0x181e('0x88')]=new Map(),this['_touched']=new Map(),this[_0x181e('0xbf')]=new Map(),this[_0x181e('0x5c')]=new Map(),this[_0x181e('0xc6')]=0x1;}[_0x181e('0xc8')](_0x2103f7){this[_0x181e('0xee')]=_0x2103f7;const _0x2813c8=new Map(),_0x1222f2=new Map(),_0x504c69=this[_0x181e('0x98')][_0x181e('0x43')]['document'][_0x181e('0x22')][_0x181e('0xa2')](_0x1b4be6=>_0x1b4be6[_0x181e('0x87')]);for(const _0x44a59e of _0x504c69){const _0x3f59c8=this[_0x181e('0x98')]['model']['document'][_0x181e('0x51')](_0x44a59e),_0x6e9f9=q(_0x3f59c8);_0x2813c8['set'](_0x44a59e,_0x6e9f9),_0x1222f2[_0x181e('0x11')](_0x44a59e,Object[_0x181e('0xd7')](_0x3f59c8[_0x181e('0x1f')]()));}const _0x55cd6d=Array[_0x181e('0x3b')](this['editor'][_0x181e('0x43')][_0x181e('0x108')])[_0x181e('0xa2')](_0x3e3356=>[_0x3e3356['name'],_0x3e3356[_0x181e('0x15')]()]),_0x2f081c=this['source'][_0x181e('0x92')];this[_0x181e('0x6a')](_0x2f081c,_0x2813c8,_0x55cd6d,_0x1222f2),this[_0x181e('0xb5')]=this[_0x181e('0xc6')];const _0x3830e2=new Map(),_0xdd345a=new Map();for(const _0x560f88 of _0x504c69){const _0x2cb4ea=G(_0x560f88);_0x3830e2['set'](_0x560f88,_0x2cb4ea),_0xdd345a[_0x181e('0x11')](_0x560f88,{});}this[_0x181e('0x6a')](Number[_0x181e('0x13')],_0x3830e2,[],_0xdd345a);}[_0x181e('0xdd')](_0x2ca845,_0x42ba2c){if(this[_0x181e('0x41')]===_0x2ca845&&this[_0x181e('0x8')]<=_0x42ba2c)this[_0x181e('0x17')][_0x181e('0xea')]>0x1&&this[_0x181e('0xf6')](this['_lastTo']),this[_0x181e('0xa5')](this[_0x181e('0x8')],_0x42ba2c,!0x0);else{if(!this[_0x181e('0x17')][_0x181e('0x8b')](_0x2ca845)){const _0xbc86d0=this['_getPreviousFrom'](_0x2ca845);this['_calculateMetaData'](_0xbc86d0,_0x2ca845,!0x1);}this[_0x181e('0xae')](_0x2ca845,_0x42ba2c,!0x0);}return this['_lastFrom']=_0x2ca845,this[_0x181e('0x8')]=_0x42ba2c,this['_getState']();}[_0x181e('0xaa')](_0x42cfe7){this[_0x181e('0x80')](),this[_0x181e('0x41')]=_0x42cfe7[_0x181e('0x76')],this['_lastTo']=_0x42cfe7['toVersion'];for(const _0x25b88a in _0x42cfe7[_0x181e('0xe7')]){const _0x2534a0=_0x42cfe7[_0x181e('0xe7')][_0x25b88a][_0x181e('0xe5')],_0x360c78=_0xa345b6(_0x42cfe7[_0x181e('0xe7')][_0x25b88a][_0x181e('0x84')])||{},_0x975389=this[_0x181e('0x8f')](_0x42cfe7['diffData'][_0x25b88a][_0x181e('0x8a')]);_0x975389[_0x181e('0x87')]=_0x25b88a,_0x975389[_0x181e('0xde')]=!_0x2534a0||!_0x2534a0[_0x181e('0x56')],_0x975389[_0x181e('0x56')]=()=>_0x975389[_0x181e('0xde')],this[_0x181e('0x2d')][_0x181e('0x11')](_0x25b88a,_0x975389),this[_0x181e('0x25')][_0x181e('0x11')](_0x25b88a,_0x360c78),_0x2534a0&&this[_0x181e('0x5c')]['set'](_0x25b88a,_0x2534a0);const _0x46683c=this[_0x181e('0x4d')](_0x975389);this[_0x181e('0x88')][_0x181e('0x11')](_0x25b88a,_0x46683c);for(const [_0x27a4f8,_0x391635]of _0x975389['markers']){if(!_0x27a4f8[_0x181e('0x7f')]('revision:'))continue;const _0x40a4af=_0x27a4f8['split'](':')[0x2];for(const _0x55d0b1 of _0x391635[_0x181e('0x44')]({'singleCharacters':!0x0})){const _0x195d87=this[_0x181e('0x26')](_0x55d0b1),_0x798e26=_0x181e('0x4b')==_0x55d0b1[_0x181e('0x50')]?_0x55d0b1[_0x181e('0x67')]['path'][_0x181e('0xed')](0x0,-0x1):_0x55d0b1[_0x181e('0x67')]['path'],_0x52185e=_0x46683c[_0x181e('0xb9')](_0x798e26)[_0x181e('0xfe')](_0x195d87);this[_0x181e('0x47')][_0x181e('0x11')](_0x52185e,{'userId':_0x40a4af});}}}this[_0x181e('0xb5')]=this[_0x181e('0xc6')];const _0x270fa3=[...Array(this[_0x181e('0xc6')])[_0x181e('0x1d')]()][_0x181e('0xed')](0x1)[_0x181e('0x6c')](_0x1d5629=>!this['_touched'][_0x181e('0x8b')](_0x1d5629));let _0x141d6b=0x0;const _0x1795f1=new Map();for(const _0x47b535 in _0x42cfe7['diffData']){const _0x1ad223=_0x42cfe7['diffData'][_0x47b535]['attachChange'],_0x48cd86=_0xa345b6(_0x42cfe7[_0x181e('0xe7')][_0x47b535][_0x181e('0x34')])||{},_0x22866a=this['_makeModelFromViewString'](_0x42cfe7[_0x181e('0xe7')][_0x47b535][_0x181e('0x32')]);_0x22866a[_0x181e('0x87')]=_0x47b535,_0x22866a['_isAttached']=!_0x1ad223||_0x1ad223['isAttached'],_0x22866a['isAttached']=()=>_0x22866a['_isAttached'],this['_diffRoots']['set'](_0x47b535,_0x22866a),this[_0x181e('0x63')][_0x181e('0x11')](_0x47b535,_0x48cd86);const _0x1d9873=this['_makeIdsRoot'](_0x22866a,Number[_0x181e('0x13')]);this[_0x181e('0x99')][_0x181e('0x11')](_0x47b535,_0x1d9873),_0x1795f1[_0x181e('0x11')](_0x47b535,_0x22866a[_0x181e('0x56')]()?_0x48cd86:{});for(const [_0x4df329,_0x2e07b2]of _0x22866a[_0x181e('0x108')]){if(!_0x4df329[_0x181e('0x7f')](_0x181e('0x1c')))continue;const _0x2caea3=_0x4df329[_0x181e('0xa9')](':')[0x2];for(const _0x55771a of _0x2e07b2[_0x181e('0x44')]({'singleCharacters':!0x0})){const _0x1d0d31=this[_0x181e('0x26')](_0x55771a),_0x14ee0b=this[_0x181e('0xc6')]++,_0x2992ba='elementEnd'==_0x55771a[_0x181e('0x50')]?_0x55771a[_0x181e('0x67')][_0x181e('0x83')]['slice'](0x0,-0x1):_0x55771a[_0x181e('0x67')][_0x181e('0x83')];_0x1d9873[_0x181e('0xb9')](_0x2992ba)['_setAttribute'](_0x1d0d31,_0x14ee0b),this['_touched'][_0x181e('0x11')](_0x14ee0b,{'userId':_0x2caea3});}}for(const _0x3deaf9 of this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xca')](_0x22866a)[_0x181e('0x44')]({'singleCharacters':!0x0})){const _0x2c62f1=this[_0x181e('0x26')](_0x3deaf9),_0x72144=_0x181e('0x4b')==_0x3deaf9[_0x181e('0x50')]?_0x3deaf9['previousPosition'][_0x181e('0x83')][_0x181e('0xed')](0x0,-0x1):_0x3deaf9[_0x181e('0x67')][_0x181e('0x83')],_0x61347c=_0x1d9873[_0x181e('0xb9')](_0x72144);_0x61347c[_0x181e('0xfe')](_0x2c62f1)>0x0||_0x61347c[_0x181e('0xfa')](_0x2c62f1,_0x270fa3[_0x141d6b++]);}for(const [_0x41a5ef,_0xd59362]of _0x22866a['markers'])_0x41a5ef['startsWith']('revision:')||this['_markers'][_0x181e('0x11')](_0x41a5ef,_0xd59362);}const _0x369208=G(_0x181e('0xab'));this['_baseRoots']['set'](_0x181e('0xab'),_0x369208),this[_0x181e('0x88')][_0x181e('0x11')]('$graveyard',this[_0x181e('0x4d')](_0x369208,0x1));const _0x2574a1=G(_0x181e('0xab'));this['_diffRoots'][_0x181e('0x11')]('$graveyard',_0x2574a1),this['_idsRoots'][_0x181e('0x11')](_0x181e('0xab'),this[_0x181e('0x4d')](_0x2574a1,0x1));const _0x5942d6=Array[_0x181e('0x3b')](this['_diffRoots'])[_0x181e('0xa2')](([_0x25a4bc,_0xe88996])=>[_0x25a4bc,q(_0xe88996)]);this['_saveMetaData'](this[_0x181e('0x8')],_0x5942d6,this['_markers'],_0x1795f1);}[_0x181e('0x8f')](_0x4b4b42){const _0x531137=JSON[_0x181e('0xef')](_0x4b4b42),_0x41a4bc=this['editor'][_0x181e('0xd9')][_0x181e('0xf1')][_0x181e('0xc3')],_0x459864=new _0x3954f6(_0x41a4bc,_0x531137[_0x181e('0xa2')](_0x4ffb75=>J(_0x4ffb75,this[_0x181e('0x98')])));return this[_0x181e('0x98')]['data'][_0x181e('0x66')](_0x459864);}[_0x181e('0x6a')](_0x3d5537,_0x44d4fd,_0x504f2e,_0x1e5869){const _0x33be09=new Map(_0x44d4fd),_0x30351a=new Map(_0xa345b6(_0x1e5869)),_0x2db4eb=new Map();for(const [_0x511db5,_0xb55717]of _0x504f2e)_0x2db4eb[_0x181e('0x11')](_0x511db5,{'start':_0xb55717[_0x181e('0x6d')][_0x181e('0xbb')](),'end':_0xb55717['end'][_0x181e('0xbb')](),'rootName':_0xb55717[_0x181e('0x35')][_0x181e('0x87')]});this['_savedMetaData'][_0x181e('0x11')](_0x3d5537,{'roots':_0x33be09,'markers':_0x2db4eb,'rootsAttributes':_0x30351a});}[_0x181e('0xf6')](_0x2eeffb){this[_0x181e('0x17')][_0x181e('0x0')](_0x2eeffb);}['reInit'](){this[_0x181e('0x80')](),this[_0x181e('0x41')]=-0x1,this[_0x181e('0x8')]=-0x1,this[_0x181e('0x17')][_0x181e('0x65')](),this['init'](this[_0x181e('0xee')]);}['_reset'](){this[_0x181e('0x47')][_0x181e('0x65')](),this[_0x181e('0xbf')][_0x181e('0x65')](),this['_touchedRoots']['clear'](),this[_0x181e('0xa7')][_0x181e('0x65')](),this[_0x181e('0x63')][_0x181e('0x65')](),this[_0x181e('0x2d')][_0x181e('0x65')](),this[_0x181e('0x25')]['clear'](),this[_0x181e('0x99')]['clear'](),this[_0x181e('0x88')][_0x181e('0x65')](),this[_0x181e('0xd0')]['clear'](),this[_0x181e('0xc6')]=0x1,this[_0x181e('0xb5')]=this['_revisionId'];}['_makeIdsRoot'](_0x1fd683,_0xdac66f=null){let _0x53155e=null;_0x1fd683['is'](_0x181e('0x104'))||(_0x53155e=new _0x5b445d(_0x1fd683[_0x181e('0xcb')],{'vid_start':null===_0xdac66f?this[_0x181e('0xc6')]++:_0xdac66f++}));const _0x171581=[];for(const _0x5303ef of _0x1fd683['getChildren']())if(_0x5303ef['is']('element')){_0x171581[_0x181e('0x53')](this[_0x181e('0x4d')](_0x5303ef,_0xdac66f));const _0x31d0d3=_0x171581[_0x171581['length']-0x1];null!==_0xdac66f&&(_0xdac66f=_0x31d0d3['is'](_0x181e('0x10'),'$text')?_0x31d0d3['getAttribute'](_0x181e('0x23'))+0x1:_0x31d0d3['getAttribute'](_0x181e('0xc4'))+0x1);}else for(let _0x10a4e6=0x0;_0x10a4e6<_0x5303ef['offsetSize'];_0x10a4e6++)_0x171581[_0x181e('0x53')](new _0x5b445d('$text',{'vid':null===_0xdac66f?this['_revisionId']++:_0xdac66f++}));if(_0x1fd683['is'](_0x181e('0x104'))){const _0x2161d2=G(_0x1fd683['rootName']);return _0x2161d2['_insertChild'](0x0,_0x171581),_0x2161d2;}return _0x53155e[_0x181e('0xfa')](_0x181e('0xc4'),null===_0xdac66f?this['_revisionId']++:_0xdac66f++),_0x53155e[_0x181e('0xa')](0x0,_0x171581),_0x53155e;}[_0x181e('0xae')](_0x4d796a,_0x556e43,_0x3bb54f){this[_0x181e('0x80')]();const {roots:_0x4c8050,markers:_0x330fbe,rootsAttributes:_0x3c12f5}=this[_0x181e('0x17')][_0x181e('0x81')](_0x4d796a);this[_0x181e('0x2d')]=new Map(_0x4c8050),this[_0x181e('0x25')]=new Map(_0xa345b6(_0x3c12f5));for(const [_0x3b5da5,_0x4f12f8]of this[_0x181e('0x2d')])if(_0x181e('0xab')!==_0x3b5da5&&(this[_0x181e('0xa7')][_0x181e('0x11')](_0x3b5da5,q(_0x4f12f8)),this[_0x181e('0x63')]=new Map(_0xa345b6(_0x3c12f5)),_0x3bb54f)){const _0x25320b=this[_0x181e('0xc6')];this[_0x181e('0x99')][_0x181e('0x11')](_0x3b5da5,this['_makeIdsRoot'](_0x4f12f8)),this['_baseIdsRoots'][_0x181e('0x11')](_0x3b5da5,this['_makeIdsRoot'](_0x4f12f8,_0x25320b));}this['_startingRevisionId']=this[_0x181e('0xc6')],this['_diffRoots'][_0x181e('0x11')](_0x181e('0xab'),q(this[_0x181e('0x2d')][_0x181e('0x81')](_0x181e('0xab')))),_0x3bb54f&&this[_0x181e('0x99')][_0x181e('0x11')](_0x181e('0xab'),this[_0x181e('0x4d')](this[_0x181e('0x2d')][_0x181e('0x81')](_0x181e('0xab'))));for(const [_0x3b5096,_0x25e357]of _0x330fbe){const _0x27f4ca=this[_0x181e('0x2d')][_0x181e('0x81')](_0x25e357['rootName']),_0x545ebf=this[_0x181e('0xa7')]['get'](_0x25e357['rootName']),_0x5c3703=new _0x3a73a8(this[_0x181e('0x12')](_0x25e357[_0x181e('0x6d')],_0x27f4ca),this[_0x181e('0x12')](_0x25e357[_0x181e('0xe0')],_0x27f4ca)),_0x2295a3=this['_fixRange'](_0x5c3703,_0x545ebf);_0x27f4ca[_0x181e('0x108')][_0x181e('0x11')](_0x3b5096,_0x5c3703),this[_0x181e('0xd0')][_0x181e('0x11')](_0x3b5096,_0x2295a3);}this[_0x181e('0xa5')](_0x4d796a,_0x556e43,_0x3bb54f);}[_0x181e('0xa5')](_0x194b2b,_0x316486,_0x2e812f){for(const _0x54f893 of this[_0x181e('0xee')][_0x181e('0x86')](_0x194b2b,_0x316486))this[_0x181e('0x9a')](_0x54f893,_0x2e812f);for(const _0x120fad of this['_diffRoots'][_0x181e('0x29')]())_0x120fad[_0x181e('0x108')][_0x181e('0x65')]();for(const [_0x199be2,_0x233787]of this[_0x181e('0xd0')]){this[_0x181e('0xa7')][_0x181e('0x81')](_0x233787[_0x181e('0x35')]['rootName'])[_0x181e('0x108')][_0x181e('0x11')](_0x199be2,_0x233787[_0x181e('0xbb')]());}const _0x35b41b=new Map(),_0x336383=new Map();for(const [_0x50512c,_0x5cdb14]of this[_0x181e('0xa7')])_0x35b41b[_0x181e('0x11')](_0x50512c,q(_0x5cdb14)),_0x336383[_0x181e('0x11')](_0x50512c,this['_diffRootsAttributes'][_0x181e('0x81')](_0x50512c));this['_saveMetaData'](_0x316486,_0x35b41b,this[_0x181e('0xd0')],_0x336383);}[_0x181e('0x8e')](_0x27d763){const _0x260c14=Array[_0x181e('0x3b')](this[_0x181e('0x17')]['keys']());_0x260c14[_0x181e('0x85')]((_0x322c96,_0x5f3d13)=>_0x322c96-_0x5f3d13),_0x260c14[_0x181e('0xf0')]();for(const _0x378d96 of _0x260c14)if(_0x378d96<_0x27d763)return _0x378d96;return Number[_0x181e('0x13')];}['_copyMarkers'](_0x32305e,_0x2d5fad){const _0x4cc010=Array[_0x181e('0x3b')](_0x2d5fad[_0x181e('0x108')])['map'](([_0x574c9f,_0x3819bb])=>[_0x574c9f,this['_fixRange'](_0x3819bb,_0x32305e)]);_0x32305e[_0x181e('0x108')]=new Map(_0x4cc010);}[_0x181e('0x3c')](_0x5bb1f8){for(const _0xc98d1b of this['_markers'][_0x181e('0x29')]()){const _0x37e6b5=_0xc98d1b[_0x181e('0x105')](_0x5bb1f8),_0x11cae9=_0x3a73a8[_0x181e('0x45')](_0x37e6b5);_0xc98d1b[_0x181e('0x6d')]=_0x11cae9[_0x181e('0x6d')],_0xc98d1b[_0x181e('0xe0')]=_0x11cae9[_0x181e('0xe0')];}}[_0x181e('0x9a')](_0x2dbbc7,_0x37c7e2){if(_0x181e('0xdf')==_0x2dbbc7[_0x181e('0x50')]||_0x181e('0x102')==_0x2dbbc7[_0x181e('0x50')])return void this[_0x181e('0x60')](_0x2dbbc7,_0x37c7e2);if(_0x181e('0xa8')==_0x2dbbc7[_0x181e('0x50')]){const _0x37c0c8=_0x2dbbc7['position'][_0x181e('0x35')][_0x181e('0x87')];this[_0x181e('0xa7')][_0x181e('0x8b')](_0x37c0c8)||(this[_0x181e('0xa7')]['set'](_0x37c0c8,G(_0x37c0c8,!0x0)),this[_0x181e('0x63')]['set'](_0x37c0c8,{}),_0x37c7e2&&this[_0x181e('0x99')]['set'](_0x37c0c8,G(_0x37c0c8,!0x0)));}else{if(_0x181e('0x3a')==_0x2dbbc7[_0x181e('0x50')]||_0x181e('0x3d')==_0x2dbbc7['type']||_0x181e('0x89')==_0x2dbbc7[_0x181e('0x50')])return void this['_handleRootAttributeOperation'](_0x2dbbc7);}const _0x4d636c=this['_cloneOperation'](_0x2dbbc7,this['_diffRoots']);if(_0x181e('0xf')!==_0x2dbbc7[_0x181e('0x50')]&&(_0x4d636c['_execute'](),this[_0x181e('0x3c')](_0x4d636c)),_0x37c7e2)switch(_0x4d636c[_0x181e('0x50')]){case _0x181e('0xa8'):this[_0x181e('0x28')](_0x2dbbc7);break;case _0x181e('0x1e'):case _0x181e('0xe8'):case _0x181e('0x33'):this[_0x181e('0x93')](_0x2dbbc7);break;case _0x181e('0xf4'):this[_0x181e('0x9c')](_0x2dbbc7);break;case'split':this['_handleSplitOperation'](_0x2dbbc7);break;case'marker':this[_0x181e('0x38')](_0x2dbbc7);}}[_0x181e('0xa4')](_0x14ee06,_0x14877c){const _0x2bf234=_0x14ee06[_0x181e('0xbb')]();return _0x2bf234[_0x181e('0x52')]=_0x14ee06[_0x181e('0x52')],this[_0x181e('0xd')](_0x2bf234,_0x14877c),_0x2bf234;}[_0x181e('0x4f')](_0x46ac5c){return _0x46ac5c[_0x181e('0xa2')](_0x4abb4f=>{const _0x48cb90=this['_getVidAttributeName'](_0x4abb4f);return Number(_0x4abb4f[_0x181e('0x100')][_0x181e('0xfe')](_0x48cb90));});}['_generateTape'](_0x7c3913,_0xd9f5dd){if(_0x7c3913['is'](_0x181e('0x10'),_0x181e('0xcd')))_0xd9f5dd[_0x181e('0x53')]({'item':_0x7c3913,'type':_0x181e('0x106')});else{_0x7c3913['is'](_0x181e('0x10'))&&_0xd9f5dd['push']({'item':_0x7c3913,'type':_0x181e('0xd8')});for(const _0x4ba0d4 of _0x7c3913['getChildren']())this[_0x181e('0xb0')](_0x4ba0d4,_0xd9f5dd);_0x7c3913['is'](_0x181e('0x10'))&&_0xd9f5dd[_0x181e('0x53')]({'item':_0x7c3913,'type':_0x181e('0x4b')});}return _0xd9f5dd;}[_0x181e('0x39')](){const _0x346a57=new Map(this[_0x181e('0x47')]),_0x204de4=new Map(_0x346a57),_0x5eff39=new Map(),_0x3dde14={'insertions':{},'deletions':{}},_0x2e5d40={'insertions':{},'deletions':{}},_0x1fdd63=new Map(),_0x20ce1f=new Set([...this[_0x181e('0x2d')][_0x181e('0x1d')](),...this[_0x181e('0xa7')][_0x181e('0x1d')]()]);_0x20ce1f[_0x181e('0x0')](_0x181e('0xab'));for(const _0x2afb17 of _0x20ce1f){const _0x2f30c3=this[_0x181e('0xa7')][_0x181e('0x81')](_0x2afb17)||G(_0x2afb17,!0x1),_0x55cdaa=this[_0x181e('0x2d')][_0x181e('0x81')](_0x2afb17)||G(_0x2afb17,!0x1);_0x2f30c3[_0x181e('0x56')]()||_0x55cdaa[_0x181e('0x56')]()?(_0x3dde14['insertions'][_0x2afb17]=q(_0x2f30c3),_0x3dde14['deletions'][_0x2afb17]=q(_0x55cdaa),this[_0x181e('0xe2')](_0x3dde14['deletions'][_0x2afb17],_0x55cdaa),this[_0x181e('0xe2')](_0x3dde14[_0x181e('0x32')][_0x2afb17],_0x2f30c3),_0x2e5d40[_0x181e('0x32')][_0x2afb17]=this[_0x181e('0xb0')](this[_0x181e('0x99')]['get'](_0x2afb17),[]),_0x2e5d40[_0x181e('0x8a')][_0x2afb17]=this['_generateTape'](this[_0x181e('0x88')][_0x181e('0x81')](_0x2afb17)||G(_0x2afb17,!0x1),[])):_0x20ce1f[_0x181e('0x0')](_0x2afb17);}for(const _0x1504ea of _0x20ce1f){const _0x303723=_0x2e5d40[_0x181e('0x32')][_0x1504ea];for(const _0x2feff4 of _0x303723){const _0x57c774=this[_0x181e('0x26')](_0x2feff4),_0x53f20d=_0x2feff4[_0x181e('0x100')][_0x181e('0xfe')](_0x57c774);_0x204de4[_0x181e('0x0')](_0x53f20d),_0x53f20d>=this[_0x181e('0xb5')]&&_0x5eff39[_0x181e('0x11')](_0x53f20d,_0x346a57[_0x181e('0x81')](_0x53f20d));}}for(const _0x3bcea3 of _0x20ce1f){const _0x2f9ee6=_0x2e5d40['insertions'][_0x3bcea3],_0x36c217=this[_0x181e('0x4f')](_0x2e5d40[_0x181e('0x8a')][_0x3bcea3]);let _0x163fe2=0x0;for(const _0x3438b9 of _0x2f9ee6){const _0x16ad8b=this[_0x181e('0x26')](_0x3438b9),_0x4e64a0=_0x3438b9[_0x181e('0x100')]['getAttribute'](_0x16ad8b);if(!_0x5eff39['has'](_0x4e64a0)&&!_0x1fdd63[_0x181e('0x8b')](_0x4e64a0)){if(_0x204de4['has'](_0x4e64a0))_0x163fe2++;else{if(_0x4e64a0!=_0x36c217[_0x163fe2]){const _0x4eb2b3=_0x346a57[_0x181e('0x81')](_0x4e64a0)||_0x346a57[_0x181e('0x81')](_0x36c217[_0x163fe2]);for(;_0x4e64a0!=_0x36c217[_0x163fe2];)_0x204de4[_0x181e('0x8b')](_0x36c217[_0x163fe2])||(_0x1fdd63[_0x181e('0x11')](_0x36c217[_0x163fe2],_0x4eb2b3),_0x346a57[_0x181e('0x11')](_0x36c217[_0x163fe2],_0x4eb2b3)),_0x163fe2++;}_0x163fe2++;}}}}for(const _0x779449 of _0x20ce1f){const _0x336605=_0x2e5d40['insertions'][_0x779449];for(const _0x613c06 of _0x336605){const _0x2743c7=this[_0x181e('0x26')](_0x613c06),_0xb4f6f7=_0x613c06[_0x181e('0x100')]['getAttribute'](_0x2743c7);if(_0x1fdd63['has'](_0xb4f6f7)){const _0x4c6468=_0x1fdd63[_0x181e('0x81')](_0xb4f6f7);_0x204de4[_0x181e('0x8b')](_0xb4f6f7)||_0x204de4[_0x181e('0x11')](_0xb4f6f7,{..._0x4c6468}),_0x5eff39[_0x181e('0x11')](_0xb4f6f7,{..._0x4c6468});}}}for(const _0x4787eb of _0x204de4['keys']())_0x4787eb>=this[_0x181e('0xb5')]&&_0x204de4[_0x181e('0x0')](_0x4787eb);const _0x27a187=new Map();for(const _0x19fdd0 of _0x20ce1f){let _0x22df0d=_0x2e5d40[_0x181e('0x32')][_0x19fdd0];for(const _0x42c575 of _0x22df0d)if(_0x42c575[_0x181e('0x100')]['is'](_0x181e('0x10'),'tableCell')){const _0x35a645=this[_0x181e('0x26')](_0x42c575),_0x17ccd9=_0x42c575[_0x181e('0x100')][_0x181e('0xfe')](_0x35a645);if(_0x5eff39['has'](_0x17ccd9)){const _0x3adec4=_0x42c575[_0x181e('0x100')][_0x181e('0x20')][_0x181e('0x20')][_0x181e('0xfe')]('vid_start'),_0x2316ed=_0x27a187[_0x181e('0x81')](_0x3adec4)||new Set();_0x2316ed[_0x181e('0x48')](_0x5eff39[_0x181e('0x81')](_0x17ccd9)[_0x181e('0xb1')]),_0x27a187[_0x181e('0x11')](_0x3adec4,_0x2316ed);}}_0x22df0d=_0x2e5d40[_0x181e('0x8a')][_0x19fdd0];for(const _0x507996 of _0x22df0d)if(_0x507996['item']['is'](_0x181e('0x10'),'tableCell')){const _0x147d98=this[_0x181e('0x26')](_0x507996),_0x30a56c=_0x507996[_0x181e('0x100')][_0x181e('0xfe')](_0x147d98);if(_0x204de4['has'](_0x30a56c)){const _0x19b828=_0x507996[_0x181e('0x100')][_0x181e('0x20')][_0x181e('0x20')][_0x181e('0xfe')]('vid_start'),_0x52b89c=_0x27a187[_0x181e('0x81')](_0x19b828)||new Set();_0x52b89c[_0x181e('0x48')](_0x204de4[_0x181e('0x81')](_0x30a56c)[_0x181e('0xb1')]),_0x27a187[_0x181e('0x11')](_0x19b828,_0x52b89c);}}for(const _0x2ca240 of _0x27a187[_0x181e('0x1d')]())(_0x5eff39[_0x181e('0x8b')](_0x2ca240)||_0x204de4[_0x181e('0x8b')](_0x2ca240))&&_0x27a187['delete'](_0x2ca240);}for(const _0x49b3ee of _0x20ce1f){const _0x5b8473=_0x2e5d40[_0x181e('0x32')][_0x49b3ee];let _0x4f99c6=null,_0x493691=null;for(const _0xa9d5ed of _0x5b8473){const _0xb94919=this[_0x181e('0x26')](_0xa9d5ed),_0x222993=_0xa9d5ed[_0x181e('0x100')][_0x181e('0xfe')](_0xb94919),_0x5a9fac=_0x27a187['get'](_0x222993);_0x5a9fac&&_0x181e('0xd8')==_0xa9d5ed[_0x181e('0x50')]&&(_0x4f99c6=Array['from'](_0x5a9fac)[0x0],_0x493691=_0xa9d5ed[_0x181e('0x100')][_0x181e('0xfe')]('vid_end')),_0x4f99c6&&(_0x204de4[_0x181e('0x11')](_0x222993,{'userId':_0x4f99c6}),_0x5eff39[_0x181e('0x11')](_0x222993,{'userId':_0x4f99c6})),_0x222993==_0x493691&&(_0x4f99c6=null,_0x493691=null);}}const _0x4a99c6={},_0x23bd02=new Set();for(const _0x4e2f58 of _0x20ce1f){const _0xb99d37=_0x3dde14[_0x181e('0x8a')][_0x4e2f58],_0x2de08f=_0x3dde14[_0x181e('0x32')][_0x4e2f58];for(const {userId:_0x529983}of this[_0x181e('0xbf')]['values']())null!==_0x529983&&_0x23bd02[_0x181e('0x48')](_0x529983);for(const {userId:_0x4fa8bd}of this[_0x181e('0x5c')][_0x181e('0x29')]())null!==_0x4fa8bd&&_0x23bd02['add'](_0x4fa8bd);this[_0x181e('0x74')](_0x2de08f,_0x2e5d40[_0x181e('0x32')][_0x4e2f58],_0x5eff39,_0x181e('0xd2'),_0x23bd02),this[_0x181e('0x74')](_0xb99d37,_0x2e5d40[_0x181e('0x8a')][_0x4e2f58],_0x204de4,'deletion',_0x23bd02),_0x4a99c6[_0x4e2f58]={'insertions':this['_prepareViewToSave'](_0x2de08f),'deletions':this[_0x181e('0xf5')](_0xb99d37),'attachChange':this[_0x181e('0x5c')][_0x181e('0x81')](_0x4e2f58)||null,'attributesBefore':_0xa345b6(this[_0x181e('0x25')][_0x181e('0x81')](_0x4e2f58))||{},'attributesAfter':_0xa345b6(this[_0x181e('0x63')][_0x181e('0x81')](_0x4e2f58))};}return{'diffData':_0x4a99c6,'authorsIds':Array[_0x181e('0x3b')](_0x23bd02)};}['_processRootBeforeSave'](_0x413f5f){for(const [,_0x18c859]of _0x413f5f[_0x181e('0x108')]){const _0x29182b=_0x18c859['start'][_0x181e('0xdc')]()[_0x181e('0x6c')](_0x4076d5=>_0x181e('0xd5')==_0x4076d5[_0x181e('0xcb')]);for(const _0x222a32 of _0x29182b)0x1==_0x222a32[_0x181e('0x96')]&&_0x222a32[_0x181e('0xa6')](0x0)['is']('element',_0x181e('0xbd'))&&_0x222a32[_0x181e('0xa6')](0x0)[_0x181e('0xfa')]('keepParagraph',!0x0);}}[_0x181e('0xf5')](_0x942e83){this[_0x181e('0xf9')](_0x942e83);const _0x93f4e7=this[_0x181e('0x98')][_0x181e('0x59')][_0x181e('0x4')](_0x942e83,{}),_0xec6ef5=Array[_0x181e('0x3b')](_0x93f4e7[_0x181e('0x5')]())['map'](_0x5c7109=>this[_0x181e('0x9d')](_0x5c7109));return JSON[_0x181e('0xa1')](_0xec6ef5);}[_0x181e('0x9d')](_0x2c5f7a){if(_0x2c5f7a['is']('$text'))return _0x2c5f7a[_0x181e('0x59')];{const _0x3bd2e1=_0x2c5f7a;return{'type':Object[_0x181e('0x1d')](B)[_0x181e('0xcf')](_0x5b9b7d=>_0x2c5f7a instanceof B[_0x5b9b7d]),'name':_0x3bd2e1[_0x181e('0xcb')],'attributes':Array['from'](_0x3bd2e1['getAttributes']()),'children':Array[_0x181e('0x3b')](_0x3bd2e1[_0x181e('0x5')]())[_0x181e('0xa2')](_0x400409=>this['_getViewJson'](_0x400409))};}}[_0x181e('0x74')](_0xe4ea3f,_0x58337b,_0x2d91e4,_0x491a40,_0x30b8d7){let _0x2da149=null,_0x37fb54=null,_0x29777e=0x0;const _0x4dee8b=this['editor'][_0x181e('0x43')];for(let _0x1ebce1=0x0;_0x1ebce1<_0x58337b['length'];_0x1ebce1++){const _0x29264a=this[_0x181e('0x26')](_0x58337b[_0x1ebce1]),_0x20bf60=_0x58337b[_0x1ebce1]['item'][_0x181e('0xfe')](_0x29264a),_0xf3b49c=_0x2d91e4[_0x181e('0x81')](_0x20bf60),_0x5eb8d9=_0x1ebce1==_0x58337b[_0x181e('0xc7')]-0x1;(!_0x2da149&&_0xf3b49c&&(_0x2da149=_0xf3b49c,_0x37fb54=_0x58337b[_0x1ebce1]),_0x2da149&&(!_0xf3b49c||_0xf3b49c[_0x181e('0xb1')]!=_0x2da149[_0x181e('0xb1')]))&&(_0x49e3a0(_0xf3b49c,L(_0x37fb54,_0xe4ea3f,_0x4dee8b),L(_0x58337b[_0x1ebce1],_0xe4ea3f,_0x4dee8b)),_0x2da149=_0xf3b49c||null,_0x37fb54=_0xf3b49c?_0x58337b[_0x1ebce1]:null),_0x2da149&&_0x5eb8d9&&_0x49e3a0(_0xf3b49c,L(_0x37fb54,_0xe4ea3f,_0x4dee8b),W(_0x58337b[_0x1ebce1],_0xe4ea3f,_0x4dee8b));}function _0x49e3a0(_0x1127a8,_0x12b927,_0x536730){const _0x493c62=_0x2da149[_0x181e('0xb1')],_0x5f49b8=_0x181e('0x1c')+_0x491a40+':'+_0x493c62+':'+_0x29777e++,_0x385168=_0x4dee8b[_0x181e('0x2a')](_0x12b927,_0x536730);_0xe4ea3f[_0x181e('0x108')]['set'](_0x5f49b8,_0x385168),null!==_0x493c62&&_0x30b8d7['add'](_0x493c62);}}[_0x181e('0x26')](_0x59bd0e){switch(_0x59bd0e[_0x181e('0x50')]){case _0x181e('0xd8'):return _0x181e('0x2b');case _0x181e('0x4b'):return _0x181e('0xc4');default:return'vid';}}[_0x181e('0xd')](_0xa5234b,_0x24a07d){_0xa5234b[_0x181e('0x4a')]=null;for(const _0x43d995 in _0xa5234b){const _0x531539=_0xa5234b[_0x43d995];if(_0x531539 instanceof _0x4265eb){const _0x12c7ff=_0x24a07d['get'](_0x531539[_0x181e('0x35')][_0x181e('0x87')]);_0xa5234b[_0x43d995]=this[_0x181e('0x12')](_0x531539,_0x12c7ff);}if(_0x531539 instanceof _0x3a73a8){const _0x2035fe=_0x24a07d['get'](_0x531539[_0x181e('0x35')]['rootName']);_0xa5234b[_0x43d995]=this[_0x181e('0x7')](_0x531539,_0x2035fe);}_0x181e('0x35')===_0x43d995&&(_0xa5234b['root']=_0x24a07d[_0x181e('0x81')](_0xa5234b[_0x181e('0x35')][_0x181e('0x87')]));}}['_fixRange'](_0x4eaa83,_0x3cb9bb){return this[_0x181e('0x98')]['model']['createRange'](this[_0x181e('0x12')](_0x4eaa83['start'],_0x3cb9bb),this[_0x181e('0x12')](_0x4eaa83[_0x181e('0xe0')],_0x3cb9bb));}[_0x181e('0x12')](_0x52fcee,_0x531a08){return this[_0x181e('0x98')][_0x181e('0x43')][_0x181e('0xe4')](_0x531a08,_0x52fcee[_0x181e('0x83')],_0x52fcee[_0x181e('0x54')]);}['_handleInsertOperation'](_0x8ead71){const _0x11d720=this[_0x181e('0x99')][_0x181e('0x81')](_0x8ead71[_0x181e('0x6')]['root'][_0x181e('0x87')]),_0x2f78df=this[_0x181e('0x12')](_0x8ead71[_0x181e('0x6')],_0x11d720),_0x1aaa2e=null===_0x8ead71[_0x181e('0x52')]?null:_0x8ead71['_authorId']||this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')]('Users')['me']['id'],_0x17a379=_0x2f78df[_0x181e('0x20')],_0x59fdce=this['_revisionId'],_0xcabc32=[];for(const _0x4982ec of _0x8ead71[_0x181e('0xfd')])if(_0x4982ec['is'](_0x181e('0x10')))_0xcabc32[_0x181e('0x53')](this[_0x181e('0x4d')](_0x4982ec));else for(let _0xb41fd7=0x0;_0xb41fd7<_0x4982ec[_0x181e('0x70')];_0xb41fd7++)_0xcabc32['push'](new _0x5b445d('$text',{'vid':this[_0x181e('0xc6')]++}));const _0x1447d2=this[_0x181e('0xc6')];for(let _0x3bbf01=_0x59fdce;_0x3bbf01<_0x1447d2;_0x3bbf01++)this[_0x181e('0x47')][_0x181e('0x11')](_0x3bbf01,{'userId':_0x1aaa2e});_0x17a379[_0x181e('0xa')](_0x2f78df[_0x181e('0x7a')],_0xcabc32);}['_handleMoveOperation'](_0xdc87f2){(_0xdc87f2=this['_cloneOperation'](_0xdc87f2,this[_0x181e('0x99')]))[_0x181e('0x36')]();const _0x2a91a1=null===_0xdc87f2[_0x181e('0x52')]?null:_0xdc87f2['_authorId']||this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0xd5ff28=_0xdc87f2[_0x181e('0xfb')](),_0x29a687=_0xd5ff28[_0x181e('0x20')],_0x72c61e=_0xd5ff28[_0x181e('0x7a')];!function _0x329289(_0x460b10,_0x45b61a,_0x51af3a,_0x4561fd){for(let _0x40854f=_0x51af3a;_0x40854f<_0x4561fd;_0x40854f++){const _0x15bcd5=_0x45b61a[_0x181e('0xa6')](_0x40854f);_0x15bcd5['is']('element',_0x181e('0xcd'))?_0x460b10[_0x181e('0x11')](_0x15bcd5[_0x181e('0xfe')](_0x181e('0x23')),{'userId':_0x2a91a1}):(_0x460b10[_0x181e('0x11')](_0x15bcd5[_0x181e('0xfe')]('vid_start'),{'userId':_0x2a91a1}),_0x329289(_0x460b10,_0x15bcd5,0x0,_0x15bcd5[_0x181e('0x96')]),_0x460b10['set'](_0x15bcd5[_0x181e('0xfe')](_0x181e('0xc4')),{'userId':_0x2a91a1}));}}(this[_0x181e('0x47')],_0x29a687,_0x72c61e,_0x72c61e+_0xdc87f2[_0x181e('0xd4')]);}[_0x181e('0x9c')](_0x30ee4c){const _0x414f11=null===(_0x30ee4c=this[_0x181e('0xa4')](_0x30ee4c,this['_idsRoots']))['_authorId']?null:_0x30ee4c[_0x181e('0x52')]||this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0x4ac515=_0x30ee4c['targetPosition'][_0x181e('0x20')],_0x4fabb5=_0x30ee4c['sourcePosition'][_0x181e('0x20')],_0x572281=_0x4ac515[_0x181e('0xfe')]('vid_end'),_0x5aa5fd=_0x4fabb5[_0x181e('0xfe')]('vid_start');_0x4ac515[_0x181e('0xfa')](_0x181e('0xc4'),_0x4fabb5['getAttribute'](_0x181e('0xc4'))),_0x4fabb5['_setAttribute']('vid_end',_0x572281),this['_touched'][_0x181e('0x11')](_0x5aa5fd,{'userId':_0x414f11}),this[_0x181e('0x47')][_0x181e('0x11')](_0x572281,{'userId':_0x414f11}),_0x30ee4c[_0x181e('0x36')]();}[_0x181e('0x9')](_0x39d942){const _0xfa534c=null===(_0x39d942=this[_0x181e('0xa4')](_0x39d942,this[_0x181e('0x99')]))[_0x181e('0x52')]?null:_0x39d942[_0x181e('0x52')]||this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0xa6cc62=_0x39d942['graveyardPosition'],_0x4cfff4=_0x39d942[_0x181e('0xeb')][_0x181e('0x20')];_0x39d942['_execute']();const _0x33205f=_0x4cfff4[_0x181e('0xfe')]('vid_end'),_0x5b71ac=_0x39d942[_0x181e('0xbc')][_0x181e('0x55')];if(_0xa6cc62){const _0xc503ee=_0x5b71ac[_0x181e('0xfe')](_0x181e('0xc4')),_0x68c8e0=_0x4cfff4[_0x181e('0xfe')](_0x181e('0xc4'));_0x4cfff4['_setAttribute'](_0x181e('0xc4'),_0xc503ee),_0x5b71ac[_0x181e('0xfa')](_0x181e('0xc4'),_0x68c8e0),this[_0x181e('0x47')]['set'](_0x4cfff4[_0x181e('0xfe')]('vid_end'),{'userId':_0xfa534c}),this[_0x181e('0x47')][_0x181e('0x11')](_0x5b71ac[_0x181e('0xfe')]('vid_start'),{'userId':_0xfa534c});}else{const _0x1b6cad=this['_revisionId']++,_0x5495c0=this[_0x181e('0xc6')]++;_0x4cfff4[_0x181e('0xfa')]('vid_end',_0x1b6cad),_0x5b71ac[_0x181e('0xfa')](_0x181e('0x2b'),_0x5495c0),_0x5b71ac['_setAttribute'](_0x181e('0xc4'),_0x33205f),this[_0x181e('0x47')][_0x181e('0x11')](_0x1b6cad,{'userId':_0xfa534c}),this[_0x181e('0x47')][_0x181e('0x11')](_0x5495c0,{'userId':_0xfa534c});}}[_0x181e('0x38')](_0x215dca){if(!_0x215dca[_0x181e('0xad')])return;const _0x44607b=(_0x215dca=this['_cloneOperation'](_0x215dca,this[_0x181e('0xa7')]))[_0x181e('0x6e')]?_0x215dca[_0x181e('0x6e')]['root']:null,_0x115637=_0x215dca['newRange']?_0x215dca[_0x181e('0x1a')][_0x181e('0x35')]:null;_0x44607b&&this[_0x181e('0xd0')][_0x181e('0x0')](_0x215dca[_0x181e('0xcb')]),_0x115637&&this[_0x181e('0xd0')][_0x181e('0x11')](_0x215dca['name'],_0x215dca[_0x181e('0x1a')][_0x181e('0xbb')]());const _0x3a0ff3=null===_0x215dca[_0x181e('0x52')]?null:_0x215dca[_0x181e('0x52')]||this[_0x181e('0x98')][_0x181e('0x6b')][_0x181e('0x81')](_0x181e('0x77'))['me']['id'],_0x4ddee0=_0x215dca[_0x181e('0xcb')];if(!this[_0x181e('0xbf')]['has'](_0x4ddee0))return void this[_0x181e('0xbf')][_0x181e('0x11')](_0x4ddee0,{'range':_0x215dca[_0x181e('0x6e')],'userId':_0x3a0ff3});const _0x3cb865=this[_0x181e('0xbf')][_0x181e('0x81')](_0x4ddee0),_0x389faa=_0x3cb865['range'],_0x343ffd=_0x215dca['newRange'];null==_0x389faa&&null==_0x343ffd||_0x389faa&&_0x343ffd&&_0x389faa[_0x181e('0xb6')](_0x343ffd)?this[_0x181e('0xbf')][_0x181e('0x0')](_0x215dca['name']):_0x3cb865[_0x181e('0xb1')]=_0x3a0ff3;}[_0x181e('0x60')](_0x296bcd,_0x2f6bda){this[_0x181e('0xa7')][_0x181e('0x8b')](_0x296bcd[_0x181e('0x87')])?this['_diffRoots'][_0x181e('0x81')](_0x296bcd[_0x181e('0x87')])[_0x181e('0xde')]=_0x296bcd[_0x181e('0xba')]:(this['_diffRoots'][_0x181e('0x11')](_0x296bcd[_0x181e('0x87')],G(_0x296bcd[_0x181e('0x87')],!0x0)),this[_0x181e('0x63')][_0x181e('0x11')](_0x296bcd['rootName'],{}),_0x2f6bda&&this[_0x181e('0x99')][_0x181e('0x11')](_0x296bcd[_0x181e('0x87')],G(_0x296bcd[_0x181e('0x87')],!0x0)));const _0x24f929=null===_0x296bcd[_0x181e('0x52')]?null:_0x296bcd['_authorId']||this[_0x181e('0x98')]['plugins']['get'](_0x181e('0x77'))['me']['id'],_0x20c838=this[_0x181e('0x5c')][_0x181e('0x81')](_0x296bcd[_0x181e('0x87')]);_0x20c838&&_0x20c838[_0x181e('0xb1')]===_0x24f929?this[_0x181e('0x5c')][_0x181e('0x0')](_0x296bcd[_0x181e('0x87')]):this[_0x181e('0x5c')]['set'](_0x296bcd[_0x181e('0x87')],{'userId':_0x24f929,'isAttached':_0x296bcd['isAdd']});}[_0x181e('0xd3')](_0x73d7b3){const _0x5d32f9=this[_0x181e('0x63')]['get'](_0x73d7b3['root'][_0x181e('0x87')]);null===_0x73d7b3[_0x181e('0xb7')]?delete _0x5d32f9[_0x73d7b3[_0x181e('0x40')]]:_0x5d32f9[_0x73d7b3[_0x181e('0x40')]]=_0x73d7b3[_0x181e('0xb7')];}}function q(_0x39e36b){const _0x1bdeb6=G(_0x39e36b[_0x181e('0x87')],_0x39e36b['isAttached']());for(const _0xc337f9 of _0x39e36b['getChildren']()){const _0x569dc8=_0xc337f9[_0x181e('0x103')](!0x0);_0x1bdeb6['_appendChild'](_0x569dc8);}return _0x1bdeb6;}function G(_0x28ff00,_0x1e8006=!0x0){const _0x2ba343=new _0x49f63f();return _0x2ba343['rootName']=_0x28ff00,_0x2ba343[_0x181e('0xde')]=_0x1e8006,_0x2ba343['isAttached']=()=>_0x2ba343[_0x181e('0xde')],_0x2ba343;}function L(_0x37dbd0,_0x190715,_0x234d29){const _0x9af58e='elementEnd'==_0x37dbd0['type']?_0x234d29[_0x181e('0xf2')](_0x37dbd0['item'],'end'):_0x234d29[_0x181e('0x49')](_0x37dbd0[_0x181e('0x100')]);return _0x234d29['createPositionFromPath'](_0x190715,_0x9af58e[_0x181e('0x83')],_0x9af58e['stickiness']);}function W(_0xc00a45,_0x58d2eb,_0x3c3e86){const _0x1fcb5c=_0x181e('0xd8')==_0xc00a45[_0x181e('0x50')]?_0x3c3e86['createPositionAt'](_0xc00a45[_0x181e('0x100')],0x0):_0x3c3e86[_0x181e('0x97')](_0xc00a45[_0x181e('0x100')]);return _0x3c3e86[_0x181e('0xe4')](_0x58d2eb,_0x1fcb5c[_0x181e('0x83')],_0x1fcb5c[_0x181e('0x54')]);}
23
+ const _0x3e03=['_markChanges','parent','position','view','revision-start','_createInitialRevision','find','type','text','isReady','_idsRoots','useFillerType','$text','isEnabled','_getBaseVids','_getPreviousFrom','createRange','toData','vid','attachChange','getTime','_update','newRange','_insertChild','_cloneOperation','childCount','split','filter','_continueCurrentRevision','remove','version','_operations','_copyMarkers','getAttribute','createPositionFromPath','getLatestVersion','ready','_prepareViewToSave','getRange','createPositionAt','_transformMarkers','roots','for','toModel','_markers','nodes','previousPosition','clear','RevisionsRepository','get','addRevision','targetPosition','getRoot','loadState','_createCurrentRevision','fromVersion','sendBufferedUpdates','data','offset','_makeIdsRoot','nodeAfter','_applyOperations','adapter','clone','_diffRootsAttributes','root','config','_startingRevisionId','elementEnd','affectsData','PendingActions','_getState','_loadState','_revisionDataBuilder','dataToMarker','getRevisions','getAncestors','children','marked','initialData','set','_lastFrom','authorsIds','conversion','max','offsetSize','_setAttribute','getCurrentRevisionId','source','baseVersion','editing','_saveMetaData','reInit','authors','attributes','range','slice','getData','_bufferedUpdates','add','_pendingAction','_makeModelFromViewString','push','_touchedRoots','_calculateMetaData','string','_baseIdsRoots','upcast','fromEntries','rootsAttributes','_handleOperation','revision:','delete','createRangeIn','PENDING_ACTION_REVISION_HISTORY','_removeRevisionMarkers','_baseRoots','parse','isAdd','RevisionTracker','initial','getNodeByPath','_reset','_execute','createPositionBefore','size','some','_diffRoots','getIndex','revisionHistory.resumeUnsavedRevision','paragraph','_isPendingUpdate','insert','document','Users','history','keys','getRevisionDocumentData','editor-initial-data-replaced-with-revision-data','_handleInsertOperation','resolve','userId','_fixOperation','stickiness','removeRootAttribute','_setConversion','item','revision-end','_getVidAttributeName','_handleRootOperation','insertions','tableCell','_isInit','markers','init','values','collaboration.channelId','RealTimeCollaborationClient','buildRevisionData','_savedMetaData','getAttributes','stringify','_touched','createdAt','getRevision','includes','element','getChild','_getFromVersion','_source','reverse','sort','_touchedMarkers','from','isEqual','_authorId','_addPendingAction','isAttached','_loadRevisionData','setRevisionData','_handleSplitOperation','vid_start','creatorId','getOperation','requires','attributesAfter','_removePendingAction','_fixRange','getChildren','attributesBefore','length','diffData','newValue','getOperations','_getViewJson','documentFragment','_baseRootsAttributes','getRootNames','forEach','toView','currentRevision','editor','vid_end','NEGATIVE_INFINITY','createPositionAfter','_revisionId','_makeRevision','repository','sourcePosition','data-revision-','getWalker','elementStart','has','createRevision','marker','addRevisionData','dataDowncast','shift','_replaceEditorDataWithRevisionData','_isAttached','locale','deletions','startsWith','key','name','map','processor','_createFromRanges','getUser','model','_loadedStateData','splitPosition','plugins','getRevisionRootsAttributes','_initialRevisionId','_startingVersion','insertionPosition','$graveyard','_handleMergeOperation','_bufferUpdate','rootName','_processRootBeforeSave','path','start','toVersion','_fixPosition','default','_findInsertionIndex','creator','_handleRootAttributeOperation','_lastTo','_handleMarkerOperation','_removeMetaData','_generateTape','end'];(function(_0x5a604d,_0x3e03aa){const _0x282adb=function(_0x51913e){while(--_0x51913e){_0x5a604d['push'](_0x5a604d['shift']());}};_0x282adb(++_0x3e03aa);}(_0x3e03,0x1e0));const _0x282a=function(_0x5a604d,_0x3e03aa){_0x5a604d=_0x5a604d-0x0;let _0x282adb=_0x3e03[_0x5a604d];return _0x282adb;};import{Users as _0x37c296}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x46d0fd,PendingActions as _0x5e3720}from'ckeditor5/src/core';import{logWarning as _0x4fd490,uid as _0x17c355}from'ckeditor5/src/utils';import{Position as _0x4b482c,Range as _0x59cef2,Element as _0x3ef850,DocumentFragment as _0x478586,ViewText as _0x246e82,ViewElement as _0x384ef5,ViewContainerElement as _0x6a9943,ViewAttributeElement as _0x4be36b,ViewEmptyElement as _0x44965f,ViewRawElement as _0xe395bd,ViewUIElement as _0x128766,ViewDocumentFragment as _0x46275b}from'ckeditor5/src/engine';import _0x247171 from'./revisionsrepository';import{getTranslation as _0x2be542}from'./utils/common-translations';import{cloneDeep as _0x38d3ff,isEqual as _0x27ceb1}from'lodash-es';const B={'c':_0x6a9943,'a':_0x4be36b,'e':_0x44965f,'r':_0xe395bd,'u':_0x128766};export default class l extends _0x46d0fd{static get['pluginName'](){return _0x282a('0x95');}static get[_0x282a('0xd6')](){return[_0x37c296,_0x247171,_0x5e3720];}constructor(_0x11e09d){super(_0x11e09d),this['adapter']=null,this['currentRevision']=null,this[_0x282a('0x67')]=new H(this[_0x282a('0xe7')]),this['_initialRevisionId']=this[_0x282a('0xe7')][_0x282a('0x60')][_0x282a('0x4f')]('collaboration.channelId')||_0x282a('0x96'),this['_bufferedUpdates']=new Map(),this[_0x282a('0x5')]=null;const _0x35a17a=_0x17c355();this['_source']={'history':this['editor'][_0x282a('0x4')][_0x282a('0xa3')]['history'],'getLatestVersion':()=>Promise[_0x282a('0xaa')](this['editor'][_0x282a('0x4')][_0x282a('0xa3')][_0x282a('0x3c')]),'getCurrentRevisionId':()=>_0x35a17a},this[_0x282a('0x6e')](_0x282a('0x27'),!0x1),this[_0x282a('0x6e')](_0x282a('0x2b'),!0x0),this[_0x282a('0x6e')](_0x282a('0xa1'),!0x1),this[_0x282a('0xe7')][_0x282a('0x60')]['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor'][_0x282a('0x71')][_0x282a('0x48')](_0x282a('0x89'))[_0x282a('0x68')]({'view':'revision'});}[_0x282a('0xb8')](){this[_0x282a('0xed')]=this['editor'][_0x282a('0x7')][_0x282a('0x4f')](_0x282a('0x4e')),this[_0x282a('0xaf')](),this['editor'][_0x282a('0x57')]['on'](_0x282a('0x42'),()=>{const _0x1ee1cd=this[_0x282a('0xed')][_0x282a('0xc2')](0x0),_0x5a15f3=_0x1ee1cd&&null===_0x1ee1cd[_0x282a('0x17')]?_0x1ee1cd:null;if(this[_0x282a('0x3a')]=!!_0x5a15f3&&this['editor'][_0x282a('0x60')][_0x282a('0x4f')](_0x282a('0x9f')),this['editor']['plugins']['has'](_0x282a('0xbb'))){const _0x44e480=this[_0x282a('0xc7')][_0x282a('0x75')](),_0x34168f=this[_0x282a('0xed')][_0x282a('0xc2')](_0x44e480);if(_0x34168f)this[_0x282a('0xa')]=_0x34168f[_0x282a('0x55')],this[_0x282a('0x3a')]=!0x1;else{const _0x17dd46=this[_0x282a('0xc7')]['history'][_0x282a('0x3d')][_0x282a('0x24')](_0x1e7665=>!_0x1e7665[_0x282a('0xb6')]),_0x141937=_0x17dd46?_0x17dd46[_0x282a('0x77')]:this[_0x282a('0xc7')][_0x282a('0xa5')][_0x282a('0x3c')];_0x1ee1cd?(_0x1ee1cd[_0x282a('0x13')]<_0x141937&&_0x1ee1cd['_update']({'toVersion':_0x141937}),this[_0x282a('0x3a')]?(this[_0x282a('0xc7')][_0x282a('0x75')]=()=>_0x5a15f3['id'],this['_startingVersion']=_0x5a15f3[_0x282a('0x55')]):(this[_0x282a('0xa')]=_0x1ee1cd[_0x282a('0x13')],this['_continueCurrentRevision']=!0x1)):(this[_0x282a('0xa')]=_0x141937,this['_continueCurrentRevision']=!0x1);}}else _0x5a15f3&&(this[_0x282a('0xe7')]['model'][_0x282a('0xa3')]['history']['version']=Math[_0x282a('0x72')](_0x5a15f3[_0x282a('0x13')],this['editor'][_0x282a('0x4')][_0x282a('0xa3')]['history'][_0x282a('0x3c')]),_0x5a15f3['fromVersion']===_0x5a15f3[_0x282a('0x13')]?(0x0!==_0x5a15f3[_0x282a('0x55')]&&(this['_source'][_0x282a('0x75')]=()=>_0x5a15f3['id']),this[_0x282a('0x3a')]=!0x1):this[_0x282a('0x3a')]&&(this[_0x282a('0xc7')]['getCurrentRevisionId']=()=>_0x5a15f3['id'],this['_startingVersion']=_0x5a15f3[_0x282a('0x55')])),this[_0x282a('0x3a')]||(this[_0x282a('0xa')]=this['editor'][_0x282a('0x4')][_0x282a('0xa3')][_0x282a('0x3c')]);this[_0x282a('0x67')][_0x282a('0xb8')](this['_source']['history']),this[_0x282a('0x23')](this['_startingVersion']),this[_0x282a('0x54')](this[_0x282a('0xa')]),this['adapter']&&this[_0x282a('0x56')]();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x5ceb82=>!_0x5ceb82);}async['afterInit'](){if(this[_0x282a('0xed')]['length']>0x0){const _0x3a5b36=this['repository']['getRevision'](0x0),_0x30b44e=await this['getRevisionDocumentData'](_0x3a5b36),_0x2d78ed=await this[_0x282a('0x8')](_0x3a5b36);this[_0x282a('0xf8')](_0x30b44e,_0x2d78ed);}}['setSource'](_0xa4c872){this['_source']=_0xa4c872;}async['update'](){const _0xe501a=await this[_0x282a('0xc7')]['getLatestVersion']();if(_0xe501a>this[_0x282a('0xe6')][_0x282a('0x13')]){await this['_loadState']();const _0x47f104=this[_0x282a('0xbc')]({'revision':this['currentRevision'],'to':_0xe501a});_0x47f104[_0x282a('0x7b')]=_0x47f104[_0x282a('0x70')][_0x282a('0x0')](_0x1dea1c=>this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')]('Users')['getUser'](_0x1dea1c)),this[_0x282a('0xe6')][_0x282a('0x33')](_0x47f104);}}async[_0x282a('0x66')](){this[_0x282a('0x3a')]&&!this[_0x282a('0x5')]&&(await this[_0x282a('0xd0')](this[_0x282a('0xe6')]),this[_0x282a('0x67')][_0x282a('0x53')](this[_0x282a('0xe6')]),this[_0x282a('0x5')]={'fromVersion':this['currentRevision'][_0x282a('0x55')],'authors':this[_0x282a('0xe6')][_0x282a('0x7b')][_0x282a('0x7e')]()});}async['saveRevision'](_0x3658f7={},_0x129fc4=null){const _0x4f0951=[];await this[_0x282a('0x66')](),this['_continueCurrentRevision']=!0x1,_0x129fc4>this[_0x282a('0xe6')]['toVersion']&&(_0x129fc4=null),null===_0x129fc4&&(_0x129fc4=await this[_0x282a('0xc7')][_0x282a('0x41')]());const _0x126602=this[_0x282a('0xc6')](_0x129fc4),_0x23dd83=this[_0x282a('0xbc')]({'from':_0x126602,'to':_0x129fc4});if(this[_0x282a('0xe6')]['toVersion']<_0x129fc4){const _0x1ccb8c=this[_0x282a('0xbc')]({'revision':this['currentRevision'],'from':_0x129fc4,'to':_0x129fc4});_0x1ccb8c[_0x282a('0x7b')]=[],_0x1ccb8c[_0x282a('0x70')]=[],_0x1ccb8c['id']=this[_0x282a('0xe6')]['id'],this[_0x282a('0xe6')]['_update'](_0x1ccb8c,!0x0),delete _0x1ccb8c[_0x282a('0x7b')],_0x4f0951['push'](_0x1ccb8c);}_0x3658f7['creatorId']=this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')]('Users')['me']['id'],_0x3658f7[_0x282a('0xfe')]=_0x3658f7[_0x282a('0xfe')]||null,_0x3658f7['id']=_0x3658f7['id']||_0x17c355(),_0x3658f7={..._0x3658f7,..._0x23dd83};const _0x3c19b0=this[_0x282a('0xf5')](_0x3658f7);_0x4f0951[_0x282a('0x84')](_0x3658f7);const _0x4a201a=this[_0x282a('0xed')][_0x282a('0x9e')](_0x3c19b0);if(0x0!==_0x4a201a){const _0x364119=this['repository'][_0x282a('0xc2')](_0x4a201a-0x1);if(_0x364119[_0x282a('0x55')]!==_0x129fc4){const _0x25de76=this[_0x282a('0x67')]['getData'](_0x129fc4,_0x364119[_0x282a('0x13')]),_0x59fe6c={'id':_0x364119['id'],'diffData':_0x25de76[_0x282a('0xdd')],'authorsIds':_0x25de76['authorsIds'],'authors':_0x25de76[_0x282a('0x70')][_0x282a('0x0')](_0x37c847=>this['editor'][_0x282a('0x7')][_0x282a('0x4f')](_0x282a('0xa4'))[_0x282a('0x3')](_0x37c847)),'fromVersion':_0x129fc4};_0x364119===this[_0x282a('0xe6')]&&(_0x59fe6c['createdAt']=new Date(_0x3658f7[_0x282a('0xc1')][_0x282a('0x32')]()+0xa)),_0x364119[_0x282a('0x33')](_0x59fe6c,!0x0),delete _0x59fe6c[_0x282a('0x7b')],_0x4f0951[_0x282a('0x84')](_0x59fe6c);}}if(this[_0x282a('0x5c')]){for(const _0x2d30cf of _0x4f0951)this[_0x282a('0xe')](_0x2d30cf['id'],_0x2d30cf,!0x0);this[_0x282a('0x56')]();}return _0x3c19b0;}[_0x282a('0xf5')](_0xaf0667){const _0xa6cca3=this['repository'][_0x282a('0xf3')](_0xaf0667);return this[_0x282a('0x5c')]&&_0xa6cca3['on'](_0x282a('0x33'),(_0x560221,_0x1fd13b,_0x59085c)=>{_0x59085c||(this['_bufferUpdate'](_0x1fd13b['id'],_0x1fd13b,!0x0),this[_0x282a('0x56')]());}),this[_0x282a('0xed')][_0x282a('0x50')](_0xa6cca3,this[_0x282a('0x16')](_0xa6cca3)),_0xa6cca3;}async[_0x282a('0xa7')](_0x54a7bd){await this[_0x282a('0xd0')](_0x54a7bd);const _0x3a3fde={};for(const _0x31347a in _0x54a7bd[_0x282a('0xdd')]){if(_0x54a7bd[_0x282a('0xdd')][_0x31347a][_0x282a('0x31')]&&!_0x54a7bd[_0x282a('0xdd')][_0x31347a][_0x282a('0x31')][_0x282a('0xcf')])continue;const _0x1bf35c=this[_0x282a('0x91')](JSON[_0x282a('0x93')](_0x54a7bd[_0x282a('0xdd')][_0x31347a][_0x282a('0xb4')])),_0x1cd258=this['editor']['editing'][_0x282a('0x21')][_0x282a('0xa3')],_0x353ebb=new _0x46275b(_0x1cd258,_0x1bf35c[_0x282a('0x0')](_0x4e6187=>J(_0x4e6187,this[_0x282a('0xe7')])));this[_0x282a('0xe7')][_0x282a('0x57')][_0x282a('0x1')][_0x282a('0x29')](_0x282a('0x6c')),_0x3a3fde[_0x31347a]=this[_0x282a('0xe7')][_0x282a('0x57')]['processor'][_0x282a('0x2f')](_0x353ebb),this[_0x282a('0xe7')][_0x282a('0x57')]['processor'][_0x282a('0x29')](_0x282a('0x15'));}return _0x3a3fde;}async[_0x282a('0x8')](_0x365adc){await this['_loadRevisionData'](_0x365adc);const _0x3c03be={};for(const _0x3b2222 in _0x365adc[_0x282a('0xdd')])_0x365adc[_0x282a('0xdd')][_0x3b2222][_0x282a('0x31')]&&!_0x365adc[_0x282a('0xdd')][_0x3b2222][_0x282a('0x31')][_0x282a('0xcf')]||(_0x3c03be[_0x3b2222]=_0x365adc[_0x282a('0xdd')][_0x3b2222][_0x282a('0xd7')]||{});return _0x3c03be;}[_0x282a('0x56')](){if(0x0===this[_0x282a('0x80')][_0x282a('0x9b')])return;if(this[_0x282a('0xa1')])return;let _0x41e411=Array[_0x282a('0xcb')](this['_bufferedUpdates'][_0x282a('0xb9')]());this[_0x282a('0x80')]['clear']();for(let _0x1c0e60=0x0;_0x1c0e60<_0x41e411[_0x282a('0xdc')];_0x1c0e60++){const _0x307f6f=_0x41e411[_0x1c0e60];let _0x2646ce=!0x1;for(const _0x3b20c2 of Object[_0x282a('0xa6')](_0x307f6f))void 0x0===_0x307f6f[_0x3b20c2]?delete _0x307f6f[_0x3b20c2]:'id'!==_0x3b20c2&&(_0x2646ce=!0x0);_0x2646ce||(_0x41e411[_0x1c0e60]=null);}if(_0x41e411=_0x41e411[_0x282a('0x39')](_0x569dc3=>null!==_0x569dc3),!_0x41e411[_0x282a('0xdc')])return;for(let _0x58dead=0x0;_0x58dead<_0x41e411[_0x282a('0xdc')];_0x58dead++){const _0x17c372=_0x41e411[_0x58dead];void 0x0!==_0x17c372[_0x282a('0x55')]&&void 0x0===_0x17c372[_0x282a('0x13')]&&(_0x17c372['toVersion']=this[_0x282a('0xed')][_0x282a('0xc2')](_0x17c372['id'])[_0x282a('0x13')]),void 0x0!==_0x17c372[_0x282a('0x13')]&&void 0x0===_0x17c372[_0x282a('0x55')]&&(_0x17c372[_0x282a('0x55')]=this[_0x282a('0xed')][_0x282a('0xc2')](_0x17c372['id'])[_0x282a('0x55')]);}const _0x575114=this[_0x282a('0xe7')][_0x282a('0x60')][_0x282a('0x4f')](_0x282a('0xba'));this[_0x282a('0xa1')]=!0x0,this['_addPendingAction'](),this[_0x282a('0x5c')]['updateRevisions'](_0x41e411,_0x575114)['finally'](()=>{this[_0x282a('0xa1')]=!0x1;})['then'](_0x2f65bc=>{if(_0x2f65bc)for(const _0x3887f3 of _0x2f65bc)this[_0x282a('0xd1')]({'id':_0x3887f3['id'],'createdAt':_0x3887f3['createdAt']});this[_0x282a('0xd8')](),this[_0x282a('0x56')]();});}[_0x282a('0xf8')](_0x4ac167,_0x1aec4e){let _0x2c8e62=this[_0x282a('0xe7')][_0x282a('0x60')][_0x282a('0x4f')](_0x282a('0x6d')),_0x318386=this[_0x282a('0xe7')]['config'][_0x282a('0x4f')](_0x282a('0x8b'));if(void 0x0===_0x2c8e62){_0x2c8e62={};for(const _0x3cba71 of this[_0x282a('0xe7')][_0x282a('0x4')]['document'][_0x282a('0xe3')]())_0x2c8e62[_0x3cba71]='';}if(_0x282a('0x87')==typeof _0x2c8e62&&(_0x2c8e62={'main':_0x2c8e62}),void 0x0===_0x318386){_0x318386={};for(const _0x1275e9 of this[_0x282a('0xe7')][_0x282a('0x4')]['document'][_0x282a('0xe3')]())_0x318386[_0x1275e9]={};}let _0x3177ac=!0x1;const _0xa4c176=Object[_0x282a('0xa6')](_0x2c8e62),_0x36ed58=Object[_0x282a('0xa6')](_0x4ac167);for(const _0x3e3f03 of _0xa4c176){if(_0x2c8e62[_0x3e3f03]!==_0x4ac167[_0x3e3f03]&&''!==_0x2c8e62[_0x3e3f03]['trim']()){_0x3177ac=!0x0;break;}if(!_0x27ceb1(_0x318386[_0x3e3f03],_0x1aec4e[_0x3e3f03])&&Object[_0x282a('0xa6')](_0x318386[_0x3e3f03])[_0x282a('0xdc')]>0x0){_0x3177ac=!0x0;break;}}_0x3177ac||(_0x3177ac=_0x36ed58[_0x282a('0x9c')](_0x189c79=>!this['editor']['model']['document']['getRoot'](_0x189c79))),_0x3177ac&&_0x4fd490(_0x282a('0xa8'),{'editorData':_0x2c8e62,'editorRootsAttributes':_0x318386,'revisionData':_0x4ac167,'revisionRootsAttributes':_0x1aec4e}),this[_0x282a('0xe7')][_0x282a('0x60')][_0x282a('0x6e')]('initialData',_0x4ac167),this['editor']['config'][_0x282a('0x6e')](_0x282a('0x8b'),_0x1aec4e);}[_0x282a('0xce')](){if(!this['_pendingAction']){const _0x1ff8dc=this[_0x282a('0xe7')][_0x282a('0x7')]['get'](_0x282a('0x64'));this[_0x282a('0x82')]=_0x1ff8dc[_0x282a('0x81')](_0x2be542(this[_0x282a('0xe7')][_0x282a('0xfa')],_0x282a('0x90')));}}[_0x282a('0xd8')](){this[_0x282a('0x82')]&&(this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')](_0x282a('0x64'))[_0x282a('0x3b')](this['_pendingAction']),this[_0x282a('0x82')]=null);}['_findInsertionIndex'](_0x2ebb64){const _0xf72e7b=this[_0x282a('0xed')][_0x282a('0x69')]();_0xf72e7b[_0x282a('0xc8')]();let _0x589228=0x0;for(;_0x589228<_0xf72e7b[_0x282a('0xdc')];){const _0x1ec5fb=_0xf72e7b[_0x589228];if(_0x1ec5fb===this[_0x282a('0xe6')]){_0x589228++;continue;}if(_0x1ec5fb['id']===this['_initialRevisionId'])break;const _0x191f5a=_0x2ebb64['toVersion']-_0x1ec5fb[_0x282a('0x13')]||_0x2ebb64[_0x282a('0x55')]-_0x1ec5fb[_0x282a('0x55')];if(_0x191f5a>0x0)break;if(_0x191f5a<0x0)_0x589228++;else{if(!_0x2ebb64[_0x282a('0x17')]&&_0x1ec5fb[_0x282a('0x17')])break;if(_0x1ec5fb[_0x282a('0x17')]||!_0x2ebb64[_0x282a('0x17')]){if(_0x2ebb64[_0x282a('0xc1')]>_0x1ec5fb['createdAt'])break;_0x589228++;}else _0x589228++;}}return _0x589228;}[_0x282a('0xd1')](_0x36f512){const _0x480edc=this['repository'][_0x282a('0xc2')](_0x36f512['id']);if(_0x36f512[_0x282a('0xc1')]&&(_0x36f512[_0x282a('0xc1')]=new Date(_0x36f512['createdAt'])),_0x36f512['authorsIds']){const _0xc81a13=this[_0x282a('0xe7')][_0x282a('0x7')]['get'](_0x282a('0xa4'));_0x36f512['authors']=_0x36f512['authorsIds'][_0x282a('0x0')](_0x5a0b04=>_0xc81a13[_0x282a('0x3')](_0x5a0b04));}_0x480edc['_update'](_0x36f512,!0x0);}[_0x282a('0xbc')]({revision:_0x51bc15=null,from:_0x278cca=null,to:_0x194848=null}){_0x278cca=null!==_0x278cca?_0x278cca:_0x51bc15[_0x282a('0x55')],_0x194848=null!==_0x194848?_0x194848:_0x51bc15['toVersion'];const _0x4470be=this[_0x282a('0x67')]['getData'](_0x278cca,_0x194848),_0xce04dd={'diffData':_0x4470be[_0x282a('0xdd')],'authorsIds':_0x4470be['authorsIds'],'fromVersion':_0x278cca,'toVersion':_0x194848};if(!_0x51bc15||_0x194848!==_0x51bc15['toVersion']){const _0x59c6f6=_0x194848-0x1,_0x17f8f1=this[_0x282a('0xc7')]['history'][_0x282a('0xd5')](_0x59c6f6);_0xce04dd['createdAt']=_0x17f8f1&&_0x17f8f1[_0x282a('0xc1')]||new Date();}if(this['_loadedStateData']&&_0x278cca===this[_0x282a('0x5')][_0x282a('0x55')])for(const _0x33f89b of this[_0x282a('0x5')][_0x282a('0x7b')])_0xce04dd['authorsIds'][_0x282a('0xc3')](_0x33f89b['id'])||_0xce04dd[_0x282a('0x70')][_0x282a('0x84')](_0x33f89b['id']);return _0xce04dd;}['_loadRevisionData'](_0x16f2eb){if(!_0x16f2eb||_0x16f2eb['diffData'])return Promise[_0x282a('0xaa')]();{const _0x54c469=this['editor'][_0x282a('0x60')][_0x282a('0x4f')](_0x282a('0xba'));return this[_0x282a('0x5c')]['getRevision']({'channelId':_0x54c469,'revisionId':_0x16f2eb['id']})['then'](_0x1b0673=>{_0x16f2eb[_0x282a('0xdd')]=_0x1b0673['diffData'];});}}['_bufferUpdate'](_0x180fd7,_0x246967,_0x3ef3d8){if(this[_0x282a('0x80')]['has'](_0x180fd7)){const _0x201ccf=this['_bufferedUpdates'][_0x282a('0x4f')](_0x180fd7);_0x246967=_0x3ef3d8?{..._0x201ccf,..._0x246967}:{..._0x246967,..._0x201ccf};}this[_0x282a('0x80')][_0x282a('0x6e')](_0x180fd7,_0x246967);}[_0x282a('0xc6')](_0x2dc84c){const _0x1eb026=this[_0x282a('0xed')]['getRevisions']();_0x1eb026['reverse'](),_0x1eb026[_0x282a('0xf7')]();const _0x276fef=_0x1eb026['find'](_0xe604a0=>_0xe604a0[_0x282a('0x13')]<=_0x2dc84c)[_0x282a('0x13')];return _0x276fef<this[_0x282a('0xa')]?this['_startingVersion']:_0x276fef;}[_0x282a('0x23')](_0x17708e){const _0x4a3674=this[_0x282a('0xed')][_0x282a('0xc2')](this[_0x282a('0xed')][_0x282a('0xdc')]-0x1);if(_0x4a3674)this[_0x282a('0x9')]=_0x4a3674['id'];else{const _0x358fd8=!this[_0x282a('0xe7')][_0x282a('0x4')]['document']['roots'][_0x282a('0x24')](_0x17cddc=>this['editor']['model']['hasContent'](_0x17cddc)),_0x4a4357=this[_0x282a('0xe7')][_0x282a('0x7')]['get'](_0x282a('0xa4'))['me']['id'],_0x1914d8=_0x2be542(this[_0x282a('0xe7')][_0x282a('0xfa')],_0x358fd8?'Empty\x20document':'Initial\x20revision');this[_0x282a('0xec')]({'from':_0x17708e,'to':_0x17708e,'id':this[_0x282a('0x9')],'name':_0x1914d8,'creatorId':_0x4a4357});}}[_0x282a('0x54')](_0x15e7fa){const _0x158f56=this[_0x282a('0xc7')]['getCurrentRevisionId']();this[_0x282a('0xe6')]=this[_0x282a('0xed')]['getRevision'](_0x158f56),this[_0x282a('0xe6')]||(this[_0x282a('0xe6')]=this['_makeRevision']({'from':_0x15e7fa,'to':_0x15e7fa,'id':_0x158f56,'name':'','creatorId':null}));}['_makeRevision']({name:_0x431ca3,from:_0x5ba7d8,to:_0x15e1a5,creatorId:_0x3deab8,id:_0x201782}){const _0x58feac=this[_0x282a('0xbc')]({'from':_0x5ba7d8,'to':_0x15e1a5});_0x58feac[_0x282a('0xfe')]=_0x431ca3,_0x58feac[_0x282a('0xd4')]=_0x3deab8,_0x58feac['id']=_0x201782;const _0x2ec638=this['addRevisionData'](_0x58feac);return this['adapter']&&this[_0x282a('0xe')](_0x58feac['id'],_0x58feac,!0x0),_0x2ec638;}[_0x282a('0xaf')](){this[_0x282a('0xe7')][_0x282a('0x71')][_0x282a('0x48')](_0x282a('0xf6'))['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x256eb1){return(_0x256eb1=_0x256eb1['filter'](_0x448170=>!_0x448170['name']||_0x282a('0x22')!==_0x448170[_0x282a('0xfe')]&&_0x282a('0xb1')!==_0x448170[_0x282a('0xfe')]))[_0x282a('0xe4')](_0x15279b=>{_0x282a('0x87')!=typeof _0x15279b&&(_0x15279b[_0x282a('0x6b')]=this[_0x282a('0x91')](_0x15279b['children']),_0x15279b[_0x282a('0x7c')]=_0x15279b[_0x282a('0x7c')][_0x282a('0x39')](_0x184cd4=>!_0x184cd4[0x0]['startsWith'](_0x282a('0xef'))));}),_0x256eb1;}}function J(_0x256d9b,_0x296596){const _0x14fcc1=_0x296596[_0x282a('0x78')][_0x282a('0x21')]['document'];if(_0x282a('0x87')==typeof _0x256d9b)return new _0x246e82(_0x14fcc1,_0x256d9b);{const _0xfc5a3=_0x256d9b[_0x282a('0x6b')][_0x282a('0x0')](_0x1c164f=>J(_0x1c164f,_0x296596));return new(B[_0x256d9b[(_0x282a('0x25'))]]||_0x384ef5)(_0x14fcc1,_0x256d9b[_0x282a('0xfe')],_0x256d9b[_0x282a('0x7c')],_0xfc5a3);}}class H{constructor(_0x5dd681){this[_0x282a('0xe7')]=_0x5dd681,this[_0x282a('0xbd')]=new Map(),this[_0x282a('0x6f')]=-0x1,this[_0x282a('0x19')]=-0x1,this[_0x282a('0x4a')]=new Map(),this[_0x282a('0x9d')]=new Map(),this[_0x282a('0x5e')]=new Map(),this[_0x282a('0x92')]=new Map(),this[_0x282a('0xe2')]=new Map(),this[_0x282a('0x28')]=new Map(),this[_0x282a('0x88')]=new Map(),this[_0x282a('0xc0')]=new Map(),this[_0x282a('0xca')]=new Map(),this[_0x282a('0x85')]=new Map(),this[_0x282a('0xeb')]=0x1;}[_0x282a('0xb8')](_0x5c09b2){this[_0x282a('0x76')]=_0x5c09b2;const _0xab0e17=new Map(),_0x112100=new Map(),_0x58d8d6=this[_0x282a('0xe7')][_0x282a('0x4')][_0x282a('0xa3')][_0x282a('0x47')]['map'](_0x569eeb=>_0x569eeb[_0x282a('0xf')]);for(const _0x3c7440 of _0x58d8d6){const _0xca2482=this[_0x282a('0xe7')]['model'][_0x282a('0xa3')][_0x282a('0x52')](_0x3c7440),_0x5e2162=q(_0xca2482);_0xab0e17[_0x282a('0x6e')](_0x3c7440,_0x5e2162),_0x112100['set'](_0x3c7440,Object[_0x282a('0x8a')](_0xca2482['getAttributes']()));}const _0x5f42cb=Array[_0x282a('0xcb')](this[_0x282a('0xe7')][_0x282a('0x4')][_0x282a('0xb7')])[_0x282a('0x0')](_0x3d9ea1=>[_0x3d9ea1[_0x282a('0xfe')],_0x3d9ea1[_0x282a('0x44')]()]),_0x2d2a56=this[_0x282a('0x76')][_0x282a('0x3c')];this['_saveMetaData'](_0x2d2a56,_0xab0e17,_0x5f42cb,_0x112100),this[_0x282a('0x61')]=this[_0x282a('0xeb')];const _0x6fa13d=new Map(),_0x52b4dc=new Map();for(const _0x4bc7d3 of _0x58d8d6){const _0x5b8bf3=G(_0x4bc7d3);_0x6fa13d[_0x282a('0x6e')](_0x4bc7d3,_0x5b8bf3),_0x52b4dc[_0x282a('0x6e')](_0x4bc7d3,{});}this[_0x282a('0x79')](Number[_0x282a('0xe9')],_0x6fa13d,[],_0x52b4dc);}[_0x282a('0x7f')](_0x522955,_0x5b88c0){if(this[_0x282a('0x6f')]===_0x522955&&this[_0x282a('0x19')]<=_0x5b88c0)this[_0x282a('0xbd')][_0x282a('0x9b')]>0x1&&this[_0x282a('0x1b')](this[_0x282a('0x19')]),this['_applyOperations'](this['_lastTo'],_0x5b88c0,!0x0);else{if(!this[_0x282a('0xbd')]['has'](_0x522955)){const _0x3e6ae4=this['_getPreviousFrom'](_0x522955);this['_calculateMetaData'](_0x3e6ae4,_0x522955,!0x1);}this[_0x282a('0x86')](_0x522955,_0x5b88c0,!0x0);}return this[_0x282a('0x6f')]=_0x522955,this[_0x282a('0x19')]=_0x5b88c0,this[_0x282a('0x65')]();}[_0x282a('0x53')](_0x55caa2){this[_0x282a('0x98')](),this[_0x282a('0x6f')]=_0x55caa2['fromVersion'],this[_0x282a('0x19')]=_0x55caa2[_0x282a('0x13')];for(const _0x5a60b3 in _0x55caa2['diffData']){const _0xe64f4a=_0x55caa2[_0x282a('0xdd')][_0x5a60b3][_0x282a('0x31')],_0x1170e4=_0x38d3ff(_0x55caa2[_0x282a('0xdd')][_0x5a60b3][_0x282a('0xdb')])||{},_0xbedfcd=this[_0x282a('0x83')](_0x55caa2['diffData'][_0x5a60b3][_0x282a('0xfb')]);_0xbedfcd[_0x282a('0xf')]=_0x5a60b3,_0xbedfcd[_0x282a('0xf9')]=!_0xe64f4a||!_0xe64f4a[_0x282a('0xcf')],_0xbedfcd[_0x282a('0xcf')]=()=>_0xbedfcd[_0x282a('0xf9')],this[_0x282a('0x92')]['set'](_0x5a60b3,_0xbedfcd),this[_0x282a('0xe2')][_0x282a('0x6e')](_0x5a60b3,_0x1170e4),_0xe64f4a&&this[_0x282a('0x85')][_0x282a('0x6e')](_0x5a60b3,_0xe64f4a);const _0x19a888=this[_0x282a('0x59')](_0xbedfcd);this[_0x282a('0x88')][_0x282a('0x6e')](_0x5a60b3,_0x19a888);for(const [_0x476215,_0x505a05]of _0xbedfcd['markers']){if(!_0x476215[_0x282a('0xfc')](_0x282a('0x8d')))continue;const _0x4fc837=_0x476215[_0x282a('0x38')](':')[0x2];for(const _0x196302 of _0x505a05[_0x282a('0xf0')]({'singleCharacters':!0x0})){const _0x194bd8=this[_0x282a('0xb2')](_0x196302),_0x569f2f=_0x282a('0x62')==_0x196302['type']?_0x196302['previousPosition']['path'][_0x282a('0x7e')](0x0,-0x1):_0x196302['previousPosition'][_0x282a('0x11')],_0x677c12=_0x19a888['getNodeByPath'](_0x569f2f)[_0x282a('0x3f')](_0x194bd8);this[_0x282a('0xc0')][_0x282a('0x6e')](_0x677c12,{'userId':_0x4fc837});}}}this[_0x282a('0x61')]=this[_0x282a('0xeb')];const _0x28fd8c=[...Array(this[_0x282a('0xeb')])[_0x282a('0xa6')]()][_0x282a('0x7e')](0x1)[_0x282a('0x39')](_0x51fdf1=>!this[_0x282a('0xc0')][_0x282a('0xf2')](_0x51fdf1));let _0x2e15a9=0x0;const _0x1e5155=new Map();for(const _0x25e8e6 in _0x55caa2[_0x282a('0xdd')]){const _0x622de2=_0x55caa2[_0x282a('0xdd')][_0x25e8e6][_0x282a('0x31')],_0x2f0c12=_0x38d3ff(_0x55caa2[_0x282a('0xdd')][_0x25e8e6][_0x282a('0xd7')])||{},_0x4091bf=this[_0x282a('0x83')](_0x55caa2['diffData'][_0x25e8e6][_0x282a('0xb4')]);_0x4091bf[_0x282a('0xf')]=_0x25e8e6,_0x4091bf[_0x282a('0xf9')]=!_0x622de2||_0x622de2[_0x282a('0xcf')],_0x4091bf[_0x282a('0xcf')]=()=>_0x4091bf[_0x282a('0xf9')],this[_0x282a('0x9d')][_0x282a('0x6e')](_0x25e8e6,_0x4091bf),this[_0x282a('0x5e')][_0x282a('0x6e')](_0x25e8e6,_0x2f0c12);const _0x2afa70=this[_0x282a('0x59')](_0x4091bf,Number[_0x282a('0xe9')]);this[_0x282a('0x28')][_0x282a('0x6e')](_0x25e8e6,_0x2afa70),_0x1e5155[_0x282a('0x6e')](_0x25e8e6,_0x4091bf[_0x282a('0xcf')]()?_0x2f0c12:{});for(const [_0x45eca9,_0x5c66a8]of _0x4091bf[_0x282a('0xb7')]){if(!_0x45eca9[_0x282a('0xfc')](_0x282a('0x8d')))continue;const _0x52450f=_0x45eca9['split'](':')[0x2];for(const _0x39b847 of _0x5c66a8[_0x282a('0xf0')]({'singleCharacters':!0x0})){const _0x16ba7f=this['_getVidAttributeName'](_0x39b847),_0x749edf=this[_0x282a('0xeb')]++,_0x327d50=_0x282a('0x62')==_0x39b847[_0x282a('0x25')]?_0x39b847[_0x282a('0x4c')][_0x282a('0x11')][_0x282a('0x7e')](0x0,-0x1):_0x39b847[_0x282a('0x4c')]['path'];_0x2afa70['getNodeByPath'](_0x327d50)[_0x282a('0x74')](_0x16ba7f,_0x749edf),this['_touched'][_0x282a('0x6e')](_0x749edf,{'userId':_0x52450f});}}for(const _0x45c365 of this[_0x282a('0xe7')][_0x282a('0x4')][_0x282a('0x8f')](_0x4091bf)[_0x282a('0xf0')]({'singleCharacters':!0x0})){const _0x4edb40=this['_getVidAttributeName'](_0x45c365),_0x18333e=_0x282a('0x62')==_0x45c365[_0x282a('0x25')]?_0x45c365[_0x282a('0x4c')][_0x282a('0x11')][_0x282a('0x7e')](0x0,-0x1):_0x45c365['previousPosition'][_0x282a('0x11')],_0x4ac1ff=_0x2afa70[_0x282a('0x97')](_0x18333e);_0x4ac1ff[_0x282a('0x3f')](_0x4edb40)>0x0||_0x4ac1ff[_0x282a('0x74')](_0x4edb40,_0x28fd8c[_0x2e15a9++]);}for(const [_0x2fa5f7,_0x1d1bd4]of _0x4091bf[_0x282a('0xb7')])_0x2fa5f7['startsWith'](_0x282a('0x8d'))||this[_0x282a('0x4a')][_0x282a('0x6e')](_0x2fa5f7,_0x1d1bd4);}const _0x46a526=G(_0x282a('0xc'));this[_0x282a('0x92')][_0x282a('0x6e')](_0x282a('0xc'),_0x46a526),this['_baseIdsRoots'][_0x282a('0x6e')]('$graveyard',this[_0x282a('0x59')](_0x46a526,0x1));const _0x1ee566=G(_0x282a('0xc'));this[_0x282a('0x9d')][_0x282a('0x6e')]('$graveyard',_0x1ee566),this[_0x282a('0x28')][_0x282a('0x6e')](_0x282a('0xc'),this[_0x282a('0x59')](_0x1ee566,0x1));const _0x3aa387=Array[_0x282a('0xcb')](this[_0x282a('0x9d')])[_0x282a('0x0')](([_0x38593a,_0x4b32cf])=>[_0x38593a,q(_0x4b32cf)]);this[_0x282a('0x79')](this['_lastTo'],_0x3aa387,this[_0x282a('0x4a')],_0x1e5155);}['_makeModelFromViewString'](_0x67f467){const _0xf27c76=JSON['parse'](_0x67f467),_0x250973=this['editor'][_0x282a('0x78')]['view']['document'],_0x557dbc=new _0x46275b(_0x250973,_0xf27c76['map'](_0x280f9c=>J(_0x280f9c,this[_0x282a('0xe7')])));return this[_0x282a('0xe7')]['data'][_0x282a('0x49')](_0x557dbc);}['_saveMetaData'](_0x2c4651,_0x561d83,_0x105835,_0x30bd69){const _0x4dba36=new Map(_0x561d83),_0x45c21c=new Map(_0x38d3ff(_0x30bd69)),_0x397192=new Map();for(const [_0x10e3cb,_0x427aec]of _0x105835)_0x397192['set'](_0x10e3cb,{'start':_0x427aec[_0x282a('0x12')][_0x282a('0x5d')](),'end':_0x427aec[_0x282a('0x1d')][_0x282a('0x5d')](),'rootName':_0x427aec[_0x282a('0x5f')][_0x282a('0xf')]});this[_0x282a('0xbd')]['set'](_0x2c4651,{'roots':_0x4dba36,'markers':_0x397192,'rootsAttributes':_0x45c21c});}['_removeMetaData'](_0x4ca679){this[_0x282a('0xbd')][_0x282a('0x8e')](_0x4ca679);}[_0x282a('0x7a')](){this[_0x282a('0x98')](),this[_0x282a('0x6f')]=-0x1,this[_0x282a('0x19')]=-0x1,this[_0x282a('0xbd')]['clear'](),this[_0x282a('0xb8')](this[_0x282a('0x76')]);}[_0x282a('0x98')](){this['_touched']['clear'](),this[_0x282a('0xca')][_0x282a('0x4d')](),this[_0x282a('0x85')][_0x282a('0x4d')](),this[_0x282a('0x9d')][_0x282a('0x4d')](),this['_diffRootsAttributes'][_0x282a('0x4d')](),this[_0x282a('0x92')][_0x282a('0x4d')](),this[_0x282a('0xe2')]['clear'](),this[_0x282a('0x28')][_0x282a('0x4d')](),this[_0x282a('0x88')][_0x282a('0x4d')](),this[_0x282a('0x4a')][_0x282a('0x4d')](),this[_0x282a('0xeb')]=0x1,this[_0x282a('0x61')]=this['_revisionId'];}[_0x282a('0x59')](_0x2a5cd8,_0x1ebec8=null){let _0x23fb0=null;_0x2a5cd8['is'](_0x282a('0xe1'))||(_0x23fb0=new _0x3ef850(_0x2a5cd8['name'],{'vid_start':null===_0x1ebec8?this['_revisionId']++:_0x1ebec8++}));const _0x4d309c=[];for(const _0x40f249 of _0x2a5cd8['getChildren']())if(_0x40f249['is']('element')){_0x4d309c[_0x282a('0x84')](this[_0x282a('0x59')](_0x40f249,_0x1ebec8));const _0x4cf862=_0x4d309c[_0x4d309c[_0x282a('0xdc')]-0x1];null!==_0x1ebec8&&(_0x1ebec8=_0x4cf862['is']('element',_0x282a('0x2a'))?_0x4cf862[_0x282a('0x3f')](_0x282a('0x30'))+0x1:_0x4cf862['getAttribute'](_0x282a('0xe8'))+0x1);}else for(let _0xf69c4c=0x0;_0xf69c4c<_0x40f249['offsetSize'];_0xf69c4c++)_0x4d309c[_0x282a('0x84')](new _0x3ef850(_0x282a('0x2a'),{'vid':null===_0x1ebec8?this[_0x282a('0xeb')]++:_0x1ebec8++}));if(_0x2a5cd8['is'](_0x282a('0xe1'))){const _0x27194e=G(_0x2a5cd8[_0x282a('0xf')]);return _0x27194e['_insertChild'](0x0,_0x4d309c),_0x27194e;}return _0x23fb0[_0x282a('0x74')]('vid_end',null===_0x1ebec8?this[_0x282a('0xeb')]++:_0x1ebec8++),_0x23fb0[_0x282a('0x35')](0x0,_0x4d309c),_0x23fb0;}['_calculateMetaData'](_0x1ccb50,_0x1f7db7,_0x17b065){this[_0x282a('0x98')]();const {roots:_0x479181,markers:_0x209a97,rootsAttributes:_0xc74d0a}=this['_savedMetaData']['get'](_0x1ccb50);this[_0x282a('0x92')]=new Map(_0x479181),this[_0x282a('0xe2')]=new Map(_0x38d3ff(_0xc74d0a));for(const [_0x41a79f,_0xa9200b]of this[_0x282a('0x92')])if(_0x282a('0xc')!==_0x41a79f&&(this[_0x282a('0x9d')][_0x282a('0x6e')](_0x41a79f,q(_0xa9200b)),this['_diffRootsAttributes']=new Map(_0x38d3ff(_0xc74d0a)),_0x17b065)){const _0x4ff3bc=this[_0x282a('0xeb')];this[_0x282a('0x28')][_0x282a('0x6e')](_0x41a79f,this['_makeIdsRoot'](_0xa9200b)),this[_0x282a('0x88')][_0x282a('0x6e')](_0x41a79f,this['_makeIdsRoot'](_0xa9200b,_0x4ff3bc));}this['_startingRevisionId']=this[_0x282a('0xeb')],this[_0x282a('0x9d')][_0x282a('0x6e')](_0x282a('0xc'),q(this[_0x282a('0x92')][_0x282a('0x4f')](_0x282a('0xc')))),_0x17b065&&this[_0x282a('0x28')][_0x282a('0x6e')]('$graveyard',this['_makeIdsRoot'](this[_0x282a('0x92')][_0x282a('0x4f')](_0x282a('0xc'))));for(const [_0x52b489,_0x5af330]of _0x209a97){const _0x26d12f=this['_baseRoots'][_0x282a('0x4f')](_0x5af330[_0x282a('0xf')]),_0x31ccd9=this[_0x282a('0x9d')][_0x282a('0x4f')](_0x5af330[_0x282a('0xf')]),_0x2bae51=new _0x59cef2(this[_0x282a('0x14')](_0x5af330[_0x282a('0x12')],_0x26d12f),this[_0x282a('0x14')](_0x5af330['end'],_0x26d12f)),_0x35e698=this[_0x282a('0xd9')](_0x2bae51,_0x31ccd9);_0x26d12f[_0x282a('0xb7')][_0x282a('0x6e')](_0x52b489,_0x2bae51),this[_0x282a('0x4a')]['set'](_0x52b489,_0x35e698);}this[_0x282a('0x5b')](_0x1ccb50,_0x1f7db7,_0x17b065);}['_applyOperations'](_0x513c03,_0x494d98,_0x4ae70f){for(const _0x11c15e of this['source'][_0x282a('0xdf')](_0x513c03,_0x494d98))this[_0x282a('0x8c')](_0x11c15e,_0x4ae70f);for(const _0x3bf8f3 of this['_diffRoots'][_0x282a('0xb9')]())_0x3bf8f3[_0x282a('0xb7')][_0x282a('0x4d')]();for(const [_0xa04001,_0x4c805f]of this['_markers']){this[_0x282a('0x9d')][_0x282a('0x4f')](_0x4c805f[_0x282a('0x5f')][_0x282a('0xf')])[_0x282a('0xb7')][_0x282a('0x6e')](_0xa04001,_0x4c805f['clone']());}const _0x1747bc=new Map(),_0x5d2cff=new Map();for(const [_0x21917d,_0x30d1c5]of this[_0x282a('0x9d')])_0x1747bc[_0x282a('0x6e')](_0x21917d,q(_0x30d1c5)),_0x5d2cff[_0x282a('0x6e')](_0x21917d,this['_diffRootsAttributes'][_0x282a('0x4f')](_0x21917d));this[_0x282a('0x79')](_0x494d98,_0x1747bc,this[_0x282a('0x4a')],_0x5d2cff);}[_0x282a('0x2d')](_0x2dc423){const _0x1cd83a=Array['from'](this['_savedMetaData']['keys']());_0x1cd83a[_0x282a('0xc9')]((_0x106d06,_0x31252a)=>_0x106d06-_0x31252a),_0x1cd83a['reverse']();for(const _0x55f328 of _0x1cd83a)if(_0x55f328<_0x2dc423)return _0x55f328;return Number[_0x282a('0xe9')];}['_copyMarkers'](_0x4644a5,_0x129557){const _0x1d7fa0=Array[_0x282a('0xcb')](_0x129557[_0x282a('0xb7')])[_0x282a('0x0')](([_0x1edf3e,_0x3e852e])=>[_0x1edf3e,this[_0x282a('0xd9')](_0x3e852e,_0x4644a5)]);_0x4644a5[_0x282a('0xb7')]=new Map(_0x1d7fa0);}[_0x282a('0x46')](_0x44d019){for(const _0x414f99 of this[_0x282a('0x4a')]['values']()){const _0x2ff0f0=_0x414f99['getTransformedByOperation'](_0x44d019),_0x1fb914=_0x59cef2[_0x282a('0x2')](_0x2ff0f0);_0x414f99[_0x282a('0x12')]=_0x1fb914[_0x282a('0x12')],_0x414f99[_0x282a('0x1d')]=_0x1fb914[_0x282a('0x1d')];}}[_0x282a('0x8c')](_0x12ef32,_0x446fa0){if('addRoot'==_0x12ef32[_0x282a('0x25')]||'detachRoot'==_0x12ef32[_0x282a('0x25')])return void this[_0x282a('0xb3')](_0x12ef32,_0x446fa0);if(_0x282a('0xa2')==_0x12ef32[_0x282a('0x25')]){const _0x46b449=_0x12ef32[_0x282a('0x20')][_0x282a('0x5f')]['rootName'];this[_0x282a('0x9d')][_0x282a('0xf2')](_0x46b449)||(this[_0x282a('0x9d')][_0x282a('0x6e')](_0x46b449,G(_0x46b449,!0x0)),this[_0x282a('0x5e')][_0x282a('0x6e')](_0x46b449,{}),_0x446fa0&&this['_idsRoots']['set'](_0x46b449,G(_0x46b449,!0x0)));}else{if('addRootAttribute'==_0x12ef32[_0x282a('0x25')]||_0x282a('0xae')==_0x12ef32[_0x282a('0x25')]||'changeRootAttribute'==_0x12ef32[_0x282a('0x25')])return void this['_handleRootAttributeOperation'](_0x12ef32);}const _0x5956a2=this[_0x282a('0x36')](_0x12ef32,this['_diffRoots']);if('marker'!==_0x12ef32['type']&&(_0x5956a2['_execute'](),this[_0x282a('0x46')](_0x5956a2)),_0x446fa0)switch(_0x5956a2['type']){case'insert':this['_handleInsertOperation'](_0x12ef32);break;case'move':case _0x282a('0x3b'):case'reinsert':this['_handleMoveOperation'](_0x12ef32);break;case'merge':this['_handleMergeOperation'](_0x12ef32);break;case _0x282a('0x38'):this['_handleSplitOperation'](_0x12ef32);break;case _0x282a('0xf4'):this[_0x282a('0x1a')](_0x12ef32);}}[_0x282a('0x36')](_0x12ab6d,_0x5987f2){const _0x332779=_0x12ab6d['clone']();return _0x332779[_0x282a('0xcd')]=_0x12ab6d[_0x282a('0xcd')],this[_0x282a('0xac')](_0x332779,_0x5987f2),_0x332779;}[_0x282a('0x2c')](_0x54e06e){return _0x54e06e[_0x282a('0x0')](_0x75739=>{const _0x12eaf2=this[_0x282a('0xb2')](_0x75739);return Number(_0x75739['item']['getAttribute'](_0x12eaf2));});}['_generateTape'](_0x41dd1b,_0x1649ba){if(_0x41dd1b['is']('element',_0x282a('0x2a')))_0x1649ba[_0x282a('0x84')]({'item':_0x41dd1b,'type':_0x282a('0x26')});else{_0x41dd1b['is'](_0x282a('0xc4'))&&_0x1649ba[_0x282a('0x84')]({'item':_0x41dd1b,'type':_0x282a('0xf1')});for(const _0x4f3fc2 of _0x41dd1b[_0x282a('0xda')]())this[_0x282a('0x1c')](_0x4f3fc2,_0x1649ba);_0x41dd1b['is'](_0x282a('0xc4'))&&_0x1649ba['push']({'item':_0x41dd1b,'type':'elementEnd'});}return _0x1649ba;}[_0x282a('0x65')](){const _0x162c54=new Map(this[_0x282a('0xc0')]),_0x28df6c=new Map(_0x162c54),_0x443be1=new Map(),_0xf579ae={'insertions':{},'deletions':{}},_0x21201c={'insertions':{},'deletions':{}},_0x34b4c0=new Map(),_0x5438d2=new Set([...this[_0x282a('0x92')]['keys'](),...this[_0x282a('0x9d')][_0x282a('0xa6')]()]);_0x5438d2['delete']('$graveyard');for(const _0x3992c5 of _0x5438d2){const _0x49d54d=this[_0x282a('0x9d')][_0x282a('0x4f')](_0x3992c5)||G(_0x3992c5,!0x1),_0x4074b3=this['_baseRoots'][_0x282a('0x4f')](_0x3992c5)||G(_0x3992c5,!0x1);_0x49d54d[_0x282a('0xcf')]()||_0x4074b3[_0x282a('0xcf')]()?(_0xf579ae[_0x282a('0xb4')][_0x3992c5]=q(_0x49d54d),_0xf579ae[_0x282a('0xfb')][_0x3992c5]=q(_0x4074b3),this['_copyMarkers'](_0xf579ae[_0x282a('0xfb')][_0x3992c5],_0x4074b3),this[_0x282a('0x3e')](_0xf579ae['insertions'][_0x3992c5],_0x49d54d),_0x21201c['insertions'][_0x3992c5]=this[_0x282a('0x1c')](this['_idsRoots'][_0x282a('0x4f')](_0x3992c5),[]),_0x21201c[_0x282a('0xfb')][_0x3992c5]=this['_generateTape'](this[_0x282a('0x88')][_0x282a('0x4f')](_0x3992c5)||G(_0x3992c5,!0x1),[])):_0x5438d2[_0x282a('0x8e')](_0x3992c5);}for(const _0x5600d4 of _0x5438d2){const _0xf2a14e=_0x21201c[_0x282a('0xb4')][_0x5600d4];for(const _0x3f8a47 of _0xf2a14e){const _0x331750=this[_0x282a('0xb2')](_0x3f8a47),_0x358359=_0x3f8a47[_0x282a('0xb0')][_0x282a('0x3f')](_0x331750);_0x28df6c[_0x282a('0x8e')](_0x358359),_0x358359>=this[_0x282a('0x61')]&&_0x443be1['set'](_0x358359,_0x162c54[_0x282a('0x4f')](_0x358359));}}for(const _0x3c4029 of _0x5438d2){const _0x230377=_0x21201c['insertions'][_0x3c4029],_0x457b33=this[_0x282a('0x2c')](_0x21201c[_0x282a('0xfb')][_0x3c4029]);let _0x31d456=0x0;for(const _0x50190a of _0x230377){const _0x370634=this[_0x282a('0xb2')](_0x50190a),_0x59e1c5=_0x50190a['item'][_0x282a('0x3f')](_0x370634);if(!_0x443be1[_0x282a('0xf2')](_0x59e1c5)&&!_0x34b4c0[_0x282a('0xf2')](_0x59e1c5)){if(_0x28df6c[_0x282a('0xf2')](_0x59e1c5))_0x31d456++;else{if(_0x59e1c5!=_0x457b33[_0x31d456]){const _0x420ab2=_0x162c54[_0x282a('0x4f')](_0x59e1c5)||_0x162c54['get'](_0x457b33[_0x31d456]);for(;_0x59e1c5!=_0x457b33[_0x31d456];)_0x28df6c[_0x282a('0xf2')](_0x457b33[_0x31d456])||(_0x34b4c0[_0x282a('0x6e')](_0x457b33[_0x31d456],_0x420ab2),_0x162c54['set'](_0x457b33[_0x31d456],_0x420ab2)),_0x31d456++;}_0x31d456++;}}}}for(const _0x1f91af of _0x5438d2){const _0x51cb28=_0x21201c['insertions'][_0x1f91af];for(const _0x34a91c of _0x51cb28){const _0x12c733=this['_getVidAttributeName'](_0x34a91c),_0xe12ad8=_0x34a91c['item'][_0x282a('0x3f')](_0x12c733);if(_0x34b4c0[_0x282a('0xf2')](_0xe12ad8)){const _0x4bd329=_0x34b4c0[_0x282a('0x4f')](_0xe12ad8);_0x28df6c['has'](_0xe12ad8)||_0x28df6c['set'](_0xe12ad8,{..._0x4bd329}),_0x443be1[_0x282a('0x6e')](_0xe12ad8,{..._0x4bd329});}}}for(const _0x50db16 of _0x28df6c[_0x282a('0xa6')]())_0x50db16>=this['_startingRevisionId']&&_0x28df6c[_0x282a('0x8e')](_0x50db16);const _0x2fe216=new Map();for(const _0x506ffc of _0x5438d2){let _0x57a49a=_0x21201c['insertions'][_0x506ffc];for(const _0x48ecfd of _0x57a49a)if(_0x48ecfd[_0x282a('0xb0')]['is']('element',_0x282a('0xb5'))){const _0x251d0d=this[_0x282a('0xb2')](_0x48ecfd),_0x5c3f1c=_0x48ecfd[_0x282a('0xb0')][_0x282a('0x3f')](_0x251d0d);if(_0x443be1['has'](_0x5c3f1c)){const _0x575cdb=_0x48ecfd[_0x282a('0xb0')][_0x282a('0x1f')][_0x282a('0x1f')][_0x282a('0x3f')](_0x282a('0xd3')),_0x176e31=_0x2fe216['get'](_0x575cdb)||new Set();_0x176e31[_0x282a('0x81')](_0x443be1['get'](_0x5c3f1c)['userId']),_0x2fe216[_0x282a('0x6e')](_0x575cdb,_0x176e31);}}_0x57a49a=_0x21201c[_0x282a('0xfb')][_0x506ffc];for(const _0xff7ff5 of _0x57a49a)if(_0xff7ff5[_0x282a('0xb0')]['is'](_0x282a('0xc4'),_0x282a('0xb5'))){const _0xdccd9f=this[_0x282a('0xb2')](_0xff7ff5),_0x2c32fa=_0xff7ff5[_0x282a('0xb0')][_0x282a('0x3f')](_0xdccd9f);if(_0x28df6c[_0x282a('0xf2')](_0x2c32fa)){const _0xc0e286=_0xff7ff5['item'][_0x282a('0x1f')][_0x282a('0x1f')]['getAttribute']('vid_start'),_0x39b7bd=_0x2fe216[_0x282a('0x4f')](_0xc0e286)||new Set();_0x39b7bd[_0x282a('0x81')](_0x28df6c[_0x282a('0x4f')](_0x2c32fa)[_0x282a('0xab')]),_0x2fe216[_0x282a('0x6e')](_0xc0e286,_0x39b7bd);}}for(const _0x5128f5 of _0x2fe216[_0x282a('0xa6')]())(_0x443be1[_0x282a('0xf2')](_0x5128f5)||_0x28df6c[_0x282a('0xf2')](_0x5128f5))&&_0x2fe216[_0x282a('0x8e')](_0x5128f5);}for(const _0x2c2c6d of _0x5438d2){const _0xb11616=_0x21201c['insertions'][_0x2c2c6d];let _0xe58957=null,_0x22c519=null;for(const _0x2351e9 of _0xb11616){const _0x515025=this[_0x282a('0xb2')](_0x2351e9),_0x253e8a=_0x2351e9['item'][_0x282a('0x3f')](_0x515025),_0x323e4c=_0x2fe216['get'](_0x253e8a);_0x323e4c&&_0x282a('0xf1')==_0x2351e9[_0x282a('0x25')]&&(_0xe58957=Array['from'](_0x323e4c)[0x0],_0x22c519=_0x2351e9[_0x282a('0xb0')][_0x282a('0x3f')](_0x282a('0xe8'))),_0xe58957&&(_0x28df6c[_0x282a('0x6e')](_0x253e8a,{'userId':_0xe58957}),_0x443be1[_0x282a('0x6e')](_0x253e8a,{'userId':_0xe58957})),_0x253e8a==_0x22c519&&(_0xe58957=null,_0x22c519=null);}}const _0xb45148={},_0x3605a4=new Set();for(const _0x14fea5 of _0x5438d2){const _0x141396=_0xf579ae[_0x282a('0xfb')][_0x14fea5],_0x187c7c=_0xf579ae[_0x282a('0xb4')][_0x14fea5];for(const {userId:_0x27fa9d}of this[_0x282a('0xca')][_0x282a('0xb9')]())null!==_0x27fa9d&&_0x3605a4['add'](_0x27fa9d);for(const {userId:_0x4754a2}of this[_0x282a('0x85')]['values']())null!==_0x4754a2&&_0x3605a4[_0x282a('0x81')](_0x4754a2);this[_0x282a('0x1e')](_0x187c7c,_0x21201c[_0x282a('0xb4')][_0x14fea5],_0x443be1,'insertion',_0x3605a4),this[_0x282a('0x1e')](_0x141396,_0x21201c[_0x282a('0xfb')][_0x14fea5],_0x28df6c,'deletion',_0x3605a4),_0xb45148[_0x14fea5]={'insertions':this['_prepareViewToSave'](_0x187c7c),'deletions':this[_0x282a('0x43')](_0x141396),'attachChange':this[_0x282a('0x85')][_0x282a('0x4f')](_0x14fea5)||null,'attributesBefore':_0x38d3ff(this['_baseRootsAttributes'][_0x282a('0x4f')](_0x14fea5))||{},'attributesAfter':_0x38d3ff(this['_diffRootsAttributes'][_0x282a('0x4f')](_0x14fea5))};}return{'diffData':_0xb45148,'authorsIds':Array[_0x282a('0xcb')](_0x3605a4)};}[_0x282a('0x10')](_0xf7b9ab){for(const [,_0x3a6278]of _0xf7b9ab[_0x282a('0xb7')]){const _0x43b32b=_0x3a6278[_0x282a('0x12')][_0x282a('0x6a')]()[_0x282a('0x39')](_0x152bff=>_0x282a('0xb5')==_0x152bff[_0x282a('0xfe')]);for(const _0x355dbb of _0x43b32b)0x1==_0x355dbb[_0x282a('0x37')]&&_0x355dbb[_0x282a('0xc5')](0x0)['is']('element',_0x282a('0xa0'))&&_0x355dbb[_0x282a('0xc5')](0x0)[_0x282a('0x74')]('keepParagraph',!0x0);}}[_0x282a('0x43')](_0x588b05){this[_0x282a('0x10')](_0x588b05);const _0xaa35d8=this[_0x282a('0xe7')][_0x282a('0x57')][_0x282a('0xe5')](_0x588b05,{}),_0x257b76=Array[_0x282a('0xcb')](_0xaa35d8[_0x282a('0xda')]())[_0x282a('0x0')](_0x185c36=>this[_0x282a('0xe0')](_0x185c36));return JSON[_0x282a('0xbf')](_0x257b76);}['_getViewJson'](_0x4254d1){if(_0x4254d1['is'](_0x282a('0x2a')))return _0x4254d1[_0x282a('0x57')];{const _0x40757e=_0x4254d1;return{'type':Object['keys'](B)['find'](_0x45f74d=>_0x4254d1 instanceof B[_0x45f74d]),'name':_0x40757e[_0x282a('0xfe')],'attributes':Array[_0x282a('0xcb')](_0x40757e[_0x282a('0xbe')]()),'children':Array[_0x282a('0xcb')](_0x40757e['getChildren']())[_0x282a('0x0')](_0x15a7c7=>this[_0x282a('0xe0')](_0x15a7c7))};}}[_0x282a('0x1e')](_0x440a90,_0x164b32,_0x4c474e,_0x5d52d7,_0x810521){let _0x3f5a27=null,_0x4c9a5f=null,_0x581f61=0x0;const _0x142224=this[_0x282a('0xe7')][_0x282a('0x4')];for(let _0x42866d=0x0;_0x42866d<_0x164b32[_0x282a('0xdc')];_0x42866d++){const _0x301ffe=this['_getVidAttributeName'](_0x164b32[_0x42866d]),_0xa9a766=_0x164b32[_0x42866d]['item'][_0x282a('0x3f')](_0x301ffe),_0x3b2bd6=_0x4c474e[_0x282a('0x4f')](_0xa9a766),_0x9f6c27=_0x42866d==_0x164b32['length']-0x1;(!_0x3f5a27&&_0x3b2bd6&&(_0x3f5a27=_0x3b2bd6,_0x4c9a5f=_0x164b32[_0x42866d]),_0x3f5a27&&(!_0x3b2bd6||_0x3b2bd6[_0x282a('0xab')]!=_0x3f5a27['userId']))&&(_0x1ad05b(_0x3b2bd6,L(_0x4c9a5f,_0x440a90,_0x142224),L(_0x164b32[_0x42866d],_0x440a90,_0x142224)),_0x3f5a27=_0x3b2bd6||null,_0x4c9a5f=_0x3b2bd6?_0x164b32[_0x42866d]:null),_0x3f5a27&&_0x9f6c27&&_0x1ad05b(_0x3b2bd6,L(_0x4c9a5f,_0x440a90,_0x142224),W(_0x164b32[_0x42866d],_0x440a90,_0x142224));}function _0x1ad05b(_0x3de139,_0x48258a,_0x25c9ed){const _0x10f5c8=_0x3f5a27['userId'],_0x13cb6f=_0x282a('0x8d')+_0x5d52d7+':'+_0x10f5c8+':'+_0x581f61++,_0x4204e8=_0x142224['createRange'](_0x48258a,_0x25c9ed);_0x440a90[_0x282a('0xb7')][_0x282a('0x6e')](_0x13cb6f,_0x4204e8),null!==_0x10f5c8&&_0x810521[_0x282a('0x81')](_0x10f5c8);}}[_0x282a('0xb2')](_0x235793){switch(_0x235793['type']){case'elementStart':return _0x282a('0xd3');case _0x282a('0x62'):return _0x282a('0xe8');default:return _0x282a('0x30');}}['_fixOperation'](_0x237664,_0xec5344){_0x237664[_0x282a('0x77')]=null;for(const _0x40eded in _0x237664){const _0x5e5dbd=_0x237664[_0x40eded];if(_0x5e5dbd instanceof _0x4b482c){const _0x19fc24=_0xec5344[_0x282a('0x4f')](_0x5e5dbd['root']['rootName']);_0x237664[_0x40eded]=this[_0x282a('0x14')](_0x5e5dbd,_0x19fc24);}if(_0x5e5dbd instanceof _0x59cef2){const _0x276f27=_0xec5344['get'](_0x5e5dbd[_0x282a('0x5f')][_0x282a('0xf')]);_0x237664[_0x40eded]=this[_0x282a('0xd9')](_0x5e5dbd,_0x276f27);}_0x282a('0x5f')===_0x40eded&&(_0x237664[_0x282a('0x5f')]=_0xec5344[_0x282a('0x4f')](_0x237664[_0x282a('0x5f')][_0x282a('0xf')]));}}['_fixRange'](_0x154296,_0x249a0d){return this[_0x282a('0xe7')][_0x282a('0x4')][_0x282a('0x2e')](this[_0x282a('0x14')](_0x154296[_0x282a('0x12')],_0x249a0d),this[_0x282a('0x14')](_0x154296['end'],_0x249a0d));}[_0x282a('0x14')](_0x5b6e6b,_0x42da4e){return this[_0x282a('0xe7')][_0x282a('0x4')]['createPositionFromPath'](_0x42da4e,_0x5b6e6b['path'],_0x5b6e6b[_0x282a('0xad')]);}[_0x282a('0xa9')](_0x29549f){const _0x2e3a4c=this[_0x282a('0x28')][_0x282a('0x4f')](_0x29549f[_0x282a('0x20')][_0x282a('0x5f')][_0x282a('0xf')]),_0x1c8a8e=this['_fixPosition'](_0x29549f['position'],_0x2e3a4c),_0x57784f=null===_0x29549f[_0x282a('0xcd')]?null:_0x29549f[_0x282a('0xcd')]||this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')](_0x282a('0xa4'))['me']['id'],_0x16b68e=_0x1c8a8e[_0x282a('0x1f')],_0x333db8=this['_revisionId'],_0x11848e=[];for(const _0x11a428 of _0x29549f[_0x282a('0x4b')])if(_0x11a428['is']('element'))_0x11848e[_0x282a('0x84')](this['_makeIdsRoot'](_0x11a428));else for(let _0x388f9e=0x0;_0x388f9e<_0x11a428[_0x282a('0x73')];_0x388f9e++)_0x11848e[_0x282a('0x84')](new _0x3ef850(_0x282a('0x2a'),{'vid':this[_0x282a('0xeb')]++}));const _0x2f5525=this[_0x282a('0xeb')];for(let _0x22d323=_0x333db8;_0x22d323<_0x2f5525;_0x22d323++)this[_0x282a('0xc0')]['set'](_0x22d323,{'userId':_0x57784f});_0x16b68e['_insertChild'](_0x1c8a8e[_0x282a('0x58')],_0x11848e);}['_handleMoveOperation'](_0x27f5b8){(_0x27f5b8=this['_cloneOperation'](_0x27f5b8,this['_idsRoots']))['_execute']();const _0x9de2b6=null===_0x27f5b8['_authorId']?null:_0x27f5b8[_0x282a('0xcd')]||this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')](_0x282a('0xa4'))['me']['id'],_0x27b47f=_0x27f5b8['getMovedRangeStart'](),_0x13354f=_0x27b47f[_0x282a('0x1f')],_0x20d61e=_0x27b47f[_0x282a('0x58')];!function _0xed7593(_0xd00cad,_0x5d9bea,_0x3b2db6,_0x5418b2){for(let _0x266ff0=_0x3b2db6;_0x266ff0<_0x5418b2;_0x266ff0++){const _0x125936=_0x5d9bea[_0x282a('0xc5')](_0x266ff0);_0x125936['is'](_0x282a('0xc4'),_0x282a('0x2a'))?_0xd00cad['set'](_0x125936[_0x282a('0x3f')](_0x282a('0x30')),{'userId':_0x9de2b6}):(_0xd00cad['set'](_0x125936[_0x282a('0x3f')]('vid_start'),{'userId':_0x9de2b6}),_0xed7593(_0xd00cad,_0x125936,0x0,_0x125936[_0x282a('0x37')]),_0xd00cad[_0x282a('0x6e')](_0x125936[_0x282a('0x3f')](_0x282a('0xe8')),{'userId':_0x9de2b6}));}}(this['_touched'],_0x13354f,_0x20d61e,_0x20d61e+_0x27f5b8['howMany']);}[_0x282a('0xd')](_0xdeec8b){const _0x24fc75=null===(_0xdeec8b=this['_cloneOperation'](_0xdeec8b,this[_0x282a('0x28')]))[_0x282a('0xcd')]?null:_0xdeec8b[_0x282a('0xcd')]||this[_0x282a('0xe7')]['plugins'][_0x282a('0x4f')](_0x282a('0xa4'))['me']['id'],_0x38a40e=_0xdeec8b[_0x282a('0x51')][_0x282a('0x1f')],_0x1b5b81=_0xdeec8b[_0x282a('0xee')][_0x282a('0x1f')],_0x436af1=_0x38a40e[_0x282a('0x3f')]('vid_end'),_0x18aec7=_0x1b5b81[_0x282a('0x3f')](_0x282a('0xd3'));_0x38a40e['_setAttribute'](_0x282a('0xe8'),_0x1b5b81['getAttribute'](_0x282a('0xe8'))),_0x1b5b81['_setAttribute'](_0x282a('0xe8'),_0x436af1),this[_0x282a('0xc0')][_0x282a('0x6e')](_0x18aec7,{'userId':_0x24fc75}),this[_0x282a('0xc0')][_0x282a('0x6e')](_0x436af1,{'userId':_0x24fc75}),_0xdeec8b[_0x282a('0x99')]();}[_0x282a('0xd2')](_0x581065){const _0x4d77f4=null===(_0x581065=this['_cloneOperation'](_0x581065,this[_0x282a('0x28')]))[_0x282a('0xcd')]?null:_0x581065['_authorId']||this[_0x282a('0xe7')][_0x282a('0x7')]['get'](_0x282a('0xa4'))['me']['id'],_0xed2777=_0x581065['graveyardPosition'],_0x2d1637=_0x581065[_0x282a('0x6')][_0x282a('0x1f')];_0x581065[_0x282a('0x99')]();const _0x59ae86=_0x2d1637[_0x282a('0x3f')](_0x282a('0xe8')),_0x3bb4b3=_0x581065[_0x282a('0xb')][_0x282a('0x5a')];if(_0xed2777){const _0x41cfbe=_0x3bb4b3[_0x282a('0x3f')](_0x282a('0xe8')),_0x3d5b79=_0x2d1637[_0x282a('0x3f')](_0x282a('0xe8'));_0x2d1637[_0x282a('0x74')](_0x282a('0xe8'),_0x41cfbe),_0x3bb4b3[_0x282a('0x74')](_0x282a('0xe8'),_0x3d5b79),this[_0x282a('0xc0')]['set'](_0x2d1637['getAttribute']('vid_end'),{'userId':_0x4d77f4}),this[_0x282a('0xc0')]['set'](_0x3bb4b3[_0x282a('0x3f')](_0x282a('0xd3')),{'userId':_0x4d77f4});}else{const _0x4c2105=this[_0x282a('0xeb')]++,_0x29e787=this['_revisionId']++;_0x2d1637['_setAttribute'](_0x282a('0xe8'),_0x4c2105),_0x3bb4b3[_0x282a('0x74')](_0x282a('0xd3'),_0x29e787),_0x3bb4b3['_setAttribute']('vid_end',_0x59ae86),this[_0x282a('0xc0')][_0x282a('0x6e')](_0x4c2105,{'userId':_0x4d77f4}),this['_touched']['set'](_0x29e787,{'userId':_0x4d77f4});}}[_0x282a('0x1a')](_0xc8a1df){if(!_0xc8a1df[_0x282a('0x63')])return;const _0x34e228=(_0xc8a1df=this[_0x282a('0x36')](_0xc8a1df,this[_0x282a('0x9d')]))['oldRange']?_0xc8a1df['oldRange']['root']:null,_0x136f1e=_0xc8a1df[_0x282a('0x34')]?_0xc8a1df[_0x282a('0x34')][_0x282a('0x5f')]:null;_0x34e228&&this[_0x282a('0x4a')]['delete'](_0xc8a1df[_0x282a('0xfe')]),_0x136f1e&&this[_0x282a('0x4a')][_0x282a('0x6e')](_0xc8a1df[_0x282a('0xfe')],_0xc8a1df[_0x282a('0x34')][_0x282a('0x5d')]());const _0x27159e=null===_0xc8a1df[_0x282a('0xcd')]?null:_0xc8a1df[_0x282a('0xcd')]||this[_0x282a('0xe7')][_0x282a('0x7')]['get'](_0x282a('0xa4'))['me']['id'],_0xeffe7a=_0xc8a1df[_0x282a('0xfe')];if(!this['_touchedMarkers'][_0x282a('0xf2')](_0xeffe7a))return void this[_0x282a('0xca')][_0x282a('0x6e')](_0xeffe7a,{'range':_0xc8a1df['oldRange'],'userId':_0x27159e});const _0x5283d0=this[_0x282a('0xca')]['get'](_0xeffe7a),_0x9e466a=_0x5283d0[_0x282a('0x7d')],_0x2ca068=_0xc8a1df[_0x282a('0x34')];null==_0x9e466a&&null==_0x2ca068||_0x9e466a&&_0x2ca068&&_0x9e466a[_0x282a('0xcc')](_0x2ca068)?this['_touchedMarkers']['delete'](_0xc8a1df[_0x282a('0xfe')]):_0x5283d0[_0x282a('0xab')]=_0x27159e;}['_handleRootOperation'](_0x5f1439,_0x5722b0){this[_0x282a('0x9d')]['has'](_0x5f1439['rootName'])?this[_0x282a('0x9d')]['get'](_0x5f1439[_0x282a('0xf')])[_0x282a('0xf9')]=_0x5f1439['isAdd']:(this[_0x282a('0x9d')][_0x282a('0x6e')](_0x5f1439['rootName'],G(_0x5f1439[_0x282a('0xf')],!0x0)),this[_0x282a('0x5e')][_0x282a('0x6e')](_0x5f1439['rootName'],{}),_0x5722b0&&this['_idsRoots']['set'](_0x5f1439['rootName'],G(_0x5f1439[_0x282a('0xf')],!0x0)));const _0x2c891b=null===_0x5f1439[_0x282a('0xcd')]?null:_0x5f1439[_0x282a('0xcd')]||this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')]('Users')['me']['id'],_0x114150=this[_0x282a('0x85')][_0x282a('0x4f')](_0x5f1439[_0x282a('0xf')]);_0x114150&&_0x114150[_0x282a('0xab')]===_0x2c891b?this[_0x282a('0x85')][_0x282a('0x8e')](_0x5f1439[_0x282a('0xf')]):this[_0x282a('0x85')][_0x282a('0x6e')](_0x5f1439['rootName'],{'userId':_0x2c891b,'isAttached':_0x5f1439[_0x282a('0x94')]});}[_0x282a('0x18')](_0x2630bc){const _0x18574f=this[_0x282a('0x5e')]['get'](_0x2630bc[_0x282a('0x5f')]['rootName']);null===_0x2630bc[_0x282a('0xde')]?delete _0x18574f[_0x2630bc['key']]:_0x18574f[_0x2630bc[_0x282a('0xfd')]]=_0x2630bc[_0x282a('0xde')];}}function q(_0x4dacb2){const _0x22b413=G(_0x4dacb2[_0x282a('0xf')],_0x4dacb2[_0x282a('0xcf')]());for(const _0x502c35 of _0x4dacb2[_0x282a('0xda')]()){const _0x2ee7fa=_0x502c35['_clone'](!0x0);_0x22b413['_appendChild'](_0x2ee7fa);}return _0x22b413;}function G(_0x3f20fc,_0x540cc7=!0x0){const _0x53bf36=new _0x478586();return _0x53bf36['rootName']=_0x3f20fc,_0x53bf36[_0x282a('0xf9')]=_0x540cc7,_0x53bf36[_0x282a('0xcf')]=()=>_0x53bf36[_0x282a('0xf9')],_0x53bf36;}function L(_0x2f93dd,_0x272adb,_0xf060e1){const _0x278fb4=_0x282a('0x62')==_0x2f93dd['type']?_0xf060e1[_0x282a('0x45')](_0x2f93dd[_0x282a('0xb0')],_0x282a('0x1d')):_0xf060e1[_0x282a('0x9a')](_0x2f93dd[_0x282a('0xb0')]);return _0xf060e1[_0x282a('0x40')](_0x272adb,_0x278fb4[_0x282a('0x11')],_0x278fb4[_0x282a('0xad')]);}function W(_0x392bc8,_0x1208f0,_0x4a064a){const _0x3e45b7=_0x282a('0xf1')==_0x392bc8[_0x282a('0x25')]?_0x4a064a[_0x282a('0x45')](_0x392bc8[_0x282a('0xb0')],0x0):_0x4a064a[_0x282a('0xea')](_0x392bc8['item']);return _0x4a064a['createPositionFromPath'](_0x1208f0,_0x3e45b7[_0x282a('0x11')],_0x3e45b7[_0x282a('0xad')]);}