@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230901.0 → 0.0.0-nightly-20230902.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 _0xc3ad=['restoreRevisionCallback','removeMarker:revision','detachRoot','all','revision-suggestion','set','data-change-id','removeAttribute','change','stop','uiElement','activeChange','_removeMissingPairs','isAtStart','editingDowncast','domConverter','document','splice','_cleanUp','attribute:vid','modelRange','changeId','forceDisabled','activeView','writer','element:pre','_markMarkers','pluginName','parse','left','ck-revision-history-root-remove','indexOf','_markInsertions','map','insertions','data-revision-','includes','ck-suggestion-preview-marker','getCustomProperty','data','mousedown','isNavigationMode','addRevisionData','refresh','_setChanges','revision-start','_makeTape','right','addMarker:revision-suggestion:deletion','addRevision','_getViewForChange','toModel','high','currentChangeNumber','_threeWayMerge','createPositionFromPath','ck-revision-history-root--active','-new','change:isEnabled','viewItem','oldRevisionId','isAfter','marked','getRoot','nextSibling','useFillerType','then','hasAttribute','revisionHistoryLabel','getRevision','changes','isObject','getAttribute','hasClass','index','isBefore','maxOffset','authors','showStack','enableReadOnlyMode','toData','model','enqueueChange','createUIElement','parent','clear','addRoot','ck-suggestion-preview-marker-','test','_makeModelFromViewString','mapper','RevisionsRepository','consumable','loadRevisionData','type','getWalker','insertion','RevisionViewer','find','getClientRects','low','filter','_processTape','markerNameToElements','locale','bindElementToMarker','push','editing','pairId','isRemoveSuggestion','_sortAndFilterDiffChanges','_revisions','mouseover','object','isOnRoot','_setDistance','attributesAfter','_balloon','code','_makeModelFromTape','getChild','_markMismatchedRemovedTags','target','toViewPosition','ck-editor__editable__overlay','length','element','change:numberOfChanges','forward','removeClass','getAttributes','nodeAfter','createRangeIn','_getChangeFromId','backward','remove','setAttribute','string','nextPosition','isAddSuggestion','return','shift','ck-suggestion-marker-','checkAttribute','offsetSize','plugins','_activeViewTarget','elementToAttribute','editor','diff','listenTo','ck-revision-history-root-add','toViewElement','processor','addClass','delete','schema','isRemoved','unbindElementFromMarkerName','change:isReady','from','_getViewObj','adapter','getIndex','_cleanMarkers','level','vid_end','markerToData','forEach','attachChange','getRootNames','previousPosition','item','get','selection','resolve','vid','attributes','newRevisionId','distance','end','revision:','isInline','text','getItems','reconvertMarker','next','suggestion','name','merge','init','requires','markers','consume','revision-viewer','elementStart','_getDiff','isAdded','dataToMarker','view','default','side','for','destroy','startsWith','revisionHistoryAttachChange','isAttached','getRevisionData','bind','markerName','_joinTapes','isEnabled','removeMarker','addHighlight','vid_start','revision-comment:','has','_changeIdToChange','diffData','_fixObsoleteTags','range','done','userId','removeMarker:revision-suggestion','updatePosition','concat','deletion','_markSuggestions','isIncorrect','abs','markersEnd','revision','createRange','startIndex','markerRange','markerToHighlight','isContent','_removeUnsupportedChanges','elementEnd','pop','conversion','change:activeChange','isEqual','comment','top','span','unshift','sort','deletions','rootName','_appendChild','getRevisionRootsAttributes','commands','ck-suggestion-marker-split','highest','add','isCollapsed','error','_step','ck-revision-history-root-','_getRevisionsRange','downcastDispatcher','WidgetToolbarRepository','start','addMarker:revision','_removeRevisionMarkers','markersStart','execute','isReady','config','getDomRoot','upcast','_changeView','_update','split','slice','domEvent','isAtEnd','_refreshStartEndIndex','numberOfChanges','attributesBefore','isBlock','endIndex','dataDowncast','mapViewToDom','isSuggestion','_findChangeIdFromDomTarget','_setConversion','isLimit','repository','addMarker:revision-suggestion:insertion','observeMarkers','ck-suggestion-marker--active','insert','keys'];(function(_0x2d9021,_0xc3adff){const _0x492615=function(_0x518f5c){while(--_0x518f5c){_0x2d9021['push'](_0x2d9021['shift']());}};_0x492615(++_0xc3adff);}(_0xc3ad,0x123));const _0x4926=function(_0x2d9021,_0xc3adff){_0x2d9021=_0x2d9021-0x0;let _0x492615=_0xc3ad[_0x2d9021];return _0x492615;};import{Plugin as _0xd2d53,Command as _0x196c82}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x533979}from'ckeditor5/src/utils';import{ContextualBalloon as _0xde5e1f}from'ckeditor5/src/ui';import{DocumentFragment as _0x5a388a,Element as _0x299acf,Text as _0x28af79,ViewDocumentFragment as _0x34df08,ViewText as _0x48cd35,ViewElement as _0x1cda3d,ViewContainerElement as _0x5d9e2e,ViewAttributeElement as _0x442eb4,ViewEmptyElement as _0x3780cc,ViewRawElement as _0x416c35,ViewUIElement as _0x3cd940}from'ckeditor5/src/engine';import{Users as _0x3fa854,getMarkerDomElement as _0x2334ee}from'ckeditor5-collaboration/src/collaboration-core';import _0x4de14f from'./ui/revisionviewer/changedetailsview';import _0xeb89fa from'./revisionsrepository';import _0x26e56f from'./changeitem';import{default as _0x16038d}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x503564}from'lodash-es';const tt={'c':_0x5d9e2e,'a':_0x442eb4,'e':_0x3780cc,'r':_0x416c35,'u':_0x3cd940};export default class d extends _0xd2d53{static get[_0x4926('0x1f')](){return'RevisionViewer';}static get[_0x4926('0xc3')](){return[_0x3fa854,_0xde5e1f,_0xeb89fa];}constructor(_0x103ff9){super(_0x103ff9),this[_0x4926('0x125')]=this['editor'][_0x4926('0x95')][_0x4926('0xb1')](_0x4926('0x5f')),this['set'](_0x4926('0xf'),null),this[_0x4926('0x9')]('activeView',null),this[_0x4926('0x96')]=null,this[_0x4926('0x9')](_0x4926('0x99'),null),this[_0x4926('0x9')](_0x4926('0x110'),!0x1),this['set'](_0x4926('0xd7'),!0x0),this['on'](_0x4926('0x3e'),(_0x558b5f,_0x55e673,_0x2e0b60)=>{this[_0x4926('0xf')]=null,this[_0x4926('0x1b')]=null,this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')][_0x4926('0xc')](_0x12b7fa=>{for(const _0x437255 of this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')][_0x4926('0x14')]['roots'])_0x2e0b60?_0x12b7fa[_0x4926('0x85')](_0x4926('0x80'),_0x437255):_0x12b7fa[_0x4926('0x9e')]('ck-editor__editable__overlay',_0x437255);});}),this[_0x4926('0xd4')](_0x4926('0x2d'))['to'](this,'activeChange',_0x1371f7=>null!==_0x1371f7),this[_0x4926('0xd4')](_0x4926('0x39'))['to'](this,_0x4926('0x110'),this,_0x4926('0x99'),this,_0x4926('0xf'),(_0x35740f,_0x4265e3,_0x3b3d58)=>_0x35740f&&_0x3b3d58?_0x4265e3[_0x4926('0x4a')][_0x4926('0xa7')](_0x3b3d58):0x0),this[_0x4926('0xd4')](_0x4926('0x11b'))['to'](this,'isReady',this,_0x4926('0x99'),(_0x4e581e,_0x4c3af1)=>_0x4e581e?_0x4c3af1[_0x4926('0x4a')][_0x4926('0x81')]:0x0),this[_0x4926('0x114')]=null,this[_0x4926('0xdd')]=new Map(),this[_0x4926('0xa6')]=null,this['_balloon']=this[_0x4926('0x98')][_0x4926('0x95')]['get'](_0xde5e1f);}[_0x4926('0xc2')](){const _0x5be077=this[_0x4926('0x98')],_0x3069ee=new ShowChangeCommand(_0x5be077,{'direction':_0x4926('0x8a')}),_0x2efa38=new ShowChangeCommand(_0x5be077,{'direction':_0x4926('0x84')});(_0x5be077[_0x4926('0x100')][_0x4926('0x103')]('showPreviousChange',_0x3069ee),_0x5be077[_0x4926('0x100')][_0x4926('0x103')]('showNextChange',_0x2efa38),_0x5be077[_0x4926('0x100')]['add']('restoreRevision',new RestoreRevisionCommand(_0x5be077)),this['on'](_0x4926('0x83'),()=>{_0x3069ee[_0x4926('0x2f')](),_0x2efa38['refresh']();}),this[_0x4926('0x123')](),this['_initInteractions'](),_0x5be077[_0x4926('0x53')](_0x4926('0xc6')),_0x5be077[_0x4926('0x95')]['has'](_0x4926('0x10a')))&&_0x5be077[_0x4926('0x95')]['get']('WidgetToolbarRepository')[_0x4926('0x1a')]('revision-viewer');}async[_0x4926('0xd3')](_0x5a9a6d){await this[_0x4926('0x61')](_0x5a9a6d);const _0x5d978d={};for(const _0x4a2444 in _0x5a9a6d['diffData']){if(_0x5a9a6d[_0x4926('0xde')][_0x4a2444]['attachChange']&&!_0x5a9a6d[_0x4926('0xde')][_0x4a2444][_0x4926('0xad')][_0x4926('0xd2')])continue;const _0x5b65ad=this[_0x4926('0x10d')](JSON[_0x4926('0x20')](_0x5a9a6d[_0x4926('0xde')][_0x4a2444][_0x4926('0x26')])),_0x458838=this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')]['document'],_0x2457b6=new _0x34df08(_0x458838,_0x5b65ad['map'](_0x452d88=>this[_0x4926('0xa5')](_0x452d88)));this[_0x4926('0x98')][_0x4926('0x2b')][_0x4926('0x9d')][_0x4926('0x45')](_0x4926('0x42')),_0x5d978d[_0x4a2444]=this['editor'][_0x4926('0x2b')][_0x4926('0x9d')][_0x4926('0x54')](_0x2457b6),this[_0x4926('0x98')]['data'][_0x4926('0x9d')][_0x4926('0x45')](_0x4926('0xcc'));}return _0x5d978d;}async[_0x4926('0xff')](_0x5a0d97){await this['loadRevisionData'](_0x5a0d97);const _0x56f1db={};for(const _0x4e1806 in _0x5a0d97['diffData'])_0x5a0d97[_0x4926('0xde')][_0x4e1806]['attachChange']&&!_0x5a0d97[_0x4926('0xde')][_0x4e1806][_0x4926('0xad')][_0x4926('0xd2')]||(_0x56f1db[_0x4e1806]=_0x5a0d97[_0x4926('0xde')][_0x4e1806][_0x4926('0x78')]||{});return _0x56f1db;}[_0x4926('0x10d')](_0x4997a6){return(_0x4997a6=_0x4997a6[_0x4926('0x69')](_0x4e0d5c=>!_0x4e0d5c[_0x4926('0xc0')]||_0x4926('0x31')!==_0x4e0d5c['name']&&'revision-end'!==_0x4e0d5c[_0x4926('0xc0')]))['forEach'](_0x3bdab6=>{_0x4926('0x8d')!=typeof _0x3bdab6&&(_0x3bdab6['children']=this[_0x4926('0x10d')](_0x3bdab6['children']),_0x3bdab6[_0x4926('0xb5')]=_0x3bdab6['attributes'][_0x4926('0x69')](_0x36450a=>!_0x36450a[0x0][_0x4926('0xd0')](_0x4926('0x27'))));}),_0x4997a6;}async['compare'](_0x5cbceb,_0x5c2881,_0xaca7fc=!0x1){if(!this[_0x4926('0xd7')])return;const _0x164837=this[_0x4926('0x99')],_0x35f7e9=this[_0x4926('0x125')],_0x26e091=_0x4926('0x8d')==typeof _0x5cbceb?_0x35f7e9[_0x4926('0x49')](_0x5cbceb):_0x5cbceb,_0x220dcf=_0x4926('0x8d')==typeof _0x5c2881?_0x35f7e9[_0x4926('0x49')](_0x5c2881):_0x5c2881,_0x20194b=_0x26e091['id'],_0x4deffe=_0x220dcf?_0x220dcf['id']:null;if(!_0xaca7fc&&this[_0x4926('0x99')]&&this[_0x4926('0x99')]['newRevisionId']===_0x20194b&&this['diff'][_0x4926('0x40')]===_0x4deffe)return Promise[_0x4926('0xb3')]();this['isReady']=!0x1,this[_0x4926('0x1b')]=null,this[_0x4926('0xf')]=null,this['diff']=new _0x16038d(_0x20194b,_0x4deffe);const _0x26b01e=this['_getRevisionsRange'](_0x26e091,_0x220dcf,!0x0)[_0x4926('0x25')](_0x3ea984=>this['loadRevisionData'](_0x3ea984));return _0x26b01e[_0x4926('0x6e')](new Promise(_0x2d1c89=>{setTimeout(_0x2d1c89,0x14);})),Promise[_0x4926('0x7')](_0x26b01e)['then'](()=>{if(!this[_0x4926('0xd7')])return;this['_cleanUp']();const _0x2d255d=this[_0x4926('0xc8')](_0x20194b,_0x4deffe);for(const _0x3b57bf of _0x2d255d['changes'])this[_0x4926('0xdd')][_0x4926('0x9')](_0x3b57bf['id'],_0x3b57bf);this['editor']['model'][_0x4926('0x56')]({'isUndoable':!0x1},_0x2ab91c=>{for(const _0x4197a8 of this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0x14')][_0x4926('0xae')]())_0x2ab91c[_0x4926('0x6')](_0x4197a8);for(const _0x40e6bb of Object['keys'](_0x2d255d['model'])){const _0x4996a=_0x2ab91c[_0x4926('0x5a')](_0x40e6bb);for(const _0x14d110 of Object[_0x4926('0x3')](_0x2d255d['attributes'][_0x40e6bb]))_0x2ab91c['setAttribute'](_0x14d110,_0x2d255d['attributes'][_0x40e6bb][_0x14d110],_0x4996a);_0x2ab91c['insert'](_0x2d255d['model'][_0x40e6bb],_0x4996a,0x0);}}),this[_0x4926('0x99')][_0x4926('0x30')](this[_0x4926('0x72')](_0x2d255d[_0x4926('0x4a')])),this[_0x4926('0x110')]=!0x0;})['catch'](_0xee19db=>{console[_0x4926('0x105')](_0xee19db),this[_0x4926('0x16')](),_0x164837&&(this[_0x4926('0x99')]=_0x164837),this[_0x4926('0x110')]=!0x0;});}[_0x4926('0x2e')](_0x590e76,_0x14308f){const _0x340040=this[_0x4926('0x125')]['createRevision'](_0x590e76);return _0x340040['on'](_0x4926('0x115'),(_0x22edfd,_0x1e4975,_0x251c3c)=>_0x14308f(_0x1e4975,_0x251c3c,_0x340040)),this[_0x4926('0x125')][_0x4926('0x35')](_0x340040),_0x340040;}['loadRevisionData'](_0x13e7f0){if(!_0x13e7f0||_0x13e7f0['diffData'])return Promise[_0x4926('0xb3')]();{const _0x2acf29=this[_0x4926('0x98')][_0x4926('0x111')][_0x4926('0xb1')]('collaboration.channelId');return this['adapter'][_0x4926('0x49')]({'channelId':_0x2acf29,'revisionId':_0x13e7f0['id']})[_0x4926('0x46')](_0x555149=>{_0x13e7f0[_0x4926('0x115')]({'diffData':_0x555149[_0x4926('0xde')]},!0x0);});}}[_0x4926('0x16')](){this[_0x4926('0xf')]=null,this[_0x4926('0xa8')](),this[_0x4926('0x114')]&&this[_0x4926('0x114')][_0x4926('0xcf')](),this['_changeView']=null,this[_0x4926('0xdd')][_0x4926('0x59')](),this[_0x4926('0x98')][_0x4926('0x55')]['enqueueChange']({'isUndoable':!0x1},_0x33b821=>{for(const _0x2103d2 of this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0x14')]['getRootNames']())_0x33b821['detachRoot'](_0x2103d2);});}[_0x4926('0x72')](_0x51b446){const _0x175a4d=[],_0x38ba52=new Map();for(const _0x58b3ca of this['editor'][_0x4926('0x55')][_0x4926('0x14')]['getRootNames']()){const _0x3b16ce=this[_0x4926('0x98')][_0x4926('0x6f')]['view']['getDomRoot'](_0x58b3ca);if(!_0x3b16ce)continue;const _0x1ac77b=_0x3b16ce[_0x4926('0x67')]()[_0x4926('0xb0')](0x0);_0x1ac77b&&(_0x175a4d[_0x4926('0x6e')](_0x58b3ca),_0x38ba52[_0x4926('0x9')](_0x58b3ca,_0x1ac77b));}return _0x175a4d['sort']((_0x85668d,_0x1a3073)=>{const _0x3b7f39=_0x38ba52[_0x4926('0xb1')](_0x85668d),_0x5ee0a9=_0x38ba52[_0x4926('0xb1')](_0x1a3073);return _0x3b7f39['y']-_0x5ee0a9['y']||_0x3b7f39['x']-_0x5ee0a9['x'];}),(_0x51b446=_0x51b446[_0x4926('0x69')](_0x498513=>_0x175a4d[_0x4926('0x28')](_0x498513[_0x4926('0xfd')])))['sort']((_0x5c0531,_0xda4711)=>_0x175a4d[_0x4926('0x23')](_0x5c0531[_0x4926('0xfd')])-_0x175a4d[_0x4926('0x23')](_0xda4711['rootName'])),_0x51b446;}['_makeTape'](_0x540b86){const _0x3fee50=Array[_0x4926('0xa4')](_0x540b86['markers'])['filter'](([_0x4be7f0,_0x38f5fd])=>_0x4be7f0[_0x4926('0xd0')]('revision:')&&!_0x38f5fd[_0x4926('0x104')]),_0x57caa9=Array[_0x4926('0xa4')](this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0x88')](_0x540b86)[_0x4926('0x63')]({'singleCharacters':!0x0}));if(0x0!=_0x3fee50[_0x4926('0x81')])for(const _0x4e4a0c of _0x57caa9){const [_0x1714bc,_0x504b17]=_0x3fee50[0x0],[,_0x5acff3,_0x274915]=_0x1714bc[_0x4926('0x116')](':');if(_0x504b17[_0x4926('0xb8')]['isEqual'](_0x4e4a0c['nextPosition'])&&_0x3fee50[_0x4926('0x91')](),(_0x4e4a0c[_0x4926('0xaf')][_0x4926('0xf6')](_0x504b17[_0x4926('0x10b')])||_0x4e4a0c['previousPosition'][_0x4926('0x41')](_0x504b17[_0x4926('0x10b')]))&&(_0x4926('0x64')==_0x5acff3?_0x4e4a0c['isAdded']={'userId':_0x274915}:_0x4926('0xe6')==_0x5acff3&&(_0x4e4a0c[_0x4926('0xa1')]={'userId':_0x274915})),0x0==_0x3fee50[_0x4926('0x81')])break;}return _0x57caa9;}[_0x4926('0x11a')](_0x4976ef){const _0x581a83=new Map();for(let _0x24d324=0x0;_0x24d324<_0x4976ef[_0x4926('0x81')];_0x24d324++)_0x4926('0xbb')===_0x4976ef[_0x24d324][_0x4926('0x62')]?(_0x4976ef[_0x24d324][_0x4926('0xb0')][_0x4926('0xed')]=_0x24d324,_0x4976ef[_0x24d324][_0x4926('0xb0')]['endIndex']=_0x24d324):(_0x4926('0xc7')===_0x4976ef[_0x24d324][_0x4926('0x62')]?_0x4976ef[_0x24d324][_0x4926('0xb0')][_0x4926('0xed')]=_0x24d324:_0x4926('0xf2')===_0x4976ef[_0x24d324][_0x4926('0x62')]&&(_0x4976ef[_0x24d324][_0x4926('0xb0')][_0x4926('0x11e')]=_0x24d324),_0x581a83[_0x4926('0x9')](_0x4976ef[_0x24d324]['id'],_0x24d324));for(const _0x65e235 of _0x581a83['values']())_0x4926('0xc7')===_0x4976ef[_0x65e235][_0x4926('0x62')]?_0x4976ef[_0x65e235]['item'][_0x4926('0x11e')]=_0x581a83[_0x4926('0xb1')](_0x4976ef[_0x65e235]['pairId']):_0x4926('0xf2')===_0x4976ef[_0x65e235]['type']&&(_0x4976ef[_0x65e235][_0x4926('0xb0')][_0x4926('0xed')]=_0x581a83[_0x4926('0xb1')](_0x4976ef[_0x65e235][_0x4926('0x70')]));}[_0x4926('0x6a')](_0x336536){for(let _0xfed859=0x0;_0xfed859<_0x336536['length'];_0xfed859++){if(_0x4926('0xc7')===_0x336536[_0xfed859][_0x4926('0x62')])_0x336536[_0xfed859][_0x4926('0xb0')][_0x4926('0xed')]=_0xfed859;else{if('elementEnd'===_0x336536[_0xfed859][_0x4926('0x62')]){_0x336536[_0xfed859][_0x4926('0xb0')][_0x4926('0x11e')]=_0xfed859;const _0x272273=_0x336536[_0xfed859][_0x4926('0xb0')][_0x4926('0xed')];_0x336536[_0x272273][_0x4926('0x70')]=_0x336536[_0xfed859]['id'],_0x336536[_0xfed859][_0x4926('0x70')]=_0x336536[_0x272273]['id'];}else _0x336536[_0xfed859][_0x4926('0xb0')]['startIndex']=_0xfed859,_0x336536[_0xfed859][_0x4926('0xb0')][_0x4926('0x11e')]=_0xfed859,_0x336536[_0xfed859]['pairId']=null;}_0x336536[_0xfed859][_0x4926('0x10e')]||(_0x336536[_0xfed859][_0x4926('0x10e')]=[],_0x336536[_0xfed859]['markersEnd']=[]);}}[_0x4926('0x24')](_0x47abe4,_0x58c6a7){const _0x28d90a=_0x47abe4['filter'](_0xac10f2=>!_0xac10f2['isAdded']);for(let _0x1f0707=0x0;_0x1f0707<_0x58c6a7[_0x4926('0x81')];_0x1f0707++)_0x58c6a7[_0x1f0707][_0x4926('0xc9')]&&(_0x28d90a[_0x1f0707][_0x4926('0xc9')]=_0x58c6a7[_0x1f0707][_0x4926('0xc9')]);}[_0x4926('0x5d')](_0x34ec43){const _0x446729=JSON[_0x4926('0x20')](_0x34ec43),_0x2d62ab=this[_0x4926('0x98')]['editing'][_0x4926('0xcb')][_0x4926('0x14')],_0x3987da=new _0x34df08(_0x2d62ab,_0x446729[_0x4926('0x25')](_0x29ce1f=>this['_getViewObj'](_0x29ce1f)));return this[_0x4926('0x98')][_0x4926('0x2b')][_0x4926('0x37')](_0x3987da);}[_0x4926('0xa5')](_0x11ea6e){const _0x58cd3d=this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')][_0x4926('0x14')];if('string'==typeof _0x11ea6e)return new _0x48cd35(_0x58cd3d,_0x11ea6e);{const _0x5208b7=_0x11ea6e['children'][_0x4926('0x25')](_0x2504f6=>this[_0x4926('0xa5')](_0x2504f6));return new(tt[_0x11ea6e['type']]||_0x1cda3d)(_0x58cd3d,_0x11ea6e['name'],_0x11ea6e['attributes'],_0x5208b7);}}['_getDiff'](_0x444a58,_0x4462cf=null){const _0x4d92f8=this[_0x4926('0x125')][_0x4926('0x49')](_0x444a58),_0x56029b=_0x4462cf?this['repository'][_0x4926('0x49')](_0x4462cf):null,_0x5561df=this[_0x4926('0x108')](_0x4d92f8,_0x56029b),_0x18f274=_0x5561df[_0x5561df[_0x4926('0x81')]-0x1],_0x5d4faf=new Map(),_0x1ca44d={'model':{},'attributes':{},'changes':[]},_0x5c994e=new Set(),_0x26bd42=new Map();for(let _0x39e78e=_0x5561df[_0x4926('0x81')]-0x1;_0x39e78e>=0x0;_0x39e78e--){const _0x356050=_0x5561df[_0x39e78e];for(const _0x104020 of Object['keys'](_0x356050[_0x4926('0xde')]))if(_0x356050[_0x4926('0xde')][_0x104020][_0x4926('0xad')]){const _0x233a58=_0x356050[_0x4926('0xde')][_0x104020][_0x4926('0xad')];_0x233a58[_0x4926('0xd2')]?(_0x5c994e[_0x4926('0x103')](_0x104020),_0x26bd42['has'](_0x104020)&&_0x26bd42['get'](_0x104020)[_0x4926('0xe2')]==_0x233a58['userId']?_0x26bd42['delete'](_0x104020):_0x26bd42[_0x4926('0x9')](_0x104020,_0x233a58)):_0x26bd42[_0x4926('0xdc')](_0x104020)?(_0x5c994e['delete'](_0x104020),_0x26bd42[_0x4926('0x9f')](_0x104020)):(_0x5c994e[_0x4926('0x103')](_0x104020),_0x26bd42[_0x4926('0x9')](_0x104020,_0x233a58));}else _0x5c994e[_0x4926('0x103')](_0x104020);}for(const _0x504e70 of _0x5c994e){const _0x440704=_0x26bd42['has'](_0x504e70)&&!_0x26bd42['get'](_0x504e70)[_0x4926('0xd2')];let _0x3af974=_0x440704?_0x5561df[_0x4926('0x81')]-0x1:0x0;const _0x4b43c4=_0x440704?-0x1:0x1;for(;_0x5561df[_0x3af974];){const _0x44ddc2=_0x5561df[_0x3af974];if(_0x44ddc2[_0x4926('0xde')][_0x504e70]){const _0x30d8d4=_0x440704?_0x44ddc2[_0x4926('0xde')][_0x504e70][_0x4926('0x11c')]:_0x44ddc2[_0x4926('0xde')][_0x504e70][_0x4926('0x78')];_0x1ca44d[_0x4926('0xb5')][_0x504e70]=_0x30d8d4?_0x503564(_0x30d8d4):{};break;}_0x3af974+=_0x4b43c4;}}for(const _0x5d2697 of _0x5561df){_0x5d2697[_0x4926('0x55')]={};for(const _0x46e0a4 of _0x5d2697[_0x4926('0x51')])_0x5d4faf['set'](_0x46e0a4['id'],_0x46e0a4);for(const _0x3bc345 of _0x5c994e){const _0xff9a7e=_0x5d2697['diffData'][_0x3bc345]?_0x5d2697['diffData'][_0x3bc345][_0x4926('0x26')]:'[]',_0xb90cb2=_0x5d2697[_0x4926('0xde')][_0x3bc345]?_0x5d2697[_0x4926('0xde')][_0x3bc345]['deletions']:'[]';_0x5d2697['model'][_0x3bc345]={'insertions':this[_0x4926('0x5d')](_0xff9a7e),'deletions':this[_0x4926('0x5d')](_0xb90cb2)};}}for(const _0x33a4f6 of _0x5c994e){let _0x49d148=null,_0x41c61c=0x0;const _0x299b6e=new Map(Array[_0x4926('0xa4')](_0x4d92f8[_0x4926('0x55')][_0x33a4f6]['insertions'][_0x4926('0xc4')])[_0x4926('0x69')](([_0x2028fd])=>!_0x2028fd[_0x4926('0xd0')](_0x4926('0xb9'))));let _0xce2fea=0x0;for(const _0x45e860 of _0x5561df){const _0x3674e1=this[_0x4926('0x32')](_0x45e860[_0x4926('0x55')][_0x33a4f6][_0x4926('0x26')]);_0x45e860==_0x4d92f8?(_0x49d148=_0x3674e1,_0x41c61c=_0x49d148[_0x4926('0x81')],_0x49d148[_0x4926('0xac')](_0x52e963=>{_0x52e963['id']=_0xce2fea++;}),this['_processTape'](_0x49d148)):this[_0x4926('0x24')](_0x49d148,_0x3674e1);const _0x499236=_0x49d148[_0x4926('0x69')](_0x407eab=>!_0x407eab[_0x4926('0xc9')])[_0x4926('0x25')](_0x2e41a8=>_0x2e41a8['id']);let _0x3e0e51=0x0;const _0x12e430=this[_0x4926('0x32')](_0x45e860[_0x4926('0x55')][_0x33a4f6]['deletions']);_0x12e430[_0x4926('0xac')](_0x297399=>{_0x297399[_0x4926('0xa1')]?_0x297399['id']=_0x41c61c++:_0x297399['id']=_0x499236[_0x3e0e51++];}),this[_0x4926('0x6a')](_0x12e430),this[_0x4926('0x77')](_0x49d148,_0x4926('0xc9')),this[_0x4926('0x77')](_0x12e430,'isRemoved'),_0x45e860==_0x4d92f8&&this[_0x4926('0x1e')](_0x49d148,_0x299b6e),_0x49d148=this[_0x4926('0xd6')](_0x49d148,_0x12e430),this['_refreshStartEndIndex'](_0x49d148),this[_0x4926('0x77')](_0x49d148,_0x4926('0xa1'));}_0x49d148=_0x49d148['filter'](_0x46749c=>!(_0x46749c[_0x4926('0xc9')]&&_0x46749c[_0x4926('0xa1')]));const _0x4725ee=new Map(_0x18f274['model'][_0x33a4f6][_0x4926('0xfc')][_0x4926('0xc4')]),_0x53e240=new Set(_0x299b6e[_0x4926('0x3')]());for(const _0x3291c1 of _0x4725ee['keys']())_0x53e240[_0x4926('0x9f')](_0x3291c1);this['_markSuggestions'](_0x49d148,_0x53e240),this[_0x4926('0xdf')](_0x49d148),_0x49d148=this[_0x4926('0x10')](_0x49d148),_0x49d148=this['_markMismatchedRemovedTags'](_0x49d148),_0x49d148=this['_removeUnsupportedChanges'](_0x49d148);const {root:_0x5bd5f2,changes:_0x46ab46}=this[_0x4926('0x7b')](_0x49d148,_0x5d4faf,_0x33a4f6);_0x1ca44d[_0x4926('0x55')][_0x33a4f6]=_0x5bd5f2;const _0x5260f6=_0x26bd42[_0x4926('0xb1')](_0x33a4f6);if(_0x5260f6){const _0x498ea2=_0x5d4faf['get'](_0x5260f6[_0x4926('0xe2')]),_0x4a76cf=new _0x26e56f({'author':_0x498ea2,'type':_0x5260f6[_0x4926('0xd2')]?_0x4926('0x103'):_0x4926('0x8b'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x33a4f6});_0x46ab46[_0x4926('0xfa')](_0x4a76cf),_0x1ca44d[_0x4926('0xb5')][_0x33a4f6][_0x4926('0xd1')]=_0x4a76cf['id'];}_0x1ca44d[_0x4926('0x4a')]=_0x1ca44d['changes'][_0x4926('0xe5')](_0x46ab46);}return _0x1ca44d;}[_0x4926('0x1e')](_0x10fcf6,_0x104ab8){for(let _0x5e4f4b=0x0;_0x5e4f4b<_0x10fcf6[_0x4926('0x81')];_0x5e4f4b++)for(const [_0x402fad,_0xc27287]of _0x104ab8)_0xc27287[_0x4926('0x10b')][_0x4926('0xf6')](_0x10fcf6[_0x5e4f4b][_0x4926('0xaf')])&&_0x10fcf6[_0x5e4f4b][_0x4926('0x10e')][_0x4926('0x6e')](_0x402fad),_0xc27287['end'][_0x4926('0xf6')](_0x10fcf6[_0x5e4f4b][_0x4926('0x8e')])&&_0x10fcf6[_0x5e4f4b]['markersEnd']['push'](_0x402fad);}['_joinTapes'](_0x440747,_0x4be0aa){let _0x14e002=[],_0x2a67e8=0x0,_0x4e535=0x0;for(;_0x2a67e8<_0x440747[_0x4926('0x81')]||_0x4e535<_0x4be0aa[_0x4926('0x81')];){const _0x41e9ff=_0x440747[_0x2a67e8]||{},_0x11111b=_0x4be0aa[_0x4e535]||{};if(_0x41e9ff['id']==_0x11111b['id'])_0x2a67e8++,_0x4e535++,_0x14e002['push'](_0x41e9ff);else{if(_0x11111b['isRemoved']&&_0x41e9ff[_0x4926('0xc9')]){const {commonTape:_0x3b369f,iEnd:_0x12abcc,jEnd:_0x4c5a34}=this[_0x4926('0x3a')](_0x440747,_0x2a67e8,_0x4be0aa,_0x4e535);_0x14e002=_0x14e002[_0x4926('0xe5')](_0x3b369f),_0x2a67e8=_0x12abcc,_0x4e535=_0x4c5a34;}else _0x11111b['isRemoved']?(_0x4e535++,_0x14e002[_0x4926('0x6e')](_0x11111b)):(_0x2a67e8++,_0x14e002[_0x4926('0x6e')](_0x41e9ff));}}return _0x14e002;}[_0x4926('0xe7')](_0x29c510,_0x29a153){const _0x9f359f=[];for(let _0x554263=0x0;_0x554263<_0x29c510[_0x4926('0x81')];_0x554263++){for(let _0x432f68=0x0;_0x432f68<_0x29c510[_0x554263][_0x4926('0x10e')][_0x4926('0x81')];_0x432f68++){const _0x8ecacd=_0x29c510[_0x554263]['markersStart'][_0x432f68];if(!_0x29a153['has'](_0x8ecacd))continue;const {group:_0x40f6c2,type:_0x141efd,authorId:_0x8276cb}=_0x412ccf(_0x8ecacd);_0x4926('0x8')!=_0x40f6c2||_0x4926('0x64')!=_0x141efd&&'deletion'!=_0x141efd||(_0x9f359f[_0x4926('0xfa')]({'type':_0x141efd,'name':_0x8ecacd,'userId':_0x8276cb}),_0x29c510[_0x554263]['markersStart'][_0x4926('0x15')](_0x432f68,0x1),_0x432f68--);}_0x408baf(_0x29c510[_0x554263]);for(let _0x21544e=0x0;_0x21544e<_0x29c510[_0x554263][_0x4926('0xea')]['length'];_0x21544e++){const _0x45c4ea=_0x29c510[_0x554263][_0x4926('0xea')][_0x21544e];if(!_0x29a153[_0x4926('0xdc')](_0x45c4ea))continue;const {group:_0x1bf889,type:_0x437f33}=_0x412ccf(_0x45c4ea);if(_0x4926('0x8')!=_0x1bf889||_0x4926('0x64')!=_0x437f33&&_0x4926('0xe6')!=_0x437f33)continue;_0x29c510[_0x554263][_0x4926('0xea')][_0x4926('0x15')](_0x21544e,0x1),_0x21544e--;const _0x2b446d=_0x9f359f['findIndex'](_0x5de0eb=>_0x5de0eb[_0x4926('0xc0')]==_0x45c4ea);_0x2b446d>-0x1&&_0x9f359f['splice'](_0x2b446d,0x1);}}function _0x412ccf(_0x302b64){const _0x3aa1ac=_0x302b64[_0x4926('0x116')](':');return{'group':_0x3aa1ac[0x0],'type':_0x3aa1ac[0x1],'subType':_0x3aa1ac['length']>=0x5?_0x3aa1ac[0x2]:null,'id':_0x3aa1ac[_0x4926('0x81')]<0x5?_0x3aa1ac[0x2]:_0x3aa1ac[0x3],'authorId':_0x3aa1ac[_0x4926('0x81')]<0x5?_0x3aa1ac[0x3]:_0x3aa1ac[0x4],'markerCount':0x6==_0x3aa1ac[_0x4926('0x81')]?_0x3aa1ac[0x5]:null};}function _0x408baf(_0x19af2b){for(let _0x33eccc=0x0;_0x33eccc<_0x9f359f[_0x4926('0x81')];_0x33eccc++){if(_0x19af2b['isAdded']&&_0x4926('0x64')==_0x9f359f[_0x33eccc][_0x4926('0x62')])return _0x19af2b[_0x4926('0x8f')]=_0x9f359f[_0x33eccc],void delete _0x19af2b[_0x4926('0xc9')];if(!_0x19af2b[_0x4926('0xc9')]&&!_0x19af2b[_0x4926('0xa1')]&&'deletion'==_0x9f359f[_0x33eccc][_0x4926('0x62')])return void(_0x19af2b[_0x4926('0x71')]=_0x9f359f[_0x33eccc]);}}}[_0x4926('0x77')](_0x3f9d59,_0x1f8580){let _0x358bc2=0x0,_0x39260f=!0x1;const _0x475386=new Map();for(const _0x1e2207 of _0x3f9d59)_0x1e2207[_0x1f8580]?_0x39260f&&(_0x358bc2++,_0x39260f=!0x1):(_0x358bc2++,_0x39260f=!0x0),_0x475386[_0x4926('0x9')](_0x1e2207['id'],_0x358bc2);for(let _0x5abd5a=0x0;_0x5abd5a<_0x3f9d59[_0x4926('0x81')];_0x5abd5a++){if(_0x4926('0xa1')==_0x1f8580&&_0x3f9d59[_0x5abd5a][_0x4926('0xc9')]||_0x4926('0xc9')==_0x1f8580&&_0x3f9d59[_0x5abd5a][_0x4926('0xa1')])continue;if('text'==_0x3f9d59[_0x5abd5a]['type']){_0x3f9d59[_0x5abd5a]['distance']=0x0;continue;}const _0x4f6d18=_0x475386[_0x4926('0xb1')](_0x3f9d59[_0x5abd5a][_0x4926('0x70')]),_0x394bca=_0x475386[_0x4926('0xb1')](_0x3f9d59[_0x5abd5a]['id']);_0x3f9d59[_0x5abd5a][_0x4926('0xb7')]=_0x4f6d18-_0x394bca;}}[_0x4926('0x108')](_0x89396b,_0x43c5f8,_0x1e444a=!0x1){const _0x8b6205=[];let _0x4f43ea=this[_0x4926('0x125')][_0x4926('0xa7')](_0x89396b),_0x4fc3bb=this[_0x4926('0x125')][_0x4926('0xa7')](_0x43c5f8);for(-0x1==_0x4fc3bb&&(_0x4fc3bb=this[_0x4926('0x125')][_0x4926('0x73')][_0x4926('0x81')],_0x1e444a=!0x1);_0x4f43ea<_0x4fc3bb;)_0x8b6205[_0x4926('0x6e')](this['repository'][_0x4926('0x49')](_0x4f43ea)),_0x4f43ea++;return _0x1e444a&&_0x8b6205[_0x4926('0x6e')](this[_0x4926('0x125')]['getRevision'](_0x4f43ea)),_0x8b6205;}[_0x4926('0x3a')](_0x2b6808,_0xf2e40e,_0x14020d,_0x505a70){const _0x50d55b=this['editor'][_0x4926('0x55')][_0x4926('0xa0')];let _0xc7cac6=_0xf2e40e;for(;_0x2b6808[_0xc7cac6]&&_0x2b6808[_0xc7cac6][_0x4926('0xc9')];)_0xc7cac6++;let _0x3bead0=_0x505a70;for(;_0x14020d[_0x3bead0]&&_0x14020d[_0x3bead0]['isRemoved'];)_0x3bead0++;_0x150990(_0x2b6808,_0xf2e40e,_0xc7cac6),_0x150990(_0x14020d,_0x505a70,_0x3bead0);const _0x1a0c74=_0x14020d[_0x4926('0x117')](_0x505a70,_0x3bead0)['concat'](_0x2b6808[_0x4926('0x117')](_0xf2e40e,_0xc7cac6));return _0x1a0c74[_0x4926('0xfb')]((_0x4a83fa,_0x36e1bb)=>_0x4a83fa[_0x4926('0xcd')]!=_0x36e1bb['side']?_0x4a83fa['side']-_0x36e1bb[_0x4926('0xcd')]:_0x4a83fa[_0x4926('0xa9')]!=_0x36e1bb[_0x4926('0xa9')]?_0x4a83fa[_0x4926('0xa9')]-_0x36e1bb['level']:_0x4a83fa[_0x4926('0xb7')]!=_0x36e1bb[_0x4926('0xb7')]?_0x36e1bb[_0x4926('0xb7')]-_0x4a83fa['distance']:!!_0x4a83fa['isAdded']!=!!_0x36e1bb[_0x4926('0xc9')]?-0x1==_0x4a83fa[_0x4926('0xcd')]||0x0==_0x4a83fa['side']?_0x4a83fa[_0x4926('0xc9')]?-0x1:0x1:_0x4a83fa[_0x4926('0xc9')]?0x1:-0x1:_0x4a83fa['index']-_0x36e1bb['index']),{'commonTape':_0x1a0c74,'iEnd':_0xc7cac6,'jEnd':_0x3bead0};function _0x150990(_0x24db8c,_0x1216e1,_0x44e1da){let _0x37fc5a=-0x1,_0x26d7de=Number['POSITIVE_INFINITY'],_0x2071fe=!0x0;for(let _0x330ca7=_0x1216e1;_0x330ca7<_0x44e1da;_0x330ca7++)if(_0x50d55b[_0x4926('0xba')](_0x24db8c[_0x330ca7][_0x4926('0xb0')])||(_0x2071fe=!0x1),_0x24db8c[_0x330ca7][_0x4926('0xb0')][_0x4926('0xed')]<_0x1216e1&&(_0x37fc5a=_0x330ca7),_0x24db8c[_0x330ca7][_0x4926('0xb0')][_0x4926('0x11e')]>=_0x44e1da){_0x26d7de=_0x330ca7;break;}_0x2071fe&&(_0x37fc5a=_0x44e1da-0x1);for(let _0x33a25e=_0x1216e1;_0x33a25e<_0x44e1da;_0x33a25e++)_0x24db8c[_0x33a25e]['side']=_0x33a25e<=_0x37fc5a?-0x1:_0x33a25e<_0x26d7de?0x0:0x1,_0x24db8c[_0x33a25e][_0x4926('0x4e')]=_0x33a25e;let _0x15206d=0x0;for(let _0x47b352=_0x1216e1;_0x47b352<=_0x37fc5a;_0x47b352++)0x0==_0x24db8c[_0x47b352][_0x4926('0xb7')]?_0x24db8c[_0x47b352][_0x4926('0xa9')]=_0x15206d:(_0x15206d++,_0x24db8c[_0x47b352]['level']=_0x15206d,_0x15206d++);for(let _0x4bd6f1=_0x1216e1;_0x4bd6f1<_0x44e1da;_0x4bd6f1++)0x0==_0x24db8c[_0x4bd6f1][_0x4926('0xcd')]&&(_0x24db8c[_0x4bd6f1]['level']=_0x15206d);_0x15206d=0x0;for(let _0x865b4=_0x44e1da-0x1;_0x865b4>=_0x26d7de;_0x865b4--)0x0==_0x24db8c[_0x865b4][_0x4926('0xb7')]?_0x24db8c[_0x865b4]['level']=_0x15206d:(_0x15206d--,_0x24db8c[_0x865b4]['level']=_0x15206d,_0x15206d--);}}[_0x4926('0xdf')](_0x683aaf){const _0x42b90e=new Map(),_0x52ecf7=this[_0x4926('0x98')]['model'][_0x4926('0xa0')];for(let _0x1b1759=0x1;_0x1b1759<_0x683aaf[_0x4926('0x81')];_0x1b1759++){let _0x5c33ae,_0x51aeef,_0x3ef412;const _0x2df20f=_0x683aaf[_0x1b1759],_0x2e082f=_0x683aaf[_0x1b1759-0x1];if(_0x4926('0xbb')==_0x2df20f['type'])continue;if(_0x2df20f['type']!=_0x2e082f[_0x4926('0x62')])continue;if(!_0x52ecf7[_0x4926('0x11d')](_0x2e082f[_0x4926('0xb0')])||_0x52ecf7[_0x4926('0x124')](_0x2e082f[_0x4926('0xb0')]))continue;if(!_0x52ecf7['isBlock'](_0x2df20f[_0x4926('0xb0')])||_0x52ecf7[_0x4926('0x124')](_0x2df20f[_0x4926('0xb0')]))continue;if((_0x683aaf[_0x1b1759]['isAdded']||_0x683aaf[_0x1b1759]['isAddSuggestion'])&&_0x683aaf[_0x1b1759-0x1][_0x4926('0xa1')])_0x5c33ae=_0x683aaf[_0x1b1759],_0x51aeef=_0x683aaf[_0x1b1759-0x1],_0x3ef412=_0x1b1759-0x1;else{if(!_0x683aaf[_0x1b1759][_0x4926('0xa1')]||!_0x683aaf[_0x1b1759-0x1]['isAdded']&&!_0x683aaf[_0x1b1759-0x1][_0x4926('0x8f')])continue;_0x5c33ae=_0x683aaf[_0x1b1759-0x1],_0x51aeef=_0x683aaf[_0x1b1759],_0x3ef412=_0x1b1759;}const _0x1319c5=_0x5c33ae[_0x4926('0xa9')]==_0x51aeef['level'],_0x5b63a6=Math[_0x4926('0xe9')](_0x5c33ae[_0x4926('0xa9')])<Math['abs'](_0x51aeef['level'])&&0x0==_0x51aeef[_0x4926('0xb7')];(_0x1319c5||_0x5b63a6)&&(_0x42b90e['set'](_0x51aeef['id'],_0x5c33ae['id']),_0x683aaf['splice'](_0x3ef412,0x1),_0x1b1759--,_0x5c33ae['isAdded']=!0x1);}for(let _0x534520=0x0;_0x534520<_0x683aaf['length'];_0x534520++)_0x42b90e['has'](_0x683aaf[_0x534520]['pairId'])&&(_0x683aaf[_0x534520][_0x4926('0x70')]=_0x42b90e['get'](_0x683aaf[_0x534520]['pairId']));}[_0x4926('0x10')](_0x4554cf){const _0x576ade=new Set(_0x4554cf[_0x4926('0x25')](_0x429b06=>_0x429b06['id']));for(let _0x2bdc07=0x0;_0x2bdc07<_0x4554cf[_0x4926('0x81')];_0x2bdc07++)_0x576ade[_0x4926('0xdc')](_0x4554cf[_0x2bdc07][_0x4926('0x70')])||0x0==_0x4554cf[_0x2bdc07][_0x4926('0xb7')]||(_0x4554cf[_0x2bdc07][_0x4926('0xe8')]=!0x0);return _0x4554cf[_0x4926('0x69')](_0x37d78e=>!_0x37d78e[_0x4926('0xe8')]);}[_0x4926('0x7d')](_0xc28745){const _0x4e599c=new Set();for(let _0x4432fc=0x0;_0x4432fc<_0xc28745[_0x4926('0x81')];_0x4432fc++){if(_0x4e599c[_0x4926('0xdc')](_0xc28745[_0x4432fc]['id'])&&_0xc28745[_0x4432fc][_0x4926('0xa1')]&&(_0xc28745[_0x4432fc][_0x4926('0xe8')]=!0x0),_0xc28745[_0x4432fc][_0x4926('0xe8')])continue;if(0x0==_0xc28745[_0x4432fc][_0x4926('0xb7')])continue;if(_0x4926('0xc7')!=_0xc28745[_0x4432fc][_0x4926('0x62')])continue;if(null==_0xc28745[_0x4432fc][_0x4926('0x70')])continue;let _0x3d2abf=_0x4432fc+0x1,_0x326848=0x0;for(;_0xc28745[_0x3d2abf]['id']!=_0xc28745[_0x4432fc]['pairId'];)_0x4926('0xc7')==_0xc28745[_0x3d2abf][_0x4926('0x62')]?_0x326848++:_0x4926('0xf2')==_0xc28745[_0x3d2abf][_0x4926('0x62')]&&_0x326848--,_0x3d2abf++;if(0x0!=_0x326848){if(_0xc28745[_0x4432fc][_0x4926('0xa1')])_0xc28745[_0x4432fc][_0x4926('0xe8')]=!0x0;else for(;_0x3d2abf!=_0x4432fc;)_0xc28745[_0x3d2abf][_0x4926('0xa1')]&&0x0!=_0xc28745[_0x3d2abf][_0x4926('0xb7')]&&(_0xc28745[_0x3d2abf][_0x4926('0xe8')]=!0x0,_0x4e599c['add'](_0xc28745[_0x3d2abf][_0x4926('0x70')])),_0x3d2abf--;}}return _0xc28745[_0x4926('0x69')](_0x2c3e05=>!_0x2c3e05[_0x4926('0xe8')]);}[_0x4926('0xf1')](_0xf99e9e){const _0x3b1e25=this['editor']['model']['schema'];for(let _0x557b61=0x0;_0x557b61<_0xf99e9e[_0x4926('0x81')];_0x557b61++){if(!(_0xf99e9e[_0x557b61][_0x4926('0xc9')]||_0xf99e9e[_0x557b61][_0x4926('0x8f')]||_0xf99e9e[_0x557b61]['isRemoved']||_0xf99e9e[_0x557b61][_0x4926('0x71')]))continue;if(0x0==_0xf99e9e[_0x557b61][_0x4926('0xb7')])continue;const _0x350193=_0xf99e9e[_0x557b61]['item'];_0x3b1e25[_0x4926('0x11d')](_0x350193)||_0x3b1e25['isLimit'](_0x350193)||(_0xf99e9e[_0x557b61]['isAdded']&&delete _0xf99e9e[_0x557b61][_0x4926('0xc9')],_0xf99e9e[_0x557b61]['isAddSuggestion']&&delete _0xf99e9e[_0x557b61]['isAddSuggestion'],_0xf99e9e[_0x557b61][_0x4926('0x71')]&&delete _0xf99e9e[_0x557b61][_0x4926('0x71')],_0xf99e9e[_0x557b61][_0x4926('0xa1')]&&(_0xf99e9e[_0x557b61][_0x4926('0xe8')]=!0x0));}return _0xf99e9e[_0x4926('0x69')](_0x4c184f=>!_0x4c184f['isIncorrect']);}[_0x4926('0x7b')](_0x9cdae2,_0xb36c49,_0x52bcf8){const _0x4e1740=new _0x5a388a(),_0x4d86d3=[],_0x5b04d2=new Map(),_0x443cf6=this[_0x4926('0x98')][_0x4926('0x55')],_0x4f27c5=_0x443cf6['schema'],_0x5f14d5=[_0x4e1740],_0x4a0f0b={},_0x18a195={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3ab5c4=null;const _0x4de92e=[0x0];for(let _0x45dd09=0x0;_0x45dd09<_0x9cdae2['length'];_0x45dd09++){let _0x23abbf,_0x376fe5;if(_0x4926('0xc7')===_0x9cdae2[_0x45dd09][_0x4926('0x62')]){_0x23abbf=_0x443cf6[_0x4926('0x3b')](_0x4e1740,_0x4de92e);const _0x4bbf60=new _0x299acf(_0x9cdae2[_0x45dd09][_0x4926('0xb0')][_0x4926('0xc0')],_0x9cdae2[_0x45dd09][_0x4926('0xb0')][_0x4926('0x86')]());_0x5f14d5[0x0]['_appendChild'](_0x4bbf60),_0x4de92e[_0x4926('0x6e')](0x0),_0x5f14d5[_0x4926('0xfa')](_0x4bbf60),_0x376fe5=_0x443cf6['createPositionFromPath'](_0x4e1740,_0x4de92e),_0x3ab5c4=null;}else{if(_0x4926('0xf2')===_0x9cdae2[_0x45dd09][_0x4926('0x62')])_0x5f14d5[_0x4926('0x91')](),_0x23abbf=_0x443cf6[_0x4926('0x3b')](_0x4e1740,_0x4de92e),_0x4de92e[_0x4926('0xf3')](),_0x4de92e[_0x4de92e[_0x4926('0x81')]-0x1]++,_0x376fe5=_0x443cf6['createPositionFromPath'](_0x4e1740,_0x4de92e),_0x3ab5c4=null;else{if(_0x23abbf=_0x443cf6['createPositionFromPath'](_0x4e1740,_0x4de92e),_0x3ab5c4&&_0x1001bb(_0x3ab5c4,_0x9cdae2[_0x45dd09]['item']))_0x3ab5c4['_data']+=_0x9cdae2[_0x45dd09][_0x4926('0xb0')][_0x4926('0x2b')];else{const _0x33046b=new _0x28af79(_0x9cdae2[_0x45dd09][_0x4926('0xb0')][_0x4926('0x2b')],_0x9cdae2[_0x45dd09][_0x4926('0xb0')]['getAttributes']());_0x5f14d5[0x0][_0x4926('0xfe')](_0x33046b),_0x3ab5c4=_0x33046b;}_0x4de92e[_0x4de92e['length']-0x1]+=_0x9cdae2[_0x45dd09][_0x4926('0xb0')][_0x4926('0x94')],_0x376fe5=_0x443cf6['createPositionFromPath'](_0x4e1740,_0x4de92e);}}for(const _0xa571a2 of _0x9cdae2[_0x45dd09][_0x4926('0x10e')])_0x5b04d2['set'](_0xa571a2,{'start':_0x23abbf,'end':null});_0x3f20be(_0x4926('0x71'),_0x45dd09,_0x23abbf,_0x376fe5),_0x3f20be(_0x4926('0x8f'),_0x45dd09,_0x23abbf,_0x376fe5),_0x3f20be(_0x4926('0xa1'),_0x45dd09,_0x23abbf,_0x376fe5),_0x3f20be(_0x4926('0xc9'),_0x45dd09,_0x23abbf,_0x376fe5);for(const _0x4bddda of _0x9cdae2[_0x45dd09][_0x4926('0xea')]){_0x5b04d2[_0x4926('0xb1')](_0x4bddda)[_0x4926('0xb8')]=_0x376fe5;}}for(const [_0x2c6c70,_0x4124a4]of _0x5b04d2){const _0x3d068d=this[_0x4926('0x98')]['model']['createRange'](_0x4124a4[_0x4926('0x10b')],_0x4124a4[_0x4926('0xb8')]);_0x4e1740[_0x4926('0xc4')][_0x4926('0x9')](_0x2c6c70,_0x3d068d);}return _0x4d86d3[_0x4926('0xfb')]((_0x14e2cd,_0x326231)=>{const _0x2ef039=_0x4e1740['markers']['get'](_0x4926('0xb9')+_0x14e2cd['id']),_0x1c4e98=_0x4e1740['markers'][_0x4926('0xb1')](_0x4926('0xb9')+_0x326231['id']);return _0x2ef039[_0x4926('0x10b')]['isBefore'](_0x1c4e98[_0x4926('0x10b')])?-0x1:_0x2ef039[_0x4926('0x10b')][_0x4926('0x41')](_0x1c4e98[_0x4926('0x10b')])?0x1:_0x2ef039[_0x4926('0xb8')][_0x4926('0x4f')](_0x1c4e98[_0x4926('0xb8')])?-0x1:_0x2ef039[_0x4926('0xb8')][_0x4926('0x41')](_0x1c4e98[_0x4926('0xb8')])?0x1:_0x4926('0x103')===_0x14e2cd[_0x4926('0x62')]?-0x1:0x1;}),{'root':_0x4e1740,'changes':_0x4d86d3};function _0x3f20be(_0x2d9654,_0x21d4fc,_0x116e63,_0x51a6ee){const _0x284cae=!!_0x9cdae2[_0x21d4fc][_0x2d9654],_0x44a016=_0x284cae?_0x9cdae2[_0x21d4fc][_0x2d9654][_0x4926('0xe2')]:null,_0x1ee525=_0x21d4fc===_0x9cdae2[_0x4926('0x81')]-0x1,_0x517967=_0x18a195[_0x2d9654][0x0],_0x544ea7=_0x4f27c5[_0x4926('0x4b')](_0x9cdae2[_0x21d4fc][_0x4926('0xb0')]);!_0x4a0f0b[_0x2d9654]&&_0x284cae?_0x4a0f0b[_0x2d9654]={'start':_0x116e63,'tapeItem':_0x9cdae2[_0x21d4fc],'userId':_0x44a016,'type':_0x2d9654}:_0x4a0f0b[_0x2d9654]&&!_0x284cae?(_0x4a0f0b[_0x2d9654][_0x4926('0xb8')]=_0x116e63,_0x2bfe0c(_0x4a0f0b[_0x2d9654]),_0x4a0f0b[_0x2d9654]=null):_0x4a0f0b[_0x2d9654]&&_0x284cae&&_0x4a0f0b[_0x2d9654][_0x4926('0xe2')]!==_0x44a016&&(_0x4a0f0b[_0x2d9654][_0x4926('0xb8')]=_0x116e63,_0x517967&&_0x517967[_0x4926('0xe2')]===_0x4a0f0b[_0x2d9654][_0x4926('0xe2')]||_0x2bfe0c(_0x4a0f0b[_0x2d9654]),_0x4a0f0b[_0x2d9654]={'start':_0x116e63,'tapeItem':_0x9cdae2[_0x21d4fc],'userId':_0x44a016,'type':_0x2d9654}),_0x4a0f0b[_0x2d9654]&&_0x544ea7&&(_0x4926('0xc7')!==_0x9cdae2[_0x21d4fc][_0x4926('0x62')]||_0x517967&&_0x517967[_0x4926('0xe2')]===_0x44a016||_0x18a195[_0x2d9654][_0x4926('0xfa')]({'userId':_0x44a016,'object':_0x9cdae2[_0x21d4fc][_0x4926('0xb0')],'change':_0x4a0f0b[_0x2d9654]}),_0x4926('0xf2')===_0x9cdae2[_0x21d4fc][_0x4926('0x62')]&&_0x517967&&_0x517967[_0x4926('0x75')]===_0x9cdae2[_0x21d4fc][_0x4926('0xb0')]&&(_0x18a195[_0x2d9654][_0x4926('0x91')](),_0x4a0f0b[_0x2d9654]=_0x517967[_0x4926('0xc')])),_0x4a0f0b[_0x2d9654]&&_0x1ee525&&(_0x4a0f0b[_0x2d9654][_0x4926('0xb8')]=_0x51a6ee,_0x2bfe0c(_0x4a0f0b[_0x2d9654]),_0x4a0f0b[_0x2d9654]=null);}function _0x2bfe0c({start:_0x216885,end:_0x52fbe5,tapeItem:_0x5e6ec9,userId:_0x5dd91b,type:_0xf175c0}){const _0x534ee0=_0x5e6ec9[_0x4926('0xb0')],_0xb822eb=_0x443cf6[_0x4926('0xa0')][_0x4926('0x11d')](_0x534ee0)&&!_0x443cf6[_0x4926('0xa0')]['isLimit'](_0x534ee0),_0x33993e=_0x216885[_0x4926('0x87')]==_0x52fbe5[_0x4926('0x58')]&&_0x52fbe5[_0x4926('0x11')];if(_0xb822eb&&_0x33993e)return;const _0x11140e=_0x443cf6[_0x4926('0xec')](_0x216885,_0x52fbe5),_0x30c7dc=_0xb36c49[_0x4926('0xb1')](_0x5dd91b),_0x4c4f93=new _0x26e56f({'author':_0x30c7dc,'type':_0x4926('0xc9')==_0xf175c0||'isAddSuggestion'==_0xf175c0?_0x4926('0x103'):'remove','data':{'isSuggestion':_0x4926('0x8f')==_0xf175c0||_0x4926('0x71')==_0xf175c0},'createdAt':new Date(),'rootName':_0x52bcf8});_0x4d86d3[_0x4926('0x6e')](_0x4c4f93),_0x4e1740['markers'][_0x4926('0x9')]('revision:'+_0x4c4f93['id'],_0x11140e);}function _0x1001bb(_0xf125ef,_0x42da8a){const _0x37d03c=_0xf125ef[_0x4926('0x86')](),_0xb56c90=_0x42da8a[_0x4926('0x86')]();for(const _0x584c5f of _0x37d03c){if(_0x584c5f[0x1]!==_0x42da8a[_0x4926('0x4c')](_0x584c5f[0x0]))return!0x1;_0xb56c90['next']();}return _0xb56c90[_0x4926('0xbe')]()[_0x4926('0xe1')];}}[_0x4926('0x123')](){this[_0x4926('0x98')][_0x4926('0xf4')][_0x4926('0xce')](_0x4926('0x113'))[_0x4926('0xca')]({'view':_0x4926('0xeb')}),this['editor'][_0x4926('0xf4')][_0x4926('0xce')](_0x4926('0x12'))[_0x4926('0xef')]({'model':_0x4926('0xeb'),'view':_0x5a00ff=>{const _0x4ec296=_0x5a00ff['markerName'][_0x4926('0x116')](':')[0x1],_0x232968=this[_0x4926('0x89')](_0x4ec296);if(!_0x232968)return null;const _0x45280e='add'==_0x232968[_0x4926('0x62')]?'insertion':_0x4926('0xe6'),_0x16027e=['ck-suggestion-marker',_0x4926('0x92')+_0x45280e];return _0x232968['data']['isSuggestion']&&_0x16027e[_0x4926('0x6e')](_0x4926('0x92')+_0x45280e+_0x4926('0x3d')),this['activeChange']==_0x232968&&_0x16027e[_0x4926('0x6e')](_0x4926('0x1')),{'classes':_0x16027e,'attributes':{'data-change-id':_0x4ec296}};}}),this[_0x4926('0x98')][_0x4926('0xf4')][_0x4926('0xce')]('upcast')[_0x4926('0x103')](_0x25be21=>{_0x25be21['on'](_0x4926('0x1d'),(_0x316655,_0x19c42a,_0x2b6270)=>{const _0x1ebc48=_0x19c42a['viewItem'][_0x4926('0x7c')](0x0);if(!_0x1ebc48||!_0x1ebc48['is'](_0x4926('0x82'),_0x4926('0x7a')))return;if(!_0x2b6270[_0x4926('0x60')][_0x4926('0xc5')](_0x1ebc48,{'attributes':[_0x4926('0xda'),_0x4926('0xaa')]}))return;const _0x4b974a=_0x19c42a[_0x4926('0x18')][_0x4926('0x10b')][_0x4926('0x87')];_0x2b6270['writer'][_0x4926('0x8c')]('vid_start',_0x1ebc48[_0x4926('0x4c')](_0x4926('0xda')),_0x4b974a),_0x2b6270['writer'][_0x4926('0x8c')](_0x4926('0xaa'),_0x1ebc48[_0x4926('0x4c')](_0x4926('0xaa')),_0x4b974a);},{'priority':_0x4926('0x68')});}),this[_0x4926('0x98')][_0x4926('0xf4')][_0x4926('0xce')]('upcast')[_0x4926('0x103')](_0xb8fac7=>{_0xb8fac7['on'](_0x4926('0x82'),(_0x355dca,_0x137adb,_0x47f544)=>{if(!_0x47f544['consumable'][_0x4926('0xc5')](_0x137adb[_0x4926('0x3f')],{'attributes':[_0x4926('0xda'),'vid_end']}))return;if(_0x137adb['modelRange'][_0x4926('0x104')])return;const _0x4c5842=_0x137adb[_0x4926('0x18')][_0x4926('0x10b')][_0x4926('0x87')];_0x4c5842['hasAttribute'](_0x4926('0xda'))||_0x4c5842[_0x4926('0x47')](_0x4926('0xb4'))||(_0x47f544[_0x4926('0x1c')][_0x4926('0x8c')]('vid_start',_0x137adb[_0x4926('0x3f')][_0x4926('0x4c')](_0x4926('0xda')),_0x4c5842),_0x47f544[_0x4926('0x1c')][_0x4926('0x8c')]('vid_end',_0x137adb[_0x4926('0x3f')][_0x4926('0x4c')](_0x4926('0xaa')),_0x4c5842));},{'priority':_0x4926('0x68')});}),this['editor'][_0x4926('0xf4')][_0x4926('0xce')](_0x4926('0x113'))[_0x4926('0x97')]({'view':{'name':_0x4926('0xf9'),'attributes':{'vid':!0x0}},'model':{'key':_0x4926('0xb4'),'value':_0x3e1828=>_0x3e1828[_0x4926('0x4c')]('vid')}}),this[_0x4926('0x98')]['model'][_0x4926('0xa0')]['on'](_0x4926('0x93'),(_0x59c5e9,[,_0x94cb1b])=>{[_0x4926('0xda'),'vid_end',_0x4926('0xb4')][_0x4926('0x28')](_0x94cb1b)&&(_0x59c5e9[_0x4926('0x90')]=!0x0,_0x59c5e9[_0x4926('0xd')]());},{'priority':'highest'}),this[_0x4926('0x98')][_0x4926('0xf4')][_0x4926('0xce')]('dataDowncast')[_0x4926('0x103')](_0x552892=>{_0x552892['on'](_0x4926('0x17'),(_0x5e2e4f,_0x2cc908,_0x2e2c7c)=>{if('\x20'!=_0x2cc908[_0x4926('0xb0')][_0x4926('0x2b')]||_0x2cc908[_0x4926('0xb0')][_0x4926('0x58')][_0x4926('0x50')]>0x1)return;if(!_0x2e2c7c[_0x4926('0x60')][_0x4926('0xc5')](_0x2cc908[_0x4926('0xb0')],_0x5e2e4f[_0x4926('0xc0')]))return;const _0x4ec0d8=_0x2e2c7c[_0x4926('0x1c')],_0x1bd41b=_0x2e2c7c[_0x4926('0x5e')]['toViewRange'](_0x2cc908[_0x4926('0xe0')]);_0x4ec0d8['wrap'](_0x1bd41b,_0x4ec0d8['createAttributeElement'](_0x4926('0xf9')));});}),this['editor'][_0x4926('0xf4')][_0x4926('0xce')]('dataDowncast')['markerToData']({'model':_0x4926('0xeb')}),this['editor']['editing'][_0x4926('0x109')]['on'](_0x4926('0x10c'),function(_0xe9fc06){const _0x1179db=_0xe9fc06[_0x4926('0x95')]['get'](_0x4926('0x65'));return(_0x1d4153,_0x43e39c,_0x5c49d4)=>{const _0x26590b=_0x43e39c[_0x4926('0xd5')][_0x4926('0x116')](':')[0x1],_0x34971b=_0x1179db[_0x4926('0x89')](_0x26590b);if(!_0x34971b)return null;const _0x4d87af=_0x4926('0x103')==_0x34971b[_0x4926('0x62')]?'split':'merge';if(!_0x5c49d4[_0x4926('0x60')][_0x4926('0x5c')](_0x43e39c[_0x4926('0xee')],_0x1d4153['name']))return;const _0x5e09ff=_0x43e39c[_0x4926('0xee')]['getWalker'](),_0x34aa10=_0x43e39c['markerRange'][_0x4926('0x10b')],_0x53f251=_0xe9fc06[_0x4926('0x55')]['schema'];let _0x129283=null,_0x924541=null,_0x5e6a60=!0x1,_0x3ade53=!0x1;for(const _0xf96722 of _0x5e09ff){const _0x413e9e=_0xf96722['item'];_0x5e6a60=_0x5e6a60||_0x53f251[_0x4926('0xf0')](_0x413e9e);const _0x2357a8=_0x5c49d4['mapper'][_0x4926('0x9c')](_0x413e9e);if(_0x2357a8&&_0x2357a8[_0x4926('0x2a')]('addHighlight'))return;'elementEnd'==_0xf96722[_0x4926('0x62')]&&(_0x53f251[_0x4926('0x11d')](_0x413e9e)&&!_0x53f251['isLimit'](_0x413e9e)&&(_0x413e9e['nextSibling']||_0x34aa10['isAtEnd']?_0x129283&&_0x129283[_0x4926('0x58')]==_0x413e9e||(_0x129283=_0x413e9e,_0x3e6fcd(_0xf96722[_0x4926('0xaf')]),_0x3ade53=!0x0):_0x924541=_0x924541||_0xf96722[_0x4926('0xaf')]));}function _0x3e6fcd(_0x1538fa){const _0x1b68ae=_0x5c49d4[_0x4926('0x1c')][_0x4926('0x57')]('span',{'class':_0x4926('0x92')+_0x4d87af}),_0x8552e=_0x5c49d4['mapper'][_0x4926('0x7f')](_0x1538fa);_0x34971b[_0x4926('0x2b')][_0x4926('0x121')]&&_0x5c49d4[_0x4926('0x1c')][_0x4926('0x9e')](_0x4926('0x92')+_0x4d87af+_0x4926('0x3d'),_0x1b68ae),_0x1179db[_0x4926('0xf')]==_0x34971b&&_0x5c49d4[_0x4926('0x1c')][_0x4926('0x9e')](_0x4926('0x1'),_0x1b68ae),_0x5c49d4[_0x4926('0x1c')][_0x4926('0x2')](_0x8552e,_0x1b68ae),_0x5c49d4[_0x4926('0x5e')][_0x4926('0x6d')](_0x1b68ae,_0x43e39c[_0x4926('0xd5')]);}_0x5e6a60||_0x3ade53||!_0x924541||_0x3e6fcd(_0x924541);};}(this[_0x4926('0x98')]),{'priority':_0x4926('0x38')}),this[_0x4926('0x98')][_0x4926('0x6f')]['downcastDispatcher']['on'](_0x4926('0x5'),(_0x32787b,_0x1ffc8f,_0x2849f2)=>{const _0x380586=_0x2849f2[_0x4926('0x5e')][_0x4926('0x6b')](_0x1ffc8f[_0x4926('0xd5')]);if(_0x380586)for(const _0xd4ca0b of _0x380586)(_0xd4ca0b[_0x4926('0x4d')](_0x4926('0x101'))||_0xd4ca0b[_0x4926('0x4d')]('ck-suggestion-marker-merge'))&&(_0x2849f2[_0x4926('0x5e')][_0x4926('0xa2')](_0xd4ca0b,_0x1ffc8f[_0x4926('0xd5')]),_0x2849f2['writer'][_0x4926('0x8b')](_0xd4ca0b));},{'priority':'high'}),this['editor'][_0x4926('0x6f')][_0x4926('0x109')]['on']('addMarker:revision',(_0x4879af,_0x5d7028,_0x1ea405)=>{const _0x45cb3e=_0x5d7028['markerName'][_0x4926('0x116')](':')[0x1],_0x59dacd=this[_0x4926('0x89')](_0x45cb3e);if(!_0x59dacd)return null;const _0x2b7c91=_0x4926('0x103')==_0x59dacd[_0x4926('0x62')]?_0x4926('0x116'):_0x4926('0xc1');if(_0x1ea405['consumable'][_0x4926('0x5c')](_0x5d7028[_0x4926('0xee')],_0x4879af['name']))for(const _0x329dbc of _0x5d7028[_0x4926('0xee')][_0x4926('0xbc')]()){if(!_0x329dbc['is']('element','softBreak'))continue;const _0x134205=_0x1ea405['writer'][_0x4926('0x57')]('span',{'class':_0x4926('0x92')+_0x2b7c91}),_0x1e9ce9=_0x1ea405[_0x4926('0x5e')][_0x4926('0x7f')](this[_0x4926('0x98')]['model']['createPositionBefore'](_0x329dbc));_0x59dacd[_0x4926('0x2b')][_0x4926('0x121')]&&_0x1ea405['writer']['addClass']('ck-suggestion-marker-'+_0x2b7c91+_0x4926('0x3d'),_0x134205),this[_0x4926('0xf')]==_0x59dacd&&_0x1ea405['writer']['addClass'](_0x4926('0x1'),_0x134205),_0x1ea405[_0x4926('0x1c')]['insert'](_0x1e9ce9,_0x134205),_0x1ea405[_0x4926('0x5e')]['bindElementToMarker'](_0x134205,_0x5d7028[_0x4926('0xd5')]);}},{'priority':_0x4926('0x38')}),this[_0x4926('0x98')]['model'][_0x4926('0x14')]['on'](_0x4926('0xc'),()=>{this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')]['change'](_0x3822c9=>{for(const _0x4fb837 of this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0x14')]['getRootNames']()){const _0x2facfe=this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0x14')]['getRoot'](_0x4fb837),_0x138d49=this[_0x4926('0x98')][_0x4926('0x6f')][_0x4926('0xcb')][_0x4926('0x14')]['getRoot'](_0x4fb837);if(_0x138d49){const _0x3f6475=_0x2facfe[_0x4926('0x4c')](_0x4926('0xd1'));if(_0x3822c9[_0x4926('0xb')](_0x4926('0xa'),_0x138d49),_0x3822c9[_0x4926('0x85')](_0x4926('0x9b'),_0x138d49),_0x3822c9[_0x4926('0x85')](_0x4926('0x22'),_0x138d49),_0x3822c9[_0x4926('0x85')](_0x4926('0x3c'),_0x138d49),_0x3f6475){const _0x1acf28=this[_0x4926('0x89')](_0x3f6475);if(!_0x1acf28)return null;_0x3822c9['setAttribute'](_0x4926('0xa'),_0x3f6475,_0x138d49),_0x3822c9[_0x4926('0x9e')](_0x4926('0x107')+_0x1acf28[_0x4926('0x62')],_0x138d49),this[_0x4926('0xf')]==_0x1acf28&&_0x3822c9[_0x4926('0x9e')]('ck-revision-history-root--active',_0x138d49);}}}});}),this['editor'][_0x4926('0xf4')]['for'](_0x4926('0x113'))[_0x4926('0xca')]({'view':_0x4926('0xf7'),'model':_0x5e911a=>_0x4926('0xdb')+_0x5e911a,'converterPriority':_0x4926('0x102')}),this[_0x4926('0x98')][_0x4926('0xf4')][_0x4926('0xce')]('upcast')['dataToMarker']({'view':_0x4926('0xbf'),'model':_0x5dd7db=>'revision-suggestion:'+_0x5dd7db,'converterPriority':_0x4926('0x102')}),this[_0x4926('0x98')]['conversion'][_0x4926('0xce')](_0x4926('0x11f'))[_0x4926('0xab')]({'model':_0x4926('0x8'),'view':_0x6715b7=>({'name':'suggestion:'+_0x6715b7,'group':_0x4926('0x8')}),'converterPriority':'highest'}),this[_0x4926('0x98')]['conversion'][_0x4926('0xce')](_0x4926('0x12'))[_0x4926('0xef')]({'model':_0x4926('0x8'),'view':_0x55ca65=>{const _0x4bc81c=_0x55ca65[_0x4926('0xd5')]['split'](':')[0x1];return _0x4926('0x64')!=_0x4bc81c&&_0x4926('0xe6')!=_0x4bc81c?null:{'classes':[_0x4926('0x29'),'ck-suggestion-preview-marker-'+_0x4bc81c]};}}),this['editor'][_0x4926('0x6f')][_0x4926('0x109')]['on'](_0x4926('0x34'),et(this[_0x4926('0x98')],_0x4926('0xc1')),{'priority':_0x4926('0x38')}),this['editor'][_0x4926('0x6f')][_0x4926('0x109')]['on'](_0x4926('0x126'),et(this[_0x4926('0x98')],_0x4926('0x116')),{'priority':_0x4926('0x38')}),this['editor'][_0x4926('0x6f')][_0x4926('0x109')]['on'](_0x4926('0xe3'),(_0x28658d,_0x3ecbe4,_0x133940)=>{const _0x28c576=_0x133940['mapper'][_0x4926('0x6b')](_0x3ecbe4[_0x4926('0xd5')]);if(_0x28c576)for(const _0x19b74e of _0x28c576)_0x19b74e['is'](_0x4926('0xe'))&&(_0x133940['mapper']['unbindElementFromMarkerName'](_0x19b74e,_0x3ecbe4['markerName']),_0x133940[_0x4926('0x1c')]['remove'](_0x19b74e));},{'priority':_0x4926('0x38')});}[_0x4926('0x89')](_0x430078){return this['_changeIdToChange'][_0x4926('0xb1')](_0x430078);}[_0x4926('0x36')](_0x6e831e){return this['_changeView']&&this['_changeView'][_0x4926('0xcf')](),this[_0x4926('0x114')]=new _0x4de14f(this['editor'][_0x4926('0x6c')],_0x6e831e),this[_0x4926('0x114')];}['_initInteractions'](){this[_0x4926('0x98')]['model'][_0x4926('0x14')][_0x4926('0xb2')][_0x4926('0x0')]('revision'),this['on']('change:activeView',(_0x3392d7,_0xa25574,_0x254558,_0x48b211)=>{_0x48b211&&this[_0x4926('0x79')][_0x4926('0x8b')](_0x48b211),_0x254558&&(this[_0x4926('0x79')][_0x4926('0x103')]({'view':_0x254558,'stackId':_0x4926('0x48'),'position':{'target':()=>{const _0x4909a2=this['editor'][_0x4926('0x6f')],_0x3c464b=this[_0x4926('0x89')](_0x254558[_0x4926('0x19')]);let _0x4565a8;if(_0x3c464b[_0x4926('0x2b')]['isOnRoot']){const _0x479fb3=_0x4909a2[_0x4926('0xcb')][_0x4926('0x112')](_0x3c464b[_0x4926('0xfd')]);_0x4565a8=Array[_0x4926('0xa4')](_0x479fb3[_0x4926('0x67')]());}else{const _0x526384=this[_0x4926('0x98')]['model'][_0x4926('0xc4')][_0x4926('0xb1')](_0x4926('0xb9')+_0x254558[_0x4926('0x19')]);_0x4565a8=Array['from'](_0x4909a2[_0x4926('0x5e')][_0x4926('0x6b')](_0x526384[_0x4926('0xc0')]))[_0x4926('0x25')](_0x58bf16=>_0x4909a2['view'][_0x4926('0x13')][_0x4926('0x120')](_0x58bf16))['map'](_0x4f9909=>Array[_0x4926('0xa4')](_0x4f9909['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4565a8[0x0];return _0x4565a8[_0x4926('0x66')](_0x1eda01=>_0x1eda01[_0x4926('0xf8')]-0x3<=this[_0x4926('0x96')]['y']&&_0x1eda01['bottom']+0x3>=this[_0x4926('0x96')]['y']&&_0x1eda01[_0x4926('0x21')]-0x3<=this[_0x4926('0x96')]['x']&&_0x1eda01[_0x4926('0x33')]+0x3>=this[_0x4926('0x96')]['x'])||_0x4565a8[0x0];}}}),this['_balloon'][_0x4926('0x52')](_0x4926('0x48')));}),this['on'](_0x4926('0xf5'),(_0x174aac,_0x2ccc59,_0xfe2be8,_0x3cd387)=>{this[_0x4926('0x1b')]=_0xfe2be8?this['_getViewForChange'](_0xfe2be8):null,this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0xc')](()=>{const _0x269bb2=this['editor']['editing'];_0x3cd387&&(_0x3cd387[_0x4926('0x2b')][_0x4926('0x76')]?_0x269bb2[_0x4926('0xcb')]['change'](_0x435346=>{_0x435346[_0x4926('0x85')](_0x4926('0x3c'),_0x269bb2[_0x4926('0xcb')][_0x4926('0x14')][_0x4926('0x43')](_0x3cd387['rootName']));}):_0x269bb2[_0x4926('0xbd')](_0x4926('0xb9')+_0x3cd387['id'])),_0xfe2be8&&(_0xfe2be8[_0x4926('0x2b')]['isOnRoot']?_0x269bb2[_0x4926('0xcb')][_0x4926('0xc')](_0xa962b8=>{_0xa962b8['addClass'](_0x4926('0x3c'),_0x269bb2[_0x4926('0xcb')]['document']['getRoot'](_0xfe2be8[_0x4926('0xfd')]));}):_0x269bb2[_0x4926('0xbd')]('revision:'+_0xfe2be8['id']));});}),this[_0x4926('0x9a')](this[_0x4926('0x98')][_0x4926('0x6f')]['view']['document'],_0x4926('0x74'),(_0x118935,_0x346c56)=>{if(this[_0x4926('0xf')])return;const _0x3ad907=this[_0x4926('0x122')](_0x346c56['target']),_0x20fc19=this[_0x4926('0xdd')][_0x4926('0xb1')](_0x3ad907);_0x20fc19?(this[_0x4926('0x96')]={'x':_0x346c56[_0x4926('0x118')]['x'],'y':_0x346c56['domEvent']['y']},this[_0x4926('0x1b')]=this['_getViewForChange'](_0x20fc19)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this[_0x4926('0x98')][_0x4926('0x6f')]['view']['document'],_0x4926('0x2c'),(_0x3d4f74,_0x1692aa)=>{const _0x233491=this[_0x4926('0x122')](_0x1692aa[_0x4926('0x7e')]),_0x5bb584=this[_0x4926('0xdd')][_0x4926('0xb1')](_0x233491);_0x5bb584?(this[_0x4926('0x96')]={'x':_0x1692aa[_0x4926('0x118')]['x'],'y':_0x1692aa[_0x4926('0x118')]['y']},_0x5bb584===this[_0x4926('0xf')]?this[_0x4926('0x79')][_0x4926('0xe4')]():this['activeChange']=_0x5bb584):(this[_0x4926('0x96')]=null,this[_0x4926('0xf')]=null);});}[_0x4926('0x122')](_0x4ecdb5){do{const _0x25a84d=_0x4ecdb5[_0x4926('0x4c')]('data-change-id');if(_0x25a84d)return _0x25a84d;_0x4ecdb5=_0x4ecdb5[_0x4926('0x58')];}while(_0x4ecdb5);return null;}[_0x4926('0xa8')](){this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0xc')](_0x1341c4=>{for(const _0x443426 of this[_0x4926('0x98')][_0x4926('0x55')][_0x4926('0xc4')])_0x1341c4[_0x4926('0xd8')](_0x443426);});}}function et(_0x484e26,_0x486525){return(_0x204e61,_0x10cb46,_0x256cd2)=>{if(!_0x256cd2[_0x4926('0x60')][_0x4926('0x5c')](_0x10cb46[_0x4926('0xee')],_0x204e61['name']))return;const _0x5b70fb=_0x10cb46[_0x4926('0xee')][_0x4926('0x63')](),_0x4a3f20=_0x10cb46[_0x4926('0xee')][_0x4926('0x10b')],_0x322f4f=_0x484e26[_0x4926('0x55')][_0x4926('0xa0')];let _0x4f2d61=null,_0x5da535=null,_0x2f982d=!0x1,_0x20f13e=!0x1;for(const _0x30ab05 of _0x5b70fb){const _0x1ec58f=_0x30ab05[_0x4926('0xb0')];_0x2f982d=_0x2f982d||_0x322f4f[_0x4926('0xf0')](_0x1ec58f);const _0x5edc8c=_0x256cd2[_0x4926('0x5e')]['toViewElement'](_0x1ec58f);if(_0x5edc8c&&_0x5edc8c['getCustomProperty'](_0x4926('0xd9')))return;'elementEnd'==_0x30ab05[_0x4926('0x62')]&&(_0x322f4f[_0x4926('0x11d')](_0x1ec58f)&&!_0x322f4f['isLimit'](_0x1ec58f)&&(_0x1ec58f[_0x4926('0x44')]||_0x4a3f20[_0x4926('0x119')]?_0x4f2d61&&_0x4f2d61[_0x4926('0x58')]==_0x1ec58f||(_0x4f2d61=_0x1ec58f,_0x471f03(_0x30ab05[_0x4926('0xaf')]),_0x20f13e=!0x0):_0x5da535=_0x5da535||_0x30ab05[_0x4926('0xaf')]));}function _0x471f03(_0x2c8cff){const _0x49c452=_0x256cd2[_0x4926('0x5e')]['toViewPosition'](_0x2c8cff),_0x4600be=_0x256cd2[_0x4926('0x1c')][_0x4926('0x57')]('span',{'class':_0x4926('0x5b')+_0x486525});_0x256cd2[_0x4926('0x1c')]['insert'](_0x49c452,_0x4600be),_0x256cd2['mapper']['bindElementToMarker'](_0x4600be,_0x10cb46['markerName']);}_0x2f982d||_0x20f13e||!_0x5da535||_0x471f03(_0x5da535);};}export class RestoreRevisionCommand extends _0x196c82{constructor(_0x1ec3df){super(_0x1ec3df);const _0x2fffbd=_0x1ec3df[_0x4926('0x95')][_0x4926('0xb1')](d);this['affectsData']=!0x1,this[_0x4926('0x9a')](_0x2fffbd,_0x4926('0xa3'),()=>this[_0x4926('0x2f')]()),this[_0x4926('0x9a')](_0x2fffbd,_0x4926('0x3e'),()=>this[_0x4926('0x2f')]());}[_0x4926('0x10f')](){const _0x2c4b63=this['editor'],_0x503fb4=_0x2c4b63['plugins'][_0x4926('0xb1')](d),_0x3f8077=_0x503fb4[_0x4926('0x110')]?_0x503fb4[_0x4926('0x99')][_0x4926('0xb6')]:null;_0x2c4b63[_0x4926('0x111')]['get']('revisionHistory')[_0x4926('0x4')](_0x3f8077);}[_0x4926('0x2f')](){const {isReady:_0x138e18,isEnabled:_0x4d837d}=this['editor'][_0x4926('0x95')]['get'](d);this[_0x4926('0xd7')]=_0x138e18&&_0x4d837d;}}export class ShowChangeCommand extends _0x196c82{constructor(_0x59462f,{direction:_0x491d4f}){super(_0x59462f);const _0x3b0260=_0x59462f[_0x4926('0x95')]['get'](d);this['affectsData']=!0x1,this[_0x4926('0x106')]='forward'===_0x491d4f?0x1:-0x1,this['listenTo'](_0x3b0260,'change:isReady',()=>this['refresh']()),this[_0x4926('0x9a')](_0x3b0260,_0x4926('0x3e'),()=>this[_0x4926('0x2f')]()),this['listenTo'](_0x3b0260,_0x4926('0xf5'),()=>this['refresh']());}['execute'](){const _0x274ece=this[_0x4926('0x98')],_0x2d45d1=_0x274ece[_0x4926('0x95')]['get'](d),{isNavigationMode:_0x8d485c,currentChangeNumber:_0x434c58}=_0x2d45d1;let _0x2e9da9;if(_0x2d45d1['activeChange']=_0x8d485c?_0x2d45d1[_0x4926('0x99')][_0x4926('0x4a')][_0x4926('0xb1')](_0x434c58+this[_0x4926('0x106')]):_0x2d45d1[_0x4926('0x99')][_0x4926('0x4a')]['first'],_0x2d45d1[_0x4926('0xf')][_0x4926('0x2b')]['isOnRoot'])_0x2e9da9=_0x274ece['editing'][_0x4926('0xcb')][_0x4926('0x112')](_0x2d45d1[_0x4926('0xf')][_0x4926('0xfd')]);else{const _0x1e4dfa=_0x274ece[_0x4926('0x55')][_0x4926('0xc4')]['get'](_0x4926('0xb9')+_0x2d45d1['activeChange']['id']);_0x2e9da9=_0x2334ee(_0x274ece[_0x4926('0x6f')],_0x1e4dfa);}_0x533979({'target':_0x2e9da9,'viewportOffset':0x28});}[_0x4926('0x2f')](){const {isNavigationMode:_0x566ea0,currentChangeNumber:_0x48e510,numberOfChanges:_0x28d6ea,isReady:_0x1d3496,isEnabled:_0x324ad0}=this['editor']['plugins'][_0x4926('0xb1')](d);this['isEnabled']=!!(_0x324ad0&&_0x1d3496&&_0x28d6ea)&&(!_0x566ea0||(0x1===this[_0x4926('0x106')]?_0x48e510<_0x28d6ea-0x1:_0x48e510>0x0));}}
|
|
23
|
+
const _0x7418=['then','revision:','merge','for','add','isLimit','mapViewToDom','toViewPosition','split','softBreak','getRootNames','consumable','createUIElement','indexOf','_removeMissingPairs','revisionHistoryAttachChange','_refreshStartEndIndex','addClass','change:numberOfChanges','change:activeView','revision-viewer','side','_findChangeIdFromDomTarget','addRoot','length','setAttribute','deletions','attributesAfter','collaboration.channelId','ck-suggestion-marker-split','document','isReady','markerName','activeChange','keys','parent','_markMarkers','left','restoreRevisionCallback','change:activeChange','_sortAndFilterDiffChanges','elementEnd','_update','data','_step','newRevisionId','comment','get','markersStart','backward','commands','getDomRoot','done','removeMarker:revision-suggestion','createRangeIn','find','sort','_removeUnsupportedChanges','_threeWayMerge','_cleanUp','string','showNextChange','model','_getViewForChange','shift','highest','_balloon','code','domEvent','mousedown','toViewRange','addHighlight','modelRange','all','level','has','target','userId','ck-suggestion-preview-marker-','_getViewObj','_makeTape','push','_appendChild','startsWith','adapter','suggestion','right','getCustomProperty','stop','includes','addMarker:revision','data-revision-','revision-end','ck-revision-history-root-','loadRevisionData','index','_markInsertions','requires','hasAttribute','type','_removeRevisionMarkers','compare','roots','ck-suggestion-marker-merge','revision','diff','addRevisionData','getIndex','_setConversion','view','reconvertMarker','_processTape','ck-suggestion-marker-','isIncorrect','removeClass','filter','_getChangeFromId','updatePosition','_setDistance','init','rootName','isEnabled','abs','change:isEnabled','forceDisabled','revision-suggestion','map','markerToHighlight','isCollapsed','editing','editingDowncast','createPositionFromPath','isAttached','_data','getAttribute','showStack','schema','revision-start','bottom','markersEnd','top','isContent','nextPosition','toData','_fixObsoleteTags','ck-revision-history-root-remove','repository','isEqual','getRevision','insertions','slice','_getDiff','getItems','forward','mapper','isBlock','bind','upcast','writer','start','activeView','set','useFillerType','_changeView','viewItem','isAfter','vid_start','clear','destroy','forEach','getAttributes','low','end','splice','return','high','RevisionsRepository','isAddSuggestion','editor','remove','children','from','diffData','catch','consume','attributesBefore','vid','isAtEnd','default','change','bindElementToMarker','insert','ck-suggestion-marker--active','pairId','restoreRevision','isAdded','-new','config','object','changes','currentChangeNumber','nodeAfter','nextSibling','elementStart','observeMarkers','domConverter','revisionHistoryLabel','_getRevisionsRange','hasClass','toViewElement','markerNameToElements','data-change-id','isBefore','markerToData','refresh','item','offsetSize','changeId','listenTo','_joinTapes','revisionHistory','vid_end','text','_markMismatchedRemovedTags','_setChanges','ck-revision-history-root-add','oldRevisionId','_cleanMarkers','next','addRevision','plugins','conversion','authors','name','unbindElementFromMarkerName','isNavigationMode','getRoot','_activeViewTarget','change:isReady','concat','isOnRoot','flat','isRemoved','unshift','findIndex','revision-comment:','attachChange','addMarker:revision-suggestion:insertion','affectsData','dataToMarker','startIndex','uiElement','deletion','RevisionViewer','execute','delete','isRemoveSuggestion','isSuggestion','attributes','parse','createAttributeElement','previousPosition','distance','POSITIVE_INFINITY','getRevisionData','attribute:vid','createRange','enableReadOnlyMode','ck-suggestion-marker','suggestion:','mouseover','markerRange','endIndex','wrap','_markSuggestions','ck-editor__editable__overlay','processor','span','_makeModelFromViewString','downcastDispatcher','insertion','isObject','getClientRects','pop','_changeIdToChange','dataDowncast','ck-revision-history-root--active','WidgetToolbarRepository','markers','element','test','element:pre','getWalker','removeMarker'];(function(_0x4a3140,_0x7418af){const _0x168e07=function(_0x1f6f86){while(--_0x1f6f86){_0x4a3140['push'](_0x4a3140['shift']());}};_0x168e07(++_0x7418af);}(_0x7418,0x19b));const _0x168e=function(_0x4a3140,_0x7418af){_0x4a3140=_0x4a3140-0x0;let _0x168e07=_0x7418[_0x4a3140];return _0x168e07;};import{Plugin as _0x4bfa8a,Command as _0x1de69a}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2ade8d}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2faec6}from'ckeditor5/src/ui';import{DocumentFragment as _0x33aff6,Element as _0x604797,Text as _0x4f1726,ViewDocumentFragment as _0x2e1cc0,ViewText as _0x290f73,ViewElement as _0x4a32ab,ViewContainerElement as _0x28ee78,ViewAttributeElement as _0x5329e4,ViewEmptyElement as _0x4f9381,ViewRawElement as _0x20c839,ViewUIElement as _0x2d1762}from'ckeditor5/src/engine';import{Users as _0x3d7b12,getMarkerDomElement as _0xb48a2c}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ee96d from'./ui/revisionviewer/changedetailsview';import _0x3f40c0 from'./revisionsrepository';import _0x336f54 from'./changeitem';import{default as _0x32ed9a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3b2a5b}from'lodash-es';const tt={'c':_0x28ee78,'a':_0x5329e4,'e':_0x4f9381,'r':_0x20c839,'u':_0x2d1762};export default class d extends _0x4bfa8a{static get['pluginName'](){return _0x168e('0x88');}static get[_0x168e('0x112')](){return[_0x3d7b12,_0x2faec6,_0x3f40c0];}constructor(_0x1be26d){super(_0x1be26d),this[_0x168e('0x1d')]=this[_0x168e('0x3d')]['plugins'][_0x168e('0xe0')](_0x168e('0x3b')),this['set']('activeChange',null),this['set'](_0x168e('0x2b'),null),this[_0x168e('0x78')]=null,this[_0x168e('0x2c')]('diff',null),this[_0x168e('0x2c')](_0x168e('0xd0'),!0x1),this[_0x168e('0x2c')](_0x168e('0x4'),!0x0),this['on'](_0x168e('0x6'),(_0x518848,_0x546765,_0x4f9457)=>{this[_0x168e('0xd2')]=null,this['activeView']=null,this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')][_0x168e('0x48')](_0x505db6=>{for(const _0x2d323b of this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')][_0x168e('0xcf')][_0x168e('0x117')])_0x4f9457?_0x505db6[_0x168e('0x123')](_0x168e('0x9e'),_0x2d323b):_0x505db6[_0x168e('0xc2')](_0x168e('0x9e'),_0x2d323b);});}),this[_0x168e('0x27')](_0x168e('0x76'))['to'](this,'activeChange',_0x548543=>null!==_0x548543),this['bind'](_0x168e('0x53'))['to'](this,_0x168e('0xd0'),this,_0x168e('0x11a'),this,_0x168e('0xd2'),(_0x555ef2,_0x44b1b3,_0x4d0c96)=>_0x555ef2&&_0x4d0c96?_0x44b1b3[_0x168e('0x52')]['getIndex'](_0x4d0c96):0x0),this[_0x168e('0x27')]('numberOfChanges')['to'](this,_0x168e('0xd0'),this,_0x168e('0x11a'),(_0x39c42f,_0x47f4e9)=>_0x39c42f?_0x47f4e9[_0x168e('0x52')]['length']:0x0),this[_0x168e('0x2e')]=null,this[_0x168e('0xa7')]=new Map(),this[_0x168e('0x105')]=null,this[_0x168e('0xf3')]=this[_0x168e('0x3d')][_0x168e('0x71')][_0x168e('0xe0')](_0x2faec6);}[_0x168e('0x2')](){const _0x1da136=this[_0x168e('0x3d')],_0x108bff=new ShowChangeCommand(_0x1da136,{'direction':_0x168e('0xe2')}),_0x4ac1c0=new ShowChangeCommand(_0x1da136,{'direction':_0x168e('0x24')});(_0x1da136[_0x168e('0xe3')][_0x168e('0xb5')]('showPreviousChange',_0x108bff),_0x1da136[_0x168e('0xe3')][_0x168e('0xb5')](_0x168e('0xee'),_0x4ac1c0),_0x1da136[_0x168e('0xe3')][_0x168e('0xb5')](_0x168e('0x4d'),new RestoreRevisionCommand(_0x1da136)),this['on'](_0x168e('0xc3'),()=>{_0x108bff['refresh'](),_0x4ac1c0[_0x168e('0x61')]();}),this[_0x168e('0x11d')](),this['_initInteractions'](),_0x1da136[_0x168e('0x96')](_0x168e('0xc5')),_0x1da136[_0x168e('0x71')]['has'](_0x168e('0xaa')))&&_0x1da136[_0x168e('0x71')]['get'](_0x168e('0xaa'))[_0x168e('0x7')](_0x168e('0xc5'));}async[_0x168e('0x93')](_0x3e6462){await this[_0x168e('0x10f')](_0x3e6462);const _0x206806={};for(const _0x42e210 in _0x3e6462[_0x168e('0x41')]){if(_0x3e6462['diffData'][_0x42e210][_0x168e('0x81')]&&!_0x3e6462[_0x168e('0x41')][_0x42e210][_0x168e('0x81')][_0x168e('0xf')])continue;const _0x15a701=this[_0x168e('0x115')](JSON[_0x168e('0x8e')](_0x3e6462['diffData'][_0x42e210][_0x168e('0x20')])),_0x57c956=this['editor'][_0x168e('0xc')][_0x168e('0x11e')][_0x168e('0xcf')],_0x59b571=new _0x2e1cc0(_0x57c956,_0x15a701[_0x168e('0x9')](_0x49be06=>this['_getViewObj'](_0x49be06)));this[_0x168e('0x3d')][_0x168e('0xdc')][_0x168e('0x9f')]['useFillerType']('marked'),_0x206806[_0x42e210]=this[_0x168e('0x3d')]['data'][_0x168e('0x9f')][_0x168e('0x1a')](_0x59b571),this['editor'][_0x168e('0xdc')]['processor'][_0x168e('0x2d')](_0x168e('0x47'));}return _0x206806;}async['getRevisionRootsAttributes'](_0x39d5fa){await this[_0x168e('0x10f')](_0x39d5fa);const _0x13049f={};for(const _0x6d67ad in _0x39d5fa['diffData'])_0x39d5fa[_0x168e('0x41')][_0x6d67ad][_0x168e('0x81')]&&!_0x39d5fa[_0x168e('0x41')][_0x6d67ad]['attachChange']['isAttached']||(_0x13049f[_0x6d67ad]=_0x39d5fa['diffData'][_0x6d67ad]['attributesAfter']||{});return _0x13049f;}[_0x168e('0x115')](_0x26f3ce){return(_0x26f3ce=_0x26f3ce[_0x168e('0x124')](_0x511875=>!_0x511875[_0x168e('0x74')]||_0x168e('0x14')!==_0x511875[_0x168e('0x74')]&&_0x168e('0x10d')!==_0x511875[_0x168e('0x74')]))['forEach'](_0x2a9186=>{_0x168e('0xed')!=typeof _0x2a9186&&(_0x2a9186[_0x168e('0x3f')]=this[_0x168e('0x115')](_0x2a9186['children']),_0x2a9186['attributes']=_0x2a9186[_0x168e('0x8d')]['filter'](_0x2f1c3a=>!_0x2f1c3a[0x0][_0x168e('0x104')](_0x168e('0x10c'))));}),_0x26f3ce;}async[_0x168e('0x116')](_0x57d8e0,_0x302359,_0x51408d=!0x1){if(!this[_0x168e('0x4')])return;const _0x53c91e=this['diff'],_0x125d25=this[_0x168e('0x1d')],_0x288f2d=_0x168e('0xed')==typeof _0x57d8e0?_0x125d25['getRevision'](_0x57d8e0):_0x57d8e0,_0x232233='string'==typeof _0x302359?_0x125d25[_0x168e('0x1f')](_0x302359):_0x302359,_0x56b659=_0x288f2d['id'],_0x4fa170=_0x232233?_0x232233['id']:null;if(!_0x51408d&&this[_0x168e('0x11a')]&&this[_0x168e('0x11a')][_0x168e('0xde')]===_0x56b659&&this[_0x168e('0x11a')][_0x168e('0x6d')]===_0x4fa170)return Promise['resolve']();this[_0x168e('0xd0')]=!0x1,this[_0x168e('0x2b')]=null,this[_0x168e('0xd2')]=null,this[_0x168e('0x11a')]=new _0x32ed9a(_0x56b659,_0x4fa170);const _0x58e88f=this[_0x168e('0x5a')](_0x288f2d,_0x232233,!0x0)[_0x168e('0x9')](_0x1120c6=>this[_0x168e('0x10f')](_0x1120c6));return _0x58e88f[_0x168e('0x102')](new Promise(_0x42cb0a=>{setTimeout(_0x42cb0a,0x14);})),Promise[_0x168e('0xfa')](_0x58e88f)[_0x168e('0xb1')](()=>{if(!this[_0x168e('0x4')])return;this['_cleanUp']();const _0x42151b=this[_0x168e('0x22')](_0x56b659,_0x4fa170);for(const _0x1fc55a of _0x42151b[_0x168e('0x52')])this[_0x168e('0xa7')][_0x168e('0x2c')](_0x1fc55a['id'],_0x1fc55a);this[_0x168e('0x3d')][_0x168e('0xef')]['enqueueChange']({'isUndoable':!0x1},_0x48e26b=>{for(const _0x424106 of this['editor'][_0x168e('0xef')][_0x168e('0xcf')][_0x168e('0xbb')]())_0x48e26b['detachRoot'](_0x424106);for(const _0xb44e5a of Object[_0x168e('0xd3')](_0x42151b[_0x168e('0xef')])){const _0x5c52b8=_0x48e26b[_0x168e('0xc8')](_0xb44e5a);for(const _0x2db4ff of Object[_0x168e('0xd3')](_0x42151b[_0x168e('0x8d')][_0xb44e5a]))_0x48e26b[_0x168e('0xca')](_0x2db4ff,_0x42151b['attributes'][_0xb44e5a][_0x2db4ff],_0x5c52b8);_0x48e26b[_0x168e('0x4a')](_0x42151b[_0x168e('0xef')][_0xb44e5a],_0x5c52b8,0x0);}}),this[_0x168e('0x11a')][_0x168e('0x6b')](this[_0x168e('0xd9')](_0x42151b[_0x168e('0x52')])),this[_0x168e('0xd0')]=!0x0;})[_0x168e('0x42')](_0x139e99=>{console['error'](_0x139e99),this[_0x168e('0xec')](),_0x53c91e&&(this[_0x168e('0x11a')]=_0x53c91e),this[_0x168e('0xd0')]=!0x0;});}[_0x168e('0x11b')](_0x1b1d2d,_0x191eff){const _0x123a21=this['repository']['createRevision'](_0x1b1d2d);return _0x123a21['on'](_0x168e('0xdb'),(_0x651494,_0x51c9f6,_0x2a056b)=>_0x191eff(_0x51c9f6,_0x2a056b,_0x123a21)),this[_0x168e('0x1d')][_0x168e('0x70')](_0x123a21),_0x123a21;}[_0x168e('0x10f')](_0x145349){if(!_0x145349||_0x145349[_0x168e('0x41')])return Promise['resolve']();{const _0xc557a6=this[_0x168e('0x3d')][_0x168e('0x50')][_0x168e('0xe0')](_0x168e('0xcd'));return this[_0x168e('0x105')][_0x168e('0x1f')]({'channelId':_0xc557a6,'revisionId':_0x145349['id']})[_0x168e('0xb1')](_0x40d1fc=>{_0x145349[_0x168e('0xdb')]({'diffData':_0x40d1fc[_0x168e('0x41')]},!0x0);});}}[_0x168e('0xec')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x168e('0x2e')]&&this[_0x168e('0x2e')][_0x168e('0x33')](),this[_0x168e('0x2e')]=null,this[_0x168e('0xa7')][_0x168e('0x32')](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x43f5a5=>{for(const _0x5f0d24 of this[_0x168e('0x3d')]['model']['document'][_0x168e('0xbb')]())_0x43f5a5['detachRoot'](_0x5f0d24);});}[_0x168e('0xd9')](_0x5a42e1){const _0x187842=[],_0x50e607=new Map();for(const _0x5561cf of this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xcf')][_0x168e('0xbb')]()){const _0x239dcf=this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')]['getDomRoot'](_0x5561cf);if(!_0x239dcf)continue;const _0x13a213=_0x239dcf['getClientRects']()['item'](0x0);_0x13a213&&(_0x187842[_0x168e('0x102')](_0x5561cf),_0x50e607['set'](_0x5561cf,_0x13a213));}return _0x187842[_0x168e('0xe9')]((_0x25645c,_0x1c5d35)=>{const _0x3c4c6f=_0x50e607['get'](_0x25645c),_0x17d338=_0x50e607[_0x168e('0xe0')](_0x1c5d35);return _0x3c4c6f['y']-_0x17d338['y']||_0x3c4c6f['x']-_0x17d338['x'];}),(_0x5a42e1=_0x5a42e1[_0x168e('0x124')](_0x4c3e27=>_0x187842['includes'](_0x4c3e27['rootName'])))[_0x168e('0xe9')]((_0x13a03c,_0x49301f)=>_0x187842[_0x168e('0xbe')](_0x13a03c['rootName'])-_0x187842['indexOf'](_0x49301f[_0x168e('0x3')])),_0x5a42e1;}[_0x168e('0x101')](_0x36d706){const _0x3c1909=Array[_0x168e('0x40')](_0x36d706[_0x168e('0xab')])['filter'](([_0x4d507c,_0x232659])=>_0x4d507c[_0x168e('0x104')](_0x168e('0xb2'))&&!_0x232659[_0x168e('0xb')]),_0x410a81=Array['from'](this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xe7')](_0x36d706)[_0x168e('0xaf')]({'singleCharacters':!0x0}));if(0x0!=_0x3c1909[_0x168e('0xc9')])for(const _0x1828c3 of _0x410a81){const [_0x562e8f,_0x309fde]=_0x3c1909[0x0],[,_0x62c1e6,_0x43213f]=_0x562e8f['split'](':');if(_0x309fde[_0x168e('0x37')][_0x168e('0x1e')](_0x1828c3[_0x168e('0x19')])&&_0x3c1909['shift'](),(_0x1828c3[_0x168e('0x90')][_0x168e('0x1e')](_0x309fde[_0x168e('0x2a')])||_0x1828c3[_0x168e('0x90')]['isAfter'](_0x309fde[_0x168e('0x2a')]))&&(_0x168e('0xa3')==_0x62c1e6?_0x1828c3[_0x168e('0x4e')]={'userId':_0x43213f}:_0x168e('0x87')==_0x62c1e6&&(_0x1828c3[_0x168e('0x7d')]={'userId':_0x43213f})),0x0==_0x3c1909[_0x168e('0xc9')])break;}return _0x410a81;}[_0x168e('0xc1')](_0x2f6c0e){const _0x445cf7=new Map();for(let _0x5e508e=0x0;_0x5e508e<_0x2f6c0e[_0x168e('0xc9')];_0x5e508e++)_0x168e('0x69')===_0x2f6c0e[_0x5e508e]['type']?(_0x2f6c0e[_0x5e508e]['item'][_0x168e('0x85')]=_0x5e508e,_0x2f6c0e[_0x5e508e][_0x168e('0x62')][_0x168e('0x9b')]=_0x5e508e):(_0x168e('0x56')===_0x2f6c0e[_0x5e508e]['type']?_0x2f6c0e[_0x5e508e][_0x168e('0x62')]['startIndex']=_0x5e508e:_0x168e('0xda')===_0x2f6c0e[_0x5e508e]['type']&&(_0x2f6c0e[_0x5e508e]['item'][_0x168e('0x9b')]=_0x5e508e),_0x445cf7['set'](_0x2f6c0e[_0x5e508e]['id'],_0x5e508e));for(const _0x4eb419 of _0x445cf7['values']())_0x168e('0x56')===_0x2f6c0e[_0x4eb419]['type']?_0x2f6c0e[_0x4eb419][_0x168e('0x62')][_0x168e('0x9b')]=_0x445cf7[_0x168e('0xe0')](_0x2f6c0e[_0x4eb419][_0x168e('0x4c')]):'elementEnd'===_0x2f6c0e[_0x4eb419]['type']&&(_0x2f6c0e[_0x4eb419][_0x168e('0x62')]['startIndex']=_0x445cf7[_0x168e('0xe0')](_0x2f6c0e[_0x4eb419][_0x168e('0x4c')]));}[_0x168e('0x120')](_0x46e776){for(let _0x377ef0=0x0;_0x377ef0<_0x46e776[_0x168e('0xc9')];_0x377ef0++){if(_0x168e('0x56')===_0x46e776[_0x377ef0][_0x168e('0x114')])_0x46e776[_0x377ef0][_0x168e('0x62')][_0x168e('0x85')]=_0x377ef0;else{if(_0x168e('0xda')===_0x46e776[_0x377ef0]['type']){_0x46e776[_0x377ef0]['item'][_0x168e('0x9b')]=_0x377ef0;const _0x316913=_0x46e776[_0x377ef0][_0x168e('0x62')][_0x168e('0x85')];_0x46e776[_0x316913]['pairId']=_0x46e776[_0x377ef0]['id'],_0x46e776[_0x377ef0][_0x168e('0x4c')]=_0x46e776[_0x316913]['id'];}else _0x46e776[_0x377ef0][_0x168e('0x62')][_0x168e('0x85')]=_0x377ef0,_0x46e776[_0x377ef0][_0x168e('0x62')]['endIndex']=_0x377ef0,_0x46e776[_0x377ef0][_0x168e('0x4c')]=null;}_0x46e776[_0x377ef0][_0x168e('0xe1')]||(_0x46e776[_0x377ef0][_0x168e('0xe1')]=[],_0x46e776[_0x377ef0]['markersEnd']=[]);}}[_0x168e('0x111')](_0x1429c4,_0x4582f4){const _0x475a14=_0x1429c4['filter'](_0x2aab45=>!_0x2aab45[_0x168e('0x4e')]);for(let _0x4257f9=0x0;_0x4257f9<_0x4582f4[_0x168e('0xc9')];_0x4257f9++)_0x4582f4[_0x4257f9][_0x168e('0x4e')]&&(_0x475a14[_0x4257f9]['isAdded']=_0x4582f4[_0x4257f9][_0x168e('0x4e')]);}[_0x168e('0xa1')](_0x59283b){const _0x1c04de=JSON[_0x168e('0x8e')](_0x59283b),_0x400918=this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')]['document'],_0x5ee049=new _0x2e1cc0(_0x400918,_0x1c04de[_0x168e('0x9')](_0x2378b5=>this[_0x168e('0x100')](_0x2378b5)));return this[_0x168e('0x3d')][_0x168e('0xdc')]['toModel'](_0x5ee049);}[_0x168e('0x100')](_0x2bfee4){const _0x437ab4=this[_0x168e('0x3d')]['editing'][_0x168e('0x11e')][_0x168e('0xcf')];if(_0x168e('0xed')==typeof _0x2bfee4)return new _0x290f73(_0x437ab4,_0x2bfee4);{const _0x15476e=_0x2bfee4['children']['map'](_0x5240de=>this[_0x168e('0x100')](_0x5240de));return new(tt[_0x2bfee4[(_0x168e('0x114'))]]||_0x4a32ab)(_0x437ab4,_0x2bfee4[_0x168e('0x74')],_0x2bfee4[_0x168e('0x8d')],_0x15476e);}}[_0x168e('0x22')](_0x285dcf,_0x2fd522=null){const _0x5082af=this[_0x168e('0x1d')][_0x168e('0x1f')](_0x285dcf),_0x42880e=_0x2fd522?this[_0x168e('0x1d')]['getRevision'](_0x2fd522):null,_0x329cb5=this[_0x168e('0x5a')](_0x5082af,_0x42880e),_0x13f0be=_0x329cb5[_0x329cb5[_0x168e('0xc9')]-0x1],_0xfc5d52=new Map(),_0x272f84={'model':{},'attributes':{},'changes':[]},_0x421637=new Set(),_0x26718a=new Map();for(let _0x57b8bc=_0x329cb5[_0x168e('0xc9')]-0x1;_0x57b8bc>=0x0;_0x57b8bc--){const _0x3d5d6e=_0x329cb5[_0x57b8bc];for(const _0xcd68a7 of Object['keys'](_0x3d5d6e['diffData']))if(_0x3d5d6e[_0x168e('0x41')][_0xcd68a7][_0x168e('0x81')]){const _0xa5bc4f=_0x3d5d6e['diffData'][_0xcd68a7][_0x168e('0x81')];_0xa5bc4f[_0x168e('0xf')]?(_0x421637['add'](_0xcd68a7),_0x26718a['has'](_0xcd68a7)&&_0x26718a[_0x168e('0xe0')](_0xcd68a7)['userId']==_0xa5bc4f[_0x168e('0xfe')]?_0x26718a[_0x168e('0x8a')](_0xcd68a7):_0x26718a[_0x168e('0x2c')](_0xcd68a7,_0xa5bc4f)):_0x26718a[_0x168e('0xfc')](_0xcd68a7)?(_0x421637[_0x168e('0x8a')](_0xcd68a7),_0x26718a[_0x168e('0x8a')](_0xcd68a7)):(_0x421637['add'](_0xcd68a7),_0x26718a[_0x168e('0x2c')](_0xcd68a7,_0xa5bc4f));}else _0x421637[_0x168e('0xb5')](_0xcd68a7);}for(const _0x5d3367 of _0x421637){const _0x2fffde=_0x26718a['has'](_0x5d3367)&&!_0x26718a[_0x168e('0xe0')](_0x5d3367)[_0x168e('0xf')];let _0x41ac4d=_0x2fffde?_0x329cb5[_0x168e('0xc9')]-0x1:0x0;const _0x348e3d=_0x2fffde?-0x1:0x1;for(;_0x329cb5[_0x41ac4d];){const _0x3b3cfb=_0x329cb5[_0x41ac4d];if(_0x3b3cfb[_0x168e('0x41')][_0x5d3367]){const _0x251676=_0x2fffde?_0x3b3cfb[_0x168e('0x41')][_0x5d3367][_0x168e('0x44')]:_0x3b3cfb[_0x168e('0x41')][_0x5d3367][_0x168e('0xcc')];_0x272f84['attributes'][_0x5d3367]=_0x251676?_0x3b2a5b(_0x251676):{};break;}_0x41ac4d+=_0x348e3d;}}for(const _0x38ccca of _0x329cb5){_0x38ccca[_0x168e('0xef')]={};for(const _0x203dbe of _0x38ccca[_0x168e('0x73')])_0xfc5d52[_0x168e('0x2c')](_0x203dbe['id'],_0x203dbe);for(const _0x591076 of _0x421637){const _0x5340cd=_0x38ccca[_0x168e('0x41')][_0x591076]?_0x38ccca[_0x168e('0x41')][_0x591076][_0x168e('0x20')]:'[]',_0x320787=_0x38ccca['diffData'][_0x591076]?_0x38ccca[_0x168e('0x41')][_0x591076][_0x168e('0xcb')]:'[]';_0x38ccca['model'][_0x591076]={'insertions':this[_0x168e('0xa1')](_0x5340cd),'deletions':this[_0x168e('0xa1')](_0x320787)};}}for(const _0x3121be of _0x421637){let _0x48d7a6=null,_0x2e8d72=0x0;const _0x8d0e17=new Map(Array[_0x168e('0x40')](_0x5082af[_0x168e('0xef')][_0x3121be][_0x168e('0x20')]['markers'])[_0x168e('0x124')](([_0x5946b4])=>!_0x5946b4[_0x168e('0x104')]('revision:')));let _0x17a2e2=0x0;for(const _0x34ccba of _0x329cb5){const _0x2cee70=this['_makeTape'](_0x34ccba[_0x168e('0xef')][_0x3121be][_0x168e('0x20')]);_0x34ccba==_0x5082af?(_0x48d7a6=_0x2cee70,_0x2e8d72=_0x48d7a6[_0x168e('0xc9')],_0x48d7a6[_0x168e('0x34')](_0x43fb1c=>{_0x43fb1c['id']=_0x17a2e2++;}),this[_0x168e('0x120')](_0x48d7a6)):this[_0x168e('0x111')](_0x48d7a6,_0x2cee70);const _0x3be3a0=_0x48d7a6[_0x168e('0x124')](_0x4db8a2=>!_0x4db8a2['isAdded'])[_0x168e('0x9')](_0x14846b=>_0x14846b['id']);let _0x546ac1=0x0;const _0x117c0d=this[_0x168e('0x101')](_0x34ccba[_0x168e('0xef')][_0x3121be][_0x168e('0xcb')]);_0x117c0d[_0x168e('0x34')](_0xbba442=>{_0xbba442['isRemoved']?_0xbba442['id']=_0x2e8d72++:_0xbba442['id']=_0x3be3a0[_0x546ac1++];}),this[_0x168e('0x120')](_0x117c0d),this['_setDistance'](_0x48d7a6,'isAdded'),this['_setDistance'](_0x117c0d,_0x168e('0x7d')),_0x34ccba==_0x5082af&&this[_0x168e('0xd5')](_0x48d7a6,_0x8d0e17),_0x48d7a6=this[_0x168e('0x66')](_0x48d7a6,_0x117c0d),this[_0x168e('0xc1')](_0x48d7a6),this[_0x168e('0x1')](_0x48d7a6,'isRemoved');}_0x48d7a6=_0x48d7a6['filter'](_0x2291c4=>!(_0x2291c4[_0x168e('0x4e')]&&_0x2291c4[_0x168e('0x7d')]));const _0x3088de=new Map(_0x13f0be[_0x168e('0xef')][_0x3121be]['deletions']['markers']),_0x2a84a7=new Set(_0x8d0e17[_0x168e('0xd3')]());for(const _0xcb8494 of _0x3088de[_0x168e('0xd3')]())_0x2a84a7['delete'](_0xcb8494);this[_0x168e('0x9d')](_0x48d7a6,_0x2a84a7),this[_0x168e('0x1b')](_0x48d7a6),_0x48d7a6=this[_0x168e('0xbf')](_0x48d7a6),_0x48d7a6=this[_0x168e('0x6a')](_0x48d7a6),_0x48d7a6=this[_0x168e('0xea')](_0x48d7a6);const {root:_0x4d50ca,changes:_0x3b0b50}=this['_makeModelFromTape'](_0x48d7a6,_0xfc5d52,_0x3121be);_0x272f84[_0x168e('0xef')][_0x3121be]=_0x4d50ca;const _0x30151e=_0x26718a[_0x168e('0xe0')](_0x3121be);if(_0x30151e){const _0x3f5921=_0xfc5d52[_0x168e('0xe0')](_0x30151e['userId']),_0xe90a97=new _0x336f54({'author':_0x3f5921,'type':_0x30151e[_0x168e('0xf')]?_0x168e('0xb5'):_0x168e('0x3e'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3121be});_0x3b0b50[_0x168e('0x7e')](_0xe90a97),_0x272f84[_0x168e('0x8d')][_0x3121be][_0x168e('0xc0')]=_0xe90a97['id'];}_0x272f84[_0x168e('0x52')]=_0x272f84[_0x168e('0x52')]['concat'](_0x3b0b50);}return _0x272f84;}[_0x168e('0xd5')](_0x3d80a2,_0x4ad828){for(let _0x2769b7=0x0;_0x2769b7<_0x3d80a2['length'];_0x2769b7++)for(const [_0x22dec7,_0x3548a0]of _0x4ad828)_0x3548a0[_0x168e('0x2a')]['isEqual'](_0x3d80a2[_0x2769b7][_0x168e('0x90')])&&_0x3d80a2[_0x2769b7][_0x168e('0xe1')][_0x168e('0x102')](_0x22dec7),_0x3548a0[_0x168e('0x37')][_0x168e('0x1e')](_0x3d80a2[_0x2769b7][_0x168e('0x19')])&&_0x3d80a2[_0x2769b7][_0x168e('0x16')][_0x168e('0x102')](_0x22dec7);}['_joinTapes'](_0xb2d572,_0x2b5251){let _0x4ed2df=[],_0x518b38=0x0,_0xa0a11d=0x0;for(;_0x518b38<_0xb2d572['length']||_0xa0a11d<_0x2b5251['length'];){const _0x5359f0=_0xb2d572[_0x518b38]||{},_0x39ddaf=_0x2b5251[_0xa0a11d]||{};if(_0x5359f0['id']==_0x39ddaf['id'])_0x518b38++,_0xa0a11d++,_0x4ed2df['push'](_0x5359f0);else{if(_0x39ddaf[_0x168e('0x7d')]&&_0x5359f0[_0x168e('0x4e')]){const {commonTape:_0x275d55,iEnd:_0x538f3a,jEnd:_0x2600dd}=this[_0x168e('0xeb')](_0xb2d572,_0x518b38,_0x2b5251,_0xa0a11d);_0x4ed2df=_0x4ed2df[_0x168e('0x7a')](_0x275d55),_0x518b38=_0x538f3a,_0xa0a11d=_0x2600dd;}else _0x39ddaf[_0x168e('0x7d')]?(_0xa0a11d++,_0x4ed2df[_0x168e('0x102')](_0x39ddaf)):(_0x518b38++,_0x4ed2df[_0x168e('0x102')](_0x5359f0));}}return _0x4ed2df;}[_0x168e('0x9d')](_0x53796e,_0xe1df11){const _0x49af0c=[];for(let _0x52ff40=0x0;_0x52ff40<_0x53796e['length'];_0x52ff40++){for(let _0x20a44c=0x0;_0x20a44c<_0x53796e[_0x52ff40][_0x168e('0xe1')][_0x168e('0xc9')];_0x20a44c++){const _0x1ff28b=_0x53796e[_0x52ff40][_0x168e('0xe1')][_0x20a44c];if(!_0xe1df11[_0x168e('0xfc')](_0x1ff28b))continue;const {group:_0x5b897f,type:_0x371c86,authorId:_0x52f666}=_0x180e24(_0x1ff28b);_0x168e('0x8')!=_0x5b897f||'insertion'!=_0x371c86&&'deletion'!=_0x371c86||(_0x49af0c[_0x168e('0x7e')]({'type':_0x371c86,'name':_0x1ff28b,'userId':_0x52f666}),_0x53796e[_0x52ff40][_0x168e('0xe1')][_0x168e('0x38')](_0x20a44c,0x1),_0x20a44c--);}_0x519aa4(_0x53796e[_0x52ff40]);for(let _0x2692f5=0x0;_0x2692f5<_0x53796e[_0x52ff40][_0x168e('0x16')][_0x168e('0xc9')];_0x2692f5++){const _0xc6bcf7=_0x53796e[_0x52ff40][_0x168e('0x16')][_0x2692f5];if(!_0xe1df11[_0x168e('0xfc')](_0xc6bcf7))continue;const {group:_0x1513a4,type:_0x4ec1cf}=_0x180e24(_0xc6bcf7);if(_0x168e('0x8')!=_0x1513a4||_0x168e('0xa3')!=_0x4ec1cf&&'deletion'!=_0x4ec1cf)continue;_0x53796e[_0x52ff40][_0x168e('0x16')][_0x168e('0x38')](_0x2692f5,0x1),_0x2692f5--;const _0x570722=_0x49af0c[_0x168e('0x7f')](_0x45b0b1=>_0x45b0b1[_0x168e('0x74')]==_0xc6bcf7);_0x570722>-0x1&&_0x49af0c[_0x168e('0x38')](_0x570722,0x1);}}function _0x180e24(_0x76322e){const _0x456435=_0x76322e[_0x168e('0xb9')](':');return{'group':_0x456435[0x0],'type':_0x456435[0x1],'subType':_0x456435['length']>=0x5?_0x456435[0x2]:null,'id':_0x456435[_0x168e('0xc9')]<0x5?_0x456435[0x2]:_0x456435[0x3],'authorId':_0x456435[_0x168e('0xc9')]<0x5?_0x456435[0x3]:_0x456435[0x4],'markerCount':0x6==_0x456435[_0x168e('0xc9')]?_0x456435[0x5]:null};}function _0x519aa4(_0x36f010){for(let _0x17dbca=0x0;_0x17dbca<_0x49af0c[_0x168e('0xc9')];_0x17dbca++){if(_0x36f010['isAdded']&&_0x168e('0xa3')==_0x49af0c[_0x17dbca][_0x168e('0x114')])return _0x36f010[_0x168e('0x3c')]=_0x49af0c[_0x17dbca],void delete _0x36f010[_0x168e('0x4e')];if(!_0x36f010[_0x168e('0x4e')]&&!_0x36f010['isRemoved']&&'deletion'==_0x49af0c[_0x17dbca]['type'])return void(_0x36f010[_0x168e('0x8b')]=_0x49af0c[_0x17dbca]);}}}[_0x168e('0x1')](_0x16ec6c,_0x259960){let _0x21c86e=0x0,_0x4037af=!0x1;const _0x371c48=new Map();for(const _0x5099ed of _0x16ec6c)_0x5099ed[_0x259960]?_0x4037af&&(_0x21c86e++,_0x4037af=!0x1):(_0x21c86e++,_0x4037af=!0x0),_0x371c48[_0x168e('0x2c')](_0x5099ed['id'],_0x21c86e);for(let _0x5ae321=0x0;_0x5ae321<_0x16ec6c[_0x168e('0xc9')];_0x5ae321++){if(_0x168e('0x7d')==_0x259960&&_0x16ec6c[_0x5ae321]['isAdded']||'isAdded'==_0x259960&&_0x16ec6c[_0x5ae321][_0x168e('0x7d')])continue;if('text'==_0x16ec6c[_0x5ae321][_0x168e('0x114')]){_0x16ec6c[_0x5ae321][_0x168e('0x91')]=0x0;continue;}const _0x1613d5=_0x371c48['get'](_0x16ec6c[_0x5ae321]['pairId']),_0x39ae69=_0x371c48[_0x168e('0xe0')](_0x16ec6c[_0x5ae321]['id']);_0x16ec6c[_0x5ae321][_0x168e('0x91')]=_0x1613d5-_0x39ae69;}}[_0x168e('0x5a')](_0x451a7b,_0x64ed23,_0x181178=!0x1){const _0x3411c9=[];let _0xe457e4=this[_0x168e('0x1d')][_0x168e('0x11c')](_0x451a7b),_0x58746f=this[_0x168e('0x1d')]['getIndex'](_0x64ed23);for(-0x1==_0x58746f&&(_0x58746f=this['repository']['_revisions']['length'],_0x181178=!0x1);_0xe457e4<_0x58746f;)_0x3411c9[_0x168e('0x102')](this[_0x168e('0x1d')][_0x168e('0x1f')](_0xe457e4)),_0xe457e4++;return _0x181178&&_0x3411c9['push'](this[_0x168e('0x1d')]['getRevision'](_0xe457e4)),_0x3411c9;}[_0x168e('0xeb')](_0x53f7af,_0x54f30f,_0x3e45f2,_0x51f299){const _0x350f6e=this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0x13')];let _0x122993=_0x54f30f;for(;_0x53f7af[_0x122993]&&_0x53f7af[_0x122993][_0x168e('0x4e')];)_0x122993++;let _0x5e6f78=_0x51f299;for(;_0x3e45f2[_0x5e6f78]&&_0x3e45f2[_0x5e6f78]['isRemoved'];)_0x5e6f78++;_0x4e0bef(_0x53f7af,_0x54f30f,_0x122993),_0x4e0bef(_0x3e45f2,_0x51f299,_0x5e6f78);const _0x4b4af4=_0x3e45f2[_0x168e('0x21')](_0x51f299,_0x5e6f78)[_0x168e('0x7a')](_0x53f7af[_0x168e('0x21')](_0x54f30f,_0x122993));return _0x4b4af4['sort']((_0x8459db,_0x4adb8d)=>_0x8459db[_0x168e('0xc6')]!=_0x4adb8d[_0x168e('0xc6')]?_0x8459db[_0x168e('0xc6')]-_0x4adb8d[_0x168e('0xc6')]:_0x8459db[_0x168e('0xfb')]!=_0x4adb8d[_0x168e('0xfb')]?_0x8459db[_0x168e('0xfb')]-_0x4adb8d[_0x168e('0xfb')]:_0x8459db[_0x168e('0x91')]!=_0x4adb8d[_0x168e('0x91')]?_0x4adb8d[_0x168e('0x91')]-_0x8459db['distance']:!!_0x8459db[_0x168e('0x4e')]!=!!_0x4adb8d[_0x168e('0x4e')]?-0x1==_0x8459db['side']||0x0==_0x8459db[_0x168e('0xc6')]?_0x8459db[_0x168e('0x4e')]?-0x1:0x1:_0x8459db[_0x168e('0x4e')]?0x1:-0x1:_0x8459db[_0x168e('0x110')]-_0x4adb8d[_0x168e('0x110')]),{'commonTape':_0x4b4af4,'iEnd':_0x122993,'jEnd':_0x5e6f78};function _0x4e0bef(_0x5259ba,_0x522f74,_0x3260d5){let _0x866c5c=-0x1,_0x3fe090=Number[_0x168e('0x92')],_0x35c804=!0x0;for(let _0x5975ed=_0x522f74;_0x5975ed<_0x3260d5;_0x5975ed++)if(_0x350f6e['isInline'](_0x5259ba[_0x5975ed]['item'])||(_0x35c804=!0x1),_0x5259ba[_0x5975ed]['item']['startIndex']<_0x522f74&&(_0x866c5c=_0x5975ed),_0x5259ba[_0x5975ed]['item'][_0x168e('0x9b')]>=_0x3260d5){_0x3fe090=_0x5975ed;break;}_0x35c804&&(_0x866c5c=_0x3260d5-0x1);for(let _0x21a9f4=_0x522f74;_0x21a9f4<_0x3260d5;_0x21a9f4++)_0x5259ba[_0x21a9f4]['side']=_0x21a9f4<=_0x866c5c?-0x1:_0x21a9f4<_0x3fe090?0x0:0x1,_0x5259ba[_0x21a9f4][_0x168e('0x110')]=_0x21a9f4;let _0x5e8117=0x0;for(let _0x3ec778=_0x522f74;_0x3ec778<=_0x866c5c;_0x3ec778++)0x0==_0x5259ba[_0x3ec778][_0x168e('0x91')]?_0x5259ba[_0x3ec778][_0x168e('0xfb')]=_0x5e8117:(_0x5e8117++,_0x5259ba[_0x3ec778][_0x168e('0xfb')]=_0x5e8117,_0x5e8117++);for(let _0x223165=_0x522f74;_0x223165<_0x3260d5;_0x223165++)0x0==_0x5259ba[_0x223165][_0x168e('0xc6')]&&(_0x5259ba[_0x223165][_0x168e('0xfb')]=_0x5e8117);_0x5e8117=0x0;for(let _0x5a41b5=_0x3260d5-0x1;_0x5a41b5>=_0x3fe090;_0x5a41b5--)0x0==_0x5259ba[_0x5a41b5]['distance']?_0x5259ba[_0x5a41b5]['level']=_0x5e8117:(_0x5e8117--,_0x5259ba[_0x5a41b5][_0x168e('0xfb')]=_0x5e8117,_0x5e8117--);}}['_fixObsoleteTags'](_0xaef976){const _0x22513d=new Map(),_0x44702a=this['editor'][_0x168e('0xef')][_0x168e('0x13')];for(let _0x42d183=0x1;_0x42d183<_0xaef976[_0x168e('0xc9')];_0x42d183++){let _0x3ac4c2,_0x55d926,_0x5dc0c0;const _0x3fe738=_0xaef976[_0x42d183],_0x41015b=_0xaef976[_0x42d183-0x1];if(_0x168e('0x69')==_0x3fe738[_0x168e('0x114')])continue;if(_0x3fe738[_0x168e('0x114')]!=_0x41015b[_0x168e('0x114')])continue;if(!_0x44702a[_0x168e('0x26')](_0x41015b['item'])||_0x44702a[_0x168e('0xb6')](_0x41015b['item']))continue;if(!_0x44702a[_0x168e('0x26')](_0x3fe738['item'])||_0x44702a[_0x168e('0xb6')](_0x3fe738[_0x168e('0x62')]))continue;if((_0xaef976[_0x42d183][_0x168e('0x4e')]||_0xaef976[_0x42d183][_0x168e('0x3c')])&&_0xaef976[_0x42d183-0x1]['isRemoved'])_0x3ac4c2=_0xaef976[_0x42d183],_0x55d926=_0xaef976[_0x42d183-0x1],_0x5dc0c0=_0x42d183-0x1;else{if(!_0xaef976[_0x42d183][_0x168e('0x7d')]||!_0xaef976[_0x42d183-0x1][_0x168e('0x4e')]&&!_0xaef976[_0x42d183-0x1][_0x168e('0x3c')])continue;_0x3ac4c2=_0xaef976[_0x42d183-0x1],_0x55d926=_0xaef976[_0x42d183],_0x5dc0c0=_0x42d183;}const _0x179c3e=_0x3ac4c2[_0x168e('0xfb')]==_0x55d926[_0x168e('0xfb')],_0x2dab12=Math[_0x168e('0x5')](_0x3ac4c2['level'])<Math['abs'](_0x55d926['level'])&&0x0==_0x55d926[_0x168e('0x91')];(_0x179c3e||_0x2dab12)&&(_0x22513d[_0x168e('0x2c')](_0x55d926['id'],_0x3ac4c2['id']),_0xaef976[_0x168e('0x38')](_0x5dc0c0,0x1),_0x42d183--,_0x3ac4c2[_0x168e('0x4e')]=!0x1);}for(let _0x1fb9e1=0x0;_0x1fb9e1<_0xaef976[_0x168e('0xc9')];_0x1fb9e1++)_0x22513d[_0x168e('0xfc')](_0xaef976[_0x1fb9e1][_0x168e('0x4c')])&&(_0xaef976[_0x1fb9e1][_0x168e('0x4c')]=_0x22513d['get'](_0xaef976[_0x1fb9e1][_0x168e('0x4c')]));}[_0x168e('0xbf')](_0xff4bf){const _0x5c784b=new Set(_0xff4bf[_0x168e('0x9')](_0x5c421c=>_0x5c421c['id']));for(let _0x1c04a1=0x0;_0x1c04a1<_0xff4bf['length'];_0x1c04a1++)_0x5c784b[_0x168e('0xfc')](_0xff4bf[_0x1c04a1]['pairId'])||0x0==_0xff4bf[_0x1c04a1][_0x168e('0x91')]||(_0xff4bf[_0x1c04a1][_0x168e('0x122')]=!0x0);return _0xff4bf[_0x168e('0x124')](_0x5bd4cf=>!_0x5bd4cf['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3779df){const _0xf4a72e=new Set();for(let _0x342acb=0x0;_0x342acb<_0x3779df[_0x168e('0xc9')];_0x342acb++){if(_0xf4a72e[_0x168e('0xfc')](_0x3779df[_0x342acb]['id'])&&_0x3779df[_0x342acb][_0x168e('0x7d')]&&(_0x3779df[_0x342acb][_0x168e('0x122')]=!0x0),_0x3779df[_0x342acb][_0x168e('0x122')])continue;if(0x0==_0x3779df[_0x342acb][_0x168e('0x91')])continue;if(_0x168e('0x56')!=_0x3779df[_0x342acb][_0x168e('0x114')])continue;if(null==_0x3779df[_0x342acb][_0x168e('0x4c')])continue;let _0x44fc4a=_0x342acb+0x1,_0x563ca9=0x0;for(;_0x3779df[_0x44fc4a]['id']!=_0x3779df[_0x342acb][_0x168e('0x4c')];)_0x168e('0x56')==_0x3779df[_0x44fc4a]['type']?_0x563ca9++:_0x168e('0xda')==_0x3779df[_0x44fc4a][_0x168e('0x114')]&&_0x563ca9--,_0x44fc4a++;if(0x0!=_0x563ca9){if(_0x3779df[_0x342acb][_0x168e('0x7d')])_0x3779df[_0x342acb][_0x168e('0x122')]=!0x0;else for(;_0x44fc4a!=_0x342acb;)_0x3779df[_0x44fc4a][_0x168e('0x7d')]&&0x0!=_0x3779df[_0x44fc4a]['distance']&&(_0x3779df[_0x44fc4a][_0x168e('0x122')]=!0x0,_0xf4a72e[_0x168e('0xb5')](_0x3779df[_0x44fc4a][_0x168e('0x4c')])),_0x44fc4a--;}}return _0x3779df[_0x168e('0x124')](_0x49ba82=>!_0x49ba82[_0x168e('0x122')]);}[_0x168e('0xea')](_0x1a4c4f){const _0x36e536=this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0x13')];for(let _0x4fd166=0x0;_0x4fd166<_0x1a4c4f[_0x168e('0xc9')];_0x4fd166++){if(!(_0x1a4c4f[_0x4fd166][_0x168e('0x4e')]||_0x1a4c4f[_0x4fd166][_0x168e('0x3c')]||_0x1a4c4f[_0x4fd166]['isRemoved']||_0x1a4c4f[_0x4fd166][_0x168e('0x8b')]))continue;if(0x0==_0x1a4c4f[_0x4fd166][_0x168e('0x91')])continue;const _0x57e478=_0x1a4c4f[_0x4fd166]['item'];_0x36e536[_0x168e('0x26')](_0x57e478)||_0x36e536[_0x168e('0xb6')](_0x57e478)||(_0x1a4c4f[_0x4fd166][_0x168e('0x4e')]&&delete _0x1a4c4f[_0x4fd166][_0x168e('0x4e')],_0x1a4c4f[_0x4fd166][_0x168e('0x3c')]&&delete _0x1a4c4f[_0x4fd166][_0x168e('0x3c')],_0x1a4c4f[_0x4fd166]['isRemoveSuggestion']&&delete _0x1a4c4f[_0x4fd166][_0x168e('0x8b')],_0x1a4c4f[_0x4fd166][_0x168e('0x7d')]&&(_0x1a4c4f[_0x4fd166]['isIncorrect']=!0x0));}return _0x1a4c4f[_0x168e('0x124')](_0x303ca2=>!_0x303ca2[_0x168e('0x122')]);}['_makeModelFromTape'](_0x574528,_0x575aaa,_0xd063d7){const _0xdcf3cf=new _0x33aff6(),_0x5d2013=[],_0x2e95cf=new Map(),_0x24858c=this[_0x168e('0x3d')]['model'],_0x1b9f22=_0x24858c[_0x168e('0x13')],_0x171da4=[_0xdcf3cf],_0x51b024={},_0x3cfd26={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3980d7=null;const _0x474227=[0x0];for(let _0x4232eb=0x0;_0x4232eb<_0x574528['length'];_0x4232eb++){let _0x2370b5,_0x4ff068;if('elementStart'===_0x574528[_0x4232eb][_0x168e('0x114')]){_0x2370b5=_0x24858c[_0x168e('0xe')](_0xdcf3cf,_0x474227);const _0x4ac610=new _0x604797(_0x574528[_0x4232eb]['item']['name'],_0x574528[_0x4232eb][_0x168e('0x62')][_0x168e('0x35')]());_0x171da4[0x0][_0x168e('0x103')](_0x4ac610),_0x474227['push'](0x0),_0x171da4[_0x168e('0x7e')](_0x4ac610),_0x4ff068=_0x24858c['createPositionFromPath'](_0xdcf3cf,_0x474227),_0x3980d7=null;}else{if('elementEnd'===_0x574528[_0x4232eb][_0x168e('0x114')])_0x171da4[_0x168e('0xf1')](),_0x2370b5=_0x24858c[_0x168e('0xe')](_0xdcf3cf,_0x474227),_0x474227[_0x168e('0xa6')](),_0x474227[_0x474227['length']-0x1]++,_0x4ff068=_0x24858c[_0x168e('0xe')](_0xdcf3cf,_0x474227),_0x3980d7=null;else{if(_0x2370b5=_0x24858c[_0x168e('0xe')](_0xdcf3cf,_0x474227),_0x3980d7&&_0x3200ff(_0x3980d7,_0x574528[_0x4232eb]['item']))_0x3980d7[_0x168e('0x10')]+=_0x574528[_0x4232eb][_0x168e('0x62')][_0x168e('0xdc')];else{const _0x32a5ab=new _0x4f1726(_0x574528[_0x4232eb][_0x168e('0x62')][_0x168e('0xdc')],_0x574528[_0x4232eb][_0x168e('0x62')][_0x168e('0x35')]());_0x171da4[0x0][_0x168e('0x103')](_0x32a5ab),_0x3980d7=_0x32a5ab;}_0x474227[_0x474227[_0x168e('0xc9')]-0x1]+=_0x574528[_0x4232eb]['item'][_0x168e('0x63')],_0x4ff068=_0x24858c[_0x168e('0xe')](_0xdcf3cf,_0x474227);}}for(const _0x50302d of _0x574528[_0x4232eb]['markersStart'])_0x2e95cf[_0x168e('0x2c')](_0x50302d,{'start':_0x2370b5,'end':null});_0xe8df2b(_0x168e('0x8b'),_0x4232eb,_0x2370b5,_0x4ff068),_0xe8df2b(_0x168e('0x3c'),_0x4232eb,_0x2370b5,_0x4ff068),_0xe8df2b(_0x168e('0x7d'),_0x4232eb,_0x2370b5,_0x4ff068),_0xe8df2b(_0x168e('0x4e'),_0x4232eb,_0x2370b5,_0x4ff068);for(const _0x4ad0d1 of _0x574528[_0x4232eb][_0x168e('0x16')]){_0x2e95cf[_0x168e('0xe0')](_0x4ad0d1)[_0x168e('0x37')]=_0x4ff068;}}for(const [_0x4eaeab,_0x1fa05b]of _0x2e95cf){const _0x490ddd=this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0x95')](_0x1fa05b[_0x168e('0x2a')],_0x1fa05b[_0x168e('0x37')]);_0xdcf3cf[_0x168e('0xab')]['set'](_0x4eaeab,_0x490ddd);}return _0x5d2013[_0x168e('0xe9')]((_0x48a45c,_0x41be1d)=>{const _0x1a0be4=_0xdcf3cf[_0x168e('0xab')][_0x168e('0xe0')](_0x168e('0xb2')+_0x48a45c['id']),_0x3477f9=_0xdcf3cf[_0x168e('0xab')][_0x168e('0xe0')]('revision:'+_0x41be1d['id']);return _0x1a0be4[_0x168e('0x2a')][_0x168e('0x5f')](_0x3477f9[_0x168e('0x2a')])?-0x1:_0x1a0be4[_0x168e('0x2a')][_0x168e('0x30')](_0x3477f9[_0x168e('0x2a')])?0x1:_0x1a0be4[_0x168e('0x37')][_0x168e('0x5f')](_0x3477f9['end'])?-0x1:_0x1a0be4['end'][_0x168e('0x30')](_0x3477f9[_0x168e('0x37')])?0x1:'add'===_0x48a45c['type']?-0x1:0x1;}),{'root':_0xdcf3cf,'changes':_0x5d2013};function _0xe8df2b(_0x1fe4c6,_0x31e5d0,_0x1b6341,_0x118009){const _0x4c78c7=!!_0x574528[_0x31e5d0][_0x1fe4c6],_0x687fdc=_0x4c78c7?_0x574528[_0x31e5d0][_0x1fe4c6]['userId']:null,_0x1ad79a=_0x31e5d0===_0x574528['length']-0x1,_0x91db72=_0x3cfd26[_0x1fe4c6][0x0],_0x46399b=_0x1b9f22[_0x168e('0xa4')](_0x574528[_0x31e5d0][_0x168e('0x62')]);!_0x51b024[_0x1fe4c6]&&_0x4c78c7?_0x51b024[_0x1fe4c6]={'start':_0x1b6341,'tapeItem':_0x574528[_0x31e5d0],'userId':_0x687fdc,'type':_0x1fe4c6}:_0x51b024[_0x1fe4c6]&&!_0x4c78c7?(_0x51b024[_0x1fe4c6]['end']=_0x1b6341,_0x370425(_0x51b024[_0x1fe4c6]),_0x51b024[_0x1fe4c6]=null):_0x51b024[_0x1fe4c6]&&_0x4c78c7&&_0x51b024[_0x1fe4c6]['userId']!==_0x687fdc&&(_0x51b024[_0x1fe4c6][_0x168e('0x37')]=_0x1b6341,_0x91db72&&_0x91db72['userId']===_0x51b024[_0x1fe4c6][_0x168e('0xfe')]||_0x370425(_0x51b024[_0x1fe4c6]),_0x51b024[_0x1fe4c6]={'start':_0x1b6341,'tapeItem':_0x574528[_0x31e5d0],'userId':_0x687fdc,'type':_0x1fe4c6}),_0x51b024[_0x1fe4c6]&&_0x46399b&&(_0x168e('0x56')!==_0x574528[_0x31e5d0][_0x168e('0x114')]||_0x91db72&&_0x91db72[_0x168e('0xfe')]===_0x687fdc||_0x3cfd26[_0x1fe4c6][_0x168e('0x7e')]({'userId':_0x687fdc,'object':_0x574528[_0x31e5d0]['item'],'change':_0x51b024[_0x1fe4c6]}),_0x168e('0xda')===_0x574528[_0x31e5d0]['type']&&_0x91db72&&_0x91db72[_0x168e('0x51')]===_0x574528[_0x31e5d0][_0x168e('0x62')]&&(_0x3cfd26[_0x1fe4c6][_0x168e('0xf1')](),_0x51b024[_0x1fe4c6]=_0x91db72[_0x168e('0x48')])),_0x51b024[_0x1fe4c6]&&_0x1ad79a&&(_0x51b024[_0x1fe4c6][_0x168e('0x37')]=_0x118009,_0x370425(_0x51b024[_0x1fe4c6]),_0x51b024[_0x1fe4c6]=null);}function _0x370425({start:_0x17324a,end:_0x5e096c,tapeItem:_0x186911,userId:_0x1c6df2,type:_0x42425b}){const _0x27826f=_0x186911[_0x168e('0x62')],_0x4e27c1=_0x24858c[_0x168e('0x13')][_0x168e('0x26')](_0x27826f)&&!_0x24858c[_0x168e('0x13')][_0x168e('0xb6')](_0x27826f),_0x2a236f=_0x17324a[_0x168e('0x54')]==_0x5e096c[_0x168e('0xd4')]&&_0x5e096c['isAtStart'];if(_0x4e27c1&&_0x2a236f)return;const _0x4e1c82=_0x24858c[_0x168e('0x95')](_0x17324a,_0x5e096c),_0x4c26c3=_0x575aaa[_0x168e('0xe0')](_0x1c6df2),_0xe65ff7=new _0x336f54({'author':_0x4c26c3,'type':_0x168e('0x4e')==_0x42425b||_0x168e('0x3c')==_0x42425b?_0x168e('0xb5'):_0x168e('0x3e'),'data':{'isSuggestion':'isAddSuggestion'==_0x42425b||_0x168e('0x8b')==_0x42425b},'createdAt':new Date(),'rootName':_0xd063d7});_0x5d2013[_0x168e('0x102')](_0xe65ff7),_0xdcf3cf[_0x168e('0xab')][_0x168e('0x2c')]('revision:'+_0xe65ff7['id'],_0x4e1c82);}function _0x3200ff(_0x3bed9c,_0x9b485){const _0x45c371=_0x3bed9c['getAttributes'](),_0x318abc=_0x9b485['getAttributes']();for(const _0x1306de of _0x45c371){if(_0x1306de[0x1]!==_0x9b485['getAttribute'](_0x1306de[0x0]))return!0x1;_0x318abc['next']();}return _0x318abc[_0x168e('0x6f')]()[_0x168e('0xe5')];}}['_setConversion'](){this[_0x168e('0x3d')][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0x28'))[_0x168e('0x84')]({'view':_0x168e('0x119')}),this[_0x168e('0x3d')][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0xd'))[_0x168e('0xa')]({'model':_0x168e('0x119'),'view':_0x3ccb58=>{const _0x393b61=_0x3ccb58['markerName'][_0x168e('0xb9')](':')[0x1],_0x5fbf33=this[_0x168e('0x125')](_0x393b61);if(!_0x5fbf33)return null;const _0xdb4643=_0x168e('0xb5')==_0x5fbf33['type']?_0x168e('0xa3'):'deletion',_0x32dada=[_0x168e('0x97'),_0x168e('0x121')+_0xdb4643];return _0x5fbf33['data'][_0x168e('0x8c')]&&_0x32dada[_0x168e('0x102')](_0x168e('0x121')+_0xdb4643+_0x168e('0x4f')),this[_0x168e('0xd2')]==_0x5fbf33&&_0x32dada[_0x168e('0x102')](_0x168e('0x4b')),{'classes':_0x32dada,'attributes':{'data-change-id':_0x393b61}};}}),this[_0x168e('0x3d')][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0x28'))[_0x168e('0xb5')](_0x5a597f=>{_0x5a597f['on'](_0x168e('0xae'),(_0xb7e944,_0x1270bb,_0x2db73e)=>{const _0x2b0b6e=_0x1270bb[_0x168e('0x2f')]['getChild'](0x0);if(!_0x2b0b6e||!_0x2b0b6e['is'](_0x168e('0xac'),_0x168e('0xf4')))return;if(!_0x2db73e[_0x168e('0xbc')][_0x168e('0x43')](_0x2b0b6e,{'attributes':[_0x168e('0x31'),_0x168e('0x68')]}))return;const _0x5b30fd=_0x1270bb[_0x168e('0xf9')]['start'][_0x168e('0x54')];_0x2db73e[_0x168e('0x29')][_0x168e('0xca')](_0x168e('0x31'),_0x2b0b6e['getAttribute'](_0x168e('0x31')),_0x5b30fd),_0x2db73e[_0x168e('0x29')]['setAttribute'](_0x168e('0x68'),_0x2b0b6e[_0x168e('0x11')](_0x168e('0x68')),_0x5b30fd);},{'priority':_0x168e('0x36')});}),this[_0x168e('0x3d')][_0x168e('0x72')]['for'](_0x168e('0x28'))[_0x168e('0xb5')](_0x4cb8dc=>{_0x4cb8dc['on'](_0x168e('0xac'),(_0x332b5c,_0x126aec,_0x26bcf3)=>{if(!_0x26bcf3['consumable'][_0x168e('0x43')](_0x126aec['viewItem'],{'attributes':[_0x168e('0x31'),_0x168e('0x68')]}))return;if(_0x126aec[_0x168e('0xf9')][_0x168e('0xb')])return;const _0xf6da9c=_0x126aec['modelRange'][_0x168e('0x2a')][_0x168e('0x54')];_0xf6da9c[_0x168e('0x113')](_0x168e('0x31'))||_0xf6da9c[_0x168e('0x113')](_0x168e('0x45'))||(_0x26bcf3[_0x168e('0x29')][_0x168e('0xca')](_0x168e('0x31'),_0x126aec[_0x168e('0x2f')]['getAttribute'](_0x168e('0x31')),_0xf6da9c),_0x26bcf3[_0x168e('0x29')][_0x168e('0xca')]('vid_end',_0x126aec[_0x168e('0x2f')]['getAttribute'](_0x168e('0x68')),_0xf6da9c));},{'priority':_0x168e('0x36')});}),this['editor'][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0x28'))['elementToAttribute']({'view':{'name':_0x168e('0xa0'),'attributes':{'vid':!0x0}},'model':{'key':_0x168e('0x45'),'value':_0x1ea288=>_0x1ea288[_0x168e('0x11')](_0x168e('0x45'))}}),this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0x13')]['on']('checkAttribute',(_0x413f41,[,_0xfb000f])=>{['vid_start',_0x168e('0x68'),_0x168e('0x45')][_0x168e('0x10a')](_0xfb000f)&&(_0x413f41[_0x168e('0x39')]=!0x0,_0x413f41[_0x168e('0x109')]());},{'priority':_0x168e('0xf2')}),this[_0x168e('0x3d')]['conversion']['for'](_0x168e('0xa8'))[_0x168e('0xb5')](_0x38ab50=>{_0x38ab50['on'](_0x168e('0x94'),(_0x291200,_0x439a33,_0x4d547f)=>{if('\x20'!=_0x439a33[_0x168e('0x62')]['data']||_0x439a33[_0x168e('0x62')][_0x168e('0xd4')]['maxOffset']>0x1)return;if(!_0x4d547f[_0x168e('0xbc')]['consume'](_0x439a33['item'],_0x291200['name']))return;const _0xd91e89=_0x4d547f[_0x168e('0x29')],_0x60185f=_0x4d547f[_0x168e('0x25')][_0x168e('0xf7')](_0x439a33['range']);_0xd91e89[_0x168e('0x9c')](_0x60185f,_0xd91e89[_0x168e('0x8f')]('span'));});}),this['editor']['conversion'][_0x168e('0xb4')](_0x168e('0xa8'))[_0x168e('0x60')]({'model':_0x168e('0x119')}),this[_0x168e('0x3d')]['editing'][_0x168e('0xa2')]['on']('addMarker:revision',function(_0x3970da){const _0x39401b=_0x3970da[_0x168e('0x71')][_0x168e('0xe0')](_0x168e('0x88'));return(_0x4a00d0,_0x1e02b0,_0x1a6964)=>{const _0x39e658=_0x1e02b0[_0x168e('0xd1')][_0x168e('0xb9')](':')[0x1],_0x598f9c=_0x39401b['_getChangeFromId'](_0x39e658);if(!_0x598f9c)return null;const _0x5732d9=_0x168e('0xb5')==_0x598f9c[_0x168e('0x114')]?_0x168e('0xb9'):_0x168e('0xb3');if(!_0x1a6964[_0x168e('0xbc')]['test'](_0x1e02b0[_0x168e('0x9a')],_0x4a00d0[_0x168e('0x74')]))return;const _0x4a0aba=_0x1e02b0['markerRange']['getWalker'](),_0x2c1e19=_0x1e02b0[_0x168e('0x9a')][_0x168e('0x2a')],_0x529cff=_0x3970da[_0x168e('0xef')]['schema'];let _0x21f81a=null,_0x32cc53=null,_0x1ad118=!0x1,_0x2e3e0b=!0x1;for(const _0x18383f of _0x4a0aba){const _0xcc4c24=_0x18383f[_0x168e('0x62')];_0x1ad118=_0x1ad118||_0x529cff[_0x168e('0x18')](_0xcc4c24);const _0x5a6a73=_0x1a6964[_0x168e('0x25')][_0x168e('0x5c')](_0xcc4c24);if(_0x5a6a73&&_0x5a6a73[_0x168e('0x108')](_0x168e('0xf8')))return;'elementEnd'==_0x18383f[_0x168e('0x114')]&&(_0x529cff['isBlock'](_0xcc4c24)&&!_0x529cff[_0x168e('0xb6')](_0xcc4c24)&&(_0xcc4c24[_0x168e('0x55')]||_0x2c1e19[_0x168e('0x46')]?_0x21f81a&&_0x21f81a['parent']==_0xcc4c24||(_0x21f81a=_0xcc4c24,_0x308439(_0x18383f[_0x168e('0x90')]),_0x2e3e0b=!0x0):_0x32cc53=_0x32cc53||_0x18383f[_0x168e('0x90')]));}function _0x308439(_0x4a6751){const _0x5bb030=_0x1a6964[_0x168e('0x29')]['createUIElement'](_0x168e('0xa0'),{'class':_0x168e('0x121')+_0x5732d9}),_0x262938=_0x1a6964[_0x168e('0x25')][_0x168e('0xb8')](_0x4a6751);_0x598f9c[_0x168e('0xdc')][_0x168e('0x8c')]&&_0x1a6964[_0x168e('0x29')]['addClass'](_0x168e('0x121')+_0x5732d9+_0x168e('0x4f'),_0x5bb030),_0x39401b[_0x168e('0xd2')]==_0x598f9c&&_0x1a6964[_0x168e('0x29')][_0x168e('0xc2')](_0x168e('0x4b'),_0x5bb030),_0x1a6964[_0x168e('0x29')][_0x168e('0x4a')](_0x262938,_0x5bb030),_0x1a6964[_0x168e('0x25')][_0x168e('0x49')](_0x5bb030,_0x1e02b0[_0x168e('0xd1')]);}_0x1ad118||_0x2e3e0b||!_0x32cc53||_0x308439(_0x32cc53);};}(this['editor']),{'priority':_0x168e('0x3a')}),this[_0x168e('0x3d')][_0x168e('0xc')]['downcastDispatcher']['on']('removeMarker:revision',(_0xe6d556,_0x426dbf,_0x29ddeb)=>{const _0x69fba8=_0x29ddeb[_0x168e('0x25')][_0x168e('0x5d')](_0x426dbf['markerName']);if(_0x69fba8)for(const _0x5a3fa1 of _0x69fba8)(_0x5a3fa1[_0x168e('0x5b')](_0x168e('0xce'))||_0x5a3fa1[_0x168e('0x5b')](_0x168e('0x118')))&&(_0x29ddeb[_0x168e('0x25')][_0x168e('0x75')](_0x5a3fa1,_0x426dbf[_0x168e('0xd1')]),_0x29ddeb[_0x168e('0x29')][_0x168e('0x3e')](_0x5a3fa1));},{'priority':_0x168e('0x3a')}),this[_0x168e('0x3d')][_0x168e('0xc')]['downcastDispatcher']['on'](_0x168e('0x10b'),(_0x2bb3a2,_0x2fd3ce,_0x387fad)=>{const _0x4cb86f=_0x2fd3ce[_0x168e('0xd1')][_0x168e('0xb9')](':')[0x1],_0x3ce254=this[_0x168e('0x125')](_0x4cb86f);if(!_0x3ce254)return null;const _0x417e5b='add'==_0x3ce254['type']?_0x168e('0xb9'):'merge';if(_0x387fad[_0x168e('0xbc')][_0x168e('0xad')](_0x2fd3ce['markerRange'],_0x2bb3a2['name']))for(const _0x82ca3 of _0x2fd3ce['markerRange'][_0x168e('0x23')]()){if(!_0x82ca3['is'](_0x168e('0xac'),_0x168e('0xba')))continue;const _0x478476=_0x387fad['writer'][_0x168e('0xbd')]('span',{'class':_0x168e('0x121')+_0x417e5b}),_0x527f77=_0x387fad[_0x168e('0x25')][_0x168e('0xb8')](this['editor']['model']['createPositionBefore'](_0x82ca3));_0x3ce254['data'][_0x168e('0x8c')]&&_0x387fad[_0x168e('0x29')][_0x168e('0xc2')](_0x168e('0x121')+_0x417e5b+'-new',_0x478476),this['activeChange']==_0x3ce254&&_0x387fad[_0x168e('0x29')][_0x168e('0xc2')](_0x168e('0x4b'),_0x478476),_0x387fad[_0x168e('0x29')][_0x168e('0x4a')](_0x527f77,_0x478476),_0x387fad[_0x168e('0x25')]['bindElementToMarker'](_0x478476,_0x2fd3ce[_0x168e('0xd1')]);}},{'priority':_0x168e('0x3a')}),this[_0x168e('0x3d')][_0x168e('0xef')]['document']['on'](_0x168e('0x48'),()=>{this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')]['change'](_0x16b635=>{for(const _0x476324 of this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xcf')]['getRootNames']()){const _0x3bfcbc=this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xcf')][_0x168e('0x77')](_0x476324),_0x131115=this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')]['document'][_0x168e('0x77')](_0x476324);if(_0x131115){const _0x5a8a6e=_0x3bfcbc[_0x168e('0x11')](_0x168e('0xc0'));if(_0x16b635['removeAttribute'](_0x168e('0x5e'),_0x131115),_0x16b635[_0x168e('0x123')](_0x168e('0x6c'),_0x131115),_0x16b635[_0x168e('0x123')](_0x168e('0x1c'),_0x131115),_0x16b635[_0x168e('0x123')]('ck-revision-history-root--active',_0x131115),_0x5a8a6e){const _0x425443=this[_0x168e('0x125')](_0x5a8a6e);if(!_0x425443)return null;_0x16b635[_0x168e('0xca')](_0x168e('0x5e'),_0x5a8a6e,_0x131115),_0x16b635[_0x168e('0xc2')](_0x168e('0x10e')+_0x425443[_0x168e('0x114')],_0x131115),this['activeChange']==_0x425443&&_0x16b635[_0x168e('0xc2')](_0x168e('0xa9'),_0x131115);}}}});}),this['editor'][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0x28'))[_0x168e('0x84')]({'view':_0x168e('0xdf'),'model':_0x3ee32c=>_0x168e('0x80')+_0x3ee32c,'converterPriority':'highest'}),this[_0x168e('0x3d')][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0x28'))['dataToMarker']({'view':_0x168e('0x106'),'model':_0x52d914=>'revision-suggestion:'+_0x52d914,'converterPriority':_0x168e('0xf2')}),this[_0x168e('0x3d')][_0x168e('0x72')]['for'](_0x168e('0xa8'))['markerToData']({'model':'revision-suggestion','view':_0x394a87=>({'name':_0x168e('0x98')+_0x394a87,'group':_0x168e('0x8')}),'converterPriority':_0x168e('0xf2')}),this[_0x168e('0x3d')][_0x168e('0x72')]['for'](_0x168e('0xd'))['markerToHighlight']({'model':'revision-suggestion','view':_0x3dabef=>{const _0x3b2c10=_0x3dabef[_0x168e('0xd1')][_0x168e('0xb9')](':')[0x1];return'insertion'!=_0x3b2c10&&'deletion'!=_0x3b2c10?null:{'classes':['ck-suggestion-preview-marker',_0x168e('0xff')+_0x3b2c10]};}}),this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0xa2')]['on']('addMarker:revision-suggestion:deletion',et(this['editor'],_0x168e('0xb3')),{'priority':_0x168e('0x3a')}),this[_0x168e('0x3d')][_0x168e('0xc')]['downcastDispatcher']['on'](_0x168e('0x82'),et(this['editor'],'split'),{'priority':_0x168e('0x3a')}),this['editor'][_0x168e('0xc')][_0x168e('0xa2')]['on'](_0x168e('0xe6'),(_0x2c6f71,_0x4b2c8a,_0x1f626e)=>{const _0x5cc810=_0x1f626e[_0x168e('0x25')][_0x168e('0x5d')](_0x4b2c8a[_0x168e('0xd1')]);if(_0x5cc810)for(const _0x33aca7 of _0x5cc810)_0x33aca7['is'](_0x168e('0x86'))&&(_0x1f626e[_0x168e('0x25')][_0x168e('0x75')](_0x33aca7,_0x4b2c8a[_0x168e('0xd1')]),_0x1f626e[_0x168e('0x29')][_0x168e('0x3e')](_0x33aca7));},{'priority':'high'});}['_getChangeFromId'](_0x2f7244){return this['_changeIdToChange']['get'](_0x2f7244);}[_0x168e('0xf0')](_0x4615d6){return this[_0x168e('0x2e')]&&this[_0x168e('0x2e')]['destroy'](),this[_0x168e('0x2e')]=new _0x3ee96d(this[_0x168e('0x3d')]['locale'],_0x4615d6),this[_0x168e('0x2e')];}['_initInteractions'](){this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xcf')]['selection'][_0x168e('0x57')](_0x168e('0x119')),this['on'](_0x168e('0xc4'),(_0x25a164,_0x223e32,_0x2180e5,_0x141f9d)=>{_0x141f9d&&this[_0x168e('0xf3')][_0x168e('0x3e')](_0x141f9d),_0x2180e5&&(this[_0x168e('0xf3')]['add']({'view':_0x2180e5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x792921=this[_0x168e('0x3d')][_0x168e('0xc')],_0x37a892=this[_0x168e('0x125')](_0x2180e5['changeId']);let _0x4d114a;if(_0x37a892[_0x168e('0xdc')]['isOnRoot']){const _0x7d3a54=_0x792921[_0x168e('0x11e')][_0x168e('0xe4')](_0x37a892[_0x168e('0x3')]);_0x4d114a=Array['from'](_0x7d3a54[_0x168e('0xa5')]());}else{const _0x14d233=this[_0x168e('0x3d')]['model'][_0x168e('0xab')][_0x168e('0xe0')]('revision:'+_0x2180e5[_0x168e('0x64')]);_0x4d114a=Array[_0x168e('0x40')](_0x792921[_0x168e('0x25')][_0x168e('0x5d')](_0x14d233[_0x168e('0x74')]))[_0x168e('0x9')](_0x1e920b=>_0x792921[_0x168e('0x11e')][_0x168e('0x58')][_0x168e('0xb7')](_0x1e920b))[_0x168e('0x9')](_0x138acf=>Array['from'](_0x138acf[_0x168e('0xa5')]()))[_0x168e('0x7c')]();}if(!this[_0x168e('0x78')])return _0x4d114a[0x0];return _0x4d114a[_0x168e('0xe8')](_0x5dc0c3=>_0x5dc0c3[_0x168e('0x17')]-0x3<=this[_0x168e('0x78')]['y']&&_0x5dc0c3[_0x168e('0x15')]+0x3>=this['_activeViewTarget']['y']&&_0x5dc0c3[_0x168e('0xd6')]-0x3<=this[_0x168e('0x78')]['x']&&_0x5dc0c3[_0x168e('0x107')]+0x3>=this[_0x168e('0x78')]['x'])||_0x4d114a[0x0];}}}),this[_0x168e('0xf3')][_0x168e('0x12')](_0x168e('0x59')));}),this['on'](_0x168e('0xd8'),(_0xf45af0,_0x19a100,_0x1b2d56,_0x5279ea)=>{this[_0x168e('0x2b')]=_0x1b2d56?this[_0x168e('0xf0')](_0x1b2d56):null,this['editor'][_0x168e('0xef')][_0x168e('0x48')](()=>{const _0x4c1109=this[_0x168e('0x3d')]['editing'];_0x5279ea&&(_0x5279ea[_0x168e('0xdc')][_0x168e('0x7b')]?_0x4c1109['view'][_0x168e('0x48')](_0x4c4350=>{_0x4c4350[_0x168e('0x123')]('ck-revision-history-root--active',_0x4c1109[_0x168e('0x11e')][_0x168e('0xcf')][_0x168e('0x77')](_0x5279ea['rootName']));}):_0x4c1109[_0x168e('0x11f')](_0x168e('0xb2')+_0x5279ea['id'])),_0x1b2d56&&(_0x1b2d56['data'][_0x168e('0x7b')]?_0x4c1109['view']['change'](_0xf5ce35=>{_0xf5ce35[_0x168e('0xc2')](_0x168e('0xa9'),_0x4c1109[_0x168e('0x11e')]['document'][_0x168e('0x77')](_0x1b2d56[_0x168e('0x3')]));}):_0x4c1109[_0x168e('0x11f')](_0x168e('0xb2')+_0x1b2d56['id']));});}),this[_0x168e('0x65')](this['editor'][_0x168e('0xc')][_0x168e('0x11e')]['document'],_0x168e('0x99'),(_0x534957,_0x1413e7)=>{if(this[_0x168e('0xd2')])return;const _0x215184=this[_0x168e('0xc7')](_0x1413e7[_0x168e('0xfd')]),_0x347644=this['_changeIdToChange'][_0x168e('0xe0')](_0x215184);_0x347644?(this[_0x168e('0x78')]={'x':_0x1413e7['domEvent']['x'],'y':_0x1413e7[_0x168e('0xf5')]['y']},this['activeView']=this['_getViewForChange'](_0x347644)):(this[_0x168e('0x78')]=null,this[_0x168e('0x2b')]=null);}),this[_0x168e('0x65')](this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')][_0x168e('0xcf')],_0x168e('0xf6'),(_0x392648,_0x5988c1)=>{const _0x5beed4=this[_0x168e('0xc7')](_0x5988c1['target']),_0x470464=this['_changeIdToChange'][_0x168e('0xe0')](_0x5beed4);_0x470464?(this[_0x168e('0x78')]={'x':_0x5988c1['domEvent']['x'],'y':_0x5988c1[_0x168e('0xf5')]['y']},_0x470464===this[_0x168e('0xd2')]?this['_balloon'][_0x168e('0x0')]():this[_0x168e('0xd2')]=_0x470464):(this[_0x168e('0x78')]=null,this[_0x168e('0xd2')]=null);});}[_0x168e('0xc7')](_0x469644){do{const _0x2db271=_0x469644['getAttribute'](_0x168e('0x5e'));if(_0x2db271)return _0x2db271;_0x469644=_0x469644['parent'];}while(_0x469644);return null;}[_0x168e('0x6e')](){this[_0x168e('0x3d')][_0x168e('0xef')]['change'](_0x4177a1=>{for(const _0x159a53 of this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xab')])_0x4177a1[_0x168e('0xb0')](_0x159a53);});}}function et(_0x971c79,_0x502d0a){return(_0xa22d43,_0x2088fc,_0x15340d)=>{if(!_0x15340d[_0x168e('0xbc')][_0x168e('0xad')](_0x2088fc[_0x168e('0x9a')],_0xa22d43['name']))return;const _0x10c4c6=_0x2088fc[_0x168e('0x9a')][_0x168e('0xaf')](),_0x53f5fb=_0x2088fc[_0x168e('0x9a')][_0x168e('0x2a')],_0x87416f=_0x971c79[_0x168e('0xef')][_0x168e('0x13')];let _0x59c6b8=null,_0x328cac=null,_0x1ac41d=!0x1,_0x92c812=!0x1;for(const _0x5728d2 of _0x10c4c6){const _0x1a857d=_0x5728d2[_0x168e('0x62')];_0x1ac41d=_0x1ac41d||_0x87416f[_0x168e('0x18')](_0x1a857d);const _0x592f20=_0x15340d['mapper'][_0x168e('0x5c')](_0x1a857d);if(_0x592f20&&_0x592f20[_0x168e('0x108')]('addHighlight'))return;'elementEnd'==_0x5728d2[_0x168e('0x114')]&&(_0x87416f[_0x168e('0x26')](_0x1a857d)&&!_0x87416f[_0x168e('0xb6')](_0x1a857d)&&(_0x1a857d[_0x168e('0x55')]||_0x53f5fb[_0x168e('0x46')]?_0x59c6b8&&_0x59c6b8[_0x168e('0xd4')]==_0x1a857d||(_0x59c6b8=_0x1a857d,_0x73e374(_0x5728d2[_0x168e('0x90')]),_0x92c812=!0x0):_0x328cac=_0x328cac||_0x5728d2['previousPosition']));}function _0x73e374(_0x2b8b16){const _0x4cd4ed=_0x15340d[_0x168e('0x25')][_0x168e('0xb8')](_0x2b8b16),_0x2e854c=_0x15340d['writer'][_0x168e('0xbd')]('span',{'class':_0x168e('0xff')+_0x502d0a});_0x15340d[_0x168e('0x29')][_0x168e('0x4a')](_0x4cd4ed,_0x2e854c),_0x15340d[_0x168e('0x25')][_0x168e('0x49')](_0x2e854c,_0x2088fc[_0x168e('0xd1')]);}_0x1ac41d||_0x92c812||!_0x328cac||_0x73e374(_0x328cac);};}export class RestoreRevisionCommand extends _0x1de69a{constructor(_0x21d474){super(_0x21d474);const _0xf62df3=_0x21d474[_0x168e('0x71')]['get'](d);this['affectsData']=!0x1,this[_0x168e('0x65')](_0xf62df3,_0x168e('0x79'),()=>this[_0x168e('0x61')]()),this[_0x168e('0x65')](_0xf62df3,_0x168e('0x6'),()=>this[_0x168e('0x61')]());}['execute'](){const _0x35abe4=this['editor'],_0x16b571=_0x35abe4['plugins'][_0x168e('0xe0')](d),_0x13cfe0=_0x16b571['isReady']?_0x16b571[_0x168e('0x11a')][_0x168e('0xde')]:null;_0x35abe4['config'][_0x168e('0xe0')](_0x168e('0x67'))[_0x168e('0xd7')](_0x13cfe0);}['refresh'](){const {isReady:_0x59dfe8,isEnabled:_0x5e6d9d}=this[_0x168e('0x3d')]['plugins'][_0x168e('0xe0')](d);this[_0x168e('0x4')]=_0x59dfe8&&_0x5e6d9d;}}export class ShowChangeCommand extends _0x1de69a{constructor(_0xb7fd77,{direction:_0x4ce82d}){super(_0xb7fd77);const _0x4bda7c=_0xb7fd77[_0x168e('0x71')][_0x168e('0xe0')](d);this[_0x168e('0x83')]=!0x1,this[_0x168e('0xdd')]=_0x168e('0x24')===_0x4ce82d?0x1:-0x1,this['listenTo'](_0x4bda7c,_0x168e('0x79'),()=>this[_0x168e('0x61')]()),this[_0x168e('0x65')](_0x4bda7c,_0x168e('0x6'),()=>this[_0x168e('0x61')]()),this['listenTo'](_0x4bda7c,_0x168e('0xd8'),()=>this[_0x168e('0x61')]());}[_0x168e('0x89')](){const _0x5bf9fe=this[_0x168e('0x3d')],_0x1d9ce7=_0x5bf9fe[_0x168e('0x71')][_0x168e('0xe0')](d),{isNavigationMode:_0xff9658,currentChangeNumber:_0x1f17df}=_0x1d9ce7;let _0x5a715c;if(_0x1d9ce7[_0x168e('0xd2')]=_0xff9658?_0x1d9ce7[_0x168e('0x11a')][_0x168e('0x52')][_0x168e('0xe0')](_0x1f17df+this[_0x168e('0xdd')]):_0x1d9ce7['diff'][_0x168e('0x52')]['first'],_0x1d9ce7['activeChange'][_0x168e('0xdc')][_0x168e('0x7b')])_0x5a715c=_0x5bf9fe[_0x168e('0xc')][_0x168e('0x11e')]['getDomRoot'](_0x1d9ce7[_0x168e('0xd2')][_0x168e('0x3')]);else{const _0x795929=_0x5bf9fe[_0x168e('0xef')][_0x168e('0xab')][_0x168e('0xe0')](_0x168e('0xb2')+_0x1d9ce7['activeChange']['id']);_0x5a715c=_0xb48a2c(_0x5bf9fe['editing'],_0x795929);}_0x2ade8d({'target':_0x5a715c,'viewportOffset':0x28});}[_0x168e('0x61')](){const {isNavigationMode:_0x2d9d43,currentChangeNumber:_0x56395f,numberOfChanges:_0x32873c,isReady:_0x12e200,isEnabled:_0x4b8e22}=this[_0x168e('0x3d')][_0x168e('0x71')][_0x168e('0xe0')](d);this['isEnabled']=!!(_0x4b8e22&&_0x12e200&&_0x32873c)&&(!_0x2d9d43||(0x1===this[_0x168e('0xdd')]?_0x56395f<_0x32873c-0x1:_0x56395f>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4655=['panelPosition','name','listenTo','isEnabled','action','class','locale','function','isOpen','_action','button','items','find','Restore\x20this\x20revision','extendTemplate','Show\x20more\x20items','source','stopPropagation','buttonView','add','Compare\x20against\x20selected','isReady','isActionsDropdownOpen','isVisible','execute','listView','first','bind'];(function(_0x186082,_0x4655fd){const _0x36b764=function(_0x49d66c){while(--_0x49d66c){_0x186082['push'](_0x186082['shift']());}};_0x36b764(++_0x4655fd);}(_0x4655,0xca));const _0x36b7=function(_0x186082,_0x4655fd){_0x186082=_0x186082-0x0;let _0x36b764=_0x4655[_0x186082];return _0x36b764;};import{Collection as _0x444582}from'ckeditor5/src/utils';import{icons as _0xb6a0e3}from'ckeditor5/src/core';import{Model as _0x21d737,addListToDropdown as _0x5910a1,createDropdown as _0x3a32bb}from'ckeditor5/src/ui';import{getTranslation as _0x2469d0}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x42ca03,_0x4ed6b6){const _0x29b954=_0x42ca03['bindTemplate'],_0xc4c411=_0x42ca03[_0x36b7('0x0')],_0x3282d0=_0x3a32bb(_0xc4c411);_0x3282d0[_0x36b7('0x16')]='sw';const _0x1e804b=function(_0x36298d,_0x20ff0c){const _0x2fb106=function(_0x2cd709,_0x518328){const _0x55a447=_0x2cd709[_0x36b7('0x0')],_0x2d7a61={'Compare\x20against\x20selected':_0x2469d0(_0x55a447,_0x36b7('0xe')),'Name\x20this\x20revision':_0x2469d0(_0x55a447,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x2469d0(_0x55a447,_0x36b7('0x7'))};return _0x518328['map'](_0x4c0fa9=>{const _0x414b5c=_0x2d7a61[_0x4c0fa9['name']];return _0x414b5c&&_0x414b5c!==_0x4c0fa9[_0x36b7('0x17')]&&(_0x4c0fa9[_0x36b7('0x17')]=_0x414b5c),_0x4c0fa9;});}(_0x36298d,_0x20ff0c),_0xba2892=new _0x444582();for(const _0x473799 of _0x2fb106){const _0x36b36f={'type':_0x36b7('0x4'),'model':new _0x21d737({'label':_0x473799['name'],'class':_0x473799[_0x36b7('0x1b')],'withText':!0x0,'_action':_0x473799[_0x36b7('0x1a')]})};_0x36b36f['model'][_0x36b7('0x15')](_0x36b7('0x19'))['to'](_0x36298d,_0x36b7('0x10'),_0x1e6ac5=>'function'!=typeof _0x473799[_0x36b7('0x19')]||(!_0x1e6ac5||_0x473799[_0x36b7('0x19')](_0x36298d))),_0xba2892[_0x36b7('0xd')](_0x36b36f);}return _0xba2892;}(_0x42ca03,_0x4ed6b6);return _0x42ca03[_0x36b7('0x15')](_0x36b7('0x10'))['to'](_0x3282d0,_0x36b7('0x2')),_0x3282d0[_0x36b7('0xc')]['set']({'label':_0x2469d0(_0xc4c411,_0x36b7('0x9')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xb6a0e3['threeVerticalDots']}),_0x3282d0[_0x36b7('0x8')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x29b954['if'](_0x36b7('0x10'),'ck-on')]},'on':{'click':_0x29b954['to'](_0x3f9d15=>_0x3f9d15[_0x36b7('0xb')]())}}),_0x3282d0['on'](_0x36b7('0x12'),_0x46e0ef=>{_0x42ca03[_0x36b7('0xf')]&&_0x36b7('0x1')==typeof _0x46e0ef[_0x36b7('0xa')][_0x36b7('0x3')]&&_0x46e0ef['source'][_0x36b7('0x3')](_0x42ca03);}),_0x5910a1(_0x3282d0,_0x1e804b),_0x3282d0[_0x36b7('0x18')](_0x42ca03,'change:isActionsDropdownOpen',(_0x55beb5,_0xfc05c0,_0x1d73ec)=>{if(_0x1d73ec)for(const _0x3ff057 of _0x3282d0[_0x36b7('0x13')][_0x36b7('0x5')]){const _0x1ccee0=_0x3ff057['children'][_0x36b7('0x14')],_0x278608=_0x4ed6b6[_0x36b7('0x6')](_0x37fade=>_0x37fade['action']===_0x1ccee0[_0x36b7('0x3')])[_0x36b7('0x11')];_0x3ff057[_0x36b7('0x11')]=void 0x0===_0x278608||_0x278608(_0x42ca03);}}),_0x3282d0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6a11=['Revision\x20author','setTemplate','push','ck-revision-history-sidebar__revision-author__name','0\x200\x2011\x2010','set','ck-revision-history-sidebar__revision-author','span','ck-revision-history-sidebar__revision-author_creator','name'];(function(_0xb373a5,_0x6a11db){const _0x3cb78c=function(_0x534299){while(--_0x534299){_0xb373a5['push'](_0xb373a5['shift']());}};_0x3cb78c(++_0x6a11db);}(_0x6a11,0x93));const _0x3cb7=function(_0xb373a5,_0x6a11db){_0xb373a5=_0xb373a5-0x0;let _0x3cb78c=_0x6a11[_0xb373a5];return _0x3cb78c;};import{View as _0x23fb23,IconView as _0x59a872}from'ckeditor5/src/ui';import{getTranslation as _0x311dae}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1c10fe from'../../../theme/icons/user.svg';export default class ti extends _0x23fb23{constructor(_0x21c11c,_0x197495,_0x9a8b51){super(_0x21c11c);const _0x1caaac=new _0x59a872();_0x1caaac[_0x3cb7('0x8')]({'content':_0x1c10fe,'viewBox':_0x3cb7('0x7')});const _0xa682db=['ck',_0x3cb7('0x9')];_0x9a8b51&&_0xa682db[_0x3cb7('0x5')](_0x3cb7('0x1'));const _0x3290f8=[{'tag':_0x3cb7('0x0'),'attributes':{'class':['ck',_0x3cb7('0x6')],'title':_0x311dae(_0x21c11c,_0x9a8b51?'Revision\x20creator':_0x3cb7('0x3'))},'children':[_0x1caaac,_0x197495[_0x3cb7('0x2')]]}];this[_0x3cb7('0x4')]({'tag':'li','attributes':{'class':_0xa682db},'children':_0x3290f8});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xf519=['span'];(function(_0x29a9bd,_0xf5196f){var _0x225f43=function(_0x422bac){while(--_0x422bac){_0x29a9bd['push'](_0x29a9bd['shift']());}};_0x225f43(++_0xf5196f);}(_0xf519,0x113));var _0x225f=function(_0x29a9bd,_0xf5196f){_0x29a9bd=_0x29a9bd-0x0;var _0x225f43=_0xf519[_0x29a9bd];return _0x225f43;};import{LabeledFieldView as _0x190a23}from'ckeditor5/src/ui';import{getTranslation as _0x1ce4ef}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x190a23{constructor(_0x5915f1,_0x2b6397){super(_0x5915f1,_0x2b6397),this['set']({'label':_0x1ce4ef(_0x5915f1,'Revision\x20name')}),this['extendTemplate']({'tag':_0x225f('0x0'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36fc=['change','ck-revision-history-sidebar__revision-wrapper','220','span','isSelected','_createdAtFormatted','fieldView','set','ck-revision-history-sidebar__revision__controls-wrapper','map','deselect','uiLanguage','bindTemplate','isEnabled','createdAt','isHighlighted','select','ck-reset','from','length','closest','revisionNameView','setName','unshift','ck-revision-history-sidebar__revision_selected','isActionsDropdownOpen','name','value','extendTemplate','ck-revision-history-sidebar__revision','creator','isConfirm','isReady','fire','unhighlight','render','_revision','srcElement','bind','element','ck-disabled','div','revisionActionsView'];(function(_0x3f18bf,_0x36fcc2){const _0x38e370=function(_0x336caa){while(--_0x336caa){_0x3f18bf['push'](_0x3f18bf['shift']());}};_0x38e370(++_0x36fcc2);}(_0x36fc,0x16d));const _0x38e3=function(_0x3f18bf,_0x36fcc2){_0x3f18bf=_0x3f18bf-0x0;let _0x38e370=_0x36fc[_0x3f18bf];return _0x38e370;};import{View as _0x370f85,createLabeledInputText as _0xcd14f2}from'ckeditor5/src/ui';import{ConfirmMixin as _0x52836f}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b1b8c from'./revisionnameview';import _0x3c9266 from'./revisionauthorview';import{dateToPrettyFormat as _0x2ffce5}from'./utils';import{createActionsDropdownView as _0x5b0e4b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x52836f(_0x370f85){constructor(_0x521b5b,_0xabc2d9,_0x319ec8){super(_0x521b5b);const _0x5c378c=this[_0x38e3('0x22')],_0xfff16c=function(_0x184f1f,_0x4b8b62){const _0x5b35f1=Array[_0x38e3('0x28')](_0x4b8b62['authors'])['filter'](_0x282d44=>_0x282d44!=_0x4b8b62[_0x38e3('0x9')]);return _0x4b8b62['creator']&&_0x5b35f1[_0x38e3('0x2')](_0x4b8b62[_0x38e3('0x9')]),_0x5b35f1[_0x38e3('0x1f')](_0x3ad65b=>new _0x3c9266(_0x184f1f,_0x3ad65b,_0x3ad65b==_0x4b8b62[_0x38e3('0x9')]));}(_0x521b5b,_0xabc2d9);this['id']=_0xabc2d9['id'],this[_0x38e3('0xf')]=_0xabc2d9,this[_0x38e3('0x11')](_0x38e3('0x5'),_0x38e3('0x24'))['to'](_0xabc2d9),this['bind'](_0x38e3('0x1b'))['to'](this,_0x38e3('0x24'),_0x4f4b18=>_0x4f4b18?_0x2ffce5(_0x521b5b[_0x38e3('0x21')],_0x4f4b18):void 0x0),this[_0x38e3('0x1d')](_0x38e3('0x1a'),!0x1),this[_0x38e3('0x1d')](_0x38e3('0x25'),!0x1),this[_0x38e3('0x1d')](_0x38e3('0x4'),!0x1),this[_0x38e3('0x1d')](_0x38e3('0xb'),!0x1),this['set'](_0x38e3('0x23'),!0x1),this[_0x38e3('0x0')]=new _0x4b1b8c(_0x521b5b,_0xcd14f2),this[_0x38e3('0x0')][_0x38e3('0x1c')][_0x38e3('0x7')]({'attributes':{'maxlength':_0x38e3('0x18')}}),this['revisionNameView'][_0x38e3('0x1c')][_0x38e3('0x11')](_0x38e3('0x6'),'placeholder')['to'](this,_0x38e3('0x5'),_0x38e3('0x1b')),this[_0x38e3('0x0')][_0x38e3('0x11')]('isEnabled')['to'](this,'isSelected',this,_0x38e3('0x23'),(_0x546072,_0x3589d0)=>_0x546072&&_0x3589d0),this[_0x38e3('0x15')]=_0x319ec8&&_0x319ec8[_0x38e3('0x29')]?_0x5b0e4b(this,_0x319ec8):'',this[_0x38e3('0x15')]&&this[_0x38e3('0x15')]['bind'](_0x38e3('0x23'))['to'](this),this['setTemplate']({'tag':_0x38e3('0x14'),'attributes':{'class':['ck','ck-reset',_0x38e3('0x17'),_0x5c378c['if'](_0x38e3('0xa'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x38e3('0x27'),_0x38e3('0x8'),_0x5c378c['if'](_0x38e3('0x23'),_0x38e3('0x13'),_0x21c1c4=>!_0x21c1c4),_0x5c378c['if']('isSelected',_0x38e3('0x3')),_0x5c378c['if'](_0x38e3('0x25'),'ck-revision-history-sidebar__revision_highlighted'),_0x5c378c['if'](_0x38e3('0x4'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x38e3('0x0')],{'tag':_0x38e3('0x19'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5c378c['to'](_0x38e3('0x1b'))}]},{'tag':_0x38e3('0x14'),'attributes':{'class':['ck',_0x38e3('0x1e')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0xfff16c}]},this[_0x38e3('0x15')]],'on':{'click':_0x5c378c['to'](_0x319f83=>{_0x319f83[_0x38e3('0x10')][_0x38e3('0x2a')]('.ck-thread__remove-confirm')||this['isReady']&&this[_0x38e3('0x23')]&&this['fire']('select',{'id':this['id']});})}}]});}[_0x38e3('0xe')](){super[_0x38e3('0xe')]();const _0x5e2579=this[_0x38e3('0x0')][_0x38e3('0x1c')][_0x38e3('0x12')];this['listenTo'](_0x5e2579,_0x38e3('0x16'),()=>{this[_0x38e3('0xc')](_0x38e3('0x1'),{'id':this['id'],'name':_0x5e2579[_0x38e3('0x6')]});});}[_0x38e3('0x26')](){this[_0x38e3('0x1a')]=!0x0;}[_0x38e3('0x20')](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}[_0x38e3('0xd')](){this[_0x38e3('0x25')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfa28=['click','ck-hidden','_isCollapsed','button','set','toggle','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','bindTemplate','span','true'];(function(_0x1eeef8,_0xfa28fa){const _0x41bf42=function(_0x4359ed){while(--_0x4359ed){_0x1eeef8['push'](_0x1eeef8['shift']());}};_0x41bf42(++_0xfa28fa);}(_0xfa28,0xe6));const _0x41bf=function(_0x1eeef8,_0xfa28fa){_0x1eeef8=_0x1eeef8-0x0;let _0x41bf42=_0xfa28[_0x1eeef8];return _0x41bf42;};import{View as _0x554820}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x554820{constructor(_0x53daee){super(_0x53daee);const _0x41f065=this[_0x41bf('0x9')];this[_0x41bf('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x41bf('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x41f065['if']('isVisible',_0x41bf('0x2'),_0x146021=>!_0x146021),_0x41f065['if'](_0x41bf('0x3'),_0x41bf('0x8'))],'role':_0x41bf('0x4'),'aria-pressed':_0x41f065['to'](_0x41bf('0x3'),_0x382443=>_0x382443?'false':_0x41bf('0x0'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x41bf('0x7')]}}],'on':{'click':_0x41f065['to'](_0x41bf('0x1'))}});}[_0x41bf('0x6')](){this[_0x41bf('0x3')]=!this[_0x41bf('0x3')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a13=['div','ck-revision-history-sidebar__revision_selected','bind','deselect','bindTemplate','setTemplate','isSelected','createdAt','ck-revision-history-sidebar__revision__date','set','ck-revision-history-sidebar__revision','select','fire','creator','ck-reset','span','uiLanguage','ck-revision-history-sidebar__subrevision','_parentRevisionId'];(function(_0x1adebd,_0x2a13cf){const _0x48b3f2=function(_0x5afec3){while(--_0x5afec3){_0x1adebd['push'](_0x1adebd['shift']());}};_0x48b3f2(++_0x2a13cf);}(_0x2a13,0x6b));const _0x48b3=function(_0x1adebd,_0x2a13cf){_0x1adebd=_0x1adebd-0x0;let _0x48b3f2=_0x2a13[_0x1adebd];return _0x48b3f2;};import{View as _0x5314e2}from'ckeditor5/src/ui';import _0x1acf43 from'./revisionauthorview';import{dateToPrettyFormat as _0x31c959}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x5314e2{constructor(_0x9ab232,_0x22f945,_0x2ce7a1){super(_0x9ab232);const _0x551939=this[_0x48b3('0xb')];this['id']=_0x22f945['id'],this[_0x48b3('0x9')](_0x48b3('0xe'))['to'](_0x22f945),this[_0x48b3('0x10')](_0x48b3('0xd'),!0x1),this['bind']('_createdAtFormatted')['to'](this,_0x48b3('0xe'),_0x4677cd=>_0x4677cd?_0x31c959(_0x9ab232[_0x48b3('0x4')],_0x4677cd):void 0x0),this[_0x48b3('0x6')]=_0x2ce7a1,this[_0x48b3('0xc')]({'tag':_0x48b3('0x7'),'attributes':{'class':['ck',_0x48b3('0x2'),_0x48b3('0x11'),_0x48b3('0x5'),_0x551939['if'](_0x48b3('0xd'),_0x48b3('0x8'))]},'children':[{'tag':_0x48b3('0x3'),'attributes':{'class':['ck',_0x48b3('0xf')]},'children':[{'text':_0x551939['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x1acf43(_0x9ab232,_0x22f945[_0x48b3('0x1')],!0x0)]}],'on':{'click':_0x551939['to'](this[_0x48b3('0x12')][_0x48b3('0x9')](this))}});}[_0x48b3('0x12')](){this['isSelected']=!0x0,this[_0x48b3('0x0')](_0x48b3('0x12'),{'parentId':this[_0x48b3('0x6')]});}[_0x48b3('0xa')](){this[_0x48b3('0xd')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xb723=['long','toLocaleTimeString','numeric','toLocaleDateString'];(function(_0x2752cd,_0xb72334){var _0x35f3b1=function(_0xca0a26){while(--_0xca0a26){_0x2752cd['push'](_0x2752cd['shift']());}};_0x35f3b1(++_0xb72334);}(_0xb723,0x109));var _0x35f3=function(_0x2752cd,_0xb72334){_0x2752cd=_0x2752cd-0x0;var _0x35f3b1=_0xb723[_0x2752cd];return _0x35f3b1;};export function dateToPrettyFormat(_0x42f4f5,_0xe77c99){return _0xe77c99[_0x35f3('0x2')](_0x42f4f5,{'month':_0x35f3('0x3'),'day':_0x35f3('0x1')})+',\x20'+_0xe77c99[_0x35f3('0x0')](_0x42f4f5,{'hour':'numeric','minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x79b4=['form','_createRevisionNameInput','stopPropagation','Save','revisionName','Cancel','220','_createButton','keystrokes','add','ck-revision-history-save-revision-form','value','shift\x20+\x20tab','_focusables','trim','submit','listenTo','cancel','focusTracker','cancelButtonView','focus','delegate','revisionNameInputView','element','input','arrowright','set','arrowup','revisionNameInputValue','execute','ck-button-save','fieldView','focusFirst','arrowdown','locale','arrowleft','setTemplate','tab','check','_focusCycler','forEach','type','label','extendTemplate','saveButtonView'];(function(_0x1024db,_0x79b4f4){const _0x3871a5=function(_0x3d2217){while(--_0x3d2217){_0x1024db['push'](_0x1024db['shift']());}};_0x3871a5(++_0x79b4f4);}(_0x79b4,0xa7));const _0x3871=function(_0x1024db,_0x79b4f4){_0x1024db=_0x1024db-0x0;let _0x3871a5=_0x79b4[_0x1024db];return _0x3871a5;};import{icons as _0x1ea3c9}from'ckeditor5/src/core';import{ButtonView as _0x1b3da7,FocusCycler as _0x261c97,LabeledFieldView as _0x50a5cd,View as _0x333876,ViewCollection as _0x53d21e,createLabeledInputText as _0x853d85,injectCssTransitionDisabler as _0x566026,submitHandler as _0x230402}from'ckeditor5/src/ui';import{FocusTracker as _0x567b0a,KeystrokeHandler as _0x2caa74}from'ckeditor5/src/utils';import{getTranslation as _0x8b0610}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x333876{constructor(_0x275208){super(_0x275208),this[_0x3871('0x1f')]=new _0x567b0a(),this[_0x3871('0x15')]=new _0x2caa74(),this[_0x3871('0x27')](_0x3871('0x29'),''),this['revisionNameInputView']=this[_0x3871('0xe')](),this[_0x3871('0xc')]=this[_0x3871('0x14')](_0x8b0610(_0x275208,_0x3871('0x10')),_0x1ea3c9[_0x3871('0x6')],_0x3871('0x2b')),this[_0x3871('0xc')][_0x3871('0x9')]=_0x3871('0x1c'),this[_0x3871('0x20')]=this['_createButton'](_0x8b0610(_0x275208,_0x3871('0x12')),_0x1ea3c9['cancel'],'ck-button-cancel',_0x3871('0x1e')),this[_0x3871('0x1a')]=new _0x53d21e(),this[_0x3871('0x7')]=new _0x261c97({'focusables':this[_0x3871('0x1a')],'focusTracker':this[_0x3871('0x1f')],'keystrokeHandler':this[_0x3871('0x15')],'actions':{'focusPrevious':_0x3871('0x19'),'focusNext':_0x3871('0x5')}}),this[_0x3871('0x4')]({'tag':_0x3871('0xd'),'attributes':{'class':['ck',_0x3871('0x17'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x3871('0x23')],this[_0x3871('0xc')],this[_0x3871('0x20')]]}),_0x566026(this);}['render'](){super['render'](),_0x230402({'view':this}),([this[_0x3871('0x23')],this['saveButtonView'],this[_0x3871('0x20')]][_0x3871('0x8')](_0x5b1eef=>{this[_0x3871('0x1a')][_0x3871('0x16')](_0x5b1eef),this[_0x3871('0x1f')][_0x3871('0x16')](_0x5b1eef[_0x3871('0x24')]);}),this['keystrokes'][_0x3871('0x1d')](this[_0x3871('0x24')]));const _0x520a30=_0xd0f8f2=>_0xd0f8f2[_0x3871('0xf')]();this[_0x3871('0x15')]['set'](_0x3871('0x26'),_0x520a30),this[_0x3871('0x15')][_0x3871('0x27')](_0x3871('0x3'),_0x520a30),this['keystrokes'][_0x3871('0x27')](_0x3871('0x28'),_0x520a30),this['keystrokes'][_0x3871('0x27')](_0x3871('0x1'),_0x520a30);}[_0x3871('0x21')](){this[_0x3871('0x7')][_0x3871('0x0')]();}get['revisionName'](){return this[_0x3871('0x23')]['fieldView'][_0x3871('0x24')][_0x3871('0x18')][_0x3871('0x1b')]();}set[_0x3871('0x11')](_0x51d3e8){this[_0x3871('0x23')][_0x3871('0x2c')][_0x3871('0x24')][_0x3871('0x18')]=_0x51d3e8[_0x3871('0x1b')]();}['reset'](){this['revisionNameInputView'][_0x3871('0x2c')][_0x3871('0x24')][_0x3871('0x18')]='';}[_0x3871('0xe')](){const _0x4aa7fb=new _0x50a5cd(this[_0x3871('0x2')],_0x853d85),_0x28fd86=_0x4aa7fb[_0x3871('0x2c')];return _0x28fd86[_0x3871('0xb')]({'attributes':{'maxlength':_0x3871('0x13')}}),_0x4aa7fb[_0x3871('0xa')]=_0x8b0610(this[_0x3871('0x2')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x28fd86['on'](_0x3871('0x25'),()=>{this[_0x3871('0x29')]=_0x28fd86[_0x3871('0x24')][_0x3871('0x18')][_0x3871('0x1b')]();}),_0x4aa7fb;}[_0x3871('0x14')](_0x2ed952,_0x41478c,_0x210558,_0x47e94b){const _0x3ab18d=new _0x1b3da7(this['locale']);return _0x3ab18d[_0x3871('0x27')]({'label':_0x2ed952,'icon':_0x41478c,'tooltip':!0x0}),_0x3ab18d['extendTemplate']({'attributes':{'class':_0x210558}}),_0x47e94b&&_0x3ab18d[_0x3871('0x22')](_0x3871('0x2a'))['to'](this,_0x47e94b),_0x3ab18d;}}
|