@ckeditor/ckeditor5-revision-history 34.1.0 → 34.2.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 (39) hide show
  1. package/build/revision-history.js +1 -1
  2. package/build/translations/es.js +1 -1
  3. package/build/translations/fr.js +1 -1
  4. package/build/translations/it.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/lang/translations/es.po +2 -1
  7. package/lang/translations/fr.po +2 -1
  8. package/lang/translations/it.po +2 -1
  9. package/lang/translations/pt-br.po +2 -1
  10. package/package.json +7 -7
  11. package/src/changeitem.js +1 -1
  12. package/src/editor/revisionviewereditor.js +1 -1
  13. package/src/editor/revisionviewereditorui.js +1 -1
  14. package/src/editor/revisionviewereditoruiview.js +1 -1
  15. package/src/revision.js +1 -1
  16. package/src/revisiondiff.js +1 -1
  17. package/src/revisionhistory.js +1 -1
  18. package/src/revisionsrepository.js +1 -1
  19. package/src/revisiontracker.js +1 -1
  20. package/src/revisionviewer.js +1 -1
  21. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  22. package/src/ui/revision/revisionauthorview.js +1 -1
  23. package/src/ui/revision/revisionnameview.js +1 -1
  24. package/src/ui/revision/revisionview.js +1 -1
  25. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  26. package/src/ui/revision/subrevisionview.js +1 -1
  27. package/src/ui/revision/utils.js +1 -1
  28. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  29. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  30. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  31. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  32. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  33. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  34. package/src/ui/revisionssidebar/utils.js +1 -1
  35. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  36. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  37. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  38. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  39. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b16=['delete','PENDING_ACTION_REVISION_HISTORY','_pendingAction','name','NEGATIVE_INFINITY','_baseRoots','deletions','_getFromVersion','pluginName','getOperation','tableCell','_authorId','_getVidAttributeName','locale','targetPosition','revision:','parse','_makeIdsRoot','insert','_savedMetaData','model','_touchedMarkers','_fixRange','plugins','getRevision','repository','_handleOperation','document','_copyMarkers','end','values','vid_end','history','newRange','rootName','_transformMarkers','authors','start','getIndex','_isPendingUpdate','roots','_clone','element','revision-end','_baseIdsRoots','parent','_getBaseVids','_handleMoveOperation','bind','saveRevision','getTime','getRevisions','elementEnd','_markers','currentRevision','toVersion','_removePendingAction','_touched','graveyardPosition','addRevisionData','getLatestVersion','_getPreviousFrom','paragraph','_startingVersion','_rootNames','merge','has','attributes','updateRevisions','_cloneOperation','getData','_update','clear','getUser','filter','offsetSize','init','getRoot','$text','_diffRoots','getRootNames','adapter','isEqual','addRevision','buildRevisionData','stringify','createRange','_lastFrom','_initialRevisionId','_getViewJson','getRange','getChildren','update','_handleInsertOperation','source','add','resolve','insertions','keepParagraph','_handleMergeOperation','_getViewObj','get','reverse','_isInit','keys','getRevisionDocumentData','createPositionAfter','from','PendingActions','_createFromRanges','Empty\x20document','remove','affectsData','insertionPosition','vid','reinsert','version','type','RealTimeCollaborationClient','getAttribute','finally','clone','push','editing','requires','data','_appendChild','config','userId','getCurrentRevisionId','_createInitialRevision','oldRange','setSource','_revisionId','marker','_markChanges','root','_source','dataDowncast','getChild','baseVersion','collaboration.channelId','_bufferUpdate','isReady','_saveEmptyMetaData','getAncestors','_saveMetaData','_removeMetaData','_loadRevisionData','getAttributes','position','_fixOperation','_revisionDataBuilder','revision-start','_applyOperations','item','_findInsertionIndex','getMovedRangeStart','createPositionAt','for','forEach','children','map','move','RevisionTracker','Users','fromVersion','_setConversion','sendBufferedUpdates','find','vid_start','size','_removeRevisionMarkers','createdAt','markers','_reset','documentFragment','Initial\x20revision','$graveyard','_fixPosition','_execute','_idsRoots','markerToData','toData','toView','data-revision-','creator','elementStart','offset','text','authorsIds','shift','string','_bufferedUpdates','_insertChild','childCount','_lastTo','startsWith','_startingRevisionId','range','creatorId','_handleSplitOperation','_generateTape','_operations','processor','editor','length','setRevisionData','set','_prepareViewToSave','splitPosition','_calculateMetaData','_setAttribute','createRevision','diffData','isPendingUpdate','split'];(function(_0x3c3933,_0x1b16d4){const _0x66d0c9=function(_0x10cf70){while(--_0x10cf70){_0x3c3933['push'](_0x3c3933['shift']());}};_0x66d0c9(++_0x1b16d4);}(_0x1b16,0x73));const _0x66d0=function(_0x3c3933,_0x1b16d4){_0x3c3933=_0x3c3933-0x0;let _0x66d0c9=_0x1b16[_0x3c3933];return _0x66d0c9;};import{Users as _0x19ad33}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x5a38a6,PendingActions as _0xe98311}from'ckeditor5/src/core';import{uid as _0x3d8444}from'ckeditor5/src/utils';import{Position as _0xe90ba9,Range as _0x4507e3,Element as _0x346c62,DocumentFragment as _0x1750dc,ViewText as _0x248f4f,ViewElement as _0x56a699,ViewContainerElement as _0xe2d54b,ViewAttributeElement as _0x29d9c9,ViewEmptyElement as _0x51305a,ViewRawElement as _0x3d91b5,ViewUIElement as _0x533800,ViewDocumentFragment as _0x4b09a9}from'ckeditor5/src/engine';import _0x411e33 from'./revisionsrepository';import{getTranslation as _0x4617ea}from'./utils/common-translations';const T={'c':_0xe2d54b,'a':_0x29d9c9,'e':_0x51305a,'r':_0x3d91b5,'u':_0x533800};export default class l extends _0x5a38a6{static get[_0x66d0('0x6e')](){return _0x66d0('0x31');}static get[_0x66d0('0x9')](){return[_0x19ad33,_0x411e33,_0xe98311];}constructor(..._0x406b2b){super(..._0x406b2b),this[_0x66d0('0xb7')]=null,this[_0x66d0('0x5d')](_0x66d0('0x1c'),!0x1),this[_0x66d0('0x5d')]('isEnabled',!0x0),this['currentRevision']=null;const _0xb985b6=_0x3d8444();this[_0x66d0('0x16')]={'history':this[_0x66d0('0x5a')][_0x66d0('0x7a')]['document'][_0x66d0('0x86')],'getLatestVersion':()=>Promise[_0x66d0('0xc6')](this[_0x66d0('0x5a')]['model'][_0x66d0('0x81')]['version']),'getCurrentRevisionId':()=>_0xb985b6},this[_0x66d0('0x25')]=new F(this['editor']),this[_0x66d0('0xbe')]=this['editor'][_0x66d0('0xc')][_0x66d0('0xcb')]('collaboration.channelId')||'initial',this[_0x66d0('0x5d')](_0x66d0('0x64'),!0x1),this[_0x66d0('0x4e')]=new Map();}[_0x66d0('0xb2')](){this[_0x66d0('0x7f')]=this[_0x66d0('0x5a')][_0x66d0('0x7d')][_0x66d0('0xcb')]('RevisionsRepository'),this[_0x66d0('0x34')](),this[_0x66d0('0x5a')][_0x66d0('0xa')]['on']('ready',()=>{if(this[_0x66d0('0x5a')][_0x66d0('0x7d')][_0x66d0('0xa8')](_0x66d0('0x3'))){const _0x5c4d6f=this[_0x66d0('0x16')][_0x66d0('0xe')](),_0x29e25d=this[_0x66d0('0x7f')][_0x66d0('0x7e')](_0x5c4d6f);if(_0x29e25d)this[_0x66d0('0xa5')]=_0x29e25d[_0x66d0('0x33')];else{const _0x450d24=this['_source'][_0x66d0('0x86')][_0x66d0('0x58')][_0x66d0('0x36')](_0x1d2e30=>!_0x1d2e30[_0x66d0('0xcd')]),_0x4c6cfa=_0x450d24?_0x450d24[_0x66d0('0x19')]:this['_source'][_0x66d0('0x86')][_0x66d0('0x1')],_0xacf65=this['repository'][_0x66d0('0x7e')](0x0),_0x3aa725=_0xacf65?_0xacf65[_0x66d0('0x9d')]:0x0;this['_startingVersion']=Math['max'](_0x4c6cfa,_0x3aa725);}}else{const _0x5eec3a=this[_0x66d0('0x7f')]['getRevisions']()['find'](_0x153482=>null===_0x153482['creator']);if(_0x5eec3a){if(this[_0x66d0('0x5a')][_0x66d0('0x7a')][_0x66d0('0x81')]['history'][_0x66d0('0x1')]=_0x5eec3a[_0x66d0('0x9d')],_0x5eec3a[_0x66d0('0x33')]===_0x5eec3a[_0x66d0('0x9d')])this['_source'][_0x66d0('0xe')]=()=>_0x5eec3a['id'];else{const _0x18dc2c=this[_0x66d0('0x5a')][_0x66d0('0x7d')]['get'](_0x66d0('0x32'))['me'];_0x5eec3a[_0x66d0('0x47')]=_0x18dc2c,_0x5eec3a[_0x66d0('0xad')]({'creatorId':_0x18dc2c['id']});}}this['_startingVersion']=this['editor'][_0x66d0('0x7a')][_0x66d0('0x81')][_0x66d0('0x1')];}this['_revisionDataBuilder']['init'](this[_0x66d0('0x16')][_0x66d0('0x86')]),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x66d0('0x96')](_0x66d0('0x1c'))['to'](this,_0x66d0('0x8d'),_0x49dccc=>!_0x49dccc);}[_0x66d0('0x11')](_0x2d0cc6){this[_0x66d0('0x16')]=_0x2d0cc6;}async[_0x66d0('0xc2')](){const _0x190e9c=await this[_0x66d0('0x16')][_0x66d0('0xa2')]();if(_0x190e9c>this[_0x66d0('0x9c')][_0x66d0('0x9d')]){const _0xd65636=this[_0x66d0('0xba')]({'revision':this[_0x66d0('0x9c')],'to':_0x190e9c});_0xd65636[_0x66d0('0x8a')]=_0xd65636['authorsIds'][_0x66d0('0x2f')](_0x53c1aa=>this[_0x66d0('0x5a')][_0x66d0('0x7d')][_0x66d0('0xcb')](_0x66d0('0x32'))[_0x66d0('0xaf')](_0x53c1aa)),this[_0x66d0('0x9c')]['_update'](_0xd65636);}}async[_0x66d0('0x97')](_0x78510d={},_0x5c513d=null){const _0x376109=[];if(_0x5c513d>this['currentRevision'][_0x66d0('0x9d')]&&(_0x5c513d=null),null===_0x5c513d&&(_0x5c513d=await this[_0x66d0('0x16')][_0x66d0('0xa2')]()),this[_0x66d0('0x9c')]['toVersion']<_0x5c513d){const _0x1e6f65=this[_0x66d0('0xba')]({'revision':this['currentRevision'],'from':_0x5c513d,'to':_0x5c513d});_0x1e6f65[_0x66d0('0x8a')]=[],_0x1e6f65[_0x66d0('0x4b')]=[],_0x1e6f65['id']=this[_0x66d0('0x9c')]['id'],this[_0x66d0('0x9c')]['_update'](_0x1e6f65,!0x0),delete _0x1e6f65[_0x66d0('0x8a')],_0x376109[_0x66d0('0x7')](_0x1e6f65);}const _0x4044ca=this['editor'][_0x66d0('0x7d')][_0x66d0('0xcb')](_0x66d0('0x32'))['me'],_0x27a26e=this[_0x66d0('0x6d')](_0x5c513d),_0x2296ff=this[_0x66d0('0xba')]({'from':_0x27a26e,'to':_0x5c513d});_0x78510d['creatorId']=_0x4044ca['id'],_0x78510d['name']=_0x78510d[_0x66d0('0x69')]||null,_0x78510d['id']=_0x78510d['id']||_0x3d8444(),_0x78510d={..._0x78510d,..._0x2296ff};const _0x546c03=this[_0x66d0('0xa1')](_0x78510d);_0x376109[_0x66d0('0x7')](_0x78510d);const _0x4e84d5=this[_0x66d0('0x7f')][_0x66d0('0x8c')](_0x546c03);if(0x0!==_0x4e84d5){const _0x3461af=this[_0x66d0('0x7f')]['getRevision'](_0x4e84d5-0x1);if(_0x3461af['fromVersion']!==_0x5c513d){const _0x2e9fba=this[_0x66d0('0x25')][_0x66d0('0xac')](_0x5c513d,_0x3461af['toVersion']),_0x3d6ea6={'id':_0x3461af['id'],'diffData':_0x2e9fba[_0x66d0('0x63')],'authorsIds':_0x2e9fba[_0x66d0('0x4b')],'authors':_0x2e9fba[_0x66d0('0x4b')][_0x66d0('0x2f')](_0x42d976=>this[_0x66d0('0x5a')][_0x66d0('0x7d')]['get'](_0x66d0('0x32'))[_0x66d0('0xaf')](_0x42d976)),'fromVersion':_0x5c513d};_0x3461af===this[_0x66d0('0x9c')]&&(_0x3d6ea6[_0x66d0('0x3a')]=new Date(_0x78510d[_0x66d0('0x3a')][_0x66d0('0x98')]()+0xa)),_0x3461af[_0x66d0('0xad')](_0x3d6ea6,!0x0),delete _0x3d6ea6[_0x66d0('0x8a')],_0x376109[_0x66d0('0x7')](_0x3d6ea6);}}if(this['adapter']){for(const _0x3d0fc4 of _0x376109)this[_0x66d0('0x1b')](_0x3d0fc4['id'],_0x3d0fc4,!0x0);this[_0x66d0('0x35')]();}return _0x546c03;}['addRevisionData'](_0x22ec24){const _0x586bb3=this[_0x66d0('0x7f')][_0x66d0('0x62')](_0x22ec24);return this[_0x66d0('0xb7')]&&_0x586bb3['on'](_0x66d0('0xad'),(_0x4d64a9,_0x36eb32,_0x5b7562)=>{_0x5b7562||(this[_0x66d0('0x1b')](_0x36eb32['id'],_0x36eb32,!0x0),this[_0x66d0('0x35')]());}),this[_0x66d0('0x7f')][_0x66d0('0xb9')](_0x586bb3,this['_findInsertionIndex'](_0x586bb3)),_0x586bb3;}async[_0x66d0('0xcf')](_0x1ee343){await this[_0x66d0('0x21')](_0x1ee343);const _0x1dd489={};for(const _0x14184c in _0x1ee343['diffData']){const _0x10c979=this[_0x66d0('0x39')](JSON[_0x66d0('0x76')](_0x1ee343[_0x66d0('0x63')][_0x14184c][_0x66d0('0xc7')])),_0x359842=this['editor'][_0x66d0('0x8')]['view']['document'],_0x381389=new _0x4b09a9(_0x359842,_0x10c979[_0x66d0('0x2f')](_0x1ea2e2=>this['_getViewObj'](_0x1ea2e2)));_0x1dd489[_0x14184c]=this[_0x66d0('0x5a')][_0x66d0('0xa')][_0x66d0('0x59')][_0x66d0('0x44')](_0x381389);}return _0x1dd489;}[_0x66d0('0x35')](){if(0x0===this[_0x66d0('0x4e')]['size'])return;if(this['_isPendingUpdate'])return;let _0x52cca9=Array['from'](this[_0x66d0('0x4e')][_0x66d0('0x84')]());this[_0x66d0('0x4e')][_0x66d0('0xae')]();for(let _0x101613=0x0;_0x101613<_0x52cca9[_0x66d0('0x5b')];_0x101613++){const _0x3831ff=_0x52cca9[_0x101613];let _0x375f3b=!0x1;for(const _0x595e51 of Object['keys'](_0x3831ff))void 0x0===_0x3831ff[_0x595e51]?delete _0x3831ff[_0x595e51]:'id'!==_0x595e51&&(_0x375f3b=!0x0);_0x375f3b||(_0x52cca9[_0x101613]=null);}if(_0x52cca9=_0x52cca9['filter'](_0x54a50a=>null!==_0x54a50a),!_0x52cca9['length'])return;for(let _0x3c7d5d=0x0;_0x3c7d5d<_0x52cca9['length'];_0x3c7d5d++){const _0x16d708=_0x52cca9[_0x3c7d5d];void 0x0!==_0x16d708[_0x66d0('0x33')]&&void 0x0===_0x16d708[_0x66d0('0x9d')]&&(_0x16d708[_0x66d0('0x9d')]=this[_0x66d0('0x7f')]['getRevision'](_0x16d708['id'])['toVersion']),void 0x0!==_0x16d708[_0x66d0('0x9d')]&&void 0x0===_0x16d708[_0x66d0('0x33')]&&(_0x16d708[_0x66d0('0x33')]=this[_0x66d0('0x7f')][_0x66d0('0x7e')](_0x16d708['id'])[_0x66d0('0x33')]);}const _0x21a93a=this[_0x66d0('0x5a')][_0x66d0('0xc')][_0x66d0('0xcb')](_0x66d0('0x1a'));this[_0x66d0('0x8d')]=!0x0,this['_addPendingAction'](),this[_0x66d0('0xb7')][_0x66d0('0xaa')](_0x52cca9,_0x21a93a)[_0x66d0('0x5')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3a3b36=>{if(_0x3a3b36)for(const _0x4da7d7 of _0x3a3b36)this[_0x66d0('0x5c')]({'id':_0x4da7d7['id'],'createdAt':_0x4da7d7['createdAt']});this[_0x66d0('0x9e')](),this[_0x66d0('0x35')]();});}['_addPendingAction'](){if(!this[_0x66d0('0x68')]){const _0x22f26d=this[_0x66d0('0x5a')][_0x66d0('0x7d')]['get']('PendingActions');this[_0x66d0('0x68')]=_0x22f26d['add'](_0x4617ea(this[_0x66d0('0x5a')][_0x66d0('0x73')],_0x66d0('0x67')));}}[_0x66d0('0x9e')](){this['_pendingAction']&&(this['editor'][_0x66d0('0x7d')][_0x66d0('0xcb')](_0x66d0('0xd2'))['remove'](this['_pendingAction']),this[_0x66d0('0x68')]=null);}[_0x66d0('0x29')](_0x5e86e9){const _0x2fdabc=this['repository']['getRevisions']();_0x2fdabc[_0x66d0('0xcc')]();let _0x1a4f1b=0x0;for(;_0x1a4f1b<_0x2fdabc[_0x66d0('0x5b')];){const _0x37b199=_0x2fdabc[_0x1a4f1b];if(_0x37b199===this[_0x66d0('0x9c')]){_0x1a4f1b++;continue;}if(_0x37b199['id']===this[_0x66d0('0xbe')])break;const _0x3d80d5=_0x5e86e9[_0x66d0('0x9d')]-_0x37b199[_0x66d0('0x9d')]||_0x5e86e9['fromVersion']-_0x37b199['fromVersion'];if(_0x3d80d5>0x0)break;if(_0x3d80d5<0x0)_0x1a4f1b++;else{if(!_0x5e86e9[_0x66d0('0x47')]&&_0x37b199['creator'])break;if(_0x37b199[_0x66d0('0x47')]||!_0x5e86e9[_0x66d0('0x47')]){if(_0x5e86e9[_0x66d0('0x3a')]>_0x37b199[_0x66d0('0x3a')])break;_0x1a4f1b++;}else _0x1a4f1b++;}}return _0x1a4f1b;}[_0x66d0('0x5c')](_0x431f1f){const _0x433478=this[_0x66d0('0x7f')]['getRevision'](_0x431f1f['id']);if(_0x431f1f[_0x66d0('0x3a')]&&(_0x431f1f[_0x66d0('0x3a')]=new Date(_0x431f1f[_0x66d0('0x3a')])),_0x431f1f[_0x66d0('0x4b')]){const _0x324c03=this['editor'][_0x66d0('0x7d')]['get'](_0x66d0('0x32'));_0x431f1f[_0x66d0('0x8a')]=_0x431f1f[_0x66d0('0x4b')][_0x66d0('0x2f')](_0x3be8d7=>_0x324c03[_0x66d0('0xaf')](_0x3be8d7));}_0x433478[_0x66d0('0xad')](_0x431f1f,!0x0);}['buildRevisionData']({revision:_0x3402d1=null,from:_0x213ccc=null,to:_0x49024b=null}){_0x213ccc=null!==_0x213ccc?_0x213ccc:_0x3402d1[_0x66d0('0x33')],_0x49024b=null!==_0x49024b?_0x49024b:_0x3402d1[_0x66d0('0x9d')];const _0x1c735f=this[_0x66d0('0x25')][_0x66d0('0xac')](_0x213ccc,_0x49024b),_0xcddbce={'diffData':_0x1c735f[_0x66d0('0x63')],'authorsIds':_0x1c735f[_0x66d0('0x4b')],'fromVersion':_0x213ccc,'toVersion':_0x49024b};if(!_0x3402d1||_0x49024b!==_0x3402d1[_0x66d0('0x9d')]){const _0x116036=_0x49024b-0x1,_0x5dae71=this['_source'][_0x66d0('0x86')][_0x66d0('0x6f')](_0x116036);_0xcddbce[_0x66d0('0x3a')]=_0x5dae71&&_0x5dae71['createdAt']||new Date();}return _0xcddbce;}['_loadRevisionData'](_0x164a41){if(!_0x164a41||_0x164a41[_0x66d0('0x63')])return Promise['resolve']();{const _0x2fa21a=this[_0x66d0('0x5a')][_0x66d0('0xc')][_0x66d0('0xcb')](_0x66d0('0x1a'));return this[_0x66d0('0xb7')]['getRevision']({'channelId':_0x2fa21a,'revisionId':_0x164a41['id']})['then'](_0xc3c368=>{_0x164a41[_0x66d0('0x63')]=_0xc3c368[_0x66d0('0x63')];});}}[_0x66d0('0x1b')](_0x30ee74,_0x283514,_0x4842e7){if(this[_0x66d0('0x4e')]['has'](_0x30ee74)){const _0x133310=this[_0x66d0('0x4e')]['get'](_0x30ee74);_0x283514=_0x4842e7?{..._0x133310,..._0x283514}:{..._0x283514,..._0x133310};}this[_0x66d0('0x4e')][_0x66d0('0x5d')](_0x30ee74,_0x283514);}['_getFromVersion'](_0x168988){const _0x3705bd=this[_0x66d0('0x7f')][_0x66d0('0x99')]();_0x3705bd[_0x66d0('0xcc')](),_0x3705bd[_0x66d0('0x4c')]();const _0x3d55d2=_0x3705bd[_0x66d0('0x36')](_0x29dde7=>_0x29dde7[_0x66d0('0x9d')]<=_0x168988)[_0x66d0('0x9d')];return _0x3d55d2<this['_startingVersion']?this[_0x66d0('0xa5')]:_0x3d55d2;}[_0x66d0('0xf')](_0x154ff4){const _0x3546a3=this[_0x66d0('0x7f')][_0x66d0('0x7e')](this[_0x66d0('0x7f')][_0x66d0('0x5b')]-0x1);if(_0x3546a3)this['_initialRevisionId']=_0x3546a3['id'];else{const _0x3f513d=!this[_0x66d0('0x5a')][_0x66d0('0x7a')]['document'][_0x66d0('0x8e')][_0x66d0('0x36')](_0x5c6abf=>this['editor'][_0x66d0('0x7a')]['hasContent'](_0x5c6abf)),_0x5e4616=this[_0x66d0('0x5a')][_0x66d0('0x7d')][_0x66d0('0xcb')](_0x66d0('0x32'))['me']['id'],_0x4393c9=_0x4617ea(this[_0x66d0('0x5a')][_0x66d0('0x73')],_0x3f513d?_0x66d0('0xd4'):_0x66d0('0x3e'));this['_makeRevision']({'from':_0x154ff4,'to':_0x154ff4,'id':this[_0x66d0('0xbe')],'name':_0x4393c9,'creatorId':_0x5e4616});}}['_createCurrentRevision'](_0x2ac7c1){const _0x49586c=this[_0x66d0('0x16')][_0x66d0('0xe')]();this[_0x66d0('0x9c')]=this[_0x66d0('0x7f')][_0x66d0('0x7e')](_0x49586c),this[_0x66d0('0x9c')]||(this[_0x66d0('0x9c')]=this['_makeRevision']({'from':_0x2ac7c1,'to':_0x2ac7c1,'id':_0x49586c,'name':'','creatorId':null}));}['_makeRevision']({name:_0xff92f5,from:_0x54ff66,to:_0x2d1496,creatorId:_0x4942ec,id:_0x1ad207}){const _0x31ab0d=this[_0x66d0('0xba')]({'from':_0x54ff66,'to':_0x2d1496});_0x31ab0d['name']=_0xff92f5,_0x31ab0d[_0x66d0('0x55')]=_0x4942ec,_0x31ab0d['id']=_0x1ad207;const _0xece020=this[_0x66d0('0xa1')](_0x31ab0d);return this['adapter']&&this[_0x66d0('0x1b')](_0x31ab0d['id'],_0x31ab0d,!0x0),_0xece020;}[_0x66d0('0x34')](){this[_0x66d0('0x5a')]['conversion'][_0x66d0('0x2c')](_0x66d0('0x17'))[_0x66d0('0x43')]({'model':'revision'});}[_0x66d0('0x39')](_0x38dfad){return(_0x38dfad=_0x38dfad[_0x66d0('0xb0')](_0x429401=>!_0x429401[_0x66d0('0x69')]||_0x66d0('0x26')!==_0x429401[_0x66d0('0x69')]&&_0x66d0('0x91')!==_0x429401['name']))[_0x66d0('0x2d')](_0x1a88d8=>{_0x66d0('0x4d')!=typeof _0x1a88d8&&(_0x1a88d8[_0x66d0('0x2e')]=this[_0x66d0('0x39')](_0x1a88d8[_0x66d0('0x2e')]),_0x1a88d8[_0x66d0('0xa9')]=_0x1a88d8[_0x66d0('0xa9')][_0x66d0('0xb0')](_0x524cfa=>!_0x524cfa[0x0][_0x66d0('0x52')](_0x66d0('0x46'))));}),_0x38dfad;}[_0x66d0('0xca')](_0x50bf66){const _0x11716b=this[_0x66d0('0x5a')][_0x66d0('0x8')]['view'][_0x66d0('0x81')];if(_0x66d0('0x4d')==typeof _0x50bf66)return new _0x248f4f(_0x11716b,_0x50bf66);{const _0x397269=_0x50bf66[_0x66d0('0x2e')][_0x66d0('0x2f')](_0x6f20e9=>this[_0x66d0('0xca')](_0x6f20e9));return new(T[_0x50bf66[(_0x66d0('0x2'))]]||_0x56a699)(_0x11716b,_0x50bf66[_0x66d0('0x69')],_0x50bf66[_0x66d0('0xa9')],_0x397269);}}}class F{constructor(_0x30e4ef){this[_0x66d0('0x5a')]=_0x30e4ef,this[_0x66d0('0x79')]=new Map(),this[_0x66d0('0xbd')]=-0x1,this[_0x66d0('0x51')]=-0x1,this[_0x66d0('0x9b')]=new Map(),this[_0x66d0('0xb5')]=new Map(),this[_0x66d0('0x6b')]=new Map(),this[_0x66d0('0x42')]=new Map(),this[_0x66d0('0x92')]=new Map(),this[_0x66d0('0x9f')]=new Map(),this[_0x66d0('0x7b')]=new Map(),this[_0x66d0('0x12')]=0x1,this['_rootNames']=this[_0x66d0('0x5a')][_0x66d0('0x7a')][_0x66d0('0x81')][_0x66d0('0xb6')](),this['_rootNames'][_0x66d0('0x7')](_0x66d0('0x3f'));}['init'](_0x3b2861){this['source']=_0x3b2861;const _0x1053a2=new Map();for(const _0x505f7d of this['_rootNames']){const _0x5d88e8=j(this['editor'][_0x66d0('0x7a')]['document'][_0x66d0('0xb3')](_0x505f7d));_0x1053a2[_0x66d0('0x5d')](_0x505f7d,_0x5d88e8);}const _0x5d4591=Array['from'](this[_0x66d0('0x5a')]['model'][_0x66d0('0x3b')])[_0x66d0('0x2f')](_0x2740e6=>[_0x2740e6[_0x66d0('0x69')],_0x2740e6[_0x66d0('0xc0')]()]),_0x4c267e=this[_0x66d0('0xc4')]['version'];this[_0x66d0('0x1f')](_0x4c267e,_0x1053a2,_0x5d4591),this[_0x66d0('0x53')]=this['_revisionId'];}['getData'](_0x10818d,_0x104abf){if(this[_0x66d0('0xbd')]===_0x10818d&&this[_0x66d0('0x51')]<=_0x104abf)this[_0x66d0('0x79')][_0x66d0('0x38')]>0x1&&this['_removeMetaData'](this[_0x66d0('0x51')]),this[_0x66d0('0x27')](this[_0x66d0('0x51')],_0x104abf,!0x0);else{if(!this[_0x66d0('0x79')]['has'](_0x10818d)){const _0x3f0ce9=this[_0x66d0('0xa3')](_0x10818d);this[_0x66d0('0x60')](_0x3f0ce9,_0x10818d,!0x1);}this[_0x66d0('0x60')](_0x10818d,_0x104abf,!0x0);}return this[_0x66d0('0xbd')]=_0x10818d,this[_0x66d0('0x51')]=_0x104abf,this['_getState']();}[_0x66d0('0x1d')](){const _0x2352aa=new Map();for(const _0x7389a9 of this[_0x66d0('0xa6')]){const _0x831376=new _0x1750dc();_0x831376[_0x66d0('0x88')]=_0x7389a9,_0x2352aa[_0x66d0('0x5d')](_0x7389a9,_0x831376);}this[_0x66d0('0x1f')](Number[_0x66d0('0x6a')],_0x2352aa,[]);}[_0x66d0('0x1f')](_0x4a645b,_0x1f11d1,_0x50f54d){const _0x29b063=new Map(_0x1f11d1),_0x30ef98=new Map();for(const [_0x51f218,_0x55b6e5]of _0x50f54d)_0x30ef98['set'](_0x51f218,{'start':_0x55b6e5[_0x66d0('0x8b')][_0x66d0('0x6')](),'end':_0x55b6e5[_0x66d0('0x83')][_0x66d0('0x6')](),'rootName':_0x55b6e5['root'][_0x66d0('0x88')]});this['_savedMetaData'][_0x66d0('0x5d')](_0x4a645b,{'roots':_0x29b063,'markers':_0x30ef98});}[_0x66d0('0x20')](_0x1ba673){this['_savedMetaData'][_0x66d0('0x66')](_0x1ba673);}['reInit'](){this[_0x66d0('0x3c')](),this[_0x66d0('0xbd')]=-0x1,this['_lastTo']=-0x1,this[_0x66d0('0x79')][_0x66d0('0xae')](),this[_0x66d0('0xb2')](this['source']);}['_reset'](){this[_0x66d0('0x9f')][_0x66d0('0xae')](),this[_0x66d0('0x7b')]['clear'](),this[_0x66d0('0xb5')][_0x66d0('0xae')](),this[_0x66d0('0x6b')][_0x66d0('0xae')](),this[_0x66d0('0x42')][_0x66d0('0xae')](),this['_baseIdsRoots'][_0x66d0('0xae')](),this['_markers'][_0x66d0('0xae')](),this[_0x66d0('0x12')]=0x1,this[_0x66d0('0x53')]=this[_0x66d0('0x12')];}['_makeIdsRoot'](_0x42356d,_0x5161cc=null){let _0x41bbde=null;_0x42356d['is'](_0x66d0('0x3d'))||(_0x41bbde=new _0x346c62(_0x42356d[_0x66d0('0x69')],{'vid_start':null===_0x5161cc?this['_revisionId']++:_0x5161cc++}));const _0x155853=[];for(const _0x299103 of _0x42356d[_0x66d0('0xc1')]())if(_0x299103['is'](_0x66d0('0x90'))){_0x155853['push'](this[_0x66d0('0x77')](_0x299103,_0x5161cc));const _0x2e2b6d=_0x155853[_0x155853['length']-0x1];null!==_0x5161cc&&(_0x5161cc=_0x2e2b6d['is'](_0x66d0('0x90'),_0x66d0('0xb4'))?_0x2e2b6d['getAttribute'](_0x66d0('0xd8'))+0x1:_0x2e2b6d[_0x66d0('0x4')](_0x66d0('0x85'))+0x1);}else for(let _0x518658=0x0;_0x518658<_0x299103[_0x66d0('0xb1')];_0x518658++)_0x155853['push'](new _0x346c62('$text',{'vid':null===_0x5161cc?this[_0x66d0('0x12')]++:_0x5161cc++}));if(_0x42356d['is'](_0x66d0('0x3d'))){const _0x3c2ac5=new _0x1750dc(_0x155853);return _0x3c2ac5[_0x66d0('0x88')]=_0x42356d[_0x66d0('0x88')],_0x3c2ac5;}return _0x41bbde[_0x66d0('0x61')](_0x66d0('0x85'),null===_0x5161cc?this['_revisionId']++:_0x5161cc++),_0x41bbde[_0x66d0('0x4f')](0x0,_0x155853),_0x41bbde;}['_calculateMetaData'](_0x54b161,_0x2a9a5a,_0x1e1bd5){this[_0x66d0('0x3c')]();const {roots:_0x53e5cb,markers:_0x4a25d6}=this['_savedMetaData'][_0x66d0('0xcb')](_0x54b161);this['_baseRoots']=new Map(_0x53e5cb);for(const [_0x103503,_0x4df96c]of this[_0x66d0('0x6b')])if(_0x66d0('0x3f')!==_0x103503&&(this[_0x66d0('0xb5')][_0x66d0('0x5d')](_0x103503,j(_0x4df96c)),_0x1e1bd5)){const _0x4b37a2=this[_0x66d0('0x12')];this[_0x66d0('0x42')][_0x66d0('0x5d')](_0x103503,this['_makeIdsRoot'](_0x4df96c)),this['_baseIdsRoots'][_0x66d0('0x5d')](_0x103503,this[_0x66d0('0x77')](_0x4df96c,_0x4b37a2));}this[_0x66d0('0x53')]=this[_0x66d0('0x12')],this[_0x66d0('0xb5')][_0x66d0('0x5d')](_0x66d0('0x3f'),j(this[_0x66d0('0x6b')]['get'](_0x66d0('0x3f')))),_0x1e1bd5&&this[_0x66d0('0x42')][_0x66d0('0x5d')](_0x66d0('0x3f'),this['_makeIdsRoot'](this[_0x66d0('0x6b')][_0x66d0('0xcb')](_0x66d0('0x3f'))));for(const [_0x1c7b4c,_0x12d51a]of _0x4a25d6){const _0x599825=this[_0x66d0('0x6b')][_0x66d0('0xcb')](_0x12d51a['rootName']),_0x52970a=this[_0x66d0('0xb5')][_0x66d0('0xcb')](_0x12d51a['rootName']),_0x9caf9c=new _0x4507e3(this['_fixPosition'](_0x12d51a[_0x66d0('0x8b')],_0x599825),this[_0x66d0('0x40')](_0x12d51a[_0x66d0('0x83')],_0x599825)),_0x3d7c40=this[_0x66d0('0x7c')](_0x9caf9c,_0x52970a);_0x599825[_0x66d0('0x3b')]['set'](_0x1c7b4c,_0x9caf9c),this[_0x66d0('0x9b')][_0x66d0('0x5d')](_0x1c7b4c,_0x3d7c40);}this[_0x66d0('0x27')](_0x54b161,_0x2a9a5a,_0x1e1bd5);}[_0x66d0('0x27')](_0x113427,_0xb3404b,_0x57ec9a){for(const _0x503cc1 of this['source']['getOperations'](_0x113427,_0xb3404b))this['_handleOperation'](_0x503cc1,_0x57ec9a);for(const _0x6aa7d1 of this[_0x66d0('0xb5')][_0x66d0('0x84')]())_0x6aa7d1[_0x66d0('0x3b')][_0x66d0('0xae')]();for(const [_0x4b5dd3,_0x44f494]of this[_0x66d0('0x9b')]){this['_diffRoots'][_0x66d0('0xcb')](_0x44f494[_0x66d0('0x15')][_0x66d0('0x88')])['markers'][_0x66d0('0x5d')](_0x4b5dd3,_0x44f494[_0x66d0('0x6')]());}this['_saveMetaData'](_0xb3404b,Array['from'](this[_0x66d0('0xb5')])['map'](([_0x52eaac,_0xaf47a0])=>[_0x52eaac,j(_0xaf47a0)]),this[_0x66d0('0x9b')]);}[_0x66d0('0xa3')](_0x2bb2d2){const _0x30f8bc=Array[_0x66d0('0xd1')](this[_0x66d0('0x79')][_0x66d0('0xce')]());_0x30f8bc['sort']((_0xf140b6,_0x4c0adc)=>_0xf140b6-_0x4c0adc),_0x30f8bc['reverse']();for(const _0x3ca593 of _0x30f8bc)if(_0x3ca593<_0x2bb2d2)return _0x3ca593;return this[_0x66d0('0x1d')](),Number[_0x66d0('0x6a')];}['_copyMarkers'](_0x3ef39f,_0x2dbb9c){const _0x42439c=Array[_0x66d0('0xd1')](_0x2dbb9c[_0x66d0('0x3b')])[_0x66d0('0x2f')](([_0x57b634,_0x463cce])=>[_0x57b634,this[_0x66d0('0x7c')](_0x463cce,_0x3ef39f)]);_0x3ef39f['markers']=new Map(_0x42439c);}[_0x66d0('0x89')](_0x4a6d96){for(const _0x4510ad of this[_0x66d0('0x9b')][_0x66d0('0x84')]()){const _0x77c37=_0x4510ad['getTransformedByOperation'](_0x4a6d96),_0xfcbe42=_0x4507e3[_0x66d0('0xd3')](_0x77c37);_0x4510ad[_0x66d0('0x8b')]=_0xfcbe42[_0x66d0('0x8b')],_0x4510ad[_0x66d0('0x83')]=_0xfcbe42[_0x66d0('0x83')];}}[_0x66d0('0x80')](_0xaf536b,_0x5ec77c){const _0x1c03c5=this[_0x66d0('0xab')](_0xaf536b,this['_diffRoots']);if(_0x66d0('0x13')!==_0xaf536b[_0x66d0('0x2')]&&(_0x1c03c5[_0x66d0('0x41')](),this[_0x66d0('0x89')](_0x1c03c5)),_0x5ec77c)switch(_0x1c03c5[_0x66d0('0x2')]){case _0x66d0('0x78'):this[_0x66d0('0xc3')](_0xaf536b);break;case _0x66d0('0x30'):case _0x66d0('0xd5'):case _0x66d0('0x0'):this['_handleMoveOperation'](_0xaf536b);break;case _0x66d0('0xa7'):this[_0x66d0('0xc9')](_0xaf536b);break;case _0x66d0('0x65'):this[_0x66d0('0x56')](_0xaf536b);break;case'marker':this['_handleMarkerOperation'](_0xaf536b);}}[_0x66d0('0xab')](_0x26ec82,_0x4c8f32){const _0x3f59f5=_0x26ec82[_0x66d0('0x6')]();return _0x3f59f5[_0x66d0('0x71')]=_0x26ec82[_0x66d0('0x71')],this[_0x66d0('0x24')](_0x3f59f5,_0x4c8f32),_0x3f59f5;}[_0x66d0('0x94')](_0x488f2f){return _0x488f2f[_0x66d0('0x2f')](_0x13cea9=>{const _0x4666af=this[_0x66d0('0x72')](_0x13cea9);return Number(_0x13cea9[_0x66d0('0x28')][_0x66d0('0x4')](_0x4666af));});}['_generateTape'](_0x3c8c9b,_0x1a8f8b){if(_0x3c8c9b['is']('element',_0x66d0('0xb4')))_0x1a8f8b[_0x66d0('0x7')]({'item':_0x3c8c9b,'type':_0x66d0('0x4a')});else{_0x3c8c9b['is'](_0x66d0('0x90'))&&_0x1a8f8b['push']({'item':_0x3c8c9b,'type':_0x66d0('0x48')});for(const _0x4e299c of _0x3c8c9b[_0x66d0('0xc1')]())this['_generateTape'](_0x4e299c,_0x1a8f8b);_0x3c8c9b['is']('element')&&_0x1a8f8b[_0x66d0('0x7')]({'item':_0x3c8c9b,'type':_0x66d0('0x9a')});}return _0x1a8f8b;}['_getState'](){const _0x293ab4=this['editor'][_0x66d0('0x7a')][_0x66d0('0x81')]['getRootNames'](),_0xe6e8b0=new Map(this[_0x66d0('0x9f')]),_0x12fe58=new Map(_0xe6e8b0),_0x2bdb51=new Map(),_0x294db9={'insertions':{},'deletions':{}},_0x1699fc={'insertions':{},'deletions':{}},_0x1f673d=new Map();for(const _0x46ab32 of _0x293ab4){const _0x5e6eb8=this[_0x66d0('0xb5')][_0x66d0('0xcb')](_0x46ab32),_0x277da9=this['_baseRoots']['get'](_0x46ab32);_0x294db9[_0x66d0('0xc7')][_0x46ab32]=j(_0x5e6eb8),_0x294db9[_0x66d0('0x6c')][_0x46ab32]=j(_0x277da9),this[_0x66d0('0x82')](_0x294db9[_0x66d0('0x6c')][_0x46ab32],_0x277da9),this['_copyMarkers'](_0x294db9['insertions'][_0x46ab32],_0x5e6eb8),_0x1699fc[_0x66d0('0xc7')][_0x46ab32]=this[_0x66d0('0x57')](this[_0x66d0('0x42')][_0x66d0('0xcb')](_0x46ab32),[]),_0x1699fc[_0x66d0('0x6c')][_0x46ab32]=this[_0x66d0('0x57')](this['_baseIdsRoots']['get'](_0x46ab32),[]);}for(const _0x309b2e of _0x293ab4){const _0x2992b5=_0x1699fc['insertions'][_0x309b2e];for(const _0x4078d6 of _0x2992b5){const _0x6af321=this[_0x66d0('0x72')](_0x4078d6),_0x52e9d9=_0x4078d6[_0x66d0('0x28')]['getAttribute'](_0x6af321);_0x12fe58[_0x66d0('0x66')](_0x52e9d9),_0x52e9d9>=this['_startingRevisionId']&&_0x2bdb51['set'](_0x52e9d9,_0xe6e8b0[_0x66d0('0xcb')](_0x52e9d9));}}for(const _0x2f3aad of _0x293ab4){const _0x473529=_0x1699fc['insertions'][_0x2f3aad],_0x326ac8=this[_0x66d0('0x94')](_0x1699fc[_0x66d0('0x6c')][_0x2f3aad]);let _0x4e64d7=0x0;for(const _0xbbd258 of _0x473529){const _0x3b54b8=this[_0x66d0('0x72')](_0xbbd258),_0x3b8a78=_0xbbd258[_0x66d0('0x28')][_0x66d0('0x4')](_0x3b54b8);if(!_0x2bdb51['has'](_0x3b8a78)&&!_0x1f673d[_0x66d0('0xa8')](_0x3b8a78)){if(_0x12fe58['has'](_0x3b8a78))_0x4e64d7++;else{if(_0x3b8a78!=_0x326ac8[_0x4e64d7]){const _0x57bf64=_0xe6e8b0['get'](_0x3b8a78)||_0xe6e8b0[_0x66d0('0xcb')](_0x326ac8[_0x4e64d7]);for(;_0x3b8a78!=_0x326ac8[_0x4e64d7];)_0x12fe58[_0x66d0('0xa8')](_0x326ac8[_0x4e64d7])||(_0x1f673d[_0x66d0('0x5d')](_0x326ac8[_0x4e64d7],_0x57bf64),_0xe6e8b0[_0x66d0('0x5d')](_0x326ac8[_0x4e64d7],_0x57bf64)),_0x4e64d7++;}_0x4e64d7++;}}}}for(const _0xfdfea0 of _0x293ab4){const _0x522fdd=_0x1699fc['insertions'][_0xfdfea0];for(const _0x4002a5 of _0x522fdd){const _0x316be=this['_getVidAttributeName'](_0x4002a5),_0x31e309=_0x4002a5[_0x66d0('0x28')]['getAttribute'](_0x316be);if(_0x1f673d[_0x66d0('0xa8')](_0x31e309)){const _0x458e33=_0x1f673d[_0x66d0('0xcb')](_0x31e309);_0x12fe58['has'](_0x31e309)||_0x12fe58[_0x66d0('0x5d')](_0x31e309,{..._0x458e33}),_0x2bdb51[_0x66d0('0x5d')](_0x31e309,{..._0x458e33});}}}for(const _0xa531d7 of _0x12fe58['keys']())_0xa531d7>=this['_startingRevisionId']&&_0x12fe58['delete'](_0xa531d7);const _0x2afcf6=new Map();for(const _0x1c5406 of _0x293ab4){let _0x59aa05=_0x1699fc[_0x66d0('0xc7')][_0x1c5406];for(const _0x59ba8c of _0x59aa05)if(_0x59ba8c[_0x66d0('0x28')]['is'](_0x66d0('0x90'),_0x66d0('0x70'))){const _0x13b949=this[_0x66d0('0x72')](_0x59ba8c),_0x539df1=_0x59ba8c[_0x66d0('0x28')]['getAttribute'](_0x13b949);if(_0x2bdb51[_0x66d0('0xa8')](_0x539df1)){const _0x3d3aa6=_0x59ba8c[_0x66d0('0x28')][_0x66d0('0x93')]['parent'][_0x66d0('0x4')](_0x66d0('0x37')),_0x95cca9=_0x2afcf6[_0x66d0('0xcb')](_0x3d3aa6)||new Set();_0x95cca9[_0x66d0('0xc5')](_0x2bdb51[_0x66d0('0xcb')](_0x539df1)[_0x66d0('0xd')]),_0x2afcf6['set'](_0x3d3aa6,_0x95cca9);}}_0x59aa05=_0x1699fc[_0x66d0('0x6c')][_0x1c5406];for(const _0x581284 of _0x59aa05)if(_0x581284[_0x66d0('0x28')]['is'](_0x66d0('0x90'),_0x66d0('0x70'))){const _0x1c83d5=this[_0x66d0('0x72')](_0x581284),_0x380d51=_0x581284[_0x66d0('0x28')]['getAttribute'](_0x1c83d5);if(_0x12fe58['has'](_0x380d51)){const _0x3fbf7b=_0x581284[_0x66d0('0x28')]['parent']['parent'][_0x66d0('0x4')](_0x66d0('0x37')),_0x5c7cd7=_0x2afcf6['get'](_0x3fbf7b)||new Set();_0x5c7cd7['add'](_0x12fe58[_0x66d0('0xcb')](_0x380d51)[_0x66d0('0xd')]),_0x2afcf6[_0x66d0('0x5d')](_0x3fbf7b,_0x5c7cd7);}}for(const _0xb2086e of _0x2afcf6[_0x66d0('0xce')]())(_0x2bdb51[_0x66d0('0xa8')](_0xb2086e)||_0x12fe58['has'](_0xb2086e))&&_0x2afcf6[_0x66d0('0x66')](_0xb2086e);}for(const _0x351f91 of _0x293ab4){const _0x243f14=_0x1699fc[_0x66d0('0xc7')][_0x351f91];let _0x252141=null,_0x5675a5=null;for(const _0x3e1d8c of _0x243f14){const _0x1413b9=this[_0x66d0('0x72')](_0x3e1d8c),_0x133de2=_0x3e1d8c[_0x66d0('0x28')][_0x66d0('0x4')](_0x1413b9),_0x305da9=_0x2afcf6[_0x66d0('0xcb')](_0x133de2);_0x305da9&&'elementStart'==_0x3e1d8c[_0x66d0('0x2')]&&(_0x252141=Array[_0x66d0('0xd1')](_0x305da9)[0x0],_0x5675a5=_0x3e1d8c[_0x66d0('0x28')][_0x66d0('0x4')](_0x66d0('0x85'))),_0x252141&&(_0x12fe58[_0x66d0('0x5d')](_0x133de2,{'userId':_0x252141}),_0x2bdb51[_0x66d0('0x5d')](_0x133de2,{'userId':_0x252141})),_0x133de2==_0x5675a5&&(_0x252141=null,_0x5675a5=null);}}const _0x21d4ac={},_0x35d7c7=new Set();for(const _0x18cfd6 of _0x293ab4){const _0xef7a54=_0x294db9[_0x66d0('0x6c')][_0x18cfd6],_0x2ecbc6=_0x294db9[_0x66d0('0xc7')][_0x18cfd6];for(const {userId:_0x3c462a}of this[_0x66d0('0x7b')][_0x66d0('0x84')]())null!==_0x3c462a&&_0x35d7c7[_0x66d0('0xc5')](_0x3c462a);this[_0x66d0('0x14')](_0x2ecbc6,_0x1699fc[_0x66d0('0xc7')][_0x18cfd6],_0x2bdb51,'insertion',_0x35d7c7),this[_0x66d0('0x14')](_0xef7a54,_0x1699fc[_0x66d0('0x6c')][_0x18cfd6],_0x12fe58,'deletion',_0x35d7c7),_0x21d4ac[_0x18cfd6]={'insertions':this[_0x66d0('0x5e')](_0x2ecbc6),'deletions':this[_0x66d0('0x5e')](_0xef7a54)};}return{'diffData':_0x21d4ac,'authorsIds':Array['from'](_0x35d7c7)};}['_processRootBeforeSave'](_0x1e8b92){for(const [,_0xa06b96]of _0x1e8b92[_0x66d0('0x3b')]){const _0x5b982e=_0xa06b96[_0x66d0('0x8b')][_0x66d0('0x1e')]()[_0x66d0('0xb0')](_0x320c09=>_0x66d0('0x70')==_0x320c09[_0x66d0('0x69')]);for(const _0x5c4873 of _0x5b982e)0x1==_0x5c4873['childCount']&&_0x5c4873[_0x66d0('0x18')](0x0)['is'](_0x66d0('0x90'),_0x66d0('0xa4'))&&_0x5c4873[_0x66d0('0x18')](0x0)['_setAttribute'](_0x66d0('0xc8'),!0x0);}}['_prepareViewToSave'](_0x5a83d7){this['_processRootBeforeSave'](_0x5a83d7);const _0x5542f8=this[_0x66d0('0x5a')][_0x66d0('0xa')][_0x66d0('0x45')](_0x5a83d7,{}),_0x51025d=Array['from'](_0x5542f8['getChildren']())[_0x66d0('0x2f')](_0x5e7f5a=>this[_0x66d0('0xbf')](_0x5e7f5a));return JSON[_0x66d0('0xbb')](_0x51025d);}[_0x66d0('0xbf')](_0x1c2546){if(_0x1c2546['is']('text'))return _0x1c2546[_0x66d0('0xa')];return{'type':Object[_0x66d0('0xce')](T)[_0x66d0('0x36')](_0x5beb10=>_0x1c2546 instanceof T[_0x5beb10]),'name':_0x1c2546['name'],'attributes':Array[_0x66d0('0xd1')](_0x1c2546[_0x66d0('0x22')]()),'children':Array[_0x66d0('0xd1')](_0x1c2546[_0x66d0('0xc1')]())['map'](_0xe58a3d=>this[_0x66d0('0xbf')](_0xe58a3d))};}[_0x66d0('0x14')](_0x4b3463,_0x41e93a,_0x152359,_0x5e8cc9,_0x2a56a2){let _0x340a02=null,_0x3c7fd9=null,_0x4437c8=0x0;const _0x2440d9=this[_0x66d0('0x5a')][_0x66d0('0x7a')];for(let _0x532562=0x0;_0x532562<_0x41e93a[_0x66d0('0x5b')];_0x532562++){const _0x50b20f=this['_getVidAttributeName'](_0x41e93a[_0x532562]),_0x27fe6b=_0x41e93a[_0x532562][_0x66d0('0x28')][_0x66d0('0x4')](_0x50b20f),_0x1f2882=_0x152359['get'](_0x27fe6b),_0x580841=_0x532562==_0x41e93a[_0x66d0('0x5b')]-0x1;(!_0x340a02&&_0x1f2882&&(_0x340a02=_0x1f2882,_0x3c7fd9=_0x41e93a[_0x532562]),_0x340a02&&(!_0x1f2882||_0x1f2882[_0x66d0('0xd')]!=_0x340a02[_0x66d0('0xd')]))&&(_0xdf47b8(_0x1f2882,B(_0x3c7fd9,_0x4b3463,_0x2440d9),B(_0x41e93a[_0x532562],_0x4b3463,_0x2440d9)),_0x340a02=_0x1f2882||null,_0x3c7fd9=_0x1f2882?_0x41e93a[_0x532562]:null),_0x340a02&&_0x580841&&_0xdf47b8(_0x1f2882,B(_0x3c7fd9,_0x4b3463,_0x2440d9),J(_0x41e93a[_0x532562],_0x4b3463,_0x2440d9));}function _0xdf47b8(_0x2ae1a1,_0x1fd6f2,_0x5bf325){const _0xa68620=_0x340a02[_0x66d0('0xd')],_0x3c8d66=_0x66d0('0x75')+_0x5e8cc9+':'+_0xa68620+':'+_0x4437c8++,_0xc8abc1=_0x2440d9['createRange'](_0x1fd6f2,_0x5bf325);_0x4b3463['markers'][_0x66d0('0x5d')](_0x3c8d66,_0xc8abc1),null!==_0xa68620&&_0x2a56a2['add'](_0xa68620);}}[_0x66d0('0x72')](_0x21470d){switch(_0x21470d[_0x66d0('0x2')]){case'elementStart':return _0x66d0('0x37');case _0x66d0('0x9a'):return'vid_end';default:return'vid';}}[_0x66d0('0x24')](_0x5b7260,_0x265cb5){_0x5b7260[_0x66d0('0x19')]=null;for(const _0x590404 in _0x5b7260){if(_0x5b7260[_0x590404]instanceof _0xe90ba9){const _0x5315ee=_0x265cb5['get'](_0x5b7260[_0x590404]['root'][_0x66d0('0x88')]);_0x5b7260[_0x590404]=this[_0x66d0('0x40')](_0x5b7260[_0x590404],_0x5315ee);}if(_0x5b7260[_0x590404]instanceof _0x4507e3){const _0x26434c=_0x265cb5[_0x66d0('0xcb')](_0x5b7260[_0x590404][_0x66d0('0x15')][_0x66d0('0x88')]);_0x5b7260[_0x590404]=this[_0x66d0('0x7c')](_0x5b7260[_0x590404],_0x26434c);}}_0x5b7260[_0x66d0('0x15')]&&(_0x5b7260['root']=_0x265cb5['get'](_0x5b7260[_0x66d0('0x15')][_0x66d0('0x88')]));}[_0x66d0('0x7c')](_0x4d9ab0,_0x42c53d){return this['editor'][_0x66d0('0x7a')][_0x66d0('0xbc')](this['_fixPosition'](_0x4d9ab0[_0x66d0('0x8b')],_0x42c53d),this[_0x66d0('0x40')](_0x4d9ab0[_0x66d0('0x83')],_0x42c53d));}[_0x66d0('0x40')](_0x29fbf0,_0xb76c9b){return this[_0x66d0('0x5a')][_0x66d0('0x7a')]['createPositionFromPath'](_0xb76c9b,_0x29fbf0['path'],_0x29fbf0['stickiness']);}[_0x66d0('0xc3')](_0xb92be){const _0x4e7abd=this[_0x66d0('0x42')][_0x66d0('0xcb')](_0xb92be[_0x66d0('0x23')][_0x66d0('0x15')][_0x66d0('0x88')]),_0x202a71=this[_0x66d0('0x40')](_0xb92be['position'],_0x4e7abd),_0x412fe8=null===_0xb92be['_authorId']?null:_0xb92be[_0x66d0('0x71')]||this[_0x66d0('0x5a')][_0x66d0('0x7d')][_0x66d0('0xcb')](_0x66d0('0x32'))['me']['id'],_0x251622=_0x202a71[_0x66d0('0x93')],_0x25e627=this[_0x66d0('0x12')],_0x17d7ca=[];for(const _0x3605d6 of _0xb92be['nodes'])if(_0x3605d6['is'](_0x66d0('0x90')))_0x17d7ca[_0x66d0('0x7')](this['_makeIdsRoot'](_0x3605d6));else for(let _0x388cd6=0x0;_0x388cd6<_0x3605d6['offsetSize'];_0x388cd6++)_0x17d7ca[_0x66d0('0x7')](new _0x346c62(_0x66d0('0xb4'),{'vid':this[_0x66d0('0x12')]++}));const _0x18d23a=this['_revisionId'];for(let _0x34faf1=_0x25e627;_0x34faf1<_0x18d23a;_0x34faf1++)this['_touched'][_0x66d0('0x5d')](_0x34faf1,{'userId':_0x412fe8});_0x251622[_0x66d0('0x4f')](_0x202a71[_0x66d0('0x49')],_0x17d7ca);}[_0x66d0('0x95')](_0x582e33){(_0x582e33=this[_0x66d0('0xab')](_0x582e33,this[_0x66d0('0x42')]))[_0x66d0('0x41')]();const _0x1d21b9=null===_0x582e33[_0x66d0('0x71')]?null:_0x582e33[_0x66d0('0x71')]||this[_0x66d0('0x5a')]['plugins']['get'](_0x66d0('0x32'))['me']['id'],_0x349dba=_0x582e33[_0x66d0('0x2a')](),_0x36dd08=_0x349dba['parent'],_0x4a2f48=_0x349dba[_0x66d0('0x49')];!function _0x5f3014(_0x476bf8,_0x389421,_0x43cd7b,_0x6e260d){for(let _0x10c17=_0x43cd7b;_0x10c17<_0x6e260d;_0x10c17++){const _0x212531=_0x389421[_0x66d0('0x18')](_0x10c17);_0x212531['is'](_0x66d0('0x90'),_0x66d0('0xb4'))?_0x476bf8[_0x66d0('0x5d')](_0x212531['getAttribute'](_0x66d0('0xd8')),{'userId':_0x1d21b9}):(_0x476bf8[_0x66d0('0x5d')](_0x212531[_0x66d0('0x4')]('vid_start'),{'userId':_0x1d21b9}),_0x5f3014(_0x476bf8,_0x212531,0x0,_0x212531[_0x66d0('0x50')]),_0x476bf8[_0x66d0('0x5d')](_0x212531[_0x66d0('0x4')](_0x66d0('0x85')),{'userId':_0x1d21b9}));}}(this[_0x66d0('0x9f')],_0x36dd08,_0x4a2f48,_0x4a2f48+_0x582e33['howMany']);}[_0x66d0('0xc9')](_0x1677f6){const _0x52727c=null===(_0x1677f6=this[_0x66d0('0xab')](_0x1677f6,this[_0x66d0('0x42')]))[_0x66d0('0x71')]?null:_0x1677f6[_0x66d0('0x71')]||this[_0x66d0('0x5a')][_0x66d0('0x7d')][_0x66d0('0xcb')](_0x66d0('0x32'))['me']['id'],_0x32d13e=_0x1677f6[_0x66d0('0x74')]['parent'],_0x38df43=_0x1677f6['sourcePosition'][_0x66d0('0x93')],_0x28b287=_0x32d13e[_0x66d0('0x4')](_0x66d0('0x85')),_0x583f4e=_0x38df43[_0x66d0('0x4')](_0x66d0('0x37'));_0x32d13e[_0x66d0('0x61')](_0x66d0('0x85'),_0x38df43[_0x66d0('0x4')](_0x66d0('0x85'))),_0x38df43[_0x66d0('0x61')]('vid_end',_0x28b287),this['_touched']['set'](_0x583f4e,{'userId':_0x52727c}),this[_0x66d0('0x9f')][_0x66d0('0x5d')](_0x28b287,{'userId':_0x52727c}),_0x1677f6[_0x66d0('0x41')]();}[_0x66d0('0x56')](_0x480c6c){const _0x143495=null===(_0x480c6c=this[_0x66d0('0xab')](_0x480c6c,this[_0x66d0('0x42')]))[_0x66d0('0x71')]?null:_0x480c6c[_0x66d0('0x71')]||this[_0x66d0('0x5a')][_0x66d0('0x7d')][_0x66d0('0xcb')]('Users')['me']['id'],_0x38c7=_0x480c6c[_0x66d0('0xa0')],_0xaed92a=_0x480c6c[_0x66d0('0x5f')][_0x66d0('0x93')];_0x480c6c[_0x66d0('0x41')]();const _0x203d89=_0xaed92a[_0x66d0('0x4')]('vid_end'),_0x3ce17f=_0x480c6c[_0x66d0('0xd7')]['nodeAfter'];if(_0x38c7){const _0x59ef0c=_0x3ce17f[_0x66d0('0x4')]('vid_end'),_0x2e1505=_0xaed92a[_0x66d0('0x4')](_0x66d0('0x85'));_0xaed92a[_0x66d0('0x61')](_0x66d0('0x85'),_0x59ef0c),_0x3ce17f[_0x66d0('0x61')](_0x66d0('0x85'),_0x2e1505),this['_touched'][_0x66d0('0x5d')](_0xaed92a[_0x66d0('0x4')](_0x66d0('0x85')),{'userId':_0x143495}),this[_0x66d0('0x9f')][_0x66d0('0x5d')](_0x3ce17f[_0x66d0('0x4')](_0x66d0('0x37')),{'userId':_0x143495});}else{const _0x4de262=this[_0x66d0('0x12')]++,_0x165c5f=this[_0x66d0('0x12')]++;_0xaed92a[_0x66d0('0x61')]('vid_end',_0x4de262),_0x3ce17f[_0x66d0('0x61')]('vid_start',_0x165c5f),_0x3ce17f[_0x66d0('0x61')](_0x66d0('0x85'),_0x203d89),this[_0x66d0('0x9f')][_0x66d0('0x5d')](_0x4de262,{'userId':_0x143495}),this[_0x66d0('0x9f')][_0x66d0('0x5d')](_0x165c5f,{'userId':_0x143495});}}['_handleMarkerOperation'](_0x415212){if(!_0x415212[_0x66d0('0xd6')])return;const _0x776428=(_0x415212=this[_0x66d0('0xab')](_0x415212,this[_0x66d0('0xb5')]))[_0x66d0('0x10')]?_0x415212[_0x66d0('0x10')][_0x66d0('0x15')]:null,_0x72cd66=_0x415212[_0x66d0('0x87')]?_0x415212['newRange'][_0x66d0('0x15')]:null;_0x776428&&this[_0x66d0('0x9b')][_0x66d0('0x66')](_0x415212[_0x66d0('0x69')]),_0x72cd66&&this[_0x66d0('0x9b')][_0x66d0('0x5d')](_0x415212[_0x66d0('0x69')],_0x415212[_0x66d0('0x87')]['clone']());const _0x4a8d8f=null===_0x415212[_0x66d0('0x71')]?null:_0x415212[_0x66d0('0x71')]||this[_0x66d0('0x5a')]['plugins'][_0x66d0('0xcb')](_0x66d0('0x32'))['me']['id'],_0x33ac79=_0x415212[_0x66d0('0x69')];if(!this[_0x66d0('0x7b')][_0x66d0('0xa8')](_0x33ac79))return void this[_0x66d0('0x7b')][_0x66d0('0x5d')](_0x33ac79,{'range':_0x415212['oldRange'],'userId':_0x4a8d8f});const _0x377f89=this[_0x66d0('0x7b')][_0x66d0('0xcb')](_0x33ac79),_0xafb364=_0x377f89[_0x66d0('0x54')],_0x293f3c=_0x415212[_0x66d0('0x87')];null==_0xafb364&&null==_0x293f3c||_0xafb364&&_0x293f3c&&_0xafb364[_0x66d0('0xb8')](_0x293f3c)?this[_0x66d0('0x7b')][_0x66d0('0x66')](_0x415212[_0x66d0('0x69')]):_0x377f89[_0x66d0('0xd')]=_0x4a8d8f;}}function j(_0x4b3ed4){const _0x270991=new _0x1750dc();_0x270991['rootName']=_0x4b3ed4[_0x66d0('0x88')];for(const _0x478ca6 of _0x4b3ed4[_0x66d0('0xc1')]()){const _0x49f8f9=_0x478ca6[_0x66d0('0x8f')](!0x0);_0x270991[_0x66d0('0xb')](_0x49f8f9);}return _0x270991;}function B(_0x36044d,_0x306b87,_0x495b25){const _0x7e574c=_0x66d0('0x9a')==_0x36044d[_0x66d0('0x2')]?_0x495b25[_0x66d0('0x2b')](_0x36044d[_0x66d0('0x28')],_0x66d0('0x83')):_0x495b25['createPositionBefore'](_0x36044d[_0x66d0('0x28')]);return _0x7e574c[_0x66d0('0x15')]=_0x306b87,_0x7e574c;}function J(_0xd2c6f4,_0x3fcb04,_0x54413b){const _0x4737c7=_0x66d0('0x48')==_0xd2c6f4[_0x66d0('0x2')]?_0x54413b[_0x66d0('0x2b')](_0xd2c6f4[_0x66d0('0x28')],0x0):_0x54413b[_0x66d0('0xd0')](_0xd2c6f4[_0x66d0('0x28')]);return _0x4737c7[_0x66d0('0x15')]=_0x3fcb04,_0x4737c7;}
23
+ const _0x1e70=['_lastFrom','diffData','getOperations','clone','dataDowncast','createPositionAfter','_authorId','size','vid_start','getRootNames','name','_findInsertionIndex','reverse','from','elementEnd','_revisionDataBuilder','keys','init','_copyMarkers','_cloneOperation','_saveEmptyMetaData','element','isPendingUpdate','map','elementStart','finally','_operations','RevisionsRepository','history','processor','children','version','_getFromVersion','updateRevisions','editor','marker','offset','_startingRevisionId','_makeRevision','_createCurrentRevision','_getPreviousFrom','_idsRoots','source','RealTimeCollaborationClient','max','_update','_calculateMetaData','userId','_clone','_makeModelFromViewString','createPositionBefore','_pendingAction','_transformMarkers','root','baseVersion','_handleMarkerOperation','_getBaseVids','_source','plugins','resolve','type','push','_fixOperation','getLatestVersion','buildRevisionData','getAncestors','collaboration.channelId','remove','oldRange','_handleMoveOperation','vid_end','start','Users','_isInit','getOperation','getWalker','_insertChild','getTransformedByOperation','documentFragment','isEqual','_makeIdsRoot','newRange','_appendChild','_isPendingUpdate','split','NEGATIVE_INFINITY','Initial\x20revision','_revisionId','getRange','getRevision','define','_handleMergeOperation','sourcePosition','add','getAttribute','roots','targetPosition','_savedMetaData','_getState','filter','sendBufferedUpdates','_execute','update','toView','creatorId','getNodeByPath','markerToData','upcast','_markers','set','_saveMetaData','_processRootBeforeSave','_continueCurrentRevision','revision','saveRevision','ready','_startingVersion','currentRevision','_rootNames','Empty\x20document','getChildren','clear','_bufferedUpdates','_touchedMarkers','hasContent','getCurrentRevisionId','_applyOperations','dataToMarker','loadState','trim','data-revision-','initial','_handleInsertOperation','requires','createRevision','creator','getUser','isReady','data','getChild','has','conversion','authorsIds','offsetSize','PendingActions','previousPosition','_getVidAttributeName','values','_handleOperation','locale','startsWith','position','range','_fixRange','_lastTo','for','adapter','insertions','paragraph','rootName','delete','get','stringify','_getViewJson','pluginName','$graveyard','length','createdAt','initialData','_loadState','_replaceEditorDataWithRevisionData','createPositionAt','getRoot','getTime','toData','includes','_addPendingAction','editor-initial-data-replaced-with-revision-data','_loadRevisionData','document','markers','_removeMetaData','end','path','_handleSplitOperation','addRevisionData','insertionPosition','_fixPosition','keepParagraph','sort','_reset','_diffRoots','_initialRevisionId','setRevisionData','_setConversion','repository','vid','authors','insert','splitPosition','find','_removePendingAction','_setAttribute','fromVersion','$text','view','_bufferUpdate','merge','_removeRevisionMarkers','forEach','getData','string','slice','_baseRoots','_prepareViewToSave','toModel','reinsert','toVersion','editing','item','tableCell','_generateTape','deletions','revisionHistory.resumeUnsavedRevision','revision-start','createRangeIn','getMovedRangeStart','setSource','getRevisions','_baseIdsRoots','_touched','then','revision:','_markChanges','_loadedStateData','model','attributes','createPositionFromPath','getRevisionDocumentData','parent','config','childCount','graveyardPosition'];(function(_0x27e214,_0x1e7002){const _0x198a51=function(_0x2efb81){while(--_0x2efb81){_0x27e214['push'](_0x27e214['shift']());}};_0x198a51(++_0x1e7002);}(_0x1e70,0x10b));const _0x198a=function(_0x27e214,_0x1e7002){_0x27e214=_0x27e214-0x0;let _0x198a51=_0x1e70[_0x27e214];return _0x198a51;};import{Users as _0x10cad1}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x4f0909,PendingActions as _0x4e5575}from'ckeditor5/src/core';import{logWarning as _0x46de1d,uid as _0x5e2cce}from'ckeditor5/src/utils';import{Position as _0x56f436,Range as _0x2cb92c,Element as _0xb89447,DocumentFragment as _0x2d8a24,ViewText as _0x44defc,ViewElement as _0x40dd9f,ViewContainerElement as _0x48a158,ViewAttributeElement as _0x219339,ViewEmptyElement as _0x4b838d,ViewRawElement as _0x1e3d4f,ViewUIElement as _0xd7b8e2,ViewDocumentFragment as _0x87dfb3}from'ckeditor5/src/engine';import _0x3a8a97 from'./revisionsrepository';import{getTranslation as _0x4445bc}from'./utils/common-translations';const T={'c':_0x48a158,'a':_0x219339,'e':_0x4b838d,'r':_0x1e3d4f,'u':_0xd7b8e2};export default class l extends _0x4f0909{static get[_0x198a('0x8c')](){return'RevisionTracker';}static get[_0x198a('0x6d')](){return[_0x10cad1,_0x3a8a97,_0x4e5575];}constructor(..._0x3a7980){super(..._0x3a7980),this['adapter']=null,this[_0x198a('0x55')](_0x198a('0x71'),!0x1),this[_0x198a('0x55')]('isEnabled',!0x0),this['currentRevision']=null;const _0xe76eeb=_0x5e2cce();this[_0x198a('0x21')]={'history':this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')]['history'],'getLatestVersion':()=>Promise[_0x198a('0x23')](this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0x7')]),'getCurrentRevisionId':()=>_0xe76eeb},this['_revisionDataBuilder']=new j(this[_0x198a('0xa')]),this[_0x198a('0xa8')]=this['editor'][_0x198a('0xd8')][_0x198a('0x89')](_0x198a('0x2a'))||_0x198a('0x6b'),this[_0x198a('0x55')](_0x198a('0xf1'),!0x1),this[_0x198a('0x62')]=new Map(),this[_0x198a('0xa')][_0x198a('0xd8')][_0x198a('0x42')](_0x198a('0xc7'),!0x0),this[_0x198a('0xd2')]=null,this[_0x198a('0xa')][_0x198a('0x75')][_0x198a('0x83')](_0x198a('0x53'))[_0x198a('0x67')]({'view':_0x198a('0x59')});}[_0x198a('0xec')](){this[_0x198a('0xab')]=this[_0x198a('0xa')]['plugins'][_0x198a('0x89')](_0x198a('0x3')),this[_0x198a('0xaa')](),this[_0x198a('0xa')]['data']['on'](_0x198a('0x5b'),()=>{const _0x23b5b0=this[_0x198a('0xab')][_0x198a('0x41')](0x0),_0x3c53a1=_0x23b5b0&&null===_0x23b5b0[_0x198a('0x6f')]?_0x23b5b0:null;if(this['_continueCurrentRevision']=!!_0x3c53a1&&this[_0x198a('0xa')][_0x198a('0xd8')]['get']('revisionHistory.resumeUnsavedRevision'),this[_0x198a('0xa')][_0x198a('0x22')][_0x198a('0x74')](_0x198a('0x13'))){const _0x14530a=this[_0x198a('0x21')]['getCurrentRevisionId'](),_0x3c7b83=this[_0x198a('0xab')][_0x198a('0x41')](_0x14530a);if(_0x3c7b83)this[_0x198a('0x5c')]=_0x3c7b83[_0x198a('0xb3')],this[_0x198a('0x58')]=!0x1;else{const _0x9b7fc2=this[_0x198a('0x21')][_0x198a('0x4')][_0x198a('0x2')][_0x198a('0xb0')](_0x2d8bb7=>!_0x2d8bb7[_0x198a('0x31')]),_0x4d5f22=_0x9b7fc2?_0x9b7fc2[_0x198a('0x1e')]:this[_0x198a('0x21')]['history'][_0x198a('0x7')];_0x23b5b0?(_0x23b5b0[_0x198a('0xc1')]<_0x4d5f22&&_0x23b5b0[_0x198a('0x15')]({'toVersion':_0x4d5f22}),this[_0x198a('0x58')]?(this[_0x198a('0x21')][_0x198a('0x65')]=()=>_0x3c53a1['id'],this['_startingVersion']=_0x3c53a1['fromVersion']):(this[_0x198a('0x5c')]=_0x23b5b0[_0x198a('0xc1')],this[_0x198a('0x58')]=!0x1)):(this[_0x198a('0x5c')]=_0x4d5f22,this[_0x198a('0x58')]=!0x1);}}else _0x3c53a1&&(this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0x4')][_0x198a('0x7')]=Math[_0x198a('0x14')](_0x3c53a1[_0x198a('0xc1')],this[_0x198a('0xa')]['model'][_0x198a('0x9b')][_0x198a('0x4')][_0x198a('0x7')]),_0x3c53a1[_0x198a('0xb3')]===_0x3c53a1[_0x198a('0xc1')]?(0x0!==_0x3c53a1['fromVersion']&&(this[_0x198a('0x21')][_0x198a('0x65')]=()=>_0x3c53a1['id']),this['_continueCurrentRevision']=!0x1):this[_0x198a('0x58')]&&(this[_0x198a('0x21')]['getCurrentRevisionId']=()=>_0x3c53a1['id'],this['_startingVersion']=_0x3c53a1[_0x198a('0xb3')])),this[_0x198a('0x58')]||(this[_0x198a('0x5c')]=this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0x7')]);this[_0x198a('0xea')][_0x198a('0xec')](this['_source'][_0x198a('0x4')]),this['_createInitialRevision'](this[_0x198a('0x5c')]),this[_0x198a('0xf')](this[_0x198a('0x5c')]),this[_0x198a('0x84')]&&this['sendBufferedUpdates']();}),this['bind'](_0x198a('0x71'))['to'](this,_0x198a('0x3b'),_0x47192e=>!_0x47192e);}async['afterInit'](){if(this[_0x198a('0xab')][_0x198a('0x8e')]>0x0){const _0x268060=this[_0x198a('0xab')][_0x198a('0x41')](0x0),_0x2f2542=await this[_0x198a('0xd6')](_0x268060);this[_0x198a('0x92')](_0x2f2542);}}[_0x198a('0xcb')](_0x2ee91a){this['_source']=_0x2ee91a;}async[_0x198a('0x4e')](){const _0x5a51ee=await this[_0x198a('0x21')][_0x198a('0x27')]();if(_0x5a51ee>this[_0x198a('0x5d')][_0x198a('0xc1')]){await this[_0x198a('0x91')]();const _0x3fc894=this[_0x198a('0x28')]({'revision':this[_0x198a('0x5d')],'to':_0x5a51ee});_0x3fc894['authors']=_0x3fc894[_0x198a('0x76')][_0x198a('0xf2')](_0xf2c361=>this[_0x198a('0xa')][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))[_0x198a('0x70')](_0xf2c361)),this[_0x198a('0x5d')]['_update'](_0x3fc894);}}async[_0x198a('0x91')](){this[_0x198a('0x58')]&&!this[_0x198a('0xd2')]&&(await this['_loadRevisionData'](this[_0x198a('0x5d')]),this[_0x198a('0xea')][_0x198a('0x68')](this[_0x198a('0x5d')]),this[_0x198a('0xd2')]={'fromVersion':this[_0x198a('0x5d')][_0x198a('0xb3')],'authors':this[_0x198a('0x5d')][_0x198a('0xad')]['slice']()});}async[_0x198a('0x5a')](_0x153cb7={},_0x542ced=null){const _0x4d72a3=[];await this[_0x198a('0x91')](),this[_0x198a('0x58')]=!0x1,_0x542ced>this[_0x198a('0x5d')][_0x198a('0xc1')]&&(_0x542ced=null),null===_0x542ced&&(_0x542ced=await this[_0x198a('0x21')][_0x198a('0x27')]());const _0xe1d9d0=this['_getFromVersion'](_0x542ced),_0x55566e=this['buildRevisionData']({'from':_0xe1d9d0,'to':_0x542ced});if(this[_0x198a('0x5d')]['toVersion']<_0x542ced){const _0x5393a2=this[_0x198a('0x28')]({'revision':this['currentRevision'],'from':_0x542ced,'to':_0x542ced});_0x5393a2['authors']=[],_0x5393a2[_0x198a('0x76')]=[],_0x5393a2['id']=this[_0x198a('0x5d')]['id'],this[_0x198a('0x5d')][_0x198a('0x15')](_0x5393a2,!0x0),delete _0x5393a2['authors'],_0x4d72a3[_0x198a('0x25')](_0x5393a2);}_0x153cb7[_0x198a('0x50')]=this[_0x198a('0xa')][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x153cb7[_0x198a('0xe5')]=_0x153cb7['name']||null,_0x153cb7['id']=_0x153cb7['id']||_0x5e2cce(),_0x153cb7={..._0x153cb7,..._0x55566e};const _0x154d4c=this['addRevisionData'](_0x153cb7);_0x4d72a3[_0x198a('0x25')](_0x153cb7);const _0xf5eabc=this['repository']['getIndex'](_0x154d4c);if(0x0!==_0xf5eabc){const _0x3c9d1b=this[_0x198a('0xab')][_0x198a('0x41')](_0xf5eabc-0x1);if(_0x3c9d1b[_0x198a('0xb3')]!==_0x542ced){const _0x165fe2=this[_0x198a('0xea')][_0x198a('0xba')](_0x542ced,_0x3c9d1b['toVersion']),_0x1395b3={'id':_0x3c9d1b['id'],'diffData':_0x165fe2[_0x198a('0xdc')],'authorsIds':_0x165fe2[_0x198a('0x76')],'authors':_0x165fe2[_0x198a('0x76')][_0x198a('0xf2')](_0x5256a7=>this[_0x198a('0xa')]['plugins'][_0x198a('0x89')](_0x198a('0x30'))[_0x198a('0x70')](_0x5256a7)),'fromVersion':_0x542ced};_0x3c9d1b===this[_0x198a('0x5d')]&&(_0x1395b3[_0x198a('0x8f')]=new Date(_0x153cb7['createdAt'][_0x198a('0x95')]()+0xa)),_0x3c9d1b['_update'](_0x1395b3,!0x0),delete _0x1395b3[_0x198a('0xad')],_0x4d72a3[_0x198a('0x25')](_0x1395b3);}}if(this[_0x198a('0x84')]){for(const _0x3c126a of _0x4d72a3)this['_bufferUpdate'](_0x3c126a['id'],_0x3c126a,!0x0);this[_0x198a('0x4c')]();}return _0x154d4c;}[_0x198a('0xa1')](_0x301afd){const _0x290348=this[_0x198a('0xab')][_0x198a('0x6e')](_0x301afd);return this[_0x198a('0x84')]&&_0x290348['on'](_0x198a('0x15'),(_0x45e8af,_0x26ea7a,_0x55158f)=>{_0x55158f||(this['_bufferUpdate'](_0x26ea7a['id'],_0x26ea7a,!0x0),this[_0x198a('0x4c')]());}),this[_0x198a('0xab')]['addRevision'](_0x290348,this[_0x198a('0xe6')](_0x290348)),_0x290348;}async[_0x198a('0xd6')](_0x5338bd){await this[_0x198a('0x9a')](_0x5338bd);const _0x2220c3={};for(const _0x231a0f in _0x5338bd[_0x198a('0xdc')]){const _0x3cec74=this['_removeRevisionMarkers'](JSON['parse'](_0x5338bd[_0x198a('0xdc')][_0x231a0f][_0x198a('0x85')])),_0x23fd3b=this[_0x198a('0xa')]['editing'][_0x198a('0xb5')][_0x198a('0x9b')],_0x6d548c=new _0x87dfb3(_0x23fd3b,_0x3cec74[_0x198a('0xf2')](_0x414200=>J(_0x414200,this[_0x198a('0xa')])));_0x2220c3[_0x231a0f]=this[_0x198a('0xa')][_0x198a('0x72')][_0x198a('0x5')][_0x198a('0x96')](_0x6d548c);}return _0x2220c3;}['sendBufferedUpdates'](){if(0x0===this[_0x198a('0x62')][_0x198a('0xe2')])return;if(this[_0x198a('0x3b')])return;let _0x4a4c0f=Array[_0x198a('0xe8')](this[_0x198a('0x62')][_0x198a('0x7b')]());this[_0x198a('0x62')]['clear']();for(let _0x11330a=0x0;_0x11330a<_0x4a4c0f[_0x198a('0x8e')];_0x11330a++){const _0xf643a2=_0x4a4c0f[_0x11330a];let _0x5eb358=!0x1;for(const _0x4522d6 of Object[_0x198a('0xeb')](_0xf643a2))void 0x0===_0xf643a2[_0x4522d6]?delete _0xf643a2[_0x4522d6]:'id'!==_0x4522d6&&(_0x5eb358=!0x0);_0x5eb358||(_0x4a4c0f[_0x11330a]=null);}if(_0x4a4c0f=_0x4a4c0f['filter'](_0x235b01=>null!==_0x235b01),!_0x4a4c0f[_0x198a('0x8e')])return;for(let _0x4d7f00=0x0;_0x4d7f00<_0x4a4c0f[_0x198a('0x8e')];_0x4d7f00++){const _0x1332e4=_0x4a4c0f[_0x4d7f00];void 0x0!==_0x1332e4['fromVersion']&&void 0x0===_0x1332e4['toVersion']&&(_0x1332e4[_0x198a('0xc1')]=this[_0x198a('0xab')]['getRevision'](_0x1332e4['id'])['toVersion']),void 0x0!==_0x1332e4[_0x198a('0xc1')]&&void 0x0===_0x1332e4['fromVersion']&&(_0x1332e4[_0x198a('0xb3')]=this[_0x198a('0xab')]['getRevision'](_0x1332e4['id'])[_0x198a('0xb3')]);}const _0x55324e=this[_0x198a('0xa')]['config'][_0x198a('0x89')](_0x198a('0x2a'));this[_0x198a('0x3b')]=!0x0,this[_0x198a('0x98')](),this[_0x198a('0x84')][_0x198a('0x9')](_0x4a4c0f,_0x55324e)[_0x198a('0x1')](()=>{this['_isPendingUpdate']=!0x1;})[_0x198a('0xcf')](_0x53c457=>{if(_0x53c457)for(const _0x13b66c of _0x53c457)this[_0x198a('0xa9')]({'id':_0x13b66c['id'],'createdAt':_0x13b66c[_0x198a('0x8f')]});this[_0x198a('0xb1')](),this[_0x198a('0x4c')]();});}[_0x198a('0x92')](_0x542a02){let _0x208671=this['editor'][_0x198a('0xd8')][_0x198a('0x89')](_0x198a('0x90'));if(void 0x0===_0x208671){_0x208671={};for(const _0x370a43 of this['editor']['model'][_0x198a('0x9b')][_0x198a('0xe4')]())_0x208671[_0x370a43]='';}'string'==typeof _0x208671&&(_0x208671={'main':_0x208671});let _0x2e6657=!0x1;for(const _0x3e1ea5 of Object['keys'](_0x208671))_0x542a02[_0x3e1ea5]&&(_0x208671[_0x3e1ea5]!==_0x542a02[_0x3e1ea5]&&''!==_0x208671[_0x3e1ea5][_0x198a('0x69')]()&&(_0x2e6657=!0x0),_0x208671[_0x3e1ea5]=_0x542a02[_0x3e1ea5]);_0x2e6657&&_0x46de1d(_0x198a('0x99')),this[_0x198a('0xa')][_0x198a('0xd8')][_0x198a('0x55')](_0x198a('0x90'),_0x208671);}['_addPendingAction'](){if(!this[_0x198a('0x1b')]){const _0x18fb5d=this[_0x198a('0xa')][_0x198a('0x22')]['get']('PendingActions');this[_0x198a('0x1b')]=_0x18fb5d[_0x198a('0x45')](_0x4445bc(this[_0x198a('0xa')][_0x198a('0x7d')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x198a('0xb1')](){this[_0x198a('0x1b')]&&(this['editor'][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x78'))[_0x198a('0x2b')](this[_0x198a('0x1b')]),this[_0x198a('0x1b')]=null);}[_0x198a('0xe6')](_0x3bd67e){const _0x37ef25=this[_0x198a('0xab')][_0x198a('0xcc')]();_0x37ef25[_0x198a('0xe7')]();let _0x825977=0x0;for(;_0x825977<_0x37ef25['length'];){const _0x1080dc=_0x37ef25[_0x825977];if(_0x1080dc===this[_0x198a('0x5d')]){_0x825977++;continue;}if(_0x1080dc['id']===this[_0x198a('0xa8')])break;const _0x4fd158=_0x3bd67e['toVersion']-_0x1080dc[_0x198a('0xc1')]||_0x3bd67e['fromVersion']-_0x1080dc[_0x198a('0xb3')];if(_0x4fd158>0x0)break;if(_0x4fd158<0x0)_0x825977++;else{if(!_0x3bd67e[_0x198a('0x6f')]&&_0x1080dc['creator'])break;if(_0x1080dc[_0x198a('0x6f')]||!_0x3bd67e[_0x198a('0x6f')]){if(_0x3bd67e[_0x198a('0x8f')]>_0x1080dc[_0x198a('0x8f')])break;_0x825977++;}else _0x825977++;}}return _0x825977;}[_0x198a('0xa9')](_0x626e4){const _0x4fe067=this['repository']['getRevision'](_0x626e4['id']);if(_0x626e4[_0x198a('0x8f')]&&(_0x626e4[_0x198a('0x8f')]=new Date(_0x626e4['createdAt'])),_0x626e4[_0x198a('0x76')]){const _0xc61c16=this['editor']['plugins'][_0x198a('0x89')](_0x198a('0x30'));_0x626e4[_0x198a('0xad')]=_0x626e4['authorsIds'][_0x198a('0xf2')](_0x151b59=>_0xc61c16[_0x198a('0x70')](_0x151b59));}_0x4fe067[_0x198a('0x15')](_0x626e4,!0x0);}[_0x198a('0x28')]({revision:_0x25a17c=null,from:_0x4b0fb6=null,to:_0x4a8642=null}){_0x4b0fb6=null!==_0x4b0fb6?_0x4b0fb6:_0x25a17c[_0x198a('0xb3')],_0x4a8642=null!==_0x4a8642?_0x4a8642:_0x25a17c[_0x198a('0xc1')];const _0xf9156=this[_0x198a('0xea')][_0x198a('0xba')](_0x4b0fb6,_0x4a8642),_0x563f4d={'diffData':_0xf9156[_0x198a('0xdc')],'authorsIds':_0xf9156[_0x198a('0x76')],'fromVersion':_0x4b0fb6,'toVersion':_0x4a8642};if(!_0x25a17c||_0x4a8642!==_0x25a17c[_0x198a('0xc1')]){const _0x2d73eb=_0x4a8642-0x1,_0x2902e2=this['_source'][_0x198a('0x4')][_0x198a('0x32')](_0x2d73eb);_0x563f4d[_0x198a('0x8f')]=_0x2902e2&&_0x2902e2['createdAt']||new Date();}if(this[_0x198a('0xd2')]&&_0x4b0fb6===this[_0x198a('0xd2')][_0x198a('0xb3')])for(const _0x3633d1 of this[_0x198a('0xd2')]['authors'])_0x563f4d['authorsIds'][_0x198a('0x97')](_0x3633d1['id'])||_0x563f4d[_0x198a('0x76')]['push'](_0x3633d1['id']);return _0x563f4d;}[_0x198a('0x9a')](_0x319502){if(!_0x319502||_0x319502[_0x198a('0xdc')])return Promise[_0x198a('0x23')]();{const _0x4116a8=this['editor']['config']['get'](_0x198a('0x2a'));return this['adapter']['getRevision']({'channelId':_0x4116a8,'revisionId':_0x319502['id']})[_0x198a('0xcf')](_0x88d0c3=>{_0x319502[_0x198a('0xdc')]=_0x88d0c3[_0x198a('0xdc')];});}}[_0x198a('0xb6')](_0x3fba2b,_0x2f74f5,_0x1d84cd){if(this[_0x198a('0x62')][_0x198a('0x74')](_0x3fba2b)){const _0x355b0f=this['_bufferedUpdates']['get'](_0x3fba2b);_0x2f74f5=_0x1d84cd?{..._0x355b0f,..._0x2f74f5}:{..._0x2f74f5,..._0x355b0f};}this['_bufferedUpdates'][_0x198a('0x55')](_0x3fba2b,_0x2f74f5);}[_0x198a('0x8')](_0x3323aa){const _0x419c9d=this['repository']['getRevisions']();_0x419c9d[_0x198a('0xe7')](),_0x419c9d['shift']();const _0x9ef636=_0x419c9d['find'](_0x13351b=>_0x13351b[_0x198a('0xc1')]<=_0x3323aa)['toVersion'];return _0x9ef636<this[_0x198a('0x5c')]?this['_startingVersion']:_0x9ef636;}['_createInitialRevision'](_0x4e8c3b){const _0x2548ce=this['repository'][_0x198a('0x41')](this['repository'][_0x198a('0x8e')]-0x1);if(_0x2548ce)this['_initialRevisionId']=_0x2548ce['id'];else{const _0x1b37dc=!this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0x47')]['find'](_0x419b08=>this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x64')](_0x419b08)),_0x41dd12=this[_0x198a('0xa')]['plugins'][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x175032=_0x4445bc(this[_0x198a('0xa')]['locale'],_0x1b37dc?_0x198a('0x5f'):_0x198a('0x3e'));this[_0x198a('0xe')]({'from':_0x4e8c3b,'to':_0x4e8c3b,'id':this[_0x198a('0xa8')],'name':_0x175032,'creatorId':_0x41dd12});}}[_0x198a('0xf')](_0x552405){const _0x23ffc6=this[_0x198a('0x21')][_0x198a('0x65')]();this['currentRevision']=this[_0x198a('0xab')][_0x198a('0x41')](_0x23ffc6),this['currentRevision']||(this[_0x198a('0x5d')]=this[_0x198a('0xe')]({'from':_0x552405,'to':_0x552405,'id':_0x23ffc6,'name':'','creatorId':null}));}[_0x198a('0xe')]({name:_0x14fa61,from:_0x403f09,to:_0x52381f,creatorId:_0x3cf378,id:_0x4d5e59}){const _0x14aaed=this[_0x198a('0x28')]({'from':_0x403f09,'to':_0x52381f});_0x14aaed['name']=_0x14fa61,_0x14aaed['creatorId']=_0x3cf378,_0x14aaed['id']=_0x4d5e59;const _0x4365a8=this['addRevisionData'](_0x14aaed);return this['adapter']&&this[_0x198a('0xb6')](_0x14aaed['id'],_0x14aaed,!0x0),_0x4365a8;}[_0x198a('0xaa')](){this['editor'][_0x198a('0x75')][_0x198a('0x83')](_0x198a('0xdf'))[_0x198a('0x52')]({'model':'revision'});}[_0x198a('0xb8')](_0x41c991){return(_0x41c991=_0x41c991[_0x198a('0x4b')](_0x4ee5e4=>!_0x4ee5e4[_0x198a('0xe5')]||_0x198a('0xc8')!==_0x4ee5e4[_0x198a('0xe5')]&&'revision-end'!==_0x4ee5e4[_0x198a('0xe5')]))[_0x198a('0xb9')](_0x230462=>{_0x198a('0xbb')!=typeof _0x230462&&(_0x230462[_0x198a('0x6')]=this['_removeRevisionMarkers'](_0x230462[_0x198a('0x6')]),_0x230462['attributes']=_0x230462[_0x198a('0xd4')]['filter'](_0x25f3f9=>!_0x25f3f9[0x0][_0x198a('0x7e')](_0x198a('0x6a'))));}),_0x41c991;}}function J(_0x510d8e,_0xe4083a){const _0x5c3eba=_0xe4083a['editing'][_0x198a('0xb5')][_0x198a('0x9b')];if('string'==typeof _0x510d8e)return new _0x44defc(_0x5c3eba,_0x510d8e);{const _0x423aa3=_0x510d8e[_0x198a('0x6')][_0x198a('0xf2')](_0x18fefb=>J(_0x18fefb,_0xe4083a));return new(T[_0x510d8e[(_0x198a('0x24'))]]||_0x40dd9f)(_0x5c3eba,_0x510d8e[_0x198a('0xe5')],_0x510d8e[_0x198a('0xd4')],_0x423aa3);}}class j{constructor(_0x44dfb8){this['editor']=_0x44dfb8,this[_0x198a('0x49')]=new Map(),this[_0x198a('0xdb')]=-0x1,this[_0x198a('0x82')]=-0x1,this['_markers']=new Map(),this[_0x198a('0xa7')]=new Map(),this[_0x198a('0xbd')]=new Map(),this[_0x198a('0x11')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x198a('0xce')]=new Map(),this[_0x198a('0x63')]=new Map(),this[_0x198a('0x3f')]=0x1,this['_rootNames']=this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0xe4')](),this[_0x198a('0x5e')]['push'](_0x198a('0x8d'));}[_0x198a('0xec')](_0x3b7e17){this[_0x198a('0x12')]=_0x3b7e17;const _0x1a9fe3=new Map();for(const _0x23ff18 of this[_0x198a('0x5e')]){const _0x448148=B(this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0x9b')][_0x198a('0x94')](_0x23ff18));_0x1a9fe3[_0x198a('0x55')](_0x23ff18,_0x448148);}const _0x18e15e=Array[_0x198a('0xe8')](this[_0x198a('0xa')][_0x198a('0xd3')]['markers'])['map'](_0x577f59=>[_0x577f59['name'],_0x577f59[_0x198a('0x40')]()]),_0x4dfa58=this[_0x198a('0x12')][_0x198a('0x7')];this[_0x198a('0x56')](_0x4dfa58,_0x1a9fe3,_0x18e15e),this[_0x198a('0xd')]=this['_revisionId'];}['getData'](_0x4305b1,_0x2694a8){if(this[_0x198a('0xdb')]===_0x4305b1&&this[_0x198a('0x82')]<=_0x2694a8)this[_0x198a('0x49')][_0x198a('0xe2')]>0x1&&this['_removeMetaData'](this[_0x198a('0x82')]),this[_0x198a('0x66')](this[_0x198a('0x82')],_0x2694a8,!0x0);else{if(!this[_0x198a('0x49')][_0x198a('0x74')](_0x4305b1)){const _0x2efaa1=this['_getPreviousFrom'](_0x4305b1);this['_calculateMetaData'](_0x2efaa1,_0x4305b1,!0x1);}this[_0x198a('0x16')](_0x4305b1,_0x2694a8,!0x0);}return this[_0x198a('0xdb')]=_0x4305b1,this[_0x198a('0x82')]=_0x2694a8,this['_getState']();}['loadState'](_0x328b1a){this['_reset'](),this['_lastFrom']=_0x328b1a[_0x198a('0xb3')],this[_0x198a('0x82')]=_0x328b1a['toVersion'];for(const _0x59415c in _0x328b1a[_0x198a('0xdc')]){const _0x464837=this[_0x198a('0x19')](_0x328b1a[_0x198a('0xdc')][_0x59415c][_0x198a('0xc6')]);_0x464837[_0x198a('0x87')]=_0x59415c,this[_0x198a('0xbd')][_0x198a('0x55')](_0x59415c,_0x464837);const _0x4b0fec=this[_0x198a('0x38')](_0x464837);this[_0x198a('0xcd')][_0x198a('0x55')](_0x59415c,_0x4b0fec);for(const [_0x12f847,_0x23f5ee]of _0x464837[_0x198a('0x9c')]){if(!_0x12f847[_0x198a('0x7e')]('revision:'))continue;const _0x42fa29=_0x12f847[_0x198a('0x3c')](':')[0x2];for(const _0x533091 of _0x23f5ee[_0x198a('0x33')]({'singleCharacters':!0x0})){const _0x4a6f5b=this[_0x198a('0x7a')](_0x533091),_0x4aa858=_0x198a('0xe9')==_0x533091[_0x198a('0x24')]?_0x533091[_0x198a('0x79')][_0x198a('0x9f')]['slice'](0x0,-0x1):_0x533091[_0x198a('0x79')][_0x198a('0x9f')],_0x21b5c0=_0x4b0fec[_0x198a('0x51')](_0x4aa858)[_0x198a('0x46')](_0x4a6f5b);this[_0x198a('0xce')][_0x198a('0x55')](_0x21b5c0,{'userId':_0x42fa29});}}}this['_startingRevisionId']=this[_0x198a('0x3f')];const _0x4b211c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)[_0x198a('0x4b')](_0xc1d46b=>!this[_0x198a('0xce')][_0x198a('0x74')](_0xc1d46b));let _0x8afa46=0x0;for(const _0x50ce2d in _0x328b1a['diffData']){const _0x41a89b=this[_0x198a('0x19')](_0x328b1a[_0x198a('0xdc')][_0x50ce2d][_0x198a('0x85')]);_0x41a89b[_0x198a('0x87')]=_0x50ce2d,this[_0x198a('0xa7')][_0x198a('0x55')](_0x50ce2d,_0x41a89b);const _0x157e97=this['_makeIdsRoot'](_0x41a89b,Number[_0x198a('0x3d')]);this[_0x198a('0x11')][_0x198a('0x55')](_0x50ce2d,_0x157e97);for(const [_0x1d4155,_0xf080de]of _0x41a89b['markers']){if(!_0x1d4155[_0x198a('0x7e')](_0x198a('0xd0')))continue;const _0x5a2dc2=_0x1d4155[_0x198a('0x3c')](':')[0x2];for(const _0x36f255 of _0xf080de[_0x198a('0x33')]({'singleCharacters':!0x0})){const _0x180b46=this[_0x198a('0x7a')](_0x36f255),_0x3d5257=this[_0x198a('0x3f')]++,_0x10dbfb=_0x198a('0xe9')==_0x36f255['type']?_0x36f255[_0x198a('0x79')]['path']['slice'](0x0,-0x1):_0x36f255[_0x198a('0x79')]['path'];_0x157e97[_0x198a('0x51')](_0x10dbfb)[_0x198a('0xb2')](_0x180b46,_0x3d5257),this[_0x198a('0xce')][_0x198a('0x55')](_0x3d5257,{'userId':_0x5a2dc2});}}for(const _0x45fa1b of this['editor']['model'][_0x198a('0xc9')](_0x41a89b)['getWalker']({'singleCharacters':!0x0})){const _0x117893=this[_0x198a('0x7a')](_0x45fa1b),_0x370d2f=_0x198a('0xe9')==_0x45fa1b[_0x198a('0x24')]?_0x45fa1b['previousPosition'][_0x198a('0x9f')][_0x198a('0xbc')](0x0,-0x1):_0x45fa1b[_0x198a('0x79')][_0x198a('0x9f')],_0x4b4bc0=_0x157e97[_0x198a('0x51')](_0x370d2f);_0x4b4bc0[_0x198a('0x46')](_0x117893)>0x0||_0x4b4bc0['_setAttribute'](_0x117893,_0x4b211c[_0x8afa46++]);}const _0x47f54c=new _0x2d8a24();_0x47f54c['rootName']=_0x198a('0x8d'),this['_baseRoots'][_0x198a('0x55')]('$graveyard',_0x47f54c),this[_0x198a('0xcd')][_0x198a('0x55')](_0x198a('0x8d'),this[_0x198a('0x38')](_0x47f54c,0x1));const _0x5a6c1c=new _0x2d8a24();_0x5a6c1c['rootName']=_0x198a('0x8d'),this['_diffRoots']['set'](_0x198a('0x8d'),_0x5a6c1c),this[_0x198a('0x11')][_0x198a('0x55')](_0x198a('0x8d'),this[_0x198a('0x38')](_0x5a6c1c,0x1));for(const [_0x5d56d1,_0x6ed3]of _0x41a89b[_0x198a('0x9c')])_0x5d56d1[_0x198a('0x7e')](_0x198a('0xd0'))||this['_markers']['set'](_0x5d56d1,_0x6ed3);}const _0x180106=Array[_0x198a('0xe8')](this['_diffRoots'])[_0x198a('0xf2')](([_0xfe936b,_0x46f011])=>[_0xfe936b,B(_0x46f011)]);this[_0x198a('0x56')](this[_0x198a('0x82')],_0x180106,this[_0x198a('0x54')]);}[_0x198a('0x19')](_0x45825b){const _0x59cc5e=JSON['parse'](_0x45825b),_0x47348f=this[_0x198a('0xa')][_0x198a('0xc2')][_0x198a('0xb5')][_0x198a('0x9b')],_0x2bc426=new _0x87dfb3(_0x47348f,_0x59cc5e[_0x198a('0xf2')](_0x1d135f=>J(_0x1d135f,this['editor'])));return this[_0x198a('0xa')]['data'][_0x198a('0xbf')](_0x2bc426);}['_saveEmptyMetaData'](){const _0x29da2f=new Map();for(const _0x989ca5 of this['_rootNames']){const _0x4063bf=new _0x2d8a24();_0x4063bf['rootName']=_0x989ca5,_0x29da2f[_0x198a('0x55')](_0x989ca5,_0x4063bf);}this[_0x198a('0x56')](Number['NEGATIVE_INFINITY'],_0x29da2f,[]);}[_0x198a('0x56')](_0x3ac23b,_0x2aa45b,_0x586bfe){const _0x514e12=new Map(_0x2aa45b),_0x480d80=new Map();for(const [_0x2d248b,_0x36dec5]of _0x586bfe)_0x480d80['set'](_0x2d248b,{'start':_0x36dec5['start'][_0x198a('0xde')](),'end':_0x36dec5['end'][_0x198a('0xde')](),'rootName':_0x36dec5['root'][_0x198a('0x87')]});this['_savedMetaData'][_0x198a('0x55')](_0x3ac23b,{'roots':_0x514e12,'markers':_0x480d80});}[_0x198a('0x9d')](_0x18a715){this[_0x198a('0x49')][_0x198a('0x88')](_0x18a715);}['reInit'](){this['_reset'](),this[_0x198a('0xdb')]=-0x1,this[_0x198a('0x82')]=-0x1,this[_0x198a('0x49')][_0x198a('0x61')](),this['init'](this[_0x198a('0x12')]);}[_0x198a('0xa6')](){this[_0x198a('0xce')][_0x198a('0x61')](),this['_touchedMarkers']['clear'](),this[_0x198a('0xa7')][_0x198a('0x61')](),this[_0x198a('0xbd')]['clear'](),this[_0x198a('0x11')][_0x198a('0x61')](),this[_0x198a('0xcd')][_0x198a('0x61')](),this[_0x198a('0x54')][_0x198a('0x61')](),this[_0x198a('0x3f')]=0x1,this[_0x198a('0xd')]=this[_0x198a('0x3f')];}['_makeIdsRoot'](_0x2b7c03,_0x768eb7=null){let _0x1164c5=null;_0x2b7c03['is'](_0x198a('0x36'))||(_0x1164c5=new _0xb89447(_0x2b7c03[_0x198a('0xe5')],{'vid_start':null===_0x768eb7?this[_0x198a('0x3f')]++:_0x768eb7++}));const _0x2ab746=[];for(const _0x247304 of _0x2b7c03[_0x198a('0x60')]())if(_0x247304['is'](_0x198a('0xf0'))){_0x2ab746['push'](this[_0x198a('0x38')](_0x247304,_0x768eb7));const _0x2493dd=_0x2ab746[_0x2ab746[_0x198a('0x8e')]-0x1];null!==_0x768eb7&&(_0x768eb7=_0x2493dd['is']('element',_0x198a('0xb4'))?_0x2493dd[_0x198a('0x46')](_0x198a('0xac'))+0x1:_0x2493dd['getAttribute']('vid_end')+0x1);}else for(let _0x1cc4d6=0x0;_0x1cc4d6<_0x247304['offsetSize'];_0x1cc4d6++)_0x2ab746[_0x198a('0x25')](new _0xb89447(_0x198a('0xb4'),{'vid':null===_0x768eb7?this[_0x198a('0x3f')]++:_0x768eb7++}));if(_0x2b7c03['is']('documentFragment')){const _0x2d6139=new _0x2d8a24(_0x2ab746);return _0x2d6139[_0x198a('0x87')]=_0x2b7c03[_0x198a('0x87')],_0x2d6139;}return _0x1164c5['_setAttribute'](_0x198a('0x2e'),null===_0x768eb7?this[_0x198a('0x3f')]++:_0x768eb7++),_0x1164c5[_0x198a('0x34')](0x0,_0x2ab746),_0x1164c5;}[_0x198a('0x16')](_0x117f10,_0x22e267,_0x124047){this[_0x198a('0xa6')]();const {roots:_0x310386,markers:_0x52d981}=this['_savedMetaData'][_0x198a('0x89')](_0x117f10);this['_baseRoots']=new Map(_0x310386);for(const [_0xcd65ba,_0x46ff67]of this[_0x198a('0xbd')])if(_0x198a('0x8d')!==_0xcd65ba&&(this['_diffRoots'][_0x198a('0x55')](_0xcd65ba,B(_0x46ff67)),_0x124047)){const _0x5ec97a=this['_revisionId'];this['_idsRoots'][_0x198a('0x55')](_0xcd65ba,this[_0x198a('0x38')](_0x46ff67)),this['_baseIdsRoots'][_0x198a('0x55')](_0xcd65ba,this[_0x198a('0x38')](_0x46ff67,_0x5ec97a));}this[_0x198a('0xd')]=this[_0x198a('0x3f')],this['_diffRoots']['set']('$graveyard',B(this[_0x198a('0xbd')][_0x198a('0x89')](_0x198a('0x8d')))),_0x124047&&this[_0x198a('0x11')][_0x198a('0x55')](_0x198a('0x8d'),this[_0x198a('0x38')](this[_0x198a('0xbd')]['get'](_0x198a('0x8d'))));for(const [_0x5776de,_0x494d04]of _0x52d981){const _0x555419=this['_baseRoots'][_0x198a('0x89')](_0x494d04[_0x198a('0x87')]),_0x44c2ea=this[_0x198a('0xa7')][_0x198a('0x89')](_0x494d04['rootName']),_0x2f8946=new _0x2cb92c(this['_fixPosition'](_0x494d04[_0x198a('0x2f')],_0x555419),this[_0x198a('0xa3')](_0x494d04[_0x198a('0x9e')],_0x555419)),_0xb85b4a=this[_0x198a('0x81')](_0x2f8946,_0x44c2ea);_0x555419[_0x198a('0x9c')][_0x198a('0x55')](_0x5776de,_0x2f8946),this[_0x198a('0x54')][_0x198a('0x55')](_0x5776de,_0xb85b4a);}this[_0x198a('0x66')](_0x117f10,_0x22e267,_0x124047);}[_0x198a('0x66')](_0x49dc50,_0x437649,_0x423ad7){for(const _0x28bc89 of this[_0x198a('0x12')][_0x198a('0xdd')](_0x49dc50,_0x437649))this['_handleOperation'](_0x28bc89,_0x423ad7);for(const _0x348885 of this[_0x198a('0xa7')]['values']())_0x348885[_0x198a('0x9c')][_0x198a('0x61')]();for(const [_0x2866f7,_0x5d98c5]of this[_0x198a('0x54')]){this[_0x198a('0xa7')][_0x198a('0x89')](_0x5d98c5[_0x198a('0x1d')][_0x198a('0x87')])[_0x198a('0x9c')]['set'](_0x2866f7,_0x5d98c5[_0x198a('0xde')]());}this[_0x198a('0x56')](_0x437649,Array[_0x198a('0xe8')](this[_0x198a('0xa7')])[_0x198a('0xf2')](([_0x465831,_0x262a40])=>[_0x465831,B(_0x262a40)]),this[_0x198a('0x54')]);}[_0x198a('0x10')](_0xf7e1ce){const _0x40d906=Array[_0x198a('0xe8')](this[_0x198a('0x49')]['keys']());_0x40d906[_0x198a('0xa5')]((_0x311854,_0xc01a89)=>_0x311854-_0xc01a89),_0x40d906[_0x198a('0xe7')]();for(const _0x538512 of _0x40d906)if(_0x538512<_0xf7e1ce)return _0x538512;return this[_0x198a('0xef')](),Number[_0x198a('0x3d')];}[_0x198a('0xed')](_0xe36cd6,_0x30e461){const _0x5c6949=Array[_0x198a('0xe8')](_0x30e461['markers'])['map'](([_0x2bc380,_0x4206ad])=>[_0x2bc380,this[_0x198a('0x81')](_0x4206ad,_0xe36cd6)]);_0xe36cd6[_0x198a('0x9c')]=new Map(_0x5c6949);}[_0x198a('0x1c')](_0x2ff51f){for(const _0x1ca6bf of this[_0x198a('0x54')][_0x198a('0x7b')]()){const _0x5631fe=_0x1ca6bf[_0x198a('0x35')](_0x2ff51f),_0x5adb93=_0x2cb92c['_createFromRanges'](_0x5631fe);_0x1ca6bf['start']=_0x5adb93[_0x198a('0x2f')],_0x1ca6bf[_0x198a('0x9e')]=_0x5adb93[_0x198a('0x9e')];}}[_0x198a('0x7c')](_0x4f50b3,_0x2e5862){const _0x34d3c9=this['_cloneOperation'](_0x4f50b3,this[_0x198a('0xa7')]);if(_0x198a('0xb')!==_0x4f50b3[_0x198a('0x24')]&&(_0x34d3c9[_0x198a('0x4d')](),this[_0x198a('0x1c')](_0x34d3c9)),_0x2e5862)switch(_0x34d3c9[_0x198a('0x24')]){case _0x198a('0xae'):this[_0x198a('0x6c')](_0x4f50b3);break;case'move':case _0x198a('0x2b'):case _0x198a('0xc0'):this[_0x198a('0x2d')](_0x4f50b3);break;case _0x198a('0xb7'):this[_0x198a('0x43')](_0x4f50b3);break;case'split':this[_0x198a('0xa0')](_0x4f50b3);break;case _0x198a('0xb'):this[_0x198a('0x1f')](_0x4f50b3);}}['_cloneOperation'](_0x4f8a57,_0x3500ba){const _0x2d9032=_0x4f8a57[_0x198a('0xde')]();return _0x2d9032['_authorId']=_0x4f8a57[_0x198a('0xe1')],this[_0x198a('0x26')](_0x2d9032,_0x3500ba),_0x2d9032;}[_0x198a('0x20')](_0x186960){return _0x186960[_0x198a('0xf2')](_0x48639e=>{const _0x19b771=this['_getVidAttributeName'](_0x48639e);return Number(_0x48639e['item'][_0x198a('0x46')](_0x19b771));});}[_0x198a('0xc5')](_0x45ca7a,_0x28c73a){if(_0x45ca7a['is'](_0x198a('0xf0'),_0x198a('0xb4')))_0x28c73a[_0x198a('0x25')]({'item':_0x45ca7a,'type':'text'});else{_0x45ca7a['is'](_0x198a('0xf0'))&&_0x28c73a[_0x198a('0x25')]({'item':_0x45ca7a,'type':_0x198a('0x0')});for(const _0x1ed18c of _0x45ca7a['getChildren']())this[_0x198a('0xc5')](_0x1ed18c,_0x28c73a);_0x45ca7a['is']('element')&&_0x28c73a[_0x198a('0x25')]({'item':_0x45ca7a,'type':'elementEnd'});}return _0x28c73a;}[_0x198a('0x4a')](){const _0xbb628=this[_0x198a('0xa')][_0x198a('0xd3')]['document']['getRootNames'](),_0x3bc9a4=new Map(this[_0x198a('0xce')]),_0x59bf5a=new Map(_0x3bc9a4),_0x5857d8=new Map(),_0x69e996={'insertions':{},'deletions':{}},_0x10127={'insertions':{},'deletions':{}},_0x389c1b=new Map();for(const _0x34f926 of _0xbb628){const _0x510b82=this['_diffRoots']['get'](_0x34f926),_0x5980ed=this[_0x198a('0xbd')][_0x198a('0x89')](_0x34f926);_0x69e996[_0x198a('0x85')][_0x34f926]=B(_0x510b82),_0x69e996[_0x198a('0xc6')][_0x34f926]=B(_0x5980ed),this['_copyMarkers'](_0x69e996[_0x198a('0xc6')][_0x34f926],_0x5980ed),this[_0x198a('0xed')](_0x69e996['insertions'][_0x34f926],_0x510b82),_0x10127['insertions'][_0x34f926]=this['_generateTape'](this[_0x198a('0x11')]['get'](_0x34f926),[]),_0x10127[_0x198a('0xc6')][_0x34f926]=this[_0x198a('0xc5')](this['_baseIdsRoots'][_0x198a('0x89')](_0x34f926),[]);}for(const _0x45e2b0 of _0xbb628){const _0x43ab5f=_0x10127[_0x198a('0x85')][_0x45e2b0];for(const _0x2a9fbd of _0x43ab5f){const _0x19e776=this[_0x198a('0x7a')](_0x2a9fbd),_0x4ffad0=_0x2a9fbd['item'][_0x198a('0x46')](_0x19e776);_0x59bf5a[_0x198a('0x88')](_0x4ffad0),_0x4ffad0>=this[_0x198a('0xd')]&&_0x5857d8[_0x198a('0x55')](_0x4ffad0,_0x3bc9a4[_0x198a('0x89')](_0x4ffad0));}}for(const _0x36c9d7 of _0xbb628){const _0x4d2f58=_0x10127[_0x198a('0x85')][_0x36c9d7],_0x840302=this['_getBaseVids'](_0x10127['deletions'][_0x36c9d7]);let _0x41e68e=0x0;for(const _0x122779 of _0x4d2f58){const _0x50b7e1=this[_0x198a('0x7a')](_0x122779),_0x3acea0=_0x122779[_0x198a('0xc3')][_0x198a('0x46')](_0x50b7e1);if(!_0x5857d8[_0x198a('0x74')](_0x3acea0)&&!_0x389c1b['has'](_0x3acea0)){if(_0x59bf5a[_0x198a('0x74')](_0x3acea0))_0x41e68e++;else{if(_0x3acea0!=_0x840302[_0x41e68e]){const _0x74eaf9=_0x3bc9a4[_0x198a('0x89')](_0x3acea0)||_0x3bc9a4[_0x198a('0x89')](_0x840302[_0x41e68e]);for(;_0x3acea0!=_0x840302[_0x41e68e];)_0x59bf5a[_0x198a('0x74')](_0x840302[_0x41e68e])||(_0x389c1b[_0x198a('0x55')](_0x840302[_0x41e68e],_0x74eaf9),_0x3bc9a4[_0x198a('0x55')](_0x840302[_0x41e68e],_0x74eaf9)),_0x41e68e++;}_0x41e68e++;}}}}for(const _0x107ff2 of _0xbb628){const _0x149960=_0x10127['insertions'][_0x107ff2];for(const _0x14076f of _0x149960){const _0x269e30=this[_0x198a('0x7a')](_0x14076f),_0x69d4a7=_0x14076f['item'][_0x198a('0x46')](_0x269e30);if(_0x389c1b[_0x198a('0x74')](_0x69d4a7)){const _0x3621d4=_0x389c1b[_0x198a('0x89')](_0x69d4a7);_0x59bf5a[_0x198a('0x74')](_0x69d4a7)||_0x59bf5a[_0x198a('0x55')](_0x69d4a7,{..._0x3621d4}),_0x5857d8['set'](_0x69d4a7,{..._0x3621d4});}}}for(const _0x5321fc of _0x59bf5a[_0x198a('0xeb')]())_0x5321fc>=this[_0x198a('0xd')]&&_0x59bf5a[_0x198a('0x88')](_0x5321fc);const _0x3899bd=new Map();for(const _0x2b69e1 of _0xbb628){let _0x3e8a1e=_0x10127[_0x198a('0x85')][_0x2b69e1];for(const _0x301c60 of _0x3e8a1e)if(_0x301c60[_0x198a('0xc3')]['is'](_0x198a('0xf0'),_0x198a('0xc4'))){const _0xb17319=this[_0x198a('0x7a')](_0x301c60),_0x300fc8=_0x301c60['item'][_0x198a('0x46')](_0xb17319);if(_0x5857d8[_0x198a('0x74')](_0x300fc8)){const _0x27941f=_0x301c60[_0x198a('0xc3')][_0x198a('0xd7')]['parent']['getAttribute']('vid_start'),_0x29fa34=_0x3899bd[_0x198a('0x89')](_0x27941f)||new Set();_0x29fa34[_0x198a('0x45')](_0x5857d8[_0x198a('0x89')](_0x300fc8)[_0x198a('0x17')]),_0x3899bd[_0x198a('0x55')](_0x27941f,_0x29fa34);}}_0x3e8a1e=_0x10127[_0x198a('0xc6')][_0x2b69e1];for(const _0x1f8678 of _0x3e8a1e)if(_0x1f8678[_0x198a('0xc3')]['is']('element','tableCell')){const _0x57fda7=this[_0x198a('0x7a')](_0x1f8678),_0x29a75f=_0x1f8678[_0x198a('0xc3')][_0x198a('0x46')](_0x57fda7);if(_0x59bf5a[_0x198a('0x74')](_0x29a75f)){const _0x4f07db=_0x1f8678[_0x198a('0xc3')][_0x198a('0xd7')][_0x198a('0xd7')]['getAttribute'](_0x198a('0xe3')),_0x5dccad=_0x3899bd['get'](_0x4f07db)||new Set();_0x5dccad['add'](_0x59bf5a[_0x198a('0x89')](_0x29a75f)[_0x198a('0x17')]),_0x3899bd['set'](_0x4f07db,_0x5dccad);}}for(const _0x1aff3c of _0x3899bd[_0x198a('0xeb')]())(_0x5857d8[_0x198a('0x74')](_0x1aff3c)||_0x59bf5a[_0x198a('0x74')](_0x1aff3c))&&_0x3899bd[_0x198a('0x88')](_0x1aff3c);}for(const _0x1f110a of _0xbb628){const _0x2700e2=_0x10127[_0x198a('0x85')][_0x1f110a];let _0x23ccd0=null,_0x25bdb5=null;for(const _0x25daca of _0x2700e2){const _0x1e3a9d=this['_getVidAttributeName'](_0x25daca),_0x3d6e62=_0x25daca[_0x198a('0xc3')][_0x198a('0x46')](_0x1e3a9d),_0x48ea5a=_0x3899bd[_0x198a('0x89')](_0x3d6e62);_0x48ea5a&&_0x198a('0x0')==_0x25daca[_0x198a('0x24')]&&(_0x23ccd0=Array[_0x198a('0xe8')](_0x48ea5a)[0x0],_0x25bdb5=_0x25daca[_0x198a('0xc3')][_0x198a('0x46')](_0x198a('0x2e'))),_0x23ccd0&&(_0x59bf5a[_0x198a('0x55')](_0x3d6e62,{'userId':_0x23ccd0}),_0x5857d8[_0x198a('0x55')](_0x3d6e62,{'userId':_0x23ccd0})),_0x3d6e62==_0x25bdb5&&(_0x23ccd0=null,_0x25bdb5=null);}}const _0x2258f5={},_0x2eea50=new Set();for(const _0x1425f3 of _0xbb628){const _0x2cc6aa=_0x69e996[_0x198a('0xc6')][_0x1425f3],_0x4f5746=_0x69e996[_0x198a('0x85')][_0x1425f3];for(const {userId:_0x1eeaac}of this['_touchedMarkers'][_0x198a('0x7b')]())null!==_0x1eeaac&&_0x2eea50[_0x198a('0x45')](_0x1eeaac);this[_0x198a('0xd1')](_0x4f5746,_0x10127[_0x198a('0x85')][_0x1425f3],_0x5857d8,'insertion',_0x2eea50),this[_0x198a('0xd1')](_0x2cc6aa,_0x10127[_0x198a('0xc6')][_0x1425f3],_0x59bf5a,'deletion',_0x2eea50),_0x2258f5[_0x1425f3]={'insertions':this[_0x198a('0xbe')](_0x4f5746),'deletions':this[_0x198a('0xbe')](_0x2cc6aa)};}return{'diffData':_0x2258f5,'authorsIds':Array['from'](_0x2eea50)};}[_0x198a('0x57')](_0x42b91b){for(const [,_0xab769a]of _0x42b91b['markers']){const _0x1ef80b=_0xab769a[_0x198a('0x2f')][_0x198a('0x29')]()[_0x198a('0x4b')](_0x521110=>_0x198a('0xc4')==_0x521110[_0x198a('0xe5')]);for(const _0x3d61c7 of _0x1ef80b)0x1==_0x3d61c7[_0x198a('0xd9')]&&_0x3d61c7['getChild'](0x0)['is'](_0x198a('0xf0'),_0x198a('0x86'))&&_0x3d61c7['getChild'](0x0)[_0x198a('0xb2')](_0x198a('0xa4'),!0x0);}}['_prepareViewToSave'](_0xa42b20){this[_0x198a('0x57')](_0xa42b20);const _0x231cac=this[_0x198a('0xa')][_0x198a('0x72')][_0x198a('0x4f')](_0xa42b20,{}),_0x5cc4b5=Array['from'](_0x231cac[_0x198a('0x60')]())['map'](_0x5d40da=>this[_0x198a('0x8b')](_0x5d40da));return JSON[_0x198a('0x8a')](_0x5cc4b5);}['_getViewJson'](_0x4582ed){if(_0x4582ed['is']('text'))return _0x4582ed[_0x198a('0x72')];return{'type':Object[_0x198a('0xeb')](T)[_0x198a('0xb0')](_0xb00526=>_0x4582ed instanceof T[_0xb00526]),'name':_0x4582ed[_0x198a('0xe5')],'attributes':Array[_0x198a('0xe8')](_0x4582ed['getAttributes']()),'children':Array[_0x198a('0xe8')](_0x4582ed[_0x198a('0x60')]())[_0x198a('0xf2')](_0x253d44=>this[_0x198a('0x8b')](_0x253d44))};}[_0x198a('0xd1')](_0x36c9a3,_0x2d775c,_0x34e75d,_0x470459,_0x4c8f65){let _0x43ca09=null,_0x1c3969=null,_0x39febf=0x0;const _0x31d07b=this[_0x198a('0xa')][_0x198a('0xd3')];for(let _0x4e2aa7=0x0;_0x4e2aa7<_0x2d775c['length'];_0x4e2aa7++){const _0x569524=this[_0x198a('0x7a')](_0x2d775c[_0x4e2aa7]),_0x3b864b=_0x2d775c[_0x4e2aa7][_0x198a('0xc3')][_0x198a('0x46')](_0x569524),_0x3c4d43=_0x34e75d['get'](_0x3b864b),_0x8d6627=_0x4e2aa7==_0x2d775c[_0x198a('0x8e')]-0x1;(!_0x43ca09&&_0x3c4d43&&(_0x43ca09=_0x3c4d43,_0x1c3969=_0x2d775c[_0x4e2aa7]),_0x43ca09&&(!_0x3c4d43||_0x3c4d43[_0x198a('0x17')]!=_0x43ca09[_0x198a('0x17')]))&&(_0x16bd9a(_0x3c4d43,q(_0x1c3969,_0x36c9a3,_0x31d07b),q(_0x2d775c[_0x4e2aa7],_0x36c9a3,_0x31d07b)),_0x43ca09=_0x3c4d43||null,_0x1c3969=_0x3c4d43?_0x2d775c[_0x4e2aa7]:null),_0x43ca09&&_0x8d6627&&_0x16bd9a(_0x3c4d43,q(_0x1c3969,_0x36c9a3,_0x31d07b),G(_0x2d775c[_0x4e2aa7],_0x36c9a3,_0x31d07b));}function _0x16bd9a(_0x33df12,_0x1005a3,_0x2a69b0){const _0x4b0177=_0x43ca09[_0x198a('0x17')],_0x2dbe21='revision:'+_0x470459+':'+_0x4b0177+':'+_0x39febf++,_0x2c054b=_0x31d07b['createRange'](_0x1005a3,_0x2a69b0);_0x36c9a3[_0x198a('0x9c')]['set'](_0x2dbe21,_0x2c054b),null!==_0x4b0177&&_0x4c8f65[_0x198a('0x45')](_0x4b0177);}}[_0x198a('0x7a')](_0x51214e){switch(_0x51214e[_0x198a('0x24')]){case'elementStart':return _0x198a('0xe3');case _0x198a('0xe9'):return _0x198a('0x2e');default:return _0x198a('0xac');}}['_fixOperation'](_0x185a79,_0x312557){_0x185a79[_0x198a('0x1e')]=null;for(const _0x415527 in _0x185a79){if(_0x185a79[_0x415527]instanceof _0x56f436){const _0x4dd211=_0x312557[_0x198a('0x89')](_0x185a79[_0x415527][_0x198a('0x1d')]['rootName']);_0x185a79[_0x415527]=this[_0x198a('0xa3')](_0x185a79[_0x415527],_0x4dd211);}if(_0x185a79[_0x415527]instanceof _0x2cb92c){const _0x547c13=_0x312557['get'](_0x185a79[_0x415527]['root']['rootName']);_0x185a79[_0x415527]=this[_0x198a('0x81')](_0x185a79[_0x415527],_0x547c13);}}_0x185a79[_0x198a('0x1d')]&&(_0x185a79['root']=_0x312557[_0x198a('0x89')](_0x185a79['root']['rootName']));}[_0x198a('0x81')](_0x115835,_0x2be847){return this[_0x198a('0xa')]['model']['createRange'](this['_fixPosition'](_0x115835[_0x198a('0x2f')],_0x2be847),this[_0x198a('0xa3')](_0x115835[_0x198a('0x9e')],_0x2be847));}[_0x198a('0xa3')](_0x22f84b,_0xbdd4b3){return this[_0x198a('0xa')][_0x198a('0xd3')][_0x198a('0xd5')](_0xbdd4b3,_0x22f84b[_0x198a('0x9f')],_0x22f84b['stickiness']);}['_handleInsertOperation'](_0x3d5a54){const _0x48d949=this[_0x198a('0x11')][_0x198a('0x89')](_0x3d5a54['position']['root'][_0x198a('0x87')]),_0x3231b6=this[_0x198a('0xa3')](_0x3d5a54[_0x198a('0x7f')],_0x48d949),_0x2f9bb4=null===_0x3d5a54[_0x198a('0xe1')]?null:_0x3d5a54[_0x198a('0xe1')]||this['editor'][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x4a0e95=_0x3231b6[_0x198a('0xd7')],_0x329d49=this['_revisionId'],_0x306beb=[];for(const _0x3b97b5 of _0x3d5a54['nodes'])if(_0x3b97b5['is']('element'))_0x306beb[_0x198a('0x25')](this[_0x198a('0x38')](_0x3b97b5));else for(let _0x17b94d=0x0;_0x17b94d<_0x3b97b5[_0x198a('0x77')];_0x17b94d++)_0x306beb[_0x198a('0x25')](new _0xb89447('$text',{'vid':this['_revisionId']++}));const _0x52932c=this['_revisionId'];for(let _0x27f413=_0x329d49;_0x27f413<_0x52932c;_0x27f413++)this[_0x198a('0xce')][_0x198a('0x55')](_0x27f413,{'userId':_0x2f9bb4});_0x4a0e95[_0x198a('0x34')](_0x3231b6[_0x198a('0xc')],_0x306beb);}[_0x198a('0x2d')](_0x36b6bd){(_0x36b6bd=this['_cloneOperation'](_0x36b6bd,this['_idsRoots']))['_execute']();const _0x22bc53=null===_0x36b6bd['_authorId']?null:_0x36b6bd[_0x198a('0xe1')]||this['editor'][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x2ea2a3=_0x36b6bd[_0x198a('0xca')](),_0x264fcf=_0x2ea2a3[_0x198a('0xd7')],_0x1703a8=_0x2ea2a3[_0x198a('0xc')];!function _0x20b10a(_0x3e73be,_0x52a28c,_0x2271e3,_0x556335){for(let _0x177a51=_0x2271e3;_0x177a51<_0x556335;_0x177a51++){const _0x25fc70=_0x52a28c[_0x198a('0x73')](_0x177a51);_0x25fc70['is'](_0x198a('0xf0'),_0x198a('0xb4'))?_0x3e73be['set'](_0x25fc70[_0x198a('0x46')](_0x198a('0xac')),{'userId':_0x22bc53}):(_0x3e73be[_0x198a('0x55')](_0x25fc70[_0x198a('0x46')](_0x198a('0xe3')),{'userId':_0x22bc53}),_0x20b10a(_0x3e73be,_0x25fc70,0x0,_0x25fc70[_0x198a('0xd9')]),_0x3e73be[_0x198a('0x55')](_0x25fc70['getAttribute'](_0x198a('0x2e')),{'userId':_0x22bc53}));}}(this[_0x198a('0xce')],_0x264fcf,_0x1703a8,_0x1703a8+_0x36b6bd['howMany']);}[_0x198a('0x43')](_0x47d439){const _0x347483=null===(_0x47d439=this[_0x198a('0xee')](_0x47d439,this[_0x198a('0x11')]))['_authorId']?null:_0x47d439[_0x198a('0xe1')]||this[_0x198a('0xa')][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x4d865e=_0x47d439[_0x198a('0x48')]['parent'],_0x159274=_0x47d439[_0x198a('0x44')][_0x198a('0xd7')],_0x222cc9=_0x4d865e[_0x198a('0x46')](_0x198a('0x2e')),_0x4ec756=_0x159274[_0x198a('0x46')](_0x198a('0xe3'));_0x4d865e['_setAttribute'](_0x198a('0x2e'),_0x159274[_0x198a('0x46')](_0x198a('0x2e'))),_0x159274[_0x198a('0xb2')](_0x198a('0x2e'),_0x222cc9),this[_0x198a('0xce')][_0x198a('0x55')](_0x4ec756,{'userId':_0x347483}),this['_touched'][_0x198a('0x55')](_0x222cc9,{'userId':_0x347483}),_0x47d439[_0x198a('0x4d')]();}[_0x198a('0xa0')](_0x3dfba7){const _0x1078cf=null===(_0x3dfba7=this[_0x198a('0xee')](_0x3dfba7,this[_0x198a('0x11')]))[_0x198a('0xe1')]?null:_0x3dfba7['_authorId']||this[_0x198a('0xa')][_0x198a('0x22')]['get'](_0x198a('0x30'))['me']['id'],_0x535bd4=_0x3dfba7[_0x198a('0xda')],_0x5e53c7=_0x3dfba7[_0x198a('0xaf')][_0x198a('0xd7')];_0x3dfba7['_execute']();const _0x5ee22e=_0x5e53c7[_0x198a('0x46')]('vid_end'),_0x530938=_0x3dfba7[_0x198a('0xa2')]['nodeAfter'];if(_0x535bd4){const _0x515721=_0x530938['getAttribute']('vid_end'),_0x422458=_0x5e53c7['getAttribute'](_0x198a('0x2e'));_0x5e53c7[_0x198a('0xb2')]('vid_end',_0x515721),_0x530938[_0x198a('0xb2')]('vid_end',_0x422458),this[_0x198a('0xce')][_0x198a('0x55')](_0x5e53c7['getAttribute']('vid_end'),{'userId':_0x1078cf}),this[_0x198a('0xce')]['set'](_0x530938[_0x198a('0x46')](_0x198a('0xe3')),{'userId':_0x1078cf});}else{const _0x348e33=this[_0x198a('0x3f')]++,_0x2b683d=this['_revisionId']++;_0x5e53c7[_0x198a('0xb2')]('vid_end',_0x348e33),_0x530938[_0x198a('0xb2')]('vid_start',_0x2b683d),_0x530938[_0x198a('0xb2')](_0x198a('0x2e'),_0x5ee22e),this['_touched']['set'](_0x348e33,{'userId':_0x1078cf}),this[_0x198a('0xce')]['set'](_0x2b683d,{'userId':_0x1078cf});}}[_0x198a('0x1f')](_0x4c58ce){if(!_0x4c58ce['affectsData'])return;const _0xa59afc=(_0x4c58ce=this[_0x198a('0xee')](_0x4c58ce,this[_0x198a('0xa7')]))[_0x198a('0x2c')]?_0x4c58ce['oldRange'][_0x198a('0x1d')]:null,_0x127b8c=_0x4c58ce[_0x198a('0x39')]?_0x4c58ce[_0x198a('0x39')][_0x198a('0x1d')]:null;_0xa59afc&&this[_0x198a('0x54')][_0x198a('0x88')](_0x4c58ce['name']),_0x127b8c&&this[_0x198a('0x54')]['set'](_0x4c58ce[_0x198a('0xe5')],_0x4c58ce[_0x198a('0x39')][_0x198a('0xde')]());const _0x10f133=null===_0x4c58ce[_0x198a('0xe1')]?null:_0x4c58ce[_0x198a('0xe1')]||this['editor'][_0x198a('0x22')][_0x198a('0x89')](_0x198a('0x30'))['me']['id'],_0x3a4306=_0x4c58ce['name'];if(!this['_touchedMarkers'][_0x198a('0x74')](_0x3a4306))return void this['_touchedMarkers'][_0x198a('0x55')](_0x3a4306,{'range':_0x4c58ce[_0x198a('0x2c')],'userId':_0x10f133});const _0xcab262=this[_0x198a('0x63')][_0x198a('0x89')](_0x3a4306),_0x51658f=_0xcab262[_0x198a('0x80')],_0x589d90=_0x4c58ce[_0x198a('0x39')];null==_0x51658f&&null==_0x589d90||_0x51658f&&_0x589d90&&_0x51658f[_0x198a('0x37')](_0x589d90)?this[_0x198a('0x63')][_0x198a('0x88')](_0x4c58ce[_0x198a('0xe5')]):_0xcab262['userId']=_0x10f133;}}function B(_0x4f3c93){const _0x420083=new _0x2d8a24();_0x420083[_0x198a('0x87')]=_0x4f3c93[_0x198a('0x87')];for(const _0x24a77b of _0x4f3c93[_0x198a('0x60')]()){const _0x5a4de5=_0x24a77b[_0x198a('0x18')](!0x0);_0x420083[_0x198a('0x3a')](_0x5a4de5);}return _0x420083;}function q(_0x802ab6,_0x595168,_0x1236e2){const _0x72a6ea='elementEnd'==_0x802ab6[_0x198a('0x24')]?_0x1236e2[_0x198a('0x93')](_0x802ab6[_0x198a('0xc3')],'end'):_0x1236e2[_0x198a('0x1a')](_0x802ab6[_0x198a('0xc3')]);return _0x72a6ea[_0x198a('0x1d')]=_0x595168,_0x72a6ea;}function G(_0x2953a5,_0x2e5a86,_0xef642f){const _0x1cf9e7=_0x198a('0x0')==_0x2953a5[_0x198a('0x24')]?_0xef642f[_0x198a('0x93')](_0x2953a5['item'],0x0):_0xef642f[_0x198a('0xe0')](_0x2953a5[_0x198a('0xc3')]);return _0x1cf9e7[_0x198a('0x1d')]=_0x2e5a86,_0x1cf9e7;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33f0=['readOnlyMode','nextSibling','marked','_markInsertions','restoreRevisionCallback','_makeModelFromViewString','revision','enqueueChange','isIncorrect','roots','test','index','htmlProcessor','toViewPosition','_getRevisionsRange','span','isRemoved','vid_end','endIndex','_getViewObj','ck-suggestion-marker-','bindElementToMarker','_data','string','target','setAttribute','insertions','elementEnd','vid_start','destroy','bind','code','getAttribute','observeMarkers','diffData','listenTo','downcastDispatcher','_markMarkers','refresh','includes','createRangeIn','changes','ck-suggestion-marker-merge','_getViewForChange','config','push','consume','_threeWayMerge','numberOfChanges','distance','showPreviousChange','attribute:vid','data-change-id','attributes','start','stopListening','getRevisionData','setData','commands','suggestion','splice','add','processor','getRootNames','currentChangeNumber','elementStart','resolve','_appendChild','<p></p>','backward','_removeUnsupportedChanges','editingDowncast','change','maxOffset','removeMarker:revision','offsetSize','_findChangeIdFromDomTarget','markers','get','_getChangeFromId','startIndex','all','view','nextPosition','diff','_cleanUp','consumable','revision-start','-new','reconvertMarker','isReady','writer','deletion','ck-editor__editable__overlay','next','activeChange','vid','abs','ck-suggestion-preview-marker','userId','document','item','softBreak','conversion','getChild','unshift','isAtEnd','for','slice','_fixObsoleteTags','isBefore','change:numberOfChanges','execute','upcast','viewItem','keys','markerToData','getIndex','isInline','showNextChange','_changeView','set','_update','isAdded','authors','values','type','isContent','change:isReady','forEach','data','isSuggestion','_removeMissingPairs','parse','locale','RevisionsRepository','text','delete','dataDowncast','newRevisionId','_markMismatchedRemovedTags','_balloon','done','shift','_setDistance','_cleanMarkers','mousedown','useFillerType','revision-end','markersStart','nodeAfter','markerNameToElements','children','previousPosition','merge','clear','parent','modelRange','addClass','isAfter','editing','toData','has','getRoot','change:activeView','createPositionBefore','low','revision:','split','length','level','pluginName','getRevision','compare','first','revisionHistoryLabel','toModel','addMarker:revision','highest','startsWith','getCustomProperty','insert','revisionHistory','isLimit','model','_refreshStartEndIndex','wrap','map','side','addRevision','_makeTape','then','markersEnd','getItems','toViewRange','element','clearForceDisabled','editor','toViewElement','removeMarker','_removeRevisionMarkers','stop','deletions','end','change:isEnabled','_processTape','schema','isAddSuggestion','loadRevisionData','createPositionFromPath','forward','hasClass','mapper','ck-suggestion-preview-marker-','getAttributes','high','isRemoveSuggestion','error','filter','createUIElement','change:isReadOnly','activeView','isObject','restoreRevision','_step','sort','createRange','pairId','data-revision-','_changeIdToChange','insertion','_target','uiElement','ck-suggestion-marker--active','isEnabled','showStack','markerName','_setConversion','_joinTapes','_revisions','markerRange','adapter','repository','range','dataToMarker','change:activeChange','addHighlight','POSITIVE_INFINITY','unbindElementFromMarkerName','object','concat','plugins','hasAttribute','remove','_initInteractions','isBlock','pop','_getDiff','_makeModelFromTape','markerToHighlight','isEqual','getWalker','isAtStart','from','RevisionViewer','name','removeMarker:suggestion'];(function(_0x1f37d0,_0x33f094){const _0x3683b3=function(_0x259cff){while(--_0x259cff){_0x1f37d0['push'](_0x1f37d0['shift']());}};_0x3683b3(++_0x33f094);}(_0x33f0,0xe7));const _0x3683=function(_0x1f37d0,_0x33f094){_0x1f37d0=_0x1f37d0-0x0;let _0x3683b3=_0x33f0[_0x1f37d0];return _0x3683b3;};import{Plugin as _0x18b0df,Command as _0x4aaa93}from'ckeditor5/src/core';import{ObservableMixin as _0x47cfb5,mix as _0xa2a605,scrollViewportToShowTarget as _0x2bf980}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2040f6}from'ckeditor5/src/ui';import{DocumentFragment as _0x56c45c,Element as _0x1b2555,Text as _0x2d360a,ViewDocumentFragment as _0x15e778,ViewText as _0x567a3a,ViewElement as _0x144076,ViewContainerElement as _0x290635,ViewAttributeElement as _0x348f76,ViewEmptyElement as _0x4557f8,ViewRawElement as _0xe6832,ViewUIElement as _0x349562}from'ckeditor5/src/engine';import{Users as _0x2ed604,getMarkerDomElement as _0x4b2ed6}from'ckeditor5-collaboration/src/collaboration-core';import _0x7a460 from'./ui/revisionviewer/changedetailsview';import _0x2a402c from'./revisionsrepository';import _0x2f83f8 from'./changeitem';import _0x52cb5d from'./revisiondiff';import'../theme/revisionviewer.css';const T={'c':_0x290635,'a':_0x348f76,'e':_0x4557f8,'r':_0xe6832,'u':_0x349562};export default class d extends _0x18b0df{static get[_0x3683('0xcf')](){return'RevisionViewer';}static get['requires'](){return[_0x2ed604,_0x2040f6,_0x2a402c];}constructor(..._0x4a6c1c){super(..._0x4a6c1c),this[_0x3683('0xb')]=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](_0x3683('0xab')),this[_0x3683('0x9d')]('activeChange',null),this[_0x3683('0x9d')]('activeView',null),this[_0x3683('0x9d')]('diff',null),this[_0x3683('0x9d')](_0x3683('0x7e'),!0x1),this[_0x3683('0x9d')](_0x3683('0x3'),!0x0),this['on']('change:isEnabled',(_0x50260d,_0x28142c,_0x459a7c)=>{this[_0x3683('0x83')]=null,this[_0x3683('0x101')]=null,this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x6c')](_0x5bb5ec=>{for(const _0xaf6286 of this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')][_0x3683('0x2d')])_0x459a7c?_0x5bb5ec['removeClass']('ck-editor__editable__overlay',_0xaf6286):_0x5bb5ec[_0x3683('0xc2')](_0x3683('0x81'),_0xaf6286);});}),this[_0x3683('0x42')]('isNavigationMode')['to'](this,_0x3683('0x83'),_0x2f1f1a=>null!==_0x2f1f1a),this['bind'](_0x3683('0x64'))['to'](this,'isReady',this,'diff',this,'activeChange',(_0xe2d2c3,_0x24518b,_0x28c8da)=>_0xe2d2c3&&_0x28c8da?_0x24518b[_0x3683('0x4d')]['getIndex'](_0x28c8da):0x0),this['bind'](_0x3683('0x54'))['to'](this,_0x3683('0x7e'),this,'diff',(_0xde5f09,_0x92ed57)=>_0xde5f09?_0x92ed57['changes'][_0x3683('0xcd')]:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this[_0x3683('0xa')]=null,this[_0x3683('0xb1')]=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](_0x2040f6);}['init'](){const _0x523279=this[_0x3683('0xe9')];_0x523279[_0x3683('0xa6')][_0x3683('0x30')][_0x3683('0xb7')](_0x3683('0x26'));const _0x4b038e=new X(_0x523279,{'direction':_0x3683('0x69')}),_0x4b970c=new X(_0x523279,{'direction':'forward'});_0x523279[_0x3683('0x5e')][_0x3683('0x61')](_0x3683('0x56'),_0x4b038e),_0x523279['commands'][_0x3683('0x61')](_0x3683('0x9b'),_0x4b970c),_0x523279[_0x3683('0x5e')][_0x3683('0x61')](_0x3683('0x103'),new Q(_0x523279)),this['on'](_0x3683('0x93'),()=>{_0x4b038e[_0x3683('0x4a')](),_0x4b970c['refresh']();}),this[_0x3683('0x6')](),this[_0x3683('0x17')](),_0x523279['enableReadOnlyMode']('revision-viewer');}async[_0x3683('0x5c')](_0xd8ec48){await this[_0x3683('0xf4')](_0xd8ec48);const _0x8a9f8f={};for(const _0x35eb30 in _0xd8ec48[_0x3683('0x46')]){const _0x1958cc=this[_0x3683('0xec')](JSON[_0x3683('0xa9')](_0xd8ec48[_0x3683('0x46')][_0x35eb30][_0x3683('0x3e')])),_0x3757fa=this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')],_0x7a9275=new _0x15e778(_0x3757fa,_0x1958cc['map'](_0x3f60e7=>this[_0x3683('0x37')](_0x3f60e7)));_0x8a9f8f[_0x35eb30]=this['editor'][_0x3683('0xa6')][_0x3683('0x62')][_0x3683('0xc5')](_0x7a9275);}return _0x8a9f8f;}['_removeRevisionMarkers'](_0x6a2a32){return(_0x6a2a32=_0x6a2a32[_0x3683('0xfe')](_0xaa0855=>!_0xaa0855[_0x3683('0x22')]||_0x3683('0x7b')!==_0xaa0855[_0x3683('0x22')]&&_0x3683('0xb8')!==_0xaa0855['name']))[_0x3683('0xa5')](_0x1da8ef=>{_0x3683('0x3b')!=typeof _0x1da8ef&&(_0x1da8ef[_0x3683('0xbc')]=this['_removeRevisionMarkers'](_0x1da8ef[_0x3683('0xbc')]),_0x1da8ef[_0x3683('0x59')]=_0x1da8ef[_0x3683('0x59')][_0x3683('0xfe')](_0x4768d1=>!_0x4768d1[0x0][_0x3683('0xd7')](_0x3683('0x108'))));}),_0x6a2a32;}[_0x3683('0xd1')](_0x2bedac,_0x2608b6,_0x849978=!0x1){if(!this['isEnabled'])return;const _0x3eb857=this[_0x3683('0x78')],_0x1defff=this[_0x3683('0xb')],_0x1a8d34=_0x3683('0x3b')==typeof _0x2bedac?_0x1defff[_0x3683('0xd0')](_0x2bedac):_0x2bedac,_0x26cff6=_0x3683('0x3b')==typeof _0x2608b6?_0x1defff['getRevision'](_0x2608b6):_0x2608b6,_0x2b94a9=_0x1a8d34['id'],_0x304174=_0x26cff6?_0x26cff6['id']:null;if(!_0x849978&&this['diff']&&this[_0x3683('0x78')]['newRevisionId']===_0x2b94a9&&this[_0x3683('0x78')]['oldRevisionId']===_0x304174)return Promise['resolve']();this[_0x3683('0x7e')]=!0x1,this[_0x3683('0x101')]=null,this[_0x3683('0x83')]=null,this[_0x3683('0x78')]=new _0x52cb5d(_0x2b94a9,_0x304174);const _0x47434b=this[_0x3683('0x32')](_0x1a8d34,_0x26cff6,!0x0)['map'](_0x1aa41c=>this[_0x3683('0xf4')](_0x1aa41c));return _0x47434b[_0x3683('0x51')](new Promise(_0x3e53bc=>{setTimeout(_0x3e53bc,0x14);})),Promise[_0x3683('0x75')](_0x47434b)[_0x3683('0xe3')](()=>{if(!this[_0x3683('0x3')])return;this[_0x3683('0x79')]();const _0x5e0359=this[_0x3683('0x1a')](_0x2b94a9,_0x304174);this[_0x3683('0x78')]['_setData'](_0x5e0359);for(const _0x3dd7ba of this[_0x3683('0x78')][_0x3683('0x4d')])this[_0x3683('0x109')]['set'](_0x3dd7ba['id'],_0x3dd7ba);this['editor']['model'][_0x3683('0x2b')]({'isUndoable':!0x1},_0x34bc56=>{for(const _0x18e002 of Object['keys'](_0x5e0359['model'])){const _0x934155=this[_0x3683('0xe9')]['model']['document'][_0x3683('0xc7')](_0x18e002);_0x34bc56[_0x3683('0x16')](_0x34bc56['createRangeIn'](_0x934155)),_0x34bc56[_0x3683('0xd9')](_0x5e0359[_0x3683('0xdc')][_0x18e002],_0x934155,0x0);}}),this['isReady']=!0x0;})['catch'](_0x180358=>{console[_0x3683('0xfd')](_0x180358),this[_0x3683('0x79')](),_0x3eb857?this[_0x3683('0x78')]=_0x3eb857:this[_0x3683('0xe9')][_0x3683('0x5d')](_0x3683('0x68')),this[_0x3683('0x7e')]=!0x0;});}[_0x3683('0x41')](){this[_0x3683('0x101')]=null,this['_changeView']&&this[_0x3683('0x9c')][_0x3683('0x41')]();}['addRevisionData'](_0x3d50e4,_0x1bc7ee){const _0x2a4555=this[_0x3683('0xb')]['createRevision'](_0x3d50e4);return _0x2a4555['on'](_0x3683('0x9e'),(_0x3908b4,_0x3230f0,_0x18258f)=>_0x1bc7ee(_0x3230f0,_0x18258f,_0x2a4555)),this[_0x3683('0xb')][_0x3683('0xe1')](_0x2a4555),_0x2a4555;}[_0x3683('0xf4')](_0x41d1b5){if(!_0x41d1b5||_0x41d1b5['diffData'])return Promise[_0x3683('0x66')]();{const _0x3ab0aa=this[_0x3683('0xe9')][_0x3683('0x50')]['get']('collaboration.channelId');return this[_0x3683('0xa')][_0x3683('0xd0')]({'channelId':_0x3ab0aa,'revisionId':_0x41d1b5['id']})[_0x3683('0xe3')](_0x5acc47=>{_0x41d1b5[_0x3683('0x9e')]({'diffData':_0x5acc47[_0x3683('0x46')]},!0x0);});}}[_0x3683('0x79')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x3683('0x9c')]&&this['_changeView'][_0x3683('0x41')](),this['_changeView']=null,this[_0x3683('0x109')][_0x3683('0xbf')]();}[_0x3683('0xe2')](_0x23cec4){const _0xf76f09=Array[_0x3683('0x20')](_0x23cec4[_0x3683('0x71')])[_0x3683('0xfe')](([_0x8ee4e5,_0x4e7e52])=>_0x8ee4e5[_0x3683('0xd7')](_0x3683('0xcb'))&&!_0x4e7e52['isCollapsed']),_0x598414=Array[_0x3683('0x20')](this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x4c')](_0x23cec4)[_0x3683('0x1e')]({'singleCharacters':!0x0}));if(0x0!=_0xf76f09['length'])for(const _0x5be978 of _0x598414){const [_0x53bb82,_0x2d5ff0]=_0xf76f09[0x0],[,_0x114662,_0x4a0b78]=_0x53bb82['split'](':');if(_0x2d5ff0['end'][_0x3683('0x1d')](_0x5be978[_0x3683('0x77')])&&_0xf76f09[_0x3683('0xb3')](),(_0x5be978[_0x3683('0xbd')][_0x3683('0x1d')](_0x2d5ff0[_0x3683('0x5a')])||_0x5be978['previousPosition']['isAfter'](_0x2d5ff0[_0x3683('0x5a')]))&&('insertion'==_0x114662?_0x5be978['isAdded']={'userId':_0x4a0b78}:_0x3683('0x80')==_0x114662&&(_0x5be978[_0x3683('0x34')]={'userId':_0x4a0b78})),0x0==_0xf76f09[_0x3683('0xcd')])break;}return _0x598414;}[_0x3683('0xdd')](_0x1bffee){const _0x144430=new Map();for(let _0x473fd7=0x0;_0x473fd7<_0x1bffee[_0x3683('0xcd')];_0x473fd7++)_0x3683('0xac')===_0x1bffee[_0x473fd7][_0x3683('0xa2')]?(_0x1bffee[_0x473fd7][_0x3683('0x89')][_0x3683('0x74')]=_0x473fd7,_0x1bffee[_0x473fd7][_0x3683('0x89')][_0x3683('0x36')]=_0x473fd7):(_0x3683('0x65')===_0x1bffee[_0x473fd7]['type']?_0x1bffee[_0x473fd7][_0x3683('0x89')][_0x3683('0x74')]=_0x473fd7:_0x3683('0x3f')===_0x1bffee[_0x473fd7][_0x3683('0xa2')]&&(_0x1bffee[_0x473fd7][_0x3683('0x89')]['endIndex']=_0x473fd7),_0x144430[_0x3683('0x9d')](_0x1bffee[_0x473fd7]['id'],_0x473fd7));for(const _0x2a8ffc of _0x144430[_0x3683('0xa1')]())_0x3683('0x65')===_0x1bffee[_0x2a8ffc][_0x3683('0xa2')]?_0x1bffee[_0x2a8ffc][_0x3683('0x89')][_0x3683('0x36')]=_0x144430['get'](_0x1bffee[_0x2a8ffc]['pairId']):_0x3683('0x3f')===_0x1bffee[_0x2a8ffc][_0x3683('0xa2')]&&(_0x1bffee[_0x2a8ffc][_0x3683('0x89')][_0x3683('0x74')]=_0x144430[_0x3683('0x72')](_0x1bffee[_0x2a8ffc][_0x3683('0x107')]));}['_processTape'](_0x2f3954){for(let _0x45d854=0x0;_0x45d854<_0x2f3954[_0x3683('0xcd')];_0x45d854++){if(_0x3683('0x65')===_0x2f3954[_0x45d854][_0x3683('0xa2')])_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x74')]=_0x45d854;else{if(_0x3683('0x3f')===_0x2f3954[_0x45d854]['type']){_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x36')]=_0x45d854;const _0x1e48f9=_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x74')];_0x2f3954[_0x1e48f9]['pairId']=_0x2f3954[_0x45d854]['id'],_0x2f3954[_0x45d854][_0x3683('0x107')]=_0x2f3954[_0x1e48f9]['id'];}else _0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x74')]=_0x45d854,_0x2f3954[_0x45d854][_0x3683('0x89')][_0x3683('0x36')]=_0x45d854,_0x2f3954[_0x45d854][_0x3683('0x107')]=null;}_0x2f3954[_0x45d854][_0x3683('0xb9')]||(_0x2f3954[_0x45d854]['markersStart']=[],_0x2f3954[_0x45d854][_0x3683('0xe4')]=[]);}}['_markInsertions'](_0x1e97a3,_0x4d8e44){const _0x3bc859=_0x1e97a3[_0x3683('0xfe')](_0x49ea22=>!_0x49ea22[_0x3683('0x9f')]);for(let _0x1d80cc=0x0;_0x1d80cc<_0x4d8e44['length'];_0x1d80cc++)_0x4d8e44[_0x1d80cc][_0x3683('0x9f')]&&(_0x3bc859[_0x1d80cc][_0x3683('0x9f')]=_0x4d8e44[_0x1d80cc][_0x3683('0x9f')]);}[_0x3683('0x29')](_0x3a7215){const _0x2d931b=JSON[_0x3683('0xa9')](_0x3a7215),_0x3fea63=this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')],_0x5b3b0a=new _0x15e778(_0x3fea63,_0x2d931b[_0x3683('0xdf')](_0x49358a=>this[_0x3683('0x37')](_0x49358a)));return this['editor'][_0x3683('0xa6')][_0x3683('0xd4')](_0x5b3b0a);}[_0x3683('0x37')](_0x282434){const _0xac2557=this[_0x3683('0xe9')][_0x3683('0xc4')]['view'][_0x3683('0x88')];if(_0x3683('0x3b')==typeof _0x282434)return new _0x567a3a(_0xac2557,_0x282434);{const _0x13e150=_0x282434[_0x3683('0xbc')][_0x3683('0xdf')](_0x518176=>this['_getViewObj'](_0x518176));return new(T[_0x282434['type']]||_0x144076)(_0xac2557,_0x282434[_0x3683('0x22')],_0x282434[_0x3683('0x59')],_0x13e150);}}['_getDiff'](_0x448958,_0x3471a7=null){const _0x2e7763=this[_0x3683('0xb')]['getRevision'](_0x448958),_0x428ffd=_0x3471a7?this['repository'][_0x3683('0xd0')](_0x3471a7):null,_0x12e596=this[_0x3683('0x32')](_0x2e7763,_0x428ffd),_0x1742b7=_0x12e596[_0x12e596[_0x3683('0xcd')]-0x1],_0x496707=new Map();for(const _0x201459 of _0x12e596){_0x201459[_0x3683('0xdc')]={};for(const _0x309456 of _0x201459[_0x3683('0xa0')])_0x496707[_0x3683('0x9d')](_0x309456['id'],_0x309456);for(const _0x352469 of this['editor'][_0x3683('0xdc')][_0x3683('0x88')][_0x3683('0x63')]())_0x201459[_0x3683('0x46')][_0x352469]||(_0x201459[_0x3683('0x46')][_0x352469]={'insertions':'[]','deletions':'[]'}),_0x201459['model'][_0x352469]={'insertions':this[_0x3683('0x29')](_0x201459[_0x3683('0x46')][_0x352469][_0x3683('0x3e')]),'deletions':this['_makeModelFromViewString'](_0x201459['diffData'][_0x352469][_0x3683('0xee')])};}const _0xfca87e={'model':{},'changes':[]};for(const _0x45e406 of this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x88')][_0x3683('0x63')]()){let _0x3c4def=null,_0x418561=0x0;const _0x4ac401=new Map(Array[_0x3683('0x20')](_0x2e7763['model'][_0x45e406]['insertions']['markers'])[_0x3683('0xfe')](([_0x308567])=>!_0x308567[_0x3683('0xd7')](_0x3683('0xcb'))));let _0x1ba028=0x0;for(const _0x2c6a8b of _0x12e596){const _0x2f57dd=this[_0x3683('0xe2')](_0x2c6a8b[_0x3683('0xdc')][_0x45e406]['insertions']);_0x2c6a8b==_0x2e7763?(_0x3c4def=_0x2f57dd,_0x418561=_0x3c4def[_0x3683('0xcd')],_0x3c4def['forEach'](_0x3b7552=>{_0x3b7552['id']=_0x1ba028++;}),this[_0x3683('0xf1')](_0x3c4def)):this[_0x3683('0x27')](_0x3c4def,_0x2f57dd);const _0x279c6c=_0x3c4def[_0x3683('0xfe')](_0x222ef2=>!_0x222ef2['isAdded'])[_0x3683('0xdf')](_0xfab259=>_0xfab259['id']);let _0x38169a=0x0;const _0x86fc23=this[_0x3683('0xe2')](_0x2c6a8b[_0x3683('0xdc')][_0x45e406]['deletions']);_0x86fc23[_0x3683('0xa5')](_0x2d0f99=>{_0x2d0f99['isRemoved']?_0x2d0f99['id']=_0x418561++:_0x2d0f99['id']=_0x279c6c[_0x38169a++];}),this[_0x3683('0xf1')](_0x86fc23),this[_0x3683('0xb4')](_0x3c4def,'isAdded'),this[_0x3683('0xb4')](_0x86fc23,_0x3683('0x34')),_0x2c6a8b==_0x2e7763&&this[_0x3683('0x49')](_0x3c4def,_0x4ac401),_0x3c4def=this['_joinTapes'](_0x3c4def,_0x86fc23),this['_refreshStartEndIndex'](_0x3c4def),this[_0x3683('0xb4')](_0x3c4def,_0x3683('0x34'));}_0x3c4def=_0x3c4def[_0x3683('0xfe')](_0x483889=>!(_0x483889[_0x3683('0x9f')]&&_0x483889['isRemoved']));const _0x43139b=new Map(_0x1742b7['model'][_0x45e406][_0x3683('0xee')]['markers']),_0xe456bc=new Set(_0x4ac401[_0x3683('0x97')]());for(const _0x28329b of _0x43139b[_0x3683('0x97')]())_0xe456bc[_0x3683('0xad')](_0x28329b);this['_markSuggestions'](_0x3c4def,_0xe456bc),this[_0x3683('0x91')](_0x3c4def),_0x3c4def=this[_0x3683('0xa8')](_0x3c4def),_0x3c4def=this[_0x3683('0xb0')](_0x3c4def),_0x3c4def=this[_0x3683('0x6a')](_0x3c4def);const {root:_0xa64ae9,changes:_0x30b431}=this[_0x3683('0x1b')](_0x3c4def,_0x496707);_0xfca87e['model'][_0x45e406]=_0xa64ae9,_0xfca87e[_0x3683('0x4d')]=_0xfca87e[_0x3683('0x4d')][_0x3683('0x13')](_0x30b431);}return _0xfca87e;}[_0x3683('0x49')](_0x4f5d98,_0x122398){for(let _0x450a75=0x0;_0x450a75<_0x4f5d98[_0x3683('0xcd')];_0x450a75++)for(const [_0x12327c,_0xb21d7a]of _0x122398)_0xb21d7a[_0x3683('0x5a')][_0x3683('0x1d')](_0x4f5d98[_0x450a75][_0x3683('0xbd')])&&_0x4f5d98[_0x450a75]['markersStart'][_0x3683('0x51')](_0x12327c),_0xb21d7a['end'][_0x3683('0x1d')](_0x4f5d98[_0x450a75][_0x3683('0x77')])&&_0x4f5d98[_0x450a75][_0x3683('0xe4')][_0x3683('0x51')](_0x12327c);}[_0x3683('0x7')](_0x5adca,_0x34a7e9){let _0x544ce4=[],_0x463273=0x0,_0x5c201f=0x0;for(;_0x463273<_0x5adca[_0x3683('0xcd')]||_0x5c201f<_0x34a7e9[_0x3683('0xcd')];){const _0x1337ff=_0x5adca[_0x463273]||{},_0x170aa5=_0x34a7e9[_0x5c201f]||{};if(_0x1337ff['id']==_0x170aa5['id'])_0x463273++,_0x5c201f++,_0x544ce4[_0x3683('0x51')](_0x1337ff);else{if(_0x170aa5[_0x3683('0x34')]&&_0x1337ff['isAdded']){const {commonTape:_0x12834f,iEnd:_0x5d52d9,jEnd:_0xdaed70}=this[_0x3683('0x53')](_0x5adca,_0x463273,_0x34a7e9,_0x5c201f);_0x544ce4=_0x544ce4['concat'](_0x12834f),_0x463273=_0x5d52d9,_0x5c201f=_0xdaed70;}else _0x170aa5[_0x3683('0x34')]?(_0x5c201f++,_0x544ce4[_0x3683('0x51')](_0x170aa5)):(_0x463273++,_0x544ce4[_0x3683('0x51')](_0x1337ff));}}return _0x544ce4;}['_markSuggestions'](_0x22c662,_0x46abd5){const _0x7794b8=[];for(let _0xeb21db=0x0;_0xeb21db<_0x22c662['length'];_0xeb21db++){for(let _0x52e288=0x0;_0x52e288<_0x22c662[_0xeb21db][_0x3683('0xb9')][_0x3683('0xcd')];_0x52e288++){const _0xd4351c=_0x22c662[_0xeb21db]['markersStart'][_0x52e288];if(!_0x46abd5[_0x3683('0xc6')](_0xd4351c))continue;const {group:_0xdf3887,type:_0xaad65d,authorId:_0x5f474c}=_0x5e4437(_0xd4351c);'suggestion'!=_0xdf3887||_0x3683('0x10a')!=_0xaad65d&&'deletion'!=_0xaad65d||(_0x7794b8['unshift']({'type':_0xaad65d,'name':_0xd4351c,'userId':_0x5f474c}),_0x22c662[_0xeb21db][_0x3683('0xb9')][_0x3683('0x60')](_0x52e288,0x1),_0x52e288--);}_0x431064(_0x22c662[_0xeb21db]);for(let _0x1a77c2=0x0;_0x1a77c2<_0x22c662[_0xeb21db]['markersEnd'][_0x3683('0xcd')];_0x1a77c2++){const _0x21ed7b=_0x22c662[_0xeb21db][_0x3683('0xe4')][_0x1a77c2];if(!_0x46abd5['has'](_0x21ed7b))continue;const {group:_0x35da50,type:_0x45e4a5}=_0x5e4437(_0x21ed7b);if(_0x3683('0x5f')!=_0x35da50||_0x3683('0x10a')!=_0x45e4a5&&'deletion'!=_0x45e4a5)continue;_0x22c662[_0xeb21db][_0x3683('0xe4')][_0x3683('0x60')](_0x1a77c2,0x1),_0x1a77c2--;const _0x153bc7=_0x7794b8['findIndex'](_0x1cda87=>_0x1cda87['name']==_0x21ed7b);_0x153bc7>-0x1&&_0x7794b8['splice'](_0x153bc7,0x1);}}function _0x5e4437(_0x331883){const _0x586531=_0x331883[_0x3683('0xcc')](':');return{'group':_0x586531[0x0],'type':_0x586531[0x1],'subType':_0x586531[_0x3683('0xcd')]>=0x5?_0x586531[0x2]:null,'id':_0x586531[_0x3683('0xcd')]<0x5?_0x586531[0x2]:_0x586531[0x3],'authorId':_0x586531['length']<0x5?_0x586531[0x3]:_0x586531[0x4],'markerCount':0x6==_0x586531[_0x3683('0xcd')]?_0x586531[0x5]:null};}function _0x431064(_0x5c487a){for(let _0x5f21ca=0x0;_0x5f21ca<_0x7794b8[_0x3683('0xcd')];_0x5f21ca++){if(_0x5c487a[_0x3683('0x9f')]&&_0x3683('0x10a')==_0x7794b8[_0x5f21ca][_0x3683('0xa2')])return _0x5c487a['isAddSuggestion']=_0x7794b8[_0x5f21ca],void delete _0x5c487a['isAdded'];if(!_0x5c487a['isAdded']&&!_0x5c487a[_0x3683('0x34')]&&'deletion'==_0x7794b8[_0x5f21ca]['type'])return void(_0x5c487a[_0x3683('0xfc')]=_0x7794b8[_0x5f21ca]);}}}[_0x3683('0xb4')](_0x1e4c82,_0xfdb2b0){let _0x966bd2=0x0,_0x5e2689=!0x1;const _0x267480=new Map();for(const _0x980d75 of _0x1e4c82)_0x980d75[_0xfdb2b0]?_0x5e2689&&(_0x966bd2++,_0x5e2689=!0x1):(_0x966bd2++,_0x5e2689=!0x0),_0x267480['set'](_0x980d75['id'],_0x966bd2);for(let _0xeea8d2=0x0;_0xeea8d2<_0x1e4c82[_0x3683('0xcd')];_0xeea8d2++){if('isRemoved'==_0xfdb2b0&&_0x1e4c82[_0xeea8d2][_0x3683('0x9f')]||'isAdded'==_0xfdb2b0&&_0x1e4c82[_0xeea8d2][_0x3683('0x34')])continue;if(_0x3683('0xac')==_0x1e4c82[_0xeea8d2][_0x3683('0xa2')]){_0x1e4c82[_0xeea8d2][_0x3683('0x55')]=0x0;continue;}const _0x1eb75a=_0x267480[_0x3683('0x72')](_0x1e4c82[_0xeea8d2][_0x3683('0x107')]),_0x19a691=_0x267480[_0x3683('0x72')](_0x1e4c82[_0xeea8d2]['id']);_0x1e4c82[_0xeea8d2][_0x3683('0x55')]=_0x1eb75a-_0x19a691;}}[_0x3683('0x32')](_0x245da9,_0x2b0be1,_0x1d19cc=!0x1){const _0x41a073=[];let _0x8be308=this[_0x3683('0xb')]['getIndex'](_0x245da9),_0xcce1c=this[_0x3683('0xb')][_0x3683('0x99')](_0x2b0be1);for(-0x1==_0xcce1c&&(_0xcce1c=this[_0x3683('0xb')][_0x3683('0x8')][_0x3683('0xcd')],_0x1d19cc=!0x1);_0x8be308<_0xcce1c;)_0x41a073['push'](this[_0x3683('0xb')][_0x3683('0xd0')](_0x8be308)),_0x8be308++;return _0x1d19cc&&_0x41a073[_0x3683('0x51')](this['repository'][_0x3683('0xd0')](_0x8be308)),_0x41a073;}['_threeWayMerge'](_0x84ac1a,_0x1d6417,_0x4a1622,_0x570cc2){const _0xed4af8=this['editor'][_0x3683('0xdc')][_0x3683('0xf2')];let _0x182d1d=_0x1d6417;for(;_0x84ac1a[_0x182d1d]&&_0x84ac1a[_0x182d1d][_0x3683('0x9f')];)_0x182d1d++;let _0x1f873f=_0x570cc2;for(;_0x4a1622[_0x1f873f]&&_0x4a1622[_0x1f873f][_0x3683('0x34')];)_0x1f873f++;_0xa5306f(_0x84ac1a,_0x1d6417,_0x182d1d),_0xa5306f(_0x4a1622,_0x570cc2,_0x1f873f);const _0xfb1acc=_0x4a1622[_0x3683('0x90')](_0x570cc2,_0x1f873f)[_0x3683('0x13')](_0x84ac1a['slice'](_0x1d6417,_0x182d1d));return _0xfb1acc[_0x3683('0x105')]((_0x5adbf8,_0x42adc6)=>_0x5adbf8[_0x3683('0xe0')]!=_0x42adc6[_0x3683('0xe0')]?_0x5adbf8[_0x3683('0xe0')]-_0x42adc6[_0x3683('0xe0')]:_0x5adbf8[_0x3683('0xce')]!=_0x42adc6[_0x3683('0xce')]?_0x5adbf8[_0x3683('0xce')]-_0x42adc6[_0x3683('0xce')]:_0x5adbf8['distance']!=_0x42adc6[_0x3683('0x55')]?_0x42adc6['distance']-_0x5adbf8[_0x3683('0x55')]:!!_0x5adbf8[_0x3683('0x9f')]!=!!_0x42adc6[_0x3683('0x9f')]?-0x1==_0x5adbf8[_0x3683('0xe0')]||0x0==_0x5adbf8['side']?_0x5adbf8[_0x3683('0x9f')]?-0x1:0x1:_0x5adbf8[_0x3683('0x9f')]?0x1:-0x1:_0x5adbf8[_0x3683('0x2f')]-_0x42adc6[_0x3683('0x2f')]),{'commonTape':_0xfb1acc,'iEnd':_0x182d1d,'jEnd':_0x1f873f};function _0xa5306f(_0x376d91,_0x39191a,_0x54d8f8){let _0x307978=-0x1,_0x39e554=Number[_0x3683('0x10')],_0x1e2f09=!0x0;for(let _0x1a0878=_0x39191a;_0x1a0878<_0x54d8f8;_0x1a0878++)if(_0xed4af8[_0x3683('0x9a')](_0x376d91[_0x1a0878][_0x3683('0x89')])||(_0x1e2f09=!0x1),_0x376d91[_0x1a0878][_0x3683('0x89')][_0x3683('0x74')]<_0x39191a&&(_0x307978=_0x1a0878),_0x376d91[_0x1a0878][_0x3683('0x89')]['endIndex']>=_0x54d8f8){_0x39e554=_0x1a0878;break;}_0x1e2f09&&(_0x307978=_0x54d8f8-0x1);for(let _0x2d037d=_0x39191a;_0x2d037d<_0x54d8f8;_0x2d037d++)_0x376d91[_0x2d037d][_0x3683('0xe0')]=_0x2d037d<=_0x307978?-0x1:_0x2d037d<_0x39e554?0x0:0x1,_0x376d91[_0x2d037d]['index']=_0x2d037d;let _0x4535bd=0x0;for(let _0x152008=_0x39191a;_0x152008<=_0x307978;_0x152008++)0x0==_0x376d91[_0x152008][_0x3683('0x55')]?_0x376d91[_0x152008]['level']=_0x4535bd:(_0x4535bd++,_0x376d91[_0x152008][_0x3683('0xce')]=_0x4535bd,_0x4535bd++);for(let _0x38c2c5=_0x39191a;_0x38c2c5<_0x54d8f8;_0x38c2c5++)0x0==_0x376d91[_0x38c2c5][_0x3683('0xe0')]&&(_0x376d91[_0x38c2c5][_0x3683('0xce')]=_0x4535bd);_0x4535bd=0x0;for(let _0x392709=_0x54d8f8-0x1;_0x392709>=_0x39e554;_0x392709--)0x0==_0x376d91[_0x392709][_0x3683('0x55')]?_0x376d91[_0x392709][_0x3683('0xce')]=_0x4535bd:(_0x4535bd--,_0x376d91[_0x392709]['level']=_0x4535bd,_0x4535bd--);}}[_0x3683('0x91')](_0x5646d6){const _0x1648fe=new Map(),_0x47a53c=this[_0x3683('0xe9')][_0x3683('0xdc')]['schema'];for(let _0x255080=0x1;_0x255080<_0x5646d6[_0x3683('0xcd')];_0x255080++){let _0x21e071,_0x3e7c3c,_0x346ed6;const _0xcbc916=_0x5646d6[_0x255080],_0x1d9da8=_0x5646d6[_0x255080-0x1];if(_0x3683('0xac')==_0xcbc916['type'])continue;if(_0xcbc916['type']!=_0x1d9da8['type'])continue;if(!_0x47a53c['isBlock'](_0x1d9da8['item'])||_0x47a53c[_0x3683('0xdb')](_0x1d9da8[_0x3683('0x89')]))continue;if(!_0x47a53c[_0x3683('0x18')](_0xcbc916[_0x3683('0x89')])||_0x47a53c[_0x3683('0xdb')](_0xcbc916['item']))continue;if((_0x5646d6[_0x255080][_0x3683('0x9f')]||_0x5646d6[_0x255080][_0x3683('0xf3')])&&_0x5646d6[_0x255080-0x1][_0x3683('0x34')])_0x21e071=_0x5646d6[_0x255080],_0x3e7c3c=_0x5646d6[_0x255080-0x1],_0x346ed6=_0x255080-0x1;else{if(!_0x5646d6[_0x255080][_0x3683('0x34')]||!_0x5646d6[_0x255080-0x1][_0x3683('0x9f')]&&!_0x5646d6[_0x255080-0x1][_0x3683('0xf3')])continue;_0x21e071=_0x5646d6[_0x255080-0x1],_0x3e7c3c=_0x5646d6[_0x255080],_0x346ed6=_0x255080;}const _0x16a181=_0x21e071[_0x3683('0xce')]==_0x3e7c3c[_0x3683('0xce')],_0x516122=Math[_0x3683('0x85')](_0x21e071[_0x3683('0xce')])<Math['abs'](_0x3e7c3c[_0x3683('0xce')])&&0x0==_0x3e7c3c['distance'];(_0x16a181||_0x516122)&&(_0x1648fe['set'](_0x3e7c3c['id'],_0x21e071['id']),_0x5646d6[_0x3683('0x60')](_0x346ed6,0x1),_0x255080--,_0x21e071[_0x3683('0x9f')]=!0x1);}for(let _0x5a6ca5=0x0;_0x5a6ca5<_0x5646d6[_0x3683('0xcd')];_0x5a6ca5++)_0x1648fe['has'](_0x5646d6[_0x5a6ca5][_0x3683('0x107')])&&(_0x5646d6[_0x5a6ca5][_0x3683('0x107')]=_0x1648fe[_0x3683('0x72')](_0x5646d6[_0x5a6ca5][_0x3683('0x107')]));}[_0x3683('0xa8')](_0x44a671){const _0x53b198=new Set(_0x44a671[_0x3683('0xdf')](_0x3cf774=>_0x3cf774['id']));for(let _0x118bb0=0x0;_0x118bb0<_0x44a671['length'];_0x118bb0++)_0x53b198['has'](_0x44a671[_0x118bb0]['pairId'])||0x0==_0x44a671[_0x118bb0][_0x3683('0x55')]||(_0x44a671[_0x118bb0][_0x3683('0x2c')]=!0x0);return _0x44a671['filter'](_0x4f94c1=>!_0x4f94c1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x168f62){const _0x31123e=new Set();for(let _0x2e87b0=0x0;_0x2e87b0<_0x168f62[_0x3683('0xcd')];_0x2e87b0++){if(_0x31123e[_0x3683('0xc6')](_0x168f62[_0x2e87b0]['id'])&&_0x168f62[_0x2e87b0]['isRemoved']&&(_0x168f62[_0x2e87b0]['isIncorrect']=!0x0),_0x168f62[_0x2e87b0][_0x3683('0x2c')])continue;if(0x0==_0x168f62[_0x2e87b0][_0x3683('0x55')])continue;if(_0x3683('0x65')!=_0x168f62[_0x2e87b0][_0x3683('0xa2')])continue;if(null==_0x168f62[_0x2e87b0][_0x3683('0x107')])continue;let _0x2b332a=_0x2e87b0+0x1,_0x2ae1d7=0x0;for(;_0x168f62[_0x2b332a]['id']!=_0x168f62[_0x2e87b0][_0x3683('0x107')];)'elementStart'==_0x168f62[_0x2b332a][_0x3683('0xa2')]?_0x2ae1d7++:'elementEnd'==_0x168f62[_0x2b332a][_0x3683('0xa2')]&&_0x2ae1d7--,_0x2b332a++;if(0x0!=_0x2ae1d7){if(_0x168f62[_0x2e87b0][_0x3683('0x34')])_0x168f62[_0x2e87b0][_0x3683('0x2c')]=!0x0;else for(;_0x2b332a!=_0x2e87b0;)_0x168f62[_0x2b332a][_0x3683('0x34')]&&0x0!=_0x168f62[_0x2b332a][_0x3683('0x55')]&&(_0x168f62[_0x2b332a][_0x3683('0x2c')]=!0x0,_0x31123e[_0x3683('0x61')](_0x168f62[_0x2b332a]['pairId'])),_0x2b332a--;}}return _0x168f62[_0x3683('0xfe')](_0x11ba16=>!_0x11ba16[_0x3683('0x2c')]);}[_0x3683('0x6a')](_0x10025b){const _0x545c18=this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0xf2')];for(let _0x550f3e=0x0;_0x550f3e<_0x10025b[_0x3683('0xcd')];_0x550f3e++){if(!(_0x10025b[_0x550f3e][_0x3683('0x9f')]||_0x10025b[_0x550f3e]['isAddSuggestion']||_0x10025b[_0x550f3e][_0x3683('0x34')]||_0x10025b[_0x550f3e][_0x3683('0xfc')]))continue;if(0x0==_0x10025b[_0x550f3e][_0x3683('0x55')])continue;const _0x248bf9=_0x10025b[_0x550f3e][_0x3683('0x89')];_0x545c18[_0x3683('0x18')](_0x248bf9)||_0x545c18[_0x3683('0xdb')](_0x248bf9)||(_0x10025b[_0x550f3e][_0x3683('0x9f')]&&delete _0x10025b[_0x550f3e][_0x3683('0x9f')],_0x10025b[_0x550f3e][_0x3683('0xf3')]&&delete _0x10025b[_0x550f3e]['isAddSuggestion'],_0x10025b[_0x550f3e][_0x3683('0xfc')]&&delete _0x10025b[_0x550f3e][_0x3683('0xfc')],_0x10025b[_0x550f3e][_0x3683('0x34')]&&(_0x10025b[_0x550f3e]['isIncorrect']=!0x0));}return _0x10025b['filter'](_0x401cef=>!_0x401cef[_0x3683('0x2c')]);}[_0x3683('0x1b')](_0x40a524,_0x273a9a){const _0x4666b4=new _0x56c45c(),_0x1311d0=[],_0x413c08=new Map(),_0x5d8bcd=this[_0x3683('0xe9')][_0x3683('0xdc')],_0x3c698c=_0x5d8bcd['schema'],_0x5ce982=[_0x4666b4],_0x14993d={},_0x2541e4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x304ac3=null;const _0x3b9ef9=[0x0];for(let _0x1278ea=0x0;_0x1278ea<_0x40a524[_0x3683('0xcd')];_0x1278ea++){let _0x1c0457,_0x4abc3a;if(_0x3683('0x65')===_0x40a524[_0x1278ea][_0x3683('0xa2')]){_0x1c0457=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9);const _0x46ee1d=new _0x1b2555(_0x40a524[_0x1278ea]['item']['name'],_0x40a524[_0x1278ea]['item'][_0x3683('0xfa')]());_0x5ce982[0x0][_0x3683('0x67')](_0x46ee1d),_0x3b9ef9[_0x3683('0x51')](0x0),_0x5ce982[_0x3683('0x8d')](_0x46ee1d),_0x4abc3a=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x304ac3=null;}else{if(_0x3683('0x3f')===_0x40a524[_0x1278ea][_0x3683('0xa2')])_0x5ce982[_0x3683('0xb3')](),_0x1c0457=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x3b9ef9[_0x3683('0x19')](),_0x3b9ef9[_0x3b9ef9[_0x3683('0xcd')]-0x1]++,_0x4abc3a=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x304ac3=null;else{if(_0x1c0457=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9),_0x304ac3&&_0x102ac3(_0x304ac3,_0x40a524[_0x1278ea][_0x3683('0x89')]))_0x304ac3[_0x3683('0x3a')]+=_0x40a524[_0x1278ea]['item'][_0x3683('0xa6')];else{const _0x3e2d09=new _0x2d360a(_0x40a524[_0x1278ea][_0x3683('0x89')]['data'],_0x40a524[_0x1278ea][_0x3683('0x89')][_0x3683('0xfa')]());_0x5ce982[0x0][_0x3683('0x67')](_0x3e2d09),_0x304ac3=_0x3e2d09;}_0x3b9ef9[_0x3b9ef9['length']-0x1]+=_0x40a524[_0x1278ea][_0x3683('0x89')][_0x3683('0x6f')],_0x4abc3a=_0x5d8bcd[_0x3683('0xf5')](_0x4666b4,_0x3b9ef9);}}for(const _0x584f83 of _0x40a524[_0x1278ea][_0x3683('0xb9')])_0x413c08[_0x3683('0x9d')](_0x584f83,{'start':_0x1c0457,'end':null});_0x292202(_0x3683('0xfc'),_0x1278ea,_0x1c0457,_0x4abc3a),_0x292202('isAddSuggestion',_0x1278ea,_0x1c0457,_0x4abc3a),_0x292202(_0x3683('0x34'),_0x1278ea,_0x1c0457,_0x4abc3a),_0x292202(_0x3683('0x9f'),_0x1278ea,_0x1c0457,_0x4abc3a);for(const _0x4911d6 of _0x40a524[_0x1278ea][_0x3683('0xe4')]){_0x413c08['get'](_0x4911d6)[_0x3683('0xef')]=_0x4abc3a;}}for(const [_0x45759d,_0x202587]of _0x413c08){const _0xa535e7=this[_0x3683('0xe9')]['model'][_0x3683('0x106')](_0x202587[_0x3683('0x5a')],_0x202587[_0x3683('0xef')]);_0x4666b4[_0x3683('0x71')][_0x3683('0x9d')](_0x45759d,_0xa535e7);}return _0x1311d0['sort']((_0x395a35,_0x2b283a)=>{const _0xb2b40b=_0x4666b4['markers']['get'](_0x3683('0xcb')+_0x395a35['id']),_0x20a777=_0x4666b4[_0x3683('0x71')][_0x3683('0x72')](_0x3683('0xcb')+_0x2b283a['id']);return _0xb2b40b[_0x3683('0x5a')][_0x3683('0x92')](_0x20a777[_0x3683('0x5a')])?-0x1:_0xb2b40b[_0x3683('0x5a')][_0x3683('0xc3')](_0x20a777[_0x3683('0x5a')])?0x1:_0xb2b40b[_0x3683('0xef')]['isBefore'](_0x20a777[_0x3683('0xef')])?-0x1:_0xb2b40b[_0x3683('0xef')][_0x3683('0xc3')](_0x20a777[_0x3683('0xef')])?0x1:_0x3683('0x61')===_0x395a35[_0x3683('0xa2')]?-0x1:0x1;}),{'root':_0x4666b4,'changes':_0x1311d0};function _0x292202(_0x8be7d0,_0x37edb4,_0xbace78,_0x5ddc59){const _0xd3cfc3=!!_0x40a524[_0x37edb4][_0x8be7d0],_0x4785be=_0xd3cfc3?_0x40a524[_0x37edb4][_0x8be7d0]['userId']:null,_0x13599a=_0x37edb4===_0x40a524[_0x3683('0xcd')]-0x1,_0x5c9864=_0x2541e4[_0x8be7d0][0x0],_0x8ff0c4=_0x3c698c[_0x3683('0x102')](_0x40a524[_0x37edb4]['item']);!_0x14993d[_0x8be7d0]&&_0xd3cfc3?_0x14993d[_0x8be7d0]={'start':_0xbace78,'tapeItem':_0x40a524[_0x37edb4],'userId':_0x4785be,'type':_0x8be7d0}:_0x14993d[_0x8be7d0]&&!_0xd3cfc3?(_0x14993d[_0x8be7d0][_0x3683('0xef')]=_0xbace78,_0x1e1159(_0x14993d[_0x8be7d0]),_0x14993d[_0x8be7d0]=null):_0x14993d[_0x8be7d0]&&_0xd3cfc3&&_0x14993d[_0x8be7d0][_0x3683('0x87')]!==_0x4785be&&(_0x14993d[_0x8be7d0][_0x3683('0xef')]=_0xbace78,_0x5c9864&&_0x5c9864[_0x3683('0x87')]===_0x14993d[_0x8be7d0]['userId']||_0x1e1159(_0x14993d[_0x8be7d0]),_0x14993d[_0x8be7d0]={'start':_0xbace78,'tapeItem':_0x40a524[_0x37edb4],'userId':_0x4785be,'type':_0x8be7d0}),_0x14993d[_0x8be7d0]&&_0x8ff0c4&&(_0x3683('0x65')!==_0x40a524[_0x37edb4][_0x3683('0xa2')]||_0x5c9864&&_0x5c9864[_0x3683('0x87')]===_0x4785be||_0x2541e4[_0x8be7d0][_0x3683('0x8d')]({'userId':_0x4785be,'object':_0x40a524[_0x37edb4][_0x3683('0x89')],'change':_0x14993d[_0x8be7d0]}),_0x3683('0x3f')===_0x40a524[_0x37edb4][_0x3683('0xa2')]&&_0x5c9864&&_0x5c9864[_0x3683('0x12')]===_0x40a524[_0x37edb4][_0x3683('0x89')]&&(_0x2541e4[_0x8be7d0][_0x3683('0xb3')](),_0x14993d[_0x8be7d0]=_0x5c9864[_0x3683('0x6c')])),_0x14993d[_0x8be7d0]&&_0x13599a&&(_0x14993d[_0x8be7d0]['end']=_0x5ddc59,_0x1e1159(_0x14993d[_0x8be7d0]),_0x14993d[_0x8be7d0]=null);}function _0x1e1159({start:_0x39a6bf,end:_0x10c47d,tapeItem:_0x332ba7,userId:_0x39b800,type:_0x2e86fb}){const _0x2e5dac=_0x332ba7['item'],_0x343f1a=_0x5d8bcd[_0x3683('0xf2')][_0x3683('0x18')](_0x2e5dac)&&!_0x5d8bcd[_0x3683('0xf2')][_0x3683('0xdb')](_0x2e5dac),_0x3ab5d7=_0x39a6bf[_0x3683('0xba')]==_0x10c47d['parent']&&_0x10c47d[_0x3683('0x1f')];if(_0x343f1a&&_0x3ab5d7)return;const _0x1050d7=_0x5d8bcd[_0x3683('0x106')](_0x39a6bf,_0x10c47d),_0x145835=_0x273a9a[_0x3683('0x72')](_0x39b800),_0x405338=new _0x2f83f8({'author':_0x145835,'type':_0x3683('0x9f')==_0x2e86fb||_0x3683('0xf3')==_0x2e86fb?_0x3683('0x61'):_0x3683('0x16'),'data':{'isSuggestion':_0x3683('0xf3')==_0x2e86fb||_0x3683('0xfc')==_0x2e86fb},'createdAt':new Date()});_0x1311d0[_0x3683('0x51')](_0x405338),_0x4666b4[_0x3683('0x71')]['set'](_0x3683('0xcb')+_0x405338['id'],_0x1050d7);}function _0x102ac3(_0x1e93c4,_0x5c1bc0){const _0x5b48cf=_0x1e93c4['getAttributes'](),_0x34af67=_0x5c1bc0['getAttributes']();for(const _0x1b9948 of _0x5b48cf){if(_0x1b9948[0x1]!==_0x5c1bc0[_0x3683('0x44')](_0x1b9948[0x0]))return!0x1;_0x34af67[_0x3683('0x82')]();}return _0x34af67[_0x3683('0x82')]()[_0x3683('0xb2')];}}[_0x3683('0x6')](){this['editor'][_0x3683('0x8b')][_0x3683('0x8f')]('upcast')[_0x3683('0xd')]({'view':'revision'}),this['editor'][_0x3683('0x8b')]['for'](_0x3683('0x6b'))[_0x3683('0x1c')]({'model':_0x3683('0x2a'),'view':_0x177a55=>{const _0x4a1ac3=_0x177a55['markerName'][_0x3683('0xcc')](':')[0x1],_0x4a1dd6=this[_0x3683('0x73')](_0x4a1ac3);if(!_0x4a1dd6)return null;const _0x225418=_0x3683('0x61')==_0x4a1dd6[_0x3683('0xa2')]?_0x3683('0x10a'):_0x3683('0x80'),_0x421d34=['ck-suggestion-marker','ck-suggestion-marker-'+_0x225418];return _0x4a1dd6[_0x3683('0xa6')][_0x3683('0xa7')]&&_0x421d34[_0x3683('0x51')]('ck-suggestion-marker-'+_0x225418+_0x3683('0x7c')),this[_0x3683('0x83')]==_0x4a1dd6&&_0x421d34[_0x3683('0x51')]('ck-suggestion-marker--active'),{'classes':_0x421d34,'attributes':{'data-change-id':_0x4a1ac3}};}}),this['editor']['conversion'][_0x3683('0x8f')]('upcast')['add'](_0x52f7b7=>{_0x52f7b7['on']('element:pre',(_0x58565d,_0x5e33a5,_0x5994e8)=>{const _0x3dc1a7=_0x5e33a5[_0x3683('0x96')][_0x3683('0x8c')](0x0);if(!_0x3dc1a7||!_0x3dc1a7['is'](_0x3683('0xe7'),_0x3683('0x43')))return;if(!_0x5994e8[_0x3683('0x7a')][_0x3683('0x52')](_0x3dc1a7,{'attributes':[_0x3683('0x40'),'vid_end']}))return;const _0x29b02b=_0x5e33a5[_0x3683('0xc1')][_0x3683('0x5a')][_0x3683('0xba')];_0x5994e8[_0x3683('0x7f')][_0x3683('0x3d')](_0x3683('0x40'),_0x3dc1a7[_0x3683('0x44')](_0x3683('0x40')),_0x29b02b),_0x5994e8[_0x3683('0x7f')]['setAttribute'](_0x3683('0x35'),_0x3dc1a7[_0x3683('0x44')](_0x3683('0x35')),_0x29b02b);},{'priority':_0x3683('0xca')});}),this[_0x3683('0xe9')]['conversion'][_0x3683('0x8f')]('upcast')[_0x3683('0x61')](_0x362c6a=>{_0x362c6a['on'](_0x3683('0xe7'),(_0x42c1bb,_0x6a5f62,_0x68139b)=>{if(!_0x68139b[_0x3683('0x7a')][_0x3683('0x52')](_0x6a5f62['viewItem'],{'attributes':['vid_start',_0x3683('0x35')]}))return;if(_0x6a5f62[_0x3683('0xc1')]['isCollapsed'])return;const _0x218a74=_0x6a5f62[_0x3683('0xc1')][_0x3683('0x5a')][_0x3683('0xba')];_0x218a74[_0x3683('0x15')]('vid_start')||_0x218a74[_0x3683('0x15')](_0x3683('0x84'))||(_0x68139b[_0x3683('0x7f')][_0x3683('0x3d')]('vid_start',_0x6a5f62[_0x3683('0x96')][_0x3683('0x44')](_0x3683('0x40')),_0x218a74),_0x68139b[_0x3683('0x7f')][_0x3683('0x3d')](_0x3683('0x35'),_0x6a5f62[_0x3683('0x96')][_0x3683('0x44')](_0x3683('0x35')),_0x218a74));},{'priority':_0x3683('0xca')});}),this[_0x3683('0xe9')][_0x3683('0x8b')][_0x3683('0x8f')](_0x3683('0x95'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x3683('0x84'),'value':_0x5d4c1f=>_0x5d4c1f[_0x3683('0x44')](_0x3683('0x84'))}}),this['editor'][_0x3683('0xdc')][_0x3683('0xf2')]['on']('checkAttribute',(_0x48096d,[,_0x6fcbaa])=>{['vid_start',_0x3683('0x35'),'vid'][_0x3683('0x4b')](_0x6fcbaa)&&(_0x48096d['return']=!0x0,_0x48096d[_0x3683('0xed')]());},{'priority':_0x3683('0xd6')}),this[_0x3683('0xe9')][_0x3683('0x8b')][_0x3683('0x8f')](_0x3683('0xae'))[_0x3683('0x61')](_0x3da628=>{_0x3da628['on'](_0x3683('0x57'),(_0x516307,_0x21b457,_0x1f2ed9)=>{if('\x20'!=_0x21b457['item']['data']||_0x21b457[_0x3683('0x89')][_0x3683('0xc0')][_0x3683('0x6d')]>0x1)return;if(!_0x1f2ed9[_0x3683('0x7a')]['consume'](_0x21b457[_0x3683('0x89')],_0x516307[_0x3683('0x22')]))return;const _0x55711a=_0x1f2ed9[_0x3683('0x7f')],_0x2654bb=_0x1f2ed9[_0x3683('0xf8')][_0x3683('0xe6')](_0x21b457[_0x3683('0xc')]);_0x55711a[_0x3683('0xde')](_0x2654bb,_0x55711a['createAttributeElement'](_0x3683('0x33')));});}),this['editor']['conversion']['for'](_0x3683('0xae'))[_0x3683('0x98')]({'model':'revision'}),this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0xd5'),function(_0x3aec6b){const _0x34728e=_0x3aec6b[_0x3683('0x14')][_0x3683('0x72')](_0x3683('0x21'));return(_0x14b803,_0xd71433,_0x506afe)=>{const _0x3415ce=_0xd71433[_0x3683('0x5')]['split'](':')[0x1],_0x360a2e=_0x34728e['_getChangeFromId'](_0x3415ce);if(!_0x360a2e)return null;const _0x27fec9=_0x3683('0x61')==_0x360a2e['type']?_0x3683('0xcc'):_0x3683('0xbe');if(!_0x506afe['consumable'][_0x3683('0x2e')](_0xd71433[_0x3683('0x9')],_0x14b803[_0x3683('0x22')]))return;const _0x94c8f6=_0xd71433[_0x3683('0x9')][_0x3683('0x1e')](),_0x375c38=_0xd71433['markerRange'][_0x3683('0x5a')],_0x304f3e=_0x3aec6b[_0x3683('0xdc')][_0x3683('0xf2')];let _0x332eb6=null,_0x3eef90=null,_0x5a51c3=!0x1,_0x122839=!0x1;for(const _0x110c5c of _0x94c8f6){const _0x244735=_0x110c5c[_0x3683('0x89')];_0x5a51c3=_0x5a51c3||_0x304f3e['isContent'](_0x244735);const _0x219fd3=_0x506afe[_0x3683('0xf8')][_0x3683('0xea')](_0x244735);if(_0x219fd3&&_0x219fd3[_0x3683('0xd8')](_0x3683('0xf')))return;_0x3683('0x3f')==_0x110c5c[_0x3683('0xa2')]&&(_0x304f3e['isBlock'](_0x244735)&&!_0x304f3e[_0x3683('0xdb')](_0x244735)&&(_0x244735[_0x3683('0x25')]||_0x375c38[_0x3683('0x8e')]?_0x332eb6&&_0x332eb6[_0x3683('0xc0')]==_0x244735||(_0x332eb6=_0x244735,_0x26fb17(_0x110c5c[_0x3683('0xbd')]),_0x122839=!0x0):_0x3eef90=_0x3eef90||_0x110c5c['previousPosition']));}function _0x26fb17(_0x473c6d){const _0x126fdb=_0x506afe['writer']['createUIElement'](_0x3683('0x33'),{'class':_0x3683('0x38')+_0x27fec9}),_0x3eaec7=_0x506afe[_0x3683('0xf8')][_0x3683('0x31')](_0x473c6d);_0x360a2e[_0x3683('0xa6')][_0x3683('0xa7')]&&_0x506afe[_0x3683('0x7f')][_0x3683('0xc2')](_0x3683('0x38')+_0x27fec9+'-new',_0x126fdb),_0x34728e[_0x3683('0x83')]==_0x360a2e&&_0x506afe[_0x3683('0x7f')][_0x3683('0xc2')]('ck-suggestion-marker--active',_0x126fdb),_0x506afe[_0x3683('0x7f')][_0x3683('0xd9')](_0x3eaec7,_0x126fdb),_0x506afe['mapper']['bindElementToMarker'](_0x126fdb,_0xd71433['markerName']);}_0x5a51c3||_0x122839||!_0x3eef90||_0x26fb17(_0x3eef90);};}(this['editor']),{'priority':_0x3683('0xfb')}),this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0x6e'),(_0xe40d3b,_0x26a7f3,_0x54d99e)=>{const _0x4fb57e=_0x54d99e[_0x3683('0xf8')][_0x3683('0xbb')](_0x26a7f3['markerName']);if(_0x4fb57e)for(const _0x529519 of _0x4fb57e)(_0x529519['hasClass']('ck-suggestion-marker-split')||_0x529519[_0x3683('0xf7')](_0x3683('0x4e')))&&(_0x54d99e[_0x3683('0xf8')][_0x3683('0x11')](_0x529519,_0x26a7f3['markerName']),_0x54d99e[_0x3683('0x7f')][_0x3683('0x16')](_0x529519));},{'priority':'high'}),this['editor'][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0xd5'),(_0x354b33,_0x1f0aa1,_0x248c47)=>{const _0x44969e=_0x1f0aa1[_0x3683('0x5')][_0x3683('0xcc')](':')[0x1],_0x40bde0=this[_0x3683('0x73')](_0x44969e);if(!_0x40bde0)return null;const _0xfe19f0=_0x3683('0x61')==_0x40bde0[_0x3683('0xa2')]?_0x3683('0xcc'):_0x3683('0xbe');if(_0x248c47[_0x3683('0x7a')][_0x3683('0x2e')](_0x1f0aa1[_0x3683('0x9')],_0x354b33[_0x3683('0x22')]))for(const _0x10ec00 of _0x1f0aa1['markerRange'][_0x3683('0xe5')]()){if(!_0x10ec00['is'](_0x3683('0xe7'),_0x3683('0x8a')))continue;const _0x23a999=_0x248c47[_0x3683('0x7f')][_0x3683('0xff')](_0x3683('0x33'),{'class':_0x3683('0x38')+_0xfe19f0}),_0x475cd5=_0x248c47[_0x3683('0xf8')]['toViewPosition'](this[_0x3683('0xe9')]['model'][_0x3683('0xc9')](_0x10ec00));_0x40bde0[_0x3683('0xa6')][_0x3683('0xa7')]&&_0x248c47['writer'][_0x3683('0xc2')]('ck-suggestion-marker-'+_0xfe19f0+'-new',_0x23a999),this[_0x3683('0x83')]==_0x40bde0&&_0x248c47[_0x3683('0x7f')]['addClass'](_0x3683('0x2'),_0x23a999),_0x248c47[_0x3683('0x7f')][_0x3683('0xd9')](_0x475cd5,_0x23a999),_0x248c47['mapper'][_0x3683('0x39')](_0x23a999,_0x1f0aa1['markerName']);}},{'priority':'high'}),this['editor'][_0x3683('0x8b')][_0x3683('0x8f')](_0x3683('0x95'))[_0x3683('0xd')]({'view':_0x3683('0x5f')}),this[_0x3683('0xe9')][_0x3683('0x8b')]['for'](_0x3683('0xae'))[_0x3683('0x98')]({'model':_0x3683('0x5f')}),this[_0x3683('0xe9')]['conversion']['for'](_0x3683('0x6b'))['markerToHighlight']({'model':'suggestion','view':_0x40097c=>{const _0x5296af=_0x40097c[_0x3683('0x5')]['split'](':')[0x1];return _0x3683('0x10a')!=_0x5296af&&'deletion'!=_0x5296af?null:{'classes':[_0x3683('0x86'),'ck-suggestion-preview-marker-'+_0x5296af]};}}),this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x48')]['on']('addMarker:suggestion:deletion',K(this[_0x3683('0xe9')],_0x3683('0xbe')),{'priority':_0x3683('0xfb')}),this[_0x3683('0xe9')]['editing'][_0x3683('0x48')]['on']('addMarker:suggestion:insertion',K(this['editor'],'split'),{'priority':_0x3683('0xfb')}),this['editor'][_0x3683('0xc4')][_0x3683('0x48')]['on'](_0x3683('0x23'),(_0x558302,_0x387825,_0x3fdecf)=>{const _0x523db2=_0x3fdecf['mapper'][_0x3683('0xbb')](_0x387825[_0x3683('0x5')]);if(_0x523db2)for(const _0x2e2159 of _0x523db2)_0x2e2159['is'](_0x3683('0x1'))&&(_0x3fdecf[_0x3683('0xf8')][_0x3683('0x11')](_0x2e2159,_0x387825[_0x3683('0x5')]),_0x3fdecf[_0x3683('0x7f')][_0x3683('0x16')](_0x2e2159));},{'priority':_0x3683('0xfb')});}[_0x3683('0x73')](_0x8e68c3){return this[_0x3683('0x109')]['get'](_0x8e68c3);}[_0x3683('0x4f')](_0x441255){this[_0x3683('0x9c')]&&this[_0x3683('0x9c')][_0x3683('0x41')](),this[_0x3683('0x9c')]=new _0x7a460(this[_0x3683('0xe9')][_0x3683('0xaa')],_0x441255);const _0x56f596=this[_0x3683('0xe9')][_0x3683('0xdc')]['markers'][_0x3683('0x72')](_0x3683('0xcb')+_0x441255['id']);return this[_0x3683('0x9c')][_0x3683('0x0')]=()=>_0x4b2ed6(this[_0x3683('0xe9')][_0x3683('0xc4')],_0x56f596),this[_0x3683('0x9c')];}[_0x3683('0x17')](){this[_0x3683('0xe9')]['model'][_0x3683('0x88')]['selection'][_0x3683('0x45')]('revision'),this['on'](_0x3683('0xc8'),(_0x47620c,_0x2ca591,_0x3c5253,_0x48e510)=>{_0x48e510&&this['_balloon']['remove'](_0x48e510),_0x3c5253&&(this[_0x3683('0xb1')][_0x3683('0x61')]({'view':_0x3c5253,'stackId':_0x3683('0xd3'),'position':{'target':_0x3c5253[_0x3683('0x0')]}}),this[_0x3683('0xb1')][_0x3683('0x4')]('revisionHistoryLabel'));}),this['on'](_0x3683('0xe'),(_0x2dd453,_0x4530b6,_0x20d662,_0x2ea6cb)=>{this[_0x3683('0x101')]=_0x20d662?this[_0x3683('0x4f')](_0x20d662):null,this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x6c')](()=>{const _0x148d71=this[_0x3683('0xe9')][_0x3683('0xc4')];_0x2ea6cb&&_0x148d71['reconvertMarker'](_0x3683('0xcb')+_0x2ea6cb['id']),_0x20d662&&_0x148d71[_0x3683('0x7d')](_0x3683('0xcb')+_0x20d662['id']);});}),this[_0x3683('0x47')](this['editor'][_0x3683('0xc4')][_0x3683('0x76')]['document'],'mouseover',(_0x419ea6,_0x5a4dd4)=>{if(this[_0x3683('0x83')])return;const _0x428793=this[_0x3683('0x70')](_0x5a4dd4[_0x3683('0x3c')]),_0x19d48f=this[_0x3683('0x109')][_0x3683('0x72')](_0x428793);this['activeView']=_0x19d48f?this[_0x3683('0x4f')](_0x19d48f):null;}),this[_0x3683('0x47')](this[_0x3683('0xe9')][_0x3683('0xc4')][_0x3683('0x76')][_0x3683('0x88')],_0x3683('0xb6'),(_0xb84a67,_0x5d4b59)=>{const _0x5beef2=this[_0x3683('0x70')](_0x5d4b59[_0x3683('0x3c')]),_0x37000f=this[_0x3683('0x109')]['get'](_0x5beef2);this[_0x3683('0x83')]=_0x37000f||null;});}['_findChangeIdFromDomTarget'](_0x13be24){do{const _0x278742=_0x13be24[_0x3683('0x44')](_0x3683('0x58'));if(_0x278742)return _0x278742;_0x13be24=_0x13be24[_0x3683('0xc0')];}while(_0x13be24);return null;}[_0x3683('0xb5')](){this[_0x3683('0xe9')][_0x3683('0xdc')][_0x3683('0x6c')](_0x53912c=>{for(const _0x3c9f53 of this[_0x3683('0xe9')][_0x3683('0xdc')]['markers'])_0x53912c[_0x3683('0xeb')](_0x3c9f53);});}}function K(_0x4b4485,_0x40754f){return(_0x1ae7ba,_0x3d9bb7,_0x6011f8)=>{if(!_0x6011f8['consumable'][_0x3683('0x2e')](_0x3d9bb7[_0x3683('0x9')],_0x1ae7ba[_0x3683('0x22')]))return;const _0x4d28c2=_0x3d9bb7[_0x3683('0x9')][_0x3683('0x1e')](),_0x594711=_0x3d9bb7['markerRange'][_0x3683('0x5a')],_0x5af79a=_0x4b4485[_0x3683('0xdc')][_0x3683('0xf2')];let _0x56421f=null,_0x55314e=null,_0x4ff02b=!0x1,_0x3f2f8e=!0x1;for(const _0x4ebc9a of _0x4d28c2){const _0x511832=_0x4ebc9a[_0x3683('0x89')];_0x4ff02b=_0x4ff02b||_0x5af79a[_0x3683('0xa3')](_0x511832);const _0x302ed6=_0x6011f8['mapper']['toViewElement'](_0x511832);if(_0x302ed6&&_0x302ed6[_0x3683('0xd8')](_0x3683('0xf')))return;_0x3683('0x3f')==_0x4ebc9a[_0x3683('0xa2')]&&(_0x5af79a[_0x3683('0x18')](_0x511832)&&!_0x5af79a['isLimit'](_0x511832)&&(_0x511832[_0x3683('0x25')]||_0x594711['isAtEnd']?_0x56421f&&_0x56421f[_0x3683('0xc0')]==_0x511832||(_0x56421f=_0x511832,_0x5c60ba(_0x4ebc9a[_0x3683('0xbd')]),_0x3f2f8e=!0x0):_0x55314e=_0x55314e||_0x4ebc9a[_0x3683('0xbd')]));}function _0x5c60ba(_0x1702d8){const _0x3a683f=_0x6011f8[_0x3683('0xf8')][_0x3683('0x31')](_0x1702d8),_0x283d48=_0x6011f8[_0x3683('0x7f')][_0x3683('0xff')](_0x3683('0x33'),{'class':_0x3683('0xf9')+_0x40754f});_0x6011f8[_0x3683('0x7f')][_0x3683('0xd9')](_0x3a683f,_0x283d48),_0x6011f8['mapper'][_0x3683('0x39')](_0x283d48,_0x3d9bb7[_0x3683('0x5')]);}_0x4ff02b||_0x3f2f8e||!_0x55314e||_0x5c60ba(_0x55314e);};}_0xa2a605(d,_0x47cfb5);class Q extends _0x4aaa93{constructor(_0x2b9bc4){super(_0x2b9bc4);const _0x21abc1=_0x2b9bc4['plugins'][_0x3683('0x72')](d);this[_0x3683('0x5b')](_0x2b9bc4,_0x3683('0x100')),this[_0x3683('0xe8')](_0x3683('0x24')),this[_0x3683('0x47')](_0x21abc1,_0x3683('0xa4'),()=>this[_0x3683('0x4a')]()),this[_0x3683('0x47')](_0x21abc1,_0x3683('0xf0'),()=>this[_0x3683('0x4a')]());}[_0x3683('0x94')](){const _0x196315=this[_0x3683('0xe9')],_0x1c9943=_0x196315[_0x3683('0x14')][_0x3683('0x72')](d),_0x433008=_0x1c9943[_0x3683('0x7e')]?_0x1c9943[_0x3683('0x78')][_0x3683('0xaf')]:null;_0x196315[_0x3683('0x50')][_0x3683('0x72')](_0x3683('0xda'))[_0x3683('0x28')](_0x433008);}['refresh'](){const {isReady:_0x5a5980,isEnabled:_0x3faf62}=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](d);this[_0x3683('0x3')]=_0x5a5980&&_0x3faf62;}}class X extends _0x4aaa93{constructor(_0x121317,{direction:_0x22e6ee}){super(_0x121317);const _0x2c8738=_0x121317[_0x3683('0x14')][_0x3683('0x72')](d);this[_0x3683('0x5b')](_0x121317,'change:isReadOnly'),this[_0x3683('0xe8')](_0x3683('0x24')),this[_0x3683('0x104')]=_0x3683('0xf6')===_0x22e6ee?0x1:-0x1,this['listenTo'](_0x2c8738,_0x3683('0xa4'),()=>this[_0x3683('0x4a')]()),this[_0x3683('0x47')](_0x2c8738,'change:isEnabled',()=>this[_0x3683('0x4a')]());}[_0x3683('0x94')](){const _0x21e7c2=this[_0x3683('0xe9')],_0x3e4f05=_0x21e7c2['plugins'][_0x3683('0x72')](d),{isNavigationMode:_0x18941e,currentChangeNumber:_0x449774}=_0x3e4f05;_0x3e4f05[_0x3683('0x83')]=_0x18941e?_0x3e4f05['diff'][_0x3683('0x4d')][_0x3683('0x72')](_0x449774+this[_0x3683('0x104')]):_0x3e4f05[_0x3683('0x78')][_0x3683('0x4d')][_0x3683('0xd2')];const _0x5ca238=_0x21e7c2[_0x3683('0xdc')][_0x3683('0x71')][_0x3683('0x72')](_0x3683('0xcb')+_0x3e4f05['activeChange']['id']),_0x5e92ce=_0x4b2ed6(_0x21e7c2[_0x3683('0xc4')],_0x5ca238);_0x2bf980({'target':_0x5e92ce,'viewportOffset':0x28});}[_0x3683('0x4a')](){const {isNavigationMode:_0x287565,currentChangeNumber:_0x17e3ab,numberOfChanges:_0x2a46f6,isReady:_0x1e8026,isEnabled:_0x1846b4}=this[_0x3683('0xe9')][_0x3683('0x14')][_0x3683('0x72')](d);this[_0x3683('0x3')]=!!(_0x1846b4&&_0x1e8026&&_0x2a46f6)&&(!_0x287565||(0x1===this['_step']?_0x17e3ab<_0x2a46f6-0x1:_0x17e3ab>0x0));}}
23
+ const _0x4270=['ck-suggestion-preview-marker-','_markInsertions','elementToAttribute','_fixObsoleteTags','selection','markerNameToElements','markerToHighlight','_step','merge','newRevisionId','ck-suggestion-marker-split','editing','abs','_update','change:numberOfChanges','clearForceDisabled','downcastDispatcher','writer','getItems','forEach','end','sort','_getViewForChange','conversion','roots','useFillerType','data','bind','shift','from','_setData','_balloon','ck-editor__editable__overlay','low','htmlProcessor','ck-suggestion-marker-','nodeAfter','_cleanMarkers','checkAttribute','addMarker:suggestion:deletion','name','map','change:isEnabled','getRevision','setAttribute','filter','return','clear','isIncorrect','attribute:vid','split','isContent','removeMarker:revision','isCollapsed','error','endIndex','previousPosition','data-revision-','createRange','hasClass','values','markers','unshift','revision:','addRevision','object','isAtStart','vid','_processTape','collaboration.channelId','diffData','createAttributeElement','item','restoreRevision','getCustomProperty','_removeMissingPairs','length','toViewRange','upcast','highest','plugins','distance','backward','dataDowncast','vid_start','showNextChange','isAdded','_threeWayMerge','isLimit','loadRevisionData','push','revision-start','type','isRemoved','deletion','parse','editingDowncast','changes','schema','target','_removeUnsupportedChanges','range','mouseover','data-change-id','offsetSize','listenTo','_makeTape','attributes','unbindElementFromMarkerName','_removeRevisionMarkers','stop','_changeIdToChange','restoreRevisionCallback','elementStart','_makeModelFromViewString','isAfter','bindElementToMarker','pluginName','_markMarkers','isReady','document','isAtEnd','isAddSuggestion','revision-end','insertion','get','getRootNames','startIndex','_markMismatchedRemovedTags','addRevisionData','pairId','_joinTapes','consumable','_getViewObj','_changeView','resolve','children','getWalker','change:isReady','<p></p>','getRevisionData','forward','findIndex','_setConversion','add','currentChangeNumber','_refreshStartEndIndex','revisionHistory','delete','nextPosition','revision','_cleanUp','_findChangeIdFromDomTarget','_makeModelFromTape','element:pre','insertions','getIndex','config','done','getAttribute','string','addClass','toData','text','change:activeView','level','modelRange','requires','isBlock','change','removeMarker:suggestion','for','pop','_initInteractions','POSITIVE_INFINITY','diff','keys','consume','createRangeIn','hasAttribute','elementEnd','createUIElement','addHighlight','revisionHistoryLabel','high','startsWith','_markSuggestions','nextSibling','init','_getChangeFromId','index','revision-viewer','activeView','createPositionBefore','start','ck-suggestion-marker--active','addMarker:suggestion:insertion','stopListening','-new','repository','splice','_appendChild','then','side','marked','compare','destroy','removeMarker','activeChange','deletions','createPositionFromPath','_getRevisionsRange','adapter','remove','showStack','editor','span','mapper','_setDistance','isRemoveSuggestion','vid_end','viewItem','set','ck-suggestion-marker','enqueueChange','removeClass','markerName','_getDiff','isEqual','code','change:isReadOnly','authors','test','concat','view','_data','enableReadOnlyMode','markersStart','dataToMarker','isInline','element','markerRange','toViewElement','oldRevisionId','isNavigationMode','insert','isEnabled','mousedown','_target','observeMarkers','addMarker:revision','userId','suggestion','toModel','next','RevisionViewer','markersEnd','getChild','has','model','isSuggestion','ck-suggestion-marker-merge','refresh','parent','markerToData','slice','getAttributes','_revisions','commands','toViewPosition'];(function(_0x448128,_0x4270e1){const _0x143fff=function(_0x36cb2c){while(--_0x36cb2c){_0x448128['push'](_0x448128['shift']());}};_0x143fff(++_0x4270e1);}(_0x4270,0x184));const _0x143f=function(_0x448128,_0x4270e1){_0x448128=_0x448128-0x0;let _0x143fff=_0x4270[_0x448128];return _0x143fff;};import{Plugin as _0x24c73f,Command as _0x57e198}from'ckeditor5/src/core';import{ObservableMixin as _0x1aefaa,mix as _0x3dc86b,scrollViewportToShowTarget as _0xf073a9}from'ckeditor5/src/utils';import{ContextualBalloon as _0x362e05}from'ckeditor5/src/ui';import{DocumentFragment as _0x4ed0d2,Element as _0x321fa5,Text as _0x53c349,ViewDocumentFragment as _0x19ab2d,ViewText as _0x1a9f01,ViewElement as _0x1630a,ViewContainerElement as _0x323b08,ViewAttributeElement as _0xfb792b,ViewEmptyElement as _0x53d9ea,ViewRawElement as _0xbf0f4f,ViewUIElement as _0x212ac3}from'ckeditor5/src/engine';import{Users as _0x655d5a,getMarkerDomElement as _0x131b2e}from'ckeditor5-collaboration/src/collaboration-core';import _0x220785 from'./ui/revisionviewer/changedetailsview';import _0x130cbc from'./revisionsrepository';import _0x1d3e57 from'./changeitem';import _0x41b7eb from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x323b08,'a':_0xfb792b,'e':_0x53d9ea,'r':_0xbf0f4f,'u':_0x212ac3};export default class R extends _0x24c73f{static get[_0x143f('0x10d')](){return _0x143f('0x89');}static get[_0x143f('0x31')](){return[_0x655d5a,_0x362e05,_0x130cbc];}constructor(..._0x3f0c16){super(..._0x3f0c16),this['repository']=this['editor'][_0x143f('0xe8')][_0x143f('0x7')]('RevisionsRepository'),this['set'](_0x143f('0x5a'),null),this['set'](_0x143f('0x4a'),null),this[_0x143f('0x68')]('diff',null),this['set'](_0x143f('0x1'),!0x1),this[_0x143f('0x68')](_0x143f('0x80'),!0x0),this['on']('change:isEnabled',(_0x18ce37,_0x55fcdf,_0x1351e8)=>{this[_0x143f('0x5a')]=null,this[_0x143f('0x4a')]=null,this[_0x143f('0x61')]['editing'][_0x143f('0x74')][_0x143f('0x33')](_0x2ab081=>{for(const _0x4aea73 of this[_0x143f('0x61')][_0x143f('0xa3')]['view']['document'][_0x143f('0xb0')])_0x1351e8?_0x2ab081[_0x143f('0x6b')](_0x143f('0xb8'),_0x4aea73):_0x2ab081[_0x143f('0x2b')](_0x143f('0xb8'),_0x4aea73);});}),this[_0x143f('0xb3')](_0x143f('0x7e'))['to'](this,_0x143f('0x5a'),_0x53b9e6=>null!==_0x53b9e6),this[_0x143f('0xb3')](_0x143f('0x1b'))['to'](this,'isReady',this,_0x143f('0x39'),this,_0x143f('0x5a'),(_0x55fad0,_0x2dfe17,_0x992e4)=>_0x55fad0&&_0x992e4?_0x2dfe17[_0x143f('0xf9')][_0x143f('0x26')](_0x992e4):0x0),this['bind']('numberOfChanges')['to'](this,_0x143f('0x1'),this,'diff',(_0x466966,_0x456473)=>_0x466966?_0x456473[_0x143f('0xf9')][_0x143f('0xe4')]:0x0),this[_0x143f('0x10')]=null,this[_0x143f('0x107')]=new Map(),this[_0x143f('0x5e')]=null,this[_0x143f('0xb7')]=this['editor'][_0x143f('0xe8')][_0x143f('0x7')](_0x362e05);}[_0x143f('0x46')](){const _0x4830ee=this[_0x143f('0x61')];_0x4830ee[_0x143f('0xb2')][_0x143f('0xba')][_0x143f('0xb1')](_0x143f('0x56'));const _0x26e593=new et(_0x4830ee,{'direction':_0x143f('0xea')}),_0x41968c=new et(_0x4830ee,{'direction':_0x143f('0x17')});_0x4830ee['commands'][_0x143f('0x1a')]('showPreviousChange',_0x26e593),_0x4830ee['commands'][_0x143f('0x1a')](_0x143f('0xed'),_0x41968c),_0x4830ee[_0x143f('0x96')]['add'](_0x143f('0xe1'),new tt(_0x4830ee)),this['on'](_0x143f('0xa6'),()=>{_0x26e593[_0x143f('0x90')](),_0x41968c['refresh']();}),this[_0x143f('0x19')](),this[_0x143f('0x37')](),_0x4830ee[_0x143f('0x76')](_0x143f('0x49'));}async[_0x143f('0x16')](_0x368daa){await this['loadRevisionData'](_0x368daa);const _0x29dfee={};for(const _0xd03a0a in _0x368daa[_0x143f('0xde')]){const _0x5dc447=this['_removeRevisionMarkers'](JSON[_0x143f('0xf7')](_0x368daa[_0x143f('0xde')][_0xd03a0a][_0x143f('0x25')])),_0x1446a6=this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0x74')][_0x143f('0x2')],_0x36ab18=new _0x19ab2d(_0x1446a6,_0x5dc447['map'](_0x5aa81f=>this[_0x143f('0xf')](_0x5aa81f)));_0x29dfee[_0xd03a0a]=this[_0x143f('0x61')][_0x143f('0xb2')]['processor'][_0x143f('0x2c')](_0x36ab18);}return _0x29dfee;}[_0x143f('0x105')](_0x3f9e13){return(_0x3f9e13=_0x3f9e13[_0x143f('0xc5')](_0x150974=>!_0x150974[_0x143f('0xc0')]||_0x143f('0xf3')!==_0x150974[_0x143f('0xc0')]&&_0x143f('0x5')!==_0x150974[_0x143f('0xc0')]))[_0x143f('0xab')](_0x42cdeb=>{_0x143f('0x2a')!=typeof _0x42cdeb&&(_0x42cdeb['children']=this['_removeRevisionMarkers'](_0x42cdeb[_0x143f('0x12')]),_0x42cdeb[_0x143f('0x103')]=_0x42cdeb['attributes'][_0x143f('0xc5')](_0x2bbdb1=>!_0x2bbdb1[0x0][_0x143f('0x43')](_0x143f('0xd1'))));}),_0x3f9e13;}[_0x143f('0x57')](_0x5549fe,_0x217ee6,_0x106e38=!0x1){if(!this[_0x143f('0x80')])return;const _0x1cb974=this['diff'],_0x23cec5=this['repository'],_0x25fad9=_0x143f('0x2a')==typeof _0x5549fe?_0x23cec5['getRevision'](_0x5549fe):_0x5549fe,_0x284f78='string'==typeof _0x217ee6?_0x23cec5[_0x143f('0xc3')](_0x217ee6):_0x217ee6,_0xefeb33=_0x25fad9['id'],_0x397ff2=_0x284f78?_0x284f78['id']:null;if(!_0x106e38&&this[_0x143f('0x39')]&&this[_0x143f('0x39')][_0x143f('0xa1')]===_0xefeb33&&this[_0x143f('0x39')][_0x143f('0x7d')]===_0x397ff2)return Promise[_0x143f('0x11')]();this[_0x143f('0x1')]=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new _0x41b7eb(_0xefeb33,_0x397ff2);const _0x4a1bb8=this[_0x143f('0x5d')](_0x25fad9,_0x284f78,!0x0)[_0x143f('0xc1')](_0x1793a0=>this[_0x143f('0xf1')](_0x1793a0));return _0x4a1bb8[_0x143f('0xf2')](new Promise(_0x47e0c0=>{setTimeout(_0x47e0c0,0x14);})),Promise['all'](_0x4a1bb8)[_0x143f('0x54')](()=>{if(!this['isEnabled'])return;this[_0x143f('0x21')]();const _0x51b85d=this[_0x143f('0x6d')](_0xefeb33,_0x397ff2);this[_0x143f('0x39')][_0x143f('0xb6')](_0x51b85d);for(const _0x12051b of this[_0x143f('0x39')][_0x143f('0xf9')])this[_0x143f('0x107')]['set'](_0x12051b['id'],_0x12051b);this[_0x143f('0x61')]['model'][_0x143f('0x6a')]({'isUndoable':!0x1},_0xec6aba=>{for(const _0x2c5ea9 of Object['keys'](_0x51b85d[_0x143f('0x8d')])){const _0xaa2320=this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0x2')]['getRoot'](_0x2c5ea9);_0xec6aba[_0x143f('0x5f')](_0xec6aba[_0x143f('0x3c')](_0xaa2320)),_0xec6aba[_0x143f('0x7f')](_0x51b85d[_0x143f('0x8d')][_0x2c5ea9],_0xaa2320,0x0);}}),this[_0x143f('0x1')]=!0x0;})['catch'](_0x3cd3bc=>{console[_0x143f('0xce')](_0x3cd3bc),this['_cleanUp'](),_0x1cb974?this['diff']=_0x1cb974:this['editor']['setData'](_0x143f('0x15')),this['isReady']=!0x0;});}[_0x143f('0x58')](){this[_0x143f('0x4a')]=null,this[_0x143f('0x10')]&&this[_0x143f('0x10')][_0x143f('0x58')]();}[_0x143f('0xb')](_0x58dcca,_0x58cab8){const _0x482ba4=this[_0x143f('0x51')]['createRevision'](_0x58dcca);return _0x482ba4['on']('_update',(_0x107ea0,_0x22d652,_0x4ef28a)=>_0x58cab8(_0x22d652,_0x4ef28a,_0x482ba4)),this['repository'][_0x143f('0xd8')](_0x482ba4),_0x482ba4;}[_0x143f('0xf1')](_0x5d9ed9){if(!_0x5d9ed9||_0x5d9ed9[_0x143f('0xde')])return Promise[_0x143f('0x11')]();{const _0x247f68=this[_0x143f('0x61')][_0x143f('0x27')][_0x143f('0x7')](_0x143f('0xdd'));return this['adapter'][_0x143f('0xc3')]({'channelId':_0x247f68,'revisionId':_0x5d9ed9['id']})[_0x143f('0x54')](_0x55d7b5=>{_0x5d9ed9[_0x143f('0xa5')]({'diffData':_0x55d7b5[_0x143f('0xde')]},!0x0);});}}['_cleanUp'](){this[_0x143f('0x5a')]=null,this[_0x143f('0xbd')](),this[_0x143f('0x10')]&&this[_0x143f('0x10')][_0x143f('0x58')](),this['_changeView']=null,this[_0x143f('0x107')][_0x143f('0xc7')]();}[_0x143f('0x102')](_0x363bc4){const _0x4c31e8=Array['from'](_0x363bc4['markers'])[_0x143f('0xc5')](([_0x8cc438,_0x6b313d])=>_0x8cc438[_0x143f('0x43')](_0x143f('0xd7'))&&!_0x6b313d['isCollapsed']),_0x1f6aaa=Array[_0x143f('0xb5')](this[_0x143f('0x61')][_0x143f('0x8d')]['createRangeIn'](_0x363bc4)[_0x143f('0x13')]({'singleCharacters':!0x0}));if(0x0!=_0x4c31e8[_0x143f('0xe4')])for(const _0x36b2fd of _0x1f6aaa){const [_0x11aa9e,_0x55c89e]=_0x4c31e8[0x0],[,_0x4a4535,_0x31d587]=_0x11aa9e[_0x143f('0xca')](':');if(_0x55c89e[_0x143f('0xac')]['isEqual'](_0x36b2fd['nextPosition'])&&_0x4c31e8[_0x143f('0xb4')](),(_0x36b2fd[_0x143f('0xd0')][_0x143f('0x6e')](_0x55c89e[_0x143f('0x4c')])||_0x36b2fd[_0x143f('0xd0')][_0x143f('0x10b')](_0x55c89e['start']))&&(_0x143f('0x6')==_0x4a4535?_0x36b2fd[_0x143f('0xee')]={'userId':_0x31d587}:_0x143f('0xf6')==_0x4a4535&&(_0x36b2fd[_0x143f('0xf5')]={'userId':_0x31d587})),0x0==_0x4c31e8[_0x143f('0xe4')])break;}return _0x1f6aaa;}[_0x143f('0x1c')](_0x4c0d75){const _0x2066a5=new Map();for(let _0x345bf3=0x0;_0x345bf3<_0x4c0d75[_0x143f('0xe4')];_0x345bf3++)_0x143f('0x2d')===_0x4c0d75[_0x345bf3]['type']?(_0x4c0d75[_0x345bf3][_0x143f('0xe0')][_0x143f('0x9')]=_0x345bf3,_0x4c0d75[_0x345bf3][_0x143f('0xe0')][_0x143f('0xcf')]=_0x345bf3):(_0x143f('0x109')===_0x4c0d75[_0x345bf3]['type']?_0x4c0d75[_0x345bf3][_0x143f('0xe0')][_0x143f('0x9')]=_0x345bf3:'elementEnd'===_0x4c0d75[_0x345bf3][_0x143f('0xf4')]&&(_0x4c0d75[_0x345bf3][_0x143f('0xe0')]['endIndex']=_0x345bf3),_0x2066a5[_0x143f('0x68')](_0x4c0d75[_0x345bf3]['id'],_0x345bf3));for(const _0x81a481 of _0x2066a5[_0x143f('0xd4')]())_0x143f('0x109')===_0x4c0d75[_0x81a481][_0x143f('0xf4')]?_0x4c0d75[_0x81a481][_0x143f('0xe0')][_0x143f('0xcf')]=_0x2066a5[_0x143f('0x7')](_0x4c0d75[_0x81a481][_0x143f('0xc')]):'elementEnd'===_0x4c0d75[_0x81a481][_0x143f('0xf4')]&&(_0x4c0d75[_0x81a481][_0x143f('0xe0')][_0x143f('0x9')]=_0x2066a5[_0x143f('0x7')](_0x4c0d75[_0x81a481][_0x143f('0xc')]));}[_0x143f('0xdc')](_0x34c32d){for(let _0x4ec7a1=0x0;_0x4ec7a1<_0x34c32d[_0x143f('0xe4')];_0x4ec7a1++){if(_0x143f('0x109')===_0x34c32d[_0x4ec7a1][_0x143f('0xf4')])_0x34c32d[_0x4ec7a1]['item'][_0x143f('0x9')]=_0x4ec7a1;else{if(_0x143f('0x3e')===_0x34c32d[_0x4ec7a1][_0x143f('0xf4')]){_0x34c32d[_0x4ec7a1][_0x143f('0xe0')]['endIndex']=_0x4ec7a1;const _0x17b288=_0x34c32d[_0x4ec7a1][_0x143f('0xe0')][_0x143f('0x9')];_0x34c32d[_0x17b288][_0x143f('0xc')]=_0x34c32d[_0x4ec7a1]['id'],_0x34c32d[_0x4ec7a1][_0x143f('0xc')]=_0x34c32d[_0x17b288]['id'];}else _0x34c32d[_0x4ec7a1][_0x143f('0xe0')]['startIndex']=_0x4ec7a1,_0x34c32d[_0x4ec7a1][_0x143f('0xe0')][_0x143f('0xcf')]=_0x4ec7a1,_0x34c32d[_0x4ec7a1][_0x143f('0xc')]=null;}_0x34c32d[_0x4ec7a1][_0x143f('0x77')]||(_0x34c32d[_0x4ec7a1][_0x143f('0x77')]=[],_0x34c32d[_0x4ec7a1][_0x143f('0x8a')]=[]);}}[_0x143f('0x99')](_0x1432f5,_0x2eb6e9){const _0x353486=_0x1432f5[_0x143f('0xc5')](_0x409aff=>!_0x409aff[_0x143f('0xee')]);for(let _0x2c10e0=0x0;_0x2c10e0<_0x2eb6e9[_0x143f('0xe4')];_0x2c10e0++)_0x2eb6e9[_0x2c10e0]['isAdded']&&(_0x353486[_0x2c10e0][_0x143f('0xee')]=_0x2eb6e9[_0x2c10e0]['isAdded']);}['_makeModelFromViewString'](_0x264b5d){const _0x160da3=JSON[_0x143f('0xf7')](_0x264b5d),_0x2f81f7=this[_0x143f('0x61')][_0x143f('0xa3')]['view'][_0x143f('0x2')],_0x3b1576=new _0x19ab2d(_0x2f81f7,_0x160da3[_0x143f('0xc1')](_0x413130=>this[_0x143f('0xf')](_0x413130)));return this[_0x143f('0x61')][_0x143f('0xb2')][_0x143f('0x87')](_0x3b1576);}[_0x143f('0xf')](_0x6d2f58){const _0x42ffcc=this['editor'][_0x143f('0xa3')][_0x143f('0x74')][_0x143f('0x2')];if(_0x143f('0x2a')==typeof _0x6d2f58)return new _0x1a9f01(_0x42ffcc,_0x6d2f58);{const _0x36e576=_0x6d2f58['children'][_0x143f('0xc1')](_0x424de7=>this[_0x143f('0xf')](_0x424de7));return new(Y[_0x6d2f58['type']]||_0x1630a)(_0x42ffcc,_0x6d2f58['name'],_0x6d2f58['attributes'],_0x36e576);}}[_0x143f('0x6d')](_0x2dbbd4,_0x3eaee4=null){const _0x59c88f=this['repository']['getRevision'](_0x2dbbd4),_0x330b7c=_0x3eaee4?this[_0x143f('0x51')]['getRevision'](_0x3eaee4):null,_0x2cd5db=this[_0x143f('0x5d')](_0x59c88f,_0x330b7c),_0x2b4e0f=_0x2cd5db[_0x2cd5db[_0x143f('0xe4')]-0x1],_0x4b4a85=new Map();for(const _0x541db4 of _0x2cd5db){_0x541db4[_0x143f('0x8d')]={};for(const _0x15defe of _0x541db4[_0x143f('0x71')])_0x4b4a85[_0x143f('0x68')](_0x15defe['id'],_0x15defe);for(const _0xdbc208 of this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0x2')][_0x143f('0x8')]())_0x541db4[_0x143f('0xde')][_0xdbc208]||(_0x541db4[_0x143f('0xde')][_0xdbc208]={'insertions':'[]','deletions':'[]'}),_0x541db4[_0x143f('0x8d')][_0xdbc208]={'insertions':this[_0x143f('0x10a')](_0x541db4[_0x143f('0xde')][_0xdbc208][_0x143f('0x25')]),'deletions':this[_0x143f('0x10a')](_0x541db4['diffData'][_0xdbc208][_0x143f('0x5b')])};}const _0x37847c={'model':{},'changes':[]};for(const _0x38fc7a of this[_0x143f('0x61')]['model'][_0x143f('0x2')][_0x143f('0x8')]()){let _0x2a0c62=null,_0x47aa93=0x0;const _0x72a47d=new Map(Array[_0x143f('0xb5')](_0x59c88f[_0x143f('0x8d')][_0x38fc7a][_0x143f('0x25')][_0x143f('0xd5')])[_0x143f('0xc5')](([_0x3e500f])=>!_0x3e500f[_0x143f('0x43')](_0x143f('0xd7'))));let _0x42165f=0x0;for(const _0x4449a2 of _0x2cd5db){const _0x5b383e=this[_0x143f('0x102')](_0x4449a2[_0x143f('0x8d')][_0x38fc7a][_0x143f('0x25')]);_0x4449a2==_0x59c88f?(_0x2a0c62=_0x5b383e,_0x47aa93=_0x2a0c62[_0x143f('0xe4')],_0x2a0c62[_0x143f('0xab')](_0x571b67=>{_0x571b67['id']=_0x42165f++;}),this[_0x143f('0xdc')](_0x2a0c62)):this['_markInsertions'](_0x2a0c62,_0x5b383e);const _0x2f14e6=_0x2a0c62[_0x143f('0xc5')](_0x3d7fb5=>!_0x3d7fb5[_0x143f('0xee')])['map'](_0x572e77=>_0x572e77['id']);let _0x2c9297=0x0;const _0x2c7047=this[_0x143f('0x102')](_0x4449a2['model'][_0x38fc7a][_0x143f('0x5b')]);_0x2c7047[_0x143f('0xab')](_0x9277d7=>{_0x9277d7['isRemoved']?_0x9277d7['id']=_0x47aa93++:_0x9277d7['id']=_0x2f14e6[_0x2c9297++];}),this[_0x143f('0xdc')](_0x2c7047),this['_setDistance'](_0x2a0c62,_0x143f('0xee')),this['_setDistance'](_0x2c7047,'isRemoved'),_0x4449a2==_0x59c88f&&this[_0x143f('0x0')](_0x2a0c62,_0x72a47d),_0x2a0c62=this[_0x143f('0xd')](_0x2a0c62,_0x2c7047),this[_0x143f('0x1c')](_0x2a0c62),this[_0x143f('0x64')](_0x2a0c62,_0x143f('0xf5'));}_0x2a0c62=_0x2a0c62[_0x143f('0xc5')](_0x4d3a47=>!(_0x4d3a47[_0x143f('0xee')]&&_0x4d3a47[_0x143f('0xf5')]));const _0x3ded57=new Map(_0x2b4e0f[_0x143f('0x8d')][_0x38fc7a][_0x143f('0x5b')][_0x143f('0xd5')]),_0x252800=new Set(_0x72a47d[_0x143f('0x3a')]());for(const _0x10929a of _0x3ded57['keys']())_0x252800[_0x143f('0x1e')](_0x10929a);this[_0x143f('0x44')](_0x2a0c62,_0x252800),this[_0x143f('0x9b')](_0x2a0c62),_0x2a0c62=this[_0x143f('0xe3')](_0x2a0c62),_0x2a0c62=this[_0x143f('0xa')](_0x2a0c62),_0x2a0c62=this[_0x143f('0xfc')](_0x2a0c62);const {root:_0x4aac77,changes:_0x1fe66a}=this[_0x143f('0x23')](_0x2a0c62,_0x4b4a85);_0x37847c['model'][_0x38fc7a]=_0x4aac77,_0x37847c[_0x143f('0xf9')]=_0x37847c['changes']['concat'](_0x1fe66a);}return _0x37847c;}[_0x143f('0x0')](_0x5c5b5f,_0x559d36){for(let _0x112f51=0x0;_0x112f51<_0x5c5b5f[_0x143f('0xe4')];_0x112f51++)for(const [_0x513674,_0x280cf0]of _0x559d36)_0x280cf0[_0x143f('0x4c')][_0x143f('0x6e')](_0x5c5b5f[_0x112f51][_0x143f('0xd0')])&&_0x5c5b5f[_0x112f51][_0x143f('0x77')][_0x143f('0xf2')](_0x513674),_0x280cf0['end'][_0x143f('0x6e')](_0x5c5b5f[_0x112f51][_0x143f('0x1f')])&&_0x5c5b5f[_0x112f51][_0x143f('0x8a')][_0x143f('0xf2')](_0x513674);}['_joinTapes'](_0x129520,_0xd439cb){let _0x564ee7=[],_0x2d3aaa=0x0,_0x20ed3d=0x0;for(;_0x2d3aaa<_0x129520[_0x143f('0xe4')]||_0x20ed3d<_0xd439cb[_0x143f('0xe4')];){const _0x3b91cd=_0x129520[_0x2d3aaa]||{},_0x11e503=_0xd439cb[_0x20ed3d]||{};if(_0x3b91cd['id']==_0x11e503['id'])_0x2d3aaa++,_0x20ed3d++,_0x564ee7[_0x143f('0xf2')](_0x3b91cd);else{if(_0x11e503['isRemoved']&&_0x3b91cd[_0x143f('0xee')]){const {commonTape:_0x7cf85d,iEnd:_0x277461,jEnd:_0x284b54}=this[_0x143f('0xef')](_0x129520,_0x2d3aaa,_0xd439cb,_0x20ed3d);_0x564ee7=_0x564ee7[_0x143f('0x73')](_0x7cf85d),_0x2d3aaa=_0x277461,_0x20ed3d=_0x284b54;}else _0x11e503[_0x143f('0xf5')]?(_0x20ed3d++,_0x564ee7[_0x143f('0xf2')](_0x11e503)):(_0x2d3aaa++,_0x564ee7[_0x143f('0xf2')](_0x3b91cd));}}return _0x564ee7;}[_0x143f('0x44')](_0x31bffc,_0x3b7dbb){const _0x21efa2=[];for(let _0x793ba0=0x0;_0x793ba0<_0x31bffc[_0x143f('0xe4')];_0x793ba0++){for(let _0x27d30e=0x0;_0x27d30e<_0x31bffc[_0x793ba0][_0x143f('0x77')][_0x143f('0xe4')];_0x27d30e++){const _0x378e44=_0x31bffc[_0x793ba0][_0x143f('0x77')][_0x27d30e];if(!_0x3b7dbb['has'](_0x378e44))continue;const {group:_0x4f475c,type:_0x176533,authorId:_0x1d4731}=_0x33823b(_0x378e44);_0x143f('0x86')!=_0x4f475c||_0x143f('0x6')!=_0x176533&&_0x143f('0xf6')!=_0x176533||(_0x21efa2[_0x143f('0xd6')]({'type':_0x176533,'name':_0x378e44,'userId':_0x1d4731}),_0x31bffc[_0x793ba0][_0x143f('0x77')]['splice'](_0x27d30e,0x1),_0x27d30e--);}_0x4d3054(_0x31bffc[_0x793ba0]);for(let _0x185580=0x0;_0x185580<_0x31bffc[_0x793ba0][_0x143f('0x8a')][_0x143f('0xe4')];_0x185580++){const _0x307123=_0x31bffc[_0x793ba0]['markersEnd'][_0x185580];if(!_0x3b7dbb[_0x143f('0x8c')](_0x307123))continue;const {group:_0x240c72,type:_0x3b256d}=_0x33823b(_0x307123);if(_0x143f('0x86')!=_0x240c72||_0x143f('0x6')!=_0x3b256d&&'deletion'!=_0x3b256d)continue;_0x31bffc[_0x793ba0]['markersEnd'][_0x143f('0x52')](_0x185580,0x1),_0x185580--;const _0x21c2f8=_0x21efa2[_0x143f('0x18')](_0x5a6d6a=>_0x5a6d6a[_0x143f('0xc0')]==_0x307123);_0x21c2f8>-0x1&&_0x21efa2[_0x143f('0x52')](_0x21c2f8,0x1);}}function _0x33823b(_0x149d81){const _0x3e00bf=_0x149d81[_0x143f('0xca')](':');return{'group':_0x3e00bf[0x0],'type':_0x3e00bf[0x1],'subType':_0x3e00bf[_0x143f('0xe4')]>=0x5?_0x3e00bf[0x2]:null,'id':_0x3e00bf[_0x143f('0xe4')]<0x5?_0x3e00bf[0x2]:_0x3e00bf[0x3],'authorId':_0x3e00bf[_0x143f('0xe4')]<0x5?_0x3e00bf[0x3]:_0x3e00bf[0x4],'markerCount':0x6==_0x3e00bf[_0x143f('0xe4')]?_0x3e00bf[0x5]:null};}function _0x4d3054(_0x281522){for(let _0x2e5eae=0x0;_0x2e5eae<_0x21efa2[_0x143f('0xe4')];_0x2e5eae++){if(_0x281522[_0x143f('0xee')]&&'insertion'==_0x21efa2[_0x2e5eae]['type'])return _0x281522[_0x143f('0x4')]=_0x21efa2[_0x2e5eae],void delete _0x281522[_0x143f('0xee')];if(!_0x281522['isAdded']&&!_0x281522['isRemoved']&&'deletion'==_0x21efa2[_0x2e5eae][_0x143f('0xf4')])return void(_0x281522[_0x143f('0x65')]=_0x21efa2[_0x2e5eae]);}}}[_0x143f('0x64')](_0x2951b3,_0x3bb96b){let _0x4c46ea=0x0,_0x1ae34a=!0x1;const _0x1c192f=new Map();for(const _0x240696 of _0x2951b3)_0x240696[_0x3bb96b]?_0x1ae34a&&(_0x4c46ea++,_0x1ae34a=!0x1):(_0x4c46ea++,_0x1ae34a=!0x0),_0x1c192f[_0x143f('0x68')](_0x240696['id'],_0x4c46ea);for(let _0x840265=0x0;_0x840265<_0x2951b3['length'];_0x840265++){if(_0x143f('0xf5')==_0x3bb96b&&_0x2951b3[_0x840265]['isAdded']||_0x143f('0xee')==_0x3bb96b&&_0x2951b3[_0x840265][_0x143f('0xf5')])continue;if(_0x143f('0x2d')==_0x2951b3[_0x840265]['type']){_0x2951b3[_0x840265][_0x143f('0xe9')]=0x0;continue;}const _0x5699ec=_0x1c192f[_0x143f('0x7')](_0x2951b3[_0x840265][_0x143f('0xc')]),_0x5324e0=_0x1c192f[_0x143f('0x7')](_0x2951b3[_0x840265]['id']);_0x2951b3[_0x840265][_0x143f('0xe9')]=_0x5699ec-_0x5324e0;}}[_0x143f('0x5d')](_0xb9dda0,_0x4c6510,_0x4fcab9=!0x1){const _0x5ac9d6=[];let _0x3b8827=this[_0x143f('0x51')][_0x143f('0x26')](_0xb9dda0),_0x2cff60=this['repository'][_0x143f('0x26')](_0x4c6510);for(-0x1==_0x2cff60&&(_0x2cff60=this['repository'][_0x143f('0x95')][_0x143f('0xe4')],_0x4fcab9=!0x1);_0x3b8827<_0x2cff60;)_0x5ac9d6[_0x143f('0xf2')](this[_0x143f('0x51')][_0x143f('0xc3')](_0x3b8827)),_0x3b8827++;return _0x4fcab9&&_0x5ac9d6['push'](this[_0x143f('0x51')]['getRevision'](_0x3b8827)),_0x5ac9d6;}[_0x143f('0xef')](_0x296e39,_0x40d82c,_0x53c33f,_0x3c9a1c){const _0x596486=this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0xfa')];let _0x1e54ee=_0x40d82c;for(;_0x296e39[_0x1e54ee]&&_0x296e39[_0x1e54ee][_0x143f('0xee')];)_0x1e54ee++;let _0x16599a=_0x3c9a1c;for(;_0x53c33f[_0x16599a]&&_0x53c33f[_0x16599a][_0x143f('0xf5')];)_0x16599a++;_0x2b3d69(_0x296e39,_0x40d82c,_0x1e54ee),_0x2b3d69(_0x53c33f,_0x3c9a1c,_0x16599a);const _0x1c911c=_0x53c33f['slice'](_0x3c9a1c,_0x16599a)[_0x143f('0x73')](_0x296e39[_0x143f('0x93')](_0x40d82c,_0x1e54ee));return _0x1c911c[_0x143f('0xad')]((_0x583d8f,_0x2a53b3)=>_0x583d8f[_0x143f('0x55')]!=_0x2a53b3[_0x143f('0x55')]?_0x583d8f['side']-_0x2a53b3[_0x143f('0x55')]:_0x583d8f[_0x143f('0x2f')]!=_0x2a53b3[_0x143f('0x2f')]?_0x583d8f[_0x143f('0x2f')]-_0x2a53b3[_0x143f('0x2f')]:_0x583d8f[_0x143f('0xe9')]!=_0x2a53b3['distance']?_0x2a53b3[_0x143f('0xe9')]-_0x583d8f['distance']:!!_0x583d8f[_0x143f('0xee')]!=!!_0x2a53b3[_0x143f('0xee')]?-0x1==_0x583d8f['side']||0x0==_0x583d8f['side']?_0x583d8f[_0x143f('0xee')]?-0x1:0x1:_0x583d8f[_0x143f('0xee')]?0x1:-0x1:_0x583d8f['index']-_0x2a53b3[_0x143f('0x48')]),{'commonTape':_0x1c911c,'iEnd':_0x1e54ee,'jEnd':_0x16599a};function _0x2b3d69(_0x2cb50e,_0x40f358,_0x4f79dd){let _0x58bdef=-0x1,_0x24226b=Number[_0x143f('0x38')],_0x5a1e58=!0x0;for(let _0x473ee4=_0x40f358;_0x473ee4<_0x4f79dd;_0x473ee4++)if(_0x596486[_0x143f('0x79')](_0x2cb50e[_0x473ee4][_0x143f('0xe0')])||(_0x5a1e58=!0x1),_0x2cb50e[_0x473ee4][_0x143f('0xe0')][_0x143f('0x9')]<_0x40f358&&(_0x58bdef=_0x473ee4),_0x2cb50e[_0x473ee4]['item'][_0x143f('0xcf')]>=_0x4f79dd){_0x24226b=_0x473ee4;break;}_0x5a1e58&&(_0x58bdef=_0x4f79dd-0x1);for(let _0x114dcf=_0x40f358;_0x114dcf<_0x4f79dd;_0x114dcf++)_0x2cb50e[_0x114dcf][_0x143f('0x55')]=_0x114dcf<=_0x58bdef?-0x1:_0x114dcf<_0x24226b?0x0:0x1,_0x2cb50e[_0x114dcf][_0x143f('0x48')]=_0x114dcf;let _0x45fd2c=0x0;for(let _0x575424=_0x40f358;_0x575424<=_0x58bdef;_0x575424++)0x0==_0x2cb50e[_0x575424][_0x143f('0xe9')]?_0x2cb50e[_0x575424][_0x143f('0x2f')]=_0x45fd2c:(_0x45fd2c++,_0x2cb50e[_0x575424]['level']=_0x45fd2c,_0x45fd2c++);for(let _0x1886ce=_0x40f358;_0x1886ce<_0x4f79dd;_0x1886ce++)0x0==_0x2cb50e[_0x1886ce]['side']&&(_0x2cb50e[_0x1886ce][_0x143f('0x2f')]=_0x45fd2c);_0x45fd2c=0x0;for(let _0x367ec2=_0x4f79dd-0x1;_0x367ec2>=_0x24226b;_0x367ec2--)0x0==_0x2cb50e[_0x367ec2]['distance']?_0x2cb50e[_0x367ec2][_0x143f('0x2f')]=_0x45fd2c:(_0x45fd2c--,_0x2cb50e[_0x367ec2][_0x143f('0x2f')]=_0x45fd2c,_0x45fd2c--);}}[_0x143f('0x9b')](_0x5ad8f3){const _0x3c4e4a=new Map(),_0x220179=this[_0x143f('0x61')]['model'][_0x143f('0xfa')];for(let _0x10451a=0x1;_0x10451a<_0x5ad8f3[_0x143f('0xe4')];_0x10451a++){let _0x4ebcbe,_0x4bf5df,_0x524abf;const _0x14e9ae=_0x5ad8f3[_0x10451a],_0x214a60=_0x5ad8f3[_0x10451a-0x1];if(_0x143f('0x2d')==_0x14e9ae['type'])continue;if(_0x14e9ae['type']!=_0x214a60[_0x143f('0xf4')])continue;if(!_0x220179[_0x143f('0x32')](_0x214a60[_0x143f('0xe0')])||_0x220179[_0x143f('0xf0')](_0x214a60[_0x143f('0xe0')]))continue;if(!_0x220179[_0x143f('0x32')](_0x14e9ae[_0x143f('0xe0')])||_0x220179['isLimit'](_0x14e9ae['item']))continue;if((_0x5ad8f3[_0x10451a][_0x143f('0xee')]||_0x5ad8f3[_0x10451a]['isAddSuggestion'])&&_0x5ad8f3[_0x10451a-0x1][_0x143f('0xf5')])_0x4ebcbe=_0x5ad8f3[_0x10451a],_0x4bf5df=_0x5ad8f3[_0x10451a-0x1],_0x524abf=_0x10451a-0x1;else{if(!_0x5ad8f3[_0x10451a]['isRemoved']||!_0x5ad8f3[_0x10451a-0x1]['isAdded']&&!_0x5ad8f3[_0x10451a-0x1]['isAddSuggestion'])continue;_0x4ebcbe=_0x5ad8f3[_0x10451a-0x1],_0x4bf5df=_0x5ad8f3[_0x10451a],_0x524abf=_0x10451a;}const _0x2cf04b=_0x4ebcbe['level']==_0x4bf5df[_0x143f('0x2f')],_0x2cc9c8=Math[_0x143f('0xa4')](_0x4ebcbe[_0x143f('0x2f')])<Math[_0x143f('0xa4')](_0x4bf5df[_0x143f('0x2f')])&&0x0==_0x4bf5df['distance'];(_0x2cf04b||_0x2cc9c8)&&(_0x3c4e4a[_0x143f('0x68')](_0x4bf5df['id'],_0x4ebcbe['id']),_0x5ad8f3[_0x143f('0x52')](_0x524abf,0x1),_0x10451a--,_0x4ebcbe[_0x143f('0xee')]=!0x1);}for(let _0x1020ba=0x0;_0x1020ba<_0x5ad8f3[_0x143f('0xe4')];_0x1020ba++)_0x3c4e4a['has'](_0x5ad8f3[_0x1020ba]['pairId'])&&(_0x5ad8f3[_0x1020ba][_0x143f('0xc')]=_0x3c4e4a[_0x143f('0x7')](_0x5ad8f3[_0x1020ba][_0x143f('0xc')]));}['_removeMissingPairs'](_0x2ccbd2){const _0x1b29e2=new Set(_0x2ccbd2[_0x143f('0xc1')](_0x236cdf=>_0x236cdf['id']));for(let _0x21fbd8=0x0;_0x21fbd8<_0x2ccbd2[_0x143f('0xe4')];_0x21fbd8++)_0x1b29e2[_0x143f('0x8c')](_0x2ccbd2[_0x21fbd8][_0x143f('0xc')])||0x0==_0x2ccbd2[_0x21fbd8][_0x143f('0xe9')]||(_0x2ccbd2[_0x21fbd8]['isIncorrect']=!0x0);return _0x2ccbd2[_0x143f('0xc5')](_0x4c26c5=>!_0x4c26c5[_0x143f('0xc8')]);}[_0x143f('0xa')](_0x117fbd){const _0x479b49=new Set();for(let _0x337afb=0x0;_0x337afb<_0x117fbd[_0x143f('0xe4')];_0x337afb++){if(_0x479b49[_0x143f('0x8c')](_0x117fbd[_0x337afb]['id'])&&_0x117fbd[_0x337afb]['isRemoved']&&(_0x117fbd[_0x337afb][_0x143f('0xc8')]=!0x0),_0x117fbd[_0x337afb][_0x143f('0xc8')])continue;if(0x0==_0x117fbd[_0x337afb]['distance'])continue;if('elementStart'!=_0x117fbd[_0x337afb][_0x143f('0xf4')])continue;if(null==_0x117fbd[_0x337afb][_0x143f('0xc')])continue;let _0x59b5e6=_0x337afb+0x1,_0x294a0a=0x0;for(;_0x117fbd[_0x59b5e6]['id']!=_0x117fbd[_0x337afb][_0x143f('0xc')];)_0x143f('0x109')==_0x117fbd[_0x59b5e6]['type']?_0x294a0a++:_0x143f('0x3e')==_0x117fbd[_0x59b5e6][_0x143f('0xf4')]&&_0x294a0a--,_0x59b5e6++;if(0x0!=_0x294a0a){if(_0x117fbd[_0x337afb][_0x143f('0xf5')])_0x117fbd[_0x337afb][_0x143f('0xc8')]=!0x0;else for(;_0x59b5e6!=_0x337afb;)_0x117fbd[_0x59b5e6][_0x143f('0xf5')]&&0x0!=_0x117fbd[_0x59b5e6][_0x143f('0xe9')]&&(_0x117fbd[_0x59b5e6][_0x143f('0xc8')]=!0x0,_0x479b49[_0x143f('0x1a')](_0x117fbd[_0x59b5e6][_0x143f('0xc')])),_0x59b5e6--;}}return _0x117fbd[_0x143f('0xc5')](_0xda37a0=>!_0xda37a0[_0x143f('0xc8')]);}[_0x143f('0xfc')](_0x505dd0){const _0x80ee76=this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0xfa')];for(let _0x18fdaf=0x0;_0x18fdaf<_0x505dd0['length'];_0x18fdaf++){if(!(_0x505dd0[_0x18fdaf][_0x143f('0xee')]||_0x505dd0[_0x18fdaf][_0x143f('0x4')]||_0x505dd0[_0x18fdaf][_0x143f('0xf5')]||_0x505dd0[_0x18fdaf][_0x143f('0x65')]))continue;if(0x0==_0x505dd0[_0x18fdaf][_0x143f('0xe9')])continue;const _0x2a885a=_0x505dd0[_0x18fdaf][_0x143f('0xe0')];_0x80ee76['isBlock'](_0x2a885a)||_0x80ee76[_0x143f('0xf0')](_0x2a885a)||(_0x505dd0[_0x18fdaf][_0x143f('0xee')]&&delete _0x505dd0[_0x18fdaf][_0x143f('0xee')],_0x505dd0[_0x18fdaf][_0x143f('0x4')]&&delete _0x505dd0[_0x18fdaf][_0x143f('0x4')],_0x505dd0[_0x18fdaf]['isRemoveSuggestion']&&delete _0x505dd0[_0x18fdaf]['isRemoveSuggestion'],_0x505dd0[_0x18fdaf][_0x143f('0xf5')]&&(_0x505dd0[_0x18fdaf][_0x143f('0xc8')]=!0x0));}return _0x505dd0[_0x143f('0xc5')](_0x2c5fe4=>!_0x2c5fe4[_0x143f('0xc8')]);}[_0x143f('0x23')](_0x2169e5,_0x258978){const _0x490af7=new _0x4ed0d2(),_0xb9a78f=[],_0x59ce76=new Map(),_0x3d35e4=this[_0x143f('0x61')][_0x143f('0x8d')],_0x1ef2f6=_0x3d35e4[_0x143f('0xfa')],_0x45bcb8=[_0x490af7],_0x9f124d={},_0x1429ef={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x234fa1=null;const _0x490612=[0x0];for(let _0x2f08a8=0x0;_0x2f08a8<_0x2169e5['length'];_0x2f08a8++){let _0xcd23cd,_0x31ef20;if(_0x143f('0x109')===_0x2169e5[_0x2f08a8][_0x143f('0xf4')]){_0xcd23cd=_0x3d35e4[_0x143f('0x5c')](_0x490af7,_0x490612);const _0x1c5e6a=new _0x321fa5(_0x2169e5[_0x2f08a8][_0x143f('0xe0')][_0x143f('0xc0')],_0x2169e5[_0x2f08a8][_0x143f('0xe0')][_0x143f('0x94')]());_0x45bcb8[0x0][_0x143f('0x53')](_0x1c5e6a),_0x490612[_0x143f('0xf2')](0x0),_0x45bcb8[_0x143f('0xd6')](_0x1c5e6a),_0x31ef20=_0x3d35e4[_0x143f('0x5c')](_0x490af7,_0x490612),_0x234fa1=null;}else{if(_0x143f('0x3e')===_0x2169e5[_0x2f08a8][_0x143f('0xf4')])_0x45bcb8[_0x143f('0xb4')](),_0xcd23cd=_0x3d35e4['createPositionFromPath'](_0x490af7,_0x490612),_0x490612[_0x143f('0x36')](),_0x490612[_0x490612[_0x143f('0xe4')]-0x1]++,_0x31ef20=_0x3d35e4[_0x143f('0x5c')](_0x490af7,_0x490612),_0x234fa1=null;else{if(_0xcd23cd=_0x3d35e4[_0x143f('0x5c')](_0x490af7,_0x490612),_0x234fa1&&_0x50f8eb(_0x234fa1,_0x2169e5[_0x2f08a8][_0x143f('0xe0')]))_0x234fa1[_0x143f('0x75')]+=_0x2169e5[_0x2f08a8][_0x143f('0xe0')][_0x143f('0xb2')];else{const _0x1210d3=new _0x53c349(_0x2169e5[_0x2f08a8]['item'][_0x143f('0xb2')],_0x2169e5[_0x2f08a8][_0x143f('0xe0')][_0x143f('0x94')]());_0x45bcb8[0x0][_0x143f('0x53')](_0x1210d3),_0x234fa1=_0x1210d3;}_0x490612[_0x490612[_0x143f('0xe4')]-0x1]+=_0x2169e5[_0x2f08a8]['item'][_0x143f('0x100')],_0x31ef20=_0x3d35e4[_0x143f('0x5c')](_0x490af7,_0x490612);}}for(const _0x19f469 of _0x2169e5[_0x2f08a8][_0x143f('0x77')])_0x59ce76[_0x143f('0x68')](_0x19f469,{'start':_0xcd23cd,'end':null});_0x1b44b7('isRemoveSuggestion',_0x2f08a8,_0xcd23cd,_0x31ef20),_0x1b44b7(_0x143f('0x4'),_0x2f08a8,_0xcd23cd,_0x31ef20),_0x1b44b7(_0x143f('0xf5'),_0x2f08a8,_0xcd23cd,_0x31ef20),_0x1b44b7(_0x143f('0xee'),_0x2f08a8,_0xcd23cd,_0x31ef20);for(const _0x4a3faf of _0x2169e5[_0x2f08a8][_0x143f('0x8a')]){_0x59ce76['get'](_0x4a3faf)[_0x143f('0xac')]=_0x31ef20;}}for(const [_0xb6fec2,_0x16814c]of _0x59ce76){const _0x46716f=this[_0x143f('0x61')][_0x143f('0x8d')]['createRange'](_0x16814c[_0x143f('0x4c')],_0x16814c['end']);_0x490af7[_0x143f('0xd5')][_0x143f('0x68')](_0xb6fec2,_0x46716f);}return _0xb9a78f[_0x143f('0xad')]((_0x3c2273,_0x196a94)=>{const _0x563f7c=_0x490af7[_0x143f('0xd5')]['get'](_0x143f('0xd7')+_0x3c2273['id']),_0x4e7949=_0x490af7[_0x143f('0xd5')][_0x143f('0x7')](_0x143f('0xd7')+_0x196a94['id']);return _0x563f7c['start']['isBefore'](_0x4e7949[_0x143f('0x4c')])?-0x1:_0x563f7c['start']['isAfter'](_0x4e7949[_0x143f('0x4c')])?0x1:_0x563f7c[_0x143f('0xac')]['isBefore'](_0x4e7949[_0x143f('0xac')])?-0x1:_0x563f7c[_0x143f('0xac')]['isAfter'](_0x4e7949[_0x143f('0xac')])?0x1:_0x143f('0x1a')===_0x3c2273['type']?-0x1:0x1;}),{'root':_0x490af7,'changes':_0xb9a78f};function _0x1b44b7(_0x498a32,_0x9edbfa,_0x5a612f,_0x261dfe){const _0x3ec51c=!!_0x2169e5[_0x9edbfa][_0x498a32],_0x3c9692=_0x3ec51c?_0x2169e5[_0x9edbfa][_0x498a32][_0x143f('0x85')]:null,_0x557f52=_0x9edbfa===_0x2169e5['length']-0x1,_0x564eb3=_0x1429ef[_0x498a32][0x0],_0x3b9fcb=_0x1ef2f6['isObject'](_0x2169e5[_0x9edbfa][_0x143f('0xe0')]);!_0x9f124d[_0x498a32]&&_0x3ec51c?_0x9f124d[_0x498a32]={'start':_0x5a612f,'tapeItem':_0x2169e5[_0x9edbfa],'userId':_0x3c9692,'type':_0x498a32}:_0x9f124d[_0x498a32]&&!_0x3ec51c?(_0x9f124d[_0x498a32][_0x143f('0xac')]=_0x5a612f,_0x353052(_0x9f124d[_0x498a32]),_0x9f124d[_0x498a32]=null):_0x9f124d[_0x498a32]&&_0x3ec51c&&_0x9f124d[_0x498a32][_0x143f('0x85')]!==_0x3c9692&&(_0x9f124d[_0x498a32][_0x143f('0xac')]=_0x5a612f,_0x564eb3&&_0x564eb3[_0x143f('0x85')]===_0x9f124d[_0x498a32][_0x143f('0x85')]||_0x353052(_0x9f124d[_0x498a32]),_0x9f124d[_0x498a32]={'start':_0x5a612f,'tapeItem':_0x2169e5[_0x9edbfa],'userId':_0x3c9692,'type':_0x498a32}),_0x9f124d[_0x498a32]&&_0x3b9fcb&&('elementStart'!==_0x2169e5[_0x9edbfa][_0x143f('0xf4')]||_0x564eb3&&_0x564eb3[_0x143f('0x85')]===_0x3c9692||_0x1429ef[_0x498a32][_0x143f('0xd6')]({'userId':_0x3c9692,'object':_0x2169e5[_0x9edbfa][_0x143f('0xe0')],'change':_0x9f124d[_0x498a32]}),_0x143f('0x3e')===_0x2169e5[_0x9edbfa][_0x143f('0xf4')]&&_0x564eb3&&_0x564eb3[_0x143f('0xd9')]===_0x2169e5[_0x9edbfa][_0x143f('0xe0')]&&(_0x1429ef[_0x498a32][_0x143f('0xb4')](),_0x9f124d[_0x498a32]=_0x564eb3['change'])),_0x9f124d[_0x498a32]&&_0x557f52&&(_0x9f124d[_0x498a32]['end']=_0x261dfe,_0x353052(_0x9f124d[_0x498a32]),_0x9f124d[_0x498a32]=null);}function _0x353052({start:_0x4c48a4,end:_0x25ec04,tapeItem:_0x47d1d9,userId:_0x1272d4,type:_0x1773d4}){const _0x582f21=_0x47d1d9[_0x143f('0xe0')],_0x3e5220=_0x3d35e4['schema'][_0x143f('0x32')](_0x582f21)&&!_0x3d35e4[_0x143f('0xfa')][_0x143f('0xf0')](_0x582f21),_0x12ea0f=_0x4c48a4['nodeAfter']==_0x25ec04[_0x143f('0x91')]&&_0x25ec04[_0x143f('0xda')];if(_0x3e5220&&_0x12ea0f)return;const _0x328a5b=_0x3d35e4[_0x143f('0xd2')](_0x4c48a4,_0x25ec04),_0x1a8a7f=_0x258978['get'](_0x1272d4),_0x1800b9=new _0x1d3e57({'author':_0x1a8a7f,'type':_0x143f('0xee')==_0x1773d4||'isAddSuggestion'==_0x1773d4?_0x143f('0x1a'):_0x143f('0x5f'),'data':{'isSuggestion':_0x143f('0x4')==_0x1773d4||_0x143f('0x65')==_0x1773d4},'createdAt':new Date()});_0xb9a78f[_0x143f('0xf2')](_0x1800b9),_0x490af7[_0x143f('0xd5')][_0x143f('0x68')](_0x143f('0xd7')+_0x1800b9['id'],_0x328a5b);}function _0x50f8eb(_0x337783,_0x544444){const _0x2f7391=_0x337783[_0x143f('0x94')](),_0x3c2247=_0x544444['getAttributes']();for(const _0x443129 of _0x2f7391){if(_0x443129[0x1]!==_0x544444[_0x143f('0x29')](_0x443129[0x0]))return!0x1;_0x3c2247[_0x143f('0x88')]();}return _0x3c2247[_0x143f('0x88')]()[_0x143f('0x28')];}}['_setConversion'](){this[_0x143f('0x61')]['conversion'][_0x143f('0x35')](_0x143f('0xe6'))[_0x143f('0x78')]({'view':'revision'}),this[_0x143f('0x61')][_0x143f('0xaf')][_0x143f('0x35')](_0x143f('0xf8'))['markerToHighlight']({'model':_0x143f('0x20'),'view':_0x1397d0=>{const _0x2adb03=_0x1397d0[_0x143f('0x6c')][_0x143f('0xca')](':')[0x1],_0x3a436c=this[_0x143f('0x47')](_0x2adb03);if(!_0x3a436c)return null;const _0x31d328=_0x143f('0x1a')==_0x3a436c['type']?_0x143f('0x6'):'deletion',_0x375fd0=[_0x143f('0x69'),_0x143f('0xbb')+_0x31d328];return _0x3a436c[_0x143f('0xb2')]['isSuggestion']&&_0x375fd0[_0x143f('0xf2')]('ck-suggestion-marker-'+_0x31d328+_0x143f('0x50')),this['activeChange']==_0x3a436c&&_0x375fd0[_0x143f('0xf2')](_0x143f('0x4d')),{'classes':_0x375fd0,'attributes':{'data-change-id':_0x2adb03}};}}),this[_0x143f('0x61')][_0x143f('0xaf')][_0x143f('0x35')](_0x143f('0xe6'))[_0x143f('0x1a')](_0xe7c1ea=>{_0xe7c1ea['on'](_0x143f('0x24'),(_0x503912,_0x6bbbb7,_0x28e087)=>{const _0x277d1=_0x6bbbb7[_0x143f('0x67')][_0x143f('0x8b')](0x0);if(!_0x277d1||!_0x277d1['is'](_0x143f('0x7a'),_0x143f('0x6f')))return;if(!_0x28e087['consumable'][_0x143f('0x3b')](_0x277d1,{'attributes':[_0x143f('0xec'),'vid_end']}))return;const _0x41ec0d=_0x6bbbb7['modelRange'][_0x143f('0x4c')]['nodeAfter'];_0x28e087[_0x143f('0xa9')][_0x143f('0xc4')](_0x143f('0xec'),_0x277d1[_0x143f('0x29')](_0x143f('0xec')),_0x41ec0d),_0x28e087['writer'][_0x143f('0xc4')](_0x143f('0x66'),_0x277d1[_0x143f('0x29')](_0x143f('0x66')),_0x41ec0d);},{'priority':_0x143f('0xb9')});}),this[_0x143f('0x61')]['conversion']['for'](_0x143f('0xe6'))['add'](_0x55a98f=>{_0x55a98f['on'](_0x143f('0x7a'),(_0x4feb4c,_0x2376bb,_0x1a834b)=>{if(!_0x1a834b['consumable']['consume'](_0x2376bb[_0x143f('0x67')],{'attributes':[_0x143f('0xec'),_0x143f('0x66')]}))return;if(_0x2376bb[_0x143f('0x30')][_0x143f('0xcd')])return;const _0x315e91=_0x2376bb[_0x143f('0x30')][_0x143f('0x4c')][_0x143f('0xbc')];_0x315e91[_0x143f('0x3d')]('vid_start')||_0x315e91[_0x143f('0x3d')](_0x143f('0xdb'))||(_0x1a834b[_0x143f('0xa9')][_0x143f('0xc4')]('vid_start',_0x2376bb[_0x143f('0x67')]['getAttribute']('vid_start'),_0x315e91),_0x1a834b[_0x143f('0xa9')]['setAttribute'](_0x143f('0x66'),_0x2376bb['viewItem'][_0x143f('0x29')](_0x143f('0x66')),_0x315e91));},{'priority':_0x143f('0xb9')});}),this[_0x143f('0x61')][_0x143f('0xaf')][_0x143f('0x35')](_0x143f('0xe6'))[_0x143f('0x9a')]({'view':{'name':_0x143f('0x62'),'attributes':{'vid':!0x0}},'model':{'key':_0x143f('0xdb'),'value':_0x1d76a1=>_0x1d76a1[_0x143f('0x29')](_0x143f('0xdb'))}}),this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0xfa')]['on'](_0x143f('0xbe'),(_0x1e9f86,[,_0x5002a5])=>{[_0x143f('0xec'),_0x143f('0x66'),_0x143f('0xdb')]['includes'](_0x5002a5)&&(_0x1e9f86[_0x143f('0xc6')]=!0x0,_0x1e9f86[_0x143f('0x106')]());},{'priority':_0x143f('0xe7')}),this[_0x143f('0x61')][_0x143f('0xaf')][_0x143f('0x35')](_0x143f('0xeb'))[_0x143f('0x1a')](_0x81f337=>{_0x81f337['on'](_0x143f('0xc9'),(_0x2681f6,_0x12cdb8,_0x2c1568)=>{if('\x20'!=_0x12cdb8['item'][_0x143f('0xb2')]||_0x12cdb8[_0x143f('0xe0')][_0x143f('0x91')]['maxOffset']>0x1)return;if(!_0x2c1568['consumable'][_0x143f('0x3b')](_0x12cdb8['item'],_0x2681f6['name']))return;const _0x1b1bad=_0x2c1568[_0x143f('0xa9')],_0x5f46b8=_0x2c1568[_0x143f('0x63')][_0x143f('0xe5')](_0x12cdb8[_0x143f('0xfd')]);_0x1b1bad['wrap'](_0x5f46b8,_0x1b1bad[_0x143f('0xdf')]('span'));});}),this['editor'][_0x143f('0xaf')][_0x143f('0x35')]('dataDowncast')[_0x143f('0x92')]({'model':_0x143f('0x20')}),this[_0x143f('0x61')]['editing'][_0x143f('0xa8')]['on'](_0x143f('0x84'),function(_0x554f03){const _0x13c317=_0x554f03[_0x143f('0xe8')][_0x143f('0x7')]('RevisionViewer');return(_0x514774,_0x587e35,_0x267e90)=>{const _0x56c9f2=_0x587e35['markerName'][_0x143f('0xca')](':')[0x1],_0x10790a=_0x13c317['_getChangeFromId'](_0x56c9f2);if(!_0x10790a)return null;const _0x579bf2='add'==_0x10790a[_0x143f('0xf4')]?'split':_0x143f('0xa0');if(!_0x267e90['consumable'][_0x143f('0x72')](_0x587e35[_0x143f('0x7b')],_0x514774['name']))return;const _0x55d53a=_0x587e35[_0x143f('0x7b')]['getWalker'](),_0x510343=_0x587e35[_0x143f('0x7b')]['start'],_0x239853=_0x554f03[_0x143f('0x8d')][_0x143f('0xfa')];let _0x77d929=null,_0x10e794=null,_0x23b41b=!0x1,_0x12ebf1=!0x1;for(const _0x22471a of _0x55d53a){const _0x45fdc8=_0x22471a[_0x143f('0xe0')];_0x23b41b=_0x23b41b||_0x239853[_0x143f('0xcb')](_0x45fdc8);const _0x1c679c=_0x267e90[_0x143f('0x63')][_0x143f('0x7c')](_0x45fdc8);if(_0x1c679c&&_0x1c679c[_0x143f('0xe2')]('addHighlight'))return;_0x143f('0x3e')==_0x22471a[_0x143f('0xf4')]&&(_0x239853[_0x143f('0x32')](_0x45fdc8)&&!_0x239853[_0x143f('0xf0')](_0x45fdc8)&&(_0x45fdc8[_0x143f('0x45')]||_0x510343[_0x143f('0x3')]?_0x77d929&&_0x77d929[_0x143f('0x91')]==_0x45fdc8||(_0x77d929=_0x45fdc8,_0x59b2b7(_0x22471a['previousPosition']),_0x12ebf1=!0x0):_0x10e794=_0x10e794||_0x22471a[_0x143f('0xd0')]));}function _0x59b2b7(_0x385ef3){const _0x4d2b01=_0x267e90[_0x143f('0xa9')][_0x143f('0x3f')](_0x143f('0x62'),{'class':_0x143f('0xbb')+_0x579bf2}),_0x4569f4=_0x267e90[_0x143f('0x63')][_0x143f('0x97')](_0x385ef3);_0x10790a[_0x143f('0xb2')][_0x143f('0x8e')]&&_0x267e90[_0x143f('0xa9')]['addClass'](_0x143f('0xbb')+_0x579bf2+_0x143f('0x50'),_0x4d2b01),_0x13c317[_0x143f('0x5a')]==_0x10790a&&_0x267e90[_0x143f('0xa9')][_0x143f('0x2b')]('ck-suggestion-marker--active',_0x4d2b01),_0x267e90['writer'][_0x143f('0x7f')](_0x4569f4,_0x4d2b01),_0x267e90[_0x143f('0x63')][_0x143f('0x10c')](_0x4d2b01,_0x587e35['markerName']);}_0x23b41b||_0x12ebf1||!_0x10e794||_0x59b2b7(_0x10e794);};}(this['editor']),{'priority':_0x143f('0x42')}),this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0xa8')]['on'](_0x143f('0xcc'),(_0x3ddd37,_0xf8bc47,_0x18a2f7)=>{const _0x3003d9=_0x18a2f7['mapper'][_0x143f('0x9d')](_0xf8bc47[_0x143f('0x6c')]);if(_0x3003d9)for(const _0x3b1b92 of _0x3003d9)(_0x3b1b92[_0x143f('0xd3')](_0x143f('0xa2'))||_0x3b1b92[_0x143f('0xd3')](_0x143f('0x8f')))&&(_0x18a2f7[_0x143f('0x63')][_0x143f('0x104')](_0x3b1b92,_0xf8bc47[_0x143f('0x6c')]),_0x18a2f7[_0x143f('0xa9')][_0x143f('0x5f')](_0x3b1b92));},{'priority':_0x143f('0x42')}),this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0xa8')]['on'](_0x143f('0x84'),(_0x2b0ff8,_0x2fdba6,_0x2190d6)=>{const _0x15be62=_0x2fdba6[_0x143f('0x6c')]['split'](':')[0x1],_0x4eb7e1=this[_0x143f('0x47')](_0x15be62);if(!_0x4eb7e1)return null;const _0x5bf929='add'==_0x4eb7e1[_0x143f('0xf4')]?_0x143f('0xca'):_0x143f('0xa0');if(_0x2190d6['consumable'][_0x143f('0x72')](_0x2fdba6['markerRange'],_0x2b0ff8[_0x143f('0xc0')]))for(const _0x11897b of _0x2fdba6[_0x143f('0x7b')][_0x143f('0xaa')]()){if(!_0x11897b['is'](_0x143f('0x7a'),'softBreak'))continue;const _0xa5a438=_0x2190d6[_0x143f('0xa9')][_0x143f('0x3f')](_0x143f('0x62'),{'class':_0x143f('0xbb')+_0x5bf929}),_0x41698f=_0x2190d6['mapper'][_0x143f('0x97')](this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0x4b')](_0x11897b));_0x4eb7e1[_0x143f('0xb2')][_0x143f('0x8e')]&&_0x2190d6['writer'][_0x143f('0x2b')]('ck-suggestion-marker-'+_0x5bf929+'-new',_0xa5a438),this['activeChange']==_0x4eb7e1&&_0x2190d6['writer'][_0x143f('0x2b')](_0x143f('0x4d'),_0xa5a438),_0x2190d6[_0x143f('0xa9')][_0x143f('0x7f')](_0x41698f,_0xa5a438),_0x2190d6['mapper'][_0x143f('0x10c')](_0xa5a438,_0x2fdba6['markerName']);}},{'priority':_0x143f('0x42')}),this['editor'][_0x143f('0xaf')]['for'](_0x143f('0xe6'))[_0x143f('0x78')]({'view':_0x143f('0x86')}),this[_0x143f('0x61')]['conversion']['for']('dataDowncast')['markerToData']({'model':_0x143f('0x86')}),this[_0x143f('0x61')][_0x143f('0xaf')][_0x143f('0x35')](_0x143f('0xf8'))[_0x143f('0x9e')]({'model':_0x143f('0x86'),'view':_0x47efb3=>{const _0x273b1c=_0x47efb3[_0x143f('0x6c')]['split'](':')[0x1];return _0x143f('0x6')!=_0x273b1c&&_0x143f('0xf6')!=_0x273b1c?null:{'classes':['ck-suggestion-preview-marker',_0x143f('0x98')+_0x273b1c]};}}),this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0xa8')]['on'](_0x143f('0xbf'),Z(this['editor'],_0x143f('0xa0')),{'priority':_0x143f('0x42')}),this[_0x143f('0x61')][_0x143f('0xa3')]['downcastDispatcher']['on'](_0x143f('0x4e'),Z(this[_0x143f('0x61')],_0x143f('0xca')),{'priority':_0x143f('0x42')}),this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0xa8')]['on'](_0x143f('0x34'),(_0x221f94,_0x12c099,_0x24ef69)=>{const _0x2296c5=_0x24ef69[_0x143f('0x63')][_0x143f('0x9d')](_0x12c099[_0x143f('0x6c')]);if(_0x2296c5)for(const _0x39d2ee of _0x2296c5)_0x39d2ee['is']('uiElement')&&(_0x24ef69[_0x143f('0x63')][_0x143f('0x104')](_0x39d2ee,_0x12c099['markerName']),_0x24ef69['writer']['remove'](_0x39d2ee));},{'priority':_0x143f('0x42')});}[_0x143f('0x47')](_0x483c9e){return this[_0x143f('0x107')][_0x143f('0x7')](_0x483c9e);}['_getViewForChange'](_0x635459){this['_changeView']&&this[_0x143f('0x10')][_0x143f('0x58')](),this[_0x143f('0x10')]=new _0x220785(this[_0x143f('0x61')]['locale'],_0x635459);const _0x16d769=this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0xd5')][_0x143f('0x7')](_0x143f('0xd7')+_0x635459['id']);return this[_0x143f('0x10')]['_target']=()=>_0x131b2e(this['editor']['editing'],_0x16d769),this[_0x143f('0x10')];}[_0x143f('0x37')](){this['editor'][_0x143f('0x8d')][_0x143f('0x2')][_0x143f('0x9c')][_0x143f('0x83')]('revision'),this['on'](_0x143f('0x2e'),(_0x261da6,_0x69c94e,_0x4d4c95,_0x1f0527)=>{_0x1f0527&&this['_balloon'][_0x143f('0x5f')](_0x1f0527),_0x4d4c95&&(this[_0x143f('0xb7')]['add']({'view':_0x4d4c95,'stackId':'revisionHistoryLabel','position':{'target':_0x4d4c95[_0x143f('0x82')]}}),this['_balloon'][_0x143f('0x60')](_0x143f('0x41')));}),this['on']('change:activeChange',(_0x3243f8,_0x4bdaa0,_0x2dd994,_0x57b8c1)=>{this[_0x143f('0x4a')]=_0x2dd994?this[_0x143f('0xae')](_0x2dd994):null,this['editor'][_0x143f('0x8d')][_0x143f('0x33')](()=>{const _0x4059ae=this[_0x143f('0x61')][_0x143f('0xa3')];_0x57b8c1&&_0x4059ae['reconvertMarker'](_0x143f('0xd7')+_0x57b8c1['id']),_0x2dd994&&_0x4059ae['reconvertMarker'](_0x143f('0xd7')+_0x2dd994['id']);});}),this[_0x143f('0x101')](this[_0x143f('0x61')][_0x143f('0xa3')][_0x143f('0x74')]['document'],_0x143f('0xfe'),(_0x3df958,_0x516783)=>{if(this['activeChange'])return;const _0x7c0987=this[_0x143f('0x22')](_0x516783[_0x143f('0xfb')]),_0x4edde9=this[_0x143f('0x107')][_0x143f('0x7')](_0x7c0987);this[_0x143f('0x4a')]=_0x4edde9?this['_getViewForChange'](_0x4edde9):null;}),this[_0x143f('0x101')](this['editor'][_0x143f('0xa3')]['view']['document'],_0x143f('0x81'),(_0x15e12b,_0x338bcb)=>{const _0x36fca6=this[_0x143f('0x22')](_0x338bcb[_0x143f('0xfb')]),_0x3c79e1=this[_0x143f('0x107')][_0x143f('0x7')](_0x36fca6);this['activeChange']=_0x3c79e1||null;});}[_0x143f('0x22')](_0x487bed){do{const _0x1245ca=_0x487bed['getAttribute'](_0x143f('0xff'));if(_0x1245ca)return _0x1245ca;_0x487bed=_0x487bed[_0x143f('0x91')];}while(_0x487bed);return null;}[_0x143f('0xbd')](){this[_0x143f('0x61')][_0x143f('0x8d')][_0x143f('0x33')](_0x329c22=>{for(const _0x24fbac of this['editor'][_0x143f('0x8d')][_0x143f('0xd5')])_0x329c22[_0x143f('0x59')](_0x24fbac);});}}function Z(_0x3f13e9,_0xe8382d){return(_0x1e9af0,_0x3a6dd9,_0x1a52b4)=>{if(!_0x1a52b4[_0x143f('0xe')]['test'](_0x3a6dd9[_0x143f('0x7b')],_0x1e9af0[_0x143f('0xc0')]))return;const _0x23195d=_0x3a6dd9['markerRange'][_0x143f('0x13')](),_0x34faa3=_0x3a6dd9[_0x143f('0x7b')]['start'],_0x3aa246=_0x3f13e9[_0x143f('0x8d')][_0x143f('0xfa')];let _0x256a6b=null,_0x367a4f=null,_0x89cc0f=!0x1,_0x167563=!0x1;for(const _0x1dd4da of _0x23195d){const _0x2966ca=_0x1dd4da[_0x143f('0xe0')];_0x89cc0f=_0x89cc0f||_0x3aa246[_0x143f('0xcb')](_0x2966ca);const _0xea9c3d=_0x1a52b4[_0x143f('0x63')][_0x143f('0x7c')](_0x2966ca);if(_0xea9c3d&&_0xea9c3d[_0x143f('0xe2')](_0x143f('0x40')))return;_0x143f('0x3e')==_0x1dd4da[_0x143f('0xf4')]&&(_0x3aa246['isBlock'](_0x2966ca)&&!_0x3aa246[_0x143f('0xf0')](_0x2966ca)&&(_0x2966ca[_0x143f('0x45')]||_0x34faa3[_0x143f('0x3')]?_0x256a6b&&_0x256a6b[_0x143f('0x91')]==_0x2966ca||(_0x256a6b=_0x2966ca,_0x4a23e4(_0x1dd4da[_0x143f('0xd0')]),_0x167563=!0x0):_0x367a4f=_0x367a4f||_0x1dd4da[_0x143f('0xd0')]));}function _0x4a23e4(_0x56a906){const _0x2046a3=_0x1a52b4['mapper']['toViewPosition'](_0x56a906),_0x4244fa=_0x1a52b4['writer'][_0x143f('0x3f')](_0x143f('0x62'),{'class':'ck-suggestion-preview-marker-'+_0xe8382d});_0x1a52b4[_0x143f('0xa9')]['insert'](_0x2046a3,_0x4244fa),_0x1a52b4[_0x143f('0x63')]['bindElementToMarker'](_0x4244fa,_0x3a6dd9[_0x143f('0x6c')]);}_0x89cc0f||_0x167563||!_0x367a4f||_0x4a23e4(_0x367a4f);};}_0x3dc86b(R,_0x1aefaa);class tt extends _0x57e198{constructor(_0x2c6a1a){super(_0x2c6a1a);const _0x1443b2=_0x2c6a1a['plugins'][_0x143f('0x7')](R);this['stopListening'](_0x2c6a1a,_0x143f('0x70')),this[_0x143f('0xa7')]('readOnlyMode'),this['listenTo'](_0x1443b2,_0x143f('0x14'),()=>this[_0x143f('0x90')]()),this['listenTo'](_0x1443b2,_0x143f('0xc2'),()=>this[_0x143f('0x90')]());}['execute'](){const _0xa3ec9=this['editor'],_0x102a30=_0xa3ec9['plugins'][_0x143f('0x7')](R),_0x464f2e=_0x102a30[_0x143f('0x1')]?_0x102a30[_0x143f('0x39')][_0x143f('0xa1')]:null;_0xa3ec9['config']['get'](_0x143f('0x1d'))[_0x143f('0x108')](_0x464f2e);}[_0x143f('0x90')](){const {isReady:_0x546171,isEnabled:_0x405eae}=this[_0x143f('0x61')][_0x143f('0xe8')]['get'](R);this['isEnabled']=_0x546171&&_0x405eae;}}class et extends _0x57e198{constructor(_0x26e30f,{direction:_0x254681}){super(_0x26e30f);const _0x4050c0=_0x26e30f[_0x143f('0xe8')][_0x143f('0x7')](R);this[_0x143f('0x4f')](_0x26e30f,'change:isReadOnly'),this[_0x143f('0xa7')]('readOnlyMode'),this[_0x143f('0x9f')]=_0x143f('0x17')===_0x254681?0x1:-0x1,this[_0x143f('0x101')](_0x4050c0,_0x143f('0x14'),()=>this['refresh']()),this[_0x143f('0x101')](_0x4050c0,_0x143f('0xc2'),()=>this['refresh']());}['execute'](){const _0x45f8c6=this['editor'],_0x34659f=_0x45f8c6[_0x143f('0xe8')][_0x143f('0x7')](R),{isNavigationMode:_0x1b0b2b,currentChangeNumber:_0x16be8a}=_0x34659f;_0x34659f[_0x143f('0x5a')]=_0x1b0b2b?_0x34659f['diff'][_0x143f('0xf9')]['get'](_0x16be8a+this[_0x143f('0x9f')]):_0x34659f['diff'][_0x143f('0xf9')]['first'];const _0x32352d=_0x45f8c6[_0x143f('0x8d')][_0x143f('0xd5')][_0x143f('0x7')](_0x143f('0xd7')+_0x34659f[_0x143f('0x5a')]['id']),_0x41718a=_0x131b2e(_0x45f8c6[_0x143f('0xa3')],_0x32352d);_0xf073a9({'target':_0x41718a,'viewportOffset':0x28});}[_0x143f('0x90')](){const {isNavigationMode:_0x236d74,currentChangeNumber:_0x552d53,numberOfChanges:_0x26ba4a,isReady:_0x4c1c80,isEnabled:_0x456c21}=this[_0x143f('0x61')][_0x143f('0xe8')]['get'](R);this[_0x143f('0x80')]=!!(_0x456c21&&_0x4c1c80&&_0x26ba4a)&&(!_0x236d74||(0x1===this['_step']?_0x552d53<_0x26ba4a-0x1:_0x552d53>0x0));}}