@ckeditor/ckeditor5-revision-history 40.0.0 → 40.1.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 (65) hide show
  1. package/LICENSE.md +3 -3
  2. package/build/revision-history.js +1 -1
  3. package/package.json +6 -6
  4. package/src/augmentation.d.ts +29 -29
  5. package/src/changeitem.d.ts +58 -58
  6. package/src/changeitem.js +1 -1
  7. package/src/editor/revisionviewereditor.d.ts +27 -27
  8. package/src/editor/revisionviewereditor.js +1 -1
  9. package/src/editor/revisionviewereditorui.d.ts +28 -28
  10. package/src/editor/revisionviewereditorui.js +1 -1
  11. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  12. package/src/editor/revisionviewereditoruiview.js +1 -1
  13. package/src/index.d.ts +15 -15
  14. package/src/revision.d.ts +153 -153
  15. package/src/revision.js +1 -1
  16. package/src/revisiondiff.d.ts +24 -24
  17. package/src/revisiondiff.js +1 -1
  18. package/src/revisionhistory.d.ts +99 -99
  19. package/src/revisionhistory.js +1 -1
  20. package/src/revisionhistoryadapter.d.ts +64 -64
  21. package/src/revisionhistoryconfig.d.ts +60 -60
  22. package/src/revisionsrepository.d.ts +52 -52
  23. package/src/revisionsrepository.js +1 -1
  24. package/src/revisiontracker.d.ts +81 -81
  25. package/src/revisiontracker.js +1 -1
  26. package/src/revisionviewer.d.ts +25 -25
  27. package/src/revisionviewer.js +1 -1
  28. package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
  29. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  30. package/src/ui/revision/revisionauthorview.d.ts +5 -5
  31. package/src/ui/revision/revisionauthorview.js +1 -1
  32. package/src/ui/revision/revisionnameview.d.ts +5 -5
  33. package/src/ui/revision/revisionnameview.js +1 -1
  34. package/src/ui/revision/revisionview.d.ts +95 -95
  35. package/src/ui/revision/revisionview.js +1 -1
  36. package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
  37. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  38. package/src/ui/revision/subrevisionview.d.ts +34 -34
  39. package/src/ui/revision/subrevisionview.js +1 -1
  40. package/src/ui/revision/utils.d.ts +5 -5
  41. package/src/ui/revision/utils.js +1 -1
  42. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
  43. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  44. package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
  45. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  46. package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
  47. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  48. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
  49. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  50. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
  51. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  52. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
  53. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  54. package/src/ui/revisionssidebar/utils.d.ts +9 -9
  55. package/src/ui/revisionssidebar/utils.js +1 -1
  56. package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
  57. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  58. package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
  59. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  60. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
  61. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  62. package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
  63. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  64. package/src/utils/common-translations.d.ts +11 -11
  65. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x979c=['config','getRevisionDocumentData','_clone','_removeMetaData','elementStart','_createCurrentRevision','reverse','Users','_getState','baseVersion','get','_handleMergeOperation','range','_setAttribute','addRevision','afterInit','_savedMetaData','processor','text','addRoot','elementEnd','adapter','documentFragment','length','keys','start','sendBufferedUpdates','_createInitialRevision','_fixRange','set','root','vid','getRevisions','getIndex','newRange','toData','editor-initial-data-replaced-with-revision-data','_handleMarkerOperation','default','creator','isReady','markers','then','RevisionsRepository','getOperation','createdAt','_removeRevisionMarkers','_touchedMarkers','version','_revisionDataBuilder','_handleRootOperation','collaboration.channelId','hasContent','revision:','currentRevision','_getFromVersion','toModel','_baseIdsRoots','insertion','fromVersion','targetPosition','clone','revision-start','source','_handleRootAttributeOperation','_createFromRanges','rootsAttributes','insertions','_lastFrom','authorsIds','parent','detachRoot','locale','splitPosition','newValue','deletions','updateRevisions','ready','createPositionAfter','getChildren','_bufferedUpdates','values','_markers','upcast','init','addRevisionData','_calculateMetaData','PENDING_ACTION_REVISION_HISTORY','attributesBefore','name','_transformMarkers','getUser','getRootNames','_operations','getRange','define','_markChanges','_saveMetaData','slice','_insertChild','includes','map','getRoot','stickiness','revisionHistory.resumeUnsavedRevision','createPositionAt','_idsRoots','_handleMoveOperation','offset','_getVidAttributeName','revision','_removePendingAction','_baseRoots','children','conversion','data-revision-','initialData','dataDowncast','key','initial','isEqual','isAttached','creatorId','nodes','userId','getCurrentRevisionId','_startingRevisionId','push','has','_makeRevision','_handleOperation','previousPosition','loadState','nodeAfter','remove','_execute','_touchedRoots','rootName','element','parse','_isAttached','_makeIdsRoot','sort','delete','_generateTape','createPositionBefore','split','saveRevision','attributesAfter','_applyOperations','getNodeByPath','model','end','_startingVersion','_isPendingUpdate','createRange','$text','for','add','_getPreviousFrom','view','editor','_loadRevisionData','_reset','resolve','toVersion','_initialRevisionId','merge','RealTimeCollaborationClient','oldRange','_authorId','type','createRevision','document','_makeModelFromViewString','getWalker','_continueCurrentRevision','attachChange','keepParagraph','authors','position','tableCell','pluginName','_findInsertionIndex','buildRevisionData','childCount','_fixPosition','editing','_diffRootsAttributes','_prepareViewToSave','offsetSize','RevisionTracker','plugins','dataToMarker','marked','_cloneOperation','find','getTransformedByOperation','data','diffData','size','string','from','_revisionId','changeRootAttribute','createPositionFromPath','reInit','getChild','_diffRoots','_touched','howMany','path','_handleSplitOperation','clear','getAncestors','_source','fromEntries','some','_fixOperation','_getBaseVids','_handleInsertOperation','requires','item','_appendChild','_loadState','shift','markerToData','Empty\x20document','getAttributes','getMovedRangeStart','insert','filter','isAdd','trim','_replaceEditorDataWithRevisionData','getRevisionRootsAttributes','bind','vid_end','$graveyard','deletion','getData','_getViewJson','getLatestVersion','useFillerType','_loadedStateData','repository','_processRootBeforeSave','_update','setRevisionData','vid_start','_addPendingAction','NEGATIVE_INFINITY','_isInit','startsWith','removeRootAttribute','_baseRootsAttributes','forEach','attributes','_lastTo','sourcePosition','move','marker','PendingActions','_bufferUpdate','getRevision','_copyMarkers','_pendingAction','history','getAttribute'];(function(_0x4d0c6e,_0x979c58){const _0x152e6c=function(_0x16a29e){while(--_0x16a29e){_0x4d0c6e['push'](_0x4d0c6e['shift']());}};_0x152e6c(++_0x979c58);}(_0x979c,0x1a7));const _0x152e=function(_0x4d0c6e,_0x979c58){_0x4d0c6e=_0x4d0c6e-0x0;let _0x152e6c=_0x979c[_0x4d0c6e];return _0x152e6c;};import{Users as _0x15925b}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x56e07c,PendingActions as _0x51462a}from'ckeditor5/src/core';import{logWarning as _0x4fa037,uid as _0x545004}from'ckeditor5/src/utils';import{Position as _0x144535,Range as _0x350b1c,Element as _0x45dbcc,DocumentFragment as _0x287911,ViewText as _0x41fa94,ViewElement as _0x32f564,ViewContainerElement as _0x19f9fd,ViewAttributeElement as _0x452777,ViewEmptyElement as _0x35285b,ViewRawElement as _0x500888,ViewUIElement as _0x456fce,ViewDocumentFragment as _0x3a9bee}from'ckeditor5/src/engine';import _0x509fac from'./revisionsrepository';import{getTranslation as _0x8d4ba2}from'./utils/common-translations';import{cloneDeep as _0x5cb0d4,isEqual as _0x2a7c77}from'lodash-es';const B={'c':_0x19f9fd,'a':_0x452777,'e':_0x35285b,'r':_0x500888,'u':_0x456fce};export default class l extends _0x56e07c{static get[_0x152e('0x1c')](){return _0x152e('0x25');}static get[_0x152e('0x43')](){return[_0x15925b,_0x509fac,_0x51462a];}constructor(_0x283565){super(_0x283565),this[_0x152e('0x88')]=null,this['currentRevision']=null,this[_0x152e('0xa4')]=new H(this[_0x152e('0x7')]),this[_0x152e('0xc')]=this[_0x152e('0x7')]['config'][_0x152e('0x7d')](_0x152e('0xa6'))||_0x152e('0xea'),this[_0x152e('0xc3')]=new Map(),this[_0x152e('0x5a')]=null;const _0x38b8a6=_0x545004();this[_0x152e('0x3d')]={'history':this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')]['history'],'getLatestVersion':()=>Promise[_0x152e('0xa')](this[_0x152e('0x7')][_0x152e('0x10a')]['document'][_0x152e('0xa3')]),'getCurrentRevisionId':()=>_0x38b8a6},this['set'](_0x152e('0x9b'),!0x1),this[_0x152e('0x90')]('isEnabled',!0x0),this[_0x152e('0x90')](_0x152e('0x0'),!0x1),this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0xd2')](_0x152e('0xdb'),!0x0),this['editor']['conversion']['for'](_0x152e('0xc6'))[_0x152e('0x27')]({'view':_0x152e('0xe1')});}[_0x152e('0xc7')](){this['repository']=this[_0x152e('0x7')]['plugins'][_0x152e('0x7d')](_0x152e('0x9e')),this['_setConversion'](),this['editor']['data']['on'](_0x152e('0xc0'),()=>{const _0x2b79b9=this[_0x152e('0x5b')][_0x152e('0x6e')](0x0),_0x428626=_0x2b79b9&&null===_0x2b79b9[_0x152e('0x9a')]?_0x2b79b9:null;if(this['_continueCurrentRevision']=!!_0x428626&&this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0x7d')](_0x152e('0xdb')),this[_0x152e('0x7')]['plugins'][_0x152e('0xf3')](_0x152e('0xe'))){const _0x1381fe=this[_0x152e('0x3d')][_0x152e('0xf0')](),_0x2e5f00=this[_0x152e('0x5b')][_0x152e('0x6e')](_0x1381fe);if(_0x2e5f00)this['_startingVersion']=_0x2e5f00[_0x152e('0xae')],this['_continueCurrentRevision']=!0x1;else{const _0x1f9221=this[_0x152e('0x3d')][_0x152e('0x71')][_0x152e('0xd0')]['find'](_0x552c86=>!_0x552c86[_0x152e('0x62')]),_0x4efe05=_0x1f9221?_0x1f9221[_0x152e('0x7c')]:this[_0x152e('0x3d')][_0x152e('0x71')][_0x152e('0xa3')];_0x2b79b9?(_0x2b79b9['toVersion']<_0x4efe05&&_0x2b79b9[_0x152e('0x5d')]({'toVersion':_0x4efe05}),this['_continueCurrentRevision']?(this['_source'][_0x152e('0xf0')]=()=>_0x428626['id'],this[_0x152e('0x10c')]=_0x428626[_0x152e('0xae')]):(this[_0x152e('0x10c')]=_0x2b79b9[_0x152e('0xb')],this[_0x152e('0x16')]=!0x1)):(this[_0x152e('0x10c')]=_0x4efe05,this[_0x152e('0x16')]=!0x1);}}else _0x428626&&(this[_0x152e('0x7')]['model'][_0x152e('0x13')][_0x152e('0x71')][_0x152e('0xa3')]=Math['max'](_0x428626['toVersion'],this['editor'][_0x152e('0x10a')][_0x152e('0x13')]['history'][_0x152e('0xa3')]),_0x428626[_0x152e('0xae')]===_0x428626[_0x152e('0xb')]?(0x0!==_0x428626[_0x152e('0xae')]&&(this[_0x152e('0x3d')]['getCurrentRevisionId']=()=>_0x428626['id']),this[_0x152e('0x16')]=!0x1):this[_0x152e('0x16')]&&(this['_source'][_0x152e('0xf0')]=()=>_0x428626['id'],this['_startingVersion']=_0x428626[_0x152e('0xae')])),this[_0x152e('0x16')]||(this['_startingVersion']=this['editor']['model'][_0x152e('0x13')][_0x152e('0xa3')]);this[_0x152e('0xa4')][_0x152e('0xc7')](this[_0x152e('0x3d')]['history']),this['_createInitialRevision'](this[_0x152e('0x10c')]),this[_0x152e('0x78')](this[_0x152e('0x10c')]),this[_0x152e('0x88')]&&this['sendBufferedUpdates']();}),this[_0x152e('0x52')](_0x152e('0x9b'))['to'](this,_0x152e('0x0'),_0x13cb2f=>!_0x13cb2f);}async[_0x152e('0x82')](){if(this[_0x152e('0x5b')][_0x152e('0x8a')]>0x0){const _0x31e3b4=this[_0x152e('0x5b')][_0x152e('0x6e')](0x0),_0x4850d6=await this['getRevisionDocumentData'](_0x31e3b4),_0x1428c7=await this['getRevisionRootsAttributes'](_0x31e3b4);this[_0x152e('0x50')](_0x4850d6,_0x1428c7);}}['setSource'](_0x35f12e){this[_0x152e('0x3d')]=_0x35f12e;}async['update'](){const _0x2d2841=await this[_0x152e('0x3d')][_0x152e('0x58')]();if(_0x2d2841>this[_0x152e('0xa9')][_0x152e('0xb')]){await this[_0x152e('0x46')]();const _0x39558c=this[_0x152e('0x1e')]({'revision':this[_0x152e('0xa9')],'to':_0x2d2841});_0x39558c[_0x152e('0x19')]=_0x39558c[_0x152e('0xb8')][_0x152e('0xd8')](_0xcba1b8=>this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))[_0x152e('0xce')](_0xcba1b8)),this[_0x152e('0xa9')][_0x152e('0x5d')](_0x39558c);}}async[_0x152e('0x46')](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this[_0x152e('0xa9')]),this['_revisionDataBuilder'][_0x152e('0xf7')](this[_0x152e('0xa9')]),this[_0x152e('0x5a')]={'fromVersion':this[_0x152e('0xa9')][_0x152e('0xae')],'authors':this[_0x152e('0xa9')]['authors']['slice']()});}async[_0x152e('0x106')](_0x47cf48={},_0x52cd69=null){const _0x39468a=[];await this[_0x152e('0x46')](),this[_0x152e('0x16')]=!0x1,_0x52cd69>this['currentRevision'][_0x152e('0xb')]&&(_0x52cd69=null),null===_0x52cd69&&(_0x52cd69=await this['_source']['getLatestVersion']());const _0x860b25=this[_0x152e('0xaa')](_0x52cd69),_0xe1261b=this['buildRevisionData']({'from':_0x860b25,'to':_0x52cd69});if(this['currentRevision']['toVersion']<_0x52cd69){const _0x17b1dd=this[_0x152e('0x1e')]({'revision':this[_0x152e('0xa9')],'from':_0x52cd69,'to':_0x52cd69});_0x17b1dd['authors']=[],_0x17b1dd[_0x152e('0xb8')]=[],_0x17b1dd['id']=this[_0x152e('0xa9')]['id'],this[_0x152e('0xa9')][_0x152e('0x5d')](_0x17b1dd,!0x0),delete _0x17b1dd['authors'],_0x39468a[_0x152e('0xf2')](_0x17b1dd);}_0x47cf48[_0x152e('0xed')]=this['editor']['plugins'][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x47cf48['name']=_0x47cf48[_0x152e('0xcc')]||null,_0x47cf48['id']=_0x47cf48['id']||_0x545004(),_0x47cf48={..._0x47cf48,..._0xe1261b};const _0x5f1415=this[_0x152e('0xc8')](_0x47cf48);_0x39468a[_0x152e('0xf2')](_0x47cf48);const _0x23b074=this['repository'][_0x152e('0x94')](_0x5f1415);if(0x0!==_0x23b074){const _0x5e03a3=this[_0x152e('0x5b')]['getRevision'](_0x23b074-0x1);if(_0x5e03a3[_0x152e('0xae')]!==_0x52cd69){const _0x20e366=this[_0x152e('0xa4')][_0x152e('0x56')](_0x52cd69,_0x5e03a3[_0x152e('0xb')]),_0x55ec9f={'id':_0x5e03a3['id'],'diffData':_0x20e366['diffData'],'authorsIds':_0x20e366[_0x152e('0xb8')],'authors':_0x20e366[_0x152e('0xb8')][_0x152e('0xd8')](_0x19510f=>this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))[_0x152e('0xce')](_0x19510f)),'fromVersion':_0x52cd69};_0x5e03a3===this[_0x152e('0xa9')]&&(_0x55ec9f[_0x152e('0xa0')]=new Date(_0x47cf48['createdAt']['getTime']()+0xa)),_0x5e03a3[_0x152e('0x5d')](_0x55ec9f,!0x0),delete _0x55ec9f[_0x152e('0x19')],_0x39468a[_0x152e('0xf2')](_0x55ec9f);}}if(this[_0x152e('0x88')]){for(const _0x491ad2 of _0x39468a)this[_0x152e('0x6d')](_0x491ad2['id'],_0x491ad2,!0x0);this[_0x152e('0x8d')]();}return _0x5f1415;}[_0x152e('0xc8')](_0x21aae4){const _0x716065=this[_0x152e('0x5b')][_0x152e('0x12')](_0x21aae4);return this[_0x152e('0x88')]&&_0x716065['on'](_0x152e('0x5d'),(_0x245d54,_0x398fb0,_0x1088bb)=>{_0x1088bb||(this[_0x152e('0x6d')](_0x398fb0['id'],_0x398fb0,!0x0),this['sendBufferedUpdates']());}),this[_0x152e('0x5b')][_0x152e('0x81')](_0x716065,this['_findInsertionIndex'](_0x716065)),_0x716065;}async[_0x152e('0x74')](_0xee86f6){await this[_0x152e('0x8')](_0xee86f6);const _0x2f54e2={};for(const _0x1c1e2a in _0xee86f6[_0x152e('0x2d')]){if(_0xee86f6[_0x152e('0x2d')][_0x1c1e2a][_0x152e('0x17')]&&!_0xee86f6[_0x152e('0x2d')][_0x1c1e2a]['attachChange'][_0x152e('0xec')])continue;const _0xd35f27=this[_0x152e('0xa1')](JSON[_0x152e('0xfe')](_0xee86f6[_0x152e('0x2d')][_0x1c1e2a][_0x152e('0xb6')])),_0x1bd4b7=this[_0x152e('0x7')][_0x152e('0x21')]['view']['document'],_0x2b9f9e=new _0x3a9bee(_0x1bd4b7,_0xd35f27[_0x152e('0xd8')](_0x4127b9=>J(_0x4127b9,this[_0x152e('0x7')])));this[_0x152e('0x7')][_0x152e('0x2c')][_0x152e('0x84')][_0x152e('0x59')](_0x152e('0x28')),_0x2f54e2[_0x1c1e2a]=this[_0x152e('0x7')]['data']['processor'][_0x152e('0x96')](_0x2b9f9e),this['editor'][_0x152e('0x2c')]['processor'][_0x152e('0x59')](_0x152e('0x99'));}return _0x2f54e2;}async[_0x152e('0x51')](_0x473854){await this[_0x152e('0x8')](_0x473854);const _0x77776e={};for(const _0x45c5f9 in _0x473854[_0x152e('0x2d')])_0x473854[_0x152e('0x2d')][_0x45c5f9][_0x152e('0x17')]&&!_0x473854[_0x152e('0x2d')][_0x45c5f9][_0x152e('0x17')][_0x152e('0xec')]||(_0x77776e[_0x45c5f9]=_0x473854[_0x152e('0x2d')][_0x45c5f9][_0x152e('0x107')]||{});return _0x77776e;}[_0x152e('0x8d')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0x152e('0x0')])return;let _0x37bb3d=Array[_0x152e('0x30')](this[_0x152e('0xc3')]['values']());this[_0x152e('0xc3')][_0x152e('0x3b')]();for(let _0x1337b2=0x0;_0x1337b2<_0x37bb3d['length'];_0x1337b2++){const _0x6465d6=_0x37bb3d[_0x1337b2];let _0x31a443=!0x1;for(const _0xb66026 of Object['keys'](_0x6465d6))void 0x0===_0x6465d6[_0xb66026]?delete _0x6465d6[_0xb66026]:'id'!==_0xb66026&&(_0x31a443=!0x0);_0x31a443||(_0x37bb3d[_0x1337b2]=null);}if(_0x37bb3d=_0x37bb3d[_0x152e('0x4d')](_0x157a5f=>null!==_0x157a5f),!_0x37bb3d['length'])return;for(let _0x23fad3=0x0;_0x23fad3<_0x37bb3d[_0x152e('0x8a')];_0x23fad3++){const _0x58a182=_0x37bb3d[_0x23fad3];void 0x0!==_0x58a182['fromVersion']&&void 0x0===_0x58a182[_0x152e('0xb')]&&(_0x58a182['toVersion']=this[_0x152e('0x5b')][_0x152e('0x6e')](_0x58a182['id'])[_0x152e('0xb')]),void 0x0!==_0x58a182[_0x152e('0xb')]&&void 0x0===_0x58a182['fromVersion']&&(_0x58a182[_0x152e('0xae')]=this['repository']['getRevision'](_0x58a182['id'])[_0x152e('0xae')]);}const _0x2f4a8a=this[_0x152e('0x7')]['config'][_0x152e('0x7d')](_0x152e('0xa6'));this['_isPendingUpdate']=!0x0,this[_0x152e('0x60')](),this[_0x152e('0x88')][_0x152e('0xbf')](_0x37bb3d,_0x2f4a8a)['finally'](()=>{this[_0x152e('0x0')]=!0x1;})[_0x152e('0x9d')](_0x1cd7d8=>{if(_0x1cd7d8)for(const _0x4b79dc of _0x1cd7d8)this[_0x152e('0x5e')]({'id':_0x4b79dc['id'],'createdAt':_0x4b79dc['createdAt']});this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x39338b,_0x1a849b){let _0x3fcd00=this[_0x152e('0x7')]['config'][_0x152e('0x7d')](_0x152e('0xe7')),_0x567da2=this['editor'][_0x152e('0x73')][_0x152e('0x7d')]('rootsAttributes');if(void 0x0===_0x3fcd00){_0x3fcd00={};for(const _0x5d924f of this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')][_0x152e('0xcf')]())_0x3fcd00[_0x5d924f]='';}if(_0x152e('0x2f')==typeof _0x3fcd00&&(_0x3fcd00={'main':_0x3fcd00}),void 0x0===_0x567da2){_0x567da2={};for(const _0x963ffe of this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')][_0x152e('0xcf')]())_0x567da2[_0x963ffe]={};}let _0x3a9c5b=!0x1;const _0x5eaf43=Object[_0x152e('0x8b')](_0x3fcd00),_0x56b14f=Object['keys'](_0x39338b);for(const _0x1eb40c of _0x5eaf43){if(_0x3fcd00[_0x1eb40c]!==_0x39338b[_0x1eb40c]&&''!==_0x3fcd00[_0x1eb40c][_0x152e('0x4f')]()){_0x3a9c5b=!0x0;break;}if(!_0x2a7c77(_0x567da2[_0x1eb40c],_0x1a849b[_0x1eb40c])&&Object[_0x152e('0x8b')](_0x567da2[_0x1eb40c])['length']>0x0){_0x3a9c5b=!0x0;break;}}_0x3a9c5b||(_0x3a9c5b=_0x56b14f[_0x152e('0x3f')](_0x80f080=>!this['editor'][_0x152e('0x10a')]['document'][_0x152e('0xd9')](_0x80f080))),_0x3a9c5b&&_0x4fa037(_0x152e('0x97'),{'editorData':_0x3fcd00,'editorRootsAttributes':_0x567da2,'revisionData':_0x39338b,'revisionRootsAttributes':_0x1a849b}),this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0x90')](_0x152e('0xe7'),_0x39338b),this['editor'][_0x152e('0x73')][_0x152e('0x90')](_0x152e('0xb5'),_0x1a849b);}[_0x152e('0x60')](){if(!this[_0x152e('0x70')]){const _0x56efce=this['editor']['plugins'][_0x152e('0x7d')]('PendingActions');this['_pendingAction']=_0x56efce['add'](_0x8d4ba2(this[_0x152e('0x7')][_0x152e('0xbb')],_0x152e('0xca')));}}[_0x152e('0xe2')](){this['_pendingAction']&&(this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x6c'))[_0x152e('0xf9')](this[_0x152e('0x70')]),this[_0x152e('0x70')]=null);}[_0x152e('0x1d')](_0x3844b3){const _0x4c88fb=this[_0x152e('0x5b')][_0x152e('0x93')]();_0x4c88fb[_0x152e('0x79')]();let _0x2a7037=0x0;for(;_0x2a7037<_0x4c88fb['length'];){const _0x5508cf=_0x4c88fb[_0x2a7037];if(_0x5508cf===this[_0x152e('0xa9')]){_0x2a7037++;continue;}if(_0x5508cf['id']===this[_0x152e('0xc')])break;const _0x9d7393=_0x3844b3[_0x152e('0xb')]-_0x5508cf['toVersion']||_0x3844b3[_0x152e('0xae')]-_0x5508cf[_0x152e('0xae')];if(_0x9d7393>0x0)break;if(_0x9d7393<0x0)_0x2a7037++;else{if(!_0x3844b3[_0x152e('0x9a')]&&_0x5508cf['creator'])break;if(_0x5508cf['creator']||!_0x3844b3[_0x152e('0x9a')]){if(_0x3844b3['createdAt']>_0x5508cf[_0x152e('0xa0')])break;_0x2a7037++;}else _0x2a7037++;}}return _0x2a7037;}['setRevisionData'](_0x370580){const _0x1ef58d=this['repository'][_0x152e('0x6e')](_0x370580['id']);if(_0x370580['createdAt']&&(_0x370580[_0x152e('0xa0')]=new Date(_0x370580[_0x152e('0xa0')])),_0x370580['authorsIds']){const _0x2c7019=this['editor'][_0x152e('0x26')][_0x152e('0x7d')]('Users');_0x370580[_0x152e('0x19')]=_0x370580[_0x152e('0xb8')][_0x152e('0xd8')](_0xef0d1f=>_0x2c7019['getUser'](_0xef0d1f));}_0x1ef58d[_0x152e('0x5d')](_0x370580,!0x0);}[_0x152e('0x1e')]({revision:_0x1b17c2=null,from:_0x2195bc=null,to:_0x182cfd=null}){_0x2195bc=null!==_0x2195bc?_0x2195bc:_0x1b17c2[_0x152e('0xae')],_0x182cfd=null!==_0x182cfd?_0x182cfd:_0x1b17c2[_0x152e('0xb')];const _0x126aba=this[_0x152e('0xa4')][_0x152e('0x56')](_0x2195bc,_0x182cfd),_0x259cb2={'diffData':_0x126aba['diffData'],'authorsIds':_0x126aba[_0x152e('0xb8')],'fromVersion':_0x2195bc,'toVersion':_0x182cfd};if(!_0x1b17c2||_0x182cfd!==_0x1b17c2['toVersion']){const _0x5a828c=_0x182cfd-0x1,_0x5a729b=this[_0x152e('0x3d')][_0x152e('0x71')][_0x152e('0x9f')](_0x5a828c);_0x259cb2[_0x152e('0xa0')]=_0x5a729b&&_0x5a729b[_0x152e('0xa0')]||new Date();}if(this[_0x152e('0x5a')]&&_0x2195bc===this[_0x152e('0x5a')][_0x152e('0xae')])for(const _0x32cdfb of this[_0x152e('0x5a')][_0x152e('0x19')])_0x259cb2[_0x152e('0xb8')][_0x152e('0xd7')](_0x32cdfb['id'])||_0x259cb2[_0x152e('0xb8')][_0x152e('0xf2')](_0x32cdfb['id']);return _0x259cb2;}[_0x152e('0x8')](_0x396d4d){if(!_0x396d4d||_0x396d4d['diffData'])return Promise[_0x152e('0xa')]();{const _0x965080=this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0x7d')](_0x152e('0xa6'));return this[_0x152e('0x88')][_0x152e('0x6e')]({'channelId':_0x965080,'revisionId':_0x396d4d['id']})[_0x152e('0x9d')](_0x49b16a=>{_0x396d4d[_0x152e('0x2d')]=_0x49b16a['diffData'];});}}[_0x152e('0x6d')](_0x49d2f5,_0x547127,_0x122ab3){if(this['_bufferedUpdates']['has'](_0x49d2f5)){const _0x4b6ffc=this[_0x152e('0xc3')][_0x152e('0x7d')](_0x49d2f5);_0x547127=_0x122ab3?{..._0x4b6ffc,..._0x547127}:{..._0x547127,..._0x4b6ffc};}this[_0x152e('0xc3')][_0x152e('0x90')](_0x49d2f5,_0x547127);}[_0x152e('0xaa')](_0x4c2566){const _0x463f8c=this[_0x152e('0x5b')][_0x152e('0x93')]();_0x463f8c['reverse'](),_0x463f8c[_0x152e('0x47')]();const _0x49a559=_0x463f8c[_0x152e('0x2a')](_0x723c87=>_0x723c87[_0x152e('0xb')]<=_0x4c2566)[_0x152e('0xb')];return _0x49a559<this['_startingVersion']?this[_0x152e('0x10c')]:_0x49a559;}[_0x152e('0x8e')](_0x492357){const _0xf190ea=this[_0x152e('0x5b')][_0x152e('0x6e')](this['repository'][_0x152e('0x8a')]-0x1);if(_0xf190ea)this[_0x152e('0xc')]=_0xf190ea['id'];else{const _0x336774=!this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')]['roots'][_0x152e('0x2a')](_0x45e31a=>this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0xa7')](_0x45e31a)),_0x4d94c4=this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x173d4d=_0x8d4ba2(this[_0x152e('0x7')][_0x152e('0xbb')],_0x336774?_0x152e('0x49'):'Initial\x20revision');this['_makeRevision']({'from':_0x492357,'to':_0x492357,'id':this['_initialRevisionId'],'name':_0x173d4d,'creatorId':_0x4d94c4});}}[_0x152e('0x78')](_0x4f216a){const _0x5ccd91=this[_0x152e('0x3d')][_0x152e('0xf0')]();this[_0x152e('0xa9')]=this['repository']['getRevision'](_0x5ccd91),this['currentRevision']||(this[_0x152e('0xa9')]=this[_0x152e('0xf4')]({'from':_0x4f216a,'to':_0x4f216a,'id':_0x5ccd91,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3c2318,from:_0x524251,to:_0x583648,creatorId:_0x39e77b,id:_0x55624e}){const _0x491bc0=this[_0x152e('0x1e')]({'from':_0x524251,'to':_0x583648});_0x491bc0[_0x152e('0xcc')]=_0x3c2318,_0x491bc0[_0x152e('0xed')]=_0x39e77b,_0x491bc0['id']=_0x55624e;const _0x4bfe0f=this[_0x152e('0xc8')](_0x491bc0);return this[_0x152e('0x88')]&&this[_0x152e('0x6d')](_0x491bc0['id'],_0x491bc0,!0x0),_0x4bfe0f;}['_setConversion'](){this[_0x152e('0x7')][_0x152e('0xe5')][_0x152e('0x3')](_0x152e('0xe8'))[_0x152e('0x48')]({'model':_0x152e('0xe1')});}['_removeRevisionMarkers'](_0x19f452){return(_0x19f452=_0x19f452['filter'](_0xf877dc=>!_0xf877dc[_0x152e('0xcc')]||_0x152e('0xb1')!==_0xf877dc[_0x152e('0xcc')]&&'revision-end'!==_0xf877dc[_0x152e('0xcc')]))[_0x152e('0x66')](_0x331473=>{_0x152e('0x2f')!=typeof _0x331473&&(_0x331473['children']=this[_0x152e('0xa1')](_0x331473[_0x152e('0xe4')]),_0x331473[_0x152e('0x67')]=_0x331473[_0x152e('0x67')][_0x152e('0x4d')](_0x3f26fa=>!_0x3f26fa[0x0][_0x152e('0x63')](_0x152e('0xe6'))));}),_0x19f452;}}function J(_0x5c5b71,_0x401129){const _0x4c524a=_0x401129[_0x152e('0x21')][_0x152e('0x6')][_0x152e('0x13')];if(_0x152e('0x2f')==typeof _0x5c5b71)return new _0x41fa94(_0x4c524a,_0x5c5b71);{const _0x25190c=_0x5c5b71[_0x152e('0xe4')][_0x152e('0xd8')](_0x2723a0=>J(_0x2723a0,_0x401129));return new(B[_0x5c5b71[(_0x152e('0x11'))]]||_0x32f564)(_0x4c524a,_0x5c5b71[_0x152e('0xcc')],_0x5c5b71['attributes'],_0x25190c);}}class H{constructor(_0x294acf){this[_0x152e('0x7')]=_0x294acf,this[_0x152e('0x83')]=new Map(),this[_0x152e('0xb7')]=-0x1,this[_0x152e('0x68')]=-0x1,this['_markers']=new Map(),this[_0x152e('0x36')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x152e('0xe3')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x152e('0xdd')]=new Map(),this[_0x152e('0xac')]=new Map(),this[_0x152e('0x37')]=new Map(),this[_0x152e('0xa2')]=new Map(),this[_0x152e('0xfb')]=new Map(),this[_0x152e('0x31')]=0x1;}[_0x152e('0xc7')](_0x5dfeb4){this[_0x152e('0xb2')]=_0x5dfeb4;const _0x9840e3=new Map(),_0x89e427=new Map(),_0x50feef=this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')]['roots'][_0x152e('0xd8')](_0x5574ca=>_0x5574ca[_0x152e('0xfc')]);for(const _0x121b6e of _0x50feef){const _0x2d549c=this['editor'][_0x152e('0x10a')][_0x152e('0x13')][_0x152e('0xd9')](_0x121b6e),_0xe9b1f9=q(_0x2d549c);_0x9840e3['set'](_0x121b6e,_0xe9b1f9),_0x89e427[_0x152e('0x90')](_0x121b6e,Object[_0x152e('0x3e')](_0x2d549c[_0x152e('0x4a')]()));}const _0x2be3c2=Array[_0x152e('0x30')](this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x9c')])[_0x152e('0xd8')](_0x53d343=>[_0x53d343[_0x152e('0xcc')],_0x53d343[_0x152e('0xd1')]()]),_0x471801=this[_0x152e('0xb2')][_0x152e('0xa3')];this[_0x152e('0xd4')](_0x471801,_0x9840e3,_0x2be3c2,_0x89e427),this[_0x152e('0xf1')]=this[_0x152e('0x31')];const _0x40d8b3=new Map(),_0x5bf80d=new Map();for(const _0x3cf904 of _0x50feef){const _0x3bd114=G(_0x3cf904);_0x40d8b3[_0x152e('0x90')](_0x3cf904,_0x3bd114),_0x5bf80d[_0x152e('0x90')](_0x3cf904,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x40d8b3,[],_0x5bf80d);}[_0x152e('0x56')](_0x5b7cbd,_0x544ce1){if(this[_0x152e('0xb7')]===_0x5b7cbd&&this[_0x152e('0x68')]<=_0x544ce1)this[_0x152e('0x83')][_0x152e('0x2e')]>0x1&&this[_0x152e('0x76')](this[_0x152e('0x68')]),this[_0x152e('0x108')](this[_0x152e('0x68')],_0x544ce1,!0x0);else{if(!this['_savedMetaData'][_0x152e('0xf3')](_0x5b7cbd)){const _0x2aea92=this['_getPreviousFrom'](_0x5b7cbd);this['_calculateMetaData'](_0x2aea92,_0x5b7cbd,!0x1);}this[_0x152e('0xc9')](_0x5b7cbd,_0x544ce1,!0x0);}return this[_0x152e('0xb7')]=_0x5b7cbd,this[_0x152e('0x68')]=_0x544ce1,this['_getState']();}['loadState'](_0x2f722a){this[_0x152e('0x9')](),this[_0x152e('0xb7')]=_0x2f722a[_0x152e('0xae')],this[_0x152e('0x68')]=_0x2f722a[_0x152e('0xb')];for(const _0x581d13 in _0x2f722a[_0x152e('0x2d')]){const _0x18ca4e=_0x2f722a[_0x152e('0x2d')][_0x581d13][_0x152e('0x17')],_0x32ca0e=_0x5cb0d4(_0x2f722a[_0x152e('0x2d')][_0x581d13][_0x152e('0xcb')])||{},_0x4719ef=this[_0x152e('0x14')](_0x2f722a[_0x152e('0x2d')][_0x581d13][_0x152e('0xbe')]);_0x4719ef['rootName']=_0x581d13,_0x4719ef[_0x152e('0xff')]=!_0x18ca4e||!_0x18ca4e['isAttached'],_0x4719ef[_0x152e('0xec')]=()=>_0x4719ef['_isAttached'],this[_0x152e('0xe3')][_0x152e('0x90')](_0x581d13,_0x4719ef),this['_baseRootsAttributes']['set'](_0x581d13,_0x32ca0e),_0x18ca4e&&this['_touchedRoots'][_0x152e('0x90')](_0x581d13,_0x18ca4e);const _0x3d39ec=this['_makeIdsRoot'](_0x4719ef);this['_baseIdsRoots'][_0x152e('0x90')](_0x581d13,_0x3d39ec);for(const [_0x374db3,_0x4f777a]of _0x4719ef[_0x152e('0x9c')]){if(!_0x374db3[_0x152e('0x63')]('revision:'))continue;const _0x2639a7=_0x374db3[_0x152e('0x105')](':')[0x2];for(const _0x2a59fb of _0x4f777a[_0x152e('0x15')]({'singleCharacters':!0x0})){const _0x3124ff=this[_0x152e('0xe0')](_0x2a59fb),_0x2b359d=_0x152e('0x87')==_0x2a59fb[_0x152e('0x11')]?_0x2a59fb['previousPosition'][_0x152e('0x39')][_0x152e('0xd5')](0x0,-0x1):_0x2a59fb['previousPosition'][_0x152e('0x39')],_0x53b14a=_0x3d39ec[_0x152e('0x109')](_0x2b359d)[_0x152e('0x72')](_0x3124ff);this[_0x152e('0x37')][_0x152e('0x90')](_0x53b14a,{'userId':_0x2639a7});}}}this[_0x152e('0xf1')]=this[_0x152e('0x31')];const _0x56e931=[...Array(this['_revisionId'])[_0x152e('0x8b')]()][_0x152e('0xd5')](0x1)[_0x152e('0x4d')](_0x27bf91=>!this[_0x152e('0x37')][_0x152e('0xf3')](_0x27bf91));let _0x318e02=0x0;const _0x532744=new Map();for(const _0x48264c in _0x2f722a['diffData']){const _0x1ad72f=_0x2f722a[_0x152e('0x2d')][_0x48264c][_0x152e('0x17')],_0x214243=_0x5cb0d4(_0x2f722a[_0x152e('0x2d')][_0x48264c][_0x152e('0x107')])||{},_0x431ee5=this[_0x152e('0x14')](_0x2f722a[_0x152e('0x2d')][_0x48264c]['insertions']);_0x431ee5['rootName']=_0x48264c,_0x431ee5[_0x152e('0xff')]=!_0x1ad72f||_0x1ad72f[_0x152e('0xec')],_0x431ee5[_0x152e('0xec')]=()=>_0x431ee5[_0x152e('0xff')],this[_0x152e('0x36')][_0x152e('0x90')](_0x48264c,_0x431ee5),this[_0x152e('0x22')][_0x152e('0x90')](_0x48264c,_0x214243);const _0x483579=this['_makeIdsRoot'](_0x431ee5,Number['NEGATIVE_INFINITY']);this[_0x152e('0xdd')][_0x152e('0x90')](_0x48264c,_0x483579),_0x532744['set'](_0x48264c,_0x431ee5[_0x152e('0xec')]()?_0x214243:{});for(const [_0x5d1373,_0x18a183]of _0x431ee5[_0x152e('0x9c')]){if(!_0x5d1373[_0x152e('0x63')](_0x152e('0xa8')))continue;const _0x18c2de=_0x5d1373[_0x152e('0x105')](':')[0x2];for(const _0x433f37 of _0x18a183['getWalker']({'singleCharacters':!0x0})){const _0x50f00b=this[_0x152e('0xe0')](_0x433f37),_0x437a3a=this[_0x152e('0x31')]++,_0x3f9f8a=_0x152e('0x87')==_0x433f37['type']?_0x433f37['previousPosition'][_0x152e('0x39')]['slice'](0x0,-0x1):_0x433f37[_0x152e('0xf6')][_0x152e('0x39')];_0x483579[_0x152e('0x109')](_0x3f9f8a)[_0x152e('0x80')](_0x50f00b,_0x437a3a),this['_touched'][_0x152e('0x90')](_0x437a3a,{'userId':_0x18c2de});}}for(const _0xa87b1f of this[_0x152e('0x7')]['model']['createRangeIn'](_0x431ee5)[_0x152e('0x15')]({'singleCharacters':!0x0})){const _0x59b467=this['_getVidAttributeName'](_0xa87b1f),_0x50d0b8='elementEnd'==_0xa87b1f[_0x152e('0x11')]?_0xa87b1f[_0x152e('0xf6')]['path'][_0x152e('0xd5')](0x0,-0x1):_0xa87b1f[_0x152e('0xf6')][_0x152e('0x39')],_0x1903c5=_0x483579[_0x152e('0x109')](_0x50d0b8);_0x1903c5[_0x152e('0x72')](_0x59b467)>0x0||_0x1903c5[_0x152e('0x80')](_0x59b467,_0x56e931[_0x318e02++]);}for(const [_0x4e28fb,_0x2965af]of _0x431ee5['markers'])_0x4e28fb['startsWith']('revision:')||this[_0x152e('0xc5')][_0x152e('0x90')](_0x4e28fb,_0x2965af);}const _0x8459a2=G(_0x152e('0x54'));this[_0x152e('0xe3')][_0x152e('0x90')](_0x152e('0x54'),_0x8459a2),this['_baseIdsRoots'][_0x152e('0x90')](_0x152e('0x54'),this[_0x152e('0x100')](_0x8459a2,0x1));const _0x7abc13=G(_0x152e('0x54'));this[_0x152e('0x36')][_0x152e('0x90')](_0x152e('0x54'),_0x7abc13),this[_0x152e('0xdd')][_0x152e('0x90')](_0x152e('0x54'),this['_makeIdsRoot'](_0x7abc13,0x1));const _0x416c8e=Array[_0x152e('0x30')](this[_0x152e('0x36')])['map'](([_0x5f4396,_0x2ad2f6])=>[_0x5f4396,q(_0x2ad2f6)]);this[_0x152e('0xd4')](this[_0x152e('0x68')],_0x416c8e,this[_0x152e('0xc5')],_0x532744);}[_0x152e('0x14')](_0x3fa517){const _0x3297ee=JSON[_0x152e('0xfe')](_0x3fa517),_0x442819=this[_0x152e('0x7')][_0x152e('0x21')][_0x152e('0x6')]['document'],_0x4e9c0d=new _0x3a9bee(_0x442819,_0x3297ee[_0x152e('0xd8')](_0x561c39=>J(_0x561c39,this[_0x152e('0x7')])));return this[_0x152e('0x7')][_0x152e('0x2c')][_0x152e('0xab')](_0x4e9c0d);}[_0x152e('0xd4')](_0x30c469,_0x41c06d,_0x10f24a,_0x217f52){const _0x20dfd9=new Map(_0x41c06d),_0x15a957=new Map(_0x5cb0d4(_0x217f52)),_0x137cf8=new Map();for(const [_0x286c27,_0xe50225]of _0x10f24a)_0x137cf8[_0x152e('0x90')](_0x286c27,{'start':_0xe50225['start'][_0x152e('0xb0')](),'end':_0xe50225[_0x152e('0x10b')]['clone'](),'rootName':_0xe50225['root']['rootName']});this[_0x152e('0x83')][_0x152e('0x90')](_0x30c469,{'roots':_0x20dfd9,'markers':_0x137cf8,'rootsAttributes':_0x15a957});}[_0x152e('0x76')](_0x472264){this[_0x152e('0x83')][_0x152e('0x102')](_0x472264);}[_0x152e('0x34')](){this[_0x152e('0x9')](),this[_0x152e('0xb7')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x152e('0x3b')](),this[_0x152e('0xc7')](this[_0x152e('0xb2')]);}[_0x152e('0x9')](){this['_touched']['clear'](),this[_0x152e('0xa2')][_0x152e('0x3b')](),this[_0x152e('0xfb')][_0x152e('0x3b')](),this[_0x152e('0x36')][_0x152e('0x3b')](),this[_0x152e('0x22')]['clear'](),this['_baseRoots'][_0x152e('0x3b')](),this[_0x152e('0x65')][_0x152e('0x3b')](),this[_0x152e('0xdd')]['clear'](),this[_0x152e('0xac')][_0x152e('0x3b')](),this[_0x152e('0xc5')][_0x152e('0x3b')](),this[_0x152e('0x31')]=0x1,this[_0x152e('0xf1')]=this[_0x152e('0x31')];}[_0x152e('0x100')](_0x1d2b84,_0x56d0f8=null){let _0x556e31=null;_0x1d2b84['is']('documentFragment')||(_0x556e31=new _0x45dbcc(_0x1d2b84[_0x152e('0xcc')],{'vid_start':null===_0x56d0f8?this[_0x152e('0x31')]++:_0x56d0f8++}));const _0x35145e=[];for(const _0x1078cd of _0x1d2b84[_0x152e('0xc2')]())if(_0x1078cd['is'](_0x152e('0xfd'))){_0x35145e[_0x152e('0xf2')](this[_0x152e('0x100')](_0x1078cd,_0x56d0f8));const _0x531a32=_0x35145e[_0x35145e[_0x152e('0x8a')]-0x1];null!==_0x56d0f8&&(_0x56d0f8=_0x531a32['is'](_0x152e('0xfd'),_0x152e('0x2'))?_0x531a32[_0x152e('0x72')](_0x152e('0x92'))+0x1:_0x531a32['getAttribute'](_0x152e('0x53'))+0x1);}else for(let _0x1b498f=0x0;_0x1b498f<_0x1078cd[_0x152e('0x24')];_0x1b498f++)_0x35145e[_0x152e('0xf2')](new _0x45dbcc(_0x152e('0x2'),{'vid':null===_0x56d0f8?this[_0x152e('0x31')]++:_0x56d0f8++}));if(_0x1d2b84['is'](_0x152e('0x89'))){const _0x13a847=G(_0x1d2b84[_0x152e('0xfc')]);return _0x13a847[_0x152e('0xd6')](0x0,_0x35145e),_0x13a847;}return _0x556e31[_0x152e('0x80')](_0x152e('0x53'),null===_0x56d0f8?this[_0x152e('0x31')]++:_0x56d0f8++),_0x556e31['_insertChild'](0x0,_0x35145e),_0x556e31;}[_0x152e('0xc9')](_0x3d4036,_0x564b11,_0x7b8f7c){this['_reset']();const {roots:_0x47f504,markers:_0x44477f,rootsAttributes:_0x5ddc84}=this['_savedMetaData'][_0x152e('0x7d')](_0x3d4036);this[_0x152e('0xe3')]=new Map(_0x47f504),this[_0x152e('0x65')]=new Map(_0x5cb0d4(_0x5ddc84));for(const [_0x425bb2,_0x17cae2]of this[_0x152e('0xe3')])if('$graveyard'!==_0x425bb2&&(this['_diffRoots'][_0x152e('0x90')](_0x425bb2,q(_0x17cae2)),this[_0x152e('0x22')]=new Map(_0x5cb0d4(_0x5ddc84)),_0x7b8f7c)){const _0x3958c6=this[_0x152e('0x31')];this[_0x152e('0xdd')]['set'](_0x425bb2,this['_makeIdsRoot'](_0x17cae2)),this[_0x152e('0xac')][_0x152e('0x90')](_0x425bb2,this['_makeIdsRoot'](_0x17cae2,_0x3958c6));}this[_0x152e('0xf1')]=this[_0x152e('0x31')],this[_0x152e('0x36')][_0x152e('0x90')]('$graveyard',q(this[_0x152e('0xe3')][_0x152e('0x7d')](_0x152e('0x54')))),_0x7b8f7c&&this['_idsRoots'][_0x152e('0x90')](_0x152e('0x54'),this[_0x152e('0x100')](this[_0x152e('0xe3')][_0x152e('0x7d')]('$graveyard')));for(const [_0x1e68cc,_0x28f640]of _0x44477f){const _0x28c0e7=this['_baseRoots']['get'](_0x28f640[_0x152e('0xfc')]),_0x4305fd=this['_diffRoots']['get'](_0x28f640[_0x152e('0xfc')]),_0x25c941=new _0x350b1c(this[_0x152e('0x20')](_0x28f640['start'],_0x28c0e7),this[_0x152e('0x20')](_0x28f640[_0x152e('0x10b')],_0x28c0e7)),_0x4406d2=this[_0x152e('0x8f')](_0x25c941,_0x4305fd);_0x28c0e7[_0x152e('0x9c')][_0x152e('0x90')](_0x1e68cc,_0x25c941),this[_0x152e('0xc5')]['set'](_0x1e68cc,_0x4406d2);}this['_applyOperations'](_0x3d4036,_0x564b11,_0x7b8f7c);}[_0x152e('0x108')](_0x5e5833,_0x1b6e6c,_0x86030d){for(const _0x19d4f3 of this['source']['getOperations'](_0x5e5833,_0x1b6e6c))this[_0x152e('0xf5')](_0x19d4f3,_0x86030d);for(const _0xb59ded of this[_0x152e('0x36')][_0x152e('0xc4')]())_0xb59ded['markers'][_0x152e('0x3b')]();for(const [_0x3c0a62,_0x531644]of this[_0x152e('0xc5')]){this[_0x152e('0x36')][_0x152e('0x7d')](_0x531644[_0x152e('0x91')][_0x152e('0xfc')])[_0x152e('0x9c')][_0x152e('0x90')](_0x3c0a62,_0x531644[_0x152e('0xb0')]());}const _0x5c695e=new Map(),_0x39cc0e=new Map();for(const [_0xfc21f,_0x326fe3]of this[_0x152e('0x36')])_0x5c695e[_0x152e('0x90')](_0xfc21f,q(_0x326fe3)),_0x39cc0e['set'](_0xfc21f,this[_0x152e('0x22')][_0x152e('0x7d')](_0xfc21f));this[_0x152e('0xd4')](_0x1b6e6c,_0x5c695e,this[_0x152e('0xc5')],_0x39cc0e);}[_0x152e('0x5')](_0x384088){const _0x45a157=Array['from'](this[_0x152e('0x83')]['keys']());_0x45a157[_0x152e('0x101')]((_0x44ef11,_0x394115)=>_0x44ef11-_0x394115),_0x45a157[_0x152e('0x79')]();for(const _0x42a4d6 of _0x45a157)if(_0x42a4d6<_0x384088)return _0x42a4d6;return Number[_0x152e('0x61')];}[_0x152e('0x6f')](_0x254dd8,_0x1a299c){const _0x1fb3d8=Array['from'](_0x1a299c[_0x152e('0x9c')])[_0x152e('0xd8')](([_0x280537,_0x31f400])=>[_0x280537,this[_0x152e('0x8f')](_0x31f400,_0x254dd8)]);_0x254dd8[_0x152e('0x9c')]=new Map(_0x1fb3d8);}[_0x152e('0xcd')](_0xb1a788){for(const _0x4be776 of this[_0x152e('0xc5')]['values']()){const _0x77238a=_0x4be776[_0x152e('0x2b')](_0xb1a788),_0x7d8ff7=_0x350b1c[_0x152e('0xb4')](_0x77238a);_0x4be776['start']=_0x7d8ff7[_0x152e('0x8c')],_0x4be776['end']=_0x7d8ff7[_0x152e('0x10b')];}}[_0x152e('0xf5')](_0x4529ac,_0x2dd655){if(_0x152e('0x86')==_0x4529ac[_0x152e('0x11')]||_0x152e('0xba')==_0x4529ac[_0x152e('0x11')])return void this['_handleRootOperation'](_0x4529ac,_0x2dd655);if(_0x152e('0x4c')==_0x4529ac['type']){const _0x444ff8=_0x4529ac[_0x152e('0x1a')][_0x152e('0x91')][_0x152e('0xfc')];this['_diffRoots'][_0x152e('0xf3')](_0x444ff8)||(this[_0x152e('0x36')][_0x152e('0x90')](_0x444ff8,G(_0x444ff8,!0x0)),this[_0x152e('0x22')][_0x152e('0x90')](_0x444ff8,{}),_0x2dd655&&this['_idsRoots'][_0x152e('0x90')](_0x444ff8,G(_0x444ff8,!0x0)));}else{if('addRootAttribute'==_0x4529ac[_0x152e('0x11')]||_0x152e('0x64')==_0x4529ac[_0x152e('0x11')]||_0x152e('0x32')==_0x4529ac['type'])return void this[_0x152e('0xb3')](_0x4529ac);}const _0xe7afc0=this[_0x152e('0x29')](_0x4529ac,this[_0x152e('0x36')]);if(_0x152e('0x6b')!==_0x4529ac[_0x152e('0x11')]&&(_0xe7afc0['_execute'](),this[_0x152e('0xcd')](_0xe7afc0)),_0x2dd655)switch(_0xe7afc0['type']){case _0x152e('0x4c'):this[_0x152e('0x42')](_0x4529ac);break;case _0x152e('0x6a'):case'remove':case'reinsert':this[_0x152e('0xde')](_0x4529ac);break;case _0x152e('0xd'):this[_0x152e('0x7e')](_0x4529ac);break;case _0x152e('0x105'):this[_0x152e('0x3a')](_0x4529ac);break;case _0x152e('0x6b'):this[_0x152e('0x98')](_0x4529ac);}}[_0x152e('0x29')](_0x39ce9d,_0x38873d){const _0x162015=_0x39ce9d[_0x152e('0xb0')]();return _0x162015[_0x152e('0x10')]=_0x39ce9d['_authorId'],this[_0x152e('0x40')](_0x162015,_0x38873d),_0x162015;}[_0x152e('0x41')](_0x4f4582){return _0x4f4582[_0x152e('0xd8')](_0x251a4c=>{const _0x513845=this[_0x152e('0xe0')](_0x251a4c);return Number(_0x251a4c[_0x152e('0x44')][_0x152e('0x72')](_0x513845));});}['_generateTape'](_0x1462c8,_0x2407d9){if(_0x1462c8['is'](_0x152e('0xfd'),'$text'))_0x2407d9[_0x152e('0xf2')]({'item':_0x1462c8,'type':_0x152e('0x85')});else{_0x1462c8['is'](_0x152e('0xfd'))&&_0x2407d9[_0x152e('0xf2')]({'item':_0x1462c8,'type':'elementStart'});for(const _0x4d1b9b of _0x1462c8[_0x152e('0xc2')]())this[_0x152e('0x103')](_0x4d1b9b,_0x2407d9);_0x1462c8['is']('element')&&_0x2407d9['push']({'item':_0x1462c8,'type':_0x152e('0x87')});}return _0x2407d9;}[_0x152e('0x7b')](){const _0x527025=new Map(this[_0x152e('0x37')]),_0x1aa38d=new Map(_0x527025),_0x319080=new Map(),_0x58847f={'insertions':{},'deletions':{}},_0x51f975={'insertions':{},'deletions':{}},_0x41a86d=new Map(),_0xa10071=new Set([...this[_0x152e('0xe3')][_0x152e('0x8b')](),...this[_0x152e('0x36')][_0x152e('0x8b')]()]);_0xa10071[_0x152e('0x102')](_0x152e('0x54'));for(const _0x4da72e of _0xa10071){const _0x1ac8bc=this['_diffRoots']['get'](_0x4da72e)||G(_0x4da72e,!0x1),_0x5afd22=this['_baseRoots']['get'](_0x4da72e)||G(_0x4da72e,!0x1);_0x1ac8bc['isAttached']()||_0x5afd22['isAttached']()?(_0x58847f[_0x152e('0xb6')][_0x4da72e]=q(_0x1ac8bc),_0x58847f['deletions'][_0x4da72e]=q(_0x5afd22),this[_0x152e('0x6f')](_0x58847f[_0x152e('0xbe')][_0x4da72e],_0x5afd22),this[_0x152e('0x6f')](_0x58847f[_0x152e('0xb6')][_0x4da72e],_0x1ac8bc),_0x51f975[_0x152e('0xb6')][_0x4da72e]=this[_0x152e('0x103')](this['_idsRoots'][_0x152e('0x7d')](_0x4da72e),[]),_0x51f975['deletions'][_0x4da72e]=this[_0x152e('0x103')](this[_0x152e('0xac')][_0x152e('0x7d')](_0x4da72e)||G(_0x4da72e,!0x1),[])):_0xa10071['delete'](_0x4da72e);}for(const _0x2e269d of _0xa10071){const _0x2b24c3=_0x51f975[_0x152e('0xb6')][_0x2e269d];for(const _0xe3ec07 of _0x2b24c3){const _0xdc6996=this[_0x152e('0xe0')](_0xe3ec07),_0x24db80=_0xe3ec07[_0x152e('0x44')]['getAttribute'](_0xdc6996);_0x1aa38d['delete'](_0x24db80),_0x24db80>=this[_0x152e('0xf1')]&&_0x319080['set'](_0x24db80,_0x527025['get'](_0x24db80));}}for(const _0x5892b6 of _0xa10071){const _0x21614a=_0x51f975[_0x152e('0xb6')][_0x5892b6],_0x18276e=this[_0x152e('0x41')](_0x51f975['deletions'][_0x5892b6]);let _0x53b53a=0x0;for(const _0x392b70 of _0x21614a){const _0x2fea2c=this[_0x152e('0xe0')](_0x392b70),_0x252e6a=_0x392b70[_0x152e('0x44')][_0x152e('0x72')](_0x2fea2c);if(!_0x319080[_0x152e('0xf3')](_0x252e6a)&&!_0x41a86d[_0x152e('0xf3')](_0x252e6a)){if(_0x1aa38d[_0x152e('0xf3')](_0x252e6a))_0x53b53a++;else{if(_0x252e6a!=_0x18276e[_0x53b53a]){const _0x3bd0bf=_0x527025[_0x152e('0x7d')](_0x252e6a)||_0x527025['get'](_0x18276e[_0x53b53a]);for(;_0x252e6a!=_0x18276e[_0x53b53a];)_0x1aa38d[_0x152e('0xf3')](_0x18276e[_0x53b53a])||(_0x41a86d[_0x152e('0x90')](_0x18276e[_0x53b53a],_0x3bd0bf),_0x527025[_0x152e('0x90')](_0x18276e[_0x53b53a],_0x3bd0bf)),_0x53b53a++;}_0x53b53a++;}}}}for(const _0x28388c of _0xa10071){const _0x54e9ee=_0x51f975['insertions'][_0x28388c];for(const _0x20895f of _0x54e9ee){const _0x328071=this[_0x152e('0xe0')](_0x20895f),_0x9bef67=_0x20895f[_0x152e('0x44')][_0x152e('0x72')](_0x328071);if(_0x41a86d[_0x152e('0xf3')](_0x9bef67)){const _0x106d53=_0x41a86d[_0x152e('0x7d')](_0x9bef67);_0x1aa38d[_0x152e('0xf3')](_0x9bef67)||_0x1aa38d['set'](_0x9bef67,{..._0x106d53}),_0x319080['set'](_0x9bef67,{..._0x106d53});}}}for(const _0x592beb of _0x1aa38d[_0x152e('0x8b')]())_0x592beb>=this['_startingRevisionId']&&_0x1aa38d[_0x152e('0x102')](_0x592beb);const _0x800a26=new Map();for(const _0x2385c9 of _0xa10071){let _0x3134=_0x51f975[_0x152e('0xb6')][_0x2385c9];for(const _0x4de9b5 of _0x3134)if(_0x4de9b5[_0x152e('0x44')]['is'](_0x152e('0xfd'),'tableCell')){const _0x1410f8=this[_0x152e('0xe0')](_0x4de9b5),_0x5eae24=_0x4de9b5['item']['getAttribute'](_0x1410f8);if(_0x319080[_0x152e('0xf3')](_0x5eae24)){const _0x330382=_0x4de9b5[_0x152e('0x44')]['parent']['parent'][_0x152e('0x72')]('vid_start'),_0x287450=_0x800a26[_0x152e('0x7d')](_0x330382)||new Set();_0x287450['add'](_0x319080['get'](_0x5eae24)[_0x152e('0xef')]),_0x800a26['set'](_0x330382,_0x287450);}}_0x3134=_0x51f975[_0x152e('0xbe')][_0x2385c9];for(const _0x392fc8 of _0x3134)if(_0x392fc8[_0x152e('0x44')]['is'](_0x152e('0xfd'),_0x152e('0x1b'))){const _0x51f9b1=this[_0x152e('0xe0')](_0x392fc8),_0x2cbbce=_0x392fc8['item'][_0x152e('0x72')](_0x51f9b1);if(_0x1aa38d[_0x152e('0xf3')](_0x2cbbce)){const _0x334370=_0x392fc8[_0x152e('0x44')][_0x152e('0xb9')][_0x152e('0xb9')][_0x152e('0x72')](_0x152e('0x5f')),_0x4f5a93=_0x800a26[_0x152e('0x7d')](_0x334370)||new Set();_0x4f5a93['add'](_0x1aa38d[_0x152e('0x7d')](_0x2cbbce)[_0x152e('0xef')]),_0x800a26[_0x152e('0x90')](_0x334370,_0x4f5a93);}}for(const _0x16370a of _0x800a26[_0x152e('0x8b')]())(_0x319080[_0x152e('0xf3')](_0x16370a)||_0x1aa38d[_0x152e('0xf3')](_0x16370a))&&_0x800a26[_0x152e('0x102')](_0x16370a);}for(const _0x1cbb7f of _0xa10071){const _0x345a0c=_0x51f975[_0x152e('0xb6')][_0x1cbb7f];let _0x17685f=null,_0x41545e=null;for(const _0x30e659 of _0x345a0c){const _0x1881a8=this['_getVidAttributeName'](_0x30e659),_0x81f771=_0x30e659[_0x152e('0x44')][_0x152e('0x72')](_0x1881a8),_0x3fdeec=_0x800a26[_0x152e('0x7d')](_0x81f771);_0x3fdeec&&_0x152e('0x77')==_0x30e659[_0x152e('0x11')]&&(_0x17685f=Array[_0x152e('0x30')](_0x3fdeec)[0x0],_0x41545e=_0x30e659[_0x152e('0x44')]['getAttribute'](_0x152e('0x53'))),_0x17685f&&(_0x1aa38d[_0x152e('0x90')](_0x81f771,{'userId':_0x17685f}),_0x319080[_0x152e('0x90')](_0x81f771,{'userId':_0x17685f})),_0x81f771==_0x41545e&&(_0x17685f=null,_0x41545e=null);}}const _0x2cefbd={},_0xf18bce=new Set();for(const _0x59cfd8 of _0xa10071){const _0x108ab7=_0x58847f[_0x152e('0xbe')][_0x59cfd8],_0x2cd02b=_0x58847f[_0x152e('0xb6')][_0x59cfd8];for(const {userId:_0x26a832}of this[_0x152e('0xa2')][_0x152e('0xc4')]())null!==_0x26a832&&_0xf18bce[_0x152e('0x4')](_0x26a832);for(const {userId:_0x2473c1}of this[_0x152e('0xfb')][_0x152e('0xc4')]())null!==_0x2473c1&&_0xf18bce[_0x152e('0x4')](_0x2473c1);this['_markChanges'](_0x2cd02b,_0x51f975['insertions'][_0x59cfd8],_0x319080,_0x152e('0xad'),_0xf18bce),this[_0x152e('0xd3')](_0x108ab7,_0x51f975[_0x152e('0xbe')][_0x59cfd8],_0x1aa38d,_0x152e('0x55'),_0xf18bce),_0x2cefbd[_0x59cfd8]={'insertions':this[_0x152e('0x23')](_0x2cd02b),'deletions':this[_0x152e('0x23')](_0x108ab7),'attachChange':this['_touchedRoots'][_0x152e('0x7d')](_0x59cfd8)||null,'attributesBefore':_0x5cb0d4(this[_0x152e('0x65')]['get'](_0x59cfd8))||{},'attributesAfter':_0x5cb0d4(this[_0x152e('0x22')][_0x152e('0x7d')](_0x59cfd8))};}return{'diffData':_0x2cefbd,'authorsIds':Array[_0x152e('0x30')](_0xf18bce)};}[_0x152e('0x5c')](_0x4bf3b5){for(const [,_0x1cb33c]of _0x4bf3b5[_0x152e('0x9c')]){const _0x197802=_0x1cb33c[_0x152e('0x8c')][_0x152e('0x3c')]()[_0x152e('0x4d')](_0x514bf4=>_0x152e('0x1b')==_0x514bf4[_0x152e('0xcc')]);for(const _0x32677e of _0x197802)0x1==_0x32677e[_0x152e('0x1f')]&&_0x32677e[_0x152e('0x35')](0x0)['is'](_0x152e('0xfd'),'paragraph')&&_0x32677e['getChild'](0x0)[_0x152e('0x80')](_0x152e('0x18'),!0x0);}}['_prepareViewToSave'](_0x2bf95d){this[_0x152e('0x5c')](_0x2bf95d);const _0x100a8e=this[_0x152e('0x7')][_0x152e('0x2c')]['toView'](_0x2bf95d,{}),_0x3aee73=Array[_0x152e('0x30')](_0x100a8e['getChildren']())[_0x152e('0xd8')](_0x41b4e7=>this[_0x152e('0x57')](_0x41b4e7));return JSON['stringify'](_0x3aee73);}['_getViewJson'](_0x434d1d){if(_0x434d1d['is'](_0x152e('0x2')))return _0x434d1d[_0x152e('0x2c')];{const _0x19c404=_0x434d1d;return{'type':Object[_0x152e('0x8b')](B)['find'](_0x29f6ef=>_0x434d1d instanceof B[_0x29f6ef]),'name':_0x19c404['name'],'attributes':Array['from'](_0x19c404['getAttributes']()),'children':Array['from'](_0x19c404[_0x152e('0xc2')]())['map'](_0x23e2a8=>this[_0x152e('0x57')](_0x23e2a8))};}}['_markChanges'](_0x41a74e,_0x17e364,_0x46936d,_0x3beb81,_0x7ab45c){let _0x7988ce=null,_0x23a1fa=null,_0x1ea5fe=0x0;const _0x3fca28=this[_0x152e('0x7')][_0x152e('0x10a')];for(let _0x2ffdf9=0x0;_0x2ffdf9<_0x17e364['length'];_0x2ffdf9++){const _0x24e20b=this[_0x152e('0xe0')](_0x17e364[_0x2ffdf9]),_0x2bb387=_0x17e364[_0x2ffdf9]['item']['getAttribute'](_0x24e20b),_0x41ed32=_0x46936d[_0x152e('0x7d')](_0x2bb387),_0x21b081=_0x2ffdf9==_0x17e364[_0x152e('0x8a')]-0x1;(!_0x7988ce&&_0x41ed32&&(_0x7988ce=_0x41ed32,_0x23a1fa=_0x17e364[_0x2ffdf9]),_0x7988ce&&(!_0x41ed32||_0x41ed32['userId']!=_0x7988ce[_0x152e('0xef')]))&&(_0x26d624(_0x41ed32,L(_0x23a1fa,_0x41a74e,_0x3fca28),L(_0x17e364[_0x2ffdf9],_0x41a74e,_0x3fca28)),_0x7988ce=_0x41ed32||null,_0x23a1fa=_0x41ed32?_0x17e364[_0x2ffdf9]:null),_0x7988ce&&_0x21b081&&_0x26d624(_0x41ed32,L(_0x23a1fa,_0x41a74e,_0x3fca28),W(_0x17e364[_0x2ffdf9],_0x41a74e,_0x3fca28));}function _0x26d624(_0x3a5b0b,_0x2911c1,_0x14d07c){const _0x524ab9=_0x7988ce[_0x152e('0xef')],_0x17fd2b=_0x152e('0xa8')+_0x3beb81+':'+_0x524ab9+':'+_0x1ea5fe++,_0x5126fa=_0x3fca28['createRange'](_0x2911c1,_0x14d07c);_0x41a74e[_0x152e('0x9c')][_0x152e('0x90')](_0x17fd2b,_0x5126fa),null!==_0x524ab9&&_0x7ab45c[_0x152e('0x4')](_0x524ab9);}}['_getVidAttributeName'](_0x22f369){switch(_0x22f369[_0x152e('0x11')]){case _0x152e('0x77'):return _0x152e('0x5f');case'elementEnd':return _0x152e('0x53');default:return _0x152e('0x92');}}[_0x152e('0x40')](_0x5a0341,_0x5e1067){_0x5a0341[_0x152e('0x7c')]=null;for(const _0x7388a1 in _0x5a0341){const _0xe29e20=_0x5a0341[_0x7388a1];if(_0xe29e20 instanceof _0x144535){const _0x514900=_0x5e1067[_0x152e('0x7d')](_0xe29e20[_0x152e('0x91')][_0x152e('0xfc')]);_0x5a0341[_0x7388a1]=this[_0x152e('0x20')](_0xe29e20,_0x514900);}if(_0xe29e20 instanceof _0x350b1c){const _0x5e8484=_0x5e1067[_0x152e('0x7d')](_0xe29e20[_0x152e('0x91')][_0x152e('0xfc')]);_0x5a0341[_0x7388a1]=this[_0x152e('0x8f')](_0xe29e20,_0x5e8484);}'root'===_0x7388a1&&(_0x5a0341['root']=_0x5e1067[_0x152e('0x7d')](_0x5a0341['root'][_0x152e('0xfc')]));}}[_0x152e('0x8f')](_0x2a407c,_0xd26488){return this['editor'][_0x152e('0x10a')][_0x152e('0x1')](this[_0x152e('0x20')](_0x2a407c[_0x152e('0x8c')],_0xd26488),this[_0x152e('0x20')](_0x2a407c['end'],_0xd26488));}['_fixPosition'](_0x7eacd5,_0x21eaa5){return this[_0x152e('0x7')][_0x152e('0x10a')]['createPositionFromPath'](_0x21eaa5,_0x7eacd5['path'],_0x7eacd5[_0x152e('0xda')]);}[_0x152e('0x42')](_0x254bfc){const _0x51072f=this[_0x152e('0xdd')][_0x152e('0x7d')](_0x254bfc[_0x152e('0x1a')][_0x152e('0x91')][_0x152e('0xfc')]),_0x2925fb=this[_0x152e('0x20')](_0x254bfc[_0x152e('0x1a')],_0x51072f),_0x5c1646=null===_0x254bfc[_0x152e('0x10')]?null:_0x254bfc[_0x152e('0x10')]||this['editor'][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x236dd3=_0x2925fb['parent'],_0x4f8ca6=this[_0x152e('0x31')],_0x37019d=[];for(const _0x17ba11 of _0x254bfc[_0x152e('0xee')])if(_0x17ba11['is'](_0x152e('0xfd')))_0x37019d[_0x152e('0xf2')](this[_0x152e('0x100')](_0x17ba11));else for(let _0xee987c=0x0;_0xee987c<_0x17ba11[_0x152e('0x24')];_0xee987c++)_0x37019d[_0x152e('0xf2')](new _0x45dbcc(_0x152e('0x2'),{'vid':this[_0x152e('0x31')]++}));const _0x4f2966=this['_revisionId'];for(let _0x6430b9=_0x4f8ca6;_0x6430b9<_0x4f2966;_0x6430b9++)this[_0x152e('0x37')][_0x152e('0x90')](_0x6430b9,{'userId':_0x5c1646});_0x236dd3[_0x152e('0xd6')](_0x2925fb[_0x152e('0xdf')],_0x37019d);}['_handleMoveOperation'](_0x5cc9ee){(_0x5cc9ee=this[_0x152e('0x29')](_0x5cc9ee,this[_0x152e('0xdd')]))[_0x152e('0xfa')]();const _0x38bda1=null===_0x5cc9ee[_0x152e('0x10')]?null:_0x5cc9ee['_authorId']||this[_0x152e('0x7')][_0x152e('0x26')]['get']('Users')['me']['id'],_0x1b6ddd=_0x5cc9ee[_0x152e('0x4b')](),_0x1f779f=_0x1b6ddd[_0x152e('0xb9')],_0xf88967=_0x1b6ddd[_0x152e('0xdf')];!function _0x131cd4(_0x31ed56,_0x2157b3,_0x54550f,_0x1b01fe){for(let _0x1bb51b=_0x54550f;_0x1bb51b<_0x1b01fe;_0x1bb51b++){const _0x45fdd6=_0x2157b3[_0x152e('0x35')](_0x1bb51b);_0x45fdd6['is'](_0x152e('0xfd'),_0x152e('0x2'))?_0x31ed56[_0x152e('0x90')](_0x45fdd6[_0x152e('0x72')]('vid'),{'userId':_0x38bda1}):(_0x31ed56[_0x152e('0x90')](_0x45fdd6[_0x152e('0x72')](_0x152e('0x5f')),{'userId':_0x38bda1}),_0x131cd4(_0x31ed56,_0x45fdd6,0x0,_0x45fdd6[_0x152e('0x1f')]),_0x31ed56[_0x152e('0x90')](_0x45fdd6[_0x152e('0x72')]('vid_end'),{'userId':_0x38bda1}));}}(this['_touched'],_0x1f779f,_0xf88967,_0xf88967+_0x5cc9ee[_0x152e('0x38')]);}[_0x152e('0x7e')](_0x25ab4f){const _0x291a30=null===(_0x25ab4f=this[_0x152e('0x29')](_0x25ab4f,this[_0x152e('0xdd')]))[_0x152e('0x10')]?null:_0x25ab4f['_authorId']||this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0xbb0149=_0x25ab4f[_0x152e('0xaf')][_0x152e('0xb9')],_0x27f782=_0x25ab4f[_0x152e('0x69')]['parent'],_0x381e62=_0xbb0149[_0x152e('0x72')](_0x152e('0x53')),_0x49cfef=_0x27f782['getAttribute'](_0x152e('0x5f'));_0xbb0149[_0x152e('0x80')](_0x152e('0x53'),_0x27f782['getAttribute'](_0x152e('0x53'))),_0x27f782['_setAttribute']('vid_end',_0x381e62),this[_0x152e('0x37')]['set'](_0x49cfef,{'userId':_0x291a30}),this[_0x152e('0x37')]['set'](_0x381e62,{'userId':_0x291a30}),_0x25ab4f['_execute']();}['_handleSplitOperation'](_0x5068ef){const _0x4726e0=null===(_0x5068ef=this[_0x152e('0x29')](_0x5068ef,this['_idsRoots']))[_0x152e('0x10')]?null:_0x5068ef[_0x152e('0x10')]||this['editor'][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x2ce398=_0x5068ef['graveyardPosition'],_0x9ba176=_0x5068ef[_0x152e('0xbc')]['parent'];_0x5068ef[_0x152e('0xfa')]();const _0x5b7c41=_0x9ba176[_0x152e('0x72')](_0x152e('0x53')),_0x3f7e88=_0x5068ef['insertionPosition'][_0x152e('0xf8')];if(_0x2ce398){const _0x2fdb6c=_0x3f7e88[_0x152e('0x72')](_0x152e('0x53')),_0x5972ea=_0x9ba176[_0x152e('0x72')]('vid_end');_0x9ba176[_0x152e('0x80')](_0x152e('0x53'),_0x2fdb6c),_0x3f7e88[_0x152e('0x80')](_0x152e('0x53'),_0x5972ea),this[_0x152e('0x37')][_0x152e('0x90')](_0x9ba176[_0x152e('0x72')](_0x152e('0x53')),{'userId':_0x4726e0}),this[_0x152e('0x37')][_0x152e('0x90')](_0x3f7e88[_0x152e('0x72')](_0x152e('0x5f')),{'userId':_0x4726e0});}else{const _0xe5e740=this[_0x152e('0x31')]++,_0x10f599=this[_0x152e('0x31')]++;_0x9ba176[_0x152e('0x80')]('vid_end',_0xe5e740),_0x3f7e88[_0x152e('0x80')](_0x152e('0x5f'),_0x10f599),_0x3f7e88[_0x152e('0x80')]('vid_end',_0x5b7c41),this[_0x152e('0x37')][_0x152e('0x90')](_0xe5e740,{'userId':_0x4726e0}),this[_0x152e('0x37')][_0x152e('0x90')](_0x10f599,{'userId':_0x4726e0});}}[_0x152e('0x98')](_0x2031d8){if(!_0x2031d8['affectsData'])return;const _0x511202=(_0x2031d8=this[_0x152e('0x29')](_0x2031d8,this['_diffRoots']))[_0x152e('0xf')]?_0x2031d8[_0x152e('0xf')]['root']:null,_0x2e2291=_0x2031d8['newRange']?_0x2031d8['newRange'][_0x152e('0x91')]:null;_0x511202&&this[_0x152e('0xc5')][_0x152e('0x102')](_0x2031d8['name']),_0x2e2291&&this[_0x152e('0xc5')][_0x152e('0x90')](_0x2031d8['name'],_0x2031d8['newRange'][_0x152e('0xb0')]());const _0x4a00c2=null===_0x2031d8[_0x152e('0x10')]?null:_0x2031d8[_0x152e('0x10')]||this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x308aec=_0x2031d8['name'];if(!this['_touchedMarkers'][_0x152e('0xf3')](_0x308aec))return void this[_0x152e('0xa2')][_0x152e('0x90')](_0x308aec,{'range':_0x2031d8[_0x152e('0xf')],'userId':_0x4a00c2});const _0x4a70df=this[_0x152e('0xa2')][_0x152e('0x7d')](_0x308aec),_0x2ab8e0=_0x4a70df[_0x152e('0x7f')],_0x47b360=_0x2031d8[_0x152e('0x95')];null==_0x2ab8e0&&null==_0x47b360||_0x2ab8e0&&_0x47b360&&_0x2ab8e0[_0x152e('0xeb')](_0x47b360)?this[_0x152e('0xa2')][_0x152e('0x102')](_0x2031d8[_0x152e('0xcc')]):_0x4a70df[_0x152e('0xef')]=_0x4a00c2;}[_0x152e('0xa5')](_0x4b4b3e,_0x3e6c4e){this[_0x152e('0x36')]['has'](_0x4b4b3e['rootName'])?this['_diffRoots'][_0x152e('0x7d')](_0x4b4b3e[_0x152e('0xfc')])[_0x152e('0xff')]=_0x4b4b3e[_0x152e('0x4e')]:(this['_diffRoots'][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],G(_0x4b4b3e[_0x152e('0xfc')],!0x0)),this[_0x152e('0x22')][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],{}),_0x3e6c4e&&this[_0x152e('0xdd')][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],G(_0x4b4b3e['rootName'],!0x0)));const _0x355a88=null===_0x4b4b3e[_0x152e('0x10')]?null:_0x4b4b3e[_0x152e('0x10')]||this['editor'][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x809b27=this['_touchedRoots'][_0x152e('0x7d')](_0x4b4b3e[_0x152e('0xfc')]);_0x809b27&&_0x809b27[_0x152e('0xef')]===_0x355a88?this[_0x152e('0xfb')][_0x152e('0x102')](_0x4b4b3e[_0x152e('0xfc')]):this[_0x152e('0xfb')][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],{'userId':_0x355a88,'isAttached':_0x4b4b3e[_0x152e('0x4e')]});}[_0x152e('0xb3')](_0x37cf9f){const _0x55bab9=this[_0x152e('0x22')][_0x152e('0x7d')](_0x37cf9f[_0x152e('0x91')][_0x152e('0xfc')]);null===_0x37cf9f[_0x152e('0xbd')]?delete _0x55bab9[_0x37cf9f[_0x152e('0xe9')]]:_0x55bab9[_0x37cf9f[_0x152e('0xe9')]]=_0x37cf9f[_0x152e('0xbd')];}}function q(_0x1dc292){const _0x2dff38=G(_0x1dc292[_0x152e('0xfc')],_0x1dc292[_0x152e('0xec')]());for(const _0x5b9efb of _0x1dc292[_0x152e('0xc2')]()){const _0x3528cc=_0x5b9efb[_0x152e('0x75')](!0x0);_0x2dff38[_0x152e('0x45')](_0x3528cc);}return _0x2dff38;}function G(_0x2cefed,_0x2708db=!0x0){const _0x1cdd82=new _0x287911();return _0x1cdd82[_0x152e('0xfc')]=_0x2cefed,_0x1cdd82['_isAttached']=_0x2708db,_0x1cdd82[_0x152e('0xec')]=()=>_0x1cdd82[_0x152e('0xff')],_0x1cdd82;}function L(_0x5aec21,_0x13459e,_0x153e92){const _0x37fb45='elementEnd'==_0x5aec21[_0x152e('0x11')]?_0x153e92[_0x152e('0xdc')](_0x5aec21[_0x152e('0x44')],'end'):_0x153e92[_0x152e('0x104')](_0x5aec21[_0x152e('0x44')]);return _0x153e92[_0x152e('0x33')](_0x13459e,_0x37fb45[_0x152e('0x39')],_0x37fb45['stickiness']);}function W(_0x121095,_0x441fa8,_0xbab644){const _0xa7fc59=_0x152e('0x77')==_0x121095[_0x152e('0x11')]?_0xbab644['createPositionAt'](_0x121095[_0x152e('0x44')],0x0):_0xbab644[_0x152e('0xc1')](_0x121095[_0x152e('0x44')]);return _0xbab644[_0x152e('0x33')](_0x441fa8,_0xa7fc59['path'],_0xa7fc59[_0x152e('0xda')]);}
23
+ const _0xf4bc=['values','_touchedRoots','_baseIdsRoots','nodes','delete','data','isAttached','_loadRevisionData','getUser','_touchedMarkers','view','_handleInsertOperation','_insertChild','_lastTo','createRangeIn','forEach','_removePendingAction','paragraph','history','slice','reinsert','keys','offset','getWalker','getRevisionRootsAttributes','_transformMarkers','getRevisions','_continueCurrentRevision','authors','_createCurrentRevision','dataToMarker','offsetSize','elementStart','adapter','length','getAttributes','_handleRootOperation','getRevisionDocumentData','loadState','tableCell','getChildren','getOperations','_diffRoots','_addPendingAction','remove','from','addRevisionData','_handleMarkerOperation','addRoot','updateRevisions','newValue','repository','vid_end','revision:','_reset','Users','attributesAfter','_getPreviousFrom','_startingRevisionId','getRevision','creatorId','_bufferedUpdates','getChild','revision-start','isAdd','splitPosition','addRootAttribute','_handleSplitOperation','$text','_appendChild','_touched','markerToData','_loadedStateData','upcast','_processRootBeforeSave','_pendingAction','version','root','setRevisionData','_execute','_bufferUpdate','_createFromRanges','some','_baseRoots','afterInit','_handleRootAttributeOperation','get','_loadState','editor','key','getOperation','_markChanges','sort','_makeIdsRoot','_copyMarkers','createRevision','_cloneOperation','clear','name','plugins','removeRootAttribute','startsWith','toVersion','elementEnd','_revisionDataBuilder','toData','_setConversion','isReady','sendBufferedUpdates','PendingActions','reverse','_isAttached','set','createPositionAt','createPositionFromPath','getLatestVersion','document','processor','useFillerType','documentFragment','item','getCurrentRevisionId','filter','_initialRevisionId','isEqual','insert','RevisionsRepository','creator','_idsRoots','clone','editing','_savedMetaData','model','hasContent','parent','NEGATIVE_INFINITY','getAttribute','fromVersion','_prepareViewToSave','RealTimeCollaborationClient','max','string','previousPosition','getRoot','_fixOperation','Empty\x20document','_update','parse','_handleOperation','_makeModelFromViewString','_fixRange','baseVersion','define','start','find','has','oldRange','_applyOperations','push','merge','stringify','_makeRevision','for','markers','marker','type','_saveMetaData','$graveyard','_fixPosition','path','userId','currentRevision','position','_removeRevisionMarkers','rootName','conversion','sourcePosition','collaboration.channelId','_source','map','_replaceEditorDataWithRevisionData','setSource','_getVidAttributeName','trim','editor-initial-data-replaced-with-revision-data','attributes','_authorId','add','getTransformedByOperation','_getState','createPositionBefore','initialData','_getViewJson','childCount','RevisionTracker','createdAt','data-revision-','_generateTape','attachChange','initial','revisionHistory.resumeUnsavedRevision','insertions','requires','stickiness','targetPosition','Initial\x20revision','authorsIds','init','insertion','dataDowncast','_handleMergeOperation','pluginName','nodeAfter','getData','children','getNodeByPath','source','_lastFrom','getRootNames','_isPendingUpdate','deletion','_handleMoveOperation','includes','move','_calculateMetaData','buildRevisionData','resolve','_revisionId','_getFromVersion','_baseRootsAttributes','insertionPosition','element','getMovedRangeStart','_setAttribute','howMany','bind','_getBaseVids','vid_start','rootsAttributes','deletions','vid','end','_startingVersion','isEnabled','revision','attributesBefore','update','_markers','_removeMetaData','PENDING_ACTION_REVISION_HISTORY','_diffRootsAttributes','marked','then','locale','saveRevision','default','_findInsertionIndex','reInit','size','createRange','config','diffData','fromEntries','toView','roots','_operations'];(function(_0x70f180,_0xf4bc10){const _0x5415d2=function(_0x1cd6b3){while(--_0x1cd6b3){_0x70f180['push'](_0x70f180['shift']());}};_0x5415d2(++_0xf4bc10);}(_0xf4bc,0x81));const _0x5415=function(_0x70f180,_0xf4bc10){_0x70f180=_0x70f180-0x0;let _0x5415d2=_0xf4bc[_0x70f180];return _0x5415d2;};import{Users as _0x388752}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x385ae0,PendingActions as _0x1b4987}from'ckeditor5/src/core';import{logWarning as _0x40d9a9,uid as _0x57db68}from'ckeditor5/src/utils';import{Position as _0x5e8780,Range as _0x399a01,Element as _0x2ace52,DocumentFragment as _0x17a86e,ViewText as _0x5c4172,ViewElement as _0x5928d8,ViewContainerElement as _0x403e9a,ViewAttributeElement as _0x34cc93,ViewEmptyElement as _0x238dd3,ViewRawElement as _0xdf6e92,ViewUIElement as _0x4bc587,ViewDocumentFragment as _0x3d3b5c}from'ckeditor5/src/engine';import _0x333dd9 from'./revisionsrepository';import{getTranslation as _0x2ae7c9}from'./utils/common-translations';import{cloneDeep as _0xe26426,isEqual as _0x3f2bb3}from'lodash-es';const B={'c':_0x403e9a,'a':_0x34cc93,'e':_0x238dd3,'r':_0xdf6e92,'u':_0x4bc587};export default class l extends _0x385ae0{static get[_0x5415('0x52')](){return _0x5415('0x41');}static get[_0x5415('0x49')](){return[_0x388752,_0x333dd9,_0x1b4987];}constructor(_0x22508f){super(_0x22508f),this[_0x5415('0xaa')]=null,this[_0x5415('0x2a')]=null,this[_0x5415('0xf1')]=new H(this['editor']),this[_0x5415('0x104')]=this[_0x5415('0xe1')][_0x5415('0x83')][_0x5415('0xdf')](_0x5415('0x30'))||_0x5415('0x46'),this[_0x5415('0xc6')]=new Map(),this[_0x5415('0xd1')]=null;const _0x1f08cd=_0x57db68();this[_0x5415('0x31')]={'history':this[_0x5415('0xe1')]['model'][_0x5415('0xfd')]['history'],'getLatestVersion':()=>Promise[_0x5415('0x61')](this[_0x5415('0xe1')][_0x5415('0x3')][_0x5415('0xfd')][_0x5415('0xd5')]),'getCurrentRevisionId':()=>_0x1f08cd},this['set'](_0x5415('0xf4'),!0x1),this[_0x5415('0xf9')](_0x5415('0x72'),!0x0),this[_0x5415('0xf9')](_0x5415('0x5a'),!0x1),this[_0x5415('0xe1')][_0x5415('0x83')][_0x5415('0x17')](_0x5415('0x47'),!0x0),this[_0x5415('0xe1')][_0x5415('0x2e')][_0x5415('0x21')](_0x5415('0xd2'))[_0x5415('0xa7')]({'view':_0x5415('0x73')});}[_0x5415('0x4e')](){this[_0x5415('0xbc')]=this[_0x5415('0xe1')][_0x5415('0xec')][_0x5415('0xdf')](_0x5415('0x107')),this[_0x5415('0xf3')](),this['editor'][_0x5415('0x8e')]['on']('ready',()=>{const _0x95d4f1=this[_0x5415('0xbc')][_0x5415('0xc4')](0x0),_0x102edb=_0x95d4f1&&null===_0x95d4f1[_0x5415('0x108')]?_0x95d4f1:null;if(this[_0x5415('0xa4')]=!!_0x102edb&&this[_0x5415('0xe1')][_0x5415('0x83')]['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins'][_0x5415('0x1a')](_0x5415('0xa'))){const _0x46c03e=this[_0x5415('0x31')][_0x5415('0x102')](),_0x2c1847=this[_0x5415('0xbc')][_0x5415('0xc4')](_0x46c03e);if(_0x2c1847)this[_0x5415('0x71')]=_0x2c1847[_0x5415('0x8')],this[_0x5415('0xa4')]=!0x1;else{const _0x56ffbe=this[_0x5415('0x31')][_0x5415('0x9b')][_0x5415('0x88')][_0x5415('0x19')](_0x1c0b38=>!_0x1c0b38['_isInit']),_0x10a949=_0x56ffbe?_0x56ffbe[_0x5415('0x16')]:this[_0x5415('0x31')][_0x5415('0x9b')][_0x5415('0xd5')];_0x95d4f1?(_0x95d4f1[_0x5415('0xef')]<_0x10a949&&_0x95d4f1[_0x5415('0x11')]({'toVersion':_0x10a949}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x102edb['id'],this[_0x5415('0x71')]=_0x102edb[_0x5415('0x8')]):(this['_startingVersion']=_0x95d4f1['toVersion'],this[_0x5415('0xa4')]=!0x1)):(this[_0x5415('0x71')]=_0x10a949,this[_0x5415('0xa4')]=!0x1);}}else _0x102edb&&(this[_0x5415('0xe1')][_0x5415('0x3')]['document'][_0x5415('0x9b')][_0x5415('0xd5')]=Math[_0x5415('0xb')](_0x102edb[_0x5415('0xef')],this[_0x5415('0xe1')]['model']['document'][_0x5415('0x9b')]['version']),_0x102edb[_0x5415('0x8')]===_0x102edb[_0x5415('0xef')]?(0x0!==_0x102edb[_0x5415('0x8')]&&(this[_0x5415('0x31')][_0x5415('0x102')]=()=>_0x102edb['id']),this[_0x5415('0xa4')]=!0x1):this[_0x5415('0xa4')]&&(this[_0x5415('0x31')][_0x5415('0x102')]=()=>_0x102edb['id'],this[_0x5415('0x71')]=_0x102edb['fromVersion'])),this['_continueCurrentRevision']||(this[_0x5415('0x71')]=this[_0x5415('0xe1')][_0x5415('0x3')][_0x5415('0xfd')]['version']);this['_revisionDataBuilder'][_0x5415('0x4e')](this['_source'][_0x5415('0x9b')]),this['_createInitialRevision'](this[_0x5415('0x71')]),this[_0x5415('0xa6')](this['_startingVersion']),this[_0x5415('0xaa')]&&this[_0x5415('0xf5')]();}),this[_0x5415('0x6a')](_0x5415('0xf4'))['to'](this,_0x5415('0x5a'),_0x37b452=>!_0x37b452);}async[_0x5415('0xdd')](){if(this['repository']['length']>0x0){const _0x33a369=this[_0x5415('0xbc')][_0x5415('0xc4')](0x0),_0x3820a4=await this['getRevisionDocumentData'](_0x33a369),_0x319ac8=await this['getRevisionRootsAttributes'](_0x33a369);this[_0x5415('0x33')](_0x3820a4,_0x319ac8);}}[_0x5415('0x34')](_0x1fb279){this[_0x5415('0x31')]=_0x1fb279;}async[_0x5415('0x75')](){const _0x5994b6=await this[_0x5415('0x31')][_0x5415('0xfc')]();if(_0x5994b6>this[_0x5415('0x2a')][_0x5415('0xef')]){await this[_0x5415('0xe0')]();const _0x115bcc=this[_0x5415('0x60')]({'revision':this[_0x5415('0x2a')],'to':_0x5994b6});_0x115bcc[_0x5415('0xa5')]=_0x115bcc['authorsIds'][_0x5415('0x32')](_0x5da442=>this[_0x5415('0xe1')][_0x5415('0xec')][_0x5415('0xdf')](_0x5415('0xc0'))['getUser'](_0x5da442)),this['currentRevision'][_0x5415('0x11')](_0x115bcc);}}async[_0x5415('0xe0')](){this[_0x5415('0xa4')]&&!this[_0x5415('0xd1')]&&(await this[_0x5415('0x90')](this[_0x5415('0x2a')]),this[_0x5415('0xf1')][_0x5415('0xaf')](this[_0x5415('0x2a')]),this[_0x5415('0xd1')]={'fromVersion':this[_0x5415('0x2a')]['fromVersion'],'authors':this[_0x5415('0x2a')][_0x5415('0xa5')][_0x5415('0x9c')]()});}async[_0x5415('0x7d')](_0x5ec112={},_0x319ab6=null){const _0x579c02=[];await this[_0x5415('0xe0')](),this['_continueCurrentRevision']=!0x1,_0x319ab6>this[_0x5415('0x2a')]['toVersion']&&(_0x319ab6=null),null===_0x319ab6&&(_0x319ab6=await this['_source'][_0x5415('0xfc')]());const _0x565e43=this[_0x5415('0x63')](_0x319ab6),_0x5d2e88=this[_0x5415('0x60')]({'from':_0x565e43,'to':_0x319ab6});if(this[_0x5415('0x2a')][_0x5415('0xef')]<_0x319ab6){const _0x11b09b=this[_0x5415('0x60')]({'revision':this[_0x5415('0x2a')],'from':_0x319ab6,'to':_0x319ab6});_0x11b09b[_0x5415('0xa5')]=[],_0x11b09b[_0x5415('0x4d')]=[],_0x11b09b['id']=this[_0x5415('0x2a')]['id'],this[_0x5415('0x2a')][_0x5415('0x11')](_0x11b09b,!0x0),delete _0x11b09b[_0x5415('0xa5')],_0x579c02[_0x5415('0x1d')](_0x11b09b);}_0x5ec112[_0x5415('0xc5')]=this[_0x5415('0xe1')][_0x5415('0xec')][_0x5415('0xdf')](_0x5415('0xc0'))['me']['id'],_0x5ec112[_0x5415('0xeb')]=_0x5ec112[_0x5415('0xeb')]||null,_0x5ec112['id']=_0x5ec112['id']||_0x57db68(),_0x5ec112={..._0x5ec112,..._0x5d2e88};const _0x1514fe=this[_0x5415('0xb7')](_0x5ec112);_0x579c02['push'](_0x5ec112);const _0xe5bee8=this[_0x5415('0xbc')]['getIndex'](_0x1514fe);if(0x0!==_0xe5bee8){const _0x47e6c3=this['repository'][_0x5415('0xc4')](_0xe5bee8-0x1);if(_0x47e6c3[_0x5415('0x8')]!==_0x319ab6){const _0x18ae1e=this[_0x5415('0xf1')][_0x5415('0x54')](_0x319ab6,_0x47e6c3[_0x5415('0xef')]),_0x116296={'id':_0x47e6c3['id'],'diffData':_0x18ae1e[_0x5415('0x84')],'authorsIds':_0x18ae1e['authorsIds'],'authors':_0x18ae1e[_0x5415('0x4d')][_0x5415('0x32')](_0x1540e5=>this[_0x5415('0xe1')][_0x5415('0xec')][_0x5415('0xdf')]('Users')[_0x5415('0x91')](_0x1540e5)),'fromVersion':_0x319ab6};_0x47e6c3===this['currentRevision']&&(_0x116296[_0x5415('0x42')]=new Date(_0x5ec112[_0x5415('0x42')]['getTime']()+0xa)),_0x47e6c3[_0x5415('0x11')](_0x116296,!0x0),delete _0x116296[_0x5415('0xa5')],_0x579c02[_0x5415('0x1d')](_0x116296);}}if(this[_0x5415('0xaa')]){for(const _0x4683a5 of _0x579c02)this[_0x5415('0xd9')](_0x4683a5['id'],_0x4683a5,!0x0);this['sendBufferedUpdates']();}return _0x1514fe;}[_0x5415('0xb7')](_0x4fe6be){const _0x2f3d98=this[_0x5415('0xbc')][_0x5415('0xe8')](_0x4fe6be);return this[_0x5415('0xaa')]&&_0x2f3d98['on'](_0x5415('0x11'),(_0x4c6876,_0x1158a8,_0x167622)=>{_0x167622||(this[_0x5415('0xd9')](_0x1158a8['id'],_0x1158a8,!0x0),this['sendBufferedUpdates']());}),this[_0x5415('0xbc')]['addRevision'](_0x2f3d98,this['_findInsertionIndex'](_0x2f3d98)),_0x2f3d98;}async[_0x5415('0xae')](_0x365b7e){await this[_0x5415('0x90')](_0x365b7e);const _0xa72d9a={};for(const _0x433234 in _0x365b7e['diffData']){if(_0x365b7e['diffData'][_0x433234][_0x5415('0x45')]&&!_0x365b7e[_0x5415('0x84')][_0x433234][_0x5415('0x45')][_0x5415('0x8f')])continue;const _0x130086=this[_0x5415('0x2c')](JSON[_0x5415('0x12')](_0x365b7e[_0x5415('0x84')][_0x433234]['insertions'])),_0xc6bc67=this[_0x5415('0xe1')]['editing'][_0x5415('0x93')][_0x5415('0xfd')],_0x590d7c=new _0x3d3b5c(_0xc6bc67,_0x130086[_0x5415('0x32')](_0x56a5e5=>J(_0x56a5e5,this[_0x5415('0xe1')])));this[_0x5415('0xe1')][_0x5415('0x8e')]['processor']['useFillerType'](_0x5415('0x7a')),_0xa72d9a[_0x433234]=this[_0x5415('0xe1')][_0x5415('0x8e')]['processor'][_0x5415('0xf2')](_0x590d7c),this[_0x5415('0xe1')][_0x5415('0x8e')][_0x5415('0xfe')][_0x5415('0xff')](_0x5415('0x7e'));}return _0xa72d9a;}async[_0x5415('0xa1')](_0x3be1c2){await this[_0x5415('0x90')](_0x3be1c2);const _0x227de3={};for(const _0x2e9040 in _0x3be1c2[_0x5415('0x84')])_0x3be1c2[_0x5415('0x84')][_0x2e9040]['attachChange']&&!_0x3be1c2[_0x5415('0x84')][_0x2e9040][_0x5415('0x45')][_0x5415('0x8f')]||(_0x227de3[_0x2e9040]=_0x3be1c2[_0x5415('0x84')][_0x2e9040][_0x5415('0xc1')]||{});return _0x227de3;}['sendBufferedUpdates'](){if(0x0===this[_0x5415('0xc6')][_0x5415('0x81')])return;if(this[_0x5415('0x5a')])return;let _0x3d3f7d=Array[_0x5415('0xb6')](this[_0x5415('0xc6')][_0x5415('0x89')]());this['_bufferedUpdates'][_0x5415('0xea')]();for(let _0x3664f1=0x0;_0x3664f1<_0x3d3f7d[_0x5415('0xab')];_0x3664f1++){const _0x31701f=_0x3d3f7d[_0x3664f1];let _0x529043=!0x1;for(const _0x3588c7 of Object[_0x5415('0x9e')](_0x31701f))void 0x0===_0x31701f[_0x3588c7]?delete _0x31701f[_0x3588c7]:'id'!==_0x3588c7&&(_0x529043=!0x0);_0x529043||(_0x3d3f7d[_0x3664f1]=null);}if(_0x3d3f7d=_0x3d3f7d['filter'](_0x48d234=>null!==_0x48d234),!_0x3d3f7d[_0x5415('0xab')])return;for(let _0x19a804=0x0;_0x19a804<_0x3d3f7d['length'];_0x19a804++){const _0x134722=_0x3d3f7d[_0x19a804];void 0x0!==_0x134722['fromVersion']&&void 0x0===_0x134722[_0x5415('0xef')]&&(_0x134722['toVersion']=this[_0x5415('0xbc')][_0x5415('0xc4')](_0x134722['id'])[_0x5415('0xef')]),void 0x0!==_0x134722[_0x5415('0xef')]&&void 0x0===_0x134722[_0x5415('0x8')]&&(_0x134722[_0x5415('0x8')]=this[_0x5415('0xbc')][_0x5415('0xc4')](_0x134722['id'])[_0x5415('0x8')]);}const _0x426d88=this[_0x5415('0xe1')][_0x5415('0x83')][_0x5415('0xdf')](_0x5415('0x30'));this[_0x5415('0x5a')]=!0x0,this[_0x5415('0xb4')](),this[_0x5415('0xaa')][_0x5415('0xba')](_0x3d3f7d,_0x426d88)['finally'](()=>{this[_0x5415('0x5a')]=!0x1;})['then'](_0x5f046c=>{if(_0x5f046c)for(const _0x5eafaa of _0x5f046c)this[_0x5415('0xd7')]({'id':_0x5eafaa['id'],'createdAt':_0x5eafaa[_0x5415('0x42')]});this['_removePendingAction'](),this['sendBufferedUpdates']();});}[_0x5415('0x33')](_0x2ab00b,_0x3eb164){let _0xbb1ad9=this[_0x5415('0xe1')][_0x5415('0x83')][_0x5415('0xdf')](_0x5415('0x3e')),_0x3b2d40=this[_0x5415('0xe1')][_0x5415('0x83')][_0x5415('0xdf')](_0x5415('0x6d'));if(void 0x0===_0xbb1ad9){_0xbb1ad9={};for(const _0x34b7bf of this[_0x5415('0xe1')][_0x5415('0x3')][_0x5415('0xfd')][_0x5415('0x59')]())_0xbb1ad9[_0x34b7bf]='';}if(_0x5415('0xc')==typeof _0xbb1ad9&&(_0xbb1ad9={'main':_0xbb1ad9}),void 0x0===_0x3b2d40){_0x3b2d40={};for(const _0x137ce6 of this['editor'][_0x5415('0x3')][_0x5415('0xfd')][_0x5415('0x59')]())_0x3b2d40[_0x137ce6]={};}let _0x9e8566=!0x1;const _0x4f91e6=Object[_0x5415('0x9e')](_0xbb1ad9),_0x4332e4=Object['keys'](_0x2ab00b);for(const _0x34ccb6 of _0x4f91e6){if(_0xbb1ad9[_0x34ccb6]!==_0x2ab00b[_0x34ccb6]&&''!==_0xbb1ad9[_0x34ccb6][_0x5415('0x36')]()){_0x9e8566=!0x0;break;}if(!_0x3f2bb3(_0x3b2d40[_0x34ccb6],_0x3eb164[_0x34ccb6])&&Object[_0x5415('0x9e')](_0x3b2d40[_0x34ccb6])[_0x5415('0xab')]>0x0){_0x9e8566=!0x0;break;}}_0x9e8566||(_0x9e8566=_0x4332e4[_0x5415('0xdb')](_0x75ca45=>!this[_0x5415('0xe1')][_0x5415('0x3')]['document'][_0x5415('0xe')](_0x75ca45))),_0x9e8566&&_0x40d9a9(_0x5415('0x37'),{'editorData':_0xbb1ad9,'editorRootsAttributes':_0x3b2d40,'revisionData':_0x2ab00b,'revisionRootsAttributes':_0x3eb164}),this[_0x5415('0xe1')][_0x5415('0x83')][_0x5415('0xf9')](_0x5415('0x3e'),_0x2ab00b),this[_0x5415('0xe1')][_0x5415('0x83')][_0x5415('0xf9')](_0x5415('0x6d'),_0x3eb164);}[_0x5415('0xb4')](){if(!this[_0x5415('0xd4')]){const _0x4ab784=this['editor']['plugins']['get'](_0x5415('0xf6'));this['_pendingAction']=_0x4ab784[_0x5415('0x3a')](_0x2ae7c9(this[_0x5415('0xe1')]['locale'],_0x5415('0x78')));}}[_0x5415('0x99')](){this[_0x5415('0xd4')]&&(this[_0x5415('0xe1')][_0x5415('0xec')][_0x5415('0xdf')]('PendingActions')[_0x5415('0xb5')](this[_0x5415('0xd4')]),this['_pendingAction']=null);}[_0x5415('0x7f')](_0x194269){const _0x290c3a=this[_0x5415('0xbc')]['getRevisions']();_0x290c3a[_0x5415('0xf7')]();let _0x423537=0x0;for(;_0x423537<_0x290c3a['length'];){const _0x25cd2d=_0x290c3a[_0x423537];if(_0x25cd2d===this['currentRevision']){_0x423537++;continue;}if(_0x25cd2d['id']===this[_0x5415('0x104')])break;const _0x5d8af9=_0x194269[_0x5415('0xef')]-_0x25cd2d[_0x5415('0xef')]||_0x194269['fromVersion']-_0x25cd2d[_0x5415('0x8')];if(_0x5d8af9>0x0)break;if(_0x5d8af9<0x0)_0x423537++;else{if(!_0x194269[_0x5415('0x108')]&&_0x25cd2d[_0x5415('0x108')])break;if(_0x25cd2d[_0x5415('0x108')]||!_0x194269['creator']){if(_0x194269['createdAt']>_0x25cd2d[_0x5415('0x42')])break;_0x423537++;}else _0x423537++;}}return _0x423537;}['setRevisionData'](_0x40f370){const _0x42dbab=this[_0x5415('0xbc')][_0x5415('0xc4')](_0x40f370['id']);if(_0x40f370[_0x5415('0x42')]&&(_0x40f370[_0x5415('0x42')]=new Date(_0x40f370[_0x5415('0x42')])),_0x40f370[_0x5415('0x4d')]){const _0x4858c6=this['editor'][_0x5415('0xec')]['get'](_0x5415('0xc0'));_0x40f370[_0x5415('0xa5')]=_0x40f370[_0x5415('0x4d')][_0x5415('0x32')](_0x13092b=>_0x4858c6[_0x5415('0x91')](_0x13092b));}_0x42dbab['_update'](_0x40f370,!0x0);}['buildRevisionData']({revision:_0x5de36c=null,from:_0x50f7a7=null,to:_0x1f8dad=null}){_0x50f7a7=null!==_0x50f7a7?_0x50f7a7:_0x5de36c[_0x5415('0x8')],_0x1f8dad=null!==_0x1f8dad?_0x1f8dad:_0x5de36c[_0x5415('0xef')];const _0x4f652f=this[_0x5415('0xf1')][_0x5415('0x54')](_0x50f7a7,_0x1f8dad),_0xde4785={'diffData':_0x4f652f[_0x5415('0x84')],'authorsIds':_0x4f652f['authorsIds'],'fromVersion':_0x50f7a7,'toVersion':_0x1f8dad};if(!_0x5de36c||_0x1f8dad!==_0x5de36c[_0x5415('0xef')]){const _0x10f62a=_0x1f8dad-0x1,_0x4744f5=this[_0x5415('0x31')][_0x5415('0x9b')][_0x5415('0xe3')](_0x10f62a);_0xde4785[_0x5415('0x42')]=_0x4744f5&&_0x4744f5[_0x5415('0x42')]||new Date();}if(this[_0x5415('0xd1')]&&_0x50f7a7===this['_loadedStateData'][_0x5415('0x8')])for(const _0x3e2574 of this[_0x5415('0xd1')][_0x5415('0xa5')])_0xde4785[_0x5415('0x4d')][_0x5415('0x5d')](_0x3e2574['id'])||_0xde4785[_0x5415('0x4d')]['push'](_0x3e2574['id']);return _0xde4785;}['_loadRevisionData'](_0x47ec38){if(!_0x47ec38||_0x47ec38[_0x5415('0x84')])return Promise[_0x5415('0x61')]();{const _0x30c84b=this[_0x5415('0xe1')][_0x5415('0x83')][_0x5415('0xdf')](_0x5415('0x30'));return this['adapter'][_0x5415('0xc4')]({'channelId':_0x30c84b,'revisionId':_0x47ec38['id']})[_0x5415('0x7b')](_0x56047a=>{_0x47ec38[_0x5415('0x84')]=_0x56047a[_0x5415('0x84')];});}}[_0x5415('0xd9')](_0xa2bbbc,_0x57c575,_0x193a39){if(this['_bufferedUpdates'][_0x5415('0x1a')](_0xa2bbbc)){const _0x65b1ea=this[_0x5415('0xc6')][_0x5415('0xdf')](_0xa2bbbc);_0x57c575=_0x193a39?{..._0x65b1ea,..._0x57c575}:{..._0x57c575,..._0x65b1ea};}this[_0x5415('0xc6')][_0x5415('0xf9')](_0xa2bbbc,_0x57c575);}[_0x5415('0x63')](_0x3abd54){const _0x30d7da=this[_0x5415('0xbc')][_0x5415('0xa3')]();_0x30d7da[_0x5415('0xf7')](),_0x30d7da['shift']();const _0x53ed0e=_0x30d7da['find'](_0x1d594c=>_0x1d594c[_0x5415('0xef')]<=_0x3abd54)[_0x5415('0xef')];return _0x53ed0e<this[_0x5415('0x71')]?this[_0x5415('0x71')]:_0x53ed0e;}['_createInitialRevision'](_0x2b1b3b){const _0xf5304a=this[_0x5415('0xbc')]['getRevision'](this[_0x5415('0xbc')][_0x5415('0xab')]-0x1);if(_0xf5304a)this[_0x5415('0x104')]=_0xf5304a['id'];else{const _0x3e1633=!this['editor'][_0x5415('0x3')]['document'][_0x5415('0x87')]['find'](_0xe5d112=>this[_0x5415('0xe1')]['model'][_0x5415('0x4')](_0xe5d112)),_0x2ea0d5=this[_0x5415('0xe1')][_0x5415('0xec')][_0x5415('0xdf')](_0x5415('0xc0'))['me']['id'],_0x1537a5=_0x2ae7c9(this[_0x5415('0xe1')][_0x5415('0x7c')],_0x3e1633?_0x5415('0x10'):_0x5415('0x4c'));this['_makeRevision']({'from':_0x2b1b3b,'to':_0x2b1b3b,'id':this[_0x5415('0x104')],'name':_0x1537a5,'creatorId':_0x2ea0d5});}}[_0x5415('0xa6')](_0x119a92){const _0x2cd003=this[_0x5415('0x31')]['getCurrentRevisionId']();this[_0x5415('0x2a')]=this['repository'][_0x5415('0xc4')](_0x2cd003),this[_0x5415('0x2a')]||(this['currentRevision']=this[_0x5415('0x20')]({'from':_0x119a92,'to':_0x119a92,'id':_0x2cd003,'name':'','creatorId':null}));}[_0x5415('0x20')]({name:_0x17dd20,from:_0x4a17df,to:_0x4e8a68,creatorId:_0x53f7fc,id:_0x45c9af}){const _0x29cf1d=this[_0x5415('0x60')]({'from':_0x4a17df,'to':_0x4e8a68});_0x29cf1d[_0x5415('0xeb')]=_0x17dd20,_0x29cf1d[_0x5415('0xc5')]=_0x53f7fc,_0x29cf1d['id']=_0x45c9af;const _0x565309=this['addRevisionData'](_0x29cf1d);return this[_0x5415('0xaa')]&&this[_0x5415('0xd9')](_0x29cf1d['id'],_0x29cf1d,!0x0),_0x565309;}[_0x5415('0xf3')](){this['editor']['conversion']['for'](_0x5415('0x50'))[_0x5415('0xd0')]({'model':'revision'});}[_0x5415('0x2c')](_0x5c12b6){return(_0x5c12b6=_0x5c12b6[_0x5415('0x103')](_0x2a31b5=>!_0x2a31b5[_0x5415('0xeb')]||_0x5415('0xc8')!==_0x2a31b5['name']&&'revision-end'!==_0x2a31b5[_0x5415('0xeb')]))[_0x5415('0x98')](_0xd00da7=>{_0x5415('0xc')!=typeof _0xd00da7&&(_0xd00da7[_0x5415('0x55')]=this[_0x5415('0x2c')](_0xd00da7[_0x5415('0x55')]),_0xd00da7[_0x5415('0x38')]=_0xd00da7[_0x5415('0x38')]['filter'](_0x29b073=>!_0x29b073[0x0]['startsWith'](_0x5415('0x43'))));}),_0x5c12b6;}}function J(_0x1d715f,_0x2a3a65){const _0x102d29=_0x2a3a65[_0x5415('0x1')][_0x5415('0x93')][_0x5415('0xfd')];if(_0x5415('0xc')==typeof _0x1d715f)return new _0x5c4172(_0x102d29,_0x1d715f);{const _0x1a5185=_0x1d715f[_0x5415('0x55')][_0x5415('0x32')](_0x504ee9=>J(_0x504ee9,_0x2a3a65));return new(B[_0x1d715f['type']]||_0x5928d8)(_0x102d29,_0x1d715f['name'],_0x1d715f[_0x5415('0x38')],_0x1a5185);}}class H{constructor(_0x3b9d3b){this[_0x5415('0xe1')]=_0x3b9d3b,this['_savedMetaData']=new Map(),this[_0x5415('0x58')]=-0x1,this[_0x5415('0x96')]=-0x1,this['_markers']=new Map(),this[_0x5415('0xb3')]=new Map(),this[_0x5415('0x79')]=new Map(),this['_baseRoots']=new Map(),this[_0x5415('0x64')]=new Map(),this['_idsRoots']=new Map(),this[_0x5415('0x8b')]=new Map(),this[_0x5415('0xcf')]=new Map(),this[_0x5415('0x92')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}[_0x5415('0x4e')](_0x558467){this[_0x5415('0x57')]=_0x558467;const _0x1c13ae=new Map(),_0x112b60=new Map(),_0x5965ac=this[_0x5415('0xe1')][_0x5415('0x3')]['document'][_0x5415('0x87')][_0x5415('0x32')](_0x5ccee3=>_0x5ccee3[_0x5415('0x2d')]);for(const _0x1075c9 of _0x5965ac){const _0x120942=this[_0x5415('0xe1')]['model'][_0x5415('0xfd')]['getRoot'](_0x1075c9),_0x52dbe6=q(_0x120942);_0x1c13ae[_0x5415('0xf9')](_0x1075c9,_0x52dbe6),_0x112b60[_0x5415('0xf9')](_0x1075c9,Object[_0x5415('0x85')](_0x120942[_0x5415('0xac')]()));}const _0x1aec42=Array[_0x5415('0xb6')](this[_0x5415('0xe1')]['model'][_0x5415('0x22')])[_0x5415('0x32')](_0x30c296=>[_0x30c296[_0x5415('0xeb')],_0x30c296['getRange']()]),_0xd17bb2=this[_0x5415('0x57')][_0x5415('0xd5')];this[_0x5415('0x25')](_0xd17bb2,_0x1c13ae,_0x1aec42,_0x112b60),this[_0x5415('0xc3')]=this['_revisionId'];const _0x2e3fa0=new Map(),_0x2b18e1=new Map();for(const _0x3b4043 of _0x5965ac){const _0x18182f=G(_0x3b4043);_0x2e3fa0[_0x5415('0xf9')](_0x3b4043,_0x18182f),_0x2b18e1[_0x5415('0xf9')](_0x3b4043,{});}this[_0x5415('0x25')](Number[_0x5415('0x6')],_0x2e3fa0,[],_0x2b18e1);}['getData'](_0x2e34a1,_0x2b72ed){if(this['_lastFrom']===_0x2e34a1&&this[_0x5415('0x96')]<=_0x2b72ed)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this[_0x5415('0x1c')](this[_0x5415('0x96')],_0x2b72ed,!0x0);else{if(!this[_0x5415('0x2')][_0x5415('0x1a')](_0x2e34a1)){const _0x3c0e11=this[_0x5415('0xc2')](_0x2e34a1);this[_0x5415('0x5f')](_0x3c0e11,_0x2e34a1,!0x1);}this[_0x5415('0x5f')](_0x2e34a1,_0x2b72ed,!0x0);}return this['_lastFrom']=_0x2e34a1,this['_lastTo']=_0x2b72ed,this[_0x5415('0x3c')]();}['loadState'](_0x143e0e){this[_0x5415('0xbf')](),this[_0x5415('0x58')]=_0x143e0e[_0x5415('0x8')],this[_0x5415('0x96')]=_0x143e0e[_0x5415('0xef')];for(const _0x52081c in _0x143e0e[_0x5415('0x84')]){const _0x499e45=_0x143e0e[_0x5415('0x84')][_0x52081c][_0x5415('0x45')],_0x462d68=_0xe26426(_0x143e0e['diffData'][_0x52081c][_0x5415('0x74')])||{},_0x532eb4=this['_makeModelFromViewString'](_0x143e0e[_0x5415('0x84')][_0x52081c][_0x5415('0x6e')]);_0x532eb4[_0x5415('0x2d')]=_0x52081c,_0x532eb4[_0x5415('0xf8')]=!_0x499e45||!_0x499e45[_0x5415('0x8f')],_0x532eb4[_0x5415('0x8f')]=()=>_0x532eb4[_0x5415('0xf8')],this['_baseRoots'][_0x5415('0xf9')](_0x52081c,_0x532eb4),this[_0x5415('0x64')][_0x5415('0xf9')](_0x52081c,_0x462d68),_0x499e45&&this['_touchedRoots'][_0x5415('0xf9')](_0x52081c,_0x499e45);const _0x3fe5cf=this[_0x5415('0xe6')](_0x532eb4);this[_0x5415('0x8b')]['set'](_0x52081c,_0x3fe5cf);for(const [_0xb0d1e2,_0x20a68f]of _0x532eb4[_0x5415('0x22')]){if(!_0xb0d1e2[_0x5415('0xee')](_0x5415('0xbe')))continue;const _0x4fef5a=_0xb0d1e2['split'](':')[0x2];for(const _0x87b038 of _0x20a68f['getWalker']({'singleCharacters':!0x0})){const _0x487292=this[_0x5415('0x35')](_0x87b038),_0x1eae94=_0x5415('0xf0')==_0x87b038[_0x5415('0x24')]?_0x87b038[_0x5415('0xd')][_0x5415('0x28')][_0x5415('0x9c')](0x0,-0x1):_0x87b038[_0x5415('0xd')][_0x5415('0x28')],_0x1261a4=_0x3fe5cf['getNodeByPath'](_0x1eae94)[_0x5415('0x7')](_0x487292);this['_touched'][_0x5415('0xf9')](_0x1261a4,{'userId':_0x4fef5a});}}}this['_startingRevisionId']=this[_0x5415('0x62')];const _0x580612=[...Array(this[_0x5415('0x62')])[_0x5415('0x9e')]()][_0x5415('0x9c')](0x1)['filter'](_0x198653=>!this[_0x5415('0xcf')][_0x5415('0x1a')](_0x198653));let _0x1815d5=0x0;const _0x19bf95=new Map();for(const _0x3e895d in _0x143e0e[_0x5415('0x84')]){const _0x2bf297=_0x143e0e['diffData'][_0x3e895d][_0x5415('0x45')],_0x247cbe=_0xe26426(_0x143e0e[_0x5415('0x84')][_0x3e895d]['attributesAfter'])||{},_0x4b4dc0=this[_0x5415('0x14')](_0x143e0e['diffData'][_0x3e895d]['insertions']);_0x4b4dc0[_0x5415('0x2d')]=_0x3e895d,_0x4b4dc0[_0x5415('0xf8')]=!_0x2bf297||_0x2bf297[_0x5415('0x8f')],_0x4b4dc0[_0x5415('0x8f')]=()=>_0x4b4dc0[_0x5415('0xf8')],this[_0x5415('0xb3')][_0x5415('0xf9')](_0x3e895d,_0x4b4dc0),this[_0x5415('0x79')][_0x5415('0xf9')](_0x3e895d,_0x247cbe);const _0x3c567a=this['_makeIdsRoot'](_0x4b4dc0,Number[_0x5415('0x6')]);this[_0x5415('0x109')][_0x5415('0xf9')](_0x3e895d,_0x3c567a),_0x19bf95[_0x5415('0xf9')](_0x3e895d,_0x4b4dc0['isAttached']()?_0x247cbe:{});for(const [_0x1975fd,_0x5798b8]of _0x4b4dc0['markers']){if(!_0x1975fd['startsWith']('revision:'))continue;const _0x32afb7=_0x1975fd['split'](':')[0x2];for(const _0x14b6f4 of _0x5798b8[_0x5415('0xa0')]({'singleCharacters':!0x0})){const _0x17080e=this[_0x5415('0x35')](_0x14b6f4),_0x527b6d=this[_0x5415('0x62')]++,_0x2ddbe7='elementEnd'==_0x14b6f4[_0x5415('0x24')]?_0x14b6f4['previousPosition']['path'][_0x5415('0x9c')](0x0,-0x1):_0x14b6f4[_0x5415('0xd')][_0x5415('0x28')];_0x3c567a[_0x5415('0x56')](_0x2ddbe7)[_0x5415('0x68')](_0x17080e,_0x527b6d),this['_touched'][_0x5415('0xf9')](_0x527b6d,{'userId':_0x32afb7});}}for(const _0x4bbea0 of this[_0x5415('0xe1')][_0x5415('0x3')][_0x5415('0x97')](_0x4b4dc0)[_0x5415('0xa0')]({'singleCharacters':!0x0})){const _0x40a62b=this[_0x5415('0x35')](_0x4bbea0),_0x119d89=_0x5415('0xf0')==_0x4bbea0['type']?_0x4bbea0[_0x5415('0xd')][_0x5415('0x28')]['slice'](0x0,-0x1):_0x4bbea0[_0x5415('0xd')][_0x5415('0x28')],_0x24faa3=_0x3c567a[_0x5415('0x56')](_0x119d89);_0x24faa3[_0x5415('0x7')](_0x40a62b)>0x0||_0x24faa3[_0x5415('0x68')](_0x40a62b,_0x580612[_0x1815d5++]);}for(const [_0x1cdf31,_0x36d84b]of _0x4b4dc0[_0x5415('0x22')])_0x1cdf31[_0x5415('0xee')]('revision:')||this[_0x5415('0x76')]['set'](_0x1cdf31,_0x36d84b);}const _0x2dd22e=G(_0x5415('0x26'));this[_0x5415('0xdc')][_0x5415('0xf9')](_0x5415('0x26'),_0x2dd22e),this[_0x5415('0x8b')][_0x5415('0xf9')](_0x5415('0x26'),this[_0x5415('0xe6')](_0x2dd22e,0x1));const _0x4081b4=G(_0x5415('0x26'));this[_0x5415('0xb3')][_0x5415('0xf9')](_0x5415('0x26'),_0x4081b4),this[_0x5415('0x109')][_0x5415('0xf9')]('$graveyard',this[_0x5415('0xe6')](_0x4081b4,0x1));const _0x3da469=Array[_0x5415('0xb6')](this[_0x5415('0xb3')])[_0x5415('0x32')](([_0x4afd7f,_0xfa1022])=>[_0x4afd7f,q(_0xfa1022)]);this[_0x5415('0x25')](this['_lastTo'],_0x3da469,this[_0x5415('0x76')],_0x19bf95);}['_makeModelFromViewString'](_0x26f4be){const _0x4c5668=JSON[_0x5415('0x12')](_0x26f4be),_0x5c1b7e=this[_0x5415('0xe1')][_0x5415('0x1')]['view'][_0x5415('0xfd')],_0x3fc901=new _0x3d3b5c(_0x5c1b7e,_0x4c5668['map'](_0x5148dc=>J(_0x5148dc,this[_0x5415('0xe1')])));return this['editor']['data']['toModel'](_0x3fc901);}['_saveMetaData'](_0x24e088,_0x3ed418,_0x268d6b,_0x2c952b){const _0x488891=new Map(_0x3ed418),_0x1ff8fc=new Map(_0xe26426(_0x2c952b)),_0x32850c=new Map();for(const [_0x8615f2,_0x346594]of _0x268d6b)_0x32850c[_0x5415('0xf9')](_0x8615f2,{'start':_0x346594[_0x5415('0x18')][_0x5415('0x0')](),'end':_0x346594[_0x5415('0x70')]['clone'](),'rootName':_0x346594[_0x5415('0xd6')][_0x5415('0x2d')]});this['_savedMetaData']['set'](_0x24e088,{'roots':_0x488891,'markers':_0x32850c,'rootsAttributes':_0x1ff8fc});}[_0x5415('0x77')](_0x3cb0e2){this[_0x5415('0x2')][_0x5415('0x8d')](_0x3cb0e2);}[_0x5415('0x80')](){this[_0x5415('0xbf')](),this['_lastFrom']=-0x1,this[_0x5415('0x96')]=-0x1,this[_0x5415('0x2')][_0x5415('0xea')](),this['init'](this[_0x5415('0x57')]);}['_reset'](){this[_0x5415('0xcf')]['clear'](),this['_touchedMarkers'][_0x5415('0xea')](),this[_0x5415('0x8a')][_0x5415('0xea')](),this[_0x5415('0xb3')][_0x5415('0xea')](),this['_diffRootsAttributes'][_0x5415('0xea')](),this[_0x5415('0xdc')][_0x5415('0xea')](),this[_0x5415('0x64')][_0x5415('0xea')](),this['_idsRoots']['clear'](),this[_0x5415('0x8b')][_0x5415('0xea')](),this[_0x5415('0x76')][_0x5415('0xea')](),this[_0x5415('0x62')]=0x1,this[_0x5415('0xc3')]=this[_0x5415('0x62')];}[_0x5415('0xe6')](_0x51f935,_0x5de454=null){let _0x5edff6=null;_0x51f935['is'](_0x5415('0x100'))||(_0x5edff6=new _0x2ace52(_0x51f935['name'],{'vid_start':null===_0x5de454?this[_0x5415('0x62')]++:_0x5de454++}));const _0x1c9e82=[];for(const _0x24100d of _0x51f935[_0x5415('0xb1')]())if(_0x24100d['is'](_0x5415('0x66'))){_0x1c9e82['push'](this[_0x5415('0xe6')](_0x24100d,_0x5de454));const _0x3e3401=_0x1c9e82[_0x1c9e82['length']-0x1];null!==_0x5de454&&(_0x5de454=_0x3e3401['is'](_0x5415('0x66'),_0x5415('0xcd'))?_0x3e3401[_0x5415('0x7')](_0x5415('0x6f'))+0x1:_0x3e3401[_0x5415('0x7')](_0x5415('0xbd'))+0x1);}else for(let _0x127d07=0x0;_0x127d07<_0x24100d[_0x5415('0xa8')];_0x127d07++)_0x1c9e82[_0x5415('0x1d')](new _0x2ace52(_0x5415('0xcd'),{'vid':null===_0x5de454?this[_0x5415('0x62')]++:_0x5de454++}));if(_0x51f935['is'](_0x5415('0x100'))){const _0x1751ee=G(_0x51f935[_0x5415('0x2d')]);return _0x1751ee[_0x5415('0x95')](0x0,_0x1c9e82),_0x1751ee;}return _0x5edff6[_0x5415('0x68')](_0x5415('0xbd'),null===_0x5de454?this[_0x5415('0x62')]++:_0x5de454++),_0x5edff6[_0x5415('0x95')](0x0,_0x1c9e82),_0x5edff6;}[_0x5415('0x5f')](_0x4a6a58,_0x430f3d,_0x77beed){this['_reset']();const {roots:_0x4c3df7,markers:_0x463def,rootsAttributes:_0x1bfb50}=this[_0x5415('0x2')][_0x5415('0xdf')](_0x4a6a58);this['_baseRoots']=new Map(_0x4c3df7),this[_0x5415('0x64')]=new Map(_0xe26426(_0x1bfb50));for(const [_0x3a26df,_0x34a73e]of this[_0x5415('0xdc')])if(_0x5415('0x26')!==_0x3a26df&&(this['_diffRoots'][_0x5415('0xf9')](_0x3a26df,q(_0x34a73e)),this[_0x5415('0x79')]=new Map(_0xe26426(_0x1bfb50)),_0x77beed)){const _0x265280=this[_0x5415('0x62')];this[_0x5415('0x109')]['set'](_0x3a26df,this[_0x5415('0xe6')](_0x34a73e)),this['_baseIdsRoots'][_0x5415('0xf9')](_0x3a26df,this['_makeIdsRoot'](_0x34a73e,_0x265280));}this['_startingRevisionId']=this['_revisionId'],this[_0x5415('0xb3')][_0x5415('0xf9')]('$graveyard',q(this[_0x5415('0xdc')][_0x5415('0xdf')](_0x5415('0x26')))),_0x77beed&&this[_0x5415('0x109')][_0x5415('0xf9')](_0x5415('0x26'),this['_makeIdsRoot'](this['_baseRoots']['get'](_0x5415('0x26'))));for(const [_0x13e6b1,_0x25e1af]of _0x463def){const _0x21e45f=this[_0x5415('0xdc')][_0x5415('0xdf')](_0x25e1af['rootName']),_0x57690d=this['_diffRoots'][_0x5415('0xdf')](_0x25e1af['rootName']),_0x200996=new _0x399a01(this[_0x5415('0x27')](_0x25e1af[_0x5415('0x18')],_0x21e45f),this[_0x5415('0x27')](_0x25e1af[_0x5415('0x70')],_0x21e45f)),_0x2d2630=this[_0x5415('0x15')](_0x200996,_0x57690d);_0x21e45f['markers'][_0x5415('0xf9')](_0x13e6b1,_0x200996),this[_0x5415('0x76')][_0x5415('0xf9')](_0x13e6b1,_0x2d2630);}this[_0x5415('0x1c')](_0x4a6a58,_0x430f3d,_0x77beed);}[_0x5415('0x1c')](_0x1c4f72,_0x90859d,_0x2f279d){for(const _0x14fb68 of this[_0x5415('0x57')][_0x5415('0xb2')](_0x1c4f72,_0x90859d))this[_0x5415('0x13')](_0x14fb68,_0x2f279d);for(const _0x4cd7eb of this['_diffRoots'][_0x5415('0x89')]())_0x4cd7eb[_0x5415('0x22')]['clear']();for(const [_0x3fb39a,_0x41cfdf]of this['_markers']){this[_0x5415('0xb3')]['get'](_0x41cfdf[_0x5415('0xd6')][_0x5415('0x2d')])[_0x5415('0x22')][_0x5415('0xf9')](_0x3fb39a,_0x41cfdf['clone']());}const _0x1fc629=new Map(),_0xf5edd4=new Map();for(const [_0x311c25,_0xed475d]of this[_0x5415('0xb3')])_0x1fc629[_0x5415('0xf9')](_0x311c25,q(_0xed475d)),_0xf5edd4['set'](_0x311c25,this[_0x5415('0x79')][_0x5415('0xdf')](_0x311c25));this[_0x5415('0x25')](_0x90859d,_0x1fc629,this[_0x5415('0x76')],_0xf5edd4);}['_getPreviousFrom'](_0xccf06e){const _0x294438=Array[_0x5415('0xb6')](this['_savedMetaData'][_0x5415('0x9e')]());_0x294438[_0x5415('0xe5')]((_0x1ed985,_0x5920ab)=>_0x1ed985-_0x5920ab),_0x294438[_0x5415('0xf7')]();for(const _0x94dac1 of _0x294438)if(_0x94dac1<_0xccf06e)return _0x94dac1;return Number['NEGATIVE_INFINITY'];}[_0x5415('0xe7')](_0x99afa0,_0x7edd0d){const _0x2f1d2e=Array['from'](_0x7edd0d[_0x5415('0x22')])[_0x5415('0x32')](([_0x23614c,_0x403ca4])=>[_0x23614c,this['_fixRange'](_0x403ca4,_0x99afa0)]);_0x99afa0['markers']=new Map(_0x2f1d2e);}['_transformMarkers'](_0x475f79){for(const _0x3c7494 of this[_0x5415('0x76')][_0x5415('0x89')]()){const _0x126be2=_0x3c7494[_0x5415('0x3b')](_0x475f79),_0x314681=_0x399a01[_0x5415('0xda')](_0x126be2);_0x3c7494[_0x5415('0x18')]=_0x314681['start'],_0x3c7494[_0x5415('0x70')]=_0x314681[_0x5415('0x70')];}}['_handleOperation'](_0x143927,_0x41b6b0){if(_0x5415('0xb9')==_0x143927[_0x5415('0x24')]||'detachRoot'==_0x143927[_0x5415('0x24')])return void this[_0x5415('0xad')](_0x143927,_0x41b6b0);if(_0x5415('0x106')==_0x143927['type']){const _0x2a361d=_0x143927['position']['root'][_0x5415('0x2d')];this[_0x5415('0xb3')][_0x5415('0x1a')](_0x2a361d)||(this[_0x5415('0xb3')]['set'](_0x2a361d,G(_0x2a361d,!0x0)),this['_diffRootsAttributes']['set'](_0x2a361d,{}),_0x41b6b0&&this['_idsRoots'][_0x5415('0xf9')](_0x2a361d,G(_0x2a361d,!0x0)));}else{if(_0x5415('0xcb')==_0x143927[_0x5415('0x24')]||_0x5415('0xed')==_0x143927['type']||'changeRootAttribute'==_0x143927[_0x5415('0x24')])return void this['_handleRootAttributeOperation'](_0x143927);}const _0x224a93=this[_0x5415('0xe9')](_0x143927,this['_diffRoots']);if(_0x5415('0x23')!==_0x143927['type']&&(_0x224a93[_0x5415('0xd8')](),this[_0x5415('0xa2')](_0x224a93)),_0x41b6b0)switch(_0x224a93[_0x5415('0x24')]){case'insert':this[_0x5415('0x94')](_0x143927);break;case _0x5415('0x5e'):case _0x5415('0xb5'):case _0x5415('0x9d'):this['_handleMoveOperation'](_0x143927);break;case _0x5415('0x1e'):this[_0x5415('0x51')](_0x143927);break;case'split':this[_0x5415('0xcc')](_0x143927);break;case'marker':this[_0x5415('0xb8')](_0x143927);}}[_0x5415('0xe9')](_0x112f8a,_0x335033){const _0xfd2a35=_0x112f8a[_0x5415('0x0')]();return _0xfd2a35[_0x5415('0x39')]=_0x112f8a[_0x5415('0x39')],this[_0x5415('0xf')](_0xfd2a35,_0x335033),_0xfd2a35;}[_0x5415('0x6b')](_0x500111){return _0x500111['map'](_0x2fe61b=>{const _0xd5d458=this[_0x5415('0x35')](_0x2fe61b);return Number(_0x2fe61b['item']['getAttribute'](_0xd5d458));});}['_generateTape'](_0x1ee215,_0x459895){if(_0x1ee215['is']('element',_0x5415('0xcd')))_0x459895['push']({'item':_0x1ee215,'type':'text'});else{_0x1ee215['is'](_0x5415('0x66'))&&_0x459895[_0x5415('0x1d')]({'item':_0x1ee215,'type':'elementStart'});for(const _0x5ac91e of _0x1ee215[_0x5415('0xb1')]())this[_0x5415('0x44')](_0x5ac91e,_0x459895);_0x1ee215['is'](_0x5415('0x66'))&&_0x459895[_0x5415('0x1d')]({'item':_0x1ee215,'type':_0x5415('0xf0')});}return _0x459895;}[_0x5415('0x3c')](){const _0x234ab4=new Map(this[_0x5415('0xcf')]),_0xbc9125=new Map(_0x234ab4),_0x2cf092=new Map(),_0x9476ed={'insertions':{},'deletions':{}},_0x175444={'insertions':{},'deletions':{}},_0x3c3b8d=new Map(),_0x4ca8f9=new Set([...this[_0x5415('0xdc')][_0x5415('0x9e')](),...this[_0x5415('0xb3')][_0x5415('0x9e')]()]);_0x4ca8f9[_0x5415('0x8d')](_0x5415('0x26'));for(const _0x29c074 of _0x4ca8f9){const _0x2eebed=this[_0x5415('0xb3')][_0x5415('0xdf')](_0x29c074)||G(_0x29c074,!0x1),_0x193b7a=this['_baseRoots'][_0x5415('0xdf')](_0x29c074)||G(_0x29c074,!0x1);_0x2eebed[_0x5415('0x8f')]()||_0x193b7a[_0x5415('0x8f')]()?(_0x9476ed[_0x5415('0x48')][_0x29c074]=q(_0x2eebed),_0x9476ed[_0x5415('0x6e')][_0x29c074]=q(_0x193b7a),this[_0x5415('0xe7')](_0x9476ed[_0x5415('0x6e')][_0x29c074],_0x193b7a),this[_0x5415('0xe7')](_0x9476ed[_0x5415('0x48')][_0x29c074],_0x2eebed),_0x175444[_0x5415('0x48')][_0x29c074]=this['_generateTape'](this['_idsRoots'][_0x5415('0xdf')](_0x29c074),[]),_0x175444[_0x5415('0x6e')][_0x29c074]=this['_generateTape'](this[_0x5415('0x8b')][_0x5415('0xdf')](_0x29c074)||G(_0x29c074,!0x1),[])):_0x4ca8f9[_0x5415('0x8d')](_0x29c074);}for(const _0x3c5464 of _0x4ca8f9){const _0x1cb083=_0x175444[_0x5415('0x48')][_0x3c5464];for(const _0x260444 of _0x1cb083){const _0x2cb654=this[_0x5415('0x35')](_0x260444),_0x2e741b=_0x260444[_0x5415('0x101')][_0x5415('0x7')](_0x2cb654);_0xbc9125[_0x5415('0x8d')](_0x2e741b),_0x2e741b>=this[_0x5415('0xc3')]&&_0x2cf092[_0x5415('0xf9')](_0x2e741b,_0x234ab4[_0x5415('0xdf')](_0x2e741b));}}for(const _0x166685 of _0x4ca8f9){const _0x558688=_0x175444[_0x5415('0x48')][_0x166685],_0x4c4a5f=this[_0x5415('0x6b')](_0x175444['deletions'][_0x166685]);let _0x1e2b2d=0x0;for(const _0x3b3fb3 of _0x558688){const _0x178ae6=this[_0x5415('0x35')](_0x3b3fb3),_0x1900a2=_0x3b3fb3[_0x5415('0x101')][_0x5415('0x7')](_0x178ae6);if(!_0x2cf092[_0x5415('0x1a')](_0x1900a2)&&!_0x3c3b8d[_0x5415('0x1a')](_0x1900a2)){if(_0xbc9125['has'](_0x1900a2))_0x1e2b2d++;else{if(_0x1900a2!=_0x4c4a5f[_0x1e2b2d]){const _0xf47cd=_0x234ab4[_0x5415('0xdf')](_0x1900a2)||_0x234ab4[_0x5415('0xdf')](_0x4c4a5f[_0x1e2b2d]);for(;_0x1900a2!=_0x4c4a5f[_0x1e2b2d];)_0xbc9125[_0x5415('0x1a')](_0x4c4a5f[_0x1e2b2d])||(_0x3c3b8d[_0x5415('0xf9')](_0x4c4a5f[_0x1e2b2d],_0xf47cd),_0x234ab4['set'](_0x4c4a5f[_0x1e2b2d],_0xf47cd)),_0x1e2b2d++;}_0x1e2b2d++;}}}}for(const _0x42a73a of _0x4ca8f9){const _0x1bda69=_0x175444[_0x5415('0x48')][_0x42a73a];for(const _0x4a711a of _0x1bda69){const _0x1e50fd=this[_0x5415('0x35')](_0x4a711a),_0x2da3e5=_0x4a711a[_0x5415('0x101')][_0x5415('0x7')](_0x1e50fd);if(_0x3c3b8d['has'](_0x2da3e5)){const _0x55c615=_0x3c3b8d[_0x5415('0xdf')](_0x2da3e5);_0xbc9125[_0x5415('0x1a')](_0x2da3e5)||_0xbc9125[_0x5415('0xf9')](_0x2da3e5,{..._0x55c615}),_0x2cf092['set'](_0x2da3e5,{..._0x55c615});}}}for(const _0x459cab of _0xbc9125[_0x5415('0x9e')]())_0x459cab>=this['_startingRevisionId']&&_0xbc9125['delete'](_0x459cab);const _0x1f8988=new Map();for(const _0x2950ef of _0x4ca8f9){let _0x4f04d1=_0x175444[_0x5415('0x48')][_0x2950ef];for(const _0x28ec7e of _0x4f04d1)if(_0x28ec7e[_0x5415('0x101')]['is'](_0x5415('0x66'),'tableCell')){const _0x2ce917=this[_0x5415('0x35')](_0x28ec7e),_0x1293d4=_0x28ec7e[_0x5415('0x101')][_0x5415('0x7')](_0x2ce917);if(_0x2cf092['has'](_0x1293d4)){const _0xa8ac73=_0x28ec7e[_0x5415('0x101')][_0x5415('0x5')][_0x5415('0x5')][_0x5415('0x7')](_0x5415('0x6c')),_0x105962=_0x1f8988['get'](_0xa8ac73)||new Set();_0x105962[_0x5415('0x3a')](_0x2cf092[_0x5415('0xdf')](_0x1293d4)[_0x5415('0x29')]),_0x1f8988[_0x5415('0xf9')](_0xa8ac73,_0x105962);}}_0x4f04d1=_0x175444[_0x5415('0x6e')][_0x2950ef];for(const _0x4142df of _0x4f04d1)if(_0x4142df[_0x5415('0x101')]['is'](_0x5415('0x66'),_0x5415('0xb0'))){const _0x286438=this[_0x5415('0x35')](_0x4142df),_0x107d06=_0x4142df[_0x5415('0x101')][_0x5415('0x7')](_0x286438);if(_0xbc9125['has'](_0x107d06)){const _0x242e7f=_0x4142df[_0x5415('0x101')][_0x5415('0x5')][_0x5415('0x5')][_0x5415('0x7')](_0x5415('0x6c')),_0x234aa0=_0x1f8988[_0x5415('0xdf')](_0x242e7f)||new Set();_0x234aa0[_0x5415('0x3a')](_0xbc9125[_0x5415('0xdf')](_0x107d06)['userId']),_0x1f8988[_0x5415('0xf9')](_0x242e7f,_0x234aa0);}}for(const _0x28cc3b of _0x1f8988[_0x5415('0x9e')]())(_0x2cf092[_0x5415('0x1a')](_0x28cc3b)||_0xbc9125[_0x5415('0x1a')](_0x28cc3b))&&_0x1f8988[_0x5415('0x8d')](_0x28cc3b);}for(const _0x5d9d21 of _0x4ca8f9){const _0x25b383=_0x175444[_0x5415('0x48')][_0x5d9d21];let _0x37bd1a=null,_0x5c5451=null;for(const _0x49bd45 of _0x25b383){const _0x4988a3=this['_getVidAttributeName'](_0x49bd45),_0x336fc9=_0x49bd45[_0x5415('0x101')]['getAttribute'](_0x4988a3),_0x267218=_0x1f8988[_0x5415('0xdf')](_0x336fc9);_0x267218&&_0x5415('0xa9')==_0x49bd45[_0x5415('0x24')]&&(_0x37bd1a=Array[_0x5415('0xb6')](_0x267218)[0x0],_0x5c5451=_0x49bd45[_0x5415('0x101')][_0x5415('0x7')](_0x5415('0xbd'))),_0x37bd1a&&(_0xbc9125[_0x5415('0xf9')](_0x336fc9,{'userId':_0x37bd1a}),_0x2cf092[_0x5415('0xf9')](_0x336fc9,{'userId':_0x37bd1a})),_0x336fc9==_0x5c5451&&(_0x37bd1a=null,_0x5c5451=null);}}const _0x93437d={},_0x11efef=new Set();for(const _0x2b0756 of _0x4ca8f9){const _0x1dac2e=_0x9476ed['deletions'][_0x2b0756],_0x2f7273=_0x9476ed['insertions'][_0x2b0756];for(const {userId:_0x608c20}of this[_0x5415('0x92')][_0x5415('0x89')]())null!==_0x608c20&&_0x11efef[_0x5415('0x3a')](_0x608c20);for(const {userId:_0x263e26}of this['_touchedRoots'][_0x5415('0x89')]())null!==_0x263e26&&_0x11efef['add'](_0x263e26);this[_0x5415('0xe4')](_0x2f7273,_0x175444['insertions'][_0x2b0756],_0x2cf092,_0x5415('0x4f'),_0x11efef),this[_0x5415('0xe4')](_0x1dac2e,_0x175444['deletions'][_0x2b0756],_0xbc9125,_0x5415('0x5b'),_0x11efef),_0x93437d[_0x2b0756]={'insertions':this['_prepareViewToSave'](_0x2f7273),'deletions':this[_0x5415('0x9')](_0x1dac2e),'attachChange':this[_0x5415('0x8a')]['get'](_0x2b0756)||null,'attributesBefore':_0xe26426(this['_baseRootsAttributes'][_0x5415('0xdf')](_0x2b0756))||{},'attributesAfter':_0xe26426(this['_diffRootsAttributes'][_0x5415('0xdf')](_0x2b0756))};}return{'diffData':_0x93437d,'authorsIds':Array['from'](_0x11efef)};}[_0x5415('0xd3')](_0x445376){for(const [,_0x736f78]of _0x445376[_0x5415('0x22')]){const _0x56ac46=_0x736f78['start']['getAncestors']()[_0x5415('0x103')](_0x489b6a=>_0x5415('0xb0')==_0x489b6a['name']);for(const _0x2fe52f of _0x56ac46)0x1==_0x2fe52f[_0x5415('0x40')]&&_0x2fe52f[_0x5415('0xc7')](0x0)['is'](_0x5415('0x66'),_0x5415('0x9a'))&&_0x2fe52f['getChild'](0x0)[_0x5415('0x68')]('keepParagraph',!0x0);}}[_0x5415('0x9')](_0x247da8){this[_0x5415('0xd3')](_0x247da8);const _0x2fc4ec=this['editor'][_0x5415('0x8e')][_0x5415('0x86')](_0x247da8,{}),_0x2c66fe=Array[_0x5415('0xb6')](_0x2fc4ec[_0x5415('0xb1')]())[_0x5415('0x32')](_0x57b488=>this[_0x5415('0x3f')](_0x57b488));return JSON[_0x5415('0x1f')](_0x2c66fe);}[_0x5415('0x3f')](_0x1ea8f7){if(_0x1ea8f7['is']('$text'))return _0x1ea8f7[_0x5415('0x8e')];{const _0x4e23da=_0x1ea8f7;return{'type':Object[_0x5415('0x9e')](B)[_0x5415('0x19')](_0x20cc76=>_0x1ea8f7 instanceof B[_0x20cc76]),'name':_0x4e23da[_0x5415('0xeb')],'attributes':Array[_0x5415('0xb6')](_0x4e23da[_0x5415('0xac')]()),'children':Array[_0x5415('0xb6')](_0x4e23da['getChildren']())['map'](_0x10b902=>this['_getViewJson'](_0x10b902))};}}[_0x5415('0xe4')](_0xdc7488,_0x2dcfab,_0x1d92e3,_0x48eaf4,_0x14ea7d){let _0x14ff1a=null,_0x3cfe64=null,_0x19de62=0x0;const _0x282633=this['editor'][_0x5415('0x3')];for(let _0x3f4733=0x0;_0x3f4733<_0x2dcfab[_0x5415('0xab')];_0x3f4733++){const _0x3a9a5a=this[_0x5415('0x35')](_0x2dcfab[_0x3f4733]),_0x45292c=_0x2dcfab[_0x3f4733]['item'][_0x5415('0x7')](_0x3a9a5a),_0x3c115c=_0x1d92e3[_0x5415('0xdf')](_0x45292c),_0x5630fa=_0x3f4733==_0x2dcfab[_0x5415('0xab')]-0x1;(!_0x14ff1a&&_0x3c115c&&(_0x14ff1a=_0x3c115c,_0x3cfe64=_0x2dcfab[_0x3f4733]),_0x14ff1a&&(!_0x3c115c||_0x3c115c[_0x5415('0x29')]!=_0x14ff1a[_0x5415('0x29')]))&&(_0x551d0b(_0x3c115c,L(_0x3cfe64,_0xdc7488,_0x282633),L(_0x2dcfab[_0x3f4733],_0xdc7488,_0x282633)),_0x14ff1a=_0x3c115c||null,_0x3cfe64=_0x3c115c?_0x2dcfab[_0x3f4733]:null),_0x14ff1a&&_0x5630fa&&_0x551d0b(_0x3c115c,L(_0x3cfe64,_0xdc7488,_0x282633),W(_0x2dcfab[_0x3f4733],_0xdc7488,_0x282633));}function _0x551d0b(_0xfab1df,_0x2cfd4e,_0x2c18ae){const _0x1dcccd=_0x14ff1a[_0x5415('0x29')],_0x1bf807='revision:'+_0x48eaf4+':'+_0x1dcccd+':'+_0x19de62++,_0x26a95a=_0x282633[_0x5415('0x82')](_0x2cfd4e,_0x2c18ae);_0xdc7488[_0x5415('0x22')]['set'](_0x1bf807,_0x26a95a),null!==_0x1dcccd&&_0x14ea7d[_0x5415('0x3a')](_0x1dcccd);}}['_getVidAttributeName'](_0x597c9d){switch(_0x597c9d[_0x5415('0x24')]){case _0x5415('0xa9'):return _0x5415('0x6c');case'elementEnd':return _0x5415('0xbd');default:return _0x5415('0x6f');}}['_fixOperation'](_0x4fdcc,_0x16a0c6){_0x4fdcc['baseVersion']=null;for(const _0x5d8caa in _0x4fdcc){const _0x4bb2ce=_0x4fdcc[_0x5d8caa];if(_0x4bb2ce instanceof _0x5e8780){const _0xbb168e=_0x16a0c6['get'](_0x4bb2ce[_0x5415('0xd6')][_0x5415('0x2d')]);_0x4fdcc[_0x5d8caa]=this[_0x5415('0x27')](_0x4bb2ce,_0xbb168e);}if(_0x4bb2ce instanceof _0x399a01){const _0x20d143=_0x16a0c6[_0x5415('0xdf')](_0x4bb2ce[_0x5415('0xd6')]['rootName']);_0x4fdcc[_0x5d8caa]=this[_0x5415('0x15')](_0x4bb2ce,_0x20d143);}_0x5415('0xd6')===_0x5d8caa&&(_0x4fdcc[_0x5415('0xd6')]=_0x16a0c6[_0x5415('0xdf')](_0x4fdcc['root']['rootName']));}}[_0x5415('0x15')](_0x41c4d6,_0x51704b){return this[_0x5415('0xe1')]['model']['createRange'](this['_fixPosition'](_0x41c4d6[_0x5415('0x18')],_0x51704b),this[_0x5415('0x27')](_0x41c4d6['end'],_0x51704b));}['_fixPosition'](_0x211f72,_0x12c909){return this[_0x5415('0xe1')][_0x5415('0x3')][_0x5415('0xfb')](_0x12c909,_0x211f72['path'],_0x211f72[_0x5415('0x4a')]);}[_0x5415('0x94')](_0x41670c){const _0x238060=this['_idsRoots']['get'](_0x41670c['position'][_0x5415('0xd6')]['rootName']),_0x724587=this['_fixPosition'](_0x41670c[_0x5415('0x2b')],_0x238060),_0x95431a=null===_0x41670c[_0x5415('0x39')]?null:_0x41670c[_0x5415('0x39')]||this[_0x5415('0xe1')]['plugins'][_0x5415('0xdf')](_0x5415('0xc0'))['me']['id'],_0x4fd302=_0x724587[_0x5415('0x5')],_0x4c3569=this['_revisionId'],_0x4e573b=[];for(const _0xeafe8b of _0x41670c[_0x5415('0x8c')])if(_0xeafe8b['is'](_0x5415('0x66')))_0x4e573b[_0x5415('0x1d')](this[_0x5415('0xe6')](_0xeafe8b));else for(let _0x491424=0x0;_0x491424<_0xeafe8b[_0x5415('0xa8')];_0x491424++)_0x4e573b['push'](new _0x2ace52(_0x5415('0xcd'),{'vid':this[_0x5415('0x62')]++}));const _0x1f0b80=this['_revisionId'];for(let _0x524d67=_0x4c3569;_0x524d67<_0x1f0b80;_0x524d67++)this[_0x5415('0xcf')]['set'](_0x524d67,{'userId':_0x95431a});_0x4fd302[_0x5415('0x95')](_0x724587['offset'],_0x4e573b);}[_0x5415('0x5c')](_0x258774){(_0x258774=this[_0x5415('0xe9')](_0x258774,this[_0x5415('0x109')]))[_0x5415('0xd8')]();const _0x55e9f2=null===_0x258774[_0x5415('0x39')]?null:_0x258774[_0x5415('0x39')]||this[_0x5415('0xe1')][_0x5415('0xec')][_0x5415('0xdf')](_0x5415('0xc0'))['me']['id'],_0x557162=_0x258774[_0x5415('0x67')](),_0xf100b7=_0x557162['parent'],_0x391175=_0x557162[_0x5415('0x9f')];!function _0x2d8fab(_0x412ffc,_0x12f341,_0x2389e9,_0x1d0409){for(let _0x3902ad=_0x2389e9;_0x3902ad<_0x1d0409;_0x3902ad++){const _0x56fa5e=_0x12f341[_0x5415('0xc7')](_0x3902ad);_0x56fa5e['is'](_0x5415('0x66'),_0x5415('0xcd'))?_0x412ffc['set'](_0x56fa5e['getAttribute'](_0x5415('0x6f')),{'userId':_0x55e9f2}):(_0x412ffc[_0x5415('0xf9')](_0x56fa5e[_0x5415('0x7')](_0x5415('0x6c')),{'userId':_0x55e9f2}),_0x2d8fab(_0x412ffc,_0x56fa5e,0x0,_0x56fa5e[_0x5415('0x40')]),_0x412ffc[_0x5415('0xf9')](_0x56fa5e['getAttribute'](_0x5415('0xbd')),{'userId':_0x55e9f2}));}}(this[_0x5415('0xcf')],_0xf100b7,_0x391175,_0x391175+_0x258774[_0x5415('0x69')]);}[_0x5415('0x51')](_0x1279b9){const _0x40a4b2=null===(_0x1279b9=this[_0x5415('0xe9')](_0x1279b9,this[_0x5415('0x109')]))[_0x5415('0x39')]?null:_0x1279b9[_0x5415('0x39')]||this['editor'][_0x5415('0xec')]['get'](_0x5415('0xc0'))['me']['id'],_0x25b5ae=_0x1279b9[_0x5415('0x4b')]['parent'],_0xc2214b=_0x1279b9[_0x5415('0x2f')][_0x5415('0x5')],_0x2426d0=_0x25b5ae[_0x5415('0x7')](_0x5415('0xbd')),_0xfb8357=_0xc2214b[_0x5415('0x7')](_0x5415('0x6c'));_0x25b5ae[_0x5415('0x68')]('vid_end',_0xc2214b[_0x5415('0x7')]('vid_end')),_0xc2214b[_0x5415('0x68')](_0x5415('0xbd'),_0x2426d0),this[_0x5415('0xcf')][_0x5415('0xf9')](_0xfb8357,{'userId':_0x40a4b2}),this[_0x5415('0xcf')]['set'](_0x2426d0,{'userId':_0x40a4b2}),_0x1279b9[_0x5415('0xd8')]();}['_handleSplitOperation'](_0x442944){const _0x2344be=null===(_0x442944=this['_cloneOperation'](_0x442944,this['_idsRoots']))[_0x5415('0x39')]?null:_0x442944['_authorId']||this[_0x5415('0xe1')]['plugins']['get'](_0x5415('0xc0'))['me']['id'],_0x455452=_0x442944['graveyardPosition'],_0x519f26=_0x442944[_0x5415('0xca')]['parent'];_0x442944[_0x5415('0xd8')]();const _0x513172=_0x519f26['getAttribute']('vid_end'),_0x2b9bc4=_0x442944[_0x5415('0x65')][_0x5415('0x53')];if(_0x455452){const _0x30f3b9=_0x2b9bc4[_0x5415('0x7')](_0x5415('0xbd')),_0x20a6b0=_0x519f26[_0x5415('0x7')](_0x5415('0xbd'));_0x519f26['_setAttribute'](_0x5415('0xbd'),_0x30f3b9),_0x2b9bc4[_0x5415('0x68')](_0x5415('0xbd'),_0x20a6b0),this[_0x5415('0xcf')][_0x5415('0xf9')](_0x519f26['getAttribute'](_0x5415('0xbd')),{'userId':_0x2344be}),this[_0x5415('0xcf')][_0x5415('0xf9')](_0x2b9bc4['getAttribute'](_0x5415('0x6c')),{'userId':_0x2344be});}else{const _0x53b5c1=this[_0x5415('0x62')]++,_0x4ed9a5=this[_0x5415('0x62')]++;_0x519f26[_0x5415('0x68')](_0x5415('0xbd'),_0x53b5c1),_0x2b9bc4[_0x5415('0x68')](_0x5415('0x6c'),_0x4ed9a5),_0x2b9bc4['_setAttribute'](_0x5415('0xbd'),_0x513172),this[_0x5415('0xcf')]['set'](_0x53b5c1,{'userId':_0x2344be}),this['_touched']['set'](_0x4ed9a5,{'userId':_0x2344be});}}[_0x5415('0xb8')](_0x351408){if(!_0x351408['affectsData'])return;const _0x26d82e=(_0x351408=this[_0x5415('0xe9')](_0x351408,this['_diffRoots']))['oldRange']?_0x351408[_0x5415('0x1b')][_0x5415('0xd6')]:null,_0x33173d=_0x351408['newRange']?_0x351408['newRange'][_0x5415('0xd6')]:null;_0x26d82e&&this[_0x5415('0x76')]['delete'](_0x351408[_0x5415('0xeb')]),_0x33173d&&this[_0x5415('0x76')][_0x5415('0xf9')](_0x351408[_0x5415('0xeb')],_0x351408['newRange'][_0x5415('0x0')]());const _0x173162=null===_0x351408[_0x5415('0x39')]?null:_0x351408['_authorId']||this[_0x5415('0xe1')][_0x5415('0xec')][_0x5415('0xdf')]('Users')['me']['id'],_0x1abc0f=_0x351408['name'];if(!this[_0x5415('0x92')][_0x5415('0x1a')](_0x1abc0f))return void this[_0x5415('0x92')]['set'](_0x1abc0f,{'range':_0x351408['oldRange'],'userId':_0x173162});const _0x398668=this['_touchedMarkers'][_0x5415('0xdf')](_0x1abc0f),_0x3a1bf8=_0x398668['range'],_0x5c3d8e=_0x351408['newRange'];null==_0x3a1bf8&&null==_0x5c3d8e||_0x3a1bf8&&_0x5c3d8e&&_0x3a1bf8[_0x5415('0x105')](_0x5c3d8e)?this['_touchedMarkers'][_0x5415('0x8d')](_0x351408['name']):_0x398668[_0x5415('0x29')]=_0x173162;}[_0x5415('0xad')](_0x132208,_0x577884){this[_0x5415('0xb3')][_0x5415('0x1a')](_0x132208[_0x5415('0x2d')])?this[_0x5415('0xb3')]['get'](_0x132208['rootName'])['_isAttached']=_0x132208[_0x5415('0xc9')]:(this[_0x5415('0xb3')][_0x5415('0xf9')](_0x132208[_0x5415('0x2d')],G(_0x132208['rootName'],!0x0)),this[_0x5415('0x79')][_0x5415('0xf9')](_0x132208[_0x5415('0x2d')],{}),_0x577884&&this[_0x5415('0x109')]['set'](_0x132208['rootName'],G(_0x132208[_0x5415('0x2d')],!0x0)));const _0x3b418f=null===_0x132208['_authorId']?null:_0x132208[_0x5415('0x39')]||this[_0x5415('0xe1')][_0x5415('0xec')]['get'](_0x5415('0xc0'))['me']['id'],_0x4c9b24=this[_0x5415('0x8a')]['get'](_0x132208['rootName']);_0x4c9b24&&_0x4c9b24['userId']===_0x3b418f?this[_0x5415('0x8a')]['delete'](_0x132208[_0x5415('0x2d')]):this['_touchedRoots']['set'](_0x132208[_0x5415('0x2d')],{'userId':_0x3b418f,'isAttached':_0x132208[_0x5415('0xc9')]});}[_0x5415('0xde')](_0x3b0705){const _0x4a651c=this[_0x5415('0x79')]['get'](_0x3b0705[_0x5415('0xd6')][_0x5415('0x2d')]);null===_0x3b0705[_0x5415('0xbb')]?delete _0x4a651c[_0x3b0705[_0x5415('0xe2')]]:_0x4a651c[_0x3b0705[_0x5415('0xe2')]]=_0x3b0705[_0x5415('0xbb')];}}function q(_0x227e2c){const _0x1a1040=G(_0x227e2c[_0x5415('0x2d')],_0x227e2c['isAttached']());for(const _0x123074 of _0x227e2c['getChildren']()){const _0x247557=_0x123074['_clone'](!0x0);_0x1a1040[_0x5415('0xce')](_0x247557);}return _0x1a1040;}function G(_0x3225a7,_0x2e907a=!0x0){const _0x454880=new _0x17a86e();return _0x454880[_0x5415('0x2d')]=_0x3225a7,_0x454880[_0x5415('0xf8')]=_0x2e907a,_0x454880['isAttached']=()=>_0x454880[_0x5415('0xf8')],_0x454880;}function L(_0x4acc51,_0x32b655,_0x50990f){const _0x2d0d38=_0x5415('0xf0')==_0x4acc51[_0x5415('0x24')]?_0x50990f[_0x5415('0xfa')](_0x4acc51[_0x5415('0x101')],'end'):_0x50990f[_0x5415('0x3d')](_0x4acc51['item']);return _0x50990f[_0x5415('0xfb')](_0x32b655,_0x2d0d38['path'],_0x2d0d38[_0x5415('0x4a')]);}function W(_0x4dacf0,_0x491563,_0x4b7026){const _0x5bae63=_0x5415('0xa9')==_0x4dacf0[_0x5415('0x24')]?_0x4b7026[_0x5415('0xfa')](_0x4dacf0[_0x5415('0x101')],0x0):_0x4b7026['createPositionAfter'](_0x4dacf0[_0x5415('0x101')]);return _0x4b7026[_0x5415('0xfb')](_0x491563,_0x5bae63['path'],_0x5bae63[_0x5415('0x4a')]);}
@@ -1,25 +1,25 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- import '../theme/revisionviewer.css';
6
- /**
7
- function printTape( tape ) {
8
- const elements = tape.map(
9
- item => item.item.data ? item.item.data : item.type == 'elementStart' ? '<' + item.item.name + '>' : '</' + item.item.name + '>'
10
- ).join( '' );
11
-
12
- const signs = tape.map( v => {
13
- const item = v.item;
14
- const sign = ( v.isAdded || v.isAddSuggestion ) ? v.isRemoved ? '=' : '+' : v.isRemoved ? '-' : ' ';
15
- const len = item.data ? item.data.length : v.type == 'elementStart' ? item.name.length + 2 : item.name.length + 3;
16
-
17
- return sign.repeat( len );
18
- } ).join( '' );
19
-
20
- console.log( elements );
21
- console.log( signs );
22
- }
23
-
24
- window.printTape = printTape;
25
- /**/
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import '../theme/revisionviewer.css';
6
+ /**
7
+ function printTape( tape ) {
8
+ const elements = tape.map(
9
+ item => item.item.data ? item.item.data : item.type == 'elementStart' ? '<' + item.item.name + '>' : '</' + item.item.name + '>'
10
+ ).join( '' );
11
+
12
+ const signs = tape.map( v => {
13
+ const item = v.item;
14
+ const sign = ( v.isAdded || v.isAddSuggestion ) ? v.isRemoved ? '=' : '+' : v.isRemoved ? '-' : ' ';
15
+ const len = item.data ? item.data.length : v.type == 'elementStart' ? item.name.length + 2 : item.name.length + 3;
16
+
17
+ return sign.repeat( len );
18
+ } ).join( '' );
19
+
20
+ console.log( elements );
21
+ console.log( signs );
22
+ }
23
+
24
+ window.printTape = printTape;
25
+ /**/