@ckeditor/ckeditor5-revision-history 35.3.1 → 35.4.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.
- package/build/revision-history.js +1 -1
- package/package.json +7 -7
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2610=['revisionHistoryLabel','change:activeChange','suggestion','currentChangeNumber','editingDowncast','isAtEnd','getRevision','revision','getRoot','markersStart','forward','vid_end','end','isContent','change:isReadOnly','removeMarker:revision','toData','element','change:isEnabled','plugins','_setDistance','deletion','isRemoved','ck-suggestion-marker--active','markers','deletions','_changeView','getItems','_setConversion','<p></p>','data-revision-','push','distance','editor','index','getAttributes','markerToHighlight','createAttributeElement','pairId','processor','addRevisionData','nextSibling','parse','getWalker','execute','refresh','from','adapter','elementToAttribute','get','_setData','elementStart','_revisions','hasClass','forEach','numberOfChanges','nodeAfter','backward','activeChange','ck-suggestion-preview-marker','addClass','toViewElement','low','consume','merge','pluginName','toViewRange','isEqual','enqueueChange','markerToData','newRevisionId','target','getRevisionData','wrap','side','getIndex','all','mouseover','view','ck-editor__editable__overlay','includes','mousedown','object','suggestion:','_getViewForChange','addMarker:revision','_removeRevisionMarkers','test','remove','-new','isSuggestion','ck-suggestion-preview-marker-','item','createRevision','showStack','_makeModelFromViewString','isIncorrect','length','_cleanUp','isLimit','roots','loadRevisionData','abs','showNextChange','_markSuggestions','downcastDispatcher','addMarker:revision-suggestion:insertion','next','vid_start','_balloon','_joinTapes','stopListening','_update','change:numberOfChanges','_getRevisionsRange','add','data','enableReadOnlyMode','insertion','endIndex','softBreak','start','repository','type','createUIElement','set','diff','string','revision-viewer','revision:','POSITIVE_INFINITY','createRangeIn','viewItem','revisionHistory','shift','conversion','data-change-id','isRemoveSuggestion','getRootNames','consumable','markerName','isAddSuggestion','markersEnd','_initInteractions','done','_makeTape','getAttribute','listenTo','span','has','maxOffset','activeView','unshift','pop','_removeMissingPairs','diffData','_makeModelFromTape','attributes','previousPosition','code','editing','dataToMarker','filter','split','_processTape','destroy','high','authors','comment','RevisionViewer','_appendChild','_markMismatchedRemovedTags','revision-end','parent','createPositionFromPath','changes','toModel','observeMarkers','_data','addHighlight','commands','checkAttribute','readOnlyMode','elementEnd','removeMarker:revision-suggestion','isAfter','change:activeView','toViewPosition','isAdded','startsWith','stop','modelRange','level','markerRange','_getChangeFromId','dataDowncast','model','range','mapper','revision-suggestion','for','getCustomProperty','nextPosition','oldRevisionId','map','document','_cleanMarkers','delete','removeClass','uiElement','_removeUnsupportedChanges','useFillerType','collaboration.channelId','clearForceDisabled','then','highest','vid','_getViewObj','_getDiff','_changeIdToChange','compare','concat','isCollapsed','insert','ck-suggestion-marker-','config','restoreRevisionCallback','isReady','isBlock','userId','WidgetToolbarRepository','isNavigationMode','clear','change:isReady','hasAttribute','init','createRange','isEnabled','resolve','setAttribute','_step','_refreshStartEndIndex','children','_threeWayMerge','_target','splice','keys','showPreviousChange','_markMarkers','upcast','writer','reconvertMarker','bind','RevisionsRepository','change','schema','startIndex','text','ck-suggestion-marker-merge','revision-suggestion:','_markInsertions','insertions','_findChangeIdFromDomTarget','name'];(function(_0x31d8e1,_0x26107a){const _0x524bab=function(_0x5a8a2e){while(--_0x5a8a2e){_0x31d8e1['push'](_0x31d8e1['shift']());}};_0x524bab(++_0x26107a);}(_0x2610,0x135));const _0x524b=function(_0x31d8e1,_0x26107a){_0x31d8e1=_0x31d8e1-0x0;let _0x524bab=_0x2610[_0x31d8e1];return _0x524bab;};import{Plugin as _0x229f8,Command as _0x4709cd}from'ckeditor5/src/core';import{ObservableMixin as _0x41e455,mix as _0xdcc6b,scrollViewportToShowTarget as _0xce6de3}from'ckeditor5/src/utils';import{ContextualBalloon as _0x267e0f}from'ckeditor5/src/ui';import{DocumentFragment as _0x39d827,Element as _0xa0cd73,Text as _0x5ee507,ViewDocumentFragment as _0x1d31c1,ViewText as _0xf1449d,ViewElement as _0x4320d4,ViewContainerElement as _0x4f6aaa,ViewAttributeElement as _0x51f0b4,ViewEmptyElement as _0x447f01,ViewRawElement as _0x365df8,ViewUIElement as _0x2ebab8}from'ckeditor5/src/engine';import{Users as _0x22e1e5,getMarkerDomElement as _0x357e15}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e30ed from'./ui/revisionviewer/changedetailsview';import _0x51bcfc from'./revisionsrepository';import _0x17521b from'./changeitem';import _0x570a28 from'./revisiondiff';import'../theme/revisionviewer.css';const Y={'c':_0x4f6aaa,'a':_0x51f0b4,'e':_0x447f01,'r':_0x365df8,'u':_0x2ebab8};export default class d extends _0x229f8{static get[_0x524b('0x14')](){return _0x524b('0x7c');}static get['requires'](){return[_0x22e1e5,_0x267e0f,_0x51bcfc];}constructor(..._0x3852ca){super(..._0x3852ca),this[_0x524b('0x4d')]=this[_0x524b('0xfc')]['plugins'][_0x524b('0x4')](_0x524b('0xd0')),this['set'](_0x524b('0xd'),null),this[_0x524b('0x50')](_0x524b('0x6a'),null),this[_0x524b('0x50')](_0x524b('0x51'),null),this[_0x524b('0x50')]('isReady',!0x1),this[_0x524b('0x50')]('isEnabled',!0x0),this['on'](_0x524b('0xed'),(_0x5acd8b,_0x32bcf9,_0x5e22ac)=>{this['activeChange']=null,this['activeView']=null,this['editor'][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xd1')](_0x33db62=>{for(const _0x5c0817 of this['editor']['editing'][_0x524b('0x21')][_0x524b('0xa0')][_0x524b('0x37')])_0x5e22ac?_0x33db62[_0x524b('0xa3')](_0x524b('0x22'),_0x5c0817):_0x33db62[_0x524b('0xf')]('ck-editor__editable__overlay',_0x5c0817);});}),this[_0x524b('0xcf')](_0x524b('0xba'))['to'](this,_0x524b('0xd'),_0x52ea10=>null!==_0x52ea10),this[_0x524b('0xcf')](_0x524b('0xde'))['to'](this,_0x524b('0xb6'),this,_0x524b('0x51'),this,_0x524b('0xd'),(_0x4f170a,_0x7cc9c0,_0x47a10f)=>_0x4f170a&&_0x47a10f?_0x7cc9c0[_0x524b('0x82')][_0x524b('0x1e')](_0x47a10f):0x0),this['bind'](_0x524b('0xa'))['to'](this,'isReady',this,_0x524b('0x51'),(_0x46934f,_0x3781b7)=>_0x46934f?_0x3781b7[_0x524b('0x82')][_0x524b('0x34')]:0x0),this[_0x524b('0xf5')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this[_0x524b('0xfc')][_0x524b('0xee')][_0x524b('0x4')](_0x267e0f);}[_0x524b('0xbe')](){const _0x2e5042=this[_0x524b('0xfc')],_0x18f3b6=new et(_0x2e5042,{'direction':_0x524b('0xc')}),_0x761370=new et(_0x2e5042,{'direction':_0x524b('0xe5')});_0x2e5042['commands'][_0x524b('0x46')](_0x524b('0xca'),_0x18f3b6),_0x2e5042[_0x524b('0x87')][_0x524b('0x46')](_0x524b('0x3a'),_0x761370),_0x2e5042[_0x524b('0x87')]['add']('restoreRevision',new tt(_0x2e5042)),this['on'](_0x524b('0x44'),()=>{_0x18f3b6['refresh'](),_0x761370[_0x524b('0x0')]();}),this[_0x524b('0xf7')](),this[_0x524b('0x62')](),_0x2e5042[_0x524b('0x48')](_0x524b('0x53')),_0x2e5042[_0x524b('0xee')][_0x524b('0x68')]('WidgetToolbarRepository')&&_0x2e5042[_0x524b('0xee')]['get'](_0x524b('0xb9'))['forceDisabled'](_0x524b('0x53'));}async[_0x524b('0x1b')](_0x4eaedb){await this[_0x524b('0x38')](_0x4eaedb);const _0x11156d={};for(const _0x2056ef in _0x4eaedb['diffData']){const _0x192121=this[_0x524b('0x29')](JSON[_0x524b('0x105')](_0x4eaedb[_0x524b('0x6e')][_0x2056ef][_0x524b('0xd8')])),_0x37359a=this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')],_0x1c161b=new _0x1d31c1(_0x37359a,_0x192121[_0x524b('0x9f')](_0x461435=>this[_0x524b('0xac')](_0x461435)));this[_0x524b('0xfc')][_0x524b('0x47')]['processor'][_0x524b('0xa6')]('marked'),_0x11156d[_0x2056ef]=this[_0x524b('0xfc')][_0x524b('0x47')][_0x524b('0x102')][_0x524b('0xeb')](_0x1c161b),this[_0x524b('0xfc')]['data'][_0x524b('0x102')][_0x524b('0xa6')]('default');}return _0x11156d;}[_0x524b('0x29')](_0x364eea){return(_0x364eea=_0x364eea[_0x524b('0x75')](_0x4fbfe2=>!_0x4fbfe2[_0x524b('0xda')]||'revision-start'!==_0x4fbfe2['name']&&_0x524b('0x7f')!==_0x4fbfe2[_0x524b('0xda')]))['forEach'](_0x59bdc2=>{_0x524b('0x52')!=typeof _0x59bdc2&&(_0x59bdc2['children']=this[_0x524b('0x29')](_0x59bdc2[_0x524b('0xc5')]),_0x59bdc2['attributes']=_0x59bdc2[_0x524b('0x70')][_0x524b('0x75')](_0x220e12=>!_0x220e12[0x0][_0x524b('0x90')](_0x524b('0xf9'))));}),_0x364eea;}[_0x524b('0xaf')](_0x478064,_0x42909a,_0x518e68=!0x1){if(!this[_0x524b('0xc0')])return;const _0x43c67b=this[_0x524b('0x51')],_0x36ed41=this[_0x524b('0x4d')],_0x7bf641=_0x524b('0x52')==typeof _0x478064?_0x36ed41[_0x524b('0xe1')](_0x478064):_0x478064,_0x56ffea=_0x524b('0x52')==typeof _0x42909a?_0x36ed41['getRevision'](_0x42909a):_0x42909a,_0x29df07=_0x7bf641['id'],_0x1fc1ce=_0x56ffea?_0x56ffea['id']:null;if(!_0x518e68&&this[_0x524b('0x51')]&&this['diff'][_0x524b('0x19')]===_0x29df07&&this[_0x524b('0x51')][_0x524b('0x9e')]===_0x1fc1ce)return Promise['resolve']();this[_0x524b('0xb6')]=!0x1,this[_0x524b('0x6a')]=null,this[_0x524b('0xd')]=null,this[_0x524b('0x51')]=new _0x570a28(_0x29df07,_0x1fc1ce);const _0x5a3e04=this[_0x524b('0x45')](_0x7bf641,_0x56ffea,!0x0)['map'](_0x123242=>this[_0x524b('0x38')](_0x123242));return _0x5a3e04['push'](new Promise(_0xa1ad79=>{setTimeout(_0xa1ad79,0x14);})),Promise[_0x524b('0x1f')](_0x5a3e04)[_0x524b('0xa9')](()=>{if(!this[_0x524b('0xc0')])return;this[_0x524b('0x35')]();const _0x215c46=this[_0x524b('0xad')](_0x29df07,_0x1fc1ce);this[_0x524b('0x51')][_0x524b('0x5')](_0x215c46);for(const _0x639f3e of this[_0x524b('0x51')][_0x524b('0x82')])this[_0x524b('0xae')][_0x524b('0x50')](_0x639f3e['id'],_0x639f3e);this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0x17')]({'isUndoable':!0x1},_0x449bb6=>{for(const _0x2f6fc2 of Object[_0x524b('0xc9')](_0x215c46['model'])){const _0x47fe27=this[_0x524b('0xfc')][_0x524b('0x97')]['document'][_0x524b('0xe3')](_0x2f6fc2);_0x449bb6[_0x524b('0x2b')](_0x449bb6['createRangeIn'](_0x47fe27)),_0x449bb6[_0x524b('0xb2')](_0x215c46[_0x524b('0x97')][_0x2f6fc2],_0x47fe27,0x0);}}),this[_0x524b('0xb6')]=!0x0;})['catch'](_0x150e60=>{console['error'](_0x150e60),this['_cleanUp'](),_0x43c67b?this[_0x524b('0x51')]=_0x43c67b:this[_0x524b('0xfc')]['setData'](_0x524b('0xf8')),this[_0x524b('0xb6')]=!0x0;});}['destroy'](){this['activeView']=null,this[_0x524b('0xf5')]&&this[_0x524b('0xf5')][_0x524b('0x78')]();}[_0x524b('0x103')](_0x191774,_0x48a0d1){const _0xd9608a=this[_0x524b('0x4d')][_0x524b('0x30')](_0x191774);return _0xd9608a['on'](_0x524b('0x43'),(_0x53f36f,_0x52b6f0,_0x5155f4)=>_0x48a0d1(_0x52b6f0,_0x5155f4,_0xd9608a)),this[_0x524b('0x4d')]['addRevision'](_0xd9608a),_0xd9608a;}['loadRevisionData'](_0x499989){if(!_0x499989||_0x499989[_0x524b('0x6e')])return Promise[_0x524b('0xc1')]();{const _0x279321=this[_0x524b('0xfc')][_0x524b('0xb4')][_0x524b('0x4')](_0x524b('0xa7'));return this[_0x524b('0x2')][_0x524b('0xe1')]({'channelId':_0x279321,'revisionId':_0x499989['id']})[_0x524b('0xa9')](_0x215d74=>{_0x499989[_0x524b('0x43')]({'diffData':_0x215d74[_0x524b('0x6e')]},!0x0);});}}[_0x524b('0x35')](){this[_0x524b('0xd')]=null,this[_0x524b('0xa1')](),this[_0x524b('0xf5')]&&this[_0x524b('0xf5')]['destroy'](),this['_changeView']=null,this[_0x524b('0xae')][_0x524b('0xbb')]();}[_0x524b('0x64')](_0x201dbb){const _0x2f9492=Array[_0x524b('0x1')](_0x201dbb[_0x524b('0xf3')])[_0x524b('0x75')](([_0x35513a,_0x2364dd])=>_0x35513a['startsWith'](_0x524b('0x54'))&&!_0x2364dd[_0x524b('0xb1')]),_0x33c4d7=Array[_0x524b('0x1')](this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0x56')](_0x201dbb)[_0x524b('0x106')]({'singleCharacters':!0x0}));if(0x0!=_0x2f9492[_0x524b('0x34')])for(const _0x3e48df of _0x33c4d7){const [_0x257b91,_0x1a2f78]=_0x2f9492[0x0],[,_0x155931,_0x31a8df]=_0x257b91[_0x524b('0x76')](':');if(_0x1a2f78[_0x524b('0xe7')][_0x524b('0x16')](_0x3e48df[_0x524b('0x9d')])&&_0x2f9492[_0x524b('0x59')](),(_0x3e48df[_0x524b('0x71')][_0x524b('0x16')](_0x1a2f78[_0x524b('0x4c')])||_0x3e48df[_0x524b('0x71')][_0x524b('0x8c')](_0x1a2f78[_0x524b('0x4c')]))&&(_0x524b('0x49')==_0x155931?_0x3e48df['isAdded']={'userId':_0x31a8df}:_0x524b('0xf0')==_0x155931&&(_0x3e48df[_0x524b('0xf1')]={'userId':_0x31a8df})),0x0==_0x2f9492[_0x524b('0x34')])break;}return _0x33c4d7;}[_0x524b('0xc4')](_0x276d7c){const _0x47f245=new Map();for(let _0x474cea=0x0;_0x474cea<_0x276d7c[_0x524b('0x34')];_0x474cea++)'text'===_0x276d7c[_0x474cea][_0x524b('0x4e')]?(_0x276d7c[_0x474cea]['item'][_0x524b('0xd3')]=_0x474cea,_0x276d7c[_0x474cea][_0x524b('0x2f')][_0x524b('0x4a')]=_0x474cea):(_0x524b('0x6')===_0x276d7c[_0x474cea]['type']?_0x276d7c[_0x474cea][_0x524b('0x2f')][_0x524b('0xd3')]=_0x474cea:_0x524b('0x8a')===_0x276d7c[_0x474cea][_0x524b('0x4e')]&&(_0x276d7c[_0x474cea]['item'][_0x524b('0x4a')]=_0x474cea),_0x47f245[_0x524b('0x50')](_0x276d7c[_0x474cea]['id'],_0x474cea));for(const _0xd4ea51 of _0x47f245['values']())_0x524b('0x6')===_0x276d7c[_0xd4ea51][_0x524b('0x4e')]?_0x276d7c[_0xd4ea51]['item'][_0x524b('0x4a')]=_0x47f245[_0x524b('0x4')](_0x276d7c[_0xd4ea51][_0x524b('0x101')]):_0x524b('0x8a')===_0x276d7c[_0xd4ea51][_0x524b('0x4e')]&&(_0x276d7c[_0xd4ea51]['item'][_0x524b('0xd3')]=_0x47f245[_0x524b('0x4')](_0x276d7c[_0xd4ea51][_0x524b('0x101')]));}[_0x524b('0x77')](_0x42a7ab){for(let _0x158187=0x0;_0x158187<_0x42a7ab[_0x524b('0x34')];_0x158187++){if(_0x524b('0x6')===_0x42a7ab[_0x158187][_0x524b('0x4e')])_0x42a7ab[_0x158187]['item'][_0x524b('0xd3')]=_0x158187;else{if(_0x524b('0x8a')===_0x42a7ab[_0x158187][_0x524b('0x4e')]){_0x42a7ab[_0x158187][_0x524b('0x2f')][_0x524b('0x4a')]=_0x158187;const _0xa12523=_0x42a7ab[_0x158187][_0x524b('0x2f')]['startIndex'];_0x42a7ab[_0xa12523][_0x524b('0x101')]=_0x42a7ab[_0x158187]['id'],_0x42a7ab[_0x158187][_0x524b('0x101')]=_0x42a7ab[_0xa12523]['id'];}else _0x42a7ab[_0x158187][_0x524b('0x2f')][_0x524b('0xd3')]=_0x158187,_0x42a7ab[_0x158187][_0x524b('0x2f')][_0x524b('0x4a')]=_0x158187,_0x42a7ab[_0x158187][_0x524b('0x101')]=null;}_0x42a7ab[_0x158187][_0x524b('0xe4')]||(_0x42a7ab[_0x158187]['markersStart']=[],_0x42a7ab[_0x158187][_0x524b('0x61')]=[]);}}[_0x524b('0xd7')](_0x510ff8,_0x32238b){const _0x4f8851=_0x510ff8[_0x524b('0x75')](_0x4663a5=>!_0x4663a5[_0x524b('0x8f')]);for(let _0x3eb299=0x0;_0x3eb299<_0x32238b[_0x524b('0x34')];_0x3eb299++)_0x32238b[_0x3eb299][_0x524b('0x8f')]&&(_0x4f8851[_0x3eb299][_0x524b('0x8f')]=_0x32238b[_0x3eb299][_0x524b('0x8f')]);}[_0x524b('0x32')](_0x4804ea){const _0x2d2914=JSON['parse'](_0x4804ea),_0x588925=this['editor'][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')],_0x3a5d40=new _0x1d31c1(_0x588925,_0x2d2914['map'](_0x2b8f08=>this['_getViewObj'](_0x2b8f08)));return this[_0x524b('0xfc')][_0x524b('0x47')][_0x524b('0x83')](_0x3a5d40);}['_getViewObj'](_0x53b16e){const _0x439486=this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')];if(_0x524b('0x52')==typeof _0x53b16e)return new _0xf1449d(_0x439486,_0x53b16e);{const _0x18c14d=_0x53b16e['children']['map'](_0x1b7aea=>this[_0x524b('0xac')](_0x1b7aea));return new(Y[_0x53b16e[(_0x524b('0x4e'))]]||_0x4320d4)(_0x439486,_0x53b16e['name'],_0x53b16e[_0x524b('0x70')],_0x18c14d);}}[_0x524b('0xad')](_0x3d472d,_0x2da3b4=null){const _0x71347c=this[_0x524b('0x4d')][_0x524b('0xe1')](_0x3d472d),_0x143b5a=_0x2da3b4?this['repository'][_0x524b('0xe1')](_0x2da3b4):null,_0xa91797=this['_getRevisionsRange'](_0x71347c,_0x143b5a),_0x2bf803=_0xa91797[_0xa91797['length']-0x1],_0x59ae28=new Map();for(const _0x4eb7cc of _0xa91797){_0x4eb7cc[_0x524b('0x97')]={};for(const _0x57579b of _0x4eb7cc[_0x524b('0x7a')])_0x59ae28[_0x524b('0x50')](_0x57579b['id'],_0x57579b);for(const _0x1cd57e of this[_0x524b('0xfc')][_0x524b('0x97')]['document']['getRootNames']())_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e]||(_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e]={'insertions':'[]','deletions':'[]'}),_0x4eb7cc[_0x524b('0x97')][_0x1cd57e]={'insertions':this[_0x524b('0x32')](_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e][_0x524b('0xd8')]),'deletions':this[_0x524b('0x32')](_0x4eb7cc[_0x524b('0x6e')][_0x1cd57e][_0x524b('0xf4')])};}const _0x390be1={'model':{},'changes':[]};for(const _0x1f3c06 of this[_0x524b('0xfc')]['model'][_0x524b('0xa0')][_0x524b('0x5d')]()){let _0x573457=null,_0x582d60=0x0;const _0x1c50ef=new Map(Array[_0x524b('0x1')](_0x71347c[_0x524b('0x97')][_0x1f3c06]['insertions'][_0x524b('0xf3')])[_0x524b('0x75')](([_0x1cb601])=>!_0x1cb601[_0x524b('0x90')](_0x524b('0x54'))));let _0xf558c2=0x0;for(const _0x534dd5 of _0xa91797){const _0x5f2c03=this['_makeTape'](_0x534dd5[_0x524b('0x97')][_0x1f3c06][_0x524b('0xd8')]);_0x534dd5==_0x71347c?(_0x573457=_0x5f2c03,_0x582d60=_0x573457[_0x524b('0x34')],_0x573457[_0x524b('0x9')](_0x5a3bcc=>{_0x5a3bcc['id']=_0xf558c2++;}),this[_0x524b('0x77')](_0x573457)):this['_markInsertions'](_0x573457,_0x5f2c03);const _0x365a2d=_0x573457['filter'](_0x5dc210=>!_0x5dc210['isAdded'])['map'](_0x11ad60=>_0x11ad60['id']);let _0x18f817=0x0;const _0x28f608=this[_0x524b('0x64')](_0x534dd5[_0x524b('0x97')][_0x1f3c06][_0x524b('0xf4')]);_0x28f608['forEach'](_0x82e0f3=>{_0x82e0f3[_0x524b('0xf1')]?_0x82e0f3['id']=_0x582d60++:_0x82e0f3['id']=_0x365a2d[_0x18f817++];}),this[_0x524b('0x77')](_0x28f608),this['_setDistance'](_0x573457,_0x524b('0x8f')),this['_setDistance'](_0x28f608,_0x524b('0xf1')),_0x534dd5==_0x71347c&&this[_0x524b('0xcb')](_0x573457,_0x1c50ef),_0x573457=this[_0x524b('0x41')](_0x573457,_0x28f608),this['_refreshStartEndIndex'](_0x573457),this[_0x524b('0xef')](_0x573457,_0x524b('0xf1'));}_0x573457=_0x573457[_0x524b('0x75')](_0x4054c6=>!(_0x4054c6[_0x524b('0x8f')]&&_0x4054c6[_0x524b('0xf1')]));const _0x27eaaa=new Map(_0x2bf803['model'][_0x1f3c06]['deletions'][_0x524b('0xf3')]),_0x43d0eb=new Set(_0x1c50ef[_0x524b('0xc9')]());for(const _0x27b123 of _0x27eaaa[_0x524b('0xc9')]())_0x43d0eb[_0x524b('0xa2')](_0x27b123);this[_0x524b('0x3b')](_0x573457,_0x43d0eb),this['_fixObsoleteTags'](_0x573457),_0x573457=this[_0x524b('0x6d')](_0x573457),_0x573457=this[_0x524b('0x7e')](_0x573457),_0x573457=this[_0x524b('0xa5')](_0x573457);const {root:_0x3fef8e,changes:_0x17ffe8}=this[_0x524b('0x6f')](_0x573457,_0x59ae28);_0x390be1['model'][_0x1f3c06]=_0x3fef8e,_0x390be1[_0x524b('0x82')]=_0x390be1['changes']['concat'](_0x17ffe8);}return _0x390be1;}[_0x524b('0xcb')](_0x2ed317,_0x4243aa){for(let _0x1db100=0x0;_0x1db100<_0x2ed317['length'];_0x1db100++)for(const [_0x3f84df,_0x18558e]of _0x4243aa)_0x18558e[_0x524b('0x4c')][_0x524b('0x16')](_0x2ed317[_0x1db100][_0x524b('0x71')])&&_0x2ed317[_0x1db100]['markersStart'][_0x524b('0xfa')](_0x3f84df),_0x18558e[_0x524b('0xe7')][_0x524b('0x16')](_0x2ed317[_0x1db100][_0x524b('0x9d')])&&_0x2ed317[_0x1db100][_0x524b('0x61')][_0x524b('0xfa')](_0x3f84df);}[_0x524b('0x41')](_0x56dc89,_0x1442e9){let _0x51fe5f=[],_0x13a720=0x0,_0x3b9cb9=0x0;for(;_0x13a720<_0x56dc89[_0x524b('0x34')]||_0x3b9cb9<_0x1442e9[_0x524b('0x34')];){const _0x3b8c6e=_0x56dc89[_0x13a720]||{},_0x3cb0e7=_0x1442e9[_0x3b9cb9]||{};if(_0x3b8c6e['id']==_0x3cb0e7['id'])_0x13a720++,_0x3b9cb9++,_0x51fe5f[_0x524b('0xfa')](_0x3b8c6e);else{if(_0x3cb0e7[_0x524b('0xf1')]&&_0x3b8c6e[_0x524b('0x8f')]){const {commonTape:_0x8436a5,iEnd:_0xf440d9,jEnd:_0xdfe38d}=this[_0x524b('0xc6')](_0x56dc89,_0x13a720,_0x1442e9,_0x3b9cb9);_0x51fe5f=_0x51fe5f[_0x524b('0xb0')](_0x8436a5),_0x13a720=_0xf440d9,_0x3b9cb9=_0xdfe38d;}else _0x3cb0e7['isRemoved']?(_0x3b9cb9++,_0x51fe5f[_0x524b('0xfa')](_0x3cb0e7)):(_0x13a720++,_0x51fe5f[_0x524b('0xfa')](_0x3b8c6e));}}return _0x51fe5f;}[_0x524b('0x3b')](_0x19421a,_0x488f23){const _0xd11a58=[];for(let _0x2f9f56=0x0;_0x2f9f56<_0x19421a['length'];_0x2f9f56++){for(let _0xc175a4=0x0;_0xc175a4<_0x19421a[_0x2f9f56][_0x524b('0xe4')][_0x524b('0x34')];_0xc175a4++){const _0x399ea6=_0x19421a[_0x2f9f56][_0x524b('0xe4')][_0xc175a4];if(!_0x488f23['has'](_0x399ea6))continue;const {group:_0x4f0287,type:_0x172a51,authorId:_0x2f2416}=_0x316cdf(_0x399ea6);_0x524b('0x9a')!=_0x4f0287||_0x524b('0x49')!=_0x172a51&&_0x524b('0xf0')!=_0x172a51||(_0xd11a58[_0x524b('0x6b')]({'type':_0x172a51,'name':_0x399ea6,'userId':_0x2f2416}),_0x19421a[_0x2f9f56]['markersStart'][_0x524b('0xc8')](_0xc175a4,0x1),_0xc175a4--);}_0x1be9a1(_0x19421a[_0x2f9f56]);for(let _0x5531ea=0x0;_0x5531ea<_0x19421a[_0x2f9f56][_0x524b('0x61')][_0x524b('0x34')];_0x5531ea++){const _0x4cb717=_0x19421a[_0x2f9f56][_0x524b('0x61')][_0x5531ea];if(!_0x488f23[_0x524b('0x68')](_0x4cb717))continue;const {group:_0x349dd3,type:_0x51644d}=_0x316cdf(_0x4cb717);if(_0x524b('0x9a')!=_0x349dd3||_0x524b('0x49')!=_0x51644d&&_0x524b('0xf0')!=_0x51644d)continue;_0x19421a[_0x2f9f56]['markersEnd'][_0x524b('0xc8')](_0x5531ea,0x1),_0x5531ea--;const _0x39647e=_0xd11a58['findIndex'](_0x47ccae=>_0x47ccae[_0x524b('0xda')]==_0x4cb717);_0x39647e>-0x1&&_0xd11a58[_0x524b('0xc8')](_0x39647e,0x1);}}function _0x316cdf(_0xd6f560){const _0x575f40=_0xd6f560[_0x524b('0x76')](':');return{'group':_0x575f40[0x0],'type':_0x575f40[0x1],'subType':_0x575f40['length']>=0x5?_0x575f40[0x2]:null,'id':_0x575f40[_0x524b('0x34')]<0x5?_0x575f40[0x2]:_0x575f40[0x3],'authorId':_0x575f40['length']<0x5?_0x575f40[0x3]:_0x575f40[0x4],'markerCount':0x6==_0x575f40[_0x524b('0x34')]?_0x575f40[0x5]:null};}function _0x1be9a1(_0x2a2830){for(let _0x5e653b=0x0;_0x5e653b<_0xd11a58['length'];_0x5e653b++){if(_0x2a2830['isAdded']&&_0x524b('0x49')==_0xd11a58[_0x5e653b][_0x524b('0x4e')])return _0x2a2830[_0x524b('0x60')]=_0xd11a58[_0x5e653b],void delete _0x2a2830[_0x524b('0x8f')];if(!_0x2a2830[_0x524b('0x8f')]&&!_0x2a2830[_0x524b('0xf1')]&&_0x524b('0xf0')==_0xd11a58[_0x5e653b][_0x524b('0x4e')])return void(_0x2a2830[_0x524b('0x5c')]=_0xd11a58[_0x5e653b]);}}}[_0x524b('0xef')](_0x4e8f19,_0x13a24b){let _0x14c2ac=0x0,_0x2ec047=!0x1;const _0x2a3f47=new Map();for(const _0x99f6d8 of _0x4e8f19)_0x99f6d8[_0x13a24b]?_0x2ec047&&(_0x14c2ac++,_0x2ec047=!0x1):(_0x14c2ac++,_0x2ec047=!0x0),_0x2a3f47[_0x524b('0x50')](_0x99f6d8['id'],_0x14c2ac);for(let _0x2dcbb5=0x0;_0x2dcbb5<_0x4e8f19[_0x524b('0x34')];_0x2dcbb5++){if(_0x524b('0xf1')==_0x13a24b&&_0x4e8f19[_0x2dcbb5][_0x524b('0x8f')]||'isAdded'==_0x13a24b&&_0x4e8f19[_0x2dcbb5][_0x524b('0xf1')])continue;if('text'==_0x4e8f19[_0x2dcbb5]['type']){_0x4e8f19[_0x2dcbb5][_0x524b('0xfb')]=0x0;continue;}const _0x3da0eb=_0x2a3f47[_0x524b('0x4')](_0x4e8f19[_0x2dcbb5][_0x524b('0x101')]),_0x47645d=_0x2a3f47[_0x524b('0x4')](_0x4e8f19[_0x2dcbb5]['id']);_0x4e8f19[_0x2dcbb5][_0x524b('0xfb')]=_0x3da0eb-_0x47645d;}}['_getRevisionsRange'](_0x3b3e7c,_0x25ec25,_0x3527ed=!0x1){const _0x2f55fd=[];let _0x3ab190=this[_0x524b('0x4d')]['getIndex'](_0x3b3e7c),_0x367d26=this[_0x524b('0x4d')]['getIndex'](_0x25ec25);for(-0x1==_0x367d26&&(_0x367d26=this[_0x524b('0x4d')][_0x524b('0x7')]['length'],_0x3527ed=!0x1);_0x3ab190<_0x367d26;)_0x2f55fd[_0x524b('0xfa')](this[_0x524b('0x4d')][_0x524b('0xe1')](_0x3ab190)),_0x3ab190++;return _0x3527ed&&_0x2f55fd[_0x524b('0xfa')](this[_0x524b('0x4d')]['getRevision'](_0x3ab190)),_0x2f55fd;}[_0x524b('0xc6')](_0x301b25,_0x30f59f,_0x3dd991,_0x96662c){const _0x1caa44=this['editor']['model'][_0x524b('0xd2')];let _0x4977b8=_0x30f59f;for(;_0x301b25[_0x4977b8]&&_0x301b25[_0x4977b8][_0x524b('0x8f')];)_0x4977b8++;let _0x5db4f0=_0x96662c;for(;_0x3dd991[_0x5db4f0]&&_0x3dd991[_0x5db4f0][_0x524b('0xf1')];)_0x5db4f0++;_0x14de4a(_0x301b25,_0x30f59f,_0x4977b8),_0x14de4a(_0x3dd991,_0x96662c,_0x5db4f0);const _0x4e4bc1=_0x3dd991['slice'](_0x96662c,_0x5db4f0)[_0x524b('0xb0')](_0x301b25['slice'](_0x30f59f,_0x4977b8));return _0x4e4bc1['sort']((_0x532d84,_0x24d942)=>_0x532d84[_0x524b('0x1d')]!=_0x24d942['side']?_0x532d84[_0x524b('0x1d')]-_0x24d942[_0x524b('0x1d')]:_0x532d84[_0x524b('0x93')]!=_0x24d942[_0x524b('0x93')]?_0x532d84[_0x524b('0x93')]-_0x24d942['level']:_0x532d84[_0x524b('0xfb')]!=_0x24d942[_0x524b('0xfb')]?_0x24d942[_0x524b('0xfb')]-_0x532d84['distance']:!!_0x532d84[_0x524b('0x8f')]!=!!_0x24d942['isAdded']?-0x1==_0x532d84[_0x524b('0x1d')]||0x0==_0x532d84[_0x524b('0x1d')]?_0x532d84[_0x524b('0x8f')]?-0x1:0x1:_0x532d84['isAdded']?0x1:-0x1:_0x532d84[_0x524b('0xfd')]-_0x24d942[_0x524b('0xfd')]),{'commonTape':_0x4e4bc1,'iEnd':_0x4977b8,'jEnd':_0x5db4f0};function _0x14de4a(_0x15b6a9,_0x26a556,_0x5d8ff7){let _0x27606e=-0x1,_0x44d658=Number[_0x524b('0x55')],_0x4321d6=!0x0;for(let _0x5be675=_0x26a556;_0x5be675<_0x5d8ff7;_0x5be675++)if(_0x1caa44['isInline'](_0x15b6a9[_0x5be675][_0x524b('0x2f')])||(_0x4321d6=!0x1),_0x15b6a9[_0x5be675][_0x524b('0x2f')][_0x524b('0xd3')]<_0x26a556&&(_0x27606e=_0x5be675),_0x15b6a9[_0x5be675][_0x524b('0x2f')][_0x524b('0x4a')]>=_0x5d8ff7){_0x44d658=_0x5be675;break;}_0x4321d6&&(_0x27606e=_0x5d8ff7-0x1);for(let _0x1badb2=_0x26a556;_0x1badb2<_0x5d8ff7;_0x1badb2++)_0x15b6a9[_0x1badb2][_0x524b('0x1d')]=_0x1badb2<=_0x27606e?-0x1:_0x1badb2<_0x44d658?0x0:0x1,_0x15b6a9[_0x1badb2][_0x524b('0xfd')]=_0x1badb2;let _0x1a6db7=0x0;for(let _0xac64a0=_0x26a556;_0xac64a0<=_0x27606e;_0xac64a0++)0x0==_0x15b6a9[_0xac64a0]['distance']?_0x15b6a9[_0xac64a0][_0x524b('0x93')]=_0x1a6db7:(_0x1a6db7++,_0x15b6a9[_0xac64a0][_0x524b('0x93')]=_0x1a6db7,_0x1a6db7++);for(let _0x28ab87=_0x26a556;_0x28ab87<_0x5d8ff7;_0x28ab87++)0x0==_0x15b6a9[_0x28ab87][_0x524b('0x1d')]&&(_0x15b6a9[_0x28ab87][_0x524b('0x93')]=_0x1a6db7);_0x1a6db7=0x0;for(let _0x9714a6=_0x5d8ff7-0x1;_0x9714a6>=_0x44d658;_0x9714a6--)0x0==_0x15b6a9[_0x9714a6][_0x524b('0xfb')]?_0x15b6a9[_0x9714a6][_0x524b('0x93')]=_0x1a6db7:(_0x1a6db7--,_0x15b6a9[_0x9714a6]['level']=_0x1a6db7,_0x1a6db7--);}}['_fixObsoleteTags'](_0x1e3f2e){const _0x1ff9a5=new Map(),_0x1e9c84=this[_0x524b('0xfc')]['model'][_0x524b('0xd2')];for(let _0x4bc3e7=0x1;_0x4bc3e7<_0x1e3f2e[_0x524b('0x34')];_0x4bc3e7++){let _0x447c3d,_0x4a8451,_0x491e8c;const _0x2d8370=_0x1e3f2e[_0x4bc3e7],_0x3b363f=_0x1e3f2e[_0x4bc3e7-0x1];if(_0x524b('0xd4')==_0x2d8370[_0x524b('0x4e')])continue;if(_0x2d8370[_0x524b('0x4e')]!=_0x3b363f[_0x524b('0x4e')])continue;if(!_0x1e9c84[_0x524b('0xb7')](_0x3b363f['item'])||_0x1e9c84[_0x524b('0x36')](_0x3b363f[_0x524b('0x2f')]))continue;if(!_0x1e9c84[_0x524b('0xb7')](_0x2d8370[_0x524b('0x2f')])||_0x1e9c84[_0x524b('0x36')](_0x2d8370[_0x524b('0x2f')]))continue;if((_0x1e3f2e[_0x4bc3e7]['isAdded']||_0x1e3f2e[_0x4bc3e7]['isAddSuggestion'])&&_0x1e3f2e[_0x4bc3e7-0x1][_0x524b('0xf1')])_0x447c3d=_0x1e3f2e[_0x4bc3e7],_0x4a8451=_0x1e3f2e[_0x4bc3e7-0x1],_0x491e8c=_0x4bc3e7-0x1;else{if(!_0x1e3f2e[_0x4bc3e7][_0x524b('0xf1')]||!_0x1e3f2e[_0x4bc3e7-0x1][_0x524b('0x8f')]&&!_0x1e3f2e[_0x4bc3e7-0x1][_0x524b('0x60')])continue;_0x447c3d=_0x1e3f2e[_0x4bc3e7-0x1],_0x4a8451=_0x1e3f2e[_0x4bc3e7],_0x491e8c=_0x4bc3e7;}const _0x12ce2e=_0x447c3d[_0x524b('0x93')]==_0x4a8451[_0x524b('0x93')],_0x2e4dac=Math[_0x524b('0x39')](_0x447c3d[_0x524b('0x93')])<Math['abs'](_0x4a8451[_0x524b('0x93')])&&0x0==_0x4a8451[_0x524b('0xfb')];(_0x12ce2e||_0x2e4dac)&&(_0x1ff9a5['set'](_0x4a8451['id'],_0x447c3d['id']),_0x1e3f2e[_0x524b('0xc8')](_0x491e8c,0x1),_0x4bc3e7--,_0x447c3d[_0x524b('0x8f')]=!0x1);}for(let _0x4f4a84=0x0;_0x4f4a84<_0x1e3f2e[_0x524b('0x34')];_0x4f4a84++)_0x1ff9a5['has'](_0x1e3f2e[_0x4f4a84]['pairId'])&&(_0x1e3f2e[_0x4f4a84]['pairId']=_0x1ff9a5['get'](_0x1e3f2e[_0x4f4a84][_0x524b('0x101')]));}[_0x524b('0x6d')](_0x37343a){const _0x52ec6c=new Set(_0x37343a[_0x524b('0x9f')](_0x20e0d6=>_0x20e0d6['id']));for(let _0x18b5e4=0x0;_0x18b5e4<_0x37343a[_0x524b('0x34')];_0x18b5e4++)_0x52ec6c[_0x524b('0x68')](_0x37343a[_0x18b5e4][_0x524b('0x101')])||0x0==_0x37343a[_0x18b5e4][_0x524b('0xfb')]||(_0x37343a[_0x18b5e4][_0x524b('0x33')]=!0x0);return _0x37343a[_0x524b('0x75')](_0x5be712=>!_0x5be712[_0x524b('0x33')]);}[_0x524b('0x7e')](_0x3939e9){const _0x278906=new Set();for(let _0x29f739=0x0;_0x29f739<_0x3939e9[_0x524b('0x34')];_0x29f739++){if(_0x278906[_0x524b('0x68')](_0x3939e9[_0x29f739]['id'])&&_0x3939e9[_0x29f739][_0x524b('0xf1')]&&(_0x3939e9[_0x29f739][_0x524b('0x33')]=!0x0),_0x3939e9[_0x29f739][_0x524b('0x33')])continue;if(0x0==_0x3939e9[_0x29f739][_0x524b('0xfb')])continue;if('elementStart'!=_0x3939e9[_0x29f739][_0x524b('0x4e')])continue;if(null==_0x3939e9[_0x29f739][_0x524b('0x101')])continue;let _0x445723=_0x29f739+0x1,_0x50f0aa=0x0;for(;_0x3939e9[_0x445723]['id']!=_0x3939e9[_0x29f739][_0x524b('0x101')];)_0x524b('0x6')==_0x3939e9[_0x445723][_0x524b('0x4e')]?_0x50f0aa++:_0x524b('0x8a')==_0x3939e9[_0x445723][_0x524b('0x4e')]&&_0x50f0aa--,_0x445723++;if(0x0!=_0x50f0aa){if(_0x3939e9[_0x29f739][_0x524b('0xf1')])_0x3939e9[_0x29f739]['isIncorrect']=!0x0;else for(;_0x445723!=_0x29f739;)_0x3939e9[_0x445723][_0x524b('0xf1')]&&0x0!=_0x3939e9[_0x445723][_0x524b('0xfb')]&&(_0x3939e9[_0x445723][_0x524b('0x33')]=!0x0,_0x278906[_0x524b('0x46')](_0x3939e9[_0x445723]['pairId'])),_0x445723--;}}return _0x3939e9['filter'](_0x44e965=>!_0x44e965[_0x524b('0x33')]);}[_0x524b('0xa5')](_0x40fa06){const _0x4dfde3=this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xd2')];for(let _0x13daa3=0x0;_0x13daa3<_0x40fa06[_0x524b('0x34')];_0x13daa3++){if(!(_0x40fa06[_0x13daa3]['isAdded']||_0x40fa06[_0x13daa3][_0x524b('0x60')]||_0x40fa06[_0x13daa3][_0x524b('0xf1')]||_0x40fa06[_0x13daa3]['isRemoveSuggestion']))continue;if(0x0==_0x40fa06[_0x13daa3]['distance'])continue;const _0x3c94ca=_0x40fa06[_0x13daa3][_0x524b('0x2f')];_0x4dfde3[_0x524b('0xb7')](_0x3c94ca)||_0x4dfde3[_0x524b('0x36')](_0x3c94ca)||(_0x40fa06[_0x13daa3][_0x524b('0x8f')]&&delete _0x40fa06[_0x13daa3][_0x524b('0x8f')],_0x40fa06[_0x13daa3][_0x524b('0x60')]&&delete _0x40fa06[_0x13daa3][_0x524b('0x60')],_0x40fa06[_0x13daa3][_0x524b('0x5c')]&&delete _0x40fa06[_0x13daa3][_0x524b('0x5c')],_0x40fa06[_0x13daa3][_0x524b('0xf1')]&&(_0x40fa06[_0x13daa3]['isIncorrect']=!0x0));}return _0x40fa06[_0x524b('0x75')](_0x55551a=>!_0x55551a[_0x524b('0x33')]);}[_0x524b('0x6f')](_0x1b8bf1,_0x431639){const _0x52259b=new _0x39d827(),_0x2e2ed2=[],_0x47286c=new Map(),_0xb036a4=this[_0x524b('0xfc')][_0x524b('0x97')],_0x18541d=_0xb036a4[_0x524b('0xd2')],_0xae1271=[_0x52259b],_0x346768={},_0x2f58d8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3a536c=null;const _0x3bf15e=[0x0];for(let _0x537d67=0x0;_0x537d67<_0x1b8bf1[_0x524b('0x34')];_0x537d67++){let _0x2a9b33,_0x307808;if(_0x524b('0x6')===_0x1b8bf1[_0x537d67]['type']){_0x2a9b33=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e);const _0x1bc070=new _0xa0cd73(_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0xda')],_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0xfe')]());_0xae1271[0x0][_0x524b('0x7d')](_0x1bc070),_0x3bf15e[_0x524b('0xfa')](0x0),_0xae1271[_0x524b('0x6b')](_0x1bc070),_0x307808=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3a536c=null;}else{if('elementEnd'===_0x1b8bf1[_0x537d67][_0x524b('0x4e')])_0xae1271[_0x524b('0x59')](),_0x2a9b33=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3bf15e[_0x524b('0x6c')](),_0x3bf15e[_0x3bf15e['length']-0x1]++,_0x307808=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3a536c=null;else{if(_0x2a9b33=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e),_0x3a536c&&_0x107646(_0x3a536c,_0x1b8bf1[_0x537d67][_0x524b('0x2f')]))_0x3a536c[_0x524b('0x85')]+=_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0x47')];else{const _0x5bfdd2=new _0x5ee507(_0x1b8bf1[_0x537d67][_0x524b('0x2f')][_0x524b('0x47')],_0x1b8bf1[_0x537d67]['item'][_0x524b('0xfe')]());_0xae1271[0x0][_0x524b('0x7d')](_0x5bfdd2),_0x3a536c=_0x5bfdd2;}_0x3bf15e[_0x3bf15e['length']-0x1]+=_0x1b8bf1[_0x537d67][_0x524b('0x2f')]['offsetSize'],_0x307808=_0xb036a4[_0x524b('0x81')](_0x52259b,_0x3bf15e);}}for(const _0x217ce9 of _0x1b8bf1[_0x537d67][_0x524b('0xe4')])_0x47286c[_0x524b('0x50')](_0x217ce9,{'start':_0x2a9b33,'end':null});_0x13a9bd(_0x524b('0x5c'),_0x537d67,_0x2a9b33,_0x307808),_0x13a9bd(_0x524b('0x60'),_0x537d67,_0x2a9b33,_0x307808),_0x13a9bd(_0x524b('0xf1'),_0x537d67,_0x2a9b33,_0x307808),_0x13a9bd(_0x524b('0x8f'),_0x537d67,_0x2a9b33,_0x307808);for(const _0x3c6baf of _0x1b8bf1[_0x537d67][_0x524b('0x61')]){_0x47286c['get'](_0x3c6baf)['end']=_0x307808;}}for(const [_0x1fa0d1,_0x3e2169]of _0x47286c){const _0x29247a=this[_0x524b('0xfc')][_0x524b('0x97')]['createRange'](_0x3e2169['start'],_0x3e2169[_0x524b('0xe7')]);_0x52259b[_0x524b('0xf3')][_0x524b('0x50')](_0x1fa0d1,_0x29247a);}return _0x2e2ed2['sort']((_0x1a8758,_0x13d937)=>{const _0x390da9=_0x52259b[_0x524b('0xf3')][_0x524b('0x4')](_0x524b('0x54')+_0x1a8758['id']),_0x53cdb0=_0x52259b['markers']['get'](_0x524b('0x54')+_0x13d937['id']);return _0x390da9[_0x524b('0x4c')]['isBefore'](_0x53cdb0[_0x524b('0x4c')])?-0x1:_0x390da9['start']['isAfter'](_0x53cdb0[_0x524b('0x4c')])?0x1:_0x390da9[_0x524b('0xe7')]['isBefore'](_0x53cdb0['end'])?-0x1:_0x390da9[_0x524b('0xe7')][_0x524b('0x8c')](_0x53cdb0['end'])?0x1:'add'===_0x1a8758[_0x524b('0x4e')]?-0x1:0x1;}),{'root':_0x52259b,'changes':_0x2e2ed2};function _0x13a9bd(_0x1c4f40,_0x1ca185,_0x9bc821,_0x41efb3){const _0x49cb07=!!_0x1b8bf1[_0x1ca185][_0x1c4f40],_0x940a69=_0x49cb07?_0x1b8bf1[_0x1ca185][_0x1c4f40][_0x524b('0xb8')]:null,_0xde8e45=_0x1ca185===_0x1b8bf1[_0x524b('0x34')]-0x1,_0x41de93=_0x2f58d8[_0x1c4f40][0x0],_0x4714dc=_0x18541d['isObject'](_0x1b8bf1[_0x1ca185][_0x524b('0x2f')]);!_0x346768[_0x1c4f40]&&_0x49cb07?_0x346768[_0x1c4f40]={'start':_0x9bc821,'tapeItem':_0x1b8bf1[_0x1ca185],'userId':_0x940a69,'type':_0x1c4f40}:_0x346768[_0x1c4f40]&&!_0x49cb07?(_0x346768[_0x1c4f40]['end']=_0x9bc821,_0x6beb3b(_0x346768[_0x1c4f40]),_0x346768[_0x1c4f40]=null):_0x346768[_0x1c4f40]&&_0x49cb07&&_0x346768[_0x1c4f40][_0x524b('0xb8')]!==_0x940a69&&(_0x346768[_0x1c4f40][_0x524b('0xe7')]=_0x9bc821,_0x41de93&&_0x41de93['userId']===_0x346768[_0x1c4f40][_0x524b('0xb8')]||_0x6beb3b(_0x346768[_0x1c4f40]),_0x346768[_0x1c4f40]={'start':_0x9bc821,'tapeItem':_0x1b8bf1[_0x1ca185],'userId':_0x940a69,'type':_0x1c4f40}),_0x346768[_0x1c4f40]&&_0x4714dc&&(_0x524b('0x6')!==_0x1b8bf1[_0x1ca185][_0x524b('0x4e')]||_0x41de93&&_0x41de93[_0x524b('0xb8')]===_0x940a69||_0x2f58d8[_0x1c4f40][_0x524b('0x6b')]({'userId':_0x940a69,'object':_0x1b8bf1[_0x1ca185][_0x524b('0x2f')],'change':_0x346768[_0x1c4f40]}),_0x524b('0x8a')===_0x1b8bf1[_0x1ca185][_0x524b('0x4e')]&&_0x41de93&&_0x41de93[_0x524b('0x25')]===_0x1b8bf1[_0x1ca185][_0x524b('0x2f')]&&(_0x2f58d8[_0x1c4f40][_0x524b('0x59')](),_0x346768[_0x1c4f40]=_0x41de93['change'])),_0x346768[_0x1c4f40]&&_0xde8e45&&(_0x346768[_0x1c4f40]['end']=_0x41efb3,_0x6beb3b(_0x346768[_0x1c4f40]),_0x346768[_0x1c4f40]=null);}function _0x6beb3b({start:_0x339a11,end:_0x464bc8,tapeItem:_0x285bd1,userId:_0x50b62b,type:_0x1af128}){const _0x2840e5=_0x285bd1[_0x524b('0x2f')],_0x3eee5c=_0xb036a4['schema'][_0x524b('0xb7')](_0x2840e5)&&!_0xb036a4[_0x524b('0xd2')]['isLimit'](_0x2840e5),_0x846932=_0x339a11[_0x524b('0xb')]==_0x464bc8[_0x524b('0x80')]&&_0x464bc8['isAtStart'];if(_0x3eee5c&&_0x846932)return;const _0x2d9922=_0xb036a4[_0x524b('0xbf')](_0x339a11,_0x464bc8),_0xb7a0c0=_0x431639[_0x524b('0x4')](_0x50b62b),_0x200317=new _0x17521b({'author':_0xb7a0c0,'type':_0x524b('0x8f')==_0x1af128||_0x524b('0x60')==_0x1af128?'add':'remove','data':{'isSuggestion':_0x524b('0x60')==_0x1af128||'isRemoveSuggestion'==_0x1af128},'createdAt':new Date()});_0x2e2ed2[_0x524b('0xfa')](_0x200317),_0x52259b[_0x524b('0xf3')]['set']('revision:'+_0x200317['id'],_0x2d9922);}function _0x107646(_0x5d37af,_0x2996ca){const _0x38a880=_0x5d37af['getAttributes'](),_0x56583e=_0x2996ca[_0x524b('0xfe')]();for(const _0x375461 of _0x38a880){if(_0x375461[0x1]!==_0x2996ca[_0x524b('0x65')](_0x375461[0x0]))return!0x1;_0x56583e[_0x524b('0x3e')]();}return _0x56583e['next']()[_0x524b('0x63')];}}[_0x524b('0xf7')](){this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x74')]({'view':_0x524b('0xe2')}),this[_0x524b('0xfc')]['conversion']['for'](_0x524b('0xdf'))[_0x524b('0xff')]({'model':_0x524b('0xe2'),'view':_0x4926eb=>{const _0x25f29a=_0x4926eb[_0x524b('0x5f')][_0x524b('0x76')](':')[0x1],_0x32f547=this[_0x524b('0x95')](_0x25f29a);if(!_0x32f547)return null;const _0x30fa6b=_0x524b('0x46')==_0x32f547[_0x524b('0x4e')]?_0x524b('0x49'):_0x524b('0xf0'),_0x3cec53=['ck-suggestion-marker','ck-suggestion-marker-'+_0x30fa6b];return _0x32f547[_0x524b('0x47')][_0x524b('0x2d')]&&_0x3cec53[_0x524b('0xfa')]('ck-suggestion-marker-'+_0x30fa6b+_0x524b('0x2c')),this[_0x524b('0xd')]==_0x32f547&&_0x3cec53[_0x524b('0xfa')](_0x524b('0xf2')),{'classes':_0x3cec53,'attributes':{'data-change-id':_0x25f29a}};}}),this[_0x524b('0xfc')]['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))['add'](_0x2a527f=>{_0x2a527f['on']('element:pre',(_0x3c7d71,_0x187ffc,_0x332efa)=>{const _0x467a99=_0x187ffc[_0x524b('0x57')]['getChild'](0x0);if(!_0x467a99||!_0x467a99['is'](_0x524b('0xec'),_0x524b('0x72')))return;if(!_0x332efa[_0x524b('0x5e')][_0x524b('0x12')](_0x467a99,{'attributes':[_0x524b('0x3f'),_0x524b('0xe6')]}))return;const _0x1e4e1e=_0x187ffc[_0x524b('0x92')][_0x524b('0x4c')][_0x524b('0xb')];_0x332efa[_0x524b('0xcd')][_0x524b('0xc2')](_0x524b('0x3f'),_0x467a99[_0x524b('0x65')](_0x524b('0x3f')),_0x1e4e1e),_0x332efa[_0x524b('0xcd')][_0x524b('0xc2')](_0x524b('0xe6'),_0x467a99[_0x524b('0x65')](_0x524b('0xe6')),_0x1e4e1e);},{'priority':_0x524b('0x11')});}),this[_0x524b('0xfc')]['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x46')](_0x155021=>{_0x155021['on'](_0x524b('0xec'),(_0x5b8b03,_0x36bd6e,_0x1bef76)=>{if(!_0x1bef76['consumable'][_0x524b('0x12')](_0x36bd6e[_0x524b('0x57')],{'attributes':[_0x524b('0x3f'),_0x524b('0xe6')]}))return;if(_0x36bd6e['modelRange'][_0x524b('0xb1')])return;const _0x2e41b5=_0x36bd6e[_0x524b('0x92')][_0x524b('0x4c')][_0x524b('0xb')];_0x2e41b5[_0x524b('0xbd')](_0x524b('0x3f'))||_0x2e41b5[_0x524b('0xbd')](_0x524b('0xab'))||(_0x1bef76['writer'][_0x524b('0xc2')](_0x524b('0x3f'),_0x36bd6e[_0x524b('0x57')][_0x524b('0x65')](_0x524b('0x3f')),_0x2e41b5),_0x1bef76[_0x524b('0xcd')][_0x524b('0xc2')](_0x524b('0xe6'),_0x36bd6e[_0x524b('0x57')][_0x524b('0x65')](_0x524b('0xe6')),_0x2e41b5));},{'priority':_0x524b('0x11')});}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x3')]({'view':{'name':_0x524b('0x67'),'attributes':{'vid':!0x0}},'model':{'key':_0x524b('0xab'),'value':_0x35c502=>_0x35c502['getAttribute'](_0x524b('0xab'))}}),this['editor'][_0x524b('0x97')][_0x524b('0xd2')]['on'](_0x524b('0x88'),(_0x9db8f,[,_0x52a08d])=>{['vid_start','vid_end',_0x524b('0xab')][_0x524b('0x23')](_0x52a08d)&&(_0x9db8f['return']=!0x0,_0x9db8f[_0x524b('0x91')]());},{'priority':_0x524b('0xaa')}),this[_0x524b('0xfc')][_0x524b('0x5a')]['for'](_0x524b('0x96'))[_0x524b('0x46')](_0x349125=>{_0x349125['on']('attribute:vid',(_0x419c5b,_0x5bf877,_0x24f7ff)=>{if('\x20'!=_0x5bf877[_0x524b('0x2f')][_0x524b('0x47')]||_0x5bf877['item'][_0x524b('0x80')][_0x524b('0x69')]>0x1)return;if(!_0x24f7ff[_0x524b('0x5e')][_0x524b('0x12')](_0x5bf877[_0x524b('0x2f')],_0x419c5b[_0x524b('0xda')]))return;const _0x5bdcaf=_0x24f7ff[_0x524b('0xcd')],_0x2d0b20=_0x24f7ff[_0x524b('0x99')][_0x524b('0x15')](_0x5bf877[_0x524b('0x98')]);_0x5bdcaf[_0x524b('0x1c')](_0x2d0b20,_0x5bdcaf[_0x524b('0x100')](_0x524b('0x67')));});}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0x96'))[_0x524b('0x18')]({'model':'revision'}),this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x3c')]['on']('addMarker:revision',function(_0x466590){const _0xe4fe4f=_0x466590[_0x524b('0xee')][_0x524b('0x4')]('RevisionViewer');return(_0xbe6ca5,_0x1f8b8d,_0x34a4eb)=>{const _0x48bd82=_0x1f8b8d[_0x524b('0x5f')][_0x524b('0x76')](':')[0x1],_0x4d56b2=_0xe4fe4f['_getChangeFromId'](_0x48bd82);if(!_0x4d56b2)return null;const _0x519ce6=_0x524b('0x46')==_0x4d56b2[_0x524b('0x4e')]?_0x524b('0x76'):'merge';if(!_0x34a4eb[_0x524b('0x5e')][_0x524b('0x2a')](_0x1f8b8d['markerRange'],_0xbe6ca5['name']))return;const _0x4d566f=_0x1f8b8d[_0x524b('0x94')][_0x524b('0x106')](),_0x50a4be=_0x1f8b8d['markerRange'][_0x524b('0x4c')],_0x192636=_0x466590[_0x524b('0x97')]['schema'];let _0x180cd7=null,_0x41bd64=null,_0x4fbd18=!0x1,_0x59af42=!0x1;for(const _0x4140be of _0x4d566f){const _0x10e356=_0x4140be['item'];_0x4fbd18=_0x4fbd18||_0x192636[_0x524b('0xe8')](_0x10e356);const _0x59096d=_0x34a4eb['mapper'][_0x524b('0x10')](_0x10e356);if(_0x59096d&&_0x59096d[_0x524b('0x9c')](_0x524b('0x86')))return;'elementEnd'==_0x4140be['type']&&(_0x192636[_0x524b('0xb7')](_0x10e356)&&!_0x192636[_0x524b('0x36')](_0x10e356)&&(_0x10e356[_0x524b('0x104')]||_0x50a4be[_0x524b('0xe0')]?_0x180cd7&&_0x180cd7[_0x524b('0x80')]==_0x10e356||(_0x180cd7=_0x10e356,_0x5ada36(_0x4140be[_0x524b('0x71')]),_0x59af42=!0x0):_0x41bd64=_0x41bd64||_0x4140be[_0x524b('0x71')]));}function _0x5ada36(_0x29c896){const _0x3a8df1=_0x34a4eb[_0x524b('0xcd')][_0x524b('0x4f')]('span',{'class':_0x524b('0xb3')+_0x519ce6}),_0x25b617=_0x34a4eb[_0x524b('0x99')][_0x524b('0x8e')](_0x29c896);_0x4d56b2['data'][_0x524b('0x2d')]&&_0x34a4eb[_0x524b('0xcd')]['addClass']('ck-suggestion-marker-'+_0x519ce6+_0x524b('0x2c'),_0x3a8df1),_0xe4fe4f[_0x524b('0xd')]==_0x4d56b2&&_0x34a4eb['writer'][_0x524b('0xf')]('ck-suggestion-marker--active',_0x3a8df1),_0x34a4eb['writer']['insert'](_0x25b617,_0x3a8df1),_0x34a4eb[_0x524b('0x99')]['bindElementToMarker'](_0x3a8df1,_0x1f8b8d[_0x524b('0x5f')]);}_0x4fbd18||_0x59af42||!_0x41bd64||_0x5ada36(_0x41bd64);};}(this[_0x524b('0xfc')]),{'priority':'high'}),this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x3c')]['on'](_0x524b('0xea'),(_0x3b9bac,_0x414ed1,_0x3d125a)=>{const _0x40129b=_0x3d125a[_0x524b('0x99')]['markerNameToElements'](_0x414ed1['markerName']);if(_0x40129b)for(const _0x2b9aa6 of _0x40129b)(_0x2b9aa6[_0x524b('0x8')]('ck-suggestion-marker-split')||_0x2b9aa6['hasClass'](_0x524b('0xd5')))&&(_0x3d125a[_0x524b('0x99')]['unbindElementFromMarkerName'](_0x2b9aa6,_0x414ed1[_0x524b('0x5f')]),_0x3d125a[_0x524b('0xcd')][_0x524b('0x2b')](_0x2b9aa6));},{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')]['editing'][_0x524b('0x3c')]['on'](_0x524b('0x28'),(_0x5acf0f,_0x34dc55,_0x3edb35)=>{const _0x23b75a=_0x34dc55['markerName'][_0x524b('0x76')](':')[0x1],_0x12a878=this[_0x524b('0x95')](_0x23b75a);if(!_0x12a878)return null;const _0x1d9713='add'==_0x12a878[_0x524b('0x4e')]?_0x524b('0x76'):_0x524b('0x13');if(_0x3edb35[_0x524b('0x5e')][_0x524b('0x2a')](_0x34dc55[_0x524b('0x94')],_0x5acf0f['name']))for(const _0x27f254 of _0x34dc55[_0x524b('0x94')][_0x524b('0xf6')]()){if(!_0x27f254['is']('element',_0x524b('0x4b')))continue;const _0x20056d=_0x3edb35[_0x524b('0xcd')][_0x524b('0x4f')]('span',{'class':_0x524b('0xb3')+_0x1d9713}),_0x2dc71d=_0x3edb35['mapper'][_0x524b('0x8e')](this['editor'][_0x524b('0x97')]['createPositionBefore'](_0x27f254));_0x12a878[_0x524b('0x47')][_0x524b('0x2d')]&&_0x3edb35[_0x524b('0xcd')]['addClass']('ck-suggestion-marker-'+_0x1d9713+_0x524b('0x2c'),_0x20056d),this[_0x524b('0xd')]==_0x12a878&&_0x3edb35[_0x524b('0xcd')][_0x524b('0xf')](_0x524b('0xf2'),_0x20056d),_0x3edb35[_0x524b('0xcd')]['insert'](_0x2dc71d,_0x20056d),_0x3edb35['mapper']['bindElementToMarker'](_0x20056d,_0x34dc55[_0x524b('0x5f')]);}},{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')]['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))[_0x524b('0x74')]({'view':_0x524b('0x7b'),'model':_0x3804c4=>'revision-comment:'+_0x3804c4,'converterPriority':'highest'}),this['editor']['conversion'][_0x524b('0x9b')](_0x524b('0xcc'))['dataToMarker']({'view':_0x524b('0xdd'),'model':_0x13faa0=>_0x524b('0xd6')+_0x13faa0,'converterPriority':_0x524b('0xaa')}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0x96'))['markerToData']({'model':'revision-suggestion','view':_0x425e21=>_0x524b('0x26')+_0x425e21,'converterPriority':_0x524b('0xaa')}),this[_0x524b('0xfc')][_0x524b('0x5a')][_0x524b('0x9b')](_0x524b('0xdf'))[_0x524b('0xff')]({'model':'revision-suggestion','view':_0x217794=>{const _0x13b4e4=_0x217794[_0x524b('0x5f')][_0x524b('0x76')](':')[0x1];return'insertion'!=_0x13b4e4&&_0x524b('0xf0')!=_0x13b4e4?null:{'classes':[_0x524b('0xe'),'ck-suggestion-preview-marker-'+_0x13b4e4]};}}),this['editor'][_0x524b('0x73')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this[_0x524b('0xfc')],_0x524b('0x13')),{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x3c')]['on'](_0x524b('0x3d'),Z(this[_0x524b('0xfc')],_0x524b('0x76')),{'priority':_0x524b('0x79')}),this[_0x524b('0xfc')]['editing'][_0x524b('0x3c')]['on'](_0x524b('0x8b'),(_0x4cc1bd,_0x922277,_0x4052a7)=>{const _0x37d313=_0x4052a7[_0x524b('0x99')]['markerNameToElements'](_0x922277[_0x524b('0x5f')]);if(_0x37d313)for(const _0x25260e of _0x37d313)_0x25260e['is'](_0x524b('0xa4'))&&(_0x4052a7[_0x524b('0x99')]['unbindElementFromMarkerName'](_0x25260e,_0x922277[_0x524b('0x5f')]),_0x4052a7[_0x524b('0xcd')][_0x524b('0x2b')](_0x25260e));},{'priority':_0x524b('0x79')});}[_0x524b('0x95')](_0x323c0e){return this['_changeIdToChange'][_0x524b('0x4')](_0x323c0e);}[_0x524b('0x27')](_0x24205){this[_0x524b('0xf5')]&&this['_changeView']['destroy'](),this[_0x524b('0xf5')]=new _0x5e30ed(this[_0x524b('0xfc')]['locale'],_0x24205);const _0x172a55=this['editor']['model'][_0x524b('0xf3')][_0x524b('0x4')](_0x524b('0x54')+_0x24205['id']);return this['_changeView'][_0x524b('0xc7')]=()=>_0x357e15(this[_0x524b('0xfc')][_0x524b('0x73')],_0x172a55),this[_0x524b('0xf5')];}[_0x524b('0x62')](){this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xa0')]['selection'][_0x524b('0x84')](_0x524b('0xe2')),this['on'](_0x524b('0x8d'),(_0x3ffb5b,_0x526e25,_0x3fc6dc,_0x1421c5)=>{_0x1421c5&&this[_0x524b('0x40')][_0x524b('0x2b')](_0x1421c5),_0x3fc6dc&&(this[_0x524b('0x40')][_0x524b('0x46')]({'view':_0x3fc6dc,'stackId':_0x524b('0xdb'),'position':{'target':_0x3fc6dc['_target']}}),this[_0x524b('0x40')][_0x524b('0x31')](_0x524b('0xdb')));}),this['on'](_0x524b('0xdc'),(_0x3b970a,_0xf70efe,_0x16fa26,_0x253527)=>{this[_0x524b('0x6a')]=_0x16fa26?this[_0x524b('0x27')](_0x16fa26):null,this['editor'][_0x524b('0x97')][_0x524b('0xd1')](()=>{const _0x536fb7=this[_0x524b('0xfc')][_0x524b('0x73')];_0x253527&&_0x536fb7[_0x524b('0xce')](_0x524b('0x54')+_0x253527['id']),_0x16fa26&&_0x536fb7[_0x524b('0xce')]('revision:'+_0x16fa26['id']);});}),this[_0x524b('0x66')](this[_0x524b('0xfc')][_0x524b('0x73')][_0x524b('0x21')][_0x524b('0xa0')],_0x524b('0x20'),(_0x50cfbe,_0x33eeab)=>{if(this[_0x524b('0xd')])return;const _0x35e746=this[_0x524b('0xd9')](_0x33eeab['target']),_0x85a2d6=this['_changeIdToChange'][_0x524b('0x4')](_0x35e746);this[_0x524b('0x6a')]=_0x85a2d6?this[_0x524b('0x27')](_0x85a2d6):null;}),this[_0x524b('0x66')](this['editor']['editing'][_0x524b('0x21')][_0x524b('0xa0')],_0x524b('0x24'),(_0x584976,_0x3d29cb)=>{const _0x427cea=this['_findChangeIdFromDomTarget'](_0x3d29cb[_0x524b('0x1a')]),_0x246e20=this[_0x524b('0xae')][_0x524b('0x4')](_0x427cea);this[_0x524b('0xd')]=_0x246e20||null;});}[_0x524b('0xd9')](_0x4fc7e2){do{const _0xc6a33c=_0x4fc7e2[_0x524b('0x65')](_0x524b('0x5b'));if(_0xc6a33c)return _0xc6a33c;_0x4fc7e2=_0x4fc7e2[_0x524b('0x80')];}while(_0x4fc7e2);return null;}[_0x524b('0xa1')](){this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xd1')](_0xb5e2f1=>{for(const _0x135786 of this[_0x524b('0xfc')][_0x524b('0x97')][_0x524b('0xf3')])_0xb5e2f1['removeMarker'](_0x135786);});}}function Z(_0x1b66c8,_0x39fd91){return(_0x3a5624,_0x422665,_0x240ff8)=>{if(!_0x240ff8[_0x524b('0x5e')][_0x524b('0x2a')](_0x422665[_0x524b('0x94')],_0x3a5624[_0x524b('0xda')]))return;const _0x3922d7=_0x422665[_0x524b('0x94')][_0x524b('0x106')](),_0x504a7b=_0x422665['markerRange'][_0x524b('0x4c')],_0x4b2d61=_0x1b66c8[_0x524b('0x97')]['schema'];let _0x344622=null,_0x16d62b=null,_0x4350b1=!0x1,_0x32a160=!0x1;for(const _0x5446de of _0x3922d7){const _0x4a45b3=_0x5446de[_0x524b('0x2f')];_0x4350b1=_0x4350b1||_0x4b2d61[_0x524b('0xe8')](_0x4a45b3);const _0x1495cc=_0x240ff8[_0x524b('0x99')][_0x524b('0x10')](_0x4a45b3);if(_0x1495cc&&_0x1495cc['getCustomProperty'](_0x524b('0x86')))return;_0x524b('0x8a')==_0x5446de[_0x524b('0x4e')]&&(_0x4b2d61[_0x524b('0xb7')](_0x4a45b3)&&!_0x4b2d61[_0x524b('0x36')](_0x4a45b3)&&(_0x4a45b3[_0x524b('0x104')]||_0x504a7b[_0x524b('0xe0')]?_0x344622&&_0x344622[_0x524b('0x80')]==_0x4a45b3||(_0x344622=_0x4a45b3,_0x3f17c5(_0x5446de[_0x524b('0x71')]),_0x32a160=!0x0):_0x16d62b=_0x16d62b||_0x5446de[_0x524b('0x71')]));}function _0x3f17c5(_0x1bf2ed){const _0xe9bbef=_0x240ff8[_0x524b('0x99')][_0x524b('0x8e')](_0x1bf2ed),_0xb08918=_0x240ff8[_0x524b('0xcd')][_0x524b('0x4f')](_0x524b('0x67'),{'class':_0x524b('0x2e')+_0x39fd91});_0x240ff8[_0x524b('0xcd')]['insert'](_0xe9bbef,_0xb08918),_0x240ff8[_0x524b('0x99')]['bindElementToMarker'](_0xb08918,_0x422665['markerName']);}_0x4350b1||_0x32a160||!_0x16d62b||_0x3f17c5(_0x16d62b);};}_0xdcc6b(d,_0x41e455);class tt extends _0x4709cd{constructor(_0x1c7b8a){super(_0x1c7b8a);const _0x38bd2e=_0x1c7b8a[_0x524b('0xee')][_0x524b('0x4')](d);this[_0x524b('0x42')](_0x1c7b8a,_0x524b('0xe9')),this[_0x524b('0xa8')](_0x524b('0x89')),this[_0x524b('0x66')](_0x38bd2e,_0x524b('0xbc'),()=>this[_0x524b('0x0')]()),this[_0x524b('0x66')](_0x38bd2e,_0x524b('0xed'),()=>this[_0x524b('0x0')]());}['execute'](){const _0x235739=this[_0x524b('0xfc')],_0x5e9e1f=_0x235739[_0x524b('0xee')][_0x524b('0x4')](d),_0x3ff4b3=_0x5e9e1f[_0x524b('0xb6')]?_0x5e9e1f[_0x524b('0x51')][_0x524b('0x19')]:null;_0x235739['config']['get'](_0x524b('0x58'))[_0x524b('0xb5')](_0x3ff4b3);}[_0x524b('0x0')](){const {isReady:_0xfd3145,isEnabled:_0x43d424}=this[_0x524b('0xfc')][_0x524b('0xee')][_0x524b('0x4')](d);this['isEnabled']=_0xfd3145&&_0x43d424;}}class et extends _0x4709cd{constructor(_0x31c7e8,{direction:_0x3aaa9d}){super(_0x31c7e8);const _0x44ce64=_0x31c7e8[_0x524b('0xee')]['get'](d);this[_0x524b('0x42')](_0x31c7e8,'change:isReadOnly'),this['clearForceDisabled']('readOnlyMode'),this['_step']=_0x524b('0xe5')===_0x3aaa9d?0x1:-0x1,this[_0x524b('0x66')](_0x44ce64,_0x524b('0xbc'),()=>this[_0x524b('0x0')]()),this['listenTo'](_0x44ce64,_0x524b('0xed'),()=>this['refresh']());}[_0x524b('0x107')](){const _0x5d0b76=this[_0x524b('0xfc')],_0x1969ad=_0x5d0b76[_0x524b('0xee')]['get'](d),{isNavigationMode:_0x2e6701,currentChangeNumber:_0x1aa421}=_0x1969ad;_0x1969ad[_0x524b('0xd')]=_0x2e6701?_0x1969ad[_0x524b('0x51')][_0x524b('0x82')][_0x524b('0x4')](_0x1aa421+this['_step']):_0x1969ad['diff'][_0x524b('0x82')]['first'];const _0x56a9b5=_0x5d0b76[_0x524b('0x97')][_0x524b('0xf3')][_0x524b('0x4')](_0x524b('0x54')+_0x1969ad['activeChange']['id']),_0x3313a0=_0x357e15(_0x5d0b76[_0x524b('0x73')],_0x56a9b5);_0xce6de3({'target':_0x3313a0,'viewportOffset':0x28});}[_0x524b('0x0')](){const {isNavigationMode:_0x13163a,currentChangeNumber:_0x178e23,numberOfChanges:_0x377f0c,isReady:_0x5ab825,isEnabled:_0x17dcfe}=this[_0x524b('0xfc')][_0x524b('0xee')][_0x524b('0x4')](d);this[_0x524b('0xc0')]=!!(_0x17dcfe&&_0x5ab825&&_0x377f0c)&&(!_0x13163a||(0x1===this[_0x524b('0xc3')]?_0x178e23<_0x377f0c-0x1:_0x178e23>0x0));}}
|
|
23
|
+
const _0x2959=['ck-suggestion-preview-marker-','vid_end','addMarker:revision-suggestion:deletion','showPreviousChange','removeMarker:revision','previousPosition','RevisionViewer','createPositionFromPath','createRangeIn','pluginName','enqueueChange','_changeView','test','getAttribute','isRemoveSuggestion','pop','span','nextPosition','length','setAttribute','delete','split','for','ck-suggestion-marker-merge','deletion','_markInsertions','pairId','getIndex','merge','_markSuggestions','createUIElement','_setDistance','range','writer','<p></p>','_removeRevisionMarkers','startIndex','ck-suggestion-marker-split','attribute:vid','restoreRevisionCallback','nodeAfter','parent','change:activeChange','ck-suggestion-marker-','isAfter','oldRevisionId','uiElement','collaboration.channelId','revision-suggestion:','isAtEnd','getRootNames','WidgetToolbarRepository','low','vid','checkAttribute','markersEnd','getRoot','isBefore','revision-end','selection','unshift','commands','string','element','_getRevisionsRange','_revisions','_refreshStartEndIndex','getAttributes','locale','diffData','isBlock','observeMarkers','markerRange','elementToAttribute','_fixObsoleteTags','_findChangeIdFromDomTarget','getWalker','processor','destroy','enableReadOnlyMode','restoreRevision','ck-editor__editable__overlay','isEnabled','nextSibling','consumable','toViewElement','readOnlyMode','document','children','config','shift','index','model','removeMarker:revision-suggestion','setData','isInline','markerToHighlight','removeClass','highest','level','diff','_appendChild','addHighlight','name','refresh','showStack','markers','suggestion:','viewItem','high','error','softBreak','getChild','revision-start','upcast','_setConversion','roots','type','getRevision','return','text','then','set','addMarker:revision-suggestion:insertion','sort','_getChangeFromId','_step','insertions','change:isEnabled','abs','side','change','revision-viewer','bind','editing','dataDowncast','isAtStart','repository','view','done','change:isReady','data-change-id','startsWith','splice','isContent','addRevision','execute','maxOffset','isAddSuggestion','stop','deletions','change:activeView','init','comment','changes','object','_processTape','mapper','isAdded','revision:','data-revision-','activeView','clearForceDisabled','has','endIndex','plugins','_makeModelFromTape','remove','push','_markMarkers','ck-suggestion-marker','data','end','keys','_removeUnsupportedChanges','_target','dataToMarker','toViewPosition','resolve','elementStart','schema','insert','conversion','isEqual','offsetSize','ck-suggestion-preview-marker','forEach','distance','wrap','isObject','map','unbindElementFromMarkerName','vid_start','change:numberOfChanges','ck-suggestion-marker--active','parse','all','slice','first','editor','listenTo','catch','hasClass','toData','markerName','_changeIdToChange','addClass','forceDisabled','revisionHistoryLabel','includes','isReady','change:isReadOnly','hasAttribute','_threeWayMerge','isLimit','-new','_cleanUp','newRevisionId','start','filter','_balloon','createAttributeElement','next','isRemoved','_getViewObj','_markMismatchedRemovedTags','_getDiff','add','getItems','_makeTape','_removeMissingPairs','_makeModelFromViewString','requires','isCollapsed','default','markerNameToElements','mousedown','createRange','target','removeMarker','loadRevisionData','consume','modelRange','numberOfChanges','revision-suggestion','get','markerToData','_joinTapes','forward','insertion','elementEnd','userId','downcastDispatcher','isIncorrect','item','revision','code','isSuggestion','concat','showNextChange','suggestion','createRevision','clear','adapter','reconvertMarker','getCustomProperty','bindElementToMarker','markersStart','activeChange','from','attributes','_update','_initInteractions'];(function(_0x24fcc1,_0x2959e1){const _0x1294bd=function(_0x184096){while(--_0x184096){_0x24fcc1['push'](_0x24fcc1['shift']());}};_0x1294bd(++_0x2959e1);}(_0x2959,0xff));const _0x1294=function(_0x24fcc1,_0x2959e1){_0x24fcc1=_0x24fcc1-0x0;let _0x1294bd=_0x2959[_0x24fcc1];return _0x1294bd;};import{Plugin as _0x2215de,Command as _0x4474a2}from'ckeditor5/src/core';import{ObservableMixin as _0x518962,mix as _0x29ec24,scrollViewportToShowTarget as _0x5eebd0}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5ebcec}from'ckeditor5/src/ui';import{DocumentFragment as _0x271f2f,Element as _0x5b1c31,Text as _0x4b240a,ViewDocumentFragment as _0x1f5ced,ViewText as _0x4e5cb1,ViewElement as _0x501357,ViewContainerElement as _0x2f9a5c,ViewAttributeElement as _0x589465,ViewEmptyElement as _0x4fe8d8,ViewRawElement as _0x117a84,ViewUIElement as _0x5036a7}from'ckeditor5/src/engine';import{Users as _0x166c51,getMarkerDomElement as _0xdd8ba6}from'ckeditor5-collaboration/src/collaboration-core';import _0x1ea0d4 from'./ui/revisionviewer/changedetailsview';import _0x3c977e from'./revisionsrepository';import _0x560c95 from'./changeitem';import _0x4155b3 from'./revisiondiff';import'../theme/revisionviewer.css';const K={'c':_0x2f9a5c,'a':_0x589465,'e':_0x4fe8d8,'r':_0x117a84,'u':_0x5036a7};export default class w extends _0x2215de{static get[_0x1294('0x1b')](){return _0x1294('0x18');}static get[_0x1294('0xfa')](){return[_0x166c51,_0x5ebcec,_0x3c977e];}constructor(..._0x34d4e8){super(..._0x34d4e8),this[_0x1294('0x9b')]=this['editor'][_0x1294('0xb7')][_0x1294('0x107')]('RevisionsRepository'),this[_0x1294('0x8c')](_0x1294('0xd'),null),this[_0x1294('0x8c')]('activeView',null),this['set'](_0x1294('0x76'),null),this['set'](_0x1294('0xe4'),!0x1),this['set'](_0x1294('0x64'),!0x0),this['on'](_0x1294('0x92'),(_0x354466,_0x376496,_0x1e4f7c)=>{this[_0x1294('0xd')]=null,this[_0x1294('0xb3')]=null,this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x9c')][_0x1294('0x95')](_0x306386=>{for(const _0x422c8d of this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x9c')][_0x1294('0x69')][_0x1294('0x86')])_0x1e4f7c?_0x306386[_0x1294('0x73')](_0x1294('0x63'),_0x422c8d):_0x306386['addClass'](_0x1294('0x63'),_0x422c8d);});}),this[_0x1294('0x97')]('isNavigationMode')['to'](this,'activeChange',_0xfa46a6=>null!==_0xfa46a6),this[_0x1294('0x97')]('currentChangeNumber')['to'](this,_0x1294('0xe4'),this,'diff',this,_0x1294('0xd'),(_0x539385,_0x1844ed,_0x1c114b)=>_0x539385&&_0x1c114b?_0x1844ed['changes'][_0x1294('0x2d')](_0x1c114b):0x0),this[_0x1294('0x97')](_0x1294('0x105'))['to'](this,_0x1294('0xe4'),this,_0x1294('0x76'),(_0x3bb371,_0x3c3b79)=>_0x3bb371?_0x3c3b79[_0x1294('0xac')][_0x1294('0x24')]:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this[_0x1294('0xee')]=this['editor'][_0x1294('0xb7')][_0x1294('0x107')](_0x5ebcec);}[_0x1294('0xaa')](){const _0x575415=this[_0x1294('0xd9')],_0x52b62d=new Y(_0x575415,{'direction':'backward'}),_0x4b2c7a=new Y(_0x575415,{'direction':'forward'});_0x575415[_0x1294('0x4f')][_0x1294('0xf5')](_0x1294('0x15'),_0x52b62d),_0x575415['commands'][_0x1294('0xf5')](_0x1294('0x4'),_0x4b2c7a),_0x575415[_0x1294('0x4f')]['add'](_0x1294('0x62'),new X(_0x575415)),this['on'](_0x1294('0xd3'),()=>{_0x52b62d[_0x1294('0x7a')](),_0x4b2c7a['refresh']();}),this[_0x1294('0x85')](),this[_0x1294('0x11')](),_0x575415[_0x1294('0x61')](_0x1294('0x96')),_0x575415['plugins'][_0x1294('0xb5')]('WidgetToolbarRepository')&&_0x575415[_0x1294('0xb7')]['get'](_0x1294('0x45'))[_0x1294('0xe1')](_0x1294('0x96'));}async['getRevisionData'](_0x54fb20){await this[_0x1294('0x102')](_0x54fb20);const _0x38c0ed={};for(const _0x1eb0a1 in _0x54fb20[_0x1294('0x57')]){const _0x1c757c=this['_removeRevisionMarkers'](JSON[_0x1294('0xd5')](_0x54fb20[_0x1294('0x57')][_0x1eb0a1][_0x1294('0x91')])),_0x2cf333=this[_0x1294('0xd9')]['editing'][_0x1294('0x9c')]['document'],_0xffb961=new _0x1f5ced(_0x2cf333,_0x1c757c['map'](_0x304cfe=>this[_0x1294('0xf2')](_0x304cfe)));this[_0x1294('0xd9')][_0x1294('0xbd')]['processor']['useFillerType']('marked'),_0x38c0ed[_0x1eb0a1]=this[_0x1294('0xd9')][_0x1294('0xbd')][_0x1294('0x5f')][_0x1294('0xdd')](_0xffb961),this[_0x1294('0xd9')][_0x1294('0xbd')][_0x1294('0x5f')]['useFillerType'](_0x1294('0xfc'));}return _0x38c0ed;}['_removeRevisionMarkers'](_0x3730d9){return(_0x3730d9=_0x3730d9[_0x1294('0xed')](_0x350ea9=>!_0x350ea9[_0x1294('0x79')]||_0x1294('0x83')!==_0x350ea9[_0x1294('0x79')]&&_0x1294('0x4c')!==_0x350ea9[_0x1294('0x79')]))[_0x1294('0xcc')](_0x1ac6c3=>{_0x1294('0x50')!=typeof _0x1ac6c3&&(_0x1ac6c3[_0x1294('0x6a')]=this[_0x1294('0x35')](_0x1ac6c3['children']),_0x1ac6c3[_0x1294('0xf')]=_0x1ac6c3['attributes'][_0x1294('0xed')](_0xa0a0d9=>!_0xa0a0d9[0x0][_0x1294('0xa0')](_0x1294('0xb2'))));}),_0x3730d9;}['compare'](_0x1f4302,_0x5e2a7b,_0x2a208a=!0x1){if(!this['isEnabled'])return;const _0x55c4d0=this[_0x1294('0x76')],_0x9c8106=this['repository'],_0x1f49c2=_0x1294('0x50')==typeof _0x1f4302?_0x9c8106[_0x1294('0x88')](_0x1f4302):_0x1f4302,_0x356498=_0x1294('0x50')==typeof _0x5e2a7b?_0x9c8106[_0x1294('0x88')](_0x5e2a7b):_0x5e2a7b,_0x2dd33a=_0x1f49c2['id'],_0x4cd085=_0x356498?_0x356498['id']:null;if(!_0x2a208a&&this[_0x1294('0x76')]&&this[_0x1294('0x76')][_0x1294('0xeb')]===_0x2dd33a&&this[_0x1294('0x76')][_0x1294('0x3f')]===_0x4cd085)return Promise[_0x1294('0xc4')]();this[_0x1294('0xe4')]=!0x1,this[_0x1294('0xb3')]=null,this[_0x1294('0xd')]=null,this[_0x1294('0x76')]=new _0x4155b3(_0x2dd33a,_0x4cd085);const _0x478a7d=this[_0x1294('0x52')](_0x1f49c2,_0x356498,!0x0)[_0x1294('0xd0')](_0xeb7495=>this[_0x1294('0x102')](_0xeb7495));return _0x478a7d[_0x1294('0xba')](new Promise(_0x540feb=>{setTimeout(_0x540feb,0x14);})),Promise[_0x1294('0xd6')](_0x478a7d)[_0x1294('0x8b')](()=>{if(!this[_0x1294('0x64')])return;this['_cleanUp']();const _0x3214f3=this[_0x1294('0xf4')](_0x2dd33a,_0x4cd085);this[_0x1294('0x76')]['_setData'](_0x3214f3);for(const _0x42ef24 of this['diff'][_0x1294('0xac')])this[_0x1294('0xdf')][_0x1294('0x8c')](_0x42ef24['id'],_0x42ef24);this[_0x1294('0xd9')]['model'][_0x1294('0x1c')]({'isUndoable':!0x1},_0x149604=>{for(const _0x44eb93 of Object[_0x1294('0xbf')](_0x3214f3[_0x1294('0x6e')])){const _0x1ba8d6=this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0x69')][_0x1294('0x4a')](_0x44eb93);_0x149604['remove'](_0x149604[_0x1294('0x1a')](_0x1ba8d6)),_0x149604[_0x1294('0xc7')](_0x3214f3[_0x1294('0x6e')][_0x44eb93],_0x1ba8d6,0x0);}}),this[_0x1294('0xe4')]=!0x0;})[_0x1294('0xdb')](_0x6dfd62=>{console[_0x1294('0x80')](_0x6dfd62),this['_cleanUp'](),_0x55c4d0?this[_0x1294('0x76')]=_0x55c4d0:this[_0x1294('0xd9')][_0x1294('0x70')](_0x1294('0x34')),this[_0x1294('0xe4')]=!0x0;});}['destroy'](){this[_0x1294('0xb3')]=null,this['_changeView']&&this[_0x1294('0x1d')]['destroy']();}['addRevisionData'](_0x2a8fcd,_0x57e31a){const _0x3bf594=this[_0x1294('0x9b')][_0x1294('0x6')](_0x2a8fcd);return _0x3bf594['on'](_0x1294('0x10'),(_0x536ad6,_0x1eb673,_0x525577)=>_0x57e31a(_0x1eb673,_0x525577,_0x3bf594)),this['repository'][_0x1294('0xa3')](_0x3bf594),_0x3bf594;}['loadRevisionData'](_0x121298){if(!_0x121298||_0x121298[_0x1294('0x57')])return Promise[_0x1294('0xc4')]();{const _0x55150e=this['editor'][_0x1294('0x6b')][_0x1294('0x107')](_0x1294('0x41'));return this[_0x1294('0x8')]['getRevision']({'channelId':_0x55150e,'revisionId':_0x121298['id']})['then'](_0x5027b5=>{_0x121298[_0x1294('0x10')]({'diffData':_0x5027b5[_0x1294('0x57')]},!0x0);});}}[_0x1294('0xea')](){this[_0x1294('0xd')]=null,this['_cleanMarkers'](),this[_0x1294('0x1d')]&&this['_changeView'][_0x1294('0x60')](),this[_0x1294('0x1d')]=null,this[_0x1294('0xdf')][_0x1294('0x7')]();}['_makeTape'](_0x3cf27d){const _0x50532d=Array[_0x1294('0xe')](_0x3cf27d[_0x1294('0x7c')])[_0x1294('0xed')](([_0x2723b4,_0xad7cbd])=>_0x2723b4['startsWith'](_0x1294('0xb1'))&&!_0xad7cbd[_0x1294('0xfb')]),_0x301bb3=Array['from'](this[_0x1294('0xd9')]['model']['createRangeIn'](_0x3cf27d)[_0x1294('0x5e')]({'singleCharacters':!0x0}));if(0x0!=_0x50532d[_0x1294('0x24')])for(const _0x1d2884 of _0x301bb3){const [_0x2704ef,_0x495d39]=_0x50532d[0x0],[,_0x2069f7,_0x413058]=_0x2704ef[_0x1294('0x27')](':');if(_0x495d39[_0x1294('0xbe')][_0x1294('0xc9')](_0x1d2884['nextPosition'])&&_0x50532d[_0x1294('0x6c')](),(_0x1d2884[_0x1294('0x17')][_0x1294('0xc9')](_0x495d39[_0x1294('0xec')])||_0x1d2884[_0x1294('0x17')][_0x1294('0x3e')](_0x495d39[_0x1294('0xec')]))&&(_0x1294('0x10b')==_0x2069f7?_0x1d2884[_0x1294('0xb0')]={'userId':_0x413058}:_0x1294('0x2a')==_0x2069f7&&(_0x1d2884['isRemoved']={'userId':_0x413058})),0x0==_0x50532d['length'])break;}return _0x301bb3;}['_refreshStartEndIndex'](_0x4e551f){const _0x225c8f=new Map();for(let _0x7d4aa3=0x0;_0x7d4aa3<_0x4e551f[_0x1294('0x24')];_0x7d4aa3++)_0x1294('0x8a')===_0x4e551f[_0x7d4aa3][_0x1294('0x87')]?(_0x4e551f[_0x7d4aa3][_0x1294('0x110')][_0x1294('0x36')]=_0x7d4aa3,_0x4e551f[_0x7d4aa3][_0x1294('0x110')][_0x1294('0xb6')]=_0x7d4aa3):(_0x1294('0xc5')===_0x4e551f[_0x7d4aa3]['type']?_0x4e551f[_0x7d4aa3][_0x1294('0x110')][_0x1294('0x36')]=_0x7d4aa3:_0x1294('0x10c')===_0x4e551f[_0x7d4aa3][_0x1294('0x87')]&&(_0x4e551f[_0x7d4aa3][_0x1294('0x110')][_0x1294('0xb6')]=_0x7d4aa3),_0x225c8f[_0x1294('0x8c')](_0x4e551f[_0x7d4aa3]['id'],_0x7d4aa3));for(const _0x50607a of _0x225c8f['values']())_0x1294('0xc5')===_0x4e551f[_0x50607a][_0x1294('0x87')]?_0x4e551f[_0x50607a][_0x1294('0x110')]['endIndex']=_0x225c8f[_0x1294('0x107')](_0x4e551f[_0x50607a]['pairId']):_0x1294('0x10c')===_0x4e551f[_0x50607a]['type']&&(_0x4e551f[_0x50607a][_0x1294('0x110')][_0x1294('0x36')]=_0x225c8f[_0x1294('0x107')](_0x4e551f[_0x50607a]['pairId']));}[_0x1294('0xae')](_0x239ba9){for(let _0x31f513=0x0;_0x31f513<_0x239ba9[_0x1294('0x24')];_0x31f513++){if(_0x1294('0xc5')===_0x239ba9[_0x31f513]['type'])_0x239ba9[_0x31f513]['item']['startIndex']=_0x31f513;else{if('elementEnd'===_0x239ba9[_0x31f513][_0x1294('0x87')]){_0x239ba9[_0x31f513][_0x1294('0x110')]['endIndex']=_0x31f513;const _0xa4bbcd=_0x239ba9[_0x31f513][_0x1294('0x110')][_0x1294('0x36')];_0x239ba9[_0xa4bbcd][_0x1294('0x2c')]=_0x239ba9[_0x31f513]['id'],_0x239ba9[_0x31f513][_0x1294('0x2c')]=_0x239ba9[_0xa4bbcd]['id'];}else _0x239ba9[_0x31f513]['item'][_0x1294('0x36')]=_0x31f513,_0x239ba9[_0x31f513][_0x1294('0x110')][_0x1294('0xb6')]=_0x31f513,_0x239ba9[_0x31f513]['pairId']=null;}_0x239ba9[_0x31f513][_0x1294('0xc')]||(_0x239ba9[_0x31f513][_0x1294('0xc')]=[],_0x239ba9[_0x31f513][_0x1294('0x49')]=[]);}}['_markInsertions'](_0xb02772,_0x3045ee){const _0x253209=_0xb02772[_0x1294('0xed')](_0x1fdb1a=>!_0x1fdb1a['isAdded']);for(let _0x41b3c5=0x0;_0x41b3c5<_0x3045ee['length'];_0x41b3c5++)_0x3045ee[_0x41b3c5][_0x1294('0xb0')]&&(_0x253209[_0x41b3c5][_0x1294('0xb0')]=_0x3045ee[_0x41b3c5]['isAdded']);}['_makeModelFromViewString'](_0x41d4b6){const _0x13df6e=JSON['parse'](_0x41d4b6),_0x4b68cb=this[_0x1294('0xd9')]['editing'][_0x1294('0x9c')][_0x1294('0x69')],_0x6114e6=new _0x1f5ced(_0x4b68cb,_0x13df6e['map'](_0x3dd6dc=>this[_0x1294('0xf2')](_0x3dd6dc)));return this[_0x1294('0xd9')][_0x1294('0xbd')]['toModel'](_0x6114e6);}[_0x1294('0xf2')](_0x159409){const _0x11f16c=this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x9c')]['document'];if('string'==typeof _0x159409)return new _0x4e5cb1(_0x11f16c,_0x159409);{const _0x39751c=_0x159409[_0x1294('0x6a')]['map'](_0xb998d0=>this[_0x1294('0xf2')](_0xb998d0));return new(K[_0x159409['type']]||_0x501357)(_0x11f16c,_0x159409[_0x1294('0x79')],_0x159409['attributes'],_0x39751c);}}[_0x1294('0xf4')](_0x472ce2,_0x250d14=null){const _0x4f76e5=this[_0x1294('0x9b')][_0x1294('0x88')](_0x472ce2),_0xf515fe=_0x250d14?this[_0x1294('0x9b')][_0x1294('0x88')](_0x250d14):null,_0x397ea5=this['_getRevisionsRange'](_0x4f76e5,_0xf515fe),_0x55141e=_0x397ea5[_0x397ea5['length']-0x1],_0xf3c643=new Map();for(const _0x48bd3a of _0x397ea5){_0x48bd3a['model']={};for(const _0x4a90d8 of _0x48bd3a['authors'])_0xf3c643[_0x1294('0x8c')](_0x4a90d8['id'],_0x4a90d8);for(const _0x1555b6 of this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0x69')][_0x1294('0x44')]())_0x48bd3a['diffData'][_0x1555b6]||(_0x48bd3a['diffData'][_0x1555b6]={'insertions':'[]','deletions':'[]'}),_0x48bd3a[_0x1294('0x6e')][_0x1555b6]={'insertions':this[_0x1294('0xf9')](_0x48bd3a[_0x1294('0x57')][_0x1555b6][_0x1294('0x91')]),'deletions':this[_0x1294('0xf9')](_0x48bd3a[_0x1294('0x57')][_0x1555b6][_0x1294('0xa8')])};}const _0x435a55={'model':{},'changes':[]};for(const _0x5b8a41 of this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0x69')][_0x1294('0x44')]()){let _0x75abba=null,_0xfc585a=0x0;const _0x28e42e=new Map(Array[_0x1294('0xe')](_0x4f76e5[_0x1294('0x6e')][_0x5b8a41][_0x1294('0x91')][_0x1294('0x7c')])['filter'](([_0x4b1d87])=>!_0x4b1d87['startsWith'](_0x1294('0xb1'))));let _0x4a0f56=0x0;for(const _0x1d0a14 of _0x397ea5){const _0x1cfd8e=this[_0x1294('0xf7')](_0x1d0a14[_0x1294('0x6e')][_0x5b8a41][_0x1294('0x91')]);_0x1d0a14==_0x4f76e5?(_0x75abba=_0x1cfd8e,_0xfc585a=_0x75abba[_0x1294('0x24')],_0x75abba['forEach'](_0x395a0d=>{_0x395a0d['id']=_0x4a0f56++;}),this[_0x1294('0xae')](_0x75abba)):this[_0x1294('0x2b')](_0x75abba,_0x1cfd8e);const _0x7c5ca5=_0x75abba['filter'](_0x1ea423=>!_0x1ea423[_0x1294('0xb0')])[_0x1294('0xd0')](_0x27d4e2=>_0x27d4e2['id']);let _0x33f051=0x0;const _0x10b705=this[_0x1294('0xf7')](_0x1d0a14['model'][_0x5b8a41][_0x1294('0xa8')]);_0x10b705[_0x1294('0xcc')](_0x19f717=>{_0x19f717[_0x1294('0xf1')]?_0x19f717['id']=_0xfc585a++:_0x19f717['id']=_0x7c5ca5[_0x33f051++];}),this[_0x1294('0xae')](_0x10b705),this[_0x1294('0x31')](_0x75abba,'isAdded'),this[_0x1294('0x31')](_0x10b705,_0x1294('0xf1')),_0x1d0a14==_0x4f76e5&&this['_markMarkers'](_0x75abba,_0x28e42e),_0x75abba=this[_0x1294('0x109')](_0x75abba,_0x10b705),this[_0x1294('0x54')](_0x75abba),this['_setDistance'](_0x75abba,_0x1294('0xf1'));}_0x75abba=_0x75abba[_0x1294('0xed')](_0x184ff7=>!(_0x184ff7[_0x1294('0xb0')]&&_0x184ff7[_0x1294('0xf1')]));const _0x216aeb=new Map(_0x55141e['model'][_0x5b8a41][_0x1294('0xa8')][_0x1294('0x7c')]),_0x4518ac=new Set(_0x28e42e[_0x1294('0xbf')]());for(const _0x3a03ec of _0x216aeb[_0x1294('0xbf')]())_0x4518ac[_0x1294('0x26')](_0x3a03ec);this[_0x1294('0x2f')](_0x75abba,_0x4518ac),this['_fixObsoleteTags'](_0x75abba),_0x75abba=this['_removeMissingPairs'](_0x75abba),_0x75abba=this[_0x1294('0xf3')](_0x75abba),_0x75abba=this[_0x1294('0xc0')](_0x75abba);const {root:_0x5e69f8,changes:_0x9d75c7}=this[_0x1294('0xb8')](_0x75abba,_0xf3c643);_0x435a55['model'][_0x5b8a41]=_0x5e69f8,_0x435a55[_0x1294('0xac')]=_0x435a55[_0x1294('0xac')][_0x1294('0x3')](_0x9d75c7);}return _0x435a55;}[_0x1294('0xbb')](_0x16eb31,_0x13eeb1){for(let _0x3d4661=0x0;_0x3d4661<_0x16eb31[_0x1294('0x24')];_0x3d4661++)for(const [_0x4d35e5,_0x2869d1]of _0x13eeb1)_0x2869d1[_0x1294('0xec')]['isEqual'](_0x16eb31[_0x3d4661]['previousPosition'])&&_0x16eb31[_0x3d4661]['markersStart'][_0x1294('0xba')](_0x4d35e5),_0x2869d1[_0x1294('0xbe')][_0x1294('0xc9')](_0x16eb31[_0x3d4661][_0x1294('0x23')])&&_0x16eb31[_0x3d4661][_0x1294('0x49')][_0x1294('0xba')](_0x4d35e5);}[_0x1294('0x109')](_0x481a94,_0x34c04e){let _0x5f528e=[],_0x5275f3=0x0,_0x481e0c=0x0;for(;_0x5275f3<_0x481a94[_0x1294('0x24')]||_0x481e0c<_0x34c04e[_0x1294('0x24')];){const _0xcae7bd=_0x481a94[_0x5275f3]||{},_0x34237a=_0x34c04e[_0x481e0c]||{};if(_0xcae7bd['id']==_0x34237a['id'])_0x5275f3++,_0x481e0c++,_0x5f528e['push'](_0xcae7bd);else{if(_0x34237a[_0x1294('0xf1')]&&_0xcae7bd[_0x1294('0xb0')]){const {commonTape:_0x46cdaa,iEnd:_0x4515a9,jEnd:_0x20d614}=this[_0x1294('0xe7')](_0x481a94,_0x5275f3,_0x34c04e,_0x481e0c);_0x5f528e=_0x5f528e[_0x1294('0x3')](_0x46cdaa),_0x5275f3=_0x4515a9,_0x481e0c=_0x20d614;}else _0x34237a[_0x1294('0xf1')]?(_0x481e0c++,_0x5f528e['push'](_0x34237a)):(_0x5275f3++,_0x5f528e[_0x1294('0xba')](_0xcae7bd));}}return _0x5f528e;}[_0x1294('0x2f')](_0x3ae691,_0x32a29e){const _0xc2c350=[];for(let _0x767ccb=0x0;_0x767ccb<_0x3ae691[_0x1294('0x24')];_0x767ccb++){for(let _0x4518ca=0x0;_0x4518ca<_0x3ae691[_0x767ccb]['markersStart']['length'];_0x4518ca++){const _0x20f350=_0x3ae691[_0x767ccb]['markersStart'][_0x4518ca];if(!_0x32a29e['has'](_0x20f350))continue;const {group:_0x4b2b10,type:_0x3b46c9,authorId:_0x561ca9}=_0x33fc9c(_0x20f350);'revision-suggestion'!=_0x4b2b10||_0x1294('0x10b')!=_0x3b46c9&&_0x1294('0x2a')!=_0x3b46c9||(_0xc2c350[_0x1294('0x4e')]({'type':_0x3b46c9,'name':_0x20f350,'userId':_0x561ca9}),_0x3ae691[_0x767ccb][_0x1294('0xc')]['splice'](_0x4518ca,0x1),_0x4518ca--);}_0x3737f6(_0x3ae691[_0x767ccb]);for(let _0x16e6ef=0x0;_0x16e6ef<_0x3ae691[_0x767ccb][_0x1294('0x49')][_0x1294('0x24')];_0x16e6ef++){const _0x49ddd3=_0x3ae691[_0x767ccb][_0x1294('0x49')][_0x16e6ef];if(!_0x32a29e[_0x1294('0xb5')](_0x49ddd3))continue;const {group:_0xa5169e,type:_0x2e3d01}=_0x33fc9c(_0x49ddd3);if(_0x1294('0x106')!=_0xa5169e||_0x1294('0x10b')!=_0x2e3d01&&_0x1294('0x2a')!=_0x2e3d01)continue;_0x3ae691[_0x767ccb]['markersEnd'][_0x1294('0xa1')](_0x16e6ef,0x1),_0x16e6ef--;const _0x38e30c=_0xc2c350['findIndex'](_0x498d90=>_0x498d90[_0x1294('0x79')]==_0x49ddd3);_0x38e30c>-0x1&&_0xc2c350[_0x1294('0xa1')](_0x38e30c,0x1);}}function _0x33fc9c(_0xb9067){const _0x335eb5=_0xb9067['split'](':');return{'group':_0x335eb5[0x0],'type':_0x335eb5[0x1],'subType':_0x335eb5[_0x1294('0x24')]>=0x5?_0x335eb5[0x2]:null,'id':_0x335eb5[_0x1294('0x24')]<0x5?_0x335eb5[0x2]:_0x335eb5[0x3],'authorId':_0x335eb5[_0x1294('0x24')]<0x5?_0x335eb5[0x3]:_0x335eb5[0x4],'markerCount':0x6==_0x335eb5['length']?_0x335eb5[0x5]:null};}function _0x3737f6(_0x276127){for(let _0x4e08c3=0x0;_0x4e08c3<_0xc2c350['length'];_0x4e08c3++){if(_0x276127['isAdded']&&_0x1294('0x10b')==_0xc2c350[_0x4e08c3][_0x1294('0x87')])return _0x276127[_0x1294('0xa6')]=_0xc2c350[_0x4e08c3],void delete _0x276127[_0x1294('0xb0')];if(!_0x276127['isAdded']&&!_0x276127[_0x1294('0xf1')]&&_0x1294('0x2a')==_0xc2c350[_0x4e08c3]['type'])return void(_0x276127['isRemoveSuggestion']=_0xc2c350[_0x4e08c3]);}}}[_0x1294('0x31')](_0x3b5d2f,_0x226e5e){let _0x282875=0x0,_0x50c69c=!0x1;const _0x12436e=new Map();for(const _0x5928f6 of _0x3b5d2f)_0x5928f6[_0x226e5e]?_0x50c69c&&(_0x282875++,_0x50c69c=!0x1):(_0x282875++,_0x50c69c=!0x0),_0x12436e[_0x1294('0x8c')](_0x5928f6['id'],_0x282875);for(let _0x131bd6=0x0;_0x131bd6<_0x3b5d2f[_0x1294('0x24')];_0x131bd6++){if(_0x1294('0xf1')==_0x226e5e&&_0x3b5d2f[_0x131bd6][_0x1294('0xb0')]||'isAdded'==_0x226e5e&&_0x3b5d2f[_0x131bd6][_0x1294('0xf1')])continue;if(_0x1294('0x8a')==_0x3b5d2f[_0x131bd6][_0x1294('0x87')]){_0x3b5d2f[_0x131bd6][_0x1294('0xcd')]=0x0;continue;}const _0x5690f8=_0x12436e[_0x1294('0x107')](_0x3b5d2f[_0x131bd6]['pairId']),_0x2b515e=_0x12436e['get'](_0x3b5d2f[_0x131bd6]['id']);_0x3b5d2f[_0x131bd6][_0x1294('0xcd')]=_0x5690f8-_0x2b515e;}}[_0x1294('0x52')](_0x53622,_0x3b1860,_0x3f01b1=!0x1){const _0x2c8aa3=[];let _0x2e2760=this[_0x1294('0x9b')][_0x1294('0x2d')](_0x53622),_0x38666c=this['repository'][_0x1294('0x2d')](_0x3b1860);for(-0x1==_0x38666c&&(_0x38666c=this[_0x1294('0x9b')][_0x1294('0x53')][_0x1294('0x24')],_0x3f01b1=!0x1);_0x2e2760<_0x38666c;)_0x2c8aa3[_0x1294('0xba')](this[_0x1294('0x9b')][_0x1294('0x88')](_0x2e2760)),_0x2e2760++;return _0x3f01b1&&_0x2c8aa3[_0x1294('0xba')](this[_0x1294('0x9b')][_0x1294('0x88')](_0x2e2760)),_0x2c8aa3;}[_0x1294('0xe7')](_0x282216,_0x17488f,_0x1caece,_0x39b3cc){const _0x1e3126=this['editor'][_0x1294('0x6e')][_0x1294('0xc6')];let _0x52a43f=_0x17488f;for(;_0x282216[_0x52a43f]&&_0x282216[_0x52a43f][_0x1294('0xb0')];)_0x52a43f++;let _0x1f2302=_0x39b3cc;for(;_0x1caece[_0x1f2302]&&_0x1caece[_0x1f2302][_0x1294('0xf1')];)_0x1f2302++;_0x174f86(_0x282216,_0x17488f,_0x52a43f),_0x174f86(_0x1caece,_0x39b3cc,_0x1f2302);const _0x1a278f=_0x1caece['slice'](_0x39b3cc,_0x1f2302)[_0x1294('0x3')](_0x282216[_0x1294('0xd7')](_0x17488f,_0x52a43f));return _0x1a278f[_0x1294('0x8e')]((_0x45ef72,_0x54fb34)=>_0x45ef72[_0x1294('0x94')]!=_0x54fb34[_0x1294('0x94')]?_0x45ef72[_0x1294('0x94')]-_0x54fb34[_0x1294('0x94')]:_0x45ef72['level']!=_0x54fb34[_0x1294('0x75')]?_0x45ef72['level']-_0x54fb34[_0x1294('0x75')]:_0x45ef72[_0x1294('0xcd')]!=_0x54fb34[_0x1294('0xcd')]?_0x54fb34[_0x1294('0xcd')]-_0x45ef72[_0x1294('0xcd')]:!!_0x45ef72[_0x1294('0xb0')]!=!!_0x54fb34[_0x1294('0xb0')]?-0x1==_0x45ef72[_0x1294('0x94')]||0x0==_0x45ef72[_0x1294('0x94')]?_0x45ef72[_0x1294('0xb0')]?-0x1:0x1:_0x45ef72['isAdded']?0x1:-0x1:_0x45ef72[_0x1294('0x6d')]-_0x54fb34[_0x1294('0x6d')]),{'commonTape':_0x1a278f,'iEnd':_0x52a43f,'jEnd':_0x1f2302};function _0x174f86(_0x2875b3,_0x59583c,_0x4fbae0){let _0x1cd889=-0x1,_0x4e1f25=Number['POSITIVE_INFINITY'],_0x5b5268=!0x0;for(let _0x4a6129=_0x59583c;_0x4a6129<_0x4fbae0;_0x4a6129++)if(_0x1e3126[_0x1294('0x71')](_0x2875b3[_0x4a6129][_0x1294('0x110')])||(_0x5b5268=!0x1),_0x2875b3[_0x4a6129][_0x1294('0x110')][_0x1294('0x36')]<_0x59583c&&(_0x1cd889=_0x4a6129),_0x2875b3[_0x4a6129][_0x1294('0x110')][_0x1294('0xb6')]>=_0x4fbae0){_0x4e1f25=_0x4a6129;break;}_0x5b5268&&(_0x1cd889=_0x4fbae0-0x1);for(let _0xc4fd92=_0x59583c;_0xc4fd92<_0x4fbae0;_0xc4fd92++)_0x2875b3[_0xc4fd92][_0x1294('0x94')]=_0xc4fd92<=_0x1cd889?-0x1:_0xc4fd92<_0x4e1f25?0x0:0x1,_0x2875b3[_0xc4fd92]['index']=_0xc4fd92;let _0x44c782=0x0;for(let _0x27e71d=_0x59583c;_0x27e71d<=_0x1cd889;_0x27e71d++)0x0==_0x2875b3[_0x27e71d][_0x1294('0xcd')]?_0x2875b3[_0x27e71d][_0x1294('0x75')]=_0x44c782:(_0x44c782++,_0x2875b3[_0x27e71d][_0x1294('0x75')]=_0x44c782,_0x44c782++);for(let _0x2d3194=_0x59583c;_0x2d3194<_0x4fbae0;_0x2d3194++)0x0==_0x2875b3[_0x2d3194][_0x1294('0x94')]&&(_0x2875b3[_0x2d3194]['level']=_0x44c782);_0x44c782=0x0;for(let _0x552a7e=_0x4fbae0-0x1;_0x552a7e>=_0x4e1f25;_0x552a7e--)0x0==_0x2875b3[_0x552a7e][_0x1294('0xcd')]?_0x2875b3[_0x552a7e]['level']=_0x44c782:(_0x44c782--,_0x2875b3[_0x552a7e][_0x1294('0x75')]=_0x44c782,_0x44c782--);}}[_0x1294('0x5c')](_0x4f9588){const _0x238cb9=new Map(),_0x13d69e=this['editor']['model']['schema'];for(let _0x964b3=0x1;_0x964b3<_0x4f9588[_0x1294('0x24')];_0x964b3++){let _0x276ba8,_0x44f41a,_0x11db5c;const _0x45cc7c=_0x4f9588[_0x964b3],_0x1686ba=_0x4f9588[_0x964b3-0x1];if(_0x1294('0x8a')==_0x45cc7c['type'])continue;if(_0x45cc7c[_0x1294('0x87')]!=_0x1686ba['type'])continue;if(!_0x13d69e[_0x1294('0x58')](_0x1686ba['item'])||_0x13d69e[_0x1294('0xe8')](_0x1686ba[_0x1294('0x110')]))continue;if(!_0x13d69e[_0x1294('0x58')](_0x45cc7c[_0x1294('0x110')])||_0x13d69e[_0x1294('0xe8')](_0x45cc7c[_0x1294('0x110')]))continue;if((_0x4f9588[_0x964b3][_0x1294('0xb0')]||_0x4f9588[_0x964b3][_0x1294('0xa6')])&&_0x4f9588[_0x964b3-0x1][_0x1294('0xf1')])_0x276ba8=_0x4f9588[_0x964b3],_0x44f41a=_0x4f9588[_0x964b3-0x1],_0x11db5c=_0x964b3-0x1;else{if(!_0x4f9588[_0x964b3][_0x1294('0xf1')]||!_0x4f9588[_0x964b3-0x1][_0x1294('0xb0')]&&!_0x4f9588[_0x964b3-0x1][_0x1294('0xa6')])continue;_0x276ba8=_0x4f9588[_0x964b3-0x1],_0x44f41a=_0x4f9588[_0x964b3],_0x11db5c=_0x964b3;}const _0x4c0cea=_0x276ba8[_0x1294('0x75')]==_0x44f41a['level'],_0x3f3862=Math[_0x1294('0x93')](_0x276ba8[_0x1294('0x75')])<Math[_0x1294('0x93')](_0x44f41a[_0x1294('0x75')])&&0x0==_0x44f41a[_0x1294('0xcd')];(_0x4c0cea||_0x3f3862)&&(_0x238cb9['set'](_0x44f41a['id'],_0x276ba8['id']),_0x4f9588[_0x1294('0xa1')](_0x11db5c,0x1),_0x964b3--,_0x276ba8[_0x1294('0xb0')]=!0x1);}for(let _0x3519e4=0x0;_0x3519e4<_0x4f9588[_0x1294('0x24')];_0x3519e4++)_0x238cb9[_0x1294('0xb5')](_0x4f9588[_0x3519e4][_0x1294('0x2c')])&&(_0x4f9588[_0x3519e4][_0x1294('0x2c')]=_0x238cb9[_0x1294('0x107')](_0x4f9588[_0x3519e4][_0x1294('0x2c')]));}[_0x1294('0xf8')](_0x138a66){const _0x2481e6=new Set(_0x138a66[_0x1294('0xd0')](_0x3ff079=>_0x3ff079['id']));for(let _0x250278=0x0;_0x250278<_0x138a66[_0x1294('0x24')];_0x250278++)_0x2481e6[_0x1294('0xb5')](_0x138a66[_0x250278][_0x1294('0x2c')])||0x0==_0x138a66[_0x250278][_0x1294('0xcd')]||(_0x138a66[_0x250278][_0x1294('0x10f')]=!0x0);return _0x138a66[_0x1294('0xed')](_0x1ca911=>!_0x1ca911[_0x1294('0x10f')]);}[_0x1294('0xf3')](_0x38fc06){const _0x103d5e=new Set();for(let _0x2e3bd6=0x0;_0x2e3bd6<_0x38fc06[_0x1294('0x24')];_0x2e3bd6++){if(_0x103d5e[_0x1294('0xb5')](_0x38fc06[_0x2e3bd6]['id'])&&_0x38fc06[_0x2e3bd6]['isRemoved']&&(_0x38fc06[_0x2e3bd6][_0x1294('0x10f')]=!0x0),_0x38fc06[_0x2e3bd6][_0x1294('0x10f')])continue;if(0x0==_0x38fc06[_0x2e3bd6][_0x1294('0xcd')])continue;if('elementStart'!=_0x38fc06[_0x2e3bd6]['type'])continue;if(null==_0x38fc06[_0x2e3bd6][_0x1294('0x2c')])continue;let _0x193315=_0x2e3bd6+0x1,_0x2abf9b=0x0;for(;_0x38fc06[_0x193315]['id']!=_0x38fc06[_0x2e3bd6][_0x1294('0x2c')];)_0x1294('0xc5')==_0x38fc06[_0x193315][_0x1294('0x87')]?_0x2abf9b++:_0x1294('0x10c')==_0x38fc06[_0x193315][_0x1294('0x87')]&&_0x2abf9b--,_0x193315++;if(0x0!=_0x2abf9b){if(_0x38fc06[_0x2e3bd6]['isRemoved'])_0x38fc06[_0x2e3bd6][_0x1294('0x10f')]=!0x0;else for(;_0x193315!=_0x2e3bd6;)_0x38fc06[_0x193315][_0x1294('0xf1')]&&0x0!=_0x38fc06[_0x193315][_0x1294('0xcd')]&&(_0x38fc06[_0x193315][_0x1294('0x10f')]=!0x0,_0x103d5e['add'](_0x38fc06[_0x193315][_0x1294('0x2c')])),_0x193315--;}}return _0x38fc06['filter'](_0x48767c=>!_0x48767c[_0x1294('0x10f')]);}[_0x1294('0xc0')](_0x4d6a96){const _0x27afdf=this['editor'][_0x1294('0x6e')][_0x1294('0xc6')];for(let _0x393c6e=0x0;_0x393c6e<_0x4d6a96['length'];_0x393c6e++){if(!(_0x4d6a96[_0x393c6e][_0x1294('0xb0')]||_0x4d6a96[_0x393c6e][_0x1294('0xa6')]||_0x4d6a96[_0x393c6e]['isRemoved']||_0x4d6a96[_0x393c6e][_0x1294('0x20')]))continue;if(0x0==_0x4d6a96[_0x393c6e][_0x1294('0xcd')])continue;const _0x4507cf=_0x4d6a96[_0x393c6e][_0x1294('0x110')];_0x27afdf['isBlock'](_0x4507cf)||_0x27afdf[_0x1294('0xe8')](_0x4507cf)||(_0x4d6a96[_0x393c6e][_0x1294('0xb0')]&&delete _0x4d6a96[_0x393c6e][_0x1294('0xb0')],_0x4d6a96[_0x393c6e]['isAddSuggestion']&&delete _0x4d6a96[_0x393c6e][_0x1294('0xa6')],_0x4d6a96[_0x393c6e][_0x1294('0x20')]&&delete _0x4d6a96[_0x393c6e][_0x1294('0x20')],_0x4d6a96[_0x393c6e][_0x1294('0xf1')]&&(_0x4d6a96[_0x393c6e][_0x1294('0x10f')]=!0x0));}return _0x4d6a96[_0x1294('0xed')](_0x1664d4=>!_0x1664d4[_0x1294('0x10f')]);}[_0x1294('0xb8')](_0xaa8e47,_0x4c8938){const _0x5cead9=new _0x271f2f(),_0x286983=[],_0x1e349b=new Map(),_0x20f03c=this[_0x1294('0xd9')][_0x1294('0x6e')],_0x5806ef=_0x20f03c[_0x1294('0xc6')],_0x220295=[_0x5cead9],_0x38374b={},_0x25777e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x24c6dd=null;const _0x7bd1f8=[0x0];for(let _0x121dad=0x0;_0x121dad<_0xaa8e47[_0x1294('0x24')];_0x121dad++){let _0x35a1c4,_0x4fdab8;if(_0x1294('0xc5')===_0xaa8e47[_0x121dad][_0x1294('0x87')]){_0x35a1c4=_0x20f03c['createPositionFromPath'](_0x5cead9,_0x7bd1f8);const _0x1d494f=new _0x5b1c31(_0xaa8e47[_0x121dad][_0x1294('0x110')][_0x1294('0x79')],_0xaa8e47[_0x121dad]['item'][_0x1294('0x55')]());_0x220295[0x0][_0x1294('0x77')](_0x1d494f),_0x7bd1f8[_0x1294('0xba')](0x0),_0x220295[_0x1294('0x4e')](_0x1d494f),_0x4fdab8=_0x20f03c[_0x1294('0x19')](_0x5cead9,_0x7bd1f8),_0x24c6dd=null;}else{if(_0x1294('0x10c')===_0xaa8e47[_0x121dad][_0x1294('0x87')])_0x220295[_0x1294('0x6c')](),_0x35a1c4=_0x20f03c['createPositionFromPath'](_0x5cead9,_0x7bd1f8),_0x7bd1f8[_0x1294('0x21')](),_0x7bd1f8[_0x7bd1f8[_0x1294('0x24')]-0x1]++,_0x4fdab8=_0x20f03c[_0x1294('0x19')](_0x5cead9,_0x7bd1f8),_0x24c6dd=null;else{if(_0x35a1c4=_0x20f03c['createPositionFromPath'](_0x5cead9,_0x7bd1f8),_0x24c6dd&&_0x2bc52c(_0x24c6dd,_0xaa8e47[_0x121dad][_0x1294('0x110')]))_0x24c6dd['_data']+=_0xaa8e47[_0x121dad][_0x1294('0x110')]['data'];else{const _0x4b800e=new _0x4b240a(_0xaa8e47[_0x121dad][_0x1294('0x110')][_0x1294('0xbd')],_0xaa8e47[_0x121dad]['item']['getAttributes']());_0x220295[0x0]['_appendChild'](_0x4b800e),_0x24c6dd=_0x4b800e;}_0x7bd1f8[_0x7bd1f8[_0x1294('0x24')]-0x1]+=_0xaa8e47[_0x121dad][_0x1294('0x110')][_0x1294('0xca')],_0x4fdab8=_0x20f03c[_0x1294('0x19')](_0x5cead9,_0x7bd1f8);}}for(const _0xe69878 of _0xaa8e47[_0x121dad][_0x1294('0xc')])_0x1e349b[_0x1294('0x8c')](_0xe69878,{'start':_0x35a1c4,'end':null});_0x3ca742(_0x1294('0x20'),_0x121dad,_0x35a1c4,_0x4fdab8),_0x3ca742(_0x1294('0xa6'),_0x121dad,_0x35a1c4,_0x4fdab8),_0x3ca742(_0x1294('0xf1'),_0x121dad,_0x35a1c4,_0x4fdab8),_0x3ca742(_0x1294('0xb0'),_0x121dad,_0x35a1c4,_0x4fdab8);for(const _0x5e686f of _0xaa8e47[_0x121dad]['markersEnd']){_0x1e349b['get'](_0x5e686f)[_0x1294('0xbe')]=_0x4fdab8;}}for(const [_0x2f9a2a,_0x3a2330]of _0x1e349b){const _0x38c672=this['editor'][_0x1294('0x6e')][_0x1294('0xff')](_0x3a2330['start'],_0x3a2330[_0x1294('0xbe')]);_0x5cead9['markers']['set'](_0x2f9a2a,_0x38c672);}return _0x286983['sort']((_0x3109b3,_0x22922e)=>{const _0x1d47a2=_0x5cead9[_0x1294('0x7c')][_0x1294('0x107')](_0x1294('0xb1')+_0x3109b3['id']),_0x2460d4=_0x5cead9[_0x1294('0x7c')][_0x1294('0x107')]('revision:'+_0x22922e['id']);return _0x1d47a2[_0x1294('0xec')][_0x1294('0x4b')](_0x2460d4[_0x1294('0xec')])?-0x1:_0x1d47a2['start']['isAfter'](_0x2460d4[_0x1294('0xec')])?0x1:_0x1d47a2[_0x1294('0xbe')][_0x1294('0x4b')](_0x2460d4[_0x1294('0xbe')])?-0x1:_0x1d47a2[_0x1294('0xbe')][_0x1294('0x3e')](_0x2460d4[_0x1294('0xbe')])?0x1:_0x1294('0xf5')===_0x3109b3['type']?-0x1:0x1;}),{'root':_0x5cead9,'changes':_0x286983};function _0x3ca742(_0xce63a5,_0x124085,_0x5a300e,_0x4ce843){const _0x3bf891=!!_0xaa8e47[_0x124085][_0xce63a5],_0xebc3a6=_0x3bf891?_0xaa8e47[_0x124085][_0xce63a5][_0x1294('0x10d')]:null,_0x19de52=_0x124085===_0xaa8e47[_0x1294('0x24')]-0x1,_0x473f02=_0x25777e[_0xce63a5][0x0],_0x159461=_0x5806ef[_0x1294('0xcf')](_0xaa8e47[_0x124085][_0x1294('0x110')]);!_0x38374b[_0xce63a5]&&_0x3bf891?_0x38374b[_0xce63a5]={'start':_0x5a300e,'tapeItem':_0xaa8e47[_0x124085],'userId':_0xebc3a6,'type':_0xce63a5}:_0x38374b[_0xce63a5]&&!_0x3bf891?(_0x38374b[_0xce63a5][_0x1294('0xbe')]=_0x5a300e,_0x41be15(_0x38374b[_0xce63a5]),_0x38374b[_0xce63a5]=null):_0x38374b[_0xce63a5]&&_0x3bf891&&_0x38374b[_0xce63a5]['userId']!==_0xebc3a6&&(_0x38374b[_0xce63a5][_0x1294('0xbe')]=_0x5a300e,_0x473f02&&_0x473f02['userId']===_0x38374b[_0xce63a5][_0x1294('0x10d')]||_0x41be15(_0x38374b[_0xce63a5]),_0x38374b[_0xce63a5]={'start':_0x5a300e,'tapeItem':_0xaa8e47[_0x124085],'userId':_0xebc3a6,'type':_0xce63a5}),_0x38374b[_0xce63a5]&&_0x159461&&(_0x1294('0xc5')!==_0xaa8e47[_0x124085][_0x1294('0x87')]||_0x473f02&&_0x473f02[_0x1294('0x10d')]===_0xebc3a6||_0x25777e[_0xce63a5][_0x1294('0x4e')]({'userId':_0xebc3a6,'object':_0xaa8e47[_0x124085][_0x1294('0x110')],'change':_0x38374b[_0xce63a5]}),_0x1294('0x10c')===_0xaa8e47[_0x124085]['type']&&_0x473f02&&_0x473f02[_0x1294('0xad')]===_0xaa8e47[_0x124085][_0x1294('0x110')]&&(_0x25777e[_0xce63a5][_0x1294('0x6c')](),_0x38374b[_0xce63a5]=_0x473f02[_0x1294('0x95')])),_0x38374b[_0xce63a5]&&_0x19de52&&(_0x38374b[_0xce63a5][_0x1294('0xbe')]=_0x4ce843,_0x41be15(_0x38374b[_0xce63a5]),_0x38374b[_0xce63a5]=null);}function _0x41be15({start:_0x1c5894,end:_0x297a54,tapeItem:_0x1f47b9,userId:_0x37c88a,type:_0x168c34}){const _0x456b6d=_0x1f47b9[_0x1294('0x110')],_0xaabf50=_0x20f03c['schema'][_0x1294('0x58')](_0x456b6d)&&!_0x20f03c['schema'][_0x1294('0xe8')](_0x456b6d),_0x12d346=_0x1c5894[_0x1294('0x3a')]==_0x297a54[_0x1294('0x3b')]&&_0x297a54[_0x1294('0x9a')];if(_0xaabf50&&_0x12d346)return;const _0x29f60f=_0x20f03c[_0x1294('0xff')](_0x1c5894,_0x297a54),_0x285d54=_0x4c8938[_0x1294('0x107')](_0x37c88a),_0x437ee5=new _0x560c95({'author':_0x285d54,'type':'isAdded'==_0x168c34||_0x1294('0xa6')==_0x168c34?'add':'remove','data':{'isSuggestion':_0x1294('0xa6')==_0x168c34||_0x1294('0x20')==_0x168c34},'createdAt':new Date()});_0x286983[_0x1294('0xba')](_0x437ee5),_0x5cead9[_0x1294('0x7c')][_0x1294('0x8c')]('revision:'+_0x437ee5['id'],_0x29f60f);}function _0x2bc52c(_0x214b52,_0x2dcc3d){const _0x438192=_0x214b52[_0x1294('0x55')](),_0x1bd94c=_0x2dcc3d[_0x1294('0x55')]();for(const _0x566895 of _0x438192){if(_0x566895[0x1]!==_0x2dcc3d['getAttribute'](_0x566895[0x0]))return!0x1;_0x1bd94c['next']();}return _0x1bd94c[_0x1294('0xf0')]()[_0x1294('0x9d')];}}[_0x1294('0x85')](){this[_0x1294('0xd9')][_0x1294('0xc8')][_0x1294('0x28')](_0x1294('0x84'))[_0x1294('0xc2')]({'view':_0x1294('0x0')}),this[_0x1294('0xd9')]['conversion'][_0x1294('0x28')]('editingDowncast')[_0x1294('0x72')]({'model':_0x1294('0x0'),'view':_0x538fc0=>{const _0x4c90cf=_0x538fc0[_0x1294('0xde')][_0x1294('0x27')](':')[0x1],_0x3e5c1c=this['_getChangeFromId'](_0x4c90cf);if(!_0x3e5c1c)return null;const _0x4387ff=_0x1294('0xf5')==_0x3e5c1c[_0x1294('0x87')]?_0x1294('0x10b'):_0x1294('0x2a'),_0x33fd0b=[_0x1294('0xbc'),_0x1294('0x3d')+_0x4387ff];return _0x3e5c1c['data'][_0x1294('0x2')]&&_0x33fd0b['push'](_0x1294('0x3d')+_0x4387ff+_0x1294('0xe9')),this[_0x1294('0xd')]==_0x3e5c1c&&_0x33fd0b['push']('ck-suggestion-marker--active'),{'classes':_0x33fd0b,'attributes':{'data-change-id':_0x4c90cf}};}}),this[_0x1294('0xd9')]['conversion']['for'](_0x1294('0x84'))[_0x1294('0xf5')](_0x228466=>{_0x228466['on']('element:pre',(_0xd281c3,_0x1875bf,_0x15c08b)=>{const _0x2c3c07=_0x1875bf[_0x1294('0x7e')][_0x1294('0x82')](0x0);if(!_0x2c3c07||!_0x2c3c07['is']('element',_0x1294('0x1')))return;if(!_0x15c08b['consumable'][_0x1294('0x103')](_0x2c3c07,{'attributes':[_0x1294('0xd2'),_0x1294('0x13')]}))return;const _0x430d50=_0x1875bf[_0x1294('0x104')][_0x1294('0xec')][_0x1294('0x3a')];_0x15c08b[_0x1294('0x33')]['setAttribute'](_0x1294('0xd2'),_0x2c3c07[_0x1294('0x1f')](_0x1294('0xd2')),_0x430d50),_0x15c08b[_0x1294('0x33')][_0x1294('0x25')](_0x1294('0x13'),_0x2c3c07[_0x1294('0x1f')](_0x1294('0x13')),_0x430d50);},{'priority':_0x1294('0x46')});}),this[_0x1294('0xd9')][_0x1294('0xc8')][_0x1294('0x28')](_0x1294('0x84'))['add'](_0x2fa2e2=>{_0x2fa2e2['on']('element',(_0xbfecf1,_0x28136f,_0x967cd8)=>{if(!_0x967cd8['consumable'][_0x1294('0x103')](_0x28136f[_0x1294('0x7e')],{'attributes':[_0x1294('0xd2'),_0x1294('0x13')]}))return;if(_0x28136f[_0x1294('0x104')][_0x1294('0xfb')])return;const _0x4ee62a=_0x28136f[_0x1294('0x104')][_0x1294('0xec')]['nodeAfter'];_0x4ee62a[_0x1294('0xe6')]('vid_start')||_0x4ee62a[_0x1294('0xe6')](_0x1294('0x47'))||(_0x967cd8['writer']['setAttribute'](_0x1294('0xd2'),_0x28136f[_0x1294('0x7e')][_0x1294('0x1f')](_0x1294('0xd2')),_0x4ee62a),_0x967cd8[_0x1294('0x33')][_0x1294('0x25')](_0x1294('0x13'),_0x28136f[_0x1294('0x7e')][_0x1294('0x1f')](_0x1294('0x13')),_0x4ee62a));},{'priority':_0x1294('0x46')});}),this[_0x1294('0xd9')][_0x1294('0xc8')][_0x1294('0x28')](_0x1294('0x84'))[_0x1294('0x5b')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x1294('0x47'),'value':_0x42ef91=>_0x42ef91['getAttribute'](_0x1294('0x47'))}}),this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0xc6')]['on'](_0x1294('0x48'),(_0x459d96,[,_0x5793cc])=>{[_0x1294('0xd2'),'vid_end',_0x1294('0x47')][_0x1294('0xe3')](_0x5793cc)&&(_0x459d96[_0x1294('0x89')]=!0x0,_0x459d96[_0x1294('0xa7')]());},{'priority':_0x1294('0x74')}),this['editor'][_0x1294('0xc8')][_0x1294('0x28')](_0x1294('0x99'))[_0x1294('0xf5')](_0x24beba=>{_0x24beba['on'](_0x1294('0x38'),(_0x20d625,_0x2a957b,_0x31518b)=>{if('\x20'!=_0x2a957b[_0x1294('0x110')]['data']||_0x2a957b[_0x1294('0x110')][_0x1294('0x3b')][_0x1294('0xa5')]>0x1)return;if(!_0x31518b[_0x1294('0x66')]['consume'](_0x2a957b[_0x1294('0x110')],_0x20d625[_0x1294('0x79')]))return;const _0x45d14e=_0x31518b['writer'],_0x8ecc6c=_0x31518b['mapper']['toViewRange'](_0x2a957b[_0x1294('0x32')]);_0x45d14e[_0x1294('0xce')](_0x8ecc6c,_0x45d14e[_0x1294('0xef')](_0x1294('0x22')));});}),this[_0x1294('0xd9')][_0x1294('0xc8')]['for']('dataDowncast')[_0x1294('0x108')]({'model':_0x1294('0x0')}),this['editor'][_0x1294('0x98')][_0x1294('0x10e')]['on']('addMarker:revision',function(_0x22be57){const _0x22b350=_0x22be57[_0x1294('0xb7')]['get']('RevisionViewer');return(_0x3df9ef,_0x285411,_0x2b814f)=>{const _0x3dc8cd=_0x285411['markerName'][_0x1294('0x27')](':')[0x1],_0x5f4f60=_0x22b350[_0x1294('0x8f')](_0x3dc8cd);if(!_0x5f4f60)return null;const _0x330436=_0x1294('0xf5')==_0x5f4f60[_0x1294('0x87')]?_0x1294('0x27'):_0x1294('0x2e');if(!_0x2b814f[_0x1294('0x66')][_0x1294('0x1e')](_0x285411[_0x1294('0x5a')],_0x3df9ef[_0x1294('0x79')]))return;const _0x4a435b=_0x285411[_0x1294('0x5a')][_0x1294('0x5e')](),_0x1e880e=_0x285411[_0x1294('0x5a')]['start'],_0x10add7=_0x22be57[_0x1294('0x6e')][_0x1294('0xc6')];let _0x51bb18=null,_0x597251=null,_0x361416=!0x1,_0x199f46=!0x1;for(const _0x296329 of _0x4a435b){const _0xd86bd2=_0x296329[_0x1294('0x110')];_0x361416=_0x361416||_0x10add7[_0x1294('0xa2')](_0xd86bd2);const _0x384bb3=_0x2b814f['mapper']['toViewElement'](_0xd86bd2);if(_0x384bb3&&_0x384bb3[_0x1294('0xa')]('addHighlight'))return;_0x1294('0x10c')==_0x296329['type']&&(_0x10add7[_0x1294('0x58')](_0xd86bd2)&&!_0x10add7[_0x1294('0xe8')](_0xd86bd2)&&(_0xd86bd2[_0x1294('0x65')]||_0x1e880e[_0x1294('0x43')]?_0x51bb18&&_0x51bb18[_0x1294('0x3b')]==_0xd86bd2||(_0x51bb18=_0xd86bd2,_0xc43767(_0x296329[_0x1294('0x17')]),_0x199f46=!0x0):_0x597251=_0x597251||_0x296329[_0x1294('0x17')]));}function _0xc43767(_0x595a87){const _0x393094=_0x2b814f['writer'][_0x1294('0x30')](_0x1294('0x22'),{'class':_0x1294('0x3d')+_0x330436}),_0x5021e0=_0x2b814f[_0x1294('0xaf')][_0x1294('0xc3')](_0x595a87);_0x5f4f60[_0x1294('0xbd')][_0x1294('0x2')]&&_0x2b814f[_0x1294('0x33')][_0x1294('0xe0')](_0x1294('0x3d')+_0x330436+_0x1294('0xe9'),_0x393094),_0x22b350['activeChange']==_0x5f4f60&&_0x2b814f['writer'][_0x1294('0xe0')](_0x1294('0xd4'),_0x393094),_0x2b814f[_0x1294('0x33')][_0x1294('0xc7')](_0x5021e0,_0x393094),_0x2b814f[_0x1294('0xaf')][_0x1294('0xb')](_0x393094,_0x285411[_0x1294('0xde')]);}_0x361416||_0x199f46||!_0x597251||_0xc43767(_0x597251);};}(this[_0x1294('0xd9')]),{'priority':_0x1294('0x7f')}),this[_0x1294('0xd9')][_0x1294('0x98')]['downcastDispatcher']['on'](_0x1294('0x16'),(_0x552f4f,_0x2476a9,_0xc5fb02)=>{const _0x18e6d5=_0xc5fb02['mapper'][_0x1294('0xfd')](_0x2476a9[_0x1294('0xde')]);if(_0x18e6d5)for(const _0x24bdba of _0x18e6d5)(_0x24bdba[_0x1294('0xdc')](_0x1294('0x37'))||_0x24bdba[_0x1294('0xdc')](_0x1294('0x29')))&&(_0xc5fb02[_0x1294('0xaf')][_0x1294('0xd1')](_0x24bdba,_0x2476a9[_0x1294('0xde')]),_0xc5fb02[_0x1294('0x33')][_0x1294('0xb9')](_0x24bdba));},{'priority':_0x1294('0x7f')}),this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x10e')]['on']('addMarker:revision',(_0x2a268a,_0xd564e0,_0x47e0de)=>{const _0x3f7de9=_0xd564e0[_0x1294('0xde')][_0x1294('0x27')](':')[0x1],_0x27ddb4=this[_0x1294('0x8f')](_0x3f7de9);if(!_0x27ddb4)return null;const _0x598ab5=_0x1294('0xf5')==_0x27ddb4[_0x1294('0x87')]?_0x1294('0x27'):_0x1294('0x2e');if(_0x47e0de['consumable'][_0x1294('0x1e')](_0xd564e0[_0x1294('0x5a')],_0x2a268a['name']))for(const _0x44e548 of _0xd564e0['markerRange'][_0x1294('0xf6')]()){if(!_0x44e548['is'](_0x1294('0x51'),_0x1294('0x81')))continue;const _0x58c6d9=_0x47e0de[_0x1294('0x33')][_0x1294('0x30')]('span',{'class':_0x1294('0x3d')+_0x598ab5}),_0x127fff=_0x47e0de[_0x1294('0xaf')][_0x1294('0xc3')](this[_0x1294('0xd9')][_0x1294('0x6e')]['createPositionBefore'](_0x44e548));_0x27ddb4[_0x1294('0xbd')][_0x1294('0x2')]&&_0x47e0de['writer']['addClass']('ck-suggestion-marker-'+_0x598ab5+'-new',_0x58c6d9),this[_0x1294('0xd')]==_0x27ddb4&&_0x47e0de[_0x1294('0x33')][_0x1294('0xe0')](_0x1294('0xd4'),_0x58c6d9),_0x47e0de[_0x1294('0x33')][_0x1294('0xc7')](_0x127fff,_0x58c6d9),_0x47e0de[_0x1294('0xaf')]['bindElementToMarker'](_0x58c6d9,_0xd564e0[_0x1294('0xde')]);}},{'priority':_0x1294('0x7f')}),this[_0x1294('0xd9')][_0x1294('0xc8')][_0x1294('0x28')](_0x1294('0x84'))[_0x1294('0xc2')]({'view':_0x1294('0xab'),'model':_0xe41c58=>'revision-comment:'+_0xe41c58,'converterPriority':_0x1294('0x74')}),this[_0x1294('0xd9')][_0x1294('0xc8')][_0x1294('0x28')]('upcast')[_0x1294('0xc2')]({'view':_0x1294('0x5'),'model':_0x146e7e=>_0x1294('0x42')+_0x146e7e,'converterPriority':_0x1294('0x74')}),this['editor'][_0x1294('0xc8')]['for'](_0x1294('0x99'))[_0x1294('0x108')]({'model':_0x1294('0x106'),'view':_0x46371b=>_0x1294('0x7d')+_0x46371b,'converterPriority':_0x1294('0x74')}),this['editor']['conversion'][_0x1294('0x28')]('editingDowncast')[_0x1294('0x72')]({'model':'revision-suggestion','view':_0x5d7ffb=>{const _0x4bf1f6=_0x5d7ffb['markerName'][_0x1294('0x27')](':')[0x1];return _0x1294('0x10b')!=_0x4bf1f6&&_0x1294('0x2a')!=_0x4bf1f6?null:{'classes':[_0x1294('0xcb'),_0x1294('0x12')+_0x4bf1f6]};}}),this['editor'][_0x1294('0x98')]['downcastDispatcher']['on'](_0x1294('0x14'),Q(this[_0x1294('0xd9')],_0x1294('0x2e')),{'priority':_0x1294('0x7f')}),this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x10e')]['on'](_0x1294('0x8d'),Q(this[_0x1294('0xd9')],_0x1294('0x27')),{'priority':'high'}),this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x10e')]['on'](_0x1294('0x6f'),(_0x1b5e92,_0x38816d,_0xae9f47)=>{const _0x4c30b2=_0xae9f47[_0x1294('0xaf')][_0x1294('0xfd')](_0x38816d[_0x1294('0xde')]);if(_0x4c30b2)for(const _0x1d02b0 of _0x4c30b2)_0x1d02b0['is'](_0x1294('0x40'))&&(_0xae9f47['mapper'][_0x1294('0xd1')](_0x1d02b0,_0x38816d[_0x1294('0xde')]),_0xae9f47[_0x1294('0x33')][_0x1294('0xb9')](_0x1d02b0));},{'priority':_0x1294('0x7f')});}['_getChangeFromId'](_0x26de8c){return this['_changeIdToChange'][_0x1294('0x107')](_0x26de8c);}['_getViewForChange'](_0x52847d){this['_changeView']&&this[_0x1294('0x1d')][_0x1294('0x60')](),this[_0x1294('0x1d')]=new _0x1ea0d4(this[_0x1294('0xd9')][_0x1294('0x56')],_0x52847d);const _0x1f73c1=this[_0x1294('0xd9')][_0x1294('0x6e')]['markers']['get'](_0x1294('0xb1')+_0x52847d['id']);return this['_changeView'][_0x1294('0xc1')]=()=>_0xdd8ba6(this['editor'][_0x1294('0x98')],_0x1f73c1),this['_changeView'];}['_initInteractions'](){this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0x69')][_0x1294('0x4d')][_0x1294('0x59')](_0x1294('0x0')),this['on'](_0x1294('0xa9'),(_0x4dcd73,_0xba4588,_0x4b3546,_0x3f8a37)=>{_0x3f8a37&&this[_0x1294('0xee')]['remove'](_0x3f8a37),_0x4b3546&&(this[_0x1294('0xee')]['add']({'view':_0x4b3546,'stackId':_0x1294('0xe2'),'position':{'target':_0x4b3546[_0x1294('0xc1')]}}),this[_0x1294('0xee')][_0x1294('0x7b')](_0x1294('0xe2')));}),this['on'](_0x1294('0x3c'),(_0x50056e,_0x1bc3df,_0x1e3449,_0xe985d4)=>{this['activeView']=_0x1e3449?this['_getViewForChange'](_0x1e3449):null,this[_0x1294('0xd9')][_0x1294('0x6e')][_0x1294('0x95')](()=>{const _0x221713=this[_0x1294('0xd9')][_0x1294('0x98')];_0xe985d4&&_0x221713[_0x1294('0x9')](_0x1294('0xb1')+_0xe985d4['id']),_0x1e3449&&_0x221713['reconvertMarker']('revision:'+_0x1e3449['id']);});}),this['listenTo'](this[_0x1294('0xd9')][_0x1294('0x98')][_0x1294('0x9c')][_0x1294('0x69')],'mouseover',(_0x5baf90,_0x24bb09)=>{if(this[_0x1294('0xd')])return;const _0x413f53=this[_0x1294('0x5d')](_0x24bb09[_0x1294('0x100')]),_0x3eeaec=this[_0x1294('0xdf')]['get'](_0x413f53);this[_0x1294('0xb3')]=_0x3eeaec?this['_getViewForChange'](_0x3eeaec):null;}),this['listenTo'](this[_0x1294('0xd9')][_0x1294('0x98')]['view']['document'],_0x1294('0xfe'),(_0x345fe3,_0xba12bb)=>{const _0x8613b=this[_0x1294('0x5d')](_0xba12bb[_0x1294('0x100')]),_0x49239f=this[_0x1294('0xdf')][_0x1294('0x107')](_0x8613b);this[_0x1294('0xd')]=_0x49239f||null;});}[_0x1294('0x5d')](_0x157553){do{const _0x5bf3d6=_0x157553[_0x1294('0x1f')](_0x1294('0x9f'));if(_0x5bf3d6)return _0x5bf3d6;_0x157553=_0x157553['parent'];}while(_0x157553);return null;}['_cleanMarkers'](){this[_0x1294('0xd9')][_0x1294('0x6e')]['change'](_0x5bc648=>{for(const _0x5b8767 of this[_0x1294('0xd9')]['model'][_0x1294('0x7c')])_0x5bc648[_0x1294('0x101')](_0x5b8767);});}}function Q(_0x1988cc,_0x24a9a8){return(_0x58a868,_0x2bca83,_0x44f112)=>{if(!_0x44f112['consumable'][_0x1294('0x1e')](_0x2bca83['markerRange'],_0x58a868[_0x1294('0x79')]))return;const _0x2ec199=_0x2bca83[_0x1294('0x5a')][_0x1294('0x5e')](),_0x52b98c=_0x2bca83['markerRange'][_0x1294('0xec')],_0x54ec33=_0x1988cc[_0x1294('0x6e')]['schema'];let _0x1c7217=null,_0x5bedba=null,_0x43b1ee=!0x1,_0xd04cff=!0x1;for(const _0x4cb2c1 of _0x2ec199){const _0x291996=_0x4cb2c1[_0x1294('0x110')];_0x43b1ee=_0x43b1ee||_0x54ec33[_0x1294('0xa2')](_0x291996);const _0x2a4e70=_0x44f112['mapper'][_0x1294('0x67')](_0x291996);if(_0x2a4e70&&_0x2a4e70['getCustomProperty'](_0x1294('0x78')))return;'elementEnd'==_0x4cb2c1[_0x1294('0x87')]&&(_0x54ec33['isBlock'](_0x291996)&&!_0x54ec33[_0x1294('0xe8')](_0x291996)&&(_0x291996['nextSibling']||_0x52b98c['isAtEnd']?_0x1c7217&&_0x1c7217[_0x1294('0x3b')]==_0x291996||(_0x1c7217=_0x291996,_0x51cece(_0x4cb2c1[_0x1294('0x17')]),_0xd04cff=!0x0):_0x5bedba=_0x5bedba||_0x4cb2c1[_0x1294('0x17')]));}function _0x51cece(_0x4470a3){const _0x315b7=_0x44f112[_0x1294('0xaf')][_0x1294('0xc3')](_0x4470a3),_0x438bc1=_0x44f112[_0x1294('0x33')][_0x1294('0x30')](_0x1294('0x22'),{'class':'ck-suggestion-preview-marker-'+_0x24a9a8});_0x44f112[_0x1294('0x33')][_0x1294('0xc7')](_0x315b7,_0x438bc1),_0x44f112[_0x1294('0xaf')][_0x1294('0xb')](_0x438bc1,_0x2bca83[_0x1294('0xde')]);}_0x43b1ee||_0xd04cff||!_0x5bedba||_0x51cece(_0x5bedba);};}_0x29ec24(w,_0x518962);class X extends _0x4474a2{constructor(_0x1fabc3){super(_0x1fabc3);const _0x326ada=_0x1fabc3[_0x1294('0xb7')][_0x1294('0x107')](w);this['stopListening'](_0x1fabc3,_0x1294('0xe5')),this[_0x1294('0xb4')](_0x1294('0x68')),this['listenTo'](_0x326ada,_0x1294('0x9e'),()=>this[_0x1294('0x7a')]()),this[_0x1294('0xda')](_0x326ada,_0x1294('0x92'),()=>this[_0x1294('0x7a')]());}['execute'](){const _0x37876c=this[_0x1294('0xd9')],_0x40ad40=_0x37876c['plugins'][_0x1294('0x107')](w),_0x531aa2=_0x40ad40[_0x1294('0xe4')]?_0x40ad40[_0x1294('0x76')][_0x1294('0xeb')]:null;_0x37876c['config']['get']('revisionHistory')[_0x1294('0x39')](_0x531aa2);}[_0x1294('0x7a')](){const {isReady:_0x61847,isEnabled:_0x5d2700}=this[_0x1294('0xd9')][_0x1294('0xb7')][_0x1294('0x107')](w);this[_0x1294('0x64')]=_0x61847&&_0x5d2700;}}class Y extends _0x4474a2{constructor(_0x57c36d,{direction:_0x389082}){super(_0x57c36d);const _0xc22257=_0x57c36d['plugins'][_0x1294('0x107')](w);this['stopListening'](_0x57c36d,'change:isReadOnly'),this[_0x1294('0xb4')](_0x1294('0x68')),this[_0x1294('0x90')]=_0x1294('0x10a')===_0x389082?0x1:-0x1,this[_0x1294('0xda')](_0xc22257,_0x1294('0x9e'),()=>this[_0x1294('0x7a')]()),this[_0x1294('0xda')](_0xc22257,_0x1294('0x92'),()=>this['refresh']());}[_0x1294('0xa4')](){const _0x2a977a=this[_0x1294('0xd9')],_0x3a96c1=_0x2a977a[_0x1294('0xb7')]['get'](w),{isNavigationMode:_0x532727,currentChangeNumber:_0x222b39}=_0x3a96c1;_0x3a96c1[_0x1294('0xd')]=_0x532727?_0x3a96c1['diff'][_0x1294('0xac')][_0x1294('0x107')](_0x222b39+this[_0x1294('0x90')]):_0x3a96c1[_0x1294('0x76')]['changes'][_0x1294('0xd8')];const _0xebaf72=_0x2a977a[_0x1294('0x6e')][_0x1294('0x7c')][_0x1294('0x107')](_0x1294('0xb1')+_0x3a96c1[_0x1294('0xd')]['id']),_0x239b37=_0xdd8ba6(_0x2a977a[_0x1294('0x98')],_0xebaf72);_0x5eebd0({'target':_0x239b37,'viewportOffset':0x28});}[_0x1294('0x7a')](){const {isNavigationMode:_0x195d50,currentChangeNumber:_0x108ca7,numberOfChanges:_0x2277b0,isReady:_0x59738b,isEnabled:_0x5737f3}=this[_0x1294('0xd9')]['plugins'][_0x1294('0x107')](w);this['isEnabled']=!!(_0x5737f3&&_0x59738b&&_0x2277b0)&&(!_0x195d50||(0x1===this[_0x1294('0x90')]?_0x108ca7<_0x2277b0-0x1:_0x108ca7>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x294b=['source','bind','Name\x20this\x20revision','buttonView','Compare\x20against\x20selected','children','isReady','isOpen','stopPropagation','execute','locale','ck-revision-history-sidebar__revision__actions','ck-on','extendTemplate','Restore\x20this\x20revision','isActionsDropdownOpen','panelPosition','isVisible','action','set','items','function','bindTemplate','find','change:isActionsDropdownOpen','class','isEnabled','name','button'];(function(_0x1d1e1a,_0x294bd9){const _0x3a7cae=function(_0x3451d9){while(--_0x3451d9){_0x1d1e1a['push'](_0x1d1e1a['shift']());}};_0x3a7cae(++_0x294bd9);}(_0x294b,0xde));const _0x3a7c=function(_0x1d1e1a,_0x294bd9){_0x1d1e1a=_0x1d1e1a-0x0;let _0x3a7cae=_0x294b[_0x1d1e1a];return _0x3a7cae;};import{Collection as _0x57541a}from'ckeditor5/src/utils';import{Model as _0x36c3b6,addListToDropdown as _0x13224e,createDropdown as _0xbf9e26}from'ckeditor5/src/ui';import{getTranslation as _0x17674e}from'../../utils/common-translations';import _0x3e906d from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4aa64f,_0x3de7c8){const _0x402ec5=_0x4aa64f[_0x3a7c('0x3')],_0x27a1dc=_0x4aa64f[_0x3a7c('0x14')],_0x5e568a=_0xbf9e26(_0x27a1dc);_0x5e568a[_0x3a7c('0x1a')]='sw';const _0x2847ac=function(_0x1e4c3e,_0x589b9f){const _0x390a7b=function(_0x3f9a32,_0x494e6e){const _0x1bdeb4=_0x3f9a32['locale'],_0x49d026={'Compare\x20against\x20selected':_0x17674e(_0x1bdeb4,_0x3a7c('0xe')),'Name\x20this\x20revision':_0x17674e(_0x1bdeb4,_0x3a7c('0xc')),'Restore\x20this\x20revision':_0x17674e(_0x1bdeb4,_0x3a7c('0x18'))};return _0x494e6e['map'](_0x1bf34d=>{const _0x102353=_0x49d026[_0x1bf34d[_0x3a7c('0x8')]];return _0x102353&&_0x102353!==_0x1bf34d[_0x3a7c('0x8')]&&(_0x1bf34d[_0x3a7c('0x8')]=_0x102353),_0x1bf34d;});}(_0x1e4c3e,_0x589b9f),_0x1d2426=new _0x57541a();for(const _0xd39c1b of _0x390a7b){const _0x91bac2={'type':_0x3a7c('0x9'),'model':new _0x36c3b6({'label':_0xd39c1b[_0x3a7c('0x8')],'class':_0xd39c1b[_0x3a7c('0x6')],'withText':!0x0,'_action':_0xd39c1b[_0x3a7c('0x1c')]})};_0x91bac2['model'][_0x3a7c('0xb')]('isEnabled')['to'](_0x1e4c3e,_0x3a7c('0x19'),_0x2ec4a5=>_0x3a7c('0x2')!=typeof _0xd39c1b[_0x3a7c('0x7')]||(!_0x2ec4a5||_0xd39c1b[_0x3a7c('0x7')](_0x1e4c3e))),_0x1d2426['add'](_0x91bac2);}return _0x1d2426;}(_0x4aa64f,_0x3de7c8);return _0x4aa64f[_0x3a7c('0xb')](_0x3a7c('0x19'))['to'](_0x5e568a,_0x3a7c('0x11')),_0x5e568a[_0x3a7c('0xd')][_0x3a7c('0x0')]({'label':_0x17674e(_0x27a1dc,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3e906d}),_0x5e568a[_0x3a7c('0x17')]({'attributes':{'class':[_0x3a7c('0x15'),_0x402ec5['if'](_0x3a7c('0x19'),_0x3a7c('0x16'))]},'on':{'click':_0x402ec5['to'](_0x597e28=>_0x597e28[_0x3a7c('0x12')]())}}),_0x5e568a['on'](_0x3a7c('0x13'),_0x485bb0=>{_0x4aa64f[_0x3a7c('0x10')]&&_0x3a7c('0x2')==typeof _0x485bb0[_0x3a7c('0xa')]['_action']&&_0x485bb0[_0x3a7c('0xa')]['_action'](_0x4aa64f);}),_0x13224e(_0x5e568a,_0x2847ac),_0x5e568a['listenTo'](_0x4aa64f,_0x3a7c('0x5'),(_0xae59d8,_0x2883aa,_0xb8db22)=>{if(_0xb8db22)for(const _0x55d0d1 of _0x5e568a['listView'][_0x3a7c('0x1')]){const _0x39dae4=_0x55d0d1[_0x3a7c('0xf')]['first'],_0x179a8e=_0x3de7c8[_0x3a7c('0x4')](_0x385e0d=>_0x385e0d['action']===_0x39dae4['_action'])[_0x3a7c('0x1b')];_0x55d0d1[_0x3a7c('0x1b')]=void 0x0===_0x179a8e||_0x179a8e(_0x4aa64f);}}),_0x5e568a;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e98=['set','ck-revision-history-sidebar__revision-author','Revision\x20author','setTemplate','Revision\x20creator'];(function(_0x2b55ea,_0x1e981e){const _0x1d681c=function(_0x2ef173){while(--_0x2ef173){_0x2b55ea['push'](_0x2b55ea['shift']());}};_0x1d681c(++_0x1e981e);}(_0x1e98,0x11a));const _0x1d68=function(_0x2b55ea,_0x1e981e){_0x2b55ea=_0x2b55ea-0x0;let _0x1d681c=_0x1e98[_0x2b55ea];return _0x1d681c;};import{View as _0x208e3c,IconView as _0x24bf6e}from'ckeditor5/src/ui';import{getTranslation as _0x160609}from'../../utils/common-translations';import _0x55f3ec from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x208e3c{constructor(_0x55a26b,_0x306250,_0x4b74fd){super(_0x55a26b);const _0x139309=new _0x24bf6e(_0x55a26b);_0x139309[_0x1d68('0x3')]({'content':_0x55f3ec,'viewBox':'0\x200\x2011\x2010'});const _0x26d058=['ck',_0x1d68('0x4')];_0x4b74fd&&_0x26d058['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1cdc8f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x160609(_0x55a26b,_0x4b74fd?_0x1d68('0x2'):_0x1d68('0x0'))},'children':[_0x139309,_0x306250['name']]}];this[_0x1d68('0x1')]({'tag':'li','attributes':{'class':_0x26d058},'children':_0x1cdc8f});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x40df=['extendTemplate','span','set','ck-revision-history-sidebar__revision-name'];(function(_0x5bbc21,_0x40dfe6){var _0x3b39b1=function(_0x5618f6){while(--_0x5618f6){_0x5bbc21['push'](_0x5bbc21['shift']());}};_0x3b39b1(++_0x40dfe6);}(_0x40df,0x1e5));var _0x3b39=function(_0x5bbc21,_0x40dfe6){_0x5bbc21=_0x5bbc21-0x0;var _0x3b39b1=_0x40df[_0x5bbc21];return _0x3b39b1;};import{LabeledFieldView as _0x5df528}from'ckeditor5/src/ui';import{getTranslation as _0xde627a}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x5df528{constructor(_0x4d489e,..._0x45eae9){super(_0x4d489e,..._0x45eae9),this[_0x3b39('0x1')]({'label':_0xde627a(_0x4d489e,'Revision\x20name')}),this[_0x3b39('0x3')]({'tag':_0x3b39('0x0'),'attributes':{'class':[_0x3b39('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x523d=['bind','revisionNameView','ck-revision-history-sidebar__revision','change','_createdAtFormatted','uiLanguage','deselect','bindTemplate','unshift','isHighlighted','highlight','listenTo','closest','220','revisionActionsView','map','isEnabled','div','isConfirm','unhighlight','creator','isReady','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','createdAt','placeholder','ck-revision-history-sidebar__revision_selected','extendTemplate','ck-revision-history-sidebar__revision-wrapper','name','filter','length','srcElement','.ck-thread__remove-confirm','ck-revision-history-sidebar__actions_dropdown_open','fieldView','value','ck-revision-history-sidebar__revision__controls-wrapper','fire','select','isActionsDropdownOpen','ck-reset','isSelected','render','from','ck-revision-history-sidebar__revision_highlighted','set'];(function(_0x538335,_0x523d78){const _0x5034fc=function(_0x7dad4c){while(--_0x7dad4c){_0x538335['push'](_0x538335['shift']());}};_0x5034fc(++_0x523d78);}(_0x523d,0x79));const _0x5034=function(_0x538335,_0x523d78){_0x538335=_0x538335-0x0;let _0x5034fc=_0x523d[_0x538335];return _0x5034fc;};import{View as _0x47823a,createLabeledInputText as _0x3c62b3}from'ckeditor5/src/ui';import{mix as _0x336192}from'ckeditor5/src/utils';import{ConfirmMixin as _0x5509d8}from'ckeditor5-collaboration/src/collaboration-core';import _0x11a893 from'./revisionnameview';import _0x248361 from'./revisionauthorview';import{dateToPrettyFormat as _0x22d04c}from'./utils';import{createActionsDropdownView as _0x53347f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x47823a{constructor(_0x44f917,_0x1af35d,_0x52417a){super(_0x44f917);const _0xbca7a1=this[_0x5034('0x18')],_0x2147cd=function(_0x10ce0d,_0xd05d8c){const _0x29f24c=Array[_0x5034('0xe')](_0xd05d8c['authors'])[_0x5034('0x0')](_0x57fc2f=>_0x57fc2f!=_0xd05d8c[_0x5034('0x25')]);return _0xd05d8c[_0x5034('0x25')]&&_0x29f24c[_0x5034('0x19')](_0xd05d8c[_0x5034('0x25')]),_0x29f24c[_0x5034('0x20')](_0x130677=>new _0x248361(_0x10ce0d,_0x130677,_0x130677==_0xd05d8c[_0x5034('0x25')]));}(_0x44f917,_0x1af35d);this['_revision']=_0x1af35d,this['id']=_0x1af35d['id'],this[_0x5034('0x11')]('name',_0x5034('0x28'))['to'](_0x1af35d),this['set']('isSelected',!0x1),this[_0x5034('0x10')](_0x5034('0x1a'),!0x1),this['set']('isActionsDropdownOpen',!0x1),this[_0x5034('0x10')](_0x5034('0x26'),!0x1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x107d98=>_0x107d98?_0x22d04c(_0x44f917[_0x5034('0x16')],_0x107d98):null),this['set']('isEnabled',!0x1),this['revisionNameView']=new _0x11a893(_0x44f917,_0x3c62b3),this['revisionNameView'][_0x5034('0x5')][_0x5034('0x2b')]({'attributes':{'maxlength':_0x5034('0x1e')}}),this[_0x5034('0x12')][_0x5034('0x5')]['bind'](_0x5034('0x6'),_0x5034('0x29'))['to'](this,_0x5034('0x2d'),_0x5034('0x15')),this[_0x5034('0x12')][_0x5034('0x11')]('isEnabled')['to'](this,'isSelected',this,_0x5034('0x21'),(_0x17ea24,_0x23f8ed)=>_0x17ea24&&_0x23f8ed),this[_0x5034('0x1f')]=_0x52417a&&_0x52417a[_0x5034('0x1')]?_0x53347f(this,_0x52417a):'',this[_0x5034('0x1f')][_0x5034('0x11')](_0x5034('0x21'))['to'](this),this['setTemplate']({'tag':_0x5034('0x22'),'attributes':{'class':['ck',_0x5034('0xb'),_0x5034('0x2c'),_0xbca7a1['if'](_0x5034('0x23'),_0x5034('0x27'))]},'children':[{'tag':_0x5034('0x22'),'attributes':{'class':['ck','ck-reset',_0x5034('0x13'),_0xbca7a1['if'](_0x5034('0x21'),'ck-disabled',_0x25a4bd=>!_0x25a4bd),_0xbca7a1['if'](_0x5034('0xc'),_0x5034('0x2a')),_0xbca7a1['if'](_0x5034('0x1a'),_0x5034('0xf')),_0xbca7a1['if'](_0x5034('0xa'),_0x5034('0x4'))]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0xbca7a1['to'](_0x5034('0x15'))}]},{'tag':_0x5034('0x22'),'attributes':{'class':['ck',_0x5034('0x7')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x2147cd}]},this[_0x5034('0x1f')]],'on':{'click':_0xbca7a1['to'](_0x1d1773=>{_0x1d1773[_0x5034('0x2')][_0x5034('0x1d')](_0x5034('0x3'))||this[_0x5034('0x26')]&&this[_0x5034('0x21')]&&this[_0x5034('0x8')](_0x5034('0x9'),{'id':this['id']});})}}]});}['render'](){super[_0x5034('0xd')]();const _0x598270=this['revisionNameView']['fieldView']['element'];this[_0x5034('0x1c')](_0x598270,_0x5034('0x14'),()=>{this['fire']('setName',{'id':this['id'],'name':_0x598270[_0x5034('0x6')]});});}['select'](){this['isSelected']=!0x0;}[_0x5034('0x17')](){this[_0x5034('0xc')]=!0x1;}[_0x5034('0x1b')](){this[_0x5034('0x1a')]=!0x0;}[_0x5034('0x24')](){this[_0x5034('0x1a')]=!0x1;}}_0x336192(ci,_0x5509d8);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bb7=['ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','set','span','setTemplate','button','isVisible','false','true','toggle'];(function(_0x4eed4a,_0x4bb735){const _0x465eb6=function(_0x39bca9){while(--_0x39bca9){_0x4eed4a['push'](_0x4eed4a['shift']());}};_0x465eb6(++_0x4bb735);}(_0x4bb7,0x1af));const _0x465e=function(_0x4eed4a,_0x4bb735){_0x4eed4a=_0x4eed4a-0x0;let _0x465eb6=_0x4bb7[_0x4eed4a];return _0x465eb6;};import{View as _0x411a4f}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x411a4f{constructor(_0x300dc9){super(_0x300dc9);const _0x343d88=this['bindTemplate'];this[_0x465e('0x1')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x465e('0x3')]({'tag':_0x465e('0x2'),'attributes':{'class':['ck',_0x465e('0x9'),_0x343d88['if'](_0x465e('0x5'),'ck-hidden',_0x5987cc=>!_0x5987cc),_0x343d88['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x465e('0x4'),'aria-pressed':_0x343d88['to'](_0x465e('0x0'),_0x48fbd3=>_0x48fbd3?_0x465e('0x6'):_0x465e('0x7'))},'children':[{'tag':_0x465e('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x343d88['to']('click')}});}[_0x465e('0x8')](){this[_0x465e('0x0')]=!this[_0x465e('0x0')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x257e=['_createdAtFormatted','uiLanguage','_parentRevisionId','ck-revision-history-sidebar__subrevision','span','ck-revision-history-sidebar__revision-authors','bindTemplate','ck-revision-history-sidebar__revision_selected','deselect','author','fire','bind','select','isSelected','createdAt'];(function(_0x503b96,_0x257ec6){const _0x7c492b=function(_0x5f2f93){while(--_0x5f2f93){_0x503b96['push'](_0x503b96['shift']());}};_0x7c492b(++_0x257ec6);}(_0x257e,0x1b5));const _0x7c49=function(_0x503b96,_0x257ec6){_0x503b96=_0x503b96-0x0;let _0x7c492b=_0x257e[_0x503b96];return _0x7c492b;};import{View as _0x43fd07}from'ckeditor5/src/ui';import _0x1a2f7a from'./revisionauthorview';import{dateToPrettyFormat as _0x102416}from'./utils';import'../../../theme/revision/subrevision.css';export default class ct extends _0x43fd07{constructor(_0x114b9c,_0x314803,_0x29cdc3){super(_0x114b9c);const _0x3067f1=this[_0x7c49('0x4')];this['id']=_0x314803['id'],this[_0x7c49('0x9')]('createdAt')['to'](_0x314803),this['set'](_0x7c49('0xb'),!0x1),this[_0x7c49('0x9')](_0x7c49('0xd'))['to'](this,_0x7c49('0xc'),_0x16157c=>_0x16157c?_0x102416(_0x114b9c[_0x7c49('0xe')],_0x16157c):null),this[_0x7c49('0x0')]=_0x29cdc3,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x7c49('0x1'),_0x3067f1['if'](_0x7c49('0xb'),_0x7c49('0x5'))]},'children':[{'tag':_0x7c49('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x3067f1['to'](_0x7c49('0xd'))}]},{'tag':'ul','attributes':{'class':['ck',_0x7c49('0x3')]},'children':[new _0x1a2f7a(_0x114b9c,_0x314803[_0x7c49('0x7')],!0x0)]}],'on':{'click':_0x3067f1['to'](this[_0x7c49('0xa')]['bind'](this))}});}[_0x7c49('0xa')](){this[_0x7c49('0xb')]=!0x0,this[_0x7c49('0x8')](_0x7c49('0xa'),{'parentId':this[_0x7c49('0x0')]});}[_0x7c49('0x6')](){this[_0x7c49('0xb')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1d1b=['long','toLocaleDateString','numeric'];(function(_0x505541,_0x1d1bba){var _0x548bdb=function(_0x36b78b){while(--_0x36b78b){_0x505541['push'](_0x505541['shift']());}};_0x548bdb(++_0x1d1bba);}(_0x1d1b,0x1b5));var _0x548b=function(_0x505541,_0x1d1bba){_0x505541=_0x505541-0x0;var _0x548bdb=_0x1d1b[_0x505541];return _0x548bdb;};export function dateToPrettyFormat(_0x130de7,_0x4a44e0){return _0x4a44e0[_0x548b('0x2')](_0x130de7,{'month':_0x548b('0x1'),'day':_0x548b('0x0')})+',\x20'+_0x4a44e0['toLocaleTimeString'](_0x130de7,{'hour':_0x548b('0x0'),'minute':_0x548b('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfc3a=['_focusCycler','execute','stopPropagation','listenTo','submit','cancelButtonView','focusFirst','locale','label','tab','ck-responsive-form','Save','input','revisionNameInputView','extendTemplate','220','type','render','value','setTemplate','_createRevisionNameInput','fieldView','shift\x20+\x20tab','saveButtonView','element','add','focus','trim','arrowleft','forEach','ck-revision-history-save-revision-form','form','selectstart','_focusables','ck-button-cancel','revisionNameInputValue','revisionName','focusTracker','set','keystrokes'];(function(_0xf75003,_0xfc3a6b){const _0x4d06c9=function(_0x485e8c){while(--_0x485e8c){_0xf75003['push'](_0xf75003['shift']());}};_0x4d06c9(++_0xfc3a6b);}(_0xfc3a,0xa4));const _0x4d06=function(_0xf75003,_0xfc3a6b){_0xf75003=_0xf75003-0x0;let _0x4d06c9=_0xfc3a[_0xf75003];return _0x4d06c9;};import{ButtonView as _0xb06645,FocusCycler as _0x207bd2,LabeledFieldView as _0x333a8a,View as _0x4d4d29,ViewCollection as _0x3a80e8,createLabeledInputText as _0x5cbc87,injectCssTransitionDisabler as _0x30789b,submitHandler as _0x47a7e2}from'ckeditor5/src/ui';import{FocusTracker as _0x178ebf,KeystrokeHandler as _0x53b9fa}from'ckeditor5/src/utils';import{getTranslation as _0x836dd7}from'../../utils/common-translations';import _0x3465e3 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x10dd41 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class dt extends _0x4d4d29{constructor(_0x2f93d2){super(_0x2f93d2),this['focusTracker']=new _0x178ebf(),this['keystrokes']=new _0x53b9fa(),this['set'](_0x4d06('0x1f'),''),this[_0x4d06('0x9')]=this[_0x4d06('0x10')](),this[_0x4d06('0x13')]=this['_createButton'](_0x836dd7(_0x2f93d2,_0x4d06('0x7')),_0x3465e3,'ck-button-save'),this[_0x4d06('0x13')][_0x4d06('0xc')]=_0x4d06('0x0'),this['cancelButtonView']=this['_createButton'](_0x836dd7(_0x2f93d2,'Cancel'),_0x10dd41,_0x4d06('0x1e'),'cancel'),this[_0x4d06('0x1d')]=new _0x3a80e8(),this[_0x4d06('0x24')]=new _0x207bd2({'focusables':this[_0x4d06('0x1d')],'focusTracker':this[_0x4d06('0x21')],'keystrokeHandler':this[_0x4d06('0x23')],'actions':{'focusPrevious':_0x4d06('0x12'),'focusNext':_0x4d06('0x5')}}),this[_0x4d06('0xf')]({'tag':_0x4d06('0x1b'),'attributes':{'class':['ck',_0x4d06('0x1a'),_0x4d06('0x6')],'tabindex':'-1'},'children':[this[_0x4d06('0x9')],this[_0x4d06('0x13')],this[_0x4d06('0x1')]]}),_0x30789b(this);}[_0x4d06('0xd')](){super[_0x4d06('0xd')](),_0x47a7e2({'view':this}),([this['revisionNameInputView'],this[_0x4d06('0x13')],this['cancelButtonView']][_0x4d06('0x19')](_0x2e0c45=>{this['_focusables']['add'](_0x2e0c45),this[_0x4d06('0x21')][_0x4d06('0x15')](_0x2e0c45[_0x4d06('0x14')]);}),this[_0x4d06('0x23')][_0x4d06('0x27')](this[_0x4d06('0x14')]));const _0xe9a4e1=_0x52e199=>_0x52e199[_0x4d06('0x26')]();this[_0x4d06('0x23')][_0x4d06('0x22')]('arrowright',_0xe9a4e1),this[_0x4d06('0x23')]['set'](_0x4d06('0x18'),_0xe9a4e1),this[_0x4d06('0x23')][_0x4d06('0x22')]('arrowup',_0xe9a4e1),this[_0x4d06('0x23')]['set']('arrowdown',_0xe9a4e1),this['listenTo'](this['revisionNameInputView'][_0x4d06('0x14')],_0x4d06('0x1c'),(_0x161c83,_0x28c497)=>{_0x28c497['stopPropagation']();},{'priority':'high'});}[_0x4d06('0x16')](){this[_0x4d06('0x24')][_0x4d06('0x2')]();}get[_0x4d06('0x20')](){return this['revisionNameInputView'][_0x4d06('0x11')][_0x4d06('0x14')][_0x4d06('0xe')][_0x4d06('0x17')]();}set[_0x4d06('0x20')](_0x31409d){this['revisionNameInputView'][_0x4d06('0x11')]['element']['value']=_0x31409d[_0x4d06('0x17')]();}['reset'](){this[_0x4d06('0x9')][_0x4d06('0x11')][_0x4d06('0x14')][_0x4d06('0xe')]='';}[_0x4d06('0x10')](){const _0x4bd293=new _0x333a8a(this[_0x4d06('0x3')],_0x5cbc87),_0x3ab47a=_0x4bd293[_0x4d06('0x11')];return _0x3ab47a[_0x4d06('0xa')]({'attributes':{'maxlength':_0x4d06('0xb')}}),_0x4bd293[_0x4d06('0x4')]=_0x836dd7(this[_0x4d06('0x3')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x3ab47a['on'](_0x4d06('0x8'),()=>{this[_0x4d06('0x1f')]=_0x3ab47a['element'][_0x4d06('0xe')]['trim']();}),_0x4bd293;}['_createButton'](_0x3f179e,_0x563dd8,_0x1f3674,_0xe3425b){const _0x5bb3b8=new _0xb06645(this[_0x4d06('0x3')]);return _0x5bb3b8[_0x4d06('0x22')]({'label':_0x3f179e,'icon':_0x563dd8,'tooltip':!0x0}),_0x5bb3b8['extendTemplate']({'attributes':{'class':_0x1f3674}}),_0xe3425b&&_0x5bb3b8['delegate'](_0x4d06('0x25'))['to'](this,_0xe3425b),_0x5bb3b8;}}
|