@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231128.0 → 0.0.0-nightly-20231129.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 +6 -6
- 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 _0x224c=['markerRange','forward','WidgetToolbarRepository','commands','split','deletions','editing','revision','upcast','startsWith','elementStart','getRevisionRootsAttributes','softBreak','view','config','_getChangeFromId','revisionHistoryAttachChange','_initInteractions','filter','uiElement','insert','adapter','locale','diff','pluginName','all','createRange','schema','toModel','isBefore','side','abs','change:activeView','RevisionViewer','getAttribute','showStack','getCustomProperty','consume','bind','getWalker','-new','data','vid_end','isEnabled','_markInsertions','processor','removeAttribute','_getDiff','addRevision','keys','parent','roots','isSuggestion','detachRoot','revisionHistoryLabel','_cleanUp','level','shift','isIncorrect','attributesAfter','hasClass','toData','_changeView','isReady','catch','right','isInline','_fixObsoleteTags','affectsData','values','_update','removeMarker','first','mousedown','concat','revision-suggestion:','left','getAttributes','dataToMarker','toViewRange','_removeUnsupportedChanges','ck-editor__editable__overlay','listenTo','rootName','consumable','includes','_getViewForChange','revision-suggestion','push','_getRevisionsRange','from','_sortAndFilterDiffChanges','isLimit','data-revision-','isRemoved','_activeViewTarget','authors','markerToData','suggestion','isAfter','activeView','children','loadRevisionData','highest','forceDisabled','editor','model','markerNameToElements','map','addClass','numberOfChanges','item','document','remove','change:activeChange','change','newRevisionId','for','removeClass','markers','insertion','_markMismatchedRemovedTags','ck-suggestion-preview-marker','isCollapsed','merge','change:isReady','_makeModelFromViewString','domConverter','repository','has','name','isOnRoot','revision:','_balloon','isObject','viewItem','getRoot','nextSibling','restoreRevisionCallback','_removeMissingPairs','unbindElementFromMarkerName','pop','ck-revision-history-root-add','top','isAtEnd','marked','_makeModelFromTape','changes','delete','pairId','_setDistance','then','ck-revision-history-root--active','offsetSize','currentChangeNumber','span','flat','getChild','execute','addMarker:revision-suggestion:insertion','add','reconvertMarker','element:pre','done','_getViewObj','endIndex','range','init','addMarker:revision-suggestion:deletion','useFillerType','enableReadOnlyMode','wrap','low','test','_appendChild','next','deletion','createAttributeElement','maxOffset','addMarker:revision','destroy','editingDowncast','createPositionFromPath','high','activeChange','change:isEnabled','getDomRoot','_processTape','suggestion:','downcastDispatcher','data-change-id','removeMarker:revision','diffData','findIndex','get','isEqual','domEvent','vid','comment','string','elementEnd','attachChange','revisionHistory','addRevisionData','ck-suggestion-marker-merge','return','startIndex','enqueueChange','showNextChange','refresh','_threeWayMerge','ck-suggestion-marker--active','addHighlight','selection','splice','error','attributesBefore','getIndex','restoreRevision','type','getRootNames','default','_setConversion','forEach','_cleanMarkers','mapper','conversion','markerToHighlight','ck-suggestion-marker-','isAdded','RevisionsRepository','sort','previousPosition','createUIElement','userId','modelRange','insertions','_makeTape','end','markerName','getRevisionData','vid_start','start','toViewPosition','_refreshStartEndIndex','isAtStart','bindElementToMarker','getClientRects','markersStart','attributes','ck-suggestion-preview-marker-','POSITIVE_INFINITY','_changeIdToChange','length','distance','isAddSuggestion','find','isRemoveSuggestion','unshift','_step','plugins','indexOf','isBlock','revision-viewer','compare','getRevision','resolve','collaboration.channelId','_setChanges','text','slice','markersEnd','revision-comment:','set','parse','showPreviousChange','object','toViewElement','updatePosition','_findChangeIdFromDomTarget','hasAttribute','writer','mapViewToDom','ck-revision-history-root-remove','isAttached','nextPosition','_joinTapes','addRoot','target','nodeAfter','index','_markSuggestions','_removeRevisionMarkers','element','setAttribute'];(function(_0x42e2c7,_0x224c4a){const _0x3c13bb=function(_0xf3dccb){while(--_0xf3dccb){_0x42e2c7['push'](_0x42e2c7['shift']());}};_0x3c13bb(++_0x224c4a);}(_0x224c,0x75));const _0x3c13=function(_0x42e2c7,_0x224c4a){_0x42e2c7=_0x42e2c7-0x0;let _0x3c13bb=_0x224c[_0x42e2c7];return _0x3c13bb;};import{Plugin as _0x2b7b9c,Command as _0x17e90c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x28c5c9}from'ckeditor5/src/utils';import{ContextualBalloon as _0xad9068}from'ckeditor5/src/ui';import{DocumentFragment as _0x357518,Element as _0x5020ed,Text as _0x57709f,ViewDocumentFragment as _0x2c2406,ViewText as _0x3435c4,ViewElement as _0x32fc8b,ViewContainerElement as _0x262a4d,ViewAttributeElement as _0x5b5a6f,ViewEmptyElement as _0x54d03b,ViewRawElement as _0x5b0b42,ViewUIElement as _0x18498a}from'ckeditor5/src/engine';import{Users as _0x1b6f7a,getMarkerDomElement as _0x382f5c}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e0073 from'./ui/revisionviewer/changedetailsview';import _0x138e4c from'./revisionsrepository';import _0x164e19 from'./changeitem';import{default as _0x2883e3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3c5713}from'lodash-es';const tt={'c':_0x262a4d,'a':_0x5b5a6f,'e':_0x54d03b,'r':_0x5b0b42,'u':_0x18498a};export default class d extends _0x2b7b9c{static get[_0x3c13('0xca')](){return'RevisionViewer';}static get['requires'](){return[_0x1b6f7a,_0xad9068,_0x138e4c];}constructor(_0x4b570a){super(_0x4b570a),this[_0x3c13('0xb')]=this['editor'][_0x3c13('0x8f')][_0x3c13('0x4d')](_0x3c13('0x71')),this[_0x3c13('0x9c')](_0x3c13('0x43'),null),this[_0x3c13('0x9c')](_0x3c13('0x116'),null),this[_0x3c13('0x111')]=null,this['set'](_0x3c13('0xc9'),null),this[_0x3c13('0x9c')]('isReady',!0x1),this[_0x3c13('0x9c')](_0x3c13('0xdd'),!0x0),this['on'](_0x3c13('0x44'),(_0x5a7d3a,_0xdabdb,_0x314b52)=>{this[_0x3c13('0x43')]=null,this[_0x3c13('0x116')]=null,this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')]['change'](_0x1bc516=>{for(const _0x2acca7 of this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')][_0x3c13('0xe5')])_0x314b52?_0x1bc516[_0x3c13('0x1')](_0x3c13('0x103'),_0x2acca7):_0x1bc516[_0x3c13('0x11f')](_0x3c13('0x103'),_0x2acca7);});}),this['bind']('isNavigationMode')['to'](this,_0x3c13('0x43'),_0x28b021=>null!==_0x28b021),this[_0x3c13('0xd8')](_0x3c13('0x25'))['to'](this,_0x3c13('0xf1'),this,_0x3c13('0xc9'),this,_0x3c13('0x43'),(_0x1d3066,_0x30a716,_0x50c724)=>_0x1d3066&&_0x50c724?_0x30a716['changes'][_0x3c13('0x64')](_0x50c724):0x0),this[_0x3c13('0xd8')](_0x3c13('0x120'))['to'](this,_0x3c13('0xf1'),this,_0x3c13('0xc9'),(_0x1bafad,_0x322317)=>_0x1bafad?_0x322317[_0x3c13('0x1e')][_0x3c13('0x88')]:0x0),this['_changeView']=null,this[_0x3c13('0x87')]=new Map(),this['adapter']=null,this[_0x3c13('0x10')]=this[_0x3c13('0x11b')][_0x3c13('0x8f')][_0x3c13('0x4d')](_0xad9068);}[_0x3c13('0x32')](){const _0x237ed1=this[_0x3c13('0x11b')],_0x1f04d1=new ShowChangeCommand(_0x237ed1,{'direction':'backward'}),_0x35b211=new ShowChangeCommand(_0x237ed1,{'direction':'forward'});(_0x237ed1['commands'][_0x3c13('0x2b')](_0x3c13('0x9e'),_0x1f04d1),_0x237ed1[_0x3c13('0xb5')][_0x3c13('0x2b')](_0x3c13('0x5b'),_0x35b211),_0x237ed1[_0x3c13('0xb5')][_0x3c13('0x2b')](_0x3c13('0x65'),new RestoreRevisionCommand(_0x237ed1)),this['on']('change:numberOfChanges',()=>{_0x1f04d1[_0x3c13('0x5c')](),_0x35b211[_0x3c13('0x5c')]();}),this[_0x3c13('0x69')](),this[_0x3c13('0xc3')](),_0x237ed1[_0x3c13('0x35')](_0x3c13('0x92')),_0x237ed1[_0x3c13('0x8f')][_0x3c13('0xc')](_0x3c13('0xb4')))&&_0x237ed1[_0x3c13('0x8f')]['get']('WidgetToolbarRepository')[_0x3c13('0x11a')](_0x3c13('0x92'));}async[_0x3c13('0x7b')](_0x3b6090){await this['loadRevisionData'](_0x3b6090);const _0x37a73b={};for(const _0x138500 in _0x3b6090[_0x3c13('0x4b')]){if(_0x3b6090[_0x3c13('0x4b')][_0x138500][_0x3c13('0x54')]&&!_0x3b6090['diffData'][_0x138500]['attachChange'][_0x3c13('0xa7')])continue;const _0xa1bf1a=this[_0x3c13('0xaf')](JSON[_0x3c13('0x9d')](_0x3b6090['diffData'][_0x138500][_0x3c13('0x77')])),_0x1e5298=this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')],_0x2f5d1a=new _0x2c2406(_0x1e5298,_0xa1bf1a[_0x3c13('0x11e')](_0x499c26=>this['_getViewObj'](_0x499c26)));this[_0x3c13('0x11b')][_0x3c13('0xdb')][_0x3c13('0xdf')][_0x3c13('0x34')](_0x3c13('0x1c')),_0x37a73b[_0x138500]=this[_0x3c13('0x11b')][_0x3c13('0xdb')][_0x3c13('0xdf')][_0x3c13('0xef')](_0x2f5d1a),this['editor'][_0x3c13('0xdb')][_0x3c13('0xdf')]['useFillerType'](_0x3c13('0x68'));}return _0x37a73b;}async[_0x3c13('0xbd')](_0x57a5e8){await this[_0x3c13('0x118')](_0x57a5e8);const _0x13e190={};for(const _0x717d5e in _0x57a5e8['diffData'])_0x57a5e8[_0x3c13('0x4b')][_0x717d5e]['attachChange']&&!_0x57a5e8['diffData'][_0x717d5e][_0x3c13('0x54')][_0x3c13('0xa7')]||(_0x13e190[_0x717d5e]=_0x57a5e8[_0x3c13('0x4b')][_0x717d5e]['attributesAfter']||{});return _0x13e190;}[_0x3c13('0xaf')](_0x55ee3a){return(_0x55ee3a=_0x55ee3a[_0x3c13('0xc4')](_0x51d19e=>!_0x51d19e['name']||'revision-start'!==_0x51d19e[_0x3c13('0xd')]&&'revision-end'!==_0x51d19e[_0x3c13('0xd')]))[_0x3c13('0x6a')](_0x5c3c1e=>{'string'!=typeof _0x5c3c1e&&(_0x5c3c1e[_0x3c13('0x117')]=this[_0x3c13('0xaf')](_0x5c3c1e['children']),_0x5c3c1e[_0x3c13('0x84')]=_0x5c3c1e['attributes'][_0x3c13('0xc4')](_0x42bf69=>!_0x42bf69[0x0]['startsWith'](_0x3c13('0x10f'))));}),_0x55ee3a;}async[_0x3c13('0x93')](_0x373903,_0x48318d,_0x1a69f6=!0x1){if(!this[_0x3c13('0xdd')])return;const _0x442266=this[_0x3c13('0xc9')],_0x50e2f1=this['repository'],_0x33bb61=_0x3c13('0x52')==typeof _0x373903?_0x50e2f1[_0x3c13('0x94')](_0x373903):_0x373903,_0x22b82b=_0x3c13('0x52')==typeof _0x48318d?_0x50e2f1['getRevision'](_0x48318d):_0x48318d,_0x5d000d=_0x33bb61['id'],_0x4942eb=_0x22b82b?_0x22b82b['id']:null;if(!_0x1a69f6&&this['diff']&&this['diff'][_0x3c13('0x126')]===_0x5d000d&&this[_0x3c13('0xc9')]['oldRevisionId']===_0x4942eb)return Promise['resolve']();this[_0x3c13('0xf1')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x3c13('0xc9')]=new _0x2883e3(_0x5d000d,_0x4942eb);const _0x30dcf5=this[_0x3c13('0x10b')](_0x33bb61,_0x22b82b,!0x0)[_0x3c13('0x11e')](_0x2a6b07=>this[_0x3c13('0x118')](_0x2a6b07));return _0x30dcf5[_0x3c13('0x10a')](new Promise(_0x271bd0=>{setTimeout(_0x271bd0,0x14);})),Promise[_0x3c13('0xcb')](_0x30dcf5)[_0x3c13('0x22')](()=>{if(!this[_0x3c13('0xdd')])return;this['_cleanUp']();const _0x29d221=this[_0x3c13('0xe1')](_0x5d000d,_0x4942eb);for(const _0x295da0 of _0x29d221[_0x3c13('0x1e')])this[_0x3c13('0x87')]['set'](_0x295da0['id'],_0x295da0);this[_0x3c13('0x11b')][_0x3c13('0x11c')]['enqueueChange']({'isUndoable':!0x1},_0x5bfe25=>{for(const _0x62564d of this['editor'][_0x3c13('0x11c')]['document'][_0x3c13('0x67')]())_0x5bfe25[_0x3c13('0xe7')](_0x62564d);for(const _0x14c790 of Object[_0x3c13('0xe3')](_0x29d221[_0x3c13('0x11c')])){const _0x13f125=_0x5bfe25[_0x3c13('0xaa')](_0x14c790);for(const _0x3c329f of Object['keys'](_0x29d221['attributes'][_0x14c790]))_0x5bfe25[_0x3c13('0xb1')](_0x3c329f,_0x29d221[_0x3c13('0x84')][_0x14c790][_0x3c329f],_0x13f125);_0x5bfe25[_0x3c13('0xc6')](_0x29d221[_0x3c13('0x11c')][_0x14c790],_0x13f125,0x0);}}),this['diff'][_0x3c13('0x97')](this['_sortAndFilterDiffChanges'](_0x29d221['changes'])),this[_0x3c13('0xf1')]=!0x0;})[_0x3c13('0xf2')](_0xfd7014=>{console[_0x3c13('0x62')](_0xfd7014),this[_0x3c13('0xe9')](),_0x442266&&(this[_0x3c13('0xc9')]=_0x442266),this[_0x3c13('0xf1')]=!0x0;});}[_0x3c13('0x56')](_0x1068c4,_0x314dd2){const _0x19bb72=this[_0x3c13('0xb')]['createRevision'](_0x1068c4);return _0x19bb72['on'](_0x3c13('0xf8'),(_0x3b0bf6,_0x781bf9,_0x381467)=>_0x314dd2(_0x781bf9,_0x381467,_0x19bb72)),this['repository'][_0x3c13('0xe2')](_0x19bb72),_0x19bb72;}[_0x3c13('0x118')](_0xc3bc8a){if(!_0xc3bc8a||_0xc3bc8a['diffData'])return Promise[_0x3c13('0x95')]();{const _0x345bec=this['editor'][_0x3c13('0xc0')][_0x3c13('0x4d')](_0x3c13('0x96'));return this[_0x3c13('0xc7')][_0x3c13('0x94')]({'channelId':_0x345bec,'revisionId':_0xc3bc8a['id']})[_0x3c13('0x22')](_0x523ff1=>{_0xc3bc8a[_0x3c13('0xf8')]({'diffData':_0x523ff1[_0x3c13('0x4b')]},!0x0);});}}[_0x3c13('0xe9')](){this[_0x3c13('0x43')]=null,this[_0x3c13('0x6b')](),this[_0x3c13('0xf0')]&&this[_0x3c13('0xf0')][_0x3c13('0x3f')](),this[_0x3c13('0xf0')]=null,this[_0x3c13('0x87')]['clear'](),this[_0x3c13('0x11b')][_0x3c13('0x11c')][_0x3c13('0x5a')]({'isUndoable':!0x1},_0x596734=>{for(const _0x487ed1 of this['editor'][_0x3c13('0x11c')]['document'][_0x3c13('0x67')]())_0x596734[_0x3c13('0xe7')](_0x487ed1);});}[_0x3c13('0x10d')](_0x24e7c7){const _0x361964=[],_0x110c17=new Map();for(const _0x24bb1e of this[_0x3c13('0x11b')]['model'][_0x3c13('0x122')]['getRootNames']()){const _0x32c770=this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x45')](_0x24bb1e);if(!_0x32c770)continue;const _0x1483a4=_0x32c770[_0x3c13('0x82')]()['item'](0x0);_0x1483a4&&(_0x361964[_0x3c13('0x10a')](_0x24bb1e),_0x110c17[_0x3c13('0x9c')](_0x24bb1e,_0x1483a4));}return _0x361964[_0x3c13('0x72')]((_0x4625a9,_0x2fe2b9)=>{const _0x40ce18=_0x110c17['get'](_0x4625a9),_0x2e906c=_0x110c17[_0x3c13('0x4d')](_0x2fe2b9);return _0x40ce18['y']-_0x2e906c['y']||_0x40ce18['x']-_0x2e906c['x'];}),(_0x24e7c7=_0x24e7c7[_0x3c13('0xc4')](_0x387857=>_0x361964[_0x3c13('0x107')](_0x387857[_0x3c13('0x105')])))[_0x3c13('0x72')]((_0xa7ce14,_0x2c3ea0)=>_0x361964[_0x3c13('0x90')](_0xa7ce14[_0x3c13('0x105')])-_0x361964[_0x3c13('0x90')](_0x2c3ea0[_0x3c13('0x105')])),_0x24e7c7;}[_0x3c13('0x78')](_0x67ba2b){const _0x3390a9=Array['from'](_0x67ba2b[_0x3c13('0x2')])[_0x3c13('0xc4')](([_0x29b32d,_0x2b7b39])=>_0x29b32d[_0x3c13('0xbb')](_0x3c13('0xf'))&&!_0x2b7b39[_0x3c13('0x6')]),_0x3870b0=Array['from'](this[_0x3c13('0x11b')]['model']['createRangeIn'](_0x67ba2b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3390a9[_0x3c13('0x88')])for(const _0x4c8172 of _0x3870b0){const [_0x56448e,_0x1e9591]=_0x3390a9[0x0],[,_0x45771f,_0x28fb2d]=_0x56448e[_0x3c13('0xb6')](':');if(_0x1e9591[_0x3c13('0x79')][_0x3c13('0x4e')](_0x4c8172[_0x3c13('0xa8')])&&_0x3390a9[_0x3c13('0xeb')](),(_0x4c8172[_0x3c13('0x73')][_0x3c13('0x4e')](_0x1e9591[_0x3c13('0x7d')])||_0x4c8172[_0x3c13('0x73')][_0x3c13('0x115')](_0x1e9591[_0x3c13('0x7d')]))&&(_0x3c13('0x3')==_0x45771f?_0x4c8172[_0x3c13('0x70')]={'userId':_0x28fb2d}:_0x3c13('0x3b')==_0x45771f&&(_0x4c8172[_0x3c13('0x110')]={'userId':_0x28fb2d})),0x0==_0x3390a9[_0x3c13('0x88')])break;}return _0x3870b0;}[_0x3c13('0x7f')](_0x3069c6){const _0x512c3e=new Map();for(let _0x4707a9=0x0;_0x4707a9<_0x3069c6[_0x3c13('0x88')];_0x4707a9++)_0x3c13('0x98')===_0x3069c6[_0x4707a9][_0x3c13('0x66')]?(_0x3069c6[_0x4707a9]['item'][_0x3c13('0x59')]=_0x4707a9,_0x3069c6[_0x4707a9]['item'][_0x3c13('0x30')]=_0x4707a9):(_0x3c13('0xbc')===_0x3069c6[_0x4707a9][_0x3c13('0x66')]?_0x3069c6[_0x4707a9][_0x3c13('0x121')][_0x3c13('0x59')]=_0x4707a9:_0x3c13('0x53')===_0x3069c6[_0x4707a9][_0x3c13('0x66')]&&(_0x3069c6[_0x4707a9]['item']['endIndex']=_0x4707a9),_0x512c3e['set'](_0x3069c6[_0x4707a9]['id'],_0x4707a9));for(const _0x10fda3 of _0x512c3e[_0x3c13('0xf7')]())_0x3c13('0xbc')===_0x3069c6[_0x10fda3][_0x3c13('0x66')]?_0x3069c6[_0x10fda3][_0x3c13('0x121')][_0x3c13('0x30')]=_0x512c3e[_0x3c13('0x4d')](_0x3069c6[_0x10fda3][_0x3c13('0x20')]):_0x3c13('0x53')===_0x3069c6[_0x10fda3][_0x3c13('0x66')]&&(_0x3069c6[_0x10fda3]['item'][_0x3c13('0x59')]=_0x512c3e[_0x3c13('0x4d')](_0x3069c6[_0x10fda3][_0x3c13('0x20')]));}['_processTape'](_0x4a8fd9){for(let _0x49357a=0x0;_0x49357a<_0x4a8fd9['length'];_0x49357a++){if(_0x3c13('0xbc')===_0x4a8fd9[_0x49357a][_0x3c13('0x66')])_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x59')]=_0x49357a;else{if(_0x3c13('0x53')===_0x4a8fd9[_0x49357a][_0x3c13('0x66')]){_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x30')]=_0x49357a;const _0x2d4b10=_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x59')];_0x4a8fd9[_0x2d4b10]['pairId']=_0x4a8fd9[_0x49357a]['id'],_0x4a8fd9[_0x49357a][_0x3c13('0x20')]=_0x4a8fd9[_0x2d4b10]['id'];}else _0x4a8fd9[_0x49357a][_0x3c13('0x121')]['startIndex']=_0x49357a,_0x4a8fd9[_0x49357a][_0x3c13('0x121')][_0x3c13('0x30')]=_0x49357a,_0x4a8fd9[_0x49357a][_0x3c13('0x20')]=null;}_0x4a8fd9[_0x49357a]['markersStart']||(_0x4a8fd9[_0x49357a]['markersStart']=[],_0x4a8fd9[_0x49357a]['markersEnd']=[]);}}[_0x3c13('0xde')](_0x4175be,_0x3f2db9){const _0x28038c=_0x4175be['filter'](_0xce6815=>!_0xce6815['isAdded']);for(let _0x576cba=0x0;_0x576cba<_0x3f2db9['length'];_0x576cba++)_0x3f2db9[_0x576cba][_0x3c13('0x70')]&&(_0x28038c[_0x576cba][_0x3c13('0x70')]=_0x3f2db9[_0x576cba][_0x3c13('0x70')]);}[_0x3c13('0x9')](_0x226584){const _0xfdb589=JSON[_0x3c13('0x9d')](_0x226584),_0x2146a3=this['editor'][_0x3c13('0xb8')]['view'][_0x3c13('0x122')],_0x197492=new _0x2c2406(_0x2146a3,_0xfdb589[_0x3c13('0x11e')](_0x25cab3=>this[_0x3c13('0x2f')](_0x25cab3)));return this[_0x3c13('0x11b')]['data'][_0x3c13('0xce')](_0x197492);}[_0x3c13('0x2f')](_0x5bfb27){const _0x1708f3=this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')];if(_0x3c13('0x52')==typeof _0x5bfb27)return new _0x3435c4(_0x1708f3,_0x5bfb27);{const _0x4f92dc=_0x5bfb27[_0x3c13('0x117')]['map'](_0x3900f3=>this[_0x3c13('0x2f')](_0x3900f3));return new(tt[_0x5bfb27[(_0x3c13('0x66'))]]||_0x32fc8b)(_0x1708f3,_0x5bfb27[_0x3c13('0xd')],_0x5bfb27[_0x3c13('0x84')],_0x4f92dc);}}['_getDiff'](_0x2290ed,_0x5d138b=null){const _0x51adf8=this['repository'][_0x3c13('0x94')](_0x2290ed),_0x4faf85=_0x5d138b?this['repository'][_0x3c13('0x94')](_0x5d138b):null,_0x310d8d=this[_0x3c13('0x10b')](_0x51adf8,_0x4faf85),_0x340a2a=_0x310d8d[_0x310d8d[_0x3c13('0x88')]-0x1],_0x2685f1=new Map(),_0x411d3f={'model':{},'attributes':{},'changes':[]},_0x27bf96=new Set(),_0x12f1c9=new Map();for(let _0xf0ed9c=_0x310d8d[_0x3c13('0x88')]-0x1;_0xf0ed9c>=0x0;_0xf0ed9c--){const _0x45c6b2=_0x310d8d[_0xf0ed9c];for(const _0x4bf650 of Object['keys'](_0x45c6b2['diffData']))if(_0x45c6b2[_0x3c13('0x4b')][_0x4bf650][_0x3c13('0x54')]){const _0x7e676f=_0x45c6b2[_0x3c13('0x4b')][_0x4bf650][_0x3c13('0x54')];_0x7e676f[_0x3c13('0xa7')]?(_0x27bf96[_0x3c13('0x2b')](_0x4bf650),_0x12f1c9[_0x3c13('0xc')](_0x4bf650)&&_0x12f1c9[_0x3c13('0x4d')](_0x4bf650)[_0x3c13('0x75')]==_0x7e676f[_0x3c13('0x75')]?_0x12f1c9['delete'](_0x4bf650):_0x12f1c9[_0x3c13('0x9c')](_0x4bf650,_0x7e676f)):_0x12f1c9['has'](_0x4bf650)?(_0x27bf96[_0x3c13('0x1f')](_0x4bf650),_0x12f1c9['delete'](_0x4bf650)):(_0x27bf96[_0x3c13('0x2b')](_0x4bf650),_0x12f1c9[_0x3c13('0x9c')](_0x4bf650,_0x7e676f));}else _0x27bf96[_0x3c13('0x2b')](_0x4bf650);}for(const _0x40687e of _0x27bf96){const _0x3035ec=_0x12f1c9[_0x3c13('0xc')](_0x40687e)&&!_0x12f1c9[_0x3c13('0x4d')](_0x40687e)[_0x3c13('0xa7')];let _0xa0e7fe=_0x3035ec?_0x310d8d[_0x3c13('0x88')]-0x1:0x0;const _0x585513=_0x3035ec?-0x1:0x1;for(;_0x310d8d[_0xa0e7fe];){const _0x1b02ec=_0x310d8d[_0xa0e7fe];if(_0x1b02ec[_0x3c13('0x4b')][_0x40687e]){const _0x1da8ef=_0x3035ec?_0x1b02ec[_0x3c13('0x4b')][_0x40687e][_0x3c13('0x63')]:_0x1b02ec[_0x3c13('0x4b')][_0x40687e][_0x3c13('0xed')];_0x411d3f[_0x3c13('0x84')][_0x40687e]=_0x1da8ef?_0x3c5713(_0x1da8ef):{};break;}_0xa0e7fe+=_0x585513;}}for(const _0x2b84e6 of _0x310d8d){_0x2b84e6[_0x3c13('0x11c')]={};for(const _0x5024f6 of _0x2b84e6[_0x3c13('0x112')])_0x2685f1[_0x3c13('0x9c')](_0x5024f6['id'],_0x5024f6);for(const _0x11fae6 of _0x27bf96){const _0x667348=_0x2b84e6[_0x3c13('0x4b')][_0x11fae6]?_0x2b84e6[_0x3c13('0x4b')][_0x11fae6][_0x3c13('0x77')]:'[]',_0x258af4=_0x2b84e6[_0x3c13('0x4b')][_0x11fae6]?_0x2b84e6['diffData'][_0x11fae6]['deletions']:'[]';_0x2b84e6[_0x3c13('0x11c')][_0x11fae6]={'insertions':this[_0x3c13('0x9')](_0x667348),'deletions':this[_0x3c13('0x9')](_0x258af4)};}}for(const _0x58b263 of _0x27bf96){let _0x8cc95=null,_0x2b6e4d=0x0;const _0x3ce9c4=new Map(Array[_0x3c13('0x10c')](_0x51adf8[_0x3c13('0x11c')][_0x58b263][_0x3c13('0x77')]['markers'])[_0x3c13('0xc4')](([_0xdd332e])=>!_0xdd332e[_0x3c13('0xbb')](_0x3c13('0xf'))));let _0x114c49=0x0;for(const _0x5dc1e8 of _0x310d8d){const _0x108ad8=this[_0x3c13('0x78')](_0x5dc1e8[_0x3c13('0x11c')][_0x58b263][_0x3c13('0x77')]);_0x5dc1e8==_0x51adf8?(_0x8cc95=_0x108ad8,_0x2b6e4d=_0x8cc95[_0x3c13('0x88')],_0x8cc95[_0x3c13('0x6a')](_0x59218f=>{_0x59218f['id']=_0x114c49++;}),this['_processTape'](_0x8cc95)):this[_0x3c13('0xde')](_0x8cc95,_0x108ad8);const _0x384be9=_0x8cc95['filter'](_0x5c2058=>!_0x5c2058[_0x3c13('0x70')])[_0x3c13('0x11e')](_0xacce24=>_0xacce24['id']);let _0x5add90=0x0;const _0x2d3a8b=this[_0x3c13('0x78')](_0x5dc1e8['model'][_0x58b263][_0x3c13('0xb7')]);_0x2d3a8b[_0x3c13('0x6a')](_0x195518=>{_0x195518[_0x3c13('0x110')]?_0x195518['id']=_0x2b6e4d++:_0x195518['id']=_0x384be9[_0x5add90++];}),this[_0x3c13('0x46')](_0x2d3a8b),this['_setDistance'](_0x8cc95,'isAdded'),this[_0x3c13('0x21')](_0x2d3a8b,_0x3c13('0x110')),_0x5dc1e8==_0x51adf8&&this['_markMarkers'](_0x8cc95,_0x3ce9c4),_0x8cc95=this[_0x3c13('0xa9')](_0x8cc95,_0x2d3a8b),this[_0x3c13('0x7f')](_0x8cc95),this[_0x3c13('0x21')](_0x8cc95,_0x3c13('0x110'));}_0x8cc95=_0x8cc95[_0x3c13('0xc4')](_0x3f8332=>!(_0x3f8332[_0x3c13('0x70')]&&_0x3f8332[_0x3c13('0x110')]));const _0xf883f0=new Map(_0x340a2a['model'][_0x58b263]['deletions'][_0x3c13('0x2')]),_0x387679=new Set(_0x3ce9c4['keys']());for(const _0x422660 of _0xf883f0[_0x3c13('0xe3')]())_0x387679[_0x3c13('0x1f')](_0x422660);this[_0x3c13('0xae')](_0x8cc95,_0x387679),this['_fixObsoleteTags'](_0x8cc95),_0x8cc95=this[_0x3c13('0x16')](_0x8cc95),_0x8cc95=this[_0x3c13('0x4')](_0x8cc95),_0x8cc95=this[_0x3c13('0x102')](_0x8cc95);const {root:_0x545f22,changes:_0x3ef82d}=this[_0x3c13('0x1d')](_0x8cc95,_0x2685f1,_0x58b263);_0x411d3f[_0x3c13('0x11c')][_0x58b263]=_0x545f22;const _0x5089e0=_0x12f1c9[_0x3c13('0x4d')](_0x58b263);if(_0x5089e0){const _0x3bccfb=_0x2685f1[_0x3c13('0x4d')](_0x5089e0['userId']),_0x772063=new _0x164e19({'author':_0x3bccfb,'type':_0x5089e0['isAttached']?'add':_0x3c13('0x123'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x58b263});_0x3ef82d[_0x3c13('0x8d')](_0x772063),_0x411d3f['attributes'][_0x58b263][_0x3c13('0xc2')]=_0x772063['id'];}_0x411d3f['changes']=_0x411d3f[_0x3c13('0x1e')][_0x3c13('0xfc')](_0x3ef82d);}return _0x411d3f;}['_markMarkers'](_0x524302,_0x572924){for(let _0xab04a8=0x0;_0xab04a8<_0x524302['length'];_0xab04a8++)for(const [_0x32296c,_0x356d57]of _0x572924)_0x356d57[_0x3c13('0x7d')][_0x3c13('0x4e')](_0x524302[_0xab04a8][_0x3c13('0x73')])&&_0x524302[_0xab04a8][_0x3c13('0x83')]['push'](_0x32296c),_0x356d57['end'][_0x3c13('0x4e')](_0x524302[_0xab04a8][_0x3c13('0xa8')])&&_0x524302[_0xab04a8]['markersEnd'][_0x3c13('0x10a')](_0x32296c);}[_0x3c13('0xa9')](_0xab8bd0,_0x48185a){let _0x2fb85d=[],_0x156df9=0x0,_0x4a9560=0x0;for(;_0x156df9<_0xab8bd0['length']||_0x4a9560<_0x48185a[_0x3c13('0x88')];){const _0x5003ee=_0xab8bd0[_0x156df9]||{},_0x27c43d=_0x48185a[_0x4a9560]||{};if(_0x5003ee['id']==_0x27c43d['id'])_0x156df9++,_0x4a9560++,_0x2fb85d[_0x3c13('0x10a')](_0x5003ee);else{if(_0x27c43d[_0x3c13('0x110')]&&_0x5003ee[_0x3c13('0x70')]){const {commonTape:_0x2b2372,iEnd:_0x436faf,jEnd:_0x8a3324}=this['_threeWayMerge'](_0xab8bd0,_0x156df9,_0x48185a,_0x4a9560);_0x2fb85d=_0x2fb85d[_0x3c13('0xfc')](_0x2b2372),_0x156df9=_0x436faf,_0x4a9560=_0x8a3324;}else _0x27c43d[_0x3c13('0x110')]?(_0x4a9560++,_0x2fb85d['push'](_0x27c43d)):(_0x156df9++,_0x2fb85d['push'](_0x5003ee));}}return _0x2fb85d;}[_0x3c13('0xae')](_0x2683cb,_0x409f31){const _0x4f8319=[];for(let _0x256ce2=0x0;_0x256ce2<_0x2683cb['length'];_0x256ce2++){for(let _0x110570=0x0;_0x110570<_0x2683cb[_0x256ce2][_0x3c13('0x83')][_0x3c13('0x88')];_0x110570++){const _0x4770e5=_0x2683cb[_0x256ce2]['markersStart'][_0x110570];if(!_0x409f31[_0x3c13('0xc')](_0x4770e5))continue;const {group:_0x50de9c,type:_0x577c47,authorId:_0x175dfe}=_0x54daf3(_0x4770e5);_0x3c13('0x109')!=_0x50de9c||_0x3c13('0x3')!=_0x577c47&&_0x3c13('0x3b')!=_0x577c47||(_0x4f8319['unshift']({'type':_0x577c47,'name':_0x4770e5,'userId':_0x175dfe}),_0x2683cb[_0x256ce2]['markersStart'][_0x3c13('0x61')](_0x110570,0x1),_0x110570--);}_0x31f2f6(_0x2683cb[_0x256ce2]);for(let _0x6fa875=0x0;_0x6fa875<_0x2683cb[_0x256ce2][_0x3c13('0x9a')][_0x3c13('0x88')];_0x6fa875++){const _0x3c2058=_0x2683cb[_0x256ce2][_0x3c13('0x9a')][_0x6fa875];if(!_0x409f31[_0x3c13('0xc')](_0x3c2058))continue;const {group:_0x32a2e0,type:_0x1fe9ef}=_0x54daf3(_0x3c2058);if('revision-suggestion'!=_0x32a2e0||_0x3c13('0x3')!=_0x1fe9ef&&_0x3c13('0x3b')!=_0x1fe9ef)continue;_0x2683cb[_0x256ce2][_0x3c13('0x9a')][_0x3c13('0x61')](_0x6fa875,0x1),_0x6fa875--;const _0x566506=_0x4f8319[_0x3c13('0x4c')](_0x364e36=>_0x364e36[_0x3c13('0xd')]==_0x3c2058);_0x566506>-0x1&&_0x4f8319['splice'](_0x566506,0x1);}}function _0x54daf3(_0xef81fb){const _0x1332ab=_0xef81fb['split'](':');return{'group':_0x1332ab[0x0],'type':_0x1332ab[0x1],'subType':_0x1332ab['length']>=0x5?_0x1332ab[0x2]:null,'id':_0x1332ab['length']<0x5?_0x1332ab[0x2]:_0x1332ab[0x3],'authorId':_0x1332ab[_0x3c13('0x88')]<0x5?_0x1332ab[0x3]:_0x1332ab[0x4],'markerCount':0x6==_0x1332ab[_0x3c13('0x88')]?_0x1332ab[0x5]:null};}function _0x31f2f6(_0x34a75c){for(let _0x201f52=0x0;_0x201f52<_0x4f8319[_0x3c13('0x88')];_0x201f52++){if(_0x34a75c[_0x3c13('0x70')]&&'insertion'==_0x4f8319[_0x201f52][_0x3c13('0x66')])return _0x34a75c[_0x3c13('0x8a')]=_0x4f8319[_0x201f52],void delete _0x34a75c[_0x3c13('0x70')];if(!_0x34a75c[_0x3c13('0x70')]&&!_0x34a75c['isRemoved']&&'deletion'==_0x4f8319[_0x201f52][_0x3c13('0x66')])return void(_0x34a75c[_0x3c13('0x8c')]=_0x4f8319[_0x201f52]);}}}['_setDistance'](_0x37ef8c,_0x2a3542){let _0x106750=0x0,_0x732499=!0x1;const _0x223da2=new Map();for(const _0x212ca7 of _0x37ef8c)_0x212ca7[_0x2a3542]?_0x732499&&(_0x106750++,_0x732499=!0x1):(_0x106750++,_0x732499=!0x0),_0x223da2['set'](_0x212ca7['id'],_0x106750);for(let _0x2a534e=0x0;_0x2a534e<_0x37ef8c[_0x3c13('0x88')];_0x2a534e++){if(_0x3c13('0x110')==_0x2a3542&&_0x37ef8c[_0x2a534e][_0x3c13('0x70')]||'isAdded'==_0x2a3542&&_0x37ef8c[_0x2a534e][_0x3c13('0x110')])continue;if('text'==_0x37ef8c[_0x2a534e][_0x3c13('0x66')]){_0x37ef8c[_0x2a534e][_0x3c13('0x89')]=0x0;continue;}const _0x4fa4cd=_0x223da2[_0x3c13('0x4d')](_0x37ef8c[_0x2a534e]['pairId']),_0x3f2709=_0x223da2['get'](_0x37ef8c[_0x2a534e]['id']);_0x37ef8c[_0x2a534e][_0x3c13('0x89')]=_0x4fa4cd-_0x3f2709;}}[_0x3c13('0x10b')](_0x81a6f6,_0x4cc760,_0x29e189=!0x1){const _0xb4793=[];let _0x54a2fd=this[_0x3c13('0xb')][_0x3c13('0x64')](_0x81a6f6),_0x29fd0c=this[_0x3c13('0xb')][_0x3c13('0x64')](_0x4cc760);for(-0x1==_0x29fd0c&&(_0x29fd0c=this[_0x3c13('0xb')]['_revisions']['length'],_0x29e189=!0x1);_0x54a2fd<_0x29fd0c;)_0xb4793[_0x3c13('0x10a')](this['repository']['getRevision'](_0x54a2fd)),_0x54a2fd++;return _0x29e189&&_0xb4793[_0x3c13('0x10a')](this[_0x3c13('0xb')][_0x3c13('0x94')](_0x54a2fd)),_0xb4793;}[_0x3c13('0x5d')](_0x5d1323,_0x5625ec,_0x23f992,_0xec1c26){const _0xe234d3=this[_0x3c13('0x11b')]['model'][_0x3c13('0xcd')];let _0x55e9d4=_0x5625ec;for(;_0x5d1323[_0x55e9d4]&&_0x5d1323[_0x55e9d4][_0x3c13('0x70')];)_0x55e9d4++;let _0x1215bd=_0xec1c26;for(;_0x23f992[_0x1215bd]&&_0x23f992[_0x1215bd][_0x3c13('0x110')];)_0x1215bd++;_0x2a7497(_0x5d1323,_0x5625ec,_0x55e9d4),_0x2a7497(_0x23f992,_0xec1c26,_0x1215bd);const _0x3a0751=_0x23f992[_0x3c13('0x99')](_0xec1c26,_0x1215bd)[_0x3c13('0xfc')](_0x5d1323[_0x3c13('0x99')](_0x5625ec,_0x55e9d4));return _0x3a0751['sort']((_0x900d5,_0x5d73c5)=>_0x900d5[_0x3c13('0xd0')]!=_0x5d73c5[_0x3c13('0xd0')]?_0x900d5[_0x3c13('0xd0')]-_0x5d73c5['side']:_0x900d5[_0x3c13('0xea')]!=_0x5d73c5[_0x3c13('0xea')]?_0x900d5[_0x3c13('0xea')]-_0x5d73c5[_0x3c13('0xea')]:_0x900d5[_0x3c13('0x89')]!=_0x5d73c5[_0x3c13('0x89')]?_0x5d73c5[_0x3c13('0x89')]-_0x900d5['distance']:!!_0x900d5[_0x3c13('0x70')]!=!!_0x5d73c5['isAdded']?-0x1==_0x900d5['side']||0x0==_0x900d5['side']?_0x900d5['isAdded']?-0x1:0x1:_0x900d5['isAdded']?0x1:-0x1:_0x900d5[_0x3c13('0xad')]-_0x5d73c5[_0x3c13('0xad')]),{'commonTape':_0x3a0751,'iEnd':_0x55e9d4,'jEnd':_0x1215bd};function _0x2a7497(_0x3a031a,_0x49c0bb,_0x169ca9){let _0x103ba4=-0x1,_0x55504d=Number[_0x3c13('0x86')],_0x79d3ae=!0x0;for(let _0xe6d132=_0x49c0bb;_0xe6d132<_0x169ca9;_0xe6d132++)if(_0xe234d3[_0x3c13('0xf4')](_0x3a031a[_0xe6d132]['item'])||(_0x79d3ae=!0x1),_0x3a031a[_0xe6d132]['item']['startIndex']<_0x49c0bb&&(_0x103ba4=_0xe6d132),_0x3a031a[_0xe6d132]['item'][_0x3c13('0x30')]>=_0x169ca9){_0x55504d=_0xe6d132;break;}_0x79d3ae&&(_0x103ba4=_0x169ca9-0x1);for(let _0x50a084=_0x49c0bb;_0x50a084<_0x169ca9;_0x50a084++)_0x3a031a[_0x50a084][_0x3c13('0xd0')]=_0x50a084<=_0x103ba4?-0x1:_0x50a084<_0x55504d?0x0:0x1,_0x3a031a[_0x50a084]['index']=_0x50a084;let _0x33458=0x0;for(let _0x561850=_0x49c0bb;_0x561850<=_0x103ba4;_0x561850++)0x0==_0x3a031a[_0x561850]['distance']?_0x3a031a[_0x561850][_0x3c13('0xea')]=_0x33458:(_0x33458++,_0x3a031a[_0x561850]['level']=_0x33458,_0x33458++);for(let _0x4f916e=_0x49c0bb;_0x4f916e<_0x169ca9;_0x4f916e++)0x0==_0x3a031a[_0x4f916e][_0x3c13('0xd0')]&&(_0x3a031a[_0x4f916e]['level']=_0x33458);_0x33458=0x0;for(let _0x14f0e2=_0x169ca9-0x1;_0x14f0e2>=_0x55504d;_0x14f0e2--)0x0==_0x3a031a[_0x14f0e2]['distance']?_0x3a031a[_0x14f0e2]['level']=_0x33458:(_0x33458--,_0x3a031a[_0x14f0e2]['level']=_0x33458,_0x33458--);}}[_0x3c13('0xf5')](_0xf3d06e){const _0x1a60ed=new Map(),_0x54c779=this[_0x3c13('0x11b')]['model'][_0x3c13('0xcd')];for(let _0x2e7ce5=0x1;_0x2e7ce5<_0xf3d06e[_0x3c13('0x88')];_0x2e7ce5++){let _0x12f644,_0x5277ed,_0x2652a8;const _0x32c975=_0xf3d06e[_0x2e7ce5],_0x5bb404=_0xf3d06e[_0x2e7ce5-0x1];if('text'==_0x32c975[_0x3c13('0x66')])continue;if(_0x32c975[_0x3c13('0x66')]!=_0x5bb404[_0x3c13('0x66')])continue;if(!_0x54c779[_0x3c13('0x91')](_0x5bb404[_0x3c13('0x121')])||_0x54c779['isLimit'](_0x5bb404['item']))continue;if(!_0x54c779[_0x3c13('0x91')](_0x32c975[_0x3c13('0x121')])||_0x54c779[_0x3c13('0x10e')](_0x32c975['item']))continue;if((_0xf3d06e[_0x2e7ce5][_0x3c13('0x70')]||_0xf3d06e[_0x2e7ce5]['isAddSuggestion'])&&_0xf3d06e[_0x2e7ce5-0x1][_0x3c13('0x110')])_0x12f644=_0xf3d06e[_0x2e7ce5],_0x5277ed=_0xf3d06e[_0x2e7ce5-0x1],_0x2652a8=_0x2e7ce5-0x1;else{if(!_0xf3d06e[_0x2e7ce5][_0x3c13('0x110')]||!_0xf3d06e[_0x2e7ce5-0x1][_0x3c13('0x70')]&&!_0xf3d06e[_0x2e7ce5-0x1][_0x3c13('0x8a')])continue;_0x12f644=_0xf3d06e[_0x2e7ce5-0x1],_0x5277ed=_0xf3d06e[_0x2e7ce5],_0x2652a8=_0x2e7ce5;}const _0x15494b=_0x12f644[_0x3c13('0xea')]==_0x5277ed[_0x3c13('0xea')],_0x101c5b=Math[_0x3c13('0xd1')](_0x12f644['level'])<Math[_0x3c13('0xd1')](_0x5277ed[_0x3c13('0xea')])&&0x0==_0x5277ed[_0x3c13('0x89')];(_0x15494b||_0x101c5b)&&(_0x1a60ed[_0x3c13('0x9c')](_0x5277ed['id'],_0x12f644['id']),_0xf3d06e['splice'](_0x2652a8,0x1),_0x2e7ce5--,_0x12f644[_0x3c13('0x70')]=!0x1);}for(let _0x196ae7=0x0;_0x196ae7<_0xf3d06e[_0x3c13('0x88')];_0x196ae7++)_0x1a60ed[_0x3c13('0xc')](_0xf3d06e[_0x196ae7]['pairId'])&&(_0xf3d06e[_0x196ae7]['pairId']=_0x1a60ed['get'](_0xf3d06e[_0x196ae7][_0x3c13('0x20')]));}[_0x3c13('0x16')](_0xa13d98){const _0x3fdc26=new Set(_0xa13d98[_0x3c13('0x11e')](_0x4151fd=>_0x4151fd['id']));for(let _0x591a19=0x0;_0x591a19<_0xa13d98[_0x3c13('0x88')];_0x591a19++)_0x3fdc26[_0x3c13('0xc')](_0xa13d98[_0x591a19][_0x3c13('0x20')])||0x0==_0xa13d98[_0x591a19][_0x3c13('0x89')]||(_0xa13d98[_0x591a19]['isIncorrect']=!0x0);return _0xa13d98[_0x3c13('0xc4')](_0x36b8d6=>!_0x36b8d6['isIncorrect']);}[_0x3c13('0x4')](_0x1f3c8a){const _0x49e38a=new Set();for(let _0x3cc39c=0x0;_0x3cc39c<_0x1f3c8a[_0x3c13('0x88')];_0x3cc39c++){if(_0x49e38a[_0x3c13('0xc')](_0x1f3c8a[_0x3cc39c]['id'])&&_0x1f3c8a[_0x3cc39c]['isRemoved']&&(_0x1f3c8a[_0x3cc39c][_0x3c13('0xec')]=!0x0),_0x1f3c8a[_0x3cc39c]['isIncorrect'])continue;if(0x0==_0x1f3c8a[_0x3cc39c][_0x3c13('0x89')])continue;if(_0x3c13('0xbc')!=_0x1f3c8a[_0x3cc39c][_0x3c13('0x66')])continue;if(null==_0x1f3c8a[_0x3cc39c][_0x3c13('0x20')])continue;let _0x2aaa5b=_0x3cc39c+0x1,_0x248ff3=0x0;for(;_0x1f3c8a[_0x2aaa5b]['id']!=_0x1f3c8a[_0x3cc39c][_0x3c13('0x20')];)_0x3c13('0xbc')==_0x1f3c8a[_0x2aaa5b][_0x3c13('0x66')]?_0x248ff3++:_0x3c13('0x53')==_0x1f3c8a[_0x2aaa5b]['type']&&_0x248ff3--,_0x2aaa5b++;if(0x0!=_0x248ff3){if(_0x1f3c8a[_0x3cc39c]['isRemoved'])_0x1f3c8a[_0x3cc39c][_0x3c13('0xec')]=!0x0;else for(;_0x2aaa5b!=_0x3cc39c;)_0x1f3c8a[_0x2aaa5b][_0x3c13('0x110')]&&0x0!=_0x1f3c8a[_0x2aaa5b][_0x3c13('0x89')]&&(_0x1f3c8a[_0x2aaa5b][_0x3c13('0xec')]=!0x0,_0x49e38a[_0x3c13('0x2b')](_0x1f3c8a[_0x2aaa5b][_0x3c13('0x20')])),_0x2aaa5b--;}}return _0x1f3c8a[_0x3c13('0xc4')](_0x2d7546=>!_0x2d7546['isIncorrect']);}[_0x3c13('0x102')](_0x524f55){const _0x30b72e=this['editor'][_0x3c13('0x11c')][_0x3c13('0xcd')];for(let _0x5ba0d1=0x0;_0x5ba0d1<_0x524f55[_0x3c13('0x88')];_0x5ba0d1++){if(!(_0x524f55[_0x5ba0d1][_0x3c13('0x70')]||_0x524f55[_0x5ba0d1][_0x3c13('0x8a')]||_0x524f55[_0x5ba0d1][_0x3c13('0x110')]||_0x524f55[_0x5ba0d1][_0x3c13('0x8c')]))continue;if(0x0==_0x524f55[_0x5ba0d1]['distance'])continue;const _0x1c50d0=_0x524f55[_0x5ba0d1]['item'];_0x30b72e['isBlock'](_0x1c50d0)||_0x30b72e['isLimit'](_0x1c50d0)||(_0x524f55[_0x5ba0d1]['isAdded']&&delete _0x524f55[_0x5ba0d1]['isAdded'],_0x524f55[_0x5ba0d1][_0x3c13('0x8a')]&&delete _0x524f55[_0x5ba0d1]['isAddSuggestion'],_0x524f55[_0x5ba0d1][_0x3c13('0x8c')]&&delete _0x524f55[_0x5ba0d1]['isRemoveSuggestion'],_0x524f55[_0x5ba0d1][_0x3c13('0x110')]&&(_0x524f55[_0x5ba0d1][_0x3c13('0xec')]=!0x0));}return _0x524f55[_0x3c13('0xc4')](_0x408795=>!_0x408795[_0x3c13('0xec')]);}[_0x3c13('0x1d')](_0x214641,_0x390b9a,_0x79f2bb){const _0x2bea07=new _0x357518(),_0xdb1296=[],_0x39d725=new Map(),_0x36237b=this['editor']['model'],_0xcfef43=_0x36237b[_0x3c13('0xcd')],_0x31b189=[_0x2bea07],_0x28d500={},_0x502170={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5e8978=null;const _0x1ad802=[0x0];for(let _0x1fc11a=0x0;_0x1fc11a<_0x214641[_0x3c13('0x88')];_0x1fc11a++){let _0x12db9e,_0x1491ab;if(_0x3c13('0xbc')===_0x214641[_0x1fc11a][_0x3c13('0x66')]){_0x12db9e=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802);const _0x438c87=new _0x5020ed(_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0xd')],_0x214641[_0x1fc11a][_0x3c13('0x121')]['getAttributes']());_0x31b189[0x0][_0x3c13('0x39')](_0x438c87),_0x1ad802[_0x3c13('0x10a')](0x0),_0x31b189[_0x3c13('0x8d')](_0x438c87),_0x1491ab=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802),_0x5e8978=null;}else{if(_0x3c13('0x53')===_0x214641[_0x1fc11a][_0x3c13('0x66')])_0x31b189[_0x3c13('0xeb')](),_0x12db9e=_0x36237b['createPositionFromPath'](_0x2bea07,_0x1ad802),_0x1ad802[_0x3c13('0x18')](),_0x1ad802[_0x1ad802['length']-0x1]++,_0x1491ab=_0x36237b['createPositionFromPath'](_0x2bea07,_0x1ad802),_0x5e8978=null;else{if(_0x12db9e=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802),_0x5e8978&&_0x68f84d(_0x5e8978,_0x214641[_0x1fc11a]['item']))_0x5e8978['_data']+=_0x214641[_0x1fc11a]['item']['data'];else{const _0x5b276f=new _0x57709f(_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0xdb')],_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0xff')]());_0x31b189[0x0][_0x3c13('0x39')](_0x5b276f),_0x5e8978=_0x5b276f;}_0x1ad802[_0x1ad802[_0x3c13('0x88')]-0x1]+=_0x214641[_0x1fc11a][_0x3c13('0x121')][_0x3c13('0x24')],_0x1491ab=_0x36237b[_0x3c13('0x41')](_0x2bea07,_0x1ad802);}}for(const _0x294232 of _0x214641[_0x1fc11a][_0x3c13('0x83')])_0x39d725['set'](_0x294232,{'start':_0x12db9e,'end':null});_0x499905(_0x3c13('0x8c'),_0x1fc11a,_0x12db9e,_0x1491ab),_0x499905(_0x3c13('0x8a'),_0x1fc11a,_0x12db9e,_0x1491ab),_0x499905(_0x3c13('0x110'),_0x1fc11a,_0x12db9e,_0x1491ab),_0x499905(_0x3c13('0x70'),_0x1fc11a,_0x12db9e,_0x1491ab);for(const _0x24586f of _0x214641[_0x1fc11a][_0x3c13('0x9a')]){_0x39d725['get'](_0x24586f)[_0x3c13('0x79')]=_0x1491ab;}}for(const [_0x5d290f,_0x47f17d]of _0x39d725){const _0x5ce116=this[_0x3c13('0x11b')][_0x3c13('0x11c')][_0x3c13('0xcc')](_0x47f17d[_0x3c13('0x7d')],_0x47f17d[_0x3c13('0x79')]);_0x2bea07[_0x3c13('0x2')][_0x3c13('0x9c')](_0x5d290f,_0x5ce116);}return _0xdb1296[_0x3c13('0x72')]((_0x1ffab0,_0x1a776d)=>{const _0x3d7fa4=_0x2bea07[_0x3c13('0x2')]['get'](_0x3c13('0xf')+_0x1ffab0['id']),_0x37dd44=_0x2bea07[_0x3c13('0x2')][_0x3c13('0x4d')](_0x3c13('0xf')+_0x1a776d['id']);return _0x3d7fa4[_0x3c13('0x7d')][_0x3c13('0xcf')](_0x37dd44[_0x3c13('0x7d')])?-0x1:_0x3d7fa4[_0x3c13('0x7d')][_0x3c13('0x115')](_0x37dd44[_0x3c13('0x7d')])?0x1:_0x3d7fa4[_0x3c13('0x79')][_0x3c13('0xcf')](_0x37dd44['end'])?-0x1:_0x3d7fa4['end'][_0x3c13('0x115')](_0x37dd44[_0x3c13('0x79')])?0x1:'add'===_0x1ffab0[_0x3c13('0x66')]?-0x1:0x1;}),{'root':_0x2bea07,'changes':_0xdb1296};function _0x499905(_0x171568,_0x4da63b,_0x1ca7a0,_0x491aae){const _0x15d460=!!_0x214641[_0x4da63b][_0x171568],_0x59ced9=_0x15d460?_0x214641[_0x4da63b][_0x171568][_0x3c13('0x75')]:null,_0x27ac00=_0x4da63b===_0x214641[_0x3c13('0x88')]-0x1,_0x392551=_0x502170[_0x171568][0x0],_0x4d7a32=_0xcfef43[_0x3c13('0x11')](_0x214641[_0x4da63b][_0x3c13('0x121')]);!_0x28d500[_0x171568]&&_0x15d460?_0x28d500[_0x171568]={'start':_0x1ca7a0,'tapeItem':_0x214641[_0x4da63b],'userId':_0x59ced9,'type':_0x171568}:_0x28d500[_0x171568]&&!_0x15d460?(_0x28d500[_0x171568]['end']=_0x1ca7a0,_0x23a990(_0x28d500[_0x171568]),_0x28d500[_0x171568]=null):_0x28d500[_0x171568]&&_0x15d460&&_0x28d500[_0x171568][_0x3c13('0x75')]!==_0x59ced9&&(_0x28d500[_0x171568][_0x3c13('0x79')]=_0x1ca7a0,_0x392551&&_0x392551[_0x3c13('0x75')]===_0x28d500[_0x171568]['userId']||_0x23a990(_0x28d500[_0x171568]),_0x28d500[_0x171568]={'start':_0x1ca7a0,'tapeItem':_0x214641[_0x4da63b],'userId':_0x59ced9,'type':_0x171568}),_0x28d500[_0x171568]&&_0x4d7a32&&('elementStart'!==_0x214641[_0x4da63b][_0x3c13('0x66')]||_0x392551&&_0x392551[_0x3c13('0x75')]===_0x59ced9||_0x502170[_0x171568][_0x3c13('0x8d')]({'userId':_0x59ced9,'object':_0x214641[_0x4da63b][_0x3c13('0x121')],'change':_0x28d500[_0x171568]}),_0x3c13('0x53')===_0x214641[_0x4da63b][_0x3c13('0x66')]&&_0x392551&&_0x392551[_0x3c13('0x9f')]===_0x214641[_0x4da63b][_0x3c13('0x121')]&&(_0x502170[_0x171568][_0x3c13('0xeb')](),_0x28d500[_0x171568]=_0x392551[_0x3c13('0x125')])),_0x28d500[_0x171568]&&_0x27ac00&&(_0x28d500[_0x171568][_0x3c13('0x79')]=_0x491aae,_0x23a990(_0x28d500[_0x171568]),_0x28d500[_0x171568]=null);}function _0x23a990({start:_0xa29ba2,end:_0x1003e3,tapeItem:_0xd89442,userId:_0x4e455f,type:_0x403f39}){const _0x1aaee0=_0xd89442[_0x3c13('0x121')],_0x36a870=_0x36237b['schema'][_0x3c13('0x91')](_0x1aaee0)&&!_0x36237b[_0x3c13('0xcd')][_0x3c13('0x10e')](_0x1aaee0),_0x5e08eb=_0xa29ba2[_0x3c13('0xac')]==_0x1003e3[_0x3c13('0xe4')]&&_0x1003e3[_0x3c13('0x80')];if(_0x36a870&&_0x5e08eb)return;const _0x381378=_0x36237b[_0x3c13('0xcc')](_0xa29ba2,_0x1003e3),_0x39c276=_0x390b9a['get'](_0x4e455f),_0x92de53=new _0x164e19({'author':_0x39c276,'type':_0x3c13('0x70')==_0x403f39||_0x3c13('0x8a')==_0x403f39?'add':_0x3c13('0x123'),'data':{'isSuggestion':_0x3c13('0x8a')==_0x403f39||_0x3c13('0x8c')==_0x403f39},'createdAt':new Date(),'rootName':_0x79f2bb});_0xdb1296[_0x3c13('0x10a')](_0x92de53),_0x2bea07[_0x3c13('0x2')][_0x3c13('0x9c')](_0x3c13('0xf')+_0x92de53['id'],_0x381378);}function _0x68f84d(_0x4c082f,_0x41c5b9){const _0x3b306c=_0x4c082f[_0x3c13('0xff')](),_0x2d0c64=_0x41c5b9[_0x3c13('0xff')]();for(const _0x343001 of _0x3b306c){if(_0x343001[0x1]!==_0x41c5b9[_0x3c13('0xd4')](_0x343001[0x0]))return!0x1;_0x2d0c64[_0x3c13('0x3a')]();}return _0x2d0c64[_0x3c13('0x3a')]()[_0x3c13('0x2e')];}}[_0x3c13('0x69')](){this[_0x3c13('0x11b')]['conversion']['for'](_0x3c13('0xba'))['dataToMarker']({'view':'revision'}),this[_0x3c13('0x11b')][_0x3c13('0x6d')]['for']('editingDowncast')[_0x3c13('0x6e')]({'model':'revision','view':_0x3adeb8=>{const _0x2cda8b=_0x3adeb8['markerName']['split'](':')[0x1],_0x5a190e=this[_0x3c13('0xc1')](_0x2cda8b);if(!_0x5a190e)return null;const _0x10b133=_0x3c13('0x2b')==_0x5a190e[_0x3c13('0x66')]?_0x3c13('0x3'):_0x3c13('0x3b'),_0x5acd29=['ck-suggestion-marker',_0x3c13('0x6f')+_0x10b133];return _0x5a190e[_0x3c13('0xdb')][_0x3c13('0xe6')]&&_0x5acd29['push'](_0x3c13('0x6f')+_0x10b133+_0x3c13('0xda')),this[_0x3c13('0x43')]==_0x5a190e&&_0x5acd29[_0x3c13('0x10a')](_0x3c13('0x5e')),{'classes':_0x5acd29,'attributes':{'data-change-id':_0x2cda8b}};}}),this[_0x3c13('0x11b')][_0x3c13('0x6d')][_0x3c13('0x0')](_0x3c13('0xba'))[_0x3c13('0x2b')](_0x3a33e1=>{_0x3a33e1['on'](_0x3c13('0x2d'),(_0x482e24,_0x5ccf94,_0x53130e)=>{const _0x4306bd=_0x5ccf94[_0x3c13('0x12')][_0x3c13('0x28')](0x0);if(!_0x4306bd||!_0x4306bd['is']('element','code'))return;if(!_0x53130e[_0x3c13('0x106')][_0x3c13('0xd7')](_0x4306bd,{'attributes':[_0x3c13('0x7c'),_0x3c13('0xdc')]}))return;const _0x35d4af=_0x5ccf94['modelRange'][_0x3c13('0x7d')]['nodeAfter'];_0x53130e[_0x3c13('0xa4')][_0x3c13('0xb1')](_0x3c13('0x7c'),_0x4306bd[_0x3c13('0xd4')]('vid_start'),_0x35d4af),_0x53130e[_0x3c13('0xa4')]['setAttribute']('vid_end',_0x4306bd[_0x3c13('0xd4')](_0x3c13('0xdc')),_0x35d4af);},{'priority':_0x3c13('0x37')});}),this['editor'][_0x3c13('0x6d')][_0x3c13('0x0')](_0x3c13('0xba'))[_0x3c13('0x2b')](_0x27df71=>{_0x27df71['on'](_0x3c13('0xb0'),(_0x4d871f,_0xf42f27,_0xc962fa)=>{if(!_0xc962fa[_0x3c13('0x106')][_0x3c13('0xd7')](_0xf42f27[_0x3c13('0x12')],{'attributes':[_0x3c13('0x7c'),_0x3c13('0xdc')]}))return;if(_0xf42f27[_0x3c13('0x76')]['isCollapsed'])return;const _0x1583f0=_0xf42f27[_0x3c13('0x76')][_0x3c13('0x7d')][_0x3c13('0xac')];_0x1583f0[_0x3c13('0xa3')](_0x3c13('0x7c'))||_0x1583f0['hasAttribute'](_0x3c13('0x50'))||(_0xc962fa[_0x3c13('0xa4')][_0x3c13('0xb1')](_0x3c13('0x7c'),_0xf42f27[_0x3c13('0x12')][_0x3c13('0xd4')](_0x3c13('0x7c')),_0x1583f0),_0xc962fa['writer'][_0x3c13('0xb1')](_0x3c13('0xdc'),_0xf42f27['viewItem'][_0x3c13('0xd4')]('vid_end'),_0x1583f0));},{'priority':'low'});}),this['editor'][_0x3c13('0x6d')]['for'](_0x3c13('0xba'))['elementToAttribute']({'view':{'name':_0x3c13('0x26'),'attributes':{'vid':!0x0}},'model':{'key':_0x3c13('0x50'),'value':_0x1850c4=>_0x1850c4[_0x3c13('0xd4')](_0x3c13('0x50'))}}),this[_0x3c13('0x11b')]['model'][_0x3c13('0xcd')]['on']('checkAttribute',(_0x4279bf,[,_0x2819cb])=>{[_0x3c13('0x7c'),_0x3c13('0xdc'),'vid']['includes'](_0x2819cb)&&(_0x4279bf[_0x3c13('0x58')]=!0x0,_0x4279bf['stop']());},{'priority':_0x3c13('0x119')}),this['editor']['conversion'][_0x3c13('0x0')]('dataDowncast')[_0x3c13('0x2b')](_0x27d7b9=>{_0x27d7b9['on']('attribute:vid',(_0x30b35f,_0x2b85ec,_0x27c2b9)=>{if('\x20'!=_0x2b85ec[_0x3c13('0x121')][_0x3c13('0xdb')]||_0x2b85ec[_0x3c13('0x121')][_0x3c13('0xe4')][_0x3c13('0x3d')]>0x1)return;if(!_0x27c2b9[_0x3c13('0x106')][_0x3c13('0xd7')](_0x2b85ec['item'],_0x30b35f[_0x3c13('0xd')]))return;const _0x46259d=_0x27c2b9[_0x3c13('0xa4')],_0x194ff7=_0x27c2b9[_0x3c13('0x6c')][_0x3c13('0x101')](_0x2b85ec[_0x3c13('0x31')]);_0x46259d[_0x3c13('0x36')](_0x194ff7,_0x46259d[_0x3c13('0x3c')](_0x3c13('0x26')));});}),this[_0x3c13('0x11b')]['conversion'][_0x3c13('0x0')]('dataDowncast')[_0x3c13('0x113')]({'model':_0x3c13('0xb9')}),this['editor']['editing'][_0x3c13('0x48')]['on'](_0x3c13('0x3e'),function(_0x81c7f7){const _0x5f05e5=_0x81c7f7[_0x3c13('0x8f')]['get'](_0x3c13('0xd3'));return(_0x28ba29,_0x26396e,_0x29efc9)=>{const _0x2abb92=_0x26396e[_0x3c13('0x7a')][_0x3c13('0xb6')](':')[0x1],_0x563404=_0x5f05e5[_0x3c13('0xc1')](_0x2abb92);if(!_0x563404)return null;const _0x2b9fa4='add'==_0x563404['type']?'split':_0x3c13('0x7');if(!_0x29efc9[_0x3c13('0x106')][_0x3c13('0x38')](_0x26396e[_0x3c13('0xb2')],_0x28ba29[_0x3c13('0xd')]))return;const _0x285456=_0x26396e[_0x3c13('0xb2')][_0x3c13('0xd9')](),_0x34067b=_0x26396e[_0x3c13('0xb2')][_0x3c13('0x7d')],_0x2412c5=_0x81c7f7[_0x3c13('0x11c')][_0x3c13('0xcd')];let _0x5ee645=null,_0xee736a=null,_0x68472a=!0x1,_0x31a5cb=!0x1;for(const _0x47baaa of _0x285456){const _0x2e9317=_0x47baaa['item'];_0x68472a=_0x68472a||_0x2412c5['isContent'](_0x2e9317);const _0x182c37=_0x29efc9[_0x3c13('0x6c')][_0x3c13('0xa0')](_0x2e9317);if(_0x182c37&&_0x182c37[_0x3c13('0xd6')]('addHighlight'))return;_0x3c13('0x53')==_0x47baaa[_0x3c13('0x66')]&&(_0x2412c5[_0x3c13('0x91')](_0x2e9317)&&!_0x2412c5[_0x3c13('0x10e')](_0x2e9317)&&(_0x2e9317[_0x3c13('0x14')]||_0x34067b[_0x3c13('0x1b')]?_0x5ee645&&_0x5ee645[_0x3c13('0xe4')]==_0x2e9317||(_0x5ee645=_0x2e9317,_0x5e58cd(_0x47baaa['previousPosition']),_0x31a5cb=!0x0):_0xee736a=_0xee736a||_0x47baaa[_0x3c13('0x73')]));}function _0x5e58cd(_0x1a27ac){const _0x50b15a=_0x29efc9[_0x3c13('0xa4')][_0x3c13('0x74')]('span',{'class':_0x3c13('0x6f')+_0x2b9fa4}),_0x47d512=_0x29efc9['mapper'][_0x3c13('0x7e')](_0x1a27ac);_0x563404['data'][_0x3c13('0xe6')]&&_0x29efc9[_0x3c13('0xa4')][_0x3c13('0x11f')](_0x3c13('0x6f')+_0x2b9fa4+'-new',_0x50b15a),_0x5f05e5['activeChange']==_0x563404&&_0x29efc9[_0x3c13('0xa4')][_0x3c13('0x11f')]('ck-suggestion-marker--active',_0x50b15a),_0x29efc9['writer'][_0x3c13('0xc6')](_0x47d512,_0x50b15a),_0x29efc9['mapper'][_0x3c13('0x81')](_0x50b15a,_0x26396e[_0x3c13('0x7a')]);}_0x68472a||_0x31a5cb||!_0xee736a||_0x5e58cd(_0xee736a);};}(this[_0x3c13('0x11b')]),{'priority':_0x3c13('0x42')}),this['editor'][_0x3c13('0xb8')]['downcastDispatcher']['on'](_0x3c13('0x4a'),(_0x35ddb2,_0x4791fb,_0x350e8f)=>{const _0x28f4a1=_0x350e8f[_0x3c13('0x6c')][_0x3c13('0x11d')](_0x4791fb[_0x3c13('0x7a')]);if(_0x28f4a1)for(const _0xb1ab8a of _0x28f4a1)(_0xb1ab8a[_0x3c13('0xee')]('ck-suggestion-marker-split')||_0xb1ab8a[_0x3c13('0xee')](_0x3c13('0x57')))&&(_0x350e8f[_0x3c13('0x6c')][_0x3c13('0x17')](_0xb1ab8a,_0x4791fb[_0x3c13('0x7a')]),_0x350e8f[_0x3c13('0xa4')][_0x3c13('0x123')](_0xb1ab8a));},{'priority':_0x3c13('0x42')}),this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0x48')]['on']('addMarker:revision',(_0x3864a3,_0x58d043,_0x5bd1f5)=>{const _0x3470cf=_0x58d043[_0x3c13('0x7a')][_0x3c13('0xb6')](':')[0x1],_0x56e8b6=this[_0x3c13('0xc1')](_0x3470cf);if(!_0x56e8b6)return null;const _0x17a961=_0x3c13('0x2b')==_0x56e8b6['type']?'split':_0x3c13('0x7');if(_0x5bd1f5['consumable'][_0x3c13('0x38')](_0x58d043[_0x3c13('0xb2')],_0x3864a3[_0x3c13('0xd')]))for(const _0x5c6026 of _0x58d043[_0x3c13('0xb2')]['getItems']()){if(!_0x5c6026['is']('element',_0x3c13('0xbe')))continue;const _0x3eab0c=_0x5bd1f5[_0x3c13('0xa4')][_0x3c13('0x74')](_0x3c13('0x26'),{'class':_0x3c13('0x6f')+_0x17a961}),_0x443c17=_0x5bd1f5[_0x3c13('0x6c')][_0x3c13('0x7e')](this[_0x3c13('0x11b')][_0x3c13('0x11c')]['createPositionBefore'](_0x5c6026));_0x56e8b6[_0x3c13('0xdb')][_0x3c13('0xe6')]&&_0x5bd1f5[_0x3c13('0xa4')][_0x3c13('0x11f')](_0x3c13('0x6f')+_0x17a961+_0x3c13('0xda'),_0x3eab0c),this['activeChange']==_0x56e8b6&&_0x5bd1f5[_0x3c13('0xa4')][_0x3c13('0x11f')](_0x3c13('0x5e'),_0x3eab0c),_0x5bd1f5[_0x3c13('0xa4')]['insert'](_0x443c17,_0x3eab0c),_0x5bd1f5['mapper'][_0x3c13('0x81')](_0x3eab0c,_0x58d043[_0x3c13('0x7a')]);}},{'priority':'high'}),this['editor'][_0x3c13('0x11c')][_0x3c13('0x122')]['on'](_0x3c13('0x125'),()=>{this[_0x3c13('0x11b')]['editing'][_0x3c13('0xbf')][_0x3c13('0x125')](_0x43168d=>{for(const _0x19bd8d of this[_0x3c13('0x11b')][_0x3c13('0x11c')]['document'][_0x3c13('0x67')]()){const _0x2535c5=this['editor'][_0x3c13('0x11c')][_0x3c13('0x122')][_0x3c13('0x13')](_0x19bd8d),_0x1d06f5=this[_0x3c13('0x11b')]['editing'][_0x3c13('0xbf')][_0x3c13('0x122')]['getRoot'](_0x19bd8d);if(_0x1d06f5){const _0x58c009=_0x2535c5['getAttribute']('revisionHistoryAttachChange');if(_0x43168d[_0x3c13('0xe0')](_0x3c13('0x49'),_0x1d06f5),_0x43168d[_0x3c13('0x1')](_0x3c13('0x19'),_0x1d06f5),_0x43168d[_0x3c13('0x1')](_0x3c13('0xa6'),_0x1d06f5),_0x43168d[_0x3c13('0x1')](_0x3c13('0x23'),_0x1d06f5),_0x58c009){const _0x35faec=this[_0x3c13('0xc1')](_0x58c009);if(!_0x35faec)return null;_0x43168d['setAttribute'](_0x3c13('0x49'),_0x58c009,_0x1d06f5),_0x43168d[_0x3c13('0x11f')]('ck-revision-history-root-'+_0x35faec['type'],_0x1d06f5),this['activeChange']==_0x35faec&&_0x43168d[_0x3c13('0x11f')](_0x3c13('0x23'),_0x1d06f5);}}}});}),this[_0x3c13('0x11b')][_0x3c13('0x6d')]['for'](_0x3c13('0xba'))[_0x3c13('0x100')]({'view':_0x3c13('0x51'),'model':_0x25d48b=>_0x3c13('0x9b')+_0x25d48b,'converterPriority':_0x3c13('0x119')}),this[_0x3c13('0x11b')][_0x3c13('0x6d')][_0x3c13('0x0')](_0x3c13('0xba'))[_0x3c13('0x100')]({'view':_0x3c13('0x114'),'model':_0x10e036=>_0x3c13('0xfd')+_0x10e036,'converterPriority':_0x3c13('0x119')}),this[_0x3c13('0x11b')][_0x3c13('0x6d')][_0x3c13('0x0')]('dataDowncast')[_0x3c13('0x113')]({'model':'revision-suggestion','view':_0x24ecbb=>({'name':_0x3c13('0x47')+_0x24ecbb,'group':_0x3c13('0x109')}),'converterPriority':_0x3c13('0x119')}),this[_0x3c13('0x11b')]['conversion'][_0x3c13('0x0')](_0x3c13('0x40'))[_0x3c13('0x6e')]({'model':_0x3c13('0x109'),'view':_0x40a3e8=>{const _0x2597b5=_0x40a3e8[_0x3c13('0x7a')][_0x3c13('0xb6')](':')[0x1];return _0x3c13('0x3')!=_0x2597b5&&_0x3c13('0x3b')!=_0x2597b5?null:{'classes':[_0x3c13('0x5'),_0x3c13('0x85')+_0x2597b5]};}}),this['editor'][_0x3c13('0xb8')][_0x3c13('0x48')]['on'](_0x3c13('0x33'),et(this['editor'],'merge'),{'priority':_0x3c13('0x42')}),this[_0x3c13('0x11b')][_0x3c13('0xb8')][_0x3c13('0x48')]['on'](_0x3c13('0x2a'),et(this[_0x3c13('0x11b')],_0x3c13('0xb6')),{'priority':_0x3c13('0x42')}),this['editor'][_0x3c13('0xb8')][_0x3c13('0x48')]['on']('removeMarker:revision-suggestion',(_0x51ebc1,_0x4f3f45,_0x1ee657)=>{const _0x527555=_0x1ee657[_0x3c13('0x6c')][_0x3c13('0x11d')](_0x4f3f45[_0x3c13('0x7a')]);if(_0x527555)for(const _0x1f0c3f of _0x527555)_0x1f0c3f['is'](_0x3c13('0xc5'))&&(_0x1ee657[_0x3c13('0x6c')]['unbindElementFromMarkerName'](_0x1f0c3f,_0x4f3f45[_0x3c13('0x7a')]),_0x1ee657['writer'][_0x3c13('0x123')](_0x1f0c3f));},{'priority':_0x3c13('0x42')});}[_0x3c13('0xc1')](_0x304c98){return this[_0x3c13('0x87')][_0x3c13('0x4d')](_0x304c98);}[_0x3c13('0x108')](_0x25de2d){return this[_0x3c13('0xf0')]&&this['_changeView']['destroy'](),this['_changeView']=new _0x5e0073(this[_0x3c13('0x11b')][_0x3c13('0xc8')],_0x25de2d),this[_0x3c13('0xf0')];}['_initInteractions'](){this['editor']['model']['document'][_0x3c13('0x60')]['observeMarkers']('revision'),this['on'](_0x3c13('0xd2'),(_0x249fb4,_0x390c82,_0x5d5805,_0x3e3e35)=>{_0x3e3e35&&this[_0x3c13('0x10')]['remove'](_0x3e3e35),_0x5d5805&&(this[_0x3c13('0x10')]['add']({'view':_0x5d5805,'stackId':_0x3c13('0xe8'),'position':{'target':()=>{const _0x3024a6=this[_0x3c13('0x11b')]['editing'],_0x44262b=this[_0x3c13('0xc1')](_0x5d5805['changeId']);let _0x43a1f6;if(_0x44262b['data']['isOnRoot']){const _0x41d7c8=_0x3024a6[_0x3c13('0xbf')]['getDomRoot'](_0x44262b['rootName']);_0x43a1f6=Array['from'](_0x41d7c8[_0x3c13('0x82')]());}else{const _0x4aa37e=this[_0x3c13('0x11b')][_0x3c13('0x11c')][_0x3c13('0x2')]['get'](_0x3c13('0xf')+_0x5d5805['changeId']);_0x43a1f6=Array[_0x3c13('0x10c')](_0x3024a6[_0x3c13('0x6c')][_0x3c13('0x11d')](_0x4aa37e[_0x3c13('0xd')]))[_0x3c13('0x11e')](_0x1ac96b=>_0x3024a6[_0x3c13('0xbf')][_0x3c13('0xa')][_0x3c13('0xa5')](_0x1ac96b))[_0x3c13('0x11e')](_0x3ed27c=>Array[_0x3c13('0x10c')](_0x3ed27c[_0x3c13('0x82')]()))[_0x3c13('0x27')]();}if(!this[_0x3c13('0x111')])return _0x43a1f6[0x0];return _0x43a1f6[_0x3c13('0x8b')](_0x7ba2f3=>_0x7ba2f3[_0x3c13('0x1a')]-0x3<=this[_0x3c13('0x111')]['y']&&_0x7ba2f3['bottom']+0x3>=this[_0x3c13('0x111')]['y']&&_0x7ba2f3[_0x3c13('0xfe')]-0x3<=this['_activeViewTarget']['x']&&_0x7ba2f3[_0x3c13('0xf3')]+0x3>=this['_activeViewTarget']['x'])||_0x43a1f6[0x0];}}}),this['_balloon'][_0x3c13('0xd5')](_0x3c13('0xe8')));}),this['on'](_0x3c13('0x124'),(_0x42223a,_0x25a403,_0x1f9ebf,_0x8f3801)=>{this[_0x3c13('0x116')]=_0x1f9ebf?this[_0x3c13('0x108')](_0x1f9ebf):null,this[_0x3c13('0x11b')]['model'][_0x3c13('0x125')](()=>{const _0x4133aa=this['editor'][_0x3c13('0xb8')];_0x8f3801&&(_0x8f3801[_0x3c13('0xdb')]['isOnRoot']?_0x4133aa[_0x3c13('0xbf')][_0x3c13('0x125')](_0xcadcfd=>{_0xcadcfd[_0x3c13('0x1')](_0x3c13('0x23'),_0x4133aa[_0x3c13('0xbf')][_0x3c13('0x122')][_0x3c13('0x13')](_0x8f3801[_0x3c13('0x105')]));}):_0x4133aa[_0x3c13('0x2c')](_0x3c13('0xf')+_0x8f3801['id'])),_0x1f9ebf&&(_0x1f9ebf[_0x3c13('0xdb')][_0x3c13('0xe')]?_0x4133aa[_0x3c13('0xbf')]['change'](_0x512073=>{_0x512073[_0x3c13('0x11f')]('ck-revision-history-root--active',_0x4133aa[_0x3c13('0xbf')][_0x3c13('0x122')][_0x3c13('0x13')](_0x1f9ebf[_0x3c13('0x105')]));}):_0x4133aa[_0x3c13('0x2c')](_0x3c13('0xf')+_0x1f9ebf['id']));});}),this[_0x3c13('0x104')](this['editor'][_0x3c13('0xb8')][_0x3c13('0xbf')][_0x3c13('0x122')],'mouseover',(_0xe15403,_0x1af41b)=>{if(this['activeChange'])return;const _0x520b09=this[_0x3c13('0xa2')](_0x1af41b[_0x3c13('0xab')]),_0x19826c=this[_0x3c13('0x87')][_0x3c13('0x4d')](_0x520b09);_0x19826c?(this['_activeViewTarget']={'x':_0x1af41b[_0x3c13('0x4f')]['x'],'y':_0x1af41b['domEvent']['y']},this[_0x3c13('0x116')]=this['_getViewForChange'](_0x19826c)):(this[_0x3c13('0x111')]=null,this[_0x3c13('0x116')]=null);}),this['listenTo'](this['editor'][_0x3c13('0xb8')]['view'][_0x3c13('0x122')],_0x3c13('0xfb'),(_0x1487d0,_0x137bcf)=>{const _0x5e45f4=this[_0x3c13('0xa2')](_0x137bcf[_0x3c13('0xab')]),_0x1fc0cd=this['_changeIdToChange'][_0x3c13('0x4d')](_0x5e45f4);_0x1fc0cd?(this[_0x3c13('0x111')]={'x':_0x137bcf[_0x3c13('0x4f')]['x'],'y':_0x137bcf[_0x3c13('0x4f')]['y']},_0x1fc0cd===this[_0x3c13('0x43')]?this[_0x3c13('0x10')][_0x3c13('0xa1')]():this[_0x3c13('0x43')]=_0x1fc0cd):(this['_activeViewTarget']=null,this[_0x3c13('0x43')]=null);});}[_0x3c13('0xa2')](_0x21068a){do{const _0x2364c6=_0x21068a[_0x3c13('0xd4')]('data-change-id');if(_0x2364c6)return _0x2364c6;_0x21068a=_0x21068a[_0x3c13('0xe4')];}while(_0x21068a);return null;}[_0x3c13('0x6b')](){this[_0x3c13('0x11b')][_0x3c13('0x11c')]['change'](_0x3d9f30=>{for(const _0x5b7112 of this[_0x3c13('0x11b')][_0x3c13('0x11c')]['markers'])_0x3d9f30[_0x3c13('0xf9')](_0x5b7112);});}}function et(_0x1eddad,_0x8712f4){return(_0x3d12dc,_0x3989a5,_0x5edef3)=>{if(!_0x5edef3[_0x3c13('0x106')][_0x3c13('0x38')](_0x3989a5[_0x3c13('0xb2')],_0x3d12dc[_0x3c13('0xd')]))return;const _0x2a5ecb=_0x3989a5[_0x3c13('0xb2')][_0x3c13('0xd9')](),_0x369b49=_0x3989a5[_0x3c13('0xb2')][_0x3c13('0x7d')],_0x1ffe55=_0x1eddad[_0x3c13('0x11c')][_0x3c13('0xcd')];let _0x32282b=null,_0x5002b9=null,_0x2573cd=!0x1,_0x361da0=!0x1;for(const _0x2284dd of _0x2a5ecb){const _0x3d5e74=_0x2284dd[_0x3c13('0x121')];_0x2573cd=_0x2573cd||_0x1ffe55['isContent'](_0x3d5e74);const _0x4db8b3=_0x5edef3['mapper']['toViewElement'](_0x3d5e74);if(_0x4db8b3&&_0x4db8b3[_0x3c13('0xd6')](_0x3c13('0x5f')))return;_0x3c13('0x53')==_0x2284dd[_0x3c13('0x66')]&&(_0x1ffe55[_0x3c13('0x91')](_0x3d5e74)&&!_0x1ffe55[_0x3c13('0x10e')](_0x3d5e74)&&(_0x3d5e74[_0x3c13('0x14')]||_0x369b49[_0x3c13('0x1b')]?_0x32282b&&_0x32282b[_0x3c13('0xe4')]==_0x3d5e74||(_0x32282b=_0x3d5e74,_0x82fb58(_0x2284dd['previousPosition']),_0x361da0=!0x0):_0x5002b9=_0x5002b9||_0x2284dd[_0x3c13('0x73')]));}function _0x82fb58(_0x1dfa68){const _0x3e86f6=_0x5edef3['mapper']['toViewPosition'](_0x1dfa68),_0x521b6a=_0x5edef3[_0x3c13('0xa4')]['createUIElement'](_0x3c13('0x26'),{'class':_0x3c13('0x85')+_0x8712f4});_0x5edef3[_0x3c13('0xa4')][_0x3c13('0xc6')](_0x3e86f6,_0x521b6a),_0x5edef3[_0x3c13('0x6c')][_0x3c13('0x81')](_0x521b6a,_0x3989a5[_0x3c13('0x7a')]);}_0x2573cd||_0x361da0||!_0x5002b9||_0x82fb58(_0x5002b9);};}export class RestoreRevisionCommand extends _0x17e90c{constructor(_0x4a9ee8){super(_0x4a9ee8);const _0x221c44=_0x4a9ee8['plugins'][_0x3c13('0x4d')](d);this[_0x3c13('0xf6')]=!0x1,this[_0x3c13('0x104')](_0x221c44,_0x3c13('0x8'),()=>this[_0x3c13('0x5c')]()),this[_0x3c13('0x104')](_0x221c44,_0x3c13('0x44'),()=>this['refresh']());}['execute'](){const _0x18d566=this[_0x3c13('0x11b')],_0x5386c8=_0x18d566['plugins'][_0x3c13('0x4d')](d),_0x13be75=_0x5386c8[_0x3c13('0xf1')]?_0x5386c8[_0x3c13('0xc9')][_0x3c13('0x126')]:null;_0x18d566['config'][_0x3c13('0x4d')](_0x3c13('0x55'))[_0x3c13('0x15')](_0x13be75);}['refresh'](){const {isReady:_0x304179,isEnabled:_0x3d4c80}=this[_0x3c13('0x11b')][_0x3c13('0x8f')][_0x3c13('0x4d')](d);this[_0x3c13('0xdd')]=_0x304179&&_0x3d4c80;}}export class ShowChangeCommand extends _0x17e90c{constructor(_0x4b4be4,{direction:_0xd5f69b}){super(_0x4b4be4);const _0x57877b=_0x4b4be4[_0x3c13('0x8f')][_0x3c13('0x4d')](d);this[_0x3c13('0xf6')]=!0x1,this[_0x3c13('0x8e')]=_0x3c13('0xb3')===_0xd5f69b?0x1:-0x1,this[_0x3c13('0x104')](_0x57877b,_0x3c13('0x8'),()=>this[_0x3c13('0x5c')]()),this[_0x3c13('0x104')](_0x57877b,_0x3c13('0x44'),()=>this['refresh']()),this[_0x3c13('0x104')](_0x57877b,'change:activeChange',()=>this[_0x3c13('0x5c')]());}[_0x3c13('0x29')](){const _0x3f7c6d=this[_0x3c13('0x11b')],_0x4f8cc8=_0x3f7c6d[_0x3c13('0x8f')]['get'](d),{isNavigationMode:_0x4efb16,currentChangeNumber:_0x3bb0a6}=_0x4f8cc8;let _0x4dbc87;if(_0x4f8cc8[_0x3c13('0x43')]=_0x4efb16?_0x4f8cc8['diff']['changes']['get'](_0x3bb0a6+this[_0x3c13('0x8e')]):_0x4f8cc8['diff'][_0x3c13('0x1e')][_0x3c13('0xfa')],_0x4f8cc8[_0x3c13('0x43')]['data'][_0x3c13('0xe')])_0x4dbc87=_0x3f7c6d['editing']['view']['getDomRoot'](_0x4f8cc8['activeChange'][_0x3c13('0x105')]);else{const _0x1aae45=_0x3f7c6d[_0x3c13('0x11c')][_0x3c13('0x2')][_0x3c13('0x4d')](_0x3c13('0xf')+_0x4f8cc8[_0x3c13('0x43')]['id']);_0x4dbc87=_0x382f5c(_0x3f7c6d[_0x3c13('0xb8')],_0x1aae45);}_0x28c5c9({'target':_0x4dbc87,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x350318,currentChangeNumber:_0x4c8014,numberOfChanges:_0x4f8fc2,isReady:_0x464224,isEnabled:_0x509158}=this[_0x3c13('0x11b')]['plugins'][_0x3c13('0x4d')](d);this[_0x3c13('0xdd')]=!!(_0x509158&&_0x464224&&_0x4f8fc2)&&(!_0x350318||(0x1===this['_step']?_0x4c8014<_0x4f8fc2-0x1:_0x4c8014>0x0));}}
|
|
23
|
+
const _0x59b3=['POSITIVE_INFINITY','vid_start','ck-revision-history-root--active','_sortAndFilterDiffChanges','next','from','_getChangeFromId','conversion','activeView','get','changes','endIndex','bindElementToMarker','map','right','oldRevisionId','isEnabled','isBefore','RevisionViewer','repository','nextPosition','find','findIndex','document','stop','removeMarker:revision','showStack','getRootNames','maxOffset','ck-suggestion-marker-split','_setDistance','includes','markerToHighlight','attributesBefore','createUIElement','elementStart','catch','_changeIdToChange','getWalker','_markMismatchedRemovedTags','isReady','shift','keys','hasClass','_fixObsoleteTags','_changeView','add','getIndex','insertions','first','concat','_balloon','config','listenTo','parent','unbindElementFromMarkerName','ck-suggestion-preview-marker','isContent','isAdded','startsWith','view','insertion','high','viewItem','range','distance','editing','level','getDomRoot','_joinTapes','uiElement','createPositionFromPath','_removeRevisionMarkers','_threeWayMerge','useFillerType','isLimit','error','remove','children','vid','done','string','slice','default','startIndex','push','RevisionsRepository','getAttributes','markers','_getViewForChange','editingDowncast','change','collaboration.channelId','consume','forward','markersStart','previousPosition','elementEnd','createPositionBefore','change:isEnabled','model','merge','commands','bind','changeId','attributes','dataDowncast','ck-suggestion-marker--active','isCollapsed','elementToAttribute','test','revisionHistory','toModel','_refreshStartEndIndex','ck-suggestion-marker','_markMarkers','change:activeView','rootName','pairId','downcastDispatcher','toViewElement','unshift','_cleanUp','data','_update','mouseover','top','mousedown','getRevisionData','selection','addHighlight','marked','markerNameToElements','getAttribute','isRemoved','revision','affectsData','suggestion:','revision-suggestion:','isRemoveSuggestion','plugins','restoreRevisionCallback','revision-comment:','isBlock','toViewPosition','createAttributeElement','resolve','isSuggestion','name','text','_activeViewTarget','clear','insert','parse','getRevision','removeAttribute','adapter','isNavigationMode','deletions','ck-suggestion-preview-marker-','_removeMissingPairs','_getRevisionsRange','getCustomProperty','writer','revision-end','isOnRoot','index','setAttribute','loadRevisionData','_makeTape','showPreviousChange','init','nodeAfter','low','toViewRange','domConverter','ck-revision-history-root-','_markSuggestions','abs','currentChangeNumber','userId','dataToMarker','start','element','addClass','observeMarkers','activeChange','item','attributesAfter','_data','left','ck-revision-history-root-remove','revision:','values','reconvertMarker','revision-start','_makeModelFromViewString','_revisions','showNextChange','-new','comment','_markInsertions','processor','schema','roots','editor','deletion','updatePosition','_setChanges','then','_appendChild','addRevisionData','addMarker:revision','createRevision','hasAttribute','_step','sort','getRoot','data-change-id','WidgetToolbarRepository','change:numberOfChanges','domEvent','markerName','end','ck-editor__editable__overlay','newRevisionId','isAttached','forceDisabled','createRangeIn','length','markerRange','modelRange','ck-suggestion-marker-merge','removeMarker','mapper','_getViewObj','createRange','return','flat','attribute:vid','markerToData','isEqual','change:isReady','split','_processTape','diff','upcast','span','removeClass','isAfter','revision-viewer','for','addRevision','element:pre','enqueueChange','restoreRevision','requires','filter','splice','isAddSuggestion','all','revision-suggestion','target','revisionHistoryAttachChange','isAtEnd','ck-suggestion-marker-','diffData','removeMarker:revision-suggestion','vid_end','detachRoot','_setConversion','_initInteractions','code','pluginName','set','nextSibling','data-revision-','_findChangeIdFromDomTarget','enableReadOnlyMode','pop','side','refresh','has','execute','getRevisionRootsAttributes','consumable','delete','locale','revisionHistoryLabel','attachChange','_removeUnsupportedChanges','isInline','forEach','isIncorrect','getClientRects','type','numberOfChanges','highest','markersEnd','change:activeChange'];(function(_0x7830fe,_0x59b3be){const _0x316cf7=function(_0x41ec68){while(--_0x41ec68){_0x7830fe['push'](_0x7830fe['shift']());}};_0x316cf7(++_0x59b3be);}(_0x59b3,0x83));const _0x316c=function(_0x7830fe,_0x59b3be){_0x7830fe=_0x7830fe-0x0;let _0x316cf7=_0x59b3[_0x7830fe];return _0x316cf7;};import{Plugin as _0x532074,Command as _0x3ee5c9}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1d92ac}from'ckeditor5/src/utils';import{ContextualBalloon as _0x104146}from'ckeditor5/src/ui';import{DocumentFragment as _0x3641d9,Element as _0x2d5233,Text as _0x449c8c,ViewDocumentFragment as _0x1ed9cb,ViewText as _0x1729b1,ViewElement as _0x59a2fe,ViewContainerElement as _0x41a823,ViewAttributeElement as _0x4ba664,ViewEmptyElement as _0x2baf22,ViewRawElement as _0x6edad1,ViewUIElement as _0x40ba17}from'ckeditor5/src/engine';import{Users as _0x280c16,getMarkerDomElement as _0x1ddec9}from'ckeditor5-collaboration/src/collaboration-core';import _0x24da1b from'./ui/revisionviewer/changedetailsview';import _0x5c0c1e from'./revisionsrepository';import _0x1d6b4c from'./changeitem';import{default as _0x2757b3}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3da7ba}from'lodash-es';const tt={'c':_0x41a823,'a':_0x4ba664,'e':_0x2baf22,'r':_0x6edad1,'u':_0x40ba17};export default class d extends _0x532074{static get[_0x316c('0x8e')](){return _0x316c('0xbb');}static get[_0x316c('0x7d')](){return[_0x280c16,_0x104146,_0x5c0c1e];}constructor(_0x175d40){super(_0x175d40),this[_0x316c('0xbc')]=this['editor'][_0x316c('0x9')][_0x316c('0xb2')](_0x316c('0xff')),this['set'](_0x316c('0x37'),null),this[_0x316c('0x8f')]('activeView',null),this['_activeViewTarget']=null,this[_0x316c('0x8f')]('diff',null),this[_0x316c('0x8f')]('isReady',!0x1),this[_0x316c('0x8f')](_0x316c('0xb9'),!0x0),this['on'](_0x316c('0x10c'),(_0x2d0856,_0x10e02c,_0x23da6e)=>{this['activeChange']=null,this[_0x316c('0xb1')]=null,this['editor'][_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0x104')](_0x372484=>{for(const _0x28c9d9 of this[_0x316c('0x4a')][_0x316c('0xeb')]['view']['document'][_0x316c('0x49')])_0x23da6e?_0x372484[_0x316c('0x75')](_0x316c('0x5d'),_0x28c9d9):_0x372484[_0x316c('0x35')](_0x316c('0x5d'),_0x28c9d9);});}),this[_0x316c('0x110')](_0x316c('0x1a'))['to'](this,'activeChange',_0x3697c5=>null!==_0x3697c5),this['bind'](_0x316c('0x30'))['to'](this,_0x316c('0xd1'),this,'diff',this,'activeChange',(_0x1716e2,_0x2ef5e5,_0x4bd586)=>_0x1716e2&&_0x4bd586?_0x2ef5e5[_0x316c('0xb3')]['getIndex'](_0x4bd586):0x0),this[_0x316c('0x110')](_0x316c('0xa5'))['to'](this,_0x316c('0xd1'),this,_0x316c('0x72'),(_0x544950,_0x4cf8e6)=>_0x544950?_0x4cf8e6[_0x316c('0xb3')][_0x316c('0x62')]:0x0),this['_changeView']=null,this[_0x316c('0xce')]=new Map(),this[_0x316c('0x19')]=null,this[_0x316c('0xdc')]=this[_0x316c('0x4a')][_0x316c('0x9')]['get'](_0x104146);}[_0x316c('0x28')](){const _0x4c3623=this['editor'],_0x438faf=new ShowChangeCommand(_0x4c3623,{'direction':'backward'}),_0xca8933=new ShowChangeCommand(_0x4c3623,{'direction':_0x316c('0x107')});(_0x4c3623[_0x316c('0x10f')]['add'](_0x316c('0x27'),_0x438faf),_0x4c3623[_0x316c('0x10f')][_0x316c('0xd7')](_0x316c('0x43'),_0xca8933),_0x4c3623[_0x316c('0x10f')][_0x316c('0xd7')](_0x316c('0x7c'),new RestoreRevisionCommand(_0x4c3623)),this['on'](_0x316c('0x59'),()=>{_0x438faf[_0x316c('0x96')](),_0xca8933[_0x316c('0x96')]();}),this[_0x316c('0x8b')](),this['_initInteractions'](),_0x4c3623[_0x316c('0x93')]('revision-viewer'),_0x4c3623[_0x316c('0x9')][_0x316c('0x97')](_0x316c('0x58')))&&_0x4c3623[_0x316c('0x9')][_0x316c('0xb2')]('WidgetToolbarRepository')[_0x316c('0x60')](_0x316c('0x77'));}async[_0x316c('0x129')](_0x3b9205){await this[_0x316c('0x25')](_0x3b9205);const _0x444648={};for(const _0x57ff97 in _0x3b9205[_0x316c('0x87')]){if(_0x3b9205['diffData'][_0x57ff97][_0x316c('0x9e')]&&!_0x3b9205[_0x316c('0x87')][_0x57ff97][_0x316c('0x9e')]['isAttached'])continue;const _0x670165=this[_0x316c('0xf1')](JSON[_0x316c('0x16')](_0x3b9205[_0x316c('0x87')][_0x57ff97]['insertions'])),_0x3135dd=this['editor']['editing'][_0x316c('0xe5')]['document'],_0x1c3d98=new _0x1ed9cb(_0x3135dd,_0x670165[_0x316c('0xb6')](_0x4a1de5=>this[_0x316c('0x68')](_0x4a1de5)));this['editor']['data'][_0x316c('0x47')][_0x316c('0xf3')](_0x316c('0x0')),_0x444648[_0x57ff97]=this[_0x316c('0x4a')][_0x316c('0x124')]['processor']['toData'](_0x1c3d98),this[_0x316c('0x4a')][_0x316c('0x124')][_0x316c('0x47')][_0x316c('0xf3')](_0x316c('0xfc'));}return _0x444648;}async[_0x316c('0x99')](_0x58af22){await this[_0x316c('0x25')](_0x58af22);const _0x411dfc={};for(const _0xb2f7a0 in _0x58af22['diffData'])_0x58af22[_0x316c('0x87')][_0xb2f7a0][_0x316c('0x9e')]&&!_0x58af22[_0x316c('0x87')][_0xb2f7a0][_0x316c('0x9e')][_0x316c('0x5f')]||(_0x411dfc[_0xb2f7a0]=_0x58af22['diffData'][_0xb2f7a0][_0x316c('0x39')]||{});return _0x411dfc;}['_removeRevisionMarkers'](_0x18d4f4){return(_0x18d4f4=_0x18d4f4[_0x316c('0x7e')](_0x4de393=>!_0x4de393[_0x316c('0x11')]||_0x316c('0x40')!==_0x4de393['name']&&_0x316c('0x21')!==_0x4de393[_0x316c('0x11')]))[_0x316c('0xa1')](_0x2a08f8=>{_0x316c('0xfa')!=typeof _0x2a08f8&&(_0x2a08f8['children']=this[_0x316c('0xf1')](_0x2a08f8[_0x316c('0xf7')]),_0x2a08f8[_0x316c('0x112')]=_0x2a08f8['attributes'][_0x316c('0x7e')](_0x2fcd5f=>!_0x2fcd5f[0x0][_0x316c('0xe4')](_0x316c('0x91'))));}),_0x18d4f4;}async['compare'](_0x2a283d,_0x227067,_0x5ce354=!0x1){if(!this[_0x316c('0xb9')])return;const _0x3e3299=this[_0x316c('0x72')],_0x14ee6c=this[_0x316c('0xbc')],_0x1f7831=_0x316c('0xfa')==typeof _0x2a283d?_0x14ee6c[_0x316c('0x17')](_0x2a283d):_0x2a283d,_0x2e9af0='string'==typeof _0x227067?_0x14ee6c[_0x316c('0x17')](_0x227067):_0x227067,_0x5deeb1=_0x1f7831['id'],_0x4ed17e=_0x2e9af0?_0x2e9af0['id']:null;if(!_0x5ce354&&this[_0x316c('0x72')]&&this[_0x316c('0x72')][_0x316c('0x5e')]===_0x5deeb1&&this[_0x316c('0x72')][_0x316c('0xb8')]===_0x4ed17e)return Promise[_0x316c('0xf')]();this[_0x316c('0xd1')]=!0x1,this[_0x316c('0xb1')]=null,this['activeChange']=null,this[_0x316c('0x72')]=new _0x2757b3(_0x5deeb1,_0x4ed17e);const _0xd6e0a9=this[_0x316c('0x1e')](_0x1f7831,_0x2e9af0,!0x0)['map'](_0x47deca=>this[_0x316c('0x25')](_0x47deca));return _0xd6e0a9[_0x316c('0xfe')](new Promise(_0x5b2a9e=>{setTimeout(_0x5b2a9e,0x14);})),Promise[_0x316c('0x81')](_0xd6e0a9)[_0x316c('0x4e')](()=>{if(!this['isEnabled'])return;this[_0x316c('0x123')]();const _0x2624ec=this['_getDiff'](_0x5deeb1,_0x4ed17e);for(const _0x103b67 of _0x2624ec[_0x316c('0xb3')])this['_changeIdToChange'][_0x316c('0x8f')](_0x103b67['id'],_0x103b67);this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x7b')]({'isUndoable':!0x1},_0x4e370c=>{for(const _0x2b2464 of this[_0x316c('0x4a')]['model']['document'][_0x316c('0xc4')]())_0x4e370c[_0x316c('0x8a')](_0x2b2464);for(const _0x1e9f4c of Object['keys'](_0x2624ec['model'])){const _0x1a0c85=_0x4e370c['addRoot'](_0x1e9f4c);for(const _0x4306f1 of Object[_0x316c('0xd3')](_0x2624ec[_0x316c('0x112')][_0x1e9f4c]))_0x4e370c[_0x316c('0x24')](_0x4306f1,_0x2624ec[_0x316c('0x112')][_0x1e9f4c][_0x4306f1],_0x1a0c85);_0x4e370c[_0x316c('0x15')](_0x2624ec[_0x316c('0x10d')][_0x1e9f4c],_0x1a0c85,0x0);}}),this[_0x316c('0x72')][_0x316c('0x4d')](this[_0x316c('0xac')](_0x2624ec['changes'])),this['isReady']=!0x0;})[_0x316c('0xcd')](_0x1131a5=>{console[_0x316c('0xf5')](_0x1131a5),this[_0x316c('0x123')](),_0x3e3299&&(this['diff']=_0x3e3299),this[_0x316c('0xd1')]=!0x0;});}[_0x316c('0x50')](_0x47ccb7,_0x1fc391){const _0x5ed8a2=this[_0x316c('0xbc')][_0x316c('0x52')](_0x47ccb7);return _0x5ed8a2['on'](_0x316c('0x125'),(_0x4bee56,_0x4554c8,_0x3cbbe2)=>_0x1fc391(_0x4554c8,_0x3cbbe2,_0x5ed8a2)),this[_0x316c('0xbc')][_0x316c('0x79')](_0x5ed8a2),_0x5ed8a2;}['loadRevisionData'](_0x5a51df){if(!_0x5a51df||_0x5a51df[_0x316c('0x87')])return Promise[_0x316c('0xf')]();{const _0x38cc27=this[_0x316c('0x4a')][_0x316c('0xdd')][_0x316c('0xb2')](_0x316c('0x105'));return this[_0x316c('0x19')][_0x316c('0x17')]({'channelId':_0x38cc27,'revisionId':_0x5a51df['id']})[_0x316c('0x4e')](_0x2ff6db=>{_0x5a51df['_update']({'diffData':_0x2ff6db[_0x316c('0x87')]},!0x0);});}}[_0x316c('0x123')](){this[_0x316c('0x37')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x316c('0xd6')]['destroy'](),this[_0x316c('0xd6')]=null,this['_changeIdToChange'][_0x316c('0x14')](),this[_0x316c('0x4a')]['model'][_0x316c('0x7b')]({'isUndoable':!0x1},_0x2a25a0=>{for(const _0x4eb33e of this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0xc4')]())_0x2a25a0[_0x316c('0x8a')](_0x4eb33e);});}['_sortAndFilterDiffChanges'](_0x1a5d50){const _0xb43e32=[],_0x429db8=new Map();for(const _0x468d9d of this['editor'][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0xc4')]()){const _0x46af70=this[_0x316c('0x4a')][_0x316c('0xeb')]['view'][_0x316c('0xed')](_0x468d9d);if(!_0x46af70)continue;const _0x2c75d7=_0x46af70[_0x316c('0xa3')]()[_0x316c('0x38')](0x0);_0x2c75d7&&(_0xb43e32[_0x316c('0xfe')](_0x468d9d),_0x429db8[_0x316c('0x8f')](_0x468d9d,_0x2c75d7));}return _0xb43e32['sort']((_0x390ffd,_0x3930b7)=>{const _0x440d73=_0x429db8[_0x316c('0xb2')](_0x390ffd),_0x1d9cc6=_0x429db8[_0x316c('0xb2')](_0x3930b7);return _0x440d73['y']-_0x1d9cc6['y']||_0x440d73['x']-_0x1d9cc6['x'];}),(_0x1a5d50=_0x1a5d50[_0x316c('0x7e')](_0x2d3906=>_0xb43e32[_0x316c('0xc8')](_0x2d3906[_0x316c('0x11e')])))['sort']((_0x5c358c,_0xe0d3e4)=>_0xb43e32['indexOf'](_0x5c358c['rootName'])-_0xb43e32['indexOf'](_0xe0d3e4[_0x316c('0x11e')])),_0x1a5d50;}[_0x316c('0x26')](_0x1d3565){const _0x2de81a=Array['from'](_0x1d3565[_0x316c('0x101')])[_0x316c('0x7e')](([_0x47c901,_0xee5d7c])=>_0x47c901[_0x316c('0xe4')]('revision:')&&!_0xee5d7c['isCollapsed']),_0x247380=Array[_0x316c('0xae')](this[_0x316c('0x4a')]['model'][_0x316c('0x61')](_0x1d3565)[_0x316c('0xcf')]({'singleCharacters':!0x0}));if(0x0!=_0x2de81a[_0x316c('0x62')])for(const _0x31f1ac of _0x247380){const [_0x5883c8,_0x2a2df3]=_0x2de81a[0x0],[,_0x24fb77,_0x4349ce]=_0x5883c8[_0x316c('0x70')](':');if(_0x2a2df3[_0x316c('0x5c')][_0x316c('0x6e')](_0x31f1ac[_0x316c('0xbd')])&&_0x2de81a[_0x316c('0xd2')](),(_0x31f1ac[_0x316c('0x109')][_0x316c('0x6e')](_0x2a2df3[_0x316c('0x33')])||_0x31f1ac[_0x316c('0x109')][_0x316c('0x76')](_0x2a2df3[_0x316c('0x33')]))&&(_0x316c('0xe6')==_0x24fb77?_0x31f1ac['isAdded']={'userId':_0x4349ce}:_0x316c('0x4b')==_0x24fb77&&(_0x31f1ac[_0x316c('0x3')]={'userId':_0x4349ce})),0x0==_0x2de81a[_0x316c('0x62')])break;}return _0x247380;}[_0x316c('0x11a')](_0x24d7bd){const _0x5e3283=new Map();for(let _0x41cc44=0x0;_0x41cc44<_0x24d7bd['length'];_0x41cc44++)_0x316c('0x12')===_0x24d7bd[_0x41cc44][_0x316c('0xa4')]?(_0x24d7bd[_0x41cc44][_0x316c('0x38')]['startIndex']=_0x41cc44,_0x24d7bd[_0x41cc44]['item'][_0x316c('0xb4')]=_0x41cc44):(_0x316c('0xcc')===_0x24d7bd[_0x41cc44][_0x316c('0xa4')]?_0x24d7bd[_0x41cc44][_0x316c('0x38')][_0x316c('0xfd')]=_0x41cc44:_0x316c('0x10a')===_0x24d7bd[_0x41cc44]['type']&&(_0x24d7bd[_0x41cc44][_0x316c('0x38')]['endIndex']=_0x41cc44),_0x5e3283[_0x316c('0x8f')](_0x24d7bd[_0x41cc44]['id'],_0x41cc44));for(const _0x1d61a9 of _0x5e3283[_0x316c('0x3e')]())'elementStart'===_0x24d7bd[_0x1d61a9][_0x316c('0xa4')]?_0x24d7bd[_0x1d61a9][_0x316c('0x38')][_0x316c('0xb4')]=_0x5e3283[_0x316c('0xb2')](_0x24d7bd[_0x1d61a9][_0x316c('0x11f')]):_0x316c('0x10a')===_0x24d7bd[_0x1d61a9][_0x316c('0xa4')]&&(_0x24d7bd[_0x1d61a9]['item'][_0x316c('0xfd')]=_0x5e3283[_0x316c('0xb2')](_0x24d7bd[_0x1d61a9][_0x316c('0x11f')]));}[_0x316c('0x71')](_0x46f6ad){for(let _0x4ce178=0x0;_0x4ce178<_0x46f6ad[_0x316c('0x62')];_0x4ce178++){if(_0x316c('0xcc')===_0x46f6ad[_0x4ce178]['type'])_0x46f6ad[_0x4ce178][_0x316c('0x38')][_0x316c('0xfd')]=_0x4ce178;else{if(_0x316c('0x10a')===_0x46f6ad[_0x4ce178]['type']){_0x46f6ad[_0x4ce178]['item'][_0x316c('0xb4')]=_0x4ce178;const _0xc8804=_0x46f6ad[_0x4ce178][_0x316c('0x38')][_0x316c('0xfd')];_0x46f6ad[_0xc8804][_0x316c('0x11f')]=_0x46f6ad[_0x4ce178]['id'],_0x46f6ad[_0x4ce178][_0x316c('0x11f')]=_0x46f6ad[_0xc8804]['id'];}else _0x46f6ad[_0x4ce178]['item'][_0x316c('0xfd')]=_0x4ce178,_0x46f6ad[_0x4ce178]['item'][_0x316c('0xb4')]=_0x4ce178,_0x46f6ad[_0x4ce178][_0x316c('0x11f')]=null;}_0x46f6ad[_0x4ce178][_0x316c('0x108')]||(_0x46f6ad[_0x4ce178]['markersStart']=[],_0x46f6ad[_0x4ce178][_0x316c('0xa7')]=[]);}}[_0x316c('0x46')](_0x5687a4,_0x3419b2){const _0x87b7b1=_0x5687a4[_0x316c('0x7e')](_0x1898c1=>!_0x1898c1[_0x316c('0xe3')]);for(let _0xf2a565=0x0;_0xf2a565<_0x3419b2[_0x316c('0x62')];_0xf2a565++)_0x3419b2[_0xf2a565][_0x316c('0xe3')]&&(_0x87b7b1[_0xf2a565][_0x316c('0xe3')]=_0x3419b2[_0xf2a565][_0x316c('0xe3')]);}[_0x316c('0x41')](_0x2ce4a3){const _0x33e782=JSON[_0x316c('0x16')](_0x2ce4a3),_0x38ad6f=this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')]['document'],_0xc926b2=new _0x1ed9cb(_0x38ad6f,_0x33e782[_0x316c('0xb6')](_0x2e7721=>this[_0x316c('0x68')](_0x2e7721)));return this[_0x316c('0x4a')][_0x316c('0x124')][_0x316c('0x119')](_0xc926b2);}[_0x316c('0x68')](_0x2dee5e){const _0x3cd2b2=this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0xc0')];if('string'==typeof _0x2dee5e)return new _0x1729b1(_0x3cd2b2,_0x2dee5e);{const _0xff11c6=_0x2dee5e['children'][_0x316c('0xb6')](_0x13b620=>this[_0x316c('0x68')](_0x13b620));return new(tt[_0x2dee5e['type']]||_0x59a2fe)(_0x3cd2b2,_0x2dee5e[_0x316c('0x11')],_0x2dee5e[_0x316c('0x112')],_0xff11c6);}}['_getDiff'](_0x1af579,_0x2a78b3=null){const _0xf8880=this[_0x316c('0xbc')][_0x316c('0x17')](_0x1af579),_0x20fd1c=_0x2a78b3?this[_0x316c('0xbc')][_0x316c('0x17')](_0x2a78b3):null,_0x54395a=this[_0x316c('0x1e')](_0xf8880,_0x20fd1c),_0x13e795=_0x54395a[_0x54395a[_0x316c('0x62')]-0x1],_0x2e40de=new Map(),_0x50deaa={'model':{},'attributes':{},'changes':[]},_0x3ccd81=new Set(),_0x118b10=new Map();for(let _0x5a0b74=_0x54395a[_0x316c('0x62')]-0x1;_0x5a0b74>=0x0;_0x5a0b74--){const _0x32f350=_0x54395a[_0x5a0b74];for(const _0x41184f of Object[_0x316c('0xd3')](_0x32f350[_0x316c('0x87')]))if(_0x32f350[_0x316c('0x87')][_0x41184f][_0x316c('0x9e')]){const _0x13ca66=_0x32f350[_0x316c('0x87')][_0x41184f]['attachChange'];_0x13ca66['isAttached']?(_0x3ccd81['add'](_0x41184f),_0x118b10['has'](_0x41184f)&&_0x118b10[_0x316c('0xb2')](_0x41184f)[_0x316c('0x31')]==_0x13ca66[_0x316c('0x31')]?_0x118b10[_0x316c('0x9b')](_0x41184f):_0x118b10[_0x316c('0x8f')](_0x41184f,_0x13ca66)):_0x118b10['has'](_0x41184f)?(_0x3ccd81[_0x316c('0x9b')](_0x41184f),_0x118b10['delete'](_0x41184f)):(_0x3ccd81[_0x316c('0xd7')](_0x41184f),_0x118b10[_0x316c('0x8f')](_0x41184f,_0x13ca66));}else _0x3ccd81['add'](_0x41184f);}for(const _0x2a6a6f of _0x3ccd81){const _0xaa8da2=_0x118b10[_0x316c('0x97')](_0x2a6a6f)&&!_0x118b10[_0x316c('0xb2')](_0x2a6a6f)[_0x316c('0x5f')];let _0x57ad12=_0xaa8da2?_0x54395a[_0x316c('0x62')]-0x1:0x0;const _0x332df6=_0xaa8da2?-0x1:0x1;for(;_0x54395a[_0x57ad12];){const _0x55f9ac=_0x54395a[_0x57ad12];if(_0x55f9ac['diffData'][_0x2a6a6f]){const _0x42ef3c=_0xaa8da2?_0x55f9ac[_0x316c('0x87')][_0x2a6a6f][_0x316c('0xca')]:_0x55f9ac[_0x316c('0x87')][_0x2a6a6f]['attributesAfter'];_0x50deaa[_0x316c('0x112')][_0x2a6a6f]=_0x42ef3c?_0x3da7ba(_0x42ef3c):{};break;}_0x57ad12+=_0x332df6;}}for(const _0x2f13c2 of _0x54395a){_0x2f13c2['model']={};for(const _0x537b5d of _0x2f13c2['authors'])_0x2e40de[_0x316c('0x8f')](_0x537b5d['id'],_0x537b5d);for(const _0x4954a7 of _0x3ccd81){const _0x169fa9=_0x2f13c2[_0x316c('0x87')][_0x4954a7]?_0x2f13c2[_0x316c('0x87')][_0x4954a7][_0x316c('0xd9')]:'[]',_0x3285f5=_0x2f13c2[_0x316c('0x87')][_0x4954a7]?_0x2f13c2[_0x316c('0x87')][_0x4954a7][_0x316c('0x1b')]:'[]';_0x2f13c2[_0x316c('0x10d')][_0x4954a7]={'insertions':this[_0x316c('0x41')](_0x169fa9),'deletions':this[_0x316c('0x41')](_0x3285f5)};}}for(const _0x496b50 of _0x3ccd81){let _0x209da4=null,_0x1aefad=0x0;const _0x3db4b7=new Map(Array['from'](_0xf8880[_0x316c('0x10d')][_0x496b50]['insertions'][_0x316c('0x101')])[_0x316c('0x7e')](([_0x2dba04])=>!_0x2dba04[_0x316c('0xe4')](_0x316c('0x3d'))));let _0x3b977d=0x0;for(const _0xc60de3 of _0x54395a){const _0x20929f=this[_0x316c('0x26')](_0xc60de3['model'][_0x496b50]['insertions']);_0xc60de3==_0xf8880?(_0x209da4=_0x20929f,_0x1aefad=_0x209da4[_0x316c('0x62')],_0x209da4['forEach'](_0x2d8d0e=>{_0x2d8d0e['id']=_0x3b977d++;}),this[_0x316c('0x71')](_0x209da4)):this['_markInsertions'](_0x209da4,_0x20929f);const _0x12ae78=_0x209da4[_0x316c('0x7e')](_0x3ebae6=>!_0x3ebae6[_0x316c('0xe3')])[_0x316c('0xb6')](_0x16de7b=>_0x16de7b['id']);let _0x54ae2d=0x0;const _0x13fa3b=this['_makeTape'](_0xc60de3[_0x316c('0x10d')][_0x496b50]['deletions']);_0x13fa3b[_0x316c('0xa1')](_0x106971=>{_0x106971[_0x316c('0x3')]?_0x106971['id']=_0x1aefad++:_0x106971['id']=_0x12ae78[_0x54ae2d++];}),this[_0x316c('0x71')](_0x13fa3b),this[_0x316c('0xc7')](_0x209da4,_0x316c('0xe3')),this[_0x316c('0xc7')](_0x13fa3b,_0x316c('0x3')),_0xc60de3==_0xf8880&&this[_0x316c('0x11c')](_0x209da4,_0x3db4b7),_0x209da4=this[_0x316c('0xee')](_0x209da4,_0x13fa3b),this[_0x316c('0x11a')](_0x209da4),this[_0x316c('0xc7')](_0x209da4,_0x316c('0x3'));}_0x209da4=_0x209da4[_0x316c('0x7e')](_0x2dc08a=>!(_0x2dc08a[_0x316c('0xe3')]&&_0x2dc08a['isRemoved']));const _0x325c4d=new Map(_0x13e795[_0x316c('0x10d')][_0x496b50][_0x316c('0x1b')]['markers']),_0x406152=new Set(_0x3db4b7['keys']());for(const _0x1b0f56 of _0x325c4d[_0x316c('0xd3')]())_0x406152[_0x316c('0x9b')](_0x1b0f56);this[_0x316c('0x2e')](_0x209da4,_0x406152),this[_0x316c('0xd5')](_0x209da4),_0x209da4=this[_0x316c('0x1d')](_0x209da4),_0x209da4=this[_0x316c('0xd0')](_0x209da4),_0x209da4=this[_0x316c('0x9f')](_0x209da4);const {root:_0x224125,changes:_0x1cde2a}=this['_makeModelFromTape'](_0x209da4,_0x2e40de,_0x496b50);_0x50deaa[_0x316c('0x10d')][_0x496b50]=_0x224125;const _0x3eb486=_0x118b10['get'](_0x496b50);if(_0x3eb486){const _0x558051=_0x2e40de['get'](_0x3eb486['userId']),_0x27491d=new _0x1d6b4c({'author':_0x558051,'type':_0x3eb486[_0x316c('0x5f')]?_0x316c('0xd7'):_0x316c('0xf6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x496b50});_0x1cde2a[_0x316c('0x122')](_0x27491d),_0x50deaa['attributes'][_0x496b50][_0x316c('0x84')]=_0x27491d['id'];}_0x50deaa[_0x316c('0xb3')]=_0x50deaa[_0x316c('0xb3')][_0x316c('0xdb')](_0x1cde2a);}return _0x50deaa;}[_0x316c('0x11c')](_0x4c2c24,_0x542c3d){for(let _0x146f13=0x0;_0x146f13<_0x4c2c24['length'];_0x146f13++)for(const [_0x2054ee,_0x5de447]of _0x542c3d)_0x5de447[_0x316c('0x33')][_0x316c('0x6e')](_0x4c2c24[_0x146f13][_0x316c('0x109')])&&_0x4c2c24[_0x146f13]['markersStart']['push'](_0x2054ee),_0x5de447['end']['isEqual'](_0x4c2c24[_0x146f13][_0x316c('0xbd')])&&_0x4c2c24[_0x146f13][_0x316c('0xa7')]['push'](_0x2054ee);}[_0x316c('0xee')](_0x9e3a0f,_0x25d64e){let _0xe963a3=[],_0x380612=0x0,_0x5acd1d=0x0;for(;_0x380612<_0x9e3a0f[_0x316c('0x62')]||_0x5acd1d<_0x25d64e[_0x316c('0x62')];){const _0x106936=_0x9e3a0f[_0x380612]||{},_0x4f6515=_0x25d64e[_0x5acd1d]||{};if(_0x106936['id']==_0x4f6515['id'])_0x380612++,_0x5acd1d++,_0xe963a3['push'](_0x106936);else{if(_0x4f6515[_0x316c('0x3')]&&_0x106936[_0x316c('0xe3')]){const {commonTape:_0xd7cfe4,iEnd:_0x7c429c,jEnd:_0x2cbc87}=this[_0x316c('0xf2')](_0x9e3a0f,_0x380612,_0x25d64e,_0x5acd1d);_0xe963a3=_0xe963a3[_0x316c('0xdb')](_0xd7cfe4),_0x380612=_0x7c429c,_0x5acd1d=_0x2cbc87;}else _0x4f6515[_0x316c('0x3')]?(_0x5acd1d++,_0xe963a3['push'](_0x4f6515)):(_0x380612++,_0xe963a3[_0x316c('0xfe')](_0x106936));}}return _0xe963a3;}[_0x316c('0x2e')](_0x268691,_0x42e6c4){const _0x2158b9=[];for(let _0x29f5b7=0x0;_0x29f5b7<_0x268691[_0x316c('0x62')];_0x29f5b7++){for(let _0x1fb24a=0x0;_0x1fb24a<_0x268691[_0x29f5b7][_0x316c('0x108')][_0x316c('0x62')];_0x1fb24a++){const _0x4b6697=_0x268691[_0x29f5b7][_0x316c('0x108')][_0x1fb24a];if(!_0x42e6c4[_0x316c('0x97')](_0x4b6697))continue;const {group:_0x322b5d,type:_0x258360,authorId:_0x1071d4}=_0x3d6614(_0x4b6697);_0x316c('0x82')!=_0x322b5d||'insertion'!=_0x258360&&_0x316c('0x4b')!=_0x258360||(_0x2158b9[_0x316c('0x122')]({'type':_0x258360,'name':_0x4b6697,'userId':_0x1071d4}),_0x268691[_0x29f5b7]['markersStart'][_0x316c('0x7f')](_0x1fb24a,0x1),_0x1fb24a--);}_0x436cdd(_0x268691[_0x29f5b7]);for(let _0x299349=0x0;_0x299349<_0x268691[_0x29f5b7][_0x316c('0xa7')]['length'];_0x299349++){const _0xea7afe=_0x268691[_0x29f5b7][_0x316c('0xa7')][_0x299349];if(!_0x42e6c4[_0x316c('0x97')](_0xea7afe))continue;const {group:_0x48727d,type:_0x29d46e}=_0x3d6614(_0xea7afe);if('revision-suggestion'!=_0x48727d||_0x316c('0xe6')!=_0x29d46e&&'deletion'!=_0x29d46e)continue;_0x268691[_0x29f5b7][_0x316c('0xa7')][_0x316c('0x7f')](_0x299349,0x1),_0x299349--;const _0x17ce11=_0x2158b9[_0x316c('0xbf')](_0x31443f=>_0x31443f[_0x316c('0x11')]==_0xea7afe);_0x17ce11>-0x1&&_0x2158b9[_0x316c('0x7f')](_0x17ce11,0x1);}}function _0x3d6614(_0x2ba870){const _0x8b709=_0x2ba870[_0x316c('0x70')](':');return{'group':_0x8b709[0x0],'type':_0x8b709[0x1],'subType':_0x8b709[_0x316c('0x62')]>=0x5?_0x8b709[0x2]:null,'id':_0x8b709[_0x316c('0x62')]<0x5?_0x8b709[0x2]:_0x8b709[0x3],'authorId':_0x8b709[_0x316c('0x62')]<0x5?_0x8b709[0x3]:_0x8b709[0x4],'markerCount':0x6==_0x8b709[_0x316c('0x62')]?_0x8b709[0x5]:null};}function _0x436cdd(_0x230858){for(let _0xa9486b=0x0;_0xa9486b<_0x2158b9['length'];_0xa9486b++){if(_0x230858[_0x316c('0xe3')]&&'insertion'==_0x2158b9[_0xa9486b][_0x316c('0xa4')])return _0x230858[_0x316c('0x80')]=_0x2158b9[_0xa9486b],void delete _0x230858[_0x316c('0xe3')];if(!_0x230858[_0x316c('0xe3')]&&!_0x230858[_0x316c('0x3')]&&_0x316c('0x4b')==_0x2158b9[_0xa9486b]['type'])return void(_0x230858[_0x316c('0x8')]=_0x2158b9[_0xa9486b]);}}}[_0x316c('0xc7')](_0x4201da,_0x4bca6c){let _0xcd2b1e=0x0,_0x374e55=!0x1;const _0x173bbb=new Map();for(const _0x2d6440 of _0x4201da)_0x2d6440[_0x4bca6c]?_0x374e55&&(_0xcd2b1e++,_0x374e55=!0x1):(_0xcd2b1e++,_0x374e55=!0x0),_0x173bbb['set'](_0x2d6440['id'],_0xcd2b1e);for(let _0x21e05d=0x0;_0x21e05d<_0x4201da['length'];_0x21e05d++){if(_0x316c('0x3')==_0x4bca6c&&_0x4201da[_0x21e05d][_0x316c('0xe3')]||_0x316c('0xe3')==_0x4bca6c&&_0x4201da[_0x21e05d]['isRemoved'])continue;if(_0x316c('0x12')==_0x4201da[_0x21e05d][_0x316c('0xa4')]){_0x4201da[_0x21e05d][_0x316c('0xea')]=0x0;continue;}const _0xb35693=_0x173bbb[_0x316c('0xb2')](_0x4201da[_0x21e05d][_0x316c('0x11f')]),_0x5ee113=_0x173bbb[_0x316c('0xb2')](_0x4201da[_0x21e05d]['id']);_0x4201da[_0x21e05d][_0x316c('0xea')]=_0xb35693-_0x5ee113;}}['_getRevisionsRange'](_0x22e2b6,_0x391460,_0x493a24=!0x1){const _0x21b566=[];let _0x1502fd=this[_0x316c('0xbc')]['getIndex'](_0x22e2b6),_0x2ad29e=this[_0x316c('0xbc')][_0x316c('0xd8')](_0x391460);for(-0x1==_0x2ad29e&&(_0x2ad29e=this[_0x316c('0xbc')][_0x316c('0x42')]['length'],_0x493a24=!0x1);_0x1502fd<_0x2ad29e;)_0x21b566['push'](this[_0x316c('0xbc')][_0x316c('0x17')](_0x1502fd)),_0x1502fd++;return _0x493a24&&_0x21b566['push'](this[_0x316c('0xbc')][_0x316c('0x17')](_0x1502fd)),_0x21b566;}['_threeWayMerge'](_0xa0993c,_0x39ad10,_0x373ce8,_0x3603d8){const _0x1225eb=this[_0x316c('0x4a')][_0x316c('0x10d')]['schema'];let _0x55ab33=_0x39ad10;for(;_0xa0993c[_0x55ab33]&&_0xa0993c[_0x55ab33][_0x316c('0xe3')];)_0x55ab33++;let _0x358073=_0x3603d8;for(;_0x373ce8[_0x358073]&&_0x373ce8[_0x358073][_0x316c('0x3')];)_0x358073++;_0x5b36fa(_0xa0993c,_0x39ad10,_0x55ab33),_0x5b36fa(_0x373ce8,_0x3603d8,_0x358073);const _0x69e4fb=_0x373ce8[_0x316c('0xfb')](_0x3603d8,_0x358073)[_0x316c('0xdb')](_0xa0993c[_0x316c('0xfb')](_0x39ad10,_0x55ab33));return _0x69e4fb[_0x316c('0x55')]((_0x399b50,_0x12f758)=>_0x399b50[_0x316c('0x95')]!=_0x12f758[_0x316c('0x95')]?_0x399b50[_0x316c('0x95')]-_0x12f758[_0x316c('0x95')]:_0x399b50['level']!=_0x12f758[_0x316c('0xec')]?_0x399b50[_0x316c('0xec')]-_0x12f758[_0x316c('0xec')]:_0x399b50[_0x316c('0xea')]!=_0x12f758[_0x316c('0xea')]?_0x12f758[_0x316c('0xea')]-_0x399b50[_0x316c('0xea')]:!!_0x399b50['isAdded']!=!!_0x12f758[_0x316c('0xe3')]?-0x1==_0x399b50['side']||0x0==_0x399b50[_0x316c('0x95')]?_0x399b50[_0x316c('0xe3')]?-0x1:0x1:_0x399b50[_0x316c('0xe3')]?0x1:-0x1:_0x399b50['index']-_0x12f758['index']),{'commonTape':_0x69e4fb,'iEnd':_0x55ab33,'jEnd':_0x358073};function _0x5b36fa(_0x404a62,_0x34c06e,_0x3991fa){let _0x5325b3=-0x1,_0xd72666=Number[_0x316c('0xa9')],_0x363aeb=!0x0;for(let _0x136bba=_0x34c06e;_0x136bba<_0x3991fa;_0x136bba++)if(_0x1225eb[_0x316c('0xa0')](_0x404a62[_0x136bba]['item'])||(_0x363aeb=!0x1),_0x404a62[_0x136bba][_0x316c('0x38')][_0x316c('0xfd')]<_0x34c06e&&(_0x5325b3=_0x136bba),_0x404a62[_0x136bba][_0x316c('0x38')][_0x316c('0xb4')]>=_0x3991fa){_0xd72666=_0x136bba;break;}_0x363aeb&&(_0x5325b3=_0x3991fa-0x1);for(let _0x3b9706=_0x34c06e;_0x3b9706<_0x3991fa;_0x3b9706++)_0x404a62[_0x3b9706][_0x316c('0x95')]=_0x3b9706<=_0x5325b3?-0x1:_0x3b9706<_0xd72666?0x0:0x1,_0x404a62[_0x3b9706][_0x316c('0x23')]=_0x3b9706;let _0xb3a35a=0x0;for(let _0x5c823a=_0x34c06e;_0x5c823a<=_0x5325b3;_0x5c823a++)0x0==_0x404a62[_0x5c823a][_0x316c('0xea')]?_0x404a62[_0x5c823a]['level']=_0xb3a35a:(_0xb3a35a++,_0x404a62[_0x5c823a]['level']=_0xb3a35a,_0xb3a35a++);for(let _0x164032=_0x34c06e;_0x164032<_0x3991fa;_0x164032++)0x0==_0x404a62[_0x164032]['side']&&(_0x404a62[_0x164032][_0x316c('0xec')]=_0xb3a35a);_0xb3a35a=0x0;for(let _0x35f5cd=_0x3991fa-0x1;_0x35f5cd>=_0xd72666;_0x35f5cd--)0x0==_0x404a62[_0x35f5cd][_0x316c('0xea')]?_0x404a62[_0x35f5cd]['level']=_0xb3a35a:(_0xb3a35a--,_0x404a62[_0x35f5cd][_0x316c('0xec')]=_0xb3a35a,_0xb3a35a--);}}['_fixObsoleteTags'](_0xdffcf7){const _0x5e1e73=new Map(),_0x3ecf78=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x48')];for(let _0x4e263a=0x1;_0x4e263a<_0xdffcf7[_0x316c('0x62')];_0x4e263a++){let _0x652257,_0x37b627,_0x1b6393;const _0xbaab4=_0xdffcf7[_0x4e263a],_0x1ff1d3=_0xdffcf7[_0x4e263a-0x1];if(_0x316c('0x12')==_0xbaab4[_0x316c('0xa4')])continue;if(_0xbaab4[_0x316c('0xa4')]!=_0x1ff1d3[_0x316c('0xa4')])continue;if(!_0x3ecf78[_0x316c('0xc')](_0x1ff1d3['item'])||_0x3ecf78[_0x316c('0xf4')](_0x1ff1d3[_0x316c('0x38')]))continue;if(!_0x3ecf78['isBlock'](_0xbaab4[_0x316c('0x38')])||_0x3ecf78[_0x316c('0xf4')](_0xbaab4[_0x316c('0x38')]))continue;if((_0xdffcf7[_0x4e263a]['isAdded']||_0xdffcf7[_0x4e263a][_0x316c('0x80')])&&_0xdffcf7[_0x4e263a-0x1][_0x316c('0x3')])_0x652257=_0xdffcf7[_0x4e263a],_0x37b627=_0xdffcf7[_0x4e263a-0x1],_0x1b6393=_0x4e263a-0x1;else{if(!_0xdffcf7[_0x4e263a][_0x316c('0x3')]||!_0xdffcf7[_0x4e263a-0x1][_0x316c('0xe3')]&&!_0xdffcf7[_0x4e263a-0x1]['isAddSuggestion'])continue;_0x652257=_0xdffcf7[_0x4e263a-0x1],_0x37b627=_0xdffcf7[_0x4e263a],_0x1b6393=_0x4e263a;}const _0x2a8125=_0x652257[_0x316c('0xec')]==_0x37b627[_0x316c('0xec')],_0x434250=Math[_0x316c('0x2f')](_0x652257[_0x316c('0xec')])<Math['abs'](_0x37b627[_0x316c('0xec')])&&0x0==_0x37b627[_0x316c('0xea')];(_0x2a8125||_0x434250)&&(_0x5e1e73['set'](_0x37b627['id'],_0x652257['id']),_0xdffcf7[_0x316c('0x7f')](_0x1b6393,0x1),_0x4e263a--,_0x652257[_0x316c('0xe3')]=!0x1);}for(let _0x376629=0x0;_0x376629<_0xdffcf7['length'];_0x376629++)_0x5e1e73[_0x316c('0x97')](_0xdffcf7[_0x376629][_0x316c('0x11f')])&&(_0xdffcf7[_0x376629]['pairId']=_0x5e1e73[_0x316c('0xb2')](_0xdffcf7[_0x376629][_0x316c('0x11f')]));}[_0x316c('0x1d')](_0x431b8a){const _0x54bc7b=new Set(_0x431b8a[_0x316c('0xb6')](_0x59d4dc=>_0x59d4dc['id']));for(let _0x38b7b0=0x0;_0x38b7b0<_0x431b8a['length'];_0x38b7b0++)_0x54bc7b['has'](_0x431b8a[_0x38b7b0][_0x316c('0x11f')])||0x0==_0x431b8a[_0x38b7b0][_0x316c('0xea')]||(_0x431b8a[_0x38b7b0][_0x316c('0xa2')]=!0x0);return _0x431b8a['filter'](_0x4e61ca=>!_0x4e61ca[_0x316c('0xa2')]);}[_0x316c('0xd0')](_0x145dd3){const _0xa99a74=new Set();for(let _0x37fa5b=0x0;_0x37fa5b<_0x145dd3[_0x316c('0x62')];_0x37fa5b++){if(_0xa99a74[_0x316c('0x97')](_0x145dd3[_0x37fa5b]['id'])&&_0x145dd3[_0x37fa5b][_0x316c('0x3')]&&(_0x145dd3[_0x37fa5b][_0x316c('0xa2')]=!0x0),_0x145dd3[_0x37fa5b][_0x316c('0xa2')])continue;if(0x0==_0x145dd3[_0x37fa5b][_0x316c('0xea')])continue;if(_0x316c('0xcc')!=_0x145dd3[_0x37fa5b][_0x316c('0xa4')])continue;if(null==_0x145dd3[_0x37fa5b]['pairId'])continue;let _0x388e92=_0x37fa5b+0x1,_0x18ca9c=0x0;for(;_0x145dd3[_0x388e92]['id']!=_0x145dd3[_0x37fa5b][_0x316c('0x11f')];)_0x316c('0xcc')==_0x145dd3[_0x388e92][_0x316c('0xa4')]?_0x18ca9c++:_0x316c('0x10a')==_0x145dd3[_0x388e92][_0x316c('0xa4')]&&_0x18ca9c--,_0x388e92++;if(0x0!=_0x18ca9c){if(_0x145dd3[_0x37fa5b][_0x316c('0x3')])_0x145dd3[_0x37fa5b][_0x316c('0xa2')]=!0x0;else for(;_0x388e92!=_0x37fa5b;)_0x145dd3[_0x388e92]['isRemoved']&&0x0!=_0x145dd3[_0x388e92][_0x316c('0xea')]&&(_0x145dd3[_0x388e92][_0x316c('0xa2')]=!0x0,_0xa99a74['add'](_0x145dd3[_0x388e92]['pairId'])),_0x388e92--;}}return _0x145dd3[_0x316c('0x7e')](_0x296cf8=>!_0x296cf8[_0x316c('0xa2')]);}[_0x316c('0x9f')](_0x4d1ea4){const _0x553d6c=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x48')];for(let _0x54ffc5=0x0;_0x54ffc5<_0x4d1ea4['length'];_0x54ffc5++){if(!(_0x4d1ea4[_0x54ffc5][_0x316c('0xe3')]||_0x4d1ea4[_0x54ffc5][_0x316c('0x80')]||_0x4d1ea4[_0x54ffc5][_0x316c('0x3')]||_0x4d1ea4[_0x54ffc5][_0x316c('0x8')]))continue;if(0x0==_0x4d1ea4[_0x54ffc5][_0x316c('0xea')])continue;const _0x5cfb1e=_0x4d1ea4[_0x54ffc5][_0x316c('0x38')];_0x553d6c[_0x316c('0xc')](_0x5cfb1e)||_0x553d6c[_0x316c('0xf4')](_0x5cfb1e)||(_0x4d1ea4[_0x54ffc5][_0x316c('0xe3')]&&delete _0x4d1ea4[_0x54ffc5][_0x316c('0xe3')],_0x4d1ea4[_0x54ffc5]['isAddSuggestion']&&delete _0x4d1ea4[_0x54ffc5][_0x316c('0x80')],_0x4d1ea4[_0x54ffc5][_0x316c('0x8')]&&delete _0x4d1ea4[_0x54ffc5][_0x316c('0x8')],_0x4d1ea4[_0x54ffc5][_0x316c('0x3')]&&(_0x4d1ea4[_0x54ffc5]['isIncorrect']=!0x0));}return _0x4d1ea4[_0x316c('0x7e')](_0x3ea564=>!_0x3ea564['isIncorrect']);}['_makeModelFromTape'](_0x439399,_0x324a56,_0x16a4bd){const _0x4419c8=new _0x3641d9(),_0x1c1a58=[],_0xd24905=new Map(),_0x14e1a3=this['editor'][_0x316c('0x10d')],_0x2273fe=_0x14e1a3[_0x316c('0x48')],_0x3e0346=[_0x4419c8],_0x4f7541={},_0x5b2c97={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5b03bd=null;const _0x49852c=[0x0];for(let _0x2632a0=0x0;_0x2632a0<_0x439399[_0x316c('0x62')];_0x2632a0++){let _0x430f23,_0x2dc88e;if('elementStart'===_0x439399[_0x2632a0][_0x316c('0xa4')]){_0x430f23=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c);const _0x298bd8=new _0x2d5233(_0x439399[_0x2632a0][_0x316c('0x38')]['name'],_0x439399[_0x2632a0][_0x316c('0x38')][_0x316c('0x100')]());_0x3e0346[0x0][_0x316c('0x4f')](_0x298bd8),_0x49852c['push'](0x0),_0x3e0346[_0x316c('0x122')](_0x298bd8),_0x2dc88e=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x5b03bd=null;}else{if(_0x316c('0x10a')===_0x439399[_0x2632a0][_0x316c('0xa4')])_0x3e0346[_0x316c('0xd2')](),_0x430f23=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x49852c[_0x316c('0x94')](),_0x49852c[_0x49852c[_0x316c('0x62')]-0x1]++,_0x2dc88e=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x5b03bd=null;else{if(_0x430f23=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c),_0x5b03bd&&_0x31a6f3(_0x5b03bd,_0x439399[_0x2632a0][_0x316c('0x38')]))_0x5b03bd[_0x316c('0x3a')]+=_0x439399[_0x2632a0]['item']['data'];else{const _0x598ae6=new _0x449c8c(_0x439399[_0x2632a0][_0x316c('0x38')][_0x316c('0x124')],_0x439399[_0x2632a0]['item']['getAttributes']());_0x3e0346[0x0][_0x316c('0x4f')](_0x598ae6),_0x5b03bd=_0x598ae6;}_0x49852c[_0x49852c[_0x316c('0x62')]-0x1]+=_0x439399[_0x2632a0][_0x316c('0x38')]['offsetSize'],_0x2dc88e=_0x14e1a3[_0x316c('0xf0')](_0x4419c8,_0x49852c);}}for(const _0x4c72f5 of _0x439399[_0x2632a0]['markersStart'])_0xd24905[_0x316c('0x8f')](_0x4c72f5,{'start':_0x430f23,'end':null});_0x5aad24(_0x316c('0x8'),_0x2632a0,_0x430f23,_0x2dc88e),_0x5aad24('isAddSuggestion',_0x2632a0,_0x430f23,_0x2dc88e),_0x5aad24(_0x316c('0x3'),_0x2632a0,_0x430f23,_0x2dc88e),_0x5aad24(_0x316c('0xe3'),_0x2632a0,_0x430f23,_0x2dc88e);for(const _0x1e0102 of _0x439399[_0x2632a0]['markersEnd']){_0xd24905[_0x316c('0xb2')](_0x1e0102)['end']=_0x2dc88e;}}for(const [_0x4476b0,_0x21b3ca]of _0xd24905){const _0xf5a520=this[_0x316c('0x4a')]['model'][_0x316c('0x69')](_0x21b3ca['start'],_0x21b3ca[_0x316c('0x5c')]);_0x4419c8[_0x316c('0x101')][_0x316c('0x8f')](_0x4476b0,_0xf5a520);}return _0x1c1a58[_0x316c('0x55')]((_0x5e25c5,_0x12a1ca)=>{const _0x477b9e=_0x4419c8[_0x316c('0x101')][_0x316c('0xb2')]('revision:'+_0x5e25c5['id']),_0x16d27a=_0x4419c8['markers'][_0x316c('0xb2')](_0x316c('0x3d')+_0x12a1ca['id']);return _0x477b9e[_0x316c('0x33')][_0x316c('0xba')](_0x16d27a[_0x316c('0x33')])?-0x1:_0x477b9e[_0x316c('0x33')][_0x316c('0x76')](_0x16d27a[_0x316c('0x33')])?0x1:_0x477b9e['end'][_0x316c('0xba')](_0x16d27a['end'])?-0x1:_0x477b9e[_0x316c('0x5c')][_0x316c('0x76')](_0x16d27a[_0x316c('0x5c')])?0x1:_0x316c('0xd7')===_0x5e25c5[_0x316c('0xa4')]?-0x1:0x1;}),{'root':_0x4419c8,'changes':_0x1c1a58};function _0x5aad24(_0x1ac1d3,_0x20e640,_0x15a9a3,_0x19161e){const _0x1ea60a=!!_0x439399[_0x20e640][_0x1ac1d3],_0x2ad71c=_0x1ea60a?_0x439399[_0x20e640][_0x1ac1d3][_0x316c('0x31')]:null,_0x8af4a6=_0x20e640===_0x439399['length']-0x1,_0x3c3565=_0x5b2c97[_0x1ac1d3][0x0],_0x54a686=_0x2273fe['isObject'](_0x439399[_0x20e640][_0x316c('0x38')]);!_0x4f7541[_0x1ac1d3]&&_0x1ea60a?_0x4f7541[_0x1ac1d3]={'start':_0x15a9a3,'tapeItem':_0x439399[_0x20e640],'userId':_0x2ad71c,'type':_0x1ac1d3}:_0x4f7541[_0x1ac1d3]&&!_0x1ea60a?(_0x4f7541[_0x1ac1d3][_0x316c('0x5c')]=_0x15a9a3,_0x1d0822(_0x4f7541[_0x1ac1d3]),_0x4f7541[_0x1ac1d3]=null):_0x4f7541[_0x1ac1d3]&&_0x1ea60a&&_0x4f7541[_0x1ac1d3]['userId']!==_0x2ad71c&&(_0x4f7541[_0x1ac1d3][_0x316c('0x5c')]=_0x15a9a3,_0x3c3565&&_0x3c3565[_0x316c('0x31')]===_0x4f7541[_0x1ac1d3][_0x316c('0x31')]||_0x1d0822(_0x4f7541[_0x1ac1d3]),_0x4f7541[_0x1ac1d3]={'start':_0x15a9a3,'tapeItem':_0x439399[_0x20e640],'userId':_0x2ad71c,'type':_0x1ac1d3}),_0x4f7541[_0x1ac1d3]&&_0x54a686&&(_0x316c('0xcc')!==_0x439399[_0x20e640][_0x316c('0xa4')]||_0x3c3565&&_0x3c3565[_0x316c('0x31')]===_0x2ad71c||_0x5b2c97[_0x1ac1d3]['unshift']({'userId':_0x2ad71c,'object':_0x439399[_0x20e640][_0x316c('0x38')],'change':_0x4f7541[_0x1ac1d3]}),_0x316c('0x10a')===_0x439399[_0x20e640][_0x316c('0xa4')]&&_0x3c3565&&_0x3c3565['object']===_0x439399[_0x20e640]['item']&&(_0x5b2c97[_0x1ac1d3][_0x316c('0xd2')](),_0x4f7541[_0x1ac1d3]=_0x3c3565['change'])),_0x4f7541[_0x1ac1d3]&&_0x8af4a6&&(_0x4f7541[_0x1ac1d3]['end']=_0x19161e,_0x1d0822(_0x4f7541[_0x1ac1d3]),_0x4f7541[_0x1ac1d3]=null);}function _0x1d0822({start:_0x22ddc5,end:_0x2b0860,tapeItem:_0x3ebddd,userId:_0x321010,type:_0x4b5d04}){const _0x15dcbf=_0x3ebddd['item'],_0x4c3823=_0x14e1a3[_0x316c('0x48')][_0x316c('0xc')](_0x15dcbf)&&!_0x14e1a3[_0x316c('0x48')][_0x316c('0xf4')](_0x15dcbf),_0x4f1966=_0x22ddc5['nodeAfter']==_0x2b0860[_0x316c('0xdf')]&&_0x2b0860['isAtStart'];if(_0x4c3823&&_0x4f1966)return;const _0x377077=_0x14e1a3[_0x316c('0x69')](_0x22ddc5,_0x2b0860),_0x285847=_0x324a56['get'](_0x321010),_0x131da7=new _0x1d6b4c({'author':_0x285847,'type':_0x316c('0xe3')==_0x4b5d04||_0x316c('0x80')==_0x4b5d04?_0x316c('0xd7'):'remove','data':{'isSuggestion':_0x316c('0x80')==_0x4b5d04||_0x316c('0x8')==_0x4b5d04},'createdAt':new Date(),'rootName':_0x16a4bd});_0x1c1a58[_0x316c('0xfe')](_0x131da7),_0x4419c8[_0x316c('0x101')]['set'](_0x316c('0x3d')+_0x131da7['id'],_0x377077);}function _0x31a6f3(_0x51710e,_0x3f4b28){const _0x3b6956=_0x51710e['getAttributes'](),_0x5aec98=_0x3f4b28[_0x316c('0x100')]();for(const _0x9e3dcb of _0x3b6956){if(_0x9e3dcb[0x1]!==_0x3f4b28[_0x316c('0x2')](_0x9e3dcb[0x0]))return!0x1;_0x5aec98[_0x316c('0xad')]();}return _0x5aec98[_0x316c('0xad')]()[_0x316c('0xf9')];}}[_0x316c('0x8b')](){this['editor']['conversion']['for'](_0x316c('0x73'))[_0x316c('0x32')]({'view':_0x316c('0x4')}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x103'))[_0x316c('0xc9')]({'model':_0x316c('0x4'),'view':_0x2886b6=>{const _0x1d86be=_0x2886b6['markerName'][_0x316c('0x70')](':')[0x1],_0x2af075=this[_0x316c('0xaf')](_0x1d86be);if(!_0x2af075)return null;const _0x2279b5=_0x316c('0xd7')==_0x2af075[_0x316c('0xa4')]?_0x316c('0xe6'):_0x316c('0x4b'),_0x13e69d=[_0x316c('0x11b'),_0x316c('0x86')+_0x2279b5];return _0x2af075[_0x316c('0x124')][_0x316c('0x10')]&&_0x13e69d[_0x316c('0xfe')](_0x316c('0x86')+_0x2279b5+_0x316c('0x44')),this['activeChange']==_0x2af075&&_0x13e69d[_0x316c('0xfe')](_0x316c('0x114')),{'classes':_0x13e69d,'attributes':{'data-change-id':_0x1d86be}};}}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))[_0x316c('0xd7')](_0x58d2cd=>{_0x58d2cd['on'](_0x316c('0x7a'),(_0x4b1b2c,_0x3ddc23,_0xf5fd98)=>{const _0x5a16d3=_0x3ddc23[_0x316c('0xe8')]['getChild'](0x0);if(!_0x5a16d3||!_0x5a16d3['is']('element',_0x316c('0x8d')))return;if(!_0xf5fd98[_0x316c('0x9a')][_0x316c('0x106')](_0x5a16d3,{'attributes':[_0x316c('0xaa'),_0x316c('0x89')]}))return;const _0x13c83b=_0x3ddc23[_0x316c('0x64')][_0x316c('0x33')][_0x316c('0x29')];_0xf5fd98[_0x316c('0x20')][_0x316c('0x24')](_0x316c('0xaa'),_0x5a16d3[_0x316c('0x2')](_0x316c('0xaa')),_0x13c83b),_0xf5fd98[_0x316c('0x20')][_0x316c('0x24')](_0x316c('0x89'),_0x5a16d3[_0x316c('0x2')](_0x316c('0x89')),_0x13c83b);},{'priority':_0x316c('0x2a')});}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))['add'](_0x3928ed=>{_0x3928ed['on']('element',(_0x521d5e,_0x1d2d1b,_0x5d4d50)=>{if(!_0x5d4d50[_0x316c('0x9a')][_0x316c('0x106')](_0x1d2d1b[_0x316c('0xe8')],{'attributes':[_0x316c('0xaa'),_0x316c('0x89')]}))return;if(_0x1d2d1b[_0x316c('0x64')][_0x316c('0x115')])return;const _0x405d66=_0x1d2d1b[_0x316c('0x64')]['start'][_0x316c('0x29')];_0x405d66[_0x316c('0x53')](_0x316c('0xaa'))||_0x405d66[_0x316c('0x53')](_0x316c('0xf8'))||(_0x5d4d50[_0x316c('0x20')][_0x316c('0x24')](_0x316c('0xaa'),_0x1d2d1b[_0x316c('0xe8')]['getAttribute'](_0x316c('0xaa')),_0x405d66),_0x5d4d50[_0x316c('0x20')]['setAttribute'](_0x316c('0x89'),_0x1d2d1b[_0x316c('0xe8')][_0x316c('0x2')](_0x316c('0x89')),_0x405d66));},{'priority':'low'});}),this['editor'][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))[_0x316c('0x116')]({'view':{'name':_0x316c('0x74'),'attributes':{'vid':!0x0}},'model':{'key':_0x316c('0xf8'),'value':_0x256e13=>_0x256e13[_0x316c('0x2')](_0x316c('0xf8'))}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5ad03b,[,_0x41eab5])=>{[_0x316c('0xaa'),_0x316c('0x89'),_0x316c('0xf8')]['includes'](_0x41eab5)&&(_0x5ad03b[_0x316c('0x6a')]=!0x0,_0x5ad03b[_0x316c('0xc1')]());},{'priority':_0x316c('0xa6')}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')]('dataDowncast')[_0x316c('0xd7')](_0x6d642=>{_0x6d642['on'](_0x316c('0x6c'),(_0x598b51,_0x2aa488,_0x2b5353)=>{if('\x20'!=_0x2aa488['item'][_0x316c('0x124')]||_0x2aa488['item']['parent'][_0x316c('0xc5')]>0x1)return;if(!_0x2b5353[_0x316c('0x9a')]['consume'](_0x2aa488[_0x316c('0x38')],_0x598b51['name']))return;const _0x54d937=_0x2b5353[_0x316c('0x20')],_0x4b5636=_0x2b5353[_0x316c('0x67')][_0x316c('0x2b')](_0x2aa488[_0x316c('0xe9')]);_0x54d937['wrap'](_0x4b5636,_0x54d937[_0x316c('0xe')]('span'));});}),this[_0x316c('0x4a')]['conversion'][_0x316c('0x78')](_0x316c('0x113'))['markerToData']({'model':_0x316c('0x4')}),this[_0x316c('0x4a')][_0x316c('0xeb')]['downcastDispatcher']['on'](_0x316c('0x51'),function(_0x538255){const _0x573ccf=_0x538255[_0x316c('0x9')][_0x316c('0xb2')](_0x316c('0xbb'));return(_0x185b9b,_0x36a10e,_0x3d5219)=>{const _0x1d11fa=_0x36a10e[_0x316c('0x5b')][_0x316c('0x70')](':')[0x1],_0x2b369b=_0x573ccf[_0x316c('0xaf')](_0x1d11fa);if(!_0x2b369b)return null;const _0x3df1a='add'==_0x2b369b[_0x316c('0xa4')]?_0x316c('0x70'):'merge';if(!_0x3d5219[_0x316c('0x9a')][_0x316c('0x117')](_0x36a10e[_0x316c('0x63')],_0x185b9b[_0x316c('0x11')]))return;const _0x38633f=_0x36a10e[_0x316c('0x63')][_0x316c('0xcf')](),_0x349da3=_0x36a10e['markerRange'][_0x316c('0x33')],_0x17ba06=_0x538255[_0x316c('0x10d')][_0x316c('0x48')];let _0x3a892a=null,_0x989e06=null,_0x4fc07c=!0x1,_0x37cce3=!0x1;for(const _0x31a785 of _0x38633f){const _0x1cf255=_0x31a785[_0x316c('0x38')];_0x4fc07c=_0x4fc07c||_0x17ba06[_0x316c('0xe2')](_0x1cf255);const _0x1c2a9f=_0x3d5219[_0x316c('0x67')][_0x316c('0x121')](_0x1cf255);if(_0x1c2a9f&&_0x1c2a9f[_0x316c('0x1f')](_0x316c('0x12b')))return;'elementEnd'==_0x31a785['type']&&(_0x17ba06[_0x316c('0xc')](_0x1cf255)&&!_0x17ba06['isLimit'](_0x1cf255)&&(_0x1cf255[_0x316c('0x90')]||_0x349da3[_0x316c('0x85')]?_0x3a892a&&_0x3a892a[_0x316c('0xdf')]==_0x1cf255||(_0x3a892a=_0x1cf255,_0x11aaef(_0x31a785[_0x316c('0x109')]),_0x37cce3=!0x0):_0x989e06=_0x989e06||_0x31a785['previousPosition']));}function _0x11aaef(_0x1a10a6){const _0xcf1493=_0x3d5219[_0x316c('0x20')][_0x316c('0xcb')]('span',{'class':_0x316c('0x86')+_0x3df1a}),_0x3fd58c=_0x3d5219[_0x316c('0x67')]['toViewPosition'](_0x1a10a6);_0x2b369b[_0x316c('0x124')][_0x316c('0x10')]&&_0x3d5219[_0x316c('0x20')]['addClass']('ck-suggestion-marker-'+_0x3df1a+_0x316c('0x44'),_0xcf1493),_0x573ccf[_0x316c('0x37')]==_0x2b369b&&_0x3d5219['writer'][_0x316c('0x35')](_0x316c('0x114'),_0xcf1493),_0x3d5219[_0x316c('0x20')][_0x316c('0x15')](_0x3fd58c,_0xcf1493),_0x3d5219['mapper'][_0x316c('0xb5')](_0xcf1493,_0x36a10e['markerName']);}_0x4fc07c||_0x37cce3||!_0x989e06||_0x11aaef(_0x989e06);};}(this[_0x316c('0x4a')]),{'priority':_0x316c('0xe7')}),this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0x120')]['on'](_0x316c('0xc2'),(_0x483969,_0xf69445,_0x22cab2)=>{const _0x5bd6f7=_0x22cab2[_0x316c('0x67')]['markerNameToElements'](_0xf69445[_0x316c('0x5b')]);if(_0x5bd6f7)for(const _0x46a009 of _0x5bd6f7)(_0x46a009[_0x316c('0xd4')](_0x316c('0xc6'))||_0x46a009[_0x316c('0xd4')](_0x316c('0x65')))&&(_0x22cab2['mapper']['unbindElementFromMarkerName'](_0x46a009,_0xf69445[_0x316c('0x5b')]),_0x22cab2[_0x316c('0x20')][_0x316c('0xf6')](_0x46a009));},{'priority':_0x316c('0xe7')}),this['editor'][_0x316c('0xeb')][_0x316c('0x120')]['on'](_0x316c('0x51'),(_0x288d5c,_0x36f62f,_0x40da62)=>{const _0x537dd1=_0x36f62f[_0x316c('0x5b')]['split'](':')[0x1],_0x4eff0d=this[_0x316c('0xaf')](_0x537dd1);if(!_0x4eff0d)return null;const _0x2065a5=_0x316c('0xd7')==_0x4eff0d[_0x316c('0xa4')]?_0x316c('0x70'):_0x316c('0x10e');if(_0x40da62[_0x316c('0x9a')]['test'](_0x36f62f[_0x316c('0x63')],_0x288d5c[_0x316c('0x11')]))for(const _0x303c57 of _0x36f62f[_0x316c('0x63')]['getItems']()){if(!_0x303c57['is'](_0x316c('0x34'),'softBreak'))continue;const _0x337072=_0x40da62[_0x316c('0x20')][_0x316c('0xcb')]('span',{'class':_0x316c('0x86')+_0x2065a5}),_0x14c4f0=_0x40da62[_0x316c('0x67')]['toViewPosition'](this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x10b')](_0x303c57));_0x4eff0d[_0x316c('0x124')][_0x316c('0x10')]&&_0x40da62[_0x316c('0x20')][_0x316c('0x35')](_0x316c('0x86')+_0x2065a5+_0x316c('0x44'),_0x337072),this[_0x316c('0x37')]==_0x4eff0d&&_0x40da62[_0x316c('0x20')][_0x316c('0x35')](_0x316c('0x114'),_0x337072),_0x40da62[_0x316c('0x20')][_0x316c('0x15')](_0x14c4f0,_0x337072),_0x40da62['mapper'][_0x316c('0xb5')](_0x337072,_0x36f62f[_0x316c('0x5b')]);}},{'priority':'high'}),this['editor']['model']['document']['on'](_0x316c('0x104'),()=>{this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0x104')](_0x228f63=>{for(const _0x2a2fa8 of this['editor'][_0x316c('0x10d')]['document']['getRootNames']()){const _0xf8ca18=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0x56')](_0x2a2fa8),_0xd7bbb4=this[_0x316c('0x4a')][_0x316c('0xeb')][_0x316c('0xe5')]['document'][_0x316c('0x56')](_0x2a2fa8);if(_0xd7bbb4){const _0x1d525b=_0xf8ca18['getAttribute'](_0x316c('0x84'));if(_0x228f63[_0x316c('0x18')]('data-change-id',_0xd7bbb4),_0x228f63[_0x316c('0x75')]('ck-revision-history-root-add',_0xd7bbb4),_0x228f63[_0x316c('0x75')](_0x316c('0x3c'),_0xd7bbb4),_0x228f63[_0x316c('0x75')]('ck-revision-history-root--active',_0xd7bbb4),_0x1d525b){const _0x451f23=this[_0x316c('0xaf')](_0x1d525b);if(!_0x451f23)return null;_0x228f63[_0x316c('0x24')](_0x316c('0x57'),_0x1d525b,_0xd7bbb4),_0x228f63[_0x316c('0x35')](_0x316c('0x2d')+_0x451f23[_0x316c('0xa4')],_0xd7bbb4),this['activeChange']==_0x451f23&&_0x228f63['addClass'](_0x316c('0xab'),_0xd7bbb4);}}}});}),this[_0x316c('0x4a')][_0x316c('0xb0')][_0x316c('0x78')]('upcast')[_0x316c('0x32')]({'view':_0x316c('0x45'),'model':_0x252ca6=>_0x316c('0xb')+_0x252ca6,'converterPriority':_0x316c('0xa6')}),this['editor'][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x73'))[_0x316c('0x32')]({'view':'suggestion','model':_0x497ad3=>_0x316c('0x7')+_0x497ad3,'converterPriority':_0x316c('0xa6')}),this['editor'][_0x316c('0xb0')][_0x316c('0x78')](_0x316c('0x113'))[_0x316c('0x6d')]({'model':_0x316c('0x82'),'view':_0x48a849=>({'name':_0x316c('0x6')+_0x48a849,'group':'revision-suggestion'}),'converterPriority':'highest'}),this[_0x316c('0x4a')]['conversion'][_0x316c('0x78')](_0x316c('0x103'))[_0x316c('0xc9')]({'model':_0x316c('0x82'),'view':_0x9b942e=>{const _0x515b13=_0x9b942e[_0x316c('0x5b')][_0x316c('0x70')](':')[0x1];return _0x316c('0xe6')!=_0x515b13&&_0x316c('0x4b')!=_0x515b13?null:{'classes':[_0x316c('0xe1'),_0x316c('0x1c')+_0x515b13]};}}),this[_0x316c('0x4a')]['editing'][_0x316c('0x120')]['on']('addMarker:revision-suggestion:deletion',et(this['editor'],_0x316c('0x10e')),{'priority':_0x316c('0xe7')}),this[_0x316c('0x4a')][_0x316c('0xeb')]['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',et(this['editor'],_0x316c('0x70')),{'priority':_0x316c('0xe7')}),this[_0x316c('0x4a')][_0x316c('0xeb')]['downcastDispatcher']['on'](_0x316c('0x88'),(_0x4a38a7,_0x7ff684,_0x175c15)=>{const _0x3b9d89=_0x175c15[_0x316c('0x67')][_0x316c('0x1')](_0x7ff684[_0x316c('0x5b')]);if(_0x3b9d89)for(const _0x52deb8 of _0x3b9d89)_0x52deb8['is'](_0x316c('0xef'))&&(_0x175c15[_0x316c('0x67')][_0x316c('0xe0')](_0x52deb8,_0x7ff684[_0x316c('0x5b')]),_0x175c15[_0x316c('0x20')][_0x316c('0xf6')](_0x52deb8));},{'priority':_0x316c('0xe7')});}[_0x316c('0xaf')](_0x39e0bc){return this['_changeIdToChange']['get'](_0x39e0bc);}['_getViewForChange'](_0x4feae4){return this[_0x316c('0xd6')]&&this[_0x316c('0xd6')]['destroy'](),this[_0x316c('0xd6')]=new _0x24da1b(this['editor'][_0x316c('0x9c')],_0x4feae4),this[_0x316c('0xd6')];}[_0x316c('0x8c')](){this['editor'][_0x316c('0x10d')][_0x316c('0xc0')][_0x316c('0x12a')][_0x316c('0x36')](_0x316c('0x4')),this['on'](_0x316c('0x11d'),(_0x1688d9,_0x5c5446,_0xe52f90,_0x3053a0)=>{_0x3053a0&&this[_0x316c('0xdc')]['remove'](_0x3053a0),_0xe52f90&&(this['_balloon'][_0x316c('0xd7')]({'view':_0xe52f90,'stackId':_0x316c('0x9d'),'position':{'target':()=>{const _0xc845dd=this[_0x316c('0x4a')][_0x316c('0xeb')],_0x1d1c7f=this[_0x316c('0xaf')](_0xe52f90[_0x316c('0x111')]);let _0x10987b;if(_0x1d1c7f[_0x316c('0x124')][_0x316c('0x22')]){const _0x3b167e=_0xc845dd[_0x316c('0xe5')]['getDomRoot'](_0x1d1c7f[_0x316c('0x11e')]);_0x10987b=Array[_0x316c('0xae')](_0x3b167e[_0x316c('0xa3')]());}else{const _0x580184=this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x101')]['get']('revision:'+_0xe52f90['changeId']);_0x10987b=Array[_0x316c('0xae')](_0xc845dd[_0x316c('0x67')]['markerNameToElements'](_0x580184['name']))[_0x316c('0xb6')](_0xb0078=>_0xc845dd[_0x316c('0xe5')][_0x316c('0x2c')]['mapViewToDom'](_0xb0078))['map'](_0x1b093b=>Array[_0x316c('0xae')](_0x1b093b[_0x316c('0xa3')]()))[_0x316c('0x6b')]();}if(!this[_0x316c('0x13')])return _0x10987b[0x0];return _0x10987b[_0x316c('0xbe')](_0x1a00e9=>_0x1a00e9[_0x316c('0x127')]-0x3<=this[_0x316c('0x13')]['y']&&_0x1a00e9['bottom']+0x3>=this[_0x316c('0x13')]['y']&&_0x1a00e9[_0x316c('0x3b')]-0x3<=this[_0x316c('0x13')]['x']&&_0x1a00e9[_0x316c('0xb7')]+0x3>=this[_0x316c('0x13')]['x'])||_0x10987b[0x0];}}}),this[_0x316c('0xdc')][_0x316c('0xc3')](_0x316c('0x9d')));}),this['on'](_0x316c('0xa8'),(_0x4a2a4d,_0x4b87ae,_0x1f560d,_0x18c316)=>{this[_0x316c('0xb1')]=_0x1f560d?this[_0x316c('0x102')](_0x1f560d):null,this[_0x316c('0x4a')]['model'][_0x316c('0x104')](()=>{const _0x4a594d=this[_0x316c('0x4a')][_0x316c('0xeb')];_0x18c316&&(_0x18c316['data']['isOnRoot']?_0x4a594d[_0x316c('0xe5')][_0x316c('0x104')](_0x79b996=>{_0x79b996[_0x316c('0x75')]('ck-revision-history-root--active',_0x4a594d[_0x316c('0xe5')][_0x316c('0xc0')][_0x316c('0x56')](_0x18c316[_0x316c('0x11e')]));}):_0x4a594d[_0x316c('0x3f')](_0x316c('0x3d')+_0x18c316['id'])),_0x1f560d&&(_0x1f560d['data']['isOnRoot']?_0x4a594d['view'][_0x316c('0x104')](_0x20e7e7=>{_0x20e7e7[_0x316c('0x35')]('ck-revision-history-root--active',_0x4a594d['view'][_0x316c('0xc0')][_0x316c('0x56')](_0x1f560d['rootName']));}):_0x4a594d['reconvertMarker']('revision:'+_0x1f560d['id']));});}),this[_0x316c('0xde')](this['editor'][_0x316c('0xeb')][_0x316c('0xe5')]['document'],_0x316c('0x126'),(_0x46e2e3,_0x10deed)=>{if(this[_0x316c('0x37')])return;const _0x3cec21=this[_0x316c('0x92')](_0x10deed[_0x316c('0x83')]),_0x5cb142=this[_0x316c('0xce')][_0x316c('0xb2')](_0x3cec21);_0x5cb142?(this[_0x316c('0x13')]={'x':_0x10deed[_0x316c('0x5a')]['x'],'y':_0x10deed[_0x316c('0x5a')]['y']},this['activeView']=this[_0x316c('0x102')](_0x5cb142)):(this['_activeViewTarget']=null,this[_0x316c('0xb1')]=null);}),this['listenTo'](this[_0x316c('0x4a')][_0x316c('0xeb')]['view'][_0x316c('0xc0')],_0x316c('0x128'),(_0x2331e8,_0x57fc07)=>{const _0x572596=this[_0x316c('0x92')](_0x57fc07['target']),_0x270522=this[_0x316c('0xce')][_0x316c('0xb2')](_0x572596);_0x270522?(this['_activeViewTarget']={'x':_0x57fc07[_0x316c('0x5a')]['x'],'y':_0x57fc07[_0x316c('0x5a')]['y']},_0x270522===this[_0x316c('0x37')]?this[_0x316c('0xdc')][_0x316c('0x4c')]():this['activeChange']=_0x270522):(this[_0x316c('0x13')]=null,this[_0x316c('0x37')]=null);});}[_0x316c('0x92')](_0x3322c8){do{const _0x48914f=_0x3322c8[_0x316c('0x2')](_0x316c('0x57'));if(_0x48914f)return _0x48914f;_0x3322c8=_0x3322c8[_0x316c('0xdf')];}while(_0x3322c8);return null;}['_cleanMarkers'](){this[_0x316c('0x4a')][_0x316c('0x10d')][_0x316c('0x104')](_0x38c6a5=>{for(const _0x2fe6fd of this[_0x316c('0x4a')][_0x316c('0x10d')]['markers'])_0x38c6a5[_0x316c('0x66')](_0x2fe6fd);});}}function et(_0xe6049a,_0x1e3063){return(_0x3d3361,_0x118f59,_0x2a3a99)=>{if(!_0x2a3a99[_0x316c('0x9a')][_0x316c('0x117')](_0x118f59[_0x316c('0x63')],_0x3d3361[_0x316c('0x11')]))return;const _0x13f807=_0x118f59['markerRange'][_0x316c('0xcf')](),_0x32208a=_0x118f59[_0x316c('0x63')][_0x316c('0x33')],_0x16c109=_0xe6049a['model']['schema'];let _0x52c0f4=null,_0x477ca5=null,_0x4a59fa=!0x1,_0x18a946=!0x1;for(const _0x17c3f6 of _0x13f807){const _0x58a9de=_0x17c3f6[_0x316c('0x38')];_0x4a59fa=_0x4a59fa||_0x16c109['isContent'](_0x58a9de);const _0x2b7e80=_0x2a3a99['mapper'][_0x316c('0x121')](_0x58a9de);if(_0x2b7e80&&_0x2b7e80[_0x316c('0x1f')](_0x316c('0x12b')))return;_0x316c('0x10a')==_0x17c3f6[_0x316c('0xa4')]&&(_0x16c109[_0x316c('0xc')](_0x58a9de)&&!_0x16c109['isLimit'](_0x58a9de)&&(_0x58a9de[_0x316c('0x90')]||_0x32208a['isAtEnd']?_0x52c0f4&&_0x52c0f4[_0x316c('0xdf')]==_0x58a9de||(_0x52c0f4=_0x58a9de,_0xdba50c(_0x17c3f6[_0x316c('0x109')]),_0x18a946=!0x0):_0x477ca5=_0x477ca5||_0x17c3f6[_0x316c('0x109')]));}function _0xdba50c(_0x386eff){const _0x61fb32=_0x2a3a99['mapper'][_0x316c('0xd')](_0x386eff),_0x21ce76=_0x2a3a99[_0x316c('0x20')][_0x316c('0xcb')](_0x316c('0x74'),{'class':'ck-suggestion-preview-marker-'+_0x1e3063});_0x2a3a99[_0x316c('0x20')]['insert'](_0x61fb32,_0x21ce76),_0x2a3a99[_0x316c('0x67')][_0x316c('0xb5')](_0x21ce76,_0x118f59[_0x316c('0x5b')]);}_0x4a59fa||_0x18a946||!_0x477ca5||_0xdba50c(_0x477ca5);};}export class RestoreRevisionCommand extends _0x3ee5c9{constructor(_0x43ff71){super(_0x43ff71);const _0x3c00ba=_0x43ff71[_0x316c('0x9')][_0x316c('0xb2')](d);this[_0x316c('0x5')]=!0x1,this['listenTo'](_0x3c00ba,_0x316c('0x6f'),()=>this[_0x316c('0x96')]()),this[_0x316c('0xde')](_0x3c00ba,'change:isEnabled',()=>this[_0x316c('0x96')]());}[_0x316c('0x98')](){const _0x1fba0f=this['editor'],_0x285736=_0x1fba0f[_0x316c('0x9')][_0x316c('0xb2')](d),_0x162de7=_0x285736[_0x316c('0xd1')]?_0x285736[_0x316c('0x72')]['newRevisionId']:null;_0x1fba0f[_0x316c('0xdd')][_0x316c('0xb2')](_0x316c('0x118'))[_0x316c('0xa')](_0x162de7);}[_0x316c('0x96')](){const {isReady:_0x1155df,isEnabled:_0x2bdea8}=this[_0x316c('0x4a')][_0x316c('0x9')]['get'](d);this[_0x316c('0xb9')]=_0x1155df&&_0x2bdea8;}}export class ShowChangeCommand extends _0x3ee5c9{constructor(_0x4b3718,{direction:_0x469d13}){super(_0x4b3718);const _0x540a5c=_0x4b3718[_0x316c('0x9')][_0x316c('0xb2')](d);this['affectsData']=!0x1,this[_0x316c('0x54')]=_0x316c('0x107')===_0x469d13?0x1:-0x1,this[_0x316c('0xde')](_0x540a5c,'change:isReady',()=>this[_0x316c('0x96')]()),this[_0x316c('0xde')](_0x540a5c,_0x316c('0x10c'),()=>this[_0x316c('0x96')]()),this[_0x316c('0xde')](_0x540a5c,_0x316c('0xa8'),()=>this[_0x316c('0x96')]());}[_0x316c('0x98')](){const _0x14657f=this[_0x316c('0x4a')],_0x25271b=_0x14657f['plugins']['get'](d),{isNavigationMode:_0x5a0955,currentChangeNumber:_0x226ae8}=_0x25271b;let _0x2ceaf4;if(_0x25271b[_0x316c('0x37')]=_0x5a0955?_0x25271b[_0x316c('0x72')][_0x316c('0xb3')][_0x316c('0xb2')](_0x226ae8+this['_step']):_0x25271b[_0x316c('0x72')]['changes'][_0x316c('0xda')],_0x25271b[_0x316c('0x37')]['data']['isOnRoot'])_0x2ceaf4=_0x14657f[_0x316c('0xeb')][_0x316c('0xe5')][_0x316c('0xed')](_0x25271b[_0x316c('0x37')][_0x316c('0x11e')]);else{const _0x321640=_0x14657f[_0x316c('0x10d')][_0x316c('0x101')][_0x316c('0xb2')](_0x316c('0x3d')+_0x25271b[_0x316c('0x37')]['id']);_0x2ceaf4=_0x1ddec9(_0x14657f[_0x316c('0xeb')],_0x321640);}_0x1d92ac({'target':_0x2ceaf4,'viewportOffset':0x28});}[_0x316c('0x96')](){const {isNavigationMode:_0x11c20f,currentChangeNumber:_0x5619ce,numberOfChanges:_0x41c438,isReady:_0x1d2948,isEnabled:_0x3e444d}=this[_0x316c('0x4a')][_0x316c('0x9')][_0x316c('0xb2')](d);this['isEnabled']=!!(_0x3e444d&&_0x1d2948&&_0x41c438)&&(!_0x11c20f||(0x1===this[_0x316c('0x54')]?_0x5619ce<_0x41c438-0x1:_0x5619ce>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ccd=['threeVerticalDots','set','class','children','find','ck-revision-history-sidebar__revision__actions','button','add','Show\x20more\x20items','isEnabled','first','items','function','bind','isActionsDropdownOpen','ck-on','map','source','name','stopPropagation','extendTemplate','bindTemplate','execute','listenTo','action','isReady','_action','isVisible'];(function(_0x161065,_0x5ccdb6){const _0x50fe98=function(_0x47b363){while(--_0x47b363){_0x161065['push'](_0x161065['shift']());}};_0x50fe98(++_0x5ccdb6);}(_0x5ccd,0xc0));const _0x50fe=function(_0x161065,_0x5ccdb6){_0x161065=_0x161065-0x0;let _0x50fe98=_0x5ccd[_0x161065];return _0x50fe98;};import{Collection as _0x451d53}from'ckeditor5/src/utils';import{icons as _0x50e4ef}from'ckeditor5/src/core';import{Model as _0x4b7fb4,addListToDropdown as _0x528fae,createDropdown as _0x4898b1}from'ckeditor5/src/ui';import{getTranslation as _0x48d9db}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x54e404,_0x3a9429){const _0x12ad3e=_0x54e404[_0x50fe('0x19')],_0x4e3467=_0x54e404['locale'],_0x1ffaec=_0x4898b1(_0x4e3467);_0x1ffaec['panelPosition']='sw';const _0x3ff307=function(_0x2f7365,_0x50c3b){const _0x7d45bb=function(_0x381a2f,_0x380635){const _0x271af2=_0x381a2f['locale'],_0x214abe={'Compare\x20against\x20selected':_0x48d9db(_0x271af2,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x48d9db(_0x271af2,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x48d9db(_0x271af2,'Restore\x20this\x20revision')};return _0x380635[_0x50fe('0x14')](_0xfbe4ea=>{const _0x43d649=_0x214abe[_0xfbe4ea[_0x50fe('0x16')]];return _0x43d649&&_0x43d649!==_0xfbe4ea['name']&&(_0xfbe4ea[_0x50fe('0x16')]=_0x43d649),_0xfbe4ea;});}(_0x2f7365,_0x50c3b),_0x19541d=new _0x451d53();for(const _0x528e5a of _0x7d45bb){const _0x44aac9={'type':_0x50fe('0xa'),'model':new _0x4b7fb4({'label':_0x528e5a[_0x50fe('0x16')],'class':_0x528e5a[_0x50fe('0x6')],'withText':!0x0,'_action':_0x528e5a[_0x50fe('0x0')]})};_0x44aac9['model'][_0x50fe('0x11')](_0x50fe('0xd'))['to'](_0x2f7365,_0x50fe('0x12'),_0x5d409e=>_0x50fe('0x10')!=typeof _0x528e5a[_0x50fe('0xd')]||(!_0x5d409e||_0x528e5a[_0x50fe('0xd')](_0x2f7365))),_0x19541d[_0x50fe('0xb')](_0x44aac9);}return _0x19541d;}(_0x54e404,_0x3a9429);return _0x54e404[_0x50fe('0x11')]('isActionsDropdownOpen')['to'](_0x1ffaec,'isOpen'),_0x1ffaec['buttonView'][_0x50fe('0x5')]({'label':_0x48d9db(_0x4e3467,_0x50fe('0xc')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x50e4ef[_0x50fe('0x4')]}),_0x1ffaec[_0x50fe('0x18')]({'attributes':{'class':[_0x50fe('0x9'),_0x12ad3e['if'](_0x50fe('0x12'),_0x50fe('0x13'))]},'on':{'click':_0x12ad3e['to'](_0x3535f4=>_0x3535f4[_0x50fe('0x17')]())}}),_0x1ffaec['on'](_0x50fe('0x1a'),_0x3f0cfd=>{_0x54e404[_0x50fe('0x1')]&&_0x50fe('0x10')==typeof _0x3f0cfd['source'][_0x50fe('0x2')]&&_0x3f0cfd[_0x50fe('0x15')][_0x50fe('0x2')](_0x54e404);}),_0x528fae(_0x1ffaec,_0x3ff307),_0x1ffaec[_0x50fe('0x1b')](_0x54e404,'change:isActionsDropdownOpen',(_0x5ee0f1,_0xcfde0f,_0x10fe05)=>{if(_0x10fe05)for(const _0x3a7f8f of _0x1ffaec['listView'][_0x50fe('0xf')]){const _0x42495e=_0x3a7f8f[_0x50fe('0x7')][_0x50fe('0xe')],_0x228ad7=_0x3a9429[_0x50fe('0x8')](_0x568190=>_0x568190[_0x50fe('0x0')]===_0x42495e[_0x50fe('0x2')])[_0x50fe('0x3')];_0x3a7f8f[_0x50fe('0x3')]=void 0x0===_0x228ad7||_0x228ad7(_0x54e404);}}),_0x1ffaec;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdffa=['Revision\x20creator','set','setTemplate','name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator','push','ck-revision-history-sidebar__revision-author__name','Revision\x20author'];(function(_0x4ff67f,_0xdffada){const _0x252127=function(_0x30d511){while(--_0x30d511){_0x4ff67f['push'](_0x4ff67f['shift']());}};_0x252127(++_0xdffada);}(_0xdffa,0x1b4));const _0x2521=function(_0x4ff67f,_0xdffada){_0x4ff67f=_0x4ff67f-0x0;let _0x252127=_0xdffa[_0x4ff67f];return _0x252127;};import{View as _0x4764e0,IconView as _0x4fdc57}from'ckeditor5/src/ui';import{getTranslation as _0x33f414}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x2d42d0 from'../../../theme/icons/user.svg';export default class ti extends _0x4764e0{constructor(_0x2cfcc6,_0x5a6cc2,_0x54948a){super(_0x2cfcc6);const _0x511e79=new _0x4fdc57();_0x511e79[_0x2521('0x6')]({'content':_0x2d42d0,'viewBox':_0x2521('0x0')});const _0x207e5b=['ck','ck-revision-history-sidebar__revision-author'];_0x54948a&&_0x207e5b[_0x2521('0x2')](_0x2521('0x1'));const _0x252bcd=[{'tag':'span','attributes':{'class':['ck',_0x2521('0x3')],'title':_0x33f414(_0x2cfcc6,_0x54948a?_0x2521('0x5'):_0x2521('0x4'))},'children':[_0x511e79,_0x5a6cc2[_0x2521('0x8')]]}];this[_0x2521('0x7')]({'tag':'li','attributes':{'class':_0x207e5b},'children':_0x252bcd});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3cad=['span','set','Revision\x20name','extendTemplate'];(function(_0x577c72,_0x3cad3e){var _0x536c22=function(_0x2d1821){while(--_0x2d1821){_0x577c72['push'](_0x577c72['shift']());}};_0x536c22(++_0x3cad3e);}(_0x3cad,0x1d3));var _0x536c=function(_0x577c72,_0x3cad3e){_0x577c72=_0x577c72-0x0;var _0x536c22=_0x3cad[_0x577c72];return _0x536c22;};import{LabeledFieldView as _0x3cf833}from'ckeditor5/src/ui';import{getTranslation as _0x1d88f5}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x3cf833{constructor(_0x8a1968,_0x12565e){super(_0x8a1968,_0x12565e),this[_0x536c('0x2')]({'label':_0x1d88f5(_0x8a1968,_0x536c('0x3'))}),this[_0x536c('0x0')]({'tag':_0x536c('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b96=['isHighlighted','ck-revision-history-sidebar__revision_selected','srcElement','element','value','setName','220','length','name','creator','bind','change','unshift','_createdAtFormatted','fieldView','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__actions_dropdown_open','fire','_revision','isSelected','select','createdAt','map','isEnabled','render','isConfirm','listenTo','isActionsDropdownOpen','div','closest','placeholder','ck-reset','ck-revision-history-sidebar__revision_highlighted','authors','ck-revision-history-sidebar__revision__date','revisionNameView','setTemplate','set','ck-revision-history-sidebar__revision__controls-wrapper','ck-revision-history-sidebar__revision-authors','ck-disabled','revisionActionsView','ck-revision-history-sidebar__revision-wrapper'];(function(_0x4e8e53,_0x4b9682){const _0x3b80d4=function(_0x13f42f){while(--_0x13f42f){_0x4e8e53['push'](_0x4e8e53['shift']());}};_0x3b80d4(++_0x4b9682);}(_0x4b96,0x1ae));const _0x3b80=function(_0x4e8e53,_0x4b9682){_0x4e8e53=_0x4e8e53-0x0;let _0x3b80d4=_0x4b96[_0x4e8e53];return _0x3b80d4;};import{View as _0x2d2170,createLabeledInputText as _0x19715c}from'ckeditor5/src/ui';import{ConfirmMixin as _0x59f7df}from'ckeditor5-collaboration/src/collaboration-core';import _0x1be261 from'./revisionnameview';import _0x5ac66c from'./revisionauthorview';import{dateToPrettyFormat as _0x5a710c}from'./utils';import{createActionsDropdownView as _0x5f04c5}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x59f7df(_0x2d2170){constructor(_0x35e2b5,_0x19dc0d,_0x4338f7){super(_0x35e2b5);const _0x25916e=this['bindTemplate'],_0x4b8958=function(_0x3ed0ac,_0x5766f9){const _0x510d20=Array['from'](_0x5766f9[_0x3b80('0x21')])['filter'](_0x219ec9=>_0x219ec9!=_0x5766f9['creator']);return _0x5766f9['creator']&&_0x510d20[_0x3b80('0xc')](_0x5766f9[_0x3b80('0x9')]),_0x510d20[_0x3b80('0x16')](_0x1ac01d=>new _0x5ac66c(_0x3ed0ac,_0x1ac01d,_0x1ac01d==_0x5766f9[_0x3b80('0x9')]));}(_0x35e2b5,_0x19dc0d);this['id']=_0x19dc0d['id'],this[_0x3b80('0x12')]=_0x19dc0d,this[_0x3b80('0xa')]('name',_0x3b80('0x15'))['to'](_0x19dc0d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2b1907=>_0x2b1907?_0x5a710c(_0x35e2b5['uiLanguage'],_0x2b1907):void 0x0),this[_0x3b80('0x25')](_0x3b80('0x13'),!0x1),this['set']('isHighlighted',!0x1),this[_0x3b80('0x25')]('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this[_0x3b80('0x25')](_0x3b80('0x17'),!0x1),this[_0x3b80('0x23')]=new _0x1be261(_0x35e2b5,_0x19715c),this[_0x3b80('0x23')][_0x3b80('0xe')]['extendTemplate']({'attributes':{'maxlength':_0x3b80('0x6')}}),this[_0x3b80('0x23')][_0x3b80('0xe')][_0x3b80('0xa')](_0x3b80('0x4'),_0x3b80('0x1e'))['to'](this,_0x3b80('0x8'),_0x3b80('0xd')),this[_0x3b80('0x23')][_0x3b80('0xa')](_0x3b80('0x17'))['to'](this,_0x3b80('0x13'),this,_0x3b80('0x17'),(_0x38ccaf,_0x4c1b7d)=>_0x38ccaf&&_0x4c1b7d),this[_0x3b80('0x29')]=_0x4338f7&&_0x4338f7[_0x3b80('0x7')]?_0x5f04c5(this,_0x4338f7):'',this['revisionActionsView']&&this[_0x3b80('0x29')][_0x3b80('0xa')](_0x3b80('0x17'))['to'](this),this[_0x3b80('0x24')]({'tag':_0x3b80('0x1c'),'attributes':{'class':['ck',_0x3b80('0x1f'),_0x3b80('0x2a'),_0x25916e['if'](_0x3b80('0x19'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x3b80('0x1c'),'attributes':{'class':['ck',_0x3b80('0x1f'),_0x3b80('0xf'),_0x25916e['if'](_0x3b80('0x17'),_0x3b80('0x28'),_0x5b4fe8=>!_0x5b4fe8),_0x25916e['if'](_0x3b80('0x13'),_0x3b80('0x1')),_0x25916e['if'](_0x3b80('0x0'),_0x3b80('0x20')),_0x25916e['if'](_0x3b80('0x1b'),_0x3b80('0x10'))]},'children':[this[_0x3b80('0x23')],{'tag':'span','attributes':{'class':['ck',_0x3b80('0x22')]},'children':[{'text':_0x25916e['to'](_0x3b80('0xd'))}]},{'tag':'div','attributes':{'class':['ck',_0x3b80('0x26')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3b80('0x27')]},'children':_0x4b8958}]},this[_0x3b80('0x29')]],'on':{'click':_0x25916e['to'](_0x7edecc=>{_0x7edecc[_0x3b80('0x2')][_0x3b80('0x1d')]('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire'](_0x3b80('0x14'),{'id':this['id']});})}}]});}[_0x3b80('0x18')](){super[_0x3b80('0x18')]();const _0x15d44e=this[_0x3b80('0x23')][_0x3b80('0xe')][_0x3b80('0x3')];this[_0x3b80('0x1a')](_0x15d44e,_0x3b80('0xb'),()=>{this[_0x3b80('0x11')](_0x3b80('0x5'),{'id':this['id'],'name':_0x15d44e[_0x3b80('0x4')]});});}[_0x3b80('0x14')](){this[_0x3b80('0x13')]=!0x0;}['deselect'](){this[_0x3b80('0x13')]=!0x1;}['highlight'](){this[_0x3b80('0x0')]=!0x0;}['unhighlight'](){this[_0x3b80('0x0')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x282b=['bindTemplate','button','set','setTemplate','click','ck-hidden','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner','false','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','true','isVisible'];(function(_0x58471f,_0x282bcb){const _0x5c64a2=function(_0x5394d7){while(--_0x5394d7){_0x58471f['push'](_0x58471f['shift']());}};_0x5c64a2(++_0x282bcb);}(_0x282b,0x1d7));const _0x5c64=function(_0x58471f,_0x282bcb){_0x58471f=_0x58471f-0x0;let _0x5c64a2=_0x282b[_0x58471f];return _0x5c64a2;};import{View as _0x9c5c4}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x9c5c4{constructor(_0x3db81e){super(_0x3db81e);const _0x37be3a=this[_0x5c64('0xa')];this[_0x5c64('0xc')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5c64('0x0')]({'tag':'span','attributes':{'class':['ck',_0x5c64('0x6'),_0x37be3a['if'](_0x5c64('0x9'),_0x5c64('0x2'),_0x6afc90=>!_0x6afc90),_0x37be3a['if']('_isCollapsed',_0x5c64('0x3'))],'role':_0x5c64('0xb'),'aria-pressed':_0x37be3a['to'](_0x5c64('0x7'),_0x336473=>_0x336473?_0x5c64('0x5'):_0x5c64('0x8'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x5c64('0x4')]}}],'on':{'click':_0x37be3a['to'](_0x5c64('0x1'))}});}['toggle'](){this[_0x5c64('0x7')]=!this[_0x5c64('0x7')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d72=['creator','deselect','div','ck-revision-history-sidebar__subrevision','bind','createdAt','span','_parentRevisionId','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','_createdAtFormatted','fire','uiLanguage','isSelected'];(function(_0x49d346,_0x1d726a){const _0x1fc86a=function(_0x29094b){while(--_0x29094b){_0x49d346['push'](_0x49d346['shift']());}};_0x1fc86a(++_0x1d726a);}(_0x1d72,0x19a));const _0x1fc8=function(_0x49d346,_0x1d726a){_0x49d346=_0x49d346-0x0;let _0x1fc86a=_0x1d72[_0x49d346];return _0x1fc86a;};import{View as _0x2e47a3}from'ckeditor5/src/ui';import _0x5d0529 from'./revisionauthorview';import{dateToPrettyFormat as _0x49307f}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2e47a3{constructor(_0x31e3f9,_0x5e57e3,_0x4f863e){super(_0x31e3f9);const _0x3cc009=this['bindTemplate'];this['id']=_0x5e57e3['id'],this[_0x1fc8('0xe')](_0x1fc8('0x0'))['to'](_0x5e57e3),this['set'](_0x1fc8('0x9'),!0x1),this[_0x1fc8('0xe')](_0x1fc8('0x6'))['to'](this,'createdAt',_0x346a95=>_0x346a95?_0x49307f(_0x31e3f9[_0x1fc8('0x8')],_0x346a95):void 0x0),this[_0x1fc8('0x2')]=_0x4f863e,this['setTemplate']({'tag':_0x1fc8('0xc'),'attributes':{'class':['ck','ck-reset',_0x1fc8('0x4'),_0x1fc8('0xd'),_0x3cc009['if']('isSelected',_0x1fc8('0x3'))]},'children':[{'tag':_0x1fc8('0x1'),'attributes':{'class':['ck',_0x1fc8('0x5')]},'children':[{'text':_0x3cc009['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x5d0529(_0x31e3f9,_0x5e57e3[_0x1fc8('0xa')],!0x0)]}],'on':{'click':_0x3cc009['to'](this['select'][_0x1fc8('0xe')](this))}});}['select'](){this[_0x1fc8('0x9')]=!0x0,this[_0x1fc8('0x7')]('select',{'parentId':this[_0x1fc8('0x2')]});}[_0x1fc8('0xb')](){this[_0x1fc8('0x9')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1de0=['toLocaleDateString','numeric'];(function(_0x9d051a,_0x1de079){var _0x351472=function(_0x11973a){while(--_0x11973a){_0x9d051a['push'](_0x9d051a['shift']());}};_0x351472(++_0x1de079);}(_0x1de0,0x8d));var _0x3514=function(_0x9d051a,_0x1de079){_0x9d051a=_0x9d051a-0x0;var _0x351472=_0x1de0[_0x9d051a];return _0x351472;};export function dateToPrettyFormat(_0x4c8c8e,_0xc9886f){return _0xc9886f[_0x3514('0x1')](_0x4c8c8e,{'month':'long','day':'numeric'})+',\x20'+_0xc9886f['toLocaleTimeString'](_0x4c8c8e,{'hour':_0x3514('0x0'),'minute':_0x3514('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a79=['check','focusTracker','forEach','revisionName','cancelButtonView','arrowup','submit','_createButton','_focusables','extendTemplate','stopPropagation','focusFirst','Name\x20of\x20the\x20revision\x20(optional)','ck-responsive-form','setTemplate','cancel','revisionNameInputView','_focusCycler','value','set','keystrokes','arrowdown','locale','focus','type','form','arrowright','ck-button-save','Save','render','fieldView','saveButtonView','_createRevisionNameInput','element','ck-button-cancel','220','ck-revision-history-save-revision-form','add','trim','revisionNameInputValue','tab','label'];(function(_0x520f6a,_0x3a79aa){const _0x493fdf=function(_0x4ef1bb){while(--_0x4ef1bb){_0x520f6a['push'](_0x520f6a['shift']());}};_0x493fdf(++_0x3a79aa);}(_0x3a79,0x1bd));const _0x493f=function(_0x520f6a,_0x3a79aa){_0x520f6a=_0x520f6a-0x0;let _0x493fdf=_0x3a79[_0x520f6a];return _0x493fdf;};import{icons as _0x22a66c}from'ckeditor5/src/core';import{ButtonView as _0x4447fd,FocusCycler as _0x38e16d,LabeledFieldView as _0x59111b,View as _0x14c0cd,ViewCollection as _0x289dac,createLabeledInputText as _0x1f2603,injectCssTransitionDisabler as _0x237f0b,submitHandler as _0x6a2413}from'ckeditor5/src/ui';import{FocusTracker as _0x4fda7a,KeystrokeHandler as _0x34f6ba}from'ckeditor5/src/utils';import{getTranslation as _0x519cfe}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x14c0cd{constructor(_0x2ed740){super(_0x2ed740),this[_0x493f('0x12')]=new _0x4fda7a(),this[_0x493f('0x25')]=new _0x34f6ba(),this[_0x493f('0x24')](_0x493f('0xe'),''),this[_0x493f('0x21')]=this[_0x493f('0x7')](),this[_0x493f('0x6')]=this[_0x493f('0x18')](_0x519cfe(_0x2ed740,_0x493f('0x3')),_0x22a66c[_0x493f('0x11')],_0x493f('0x2')),this[_0x493f('0x6')][_0x493f('0x29')]=_0x493f('0x17'),this[_0x493f('0x15')]=this['_createButton'](_0x519cfe(_0x2ed740,'Cancel'),_0x22a66c['cancel'],_0x493f('0x9'),_0x493f('0x20')),this[_0x493f('0x19')]=new _0x289dac(),this[_0x493f('0x22')]=new _0x38e16d({'focusables':this[_0x493f('0x19')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x493f('0x25')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x493f('0xf')}}),this[_0x493f('0x1f')]({'tag':_0x493f('0x0'),'attributes':{'class':['ck',_0x493f('0xb'),_0x493f('0x1e')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x493f('0x6')],this[_0x493f('0x15')]]}),_0x237f0b(this);}[_0x493f('0x4')](){super[_0x493f('0x4')](),_0x6a2413({'view':this}),([this['revisionNameInputView'],this[_0x493f('0x6')],this[_0x493f('0x15')]][_0x493f('0x13')](_0x2e40e4=>{this['_focusables']['add'](_0x2e40e4),this[_0x493f('0x12')][_0x493f('0xc')](_0x2e40e4[_0x493f('0x8')]);}),this[_0x493f('0x25')]['listenTo'](this[_0x493f('0x8')]));const _0x1aea29=_0x3a46f0=>_0x3a46f0[_0x493f('0x1b')]();this[_0x493f('0x25')][_0x493f('0x24')](_0x493f('0x1'),_0x1aea29),this[_0x493f('0x25')][_0x493f('0x24')]('arrowleft',_0x1aea29),this[_0x493f('0x25')][_0x493f('0x24')](_0x493f('0x16'),_0x1aea29),this[_0x493f('0x25')][_0x493f('0x24')](_0x493f('0x26'),_0x1aea29);}[_0x493f('0x28')](){this[_0x493f('0x22')][_0x493f('0x1c')]();}get[_0x493f('0x14')](){return this[_0x493f('0x21')]['fieldView']['element'][_0x493f('0x23')][_0x493f('0xd')]();}set[_0x493f('0x14')](_0x337d90){this[_0x493f('0x21')][_0x493f('0x5')][_0x493f('0x8')][_0x493f('0x23')]=_0x337d90['trim']();}['reset'](){this[_0x493f('0x21')][_0x493f('0x5')][_0x493f('0x8')][_0x493f('0x23')]='';}[_0x493f('0x7')](){const _0x5ce176=new _0x59111b(this[_0x493f('0x27')],_0x1f2603),_0x3a3e94=_0x5ce176[_0x493f('0x5')];return _0x3a3e94[_0x493f('0x1a')]({'attributes':{'maxlength':_0x493f('0xa')}}),_0x5ce176[_0x493f('0x10')]=_0x519cfe(this[_0x493f('0x27')],_0x493f('0x1d')),_0x3a3e94['on']('input',()=>{this[_0x493f('0xe')]=_0x3a3e94[_0x493f('0x8')][_0x493f('0x23')][_0x493f('0xd')]();}),_0x5ce176;}[_0x493f('0x18')](_0x9ba289,_0x33bf8d,_0x237df9,_0x269454){const _0x1447d9=new _0x4447fd(this[_0x493f('0x27')]);return _0x1447d9[_0x493f('0x24')]({'label':_0x9ba289,'icon':_0x33bf8d,'tooltip':!0x0}),_0x1447d9[_0x493f('0x1a')]({'attributes':{'class':_0x237df9}}),_0x269454&&_0x1447d9['delegate']('execute')['to'](this,_0x269454),_0x1447d9;}}
|