@ckeditor/ckeditor5-revision-history 35.4.0 → 36.0.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 (90) hide show
  1. package/build/revision-history.js +2 -2
  2. package/build/translations/ug.js +1 -1
  3. package/lang/translations/af.po +1 -1
  4. package/lang/translations/ar.po +1 -1
  5. package/lang/translations/az.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/bs.po +1 -1
  9. package/lang/translations/ca.po +1 -1
  10. package/lang/translations/cs.po +1 -1
  11. package/lang/translations/da.po +1 -1
  12. package/lang/translations/de-ch.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en-gb.po +1 -1
  17. package/lang/translations/en.po +1 -1
  18. package/lang/translations/es-co.po +1 -1
  19. package/lang/translations/es.po +1 -1
  20. package/lang/translations/et.po +1 -1
  21. package/lang/translations/fa.po +1 -1
  22. package/lang/translations/fi.po +1 -1
  23. package/lang/translations/fr.po +1 -1
  24. package/lang/translations/gl.po +1 -1
  25. package/lang/translations/he.po +1 -1
  26. package/lang/translations/hi.po +1 -1
  27. package/lang/translations/hr.po +1 -1
  28. package/lang/translations/hu.po +1 -1
  29. package/lang/translations/id.po +1 -1
  30. package/lang/translations/it.po +1 -1
  31. package/lang/translations/ja.po +1 -1
  32. package/lang/translations/jv.po +1 -1
  33. package/lang/translations/ko.po +1 -1
  34. package/lang/translations/ku.po +1 -1
  35. package/lang/translations/lt.po +1 -1
  36. package/lang/translations/lv.po +1 -1
  37. package/lang/translations/ms.po +1 -1
  38. package/lang/translations/ne.po +1 -1
  39. package/lang/translations/nl.po +1 -1
  40. package/lang/translations/no.po +1 -1
  41. package/lang/translations/pl.po +1 -1
  42. package/lang/translations/pt-br.po +1 -1
  43. package/lang/translations/pt.po +1 -1
  44. package/lang/translations/ro.po +1 -1
  45. package/lang/translations/ru.po +1 -1
  46. package/lang/translations/sk.po +1 -1
  47. package/lang/translations/sr-latn.po +1 -1
  48. package/lang/translations/sr.po +1 -1
  49. package/lang/translations/sv.po +1 -1
  50. package/lang/translations/th.po +1 -1
  51. package/lang/translations/tk.po +1 -1
  52. package/lang/translations/tr.po +1 -1
  53. package/lang/translations/tt.po +1 -1
  54. package/lang/translations/ug.po +2 -2
  55. package/lang/translations/uk.po +1 -1
  56. package/lang/translations/ur.po +1 -1
  57. package/lang/translations/vi.po +1 -1
  58. package/lang/translations/zh-cn.po +1 -1
  59. package/lang/translations/zh.po +1 -1
  60. package/package.json +7 -7
  61. package/src/changeitem.js +2 -2
  62. package/src/editor/revisionviewereditor.js +2 -2
  63. package/src/editor/revisionviewereditorui.js +2 -2
  64. package/src/editor/revisionviewereditoruiview.js +2 -2
  65. package/src/index.js +1 -1
  66. package/src/revision.js +2 -2
  67. package/src/revisiondiff.js +2 -2
  68. package/src/revisionhistory.js +2 -2
  69. package/src/revisionsrepository.js +2 -2
  70. package/src/revisiontracker.js +2 -2
  71. package/src/revisionviewer.js +2 -2
  72. package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
  73. package/src/ui/revision/revisionauthorview.js +2 -2
  74. package/src/ui/revision/revisionnameview.js +2 -2
  75. package/src/ui/revision/revisionview.js +2 -2
  76. package/src/ui/revision/subrevisioncollapserview.js +2 -2
  77. package/src/ui/revision/subrevisionview.js +2 -2
  78. package/src/ui/revision/utils.js +2 -2
  79. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  80. package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
  81. package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
  82. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
  83. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
  84. package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
  85. package/src/ui/revisionssidebar/utils.js +2 -2
  86. package/src/ui/revisionviewer/changedetailsview.js +2 -2
  87. package/src/ui/revisionviewer/changesnavigationview.js +2 -2
  88. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
  89. package/src/ui/revisionviewer/revisionviewerui.js +2 -2
  90. package/src/utils/common-translations.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4be9=['_setAttribute','conversion','PendingActions','deletion','offsetSize','editor','requires','reinsert','getRoot','stickiness','_diffRoots','name','end','getCurrentRevisionId','sort','markers','view','_getViewJson','position','vid_end','finally','attributes','path','_removeMetaData','range','_clone','_transformMarkers','_handleMergeOperation','_applyOperations','data','getData','parent','toView','find','_handleOperation','initialData','getRevision','from','type','loadState','updateRevisions','get','getRange','createdAt','resolve','setRevisionData','createPositionAfter','toData','markerToData','dataDowncast','_cloneOperation','map','item','offset','createPositionAt','creator','_continueCurrentRevision','_setConversion','_touched','_makeIdsRoot','upcast','_bufferedUpdates','marker','buildRevisionData','_savedMetaData','reverse','$graveyard','element','addRevision','adapter','getOperations','getIndex','revision-start','_startingRevisionId','oldRange','_fixRange','_handleInsertOperation','_findInsertionIndex','userId','useFillerType','insertions','_bufferUpdate','shift','for','getNodeByPath','string','revision','nodeAfter','update','_baseIdsRoots','_addPendingAction','_getVidAttributeName','isEnabled','includes','keys','revision:','_insertChild','_reset','_loadRevisionData','_replaceEditorDataWithRevisionData','_saveMetaData','_startingVersion','dataToMarker','_lastFrom','_loadedStateData','getWalker','afterInit','paragraph','set','move','_makeModelFromViewString','_markers','has','default','getChild','_handleMarkerOperation','clear','getRevisionDocumentData','_generateTape','_calculateMetaData','vid','locale','_getPreviousFrom','elementEnd','diffData','push','_removeRevisionMarkers','_loadState','_isPendingUpdate','graveyardPosition','_getBaseVids','insert','previousPosition','getRootNames','clone','createRangeIn','_createCurrentRevision','baseVersion','collaboration.channelId','_touchedMarkers','addRevisionData','_getState','config','version','_markChanges','affectsData','toVersion','Initial\x20revision','documentFragment','source','filter','getOperation','deletions','_makeRevision','nodes','elementStart','_fixOperation','_prepareViewToSave','getChildren','vid_start','fromVersion','RealTimeCollaborationClient','roots','getLatestVersion','currentRevision','splitPosition','_handleMoveOperation','getMovedRangeStart','PENDING_ACTION_REVISION_HISTORY','_processRootBeforeSave','_getFromVersion','isReady','isPendingUpdate','size','childCount','_pendingAction','remove','then','_copyMarkers','tableCell','slice','createPositionFromPath','parse','revisionHistory.resumeUnsavedRevision','_saveEmptyMetaData','editing','_source','length','setSource','_execute','data-revision-','split','document','_createInitialRevision','_revisionId','startsWith','repository','createRange','pluginName','model','getTime','values','_createFromRanges','getUser','start','delete','_initialRevisionId','creatorId','reInit','children','rootName','createRevision','targetPosition','getTransformedByOperation','_rootNames','root','saveRevision','_idsRoots','_revisionDataBuilder','_update','stringify','history','sendBufferedUpdates','howMany','$text','text','init','authors','isEqual','Users','authorsIds','_baseRoots','newRange','_handleSplitOperation','getRevisions','forEach','_authorId','_fixPosition','RevisionsRepository','_lastTo','plugins','marked','sourcePosition','add','NEGATIVE_INFINITY','getAttribute'];(function(_0x335359,_0x4be91e){const _0x1ffc78=function(_0x4411d7){while(--_0x4411d7){_0x335359['push'](_0x335359['shift']());}};_0x1ffc78(++_0x4be91e);}(_0x4be9,0x13b));const _0x1ffc=function(_0x335359,_0x4be91e){_0x335359=_0x335359-0x0;let _0x1ffc78=_0x4be9[_0x335359];return _0x1ffc78;};import{Users as _0x49b043}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x208e89,PendingActions as _0x6a751b}from'ckeditor5/src/core';import{logWarning as _0x21e039,uid as _0xf0ab0d}from'ckeditor5/src/utils';import{Position as _0x29deb2,Range as _0x21882a,Element as _0x230a92,DocumentFragment as _0xfd6a74,ViewText as _0x4ede3d,ViewElement as _0x5af39b,ViewContainerElement as _0x2a8b8e,ViewAttributeElement as _0x490ea3,ViewEmptyElement as _0x176d2e,ViewRawElement as _0x170b85,ViewUIElement as _0x277a27,ViewDocumentFragment as _0x242b3a}from'ckeditor5/src/engine';import _0x510d8c from'./revisionsrepository';import{getTranslation as _0x2536e9}from'./utils/common-translations';const V={'c':_0x2a8b8e,'a':_0x490ea3,'e':_0x176d2e,'r':_0x170b85,'u':_0x277a27};export default class l extends _0x208e89{static get[_0x1ffc('0x81')](){return'RevisionTracker';}static get[_0x1ffc('0xb7')](){return[_0x49b043,_0x510d8c,_0x6a751b];}constructor(..._0x231433){super(..._0x231433),this['adapter']=null,this[_0x1ffc('0x27')]('isReady',!0x1),this[_0x1ffc('0x27')](_0x1ffc('0x17'),!0x0),this[_0x1ffc('0x5f')]=null;const _0x36b98e=_0xf0ab0d();this[_0x1ffc('0x75')]={'history':this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x98')],'getLatestVersion':()=>Promise[_0x1ffc('0xdd')](this['editor'][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x4a')]),'getCurrentRevisionId':()=>_0x36b98e},this[_0x1ffc('0x95')]=new T(this[_0x1ffc('0xb6')]),this[_0x1ffc('0x89')]=this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x45'))||'initial',this['set'](_0x1ffc('0x67'),!0x1),this['_bufferedUpdates']=new Map(),this[_0x1ffc('0xb6')][_0x1ffc('0x49')]['define'](_0x1ffc('0x72'),!0x0),this[_0x1ffc('0x23')]=null,this[_0x1ffc('0xb6')]['conversion'][_0x1ffc('0xe')](_0x1ffc('0xed'))[_0x1ffc('0x21')]({'view':_0x1ffc('0x11')});}[_0x1ffc('0x9d')](){this[_0x1ffc('0x7f')]=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa9')),this[_0x1ffc('0xea')](),this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['on']('ready',()=>{const _0xdf51c3=this[_0x1ffc('0x7f')]['getRevision'](0x0),_0xd5a98f=_0xdf51c3&&null===_0xdf51c3[_0x1ffc('0xe8')]?_0xdf51c3:null;if(this[_0x1ffc('0xe9')]=!!_0xd5a98f&&this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x72')),this[_0x1ffc('0xb6')]['plugins']['has'](_0x1ffc('0x5c'))){const _0x9ca637=this[_0x1ffc('0x75')][_0x1ffc('0xbe')](),_0x1ebeae=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x9ca637);if(_0x1ebeae)this[_0x1ffc('0x20')]=_0x1ebeae[_0x1ffc('0x5b')],this[_0x1ffc('0xe9')]=!0x1;else{const _0x2fa5d5=this[_0x1ffc('0x75')][_0x1ffc('0x98')]['_operations'][_0x1ffc('0xd2')](_0x5bf3cb=>!_0x5bf3cb['_isInit']),_0x2ed99e=_0x2fa5d5?_0x2fa5d5[_0x1ffc('0x44')]:this[_0x1ffc('0x75')]['history'][_0x1ffc('0x4a')];_0xdf51c3?(_0xdf51c3[_0x1ffc('0x4d')]<_0x2ed99e&&_0xdf51c3['_update']({'toVersion':_0x2ed99e}),this[_0x1ffc('0xe9')]?(this[_0x1ffc('0x75')][_0x1ffc('0xbe')]=()=>_0xd5a98f['id'],this['_startingVersion']=_0xd5a98f[_0x1ffc('0x5b')]):(this[_0x1ffc('0x20')]=_0xdf51c3[_0x1ffc('0x4d')],this[_0x1ffc('0xe9')]=!0x1)):(this[_0x1ffc('0x20')]=_0x2ed99e,this[_0x1ffc('0xe9')]=!0x1);}}else _0xd5a98f&&(this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')]['history'][_0x1ffc('0x4a')]=Math['max'](_0xd5a98f[_0x1ffc('0x4d')],this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x98')][_0x1ffc('0x4a')]),_0xd5a98f[_0x1ffc('0x5b')]===_0xd5a98f['toVersion']?(0x0!==_0xd5a98f['fromVersion']&&(this['_source'][_0x1ffc('0xbe')]=()=>_0xd5a98f['id']),this[_0x1ffc('0xe9')]=!0x1):this[_0x1ffc('0xe9')]&&(this['_source'][_0x1ffc('0xbe')]=()=>_0xd5a98f['id'],this[_0x1ffc('0x20')]=_0xd5a98f[_0x1ffc('0x5b')])),this[_0x1ffc('0xe9')]||(this[_0x1ffc('0x20')]=this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')]['version']);this[_0x1ffc('0x95')][_0x1ffc('0x9d')](this['_source'][_0x1ffc('0x98')]),this[_0x1ffc('0x7c')](this[_0x1ffc('0x20')]),this[_0x1ffc('0x43')](this[_0x1ffc('0x20')]),this[_0x1ffc('0x0')]&&this[_0x1ffc('0x99')]();}),this['bind'](_0x1ffc('0x66'))['to'](this,_0x1ffc('0x3b'),_0x355356=>!_0x355356);}async[_0x1ffc('0x25')](){if(this[_0x1ffc('0x7f')][_0x1ffc('0x76')]>0x0){const _0x24cbae=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](0x0),_0x10e11c=await this['getRevisionDocumentData'](_0x24cbae);this[_0x1ffc('0x1e')](_0x10e11c);}}[_0x1ffc('0x77')](_0x594511){this[_0x1ffc('0x75')]=_0x594511;}async[_0x1ffc('0x13')](){const _0x2c2133=await this[_0x1ffc('0x75')]['getLatestVersion']();if(_0x2c2133>this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]){await this[_0x1ffc('0x3a')]();const _0x14e100=this[_0x1ffc('0xf0')]({'revision':this['currentRevision'],'to':_0x2c2133});_0x14e100['authors']=_0x14e100['authorsIds'][_0x1ffc('0xe4')](_0x3b6bf8=>this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['getUser'](_0x3b6bf8)),this[_0x1ffc('0x5f')][_0x1ffc('0x96')](_0x14e100);}}async[_0x1ffc('0x3a')](){this['_continueCurrentRevision']&&!this[_0x1ffc('0x23')]&&(await this['_loadRevisionData'](this[_0x1ffc('0x5f')]),this[_0x1ffc('0x95')]['loadState'](this['currentRevision']),this[_0x1ffc('0x23')]={'fromVersion':this[_0x1ffc('0x5f')]['fromVersion'],'authors':this['currentRevision'][_0x1ffc('0x9e')][_0x1ffc('0x6f')]()});}async[_0x1ffc('0x93')](_0x7ad87d={},_0x5298e0=null){const _0x223480=[];await this['_loadState'](),this[_0x1ffc('0xe9')]=!0x1,_0x5298e0>this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]&&(_0x5298e0=null),null===_0x5298e0&&(_0x5298e0=await this[_0x1ffc('0x75')][_0x1ffc('0x5e')]());const _0x234d61=this[_0x1ffc('0x65')](_0x5298e0),_0x4c56b6=this[_0x1ffc('0xf0')]({'from':_0x234d61,'to':_0x5298e0});if(this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]<_0x5298e0){const _0x139810=this[_0x1ffc('0xf0')]({'revision':this[_0x1ffc('0x5f')],'from':_0x5298e0,'to':_0x5298e0});_0x139810[_0x1ffc('0x9e')]=[],_0x139810[_0x1ffc('0xa1')]=[],_0x139810['id']=this[_0x1ffc('0x5f')]['id'],this[_0x1ffc('0x5f')][_0x1ffc('0x96')](_0x139810,!0x0),delete _0x139810['authors'],_0x223480[_0x1ffc('0x38')](_0x139810);}_0x7ad87d[_0x1ffc('0x8a')]=this[_0x1ffc('0xb6')]['plugins'][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x7ad87d[_0x1ffc('0xbc')]=_0x7ad87d['name']||null,_0x7ad87d['id']=_0x7ad87d['id']||_0xf0ab0d(),_0x7ad87d={..._0x7ad87d,..._0x4c56b6};const _0x51bc4c=this[_0x1ffc('0x47')](_0x7ad87d);_0x223480['push'](_0x7ad87d);const _0x52f84e=this['repository'][_0x1ffc('0x2')](_0x51bc4c);if(0x0!==_0x52f84e){const _0x2fb4a7=this[_0x1ffc('0x7f')]['getRevision'](_0x52f84e-0x1);if(_0x2fb4a7[_0x1ffc('0x5b')]!==_0x5298e0){const _0x76b7a7=this[_0x1ffc('0x95')][_0x1ffc('0xcf')](_0x5298e0,_0x2fb4a7[_0x1ffc('0x4d')]),_0x3980c5={'id':_0x2fb4a7['id'],'diffData':_0x76b7a7[_0x1ffc('0x37')],'authorsIds':_0x76b7a7[_0x1ffc('0xa1')],'authors':_0x76b7a7['authorsIds'][_0x1ffc('0xe4')](_0x258c83=>this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))[_0x1ffc('0x86')](_0x258c83)),'fromVersion':_0x5298e0};_0x2fb4a7===this[_0x1ffc('0x5f')]&&(_0x3980c5[_0x1ffc('0xdc')]=new Date(_0x7ad87d[_0x1ffc('0xdc')][_0x1ffc('0x83')]()+0xa)),_0x2fb4a7[_0x1ffc('0x96')](_0x3980c5,!0x0),delete _0x3980c5[_0x1ffc('0x9e')],_0x223480[_0x1ffc('0x38')](_0x3980c5);}}if(this[_0x1ffc('0x0')]){for(const _0xb1f122 of _0x223480)this[_0x1ffc('0xc')](_0xb1f122['id'],_0xb1f122,!0x0);this[_0x1ffc('0x99')]();}return _0x51bc4c;}[_0x1ffc('0x47')](_0x4b6474){const _0x1413e9=this[_0x1ffc('0x7f')][_0x1ffc('0x8e')](_0x4b6474);return this[_0x1ffc('0x0')]&&_0x1413e9['on']('_update',(_0x7dc66a,_0x338e72,_0x5df22e)=>{_0x5df22e||(this['_bufferUpdate'](_0x338e72['id'],_0x338e72,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x1ffc('0xf5')](_0x1413e9,this[_0x1ffc('0x8')](_0x1413e9)),_0x1413e9;}async[_0x1ffc('0x30')](_0x5ba2bc){await this[_0x1ffc('0x1d')](_0x5ba2bc);const _0x3db561={};for(const _0x543fa9 in _0x5ba2bc[_0x1ffc('0x37')]){const _0x344345=this[_0x1ffc('0x39')](JSON[_0x1ffc('0x71')](_0x5ba2bc[_0x1ffc('0x37')][_0x543fa9][_0x1ffc('0xb')])),_0x37e103=this[_0x1ffc('0xb6')]['editing'][_0x1ffc('0xc1')][_0x1ffc('0x7b')],_0x29cb13=new _0x242b3a(_0x37e103,_0x344345[_0x1ffc('0xe4')](_0xc794e=>F(_0xc794e,this[_0x1ffc('0xb6')])));this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['processor'][_0x1ffc('0xa')](_0x1ffc('0xac')),_0x3db561[_0x543fa9]=this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['processor'][_0x1ffc('0xe0')](_0x29cb13),this['editor'][_0x1ffc('0xce')]['processor'][_0x1ffc('0xa')](_0x1ffc('0x2c'));}return _0x3db561;}[_0x1ffc('0x99')](){if(0x0===this[_0x1ffc('0xee')][_0x1ffc('0x68')])return;if(this[_0x1ffc('0x3b')])return;let _0x49465e=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xee')][_0x1ffc('0x84')]());this[_0x1ffc('0xee')][_0x1ffc('0x2f')]();for(let _0x50364c=0x0;_0x50364c<_0x49465e[_0x1ffc('0x76')];_0x50364c++){const _0x31edf1=_0x49465e[_0x50364c];let _0x1e97ce=!0x1;for(const _0x2c8355 of Object[_0x1ffc('0x19')](_0x31edf1))void 0x0===_0x31edf1[_0x2c8355]?delete _0x31edf1[_0x2c8355]:'id'!==_0x2c8355&&(_0x1e97ce=!0x0);_0x1e97ce||(_0x49465e[_0x50364c]=null);}if(_0x49465e=_0x49465e[_0x1ffc('0x51')](_0x5a5fbe=>null!==_0x5a5fbe),!_0x49465e[_0x1ffc('0x76')])return;for(let _0x20340d=0x0;_0x20340d<_0x49465e[_0x1ffc('0x76')];_0x20340d++){const _0x404c65=_0x49465e[_0x20340d];void 0x0!==_0x404c65[_0x1ffc('0x5b')]&&void 0x0===_0x404c65['toVersion']&&(_0x404c65['toVersion']=this['repository'][_0x1ffc('0xd5')](_0x404c65['id'])[_0x1ffc('0x4d')]),void 0x0!==_0x404c65[_0x1ffc('0x4d')]&&void 0x0===_0x404c65['fromVersion']&&(_0x404c65[_0x1ffc('0x5b')]=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x404c65['id'])[_0x1ffc('0x5b')]);}const _0x51f1f3=this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x45'));this[_0x1ffc('0x3b')]=!0x0,this[_0x1ffc('0x15')](),this[_0x1ffc('0x0')][_0x1ffc('0xd9')](_0x49465e,_0x51f1f3)[_0x1ffc('0xc5')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xa13f66=>{if(_0xa13f66)for(const _0x5c269c of _0xa13f66)this[_0x1ffc('0xde')]({'id':_0x5c269c['id'],'createdAt':_0x5c269c[_0x1ffc('0xdc')]});this['_removePendingAction'](),this[_0x1ffc('0x99')]();});}[_0x1ffc('0x1e')](_0x2b3fb8){let _0x4b1ca0=this['editor'][_0x1ffc('0x49')]['get'](_0x1ffc('0xd4'));if(void 0x0===_0x4b1ca0){_0x4b1ca0={};for(const _0x5847e5 of this['editor'][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x40')]())_0x4b1ca0[_0x5847e5]='';}'string'==typeof _0x4b1ca0&&(_0x4b1ca0={'main':_0x4b1ca0});let _0x465f3b=!0x1;for(const _0x8c01ba of Object[_0x1ffc('0x19')](_0x4b1ca0))_0x2b3fb8[_0x8c01ba]&&(_0x4b1ca0[_0x8c01ba]!==_0x2b3fb8[_0x8c01ba]&&''!==_0x4b1ca0[_0x8c01ba]['trim']()&&(_0x465f3b=!0x0),_0x4b1ca0[_0x8c01ba]=_0x2b3fb8[_0x8c01ba]);_0x465f3b&&_0x21e039('editor-initial-data-replaced-with-revision-data'),this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0x27')](_0x1ffc('0xd4'),_0x4b1ca0);}[_0x1ffc('0x15')](){if(!this[_0x1ffc('0x6a')]){const _0x4e36dc=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xb3'));this[_0x1ffc('0x6a')]=_0x4e36dc[_0x1ffc('0xae')](_0x2536e9(this[_0x1ffc('0xb6')][_0x1ffc('0x34')],_0x1ffc('0x63')));}}['_removePendingAction'](){this[_0x1ffc('0x6a')]&&(this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xb3'))[_0x1ffc('0x6b')](this[_0x1ffc('0x6a')]),this[_0x1ffc('0x6a')]=null);}['_findInsertionIndex'](_0x5e95a4){const _0x2adbf5=this[_0x1ffc('0x7f')][_0x1ffc('0xa5')]();_0x2adbf5[_0x1ffc('0xf2')]();let _0x325be0=0x0;for(;_0x325be0<_0x2adbf5['length'];){const _0x364305=_0x2adbf5[_0x325be0];if(_0x364305===this[_0x1ffc('0x5f')]){_0x325be0++;continue;}if(_0x364305['id']===this[_0x1ffc('0x89')])break;const _0x4bc3d8=_0x5e95a4[_0x1ffc('0x4d')]-_0x364305['toVersion']||_0x5e95a4[_0x1ffc('0x5b')]-_0x364305[_0x1ffc('0x5b')];if(_0x4bc3d8>0x0)break;if(_0x4bc3d8<0x0)_0x325be0++;else{if(!_0x5e95a4['creator']&&_0x364305[_0x1ffc('0xe8')])break;if(_0x364305[_0x1ffc('0xe8')]||!_0x5e95a4[_0x1ffc('0xe8')]){if(_0x5e95a4[_0x1ffc('0xdc')]>_0x364305[_0x1ffc('0xdc')])break;_0x325be0++;}else _0x325be0++;}}return _0x325be0;}[_0x1ffc('0xde')](_0x34fe2d){const _0xa8f35c=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x34fe2d['id']);if(_0x34fe2d['createdAt']&&(_0x34fe2d[_0x1ffc('0xdc')]=new Date(_0x34fe2d[_0x1ffc('0xdc')])),_0x34fe2d[_0x1ffc('0xa1')]){const _0x1e05cb=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'));_0x34fe2d['authors']=_0x34fe2d[_0x1ffc('0xa1')][_0x1ffc('0xe4')](_0x4d63e1=>_0x1e05cb[_0x1ffc('0x86')](_0x4d63e1));}_0xa8f35c[_0x1ffc('0x96')](_0x34fe2d,!0x0);}[_0x1ffc('0xf0')]({revision:_0x16a82d=null,from:_0x4594b0=null,to:_0xe62b03=null}){_0x4594b0=null!==_0x4594b0?_0x4594b0:_0x16a82d[_0x1ffc('0x5b')],_0xe62b03=null!==_0xe62b03?_0xe62b03:_0x16a82d[_0x1ffc('0x4d')];const _0x2c49cb=this[_0x1ffc('0x95')][_0x1ffc('0xcf')](_0x4594b0,_0xe62b03),_0x5e07ad={'diffData':_0x2c49cb[_0x1ffc('0x37')],'authorsIds':_0x2c49cb['authorsIds'],'fromVersion':_0x4594b0,'toVersion':_0xe62b03};if(!_0x16a82d||_0xe62b03!==_0x16a82d[_0x1ffc('0x4d')]){const _0x242e32=_0xe62b03-0x1,_0x383c27=this[_0x1ffc('0x75')][_0x1ffc('0x98')][_0x1ffc('0x52')](_0x242e32);_0x5e07ad['createdAt']=_0x383c27&&_0x383c27[_0x1ffc('0xdc')]||new Date();}if(this[_0x1ffc('0x23')]&&_0x4594b0===this[_0x1ffc('0x23')][_0x1ffc('0x5b')])for(const _0x196884 of this[_0x1ffc('0x23')][_0x1ffc('0x9e')])_0x5e07ad[_0x1ffc('0xa1')][_0x1ffc('0x18')](_0x196884['id'])||_0x5e07ad[_0x1ffc('0xa1')][_0x1ffc('0x38')](_0x196884['id']);return _0x5e07ad;}[_0x1ffc('0x1d')](_0x52d6b7){if(!_0x52d6b7||_0x52d6b7[_0x1ffc('0x37')])return Promise[_0x1ffc('0xdd')]();{const _0x6df019=this[_0x1ffc('0xb6')][_0x1ffc('0x49')]['get'](_0x1ffc('0x45'));return this[_0x1ffc('0x0')][_0x1ffc('0xd5')]({'channelId':_0x6df019,'revisionId':_0x52d6b7['id']})[_0x1ffc('0x6c')](_0x55be98=>{_0x52d6b7[_0x1ffc('0x37')]=_0x55be98[_0x1ffc('0x37')];});}}['_bufferUpdate'](_0x2977b3,_0x46d583,_0x53fe08){if(this['_bufferedUpdates'][_0x1ffc('0x2b')](_0x2977b3)){const _0x481f59=this[_0x1ffc('0xee')][_0x1ffc('0xda')](_0x2977b3);_0x46d583=_0x53fe08?{..._0x481f59,..._0x46d583}:{..._0x46d583,..._0x481f59};}this[_0x1ffc('0xee')]['set'](_0x2977b3,_0x46d583);}[_0x1ffc('0x65')](_0x487d1d){const _0x4ad7df=this[_0x1ffc('0x7f')][_0x1ffc('0xa5')]();_0x4ad7df['reverse'](),_0x4ad7df[_0x1ffc('0xd')]();const _0x52683a=_0x4ad7df[_0x1ffc('0xd2')](_0x2bb484=>_0x2bb484['toVersion']<=_0x487d1d)[_0x1ffc('0x4d')];return _0x52683a<this[_0x1ffc('0x20')]?this['_startingVersion']:_0x52683a;}[_0x1ffc('0x7c')](_0x3029dd){const _0x450f0a=this[_0x1ffc('0x7f')]['getRevision'](this[_0x1ffc('0x7f')]['length']-0x1);if(_0x450f0a)this['_initialRevisionId']=_0x450f0a['id'];else{const _0x5b716a=!this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x5d')][_0x1ffc('0xd2')](_0x16577d=>this[_0x1ffc('0xb6')][_0x1ffc('0x82')]['hasContent'](_0x16577d)),_0x266d20=this[_0x1ffc('0xb6')][_0x1ffc('0xab')]['get'](_0x1ffc('0xa0'))['me']['id'],_0x5102e0=_0x2536e9(this[_0x1ffc('0xb6')][_0x1ffc('0x34')],_0x5b716a?'Empty\x20document':_0x1ffc('0x4e'));this[_0x1ffc('0x54')]({'from':_0x3029dd,'to':_0x3029dd,'id':this['_initialRevisionId'],'name':_0x5102e0,'creatorId':_0x266d20});}}['_createCurrentRevision'](_0x39b599){const _0x3883d1=this[_0x1ffc('0x75')][_0x1ffc('0xbe')]();this['currentRevision']=this[_0x1ffc('0x7f')]['getRevision'](_0x3883d1),this[_0x1ffc('0x5f')]||(this[_0x1ffc('0x5f')]=this['_makeRevision']({'from':_0x39b599,'to':_0x39b599,'id':_0x3883d1,'name':'','creatorId':null}));}[_0x1ffc('0x54')]({name:_0x33ce5c,from:_0x205a64,to:_0x1138a3,creatorId:_0x4faee4,id:_0x5abe7e}){const _0x3af37d=this[_0x1ffc('0xf0')]({'from':_0x205a64,'to':_0x1138a3});_0x3af37d[_0x1ffc('0xbc')]=_0x33ce5c,_0x3af37d[_0x1ffc('0x8a')]=_0x4faee4,_0x3af37d['id']=_0x5abe7e;const _0x42af25=this['addRevisionData'](_0x3af37d);return this[_0x1ffc('0x0')]&&this['_bufferUpdate'](_0x3af37d['id'],_0x3af37d,!0x0),_0x42af25;}[_0x1ffc('0xea')](){this['editor'][_0x1ffc('0xb2')]['for'](_0x1ffc('0xe2'))[_0x1ffc('0xe1')]({'model':_0x1ffc('0x11')});}[_0x1ffc('0x39')](_0x497a73){return(_0x497a73=_0x497a73[_0x1ffc('0x51')](_0xe915c5=>!_0xe915c5[_0x1ffc('0xbc')]||_0x1ffc('0x3')!==_0xe915c5[_0x1ffc('0xbc')]&&'revision-end'!==_0xe915c5[_0x1ffc('0xbc')]))[_0x1ffc('0xa6')](_0xdb3849=>{_0x1ffc('0x10')!=typeof _0xdb3849&&(_0xdb3849['children']=this[_0x1ffc('0x39')](_0xdb3849[_0x1ffc('0x8c')]),_0xdb3849[_0x1ffc('0xc6')]=_0xdb3849[_0x1ffc('0xc6')][_0x1ffc('0x51')](_0x4c4c73=>!_0x4c4c73[0x0]['startsWith'](_0x1ffc('0x79'))));}),_0x497a73;}}function F(_0x22eae1,_0x36f7be){const _0x7846cf=_0x36f7be[_0x1ffc('0x74')][_0x1ffc('0xc1')][_0x1ffc('0x7b')];if(_0x1ffc('0x10')==typeof _0x22eae1)return new _0x4ede3d(_0x7846cf,_0x22eae1);{const _0x264591=_0x22eae1[_0x1ffc('0x8c')][_0x1ffc('0xe4')](_0x936a5f=>F(_0x936a5f,_0x36f7be));return new(V[_0x22eae1[(_0x1ffc('0xd7'))]]||_0x5af39b)(_0x7846cf,_0x22eae1[_0x1ffc('0xbc')],_0x22eae1[_0x1ffc('0xc6')],_0x264591);}}class T{constructor(_0x786bf){this[_0x1ffc('0xb6')]=_0x786bf,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x1ffc('0xaa')]=-0x1,this[_0x1ffc('0x2a')]=new Map(),this['_diffRoots']=new Map(),this[_0x1ffc('0xa2')]=new Map(),this[_0x1ffc('0x94')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x1ffc('0xeb')]=new Map(),this[_0x1ffc('0x46')]=new Map(),this[_0x1ffc('0x7d')]=0x1,this[_0x1ffc('0x91')]=this['editor'][_0x1ffc('0x82')]['document']['getRootNames'](),this['_rootNames'][_0x1ffc('0x38')]('$graveyard');}[_0x1ffc('0x9d')](_0x1318d8){this[_0x1ffc('0x50')]=_0x1318d8;const _0x3a0e45=new Map();for(const _0x5b5c6e of this[_0x1ffc('0x91')]){const _0x5c4ec4=J(this['editor']['model'][_0x1ffc('0x7b')][_0x1ffc('0xb9')](_0x5b5c6e));_0x3a0e45[_0x1ffc('0x27')](_0x5b5c6e,_0x5c4ec4);}const _0x24e1aa=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0xc0')])['map'](_0x4e5f02=>[_0x4e5f02['name'],_0x4e5f02[_0x1ffc('0xdb')]()]),_0x3a2ba2=this[_0x1ffc('0x50')][_0x1ffc('0x4a')];this[_0x1ffc('0x1f')](_0x3a2ba2,_0x3a0e45,_0x24e1aa),this['_startingRevisionId']=this[_0x1ffc('0x7d')];}[_0x1ffc('0xcf')](_0x1e5cd5,_0x221cc0){if(this[_0x1ffc('0x22')]===_0x1e5cd5&&this[_0x1ffc('0xaa')]<=_0x221cc0)this[_0x1ffc('0xf1')]['size']>0x1&&this[_0x1ffc('0xc8')](this[_0x1ffc('0xaa')]),this[_0x1ffc('0xcd')](this[_0x1ffc('0xaa')],_0x221cc0,!0x0);else{if(!this[_0x1ffc('0xf1')]['has'](_0x1e5cd5)){const _0x347443=this[_0x1ffc('0x35')](_0x1e5cd5);this[_0x1ffc('0x32')](_0x347443,_0x1e5cd5,!0x1);}this[_0x1ffc('0x32')](_0x1e5cd5,_0x221cc0,!0x0);}return this[_0x1ffc('0x22')]=_0x1e5cd5,this[_0x1ffc('0xaa')]=_0x221cc0,this['_getState']();}[_0x1ffc('0xd8')](_0x4af375){this[_0x1ffc('0x1c')](),this[_0x1ffc('0x22')]=_0x4af375[_0x1ffc('0x5b')],this[_0x1ffc('0xaa')]=_0x4af375[_0x1ffc('0x4d')];for(const _0x1670b2 in _0x4af375[_0x1ffc('0x37')]){const _0x211f1d=this[_0x1ffc('0x29')](_0x4af375[_0x1ffc('0x37')][_0x1670b2]['deletions']);_0x211f1d[_0x1ffc('0x8d')]=_0x1670b2,this[_0x1ffc('0xa2')][_0x1ffc('0x27')](_0x1670b2,_0x211f1d);const _0x287e8c=this[_0x1ffc('0xec')](_0x211f1d);this[_0x1ffc('0x14')][_0x1ffc('0x27')](_0x1670b2,_0x287e8c);for(const [_0x49c0ff,_0x54c4f0]of _0x211f1d[_0x1ffc('0xc0')]){if(!_0x49c0ff['startsWith']('revision:'))continue;const _0x55f1d7=_0x49c0ff['split'](':')[0x2];for(const _0x2ad630 of _0x54c4f0[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x245716=this['_getVidAttributeName'](_0x2ad630),_0x300f29=_0x1ffc('0x36')==_0x2ad630[_0x1ffc('0xd7')]?_0x2ad630['previousPosition'][_0x1ffc('0xc7')]['slice'](0x0,-0x1):_0x2ad630[_0x1ffc('0x3f')][_0x1ffc('0xc7')],_0x3fb031=_0x287e8c[_0x1ffc('0xf')](_0x300f29)[_0x1ffc('0xb0')](_0x245716);this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x3fb031,{'userId':_0x55f1d7});}}}this[_0x1ffc('0x4')]=this[_0x1ffc('0x7d')];const _0x3839f7=[...Array(this[_0x1ffc('0x7d')])[_0x1ffc('0x19')]()]['slice'](0x1)[_0x1ffc('0x51')](_0x3a4107=>!this[_0x1ffc('0xeb')][_0x1ffc('0x2b')](_0x3a4107));let _0xcf6814=0x0;for(const _0x19adb7 in _0x4af375[_0x1ffc('0x37')]){const _0x4a91ae=this[_0x1ffc('0x29')](_0x4af375[_0x1ffc('0x37')][_0x19adb7][_0x1ffc('0xb')]);_0x4a91ae[_0x1ffc('0x8d')]=_0x19adb7,this['_diffRoots']['set'](_0x19adb7,_0x4a91ae);const _0x1e765e=this[_0x1ffc('0xec')](_0x4a91ae,Number[_0x1ffc('0xaf')]);this['_idsRoots'][_0x1ffc('0x27')](_0x19adb7,_0x1e765e);for(const [_0x430c32,_0x1fad8d]of _0x4a91ae[_0x1ffc('0xc0')]){if(!_0x430c32['startsWith'](_0x1ffc('0x1a')))continue;const _0x16b410=_0x430c32[_0x1ffc('0x7a')](':')[0x2];for(const _0x12e65e of _0x1fad8d[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x3537d7=this[_0x1ffc('0x16')](_0x12e65e),_0x5f3de2=this[_0x1ffc('0x7d')]++,_0x3cda4d=_0x1ffc('0x36')==_0x12e65e['type']?_0x12e65e[_0x1ffc('0x3f')][_0x1ffc('0xc7')]['slice'](0x0,-0x1):_0x12e65e[_0x1ffc('0x3f')][_0x1ffc('0xc7')];_0x1e765e['getNodeByPath'](_0x3cda4d)[_0x1ffc('0xb1')](_0x3537d7,_0x5f3de2),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x5f3de2,{'userId':_0x16b410});}}for(const _0x1a1f97 of this[_0x1ffc('0xb6')]['model'][_0x1ffc('0x42')](_0x4a91ae)[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x5f2e57=this[_0x1ffc('0x16')](_0x1a1f97),_0x2d4ee4='elementEnd'==_0x1a1f97['type']?_0x1a1f97[_0x1ffc('0x3f')][_0x1ffc('0xc7')][_0x1ffc('0x6f')](0x0,-0x1):_0x1a1f97[_0x1ffc('0x3f')][_0x1ffc('0xc7')],_0x7d46fe=_0x1e765e['getNodeByPath'](_0x2d4ee4);_0x7d46fe[_0x1ffc('0xb0')](_0x5f2e57)>0x0||_0x7d46fe[_0x1ffc('0xb1')](_0x5f2e57,_0x3839f7[_0xcf6814++]);}const _0x33753b=new _0xfd6a74();_0x33753b['rootName']=_0x1ffc('0xf3'),this['_baseRoots']['set']('$graveyard',_0x33753b),this['_baseIdsRoots'][_0x1ffc('0x27')](_0x1ffc('0xf3'),this[_0x1ffc('0xec')](_0x33753b,0x1));const _0x1fdcf5=new _0xfd6a74();_0x1fdcf5['rootName']='$graveyard',this['_diffRoots'][_0x1ffc('0x27')]('$graveyard',_0x1fdcf5),this['_idsRoots'][_0x1ffc('0x27')]('$graveyard',this['_makeIdsRoot'](_0x1fdcf5,0x1));for(const [_0x42f563,_0x3bec41]of _0x4a91ae[_0x1ffc('0xc0')])_0x42f563[_0x1ffc('0x7e')]('revision:')||this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0x42f563,_0x3bec41);}const _0xe7bf0f=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xbb')])['map'](([_0x575e05,_0x233f6c])=>[_0x575e05,J(_0x233f6c)]);this[_0x1ffc('0x1f')](this['_lastTo'],_0xe7bf0f,this['_markers']);}[_0x1ffc('0x29')](_0x56d3f6){const _0xdbbc1f=JSON['parse'](_0x56d3f6),_0x5241fd=this[_0x1ffc('0xb6')][_0x1ffc('0x74')]['view'][_0x1ffc('0x7b')],_0x4c0ada=new _0x242b3a(_0x5241fd,_0xdbbc1f[_0x1ffc('0xe4')](_0x368908=>F(_0x368908,this[_0x1ffc('0xb6')])));return this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['toModel'](_0x4c0ada);}[_0x1ffc('0x73')](){const _0x2c6cca=new Map();for(const _0x3b4135 of this[_0x1ffc('0x91')]){const _0x43dc35=new _0xfd6a74();_0x43dc35[_0x1ffc('0x8d')]=_0x3b4135,_0x2c6cca[_0x1ffc('0x27')](_0x3b4135,_0x43dc35);}this[_0x1ffc('0x1f')](Number[_0x1ffc('0xaf')],_0x2c6cca,[]);}[_0x1ffc('0x1f')](_0x5a5b93,_0x559c31,_0x3b89b2){const _0x22424b=new Map(_0x559c31),_0x9a0d8e=new Map();for(const [_0x1003b7,_0x2e4cf0]of _0x3b89b2)_0x9a0d8e[_0x1ffc('0x27')](_0x1003b7,{'start':_0x2e4cf0[_0x1ffc('0x87')][_0x1ffc('0x41')](),'end':_0x2e4cf0['end'][_0x1ffc('0x41')](),'rootName':_0x2e4cf0[_0x1ffc('0x92')]['rootName']});this[_0x1ffc('0xf1')][_0x1ffc('0x27')](_0x5a5b93,{'roots':_0x22424b,'markers':_0x9a0d8e});}[_0x1ffc('0xc8')](_0x128ee4){this[_0x1ffc('0xf1')][_0x1ffc('0x88')](_0x128ee4);}[_0x1ffc('0x8b')](){this[_0x1ffc('0x1c')](),this[_0x1ffc('0x22')]=-0x1,this[_0x1ffc('0xaa')]=-0x1,this[_0x1ffc('0xf1')]['clear'](),this[_0x1ffc('0x9d')](this[_0x1ffc('0x50')]);}[_0x1ffc('0x1c')](){this[_0x1ffc('0xeb')][_0x1ffc('0x2f')](),this[_0x1ffc('0x46')][_0x1ffc('0x2f')](),this[_0x1ffc('0xbb')][_0x1ffc('0x2f')](),this['_baseRoots'][_0x1ffc('0x2f')](),this[_0x1ffc('0x94')][_0x1ffc('0x2f')](),this[_0x1ffc('0x14')][_0x1ffc('0x2f')](),this[_0x1ffc('0x2a')][_0x1ffc('0x2f')](),this[_0x1ffc('0x7d')]=0x1,this[_0x1ffc('0x4')]=this['_revisionId'];}[_0x1ffc('0xec')](_0x467a0d,_0xc202d5=null){let _0x43c073=null;_0x467a0d['is'](_0x1ffc('0x4f'))||(_0x43c073=new _0x230a92(_0x467a0d[_0x1ffc('0xbc')],{'vid_start':null===_0xc202d5?this[_0x1ffc('0x7d')]++:_0xc202d5++}));const _0x2e9cf5=[];for(const _0x11eb4e of _0x467a0d[_0x1ffc('0x59')]())if(_0x11eb4e['is'](_0x1ffc('0xf4'))){_0x2e9cf5[_0x1ffc('0x38')](this[_0x1ffc('0xec')](_0x11eb4e,_0xc202d5));const _0x3a73e5=_0x2e9cf5[_0x2e9cf5['length']-0x1];null!==_0xc202d5&&(_0xc202d5=_0x3a73e5['is'](_0x1ffc('0xf4'),_0x1ffc('0x9b'))?_0x3a73e5[_0x1ffc('0xb0')](_0x1ffc('0x33'))+0x1:_0x3a73e5['getAttribute']('vid_end')+0x1);}else for(let _0x5ad1b2=0x0;_0x5ad1b2<_0x11eb4e[_0x1ffc('0xb5')];_0x5ad1b2++)_0x2e9cf5['push'](new _0x230a92('$text',{'vid':null===_0xc202d5?this[_0x1ffc('0x7d')]++:_0xc202d5++}));if(_0x467a0d['is'](_0x1ffc('0x4f'))){const _0x3894bc=new _0xfd6a74(_0x2e9cf5);return _0x3894bc[_0x1ffc('0x8d')]=_0x467a0d['rootName'],_0x3894bc;}return _0x43c073[_0x1ffc('0xb1')](_0x1ffc('0xc4'),null===_0xc202d5?this['_revisionId']++:_0xc202d5++),_0x43c073[_0x1ffc('0x1b')](0x0,_0x2e9cf5),_0x43c073;}[_0x1ffc('0x32')](_0x3e928f,_0x5bf16a,_0x313ae1){this[_0x1ffc('0x1c')]();const {roots:_0x3dcd60,markers:_0x30aad3}=this[_0x1ffc('0xf1')][_0x1ffc('0xda')](_0x3e928f);this['_baseRoots']=new Map(_0x3dcd60);for(const [_0x5d2e2d,_0x5c8e99]of this[_0x1ffc('0xa2')])if('$graveyard'!==_0x5d2e2d&&(this[_0x1ffc('0xbb')][_0x1ffc('0x27')](_0x5d2e2d,J(_0x5c8e99)),_0x313ae1)){const _0x574b8a=this[_0x1ffc('0x7d')];this[_0x1ffc('0x94')][_0x1ffc('0x27')](_0x5d2e2d,this[_0x1ffc('0xec')](_0x5c8e99)),this[_0x1ffc('0x14')]['set'](_0x5d2e2d,this[_0x1ffc('0xec')](_0x5c8e99,_0x574b8a));}this['_startingRevisionId']=this[_0x1ffc('0x7d')],this['_diffRoots']['set'](_0x1ffc('0xf3'),J(this[_0x1ffc('0xa2')][_0x1ffc('0xda')]('$graveyard'))),_0x313ae1&&this[_0x1ffc('0x94')][_0x1ffc('0x27')]('$graveyard',this[_0x1ffc('0xec')](this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x1ffc('0xf3'))));for(const [_0x2d33f6,_0x104594]of _0x30aad3){const _0x59fa06=this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x104594[_0x1ffc('0x8d')]),_0x56c319=this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x104594[_0x1ffc('0x8d')]),_0x51e99a=new _0x21882a(this[_0x1ffc('0xa8')](_0x104594[_0x1ffc('0x87')],_0x59fa06),this[_0x1ffc('0xa8')](_0x104594[_0x1ffc('0xbd')],_0x59fa06)),_0x1901e9=this[_0x1ffc('0x6')](_0x51e99a,_0x56c319);_0x59fa06[_0x1ffc('0xc0')]['set'](_0x2d33f6,_0x51e99a),this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0x2d33f6,_0x1901e9);}this[_0x1ffc('0xcd')](_0x3e928f,_0x5bf16a,_0x313ae1);}[_0x1ffc('0xcd')](_0x5a0184,_0x46095b,_0x429a50){for(const _0x52f0c4 of this['source'][_0x1ffc('0x1')](_0x5a0184,_0x46095b))this[_0x1ffc('0xd3')](_0x52f0c4,_0x429a50);for(const _0x5bd46b of this[_0x1ffc('0xbb')][_0x1ffc('0x84')]())_0x5bd46b[_0x1ffc('0xc0')][_0x1ffc('0x2f')]();for(const [_0x16b88e,_0x50d225]of this[_0x1ffc('0x2a')]){this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x50d225['root'][_0x1ffc('0x8d')])[_0x1ffc('0xc0')][_0x1ffc('0x27')](_0x16b88e,_0x50d225[_0x1ffc('0x41')]());}this[_0x1ffc('0x1f')](_0x46095b,Array['from'](this['_diffRoots'])[_0x1ffc('0xe4')](([_0x2faa63,_0xb44f61])=>[_0x2faa63,J(_0xb44f61)]),this['_markers']);}['_getPreviousFrom'](_0x5e4d91){const _0x15fcd8=Array[_0x1ffc('0xd6')](this['_savedMetaData'][_0x1ffc('0x19')]());_0x15fcd8[_0x1ffc('0xbf')]((_0x1a477c,_0x5239f4)=>_0x1a477c-_0x5239f4),_0x15fcd8[_0x1ffc('0xf2')]();for(const _0x166f0b of _0x15fcd8)if(_0x166f0b<_0x5e4d91)return _0x166f0b;return this[_0x1ffc('0x73')](),Number[_0x1ffc('0xaf')];}['_copyMarkers'](_0x462bcb,_0x20c951){const _0x5b39df=Array['from'](_0x20c951['markers'])[_0x1ffc('0xe4')](([_0x1b7757,_0x5eda30])=>[_0x1b7757,this[_0x1ffc('0x6')](_0x5eda30,_0x462bcb)]);_0x462bcb[_0x1ffc('0xc0')]=new Map(_0x5b39df);}['_transformMarkers'](_0x5e02e6){for(const _0x50e713 of this['_markers']['values']()){const _0x2b6f74=_0x50e713[_0x1ffc('0x90')](_0x5e02e6),_0x462fc9=_0x21882a[_0x1ffc('0x85')](_0x2b6f74);_0x50e713['start']=_0x462fc9[_0x1ffc('0x87')],_0x50e713['end']=_0x462fc9['end'];}}['_handleOperation'](_0x202f10,_0x485c3a){const _0x55e23c=this['_cloneOperation'](_0x202f10,this[_0x1ffc('0xbb')]);if(_0x1ffc('0xef')!==_0x202f10['type']&&(_0x55e23c[_0x1ffc('0x78')](),this[_0x1ffc('0xcb')](_0x55e23c)),_0x485c3a)switch(_0x55e23c['type']){case _0x1ffc('0x3e'):this[_0x1ffc('0x7')](_0x202f10);break;case _0x1ffc('0x28'):case _0x1ffc('0x6b'):case _0x1ffc('0xb8'):this['_handleMoveOperation'](_0x202f10);break;case'merge':this[_0x1ffc('0xcc')](_0x202f10);break;case'split':this[_0x1ffc('0xa4')](_0x202f10);break;case _0x1ffc('0xef'):this[_0x1ffc('0x2e')](_0x202f10);}}['_cloneOperation'](_0x511c77,_0x54f405){const _0x2410fc=_0x511c77[_0x1ffc('0x41')]();return _0x2410fc[_0x1ffc('0xa7')]=_0x511c77[_0x1ffc('0xa7')],this['_fixOperation'](_0x2410fc,_0x54f405),_0x2410fc;}[_0x1ffc('0x3d')](_0x120214){return _0x120214[_0x1ffc('0xe4')](_0x2a0503=>{const _0x2de7ae=this[_0x1ffc('0x16')](_0x2a0503);return Number(_0x2a0503[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x2de7ae));});}['_generateTape'](_0x519b58,_0x19bbfc){if(_0x519b58['is']('element','$text'))_0x19bbfc[_0x1ffc('0x38')]({'item':_0x519b58,'type':'text'});else{_0x519b58['is'](_0x1ffc('0xf4'))&&_0x19bbfc['push']({'item':_0x519b58,'type':_0x1ffc('0x56')});for(const _0xbd0e85 of _0x519b58[_0x1ffc('0x59')]())this['_generateTape'](_0xbd0e85,_0x19bbfc);_0x519b58['is']('element')&&_0x19bbfc[_0x1ffc('0x38')]({'item':_0x519b58,'type':_0x1ffc('0x36')});}return _0x19bbfc;}[_0x1ffc('0x48')](){const _0x79aeb4=this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x40')](),_0x15588c=new Map(this[_0x1ffc('0xeb')]),_0x441f59=new Map(_0x15588c),_0x5d373d=new Map(),_0x590861={'insertions':{},'deletions':{}},_0x984c6e={'insertions':{},'deletions':{}},_0x1dbcbb=new Map();for(const _0x5cf460 of _0x79aeb4){const _0x33152e=this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x5cf460),_0xa1e812=this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x5cf460);_0x590861[_0x1ffc('0xb')][_0x5cf460]=J(_0x33152e),_0x590861['deletions'][_0x5cf460]=J(_0xa1e812),this[_0x1ffc('0x6d')](_0x590861['deletions'][_0x5cf460],_0xa1e812),this[_0x1ffc('0x6d')](_0x590861[_0x1ffc('0xb')][_0x5cf460],_0x33152e),_0x984c6e['insertions'][_0x5cf460]=this['_generateTape'](this[_0x1ffc('0x94')][_0x1ffc('0xda')](_0x5cf460),[]),_0x984c6e[_0x1ffc('0x53')][_0x5cf460]=this[_0x1ffc('0x31')](this['_baseIdsRoots'][_0x1ffc('0xda')](_0x5cf460),[]);}for(const _0x4fe41b of _0x79aeb4){const _0x1a2963=_0x984c6e['insertions'][_0x4fe41b];for(const _0x53e098 of _0x1a2963){const _0x485952=this[_0x1ffc('0x16')](_0x53e098),_0x291aef=_0x53e098[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x485952);_0x441f59[_0x1ffc('0x88')](_0x291aef),_0x291aef>=this[_0x1ffc('0x4')]&&_0x5d373d['set'](_0x291aef,_0x15588c[_0x1ffc('0xda')](_0x291aef));}}for(const _0x1d155d of _0x79aeb4){const _0x2963ca=_0x984c6e[_0x1ffc('0xb')][_0x1d155d],_0x51c2a7=this[_0x1ffc('0x3d')](_0x984c6e[_0x1ffc('0x53')][_0x1d155d]);let _0x3d198d=0x0;for(const _0x54b038 of _0x2963ca){const _0xb58278=this['_getVidAttributeName'](_0x54b038),_0x2de699=_0x54b038[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0xb58278);if(!_0x5d373d[_0x1ffc('0x2b')](_0x2de699)&&!_0x1dbcbb[_0x1ffc('0x2b')](_0x2de699)){if(_0x441f59[_0x1ffc('0x2b')](_0x2de699))_0x3d198d++;else{if(_0x2de699!=_0x51c2a7[_0x3d198d]){const _0x2aad84=_0x15588c[_0x1ffc('0xda')](_0x2de699)||_0x15588c[_0x1ffc('0xda')](_0x51c2a7[_0x3d198d]);for(;_0x2de699!=_0x51c2a7[_0x3d198d];)_0x441f59[_0x1ffc('0x2b')](_0x51c2a7[_0x3d198d])||(_0x1dbcbb[_0x1ffc('0x27')](_0x51c2a7[_0x3d198d],_0x2aad84),_0x15588c[_0x1ffc('0x27')](_0x51c2a7[_0x3d198d],_0x2aad84)),_0x3d198d++;}_0x3d198d++;}}}}for(const _0x29482e of _0x79aeb4){const _0x757487=_0x984c6e[_0x1ffc('0xb')][_0x29482e];for(const _0x223af9 of _0x757487){const _0x283ee2=this[_0x1ffc('0x16')](_0x223af9),_0x474179=_0x223af9['item'][_0x1ffc('0xb0')](_0x283ee2);if(_0x1dbcbb[_0x1ffc('0x2b')](_0x474179)){const _0x138e0e=_0x1dbcbb[_0x1ffc('0xda')](_0x474179);_0x441f59[_0x1ffc('0x2b')](_0x474179)||_0x441f59['set'](_0x474179,{..._0x138e0e}),_0x5d373d[_0x1ffc('0x27')](_0x474179,{..._0x138e0e});}}}for(const _0x499261 of _0x441f59['keys']())_0x499261>=this[_0x1ffc('0x4')]&&_0x441f59[_0x1ffc('0x88')](_0x499261);const _0x339e0c=new Map();for(const _0x44d418 of _0x79aeb4){let _0x2ed6ab=_0x984c6e[_0x1ffc('0xb')][_0x44d418];for(const _0x3208a8 of _0x2ed6ab)if(_0x3208a8[_0x1ffc('0xe5')]['is'](_0x1ffc('0xf4'),_0x1ffc('0x6e'))){const _0x5dee5a=this[_0x1ffc('0x16')](_0x3208a8),_0x3f45dc=_0x3208a8[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x5dee5a);if(_0x5d373d['has'](_0x3f45dc)){const _0x4e29cf=_0x3208a8[_0x1ffc('0xe5')][_0x1ffc('0xd0')][_0x1ffc('0xd0')]['getAttribute']('vid_start'),_0xde4faf=_0x339e0c['get'](_0x4e29cf)||new Set();_0xde4faf[_0x1ffc('0xae')](_0x5d373d[_0x1ffc('0xda')](_0x3f45dc)[_0x1ffc('0x9')]),_0x339e0c[_0x1ffc('0x27')](_0x4e29cf,_0xde4faf);}}_0x2ed6ab=_0x984c6e[_0x1ffc('0x53')][_0x44d418];for(const _0x46cab4 of _0x2ed6ab)if(_0x46cab4[_0x1ffc('0xe5')]['is'](_0x1ffc('0xf4'),_0x1ffc('0x6e'))){const _0x37dad9=this[_0x1ffc('0x16')](_0x46cab4),_0x538c0a=_0x46cab4[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x37dad9);if(_0x441f59[_0x1ffc('0x2b')](_0x538c0a)){const _0x1359ae=_0x46cab4['item'][_0x1ffc('0xd0')][_0x1ffc('0xd0')][_0x1ffc('0xb0')](_0x1ffc('0x5a')),_0x341df6=_0x339e0c[_0x1ffc('0xda')](_0x1359ae)||new Set();_0x341df6['add'](_0x441f59[_0x1ffc('0xda')](_0x538c0a)['userId']),_0x339e0c['set'](_0x1359ae,_0x341df6);}}for(const _0x4b4123 of _0x339e0c[_0x1ffc('0x19')]())(_0x5d373d[_0x1ffc('0x2b')](_0x4b4123)||_0x441f59['has'](_0x4b4123))&&_0x339e0c[_0x1ffc('0x88')](_0x4b4123);}for(const _0x17a890 of _0x79aeb4){const _0x1fe2e8=_0x984c6e[_0x1ffc('0xb')][_0x17a890];let _0x1bb34b=null,_0x96da53=null;for(const _0x4618f6 of _0x1fe2e8){const _0x9bd616=this[_0x1ffc('0x16')](_0x4618f6),_0x1bc636=_0x4618f6[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x9bd616),_0x19f596=_0x339e0c['get'](_0x1bc636);_0x19f596&&_0x1ffc('0x56')==_0x4618f6['type']&&(_0x1bb34b=Array[_0x1ffc('0xd6')](_0x19f596)[0x0],_0x96da53=_0x4618f6['item'][_0x1ffc('0xb0')](_0x1ffc('0xc4'))),_0x1bb34b&&(_0x441f59[_0x1ffc('0x27')](_0x1bc636,{'userId':_0x1bb34b}),_0x5d373d[_0x1ffc('0x27')](_0x1bc636,{'userId':_0x1bb34b})),_0x1bc636==_0x96da53&&(_0x1bb34b=null,_0x96da53=null);}}const _0x3c4d6d={},_0x49e611=new Set();for(const _0x49ffe8 of _0x79aeb4){const _0x5a7552=_0x590861[_0x1ffc('0x53')][_0x49ffe8],_0x5d7730=_0x590861[_0x1ffc('0xb')][_0x49ffe8];for(const {userId:_0x2b9e0c}of this[_0x1ffc('0x46')][_0x1ffc('0x84')]())null!==_0x2b9e0c&&_0x49e611[_0x1ffc('0xae')](_0x2b9e0c);this[_0x1ffc('0x4b')](_0x5d7730,_0x984c6e[_0x1ffc('0xb')][_0x49ffe8],_0x5d373d,'insertion',_0x49e611),this['_markChanges'](_0x5a7552,_0x984c6e[_0x1ffc('0x53')][_0x49ffe8],_0x441f59,_0x1ffc('0xb4'),_0x49e611),_0x3c4d6d[_0x49ffe8]={'insertions':this[_0x1ffc('0x58')](_0x5d7730),'deletions':this[_0x1ffc('0x58')](_0x5a7552)};}return{'diffData':_0x3c4d6d,'authorsIds':Array[_0x1ffc('0xd6')](_0x49e611)};}[_0x1ffc('0x64')](_0xb895ab){for(const [,_0x137bab]of _0xb895ab['markers']){const _0xfff0ef=_0x137bab['start']['getAncestors']()['filter'](_0x250bc4=>_0x1ffc('0x6e')==_0x250bc4['name']);for(const _0x5be3e4 of _0xfff0ef)0x1==_0x5be3e4[_0x1ffc('0x69')]&&_0x5be3e4[_0x1ffc('0x2d')](0x0)['is'](_0x1ffc('0xf4'),_0x1ffc('0x26'))&&_0x5be3e4[_0x1ffc('0x2d')](0x0)[_0x1ffc('0xb1')]('keepParagraph',!0x0);}}[_0x1ffc('0x58')](_0x4d9bd1){this[_0x1ffc('0x64')](_0x4d9bd1);const _0xd5ac9b=this[_0x1ffc('0xb6')][_0x1ffc('0xce')][_0x1ffc('0xd1')](_0x4d9bd1,{}),_0x524360=Array[_0x1ffc('0xd6')](_0xd5ac9b[_0x1ffc('0x59')]())[_0x1ffc('0xe4')](_0x550b03=>this[_0x1ffc('0xc2')](_0x550b03));return JSON[_0x1ffc('0x97')](_0x524360);}[_0x1ffc('0xc2')](_0x368ce2){if(_0x368ce2['is'](_0x1ffc('0x9c')))return _0x368ce2[_0x1ffc('0xce')];return{'type':Object[_0x1ffc('0x19')](V)['find'](_0x39cdf4=>_0x368ce2 instanceof V[_0x39cdf4]),'name':_0x368ce2[_0x1ffc('0xbc')],'attributes':Array[_0x1ffc('0xd6')](_0x368ce2['getAttributes']()),'children':Array[_0x1ffc('0xd6')](_0x368ce2[_0x1ffc('0x59')]())[_0x1ffc('0xe4')](_0x4fb103=>this[_0x1ffc('0xc2')](_0x4fb103))};}[_0x1ffc('0x4b')](_0x1d6085,_0x3b6f4d,_0x2b9968,_0x5d6384,_0x2a6386){let _0x456799=null,_0x1aee14=null,_0x39df5b=0x0;const _0x42edc1=this['editor'][_0x1ffc('0x82')];for(let _0x1e668a=0x0;_0x1e668a<_0x3b6f4d[_0x1ffc('0x76')];_0x1e668a++){const _0x2b1337=this[_0x1ffc('0x16')](_0x3b6f4d[_0x1e668a]),_0x12b433=_0x3b6f4d[_0x1e668a][_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x2b1337),_0x2baa21=_0x2b9968[_0x1ffc('0xda')](_0x12b433),_0x52b66d=_0x1e668a==_0x3b6f4d[_0x1ffc('0x76')]-0x1;(!_0x456799&&_0x2baa21&&(_0x456799=_0x2baa21,_0x1aee14=_0x3b6f4d[_0x1e668a]),_0x456799&&(!_0x2baa21||_0x2baa21[_0x1ffc('0x9')]!=_0x456799['userId']))&&(_0x44295d(_0x2baa21,j(_0x1aee14,_0x1d6085,_0x42edc1),j(_0x3b6f4d[_0x1e668a],_0x1d6085,_0x42edc1)),_0x456799=_0x2baa21||null,_0x1aee14=_0x2baa21?_0x3b6f4d[_0x1e668a]:null),_0x456799&&_0x52b66d&&_0x44295d(_0x2baa21,j(_0x1aee14,_0x1d6085,_0x42edc1),B(_0x3b6f4d[_0x1e668a],_0x1d6085,_0x42edc1));}function _0x44295d(_0x15b19c,_0x1382f1,_0x3e22e7){const _0x1ab7aa=_0x456799[_0x1ffc('0x9')],_0x19ec44=_0x1ffc('0x1a')+_0x5d6384+':'+_0x1ab7aa+':'+_0x39df5b++,_0x2c7f91=_0x42edc1[_0x1ffc('0x80')](_0x1382f1,_0x3e22e7);_0x1d6085[_0x1ffc('0xc0')][_0x1ffc('0x27')](_0x19ec44,_0x2c7f91),null!==_0x1ab7aa&&_0x2a6386[_0x1ffc('0xae')](_0x1ab7aa);}}['_getVidAttributeName'](_0xdaa4fd){switch(_0xdaa4fd[_0x1ffc('0xd7')]){case'elementStart':return _0x1ffc('0x5a');case _0x1ffc('0x36'):return _0x1ffc('0xc4');default:return _0x1ffc('0x33');}}[_0x1ffc('0x57')](_0x25ec9f,_0x478680){_0x25ec9f['baseVersion']=null;for(const _0x395ec7 in _0x25ec9f){if(_0x25ec9f[_0x395ec7]instanceof _0x29deb2){const _0x37a663=_0x478680[_0x1ffc('0xda')](_0x25ec9f[_0x395ec7][_0x1ffc('0x92')]['rootName']);_0x25ec9f[_0x395ec7]=this[_0x1ffc('0xa8')](_0x25ec9f[_0x395ec7],_0x37a663);}if(_0x25ec9f[_0x395ec7]instanceof _0x21882a){const _0x4ca2b9=_0x478680['get'](_0x25ec9f[_0x395ec7][_0x1ffc('0x92')][_0x1ffc('0x8d')]);_0x25ec9f[_0x395ec7]=this[_0x1ffc('0x6')](_0x25ec9f[_0x395ec7],_0x4ca2b9);}}_0x25ec9f[_0x1ffc('0x92')]&&(_0x25ec9f['root']=_0x478680[_0x1ffc('0xda')](_0x25ec9f['root'][_0x1ffc('0x8d')]));}['_fixRange'](_0x58e111,_0x40acc3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x58e111[_0x1ffc('0x87')],_0x40acc3),this[_0x1ffc('0xa8')](_0x58e111[_0x1ffc('0xbd')],_0x40acc3));}[_0x1ffc('0xa8')](_0x1f28c5,_0x43b009){return this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x70')](_0x43b009,_0x1f28c5['path'],_0x1f28c5[_0x1ffc('0xba')]);}[_0x1ffc('0x7')](_0x10543a){const _0x70a88d=this[_0x1ffc('0x94')]['get'](_0x10543a[_0x1ffc('0xc3')][_0x1ffc('0x92')][_0x1ffc('0x8d')]),_0x3e0b1f=this['_fixPosition'](_0x10543a['position'],_0x70a88d),_0x5183b7=null===_0x10543a[_0x1ffc('0xa7')]?null:_0x10543a[_0x1ffc('0xa7')]||this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x353c85=_0x3e0b1f['parent'],_0x46ccfa=this['_revisionId'],_0x42d5b8=[];for(const _0x4a58f9 of _0x10543a[_0x1ffc('0x55')])if(_0x4a58f9['is'](_0x1ffc('0xf4')))_0x42d5b8[_0x1ffc('0x38')](this[_0x1ffc('0xec')](_0x4a58f9));else for(let _0x158f20=0x0;_0x158f20<_0x4a58f9[_0x1ffc('0xb5')];_0x158f20++)_0x42d5b8[_0x1ffc('0x38')](new _0x230a92('$text',{'vid':this[_0x1ffc('0x7d')]++}));const _0x88fc3e=this[_0x1ffc('0x7d')];for(let _0x221ca9=_0x46ccfa;_0x221ca9<_0x88fc3e;_0x221ca9++)this[_0x1ffc('0xeb')]['set'](_0x221ca9,{'userId':_0x5183b7});_0x353c85[_0x1ffc('0x1b')](_0x3e0b1f[_0x1ffc('0xe6')],_0x42d5b8);}[_0x1ffc('0x61')](_0x3a3068){(_0x3a3068=this[_0x1ffc('0xe3')](_0x3a3068,this[_0x1ffc('0x94')]))[_0x1ffc('0x78')]();const _0x4440cd=null===_0x3a3068[_0x1ffc('0xa7')]?null:_0x3a3068[_0x1ffc('0xa7')]||this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x3c86eb=_0x3a3068[_0x1ffc('0x62')](),_0xdf1417=_0x3c86eb['parent'],_0x84c461=_0x3c86eb['offset'];!function _0x11544b(_0x2522af,_0x548f3b,_0x519160,_0x31f363){for(let _0x13b7fa=_0x519160;_0x13b7fa<_0x31f363;_0x13b7fa++){const _0xae7a62=_0x548f3b['getChild'](_0x13b7fa);_0xae7a62['is']('element',_0x1ffc('0x9b'))?_0x2522af[_0x1ffc('0x27')](_0xae7a62[_0x1ffc('0xb0')]('vid'),{'userId':_0x4440cd}):(_0x2522af[_0x1ffc('0x27')](_0xae7a62['getAttribute'](_0x1ffc('0x5a')),{'userId':_0x4440cd}),_0x11544b(_0x2522af,_0xae7a62,0x0,_0xae7a62['childCount']),_0x2522af[_0x1ffc('0x27')](_0xae7a62[_0x1ffc('0xb0')](_0x1ffc('0xc4')),{'userId':_0x4440cd}));}}(this[_0x1ffc('0xeb')],_0xdf1417,_0x84c461,_0x84c461+_0x3a3068[_0x1ffc('0x9a')]);}[_0x1ffc('0xcc')](_0x2eb287){const _0xb147ed=null===(_0x2eb287=this[_0x1ffc('0xe3')](_0x2eb287,this[_0x1ffc('0x94')]))[_0x1ffc('0xa7')]?null:_0x2eb287[_0x1ffc('0xa7')]||this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0xfa0d99=_0x2eb287[_0x1ffc('0x8f')][_0x1ffc('0xd0')],_0x4b3f4b=_0x2eb287[_0x1ffc('0xad')]['parent'],_0x236fd5=_0xfa0d99[_0x1ffc('0xb0')](_0x1ffc('0xc4')),_0x411e45=_0x4b3f4b[_0x1ffc('0xb0')]('vid_start');_0xfa0d99[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x4b3f4b[_0x1ffc('0xb0')]('vid_end')),_0x4b3f4b[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x236fd5),this['_touched'][_0x1ffc('0x27')](_0x411e45,{'userId':_0xb147ed}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x236fd5,{'userId':_0xb147ed}),_0x2eb287[_0x1ffc('0x78')]();}[_0x1ffc('0xa4')](_0x17d998){const _0x31106f=null===(_0x17d998=this['_cloneOperation'](_0x17d998,this[_0x1ffc('0x94')]))[_0x1ffc('0xa7')]?null:_0x17d998[_0x1ffc('0xa7')]||this[_0x1ffc('0xb6')]['plugins'][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x1e1bdb=_0x17d998[_0x1ffc('0x3c')],_0x456a7f=_0x17d998[_0x1ffc('0x60')][_0x1ffc('0xd0')];_0x17d998['_execute']();const _0x5e40ca=_0x456a7f[_0x1ffc('0xb0')]('vid_end'),_0x1d8ced=_0x17d998['insertionPosition'][_0x1ffc('0x12')];if(_0x1e1bdb){const _0x226666=_0x1d8ced[_0x1ffc('0xb0')](_0x1ffc('0xc4')),_0x242fbe=_0x456a7f['getAttribute'](_0x1ffc('0xc4'));_0x456a7f['_setAttribute'](_0x1ffc('0xc4'),_0x226666),_0x1d8ced['_setAttribute'](_0x1ffc('0xc4'),_0x242fbe),this['_touched'][_0x1ffc('0x27')](_0x456a7f[_0x1ffc('0xb0')](_0x1ffc('0xc4')),{'userId':_0x31106f}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x1d8ced[_0x1ffc('0xb0')]('vid_start'),{'userId':_0x31106f});}else{const _0x5c8541=this['_revisionId']++,_0x3218cd=this['_revisionId']++;_0x456a7f['_setAttribute'](_0x1ffc('0xc4'),_0x5c8541),_0x1d8ced[_0x1ffc('0xb1')](_0x1ffc('0x5a'),_0x3218cd),_0x1d8ced[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x5e40ca),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x5c8541,{'userId':_0x31106f}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x3218cd,{'userId':_0x31106f});}}[_0x1ffc('0x2e')](_0xbed57d){if(!_0xbed57d[_0x1ffc('0x4c')])return;const _0x3778c2=(_0xbed57d=this[_0x1ffc('0xe3')](_0xbed57d,this[_0x1ffc('0xbb')]))[_0x1ffc('0x5')]?_0xbed57d['oldRange'][_0x1ffc('0x92')]:null,_0x3fe3c8=_0xbed57d[_0x1ffc('0xa3')]?_0xbed57d[_0x1ffc('0xa3')][_0x1ffc('0x92')]:null;_0x3778c2&&this[_0x1ffc('0x2a')][_0x1ffc('0x88')](_0xbed57d[_0x1ffc('0xbc')]),_0x3fe3c8&&this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0xbed57d['name'],_0xbed57d[_0x1ffc('0xa3')][_0x1ffc('0x41')]());const _0x86395b=null===_0xbed57d['_authorId']?null:_0xbed57d['_authorId']||this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x3a82ea=_0xbed57d[_0x1ffc('0xbc')];if(!this[_0x1ffc('0x46')]['has'](_0x3a82ea))return void this[_0x1ffc('0x46')]['set'](_0x3a82ea,{'range':_0xbed57d['oldRange'],'userId':_0x86395b});const _0x514d70=this[_0x1ffc('0x46')][_0x1ffc('0xda')](_0x3a82ea),_0x2e7047=_0x514d70[_0x1ffc('0xc9')],_0x6df361=_0xbed57d[_0x1ffc('0xa3')];null==_0x2e7047&&null==_0x6df361||_0x2e7047&&_0x6df361&&_0x2e7047[_0x1ffc('0x9f')](_0x6df361)?this['_touchedMarkers']['delete'](_0xbed57d['name']):_0x514d70[_0x1ffc('0x9')]=_0x86395b;}}function J(_0x3d701b){const _0x13e7da=new _0xfd6a74();_0x13e7da[_0x1ffc('0x8d')]=_0x3d701b['rootName'];for(const _0x32b2ad of _0x3d701b[_0x1ffc('0x59')]()){const _0x2e458c=_0x32b2ad[_0x1ffc('0xca')](!0x0);_0x13e7da['_appendChild'](_0x2e458c);}return _0x13e7da;}function j(_0x37dcb1,_0x30152c,_0x1e0d99){const _0x560ca7='elementEnd'==_0x37dcb1['type']?_0x1e0d99[_0x1ffc('0xe7')](_0x37dcb1[_0x1ffc('0xe5')],_0x1ffc('0xbd')):_0x1e0d99['createPositionBefore'](_0x37dcb1[_0x1ffc('0xe5')]);return _0x560ca7[_0x1ffc('0x92')]=_0x30152c,_0x560ca7;}function B(_0x188fd9,_0x55543a,_0x7c2cf8){const _0x3d79ee=_0x1ffc('0x56')==_0x188fd9['type']?_0x7c2cf8[_0x1ffc('0xe7')](_0x188fd9[_0x1ffc('0xe5')],0x0):_0x7c2cf8[_0x1ffc('0xdf')](_0x188fd9['item']);return _0x3d79ee['root']=_0x55543a,_0x3d79ee;}
23
+ const _0xb4eb=['_getViewJson','sendBufferedUpdates','_revisionId','forEach','_source','clear','getAttributes','_getPreviousFrom','set','addRevision','_lastTo','newRange','PendingActions','createRangeIn','getTransformedByOperation','_fixOperation','keepParagraph','revision','childCount','init','tableCell','getRevisions','oldRange','nodeAfter','elementStart','_createCurrentRevision','from','_initialRevisionId','map','finally','editor','update','getMovedRangeStart','RevisionsRepository','toData','clone','default','fromVersion','afterInit','remove','resolve','buildRevisionData','_generateTape','_revisionDataBuilder','_bufferedUpdates','add','Users','$text','includes','affectsData','split','attributes','isReady','editing','stringify','dataDowncast','_applyOperations','_fixPosition','Initial\x20revision','locale','start','element','_prepareViewToSave','_getFromVersion','previousPosition','_diffRoots','creatorId','graveyardPosition','_markChanges','addRevisionData','_makeIdsRoot','authors','_isPendingUpdate','type','baseVersion','vid','keys','startsWith','getOperation','_createInitialRevision','config','getChildren','plugins','_update','_baseRoots','define','elementEnd','getNodeByPath','_markers','RevisionTracker','isPendingUpdate','_makeModelFromViewString','data','_savedMetaData','slice','_removePendingAction','$graveyard','NEGATIVE_INFINITY','getWalker','offsetSize','vid_start','view','version','createPositionAfter','nodes','userId','hasContent','children','bind','get','ready','_handleMergeOperation','_authorId','_handleMarkerOperation','initialData','move','_getVidAttributeName','revisionHistory.resumeUnsavedRevision','marked','revision-end','getLatestVersion','_pendingAction','reinsert','_reset','revision:','_setAttribute','dataToMarker','getCurrentRevisionId','insert','saveRevision','_loadState','name','getRevision','_handleInsertOperation','reverse','_touchedMarkers','createPositionAt','toVersion','_operations','setRevisionData','source','trim','filter','_touched','_setConversion','getTime','_removeMetaData','reInit','parent','data-revision-','range','item','_appendChild','toView','_saveMetaData','insertion','targetPosition','_cloneOperation','createdAt','stickiness','getRange','isEnabled','_insertChild','insertionPosition','_getState','getUser','length','pluginName','has','_idsRoots','_bufferUpdate','markers','delete','_copyMarkers','deletions','creator','then','getChild','_loadRevisionData','end','getAttribute','revision-start','toModel','createRange','getRootNames','model','offset','_baseIdsRoots','max','_transformMarkers','_continueCurrentRevision','path','createRevision','_handleSplitOperation','_execute','getRoot','requires','root','_lastFrom','conversion','authorsIds','_handleMoveOperation','diffData','text','_processRootBeforeSave','document','position','_loadedStateData','insertions','_fixRange','RealTimeCollaborationClient','getData','vid_end','_clone','createPositionFromPath','rootName','loadState','useFillerType','_getBaseVids','_saveEmptyMetaData','getAncestors','isEqual','_makeRevision','documentFragment','sort','_startingRevisionId','splitPosition','adapter','_createFromRanges','getOperations','shift','PENDING_ACTION_REVISION_HISTORY','size','editor-initial-data-replaced-with-revision-data','_removeRevisionMarkers','push','marker','find','_calculateMetaData','processor','values','collaboration.channelId','for','_rootNames','_addPendingAction','_handleOperation','_findInsertionIndex','repository','currentRevision','_replaceEditorDataWithRevisionData','history','_startingVersion'];(function(_0x25da9c,_0xb4ebd5){const _0x4bb284=function(_0x4842f6){while(--_0x4842f6){_0x25da9c['push'](_0x25da9c['shift']());}};_0x4bb284(++_0xb4ebd5);}(_0xb4eb,0x103));const _0x4bb2=function(_0x25da9c,_0xb4ebd5){_0x25da9c=_0x25da9c-0x0;let _0x4bb284=_0xb4eb[_0x25da9c];return _0x4bb284;};import{Users as _0x2d6ec2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x22a175,PendingActions as _0x4c6364}from'ckeditor5/src/core';import{logWarning as _0x33e8e8,uid as _0x5c81e7}from'ckeditor5/src/utils';import{Position as _0x275e0c,Range as _0x432887,Element as _0x462dd8,DocumentFragment as _0x2825b5,ViewText as _0x1f7fe1,ViewElement as _0xbda67c,ViewContainerElement as _0x956a26,ViewAttributeElement as _0x5d7e66,ViewEmptyElement as _0x5d43d7,ViewRawElement as _0x50cb3d,ViewUIElement as _0x3f5859,ViewDocumentFragment as _0x498469}from'ckeditor5/src/engine';import _0x2376cc from'./revisionsrepository';import{getTranslation as _0x1cade3}from'./utils/common-translations';const V={'c':_0x956a26,'a':_0x5d7e66,'e':_0x5d43d7,'r':_0x50cb3d,'u':_0x3f5859};export default class l extends _0x22a175{static get[_0x4bb2('0xa0')](){return _0x4bb2('0x52');}static get[_0x4bb2('0xbd')](){return[_0x2d6ec2,_0x2376cc,_0x4c6364];}constructor(..._0xbfcfba){super(..._0xbfcfba),this[_0x4bb2('0xdc')]=null,this['set'](_0x4bb2('0x2d'),!0x1),this[_0x4bb2('0x1')](_0x4bb2('0x9a'),!0x0),this[_0x4bb2('0xf1')]=null;const _0x1516d5=_0x5c81e7();this[_0x4bb2('0xf9')]={'history':this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0xf3')],'getLatestVersion':()=>Promise[_0x4bb2('0x21')](this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')]['version']),'getCurrentRevisionId':()=>_0x1516d5},this[_0x4bb2('0x24')]=new T(this[_0x4bb2('0x17')]),this[_0x4bb2('0x14')]=this[_0x4bb2('0x17')][_0x4bb2('0x49')][_0x4bb2('0x66')]('collaboration.channelId')||'initial',this[_0x4bb2('0x1')](_0x4bb2('0x53'),!0x1),this['_bufferedUpdates']=new Map(),this['editor'][_0x4bb2('0x49')][_0x4bb2('0x4e')](_0x4bb2('0x6e'),!0x0),this[_0x4bb2('0xc8')]=null,this[_0x4bb2('0x17')][_0x4bb2('0xc0')][_0x4bb2('0xeb')]('upcast')[_0x4bb2('0x77')]({'view':_0x4bb2('0xa')});}[_0x4bb2('0xc')](){this[_0x4bb2('0xf0')]=this[_0x4bb2('0x17')][_0x4bb2('0x4b')]['get'](_0x4bb2('0x1a')),this[_0x4bb2('0x89')](),this['editor'][_0x4bb2('0x55')]['on'](_0x4bb2('0x67'),()=>{const _0x471dd2=this[_0x4bb2('0xf0')][_0x4bb2('0x7d')](0x0),_0x4fbc3b=_0x471dd2&&null===_0x471dd2[_0x4bb2('0xa8')]?_0x471dd2:null;if(this[_0x4bb2('0xb7')]=!!_0x4fbc3b&&this['editor']['config'][_0x4bb2('0x66')](_0x4bb2('0x6e')),this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0xa1')](_0x4bb2('0xcb'))){const _0x3d16b6=this['_source']['getCurrentRevisionId'](),_0x1ff7c6=this['repository']['getRevision'](_0x3d16b6);if(_0x1ff7c6)this['_startingVersion']=_0x1ff7c6[_0x4bb2('0x1e')],this[_0x4bb2('0xb7')]=!0x1;else{const _0xf97543=this['_source'][_0x4bb2('0xf3')][_0x4bb2('0x83')]['find'](_0x590bb4=>!_0x590bb4['_isInit']),_0x377e89=_0xf97543?_0xf97543['baseVersion']:this[_0x4bb2('0xf9')][_0x4bb2('0xf3')][_0x4bb2('0x5f')];_0x471dd2?(_0x471dd2[_0x4bb2('0x82')]<_0x377e89&&_0x471dd2[_0x4bb2('0x4c')]({'toVersion':_0x377e89}),this[_0x4bb2('0xb7')]?(this['_source'][_0x4bb2('0x78')]=()=>_0x4fbc3b['id'],this[_0x4bb2('0xf4')]=_0x4fbc3b[_0x4bb2('0x1e')]):(this[_0x4bb2('0xf4')]=_0x471dd2[_0x4bb2('0x82')],this[_0x4bb2('0xb7')]=!0x1)):(this[_0x4bb2('0xf4')]=_0x377e89,this[_0x4bb2('0xb7')]=!0x1);}}else _0x4fbc3b&&(this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')]['history'][_0x4bb2('0x5f')]=Math[_0x4bb2('0xb5')](_0x4fbc3b[_0x4bb2('0x82')],this[_0x4bb2('0x17')][_0x4bb2('0xb2')]['document'][_0x4bb2('0xf3')][_0x4bb2('0x5f')]),_0x4fbc3b['fromVersion']===_0x4fbc3b['toVersion']?(0x0!==_0x4fbc3b['fromVersion']&&(this[_0x4bb2('0xf9')][_0x4bb2('0x78')]=()=>_0x4fbc3b['id']),this['_continueCurrentRevision']=!0x1):this[_0x4bb2('0xb7')]&&(this[_0x4bb2('0xf9')][_0x4bb2('0x78')]=()=>_0x4fbc3b['id'],this[_0x4bb2('0xf4')]=_0x4fbc3b[_0x4bb2('0x1e')])),this[_0x4bb2('0xb7')]||(this[_0x4bb2('0xf4')]=this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0x5f')]);this[_0x4bb2('0x24')][_0x4bb2('0xc')](this[_0x4bb2('0xf9')][_0x4bb2('0xf3')]),this['_createInitialRevision'](this[_0x4bb2('0xf4')]),this[_0x4bb2('0x12')](this[_0x4bb2('0xf4')]),this[_0x4bb2('0xdc')]&&this[_0x4bb2('0xf6')]();}),this[_0x4bb2('0x65')](_0x4bb2('0x2d'))['to'](this,_0x4bb2('0x41'),_0x1fad99=>!_0x1fad99);}async[_0x4bb2('0x1f')](){if(this[_0x4bb2('0xf0')][_0x4bb2('0x9f')]>0x0){const _0x52013d=this['repository'][_0x4bb2('0x7d')](0x0),_0x2266eb=await this['getRevisionDocumentData'](_0x52013d);this[_0x4bb2('0xf2')](_0x2266eb);}}['setSource'](_0x3c02fa){this[_0x4bb2('0xf9')]=_0x3c02fa;}async[_0x4bb2('0x18')](){const _0x3e381d=await this[_0x4bb2('0xf9')][_0x4bb2('0x71')]();if(_0x3e381d>this['currentRevision']['toVersion']){await this[_0x4bb2('0x7b')]();const _0x72bde=this[_0x4bb2('0x22')]({'revision':this[_0x4bb2('0xf1')],'to':_0x3e381d});_0x72bde[_0x4bb2('0x40')]=_0x72bde[_0x4bb2('0xc1')][_0x4bb2('0x15')](_0x4913c5=>this[_0x4bb2('0x17')]['plugins'][_0x4bb2('0x66')](_0x4bb2('0x27'))[_0x4bb2('0x9e')](_0x4913c5)),this[_0x4bb2('0xf1')][_0x4bb2('0x4c')](_0x72bde);}}async[_0x4bb2('0x7b')](){this[_0x4bb2('0xb7')]&&!this[_0x4bb2('0xc8')]&&(await this[_0x4bb2('0xab')](this['currentRevision']),this[_0x4bb2('0x24')][_0x4bb2('0xd1')](this[_0x4bb2('0xf1')]),this[_0x4bb2('0xc8')]={'fromVersion':this[_0x4bb2('0xf1')][_0x4bb2('0x1e')],'authors':this[_0x4bb2('0xf1')][_0x4bb2('0x40')][_0x4bb2('0x57')]()});}async[_0x4bb2('0x7a')](_0x15e4cd={},_0x39ca87=null){const _0x288c29=[];await this[_0x4bb2('0x7b')](),this[_0x4bb2('0xb7')]=!0x1,_0x39ca87>this['currentRevision'][_0x4bb2('0x82')]&&(_0x39ca87=null),null===_0x39ca87&&(_0x39ca87=await this[_0x4bb2('0xf9')][_0x4bb2('0x71')]());const _0x52093b=this['_getFromVersion'](_0x39ca87),_0x2e10db=this[_0x4bb2('0x22')]({'from':_0x52093b,'to':_0x39ca87});if(this[_0x4bb2('0xf1')][_0x4bb2('0x82')]<_0x39ca87){const _0x375d7a=this[_0x4bb2('0x22')]({'revision':this[_0x4bb2('0xf1')],'from':_0x39ca87,'to':_0x39ca87});_0x375d7a[_0x4bb2('0x40')]=[],_0x375d7a['authorsIds']=[],_0x375d7a['id']=this[_0x4bb2('0xf1')]['id'],this[_0x4bb2('0xf1')][_0x4bb2('0x4c')](_0x375d7a,!0x0),delete _0x375d7a[_0x4bb2('0x40')],_0x288c29[_0x4bb2('0xe4')](_0x375d7a);}_0x15e4cd['creatorId']=this['editor'][_0x4bb2('0x4b')][_0x4bb2('0x66')]('Users')['me']['id'],_0x15e4cd[_0x4bb2('0x7c')]=_0x15e4cd[_0x4bb2('0x7c')]||null,_0x15e4cd['id']=_0x15e4cd['id']||_0x5c81e7(),_0x15e4cd={..._0x15e4cd,..._0x2e10db};const _0x1fd5e3=this[_0x4bb2('0x3e')](_0x15e4cd);_0x288c29['push'](_0x15e4cd);const _0x3856bb=this[_0x4bb2('0xf0')]['getIndex'](_0x1fd5e3);if(0x0!==_0x3856bb){const _0x483144=this[_0x4bb2('0xf0')][_0x4bb2('0x7d')](_0x3856bb-0x1);if(_0x483144[_0x4bb2('0x1e')]!==_0x39ca87){const _0x3a2bee=this[_0x4bb2('0x24')][_0x4bb2('0xcc')](_0x39ca87,_0x483144[_0x4bb2('0x82')]),_0x5aa5ce={'id':_0x483144['id'],'diffData':_0x3a2bee[_0x4bb2('0xc3')],'authorsIds':_0x3a2bee[_0x4bb2('0xc1')],'authors':_0x3a2bee[_0x4bb2('0xc1')][_0x4bb2('0x15')](_0x12e483=>this[_0x4bb2('0x17')]['plugins'][_0x4bb2('0x66')]('Users')[_0x4bb2('0x9e')](_0x12e483)),'fromVersion':_0x39ca87};_0x483144===this[_0x4bb2('0xf1')]&&(_0x5aa5ce[_0x4bb2('0x97')]=new Date(_0x15e4cd[_0x4bb2('0x97')][_0x4bb2('0x8a')]()+0xa)),_0x483144['_update'](_0x5aa5ce,!0x0),delete _0x5aa5ce['authors'],_0x288c29['push'](_0x5aa5ce);}}if(this[_0x4bb2('0xdc')]){for(const _0x5a9265 of _0x288c29)this[_0x4bb2('0xa3')](_0x5a9265['id'],_0x5a9265,!0x0);this[_0x4bb2('0xf6')]();}return _0x1fd5e3;}['addRevisionData'](_0xa72754){const _0x5b3381=this[_0x4bb2('0xf0')][_0x4bb2('0xb9')](_0xa72754);return this[_0x4bb2('0xdc')]&&_0x5b3381['on'](_0x4bb2('0x4c'),(_0xf75d64,_0x4ba66e,_0x4e8217)=>{_0x4e8217||(this[_0x4bb2('0xa3')](_0x4ba66e['id'],_0x4ba66e,!0x0),this[_0x4bb2('0xf6')]());}),this[_0x4bb2('0xf0')][_0x4bb2('0x2')](_0x5b3381,this[_0x4bb2('0xef')](_0x5b3381)),_0x5b3381;}async['getRevisionDocumentData'](_0x303eda){await this[_0x4bb2('0xab')](_0x303eda);const _0x1d4615={};for(const _0x1c1c61 in _0x303eda[_0x4bb2('0xc3')]){const _0x321a38=this[_0x4bb2('0xe3')](JSON['parse'](_0x303eda[_0x4bb2('0xc3')][_0x1c1c61]['insertions'])),_0x4f6068=this[_0x4bb2('0x17')][_0x4bb2('0x2e')][_0x4bb2('0x5e')][_0x4bb2('0xc6')],_0x40fc11=new _0x498469(_0x4f6068,_0x321a38[_0x4bb2('0x15')](_0x2a5032=>F(_0x2a5032,this[_0x4bb2('0x17')])));this['editor']['data']['processor'][_0x4bb2('0xd2')](_0x4bb2('0x6f')),_0x1d4615[_0x1c1c61]=this[_0x4bb2('0x17')][_0x4bb2('0x55')][_0x4bb2('0xe8')][_0x4bb2('0x1b')](_0x40fc11),this[_0x4bb2('0x17')]['data'][_0x4bb2('0xe8')][_0x4bb2('0xd2')](_0x4bb2('0x1d'));}return _0x1d4615;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0x4bb2('0x41')])return;let _0x581348=Array[_0x4bb2('0x13')](this['_bufferedUpdates']['values']());this[_0x4bb2('0x25')][_0x4bb2('0xfa')]();for(let _0x4f7efa=0x0;_0x4f7efa<_0x581348[_0x4bb2('0x9f')];_0x4f7efa++){const _0x43fca3=_0x581348[_0x4f7efa];let _0x288ca8=!0x1;for(const _0x25d0c0 of Object[_0x4bb2('0x45')](_0x43fca3))void 0x0===_0x43fca3[_0x25d0c0]?delete _0x43fca3[_0x25d0c0]:'id'!==_0x25d0c0&&(_0x288ca8=!0x0);_0x288ca8||(_0x581348[_0x4f7efa]=null);}if(_0x581348=_0x581348[_0x4bb2('0x87')](_0x1546c3=>null!==_0x1546c3),!_0x581348[_0x4bb2('0x9f')])return;for(let _0x5ceccb=0x0;_0x5ceccb<_0x581348[_0x4bb2('0x9f')];_0x5ceccb++){const _0xc5444a=_0x581348[_0x5ceccb];void 0x0!==_0xc5444a[_0x4bb2('0x1e')]&&void 0x0===_0xc5444a[_0x4bb2('0x82')]&&(_0xc5444a[_0x4bb2('0x82')]=this['repository']['getRevision'](_0xc5444a['id'])[_0x4bb2('0x82')]),void 0x0!==_0xc5444a['toVersion']&&void 0x0===_0xc5444a[_0x4bb2('0x1e')]&&(_0xc5444a[_0x4bb2('0x1e')]=this[_0x4bb2('0xf0')]['getRevision'](_0xc5444a['id'])['fromVersion']);}const _0x5e38b1=this[_0x4bb2('0x17')][_0x4bb2('0x49')][_0x4bb2('0x66')](_0x4bb2('0xea'));this[_0x4bb2('0x41')]=!0x0,this[_0x4bb2('0xed')](),this[_0x4bb2('0xdc')]['updateRevisions'](_0x581348,_0x5e38b1)[_0x4bb2('0x16')](()=>{this[_0x4bb2('0x41')]=!0x1;})[_0x4bb2('0xa9')](_0x27af57=>{if(_0x27af57)for(const _0x5344b5 of _0x27af57)this[_0x4bb2('0x84')]({'id':_0x5344b5['id'],'createdAt':_0x5344b5[_0x4bb2('0x97')]});this[_0x4bb2('0x58')](),this[_0x4bb2('0xf6')]();});}[_0x4bb2('0xf2')](_0x3f9df6){let _0x1a22d5=this['editor'][_0x4bb2('0x49')][_0x4bb2('0x66')](_0x4bb2('0x6b'));if(void 0x0===_0x1a22d5){_0x1a22d5={};for(const _0x10d878 of this[_0x4bb2('0x17')][_0x4bb2('0xb2')]['document'][_0x4bb2('0xb1')]())_0x1a22d5[_0x10d878]='';}'string'==typeof _0x1a22d5&&(_0x1a22d5={'main':_0x1a22d5});let _0x25195b=!0x1;for(const _0x1babf3 of Object['keys'](_0x1a22d5))_0x3f9df6[_0x1babf3]&&(_0x1a22d5[_0x1babf3]!==_0x3f9df6[_0x1babf3]&&''!==_0x1a22d5[_0x1babf3][_0x4bb2('0x86')]()&&(_0x25195b=!0x0),_0x1a22d5[_0x1babf3]=_0x3f9df6[_0x1babf3]);_0x25195b&&_0x33e8e8(_0x4bb2('0xe2')),this['editor'][_0x4bb2('0x49')][_0x4bb2('0x1')](_0x4bb2('0x6b'),_0x1a22d5);}[_0x4bb2('0xed')](){if(!this[_0x4bb2('0x72')]){const _0x9c6f46=this['editor']['plugins']['get'](_0x4bb2('0x5'));this[_0x4bb2('0x72')]=_0x9c6f46['add'](_0x1cade3(this[_0x4bb2('0x17')]['locale'],_0x4bb2('0xe0')));}}[_0x4bb2('0x58')](){this[_0x4bb2('0x72')]&&(this['editor'][_0x4bb2('0x4b')]['get'](_0x4bb2('0x5'))['remove'](this[_0x4bb2('0x72')]),this[_0x4bb2('0x72')]=null);}[_0x4bb2('0xef')](_0x4c3c84){const _0x25ba26=this['repository'][_0x4bb2('0xe')]();_0x25ba26[_0x4bb2('0x7f')]();let _0x1e3c14=0x0;for(;_0x1e3c14<_0x25ba26[_0x4bb2('0x9f')];){const _0xf4337e=_0x25ba26[_0x1e3c14];if(_0xf4337e===this[_0x4bb2('0xf1')]){_0x1e3c14++;continue;}if(_0xf4337e['id']===this[_0x4bb2('0x14')])break;const _0x3b2847=_0x4c3c84[_0x4bb2('0x82')]-_0xf4337e['toVersion']||_0x4c3c84[_0x4bb2('0x1e')]-_0xf4337e[_0x4bb2('0x1e')];if(_0x3b2847>0x0)break;if(_0x3b2847<0x0)_0x1e3c14++;else{if(!_0x4c3c84['creator']&&_0xf4337e['creator'])break;if(_0xf4337e['creator']||!_0x4c3c84[_0x4bb2('0xa8')]){if(_0x4c3c84[_0x4bb2('0x97')]>_0xf4337e[_0x4bb2('0x97')])break;_0x1e3c14++;}else _0x1e3c14++;}}return _0x1e3c14;}['setRevisionData'](_0x402c83){const _0x10a90c=this['repository']['getRevision'](_0x402c83['id']);if(_0x402c83[_0x4bb2('0x97')]&&(_0x402c83['createdAt']=new Date(_0x402c83[_0x4bb2('0x97')])),_0x402c83[_0x4bb2('0xc1')]){const _0xb0e557=this[_0x4bb2('0x17')][_0x4bb2('0x4b')]['get'](_0x4bb2('0x27'));_0x402c83[_0x4bb2('0x40')]=_0x402c83[_0x4bb2('0xc1')]['map'](_0x5b7123=>_0xb0e557[_0x4bb2('0x9e')](_0x5b7123));}_0x10a90c['_update'](_0x402c83,!0x0);}[_0x4bb2('0x22')]({revision:_0xcadf34=null,from:_0x369513=null,to:_0x5803c6=null}){_0x369513=null!==_0x369513?_0x369513:_0xcadf34['fromVersion'],_0x5803c6=null!==_0x5803c6?_0x5803c6:_0xcadf34[_0x4bb2('0x82')];const _0x508ab2=this[_0x4bb2('0x24')][_0x4bb2('0xcc')](_0x369513,_0x5803c6),_0x2d44c9={'diffData':_0x508ab2[_0x4bb2('0xc3')],'authorsIds':_0x508ab2[_0x4bb2('0xc1')],'fromVersion':_0x369513,'toVersion':_0x5803c6};if(!_0xcadf34||_0x5803c6!==_0xcadf34[_0x4bb2('0x82')]){const _0x2d0d9d=_0x5803c6-0x1,_0xff5eab=this[_0x4bb2('0xf9')]['history'][_0x4bb2('0x47')](_0x2d0d9d);_0x2d44c9[_0x4bb2('0x97')]=_0xff5eab&&_0xff5eab[_0x4bb2('0x97')]||new Date();}if(this[_0x4bb2('0xc8')]&&_0x369513===this[_0x4bb2('0xc8')][_0x4bb2('0x1e')])for(const _0xbd4e3c of this[_0x4bb2('0xc8')][_0x4bb2('0x40')])_0x2d44c9['authorsIds'][_0x4bb2('0x29')](_0xbd4e3c['id'])||_0x2d44c9[_0x4bb2('0xc1')][_0x4bb2('0xe4')](_0xbd4e3c['id']);return _0x2d44c9;}['_loadRevisionData'](_0x5ce1ba){if(!_0x5ce1ba||_0x5ce1ba[_0x4bb2('0xc3')])return Promise[_0x4bb2('0x21')]();{const _0x248b15=this[_0x4bb2('0x17')]['config']['get'](_0x4bb2('0xea'));return this[_0x4bb2('0xdc')][_0x4bb2('0x7d')]({'channelId':_0x248b15,'revisionId':_0x5ce1ba['id']})['then'](_0x702db8=>{_0x5ce1ba[_0x4bb2('0xc3')]=_0x702db8[_0x4bb2('0xc3')];});}}['_bufferUpdate'](_0x84665a,_0x41fc7f,_0x24d93b){if(this['_bufferedUpdates'][_0x4bb2('0xa1')](_0x84665a)){const _0x281277=this[_0x4bb2('0x25')][_0x4bb2('0x66')](_0x84665a);_0x41fc7f=_0x24d93b?{..._0x281277,..._0x41fc7f}:{..._0x41fc7f,..._0x281277};}this[_0x4bb2('0x25')][_0x4bb2('0x1')](_0x84665a,_0x41fc7f);}[_0x4bb2('0x38')](_0x23d60b){const _0x47e819=this[_0x4bb2('0xf0')][_0x4bb2('0xe')]();_0x47e819['reverse'](),_0x47e819[_0x4bb2('0xdf')]();const _0x44fa7f=_0x47e819[_0x4bb2('0xe6')](_0x10a7b6=>_0x10a7b6[_0x4bb2('0x82')]<=_0x23d60b)['toVersion'];return _0x44fa7f<this[_0x4bb2('0xf4')]?this[_0x4bb2('0xf4')]:_0x44fa7f;}[_0x4bb2('0x48')](_0x1df2d7){const _0x46385a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x46385a)this['_initialRevisionId']=_0x46385a['id'];else{const _0x2eb777=!this['editor'][_0x4bb2('0xb2')]['document']['roots'][_0x4bb2('0xe6')](_0x53b64f=>this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0x63')](_0x53b64f)),_0x25e9db=this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x2ab267=_0x1cade3(this[_0x4bb2('0x17')][_0x4bb2('0x34')],_0x2eb777?'Empty\x20document':_0x4bb2('0x33'));this[_0x4bb2('0xd7')]({'from':_0x1df2d7,'to':_0x1df2d7,'id':this[_0x4bb2('0x14')],'name':_0x2ab267,'creatorId':_0x25e9db});}}['_createCurrentRevision'](_0x29ba94){const _0x4602e0=this[_0x4bb2('0xf9')][_0x4bb2('0x78')]();this[_0x4bb2('0xf1')]=this[_0x4bb2('0xf0')][_0x4bb2('0x7d')](_0x4602e0),this[_0x4bb2('0xf1')]||(this[_0x4bb2('0xf1')]=this['_makeRevision']({'from':_0x29ba94,'to':_0x29ba94,'id':_0x4602e0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x24938d,from:_0x5638e8,to:_0x4f37aa,creatorId:_0x81cc0f,id:_0xc2a40}){const _0x5c3ad2=this[_0x4bb2('0x22')]({'from':_0x5638e8,'to':_0x4f37aa});_0x5c3ad2[_0x4bb2('0x7c')]=_0x24938d,_0x5c3ad2[_0x4bb2('0x3b')]=_0x81cc0f,_0x5c3ad2['id']=_0xc2a40;const _0x5b89b1=this[_0x4bb2('0x3e')](_0x5c3ad2);return this['adapter']&&this[_0x4bb2('0xa3')](_0x5c3ad2['id'],_0x5c3ad2,!0x0),_0x5b89b1;}[_0x4bb2('0x89')](){this[_0x4bb2('0x17')][_0x4bb2('0xc0')][_0x4bb2('0xeb')](_0x4bb2('0x30'))['markerToData']({'model':_0x4bb2('0xa')});}[_0x4bb2('0xe3')](_0x2b5d4a){return(_0x2b5d4a=_0x2b5d4a[_0x4bb2('0x87')](_0x6f4f10=>!_0x6f4f10[_0x4bb2('0x7c')]||_0x4bb2('0xae')!==_0x6f4f10['name']&&_0x4bb2('0x70')!==_0x6f4f10[_0x4bb2('0x7c')]))[_0x4bb2('0xf8')](_0x2cb901=>{'string'!=typeof _0x2cb901&&(_0x2cb901['children']=this['_removeRevisionMarkers'](_0x2cb901[_0x4bb2('0x64')]),_0x2cb901[_0x4bb2('0x2c')]=_0x2cb901[_0x4bb2('0x2c')][_0x4bb2('0x87')](_0x1be93c=>!_0x1be93c[0x0][_0x4bb2('0x46')](_0x4bb2('0x8e'))));}),_0x2b5d4a;}}function F(_0x4da2a6,_0x5eb054){const _0x420e4b=_0x5eb054[_0x4bb2('0x2e')]['view'][_0x4bb2('0xc6')];if('string'==typeof _0x4da2a6)return new _0x1f7fe1(_0x420e4b,_0x4da2a6);{const _0x53fab2=_0x4da2a6[_0x4bb2('0x64')][_0x4bb2('0x15')](_0x438d56=>F(_0x438d56,_0x5eb054));return new(V[_0x4da2a6[(_0x4bb2('0x42'))]]||_0xbda67c)(_0x420e4b,_0x4da2a6['name'],_0x4da2a6[_0x4bb2('0x2c')],_0x53fab2);}}class T{constructor(_0x3ae62a){this[_0x4bb2('0x17')]=_0x3ae62a,this[_0x4bb2('0x56')]=new Map(),this['_lastFrom']=-0x1,this[_0x4bb2('0x3')]=-0x1,this[_0x4bb2('0x51')]=new Map(),this['_diffRoots']=new Map(),this[_0x4bb2('0x4d')]=new Map(),this[_0x4bb2('0xa2')]=new Map(),this[_0x4bb2('0xb4')]=new Map(),this[_0x4bb2('0x88')]=new Map(),this[_0x4bb2('0x80')]=new Map(),this[_0x4bb2('0xf7')]=0x1,this[_0x4bb2('0xec')]=this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0xb1')](),this['_rootNames'][_0x4bb2('0xe4')](_0x4bb2('0x59'));}[_0x4bb2('0xc')](_0x24e1d1){this['source']=_0x24e1d1;const _0x20f4e4=new Map();for(const _0x314377 of this[_0x4bb2('0xec')]){const _0xacedcd=J(this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0xbc')](_0x314377));_0x20f4e4['set'](_0x314377,_0xacedcd);}const _0x20a2ee=Array['from'](this[_0x4bb2('0x17')][_0x4bb2('0xb2')]['markers'])[_0x4bb2('0x15')](_0x1e9c94=>[_0x1e9c94[_0x4bb2('0x7c')],_0x1e9c94[_0x4bb2('0x99')]()]),_0x2b0fb5=this[_0x4bb2('0x85')][_0x4bb2('0x5f')];this[_0x4bb2('0x93')](_0x2b0fb5,_0x20f4e4,_0x20a2ee),this[_0x4bb2('0xda')]=this[_0x4bb2('0xf7')];}[_0x4bb2('0xcc')](_0x451ede,_0x10f71f){if(this[_0x4bb2('0xbf')]===_0x451ede&&this[_0x4bb2('0x3')]<=_0x10f71f)this[_0x4bb2('0x56')][_0x4bb2('0xe1')]>0x1&&this['_removeMetaData'](this[_0x4bb2('0x3')]),this[_0x4bb2('0x31')](this['_lastTo'],_0x10f71f,!0x0);else{if(!this['_savedMetaData'][_0x4bb2('0xa1')](_0x451ede)){const _0x4483e2=this[_0x4bb2('0x0')](_0x451ede);this[_0x4bb2('0xe7')](_0x4483e2,_0x451ede,!0x1);}this[_0x4bb2('0xe7')](_0x451ede,_0x10f71f,!0x0);}return this[_0x4bb2('0xbf')]=_0x451ede,this['_lastTo']=_0x10f71f,this['_getState']();}[_0x4bb2('0xd1')](_0x4820a4){this[_0x4bb2('0x74')](),this[_0x4bb2('0xbf')]=_0x4820a4['fromVersion'],this[_0x4bb2('0x3')]=_0x4820a4[_0x4bb2('0x82')];for(const _0xaf30c in _0x4820a4[_0x4bb2('0xc3')]){const _0x1e8508=this['_makeModelFromViewString'](_0x4820a4[_0x4bb2('0xc3')][_0xaf30c][_0x4bb2('0xa7')]);_0x1e8508[_0x4bb2('0xd0')]=_0xaf30c,this[_0x4bb2('0x4d')][_0x4bb2('0x1')](_0xaf30c,_0x1e8508);const _0x1c87e2=this[_0x4bb2('0x3f')](_0x1e8508);this[_0x4bb2('0xb4')]['set'](_0xaf30c,_0x1c87e2);for(const [_0x5ef28a,_0x373fba]of _0x1e8508['markers']){if(!_0x5ef28a[_0x4bb2('0x46')](_0x4bb2('0x75')))continue;const _0x20cc4d=_0x5ef28a[_0x4bb2('0x2b')](':')[0x2];for(const _0x65a24c of _0x373fba[_0x4bb2('0x5b')]({'singleCharacters':!0x0})){const _0x137e4c=this[_0x4bb2('0x6d')](_0x65a24c),_0x1b56d0='elementEnd'==_0x65a24c[_0x4bb2('0x42')]?_0x65a24c['previousPosition']['path'][_0x4bb2('0x57')](0x0,-0x1):_0x65a24c[_0x4bb2('0x39')][_0x4bb2('0xb8')],_0x3827c6=_0x1c87e2[_0x4bb2('0x50')](_0x1b56d0)[_0x4bb2('0xad')](_0x137e4c);this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x3827c6,{'userId':_0x20cc4d});}}}this['_startingRevisionId']=this[_0x4bb2('0xf7')];const _0xcae046=[...Array(this[_0x4bb2('0xf7')])[_0x4bb2('0x45')]()][_0x4bb2('0x57')](0x1)[_0x4bb2('0x87')](_0x3689e0=>!this[_0x4bb2('0x88')]['has'](_0x3689e0));let _0x5625f7=0x0;for(const _0x30c960 in _0x4820a4[_0x4bb2('0xc3')]){const _0x166b7f=this[_0x4bb2('0x54')](_0x4820a4['diffData'][_0x30c960]['insertions']);_0x166b7f[_0x4bb2('0xd0')]=_0x30c960,this['_diffRoots'][_0x4bb2('0x1')](_0x30c960,_0x166b7f);const _0xb77cfc=this[_0x4bb2('0x3f')](_0x166b7f,Number[_0x4bb2('0x5a')]);this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x30c960,_0xb77cfc);for(const [_0x298b13,_0x554b9b]of _0x166b7f['markers']){if(!_0x298b13['startsWith'](_0x4bb2('0x75')))continue;const _0x17eb46=_0x298b13['split'](':')[0x2];for(const _0x5c6e03 of _0x554b9b[_0x4bb2('0x5b')]({'singleCharacters':!0x0})){const _0x2c971d=this[_0x4bb2('0x6d')](_0x5c6e03),_0x21585c=this[_0x4bb2('0xf7')]++,_0x17e49a=_0x4bb2('0x4f')==_0x5c6e03[_0x4bb2('0x42')]?_0x5c6e03[_0x4bb2('0x39')][_0x4bb2('0xb8')]['slice'](0x0,-0x1):_0x5c6e03[_0x4bb2('0x39')]['path'];_0xb77cfc['getNodeByPath'](_0x17e49a)[_0x4bb2('0x76')](_0x2c971d,_0x21585c),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x21585c,{'userId':_0x17eb46});}}for(const _0x1e8078 of this['editor'][_0x4bb2('0xb2')][_0x4bb2('0x6')](_0x166b7f)[_0x4bb2('0x5b')]({'singleCharacters':!0x0})){const _0x234a4d=this['_getVidAttributeName'](_0x1e8078),_0x5efb7f=_0x4bb2('0x4f')==_0x1e8078[_0x4bb2('0x42')]?_0x1e8078[_0x4bb2('0x39')][_0x4bb2('0xb8')]['slice'](0x0,-0x1):_0x1e8078[_0x4bb2('0x39')][_0x4bb2('0xb8')],_0x1ac9cd=_0xb77cfc['getNodeByPath'](_0x5efb7f);_0x1ac9cd[_0x4bb2('0xad')](_0x234a4d)>0x0||_0x1ac9cd[_0x4bb2('0x76')](_0x234a4d,_0xcae046[_0x5625f7++]);}const _0x1f7cee=new _0x2825b5();_0x1f7cee['rootName']=_0x4bb2('0x59'),this[_0x4bb2('0x4d')]['set'](_0x4bb2('0x59'),_0x1f7cee),this[_0x4bb2('0xb4')][_0x4bb2('0x1')](_0x4bb2('0x59'),this['_makeIdsRoot'](_0x1f7cee,0x1));const _0x408c89=new _0x2825b5();_0x408c89['rootName']=_0x4bb2('0x59'),this[_0x4bb2('0x3a')]['set'](_0x4bb2('0x59'),_0x408c89),this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x4bb2('0x59'),this[_0x4bb2('0x3f')](_0x408c89,0x1));for(const [_0x2f830d,_0x2f2d5a]of _0x166b7f[_0x4bb2('0xa4')])_0x2f830d[_0x4bb2('0x46')]('revision:')||this['_markers'][_0x4bb2('0x1')](_0x2f830d,_0x2f2d5a);}const _0x31de3c=Array[_0x4bb2('0x13')](this['_diffRoots'])['map'](([_0x1b9077,_0x21e075])=>[_0x1b9077,J(_0x21e075)]);this[_0x4bb2('0x93')](this[_0x4bb2('0x3')],_0x31de3c,this['_markers']);}[_0x4bb2('0x54')](_0x5d20ff){const _0x34a33b=JSON['parse'](_0x5d20ff),_0x404fae=this[_0x4bb2('0x17')][_0x4bb2('0x2e')][_0x4bb2('0x5e')][_0x4bb2('0xc6')],_0x3a47c2=new _0x498469(_0x404fae,_0x34a33b['map'](_0xa69733=>F(_0xa69733,this[_0x4bb2('0x17')])));return this[_0x4bb2('0x17')]['data'][_0x4bb2('0xaf')](_0x3a47c2);}[_0x4bb2('0xd4')](){const _0x1913c6=new Map();for(const _0xa14144 of this['_rootNames']){const _0x31eaf6=new _0x2825b5();_0x31eaf6[_0x4bb2('0xd0')]=_0xa14144,_0x1913c6[_0x4bb2('0x1')](_0xa14144,_0x31eaf6);}this[_0x4bb2('0x93')](Number[_0x4bb2('0x5a')],_0x1913c6,[]);}[_0x4bb2('0x93')](_0x186dca,_0x4b767d,_0x45f4fd){const _0x5c6981=new Map(_0x4b767d),_0x36abcf=new Map();for(const [_0x43cded,_0x58f65c]of _0x45f4fd)_0x36abcf['set'](_0x43cded,{'start':_0x58f65c[_0x4bb2('0x35')]['clone'](),'end':_0x58f65c[_0x4bb2('0xac')][_0x4bb2('0x1c')](),'rootName':_0x58f65c[_0x4bb2('0xbe')][_0x4bb2('0xd0')]});this[_0x4bb2('0x56')]['set'](_0x186dca,{'roots':_0x5c6981,'markers':_0x36abcf});}[_0x4bb2('0x8b')](_0x471904){this['_savedMetaData'][_0x4bb2('0xa5')](_0x471904);}[_0x4bb2('0x8c')](){this[_0x4bb2('0x74')](),this[_0x4bb2('0xbf')]=-0x1,this[_0x4bb2('0x3')]=-0x1,this['_savedMetaData'][_0x4bb2('0xfa')](),this['init'](this[_0x4bb2('0x85')]);}['_reset'](){this[_0x4bb2('0x88')]['clear'](),this[_0x4bb2('0x80')][_0x4bb2('0xfa')](),this[_0x4bb2('0x3a')][_0x4bb2('0xfa')](),this[_0x4bb2('0x4d')][_0x4bb2('0xfa')](),this[_0x4bb2('0xa2')][_0x4bb2('0xfa')](),this['_baseIdsRoots'][_0x4bb2('0xfa')](),this[_0x4bb2('0x51')][_0x4bb2('0xfa')](),this[_0x4bb2('0xf7')]=0x1,this[_0x4bb2('0xda')]=this[_0x4bb2('0xf7')];}[_0x4bb2('0x3f')](_0x54506c,_0x3dfc53=null){let _0x3459e1=null;_0x54506c['is'](_0x4bb2('0xd8'))||(_0x3459e1=new _0x462dd8(_0x54506c[_0x4bb2('0x7c')],{'vid_start':null===_0x3dfc53?this[_0x4bb2('0xf7')]++:_0x3dfc53++}));const _0x124eea=[];for(const _0x51868d of _0x54506c[_0x4bb2('0x4a')]())if(_0x51868d['is'](_0x4bb2('0x36'))){_0x124eea[_0x4bb2('0xe4')](this[_0x4bb2('0x3f')](_0x51868d,_0x3dfc53));const _0xb5c92a=_0x124eea[_0x124eea['length']-0x1];null!==_0x3dfc53&&(_0x3dfc53=_0xb5c92a['is'](_0x4bb2('0x36'),_0x4bb2('0x28'))?_0xb5c92a[_0x4bb2('0xad')](_0x4bb2('0x44'))+0x1:_0xb5c92a[_0x4bb2('0xad')](_0x4bb2('0xcd'))+0x1);}else for(let _0x5a07be=0x0;_0x5a07be<_0x51868d[_0x4bb2('0x5c')];_0x5a07be++)_0x124eea['push'](new _0x462dd8(_0x4bb2('0x28'),{'vid':null===_0x3dfc53?this[_0x4bb2('0xf7')]++:_0x3dfc53++}));if(_0x54506c['is']('documentFragment')){const _0x47bb16=new _0x2825b5(_0x124eea);return _0x47bb16[_0x4bb2('0xd0')]=_0x54506c[_0x4bb2('0xd0')],_0x47bb16;}return _0x3459e1[_0x4bb2('0x76')]('vid_end',null===_0x3dfc53?this[_0x4bb2('0xf7')]++:_0x3dfc53++),_0x3459e1[_0x4bb2('0x9b')](0x0,_0x124eea),_0x3459e1;}[_0x4bb2('0xe7')](_0x5063fd,_0x497213,_0x5d9493){this[_0x4bb2('0x74')]();const {roots:_0x49b162,markers:_0x2d2d6a}=this[_0x4bb2('0x56')]['get'](_0x5063fd);this[_0x4bb2('0x4d')]=new Map(_0x49b162);for(const [_0x508b11,_0x203d84]of this[_0x4bb2('0x4d')])if('$graveyard'!==_0x508b11&&(this[_0x4bb2('0x3a')][_0x4bb2('0x1')](_0x508b11,J(_0x203d84)),_0x5d9493)){const _0x145745=this[_0x4bb2('0xf7')];this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x508b11,this[_0x4bb2('0x3f')](_0x203d84)),this[_0x4bb2('0xb4')]['set'](_0x508b11,this[_0x4bb2('0x3f')](_0x203d84,_0x145745));}this[_0x4bb2('0xda')]=this['_revisionId'],this['_diffRoots'][_0x4bb2('0x1')](_0x4bb2('0x59'),J(this[_0x4bb2('0x4d')][_0x4bb2('0x66')]('$graveyard'))),_0x5d9493&&this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x4bb2('0x59'),this[_0x4bb2('0x3f')](this[_0x4bb2('0x4d')][_0x4bb2('0x66')](_0x4bb2('0x59'))));for(const [_0x201ef3,_0x4ad8fc]of _0x2d2d6a){const _0x181d6b=this['_baseRoots'][_0x4bb2('0x66')](_0x4ad8fc['rootName']),_0x22f053=this[_0x4bb2('0x3a')]['get'](_0x4ad8fc['rootName']),_0x5bb208=new _0x432887(this[_0x4bb2('0x32')](_0x4ad8fc['start'],_0x181d6b),this[_0x4bb2('0x32')](_0x4ad8fc['end'],_0x181d6b)),_0x33531c=this[_0x4bb2('0xca')](_0x5bb208,_0x22f053);_0x181d6b[_0x4bb2('0xa4')][_0x4bb2('0x1')](_0x201ef3,_0x5bb208),this['_markers'][_0x4bb2('0x1')](_0x201ef3,_0x33531c);}this[_0x4bb2('0x31')](_0x5063fd,_0x497213,_0x5d9493);}['_applyOperations'](_0x49fb52,_0xc49fcd,_0x43f8d5){for(const _0x5040c4 of this[_0x4bb2('0x85')][_0x4bb2('0xde')](_0x49fb52,_0xc49fcd))this[_0x4bb2('0xee')](_0x5040c4,_0x43f8d5);for(const _0xa0f69 of this[_0x4bb2('0x3a')]['values']())_0xa0f69[_0x4bb2('0xa4')]['clear']();for(const [_0x574cea,_0x3a6beb]of this[_0x4bb2('0x51')]){this[_0x4bb2('0x3a')]['get'](_0x3a6beb[_0x4bb2('0xbe')]['rootName'])[_0x4bb2('0xa4')][_0x4bb2('0x1')](_0x574cea,_0x3a6beb[_0x4bb2('0x1c')]());}this['_saveMetaData'](_0xc49fcd,Array[_0x4bb2('0x13')](this[_0x4bb2('0x3a')])['map'](([_0x41eaac,_0x163cbb])=>[_0x41eaac,J(_0x163cbb)]),this['_markers']);}[_0x4bb2('0x0')](_0x19a05d){const _0x58b3ee=Array[_0x4bb2('0x13')](this[_0x4bb2('0x56')][_0x4bb2('0x45')]());_0x58b3ee[_0x4bb2('0xd9')]((_0x3d1576,_0x1eba20)=>_0x3d1576-_0x1eba20),_0x58b3ee[_0x4bb2('0x7f')]();for(const _0x5e9015 of _0x58b3ee)if(_0x5e9015<_0x19a05d)return _0x5e9015;return this['_saveEmptyMetaData'](),Number[_0x4bb2('0x5a')];}['_copyMarkers'](_0x34c52f,_0x24fad8){const _0x5369e0=Array[_0x4bb2('0x13')](_0x24fad8['markers'])[_0x4bb2('0x15')](([_0xcff563,_0x2bd3df])=>[_0xcff563,this[_0x4bb2('0xca')](_0x2bd3df,_0x34c52f)]);_0x34c52f[_0x4bb2('0xa4')]=new Map(_0x5369e0);}['_transformMarkers'](_0x1cbb07){for(const _0x5b32d2 of this[_0x4bb2('0x51')][_0x4bb2('0xe9')]()){const _0x36c369=_0x5b32d2[_0x4bb2('0x7')](_0x1cbb07),_0x2c335c=_0x432887[_0x4bb2('0xdd')](_0x36c369);_0x5b32d2[_0x4bb2('0x35')]=_0x2c335c['start'],_0x5b32d2[_0x4bb2('0xac')]=_0x2c335c['end'];}}[_0x4bb2('0xee')](_0x5435f1,_0x4de016){const _0x40365b=this[_0x4bb2('0x96')](_0x5435f1,this[_0x4bb2('0x3a')]);if(_0x4bb2('0xe5')!==_0x5435f1[_0x4bb2('0x42')]&&(_0x40365b['_execute'](),this[_0x4bb2('0xb6')](_0x40365b)),_0x4de016)switch(_0x40365b[_0x4bb2('0x42')]){case _0x4bb2('0x79'):this[_0x4bb2('0x7e')](_0x5435f1);break;case _0x4bb2('0x6c'):case _0x4bb2('0x20'):case _0x4bb2('0x73'):this['_handleMoveOperation'](_0x5435f1);break;case'merge':this['_handleMergeOperation'](_0x5435f1);break;case _0x4bb2('0x2b'):this[_0x4bb2('0xba')](_0x5435f1);break;case _0x4bb2('0xe5'):this[_0x4bb2('0x6a')](_0x5435f1);}}[_0x4bb2('0x96')](_0x6ae598,_0x41c9c8){const _0x530f43=_0x6ae598[_0x4bb2('0x1c')]();return _0x530f43[_0x4bb2('0x69')]=_0x6ae598[_0x4bb2('0x69')],this['_fixOperation'](_0x530f43,_0x41c9c8),_0x530f43;}[_0x4bb2('0xd3')](_0x4879f7){return _0x4879f7[_0x4bb2('0x15')](_0x400250=>{const _0x5d50d=this[_0x4bb2('0x6d')](_0x400250);return Number(_0x400250[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x5d50d));});}[_0x4bb2('0x23')](_0x3baf23,_0x43e804){if(_0x3baf23['is'](_0x4bb2('0x36'),'$text'))_0x43e804[_0x4bb2('0xe4')]({'item':_0x3baf23,'type':_0x4bb2('0xc4')});else{_0x3baf23['is'](_0x4bb2('0x36'))&&_0x43e804['push']({'item':_0x3baf23,'type':_0x4bb2('0x11')});for(const _0x1373ac of _0x3baf23[_0x4bb2('0x4a')]())this[_0x4bb2('0x23')](_0x1373ac,_0x43e804);_0x3baf23['is'](_0x4bb2('0x36'))&&_0x43e804['push']({'item':_0x3baf23,'type':_0x4bb2('0x4f')});}return _0x43e804;}[_0x4bb2('0x9d')](){const _0x1f38f6=this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')]['getRootNames'](),_0x2c21a5=new Map(this[_0x4bb2('0x88')]),_0x30601b=new Map(_0x2c21a5),_0x38f723=new Map(),_0x564013={'insertions':{},'deletions':{}},_0x1ff7f4={'insertions':{},'deletions':{}},_0x152fa9=new Map();for(const _0x38f636 of _0x1f38f6){const _0x23d78f=this[_0x4bb2('0x3a')][_0x4bb2('0x66')](_0x38f636),_0x38cc2a=this[_0x4bb2('0x4d')][_0x4bb2('0x66')](_0x38f636);_0x564013[_0x4bb2('0xc9')][_0x38f636]=J(_0x23d78f),_0x564013['deletions'][_0x38f636]=J(_0x38cc2a),this[_0x4bb2('0xa6')](_0x564013['deletions'][_0x38f636],_0x38cc2a),this[_0x4bb2('0xa6')](_0x564013[_0x4bb2('0xc9')][_0x38f636],_0x23d78f),_0x1ff7f4[_0x4bb2('0xc9')][_0x38f636]=this[_0x4bb2('0x23')](this[_0x4bb2('0xa2')][_0x4bb2('0x66')](_0x38f636),[]),_0x1ff7f4[_0x4bb2('0xa7')][_0x38f636]=this[_0x4bb2('0x23')](this[_0x4bb2('0xb4')]['get'](_0x38f636),[]);}for(const _0x2373e9 of _0x1f38f6){const _0x222330=_0x1ff7f4[_0x4bb2('0xc9')][_0x2373e9];for(const _0x49bb9d of _0x222330){const _0x13da21=this['_getVidAttributeName'](_0x49bb9d),_0x45647d=_0x49bb9d[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x13da21);_0x30601b[_0x4bb2('0xa5')](_0x45647d),_0x45647d>=this['_startingRevisionId']&&_0x38f723[_0x4bb2('0x1')](_0x45647d,_0x2c21a5[_0x4bb2('0x66')](_0x45647d));}}for(const _0x438d7a of _0x1f38f6){const _0x2edce9=_0x1ff7f4[_0x4bb2('0xc9')][_0x438d7a],_0x20b559=this[_0x4bb2('0xd3')](_0x1ff7f4['deletions'][_0x438d7a]);let _0x4b4381=0x0;for(const _0x47744f of _0x2edce9){const _0x3ecdfc=this[_0x4bb2('0x6d')](_0x47744f),_0x21eb11=_0x47744f[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x3ecdfc);if(!_0x38f723['has'](_0x21eb11)&&!_0x152fa9[_0x4bb2('0xa1')](_0x21eb11)){if(_0x30601b[_0x4bb2('0xa1')](_0x21eb11))_0x4b4381++;else{if(_0x21eb11!=_0x20b559[_0x4b4381]){const _0x16d084=_0x2c21a5[_0x4bb2('0x66')](_0x21eb11)||_0x2c21a5[_0x4bb2('0x66')](_0x20b559[_0x4b4381]);for(;_0x21eb11!=_0x20b559[_0x4b4381];)_0x30601b[_0x4bb2('0xa1')](_0x20b559[_0x4b4381])||(_0x152fa9[_0x4bb2('0x1')](_0x20b559[_0x4b4381],_0x16d084),_0x2c21a5[_0x4bb2('0x1')](_0x20b559[_0x4b4381],_0x16d084)),_0x4b4381++;}_0x4b4381++;}}}}for(const _0x556475 of _0x1f38f6){const _0x3b3e73=_0x1ff7f4[_0x4bb2('0xc9')][_0x556475];for(const _0xc944af of _0x3b3e73){const _0x37eb65=this[_0x4bb2('0x6d')](_0xc944af),_0x582008=_0xc944af[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x37eb65);if(_0x152fa9[_0x4bb2('0xa1')](_0x582008)){const _0x26df4f=_0x152fa9[_0x4bb2('0x66')](_0x582008);_0x30601b[_0x4bb2('0xa1')](_0x582008)||_0x30601b[_0x4bb2('0x1')](_0x582008,{..._0x26df4f}),_0x38f723[_0x4bb2('0x1')](_0x582008,{..._0x26df4f});}}}for(const _0x226ed9 of _0x30601b[_0x4bb2('0x45')]())_0x226ed9>=this[_0x4bb2('0xda')]&&_0x30601b['delete'](_0x226ed9);const _0x596d80=new Map();for(const _0x34b9fb of _0x1f38f6){let _0x2d0018=_0x1ff7f4['insertions'][_0x34b9fb];for(const _0x17d128 of _0x2d0018)if(_0x17d128[_0x4bb2('0x90')]['is'](_0x4bb2('0x36'),_0x4bb2('0xd'))){const _0x2ab099=this[_0x4bb2('0x6d')](_0x17d128),_0x3351f4=_0x17d128[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x2ab099);if(_0x38f723['has'](_0x3351f4)){const _0x1a1e1e=_0x17d128[_0x4bb2('0x90')][_0x4bb2('0x8d')][_0x4bb2('0x8d')][_0x4bb2('0xad')](_0x4bb2('0x5d')),_0x532b36=_0x596d80[_0x4bb2('0x66')](_0x1a1e1e)||new Set();_0x532b36[_0x4bb2('0x26')](_0x38f723[_0x4bb2('0x66')](_0x3351f4)[_0x4bb2('0x62')]),_0x596d80[_0x4bb2('0x1')](_0x1a1e1e,_0x532b36);}}_0x2d0018=_0x1ff7f4[_0x4bb2('0xa7')][_0x34b9fb];for(const _0x2efefe of _0x2d0018)if(_0x2efefe['item']['is'](_0x4bb2('0x36'),_0x4bb2('0xd'))){const _0x708344=this['_getVidAttributeName'](_0x2efefe),_0x1643c2=_0x2efefe[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x708344);if(_0x30601b[_0x4bb2('0xa1')](_0x1643c2)){const _0x4881e8=_0x2efefe[_0x4bb2('0x90')][_0x4bb2('0x8d')]['parent'][_0x4bb2('0xad')](_0x4bb2('0x5d')),_0x40b249=_0x596d80[_0x4bb2('0x66')](_0x4881e8)||new Set();_0x40b249[_0x4bb2('0x26')](_0x30601b[_0x4bb2('0x66')](_0x1643c2)[_0x4bb2('0x62')]),_0x596d80[_0x4bb2('0x1')](_0x4881e8,_0x40b249);}}for(const _0x20f8e5 of _0x596d80['keys']())(_0x38f723[_0x4bb2('0xa1')](_0x20f8e5)||_0x30601b[_0x4bb2('0xa1')](_0x20f8e5))&&_0x596d80[_0x4bb2('0xa5')](_0x20f8e5);}for(const _0x10004a of _0x1f38f6){const _0x3030f9=_0x1ff7f4[_0x4bb2('0xc9')][_0x10004a];let _0x5302a2=null,_0x191c7b=null;for(const _0x3c05fa of _0x3030f9){const _0x361c0f=this['_getVidAttributeName'](_0x3c05fa),_0x430f5f=_0x3c05fa['item'][_0x4bb2('0xad')](_0x361c0f),_0x1d0a04=_0x596d80[_0x4bb2('0x66')](_0x430f5f);_0x1d0a04&&_0x4bb2('0x11')==_0x3c05fa[_0x4bb2('0x42')]&&(_0x5302a2=Array[_0x4bb2('0x13')](_0x1d0a04)[0x0],_0x191c7b=_0x3c05fa['item'][_0x4bb2('0xad')](_0x4bb2('0xcd'))),_0x5302a2&&(_0x30601b[_0x4bb2('0x1')](_0x430f5f,{'userId':_0x5302a2}),_0x38f723['set'](_0x430f5f,{'userId':_0x5302a2})),_0x430f5f==_0x191c7b&&(_0x5302a2=null,_0x191c7b=null);}}const _0x5cab4c={},_0xa63b5d=new Set();for(const _0x1ce113 of _0x1f38f6){const _0x42cec4=_0x564013[_0x4bb2('0xa7')][_0x1ce113],_0x36313e=_0x564013['insertions'][_0x1ce113];for(const {userId:_0x3bf7bb}of this['_touchedMarkers']['values']())null!==_0x3bf7bb&&_0xa63b5d['add'](_0x3bf7bb);this[_0x4bb2('0x3d')](_0x36313e,_0x1ff7f4[_0x4bb2('0xc9')][_0x1ce113],_0x38f723,_0x4bb2('0x94'),_0xa63b5d),this['_markChanges'](_0x42cec4,_0x1ff7f4[_0x4bb2('0xa7')][_0x1ce113],_0x30601b,'deletion',_0xa63b5d),_0x5cab4c[_0x1ce113]={'insertions':this[_0x4bb2('0x37')](_0x36313e),'deletions':this[_0x4bb2('0x37')](_0x42cec4)};}return{'diffData':_0x5cab4c,'authorsIds':Array['from'](_0xa63b5d)};}[_0x4bb2('0xc5')](_0xddb4a2){for(const [,_0x39dcab]of _0xddb4a2[_0x4bb2('0xa4')]){const _0x36bf08=_0x39dcab[_0x4bb2('0x35')][_0x4bb2('0xd5')]()[_0x4bb2('0x87')](_0x530978=>_0x4bb2('0xd')==_0x530978[_0x4bb2('0x7c')]);for(const _0x5840ea of _0x36bf08)0x1==_0x5840ea['childCount']&&_0x5840ea[_0x4bb2('0xaa')](0x0)['is'](_0x4bb2('0x36'),'paragraph')&&_0x5840ea['getChild'](0x0)[_0x4bb2('0x76')](_0x4bb2('0x9'),!0x0);}}[_0x4bb2('0x37')](_0x38b40){this[_0x4bb2('0xc5')](_0x38b40);const _0x299fb6=this[_0x4bb2('0x17')][_0x4bb2('0x55')][_0x4bb2('0x92')](_0x38b40,{}),_0x2ad18a=Array[_0x4bb2('0x13')](_0x299fb6[_0x4bb2('0x4a')]())['map'](_0x5d1929=>this[_0x4bb2('0xf5')](_0x5d1929));return JSON[_0x4bb2('0x2f')](_0x2ad18a);}[_0x4bb2('0xf5')](_0x43ab91){if(_0x43ab91['is'](_0x4bb2('0xc4')))return _0x43ab91[_0x4bb2('0x55')];return{'type':Object[_0x4bb2('0x45')](V)[_0x4bb2('0xe6')](_0x367991=>_0x43ab91 instanceof V[_0x367991]),'name':_0x43ab91[_0x4bb2('0x7c')],'attributes':Array[_0x4bb2('0x13')](_0x43ab91[_0x4bb2('0xfb')]()),'children':Array[_0x4bb2('0x13')](_0x43ab91[_0x4bb2('0x4a')]())[_0x4bb2('0x15')](_0xc75b46=>this[_0x4bb2('0xf5')](_0xc75b46))};}[_0x4bb2('0x3d')](_0x198217,_0x4eb113,_0x1251d6,_0x3078c0,_0xf271eb){let _0x461d2c=null,_0x44685e=null,_0x153f98=0x0;const _0x503427=this[_0x4bb2('0x17')][_0x4bb2('0xb2')];for(let _0x22534a=0x0;_0x22534a<_0x4eb113[_0x4bb2('0x9f')];_0x22534a++){const _0x4875f1=this[_0x4bb2('0x6d')](_0x4eb113[_0x22534a]),_0xe297b1=_0x4eb113[_0x22534a][_0x4bb2('0x90')][_0x4bb2('0xad')](_0x4875f1),_0x5b6e03=_0x1251d6[_0x4bb2('0x66')](_0xe297b1),_0x331db=_0x22534a==_0x4eb113[_0x4bb2('0x9f')]-0x1;(!_0x461d2c&&_0x5b6e03&&(_0x461d2c=_0x5b6e03,_0x44685e=_0x4eb113[_0x22534a]),_0x461d2c&&(!_0x5b6e03||_0x5b6e03[_0x4bb2('0x62')]!=_0x461d2c['userId']))&&(_0x3fcb96(_0x5b6e03,j(_0x44685e,_0x198217,_0x503427),j(_0x4eb113[_0x22534a],_0x198217,_0x503427)),_0x461d2c=_0x5b6e03||null,_0x44685e=_0x5b6e03?_0x4eb113[_0x22534a]:null),_0x461d2c&&_0x331db&&_0x3fcb96(_0x5b6e03,j(_0x44685e,_0x198217,_0x503427),B(_0x4eb113[_0x22534a],_0x198217,_0x503427));}function _0x3fcb96(_0x15770d,_0x42ff43,_0x3ac300){const _0x47c506=_0x461d2c[_0x4bb2('0x62')],_0x456852=_0x4bb2('0x75')+_0x3078c0+':'+_0x47c506+':'+_0x153f98++,_0x2feabc=_0x503427[_0x4bb2('0xb0')](_0x42ff43,_0x3ac300);_0x198217[_0x4bb2('0xa4')][_0x4bb2('0x1')](_0x456852,_0x2feabc),null!==_0x47c506&&_0xf271eb[_0x4bb2('0x26')](_0x47c506);}}[_0x4bb2('0x6d')](_0x55168f){switch(_0x55168f[_0x4bb2('0x42')]){case _0x4bb2('0x11'):return _0x4bb2('0x5d');case _0x4bb2('0x4f'):return _0x4bb2('0xcd');default:return _0x4bb2('0x44');}}[_0x4bb2('0x8')](_0x3b16c2,_0x4a56ba){_0x3b16c2[_0x4bb2('0x43')]=null;for(const _0x11c27f in _0x3b16c2){if(_0x3b16c2[_0x11c27f]instanceof _0x275e0c){const _0x1151af=_0x4a56ba[_0x4bb2('0x66')](_0x3b16c2[_0x11c27f][_0x4bb2('0xbe')][_0x4bb2('0xd0')]);_0x3b16c2[_0x11c27f]=this[_0x4bb2('0x32')](_0x3b16c2[_0x11c27f],_0x1151af);}if(_0x3b16c2[_0x11c27f]instanceof _0x432887){const _0x4d8def=_0x4a56ba['get'](_0x3b16c2[_0x11c27f][_0x4bb2('0xbe')][_0x4bb2('0xd0')]);_0x3b16c2[_0x11c27f]=this[_0x4bb2('0xca')](_0x3b16c2[_0x11c27f],_0x4d8def);}}_0x3b16c2['root']&&(_0x3b16c2[_0x4bb2('0xbe')]=_0x4a56ba[_0x4bb2('0x66')](_0x3b16c2['root'][_0x4bb2('0xd0')]));}['_fixRange'](_0x2f4a07,_0x907e18){return this[_0x4bb2('0x17')]['model']['createRange'](this[_0x4bb2('0x32')](_0x2f4a07['start'],_0x907e18),this[_0x4bb2('0x32')](_0x2f4a07[_0x4bb2('0xac')],_0x907e18));}[_0x4bb2('0x32')](_0x80e2ce,_0x5422bc){return this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xcf')](_0x5422bc,_0x80e2ce[_0x4bb2('0xb8')],_0x80e2ce[_0x4bb2('0x98')]);}[_0x4bb2('0x7e')](_0x341b93){const _0x10481=this['_idsRoots'][_0x4bb2('0x66')](_0x341b93[_0x4bb2('0xc7')][_0x4bb2('0xbe')][_0x4bb2('0xd0')]),_0x14adf6=this[_0x4bb2('0x32')](_0x341b93[_0x4bb2('0xc7')],_0x10481),_0x1de307=null===_0x341b93[_0x4bb2('0x69')]?null:_0x341b93[_0x4bb2('0x69')]||this[_0x4bb2('0x17')]['plugins'][_0x4bb2('0x66')]('Users')['me']['id'],_0x351e1e=_0x14adf6[_0x4bb2('0x8d')],_0x17b709=this[_0x4bb2('0xf7')],_0x5ee038=[];for(const _0x4054da of _0x341b93[_0x4bb2('0x61')])if(_0x4054da['is'](_0x4bb2('0x36')))_0x5ee038[_0x4bb2('0xe4')](this[_0x4bb2('0x3f')](_0x4054da));else for(let _0x9530ac=0x0;_0x9530ac<_0x4054da[_0x4bb2('0x5c')];_0x9530ac++)_0x5ee038[_0x4bb2('0xe4')](new _0x462dd8('$text',{'vid':this[_0x4bb2('0xf7')]++}));const _0x285020=this['_revisionId'];for(let _0x41a334=_0x17b709;_0x41a334<_0x285020;_0x41a334++)this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x41a334,{'userId':_0x1de307});_0x351e1e['_insertChild'](_0x14adf6['offset'],_0x5ee038);}[_0x4bb2('0xc2')](_0x395c4e){(_0x395c4e=this[_0x4bb2('0x96')](_0x395c4e,this[_0x4bb2('0xa2')]))[_0x4bb2('0xbb')]();const _0x47b498=null===_0x395c4e['_authorId']?null:_0x395c4e[_0x4bb2('0x69')]||this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x3405ac=_0x395c4e[_0x4bb2('0x19')](),_0x4fab36=_0x3405ac[_0x4bb2('0x8d')],_0x360706=_0x3405ac[_0x4bb2('0xb3')];!function _0x18664e(_0x35a6d3,_0x1dcb70,_0x5b698f,_0x22f031){for(let _0x37bb4f=_0x5b698f;_0x37bb4f<_0x22f031;_0x37bb4f++){const _0x47be52=_0x1dcb70[_0x4bb2('0xaa')](_0x37bb4f);_0x47be52['is'](_0x4bb2('0x36'),_0x4bb2('0x28'))?_0x35a6d3[_0x4bb2('0x1')](_0x47be52[_0x4bb2('0xad')](_0x4bb2('0x44')),{'userId':_0x47b498}):(_0x35a6d3['set'](_0x47be52[_0x4bb2('0xad')](_0x4bb2('0x5d')),{'userId':_0x47b498}),_0x18664e(_0x35a6d3,_0x47be52,0x0,_0x47be52[_0x4bb2('0xb')]),_0x35a6d3[_0x4bb2('0x1')](_0x47be52[_0x4bb2('0xad')](_0x4bb2('0xcd')),{'userId':_0x47b498}));}}(this[_0x4bb2('0x88')],_0x4fab36,_0x360706,_0x360706+_0x395c4e['howMany']);}[_0x4bb2('0x68')](_0x30e2d4){const _0x29f19b=null===(_0x30e2d4=this[_0x4bb2('0x96')](_0x30e2d4,this[_0x4bb2('0xa2')]))[_0x4bb2('0x69')]?null:_0x30e2d4['_authorId']||this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x1f8d14=_0x30e2d4[_0x4bb2('0x95')][_0x4bb2('0x8d')],_0x2c8f0a=_0x30e2d4['sourcePosition'][_0x4bb2('0x8d')],_0x17d081=_0x1f8d14[_0x4bb2('0xad')](_0x4bb2('0xcd')),_0xcf6284=_0x2c8f0a[_0x4bb2('0xad')](_0x4bb2('0x5d'));_0x1f8d14[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x2c8f0a[_0x4bb2('0xad')](_0x4bb2('0xcd'))),_0x2c8f0a[_0x4bb2('0x76')]('vid_end',_0x17d081),this['_touched']['set'](_0xcf6284,{'userId':_0x29f19b}),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x17d081,{'userId':_0x29f19b}),_0x30e2d4[_0x4bb2('0xbb')]();}['_handleSplitOperation'](_0x1fc507){const _0x12512c=null===(_0x1fc507=this['_cloneOperation'](_0x1fc507,this[_0x4bb2('0xa2')]))[_0x4bb2('0x69')]?null:_0x1fc507[_0x4bb2('0x69')]||this['editor']['plugins'][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x1d2836=_0x1fc507[_0x4bb2('0x3c')],_0x33a776=_0x1fc507[_0x4bb2('0xdb')]['parent'];_0x1fc507[_0x4bb2('0xbb')]();const _0x3c86e6=_0x33a776[_0x4bb2('0xad')](_0x4bb2('0xcd')),_0x15101b=_0x1fc507[_0x4bb2('0x9c')][_0x4bb2('0x10')];if(_0x1d2836){const _0x2168c3=_0x15101b[_0x4bb2('0xad')](_0x4bb2('0xcd')),_0x32bc74=_0x33a776[_0x4bb2('0xad')](_0x4bb2('0xcd'));_0x33a776[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x2168c3),_0x15101b['_setAttribute']('vid_end',_0x32bc74),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x33a776[_0x4bb2('0xad')](_0x4bb2('0xcd')),{'userId':_0x12512c}),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x15101b[_0x4bb2('0xad')](_0x4bb2('0x5d')),{'userId':_0x12512c});}else{const _0x7616a7=this['_revisionId']++,_0x4ed498=this[_0x4bb2('0xf7')]++;_0x33a776[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x7616a7),_0x15101b[_0x4bb2('0x76')](_0x4bb2('0x5d'),_0x4ed498),_0x15101b[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x3c86e6),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x7616a7,{'userId':_0x12512c}),this['_touched'][_0x4bb2('0x1')](_0x4ed498,{'userId':_0x12512c});}}[_0x4bb2('0x6a')](_0x15b56b){if(!_0x15b56b[_0x4bb2('0x2a')])return;const _0x367fa6=(_0x15b56b=this[_0x4bb2('0x96')](_0x15b56b,this[_0x4bb2('0x3a')]))[_0x4bb2('0xf')]?_0x15b56b[_0x4bb2('0xf')][_0x4bb2('0xbe')]:null,_0x16f06a=_0x15b56b[_0x4bb2('0x4')]?_0x15b56b['newRange'][_0x4bb2('0xbe')]:null;_0x367fa6&&this[_0x4bb2('0x51')][_0x4bb2('0xa5')](_0x15b56b[_0x4bb2('0x7c')]),_0x16f06a&&this[_0x4bb2('0x51')]['set'](_0x15b56b[_0x4bb2('0x7c')],_0x15b56b[_0x4bb2('0x4')][_0x4bb2('0x1c')]());const _0x7a57b9=null===_0x15b56b['_authorId']?null:_0x15b56b[_0x4bb2('0x69')]||this[_0x4bb2('0x17')]['plugins']['get'](_0x4bb2('0x27'))['me']['id'],_0x23b18b=_0x15b56b[_0x4bb2('0x7c')];if(!this[_0x4bb2('0x80')][_0x4bb2('0xa1')](_0x23b18b))return void this['_touchedMarkers'][_0x4bb2('0x1')](_0x23b18b,{'range':_0x15b56b[_0x4bb2('0xf')],'userId':_0x7a57b9});const _0x419a21=this[_0x4bb2('0x80')][_0x4bb2('0x66')](_0x23b18b),_0x3ddcb2=_0x419a21[_0x4bb2('0x8f')],_0x57d394=_0x15b56b['newRange'];null==_0x3ddcb2&&null==_0x57d394||_0x3ddcb2&&_0x57d394&&_0x3ddcb2[_0x4bb2('0xd6')](_0x57d394)?this['_touchedMarkers'][_0x4bb2('0xa5')](_0x15b56b['name']):_0x419a21['userId']=_0x7a57b9;}}function J(_0x38a1b8){const _0x39d089=new _0x2825b5();_0x39d089[_0x4bb2('0xd0')]=_0x38a1b8[_0x4bb2('0xd0')];for(const _0x208596 of _0x38a1b8[_0x4bb2('0x4a')]()){const _0x3b91eb=_0x208596[_0x4bb2('0xce')](!0x0);_0x39d089[_0x4bb2('0x91')](_0x3b91eb);}return _0x39d089;}function j(_0x18cc2f,_0x451db7,_0x4cb9c8){const _0x9617f9=_0x4bb2('0x4f')==_0x18cc2f['type']?_0x4cb9c8[_0x4bb2('0x81')](_0x18cc2f[_0x4bb2('0x90')],_0x4bb2('0xac')):_0x4cb9c8['createPositionBefore'](_0x18cc2f[_0x4bb2('0x90')]);return _0x9617f9['root']=_0x451db7,_0x9617f9;}function B(_0xa0879,_0x38f234,_0x21c880){const _0x2713ef='elementStart'==_0xa0879['type']?_0x21c880[_0x4bb2('0x81')](_0xa0879[_0x4bb2('0x90')],0x0):_0x21c880[_0x4bb2('0x60')](_0xa0879[_0x4bb2('0x90')]);return _0x2713ef[_0x4bb2('0xbe')]=_0x38f234,_0x2713ef;}