@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230828.0 → 0.0.0-nightly-20230829.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x29f9=['addMarker:revision','consume','merge','unbindElementFromMarkerName','get','showPreviousChange','isNavigationMode','keys','revision','addClass','createAttributeElement','mousedown','createUIElement','isEqual','markerToData','all','isAddSuggestion','forEach','isInline','distance','addRevisionData','revisionHistoryLabel','hasClass','split','maxOffset','startIndex','createPositionFromPath','hasAttribute','removeMarker','roots','name','editor','insert','low','insertion','schema','POSITIVE_INFINITY','next','slice','_getViewForChange','enableReadOnlyMode','markerToHighlight','addMarker:revision-suggestion:insertion','comment','markerNameToElements','getCustomProperty','revision-suggestion','removeAttribute','filter','_sortAndFilterDiffChanges','_markMarkers','compare','stop','enqueueChange','processor','addRevision','offsetSize','revision:','_getRevisionsRange','isSuggestion','end','_findChangeIdFromDomTarget','consumable','currentChangeNumber','downcastDispatcher','map','nextSibling','isAdded','forward','changeId','getAttributes','then','getIndex','_threeWayMerge','dataToMarker','isOnRoot','addRoot','_removeRevisionMarkers','isAfter','data-revision-','span','_changeView','concat','markersStart','_makeTape','requires','abs','_setDistance','endIndex','level','viewItem','parse','elementToAttribute','attributesBefore','parent','_changeIdToChange','affectsData','_appendChild','_refreshStartEndIndex','unshift','diff','change:activeChange','pop','adapter','bottom','_markSuggestions','getRevisionData','side','isBefore','_removeUnsupportedChanges','getRootNames','createRangeIn','ck-suggestion-marker--active','editingDowncast','deletion','revisionHistoryAttachChange','getRoot','_markInsertions','start','data-change-id','_makeModelFromViewString','vid_start','vid','changes','softBreak','item','left','isAtStart','createRevision','addHighlight','resolve','_step','shift','detachRoot','change:isEnabled','upcast','getRevisionRootsAttributes','flat','indexOf','ck-suggestion-preview-marker-','markers','activeChange','domEvent','set','ck-revision-history-root-add','from','_setChanges','mapper','splice','find','getRevision','toViewElement','useFillerType','getClientRects','isBlock','listenTo','toModel','suggestion:','isAtEnd','createRange','observeMarkers','ck-revision-history-root-remove','updatePosition','isEnabled','_getChangeFromId','userId','refresh','return','activeView','revision-start','_processTape','for','getWalker','push','add','findIndex','change:activeView','length','toViewPosition','markersEnd','data','loadRevisionData','selection','insertions','object','isContent','model','pluginName','showStack','mapViewToDom','includes','revision-viewer','markerRange','elementStart','sort','attributesAfter','-new','element','remove','first','isLimit','attachChange','collaboration.channelId','clear','_revisions','removeMarker:revision-suggestion','document','isRemoved','_getDiff','marked','_cleanUp','editing','_update','rootName','_removeMissingPairs','isReady','plugins','revision-suggestion:','attribute:vid','change','_getViewObj','previousPosition','conversion','vid_end','getAttribute','removeClass','execute','repository','ck-suggestion-marker-','high','ck-suggestion-marker-merge','dataDowncast','attributes','view','diffData','_fixObsoleteTags','text','isAttached','isIncorrect','_markMismatchedRemovedTags','commands','highest','bindElementToMarker','modelRange','removeMarker:revision','ck-editor__editable__overlay','startsWith','delete','has','toData','locale','_activeViewTarget','pairId','isRemoveSuggestion','catch','writer','restoreRevisionCallback','test','ck-revision-history-root--active','target','markerName','reconvertMarker','wrap','suggestion','deletions','RevisionViewer','string','nodeAfter','_setConversion','done','getDomRoot','error','type','_balloon','children','nextPosition','numberOfChanges','isCollapsed','_data','index','restoreRevision','getItems','setAttribute','newRevisionId','bind','backward','elementEnd'];(function(_0x1d785f,_0x29f9df){const _0x3c0702=function(_0x49fb36){while(--_0x49fb36){_0x1d785f['push'](_0x1d785f['shift']());}};_0x3c0702(++_0x29f9df);}(_0x29f9,0xdf));const _0x3c07=function(_0x1d785f,_0x29f9df){_0x1d785f=_0x1d785f-0x0;let _0x3c0702=_0x29f9[_0x1d785f];return _0x3c0702;};import{Plugin as _0xb5b263,Command as _0x14fe97}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x113633}from'ckeditor5/src/utils';import{ContextualBalloon as _0x472dc6}from'ckeditor5/src/ui';import{DocumentFragment as _0x188d52,Element as _0x2b2bbc,Text as _0x538d83,ViewDocumentFragment as _0x560c58,ViewText as _0x3c2903,ViewElement as _0x2bfea8,ViewContainerElement as _0x58f227,ViewAttributeElement as _0x78be20,ViewEmptyElement as _0xcaf9a1,ViewRawElement as _0x4795fa,ViewUIElement as _0x2ac804}from'ckeditor5/src/engine';import{Users as _0x3021b4,getMarkerDomElement as _0x37dcec}from'ckeditor5-collaboration/src/collaboration-core';import _0x579397 from'./ui/revisionviewer/changedetailsview';import _0x8dc73b from'./revisionsrepository';import _0x4420af from'./changeitem';import{default as _0x177897}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x9f87b9}from'lodash-es';const tt={'c':_0x58f227,'a':_0x78be20,'e':_0xcaf9a1,'r':_0x4795fa,'u':_0x2ac804};export default class d extends _0xb5b263{static get[_0x3c07('0xfb')](){return _0x3c07('0x2a');}static get[_0x3c07('0x95')](){return[_0x3021b4,_0x472dc6,_0x8dc73b];}constructor(_0x165623){super(_0x165623),this['repository']=this[_0x3c07('0x5f')][_0x3c07('0x118')][_0x3c07('0x44')]('RevisionsRepository'),this[_0x3c07('0xcf')](_0x3c07('0xcd'),null),this['set']('activeView',null),this[_0x3c07('0x1c')]=null,this[_0x3c07('0xcf')]('diff',null),this[_0x3c07('0xcf')](_0x3c07('0x117'),!0x1),this[_0x3c07('0xcf')]('isEnabled',!0x0),this['on'](_0x3c07('0xc6'),(_0x382c5e,_0x48fbe1,_0x54b54d)=>{this[_0x3c07('0xcd')]=null,this['activeView']=null,this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x11b')](_0x47a9d1=>{for(const _0x8ecc53 of this['editor'][_0x3c07('0x113')]['view']['document'][_0x3c07('0x5d')])_0x54b54d?_0x47a9d1[_0x3c07('0x2')](_0x3c07('0x16'),_0x8ecc53):_0x47a9d1[_0x3c07('0x49')]('ck-editor__editable__overlay',_0x8ecc53);});}),this[_0x3c07('0x3d')](_0x3c07('0x46'))['to'](this,_0x3c07('0xcd'),_0x35c0c2=>null!==_0x35c0c2),this['bind'](_0x3c07('0x7f'))['to'](this,'isReady',this,_0x3c07('0xa4'),this,'activeChange',(_0x50880b,_0x5aec69,_0x1a3fa6)=>_0x50880b&&_0x1a3fa6?_0x5aec69['changes'][_0x3c07('0x88')](_0x1a3fa6):0x0),this[_0x3c07('0x3d')](_0x3c07('0x35'))['to'](this,_0x3c07('0x117'),this,_0x3c07('0xa4'),(_0x346f18,_0x12839d)=>_0x346f18?_0x12839d[_0x3c07('0xbb')]['length']:0x0),this[_0x3c07('0x91')]=null,this[_0x3c07('0x9f')]=new Map(),this[_0x3c07('0xa7')]=null,this[_0x3c07('0x32')]=this[_0x3c07('0x5f')]['plugins'][_0x3c07('0x44')](_0x472dc6);}['init'](){const _0x1bf701=this[_0x3c07('0x5f')],_0x5b5395=new ShowChangeCommand(_0x1bf701,{'direction':_0x3c07('0x3e')}),_0x1bfb38=new ShowChangeCommand(_0x1bf701,{'direction':'forward'});(_0x1bf701[_0x3c07('0x11')][_0x3c07('0xee')](_0x3c07('0x45'),_0x5b5395),_0x1bf701[_0x3c07('0x11')][_0x3c07('0xee')]('showNextChange',_0x1bfb38),_0x1bf701[_0x3c07('0x11')][_0x3c07('0xee')](_0x3c07('0x39'),new RestoreRevisionCommand(_0x1bf701)),this['on']('change:numberOfChanges',()=>{_0x5b5395['refresh'](),_0x1bfb38['refresh']();}),this[_0x3c07('0x2d')](),this['_initInteractions'](),_0x1bf701[_0x3c07('0x68')](_0x3c07('0xff')),_0x1bf701[_0x3c07('0x118')][_0x3c07('0x19')]('WidgetToolbarRepository'))&&_0x1bf701[_0x3c07('0x118')][_0x3c07('0x44')]('WidgetToolbarRepository')['forceDisabled'](_0x3c07('0xff'));}async[_0x3c07('0xaa')](_0x1a8304){await this['loadRevisionData'](_0x1a8304);const _0x5b9b22={};for(const _0x339223 in _0x1a8304['diffData']){if(_0x1a8304[_0x3c07('0xb')][_0x339223][_0x3c07('0x109')]&&!_0x1a8304[_0x3c07('0xb')][_0x339223][_0x3c07('0x109')][_0x3c07('0xe')])continue;const _0x4f8c16=this[_0x3c07('0x8d')](JSON[_0x3c07('0x9b')](_0x1a8304[_0x3c07('0xb')][_0x339223][_0x3c07('0xf7')])),_0x271187=this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],_0x2b3efe=new _0x560c58(_0x271187,_0x4f8c16[_0x3c07('0x81')](_0x22561e=>this['_getViewObj'](_0x22561e)));this[_0x3c07('0x5f')][_0x3c07('0xf4')][_0x3c07('0x76')][_0x3c07('0xd8')](_0x3c07('0x111')),_0x5b9b22[_0x339223]=this[_0x3c07('0x5f')][_0x3c07('0xf4')][_0x3c07('0x76')][_0x3c07('0x1a')](_0x2b3efe),this['editor'][_0x3c07('0xf4')][_0x3c07('0x76')][_0x3c07('0xd8')]('default');}return _0x5b9b22;}async[_0x3c07('0xc8')](_0x2e0cef){await this[_0x3c07('0xf5')](_0x2e0cef);const _0x5d4b80={};for(const _0x2087f9 in _0x2e0cef[_0x3c07('0xb')])_0x2e0cef[_0x3c07('0xb')][_0x2087f9]['attachChange']&&!_0x2e0cef[_0x3c07('0xb')][_0x2087f9][_0x3c07('0x109')][_0x3c07('0xe')]||(_0x5d4b80[_0x2087f9]=_0x2e0cef['diffData'][_0x2087f9][_0x3c07('0x103')]||{});return _0x5d4b80;}['_removeRevisionMarkers'](_0x506af5){return(_0x506af5=_0x506af5['filter'](_0x46605e=>!_0x46605e[_0x3c07('0x5e')]||_0x3c07('0xe9')!==_0x46605e['name']&&'revision-end'!==_0x46605e[_0x3c07('0x5e')]))[_0x3c07('0x51')](_0xed4e09=>{_0x3c07('0x2b')!=typeof _0xed4e09&&(_0xed4e09[_0x3c07('0x33')]=this[_0x3c07('0x8d')](_0xed4e09[_0x3c07('0x33')]),_0xed4e09[_0x3c07('0x9')]=_0xed4e09[_0x3c07('0x9')]['filter'](_0x37522f=>!_0x37522f[0x0][_0x3c07('0x17')](_0x3c07('0x8f'))));}),_0x506af5;}async[_0x3c07('0x73')](_0x4631b9,_0x4700ea,_0x23ff79=!0x1){if(!this[_0x3c07('0xe3')])return;const _0x7658be=this[_0x3c07('0xa4')],_0x458744=this[_0x3c07('0x4')],_0x5ebc4f=_0x3c07('0x2b')==typeof _0x4631b9?_0x458744[_0x3c07('0xd6')](_0x4631b9):_0x4631b9,_0x2b1fd8='string'==typeof _0x4700ea?_0x458744[_0x3c07('0xd6')](_0x4700ea):_0x4700ea,_0x137bb3=_0x5ebc4f['id'],_0x588f31=_0x2b1fd8?_0x2b1fd8['id']:null;if(!_0x23ff79&&this['diff']&&this[_0x3c07('0xa4')][_0x3c07('0x3c')]===_0x137bb3&&this['diff']['oldRevisionId']===_0x588f31)return Promise[_0x3c07('0xc2')]();this[_0x3c07('0x117')]=!0x1,this[_0x3c07('0xe8')]=null,this[_0x3c07('0xcd')]=null,this[_0x3c07('0xa4')]=new _0x177897(_0x137bb3,_0x588f31);const _0x20e7a4=this[_0x3c07('0x7a')](_0x5ebc4f,_0x2b1fd8,!0x0)[_0x3c07('0x81')](_0x22cd09=>this[_0x3c07('0xf5')](_0x22cd09));return _0x20e7a4[_0x3c07('0xed')](new Promise(_0x4c67d0=>{setTimeout(_0x4c67d0,0x14);})),Promise[_0x3c07('0x4f')](_0x20e7a4)[_0x3c07('0x87')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5f09fb=this['_getDiff'](_0x137bb3,_0x588f31);for(const _0x26b934 of _0x5f09fb[_0x3c07('0xbb')])this['_changeIdToChange']['set'](_0x26b934['id'],_0x26b934);this[_0x3c07('0x5f')][_0x3c07('0xfa')]['enqueueChange']({'isUndoable':!0x1},_0x1ec553=>{for(const _0x583e0f of this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['getRootNames']())_0x1ec553[_0x3c07('0xc5')](_0x583e0f);for(const _0x254a4a of Object['keys'](_0x5f09fb[_0x3c07('0xfa')])){const _0x31f77a=_0x1ec553[_0x3c07('0x8c')](_0x254a4a);for(const _0x25d1ea of Object[_0x3c07('0x47')](_0x5f09fb[_0x3c07('0x9')][_0x254a4a]))_0x1ec553[_0x3c07('0x3b')](_0x25d1ea,_0x5f09fb[_0x3c07('0x9')][_0x254a4a][_0x25d1ea],_0x31f77a);_0x1ec553[_0x3c07('0x60')](_0x5f09fb[_0x3c07('0xfa')][_0x254a4a],_0x31f77a,0x0);}}),this['diff'][_0x3c07('0xd2')](this[_0x3c07('0x71')](_0x5f09fb[_0x3c07('0xbb')])),this[_0x3c07('0x117')]=!0x0;})[_0x3c07('0x1f')](_0x41c24e=>{console[_0x3c07('0x30')](_0x41c24e),this[_0x3c07('0x112')](),_0x7658be&&(this[_0x3c07('0xa4')]=_0x7658be),this[_0x3c07('0x117')]=!0x0;});}[_0x3c07('0x54')](_0x1468e3,_0x3a58e3){const _0x5719dc=this['repository'][_0x3c07('0xc0')](_0x1468e3);return _0x5719dc['on'](_0x3c07('0x114'),(_0x4fb69e,_0x2de52f,_0x99c303)=>_0x3a58e3(_0x2de52f,_0x99c303,_0x5719dc)),this['repository'][_0x3c07('0x77')](_0x5719dc),_0x5719dc;}[_0x3c07('0xf5')](_0x537c8e){if(!_0x537c8e||_0x537c8e[_0x3c07('0xb')])return Promise[_0x3c07('0xc2')]();{const _0x458f55=this[_0x3c07('0x5f')]['config'][_0x3c07('0x44')](_0x3c07('0x10a'));return this[_0x3c07('0xa7')][_0x3c07('0xd6')]({'channelId':_0x458f55,'revisionId':_0x537c8e['id']})['then'](_0x3833e4=>{_0x537c8e[_0x3c07('0x114')]({'diffData':_0x3833e4[_0x3c07('0xb')]},!0x0);});}}[_0x3c07('0x112')](){this[_0x3c07('0xcd')]=null,this['_cleanMarkers'](),this[_0x3c07('0x91')]&&this[_0x3c07('0x91')]['destroy'](),this['_changeView']=null,this['_changeIdToChange'][_0x3c07('0x10b')](),this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x75')]({'isUndoable':!0x1},_0x2e670b=>{for(const _0x760e74 of this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['getRootNames']())_0x2e670b[_0x3c07('0xc5')](_0x760e74);});}[_0x3c07('0x71')](_0x4f465a){const _0x36bb4d=[],_0x548c08=new Map();for(const _0x5043cf of this[_0x3c07('0x5f')]['model'][_0x3c07('0x10e')][_0x3c07('0xae')]()){const _0x57a177=this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x2f')](_0x5043cf);if(!_0x57a177)continue;const _0x13c2d7=_0x57a177[_0x3c07('0xd9')]()[_0x3c07('0xbd')](0x0);_0x13c2d7&&(_0x36bb4d[_0x3c07('0xed')](_0x5043cf),_0x548c08[_0x3c07('0xcf')](_0x5043cf,_0x13c2d7));}return _0x36bb4d[_0x3c07('0x102')]((_0x101fd1,_0x404e35)=>{const _0x423392=_0x548c08[_0x3c07('0x44')](_0x101fd1),_0x1ddbdd=_0x548c08['get'](_0x404e35);return _0x423392['y']-_0x1ddbdd['y']||_0x423392['x']-_0x1ddbdd['x'];}),(_0x4f465a=_0x4f465a['filter'](_0x398602=>_0x36bb4d[_0x3c07('0xfe')](_0x398602[_0x3c07('0x115')])))[_0x3c07('0x102')]((_0x4db291,_0x359deb)=>_0x36bb4d[_0x3c07('0xca')](_0x4db291[_0x3c07('0x115')])-_0x36bb4d[_0x3c07('0xca')](_0x359deb[_0x3c07('0x115')])),_0x4f465a;}[_0x3c07('0x94')](_0x1cc629){const _0x32d566=Array[_0x3c07('0xd1')](_0x1cc629[_0x3c07('0xcc')])[_0x3c07('0x70')](([_0xa8e172,_0x233b98])=>_0xa8e172['startsWith'](_0x3c07('0x79'))&&!_0x233b98[_0x3c07('0x36')]),_0x1fb474=Array[_0x3c07('0xd1')](this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0xaf')](_0x1cc629)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x32d566[_0x3c07('0xf1')])for(const _0x30e9c9 of _0x1fb474){const [_0x1aa862,_0xd1027b]=_0x32d566[0x0],[,_0x3e3126,_0x98d908]=_0x1aa862[_0x3c07('0x57')](':');if(_0xd1027b[_0x3c07('0x7c')][_0x3c07('0x4d')](_0x30e9c9[_0x3c07('0x34')])&&_0x32d566[_0x3c07('0xc4')](),(_0x30e9c9[_0x3c07('0x11d')][_0x3c07('0x4d')](_0xd1027b[_0x3c07('0xb6')])||_0x30e9c9[_0x3c07('0x11d')]['isAfter'](_0xd1027b['start']))&&(_0x3c07('0x62')==_0x3e3126?_0x30e9c9['isAdded']={'userId':_0x98d908}:'deletion'==_0x3e3126&&(_0x30e9c9[_0x3c07('0x10f')]={'userId':_0x98d908})),0x0==_0x32d566[_0x3c07('0xf1')])break;}return _0x1fb474;}[_0x3c07('0xa2')](_0x36cc17){const _0x1d6806=new Map();for(let _0x3a6d32=0x0;_0x3a6d32<_0x36cc17[_0x3c07('0xf1')];_0x3a6d32++)_0x3c07('0xd')===_0x36cc17[_0x3a6d32]['type']?(_0x36cc17[_0x3a6d32][_0x3c07('0xbd')]['startIndex']=_0x3a6d32,_0x36cc17[_0x3a6d32][_0x3c07('0xbd')][_0x3c07('0x98')]=_0x3a6d32):(_0x3c07('0x101')===_0x36cc17[_0x3a6d32][_0x3c07('0x31')]?_0x36cc17[_0x3a6d32][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x3a6d32:_0x3c07('0x3f')===_0x36cc17[_0x3a6d32][_0x3c07('0x31')]&&(_0x36cc17[_0x3a6d32][_0x3c07('0xbd')]['endIndex']=_0x3a6d32),_0x1d6806['set'](_0x36cc17[_0x3a6d32]['id'],_0x3a6d32));for(const _0x5aab39 of _0x1d6806['values']())_0x3c07('0x101')===_0x36cc17[_0x5aab39][_0x3c07('0x31')]?_0x36cc17[_0x5aab39][_0x3c07('0xbd')][_0x3c07('0x98')]=_0x1d6806[_0x3c07('0x44')](_0x36cc17[_0x5aab39][_0x3c07('0x1d')]):_0x3c07('0x3f')===_0x36cc17[_0x5aab39][_0x3c07('0x31')]&&(_0x36cc17[_0x5aab39][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x1d6806[_0x3c07('0x44')](_0x36cc17[_0x5aab39][_0x3c07('0x1d')]));}[_0x3c07('0xea')](_0x32c00f){for(let _0x34bbda=0x0;_0x34bbda<_0x32c00f[_0x3c07('0xf1')];_0x34bbda++){if(_0x3c07('0x101')===_0x32c00f[_0x34bbda]['type'])_0x32c00f[_0x34bbda][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x34bbda;else{if(_0x3c07('0x3f')===_0x32c00f[_0x34bbda][_0x3c07('0x31')]){_0x32c00f[_0x34bbda][_0x3c07('0xbd')][_0x3c07('0x98')]=_0x34bbda;const _0x4935c4=_0x32c00f[_0x34bbda][_0x3c07('0xbd')]['startIndex'];_0x32c00f[_0x4935c4][_0x3c07('0x1d')]=_0x32c00f[_0x34bbda]['id'],_0x32c00f[_0x34bbda][_0x3c07('0x1d')]=_0x32c00f[_0x4935c4]['id'];}else _0x32c00f[_0x34bbda][_0x3c07('0xbd')][_0x3c07('0x59')]=_0x34bbda,_0x32c00f[_0x34bbda][_0x3c07('0xbd')]['endIndex']=_0x34bbda,_0x32c00f[_0x34bbda][_0x3c07('0x1d')]=null;}_0x32c00f[_0x34bbda][_0x3c07('0x93')]||(_0x32c00f[_0x34bbda][_0x3c07('0x93')]=[],_0x32c00f[_0x34bbda][_0x3c07('0xf3')]=[]);}}[_0x3c07('0xb5')](_0x209eea,_0x65a9e1){const _0x40bd0a=_0x209eea[_0x3c07('0x70')](_0x7cfced=>!_0x7cfced['isAdded']);for(let _0x2a16ff=0x0;_0x2a16ff<_0x65a9e1[_0x3c07('0xf1')];_0x2a16ff++)_0x65a9e1[_0x2a16ff][_0x3c07('0x83')]&&(_0x40bd0a[_0x2a16ff]['isAdded']=_0x65a9e1[_0x2a16ff]['isAdded']);}[_0x3c07('0xb8')](_0xf196c0){const _0x57049e=JSON[_0x3c07('0x9b')](_0xf196c0),_0x577fb9=this[_0x3c07('0x5f')][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],_0x2c8048=new _0x560c58(_0x577fb9,_0x57049e[_0x3c07('0x81')](_0x3461de=>this['_getViewObj'](_0x3461de)));return this['editor']['data'][_0x3c07('0xdc')](_0x2c8048);}[_0x3c07('0x11c')](_0x433776){const _0x3e6979=this[_0x3c07('0x5f')][_0x3c07('0x113')]['view'][_0x3c07('0x10e')];if('string'==typeof _0x433776)return new _0x3c2903(_0x3e6979,_0x433776);{const _0x2d79b6=_0x433776[_0x3c07('0x33')][_0x3c07('0x81')](_0x17db0e=>this[_0x3c07('0x11c')](_0x17db0e));return new(tt[_0x433776[(_0x3c07('0x31'))]]||_0x2bfea8)(_0x3e6979,_0x433776['name'],_0x433776['attributes'],_0x2d79b6);}}[_0x3c07('0x110')](_0x5b88e4,_0x5ba7c7=null){const _0x436e6d=this['repository'][_0x3c07('0xd6')](_0x5b88e4),_0x141310=_0x5ba7c7?this['repository']['getRevision'](_0x5ba7c7):null,_0x5bd8d5=this['_getRevisionsRange'](_0x436e6d,_0x141310),_0x4d45ea=_0x5bd8d5[_0x5bd8d5[_0x3c07('0xf1')]-0x1],_0x245c11=new Map(),_0x17e935={'model':{},'attributes':{},'changes':[]},_0x106c5a=new Set(),_0x3ca726=new Map();for(let _0x258cf6=_0x5bd8d5[_0x3c07('0xf1')]-0x1;_0x258cf6>=0x0;_0x258cf6--){const _0x2ce4f0=_0x5bd8d5[_0x258cf6];for(const _0x3eb286 of Object[_0x3c07('0x47')](_0x2ce4f0[_0x3c07('0xb')]))if(_0x2ce4f0[_0x3c07('0xb')][_0x3eb286]['attachChange']){const _0x4a761e=_0x2ce4f0[_0x3c07('0xb')][_0x3eb286][_0x3c07('0x109')];_0x4a761e[_0x3c07('0xe')]?(_0x106c5a[_0x3c07('0xee')](_0x3eb286),_0x3ca726[_0x3c07('0x19')](_0x3eb286)&&_0x3ca726['get'](_0x3eb286)[_0x3c07('0xe5')]==_0x4a761e[_0x3c07('0xe5')]?_0x3ca726[_0x3c07('0x18')](_0x3eb286):_0x3ca726[_0x3c07('0xcf')](_0x3eb286,_0x4a761e)):_0x3ca726['has'](_0x3eb286)?(_0x106c5a[_0x3c07('0x18')](_0x3eb286),_0x3ca726['delete'](_0x3eb286)):(_0x106c5a[_0x3c07('0xee')](_0x3eb286),_0x3ca726['set'](_0x3eb286,_0x4a761e));}else _0x106c5a[_0x3c07('0xee')](_0x3eb286);}for(const _0x5883c9 of _0x106c5a){const _0x443397=_0x3ca726[_0x3c07('0x19')](_0x5883c9)&&!_0x3ca726[_0x3c07('0x44')](_0x5883c9)[_0x3c07('0xe')];let _0x5e5e04=_0x443397?_0x5bd8d5[_0x3c07('0xf1')]-0x1:0x0;const _0xb7deec=_0x443397?-0x1:0x1;for(;_0x5bd8d5[_0x5e5e04];){const _0x253fc2=_0x5bd8d5[_0x5e5e04];if(_0x253fc2[_0x3c07('0xb')][_0x5883c9]){const _0x196811=_0x443397?_0x253fc2[_0x3c07('0xb')][_0x5883c9][_0x3c07('0x9d')]:_0x253fc2[_0x3c07('0xb')][_0x5883c9]['attributesAfter'];_0x17e935[_0x3c07('0x9')][_0x5883c9]=_0x196811?_0x9f87b9(_0x196811):{};break;}_0x5e5e04+=_0xb7deec;}}for(const _0x4af975 of _0x5bd8d5){_0x4af975[_0x3c07('0xfa')]={};for(const _0x334cd7 of _0x4af975['authors'])_0x245c11['set'](_0x334cd7['id'],_0x334cd7);for(const _0x58c61e of _0x106c5a){const _0x1e9f80=_0x4af975[_0x3c07('0xb')][_0x58c61e]?_0x4af975[_0x3c07('0xb')][_0x58c61e][_0x3c07('0xf7')]:'[]',_0x1873af=_0x4af975[_0x3c07('0xb')][_0x58c61e]?_0x4af975['diffData'][_0x58c61e]['deletions']:'[]';_0x4af975[_0x3c07('0xfa')][_0x58c61e]={'insertions':this[_0x3c07('0xb8')](_0x1e9f80),'deletions':this[_0x3c07('0xb8')](_0x1873af)};}}for(const _0xc76ce6 of _0x106c5a){let _0xf54419=null,_0x5ea78d=0x0;const _0x4d084a=new Map(Array[_0x3c07('0xd1')](_0x436e6d[_0x3c07('0xfa')][_0xc76ce6][_0x3c07('0xf7')][_0x3c07('0xcc')])[_0x3c07('0x70')](([_0x411956])=>!_0x411956[_0x3c07('0x17')](_0x3c07('0x79'))));let _0x546a7e=0x0;for(const _0x51b87d of _0x5bd8d5){const _0x26822c=this[_0x3c07('0x94')](_0x51b87d[_0x3c07('0xfa')][_0xc76ce6][_0x3c07('0xf7')]);_0x51b87d==_0x436e6d?(_0xf54419=_0x26822c,_0x5ea78d=_0xf54419[_0x3c07('0xf1')],_0xf54419[_0x3c07('0x51')](_0x47b9f3=>{_0x47b9f3['id']=_0x546a7e++;}),this[_0x3c07('0xea')](_0xf54419)):this[_0x3c07('0xb5')](_0xf54419,_0x26822c);const _0x1e36e8=_0xf54419[_0x3c07('0x70')](_0x4ac691=>!_0x4ac691[_0x3c07('0x83')])[_0x3c07('0x81')](_0x268a21=>_0x268a21['id']);let _0x442742=0x0;const _0x443788=this['_makeTape'](_0x51b87d['model'][_0xc76ce6][_0x3c07('0x29')]);_0x443788[_0x3c07('0x51')](_0x453110=>{_0x453110['isRemoved']?_0x453110['id']=_0x5ea78d++:_0x453110['id']=_0x1e36e8[_0x442742++];}),this[_0x3c07('0xea')](_0x443788),this[_0x3c07('0x97')](_0xf54419,_0x3c07('0x83')),this[_0x3c07('0x97')](_0x443788,_0x3c07('0x10f')),_0x51b87d==_0x436e6d&&this[_0x3c07('0x72')](_0xf54419,_0x4d084a),_0xf54419=this['_joinTapes'](_0xf54419,_0x443788),this['_refreshStartEndIndex'](_0xf54419),this[_0x3c07('0x97')](_0xf54419,_0x3c07('0x10f'));}_0xf54419=_0xf54419[_0x3c07('0x70')](_0x481742=>!(_0x481742[_0x3c07('0x83')]&&_0x481742[_0x3c07('0x10f')]));const _0x55d589=new Map(_0x4d45ea[_0x3c07('0xfa')][_0xc76ce6]['deletions'][_0x3c07('0xcc')]),_0x505b60=new Set(_0x4d084a['keys']());for(const _0x3d208f of _0x55d589[_0x3c07('0x47')]())_0x505b60['delete'](_0x3d208f);this[_0x3c07('0xa9')](_0xf54419,_0x505b60),this[_0x3c07('0xc')](_0xf54419),_0xf54419=this[_0x3c07('0x116')](_0xf54419),_0xf54419=this['_markMismatchedRemovedTags'](_0xf54419),_0xf54419=this[_0x3c07('0xad')](_0xf54419);const {root:_0x5eda4f,changes:_0x571e6e}=this['_makeModelFromTape'](_0xf54419,_0x245c11,_0xc76ce6);_0x17e935[_0x3c07('0xfa')][_0xc76ce6]=_0x5eda4f;const _0xf305ab=_0x3ca726[_0x3c07('0x44')](_0xc76ce6);if(_0xf305ab){const _0x4dbbd5=_0x245c11[_0x3c07('0x44')](_0xf305ab[_0x3c07('0xe5')]),_0x21f4ba=new _0x4420af({'author':_0x4dbbd5,'type':_0xf305ab[_0x3c07('0xe')]?'add':_0x3c07('0x106'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xc76ce6});_0x571e6e[_0x3c07('0xa3')](_0x21f4ba),_0x17e935['attributes'][_0xc76ce6][_0x3c07('0xb3')]=_0x21f4ba['id'];}_0x17e935[_0x3c07('0xbb')]=_0x17e935[_0x3c07('0xbb')]['concat'](_0x571e6e);}return _0x17e935;}['_markMarkers'](_0x1f560f,_0x5517ee){for(let _0x900674=0x0;_0x900674<_0x1f560f[_0x3c07('0xf1')];_0x900674++)for(const [_0x2a59a7,_0x2ee874]of _0x5517ee)_0x2ee874[_0x3c07('0xb6')]['isEqual'](_0x1f560f[_0x900674]['previousPosition'])&&_0x1f560f[_0x900674]['markersStart']['push'](_0x2a59a7),_0x2ee874[_0x3c07('0x7c')][_0x3c07('0x4d')](_0x1f560f[_0x900674][_0x3c07('0x34')])&&_0x1f560f[_0x900674][_0x3c07('0xf3')]['push'](_0x2a59a7);}['_joinTapes'](_0x598190,_0x47a8c1){let _0x4cb06=[],_0x31d35b=0x0,_0x2810c5=0x0;for(;_0x31d35b<_0x598190[_0x3c07('0xf1')]||_0x2810c5<_0x47a8c1[_0x3c07('0xf1')];){const _0x55b929=_0x598190[_0x31d35b]||{},_0x38a026=_0x47a8c1[_0x2810c5]||{};if(_0x55b929['id']==_0x38a026['id'])_0x31d35b++,_0x2810c5++,_0x4cb06[_0x3c07('0xed')](_0x55b929);else{if(_0x38a026[_0x3c07('0x10f')]&&_0x55b929[_0x3c07('0x83')]){const {commonTape:_0x508673,iEnd:_0x242425,jEnd:_0x401cbe}=this[_0x3c07('0x89')](_0x598190,_0x31d35b,_0x47a8c1,_0x2810c5);_0x4cb06=_0x4cb06['concat'](_0x508673),_0x31d35b=_0x242425,_0x2810c5=_0x401cbe;}else _0x38a026[_0x3c07('0x10f')]?(_0x2810c5++,_0x4cb06[_0x3c07('0xed')](_0x38a026)):(_0x31d35b++,_0x4cb06[_0x3c07('0xed')](_0x55b929));}}return _0x4cb06;}[_0x3c07('0xa9')](_0x14c4d5,_0x29287b){const _0x5eb7cc=[];for(let _0x133557=0x0;_0x133557<_0x14c4d5['length'];_0x133557++){for(let _0x4994ac=0x0;_0x4994ac<_0x14c4d5[_0x133557][_0x3c07('0x93')][_0x3c07('0xf1')];_0x4994ac++){const _0x1483bc=_0x14c4d5[_0x133557][_0x3c07('0x93')][_0x4994ac];if(!_0x29287b[_0x3c07('0x19')](_0x1483bc))continue;const {group:_0x326c0a,type:_0x315338,authorId:_0x4936fb}=_0x4ebd2f(_0x1483bc);'revision-suggestion'!=_0x326c0a||_0x3c07('0x62')!=_0x315338&&_0x3c07('0xb2')!=_0x315338||(_0x5eb7cc[_0x3c07('0xa3')]({'type':_0x315338,'name':_0x1483bc,'userId':_0x4936fb}),_0x14c4d5[_0x133557][_0x3c07('0x93')]['splice'](_0x4994ac,0x1),_0x4994ac--);}_0x4ddf86(_0x14c4d5[_0x133557]);for(let _0x3bfaf6=0x0;_0x3bfaf6<_0x14c4d5[_0x133557][_0x3c07('0xf3')][_0x3c07('0xf1')];_0x3bfaf6++){const _0x55002c=_0x14c4d5[_0x133557][_0x3c07('0xf3')][_0x3bfaf6];if(!_0x29287b[_0x3c07('0x19')](_0x55002c))continue;const {group:_0x4fb569,type:_0x38a31e}=_0x4ebd2f(_0x55002c);if('revision-suggestion'!=_0x4fb569||_0x3c07('0x62')!=_0x38a31e&&_0x3c07('0xb2')!=_0x38a31e)continue;_0x14c4d5[_0x133557][_0x3c07('0xf3')][_0x3c07('0xd4')](_0x3bfaf6,0x1),_0x3bfaf6--;const _0x5394c7=_0x5eb7cc[_0x3c07('0xef')](_0x3a5d26=>_0x3a5d26[_0x3c07('0x5e')]==_0x55002c);_0x5394c7>-0x1&&_0x5eb7cc['splice'](_0x5394c7,0x1);}}function _0x4ebd2f(_0x2cb414){const _0x4f2626=_0x2cb414[_0x3c07('0x57')](':');return{'group':_0x4f2626[0x0],'type':_0x4f2626[0x1],'subType':_0x4f2626[_0x3c07('0xf1')]>=0x5?_0x4f2626[0x2]:null,'id':_0x4f2626['length']<0x5?_0x4f2626[0x2]:_0x4f2626[0x3],'authorId':_0x4f2626[_0x3c07('0xf1')]<0x5?_0x4f2626[0x3]:_0x4f2626[0x4],'markerCount':0x6==_0x4f2626['length']?_0x4f2626[0x5]:null};}function _0x4ddf86(_0x2c8d3a){for(let _0x3523de=0x0;_0x3523de<_0x5eb7cc['length'];_0x3523de++){if(_0x2c8d3a[_0x3c07('0x83')]&&_0x3c07('0x62')==_0x5eb7cc[_0x3523de][_0x3c07('0x31')])return _0x2c8d3a['isAddSuggestion']=_0x5eb7cc[_0x3523de],void delete _0x2c8d3a[_0x3c07('0x83')];if(!_0x2c8d3a[_0x3c07('0x83')]&&!_0x2c8d3a[_0x3c07('0x10f')]&&_0x3c07('0xb2')==_0x5eb7cc[_0x3523de][_0x3c07('0x31')])return void(_0x2c8d3a[_0x3c07('0x1e')]=_0x5eb7cc[_0x3523de]);}}}['_setDistance'](_0xd4df4e,_0x43733f){let _0x14ad44=0x0,_0x2eec7e=!0x1;const _0x585b34=new Map();for(const _0x324a16 of _0xd4df4e)_0x324a16[_0x43733f]?_0x2eec7e&&(_0x14ad44++,_0x2eec7e=!0x1):(_0x14ad44++,_0x2eec7e=!0x0),_0x585b34[_0x3c07('0xcf')](_0x324a16['id'],_0x14ad44);for(let _0x128a87=0x0;_0x128a87<_0xd4df4e[_0x3c07('0xf1')];_0x128a87++){if('isRemoved'==_0x43733f&&_0xd4df4e[_0x128a87][_0x3c07('0x83')]||_0x3c07('0x83')==_0x43733f&&_0xd4df4e[_0x128a87][_0x3c07('0x10f')])continue;if('text'==_0xd4df4e[_0x128a87][_0x3c07('0x31')]){_0xd4df4e[_0x128a87][_0x3c07('0x53')]=0x0;continue;}const _0x591969=_0x585b34[_0x3c07('0x44')](_0xd4df4e[_0x128a87][_0x3c07('0x1d')]),_0x37046c=_0x585b34[_0x3c07('0x44')](_0xd4df4e[_0x128a87]['id']);_0xd4df4e[_0x128a87]['distance']=_0x591969-_0x37046c;}}[_0x3c07('0x7a')](_0x3aef3d,_0x24ccad,_0x5956e5=!0x1){const _0x259dce=[];let _0x24626e=this[_0x3c07('0x4')][_0x3c07('0x88')](_0x3aef3d),_0x4df05c=this['repository']['getIndex'](_0x24ccad);for(-0x1==_0x4df05c&&(_0x4df05c=this[_0x3c07('0x4')][_0x3c07('0x10c')]['length'],_0x5956e5=!0x1);_0x24626e<_0x4df05c;)_0x259dce[_0x3c07('0xed')](this[_0x3c07('0x4')][_0x3c07('0xd6')](_0x24626e)),_0x24626e++;return _0x5956e5&&_0x259dce[_0x3c07('0xed')](this[_0x3c07('0x4')][_0x3c07('0xd6')](_0x24626e)),_0x259dce;}[_0x3c07('0x89')](_0x30df9,_0x206917,_0x11f733,_0x5c9f06){const _0x385e93=this[_0x3c07('0x5f')][_0x3c07('0xfa')]['schema'];let _0xf03b6=_0x206917;for(;_0x30df9[_0xf03b6]&&_0x30df9[_0xf03b6][_0x3c07('0x83')];)_0xf03b6++;let _0x47043f=_0x5c9f06;for(;_0x11f733[_0x47043f]&&_0x11f733[_0x47043f][_0x3c07('0x10f')];)_0x47043f++;_0x4b4f9b(_0x30df9,_0x206917,_0xf03b6),_0x4b4f9b(_0x11f733,_0x5c9f06,_0x47043f);const _0x4d6f48=_0x11f733[_0x3c07('0x66')](_0x5c9f06,_0x47043f)[_0x3c07('0x92')](_0x30df9[_0x3c07('0x66')](_0x206917,_0xf03b6));return _0x4d6f48[_0x3c07('0x102')]((_0x539bba,_0x2c6b25)=>_0x539bba[_0x3c07('0xab')]!=_0x2c6b25[_0x3c07('0xab')]?_0x539bba[_0x3c07('0xab')]-_0x2c6b25['side']:_0x539bba['level']!=_0x2c6b25['level']?_0x539bba[_0x3c07('0x99')]-_0x2c6b25[_0x3c07('0x99')]:_0x539bba['distance']!=_0x2c6b25[_0x3c07('0x53')]?_0x2c6b25['distance']-_0x539bba[_0x3c07('0x53')]:!!_0x539bba[_0x3c07('0x83')]!=!!_0x2c6b25['isAdded']?-0x1==_0x539bba[_0x3c07('0xab')]||0x0==_0x539bba[_0x3c07('0xab')]?_0x539bba[_0x3c07('0x83')]?-0x1:0x1:_0x539bba[_0x3c07('0x83')]?0x1:-0x1:_0x539bba[_0x3c07('0x38')]-_0x2c6b25[_0x3c07('0x38')]),{'commonTape':_0x4d6f48,'iEnd':_0xf03b6,'jEnd':_0x47043f};function _0x4b4f9b(_0x5cbca6,_0x18d306,_0x491ab4){let _0x73e05f=-0x1,_0x109b09=Number[_0x3c07('0x64')],_0x9dae94=!0x0;for(let _0x160a49=_0x18d306;_0x160a49<_0x491ab4;_0x160a49++)if(_0x385e93[_0x3c07('0x52')](_0x5cbca6[_0x160a49]['item'])||(_0x9dae94=!0x1),_0x5cbca6[_0x160a49]['item'][_0x3c07('0x59')]<_0x18d306&&(_0x73e05f=_0x160a49),_0x5cbca6[_0x160a49][_0x3c07('0xbd')][_0x3c07('0x98')]>=_0x491ab4){_0x109b09=_0x160a49;break;}_0x9dae94&&(_0x73e05f=_0x491ab4-0x1);for(let _0x3a2327=_0x18d306;_0x3a2327<_0x491ab4;_0x3a2327++)_0x5cbca6[_0x3a2327][_0x3c07('0xab')]=_0x3a2327<=_0x73e05f?-0x1:_0x3a2327<_0x109b09?0x0:0x1,_0x5cbca6[_0x3a2327]['index']=_0x3a2327;let _0x3a4051=0x0;for(let _0x5300d6=_0x18d306;_0x5300d6<=_0x73e05f;_0x5300d6++)0x0==_0x5cbca6[_0x5300d6][_0x3c07('0x53')]?_0x5cbca6[_0x5300d6][_0x3c07('0x99')]=_0x3a4051:(_0x3a4051++,_0x5cbca6[_0x5300d6][_0x3c07('0x99')]=_0x3a4051,_0x3a4051++);for(let _0x39f445=_0x18d306;_0x39f445<_0x491ab4;_0x39f445++)0x0==_0x5cbca6[_0x39f445][_0x3c07('0xab')]&&(_0x5cbca6[_0x39f445]['level']=_0x3a4051);_0x3a4051=0x0;for(let _0xe0c746=_0x491ab4-0x1;_0xe0c746>=_0x109b09;_0xe0c746--)0x0==_0x5cbca6[_0xe0c746]['distance']?_0x5cbca6[_0xe0c746]['level']=_0x3a4051:(_0x3a4051--,_0x5cbca6[_0xe0c746][_0x3c07('0x99')]=_0x3a4051,_0x3a4051--);}}[_0x3c07('0xc')](_0x395f47){const _0x1a4960=new Map(),_0xdb6cf4=this[_0x3c07('0x5f')][_0x3c07('0xfa')]['schema'];for(let _0x172598=0x1;_0x172598<_0x395f47[_0x3c07('0xf1')];_0x172598++){let _0x6e9520,_0x15a7ed,_0x229491;const _0x1ea359=_0x395f47[_0x172598],_0x2e8b44=_0x395f47[_0x172598-0x1];if(_0x3c07('0xd')==_0x1ea359[_0x3c07('0x31')])continue;if(_0x1ea359['type']!=_0x2e8b44[_0x3c07('0x31')])continue;if(!_0xdb6cf4[_0x3c07('0xda')](_0x2e8b44[_0x3c07('0xbd')])||_0xdb6cf4[_0x3c07('0x108')](_0x2e8b44['item']))continue;if(!_0xdb6cf4[_0x3c07('0xda')](_0x1ea359[_0x3c07('0xbd')])||_0xdb6cf4['isLimit'](_0x1ea359['item']))continue;if((_0x395f47[_0x172598][_0x3c07('0x83')]||_0x395f47[_0x172598][_0x3c07('0x50')])&&_0x395f47[_0x172598-0x1][_0x3c07('0x10f')])_0x6e9520=_0x395f47[_0x172598],_0x15a7ed=_0x395f47[_0x172598-0x1],_0x229491=_0x172598-0x1;else{if(!_0x395f47[_0x172598][_0x3c07('0x10f')]||!_0x395f47[_0x172598-0x1][_0x3c07('0x83')]&&!_0x395f47[_0x172598-0x1][_0x3c07('0x50')])continue;_0x6e9520=_0x395f47[_0x172598-0x1],_0x15a7ed=_0x395f47[_0x172598],_0x229491=_0x172598;}const _0x1e050c=_0x6e9520[_0x3c07('0x99')]==_0x15a7ed[_0x3c07('0x99')],_0x2da670=Math[_0x3c07('0x96')](_0x6e9520[_0x3c07('0x99')])<Math[_0x3c07('0x96')](_0x15a7ed[_0x3c07('0x99')])&&0x0==_0x15a7ed[_0x3c07('0x53')];(_0x1e050c||_0x2da670)&&(_0x1a4960[_0x3c07('0xcf')](_0x15a7ed['id'],_0x6e9520['id']),_0x395f47[_0x3c07('0xd4')](_0x229491,0x1),_0x172598--,_0x6e9520['isAdded']=!0x1);}for(let _0x37a5d2=0x0;_0x37a5d2<_0x395f47['length'];_0x37a5d2++)_0x1a4960[_0x3c07('0x19')](_0x395f47[_0x37a5d2][_0x3c07('0x1d')])&&(_0x395f47[_0x37a5d2]['pairId']=_0x1a4960[_0x3c07('0x44')](_0x395f47[_0x37a5d2]['pairId']));}[_0x3c07('0x116')](_0x440839){const _0x15b11b=new Set(_0x440839['map'](_0x57ec36=>_0x57ec36['id']));for(let _0x346214=0x0;_0x346214<_0x440839[_0x3c07('0xf1')];_0x346214++)_0x15b11b[_0x3c07('0x19')](_0x440839[_0x346214][_0x3c07('0x1d')])||0x0==_0x440839[_0x346214][_0x3c07('0x53')]||(_0x440839[_0x346214]['isIncorrect']=!0x0);return _0x440839[_0x3c07('0x70')](_0x17a8f7=>!_0x17a8f7[_0x3c07('0xf')]);}[_0x3c07('0x10')](_0x31e09b){const _0x342f8c=new Set();for(let _0x285f23=0x0;_0x285f23<_0x31e09b['length'];_0x285f23++){if(_0x342f8c['has'](_0x31e09b[_0x285f23]['id'])&&_0x31e09b[_0x285f23][_0x3c07('0x10f')]&&(_0x31e09b[_0x285f23][_0x3c07('0xf')]=!0x0),_0x31e09b[_0x285f23]['isIncorrect'])continue;if(0x0==_0x31e09b[_0x285f23][_0x3c07('0x53')])continue;if(_0x3c07('0x101')!=_0x31e09b[_0x285f23][_0x3c07('0x31')])continue;if(null==_0x31e09b[_0x285f23][_0x3c07('0x1d')])continue;let _0x15745b=_0x285f23+0x1,_0x3936a4=0x0;for(;_0x31e09b[_0x15745b]['id']!=_0x31e09b[_0x285f23][_0x3c07('0x1d')];)_0x3c07('0x101')==_0x31e09b[_0x15745b]['type']?_0x3936a4++:_0x3c07('0x3f')==_0x31e09b[_0x15745b][_0x3c07('0x31')]&&_0x3936a4--,_0x15745b++;if(0x0!=_0x3936a4){if(_0x31e09b[_0x285f23]['isRemoved'])_0x31e09b[_0x285f23][_0x3c07('0xf')]=!0x0;else for(;_0x15745b!=_0x285f23;)_0x31e09b[_0x15745b]['isRemoved']&&0x0!=_0x31e09b[_0x15745b][_0x3c07('0x53')]&&(_0x31e09b[_0x15745b][_0x3c07('0xf')]=!0x0,_0x342f8c[_0x3c07('0xee')](_0x31e09b[_0x15745b][_0x3c07('0x1d')])),_0x15745b--;}}return _0x31e09b[_0x3c07('0x70')](_0x14ce50=>!_0x14ce50[_0x3c07('0xf')]);}[_0x3c07('0xad')](_0xddc030){const _0x324f7f=this[_0x3c07('0x5f')]['model'][_0x3c07('0x63')];for(let _0x1c3af1=0x0;_0x1c3af1<_0xddc030[_0x3c07('0xf1')];_0x1c3af1++){if(!(_0xddc030[_0x1c3af1][_0x3c07('0x83')]||_0xddc030[_0x1c3af1][_0x3c07('0x50')]||_0xddc030[_0x1c3af1][_0x3c07('0x10f')]||_0xddc030[_0x1c3af1][_0x3c07('0x1e')]))continue;if(0x0==_0xddc030[_0x1c3af1][_0x3c07('0x53')])continue;const _0x5d6ff7=_0xddc030[_0x1c3af1][_0x3c07('0xbd')];_0x324f7f[_0x3c07('0xda')](_0x5d6ff7)||_0x324f7f['isLimit'](_0x5d6ff7)||(_0xddc030[_0x1c3af1][_0x3c07('0x83')]&&delete _0xddc030[_0x1c3af1][_0x3c07('0x83')],_0xddc030[_0x1c3af1][_0x3c07('0x50')]&&delete _0xddc030[_0x1c3af1][_0x3c07('0x50')],_0xddc030[_0x1c3af1][_0x3c07('0x1e')]&&delete _0xddc030[_0x1c3af1][_0x3c07('0x1e')],_0xddc030[_0x1c3af1][_0x3c07('0x10f')]&&(_0xddc030[_0x1c3af1]['isIncorrect']=!0x0));}return _0xddc030[_0x3c07('0x70')](_0x20d4bb=>!_0x20d4bb['isIncorrect']);}['_makeModelFromTape'](_0x456983,_0x2afeb1,_0xbbf6b7){const _0x4f0932=new _0x188d52(),_0x55100c=[],_0x4d1720=new Map(),_0x39d797=this[_0x3c07('0x5f')][_0x3c07('0xfa')],_0x3ddfe9=_0x39d797[_0x3c07('0x63')],_0x1fc3ac=[_0x4f0932],_0x15435b={},_0x3fdde8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4156e9=null;const _0x1abb36=[0x0];for(let _0x574bd6=0x0;_0x574bd6<_0x456983[_0x3c07('0xf1')];_0x574bd6++){let _0x20dc82,_0x424444;if(_0x3c07('0x101')===_0x456983[_0x574bd6]['type']){_0x20dc82=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36);const _0x39b962=new _0x2b2bbc(_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0x5e')],_0x456983[_0x574bd6][_0x3c07('0xbd')]['getAttributes']());_0x1fc3ac[0x0][_0x3c07('0xa1')](_0x39b962),_0x1abb36[_0x3c07('0xed')](0x0),_0x1fc3ac['unshift'](_0x39b962),_0x424444=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x4156e9=null;}else{if(_0x3c07('0x3f')===_0x456983[_0x574bd6][_0x3c07('0x31')])_0x1fc3ac[_0x3c07('0xc4')](),_0x20dc82=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x1abb36[_0x3c07('0xa6')](),_0x1abb36[_0x1abb36[_0x3c07('0xf1')]-0x1]++,_0x424444=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x4156e9=null;else{if(_0x20dc82=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36),_0x4156e9&&_0x2cc966(_0x4156e9,_0x456983[_0x574bd6][_0x3c07('0xbd')]))_0x4156e9[_0x3c07('0x37')]+=_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0xf4')];else{const _0x48fae2=new _0x538d83(_0x456983[_0x574bd6][_0x3c07('0xbd')]['data'],_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0x86')]());_0x1fc3ac[0x0]['_appendChild'](_0x48fae2),_0x4156e9=_0x48fae2;}_0x1abb36[_0x1abb36[_0x3c07('0xf1')]-0x1]+=_0x456983[_0x574bd6][_0x3c07('0xbd')][_0x3c07('0x78')],_0x424444=_0x39d797[_0x3c07('0x5a')](_0x4f0932,_0x1abb36);}}for(const _0x2743d3 of _0x456983[_0x574bd6][_0x3c07('0x93')])_0x4d1720['set'](_0x2743d3,{'start':_0x20dc82,'end':null});_0x5071d1(_0x3c07('0x1e'),_0x574bd6,_0x20dc82,_0x424444),_0x5071d1(_0x3c07('0x50'),_0x574bd6,_0x20dc82,_0x424444),_0x5071d1(_0x3c07('0x10f'),_0x574bd6,_0x20dc82,_0x424444),_0x5071d1('isAdded',_0x574bd6,_0x20dc82,_0x424444);for(const _0x1999b5 of _0x456983[_0x574bd6]['markersEnd']){_0x4d1720[_0x3c07('0x44')](_0x1999b5)[_0x3c07('0x7c')]=_0x424444;}}for(const [_0xa931c2,_0x17c883]of _0x4d1720){const _0x5569f3=this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0xdf')](_0x17c883[_0x3c07('0xb6')],_0x17c883['end']);_0x4f0932['markers']['set'](_0xa931c2,_0x5569f3);}return _0x55100c['sort']((_0x30caf8,_0x1c086f)=>{const _0x3703ae=_0x4f0932[_0x3c07('0xcc')][_0x3c07('0x44')]('revision:'+_0x30caf8['id']),_0x11d7b0=_0x4f0932[_0x3c07('0xcc')][_0x3c07('0x44')](_0x3c07('0x79')+_0x1c086f['id']);return _0x3703ae[_0x3c07('0xb6')][_0x3c07('0xac')](_0x11d7b0[_0x3c07('0xb6')])?-0x1:_0x3703ae[_0x3c07('0xb6')][_0x3c07('0x8e')](_0x11d7b0[_0x3c07('0xb6')])?0x1:_0x3703ae['end']['isBefore'](_0x11d7b0[_0x3c07('0x7c')])?-0x1:_0x3703ae[_0x3c07('0x7c')][_0x3c07('0x8e')](_0x11d7b0[_0x3c07('0x7c')])?0x1:_0x3c07('0xee')===_0x30caf8['type']?-0x1:0x1;}),{'root':_0x4f0932,'changes':_0x55100c};function _0x5071d1(_0x35da47,_0x525250,_0x118466,_0x1826d6){const _0x50de02=!!_0x456983[_0x525250][_0x35da47],_0x3561ea=_0x50de02?_0x456983[_0x525250][_0x35da47][_0x3c07('0xe5')]:null,_0x945965=_0x525250===_0x456983[_0x3c07('0xf1')]-0x1,_0x39f334=_0x3fdde8[_0x35da47][0x0],_0x38cc42=_0x3ddfe9['isObject'](_0x456983[_0x525250]['item']);!_0x15435b[_0x35da47]&&_0x50de02?_0x15435b[_0x35da47]={'start':_0x118466,'tapeItem':_0x456983[_0x525250],'userId':_0x3561ea,'type':_0x35da47}:_0x15435b[_0x35da47]&&!_0x50de02?(_0x15435b[_0x35da47][_0x3c07('0x7c')]=_0x118466,_0x46eeb9(_0x15435b[_0x35da47]),_0x15435b[_0x35da47]=null):_0x15435b[_0x35da47]&&_0x50de02&&_0x15435b[_0x35da47]['userId']!==_0x3561ea&&(_0x15435b[_0x35da47][_0x3c07('0x7c')]=_0x118466,_0x39f334&&_0x39f334['userId']===_0x15435b[_0x35da47]['userId']||_0x46eeb9(_0x15435b[_0x35da47]),_0x15435b[_0x35da47]={'start':_0x118466,'tapeItem':_0x456983[_0x525250],'userId':_0x3561ea,'type':_0x35da47}),_0x15435b[_0x35da47]&&_0x38cc42&&('elementStart'!==_0x456983[_0x525250][_0x3c07('0x31')]||_0x39f334&&_0x39f334[_0x3c07('0xe5')]===_0x3561ea||_0x3fdde8[_0x35da47][_0x3c07('0xa3')]({'userId':_0x3561ea,'object':_0x456983[_0x525250][_0x3c07('0xbd')],'change':_0x15435b[_0x35da47]}),_0x3c07('0x3f')===_0x456983[_0x525250][_0x3c07('0x31')]&&_0x39f334&&_0x39f334[_0x3c07('0xf8')]===_0x456983[_0x525250][_0x3c07('0xbd')]&&(_0x3fdde8[_0x35da47][_0x3c07('0xc4')](),_0x15435b[_0x35da47]=_0x39f334[_0x3c07('0x11b')])),_0x15435b[_0x35da47]&&_0x945965&&(_0x15435b[_0x35da47][_0x3c07('0x7c')]=_0x1826d6,_0x46eeb9(_0x15435b[_0x35da47]),_0x15435b[_0x35da47]=null);}function _0x46eeb9({start:_0x5f547e,end:_0x5883ab,tapeItem:_0x44b372,userId:_0x426b9d,type:_0x4f9a30}){const _0x483ec3=_0x44b372['item'],_0x2a3f22=_0x39d797[_0x3c07('0x63')][_0x3c07('0xda')](_0x483ec3)&&!_0x39d797['schema']['isLimit'](_0x483ec3),_0x3067fe=_0x5f547e[_0x3c07('0x2c')]==_0x5883ab[_0x3c07('0x9e')]&&_0x5883ab[_0x3c07('0xbf')];if(_0x2a3f22&&_0x3067fe)return;const _0x59f00b=_0x39d797[_0x3c07('0xdf')](_0x5f547e,_0x5883ab),_0x413954=_0x2afeb1[_0x3c07('0x44')](_0x426b9d),_0x2225e4=new _0x4420af({'author':_0x413954,'type':_0x3c07('0x83')==_0x4f9a30||_0x3c07('0x50')==_0x4f9a30?_0x3c07('0xee'):_0x3c07('0x106'),'data':{'isSuggestion':'isAddSuggestion'==_0x4f9a30||'isRemoveSuggestion'==_0x4f9a30},'createdAt':new Date(),'rootName':_0xbbf6b7});_0x55100c[_0x3c07('0xed')](_0x2225e4),_0x4f0932[_0x3c07('0xcc')][_0x3c07('0xcf')](_0x3c07('0x79')+_0x2225e4['id'],_0x59f00b);}function _0x2cc966(_0x33eb4b,_0x514992){const _0xc1a85d=_0x33eb4b['getAttributes'](),_0x16a393=_0x514992[_0x3c07('0x86')]();for(const _0x2e208c of _0xc1a85d){if(_0x2e208c[0x1]!==_0x514992[_0x3c07('0x1')](_0x2e208c[0x0]))return!0x1;_0x16a393['next']();}return _0x16a393[_0x3c07('0x65')]()[_0x3c07('0x2e')];}}[_0x3c07('0x2d')](){this['editor'][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xc7'))[_0x3c07('0x8a')]({'view':_0x3c07('0x48')}),this[_0x3c07('0x5f')]['conversion'][_0x3c07('0xeb')]('editingDowncast')[_0x3c07('0x69')]({'model':_0x3c07('0x48'),'view':_0x150165=>{const _0x5c4bd2=_0x150165[_0x3c07('0x25')]['split'](':')[0x1],_0x3d12b7=this['_getChangeFromId'](_0x5c4bd2);if(!_0x3d12b7)return null;const _0x274034=_0x3c07('0xee')==_0x3d12b7[_0x3c07('0x31')]?_0x3c07('0x62'):_0x3c07('0xb2'),_0x4353be=['ck-suggestion-marker','ck-suggestion-marker-'+_0x274034];return _0x3d12b7[_0x3c07('0xf4')]['isSuggestion']&&_0x4353be['push'](_0x3c07('0x5')+_0x274034+'-new'),this[_0x3c07('0xcd')]==_0x3d12b7&&_0x4353be[_0x3c07('0xed')]('ck-suggestion-marker--active'),{'classes':_0x4353be,'attributes':{'data-change-id':_0x5c4bd2}};}}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xc7'))[_0x3c07('0xee')](_0x472f55=>{_0x472f55['on']('element:pre',(_0x1f6478,_0x50c888,_0x57cb60)=>{const _0x4abb9b=_0x50c888[_0x3c07('0x9a')]['getChild'](0x0);if(!_0x4abb9b||!_0x4abb9b['is'](_0x3c07('0x105'),'code'))return;if(!_0x57cb60[_0x3c07('0x7e')][_0x3c07('0x41')](_0x4abb9b,{'attributes':[_0x3c07('0xb9'),'vid_end']}))return;const _0x4d493f=_0x50c888[_0x3c07('0x14')][_0x3c07('0xb6')][_0x3c07('0x2c')];_0x57cb60[_0x3c07('0x20')][_0x3c07('0x3b')](_0x3c07('0xb9'),_0x4abb9b[_0x3c07('0x1')](_0x3c07('0xb9')),_0x4d493f),_0x57cb60['writer'][_0x3c07('0x3b')](_0x3c07('0x0'),_0x4abb9b[_0x3c07('0x1')]('vid_end'),_0x4d493f);},{'priority':'low'});}),this[_0x3c07('0x5f')]['conversion']['for'](_0x3c07('0xc7'))[_0x3c07('0xee')](_0x5d5ac6=>{_0x5d5ac6['on'](_0x3c07('0x105'),(_0x7ddf81,_0x2bfd2c,_0x179be0)=>{if(!_0x179be0[_0x3c07('0x7e')]['consume'](_0x2bfd2c[_0x3c07('0x9a')],{'attributes':[_0x3c07('0xb9'),_0x3c07('0x0')]}))return;if(_0x2bfd2c['modelRange'][_0x3c07('0x36')])return;const _0x38bfc5=_0x2bfd2c[_0x3c07('0x14')][_0x3c07('0xb6')]['nodeAfter'];_0x38bfc5[_0x3c07('0x5b')](_0x3c07('0xb9'))||_0x38bfc5['hasAttribute'](_0x3c07('0xba'))||(_0x179be0['writer']['setAttribute'](_0x3c07('0xb9'),_0x2bfd2c[_0x3c07('0x9a')][_0x3c07('0x1')](_0x3c07('0xb9')),_0x38bfc5),_0x179be0[_0x3c07('0x20')][_0x3c07('0x3b')](_0x3c07('0x0'),_0x2bfd2c[_0x3c07('0x9a')]['getAttribute'](_0x3c07('0x0')),_0x38bfc5));},{'priority':_0x3c07('0x61')});}),this['editor'][_0x3c07('0x11e')]['for'](_0x3c07('0xc7'))[_0x3c07('0x9c')]({'view':{'name':_0x3c07('0x90'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x54d0f3=>_0x54d0f3[_0x3c07('0x1')]('vid')}}),this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x63')]['on']('checkAttribute',(_0x45fa87,[,_0x180fff])=>{[_0x3c07('0xb9'),_0x3c07('0x0'),_0x3c07('0xba')][_0x3c07('0xfe')](_0x180fff)&&(_0x45fa87[_0x3c07('0xe7')]=!0x0,_0x45fa87[_0x3c07('0x74')]());},{'priority':_0x3c07('0x12')}),this[_0x3c07('0x5f')][_0x3c07('0x11e')]['for'](_0x3c07('0x8'))['add'](_0xf4408c=>{_0xf4408c['on'](_0x3c07('0x11a'),(_0x596c17,_0x444136,_0x13182a)=>{if('\x20'!=_0x444136[_0x3c07('0xbd')]['data']||_0x444136[_0x3c07('0xbd')]['parent'][_0x3c07('0x58')]>0x1)return;if(!_0x13182a[_0x3c07('0x7e')][_0x3c07('0x41')](_0x444136[_0x3c07('0xbd')],_0x596c17[_0x3c07('0x5e')]))return;const _0x4f522d=_0x13182a[_0x3c07('0x20')],_0x73be23=_0x13182a[_0x3c07('0xd3')]['toViewRange'](_0x444136['range']);_0x4f522d[_0x3c07('0x27')](_0x73be23,_0x4f522d[_0x3c07('0x4a')](_0x3c07('0x90')));});}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')]('dataDowncast')[_0x3c07('0x4e')]({'model':_0x3c07('0x48')}),this['editor']['editing'][_0x3c07('0x80')]['on'](_0x3c07('0x40'),function(_0x4f4601){const _0x36c94f=_0x4f4601['plugins']['get']('RevisionViewer');return(_0xda87df,_0x437529,_0x44ccfc)=>{const _0x2ab1c1=_0x437529[_0x3c07('0x25')]['split'](':')[0x1],_0x4c7d71=_0x36c94f[_0x3c07('0xe4')](_0x2ab1c1);if(!_0x4c7d71)return null;const _0x45dec2=_0x3c07('0xee')==_0x4c7d71[_0x3c07('0x31')]?'split':_0x3c07('0x42');if(!_0x44ccfc['consumable'][_0x3c07('0x22')](_0x437529[_0x3c07('0x100')],_0xda87df[_0x3c07('0x5e')]))return;const _0x5d118c=_0x437529[_0x3c07('0x100')]['getWalker'](),_0x38b82f=_0x437529[_0x3c07('0x100')][_0x3c07('0xb6')],_0x4d583f=_0x4f4601[_0x3c07('0xfa')][_0x3c07('0x63')];let _0x284c69=null,_0x151126=null,_0x1a3a20=!0x1,_0x59b6d0=!0x1;for(const _0x4787fb of _0x5d118c){const _0x4721a0=_0x4787fb[_0x3c07('0xbd')];_0x1a3a20=_0x1a3a20||_0x4d583f['isContent'](_0x4721a0);const _0x28c452=_0x44ccfc[_0x3c07('0xd3')]['toViewElement'](_0x4721a0);if(_0x28c452&&_0x28c452[_0x3c07('0x6d')](_0x3c07('0xc1')))return;_0x3c07('0x3f')==_0x4787fb['type']&&(_0x4d583f[_0x3c07('0xda')](_0x4721a0)&&!_0x4d583f[_0x3c07('0x108')](_0x4721a0)&&(_0x4721a0[_0x3c07('0x82')]||_0x38b82f[_0x3c07('0xde')]?_0x284c69&&_0x284c69[_0x3c07('0x9e')]==_0x4721a0||(_0x284c69=_0x4721a0,_0x67f628(_0x4787fb['previousPosition']),_0x59b6d0=!0x0):_0x151126=_0x151126||_0x4787fb[_0x3c07('0x11d')]));}function _0x67f628(_0x4695f0){const _0xb99521=_0x44ccfc[_0x3c07('0x20')]['createUIElement'](_0x3c07('0x90'),{'class':_0x3c07('0x5')+_0x45dec2}),_0x52d80e=_0x44ccfc['mapper']['toViewPosition'](_0x4695f0);_0x4c7d71[_0x3c07('0xf4')][_0x3c07('0x7b')]&&_0x44ccfc['writer'][_0x3c07('0x49')](_0x3c07('0x5')+_0x45dec2+_0x3c07('0x104'),_0xb99521),_0x36c94f[_0x3c07('0xcd')]==_0x4c7d71&&_0x44ccfc[_0x3c07('0x20')][_0x3c07('0x49')](_0x3c07('0xb0'),_0xb99521),_0x44ccfc[_0x3c07('0x20')]['insert'](_0x52d80e,_0xb99521),_0x44ccfc['mapper'][_0x3c07('0x13')](_0xb99521,_0x437529[_0x3c07('0x25')]);}_0x1a3a20||_0x59b6d0||!_0x151126||_0x67f628(_0x151126);};}(this[_0x3c07('0x5f')]),{'priority':'high'}),this[_0x3c07('0x5f')][_0x3c07('0x113')]['downcastDispatcher']['on'](_0x3c07('0x15'),(_0x1b86f1,_0x1c7ec7,_0x32c083)=>{const _0x3be390=_0x32c083['mapper'][_0x3c07('0x6c')](_0x1c7ec7[_0x3c07('0x25')]);if(_0x3be390)for(const _0x280eaf of _0x3be390)(_0x280eaf[_0x3c07('0x56')]('ck-suggestion-marker-split')||_0x280eaf[_0x3c07('0x56')](_0x3c07('0x7')))&&(_0x32c083['mapper'][_0x3c07('0x43')](_0x280eaf,_0x1c7ec7[_0x3c07('0x25')]),_0x32c083[_0x3c07('0x20')][_0x3c07('0x106')](_0x280eaf));},{'priority':_0x3c07('0x6')}),this[_0x3c07('0x5f')][_0x3c07('0x113')][_0x3c07('0x80')]['on'](_0x3c07('0x40'),(_0x514229,_0x884a92,_0xd0252)=>{const _0x577d4a=_0x884a92[_0x3c07('0x25')][_0x3c07('0x57')](':')[0x1],_0x4d384d=this['_getChangeFromId'](_0x577d4a);if(!_0x4d384d)return null;const _0x2ff7b0=_0x3c07('0xee')==_0x4d384d[_0x3c07('0x31')]?_0x3c07('0x57'):_0x3c07('0x42');if(_0xd0252['consumable'][_0x3c07('0x22')](_0x884a92[_0x3c07('0x100')],_0x514229['name']))for(const _0x4ff040 of _0x884a92[_0x3c07('0x100')][_0x3c07('0x3a')]()){if(!_0x4ff040['is']('element',_0x3c07('0xbc')))continue;const _0x2ee523=_0xd0252[_0x3c07('0x20')][_0x3c07('0x4c')](_0x3c07('0x90'),{'class':_0x3c07('0x5')+_0x2ff7b0}),_0x4195a4=_0xd0252[_0x3c07('0xd3')][_0x3c07('0xf2')](this[_0x3c07('0x5f')][_0x3c07('0xfa')]['createPositionBefore'](_0x4ff040));_0x4d384d[_0x3c07('0xf4')][_0x3c07('0x7b')]&&_0xd0252['writer'][_0x3c07('0x49')](_0x3c07('0x5')+_0x2ff7b0+'-new',_0x2ee523),this[_0x3c07('0xcd')]==_0x4d384d&&_0xd0252[_0x3c07('0x20')][_0x3c07('0x49')]('ck-suggestion-marker--active',_0x2ee523),_0xd0252[_0x3c07('0x20')]['insert'](_0x4195a4,_0x2ee523),_0xd0252[_0x3c07('0xd3')][_0x3c07('0x13')](_0x2ee523,_0x884a92[_0x3c07('0x25')]);}},{'priority':_0x3c07('0x6')}),this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['on'](_0x3c07('0x11b'),()=>{this[_0x3c07('0x5f')]['editing'][_0x3c07('0xa')][_0x3c07('0x11b')](_0x5b2fcc=>{for(const _0x25e055 of this[_0x3c07('0x5f')][_0x3c07('0xfa')]['document'][_0x3c07('0xae')]()){const _0xca35f3=this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x10e')]['getRoot'](_0x25e055),_0xe532fa=this[_0x3c07('0x5f')]['editing'][_0x3c07('0xa')][_0x3c07('0x10e')][_0x3c07('0xb4')](_0x25e055);if(_0xe532fa){const _0x4a1bac=_0xca35f3[_0x3c07('0x1')]('revisionHistoryAttachChange');if(_0x5b2fcc[_0x3c07('0x6f')](_0x3c07('0xb7'),_0xe532fa),_0x5b2fcc['removeClass'](_0x3c07('0xd0'),_0xe532fa),_0x5b2fcc[_0x3c07('0x2')](_0x3c07('0xe1'),_0xe532fa),_0x5b2fcc[_0x3c07('0x2')](_0x3c07('0x23'),_0xe532fa),_0x4a1bac){const _0x4dbe8b=this[_0x3c07('0xe4')](_0x4a1bac);if(!_0x4dbe8b)return null;_0x5b2fcc[_0x3c07('0x3b')](_0x3c07('0xb7'),_0x4a1bac,_0xe532fa),_0x5b2fcc[_0x3c07('0x49')]('ck-revision-history-root-'+_0x4dbe8b['type'],_0xe532fa),this[_0x3c07('0xcd')]==_0x4dbe8b&&_0x5b2fcc['addClass'](_0x3c07('0x23'),_0xe532fa);}}}});}),this[_0x3c07('0x5f')]['conversion'][_0x3c07('0xeb')]('upcast')[_0x3c07('0x8a')]({'view':_0x3c07('0x6b'),'model':_0xfe30f3=>'revision-comment:'+_0xfe30f3,'converterPriority':_0x3c07('0x12')}),this['editor'][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xc7'))['dataToMarker']({'view':_0x3c07('0x28'),'model':_0x64919c=>_0x3c07('0x119')+_0x64919c,'converterPriority':_0x3c07('0x12')}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0x8'))['markerToData']({'model':_0x3c07('0x6e'),'view':_0x3a7dad=>({'name':_0x3c07('0xdd')+_0x3a7dad,'group':_0x3c07('0x6e')}),'converterPriority':_0x3c07('0x12')}),this[_0x3c07('0x5f')][_0x3c07('0x11e')][_0x3c07('0xeb')](_0x3c07('0xb1'))[_0x3c07('0x69')]({'model':'revision-suggestion','view':_0x35427f=>{const _0x1490bc=_0x35427f[_0x3c07('0x25')][_0x3c07('0x57')](':')[0x1];return _0x3c07('0x62')!=_0x1490bc&&_0x3c07('0xb2')!=_0x1490bc?null:{'classes':['ck-suggestion-preview-marker',_0x3c07('0xcb')+_0x1490bc]};}}),this['editor'][_0x3c07('0x113')][_0x3c07('0x80')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x3c07('0x5f')],_0x3c07('0x42')),{'priority':_0x3c07('0x6')}),this[_0x3c07('0x5f')]['editing'][_0x3c07('0x80')]['on'](_0x3c07('0x6a'),et(this[_0x3c07('0x5f')],'split'),{'priority':'high'}),this['editor']['editing'][_0x3c07('0x80')]['on'](_0x3c07('0x10d'),(_0x1375b9,_0x29399a,_0x413baf)=>{const _0x5ea349=_0x413baf[_0x3c07('0xd3')]['markerNameToElements'](_0x29399a['markerName']);if(_0x5ea349)for(const _0x8eb99d of _0x5ea349)_0x8eb99d['is']('uiElement')&&(_0x413baf['mapper'][_0x3c07('0x43')](_0x8eb99d,_0x29399a['markerName']),_0x413baf[_0x3c07('0x20')][_0x3c07('0x106')](_0x8eb99d));},{'priority':_0x3c07('0x6')});}[_0x3c07('0xe4')](_0x6c1687){return this[_0x3c07('0x9f')][_0x3c07('0x44')](_0x6c1687);}[_0x3c07('0x67')](_0x14ef42){return this[_0x3c07('0x91')]&&this[_0x3c07('0x91')]['destroy'](),this['_changeView']=new _0x579397(this[_0x3c07('0x5f')][_0x3c07('0x1b')],_0x14ef42),this['_changeView'];}['_initInteractions'](){this['editor'][_0x3c07('0xfa')][_0x3c07('0x10e')][_0x3c07('0xf6')][_0x3c07('0xe0')](_0x3c07('0x48')),this['on'](_0x3c07('0xf0'),(_0x21f91b,_0x4e3a6d,_0x12f0c3,_0x3f83d2)=>{_0x3f83d2&&this['_balloon']['remove'](_0x3f83d2),_0x12f0c3&&(this['_balloon']['add']({'view':_0x12f0c3,'stackId':_0x3c07('0x55'),'position':{'target':()=>{const _0x53ee16=this[_0x3c07('0x5f')][_0x3c07('0x113')],_0xc20699=this['_getChangeFromId'](_0x12f0c3[_0x3c07('0x85')]);let _0xc153b7;if(_0xc20699[_0x3c07('0xf4')][_0x3c07('0x8b')]){const _0x59d2bd=_0x53ee16[_0x3c07('0xa')][_0x3c07('0x2f')](_0xc20699[_0x3c07('0x115')]);_0xc153b7=Array[_0x3c07('0xd1')](_0x59d2bd[_0x3c07('0xd9')]());}else{const _0x91b44=this[_0x3c07('0x5f')]['model'][_0x3c07('0xcc')][_0x3c07('0x44')](_0x3c07('0x79')+_0x12f0c3['changeId']);_0xc153b7=Array[_0x3c07('0xd1')](_0x53ee16[_0x3c07('0xd3')][_0x3c07('0x6c')](_0x91b44[_0x3c07('0x5e')]))[_0x3c07('0x81')](_0xd25bf8=>_0x53ee16['view']['domConverter'][_0x3c07('0xfd')](_0xd25bf8))[_0x3c07('0x81')](_0x23a59d=>Array[_0x3c07('0xd1')](_0x23a59d[_0x3c07('0xd9')]()))[_0x3c07('0xc9')]();}if(!this['_activeViewTarget'])return _0xc153b7[0x0];return _0xc153b7[_0x3c07('0xd5')](_0x35c7dc=>_0x35c7dc['top']-0x3<=this[_0x3c07('0x1c')]['y']&&_0x35c7dc[_0x3c07('0xa8')]+0x3>=this['_activeViewTarget']['y']&&_0x35c7dc[_0x3c07('0xbe')]-0x3<=this[_0x3c07('0x1c')]['x']&&_0x35c7dc['right']+0x3>=this['_activeViewTarget']['x'])||_0xc153b7[0x0];}}}),this[_0x3c07('0x32')][_0x3c07('0xfc')](_0x3c07('0x55')));}),this['on'](_0x3c07('0xa5'),(_0x46ae1a,_0x4cfbc2,_0x125e08,_0x339cf4)=>{this[_0x3c07('0xe8')]=_0x125e08?this['_getViewForChange'](_0x125e08):null,this[_0x3c07('0x5f')]['model'][_0x3c07('0x11b')](()=>{const _0x2f9437=this[_0x3c07('0x5f')][_0x3c07('0x113')];_0x339cf4&&(_0x339cf4['data']['isOnRoot']?_0x2f9437[_0x3c07('0xa')][_0x3c07('0x11b')](_0x1f1f12=>{_0x1f1f12['removeClass'](_0x3c07('0x23'),_0x2f9437[_0x3c07('0xa')]['document'][_0x3c07('0xb4')](_0x339cf4[_0x3c07('0x115')]));}):_0x2f9437[_0x3c07('0x26')](_0x3c07('0x79')+_0x339cf4['id'])),_0x125e08&&(_0x125e08[_0x3c07('0xf4')][_0x3c07('0x8b')]?_0x2f9437[_0x3c07('0xa')][_0x3c07('0x11b')](_0x33a7bc=>{_0x33a7bc[_0x3c07('0x49')](_0x3c07('0x23'),_0x2f9437[_0x3c07('0xa')][_0x3c07('0x10e')][_0x3c07('0xb4')](_0x125e08[_0x3c07('0x115')]));}):_0x2f9437[_0x3c07('0x26')](_0x3c07('0x79')+_0x125e08['id']));});}),this[_0x3c07('0xdb')](this[_0x3c07('0x5f')][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],'mouseover',(_0x566ab1,_0x3c7529)=>{if(this[_0x3c07('0xcd')])return;const _0x35507b=this['_findChangeIdFromDomTarget'](_0x3c7529['target']),_0x1eafcc=this['_changeIdToChange']['get'](_0x35507b);_0x1eafcc?(this[_0x3c07('0x1c')]={'x':_0x3c7529[_0x3c07('0xce')]['x'],'y':_0x3c7529[_0x3c07('0xce')]['y']},this[_0x3c07('0xe8')]=this[_0x3c07('0x67')](_0x1eafcc)):(this[_0x3c07('0x1c')]=null,this[_0x3c07('0xe8')]=null);}),this['listenTo'](this['editor'][_0x3c07('0x113')][_0x3c07('0xa')][_0x3c07('0x10e')],_0x3c07('0x4b'),(_0xf001f1,_0x22917a)=>{const _0x142631=this['_findChangeIdFromDomTarget'](_0x22917a[_0x3c07('0x24')]),_0x1f21e7=this[_0x3c07('0x9f')][_0x3c07('0x44')](_0x142631);_0x1f21e7?(this['_activeViewTarget']={'x':_0x22917a[_0x3c07('0xce')]['x'],'y':_0x22917a[_0x3c07('0xce')]['y']},_0x1f21e7===this[_0x3c07('0xcd')]?this[_0x3c07('0x32')][_0x3c07('0xe2')]():this[_0x3c07('0xcd')]=_0x1f21e7):(this[_0x3c07('0x1c')]=null,this['activeChange']=null);});}[_0x3c07('0x7d')](_0x425b85){do{const _0x4ff2da=_0x425b85[_0x3c07('0x1')](_0x3c07('0xb7'));if(_0x4ff2da)return _0x4ff2da;_0x425b85=_0x425b85['parent'];}while(_0x425b85);return null;}['_cleanMarkers'](){this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0x11b')](_0x3dd6ed=>{for(const _0x34f9d9 of this[_0x3c07('0x5f')][_0x3c07('0xfa')][_0x3c07('0xcc')])_0x3dd6ed[_0x3c07('0x5c')](_0x34f9d9);});}}function et(_0x3192ab,_0x57ef40){return(_0x5cb173,_0x373b33,_0x3aad7c)=>{if(!_0x3aad7c['consumable']['test'](_0x373b33[_0x3c07('0x100')],_0x5cb173[_0x3c07('0x5e')]))return;const _0x5c194b=_0x373b33[_0x3c07('0x100')][_0x3c07('0xec')](),_0x52dd24=_0x373b33[_0x3c07('0x100')][_0x3c07('0xb6')],_0xc7e930=_0x3192ab[_0x3c07('0xfa')][_0x3c07('0x63')];let _0x16b396=null,_0x214dbd=null,_0x7416f1=!0x1,_0x36aff9=!0x1;for(const _0x59a532 of _0x5c194b){const _0x17f67d=_0x59a532[_0x3c07('0xbd')];_0x7416f1=_0x7416f1||_0xc7e930[_0x3c07('0xf9')](_0x17f67d);const _0x2fb442=_0x3aad7c[_0x3c07('0xd3')][_0x3c07('0xd7')](_0x17f67d);if(_0x2fb442&&_0x2fb442[_0x3c07('0x6d')](_0x3c07('0xc1')))return;_0x3c07('0x3f')==_0x59a532['type']&&(_0xc7e930[_0x3c07('0xda')](_0x17f67d)&&!_0xc7e930[_0x3c07('0x108')](_0x17f67d)&&(_0x17f67d[_0x3c07('0x82')]||_0x52dd24[_0x3c07('0xde')]?_0x16b396&&_0x16b396['parent']==_0x17f67d||(_0x16b396=_0x17f67d,_0x181856(_0x59a532['previousPosition']),_0x36aff9=!0x0):_0x214dbd=_0x214dbd||_0x59a532['previousPosition']));}function _0x181856(_0x37ee6d){const _0x5c613e=_0x3aad7c[_0x3c07('0xd3')][_0x3c07('0xf2')](_0x37ee6d),_0x29c86e=_0x3aad7c[_0x3c07('0x20')][_0x3c07('0x4c')](_0x3c07('0x90'),{'class':'ck-suggestion-preview-marker-'+_0x57ef40});_0x3aad7c[_0x3c07('0x20')][_0x3c07('0x60')](_0x5c613e,_0x29c86e),_0x3aad7c[_0x3c07('0xd3')][_0x3c07('0x13')](_0x29c86e,_0x373b33['markerName']);}_0x7416f1||_0x36aff9||!_0x214dbd||_0x181856(_0x214dbd);};}export class RestoreRevisionCommand extends _0x14fe97{constructor(_0xcebc49){super(_0xcebc49);const _0x1ce8dc=_0xcebc49[_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xa0')]=!0x1,this[_0x3c07('0xdb')](_0x1ce8dc,'change:isReady',()=>this[_0x3c07('0xe6')]()),this[_0x3c07('0xdb')](_0x1ce8dc,_0x3c07('0xc6'),()=>this[_0x3c07('0xe6')]());}[_0x3c07('0x3')](){const _0x545486=this['editor'],_0x22f3b4=_0x545486[_0x3c07('0x118')][_0x3c07('0x44')](d),_0x324378=_0x22f3b4[_0x3c07('0x117')]?_0x22f3b4[_0x3c07('0xa4')][_0x3c07('0x3c')]:null;_0x545486['config']['get']('revisionHistory')[_0x3c07('0x21')](_0x324378);}[_0x3c07('0xe6')](){const {isReady:_0x42f844,isEnabled:_0x22ec23}=this[_0x3c07('0x5f')][_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xe3')]=_0x42f844&&_0x22ec23;}}export class ShowChangeCommand extends _0x14fe97{constructor(_0x5dd157,{direction:_0x2c9832}){super(_0x5dd157);const _0x4a7e95=_0x5dd157[_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xa0')]=!0x1,this[_0x3c07('0xc3')]=_0x3c07('0x84')===_0x2c9832?0x1:-0x1,this['listenTo'](_0x4a7e95,'change:isReady',()=>this[_0x3c07('0xe6')]()),this['listenTo'](_0x4a7e95,_0x3c07('0xc6'),()=>this[_0x3c07('0xe6')]()),this[_0x3c07('0xdb')](_0x4a7e95,_0x3c07('0xa5'),()=>this[_0x3c07('0xe6')]());}[_0x3c07('0x3')](){const _0x27e4ff=this[_0x3c07('0x5f')],_0x399efc=_0x27e4ff[_0x3c07('0x118')]['get'](d),{isNavigationMode:_0x23ed23,currentChangeNumber:_0x1928a6}=_0x399efc;let _0x21375c;if(_0x399efc[_0x3c07('0xcd')]=_0x23ed23?_0x399efc[_0x3c07('0xa4')][_0x3c07('0xbb')][_0x3c07('0x44')](_0x1928a6+this[_0x3c07('0xc3')]):_0x399efc[_0x3c07('0xa4')][_0x3c07('0xbb')][_0x3c07('0x107')],_0x399efc[_0x3c07('0xcd')][_0x3c07('0xf4')][_0x3c07('0x8b')])_0x21375c=_0x27e4ff['editing'][_0x3c07('0xa')][_0x3c07('0x2f')](_0x399efc['activeChange'][_0x3c07('0x115')]);else{const _0x3c0967=_0x27e4ff['model']['markers'][_0x3c07('0x44')]('revision:'+_0x399efc[_0x3c07('0xcd')]['id']);_0x21375c=_0x37dcec(_0x27e4ff[_0x3c07('0x113')],_0x3c0967);}_0x113633({'target':_0x21375c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19c0fd,currentChangeNumber:_0x512375,numberOfChanges:_0x5ae67d,isReady:_0x4cb098,isEnabled:_0x366d55}=this['editor'][_0x3c07('0x118')][_0x3c07('0x44')](d);this[_0x3c07('0xe3')]=!!(_0x366d55&&_0x4cb098&&_0x5ae67d)&&(!_0x19c0fd||(0x1===this[_0x3c07('0xc3')]?_0x512375<_0x5ae67d-0x1:_0x512375>0x0));}}
|
|
23
|
+
const _0x307b=['listenTo','plugins','_changeView','low','dataToMarker','ck-suggestion-preview-marker','WidgetToolbarRepository','_refreshStartEndIndex','viewItem','next','values','reconvertMarker','start','_threeWayMerge','createRevision','_markMarkers','from','isEnabled','return','name','push','suggestion:','removeMarker:revision','diffData','elementStart','_update','revision-end','revision','flat','createRangeIn','isRemoved','markerToData','_cleanUp','merge','_makeTape','markerRange','model','getIndex','split','index','isSuggestion','previousPosition','affectsData','text','isBefore','_joinTapes','unshift','compare','isNavigationMode','getRevisionData','insertions','revisionHistoryLabel','attachChange','markersEnd','has','map','rootName','isIncorrect','_fixObsoleteTags','_makeModelFromTape','right','_findChangeIdFromDomTarget','wrap','abs','revision-viewer','item','_cleanMarkers','vid_end','domConverter','_getRevisionsRange','markersStart','uiElement','markerToHighlight','detachRoot','_getViewForChange','element','pop','markerName','mouseover','_revisions','bindElementToMarker','RevisionsRepository','document','findIndex','ck-revision-history-root-','toModel','mapViewToDom','getCustomProperty','forEach','range','_getDiff','end','isAfter','_removeUnsupportedChanges','level','ck-suggestion-preview-marker-','object','then','requires','elementEnd','revision-comment:','ck-suggestion-marker','removeAttribute','stop','code','getChild','addHighlight','_sortAndFilterDiffChanges','isAdded','isCollapsed','config','enqueueChange','high','showNextChange','init','distance','find','_getChangeFromId','isAddSuggestion','change:numberOfChanges','test','roots','consumable','mapper','hasClass','addClass','nodeAfter','isEqual','backward','insertion','insert','done','-new','comment','addMarker:revision-suggestion:deletion','activeChange','restoreRevisionCallback','getRootNames','enableReadOnlyMode','top','attribute:vid','data-change-id','bind','mousedown','upcast','isAttached','filter','isObject','type','isReady','newRevisionId','isInline','showPreviousChange','parent','getDomRoot','isOnRoot','toViewElement','isLimit','execute','authors','_processTape','_removeMissingPairs','createPositionFromPath','error','shift','addRoot','left','keys','element:pre','userId','addMarker:revision','revision-suggestion','refresh','pairId','children','nextSibling','concat','getAttribute','_step','_markInsertions','isRemoveSuggestion','useFillerType','nextPosition','changes','schema','markerNameToElements','remove','getItems','set','maxOffset','_changeIdToChange','add','target','splice','getRevision','POSITIVE_INFINITY','_balloon','adapter','_setDistance','editor','vid','removeMarker:revision-suggestion','highest','updatePosition','consume','modelRange','softBreak','deletions','showStack','suggestion','attributesAfter','ck-revision-history-root-remove','removeClass','editingDowncast','getRevisionRootsAttributes','addRevisionData','change:activeChange','dataDowncast','ck-suggestion-marker--active','marked','includes','attributes','observeMarkers','vid_start','repository','setAttribute','string','markers','revisionHistoryAttachChange','RevisionViewer','revision:','startIndex','bottom','indexOf','_appendChild','createRange','sort','revision-suggestion:','change:activeView','getWalker','loadRevisionData','hasAttribute','parse','default','revision-start','ck-revision-history-root--active','activeView','ck-editor__editable__overlay','length','side','commands','deletion','_getViewObj','removeMarker','for','ck-suggestion-marker-','getClientRects','change:isEnabled','catch','domEvent','diff','_markMismatchedRemovedTags','delete','_makeModelFromViewString','_removeRevisionMarkers','downcastDispatcher','resolve','data','editing','_initInteractions','endIndex','locale','elementToAttribute','get','change','attributesBefore','_markSuggestions','change:isReady','restoreRevision','selection','all','pluginName','conversion','clear','isBlock','toViewPosition','view','startsWith','_setConversion','createUIElement','_activeViewTarget','isContent','getAttributes','unbindElementFromMarkerName','span','getRoot','createPositionBefore','writer'];(function(_0x195dfe,_0x307b63){const _0x41d3e5=function(_0x137c10){while(--_0x137c10){_0x195dfe['push'](_0x195dfe['shift']());}};_0x41d3e5(++_0x307b63);}(_0x307b,0xce));const _0x41d3=function(_0x195dfe,_0x307b63){_0x195dfe=_0x195dfe-0x0;let _0x41d3e5=_0x307b[_0x195dfe];return _0x41d3e5;};import{Plugin as _0xce1cc,Command as _0x52ed3c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x320f9a}from'ckeditor5/src/utils';import{ContextualBalloon as _0x122f39}from'ckeditor5/src/ui';import{DocumentFragment as _0x343bc4,Element as _0x214106,Text as _0x432852,ViewDocumentFragment as _0x37cf6a,ViewText as _0x1cb5cc,ViewElement as _0xf6828d,ViewContainerElement as _0xfd2e6d,ViewAttributeElement as _0x579839,ViewEmptyElement as _0x4be788,ViewRawElement as _0x35193a,ViewUIElement as _0x930eb5}from'ckeditor5/src/engine';import{Users as _0x372175,getMarkerDomElement as _0x4c8423}from'ckeditor5-collaboration/src/collaboration-core';import _0x702f8d from'./ui/revisionviewer/changedetailsview';import _0x849c9d from'./revisionsrepository';import _0x1d437b from'./changeitem';import{default as _0x15298f}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0xecf1aa}from'lodash-es';const tt={'c':_0xfd2e6d,'a':_0x579839,'e':_0x4be788,'r':_0x35193a,'u':_0x930eb5};export default class d extends _0xce1cc{static get[_0x41d3('0x4b')](){return _0x41d3('0x17');}static get[_0x41d3('0xbe')](){return[_0x372175,_0x122f39,_0x849c9d];}constructor(_0x373434){super(_0x373434),this[_0x41d3('0x12')]=this[_0x41d3('0x123')]['plugins'][_0x41d3('0x43')](_0x41d3('0xad')),this[_0x41d3('0x118')](_0x41d3('0xe3'),null),this['set'](_0x41d3('0x28'),null),this['_activeViewTarget']=null,this[_0x41d3('0x118')]('diff',null),this[_0x41d3('0x118')]('isReady',!0x1),this[_0x41d3('0x118')](_0x41d3('0x6d'),!0x0),this['on'](_0x41d3('0x33'),(_0x438eff,_0x17db0e,_0x3f0616)=>{this[_0x41d3('0xe3')]=null,this['activeView']=null,this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0x44')](_0x5cd6e5=>{for(const _0x169aab of this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0xae')][_0x41d3('0xd5')])_0x3f0616?_0x5cd6e5[_0x41d3('0x6')](_0x41d3('0x29'),_0x169aab):_0x5cd6e5[_0x41d3('0xd9')]('ck-editor__editable__overlay',_0x169aab);});}),this[_0x41d3('0xea')](_0x41d3('0x8c'))['to'](this,'activeChange',_0x18e2ff=>null!==_0x18e2ff),this[_0x41d3('0xea')]('currentChangeNumber')['to'](this,_0x41d3('0xf1'),this,_0x41d3('0x36'),this,_0x41d3('0xe3'),(_0x2525e0,_0xf06afd,_0x4bc6b6)=>_0x2525e0&&_0x4bc6b6?_0xf06afd[_0x41d3('0x113')][_0x41d3('0x81')](_0x4bc6b6):0x0),this[_0x41d3('0xea')]('numberOfChanges')['to'](this,_0x41d3('0xf1'),this,_0x41d3('0x36'),(_0xcd28e2,_0x2a94b9)=>_0xcd28e2?_0x2a94b9[_0x41d3('0x113')][_0x41d3('0x2a')]:0x0),this[_0x41d3('0x5e')]=null,this[_0x41d3('0x11a')]=new Map(),this[_0x41d3('0x121')]=null,this[_0x41d3('0x120')]=this[_0x41d3('0x123')][_0x41d3('0x5d')][_0x41d3('0x43')](_0x122f39);}[_0x41d3('0xce')](){const _0x20c70f=this['editor'],_0x5c3f9=new ShowChangeCommand(_0x20c70f,{'direction':_0x41d3('0xdc')}),_0x606f41=new ShowChangeCommand(_0x20c70f,{'direction':'forward'});(_0x20c70f[_0x41d3('0x2c')]['add'](_0x41d3('0xf4'),_0x5c3f9),_0x20c70f[_0x41d3('0x2c')][_0x41d3('0x11b')](_0x41d3('0xcd'),_0x606f41),_0x20c70f[_0x41d3('0x2c')][_0x41d3('0x11b')](_0x41d3('0x48'),new RestoreRevisionCommand(_0x20c70f)),this['on'](_0x41d3('0xd3'),()=>{_0x5c3f9[_0x41d3('0x108')](),_0x606f41[_0x41d3('0x108')]();}),this['_setConversion'](),this[_0x41d3('0x3f')](),_0x20c70f[_0x41d3('0xe6')](_0x41d3('0x9c')),_0x20c70f[_0x41d3('0x5d')][_0x41d3('0x92')](_0x41d3('0x62')))&&_0x20c70f[_0x41d3('0x5d')]['get'](_0x41d3('0x62'))['forceDisabled'](_0x41d3('0x9c'));}async[_0x41d3('0x8d')](_0x14406d){await this[_0x41d3('0x22')](_0x14406d);const _0x3ad7d2={};for(const _0x2b81b9 in _0x14406d['diffData']){if(_0x14406d[_0x41d3('0x73')][_0x2b81b9]['attachChange']&&!_0x14406d['diffData'][_0x2b81b9][_0x41d3('0x90')]['isAttached'])continue;const _0x515912=this[_0x41d3('0x3a')](JSON['parse'](_0x14406d[_0x41d3('0x73')][_0x2b81b9]['insertions'])),_0x377867=this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0xae')],_0x22fd70=new _0x37cf6a(_0x377867,_0x515912[_0x41d3('0x93')](_0x5ebc00=>this[_0x41d3('0x2e')](_0x5ebc00)));this[_0x41d3('0x123')][_0x41d3('0x3d')]['processor'][_0x41d3('0x111')](_0x41d3('0xd')),_0x3ad7d2[_0x2b81b9]=this['editor'][_0x41d3('0x3d')]['processor']['toData'](_0x22fd70),this[_0x41d3('0x123')][_0x41d3('0x3d')]['processor'][_0x41d3('0x111')](_0x41d3('0x25'));}return _0x3ad7d2;}async[_0x41d3('0x8')](_0x359bc4){await this['loadRevisionData'](_0x359bc4);const _0x71830c={};for(const _0x2c9079 in _0x359bc4['diffData'])_0x359bc4[_0x41d3('0x73')][_0x2c9079]['attachChange']&&!_0x359bc4[_0x41d3('0x73')][_0x2c9079][_0x41d3('0x90')][_0x41d3('0xed')]||(_0x71830c[_0x2c9079]=_0x359bc4[_0x41d3('0x73')][_0x2c9079][_0x41d3('0x4')]||{});return _0x71830c;}[_0x41d3('0x3a')](_0x37bce6){return(_0x37bce6=_0x37bce6[_0x41d3('0xee')](_0x8d000a=>!_0x8d000a[_0x41d3('0x6f')]||_0x41d3('0x26')!==_0x8d000a[_0x41d3('0x6f')]&&_0x41d3('0x76')!==_0x8d000a['name']))[_0x41d3('0xb4')](_0x4d274c=>{_0x41d3('0x14')!=typeof _0x4d274c&&(_0x4d274c[_0x41d3('0x10a')]=this['_removeRevisionMarkers'](_0x4d274c[_0x41d3('0x10a')]),_0x4d274c[_0x41d3('0xf')]=_0x4d274c[_0x41d3('0xf')][_0x41d3('0xee')](_0x3118e9=>!_0x3118e9[0x0][_0x41d3('0x51')]('data-revision-')));}),_0x37bce6;}async[_0x41d3('0x8b')](_0x579e63,_0x3e97d7,_0x12ceb7=!0x1){if(!this[_0x41d3('0x6d')])return;const _0x5459be=this[_0x41d3('0x36')],_0x535d1e=this[_0x41d3('0x12')],_0x359af4='string'==typeof _0x579e63?_0x535d1e[_0x41d3('0x11e')](_0x579e63):_0x579e63,_0x39f6e8=_0x41d3('0x14')==typeof _0x3e97d7?_0x535d1e[_0x41d3('0x11e')](_0x3e97d7):_0x3e97d7,_0x5a4d05=_0x359af4['id'],_0x536dbb=_0x39f6e8?_0x39f6e8['id']:null;if(!_0x12ceb7&&this[_0x41d3('0x36')]&&this[_0x41d3('0x36')]['newRevisionId']===_0x5a4d05&&this[_0x41d3('0x36')]['oldRevisionId']===_0x536dbb)return Promise[_0x41d3('0x3c')]();this[_0x41d3('0xf1')]=!0x1,this[_0x41d3('0x28')]=null,this['activeChange']=null,this[_0x41d3('0x36')]=new _0x15298f(_0x5a4d05,_0x536dbb);const _0x176fa1=this[_0x41d3('0xa1')](_0x359af4,_0x39f6e8,!0x0)[_0x41d3('0x93')](_0x398862=>this['loadRevisionData'](_0x398862));return _0x176fa1['push'](new Promise(_0x4bc634=>{setTimeout(_0x4bc634,0x14);})),Promise[_0x41d3('0x4a')](_0x176fa1)['then'](()=>{if(!this[_0x41d3('0x6d')])return;this['_cleanUp']();const _0x2fb361=this[_0x41d3('0xb6')](_0x5a4d05,_0x536dbb);for(const _0x1a324d of _0x2fb361['changes'])this[_0x41d3('0x11a')][_0x41d3('0x118')](_0x1a324d['id'],_0x1a324d);this[_0x41d3('0x123')][_0x41d3('0x80')]['enqueueChange']({'isUndoable':!0x1},_0x11b354=>{for(const _0x192c8c of this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0xae')][_0x41d3('0xe5')]())_0x11b354[_0x41d3('0xa5')](_0x192c8c);for(const _0x28cf08 of Object['keys'](_0x2fb361[_0x41d3('0x80')])){const _0x51abff=_0x11b354[_0x41d3('0x101')](_0x28cf08);for(const _0x619349 of Object[_0x41d3('0x103')](_0x2fb361['attributes'][_0x28cf08]))_0x11b354['setAttribute'](_0x619349,_0x2fb361[_0x41d3('0xf')][_0x28cf08][_0x619349],_0x51abff);_0x11b354[_0x41d3('0xde')](_0x2fb361['model'][_0x28cf08],_0x51abff,0x0);}}),this[_0x41d3('0x36')]['_setChanges'](this[_0x41d3('0xc7')](_0x2fb361[_0x41d3('0x113')])),this['isReady']=!0x0;})[_0x41d3('0x34')](_0xc8ac6f=>{console[_0x41d3('0xff')](_0xc8ac6f),this[_0x41d3('0x7c')](),_0x5459be&&(this['diff']=_0x5459be),this['isReady']=!0x0;});}[_0x41d3('0x9')](_0x20d89d,_0x380e49){const _0x32ba23=this[_0x41d3('0x12')][_0x41d3('0x6a')](_0x20d89d);return _0x32ba23['on'](_0x41d3('0x75'),(_0x17243b,_0x5ed52a,_0x1aa30d)=>_0x380e49(_0x5ed52a,_0x1aa30d,_0x32ba23)),this['repository']['addRevision'](_0x32ba23),_0x32ba23;}[_0x41d3('0x22')](_0xf8722b){if(!_0xf8722b||_0xf8722b['diffData'])return Promise[_0x41d3('0x3c')]();{const _0x156450=this[_0x41d3('0x123')]['config']['get']('collaboration.channelId');return this[_0x41d3('0x121')]['getRevision']({'channelId':_0x156450,'revisionId':_0xf8722b['id']})[_0x41d3('0xbd')](_0x231737=>{_0xf8722b['_update']({'diffData':_0x231737[_0x41d3('0x73')]},!0x0);});}}[_0x41d3('0x7c')](){this[_0x41d3('0xe3')]=null,this[_0x41d3('0x9e')](),this[_0x41d3('0x5e')]&&this[_0x41d3('0x5e')]['destroy'](),this[_0x41d3('0x5e')]=null,this[_0x41d3('0x11a')][_0x41d3('0x4d')](),this['editor'][_0x41d3('0x80')][_0x41d3('0xcb')]({'isUndoable':!0x1},_0x519488=>{for(const _0x1a3782 of this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0xae')][_0x41d3('0xe5')]())_0x519488['detachRoot'](_0x1a3782);});}[_0x41d3('0xc7')](_0x5e9f04){const _0x2a8313=[],_0x3024e2=new Map();for(const _0x49ece6 of this[_0x41d3('0x123')]['model'][_0x41d3('0xae')][_0x41d3('0xe5')]()){const _0x1f18ad=this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')]['getDomRoot'](_0x49ece6);if(!_0x1f18ad)continue;const _0x465987=_0x1f18ad['getClientRects']()[_0x41d3('0x9d')](0x0);_0x465987&&(_0x2a8313[_0x41d3('0x70')](_0x49ece6),_0x3024e2[_0x41d3('0x118')](_0x49ece6,_0x465987));}return _0x2a8313['sort']((_0x163d41,_0x52eec8)=>{const _0x1b8002=_0x3024e2[_0x41d3('0x43')](_0x163d41),_0x4b6add=_0x3024e2['get'](_0x52eec8);return _0x1b8002['y']-_0x4b6add['y']||_0x1b8002['x']-_0x4b6add['x'];}),(_0x5e9f04=_0x5e9f04[_0x41d3('0xee')](_0x29982b=>_0x2a8313[_0x41d3('0xe')](_0x29982b[_0x41d3('0x94')])))[_0x41d3('0x1e')]((_0x20f468,_0x1a8998)=>_0x2a8313[_0x41d3('0x1b')](_0x20f468[_0x41d3('0x94')])-_0x2a8313['indexOf'](_0x1a8998[_0x41d3('0x94')])),_0x5e9f04;}[_0x41d3('0x7e')](_0x4d17d8){const _0x1ea9f6=Array[_0x41d3('0x6c')](_0x4d17d8['markers'])[_0x41d3('0xee')](([_0x38dc1f,_0x400687])=>_0x38dc1f[_0x41d3('0x51')](_0x41d3('0x18'))&&!_0x400687[_0x41d3('0xc9')]),_0x13f9c0=Array[_0x41d3('0x6c')](this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0x79')](_0x4d17d8)[_0x41d3('0x21')]({'singleCharacters':!0x0}));if(0x0!=_0x1ea9f6[_0x41d3('0x2a')])for(const _0x32655c of _0x13f9c0){const [_0x136e22,_0x29a6a7]=_0x1ea9f6[0x0],[,_0x904ed2,_0x15ae69]=_0x136e22[_0x41d3('0x82')](':');if(_0x29a6a7['end'][_0x41d3('0xdb')](_0x32655c[_0x41d3('0x112')])&&_0x1ea9f6['shift'](),(_0x32655c[_0x41d3('0x85')][_0x41d3('0xdb')](_0x29a6a7[_0x41d3('0x68')])||_0x32655c[_0x41d3('0x85')][_0x41d3('0xb8')](_0x29a6a7[_0x41d3('0x68')]))&&(_0x41d3('0xdd')==_0x904ed2?_0x32655c[_0x41d3('0xc8')]={'userId':_0x15ae69}:'deletion'==_0x904ed2&&(_0x32655c[_0x41d3('0x7a')]={'userId':_0x15ae69})),0x0==_0x1ea9f6[_0x41d3('0x2a')])break;}return _0x13f9c0;}[_0x41d3('0x63')](_0x50c8c5){const _0x469dbb=new Map();for(let _0x5d18c7=0x0;_0x5d18c7<_0x50c8c5[_0x41d3('0x2a')];_0x5d18c7++)_0x41d3('0x87')===_0x50c8c5[_0x5d18c7][_0x41d3('0xf0')]?(_0x50c8c5[_0x5d18c7]['item'][_0x41d3('0x19')]=_0x5d18c7,_0x50c8c5[_0x5d18c7]['item'][_0x41d3('0x40')]=_0x5d18c7):(_0x41d3('0x74')===_0x50c8c5[_0x5d18c7][_0x41d3('0xf0')]?_0x50c8c5[_0x5d18c7][_0x41d3('0x9d')][_0x41d3('0x19')]=_0x5d18c7:_0x41d3('0xbf')===_0x50c8c5[_0x5d18c7][_0x41d3('0xf0')]&&(_0x50c8c5[_0x5d18c7]['item']['endIndex']=_0x5d18c7),_0x469dbb[_0x41d3('0x118')](_0x50c8c5[_0x5d18c7]['id'],_0x5d18c7));for(const _0x10f704 of _0x469dbb[_0x41d3('0x66')]())_0x41d3('0x74')===_0x50c8c5[_0x10f704][_0x41d3('0xf0')]?_0x50c8c5[_0x10f704][_0x41d3('0x9d')][_0x41d3('0x40')]=_0x469dbb[_0x41d3('0x43')](_0x50c8c5[_0x10f704][_0x41d3('0x109')]):_0x41d3('0xbf')===_0x50c8c5[_0x10f704][_0x41d3('0xf0')]&&(_0x50c8c5[_0x10f704][_0x41d3('0x9d')][_0x41d3('0x19')]=_0x469dbb[_0x41d3('0x43')](_0x50c8c5[_0x10f704][_0x41d3('0x109')]));}['_processTape'](_0x120b87){for(let _0x157117=0x0;_0x157117<_0x120b87[_0x41d3('0x2a')];_0x157117++){if('elementStart'===_0x120b87[_0x157117]['type'])_0x120b87[_0x157117][_0x41d3('0x9d')]['startIndex']=_0x157117;else{if(_0x41d3('0xbf')===_0x120b87[_0x157117]['type']){_0x120b87[_0x157117][_0x41d3('0x9d')][_0x41d3('0x40')]=_0x157117;const _0x3f979d=_0x120b87[_0x157117]['item']['startIndex'];_0x120b87[_0x3f979d][_0x41d3('0x109')]=_0x120b87[_0x157117]['id'],_0x120b87[_0x157117][_0x41d3('0x109')]=_0x120b87[_0x3f979d]['id'];}else _0x120b87[_0x157117][_0x41d3('0x9d')]['startIndex']=_0x157117,_0x120b87[_0x157117][_0x41d3('0x9d')][_0x41d3('0x40')]=_0x157117,_0x120b87[_0x157117][_0x41d3('0x109')]=null;}_0x120b87[_0x157117][_0x41d3('0xa2')]||(_0x120b87[_0x157117]['markersStart']=[],_0x120b87[_0x157117][_0x41d3('0x91')]=[]);}}[_0x41d3('0x10f')](_0x131462,_0x3e3e22){const _0x1d7669=_0x131462['filter'](_0x2b052d=>!_0x2b052d[_0x41d3('0xc8')]);for(let _0x1c672f=0x0;_0x1c672f<_0x3e3e22[_0x41d3('0x2a')];_0x1c672f++)_0x3e3e22[_0x1c672f][_0x41d3('0xc8')]&&(_0x1d7669[_0x1c672f]['isAdded']=_0x3e3e22[_0x1c672f][_0x41d3('0xc8')]);}['_makeModelFromViewString'](_0x2bf3e2){const _0x44f6a4=JSON[_0x41d3('0x24')](_0x2bf3e2),_0x1a0d92=this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0xae')],_0x2d68a2=new _0x37cf6a(_0x1a0d92,_0x44f6a4['map'](_0x51046a=>this[_0x41d3('0x2e')](_0x51046a)));return this[_0x41d3('0x123')][_0x41d3('0x3d')][_0x41d3('0xb1')](_0x2d68a2);}['_getViewObj'](_0x25c6bd){const _0x30dd0=this['editor'][_0x41d3('0x3e')][_0x41d3('0x50')]['document'];if('string'==typeof _0x25c6bd)return new _0x1cb5cc(_0x30dd0,_0x25c6bd);{const _0x291a74=_0x25c6bd[_0x41d3('0x10a')][_0x41d3('0x93')](_0x1eb412=>this[_0x41d3('0x2e')](_0x1eb412));return new(tt[_0x25c6bd[(_0x41d3('0xf0'))]]||_0xf6828d)(_0x30dd0,_0x25c6bd[_0x41d3('0x6f')],_0x25c6bd[_0x41d3('0xf')],_0x291a74);}}[_0x41d3('0xb6')](_0x411d56,_0x2c18df=null){const _0x531e48=this['repository'][_0x41d3('0x11e')](_0x411d56),_0x2c1e05=_0x2c18df?this['repository'][_0x41d3('0x11e')](_0x2c18df):null,_0x3f1aaa=this['_getRevisionsRange'](_0x531e48,_0x2c1e05),_0x2031f3=_0x3f1aaa[_0x3f1aaa[_0x41d3('0x2a')]-0x1],_0x4adff6=new Map(),_0x2fec26={'model':{},'attributes':{},'changes':[]},_0x17245a=new Set(),_0x142921=new Map();for(let _0x24f56e=_0x3f1aaa[_0x41d3('0x2a')]-0x1;_0x24f56e>=0x0;_0x24f56e--){const _0xb95459=_0x3f1aaa[_0x24f56e];for(const _0x4bae38 of Object[_0x41d3('0x103')](_0xb95459[_0x41d3('0x73')]))if(_0xb95459[_0x41d3('0x73')][_0x4bae38][_0x41d3('0x90')]){const _0x90b122=_0xb95459[_0x41d3('0x73')][_0x4bae38]['attachChange'];_0x90b122[_0x41d3('0xed')]?(_0x17245a[_0x41d3('0x11b')](_0x4bae38),_0x142921[_0x41d3('0x92')](_0x4bae38)&&_0x142921[_0x41d3('0x43')](_0x4bae38)[_0x41d3('0x105')]==_0x90b122[_0x41d3('0x105')]?_0x142921[_0x41d3('0x38')](_0x4bae38):_0x142921[_0x41d3('0x118')](_0x4bae38,_0x90b122)):_0x142921['has'](_0x4bae38)?(_0x17245a[_0x41d3('0x38')](_0x4bae38),_0x142921[_0x41d3('0x38')](_0x4bae38)):(_0x17245a['add'](_0x4bae38),_0x142921['set'](_0x4bae38,_0x90b122));}else _0x17245a[_0x41d3('0x11b')](_0x4bae38);}for(const _0xffac7b of _0x17245a){const _0x50bc12=_0x142921[_0x41d3('0x92')](_0xffac7b)&&!_0x142921[_0x41d3('0x43')](_0xffac7b)[_0x41d3('0xed')];let _0x1d294f=_0x50bc12?_0x3f1aaa[_0x41d3('0x2a')]-0x1:0x0;const _0x2a70dc=_0x50bc12?-0x1:0x1;for(;_0x3f1aaa[_0x1d294f];){const _0x18582a=_0x3f1aaa[_0x1d294f];if(_0x18582a[_0x41d3('0x73')][_0xffac7b]){const _0x1678ac=_0x50bc12?_0x18582a[_0x41d3('0x73')][_0xffac7b][_0x41d3('0x45')]:_0x18582a['diffData'][_0xffac7b][_0x41d3('0x4')];_0x2fec26['attributes'][_0xffac7b]=_0x1678ac?_0xecf1aa(_0x1678ac):{};break;}_0x1d294f+=_0x2a70dc;}}for(const _0x50e801 of _0x3f1aaa){_0x50e801[_0x41d3('0x80')]={};for(const _0x5ebf5e of _0x50e801[_0x41d3('0xfb')])_0x4adff6['set'](_0x5ebf5e['id'],_0x5ebf5e);for(const _0x20c0cf of _0x17245a){const _0x23d918=_0x50e801[_0x41d3('0x73')][_0x20c0cf]?_0x50e801['diffData'][_0x20c0cf]['insertions']:'[]',_0x13ea8c=_0x50e801[_0x41d3('0x73')][_0x20c0cf]?_0x50e801['diffData'][_0x20c0cf][_0x41d3('0x1')]:'[]';_0x50e801[_0x41d3('0x80')][_0x20c0cf]={'insertions':this[_0x41d3('0x39')](_0x23d918),'deletions':this[_0x41d3('0x39')](_0x13ea8c)};}}for(const _0x450cbd of _0x17245a){let _0x2a3cdd=null,_0x59d631=0x0;const _0x5136c4=new Map(Array[_0x41d3('0x6c')](_0x531e48[_0x41d3('0x80')][_0x450cbd][_0x41d3('0x8e')]['markers'])[_0x41d3('0xee')](([_0x5800f3])=>!_0x5800f3[_0x41d3('0x51')]('revision:')));let _0x17bf1c=0x0;for(const _0xc145b8 of _0x3f1aaa){const _0x5ccbf7=this[_0x41d3('0x7e')](_0xc145b8['model'][_0x450cbd]['insertions']);_0xc145b8==_0x531e48?(_0x2a3cdd=_0x5ccbf7,_0x59d631=_0x2a3cdd['length'],_0x2a3cdd[_0x41d3('0xb4')](_0x1e6969=>{_0x1e6969['id']=_0x17bf1c++;}),this[_0x41d3('0xfc')](_0x2a3cdd)):this[_0x41d3('0x10f')](_0x2a3cdd,_0x5ccbf7);const _0x1e1c9e=_0x2a3cdd[_0x41d3('0xee')](_0xb98427=>!_0xb98427[_0x41d3('0xc8')])['map'](_0x1768c9=>_0x1768c9['id']);let _0x3e3493=0x0;const _0x4fa0ab=this[_0x41d3('0x7e')](_0xc145b8['model'][_0x450cbd][_0x41d3('0x1')]);_0x4fa0ab[_0x41d3('0xb4')](_0x478264=>{_0x478264[_0x41d3('0x7a')]?_0x478264['id']=_0x59d631++:_0x478264['id']=_0x1e1c9e[_0x3e3493++];}),this['_processTape'](_0x4fa0ab),this[_0x41d3('0x122')](_0x2a3cdd,_0x41d3('0xc8')),this[_0x41d3('0x122')](_0x4fa0ab,_0x41d3('0x7a')),_0xc145b8==_0x531e48&&this[_0x41d3('0x6b')](_0x2a3cdd,_0x5136c4),_0x2a3cdd=this[_0x41d3('0x89')](_0x2a3cdd,_0x4fa0ab),this[_0x41d3('0x63')](_0x2a3cdd),this[_0x41d3('0x122')](_0x2a3cdd,'isRemoved');}_0x2a3cdd=_0x2a3cdd[_0x41d3('0xee')](_0x98b42e=>!(_0x98b42e['isAdded']&&_0x98b42e['isRemoved']));const _0x3e757b=new Map(_0x2031f3['model'][_0x450cbd][_0x41d3('0x1')][_0x41d3('0x15')]),_0x26a712=new Set(_0x5136c4[_0x41d3('0x103')]());for(const _0x3b10b5 of _0x3e757b[_0x41d3('0x103')]())_0x26a712[_0x41d3('0x38')](_0x3b10b5);this[_0x41d3('0x46')](_0x2a3cdd,_0x26a712),this['_fixObsoleteTags'](_0x2a3cdd),_0x2a3cdd=this[_0x41d3('0xfd')](_0x2a3cdd),_0x2a3cdd=this['_markMismatchedRemovedTags'](_0x2a3cdd),_0x2a3cdd=this[_0x41d3('0xb9')](_0x2a3cdd);const {root:_0x52781e,changes:_0x1379ec}=this[_0x41d3('0x97')](_0x2a3cdd,_0x4adff6,_0x450cbd);_0x2fec26['model'][_0x450cbd]=_0x52781e;const _0x535ea0=_0x142921[_0x41d3('0x43')](_0x450cbd);if(_0x535ea0){const _0x12986c=_0x4adff6['get'](_0x535ea0[_0x41d3('0x105')]),_0x73d890=new _0x1d437b({'author':_0x12986c,'type':_0x535ea0[_0x41d3('0xed')]?_0x41d3('0x11b'):_0x41d3('0x116'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x450cbd});_0x1379ec['unshift'](_0x73d890),_0x2fec26[_0x41d3('0xf')][_0x450cbd][_0x41d3('0x16')]=_0x73d890['id'];}_0x2fec26['changes']=_0x2fec26[_0x41d3('0x113')][_0x41d3('0x10c')](_0x1379ec);}return _0x2fec26;}[_0x41d3('0x6b')](_0x12e083,_0x38a9ef){for(let _0x3b80c1=0x0;_0x3b80c1<_0x12e083['length'];_0x3b80c1++)for(const [_0x4e9e2d,_0x22b731]of _0x38a9ef)_0x22b731[_0x41d3('0x68')][_0x41d3('0xdb')](_0x12e083[_0x3b80c1]['previousPosition'])&&_0x12e083[_0x3b80c1][_0x41d3('0xa2')][_0x41d3('0x70')](_0x4e9e2d),_0x22b731[_0x41d3('0xb7')][_0x41d3('0xdb')](_0x12e083[_0x3b80c1][_0x41d3('0x112')])&&_0x12e083[_0x3b80c1]['markersEnd'][_0x41d3('0x70')](_0x4e9e2d);}[_0x41d3('0x89')](_0x2d52b5,_0x40c931){let _0x538928=[],_0x25d38d=0x0,_0x155ae9=0x0;for(;_0x25d38d<_0x2d52b5[_0x41d3('0x2a')]||_0x155ae9<_0x40c931[_0x41d3('0x2a')];){const _0x4cb073=_0x2d52b5[_0x25d38d]||{},_0xc8d43c=_0x40c931[_0x155ae9]||{};if(_0x4cb073['id']==_0xc8d43c['id'])_0x25d38d++,_0x155ae9++,_0x538928[_0x41d3('0x70')](_0x4cb073);else{if(_0xc8d43c['isRemoved']&&_0x4cb073[_0x41d3('0xc8')]){const {commonTape:_0x6d005b,iEnd:_0x5dd9dd,jEnd:_0x168c5c}=this[_0x41d3('0x69')](_0x2d52b5,_0x25d38d,_0x40c931,_0x155ae9);_0x538928=_0x538928[_0x41d3('0x10c')](_0x6d005b),_0x25d38d=_0x5dd9dd,_0x155ae9=_0x168c5c;}else _0xc8d43c[_0x41d3('0x7a')]?(_0x155ae9++,_0x538928[_0x41d3('0x70')](_0xc8d43c)):(_0x25d38d++,_0x538928['push'](_0x4cb073));}}return _0x538928;}[_0x41d3('0x46')](_0x4e099c,_0x105560){const _0x2ef575=[];for(let _0x25eea9=0x0;_0x25eea9<_0x4e099c[_0x41d3('0x2a')];_0x25eea9++){for(let _0xb11870=0x0;_0xb11870<_0x4e099c[_0x25eea9][_0x41d3('0xa2')]['length'];_0xb11870++){const _0x5ec68c=_0x4e099c[_0x25eea9][_0x41d3('0xa2')][_0xb11870];if(!_0x105560[_0x41d3('0x92')](_0x5ec68c))continue;const {group:_0x39e9ed,type:_0x1eb35b,authorId:_0x3508bf}=_0x45e099(_0x5ec68c);_0x41d3('0x107')!=_0x39e9ed||_0x41d3('0xdd')!=_0x1eb35b&&_0x41d3('0x2d')!=_0x1eb35b||(_0x2ef575[_0x41d3('0x8a')]({'type':_0x1eb35b,'name':_0x5ec68c,'userId':_0x3508bf}),_0x4e099c[_0x25eea9][_0x41d3('0xa2')]['splice'](_0xb11870,0x1),_0xb11870--);}_0x151ec6(_0x4e099c[_0x25eea9]);for(let _0x221fa2=0x0;_0x221fa2<_0x4e099c[_0x25eea9][_0x41d3('0x91')][_0x41d3('0x2a')];_0x221fa2++){const _0x3960fb=_0x4e099c[_0x25eea9][_0x41d3('0x91')][_0x221fa2];if(!_0x105560[_0x41d3('0x92')](_0x3960fb))continue;const {group:_0x5107c8,type:_0x257fe1}=_0x45e099(_0x3960fb);if(_0x41d3('0x107')!=_0x5107c8||_0x41d3('0xdd')!=_0x257fe1&&_0x41d3('0x2d')!=_0x257fe1)continue;_0x4e099c[_0x25eea9][_0x41d3('0x91')][_0x41d3('0x11d')](_0x221fa2,0x1),_0x221fa2--;const _0x952c3d=_0x2ef575[_0x41d3('0xaf')](_0x30583f=>_0x30583f['name']==_0x3960fb);_0x952c3d>-0x1&&_0x2ef575[_0x41d3('0x11d')](_0x952c3d,0x1);}}function _0x45e099(_0x7f6bfb){const _0x2a0934=_0x7f6bfb[_0x41d3('0x82')](':');return{'group':_0x2a0934[0x0],'type':_0x2a0934[0x1],'subType':_0x2a0934[_0x41d3('0x2a')]>=0x5?_0x2a0934[0x2]:null,'id':_0x2a0934[_0x41d3('0x2a')]<0x5?_0x2a0934[0x2]:_0x2a0934[0x3],'authorId':_0x2a0934[_0x41d3('0x2a')]<0x5?_0x2a0934[0x3]:_0x2a0934[0x4],'markerCount':0x6==_0x2a0934[_0x41d3('0x2a')]?_0x2a0934[0x5]:null};}function _0x151ec6(_0x251343){for(let _0x4b32cf=0x0;_0x4b32cf<_0x2ef575[_0x41d3('0x2a')];_0x4b32cf++){if(_0x251343[_0x41d3('0xc8')]&&'insertion'==_0x2ef575[_0x4b32cf][_0x41d3('0xf0')])return _0x251343[_0x41d3('0xd2')]=_0x2ef575[_0x4b32cf],void delete _0x251343[_0x41d3('0xc8')];if(!_0x251343['isAdded']&&!_0x251343[_0x41d3('0x7a')]&&_0x41d3('0x2d')==_0x2ef575[_0x4b32cf]['type'])return void(_0x251343[_0x41d3('0x110')]=_0x2ef575[_0x4b32cf]);}}}[_0x41d3('0x122')](_0x49994f,_0x551105){let _0x59d410=0x0,_0x2d11c8=!0x1;const _0x2f323c=new Map();for(const _0x58962c of _0x49994f)_0x58962c[_0x551105]?_0x2d11c8&&(_0x59d410++,_0x2d11c8=!0x1):(_0x59d410++,_0x2d11c8=!0x0),_0x2f323c[_0x41d3('0x118')](_0x58962c['id'],_0x59d410);for(let _0x3ff237=0x0;_0x3ff237<_0x49994f[_0x41d3('0x2a')];_0x3ff237++){if(_0x41d3('0x7a')==_0x551105&&_0x49994f[_0x3ff237][_0x41d3('0xc8')]||'isAdded'==_0x551105&&_0x49994f[_0x3ff237]['isRemoved'])continue;if('text'==_0x49994f[_0x3ff237]['type']){_0x49994f[_0x3ff237][_0x41d3('0xcf')]=0x0;continue;}const _0xa82b3a=_0x2f323c[_0x41d3('0x43')](_0x49994f[_0x3ff237][_0x41d3('0x109')]),_0x30c383=_0x2f323c[_0x41d3('0x43')](_0x49994f[_0x3ff237]['id']);_0x49994f[_0x3ff237][_0x41d3('0xcf')]=_0xa82b3a-_0x30c383;}}[_0x41d3('0xa1')](_0x850605,_0xa1f232,_0x464cf3=!0x1){const _0x334cf7=[];let _0x147268=this[_0x41d3('0x12')][_0x41d3('0x81')](_0x850605),_0x506484=this['repository']['getIndex'](_0xa1f232);for(-0x1==_0x506484&&(_0x506484=this[_0x41d3('0x12')][_0x41d3('0xab')][_0x41d3('0x2a')],_0x464cf3=!0x1);_0x147268<_0x506484;)_0x334cf7[_0x41d3('0x70')](this[_0x41d3('0x12')][_0x41d3('0x11e')](_0x147268)),_0x147268++;return _0x464cf3&&_0x334cf7[_0x41d3('0x70')](this['repository']['getRevision'](_0x147268)),_0x334cf7;}[_0x41d3('0x69')](_0x5ede11,_0x68ada4,_0x6a37c,_0x52c762){const _0x145a66=this['editor'][_0x41d3('0x80')][_0x41d3('0x114')];let _0x4968fb=_0x68ada4;for(;_0x5ede11[_0x4968fb]&&_0x5ede11[_0x4968fb][_0x41d3('0xc8')];)_0x4968fb++;let _0x48e92c=_0x52c762;for(;_0x6a37c[_0x48e92c]&&_0x6a37c[_0x48e92c][_0x41d3('0x7a')];)_0x48e92c++;_0x4ccecc(_0x5ede11,_0x68ada4,_0x4968fb),_0x4ccecc(_0x6a37c,_0x52c762,_0x48e92c);const _0x272e49=_0x6a37c['slice'](_0x52c762,_0x48e92c)[_0x41d3('0x10c')](_0x5ede11['slice'](_0x68ada4,_0x4968fb));return _0x272e49[_0x41d3('0x1e')]((_0x348471,_0x4305a1)=>_0x348471['side']!=_0x4305a1[_0x41d3('0x2b')]?_0x348471['side']-_0x4305a1[_0x41d3('0x2b')]:_0x348471[_0x41d3('0xba')]!=_0x4305a1['level']?_0x348471[_0x41d3('0xba')]-_0x4305a1[_0x41d3('0xba')]:_0x348471[_0x41d3('0xcf')]!=_0x4305a1[_0x41d3('0xcf')]?_0x4305a1[_0x41d3('0xcf')]-_0x348471[_0x41d3('0xcf')]:!!_0x348471['isAdded']!=!!_0x4305a1[_0x41d3('0xc8')]?-0x1==_0x348471[_0x41d3('0x2b')]||0x0==_0x348471[_0x41d3('0x2b')]?_0x348471[_0x41d3('0xc8')]?-0x1:0x1:_0x348471['isAdded']?0x1:-0x1:_0x348471[_0x41d3('0x83')]-_0x4305a1['index']),{'commonTape':_0x272e49,'iEnd':_0x4968fb,'jEnd':_0x48e92c};function _0x4ccecc(_0x1d1aa2,_0x1ae9d1,_0x1968e0){let _0x3662c3=-0x1,_0x51df6a=Number[_0x41d3('0x11f')],_0x88d930=!0x0;for(let _0x1eb67d=_0x1ae9d1;_0x1eb67d<_0x1968e0;_0x1eb67d++)if(_0x145a66[_0x41d3('0xf3')](_0x1d1aa2[_0x1eb67d][_0x41d3('0x9d')])||(_0x88d930=!0x1),_0x1d1aa2[_0x1eb67d][_0x41d3('0x9d')][_0x41d3('0x19')]<_0x1ae9d1&&(_0x3662c3=_0x1eb67d),_0x1d1aa2[_0x1eb67d][_0x41d3('0x9d')][_0x41d3('0x40')]>=_0x1968e0){_0x51df6a=_0x1eb67d;break;}_0x88d930&&(_0x3662c3=_0x1968e0-0x1);for(let _0x1e3a3d=_0x1ae9d1;_0x1e3a3d<_0x1968e0;_0x1e3a3d++)_0x1d1aa2[_0x1e3a3d][_0x41d3('0x2b')]=_0x1e3a3d<=_0x3662c3?-0x1:_0x1e3a3d<_0x51df6a?0x0:0x1,_0x1d1aa2[_0x1e3a3d][_0x41d3('0x83')]=_0x1e3a3d;let _0xb9c3e6=0x0;for(let _0x1b32b2=_0x1ae9d1;_0x1b32b2<=_0x3662c3;_0x1b32b2++)0x0==_0x1d1aa2[_0x1b32b2][_0x41d3('0xcf')]?_0x1d1aa2[_0x1b32b2][_0x41d3('0xba')]=_0xb9c3e6:(_0xb9c3e6++,_0x1d1aa2[_0x1b32b2][_0x41d3('0xba')]=_0xb9c3e6,_0xb9c3e6++);for(let _0x4352a4=_0x1ae9d1;_0x4352a4<_0x1968e0;_0x4352a4++)0x0==_0x1d1aa2[_0x4352a4]['side']&&(_0x1d1aa2[_0x4352a4][_0x41d3('0xba')]=_0xb9c3e6);_0xb9c3e6=0x0;for(let _0x6938b6=_0x1968e0-0x1;_0x6938b6>=_0x51df6a;_0x6938b6--)0x0==_0x1d1aa2[_0x6938b6]['distance']?_0x1d1aa2[_0x6938b6][_0x41d3('0xba')]=_0xb9c3e6:(_0xb9c3e6--,_0x1d1aa2[_0x6938b6][_0x41d3('0xba')]=_0xb9c3e6,_0xb9c3e6--);}}[_0x41d3('0x96')](_0x48a4f9){const _0x29b70d=new Map(),_0x35e646=this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0x114')];for(let _0x404eb4=0x1;_0x404eb4<_0x48a4f9['length'];_0x404eb4++){let _0x38f5d3,_0x281047,_0x5e6613;const _0x5b1567=_0x48a4f9[_0x404eb4],_0x4edaef=_0x48a4f9[_0x404eb4-0x1];if('text'==_0x5b1567[_0x41d3('0xf0')])continue;if(_0x5b1567[_0x41d3('0xf0')]!=_0x4edaef[_0x41d3('0xf0')])continue;if(!_0x35e646[_0x41d3('0x4e')](_0x4edaef[_0x41d3('0x9d')])||_0x35e646[_0x41d3('0xf9')](_0x4edaef[_0x41d3('0x9d')]))continue;if(!_0x35e646[_0x41d3('0x4e')](_0x5b1567[_0x41d3('0x9d')])||_0x35e646[_0x41d3('0xf9')](_0x5b1567[_0x41d3('0x9d')]))continue;if((_0x48a4f9[_0x404eb4][_0x41d3('0xc8')]||_0x48a4f9[_0x404eb4][_0x41d3('0xd2')])&&_0x48a4f9[_0x404eb4-0x1][_0x41d3('0x7a')])_0x38f5d3=_0x48a4f9[_0x404eb4],_0x281047=_0x48a4f9[_0x404eb4-0x1],_0x5e6613=_0x404eb4-0x1;else{if(!_0x48a4f9[_0x404eb4]['isRemoved']||!_0x48a4f9[_0x404eb4-0x1][_0x41d3('0xc8')]&&!_0x48a4f9[_0x404eb4-0x1][_0x41d3('0xd2')])continue;_0x38f5d3=_0x48a4f9[_0x404eb4-0x1],_0x281047=_0x48a4f9[_0x404eb4],_0x5e6613=_0x404eb4;}const _0x4111c2=_0x38f5d3[_0x41d3('0xba')]==_0x281047[_0x41d3('0xba')],_0x42b12a=Math[_0x41d3('0x9b')](_0x38f5d3[_0x41d3('0xba')])<Math[_0x41d3('0x9b')](_0x281047[_0x41d3('0xba')])&&0x0==_0x281047[_0x41d3('0xcf')];(_0x4111c2||_0x42b12a)&&(_0x29b70d[_0x41d3('0x118')](_0x281047['id'],_0x38f5d3['id']),_0x48a4f9[_0x41d3('0x11d')](_0x5e6613,0x1),_0x404eb4--,_0x38f5d3[_0x41d3('0xc8')]=!0x1);}for(let _0x22b16d=0x0;_0x22b16d<_0x48a4f9['length'];_0x22b16d++)_0x29b70d[_0x41d3('0x92')](_0x48a4f9[_0x22b16d][_0x41d3('0x109')])&&(_0x48a4f9[_0x22b16d][_0x41d3('0x109')]=_0x29b70d[_0x41d3('0x43')](_0x48a4f9[_0x22b16d][_0x41d3('0x109')]));}['_removeMissingPairs'](_0x2a2561){const _0x577c9f=new Set(_0x2a2561['map'](_0x2fcba4=>_0x2fcba4['id']));for(let _0x4d2285=0x0;_0x4d2285<_0x2a2561[_0x41d3('0x2a')];_0x4d2285++)_0x577c9f[_0x41d3('0x92')](_0x2a2561[_0x4d2285][_0x41d3('0x109')])||0x0==_0x2a2561[_0x4d2285][_0x41d3('0xcf')]||(_0x2a2561[_0x4d2285][_0x41d3('0x95')]=!0x0);return _0x2a2561[_0x41d3('0xee')](_0x4eeeb7=>!_0x4eeeb7[_0x41d3('0x95')]);}[_0x41d3('0x37')](_0x56ef4d){const _0x13f34d=new Set();for(let _0x20a1a4=0x0;_0x20a1a4<_0x56ef4d['length'];_0x20a1a4++){if(_0x13f34d[_0x41d3('0x92')](_0x56ef4d[_0x20a1a4]['id'])&&_0x56ef4d[_0x20a1a4][_0x41d3('0x7a')]&&(_0x56ef4d[_0x20a1a4][_0x41d3('0x95')]=!0x0),_0x56ef4d[_0x20a1a4][_0x41d3('0x95')])continue;if(0x0==_0x56ef4d[_0x20a1a4][_0x41d3('0xcf')])continue;if(_0x41d3('0x74')!=_0x56ef4d[_0x20a1a4]['type'])continue;if(null==_0x56ef4d[_0x20a1a4][_0x41d3('0x109')])continue;let _0x1a6e40=_0x20a1a4+0x1,_0x4e65a9=0x0;for(;_0x56ef4d[_0x1a6e40]['id']!=_0x56ef4d[_0x20a1a4][_0x41d3('0x109')];)_0x41d3('0x74')==_0x56ef4d[_0x1a6e40][_0x41d3('0xf0')]?_0x4e65a9++:_0x41d3('0xbf')==_0x56ef4d[_0x1a6e40]['type']&&_0x4e65a9--,_0x1a6e40++;if(0x0!=_0x4e65a9){if(_0x56ef4d[_0x20a1a4][_0x41d3('0x7a')])_0x56ef4d[_0x20a1a4][_0x41d3('0x95')]=!0x0;else for(;_0x1a6e40!=_0x20a1a4;)_0x56ef4d[_0x1a6e40][_0x41d3('0x7a')]&&0x0!=_0x56ef4d[_0x1a6e40][_0x41d3('0xcf')]&&(_0x56ef4d[_0x1a6e40][_0x41d3('0x95')]=!0x0,_0x13f34d[_0x41d3('0x11b')](_0x56ef4d[_0x1a6e40]['pairId'])),_0x1a6e40--;}}return _0x56ef4d[_0x41d3('0xee')](_0x4e53b2=>!_0x4e53b2[_0x41d3('0x95')]);}[_0x41d3('0xb9')](_0x2e0467){const _0x4098fe=this[_0x41d3('0x123')][_0x41d3('0x80')]['schema'];for(let _0x4291f4=0x0;_0x4291f4<_0x2e0467[_0x41d3('0x2a')];_0x4291f4++){if(!(_0x2e0467[_0x4291f4][_0x41d3('0xc8')]||_0x2e0467[_0x4291f4][_0x41d3('0xd2')]||_0x2e0467[_0x4291f4][_0x41d3('0x7a')]||_0x2e0467[_0x4291f4][_0x41d3('0x110')]))continue;if(0x0==_0x2e0467[_0x4291f4][_0x41d3('0xcf')])continue;const _0x12c2ba=_0x2e0467[_0x4291f4][_0x41d3('0x9d')];_0x4098fe[_0x41d3('0x4e')](_0x12c2ba)||_0x4098fe[_0x41d3('0xf9')](_0x12c2ba)||(_0x2e0467[_0x4291f4][_0x41d3('0xc8')]&&delete _0x2e0467[_0x4291f4][_0x41d3('0xc8')],_0x2e0467[_0x4291f4][_0x41d3('0xd2')]&&delete _0x2e0467[_0x4291f4][_0x41d3('0xd2')],_0x2e0467[_0x4291f4][_0x41d3('0x110')]&&delete _0x2e0467[_0x4291f4][_0x41d3('0x110')],_0x2e0467[_0x4291f4][_0x41d3('0x7a')]&&(_0x2e0467[_0x4291f4]['isIncorrect']=!0x0));}return _0x2e0467[_0x41d3('0xee')](_0x5f1fd2=>!_0x5f1fd2[_0x41d3('0x95')]);}[_0x41d3('0x97')](_0x899704,_0x15b408,_0x2ac798){const _0x5bd586=new _0x343bc4(),_0x20d386=[],_0x4b3079=new Map(),_0x274223=this[_0x41d3('0x123')]['model'],_0x237e74=_0x274223[_0x41d3('0x114')],_0x3e7125=[_0x5bd586],_0x2e090b={},_0x1a37ac={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x36bde5=null;const _0x3f1f98=[0x0];for(let _0x9cf6fd=0x0;_0x9cf6fd<_0x899704[_0x41d3('0x2a')];_0x9cf6fd++){let _0x305c89,_0x32fea4;if('elementStart'===_0x899704[_0x9cf6fd][_0x41d3('0xf0')]){_0x305c89=_0x274223['createPositionFromPath'](_0x5bd586,_0x3f1f98);const _0x5e6d7e=new _0x214106(_0x899704[_0x9cf6fd][_0x41d3('0x9d')][_0x41d3('0x6f')],_0x899704[_0x9cf6fd]['item'][_0x41d3('0x56')]());_0x3e7125[0x0][_0x41d3('0x1c')](_0x5e6d7e),_0x3f1f98[_0x41d3('0x70')](0x0),_0x3e7125[_0x41d3('0x8a')](_0x5e6d7e),_0x32fea4=_0x274223['createPositionFromPath'](_0x5bd586,_0x3f1f98),_0x36bde5=null;}else{if(_0x41d3('0xbf')===_0x899704[_0x9cf6fd][_0x41d3('0xf0')])_0x3e7125['shift'](),_0x305c89=_0x274223[_0x41d3('0xfe')](_0x5bd586,_0x3f1f98),_0x3f1f98[_0x41d3('0xa8')](),_0x3f1f98[_0x3f1f98[_0x41d3('0x2a')]-0x1]++,_0x32fea4=_0x274223['createPositionFromPath'](_0x5bd586,_0x3f1f98),_0x36bde5=null;else{if(_0x305c89=_0x274223[_0x41d3('0xfe')](_0x5bd586,_0x3f1f98),_0x36bde5&&_0xd7b052(_0x36bde5,_0x899704[_0x9cf6fd]['item']))_0x36bde5['_data']+=_0x899704[_0x9cf6fd][_0x41d3('0x9d')][_0x41d3('0x3d')];else{const _0x3ce2f8=new _0x432852(_0x899704[_0x9cf6fd][_0x41d3('0x9d')][_0x41d3('0x3d')],_0x899704[_0x9cf6fd][_0x41d3('0x9d')][_0x41d3('0x56')]());_0x3e7125[0x0][_0x41d3('0x1c')](_0x3ce2f8),_0x36bde5=_0x3ce2f8;}_0x3f1f98[_0x3f1f98[_0x41d3('0x2a')]-0x1]+=_0x899704[_0x9cf6fd][_0x41d3('0x9d')]['offsetSize'],_0x32fea4=_0x274223[_0x41d3('0xfe')](_0x5bd586,_0x3f1f98);}}for(const _0x18f7a9 of _0x899704[_0x9cf6fd][_0x41d3('0xa2')])_0x4b3079[_0x41d3('0x118')](_0x18f7a9,{'start':_0x305c89,'end':null});_0x43d477(_0x41d3('0x110'),_0x9cf6fd,_0x305c89,_0x32fea4),_0x43d477('isAddSuggestion',_0x9cf6fd,_0x305c89,_0x32fea4),_0x43d477(_0x41d3('0x7a'),_0x9cf6fd,_0x305c89,_0x32fea4),_0x43d477(_0x41d3('0xc8'),_0x9cf6fd,_0x305c89,_0x32fea4);for(const _0x508ff2 of _0x899704[_0x9cf6fd][_0x41d3('0x91')]){_0x4b3079[_0x41d3('0x43')](_0x508ff2)['end']=_0x32fea4;}}for(const [_0x4ebeb4,_0x11832f]of _0x4b3079){const _0x37bb92=this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0x1d')](_0x11832f[_0x41d3('0x68')],_0x11832f[_0x41d3('0xb7')]);_0x5bd586[_0x41d3('0x15')]['set'](_0x4ebeb4,_0x37bb92);}return _0x20d386[_0x41d3('0x1e')]((_0x3c4b1b,_0xe7f6bb)=>{const _0x318c7a=_0x5bd586[_0x41d3('0x15')][_0x41d3('0x43')](_0x41d3('0x18')+_0x3c4b1b['id']),_0x2ad618=_0x5bd586[_0x41d3('0x15')][_0x41d3('0x43')](_0x41d3('0x18')+_0xe7f6bb['id']);return _0x318c7a[_0x41d3('0x68')][_0x41d3('0x88')](_0x2ad618['start'])?-0x1:_0x318c7a[_0x41d3('0x68')]['isAfter'](_0x2ad618[_0x41d3('0x68')])?0x1:_0x318c7a['end'][_0x41d3('0x88')](_0x2ad618[_0x41d3('0xb7')])?-0x1:_0x318c7a[_0x41d3('0xb7')][_0x41d3('0xb8')](_0x2ad618[_0x41d3('0xb7')])?0x1:_0x41d3('0x11b')===_0x3c4b1b[_0x41d3('0xf0')]?-0x1:0x1;}),{'root':_0x5bd586,'changes':_0x20d386};function _0x43d477(_0x247959,_0x5a4a00,_0xefe912,_0x4d9241){const _0xf28b8=!!_0x899704[_0x5a4a00][_0x247959],_0x37d38e=_0xf28b8?_0x899704[_0x5a4a00][_0x247959]['userId']:null,_0x5beb58=_0x5a4a00===_0x899704[_0x41d3('0x2a')]-0x1,_0x5808c8=_0x1a37ac[_0x247959][0x0],_0x39d9af=_0x237e74[_0x41d3('0xef')](_0x899704[_0x5a4a00]['item']);!_0x2e090b[_0x247959]&&_0xf28b8?_0x2e090b[_0x247959]={'start':_0xefe912,'tapeItem':_0x899704[_0x5a4a00],'userId':_0x37d38e,'type':_0x247959}:_0x2e090b[_0x247959]&&!_0xf28b8?(_0x2e090b[_0x247959][_0x41d3('0xb7')]=_0xefe912,_0x5bed88(_0x2e090b[_0x247959]),_0x2e090b[_0x247959]=null):_0x2e090b[_0x247959]&&_0xf28b8&&_0x2e090b[_0x247959][_0x41d3('0x105')]!==_0x37d38e&&(_0x2e090b[_0x247959][_0x41d3('0xb7')]=_0xefe912,_0x5808c8&&_0x5808c8['userId']===_0x2e090b[_0x247959][_0x41d3('0x105')]||_0x5bed88(_0x2e090b[_0x247959]),_0x2e090b[_0x247959]={'start':_0xefe912,'tapeItem':_0x899704[_0x5a4a00],'userId':_0x37d38e,'type':_0x247959}),_0x2e090b[_0x247959]&&_0x39d9af&&(_0x41d3('0x74')!==_0x899704[_0x5a4a00][_0x41d3('0xf0')]||_0x5808c8&&_0x5808c8[_0x41d3('0x105')]===_0x37d38e||_0x1a37ac[_0x247959][_0x41d3('0x8a')]({'userId':_0x37d38e,'object':_0x899704[_0x5a4a00][_0x41d3('0x9d')],'change':_0x2e090b[_0x247959]}),_0x41d3('0xbf')===_0x899704[_0x5a4a00][_0x41d3('0xf0')]&&_0x5808c8&&_0x5808c8[_0x41d3('0xbc')]===_0x899704[_0x5a4a00]['item']&&(_0x1a37ac[_0x247959][_0x41d3('0x100')](),_0x2e090b[_0x247959]=_0x5808c8[_0x41d3('0x44')])),_0x2e090b[_0x247959]&&_0x5beb58&&(_0x2e090b[_0x247959][_0x41d3('0xb7')]=_0x4d9241,_0x5bed88(_0x2e090b[_0x247959]),_0x2e090b[_0x247959]=null);}function _0x5bed88({start:_0x395c50,end:_0x48f27a,tapeItem:_0x3bfdeb,userId:_0x581b31,type:_0x200641}){const _0x25c112=_0x3bfdeb[_0x41d3('0x9d')],_0x1e3a38=_0x274223[_0x41d3('0x114')][_0x41d3('0x4e')](_0x25c112)&&!_0x274223[_0x41d3('0x114')]['isLimit'](_0x25c112),_0x57ff96=_0x395c50[_0x41d3('0xda')]==_0x48f27a['parent']&&_0x48f27a['isAtStart'];if(_0x1e3a38&&_0x57ff96)return;const _0x33e900=_0x274223[_0x41d3('0x1d')](_0x395c50,_0x48f27a),_0x50a4bf=_0x15b408[_0x41d3('0x43')](_0x581b31),_0x3f4e93=new _0x1d437b({'author':_0x50a4bf,'type':_0x41d3('0xc8')==_0x200641||'isAddSuggestion'==_0x200641?'add':_0x41d3('0x116'),'data':{'isSuggestion':_0x41d3('0xd2')==_0x200641||_0x41d3('0x110')==_0x200641},'createdAt':new Date(),'rootName':_0x2ac798});_0x20d386[_0x41d3('0x70')](_0x3f4e93),_0x5bd586[_0x41d3('0x15')][_0x41d3('0x118')]('revision:'+_0x3f4e93['id'],_0x33e900);}function _0xd7b052(_0x2b5d10,_0xdc6b4){const _0x47c1d1=_0x2b5d10['getAttributes'](),_0x36eb9d=_0xdc6b4['getAttributes']();for(const _0x34ea65 of _0x47c1d1){if(_0x34ea65[0x1]!==_0xdc6b4[_0x41d3('0x10d')](_0x34ea65[0x0]))return!0x1;_0x36eb9d['next']();}return _0x36eb9d[_0x41d3('0x65')]()[_0x41d3('0xdf')];}}[_0x41d3('0x52')](){this[_0x41d3('0x123')]['conversion']['for'](_0x41d3('0xec'))[_0x41d3('0x60')]({'view':_0x41d3('0x77')}),this['editor'][_0x41d3('0x4c')]['for'](_0x41d3('0x7'))[_0x41d3('0xa4')]({'model':'revision','view':_0x16b66d=>{const _0x343a85=_0x16b66d[_0x41d3('0xa9')][_0x41d3('0x82')](':')[0x1],_0xcdb3fd=this['_getChangeFromId'](_0x343a85);if(!_0xcdb3fd)return null;const _0x2c5b3e=_0x41d3('0x11b')==_0xcdb3fd[_0x41d3('0xf0')]?_0x41d3('0xdd'):_0x41d3('0x2d'),_0x4a5c30=[_0x41d3('0xc1'),_0x41d3('0x31')+_0x2c5b3e];return _0xcdb3fd[_0x41d3('0x3d')][_0x41d3('0x84')]&&_0x4a5c30[_0x41d3('0x70')](_0x41d3('0x31')+_0x2c5b3e+_0x41d3('0xe0')),this[_0x41d3('0xe3')]==_0xcdb3fd&&_0x4a5c30[_0x41d3('0x70')](_0x41d3('0xc')),{'classes':_0x4a5c30,'attributes':{'data-change-id':_0x343a85}};}}),this[_0x41d3('0x123')][_0x41d3('0x4c')]['for'](_0x41d3('0xec'))[_0x41d3('0x11b')](_0x4590a3=>{_0x4590a3['on'](_0x41d3('0x104'),(_0x33ff2c,_0x1539f1,_0x1cae27)=>{const _0x598308=_0x1539f1['viewItem'][_0x41d3('0xc5')](0x0);if(!_0x598308||!_0x598308['is'](_0x41d3('0xa7'),_0x41d3('0xc4')))return;if(!_0x1cae27[_0x41d3('0xd6')][_0x41d3('0x128')](_0x598308,{'attributes':[_0x41d3('0x11'),_0x41d3('0x9f')]}))return;const _0x450723=_0x1539f1[_0x41d3('0x129')][_0x41d3('0x68')][_0x41d3('0xda')];_0x1cae27[_0x41d3('0x5b')][_0x41d3('0x13')](_0x41d3('0x11'),_0x598308[_0x41d3('0x10d')](_0x41d3('0x11')),_0x450723),_0x1cae27[_0x41d3('0x5b')][_0x41d3('0x13')](_0x41d3('0x9f'),_0x598308[_0x41d3('0x10d')](_0x41d3('0x9f')),_0x450723);},{'priority':_0x41d3('0x5f')});}),this[_0x41d3('0x123')][_0x41d3('0x4c')]['for'](_0x41d3('0xec'))['add'](_0x77b40a=>{_0x77b40a['on'](_0x41d3('0xa7'),(_0x96f873,_0x15ab2c,_0x1ae1e0)=>{if(!_0x1ae1e0[_0x41d3('0xd6')]['consume'](_0x15ab2c[_0x41d3('0x64')],{'attributes':[_0x41d3('0x11'),_0x41d3('0x9f')]}))return;if(_0x15ab2c['modelRange'][_0x41d3('0xc9')])return;const _0x8fa83d=_0x15ab2c[_0x41d3('0x129')][_0x41d3('0x68')][_0x41d3('0xda')];_0x8fa83d[_0x41d3('0x23')](_0x41d3('0x11'))||_0x8fa83d[_0x41d3('0x23')]('vid')||(_0x1ae1e0[_0x41d3('0x5b')][_0x41d3('0x13')](_0x41d3('0x11'),_0x15ab2c['viewItem']['getAttribute']('vid_start'),_0x8fa83d),_0x1ae1e0['writer'][_0x41d3('0x13')](_0x41d3('0x9f'),_0x15ab2c[_0x41d3('0x64')]['getAttribute'](_0x41d3('0x9f')),_0x8fa83d));},{'priority':'low'});}),this[_0x41d3('0x123')]['conversion'][_0x41d3('0x30')](_0x41d3('0xec'))[_0x41d3('0x42')]({'view':{'name':_0x41d3('0x58'),'attributes':{'vid':!0x0}},'model':{'key':_0x41d3('0x124'),'value':_0x46713f=>_0x46713f[_0x41d3('0x10d')](_0x41d3('0x124'))}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1370cf,[,_0x39c177])=>{[_0x41d3('0x11'),_0x41d3('0x9f'),_0x41d3('0x124')][_0x41d3('0xe')](_0x39c177)&&(_0x1370cf[_0x41d3('0x6e')]=!0x0,_0x1370cf[_0x41d3('0xc3')]());},{'priority':'highest'}),this[_0x41d3('0x123')][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0xb'))[_0x41d3('0x11b')](_0x1ed870=>{_0x1ed870['on'](_0x41d3('0xe8'),(_0x4c757c,_0x525033,_0x33dada)=>{if('\x20'!=_0x525033[_0x41d3('0x9d')]['data']||_0x525033[_0x41d3('0x9d')]['parent'][_0x41d3('0x119')]>0x1)return;if(!_0x33dada[_0x41d3('0xd6')][_0x41d3('0x128')](_0x525033['item'],_0x4c757c[_0x41d3('0x6f')]))return;const _0x4b0d08=_0x33dada[_0x41d3('0x5b')],_0x1c6638=_0x33dada['mapper']['toViewRange'](_0x525033[_0x41d3('0xb5')]);_0x4b0d08[_0x41d3('0x9a')](_0x1c6638,_0x4b0d08['createAttributeElement'](_0x41d3('0x58')));});}),this['editor'][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0xb'))[_0x41d3('0x7b')]({'model':_0x41d3('0x77')}),this['editor'][_0x41d3('0x3e')][_0x41d3('0x3b')]['on'](_0x41d3('0x106'),function(_0x502465){const _0x4003c0=_0x502465['plugins'][_0x41d3('0x43')]('RevisionViewer');return(_0x4a93b3,_0x294359,_0x27eba4)=>{const _0x2eba6c=_0x294359[_0x41d3('0xa9')][_0x41d3('0x82')](':')[0x1],_0x3be2fc=_0x4003c0['_getChangeFromId'](_0x2eba6c);if(!_0x3be2fc)return null;const _0x2b8d4d=_0x41d3('0x11b')==_0x3be2fc[_0x41d3('0xf0')]?_0x41d3('0x82'):'merge';if(!_0x27eba4[_0x41d3('0xd6')][_0x41d3('0xd4')](_0x294359['markerRange'],_0x4a93b3[_0x41d3('0x6f')]))return;const _0x304812=_0x294359['markerRange']['getWalker'](),_0x4a56f8=_0x294359[_0x41d3('0x7f')]['start'],_0x5703a8=_0x502465[_0x41d3('0x80')][_0x41d3('0x114')];let _0x3c4ff0=null,_0x4951a6=null,_0x4e9f95=!0x1,_0x109cf0=!0x1;for(const _0x2fca33 of _0x304812){const _0x458ddc=_0x2fca33[_0x41d3('0x9d')];_0x4e9f95=_0x4e9f95||_0x5703a8[_0x41d3('0x55')](_0x458ddc);const _0x157a82=_0x27eba4['mapper'][_0x41d3('0xf8')](_0x458ddc);if(_0x157a82&&_0x157a82[_0x41d3('0xb3')](_0x41d3('0xc6')))return;'elementEnd'==_0x2fca33[_0x41d3('0xf0')]&&(_0x5703a8[_0x41d3('0x4e')](_0x458ddc)&&!_0x5703a8[_0x41d3('0xf9')](_0x458ddc)&&(_0x458ddc[_0x41d3('0x10b')]||_0x4a56f8['isAtEnd']?_0x3c4ff0&&_0x3c4ff0[_0x41d3('0xf5')]==_0x458ddc||(_0x3c4ff0=_0x458ddc,_0x1a331c(_0x2fca33[_0x41d3('0x85')]),_0x109cf0=!0x0):_0x4951a6=_0x4951a6||_0x2fca33[_0x41d3('0x85')]));}function _0x1a331c(_0x2212df){const _0x1cc5cb=_0x27eba4['writer'][_0x41d3('0x53')]('span',{'class':_0x41d3('0x31')+_0x2b8d4d}),_0x549c09=_0x27eba4[_0x41d3('0xd7')]['toViewPosition'](_0x2212df);_0x3be2fc[_0x41d3('0x3d')][_0x41d3('0x84')]&&_0x27eba4[_0x41d3('0x5b')][_0x41d3('0xd9')](_0x41d3('0x31')+_0x2b8d4d+_0x41d3('0xe0'),_0x1cc5cb),_0x4003c0[_0x41d3('0xe3')]==_0x3be2fc&&_0x27eba4[_0x41d3('0x5b')][_0x41d3('0xd9')](_0x41d3('0xc'),_0x1cc5cb),_0x27eba4[_0x41d3('0x5b')][_0x41d3('0xde')](_0x549c09,_0x1cc5cb),_0x27eba4['mapper'][_0x41d3('0xac')](_0x1cc5cb,_0x294359[_0x41d3('0xa9')]);}_0x4e9f95||_0x109cf0||!_0x4951a6||_0x1a331c(_0x4951a6);};}(this['editor']),{'priority':_0x41d3('0xcc')}),this[_0x41d3('0x123')][_0x41d3('0x3e')]['downcastDispatcher']['on'](_0x41d3('0x72'),(_0x25d788,_0x67f219,_0x7ecd8c)=>{const _0x17da8f=_0x7ecd8c[_0x41d3('0xd7')][_0x41d3('0x115')](_0x67f219[_0x41d3('0xa9')]);if(_0x17da8f)for(const _0x36225b of _0x17da8f)(_0x36225b[_0x41d3('0xd8')]('ck-suggestion-marker-split')||_0x36225b[_0x41d3('0xd8')]('ck-suggestion-marker-merge'))&&(_0x7ecd8c['mapper'][_0x41d3('0x57')](_0x36225b,_0x67f219['markerName']),_0x7ecd8c['writer']['remove'](_0x36225b));},{'priority':_0x41d3('0xcc')}),this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x3b')]['on']('addMarker:revision',(_0x5da0ef,_0x350cc0,_0x3cf9af)=>{const _0x1be84c=_0x350cc0[_0x41d3('0xa9')][_0x41d3('0x82')](':')[0x1],_0x34298d=this[_0x41d3('0xd1')](_0x1be84c);if(!_0x34298d)return null;const _0x364ad4=_0x41d3('0x11b')==_0x34298d[_0x41d3('0xf0')]?_0x41d3('0x82'):_0x41d3('0x7d');if(_0x3cf9af[_0x41d3('0xd6')][_0x41d3('0xd4')](_0x350cc0[_0x41d3('0x7f')],_0x5da0ef[_0x41d3('0x6f')]))for(const _0x3336dc of _0x350cc0['markerRange'][_0x41d3('0x117')]()){if(!_0x3336dc['is'](_0x41d3('0xa7'),_0x41d3('0x0')))continue;const _0x430646=_0x3cf9af[_0x41d3('0x5b')][_0x41d3('0x53')]('span',{'class':_0x41d3('0x31')+_0x364ad4}),_0x3c452f=_0x3cf9af[_0x41d3('0xd7')][_0x41d3('0x4f')](this[_0x41d3('0x123')]['model'][_0x41d3('0x5a')](_0x3336dc));_0x34298d['data'][_0x41d3('0x84')]&&_0x3cf9af[_0x41d3('0x5b')][_0x41d3('0xd9')](_0x41d3('0x31')+_0x364ad4+_0x41d3('0xe0'),_0x430646),this[_0x41d3('0xe3')]==_0x34298d&&_0x3cf9af[_0x41d3('0x5b')][_0x41d3('0xd9')](_0x41d3('0xc'),_0x430646),_0x3cf9af['writer']['insert'](_0x3c452f,_0x430646),_0x3cf9af[_0x41d3('0xd7')]['bindElementToMarker'](_0x430646,_0x350cc0[_0x41d3('0xa9')]);}},{'priority':'high'}),this['editor'][_0x41d3('0x80')][_0x41d3('0xae')]['on'](_0x41d3('0x44'),()=>{this['editor'][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0x44')](_0x31c83f=>{for(const _0x3b717e of this['editor'][_0x41d3('0x80')][_0x41d3('0xae')]['getRootNames']()){const _0x28068b=this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0xae')][_0x41d3('0x59')](_0x3b717e),_0x169356=this['editor'][_0x41d3('0x3e')][_0x41d3('0x50')]['document'][_0x41d3('0x59')](_0x3b717e);if(_0x169356){const _0x1b5e21=_0x28068b[_0x41d3('0x10d')]('revisionHistoryAttachChange');if(_0x31c83f[_0x41d3('0xc2')](_0x41d3('0xe9'),_0x169356),_0x31c83f['removeClass']('ck-revision-history-root-add',_0x169356),_0x31c83f['removeClass'](_0x41d3('0x5'),_0x169356),_0x31c83f[_0x41d3('0x6')]('ck-revision-history-root--active',_0x169356),_0x1b5e21){const _0xa632f7=this['_getChangeFromId'](_0x1b5e21);if(!_0xa632f7)return null;_0x31c83f[_0x41d3('0x13')](_0x41d3('0xe9'),_0x1b5e21,_0x169356),_0x31c83f[_0x41d3('0xd9')](_0x41d3('0xb0')+_0xa632f7[_0x41d3('0xf0')],_0x169356),this['activeChange']==_0xa632f7&&_0x31c83f[_0x41d3('0xd9')]('ck-revision-history-root--active',_0x169356);}}}});}),this[_0x41d3('0x123')][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0xec'))[_0x41d3('0x60')]({'view':_0x41d3('0xe1'),'model':_0x127cb3=>_0x41d3('0xc0')+_0x127cb3,'converterPriority':_0x41d3('0x126')}),this['editor'][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0xec'))['dataToMarker']({'view':_0x41d3('0x3'),'model':_0x4e9561=>_0x41d3('0x1f')+_0x4e9561,'converterPriority':_0x41d3('0x126')}),this['editor'][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0xb'))[_0x41d3('0x7b')]({'model':_0x41d3('0x107'),'view':_0x15c41e=>({'name':_0x41d3('0x71')+_0x15c41e,'group':_0x41d3('0x107')}),'converterPriority':_0x41d3('0x126')}),this['editor'][_0x41d3('0x4c')][_0x41d3('0x30')](_0x41d3('0x7'))[_0x41d3('0xa4')]({'model':_0x41d3('0x107'),'view':_0x1c45db=>{const _0x311bd0=_0x1c45db['markerName'][_0x41d3('0x82')](':')[0x1];return'insertion'!=_0x311bd0&&_0x41d3('0x2d')!=_0x311bd0?null:{'classes':[_0x41d3('0x61'),_0x41d3('0xbb')+_0x311bd0]};}}),this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x3b')]['on'](_0x41d3('0xe2'),et(this[_0x41d3('0x123')],'merge'),{'priority':'high'}),this[_0x41d3('0x123')]['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',et(this[_0x41d3('0x123')],_0x41d3('0x82')),{'priority':_0x41d3('0xcc')}),this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x3b')]['on'](_0x41d3('0x125'),(_0x41ed80,_0x2f5556,_0xa3e0ef)=>{const _0x4b83b7=_0xa3e0ef[_0x41d3('0xd7')]['markerNameToElements'](_0x2f5556['markerName']);if(_0x4b83b7)for(const _0x32665c of _0x4b83b7)_0x32665c['is'](_0x41d3('0xa3'))&&(_0xa3e0ef[_0x41d3('0xd7')][_0x41d3('0x57')](_0x32665c,_0x2f5556[_0x41d3('0xa9')]),_0xa3e0ef[_0x41d3('0x5b')]['remove'](_0x32665c));},{'priority':_0x41d3('0xcc')});}['_getChangeFromId'](_0x5b9a12){return this[_0x41d3('0x11a')][_0x41d3('0x43')](_0x5b9a12);}[_0x41d3('0xa6')](_0x4b27c5){return this['_changeView']&&this[_0x41d3('0x5e')]['destroy'](),this['_changeView']=new _0x702f8d(this[_0x41d3('0x123')][_0x41d3('0x41')],_0x4b27c5),this[_0x41d3('0x5e')];}[_0x41d3('0x3f')](){this['editor'][_0x41d3('0x80')]['document'][_0x41d3('0x49')][_0x41d3('0x10')](_0x41d3('0x77')),this['on'](_0x41d3('0x20'),(_0x50afde,_0x57709d,_0x241512,_0x5e30f7)=>{_0x5e30f7&&this[_0x41d3('0x120')][_0x41d3('0x116')](_0x5e30f7),_0x241512&&(this[_0x41d3('0x120')][_0x41d3('0x11b')]({'view':_0x241512,'stackId':_0x41d3('0x8f'),'position':{'target':()=>{const _0xd856da=this[_0x41d3('0x123')][_0x41d3('0x3e')],_0x1a019d=this[_0x41d3('0xd1')](_0x241512['changeId']);let _0x2d83fd;if(_0x1a019d['data'][_0x41d3('0xf7')]){const _0x54b4ca=_0xd856da[_0x41d3('0x50')][_0x41d3('0xf6')](_0x1a019d[_0x41d3('0x94')]);_0x2d83fd=Array[_0x41d3('0x6c')](_0x54b4ca['getClientRects']());}else{const _0x474e79=this['editor']['model']['markers'][_0x41d3('0x43')](_0x41d3('0x18')+_0x241512['changeId']);_0x2d83fd=Array[_0x41d3('0x6c')](_0xd856da[_0x41d3('0xd7')]['markerNameToElements'](_0x474e79[_0x41d3('0x6f')]))[_0x41d3('0x93')](_0x518902=>_0xd856da[_0x41d3('0x50')][_0x41d3('0xa0')][_0x41d3('0xb2')](_0x518902))[_0x41d3('0x93')](_0xcfbe3b=>Array[_0x41d3('0x6c')](_0xcfbe3b[_0x41d3('0x32')]()))[_0x41d3('0x78')]();}if(!this[_0x41d3('0x54')])return _0x2d83fd[0x0];return _0x2d83fd[_0x41d3('0xd0')](_0x2bd2de=>_0x2bd2de[_0x41d3('0xe7')]-0x3<=this['_activeViewTarget']['y']&&_0x2bd2de[_0x41d3('0x1a')]+0x3>=this[_0x41d3('0x54')]['y']&&_0x2bd2de[_0x41d3('0x102')]-0x3<=this[_0x41d3('0x54')]['x']&&_0x2bd2de[_0x41d3('0x98')]+0x3>=this[_0x41d3('0x54')]['x'])||_0x2d83fd[0x0];}}}),this[_0x41d3('0x120')][_0x41d3('0x2')](_0x41d3('0x8f')));}),this['on'](_0x41d3('0xa'),(_0x103a8e,_0x1f8952,_0x3fe1b0,_0x2b97cb)=>{this[_0x41d3('0x28')]=_0x3fe1b0?this[_0x41d3('0xa6')](_0x3fe1b0):null,this[_0x41d3('0x123')][_0x41d3('0x80')][_0x41d3('0x44')](()=>{const _0x227542=this[_0x41d3('0x123')]['editing'];_0x2b97cb&&(_0x2b97cb['data']['isOnRoot']?_0x227542[_0x41d3('0x50')][_0x41d3('0x44')](_0x4a9969=>{_0x4a9969[_0x41d3('0x6')](_0x41d3('0x27'),_0x227542[_0x41d3('0x50')]['document'][_0x41d3('0x59')](_0x2b97cb[_0x41d3('0x94')]));}):_0x227542[_0x41d3('0x67')]('revision:'+_0x2b97cb['id'])),_0x3fe1b0&&(_0x3fe1b0[_0x41d3('0x3d')]['isOnRoot']?_0x227542['view'][_0x41d3('0x44')](_0x35e60f=>{_0x35e60f[_0x41d3('0xd9')]('ck-revision-history-root--active',_0x227542[_0x41d3('0x50')][_0x41d3('0xae')]['getRoot'](_0x3fe1b0[_0x41d3('0x94')]));}):_0x227542[_0x41d3('0x67')](_0x41d3('0x18')+_0x3fe1b0['id']));});}),this['listenTo'](this[_0x41d3('0x123')][_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0xae')],_0x41d3('0xaa'),(_0x2b983a,_0x29d497)=>{if(this[_0x41d3('0xe3')])return;const _0x30b379=this[_0x41d3('0x99')](_0x29d497[_0x41d3('0x11c')]),_0x331a23=this[_0x41d3('0x11a')]['get'](_0x30b379);_0x331a23?(this[_0x41d3('0x54')]={'x':_0x29d497[_0x41d3('0x35')]['x'],'y':_0x29d497[_0x41d3('0x35')]['y']},this[_0x41d3('0x28')]=this[_0x41d3('0xa6')](_0x331a23)):(this[_0x41d3('0x54')]=null,this[_0x41d3('0x28')]=null);}),this['listenTo'](this['editor'][_0x41d3('0x3e')][_0x41d3('0x50')]['document'],_0x41d3('0xeb'),(_0x2922f8,_0x45882a)=>{const _0xd93cb0=this[_0x41d3('0x99')](_0x45882a[_0x41d3('0x11c')]),_0x428611=this[_0x41d3('0x11a')][_0x41d3('0x43')](_0xd93cb0);_0x428611?(this['_activeViewTarget']={'x':_0x45882a[_0x41d3('0x35')]['x'],'y':_0x45882a[_0x41d3('0x35')]['y']},_0x428611===this[_0x41d3('0xe3')]?this['_balloon'][_0x41d3('0x127')]():this[_0x41d3('0xe3')]=_0x428611):(this['_activeViewTarget']=null,this['activeChange']=null);});}[_0x41d3('0x99')](_0x5e1dc1){do{const _0x33ef3c=_0x5e1dc1[_0x41d3('0x10d')]('data-change-id');if(_0x33ef3c)return _0x33ef3c;_0x5e1dc1=_0x5e1dc1[_0x41d3('0xf5')];}while(_0x5e1dc1);return null;}[_0x41d3('0x9e')](){this[_0x41d3('0x123')][_0x41d3('0x80')]['change'](_0x15d963=>{for(const _0xfa41ea of this['editor'][_0x41d3('0x80')]['markers'])_0x15d963[_0x41d3('0x2f')](_0xfa41ea);});}}function et(_0x3e9021,_0x528708){return(_0x3214d9,_0x34c1a2,_0x1ba7e6)=>{if(!_0x1ba7e6['consumable'][_0x41d3('0xd4')](_0x34c1a2[_0x41d3('0x7f')],_0x3214d9[_0x41d3('0x6f')]))return;const _0x50c468=_0x34c1a2[_0x41d3('0x7f')][_0x41d3('0x21')](),_0x1989e0=_0x34c1a2[_0x41d3('0x7f')][_0x41d3('0x68')],_0x4cf3d7=_0x3e9021[_0x41d3('0x80')][_0x41d3('0x114')];let _0x56d2b5=null,_0x14b93c=null,_0x5f26f6=!0x1,_0x2579a9=!0x1;for(const _0x56e3a2 of _0x50c468){const _0x17e3ca=_0x56e3a2[_0x41d3('0x9d')];_0x5f26f6=_0x5f26f6||_0x4cf3d7[_0x41d3('0x55')](_0x17e3ca);const _0x45ab90=_0x1ba7e6[_0x41d3('0xd7')][_0x41d3('0xf8')](_0x17e3ca);if(_0x45ab90&&_0x45ab90[_0x41d3('0xb3')](_0x41d3('0xc6')))return;_0x41d3('0xbf')==_0x56e3a2[_0x41d3('0xf0')]&&(_0x4cf3d7[_0x41d3('0x4e')](_0x17e3ca)&&!_0x4cf3d7[_0x41d3('0xf9')](_0x17e3ca)&&(_0x17e3ca[_0x41d3('0x10b')]||_0x1989e0['isAtEnd']?_0x56d2b5&&_0x56d2b5[_0x41d3('0xf5')]==_0x17e3ca||(_0x56d2b5=_0x17e3ca,_0x2cbc97(_0x56e3a2[_0x41d3('0x85')]),_0x2579a9=!0x0):_0x14b93c=_0x14b93c||_0x56e3a2[_0x41d3('0x85')]));}function _0x2cbc97(_0x418974){const _0xeb2f63=_0x1ba7e6[_0x41d3('0xd7')][_0x41d3('0x4f')](_0x418974),_0x1b739e=_0x1ba7e6[_0x41d3('0x5b')][_0x41d3('0x53')]('span',{'class':_0x41d3('0xbb')+_0x528708});_0x1ba7e6[_0x41d3('0x5b')][_0x41d3('0xde')](_0xeb2f63,_0x1b739e),_0x1ba7e6[_0x41d3('0xd7')][_0x41d3('0xac')](_0x1b739e,_0x34c1a2[_0x41d3('0xa9')]);}_0x5f26f6||_0x2579a9||!_0x14b93c||_0x2cbc97(_0x14b93c);};}export class RestoreRevisionCommand extends _0x52ed3c{constructor(_0x5e4424){super(_0x5e4424);const _0x17008a=_0x5e4424['plugins'][_0x41d3('0x43')](d);this[_0x41d3('0x86')]=!0x1,this[_0x41d3('0x5c')](_0x17008a,'change:isReady',()=>this[_0x41d3('0x108')]()),this[_0x41d3('0x5c')](_0x17008a,_0x41d3('0x33'),()=>this['refresh']());}[_0x41d3('0xfa')](){const _0x481af6=this['editor'],_0xec32f9=_0x481af6[_0x41d3('0x5d')][_0x41d3('0x43')](d),_0x44efb1=_0xec32f9['isReady']?_0xec32f9[_0x41d3('0x36')][_0x41d3('0xf2')]:null;_0x481af6[_0x41d3('0xca')]['get']('revisionHistory')[_0x41d3('0xe4')](_0x44efb1);}['refresh'](){const {isReady:_0x1e24ae,isEnabled:_0x55a2be}=this[_0x41d3('0x123')][_0x41d3('0x5d')][_0x41d3('0x43')](d);this[_0x41d3('0x6d')]=_0x1e24ae&&_0x55a2be;}}export class ShowChangeCommand extends _0x52ed3c{constructor(_0x42b84f,{direction:_0x20ede7}){super(_0x42b84f);const _0x4daab1=_0x42b84f[_0x41d3('0x5d')][_0x41d3('0x43')](d);this[_0x41d3('0x86')]=!0x1,this[_0x41d3('0x10e')]='forward'===_0x20ede7?0x1:-0x1,this['listenTo'](_0x4daab1,_0x41d3('0x47'),()=>this[_0x41d3('0x108')]()),this[_0x41d3('0x5c')](_0x4daab1,_0x41d3('0x33'),()=>this[_0x41d3('0x108')]()),this['listenTo'](_0x4daab1,'change:activeChange',()=>this[_0x41d3('0x108')]());}['execute'](){const _0x4ebeee=this[_0x41d3('0x123')],_0x196d55=_0x4ebeee[_0x41d3('0x5d')][_0x41d3('0x43')](d),{isNavigationMode:_0x2782ea,currentChangeNumber:_0x33ac72}=_0x196d55;let _0x367712;if(_0x196d55[_0x41d3('0xe3')]=_0x2782ea?_0x196d55[_0x41d3('0x36')][_0x41d3('0x113')][_0x41d3('0x43')](_0x33ac72+this['_step']):_0x196d55[_0x41d3('0x36')][_0x41d3('0x113')]['first'],_0x196d55[_0x41d3('0xe3')][_0x41d3('0x3d')][_0x41d3('0xf7')])_0x367712=_0x4ebeee[_0x41d3('0x3e')][_0x41d3('0x50')][_0x41d3('0xf6')](_0x196d55['activeChange'][_0x41d3('0x94')]);else{const _0x14a5dd=_0x4ebeee[_0x41d3('0x80')][_0x41d3('0x15')][_0x41d3('0x43')](_0x41d3('0x18')+_0x196d55[_0x41d3('0xe3')]['id']);_0x367712=_0x4c8423(_0x4ebeee[_0x41d3('0x3e')],_0x14a5dd);}_0x320f9a({'target':_0x367712,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1d9d32,currentChangeNumber:_0xfc2bde,numberOfChanges:_0x21bee3,isReady:_0x1d7873,isEnabled:_0x40f3a1}=this[_0x41d3('0x123')]['plugins'][_0x41d3('0x43')](d);this[_0x41d3('0x6d')]=!!(_0x40f3a1&&_0x1d7873&&_0x21bee3)&&(!_0x1d9d32||(0x1===this[_0x41d3('0x10e')]?_0xfc2bde<_0x21bee3-0x1:_0xfc2bde>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b98=['model','ck-on','change:isActionsDropdownOpen','locale','isVisible','add','isEnabled','source','Name\x20this\x20revision','threeVerticalDots','map','listenTo','bind','panelPosition','extendTemplate','Restore\x20this\x20revision','function','stopPropagation','ck-revision-history-sidebar__revision__actions','isOpen','class','find','items','children','set','button','name','action','_action','execute','isActionsDropdownOpen'];(function(_0x154729,_0x4b98ad){const _0x38019f=function(_0x5ddeba){while(--_0x5ddeba){_0x154729['push'](_0x154729['shift']());}};_0x38019f(++_0x4b98ad);}(_0x4b98,0xbd));const _0x3801=function(_0x154729,_0x4b98ad){_0x154729=_0x154729-0x0;let _0x38019f=_0x4b98[_0x154729];return _0x38019f;};import{Collection as _0x23d70b}from'ckeditor5/src/utils';import{icons as _0x53d4c4}from'ckeditor5/src/core';import{Model as _0xb738df,addListToDropdown as _0x22e16b,createDropdown as _0x1c13bc}from'ckeditor5/src/ui';import{getTranslation as _0x53c531}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2fbae4,_0x5532e9){const _0x521ac6=_0x2fbae4['bindTemplate'],_0x266451=_0x2fbae4[_0x3801('0x0')],_0x43ca46=_0x1c13bc(_0x266451);_0x43ca46[_0x3801('0xa')]='sw';const _0x3e81f2=function(_0x81de82,_0x20be10){const _0x31e631=function(_0x2309d3,_0x2c1edb){const _0x20f262=_0x2309d3[_0x3801('0x0')],_0x4d4ce7={'Compare\x20against\x20selected':_0x53c531(_0x20f262,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x53c531(_0x20f262,_0x3801('0x5')),'Restore\x20this\x20revision':_0x53c531(_0x20f262,_0x3801('0xc'))};return _0x2c1edb[_0x3801('0x7')](_0x5b1177=>{const _0x2b1f9e=_0x4d4ce7[_0x5b1177[_0x3801('0x17')]];return _0x2b1f9e&&_0x2b1f9e!==_0x5b1177['name']&&(_0x5b1177[_0x3801('0x17')]=_0x2b1f9e),_0x5b1177;});}(_0x81de82,_0x20be10),_0x2856ee=new _0x23d70b();for(const _0x13b5a6 of _0x31e631){const _0x32879c={'type':_0x3801('0x16'),'model':new _0xb738df({'label':_0x13b5a6[_0x3801('0x17')],'class':_0x13b5a6[_0x3801('0x11')],'withText':!0x0,'_action':_0x13b5a6[_0x3801('0x18')]})};_0x32879c[_0x3801('0x1c')][_0x3801('0x9')]('isEnabled')['to'](_0x81de82,_0x3801('0x1b'),_0x4b2783=>_0x3801('0xd')!=typeof _0x13b5a6[_0x3801('0x3')]||(!_0x4b2783||_0x13b5a6['isEnabled'](_0x81de82))),_0x2856ee[_0x3801('0x2')](_0x32879c);}return _0x2856ee;}(_0x2fbae4,_0x5532e9);return _0x2fbae4[_0x3801('0x9')](_0x3801('0x1b'))['to'](_0x43ca46,_0x3801('0x10')),_0x43ca46['buttonView'][_0x3801('0x15')]({'label':_0x53c531(_0x266451,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x53d4c4[_0x3801('0x6')]}),_0x43ca46[_0x3801('0xb')]({'attributes':{'class':[_0x3801('0xf'),_0x521ac6['if']('isActionsDropdownOpen',_0x3801('0x1d'))]},'on':{'click':_0x521ac6['to'](_0x224937=>_0x224937[_0x3801('0xe')]())}}),_0x43ca46['on'](_0x3801('0x1a'),_0x38f40f=>{_0x2fbae4['isReady']&&'function'==typeof _0x38f40f['source']['_action']&&_0x38f40f[_0x3801('0x4')]['_action'](_0x2fbae4);}),_0x22e16b(_0x43ca46,_0x3e81f2),_0x43ca46[_0x3801('0x8')](_0x2fbae4,_0x3801('0x1e'),(_0x3cd0ff,_0x5df761,_0x5c11d7)=>{if(_0x5c11d7)for(const _0x28c411 of _0x43ca46['listView'][_0x3801('0x13')]){const _0x499b5a=_0x28c411[_0x3801('0x14')]['first'],_0x1e158a=_0x5532e9[_0x3801('0x12')](_0x1e835a=>_0x1e835a[_0x3801('0x18')]===_0x499b5a[_0x3801('0x19')])[_0x3801('0x1')];_0x28c411['isVisible']=void 0x0===_0x1e158a||_0x1e158a(_0x2fbae4);}}),_0x43ca46;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2af6=['name','span','ck-revision-history-sidebar__revision-author','set','setTemplate','ck-revision-history-sidebar__revision-author_creator','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author__name'];(function(_0x17e1f0,_0x2af6cc){const _0x16f97e=function(_0x3e3e04){while(--_0x3e3e04){_0x17e1f0['push'](_0x17e1f0['shift']());}};_0x16f97e(++_0x2af6cc);}(_0x2af6,0xc8));const _0x16f9=function(_0x17e1f0,_0x2af6cc){_0x17e1f0=_0x17e1f0-0x0;let _0x16f97e=_0x2af6[_0x17e1f0];return _0x16f97e;};import{View as _0x3a7f19,IconView as _0x6a42c2}from'ckeditor5/src/ui';import{getTranslation as _0x407db6}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x56b1d7 from'../../../theme/icons/user.svg';export default class ti extends _0x3a7f19{constructor(_0x114048,_0x1004c9,_0x35a01e){super(_0x114048);const _0x24ee91=new _0x6a42c2();_0x24ee91[_0x16f9('0x3')]({'content':_0x56b1d7,'viewBox':_0x16f9('0x6')});const _0x49d7e0=['ck',_0x16f9('0x2')];_0x35a01e&&_0x49d7e0['push'](_0x16f9('0x5'));const _0x112fa3=[{'tag':_0x16f9('0x1'),'attributes':{'class':['ck',_0x16f9('0x7')],'title':_0x407db6(_0x114048,_0x35a01e?'Revision\x20creator':'Revision\x20author')},'children':[_0x24ee91,_0x1004c9[_0x16f9('0x0')]]}];this[_0x16f9('0x4')]({'tag':'li','attributes':{'class':_0x49d7e0},'children':_0x112fa3});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4b85=['span','extendTemplate','Revision\x20name','set','ck-revision-history-sidebar__revision-name'];(function(_0x31aa9b,_0x4b8507){var _0x15edb1=function(_0x4590f0){while(--_0x4590f0){_0x31aa9b['push'](_0x31aa9b['shift']());}};_0x15edb1(++_0x4b8507);}(_0x4b85,0x134));var _0x15ed=function(_0x31aa9b,_0x4b8507){_0x31aa9b=_0x31aa9b-0x0;var _0x15edb1=_0x4b85[_0x31aa9b];return _0x15edb1;};import{LabeledFieldView as _0x3b29fe}from'ckeditor5/src/ui';import{getTranslation as _0x3e0216}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x3b29fe{constructor(_0x4467c4,_0x1a1b66){super(_0x4467c4,_0x1a1b66),this[_0x15ed('0x0')]({'label':_0x3e0216(_0x4467c4,_0x15ed('0x4'))}),this[_0x15ed('0x3')]({'tag':_0x15ed('0x2'),'attributes':{'class':[_0x15ed('0x1')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e38=['revisionActionsView','_revision','isActionsDropdownOpen','name','isReady','authors','fieldView','creator','createdAt','filter','ck-reset','ck-revision-history-sidebar__actions_dropdown_open','revisionNameView','closest','unhighlight','isConfirm','listenTo','srcElement','bindTemplate','value','isHighlighted','isEnabled','map','span','ck-revision-history-sidebar__revision-authors','length','fire','ck-revision-history-sidebar__revision_highlighted','unshift','extendTemplate','bind','isSelected','placeholder','.ck-thread__remove-confirm','highlight','set','setTemplate','element','render','_createdAtFormatted','select','ck-disabled','div','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision__controls-wrapper','220','from'];(function(_0x3392e0,_0x5e3809){const _0x39019b=function(_0xb36e9e){while(--_0xb36e9e){_0x3392e0['push'](_0x3392e0['shift']());}};_0x39019b(++_0x5e3809);}(_0x5e38,0x13c));const _0x3901=function(_0x3392e0,_0x5e3809){_0x3392e0=_0x3392e0-0x0;let _0x39019b=_0x5e38[_0x3392e0];return _0x39019b;};import{View as _0x233b18,createLabeledInputText as _0x238a6a}from'ckeditor5/src/ui';import{ConfirmMixin as _0x1f0017}from'ckeditor5-collaboration/src/collaboration-core';import _0x37a38d from'./revisionnameview';import _0x5e1072 from'./revisionauthorview';import{dateToPrettyFormat as _0x30dfea}from'./utils';import{createActionsDropdownView as _0x3f49f7}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x1f0017(_0x233b18){constructor(_0x308428,_0xb21053,_0xb10b91){super(_0x308428);const _0x399794=this[_0x3901('0x1f')],_0x581462=function(_0x3b71be,_0x9f0bb5){const _0x52b6ec=Array[_0x3901('0xc')](_0x9f0bb5[_0x3901('0x12')])[_0x3901('0x16')](_0x1ba942=>_0x1ba942!=_0x9f0bb5['creator']);return _0x9f0bb5[_0x3901('0x14')]&&_0x52b6ec[_0x3901('0x29')](_0x9f0bb5['creator']),_0x52b6ec[_0x3901('0x23')](_0x3e5386=>new _0x5e1072(_0x3b71be,_0x3e5386,_0x3e5386==_0x9f0bb5[_0x3901('0x14')]));}(_0x308428,_0xb21053);this['id']=_0xb21053['id'],this[_0x3901('0xe')]=_0xb21053,this[_0x3901('0x2b')](_0x3901('0x10'),_0x3901('0x15'))['to'](_0xb21053),this[_0x3901('0x2b')](_0x3901('0x5'))['to'](this,_0x3901('0x15'),_0x176ba6=>_0x176ba6?_0x30dfea(_0x308428['uiLanguage'],_0x176ba6):void 0x0),this['set'](_0x3901('0x2c'),!0x1),this[_0x3901('0x1')](_0x3901('0x21'),!0x1),this[_0x3901('0x1')](_0x3901('0xf'),!0x1),this['set'](_0x3901('0x11'),!0x1),this[_0x3901('0x1')](_0x3901('0x22'),!0x1),this[_0x3901('0x19')]=new _0x37a38d(_0x308428,_0x238a6a),this[_0x3901('0x19')][_0x3901('0x13')][_0x3901('0x2a')]({'attributes':{'maxlength':_0x3901('0xb')}}),this[_0x3901('0x19')][_0x3901('0x13')][_0x3901('0x2b')](_0x3901('0x20'),_0x3901('0x2d'))['to'](this,'name',_0x3901('0x5')),this[_0x3901('0x19')][_0x3901('0x2b')](_0x3901('0x22'))['to'](this,_0x3901('0x2c'),this,'isEnabled',(_0x13014e,_0x27af83)=>_0x13014e&&_0x27af83),this[_0x3901('0xd')]=_0xb10b91&&_0xb10b91[_0x3901('0x26')]?_0x3f49f7(this,_0xb10b91):'',this['revisionActionsView']&&this[_0x3901('0xd')]['bind'](_0x3901('0x22'))['to'](this),this[_0x3901('0x2')]({'tag':_0x3901('0x8'),'attributes':{'class':['ck',_0x3901('0x17'),'ck-revision-history-sidebar__revision-wrapper',_0x399794['if'](_0x3901('0x1c'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x3901('0x17'),'ck-revision-history-sidebar__revision',_0x399794['if'](_0x3901('0x22'),_0x3901('0x7'),_0x497a23=>!_0x497a23),_0x399794['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x399794['if']('isHighlighted',_0x3901('0x28')),_0x399794['if'](_0x3901('0xf'),_0x3901('0x18'))]},'children':[this[_0x3901('0x19')],{'tag':_0x3901('0x24'),'attributes':{'class':['ck',_0x3901('0x9')]},'children':[{'text':_0x399794['to'](_0x3901('0x5'))}]},{'tag':_0x3901('0x8'),'attributes':{'class':['ck',_0x3901('0xa')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3901('0x25')]},'children':_0x581462}]},this[_0x3901('0xd')]],'on':{'click':_0x399794['to'](_0x4d7e89=>{_0x4d7e89[_0x3901('0x1e')][_0x3901('0x1a')](_0x3901('0x2e'))||this[_0x3901('0x11')]&&this[_0x3901('0x22')]&&this[_0x3901('0x27')](_0x3901('0x6'),{'id':this['id']});})}}]});}[_0x3901('0x4')](){super[_0x3901('0x4')]();const _0x4e3e5d=this[_0x3901('0x19')]['fieldView'][_0x3901('0x3')];this[_0x3901('0x1d')](_0x4e3e5d,'change',()=>{this[_0x3901('0x27')]('setName',{'id':this['id'],'name':_0x4e3e5d[_0x3901('0x20')]});});}[_0x3901('0x6')](){this['isSelected']=!0x0;}['deselect'](){this[_0x3901('0x2c')]=!0x1;}[_0x3901('0x0')](){this[_0x3901('0x21')]=!0x0;}[_0x3901('0x1b')](){this[_0x3901('0x21')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x364a=['ck-hidden','isVisible','span','setTemplate','_isCollapsed','button','bindTemplate','false','true','click','ck-revision-history-sidebar__subrevision-collapser','toggle'];(function(_0x1d50b2,_0x364aac){const _0x299fb9=function(_0xe6721b){while(--_0xe6721b){_0x1d50b2['push'](_0x1d50b2['shift']());}};_0x299fb9(++_0x364aac);}(_0x364a,0xdf));const _0x299f=function(_0x1d50b2,_0x364aac){_0x1d50b2=_0x1d50b2-0x0;let _0x299fb9=_0x364a[_0x1d50b2];return _0x299fb9;};import{View as _0x1b7b37}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x1b7b37{constructor(_0x4d4ed8){super(_0x4d4ed8);const _0xbf8155=this[_0x299f('0xb')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x299f('0x8')]({'tag':'span','attributes':{'class':['ck',_0x299f('0x3'),_0xbf8155['if'](_0x299f('0x6'),_0x299f('0x5'),_0x1f0823=>!_0x1f0823),_0xbf8155['if'](_0x299f('0x9'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x299f('0xa'),'aria-pressed':_0xbf8155['to'](_0x299f('0x9'),_0x368c98=>_0x368c98?_0x299f('0x0'):_0x299f('0x1'))},'children':[{'tag':_0x299f('0x7'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0xbf8155['to'](_0x299f('0x2'))}});}[_0x299f('0x4')](){this[_0x299f('0x9')]=!this['_isCollapsed'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54b6=['ck-revision-history-sidebar__revision__date','setTemplate','createdAt','ck-revision-history-sidebar__revision','span','fire','bind','div','isSelected','_createdAtFormatted','select','creator','deselect','ck-revision-history-sidebar__revision-authors'];(function(_0x304ac0,_0x54b6c4){const _0x1b1b6e=function(_0x1dab8e){while(--_0x1dab8e){_0x304ac0['push'](_0x304ac0['shift']());}};_0x1b1b6e(++_0x54b6c4);}(_0x54b6,0x12f));const _0x1b1b=function(_0x304ac0,_0x54b6c4){_0x304ac0=_0x304ac0-0x0;let _0x1b1b6e=_0x54b6[_0x304ac0];return _0x1b1b6e;};import{View as _0x39182e}from'ckeditor5/src/ui';import _0x2d1896 from'./revisionauthorview';import{dateToPrettyFormat as _0x19b9d6}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x39182e{constructor(_0x45c4bc,_0xd0d25e,_0x5e27e9){super(_0x45c4bc);const _0x3f17f6=this['bindTemplate'];this['id']=_0xd0d25e['id'],this[_0x1b1b('0xb')]('createdAt')['to'](_0xd0d25e),this['set'](_0x1b1b('0xd'),!0x1),this[_0x1b1b('0xb')](_0x1b1b('0x0'))['to'](this,_0x1b1b('0x7'),_0x46117c=>_0x46117c?_0x19b9d6(_0x45c4bc['uiLanguage'],_0x46117c):void 0x0),this['_parentRevisionId']=_0x5e27e9,this[_0x1b1b('0x6')]({'tag':_0x1b1b('0xc'),'attributes':{'class':['ck','ck-reset',_0x1b1b('0x8'),'ck-revision-history-sidebar__subrevision',_0x3f17f6['if'](_0x1b1b('0xd'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1b1b('0x9'),'attributes':{'class':['ck',_0x1b1b('0x5')]},'children':[{'text':_0x3f17f6['to'](_0x1b1b('0x0'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1b1b('0x4')]},'children':[new _0x2d1896(_0x45c4bc,_0xd0d25e[_0x1b1b('0x2')],!0x0)]}],'on':{'click':_0x3f17f6['to'](this[_0x1b1b('0x1')][_0x1b1b('0xb')](this))}});}[_0x1b1b('0x1')](){this[_0x1b1b('0xd')]=!0x0,this[_0x1b1b('0xa')]('select',{'parentId':this['_parentRevisionId']});}[_0x1b1b('0x3')](){this[_0x1b1b('0xd')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x56fb=['toLocaleTimeString','toLocaleDateString','numeric'];(function(_0x310c87,_0x56fb3c){var _0x4ef7c5=function(_0x26312d){while(--_0x26312d){_0x310c87['push'](_0x310c87['shift']());}};_0x4ef7c5(++_0x56fb3c);}(_0x56fb,0x70));var _0x4ef7=function(_0x310c87,_0x56fb3c){_0x310c87=_0x310c87-0x0;var _0x4ef7c5=_0x56fb[_0x310c87];return _0x4ef7c5;};export function dateToPrettyFormat(_0x584580,_0x5f8591){return _0x5f8591[_0x4ef7('0x0')](_0x584580,{'month':'long','day':_0x4ef7('0x1')})+',\x20'+_0x5f8591[_0x4ef7('0x2')](_0x584580,{'hour':_0x4ef7('0x1'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29f1=['setTemplate','revisionNameInputValue','220','_focusCycler','locale','set','focusTracker','ck-button-cancel','revisionName','ck-revision-history-save-revision-form','form','arrowdown','cancel','focus','Cancel','check','extendTemplate','revisionNameInputView','tab','_createRevisionNameInput','execute','render','add','value','shift\x20+\x20tab','forEach','Name\x20of\x20the\x20revision\x20(optional)','keystrokes','saveButtonView','arrowup','_focusables','arrowright','delegate','input','_createButton','trim','ck-button-save','fieldView','element','cancelButtonView'];(function(_0xda0881,_0x29f1da){const _0x7e7dd2=function(_0x24866f){while(--_0x24866f){_0xda0881['push'](_0xda0881['shift']());}};_0x7e7dd2(++_0x29f1da);}(_0x29f1,0x9d));const _0x7e7d=function(_0xda0881,_0x29f1da){_0xda0881=_0xda0881-0x0;let _0x7e7dd2=_0x29f1[_0xda0881];return _0x7e7dd2;};import{icons as _0x3a3cad}from'ckeditor5/src/core';import{ButtonView as _0x4ac3a7,FocusCycler as _0x12bc42,LabeledFieldView as _0x5713d9,View as _0x5b114f,ViewCollection as _0x4d7b81,createLabeledInputText as _0x8f4bea,injectCssTransitionDisabler as _0x3f0bcf,submitHandler as _0x4a12e3}from'ckeditor5/src/ui';import{FocusTracker as _0x516046,KeystrokeHandler as _0x14e1db}from'ckeditor5/src/utils';import{getTranslation as _0x26aa83}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x5b114f{constructor(_0x1bb677){super(_0x1bb677),this['focusTracker']=new _0x516046(),this[_0x7e7d('0x1e')]=new _0x14e1db(),this[_0x7e7d('0x8')](_0x7e7d('0x4'),''),this[_0x7e7d('0x14')]=this[_0x7e7d('0x16')](),this[_0x7e7d('0x1f')]=this['_createButton'](_0x26aa83(_0x1bb677,'Save'),_0x3a3cad[_0x7e7d('0x12')],_0x7e7d('0x27')),this['saveButtonView']['type']='submit',this[_0x7e7d('0x2')]=this[_0x7e7d('0x25')](_0x26aa83(_0x1bb677,_0x7e7d('0x11')),_0x3a3cad['cancel'],_0x7e7d('0xa'),_0x7e7d('0xf')),this['_focusables']=new _0x4d7b81(),this[_0x7e7d('0x6')]=new _0x12bc42({'focusables':this[_0x7e7d('0x21')],'focusTracker':this[_0x7e7d('0x9')],'keystrokeHandler':this[_0x7e7d('0x1e')],'actions':{'focusPrevious':_0x7e7d('0x1b'),'focusNext':_0x7e7d('0x15')}}),this[_0x7e7d('0x3')]({'tag':_0x7e7d('0xd'),'attributes':{'class':['ck',_0x7e7d('0xc'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x7e7d('0x14')],this[_0x7e7d('0x1f')],this[_0x7e7d('0x2')]]}),_0x3f0bcf(this);}[_0x7e7d('0x18')](){super[_0x7e7d('0x18')](),_0x4a12e3({'view':this}),([this['revisionNameInputView'],this[_0x7e7d('0x1f')],this['cancelButtonView']][_0x7e7d('0x1c')](_0x1132ed=>{this['_focusables'][_0x7e7d('0x19')](_0x1132ed),this[_0x7e7d('0x9')]['add'](_0x1132ed[_0x7e7d('0x1')]);}),this[_0x7e7d('0x1e')]['listenTo'](this[_0x7e7d('0x1')]));const _0x5f1976=_0x13aae9=>_0x13aae9['stopPropagation']();this[_0x7e7d('0x1e')]['set'](_0x7e7d('0x22'),_0x5f1976),this[_0x7e7d('0x1e')][_0x7e7d('0x8')]('arrowleft',_0x5f1976),this[_0x7e7d('0x1e')][_0x7e7d('0x8')](_0x7e7d('0x20'),_0x5f1976),this[_0x7e7d('0x1e')][_0x7e7d('0x8')](_0x7e7d('0xe'),_0x5f1976);}[_0x7e7d('0x10')](){this[_0x7e7d('0x6')]['focusFirst']();}get[_0x7e7d('0xb')](){return this[_0x7e7d('0x14')][_0x7e7d('0x0')][_0x7e7d('0x1')][_0x7e7d('0x1a')][_0x7e7d('0x26')]();}set[_0x7e7d('0xb')](_0x1a2f42){this['revisionNameInputView'][_0x7e7d('0x0')][_0x7e7d('0x1')][_0x7e7d('0x1a')]=_0x1a2f42[_0x7e7d('0x26')]();}['reset'](){this[_0x7e7d('0x14')][_0x7e7d('0x0')][_0x7e7d('0x1')]['value']='';}[_0x7e7d('0x16')](){const _0x4a7ff4=new _0x5713d9(this[_0x7e7d('0x7')],_0x8f4bea),_0x162ced=_0x4a7ff4['fieldView'];return _0x162ced[_0x7e7d('0x13')]({'attributes':{'maxlength':_0x7e7d('0x5')}}),_0x4a7ff4['label']=_0x26aa83(this[_0x7e7d('0x7')],_0x7e7d('0x1d')),_0x162ced['on'](_0x7e7d('0x24'),()=>{this['revisionNameInputValue']=_0x162ced[_0x7e7d('0x1')][_0x7e7d('0x1a')][_0x7e7d('0x26')]();}),_0x4a7ff4;}[_0x7e7d('0x25')](_0xc500bb,_0x463114,_0x4a973f,_0x34e0a2){const _0x1f8125=new _0x4ac3a7(this[_0x7e7d('0x7')]);return _0x1f8125[_0x7e7d('0x8')]({'label':_0xc500bb,'icon':_0x463114,'tooltip':!0x0}),_0x1f8125[_0x7e7d('0x13')]({'attributes':{'class':_0x4a973f}}),_0x34e0a2&&_0x1f8125[_0x7e7d('0x23')](_0x7e7d('0x17'))['to'](this,_0x34e0a2),_0x1f8125;}}
|