@ckeditor/ckeditor5-revision-history 38.0.0-rc.1 → 38.0.1
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 _0x3a7d=['rootName','ck-suggestion-marker-','pairId','target','RevisionViewer','hasClass','_balloon','requires','_changeIdToChange','abs','attributes','keys','processor','addMarker:revision','toModel','vid_end','nodeAfter','_sortAndFilterDiffChanges','parse','ck-revision-history-root-add','getDomRoot','listenTo','then','domConverter','observeMarkers','_makeModelFromViewString','get','restoreRevision','model','uiElement','checkAttribute','upcast','insertions','conversion','destroy','ck-suggestion-marker--active','showNextChange','ck-revision-history-root--active','enableReadOnlyMode','nextSibling','addRevision','unshift','next','isAdded','split','deletion','enqueueChange','item','toData','children','changeId','highest','_markMismatchedRemovedTags','markerToData','deletions','addHighlight','indexOf','addRevisionData','dataDowncast','concat','splice','view','suggestion:','downcastDispatcher','_getDiff','revision','plugins','isAtStart','consume','attributesAfter','oldRevisionId','slice','previousPosition','isBefore','element:pre','roots','offsetSize','type','_getViewObj','elementStart','isNavigationMode','index','return','attachChange','revision-viewer','low','bind','revisionHistoryAttachChange','high','data-revision-','elementEnd','_getChangeFromId','addMarker:revision-suggestion:insertion','isObject','POSITIVE_INFINITY','markerToHighlight','execute','editing','isAttached','ck-suggestion-preview-marker','document','getWalker','ck-editor__editable__overlay','set','ck-revision-history-root-','_threeWayMerge','flat','startIndex','changes','name','_getRevisionsRange','removeMarker:revision','_removeMissingPairs','sort','delete','revision-suggestion','distance','pluginName','map','unbindElementFromMarkerName','_getViewForChange','getAttribute','revision:','forward','comment','isContent','removeAttribute','markerName','_removeRevisionMarkers','range','removeClass','_fixObsoleteTags','useFillerType','insertion','activeView','setAttribute','isRemoveSuggestion','error','change','string','toViewPosition','activeChange','_changeView','for','_processTape','isCollapsed','init','markerRange','endIndex','locale','createRange','ck-suggestion-marker-split','addClass','from','isAfter','isRemoved','test','getRoot','vid','start','filter','_findChangeIdFromDomTarget','text','compare','isIncorrect','getChild','editingDowncast','isReady','revisionHistoryLabel','_activeViewTarget','_update','length','numberOfChanges','createPositionBefore','markersEnd','_refreshStartEndIndex','isAddSuggestion','remove','loadRevisionData','all','nextPosition','data','level','_appendChild','_step','reconvertMarker','change:isEnabled','add','createAttributeElement','bindElementToMarker','_cleanUp','mapper','isInline','shift','config','mouseover','bottom','userId','getRootNames','change:isReady','getRevision','adapter','softBreak','addMarker:revision-suggestion:deletion','schema','revisionHistory','_data','dataToMarker','wrap','consumable','createPositionFromPath','includes','domEvent','getCustomProperty','detachRoot','has','startsWith','isOnRoot','isEqual','data-change-id','_removeUnsupportedChanges','viewItem','getRevisionData','markerNameToElements','_markSuggestions','element','addRoot','diff','_makeTape','end','getItems','span','attributesBefore','commands','getAttributes','getIndex','_markInsertions','collaboration.channelId','_initInteractions','getClientRects','change:activeView','createRevision','side','WidgetToolbarRepository','newRevisionId','forEach','revision-comment:','change:numberOfChanges','isBlock','refresh','diffData','_markMarkers','markersStart','attribute:vid','maxOffset','marked','findIndex','insert','toViewElement','isLimit','right','hasAttribute','isSuggestion','_cleanMarkers','_makeModelFromTape','markers','updatePosition','isEnabled','createRangeIn','_setDistance','createUIElement','_setConversion','-new','resolve','pop','writer','merge','modelRange','ck-suggestion-preview-marker-','repository','parent','selection','push','affectsData','editor','vid_start','authors','mapViewToDom'];(function(_0x106a06,_0x3a7dd8){const _0x2740d9=function(_0x63b02e){while(--_0x63b02e){_0x106a06['push'](_0x106a06['shift']());}};_0x2740d9(++_0x3a7dd8);}(_0x3a7d,0xa8));const _0x2740=function(_0x106a06,_0x3a7dd8){_0x106a06=_0x106a06-0x0;let _0x2740d9=_0x3a7d[_0x106a06];return _0x2740d9;};import{Plugin as _0x5c7b28,Command as _0x1ea961}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x226e14}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5b0197}from'ckeditor5/src/ui';import{DocumentFragment as _0x434b7b,Element as _0x3cc323,Text as _0x14e401,ViewDocumentFragment as _0xb3ff24,ViewText as _0xf22689,ViewElement as _0x272dd6,ViewContainerElement as _0x4b9b94,ViewAttributeElement as _0x35588d,ViewEmptyElement as _0x443c5f,ViewRawElement as _0xfd704b,ViewUIElement as _0x2f6f25}from'ckeditor5/src/engine';import{Users as _0x48d13e,getMarkerDomElement as _0x579c97}from'ckeditor5-collaboration/src/collaboration-core';import _0x376852 from'./ui/revisionviewer/changedetailsview';import _0x367d49 from'./revisionsrepository';import _0x699e92 from'./changeitem';import{default as _0x325185}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x290fc3}from'lodash-es';const X={'c':_0x4b9b94,'a':_0x35588d,'e':_0x443c5f,'r':_0xfd704b,'u':_0x2f6f25};export default class w extends _0x5c7b28{static get[_0x2740('0xed')](){return _0x2740('0x7c');}static get[_0x2740('0x7f')](){return[_0x48d13e,_0x5b0197,_0x367d49];}constructor(_0x311cdd){super(_0x311cdd),this[_0x2740('0x6f')]=this['editor'][_0x2740('0xba')][_0x2740('0x92')]('RevisionsRepository'),this[_0x2740('0xdf')](_0x2740('0x105'),null),this[_0x2740('0xdf')]('activeView',null),this[_0x2740('0x1')]=null,this[_0x2740('0xdf')](_0x2740('0x3b'),null),this[_0x2740('0xdf')](_0x2740('0x11f'),!0x1),this[_0x2740('0xdf')]('isEnabled',!0x0),this['on'](_0x2740('0x12'),(_0xdd18f8,_0x5b500b,_0x396373)=>{this[_0x2740('0x105')]=null,this[_0x2740('0xfe')]=null,this[_0x2740('0x74')]['editing'][_0x2740('0xb5')][_0x2740('0x102')](_0x45aaee=>{for(const _0x464496 of this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb5')][_0x2740('0xdc')][_0x2740('0xc3')])_0x396373?_0x45aaee[_0x2740('0xfa')](_0x2740('0xde'),_0x464496):_0x45aaee[_0x2740('0x110')]('ck-editor__editable__overlay',_0x464496);});}),this[_0x2740('0xce')](_0x2740('0xc8'))['to'](this,'activeChange',_0x3d0240=>null!==_0x3d0240),this[_0x2740('0xce')]('currentChangeNumber')['to'](this,_0x2740('0x11f'),this,_0x2740('0x3b'),this,_0x2740('0x105'),(_0x52159f,_0x1c2d1d,_0x41345a)=>_0x52159f&&_0x41345a?_0x1c2d1d['changes'][_0x2740('0x43')](_0x41345a):0x0),this[_0x2740('0xce')](_0x2740('0x4'))['to'](this,_0x2740('0x11f'),this,_0x2740('0x3b'),(_0x47ab79,_0x234a31)=>_0x47ab79?_0x234a31[_0x2740('0xe4')]['length']:0x0),this['_changeView']=null,this[_0x2740('0x80')]=new Map(),this[_0x2740('0x21')]=null,this[_0x2740('0x7e')]=this[_0x2740('0x74')][_0x2740('0xba')][_0x2740('0x92')](_0x5b0197);}[_0x2740('0x10a')](){const _0x1f09c3=this[_0x2740('0x74')],_0x241295=new ShowChangeCommand(_0x1f09c3,{'direction':'backward'}),_0x3a3529=new ShowChangeCommand(_0x1f09c3,{'direction':_0x2740('0xf3')});(_0x1f09c3[_0x2740('0x41')][_0x2740('0x13')]('showPreviousChange',_0x241295),_0x1f09c3[_0x2740('0x41')][_0x2740('0x13')](_0x2740('0x9c'),_0x3a3529),_0x1f09c3[_0x2740('0x41')]['add'](_0x2740('0x93'),new RestoreRevisionCommand(_0x1f09c3)),this['on'](_0x2740('0x4f'),()=>{_0x241295[_0x2740('0x51')](),_0x3a3529[_0x2740('0x51')]();}),this[_0x2740('0x67')](),this[_0x2740('0x46')](),_0x1f09c3[_0x2740('0x9e')](_0x2740('0xcc')),_0x1f09c3[_0x2740('0xba')][_0x2740('0x2f')]('WidgetToolbarRepository'))&&_0x1f09c3[_0x2740('0xba')]['get'](_0x2740('0x4b'))['forceDisabled'](_0x2740('0xcc'));}async[_0x2740('0x36')](_0x55a280){await this['loadRevisionData'](_0x55a280);const _0x4c5ef8={};for(const _0x1f0d86 in _0x55a280[_0x2740('0x52')]){if(_0x55a280['diffData'][_0x1f0d86][_0x2740('0xcb')]&&!_0x55a280['diffData'][_0x1f0d86][_0x2740('0xcb')][_0x2740('0xda')])continue;const _0x945c4a=this[_0x2740('0xf8')](JSON[_0x2740('0x8a')](_0x55a280['diffData'][_0x1f0d86][_0x2740('0x98')])),_0x57c909=this[_0x2740('0x74')][_0x2740('0xd9')]['view'][_0x2740('0xdc')],_0x24db17=new _0xb3ff24(_0x57c909,_0x945c4a[_0x2740('0xee')](_0x2b90ab=>this[_0x2740('0xc6')](_0x2b90ab)));this['editor'][_0x2740('0xd')][_0x2740('0x84')][_0x2740('0xfc')](_0x2740('0x57')),_0x4c5ef8[_0x1f0d86]=this[_0x2740('0x74')][_0x2740('0xd')][_0x2740('0x84')][_0x2740('0xa8')](_0x24db17),this[_0x2740('0x74')][_0x2740('0xd')][_0x2740('0x84')]['useFillerType']('default');}return _0x4c5ef8;}async['getRevisionRootsAttributes'](_0x2cde35){await this[_0x2740('0xa')](_0x2cde35);const _0x3461c3={};for(const _0x55418d in _0x2cde35['diffData'])_0x2cde35[_0x2740('0x52')][_0x55418d][_0x2740('0xcb')]&&!_0x2cde35[_0x2740('0x52')][_0x55418d][_0x2740('0xcb')]['isAttached']||(_0x3461c3[_0x55418d]=_0x2cde35[_0x2740('0x52')][_0x55418d][_0x2740('0xbd')]||{});return _0x3461c3;}[_0x2740('0xf8')](_0x571230){return(_0x571230=_0x571230[_0x2740('0x118')](_0x4d8901=>!_0x4d8901[_0x2740('0xe5')]||'revision-start'!==_0x4d8901['name']&&'revision-end'!==_0x4d8901[_0x2740('0xe5')]))['forEach'](_0x5f7fa6=>{_0x2740('0x103')!=typeof _0x5f7fa6&&(_0x5f7fa6[_0x2740('0xa9')]=this[_0x2740('0xf8')](_0x5f7fa6[_0x2740('0xa9')]),_0x5f7fa6['attributes']=_0x5f7fa6[_0x2740('0x82')][_0x2740('0x118')](_0x3a4a63=>!_0x3a4a63[0x0][_0x2740('0x30')](_0x2740('0xd1'))));}),_0x571230;}async[_0x2740('0x11b')](_0x541a9e,_0x4f23ce,_0x49c095=!0x1){if(!this['isEnabled'])return;const _0x52d2ae=this[_0x2740('0x3b')],_0x4ab82f=this[_0x2740('0x6f')],_0xf1547a=_0x2740('0x103')==typeof _0x541a9e?_0x4ab82f[_0x2740('0x20')](_0x541a9e):_0x541a9e,_0x1cace4=_0x2740('0x103')==typeof _0x4f23ce?_0x4ab82f['getRevision'](_0x4f23ce):_0x4f23ce,_0x307dd3=_0xf1547a['id'],_0x553ff9=_0x1cace4?_0x1cace4['id']:null;if(!_0x49c095&&this[_0x2740('0x3b')]&&this['diff']['newRevisionId']===_0x307dd3&&this['diff'][_0x2740('0xbe')]===_0x553ff9)return Promise[_0x2740('0x69')]();this[_0x2740('0x11f')]=!0x1,this['activeView']=null,this[_0x2740('0x105')]=null,this[_0x2740('0x3b')]=new _0x325185(_0x307dd3,_0x553ff9);const _0x3995a7=this[_0x2740('0xe6')](_0xf1547a,_0x1cace4,!0x0)[_0x2740('0xee')](_0x1efc33=>this[_0x2740('0xa')](_0x1efc33));return _0x3995a7[_0x2740('0x72')](new Promise(_0x5fca7e=>{setTimeout(_0x5fca7e,0x14);})),Promise[_0x2740('0xb')](_0x3995a7)['then'](()=>{if(!this[_0x2740('0x63')])return;this[_0x2740('0x16')]();const _0x1bf673=this[_0x2740('0xb8')](_0x307dd3,_0x553ff9);for(const _0x33c7b0 of _0x1bf673['changes'])this[_0x2740('0x80')][_0x2740('0xdf')](_0x33c7b0['id'],_0x33c7b0);this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0xa6')]({'isUndoable':!0x1},_0x22408c=>{for(const _0x3fe96c of this[_0x2740('0x74')][_0x2740('0x94')]['document']['getRootNames']())_0x22408c[_0x2740('0x2e')](_0x3fe96c);for(const _0x3cd381 of Object['keys'](_0x1bf673['model'])){const _0xbe5519=_0x22408c[_0x2740('0x3a')](_0x3cd381);for(const _0x462fef of Object[_0x2740('0x83')](_0x1bf673[_0x2740('0x82')][_0x3cd381]))_0x22408c['setAttribute'](_0x462fef,_0x1bf673['attributes'][_0x3cd381][_0x462fef],_0xbe5519);_0x22408c[_0x2740('0x59')](_0x1bf673['model'][_0x3cd381],_0xbe5519,0x0);}}),this['diff']['_setChanges'](this[_0x2740('0x89')](_0x1bf673['changes'])),this[_0x2740('0x11f')]=!0x0;})['catch'](_0x50ca43=>{console[_0x2740('0x101')](_0x50ca43),this['_cleanUp'](),_0x52d2ae&&(this[_0x2740('0x3b')]=_0x52d2ae),this[_0x2740('0x11f')]=!0x0;});}[_0x2740('0xb1')](_0x138176,_0xc7b026){const _0x30589a=this[_0x2740('0x6f')][_0x2740('0x49')](_0x138176);return _0x30589a['on']('_update',(_0x28bf6b,_0x216e23,_0xe3cdd5)=>_0xc7b026(_0x216e23,_0xe3cdd5,_0x30589a)),this['repository'][_0x2740('0xa0')](_0x30589a),_0x30589a;}[_0x2740('0xa')](_0x227216){if(!_0x227216||_0x227216[_0x2740('0x52')])return Promise['resolve']();{const _0x54c526=this[_0x2740('0x74')][_0x2740('0x1a')][_0x2740('0x92')](_0x2740('0x45'));return this['adapter'][_0x2740('0x20')]({'channelId':_0x54c526,'revisionId':_0x227216['id']})[_0x2740('0x8e')](_0xa52b9a=>{_0x227216[_0x2740('0x2')]({'diffData':_0xa52b9a['diffData']},!0x0);});}}[_0x2740('0x16')](){this[_0x2740('0x105')]=null,this[_0x2740('0x5f')](),this[_0x2740('0x106')]&&this[_0x2740('0x106')]['destroy'](),this[_0x2740('0x106')]=null,this[_0x2740('0x80')]['clear'](),this['editor'][_0x2740('0x94')][_0x2740('0xa6')]({'isUndoable':!0x1},_0x5bc658=>{for(const _0x1f52d2 of this['editor'][_0x2740('0x94')]['document'][_0x2740('0x1e')]())_0x5bc658[_0x2740('0x2e')](_0x1f52d2);});}[_0x2740('0x89')](_0x598bef){const _0x1e5524=[],_0x3189b1=new Map();for(const _0x467b1d of this[_0x2740('0x74')][_0x2740('0x94')]['document']['getRootNames']()){const _0x1885d4=this[_0x2740('0x74')]['editing']['view']['getDomRoot'](_0x467b1d);if(!_0x1885d4)continue;const _0x5cf9a4=_0x1885d4[_0x2740('0x47')]()[_0x2740('0xa7')](0x0);_0x5cf9a4&&(_0x1e5524[_0x2740('0x72')](_0x467b1d),_0x3189b1[_0x2740('0xdf')](_0x467b1d,_0x5cf9a4));}return _0x1e5524['sort']((_0x1ac543,_0x2b8eb7)=>{const _0x3660a9=_0x3189b1['get'](_0x1ac543),_0x404005=_0x3189b1[_0x2740('0x92')](_0x2b8eb7);return _0x3660a9['y']-_0x404005['y']||_0x3660a9['x']-_0x404005['x'];}),(_0x598bef=_0x598bef[_0x2740('0x118')](_0x3e3637=>_0x1e5524[_0x2740('0x2b')](_0x3e3637[_0x2740('0x78')])))['sort']((_0x30aa98,_0xf7561a)=>_0x1e5524[_0x2740('0xb0')](_0x30aa98[_0x2740('0x78')])-_0x1e5524['indexOf'](_0xf7561a[_0x2740('0x78')])),_0x598bef;}[_0x2740('0x3c')](_0x2fc39c){const _0x257b49=Array['from'](_0x2fc39c[_0x2740('0x61')])[_0x2740('0x118')](([_0x3d913b,_0x1fae76])=>_0x3d913b[_0x2740('0x30')]('revision:')&&!_0x1fae76['isCollapsed']),_0x5eecf1=Array['from'](this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x64')](_0x2fc39c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x257b49[_0x2740('0x3')])for(const _0x4661bf of _0x5eecf1){const [_0x534386,_0x4f4088]=_0x257b49[0x0],[,_0xaf62a0,_0x56f431]=_0x534386[_0x2740('0xa4')](':');if(_0x4f4088[_0x2740('0x3d')]['isEqual'](_0x4661bf['nextPosition'])&&_0x257b49[_0x2740('0x19')](),(_0x4661bf[_0x2740('0xc0')][_0x2740('0x32')](_0x4f4088[_0x2740('0x117')])||_0x4661bf[_0x2740('0xc0')][_0x2740('0x112')](_0x4f4088[_0x2740('0x117')]))&&('insertion'==_0xaf62a0?_0x4661bf[_0x2740('0xa3')]={'userId':_0x56f431}:_0x2740('0xa5')==_0xaf62a0&&(_0x4661bf[_0x2740('0x113')]={'userId':_0x56f431})),0x0==_0x257b49['length'])break;}return _0x5eecf1;}['_refreshStartEndIndex'](_0x4e5153){const _0x66aab9=new Map();for(let _0x1b4a86=0x0;_0x1b4a86<_0x4e5153[_0x2740('0x3')];_0x1b4a86++)_0x2740('0x11a')===_0x4e5153[_0x1b4a86][_0x2740('0xc5')]?(_0x4e5153[_0x1b4a86][_0x2740('0xa7')][_0x2740('0xe3')]=_0x1b4a86,_0x4e5153[_0x1b4a86][_0x2740('0xa7')][_0x2740('0x10c')]=_0x1b4a86):(_0x2740('0xc7')===_0x4e5153[_0x1b4a86][_0x2740('0xc5')]?_0x4e5153[_0x1b4a86]['item'][_0x2740('0xe3')]=_0x1b4a86:'elementEnd'===_0x4e5153[_0x1b4a86]['type']&&(_0x4e5153[_0x1b4a86][_0x2740('0xa7')]['endIndex']=_0x1b4a86),_0x66aab9[_0x2740('0xdf')](_0x4e5153[_0x1b4a86]['id'],_0x1b4a86));for(const _0x348440 of _0x66aab9['values']())_0x2740('0xc7')===_0x4e5153[_0x348440][_0x2740('0xc5')]?_0x4e5153[_0x348440][_0x2740('0xa7')][_0x2740('0x10c')]=_0x66aab9[_0x2740('0x92')](_0x4e5153[_0x348440][_0x2740('0x7a')]):_0x2740('0xd2')===_0x4e5153[_0x348440][_0x2740('0xc5')]&&(_0x4e5153[_0x348440][_0x2740('0xa7')][_0x2740('0xe3')]=_0x66aab9[_0x2740('0x92')](_0x4e5153[_0x348440]['pairId']));}[_0x2740('0x108')](_0x29bffd){for(let _0x5ef277=0x0;_0x5ef277<_0x29bffd[_0x2740('0x3')];_0x5ef277++){if('elementStart'===_0x29bffd[_0x5ef277]['type'])_0x29bffd[_0x5ef277][_0x2740('0xa7')][_0x2740('0xe3')]=_0x5ef277;else{if(_0x2740('0xd2')===_0x29bffd[_0x5ef277][_0x2740('0xc5')]){_0x29bffd[_0x5ef277][_0x2740('0xa7')][_0x2740('0x10c')]=_0x5ef277;const _0x23cebb=_0x29bffd[_0x5ef277][_0x2740('0xa7')]['startIndex'];_0x29bffd[_0x23cebb][_0x2740('0x7a')]=_0x29bffd[_0x5ef277]['id'],_0x29bffd[_0x5ef277]['pairId']=_0x29bffd[_0x23cebb]['id'];}else _0x29bffd[_0x5ef277][_0x2740('0xa7')][_0x2740('0xe3')]=_0x5ef277,_0x29bffd[_0x5ef277]['item'][_0x2740('0x10c')]=_0x5ef277,_0x29bffd[_0x5ef277]['pairId']=null;}_0x29bffd[_0x5ef277]['markersStart']||(_0x29bffd[_0x5ef277][_0x2740('0x54')]=[],_0x29bffd[_0x5ef277]['markersEnd']=[]);}}[_0x2740('0x44')](_0x39a565,_0x32dba7){const _0x334c46=_0x39a565[_0x2740('0x118')](_0x43c660=>!_0x43c660[_0x2740('0xa3')]);for(let _0x37dd24=0x0;_0x37dd24<_0x32dba7[_0x2740('0x3')];_0x37dd24++)_0x32dba7[_0x37dd24][_0x2740('0xa3')]&&(_0x334c46[_0x37dd24][_0x2740('0xa3')]=_0x32dba7[_0x37dd24][_0x2740('0xa3')]);}['_makeModelFromViewString'](_0xe69602){const _0x5899c4=JSON['parse'](_0xe69602),_0x1afd55=this['editor'][_0x2740('0xd9')][_0x2740('0xb5')][_0x2740('0xdc')],_0x2cc83d=new _0xb3ff24(_0x1afd55,_0x5899c4[_0x2740('0xee')](_0x1110a8=>this[_0x2740('0xc6')](_0x1110a8)));return this['editor'][_0x2740('0xd')][_0x2740('0x86')](_0x2cc83d);}[_0x2740('0xc6')](_0x55c45d){const _0x3e8495=this[_0x2740('0x74')]['editing'][_0x2740('0xb5')][_0x2740('0xdc')];if(_0x2740('0x103')==typeof _0x55c45d)return new _0xf22689(_0x3e8495,_0x55c45d);{const _0x2eb675=_0x55c45d[_0x2740('0xa9')][_0x2740('0xee')](_0x1be391=>this[_0x2740('0xc6')](_0x1be391));return new(X[_0x55c45d[(_0x2740('0xc5'))]]||_0x272dd6)(_0x3e8495,_0x55c45d[_0x2740('0xe5')],_0x55c45d[_0x2740('0x82')],_0x2eb675);}}[_0x2740('0xb8')](_0x4c1672,_0x37f9f=null){const _0x52f546=this[_0x2740('0x6f')]['getRevision'](_0x4c1672),_0x158925=_0x37f9f?this[_0x2740('0x6f')][_0x2740('0x20')](_0x37f9f):null,_0x42d249=this['_getRevisionsRange'](_0x52f546,_0x158925),_0xf1e3e0=_0x42d249[_0x42d249['length']-0x1],_0x543e20=new Map(),_0x175977={'model':{},'attributes':{},'changes':[]},_0x556cc7=new Set(),_0x394b90=new Map();for(let _0x5d0cef=_0x42d249[_0x2740('0x3')]-0x1;_0x5d0cef>=0x0;_0x5d0cef--){const _0x27819c=_0x42d249[_0x5d0cef];for(const _0x98b069 of Object['keys'](_0x27819c['diffData']))if(_0x27819c[_0x2740('0x52')][_0x98b069][_0x2740('0xcb')]){const _0x374cb0=_0x27819c[_0x2740('0x52')][_0x98b069][_0x2740('0xcb')];_0x374cb0[_0x2740('0xda')]?(_0x556cc7[_0x2740('0x13')](_0x98b069),_0x394b90[_0x2740('0x2f')](_0x98b069)&&_0x394b90[_0x2740('0x92')](_0x98b069)['userId']==_0x374cb0[_0x2740('0x1d')]?_0x394b90[_0x2740('0xea')](_0x98b069):_0x394b90[_0x2740('0xdf')](_0x98b069,_0x374cb0)):_0x394b90[_0x2740('0x2f')](_0x98b069)?(_0x556cc7[_0x2740('0xea')](_0x98b069),_0x394b90['delete'](_0x98b069)):(_0x556cc7[_0x2740('0x13')](_0x98b069),_0x394b90[_0x2740('0xdf')](_0x98b069,_0x374cb0));}else _0x556cc7[_0x2740('0x13')](_0x98b069);}for(const _0x28d2d6 of _0x556cc7){const _0x129646=_0x394b90[_0x2740('0x2f')](_0x28d2d6)&&!_0x394b90[_0x2740('0x92')](_0x28d2d6)['isAttached'];let _0x219681=_0x129646?_0x42d249[_0x2740('0x3')]-0x1:0x0;const _0x5468eb=_0x129646?-0x1:0x1;for(;_0x42d249[_0x219681];){const _0x17568d=_0x42d249[_0x219681];if(_0x17568d['diffData'][_0x28d2d6]){const _0x5e2276=_0x129646?_0x17568d[_0x2740('0x52')][_0x28d2d6][_0x2740('0x40')]:_0x17568d[_0x2740('0x52')][_0x28d2d6][_0x2740('0xbd')];_0x175977[_0x2740('0x82')][_0x28d2d6]=_0x5e2276?_0x290fc3(_0x5e2276):{};break;}_0x219681+=_0x5468eb;}}for(const _0x2a9f10 of _0x42d249){_0x2a9f10['model']={};for(const _0x447e9f of _0x2a9f10[_0x2740('0x76')])_0x543e20['set'](_0x447e9f['id'],_0x447e9f);for(const _0x1b7cf0 of _0x556cc7){const _0x52cdf5=_0x2a9f10[_0x2740('0x52')][_0x1b7cf0]?_0x2a9f10['diffData'][_0x1b7cf0][_0x2740('0x98')]:'[]',_0x450429=_0x2a9f10[_0x2740('0x52')][_0x1b7cf0]?_0x2a9f10[_0x2740('0x52')][_0x1b7cf0][_0x2740('0xae')]:'[]';_0x2a9f10[_0x2740('0x94')][_0x1b7cf0]={'insertions':this[_0x2740('0x91')](_0x52cdf5),'deletions':this[_0x2740('0x91')](_0x450429)};}}for(const _0x43efda of _0x556cc7){let _0xe17b5d=null,_0x151382=0x0;const _0x285699=new Map(Array[_0x2740('0x111')](_0x52f546[_0x2740('0x94')][_0x43efda][_0x2740('0x98')][_0x2740('0x61')])[_0x2740('0x118')](([_0x24b6cf])=>!_0x24b6cf[_0x2740('0x30')]('revision:')));let _0x316fec=0x0;for(const _0x125306 of _0x42d249){const _0x5b0a09=this[_0x2740('0x3c')](_0x125306[_0x2740('0x94')][_0x43efda]['insertions']);_0x125306==_0x52f546?(_0xe17b5d=_0x5b0a09,_0x151382=_0xe17b5d['length'],_0xe17b5d['forEach'](_0x112084=>{_0x112084['id']=_0x316fec++;}),this['_processTape'](_0xe17b5d)):this['_markInsertions'](_0xe17b5d,_0x5b0a09);const _0x485842=_0xe17b5d[_0x2740('0x118')](_0x4f1dfe=>!_0x4f1dfe[_0x2740('0xa3')])['map'](_0x3dd553=>_0x3dd553['id']);let _0x1f72de=0x0;const _0x1ab49d=this[_0x2740('0x3c')](_0x125306['model'][_0x43efda][_0x2740('0xae')]);_0x1ab49d[_0x2740('0x4d')](_0x12a686=>{_0x12a686['isRemoved']?_0x12a686['id']=_0x151382++:_0x12a686['id']=_0x485842[_0x1f72de++];}),this[_0x2740('0x108')](_0x1ab49d),this[_0x2740('0x65')](_0xe17b5d,_0x2740('0xa3')),this[_0x2740('0x65')](_0x1ab49d,'isRemoved'),_0x125306==_0x52f546&&this[_0x2740('0x53')](_0xe17b5d,_0x285699),_0xe17b5d=this['_joinTapes'](_0xe17b5d,_0x1ab49d),this[_0x2740('0x7')](_0xe17b5d),this[_0x2740('0x65')](_0xe17b5d,_0x2740('0x113'));}_0xe17b5d=_0xe17b5d['filter'](_0x26c2d6=>!(_0x26c2d6[_0x2740('0xa3')]&&_0x26c2d6[_0x2740('0x113')]));const _0x1e0f6c=new Map(_0xf1e3e0[_0x2740('0x94')][_0x43efda][_0x2740('0xae')][_0x2740('0x61')]),_0xd7bb5b=new Set(_0x285699[_0x2740('0x83')]());for(const _0x512180 of _0x1e0f6c['keys']())_0xd7bb5b[_0x2740('0xea')](_0x512180);this[_0x2740('0x38')](_0xe17b5d,_0xd7bb5b),this['_fixObsoleteTags'](_0xe17b5d),_0xe17b5d=this[_0x2740('0xe8')](_0xe17b5d),_0xe17b5d=this[_0x2740('0xac')](_0xe17b5d),_0xe17b5d=this[_0x2740('0x34')](_0xe17b5d);const {root:_0x31c8f9,changes:_0x26ba00}=this[_0x2740('0x60')](_0xe17b5d,_0x543e20,_0x43efda);_0x175977[_0x2740('0x94')][_0x43efda]=_0x31c8f9;const _0x125ce1=_0x394b90[_0x2740('0x92')](_0x43efda);if(_0x125ce1){const _0x28e68d=_0x543e20[_0x2740('0x92')](_0x125ce1[_0x2740('0x1d')]),_0x44b359=new _0x699e92({'author':_0x28e68d,'type':_0x125ce1[_0x2740('0xda')]?_0x2740('0x13'):_0x2740('0x9'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x43efda});_0x26ba00[_0x2740('0xa1')](_0x44b359),_0x175977['attributes'][_0x43efda][_0x2740('0xcf')]=_0x44b359['id'];}_0x175977[_0x2740('0xe4')]=_0x175977['changes'][_0x2740('0xb3')](_0x26ba00);}return _0x175977;}[_0x2740('0x53')](_0x2b47a9,_0x3dceec){for(let _0x31b615=0x0;_0x31b615<_0x2b47a9['length'];_0x31b615++)for(const [_0x4d2a34,_0x25106e]of _0x3dceec)_0x25106e[_0x2740('0x117')][_0x2740('0x32')](_0x2b47a9[_0x31b615][_0x2740('0xc0')])&&_0x2b47a9[_0x31b615]['markersStart'][_0x2740('0x72')](_0x4d2a34),_0x25106e['end'][_0x2740('0x32')](_0x2b47a9[_0x31b615][_0x2740('0xc')])&&_0x2b47a9[_0x31b615][_0x2740('0x6')]['push'](_0x4d2a34);}['_joinTapes'](_0xe9e543,_0x195499){let _0x30d10f=[],_0x416389=0x0,_0x5a0068=0x0;for(;_0x416389<_0xe9e543['length']||_0x5a0068<_0x195499[_0x2740('0x3')];){const _0x2b9b82=_0xe9e543[_0x416389]||{},_0x3b5e8b=_0x195499[_0x5a0068]||{};if(_0x2b9b82['id']==_0x3b5e8b['id'])_0x416389++,_0x5a0068++,_0x30d10f[_0x2740('0x72')](_0x2b9b82);else{if(_0x3b5e8b[_0x2740('0x113')]&&_0x2b9b82[_0x2740('0xa3')]){const {commonTape:_0x412d81,iEnd:_0x2410c2,jEnd:_0x1a0344}=this['_threeWayMerge'](_0xe9e543,_0x416389,_0x195499,_0x5a0068);_0x30d10f=_0x30d10f[_0x2740('0xb3')](_0x412d81),_0x416389=_0x2410c2,_0x5a0068=_0x1a0344;}else _0x3b5e8b[_0x2740('0x113')]?(_0x5a0068++,_0x30d10f[_0x2740('0x72')](_0x3b5e8b)):(_0x416389++,_0x30d10f['push'](_0x2b9b82));}}return _0x30d10f;}[_0x2740('0x38')](_0x1bdaa9,_0x305c38){const _0x5637e8=[];for(let _0x5723b9=0x0;_0x5723b9<_0x1bdaa9[_0x2740('0x3')];_0x5723b9++){for(let _0x47a5d3=0x0;_0x47a5d3<_0x1bdaa9[_0x5723b9][_0x2740('0x54')][_0x2740('0x3')];_0x47a5d3++){const _0x83ae42=_0x1bdaa9[_0x5723b9][_0x2740('0x54')][_0x47a5d3];if(!_0x305c38[_0x2740('0x2f')](_0x83ae42))continue;const {group:_0x511120,type:_0x1144de,authorId:_0x23b6df}=_0x394b0f(_0x83ae42);'revision-suggestion'!=_0x511120||'insertion'!=_0x1144de&&'deletion'!=_0x1144de||(_0x5637e8[_0x2740('0xa1')]({'type':_0x1144de,'name':_0x83ae42,'userId':_0x23b6df}),_0x1bdaa9[_0x5723b9][_0x2740('0x54')][_0x2740('0xb4')](_0x47a5d3,0x1),_0x47a5d3--);}_0x5c7a25(_0x1bdaa9[_0x5723b9]);for(let _0x4063b=0x0;_0x4063b<_0x1bdaa9[_0x5723b9][_0x2740('0x6')][_0x2740('0x3')];_0x4063b++){const _0x1a8d85=_0x1bdaa9[_0x5723b9][_0x2740('0x6')][_0x4063b];if(!_0x305c38[_0x2740('0x2f')](_0x1a8d85))continue;const {group:_0x37da36,type:_0x2f65f1}=_0x394b0f(_0x1a8d85);if(_0x2740('0xeb')!=_0x37da36||_0x2740('0xfd')!=_0x2f65f1&&_0x2740('0xa5')!=_0x2f65f1)continue;_0x1bdaa9[_0x5723b9]['markersEnd'][_0x2740('0xb4')](_0x4063b,0x1),_0x4063b--;const _0x4f19c2=_0x5637e8[_0x2740('0x58')](_0x77af21=>_0x77af21[_0x2740('0xe5')]==_0x1a8d85);_0x4f19c2>-0x1&&_0x5637e8['splice'](_0x4f19c2,0x1);}}function _0x394b0f(_0x5719ef){const _0x24303a=_0x5719ef[_0x2740('0xa4')](':');return{'group':_0x24303a[0x0],'type':_0x24303a[0x1],'subType':_0x24303a[_0x2740('0x3')]>=0x5?_0x24303a[0x2]:null,'id':_0x24303a[_0x2740('0x3')]<0x5?_0x24303a[0x2]:_0x24303a[0x3],'authorId':_0x24303a[_0x2740('0x3')]<0x5?_0x24303a[0x3]:_0x24303a[0x4],'markerCount':0x6==_0x24303a[_0x2740('0x3')]?_0x24303a[0x5]:null};}function _0x5c7a25(_0x20d97e){for(let _0x5d84c5=0x0;_0x5d84c5<_0x5637e8['length'];_0x5d84c5++){if(_0x20d97e[_0x2740('0xa3')]&&_0x2740('0xfd')==_0x5637e8[_0x5d84c5][_0x2740('0xc5')])return _0x20d97e[_0x2740('0x8')]=_0x5637e8[_0x5d84c5],void delete _0x20d97e[_0x2740('0xa3')];if(!_0x20d97e[_0x2740('0xa3')]&&!_0x20d97e[_0x2740('0x113')]&&_0x2740('0xa5')==_0x5637e8[_0x5d84c5][_0x2740('0xc5')])return void(_0x20d97e[_0x2740('0x100')]=_0x5637e8[_0x5d84c5]);}}}[_0x2740('0x65')](_0x2cb16b,_0x317c9e){let _0x15454b=0x0,_0x2093fb=!0x1;const _0xe78612=new Map();for(const _0x4ce459 of _0x2cb16b)_0x4ce459[_0x317c9e]?_0x2093fb&&(_0x15454b++,_0x2093fb=!0x1):(_0x15454b++,_0x2093fb=!0x0),_0xe78612[_0x2740('0xdf')](_0x4ce459['id'],_0x15454b);for(let _0x481733=0x0;_0x481733<_0x2cb16b[_0x2740('0x3')];_0x481733++){if('isRemoved'==_0x317c9e&&_0x2cb16b[_0x481733][_0x2740('0xa3')]||'isAdded'==_0x317c9e&&_0x2cb16b[_0x481733][_0x2740('0x113')])continue;if(_0x2740('0x11a')==_0x2cb16b[_0x481733][_0x2740('0xc5')]){_0x2cb16b[_0x481733][_0x2740('0xec')]=0x0;continue;}const _0x4be5cf=_0xe78612[_0x2740('0x92')](_0x2cb16b[_0x481733][_0x2740('0x7a')]),_0x1c791f=_0xe78612['get'](_0x2cb16b[_0x481733]['id']);_0x2cb16b[_0x481733]['distance']=_0x4be5cf-_0x1c791f;}}['_getRevisionsRange'](_0xec0409,_0x4c9f41,_0x49e097=!0x1){const _0x3149cb=[];let _0x3333da=this[_0x2740('0x6f')][_0x2740('0x43')](_0xec0409),_0x5042a7=this[_0x2740('0x6f')][_0x2740('0x43')](_0x4c9f41);for(-0x1==_0x5042a7&&(_0x5042a7=this[_0x2740('0x6f')]['_revisions'][_0x2740('0x3')],_0x49e097=!0x1);_0x3333da<_0x5042a7;)_0x3149cb['push'](this[_0x2740('0x6f')][_0x2740('0x20')](_0x3333da)),_0x3333da++;return _0x49e097&&_0x3149cb['push'](this[_0x2740('0x6f')][_0x2740('0x20')](_0x3333da)),_0x3149cb;}[_0x2740('0xe1')](_0x1a14fa,_0xb61bb6,_0x183b83,_0x1e8f00){const _0x5dc32d=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x24')];let _0x5738f0=_0xb61bb6;for(;_0x1a14fa[_0x5738f0]&&_0x1a14fa[_0x5738f0][_0x2740('0xa3')];)_0x5738f0++;let _0x2bcd57=_0x1e8f00;for(;_0x183b83[_0x2bcd57]&&_0x183b83[_0x2bcd57][_0x2740('0x113')];)_0x2bcd57++;_0x5461d6(_0x1a14fa,_0xb61bb6,_0x5738f0),_0x5461d6(_0x183b83,_0x1e8f00,_0x2bcd57);const _0x4f3493=_0x183b83[_0x2740('0xbf')](_0x1e8f00,_0x2bcd57)['concat'](_0x1a14fa[_0x2740('0xbf')](_0xb61bb6,_0x5738f0));return _0x4f3493[_0x2740('0xe9')]((_0x4c2c48,_0x5f2594)=>_0x4c2c48['side']!=_0x5f2594[_0x2740('0x4a')]?_0x4c2c48['side']-_0x5f2594[_0x2740('0x4a')]:_0x4c2c48[_0x2740('0xe')]!=_0x5f2594[_0x2740('0xe')]?_0x4c2c48[_0x2740('0xe')]-_0x5f2594[_0x2740('0xe')]:_0x4c2c48[_0x2740('0xec')]!=_0x5f2594[_0x2740('0xec')]?_0x5f2594[_0x2740('0xec')]-_0x4c2c48['distance']:!!_0x4c2c48[_0x2740('0xa3')]!=!!_0x5f2594[_0x2740('0xa3')]?-0x1==_0x4c2c48[_0x2740('0x4a')]||0x0==_0x4c2c48['side']?_0x4c2c48['isAdded']?-0x1:0x1:_0x4c2c48[_0x2740('0xa3')]?0x1:-0x1:_0x4c2c48[_0x2740('0xc9')]-_0x5f2594[_0x2740('0xc9')]),{'commonTape':_0x4f3493,'iEnd':_0x5738f0,'jEnd':_0x2bcd57};function _0x5461d6(_0x35c28e,_0x3bd092,_0x55d192){let _0x5f1cce=-0x1,_0x5db989=Number[_0x2740('0xd6')],_0x49d687=!0x0;for(let _0x49aa=_0x3bd092;_0x49aa<_0x55d192;_0x49aa++)if(_0x5dc32d[_0x2740('0x18')](_0x35c28e[_0x49aa][_0x2740('0xa7')])||(_0x49d687=!0x1),_0x35c28e[_0x49aa][_0x2740('0xa7')][_0x2740('0xe3')]<_0x3bd092&&(_0x5f1cce=_0x49aa),_0x35c28e[_0x49aa]['item']['endIndex']>=_0x55d192){_0x5db989=_0x49aa;break;}_0x49d687&&(_0x5f1cce=_0x55d192-0x1);for(let _0x3d641=_0x3bd092;_0x3d641<_0x55d192;_0x3d641++)_0x35c28e[_0x3d641][_0x2740('0x4a')]=_0x3d641<=_0x5f1cce?-0x1:_0x3d641<_0x5db989?0x0:0x1,_0x35c28e[_0x3d641][_0x2740('0xc9')]=_0x3d641;let _0x2b11f0=0x0;for(let _0xb96e58=_0x3bd092;_0xb96e58<=_0x5f1cce;_0xb96e58++)0x0==_0x35c28e[_0xb96e58][_0x2740('0xec')]?_0x35c28e[_0xb96e58][_0x2740('0xe')]=_0x2b11f0:(_0x2b11f0++,_0x35c28e[_0xb96e58][_0x2740('0xe')]=_0x2b11f0,_0x2b11f0++);for(let _0x5f1864=_0x3bd092;_0x5f1864<_0x55d192;_0x5f1864++)0x0==_0x35c28e[_0x5f1864][_0x2740('0x4a')]&&(_0x35c28e[_0x5f1864][_0x2740('0xe')]=_0x2b11f0);_0x2b11f0=0x0;for(let _0x4bc4dd=_0x55d192-0x1;_0x4bc4dd>=_0x5db989;_0x4bc4dd--)0x0==_0x35c28e[_0x4bc4dd]['distance']?_0x35c28e[_0x4bc4dd]['level']=_0x2b11f0:(_0x2b11f0--,_0x35c28e[_0x4bc4dd][_0x2740('0xe')]=_0x2b11f0,_0x2b11f0--);}}[_0x2740('0xfb')](_0x55f2b0){const _0x263f89=new Map(),_0x55601b=this[_0x2740('0x74')][_0x2740('0x94')]['schema'];for(let _0x36e8c1=0x1;_0x36e8c1<_0x55f2b0['length'];_0x36e8c1++){let _0x592217,_0xe58d6a,_0x1bc04a;const _0x248db8=_0x55f2b0[_0x36e8c1],_0x3059dd=_0x55f2b0[_0x36e8c1-0x1];if(_0x2740('0x11a')==_0x248db8['type'])continue;if(_0x248db8[_0x2740('0xc5')]!=_0x3059dd[_0x2740('0xc5')])continue;if(!_0x55601b[_0x2740('0x50')](_0x3059dd[_0x2740('0xa7')])||_0x55601b['isLimit'](_0x3059dd[_0x2740('0xa7')]))continue;if(!_0x55601b[_0x2740('0x50')](_0x248db8['item'])||_0x55601b[_0x2740('0x5b')](_0x248db8[_0x2740('0xa7')]))continue;if((_0x55f2b0[_0x36e8c1][_0x2740('0xa3')]||_0x55f2b0[_0x36e8c1][_0x2740('0x8')])&&_0x55f2b0[_0x36e8c1-0x1][_0x2740('0x113')])_0x592217=_0x55f2b0[_0x36e8c1],_0xe58d6a=_0x55f2b0[_0x36e8c1-0x1],_0x1bc04a=_0x36e8c1-0x1;else{if(!_0x55f2b0[_0x36e8c1][_0x2740('0x113')]||!_0x55f2b0[_0x36e8c1-0x1]['isAdded']&&!_0x55f2b0[_0x36e8c1-0x1][_0x2740('0x8')])continue;_0x592217=_0x55f2b0[_0x36e8c1-0x1],_0xe58d6a=_0x55f2b0[_0x36e8c1],_0x1bc04a=_0x36e8c1;}const _0x44ad96=_0x592217['level']==_0xe58d6a['level'],_0x19451c=Math[_0x2740('0x81')](_0x592217['level'])<Math[_0x2740('0x81')](_0xe58d6a['level'])&&0x0==_0xe58d6a[_0x2740('0xec')];(_0x44ad96||_0x19451c)&&(_0x263f89['set'](_0xe58d6a['id'],_0x592217['id']),_0x55f2b0[_0x2740('0xb4')](_0x1bc04a,0x1),_0x36e8c1--,_0x592217[_0x2740('0xa3')]=!0x1);}for(let _0x574723=0x0;_0x574723<_0x55f2b0[_0x2740('0x3')];_0x574723++)_0x263f89[_0x2740('0x2f')](_0x55f2b0[_0x574723][_0x2740('0x7a')])&&(_0x55f2b0[_0x574723][_0x2740('0x7a')]=_0x263f89[_0x2740('0x92')](_0x55f2b0[_0x574723][_0x2740('0x7a')]));}[_0x2740('0xe8')](_0x19fa53){const _0x367130=new Set(_0x19fa53[_0x2740('0xee')](_0x53486c=>_0x53486c['id']));for(let _0x17a77d=0x0;_0x17a77d<_0x19fa53['length'];_0x17a77d++)_0x367130[_0x2740('0x2f')](_0x19fa53[_0x17a77d]['pairId'])||0x0==_0x19fa53[_0x17a77d][_0x2740('0xec')]||(_0x19fa53[_0x17a77d][_0x2740('0x11c')]=!0x0);return _0x19fa53[_0x2740('0x118')](_0x1338c0=>!_0x1338c0[_0x2740('0x11c')]);}[_0x2740('0xac')](_0x1325ba){const _0x394bcc=new Set();for(let _0x277b93=0x0;_0x277b93<_0x1325ba['length'];_0x277b93++){if(_0x394bcc[_0x2740('0x2f')](_0x1325ba[_0x277b93]['id'])&&_0x1325ba[_0x277b93][_0x2740('0x113')]&&(_0x1325ba[_0x277b93][_0x2740('0x11c')]=!0x0),_0x1325ba[_0x277b93][_0x2740('0x11c')])continue;if(0x0==_0x1325ba[_0x277b93][_0x2740('0xec')])continue;if(_0x2740('0xc7')!=_0x1325ba[_0x277b93][_0x2740('0xc5')])continue;if(null==_0x1325ba[_0x277b93][_0x2740('0x7a')])continue;let _0x30094f=_0x277b93+0x1,_0x49add1=0x0;for(;_0x1325ba[_0x30094f]['id']!=_0x1325ba[_0x277b93]['pairId'];)'elementStart'==_0x1325ba[_0x30094f][_0x2740('0xc5')]?_0x49add1++:_0x2740('0xd2')==_0x1325ba[_0x30094f][_0x2740('0xc5')]&&_0x49add1--,_0x30094f++;if(0x0!=_0x49add1){if(_0x1325ba[_0x277b93]['isRemoved'])_0x1325ba[_0x277b93][_0x2740('0x11c')]=!0x0;else for(;_0x30094f!=_0x277b93;)_0x1325ba[_0x30094f][_0x2740('0x113')]&&0x0!=_0x1325ba[_0x30094f][_0x2740('0xec')]&&(_0x1325ba[_0x30094f][_0x2740('0x11c')]=!0x0,_0x394bcc[_0x2740('0x13')](_0x1325ba[_0x30094f]['pairId'])),_0x30094f--;}}return _0x1325ba[_0x2740('0x118')](_0x345d79=>!_0x345d79[_0x2740('0x11c')]);}[_0x2740('0x34')](_0x1dd0f8){const _0x3546d7=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x24')];for(let _0x41522a=0x0;_0x41522a<_0x1dd0f8['length'];_0x41522a++){if(!(_0x1dd0f8[_0x41522a]['isAdded']||_0x1dd0f8[_0x41522a]['isAddSuggestion']||_0x1dd0f8[_0x41522a]['isRemoved']||_0x1dd0f8[_0x41522a][_0x2740('0x100')]))continue;if(0x0==_0x1dd0f8[_0x41522a][_0x2740('0xec')])continue;const _0x29ff3c=_0x1dd0f8[_0x41522a]['item'];_0x3546d7[_0x2740('0x50')](_0x29ff3c)||_0x3546d7[_0x2740('0x5b')](_0x29ff3c)||(_0x1dd0f8[_0x41522a]['isAdded']&&delete _0x1dd0f8[_0x41522a][_0x2740('0xa3')],_0x1dd0f8[_0x41522a]['isAddSuggestion']&&delete _0x1dd0f8[_0x41522a][_0x2740('0x8')],_0x1dd0f8[_0x41522a][_0x2740('0x100')]&&delete _0x1dd0f8[_0x41522a][_0x2740('0x100')],_0x1dd0f8[_0x41522a][_0x2740('0x113')]&&(_0x1dd0f8[_0x41522a]['isIncorrect']=!0x0));}return _0x1dd0f8[_0x2740('0x118')](_0x2c28ab=>!_0x2c28ab[_0x2740('0x11c')]);}[_0x2740('0x60')](_0x3d6012,_0x5d0b0b,_0x242810){const _0x529378=new _0x434b7b(),_0x4d2347=[],_0x5112d1=new Map(),_0x4cfcad=this[_0x2740('0x74')][_0x2740('0x94')],_0x152ec7=_0x4cfcad['schema'],_0x5089f2=[_0x529378],_0x43eccf={},_0x231300={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x323579=null;const _0x3b44fc=[0x0];for(let _0xd044eb=0x0;_0xd044eb<_0x3d6012['length'];_0xd044eb++){let _0x4f2033,_0x170d89;if(_0x2740('0xc7')===_0x3d6012[_0xd044eb][_0x2740('0xc5')]){_0x4f2033=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc);const _0x2be27b=new _0x3cc323(_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0xe5')],_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0x42')]());_0x5089f2[0x0][_0x2740('0xf')](_0x2be27b),_0x3b44fc[_0x2740('0x72')](0x0),_0x5089f2[_0x2740('0xa1')](_0x2be27b),_0x170d89=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc),_0x323579=null;}else{if(_0x2740('0xd2')===_0x3d6012[_0xd044eb][_0x2740('0xc5')])_0x5089f2['shift'](),_0x4f2033=_0x4cfcad['createPositionFromPath'](_0x529378,_0x3b44fc),_0x3b44fc[_0x2740('0x6a')](),_0x3b44fc[_0x3b44fc['length']-0x1]++,_0x170d89=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc),_0x323579=null;else{if(_0x4f2033=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc),_0x323579&&_0x1433a2(_0x323579,_0x3d6012[_0xd044eb][_0x2740('0xa7')]))_0x323579[_0x2740('0x26')]+=_0x3d6012[_0xd044eb]['item']['data'];else{const _0x26a2f7=new _0x14e401(_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0xd')],_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0x42')]());_0x5089f2[0x0][_0x2740('0xf')](_0x26a2f7),_0x323579=_0x26a2f7;}_0x3b44fc[_0x3b44fc[_0x2740('0x3')]-0x1]+=_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0xc4')],_0x170d89=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc);}}for(const _0x289dd2 of _0x3d6012[_0xd044eb][_0x2740('0x54')])_0x5112d1['set'](_0x289dd2,{'start':_0x4f2033,'end':null});_0x5b9f52('isRemoveSuggestion',_0xd044eb,_0x4f2033,_0x170d89),_0x5b9f52('isAddSuggestion',_0xd044eb,_0x4f2033,_0x170d89),_0x5b9f52('isRemoved',_0xd044eb,_0x4f2033,_0x170d89),_0x5b9f52('isAdded',_0xd044eb,_0x4f2033,_0x170d89);for(const _0x14d042 of _0x3d6012[_0xd044eb]['markersEnd']){_0x5112d1['get'](_0x14d042)[_0x2740('0x3d')]=_0x170d89;}}for(const [_0x505606,_0x5d00d1]of _0x5112d1){const _0x37291e=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x10e')](_0x5d00d1['start'],_0x5d00d1[_0x2740('0x3d')]);_0x529378[_0x2740('0x61')]['set'](_0x505606,_0x37291e);}return _0x4d2347['sort']((_0x4131af,_0x3776a0)=>{const _0x4eba2f=_0x529378[_0x2740('0x61')][_0x2740('0x92')](_0x2740('0xf2')+_0x4131af['id']),_0x381222=_0x529378[_0x2740('0x61')][_0x2740('0x92')]('revision:'+_0x3776a0['id']);return _0x4eba2f[_0x2740('0x117')][_0x2740('0xc1')](_0x381222[_0x2740('0x117')])?-0x1:_0x4eba2f['start'][_0x2740('0x112')](_0x381222[_0x2740('0x117')])?0x1:_0x4eba2f['end'][_0x2740('0xc1')](_0x381222[_0x2740('0x3d')])?-0x1:_0x4eba2f[_0x2740('0x3d')][_0x2740('0x112')](_0x381222[_0x2740('0x3d')])?0x1:'add'===_0x4131af[_0x2740('0xc5')]?-0x1:0x1;}),{'root':_0x529378,'changes':_0x4d2347};function _0x5b9f52(_0x3ae2f2,_0x3db705,_0xabc87c,_0x31ecd2){const _0x5dce7d=!!_0x3d6012[_0x3db705][_0x3ae2f2],_0xb32fdb=_0x5dce7d?_0x3d6012[_0x3db705][_0x3ae2f2]['userId']:null,_0xf2880c=_0x3db705===_0x3d6012[_0x2740('0x3')]-0x1,_0x5e4763=_0x231300[_0x3ae2f2][0x0],_0xc86e31=_0x152ec7[_0x2740('0xd5')](_0x3d6012[_0x3db705][_0x2740('0xa7')]);!_0x43eccf[_0x3ae2f2]&&_0x5dce7d?_0x43eccf[_0x3ae2f2]={'start':_0xabc87c,'tapeItem':_0x3d6012[_0x3db705],'userId':_0xb32fdb,'type':_0x3ae2f2}:_0x43eccf[_0x3ae2f2]&&!_0x5dce7d?(_0x43eccf[_0x3ae2f2][_0x2740('0x3d')]=_0xabc87c,_0x17fb2a(_0x43eccf[_0x3ae2f2]),_0x43eccf[_0x3ae2f2]=null):_0x43eccf[_0x3ae2f2]&&_0x5dce7d&&_0x43eccf[_0x3ae2f2][_0x2740('0x1d')]!==_0xb32fdb&&(_0x43eccf[_0x3ae2f2][_0x2740('0x3d')]=_0xabc87c,_0x5e4763&&_0x5e4763[_0x2740('0x1d')]===_0x43eccf[_0x3ae2f2][_0x2740('0x1d')]||_0x17fb2a(_0x43eccf[_0x3ae2f2]),_0x43eccf[_0x3ae2f2]={'start':_0xabc87c,'tapeItem':_0x3d6012[_0x3db705],'userId':_0xb32fdb,'type':_0x3ae2f2}),_0x43eccf[_0x3ae2f2]&&_0xc86e31&&('elementStart'!==_0x3d6012[_0x3db705][_0x2740('0xc5')]||_0x5e4763&&_0x5e4763[_0x2740('0x1d')]===_0xb32fdb||_0x231300[_0x3ae2f2][_0x2740('0xa1')]({'userId':_0xb32fdb,'object':_0x3d6012[_0x3db705]['item'],'change':_0x43eccf[_0x3ae2f2]}),_0x2740('0xd2')===_0x3d6012[_0x3db705]['type']&&_0x5e4763&&_0x5e4763['object']===_0x3d6012[_0x3db705][_0x2740('0xa7')]&&(_0x231300[_0x3ae2f2]['shift'](),_0x43eccf[_0x3ae2f2]=_0x5e4763[_0x2740('0x102')])),_0x43eccf[_0x3ae2f2]&&_0xf2880c&&(_0x43eccf[_0x3ae2f2][_0x2740('0x3d')]=_0x31ecd2,_0x17fb2a(_0x43eccf[_0x3ae2f2]),_0x43eccf[_0x3ae2f2]=null);}function _0x17fb2a({start:_0x8ce9d7,end:_0x4d0529,tapeItem:_0x1567b8,userId:_0x24b459,type:_0x4605e4}){const _0x4ee404=_0x1567b8[_0x2740('0xa7')],_0x4aadc4=_0x4cfcad['schema']['isBlock'](_0x4ee404)&&!_0x4cfcad['schema'][_0x2740('0x5b')](_0x4ee404),_0x46a232=_0x8ce9d7[_0x2740('0x88')]==_0x4d0529[_0x2740('0x70')]&&_0x4d0529[_0x2740('0xbb')];if(_0x4aadc4&&_0x46a232)return;const _0x489448=_0x4cfcad[_0x2740('0x10e')](_0x8ce9d7,_0x4d0529),_0x499fd9=_0x5d0b0b['get'](_0x24b459),_0x461f28=new _0x699e92({'author':_0x499fd9,'type':'isAdded'==_0x4605e4||_0x2740('0x8')==_0x4605e4?'add':'remove','data':{'isSuggestion':_0x2740('0x8')==_0x4605e4||_0x2740('0x100')==_0x4605e4},'createdAt':new Date(),'rootName':_0x242810});_0x4d2347[_0x2740('0x72')](_0x461f28),_0x529378[_0x2740('0x61')]['set'](_0x2740('0xf2')+_0x461f28['id'],_0x489448);}function _0x1433a2(_0x5a1238,_0x152e1f){const _0x348f20=_0x5a1238[_0x2740('0x42')](),_0x12ba5f=_0x152e1f[_0x2740('0x42')]();for(const _0x2ba194 of _0x348f20){if(_0x2ba194[0x1]!==_0x152e1f[_0x2740('0xf1')](_0x2ba194[0x0]))return!0x1;_0x12ba5f['next']();}return _0x12ba5f[_0x2740('0xa2')]()['done'];}}['_setConversion'](){this[_0x2740('0x74')]['conversion'][_0x2740('0x107')]('upcast')[_0x2740('0x27')]({'view':_0x2740('0xb9')}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')](_0x2740('0x11e'))[_0x2740('0xd7')]({'model':'revision','view':_0x5c6a0d=>{const _0xde8714=_0x5c6a0d[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1],_0x43791e=this[_0x2740('0xd3')](_0xde8714);if(!_0x43791e)return null;const _0x348c04=_0x2740('0x13')==_0x43791e[_0x2740('0xc5')]?_0x2740('0xfd'):_0x2740('0xa5'),_0x5d6048=['ck-suggestion-marker',_0x2740('0x79')+_0x348c04];return _0x43791e[_0x2740('0xd')][_0x2740('0x5e')]&&_0x5d6048['push'](_0x2740('0x79')+_0x348c04+'-new'),this[_0x2740('0x105')]==_0x43791e&&_0x5d6048[_0x2740('0x72')]('ck-suggestion-marker--active'),{'classes':_0x5d6048,'attributes':{'data-change-id':_0xde8714}};}}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')](_0x2740('0x97'))[_0x2740('0x13')](_0x41c32a=>{_0x41c32a['on'](_0x2740('0xc2'),(_0x336fea,_0x11fd25,_0x4682c9)=>{const _0x3a167b=_0x11fd25[_0x2740('0x35')][_0x2740('0x11d')](0x0);if(!_0x3a167b||!_0x3a167b['is'](_0x2740('0x39'),'code'))return;if(!_0x4682c9['consumable']['consume'](_0x3a167b,{'attributes':[_0x2740('0x75'),_0x2740('0x87')]}))return;const _0x255a0f=_0x11fd25[_0x2740('0x6d')][_0x2740('0x117')]['nodeAfter'];_0x4682c9['writer']['setAttribute'](_0x2740('0x75'),_0x3a167b[_0x2740('0xf1')](_0x2740('0x75')),_0x255a0f),_0x4682c9[_0x2740('0x6b')][_0x2740('0xff')]('vid_end',_0x3a167b[_0x2740('0xf1')](_0x2740('0x87')),_0x255a0f);},{'priority':'low'});}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')]('upcast')[_0x2740('0x13')](_0x14bae3=>{_0x14bae3['on'](_0x2740('0x39'),(_0x19abf4,_0x18a983,_0x43bdf6)=>{if(!_0x43bdf6[_0x2740('0x29')]['consume'](_0x18a983['viewItem'],{'attributes':['vid_start',_0x2740('0x87')]}))return;if(_0x18a983[_0x2740('0x6d')][_0x2740('0x109')])return;const _0x32e38d=_0x18a983[_0x2740('0x6d')][_0x2740('0x117')][_0x2740('0x88')];_0x32e38d[_0x2740('0x5d')]('vid_start')||_0x32e38d[_0x2740('0x5d')](_0x2740('0x116'))||(_0x43bdf6[_0x2740('0x6b')][_0x2740('0xff')](_0x2740('0x75'),_0x18a983[_0x2740('0x35')][_0x2740('0xf1')]('vid_start'),_0x32e38d),_0x43bdf6[_0x2740('0x6b')][_0x2740('0xff')](_0x2740('0x87'),_0x18a983[_0x2740('0x35')][_0x2740('0xf1')](_0x2740('0x87')),_0x32e38d));},{'priority':_0x2740('0xcd')});}),this[_0x2740('0x74')][_0x2740('0x99')]['for'](_0x2740('0x97'))['elementToAttribute']({'view':{'name':_0x2740('0x3f'),'attributes':{'vid':!0x0}},'model':{'key':_0x2740('0x116'),'value':_0x5585b0=>_0x5585b0['getAttribute'](_0x2740('0x116'))}}),this['editor']['model'][_0x2740('0x24')]['on'](_0x2740('0x96'),(_0x54452e,[,_0x1f2c42])=>{[_0x2740('0x75'),'vid_end','vid'][_0x2740('0x2b')](_0x1f2c42)&&(_0x54452e[_0x2740('0xca')]=!0x0,_0x54452e['stop']());},{'priority':_0x2740('0xab')}),this[_0x2740('0x74')]['conversion'][_0x2740('0x107')](_0x2740('0xb2'))['add'](_0x2a4c9a=>{_0x2a4c9a['on'](_0x2740('0x55'),(_0x186434,_0x5ecbc1,_0x4ff6fd)=>{if('\x20'!=_0x5ecbc1['item'][_0x2740('0xd')]||_0x5ecbc1[_0x2740('0xa7')][_0x2740('0x70')][_0x2740('0x56')]>0x1)return;if(!_0x4ff6fd['consumable'][_0x2740('0xbc')](_0x5ecbc1[_0x2740('0xa7')],_0x186434['name']))return;const _0x4fda3b=_0x4ff6fd[_0x2740('0x6b')],_0x571d93=_0x4ff6fd[_0x2740('0x17')]['toViewRange'](_0x5ecbc1[_0x2740('0xf9')]);_0x4fda3b[_0x2740('0x28')](_0x571d93,_0x4fda3b[_0x2740('0x14')](_0x2740('0x3f')));});}),this[_0x2740('0x74')]['conversion'][_0x2740('0x107')]('dataDowncast')[_0x2740('0xad')]({'model':_0x2740('0xb9')}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0x85'),function(_0x22bfb4){const _0xe6b868=_0x22bfb4[_0x2740('0xba')]['get'](_0x2740('0x7c'));return(_0x220500,_0x5a6209,_0x2d7237)=>{const _0x4cd71f=_0x5a6209[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1],_0x589b16=_0xe6b868[_0x2740('0xd3')](_0x4cd71f);if(!_0x589b16)return null;const _0x2c074e='add'==_0x589b16['type']?_0x2740('0xa4'):_0x2740('0x6c');if(!_0x2d7237[_0x2740('0x29')]['test'](_0x5a6209[_0x2740('0x10b')],_0x220500['name']))return;const _0x3bf05f=_0x5a6209['markerRange'][_0x2740('0xdd')](),_0x351eb1=_0x5a6209['markerRange'][_0x2740('0x117')],_0x420b37=_0x22bfb4[_0x2740('0x94')][_0x2740('0x24')];let _0x35663e=null,_0x33855d=null,_0x314a0d=!0x1,_0x2c8d14=!0x1;for(const _0x209785 of _0x3bf05f){const _0x424ef2=_0x209785[_0x2740('0xa7')];_0x314a0d=_0x314a0d||_0x420b37['isContent'](_0x424ef2);const _0x10a5e6=_0x2d7237[_0x2740('0x17')][_0x2740('0x5a')](_0x424ef2);if(_0x10a5e6&&_0x10a5e6[_0x2740('0x2d')](_0x2740('0xaf')))return;_0x2740('0xd2')==_0x209785['type']&&(_0x420b37[_0x2740('0x50')](_0x424ef2)&&!_0x420b37[_0x2740('0x5b')](_0x424ef2)&&(_0x424ef2[_0x2740('0x9f')]||_0x351eb1['isAtEnd']?_0x35663e&&_0x35663e['parent']==_0x424ef2||(_0x35663e=_0x424ef2,_0x49e924(_0x209785['previousPosition']),_0x2c8d14=!0x0):_0x33855d=_0x33855d||_0x209785[_0x2740('0xc0')]));}function _0x49e924(_0xf6b3fe){const _0x487368=_0x2d7237[_0x2740('0x6b')][_0x2740('0x66')](_0x2740('0x3f'),{'class':_0x2740('0x79')+_0x2c074e}),_0x40620f=_0x2d7237[_0x2740('0x17')][_0x2740('0x104')](_0xf6b3fe);_0x589b16[_0x2740('0xd')]['isSuggestion']&&_0x2d7237[_0x2740('0x6b')][_0x2740('0x110')](_0x2740('0x79')+_0x2c074e+_0x2740('0x68'),_0x487368),_0xe6b868[_0x2740('0x105')]==_0x589b16&&_0x2d7237[_0x2740('0x6b')][_0x2740('0x110')](_0x2740('0x9b'),_0x487368),_0x2d7237['writer'][_0x2740('0x59')](_0x40620f,_0x487368),_0x2d7237[_0x2740('0x17')]['bindElementToMarker'](_0x487368,_0x5a6209[_0x2740('0xf7')]);}_0x314a0d||_0x2c8d14||!_0x33855d||_0x49e924(_0x33855d);};}(this[_0x2740('0x74')]),{'priority':_0x2740('0xd0')}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0xe7'),(_0x39a3f5,_0x1294d3,_0x5b4dbc)=>{const _0x165b5b=_0x5b4dbc[_0x2740('0x17')]['markerNameToElements'](_0x1294d3[_0x2740('0xf7')]);if(_0x165b5b)for(const _0x392c07 of _0x165b5b)(_0x392c07[_0x2740('0x7d')](_0x2740('0x10f'))||_0x392c07[_0x2740('0x7d')]('ck-suggestion-marker-merge'))&&(_0x5b4dbc[_0x2740('0x17')][_0x2740('0xef')](_0x392c07,_0x1294d3[_0x2740('0xf7')]),_0x5b4dbc[_0x2740('0x6b')][_0x2740('0x9')](_0x392c07));},{'priority':_0x2740('0xd0')}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0x85'),(_0x2c8cb1,_0x5116b1,_0xaf99d3)=>{const _0x334cd2=_0x5116b1[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1],_0x1f6ebc=this[_0x2740('0xd3')](_0x334cd2);if(!_0x1f6ebc)return null;const _0x33e92d=_0x2740('0x13')==_0x1f6ebc[_0x2740('0xc5')]?'split':'merge';if(_0xaf99d3[_0x2740('0x29')][_0x2740('0x114')](_0x5116b1['markerRange'],_0x2c8cb1['name']))for(const _0x2bf94e of _0x5116b1['markerRange'][_0x2740('0x3e')]()){if(!_0x2bf94e['is'](_0x2740('0x39'),_0x2740('0x22')))continue;const _0x30d00b=_0xaf99d3['writer'][_0x2740('0x66')]('span',{'class':_0x2740('0x79')+_0x33e92d}),_0x889e7c=_0xaf99d3['mapper'][_0x2740('0x104')](this['editor'][_0x2740('0x94')][_0x2740('0x5')](_0x2bf94e));_0x1f6ebc[_0x2740('0xd')][_0x2740('0x5e')]&&_0xaf99d3[_0x2740('0x6b')][_0x2740('0x110')](_0x2740('0x79')+_0x33e92d+_0x2740('0x68'),_0x30d00b),this[_0x2740('0x105')]==_0x1f6ebc&&_0xaf99d3[_0x2740('0x6b')]['addClass'](_0x2740('0x9b'),_0x30d00b),_0xaf99d3[_0x2740('0x6b')][_0x2740('0x59')](_0x889e7c,_0x30d00b),_0xaf99d3['mapper'][_0x2740('0x15')](_0x30d00b,_0x5116b1[_0x2740('0xf7')]);}},{'priority':_0x2740('0xd0')}),this['editor'][_0x2740('0x94')][_0x2740('0xdc')]['on'](_0x2740('0x102'),()=>{this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb5')]['change'](_0x484981=>{for(const _0xa2c262 of this['editor'][_0x2740('0x94')][_0x2740('0xdc')][_0x2740('0x1e')]()){const _0x2470b0=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0xdc')][_0x2740('0x115')](_0xa2c262),_0x529cea=this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb5')][_0x2740('0xdc')]['getRoot'](_0xa2c262);if(_0x529cea){const _0x39ba5d=_0x2470b0[_0x2740('0xf1')]('revisionHistoryAttachChange');if(_0x484981[_0x2740('0xf6')](_0x2740('0x33'),_0x529cea),_0x484981['removeClass'](_0x2740('0x8b'),_0x529cea),_0x484981['removeClass']('ck-revision-history-root-remove',_0x529cea),_0x484981[_0x2740('0xfa')](_0x2740('0x9d'),_0x529cea),_0x39ba5d){const _0x565a9e=this['_getChangeFromId'](_0x39ba5d);if(!_0x565a9e)return null;_0x484981[_0x2740('0xff')](_0x2740('0x33'),_0x39ba5d,_0x529cea),_0x484981[_0x2740('0x110')](_0x2740('0xe0')+_0x565a9e[_0x2740('0xc5')],_0x529cea),this['activeChange']==_0x565a9e&&_0x484981[_0x2740('0x110')]('ck-revision-history-root--active',_0x529cea);}}}});}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')]('upcast')[_0x2740('0x27')]({'view':_0x2740('0xf4'),'model':_0x3c9dbd=>_0x2740('0x4e')+_0x3c9dbd,'converterPriority':'highest'}),this['editor'][_0x2740('0x99')][_0x2740('0x107')](_0x2740('0x97'))[_0x2740('0x27')]({'view':'suggestion','model':_0x238712=>'revision-suggestion:'+_0x238712,'converterPriority':_0x2740('0xab')}),this['editor'][_0x2740('0x99')]['for'](_0x2740('0xb2'))['markerToData']({'model':_0x2740('0xeb'),'view':_0x574594=>({'name':_0x2740('0xb6')+_0x574594,'group':'revision-suggestion'}),'converterPriority':_0x2740('0xab')}),this['editor'][_0x2740('0x99')]['for'](_0x2740('0x11e'))[_0x2740('0xd7')]({'model':_0x2740('0xeb'),'view':_0x11dc79=>{const _0x5877be=_0x11dc79[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1];return _0x2740('0xfd')!=_0x5877be&&_0x2740('0xa5')!=_0x5877be?null:{'classes':[_0x2740('0xdb'),'ck-suggestion-preview-marker-'+_0x5877be]};}}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0x23'),Y(this['editor'],'merge'),{'priority':_0x2740('0xd0')}),this['editor'][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0xd4'),Y(this[_0x2740('0x74')],'split'),{'priority':_0x2740('0xd0')}),this[_0x2740('0x74')]['editing'][_0x2740('0xb7')]['on']('removeMarker:revision-suggestion',(_0xb8cb6b,_0x2c235c,_0x3a3550)=>{const _0x172e34=_0x3a3550[_0x2740('0x17')]['markerNameToElements'](_0x2c235c[_0x2740('0xf7')]);if(_0x172e34)for(const _0x44f42a of _0x172e34)_0x44f42a['is'](_0x2740('0x95'))&&(_0x3a3550[_0x2740('0x17')]['unbindElementFromMarkerName'](_0x44f42a,_0x2c235c[_0x2740('0xf7')]),_0x3a3550['writer'][_0x2740('0x9')](_0x44f42a));},{'priority':_0x2740('0xd0')});}[_0x2740('0xd3')](_0x90bdb1){return this[_0x2740('0x80')][_0x2740('0x92')](_0x90bdb1);}[_0x2740('0xf0')](_0x370ae4){return this[_0x2740('0x106')]&&this['_changeView'][_0x2740('0x9a')](),this[_0x2740('0x106')]=new _0x376852(this['editor'][_0x2740('0x10d')],_0x370ae4),this[_0x2740('0x106')];}[_0x2740('0x46')](){this[_0x2740('0x74')][_0x2740('0x94')]['document'][_0x2740('0x71')][_0x2740('0x90')](_0x2740('0xb9')),this['on'](_0x2740('0x48'),(_0x52ede9,_0x4adfd1,_0x48ab7d,_0x4249d2)=>{_0x4249d2&&this[_0x2740('0x7e')][_0x2740('0x9')](_0x4249d2),_0x48ab7d&&(this[_0x2740('0x7e')][_0x2740('0x13')]({'view':_0x48ab7d,'stackId':_0x2740('0x0'),'position':{'target':()=>{const _0x5ee5b6=this[_0x2740('0x74')]['editing'],_0x2257ba=this[_0x2740('0xd3')](_0x48ab7d['changeId']);let _0x389a66;if(_0x2257ba['data'][_0x2740('0x31')]){const _0x3dcc2f=_0x5ee5b6[_0x2740('0xb5')][_0x2740('0x8c')](_0x2257ba[_0x2740('0x78')]);_0x389a66=Array['from'](_0x3dcc2f['getClientRects']());}else{const _0x200c32=this['editor']['model'][_0x2740('0x61')][_0x2740('0x92')](_0x2740('0xf2')+_0x48ab7d[_0x2740('0xaa')]);_0x389a66=Array[_0x2740('0x111')](_0x5ee5b6[_0x2740('0x17')][_0x2740('0x37')](_0x200c32['name']))[_0x2740('0xee')](_0x4bcffd=>_0x5ee5b6[_0x2740('0xb5')][_0x2740('0x8f')][_0x2740('0x77')](_0x4bcffd))[_0x2740('0xee')](_0x372e12=>Array['from'](_0x372e12[_0x2740('0x47')]()))[_0x2740('0xe2')]();}if(!this[_0x2740('0x1')])return _0x389a66[0x0];return _0x389a66['find'](_0x5195ba=>_0x5195ba['top']-0x3<=this[_0x2740('0x1')]['y']&&_0x5195ba[_0x2740('0x1c')]+0x3>=this[_0x2740('0x1')]['y']&&_0x5195ba['left']-0x3<=this[_0x2740('0x1')]['x']&&_0x5195ba[_0x2740('0x5c')]+0x3>=this[_0x2740('0x1')]['x'])||_0x389a66[0x0];}}}),this[_0x2740('0x7e')]['showStack'](_0x2740('0x0')));}),this['on']('change:activeChange',(_0x2d59d8,_0x133f83,_0x8c5698,_0x144b9b)=>{this[_0x2740('0xfe')]=_0x8c5698?this[_0x2740('0xf0')](_0x8c5698):null,this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x102')](()=>{const _0x2e6df7=this[_0x2740('0x74')][_0x2740('0xd9')];_0x144b9b&&(_0x144b9b[_0x2740('0xd')][_0x2740('0x31')]?_0x2e6df7['view'][_0x2740('0x102')](_0x4489b8=>{_0x4489b8[_0x2740('0xfa')](_0x2740('0x9d'),_0x2e6df7[_0x2740('0xb5')][_0x2740('0xdc')][_0x2740('0x115')](_0x144b9b['rootName']));}):_0x2e6df7['reconvertMarker'](_0x2740('0xf2')+_0x144b9b['id'])),_0x8c5698&&(_0x8c5698[_0x2740('0xd')][_0x2740('0x31')]?_0x2e6df7[_0x2740('0xb5')][_0x2740('0x102')](_0x1b0ad4=>{_0x1b0ad4[_0x2740('0x110')]('ck-revision-history-root--active',_0x2e6df7['view'][_0x2740('0xdc')]['getRoot'](_0x8c5698['rootName']));}):_0x2e6df7[_0x2740('0x11')]('revision:'+_0x8c5698['id']));});}),this[_0x2740('0x8d')](this[_0x2740('0x74')][_0x2740('0xd9')]['view'][_0x2740('0xdc')],_0x2740('0x1b'),(_0x1c3c53,_0x5a2598)=>{if(this[_0x2740('0x105')])return;const _0xe18f0f=this[_0x2740('0x119')](_0x5a2598[_0x2740('0x7b')]),_0x52fc84=this[_0x2740('0x80')][_0x2740('0x92')](_0xe18f0f);_0x52fc84?(this[_0x2740('0x1')]={'x':_0x5a2598[_0x2740('0x2c')]['x'],'y':_0x5a2598[_0x2740('0x2c')]['y']},this[_0x2740('0xfe')]=this[_0x2740('0xf0')](_0x52fc84)):(this[_0x2740('0x1')]=null,this[_0x2740('0xfe')]=null);}),this[_0x2740('0x8d')](this[_0x2740('0x74')]['editing'][_0x2740('0xb5')][_0x2740('0xdc')],'mousedown',(_0x374017,_0x1d7121)=>{const _0x5b5d5d=this[_0x2740('0x119')](_0x1d7121[_0x2740('0x7b')]),_0x5ae2a5=this[_0x2740('0x80')][_0x2740('0x92')](_0x5b5d5d);_0x5ae2a5?(this[_0x2740('0x1')]={'x':_0x1d7121[_0x2740('0x2c')]['x'],'y':_0x1d7121[_0x2740('0x2c')]['y']},_0x5ae2a5===this[_0x2740('0x105')]?this[_0x2740('0x7e')][_0x2740('0x62')]():this[_0x2740('0x105')]=_0x5ae2a5):(this[_0x2740('0x1')]=null,this[_0x2740('0x105')]=null);});}[_0x2740('0x119')](_0x32a3dc){do{const _0x2388a3=_0x32a3dc[_0x2740('0xf1')](_0x2740('0x33'));if(_0x2388a3)return _0x2388a3;_0x32a3dc=_0x32a3dc[_0x2740('0x70')];}while(_0x32a3dc);return null;}[_0x2740('0x5f')](){this[_0x2740('0x74')]['model']['change'](_0x11b720=>{for(const _0x2c019c of this['editor'][_0x2740('0x94')][_0x2740('0x61')])_0x11b720['removeMarker'](_0x2c019c);});}}function Y(_0x22e864,_0x3b0c35){return(_0x3ac880,_0x4166b4,_0x282423)=>{if(!_0x282423[_0x2740('0x29')][_0x2740('0x114')](_0x4166b4[_0x2740('0x10b')],_0x3ac880[_0x2740('0xe5')]))return;const _0x17403b=_0x4166b4[_0x2740('0x10b')][_0x2740('0xdd')](),_0x2e7d4e=_0x4166b4[_0x2740('0x10b')][_0x2740('0x117')],_0x1738a3=_0x22e864[_0x2740('0x94')][_0x2740('0x24')];let _0x25c418=null,_0xa16f18=null,_0x4c9e55=!0x1,_0x1385b8=!0x1;for(const _0x3cd84e of _0x17403b){const _0xc2e1fa=_0x3cd84e[_0x2740('0xa7')];_0x4c9e55=_0x4c9e55||_0x1738a3[_0x2740('0xf5')](_0xc2e1fa);const _0x1bade6=_0x282423['mapper'][_0x2740('0x5a')](_0xc2e1fa);if(_0x1bade6&&_0x1bade6[_0x2740('0x2d')]('addHighlight'))return;'elementEnd'==_0x3cd84e[_0x2740('0xc5')]&&(_0x1738a3[_0x2740('0x50')](_0xc2e1fa)&&!_0x1738a3[_0x2740('0x5b')](_0xc2e1fa)&&(_0xc2e1fa['nextSibling']||_0x2e7d4e['isAtEnd']?_0x25c418&&_0x25c418[_0x2740('0x70')]==_0xc2e1fa||(_0x25c418=_0xc2e1fa,_0x20b010(_0x3cd84e[_0x2740('0xc0')]),_0x1385b8=!0x0):_0xa16f18=_0xa16f18||_0x3cd84e['previousPosition']));}function _0x20b010(_0x53c736){const _0x56e560=_0x282423[_0x2740('0x17')][_0x2740('0x104')](_0x53c736),_0x3f50b0=_0x282423[_0x2740('0x6b')][_0x2740('0x66')](_0x2740('0x3f'),{'class':_0x2740('0x6e')+_0x3b0c35});_0x282423[_0x2740('0x6b')][_0x2740('0x59')](_0x56e560,_0x3f50b0),_0x282423[_0x2740('0x17')][_0x2740('0x15')](_0x3f50b0,_0x4166b4[_0x2740('0xf7')]);}_0x4c9e55||_0x1385b8||!_0xa16f18||_0x20b010(_0xa16f18);};}export class RestoreRevisionCommand extends _0x1ea961{constructor(_0x6a7e16){super(_0x6a7e16);const _0x1dfeb6=_0x6a7e16[_0x2740('0xba')][_0x2740('0x92')](w);this[_0x2740('0x73')]=!0x1,this[_0x2740('0x8d')](_0x1dfeb6,_0x2740('0x1f'),()=>this[_0x2740('0x51')]()),this['listenTo'](_0x1dfeb6,'change:isEnabled',()=>this[_0x2740('0x51')]());}[_0x2740('0xd8')](){const _0x47f2b9=this[_0x2740('0x74')],_0x466eda=_0x47f2b9['plugins']['get'](w),_0x44b92b=_0x466eda['isReady']?_0x466eda['diff'][_0x2740('0x4c')]:null;_0x47f2b9['config'][_0x2740('0x92')](_0x2740('0x25'))['restoreRevisionCallback'](_0x44b92b);}[_0x2740('0x51')](){const {isReady:_0x4a24f3,isEnabled:_0x554e2e}=this[_0x2740('0x74')][_0x2740('0xba')][_0x2740('0x92')](w);this[_0x2740('0x63')]=_0x4a24f3&&_0x554e2e;}}export class ShowChangeCommand extends _0x1ea961{constructor(_0x3afef5,{direction:_0x3c7a14}){super(_0x3afef5);const _0xc1bb85=_0x3afef5[_0x2740('0xba')]['get'](w);this[_0x2740('0x73')]=!0x1,this[_0x2740('0x10')]='forward'===_0x3c7a14?0x1:-0x1,this[_0x2740('0x8d')](_0xc1bb85,_0x2740('0x1f'),()=>this[_0x2740('0x51')]()),this[_0x2740('0x8d')](_0xc1bb85,_0x2740('0x12'),()=>this['refresh']());}[_0x2740('0xd8')](){const _0xb39783=this[_0x2740('0x74')],_0x2e4687=_0xb39783[_0x2740('0xba')][_0x2740('0x92')](w),{isNavigationMode:_0x4a4f3f,currentChangeNumber:_0x1d7bf5}=_0x2e4687;let _0x27ff01;if(_0x2e4687[_0x2740('0x105')]=_0x4a4f3f?_0x2e4687[_0x2740('0x3b')][_0x2740('0xe4')][_0x2740('0x92')](_0x1d7bf5+this['_step']):_0x2e4687[_0x2740('0x3b')][_0x2740('0xe4')]['first'],_0x2e4687['activeChange']['data']['isOnRoot'])_0x27ff01=_0xb39783[_0x2740('0xd9')]['view'][_0x2740('0x8c')](_0x2e4687[_0x2740('0x105')][_0x2740('0x78')]);else{const _0x5eeecb=_0xb39783[_0x2740('0x94')][_0x2740('0x61')][_0x2740('0x92')](_0x2740('0xf2')+_0x2e4687[_0x2740('0x105')]['id']);_0x27ff01=_0x579c97(_0xb39783[_0x2740('0xd9')],_0x5eeecb);}_0x226e14({'target':_0x27ff01,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x298788,currentChangeNumber:_0x38d35d,numberOfChanges:_0x1d8785,isReady:_0x3c1253,isEnabled:_0x38caad}=this[_0x2740('0x74')][_0x2740('0xba')]['get'](w);this['isEnabled']=!!(_0x38caad&&_0x3c1253&&_0x1d8785)&&(!_0x298788||(0x1===this['_step']?_0x38d35d<_0x1d8785-0x1:_0x38d35d>0x0));}}
|
|
23
|
+
const _0x4015=['getWalker','object','removeMarker:revision','previousPosition','parent','pop','add','change:numberOfChanges','change:activeView','hasClass','abs','insert','bindElementToMarker','changes','startsWith','_getViewForChange','isIncorrect','removeMarker:revision-suggestion','observeMarkers','roots','createUIElement','all','requires','activeChange','_threeWayMerge','repository','RevisionsRepository','top','_removeUnsupportedChanges','isReady','change:isEnabled','markerNameToElements','getClientRects','_refreshStartEndIndex','userId','ck-suggestion-marker-merge','updatePosition','_sortAndFilterDiffChanges','ck-revision-history-root--active','editingDowncast','ck-suggestion-marker','markers','isBefore','ck-suggestion-marker--active','then','commands','remove','sort','from','markersStart','ck-suggestion-marker-split','nextPosition','modelRange','splice','createPositionFromPath','target','isEqual','attributesAfter','isAtStart','adapter','right','collaboration.channelId','_markSuggestions','_changeView','showStack','addHighlight','next','includes','test','createRangeIn','revision','item','_removeRevisionMarkers','split','ck-suggestion-preview-marker-','_getViewObj','map','getAttributes','_cleanUp','has','_data','type','deletion','WidgetToolbarRepository','getChild','change:activeChange','backward','destroy','error','schema','attributes','isBlock','vid_end','index','isAddSuggestion','getRevisionRootsAttributes','addMarker:revision-suggestion:deletion','shift','isObject','_step','elementEnd','revision-comment:','level','change','concat','end','element','comment','isAtEnd','merge','domConverter','changeId','RevisionViewer','_balloon','resolve','execute','unbindElementFromMarkerName','text','maxOffset','addMarker:revision','activeView','get','marked','init','markerRange','markerToData','_getRevisionsRange','indexOf','revision-suggestion:','listenTo','revisionHistoryLabel','_update','_markMarkers','isSuggestion','_removeMissingPairs','revision-viewer','low','consumable','domEvent','isEnabled','high','model','pairId','ck-suggestion-preview-marker','elementToAttribute','createRevision','catch','findIndex','delete','set','mapViewToDom','nextSibling','detachRoot','_setDistance','toViewPosition','_joinTapes','filter','conversion','_cleanMarkers','diff','isRemoved','editor','name','downcastDispatcher','elementStart','start','toViewRange','mapper','bind','toData','_setConversion','processor','showPreviousChange','mouseover','isCollapsed','insertion','values','_initInteractions','getCustomProperty','createRange','getRootNames','_makeTape','-new','insertions','_getChangeFromId','attachChange','forEach','view','for','viewItem','setAttribute','forward','distance','done','_changeIdToChange','getRevisionData','rootName','markerName','removeClass','change:isReady','keys','_appendChild','isContent','writer','revision:','revision-suggestion','reconvertMarker','ck-editor__editable__overlay','getIndex','dataToMarker','isOnRoot','config','_fixObsoleteTags','authors','loadRevisionData','dataDowncast','isAdded','side','refresh','length','hasAttribute','endIndex','_markInsertions','oldRevisionId','getItems','isAttached','isLimit','vid','addClass','default','uiElement','isInline','data-change-id','getRoot','slice','getRevision','revision-end','_revisions','document','string','bottom','data','newRevisionId','isRemoveSuggestion','children','ck-revision-history-root-','left','ck-suggestion-marker-','flat','mousedown','push','diffData','_makeModelFromTape','removeMarker','clear','_activeViewTarget','startIndex','vid_start','editing','find','span','unshift','code','addRevision','offsetSize','useFillerType','ck-revision-history-root-add','ck-revision-history-root-remove','checkAttribute','addMarker:revision-suggestion:insertion','_makeModelFromViewString','parse','affectsData','_findChangeIdFromDomTarget','getAttribute','upcast','revisionHistoryAttachChange','plugins','markersEnd','createPositionBefore','toModel','highest','consume','nodeAfter','revision-start'];(function(_0xa5c218,_0x401572){const _0x157e3d=function(_0x100ef9){while(--_0x100ef9){_0xa5c218['push'](_0xa5c218['shift']());}};_0x157e3d(++_0x401572);}(_0x4015,0x8f));const _0x157e=function(_0xa5c218,_0x401572){_0xa5c218=_0xa5c218-0x0;let _0x157e3d=_0x4015[_0xa5c218];return _0x157e3d;};import{Plugin as _0x741c3,Command as _0xb51ff9}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x41b6a1}from'ckeditor5/src/utils';import{ContextualBalloon as _0x3d5dd1}from'ckeditor5/src/ui';import{DocumentFragment as _0x2c3ef9,Element as _0x495f59,Text as _0x1f0bd5,ViewDocumentFragment as _0x251b6f,ViewText as _0x11de22,ViewElement as _0x2106a0,ViewContainerElement as _0x14eb07,ViewAttributeElement as _0x51f23b,ViewEmptyElement as _0x305f05,ViewRawElement as _0x596068,ViewUIElement as _0x48fbf6}from'ckeditor5/src/engine';import{Users as _0x1e8c79,getMarkerDomElement as _0x3d7ccd}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d737a from'./ui/revisionviewer/changedetailsview';import _0x1f0898 from'./revisionsrepository';import _0x113aa3 from'./changeitem';import{default as _0x1d7fa2}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x273d3f}from'lodash-es';const X={'c':_0x14eb07,'a':_0x51f23b,'e':_0x305f05,'r':_0x596068,'u':_0x48fbf6};export default class w extends _0x741c3{static get['pluginName'](){return _0x157e('0xfe');}static get[_0x157e('0xa4')](){return[_0x1e8c79,_0x3d5dd1,_0x1f0898];}constructor(_0x32be9a){super(_0x32be9a),this[_0x157e('0xa7')]=this[_0x157e('0x12')][_0x157e('0x86')][_0x157e('0x107')](_0x157e('0xa8')),this[_0x157e('0x6')]('activeChange',null),this[_0x157e('0x6')](_0x157e('0x106'),null),this['_activeViewTarget']=null,this[_0x157e('0x6')](_0x157e('0x10'),null),this[_0x157e('0x6')](_0x157e('0xab'),!0x1),this[_0x157e('0x6')](_0x157e('0x119'),!0x0),this['on'](_0x157e('0xac'),(_0xcfa7ed,_0x293490,_0x1a04c7)=>{this[_0x157e('0xa5')]=null,this[_0x157e('0x106')]=null,this[_0x157e('0x12')]['editing']['view'][_0x157e('0xf5')](_0x4e11d5=>{for(const _0x5a67db of this[_0x157e('0x12')][_0x157e('0x73')]['view']['document'][_0x157e('0xa1')])_0x1a04c7?_0x4e11d5['removeClass'](_0x157e('0x40'),_0x5a67db):_0x4e11d5[_0x157e('0x55')](_0x157e('0x40'),_0x5a67db);});}),this['bind']('isNavigationMode')['to'](this,_0x157e('0xa5'),_0x4dbb83=>null!==_0x4dbb83),this[_0x157e('0x19')]('currentChangeNumber')['to'](this,_0x157e('0xab'),this,_0x157e('0x10'),this,_0x157e('0xa5'),(_0x2237cf,_0x3d8845,_0x2b3b34)=>_0x2237cf&&_0x2b3b34?_0x3d8845[_0x157e('0x9b')][_0x157e('0x41')](_0x2b3b34):0x0),this[_0x157e('0x19')]('numberOfChanges')['to'](this,'isReady',this,_0x157e('0x10'),(_0x51f73c,_0xd069ab)=>_0x51f73c?_0xd069ab['changes'][_0x157e('0x4c')]:0x0),this[_0x157e('0xcd')]=null,this[_0x157e('0x33')]=new Map(),this[_0x157e('0xc9')]=null,this[_0x157e('0xff')]=this['editor'][_0x157e('0x86')]['get'](_0x3d5dd1);}[_0x157e('0x109')](){const _0x47afa5=this[_0x157e('0x12')],_0x46cc77=new ShowChangeCommand(_0x47afa5,{'direction':_0x157e('0xe4')}),_0x99173c=new ShowChangeCommand(_0x47afa5,{'direction':_0x157e('0x30')});(_0x47afa5['commands']['add'](_0x157e('0x1d'),_0x46cc77),_0x47afa5[_0x157e('0xbb')][_0x157e('0x94')]('showNextChange',_0x99173c),_0x47afa5[_0x157e('0xbb')]['add']('restoreRevision',new RestoreRevisionCommand(_0x47afa5)),this['on'](_0x157e('0x95'),()=>{_0x46cc77[_0x157e('0x4b')](),_0x99173c[_0x157e('0x4b')]();}),this[_0x157e('0x1b')](),this[_0x157e('0x22')](),_0x47afa5['enableReadOnlyMode'](_0x157e('0x115')),_0x47afa5['plugins']['has'](_0x157e('0xe1')))&&_0x47afa5[_0x157e('0x86')][_0x157e('0x107')](_0x157e('0xe1'))['forceDisabled'](_0x157e('0x115'));}async[_0x157e('0x34')](_0x521765){await this[_0x157e('0x47')](_0x521765);const _0x3366fd={};for(const _0x4a0c4c in _0x521765[_0x157e('0x6c')]){if(_0x521765[_0x157e('0x6c')][_0x4a0c4c]['attachChange']&&!_0x521765['diffData'][_0x4a0c4c][_0x157e('0x2a')][_0x157e('0x52')])continue;const _0x5b87aa=this[_0x157e('0xd6')](JSON[_0x157e('0x80')](_0x521765[_0x157e('0x6c')][_0x4a0c4c][_0x157e('0x28')])),_0x2ccf19=this[_0x157e('0x12')][_0x157e('0x73')][_0x157e('0x2c')][_0x157e('0x5f')],_0x361459=new _0x251b6f(_0x2ccf19,_0x5b87aa[_0x157e('0xda')](_0x2ace34=>this[_0x157e('0xd9')](_0x2ace34)));this['editor'][_0x157e('0x62')]['processor'][_0x157e('0x7a')](_0x157e('0x108')),_0x3366fd[_0x4a0c4c]=this[_0x157e('0x12')][_0x157e('0x62')][_0x157e('0x1c')][_0x157e('0x1a')](_0x361459),this[_0x157e('0x12')][_0x157e('0x62')][_0x157e('0x1c')]['useFillerType'](_0x157e('0x56'));}return _0x3366fd;}async[_0x157e('0xed')](_0x79c229){await this[_0x157e('0x47')](_0x79c229);const _0x22fd78={};for(const _0x4fc458 in _0x79c229['diffData'])_0x79c229[_0x157e('0x6c')][_0x4fc458][_0x157e('0x2a')]&&!_0x79c229[_0x157e('0x6c')][_0x4fc458][_0x157e('0x2a')][_0x157e('0x52')]||(_0x22fd78[_0x4fc458]=_0x79c229[_0x157e('0x6c')][_0x4fc458][_0x157e('0xc7')]||{});return _0x22fd78;}[_0x157e('0xd6')](_0x319673){return(_0x319673=_0x319673[_0x157e('0xd')](_0x3ee3c4=>!_0x3ee3c4[_0x157e('0x13')]||_0x157e('0x8d')!==_0x3ee3c4['name']&&_0x157e('0x5d')!==_0x3ee3c4[_0x157e('0x13')]))[_0x157e('0x2b')](_0x351ba5=>{_0x157e('0x60')!=typeof _0x351ba5&&(_0x351ba5['children']=this[_0x157e('0xd6')](_0x351ba5['children']),_0x351ba5[_0x157e('0xe8')]=_0x351ba5[_0x157e('0xe8')]['filter'](_0x779a7f=>!_0x779a7f[0x0][_0x157e('0x9c')]('data-revision-')));}),_0x319673;}async['compare'](_0x50da2,_0x34d46a,_0x37523f=!0x1){if(!this[_0x157e('0x119')])return;const _0x21e035=this[_0x157e('0x10')],_0xf86eea=this[_0x157e('0xa7')],_0x4bf5f8=_0x157e('0x60')==typeof _0x50da2?_0xf86eea[_0x157e('0x5c')](_0x50da2):_0x50da2,_0x40b45f=_0x157e('0x60')==typeof _0x34d46a?_0xf86eea[_0x157e('0x5c')](_0x34d46a):_0x34d46a,_0x3c990c=_0x4bf5f8['id'],_0x1e53a5=_0x40b45f?_0x40b45f['id']:null;if(!_0x37523f&&this[_0x157e('0x10')]&&this['diff'][_0x157e('0x63')]===_0x3c990c&&this['diff'][_0x157e('0x50')]===_0x1e53a5)return Promise[_0x157e('0x100')]();this[_0x157e('0xab')]=!0x1,this[_0x157e('0x106')]=null,this[_0x157e('0xa5')]=null,this[_0x157e('0x10')]=new _0x1d7fa2(_0x3c990c,_0x1e53a5);const _0x26a954=this[_0x157e('0x10c')](_0x4bf5f8,_0x40b45f,!0x0)[_0x157e('0xda')](_0x1683de=>this[_0x157e('0x47')](_0x1683de));return _0x26a954[_0x157e('0x6b')](new Promise(_0x3f56e9=>{setTimeout(_0x3f56e9,0x14);})),Promise[_0x157e('0xa3')](_0x26a954)[_0x157e('0xba')](()=>{if(!this[_0x157e('0x119')])return;this[_0x157e('0xdc')]();const _0x320510=this['_getDiff'](_0x3c990c,_0x1e53a5);for(const _0x4e8ed6 of _0x320510['changes'])this[_0x157e('0x33')][_0x157e('0x6')](_0x4e8ed6['id'],_0x4e8ed6);this[_0x157e('0x12')]['model']['enqueueChange']({'isUndoable':!0x1},_0x580771=>{for(const _0x2a0e41 of this[_0x157e('0x12')][_0x157e('0x11b')]['document']['getRootNames']())_0x580771['detachRoot'](_0x2a0e41);for(const _0x1e7284 of Object[_0x157e('0x39')](_0x320510[_0x157e('0x11b')])){const _0x52deba=_0x580771['addRoot'](_0x1e7284);for(const _0x2b8ca8 of Object[_0x157e('0x39')](_0x320510[_0x157e('0xe8')][_0x1e7284]))_0x580771[_0x157e('0x2f')](_0x2b8ca8,_0x320510[_0x157e('0xe8')][_0x1e7284][_0x2b8ca8],_0x52deba);_0x580771['insert'](_0x320510[_0x157e('0x11b')][_0x1e7284],_0x52deba,0x0);}}),this[_0x157e('0x10')]['_setChanges'](this[_0x157e('0xb3')](_0x320510[_0x157e('0x9b')])),this[_0x157e('0xab')]=!0x0;})[_0x157e('0x3')](_0x3f9c41=>{console[_0x157e('0xe6')](_0x3f9c41),this[_0x157e('0xdc')](),_0x21e035&&(this[_0x157e('0x10')]=_0x21e035),this[_0x157e('0xab')]=!0x0;});}['addRevisionData'](_0x1f9714,_0x51f4ac){const _0x509593=this[_0x157e('0xa7')][_0x157e('0x2')](_0x1f9714);return _0x509593['on'](_0x157e('0x111'),(_0x17afa0,_0x151873,_0x109952)=>_0x51f4ac(_0x151873,_0x109952,_0x509593)),this[_0x157e('0xa7')][_0x157e('0x78')](_0x509593),_0x509593;}[_0x157e('0x47')](_0x2f1492){if(!_0x2f1492||_0x2f1492[_0x157e('0x6c')])return Promise[_0x157e('0x100')]();{const _0x2ec525=this[_0x157e('0x12')]['config'][_0x157e('0x107')](_0x157e('0xcb'));return this[_0x157e('0xc9')]['getRevision']({'channelId':_0x2ec525,'revisionId':_0x2f1492['id']})['then'](_0x7100ab=>{_0x2f1492[_0x157e('0x111')]({'diffData':_0x7100ab[_0x157e('0x6c')]},!0x0);});}}[_0x157e('0xdc')](){this[_0x157e('0xa5')]=null,this[_0x157e('0xf')](),this[_0x157e('0xcd')]&&this[_0x157e('0xcd')][_0x157e('0xe5')](),this[_0x157e('0xcd')]=null,this[_0x157e('0x33')][_0x157e('0x6f')](),this[_0x157e('0x12')][_0x157e('0x11b')]['enqueueChange']({'isUndoable':!0x1},_0x4d8499=>{for(const _0x4ab49a of this[_0x157e('0x12')][_0x157e('0x11b')][_0x157e('0x5f')][_0x157e('0x25')]())_0x4d8499[_0x157e('0x9')](_0x4ab49a);});}[_0x157e('0xb3')](_0x132423){const _0x35c947=[],_0x269ae3=new Map();for(const _0x563575 of this[_0x157e('0x12')]['model'][_0x157e('0x5f')][_0x157e('0x25')]()){const _0x3e1a72=this[_0x157e('0x12')][_0x157e('0x73')][_0x157e('0x2c')]['getDomRoot'](_0x563575);if(!_0x3e1a72)continue;const _0x3a9667=_0x3e1a72['getClientRects']()[_0x157e('0xd5')](0x0);_0x3a9667&&(_0x35c947[_0x157e('0x6b')](_0x563575),_0x269ae3[_0x157e('0x6')](_0x563575,_0x3a9667));}return _0x35c947[_0x157e('0xbd')]((_0xdf43d8,_0x264e28)=>{const _0xfeae13=_0x269ae3[_0x157e('0x107')](_0xdf43d8),_0x41fe5f=_0x269ae3[_0x157e('0x107')](_0x264e28);return _0xfeae13['y']-_0x41fe5f['y']||_0xfeae13['x']-_0x41fe5f['x'];}),(_0x132423=_0x132423[_0x157e('0xd')](_0x313ed3=>_0x35c947['includes'](_0x313ed3[_0x157e('0x35')])))[_0x157e('0xbd')]((_0x29620b,_0x5f2c66)=>_0x35c947[_0x157e('0x10d')](_0x29620b[_0x157e('0x35')])-_0x35c947['indexOf'](_0x5f2c66[_0x157e('0x35')])),_0x132423;}[_0x157e('0x26')](_0x45d834){const _0xa3eec5=Array['from'](_0x45d834['markers'])[_0x157e('0xd')](([_0x5bd801,_0x24ceab])=>_0x5bd801[_0x157e('0x9c')](_0x157e('0x3d'))&&!_0x24ceab[_0x157e('0x1f')]),_0x488322=Array[_0x157e('0xbe')](this['editor'][_0x157e('0x11b')][_0x157e('0xd3')](_0x45d834)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xa3eec5[_0x157e('0x4c')])for(const _0x3ac1b2 of _0x488322){const [_0x48dc71,_0x2f2262]=_0xa3eec5[0x0],[,_0x27ac48,_0x43b23d]=_0x48dc71['split'](':');if(_0x2f2262[_0x157e('0xf7')][_0x157e('0xc6')](_0x3ac1b2[_0x157e('0xc1')])&&_0xa3eec5[_0x157e('0xef')](),(_0x3ac1b2[_0x157e('0x91')][_0x157e('0xc6')](_0x2f2262['start'])||_0x3ac1b2[_0x157e('0x91')]['isAfter'](_0x2f2262[_0x157e('0x16')]))&&('insertion'==_0x27ac48?_0x3ac1b2[_0x157e('0x49')]={'userId':_0x43b23d}:_0x157e('0xe0')==_0x27ac48&&(_0x3ac1b2[_0x157e('0x11')]={'userId':_0x43b23d})),0x0==_0xa3eec5['length'])break;}return _0x488322;}[_0x157e('0xaf')](_0x55ec40){const _0x26fe85=new Map();for(let _0x4f868d=0x0;_0x4f868d<_0x55ec40[_0x157e('0x4c')];_0x4f868d++)_0x157e('0x103')===_0x55ec40[_0x4f868d][_0x157e('0xdf')]?(_0x55ec40[_0x4f868d][_0x157e('0xd5')][_0x157e('0x71')]=_0x4f868d,_0x55ec40[_0x4f868d][_0x157e('0xd5')][_0x157e('0x4e')]=_0x4f868d):(_0x157e('0x15')===_0x55ec40[_0x4f868d]['type']?_0x55ec40[_0x4f868d][_0x157e('0xd5')]['startIndex']=_0x4f868d:'elementEnd'===_0x55ec40[_0x4f868d][_0x157e('0xdf')]&&(_0x55ec40[_0x4f868d][_0x157e('0xd5')][_0x157e('0x4e')]=_0x4f868d),_0x26fe85['set'](_0x55ec40[_0x4f868d]['id'],_0x4f868d));for(const _0x5aa6a0 of _0x26fe85[_0x157e('0x21')]())_0x157e('0x15')===_0x55ec40[_0x5aa6a0][_0x157e('0xdf')]?_0x55ec40[_0x5aa6a0][_0x157e('0xd5')][_0x157e('0x4e')]=_0x26fe85[_0x157e('0x107')](_0x55ec40[_0x5aa6a0]['pairId']):_0x157e('0xf2')===_0x55ec40[_0x5aa6a0][_0x157e('0xdf')]&&(_0x55ec40[_0x5aa6a0][_0x157e('0xd5')][_0x157e('0x71')]=_0x26fe85['get'](_0x55ec40[_0x5aa6a0][_0x157e('0x11c')]));}['_processTape'](_0x7bd202){for(let _0x24c1a0=0x0;_0x24c1a0<_0x7bd202[_0x157e('0x4c')];_0x24c1a0++){if('elementStart'===_0x7bd202[_0x24c1a0][_0x157e('0xdf')])_0x7bd202[_0x24c1a0][_0x157e('0xd5')][_0x157e('0x71')]=_0x24c1a0;else{if(_0x157e('0xf2')===_0x7bd202[_0x24c1a0][_0x157e('0xdf')]){_0x7bd202[_0x24c1a0][_0x157e('0xd5')][_0x157e('0x4e')]=_0x24c1a0;const _0x25ff6c=_0x7bd202[_0x24c1a0][_0x157e('0xd5')]['startIndex'];_0x7bd202[_0x25ff6c][_0x157e('0x11c')]=_0x7bd202[_0x24c1a0]['id'],_0x7bd202[_0x24c1a0][_0x157e('0x11c')]=_0x7bd202[_0x25ff6c]['id'];}else _0x7bd202[_0x24c1a0][_0x157e('0xd5')]['startIndex']=_0x24c1a0,_0x7bd202[_0x24c1a0][_0x157e('0xd5')][_0x157e('0x4e')]=_0x24c1a0,_0x7bd202[_0x24c1a0]['pairId']=null;}_0x7bd202[_0x24c1a0][_0x157e('0xbf')]||(_0x7bd202[_0x24c1a0][_0x157e('0xbf')]=[],_0x7bd202[_0x24c1a0]['markersEnd']=[]);}}['_markInsertions'](_0x356d12,_0x28da6a){const _0xba2637=_0x356d12[_0x157e('0xd')](_0x30b26c=>!_0x30b26c[_0x157e('0x49')]);for(let _0x574e1c=0x0;_0x574e1c<_0x28da6a['length'];_0x574e1c++)_0x28da6a[_0x574e1c][_0x157e('0x49')]&&(_0xba2637[_0x574e1c][_0x157e('0x49')]=_0x28da6a[_0x574e1c][_0x157e('0x49')]);}[_0x157e('0x7f')](_0x27f000){const _0x2e994a=JSON['parse'](_0x27f000),_0x3b609b=this[_0x157e('0x12')]['editing']['view']['document'],_0x31ef6a=new _0x251b6f(_0x3b609b,_0x2e994a[_0x157e('0xda')](_0x22ec96=>this[_0x157e('0xd9')](_0x22ec96)));return this[_0x157e('0x12')][_0x157e('0x62')][_0x157e('0x89')](_0x31ef6a);}[_0x157e('0xd9')](_0x571feb){const _0x4fb960=this[_0x157e('0x12')][_0x157e('0x73')][_0x157e('0x2c')][_0x157e('0x5f')];if('string'==typeof _0x571feb)return new _0x11de22(_0x4fb960,_0x571feb);{const _0x513a11=_0x571feb[_0x157e('0x65')][_0x157e('0xda')](_0x1cca16=>this['_getViewObj'](_0x1cca16));return new(X[_0x571feb[(_0x157e('0xdf'))]]||_0x2106a0)(_0x4fb960,_0x571feb[_0x157e('0x13')],_0x571feb['attributes'],_0x513a11);}}['_getDiff'](_0x39c597,_0x559122=null){const _0x367df7=this[_0x157e('0xa7')][_0x157e('0x5c')](_0x39c597),_0x38a21a=_0x559122?this[_0x157e('0xa7')][_0x157e('0x5c')](_0x559122):null,_0x479dba=this['_getRevisionsRange'](_0x367df7,_0x38a21a),_0x289113=_0x479dba[_0x479dba[_0x157e('0x4c')]-0x1],_0x3f8918=new Map(),_0x4ac655={'model':{},'attributes':{},'changes':[]},_0x5a2ab8=new Set(),_0x5d9739=new Map();for(let _0x2845c8=_0x479dba['length']-0x1;_0x2845c8>=0x0;_0x2845c8--){const _0x5712a6=_0x479dba[_0x2845c8];for(const _0x15dcac of Object[_0x157e('0x39')](_0x5712a6[_0x157e('0x6c')]))if(_0x5712a6[_0x157e('0x6c')][_0x15dcac][_0x157e('0x2a')]){const _0x42c15b=_0x5712a6['diffData'][_0x15dcac][_0x157e('0x2a')];_0x42c15b['isAttached']?(_0x5a2ab8[_0x157e('0x94')](_0x15dcac),_0x5d9739[_0x157e('0xdd')](_0x15dcac)&&_0x5d9739[_0x157e('0x107')](_0x15dcac)[_0x157e('0xb0')]==_0x42c15b[_0x157e('0xb0')]?_0x5d9739[_0x157e('0x5')](_0x15dcac):_0x5d9739[_0x157e('0x6')](_0x15dcac,_0x42c15b)):_0x5d9739[_0x157e('0xdd')](_0x15dcac)?(_0x5a2ab8[_0x157e('0x5')](_0x15dcac),_0x5d9739['delete'](_0x15dcac)):(_0x5a2ab8[_0x157e('0x94')](_0x15dcac),_0x5d9739[_0x157e('0x6')](_0x15dcac,_0x42c15b));}else _0x5a2ab8[_0x157e('0x94')](_0x15dcac);}for(const _0x1a66cf of _0x5a2ab8){const _0x2d01c6=_0x5d9739['has'](_0x1a66cf)&&!_0x5d9739['get'](_0x1a66cf)[_0x157e('0x52')];let _0x287244=_0x2d01c6?_0x479dba['length']-0x1:0x0;const _0x587b66=_0x2d01c6?-0x1:0x1;for(;_0x479dba[_0x287244];){const _0x9bbf15=_0x479dba[_0x287244];if(_0x9bbf15[_0x157e('0x6c')][_0x1a66cf]){const _0xbc86a4=_0x2d01c6?_0x9bbf15['diffData'][_0x1a66cf]['attributesBefore']:_0x9bbf15[_0x157e('0x6c')][_0x1a66cf][_0x157e('0xc7')];_0x4ac655['attributes'][_0x1a66cf]=_0xbc86a4?_0x273d3f(_0xbc86a4):{};break;}_0x287244+=_0x587b66;}}for(const _0x45814e of _0x479dba){_0x45814e[_0x157e('0x11b')]={};for(const _0x53c47b of _0x45814e[_0x157e('0x46')])_0x3f8918['set'](_0x53c47b['id'],_0x53c47b);for(const _0x3a640e of _0x5a2ab8){const _0x5b80c4=_0x45814e[_0x157e('0x6c')][_0x3a640e]?_0x45814e['diffData'][_0x3a640e]['insertions']:'[]',_0x3c6fe8=_0x45814e[_0x157e('0x6c')][_0x3a640e]?_0x45814e[_0x157e('0x6c')][_0x3a640e]['deletions']:'[]';_0x45814e[_0x157e('0x11b')][_0x3a640e]={'insertions':this[_0x157e('0x7f')](_0x5b80c4),'deletions':this[_0x157e('0x7f')](_0x3c6fe8)};}}for(const _0x219766 of _0x5a2ab8){let _0x5b2aa7=null,_0x120a12=0x0;const _0x36f73e=new Map(Array[_0x157e('0xbe')](_0x367df7[_0x157e('0x11b')][_0x219766][_0x157e('0x28')][_0x157e('0xb7')])['filter'](([_0x2e289f])=>!_0x2e289f[_0x157e('0x9c')](_0x157e('0x3d'))));let _0x328b23=0x0;for(const _0x9f37a4 of _0x479dba){const _0x5be8d6=this[_0x157e('0x26')](_0x9f37a4['model'][_0x219766][_0x157e('0x28')]);_0x9f37a4==_0x367df7?(_0x5b2aa7=_0x5be8d6,_0x120a12=_0x5b2aa7[_0x157e('0x4c')],_0x5b2aa7['forEach'](_0x4a8e91=>{_0x4a8e91['id']=_0x328b23++;}),this['_processTape'](_0x5b2aa7)):this[_0x157e('0x4f')](_0x5b2aa7,_0x5be8d6);const _0x3232ba=_0x5b2aa7['filter'](_0x49677f=>!_0x49677f[_0x157e('0x49')])[_0x157e('0xda')](_0x516196=>_0x516196['id']);let _0x806bf4=0x0;const _0x5dcc9c=this['_makeTape'](_0x9f37a4[_0x157e('0x11b')][_0x219766]['deletions']);_0x5dcc9c['forEach'](_0x32c5b2=>{_0x32c5b2[_0x157e('0x11')]?_0x32c5b2['id']=_0x120a12++:_0x32c5b2['id']=_0x3232ba[_0x806bf4++];}),this['_processTape'](_0x5dcc9c),this[_0x157e('0xa')](_0x5b2aa7,_0x157e('0x49')),this[_0x157e('0xa')](_0x5dcc9c,_0x157e('0x11')),_0x9f37a4==_0x367df7&&this[_0x157e('0x112')](_0x5b2aa7,_0x36f73e),_0x5b2aa7=this[_0x157e('0xc')](_0x5b2aa7,_0x5dcc9c),this[_0x157e('0xaf')](_0x5b2aa7),this[_0x157e('0xa')](_0x5b2aa7,'isRemoved');}_0x5b2aa7=_0x5b2aa7['filter'](_0x5cd6e2=>!(_0x5cd6e2[_0x157e('0x49')]&&_0x5cd6e2[_0x157e('0x11')]));const _0x2db18a=new Map(_0x289113[_0x157e('0x11b')][_0x219766]['deletions'][_0x157e('0xb7')]),_0x565fc2=new Set(_0x36f73e['keys']());for(const _0x14d77b of _0x2db18a[_0x157e('0x39')]())_0x565fc2[_0x157e('0x5')](_0x14d77b);this['_markSuggestions'](_0x5b2aa7,_0x565fc2),this[_0x157e('0x45')](_0x5b2aa7),_0x5b2aa7=this['_removeMissingPairs'](_0x5b2aa7),_0x5b2aa7=this['_markMismatchedRemovedTags'](_0x5b2aa7),_0x5b2aa7=this[_0x157e('0xaa')](_0x5b2aa7);const {root:_0x36108c,changes:_0x29b4ea}=this[_0x157e('0x6d')](_0x5b2aa7,_0x3f8918,_0x219766);_0x4ac655[_0x157e('0x11b')][_0x219766]=_0x36108c;const _0x1a0074=_0x5d9739[_0x157e('0x107')](_0x219766);if(_0x1a0074){const _0x143c7e=_0x3f8918[_0x157e('0x107')](_0x1a0074[_0x157e('0xb0')]),_0x19c75c=new _0x113aa3({'author':_0x143c7e,'type':_0x1a0074['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x219766});_0x29b4ea['unshift'](_0x19c75c),_0x4ac655[_0x157e('0xe8')][_0x219766][_0x157e('0x85')]=_0x19c75c['id'];}_0x4ac655[_0x157e('0x9b')]=_0x4ac655[_0x157e('0x9b')][_0x157e('0xf6')](_0x29b4ea);}return _0x4ac655;}[_0x157e('0x112')](_0xb102e6,_0x32928a){for(let _0x2960e7=0x0;_0x2960e7<_0xb102e6[_0x157e('0x4c')];_0x2960e7++)for(const [_0x124060,_0x3a048d]of _0x32928a)_0x3a048d[_0x157e('0x16')]['isEqual'](_0xb102e6[_0x2960e7]['previousPosition'])&&_0xb102e6[_0x2960e7][_0x157e('0xbf')]['push'](_0x124060),_0x3a048d[_0x157e('0xf7')][_0x157e('0xc6')](_0xb102e6[_0x2960e7][_0x157e('0xc1')])&&_0xb102e6[_0x2960e7][_0x157e('0x87')][_0x157e('0x6b')](_0x124060);}[_0x157e('0xc')](_0xbe77dc,_0x37b453){let _0x507001=[],_0x20a3f2=0x0,_0x20c27d=0x0;for(;_0x20a3f2<_0xbe77dc['length']||_0x20c27d<_0x37b453['length'];){const _0x11d247=_0xbe77dc[_0x20a3f2]||{},_0x327fdb=_0x37b453[_0x20c27d]||{};if(_0x11d247['id']==_0x327fdb['id'])_0x20a3f2++,_0x20c27d++,_0x507001['push'](_0x11d247);else{if(_0x327fdb[_0x157e('0x11')]&&_0x11d247['isAdded']){const {commonTape:_0x297c81,iEnd:_0x3ed7fb,jEnd:_0x2ce751}=this[_0x157e('0xa6')](_0xbe77dc,_0x20a3f2,_0x37b453,_0x20c27d);_0x507001=_0x507001[_0x157e('0xf6')](_0x297c81),_0x20a3f2=_0x3ed7fb,_0x20c27d=_0x2ce751;}else _0x327fdb[_0x157e('0x11')]?(_0x20c27d++,_0x507001[_0x157e('0x6b')](_0x327fdb)):(_0x20a3f2++,_0x507001[_0x157e('0x6b')](_0x11d247));}}return _0x507001;}[_0x157e('0xcc')](_0x14ab11,_0x83e717){const _0x47e580=[];for(let _0x37948f=0x0;_0x37948f<_0x14ab11[_0x157e('0x4c')];_0x37948f++){for(let _0x4f57b1=0x0;_0x4f57b1<_0x14ab11[_0x37948f][_0x157e('0xbf')][_0x157e('0x4c')];_0x4f57b1++){const _0x2b299d=_0x14ab11[_0x37948f]['markersStart'][_0x4f57b1];if(!_0x83e717[_0x157e('0xdd')](_0x2b299d))continue;const {group:_0x45c4d6,type:_0x46d650,authorId:_0x1a0620}=_0x54429a(_0x2b299d);_0x157e('0x3e')!=_0x45c4d6||_0x157e('0x20')!=_0x46d650&&_0x157e('0xe0')!=_0x46d650||(_0x47e580[_0x157e('0x76')]({'type':_0x46d650,'name':_0x2b299d,'userId':_0x1a0620}),_0x14ab11[_0x37948f]['markersStart']['splice'](_0x4f57b1,0x1),_0x4f57b1--);}_0x24e35a(_0x14ab11[_0x37948f]);for(let _0x568c1f=0x0;_0x568c1f<_0x14ab11[_0x37948f][_0x157e('0x87')][_0x157e('0x4c')];_0x568c1f++){const _0x223c1f=_0x14ab11[_0x37948f][_0x157e('0x87')][_0x568c1f];if(!_0x83e717['has'](_0x223c1f))continue;const {group:_0x53870f,type:_0x384531}=_0x54429a(_0x223c1f);if('revision-suggestion'!=_0x53870f||_0x157e('0x20')!=_0x384531&&_0x157e('0xe0')!=_0x384531)continue;_0x14ab11[_0x37948f][_0x157e('0x87')][_0x157e('0xc3')](_0x568c1f,0x1),_0x568c1f--;const _0x33ef94=_0x47e580[_0x157e('0x4')](_0x258b35=>_0x258b35[_0x157e('0x13')]==_0x223c1f);_0x33ef94>-0x1&&_0x47e580[_0x157e('0xc3')](_0x33ef94,0x1);}}function _0x54429a(_0x528472){const _0x4227f2=_0x528472[_0x157e('0xd7')](':');return{'group':_0x4227f2[0x0],'type':_0x4227f2[0x1],'subType':_0x4227f2[_0x157e('0x4c')]>=0x5?_0x4227f2[0x2]:null,'id':_0x4227f2[_0x157e('0x4c')]<0x5?_0x4227f2[0x2]:_0x4227f2[0x3],'authorId':_0x4227f2['length']<0x5?_0x4227f2[0x3]:_0x4227f2[0x4],'markerCount':0x6==_0x4227f2['length']?_0x4227f2[0x5]:null};}function _0x24e35a(_0x1119d2){for(let _0x4d4bde=0x0;_0x4d4bde<_0x47e580['length'];_0x4d4bde++){if(_0x1119d2[_0x157e('0x49')]&&'insertion'==_0x47e580[_0x4d4bde][_0x157e('0xdf')])return _0x1119d2['isAddSuggestion']=_0x47e580[_0x4d4bde],void delete _0x1119d2['isAdded'];if(!_0x1119d2[_0x157e('0x49')]&&!_0x1119d2[_0x157e('0x11')]&&_0x157e('0xe0')==_0x47e580[_0x4d4bde][_0x157e('0xdf')])return void(_0x1119d2['isRemoveSuggestion']=_0x47e580[_0x4d4bde]);}}}[_0x157e('0xa')](_0x27dc70,_0x353f74){let _0x478e14=0x0,_0x12d3dd=!0x1;const _0x309c01=new Map();for(const _0x1ba2ca of _0x27dc70)_0x1ba2ca[_0x353f74]?_0x12d3dd&&(_0x478e14++,_0x12d3dd=!0x1):(_0x478e14++,_0x12d3dd=!0x0),_0x309c01[_0x157e('0x6')](_0x1ba2ca['id'],_0x478e14);for(let _0x28113e=0x0;_0x28113e<_0x27dc70[_0x157e('0x4c')];_0x28113e++){if(_0x157e('0x11')==_0x353f74&&_0x27dc70[_0x28113e][_0x157e('0x49')]||_0x157e('0x49')==_0x353f74&&_0x27dc70[_0x28113e][_0x157e('0x11')])continue;if('text'==_0x27dc70[_0x28113e][_0x157e('0xdf')]){_0x27dc70[_0x28113e][_0x157e('0x31')]=0x0;continue;}const _0x35ea5a=_0x309c01[_0x157e('0x107')](_0x27dc70[_0x28113e]['pairId']),_0x5158fa=_0x309c01[_0x157e('0x107')](_0x27dc70[_0x28113e]['id']);_0x27dc70[_0x28113e][_0x157e('0x31')]=_0x35ea5a-_0x5158fa;}}['_getRevisionsRange'](_0x2be7ea,_0x580d0a,_0x3e6e36=!0x1){const _0x2b781a=[];let _0x560a65=this[_0x157e('0xa7')][_0x157e('0x41')](_0x2be7ea),_0x56e9a7=this['repository'][_0x157e('0x41')](_0x580d0a);for(-0x1==_0x56e9a7&&(_0x56e9a7=this['repository'][_0x157e('0x5e')][_0x157e('0x4c')],_0x3e6e36=!0x1);_0x560a65<_0x56e9a7;)_0x2b781a[_0x157e('0x6b')](this['repository'][_0x157e('0x5c')](_0x560a65)),_0x560a65++;return _0x3e6e36&&_0x2b781a['push'](this[_0x157e('0xa7')]['getRevision'](_0x560a65)),_0x2b781a;}[_0x157e('0xa6')](_0x9f423c,_0x44da15,_0x22fa80,_0x144736){const _0x514bb0=this[_0x157e('0x12')]['model'][_0x157e('0xe7')];let _0x46187c=_0x44da15;for(;_0x9f423c[_0x46187c]&&_0x9f423c[_0x46187c][_0x157e('0x49')];)_0x46187c++;let _0xcd43bf=_0x144736;for(;_0x22fa80[_0xcd43bf]&&_0x22fa80[_0xcd43bf][_0x157e('0x11')];)_0xcd43bf++;_0x452850(_0x9f423c,_0x44da15,_0x46187c),_0x452850(_0x22fa80,_0x144736,_0xcd43bf);const _0xfa0688=_0x22fa80[_0x157e('0x5b')](_0x144736,_0xcd43bf)[_0x157e('0xf6')](_0x9f423c[_0x157e('0x5b')](_0x44da15,_0x46187c));return _0xfa0688[_0x157e('0xbd')]((_0x3f59d3,_0x37751a)=>_0x3f59d3[_0x157e('0x4a')]!=_0x37751a[_0x157e('0x4a')]?_0x3f59d3[_0x157e('0x4a')]-_0x37751a[_0x157e('0x4a')]:_0x3f59d3[_0x157e('0xf4')]!=_0x37751a[_0x157e('0xf4')]?_0x3f59d3[_0x157e('0xf4')]-_0x37751a[_0x157e('0xf4')]:_0x3f59d3[_0x157e('0x31')]!=_0x37751a['distance']?_0x37751a[_0x157e('0x31')]-_0x3f59d3[_0x157e('0x31')]:!!_0x3f59d3['isAdded']!=!!_0x37751a[_0x157e('0x49')]?-0x1==_0x3f59d3['side']||0x0==_0x3f59d3[_0x157e('0x4a')]?_0x3f59d3['isAdded']?-0x1:0x1:_0x3f59d3[_0x157e('0x49')]?0x1:-0x1:_0x3f59d3[_0x157e('0xeb')]-_0x37751a[_0x157e('0xeb')]),{'commonTape':_0xfa0688,'iEnd':_0x46187c,'jEnd':_0xcd43bf};function _0x452850(_0x27c857,_0x332a46,_0xf4bc75){let _0x48e980=-0x1,_0x933618=Number['POSITIVE_INFINITY'],_0xa31037=!0x0;for(let _0x5dd0e9=_0x332a46;_0x5dd0e9<_0xf4bc75;_0x5dd0e9++)if(_0x514bb0[_0x157e('0x58')](_0x27c857[_0x5dd0e9][_0x157e('0xd5')])||(_0xa31037=!0x1),_0x27c857[_0x5dd0e9][_0x157e('0xd5')]['startIndex']<_0x332a46&&(_0x48e980=_0x5dd0e9),_0x27c857[_0x5dd0e9][_0x157e('0xd5')][_0x157e('0x4e')]>=_0xf4bc75){_0x933618=_0x5dd0e9;break;}_0xa31037&&(_0x48e980=_0xf4bc75-0x1);for(let _0x214b20=_0x332a46;_0x214b20<_0xf4bc75;_0x214b20++)_0x27c857[_0x214b20][_0x157e('0x4a')]=_0x214b20<=_0x48e980?-0x1:_0x214b20<_0x933618?0x0:0x1,_0x27c857[_0x214b20]['index']=_0x214b20;let _0x160f5c=0x0;for(let _0x77db96=_0x332a46;_0x77db96<=_0x48e980;_0x77db96++)0x0==_0x27c857[_0x77db96][_0x157e('0x31')]?_0x27c857[_0x77db96][_0x157e('0xf4')]=_0x160f5c:(_0x160f5c++,_0x27c857[_0x77db96]['level']=_0x160f5c,_0x160f5c++);for(let _0x862ebd=_0x332a46;_0x862ebd<_0xf4bc75;_0x862ebd++)0x0==_0x27c857[_0x862ebd]['side']&&(_0x27c857[_0x862ebd][_0x157e('0xf4')]=_0x160f5c);_0x160f5c=0x0;for(let _0x368bef=_0xf4bc75-0x1;_0x368bef>=_0x933618;_0x368bef--)0x0==_0x27c857[_0x368bef][_0x157e('0x31')]?_0x27c857[_0x368bef][_0x157e('0xf4')]=_0x160f5c:(_0x160f5c--,_0x27c857[_0x368bef][_0x157e('0xf4')]=_0x160f5c,_0x160f5c--);}}[_0x157e('0x45')](_0x3bfc35){const _0x252f2c=new Map(),_0x53a3d4=this[_0x157e('0x12')][_0x157e('0x11b')][_0x157e('0xe7')];for(let _0xaad26b=0x1;_0xaad26b<_0x3bfc35[_0x157e('0x4c')];_0xaad26b++){let _0x109177,_0xdb49ed,_0x336d53;const _0x21cc02=_0x3bfc35[_0xaad26b],_0x1d46e9=_0x3bfc35[_0xaad26b-0x1];if('text'==_0x21cc02[_0x157e('0xdf')])continue;if(_0x21cc02[_0x157e('0xdf')]!=_0x1d46e9['type'])continue;if(!_0x53a3d4['isBlock'](_0x1d46e9['item'])||_0x53a3d4[_0x157e('0x53')](_0x1d46e9['item']))continue;if(!_0x53a3d4[_0x157e('0xe9')](_0x21cc02[_0x157e('0xd5')])||_0x53a3d4[_0x157e('0x53')](_0x21cc02[_0x157e('0xd5')]))continue;if((_0x3bfc35[_0xaad26b][_0x157e('0x49')]||_0x3bfc35[_0xaad26b][_0x157e('0xec')])&&_0x3bfc35[_0xaad26b-0x1][_0x157e('0x11')])_0x109177=_0x3bfc35[_0xaad26b],_0xdb49ed=_0x3bfc35[_0xaad26b-0x1],_0x336d53=_0xaad26b-0x1;else{if(!_0x3bfc35[_0xaad26b][_0x157e('0x11')]||!_0x3bfc35[_0xaad26b-0x1]['isAdded']&&!_0x3bfc35[_0xaad26b-0x1]['isAddSuggestion'])continue;_0x109177=_0x3bfc35[_0xaad26b-0x1],_0xdb49ed=_0x3bfc35[_0xaad26b],_0x336d53=_0xaad26b;}const _0x3f7e8a=_0x109177[_0x157e('0xf4')]==_0xdb49ed[_0x157e('0xf4')],_0x547888=Math[_0x157e('0x98')](_0x109177[_0x157e('0xf4')])<Math[_0x157e('0x98')](_0xdb49ed[_0x157e('0xf4')])&&0x0==_0xdb49ed[_0x157e('0x31')];(_0x3f7e8a||_0x547888)&&(_0x252f2c[_0x157e('0x6')](_0xdb49ed['id'],_0x109177['id']),_0x3bfc35[_0x157e('0xc3')](_0x336d53,0x1),_0xaad26b--,_0x109177['isAdded']=!0x1);}for(let _0x14e92b=0x0;_0x14e92b<_0x3bfc35[_0x157e('0x4c')];_0x14e92b++)_0x252f2c['has'](_0x3bfc35[_0x14e92b][_0x157e('0x11c')])&&(_0x3bfc35[_0x14e92b][_0x157e('0x11c')]=_0x252f2c[_0x157e('0x107')](_0x3bfc35[_0x14e92b][_0x157e('0x11c')]));}[_0x157e('0x114')](_0x27c875){const _0x16c5b0=new Set(_0x27c875[_0x157e('0xda')](_0x20f34e=>_0x20f34e['id']));for(let _0x121167=0x0;_0x121167<_0x27c875[_0x157e('0x4c')];_0x121167++)_0x16c5b0[_0x157e('0xdd')](_0x27c875[_0x121167][_0x157e('0x11c')])||0x0==_0x27c875[_0x121167][_0x157e('0x31')]||(_0x27c875[_0x121167][_0x157e('0x9e')]=!0x0);return _0x27c875[_0x157e('0xd')](_0x1235a6=>!_0x1235a6[_0x157e('0x9e')]);}['_markMismatchedRemovedTags'](_0x50bff7){const _0x52cfd4=new Set();for(let _0x9c3145=0x0;_0x9c3145<_0x50bff7[_0x157e('0x4c')];_0x9c3145++){if(_0x52cfd4['has'](_0x50bff7[_0x9c3145]['id'])&&_0x50bff7[_0x9c3145][_0x157e('0x11')]&&(_0x50bff7[_0x9c3145]['isIncorrect']=!0x0),_0x50bff7[_0x9c3145][_0x157e('0x9e')])continue;if(0x0==_0x50bff7[_0x9c3145][_0x157e('0x31')])continue;if('elementStart'!=_0x50bff7[_0x9c3145][_0x157e('0xdf')])continue;if(null==_0x50bff7[_0x9c3145][_0x157e('0x11c')])continue;let _0x4fec24=_0x9c3145+0x1,_0xfe021d=0x0;for(;_0x50bff7[_0x4fec24]['id']!=_0x50bff7[_0x9c3145]['pairId'];)_0x157e('0x15')==_0x50bff7[_0x4fec24][_0x157e('0xdf')]?_0xfe021d++:_0x157e('0xf2')==_0x50bff7[_0x4fec24][_0x157e('0xdf')]&&_0xfe021d--,_0x4fec24++;if(0x0!=_0xfe021d){if(_0x50bff7[_0x9c3145][_0x157e('0x11')])_0x50bff7[_0x9c3145]['isIncorrect']=!0x0;else for(;_0x4fec24!=_0x9c3145;)_0x50bff7[_0x4fec24][_0x157e('0x11')]&&0x0!=_0x50bff7[_0x4fec24][_0x157e('0x31')]&&(_0x50bff7[_0x4fec24][_0x157e('0x9e')]=!0x0,_0x52cfd4[_0x157e('0x94')](_0x50bff7[_0x4fec24]['pairId'])),_0x4fec24--;}}return _0x50bff7['filter'](_0x4ed405=>!_0x4ed405[_0x157e('0x9e')]);}[_0x157e('0xaa')](_0x3c9c28){const _0x201643=this[_0x157e('0x12')]['model'][_0x157e('0xe7')];for(let _0x5d22cc=0x0;_0x5d22cc<_0x3c9c28[_0x157e('0x4c')];_0x5d22cc++){if(!(_0x3c9c28[_0x5d22cc][_0x157e('0x49')]||_0x3c9c28[_0x5d22cc][_0x157e('0xec')]||_0x3c9c28[_0x5d22cc][_0x157e('0x11')]||_0x3c9c28[_0x5d22cc][_0x157e('0x64')]))continue;if(0x0==_0x3c9c28[_0x5d22cc][_0x157e('0x31')])continue;const _0x5d8d0d=_0x3c9c28[_0x5d22cc][_0x157e('0xd5')];_0x201643[_0x157e('0xe9')](_0x5d8d0d)||_0x201643[_0x157e('0x53')](_0x5d8d0d)||(_0x3c9c28[_0x5d22cc][_0x157e('0x49')]&&delete _0x3c9c28[_0x5d22cc][_0x157e('0x49')],_0x3c9c28[_0x5d22cc][_0x157e('0xec')]&&delete _0x3c9c28[_0x5d22cc][_0x157e('0xec')],_0x3c9c28[_0x5d22cc]['isRemoveSuggestion']&&delete _0x3c9c28[_0x5d22cc][_0x157e('0x64')],_0x3c9c28[_0x5d22cc][_0x157e('0x11')]&&(_0x3c9c28[_0x5d22cc][_0x157e('0x9e')]=!0x0));}return _0x3c9c28[_0x157e('0xd')](_0x370d0b=>!_0x370d0b[_0x157e('0x9e')]);}[_0x157e('0x6d')](_0x1237bf,_0x45fe75,_0x4eef3a){const _0x49b17d=new _0x2c3ef9(),_0x28acef=[],_0x38e4e8=new Map(),_0x3ce49e=this[_0x157e('0x12')][_0x157e('0x11b')],_0xb31cf2=_0x3ce49e[_0x157e('0xe7')],_0x3e639a=[_0x49b17d],_0x3a871c={},_0x246e4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x135fb6=null;const _0x1e2416=[0x0];for(let _0x40ab59=0x0;_0x40ab59<_0x1237bf[_0x157e('0x4c')];_0x40ab59++){let _0x471293,_0x47480a;if(_0x157e('0x15')===_0x1237bf[_0x40ab59][_0x157e('0xdf')]){_0x471293=_0x3ce49e[_0x157e('0xc4')](_0x49b17d,_0x1e2416);const _0x548b65=new _0x495f59(_0x1237bf[_0x40ab59][_0x157e('0xd5')][_0x157e('0x13')],_0x1237bf[_0x40ab59][_0x157e('0xd5')][_0x157e('0xdb')]());_0x3e639a[0x0][_0x157e('0x3a')](_0x548b65),_0x1e2416['push'](0x0),_0x3e639a[_0x157e('0x76')](_0x548b65),_0x47480a=_0x3ce49e['createPositionFromPath'](_0x49b17d,_0x1e2416),_0x135fb6=null;}else{if(_0x157e('0xf2')===_0x1237bf[_0x40ab59]['type'])_0x3e639a[_0x157e('0xef')](),_0x471293=_0x3ce49e[_0x157e('0xc4')](_0x49b17d,_0x1e2416),_0x1e2416[_0x157e('0x93')](),_0x1e2416[_0x1e2416['length']-0x1]++,_0x47480a=_0x3ce49e['createPositionFromPath'](_0x49b17d,_0x1e2416),_0x135fb6=null;else{if(_0x471293=_0x3ce49e[_0x157e('0xc4')](_0x49b17d,_0x1e2416),_0x135fb6&&_0x5cee8e(_0x135fb6,_0x1237bf[_0x40ab59][_0x157e('0xd5')]))_0x135fb6[_0x157e('0xde')]+=_0x1237bf[_0x40ab59]['item'][_0x157e('0x62')];else{const _0x5c93ad=new _0x1f0bd5(_0x1237bf[_0x40ab59][_0x157e('0xd5')][_0x157e('0x62')],_0x1237bf[_0x40ab59][_0x157e('0xd5')]['getAttributes']());_0x3e639a[0x0]['_appendChild'](_0x5c93ad),_0x135fb6=_0x5c93ad;}_0x1e2416[_0x1e2416['length']-0x1]+=_0x1237bf[_0x40ab59][_0x157e('0xd5')][_0x157e('0x79')],_0x47480a=_0x3ce49e[_0x157e('0xc4')](_0x49b17d,_0x1e2416);}}for(const _0x55f747 of _0x1237bf[_0x40ab59][_0x157e('0xbf')])_0x38e4e8[_0x157e('0x6')](_0x55f747,{'start':_0x471293,'end':null});_0x3c1f22(_0x157e('0x64'),_0x40ab59,_0x471293,_0x47480a),_0x3c1f22(_0x157e('0xec'),_0x40ab59,_0x471293,_0x47480a),_0x3c1f22(_0x157e('0x11'),_0x40ab59,_0x471293,_0x47480a),_0x3c1f22('isAdded',_0x40ab59,_0x471293,_0x47480a);for(const _0x59da94 of _0x1237bf[_0x40ab59][_0x157e('0x87')]){_0x38e4e8[_0x157e('0x107')](_0x59da94)[_0x157e('0xf7')]=_0x47480a;}}for(const [_0x168709,_0x245b62]of _0x38e4e8){const _0x10bce1=this[_0x157e('0x12')][_0x157e('0x11b')][_0x157e('0x24')](_0x245b62[_0x157e('0x16')],_0x245b62[_0x157e('0xf7')]);_0x49b17d[_0x157e('0xb7')][_0x157e('0x6')](_0x168709,_0x10bce1);}return _0x28acef[_0x157e('0xbd')]((_0x1563fd,_0x15ad2b)=>{const _0x266608=_0x49b17d[_0x157e('0xb7')][_0x157e('0x107')]('revision:'+_0x1563fd['id']),_0x583b4a=_0x49b17d['markers'][_0x157e('0x107')](_0x157e('0x3d')+_0x15ad2b['id']);return _0x266608[_0x157e('0x16')][_0x157e('0xb8')](_0x583b4a[_0x157e('0x16')])?-0x1:_0x266608['start']['isAfter'](_0x583b4a[_0x157e('0x16')])?0x1:_0x266608[_0x157e('0xf7')][_0x157e('0xb8')](_0x583b4a['end'])?-0x1:_0x266608[_0x157e('0xf7')]['isAfter'](_0x583b4a[_0x157e('0xf7')])?0x1:'add'===_0x1563fd[_0x157e('0xdf')]?-0x1:0x1;}),{'root':_0x49b17d,'changes':_0x28acef};function _0x3c1f22(_0x3a582a,_0x2e256c,_0x5cddce,_0xec0554){const _0x5d6540=!!_0x1237bf[_0x2e256c][_0x3a582a],_0x44249b=_0x5d6540?_0x1237bf[_0x2e256c][_0x3a582a]['userId']:null,_0x471a5c=_0x2e256c===_0x1237bf['length']-0x1,_0x5314b9=_0x246e4[_0x3a582a][0x0],_0x28a162=_0xb31cf2[_0x157e('0xf0')](_0x1237bf[_0x2e256c][_0x157e('0xd5')]);!_0x3a871c[_0x3a582a]&&_0x5d6540?_0x3a871c[_0x3a582a]={'start':_0x5cddce,'tapeItem':_0x1237bf[_0x2e256c],'userId':_0x44249b,'type':_0x3a582a}:_0x3a871c[_0x3a582a]&&!_0x5d6540?(_0x3a871c[_0x3a582a][_0x157e('0xf7')]=_0x5cddce,_0x4acda8(_0x3a871c[_0x3a582a]),_0x3a871c[_0x3a582a]=null):_0x3a871c[_0x3a582a]&&_0x5d6540&&_0x3a871c[_0x3a582a][_0x157e('0xb0')]!==_0x44249b&&(_0x3a871c[_0x3a582a][_0x157e('0xf7')]=_0x5cddce,_0x5314b9&&_0x5314b9[_0x157e('0xb0')]===_0x3a871c[_0x3a582a]['userId']||_0x4acda8(_0x3a871c[_0x3a582a]),_0x3a871c[_0x3a582a]={'start':_0x5cddce,'tapeItem':_0x1237bf[_0x2e256c],'userId':_0x44249b,'type':_0x3a582a}),_0x3a871c[_0x3a582a]&&_0x28a162&&(_0x157e('0x15')!==_0x1237bf[_0x2e256c][_0x157e('0xdf')]||_0x5314b9&&_0x5314b9[_0x157e('0xb0')]===_0x44249b||_0x246e4[_0x3a582a][_0x157e('0x76')]({'userId':_0x44249b,'object':_0x1237bf[_0x2e256c][_0x157e('0xd5')],'change':_0x3a871c[_0x3a582a]}),_0x157e('0xf2')===_0x1237bf[_0x2e256c][_0x157e('0xdf')]&&_0x5314b9&&_0x5314b9[_0x157e('0x8f')]===_0x1237bf[_0x2e256c][_0x157e('0xd5')]&&(_0x246e4[_0x3a582a][_0x157e('0xef')](),_0x3a871c[_0x3a582a]=_0x5314b9['change'])),_0x3a871c[_0x3a582a]&&_0x471a5c&&(_0x3a871c[_0x3a582a][_0x157e('0xf7')]=_0xec0554,_0x4acda8(_0x3a871c[_0x3a582a]),_0x3a871c[_0x3a582a]=null);}function _0x4acda8({start:_0x5b9c6b,end:_0x526e9d,tapeItem:_0x70c89b,userId:_0x5c012c,type:_0x11e6ff}){const _0xbccc5a=_0x70c89b[_0x157e('0xd5')],_0x324340=_0x3ce49e[_0x157e('0xe7')][_0x157e('0xe9')](_0xbccc5a)&&!_0x3ce49e['schema'][_0x157e('0x53')](_0xbccc5a),_0x2e4260=_0x5b9c6b[_0x157e('0x8c')]==_0x526e9d['parent']&&_0x526e9d[_0x157e('0xc8')];if(_0x324340&&_0x2e4260)return;const _0x7fc54=_0x3ce49e[_0x157e('0x24')](_0x5b9c6b,_0x526e9d),_0x2e38cd=_0x45fe75[_0x157e('0x107')](_0x5c012c),_0x4920e1=new _0x113aa3({'author':_0x2e38cd,'type':_0x157e('0x49')==_0x11e6ff||_0x157e('0xec')==_0x11e6ff?'add':_0x157e('0xbc'),'data':{'isSuggestion':_0x157e('0xec')==_0x11e6ff||_0x157e('0x64')==_0x11e6ff},'createdAt':new Date(),'rootName':_0x4eef3a});_0x28acef[_0x157e('0x6b')](_0x4920e1),_0x49b17d['markers'][_0x157e('0x6')]('revision:'+_0x4920e1['id'],_0x7fc54);}function _0x5cee8e(_0x826d21,_0x15de6f){const _0x117bc7=_0x826d21[_0x157e('0xdb')](),_0x1aa539=_0x15de6f[_0x157e('0xdb')]();for(const _0x26779a of _0x117bc7){if(_0x26779a[0x1]!==_0x15de6f[_0x157e('0x83')](_0x26779a[0x0]))return!0x1;_0x1aa539[_0x157e('0xd0')]();}return _0x1aa539[_0x157e('0xd0')]()[_0x157e('0x32')];}}[_0x157e('0x1b')](){this[_0x157e('0x12')]['conversion'][_0x157e('0x2d')](_0x157e('0x84'))['dataToMarker']({'view':_0x157e('0xd4')}),this['editor'][_0x157e('0xe')][_0x157e('0x2d')](_0x157e('0xb5'))['markerToHighlight']({'model':_0x157e('0xd4'),'view':_0x2a5c19=>{const _0x4d39c0=_0x2a5c19[_0x157e('0x36')][_0x157e('0xd7')](':')[0x1],_0xb56094=this[_0x157e('0x29')](_0x4d39c0);if(!_0xb56094)return null;const _0x299ae8=_0x157e('0x94')==_0xb56094[_0x157e('0xdf')]?'insertion':_0x157e('0xe0'),_0x1d0fef=[_0x157e('0xb6'),_0x157e('0x68')+_0x299ae8];return _0xb56094[_0x157e('0x62')][_0x157e('0x113')]&&_0x1d0fef[_0x157e('0x6b')]('ck-suggestion-marker-'+_0x299ae8+_0x157e('0x27')),this['activeChange']==_0xb56094&&_0x1d0fef[_0x157e('0x6b')]('ck-suggestion-marker--active'),{'classes':_0x1d0fef,'attributes':{'data-change-id':_0x4d39c0}};}}),this[_0x157e('0x12')][_0x157e('0xe')][_0x157e('0x2d')](_0x157e('0x84'))['add'](_0x1e3133=>{_0x1e3133['on']('element:pre',(_0x2fff4a,_0x2f1203,_0x5f04e9)=>{const _0x1cd25b=_0x2f1203[_0x157e('0x2e')][_0x157e('0xe2')](0x0);if(!_0x1cd25b||!_0x1cd25b['is'](_0x157e('0xf8'),_0x157e('0x77')))return;if(!_0x5f04e9[_0x157e('0x117')][_0x157e('0x8b')](_0x1cd25b,{'attributes':['vid_start',_0x157e('0xea')]}))return;const _0x595ab5=_0x2f1203[_0x157e('0xc2')]['start']['nodeAfter'];_0x5f04e9[_0x157e('0x3c')]['setAttribute'](_0x157e('0x72'),_0x1cd25b[_0x157e('0x83')]('vid_start'),_0x595ab5),_0x5f04e9['writer']['setAttribute'](_0x157e('0xea'),_0x1cd25b[_0x157e('0x83')]('vid_end'),_0x595ab5);},{'priority':_0x157e('0x116')});}),this['editor']['conversion'][_0x157e('0x2d')]('upcast')[_0x157e('0x94')](_0x20c025=>{_0x20c025['on'](_0x157e('0xf8'),(_0x882b27,_0x315549,_0x13493b)=>{if(!_0x13493b['consumable'][_0x157e('0x8b')](_0x315549[_0x157e('0x2e')],{'attributes':['vid_start',_0x157e('0xea')]}))return;if(_0x315549[_0x157e('0xc2')][_0x157e('0x1f')])return;const _0x1352c1=_0x315549[_0x157e('0xc2')][_0x157e('0x16')][_0x157e('0x8c')];_0x1352c1[_0x157e('0x4d')](_0x157e('0x72'))||_0x1352c1[_0x157e('0x4d')](_0x157e('0x54'))||(_0x13493b[_0x157e('0x3c')]['setAttribute'](_0x157e('0x72'),_0x315549[_0x157e('0x2e')][_0x157e('0x83')](_0x157e('0x72')),_0x1352c1),_0x13493b[_0x157e('0x3c')][_0x157e('0x2f')](_0x157e('0xea'),_0x315549[_0x157e('0x2e')][_0x157e('0x83')](_0x157e('0xea')),_0x1352c1));},{'priority':_0x157e('0x116')});}),this[_0x157e('0x12')]['conversion'][_0x157e('0x2d')](_0x157e('0x84'))[_0x157e('0x1')]({'view':{'name':_0x157e('0x75'),'attributes':{'vid':!0x0}},'model':{'key':_0x157e('0x54'),'value':_0x95d0ab=>_0x95d0ab[_0x157e('0x83')](_0x157e('0x54'))}}),this[_0x157e('0x12')][_0x157e('0x11b')][_0x157e('0xe7')]['on'](_0x157e('0x7d'),(_0x149712,[,_0x2c622a])=>{[_0x157e('0x72'),_0x157e('0xea'),_0x157e('0x54')][_0x157e('0xd1')](_0x2c622a)&&(_0x149712['return']=!0x0,_0x149712['stop']());},{'priority':_0x157e('0x8a')}),this[_0x157e('0x12')][_0x157e('0xe')][_0x157e('0x2d')](_0x157e('0x48'))['add'](_0x120ac8=>{_0x120ac8['on']('attribute:vid',(_0xa006a8,_0x1ab2ec,_0x207b8e)=>{if('\x20'!=_0x1ab2ec['item'][_0x157e('0x62')]||_0x1ab2ec[_0x157e('0xd5')][_0x157e('0x92')][_0x157e('0x104')]>0x1)return;if(!_0x207b8e[_0x157e('0x117')]['consume'](_0x1ab2ec[_0x157e('0xd5')],_0xa006a8['name']))return;const _0x4e1078=_0x207b8e[_0x157e('0x3c')],_0x2a7c0b=_0x207b8e[_0x157e('0x18')][_0x157e('0x17')](_0x1ab2ec['range']);_0x4e1078['wrap'](_0x2a7c0b,_0x4e1078['createAttributeElement'](_0x157e('0x75')));});}),this[_0x157e('0x12')][_0x157e('0xe')][_0x157e('0x2d')](_0x157e('0x48'))['markerToData']({'model':_0x157e('0xd4')}),this[_0x157e('0x12')]['editing'][_0x157e('0x14')]['on'](_0x157e('0x105'),function(_0xb0ef5c){const _0x255604=_0xb0ef5c[_0x157e('0x86')][_0x157e('0x107')](_0x157e('0xfe'));return(_0x425fda,_0x169fc0,_0x5d8b28)=>{const _0x526550=_0x169fc0[_0x157e('0x36')][_0x157e('0xd7')](':')[0x1],_0x1aefaf=_0x255604[_0x157e('0x29')](_0x526550);if(!_0x1aefaf)return null;const _0x12583f=_0x157e('0x94')==_0x1aefaf[_0x157e('0xdf')]?_0x157e('0xd7'):_0x157e('0xfb');if(!_0x5d8b28['consumable'][_0x157e('0xd2')](_0x169fc0[_0x157e('0x10a')],_0x425fda['name']))return;const _0x5dfe01=_0x169fc0['markerRange'][_0x157e('0x8e')](),_0x526369=_0x169fc0['markerRange'][_0x157e('0x16')],_0x42eeab=_0xb0ef5c[_0x157e('0x11b')][_0x157e('0xe7')];let _0x524742=null,_0x3f3547=null,_0x165ef0=!0x1,_0x110d6e=!0x1;for(const _0x420cd7 of _0x5dfe01){const _0x59cae2=_0x420cd7[_0x157e('0xd5')];_0x165ef0=_0x165ef0||_0x42eeab[_0x157e('0x3b')](_0x59cae2);const _0x187b23=_0x5d8b28[_0x157e('0x18')]['toViewElement'](_0x59cae2);if(_0x187b23&&_0x187b23[_0x157e('0x23')]('addHighlight'))return;'elementEnd'==_0x420cd7[_0x157e('0xdf')]&&(_0x42eeab['isBlock'](_0x59cae2)&&!_0x42eeab[_0x157e('0x53')](_0x59cae2)&&(_0x59cae2[_0x157e('0x8')]||_0x526369[_0x157e('0xfa')]?_0x524742&&_0x524742[_0x157e('0x92')]==_0x59cae2||(_0x524742=_0x59cae2,_0x4cd95a(_0x420cd7[_0x157e('0x91')]),_0x110d6e=!0x0):_0x3f3547=_0x3f3547||_0x420cd7[_0x157e('0x91')]));}function _0x4cd95a(_0x5abae2){const _0x2a52c8=_0x5d8b28[_0x157e('0x3c')]['createUIElement'](_0x157e('0x75'),{'class':'ck-suggestion-marker-'+_0x12583f}),_0x33bbf9=_0x5d8b28[_0x157e('0x18')][_0x157e('0xb')](_0x5abae2);_0x1aefaf[_0x157e('0x62')][_0x157e('0x113')]&&_0x5d8b28[_0x157e('0x3c')][_0x157e('0x55')](_0x157e('0x68')+_0x12583f+_0x157e('0x27'),_0x2a52c8),_0x255604[_0x157e('0xa5')]==_0x1aefaf&&_0x5d8b28[_0x157e('0x3c')][_0x157e('0x55')](_0x157e('0xb9'),_0x2a52c8),_0x5d8b28[_0x157e('0x3c')][_0x157e('0x99')](_0x33bbf9,_0x2a52c8),_0x5d8b28[_0x157e('0x18')]['bindElementToMarker'](_0x2a52c8,_0x169fc0[_0x157e('0x36')]);}_0x165ef0||_0x110d6e||!_0x3f3547||_0x4cd95a(_0x3f3547);};}(this[_0x157e('0x12')]),{'priority':_0x157e('0x11a')}),this['editor']['editing'][_0x157e('0x14')]['on'](_0x157e('0x90'),(_0x2c6e33,_0x14b27f,_0x5e1760)=>{const _0x26008a=_0x5e1760['mapper'][_0x157e('0xad')](_0x14b27f['markerName']);if(_0x26008a)for(const _0x34c3a2 of _0x26008a)(_0x34c3a2[_0x157e('0x97')](_0x157e('0xc0'))||_0x34c3a2[_0x157e('0x97')](_0x157e('0xb1')))&&(_0x5e1760[_0x157e('0x18')][_0x157e('0x102')](_0x34c3a2,_0x14b27f[_0x157e('0x36')]),_0x5e1760['writer'][_0x157e('0xbc')](_0x34c3a2));},{'priority':'high'}),this['editor'][_0x157e('0x73')]['downcastDispatcher']['on'](_0x157e('0x105'),(_0x3d6ca3,_0x2234a0,_0x3edb2)=>{const _0x2fcbc5=_0x2234a0[_0x157e('0x36')][_0x157e('0xd7')](':')[0x1],_0x5c32a3=this['_getChangeFromId'](_0x2fcbc5);if(!_0x5c32a3)return null;const _0x4abfb2=_0x157e('0x94')==_0x5c32a3['type']?_0x157e('0xd7'):'merge';if(_0x3edb2[_0x157e('0x117')][_0x157e('0xd2')](_0x2234a0['markerRange'],_0x3d6ca3[_0x157e('0x13')]))for(const _0x4027cd of _0x2234a0[_0x157e('0x10a')][_0x157e('0x51')]()){if(!_0x4027cd['is'](_0x157e('0xf8'),'softBreak'))continue;const _0x24281d=_0x3edb2[_0x157e('0x3c')]['createUIElement']('span',{'class':_0x157e('0x68')+_0x4abfb2}),_0x1ea3c6=_0x3edb2[_0x157e('0x18')]['toViewPosition'](this[_0x157e('0x12')]['model'][_0x157e('0x88')](_0x4027cd));_0x5c32a3[_0x157e('0x62')][_0x157e('0x113')]&&_0x3edb2[_0x157e('0x3c')][_0x157e('0x55')](_0x157e('0x68')+_0x4abfb2+_0x157e('0x27'),_0x24281d),this['activeChange']==_0x5c32a3&&_0x3edb2[_0x157e('0x3c')][_0x157e('0x55')](_0x157e('0xb9'),_0x24281d),_0x3edb2[_0x157e('0x3c')]['insert'](_0x1ea3c6,_0x24281d),_0x3edb2[_0x157e('0x18')][_0x157e('0x9a')](_0x24281d,_0x2234a0[_0x157e('0x36')]);}},{'priority':'high'}),this[_0x157e('0x12')][_0x157e('0x11b')][_0x157e('0x5f')]['on']('change',()=>{this[_0x157e('0x12')][_0x157e('0x73')][_0x157e('0x2c')]['change'](_0x3fd42f=>{for(const _0x11abe9 of this[_0x157e('0x12')][_0x157e('0x11b')][_0x157e('0x5f')][_0x157e('0x25')]()){const _0x81f4f5=this['editor']['model'][_0x157e('0x5f')][_0x157e('0x5a')](_0x11abe9),_0x361ba4=this['editor']['editing'][_0x157e('0x2c')][_0x157e('0x5f')]['getRoot'](_0x11abe9);if(_0x361ba4){const _0x22be7f=_0x81f4f5['getAttribute'](_0x157e('0x85'));if(_0x3fd42f['removeAttribute'](_0x157e('0x59'),_0x361ba4),_0x3fd42f[_0x157e('0x37')](_0x157e('0x7b'),_0x361ba4),_0x3fd42f[_0x157e('0x37')](_0x157e('0x7c'),_0x361ba4),_0x3fd42f[_0x157e('0x37')](_0x157e('0xb4'),_0x361ba4),_0x22be7f){const _0x5b50b7=this['_getChangeFromId'](_0x22be7f);if(!_0x5b50b7)return null;_0x3fd42f[_0x157e('0x2f')](_0x157e('0x59'),_0x22be7f,_0x361ba4),_0x3fd42f[_0x157e('0x55')](_0x157e('0x66')+_0x5b50b7[_0x157e('0xdf')],_0x361ba4),this['activeChange']==_0x5b50b7&&_0x3fd42f['addClass']('ck-revision-history-root--active',_0x361ba4);}}}});}),this[_0x157e('0x12')][_0x157e('0xe')]['for']('upcast')[_0x157e('0x42')]({'view':_0x157e('0xf9'),'model':_0x352865=>_0x157e('0xf3')+_0x352865,'converterPriority':_0x157e('0x8a')}),this[_0x157e('0x12')]['conversion'][_0x157e('0x2d')](_0x157e('0x84'))['dataToMarker']({'view':'suggestion','model':_0x267dd5=>_0x157e('0x10e')+_0x267dd5,'converterPriority':'highest'}),this[_0x157e('0x12')][_0x157e('0xe')][_0x157e('0x2d')](_0x157e('0x48'))[_0x157e('0x10b')]({'model':'revision-suggestion','view':_0x31954c=>({'name':'suggestion:'+_0x31954c,'group':_0x157e('0x3e')}),'converterPriority':_0x157e('0x8a')}),this[_0x157e('0x12')]['conversion']['for'](_0x157e('0xb5'))['markerToHighlight']({'model':_0x157e('0x3e'),'view':_0x1a0a5a=>{const _0x5a7d59=_0x1a0a5a[_0x157e('0x36')]['split'](':')[0x1];return _0x157e('0x20')!=_0x5a7d59&&'deletion'!=_0x5a7d59?null:{'classes':[_0x157e('0x0'),_0x157e('0xd8')+_0x5a7d59]};}}),this['editor']['editing']['downcastDispatcher']['on'](_0x157e('0xee'),Y(this[_0x157e('0x12')],_0x157e('0xfb')),{'priority':_0x157e('0x11a')}),this[_0x157e('0x12')][_0x157e('0x73')][_0x157e('0x14')]['on'](_0x157e('0x7e'),Y(this[_0x157e('0x12')],'split'),{'priority':_0x157e('0x11a')}),this[_0x157e('0x12')][_0x157e('0x73')][_0x157e('0x14')]['on'](_0x157e('0x9f'),(_0x3ba0ab,_0x3f39d7,_0x1cb803)=>{const _0x117354=_0x1cb803['mapper'][_0x157e('0xad')](_0x3f39d7[_0x157e('0x36')]);if(_0x117354)for(const _0x23efa5 of _0x117354)_0x23efa5['is'](_0x157e('0x57'))&&(_0x1cb803[_0x157e('0x18')][_0x157e('0x102')](_0x23efa5,_0x3f39d7[_0x157e('0x36')]),_0x1cb803[_0x157e('0x3c')][_0x157e('0xbc')](_0x23efa5));},{'priority':_0x157e('0x11a')});}[_0x157e('0x29')](_0x29bdee){return this[_0x157e('0x33')][_0x157e('0x107')](_0x29bdee);}[_0x157e('0x9d')](_0x1adcea){return this['_changeView']&&this['_changeView'][_0x157e('0xe5')](),this[_0x157e('0xcd')]=new _0x2d737a(this['editor']['locale'],_0x1adcea),this['_changeView'];}[_0x157e('0x22')](){this['editor'][_0x157e('0x11b')]['document']['selection'][_0x157e('0xa0')]('revision'),this['on'](_0x157e('0x96'),(_0x47213b,_0x2f9e05,_0x4e8afd,_0xc86028)=>{_0xc86028&&this[_0x157e('0xff')][_0x157e('0xbc')](_0xc86028),_0x4e8afd&&(this[_0x157e('0xff')][_0x157e('0x94')]({'view':_0x4e8afd,'stackId':_0x157e('0x110'),'position':{'target':()=>{const _0x517e42=this[_0x157e('0x12')]['editing'],_0x4ff481=this[_0x157e('0x29')](_0x4e8afd[_0x157e('0xfd')]);let _0x11bbc0;if(_0x4ff481[_0x157e('0x62')][_0x157e('0x43')]){const _0x147773=_0x517e42[_0x157e('0x2c')]['getDomRoot'](_0x4ff481[_0x157e('0x35')]);_0x11bbc0=Array['from'](_0x147773['getClientRects']());}else{const _0x7b8845=this[_0x157e('0x12')][_0x157e('0x11b')][_0x157e('0xb7')][_0x157e('0x107')](_0x157e('0x3d')+_0x4e8afd['changeId']);_0x11bbc0=Array['from'](_0x517e42[_0x157e('0x18')][_0x157e('0xad')](_0x7b8845['name']))[_0x157e('0xda')](_0x2dc883=>_0x517e42[_0x157e('0x2c')][_0x157e('0xfc')][_0x157e('0x7')](_0x2dc883))[_0x157e('0xda')](_0x150b4d=>Array['from'](_0x150b4d[_0x157e('0xae')]()))[_0x157e('0x69')]();}if(!this[_0x157e('0x70')])return _0x11bbc0[0x0];return _0x11bbc0[_0x157e('0x74')](_0x1408ac=>_0x1408ac[_0x157e('0xa9')]-0x3<=this[_0x157e('0x70')]['y']&&_0x1408ac[_0x157e('0x61')]+0x3>=this[_0x157e('0x70')]['y']&&_0x1408ac[_0x157e('0x67')]-0x3<=this[_0x157e('0x70')]['x']&&_0x1408ac[_0x157e('0xca')]+0x3>=this[_0x157e('0x70')]['x'])||_0x11bbc0[0x0];}}}),this[_0x157e('0xff')][_0x157e('0xce')](_0x157e('0x110')));}),this['on'](_0x157e('0xe3'),(_0x577605,_0x2137f0,_0x5b9753,_0x68bb5d)=>{this[_0x157e('0x106')]=_0x5b9753?this[_0x157e('0x9d')](_0x5b9753):null,this[_0x157e('0x12')]['model'][_0x157e('0xf5')](()=>{const _0xf628bf=this[_0x157e('0x12')][_0x157e('0x73')];_0x68bb5d&&(_0x68bb5d['data'][_0x157e('0x43')]?_0xf628bf[_0x157e('0x2c')][_0x157e('0xf5')](_0x36273c=>{_0x36273c[_0x157e('0x37')]('ck-revision-history-root--active',_0xf628bf['view'][_0x157e('0x5f')]['getRoot'](_0x68bb5d['rootName']));}):_0xf628bf[_0x157e('0x3f')](_0x157e('0x3d')+_0x68bb5d['id'])),_0x5b9753&&(_0x5b9753['data'][_0x157e('0x43')]?_0xf628bf['view'][_0x157e('0xf5')](_0x2fce59=>{_0x2fce59['addClass'](_0x157e('0xb4'),_0xf628bf[_0x157e('0x2c')][_0x157e('0x5f')][_0x157e('0x5a')](_0x5b9753[_0x157e('0x35')]));}):_0xf628bf[_0x157e('0x3f')](_0x157e('0x3d')+_0x5b9753['id']));});}),this[_0x157e('0x10f')](this[_0x157e('0x12')][_0x157e('0x73')][_0x157e('0x2c')][_0x157e('0x5f')],_0x157e('0x1e'),(_0x101d84,_0x364882)=>{if(this[_0x157e('0xa5')])return;const _0x3518d0=this['_findChangeIdFromDomTarget'](_0x364882[_0x157e('0xc5')]),_0x32e813=this[_0x157e('0x33')]['get'](_0x3518d0);_0x32e813?(this[_0x157e('0x70')]={'x':_0x364882[_0x157e('0x118')]['x'],'y':_0x364882['domEvent']['y']},this[_0x157e('0x106')]=this[_0x157e('0x9d')](_0x32e813)):(this[_0x157e('0x70')]=null,this[_0x157e('0x106')]=null);}),this[_0x157e('0x10f')](this[_0x157e('0x12')][_0x157e('0x73')][_0x157e('0x2c')][_0x157e('0x5f')],_0x157e('0x6a'),(_0x49e782,_0x4e7ea8)=>{const _0x24ed8a=this[_0x157e('0x82')](_0x4e7ea8[_0x157e('0xc5')]),_0x5811b3=this[_0x157e('0x33')][_0x157e('0x107')](_0x24ed8a);_0x5811b3?(this[_0x157e('0x70')]={'x':_0x4e7ea8[_0x157e('0x118')]['x'],'y':_0x4e7ea8[_0x157e('0x118')]['y']},_0x5811b3===this[_0x157e('0xa5')]?this[_0x157e('0xff')][_0x157e('0xb2')]():this[_0x157e('0xa5')]=_0x5811b3):(this[_0x157e('0x70')]=null,this[_0x157e('0xa5')]=null);});}[_0x157e('0x82')](_0x16bfd0){do{const _0x1def88=_0x16bfd0[_0x157e('0x83')]('data-change-id');if(_0x1def88)return _0x1def88;_0x16bfd0=_0x16bfd0[_0x157e('0x92')];}while(_0x16bfd0);return null;}[_0x157e('0xf')](){this['editor']['model'][_0x157e('0xf5')](_0x51d28e=>{for(const _0x49fe35 of this[_0x157e('0x12')][_0x157e('0x11b')][_0x157e('0xb7')])_0x51d28e[_0x157e('0x6e')](_0x49fe35);});}}function Y(_0x1d4bbf,_0x486bfc){return(_0x43504b,_0x5a3a85,_0xe00df4)=>{if(!_0xe00df4[_0x157e('0x117')][_0x157e('0xd2')](_0x5a3a85[_0x157e('0x10a')],_0x43504b['name']))return;const _0x3e8312=_0x5a3a85['markerRange'][_0x157e('0x8e')](),_0x5b7e66=_0x5a3a85[_0x157e('0x10a')]['start'],_0x421952=_0x1d4bbf[_0x157e('0x11b')][_0x157e('0xe7')];let _0x1fa31c=null,_0x561c20=null,_0x4e9891=!0x1,_0x1aaf09=!0x1;for(const _0x1eaf18 of _0x3e8312){const _0x1c5d13=_0x1eaf18['item'];_0x4e9891=_0x4e9891||_0x421952[_0x157e('0x3b')](_0x1c5d13);const _0x43d585=_0xe00df4[_0x157e('0x18')]['toViewElement'](_0x1c5d13);if(_0x43d585&&_0x43d585['getCustomProperty'](_0x157e('0xcf')))return;_0x157e('0xf2')==_0x1eaf18[_0x157e('0xdf')]&&(_0x421952[_0x157e('0xe9')](_0x1c5d13)&&!_0x421952['isLimit'](_0x1c5d13)&&(_0x1c5d13[_0x157e('0x8')]||_0x5b7e66[_0x157e('0xfa')]?_0x1fa31c&&_0x1fa31c[_0x157e('0x92')]==_0x1c5d13||(_0x1fa31c=_0x1c5d13,_0x4896ad(_0x1eaf18[_0x157e('0x91')]),_0x1aaf09=!0x0):_0x561c20=_0x561c20||_0x1eaf18[_0x157e('0x91')]));}function _0x4896ad(_0x51aecc){const _0x39b653=_0xe00df4[_0x157e('0x18')][_0x157e('0xb')](_0x51aecc),_0x46c9a5=_0xe00df4['writer'][_0x157e('0xa2')]('span',{'class':_0x157e('0xd8')+_0x486bfc});_0xe00df4[_0x157e('0x3c')]['insert'](_0x39b653,_0x46c9a5),_0xe00df4[_0x157e('0x18')][_0x157e('0x9a')](_0x46c9a5,_0x5a3a85[_0x157e('0x36')]);}_0x4e9891||_0x1aaf09||!_0x561c20||_0x4896ad(_0x561c20);};}export class RestoreRevisionCommand extends _0xb51ff9{constructor(_0x108904){super(_0x108904);const _0x2dc6c2=_0x108904[_0x157e('0x86')][_0x157e('0x107')](w);this[_0x157e('0x81')]=!0x1,this['listenTo'](_0x2dc6c2,_0x157e('0x38'),()=>this[_0x157e('0x4b')]()),this[_0x157e('0x10f')](_0x2dc6c2,_0x157e('0xac'),()=>this[_0x157e('0x4b')]());}['execute'](){const _0x35d5b0=this[_0x157e('0x12')],_0x2f62e7=_0x35d5b0[_0x157e('0x86')][_0x157e('0x107')](w),_0x57f230=_0x2f62e7[_0x157e('0xab')]?_0x2f62e7[_0x157e('0x10')][_0x157e('0x63')]:null;_0x35d5b0[_0x157e('0x44')]['get']('revisionHistory')['restoreRevisionCallback'](_0x57f230);}[_0x157e('0x4b')](){const {isReady:_0x2fc72c,isEnabled:_0x4de208}=this[_0x157e('0x12')]['plugins']['get'](w);this[_0x157e('0x119')]=_0x2fc72c&&_0x4de208;}}export class ShowChangeCommand extends _0xb51ff9{constructor(_0x19d4f0,{direction:_0x17ce17}){super(_0x19d4f0);const _0x255adb=_0x19d4f0['plugins'][_0x157e('0x107')](w);this['affectsData']=!0x1,this[_0x157e('0xf1')]='forward'===_0x17ce17?0x1:-0x1,this['listenTo'](_0x255adb,_0x157e('0x38'),()=>this[_0x157e('0x4b')]()),this['listenTo'](_0x255adb,_0x157e('0xac'),()=>this[_0x157e('0x4b')]());}[_0x157e('0x101')](){const _0x270d04=this[_0x157e('0x12')],_0x140ecc=_0x270d04[_0x157e('0x86')]['get'](w),{isNavigationMode:_0x3f39c3,currentChangeNumber:_0x1d488f}=_0x140ecc;let _0x65bd85;if(_0x140ecc[_0x157e('0xa5')]=_0x3f39c3?_0x140ecc[_0x157e('0x10')]['changes'][_0x157e('0x107')](_0x1d488f+this[_0x157e('0xf1')]):_0x140ecc[_0x157e('0x10')][_0x157e('0x9b')]['first'],_0x140ecc[_0x157e('0xa5')]['data'][_0x157e('0x43')])_0x65bd85=_0x270d04['editing'][_0x157e('0x2c')]['getDomRoot'](_0x140ecc[_0x157e('0xa5')][_0x157e('0x35')]);else{const _0x2bde9b=_0x270d04[_0x157e('0x11b')][_0x157e('0xb7')][_0x157e('0x107')](_0x157e('0x3d')+_0x140ecc[_0x157e('0xa5')]['id']);_0x65bd85=_0x3d7ccd(_0x270d04[_0x157e('0x73')],_0x2bde9b);}_0x41b6a1({'target':_0x65bd85,'viewportOffset':0x28});}[_0x157e('0x4b')](){const {isNavigationMode:_0x50ddd2,currentChangeNumber:_0x215e18,numberOfChanges:_0x4f2398,isReady:_0x5eb6ff,isEnabled:_0x1c3baa}=this[_0x157e('0x12')]['plugins'][_0x157e('0x107')](w);this['isEnabled']=!!(_0x1c3baa&&_0x5eb6ff&&_0x4f2398)&&(!_0x50ddd2||(0x1===this['_step']?_0x215e18<_0x4f2398-0x1:_0x215e18>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1dfd=['set','change:isActionsDropdownOpen','function','isVisible','class','add','Restore\x20this\x20revision','find','execute','name','locale','first','ck-revision-history-sidebar__revision__actions','items','Name\x20this\x20revision','isActionsDropdownOpen','bindTemplate','Compare\x20against\x20selected','ck-on','bind','buttonView','isEnabled','stopPropagation','children','model','threeVerticalDots','_action','extendTemplate','source'];(function(_0x1b01cf,_0x1dfdeb){const _0x4c4f29=function(_0x18786a){while(--_0x18786a){_0x1b01cf['push'](_0x1b01cf['shift']());}};_0x4c4f29(++_0x1dfdeb);}(_0x1dfd,0xd5));const _0x4c4f=function(_0x1b01cf,_0x1dfdeb){_0x1b01cf=_0x1b01cf-0x0;let _0x4c4f29=_0x1dfd[_0x1b01cf];return _0x4c4f29;};import{Collection as _0x36e9a8}from'ckeditor5/src/utils';import{icons as _0x246c8b}from'ckeditor5/src/core';import{Model as _0x2ad55e,addListToDropdown as _0x51ff91,createDropdown as _0x1311bf}from'ckeditor5/src/ui';import{getTranslation as _0x113019}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x5e4236,_0x9305c8){const _0x4ccf8a=_0x5e4236[_0x4c4f('0x6')],_0x45b36a=_0x5e4236[_0x4c4f('0x0')],_0x17dc58=_0x1311bf(_0x45b36a);_0x17dc58['panelPosition']='sw';const _0x3546ea=function(_0x1cdce4,_0x1904c4){const _0x35c5f9=function(_0x58b8ca,_0x59f984){const _0x120c11=_0x58b8ca[_0x4c4f('0x0')],_0x2a923d={'Compare\x20against\x20selected':_0x113019(_0x120c11,_0x4c4f('0x7')),'Name\x20this\x20revision':_0x113019(_0x120c11,_0x4c4f('0x4')),'Restore\x20this\x20revision':_0x113019(_0x120c11,_0x4c4f('0x19'))};return _0x59f984['map'](_0x5f16b0=>{const _0x5cca7=_0x2a923d[_0x5f16b0[_0x4c4f('0x1c')]];return _0x5cca7&&_0x5cca7!==_0x5f16b0['name']&&(_0x5f16b0[_0x4c4f('0x1c')]=_0x5cca7),_0x5f16b0;});}(_0x1cdce4,_0x1904c4),_0x40c5b8=new _0x36e9a8();for(const _0x11caa4 of _0x35c5f9){const _0x44455a={'type':'button','model':new _0x2ad55e({'label':_0x11caa4['name'],'class':_0x11caa4[_0x4c4f('0x17')],'withText':!0x0,'_action':_0x11caa4['action']})};_0x44455a[_0x4c4f('0xe')][_0x4c4f('0x9')](_0x4c4f('0xb'))['to'](_0x1cdce4,_0x4c4f('0x5'),_0x2a04bf=>_0x4c4f('0x15')!=typeof _0x11caa4[_0x4c4f('0xb')]||(!_0x2a04bf||_0x11caa4[_0x4c4f('0xb')](_0x1cdce4))),_0x40c5b8[_0x4c4f('0x18')](_0x44455a);}return _0x40c5b8;}(_0x5e4236,_0x9305c8);return _0x5e4236[_0x4c4f('0x9')](_0x4c4f('0x5'))['to'](_0x17dc58,'isOpen'),_0x17dc58[_0x4c4f('0xa')][_0x4c4f('0x13')]({'label':_0x113019(_0x45b36a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x246c8b[_0x4c4f('0xf')]}),_0x17dc58[_0x4c4f('0x11')]({'attributes':{'class':[_0x4c4f('0x2'),_0x4ccf8a['if'](_0x4c4f('0x5'),_0x4c4f('0x8'))]},'on':{'click':_0x4ccf8a['to'](_0x13aec8=>_0x13aec8[_0x4c4f('0xc')]())}}),_0x17dc58['on'](_0x4c4f('0x1b'),_0x35a34c=>{_0x5e4236['isReady']&&'function'==typeof _0x35a34c['source']['_action']&&_0x35a34c[_0x4c4f('0x12')][_0x4c4f('0x10')](_0x5e4236);}),_0x51ff91(_0x17dc58,_0x3546ea),_0x17dc58['listenTo'](_0x5e4236,_0x4c4f('0x14'),(_0x305e48,_0x2fff98,_0x5a1150)=>{if(_0x5a1150)for(const _0x1df98f of _0x17dc58['listView'][_0x4c4f('0x3')]){const _0x2f9ec9=_0x1df98f[_0x4c4f('0xd')][_0x4c4f('0x1')],_0x1893b1=_0x9305c8[_0x4c4f('0x1a')](_0x3a0cd7=>_0x3a0cd7['action']===_0x2f9ec9[_0x4c4f('0x10')])[_0x4c4f('0x16')];_0x1df98f[_0x4c4f('0x16')]=void 0x0===_0x1893b1||_0x1893b1(_0x5e4236);}}),_0x17dc58;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2166=['ck-revision-history-sidebar__revision-author_creator','0\x200\x2011\x2010','name','Revision\x20author','ck-revision-history-sidebar__revision-author','Revision\x20creator'];(function(_0x353a63,_0x2166f3){const _0x57ae94=function(_0x28de64){while(--_0x28de64){_0x353a63['push'](_0x353a63['shift']());}};_0x57ae94(++_0x2166f3);}(_0x2166,0x143));const _0x57ae=function(_0x353a63,_0x2166f3){_0x353a63=_0x353a63-0x0;let _0x57ae94=_0x2166[_0x353a63];return _0x57ae94;};import{View as _0x5b0fc8,IconView as _0x5880d5}from'ckeditor5/src/ui';import{getTranslation as _0xa3d241}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4ade5c from'../../../theme/icons/user.svg';export default class ti extends _0x5b0fc8{constructor(_0x1404a1,_0x30f77e,_0x83e631){super(_0x1404a1);const _0x14430f=new _0x5880d5();_0x14430f['set']({'content':_0x4ade5c,'viewBox':_0x57ae('0x2')});const _0x1d525b=['ck',_0x57ae('0x5')];_0x83e631&&_0x1d525b['push'](_0x57ae('0x1'));const _0x59ada0=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0xa3d241(_0x1404a1,_0x83e631?_0x57ae('0x0'):_0x57ae('0x4'))},'children':[_0x14430f,_0x30f77e[_0x57ae('0x3')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1d525b},'children':_0x59ada0});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3c48=['extendTemplate','set','span'];(function(_0x4f64ff,_0x3c4891){var _0x118ef5=function(_0x12e4ea){while(--_0x12e4ea){_0x4f64ff['push'](_0x4f64ff['shift']());}};_0x118ef5(++_0x3c4891);}(_0x3c48,0x1b1));var _0x118e=function(_0x4f64ff,_0x3c4891){_0x4f64ff=_0x4f64ff-0x0;var _0x118ef5=_0x3c48[_0x4f64ff];return _0x118ef5;};import{LabeledFieldView as _0x55d446}from'ckeditor5/src/ui';import{getTranslation as _0x3ca788}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x55d446{constructor(_0x41e616,_0xe416d4){super(_0x41e616,_0xe416d4),this[_0x118e('0x0')]({'label':_0x3ca788(_0x41e616,'Revision\x20name')}),this[_0x118e('0x2')]({'tag':_0x118e('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25dd=['setName','div','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isEnabled','ck-revision-history-sidebar__revision__controls-wrapper','isHighlighted','bind','uiLanguage','setTemplate','ck-disabled','ck-revision-history-sidebar__revision_highlighted','filter','listenTo','isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision__date','change','.ck-thread__remove-confirm','isConfirm','isSelected','select','revisionNameView','name','ck-revision-history-sidebar__revision','isReady','createdAt','creator','map','srcElement','ck-revision-history-sidebar__revision-authors','length','unshift','from','220','render','revisionActionsView','fieldView','deselect','authors','element','value','set','bindTemplate','ck-revision-history-sidebar__revision_selected','highlight','ck-reset','_createdAtFormatted'];(function(_0x27d699,_0x25ddf5){const _0x522661=function(_0x54d09c){while(--_0x54d09c){_0x27d699['push'](_0x27d699['shift']());}};_0x522661(++_0x25ddf5);}(_0x25dd,0x10b));const _0x5226=function(_0x27d699,_0x25ddf5){_0x27d699=_0x27d699-0x0;let _0x522661=_0x25dd[_0x27d699];return _0x522661;};import{View as _0x6f49a4,createLabeledInputText as _0x5dcbe3}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4174c2}from'ckeditor5-collaboration/src/collaboration-core';import _0x4f30fd from'./revisionnameview';import _0x9a7d9a from'./revisionauthorview';import{dateToPrettyFormat as _0x2a11a1}from'./utils';import{createActionsDropdownView as _0x5adf9e}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4174c2(_0x6f49a4){constructor(_0x93b9b,_0x266d8a,_0x16905d){super(_0x93b9b);const _0x2f0959=this[_0x5226('0xa')],_0x1c1913=function(_0x4dacd6,_0x26e2bb){const _0xeae13c=Array[_0x5226('0x0')](_0x26e2bb[_0x5226('0x6')])[_0x5226('0x1a')](_0x3ec3ed=>_0x3ec3ed!=_0x26e2bb[_0x5226('0x29')]);return _0x26e2bb['creator']&&_0xeae13c[_0x5226('0x2e')](_0x26e2bb[_0x5226('0x29')]),_0xeae13c[_0x5226('0x2a')](_0x210ec1=>new _0x9a7d9a(_0x4dacd6,_0x210ec1,_0x210ec1==_0x26e2bb['creator']));}(_0x93b9b,_0x266d8a);this['id']=_0x266d8a['id'],this['_revision']=_0x266d8a,this[_0x5226('0x15')](_0x5226('0x25'),_0x5226('0x28'))['to'](_0x266d8a),this[_0x5226('0x15')](_0x5226('0xe'))['to'](this,_0x5226('0x28'),_0x5c3336=>_0x5c3336?_0x2a11a1(_0x93b9b[_0x5226('0x16')],_0x5c3336):void 0x0),this['set'](_0x5226('0x22'),!0x1),this['set'](_0x5226('0x14'),!0x1),this[_0x5226('0x9')](_0x5226('0x1c'),!0x1),this[_0x5226('0x9')](_0x5226('0x27'),!0x1),this['set']('isEnabled',!0x1),this[_0x5226('0x24')]=new _0x4f30fd(_0x93b9b,_0x5dcbe3),this[_0x5226('0x24')][_0x5226('0x4')]['extendTemplate']({'attributes':{'maxlength':_0x5226('0x1')}}),this[_0x5226('0x24')][_0x5226('0x4')]['bind'](_0x5226('0x8'),'placeholder')['to'](this,_0x5226('0x25'),_0x5226('0xe')),this['revisionNameView'][_0x5226('0x15')]('isEnabled')['to'](this,_0x5226('0x22'),this,_0x5226('0x12'),(_0x1cddee,_0x334574)=>_0x1cddee&&_0x334574),this[_0x5226('0x3')]=_0x16905d&&_0x16905d[_0x5226('0x2d')]?_0x5adf9e(this,_0x16905d):'',this[_0x5226('0x3')]&&this['revisionActionsView'][_0x5226('0x15')](_0x5226('0x12'))['to'](this),this[_0x5226('0x17')]({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2f0959['if'](_0x5226('0x21'),_0x5226('0x11'))]},'children':[{'tag':_0x5226('0x10'),'attributes':{'class':['ck',_0x5226('0xd'),_0x5226('0x26'),_0x2f0959['if']('isEnabled',_0x5226('0x18'),_0x41d9aa=>!_0x41d9aa),_0x2f0959['if'](_0x5226('0x22'),_0x5226('0xb')),_0x2f0959['if'](_0x5226('0x14'),_0x5226('0x19')),_0x2f0959['if']('isActionsDropdownOpen',_0x5226('0x1d'))]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck',_0x5226('0x1e')]},'children':[{'text':_0x2f0959['to']('_createdAtFormatted')}]},{'tag':_0x5226('0x10'),'attributes':{'class':['ck',_0x5226('0x13')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5226('0x2c')]},'children':_0x1c1913}]},this[_0x5226('0x3')]],'on':{'click':_0x2f0959['to'](_0x29a0ac=>{_0x29a0ac[_0x5226('0x2b')]['closest'](_0x5226('0x20'))||this[_0x5226('0x27')]&&this[_0x5226('0x12')]&&this['fire'](_0x5226('0x23'),{'id':this['id']});})}}]});}[_0x5226('0x2')](){super[_0x5226('0x2')]();const _0x39ef29=this[_0x5226('0x24')]['fieldView'][_0x5226('0x7')];this[_0x5226('0x1b')](_0x39ef29,_0x5226('0x1f'),()=>{this['fire'](_0x5226('0xf'),{'id':this['id'],'name':_0x39ef29[_0x5226('0x8')]});});}[_0x5226('0x23')](){this[_0x5226('0x22')]=!0x0;}[_0x5226('0x5')](){this[_0x5226('0x22')]=!0x1;}[_0x5226('0xc')](){this[_0x5226('0x14')]=!0x0;}['unhighlight'](){this[_0x5226('0x14')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd60b=['click','toggle','ck-hidden','button','true','ck-revision-history-sidebar__subrevision-collapser','isVisible','bindTemplate','set','_isCollapsed','setTemplate','span'];(function(_0x198be7,_0xd60ba4){const _0x452460=function(_0x3df2ab){while(--_0x3df2ab){_0x198be7['push'](_0x198be7['shift']());}};_0x452460(++_0xd60ba4);}(_0xd60b,0xcf));const _0x4524=function(_0x198be7,_0xd60ba4){_0x198be7=_0x198be7-0x0;let _0x452460=_0xd60b[_0x198be7];return _0x452460;};import{View as _0xc0d9c7}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0xc0d9c7{constructor(_0x4fe870){super(_0x4fe870);const _0x3ca660=this[_0x4524('0x4')];this[_0x4524('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x4524('0x7')]({'tag':_0x4524('0x8'),'attributes':{'class':['ck',_0x4524('0x2'),_0x3ca660['if'](_0x4524('0x3'),_0x4524('0xb'),_0x106a24=>!_0x106a24),_0x3ca660['if'](_0x4524('0x6'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x4524('0x0'),'aria-pressed':_0x3ca660['to']('_isCollapsed',_0xc4d4b3=>_0xc4d4b3?'false':_0x4524('0x1'))},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x3ca660['to'](_0x4524('0x9'))}});}[_0x4524('0xa')](){this['_isCollapsed']=!this[_0x4524('0x6')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10c5=['set','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__subrevision','_createdAtFormatted','select','div','ck-revision-history-sidebar__revision__date','bindTemplate','ck-revision-history-sidebar__revision','deselect','uiLanguage','bind','_parentRevisionId','isSelected','createdAt','span'];(function(_0x1ab63d,_0x10c525){const _0x264e5c=function(_0x5910b0){while(--_0x5910b0){_0x1ab63d['push'](_0x1ab63d['shift']());}};_0x264e5c(++_0x10c525);}(_0x10c5,0xd4));const _0x264e=function(_0x1ab63d,_0x10c525){_0x1ab63d=_0x1ab63d-0x0;let _0x264e5c=_0x10c5[_0x1ab63d];return _0x264e5c;};import{View as _0x392382}from'ckeditor5/src/ui';import _0x9504b4 from'./revisionauthorview';import{dateToPrettyFormat as _0x3aac70}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x392382{constructor(_0xfb0579,_0x1a1fe5,_0x1934c1){super(_0xfb0579);const _0x4df9cd=this[_0x264e('0x3')];this['id']=_0x1a1fe5['id'],this[_0x264e('0x7')](_0x264e('0xa'))['to'](_0x1a1fe5),this[_0x264e('0xc')](_0x264e('0x9'),!0x1),this[_0x264e('0x7')](_0x264e('0xf'))['to'](this,_0x264e('0xa'),_0x49c87e=>_0x49c87e?_0x3aac70(_0xfb0579[_0x264e('0x6')],_0x49c87e):void 0x0),this[_0x264e('0x8')]=_0x1934c1,this['setTemplate']({'tag':_0x264e('0x1'),'attributes':{'class':['ck','ck-reset',_0x264e('0x4'),_0x264e('0xe'),_0x4df9cd['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x264e('0xb'),'attributes':{'class':['ck',_0x264e('0x2')]},'children':[{'text':_0x4df9cd['to'](_0x264e('0xf'))}]},{'tag':'ul','attributes':{'class':['ck',_0x264e('0xd')]},'children':[new _0x9504b4(_0xfb0579,_0x1a1fe5['creator'],!0x0)]}],'on':{'click':_0x4df9cd['to'](this[_0x264e('0x0')][_0x264e('0x7')](this))}});}['select'](){this[_0x264e('0x9')]=!0x0,this['fire'](_0x264e('0x0'),{'parentId':this[_0x264e('0x8')]});}[_0x264e('0x5')](){this[_0x264e('0x9')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xf427=['numeric','toLocaleTimeString','long'];(function(_0x3792d8,_0xf4276c){var _0x34f10e=function(_0x4011fc){while(--_0x4011fc){_0x3792d8['push'](_0x3792d8['shift']());}};_0x34f10e(++_0xf4276c);}(_0xf427,0x14d));var _0x34f1=function(_0x3792d8,_0xf4276c){_0x3792d8=_0x3792d8-0x0;var _0x34f10e=_0xf427[_0x3792d8];return _0x34f10e;};export function dateToPrettyFormat(_0x442ae6,_0x295ea6){return _0x295ea6['toLocaleDateString'](_0x442ae6,{'month':_0x34f1('0x2'),'day':_0x34f1('0x0')})+',\x20'+_0x295ea6[_0x34f1('0x1')](_0x442ae6,{'hour':_0x34f1('0x0'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32f6=['render','Name\x20of\x20the\x20revision\x20(optional)','arrowleft','ck-responsive-form','trim','arrowup','set','element','_focusables','add','label','_createRevisionNameInput','arrowdown','type','Save','forEach','ck-revision-history-save-revision-form','revisionNameInputValue','form','saveButtonView','keystrokes','cancelButtonView','_focusCycler','shift\x20+\x20tab','revisionName','fieldView','focusTracker','input','check','focus','submit','value','tab','execute','focusFirst','revisionNameInputView','220','_createButton','arrowright','extendTemplate','delegate','locale','cancel'];(function(_0x2e0b07,_0x32f649){const _0x26b148=function(_0x54d4c0){while(--_0x54d4c0){_0x2e0b07['push'](_0x2e0b07['shift']());}};_0x26b148(++_0x32f649);}(_0x32f6,0x125));const _0x26b1=function(_0x2e0b07,_0x32f649){_0x2e0b07=_0x2e0b07-0x0;let _0x26b148=_0x32f6[_0x2e0b07];return _0x26b148;};import{icons as _0x4a3f41}from'ckeditor5/src/core';import{ButtonView as _0x156937,FocusCycler as _0x14bcf2,LabeledFieldView as _0x43941c,View as _0x2f2bd6,ViewCollection as _0x4aaa4d,createLabeledInputText as _0x1a320c,injectCssTransitionDisabler as _0x5d1d51,submitHandler as _0x338104}from'ckeditor5/src/ui';import{FocusTracker as _0x3ff612,KeystrokeHandler as _0x2714e1}from'ckeditor5/src/utils';import{getTranslation as _0x2d21ee}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class wt extends _0x2f2bd6{constructor(_0x1dc2e7){super(_0x1dc2e7),this['focusTracker']=new _0x3ff612(),this[_0x26b1('0x1c')]=new _0x2714e1(),this['set'](_0x26b1('0x19'),''),this[_0x26b1('0x0')]=this[_0x26b1('0x13')](),this[_0x26b1('0x1b')]=this[_0x26b1('0x2')](_0x2d21ee(_0x1dc2e7,_0x26b1('0x16')),_0x4a3f41[_0x26b1('0x24')],'ck-button-save'),this[_0x26b1('0x1b')][_0x26b1('0x15')]=_0x26b1('0x26'),this[_0x26b1('0x1d')]=this[_0x26b1('0x2')](_0x2d21ee(_0x1dc2e7,'Cancel'),_0x4a3f41['cancel'],'ck-button-cancel',_0x26b1('0x7')),this[_0x26b1('0x10')]=new _0x4aaa4d(),this[_0x26b1('0x1e')]=new _0x14bcf2({'focusables':this[_0x26b1('0x10')],'focusTracker':this[_0x26b1('0x22')],'keystrokeHandler':this[_0x26b1('0x1c')],'actions':{'focusPrevious':_0x26b1('0x1f'),'focusNext':_0x26b1('0x28')}}),this['setTemplate']({'tag':_0x26b1('0x1a'),'attributes':{'class':['ck',_0x26b1('0x18'),_0x26b1('0xb')],'tabindex':'-1'},'children':[this[_0x26b1('0x0')],this[_0x26b1('0x1b')],this['cancelButtonView']]}),_0x5d1d51(this);}[_0x26b1('0x8')](){super['render'](),_0x338104({'view':this}),([this[_0x26b1('0x0')],this[_0x26b1('0x1b')],this['cancelButtonView']][_0x26b1('0x17')](_0x378c3d=>{this[_0x26b1('0x10')][_0x26b1('0x11')](_0x378c3d),this[_0x26b1('0x22')][_0x26b1('0x11')](_0x378c3d['element']);}),this[_0x26b1('0x1c')]['listenTo'](this['element']));const _0xd0e72a=_0x23a8b6=>_0x23a8b6['stopPropagation']();this[_0x26b1('0x1c')]['set'](_0x26b1('0x3'),_0xd0e72a),this[_0x26b1('0x1c')][_0x26b1('0xe')](_0x26b1('0xa'),_0xd0e72a),this[_0x26b1('0x1c')][_0x26b1('0xe')](_0x26b1('0xd'),_0xd0e72a),this[_0x26b1('0x1c')][_0x26b1('0xe')](_0x26b1('0x14'),_0xd0e72a);}[_0x26b1('0x25')](){this[_0x26b1('0x1e')][_0x26b1('0x2a')]();}get[_0x26b1('0x20')](){return this[_0x26b1('0x0')][_0x26b1('0x21')]['element'][_0x26b1('0x27')]['trim']();}set[_0x26b1('0x20')](_0x24eb00){this[_0x26b1('0x0')][_0x26b1('0x21')]['element'][_0x26b1('0x27')]=_0x24eb00[_0x26b1('0xc')]();}['reset'](){this[_0x26b1('0x0')]['fieldView']['element'][_0x26b1('0x27')]='';}[_0x26b1('0x13')](){const _0x2d4bdb=new _0x43941c(this[_0x26b1('0x6')],_0x1a320c),_0x27e3e8=_0x2d4bdb[_0x26b1('0x21')];return _0x27e3e8[_0x26b1('0x4')]({'attributes':{'maxlength':_0x26b1('0x1')}}),_0x2d4bdb[_0x26b1('0x12')]=_0x2d21ee(this[_0x26b1('0x6')],_0x26b1('0x9')),_0x27e3e8['on'](_0x26b1('0x23'),()=>{this[_0x26b1('0x19')]=_0x27e3e8[_0x26b1('0xf')][_0x26b1('0x27')]['trim']();}),_0x2d4bdb;}[_0x26b1('0x2')](_0x735b24,_0x24c1e3,_0x3dcddf,_0x4d361f){const _0x366883=new _0x156937(this[_0x26b1('0x6')]);return _0x366883['set']({'label':_0x735b24,'icon':_0x24c1e3,'tooltip':!0x0}),_0x366883[_0x26b1('0x4')]({'attributes':{'class':_0x3dcddf}}),_0x4d361f&&_0x366883[_0x26b1('0x5')](_0x26b1('0x29'))['to'](this,_0x4d361f),_0x366883;}}
|