@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231005.0 → 0.0.0-nightly-20231007.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ed3=['insertions','config','isBefore','markers','WidgetToolbarRepository','elementStart','getDomRoot','_initInteractions','add','remove','side','right','ck-editor__editable__overlay','isRemoved','_update','index','removeClass','data-change-id','hasAttribute','split','createUIElement','bindElementToMarker','locale','children','_setConversion','_removeRevisionMarkers','first','indexOf','change:activeChange','updatePosition','unbindElementFromMarkerName','data','isAfter','offsetSize','affectsData','string','return','diff','destroy','highest','newRevisionId','push','ck-suggestion-marker--active','_makeTape','revisionHistoryLabel','activeChange','_balloon','addMarker:revision','editing','ck-revision-history-root-add','test','backward','element:pre','change:numberOfChanges','target','_makeModelFromViewString','schema','editor','roots','_markSuggestions','_markMarkers','isSuggestion','markersStart','set','mousedown','isEnabled','isIncorrect','consumable','getAttribute','downcastDispatcher','consume','bottom','span','activeView','document','execute','revision','startsWith','_markMismatchedRemovedTags','start','_step','ck-suggestion-preview-marker-','authors','removeAttribute','error','RevisionViewer','forward','viewItem','selection','modelRange','isObject','_setDistance','_processTape','isAdded','refresh','revision-suggestion','detachRoot','ck-suggestion-marker-split','_cleanUp','createAttributeElement','createPositionFromPath','enqueueChange','RevisionsRepository','removeMarker:revision-suggestion','values','keys','mouseover','toViewRange','userId','_sortAndFilterDiffChanges','isReady','isAtEnd','hasClass','createRangeIn','isContent','text','endIndex','nextPosition','isLimit','markersEnd','from','shift','_activeViewTarget','_changeIdToChange','startIndex','length','change:isReady','processor','vid_end','_getViewObj','_joinTapes','end','useFillerType','parent','isBlock','_refreshStartEndIndex','ck-revision-history-root-remove','toModel','reconvertMarker','ck-suggestion-preview-marker','getItems','_makeModelFromTape','object','addHighlight','attributesAfter','_getChangeFromId','init','next','rootName','addMarker:revision-suggestion:insertion','distance','setAttribute','getClientRects','pairId','done','oldRevisionId','vid_start','showNextChange','repository','change:activeView','domEvent','_findChangeIdFromDomTarget','revision-viewer','element','deletions','createRevision','find','isNavigationMode','elementToAttribute','unshift','marked','filter','isAddSuggestion','previousPosition','editingDowncast','ck-revision-history-root--active','listenTo','view','_appendChild','attributes','isCollapsed','currentChangeNumber','low','model','_markInsertions','markerToHighlight','left','removeMarker','revision-comment:','revision-suggestion:','bind','splice','nodeAfter','getRootNames','mapViewToDom','_changeView','addRoot','all','insert','resolve','_getRevisionsRange','collaboration.channelId','delete','adapter','toViewPosition','showPreviousChange','_removeUnsupportedChanges','revisionHistory','concat','_removeMissingPairs','vid','_cleanMarkers','writer','requires','changes','change:isEnabled','getIndex','softBreak','stop','high','ck-suggestion-marker','abs','restoreRevisionCallback','isOnRoot','getRoot','insertion','mapper','revision-start','elementEnd','comment','toViewElement','createPositionBefore','markerRange','-new','loadRevisionData','then','type','has','compare','addClass','isEqual','sort','nextSibling','getWalker','removeMarker:revision','plugins','_getViewForChange','level','attributesBefore','addMarker:revision-suggestion:deletion','name','data-revision-','clear','map','diffData','ck-suggestion-marker-','maxOffset','deletion','item','attachChange','parse','getRevision','getCustomProperty','observeMarkers','upcast','isAtStart','forceDisabled','merge','forEach','for','get','dataDowncast','enableReadOnlyMode','isInline','markerNameToElements','default','commands','dataToMarker','isAttached','addRevisionData','revision:','restoreRevision','getAttributes','getRevisionRootsAttributes','getRevisionData','isRemoveSuggestion','change','pop','markerName','flat','pluginName','conversion'];(function(_0x4621ba,_0x3ed390){const _0x360443=function(_0x3ccfc4){while(--_0x3ccfc4){_0x4621ba['push'](_0x4621ba['shift']());}};_0x360443(++_0x3ed390);}(_0x3ed3,0x18a));const _0x3604=function(_0x4621ba,_0x3ed390){_0x4621ba=_0x4621ba-0x0;let _0x360443=_0x3ed3[_0x4621ba];return _0x360443;};import{Plugin as _0x483fce,Command as _0x524429}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x14bcb4}from'ckeditor5/src/utils';import{ContextualBalloon as _0x25cb05}from'ckeditor5/src/ui';import{DocumentFragment as _0x31ed5d,Element as _0x2bb520,Text as _0xc9bffc,ViewDocumentFragment as _0x47e122,ViewText as _0x26a2d1,ViewElement as _0x215ee7,ViewContainerElement as _0x37ff20,ViewAttributeElement as _0x66c7f,ViewEmptyElement as _0x65e48d,ViewRawElement as _0x4bae77,ViewUIElement as _0x17b459}from'ckeditor5/src/engine';import{Users as _0x33bd03,getMarkerDomElement as _0x48f1fb}from'ckeditor5-collaboration/src/collaboration-core';import _0x470938 from'./ui/revisionviewer/changedetailsview';import _0x59f1d4 from'./revisionsrepository';import _0x58e1bf from'./changeitem';import{default as _0x97b06e}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x13cd76}from'lodash-es';const tt={'c':_0x37ff20,'a':_0x66c7f,'e':_0x65e48d,'r':_0x4bae77,'u':_0x17b459};export default class d extends _0x483fce{static get[_0x3604('0xbc')](){return _0x3604('0x113');}static get[_0x3604('0x6f')](){return[_0x33bd03,_0x25cb05,_0x59f1d4];}constructor(_0x558b0c){super(_0x558b0c),this[_0x3604('0x38')]=this['editor']['plugins'][_0x3604('0xa8')](_0x3604('0x0')),this[_0x3604('0xfd')]('activeChange',null),this[_0x3604('0xfd')](_0x3604('0x107'),null),this[_0x3604('0x14')]=null,this[_0x3604('0xfd')]('diff',null),this[_0x3604('0xfd')](_0x3604('0x8'),!0x1),this[_0x3604('0xfd')](_0x3604('0xff'),!0x0),this['on'](_0x3604('0x71'),(_0x5ee129,_0x3f686e,_0x638d38)=>{this['activeChange']=null,this[_0x3604('0x107')]=null,this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x4b')]['change'](_0x4db313=>{for(const _0x512c19 of this['editor'][_0x3604('0xee')][_0x3604('0x4b')]['document'][_0x3604('0xf8')])_0x638d38?_0x4db313[_0x3604('0xce')](_0x3604('0xca'),_0x512c19):_0x4db313[_0x3604('0x89')](_0x3604('0xca'),_0x512c19);});}),this[_0x3604('0x58')](_0x3604('0x41'))['to'](this,_0x3604('0xeb'),_0x38bf81=>null!==_0x38bf81),this['bind'](_0x3604('0x4f'))['to'](this,_0x3604('0x8'),this,_0x3604('0xe3'),this,'activeChange',(_0x184ee8,_0x1ee0a4,_0x20f616)=>_0x184ee8&&_0x20f616?_0x1ee0a4[_0x3604('0x70')]['getIndex'](_0x20f616):0x0),this[_0x3604('0x58')]('numberOfChanges')['to'](this,_0x3604('0x8'),this,_0x3604('0xe3'),(_0x556c21,_0x15bdeb)=>_0x556c21?_0x15bdeb['changes']['length']:0x0),this[_0x3604('0x5d')]=null,this['_changeIdToChange']=new Map(),this[_0x3604('0x65')]=null,this['_balloon']=this[_0x3604('0xf7')][_0x3604('0x8f')]['get'](_0x25cb05);}[_0x3604('0x2c')](){const _0x871d00=this[_0x3604('0xf7')],_0x3afd66=new ShowChangeCommand(_0x871d00,{'direction':_0x3604('0xf1')}),_0x2093c8=new ShowChangeCommand(_0x871d00,{'direction':_0x3604('0x114')});(_0x871d00[_0x3604('0xae')][_0x3604('0xc6')](_0x3604('0x67'),_0x3afd66),_0x871d00[_0x3604('0xae')]['add'](_0x3604('0x37'),_0x2093c8),_0x871d00[_0x3604('0xae')][_0x3604('0xc6')](_0x3604('0xb3'),new RestoreRevisionCommand(_0x871d00)),this['on'](_0x3604('0xf3'),()=>{_0x3afd66['refresh'](),_0x2093c8[_0x3604('0x11c')]();}),this[_0x3604('0xd6')](),this[_0x3604('0xc5')](),_0x871d00[_0x3604('0xaa')](_0x3604('0x3c')),_0x871d00[_0x3604('0x8f')][_0x3604('0x87')](_0x3604('0xc2')))&&_0x871d00[_0x3604('0x8f')]['get'](_0x3604('0xc2'))[_0x3604('0xa4')](_0x3604('0x3c'));}async[_0x3604('0xb6')](_0x5e600){await this[_0x3604('0x84')](_0x5e600);const _0x3a44fb={};for(const _0x13cc92 in _0x5e600[_0x3604('0x98')]){if(_0x5e600[_0x3604('0x98')][_0x13cc92][_0x3604('0x9d')]&&!_0x5e600[_0x3604('0x98')][_0x13cc92][_0x3604('0x9d')][_0x3604('0xb0')])continue;const _0x4d6cf5=this['_removeRevisionMarkers'](JSON[_0x3604('0x9e')](_0x5e600[_0x3604('0x98')][_0x13cc92][_0x3604('0xbe')])),_0x29618a=this[_0x3604('0xf7')]['editing'][_0x3604('0x4b')]['document'],_0x82a22f=new _0x47e122(_0x29618a,_0x4d6cf5[_0x3604('0x97')](_0x3ec764=>this[_0x3604('0x1b')](_0x3ec764)));this[_0x3604('0xf7')]['data'][_0x3604('0x19')]['useFillerType'](_0x3604('0x44')),_0x3a44fb[_0x13cc92]=this[_0x3604('0xf7')][_0x3604('0xdd')][_0x3604('0x19')]['toData'](_0x82a22f),this[_0x3604('0xf7')][_0x3604('0xdd')][_0x3604('0x19')][_0x3604('0x1e')](_0x3604('0xad'));}return _0x3a44fb;}async[_0x3604('0xb5')](_0x5f5acd){await this['loadRevisionData'](_0x5f5acd);const _0x4cf726={};for(const _0x395709 in _0x5f5acd['diffData'])_0x5f5acd[_0x3604('0x98')][_0x395709][_0x3604('0x9d')]&&!_0x5f5acd[_0x3604('0x98')][_0x395709][_0x3604('0x9d')][_0x3604('0xb0')]||(_0x4cf726[_0x395709]=_0x5f5acd[_0x3604('0x98')][_0x395709][_0x3604('0x2a')]||{});return _0x4cf726;}[_0x3604('0xd7')](_0x458a94){return(_0x458a94=_0x458a94['filter'](_0x4b18af=>!_0x4b18af[_0x3604('0x94')]||_0x3604('0x7d')!==_0x4b18af[_0x3604('0x94')]&&'revision-end'!==_0x4b18af[_0x3604('0x94')]))[_0x3604('0xa6')](_0x11b9f9=>{_0x3604('0xe1')!=typeof _0x11b9f9&&(_0x11b9f9[_0x3604('0xd5')]=this['_removeRevisionMarkers'](_0x11b9f9[_0x3604('0xd5')]),_0x11b9f9['attributes']=_0x11b9f9['attributes'][_0x3604('0x45')](_0x15e8e6=>!_0x15e8e6[0x0][_0x3604('0x10b')](_0x3604('0x95'))));}),_0x458a94;}async[_0x3604('0x88')](_0x145e04,_0x235b51,_0x2d2ad1=!0x1){if(!this[_0x3604('0xff')])return;const _0x537543=this[_0x3604('0xe3')],_0x42ddcd=this[_0x3604('0x38')],_0x5b1a5d=_0x3604('0xe1')==typeof _0x145e04?_0x42ddcd[_0x3604('0x9f')](_0x145e04):_0x145e04,_0x3aeede=_0x3604('0xe1')==typeof _0x235b51?_0x42ddcd[_0x3604('0x9f')](_0x235b51):_0x235b51,_0x1208d7=_0x5b1a5d['id'],_0x14bae7=_0x3aeede?_0x3aeede['id']:null;if(!_0x2d2ad1&&this['diff']&&this['diff'][_0x3604('0xe6')]===_0x1208d7&&this[_0x3604('0xe3')][_0x3604('0x35')]===_0x14bae7)return Promise['resolve']();this[_0x3604('0x8')]=!0x1,this[_0x3604('0x107')]=null,this[_0x3604('0xeb')]=null,this['diff']=new _0x97b06e(_0x1208d7,_0x14bae7);const _0x38dffb=this[_0x3604('0x62')](_0x5b1a5d,_0x3aeede,!0x0)['map'](_0x4a6b34=>this[_0x3604('0x84')](_0x4a6b34));return _0x38dffb['push'](new Promise(_0x31064a=>{setTimeout(_0x31064a,0x14);})),Promise[_0x3604('0x5f')](_0x38dffb)[_0x3604('0x85')](()=>{if(!this[_0x3604('0xff')])return;this['_cleanUp']();const _0xb28175=this['_getDiff'](_0x1208d7,_0x14bae7);for(const _0x35f44d of _0xb28175[_0x3604('0x70')])this[_0x3604('0x15')][_0x3604('0xfd')](_0x35f44d['id'],_0x35f44d);this[_0x3604('0xf7')]['model'][_0x3604('0x123')]({'isUndoable':!0x1},_0x5bbf59=>{for(const _0x308cf8 of this[_0x3604('0xf7')]['model'][_0x3604('0x108')][_0x3604('0x5b')]())_0x5bbf59[_0x3604('0x11e')](_0x308cf8);for(const _0x4c0041 of Object['keys'](_0xb28175[_0x3604('0x51')])){const _0x4eb96b=_0x5bbf59[_0x3604('0x5e')](_0x4c0041);for(const _0xf8d73b of Object[_0x3604('0x3')](_0xb28175['attributes'][_0x4c0041]))_0x5bbf59[_0x3604('0x31')](_0xf8d73b,_0xb28175[_0x3604('0x4d')][_0x4c0041][_0xf8d73b],_0x4eb96b);_0x5bbf59[_0x3604('0x60')](_0xb28175[_0x3604('0x51')][_0x4c0041],_0x4eb96b,0x0);}}),this['diff']['_setChanges'](this[_0x3604('0x7')](_0xb28175[_0x3604('0x70')])),this[_0x3604('0x8')]=!0x0;})['catch'](_0x1f4690=>{console[_0x3604('0x112')](_0x1f4690),this[_0x3604('0x120')](),_0x537543&&(this[_0x3604('0xe3')]=_0x537543),this[_0x3604('0x8')]=!0x0;});}[_0x3604('0xb1')](_0x452e1c,_0x48d0f8){const _0x2ee423=this['repository'][_0x3604('0x3f')](_0x452e1c);return _0x2ee423['on'](_0x3604('0xcc'),(_0x1784c5,_0xefc75b,_0x7f66e3)=>_0x48d0f8(_0xefc75b,_0x7f66e3,_0x2ee423)),this['repository']['addRevision'](_0x2ee423),_0x2ee423;}[_0x3604('0x84')](_0x3909b1){if(!_0x3909b1||_0x3909b1[_0x3604('0x98')])return Promise[_0x3604('0x61')]();{const _0x53bf7b=this[_0x3604('0xf7')][_0x3604('0xbf')]['get'](_0x3604('0x63'));return this['adapter'][_0x3604('0x9f')]({'channelId':_0x53bf7b,'revisionId':_0x3909b1['id']})[_0x3604('0x85')](_0xe5fe56=>{_0x3909b1[_0x3604('0xcc')]({'diffData':_0xe5fe56[_0x3604('0x98')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x3604('0x6d')](),this[_0x3604('0x5d')]&&this[_0x3604('0x5d')][_0x3604('0xe4')](),this['_changeView']=null,this[_0x3604('0x15')][_0x3604('0x96')](),this[_0x3604('0xf7')][_0x3604('0x51')]['enqueueChange']({'isUndoable':!0x1},_0x1d69e8=>{for(const _0x46a998 of this[_0x3604('0xf7')]['model'][_0x3604('0x108')][_0x3604('0x5b')]())_0x1d69e8[_0x3604('0x11e')](_0x46a998);});}['_sortAndFilterDiffChanges'](_0x27b4d1){const _0x3d06bd=[],_0x3023ec=new Map();for(const _0xeae635 of this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0x108')]['getRootNames']()){const _0x5dd49a=this[_0x3604('0xf7')][_0x3604('0xee')]['view'][_0x3604('0xc4')](_0xeae635);if(!_0x5dd49a)continue;const _0x214301=_0x5dd49a[_0x3604('0x32')]()[_0x3604('0x9c')](0x0);_0x214301&&(_0x3d06bd[_0x3604('0xe7')](_0xeae635),_0x3023ec[_0x3604('0xfd')](_0xeae635,_0x214301));}return _0x3d06bd[_0x3604('0x8b')]((_0x4fbc00,_0xec7ab7)=>{const _0x585099=_0x3023ec[_0x3604('0xa8')](_0x4fbc00),_0x1b7b7c=_0x3023ec[_0x3604('0xa8')](_0xec7ab7);return _0x585099['y']-_0x1b7b7c['y']||_0x585099['x']-_0x1b7b7c['x'];}),(_0x27b4d1=_0x27b4d1[_0x3604('0x45')](_0x446a65=>_0x3d06bd['includes'](_0x446a65[_0x3604('0x2e')])))[_0x3604('0x8b')]((_0x1c7e10,_0xe20a3f)=>_0x3d06bd[_0x3604('0xd9')](_0x1c7e10['rootName'])-_0x3d06bd['indexOf'](_0xe20a3f['rootName'])),_0x27b4d1;}[_0x3604('0xe9')](_0x6c19c8){const _0x46f18a=Array['from'](_0x6c19c8[_0x3604('0xc1')])[_0x3604('0x45')](([_0x14b322,_0xbf67a4])=>_0x14b322[_0x3604('0x10b')](_0x3604('0xb2'))&&!_0xbf67a4['isCollapsed']),_0x4529b6=Array[_0x3604('0x12')](this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xb')](_0x6c19c8)[_0x3604('0x8d')]({'singleCharacters':!0x0}));if(0x0!=_0x46f18a['length'])for(const _0x21a4ec of _0x4529b6){const [_0x536ede,_0x48208e]=_0x46f18a[0x0],[,_0x33213b,_0x420348]=_0x536ede[_0x3604('0xd1')](':');if(_0x48208e['end'][_0x3604('0x8a')](_0x21a4ec[_0x3604('0xf')])&&_0x46f18a[_0x3604('0x13')](),(_0x21a4ec[_0x3604('0x47')][_0x3604('0x8a')](_0x48208e[_0x3604('0x10d')])||_0x21a4ec[_0x3604('0x47')]['isAfter'](_0x48208e[_0x3604('0x10d')]))&&(_0x3604('0x7b')==_0x33213b?_0x21a4ec['isAdded']={'userId':_0x420348}:_0x3604('0x9b')==_0x33213b&&(_0x21a4ec[_0x3604('0xcb')]={'userId':_0x420348})),0x0==_0x46f18a[_0x3604('0x17')])break;}return _0x4529b6;}[_0x3604('0x21')](_0x28853e){const _0x4af295=new Map();for(let _0x572bf8=0x0;_0x572bf8<_0x28853e[_0x3604('0x17')];_0x572bf8++)_0x3604('0xd')===_0x28853e[_0x572bf8][_0x3604('0x86')]?(_0x28853e[_0x572bf8][_0x3604('0x9c')][_0x3604('0x16')]=_0x572bf8,_0x28853e[_0x572bf8]['item'][_0x3604('0xe')]=_0x572bf8):(_0x3604('0xc3')===_0x28853e[_0x572bf8][_0x3604('0x86')]?_0x28853e[_0x572bf8][_0x3604('0x9c')][_0x3604('0x16')]=_0x572bf8:'elementEnd'===_0x28853e[_0x572bf8][_0x3604('0x86')]&&(_0x28853e[_0x572bf8]['item'][_0x3604('0xe')]=_0x572bf8),_0x4af295['set'](_0x28853e[_0x572bf8]['id'],_0x572bf8));for(const _0x481d86 of _0x4af295[_0x3604('0x2')]())'elementStart'===_0x28853e[_0x481d86][_0x3604('0x86')]?_0x28853e[_0x481d86][_0x3604('0x9c')][_0x3604('0xe')]=_0x4af295[_0x3604('0xa8')](_0x28853e[_0x481d86]['pairId']):_0x3604('0x7e')===_0x28853e[_0x481d86][_0x3604('0x86')]&&(_0x28853e[_0x481d86][_0x3604('0x9c')][_0x3604('0x16')]=_0x4af295[_0x3604('0xa8')](_0x28853e[_0x481d86]['pairId']));}[_0x3604('0x11a')](_0x19425d){for(let _0x216939=0x0;_0x216939<_0x19425d[_0x3604('0x17')];_0x216939++){if(_0x3604('0xc3')===_0x19425d[_0x216939][_0x3604('0x86')])_0x19425d[_0x216939][_0x3604('0x9c')]['startIndex']=_0x216939;else{if(_0x3604('0x7e')===_0x19425d[_0x216939]['type']){_0x19425d[_0x216939][_0x3604('0x9c')]['endIndex']=_0x216939;const _0x637c83=_0x19425d[_0x216939]['item'][_0x3604('0x16')];_0x19425d[_0x637c83][_0x3604('0x33')]=_0x19425d[_0x216939]['id'],_0x19425d[_0x216939][_0x3604('0x33')]=_0x19425d[_0x637c83]['id'];}else _0x19425d[_0x216939][_0x3604('0x9c')][_0x3604('0x16')]=_0x216939,_0x19425d[_0x216939]['item'][_0x3604('0xe')]=_0x216939,_0x19425d[_0x216939][_0x3604('0x33')]=null;}_0x19425d[_0x216939][_0x3604('0xfc')]||(_0x19425d[_0x216939][_0x3604('0xfc')]=[],_0x19425d[_0x216939][_0x3604('0x11')]=[]);}}[_0x3604('0x52')](_0xabc8d2,_0x2fa731){const _0x4d2f98=_0xabc8d2['filter'](_0x4f56aa=>!_0x4f56aa['isAdded']);for(let _0x275841=0x0;_0x275841<_0x2fa731[_0x3604('0x17')];_0x275841++)_0x2fa731[_0x275841][_0x3604('0x11b')]&&(_0x4d2f98[_0x275841]['isAdded']=_0x2fa731[_0x275841]['isAdded']);}[_0x3604('0xf5')](_0x35bc06){const _0x1e2928=JSON['parse'](_0x35bc06),_0x5a208b=this[_0x3604('0xf7')][_0x3604('0xee')]['view'][_0x3604('0x108')],_0x3a5a5d=new _0x47e122(_0x5a208b,_0x1e2928[_0x3604('0x97')](_0x3e980f=>this[_0x3604('0x1b')](_0x3e980f)));return this[_0x3604('0xf7')]['data'][_0x3604('0x23')](_0x3a5a5d);}[_0x3604('0x1b')](_0x118373){const _0x43faae=this[_0x3604('0xf7')]['editing'][_0x3604('0x4b')][_0x3604('0x108')];if('string'==typeof _0x118373)return new _0x26a2d1(_0x43faae,_0x118373);{const _0x59ac9f=_0x118373[_0x3604('0xd5')]['map'](_0x373336=>this[_0x3604('0x1b')](_0x373336));return new(tt[_0x118373[(_0x3604('0x86'))]]||_0x215ee7)(_0x43faae,_0x118373[_0x3604('0x94')],_0x118373['attributes'],_0x59ac9f);}}['_getDiff'](_0x200ce2,_0x10a730=null){const _0x3bb318=this[_0x3604('0x38')][_0x3604('0x9f')](_0x200ce2),_0x2f143f=_0x10a730?this[_0x3604('0x38')][_0x3604('0x9f')](_0x10a730):null,_0x108a73=this[_0x3604('0x62')](_0x3bb318,_0x2f143f),_0x249f1f=_0x108a73[_0x108a73['length']-0x1],_0x315ec9=new Map(),_0x3f1924={'model':{},'attributes':{},'changes':[]},_0xd00626=new Set(),_0x39570e=new Map();for(let _0x206d2c=_0x108a73[_0x3604('0x17')]-0x1;_0x206d2c>=0x0;_0x206d2c--){const _0x232c0f=_0x108a73[_0x206d2c];for(const _0x130ca5 of Object['keys'](_0x232c0f[_0x3604('0x98')]))if(_0x232c0f[_0x3604('0x98')][_0x130ca5]['attachChange']){const _0x5b86a4=_0x232c0f[_0x3604('0x98')][_0x130ca5][_0x3604('0x9d')];_0x5b86a4[_0x3604('0xb0')]?(_0xd00626[_0x3604('0xc6')](_0x130ca5),_0x39570e[_0x3604('0x87')](_0x130ca5)&&_0x39570e['get'](_0x130ca5)['userId']==_0x5b86a4[_0x3604('0x6')]?_0x39570e[_0x3604('0x64')](_0x130ca5):_0x39570e[_0x3604('0xfd')](_0x130ca5,_0x5b86a4)):_0x39570e[_0x3604('0x87')](_0x130ca5)?(_0xd00626[_0x3604('0x64')](_0x130ca5),_0x39570e['delete'](_0x130ca5)):(_0xd00626['add'](_0x130ca5),_0x39570e[_0x3604('0xfd')](_0x130ca5,_0x5b86a4));}else _0xd00626[_0x3604('0xc6')](_0x130ca5);}for(const _0x54a0be of _0xd00626){const _0x27c96a=_0x39570e[_0x3604('0x87')](_0x54a0be)&&!_0x39570e[_0x3604('0xa8')](_0x54a0be)['isAttached'];let _0x18edb8=_0x27c96a?_0x108a73[_0x3604('0x17')]-0x1:0x0;const _0x36f155=_0x27c96a?-0x1:0x1;for(;_0x108a73[_0x18edb8];){const _0x22d60a=_0x108a73[_0x18edb8];if(_0x22d60a['diffData'][_0x54a0be]){const _0x4373f4=_0x27c96a?_0x22d60a[_0x3604('0x98')][_0x54a0be][_0x3604('0x92')]:_0x22d60a['diffData'][_0x54a0be][_0x3604('0x2a')];_0x3f1924['attributes'][_0x54a0be]=_0x4373f4?_0x13cd76(_0x4373f4):{};break;}_0x18edb8+=_0x36f155;}}for(const _0x476dec of _0x108a73){_0x476dec['model']={};for(const _0x1c3844 of _0x476dec[_0x3604('0x110')])_0x315ec9[_0x3604('0xfd')](_0x1c3844['id'],_0x1c3844);for(const _0x1d5f18 of _0xd00626){const _0x27e248=_0x476dec[_0x3604('0x98')][_0x1d5f18]?_0x476dec['diffData'][_0x1d5f18][_0x3604('0xbe')]:'[]',_0x24d864=_0x476dec[_0x3604('0x98')][_0x1d5f18]?_0x476dec[_0x3604('0x98')][_0x1d5f18][_0x3604('0x3e')]:'[]';_0x476dec['model'][_0x1d5f18]={'insertions':this['_makeModelFromViewString'](_0x27e248),'deletions':this[_0x3604('0xf5')](_0x24d864)};}}for(const _0x3343d1 of _0xd00626){let _0x38286b=null,_0x4a502d=0x0;const _0xb9de25=new Map(Array[_0x3604('0x12')](_0x3bb318['model'][_0x3343d1][_0x3604('0xbe')][_0x3604('0xc1')])['filter'](([_0x4a442a])=>!_0x4a442a['startsWith'](_0x3604('0xb2'))));let _0x51b852=0x0;for(const _0x597284 of _0x108a73){const _0x255e5b=this[_0x3604('0xe9')](_0x597284[_0x3604('0x51')][_0x3343d1][_0x3604('0xbe')]);_0x597284==_0x3bb318?(_0x38286b=_0x255e5b,_0x4a502d=_0x38286b[_0x3604('0x17')],_0x38286b[_0x3604('0xa6')](_0x7b9acb=>{_0x7b9acb['id']=_0x51b852++;}),this['_processTape'](_0x38286b)):this[_0x3604('0x52')](_0x38286b,_0x255e5b);const _0x3f234d=_0x38286b['filter'](_0x114023=>!_0x114023[_0x3604('0x11b')])['map'](_0x417440=>_0x417440['id']);let _0x3cfae4=0x0;const _0x352e64=this[_0x3604('0xe9')](_0x597284['model'][_0x3343d1][_0x3604('0x3e')]);_0x352e64[_0x3604('0xa6')](_0x154efd=>{_0x154efd[_0x3604('0xcb')]?_0x154efd['id']=_0x4a502d++:_0x154efd['id']=_0x3f234d[_0x3cfae4++];}),this[_0x3604('0x11a')](_0x352e64),this['_setDistance'](_0x38286b,'isAdded'),this[_0x3604('0x119')](_0x352e64,_0x3604('0xcb')),_0x597284==_0x3bb318&&this[_0x3604('0xfa')](_0x38286b,_0xb9de25),_0x38286b=this[_0x3604('0x1c')](_0x38286b,_0x352e64),this[_0x3604('0x21')](_0x38286b),this['_setDistance'](_0x38286b,_0x3604('0xcb'));}_0x38286b=_0x38286b[_0x3604('0x45')](_0x457e26=>!(_0x457e26['isAdded']&&_0x457e26['isRemoved']));const _0x1198cd=new Map(_0x249f1f['model'][_0x3343d1]['deletions'][_0x3604('0xc1')]),_0x14f5eb=new Set(_0xb9de25[_0x3604('0x3')]());for(const _0x9a5199 of _0x1198cd[_0x3604('0x3')]())_0x14f5eb[_0x3604('0x64')](_0x9a5199);this[_0x3604('0xf9')](_0x38286b,_0x14f5eb),this['_fixObsoleteTags'](_0x38286b),_0x38286b=this[_0x3604('0x6b')](_0x38286b),_0x38286b=this[_0x3604('0x10c')](_0x38286b),_0x38286b=this[_0x3604('0x68')](_0x38286b);const {root:_0x30966a,changes:_0x215e39}=this[_0x3604('0x27')](_0x38286b,_0x315ec9,_0x3343d1);_0x3f1924[_0x3604('0x51')][_0x3343d1]=_0x30966a;const _0x2706e0=_0x39570e[_0x3604('0xa8')](_0x3343d1);if(_0x2706e0){const _0x2eb79b=_0x315ec9[_0x3604('0xa8')](_0x2706e0[_0x3604('0x6')]),_0x22e14f=new _0x58e1bf({'author':_0x2eb79b,'type':_0x2706e0[_0x3604('0xb0')]?_0x3604('0xc6'):_0x3604('0xc7'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3343d1});_0x215e39[_0x3604('0x43')](_0x22e14f),_0x3f1924[_0x3604('0x4d')][_0x3343d1]['revisionHistoryAttachChange']=_0x22e14f['id'];}_0x3f1924[_0x3604('0x70')]=_0x3f1924['changes'][_0x3604('0x6a')](_0x215e39);}return _0x3f1924;}[_0x3604('0xfa')](_0x944838,_0x152b92){for(let _0x126feb=0x0;_0x126feb<_0x944838[_0x3604('0x17')];_0x126feb++)for(const [_0x39049a,_0x1c7ca9]of _0x152b92)_0x1c7ca9['start'][_0x3604('0x8a')](_0x944838[_0x126feb][_0x3604('0x47')])&&_0x944838[_0x126feb][_0x3604('0xfc')][_0x3604('0xe7')](_0x39049a),_0x1c7ca9[_0x3604('0x1d')][_0x3604('0x8a')](_0x944838[_0x126feb][_0x3604('0xf')])&&_0x944838[_0x126feb][_0x3604('0x11')][_0x3604('0xe7')](_0x39049a);}[_0x3604('0x1c')](_0x290a56,_0x146bc5){let _0x42f393=[],_0x4707f3=0x0,_0x5f54a7=0x0;for(;_0x4707f3<_0x290a56[_0x3604('0x17')]||_0x5f54a7<_0x146bc5['length'];){const _0x4318b9=_0x290a56[_0x4707f3]||{},_0x2a210a=_0x146bc5[_0x5f54a7]||{};if(_0x4318b9['id']==_0x2a210a['id'])_0x4707f3++,_0x5f54a7++,_0x42f393['push'](_0x4318b9);else{if(_0x2a210a[_0x3604('0xcb')]&&_0x4318b9[_0x3604('0x11b')]){const {commonTape:_0x32a218,iEnd:_0x289c53,jEnd:_0x1f64da}=this['_threeWayMerge'](_0x290a56,_0x4707f3,_0x146bc5,_0x5f54a7);_0x42f393=_0x42f393[_0x3604('0x6a')](_0x32a218),_0x4707f3=_0x289c53,_0x5f54a7=_0x1f64da;}else _0x2a210a['isRemoved']?(_0x5f54a7++,_0x42f393[_0x3604('0xe7')](_0x2a210a)):(_0x4707f3++,_0x42f393[_0x3604('0xe7')](_0x4318b9));}}return _0x42f393;}[_0x3604('0xf9')](_0x20cebf,_0x24aa27){const _0x479294=[];for(let _0x1e9860=0x0;_0x1e9860<_0x20cebf[_0x3604('0x17')];_0x1e9860++){for(let _0x2ab424=0x0;_0x2ab424<_0x20cebf[_0x1e9860][_0x3604('0xfc')][_0x3604('0x17')];_0x2ab424++){const _0x4939ef=_0x20cebf[_0x1e9860][_0x3604('0xfc')][_0x2ab424];if(!_0x24aa27['has'](_0x4939ef))continue;const {group:_0x5c3c31,type:_0x18a00e,authorId:_0xef5aab}=_0x5f312a(_0x4939ef);_0x3604('0x11d')!=_0x5c3c31||_0x3604('0x7b')!=_0x18a00e&&_0x3604('0x9b')!=_0x18a00e||(_0x479294[_0x3604('0x43')]({'type':_0x18a00e,'name':_0x4939ef,'userId':_0xef5aab}),_0x20cebf[_0x1e9860][_0x3604('0xfc')][_0x3604('0x59')](_0x2ab424,0x1),_0x2ab424--);}_0x982fc1(_0x20cebf[_0x1e9860]);for(let _0x346fde=0x0;_0x346fde<_0x20cebf[_0x1e9860][_0x3604('0x11')][_0x3604('0x17')];_0x346fde++){const _0x5a7e40=_0x20cebf[_0x1e9860][_0x3604('0x11')][_0x346fde];if(!_0x24aa27[_0x3604('0x87')](_0x5a7e40))continue;const {group:_0x4207f8,type:_0x475a2c}=_0x5f312a(_0x5a7e40);if(_0x3604('0x11d')!=_0x4207f8||'insertion'!=_0x475a2c&&'deletion'!=_0x475a2c)continue;_0x20cebf[_0x1e9860][_0x3604('0x11')]['splice'](_0x346fde,0x1),_0x346fde--;const _0x376a3a=_0x479294['findIndex'](_0x5d9a35=>_0x5d9a35[_0x3604('0x94')]==_0x5a7e40);_0x376a3a>-0x1&&_0x479294[_0x3604('0x59')](_0x376a3a,0x1);}}function _0x5f312a(_0xfd196){const _0x9deae5=_0xfd196[_0x3604('0xd1')](':');return{'group':_0x9deae5[0x0],'type':_0x9deae5[0x1],'subType':_0x9deae5[_0x3604('0x17')]>=0x5?_0x9deae5[0x2]:null,'id':_0x9deae5[_0x3604('0x17')]<0x5?_0x9deae5[0x2]:_0x9deae5[0x3],'authorId':_0x9deae5[_0x3604('0x17')]<0x5?_0x9deae5[0x3]:_0x9deae5[0x4],'markerCount':0x6==_0x9deae5['length']?_0x9deae5[0x5]:null};}function _0x982fc1(_0x6b36bf){for(let _0x14c03f=0x0;_0x14c03f<_0x479294[_0x3604('0x17')];_0x14c03f++){if(_0x6b36bf[_0x3604('0x11b')]&&_0x3604('0x7b')==_0x479294[_0x14c03f][_0x3604('0x86')])return _0x6b36bf[_0x3604('0x46')]=_0x479294[_0x14c03f],void delete _0x6b36bf[_0x3604('0x11b')];if(!_0x6b36bf[_0x3604('0x11b')]&&!_0x6b36bf[_0x3604('0xcb')]&&_0x3604('0x9b')==_0x479294[_0x14c03f][_0x3604('0x86')])return void(_0x6b36bf[_0x3604('0xb7')]=_0x479294[_0x14c03f]);}}}[_0x3604('0x119')](_0x11bd10,_0x493344){let _0x40490a=0x0,_0x21ff8d=!0x1;const _0x35712a=new Map();for(const _0x2d16b6 of _0x11bd10)_0x2d16b6[_0x493344]?_0x21ff8d&&(_0x40490a++,_0x21ff8d=!0x1):(_0x40490a++,_0x21ff8d=!0x0),_0x35712a[_0x3604('0xfd')](_0x2d16b6['id'],_0x40490a);for(let _0x596fc6=0x0;_0x596fc6<_0x11bd10[_0x3604('0x17')];_0x596fc6++){if('isRemoved'==_0x493344&&_0x11bd10[_0x596fc6][_0x3604('0x11b')]||_0x3604('0x11b')==_0x493344&&_0x11bd10[_0x596fc6][_0x3604('0xcb')])continue;if(_0x3604('0xd')==_0x11bd10[_0x596fc6][_0x3604('0x86')]){_0x11bd10[_0x596fc6][_0x3604('0x30')]=0x0;continue;}const _0x51a97a=_0x35712a[_0x3604('0xa8')](_0x11bd10[_0x596fc6][_0x3604('0x33')]),_0xe98708=_0x35712a[_0x3604('0xa8')](_0x11bd10[_0x596fc6]['id']);_0x11bd10[_0x596fc6][_0x3604('0x30')]=_0x51a97a-_0xe98708;}}[_0x3604('0x62')](_0x2c4e78,_0x53ee45,_0x3fc628=!0x1){const _0x4d32c7=[];let _0x4d4aa5=this[_0x3604('0x38')]['getIndex'](_0x2c4e78),_0xff7685=this[_0x3604('0x38')][_0x3604('0x72')](_0x53ee45);for(-0x1==_0xff7685&&(_0xff7685=this[_0x3604('0x38')]['_revisions'][_0x3604('0x17')],_0x3fc628=!0x1);_0x4d4aa5<_0xff7685;)_0x4d32c7[_0x3604('0xe7')](this['repository'][_0x3604('0x9f')](_0x4d4aa5)),_0x4d4aa5++;return _0x3fc628&&_0x4d32c7[_0x3604('0xe7')](this[_0x3604('0x38')][_0x3604('0x9f')](_0x4d4aa5)),_0x4d32c7;}['_threeWayMerge'](_0x278f1e,_0x5e7db4,_0x531b65,_0x4b1c53){const _0x2f561a=this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xf6')];let _0x4c36ff=_0x5e7db4;for(;_0x278f1e[_0x4c36ff]&&_0x278f1e[_0x4c36ff][_0x3604('0x11b')];)_0x4c36ff++;let _0x3e528d=_0x4b1c53;for(;_0x531b65[_0x3e528d]&&_0x531b65[_0x3e528d]['isRemoved'];)_0x3e528d++;_0x485a0f(_0x278f1e,_0x5e7db4,_0x4c36ff),_0x485a0f(_0x531b65,_0x4b1c53,_0x3e528d);const _0x57354c=_0x531b65['slice'](_0x4b1c53,_0x3e528d)['concat'](_0x278f1e['slice'](_0x5e7db4,_0x4c36ff));return _0x57354c[_0x3604('0x8b')]((_0x5142c3,_0x1538a8)=>_0x5142c3['side']!=_0x1538a8[_0x3604('0xc8')]?_0x5142c3[_0x3604('0xc8')]-_0x1538a8['side']:_0x5142c3[_0x3604('0x91')]!=_0x1538a8[_0x3604('0x91')]?_0x5142c3['level']-_0x1538a8[_0x3604('0x91')]:_0x5142c3[_0x3604('0x30')]!=_0x1538a8[_0x3604('0x30')]?_0x1538a8[_0x3604('0x30')]-_0x5142c3[_0x3604('0x30')]:!!_0x5142c3[_0x3604('0x11b')]!=!!_0x1538a8[_0x3604('0x11b')]?-0x1==_0x5142c3[_0x3604('0xc8')]||0x0==_0x5142c3[_0x3604('0xc8')]?_0x5142c3[_0x3604('0x11b')]?-0x1:0x1:_0x5142c3[_0x3604('0x11b')]?0x1:-0x1:_0x5142c3[_0x3604('0xcd')]-_0x1538a8[_0x3604('0xcd')]),{'commonTape':_0x57354c,'iEnd':_0x4c36ff,'jEnd':_0x3e528d};function _0x485a0f(_0x4d0bcb,_0x20fb0a,_0x415ff7){let _0x7ab01a=-0x1,_0x521e23=Number['POSITIVE_INFINITY'],_0x4502a2=!0x0;for(let _0x2022a8=_0x20fb0a;_0x2022a8<_0x415ff7;_0x2022a8++)if(_0x2f561a[_0x3604('0xab')](_0x4d0bcb[_0x2022a8]['item'])||(_0x4502a2=!0x1),_0x4d0bcb[_0x2022a8]['item'][_0x3604('0x16')]<_0x20fb0a&&(_0x7ab01a=_0x2022a8),_0x4d0bcb[_0x2022a8][_0x3604('0x9c')]['endIndex']>=_0x415ff7){_0x521e23=_0x2022a8;break;}_0x4502a2&&(_0x7ab01a=_0x415ff7-0x1);for(let _0xab1d8d=_0x20fb0a;_0xab1d8d<_0x415ff7;_0xab1d8d++)_0x4d0bcb[_0xab1d8d]['side']=_0xab1d8d<=_0x7ab01a?-0x1:_0xab1d8d<_0x521e23?0x0:0x1,_0x4d0bcb[_0xab1d8d][_0x3604('0xcd')]=_0xab1d8d;let _0x430637=0x0;for(let _0x4e9591=_0x20fb0a;_0x4e9591<=_0x7ab01a;_0x4e9591++)0x0==_0x4d0bcb[_0x4e9591][_0x3604('0x30')]?_0x4d0bcb[_0x4e9591][_0x3604('0x91')]=_0x430637:(_0x430637++,_0x4d0bcb[_0x4e9591]['level']=_0x430637,_0x430637++);for(let _0x3e3fd8=_0x20fb0a;_0x3e3fd8<_0x415ff7;_0x3e3fd8++)0x0==_0x4d0bcb[_0x3e3fd8][_0x3604('0xc8')]&&(_0x4d0bcb[_0x3e3fd8][_0x3604('0x91')]=_0x430637);_0x430637=0x0;for(let _0x29326b=_0x415ff7-0x1;_0x29326b>=_0x521e23;_0x29326b--)0x0==_0x4d0bcb[_0x29326b][_0x3604('0x30')]?_0x4d0bcb[_0x29326b][_0x3604('0x91')]=_0x430637:(_0x430637--,_0x4d0bcb[_0x29326b]['level']=_0x430637,_0x430637--);}}['_fixObsoleteTags'](_0x39fa2b){const _0x2bccac=new Map(),_0x3b7aa0=this['editor'][_0x3604('0x51')][_0x3604('0xf6')];for(let _0x41408b=0x1;_0x41408b<_0x39fa2b[_0x3604('0x17')];_0x41408b++){let _0x1229bc,_0x6707f,_0x2ed925;const _0x132a99=_0x39fa2b[_0x41408b],_0xb9b784=_0x39fa2b[_0x41408b-0x1];if(_0x3604('0xd')==_0x132a99[_0x3604('0x86')])continue;if(_0x132a99[_0x3604('0x86')]!=_0xb9b784[_0x3604('0x86')])continue;if(!_0x3b7aa0[_0x3604('0x20')](_0xb9b784['item'])||_0x3b7aa0[_0x3604('0x10')](_0xb9b784['item']))continue;if(!_0x3b7aa0[_0x3604('0x20')](_0x132a99[_0x3604('0x9c')])||_0x3b7aa0[_0x3604('0x10')](_0x132a99[_0x3604('0x9c')]))continue;if((_0x39fa2b[_0x41408b][_0x3604('0x11b')]||_0x39fa2b[_0x41408b][_0x3604('0x46')])&&_0x39fa2b[_0x41408b-0x1][_0x3604('0xcb')])_0x1229bc=_0x39fa2b[_0x41408b],_0x6707f=_0x39fa2b[_0x41408b-0x1],_0x2ed925=_0x41408b-0x1;else{if(!_0x39fa2b[_0x41408b][_0x3604('0xcb')]||!_0x39fa2b[_0x41408b-0x1][_0x3604('0x11b')]&&!_0x39fa2b[_0x41408b-0x1][_0x3604('0x46')])continue;_0x1229bc=_0x39fa2b[_0x41408b-0x1],_0x6707f=_0x39fa2b[_0x41408b],_0x2ed925=_0x41408b;}const _0x5c8673=_0x1229bc['level']==_0x6707f[_0x3604('0x91')],_0x2cf9f2=Math[_0x3604('0x77')](_0x1229bc[_0x3604('0x91')])<Math[_0x3604('0x77')](_0x6707f['level'])&&0x0==_0x6707f[_0x3604('0x30')];(_0x5c8673||_0x2cf9f2)&&(_0x2bccac[_0x3604('0xfd')](_0x6707f['id'],_0x1229bc['id']),_0x39fa2b[_0x3604('0x59')](_0x2ed925,0x1),_0x41408b--,_0x1229bc['isAdded']=!0x1);}for(let _0x3bb04f=0x0;_0x3bb04f<_0x39fa2b[_0x3604('0x17')];_0x3bb04f++)_0x2bccac[_0x3604('0x87')](_0x39fa2b[_0x3bb04f][_0x3604('0x33')])&&(_0x39fa2b[_0x3bb04f][_0x3604('0x33')]=_0x2bccac[_0x3604('0xa8')](_0x39fa2b[_0x3bb04f][_0x3604('0x33')]));}[_0x3604('0x6b')](_0x1b1e3a){const _0x1c0555=new Set(_0x1b1e3a['map'](_0x1a580f=>_0x1a580f['id']));for(let _0x561b7f=0x0;_0x561b7f<_0x1b1e3a[_0x3604('0x17')];_0x561b7f++)_0x1c0555[_0x3604('0x87')](_0x1b1e3a[_0x561b7f][_0x3604('0x33')])||0x0==_0x1b1e3a[_0x561b7f]['distance']||(_0x1b1e3a[_0x561b7f][_0x3604('0x100')]=!0x0);return _0x1b1e3a[_0x3604('0x45')](_0x587182=>!_0x587182['isIncorrect']);}[_0x3604('0x10c')](_0x51d0e0){const _0x2249cf=new Set();for(let _0x3a45d1=0x0;_0x3a45d1<_0x51d0e0[_0x3604('0x17')];_0x3a45d1++){if(_0x2249cf[_0x3604('0x87')](_0x51d0e0[_0x3a45d1]['id'])&&_0x51d0e0[_0x3a45d1][_0x3604('0xcb')]&&(_0x51d0e0[_0x3a45d1]['isIncorrect']=!0x0),_0x51d0e0[_0x3a45d1][_0x3604('0x100')])continue;if(0x0==_0x51d0e0[_0x3a45d1][_0x3604('0x30')])continue;if(_0x3604('0xc3')!=_0x51d0e0[_0x3a45d1]['type'])continue;if(null==_0x51d0e0[_0x3a45d1][_0x3604('0x33')])continue;let _0x476c91=_0x3a45d1+0x1,_0x36367f=0x0;for(;_0x51d0e0[_0x476c91]['id']!=_0x51d0e0[_0x3a45d1][_0x3604('0x33')];)_0x3604('0xc3')==_0x51d0e0[_0x476c91][_0x3604('0x86')]?_0x36367f++:_0x3604('0x7e')==_0x51d0e0[_0x476c91][_0x3604('0x86')]&&_0x36367f--,_0x476c91++;if(0x0!=_0x36367f){if(_0x51d0e0[_0x3a45d1][_0x3604('0xcb')])_0x51d0e0[_0x3a45d1][_0x3604('0x100')]=!0x0;else for(;_0x476c91!=_0x3a45d1;)_0x51d0e0[_0x476c91][_0x3604('0xcb')]&&0x0!=_0x51d0e0[_0x476c91][_0x3604('0x30')]&&(_0x51d0e0[_0x476c91]['isIncorrect']=!0x0,_0x2249cf[_0x3604('0xc6')](_0x51d0e0[_0x476c91][_0x3604('0x33')])),_0x476c91--;}}return _0x51d0e0[_0x3604('0x45')](_0x2976a1=>!_0x2976a1['isIncorrect']);}[_0x3604('0x68')](_0xf9277b){const _0x1e435e=this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xf6')];for(let _0x337da6=0x0;_0x337da6<_0xf9277b['length'];_0x337da6++){if(!(_0xf9277b[_0x337da6][_0x3604('0x11b')]||_0xf9277b[_0x337da6][_0x3604('0x46')]||_0xf9277b[_0x337da6][_0x3604('0xcb')]||_0xf9277b[_0x337da6][_0x3604('0xb7')]))continue;if(0x0==_0xf9277b[_0x337da6][_0x3604('0x30')])continue;const _0x5cf2c0=_0xf9277b[_0x337da6][_0x3604('0x9c')];_0x1e435e[_0x3604('0x20')](_0x5cf2c0)||_0x1e435e['isLimit'](_0x5cf2c0)||(_0xf9277b[_0x337da6][_0x3604('0x11b')]&&delete _0xf9277b[_0x337da6][_0x3604('0x11b')],_0xf9277b[_0x337da6][_0x3604('0x46')]&&delete _0xf9277b[_0x337da6]['isAddSuggestion'],_0xf9277b[_0x337da6][_0x3604('0xb7')]&&delete _0xf9277b[_0x337da6][_0x3604('0xb7')],_0xf9277b[_0x337da6][_0x3604('0xcb')]&&(_0xf9277b[_0x337da6][_0x3604('0x100')]=!0x0));}return _0xf9277b['filter'](_0x4977cf=>!_0x4977cf[_0x3604('0x100')]);}[_0x3604('0x27')](_0x152345,_0x492bb9,_0x5c14f3){const _0x296f6b=new _0x31ed5d(),_0x53a14=[],_0x23ae9a=new Map(),_0x5da321=this[_0x3604('0xf7')][_0x3604('0x51')],_0x18d6d6=_0x5da321[_0x3604('0xf6')],_0x42eaf0=[_0x296f6b],_0x2cdc02={},_0x5e3051={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xf8378a=null;const _0x119d43=[0x0];for(let _0x3f23e6=0x0;_0x3f23e6<_0x152345[_0x3604('0x17')];_0x3f23e6++){let _0x439386,_0x15e04e;if(_0x3604('0xc3')===_0x152345[_0x3f23e6]['type']){_0x439386=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43);const _0x5678e9=new _0x2bb520(_0x152345[_0x3f23e6]['item'][_0x3604('0x94')],_0x152345[_0x3f23e6][_0x3604('0x9c')]['getAttributes']());_0x42eaf0[0x0][_0x3604('0x4c')](_0x5678e9),_0x119d43[_0x3604('0xe7')](0x0),_0x42eaf0[_0x3604('0x43')](_0x5678e9),_0x15e04e=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43),_0xf8378a=null;}else{if(_0x3604('0x7e')===_0x152345[_0x3f23e6][_0x3604('0x86')])_0x42eaf0[_0x3604('0x13')](),_0x439386=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43),_0x119d43[_0x3604('0xb9')](),_0x119d43[_0x119d43[_0x3604('0x17')]-0x1]++,_0x15e04e=_0x5da321['createPositionFromPath'](_0x296f6b,_0x119d43),_0xf8378a=null;else{if(_0x439386=_0x5da321[_0x3604('0x122')](_0x296f6b,_0x119d43),_0xf8378a&&_0x9bc52f(_0xf8378a,_0x152345[_0x3f23e6][_0x3604('0x9c')]))_0xf8378a['_data']+=_0x152345[_0x3f23e6][_0x3604('0x9c')]['data'];else{const _0x4cc8a2=new _0xc9bffc(_0x152345[_0x3f23e6]['item'][_0x3604('0xdd')],_0x152345[_0x3f23e6]['item'][_0x3604('0xb4')]());_0x42eaf0[0x0]['_appendChild'](_0x4cc8a2),_0xf8378a=_0x4cc8a2;}_0x119d43[_0x119d43[_0x3604('0x17')]-0x1]+=_0x152345[_0x3f23e6][_0x3604('0x9c')][_0x3604('0xdf')],_0x15e04e=_0x5da321['createPositionFromPath'](_0x296f6b,_0x119d43);}}for(const _0x15b429 of _0x152345[_0x3f23e6][_0x3604('0xfc')])_0x23ae9a[_0x3604('0xfd')](_0x15b429,{'start':_0x439386,'end':null});_0x1132df('isRemoveSuggestion',_0x3f23e6,_0x439386,_0x15e04e),_0x1132df(_0x3604('0x46'),_0x3f23e6,_0x439386,_0x15e04e),_0x1132df('isRemoved',_0x3f23e6,_0x439386,_0x15e04e),_0x1132df('isAdded',_0x3f23e6,_0x439386,_0x15e04e);for(const _0x376b54 of _0x152345[_0x3f23e6][_0x3604('0x11')]){_0x23ae9a['get'](_0x376b54)[_0x3604('0x1d')]=_0x15e04e;}}for(const [_0x5373c1,_0x802b44]of _0x23ae9a){const _0x5236d5=this[_0x3604('0xf7')][_0x3604('0x51')]['createRange'](_0x802b44[_0x3604('0x10d')],_0x802b44[_0x3604('0x1d')]);_0x296f6b[_0x3604('0xc1')][_0x3604('0xfd')](_0x5373c1,_0x5236d5);}return _0x53a14[_0x3604('0x8b')]((_0x3fc2bf,_0x5bc1fd)=>{const _0x476ef4=_0x296f6b['markers']['get']('revision:'+_0x3fc2bf['id']),_0x425f38=_0x296f6b[_0x3604('0xc1')][_0x3604('0xa8')](_0x3604('0xb2')+_0x5bc1fd['id']);return _0x476ef4[_0x3604('0x10d')][_0x3604('0xc0')](_0x425f38[_0x3604('0x10d')])?-0x1:_0x476ef4[_0x3604('0x10d')][_0x3604('0xde')](_0x425f38[_0x3604('0x10d')])?0x1:_0x476ef4['end'][_0x3604('0xc0')](_0x425f38[_0x3604('0x1d')])?-0x1:_0x476ef4[_0x3604('0x1d')][_0x3604('0xde')](_0x425f38[_0x3604('0x1d')])?0x1:'add'===_0x3fc2bf[_0x3604('0x86')]?-0x1:0x1;}),{'root':_0x296f6b,'changes':_0x53a14};function _0x1132df(_0x551b97,_0x2e6fd2,_0x30097e,_0x2bca10){const _0x54d0c5=!!_0x152345[_0x2e6fd2][_0x551b97],_0x517d40=_0x54d0c5?_0x152345[_0x2e6fd2][_0x551b97][_0x3604('0x6')]:null,_0x2e1074=_0x2e6fd2===_0x152345[_0x3604('0x17')]-0x1,_0x20e233=_0x5e3051[_0x551b97][0x0],_0x4b61b4=_0x18d6d6[_0x3604('0x118')](_0x152345[_0x2e6fd2][_0x3604('0x9c')]);!_0x2cdc02[_0x551b97]&&_0x54d0c5?_0x2cdc02[_0x551b97]={'start':_0x30097e,'tapeItem':_0x152345[_0x2e6fd2],'userId':_0x517d40,'type':_0x551b97}:_0x2cdc02[_0x551b97]&&!_0x54d0c5?(_0x2cdc02[_0x551b97][_0x3604('0x1d')]=_0x30097e,_0x1f098e(_0x2cdc02[_0x551b97]),_0x2cdc02[_0x551b97]=null):_0x2cdc02[_0x551b97]&&_0x54d0c5&&_0x2cdc02[_0x551b97]['userId']!==_0x517d40&&(_0x2cdc02[_0x551b97]['end']=_0x30097e,_0x20e233&&_0x20e233[_0x3604('0x6')]===_0x2cdc02[_0x551b97]['userId']||_0x1f098e(_0x2cdc02[_0x551b97]),_0x2cdc02[_0x551b97]={'start':_0x30097e,'tapeItem':_0x152345[_0x2e6fd2],'userId':_0x517d40,'type':_0x551b97}),_0x2cdc02[_0x551b97]&&_0x4b61b4&&(_0x3604('0xc3')!==_0x152345[_0x2e6fd2][_0x3604('0x86')]||_0x20e233&&_0x20e233[_0x3604('0x6')]===_0x517d40||_0x5e3051[_0x551b97]['unshift']({'userId':_0x517d40,'object':_0x152345[_0x2e6fd2]['item'],'change':_0x2cdc02[_0x551b97]}),_0x3604('0x7e')===_0x152345[_0x2e6fd2][_0x3604('0x86')]&&_0x20e233&&_0x20e233[_0x3604('0x28')]===_0x152345[_0x2e6fd2][_0x3604('0x9c')]&&(_0x5e3051[_0x551b97][_0x3604('0x13')](),_0x2cdc02[_0x551b97]=_0x20e233['change'])),_0x2cdc02[_0x551b97]&&_0x2e1074&&(_0x2cdc02[_0x551b97][_0x3604('0x1d')]=_0x2bca10,_0x1f098e(_0x2cdc02[_0x551b97]),_0x2cdc02[_0x551b97]=null);}function _0x1f098e({start:_0x5d0e93,end:_0x504105,tapeItem:_0x5ee90a,userId:_0x49c54f,type:_0x354f37}){const _0x1822f0=_0x5ee90a['item'],_0x58d852=_0x5da321['schema']['isBlock'](_0x1822f0)&&!_0x5da321['schema'][_0x3604('0x10')](_0x1822f0),_0x1c8f13=_0x5d0e93['nodeAfter']==_0x504105[_0x3604('0x1f')]&&_0x504105[_0x3604('0xa3')];if(_0x58d852&&_0x1c8f13)return;const _0x209378=_0x5da321['createRange'](_0x5d0e93,_0x504105),_0x424807=_0x492bb9['get'](_0x49c54f),_0x1b7196=new _0x58e1bf({'author':_0x424807,'type':'isAdded'==_0x354f37||'isAddSuggestion'==_0x354f37?'add':_0x3604('0xc7'),'data':{'isSuggestion':'isAddSuggestion'==_0x354f37||_0x3604('0xb7')==_0x354f37},'createdAt':new Date(),'rootName':_0x5c14f3});_0x53a14[_0x3604('0xe7')](_0x1b7196),_0x296f6b[_0x3604('0xc1')][_0x3604('0xfd')](_0x3604('0xb2')+_0x1b7196['id'],_0x209378);}function _0x9bc52f(_0x3a2487,_0x31f14a){const _0x3c6105=_0x3a2487[_0x3604('0xb4')](),_0x46e932=_0x31f14a['getAttributes']();for(const _0x18a8fa of _0x3c6105){if(_0x18a8fa[0x1]!==_0x31f14a[_0x3604('0x102')](_0x18a8fa[0x0]))return!0x1;_0x46e932[_0x3604('0x2d')]();}return _0x46e932[_0x3604('0x2d')]()[_0x3604('0x34')];}}[_0x3604('0xd6')](){this['editor']['conversion'][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xaf')]({'view':_0x3604('0x10a')}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0x48'))[_0x3604('0x53')]({'model':'revision','view':_0x34ea94=>{const _0x5d1a07=_0x34ea94['markerName'][_0x3604('0xd1')](':')[0x1],_0x26728d=this['_getChangeFromId'](_0x5d1a07);if(!_0x26728d)return null;const _0x3b12bf=_0x3604('0xc6')==_0x26728d['type']?_0x3604('0x7b'):_0x3604('0x9b'),_0x2fd9d2=[_0x3604('0x76'),_0x3604('0x99')+_0x3b12bf];return _0x26728d[_0x3604('0xdd')]['isSuggestion']&&_0x2fd9d2[_0x3604('0xe7')](_0x3604('0x99')+_0x3b12bf+_0x3604('0x83')),this[_0x3604('0xeb')]==_0x26728d&&_0x2fd9d2[_0x3604('0xe7')]('ck-suggestion-marker--active'),{'classes':_0x2fd9d2,'attributes':{'data-change-id':_0x5d1a07}};}}),this['editor'][_0x3604('0xbd')]['for'](_0x3604('0xa2'))[_0x3604('0xc6')](_0x192f34=>{_0x192f34['on'](_0x3604('0xf2'),(_0x3ba67f,_0x561d23,_0x5d1da5)=>{const _0x1a7ca7=_0x561d23[_0x3604('0x115')]['getChild'](0x0);if(!_0x1a7ca7||!_0x1a7ca7['is']('element','code'))return;if(!_0x5d1da5[_0x3604('0x101')]['consume'](_0x1a7ca7,{'attributes':[_0x3604('0x36'),'vid_end']}))return;const _0x264239=_0x561d23[_0x3604('0x117')][_0x3604('0x10d')][_0x3604('0x5a')];_0x5d1da5[_0x3604('0x6e')][_0x3604('0x31')](_0x3604('0x36'),_0x1a7ca7[_0x3604('0x102')]('vid_start'),_0x264239),_0x5d1da5['writer'][_0x3604('0x31')](_0x3604('0x1a'),_0x1a7ca7[_0x3604('0x102')](_0x3604('0x1a')),_0x264239);},{'priority':_0x3604('0x50')});}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xc6')](_0x1280ba=>{_0x1280ba['on'](_0x3604('0x3d'),(_0x195c08,_0x26f897,_0x401a09)=>{if(!_0x401a09[_0x3604('0x101')][_0x3604('0x104')](_0x26f897[_0x3604('0x115')],{'attributes':['vid_start',_0x3604('0x1a')]}))return;if(_0x26f897['modelRange'][_0x3604('0x4e')])return;const _0x3b379a=_0x26f897[_0x3604('0x117')][_0x3604('0x10d')][_0x3604('0x5a')];_0x3b379a['hasAttribute'](_0x3604('0x36'))||_0x3b379a[_0x3604('0xd0')](_0x3604('0x6c'))||(_0x401a09[_0x3604('0x6e')][_0x3604('0x31')]('vid_start',_0x26f897[_0x3604('0x115')][_0x3604('0x102')](_0x3604('0x36')),_0x3b379a),_0x401a09['writer'][_0x3604('0x31')]('vid_end',_0x26f897['viewItem'][_0x3604('0x102')]('vid_end'),_0x3b379a));},{'priority':_0x3604('0x50')});}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0x42')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x3604('0x6c'),'value':_0x59f98f=>_0x59f98f[_0x3604('0x102')](_0x3604('0x6c'))}}),this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0xf6')]['on']('checkAttribute',(_0x20d9e3,[,_0x5e5a3c])=>{[_0x3604('0x36'),_0x3604('0x1a'),_0x3604('0x6c')]['includes'](_0x5e5a3c)&&(_0x20d9e3[_0x3604('0xe2')]=!0x0,_0x20d9e3[_0x3604('0x74')]());},{'priority':_0x3604('0xe5')}),this['editor']['conversion'][_0x3604('0xa7')](_0x3604('0xa9'))['add'](_0xfa0a94=>{_0xfa0a94['on']('attribute:vid',(_0xe1f737,_0x383dcb,_0x3aeb17)=>{if('\x20'!=_0x383dcb[_0x3604('0x9c')][_0x3604('0xdd')]||_0x383dcb['item'][_0x3604('0x1f')][_0x3604('0x9a')]>0x1)return;if(!_0x3aeb17[_0x3604('0x101')]['consume'](_0x383dcb[_0x3604('0x9c')],_0xe1f737[_0x3604('0x94')]))return;const _0x361a80=_0x3aeb17[_0x3604('0x6e')],_0x1c2260=_0x3aeb17['mapper'][_0x3604('0x5')](_0x383dcb['range']);_0x361a80['wrap'](_0x1c2260,_0x361a80[_0x3604('0x121')](_0x3604('0x106')));});}),this[_0x3604('0xf7')]['conversion'][_0x3604('0xa7')](_0x3604('0xa9'))['markerToData']({'model':_0x3604('0x10a')}),this['editor'][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0xed'),function(_0x56f1e4){const _0x356ad3=_0x56f1e4['plugins'][_0x3604('0xa8')](_0x3604('0x113'));return(_0x272418,_0x4cc8bd,_0xb49a9a)=>{const _0x21e43d=_0x4cc8bd[_0x3604('0xba')]['split'](':')[0x1],_0x39a766=_0x356ad3['_getChangeFromId'](_0x21e43d);if(!_0x39a766)return null;const _0x35e85b='add'==_0x39a766[_0x3604('0x86')]?_0x3604('0xd1'):_0x3604('0xa5');if(!_0xb49a9a[_0x3604('0x101')]['test'](_0x4cc8bd[_0x3604('0x82')],_0x272418[_0x3604('0x94')]))return;const _0x48bf9f=_0x4cc8bd[_0x3604('0x82')][_0x3604('0x8d')](),_0x436185=_0x4cc8bd[_0x3604('0x82')][_0x3604('0x10d')],_0x2b5c7e=_0x56f1e4[_0x3604('0x51')][_0x3604('0xf6')];let _0x1559fa=null,_0x36e767=null,_0x42014f=!0x1,_0x545c6b=!0x1;for(const _0x3de5f1 of _0x48bf9f){const _0x1b19fd=_0x3de5f1['item'];_0x42014f=_0x42014f||_0x2b5c7e[_0x3604('0xc')](_0x1b19fd);const _0x4a0dca=_0xb49a9a[_0x3604('0x7c')][_0x3604('0x80')](_0x1b19fd);if(_0x4a0dca&&_0x4a0dca[_0x3604('0xa0')]('addHighlight'))return;_0x3604('0x7e')==_0x3de5f1[_0x3604('0x86')]&&(_0x2b5c7e[_0x3604('0x20')](_0x1b19fd)&&!_0x2b5c7e[_0x3604('0x10')](_0x1b19fd)&&(_0x1b19fd[_0x3604('0x8c')]||_0x436185[_0x3604('0x9')]?_0x1559fa&&_0x1559fa[_0x3604('0x1f')]==_0x1b19fd||(_0x1559fa=_0x1b19fd,_0x2a300c(_0x3de5f1['previousPosition']),_0x545c6b=!0x0):_0x36e767=_0x36e767||_0x3de5f1[_0x3604('0x47')]));}function _0x2a300c(_0x1f3e0e){const _0x3c1c99=_0xb49a9a[_0x3604('0x6e')]['createUIElement'](_0x3604('0x106'),{'class':_0x3604('0x99')+_0x35e85b}),_0x40b9f2=_0xb49a9a[_0x3604('0x7c')]['toViewPosition'](_0x1f3e0e);_0x39a766[_0x3604('0xdd')][_0x3604('0xfb')]&&_0xb49a9a[_0x3604('0x6e')][_0x3604('0x89')]('ck-suggestion-marker-'+_0x35e85b+_0x3604('0x83'),_0x3c1c99),_0x356ad3['activeChange']==_0x39a766&&_0xb49a9a[_0x3604('0x6e')][_0x3604('0x89')](_0x3604('0xe8'),_0x3c1c99),_0xb49a9a[_0x3604('0x6e')][_0x3604('0x60')](_0x40b9f2,_0x3c1c99),_0xb49a9a[_0x3604('0x7c')][_0x3604('0xd3')](_0x3c1c99,_0x4cc8bd[_0x3604('0xba')]);}_0x42014f||_0x545c6b||!_0x36e767||_0x2a300c(_0x36e767);};}(this[_0x3604('0xf7')]),{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0xee')]['downcastDispatcher']['on'](_0x3604('0x8e'),(_0x345189,_0x12d043,_0x229f73)=>{const _0x349bfb=_0x229f73[_0x3604('0x7c')][_0x3604('0xac')](_0x12d043[_0x3604('0xba')]);if(_0x349bfb)for(const _0x1ea3db of _0x349bfb)(_0x1ea3db[_0x3604('0xa')](_0x3604('0x11f'))||_0x1ea3db[_0x3604('0xa')]('ck-suggestion-marker-merge'))&&(_0x229f73[_0x3604('0x7c')][_0x3604('0xdc')](_0x1ea3db,_0x12d043[_0x3604('0xba')]),_0x229f73['writer'][_0x3604('0xc7')](_0x1ea3db));},{'priority':_0x3604('0x75')}),this['editor'][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0xed'),(_0x69eace,_0x31ae1e,_0x3d6e56)=>{const _0x257a1c=_0x31ae1e['markerName']['split'](':')[0x1],_0x39eb7c=this[_0x3604('0x2b')](_0x257a1c);if(!_0x39eb7c)return null;const _0x3c4ad6=_0x3604('0xc6')==_0x39eb7c['type']?_0x3604('0xd1'):_0x3604('0xa5');if(_0x3d6e56['consumable'][_0x3604('0xf0')](_0x31ae1e['markerRange'],_0x69eace[_0x3604('0x94')]))for(const _0xfd0a80 of _0x31ae1e['markerRange'][_0x3604('0x26')]()){if(!_0xfd0a80['is']('element',_0x3604('0x73')))continue;const _0x5b035d=_0x3d6e56[_0x3604('0x6e')][_0x3604('0xd2')]('span',{'class':_0x3604('0x99')+_0x3c4ad6}),_0x48fabe=_0x3d6e56[_0x3604('0x7c')]['toViewPosition'](this[_0x3604('0xf7')]['model'][_0x3604('0x81')](_0xfd0a80));_0x39eb7c[_0x3604('0xdd')]['isSuggestion']&&_0x3d6e56[_0x3604('0x6e')][_0x3604('0x89')](_0x3604('0x99')+_0x3c4ad6+_0x3604('0x83'),_0x5b035d),this[_0x3604('0xeb')]==_0x39eb7c&&_0x3d6e56['writer'][_0x3604('0x89')]('ck-suggestion-marker--active',_0x5b035d),_0x3d6e56[_0x3604('0x6e')][_0x3604('0x60')](_0x48fabe,_0x5b035d),_0x3d6e56[_0x3604('0x7c')]['bindElementToMarker'](_0x5b035d,_0x31ae1e[_0x3604('0xba')]);}},{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0x108')]['on'](_0x3604('0xb8'),()=>{this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x4b')]['change'](_0x46f25d=>{for(const _0x195178 of this['editor'][_0x3604('0x51')][_0x3604('0x108')]['getRootNames']()){const _0x330bd4=this[_0x3604('0xf7')][_0x3604('0x51')][_0x3604('0x108')][_0x3604('0x7a')](_0x195178),_0x243053=this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x4b')][_0x3604('0x108')]['getRoot'](_0x195178);if(_0x243053){const _0x1cf4ec=_0x330bd4[_0x3604('0x102')]('revisionHistoryAttachChange');if(_0x46f25d[_0x3604('0x111')](_0x3604('0xcf'),_0x243053),_0x46f25d[_0x3604('0xce')](_0x3604('0xef'),_0x243053),_0x46f25d[_0x3604('0xce')](_0x3604('0x22'),_0x243053),_0x46f25d['removeClass'](_0x3604('0x49'),_0x243053),_0x1cf4ec){const _0xee1edd=this[_0x3604('0x2b')](_0x1cf4ec);if(!_0xee1edd)return null;_0x46f25d[_0x3604('0x31')]('data-change-id',_0x1cf4ec,_0x243053),_0x46f25d[_0x3604('0x89')]('ck-revision-history-root-'+_0xee1edd['type'],_0x243053),this[_0x3604('0xeb')]==_0xee1edd&&_0x46f25d['addClass'](_0x3604('0x49'),_0x243053);}}}});}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xaf')]({'view':_0x3604('0x7f'),'model':_0x31a041=>_0x3604('0x56')+_0x31a041,'converterPriority':_0x3604('0xe5')}),this[_0x3604('0xf7')][_0x3604('0xbd')][_0x3604('0xa7')](_0x3604('0xa2'))[_0x3604('0xaf')]({'view':'suggestion','model':_0x24a4ba=>_0x3604('0x57')+_0x24a4ba,'converterPriority':_0x3604('0xe5')}),this[_0x3604('0xf7')][_0x3604('0xbd')]['for'](_0x3604('0xa9'))['markerToData']({'model':_0x3604('0x11d'),'view':_0x4e4966=>({'name':'suggestion:'+_0x4e4966,'group':_0x3604('0x11d')}),'converterPriority':_0x3604('0xe5')}),this['editor'][_0x3604('0xbd')]['for']('editingDowncast')['markerToHighlight']({'model':_0x3604('0x11d'),'view':_0x20c00e=>{const _0x54b851=_0x20c00e[_0x3604('0xba')][_0x3604('0xd1')](':')[0x1];return _0x3604('0x7b')!=_0x54b851&&'deletion'!=_0x54b851?null:{'classes':[_0x3604('0x25'),_0x3604('0x10f')+_0x54b851]};}}),this['editor'][_0x3604('0xee')]['downcastDispatcher']['on'](_0x3604('0x93'),et(this[_0x3604('0xf7')],'merge'),{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0x2f'),et(this['editor'],_0x3604('0xd1')),{'priority':_0x3604('0x75')}),this[_0x3604('0xf7')][_0x3604('0xee')][_0x3604('0x103')]['on'](_0x3604('0x1'),(_0xf1aae7,_0x15ee34,_0x39c866)=>{const _0x2b3baa=_0x39c866['mapper'][_0x3604('0xac')](_0x15ee34[_0x3604('0xba')]);if(_0x2b3baa)for(const _0x21c68e of _0x2b3baa)_0x21c68e['is']('uiElement')&&(_0x39c866[_0x3604('0x7c')]['unbindElementFromMarkerName'](_0x21c68e,_0x15ee34[_0x3604('0xba')]),_0x39c866['writer'][_0x3604('0xc7')](_0x21c68e));},{'priority':_0x3604('0x75')});}[_0x3604('0x2b')](_0x5510a3){return this[_0x3604('0x15')][_0x3604('0xa8')](_0x5510a3);}[_0x3604('0x90')](_0x40f617){return this['_changeView']&&this[_0x3604('0x5d')]['destroy'](),this[_0x3604('0x5d')]=new _0x470938(this[_0x3604('0xf7')][_0x3604('0xd4')],_0x40f617),this[_0x3604('0x5d')];}[_0x3604('0xc5')](){this['editor'][_0x3604('0x51')][_0x3604('0x108')][_0x3604('0x116')][_0x3604('0xa1')](_0x3604('0x10a')),this['on'](_0x3604('0x39'),(_0x4acee8,_0x460faf,_0x5ed5a5,_0xe2751b)=>{_0xe2751b&&this[_0x3604('0xec')][_0x3604('0xc7')](_0xe2751b),_0x5ed5a5&&(this[_0x3604('0xec')][_0x3604('0xc6')]({'view':_0x5ed5a5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x291558=this[_0x3604('0xf7')]['editing'],_0x1dea4e=this[_0x3604('0x2b')](_0x5ed5a5['changeId']);let _0x1ec111;if(_0x1dea4e[_0x3604('0xdd')][_0x3604('0x79')]){const _0x4c4a00=_0x291558[_0x3604('0x4b')]['getDomRoot'](_0x1dea4e[_0x3604('0x2e')]);_0x1ec111=Array[_0x3604('0x12')](_0x4c4a00[_0x3604('0x32')]());}else{const _0x1a6d4e=this[_0x3604('0xf7')]['model'][_0x3604('0xc1')]['get']('revision:'+_0x5ed5a5['changeId']);_0x1ec111=Array['from'](_0x291558[_0x3604('0x7c')][_0x3604('0xac')](_0x1a6d4e['name']))[_0x3604('0x97')](_0x2bc14f=>_0x291558[_0x3604('0x4b')]['domConverter'][_0x3604('0x5c')](_0x2bc14f))[_0x3604('0x97')](_0x2a6f00=>Array[_0x3604('0x12')](_0x2a6f00[_0x3604('0x32')]()))[_0x3604('0xbb')]();}if(!this[_0x3604('0x14')])return _0x1ec111[0x0];return _0x1ec111[_0x3604('0x40')](_0x135944=>_0x135944['top']-0x3<=this[_0x3604('0x14')]['y']&&_0x135944[_0x3604('0x105')]+0x3>=this[_0x3604('0x14')]['y']&&_0x135944[_0x3604('0x54')]-0x3<=this[_0x3604('0x14')]['x']&&_0x135944[_0x3604('0xc9')]+0x3>=this[_0x3604('0x14')]['x'])||_0x1ec111[0x0];}}}),this[_0x3604('0xec')]['showStack'](_0x3604('0xea')));}),this['on'](_0x3604('0xda'),(_0x417eac,_0x49b771,_0x18cfc8,_0x434461)=>{this[_0x3604('0x107')]=_0x18cfc8?this['_getViewForChange'](_0x18cfc8):null,this['editor'][_0x3604('0x51')][_0x3604('0xb8')](()=>{const _0x4f5b3a=this[_0x3604('0xf7')][_0x3604('0xee')];_0x434461&&(_0x434461['data'][_0x3604('0x79')]?_0x4f5b3a[_0x3604('0x4b')][_0x3604('0xb8')](_0x14da6e=>{_0x14da6e['removeClass'](_0x3604('0x49'),_0x4f5b3a['view']['document']['getRoot'](_0x434461[_0x3604('0x2e')]));}):_0x4f5b3a[_0x3604('0x24')](_0x3604('0xb2')+_0x434461['id'])),_0x18cfc8&&(_0x18cfc8[_0x3604('0xdd')][_0x3604('0x79')]?_0x4f5b3a[_0x3604('0x4b')][_0x3604('0xb8')](_0xe78b1b=>{_0xe78b1b[_0x3604('0x89')]('ck-revision-history-root--active',_0x4f5b3a[_0x3604('0x4b')][_0x3604('0x108')][_0x3604('0x7a')](_0x18cfc8[_0x3604('0x2e')]));}):_0x4f5b3a['reconvertMarker'](_0x3604('0xb2')+_0x18cfc8['id']));});}),this[_0x3604('0x4a')](this[_0x3604('0xf7')]['editing']['view'][_0x3604('0x108')],_0x3604('0x4'),(_0xa845a,_0x5ef21e)=>{if(this[_0x3604('0xeb')])return;const _0x4b17d8=this['_findChangeIdFromDomTarget'](_0x5ef21e['target']),_0x3cfe0d=this[_0x3604('0x15')]['get'](_0x4b17d8);_0x3cfe0d?(this[_0x3604('0x14')]={'x':_0x5ef21e[_0x3604('0x3a')]['x'],'y':_0x5ef21e[_0x3604('0x3a')]['y']},this[_0x3604('0x107')]=this[_0x3604('0x90')](_0x3cfe0d)):(this[_0x3604('0x14')]=null,this[_0x3604('0x107')]=null);}),this[_0x3604('0x4a')](this['editor'][_0x3604('0xee')][_0x3604('0x4b')][_0x3604('0x108')],_0x3604('0xfe'),(_0x2b9c45,_0x415686)=>{const _0x162389=this[_0x3604('0x3b')](_0x415686[_0x3604('0xf4')]),_0x1ecc18=this[_0x3604('0x15')][_0x3604('0xa8')](_0x162389);_0x1ecc18?(this['_activeViewTarget']={'x':_0x415686[_0x3604('0x3a')]['x'],'y':_0x415686[_0x3604('0x3a')]['y']},_0x1ecc18===this['activeChange']?this[_0x3604('0xec')][_0x3604('0xdb')]():this[_0x3604('0xeb')]=_0x1ecc18):(this['_activeViewTarget']=null,this['activeChange']=null);});}[_0x3604('0x3b')](_0x2308ca){do{const _0x45fa6a=_0x2308ca[_0x3604('0x102')](_0x3604('0xcf'));if(_0x45fa6a)return _0x45fa6a;_0x2308ca=_0x2308ca[_0x3604('0x1f')];}while(_0x2308ca);return null;}[_0x3604('0x6d')](){this[_0x3604('0xf7')][_0x3604('0x51')]['change'](_0x569012=>{for(const _0x592f2a of this[_0x3604('0xf7')]['model'][_0x3604('0xc1')])_0x569012[_0x3604('0x55')](_0x592f2a);});}}function et(_0x33d187,_0x3323c2){return(_0xdb976d,_0x4df198,_0x125774)=>{if(!_0x125774['consumable'][_0x3604('0xf0')](_0x4df198[_0x3604('0x82')],_0xdb976d[_0x3604('0x94')]))return;const _0x5234e7=_0x4df198['markerRange'][_0x3604('0x8d')](),_0x2cfc29=_0x4df198[_0x3604('0x82')]['start'],_0x57f495=_0x33d187['model'][_0x3604('0xf6')];let _0x328378=null,_0x5a4a05=null,_0x22fbc6=!0x1,_0x289626=!0x1;for(const _0x3f8ec8 of _0x5234e7){const _0x26f7d7=_0x3f8ec8[_0x3604('0x9c')];_0x22fbc6=_0x22fbc6||_0x57f495[_0x3604('0xc')](_0x26f7d7);const _0x4d9fad=_0x125774['mapper'][_0x3604('0x80')](_0x26f7d7);if(_0x4d9fad&&_0x4d9fad[_0x3604('0xa0')](_0x3604('0x29')))return;'elementEnd'==_0x3f8ec8['type']&&(_0x57f495[_0x3604('0x20')](_0x26f7d7)&&!_0x57f495['isLimit'](_0x26f7d7)&&(_0x26f7d7[_0x3604('0x8c')]||_0x2cfc29[_0x3604('0x9')]?_0x328378&&_0x328378['parent']==_0x26f7d7||(_0x328378=_0x26f7d7,_0x243423(_0x3f8ec8[_0x3604('0x47')]),_0x289626=!0x0):_0x5a4a05=_0x5a4a05||_0x3f8ec8[_0x3604('0x47')]));}function _0x243423(_0x7c68af){const _0x12f274=_0x125774[_0x3604('0x7c')][_0x3604('0x66')](_0x7c68af),_0x4836e4=_0x125774[_0x3604('0x6e')][_0x3604('0xd2')](_0x3604('0x106'),{'class':_0x3604('0x10f')+_0x3323c2});_0x125774[_0x3604('0x6e')][_0x3604('0x60')](_0x12f274,_0x4836e4),_0x125774['mapper'][_0x3604('0xd3')](_0x4836e4,_0x4df198[_0x3604('0xba')]);}_0x22fbc6||_0x289626||!_0x5a4a05||_0x243423(_0x5a4a05);};}export class RestoreRevisionCommand extends _0x524429{constructor(_0x1a1d89){super(_0x1a1d89);const _0x48ee01=_0x1a1d89['plugins'][_0x3604('0xa8')](d);this[_0x3604('0xe0')]=!0x1,this[_0x3604('0x4a')](_0x48ee01,_0x3604('0x18'),()=>this[_0x3604('0x11c')]()),this['listenTo'](_0x48ee01,'change:isEnabled',()=>this[_0x3604('0x11c')]());}['execute'](){const _0xaccd1e=this[_0x3604('0xf7')],_0x46a5b4=_0xaccd1e[_0x3604('0x8f')]['get'](d),_0x4d7d37=_0x46a5b4['isReady']?_0x46a5b4[_0x3604('0xe3')][_0x3604('0xe6')]:null;_0xaccd1e['config'][_0x3604('0xa8')](_0x3604('0x69'))[_0x3604('0x78')](_0x4d7d37);}['refresh'](){const {isReady:_0x8296b4,isEnabled:_0x33e45b}=this[_0x3604('0xf7')]['plugins']['get'](d);this['isEnabled']=_0x8296b4&&_0x33e45b;}}export class ShowChangeCommand extends _0x524429{constructor(_0x3908dc,{direction:_0x5a0cfe}){super(_0x3908dc);const _0x323db7=_0x3908dc[_0x3604('0x8f')][_0x3604('0xa8')](d);this[_0x3604('0xe0')]=!0x1,this['_step']=_0x3604('0x114')===_0x5a0cfe?0x1:-0x1,this[_0x3604('0x4a')](_0x323db7,_0x3604('0x18'),()=>this[_0x3604('0x11c')]()),this['listenTo'](_0x323db7,_0x3604('0x71'),()=>this[_0x3604('0x11c')]()),this['listenTo'](_0x323db7,_0x3604('0xda'),()=>this[_0x3604('0x11c')]());}[_0x3604('0x109')](){const _0x458cc=this[_0x3604('0xf7')],_0x14be6c=_0x458cc[_0x3604('0x8f')][_0x3604('0xa8')](d),{isNavigationMode:_0x29dd04,currentChangeNumber:_0x445062}=_0x14be6c;let _0x35d826;if(_0x14be6c[_0x3604('0xeb')]=_0x29dd04?_0x14be6c[_0x3604('0xe3')][_0x3604('0x70')][_0x3604('0xa8')](_0x445062+this[_0x3604('0x10e')]):_0x14be6c[_0x3604('0xe3')]['changes'][_0x3604('0xd8')],_0x14be6c[_0x3604('0xeb')][_0x3604('0xdd')][_0x3604('0x79')])_0x35d826=_0x458cc[_0x3604('0xee')][_0x3604('0x4b')][_0x3604('0xc4')](_0x14be6c['activeChange'][_0x3604('0x2e')]);else{const _0xd02196=_0x458cc[_0x3604('0x51')][_0x3604('0xc1')][_0x3604('0xa8')](_0x3604('0xb2')+_0x14be6c[_0x3604('0xeb')]['id']);_0x35d826=_0x48f1fb(_0x458cc[_0x3604('0xee')],_0xd02196);}_0x14bcb4({'target':_0x35d826,'viewportOffset':0x28});}[_0x3604('0x11c')](){const {isNavigationMode:_0x4413ec,currentChangeNumber:_0x56422a,numberOfChanges:_0x2d5dea,isReady:_0x3f4e80,isEnabled:_0x4ca4dc}=this[_0x3604('0xf7')]['plugins']['get'](d);this['isEnabled']=!!(_0x4ca4dc&&_0x3f4e80&&_0x2d5dea)&&(!_0x4413ec||(0x1===this['_step']?_0x56422a<_0x2d5dea-0x1:_0x56422a>0x0));}}
23
+ const _0x55da=['loadRevisionData','getCustomProperty','isAtStart','_changeView','mapper','attributesAfter','split','_activeViewTarget','change:activeChange','ck-suggestion-preview-marker-','highest','POSITIVE_INFINITY','isAfter','startIndex','removeMarker:revision','offsetSize','_getDiff','diff','insert','getRevision','set','getWalker','createUIElement','showPreviousChange','change','revision-suggestion','compare','_makeTape','markersStart','destroy','bindElementToMarker','object','observeMarkers','viewItem','previousPosition','getDomRoot','revision-end','showNextChange','right','getRoot','start','toViewElement','selection','forceDisabled','adapter','useFillerType','attribute:vid','_makeModelFromViewString','indexOf','removeMarker:revision-suggestion','wrap','shift','low','WidgetToolbarRepository','addMarker:revision','target','-new','ck-revision-history-root-','_appendChild','flat','userId','revision-suggestion:','rootName','nextSibling','change:isEnabled','isBlock','isRemoveSuggestion','_refreshStartEndIndex','consume','currentChangeNumber','backward','isAtEnd','pairId','_processTape','_cleanMarkers','isEqual','isRemoved','bind','isLimit','sort','downcastDispatcher','nodeAfter','_initInteractions','_setChanges','_getViewObj','isNavigationMode','revisionHistoryAttachChange','side','abs','changes','ck-suggestion-marker-','_joinTapes','addRoot','pluginName','elementEnd','change:isReady','hasClass','listenTo','_makeModelFromTape','suggestion:','_getChangeFromId','isBefore','toViewPosition','code','addRevisionData','isOnRoot','insertion','changeId','oldRevisionId','vid_start','addHighlight','endIndex','attributes','markerNameToElements','_threeWayMerge','view','_balloon','text','_setConversion','filter','getClientRects','enqueueChange','bottom','toModel','schema','end','_markInsertions','upcast','removeMarker','isObject','item','removeClass','createRevision','unbindElementFromMarkerName','has','diffData','config','revision:','conversion','findIndex','change:activeView','addMarker:revision-suggestion:deletion','commands','activeView','name','next','_markMismatchedRemovedTags','test','range','element','getAttributes','plugins','remove','string','span','keys','markerRange','from','modelRange','_removeMissingPairs','isInline','_setDistance','vid_end','activeChange','addMarker:revision-suggestion:insertion','comment','_update','children','isAttached','model','revisionHistoryLabel','splice','editor','delete','elementToAttribute','reconvertMarker','forward','_revisions','ck-suggestion-marker--active','RevisionViewer','editingDowncast','return','restoreRevisionCallback','revision-viewer','createRange','getItems','first','type','deletions','isAdded','_changeIdToChange','markerToData','isReady','processor','error','unshift','enableReadOnlyMode','element:pre','createAttributeElement','startsWith','data-revision-','revisionHistory','includes','hasAttribute','getAttribute','getIndex','markerName','toData','nextPosition','consumable','add','_step','isAddSuggestion','mapViewToDom','updatePosition','change:numberOfChanges','ck-revision-history-root-remove','elementStart','markerToHighlight','_findChangeIdFromDomTarget','forEach','distance','document','marked','get','dataDowncast','find','showStack','editing','init','level','markersEnd','vid','getRootNames','slice','locale','values','map','attachChange','writer','dataToMarker','maxOffset','data-change-id','_markMarkers','_sortAndFilterDiffChanges','_markSuggestions','_removeRevisionMarkers','ck-suggestion-marker-merge','ck-revision-history-root--active','isContent','resolve','affectsData','repository','domEvent','isEnabled','mouseover','_getViewForChange','createPositionBefore','requires','parent','pop','revision-comment:','ck-suggestion-marker-split','_getRevisionsRange','high','createPositionFromPath','concat','_data','isIncorrect','addClass','refresh','isCollapsed','push','softBreak','then','ck-revision-history-root-add','index','_cleanUp','for','data','revision','setAttribute','numberOfChanges','suggestion','toViewRange','execute','markers','merge','deletion','done','uiElement','isSuggestion','length'];(function(_0x330e14,_0x55da35){const _0x154145=function(_0x14c755){while(--_0x14c755){_0x330e14['push'](_0x330e14['shift']());}};_0x154145(++_0x55da35);}(_0x55da,0x71));const _0x1541=function(_0x330e14,_0x55da35){_0x330e14=_0x330e14-0x0;let _0x154145=_0x55da[_0x330e14];return _0x154145;};import{Plugin as _0xc50a9,Command as _0x2b67f2}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x142e83}from'ckeditor5/src/utils';import{ContextualBalloon as _0x586a0f}from'ckeditor5/src/ui';import{DocumentFragment as _0x4390f7,Element as _0x24838a,Text as _0x4109a4,ViewDocumentFragment as _0x50f55e,ViewText as _0x21a021,ViewElement as _0x3bf22,ViewContainerElement as _0x144727,ViewAttributeElement as _0x5147e8,ViewEmptyElement as _0x12029b,ViewRawElement as _0x1778ab,ViewUIElement as _0x3c5547}from'ckeditor5/src/engine';import{Users as _0x5c6c21,getMarkerDomElement as _0x10b913}from'ckeditor5-collaboration/src/collaboration-core';import _0x4e0c7a from'./ui/revisionviewer/changedetailsview';import _0x245276 from'./revisionsrepository';import _0x90d829 from'./changeitem';import{default as _0x328195}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x1fa925}from'lodash-es';const tt={'c':_0x144727,'a':_0x5147e8,'e':_0x12029b,'r':_0x1778ab,'u':_0x3c5547};export default class d extends _0xc50a9{static get[_0x1541('0x111')](){return _0x1541('0x42');}static get[_0x1541('0x91')](){return[_0x5c6c21,_0x586a0f,_0x245276];}constructor(_0x2d2fec){super(_0x2d2fec),this[_0x1541('0x8b')]=this[_0x1541('0x3b')]['plugins'][_0x1541('0x6f')]('RevisionsRepository'),this[_0x1541('0xc8')](_0x1541('0x32'),null),this[_0x1541('0xc8')](_0x1541('0x1e'),null),this[_0x1541('0xbb')]=null,this[_0x1541('0xc8')](_0x1541('0xc5'),null),this['set']('isReady',!0x1),this[_0x1541('0xc8')](_0x1541('0x8d'),!0x0),this['on'](_0x1541('0xf4'),(_0x5cbe39,_0x30e000,_0x102837)=>{this[_0x1541('0x32')]=null,this['activeView']=null,this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')]['change'](_0x168e63=>{for(const _0xb5690f of this[_0x1541('0x3b')]['editing'][_0x1541('0x2')][_0x1541('0x6d')]['roots'])_0x102837?_0x168e63[_0x1541('0x12')]('ck-editor__editable__overlay',_0xb5690f):_0x168e63['addClass']('ck-editor__editable__overlay',_0xb5690f);});}),this[_0x1541('0x101')](_0x1541('0x109'))['to'](this,_0x1541('0x32'),_0x35bb24=>null!==_0x35bb24),this['bind'](_0x1541('0xf9'))['to'](this,_0x1541('0x4f'),this,'diff',this,_0x1541('0x32'),(_0x35d166,_0x3e101c,_0x30aa2b)=>_0x35d166&&_0x30aa2b?_0x3e101c[_0x1541('0x10d')]['getIndex'](_0x30aa2b):0x0),this[_0x1541('0x101')](_0x1541('0xa9'))['to'](this,_0x1541('0x4f'),this,_0x1541('0xc5'),(_0x44cc0e,_0x4a7566)=>_0x44cc0e?_0x4a7566[_0x1541('0x10d')][_0x1541('0xb3')]:0x0),this[_0x1541('0xb7')]=null,this[_0x1541('0x4d')]=new Map(),this[_0x1541('0xe0')]=null,this[_0x1541('0x3')]=this['editor'][_0x1541('0x26')]['get'](_0x586a0f);}[_0x1541('0x74')](){const _0x21ad04=this[_0x1541('0x3b')],_0x47629a=new ShowChangeCommand(_0x21ad04,{'direction':_0x1541('0xfa')}),_0x2806d6=new ShowChangeCommand(_0x21ad04,{'direction':_0x1541('0x3f')});(_0x21ad04['commands']['add'](_0x1541('0xcb'),_0x47629a),_0x21ad04[_0x1541('0x1d')][_0x1541('0x61')](_0x1541('0xd9'),_0x2806d6),_0x21ad04['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x21ad04)),this['on'](_0x1541('0x66'),()=>{_0x47629a[_0x1541('0x9d')](),_0x2806d6[_0x1541('0x9d')]();}),this[_0x1541('0x5')](),this['_initInteractions'](),_0x21ad04[_0x1541('0x53')](_0x1541('0x46')),_0x21ad04[_0x1541('0x26')][_0x1541('0x15')](_0x1541('0xe9')))&&_0x21ad04[_0x1541('0x26')][_0x1541('0x6f')]('WidgetToolbarRepository')[_0x1541('0xdf')](_0x1541('0x46'));}async['getRevisionData'](_0x394885){await this[_0x1541('0xb4')](_0x394885);const _0x5dc72b={};for(const _0x5d0ef9 in _0x394885[_0x1541('0x16')]){if(_0x394885['diffData'][_0x5d0ef9][_0x1541('0x7d')]&&!_0x394885[_0x1541('0x16')][_0x5d0ef9]['attachChange']['isAttached'])continue;const _0x38f671=this[_0x1541('0x85')](JSON['parse'](_0x394885[_0x1541('0x16')][_0x5d0ef9]['insertions'])),_0x52c754=this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')]['document'],_0x8ea774=new _0x50f55e(_0x52c754,_0x38f671[_0x1541('0x7c')](_0x8fe96a=>this[_0x1541('0x108')](_0x8fe96a)));this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0x50')][_0x1541('0xe1')](_0x1541('0x6e')),_0x5dc72b[_0x5d0ef9]=this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0x50')][_0x1541('0x5e')](_0x8ea774),this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0x50')][_0x1541('0xe1')]('default');}return _0x5dc72b;}async['getRevisionRootsAttributes'](_0x23f10f){await this[_0x1541('0xb4')](_0x23f10f);const _0x4c5939={};for(const _0x125a81 in _0x23f10f[_0x1541('0x16')])_0x23f10f[_0x1541('0x16')][_0x125a81][_0x1541('0x7d')]&&!_0x23f10f[_0x1541('0x16')][_0x125a81]['attachChange']['isAttached']||(_0x4c5939[_0x125a81]=_0x23f10f[_0x1541('0x16')][_0x125a81][_0x1541('0xb9')]||{});return _0x4c5939;}[_0x1541('0x85')](_0xccda6d){return(_0xccda6d=_0xccda6d[_0x1541('0x6')](_0x448a4e=>!_0x448a4e['name']||'revision-start'!==_0x448a4e[_0x1541('0x1f')]&&_0x1541('0xd8')!==_0x448a4e['name']))[_0x1541('0x6b')](_0x1fd9ef=>{'string'!=typeof _0x1fd9ef&&(_0x1fd9ef[_0x1541('0x36')]=this[_0x1541('0x85')](_0x1fd9ef['children']),_0x1fd9ef[_0x1541('0x124')]=_0x1fd9ef[_0x1541('0x124')][_0x1541('0x6')](_0x36ca70=>!_0x36ca70[0x0][_0x1541('0x56')](_0x1541('0x57'))));}),_0xccda6d;}async[_0x1541('0xce')](_0x47d23b,_0x23771e,_0x2d1f1c=!0x1){if(!this[_0x1541('0x8d')])return;const _0x193405=this[_0x1541('0xc5')],_0x2c17c2=this[_0x1541('0x8b')],_0x4b3121=_0x1541('0x28')==typeof _0x47d23b?_0x2c17c2[_0x1541('0xc7')](_0x47d23b):_0x47d23b,_0x2de21b=_0x1541('0x28')==typeof _0x23771e?_0x2c17c2[_0x1541('0xc7')](_0x23771e):_0x23771e,_0x3dcf68=_0x4b3121['id'],_0x5c63ba=_0x2de21b?_0x2de21b['id']:null;if(!_0x2d1f1c&&this['diff']&&this[_0x1541('0xc5')]['newRevisionId']===_0x3dcf68&&this[_0x1541('0xc5')][_0x1541('0x120')]===_0x5c63ba)return Promise[_0x1541('0x89')]();this[_0x1541('0x4f')]=!0x1,this[_0x1541('0x1e')]=null,this[_0x1541('0x32')]=null,this[_0x1541('0xc5')]=new _0x328195(_0x3dcf68,_0x5c63ba);const _0x3c7317=this[_0x1541('0x96')](_0x4b3121,_0x2de21b,!0x0)[_0x1541('0x7c')](_0x10217f=>this[_0x1541('0xb4')](_0x10217f));return _0x3c7317[_0x1541('0x9f')](new Promise(_0x4ecb10=>{setTimeout(_0x4ecb10,0x14);})),Promise['all'](_0x3c7317)['then'](()=>{if(!this[_0x1541('0x8d')])return;this[_0x1541('0xa4')]();const _0x5452ce=this[_0x1541('0xc4')](_0x3dcf68,_0x5c63ba);for(const _0x2b4fae of _0x5452ce[_0x1541('0x10d')])this[_0x1541('0x4d')][_0x1541('0xc8')](_0x2b4fae['id'],_0x2b4fae);this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x8')]({'isUndoable':!0x1},_0x4aa5ce=>{for(const _0xc7544b of this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x6d')][_0x1541('0x78')]())_0x4aa5ce['detachRoot'](_0xc7544b);for(const _0x2c97a1 of Object[_0x1541('0x2a')](_0x5452ce['model'])){const _0x516a5f=_0x4aa5ce[_0x1541('0x110')](_0x2c97a1);for(const _0x1bceec of Object[_0x1541('0x2a')](_0x5452ce[_0x1541('0x124')][_0x2c97a1]))_0x4aa5ce[_0x1541('0xa8')](_0x1bceec,_0x5452ce[_0x1541('0x124')][_0x2c97a1][_0x1bceec],_0x516a5f);_0x4aa5ce[_0x1541('0xc6')](_0x5452ce['model'][_0x2c97a1],_0x516a5f,0x0);}}),this[_0x1541('0xc5')][_0x1541('0x107')](this['_sortAndFilterDiffChanges'](_0x5452ce['changes'])),this['isReady']=!0x0;})['catch'](_0x5165c0=>{console[_0x1541('0x51')](_0x5165c0),this[_0x1541('0xa4')](),_0x193405&&(this[_0x1541('0xc5')]=_0x193405),this['isReady']=!0x0;});}[_0x1541('0x11c')](_0x445a81,_0x4dca22){const _0x5733da=this[_0x1541('0x8b')][_0x1541('0x13')](_0x445a81);return _0x5733da['on'](_0x1541('0x35'),(_0x5adfd6,_0x2640cd,_0x1a23be)=>_0x4dca22(_0x2640cd,_0x1a23be,_0x5733da)),this[_0x1541('0x8b')]['addRevision'](_0x5733da),_0x5733da;}[_0x1541('0xb4')](_0x2c5c1f){if(!_0x2c5c1f||_0x2c5c1f[_0x1541('0x16')])return Promise[_0x1541('0x89')]();{const _0x594159=this[_0x1541('0x3b')]['config'][_0x1541('0x6f')]('collaboration.channelId');return this[_0x1541('0xe0')]['getRevision']({'channelId':_0x594159,'revisionId':_0x2c5c1f['id']})[_0x1541('0xa1')](_0x5d429f=>{_0x2c5c1f[_0x1541('0x35')]({'diffData':_0x5d429f[_0x1541('0x16')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x1541('0xfe')](),this[_0x1541('0xb7')]&&this['_changeView'][_0x1541('0xd1')](),this[_0x1541('0xb7')]=null,this['_changeIdToChange']['clear'](),this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x8')]({'isUndoable':!0x1},_0x311d8b=>{for(const _0xe37c18 of this['editor'][_0x1541('0x38')]['document'][_0x1541('0x78')]())_0x311d8b['detachRoot'](_0xe37c18);});}[_0x1541('0x83')](_0x1985be){const _0x178496=[],_0xe21987=new Map();for(const _0x348bd5 of this[_0x1541('0x3b')]['model'][_0x1541('0x6d')][_0x1541('0x78')]()){const _0x2e6058=this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')][_0x1541('0xd7')](_0x348bd5);if(!_0x2e6058)continue;const _0x4d1409=_0x2e6058[_0x1541('0x7')]()['item'](0x0);_0x4d1409&&(_0x178496[_0x1541('0x9f')](_0x348bd5),_0xe21987[_0x1541('0xc8')](_0x348bd5,_0x4d1409));}return _0x178496['sort']((_0xc72d9c,_0xb66cfb)=>{const _0x5c0ab3=_0xe21987[_0x1541('0x6f')](_0xc72d9c),_0xa9321c=_0xe21987['get'](_0xb66cfb);return _0x5c0ab3['y']-_0xa9321c['y']||_0x5c0ab3['x']-_0xa9321c['x'];}),(_0x1985be=_0x1985be[_0x1541('0x6')](_0x1b41aa=>_0x178496[_0x1541('0x59')](_0x1b41aa[_0x1541('0xf2')])))[_0x1541('0x103')]((_0x116391,_0x2a587f)=>_0x178496[_0x1541('0xe4')](_0x116391[_0x1541('0xf2')])-_0x178496[_0x1541('0xe4')](_0x2a587f[_0x1541('0xf2')])),_0x1985be;}['_makeTape'](_0x5170bb){const _0x5d96a0=Array[_0x1541('0x2c')](_0x5170bb[_0x1541('0xad')])[_0x1541('0x6')](([_0x57831f,_0x2781ae])=>_0x57831f[_0x1541('0x56')](_0x1541('0x18'))&&!_0x2781ae[_0x1541('0x9e')]),_0x5c2fc4=Array[_0x1541('0x2c')](this[_0x1541('0x3b')][_0x1541('0x38')]['createRangeIn'](_0x5170bb)[_0x1541('0xc9')]({'singleCharacters':!0x0}));if(0x0!=_0x5d96a0['length'])for(const _0x223f76 of _0x5c2fc4){const [_0x311945,_0x2131d4]=_0x5d96a0[0x0],[,_0x8693f6,_0x177df7]=_0x311945[_0x1541('0xba')](':');if(_0x2131d4[_0x1541('0xc')]['isEqual'](_0x223f76[_0x1541('0x5f')])&&_0x5d96a0[_0x1541('0xe7')](),(_0x223f76[_0x1541('0xd6')]['isEqual'](_0x2131d4[_0x1541('0xdc')])||_0x223f76['previousPosition'][_0x1541('0xc0')](_0x2131d4[_0x1541('0xdc')]))&&(_0x1541('0x11e')==_0x8693f6?_0x223f76[_0x1541('0x4c')]={'userId':_0x177df7}:'deletion'==_0x8693f6&&(_0x223f76[_0x1541('0x100')]={'userId':_0x177df7})),0x0==_0x5d96a0[_0x1541('0xb3')])break;}return _0x5c2fc4;}[_0x1541('0xf7')](_0x246434){const _0x55ebb7=new Map();for(let _0x1317da=0x0;_0x1317da<_0x246434[_0x1541('0xb3')];_0x1317da++)_0x1541('0x4')===_0x246434[_0x1317da]['type']?(_0x246434[_0x1317da][_0x1541('0x11')][_0x1541('0xc1')]=_0x1317da,_0x246434[_0x1317da][_0x1541('0x11')][_0x1541('0x123')]=_0x1317da):(_0x1541('0x68')===_0x246434[_0x1317da]['type']?_0x246434[_0x1317da]['item']['startIndex']=_0x1317da:_0x1541('0x112')===_0x246434[_0x1317da][_0x1541('0x4a')]&&(_0x246434[_0x1317da]['item'][_0x1541('0x123')]=_0x1317da),_0x55ebb7['set'](_0x246434[_0x1317da]['id'],_0x1317da));for(const _0x479e3b of _0x55ebb7[_0x1541('0x7b')]())'elementStart'===_0x246434[_0x479e3b][_0x1541('0x4a')]?_0x246434[_0x479e3b][_0x1541('0x11')]['endIndex']=_0x55ebb7[_0x1541('0x6f')](_0x246434[_0x479e3b][_0x1541('0xfc')]):_0x1541('0x112')===_0x246434[_0x479e3b][_0x1541('0x4a')]&&(_0x246434[_0x479e3b][_0x1541('0x11')]['startIndex']=_0x55ebb7[_0x1541('0x6f')](_0x246434[_0x479e3b][_0x1541('0xfc')]));}[_0x1541('0xfd')](_0x5a8560){for(let _0x389475=0x0;_0x389475<_0x5a8560[_0x1541('0xb3')];_0x389475++){if(_0x1541('0x68')===_0x5a8560[_0x389475]['type'])_0x5a8560[_0x389475][_0x1541('0x11')]['startIndex']=_0x389475;else{if(_0x1541('0x112')===_0x5a8560[_0x389475]['type']){_0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0x123')]=_0x389475;const _0x1b38f5=_0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0xc1')];_0x5a8560[_0x1b38f5]['pairId']=_0x5a8560[_0x389475]['id'],_0x5a8560[_0x389475][_0x1541('0xfc')]=_0x5a8560[_0x1b38f5]['id'];}else _0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0xc1')]=_0x389475,_0x5a8560[_0x389475][_0x1541('0x11')][_0x1541('0x123')]=_0x389475,_0x5a8560[_0x389475][_0x1541('0xfc')]=null;}_0x5a8560[_0x389475]['markersStart']||(_0x5a8560[_0x389475]['markersStart']=[],_0x5a8560[_0x389475][_0x1541('0x76')]=[]);}}[_0x1541('0xd')](_0x3ee86a,_0x3e89cb){const _0x2d9892=_0x3ee86a[_0x1541('0x6')](_0x461851=>!_0x461851[_0x1541('0x4c')]);for(let _0x465509=0x0;_0x465509<_0x3e89cb[_0x1541('0xb3')];_0x465509++)_0x3e89cb[_0x465509][_0x1541('0x4c')]&&(_0x2d9892[_0x465509][_0x1541('0x4c')]=_0x3e89cb[_0x465509][_0x1541('0x4c')]);}[_0x1541('0xe3')](_0x27e8c9){const _0x4a97f9=JSON['parse'](_0x27e8c9),_0x518c9d=this[_0x1541('0x3b')][_0x1541('0x73')]['view']['document'],_0x20ff63=new _0x50f55e(_0x518c9d,_0x4a97f9[_0x1541('0x7c')](_0x4ea949=>this[_0x1541('0x108')](_0x4ea949)));return this[_0x1541('0x3b')][_0x1541('0xa6')][_0x1541('0xa')](_0x20ff63);}[_0x1541('0x108')](_0x303092){const _0x7e0b0e=this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x2')][_0x1541('0x6d')];if(_0x1541('0x28')==typeof _0x303092)return new _0x21a021(_0x7e0b0e,_0x303092);{const _0x54c0f1=_0x303092[_0x1541('0x36')][_0x1541('0x7c')](_0x3d3208=>this['_getViewObj'](_0x3d3208));return new(tt[_0x303092[(_0x1541('0x4a'))]]||_0x3bf22)(_0x7e0b0e,_0x303092[_0x1541('0x1f')],_0x303092[_0x1541('0x124')],_0x54c0f1);}}['_getDiff'](_0x28526e,_0x543b9b=null){const _0x4a6b4e=this['repository'][_0x1541('0xc7')](_0x28526e),_0x5983f3=_0x543b9b?this[_0x1541('0x8b')][_0x1541('0xc7')](_0x543b9b):null,_0x25cfdf=this[_0x1541('0x96')](_0x4a6b4e,_0x5983f3),_0x6df84=_0x25cfdf[_0x25cfdf['length']-0x1],_0x5d5e26=new Map(),_0x5d6212={'model':{},'attributes':{},'changes':[]},_0x2b8781=new Set(),_0x19dbd7=new Map();for(let _0x2b7127=_0x25cfdf['length']-0x1;_0x2b7127>=0x0;_0x2b7127--){const _0x15109b=_0x25cfdf[_0x2b7127];for(const _0x4cbdd5 of Object['keys'](_0x15109b[_0x1541('0x16')]))if(_0x15109b['diffData'][_0x4cbdd5]['attachChange']){const _0x3f736a=_0x15109b[_0x1541('0x16')][_0x4cbdd5][_0x1541('0x7d')];_0x3f736a[_0x1541('0x37')]?(_0x2b8781[_0x1541('0x61')](_0x4cbdd5),_0x19dbd7['has'](_0x4cbdd5)&&_0x19dbd7[_0x1541('0x6f')](_0x4cbdd5)['userId']==_0x3f736a[_0x1541('0xf0')]?_0x19dbd7[_0x1541('0x3c')](_0x4cbdd5):_0x19dbd7['set'](_0x4cbdd5,_0x3f736a)):_0x19dbd7['has'](_0x4cbdd5)?(_0x2b8781[_0x1541('0x3c')](_0x4cbdd5),_0x19dbd7[_0x1541('0x3c')](_0x4cbdd5)):(_0x2b8781[_0x1541('0x61')](_0x4cbdd5),_0x19dbd7[_0x1541('0xc8')](_0x4cbdd5,_0x3f736a));}else _0x2b8781[_0x1541('0x61')](_0x4cbdd5);}for(const _0x1220db of _0x2b8781){const _0x5ac097=_0x19dbd7['has'](_0x1220db)&&!_0x19dbd7[_0x1541('0x6f')](_0x1220db)[_0x1541('0x37')];let _0x307335=_0x5ac097?_0x25cfdf['length']-0x1:0x0;const _0x58f364=_0x5ac097?-0x1:0x1;for(;_0x25cfdf[_0x307335];){const _0x9f8a97=_0x25cfdf[_0x307335];if(_0x9f8a97['diffData'][_0x1220db]){const _0x4b1557=_0x5ac097?_0x9f8a97[_0x1541('0x16')][_0x1220db]['attributesBefore']:_0x9f8a97['diffData'][_0x1220db][_0x1541('0xb9')];_0x5d6212[_0x1541('0x124')][_0x1220db]=_0x4b1557?_0x1fa925(_0x4b1557):{};break;}_0x307335+=_0x58f364;}}for(const _0x2e0e20 of _0x25cfdf){_0x2e0e20[_0x1541('0x38')]={};for(const _0x121832 of _0x2e0e20['authors'])_0x5d5e26[_0x1541('0xc8')](_0x121832['id'],_0x121832);for(const _0x54a4a0 of _0x2b8781){const _0x45463f=_0x2e0e20[_0x1541('0x16')][_0x54a4a0]?_0x2e0e20[_0x1541('0x16')][_0x54a4a0]['insertions']:'[]',_0x2622a7=_0x2e0e20[_0x1541('0x16')][_0x54a4a0]?_0x2e0e20[_0x1541('0x16')][_0x54a4a0]['deletions']:'[]';_0x2e0e20['model'][_0x54a4a0]={'insertions':this[_0x1541('0xe3')](_0x45463f),'deletions':this['_makeModelFromViewString'](_0x2622a7)};}}for(const _0x5f2f70 of _0x2b8781){let _0x4606f0=null,_0x26e920=0x0;const _0x5a58bd=new Map(Array['from'](_0x4a6b4e['model'][_0x5f2f70]['insertions'][_0x1541('0xad')])[_0x1541('0x6')](([_0x546fad])=>!_0x546fad[_0x1541('0x56')](_0x1541('0x18'))));let _0x278a6c=0x0;for(const _0x1292fe of _0x25cfdf){const _0x105904=this[_0x1541('0xcf')](_0x1292fe[_0x1541('0x38')][_0x5f2f70]['insertions']);_0x1292fe==_0x4a6b4e?(_0x4606f0=_0x105904,_0x26e920=_0x4606f0[_0x1541('0xb3')],_0x4606f0[_0x1541('0x6b')](_0x498dca=>{_0x498dca['id']=_0x278a6c++;}),this[_0x1541('0xfd')](_0x4606f0)):this['_markInsertions'](_0x4606f0,_0x105904);const _0xf3910a=_0x4606f0[_0x1541('0x6')](_0x16be59=>!_0x16be59[_0x1541('0x4c')])[_0x1541('0x7c')](_0x3d4e15=>_0x3d4e15['id']);let _0x4e0d59=0x0;const _0x5a3e3b=this['_makeTape'](_0x1292fe['model'][_0x5f2f70]['deletions']);_0x5a3e3b['forEach'](_0x1988fd=>{_0x1988fd[_0x1541('0x100')]?_0x1988fd['id']=_0x26e920++:_0x1988fd['id']=_0xf3910a[_0x4e0d59++];}),this['_processTape'](_0x5a3e3b),this['_setDistance'](_0x4606f0,_0x1541('0x4c')),this[_0x1541('0x30')](_0x5a3e3b,_0x1541('0x100')),_0x1292fe==_0x4a6b4e&&this[_0x1541('0x82')](_0x4606f0,_0x5a58bd),_0x4606f0=this[_0x1541('0x10f')](_0x4606f0,_0x5a3e3b),this[_0x1541('0xf7')](_0x4606f0),this[_0x1541('0x30')](_0x4606f0,_0x1541('0x100'));}_0x4606f0=_0x4606f0[_0x1541('0x6')](_0x4a564a=>!(_0x4a564a[_0x1541('0x4c')]&&_0x4a564a[_0x1541('0x100')]));const _0xdb3cea=new Map(_0x6df84[_0x1541('0x38')][_0x5f2f70][_0x1541('0x4b')][_0x1541('0xad')]),_0x142d0c=new Set(_0x5a58bd['keys']());for(const _0x53c28c of _0xdb3cea[_0x1541('0x2a')]())_0x142d0c['delete'](_0x53c28c);this[_0x1541('0x84')](_0x4606f0,_0x142d0c),this['_fixObsoleteTags'](_0x4606f0),_0x4606f0=this[_0x1541('0x2e')](_0x4606f0),_0x4606f0=this[_0x1541('0x21')](_0x4606f0),_0x4606f0=this['_removeUnsupportedChanges'](_0x4606f0);const {root:_0x90eb05,changes:_0x71b98f}=this[_0x1541('0x116')](_0x4606f0,_0x5d5e26,_0x5f2f70);_0x5d6212['model'][_0x5f2f70]=_0x90eb05;const _0x3e94ab=_0x19dbd7[_0x1541('0x6f')](_0x5f2f70);if(_0x3e94ab){const _0x3b073a=_0x5d5e26[_0x1541('0x6f')](_0x3e94ab['userId']),_0x165bdd=new _0x90d829({'author':_0x3b073a,'type':_0x3e94ab[_0x1541('0x37')]?_0x1541('0x61'):_0x1541('0x27'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5f2f70});_0x71b98f[_0x1541('0x52')](_0x165bdd),_0x5d6212[_0x1541('0x124')][_0x5f2f70][_0x1541('0x10a')]=_0x165bdd['id'];}_0x5d6212['changes']=_0x5d6212[_0x1541('0x10d')][_0x1541('0x99')](_0x71b98f);}return _0x5d6212;}['_markMarkers'](_0x4c7d02,_0x5a00c8){for(let _0x593fa8=0x0;_0x593fa8<_0x4c7d02[_0x1541('0xb3')];_0x593fa8++)for(const [_0x5a67d3,_0x5907ac]of _0x5a00c8)_0x5907ac[_0x1541('0xdc')]['isEqual'](_0x4c7d02[_0x593fa8][_0x1541('0xd6')])&&_0x4c7d02[_0x593fa8][_0x1541('0xd0')][_0x1541('0x9f')](_0x5a67d3),_0x5907ac['end'][_0x1541('0xff')](_0x4c7d02[_0x593fa8][_0x1541('0x5f')])&&_0x4c7d02[_0x593fa8][_0x1541('0x76')][_0x1541('0x9f')](_0x5a67d3);}[_0x1541('0x10f')](_0x13047c,_0x28fc2b){let _0x27ba92=[],_0x57c87e=0x0,_0x197cac=0x0;for(;_0x57c87e<_0x13047c['length']||_0x197cac<_0x28fc2b[_0x1541('0xb3')];){const _0x313e52=_0x13047c[_0x57c87e]||{},_0x117294=_0x28fc2b[_0x197cac]||{};if(_0x313e52['id']==_0x117294['id'])_0x57c87e++,_0x197cac++,_0x27ba92['push'](_0x313e52);else{if(_0x117294[_0x1541('0x100')]&&_0x313e52[_0x1541('0x4c')]){const {commonTape:_0x115112,iEnd:_0x1dfb16,jEnd:_0x584ed2}=this[_0x1541('0x1')](_0x13047c,_0x57c87e,_0x28fc2b,_0x197cac);_0x27ba92=_0x27ba92[_0x1541('0x99')](_0x115112),_0x57c87e=_0x1dfb16,_0x197cac=_0x584ed2;}else _0x117294['isRemoved']?(_0x197cac++,_0x27ba92['push'](_0x117294)):(_0x57c87e++,_0x27ba92[_0x1541('0x9f')](_0x313e52));}}return _0x27ba92;}[_0x1541('0x84')](_0x395a3c,_0x52af06){const _0x11cb7c=[];for(let _0x572a32=0x0;_0x572a32<_0x395a3c['length'];_0x572a32++){for(let _0x434f1b=0x0;_0x434f1b<_0x395a3c[_0x572a32]['markersStart']['length'];_0x434f1b++){const _0x1a3846=_0x395a3c[_0x572a32][_0x1541('0xd0')][_0x434f1b];if(!_0x52af06[_0x1541('0x15')](_0x1a3846))continue;const {group:_0x4ccb21,type:_0x14a467,authorId:_0x2e196c}=_0x4edc10(_0x1a3846);_0x1541('0xcd')!=_0x4ccb21||'insertion'!=_0x14a467&&'deletion'!=_0x14a467||(_0x11cb7c[_0x1541('0x52')]({'type':_0x14a467,'name':_0x1a3846,'userId':_0x2e196c}),_0x395a3c[_0x572a32][_0x1541('0xd0')][_0x1541('0x3a')](_0x434f1b,0x1),_0x434f1b--);}_0x3d869d(_0x395a3c[_0x572a32]);for(let _0xdda860=0x0;_0xdda860<_0x395a3c[_0x572a32][_0x1541('0x76')][_0x1541('0xb3')];_0xdda860++){const _0xdfddd3=_0x395a3c[_0x572a32][_0x1541('0x76')][_0xdda860];if(!_0x52af06[_0x1541('0x15')](_0xdfddd3))continue;const {group:_0x4f6233,type:_0x4b051a}=_0x4edc10(_0xdfddd3);if(_0x1541('0xcd')!=_0x4f6233||'insertion'!=_0x4b051a&&_0x1541('0xaf')!=_0x4b051a)continue;_0x395a3c[_0x572a32][_0x1541('0x76')][_0x1541('0x3a')](_0xdda860,0x1),_0xdda860--;const _0x136803=_0x11cb7c[_0x1541('0x1a')](_0xcb581d=>_0xcb581d[_0x1541('0x1f')]==_0xdfddd3);_0x136803>-0x1&&_0x11cb7c[_0x1541('0x3a')](_0x136803,0x1);}}function _0x4edc10(_0x337a5a){const _0x3ad80e=_0x337a5a[_0x1541('0xba')](':');return{'group':_0x3ad80e[0x0],'type':_0x3ad80e[0x1],'subType':_0x3ad80e[_0x1541('0xb3')]>=0x5?_0x3ad80e[0x2]:null,'id':_0x3ad80e['length']<0x5?_0x3ad80e[0x2]:_0x3ad80e[0x3],'authorId':_0x3ad80e['length']<0x5?_0x3ad80e[0x3]:_0x3ad80e[0x4],'markerCount':0x6==_0x3ad80e['length']?_0x3ad80e[0x5]:null};}function _0x3d869d(_0x3e8cf9){for(let _0x5369dc=0x0;_0x5369dc<_0x11cb7c[_0x1541('0xb3')];_0x5369dc++){if(_0x3e8cf9[_0x1541('0x4c')]&&_0x1541('0x11e')==_0x11cb7c[_0x5369dc][_0x1541('0x4a')])return _0x3e8cf9['isAddSuggestion']=_0x11cb7c[_0x5369dc],void delete _0x3e8cf9[_0x1541('0x4c')];if(!_0x3e8cf9['isAdded']&&!_0x3e8cf9[_0x1541('0x100')]&&_0x1541('0xaf')==_0x11cb7c[_0x5369dc][_0x1541('0x4a')])return void(_0x3e8cf9[_0x1541('0xf6')]=_0x11cb7c[_0x5369dc]);}}}['_setDistance'](_0x4492d6,_0x145b20){let _0x20287c=0x0,_0x257a51=!0x1;const _0x7a345c=new Map();for(const _0x19eb79 of _0x4492d6)_0x19eb79[_0x145b20]?_0x257a51&&(_0x20287c++,_0x257a51=!0x1):(_0x20287c++,_0x257a51=!0x0),_0x7a345c[_0x1541('0xc8')](_0x19eb79['id'],_0x20287c);for(let _0x4221b7=0x0;_0x4221b7<_0x4492d6['length'];_0x4221b7++){if(_0x1541('0x100')==_0x145b20&&_0x4492d6[_0x4221b7][_0x1541('0x4c')]||_0x1541('0x4c')==_0x145b20&&_0x4492d6[_0x4221b7]['isRemoved'])continue;if(_0x1541('0x4')==_0x4492d6[_0x4221b7]['type']){_0x4492d6[_0x4221b7][_0x1541('0x6c')]=0x0;continue;}const _0x4c83dd=_0x7a345c[_0x1541('0x6f')](_0x4492d6[_0x4221b7][_0x1541('0xfc')]),_0x4a549c=_0x7a345c[_0x1541('0x6f')](_0x4492d6[_0x4221b7]['id']);_0x4492d6[_0x4221b7][_0x1541('0x6c')]=_0x4c83dd-_0x4a549c;}}[_0x1541('0x96')](_0x2c46a9,_0x288aed,_0x4d0477=!0x1){const _0x525ee5=[];let _0x40573e=this[_0x1541('0x8b')][_0x1541('0x5c')](_0x2c46a9),_0x59ba30=this[_0x1541('0x8b')][_0x1541('0x5c')](_0x288aed);for(-0x1==_0x59ba30&&(_0x59ba30=this[_0x1541('0x8b')][_0x1541('0x40')][_0x1541('0xb3')],_0x4d0477=!0x1);_0x40573e<_0x59ba30;)_0x525ee5[_0x1541('0x9f')](this[_0x1541('0x8b')][_0x1541('0xc7')](_0x40573e)),_0x40573e++;return _0x4d0477&&_0x525ee5[_0x1541('0x9f')](this['repository'][_0x1541('0xc7')](_0x40573e)),_0x525ee5;}[_0x1541('0x1')](_0xebd0a,_0x497636,_0x451213,_0x558814){const _0x544bb7=this[_0x1541('0x3b')]['model']['schema'];let _0x233102=_0x497636;for(;_0xebd0a[_0x233102]&&_0xebd0a[_0x233102]['isAdded'];)_0x233102++;let _0x4c7128=_0x558814;for(;_0x451213[_0x4c7128]&&_0x451213[_0x4c7128]['isRemoved'];)_0x4c7128++;_0x33ac72(_0xebd0a,_0x497636,_0x233102),_0x33ac72(_0x451213,_0x558814,_0x4c7128);const _0x5b7ee8=_0x451213['slice'](_0x558814,_0x4c7128)['concat'](_0xebd0a[_0x1541('0x79')](_0x497636,_0x233102));return _0x5b7ee8[_0x1541('0x103')]((_0x51dd1f,_0x487118)=>_0x51dd1f[_0x1541('0x10b')]!=_0x487118['side']?_0x51dd1f['side']-_0x487118[_0x1541('0x10b')]:_0x51dd1f[_0x1541('0x75')]!=_0x487118[_0x1541('0x75')]?_0x51dd1f[_0x1541('0x75')]-_0x487118[_0x1541('0x75')]:_0x51dd1f['distance']!=_0x487118[_0x1541('0x6c')]?_0x487118[_0x1541('0x6c')]-_0x51dd1f[_0x1541('0x6c')]:!!_0x51dd1f[_0x1541('0x4c')]!=!!_0x487118['isAdded']?-0x1==_0x51dd1f[_0x1541('0x10b')]||0x0==_0x51dd1f[_0x1541('0x10b')]?_0x51dd1f[_0x1541('0x4c')]?-0x1:0x1:_0x51dd1f[_0x1541('0x4c')]?0x1:-0x1:_0x51dd1f[_0x1541('0xa3')]-_0x487118[_0x1541('0xa3')]),{'commonTape':_0x5b7ee8,'iEnd':_0x233102,'jEnd':_0x4c7128};function _0x33ac72(_0x361e1c,_0x2f95d3,_0x36cda1){let _0x59e9c6=-0x1,_0x52a943=Number[_0x1541('0xbf')],_0x1eb222=!0x0;for(let _0x8051f2=_0x2f95d3;_0x8051f2<_0x36cda1;_0x8051f2++)if(_0x544bb7[_0x1541('0x2f')](_0x361e1c[_0x8051f2][_0x1541('0x11')])||(_0x1eb222=!0x1),_0x361e1c[_0x8051f2][_0x1541('0x11')][_0x1541('0xc1')]<_0x2f95d3&&(_0x59e9c6=_0x8051f2),_0x361e1c[_0x8051f2]['item'][_0x1541('0x123')]>=_0x36cda1){_0x52a943=_0x8051f2;break;}_0x1eb222&&(_0x59e9c6=_0x36cda1-0x1);for(let _0x46a5ed=_0x2f95d3;_0x46a5ed<_0x36cda1;_0x46a5ed++)_0x361e1c[_0x46a5ed][_0x1541('0x10b')]=_0x46a5ed<=_0x59e9c6?-0x1:_0x46a5ed<_0x52a943?0x0:0x1,_0x361e1c[_0x46a5ed][_0x1541('0xa3')]=_0x46a5ed;let _0x12a5b8=0x0;for(let _0x89768d=_0x2f95d3;_0x89768d<=_0x59e9c6;_0x89768d++)0x0==_0x361e1c[_0x89768d]['distance']?_0x361e1c[_0x89768d][_0x1541('0x75')]=_0x12a5b8:(_0x12a5b8++,_0x361e1c[_0x89768d]['level']=_0x12a5b8,_0x12a5b8++);for(let _0x540793=_0x2f95d3;_0x540793<_0x36cda1;_0x540793++)0x0==_0x361e1c[_0x540793][_0x1541('0x10b')]&&(_0x361e1c[_0x540793][_0x1541('0x75')]=_0x12a5b8);_0x12a5b8=0x0;for(let _0x4ccb04=_0x36cda1-0x1;_0x4ccb04>=_0x52a943;_0x4ccb04--)0x0==_0x361e1c[_0x4ccb04][_0x1541('0x6c')]?_0x361e1c[_0x4ccb04][_0x1541('0x75')]=_0x12a5b8:(_0x12a5b8--,_0x361e1c[_0x4ccb04][_0x1541('0x75')]=_0x12a5b8,_0x12a5b8--);}}['_fixObsoleteTags'](_0x1076b5){const _0x1393a0=new Map(),_0x505021=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xb')];for(let _0x39c758=0x1;_0x39c758<_0x1076b5[_0x1541('0xb3')];_0x39c758++){let _0x3c632f,_0x3b0c65,_0x1d18a1;const _0x427be3=_0x1076b5[_0x39c758],_0x52038d=_0x1076b5[_0x39c758-0x1];if('text'==_0x427be3[_0x1541('0x4a')])continue;if(_0x427be3['type']!=_0x52038d[_0x1541('0x4a')])continue;if(!_0x505021[_0x1541('0xf5')](_0x52038d['item'])||_0x505021[_0x1541('0x102')](_0x52038d[_0x1541('0x11')]))continue;if(!_0x505021[_0x1541('0xf5')](_0x427be3[_0x1541('0x11')])||_0x505021[_0x1541('0x102')](_0x427be3[_0x1541('0x11')]))continue;if((_0x1076b5[_0x39c758][_0x1541('0x4c')]||_0x1076b5[_0x39c758][_0x1541('0x63')])&&_0x1076b5[_0x39c758-0x1]['isRemoved'])_0x3c632f=_0x1076b5[_0x39c758],_0x3b0c65=_0x1076b5[_0x39c758-0x1],_0x1d18a1=_0x39c758-0x1;else{if(!_0x1076b5[_0x39c758][_0x1541('0x100')]||!_0x1076b5[_0x39c758-0x1][_0x1541('0x4c')]&&!_0x1076b5[_0x39c758-0x1][_0x1541('0x63')])continue;_0x3c632f=_0x1076b5[_0x39c758-0x1],_0x3b0c65=_0x1076b5[_0x39c758],_0x1d18a1=_0x39c758;}const _0x574929=_0x3c632f[_0x1541('0x75')]==_0x3b0c65[_0x1541('0x75')],_0x52c008=Math['abs'](_0x3c632f[_0x1541('0x75')])<Math[_0x1541('0x10c')](_0x3b0c65[_0x1541('0x75')])&&0x0==_0x3b0c65['distance'];(_0x574929||_0x52c008)&&(_0x1393a0['set'](_0x3b0c65['id'],_0x3c632f['id']),_0x1076b5[_0x1541('0x3a')](_0x1d18a1,0x1),_0x39c758--,_0x3c632f[_0x1541('0x4c')]=!0x1);}for(let _0x181bfb=0x0;_0x181bfb<_0x1076b5[_0x1541('0xb3')];_0x181bfb++)_0x1393a0[_0x1541('0x15')](_0x1076b5[_0x181bfb][_0x1541('0xfc')])&&(_0x1076b5[_0x181bfb][_0x1541('0xfc')]=_0x1393a0['get'](_0x1076b5[_0x181bfb][_0x1541('0xfc')]));}[_0x1541('0x2e')](_0x502dd0){const _0x2f19fc=new Set(_0x502dd0[_0x1541('0x7c')](_0x22303e=>_0x22303e['id']));for(let _0x1b75b9=0x0;_0x1b75b9<_0x502dd0['length'];_0x1b75b9++)_0x2f19fc[_0x1541('0x15')](_0x502dd0[_0x1b75b9][_0x1541('0xfc')])||0x0==_0x502dd0[_0x1b75b9][_0x1541('0x6c')]||(_0x502dd0[_0x1b75b9][_0x1541('0x9b')]=!0x0);return _0x502dd0['filter'](_0x42b2c4=>!_0x42b2c4['isIncorrect']);}[_0x1541('0x21')](_0x509b53){const _0xec84dd=new Set();for(let _0x1a4112=0x0;_0x1a4112<_0x509b53[_0x1541('0xb3')];_0x1a4112++){if(_0xec84dd[_0x1541('0x15')](_0x509b53[_0x1a4112]['id'])&&_0x509b53[_0x1a4112][_0x1541('0x100')]&&(_0x509b53[_0x1a4112]['isIncorrect']=!0x0),_0x509b53[_0x1a4112][_0x1541('0x9b')])continue;if(0x0==_0x509b53[_0x1a4112]['distance'])continue;if(_0x1541('0x68')!=_0x509b53[_0x1a4112]['type'])continue;if(null==_0x509b53[_0x1a4112][_0x1541('0xfc')])continue;let _0x10c7fd=_0x1a4112+0x1,_0xad055=0x0;for(;_0x509b53[_0x10c7fd]['id']!=_0x509b53[_0x1a4112][_0x1541('0xfc')];)_0x1541('0x68')==_0x509b53[_0x10c7fd][_0x1541('0x4a')]?_0xad055++:_0x1541('0x112')==_0x509b53[_0x10c7fd][_0x1541('0x4a')]&&_0xad055--,_0x10c7fd++;if(0x0!=_0xad055){if(_0x509b53[_0x1a4112][_0x1541('0x100')])_0x509b53[_0x1a4112][_0x1541('0x9b')]=!0x0;else for(;_0x10c7fd!=_0x1a4112;)_0x509b53[_0x10c7fd][_0x1541('0x100')]&&0x0!=_0x509b53[_0x10c7fd]['distance']&&(_0x509b53[_0x10c7fd][_0x1541('0x9b')]=!0x0,_0xec84dd['add'](_0x509b53[_0x10c7fd]['pairId'])),_0x10c7fd--;}}return _0x509b53[_0x1541('0x6')](_0x5b4220=>!_0x5b4220['isIncorrect']);}['_removeUnsupportedChanges'](_0x4575aa){const _0x5c5def=this['editor'][_0x1541('0x38')]['schema'];for(let _0x108b31=0x0;_0x108b31<_0x4575aa[_0x1541('0xb3')];_0x108b31++){if(!(_0x4575aa[_0x108b31]['isAdded']||_0x4575aa[_0x108b31]['isAddSuggestion']||_0x4575aa[_0x108b31][_0x1541('0x100')]||_0x4575aa[_0x108b31]['isRemoveSuggestion']))continue;if(0x0==_0x4575aa[_0x108b31]['distance'])continue;const _0x9e7bfe=_0x4575aa[_0x108b31]['item'];_0x5c5def[_0x1541('0xf5')](_0x9e7bfe)||_0x5c5def[_0x1541('0x102')](_0x9e7bfe)||(_0x4575aa[_0x108b31][_0x1541('0x4c')]&&delete _0x4575aa[_0x108b31][_0x1541('0x4c')],_0x4575aa[_0x108b31][_0x1541('0x63')]&&delete _0x4575aa[_0x108b31]['isAddSuggestion'],_0x4575aa[_0x108b31][_0x1541('0xf6')]&&delete _0x4575aa[_0x108b31][_0x1541('0xf6')],_0x4575aa[_0x108b31][_0x1541('0x100')]&&(_0x4575aa[_0x108b31][_0x1541('0x9b')]=!0x0));}return _0x4575aa[_0x1541('0x6')](_0x4d48a5=>!_0x4d48a5['isIncorrect']);}[_0x1541('0x116')](_0x3c3f83,_0x503103,_0x5a30dd){const _0x3071ca=new _0x4390f7(),_0x234aca=[],_0x38363f=new Map(),_0x294a46=this[_0x1541('0x3b')]['model'],_0x3037bc=_0x294a46[_0x1541('0xb')],_0x6b217=[_0x3071ca],_0x22691f={},_0x355bc0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x23b5dc=null;const _0x99cf9d=[0x0];for(let _0x1a4459=0x0;_0x1a4459<_0x3c3f83[_0x1541('0xb3')];_0x1a4459++){let _0x22873b,_0x5d470f;if('elementStart'===_0x3c3f83[_0x1a4459][_0x1541('0x4a')]){_0x22873b=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d);const _0x231c79=new _0x24838a(_0x3c3f83[_0x1a4459][_0x1541('0x11')]['name'],_0x3c3f83[_0x1a4459]['item'][_0x1541('0x25')]());_0x6b217[0x0][_0x1541('0xee')](_0x231c79),_0x99cf9d['push'](0x0),_0x6b217[_0x1541('0x52')](_0x231c79),_0x5d470f=_0x294a46['createPositionFromPath'](_0x3071ca,_0x99cf9d),_0x23b5dc=null;}else{if(_0x1541('0x112')===_0x3c3f83[_0x1a4459][_0x1541('0x4a')])_0x6b217['shift'](),_0x22873b=_0x294a46['createPositionFromPath'](_0x3071ca,_0x99cf9d),_0x99cf9d[_0x1541('0x93')](),_0x99cf9d[_0x99cf9d[_0x1541('0xb3')]-0x1]++,_0x5d470f=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d),_0x23b5dc=null;else{if(_0x22873b=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d),_0x23b5dc&&_0x51ff52(_0x23b5dc,_0x3c3f83[_0x1a4459][_0x1541('0x11')]))_0x23b5dc[_0x1541('0x9a')]+=_0x3c3f83[_0x1a4459]['item'][_0x1541('0xa6')];else{const _0x434367=new _0x4109a4(_0x3c3f83[_0x1a4459][_0x1541('0x11')]['data'],_0x3c3f83[_0x1a4459][_0x1541('0x11')][_0x1541('0x25')]());_0x6b217[0x0]['_appendChild'](_0x434367),_0x23b5dc=_0x434367;}_0x99cf9d[_0x99cf9d[_0x1541('0xb3')]-0x1]+=_0x3c3f83[_0x1a4459][_0x1541('0x11')][_0x1541('0xc3')],_0x5d470f=_0x294a46[_0x1541('0x98')](_0x3071ca,_0x99cf9d);}}for(const _0x20f173 of _0x3c3f83[_0x1a4459][_0x1541('0xd0')])_0x38363f[_0x1541('0xc8')](_0x20f173,{'start':_0x22873b,'end':null});_0x31ae5f(_0x1541('0xf6'),_0x1a4459,_0x22873b,_0x5d470f),_0x31ae5f(_0x1541('0x63'),_0x1a4459,_0x22873b,_0x5d470f),_0x31ae5f(_0x1541('0x100'),_0x1a4459,_0x22873b,_0x5d470f),_0x31ae5f(_0x1541('0x4c'),_0x1a4459,_0x22873b,_0x5d470f);for(const _0x2d9ed5 of _0x3c3f83[_0x1a4459]['markersEnd']){_0x38363f[_0x1541('0x6f')](_0x2d9ed5)[_0x1541('0xc')]=_0x5d470f;}}for(const [_0x24b1dc,_0x2bbe1c]of _0x38363f){const _0x17968f=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x47')](_0x2bbe1c[_0x1541('0xdc')],_0x2bbe1c[_0x1541('0xc')]);_0x3071ca[_0x1541('0xad')][_0x1541('0xc8')](_0x24b1dc,_0x17968f);}return _0x234aca['sort']((_0x275b6a,_0x23f783)=>{const _0x14cac3=_0x3071ca['markers'][_0x1541('0x6f')](_0x1541('0x18')+_0x275b6a['id']),_0x3580c9=_0x3071ca[_0x1541('0xad')]['get'](_0x1541('0x18')+_0x23f783['id']);return _0x14cac3[_0x1541('0xdc')]['isBefore'](_0x3580c9[_0x1541('0xdc')])?-0x1:_0x14cac3[_0x1541('0xdc')]['isAfter'](_0x3580c9[_0x1541('0xdc')])?0x1:_0x14cac3[_0x1541('0xc')][_0x1541('0x119')](_0x3580c9[_0x1541('0xc')])?-0x1:_0x14cac3[_0x1541('0xc')][_0x1541('0xc0')](_0x3580c9[_0x1541('0xc')])?0x1:_0x1541('0x61')===_0x275b6a[_0x1541('0x4a')]?-0x1:0x1;}),{'root':_0x3071ca,'changes':_0x234aca};function _0x31ae5f(_0x477ba4,_0x40501e,_0x2b6b5a,_0x196921){const _0x429128=!!_0x3c3f83[_0x40501e][_0x477ba4],_0x19a2b1=_0x429128?_0x3c3f83[_0x40501e][_0x477ba4][_0x1541('0xf0')]:null,_0x3859f4=_0x40501e===_0x3c3f83[_0x1541('0xb3')]-0x1,_0x4f78f2=_0x355bc0[_0x477ba4][0x0],_0x140c85=_0x3037bc[_0x1541('0x10')](_0x3c3f83[_0x40501e]['item']);!_0x22691f[_0x477ba4]&&_0x429128?_0x22691f[_0x477ba4]={'start':_0x2b6b5a,'tapeItem':_0x3c3f83[_0x40501e],'userId':_0x19a2b1,'type':_0x477ba4}:_0x22691f[_0x477ba4]&&!_0x429128?(_0x22691f[_0x477ba4][_0x1541('0xc')]=_0x2b6b5a,_0x284f4a(_0x22691f[_0x477ba4]),_0x22691f[_0x477ba4]=null):_0x22691f[_0x477ba4]&&_0x429128&&_0x22691f[_0x477ba4][_0x1541('0xf0')]!==_0x19a2b1&&(_0x22691f[_0x477ba4][_0x1541('0xc')]=_0x2b6b5a,_0x4f78f2&&_0x4f78f2[_0x1541('0xf0')]===_0x22691f[_0x477ba4][_0x1541('0xf0')]||_0x284f4a(_0x22691f[_0x477ba4]),_0x22691f[_0x477ba4]={'start':_0x2b6b5a,'tapeItem':_0x3c3f83[_0x40501e],'userId':_0x19a2b1,'type':_0x477ba4}),_0x22691f[_0x477ba4]&&_0x140c85&&(_0x1541('0x68')!==_0x3c3f83[_0x40501e][_0x1541('0x4a')]||_0x4f78f2&&_0x4f78f2[_0x1541('0xf0')]===_0x19a2b1||_0x355bc0[_0x477ba4][_0x1541('0x52')]({'userId':_0x19a2b1,'object':_0x3c3f83[_0x40501e][_0x1541('0x11')],'change':_0x22691f[_0x477ba4]}),_0x1541('0x112')===_0x3c3f83[_0x40501e]['type']&&_0x4f78f2&&_0x4f78f2[_0x1541('0xd3')]===_0x3c3f83[_0x40501e][_0x1541('0x11')]&&(_0x355bc0[_0x477ba4][_0x1541('0xe7')](),_0x22691f[_0x477ba4]=_0x4f78f2['change'])),_0x22691f[_0x477ba4]&&_0x3859f4&&(_0x22691f[_0x477ba4][_0x1541('0xc')]=_0x196921,_0x284f4a(_0x22691f[_0x477ba4]),_0x22691f[_0x477ba4]=null);}function _0x284f4a({start:_0x19ec73,end:_0x3f6d8f,tapeItem:_0x4c0996,userId:_0x4c64e2,type:_0x23894d}){const _0xdee98d=_0x4c0996[_0x1541('0x11')],_0x188505=_0x294a46[_0x1541('0xb')][_0x1541('0xf5')](_0xdee98d)&&!_0x294a46[_0x1541('0xb')][_0x1541('0x102')](_0xdee98d),_0x6ae4dc=_0x19ec73['nodeAfter']==_0x3f6d8f[_0x1541('0x92')]&&_0x3f6d8f[_0x1541('0xb6')];if(_0x188505&&_0x6ae4dc)return;const _0x5656e8=_0x294a46[_0x1541('0x47')](_0x19ec73,_0x3f6d8f),_0x43bf03=_0x503103[_0x1541('0x6f')](_0x4c64e2),_0x22daff=new _0x90d829({'author':_0x43bf03,'type':_0x1541('0x4c')==_0x23894d||_0x1541('0x63')==_0x23894d?_0x1541('0x61'):_0x1541('0x27'),'data':{'isSuggestion':_0x1541('0x63')==_0x23894d||_0x1541('0xf6')==_0x23894d},'createdAt':new Date(),'rootName':_0x5a30dd});_0x234aca[_0x1541('0x9f')](_0x22daff),_0x3071ca[_0x1541('0xad')][_0x1541('0xc8')](_0x1541('0x18')+_0x22daff['id'],_0x5656e8);}function _0x51ff52(_0x1c88ca,_0x26f864){const _0x177288=_0x1c88ca[_0x1541('0x25')](),_0x5b5a4e=_0x26f864[_0x1541('0x25')]();for(const _0x166689 of _0x177288){if(_0x166689[0x1]!==_0x26f864[_0x1541('0x5b')](_0x166689[0x0]))return!0x1;_0x5b5a4e[_0x1541('0x20')]();}return _0x5b5a4e['next']()[_0x1541('0xb0')];}}[_0x1541('0x5')](){this[_0x1541('0x3b')]['conversion']['for'](_0x1541('0xe'))[_0x1541('0x7f')]({'view':_0x1541('0xa7')}),this['editor'][_0x1541('0x19')][_0x1541('0xa5')]('editingDowncast')['markerToHighlight']({'model':_0x1541('0xa7'),'view':_0x1a2b90=>{const _0x31d845=_0x1a2b90['markerName'][_0x1541('0xba')](':')[0x1],_0x5558a1=this[_0x1541('0x118')](_0x31d845);if(!_0x5558a1)return null;const _0x16a306=_0x1541('0x61')==_0x5558a1[_0x1541('0x4a')]?_0x1541('0x11e'):_0x1541('0xaf'),_0x5d816b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x16a306];return _0x5558a1[_0x1541('0xa6')][_0x1541('0xb2')]&&_0x5d816b[_0x1541('0x9f')](_0x1541('0x10e')+_0x16a306+'-new'),this[_0x1541('0x32')]==_0x5558a1&&_0x5d816b['push'](_0x1541('0x41')),{'classes':_0x5d816b,'attributes':{'data-change-id':_0x31d845}};}}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0xe'))['add'](_0x26c4d1=>{_0x26c4d1['on'](_0x1541('0x54'),(_0x298375,_0x13255a,_0x50fb0d)=>{const _0x139355=_0x13255a[_0x1541('0xd5')]['getChild'](0x0);if(!_0x139355||!_0x139355['is'](_0x1541('0x24'),_0x1541('0x11b')))return;if(!_0x50fb0d[_0x1541('0x60')][_0x1541('0xf8')](_0x139355,{'attributes':[_0x1541('0x121'),'vid_end']}))return;const _0x31c374=_0x13255a['modelRange'][_0x1541('0xdc')]['nodeAfter'];_0x50fb0d[_0x1541('0x7e')][_0x1541('0xa8')]('vid_start',_0x139355[_0x1541('0x5b')]('vid_start'),_0x31c374),_0x50fb0d[_0x1541('0x7e')][_0x1541('0xa8')]('vid_end',_0x139355[_0x1541('0x5b')](_0x1541('0x31')),_0x31c374);},{'priority':'low'});}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0xe'))[_0x1541('0x61')](_0x2525be=>{_0x2525be['on'](_0x1541('0x24'),(_0x736b25,_0x1107bc,_0x2b4c31)=>{if(!_0x2b4c31['consumable']['consume'](_0x1107bc[_0x1541('0xd5')],{'attributes':[_0x1541('0x121'),'vid_end']}))return;if(_0x1107bc[_0x1541('0x2d')][_0x1541('0x9e')])return;const _0x55cc46=_0x1107bc['modelRange']['start'][_0x1541('0x105')];_0x55cc46['hasAttribute'](_0x1541('0x121'))||_0x55cc46[_0x1541('0x5a')](_0x1541('0x77'))||(_0x2b4c31[_0x1541('0x7e')][_0x1541('0xa8')](_0x1541('0x121'),_0x1107bc['viewItem']['getAttribute'](_0x1541('0x121')),_0x55cc46),_0x2b4c31[_0x1541('0x7e')][_0x1541('0xa8')](_0x1541('0x31'),_0x1107bc[_0x1541('0xd5')][_0x1541('0x5b')](_0x1541('0x31')),_0x55cc46));},{'priority':_0x1541('0xe8')});}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0xe'))[_0x1541('0x3d')]({'view':{'name':_0x1541('0x29'),'attributes':{'vid':!0x0}},'model':{'key':_0x1541('0x77'),'value':_0x3e2805=>_0x3e2805[_0x1541('0x5b')](_0x1541('0x77'))}}),this[_0x1541('0x3b')][_0x1541('0x38')]['schema']['on']('checkAttribute',(_0x4609a5,[,_0x56f1b9])=>{[_0x1541('0x121'),_0x1541('0x31'),_0x1541('0x77')][_0x1541('0x59')](_0x56f1b9)&&(_0x4609a5[_0x1541('0x44')]=!0x0,_0x4609a5['stop']());},{'priority':_0x1541('0xbe')}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0x70'))['add'](_0x556023=>{_0x556023['on'](_0x1541('0xe2'),(_0x314d79,_0x3d6947,_0x568a9e)=>{if('\x20'!=_0x3d6947['item'][_0x1541('0xa6')]||_0x3d6947[_0x1541('0x11')][_0x1541('0x92')][_0x1541('0x80')]>0x1)return;if(!_0x568a9e[_0x1541('0x60')]['consume'](_0x3d6947['item'],_0x314d79[_0x1541('0x1f')]))return;const _0x4f5709=_0x568a9e['writer'],_0x21a9d0=_0x568a9e[_0x1541('0xb8')][_0x1541('0xab')](_0x3d6947[_0x1541('0x23')]);_0x4f5709[_0x1541('0xe6')](_0x21a9d0,_0x4f5709[_0x1541('0x55')]('span'));});}),this[_0x1541('0x3b')][_0x1541('0x19')]['for'](_0x1541('0x70'))[_0x1541('0x4e')]({'model':'revision'}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0xea'),function(_0x2f4241){const _0x28403b=_0x2f4241['plugins'][_0x1541('0x6f')](_0x1541('0x42'));return(_0x42a09d,_0x2b497a,_0x42ca3f)=>{const _0x4098c8=_0x2b497a[_0x1541('0x5d')][_0x1541('0xba')](':')[0x1],_0x2ee003=_0x28403b[_0x1541('0x118')](_0x4098c8);if(!_0x2ee003)return null;const _0x34d68d=_0x1541('0x61')==_0x2ee003[_0x1541('0x4a')]?_0x1541('0xba'):_0x1541('0xae');if(!_0x42ca3f[_0x1541('0x60')]['test'](_0x2b497a['markerRange'],_0x42a09d[_0x1541('0x1f')]))return;const _0x4e8136=_0x2b497a[_0x1541('0x2b')][_0x1541('0xc9')](),_0x240fcd=_0x2b497a[_0x1541('0x2b')][_0x1541('0xdc')],_0x418487=_0x2f4241[_0x1541('0x38')]['schema'];let _0x4fc95f=null,_0x4578a4=null,_0x5b345=!0x1,_0x4a0245=!0x1;for(const _0x493082 of _0x4e8136){const _0xb60f2=_0x493082['item'];_0x5b345=_0x5b345||_0x418487[_0x1541('0x88')](_0xb60f2);const _0x5a34d1=_0x42ca3f[_0x1541('0xb8')][_0x1541('0xdd')](_0xb60f2);if(_0x5a34d1&&_0x5a34d1[_0x1541('0xb5')](_0x1541('0x122')))return;_0x1541('0x112')==_0x493082[_0x1541('0x4a')]&&(_0x418487[_0x1541('0xf5')](_0xb60f2)&&!_0x418487[_0x1541('0x102')](_0xb60f2)&&(_0xb60f2['nextSibling']||_0x240fcd[_0x1541('0xfb')]?_0x4fc95f&&_0x4fc95f[_0x1541('0x92')]==_0xb60f2||(_0x4fc95f=_0xb60f2,_0x3a89e0(_0x493082[_0x1541('0xd6')]),_0x4a0245=!0x0):_0x4578a4=_0x4578a4||_0x493082[_0x1541('0xd6')]));}function _0x3a89e0(_0x428918){const _0xb7514d=_0x42ca3f[_0x1541('0x7e')][_0x1541('0xca')]('span',{'class':_0x1541('0x10e')+_0x34d68d}),_0x53390f=_0x42ca3f[_0x1541('0xb8')][_0x1541('0x11a')](_0x428918);_0x2ee003[_0x1541('0xa6')][_0x1541('0xb2')]&&_0x42ca3f[_0x1541('0x7e')][_0x1541('0x9c')](_0x1541('0x10e')+_0x34d68d+_0x1541('0xec'),_0xb7514d),_0x28403b['activeChange']==_0x2ee003&&_0x42ca3f[_0x1541('0x7e')][_0x1541('0x9c')](_0x1541('0x41'),_0xb7514d),_0x42ca3f['writer'][_0x1541('0xc6')](_0x53390f,_0xb7514d),_0x42ca3f['mapper'][_0x1541('0xd2')](_0xb7514d,_0x2b497a[_0x1541('0x5d')]);}_0x5b345||_0x4a0245||!_0x4578a4||_0x3a89e0(_0x4578a4);};}(this['editor']),{'priority':_0x1541('0x97')}),this['editor'][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0xc2'),(_0x29ee74,_0x36d205,_0x11f7c0)=>{const _0x28351d=_0x11f7c0[_0x1541('0xb8')][_0x1541('0x0')](_0x36d205[_0x1541('0x5d')]);if(_0x28351d)for(const _0x3c8cdc of _0x28351d)(_0x3c8cdc[_0x1541('0x114')](_0x1541('0x95'))||_0x3c8cdc['hasClass'](_0x1541('0x86')))&&(_0x11f7c0[_0x1541('0xb8')][_0x1541('0x14')](_0x3c8cdc,_0x36d205[_0x1541('0x5d')]),_0x11f7c0[_0x1541('0x7e')][_0x1541('0x27')](_0x3c8cdc));},{'priority':_0x1541('0x97')}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on']('addMarker:revision',(_0xe26a9b,_0x3ac5d9,_0x8d2618)=>{const _0x426d4a=_0x3ac5d9['markerName'][_0x1541('0xba')](':')[0x1],_0x1c5dd5=this[_0x1541('0x118')](_0x426d4a);if(!_0x1c5dd5)return null;const _0x67b9ea=_0x1541('0x61')==_0x1c5dd5[_0x1541('0x4a')]?_0x1541('0xba'):'merge';if(_0x8d2618[_0x1541('0x60')]['test'](_0x3ac5d9[_0x1541('0x2b')],_0xe26a9b[_0x1541('0x1f')]))for(const _0x47ef9e of _0x3ac5d9[_0x1541('0x2b')][_0x1541('0x48')]()){if(!_0x47ef9e['is'](_0x1541('0x24'),_0x1541('0xa0')))continue;const _0x3c0a2b=_0x8d2618[_0x1541('0x7e')]['createUIElement'](_0x1541('0x29'),{'class':_0x1541('0x10e')+_0x67b9ea}),_0x405444=_0x8d2618[_0x1541('0xb8')][_0x1541('0x11a')](this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x90')](_0x47ef9e));_0x1c5dd5['data'][_0x1541('0xb2')]&&_0x8d2618[_0x1541('0x7e')]['addClass']('ck-suggestion-marker-'+_0x67b9ea+_0x1541('0xec'),_0x3c0a2b),this[_0x1541('0x32')]==_0x1c5dd5&&_0x8d2618[_0x1541('0x7e')]['addClass']('ck-suggestion-marker--active',_0x3c0a2b),_0x8d2618[_0x1541('0x7e')]['insert'](_0x405444,_0x3c0a2b),_0x8d2618[_0x1541('0xb8')][_0x1541('0xd2')](_0x3c0a2b,_0x3ac5d9['markerName']);}},{'priority':_0x1541('0x97')}),this[_0x1541('0x3b')][_0x1541('0x38')]['document']['on']('change',()=>{this['editor'][_0x1541('0x73')][_0x1541('0x2')][_0x1541('0xcc')](_0x517937=>{for(const _0x23ac5c of this['editor'][_0x1541('0x38')][_0x1541('0x6d')][_0x1541('0x78')]()){const _0x5a4c66=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x6d')]['getRoot'](_0x23ac5c),_0x5a1f7c=this[_0x1541('0x3b')]['editing'][_0x1541('0x2')][_0x1541('0x6d')][_0x1541('0xdb')](_0x23ac5c);if(_0x5a1f7c){const _0x430048=_0x5a4c66[_0x1541('0x5b')](_0x1541('0x10a'));if(_0x517937['removeAttribute'](_0x1541('0x81'),_0x5a1f7c),_0x517937[_0x1541('0x12')](_0x1541('0xa2'),_0x5a1f7c),_0x517937[_0x1541('0x12')](_0x1541('0x67'),_0x5a1f7c),_0x517937[_0x1541('0x12')]('ck-revision-history-root--active',_0x5a1f7c),_0x430048){const _0x3089bf=this[_0x1541('0x118')](_0x430048);if(!_0x3089bf)return null;_0x517937[_0x1541('0xa8')](_0x1541('0x81'),_0x430048,_0x5a1f7c),_0x517937[_0x1541('0x9c')](_0x1541('0xed')+_0x3089bf[_0x1541('0x4a')],_0x5a1f7c),this[_0x1541('0x32')]==_0x3089bf&&_0x517937['addClass']('ck-revision-history-root--active',_0x5a1f7c);}}}});}),this[_0x1541('0x3b')]['conversion'][_0x1541('0xa5')](_0x1541('0xe'))['dataToMarker']({'view':_0x1541('0x34'),'model':_0x491c81=>_0x1541('0x94')+_0x491c81,'converterPriority':_0x1541('0xbe')}),this[_0x1541('0x3b')]['conversion']['for'](_0x1541('0xe'))['dataToMarker']({'view':_0x1541('0xaa'),'model':_0xea8a2d=>_0x1541('0xf1')+_0xea8a2d,'converterPriority':_0x1541('0xbe')}),this[_0x1541('0x3b')]['conversion'][_0x1541('0xa5')](_0x1541('0x70'))[_0x1541('0x4e')]({'model':_0x1541('0xcd'),'view':_0x2b9810=>({'name':_0x1541('0x117')+_0x2b9810,'group':'revision-suggestion'}),'converterPriority':'highest'}),this[_0x1541('0x3b')][_0x1541('0x19')][_0x1541('0xa5')](_0x1541('0x43'))[_0x1541('0x69')]({'model':_0x1541('0xcd'),'view':_0x150ab6=>{const _0x551991=_0x150ab6[_0x1541('0x5d')][_0x1541('0xba')](':')[0x1];return _0x1541('0x11e')!=_0x551991&&_0x1541('0xaf')!=_0x551991?null:{'classes':['ck-suggestion-preview-marker',_0x1541('0xbd')+_0x551991]};}}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0x1c'),et(this[_0x1541('0x3b')],'merge'),{'priority':_0x1541('0x97')}),this['editor'][_0x1541('0x73')]['downcastDispatcher']['on'](_0x1541('0x33'),et(this[_0x1541('0x3b')],_0x1541('0xba')),{'priority':_0x1541('0x97')}),this[_0x1541('0x3b')][_0x1541('0x73')][_0x1541('0x104')]['on'](_0x1541('0xe5'),(_0x3dbd88,_0x2acd58,_0x2d26fb)=>{const _0x1e90de=_0x2d26fb[_0x1541('0xb8')][_0x1541('0x0')](_0x2acd58[_0x1541('0x5d')]);if(_0x1e90de)for(const _0x4869ff of _0x1e90de)_0x4869ff['is'](_0x1541('0xb1'))&&(_0x2d26fb[_0x1541('0xb8')][_0x1541('0x14')](_0x4869ff,_0x2acd58[_0x1541('0x5d')]),_0x2d26fb[_0x1541('0x7e')][_0x1541('0x27')](_0x4869ff));},{'priority':_0x1541('0x97')});}[_0x1541('0x118')](_0x105e14){return this['_changeIdToChange'][_0x1541('0x6f')](_0x105e14);}[_0x1541('0x8f')](_0x27f49e){return this[_0x1541('0xb7')]&&this[_0x1541('0xb7')][_0x1541('0xd1')](),this[_0x1541('0xb7')]=new _0x4e0c7a(this[_0x1541('0x3b')][_0x1541('0x7a')],_0x27f49e),this[_0x1541('0xb7')];}[_0x1541('0x106')](){this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0x6d')][_0x1541('0xde')][_0x1541('0xd4')](_0x1541('0xa7')),this['on'](_0x1541('0x1b'),(_0x4e5a22,_0x3ce941,_0x7bfdc0,_0xb0d1b4)=>{_0xb0d1b4&&this[_0x1541('0x3')][_0x1541('0x27')](_0xb0d1b4),_0x7bfdc0&&(this[_0x1541('0x3')][_0x1541('0x61')]({'view':_0x7bfdc0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x503e38=this[_0x1541('0x3b')][_0x1541('0x73')],_0x237717=this['_getChangeFromId'](_0x7bfdc0[_0x1541('0x11f')]);let _0x5463a5;if(_0x237717['data'][_0x1541('0x11d')]){const _0x12345d=_0x503e38[_0x1541('0x2')]['getDomRoot'](_0x237717[_0x1541('0xf2')]);_0x5463a5=Array[_0x1541('0x2c')](_0x12345d['getClientRects']());}else{const _0x225d51=this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xad')][_0x1541('0x6f')](_0x1541('0x18')+_0x7bfdc0[_0x1541('0x11f')]);_0x5463a5=Array[_0x1541('0x2c')](_0x503e38[_0x1541('0xb8')][_0x1541('0x0')](_0x225d51[_0x1541('0x1f')]))[_0x1541('0x7c')](_0x175840=>_0x503e38[_0x1541('0x2')]['domConverter'][_0x1541('0x64')](_0x175840))['map'](_0x203040=>Array[_0x1541('0x2c')](_0x203040[_0x1541('0x7')]()))[_0x1541('0xef')]();}if(!this[_0x1541('0xbb')])return _0x5463a5[0x0];return _0x5463a5[_0x1541('0x71')](_0xb83fdd=>_0xb83fdd['top']-0x3<=this['_activeViewTarget']['y']&&_0xb83fdd[_0x1541('0x9')]+0x3>=this[_0x1541('0xbb')]['y']&&_0xb83fdd['left']-0x3<=this[_0x1541('0xbb')]['x']&&_0xb83fdd[_0x1541('0xda')]+0x3>=this[_0x1541('0xbb')]['x'])||_0x5463a5[0x0];}}}),this[_0x1541('0x3')][_0x1541('0x72')](_0x1541('0x39')));}),this['on'](_0x1541('0xbc'),(_0x72f325,_0x5d2b57,_0x3f105b,_0x5de37d)=>{this[_0x1541('0x1e')]=_0x3f105b?this[_0x1541('0x8f')](_0x3f105b):null,this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xcc')](()=>{const _0x20d182=this[_0x1541('0x3b')][_0x1541('0x73')];_0x5de37d&&(_0x5de37d[_0x1541('0xa6')][_0x1541('0x11d')]?_0x20d182[_0x1541('0x2')][_0x1541('0xcc')](_0x1a53ba=>{_0x1a53ba[_0x1541('0x12')](_0x1541('0x87'),_0x20d182['view'][_0x1541('0x6d')]['getRoot'](_0x5de37d[_0x1541('0xf2')]));}):_0x20d182[_0x1541('0x3e')](_0x1541('0x18')+_0x5de37d['id'])),_0x3f105b&&(_0x3f105b[_0x1541('0xa6')][_0x1541('0x11d')]?_0x20d182[_0x1541('0x2')][_0x1541('0xcc')](_0x3c8660=>{_0x3c8660['addClass']('ck-revision-history-root--active',_0x20d182[_0x1541('0x2')]['document'][_0x1541('0xdb')](_0x3f105b[_0x1541('0xf2')]));}):_0x20d182[_0x1541('0x3e')](_0x1541('0x18')+_0x3f105b['id']));});}),this[_0x1541('0x115')](this[_0x1541('0x3b')]['editing'][_0x1541('0x2')]['document'],_0x1541('0x8e'),(_0x348d33,_0x2ecf73)=>{if(this[_0x1541('0x32')])return;const _0x4c29db=this[_0x1541('0x6a')](_0x2ecf73[_0x1541('0xeb')]),_0x162b99=this[_0x1541('0x4d')][_0x1541('0x6f')](_0x4c29db);_0x162b99?(this[_0x1541('0xbb')]={'x':_0x2ecf73['domEvent']['x'],'y':_0x2ecf73[_0x1541('0x8c')]['y']},this[_0x1541('0x1e')]=this['_getViewForChange'](_0x162b99)):(this[_0x1541('0xbb')]=null,this[_0x1541('0x1e')]=null);}),this[_0x1541('0x115')](this[_0x1541('0x3b')]['editing'][_0x1541('0x2')][_0x1541('0x6d')],'mousedown',(_0xdb7e49,_0x3a763e)=>{const _0x24a7c5=this[_0x1541('0x6a')](_0x3a763e[_0x1541('0xeb')]),_0x2f5034=this[_0x1541('0x4d')]['get'](_0x24a7c5);_0x2f5034?(this[_0x1541('0xbb')]={'x':_0x3a763e[_0x1541('0x8c')]['x'],'y':_0x3a763e[_0x1541('0x8c')]['y']},_0x2f5034===this['activeChange']?this['_balloon'][_0x1541('0x65')]():this[_0x1541('0x32')]=_0x2f5034):(this[_0x1541('0xbb')]=null,this[_0x1541('0x32')]=null);});}[_0x1541('0x6a')](_0x36b879){do{const _0xb03e6c=_0x36b879[_0x1541('0x5b')](_0x1541('0x81'));if(_0xb03e6c)return _0xb03e6c;_0x36b879=_0x36b879[_0x1541('0x92')];}while(_0x36b879);return null;}['_cleanMarkers'](){this[_0x1541('0x3b')][_0x1541('0x38')][_0x1541('0xcc')](_0x4be012=>{for(const _0x1438d5 of this[_0x1541('0x3b')]['model'][_0x1541('0xad')])_0x4be012[_0x1541('0xf')](_0x1438d5);});}}function et(_0x547893,_0x5e6f16){return(_0x1614f8,_0x4bcdb2,_0x2c47f0)=>{if(!_0x2c47f0[_0x1541('0x60')][_0x1541('0x22')](_0x4bcdb2['markerRange'],_0x1614f8['name']))return;const _0x406d1d=_0x4bcdb2['markerRange'][_0x1541('0xc9')](),_0x543fed=_0x4bcdb2['markerRange'][_0x1541('0xdc')],_0x69faea=_0x547893[_0x1541('0x38')][_0x1541('0xb')];let _0x1fac10=null,_0x195805=null,_0x327130=!0x1,_0x19e99d=!0x1;for(const _0x1ace5f of _0x406d1d){const _0x5082e0=_0x1ace5f[_0x1541('0x11')];_0x327130=_0x327130||_0x69faea[_0x1541('0x88')](_0x5082e0);const _0x1c284b=_0x2c47f0[_0x1541('0xb8')][_0x1541('0xdd')](_0x5082e0);if(_0x1c284b&&_0x1c284b[_0x1541('0xb5')](_0x1541('0x122')))return;_0x1541('0x112')==_0x1ace5f['type']&&(_0x69faea[_0x1541('0xf5')](_0x5082e0)&&!_0x69faea[_0x1541('0x102')](_0x5082e0)&&(_0x5082e0[_0x1541('0xf3')]||_0x543fed['isAtEnd']?_0x1fac10&&_0x1fac10[_0x1541('0x92')]==_0x5082e0||(_0x1fac10=_0x5082e0,_0x14f47e(_0x1ace5f[_0x1541('0xd6')]),_0x19e99d=!0x0):_0x195805=_0x195805||_0x1ace5f[_0x1541('0xd6')]));}function _0x14f47e(_0x55e41f){const _0x157e88=_0x2c47f0[_0x1541('0xb8')][_0x1541('0x11a')](_0x55e41f),_0xfd6e8e=_0x2c47f0[_0x1541('0x7e')][_0x1541('0xca')](_0x1541('0x29'),{'class':_0x1541('0xbd')+_0x5e6f16});_0x2c47f0['writer'][_0x1541('0xc6')](_0x157e88,_0xfd6e8e),_0x2c47f0['mapper'][_0x1541('0xd2')](_0xfd6e8e,_0x4bcdb2[_0x1541('0x5d')]);}_0x327130||_0x19e99d||!_0x195805||_0x14f47e(_0x195805);};}export class RestoreRevisionCommand extends _0x2b67f2{constructor(_0x4f73ff){super(_0x4f73ff);const _0x4647ad=_0x4f73ff[_0x1541('0x26')]['get'](d);this[_0x1541('0x8a')]=!0x1,this[_0x1541('0x115')](_0x4647ad,'change:isReady',()=>this['refresh']()),this[_0x1541('0x115')](_0x4647ad,_0x1541('0xf4'),()=>this[_0x1541('0x9d')]());}['execute'](){const _0x9472f2=this[_0x1541('0x3b')],_0xa6cfd6=_0x9472f2['plugins'][_0x1541('0x6f')](d),_0x26752a=_0xa6cfd6[_0x1541('0x4f')]?_0xa6cfd6[_0x1541('0xc5')]['newRevisionId']:null;_0x9472f2[_0x1541('0x17')][_0x1541('0x6f')](_0x1541('0x58'))[_0x1541('0x45')](_0x26752a);}[_0x1541('0x9d')](){const {isReady:_0x52c8b6,isEnabled:_0x143cfd}=this[_0x1541('0x3b')][_0x1541('0x26')][_0x1541('0x6f')](d);this[_0x1541('0x8d')]=_0x52c8b6&&_0x143cfd;}}export class ShowChangeCommand extends _0x2b67f2{constructor(_0x2a17bb,{direction:_0x52e5ba}){super(_0x2a17bb);const _0x43e5d7=_0x2a17bb[_0x1541('0x26')][_0x1541('0x6f')](d);this[_0x1541('0x8a')]=!0x1,this['_step']=_0x1541('0x3f')===_0x52e5ba?0x1:-0x1,this[_0x1541('0x115')](_0x43e5d7,_0x1541('0x113'),()=>this[_0x1541('0x9d')]()),this[_0x1541('0x115')](_0x43e5d7,_0x1541('0xf4'),()=>this[_0x1541('0x9d')]()),this['listenTo'](_0x43e5d7,'change:activeChange',()=>this[_0x1541('0x9d')]());}[_0x1541('0xac')](){const _0x35d91d=this[_0x1541('0x3b')],_0x6bdb21=_0x35d91d[_0x1541('0x26')][_0x1541('0x6f')](d),{isNavigationMode:_0x5b5910,currentChangeNumber:_0x30b28e}=_0x6bdb21;let _0x13821c;if(_0x6bdb21[_0x1541('0x32')]=_0x5b5910?_0x6bdb21[_0x1541('0xc5')][_0x1541('0x10d')][_0x1541('0x6f')](_0x30b28e+this[_0x1541('0x62')]):_0x6bdb21['diff']['changes'][_0x1541('0x49')],_0x6bdb21['activeChange'][_0x1541('0xa6')][_0x1541('0x11d')])_0x13821c=_0x35d91d[_0x1541('0x73')]['view'][_0x1541('0xd7')](_0x6bdb21['activeChange'][_0x1541('0xf2')]);else{const _0x594219=_0x35d91d[_0x1541('0x38')][_0x1541('0xad')][_0x1541('0x6f')]('revision:'+_0x6bdb21['activeChange']['id']);_0x13821c=_0x10b913(_0x35d91d[_0x1541('0x73')],_0x594219);}_0x142e83({'target':_0x13821c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19d59e,currentChangeNumber:_0x19dd97,numberOfChanges:_0x53fcf1,isReady:_0xbd14c6,isEnabled:_0x298971}=this[_0x1541('0x3b')][_0x1541('0x26')]['get'](d);this[_0x1541('0x8d')]=!!(_0x298971&&_0xbd14c6&&_0x53fcf1)&&(!_0x19d59e||(0x1===this[_0x1541('0x62')]?_0x19dd97<_0x53fcf1-0x1:_0x19dd97>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5499=['buttonView','bindTemplate','_action','Compare\x20against\x20selected','isVisible','Restore\x20this\x20revision','listView','bind','action','function','isOpen','name','stopPropagation','listenTo','find','isEnabled','execute','class','set','Name\x20this\x20revision','Show\x20more\x20items','ck-revision-history-sidebar__revision__actions','ck-on','map','threeVerticalDots','children','isActionsDropdownOpen','change:isActionsDropdownOpen','isReady','first'];(function(_0x3c616b,_0x5499df){const _0x6cfacd=function(_0x1aba0){while(--_0x1aba0){_0x3c616b['push'](_0x3c616b['shift']());}};_0x6cfacd(++_0x5499df);}(_0x5499,0x161));const _0x6cfa=function(_0x3c616b,_0x5499df){_0x3c616b=_0x3c616b-0x0;let _0x6cfacd=_0x5499[_0x3c616b];return _0x6cfacd;};import{Collection as _0xca2371}from'ckeditor5/src/utils';import{icons as _0xd65f68}from'ckeditor5/src/core';import{Model as _0x290192,addListToDropdown as _0x55f4e7,createDropdown as _0x2dc10d}from'ckeditor5/src/ui';import{getTranslation as _0x47eb5e}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x12213f,_0x281acd){const _0x1cd564=_0x12213f[_0x6cfa('0x8')],_0x424c50=_0x12213f['locale'],_0x445deb=_0x2dc10d(_0x424c50);_0x445deb['panelPosition']='sw';const _0x153054=function(_0x23e044,_0x4dd49c){const _0x8ab609=function(_0x20ab2a,_0x7beb0){const _0x38945d=_0x20ab2a['locale'],_0x3dd6be={'Compare\x20against\x20selected':_0x47eb5e(_0x38945d,_0x6cfa('0xa')),'Name\x20this\x20revision':_0x47eb5e(_0x38945d,_0x6cfa('0x1a')),'Restore\x20this\x20revision':_0x47eb5e(_0x38945d,_0x6cfa('0xc'))};return _0x7beb0[_0x6cfa('0x0')](_0x429d71=>{const _0x213cf7=_0x3dd6be[_0x429d71[_0x6cfa('0x12')]];return _0x213cf7&&_0x213cf7!==_0x429d71[_0x6cfa('0x12')]&&(_0x429d71['name']=_0x213cf7),_0x429d71;});}(_0x23e044,_0x4dd49c),_0x499f48=new _0xca2371();for(const _0x4adc60 of _0x8ab609){const _0x48394a={'type':'button','model':new _0x290192({'label':_0x4adc60[_0x6cfa('0x12')],'class':_0x4adc60[_0x6cfa('0x18')],'withText':!0x0,'_action':_0x4adc60[_0x6cfa('0xf')]})};_0x48394a['model'][_0x6cfa('0xe')](_0x6cfa('0x16'))['to'](_0x23e044,'isActionsDropdownOpen',_0x2dd12c=>'function'!=typeof _0x4adc60[_0x6cfa('0x16')]||(!_0x2dd12c||_0x4adc60[_0x6cfa('0x16')](_0x23e044))),_0x499f48['add'](_0x48394a);}return _0x499f48;}(_0x12213f,_0x281acd);return _0x12213f[_0x6cfa('0xe')](_0x6cfa('0x3'))['to'](_0x445deb,_0x6cfa('0x11')),_0x445deb[_0x6cfa('0x7')][_0x6cfa('0x19')]({'label':_0x47eb5e(_0x424c50,_0x6cfa('0x1b')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xd65f68[_0x6cfa('0x1')]}),_0x445deb['extendTemplate']({'attributes':{'class':[_0x6cfa('0x1c'),_0x1cd564['if'](_0x6cfa('0x3'),_0x6cfa('0x1d'))]},'on':{'click':_0x1cd564['to'](_0x3af276=>_0x3af276[_0x6cfa('0x13')]())}}),_0x445deb['on'](_0x6cfa('0x17'),_0x7eea87=>{_0x12213f[_0x6cfa('0x5')]&&_0x6cfa('0x10')==typeof _0x7eea87['source'][_0x6cfa('0x9')]&&_0x7eea87['source']['_action'](_0x12213f);}),_0x55f4e7(_0x445deb,_0x153054),_0x445deb[_0x6cfa('0x14')](_0x12213f,_0x6cfa('0x4'),(_0x292fec,_0x21c8aa,_0x145120)=>{if(_0x145120)for(const _0x1d04b7 of _0x445deb[_0x6cfa('0xd')]['items']){const _0x54f439=_0x1d04b7[_0x6cfa('0x2')][_0x6cfa('0x6')],_0x200ca9=_0x281acd[_0x6cfa('0x15')](_0x271b0c=>_0x271b0c[_0x6cfa('0xf')]===_0x54f439[_0x6cfa('0x9')])[_0x6cfa('0xb')];_0x1d04b7['isVisible']=void 0x0===_0x200ca9||_0x200ca9(_0x12213f);}}),_0x445deb;}
23
+ const _0x2184=['buttonView','Compare\x20against\x20selected','locale','children','class','Name\x20this\x20revision','isReady','extendTemplate','listenTo','_action','source','set','listView','isEnabled','Show\x20more\x20items','isActionsDropdownOpen','find','name','button','change:isActionsDropdownOpen','add','stopPropagation','first','bind','isVisible','panelPosition','items','bindTemplate','ck-on','function','action'];(function(_0x595473,_0x218429){const _0x1981ff=function(_0x553d38){while(--_0x553d38){_0x595473['push'](_0x595473['shift']());}};_0x1981ff(++_0x218429);}(_0x2184,0x1db));const _0x1981=function(_0x595473,_0x218429){_0x595473=_0x595473-0x0;let _0x1981ff=_0x2184[_0x595473];return _0x1981ff;};import{Collection as _0xc49d42}from'ckeditor5/src/utils';import{icons as _0x1c91df}from'ckeditor5/src/core';import{Model as _0x5e790a,addListToDropdown as _0x102008,createDropdown as _0x2df76e}from'ckeditor5/src/ui';import{getTranslation as _0x5d5537}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x283458,_0x40be32){const _0x2f53ae=_0x283458[_0x1981('0x11')],_0x376bd5=_0x283458[_0x1981('0x17')],_0x2e3a6b=_0x2df76e(_0x376bd5);_0x2e3a6b[_0x1981('0xf')]='sw';const _0xfc9c84=function(_0x9e26de,_0x429816){const _0x11c485=function(_0x2e599d,_0x1b2120){const _0x3cdc9d=_0x2e599d[_0x1981('0x17')],_0x3f9e13={'Compare\x20against\x20selected':_0x5d5537(_0x3cdc9d,_0x1981('0x16')),'Name\x20this\x20revision':_0x5d5537(_0x3cdc9d,_0x1981('0x1a')),'Restore\x20this\x20revision':_0x5d5537(_0x3cdc9d,'Restore\x20this\x20revision')};return _0x1b2120['map'](_0xcc7d3f=>{const _0x5f23dd=_0x3f9e13[_0xcc7d3f[_0x1981('0x7')]];return _0x5f23dd&&_0x5f23dd!==_0xcc7d3f[_0x1981('0x7')]&&(_0xcc7d3f[_0x1981('0x7')]=_0x5f23dd),_0xcc7d3f;});}(_0x9e26de,_0x429816),_0x1d7fa3=new _0xc49d42();for(const _0x1ec0e8 of _0x11c485){const _0x371376={'type':_0x1981('0x8'),'model':new _0x5e790a({'label':_0x1ec0e8['name'],'class':_0x1ec0e8[_0x1981('0x19')],'withText':!0x0,'_action':_0x1ec0e8[_0x1981('0x14')]})};_0x371376['model'][_0x1981('0xd')](_0x1981('0x3'))['to'](_0x9e26de,_0x1981('0x5'),_0x3ecf65=>_0x1981('0x13')!=typeof _0x1ec0e8['isEnabled']||(!_0x3ecf65||_0x1ec0e8['isEnabled'](_0x9e26de))),_0x1d7fa3[_0x1981('0xa')](_0x371376);}return _0x1d7fa3;}(_0x283458,_0x40be32);return _0x283458[_0x1981('0xd')](_0x1981('0x5'))['to'](_0x2e3a6b,'isOpen'),_0x2e3a6b[_0x1981('0x15')][_0x1981('0x1')]({'label':_0x5d5537(_0x376bd5,_0x1981('0x4')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1c91df['threeVerticalDots']}),_0x2e3a6b[_0x1981('0x1c')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2f53ae['if'](_0x1981('0x5'),_0x1981('0x12'))]},'on':{'click':_0x2f53ae['to'](_0x1d9f8=>_0x1d9f8[_0x1981('0xb')]())}}),_0x2e3a6b['on']('execute',_0x54c99e=>{_0x283458[_0x1981('0x1b')]&&_0x1981('0x13')==typeof _0x54c99e[_0x1981('0x0')][_0x1981('0x1e')]&&_0x54c99e[_0x1981('0x0')][_0x1981('0x1e')](_0x283458);}),_0x102008(_0x2e3a6b,_0xfc9c84),_0x2e3a6b[_0x1981('0x1d')](_0x283458,_0x1981('0x9'),(_0x3135e4,_0x4b052c,_0x3f6a86)=>{if(_0x3f6a86)for(const _0x5bc647 of _0x2e3a6b[_0x1981('0x2')][_0x1981('0x10')]){const _0x417b02=_0x5bc647[_0x1981('0x18')][_0x1981('0xc')],_0x1109a9=_0x40be32[_0x1981('0x6')](_0x11945c=>_0x11945c['action']===_0x417b02[_0x1981('0x1e')])[_0x1981('0xe')];_0x5bc647[_0x1981('0xe')]=void 0x0===_0x1109a9||_0x1109a9(_0x283458);}}),_0x2e3a6b;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfd41=['ck-revision-history-sidebar__revision-author','set','setTemplate','ck-revision-history-sidebar__revision-author__name','0\x200\x2011\x2010','Revision\x20author','push','Revision\x20creator','ck-revision-history-sidebar__revision-author_creator','name'];(function(_0x574240,_0xfd4135){const _0x37dd51=function(_0x29eafc){while(--_0x29eafc){_0x574240['push'](_0x574240['shift']());}};_0x37dd51(++_0xfd4135);}(_0xfd41,0x1d2));const _0x37dd=function(_0x574240,_0xfd4135){_0x574240=_0x574240-0x0;let _0x37dd51=_0xfd41[_0x574240];return _0x37dd51;};import{View as _0x7d8538,IconView as _0x3d10c4}from'ckeditor5/src/ui';import{getTranslation as _0x2e46fb}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4f948e from'../../../theme/icons/user.svg';export default class ti extends _0x7d8538{constructor(_0x52411f,_0xd92af8,_0x5547c1){super(_0x52411f);const _0x2faac4=new _0x3d10c4();_0x2faac4[_0x37dd('0x5')]({'content':_0x4f948e,'viewBox':_0x37dd('0x8')});const _0x461d27=['ck',_0x37dd('0x4')];_0x5547c1&&_0x461d27[_0x37dd('0x0')](_0x37dd('0x2'));const _0x1f54b1=[{'tag':'span','attributes':{'class':['ck',_0x37dd('0x7')],'title':_0x2e46fb(_0x52411f,_0x5547c1?_0x37dd('0x1'):_0x37dd('0x9'))},'children':[_0x2faac4,_0xd92af8[_0x37dd('0x3')]]}];this[_0x37dd('0x6')]({'tag':'li','attributes':{'class':_0x461d27},'children':_0x1f54b1});}}
23
+ const _0x3c32=['push','ck-revision-history-sidebar__revision-author__name','Revision\x20author','span','ck-revision-history-sidebar__revision-author','name','0\x200\x2011\x2010','setTemplate','Revision\x20creator'];(function(_0x5db984,_0x3c32ee){const _0x53410c=function(_0x2af928){while(--_0x2af928){_0x5db984['push'](_0x5db984['shift']());}};_0x53410c(++_0x3c32ee);}(_0x3c32,0x1ee));const _0x5341=function(_0x5db984,_0x3c32ee){_0x5db984=_0x5db984-0x0;let _0x53410c=_0x3c32[_0x5db984];return _0x53410c;};import{View as _0x3f565a,IconView as _0x23381d}from'ckeditor5/src/ui';import{getTranslation as _0x3e2271}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x47cba8 from'../../../theme/icons/user.svg';export default class ti extends _0x3f565a{constructor(_0x2b98ec,_0xae2758,_0x30d4bd){super(_0x2b98ec);const _0x55661f=new _0x23381d();_0x55661f['set']({'content':_0x47cba8,'viewBox':_0x5341('0x7')});const _0x39da23=['ck',_0x5341('0x5')];_0x30d4bd&&_0x39da23[_0x5341('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x34a835=[{'tag':_0x5341('0x4'),'attributes':{'class':['ck',_0x5341('0x2')],'title':_0x3e2271(_0x2b98ec,_0x30d4bd?_0x5341('0x0'):_0x5341('0x3'))},'children':[_0x55661f,_0xae2758[_0x5341('0x6')]]}];this[_0x5341('0x8')]({'tag':'li','attributes':{'class':_0x39da23},'children':_0x34a835});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x539a=['set','extendTemplate','Revision\x20name'];(function(_0xcefdaf,_0x539a78){var _0x44792e=function(_0x4bab69){while(--_0x4bab69){_0xcefdaf['push'](_0xcefdaf['shift']());}};_0x44792e(++_0x539a78);}(_0x539a,0x9a));var _0x4479=function(_0xcefdaf,_0x539a78){_0xcefdaf=_0xcefdaf-0x0;var _0x44792e=_0x539a[_0xcefdaf];return _0x44792e;};import{LabeledFieldView as _0x5986ab}from'ckeditor5/src/ui';import{getTranslation as _0x5d8b26}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x5986ab{constructor(_0x117312,_0x22b625){super(_0x117312,_0x22b625),this[_0x4479('0x2')]({'label':_0x5d8b26(_0x117312,_0x4479('0x1'))}),this[_0x4479('0x0')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x2980=['ck-revision-history-sidebar__revision-name','span','set','Revision\x20name'];(function(_0x4d945f,_0x2980d1){var _0x6f1c2=function(_0x42e0b9){while(--_0x42e0b9){_0x4d945f['push'](_0x4d945f['shift']());}};_0x6f1c2(++_0x2980d1);}(_0x2980,0x1aa));var _0x6f1c=function(_0x4d945f,_0x2980d1){_0x4d945f=_0x4d945f-0x0;var _0x6f1c2=_0x2980[_0x4d945f];return _0x6f1c2;};import{LabeledFieldView as _0x593001}from'ckeditor5/src/ui';import{getTranslation as _0x41fa6f}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x593001{constructor(_0x53e46b,_0x3b8868){super(_0x53e46b,_0x3b8868),this[_0x6f1c('0x0')]({'label':_0x41fa6f(_0x53e46b,_0x6f1c('0x1'))}),this['extendTemplate']({'tag':_0x6f1c('0x3'),'attributes':{'class':[_0x6f1c('0x2')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5756=['placeholder','span','authors','isSelected','element','setTemplate','_createdAtFormatted','ck-revision-history-sidebar__revision__date','highlight','listenTo','ck-disabled','bindTemplate','value','isEnabled','creator','isReady','ck-revision-history-sidebar__actions_dropdown_open','createdAt','revisionActionsView','isHighlighted','set','ck-revision-history-sidebar__revision-wrapper','fire','ck-revision-history-sidebar__revision_highlighted','render','name','filter','ck-revision-history-sidebar__revision__controls-wrapper','ck-reset','from','fieldView','deselect','ck-revision-history-sidebar__revision_selected','length','select','srcElement','220','div','unhighlight','change','setName','bind','.ck-thread__remove-confirm','revisionNameView'];(function(_0x1e9734,_0x5756fe){const _0x22616a=function(_0x2a4c61){while(--_0x2a4c61){_0x1e9734['push'](_0x1e9734['shift']());}};_0x22616a(++_0x5756fe);}(_0x5756,0xe4));const _0x2261=function(_0x1e9734,_0x5756fe){_0x1e9734=_0x1e9734-0x0;let _0x22616a=_0x5756[_0x1e9734];return _0x22616a;};import{View as _0x354925,createLabeledInputText as _0x27d0a3}from'ckeditor5/src/ui';import{ConfirmMixin as _0xcccd00}from'ckeditor5-collaboration/src/collaboration-core';import _0x12da7e from'./revisionnameview';import _0x1c2dac from'./revisionauthorview';import{dateToPrettyFormat as _0x577a00}from'./utils';import{createActionsDropdownView as _0xd6c11e}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0xcccd00(_0x354925){constructor(_0xf0e643,_0x192dd2,_0x32a636){super(_0xf0e643);const _0x25522a=this[_0x2261('0x3')],_0x534bf5=function(_0x4d5973,_0x38c327){const _0x39b160=Array[_0x2261('0x15')](_0x38c327[_0x2261('0x26')])[_0x2261('0x12')](_0x5d8c90=>_0x5d8c90!=_0x38c327[_0x2261('0x6')]);return _0x38c327['creator']&&_0x39b160['unshift'](_0x38c327['creator']),_0x39b160['map'](_0x103423=>new _0x1c2dac(_0x4d5973,_0x103423,_0x103423==_0x38c327[_0x2261('0x6')]));}(_0xf0e643,_0x192dd2);this['id']=_0x192dd2['id'],this['_revision']=_0x192dd2,this[_0x2261('0x21')](_0x2261('0x11'),_0x2261('0x9'))['to'](_0x192dd2),this['bind'](_0x2261('0x2a'))['to'](this,_0x2261('0x9'),_0x54e283=>_0x54e283?_0x577a00(_0xf0e643['uiLanguage'],_0x54e283):void 0x0),this[_0x2261('0xc')](_0x2261('0x27'),!0x1),this[_0x2261('0xc')](_0x2261('0xb'),!0x1),this[_0x2261('0xc')]('isActionsDropdownOpen',!0x1),this[_0x2261('0xc')](_0x2261('0x7'),!0x1),this[_0x2261('0xc')](_0x2261('0x5'),!0x1),this['revisionNameView']=new _0x12da7e(_0xf0e643,_0x27d0a3),this[_0x2261('0x23')][_0x2261('0x16')]['extendTemplate']({'attributes':{'maxlength':_0x2261('0x1c')}}),this['revisionNameView'][_0x2261('0x16')][_0x2261('0x21')](_0x2261('0x4'),_0x2261('0x24'))['to'](this,_0x2261('0x11'),_0x2261('0x2a')),this[_0x2261('0x23')][_0x2261('0x21')]('isEnabled')['to'](this,_0x2261('0x27'),this,_0x2261('0x5'),(_0x2a06f6,_0x4ce227)=>_0x2a06f6&&_0x4ce227),this[_0x2261('0xa')]=_0x32a636&&_0x32a636[_0x2261('0x19')]?_0xd6c11e(this,_0x32a636):'',this['revisionActionsView']&&this[_0x2261('0xa')][_0x2261('0x21')](_0x2261('0x5'))['to'](this),this[_0x2261('0x29')]({'tag':_0x2261('0x1d'),'attributes':{'class':['ck','ck-reset',_0x2261('0xd'),_0x25522a['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x2261('0x1d'),'attributes':{'class':['ck',_0x2261('0x14'),'ck-revision-history-sidebar__revision',_0x25522a['if'](_0x2261('0x5'),_0x2261('0x2'),_0x1173a5=>!_0x1173a5),_0x25522a['if'](_0x2261('0x27'),_0x2261('0x18')),_0x25522a['if'](_0x2261('0xb'),_0x2261('0xf')),_0x25522a['if']('isActionsDropdownOpen',_0x2261('0x8'))]},'children':[this[_0x2261('0x23')],{'tag':_0x2261('0x25'),'attributes':{'class':['ck',_0x2261('0x2b')]},'children':[{'text':_0x25522a['to'](_0x2261('0x2a'))}]},{'tag':'div','attributes':{'class':['ck',_0x2261('0x13')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x534bf5}]},this[_0x2261('0xa')]],'on':{'click':_0x25522a['to'](_0x2e855d=>{_0x2e855d[_0x2261('0x1b')]['closest'](_0x2261('0x22'))||this[_0x2261('0x7')]&&this[_0x2261('0x5')]&&this[_0x2261('0xe')](_0x2261('0x1a'),{'id':this['id']});})}}]});}['render'](){super[_0x2261('0x10')]();const _0x14b6e5=this[_0x2261('0x23')][_0x2261('0x16')][_0x2261('0x28')];this[_0x2261('0x1')](_0x14b6e5,_0x2261('0x1f'),()=>{this['fire'](_0x2261('0x20'),{'id':this['id'],'name':_0x14b6e5['value']});});}['select'](){this[_0x2261('0x27')]=!0x0;}[_0x2261('0x17')](){this[_0x2261('0x27')]=!0x1;}[_0x2261('0x0')](){this[_0x2261('0xb')]=!0x0;}[_0x2261('0x1e')](){this[_0x2261('0xb')]=!0x1;}}
23
+ const _0xc095=['listenTo','_createdAtFormatted','ck-revision-history-sidebar__actions_dropdown_open','span','ck-revision-history-sidebar__revision_selected','from','closest','authors','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','div','unshift','map','isConfirm','name','uiLanguage','isEnabled','change','_revision','element','length','fieldView','createdAt','set','revisionActionsView','ck-disabled','deselect','srcElement','fire','isSelected','.ck-thread__remove-confirm','isHighlighted','ck-revision-history-sidebar__revision__controls-wrapper','isReady','unhighlight','creator','revisionNameView','ck-revision-history-sidebar__revision-authors','filter','isActionsDropdownOpen','highlight','ck-reset','select','value','ck-revision-history-sidebar__revision__date','bind','bindTemplate','setTemplate','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision_highlighted'];(function(_0x44f4a3,_0xc095ce){const _0x55f499=function(_0x10ed5b){while(--_0x10ed5b){_0x44f4a3['push'](_0x44f4a3['shift']());}};_0x55f499(++_0xc095ce);}(_0xc095,0x185));const _0x55f4=function(_0x44f4a3,_0xc095ce){_0x44f4a3=_0x44f4a3-0x0;let _0x55f499=_0xc095[_0x44f4a3];return _0x55f499;};import{View as _0x16fb83,createLabeledInputText as _0x3681e9}from'ckeditor5/src/ui';import{ConfirmMixin as _0x5163ff}from'ckeditor5-collaboration/src/collaboration-core';import _0xfe269c from'./revisionnameview';import _0x22ee94 from'./revisionauthorview';import{dateToPrettyFormat as _0x25d2ad}from'./utils';import{createActionsDropdownView as _0x3c396b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x5163ff(_0x16fb83){constructor(_0x35cb23,_0x5eba1b,_0x3378e9){super(_0x35cb23);const _0x6210a7=this[_0x55f4('0x30')],_0x4d6ee7=function(_0x3a0f62,_0x3054bd){const _0x204481=Array[_0x55f4('0x8')](_0x3054bd[_0x55f4('0xa')])[_0x55f4('0x28')](_0x187d14=>_0x187d14!=_0x3054bd[_0x55f4('0x25')]);return _0x3054bd[_0x55f4('0x25')]&&_0x204481[_0x55f4('0xd')](_0x3054bd[_0x55f4('0x25')]),_0x204481[_0x55f4('0xe')](_0x191f1b=>new _0x22ee94(_0x3a0f62,_0x191f1b,_0x191f1b==_0x3054bd[_0x55f4('0x25')]));}(_0x35cb23,_0x5eba1b);this['id']=_0x5eba1b['id'],this[_0x55f4('0x14')]=_0x5eba1b,this['bind'](_0x55f4('0x10'),_0x55f4('0x18'))['to'](_0x5eba1b),this[_0x55f4('0x2f')](_0x55f4('0x4'))['to'](this,_0x55f4('0x18'),_0x10ff9b=>_0x10ff9b?_0x25d2ad(_0x35cb23[_0x55f4('0x11')],_0x10ff9b):void 0x0),this['set'](_0x55f4('0x1f'),!0x1),this[_0x55f4('0x19')]('isHighlighted',!0x1),this[_0x55f4('0x19')](_0x55f4('0x29'),!0x1),this[_0x55f4('0x19')](_0x55f4('0x23'),!0x1),this[_0x55f4('0x19')](_0x55f4('0x12'),!0x1),this['revisionNameView']=new _0xfe269c(_0x35cb23,_0x3681e9),this[_0x55f4('0x26')][_0x55f4('0x17')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x55f4('0x26')]['fieldView'][_0x55f4('0x2f')](_0x55f4('0x2d'),'placeholder')['to'](this,'name',_0x55f4('0x4')),this['revisionNameView'][_0x55f4('0x2f')](_0x55f4('0x12'))['to'](this,_0x55f4('0x1f'),this,_0x55f4('0x12'),(_0x5d3dab,_0x548e41)=>_0x5d3dab&&_0x548e41),this[_0x55f4('0x1a')]=_0x3378e9&&_0x3378e9[_0x55f4('0x16')]?_0x3c396b(this,_0x3378e9):'',this[_0x55f4('0x1a')]&&this[_0x55f4('0x1a')]['bind'](_0x55f4('0x12'))['to'](this),this[_0x55f4('0x0')]({'tag':'div','attributes':{'class':['ck',_0x55f4('0x2b'),_0x55f4('0x1'),_0x6210a7['if'](_0x55f4('0xf'),_0x55f4('0xb'))]},'children':[{'tag':_0x55f4('0xc'),'attributes':{'class':['ck',_0x55f4('0x2b'),'ck-revision-history-sidebar__revision',_0x6210a7['if'](_0x55f4('0x12'),_0x55f4('0x1b'),_0x305372=>!_0x305372),_0x6210a7['if'](_0x55f4('0x1f'),_0x55f4('0x7')),_0x6210a7['if'](_0x55f4('0x21'),_0x55f4('0x2')),_0x6210a7['if']('isActionsDropdownOpen',_0x55f4('0x5'))]},'children':[this['revisionNameView'],{'tag':_0x55f4('0x6'),'attributes':{'class':['ck',_0x55f4('0x2e')]},'children':[{'text':_0x6210a7['to'](_0x55f4('0x4'))}]},{'tag':'div','attributes':{'class':['ck',_0x55f4('0x22')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x55f4('0x27')]},'children':_0x4d6ee7}]},this[_0x55f4('0x1a')]],'on':{'click':_0x6210a7['to'](_0x44521b=>{_0x44521b[_0x55f4('0x1d')][_0x55f4('0x9')](_0x55f4('0x20'))||this[_0x55f4('0x23')]&&this[_0x55f4('0x12')]&&this['fire'](_0x55f4('0x2c'),{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1fd00e=this['revisionNameView']['fieldView'][_0x55f4('0x15')];this[_0x55f4('0x3')](_0x1fd00e,_0x55f4('0x13'),()=>{this[_0x55f4('0x1e')]('setName',{'id':this['id'],'name':_0x1fd00e[_0x55f4('0x2d')]});});}[_0x55f4('0x2c')](){this[_0x55f4('0x1f')]=!0x0;}[_0x55f4('0x1c')](){this[_0x55f4('0x1f')]=!0x1;}[_0x55f4('0x2a')](){this[_0x55f4('0x21')]=!0x0;}[_0x55f4('0x24')](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x246f=['isVisible','click','set','ck-revision-history-sidebar__subrevision-collapser','true','ck-revision-history-sidebar__subrevision-collapser__inner','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','bindTemplate','span','_isCollapsed'];(function(_0x42a543,_0x246f37){const _0x24fce4=function(_0x1871f6){while(--_0x1871f6){_0x42a543['push'](_0x42a543['shift']());}};_0x24fce4(++_0x246f37);}(_0x246f,0x17c));const _0x24fc=function(_0x42a543,_0x246f37){_0x42a543=_0x42a543-0x0;let _0x24fce4=_0x246f[_0x42a543];return _0x24fce4;};import{View as _0x1ee2ee}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x1ee2ee{constructor(_0x448776){super(_0x448776);const _0x214528=this[_0x24fc('0x2')];this[_0x24fc('0x7')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x24fc('0x3'),'attributes':{'class':['ck',_0x24fc('0x8'),_0x214528['if'](_0x24fc('0x5'),'ck-hidden',_0x36fe67=>!_0x36fe67),_0x214528['if'](_0x24fc('0x4'),_0x24fc('0x1'))],'role':'button','aria-pressed':_0x214528['to'](_0x24fc('0x4'),_0x2f415b=>_0x2f415b?_0x24fc('0x0'):_0x24fc('0x9'))},'children':[{'tag':_0x24fc('0x3'),'attributes':{'class':['ck',_0x24fc('0xa')]}}],'on':{'click':_0x214528['to'](_0x24fc('0x6'))}});}['toggle'](){this[_0x24fc('0x4')]=!this[_0x24fc('0x4')];}}
23
+ const _0x1c95=['button','ck-revision-history-sidebar__subrevision-collapser__inner','toggle','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','isVisible','ck-revision-history-sidebar__subrevision-collapser','click','ck-hidden','bindTemplate','span','set','true','_isCollapsed'];(function(_0x563a3a,_0x1c9511){const _0x47a8f2=function(_0x1683e6){while(--_0x1683e6){_0x563a3a['push'](_0x563a3a['shift']());}};_0x47a8f2(++_0x1c9511);}(_0x1c95,0x1ce));const _0x47a8=function(_0x563a3a,_0x1c9511){_0x563a3a=_0x563a3a-0x0;let _0x47a8f2=_0x1c95[_0x563a3a];return _0x47a8f2;};import{View as _0x32fc5e}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x32fc5e{constructor(_0x48e575){super(_0x48e575);const _0x489117=this[_0x47a8('0x9')];this[_0x47a8('0xb')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x47a8('0x4')]({'tag':_0x47a8('0xa'),'attributes':{'class':['ck',_0x47a8('0x6'),_0x489117['if'](_0x47a8('0x5'),_0x47a8('0x8'),_0x3f6b39=>!_0x3f6b39),_0x489117['if']('_isCollapsed',_0x47a8('0x3'))],'role':_0x47a8('0x0'),'aria-pressed':_0x489117['to'](_0x47a8('0xd'),_0x2568d0=>_0x2568d0?'false':_0x47a8('0xc'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x47a8('0x1')]}}],'on':{'click':_0x489117['to'](_0x47a8('0x7'))}});}[_0x47a8('0x2')](){this['_isCollapsed']=!this[_0x47a8('0xd')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1688=['ck-revision-history-sidebar__revision','isSelected','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision-authors','fire','setTemplate','bindTemplate','span','creator','ck-revision-history-sidebar__subrevision','_parentRevisionId','set','ck-revision-history-sidebar__revision_selected','deselect','select','bind','ck-reset','_createdAtFormatted','div','createdAt'];(function(_0x266ebf,_0x168894){const _0x3feef6=function(_0x4a3beb){while(--_0x4a3beb){_0x266ebf['push'](_0x266ebf['shift']());}};_0x3feef6(++_0x168894);}(_0x1688,0x105));const _0x3fee=function(_0x266ebf,_0x168894){_0x266ebf=_0x266ebf-0x0;let _0x3feef6=_0x1688[_0x266ebf];return _0x3feef6;};import{View as _0x131658}from'ckeditor5/src/ui';import _0x3d5261 from'./revisionauthorview';import{dateToPrettyFormat as _0x428835}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x131658{constructor(_0x511948,_0x5af774,_0x3e223c){super(_0x511948);const _0x2b7790=this[_0x3fee('0x5')];this['id']=_0x5af774['id'],this[_0x3fee('0xe')](_0x3fee('0x12'))['to'](_0x5af774),this[_0x3fee('0xa')]('isSelected',!0x1),this[_0x3fee('0xe')](_0x3fee('0x10'))['to'](this,_0x3fee('0x12'),_0x21d277=>_0x21d277?_0x428835(_0x511948['uiLanguage'],_0x21d277):void 0x0),this[_0x3fee('0x9')]=_0x3e223c,this[_0x3fee('0x4')]({'tag':_0x3fee('0x11'),'attributes':{'class':['ck',_0x3fee('0xf'),_0x3fee('0x13'),_0x3fee('0x8'),_0x2b7790['if'](_0x3fee('0x0'),_0x3fee('0xb'))]},'children':[{'tag':_0x3fee('0x6'),'attributes':{'class':['ck',_0x3fee('0x1')]},'children':[{'text':_0x2b7790['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x3fee('0x2')]},'children':[new _0x3d5261(_0x511948,_0x5af774[_0x3fee('0x7')],!0x0)]}],'on':{'click':_0x2b7790['to'](this[_0x3fee('0xd')][_0x3fee('0xe')](this))}});}[_0x3fee('0xd')](){this[_0x3fee('0x0')]=!0x0,this[_0x3fee('0x3')](_0x3fee('0xd'),{'parentId':this['_parentRevisionId']});}[_0x3fee('0xc')](){this[_0x3fee('0x0')]=!0x1;}}
23
+ const _0x326e=['select','creator','setTemplate','bind','deselect','ck-revision-history-sidebar__revision_selected','div','ck-revision-history-sidebar__revision-authors','uiLanguage','_createdAtFormatted','bindTemplate','_parentRevisionId','createdAt','fire','isSelected','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision'];(function(_0x4c7c61,_0x326e71){const _0x81be11=function(_0x183f3a){while(--_0x183f3a){_0x4c7c61['push'](_0x4c7c61['shift']());}};_0x81be11(++_0x326e71);}(_0x326e,0x1a5));const _0x81be=function(_0x4c7c61,_0x326e71){_0x4c7c61=_0x4c7c61-0x0;let _0x81be11=_0x326e[_0x4c7c61];return _0x81be11;};import{View as _0x2583dc}from'ckeditor5/src/ui';import _0x5c212e from'./revisionauthorview';import{dateToPrettyFormat as _0x5b7fb1}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2583dc{constructor(_0x2c26b6,_0x37308b,_0x172158){super(_0x2c26b6);const _0x5c7343=this[_0x81be('0x3')];this['id']=_0x37308b['id'],this['bind']('createdAt')['to'](_0x37308b),this['set'](_0x81be('0x7'),!0x1),this[_0x81be('0xe')](_0x81be('0x2'))['to'](this,_0x81be('0x5'),_0x208c90=>_0x208c90?_0x5b7fb1(_0x2c26b6[_0x81be('0x1')],_0x208c90):void 0x0),this[_0x81be('0x4')]=_0x172158,this[_0x81be('0xd')]({'tag':_0x81be('0x11'),'attributes':{'class':['ck','ck-reset',_0x81be('0x9'),_0x81be('0xa'),_0x5c7343['if']('isSelected',_0x81be('0x10'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x81be('0x8')]},'children':[{'text':_0x5c7343['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x81be('0x0')]},'children':[new _0x5c212e(_0x2c26b6,_0x37308b[_0x81be('0xc')],!0x0)]}],'on':{'click':_0x5c7343['to'](this['select']['bind'](this))}});}[_0x81be('0xb')](){this[_0x81be('0x7')]=!0x0,this[_0x81be('0x6')]('select',{'parentId':this[_0x81be('0x4')]});}[_0x81be('0xf')](){this[_0x81be('0x7')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x24f2=['toLocaleTimeString','numeric','long'];(function(_0x2c237b,_0x24f255){var _0x12c3d4=function(_0x5971dd){while(--_0x5971dd){_0x2c237b['push'](_0x2c237b['shift']());}};_0x12c3d4(++_0x24f255);}(_0x24f2,0x11d));var _0x12c3=function(_0x2c237b,_0x24f255){_0x2c237b=_0x2c237b-0x0;var _0x12c3d4=_0x24f2[_0x2c237b];return _0x12c3d4;};export function dateToPrettyFormat(_0x3c5331,_0x4c5439){return _0x4c5439['toLocaleDateString'](_0x3c5331,{'month':_0x12c3('0x2'),'day':_0x12c3('0x1')})+',\x20'+_0x4c5439[_0x12c3('0x0')](_0x3c5331,{'hour':_0x12c3('0x1'),'minute':'numeric'});}
23
+ var _0x2fee=['numeric','long','toLocaleDateString','toLocaleTimeString'];(function(_0x32d5ea,_0x2fee33){var _0x54df88=function(_0x891e07){while(--_0x891e07){_0x32d5ea['push'](_0x32d5ea['shift']());}};_0x54df88(++_0x2fee33);}(_0x2fee,0x139));var _0x54df=function(_0x32d5ea,_0x2fee33){_0x32d5ea=_0x32d5ea-0x0;var _0x54df88=_0x2fee[_0x32d5ea];return _0x54df88;};export function dateToPrettyFormat(_0xf27c96,_0x92db07){return _0x92db07[_0x54df('0x1')](_0xf27c96,{'month':_0x54df('0x0'),'day':_0x54df('0x3')})+',\x20'+_0x92db07[_0x54df('0x2')](_0xf27c96,{'hour':'numeric','minute':_0x54df('0x3')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14e3=['saveButtonView','set','keystrokes','value','ck-button-cancel','input','revisionName','check','_focusables','forEach','focusTracker','_createRevisionNameInput','listenTo','_createButton','extendTemplate','submit','cancel','ck-responsive-form','setTemplate','label','stopPropagation','cancelButtonView','ck-revision-history-save-revision-form','delegate','locale','revisionNameInputValue','focusFirst','focus','arrowright','element','arrowleft','reset','220','fieldView','Name\x20of\x20the\x20revision\x20(optional)','arrowdown','render','add','_focusCycler','ck-button-save','trim','Save','revisionNameInputView','shift\x20+\x20tab'];(function(_0x5e4c38,_0x14e3e0){const _0x1573a4=function(_0x27c16e){while(--_0x27c16e){_0x5e4c38['push'](_0x5e4c38['shift']());}};_0x1573a4(++_0x14e3e0);}(_0x14e3,0x1f0));const _0x1573=function(_0x5e4c38,_0x14e3e0){_0x5e4c38=_0x5e4c38-0x0;let _0x1573a4=_0x14e3[_0x5e4c38];return _0x1573a4;};import{icons as _0x378c68}from'ckeditor5/src/core';import{ButtonView as _0x486251,FocusCycler as _0x37aaa3,LabeledFieldView as _0x16c778,View as _0x456ca1,ViewCollection as _0x3779b6,createLabeledInputText as _0x5c6e5f,injectCssTransitionDisabler as _0x778721,submitHandler as _0x4cb499}from'ckeditor5/src/ui';import{FocusTracker as _0x10e4d7,KeystrokeHandler as _0x5f510a}from'ckeditor5/src/utils';import{getTranslation as _0x70fc08}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x456ca1{constructor(_0x16d307){super(_0x16d307),this[_0x1573('0x2a')]=new _0x10e4d7(),this['keystrokes']=new _0x5f510a(),this[_0x1573('0x21')](_0x1573('0xd'),''),this[_0x1573('0x1e')]=this['_createRevisionNameInput'](),this['saveButtonView']=this[_0x1573('0x1')](_0x70fc08(_0x16d307,_0x1573('0x1d')),_0x378c68[_0x1573('0x27')],_0x1573('0x1b')),this[_0x1573('0x20')]['type']=_0x1573('0x3'),this[_0x1573('0x9')]=this['_createButton'](_0x70fc08(_0x16d307,'Cancel'),_0x378c68[_0x1573('0x4')],_0x1573('0x24'),_0x1573('0x4')),this[_0x1573('0x28')]=new _0x3779b6(),this[_0x1573('0x1a')]=new _0x37aaa3({'focusables':this[_0x1573('0x28')],'focusTracker':this[_0x1573('0x2a')],'keystrokeHandler':this[_0x1573('0x22')],'actions':{'focusPrevious':_0x1573('0x1f'),'focusNext':'tab'}}),this[_0x1573('0x6')]({'tag':'form','attributes':{'class':['ck',_0x1573('0xa'),_0x1573('0x5')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x1573('0x20')],this[_0x1573('0x9')]]}),_0x778721(this);}[_0x1573('0x18')](){super[_0x1573('0x18')](),_0x4cb499({'view':this}),([this['revisionNameInputView'],this[_0x1573('0x20')],this[_0x1573('0x9')]][_0x1573('0x29')](_0x3f5f17=>{this[_0x1573('0x28')][_0x1573('0x19')](_0x3f5f17),this[_0x1573('0x2a')]['add'](_0x3f5f17[_0x1573('0x11')]);}),this[_0x1573('0x22')][_0x1573('0x0')](this[_0x1573('0x11')]));const _0x2b4857=_0x144308=>_0x144308[_0x1573('0x8')]();this[_0x1573('0x22')][_0x1573('0x21')](_0x1573('0x10'),_0x2b4857),this[_0x1573('0x22')]['set'](_0x1573('0x12'),_0x2b4857),this[_0x1573('0x22')]['set']('arrowup',_0x2b4857),this['keystrokes'][_0x1573('0x21')](_0x1573('0x17'),_0x2b4857);}[_0x1573('0xf')](){this['_focusCycler'][_0x1573('0xe')]();}get[_0x1573('0x26')](){return this['revisionNameInputView'][_0x1573('0x15')][_0x1573('0x11')]['value']['trim']();}set[_0x1573('0x26')](_0x307916){this[_0x1573('0x1e')][_0x1573('0x15')][_0x1573('0x11')][_0x1573('0x23')]=_0x307916[_0x1573('0x1c')]();}[_0x1573('0x13')](){this[_0x1573('0x1e')][_0x1573('0x15')][_0x1573('0x11')]['value']='';}[_0x1573('0x2b')](){const _0x3b6472=new _0x16c778(this[_0x1573('0xc')],_0x5c6e5f),_0x3eec39=_0x3b6472[_0x1573('0x15')];return _0x3eec39[_0x1573('0x2')]({'attributes':{'maxlength':_0x1573('0x14')}}),_0x3b6472[_0x1573('0x7')]=_0x70fc08(this[_0x1573('0xc')],_0x1573('0x16')),_0x3eec39['on'](_0x1573('0x25'),()=>{this['revisionNameInputValue']=_0x3eec39['element']['value']['trim']();}),_0x3b6472;}[_0x1573('0x1')](_0x3790e8,_0x18ea73,_0x4bc280,_0x10e963){const _0x289fdb=new _0x486251(this[_0x1573('0xc')]);return _0x289fdb[_0x1573('0x21')]({'label':_0x3790e8,'icon':_0x18ea73,'tooltip':!0x0}),_0x289fdb['extendTemplate']({'attributes':{'class':_0x4bc280}}),_0x10e963&&_0x289fdb[_0x1573('0xb')]('execute')['to'](this,_0x10e963),_0x289fdb;}}
23
+ const _0x38f8=['value','revisionNameInputValue','arrowdown','delegate','reset','tab','arrowright','extendTemplate','cancelButtonView','submit','ck-responsive-form','_focusCycler','render','keystrokes','add','fieldView','input','focusTracker','trim','set','saveButtonView','stopPropagation','Save','type','focusFirst','listenTo','focus','element','arrowleft','revisionNameInputView','arrowup','220','forEach','form','cancel','Cancel','shift\x20+\x20tab','_createRevisionNameInput','_createButton','locale','_focusables','revisionName'];(function(_0x2f173b,_0x38f88f){const _0x3060f9=function(_0x276b10){while(--_0x276b10){_0x2f173b['push'](_0x2f173b['shift']());}};_0x3060f9(++_0x38f88f);}(_0x38f8,0x129));const _0x3060=function(_0x2f173b,_0x38f88f){_0x2f173b=_0x2f173b-0x0;let _0x3060f9=_0x38f8[_0x2f173b];return _0x3060f9;};import{icons as _0x4f9cbc}from'ckeditor5/src/core';import{ButtonView as _0x20f421,FocusCycler as _0x32d891,LabeledFieldView as _0xe5c541,View as _0x2fa817,ViewCollection as _0x5934df,createLabeledInputText as _0x55b4cd,injectCssTransitionDisabler as _0x44c32f,submitHandler as _0xf93fa2}from'ckeditor5/src/ui';import{FocusTracker as _0x55e30b,KeystrokeHandler as _0x4610c6}from'ckeditor5/src/utils';import{getTranslation as _0x240433}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x2fa817{constructor(_0x3d7880){super(_0x3d7880),this[_0x3060('0xe')]=new _0x55e30b(),this['keystrokes']=new _0x4610c6(),this[_0x3060('0x10')](_0x3060('0x28'),''),this[_0x3060('0x1a')]=this[_0x3060('0x22')](),this['saveButtonView']=this[_0x3060('0x23')](_0x240433(_0x3d7880,_0x3060('0x13')),_0x4f9cbc['check'],'ck-button-save'),this[_0x3060('0x11')][_0x3060('0x14')]=_0x3060('0x6'),this[_0x3060('0x5')]=this[_0x3060('0x23')](_0x240433(_0x3d7880,_0x3060('0x20')),_0x4f9cbc['cancel'],'ck-button-cancel',_0x3060('0x1f')),this[_0x3060('0x25')]=new _0x5934df(),this['_focusCycler']=new _0x32d891({'focusables':this[_0x3060('0x25')],'focusTracker':this[_0x3060('0xe')],'keystrokeHandler':this[_0x3060('0xa')],'actions':{'focusPrevious':_0x3060('0x21'),'focusNext':_0x3060('0x2')}}),this['setTemplate']({'tag':_0x3060('0x1e'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x3060('0x7')],'tabindex':'-1'},'children':[this[_0x3060('0x1a')],this[_0x3060('0x11')],this[_0x3060('0x5')]]}),_0x44c32f(this);}[_0x3060('0x9')](){super[_0x3060('0x9')](),_0xf93fa2({'view':this}),([this[_0x3060('0x1a')],this[_0x3060('0x11')],this['cancelButtonView']][_0x3060('0x1d')](_0x579ddb=>{this[_0x3060('0x25')][_0x3060('0xb')](_0x579ddb),this['focusTracker'][_0x3060('0xb')](_0x579ddb['element']);}),this[_0x3060('0xa')][_0x3060('0x16')](this[_0x3060('0x18')]));const _0x3dcb99=_0x47fdec=>_0x47fdec[_0x3060('0x12')]();this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x3'),_0x3dcb99),this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x19'),_0x3dcb99),this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x1b'),_0x3dcb99),this[_0x3060('0xa')][_0x3060('0x10')](_0x3060('0x29'),_0x3dcb99);}[_0x3060('0x17')](){this[_0x3060('0x8')][_0x3060('0x15')]();}get[_0x3060('0x26')](){return this[_0x3060('0x1a')][_0x3060('0xc')][_0x3060('0x18')]['value']['trim']();}set[_0x3060('0x26')](_0x380950){this[_0x3060('0x1a')][_0x3060('0xc')][_0x3060('0x18')]['value']=_0x380950['trim']();}[_0x3060('0x1')](){this['revisionNameInputView'][_0x3060('0xc')]['element'][_0x3060('0x27')]='';}[_0x3060('0x22')](){const _0x1dd66b=new _0xe5c541(this[_0x3060('0x24')],_0x55b4cd),_0x491196=_0x1dd66b['fieldView'];return _0x491196[_0x3060('0x4')]({'attributes':{'maxlength':_0x3060('0x1c')}}),_0x1dd66b['label']=_0x240433(this[_0x3060('0x24')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x491196['on'](_0x3060('0xd'),()=>{this[_0x3060('0x28')]=_0x491196[_0x3060('0x18')][_0x3060('0x27')][_0x3060('0xf')]();}),_0x1dd66b;}['_createButton'](_0x57f219,_0x1e99d9,_0x556351,_0x57bce7){const _0x5c597e=new _0x20f421(this['locale']);return _0x5c597e[_0x3060('0x10')]({'label':_0x57f219,'icon':_0x1e99d9,'tooltip':!0x0}),_0x5c597e[_0x3060('0x4')]({'attributes':{'class':_0x556351}}),_0x57bce7&&_0x5c597e[_0x3060('0x0')]('execute')['to'](this,_0x57bce7),_0x5c597e;}}