@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230719.0 → 0.0.0-nightly-20230721.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +8 -8
- 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 _0x24b1=['ck-revision-history-root-','revision-end','target','pluginName','high','low','revision-comment:','editingDowncast','getAttribute','consume','getAttributes','getClientRects','removeMarker','vid_end','isLimit','createPositionFromPath','isOnRoot','length','type','domConverter','concat','POSITIVE_INFINITY','revision-viewer','modelRange','data','get','revision-start','markerName','marked','getRoot','includes','hasAttribute','attachChange','insertions','isCollapsed','change','toViewPosition','_removeMissingPairs','_step','distance','text','_refreshStartEndIndex','sort','startsWith','top','getRevisionRootsAttributes','forceDisabled','test','editing','getDomRoot','showPreviousChange','first','deletions','addMarker:revision','_changeIdToChange','previousPosition','_cleanMarkers','start','set','isEqual','createRangeIn','createUIElement','markerToHighlight','_removeUnsupportedChanges','return','add','side','pop','nextPosition','createRevision','_markInsertions','affectsData','getRevisionData','model','isAttached','oldRevisionId','isRemoved','children','-new','reconvertMarker','rootName','isBefore','currentChangeNumber','wrap','error','revisionHistoryLabel','markersStart','getCustomProperty','uiElement','diff','markers','viewItem','toViewElement','conversion','for','_makeTape','ck-revision-history-root-add','code','ck-editor__editable__overlay','values','refresh','shift','string','showNextChange','useFillerType','detachRoot','comment','_getChangeFromId','WidgetToolbarRepository','domEvent','_joinTapes','_balloon','hasClass','attributesBefore','attribute:vid','revision-suggestion:','isContent','_changeView','userId','endIndex','diffData','index','elementToAttribute','numberOfChanges','level','ck-suggestion-preview-marker','offsetSize','plugins','authors','nodeAfter','remove','vid_start','getWalker','default','isAddSuggestion','delete','addRevisionData','_setDistance','downcastDispatcher','enqueueChange','flat','addRevision','map','pairId','unbindElementFromMarkerName','revision-suggestion','destroy','attributesAfter','_cleanUp','insert','backward','item','_revisions','ck-suggestion-marker','change:isReady','isAtEnd','deletion','isSuggestion','setAttribute','getRootNames','config','changeId','indexOf','_sortAndFilterDiffChanges','keys','writer','getRevision','_getViewObj','RevisionViewer','split','vid','_appendChild','_makeModelFromViewString','toModel','activeView','mapViewToDom','next','_getViewForChange','view','element','highest','_threeWayMerge','mapper','isBlock','compare','find','addMarker:revision-suggestion:insertion','has','_markMismatchedRemovedTags','enableReadOnlyMode','_activeViewTarget','_removeRevisionMarkers','createRange','markerToData','data-change-id','adapter','abs','addClass','upcast','isAfter','checkAttribute','change:numberOfChanges','newRevisionId','bind','isIncorrect','startIndex','isInline','revisionHistory','mousedown','forEach','isObject','roots','stop','_initInteractions','_getRevisionsRange','_setChanges','editor','selection','restoreRevisionCallback','_markMarkers','nextSibling','removeMarker:revision','right','schema','_fixObsoleteTags','activeChange','isEnabled','createAttributeElement','repository','getItems','revisionHistoryAttachChange','insertion','name','ck-suggestion-preview-marker-','requires','removeClass','object','_processTape','unshift','filter','consumable','revision:','markerNameToElements','span','loadRevisionData','execute','collaboration.channelId','listenTo','splice','change:isEnabled','_makeModelFromTape','isRemoveSuggestion','processor','changes','slice','_update','bindElementToMarker','push','_findChangeIdFromDomTarget','dataDowncast','mouseover','change:activeChange','from','getIndex','resolve','observeMarkers','isAdded','isReady','attributes','parse','ck-suggestion-marker--active','markerRange','all','merge','commands','data-revision-','parent','elementStart','toData','ck-revision-history-root--active','elementEnd','maxOffset','then','document','end','change:activeView','revision','markersEnd','ck-suggestion-marker-'];(function(_0x34bd23,_0x24b159){const _0x955d31=function(_0x4672f4){while(--_0x4672f4){_0x34bd23['push'](_0x34bd23['shift']());}};_0x955d31(++_0x24b159);}(_0x24b1,0x141));const _0x955d=function(_0x34bd23,_0x24b159){_0x34bd23=_0x34bd23-0x0;let _0x955d31=_0x24b1[_0x34bd23];return _0x955d31;};import{Plugin as _0x30bbb6,Command as _0x40e8f6}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4f7207}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4c9373}from'ckeditor5/src/ui';import{DocumentFragment as _0x1c9551,Element as _0x3fb6e8,Text as _0x1229bd,ViewDocumentFragment as _0x17ee6a,ViewText as _0x2c8d05,ViewElement as _0x6d6fcb,ViewContainerElement as _0x2d3cd4,ViewAttributeElement as _0x59bfd7,ViewEmptyElement as _0x2c1f6d,ViewRawElement as _0x4eaaa8,ViewUIElement as _0x41cda7}from'ckeditor5/src/engine';import{Users as _0x220383,getMarkerDomElement as _0x23587b}from'ckeditor5-collaboration/src/collaboration-core';import _0x96686b from'./ui/revisionviewer/changedetailsview';import _0x481b18 from'./revisionsrepository';import _0xd6b060 from'./changeitem';import{default as _0x2faa77}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x467aae}from'lodash-es';const tt={'c':_0x2d3cd4,'a':_0x59bfd7,'e':_0x2c1f6d,'r':_0x4eaaa8,'u':_0x41cda7};export default class d extends _0x30bbb6{static get[_0x955d('0x104')](){return _0x955d('0x88');}static get[_0x955d('0xca')](){return[_0x220383,_0x4c9373,_0x481b18];}constructor(_0x10e790){super(_0x10e790),this[_0x955d('0xc4')]=this[_0x955d('0xb8')][_0x955d('0x5f')]['get']('RevisionsRepository'),this['set'](_0x955d('0xc1'),null),this[_0x955d('0x1a')]('activeView',null),this[_0x955d('0x9e')]=null,this[_0x955d('0x1a')](_0x955d('0x39'),null),this['set'](_0x955d('0xeb'),!0x1),this[_0x955d('0x1a')](_0x955d('0xc2'),!0x0),this['on'](_0x955d('0xd9'),(_0x1be278,_0x282a21,_0xc77665)=>{this[_0x955d('0xc1')]=null,this[_0x955d('0x8e')]=null,this[_0x955d('0xb8')]['editing'][_0x955d('0x92')][_0x955d('0x3')](_0x96abe4=>{for(const _0x24e526 of this[_0x955d('0xb8')][_0x955d('0x10')][_0x955d('0x92')][_0x955d('0xfb')][_0x955d('0xb3')])_0xc77665?_0x96abe4['removeClass'](_0x955d('0x42'),_0x24e526):_0x96abe4[_0x955d('0xa5')]('ck-editor__editable__overlay',_0x24e526);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x147df2=>null!==_0x147df2),this['bind'](_0x955d('0x32'))['to'](this,_0x955d('0xeb'),this,'diff',this,_0x955d('0xc1'),(_0x51e827,_0x3ffdd3,_0x27389c)=>_0x51e827&&_0x27389c?_0x3ffdd3[_0x955d('0xdd')]['getIndex'](_0x27389c):0x0),this[_0x955d('0xab')](_0x955d('0x5b'))['to'](this,_0x955d('0xeb'),this,_0x955d('0x39'),(_0x53d4d0,_0x52f037)=>_0x53d4d0?_0x52f037[_0x955d('0xdd')]['length']:0x0),this[_0x955d('0x55')]=null,this[_0x955d('0x16')]=new Map(),this[_0x955d('0xa3')]=null,this[_0x955d('0x4f')]=this[_0x955d('0xb8')]['plugins'][_0x955d('0x11a')](_0x4c9373);}['init'](){const _0x1670af=this[_0x955d('0xb8')],_0x56a0f4=new ShowChangeCommand(_0x1670af,{'direction':_0x955d('0x76')}),_0x10cade=new ShowChangeCommand(_0x1670af,{'direction':'forward'});(_0x1670af[_0x955d('0xf2')][_0x955d('0x21')](_0x955d('0x12'),_0x56a0f4),_0x1670af['commands'][_0x955d('0x21')](_0x955d('0x47'),_0x10cade),_0x1670af['commands'][_0x955d('0x21')]('restoreRevision',new RestoreRevisionCommand(_0x1670af)),this['on'](_0x955d('0xa9'),()=>{_0x56a0f4['refresh'](),_0x10cade['refresh']();}),this['_setConversion'](),this[_0x955d('0xb5')](),_0x1670af[_0x955d('0x9d')](_0x955d('0x117')),_0x1670af[_0x955d('0x5f')][_0x955d('0x9b')](_0x955d('0x4c')))&&_0x1670af['plugins'][_0x955d('0x11a')](_0x955d('0x4c'))[_0x955d('0xe')](_0x955d('0x117'));}async[_0x955d('0x28')](_0x296135){await this['loadRevisionData'](_0x296135);const _0x15a663={};for(const _0x26f97c in _0x296135[_0x955d('0x58')]){if(_0x296135[_0x955d('0x58')][_0x26f97c]['attachChange']&&!_0x296135[_0x955d('0x58')][_0x26f97c][_0x955d('0x0')]['isAttached'])continue;const _0x589c9d=this[_0x955d('0x9f')](JSON['parse'](_0x296135[_0x955d('0x58')][_0x26f97c][_0x955d('0x1')])),_0x246c30=this['editor'][_0x955d('0x10')][_0x955d('0x92')][_0x955d('0xfb')],_0x543d94=new _0x17ee6a(_0x246c30,_0x589c9d['map'](_0x5db584=>this['_getViewObj'](_0x5db584)));this[_0x955d('0xb8')]['data'][_0x955d('0xdc')][_0x955d('0x48')](_0x955d('0x11d')),_0x15a663[_0x26f97c]=this[_0x955d('0xb8')][_0x955d('0x119')][_0x955d('0xdc')][_0x955d('0xf6')](_0x543d94),this[_0x955d('0xb8')][_0x955d('0x119')][_0x955d('0xdc')]['useFillerType'](_0x955d('0x65'));}return _0x15a663;}async[_0x955d('0xd')](_0x5988be){await this[_0x955d('0xd4')](_0x5988be);const _0x2ffca5={};for(const _0x58aa0b in _0x5988be[_0x955d('0x58')])_0x5988be[_0x955d('0x58')][_0x58aa0b][_0x955d('0x0')]&&!_0x5988be[_0x955d('0x58')][_0x58aa0b]['attachChange']['isAttached']||(_0x2ffca5[_0x58aa0b]=_0x5988be[_0x955d('0x58')][_0x58aa0b][_0x955d('0x73')]||{});return _0x2ffca5;}[_0x955d('0x9f')](_0x54ddbf){return(_0x54ddbf=_0x54ddbf[_0x955d('0xcf')](_0x358029=>!_0x358029[_0x955d('0xc8')]||_0x955d('0x11b')!==_0x358029['name']&&_0x955d('0x102')!==_0x358029[_0x955d('0xc8')]))['forEach'](_0x2384ce=>{_0x955d('0x46')!=typeof _0x2384ce&&(_0x2384ce[_0x955d('0x2d')]=this['_removeRevisionMarkers'](_0x2384ce[_0x955d('0x2d')]),_0x2384ce[_0x955d('0xec')]=_0x2384ce[_0x955d('0xec')][_0x955d('0xcf')](_0x4c4472=>!_0x4c4472[0x0][_0x955d('0xb')](_0x955d('0xf3'))));}),_0x54ddbf;}async[_0x955d('0x98')](_0x3ceb59,_0x33d262,_0x2d2fab=!0x1){if(!this[_0x955d('0xc2')])return;const _0x18cd65=this[_0x955d('0x39')],_0x56e7c1=this[_0x955d('0xc4')],_0x5c723f=_0x955d('0x46')==typeof _0x3ceb59?_0x56e7c1[_0x955d('0x86')](_0x3ceb59):_0x3ceb59,_0x35ebb8=_0x955d('0x46')==typeof _0x33d262?_0x56e7c1['getRevision'](_0x33d262):_0x33d262,_0x4e8a7c=_0x5c723f['id'],_0x4af2cc=_0x35ebb8?_0x35ebb8['id']:null;if(!_0x2d2fab&&this[_0x955d('0x39')]&&this['diff'][_0x955d('0xaa')]===_0x4e8a7c&&this['diff'][_0x955d('0x2b')]===_0x4af2cc)return Promise[_0x955d('0xe8')]();this[_0x955d('0xeb')]=!0x1,this[_0x955d('0x8e')]=null,this[_0x955d('0xc1')]=null,this['diff']=new _0x2faa77(_0x4e8a7c,_0x4af2cc);const _0x27ac4a=this[_0x955d('0xb6')](_0x5c723f,_0x35ebb8,!0x0)['map'](_0x2342dd=>this[_0x955d('0xd4')](_0x2342dd));return _0x27ac4a[_0x955d('0xe1')](new Promise(_0x56e5f5=>{setTimeout(_0x56e5f5,0x14);})),Promise[_0x955d('0xf0')](_0x27ac4a)['then'](()=>{if(!this[_0x955d('0xc2')])return;this[_0x955d('0x74')]();const _0x4a0b5d=this['_getDiff'](_0x4e8a7c,_0x4af2cc);for(const _0xed79af of _0x4a0b5d['changes'])this[_0x955d('0x16')][_0x955d('0x1a')](_0xed79af['id'],_0xed79af);this[_0x955d('0xb8')][_0x955d('0x29')][_0x955d('0x6b')]({'isUndoable':!0x1},_0x3e9abc=>{for(const _0x4ef8c7 of this[_0x955d('0xb8')][_0x955d('0x29')]['document'][_0x955d('0x7f')]())_0x3e9abc[_0x955d('0x49')](_0x4ef8c7);for(const _0x3c070c of Object['keys'](_0x4a0b5d['model'])){const _0x53d922=_0x3e9abc['addRoot'](_0x3c070c);for(const _0x263417 of Object[_0x955d('0x84')](_0x4a0b5d[_0x955d('0xec')][_0x3c070c]))_0x3e9abc[_0x955d('0x7e')](_0x263417,_0x4a0b5d[_0x955d('0xec')][_0x3c070c][_0x263417],_0x53d922);_0x3e9abc['insert'](_0x4a0b5d['model'][_0x3c070c],_0x53d922,0x0);}}),this['diff'][_0x955d('0xb7')](this[_0x955d('0x83')](_0x4a0b5d[_0x955d('0xdd')])),this[_0x955d('0xeb')]=!0x0;})['catch'](_0x3569ac=>{console[_0x955d('0x34')](_0x3569ac),this[_0x955d('0x74')](),_0x18cd65&&(this[_0x955d('0x39')]=_0x18cd65),this[_0x955d('0xeb')]=!0x0;});}[_0x955d('0x68')](_0x4595a4,_0x235f8c){const _0x197f3f=this[_0x955d('0xc4')][_0x955d('0x25')](_0x4595a4);return _0x197f3f['on'](_0x955d('0xdf'),(_0x2a8efb,_0x190bd9,_0x2f7979)=>_0x235f8c(_0x190bd9,_0x2f7979,_0x197f3f)),this['repository'][_0x955d('0x6d')](_0x197f3f),_0x197f3f;}[_0x955d('0xd4')](_0x1612ef){if(!_0x1612ef||_0x1612ef[_0x955d('0x58')])return Promise[_0x955d('0xe8')]();{const _0x20a17b=this[_0x955d('0xb8')][_0x955d('0x80')][_0x955d('0x11a')](_0x955d('0xd6'));return this[_0x955d('0xa3')][_0x955d('0x86')]({'channelId':_0x20a17b,'revisionId':_0x1612ef['id']})[_0x955d('0xfa')](_0x1a049f=>{_0x1612ef['_update']({'diffData':_0x1a049f[_0x955d('0x58')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x955d('0x55')]&&this['_changeView'][_0x955d('0x72')](),this[_0x955d('0x55')]=null,this[_0x955d('0x16')]['clear'](),this[_0x955d('0xb8')][_0x955d('0x29')][_0x955d('0x6b')]({'isUndoable':!0x1},_0x7b1518=>{for(const _0x25ce94 of this[_0x955d('0xb8')][_0x955d('0x29')][_0x955d('0xfb')]['getRootNames']())_0x7b1518[_0x955d('0x49')](_0x25ce94);});}[_0x955d('0x83')](_0x2b264c){const _0x288860=[],_0x491e14=new Map();for(const _0x2dd5ba of this[_0x955d('0xb8')][_0x955d('0x29')][_0x955d('0xfb')][_0x955d('0x7f')]()){const _0x493d7a=this[_0x955d('0xb8')][_0x955d('0x10')]['view'][_0x955d('0x11')](_0x2dd5ba);if(!_0x493d7a)continue;const _0x221ca3=_0x493d7a['getClientRects']()[_0x955d('0x77')](0x0);_0x221ca3&&(_0x288860['push'](_0x2dd5ba),_0x491e14[_0x955d('0x1a')](_0x2dd5ba,_0x221ca3));}return _0x288860[_0x955d('0xa')]((_0x12fe92,_0x44fa0c)=>{const _0x43d798=_0x491e14[_0x955d('0x11a')](_0x12fe92),_0x4ebc7a=_0x491e14['get'](_0x44fa0c);return _0x43d798['y']-_0x4ebc7a['y']||_0x43d798['x']-_0x4ebc7a['x'];}),(_0x2b264c=_0x2b264c[_0x955d('0xcf')](_0x22e41c=>_0x288860['includes'](_0x22e41c['rootName'])))[_0x955d('0xa')]((_0x208dd6,_0x475016)=>_0x288860[_0x955d('0x82')](_0x208dd6['rootName'])-_0x288860[_0x955d('0x82')](_0x475016['rootName'])),_0x2b264c;}[_0x955d('0x3f')](_0x4a50b5){const _0x36045f=Array[_0x955d('0xe6')](_0x4a50b5[_0x955d('0x3a')])[_0x955d('0xcf')](([_0x290c1a,_0x5b05f8])=>_0x290c1a[_0x955d('0xb')](_0x955d('0xd1'))&&!_0x5b05f8['isCollapsed']),_0x3a6950=Array[_0x955d('0xe6')](this[_0x955d('0xb8')]['model'][_0x955d('0x1c')](_0x4a50b5)[_0x955d('0x64')]({'singleCharacters':!0x0}));if(0x0!=_0x36045f[_0x955d('0x112')])for(const _0x284205 of _0x3a6950){const [_0x205df6,_0x5ad19c]=_0x36045f[0x0],[,_0x17792f,_0x7b7ae0]=_0x205df6[_0x955d('0x89')](':');if(_0x5ad19c['end'][_0x955d('0x1b')](_0x284205[_0x955d('0x24')])&&_0x36045f['shift'](),(_0x284205[_0x955d('0x17')]['isEqual'](_0x5ad19c['start'])||_0x284205[_0x955d('0x17')][_0x955d('0xa7')](_0x5ad19c[_0x955d('0x19')]))&&(_0x955d('0xc7')==_0x17792f?_0x284205[_0x955d('0xea')]={'userId':_0x7b7ae0}:_0x955d('0x7c')==_0x17792f&&(_0x284205[_0x955d('0x2c')]={'userId':_0x7b7ae0})),0x0==_0x36045f[_0x955d('0x112')])break;}return _0x3a6950;}['_refreshStartEndIndex'](_0x125fc6){const _0x44dc87=new Map();for(let _0xbcdeef=0x0;_0xbcdeef<_0x125fc6['length'];_0xbcdeef++)_0x955d('0x8')===_0x125fc6[_0xbcdeef]['type']?(_0x125fc6[_0xbcdeef]['item']['startIndex']=_0xbcdeef,_0x125fc6[_0xbcdeef][_0x955d('0x77')]['endIndex']=_0xbcdeef):('elementStart'===_0x125fc6[_0xbcdeef]['type']?_0x125fc6[_0xbcdeef]['item'][_0x955d('0xad')]=_0xbcdeef:_0x955d('0xf8')===_0x125fc6[_0xbcdeef][_0x955d('0x113')]&&(_0x125fc6[_0xbcdeef][_0x955d('0x77')][_0x955d('0x57')]=_0xbcdeef),_0x44dc87[_0x955d('0x1a')](_0x125fc6[_0xbcdeef]['id'],_0xbcdeef));for(const _0x32b986 of _0x44dc87[_0x955d('0x43')]())_0x955d('0xf5')===_0x125fc6[_0x32b986][_0x955d('0x113')]?_0x125fc6[_0x32b986][_0x955d('0x77')][_0x955d('0x57')]=_0x44dc87[_0x955d('0x11a')](_0x125fc6[_0x32b986][_0x955d('0x6f')]):_0x955d('0xf8')===_0x125fc6[_0x32b986][_0x955d('0x113')]&&(_0x125fc6[_0x32b986][_0x955d('0x77')][_0x955d('0xad')]=_0x44dc87[_0x955d('0x11a')](_0x125fc6[_0x32b986][_0x955d('0x6f')]));}[_0x955d('0xcd')](_0x3dd99f){for(let _0x24a883=0x0;_0x24a883<_0x3dd99f['length'];_0x24a883++){if('elementStart'===_0x3dd99f[_0x24a883][_0x955d('0x113')])_0x3dd99f[_0x24a883][_0x955d('0x77')][_0x955d('0xad')]=_0x24a883;else{if(_0x955d('0xf8')===_0x3dd99f[_0x24a883][_0x955d('0x113')]){_0x3dd99f[_0x24a883][_0x955d('0x77')][_0x955d('0x57')]=_0x24a883;const _0x4606e3=_0x3dd99f[_0x24a883][_0x955d('0x77')][_0x955d('0xad')];_0x3dd99f[_0x4606e3]['pairId']=_0x3dd99f[_0x24a883]['id'],_0x3dd99f[_0x24a883][_0x955d('0x6f')]=_0x3dd99f[_0x4606e3]['id'];}else _0x3dd99f[_0x24a883][_0x955d('0x77')][_0x955d('0xad')]=_0x24a883,_0x3dd99f[_0x24a883]['item']['endIndex']=_0x24a883,_0x3dd99f[_0x24a883][_0x955d('0x6f')]=null;}_0x3dd99f[_0x24a883]['markersStart']||(_0x3dd99f[_0x24a883][_0x955d('0x36')]=[],_0x3dd99f[_0x24a883][_0x955d('0xff')]=[]);}}[_0x955d('0x26')](_0x28abe2,_0x12c28f){const _0x4e539b=_0x28abe2[_0x955d('0xcf')](_0x2edac3=>!_0x2edac3[_0x955d('0xea')]);for(let _0x133d0a=0x0;_0x133d0a<_0x12c28f[_0x955d('0x112')];_0x133d0a++)_0x12c28f[_0x133d0a]['isAdded']&&(_0x4e539b[_0x133d0a][_0x955d('0xea')]=_0x12c28f[_0x133d0a][_0x955d('0xea')]);}[_0x955d('0x8c')](_0x3f1588){const _0x2714ce=JSON[_0x955d('0xed')](_0x3f1588),_0x2d54ae=this['editor'][_0x955d('0x10')][_0x955d('0x92')][_0x955d('0xfb')],_0x44703b=new _0x17ee6a(_0x2d54ae,_0x2714ce['map'](_0x33aebe=>this[_0x955d('0x87')](_0x33aebe)));return this[_0x955d('0xb8')][_0x955d('0x119')][_0x955d('0x8d')](_0x44703b);}[_0x955d('0x87')](_0x39d9cc){const _0x133288=this[_0x955d('0xb8')]['editing'][_0x955d('0x92')]['document'];if('string'==typeof _0x39d9cc)return new _0x2c8d05(_0x133288,_0x39d9cc);{const _0x5e3a28=_0x39d9cc[_0x955d('0x2d')]['map'](_0x4731ce=>this[_0x955d('0x87')](_0x4731ce));return new(tt[_0x39d9cc[(_0x955d('0x113'))]]||_0x6d6fcb)(_0x133288,_0x39d9cc['name'],_0x39d9cc[_0x955d('0xec')],_0x5e3a28);}}['_getDiff'](_0x2b2b3f,_0x1764cb=null){const _0xc8c1ed=this[_0x955d('0xc4')][_0x955d('0x86')](_0x2b2b3f),_0x461bc6=_0x1764cb?this[_0x955d('0xc4')][_0x955d('0x86')](_0x1764cb):null,_0x1c06b=this[_0x955d('0xb6')](_0xc8c1ed,_0x461bc6),_0xa12fb3=_0x1c06b[_0x1c06b[_0x955d('0x112')]-0x1],_0x3d3781=new Map(),_0x1a3287={'model':{},'attributes':{},'changes':[]},_0x1b69cd=new Set(),_0x34d254=new Map();for(let _0x4486bb=_0x1c06b['length']-0x1;_0x4486bb>=0x0;_0x4486bb--){const _0x16585b=_0x1c06b[_0x4486bb];for(const _0x1575a8 of Object[_0x955d('0x84')](_0x16585b[_0x955d('0x58')]))if(_0x16585b[_0x955d('0x58')][_0x1575a8][_0x955d('0x0')]){const _0x3ad525=_0x16585b[_0x955d('0x58')][_0x1575a8][_0x955d('0x0')];_0x3ad525[_0x955d('0x2a')]?(_0x1b69cd['add'](_0x1575a8),_0x34d254[_0x955d('0x9b')](_0x1575a8)&&_0x34d254[_0x955d('0x11a')](_0x1575a8)[_0x955d('0x56')]==_0x3ad525['userId']?_0x34d254[_0x955d('0x67')](_0x1575a8):_0x34d254[_0x955d('0x1a')](_0x1575a8,_0x3ad525)):_0x34d254['has'](_0x1575a8)?(_0x1b69cd[_0x955d('0x67')](_0x1575a8),_0x34d254['delete'](_0x1575a8)):(_0x1b69cd[_0x955d('0x21')](_0x1575a8),_0x34d254['set'](_0x1575a8,_0x3ad525));}else _0x1b69cd[_0x955d('0x21')](_0x1575a8);}for(const _0x292ff1 of _0x1b69cd){const _0x4687cc=_0x34d254['has'](_0x292ff1)&&!_0x34d254[_0x955d('0x11a')](_0x292ff1)[_0x955d('0x2a')];let _0x215838=_0x4687cc?_0x1c06b['length']-0x1:0x0;const _0x3e1bac=_0x4687cc?-0x1:0x1;for(;_0x1c06b[_0x215838];){const _0x2c5d31=_0x1c06b[_0x215838];if(_0x2c5d31[_0x955d('0x58')][_0x292ff1]){const _0x1d55a7=_0x4687cc?_0x2c5d31[_0x955d('0x58')][_0x292ff1][_0x955d('0x51')]:_0x2c5d31[_0x955d('0x58')][_0x292ff1]['attributesAfter'];_0x1a3287['attributes'][_0x292ff1]=_0x1d55a7?_0x467aae(_0x1d55a7):{};break;}_0x215838+=_0x3e1bac;}}for(const _0x3f7220 of _0x1c06b){_0x3f7220['model']={};for(const _0x23167e of _0x3f7220[_0x955d('0x60')])_0x3d3781[_0x955d('0x1a')](_0x23167e['id'],_0x23167e);for(const _0xa1b104 of _0x1b69cd){const _0xf9959=_0x3f7220['diffData'][_0xa1b104]?_0x3f7220[_0x955d('0x58')][_0xa1b104][_0x955d('0x1')]:'[]',_0x50c364=_0x3f7220[_0x955d('0x58')][_0xa1b104]?_0x3f7220[_0x955d('0x58')][_0xa1b104][_0x955d('0x14')]:'[]';_0x3f7220[_0x955d('0x29')][_0xa1b104]={'insertions':this[_0x955d('0x8c')](_0xf9959),'deletions':this[_0x955d('0x8c')](_0x50c364)};}}for(const _0x2d5315 of _0x1b69cd){let _0x46ffb3=null,_0x2e8126=0x0;const _0x11c4f7=new Map(Array[_0x955d('0xe6')](_0xc8c1ed[_0x955d('0x29')][_0x2d5315][_0x955d('0x1')][_0x955d('0x3a')])['filter'](([_0x87dbea])=>!_0x87dbea[_0x955d('0xb')](_0x955d('0xd1'))));let _0x3e04ae=0x0;for(const _0x38a725 of _0x1c06b){const _0x312bd2=this[_0x955d('0x3f')](_0x38a725[_0x955d('0x29')][_0x2d5315][_0x955d('0x1')]);_0x38a725==_0xc8c1ed?(_0x46ffb3=_0x312bd2,_0x2e8126=_0x46ffb3[_0x955d('0x112')],_0x46ffb3[_0x955d('0xb1')](_0x56ddca=>{_0x56ddca['id']=_0x3e04ae++;}),this[_0x955d('0xcd')](_0x46ffb3)):this[_0x955d('0x26')](_0x46ffb3,_0x312bd2);const _0x2f85b8=_0x46ffb3[_0x955d('0xcf')](_0x523a4c=>!_0x523a4c[_0x955d('0xea')])[_0x955d('0x6e')](_0x2f2b9d=>_0x2f2b9d['id']);let _0x10b08c=0x0;const _0x4e7c8e=this[_0x955d('0x3f')](_0x38a725['model'][_0x2d5315][_0x955d('0x14')]);_0x4e7c8e['forEach'](_0x168f51=>{_0x168f51[_0x955d('0x2c')]?_0x168f51['id']=_0x2e8126++:_0x168f51['id']=_0x2f85b8[_0x10b08c++];}),this[_0x955d('0xcd')](_0x4e7c8e),this['_setDistance'](_0x46ffb3,'isAdded'),this[_0x955d('0x69')](_0x4e7c8e,'isRemoved'),_0x38a725==_0xc8c1ed&&this[_0x955d('0xbb')](_0x46ffb3,_0x11c4f7),_0x46ffb3=this[_0x955d('0x4e')](_0x46ffb3,_0x4e7c8e),this[_0x955d('0x9')](_0x46ffb3),this[_0x955d('0x69')](_0x46ffb3,_0x955d('0x2c'));}_0x46ffb3=_0x46ffb3[_0x955d('0xcf')](_0x59343d=>!(_0x59343d[_0x955d('0xea')]&&_0x59343d['isRemoved']));const _0x51f483=new Map(_0xa12fb3[_0x955d('0x29')][_0x2d5315][_0x955d('0x14')][_0x955d('0x3a')]),_0x1acf29=new Set(_0x11c4f7[_0x955d('0x84')]());for(const _0x5b9b86 of _0x51f483[_0x955d('0x84')]())_0x1acf29[_0x955d('0x67')](_0x5b9b86);this['_markSuggestions'](_0x46ffb3,_0x1acf29),this[_0x955d('0xc0')](_0x46ffb3),_0x46ffb3=this['_removeMissingPairs'](_0x46ffb3),_0x46ffb3=this[_0x955d('0x9c')](_0x46ffb3),_0x46ffb3=this['_removeUnsupportedChanges'](_0x46ffb3);const {root:_0x27e1d5,changes:_0x25dedd}=this['_makeModelFromTape'](_0x46ffb3,_0x3d3781,_0x2d5315);_0x1a3287[_0x955d('0x29')][_0x2d5315]=_0x27e1d5;const _0x2b3138=_0x34d254[_0x955d('0x11a')](_0x2d5315);if(_0x2b3138){const _0x3b252f=_0x3d3781[_0x955d('0x11a')](_0x2b3138[_0x955d('0x56')]),_0x3531f5=new _0xd6b060({'author':_0x3b252f,'type':_0x2b3138['isAttached']?'add':_0x955d('0x62'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2d5315});_0x25dedd['unshift'](_0x3531f5),_0x1a3287[_0x955d('0xec')][_0x2d5315][_0x955d('0xc6')]=_0x3531f5['id'];}_0x1a3287[_0x955d('0xdd')]=_0x1a3287[_0x955d('0xdd')][_0x955d('0x115')](_0x25dedd);}return _0x1a3287;}['_markMarkers'](_0x479a27,_0x35ba07){for(let _0x2a9aa4=0x0;_0x2a9aa4<_0x479a27[_0x955d('0x112')];_0x2a9aa4++)for(const [_0x5f280d,_0x3838d4]of _0x35ba07)_0x3838d4[_0x955d('0x19')][_0x955d('0x1b')](_0x479a27[_0x2a9aa4]['previousPosition'])&&_0x479a27[_0x2a9aa4]['markersStart']['push'](_0x5f280d),_0x3838d4['end'][_0x955d('0x1b')](_0x479a27[_0x2a9aa4][_0x955d('0x24')])&&_0x479a27[_0x2a9aa4][_0x955d('0xff')][_0x955d('0xe1')](_0x5f280d);}[_0x955d('0x4e')](_0x2bbfb7,_0x51d909){let _0x50b50d=[],_0x4f9119=0x0,_0x2e420c=0x0;for(;_0x4f9119<_0x2bbfb7[_0x955d('0x112')]||_0x2e420c<_0x51d909[_0x955d('0x112')];){const _0x1b6e4e=_0x2bbfb7[_0x4f9119]||{},_0x5208bb=_0x51d909[_0x2e420c]||{};if(_0x1b6e4e['id']==_0x5208bb['id'])_0x4f9119++,_0x2e420c++,_0x50b50d['push'](_0x1b6e4e);else{if(_0x5208bb[_0x955d('0x2c')]&&_0x1b6e4e[_0x955d('0xea')]){const {commonTape:_0x1c08c0,iEnd:_0x5e40b5,jEnd:_0x329d60}=this[_0x955d('0x95')](_0x2bbfb7,_0x4f9119,_0x51d909,_0x2e420c);_0x50b50d=_0x50b50d[_0x955d('0x115')](_0x1c08c0),_0x4f9119=_0x5e40b5,_0x2e420c=_0x329d60;}else _0x5208bb[_0x955d('0x2c')]?(_0x2e420c++,_0x50b50d[_0x955d('0xe1')](_0x5208bb)):(_0x4f9119++,_0x50b50d[_0x955d('0xe1')](_0x1b6e4e));}}return _0x50b50d;}['_markSuggestions'](_0x3ed850,_0x4d15a5){const _0x17960a=[];for(let _0x43a131=0x0;_0x43a131<_0x3ed850[_0x955d('0x112')];_0x43a131++){for(let _0x452245=0x0;_0x452245<_0x3ed850[_0x43a131]['markersStart']['length'];_0x452245++){const _0x57c9f7=_0x3ed850[_0x43a131][_0x955d('0x36')][_0x452245];if(!_0x4d15a5[_0x955d('0x9b')](_0x57c9f7))continue;const {group:_0x26a855,type:_0x2ca2e5,authorId:_0x29becf}=_0x16f80d(_0x57c9f7);_0x955d('0x71')!=_0x26a855||_0x955d('0xc7')!=_0x2ca2e5&&_0x955d('0x7c')!=_0x2ca2e5||(_0x17960a[_0x955d('0xce')]({'type':_0x2ca2e5,'name':_0x57c9f7,'userId':_0x29becf}),_0x3ed850[_0x43a131][_0x955d('0x36')][_0x955d('0xd8')](_0x452245,0x1),_0x452245--);}_0x1204a1(_0x3ed850[_0x43a131]);for(let _0x5d16cf=0x0;_0x5d16cf<_0x3ed850[_0x43a131]['markersEnd'][_0x955d('0x112')];_0x5d16cf++){const _0x477fd3=_0x3ed850[_0x43a131][_0x955d('0xff')][_0x5d16cf];if(!_0x4d15a5[_0x955d('0x9b')](_0x477fd3))continue;const {group:_0x17d4c4,type:_0x53ca6c}=_0x16f80d(_0x477fd3);if('revision-suggestion'!=_0x17d4c4||_0x955d('0xc7')!=_0x53ca6c&&_0x955d('0x7c')!=_0x53ca6c)continue;_0x3ed850[_0x43a131][_0x955d('0xff')][_0x955d('0xd8')](_0x5d16cf,0x1),_0x5d16cf--;const _0x10ed2f=_0x17960a['findIndex'](_0x30a327=>_0x30a327[_0x955d('0xc8')]==_0x477fd3);_0x10ed2f>-0x1&&_0x17960a['splice'](_0x10ed2f,0x1);}}function _0x16f80d(_0x919ee0){const _0x57a153=_0x919ee0[_0x955d('0x89')](':');return{'group':_0x57a153[0x0],'type':_0x57a153[0x1],'subType':_0x57a153[_0x955d('0x112')]>=0x5?_0x57a153[0x2]:null,'id':_0x57a153['length']<0x5?_0x57a153[0x2]:_0x57a153[0x3],'authorId':_0x57a153[_0x955d('0x112')]<0x5?_0x57a153[0x3]:_0x57a153[0x4],'markerCount':0x6==_0x57a153[_0x955d('0x112')]?_0x57a153[0x5]:null};}function _0x1204a1(_0x1c5fef){for(let _0xd0e242=0x0;_0xd0e242<_0x17960a[_0x955d('0x112')];_0xd0e242++){if(_0x1c5fef['isAdded']&&'insertion'==_0x17960a[_0xd0e242]['type'])return _0x1c5fef[_0x955d('0x66')]=_0x17960a[_0xd0e242],void delete _0x1c5fef[_0x955d('0xea')];if(!_0x1c5fef[_0x955d('0xea')]&&!_0x1c5fef[_0x955d('0x2c')]&&_0x955d('0x7c')==_0x17960a[_0xd0e242]['type'])return void(_0x1c5fef[_0x955d('0xdb')]=_0x17960a[_0xd0e242]);}}}['_setDistance'](_0x52960a,_0x2f8ada){let _0xc9f3f2=0x0,_0x5804ba=!0x1;const _0xea165=new Map();for(const _0x5a420b of _0x52960a)_0x5a420b[_0x2f8ada]?_0x5804ba&&(_0xc9f3f2++,_0x5804ba=!0x1):(_0xc9f3f2++,_0x5804ba=!0x0),_0xea165['set'](_0x5a420b['id'],_0xc9f3f2);for(let _0x2ca5c7=0x0;_0x2ca5c7<_0x52960a['length'];_0x2ca5c7++){if('isRemoved'==_0x2f8ada&&_0x52960a[_0x2ca5c7][_0x955d('0xea')]||_0x955d('0xea')==_0x2f8ada&&_0x52960a[_0x2ca5c7][_0x955d('0x2c')])continue;if('text'==_0x52960a[_0x2ca5c7][_0x955d('0x113')]){_0x52960a[_0x2ca5c7][_0x955d('0x7')]=0x0;continue;}const _0x3c95fd=_0xea165['get'](_0x52960a[_0x2ca5c7][_0x955d('0x6f')]),_0x296c85=_0xea165[_0x955d('0x11a')](_0x52960a[_0x2ca5c7]['id']);_0x52960a[_0x2ca5c7][_0x955d('0x7')]=_0x3c95fd-_0x296c85;}}[_0x955d('0xb6')](_0x6b8840,_0x1d9e98,_0x89fcb0=!0x1){const _0x298a70=[];let _0x41c4fe=this[_0x955d('0xc4')][_0x955d('0xe7')](_0x6b8840),_0x451388=this[_0x955d('0xc4')][_0x955d('0xe7')](_0x1d9e98);for(-0x1==_0x451388&&(_0x451388=this[_0x955d('0xc4')][_0x955d('0x78')][_0x955d('0x112')],_0x89fcb0=!0x1);_0x41c4fe<_0x451388;)_0x298a70[_0x955d('0xe1')](this[_0x955d('0xc4')][_0x955d('0x86')](_0x41c4fe)),_0x41c4fe++;return _0x89fcb0&&_0x298a70[_0x955d('0xe1')](this[_0x955d('0xc4')][_0x955d('0x86')](_0x41c4fe)),_0x298a70;}[_0x955d('0x95')](_0x372483,_0x1883ee,_0x4f96e9,_0x1eda1b){const _0x69c99d=this[_0x955d('0xb8')][_0x955d('0x29')]['schema'];let _0x19602e=_0x1883ee;for(;_0x372483[_0x19602e]&&_0x372483[_0x19602e][_0x955d('0xea')];)_0x19602e++;let _0x33901b=_0x1eda1b;for(;_0x4f96e9[_0x33901b]&&_0x4f96e9[_0x33901b][_0x955d('0x2c')];)_0x33901b++;_0x414129(_0x372483,_0x1883ee,_0x19602e),_0x414129(_0x4f96e9,_0x1eda1b,_0x33901b);const _0x3ccf76=_0x4f96e9[_0x955d('0xde')](_0x1eda1b,_0x33901b)['concat'](_0x372483[_0x955d('0xde')](_0x1883ee,_0x19602e));return _0x3ccf76['sort']((_0x8d0945,_0x4d645c)=>_0x8d0945[_0x955d('0x22')]!=_0x4d645c[_0x955d('0x22')]?_0x8d0945[_0x955d('0x22')]-_0x4d645c[_0x955d('0x22')]:_0x8d0945[_0x955d('0x5c')]!=_0x4d645c['level']?_0x8d0945[_0x955d('0x5c')]-_0x4d645c[_0x955d('0x5c')]:_0x8d0945[_0x955d('0x7')]!=_0x4d645c[_0x955d('0x7')]?_0x4d645c['distance']-_0x8d0945['distance']:!!_0x8d0945[_0x955d('0xea')]!=!!_0x4d645c[_0x955d('0xea')]?-0x1==_0x8d0945[_0x955d('0x22')]||0x0==_0x8d0945[_0x955d('0x22')]?_0x8d0945[_0x955d('0xea')]?-0x1:0x1:_0x8d0945[_0x955d('0xea')]?0x1:-0x1:_0x8d0945['index']-_0x4d645c[_0x955d('0x59')]),{'commonTape':_0x3ccf76,'iEnd':_0x19602e,'jEnd':_0x33901b};function _0x414129(_0x1c9656,_0x39e289,_0x5651a9){let _0x5bcfcb=-0x1,_0x4065df=Number[_0x955d('0x116')],_0x313194=!0x0;for(let _0x4dcbbe=_0x39e289;_0x4dcbbe<_0x5651a9;_0x4dcbbe++)if(_0x69c99d[_0x955d('0xae')](_0x1c9656[_0x4dcbbe][_0x955d('0x77')])||(_0x313194=!0x1),_0x1c9656[_0x4dcbbe][_0x955d('0x77')][_0x955d('0xad')]<_0x39e289&&(_0x5bcfcb=_0x4dcbbe),_0x1c9656[_0x4dcbbe][_0x955d('0x77')][_0x955d('0x57')]>=_0x5651a9){_0x4065df=_0x4dcbbe;break;}_0x313194&&(_0x5bcfcb=_0x5651a9-0x1);for(let _0x1b8626=_0x39e289;_0x1b8626<_0x5651a9;_0x1b8626++)_0x1c9656[_0x1b8626]['side']=_0x1b8626<=_0x5bcfcb?-0x1:_0x1b8626<_0x4065df?0x0:0x1,_0x1c9656[_0x1b8626]['index']=_0x1b8626;let _0x50f4f0=0x0;for(let _0xb23a1a=_0x39e289;_0xb23a1a<=_0x5bcfcb;_0xb23a1a++)0x0==_0x1c9656[_0xb23a1a][_0x955d('0x7')]?_0x1c9656[_0xb23a1a]['level']=_0x50f4f0:(_0x50f4f0++,_0x1c9656[_0xb23a1a][_0x955d('0x5c')]=_0x50f4f0,_0x50f4f0++);for(let _0x50813f=_0x39e289;_0x50813f<_0x5651a9;_0x50813f++)0x0==_0x1c9656[_0x50813f]['side']&&(_0x1c9656[_0x50813f][_0x955d('0x5c')]=_0x50f4f0);_0x50f4f0=0x0;for(let _0x24e9ff=_0x5651a9-0x1;_0x24e9ff>=_0x4065df;_0x24e9ff--)0x0==_0x1c9656[_0x24e9ff][_0x955d('0x7')]?_0x1c9656[_0x24e9ff][_0x955d('0x5c')]=_0x50f4f0:(_0x50f4f0--,_0x1c9656[_0x24e9ff][_0x955d('0x5c')]=_0x50f4f0,_0x50f4f0--);}}['_fixObsoleteTags'](_0x318d8b){const _0x132549=new Map(),_0x5d8bba=this[_0x955d('0xb8')]['model']['schema'];for(let _0x376359=0x1;_0x376359<_0x318d8b[_0x955d('0x112')];_0x376359++){let _0x40b377,_0x363845,_0x1a4e59;const _0x1e22b2=_0x318d8b[_0x376359],_0x3fda2e=_0x318d8b[_0x376359-0x1];if(_0x955d('0x8')==_0x1e22b2[_0x955d('0x113')])continue;if(_0x1e22b2[_0x955d('0x113')]!=_0x3fda2e[_0x955d('0x113')])continue;if(!_0x5d8bba[_0x955d('0x97')](_0x3fda2e[_0x955d('0x77')])||_0x5d8bba[_0x955d('0x10f')](_0x3fda2e[_0x955d('0x77')]))continue;if(!_0x5d8bba[_0x955d('0x97')](_0x1e22b2[_0x955d('0x77')])||_0x5d8bba['isLimit'](_0x1e22b2[_0x955d('0x77')]))continue;if((_0x318d8b[_0x376359][_0x955d('0xea')]||_0x318d8b[_0x376359][_0x955d('0x66')])&&_0x318d8b[_0x376359-0x1]['isRemoved'])_0x40b377=_0x318d8b[_0x376359],_0x363845=_0x318d8b[_0x376359-0x1],_0x1a4e59=_0x376359-0x1;else{if(!_0x318d8b[_0x376359]['isRemoved']||!_0x318d8b[_0x376359-0x1][_0x955d('0xea')]&&!_0x318d8b[_0x376359-0x1][_0x955d('0x66')])continue;_0x40b377=_0x318d8b[_0x376359-0x1],_0x363845=_0x318d8b[_0x376359],_0x1a4e59=_0x376359;}const _0x47b4c0=_0x40b377[_0x955d('0x5c')]==_0x363845[_0x955d('0x5c')],_0x25025f=Math['abs'](_0x40b377[_0x955d('0x5c')])<Math[_0x955d('0xa4')](_0x363845['level'])&&0x0==_0x363845['distance'];(_0x47b4c0||_0x25025f)&&(_0x132549[_0x955d('0x1a')](_0x363845['id'],_0x40b377['id']),_0x318d8b[_0x955d('0xd8')](_0x1a4e59,0x1),_0x376359--,_0x40b377[_0x955d('0xea')]=!0x1);}for(let _0x2d4615=0x0;_0x2d4615<_0x318d8b[_0x955d('0x112')];_0x2d4615++)_0x132549[_0x955d('0x9b')](_0x318d8b[_0x2d4615][_0x955d('0x6f')])&&(_0x318d8b[_0x2d4615][_0x955d('0x6f')]=_0x132549[_0x955d('0x11a')](_0x318d8b[_0x2d4615][_0x955d('0x6f')]));}[_0x955d('0x5')](_0x31a847){const _0x2b0f4e=new Set(_0x31a847[_0x955d('0x6e')](_0x5402b=>_0x5402b['id']));for(let _0xda9ce8=0x0;_0xda9ce8<_0x31a847['length'];_0xda9ce8++)_0x2b0f4e[_0x955d('0x9b')](_0x31a847[_0xda9ce8][_0x955d('0x6f')])||0x0==_0x31a847[_0xda9ce8][_0x955d('0x7')]||(_0x31a847[_0xda9ce8][_0x955d('0xac')]=!0x0);return _0x31a847[_0x955d('0xcf')](_0x423f0b=>!_0x423f0b[_0x955d('0xac')]);}[_0x955d('0x9c')](_0x3d9904){const _0x3f156d=new Set();for(let _0x9d7111=0x0;_0x9d7111<_0x3d9904[_0x955d('0x112')];_0x9d7111++){if(_0x3f156d[_0x955d('0x9b')](_0x3d9904[_0x9d7111]['id'])&&_0x3d9904[_0x9d7111][_0x955d('0x2c')]&&(_0x3d9904[_0x9d7111]['isIncorrect']=!0x0),_0x3d9904[_0x9d7111]['isIncorrect'])continue;if(0x0==_0x3d9904[_0x9d7111][_0x955d('0x7')])continue;if(_0x955d('0xf5')!=_0x3d9904[_0x9d7111][_0x955d('0x113')])continue;if(null==_0x3d9904[_0x9d7111][_0x955d('0x6f')])continue;let _0x1e726c=_0x9d7111+0x1,_0x4b9997=0x0;for(;_0x3d9904[_0x1e726c]['id']!=_0x3d9904[_0x9d7111][_0x955d('0x6f')];)_0x955d('0xf5')==_0x3d9904[_0x1e726c][_0x955d('0x113')]?_0x4b9997++:_0x955d('0xf8')==_0x3d9904[_0x1e726c][_0x955d('0x113')]&&_0x4b9997--,_0x1e726c++;if(0x0!=_0x4b9997){if(_0x3d9904[_0x9d7111][_0x955d('0x2c')])_0x3d9904[_0x9d7111]['isIncorrect']=!0x0;else for(;_0x1e726c!=_0x9d7111;)_0x3d9904[_0x1e726c][_0x955d('0x2c')]&&0x0!=_0x3d9904[_0x1e726c][_0x955d('0x7')]&&(_0x3d9904[_0x1e726c][_0x955d('0xac')]=!0x0,_0x3f156d[_0x955d('0x21')](_0x3d9904[_0x1e726c][_0x955d('0x6f')])),_0x1e726c--;}}return _0x3d9904[_0x955d('0xcf')](_0x16a5e9=>!_0x16a5e9['isIncorrect']);}[_0x955d('0x1f')](_0x358a91){const _0x4555ca=this[_0x955d('0xb8')]['model'][_0x955d('0xbf')];for(let _0xc01166=0x0;_0xc01166<_0x358a91[_0x955d('0x112')];_0xc01166++){if(!(_0x358a91[_0xc01166]['isAdded']||_0x358a91[_0xc01166]['isAddSuggestion']||_0x358a91[_0xc01166][_0x955d('0x2c')]||_0x358a91[_0xc01166][_0x955d('0xdb')]))continue;if(0x0==_0x358a91[_0xc01166]['distance'])continue;const _0x478912=_0x358a91[_0xc01166][_0x955d('0x77')];_0x4555ca[_0x955d('0x97')](_0x478912)||_0x4555ca['isLimit'](_0x478912)||(_0x358a91[_0xc01166]['isAdded']&&delete _0x358a91[_0xc01166][_0x955d('0xea')],_0x358a91[_0xc01166][_0x955d('0x66')]&&delete _0x358a91[_0xc01166][_0x955d('0x66')],_0x358a91[_0xc01166][_0x955d('0xdb')]&&delete _0x358a91[_0xc01166][_0x955d('0xdb')],_0x358a91[_0xc01166][_0x955d('0x2c')]&&(_0x358a91[_0xc01166][_0x955d('0xac')]=!0x0));}return _0x358a91[_0x955d('0xcf')](_0xc377ce=>!_0xc377ce['isIncorrect']);}[_0x955d('0xda')](_0x49ad19,_0x1c1f36,_0xb41f2e){const _0x152ebd=new _0x1c9551(),_0x26f92a=[],_0xc05871=new Map(),_0x4e52e7=this[_0x955d('0xb8')]['model'],_0x43a54e=_0x4e52e7['schema'],_0x9afd05=[_0x152ebd],_0x14c9e3={},_0x32c284={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x38ce43=null;const _0x1c0ce2=[0x0];for(let _0x5ea23d=0x0;_0x5ea23d<_0x49ad19[_0x955d('0x112')];_0x5ea23d++){let _0x352fca,_0x5109e3;if('elementStart'===_0x49ad19[_0x5ea23d][_0x955d('0x113')]){_0x352fca=_0x4e52e7['createPositionFromPath'](_0x152ebd,_0x1c0ce2);const _0x217efb=new _0x3fb6e8(_0x49ad19[_0x5ea23d]['item'][_0x955d('0xc8')],_0x49ad19[_0x5ea23d][_0x955d('0x77')][_0x955d('0x10b')]());_0x9afd05[0x0][_0x955d('0x8b')](_0x217efb),_0x1c0ce2[_0x955d('0xe1')](0x0),_0x9afd05[_0x955d('0xce')](_0x217efb),_0x5109e3=_0x4e52e7[_0x955d('0x110')](_0x152ebd,_0x1c0ce2),_0x38ce43=null;}else{if(_0x955d('0xf8')===_0x49ad19[_0x5ea23d]['type'])_0x9afd05[_0x955d('0x45')](),_0x352fca=_0x4e52e7[_0x955d('0x110')](_0x152ebd,_0x1c0ce2),_0x1c0ce2[_0x955d('0x23')](),_0x1c0ce2[_0x1c0ce2[_0x955d('0x112')]-0x1]++,_0x5109e3=_0x4e52e7['createPositionFromPath'](_0x152ebd,_0x1c0ce2),_0x38ce43=null;else{if(_0x352fca=_0x4e52e7['createPositionFromPath'](_0x152ebd,_0x1c0ce2),_0x38ce43&&_0x5bc6c6(_0x38ce43,_0x49ad19[_0x5ea23d][_0x955d('0x77')]))_0x38ce43['_data']+=_0x49ad19[_0x5ea23d][_0x955d('0x77')][_0x955d('0x119')];else{const _0x2d3588=new _0x1229bd(_0x49ad19[_0x5ea23d][_0x955d('0x77')][_0x955d('0x119')],_0x49ad19[_0x5ea23d][_0x955d('0x77')][_0x955d('0x10b')]());_0x9afd05[0x0][_0x955d('0x8b')](_0x2d3588),_0x38ce43=_0x2d3588;}_0x1c0ce2[_0x1c0ce2['length']-0x1]+=_0x49ad19[_0x5ea23d][_0x955d('0x77')][_0x955d('0x5e')],_0x5109e3=_0x4e52e7['createPositionFromPath'](_0x152ebd,_0x1c0ce2);}}for(const _0x4487d1 of _0x49ad19[_0x5ea23d]['markersStart'])_0xc05871[_0x955d('0x1a')](_0x4487d1,{'start':_0x352fca,'end':null});_0xe23be5('isRemoveSuggestion',_0x5ea23d,_0x352fca,_0x5109e3),_0xe23be5(_0x955d('0x66'),_0x5ea23d,_0x352fca,_0x5109e3),_0xe23be5(_0x955d('0x2c'),_0x5ea23d,_0x352fca,_0x5109e3),_0xe23be5(_0x955d('0xea'),_0x5ea23d,_0x352fca,_0x5109e3);for(const _0x394446 of _0x49ad19[_0x5ea23d][_0x955d('0xff')]){_0xc05871[_0x955d('0x11a')](_0x394446)[_0x955d('0xfc')]=_0x5109e3;}}for(const [_0x1259e8,_0x1d9c04]of _0xc05871){const _0x26bd26=this[_0x955d('0xb8')]['model'][_0x955d('0xa0')](_0x1d9c04[_0x955d('0x19')],_0x1d9c04[_0x955d('0xfc')]);_0x152ebd[_0x955d('0x3a')][_0x955d('0x1a')](_0x1259e8,_0x26bd26);}return _0x26f92a[_0x955d('0xa')]((_0x2332e0,_0x3a934b)=>{const _0x50f74d=_0x152ebd[_0x955d('0x3a')]['get']('revision:'+_0x2332e0['id']),_0x318441=_0x152ebd[_0x955d('0x3a')][_0x955d('0x11a')](_0x955d('0xd1')+_0x3a934b['id']);return _0x50f74d[_0x955d('0x19')][_0x955d('0x31')](_0x318441[_0x955d('0x19')])?-0x1:_0x50f74d[_0x955d('0x19')][_0x955d('0xa7')](_0x318441[_0x955d('0x19')])?0x1:_0x50f74d[_0x955d('0xfc')]['isBefore'](_0x318441[_0x955d('0xfc')])?-0x1:_0x50f74d[_0x955d('0xfc')][_0x955d('0xa7')](_0x318441[_0x955d('0xfc')])?0x1:'add'===_0x2332e0[_0x955d('0x113')]?-0x1:0x1;}),{'root':_0x152ebd,'changes':_0x26f92a};function _0xe23be5(_0x2fc2d7,_0x505d2c,_0x5dc811,_0x38b3dd){const _0x3f9f4b=!!_0x49ad19[_0x505d2c][_0x2fc2d7],_0x3fd263=_0x3f9f4b?_0x49ad19[_0x505d2c][_0x2fc2d7]['userId']:null,_0x2ab13d=_0x505d2c===_0x49ad19[_0x955d('0x112')]-0x1,_0x502605=_0x32c284[_0x2fc2d7][0x0],_0xa378b2=_0x43a54e[_0x955d('0xb2')](_0x49ad19[_0x505d2c][_0x955d('0x77')]);!_0x14c9e3[_0x2fc2d7]&&_0x3f9f4b?_0x14c9e3[_0x2fc2d7]={'start':_0x5dc811,'tapeItem':_0x49ad19[_0x505d2c],'userId':_0x3fd263,'type':_0x2fc2d7}:_0x14c9e3[_0x2fc2d7]&&!_0x3f9f4b?(_0x14c9e3[_0x2fc2d7]['end']=_0x5dc811,_0x20b6f9(_0x14c9e3[_0x2fc2d7]),_0x14c9e3[_0x2fc2d7]=null):_0x14c9e3[_0x2fc2d7]&&_0x3f9f4b&&_0x14c9e3[_0x2fc2d7]['userId']!==_0x3fd263&&(_0x14c9e3[_0x2fc2d7][_0x955d('0xfc')]=_0x5dc811,_0x502605&&_0x502605['userId']===_0x14c9e3[_0x2fc2d7][_0x955d('0x56')]||_0x20b6f9(_0x14c9e3[_0x2fc2d7]),_0x14c9e3[_0x2fc2d7]={'start':_0x5dc811,'tapeItem':_0x49ad19[_0x505d2c],'userId':_0x3fd263,'type':_0x2fc2d7}),_0x14c9e3[_0x2fc2d7]&&_0xa378b2&&(_0x955d('0xf5')!==_0x49ad19[_0x505d2c][_0x955d('0x113')]||_0x502605&&_0x502605['userId']===_0x3fd263||_0x32c284[_0x2fc2d7]['unshift']({'userId':_0x3fd263,'object':_0x49ad19[_0x505d2c]['item'],'change':_0x14c9e3[_0x2fc2d7]}),_0x955d('0xf8')===_0x49ad19[_0x505d2c]['type']&&_0x502605&&_0x502605[_0x955d('0xcc')]===_0x49ad19[_0x505d2c][_0x955d('0x77')]&&(_0x32c284[_0x2fc2d7][_0x955d('0x45')](),_0x14c9e3[_0x2fc2d7]=_0x502605['change'])),_0x14c9e3[_0x2fc2d7]&&_0x2ab13d&&(_0x14c9e3[_0x2fc2d7][_0x955d('0xfc')]=_0x38b3dd,_0x20b6f9(_0x14c9e3[_0x2fc2d7]),_0x14c9e3[_0x2fc2d7]=null);}function _0x20b6f9({start:_0x41c826,end:_0x533cb6,tapeItem:_0x453fa5,userId:_0x405f91,type:_0x390303}){const _0x52730b=_0x453fa5[_0x955d('0x77')],_0x4f5762=_0x4e52e7[_0x955d('0xbf')][_0x955d('0x97')](_0x52730b)&&!_0x4e52e7[_0x955d('0xbf')]['isLimit'](_0x52730b),_0x131a15=_0x41c826[_0x955d('0x61')]==_0x533cb6['parent']&&_0x533cb6['isAtStart'];if(_0x4f5762&&_0x131a15)return;const _0x33732f=_0x4e52e7[_0x955d('0xa0')](_0x41c826,_0x533cb6),_0x4d942a=_0x1c1f36[_0x955d('0x11a')](_0x405f91),_0x3ee8b8=new _0xd6b060({'author':_0x4d942a,'type':_0x955d('0xea')==_0x390303||'isAddSuggestion'==_0x390303?'add':_0x955d('0x62'),'data':{'isSuggestion':_0x955d('0x66')==_0x390303||_0x955d('0xdb')==_0x390303},'createdAt':new Date(),'rootName':_0xb41f2e});_0x26f92a['push'](_0x3ee8b8),_0x152ebd['markers']['set'](_0x955d('0xd1')+_0x3ee8b8['id'],_0x33732f);}function _0x5bc6c6(_0x393556,_0x157648){const _0x2874ae=_0x393556['getAttributes'](),_0x302af0=_0x157648['getAttributes']();for(const _0x2b6e2a of _0x2874ae){if(_0x2b6e2a[0x1]!==_0x157648[_0x955d('0x109')](_0x2b6e2a[0x0]))return!0x1;_0x302af0[_0x955d('0x90')]();}return _0x302af0[_0x955d('0x90')]()['done'];}}['_setConversion'](){this['editor'][_0x955d('0x3d')][_0x955d('0x3e')]('upcast')['dataToMarker']({'view':_0x955d('0xfe')}),this['editor']['conversion'][_0x955d('0x3e')](_0x955d('0x108'))[_0x955d('0x1e')]({'model':_0x955d('0xfe'),'view':_0x1c92ec=>{const _0x5dc632=_0x1c92ec[_0x955d('0x11c')][_0x955d('0x89')](':')[0x1],_0x4bd602=this[_0x955d('0x4b')](_0x5dc632);if(!_0x4bd602)return null;const _0x21f68e=_0x955d('0x21')==_0x4bd602[_0x955d('0x113')]?_0x955d('0xc7'):_0x955d('0x7c'),_0x4e9047=[_0x955d('0x79'),_0x955d('0x100')+_0x21f68e];return _0x4bd602['data'][_0x955d('0x7d')]&&_0x4e9047[_0x955d('0xe1')]('ck-suggestion-marker-'+_0x21f68e+_0x955d('0x2e')),this[_0x955d('0xc1')]==_0x4bd602&&_0x4e9047[_0x955d('0xe1')](_0x955d('0xee')),{'classes':_0x4e9047,'attributes':{'data-change-id':_0x5dc632}};}}),this['editor'][_0x955d('0x3d')][_0x955d('0x3e')]('upcast')[_0x955d('0x21')](_0x577154=>{_0x577154['on']('element:pre',(_0x5ebf1f,_0x20986c,_0x2dbf3f)=>{const _0xaca431=_0x20986c[_0x955d('0x3b')]['getChild'](0x0);if(!_0xaca431||!_0xaca431['is']('element',_0x955d('0x41')))return;if(!_0x2dbf3f[_0x955d('0xd0')][_0x955d('0x10a')](_0xaca431,{'attributes':[_0x955d('0x63'),'vid_end']}))return;const _0x1da640=_0x20986c['modelRange'][_0x955d('0x19')][_0x955d('0x61')];_0x2dbf3f[_0x955d('0x85')][_0x955d('0x7e')](_0x955d('0x63'),_0xaca431[_0x955d('0x109')]('vid_start'),_0x1da640),_0x2dbf3f[_0x955d('0x85')]['setAttribute'](_0x955d('0x10e'),_0xaca431[_0x955d('0x109')](_0x955d('0x10e')),_0x1da640);},{'priority':'low'});}),this[_0x955d('0xb8')][_0x955d('0x3d')][_0x955d('0x3e')](_0x955d('0xa6'))[_0x955d('0x21')](_0x2d1fdc=>{_0x2d1fdc['on'](_0x955d('0x93'),(_0x4de020,_0x241464,_0x20e191)=>{if(!_0x20e191[_0x955d('0xd0')][_0x955d('0x10a')](_0x241464[_0x955d('0x3b')],{'attributes':[_0x955d('0x63'),_0x955d('0x10e')]}))return;if(_0x241464[_0x955d('0x118')][_0x955d('0x2')])return;const _0x49331c=_0x241464[_0x955d('0x118')]['start'][_0x955d('0x61')];_0x49331c[_0x955d('0x120')](_0x955d('0x63'))||_0x49331c[_0x955d('0x120')](_0x955d('0x8a'))||(_0x20e191[_0x955d('0x85')][_0x955d('0x7e')](_0x955d('0x63'),_0x241464[_0x955d('0x3b')][_0x955d('0x109')]('vid_start'),_0x49331c),_0x20e191[_0x955d('0x85')][_0x955d('0x7e')]('vid_end',_0x241464['viewItem']['getAttribute'](_0x955d('0x10e')),_0x49331c));},{'priority':_0x955d('0x106')});}),this[_0x955d('0xb8')]['conversion'][_0x955d('0x3e')]('upcast')[_0x955d('0x5a')]({'view':{'name':_0x955d('0xd3'),'attributes':{'vid':!0x0}},'model':{'key':_0x955d('0x8a'),'value':_0xe5ad2f=>_0xe5ad2f[_0x955d('0x109')](_0x955d('0x8a'))}}),this[_0x955d('0xb8')]['model']['schema']['on'](_0x955d('0xa8'),(_0x165e31,[,_0x578ba2])=>{['vid_start','vid_end',_0x955d('0x8a')][_0x955d('0x11f')](_0x578ba2)&&(_0x165e31[_0x955d('0x20')]=!0x0,_0x165e31[_0x955d('0xb4')]());},{'priority':_0x955d('0x94')}),this[_0x955d('0xb8')][_0x955d('0x3d')][_0x955d('0x3e')]('dataDowncast')[_0x955d('0x21')](_0x344d9f=>{_0x344d9f['on'](_0x955d('0x52'),(_0x3b7629,_0x4cce68,_0x231116)=>{if('\x20'!=_0x4cce68[_0x955d('0x77')][_0x955d('0x119')]||_0x4cce68[_0x955d('0x77')][_0x955d('0xf4')][_0x955d('0xf9')]>0x1)return;if(!_0x231116[_0x955d('0xd0')]['consume'](_0x4cce68[_0x955d('0x77')],_0x3b7629[_0x955d('0xc8')]))return;const _0x1e091c=_0x231116['writer'],_0x33fa70=_0x231116[_0x955d('0x96')]['toViewRange'](_0x4cce68['range']);_0x1e091c[_0x955d('0x33')](_0x33fa70,_0x1e091c[_0x955d('0xc3')](_0x955d('0xd3')));});}),this[_0x955d('0xb8')]['conversion'][_0x955d('0x3e')]('dataDowncast')['markerToData']({'model':_0x955d('0xfe')}),this[_0x955d('0xb8')][_0x955d('0x10')][_0x955d('0x6a')]['on'](_0x955d('0x15'),function(_0x15fc5d){const _0x21e99a=_0x15fc5d['plugins'][_0x955d('0x11a')](_0x955d('0x88'));return(_0xedbb38,_0x7e6b5e,_0x471db7)=>{const _0x40c6aa=_0x7e6b5e[_0x955d('0x11c')][_0x955d('0x89')](':')[0x1],_0x21d3c8=_0x21e99a[_0x955d('0x4b')](_0x40c6aa);if(!_0x21d3c8)return null;const _0x84c204=_0x955d('0x21')==_0x21d3c8[_0x955d('0x113')]?_0x955d('0x89'):_0x955d('0xf1');if(!_0x471db7[_0x955d('0xd0')][_0x955d('0xf')](_0x7e6b5e[_0x955d('0xef')],_0xedbb38[_0x955d('0xc8')]))return;const _0x2d6099=_0x7e6b5e[_0x955d('0xef')][_0x955d('0x64')](),_0x3b61c4=_0x7e6b5e[_0x955d('0xef')]['start'],_0x299bef=_0x15fc5d['model']['schema'];let _0x58db3c=null,_0x87f53d=null,_0x2eedfc=!0x1,_0x1f685c=!0x1;for(const _0x1d88c7 of _0x2d6099){const _0x445883=_0x1d88c7[_0x955d('0x77')];_0x2eedfc=_0x2eedfc||_0x299bef[_0x955d('0x54')](_0x445883);const _0x3e2507=_0x471db7[_0x955d('0x96')][_0x955d('0x3c')](_0x445883);if(_0x3e2507&&_0x3e2507[_0x955d('0x37')]('addHighlight'))return;_0x955d('0xf8')==_0x1d88c7[_0x955d('0x113')]&&(_0x299bef[_0x955d('0x97')](_0x445883)&&!_0x299bef[_0x955d('0x10f')](_0x445883)&&(_0x445883[_0x955d('0xbc')]||_0x3b61c4[_0x955d('0x7b')]?_0x58db3c&&_0x58db3c['parent']==_0x445883||(_0x58db3c=_0x445883,_0x3384e8(_0x1d88c7['previousPosition']),_0x1f685c=!0x0):_0x87f53d=_0x87f53d||_0x1d88c7[_0x955d('0x17')]));}function _0x3384e8(_0x2baf7b){const _0x181ebf=_0x471db7[_0x955d('0x85')]['createUIElement'](_0x955d('0xd3'),{'class':_0x955d('0x100')+_0x84c204}),_0x56859c=_0x471db7[_0x955d('0x96')][_0x955d('0x4')](_0x2baf7b);_0x21d3c8[_0x955d('0x119')][_0x955d('0x7d')]&&_0x471db7[_0x955d('0x85')]['addClass'](_0x955d('0x100')+_0x84c204+'-new',_0x181ebf),_0x21e99a[_0x955d('0xc1')]==_0x21d3c8&&_0x471db7[_0x955d('0x85')][_0x955d('0xa5')](_0x955d('0xee'),_0x181ebf),_0x471db7['writer'][_0x955d('0x75')](_0x56859c,_0x181ebf),_0x471db7[_0x955d('0x96')][_0x955d('0xe0')](_0x181ebf,_0x7e6b5e['markerName']);}_0x2eedfc||_0x1f685c||!_0x87f53d||_0x3384e8(_0x87f53d);};}(this[_0x955d('0xb8')]),{'priority':_0x955d('0x105')}),this[_0x955d('0xb8')][_0x955d('0x10')][_0x955d('0x6a')]['on'](_0x955d('0xbd'),(_0x3e3fec,_0x5c0779,_0x3a12d)=>{const _0x4bc713=_0x3a12d[_0x955d('0x96')][_0x955d('0xd2')](_0x5c0779[_0x955d('0x11c')]);if(_0x4bc713)for(const _0x536c34 of _0x4bc713)(_0x536c34[_0x955d('0x50')]('ck-suggestion-marker-split')||_0x536c34[_0x955d('0x50')]('ck-suggestion-marker-merge'))&&(_0x3a12d[_0x955d('0x96')]['unbindElementFromMarkerName'](_0x536c34,_0x5c0779[_0x955d('0x11c')]),_0x3a12d[_0x955d('0x85')][_0x955d('0x62')](_0x536c34));},{'priority':_0x955d('0x105')}),this[_0x955d('0xb8')][_0x955d('0x10')][_0x955d('0x6a')]['on'](_0x955d('0x15'),(_0x24594e,_0x223919,_0x22936b)=>{const _0x4e3820=_0x223919[_0x955d('0x11c')][_0x955d('0x89')](':')[0x1],_0x4e5ac8=this[_0x955d('0x4b')](_0x4e3820);if(!_0x4e5ac8)return null;const _0x5c2d0a='add'==_0x4e5ac8[_0x955d('0x113')]?'split':'merge';if(_0x22936b[_0x955d('0xd0')][_0x955d('0xf')](_0x223919[_0x955d('0xef')],_0x24594e[_0x955d('0xc8')]))for(const _0x59c7b5 of _0x223919[_0x955d('0xef')][_0x955d('0xc5')]()){if(!_0x59c7b5['is'](_0x955d('0x93'),'softBreak'))continue;const _0x16254e=_0x22936b['writer'][_0x955d('0x1d')](_0x955d('0xd3'),{'class':_0x955d('0x100')+_0x5c2d0a}),_0x5e2d69=_0x22936b[_0x955d('0x96')][_0x955d('0x4')](this['editor']['model']['createPositionBefore'](_0x59c7b5));_0x4e5ac8['data'][_0x955d('0x7d')]&&_0x22936b[_0x955d('0x85')]['addClass'](_0x955d('0x100')+_0x5c2d0a+_0x955d('0x2e'),_0x16254e),this[_0x955d('0xc1')]==_0x4e5ac8&&_0x22936b[_0x955d('0x85')][_0x955d('0xa5')]('ck-suggestion-marker--active',_0x16254e),_0x22936b[_0x955d('0x85')][_0x955d('0x75')](_0x5e2d69,_0x16254e),_0x22936b[_0x955d('0x96')][_0x955d('0xe0')](_0x16254e,_0x223919[_0x955d('0x11c')]);}},{'priority':_0x955d('0x105')}),this['editor'][_0x955d('0x29')][_0x955d('0xfb')]['on'](_0x955d('0x3'),()=>{this[_0x955d('0xb8')][_0x955d('0x10')][_0x955d('0x92')][_0x955d('0x3')](_0x11d3f7=>{for(const _0x5b48d4 of this[_0x955d('0xb8')]['model'][_0x955d('0xfb')][_0x955d('0x7f')]()){const _0x40da65=this[_0x955d('0xb8')][_0x955d('0x29')]['document'][_0x955d('0x11e')](_0x5b48d4),_0x2c57ab=this['editor'][_0x955d('0x10')][_0x955d('0x92')][_0x955d('0xfb')][_0x955d('0x11e')](_0x5b48d4);if(_0x2c57ab){const _0x2a2e69=_0x40da65[_0x955d('0x109')](_0x955d('0xc6'));if(_0x11d3f7['removeAttribute'](_0x955d('0xa2'),_0x2c57ab),_0x11d3f7[_0x955d('0xcb')](_0x955d('0x40'),_0x2c57ab),_0x11d3f7['removeClass']('ck-revision-history-root-remove',_0x2c57ab),_0x11d3f7[_0x955d('0xcb')](_0x955d('0xf7'),_0x2c57ab),_0x2a2e69){const _0x66c2a0=this[_0x955d('0x4b')](_0x2a2e69);if(!_0x66c2a0)return null;_0x11d3f7[_0x955d('0x7e')](_0x955d('0xa2'),_0x2a2e69,_0x2c57ab),_0x11d3f7[_0x955d('0xa5')](_0x955d('0x101')+_0x66c2a0[_0x955d('0x113')],_0x2c57ab),this[_0x955d('0xc1')]==_0x66c2a0&&_0x11d3f7[_0x955d('0xa5')]('ck-revision-history-root--active',_0x2c57ab);}}}});}),this['editor'][_0x955d('0x3d')][_0x955d('0x3e')]('upcast')['dataToMarker']({'view':_0x955d('0x4a'),'model':_0x5c6705=>_0x955d('0x107')+_0x5c6705,'converterPriority':_0x955d('0x94')}),this[_0x955d('0xb8')][_0x955d('0x3d')][_0x955d('0x3e')](_0x955d('0xa6'))['dataToMarker']({'view':'suggestion','model':_0x4973fd=>_0x955d('0x53')+_0x4973fd,'converterPriority':_0x955d('0x94')}),this['editor'][_0x955d('0x3d')][_0x955d('0x3e')](_0x955d('0xe3'))[_0x955d('0xa1')]({'model':'revision-suggestion','view':_0x38374a=>({'name':'suggestion:'+_0x38374a,'group':_0x955d('0x71')}),'converterPriority':_0x955d('0x94')}),this['editor'][_0x955d('0x3d')][_0x955d('0x3e')](_0x955d('0x108'))[_0x955d('0x1e')]({'model':_0x955d('0x71'),'view':_0x422e46=>{const _0x4d788e=_0x422e46[_0x955d('0x11c')][_0x955d('0x89')](':')[0x1];return _0x955d('0xc7')!=_0x4d788e&&_0x955d('0x7c')!=_0x4d788e?null:{'classes':[_0x955d('0x5d'),_0x955d('0xc9')+_0x4d788e]};}}),this[_0x955d('0xb8')][_0x955d('0x10')][_0x955d('0x6a')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x955d('0xb8')],_0x955d('0xf1')),{'priority':_0x955d('0x105')}),this['editor'][_0x955d('0x10')]['downcastDispatcher']['on'](_0x955d('0x9a'),et(this[_0x955d('0xb8')],_0x955d('0x89')),{'priority':'high'}),this[_0x955d('0xb8')][_0x955d('0x10')][_0x955d('0x6a')]['on']('removeMarker:revision-suggestion',(_0x31d9a5,_0x20a7f8,_0x13dadb)=>{const _0x2dd2aa=_0x13dadb[_0x955d('0x96')][_0x955d('0xd2')](_0x20a7f8[_0x955d('0x11c')]);if(_0x2dd2aa)for(const _0x51c981 of _0x2dd2aa)_0x51c981['is'](_0x955d('0x38'))&&(_0x13dadb[_0x955d('0x96')][_0x955d('0x70')](_0x51c981,_0x20a7f8[_0x955d('0x11c')]),_0x13dadb[_0x955d('0x85')][_0x955d('0x62')](_0x51c981));},{'priority':_0x955d('0x105')});}[_0x955d('0x4b')](_0x57fd4d){return this[_0x955d('0x16')][_0x955d('0x11a')](_0x57fd4d);}[_0x955d('0x91')](_0x37c4f0){return this['_changeView']&&this[_0x955d('0x55')][_0x955d('0x72')](),this[_0x955d('0x55')]=new _0x96686b(this[_0x955d('0xb8')]['locale'],_0x37c4f0),this[_0x955d('0x55')];}['_initInteractions'](){this[_0x955d('0xb8')][_0x955d('0x29')][_0x955d('0xfb')][_0x955d('0xb9')][_0x955d('0xe9')]('revision'),this['on'](_0x955d('0xfd'),(_0x1c6aed,_0x2b6c1c,_0x55ff0c,_0x6cb9f7)=>{_0x6cb9f7&&this['_balloon'][_0x955d('0x62')](_0x6cb9f7),_0x55ff0c&&(this[_0x955d('0x4f')][_0x955d('0x21')]({'view':_0x55ff0c,'stackId':_0x955d('0x35'),'position':{'target':()=>{const _0x408112=this[_0x955d('0xb8')]['editing'],_0x388084=this['_getChangeFromId'](_0x55ff0c[_0x955d('0x81')]);let _0x3d4597;if(_0x388084['data'][_0x955d('0x111')]){const _0x2a1480=_0x408112[_0x955d('0x92')][_0x955d('0x11')](_0x388084['rootName']);_0x3d4597=Array[_0x955d('0xe6')](_0x2a1480[_0x955d('0x10c')]());}else{const _0x25d66c=this[_0x955d('0xb8')][_0x955d('0x29')][_0x955d('0x3a')]['get']('revision:'+_0x55ff0c[_0x955d('0x81')]);_0x3d4597=Array[_0x955d('0xe6')](_0x408112['mapper'][_0x955d('0xd2')](_0x25d66c[_0x955d('0xc8')]))['map'](_0x190f98=>_0x408112['view'][_0x955d('0x114')][_0x955d('0x8f')](_0x190f98))['map'](_0x4bde3c=>Array[_0x955d('0xe6')](_0x4bde3c['getClientRects']()))[_0x955d('0x6c')]();}if(!this[_0x955d('0x9e')])return _0x3d4597[0x0];return _0x3d4597[_0x955d('0x99')](_0x10317c=>_0x10317c[_0x955d('0xc')]-0x3<=this[_0x955d('0x9e')]['y']&&_0x10317c['bottom']+0x3>=this[_0x955d('0x9e')]['y']&&_0x10317c['left']-0x3<=this['_activeViewTarget']['x']&&_0x10317c[_0x955d('0xbe')]+0x3>=this[_0x955d('0x9e')]['x'])||_0x3d4597[0x0];}}}),this['_balloon']['showStack'](_0x955d('0x35')));}),this['on'](_0x955d('0xe5'),(_0x15d3a6,_0x4137e6,_0x116989,_0x26159e)=>{this[_0x955d('0x8e')]=_0x116989?this['_getViewForChange'](_0x116989):null,this['editor'][_0x955d('0x29')][_0x955d('0x3')](()=>{const _0x568512=this['editor'][_0x955d('0x10')];_0x26159e&&(_0x26159e[_0x955d('0x119')][_0x955d('0x111')]?_0x568512[_0x955d('0x92')]['change'](_0x223372=>{_0x223372[_0x955d('0xcb')]('ck-revision-history-root--active',_0x568512[_0x955d('0x92')][_0x955d('0xfb')][_0x955d('0x11e')](_0x26159e['rootName']));}):_0x568512[_0x955d('0x2f')]('revision:'+_0x26159e['id'])),_0x116989&&(_0x116989['data']['isOnRoot']?_0x568512[_0x955d('0x92')][_0x955d('0x3')](_0x16fe56=>{_0x16fe56['addClass']('ck-revision-history-root--active',_0x568512[_0x955d('0x92')][_0x955d('0xfb')][_0x955d('0x11e')](_0x116989[_0x955d('0x30')]));}):_0x568512[_0x955d('0x2f')](_0x955d('0xd1')+_0x116989['id']));});}),this[_0x955d('0xd7')](this[_0x955d('0xb8')][_0x955d('0x10')][_0x955d('0x92')][_0x955d('0xfb')],_0x955d('0xe4'),(_0x171e3d,_0x5cb937)=>{if(this['activeChange'])return;const _0x28bd45=this['_findChangeIdFromDomTarget'](_0x5cb937[_0x955d('0x103')]),_0x5f230f=this[_0x955d('0x16')][_0x955d('0x11a')](_0x28bd45);_0x5f230f?(this[_0x955d('0x9e')]={'x':_0x5cb937[_0x955d('0x4d')]['x'],'y':_0x5cb937[_0x955d('0x4d')]['y']},this[_0x955d('0x8e')]=this[_0x955d('0x91')](_0x5f230f)):(this['_activeViewTarget']=null,this[_0x955d('0x8e')]=null);}),this[_0x955d('0xd7')](this[_0x955d('0xb8')]['editing'][_0x955d('0x92')][_0x955d('0xfb')],_0x955d('0xb0'),(_0x4ad1e5,_0x5df008)=>{const _0x4e7ce3=this['_findChangeIdFromDomTarget'](_0x5df008[_0x955d('0x103')]),_0x5f176e=this[_0x955d('0x16')]['get'](_0x4e7ce3);_0x5f176e?(this['_activeViewTarget']={'x':_0x5df008[_0x955d('0x4d')]['x'],'y':_0x5df008['domEvent']['y']},_0x5f176e===this['activeChange']?this['_balloon']['updatePosition']():this[_0x955d('0xc1')]=_0x5f176e):(this[_0x955d('0x9e')]=null,this['activeChange']=null);});}[_0x955d('0xe2')](_0x547e05){do{const _0x3f1432=_0x547e05[_0x955d('0x109')](_0x955d('0xa2'));if(_0x3f1432)return _0x3f1432;_0x547e05=_0x547e05[_0x955d('0xf4')];}while(_0x547e05);return null;}[_0x955d('0x18')](){this['editor'][_0x955d('0x29')][_0x955d('0x3')](_0x188735=>{for(const _0x1961fe of this[_0x955d('0xb8')][_0x955d('0x29')][_0x955d('0x3a')])_0x188735[_0x955d('0x10d')](_0x1961fe);});}}function et(_0x30c001,_0x44a142){return(_0x4a66ea,_0x5187ed,_0x13d5e8)=>{if(!_0x13d5e8['consumable'][_0x955d('0xf')](_0x5187ed[_0x955d('0xef')],_0x4a66ea[_0x955d('0xc8')]))return;const _0x1a1989=_0x5187ed[_0x955d('0xef')][_0x955d('0x64')](),_0x18915c=_0x5187ed[_0x955d('0xef')][_0x955d('0x19')],_0x22d644=_0x30c001[_0x955d('0x29')][_0x955d('0xbf')];let _0x2628d=null,_0x517e74=null,_0x340c8b=!0x1,_0x295822=!0x1;for(const _0x29e127 of _0x1a1989){const _0x31aa39=_0x29e127[_0x955d('0x77')];_0x340c8b=_0x340c8b||_0x22d644[_0x955d('0x54')](_0x31aa39);const _0x4c005e=_0x13d5e8['mapper'][_0x955d('0x3c')](_0x31aa39);if(_0x4c005e&&_0x4c005e[_0x955d('0x37')]('addHighlight'))return;_0x955d('0xf8')==_0x29e127[_0x955d('0x113')]&&(_0x22d644[_0x955d('0x97')](_0x31aa39)&&!_0x22d644[_0x955d('0x10f')](_0x31aa39)&&(_0x31aa39[_0x955d('0xbc')]||_0x18915c[_0x955d('0x7b')]?_0x2628d&&_0x2628d['parent']==_0x31aa39||(_0x2628d=_0x31aa39,_0x2c7896(_0x29e127[_0x955d('0x17')]),_0x295822=!0x0):_0x517e74=_0x517e74||_0x29e127[_0x955d('0x17')]));}function _0x2c7896(_0x4acfc9){const _0xcc4da4=_0x13d5e8[_0x955d('0x96')][_0x955d('0x4')](_0x4acfc9),_0x1b577f=_0x13d5e8[_0x955d('0x85')][_0x955d('0x1d')](_0x955d('0xd3'),{'class':_0x955d('0xc9')+_0x44a142});_0x13d5e8[_0x955d('0x85')]['insert'](_0xcc4da4,_0x1b577f),_0x13d5e8['mapper'][_0x955d('0xe0')](_0x1b577f,_0x5187ed[_0x955d('0x11c')]);}_0x340c8b||_0x295822||!_0x517e74||_0x2c7896(_0x517e74);};}export class RestoreRevisionCommand extends _0x40e8f6{constructor(_0x12e92b){super(_0x12e92b);const _0x253861=_0x12e92b[_0x955d('0x5f')]['get'](d);this[_0x955d('0x27')]=!0x1,this[_0x955d('0xd7')](_0x253861,_0x955d('0x7a'),()=>this[_0x955d('0x44')]()),this[_0x955d('0xd7')](_0x253861,'change:isEnabled',()=>this[_0x955d('0x44')]());}[_0x955d('0xd5')](){const _0x2779c7=this[_0x955d('0xb8')],_0x247d56=_0x2779c7['plugins'][_0x955d('0x11a')](d),_0x8c3555=_0x247d56[_0x955d('0xeb')]?_0x247d56[_0x955d('0x39')]['newRevisionId']:null;_0x2779c7['config'][_0x955d('0x11a')](_0x955d('0xaf'))[_0x955d('0xba')](_0x8c3555);}[_0x955d('0x44')](){const {isReady:_0x481716,isEnabled:_0x3b8995}=this[_0x955d('0xb8')]['plugins'][_0x955d('0x11a')](d);this[_0x955d('0xc2')]=_0x481716&&_0x3b8995;}}export class ShowChangeCommand extends _0x40e8f6{constructor(_0x30cb09,{direction:_0x228774}){super(_0x30cb09);const _0x4684fe=_0x30cb09[_0x955d('0x5f')][_0x955d('0x11a')](d);this[_0x955d('0x27')]=!0x1,this['_step']='forward'===_0x228774?0x1:-0x1,this[_0x955d('0xd7')](_0x4684fe,_0x955d('0x7a'),()=>this[_0x955d('0x44')]()),this[_0x955d('0xd7')](_0x4684fe,'change:isEnabled',()=>this[_0x955d('0x44')]());}['execute'](){const _0x4468da=this[_0x955d('0xb8')],_0x26cef3=_0x4468da['plugins']['get'](d),{isNavigationMode:_0x12d2c7,currentChangeNumber:_0x2842c5}=_0x26cef3;let _0x379ef1;if(_0x26cef3['activeChange']=_0x12d2c7?_0x26cef3['diff'][_0x955d('0xdd')][_0x955d('0x11a')](_0x2842c5+this[_0x955d('0x6')]):_0x26cef3[_0x955d('0x39')][_0x955d('0xdd')][_0x955d('0x13')],_0x26cef3[_0x955d('0xc1')]['data']['isOnRoot'])_0x379ef1=_0x4468da[_0x955d('0x10')][_0x955d('0x92')][_0x955d('0x11')](_0x26cef3[_0x955d('0xc1')][_0x955d('0x30')]);else{const _0x2eac5b=_0x4468da['model']['markers'][_0x955d('0x11a')](_0x955d('0xd1')+_0x26cef3[_0x955d('0xc1')]['id']);_0x379ef1=_0x23587b(_0x4468da[_0x955d('0x10')],_0x2eac5b);}_0x4f7207({'target':_0x379ef1,'viewportOffset':0x28});}[_0x955d('0x44')](){const {isNavigationMode:_0x35993e,currentChangeNumber:_0x41b278,numberOfChanges:_0x547ccd,isReady:_0x4dc5ba,isEnabled:_0x3ae540}=this[_0x955d('0xb8')][_0x955d('0x5f')][_0x955d('0x11a')](d);this[_0x955d('0xc2')]=!!(_0x3ae540&&_0x4dc5ba&&_0x547ccd)&&(!_0x35993e||(0x1===this[_0x955d('0x6')]?_0x41b278<_0x547ccd-0x1:_0x41b278>0x0));}}
|
|
23
|
+
const _0x51b7=['changes','isAtStart','vid','isAfter','isOnRoot','hasClass','nodeAfter','keys','children','adapter','requires','processor','schema','findIndex','insert','parse','ck-revision-history-root--active','userId','_update','_threeWayMerge','addRevision','downcastDispatcher','_refreshStartEndIndex','data','indexOf','writer','revision-start','enqueueChange','activeChange','suggestion:','revision-suggestion','isInline','splice','_markInsertions','change:activeView','_markSuggestions','bindElementToMarker','selection','compare','then','side','_markMarkers','createPositionFromPath','isAttached','createRangeIn','WidgetToolbarRepository','forward','_getViewObj','getIndex','attributesBefore','find','checkAttribute','changeId','values','highest','flat','getRoot','filter','string','next','error','shift','ck-suggestion-marker','editor','mouseover','addRoot','push','code','revision','revision-viewer','isSuggestion','set','showPreviousChange','execute','_makeTape','_processTape','addMarker:revision','showStack','_getRevisionsRange','ck-suggestion-marker-','updatePosition','isBefore','unshift','addRevisionData','commands','ck-revision-history-root-','isRemoveSuggestion','slice','getChild','domEvent','item','markerName','affectsData','startIndex','uiElement','parent','get','getWalker','data-change-id','_removeUnsupportedChanges','createUIElement','isIncorrect','toViewElement','addHighlight','_makeModelFromTape','attributes','merge','includes','revision:','elementToAttribute','_revisions','_makeModelFromViewString','insertions','distance','removeAttribute','from','isAdded','enableReadOnlyMode','model','isObject','_getDiff','end','upcast','destroy','backward','maxOffset','domConverter','forceDisabled','change:numberOfChanges','attribute:vid','split','restoreRevision','viewItem','getDomRoot','getRootNames','_removeRevisionMarkers','removeMarker:revision-suggestion','revision-comment:','change:isReady','consume','unbindElementFromMarkerName','change:isEnabled','isLimit','low','ck-suggestion-marker--active','modelRange','getItems','getRevisionRootsAttributes','diff','_balloon','detachRoot','length','newRevisionId','plugins','delete','POSITIVE_INFINITY','add','done','markerNameToElements','test','view','document','getAttribute','revisionHistoryAttachChange','nextSibling','_setConversion','listenTo','_setChanges','elementStart','createRevision','vid_start','revisionHistoryLabel','ck-suggestion-marker-merge','clear','elementEnd','suggestion','_findChangeIdFromDomTarget','activeView','toViewPosition','markersStart','map','wrap','conversion','isAtEnd','isEnabled','getClientRects','createPositionBefore','_joinTapes','concat','createRange','consumable','remove','deletions','start','type','bottom','span','nextPosition','ck-revision-history-root-add','object','_changeIdToChange','sort','previousPosition','comment','attachChange','_fixObsoleteTags','editingDowncast','oldRevisionId','toViewRange','addClass','default','_setDistance','isContent','level','_step','diffData','stop','element','isRemoved','useFillerType','_initInteractions','createAttributeElement','ck-revision-history-root-remove','markerRange','pairId','resolve','all','init','ck-editor__editable__overlay','observeMarkers','_activeViewTarget','removeClass','name','config','getRevision','repository','isBlock','target','isAddSuggestion','isReady','deletion','first','getCustomProperty','change:activeChange','startsWith','_getChangeFromId','restoreRevisionCallback','showNextChange','markerToData','mapper','marked','getRevisionData','markersEnd','rootName','collaboration.channelId','_changeView','attributesAfter','markerToHighlight','removeMarker','RevisionViewer','for','change','numberOfChanges','reconvertMarker','_removeMissingPairs','getAttributes','high','endIndex','text','insertion','_cleanMarkers','markers','_cleanUp','isEqual','forEach','element:pre','revision-suggestion:','left','bind','revisionHistory','hasAttribute','has','_markMismatchedRemovedTags','_sortAndFilterDiffChanges','_appendChild','dataDowncast','editing','ck-suggestion-preview-marker-','right','loadRevisionData','return','vid_end','range','addMarker:revision-suggestion:deletion','RevisionsRepository','pluginName','refresh','index','abs','_data','-new','setAttribute','_getViewForChange','softBreak'];(function(_0x1475bf,_0x51b771){const _0x1eb776=function(_0x10c631){while(--_0x10c631){_0x1475bf['push'](_0x1475bf['shift']());}};_0x1eb776(++_0x51b771);}(_0x51b7,0xb9));const _0x1eb7=function(_0x1475bf,_0x51b771){_0x1475bf=_0x1475bf-0x0;let _0x1eb776=_0x51b7[_0x1475bf];return _0x1eb776;};import{Plugin as _0x4e01f2,Command as _0x1b9488}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x31f9c3}from'ckeditor5/src/utils';import{ContextualBalloon as _0x472063}from'ckeditor5/src/ui';import{DocumentFragment as _0x49eb37,Element as _0x2eb7dd,Text as _0x2bb13a,ViewDocumentFragment as _0x4d64c6,ViewText as _0x4ed475,ViewElement as _0x476983,ViewContainerElement as _0x50fc99,ViewAttributeElement as _0x34ac1e,ViewEmptyElement as _0x3aa67c,ViewRawElement as _0x4b85fc,ViewUIElement as _0x3907ae}from'ckeditor5/src/engine';import{Users as _0x4ed9cb,getMarkerDomElement as _0x549ae7}from'ckeditor5-collaboration/src/collaboration-core';import _0x790867 from'./ui/revisionviewer/changedetailsview';import _0x1749d9 from'./revisionsrepository';import _0x2aab27 from'./changeitem';import{default as _0x62e71a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x522e3c}from'lodash-es';const tt={'c':_0x50fc99,'a':_0x34ac1e,'e':_0x3aa67c,'r':_0x4b85fc,'u':_0x3907ae};export default class d extends _0x4e01f2{static get[_0x1eb7('0x6e')](){return _0x1eb7('0x4a');}static get[_0x1eb7('0x81')](){return[_0x4ed9cb,_0x472063,_0x1749d9];}constructor(_0x272627){super(_0x272627),this[_0x1eb7('0x32')]=this[_0x1eb7('0xb6')][_0x1eb7('0x110')][_0x1eb7('0xd7')](_0x1eb7('0x6d')),this['set'](_0x1eb7('0x93'),null),this['set']('activeView',null),this[_0x1eb7('0x2d')]=null,this['set'](_0x1eb7('0x10b'),null),this[_0x1eb7('0xbe')](_0x1eb7('0x36'),!0x1),this[_0x1eb7('0xbe')](_0x1eb7('0x12f'),!0x0),this['on'](_0x1eb7('0x104'),(_0x4549c4,_0x359220,_0x21fa4d)=>{this['activeChange']=null,this[_0x1eb7('0x128')]=null,this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x4c')](_0x75c0fa=>{for(const _0x1222f2 of this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['document']['roots'])_0x21fa4d?_0x75c0fa[_0x1eb7('0x2e')](_0x1eb7('0x2b'),_0x1222f2):_0x75c0fa[_0x1eb7('0x18')]('ck-editor__editable__overlay',_0x1222f2);});}),this[_0x1eb7('0x5d')]('isNavigationMode')['to'](this,_0x1eb7('0x93'),_0x28b0c1=>null!==_0x28b0c1),this[_0x1eb7('0x5d')]('currentChangeNumber')['to'](this,_0x1eb7('0x36'),this,_0x1eb7('0x10b'),this,_0x1eb7('0x93'),(_0x3f6caf,_0x3a15bf,_0x3dff8b)=>_0x3f6caf&&_0x3dff8b?_0x3a15bf[_0x1eb7('0x77')][_0x1eb7('0xa7')](_0x3dff8b):0x0),this[_0x1eb7('0x5d')](_0x1eb7('0x4d'))['to'](this,_0x1eb7('0x36'),this,'diff',(_0xd7bb7f,_0x2c0235)=>_0xd7bb7f?_0x2c0235[_0x1eb7('0x77')][_0x1eb7('0x10e')]:0x0),this[_0x1eb7('0x46')]=null,this[_0x1eb7('0xf')]=new Map(),this['adapter']=null,this[_0x1eb7('0x10c')]=this[_0x1eb7('0xb6')][_0x1eb7('0x110')][_0x1eb7('0xd7')](_0x472063);}[_0x1eb7('0x2a')](){const _0x2b7cbd=this['editor'],_0x2aaa05=new ShowChangeCommand(_0x2b7cbd,{'direction':_0x1eb7('0xf3')}),_0x4189e8=new ShowChangeCommand(_0x2b7cbd,{'direction':'forward'});(_0x2b7cbd[_0x1eb7('0xcb')][_0x1eb7('0x113')](_0x1eb7('0xbf'),_0x2aaa05),_0x2b7cbd[_0x1eb7('0xcb')][_0x1eb7('0x113')](_0x1eb7('0x3e'),_0x4189e8),_0x2b7cbd[_0x1eb7('0xcb')]['add'](_0x1eb7('0xfa'),new RestoreRevisionCommand(_0x2b7cbd)),this['on'](_0x1eb7('0xf7'),()=>{_0x2aaa05[_0x1eb7('0x6f')](),_0x4189e8[_0x1eb7('0x6f')]();}),this[_0x1eb7('0x11c')](),this[_0x1eb7('0x23')](),_0x2b7cbd[_0x1eb7('0xec')]('revision-viewer'),_0x2b7cbd[_0x1eb7('0x110')][_0x1eb7('0x60')](_0x1eb7('0xa4')))&&_0x2b7cbd['plugins'][_0x1eb7('0xd7')]('WidgetToolbarRepository')[_0x1eb7('0xf6')](_0x1eb7('0xbc'));}async[_0x1eb7('0x42')](_0x2abb0b){await this['loadRevisionData'](_0x2abb0b);const _0x651f04={};for(const _0x519308 in _0x2abb0b[_0x1eb7('0x1e')]){if(_0x2abb0b[_0x1eb7('0x1e')][_0x519308][_0x1eb7('0x13')]&&!_0x2abb0b[_0x1eb7('0x1e')][_0x519308][_0x1eb7('0x13')][_0x1eb7('0xa2')])continue;const _0x240a04=this['_removeRevisionMarkers'](JSON[_0x1eb7('0x86')](_0x2abb0b[_0x1eb7('0x1e')][_0x519308][_0x1eb7('0xe7')])),_0x58c9e6=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['document'],_0x229763=new _0x4d64c6(_0x58c9e6,_0x240a04['map'](_0x221422=>this[_0x1eb7('0xa6')](_0x221422)));this[_0x1eb7('0xb6')]['data'][_0x1eb7('0x82')][_0x1eb7('0x22')](_0x1eb7('0x41')),_0x651f04[_0x519308]=this[_0x1eb7('0xb6')][_0x1eb7('0x8e')][_0x1eb7('0x82')]['toData'](_0x229763),this[_0x1eb7('0xb6')]['data'][_0x1eb7('0x82')][_0x1eb7('0x22')](_0x1eb7('0x19'));}return _0x651f04;}async[_0x1eb7('0x10a')](_0x524a37){await this[_0x1eb7('0x68')](_0x524a37);const _0x4383e1={};for(const _0x11378a in _0x524a37[_0x1eb7('0x1e')])_0x524a37[_0x1eb7('0x1e')][_0x11378a][_0x1eb7('0x13')]&&!_0x524a37[_0x1eb7('0x1e')][_0x11378a][_0x1eb7('0x13')][_0x1eb7('0xa2')]||(_0x4383e1[_0x11378a]=_0x524a37[_0x1eb7('0x1e')][_0x11378a]['attributesAfter']||{});return _0x4383e1;}['_removeRevisionMarkers'](_0x13ed99){return(_0x13ed99=_0x13ed99[_0x1eb7('0xb0')](_0x1ff7b1=>!_0x1ff7b1[_0x1eb7('0x2f')]||_0x1eb7('0x91')!==_0x1ff7b1[_0x1eb7('0x2f')]&&'revision-end'!==_0x1ff7b1['name']))['forEach'](_0x2a6791=>{_0x1eb7('0xb1')!=typeof _0x2a6791&&(_0x2a6791[_0x1eb7('0x7f')]=this[_0x1eb7('0xfe')](_0x2a6791[_0x1eb7('0x7f')]),_0x2a6791['attributes']=_0x2a6791[_0x1eb7('0xe0')]['filter'](_0x195241=>!_0x195241[0x0][_0x1eb7('0x3b')]('data-revision-')));}),_0x13ed99;}async[_0x1eb7('0x9d')](_0x38e920,_0x235c51,_0x51e1cd=!0x1){if(!this[_0x1eb7('0x12f')])return;const _0x2954b6=this[_0x1eb7('0x10b')],_0x110cd9=this[_0x1eb7('0x32')],_0x465954=_0x1eb7('0xb1')==typeof _0x38e920?_0x110cd9['getRevision'](_0x38e920):_0x38e920,_0x2648a4=_0x1eb7('0xb1')==typeof _0x235c51?_0x110cd9['getRevision'](_0x235c51):_0x235c51,_0x4a51f9=_0x465954['id'],_0x55b725=_0x2648a4?_0x2648a4['id']:null;if(!_0x51e1cd&&this[_0x1eb7('0x10b')]&&this[_0x1eb7('0x10b')][_0x1eb7('0x10f')]===_0x4a51f9&&this[_0x1eb7('0x10b')][_0x1eb7('0x16')]===_0x55b725)return Promise[_0x1eb7('0x28')]();this['isReady']=!0x1,this[_0x1eb7('0x128')]=null,this[_0x1eb7('0x93')]=null,this[_0x1eb7('0x10b')]=new _0x62e71a(_0x4a51f9,_0x55b725);const _0x4a6590=this[_0x1eb7('0xc5')](_0x465954,_0x2648a4,!0x0)[_0x1eb7('0x12b')](_0x16a50c=>this[_0x1eb7('0x68')](_0x16a50c));return _0x4a6590['push'](new Promise(_0x2d10e7=>{setTimeout(_0x2d10e7,0x14);})),Promise[_0x1eb7('0x29')](_0x4a6590)['then'](()=>{if(!this[_0x1eb7('0x12f')])return;this[_0x1eb7('0x57')]();const _0x4efc08=this[_0x1eb7('0xef')](_0x4a51f9,_0x55b725);for(const _0x4239e0 of _0x4efc08[_0x1eb7('0x77')])this['_changeIdToChange'][_0x1eb7('0xbe')](_0x4239e0['id'],_0x4239e0);this[_0x1eb7('0xb6')][_0x1eb7('0xed')]['enqueueChange']({'isUndoable':!0x1},_0x3d3744=>{for(const _0x4752c2 of this['editor'][_0x1eb7('0xed')]['document']['getRootNames']())_0x3d3744[_0x1eb7('0x10d')](_0x4752c2);for(const _0x3aff7f of Object[_0x1eb7('0x7e')](_0x4efc08[_0x1eb7('0xed')])){const _0x5a127c=_0x3d3744[_0x1eb7('0xb8')](_0x3aff7f);for(const _0x13c874 of Object[_0x1eb7('0x7e')](_0x4efc08[_0x1eb7('0xe0')][_0x3aff7f]))_0x3d3744[_0x1eb7('0x74')](_0x13c874,_0x4efc08[_0x1eb7('0xe0')][_0x3aff7f][_0x13c874],_0x5a127c);_0x3d3744[_0x1eb7('0x85')](_0x4efc08['model'][_0x3aff7f],_0x5a127c,0x0);}}),this[_0x1eb7('0x10b')][_0x1eb7('0x11e')](this[_0x1eb7('0x62')](_0x4efc08[_0x1eb7('0x77')])),this[_0x1eb7('0x36')]=!0x0;})['catch'](_0x48e0ff=>{console[_0x1eb7('0xb3')](_0x48e0ff),this['_cleanUp'](),_0x2954b6&&(this[_0x1eb7('0x10b')]=_0x2954b6),this[_0x1eb7('0x36')]=!0x0;});}[_0x1eb7('0xca')](_0x1fe596,_0x3f13a2){const _0x4e9391=this[_0x1eb7('0x32')][_0x1eb7('0x120')](_0x1fe596);return _0x4e9391['on'](_0x1eb7('0x89'),(_0x25a5e6,_0x229c1a,_0x5b1ce2)=>_0x3f13a2(_0x229c1a,_0x5b1ce2,_0x4e9391)),this['repository'][_0x1eb7('0x8b')](_0x4e9391),_0x4e9391;}[_0x1eb7('0x68')](_0x3b5ec6){if(!_0x3b5ec6||_0x3b5ec6['diffData'])return Promise[_0x1eb7('0x28')]();{const _0x476553=this[_0x1eb7('0xb6')][_0x1eb7('0x30')][_0x1eb7('0xd7')](_0x1eb7('0x45'));return this[_0x1eb7('0x80')][_0x1eb7('0x31')]({'channelId':_0x476553,'revisionId':_0x3b5ec6['id']})[_0x1eb7('0x9e')](_0x20e10d=>{_0x3b5ec6[_0x1eb7('0x89')]({'diffData':_0x20e10d[_0x1eb7('0x1e')]},!0x0);});}}[_0x1eb7('0x57')](){this[_0x1eb7('0x93')]=null,this[_0x1eb7('0x55')](),this[_0x1eb7('0x46')]&&this[_0x1eb7('0x46')][_0x1eb7('0xf2')](),this['_changeView']=null,this[_0x1eb7('0xf')][_0x1eb7('0x124')](),this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x92')]({'isUndoable':!0x1},_0x5e97c2=>{for(const _0x50bfbb of this['editor'][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xfd')]())_0x5e97c2[_0x1eb7('0x10d')](_0x50bfbb);});}[_0x1eb7('0x62')](_0x29dcdd){const _0x491ca1=[],_0x33b98d=new Map();for(const _0x3a8a25 of this['editor'][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xfd')]()){const _0x36f970=this['editor'][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0xfc')](_0x3a8a25);if(!_0x36f970)continue;const _0x37d6ab=_0x36f970['getClientRects']()['item'](0x0);_0x37d6ab&&(_0x491ca1['push'](_0x3a8a25),_0x33b98d[_0x1eb7('0xbe')](_0x3a8a25,_0x37d6ab));}return _0x491ca1[_0x1eb7('0x10')]((_0x37b8a0,_0x786bb1)=>{const _0x139029=_0x33b98d[_0x1eb7('0xd7')](_0x37b8a0),_0x3c5882=_0x33b98d['get'](_0x786bb1);return _0x139029['y']-_0x3c5882['y']||_0x139029['x']-_0x3c5882['x'];}),(_0x29dcdd=_0x29dcdd[_0x1eb7('0xb0')](_0x38f81f=>_0x491ca1[_0x1eb7('0xe2')](_0x38f81f[_0x1eb7('0x44')])))[_0x1eb7('0x10')]((_0x3758e4,_0x580e31)=>_0x491ca1[_0x1eb7('0x8f')](_0x3758e4['rootName'])-_0x491ca1['indexOf'](_0x580e31[_0x1eb7('0x44')])),_0x29dcdd;}[_0x1eb7('0xc1')](_0xf5b5b9){const _0x3e4def=Array[_0x1eb7('0xea')](_0xf5b5b9['markers'])['filter'](([_0x4833cd,_0x43811b])=>_0x4833cd['startsWith'](_0x1eb7('0xe3'))&&!_0x43811b['isCollapsed']),_0x27c08e=Array[_0x1eb7('0xea')](this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0xa3')](_0xf5b5b9)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3e4def['length'])for(const _0x28e552 of _0x27c08e){const [_0x3b0ccf,_0x3ef4c1]=_0x3e4def[0x0],[,_0x135cc7,_0x1a8551]=_0x3b0ccf['split'](':');if(_0x3ef4c1['end']['isEqual'](_0x28e552[_0x1eb7('0xc')])&&_0x3e4def[_0x1eb7('0xb4')](),(_0x28e552[_0x1eb7('0x11')]['isEqual'](_0x3ef4c1[_0x1eb7('0x8')])||_0x28e552[_0x1eb7('0x11')][_0x1eb7('0x7a')](_0x3ef4c1['start']))&&(_0x1eb7('0x54')==_0x135cc7?_0x28e552[_0x1eb7('0xeb')]={'userId':_0x1a8551}:_0x1eb7('0x37')==_0x135cc7&&(_0x28e552[_0x1eb7('0x21')]={'userId':_0x1a8551})),0x0==_0x3e4def[_0x1eb7('0x10e')])break;}return _0x27c08e;}[_0x1eb7('0x8d')](_0x25fcc7){const _0xc80ba0=new Map();for(let _0x2efae2=0x0;_0x2efae2<_0x25fcc7[_0x1eb7('0x10e')];_0x2efae2++)_0x1eb7('0x53')===_0x25fcc7[_0x2efae2]['type']?(_0x25fcc7[_0x2efae2][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0x2efae2,_0x25fcc7[_0x2efae2]['item']['endIndex']=_0x2efae2):('elementStart'===_0x25fcc7[_0x2efae2]['type']?_0x25fcc7[_0x2efae2]['item'][_0x1eb7('0xd4')]=_0x2efae2:_0x1eb7('0x125')===_0x25fcc7[_0x2efae2][_0x1eb7('0x9')]&&(_0x25fcc7[_0x2efae2][_0x1eb7('0xd1')][_0x1eb7('0x52')]=_0x2efae2),_0xc80ba0[_0x1eb7('0xbe')](_0x25fcc7[_0x2efae2]['id'],_0x2efae2));for(const _0x51b0e1 of _0xc80ba0[_0x1eb7('0xac')]())_0x1eb7('0x11f')===_0x25fcc7[_0x51b0e1][_0x1eb7('0x9')]?_0x25fcc7[_0x51b0e1][_0x1eb7('0xd1')]['endIndex']=_0xc80ba0[_0x1eb7('0xd7')](_0x25fcc7[_0x51b0e1]['pairId']):_0x1eb7('0x125')===_0x25fcc7[_0x51b0e1][_0x1eb7('0x9')]&&(_0x25fcc7[_0x51b0e1][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0xc80ba0['get'](_0x25fcc7[_0x51b0e1][_0x1eb7('0x27')]));}[_0x1eb7('0xc2')](_0x11fe5a){for(let _0x141043=0x0;_0x141043<_0x11fe5a['length'];_0x141043++){if(_0x1eb7('0x11f')===_0x11fe5a[_0x141043][_0x1eb7('0x9')])_0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0x141043;else{if(_0x1eb7('0x125')===_0x11fe5a[_0x141043][_0x1eb7('0x9')]){_0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0x52')]=_0x141043;const _0x2cc802=_0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0xd4')];_0x11fe5a[_0x2cc802]['pairId']=_0x11fe5a[_0x141043]['id'],_0x11fe5a[_0x141043][_0x1eb7('0x27')]=_0x11fe5a[_0x2cc802]['id'];}else _0x11fe5a[_0x141043][_0x1eb7('0xd1')][_0x1eb7('0xd4')]=_0x141043,_0x11fe5a[_0x141043][_0x1eb7('0xd1')]['endIndex']=_0x141043,_0x11fe5a[_0x141043]['pairId']=null;}_0x11fe5a[_0x141043][_0x1eb7('0x12a')]||(_0x11fe5a[_0x141043]['markersStart']=[],_0x11fe5a[_0x141043][_0x1eb7('0x43')]=[]);}}[_0x1eb7('0x98')](_0x36f872,_0x34742f){const _0x69109=_0x36f872[_0x1eb7('0xb0')](_0x49ef05=>!_0x49ef05[_0x1eb7('0xeb')]);for(let _0x2735d9=0x0;_0x2735d9<_0x34742f['length'];_0x2735d9++)_0x34742f[_0x2735d9][_0x1eb7('0xeb')]&&(_0x69109[_0x2735d9][_0x1eb7('0xeb')]=_0x34742f[_0x2735d9][_0x1eb7('0xeb')]);}[_0x1eb7('0xe6')](_0x3d6b10){const _0x4a5e4a=JSON['parse'](_0x3d6b10),_0x3dfcbe=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['document'],_0x1d4aa3=new _0x4d64c6(_0x3dfcbe,_0x4a5e4a[_0x1eb7('0x12b')](_0xf0cbc2=>this[_0x1eb7('0xa6')](_0xf0cbc2)));return this[_0x1eb7('0xb6')][_0x1eb7('0x8e')]['toModel'](_0x1d4aa3);}[_0x1eb7('0xa6')](_0x1b1859){const _0x29d9a5=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x118')];if(_0x1eb7('0xb1')==typeof _0x1b1859)return new _0x4ed475(_0x29d9a5,_0x1b1859);{const _0x69cf3f=_0x1b1859[_0x1eb7('0x7f')][_0x1eb7('0x12b')](_0x296ff0=>this['_getViewObj'](_0x296ff0));return new(tt[_0x1b1859['type']]||_0x476983)(_0x29d9a5,_0x1b1859[_0x1eb7('0x2f')],_0x1b1859['attributes'],_0x69cf3f);}}['_getDiff'](_0x57e2d9,_0x26f332=null){const _0x441c5f=this['repository']['getRevision'](_0x57e2d9),_0x3eb708=_0x26f332?this[_0x1eb7('0x32')][_0x1eb7('0x31')](_0x26f332):null,_0x4a211b=this[_0x1eb7('0xc5')](_0x441c5f,_0x3eb708),_0x1345fe=_0x4a211b[_0x4a211b['length']-0x1],_0x55360f=new Map(),_0x228ad2={'model':{},'attributes':{},'changes':[]},_0x140fcf=new Set(),_0x318614=new Map();for(let _0x13c614=_0x4a211b[_0x1eb7('0x10e')]-0x1;_0x13c614>=0x0;_0x13c614--){const _0x417f03=_0x4a211b[_0x13c614];for(const _0xc62eaf of Object['keys'](_0x417f03[_0x1eb7('0x1e')]))if(_0x417f03[_0x1eb7('0x1e')][_0xc62eaf][_0x1eb7('0x13')]){const _0x52e2b9=_0x417f03[_0x1eb7('0x1e')][_0xc62eaf]['attachChange'];_0x52e2b9[_0x1eb7('0xa2')]?(_0x140fcf['add'](_0xc62eaf),_0x318614[_0x1eb7('0x60')](_0xc62eaf)&&_0x318614[_0x1eb7('0xd7')](_0xc62eaf)[_0x1eb7('0x88')]==_0x52e2b9[_0x1eb7('0x88')]?_0x318614[_0x1eb7('0x111')](_0xc62eaf):_0x318614[_0x1eb7('0xbe')](_0xc62eaf,_0x52e2b9)):_0x318614['has'](_0xc62eaf)?(_0x140fcf['delete'](_0xc62eaf),_0x318614['delete'](_0xc62eaf)):(_0x140fcf['add'](_0xc62eaf),_0x318614[_0x1eb7('0xbe')](_0xc62eaf,_0x52e2b9));}else _0x140fcf[_0x1eb7('0x113')](_0xc62eaf);}for(const _0x3127bb of _0x140fcf){const _0x3f0dc4=_0x318614[_0x1eb7('0x60')](_0x3127bb)&&!_0x318614[_0x1eb7('0xd7')](_0x3127bb)[_0x1eb7('0xa2')];let _0x1fab46=_0x3f0dc4?_0x4a211b[_0x1eb7('0x10e')]-0x1:0x0;const _0x3d2bc1=_0x3f0dc4?-0x1:0x1;for(;_0x4a211b[_0x1fab46];){const _0x1c2696=_0x4a211b[_0x1fab46];if(_0x1c2696[_0x1eb7('0x1e')][_0x3127bb]){const _0x50f9a9=_0x3f0dc4?_0x1c2696[_0x1eb7('0x1e')][_0x3127bb][_0x1eb7('0xa8')]:_0x1c2696[_0x1eb7('0x1e')][_0x3127bb][_0x1eb7('0x47')];_0x228ad2[_0x1eb7('0xe0')][_0x3127bb]=_0x50f9a9?_0x522e3c(_0x50f9a9):{};break;}_0x1fab46+=_0x3d2bc1;}}for(const _0xe2de12 of _0x4a211b){_0xe2de12['model']={};for(const _0xf04d99 of _0xe2de12['authors'])_0x55360f[_0x1eb7('0xbe')](_0xf04d99['id'],_0xf04d99);for(const _0x359f45 of _0x140fcf){const _0x37cc23=_0xe2de12[_0x1eb7('0x1e')][_0x359f45]?_0xe2de12['diffData'][_0x359f45][_0x1eb7('0xe7')]:'[]',_0x1c9ff7=_0xe2de12[_0x1eb7('0x1e')][_0x359f45]?_0xe2de12[_0x1eb7('0x1e')][_0x359f45][_0x1eb7('0x7')]:'[]';_0xe2de12[_0x1eb7('0xed')][_0x359f45]={'insertions':this['_makeModelFromViewString'](_0x37cc23),'deletions':this['_makeModelFromViewString'](_0x1c9ff7)};}}for(const _0x440191 of _0x140fcf){let _0x1a411c=null,_0x2e1d90=0x0;const _0x3b9e10=new Map(Array[_0x1eb7('0xea')](_0x441c5f[_0x1eb7('0xed')][_0x440191][_0x1eb7('0xe7')][_0x1eb7('0x56')])[_0x1eb7('0xb0')](([_0x24c126])=>!_0x24c126[_0x1eb7('0x3b')](_0x1eb7('0xe3'))));let _0x3a6080=0x0;for(const _0x3aa3ff of _0x4a211b){const _0x15a9ab=this[_0x1eb7('0xc1')](_0x3aa3ff[_0x1eb7('0xed')][_0x440191][_0x1eb7('0xe7')]);_0x3aa3ff==_0x441c5f?(_0x1a411c=_0x15a9ab,_0x2e1d90=_0x1a411c[_0x1eb7('0x10e')],_0x1a411c[_0x1eb7('0x59')](_0x419b0c=>{_0x419b0c['id']=_0x3a6080++;}),this['_processTape'](_0x1a411c)):this['_markInsertions'](_0x1a411c,_0x15a9ab);const _0x243db2=_0x1a411c['filter'](_0x575a8b=>!_0x575a8b[_0x1eb7('0xeb')])[_0x1eb7('0x12b')](_0x4f2880=>_0x4f2880['id']);let _0x201a44=0x0;const _0x360635=this[_0x1eb7('0xc1')](_0x3aa3ff[_0x1eb7('0xed')][_0x440191][_0x1eb7('0x7')]);_0x360635[_0x1eb7('0x59')](_0x19bd1e=>{_0x19bd1e[_0x1eb7('0x21')]?_0x19bd1e['id']=_0x2e1d90++:_0x19bd1e['id']=_0x243db2[_0x201a44++];}),this['_processTape'](_0x360635),this[_0x1eb7('0x1a')](_0x1a411c,_0x1eb7('0xeb')),this[_0x1eb7('0x1a')](_0x360635,_0x1eb7('0x21')),_0x3aa3ff==_0x441c5f&&this[_0x1eb7('0xa0')](_0x1a411c,_0x3b9e10),_0x1a411c=this[_0x1eb7('0x2')](_0x1a411c,_0x360635),this[_0x1eb7('0x8d')](_0x1a411c),this[_0x1eb7('0x1a')](_0x1a411c,_0x1eb7('0x21'));}_0x1a411c=_0x1a411c[_0x1eb7('0xb0')](_0x3faedb=>!(_0x3faedb[_0x1eb7('0xeb')]&&_0x3faedb['isRemoved']));const _0x31939a=new Map(_0x1345fe[_0x1eb7('0xed')][_0x440191][_0x1eb7('0x7')][_0x1eb7('0x56')]),_0x121a75=new Set(_0x3b9e10[_0x1eb7('0x7e')]());for(const _0x2c4726 of _0x31939a['keys']())_0x121a75[_0x1eb7('0x111')](_0x2c4726);this[_0x1eb7('0x9a')](_0x1a411c,_0x121a75),this[_0x1eb7('0x14')](_0x1a411c),_0x1a411c=this['_removeMissingPairs'](_0x1a411c),_0x1a411c=this[_0x1eb7('0x61')](_0x1a411c),_0x1a411c=this[_0x1eb7('0xda')](_0x1a411c);const {root:_0x221eb8,changes:_0xe6a864}=this['_makeModelFromTape'](_0x1a411c,_0x55360f,_0x440191);_0x228ad2[_0x1eb7('0xed')][_0x440191]=_0x221eb8;const _0xdad3d4=_0x318614['get'](_0x440191);if(_0xdad3d4){const _0x30efdb=_0x55360f[_0x1eb7('0xd7')](_0xdad3d4[_0x1eb7('0x88')]),_0x3b13f0=new _0x2aab27({'author':_0x30efdb,'type':_0xdad3d4[_0x1eb7('0xa2')]?_0x1eb7('0x113'):_0x1eb7('0x6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x440191});_0xe6a864[_0x1eb7('0xc9')](_0x3b13f0),_0x228ad2[_0x1eb7('0xe0')][_0x440191][_0x1eb7('0x11a')]=_0x3b13f0['id'];}_0x228ad2[_0x1eb7('0x77')]=_0x228ad2[_0x1eb7('0x77')][_0x1eb7('0x3')](_0xe6a864);}return _0x228ad2;}['_markMarkers'](_0x5e4116,_0x54f342){for(let _0x1f2633=0x0;_0x1f2633<_0x5e4116[_0x1eb7('0x10e')];_0x1f2633++)for(const [_0x45fa0f,_0x534d73]of _0x54f342)_0x534d73[_0x1eb7('0x8')][_0x1eb7('0x58')](_0x5e4116[_0x1f2633][_0x1eb7('0x11')])&&_0x5e4116[_0x1f2633][_0x1eb7('0x12a')][_0x1eb7('0xb9')](_0x45fa0f),_0x534d73[_0x1eb7('0xf0')][_0x1eb7('0x58')](_0x5e4116[_0x1f2633][_0x1eb7('0xc')])&&_0x5e4116[_0x1f2633][_0x1eb7('0x43')]['push'](_0x45fa0f);}[_0x1eb7('0x2')](_0x46e0e4,_0x480565){let _0xac20a6=[],_0x78befd=0x0,_0x4a7720=0x0;for(;_0x78befd<_0x46e0e4['length']||_0x4a7720<_0x480565[_0x1eb7('0x10e')];){const _0x370e82=_0x46e0e4[_0x78befd]||{},_0x300634=_0x480565[_0x4a7720]||{};if(_0x370e82['id']==_0x300634['id'])_0x78befd++,_0x4a7720++,_0xac20a6[_0x1eb7('0xb9')](_0x370e82);else{if(_0x300634[_0x1eb7('0x21')]&&_0x370e82['isAdded']){const {commonTape:_0x568930,iEnd:_0x32fd4b,jEnd:_0x2dbe26}=this[_0x1eb7('0x8a')](_0x46e0e4,_0x78befd,_0x480565,_0x4a7720);_0xac20a6=_0xac20a6[_0x1eb7('0x3')](_0x568930),_0x78befd=_0x32fd4b,_0x4a7720=_0x2dbe26;}else _0x300634[_0x1eb7('0x21')]?(_0x4a7720++,_0xac20a6[_0x1eb7('0xb9')](_0x300634)):(_0x78befd++,_0xac20a6[_0x1eb7('0xb9')](_0x370e82));}}return _0xac20a6;}[_0x1eb7('0x9a')](_0x131db0,_0x1b4101){const _0x3837a1=[];for(let _0x17f749=0x0;_0x17f749<_0x131db0[_0x1eb7('0x10e')];_0x17f749++){for(let _0x15d0bc=0x0;_0x15d0bc<_0x131db0[_0x17f749]['markersStart'][_0x1eb7('0x10e')];_0x15d0bc++){const _0x2dad32=_0x131db0[_0x17f749][_0x1eb7('0x12a')][_0x15d0bc];if(!_0x1b4101[_0x1eb7('0x60')](_0x2dad32))continue;const {group:_0x2a7f50,type:_0x2bed8,authorId:_0x4c4021}=_0x857b3(_0x2dad32);_0x1eb7('0x95')!=_0x2a7f50||'insertion'!=_0x2bed8&&_0x1eb7('0x37')!=_0x2bed8||(_0x3837a1[_0x1eb7('0xc9')]({'type':_0x2bed8,'name':_0x2dad32,'userId':_0x4c4021}),_0x131db0[_0x17f749][_0x1eb7('0x12a')][_0x1eb7('0x97')](_0x15d0bc,0x1),_0x15d0bc--);}_0x1fec70(_0x131db0[_0x17f749]);for(let _0x1d94b6=0x0;_0x1d94b6<_0x131db0[_0x17f749][_0x1eb7('0x43')][_0x1eb7('0x10e')];_0x1d94b6++){const _0x3629c6=_0x131db0[_0x17f749][_0x1eb7('0x43')][_0x1d94b6];if(!_0x1b4101[_0x1eb7('0x60')](_0x3629c6))continue;const {group:_0x56b3d9,type:_0x3936cc}=_0x857b3(_0x3629c6);if('revision-suggestion'!=_0x56b3d9||'insertion'!=_0x3936cc&&_0x1eb7('0x37')!=_0x3936cc)continue;_0x131db0[_0x17f749][_0x1eb7('0x43')][_0x1eb7('0x97')](_0x1d94b6,0x1),_0x1d94b6--;const _0x353273=_0x3837a1[_0x1eb7('0x84')](_0x41073c=>_0x41073c['name']==_0x3629c6);_0x353273>-0x1&&_0x3837a1[_0x1eb7('0x97')](_0x353273,0x1);}}function _0x857b3(_0x3217e6){const _0x26170b=_0x3217e6['split'](':');return{'group':_0x26170b[0x0],'type':_0x26170b[0x1],'subType':_0x26170b[_0x1eb7('0x10e')]>=0x5?_0x26170b[0x2]:null,'id':_0x26170b[_0x1eb7('0x10e')]<0x5?_0x26170b[0x2]:_0x26170b[0x3],'authorId':_0x26170b[_0x1eb7('0x10e')]<0x5?_0x26170b[0x3]:_0x26170b[0x4],'markerCount':0x6==_0x26170b[_0x1eb7('0x10e')]?_0x26170b[0x5]:null};}function _0x1fec70(_0x573b22){for(let _0x5bddf7=0x0;_0x5bddf7<_0x3837a1['length'];_0x5bddf7++){if(_0x573b22[_0x1eb7('0xeb')]&&'insertion'==_0x3837a1[_0x5bddf7][_0x1eb7('0x9')])return _0x573b22[_0x1eb7('0x35')]=_0x3837a1[_0x5bddf7],void delete _0x573b22[_0x1eb7('0xeb')];if(!_0x573b22[_0x1eb7('0xeb')]&&!_0x573b22[_0x1eb7('0x21')]&&_0x1eb7('0x37')==_0x3837a1[_0x5bddf7][_0x1eb7('0x9')])return void(_0x573b22['isRemoveSuggestion']=_0x3837a1[_0x5bddf7]);}}}[_0x1eb7('0x1a')](_0x22f484,_0x4a6cd3){let _0x374625=0x0,_0x456c47=!0x1;const _0x1a4a66=new Map();for(const _0x31ec65 of _0x22f484)_0x31ec65[_0x4a6cd3]?_0x456c47&&(_0x374625++,_0x456c47=!0x1):(_0x374625++,_0x456c47=!0x0),_0x1a4a66[_0x1eb7('0xbe')](_0x31ec65['id'],_0x374625);for(let _0x541eba=0x0;_0x541eba<_0x22f484[_0x1eb7('0x10e')];_0x541eba++){if('isRemoved'==_0x4a6cd3&&_0x22f484[_0x541eba][_0x1eb7('0xeb')]||_0x1eb7('0xeb')==_0x4a6cd3&&_0x22f484[_0x541eba][_0x1eb7('0x21')])continue;if(_0x1eb7('0x53')==_0x22f484[_0x541eba][_0x1eb7('0x9')]){_0x22f484[_0x541eba][_0x1eb7('0xe8')]=0x0;continue;}const _0x5d8ddb=_0x1a4a66[_0x1eb7('0xd7')](_0x22f484[_0x541eba][_0x1eb7('0x27')]),_0x5f5bfa=_0x1a4a66[_0x1eb7('0xd7')](_0x22f484[_0x541eba]['id']);_0x22f484[_0x541eba][_0x1eb7('0xe8')]=_0x5d8ddb-_0x5f5bfa;}}[_0x1eb7('0xc5')](_0x5f264f,_0xe50a14,_0x14a438=!0x1){const _0x55b4e1=[];let _0x1535cf=this[_0x1eb7('0x32')][_0x1eb7('0xa7')](_0x5f264f),_0x5db581=this['repository'][_0x1eb7('0xa7')](_0xe50a14);for(-0x1==_0x5db581&&(_0x5db581=this[_0x1eb7('0x32')][_0x1eb7('0xe5')][_0x1eb7('0x10e')],_0x14a438=!0x1);_0x1535cf<_0x5db581;)_0x55b4e1['push'](this[_0x1eb7('0x32')][_0x1eb7('0x31')](_0x1535cf)),_0x1535cf++;return _0x14a438&&_0x55b4e1[_0x1eb7('0xb9')](this[_0x1eb7('0x32')][_0x1eb7('0x31')](_0x1535cf)),_0x55b4e1;}[_0x1eb7('0x8a')](_0x57d954,_0x11402c,_0x437414,_0x2fec74){const _0x4b8838=this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x83')];let _0x19a6a9=_0x11402c;for(;_0x57d954[_0x19a6a9]&&_0x57d954[_0x19a6a9][_0x1eb7('0xeb')];)_0x19a6a9++;let _0x546921=_0x2fec74;for(;_0x437414[_0x546921]&&_0x437414[_0x546921][_0x1eb7('0x21')];)_0x546921++;_0xf76aee(_0x57d954,_0x11402c,_0x19a6a9),_0xf76aee(_0x437414,_0x2fec74,_0x546921);const _0x176aae=_0x437414[_0x1eb7('0xce')](_0x2fec74,_0x546921)[_0x1eb7('0x3')](_0x57d954[_0x1eb7('0xce')](_0x11402c,_0x19a6a9));return _0x176aae[_0x1eb7('0x10')]((_0x55ad40,_0x447af7)=>_0x55ad40[_0x1eb7('0x9f')]!=_0x447af7[_0x1eb7('0x9f')]?_0x55ad40[_0x1eb7('0x9f')]-_0x447af7[_0x1eb7('0x9f')]:_0x55ad40['level']!=_0x447af7[_0x1eb7('0x1c')]?_0x55ad40[_0x1eb7('0x1c')]-_0x447af7[_0x1eb7('0x1c')]:_0x55ad40[_0x1eb7('0xe8')]!=_0x447af7['distance']?_0x447af7['distance']-_0x55ad40['distance']:!!_0x55ad40[_0x1eb7('0xeb')]!=!!_0x447af7[_0x1eb7('0xeb')]?-0x1==_0x55ad40['side']||0x0==_0x55ad40[_0x1eb7('0x9f')]?_0x55ad40[_0x1eb7('0xeb')]?-0x1:0x1:_0x55ad40[_0x1eb7('0xeb')]?0x1:-0x1:_0x55ad40[_0x1eb7('0x70')]-_0x447af7['index']),{'commonTape':_0x176aae,'iEnd':_0x19a6a9,'jEnd':_0x546921};function _0xf76aee(_0x410234,_0x4aeed3,_0x1b26a1){let _0x7ac168=-0x1,_0x33c0f5=Number[_0x1eb7('0x112')],_0x1b3714=!0x0;for(let _0x550475=_0x4aeed3;_0x550475<_0x1b26a1;_0x550475++)if(_0x4b8838[_0x1eb7('0x96')](_0x410234[_0x550475][_0x1eb7('0xd1')])||(_0x1b3714=!0x1),_0x410234[_0x550475][_0x1eb7('0xd1')][_0x1eb7('0xd4')]<_0x4aeed3&&(_0x7ac168=_0x550475),_0x410234[_0x550475][_0x1eb7('0xd1')][_0x1eb7('0x52')]>=_0x1b26a1){_0x33c0f5=_0x550475;break;}_0x1b3714&&(_0x7ac168=_0x1b26a1-0x1);for(let _0x5c5c9b=_0x4aeed3;_0x5c5c9b<_0x1b26a1;_0x5c5c9b++)_0x410234[_0x5c5c9b][_0x1eb7('0x9f')]=_0x5c5c9b<=_0x7ac168?-0x1:_0x5c5c9b<_0x33c0f5?0x0:0x1,_0x410234[_0x5c5c9b][_0x1eb7('0x70')]=_0x5c5c9b;let _0x1296b5=0x0;for(let _0x9e2a87=_0x4aeed3;_0x9e2a87<=_0x7ac168;_0x9e2a87++)0x0==_0x410234[_0x9e2a87][_0x1eb7('0xe8')]?_0x410234[_0x9e2a87][_0x1eb7('0x1c')]=_0x1296b5:(_0x1296b5++,_0x410234[_0x9e2a87][_0x1eb7('0x1c')]=_0x1296b5,_0x1296b5++);for(let _0x38dbe8=_0x4aeed3;_0x38dbe8<_0x1b26a1;_0x38dbe8++)0x0==_0x410234[_0x38dbe8][_0x1eb7('0x9f')]&&(_0x410234[_0x38dbe8][_0x1eb7('0x1c')]=_0x1296b5);_0x1296b5=0x0;for(let _0x168b3e=_0x1b26a1-0x1;_0x168b3e>=_0x33c0f5;_0x168b3e--)0x0==_0x410234[_0x168b3e][_0x1eb7('0xe8')]?_0x410234[_0x168b3e][_0x1eb7('0x1c')]=_0x1296b5:(_0x1296b5--,_0x410234[_0x168b3e][_0x1eb7('0x1c')]=_0x1296b5,_0x1296b5--);}}['_fixObsoleteTags'](_0x58ee32){const _0x33e6ee=new Map(),_0x5061cb=this['editor'][_0x1eb7('0xed')][_0x1eb7('0x83')];for(let _0x4dc266=0x1;_0x4dc266<_0x58ee32[_0x1eb7('0x10e')];_0x4dc266++){let _0x4016fb,_0x10493c,_0x75edc6;const _0x55343c=_0x58ee32[_0x4dc266],_0x2d89ba=_0x58ee32[_0x4dc266-0x1];if(_0x1eb7('0x53')==_0x55343c[_0x1eb7('0x9')])continue;if(_0x55343c[_0x1eb7('0x9')]!=_0x2d89ba[_0x1eb7('0x9')])continue;if(!_0x5061cb[_0x1eb7('0x33')](_0x2d89ba['item'])||_0x5061cb[_0x1eb7('0x105')](_0x2d89ba['item']))continue;if(!_0x5061cb['isBlock'](_0x55343c['item'])||_0x5061cb[_0x1eb7('0x105')](_0x55343c[_0x1eb7('0xd1')]))continue;if((_0x58ee32[_0x4dc266][_0x1eb7('0xeb')]||_0x58ee32[_0x4dc266][_0x1eb7('0x35')])&&_0x58ee32[_0x4dc266-0x1]['isRemoved'])_0x4016fb=_0x58ee32[_0x4dc266],_0x10493c=_0x58ee32[_0x4dc266-0x1],_0x75edc6=_0x4dc266-0x1;else{if(!_0x58ee32[_0x4dc266][_0x1eb7('0x21')]||!_0x58ee32[_0x4dc266-0x1][_0x1eb7('0xeb')]&&!_0x58ee32[_0x4dc266-0x1][_0x1eb7('0x35')])continue;_0x4016fb=_0x58ee32[_0x4dc266-0x1],_0x10493c=_0x58ee32[_0x4dc266],_0x75edc6=_0x4dc266;}const _0x4bae3e=_0x4016fb[_0x1eb7('0x1c')]==_0x10493c[_0x1eb7('0x1c')],_0x1d46d0=Math[_0x1eb7('0x71')](_0x4016fb[_0x1eb7('0x1c')])<Math[_0x1eb7('0x71')](_0x10493c[_0x1eb7('0x1c')])&&0x0==_0x10493c['distance'];(_0x4bae3e||_0x1d46d0)&&(_0x33e6ee['set'](_0x10493c['id'],_0x4016fb['id']),_0x58ee32['splice'](_0x75edc6,0x1),_0x4dc266--,_0x4016fb[_0x1eb7('0xeb')]=!0x1);}for(let _0x125eb4=0x0;_0x125eb4<_0x58ee32[_0x1eb7('0x10e')];_0x125eb4++)_0x33e6ee[_0x1eb7('0x60')](_0x58ee32[_0x125eb4][_0x1eb7('0x27')])&&(_0x58ee32[_0x125eb4]['pairId']=_0x33e6ee[_0x1eb7('0xd7')](_0x58ee32[_0x125eb4][_0x1eb7('0x27')]));}[_0x1eb7('0x4f')](_0x540b04){const _0x27c133=new Set(_0x540b04[_0x1eb7('0x12b')](_0x482ba7=>_0x482ba7['id']));for(let _0x5ab089=0x0;_0x5ab089<_0x540b04[_0x1eb7('0x10e')];_0x5ab089++)_0x27c133[_0x1eb7('0x60')](_0x540b04[_0x5ab089][_0x1eb7('0x27')])||0x0==_0x540b04[_0x5ab089][_0x1eb7('0xe8')]||(_0x540b04[_0x5ab089]['isIncorrect']=!0x0);return _0x540b04[_0x1eb7('0xb0')](_0x36d3ac=>!_0x36d3ac[_0x1eb7('0xdc')]);}[_0x1eb7('0x61')](_0x4d75b8){const _0xbb2b6=new Set();for(let _0x528d4c=0x0;_0x528d4c<_0x4d75b8[_0x1eb7('0x10e')];_0x528d4c++){if(_0xbb2b6[_0x1eb7('0x60')](_0x4d75b8[_0x528d4c]['id'])&&_0x4d75b8[_0x528d4c][_0x1eb7('0x21')]&&(_0x4d75b8[_0x528d4c]['isIncorrect']=!0x0),_0x4d75b8[_0x528d4c][_0x1eb7('0xdc')])continue;if(0x0==_0x4d75b8[_0x528d4c][_0x1eb7('0xe8')])continue;if(_0x1eb7('0x11f')!=_0x4d75b8[_0x528d4c]['type'])continue;if(null==_0x4d75b8[_0x528d4c][_0x1eb7('0x27')])continue;let _0x28db6e=_0x528d4c+0x1,_0x411a26=0x0;for(;_0x4d75b8[_0x28db6e]['id']!=_0x4d75b8[_0x528d4c]['pairId'];)_0x1eb7('0x11f')==_0x4d75b8[_0x28db6e]['type']?_0x411a26++:_0x1eb7('0x125')==_0x4d75b8[_0x28db6e][_0x1eb7('0x9')]&&_0x411a26--,_0x28db6e++;if(0x0!=_0x411a26){if(_0x4d75b8[_0x528d4c]['isRemoved'])_0x4d75b8[_0x528d4c][_0x1eb7('0xdc')]=!0x0;else for(;_0x28db6e!=_0x528d4c;)_0x4d75b8[_0x28db6e]['isRemoved']&&0x0!=_0x4d75b8[_0x28db6e][_0x1eb7('0xe8')]&&(_0x4d75b8[_0x28db6e][_0x1eb7('0xdc')]=!0x0,_0xbb2b6['add'](_0x4d75b8[_0x28db6e][_0x1eb7('0x27')])),_0x28db6e--;}}return _0x4d75b8[_0x1eb7('0xb0')](_0x102298=>!_0x102298[_0x1eb7('0xdc')]);}[_0x1eb7('0xda')](_0x767e94){const _0x510e3c=this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x83')];for(let _0x29a065=0x0;_0x29a065<_0x767e94[_0x1eb7('0x10e')];_0x29a065++){if(!(_0x767e94[_0x29a065][_0x1eb7('0xeb')]||_0x767e94[_0x29a065]['isAddSuggestion']||_0x767e94[_0x29a065][_0x1eb7('0x21')]||_0x767e94[_0x29a065][_0x1eb7('0xcd')]))continue;if(0x0==_0x767e94[_0x29a065][_0x1eb7('0xe8')])continue;const _0x22337f=_0x767e94[_0x29a065][_0x1eb7('0xd1')];_0x510e3c[_0x1eb7('0x33')](_0x22337f)||_0x510e3c['isLimit'](_0x22337f)||(_0x767e94[_0x29a065][_0x1eb7('0xeb')]&&delete _0x767e94[_0x29a065]['isAdded'],_0x767e94[_0x29a065]['isAddSuggestion']&&delete _0x767e94[_0x29a065][_0x1eb7('0x35')],_0x767e94[_0x29a065][_0x1eb7('0xcd')]&&delete _0x767e94[_0x29a065][_0x1eb7('0xcd')],_0x767e94[_0x29a065][_0x1eb7('0x21')]&&(_0x767e94[_0x29a065][_0x1eb7('0xdc')]=!0x0));}return _0x767e94['filter'](_0x18e01f=>!_0x18e01f[_0x1eb7('0xdc')]);}[_0x1eb7('0xdf')](_0x4690f8,_0x7a52f7,_0x4cb3b1){const _0x2ae210=new _0x49eb37(),_0x5783e7=[],_0x2d94bf=new Map(),_0x47f322=this['editor'][_0x1eb7('0xed')],_0x47026a=_0x47f322[_0x1eb7('0x83')],_0x4ffcae=[_0x2ae210],_0x3cc630={},_0x4d6b22={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3f8217=null;const _0x121aba=[0x0];for(let _0x58fa43=0x0;_0x58fa43<_0x4690f8[_0x1eb7('0x10e')];_0x58fa43++){let _0x369712,_0x408bfb;if(_0x1eb7('0x11f')===_0x4690f8[_0x58fa43][_0x1eb7('0x9')]){_0x369712=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba);const _0x4721b7=new _0x2eb7dd(_0x4690f8[_0x58fa43]['item'][_0x1eb7('0x2f')],_0x4690f8[_0x58fa43][_0x1eb7('0xd1')][_0x1eb7('0x50')]());_0x4ffcae[0x0][_0x1eb7('0x63')](_0x4721b7),_0x121aba[_0x1eb7('0xb9')](0x0),_0x4ffcae[_0x1eb7('0xc9')](_0x4721b7),_0x408bfb=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba),_0x3f8217=null;}else{if(_0x1eb7('0x125')===_0x4690f8[_0x58fa43]['type'])_0x4ffcae[_0x1eb7('0xb4')](),_0x369712=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba),_0x121aba['pop'](),_0x121aba[_0x121aba['length']-0x1]++,_0x408bfb=_0x47f322['createPositionFromPath'](_0x2ae210,_0x121aba),_0x3f8217=null;else{if(_0x369712=_0x47f322['createPositionFromPath'](_0x2ae210,_0x121aba),_0x3f8217&&_0x2b6cbe(_0x3f8217,_0x4690f8[_0x58fa43][_0x1eb7('0xd1')]))_0x3f8217[_0x1eb7('0x72')]+=_0x4690f8[_0x58fa43]['item'][_0x1eb7('0x8e')];else{const _0x543d56=new _0x2bb13a(_0x4690f8[_0x58fa43][_0x1eb7('0xd1')][_0x1eb7('0x8e')],_0x4690f8[_0x58fa43]['item'][_0x1eb7('0x50')]());_0x4ffcae[0x0][_0x1eb7('0x63')](_0x543d56),_0x3f8217=_0x543d56;}_0x121aba[_0x121aba[_0x1eb7('0x10e')]-0x1]+=_0x4690f8[_0x58fa43][_0x1eb7('0xd1')]['offsetSize'],_0x408bfb=_0x47f322[_0x1eb7('0xa1')](_0x2ae210,_0x121aba);}}for(const _0x5c5349 of _0x4690f8[_0x58fa43][_0x1eb7('0x12a')])_0x2d94bf[_0x1eb7('0xbe')](_0x5c5349,{'start':_0x369712,'end':null});_0x4896ae(_0x1eb7('0xcd'),_0x58fa43,_0x369712,_0x408bfb),_0x4896ae(_0x1eb7('0x35'),_0x58fa43,_0x369712,_0x408bfb),_0x4896ae(_0x1eb7('0x21'),_0x58fa43,_0x369712,_0x408bfb),_0x4896ae('isAdded',_0x58fa43,_0x369712,_0x408bfb);for(const _0x42206d of _0x4690f8[_0x58fa43][_0x1eb7('0x43')]){_0x2d94bf[_0x1eb7('0xd7')](_0x42206d)[_0x1eb7('0xf0')]=_0x408bfb;}}for(const [_0x22e508,_0x132309]of _0x2d94bf){const _0xe0ae0a=this[_0x1eb7('0xb6')]['model'][_0x1eb7('0x4')](_0x132309[_0x1eb7('0x8')],_0x132309[_0x1eb7('0xf0')]);_0x2ae210[_0x1eb7('0x56')][_0x1eb7('0xbe')](_0x22e508,_0xe0ae0a);}return _0x5783e7[_0x1eb7('0x10')]((_0x112159,_0x308e23)=>{const _0x25ee72=_0x2ae210[_0x1eb7('0x56')][_0x1eb7('0xd7')](_0x1eb7('0xe3')+_0x112159['id']),_0x5737d4=_0x2ae210['markers'][_0x1eb7('0xd7')](_0x1eb7('0xe3')+_0x308e23['id']);return _0x25ee72[_0x1eb7('0x8')][_0x1eb7('0xc8')](_0x5737d4[_0x1eb7('0x8')])?-0x1:_0x25ee72[_0x1eb7('0x8')][_0x1eb7('0x7a')](_0x5737d4[_0x1eb7('0x8')])?0x1:_0x25ee72[_0x1eb7('0xf0')][_0x1eb7('0xc8')](_0x5737d4[_0x1eb7('0xf0')])?-0x1:_0x25ee72[_0x1eb7('0xf0')]['isAfter'](_0x5737d4[_0x1eb7('0xf0')])?0x1:_0x1eb7('0x113')===_0x112159[_0x1eb7('0x9')]?-0x1:0x1;}),{'root':_0x2ae210,'changes':_0x5783e7};function _0x4896ae(_0x141532,_0x3e100e,_0x46fcf5,_0x429a64){const _0x375559=!!_0x4690f8[_0x3e100e][_0x141532],_0x24aa14=_0x375559?_0x4690f8[_0x3e100e][_0x141532][_0x1eb7('0x88')]:null,_0x252d3e=_0x3e100e===_0x4690f8[_0x1eb7('0x10e')]-0x1,_0x2742a9=_0x4d6b22[_0x141532][0x0],_0x465799=_0x47026a[_0x1eb7('0xee')](_0x4690f8[_0x3e100e][_0x1eb7('0xd1')]);!_0x3cc630[_0x141532]&&_0x375559?_0x3cc630[_0x141532]={'start':_0x46fcf5,'tapeItem':_0x4690f8[_0x3e100e],'userId':_0x24aa14,'type':_0x141532}:_0x3cc630[_0x141532]&&!_0x375559?(_0x3cc630[_0x141532][_0x1eb7('0xf0')]=_0x46fcf5,_0x170ca3(_0x3cc630[_0x141532]),_0x3cc630[_0x141532]=null):_0x3cc630[_0x141532]&&_0x375559&&_0x3cc630[_0x141532][_0x1eb7('0x88')]!==_0x24aa14&&(_0x3cc630[_0x141532]['end']=_0x46fcf5,_0x2742a9&&_0x2742a9[_0x1eb7('0x88')]===_0x3cc630[_0x141532][_0x1eb7('0x88')]||_0x170ca3(_0x3cc630[_0x141532]),_0x3cc630[_0x141532]={'start':_0x46fcf5,'tapeItem':_0x4690f8[_0x3e100e],'userId':_0x24aa14,'type':_0x141532}),_0x3cc630[_0x141532]&&_0x465799&&(_0x1eb7('0x11f')!==_0x4690f8[_0x3e100e][_0x1eb7('0x9')]||_0x2742a9&&_0x2742a9[_0x1eb7('0x88')]===_0x24aa14||_0x4d6b22[_0x141532]['unshift']({'userId':_0x24aa14,'object':_0x4690f8[_0x3e100e][_0x1eb7('0xd1')],'change':_0x3cc630[_0x141532]}),_0x1eb7('0x125')===_0x4690f8[_0x3e100e][_0x1eb7('0x9')]&&_0x2742a9&&_0x2742a9[_0x1eb7('0xe')]===_0x4690f8[_0x3e100e][_0x1eb7('0xd1')]&&(_0x4d6b22[_0x141532][_0x1eb7('0xb4')](),_0x3cc630[_0x141532]=_0x2742a9['change'])),_0x3cc630[_0x141532]&&_0x252d3e&&(_0x3cc630[_0x141532][_0x1eb7('0xf0')]=_0x429a64,_0x170ca3(_0x3cc630[_0x141532]),_0x3cc630[_0x141532]=null);}function _0x170ca3({start:_0x47728c,end:_0x321663,tapeItem:_0x46440f,userId:_0x43a614,type:_0x1f62c9}){const _0x29b7a3=_0x46440f['item'],_0x1fa535=_0x47f322[_0x1eb7('0x83')][_0x1eb7('0x33')](_0x29b7a3)&&!_0x47f322[_0x1eb7('0x83')][_0x1eb7('0x105')](_0x29b7a3),_0xa7c6bd=_0x47728c[_0x1eb7('0x7d')]==_0x321663['parent']&&_0x321663[_0x1eb7('0x78')];if(_0x1fa535&&_0xa7c6bd)return;const _0x586bff=_0x47f322['createRange'](_0x47728c,_0x321663),_0x590a15=_0x7a52f7[_0x1eb7('0xd7')](_0x43a614),_0x13f81e=new _0x2aab27({'author':_0x590a15,'type':'isAdded'==_0x1f62c9||_0x1eb7('0x35')==_0x1f62c9?'add':'remove','data':{'isSuggestion':_0x1eb7('0x35')==_0x1f62c9||_0x1eb7('0xcd')==_0x1f62c9},'createdAt':new Date(),'rootName':_0x4cb3b1});_0x5783e7[_0x1eb7('0xb9')](_0x13f81e),_0x2ae210[_0x1eb7('0x56')][_0x1eb7('0xbe')](_0x1eb7('0xe3')+_0x13f81e['id'],_0x586bff);}function _0x2b6cbe(_0x24ee63,_0x40eb58){const _0x5f26bf=_0x24ee63[_0x1eb7('0x50')](),_0x4ce396=_0x40eb58[_0x1eb7('0x50')]();for(const _0x2713dd of _0x5f26bf){if(_0x2713dd[0x1]!==_0x40eb58[_0x1eb7('0x119')](_0x2713dd[0x0]))return!0x1;_0x4ce396['next']();}return _0x4ce396[_0x1eb7('0xb2')]()[_0x1eb7('0x114')];}}[_0x1eb7('0x11c')](){this[_0x1eb7('0xb6')][_0x1eb7('0x12d')]['for'](_0x1eb7('0xf1'))['dataToMarker']({'view':_0x1eb7('0xbb')}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x15'))[_0x1eb7('0x48')]({'model':_0x1eb7('0xbb'),'view':_0x41ad02=>{const _0x9de775=_0x41ad02['markerName'][_0x1eb7('0xf9')](':')[0x1],_0x42cc32=this[_0x1eb7('0x3c')](_0x9de775);if(!_0x42cc32)return null;const _0x256e7f=_0x1eb7('0x113')==_0x42cc32['type']?_0x1eb7('0x54'):_0x1eb7('0x37'),_0x55b0dc=[_0x1eb7('0xb5'),'ck-suggestion-marker-'+_0x256e7f];return _0x42cc32[_0x1eb7('0x8e')][_0x1eb7('0xbd')]&&_0x55b0dc[_0x1eb7('0xb9')](_0x1eb7('0xc6')+_0x256e7f+'-new'),this[_0x1eb7('0x93')]==_0x42cc32&&_0x55b0dc['push'](_0x1eb7('0x107')),{'classes':_0x55b0dc,'attributes':{'data-change-id':_0x9de775}};}}),this[_0x1eb7('0xb6')]['conversion']['for'](_0x1eb7('0xf1'))[_0x1eb7('0x113')](_0x4b00b5=>{_0x4b00b5['on'](_0x1eb7('0x5a'),(_0x4769e3,_0xbe2384,_0x4843f3)=>{const _0x42b3e0=_0xbe2384[_0x1eb7('0xfb')][_0x1eb7('0xcf')](0x0);if(!_0x42b3e0||!_0x42b3e0['is'](_0x1eb7('0x20'),_0x1eb7('0xba')))return;if(!_0x4843f3[_0x1eb7('0x5')][_0x1eb7('0x102')](_0x42b3e0,{'attributes':[_0x1eb7('0x121'),_0x1eb7('0x6a')]}))return;const _0x286ba2=_0xbe2384['modelRange'][_0x1eb7('0x8')][_0x1eb7('0x7d')];_0x4843f3['writer'][_0x1eb7('0x74')](_0x1eb7('0x121'),_0x42b3e0[_0x1eb7('0x119')](_0x1eb7('0x121')),_0x286ba2),_0x4843f3['writer'][_0x1eb7('0x74')]('vid_end',_0x42b3e0[_0x1eb7('0x119')]('vid_end'),_0x286ba2);},{'priority':'low'});}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0xf1'))['add'](_0x2fc75a=>{_0x2fc75a['on'](_0x1eb7('0x20'),(_0x2e5f4f,_0x5eb9e3,_0x6c6391)=>{if(!_0x6c6391['consumable'][_0x1eb7('0x102')](_0x5eb9e3[_0x1eb7('0xfb')],{'attributes':[_0x1eb7('0x121'),_0x1eb7('0x6a')]}))return;if(_0x5eb9e3[_0x1eb7('0x108')]['isCollapsed'])return;const _0x1757c2=_0x5eb9e3[_0x1eb7('0x108')][_0x1eb7('0x8')][_0x1eb7('0x7d')];_0x1757c2[_0x1eb7('0x5f')]('vid_start')||_0x1757c2[_0x1eb7('0x5f')](_0x1eb7('0x79'))||(_0x6c6391[_0x1eb7('0x90')][_0x1eb7('0x74')](_0x1eb7('0x121'),_0x5eb9e3[_0x1eb7('0xfb')][_0x1eb7('0x119')](_0x1eb7('0x121')),_0x1757c2),_0x6c6391[_0x1eb7('0x90')][_0x1eb7('0x74')]('vid_end',_0x5eb9e3[_0x1eb7('0xfb')][_0x1eb7('0x119')](_0x1eb7('0x6a')),_0x1757c2));},{'priority':_0x1eb7('0x106')});}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0xf1'))[_0x1eb7('0xe4')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x1eb7('0x79'),'value':_0x4676af=>_0x4676af[_0x1eb7('0x119')](_0x1eb7('0x79'))}}),this[_0x1eb7('0xb6')][_0x1eb7('0xed')]['schema']['on'](_0x1eb7('0xaa'),(_0x489260,[,_0x56b13f])=>{['vid_start','vid_end','vid'][_0x1eb7('0xe2')](_0x56b13f)&&(_0x489260[_0x1eb7('0x69')]=!0x0,_0x489260[_0x1eb7('0x1f')]());},{'priority':_0x1eb7('0xad')}),this[_0x1eb7('0xb6')]['conversion'][_0x1eb7('0x4b')](_0x1eb7('0x64'))[_0x1eb7('0x113')](_0x37bd1b=>{_0x37bd1b['on'](_0x1eb7('0xf8'),(_0x8ca9d1,_0x4eb043,_0x59ff39)=>{if('\x20'!=_0x4eb043[_0x1eb7('0xd1')][_0x1eb7('0x8e')]||_0x4eb043[_0x1eb7('0xd1')][_0x1eb7('0xd6')][_0x1eb7('0xf4')]>0x1)return;if(!_0x59ff39['consumable'][_0x1eb7('0x102')](_0x4eb043[_0x1eb7('0xd1')],_0x8ca9d1['name']))return;const _0x47191b=_0x59ff39[_0x1eb7('0x90')],_0x958f13=_0x59ff39[_0x1eb7('0x40')][_0x1eb7('0x17')](_0x4eb043[_0x1eb7('0x6b')]);_0x47191b[_0x1eb7('0x12c')](_0x958f13,_0x47191b[_0x1eb7('0x24')](_0x1eb7('0xb')));});}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x64'))[_0x1eb7('0x3f')]({'model':_0x1eb7('0xbb')}),this[_0x1eb7('0xb6')]['editing'][_0x1eb7('0x8c')]['on']('addMarker:revision',function(_0x2a89f6){const _0x5386a0=_0x2a89f6[_0x1eb7('0x110')][_0x1eb7('0xd7')](_0x1eb7('0x4a'));return(_0x37a5c5,_0x9f08f9,_0xe02b0a)=>{const _0x349a1e=_0x9f08f9[_0x1eb7('0xd2')][_0x1eb7('0xf9')](':')[0x1],_0x63572c=_0x5386a0[_0x1eb7('0x3c')](_0x349a1e);if(!_0x63572c)return null;const _0x4e4498=_0x1eb7('0x113')==_0x63572c['type']?_0x1eb7('0xf9'):_0x1eb7('0xe1');if(!_0xe02b0a['consumable'][_0x1eb7('0x116')](_0x9f08f9['markerRange'],_0x37a5c5[_0x1eb7('0x2f')]))return;const _0xe940c3=_0x9f08f9['markerRange'][_0x1eb7('0xd8')](),_0x2ad2c4=_0x9f08f9[_0x1eb7('0x26')][_0x1eb7('0x8')],_0x49167b=_0x2a89f6[_0x1eb7('0xed')][_0x1eb7('0x83')];let _0x3a2195=null,_0x2910b0=null,_0x217d9e=!0x1,_0x26b795=!0x1;for(const _0x3b7546 of _0xe940c3){const _0xd3d08d=_0x3b7546[_0x1eb7('0xd1')];_0x217d9e=_0x217d9e||_0x49167b[_0x1eb7('0x1b')](_0xd3d08d);const _0x38256e=_0xe02b0a[_0x1eb7('0x40')][_0x1eb7('0xdd')](_0xd3d08d);if(_0x38256e&&_0x38256e[_0x1eb7('0x39')](_0x1eb7('0xde')))return;'elementEnd'==_0x3b7546[_0x1eb7('0x9')]&&(_0x49167b[_0x1eb7('0x33')](_0xd3d08d)&&!_0x49167b[_0x1eb7('0x105')](_0xd3d08d)&&(_0xd3d08d['nextSibling']||_0x2ad2c4[_0x1eb7('0x12e')]?_0x3a2195&&_0x3a2195[_0x1eb7('0xd6')]==_0xd3d08d||(_0x3a2195=_0xd3d08d,_0x39e0c9(_0x3b7546[_0x1eb7('0x11')]),_0x26b795=!0x0):_0x2910b0=_0x2910b0||_0x3b7546['previousPosition']));}function _0x39e0c9(_0x5ea56e){const _0xd75b9b=_0xe02b0a[_0x1eb7('0x90')][_0x1eb7('0xdb')](_0x1eb7('0xb'),{'class':_0x1eb7('0xc6')+_0x4e4498}),_0x185295=_0xe02b0a['mapper'][_0x1eb7('0x129')](_0x5ea56e);_0x63572c[_0x1eb7('0x8e')][_0x1eb7('0xbd')]&&_0xe02b0a[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0xc6')+_0x4e4498+_0x1eb7('0x73'),_0xd75b9b),_0x5386a0[_0x1eb7('0x93')]==_0x63572c&&_0xe02b0a[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0x107'),_0xd75b9b),_0xe02b0a['writer']['insert'](_0x185295,_0xd75b9b),_0xe02b0a[_0x1eb7('0x40')]['bindElementToMarker'](_0xd75b9b,_0x9f08f9['markerName']);}_0x217d9e||_0x26b795||!_0x2910b0||_0x39e0c9(_0x2910b0);};}(this['editor']),{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x8c')]['on']('removeMarker:revision',(_0x10c591,_0x9bd281,_0x4d73df)=>{const _0x39cd8e=_0x4d73df['mapper'][_0x1eb7('0x115')](_0x9bd281[_0x1eb7('0xd2')]);if(_0x39cd8e)for(const _0x54d822 of _0x39cd8e)(_0x54d822[_0x1eb7('0x7c')]('ck-suggestion-marker-split')||_0x54d822[_0x1eb7('0x7c')](_0x1eb7('0x123')))&&(_0x4d73df[_0x1eb7('0x40')][_0x1eb7('0x103')](_0x54d822,_0x9bd281[_0x1eb7('0xd2')]),_0x4d73df[_0x1eb7('0x90')]['remove'](_0x54d822));},{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0x65')]['downcastDispatcher']['on'](_0x1eb7('0xc3'),(_0xd73dcb,_0x150d7c,_0x576974)=>{const _0x30e5fe=_0x150d7c[_0x1eb7('0xd2')][_0x1eb7('0xf9')](':')[0x1],_0x438940=this[_0x1eb7('0x3c')](_0x30e5fe);if(!_0x438940)return null;const _0x12f22f=_0x1eb7('0x113')==_0x438940[_0x1eb7('0x9')]?_0x1eb7('0xf9'):'merge';if(_0x576974[_0x1eb7('0x5')][_0x1eb7('0x116')](_0x150d7c['markerRange'],_0xd73dcb['name']))for(const _0x2bf3d8 of _0x150d7c[_0x1eb7('0x26')][_0x1eb7('0x109')]()){if(!_0x2bf3d8['is'](_0x1eb7('0x20'),_0x1eb7('0x76')))continue;const _0x461a89=_0x576974[_0x1eb7('0x90')]['createUIElement'](_0x1eb7('0xb'),{'class':'ck-suggestion-marker-'+_0x12f22f}),_0x30793f=_0x576974[_0x1eb7('0x40')][_0x1eb7('0x129')](this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x1')](_0x2bf3d8));_0x438940[_0x1eb7('0x8e')][_0x1eb7('0xbd')]&&_0x576974[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0xc6')+_0x12f22f+'-new',_0x461a89),this[_0x1eb7('0x93')]==_0x438940&&_0x576974[_0x1eb7('0x90')][_0x1eb7('0x18')](_0x1eb7('0x107'),_0x461a89),_0x576974[_0x1eb7('0x90')][_0x1eb7('0x85')](_0x30793f,_0x461a89),_0x576974[_0x1eb7('0x40')][_0x1eb7('0x9b')](_0x461a89,_0x150d7c['markerName']);}},{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0xed')]['document']['on'](_0x1eb7('0x4c'),()=>{this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')]['change'](_0x3661fc=>{for(const _0x3a3e01 of this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xfd')]()){const _0x4f2460=this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0xaf')](_0x3a3e01),_0x424f9e=this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x118')]['getRoot'](_0x3a3e01);if(_0x424f9e){const _0x68f464=_0x4f2460[_0x1eb7('0x119')](_0x1eb7('0x11a'));if(_0x3661fc[_0x1eb7('0xe9')](_0x1eb7('0xd9'),_0x424f9e),_0x3661fc[_0x1eb7('0x2e')](_0x1eb7('0xd'),_0x424f9e),_0x3661fc['removeClass'](_0x1eb7('0x25'),_0x424f9e),_0x3661fc['removeClass'](_0x1eb7('0x87'),_0x424f9e),_0x68f464){const _0x47f057=this['_getChangeFromId'](_0x68f464);if(!_0x47f057)return null;_0x3661fc['setAttribute']('data-change-id',_0x68f464,_0x424f9e),_0x3661fc[_0x1eb7('0x18')](_0x1eb7('0xcc')+_0x47f057[_0x1eb7('0x9')],_0x424f9e),this[_0x1eb7('0x93')]==_0x47f057&&_0x3661fc[_0x1eb7('0x18')](_0x1eb7('0x87'),_0x424f9e);}}}});}),this['editor'][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0xf1'))['dataToMarker']({'view':_0x1eb7('0x12'),'model':_0x4dfeac=>_0x1eb7('0x100')+_0x4dfeac,'converterPriority':_0x1eb7('0xad')}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')]['for']('upcast')['dataToMarker']({'view':_0x1eb7('0x126'),'model':_0x5b8923=>_0x1eb7('0x5b')+_0x5b8923,'converterPriority':_0x1eb7('0xad')}),this[_0x1eb7('0xb6')][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x64'))[_0x1eb7('0x3f')]({'model':_0x1eb7('0x95'),'view':_0x3a2f83=>({'name':_0x1eb7('0x94')+_0x3a2f83,'group':_0x1eb7('0x95')}),'converterPriority':_0x1eb7('0xad')}),this['editor'][_0x1eb7('0x12d')][_0x1eb7('0x4b')](_0x1eb7('0x15'))[_0x1eb7('0x48')]({'model':'revision-suggestion','view':_0x1e8f9e=>{const _0x11add3=_0x1e8f9e[_0x1eb7('0xd2')][_0x1eb7('0xf9')](':')[0x1];return _0x1eb7('0x54')!=_0x11add3&&_0x1eb7('0x37')!=_0x11add3?null:{'classes':['ck-suggestion-preview-marker',_0x1eb7('0x66')+_0x11add3]};}}),this[_0x1eb7('0xb6')]['editing'][_0x1eb7('0x8c')]['on'](_0x1eb7('0x6c'),et(this[_0x1eb7('0xb6')],'merge'),{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')]['editing'][_0x1eb7('0x8c')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x1eb7('0xb6')],_0x1eb7('0xf9')),{'priority':_0x1eb7('0x51')}),this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x8c')]['on'](_0x1eb7('0xff'),(_0x3c1759,_0x146f56,_0xed0b39)=>{const _0x15ac6b=_0xed0b39[_0x1eb7('0x40')][_0x1eb7('0x115')](_0x146f56[_0x1eb7('0xd2')]);if(_0x15ac6b)for(const _0x61b2f4 of _0x15ac6b)_0x61b2f4['is'](_0x1eb7('0xd5'))&&(_0xed0b39[_0x1eb7('0x40')][_0x1eb7('0x103')](_0x61b2f4,_0x146f56[_0x1eb7('0xd2')]),_0xed0b39[_0x1eb7('0x90')][_0x1eb7('0x6')](_0x61b2f4));},{'priority':_0x1eb7('0x51')});}[_0x1eb7('0x3c')](_0x57b006){return this[_0x1eb7('0xf')]['get'](_0x57b006);}[_0x1eb7('0x75')](_0x31226d){return this[_0x1eb7('0x46')]&&this[_0x1eb7('0x46')][_0x1eb7('0xf2')](),this[_0x1eb7('0x46')]=new _0x790867(this[_0x1eb7('0xb6')]['locale'],_0x31226d),this[_0x1eb7('0x46')];}[_0x1eb7('0x23')](){this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x118')][_0x1eb7('0x9c')][_0x1eb7('0x2c')](_0x1eb7('0xbb')),this['on'](_0x1eb7('0x99'),(_0x35fd2e,_0x38acea,_0x557be1,_0x3fc0ae)=>{_0x3fc0ae&&this[_0x1eb7('0x10c')]['remove'](_0x3fc0ae),_0x557be1&&(this['_balloon'][_0x1eb7('0x113')]({'view':_0x557be1,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x47e5f9=this[_0x1eb7('0xb6')][_0x1eb7('0x65')],_0x38bfa9=this[_0x1eb7('0x3c')](_0x557be1[_0x1eb7('0xab')]);let _0x187f13;if(_0x38bfa9[_0x1eb7('0x8e')]['isOnRoot']){const _0x1cea7a=_0x47e5f9[_0x1eb7('0x117')]['getDomRoot'](_0x38bfa9[_0x1eb7('0x44')]);_0x187f13=Array[_0x1eb7('0xea')](_0x1cea7a[_0x1eb7('0x0')]());}else{const _0x47ef8f=this['editor']['model'][_0x1eb7('0x56')]['get'](_0x1eb7('0xe3')+_0x557be1['changeId']);_0x187f13=Array['from'](_0x47e5f9[_0x1eb7('0x40')]['markerNameToElements'](_0x47ef8f[_0x1eb7('0x2f')]))[_0x1eb7('0x12b')](_0x4e58c4=>_0x47e5f9['view'][_0x1eb7('0xf5')]['mapViewToDom'](_0x4e58c4))[_0x1eb7('0x12b')](_0x43a063=>Array[_0x1eb7('0xea')](_0x43a063[_0x1eb7('0x0')]()))[_0x1eb7('0xae')]();}if(!this[_0x1eb7('0x2d')])return _0x187f13[0x0];return _0x187f13[_0x1eb7('0xa9')](_0x9f93b5=>_0x9f93b5['top']-0x3<=this[_0x1eb7('0x2d')]['y']&&_0x9f93b5[_0x1eb7('0xa')]+0x3>=this['_activeViewTarget']['y']&&_0x9f93b5[_0x1eb7('0x5c')]-0x3<=this[_0x1eb7('0x2d')]['x']&&_0x9f93b5[_0x1eb7('0x67')]+0x3>=this[_0x1eb7('0x2d')]['x'])||_0x187f13[0x0];}}}),this[_0x1eb7('0x10c')][_0x1eb7('0xc4')](_0x1eb7('0x122')));}),this['on'](_0x1eb7('0x3a'),(_0x22c322,_0x280d71,_0xa5867b,_0x144a21)=>{this['activeView']=_0xa5867b?this[_0x1eb7('0x75')](_0xa5867b):null,this['editor']['model'][_0x1eb7('0x4c')](()=>{const _0x1999ed=this['editor'][_0x1eb7('0x65')];_0x144a21&&(_0x144a21[_0x1eb7('0x8e')][_0x1eb7('0x7b')]?_0x1999ed[_0x1eb7('0x117')]['change'](_0x24603f=>{_0x24603f[_0x1eb7('0x2e')]('ck-revision-history-root--active',_0x1999ed[_0x1eb7('0x117')][_0x1eb7('0x118')]['getRoot'](_0x144a21[_0x1eb7('0x44')]));}):_0x1999ed[_0x1eb7('0x4e')](_0x1eb7('0xe3')+_0x144a21['id'])),_0xa5867b&&(_0xa5867b['data'][_0x1eb7('0x7b')]?_0x1999ed[_0x1eb7('0x117')][_0x1eb7('0x4c')](_0x545771=>{_0x545771[_0x1eb7('0x18')](_0x1eb7('0x87'),_0x1999ed[_0x1eb7('0x117')]['document'][_0x1eb7('0xaf')](_0xa5867b[_0x1eb7('0x44')]));}):_0x1999ed['reconvertMarker'](_0x1eb7('0xe3')+_0xa5867b['id']));});}),this[_0x1eb7('0x11d')](this[_0x1eb7('0xb6')][_0x1eb7('0x65')]['view']['document'],_0x1eb7('0xb7'),(_0x480bcc,_0x36de42)=>{if(this[_0x1eb7('0x93')])return;const _0x2936c9=this[_0x1eb7('0x127')](_0x36de42[_0x1eb7('0x34')]),_0x4146e5=this[_0x1eb7('0xf')][_0x1eb7('0xd7')](_0x2936c9);_0x4146e5?(this['_activeViewTarget']={'x':_0x36de42['domEvent']['x'],'y':_0x36de42[_0x1eb7('0xd0')]['y']},this[_0x1eb7('0x128')]=this[_0x1eb7('0x75')](_0x4146e5)):(this[_0x1eb7('0x2d')]=null,this[_0x1eb7('0x128')]=null);}),this[_0x1eb7('0x11d')](this[_0x1eb7('0xb6')][_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0x118')],'mousedown',(_0x3506f0,_0x117f76)=>{const _0x26a375=this[_0x1eb7('0x127')](_0x117f76[_0x1eb7('0x34')]),_0x124c33=this[_0x1eb7('0xf')][_0x1eb7('0xd7')](_0x26a375);_0x124c33?(this['_activeViewTarget']={'x':_0x117f76[_0x1eb7('0xd0')]['x'],'y':_0x117f76[_0x1eb7('0xd0')]['y']},_0x124c33===this['activeChange']?this['_balloon'][_0x1eb7('0xc7')]():this[_0x1eb7('0x93')]=_0x124c33):(this[_0x1eb7('0x2d')]=null,this[_0x1eb7('0x93')]=null);});}[_0x1eb7('0x127')](_0x1ac0ef){do{const _0x5efa95=_0x1ac0ef[_0x1eb7('0x119')](_0x1eb7('0xd9'));if(_0x5efa95)return _0x5efa95;_0x1ac0ef=_0x1ac0ef[_0x1eb7('0xd6')];}while(_0x1ac0ef);return null;}[_0x1eb7('0x55')](){this[_0x1eb7('0xb6')][_0x1eb7('0xed')][_0x1eb7('0x4c')](_0x5b4347=>{for(const _0x503120 of this['editor'][_0x1eb7('0xed')]['markers'])_0x5b4347[_0x1eb7('0x49')](_0x503120);});}}function et(_0x1512e8,_0x5ad39e){return(_0xfba98a,_0x2dc5b0,_0xb537a9)=>{if(!_0xb537a9[_0x1eb7('0x5')]['test'](_0x2dc5b0[_0x1eb7('0x26')],_0xfba98a[_0x1eb7('0x2f')]))return;const _0x9725c1=_0x2dc5b0['markerRange'][_0x1eb7('0xd8')](),_0x4c6e44=_0x2dc5b0['markerRange'][_0x1eb7('0x8')],_0x3566b1=_0x1512e8[_0x1eb7('0xed')]['schema'];let _0x5278ff=null,_0x45b189=null,_0x249ec4=!0x1,_0x181423=!0x1;for(const _0x2e4b4d of _0x9725c1){const _0x595b8e=_0x2e4b4d[_0x1eb7('0xd1')];_0x249ec4=_0x249ec4||_0x3566b1[_0x1eb7('0x1b')](_0x595b8e);const _0x420684=_0xb537a9[_0x1eb7('0x40')]['toViewElement'](_0x595b8e);if(_0x420684&&_0x420684[_0x1eb7('0x39')]('addHighlight'))return;'elementEnd'==_0x2e4b4d[_0x1eb7('0x9')]&&(_0x3566b1[_0x1eb7('0x33')](_0x595b8e)&&!_0x3566b1[_0x1eb7('0x105')](_0x595b8e)&&(_0x595b8e[_0x1eb7('0x11b')]||_0x4c6e44[_0x1eb7('0x12e')]?_0x5278ff&&_0x5278ff[_0x1eb7('0xd6')]==_0x595b8e||(_0x5278ff=_0x595b8e,_0x4e2fe4(_0x2e4b4d[_0x1eb7('0x11')]),_0x181423=!0x0):_0x45b189=_0x45b189||_0x2e4b4d[_0x1eb7('0x11')]));}function _0x4e2fe4(_0x14c83d){const _0x5ec501=_0xb537a9[_0x1eb7('0x40')][_0x1eb7('0x129')](_0x14c83d),_0x124437=_0xb537a9[_0x1eb7('0x90')][_0x1eb7('0xdb')](_0x1eb7('0xb'),{'class':'ck-suggestion-preview-marker-'+_0x5ad39e});_0xb537a9['writer'][_0x1eb7('0x85')](_0x5ec501,_0x124437),_0xb537a9[_0x1eb7('0x40')][_0x1eb7('0x9b')](_0x124437,_0x2dc5b0[_0x1eb7('0xd2')]);}_0x249ec4||_0x181423||!_0x45b189||_0x4e2fe4(_0x45b189);};}export class RestoreRevisionCommand extends _0x1b9488{constructor(_0x5df9da){super(_0x5df9da);const _0x563f9d=_0x5df9da['plugins']['get'](d);this[_0x1eb7('0xd3')]=!0x1,this[_0x1eb7('0x11d')](_0x563f9d,_0x1eb7('0x101'),()=>this[_0x1eb7('0x6f')]()),this[_0x1eb7('0x11d')](_0x563f9d,_0x1eb7('0x104'),()=>this[_0x1eb7('0x6f')]());}[_0x1eb7('0xc0')](){const _0x5537ef=this[_0x1eb7('0xb6')],_0x526eae=_0x5537ef[_0x1eb7('0x110')][_0x1eb7('0xd7')](d),_0x34a43a=_0x526eae[_0x1eb7('0x36')]?_0x526eae[_0x1eb7('0x10b')][_0x1eb7('0x10f')]:null;_0x5537ef[_0x1eb7('0x30')][_0x1eb7('0xd7')](_0x1eb7('0x5e'))[_0x1eb7('0x3d')](_0x34a43a);}[_0x1eb7('0x6f')](){const {isReady:_0x50fe10,isEnabled:_0x47f37d}=this[_0x1eb7('0xb6')]['plugins'][_0x1eb7('0xd7')](d);this['isEnabled']=_0x50fe10&&_0x47f37d;}}export class ShowChangeCommand extends _0x1b9488{constructor(_0x8d21a5,{direction:_0x1aeec7}){super(_0x8d21a5);const _0x568c70=_0x8d21a5[_0x1eb7('0x110')][_0x1eb7('0xd7')](d);this['affectsData']=!0x1,this[_0x1eb7('0x1d')]=_0x1eb7('0xa5')===_0x1aeec7?0x1:-0x1,this['listenTo'](_0x568c70,_0x1eb7('0x101'),()=>this[_0x1eb7('0x6f')]()),this['listenTo'](_0x568c70,'change:isEnabled',()=>this[_0x1eb7('0x6f')]());}[_0x1eb7('0xc0')](){const _0x31d272=this['editor'],_0x310e75=_0x31d272[_0x1eb7('0x110')][_0x1eb7('0xd7')](d),{isNavigationMode:_0x332077,currentChangeNumber:_0x41d5e4}=_0x310e75;let _0x503134;if(_0x310e75[_0x1eb7('0x93')]=_0x332077?_0x310e75[_0x1eb7('0x10b')][_0x1eb7('0x77')]['get'](_0x41d5e4+this[_0x1eb7('0x1d')]):_0x310e75[_0x1eb7('0x10b')]['changes'][_0x1eb7('0x38')],_0x310e75[_0x1eb7('0x93')]['data'][_0x1eb7('0x7b')])_0x503134=_0x31d272[_0x1eb7('0x65')][_0x1eb7('0x117')][_0x1eb7('0xfc')](_0x310e75[_0x1eb7('0x93')][_0x1eb7('0x44')]);else{const _0x501f4a=_0x31d272[_0x1eb7('0xed')][_0x1eb7('0x56')][_0x1eb7('0xd7')](_0x1eb7('0xe3')+_0x310e75['activeChange']['id']);_0x503134=_0x549ae7(_0x31d272[_0x1eb7('0x65')],_0x501f4a);}_0x31f9c3({'target':_0x503134,'viewportOffset':0x28});}[_0x1eb7('0x6f')](){const {isNavigationMode:_0x411abc,currentChangeNumber:_0x45cc3c,numberOfChanges:_0x21fa8f,isReady:_0x514188,isEnabled:_0x3154fe}=this['editor'][_0x1eb7('0x110')]['get'](d);this[_0x1eb7('0x12f')]=!!(_0x3154fe&&_0x514188&&_0x21fa8f)&&(!_0x411abc||(0x1===this[_0x1eb7('0x1d')]?_0x45cc3c<_0x21fa8f-0x1:_0x45cc3c>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a2e=['Restore\x20this\x20revision','add','Compare\x20against\x20selected','execute','class','find','isVisible','action','ck-revision-history-sidebar__revision__actions','threeVerticalDots','Name\x20this\x20revision','isReady','locale','children','model','isOpen','function','bind','isActionsDropdownOpen','ck-on','map','set','_action','Show\x20more\x20items','name','isEnabled','stopPropagation','button','change:isActionsDropdownOpen','source','listenTo','first'];(function(_0x10b4ba,_0x1a2ec8){const _0x4b91fa=function(_0x35f636){while(--_0x35f636){_0x10b4ba['push'](_0x10b4ba['shift']());}};_0x4b91fa(++_0x1a2ec8);}(_0x1a2e,0xaa));const _0x4b91=function(_0x10b4ba,_0x1a2ec8){_0x10b4ba=_0x10b4ba-0x0;let _0x4b91fa=_0x1a2e[_0x10b4ba];return _0x4b91fa;};import{Collection as _0x1766a8}from'ckeditor5/src/utils';import{icons as _0x39d7a2}from'ckeditor5/src/core';import{Model as _0x19b2b,addListToDropdown as _0x104bb7,createDropdown as _0x432f6e}from'ckeditor5/src/ui';import{getTranslation as _0x35fce5}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x40db35,_0x699f25){const _0x293edd=_0x40db35['bindTemplate'],_0x1172b0=_0x40db35['locale'],_0x1c3011=_0x432f6e(_0x1172b0);_0x1c3011['panelPosition']='sw';const _0x578eac=function(_0x3e2a1c,_0x479256){const _0x5b603c=function(_0x5c90b3,_0x55aeca){const _0x568581=_0x5c90b3[_0x4b91('0x2')],_0x3ed8fa={'Compare\x20against\x20selected':_0x35fce5(_0x568581,_0x4b91('0x18')),'Name\x20this\x20revision':_0x35fce5(_0x568581,_0x4b91('0x0')),'Restore\x20this\x20revision':_0x35fce5(_0x568581,_0x4b91('0x16'))};return _0x55aeca[_0x4b91('0xa')](_0x418a4e=>{const _0x494a0a=_0x3ed8fa[_0x418a4e[_0x4b91('0xe')]];return _0x494a0a&&_0x494a0a!==_0x418a4e['name']&&(_0x418a4e[_0x4b91('0xe')]=_0x494a0a),_0x418a4e;});}(_0x3e2a1c,_0x479256),_0x2cb09b=new _0x1766a8();for(const _0x5dd99e of _0x5b603c){const _0x6cd32={'type':_0x4b91('0x11'),'model':new _0x19b2b({'label':_0x5dd99e[_0x4b91('0xe')],'class':_0x5dd99e[_0x4b91('0x1a')],'withText':!0x0,'_action':_0x5dd99e[_0x4b91('0x1d')]})};_0x6cd32[_0x4b91('0x4')][_0x4b91('0x7')]('isEnabled')['to'](_0x3e2a1c,_0x4b91('0x8'),_0x2ec04b=>_0x4b91('0x6')!=typeof _0x5dd99e[_0x4b91('0xf')]||(!_0x2ec04b||_0x5dd99e[_0x4b91('0xf')](_0x3e2a1c))),_0x2cb09b[_0x4b91('0x17')](_0x6cd32);}return _0x2cb09b;}(_0x40db35,_0x699f25);return _0x40db35['bind'](_0x4b91('0x8'))['to'](_0x1c3011,_0x4b91('0x5')),_0x1c3011['buttonView'][_0x4b91('0xb')]({'label':_0x35fce5(_0x1172b0,_0x4b91('0xd')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x39d7a2[_0x4b91('0x1f')]}),_0x1c3011['extendTemplate']({'attributes':{'class':[_0x4b91('0x1e'),_0x293edd['if']('isActionsDropdownOpen',_0x4b91('0x9'))]},'on':{'click':_0x293edd['to'](_0x285657=>_0x285657[_0x4b91('0x10')]())}}),_0x1c3011['on'](_0x4b91('0x19'),_0x3a3eb0=>{_0x40db35[_0x4b91('0x1')]&&'function'==typeof _0x3a3eb0[_0x4b91('0x13')][_0x4b91('0xc')]&&_0x3a3eb0[_0x4b91('0x13')][_0x4b91('0xc')](_0x40db35);}),_0x104bb7(_0x1c3011,_0x578eac),_0x1c3011[_0x4b91('0x14')](_0x40db35,_0x4b91('0x12'),(_0x303340,_0x54af94,_0x11f1b5)=>{if(_0x11f1b5)for(const _0x5393b4 of _0x1c3011['listView']['items']){const _0x21144a=_0x5393b4[_0x4b91('0x3')][_0x4b91('0x15')],_0x13a7c3=_0x699f25[_0x4b91('0x1b')](_0xba59bf=>_0xba59bf[_0x4b91('0x1d')]===_0x21144a[_0x4b91('0xc')])[_0x4b91('0x1c')];_0x5393b4[_0x4b91('0x1c')]=void 0x0===_0x13a7c3||_0x13a7c3(_0x40db35);}}),_0x1c3011;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45fd=['name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator','push','span','Revision\x20creator','ck-revision-history-sidebar__revision-author','setTemplate'];(function(_0x4c1671,_0x45fd19){const _0x1d23b3=function(_0x18a171){while(--_0x18a171){_0x4c1671['push'](_0x4c1671['shift']());}};_0x1d23b3(++_0x45fd19);}(_0x45fd,0x1a3));const _0x1d23=function(_0x4c1671,_0x45fd19){_0x4c1671=_0x4c1671-0x0;let _0x1d23b3=_0x45fd[_0x4c1671];return _0x1d23b3;};import{View as _0xbbb090,IconView as _0x5713ec}from'ckeditor5/src/ui';import{getTranslation as _0x1c0df9}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x2ba18e from'../../../theme/icons/user.svg';export default class ti extends _0xbbb090{constructor(_0x5acd64,_0x4c172d,_0x1b94fb){super(_0x5acd64);const _0x1201cc=new _0x5713ec();_0x1201cc['set']({'content':_0x2ba18e,'viewBox':_0x1d23('0x6')});const _0x2f9989=['ck',_0x1d23('0x3')];_0x1b94fb&&_0x2f9989[_0x1d23('0x0')](_0x1d23('0x7'));const _0x3f86ea=[{'tag':_0x1d23('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x1c0df9(_0x5acd64,_0x1b94fb?_0x1d23('0x2'):'Revision\x20author')},'children':[_0x1201cc,_0x4c172d[_0x1d23('0x5')]]}];this[_0x1d23('0x4')]({'tag':'li','attributes':{'class':_0x2f9989},'children':_0x3f86ea});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x32a4=['span','Revision\x20name','set'];(function(_0x358417,_0x32a4e0){var _0x5717cc=function(_0x50fa5b){while(--_0x50fa5b){_0x358417['push'](_0x358417['shift']());}};_0x5717cc(++_0x32a4e0);}(_0x32a4,0x145));var _0x5717=function(_0x358417,_0x32a4e0){_0x358417=_0x358417-0x0;var _0x5717cc=_0x32a4[_0x358417];return _0x5717cc;};import{LabeledFieldView as _0x519196}from'ckeditor5/src/ui';import{getTranslation as _0x3e26cf}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x519196{constructor(_0x3ab6c9,_0x56d404){super(_0x3ab6c9,_0x56d404),this[_0x5717('0x1')]({'label':_0x3e26cf(_0x3ab6c9,_0x5717('0x0'))}),this['extendTemplate']({'tag':_0x5717('0x2'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55d8=['isSelected','revisionNameView','set','ck-reset','closest','authors','length','highlight','isConfirm','from','listenTo','name','isEnabled','extendTemplate','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision__controls-wrapper','ck-disabled','.ck-thread__remove-confirm','220','setTemplate','isActionsDropdownOpen','bind','select','createdAt','ck-revision-history-sidebar__revision-wrapper','isReady','_createdAtFormatted','creator','revisionActionsView','isHighlighted','fieldView','deselect','unhighlight','unshift','span','map','filter','render','fire','placeholder','value','div','ck-revision-history-sidebar__revision','setName'];(function(_0x197d91,_0x55d81f){const _0x1c8613=function(_0x37a2fc){while(--_0x37a2fc){_0x197d91['push'](_0x197d91['shift']());}};_0x1c8613(++_0x55d81f);}(_0x55d8,0xcf));const _0x1c86=function(_0x197d91,_0x55d81f){_0x197d91=_0x197d91-0x0;let _0x1c8613=_0x55d8[_0x197d91];return _0x1c8613;};import{View as _0x3eacb9,createLabeledInputText as _0x13a0b2}from'ckeditor5/src/ui';import{ConfirmMixin as _0x1308f4}from'ckeditor5-collaboration/src/collaboration-core';import _0x11f710 from'./revisionnameview';import _0x2aba68 from'./revisionauthorview';import{dateToPrettyFormat as _0x486593}from'./utils';import{createActionsDropdownView as _0xda2997}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x1308f4(_0x3eacb9){constructor(_0x16b4f9,_0x40168c,_0x330709){super(_0x16b4f9);const _0x23f80d=this['bindTemplate'],_0x56888d=function(_0xd0166e,_0x3fc623){const _0x27f15=Array[_0x1c86('0x1b')](_0x3fc623[_0x1c86('0x17')])[_0x1c86('0xa')](_0x40f2c4=>_0x40f2c4!=_0x3fc623['creator']);return _0x3fc623[_0x1c86('0x1')]&&_0x27f15[_0x1c86('0x7')](_0x3fc623[_0x1c86('0x1')]),_0x27f15[_0x1c86('0x9')](_0x16ec62=>new _0x2aba68(_0xd0166e,_0x16ec62,_0x16ec62==_0x3fc623[_0x1c86('0x1')]));}(_0x16b4f9,_0x40168c);this['id']=_0x40168c['id'],this['_revision']=_0x40168c,this[_0x1c86('0x28')](_0x1c86('0x1d'),_0x1c86('0x2a'))['to'](_0x40168c),this[_0x1c86('0x28')]('_createdAtFormatted')['to'](this,_0x1c86('0x2a'),_0x26cb6a=>_0x26cb6a?_0x486593(_0x16b4f9['uiLanguage'],_0x26cb6a):void 0x0),this['set']('isSelected',!0x1),this[_0x1c86('0x14')](_0x1c86('0x3'),!0x1),this[_0x1c86('0x14')](_0x1c86('0x27'),!0x1),this['set'](_0x1c86('0x2c'),!0x1),this[_0x1c86('0x14')](_0x1c86('0x1e'),!0x1),this[_0x1c86('0x13')]=new _0x11f710(_0x16b4f9,_0x13a0b2),this['revisionNameView'][_0x1c86('0x4')][_0x1c86('0x1f')]({'attributes':{'maxlength':_0x1c86('0x25')}}),this[_0x1c86('0x13')][_0x1c86('0x4')][_0x1c86('0x28')](_0x1c86('0xe'),_0x1c86('0xd'))['to'](this,'name',_0x1c86('0x0')),this[_0x1c86('0x13')][_0x1c86('0x28')](_0x1c86('0x1e'))['to'](this,_0x1c86('0x12'),this,_0x1c86('0x1e'),(_0x26aef4,_0xf4242f)=>_0x26aef4&&_0xf4242f),this[_0x1c86('0x2')]=_0x330709&&_0x330709[_0x1c86('0x18')]?_0xda2997(this,_0x330709):'',this[_0x1c86('0x2')]&&this[_0x1c86('0x2')]['bind'](_0x1c86('0x1e'))['to'](this),this[_0x1c86('0x26')]({'tag':_0x1c86('0xf'),'attributes':{'class':['ck',_0x1c86('0x15'),_0x1c86('0x2b'),_0x23f80d['if'](_0x1c86('0x1a'),_0x1c86('0x21'))]},'children':[{'tag':_0x1c86('0xf'),'attributes':{'class':['ck','ck-reset',_0x1c86('0x10'),_0x23f80d['if']('isEnabled',_0x1c86('0x23'),_0x5b75d0=>!_0x5b75d0),_0x23f80d['if'](_0x1c86('0x12'),_0x1c86('0x20')),_0x23f80d['if'](_0x1c86('0x3'),'ck-revision-history-sidebar__revision_highlighted'),_0x23f80d['if'](_0x1c86('0x27'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x1c86('0x13')],{'tag':_0x1c86('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x23f80d['to'](_0x1c86('0x0'))}]},{'tag':_0x1c86('0xf'),'attributes':{'class':['ck',_0x1c86('0x22')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x56888d}]},this['revisionActionsView']],'on':{'click':_0x23f80d['to'](_0x56e82b=>{_0x56e82b['srcElement'][_0x1c86('0x16')](_0x1c86('0x24'))||this['isReady']&&this[_0x1c86('0x1e')]&&this[_0x1c86('0xc')]('select',{'id':this['id']});})}}]});}[_0x1c86('0xb')](){super['render']();const _0x2f23ff=this[_0x1c86('0x13')][_0x1c86('0x4')]['element'];this[_0x1c86('0x1c')](_0x2f23ff,'change',()=>{this['fire'](_0x1c86('0x11'),{'id':this['id'],'name':_0x2f23ff[_0x1c86('0xe')]});});}[_0x1c86('0x29')](){this['isSelected']=!0x0;}[_0x1c86('0x5')](){this['isSelected']=!0x1;}[_0x1c86('0x19')](){this['isHighlighted']=!0x0;}[_0x1c86('0x6')](){this[_0x1c86('0x3')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16c6=['isVisible','click','ck-revision-history-sidebar__subrevision-collapser','false','ck-revision-history-sidebar__subrevision-collapser_collapsed','set','setTemplate','_isCollapsed','true','ck-hidden','bindTemplate'];(function(_0xeeaeaa,_0x16c662){const _0xc0252b=function(_0x4ccdb0){while(--_0x4ccdb0){_0xeeaeaa['push'](_0xeeaeaa['shift']());}};_0xc0252b(++_0x16c662);}(_0x16c6,0xa2));const _0xc025=function(_0xeeaeaa,_0x16c662){_0xeeaeaa=_0xeeaeaa-0x0;let _0xc0252b=_0x16c6[_0xeeaeaa];return _0xc0252b;};import{View as _0x5af3c1}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x5af3c1{constructor(_0x5a7b2d){super(_0x5a7b2d);const _0x1a1522=this[_0xc025('0x2')];this[_0xc025('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xc025('0x9')]({'tag':'span','attributes':{'class':['ck',_0xc025('0x5'),_0x1a1522['if'](_0xc025('0x3'),_0xc025('0x1'),_0x40782f=>!_0x40782f),_0x1a1522['if'](_0xc025('0xa'),_0xc025('0x7'))],'role':'button','aria-pressed':_0x1a1522['to'](_0xc025('0xa'),_0x2a3568=>_0x2a3568?_0xc025('0x6'):_0xc025('0x0'))},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x1a1522['to'](_0xc025('0x4'))}});}['toggle'](){this[_0xc025('0xa')]=!this[_0xc025('0xa')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x346f=['deselect','span','_parentRevisionId','set','_createdAtFormatted','select','ck-revision-history-sidebar__subrevision','bindTemplate','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','setTemplate','ck-revision-history-sidebar__revision__date','creator','isSelected','createdAt','ck-reset','fire','bind'];(function(_0x4107d4,_0x346fb0){const _0x2fb5fe=function(_0x44f744){while(--_0x44f744){_0x4107d4['push'](_0x4107d4['shift']());}};_0x2fb5fe(++_0x346fb0);}(_0x346f,0x175));const _0x2fb5=function(_0x4107d4,_0x346fb0){_0x4107d4=_0x4107d4-0x0;let _0x2fb5fe=_0x346f[_0x4107d4];return _0x2fb5fe;};import{View as _0x42a649}from'ckeditor5/src/ui';import _0x45ca73 from'./revisionauthorview';import{dateToPrettyFormat as _0x281448}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x42a649{constructor(_0x43a937,_0x29a5d7,_0x2f4b7c){super(_0x43a937);const _0x4680eb=this[_0x2fb5('0xe')];this['id']=_0x29a5d7['id'],this[_0x2fb5('0x6')](_0x2fb5('0x3'))['to'](_0x29a5d7),this[_0x2fb5('0xa')](_0x2fb5('0x2'),!0x1),this['bind'](_0x2fb5('0xb'))['to'](this,_0x2fb5('0x3'),_0x395553=>_0x395553?_0x281448(_0x43a937['uiLanguage'],_0x395553):void 0x0),this[_0x2fb5('0x9')]=_0x2f4b7c,this[_0x2fb5('0x12')]({'tag':'div','attributes':{'class':['ck',_0x2fb5('0x4'),_0x2fb5('0xf'),_0x2fb5('0xd'),_0x4680eb['if'](_0x2fb5('0x2'),_0x2fb5('0x11'))]},'children':[{'tag':_0x2fb5('0x8'),'attributes':{'class':['ck',_0x2fb5('0x0')]},'children':[{'text':_0x4680eb['to'](_0x2fb5('0xb'))}]},{'tag':'ul','attributes':{'class':['ck',_0x2fb5('0x10')]},'children':[new _0x45ca73(_0x43a937,_0x29a5d7[_0x2fb5('0x1')],!0x0)]}],'on':{'click':_0x4680eb['to'](this[_0x2fb5('0xc')][_0x2fb5('0x6')](this))}});}[_0x2fb5('0xc')](){this['isSelected']=!0x0,this[_0x2fb5('0x5')](_0x2fb5('0xc'),{'parentId':this[_0x2fb5('0x9')]});}[_0x2fb5('0x7')](){this[_0x2fb5('0x2')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x37bb=['toLocaleTimeString','long','numeric'];(function(_0x82b99,_0x37bb6b){var _0x2d1ef7=function(_0x4c5b18){while(--_0x4c5b18){_0x82b99['push'](_0x82b99['shift']());}};_0x2d1ef7(++_0x37bb6b);}(_0x37bb,0x66));var _0x2d1e=function(_0x82b99,_0x37bb6b){_0x82b99=_0x82b99-0x0;var _0x2d1ef7=_0x37bb[_0x82b99];return _0x2d1ef7;};export function dateToPrettyFormat(_0x3e51bf,_0x115d2c){return _0x115d2c['toLocaleDateString'](_0x3e51bf,{'month':_0x2d1e('0x1'),'day':_0x2d1e('0x2')})+',\x20'+_0x115d2c[_0x2d1e('0x0')](_0x3e51bf,{'hour':'numeric','minute':_0x2d1e('0x2')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x619c=['focusFirst','cancel','focusTracker','forEach','arrowleft','listenTo','input','element','ck-button-cancel','revisionNameInputValue','Save','220','revisionNameInputView','stopPropagation','fieldView','execute','keystrokes','saveButtonView','arrowup','_focusCycler','locale','set','_createButton','arrowdown','arrowright','focus','reset','add','submit','ck-revision-history-save-revision-form','cancelButtonView','Cancel','value','trim','revisionName','_focusables','Name\x20of\x20the\x20revision\x20(optional)','label','extendTemplate','render','form','shift\x20+\x20tab'];(function(_0x1cc7b4,_0x619c43){const _0x5e856b=function(_0x54a593){while(--_0x54a593){_0x1cc7b4['push'](_0x1cc7b4['shift']());}};_0x5e856b(++_0x619c43);}(_0x619c,0xdc));const _0x5e85=function(_0x1cc7b4,_0x619c43){_0x1cc7b4=_0x1cc7b4-0x0;let _0x5e856b=_0x619c[_0x1cc7b4];return _0x5e856b;};import{icons as _0x406d82}from'ckeditor5/src/core';import{ButtonView as _0x4a04f4,FocusCycler as _0x544438,LabeledFieldView as _0x106a0,View as _0x58c06e,ViewCollection as _0x723b63,createLabeledInputText as _0x1dde17,injectCssTransitionDisabler as _0x2b9f41,submitHandler as _0x1d0a29}from'ckeditor5/src/ui';import{FocusTracker as _0x28c279,KeystrokeHandler as _0x590c92}from'ckeditor5/src/utils';import{getTranslation as _0x283e13}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x58c06e{constructor(_0x3d1dee){super(_0x3d1dee),this[_0x5e85('0x22')]=new _0x28c279(),this[_0x5e85('0x6')]=new _0x590c92(),this[_0x5e85('0xb')](_0x5e85('0x29'),''),this[_0x5e85('0x2')]=this['_createRevisionNameInput'](),this[_0x5e85('0x7')]=this[_0x5e85('0xc')](_0x283e13(_0x3d1dee,_0x5e85('0x0')),_0x406d82['check'],'ck-button-save'),this['saveButtonView']['type']=_0x5e85('0x12'),this[_0x5e85('0x14')]=this[_0x5e85('0xc')](_0x283e13(_0x3d1dee,_0x5e85('0x15')),_0x406d82[_0x5e85('0x21')],_0x5e85('0x28'),_0x5e85('0x21')),this[_0x5e85('0x19')]=new _0x723b63(),this[_0x5e85('0x9')]=new _0x544438({'focusables':this[_0x5e85('0x19')],'focusTracker':this[_0x5e85('0x22')],'keystrokeHandler':this[_0x5e85('0x6')],'actions':{'focusPrevious':_0x5e85('0x1f'),'focusNext':'tab'}}),this['setTemplate']({'tag':_0x5e85('0x1e'),'attributes':{'class':['ck',_0x5e85('0x13'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x5e85('0x2')],this['saveButtonView'],this['cancelButtonView']]}),_0x2b9f41(this);}['render'](){super[_0x5e85('0x1d')](),_0x1d0a29({'view':this}),([this['revisionNameInputView'],this[_0x5e85('0x7')],this[_0x5e85('0x14')]][_0x5e85('0x23')](_0x443d33=>{this[_0x5e85('0x19')][_0x5e85('0x11')](_0x443d33),this['focusTracker'][_0x5e85('0x11')](_0x443d33[_0x5e85('0x27')]);}),this[_0x5e85('0x6')][_0x5e85('0x25')](this[_0x5e85('0x27')]));const _0x58152f=_0x191c86=>_0x191c86[_0x5e85('0x3')]();this[_0x5e85('0x6')][_0x5e85('0xb')](_0x5e85('0xe'),_0x58152f),this[_0x5e85('0x6')][_0x5e85('0xb')](_0x5e85('0x24'),_0x58152f),this[_0x5e85('0x6')]['set'](_0x5e85('0x8'),_0x58152f),this[_0x5e85('0x6')][_0x5e85('0xb')](_0x5e85('0xd'),_0x58152f);}[_0x5e85('0xf')](){this[_0x5e85('0x9')][_0x5e85('0x20')]();}get[_0x5e85('0x18')](){return this[_0x5e85('0x2')]['fieldView'][_0x5e85('0x27')][_0x5e85('0x16')][_0x5e85('0x17')]();}set[_0x5e85('0x18')](_0x8e40c5){this[_0x5e85('0x2')][_0x5e85('0x4')]['element'][_0x5e85('0x16')]=_0x8e40c5['trim']();}[_0x5e85('0x10')](){this['revisionNameInputView'][_0x5e85('0x4')][_0x5e85('0x27')][_0x5e85('0x16')]='';}['_createRevisionNameInput'](){const _0x265c17=new _0x106a0(this['locale'],_0x1dde17),_0x52d2ae=_0x265c17['fieldView'];return _0x52d2ae[_0x5e85('0x1c')]({'attributes':{'maxlength':_0x5e85('0x1')}}),_0x265c17[_0x5e85('0x1b')]=_0x283e13(this[_0x5e85('0xa')],_0x5e85('0x1a')),_0x52d2ae['on'](_0x5e85('0x26'),()=>{this[_0x5e85('0x29')]=_0x52d2ae[_0x5e85('0x27')][_0x5e85('0x16')][_0x5e85('0x17')]();}),_0x265c17;}[_0x5e85('0xc')](_0x3904a6,_0x561303,_0x34e52a,_0x376d01){const _0x421df7=new _0x4a04f4(this[_0x5e85('0xa')]);return _0x421df7[_0x5e85('0xb')]({'label':_0x3904a6,'icon':_0x561303,'tooltip':!0x0}),_0x421df7[_0x5e85('0x1c')]({'attributes':{'class':_0x34e52a}}),_0x376d01&&_0x421df7['delegate'](_0x5e85('0x5'))['to'](this,_0x376d01),_0x421df7;}}
|