@ckeditor/ckeditor5-revision-history 41.0.0 → 41.1.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 +5 -5
- 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 _0xe8be=['mousedown','toViewRange','range','loadRevisionData','change','get','isOnRoot','suggestion','level','revision-suggestion','bindElementToMarker','getRevisionRootsAttributes','revision-start','schema','pluginName','_refreshStartEndIndex','deletion','shift','upcast','index','children','vid_start','isRemoved','wrap','_step','return','isRemoveSuggestion','from','default','useFillerType','changes','concat','diff','toViewPosition','_sortAndFilterDiffChanges','insert','_removeMissingPairs','forEach','_revisions','addHighlight','distance','abs','mouseover','indexOf','nodeAfter','set','collaboration.channelId','_removeUnsupportedChanges','domConverter','uiElement','getCustomProperty','element','span','highest','parent','dataDowncast','_getRevisionsRange','isBlock','enqueueChange','marked','elementToAttribute','add','createRevision','restoreRevisionCallback','parse','sort','string','nextSibling','insertion','detachRoot','insertions','type','find','_markMarkers','model','data','dataToMarker','listenTo','getRootNames','modelRange','change:isEnabled','editingDowncast','init','_getViewForChange','element:pre','forceDisabled','code','isSuggestion','ck-suggestion-marker-split','_initInteractions','getClientRects','hasClass','has','side','setAttribute','_changeView','resolve','startIndex','low','elementEnd','previousPosition','ck-revision-history-root-add','pairId','then','vid','left','hasAttribute','delete','isLimit','showStack','mapper','ck-suggestion-marker','suggestion:','_data','attribute:vid','roots','_setDistance','isAdded','isEnabled','_getChangeFromId','nextPosition','document','addRevisionData','target','mapViewToDom','toData','change:activeView','isAddSuggestion','isBefore','remove','getRevision','removeMarker','revision:','ck-revision-history-root-','revision-viewer','rootName','markerToData','repository','addClass','revision','_cleanMarkers','affectsData','markerName','activeView','isAfter','getAttributes','activeChange','_makeModelFromTape','ck-suggestion-marker-','getWalker','item','isEqual','userId','reconvertMarker','createRangeIn','includes','_activeViewTarget','keys','domEvent','isNavigationMode','_makeModelFromViewString','push','getItems','requires','_appendChild','toViewElement','WidgetToolbarRepository','text','_joinTapes','showNextChange','getDomRoot','toModel','flat','_update','done','attributesAfter','markersEnd','high','ck-suggestion-preview-marker','right','getAttribute','error','removeClass','createPositionFromPath','oldRevisionId','_fixObsoleteTags','merge','downcastDispatcher','_cleanUp','createRange','currentChangeNumber','newRevisionId','_markMismatchedRemovedTags','isAtEnd','ck-suggestion-marker-merge','markerToHighlight','_threeWayMerge','startsWith','_changeIdToChange','start','revision-suggestion:','markerRange','backward','findIndex','data-change-id','removeMarker:revision-suggestion','_processTape','RevisionViewer','ck-suggestion-preview-marker-','object','_makeTape','changeId','deletions','_getDiff','addMarker:revision','unbindElementFromMarkerName','config','getRevisionData','execute','next','change:activeChange','length','name','elementStart','isContent','_getViewObj','slice','isIncorrect','isCollapsed','locale','attributesBefore','writer','observeMarkers','end','isAttached','consume','destroy','commands','editor','getRoot','splice','test','diffData','vid_end','ck-suggestion-marker--active','bind','_setConversion','processor','unshift','plugins','_removeRevisionMarkers','view','_markInsertions','forward','map','refresh','stop','-new','bottom','split','attachChange','markersStart','updatePosition','revisionHistoryLabel','createPositionBefore','isReady','consumable','_balloon','adapter','change:isReady','editing','conversion','removeMarker:revision','isAtStart','markerNameToElements','revisionHistoryAttachChange','pop','filter','markers','ck-revision-history-root--active','isInline','getIndex','_findChangeIdFromDomTarget','createUIElement','attributes','data-revision-','selection','RevisionsRepository','change:numberOfChanges','revision-end','endIndex','values','addMarker:revision-suggestion:deletion','for','viewItem'];(function(_0x12f4f7,_0xe8be8e){const _0x24c850=function(_0xabedb6){while(--_0xabedb6){_0x12f4f7['push'](_0x12f4f7['shift']());}};_0x24c850(++_0xe8be8e);}(_0xe8be,0xb3));const _0x24c8=function(_0x12f4f7,_0xe8be8e){_0x12f4f7=_0x12f4f7-0x0;let _0x24c850=_0xe8be[_0x12f4f7];return _0x24c850;};import{Plugin as _0x1656dc,Command as _0x5d268c}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0xe1a686}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x28a8ea}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x58e365,Element as _0x50bbe0,Text as _0x42350c,ViewDocumentFragment as _0x2a111c,ViewText as _0x46ba31,ViewElement as _0x391026,ViewContainerElement as _0x285401,ViewAttributeElement as _0xb46108,ViewEmptyElement as _0x86a49,ViewRawElement as _0x5abe5f,ViewUIElement as _0x260883}from'ckeditor5/src/engine.js';import{Users as _0xfce869,getMarkerDomElement as _0x2738e1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xaa1223 from'./ui/revisionviewer/changedetailsview.js';import _0x80a59e from'./revisionsrepository.js';import _0x4fbbb1 from'./changeitem.js';import{default as _0x450064}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x202d6e}from'lodash-es';const tt={'c':_0x285401,'a':_0xb46108,'e':_0x86a49,'r':_0x5abe5f,'u':_0x260883};export default class d extends _0x1656dc{static get[_0x24c8('0x82')](){return _0x24c8('0x1c');}static get[_0x24c8('0x117')](){return[_0xfce869,_0x28a8ea,_0x80a59e];}constructor(_0x50f214){super(_0x50f214),this['repository']=this['editor'][_0x24c8('0x46')]['get'](_0x24c8('0x6c')),this[_0x24c8('0xa1')](_0x24c8('0x106'),null),this[_0x24c8('0xa1')](_0x24c8('0x103'),null),this[_0x24c8('0x110')]=null,this[_0x24c8('0xa1')](_0x24c8('0x94'),null),this[_0x24c8('0xa1')](_0x24c8('0x56'),!0x1),this['set'](_0x24c8('0xea'),!0x0),this['on'](_0x24c8('0xc4'),(_0x303df8,_0x3888ad,_0x24c7f7)=>{this[_0x24c8('0x106')]=null,this[_0x24c8('0x103')]=null,this['editor'][_0x24c8('0x5b')][_0x24c8('0x48')][_0x24c8('0x78')](_0x27070d=>{for(const _0x4906f9 of this[_0x24c8('0x3b')]['editing'][_0x24c8('0x48')][_0x24c8('0xed')][_0x24c8('0xe7')])_0x24c7f7?_0x27070d[_0x24c8('0x3')]('ck-editor__editable__overlay',_0x4906f9):_0x27070d[_0x24c8('0xfe')]('ck-editor__editable__overlay',_0x4906f9);});}),this[_0x24c8('0x42')](_0x24c8('0x113'))['to'](this,_0x24c8('0x106'),_0x45641a=>null!==_0x45641a),this[_0x24c8('0x42')](_0x24c8('0xb'))['to'](this,_0x24c8('0x56'),this,_0x24c8('0x94'),this,_0x24c8('0x106'),(_0x3c911f,_0x1efa19,_0x20cae0)=>_0x3c911f&&_0x20cae0?_0x1efa19['changes']['getIndex'](_0x20cae0):0x0),this[_0x24c8('0x42')]('numberOfChanges')['to'](this,_0x24c8('0x56'),this,'diff',(_0x19d2cf,_0x31473a)=>_0x19d2cf?_0x31473a[_0x24c8('0x92')][_0x24c8('0x2a')]:0x0),this[_0x24c8('0xd3')]=null,this[_0x24c8('0x13')]=new Map(),this[_0x24c8('0x59')]=null,this[_0x24c8('0x58')]=this[_0x24c8('0x3b')][_0x24c8('0x46')]['get'](_0x28a8ea);}[_0x24c8('0xc6')](){const _0x488733=this[_0x24c8('0x3b')],_0x136b05=new ShowChangeCommand(_0x488733,{'direction':_0x24c8('0x17')}),_0x19b1aa=new ShowChangeCommand(_0x488733,{'direction':_0x24c8('0x4a')});(_0x488733['commands']['add']('showPreviousChange',_0x136b05),_0x488733[_0x24c8('0x3a')][_0x24c8('0xb1')](_0x24c8('0x11d'),_0x19b1aa),_0x488733[_0x24c8('0x3a')]['add']('restoreRevision',new RestoreRevisionCommand(_0x488733)),this['on'](_0x24c8('0x6d'),()=>{_0x136b05[_0x24c8('0x4c')](),_0x19b1aa[_0x24c8('0x4c')]();}),this[_0x24c8('0x43')](),this[_0x24c8('0xcd')](),_0x488733['enableReadOnlyMode'](_0x24c8('0xfa')),_0x488733[_0x24c8('0x46')][_0x24c8('0xd0')](_0x24c8('0x11a')))&&_0x488733['plugins'][_0x24c8('0x79')](_0x24c8('0x11a'))[_0x24c8('0xc9')]('revision-viewer');}async[_0x24c8('0x26')](_0x3f5331){await this[_0x24c8('0x77')](_0x3f5331);const _0x2cdef5={};for(const _0x476689 in _0x3f5331[_0x24c8('0x3f')]){if(_0x3f5331[_0x24c8('0x3f')][_0x476689][_0x24c8('0x51')]&&!_0x3f5331[_0x24c8('0x3f')][_0x476689]['attachChange']['isAttached'])continue;const _0x67b7a5=this[_0x24c8('0x47')](JSON['parse'](_0x3f5331[_0x24c8('0x3f')][_0x476689][_0x24c8('0xba')])),_0x5195ea=this[_0x24c8('0x3b')]['editing']['view'][_0x24c8('0xed')],_0x233df7=new _0x2a111c(_0x5195ea,_0x67b7a5[_0x24c8('0x4b')](_0x3b5646=>this[_0x24c8('0x2e')](_0x3b5646)));this[_0x24c8('0x3b')]['data']['processor'][_0x24c8('0x91')](_0x24c8('0xaf')),_0x2cdef5[_0x476689]=this[_0x24c8('0x3b')][_0x24c8('0xbf')]['processor'][_0x24c8('0xf1')](_0x233df7),this['editor'][_0x24c8('0xbf')][_0x24c8('0x44')][_0x24c8('0x91')](_0x24c8('0x90'));}return _0x2cdef5;}async[_0x24c8('0x7f')](_0x407043){await this[_0x24c8('0x77')](_0x407043);const _0x6cf054={};for(const _0x3e6a95 in _0x407043[_0x24c8('0x3f')])_0x407043[_0x24c8('0x3f')][_0x3e6a95]['attachChange']&&!_0x407043[_0x24c8('0x3f')][_0x3e6a95][_0x24c8('0x51')][_0x24c8('0x37')]||(_0x6cf054[_0x3e6a95]=_0x407043['diffData'][_0x3e6a95]['attributesAfter']||{});return _0x6cf054;}[_0x24c8('0x47')](_0x2bd741){return(_0x2bd741=_0x2bd741[_0x24c8('0x62')](_0x3d955a=>!_0x3d955a[_0x24c8('0x2b')]||_0x24c8('0x80')!==_0x3d955a['name']&&_0x24c8('0x6e')!==_0x3d955a['name']))[_0x24c8('0x99')](_0x177089=>{_0x24c8('0xb6')!=typeof _0x177089&&(_0x177089['children']=this[_0x24c8('0x47')](_0x177089[_0x24c8('0x88')]),_0x177089[_0x24c8('0x69')]=_0x177089[_0x24c8('0x69')][_0x24c8('0x62')](_0x50a8a8=>!_0x50a8a8[0x0][_0x24c8('0x12')](_0x24c8('0x6a'))));}),_0x2bd741;}async['compare'](_0x366fb5,_0x17426f,_0x36aed5=!0x1){if(!this[_0x24c8('0xea')])return;const _0x3acbde=this['diff'],_0x214ccd=this[_0x24c8('0xfd')],_0x3848c6=_0x24c8('0xb6')==typeof _0x366fb5?_0x214ccd[_0x24c8('0xf6')](_0x366fb5):_0x366fb5,_0x8411e1=_0x24c8('0xb6')==typeof _0x17426f?_0x214ccd[_0x24c8('0xf6')](_0x17426f):_0x17426f,_0x381628=_0x3848c6['id'],_0x17d7ce=_0x8411e1?_0x8411e1['id']:null;if(!_0x36aed5&&this[_0x24c8('0x94')]&&this[_0x24c8('0x94')]['newRevisionId']===_0x381628&&this[_0x24c8('0x94')][_0x24c8('0x5')]===_0x17d7ce)return Promise[_0x24c8('0xd4')]();this[_0x24c8('0x56')]=!0x1,this['activeView']=null,this[_0x24c8('0x106')]=null,this[_0x24c8('0x94')]=new _0x450064(_0x381628,_0x17d7ce);const _0x38cc18=this[_0x24c8('0xac')](_0x3848c6,_0x8411e1,!0x0)['map'](_0x115975=>this[_0x24c8('0x77')](_0x115975));return _0x38cc18[_0x24c8('0x115')](new Promise(_0x4efd8d=>{setTimeout(_0x4efd8d,0x14);})),Promise['all'](_0x38cc18)[_0x24c8('0xdb')](()=>{if(!this['isEnabled'])return;this[_0x24c8('0x9')]();const _0x3804e8=this['_getDiff'](_0x381628,_0x17d7ce);for(const _0x201d8d of _0x3804e8['changes'])this[_0x24c8('0x13')][_0x24c8('0xa1')](_0x201d8d['id'],_0x201d8d);this[_0x24c8('0x3b')][_0x24c8('0xbe')]['enqueueChange']({'isUndoable':!0x1},_0xd027c5=>{for(const _0x3a6db2 of this['editor']['model'][_0x24c8('0xed')][_0x24c8('0xc2')]())_0xd027c5[_0x24c8('0xb9')](_0x3a6db2);for(const _0x2e6cb2 of Object[_0x24c8('0x111')](_0x3804e8['model'])){const _0x2b591c=_0xd027c5['addRoot'](_0x2e6cb2);for(const _0x25af80 of Object[_0x24c8('0x111')](_0x3804e8[_0x24c8('0x69')][_0x2e6cb2]))_0xd027c5[_0x24c8('0xd2')](_0x25af80,_0x3804e8[_0x24c8('0x69')][_0x2e6cb2][_0x25af80],_0x2b591c);_0xd027c5[_0x24c8('0x97')](_0x3804e8[_0x24c8('0xbe')][_0x2e6cb2],_0x2b591c,0x0);}}),this[_0x24c8('0x94')]['_setChanges'](this[_0x24c8('0x96')](_0x3804e8[_0x24c8('0x92')])),this[_0x24c8('0x56')]=!0x0;})['catch'](_0x390602=>{console[_0x24c8('0x2')](_0x390602),this[_0x24c8('0x9')](),_0x3acbde&&(this['diff']=_0x3acbde),this[_0x24c8('0x56')]=!0x0;});}[_0x24c8('0xee')](_0x2e29e6,_0x629fc1){const _0x2565db=this[_0x24c8('0xfd')][_0x24c8('0xb2')](_0x2e29e6);return _0x2565db['on']('_update',(_0x41cb63,_0x4cefd6,_0x56c1a1)=>_0x629fc1(_0x4cefd6,_0x56c1a1,_0x2565db)),this[_0x24c8('0xfd')]['addRevision'](_0x2565db),_0x2565db;}[_0x24c8('0x77')](_0x18210b){if(!_0x18210b||_0x18210b[_0x24c8('0x3f')])return Promise[_0x24c8('0xd4')]();{const _0x59dba2=this[_0x24c8('0x3b')][_0x24c8('0x25')][_0x24c8('0x79')](_0x24c8('0xa2'));return this['adapter'][_0x24c8('0xf6')]({'channelId':_0x59dba2,'revisionId':_0x18210b['id']})[_0x24c8('0xdb')](_0x1ee581=>{_0x18210b[_0x24c8('0x121')]({'diffData':_0x1ee581[_0x24c8('0x3f')]},!0x0);});}}[_0x24c8('0x9')](){this[_0x24c8('0x106')]=null,this[_0x24c8('0x100')](),this[_0x24c8('0xd3')]&&this[_0x24c8('0xd3')][_0x24c8('0x39')](),this[_0x24c8('0xd3')]=null,this['_changeIdToChange']['clear'](),this[_0x24c8('0x3b')]['model'][_0x24c8('0xae')]({'isUndoable':!0x1},_0x44f5b6=>{for(const _0x1d0e4d of this[_0x24c8('0x3b')]['model'][_0x24c8('0xed')][_0x24c8('0xc2')]())_0x44f5b6[_0x24c8('0xb9')](_0x1d0e4d);});}[_0x24c8('0x96')](_0x4d4dd2){const _0x1fd00d=[],_0x5108d7=new Map();for(const _0x32d11a of this['editor'][_0x24c8('0xbe')][_0x24c8('0xed')][_0x24c8('0xc2')]()){const _0x2198df=this[_0x24c8('0x3b')]['editing'][_0x24c8('0x48')]['getDomRoot'](_0x32d11a);if(!_0x2198df)continue;const _0x41aef5=_0x2198df[_0x24c8('0xce')]()[_0x24c8('0x10a')](0x0);_0x41aef5&&(_0x1fd00d[_0x24c8('0x115')](_0x32d11a),_0x5108d7[_0x24c8('0xa1')](_0x32d11a,_0x41aef5));}return _0x1fd00d[_0x24c8('0xb5')]((_0x2b8314,_0x3c4e42)=>{const _0x2b8685=_0x5108d7['get'](_0x2b8314),_0x52d7f5=_0x5108d7[_0x24c8('0x79')](_0x3c4e42);return _0x2b8685['y']-_0x52d7f5['y']||_0x2b8685['x']-_0x52d7f5['x'];}),(_0x4d4dd2=_0x4d4dd2[_0x24c8('0x62')](_0x505854=>_0x1fd00d['includes'](_0x505854['rootName'])))['sort']((_0x85d3fe,_0x3d42ac)=>_0x1fd00d[_0x24c8('0x9f')](_0x85d3fe['rootName'])-_0x1fd00d[_0x24c8('0x9f')](_0x3d42ac[_0x24c8('0xfb')])),_0x4d4dd2;}[_0x24c8('0x1f')](_0x27bebe){const _0x4d5ecc=Array[_0x24c8('0x8f')](_0x27bebe[_0x24c8('0x63')])[_0x24c8('0x62')](([_0x83a1d6,_0xffa203])=>_0x83a1d6[_0x24c8('0x12')](_0x24c8('0xf8'))&&!_0xffa203['isCollapsed']),_0x31eed7=Array['from'](this[_0x24c8('0x3b')][_0x24c8('0xbe')][_0x24c8('0x10e')](_0x27bebe)[_0x24c8('0x109')]({'singleCharacters':!0x0}));if(0x0!=_0x4d5ecc[_0x24c8('0x2a')])for(const _0x26a736 of _0x31eed7){const [_0x59a2eb,_0xf7ea1]=_0x4d5ecc[0x0],[,_0x5522f9,_0x2d84ca]=_0x59a2eb[_0x24c8('0x50')](':');if(_0xf7ea1['end']['isEqual'](_0x26a736[_0x24c8('0xec')])&&_0x4d5ecc[_0x24c8('0x85')](),(_0x26a736['previousPosition'][_0x24c8('0x10b')](_0xf7ea1[_0x24c8('0x14')])||_0x26a736['previousPosition'][_0x24c8('0x104')](_0xf7ea1[_0x24c8('0x14')]))&&('insertion'==_0x5522f9?_0x26a736['isAdded']={'userId':_0x2d84ca}:_0x24c8('0x84')==_0x5522f9&&(_0x26a736[_0x24c8('0x8a')]={'userId':_0x2d84ca})),0x0==_0x4d5ecc[_0x24c8('0x2a')])break;}return _0x31eed7;}['_refreshStartEndIndex'](_0x3a5fc0){const _0x3e866b=new Map();for(let _0x1b8f5b=0x0;_0x1b8f5b<_0x3a5fc0[_0x24c8('0x2a')];_0x1b8f5b++)_0x24c8('0x11b')===_0x3a5fc0[_0x1b8f5b][_0x24c8('0xbb')]?(_0x3a5fc0[_0x1b8f5b]['item'][_0x24c8('0xd5')]=_0x1b8f5b,_0x3a5fc0[_0x1b8f5b][_0x24c8('0x10a')][_0x24c8('0x6f')]=_0x1b8f5b):(_0x24c8('0x2c')===_0x3a5fc0[_0x1b8f5b][_0x24c8('0xbb')]?_0x3a5fc0[_0x1b8f5b][_0x24c8('0x10a')][_0x24c8('0xd5')]=_0x1b8f5b:'elementEnd'===_0x3a5fc0[_0x1b8f5b][_0x24c8('0xbb')]&&(_0x3a5fc0[_0x1b8f5b]['item'][_0x24c8('0x6f')]=_0x1b8f5b),_0x3e866b[_0x24c8('0xa1')](_0x3a5fc0[_0x1b8f5b]['id'],_0x1b8f5b));for(const _0x13956f of _0x3e866b[_0x24c8('0x70')]())_0x24c8('0x2c')===_0x3a5fc0[_0x13956f]['type']?_0x3a5fc0[_0x13956f][_0x24c8('0x10a')][_0x24c8('0x6f')]=_0x3e866b[_0x24c8('0x79')](_0x3a5fc0[_0x13956f][_0x24c8('0xda')]):_0x24c8('0xd7')===_0x3a5fc0[_0x13956f][_0x24c8('0xbb')]&&(_0x3a5fc0[_0x13956f][_0x24c8('0x10a')]['startIndex']=_0x3e866b['get'](_0x3a5fc0[_0x13956f]['pairId']));}[_0x24c8('0x1b')](_0x1d57ca){for(let _0x36f4ee=0x0;_0x36f4ee<_0x1d57ca[_0x24c8('0x2a')];_0x36f4ee++){if(_0x24c8('0x2c')===_0x1d57ca[_0x36f4ee][_0x24c8('0xbb')])_0x1d57ca[_0x36f4ee]['item'][_0x24c8('0xd5')]=_0x36f4ee;else{if(_0x24c8('0xd7')===_0x1d57ca[_0x36f4ee][_0x24c8('0xbb')]){_0x1d57ca[_0x36f4ee]['item']['endIndex']=_0x36f4ee;const _0x17e0b2=_0x1d57ca[_0x36f4ee][_0x24c8('0x10a')][_0x24c8('0xd5')];_0x1d57ca[_0x17e0b2][_0x24c8('0xda')]=_0x1d57ca[_0x36f4ee]['id'],_0x1d57ca[_0x36f4ee]['pairId']=_0x1d57ca[_0x17e0b2]['id'];}else _0x1d57ca[_0x36f4ee][_0x24c8('0x10a')][_0x24c8('0xd5')]=_0x36f4ee,_0x1d57ca[_0x36f4ee][_0x24c8('0x10a')]['endIndex']=_0x36f4ee,_0x1d57ca[_0x36f4ee][_0x24c8('0xda')]=null;}_0x1d57ca[_0x36f4ee][_0x24c8('0x52')]||(_0x1d57ca[_0x36f4ee]['markersStart']=[],_0x1d57ca[_0x36f4ee][_0x24c8('0x124')]=[]);}}['_markInsertions'](_0x2c8988,_0x21705f){const _0x4989fa=_0x2c8988[_0x24c8('0x62')](_0x2e1ec8=>!_0x2e1ec8[_0x24c8('0xe9')]);for(let _0xee3d84=0x0;_0xee3d84<_0x21705f[_0x24c8('0x2a')];_0xee3d84++)_0x21705f[_0xee3d84]['isAdded']&&(_0x4989fa[_0xee3d84]['isAdded']=_0x21705f[_0xee3d84]['isAdded']);}[_0x24c8('0x114')](_0x4f8098){const _0x2275c7=JSON[_0x24c8('0xb4')](_0x4f8098),_0x224e01=this[_0x24c8('0x3b')]['editing'][_0x24c8('0x48')][_0x24c8('0xed')],_0x19b3c9=new _0x2a111c(_0x224e01,_0x2275c7['map'](_0x335e9a=>this['_getViewObj'](_0x335e9a)));return this[_0x24c8('0x3b')][_0x24c8('0xbf')][_0x24c8('0x11f')](_0x19b3c9);}[_0x24c8('0x2e')](_0x8766a2){const _0x7eb0de=this[_0x24c8('0x3b')][_0x24c8('0x5b')][_0x24c8('0x48')][_0x24c8('0xed')];if('string'==typeof _0x8766a2)return new _0x46ba31(_0x7eb0de,_0x8766a2);{const _0x53df12=_0x8766a2['children'][_0x24c8('0x4b')](_0x57ca99=>this[_0x24c8('0x2e')](_0x57ca99));return new(tt[_0x8766a2[(_0x24c8('0xbb'))]]||_0x391026)(_0x7eb0de,_0x8766a2[_0x24c8('0x2b')],_0x8766a2['attributes'],_0x53df12);}}[_0x24c8('0x22')](_0x3be3aa,_0x2aea64=null){const _0x236ab4=this[_0x24c8('0xfd')][_0x24c8('0xf6')](_0x3be3aa),_0x1ef135=_0x2aea64?this[_0x24c8('0xfd')]['getRevision'](_0x2aea64):null,_0x20829c=this[_0x24c8('0xac')](_0x236ab4,_0x1ef135),_0xe2318b=_0x20829c[_0x20829c[_0x24c8('0x2a')]-0x1],_0x2c042e=new Map(),_0x38bb0d={'model':{},'attributes':{},'changes':[]},_0x45c2cf=new Set(),_0x46d7a2=new Map();for(let _0x1de4ec=_0x20829c[_0x24c8('0x2a')]-0x1;_0x1de4ec>=0x0;_0x1de4ec--){const _0x55c76=_0x20829c[_0x1de4ec];for(const _0x2cfde9 of Object[_0x24c8('0x111')](_0x55c76[_0x24c8('0x3f')]))if(_0x55c76['diffData'][_0x2cfde9]['attachChange']){const _0x565afd=_0x55c76[_0x24c8('0x3f')][_0x2cfde9][_0x24c8('0x51')];_0x565afd[_0x24c8('0x37')]?(_0x45c2cf['add'](_0x2cfde9),_0x46d7a2[_0x24c8('0xd0')](_0x2cfde9)&&_0x46d7a2['get'](_0x2cfde9)['userId']==_0x565afd[_0x24c8('0x10c')]?_0x46d7a2[_0x24c8('0xdf')](_0x2cfde9):_0x46d7a2[_0x24c8('0xa1')](_0x2cfde9,_0x565afd)):_0x46d7a2['has'](_0x2cfde9)?(_0x45c2cf[_0x24c8('0xdf')](_0x2cfde9),_0x46d7a2[_0x24c8('0xdf')](_0x2cfde9)):(_0x45c2cf[_0x24c8('0xb1')](_0x2cfde9),_0x46d7a2[_0x24c8('0xa1')](_0x2cfde9,_0x565afd));}else _0x45c2cf[_0x24c8('0xb1')](_0x2cfde9);}for(const _0x4afe77 of _0x45c2cf){const _0x3fb345=_0x46d7a2[_0x24c8('0xd0')](_0x4afe77)&&!_0x46d7a2[_0x24c8('0x79')](_0x4afe77)[_0x24c8('0x37')];let _0x189cd1=_0x3fb345?_0x20829c[_0x24c8('0x2a')]-0x1:0x0;const _0x5336a9=_0x3fb345?-0x1:0x1;for(;_0x20829c[_0x189cd1];){const _0x17d345=_0x20829c[_0x189cd1];if(_0x17d345[_0x24c8('0x3f')][_0x4afe77]){const _0x5a5ed6=_0x3fb345?_0x17d345[_0x24c8('0x3f')][_0x4afe77][_0x24c8('0x33')]:_0x17d345['diffData'][_0x4afe77][_0x24c8('0x123')];_0x38bb0d[_0x24c8('0x69')][_0x4afe77]=_0x5a5ed6?_0x202d6e(_0x5a5ed6):{};break;}_0x189cd1+=_0x5336a9;}}for(const _0x5835bf of _0x20829c){_0x5835bf['model']={};for(const _0x3f7c94 of _0x5835bf['authors'])_0x2c042e[_0x24c8('0xa1')](_0x3f7c94['id'],_0x3f7c94);for(const _0x4a9660 of _0x45c2cf){const _0x4dec7a=_0x5835bf[_0x24c8('0x3f')][_0x4a9660]?_0x5835bf[_0x24c8('0x3f')][_0x4a9660][_0x24c8('0xba')]:'[]',_0xe9191b=_0x5835bf[_0x24c8('0x3f')][_0x4a9660]?_0x5835bf[_0x24c8('0x3f')][_0x4a9660][_0x24c8('0x21')]:'[]';_0x5835bf[_0x24c8('0xbe')][_0x4a9660]={'insertions':this[_0x24c8('0x114')](_0x4dec7a),'deletions':this[_0x24c8('0x114')](_0xe9191b)};}}for(const _0x23f630 of _0x45c2cf){let _0x23d6e3=null,_0x3654d5=0x0;const _0x1a48b7=new Map(Array['from'](_0x236ab4[_0x24c8('0xbe')][_0x23f630][_0x24c8('0xba')][_0x24c8('0x63')])[_0x24c8('0x62')](([_0x281fe0])=>!_0x281fe0['startsWith'](_0x24c8('0xf8'))));let _0x395f55=0x0;for(const _0x45a761 of _0x20829c){const _0x5de4ed=this[_0x24c8('0x1f')](_0x45a761[_0x24c8('0xbe')][_0x23f630][_0x24c8('0xba')]);_0x45a761==_0x236ab4?(_0x23d6e3=_0x5de4ed,_0x3654d5=_0x23d6e3[_0x24c8('0x2a')],_0x23d6e3[_0x24c8('0x99')](_0x5da187=>{_0x5da187['id']=_0x395f55++;}),this[_0x24c8('0x1b')](_0x23d6e3)):this[_0x24c8('0x49')](_0x23d6e3,_0x5de4ed);const _0x5b407e=_0x23d6e3[_0x24c8('0x62')](_0x40179d=>!_0x40179d[_0x24c8('0xe9')])[_0x24c8('0x4b')](_0x172800=>_0x172800['id']);let _0x3588c9=0x0;const _0x58bcde=this[_0x24c8('0x1f')](_0x45a761['model'][_0x23f630]['deletions']);_0x58bcde[_0x24c8('0x99')](_0x204603=>{_0x204603[_0x24c8('0x8a')]?_0x204603['id']=_0x3654d5++:_0x204603['id']=_0x5b407e[_0x3588c9++];}),this[_0x24c8('0x1b')](_0x58bcde),this[_0x24c8('0xe8')](_0x23d6e3,_0x24c8('0xe9')),this['_setDistance'](_0x58bcde,'isRemoved'),_0x45a761==_0x236ab4&&this[_0x24c8('0xbd')](_0x23d6e3,_0x1a48b7),_0x23d6e3=this['_joinTapes'](_0x23d6e3,_0x58bcde),this[_0x24c8('0x83')](_0x23d6e3),this[_0x24c8('0xe8')](_0x23d6e3,_0x24c8('0x8a'));}_0x23d6e3=_0x23d6e3[_0x24c8('0x62')](_0x3fc212=>!(_0x3fc212[_0x24c8('0xe9')]&&_0x3fc212[_0x24c8('0x8a')]));const _0x324f66=new Map(_0xe2318b['model'][_0x23f630][_0x24c8('0x21')][_0x24c8('0x63')]),_0x7c8301=new Set(_0x1a48b7[_0x24c8('0x111')]());for(const _0x588964 of _0x324f66['keys']())_0x7c8301[_0x24c8('0xdf')](_0x588964);this['_markSuggestions'](_0x23d6e3,_0x7c8301),this[_0x24c8('0x6')](_0x23d6e3),_0x23d6e3=this[_0x24c8('0x98')](_0x23d6e3),_0x23d6e3=this[_0x24c8('0xd')](_0x23d6e3),_0x23d6e3=this[_0x24c8('0xa3')](_0x23d6e3);const {root:_0x57999f,changes:_0x2d79e8}=this[_0x24c8('0x107')](_0x23d6e3,_0x2c042e,_0x23f630);_0x38bb0d[_0x24c8('0xbe')][_0x23f630]=_0x57999f;const _0x58c480=_0x46d7a2[_0x24c8('0x79')](_0x23f630);if(_0x58c480){const _0x39e18a=_0x2c042e[_0x24c8('0x79')](_0x58c480['userId']),_0x1aade1=new _0x4fbbb1({'author':_0x39e18a,'type':_0x58c480[_0x24c8('0x37')]?_0x24c8('0xb1'):_0x24c8('0xf5'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x23f630});_0x2d79e8[_0x24c8('0x45')](_0x1aade1),_0x38bb0d[_0x24c8('0x69')][_0x23f630][_0x24c8('0x60')]=_0x1aade1['id'];}_0x38bb0d[_0x24c8('0x92')]=_0x38bb0d[_0x24c8('0x92')]['concat'](_0x2d79e8);}return _0x38bb0d;}[_0x24c8('0xbd')](_0x29a831,_0xd04506){for(let _0xaf303a=0x0;_0xaf303a<_0x29a831['length'];_0xaf303a++)for(const [_0x1f5904,_0x48567b]of _0xd04506)_0x48567b[_0x24c8('0x14')][_0x24c8('0x10b')](_0x29a831[_0xaf303a][_0x24c8('0xd8')])&&_0x29a831[_0xaf303a][_0x24c8('0x52')][_0x24c8('0x115')](_0x1f5904),_0x48567b['end'][_0x24c8('0x10b')](_0x29a831[_0xaf303a][_0x24c8('0xec')])&&_0x29a831[_0xaf303a]['markersEnd']['push'](_0x1f5904);}[_0x24c8('0x11c')](_0x581a75,_0x597bf7){let _0x32aa9e=[],_0x2cb7f1=0x0,_0xf58aff=0x0;for(;_0x2cb7f1<_0x581a75[_0x24c8('0x2a')]||_0xf58aff<_0x597bf7['length'];){const _0x20175f=_0x581a75[_0x2cb7f1]||{},_0x5458cb=_0x597bf7[_0xf58aff]||{};if(_0x20175f['id']==_0x5458cb['id'])_0x2cb7f1++,_0xf58aff++,_0x32aa9e[_0x24c8('0x115')](_0x20175f);else{if(_0x5458cb[_0x24c8('0x8a')]&&_0x20175f[_0x24c8('0xe9')]){const {commonTape:_0x378e90,iEnd:_0xcaf435,jEnd:_0x2466b6}=this[_0x24c8('0x11')](_0x581a75,_0x2cb7f1,_0x597bf7,_0xf58aff);_0x32aa9e=_0x32aa9e['concat'](_0x378e90),_0x2cb7f1=_0xcaf435,_0xf58aff=_0x2466b6;}else _0x5458cb[_0x24c8('0x8a')]?(_0xf58aff++,_0x32aa9e[_0x24c8('0x115')](_0x5458cb)):(_0x2cb7f1++,_0x32aa9e['push'](_0x20175f));}}return _0x32aa9e;}['_markSuggestions'](_0x17d7ae,_0x5215d9){const _0x51e062=[];for(let _0x44a59a=0x0;_0x44a59a<_0x17d7ae['length'];_0x44a59a++){for(let _0x3fef40=0x0;_0x3fef40<_0x17d7ae[_0x44a59a]['markersStart'][_0x24c8('0x2a')];_0x3fef40++){const _0x57666b=_0x17d7ae[_0x44a59a]['markersStart'][_0x3fef40];if(!_0x5215d9[_0x24c8('0xd0')](_0x57666b))continue;const {group:_0x390ab1,type:_0x32da7f,authorId:_0x3af123}=_0x3a5a42(_0x57666b);'revision-suggestion'!=_0x390ab1||_0x24c8('0xb8')!=_0x32da7f&&'deletion'!=_0x32da7f||(_0x51e062[_0x24c8('0x45')]({'type':_0x32da7f,'name':_0x57666b,'userId':_0x3af123}),_0x17d7ae[_0x44a59a][_0x24c8('0x52')][_0x24c8('0x3d')](_0x3fef40,0x1),_0x3fef40--);}_0x207dca(_0x17d7ae[_0x44a59a]);for(let _0x123237=0x0;_0x123237<_0x17d7ae[_0x44a59a][_0x24c8('0x124')]['length'];_0x123237++){const _0x4a7968=_0x17d7ae[_0x44a59a]['markersEnd'][_0x123237];if(!_0x5215d9[_0x24c8('0xd0')](_0x4a7968))continue;const {group:_0x312a7a,type:_0x31cca6}=_0x3a5a42(_0x4a7968);if(_0x24c8('0x7d')!=_0x312a7a||_0x24c8('0xb8')!=_0x31cca6&&_0x24c8('0x84')!=_0x31cca6)continue;_0x17d7ae[_0x44a59a][_0x24c8('0x124')][_0x24c8('0x3d')](_0x123237,0x1),_0x123237--;const _0xf6e65c=_0x51e062[_0x24c8('0x18')](_0xe68233=>_0xe68233['name']==_0x4a7968);_0xf6e65c>-0x1&&_0x51e062[_0x24c8('0x3d')](_0xf6e65c,0x1);}}function _0x3a5a42(_0x68926e){const _0x40ff70=_0x68926e[_0x24c8('0x50')](':');return{'group':_0x40ff70[0x0],'type':_0x40ff70[0x1],'subType':_0x40ff70['length']>=0x5?_0x40ff70[0x2]:null,'id':_0x40ff70['length']<0x5?_0x40ff70[0x2]:_0x40ff70[0x3],'authorId':_0x40ff70[_0x24c8('0x2a')]<0x5?_0x40ff70[0x3]:_0x40ff70[0x4],'markerCount':0x6==_0x40ff70['length']?_0x40ff70[0x5]:null};}function _0x207dca(_0x4f4451){for(let _0x43467a=0x0;_0x43467a<_0x51e062['length'];_0x43467a++){if(_0x4f4451[_0x24c8('0xe9')]&&'insertion'==_0x51e062[_0x43467a][_0x24c8('0xbb')])return _0x4f4451[_0x24c8('0xf3')]=_0x51e062[_0x43467a],void delete _0x4f4451[_0x24c8('0xe9')];if(!_0x4f4451[_0x24c8('0xe9')]&&!_0x4f4451[_0x24c8('0x8a')]&&_0x24c8('0x84')==_0x51e062[_0x43467a][_0x24c8('0xbb')])return void(_0x4f4451['isRemoveSuggestion']=_0x51e062[_0x43467a]);}}}['_setDistance'](_0x5a5106,_0x147177){let _0x3acb34=0x0,_0xc1e207=!0x1;const _0x3c275d=new Map();for(const _0x17efbb of _0x5a5106)_0x17efbb[_0x147177]?_0xc1e207&&(_0x3acb34++,_0xc1e207=!0x1):(_0x3acb34++,_0xc1e207=!0x0),_0x3c275d[_0x24c8('0xa1')](_0x17efbb['id'],_0x3acb34);for(let _0x46d694=0x0;_0x46d694<_0x5a5106[_0x24c8('0x2a')];_0x46d694++){if('isRemoved'==_0x147177&&_0x5a5106[_0x46d694]['isAdded']||'isAdded'==_0x147177&&_0x5a5106[_0x46d694][_0x24c8('0x8a')])continue;if('text'==_0x5a5106[_0x46d694]['type']){_0x5a5106[_0x46d694][_0x24c8('0x9c')]=0x0;continue;}const _0x25bfd6=_0x3c275d[_0x24c8('0x79')](_0x5a5106[_0x46d694]['pairId']),_0x2adbb3=_0x3c275d['get'](_0x5a5106[_0x46d694]['id']);_0x5a5106[_0x46d694][_0x24c8('0x9c')]=_0x25bfd6-_0x2adbb3;}}[_0x24c8('0xac')](_0x44d2a0,_0x19a402,_0x4732d6=!0x1){const _0x1a3b5d=[];let _0x5f0c05=this['repository']['getIndex'](_0x44d2a0),_0x526906=this[_0x24c8('0xfd')][_0x24c8('0x66')](_0x19a402);for(-0x1==_0x526906&&(_0x526906=this[_0x24c8('0xfd')][_0x24c8('0x9a')][_0x24c8('0x2a')],_0x4732d6=!0x1);_0x5f0c05<_0x526906;)_0x1a3b5d[_0x24c8('0x115')](this[_0x24c8('0xfd')][_0x24c8('0xf6')](_0x5f0c05)),_0x5f0c05++;return _0x4732d6&&_0x1a3b5d[_0x24c8('0x115')](this[_0x24c8('0xfd')]['getRevision'](_0x5f0c05)),_0x1a3b5d;}[_0x24c8('0x11')](_0x3910a0,_0x1c2329,_0x55b648,_0x34a4f5){const _0x4143cf=this['editor']['model']['schema'];let _0x1dc5e5=_0x1c2329;for(;_0x3910a0[_0x1dc5e5]&&_0x3910a0[_0x1dc5e5]['isAdded'];)_0x1dc5e5++;let _0x462bf5=_0x34a4f5;for(;_0x55b648[_0x462bf5]&&_0x55b648[_0x462bf5][_0x24c8('0x8a')];)_0x462bf5++;_0x454b2c(_0x3910a0,_0x1c2329,_0x1dc5e5),_0x454b2c(_0x55b648,_0x34a4f5,_0x462bf5);const _0x4445b7=_0x55b648['slice'](_0x34a4f5,_0x462bf5)[_0x24c8('0x93')](_0x3910a0[_0x24c8('0x2f')](_0x1c2329,_0x1dc5e5));return _0x4445b7['sort']((_0x1c1069,_0x35a143)=>_0x1c1069[_0x24c8('0xd1')]!=_0x35a143[_0x24c8('0xd1')]?_0x1c1069['side']-_0x35a143[_0x24c8('0xd1')]:_0x1c1069[_0x24c8('0x7c')]!=_0x35a143[_0x24c8('0x7c')]?_0x1c1069[_0x24c8('0x7c')]-_0x35a143[_0x24c8('0x7c')]:_0x1c1069[_0x24c8('0x9c')]!=_0x35a143[_0x24c8('0x9c')]?_0x35a143[_0x24c8('0x9c')]-_0x1c1069['distance']:!!_0x1c1069[_0x24c8('0xe9')]!=!!_0x35a143[_0x24c8('0xe9')]?-0x1==_0x1c1069[_0x24c8('0xd1')]||0x0==_0x1c1069['side']?_0x1c1069[_0x24c8('0xe9')]?-0x1:0x1:_0x1c1069[_0x24c8('0xe9')]?0x1:-0x1:_0x1c1069['index']-_0x35a143['index']),{'commonTape':_0x4445b7,'iEnd':_0x1dc5e5,'jEnd':_0x462bf5};function _0x454b2c(_0x3e9b50,_0x34d59d,_0x1573fa){let _0x1ae256=-0x1,_0x5132d1=Number['POSITIVE_INFINITY'],_0x1d8592=!0x0;for(let _0x1610d3=_0x34d59d;_0x1610d3<_0x1573fa;_0x1610d3++)if(_0x4143cf[_0x24c8('0x65')](_0x3e9b50[_0x1610d3][_0x24c8('0x10a')])||(_0x1d8592=!0x1),_0x3e9b50[_0x1610d3][_0x24c8('0x10a')][_0x24c8('0xd5')]<_0x34d59d&&(_0x1ae256=_0x1610d3),_0x3e9b50[_0x1610d3][_0x24c8('0x10a')][_0x24c8('0x6f')]>=_0x1573fa){_0x5132d1=_0x1610d3;break;}_0x1d8592&&(_0x1ae256=_0x1573fa-0x1);for(let _0x28a51e=_0x34d59d;_0x28a51e<_0x1573fa;_0x28a51e++)_0x3e9b50[_0x28a51e][_0x24c8('0xd1')]=_0x28a51e<=_0x1ae256?-0x1:_0x28a51e<_0x5132d1?0x0:0x1,_0x3e9b50[_0x28a51e][_0x24c8('0x87')]=_0x28a51e;let _0x194915=0x0;for(let _0x2b2e8a=_0x34d59d;_0x2b2e8a<=_0x1ae256;_0x2b2e8a++)0x0==_0x3e9b50[_0x2b2e8a][_0x24c8('0x9c')]?_0x3e9b50[_0x2b2e8a][_0x24c8('0x7c')]=_0x194915:(_0x194915++,_0x3e9b50[_0x2b2e8a][_0x24c8('0x7c')]=_0x194915,_0x194915++);for(let _0x53d1dd=_0x34d59d;_0x53d1dd<_0x1573fa;_0x53d1dd++)0x0==_0x3e9b50[_0x53d1dd][_0x24c8('0xd1')]&&(_0x3e9b50[_0x53d1dd][_0x24c8('0x7c')]=_0x194915);_0x194915=0x0;for(let _0x4f77b1=_0x1573fa-0x1;_0x4f77b1>=_0x5132d1;_0x4f77b1--)0x0==_0x3e9b50[_0x4f77b1]['distance']?_0x3e9b50[_0x4f77b1][_0x24c8('0x7c')]=_0x194915:(_0x194915--,_0x3e9b50[_0x4f77b1][_0x24c8('0x7c')]=_0x194915,_0x194915--);}}['_fixObsoleteTags'](_0x8d5b14){const _0x297b3d=new Map(),_0x258845=this[_0x24c8('0x3b')][_0x24c8('0xbe')][_0x24c8('0x81')];for(let _0x54edc0=0x1;_0x54edc0<_0x8d5b14['length'];_0x54edc0++){let _0x3f6db0,_0x24e38e,_0xe2ba6c;const _0x4ffd3c=_0x8d5b14[_0x54edc0],_0x5b9243=_0x8d5b14[_0x54edc0-0x1];if(_0x24c8('0x11b')==_0x4ffd3c['type'])continue;if(_0x4ffd3c[_0x24c8('0xbb')]!=_0x5b9243['type'])continue;if(!_0x258845[_0x24c8('0xad')](_0x5b9243['item'])||_0x258845[_0x24c8('0xe0')](_0x5b9243['item']))continue;if(!_0x258845[_0x24c8('0xad')](_0x4ffd3c[_0x24c8('0x10a')])||_0x258845[_0x24c8('0xe0')](_0x4ffd3c[_0x24c8('0x10a')]))continue;if((_0x8d5b14[_0x54edc0][_0x24c8('0xe9')]||_0x8d5b14[_0x54edc0][_0x24c8('0xf3')])&&_0x8d5b14[_0x54edc0-0x1][_0x24c8('0x8a')])_0x3f6db0=_0x8d5b14[_0x54edc0],_0x24e38e=_0x8d5b14[_0x54edc0-0x1],_0xe2ba6c=_0x54edc0-0x1;else{if(!_0x8d5b14[_0x54edc0][_0x24c8('0x8a')]||!_0x8d5b14[_0x54edc0-0x1][_0x24c8('0xe9')]&&!_0x8d5b14[_0x54edc0-0x1][_0x24c8('0xf3')])continue;_0x3f6db0=_0x8d5b14[_0x54edc0-0x1],_0x24e38e=_0x8d5b14[_0x54edc0],_0xe2ba6c=_0x54edc0;}const _0x509265=_0x3f6db0[_0x24c8('0x7c')]==_0x24e38e[_0x24c8('0x7c')],_0x347ff8=Math[_0x24c8('0x9d')](_0x3f6db0[_0x24c8('0x7c')])<Math['abs'](_0x24e38e[_0x24c8('0x7c')])&&0x0==_0x24e38e['distance'];(_0x509265||_0x347ff8)&&(_0x297b3d[_0x24c8('0xa1')](_0x24e38e['id'],_0x3f6db0['id']),_0x8d5b14[_0x24c8('0x3d')](_0xe2ba6c,0x1),_0x54edc0--,_0x3f6db0['isAdded']=!0x1);}for(let _0x530aa3=0x0;_0x530aa3<_0x8d5b14[_0x24c8('0x2a')];_0x530aa3++)_0x297b3d[_0x24c8('0xd0')](_0x8d5b14[_0x530aa3][_0x24c8('0xda')])&&(_0x8d5b14[_0x530aa3][_0x24c8('0xda')]=_0x297b3d[_0x24c8('0x79')](_0x8d5b14[_0x530aa3][_0x24c8('0xda')]));}[_0x24c8('0x98')](_0x3d8fb7){const _0x4501bd=new Set(_0x3d8fb7[_0x24c8('0x4b')](_0x296387=>_0x296387['id']));for(let _0x33d275=0x0;_0x33d275<_0x3d8fb7[_0x24c8('0x2a')];_0x33d275++)_0x4501bd[_0x24c8('0xd0')](_0x3d8fb7[_0x33d275][_0x24c8('0xda')])||0x0==_0x3d8fb7[_0x33d275][_0x24c8('0x9c')]||(_0x3d8fb7[_0x33d275][_0x24c8('0x30')]=!0x0);return _0x3d8fb7[_0x24c8('0x62')](_0x34c561=>!_0x34c561[_0x24c8('0x30')]);}[_0x24c8('0xd')](_0x1c5a69){const _0x51d504=new Set();for(let _0x2c0865=0x0;_0x2c0865<_0x1c5a69[_0x24c8('0x2a')];_0x2c0865++){if(_0x51d504[_0x24c8('0xd0')](_0x1c5a69[_0x2c0865]['id'])&&_0x1c5a69[_0x2c0865]['isRemoved']&&(_0x1c5a69[_0x2c0865]['isIncorrect']=!0x0),_0x1c5a69[_0x2c0865][_0x24c8('0x30')])continue;if(0x0==_0x1c5a69[_0x2c0865][_0x24c8('0x9c')])continue;if('elementStart'!=_0x1c5a69[_0x2c0865][_0x24c8('0xbb')])continue;if(null==_0x1c5a69[_0x2c0865]['pairId'])continue;let _0xf6a492=_0x2c0865+0x1,_0x39ef86=0x0;for(;_0x1c5a69[_0xf6a492]['id']!=_0x1c5a69[_0x2c0865][_0x24c8('0xda')];)'elementStart'==_0x1c5a69[_0xf6a492][_0x24c8('0xbb')]?_0x39ef86++:'elementEnd'==_0x1c5a69[_0xf6a492]['type']&&_0x39ef86--,_0xf6a492++;if(0x0!=_0x39ef86){if(_0x1c5a69[_0x2c0865][_0x24c8('0x8a')])_0x1c5a69[_0x2c0865]['isIncorrect']=!0x0;else for(;_0xf6a492!=_0x2c0865;)_0x1c5a69[_0xf6a492][_0x24c8('0x8a')]&&0x0!=_0x1c5a69[_0xf6a492][_0x24c8('0x9c')]&&(_0x1c5a69[_0xf6a492][_0x24c8('0x30')]=!0x0,_0x51d504[_0x24c8('0xb1')](_0x1c5a69[_0xf6a492][_0x24c8('0xda')])),_0xf6a492--;}}return _0x1c5a69[_0x24c8('0x62')](_0x32e955=>!_0x32e955[_0x24c8('0x30')]);}[_0x24c8('0xa3')](_0x4ab35b){const _0x4d3f28=this['editor'][_0x24c8('0xbe')]['schema'];for(let _0x40ffe0=0x0;_0x40ffe0<_0x4ab35b[_0x24c8('0x2a')];_0x40ffe0++){if(!(_0x4ab35b[_0x40ffe0][_0x24c8('0xe9')]||_0x4ab35b[_0x40ffe0]['isAddSuggestion']||_0x4ab35b[_0x40ffe0][_0x24c8('0x8a')]||_0x4ab35b[_0x40ffe0][_0x24c8('0x8e')]))continue;if(0x0==_0x4ab35b[_0x40ffe0]['distance'])continue;const _0x52f7d4=_0x4ab35b[_0x40ffe0][_0x24c8('0x10a')];_0x4d3f28[_0x24c8('0xad')](_0x52f7d4)||_0x4d3f28[_0x24c8('0xe0')](_0x52f7d4)||(_0x4ab35b[_0x40ffe0][_0x24c8('0xe9')]&&delete _0x4ab35b[_0x40ffe0]['isAdded'],_0x4ab35b[_0x40ffe0]['isAddSuggestion']&&delete _0x4ab35b[_0x40ffe0][_0x24c8('0xf3')],_0x4ab35b[_0x40ffe0]['isRemoveSuggestion']&&delete _0x4ab35b[_0x40ffe0][_0x24c8('0x8e')],_0x4ab35b[_0x40ffe0][_0x24c8('0x8a')]&&(_0x4ab35b[_0x40ffe0][_0x24c8('0x30')]=!0x0));}return _0x4ab35b['filter'](_0x987cf1=>!_0x987cf1[_0x24c8('0x30')]);}[_0x24c8('0x107')](_0x362621,_0x1b1cc9,_0x2e87a4){const _0x16cbae=new _0x58e365(),_0x1d79ef=[],_0x1cf12f=new Map(),_0x3dd8d0=this[_0x24c8('0x3b')][_0x24c8('0xbe')],_0x269a4e=_0x3dd8d0[_0x24c8('0x81')],_0x1c00a7=[_0x16cbae],_0x55ac35={},_0x2967f8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x36efd2=null;const _0x2d7e83=[0x0];for(let _0x1c136f=0x0;_0x1c136f<_0x362621[_0x24c8('0x2a')];_0x1c136f++){let _0xc1f9dc,_0x567138;if(_0x24c8('0x2c')===_0x362621[_0x1c136f][_0x24c8('0xbb')]){_0xc1f9dc=_0x3dd8d0[_0x24c8('0x4')](_0x16cbae,_0x2d7e83);const _0x197b5f=new _0x50bbe0(_0x362621[_0x1c136f][_0x24c8('0x10a')][_0x24c8('0x2b')],_0x362621[_0x1c136f]['item'][_0x24c8('0x105')]());_0x1c00a7[0x0][_0x24c8('0x118')](_0x197b5f),_0x2d7e83['push'](0x0),_0x1c00a7['unshift'](_0x197b5f),_0x567138=_0x3dd8d0[_0x24c8('0x4')](_0x16cbae,_0x2d7e83),_0x36efd2=null;}else{if(_0x24c8('0xd7')===_0x362621[_0x1c136f][_0x24c8('0xbb')])_0x1c00a7[_0x24c8('0x85')](),_0xc1f9dc=_0x3dd8d0[_0x24c8('0x4')](_0x16cbae,_0x2d7e83),_0x2d7e83[_0x24c8('0x61')](),_0x2d7e83[_0x2d7e83[_0x24c8('0x2a')]-0x1]++,_0x567138=_0x3dd8d0[_0x24c8('0x4')](_0x16cbae,_0x2d7e83),_0x36efd2=null;else{if(_0xc1f9dc=_0x3dd8d0[_0x24c8('0x4')](_0x16cbae,_0x2d7e83),_0x36efd2&&_0x1e055f(_0x36efd2,_0x362621[_0x1c136f][_0x24c8('0x10a')]))_0x36efd2[_0x24c8('0xe5')]+=_0x362621[_0x1c136f][_0x24c8('0x10a')]['data'];else{const _0x44b763=new _0x42350c(_0x362621[_0x1c136f]['item'][_0x24c8('0xbf')],_0x362621[_0x1c136f][_0x24c8('0x10a')][_0x24c8('0x105')]());_0x1c00a7[0x0][_0x24c8('0x118')](_0x44b763),_0x36efd2=_0x44b763;}_0x2d7e83[_0x2d7e83[_0x24c8('0x2a')]-0x1]+=_0x362621[_0x1c136f]['item']['offsetSize'],_0x567138=_0x3dd8d0[_0x24c8('0x4')](_0x16cbae,_0x2d7e83);}}for(const _0x23849b of _0x362621[_0x1c136f][_0x24c8('0x52')])_0x1cf12f[_0x24c8('0xa1')](_0x23849b,{'start':_0xc1f9dc,'end':null});_0x32a7b7(_0x24c8('0x8e'),_0x1c136f,_0xc1f9dc,_0x567138),_0x32a7b7('isAddSuggestion',_0x1c136f,_0xc1f9dc,_0x567138),_0x32a7b7('isRemoved',_0x1c136f,_0xc1f9dc,_0x567138),_0x32a7b7('isAdded',_0x1c136f,_0xc1f9dc,_0x567138);for(const _0x137e56 of _0x362621[_0x1c136f]['markersEnd']){_0x1cf12f[_0x24c8('0x79')](_0x137e56)[_0x24c8('0x36')]=_0x567138;}}for(const [_0x165e04,_0xd0dc22]of _0x1cf12f){const _0x2b1cd9=this[_0x24c8('0x3b')]['model'][_0x24c8('0xa')](_0xd0dc22[_0x24c8('0x14')],_0xd0dc22['end']);_0x16cbae[_0x24c8('0x63')][_0x24c8('0xa1')](_0x165e04,_0x2b1cd9);}return _0x1d79ef[_0x24c8('0xb5')]((_0x584092,_0x3ddaa5)=>{const _0xa47b65=_0x16cbae[_0x24c8('0x63')][_0x24c8('0x79')](_0x24c8('0xf8')+_0x584092['id']),_0x63cd0a=_0x16cbae['markers'][_0x24c8('0x79')](_0x24c8('0xf8')+_0x3ddaa5['id']);return _0xa47b65[_0x24c8('0x14')]['isBefore'](_0x63cd0a[_0x24c8('0x14')])?-0x1:_0xa47b65[_0x24c8('0x14')][_0x24c8('0x104')](_0x63cd0a['start'])?0x1:_0xa47b65['end'][_0x24c8('0xf4')](_0x63cd0a['end'])?-0x1:_0xa47b65[_0x24c8('0x36')][_0x24c8('0x104')](_0x63cd0a[_0x24c8('0x36')])?0x1:'add'===_0x584092['type']?-0x1:0x1;}),{'root':_0x16cbae,'changes':_0x1d79ef};function _0x32a7b7(_0x12367b,_0x3da669,_0x28aa57,_0xa10816){const _0x5cd3d3=!!_0x362621[_0x3da669][_0x12367b],_0x4beda1=_0x5cd3d3?_0x362621[_0x3da669][_0x12367b][_0x24c8('0x10c')]:null,_0x5ecbf0=_0x3da669===_0x362621[_0x24c8('0x2a')]-0x1,_0x2f4d62=_0x2967f8[_0x12367b][0x0],_0x16d7d6=_0x269a4e['isObject'](_0x362621[_0x3da669][_0x24c8('0x10a')]);!_0x55ac35[_0x12367b]&&_0x5cd3d3?_0x55ac35[_0x12367b]={'start':_0x28aa57,'tapeItem':_0x362621[_0x3da669],'userId':_0x4beda1,'type':_0x12367b}:_0x55ac35[_0x12367b]&&!_0x5cd3d3?(_0x55ac35[_0x12367b][_0x24c8('0x36')]=_0x28aa57,_0x2e5f35(_0x55ac35[_0x12367b]),_0x55ac35[_0x12367b]=null):_0x55ac35[_0x12367b]&&_0x5cd3d3&&_0x55ac35[_0x12367b][_0x24c8('0x10c')]!==_0x4beda1&&(_0x55ac35[_0x12367b][_0x24c8('0x36')]=_0x28aa57,_0x2f4d62&&_0x2f4d62[_0x24c8('0x10c')]===_0x55ac35[_0x12367b][_0x24c8('0x10c')]||_0x2e5f35(_0x55ac35[_0x12367b]),_0x55ac35[_0x12367b]={'start':_0x28aa57,'tapeItem':_0x362621[_0x3da669],'userId':_0x4beda1,'type':_0x12367b}),_0x55ac35[_0x12367b]&&_0x16d7d6&&(_0x24c8('0x2c')!==_0x362621[_0x3da669][_0x24c8('0xbb')]||_0x2f4d62&&_0x2f4d62[_0x24c8('0x10c')]===_0x4beda1||_0x2967f8[_0x12367b][_0x24c8('0x45')]({'userId':_0x4beda1,'object':_0x362621[_0x3da669][_0x24c8('0x10a')],'change':_0x55ac35[_0x12367b]}),'elementEnd'===_0x362621[_0x3da669][_0x24c8('0xbb')]&&_0x2f4d62&&_0x2f4d62[_0x24c8('0x1e')]===_0x362621[_0x3da669][_0x24c8('0x10a')]&&(_0x2967f8[_0x12367b]['shift'](),_0x55ac35[_0x12367b]=_0x2f4d62[_0x24c8('0x78')])),_0x55ac35[_0x12367b]&&_0x5ecbf0&&(_0x55ac35[_0x12367b][_0x24c8('0x36')]=_0xa10816,_0x2e5f35(_0x55ac35[_0x12367b]),_0x55ac35[_0x12367b]=null);}function _0x2e5f35({start:_0x2041e9,end:_0x5d6d6f,tapeItem:_0x3cf1b8,userId:_0x5ad2fe,type:_0x47fc08}){const _0x46062f=_0x3cf1b8[_0x24c8('0x10a')],_0x54ce84=_0x3dd8d0[_0x24c8('0x81')]['isBlock'](_0x46062f)&&!_0x3dd8d0[_0x24c8('0x81')]['isLimit'](_0x46062f),_0x19a6c6=_0x2041e9['nodeAfter']==_0x5d6d6f[_0x24c8('0xaa')]&&_0x5d6d6f[_0x24c8('0x5e')];if(_0x54ce84&&_0x19a6c6)return;const _0x511053=_0x3dd8d0[_0x24c8('0xa')](_0x2041e9,_0x5d6d6f),_0x3b02e4=_0x1b1cc9[_0x24c8('0x79')](_0x5ad2fe),_0x375d8f=new _0x4fbbb1({'author':_0x3b02e4,'type':'isAdded'==_0x47fc08||_0x24c8('0xf3')==_0x47fc08?_0x24c8('0xb1'):'remove','data':{'isSuggestion':_0x24c8('0xf3')==_0x47fc08||_0x24c8('0x8e')==_0x47fc08},'createdAt':new Date(),'rootName':_0x2e87a4});_0x1d79ef['push'](_0x375d8f),_0x16cbae[_0x24c8('0x63')][_0x24c8('0xa1')](_0x24c8('0xf8')+_0x375d8f['id'],_0x511053);}function _0x1e055f(_0x488871,_0x58218d){const _0x5ea951=_0x488871[_0x24c8('0x105')](),_0x14309a=_0x58218d[_0x24c8('0x105')]();for(const _0x2b342a of _0x5ea951){if(_0x2b342a[0x1]!==_0x58218d['getAttribute'](_0x2b342a[0x0]))return!0x1;_0x14309a[_0x24c8('0x28')]();}return _0x14309a['next']()[_0x24c8('0x122')];}}[_0x24c8('0x43')](){this[_0x24c8('0x3b')]['conversion'][_0x24c8('0x72')](_0x24c8('0x86'))[_0x24c8('0xc0')]({'view':_0x24c8('0xff')}),this[_0x24c8('0x3b')]['conversion'][_0x24c8('0x72')](_0x24c8('0xc5'))[_0x24c8('0x10')]({'model':_0x24c8('0xff'),'view':_0x544ece=>{const _0x3bb1a1=_0x544ece[_0x24c8('0x102')][_0x24c8('0x50')](':')[0x1],_0x546e27=this[_0x24c8('0xeb')](_0x3bb1a1);if(!_0x546e27)return null;const _0x4b0a2f=_0x24c8('0xb1')==_0x546e27[_0x24c8('0xbb')]?_0x24c8('0xb8'):_0x24c8('0x84'),_0x61163a=[_0x24c8('0xe3'),'ck-suggestion-marker-'+_0x4b0a2f];return _0x546e27[_0x24c8('0xbf')][_0x24c8('0xcb')]&&_0x61163a[_0x24c8('0x115')](_0x24c8('0x108')+_0x4b0a2f+_0x24c8('0x4e')),this[_0x24c8('0x106')]==_0x546e27&&_0x61163a[_0x24c8('0x115')](_0x24c8('0x41')),{'classes':_0x61163a,'attributes':{'data-change-id':_0x3bb1a1}};}}),this[_0x24c8('0x3b')][_0x24c8('0x5c')]['for']('upcast')[_0x24c8('0xb1')](_0x25af04=>{_0x25af04['on'](_0x24c8('0xc8'),(_0x3a1294,_0x20b020,_0x63fa27)=>{const _0xcca781=_0x20b020[_0x24c8('0x73')]['getChild'](0x0);if(!_0xcca781||!_0xcca781['is'](_0x24c8('0xa7'),_0x24c8('0xca')))return;if(!_0x63fa27[_0x24c8('0x57')]['consume'](_0xcca781,{'attributes':[_0x24c8('0x89'),'vid_end']}))return;const _0x489e34=_0x20b020[_0x24c8('0xc3')][_0x24c8('0x14')][_0x24c8('0xa0')];_0x63fa27[_0x24c8('0x34')][_0x24c8('0xd2')]('vid_start',_0xcca781[_0x24c8('0x1')](_0x24c8('0x89')),_0x489e34),_0x63fa27[_0x24c8('0x34')][_0x24c8('0xd2')]('vid_end',_0xcca781[_0x24c8('0x1')](_0x24c8('0x40')),_0x489e34);},{'priority':'low'});}),this[_0x24c8('0x3b')][_0x24c8('0x5c')][_0x24c8('0x72')](_0x24c8('0x86'))['add'](_0x437bec=>{_0x437bec['on'](_0x24c8('0xa7'),(_0x1412f6,_0x38b8bb,_0x42fcde)=>{if(!_0x42fcde[_0x24c8('0x57')][_0x24c8('0x38')](_0x38b8bb['viewItem'],{'attributes':[_0x24c8('0x89'),_0x24c8('0x40')]}))return;if(_0x38b8bb[_0x24c8('0xc3')][_0x24c8('0x31')])return;const _0x43056f=_0x38b8bb[_0x24c8('0xc3')][_0x24c8('0x14')][_0x24c8('0xa0')];_0x43056f[_0x24c8('0xde')]('vid_start')||_0x43056f[_0x24c8('0xde')](_0x24c8('0xdc'))||(_0x42fcde[_0x24c8('0x34')]['setAttribute'](_0x24c8('0x89'),_0x38b8bb['viewItem']['getAttribute'](_0x24c8('0x89')),_0x43056f),_0x42fcde[_0x24c8('0x34')][_0x24c8('0xd2')](_0x24c8('0x40'),_0x38b8bb[_0x24c8('0x73')]['getAttribute']('vid_end'),_0x43056f));},{'priority':_0x24c8('0xd6')});}),this[_0x24c8('0x3b')][_0x24c8('0x5c')][_0x24c8('0x72')](_0x24c8('0x86'))[_0x24c8('0xb0')]({'view':{'name':_0x24c8('0xa8'),'attributes':{'vid':!0x0}},'model':{'key':_0x24c8('0xdc'),'value':_0x3d432f=>_0x3d432f[_0x24c8('0x1')](_0x24c8('0xdc'))}}),this[_0x24c8('0x3b')][_0x24c8('0xbe')][_0x24c8('0x81')]['on']('checkAttribute',(_0xe55f9a,[,_0x25ac76])=>{[_0x24c8('0x89'),_0x24c8('0x40'),_0x24c8('0xdc')][_0x24c8('0x10f')](_0x25ac76)&&(_0xe55f9a[_0x24c8('0x8d')]=!0x0,_0xe55f9a[_0x24c8('0x4d')]());},{'priority':_0x24c8('0xa9')}),this[_0x24c8('0x3b')][_0x24c8('0x5c')][_0x24c8('0x72')]('dataDowncast')['add'](_0x53cfb2=>{_0x53cfb2['on'](_0x24c8('0xe6'),(_0x5e998d,_0x637c18,_0x398079)=>{if('\x20'!=_0x637c18['item']['data']||_0x637c18[_0x24c8('0x10a')][_0x24c8('0xaa')]['maxOffset']>0x1)return;if(!_0x398079[_0x24c8('0x57')][_0x24c8('0x38')](_0x637c18[_0x24c8('0x10a')],_0x5e998d[_0x24c8('0x2b')]))return;const _0x5517ed=_0x398079[_0x24c8('0x34')],_0x111363=_0x398079['mapper'][_0x24c8('0x75')](_0x637c18[_0x24c8('0x76')]);_0x5517ed[_0x24c8('0x8b')](_0x111363,_0x5517ed['createAttributeElement']('span'));});}),this[_0x24c8('0x3b')][_0x24c8('0x5c')]['for'](_0x24c8('0xab'))['markerToData']({'model':'revision'}),this['editor']['editing'][_0x24c8('0x8')]['on']('addMarker:revision',function(_0x32ca2f){const _0x3b735c=_0x32ca2f[_0x24c8('0x46')][_0x24c8('0x79')]('RevisionViewer');return(_0x534ecf,_0x50b343,_0x3bd2f4)=>{const _0x4a89c2=_0x50b343['markerName'][_0x24c8('0x50')](':')[0x1],_0x17252c=_0x3b735c[_0x24c8('0xeb')](_0x4a89c2);if(!_0x17252c)return null;const _0x453279=_0x24c8('0xb1')==_0x17252c['type']?_0x24c8('0x50'):_0x24c8('0x7');if(!_0x3bd2f4[_0x24c8('0x57')]['test'](_0x50b343[_0x24c8('0x16')],_0x534ecf[_0x24c8('0x2b')]))return;const _0x484e0b=_0x50b343[_0x24c8('0x16')][_0x24c8('0x109')](),_0x31d487=_0x50b343[_0x24c8('0x16')]['start'],_0x437a17=_0x32ca2f[_0x24c8('0xbe')][_0x24c8('0x81')];let _0xca6752=null,_0x435ed1=null,_0x26735d=!0x1,_0x2b0106=!0x1;for(const _0x5da2dc of _0x484e0b){const _0x387c3d=_0x5da2dc[_0x24c8('0x10a')];_0x26735d=_0x26735d||_0x437a17['isContent'](_0x387c3d);const _0x42ef93=_0x3bd2f4['mapper'][_0x24c8('0x119')](_0x387c3d);if(_0x42ef93&&_0x42ef93['getCustomProperty'](_0x24c8('0x9b')))return;_0x24c8('0xd7')==_0x5da2dc['type']&&(_0x437a17[_0x24c8('0xad')](_0x387c3d)&&!_0x437a17[_0x24c8('0xe0')](_0x387c3d)&&(_0x387c3d[_0x24c8('0xb7')]||_0x31d487[_0x24c8('0xe')]?_0xca6752&&_0xca6752['parent']==_0x387c3d||(_0xca6752=_0x387c3d,_0xb59943(_0x5da2dc[_0x24c8('0xd8')]),_0x2b0106=!0x0):_0x435ed1=_0x435ed1||_0x5da2dc[_0x24c8('0xd8')]));}function _0xb59943(_0x23d6b5){const _0x13e216=_0x3bd2f4[_0x24c8('0x34')]['createUIElement']('span',{'class':_0x24c8('0x108')+_0x453279}),_0x303045=_0x3bd2f4[_0x24c8('0xe2')][_0x24c8('0x95')](_0x23d6b5);_0x17252c['data'][_0x24c8('0xcb')]&&_0x3bd2f4['writer'][_0x24c8('0xfe')](_0x24c8('0x108')+_0x453279+'-new',_0x13e216),_0x3b735c[_0x24c8('0x106')]==_0x17252c&&_0x3bd2f4['writer'][_0x24c8('0xfe')]('ck-suggestion-marker--active',_0x13e216),_0x3bd2f4['writer']['insert'](_0x303045,_0x13e216),_0x3bd2f4[_0x24c8('0xe2')][_0x24c8('0x7e')](_0x13e216,_0x50b343[_0x24c8('0x102')]);}_0x26735d||_0x2b0106||!_0x435ed1||_0xb59943(_0x435ed1);};}(this[_0x24c8('0x3b')]),{'priority':_0x24c8('0x125')}),this[_0x24c8('0x3b')][_0x24c8('0x5b')][_0x24c8('0x8')]['on'](_0x24c8('0x5d'),(_0x3d8e0a,_0x57253e,_0xaf8910)=>{const _0x4e81af=_0xaf8910[_0x24c8('0xe2')]['markerNameToElements'](_0x57253e[_0x24c8('0x102')]);if(_0x4e81af)for(const _0x34be79 of _0x4e81af)(_0x34be79[_0x24c8('0xcf')](_0x24c8('0xcc'))||_0x34be79[_0x24c8('0xcf')](_0x24c8('0xf')))&&(_0xaf8910[_0x24c8('0xe2')][_0x24c8('0x24')](_0x34be79,_0x57253e[_0x24c8('0x102')]),_0xaf8910['writer'][_0x24c8('0xf5')](_0x34be79));},{'priority':_0x24c8('0x125')}),this['editor'][_0x24c8('0x5b')][_0x24c8('0x8')]['on'](_0x24c8('0x23'),(_0x5a2e12,_0x1649b3,_0x25ba23)=>{const _0x113a10=_0x1649b3[_0x24c8('0x102')]['split'](':')[0x1],_0x3be971=this[_0x24c8('0xeb')](_0x113a10);if(!_0x3be971)return null;const _0x3d0ea1=_0x24c8('0xb1')==_0x3be971['type']?_0x24c8('0x50'):_0x24c8('0x7');if(_0x25ba23['consumable'][_0x24c8('0x3e')](_0x1649b3[_0x24c8('0x16')],_0x5a2e12[_0x24c8('0x2b')]))for(const _0x2793f8 of _0x1649b3['markerRange'][_0x24c8('0x116')]()){if(!_0x2793f8['is']('element','softBreak'))continue;const _0x5e30d=_0x25ba23[_0x24c8('0x34')][_0x24c8('0x68')]('span',{'class':'ck-suggestion-marker-'+_0x3d0ea1}),_0x2d1182=_0x25ba23[_0x24c8('0xe2')][_0x24c8('0x95')](this[_0x24c8('0x3b')]['model'][_0x24c8('0x55')](_0x2793f8));_0x3be971[_0x24c8('0xbf')]['isSuggestion']&&_0x25ba23[_0x24c8('0x34')]['addClass']('ck-suggestion-marker-'+_0x3d0ea1+_0x24c8('0x4e'),_0x5e30d),this['activeChange']==_0x3be971&&_0x25ba23[_0x24c8('0x34')][_0x24c8('0xfe')]('ck-suggestion-marker--active',_0x5e30d),_0x25ba23[_0x24c8('0x34')][_0x24c8('0x97')](_0x2d1182,_0x5e30d),_0x25ba23[_0x24c8('0xe2')][_0x24c8('0x7e')](_0x5e30d,_0x1649b3[_0x24c8('0x102')]);}},{'priority':_0x24c8('0x125')}),this['editor'][_0x24c8('0xbe')][_0x24c8('0xed')]['on'](_0x24c8('0x78'),()=>{this[_0x24c8('0x3b')]['editing'][_0x24c8('0x48')]['change'](_0x269331=>{for(const _0x359c62 of this['editor'][_0x24c8('0xbe')][_0x24c8('0xed')]['getRootNames']()){const _0x575d5f=this[_0x24c8('0x3b')][_0x24c8('0xbe')][_0x24c8('0xed')][_0x24c8('0x3c')](_0x359c62),_0x1f44d2=this[_0x24c8('0x3b')][_0x24c8('0x5b')][_0x24c8('0x48')][_0x24c8('0xed')][_0x24c8('0x3c')](_0x359c62);if(_0x1f44d2){const _0x22cbdf=_0x575d5f['getAttribute']('revisionHistoryAttachChange');if(_0x269331['removeAttribute'](_0x24c8('0x19'),_0x1f44d2),_0x269331[_0x24c8('0x3')](_0x24c8('0xd9'),_0x1f44d2),_0x269331[_0x24c8('0x3')]('ck-revision-history-root-remove',_0x1f44d2),_0x269331[_0x24c8('0x3')]('ck-revision-history-root--active',_0x1f44d2),_0x22cbdf){const _0x2bd96b=this['_getChangeFromId'](_0x22cbdf);if(!_0x2bd96b)return null;_0x269331[_0x24c8('0xd2')](_0x24c8('0x19'),_0x22cbdf,_0x1f44d2),_0x269331[_0x24c8('0xfe')](_0x24c8('0xf9')+_0x2bd96b[_0x24c8('0xbb')],_0x1f44d2),this[_0x24c8('0x106')]==_0x2bd96b&&_0x269331[_0x24c8('0xfe')](_0x24c8('0x64'),_0x1f44d2);}}}});}),this[_0x24c8('0x3b')]['conversion'][_0x24c8('0x72')](_0x24c8('0x86'))[_0x24c8('0xc0')]({'view':'comment','model':_0x5af1c0=>'revision-comment:'+_0x5af1c0,'converterPriority':_0x24c8('0xa9')}),this[_0x24c8('0x3b')]['conversion'][_0x24c8('0x72')](_0x24c8('0x86'))[_0x24c8('0xc0')]({'view':_0x24c8('0x7b'),'model':_0x41733d=>_0x24c8('0x15')+_0x41733d,'converterPriority':'highest'}),this[_0x24c8('0x3b')][_0x24c8('0x5c')][_0x24c8('0x72')](_0x24c8('0xab'))[_0x24c8('0xfc')]({'model':_0x24c8('0x7d'),'view':_0x2fd261=>({'name':_0x24c8('0xe4')+_0x2fd261,'group':_0x24c8('0x7d')}),'converterPriority':_0x24c8('0xa9')}),this['editor'][_0x24c8('0x5c')][_0x24c8('0x72')](_0x24c8('0xc5'))[_0x24c8('0x10')]({'model':_0x24c8('0x7d'),'view':_0x44e3a4=>{const _0x59772d=_0x44e3a4[_0x24c8('0x102')][_0x24c8('0x50')](':')[0x1];return _0x24c8('0xb8')!=_0x59772d&&_0x24c8('0x84')!=_0x59772d?null:{'classes':[_0x24c8('0x126'),'ck-suggestion-preview-marker-'+_0x59772d]};}}),this[_0x24c8('0x3b')][_0x24c8('0x5b')][_0x24c8('0x8')]['on'](_0x24c8('0x71'),et(this[_0x24c8('0x3b')],_0x24c8('0x7')),{'priority':'high'}),this[_0x24c8('0x3b')][_0x24c8('0x5b')][_0x24c8('0x8')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x24c8('0x3b')],_0x24c8('0x50')),{'priority':_0x24c8('0x125')}),this[_0x24c8('0x3b')][_0x24c8('0x5b')]['downcastDispatcher']['on'](_0x24c8('0x1a'),(_0x2c34dc,_0x4f3be0,_0xafae81)=>{const _0x33638a=_0xafae81['mapper']['markerNameToElements'](_0x4f3be0[_0x24c8('0x102')]);if(_0x33638a)for(const _0x48bc9a of _0x33638a)_0x48bc9a['is'](_0x24c8('0xa5'))&&(_0xafae81[_0x24c8('0xe2')][_0x24c8('0x24')](_0x48bc9a,_0x4f3be0[_0x24c8('0x102')]),_0xafae81[_0x24c8('0x34')]['remove'](_0x48bc9a));},{'priority':_0x24c8('0x125')});}['_getChangeFromId'](_0xafbc47){return this['_changeIdToChange']['get'](_0xafbc47);}[_0x24c8('0xc7')](_0x5c0726){return this['_changeView']&&this[_0x24c8('0xd3')][_0x24c8('0x39')](),this[_0x24c8('0xd3')]=new _0xaa1223(this['editor'][_0x24c8('0x32')],_0x5c0726),this[_0x24c8('0xd3')];}['_initInteractions'](){this['editor'][_0x24c8('0xbe')][_0x24c8('0xed')][_0x24c8('0x6b')][_0x24c8('0x35')](_0x24c8('0xff')),this['on'](_0x24c8('0xf2'),(_0x233773,_0x3b5c9e,_0x3933df,_0x3e8ff7)=>{_0x3e8ff7&&this['_balloon']['remove'](_0x3e8ff7),_0x3933df&&(this[_0x24c8('0x58')][_0x24c8('0xb1')]({'view':_0x3933df,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x363f47=this[_0x24c8('0x3b')][_0x24c8('0x5b')],_0x47dc38=this['_getChangeFromId'](_0x3933df[_0x24c8('0x20')]);let _0x4c25d8;if(_0x47dc38[_0x24c8('0xbf')]['isOnRoot']){const _0x422a6f=_0x363f47[_0x24c8('0x48')]['getDomRoot'](_0x47dc38[_0x24c8('0xfb')]);_0x4c25d8=Array[_0x24c8('0x8f')](_0x422a6f['getClientRects']());}else{const _0x411272=this[_0x24c8('0x3b')][_0x24c8('0xbe')]['markers']['get'](_0x24c8('0xf8')+_0x3933df[_0x24c8('0x20')]);_0x4c25d8=Array[_0x24c8('0x8f')](_0x363f47[_0x24c8('0xe2')][_0x24c8('0x5f')](_0x411272['name']))[_0x24c8('0x4b')](_0x12eea6=>_0x363f47['view'][_0x24c8('0xa4')][_0x24c8('0xf0')](_0x12eea6))[_0x24c8('0x4b')](_0xd7d013=>Array[_0x24c8('0x8f')](_0xd7d013[_0x24c8('0xce')]()))[_0x24c8('0x120')]();}if(!this['_activeViewTarget'])return _0x4c25d8[0x0];return _0x4c25d8[_0x24c8('0xbc')](_0x351192=>_0x351192['top']-0x3<=this[_0x24c8('0x110')]['y']&&_0x351192[_0x24c8('0x4f')]+0x3>=this['_activeViewTarget']['y']&&_0x351192[_0x24c8('0xdd')]-0x3<=this['_activeViewTarget']['x']&&_0x351192[_0x24c8('0x0')]+0x3>=this[_0x24c8('0x110')]['x'])||_0x4c25d8[0x0];}}}),this[_0x24c8('0x58')][_0x24c8('0xe1')](_0x24c8('0x54')));}),this['on'](_0x24c8('0x29'),(_0xfcac25,_0x2189f9,_0x74b654,_0x45cd8f)=>{this['activeView']=_0x74b654?this['_getViewForChange'](_0x74b654):null,this['editor'][_0x24c8('0xbe')][_0x24c8('0x78')](()=>{const _0x2f8078=this[_0x24c8('0x3b')][_0x24c8('0x5b')];_0x45cd8f&&(_0x45cd8f[_0x24c8('0xbf')]['isOnRoot']?_0x2f8078[_0x24c8('0x48')][_0x24c8('0x78')](_0x267d36=>{_0x267d36['removeClass'](_0x24c8('0x64'),_0x2f8078[_0x24c8('0x48')][_0x24c8('0xed')][_0x24c8('0x3c')](_0x45cd8f[_0x24c8('0xfb')]));}):_0x2f8078[_0x24c8('0x10d')](_0x24c8('0xf8')+_0x45cd8f['id'])),_0x74b654&&(_0x74b654[_0x24c8('0xbf')][_0x24c8('0x7a')]?_0x2f8078[_0x24c8('0x48')][_0x24c8('0x78')](_0x548c1b=>{_0x548c1b['addClass'](_0x24c8('0x64'),_0x2f8078['view'][_0x24c8('0xed')][_0x24c8('0x3c')](_0x74b654[_0x24c8('0xfb')]));}):_0x2f8078['reconvertMarker'](_0x24c8('0xf8')+_0x74b654['id']));});}),this['listenTo'](this[_0x24c8('0x3b')][_0x24c8('0x5b')][_0x24c8('0x48')][_0x24c8('0xed')],_0x24c8('0x9e'),(_0x4d3bdb,_0x3b0b56)=>{if(this['activeChange'])return;const _0x255768=this[_0x24c8('0x67')](_0x3b0b56['target']),_0x403516=this[_0x24c8('0x13')][_0x24c8('0x79')](_0x255768);_0x403516?(this[_0x24c8('0x110')]={'x':_0x3b0b56['domEvent']['x'],'y':_0x3b0b56[_0x24c8('0x112')]['y']},this[_0x24c8('0x103')]=this[_0x24c8('0xc7')](_0x403516)):(this[_0x24c8('0x110')]=null,this['activeView']=null);}),this[_0x24c8('0xc1')](this[_0x24c8('0x3b')][_0x24c8('0x5b')][_0x24c8('0x48')][_0x24c8('0xed')],_0x24c8('0x74'),(_0x2a9a5d,_0x5d8c0d)=>{const _0x3b62ef=this['_findChangeIdFromDomTarget'](_0x5d8c0d[_0x24c8('0xef')]),_0x52c53b=this[_0x24c8('0x13')]['get'](_0x3b62ef);_0x52c53b?(this[_0x24c8('0x110')]={'x':_0x5d8c0d[_0x24c8('0x112')]['x'],'y':_0x5d8c0d[_0x24c8('0x112')]['y']},_0x52c53b===this[_0x24c8('0x106')]?this['_balloon'][_0x24c8('0x53')]():this[_0x24c8('0x106')]=_0x52c53b):(this[_0x24c8('0x110')]=null,this[_0x24c8('0x106')]=null);});}[_0x24c8('0x67')](_0x13acf9){do{const _0x49d16d=_0x13acf9[_0x24c8('0x1')](_0x24c8('0x19'));if(_0x49d16d)return _0x49d16d;_0x13acf9=_0x13acf9['parent'];}while(_0x13acf9);return null;}[_0x24c8('0x100')](){this[_0x24c8('0x3b')][_0x24c8('0xbe')][_0x24c8('0x78')](_0x332ae4=>{for(const _0x2ad0e7 of this['editor'][_0x24c8('0xbe')][_0x24c8('0x63')])_0x332ae4[_0x24c8('0xf7')](_0x2ad0e7);});}}function et(_0x27f161,_0xa2d94c){return(_0x187218,_0x110111,_0x4cc185)=>{if(!_0x4cc185['consumable'][_0x24c8('0x3e')](_0x110111[_0x24c8('0x16')],_0x187218[_0x24c8('0x2b')]))return;const _0x37565f=_0x110111[_0x24c8('0x16')][_0x24c8('0x109')](),_0x363925=_0x110111['markerRange']['start'],_0x1f4d14=_0x27f161['model'][_0x24c8('0x81')];let _0x59ae45=null,_0x5c8470=null,_0xb823af=!0x1,_0x1e0e73=!0x1;for(const _0x5ca3a8 of _0x37565f){const _0x3601b5=_0x5ca3a8[_0x24c8('0x10a')];_0xb823af=_0xb823af||_0x1f4d14[_0x24c8('0x2d')](_0x3601b5);const _0x38ad79=_0x4cc185[_0x24c8('0xe2')][_0x24c8('0x119')](_0x3601b5);if(_0x38ad79&&_0x38ad79[_0x24c8('0xa6')](_0x24c8('0x9b')))return;_0x24c8('0xd7')==_0x5ca3a8[_0x24c8('0xbb')]&&(_0x1f4d14[_0x24c8('0xad')](_0x3601b5)&&!_0x1f4d14[_0x24c8('0xe0')](_0x3601b5)&&(_0x3601b5['nextSibling']||_0x363925[_0x24c8('0xe')]?_0x59ae45&&_0x59ae45[_0x24c8('0xaa')]==_0x3601b5||(_0x59ae45=_0x3601b5,_0x6368d0(_0x5ca3a8[_0x24c8('0xd8')]),_0x1e0e73=!0x0):_0x5c8470=_0x5c8470||_0x5ca3a8['previousPosition']));}function _0x6368d0(_0x7dd976){const _0x25fafb=_0x4cc185[_0x24c8('0xe2')][_0x24c8('0x95')](_0x7dd976),_0x2bead2=_0x4cc185[_0x24c8('0x34')][_0x24c8('0x68')]('span',{'class':_0x24c8('0x1d')+_0xa2d94c});_0x4cc185['writer'][_0x24c8('0x97')](_0x25fafb,_0x2bead2),_0x4cc185[_0x24c8('0xe2')][_0x24c8('0x7e')](_0x2bead2,_0x110111[_0x24c8('0x102')]);}_0xb823af||_0x1e0e73||!_0x5c8470||_0x6368d0(_0x5c8470);};}export class RestoreRevisionCommand extends _0x5d268c{constructor(_0x3e192c){super(_0x3e192c);const _0x2e9e09=_0x3e192c[_0x24c8('0x46')][_0x24c8('0x79')](d);this[_0x24c8('0x101')]=!0x1,this[_0x24c8('0xc1')](_0x2e9e09,_0x24c8('0x5a'),()=>this[_0x24c8('0x4c')]()),this['listenTo'](_0x2e9e09,_0x24c8('0xc4'),()=>this['refresh']());}[_0x24c8('0x27')](){const _0x4af6a1=this[_0x24c8('0x3b')],_0x35238d=_0x4af6a1[_0x24c8('0x46')]['get'](d),_0x470d1c=_0x35238d[_0x24c8('0x56')]?_0x35238d[_0x24c8('0x94')][_0x24c8('0xc')]:null;_0x4af6a1[_0x24c8('0x25')][_0x24c8('0x79')]('revisionHistory')[_0x24c8('0xb3')](_0x470d1c);}[_0x24c8('0x4c')](){const {isReady:_0x125f92,isEnabled:_0x45943d}=this[_0x24c8('0x3b')]['plugins'][_0x24c8('0x79')](d);this[_0x24c8('0xea')]=_0x125f92&&_0x45943d;}}export class ShowChangeCommand extends _0x5d268c{constructor(_0x3b9b03,{direction:_0x51472e}){super(_0x3b9b03);const _0x50d71e=_0x3b9b03[_0x24c8('0x46')]['get'](d);this[_0x24c8('0x101')]=!0x1,this[_0x24c8('0x8c')]=_0x24c8('0x4a')===_0x51472e?0x1:-0x1,this['listenTo'](_0x50d71e,_0x24c8('0x5a'),()=>this[_0x24c8('0x4c')]()),this[_0x24c8('0xc1')](_0x50d71e,_0x24c8('0xc4'),()=>this['refresh']()),this[_0x24c8('0xc1')](_0x50d71e,_0x24c8('0x29'),()=>this['refresh']());}[_0x24c8('0x27')](){const _0x180c56=this['editor'],_0x42ea77=_0x180c56[_0x24c8('0x46')][_0x24c8('0x79')](d),{isNavigationMode:_0xe8cd53,currentChangeNumber:_0x6ed2e8}=_0x42ea77;let _0x728924;if(_0x42ea77[_0x24c8('0x106')]=_0xe8cd53?_0x42ea77[_0x24c8('0x94')][_0x24c8('0x92')][_0x24c8('0x79')](_0x6ed2e8+this[_0x24c8('0x8c')]):_0x42ea77[_0x24c8('0x94')][_0x24c8('0x92')]['first'],_0x42ea77[_0x24c8('0x106')][_0x24c8('0xbf')][_0x24c8('0x7a')])_0x728924=_0x180c56['editing'][_0x24c8('0x48')][_0x24c8('0x11e')](_0x42ea77[_0x24c8('0x106')][_0x24c8('0xfb')]);else{const _0x1662a6=_0x180c56['model'][_0x24c8('0x63')]['get'](_0x24c8('0xf8')+_0x42ea77[_0x24c8('0x106')]['id']);_0x728924=_0x2738e1(_0x180c56[_0x24c8('0x5b')],_0x1662a6);}_0xe1a686({'target':_0x728924,'viewportOffset':0x28});}[_0x24c8('0x4c')](){const {isNavigationMode:_0x430cfb,currentChangeNumber:_0x2991c2,numberOfChanges:_0x19b163,isReady:_0x3fbc0c,isEnabled:_0x3ef3d6}=this[_0x24c8('0x3b')][_0x24c8('0x46')]['get'](d);this['isEnabled']=!!(_0x3ef3d6&&_0x3fbc0c&&_0x19b163)&&(!_0x430cfb||(0x1===this[_0x24c8('0x8c')]?_0x2991c2<_0x19b163-0x1:_0x2991c2>0x0));}}
|
|
23
|
+
const _0x4721=['ck-suggestion-marker--active','vid_start','processor','RevisionViewer','consumable','clear','next','isEqual','indexOf','detachRoot','_removeUnsupportedChanges','softBreak','getDomRoot','_makeTape','add','insert','deletions','endIndex','revision:','mapViewToDom','filter','toViewPosition','isObject','getRevision','isRemoveSuggestion','uiElement','reconvertMarker','parse','_cleanMarkers','from','span','restoreRevisionCallback','change:isReady','addRevisionData','side','requires','_markMarkers','removeAttribute','isEnabled','showPreviousChange','upcast','abs','attributes','split','then','isBlock','nextPosition','roots','backward','ck-revision-history-root-add','_getDiff','observeMarkers','newRevisionId','addRoot','object','modelRange','getRootNames','left','low','_makeModelFromTape','isAtStart','createUIElement','includes','bindElementToMarker','selection','_data','view','hasAttribute','ck-suggestion-marker-','editingDowncast','change:activeChange','writer','delete','maxOffset','changeId','pluginName','getRevisionData','_joinTapes','distance','isOnRoot','_changeIdToChange','setAttribute','revision-suggestion','markerToData','string','merge','top','_update','findIndex','affectsData','all','hasClass','values','suggestion:','markersStart','ck-revision-history-root-remove','_setDistance','map','vid_end','ck-suggestion-preview-marker-','WidgetToolbarRepository','_appendChild','ck-suggestion-marker','previousPosition','rootName','removeMarker','domEvent','elementToAttribute','target','_findChangeIdFromDomTarget','name','unbindElementFromMarkerName','mousedown','markersEnd','activeChange','has','loadRevisionData','toViewRange','slice','restoreRevision','nodeAfter','isAttached','getRoot','_activeViewTarget','push','for','level','numberOfChanges','addMarker:revision-suggestion:insertion','done','createPositionFromPath','revision','forEach','flat','remove','range','diffData','document','bind','_threeWayMerge','isRemoved','type','getAttributes','element:pre','suggestion','addMarker:revision-suggestion:deletion','isIncorrect','_makeModelFromViewString','nextSibling','change','removeClass','start','_removeRevisionMarkers','dataToMarker','useFillerType','pairId','attributesBefore','_setChanges','test','_processTape','markerName','_getViewForChange','pop','revisionHistoryAttachChange','children','_getChangeFromId','removeMarker:revision','isBefore','checkAttribute','markerRange','item','revisionHistory','revisionHistoryLabel','authors','_markMismatchedRemovedTags','_setConversion','get','_getRevisionsRange','-new','isAfter','downcastDispatcher','_removeMissingPairs','showStack','createPositionBefore','_balloon','addHighlight','mouseover','isSuggestion','ck-revision-history-root--active','isCollapsed','text','shift','createRange','RevisionsRepository','highest','domConverter','set','default','startIndex','parent','createRangeIn','vid','listenTo','editing','isAddSuggestion','data-revision-','_markInsertions','startsWith','element','_fixObsoleteTags','marked','collaboration.channelId','addClass','isAdded','destroy','init','return','isContent','diff','attribute:vid','getCustomProperty','model','insertion','enqueueChange','schema','isReady','isLimit','end','getChild','bottom','_getViewObj','sort','dataDowncast','data','insertions','repository','commands','elementStart','forward','revision-comment:','_refreshStartEndIndex','deletion','change:numberOfChanges','ck-suggestion-preview-marker','markers','concat','forceDisabled','config','mapper','getIndex','oldRevisionId','splice','_revisions','viewItem','getClientRects','high','data-change-id','code','plugins','_changeView','userId','currentChangeNumber','getItems','elementEnd','length','changes','isNavigationMode','index','editor','getAttribute','adapter','isAtEnd','revision-viewer','attachChange','_sortAndFilterDiffChanges','error','wrap','first','keys','consume','conversion','activeView','addMarker:revision','ck-suggestion-marker-merge','attributesAfter','revision-start','_step','execute','unshift','refresh','_cleanUp','markerNameToElements','_markSuggestions'];(function(_0x1b113f,_0x472192){const _0x4cf838=function(_0x4ef7a8){while(--_0x4ef7a8){_0x1b113f['push'](_0x1b113f['shift']());}};_0x4cf838(++_0x472192);}(_0x4721,0xd5));const _0x4cf8=function(_0x1b113f,_0x472192){_0x1b113f=_0x1b113f-0x0;let _0x4cf838=_0x4721[_0x1b113f];return _0x4cf838;};import{Plugin as _0x412f9b,Command as _0xa16986}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x2854f3}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x584bb6}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x3623bf,Element as _0x17a58f,Text as _0x2414ad,ViewDocumentFragment as _0x18b51e,ViewText as _0x1ca823,ViewElement as _0x4fef01,ViewContainerElement as _0x1f853b,ViewAttributeElement as _0x1c222d,ViewEmptyElement as _0x23b961,ViewRawElement as _0x1e4a18,ViewUIElement as _0x56bfdd}from'ckeditor5/src/engine.js';import{Users as _0x15ed7f,getMarkerDomElement as _0x37d445}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x890e6f from'./ui/revisionviewer/changedetailsview.js';import _0x3d73ef from'./revisionsrepository.js';import _0x156bbb from'./changeitem.js';import{default as _0x54d503}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x5b0552}from'lodash-es';const tt={'c':_0x1f853b,'a':_0x1c222d,'e':_0x23b961,'r':_0x1e4a18,'u':_0x56bfdd};export default class d extends _0x412f9b{static get[_0x4cf8('0x9b')](){return _0x4cf8('0x53');}static get[_0x4cf8('0x73')](){return[_0x15ed7f,_0x584bb6,_0x3d73ef];}constructor(_0x16e739){super(_0x16e739),this[_0x4cf8('0x16')]=this[_0x4cf8('0x37')][_0x4cf8('0x2d')][_0x4cf8('0x100')](_0x4cf8('0x111')),this[_0x4cf8('0x114')](_0x4cf8('0xc2'),null),this['set'](_0x4cf8('0x44'),null),this['_activeViewTarget']=null,this['set']('diff',null),this['set'](_0x4cf8('0xc'),!0x1),this['set'](_0x4cf8('0x76'),!0x0),this['on']('change:isEnabled',(_0x2f693d,_0x5350f7,_0x4945a2)=>{this[_0x4cf8('0xc2')]=null,this['activeView']=null,this['editor']['editing'][_0x4cf8('0x92')]['change'](_0x57cf28=>{for(const _0x578f8e of this[_0x4cf8('0x37')][_0x4cf8('0x11b')][_0x4cf8('0x92')][_0x4cf8('0xd9')][_0x4cf8('0x7f')])_0x4945a2?_0x57cf28[_0x4cf8('0xe6')]('ck-editor__editable__overlay',_0x578f8e):_0x57cf28[_0x4cf8('0x124')]('ck-editor__editable__overlay',_0x578f8e);});}),this['bind'](_0x4cf8('0x35'))['to'](this,_0x4cf8('0xc2'),_0x3efff8=>null!==_0x3efff8),this[_0x4cf8('0xda')](_0x4cf8('0x30'))['to'](this,_0x4cf8('0xc'),this,_0x4cf8('0x5'),this,_0x4cf8('0xc2'),(_0x2e67c4,_0x48185e,_0x4fbeba)=>_0x2e67c4&&_0x4fbeba?_0x48185e[_0x4cf8('0x34')]['getIndex'](_0x4fbeba):0x0),this[_0x4cf8('0xda')](_0x4cf8('0xcf'))['to'](this,_0x4cf8('0xc'),this,_0x4cf8('0x5'),(_0x490ccf,_0x3de20e)=>_0x490ccf?_0x3de20e[_0x4cf8('0x34')]['length']:0x0),this[_0x4cf8('0x2e')]=null,this['_changeIdToChange']=new Map(),this[_0x4cf8('0x39')]=null,this[_0x4cf8('0x108')]=this[_0x4cf8('0x37')][_0x4cf8('0x2d')][_0x4cf8('0x100')](_0x584bb6);}[_0x4cf8('0x2')](){const _0x5d87eb=this[_0x4cf8('0x37')],_0x55370f=new ShowChangeCommand(_0x5d87eb,{'direction':_0x4cf8('0x80')}),_0x407e05=new ShowChangeCommand(_0x5d87eb,{'direction':_0x4cf8('0x19')});(_0x5d87eb[_0x4cf8('0x17')][_0x4cf8('0x5e')](_0x4cf8('0x77'),_0x55370f),_0x5d87eb[_0x4cf8('0x17')]['add']('showNextChange',_0x407e05),_0x5d87eb[_0x4cf8('0x17')][_0x4cf8('0x5e')](_0x4cf8('0xc7'),new RestoreRevisionCommand(_0x5d87eb)),this['on'](_0x4cf8('0x1d'),()=>{_0x55370f[_0x4cf8('0x4c')](),_0x407e05[_0x4cf8('0x4c')]();}),this[_0x4cf8('0xff')](),this['_initInteractions'](),_0x5d87eb['enableReadOnlyMode']('revision-viewer'),_0x5d87eb['plugins']['has'](_0x4cf8('0xb4')))&&_0x5d87eb[_0x4cf8('0x2d')][_0x4cf8('0x100')](_0x4cf8('0xb4'))[_0x4cf8('0x21')](_0x4cf8('0x3b'));}async[_0x4cf8('0x9c')](_0x596f47){await this[_0x4cf8('0xc4')](_0x596f47);const _0x1387f4={};for(const _0x3c6439 in _0x596f47[_0x4cf8('0xd8')]){if(_0x596f47['diffData'][_0x3c6439][_0x4cf8('0x3c')]&&!_0x596f47[_0x4cf8('0xd8')][_0x3c6439][_0x4cf8('0x3c')][_0x4cf8('0xc9')])continue;const _0x4a0203=this['_removeRevisionMarkers'](JSON[_0x4cf8('0x6b')](_0x596f47[_0x4cf8('0xd8')][_0x3c6439][_0x4cf8('0x15')])),_0x166757=this['editor'][_0x4cf8('0x11b')][_0x4cf8('0x92')][_0x4cf8('0xd9')],_0xac2419=new _0x18b51e(_0x166757,_0x4a0203[_0x4cf8('0xb1')](_0x339fed=>this[_0x4cf8('0x11')](_0x339fed)));this[_0x4cf8('0x37')][_0x4cf8('0x14')][_0x4cf8('0x52')][_0x4cf8('0xea')](_0x4cf8('0x122')),_0x1387f4[_0x3c6439]=this['editor'][_0x4cf8('0x14')][_0x4cf8('0x52')]['toData'](_0xac2419),this['editor']['data']['processor']['useFillerType'](_0x4cf8('0x115'));}return _0x1387f4;}async['getRevisionRootsAttributes'](_0x3acc45){await this['loadRevisionData'](_0x3acc45);const _0x153019={};for(const _0x15801c in _0x3acc45['diffData'])_0x3acc45[_0x4cf8('0xd8')][_0x15801c][_0x4cf8('0x3c')]&&!_0x3acc45[_0x4cf8('0xd8')][_0x15801c][_0x4cf8('0x3c')]['isAttached']||(_0x153019[_0x15801c]=_0x3acc45[_0x4cf8('0xd8')][_0x15801c][_0x4cf8('0x47')]||{});return _0x153019;}[_0x4cf8('0xe8')](_0x436978){return(_0x436978=_0x436978['filter'](_0x309201=>!_0x309201[_0x4cf8('0xbe')]||_0x4cf8('0x48')!==_0x309201[_0x4cf8('0xbe')]&&'revision-end'!==_0x309201[_0x4cf8('0xbe')]))[_0x4cf8('0xd4')](_0x5ec7b4=>{'string'!=typeof _0x5ec7b4&&(_0x5ec7b4[_0x4cf8('0xf4')]=this[_0x4cf8('0xe8')](_0x5ec7b4[_0x4cf8('0xf4')]),_0x5ec7b4[_0x4cf8('0x7a')]=_0x5ec7b4['attributes'][_0x4cf8('0x64')](_0x27e462=>!_0x27e462[0x0][_0x4cf8('0x11f')](_0x4cf8('0x11d'))));}),_0x436978;}async['compare'](_0x49b8df,_0x45b16a,_0x31eaef=!0x1){if(!this['isEnabled'])return;const _0x344681=this[_0x4cf8('0x5')],_0x1522c9=this[_0x4cf8('0x16')],_0x1dd3df=_0x4cf8('0xa4')==typeof _0x49b8df?_0x1522c9[_0x4cf8('0x67')](_0x49b8df):_0x49b8df,_0x8065dc=_0x4cf8('0xa4')==typeof _0x45b16a?_0x1522c9[_0x4cf8('0x67')](_0x45b16a):_0x45b16a,_0x203388=_0x1dd3df['id'],_0x4324b0=_0x8065dc?_0x8065dc['id']:null;if(!_0x31eaef&&this[_0x4cf8('0x5')]&&this[_0x4cf8('0x5')][_0x4cf8('0x84')]===_0x203388&&this[_0x4cf8('0x5')][_0x4cf8('0x25')]===_0x4324b0)return Promise['resolve']();this[_0x4cf8('0xc')]=!0x1,this[_0x4cf8('0x44')]=null,this[_0x4cf8('0xc2')]=null,this[_0x4cf8('0x5')]=new _0x54d503(_0x203388,_0x4324b0);const _0x25075d=this['_getRevisionsRange'](_0x1dd3df,_0x8065dc,!0x0)[_0x4cf8('0xb1')](_0x5c2e84=>this[_0x4cf8('0xc4')](_0x5c2e84));return _0x25075d[_0x4cf8('0xcc')](new Promise(_0x23d3e4=>{setTimeout(_0x23d3e4,0x14);})),Promise[_0x4cf8('0xaa')](_0x25075d)[_0x4cf8('0x7c')](()=>{if(!this[_0x4cf8('0x76')])return;this['_cleanUp']();const _0x4340df=this[_0x4cf8('0x82')](_0x203388,_0x4324b0);for(const _0x3ee630 of _0x4340df['changes'])this[_0x4cf8('0xa0')][_0x4cf8('0x114')](_0x3ee630['id'],_0x3ee630);this[_0x4cf8('0x37')]['model'][_0x4cf8('0xa')]({'isUndoable':!0x1},_0x5c5d50=>{for(const _0x168c32 of this[_0x4cf8('0x37')][_0x4cf8('0x8')][_0x4cf8('0xd9')][_0x4cf8('0x88')]())_0x5c5d50[_0x4cf8('0x59')](_0x168c32);for(const _0x5edea9 of Object[_0x4cf8('0x41')](_0x4340df[_0x4cf8('0x8')])){const _0x18737f=_0x5c5d50[_0x4cf8('0x85')](_0x5edea9);for(const _0x40e0fb of Object[_0x4cf8('0x41')](_0x4340df[_0x4cf8('0x7a')][_0x5edea9]))_0x5c5d50[_0x4cf8('0xa1')](_0x40e0fb,_0x4340df[_0x4cf8('0x7a')][_0x5edea9][_0x40e0fb],_0x18737f);_0x5c5d50[_0x4cf8('0x5f')](_0x4340df[_0x4cf8('0x8')][_0x5edea9],_0x18737f,0x0);}}),this[_0x4cf8('0x5')][_0x4cf8('0xed')](this[_0x4cf8('0x3d')](_0x4340df['changes'])),this['isReady']=!0x0;})['catch'](_0x590c00=>{console[_0x4cf8('0x3e')](_0x590c00),this[_0x4cf8('0x4d')](),_0x344681&&(this[_0x4cf8('0x5')]=_0x344681),this[_0x4cf8('0xc')]=!0x0;});}[_0x4cf8('0x71')](_0x50ccf2,_0x3cfd6d){const _0x229f6e=this[_0x4cf8('0x16')]['createRevision'](_0x50ccf2);return _0x229f6e['on'](_0x4cf8('0xa7'),(_0x594dc3,_0x1e57c9,_0x200986)=>_0x3cfd6d(_0x1e57c9,_0x200986,_0x229f6e)),this[_0x4cf8('0x16')]['addRevision'](_0x229f6e),_0x229f6e;}[_0x4cf8('0xc4')](_0x5e96b2){if(!_0x5e96b2||_0x5e96b2[_0x4cf8('0xd8')])return Promise['resolve']();{const _0x3db1ba=this[_0x4cf8('0x37')][_0x4cf8('0x22')][_0x4cf8('0x100')](_0x4cf8('0x123'));return this[_0x4cf8('0x39')][_0x4cf8('0x67')]({'channelId':_0x3db1ba,'revisionId':_0x5e96b2['id']})['then'](_0x12e19b=>{_0x5e96b2[_0x4cf8('0xa7')]({'diffData':_0x12e19b[_0x4cf8('0xd8')]},!0x0);});}}[_0x4cf8('0x4d')](){this[_0x4cf8('0xc2')]=null,this[_0x4cf8('0x6c')](),this[_0x4cf8('0x2e')]&&this[_0x4cf8('0x2e')][_0x4cf8('0x1')](),this['_changeView']=null,this[_0x4cf8('0xa0')][_0x4cf8('0x55')](),this[_0x4cf8('0x37')][_0x4cf8('0x8')][_0x4cf8('0xa')]({'isUndoable':!0x1},_0x40ea44=>{for(const _0x5ce774 of this[_0x4cf8('0x37')][_0x4cf8('0x8')]['document'][_0x4cf8('0x88')]())_0x40ea44[_0x4cf8('0x59')](_0x5ce774);});}[_0x4cf8('0x3d')](_0x3fc5f6){const _0x2b6b7f=[],_0x58ebc7=new Map();for(const _0x37592d of this[_0x4cf8('0x37')]['model'][_0x4cf8('0xd9')][_0x4cf8('0x88')]()){const _0x4064af=this['editor']['editing']['view'][_0x4cf8('0x5c')](_0x37592d);if(!_0x4064af)continue;const _0x4648b7=_0x4064af[_0x4cf8('0x29')]()[_0x4cf8('0xfa')](0x0);_0x4648b7&&(_0x2b6b7f['push'](_0x37592d),_0x58ebc7['set'](_0x37592d,_0x4648b7));}return _0x2b6b7f[_0x4cf8('0x12')]((_0x21524f,_0x23ba71)=>{const _0x316c36=_0x58ebc7[_0x4cf8('0x100')](_0x21524f),_0xe510b9=_0x58ebc7[_0x4cf8('0x100')](_0x23ba71);return _0x316c36['y']-_0xe510b9['y']||_0x316c36['x']-_0xe510b9['x'];}),(_0x3fc5f6=_0x3fc5f6[_0x4cf8('0x64')](_0x108453=>_0x2b6b7f['includes'](_0x108453['rootName'])))[_0x4cf8('0x12')]((_0x40ce58,_0x12c714)=>_0x2b6b7f[_0x4cf8('0x58')](_0x40ce58[_0x4cf8('0xb8')])-_0x2b6b7f[_0x4cf8('0x58')](_0x12c714[_0x4cf8('0xb8')])),_0x3fc5f6;}[_0x4cf8('0x5d')](_0x2062dc){const _0x50e3f6=Array[_0x4cf8('0x6d')](_0x2062dc[_0x4cf8('0x1f')])[_0x4cf8('0x64')](([_0x1480b1,_0x32f259])=>_0x1480b1[_0x4cf8('0x11f')](_0x4cf8('0x62'))&&!_0x32f259['isCollapsed']),_0x3f4660=Array[_0x4cf8('0x6d')](this[_0x4cf8('0x37')][_0x4cf8('0x8')][_0x4cf8('0x118')](_0x2062dc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x50e3f6[_0x4cf8('0x33')])for(const _0x3d8170 of _0x3f4660){const [_0x49ec28,_0x52eae0]=_0x50e3f6[0x0],[,_0x528e97,_0x5887cc]=_0x49ec28[_0x4cf8('0x7b')](':');if(_0x52eae0['end'][_0x4cf8('0x57')](_0x3d8170[_0x4cf8('0x7e')])&&_0x50e3f6[_0x4cf8('0x10f')](),(_0x3d8170[_0x4cf8('0xb7')][_0x4cf8('0x57')](_0x52eae0[_0x4cf8('0xe7')])||_0x3d8170['previousPosition']['isAfter'](_0x52eae0[_0x4cf8('0xe7')]))&&(_0x4cf8('0x9')==_0x528e97?_0x3d8170[_0x4cf8('0x0')]={'userId':_0x5887cc}:_0x4cf8('0x1c')==_0x528e97&&(_0x3d8170[_0x4cf8('0xdc')]={'userId':_0x5887cc})),0x0==_0x50e3f6[_0x4cf8('0x33')])break;}return _0x3f4660;}[_0x4cf8('0x1b')](_0x1b2ca9){const _0xed6b2b=new Map();for(let _0x5b2f12=0x0;_0x5b2f12<_0x1b2ca9[_0x4cf8('0x33')];_0x5b2f12++)_0x4cf8('0x10e')===_0x1b2ca9[_0x5b2f12]['type']?(_0x1b2ca9[_0x5b2f12][_0x4cf8('0xfa')][_0x4cf8('0x116')]=_0x5b2f12,_0x1b2ca9[_0x5b2f12][_0x4cf8('0xfa')][_0x4cf8('0x61')]=_0x5b2f12):(_0x4cf8('0x18')===_0x1b2ca9[_0x5b2f12][_0x4cf8('0xdd')]?_0x1b2ca9[_0x5b2f12][_0x4cf8('0xfa')]['startIndex']=_0x5b2f12:_0x4cf8('0x32')===_0x1b2ca9[_0x5b2f12]['type']&&(_0x1b2ca9[_0x5b2f12][_0x4cf8('0xfa')][_0x4cf8('0x61')]=_0x5b2f12),_0xed6b2b[_0x4cf8('0x114')](_0x1b2ca9[_0x5b2f12]['id'],_0x5b2f12));for(const _0x4690a2 of _0xed6b2b[_0x4cf8('0xac')]())'elementStart'===_0x1b2ca9[_0x4690a2][_0x4cf8('0xdd')]?_0x1b2ca9[_0x4690a2][_0x4cf8('0xfa')][_0x4cf8('0x61')]=_0xed6b2b[_0x4cf8('0x100')](_0x1b2ca9[_0x4690a2][_0x4cf8('0xeb')]):_0x4cf8('0x32')===_0x1b2ca9[_0x4690a2][_0x4cf8('0xdd')]&&(_0x1b2ca9[_0x4690a2]['item'][_0x4cf8('0x116')]=_0xed6b2b[_0x4cf8('0x100')](_0x1b2ca9[_0x4690a2]['pairId']));}[_0x4cf8('0xef')](_0xa4a3ce){for(let _0x38a321=0x0;_0x38a321<_0xa4a3ce[_0x4cf8('0x33')];_0x38a321++){if('elementStart'===_0xa4a3ce[_0x38a321][_0x4cf8('0xdd')])_0xa4a3ce[_0x38a321][_0x4cf8('0xfa')][_0x4cf8('0x116')]=_0x38a321;else{if(_0x4cf8('0x32')===_0xa4a3ce[_0x38a321][_0x4cf8('0xdd')]){_0xa4a3ce[_0x38a321]['item']['endIndex']=_0x38a321;const _0x15ba1c=_0xa4a3ce[_0x38a321][_0x4cf8('0xfa')][_0x4cf8('0x116')];_0xa4a3ce[_0x15ba1c]['pairId']=_0xa4a3ce[_0x38a321]['id'],_0xa4a3ce[_0x38a321][_0x4cf8('0xeb')]=_0xa4a3ce[_0x15ba1c]['id'];}else _0xa4a3ce[_0x38a321][_0x4cf8('0xfa')][_0x4cf8('0x116')]=_0x38a321,_0xa4a3ce[_0x38a321][_0x4cf8('0xfa')]['endIndex']=_0x38a321,_0xa4a3ce[_0x38a321][_0x4cf8('0xeb')]=null;}_0xa4a3ce[_0x38a321]['markersStart']||(_0xa4a3ce[_0x38a321]['markersStart']=[],_0xa4a3ce[_0x38a321][_0x4cf8('0xc1')]=[]);}}['_markInsertions'](_0x1feb51,_0x583a09){const _0x561668=_0x1feb51['filter'](_0x16621f=>!_0x16621f['isAdded']);for(let _0x6b7cf1=0x0;_0x6b7cf1<_0x583a09[_0x4cf8('0x33')];_0x6b7cf1++)_0x583a09[_0x6b7cf1]['isAdded']&&(_0x561668[_0x6b7cf1][_0x4cf8('0x0')]=_0x583a09[_0x6b7cf1][_0x4cf8('0x0')]);}['_makeModelFromViewString'](_0xcf89dc){const _0x207157=JSON['parse'](_0xcf89dc),_0x11459a=this[_0x4cf8('0x37')][_0x4cf8('0x11b')][_0x4cf8('0x92')]['document'],_0x169d04=new _0x18b51e(_0x11459a,_0x207157[_0x4cf8('0xb1')](_0x310f32=>this[_0x4cf8('0x11')](_0x310f32)));return this[_0x4cf8('0x37')][_0x4cf8('0x14')]['toModel'](_0x169d04);}['_getViewObj'](_0x17752b){const _0x6d595f=this[_0x4cf8('0x37')][_0x4cf8('0x11b')]['view'][_0x4cf8('0xd9')];if(_0x4cf8('0xa4')==typeof _0x17752b)return new _0x1ca823(_0x6d595f,_0x17752b);{const _0x4aafb0=_0x17752b[_0x4cf8('0xf4')]['map'](_0x42442=>this[_0x4cf8('0x11')](_0x42442));return new(tt[_0x17752b['type']]||_0x4fef01)(_0x6d595f,_0x17752b[_0x4cf8('0xbe')],_0x17752b['attributes'],_0x4aafb0);}}[_0x4cf8('0x82')](_0x23a0a3,_0x201e35=null){const _0x16cba5=this[_0x4cf8('0x16')][_0x4cf8('0x67')](_0x23a0a3),_0x1e281d=_0x201e35?this[_0x4cf8('0x16')][_0x4cf8('0x67')](_0x201e35):null,_0x33c7fe=this[_0x4cf8('0x101')](_0x16cba5,_0x1e281d),_0x29eb22=_0x33c7fe[_0x33c7fe[_0x4cf8('0x33')]-0x1],_0x46b209=new Map(),_0x5d689a={'model':{},'attributes':{},'changes':[]},_0x41707f=new Set(),_0x45f463=new Map();for(let _0x2bf28c=_0x33c7fe[_0x4cf8('0x33')]-0x1;_0x2bf28c>=0x0;_0x2bf28c--){const _0x11f935=_0x33c7fe[_0x2bf28c];for(const _0x78fdfe of Object['keys'](_0x11f935['diffData']))if(_0x11f935[_0x4cf8('0xd8')][_0x78fdfe]['attachChange']){const _0xc70e7f=_0x11f935[_0x4cf8('0xd8')][_0x78fdfe][_0x4cf8('0x3c')];_0xc70e7f[_0x4cf8('0xc9')]?(_0x41707f['add'](_0x78fdfe),_0x45f463[_0x4cf8('0xc3')](_0x78fdfe)&&_0x45f463[_0x4cf8('0x100')](_0x78fdfe)[_0x4cf8('0x2f')]==_0xc70e7f[_0x4cf8('0x2f')]?_0x45f463['delete'](_0x78fdfe):_0x45f463[_0x4cf8('0x114')](_0x78fdfe,_0xc70e7f)):_0x45f463[_0x4cf8('0xc3')](_0x78fdfe)?(_0x41707f[_0x4cf8('0x98')](_0x78fdfe),_0x45f463[_0x4cf8('0x98')](_0x78fdfe)):(_0x41707f[_0x4cf8('0x5e')](_0x78fdfe),_0x45f463[_0x4cf8('0x114')](_0x78fdfe,_0xc70e7f));}else _0x41707f[_0x4cf8('0x5e')](_0x78fdfe);}for(const _0x46b1d5 of _0x41707f){const _0x11946e=_0x45f463[_0x4cf8('0xc3')](_0x46b1d5)&&!_0x45f463[_0x4cf8('0x100')](_0x46b1d5)['isAttached'];let _0x5cb060=_0x11946e?_0x33c7fe['length']-0x1:0x0;const _0x361ac8=_0x11946e?-0x1:0x1;for(;_0x33c7fe[_0x5cb060];){const _0x587b70=_0x33c7fe[_0x5cb060];if(_0x587b70[_0x4cf8('0xd8')][_0x46b1d5]){const _0x13e7c8=_0x11946e?_0x587b70[_0x4cf8('0xd8')][_0x46b1d5][_0x4cf8('0xec')]:_0x587b70[_0x4cf8('0xd8')][_0x46b1d5][_0x4cf8('0x47')];_0x5d689a['attributes'][_0x46b1d5]=_0x13e7c8?_0x5b0552(_0x13e7c8):{};break;}_0x5cb060+=_0x361ac8;}}for(const _0x5901ff of _0x33c7fe){_0x5901ff['model']={};for(const _0x2ddb62 of _0x5901ff[_0x4cf8('0xfd')])_0x46b209['set'](_0x2ddb62['id'],_0x2ddb62);for(const _0x44707b of _0x41707f){const _0x404b6c=_0x5901ff[_0x4cf8('0xd8')][_0x44707b]?_0x5901ff['diffData'][_0x44707b][_0x4cf8('0x15')]:'[]',_0x44381c=_0x5901ff[_0x4cf8('0xd8')][_0x44707b]?_0x5901ff['diffData'][_0x44707b][_0x4cf8('0x60')]:'[]';_0x5901ff[_0x4cf8('0x8')][_0x44707b]={'insertions':this['_makeModelFromViewString'](_0x404b6c),'deletions':this[_0x4cf8('0xe3')](_0x44381c)};}}for(const _0xf5c89a of _0x41707f){let _0x567e8e=null,_0x2f457a=0x0;const _0x539a19=new Map(Array['from'](_0x16cba5[_0x4cf8('0x8')][_0xf5c89a][_0x4cf8('0x15')][_0x4cf8('0x1f')])['filter'](([_0x14a665])=>!_0x14a665[_0x4cf8('0x11f')](_0x4cf8('0x62'))));let _0x2555d3=0x0;for(const _0x10b334 of _0x33c7fe){const _0x4b42bc=this[_0x4cf8('0x5d')](_0x10b334[_0x4cf8('0x8')][_0xf5c89a][_0x4cf8('0x15')]);_0x10b334==_0x16cba5?(_0x567e8e=_0x4b42bc,_0x2f457a=_0x567e8e[_0x4cf8('0x33')],_0x567e8e[_0x4cf8('0xd4')](_0x16fd6a=>{_0x16fd6a['id']=_0x2555d3++;}),this[_0x4cf8('0xef')](_0x567e8e)):this[_0x4cf8('0x11e')](_0x567e8e,_0x4b42bc);const _0x184c88=_0x567e8e[_0x4cf8('0x64')](_0x554c7a=>!_0x554c7a[_0x4cf8('0x0')])[_0x4cf8('0xb1')](_0x280189=>_0x280189['id']);let _0x3b9902=0x0;const _0x3f54d4=this[_0x4cf8('0x5d')](_0x10b334[_0x4cf8('0x8')][_0xf5c89a][_0x4cf8('0x60')]);_0x3f54d4['forEach'](_0x3425e5=>{_0x3425e5[_0x4cf8('0xdc')]?_0x3425e5['id']=_0x2f457a++:_0x3425e5['id']=_0x184c88[_0x3b9902++];}),this[_0x4cf8('0xef')](_0x3f54d4),this[_0x4cf8('0xb0')](_0x567e8e,_0x4cf8('0x0')),this[_0x4cf8('0xb0')](_0x3f54d4,_0x4cf8('0xdc')),_0x10b334==_0x16cba5&&this[_0x4cf8('0x74')](_0x567e8e,_0x539a19),_0x567e8e=this[_0x4cf8('0x9d')](_0x567e8e,_0x3f54d4),this['_refreshStartEndIndex'](_0x567e8e),this[_0x4cf8('0xb0')](_0x567e8e,_0x4cf8('0xdc'));}_0x567e8e=_0x567e8e['filter'](_0x46ac22=>!(_0x46ac22['isAdded']&&_0x46ac22[_0x4cf8('0xdc')]));const _0x2a4627=new Map(_0x29eb22[_0x4cf8('0x8')][_0xf5c89a][_0x4cf8('0x60')][_0x4cf8('0x1f')]),_0x282723=new Set(_0x539a19[_0x4cf8('0x41')]());for(const _0x38436c of _0x2a4627[_0x4cf8('0x41')]())_0x282723[_0x4cf8('0x98')](_0x38436c);this[_0x4cf8('0x4f')](_0x567e8e,_0x282723),this[_0x4cf8('0x121')](_0x567e8e),_0x567e8e=this[_0x4cf8('0x105')](_0x567e8e),_0x567e8e=this['_markMismatchedRemovedTags'](_0x567e8e),_0x567e8e=this[_0x4cf8('0x5a')](_0x567e8e);const {root:_0x58159a,changes:_0x112fd6}=this[_0x4cf8('0x8b')](_0x567e8e,_0x46b209,_0xf5c89a);_0x5d689a[_0x4cf8('0x8')][_0xf5c89a]=_0x58159a;const _0x37e958=_0x45f463[_0x4cf8('0x100')](_0xf5c89a);if(_0x37e958){const _0x2c9f81=_0x46b209[_0x4cf8('0x100')](_0x37e958[_0x4cf8('0x2f')]),_0x9b4dc5=new _0x156bbb({'author':_0x2c9f81,'type':_0x37e958['isAttached']?_0x4cf8('0x5e'):_0x4cf8('0xd6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xf5c89a});_0x112fd6[_0x4cf8('0x4b')](_0x9b4dc5),_0x5d689a[_0x4cf8('0x7a')][_0xf5c89a][_0x4cf8('0xf3')]=_0x9b4dc5['id'];}_0x5d689a[_0x4cf8('0x34')]=_0x5d689a[_0x4cf8('0x34')]['concat'](_0x112fd6);}return _0x5d689a;}[_0x4cf8('0x74')](_0x4520a3,_0x23bd65){for(let _0xad5913=0x0;_0xad5913<_0x4520a3['length'];_0xad5913++)for(const [_0x57386c,_0x54a533]of _0x23bd65)_0x54a533[_0x4cf8('0xe7')][_0x4cf8('0x57')](_0x4520a3[_0xad5913][_0x4cf8('0xb7')])&&_0x4520a3[_0xad5913]['markersStart'][_0x4cf8('0xcc')](_0x57386c),_0x54a533[_0x4cf8('0xe')][_0x4cf8('0x57')](_0x4520a3[_0xad5913][_0x4cf8('0x7e')])&&_0x4520a3[_0xad5913]['markersEnd'][_0x4cf8('0xcc')](_0x57386c);}[_0x4cf8('0x9d')](_0x481d65,_0x32c25f){let _0x4e3547=[],_0x56b9a4=0x0,_0x1d0952=0x0;for(;_0x56b9a4<_0x481d65[_0x4cf8('0x33')]||_0x1d0952<_0x32c25f[_0x4cf8('0x33')];){const _0x428bc2=_0x481d65[_0x56b9a4]||{},_0xf4d87=_0x32c25f[_0x1d0952]||{};if(_0x428bc2['id']==_0xf4d87['id'])_0x56b9a4++,_0x1d0952++,_0x4e3547['push'](_0x428bc2);else{if(_0xf4d87[_0x4cf8('0xdc')]&&_0x428bc2[_0x4cf8('0x0')]){const {commonTape:_0x3bec7e,iEnd:_0x83f5ad,jEnd:_0x933013}=this['_threeWayMerge'](_0x481d65,_0x56b9a4,_0x32c25f,_0x1d0952);_0x4e3547=_0x4e3547['concat'](_0x3bec7e),_0x56b9a4=_0x83f5ad,_0x1d0952=_0x933013;}else _0xf4d87[_0x4cf8('0xdc')]?(_0x1d0952++,_0x4e3547[_0x4cf8('0xcc')](_0xf4d87)):(_0x56b9a4++,_0x4e3547[_0x4cf8('0xcc')](_0x428bc2));}}return _0x4e3547;}[_0x4cf8('0x4f')](_0x3aeab5,_0xf9321e){const _0x4b7f70=[];for(let _0x5e6935=0x0;_0x5e6935<_0x3aeab5[_0x4cf8('0x33')];_0x5e6935++){for(let _0x337979=0x0;_0x337979<_0x3aeab5[_0x5e6935][_0x4cf8('0xae')]['length'];_0x337979++){const _0x4a28b7=_0x3aeab5[_0x5e6935][_0x4cf8('0xae')][_0x337979];if(!_0xf9321e[_0x4cf8('0xc3')](_0x4a28b7))continue;const {group:_0x449048,type:_0x356f83,authorId:_0x4efd25}=_0x37cd42(_0x4a28b7);'revision-suggestion'!=_0x449048||'insertion'!=_0x356f83&&_0x4cf8('0x1c')!=_0x356f83||(_0x4b7f70[_0x4cf8('0x4b')]({'type':_0x356f83,'name':_0x4a28b7,'userId':_0x4efd25}),_0x3aeab5[_0x5e6935][_0x4cf8('0xae')][_0x4cf8('0x26')](_0x337979,0x1),_0x337979--);}_0x5f37cb(_0x3aeab5[_0x5e6935]);for(let _0x303c14=0x0;_0x303c14<_0x3aeab5[_0x5e6935][_0x4cf8('0xc1')][_0x4cf8('0x33')];_0x303c14++){const _0x248f5e=_0x3aeab5[_0x5e6935][_0x4cf8('0xc1')][_0x303c14];if(!_0xf9321e[_0x4cf8('0xc3')](_0x248f5e))continue;const {group:_0x10cc91,type:_0x244d01}=_0x37cd42(_0x248f5e);if(_0x4cf8('0xa2')!=_0x10cc91||'insertion'!=_0x244d01&&_0x4cf8('0x1c')!=_0x244d01)continue;_0x3aeab5[_0x5e6935][_0x4cf8('0xc1')][_0x4cf8('0x26')](_0x303c14,0x1),_0x303c14--;const _0x46b2d7=_0x4b7f70[_0x4cf8('0xa8')](_0x57e469=>_0x57e469[_0x4cf8('0xbe')]==_0x248f5e);_0x46b2d7>-0x1&&_0x4b7f70[_0x4cf8('0x26')](_0x46b2d7,0x1);}}function _0x37cd42(_0xa63051){const _0x5579d4=_0xa63051[_0x4cf8('0x7b')](':');return{'group':_0x5579d4[0x0],'type':_0x5579d4[0x1],'subType':_0x5579d4['length']>=0x5?_0x5579d4[0x2]:null,'id':_0x5579d4['length']<0x5?_0x5579d4[0x2]:_0x5579d4[0x3],'authorId':_0x5579d4[_0x4cf8('0x33')]<0x5?_0x5579d4[0x3]:_0x5579d4[0x4],'markerCount':0x6==_0x5579d4[_0x4cf8('0x33')]?_0x5579d4[0x5]:null};}function _0x5f37cb(_0xe81570){for(let _0x488f2e=0x0;_0x488f2e<_0x4b7f70[_0x4cf8('0x33')];_0x488f2e++){if(_0xe81570[_0x4cf8('0x0')]&&_0x4cf8('0x9')==_0x4b7f70[_0x488f2e]['type'])return _0xe81570['isAddSuggestion']=_0x4b7f70[_0x488f2e],void delete _0xe81570[_0x4cf8('0x0')];if(!_0xe81570[_0x4cf8('0x0')]&&!_0xe81570[_0x4cf8('0xdc')]&&_0x4cf8('0x1c')==_0x4b7f70[_0x488f2e][_0x4cf8('0xdd')])return void(_0xe81570[_0x4cf8('0x68')]=_0x4b7f70[_0x488f2e]);}}}[_0x4cf8('0xb0')](_0x16885d,_0xed8d3f){let _0x46ddd4=0x0,_0x2dea33=!0x1;const _0x4b494a=new Map();for(const _0x30e3a3 of _0x16885d)_0x30e3a3[_0xed8d3f]?_0x2dea33&&(_0x46ddd4++,_0x2dea33=!0x1):(_0x46ddd4++,_0x2dea33=!0x0),_0x4b494a[_0x4cf8('0x114')](_0x30e3a3['id'],_0x46ddd4);for(let _0x20941c=0x0;_0x20941c<_0x16885d[_0x4cf8('0x33')];_0x20941c++){if(_0x4cf8('0xdc')==_0xed8d3f&&_0x16885d[_0x20941c][_0x4cf8('0x0')]||'isAdded'==_0xed8d3f&&_0x16885d[_0x20941c][_0x4cf8('0xdc')])continue;if(_0x4cf8('0x10e')==_0x16885d[_0x20941c][_0x4cf8('0xdd')]){_0x16885d[_0x20941c][_0x4cf8('0x9e')]=0x0;continue;}const _0x5526e5=_0x4b494a[_0x4cf8('0x100')](_0x16885d[_0x20941c][_0x4cf8('0xeb')]),_0xfa2c2b=_0x4b494a[_0x4cf8('0x100')](_0x16885d[_0x20941c]['id']);_0x16885d[_0x20941c][_0x4cf8('0x9e')]=_0x5526e5-_0xfa2c2b;}}[_0x4cf8('0x101')](_0x2268f8,_0x2b731b,_0x244d4d=!0x1){const _0x46788d=[];let _0xcc0c5e=this[_0x4cf8('0x16')][_0x4cf8('0x24')](_0x2268f8),_0x3411d7=this['repository'][_0x4cf8('0x24')](_0x2b731b);for(-0x1==_0x3411d7&&(_0x3411d7=this['repository'][_0x4cf8('0x27')][_0x4cf8('0x33')],_0x244d4d=!0x1);_0xcc0c5e<_0x3411d7;)_0x46788d[_0x4cf8('0xcc')](this['repository'][_0x4cf8('0x67')](_0xcc0c5e)),_0xcc0c5e++;return _0x244d4d&&_0x46788d['push'](this[_0x4cf8('0x16')][_0x4cf8('0x67')](_0xcc0c5e)),_0x46788d;}[_0x4cf8('0xdb')](_0x57d12a,_0x429b96,_0x5bc92a,_0x42865c){const _0x4910c6=this[_0x4cf8('0x37')][_0x4cf8('0x8')][_0x4cf8('0xb')];let _0x3058de=_0x429b96;for(;_0x57d12a[_0x3058de]&&_0x57d12a[_0x3058de][_0x4cf8('0x0')];)_0x3058de++;let _0x39c468=_0x42865c;for(;_0x5bc92a[_0x39c468]&&_0x5bc92a[_0x39c468][_0x4cf8('0xdc')];)_0x39c468++;_0x3ecec7(_0x57d12a,_0x429b96,_0x3058de),_0x3ecec7(_0x5bc92a,_0x42865c,_0x39c468);const _0x267348=_0x5bc92a[_0x4cf8('0xc6')](_0x42865c,_0x39c468)[_0x4cf8('0x20')](_0x57d12a['slice'](_0x429b96,_0x3058de));return _0x267348[_0x4cf8('0x12')]((_0x50cec6,_0x387a0d)=>_0x50cec6[_0x4cf8('0x72')]!=_0x387a0d[_0x4cf8('0x72')]?_0x50cec6[_0x4cf8('0x72')]-_0x387a0d[_0x4cf8('0x72')]:_0x50cec6['level']!=_0x387a0d[_0x4cf8('0xce')]?_0x50cec6[_0x4cf8('0xce')]-_0x387a0d['level']:_0x50cec6[_0x4cf8('0x9e')]!=_0x387a0d[_0x4cf8('0x9e')]?_0x387a0d[_0x4cf8('0x9e')]-_0x50cec6[_0x4cf8('0x9e')]:!!_0x50cec6['isAdded']!=!!_0x387a0d[_0x4cf8('0x0')]?-0x1==_0x50cec6[_0x4cf8('0x72')]||0x0==_0x50cec6[_0x4cf8('0x72')]?_0x50cec6[_0x4cf8('0x0')]?-0x1:0x1:_0x50cec6[_0x4cf8('0x0')]?0x1:-0x1:_0x50cec6[_0x4cf8('0x36')]-_0x387a0d[_0x4cf8('0x36')]),{'commonTape':_0x267348,'iEnd':_0x3058de,'jEnd':_0x39c468};function _0x3ecec7(_0x39beb1,_0x17f1c9,_0x3540df){let _0x1f45a9=-0x1,_0x30c4d5=Number['POSITIVE_INFINITY'],_0x199959=!0x0;for(let _0x5a877b=_0x17f1c9;_0x5a877b<_0x3540df;_0x5a877b++)if(_0x4910c6['isInline'](_0x39beb1[_0x5a877b]['item'])||(_0x199959=!0x1),_0x39beb1[_0x5a877b][_0x4cf8('0xfa')][_0x4cf8('0x116')]<_0x17f1c9&&(_0x1f45a9=_0x5a877b),_0x39beb1[_0x5a877b][_0x4cf8('0xfa')][_0x4cf8('0x61')]>=_0x3540df){_0x30c4d5=_0x5a877b;break;}_0x199959&&(_0x1f45a9=_0x3540df-0x1);for(let _0x119299=_0x17f1c9;_0x119299<_0x3540df;_0x119299++)_0x39beb1[_0x119299][_0x4cf8('0x72')]=_0x119299<=_0x1f45a9?-0x1:_0x119299<_0x30c4d5?0x0:0x1,_0x39beb1[_0x119299][_0x4cf8('0x36')]=_0x119299;let _0x300941=0x0;for(let _0x3c514d=_0x17f1c9;_0x3c514d<=_0x1f45a9;_0x3c514d++)0x0==_0x39beb1[_0x3c514d][_0x4cf8('0x9e')]?_0x39beb1[_0x3c514d][_0x4cf8('0xce')]=_0x300941:(_0x300941++,_0x39beb1[_0x3c514d][_0x4cf8('0xce')]=_0x300941,_0x300941++);for(let _0x518c91=_0x17f1c9;_0x518c91<_0x3540df;_0x518c91++)0x0==_0x39beb1[_0x518c91][_0x4cf8('0x72')]&&(_0x39beb1[_0x518c91][_0x4cf8('0xce')]=_0x300941);_0x300941=0x0;for(let _0x5c4688=_0x3540df-0x1;_0x5c4688>=_0x30c4d5;_0x5c4688--)0x0==_0x39beb1[_0x5c4688]['distance']?_0x39beb1[_0x5c4688][_0x4cf8('0xce')]=_0x300941:(_0x300941--,_0x39beb1[_0x5c4688][_0x4cf8('0xce')]=_0x300941,_0x300941--);}}[_0x4cf8('0x121')](_0x42172a){const _0xbf4792=new Map(),_0x29f9f9=this[_0x4cf8('0x37')][_0x4cf8('0x8')][_0x4cf8('0xb')];for(let _0x2ab4ee=0x1;_0x2ab4ee<_0x42172a[_0x4cf8('0x33')];_0x2ab4ee++){let _0x409129,_0x1a4a80,_0x22561c;const _0x36eb4d=_0x42172a[_0x2ab4ee],_0x3653f8=_0x42172a[_0x2ab4ee-0x1];if('text'==_0x36eb4d[_0x4cf8('0xdd')])continue;if(_0x36eb4d['type']!=_0x3653f8[_0x4cf8('0xdd')])continue;if(!_0x29f9f9[_0x4cf8('0x7d')](_0x3653f8[_0x4cf8('0xfa')])||_0x29f9f9[_0x4cf8('0xd')](_0x3653f8[_0x4cf8('0xfa')]))continue;if(!_0x29f9f9[_0x4cf8('0x7d')](_0x36eb4d[_0x4cf8('0xfa')])||_0x29f9f9['isLimit'](_0x36eb4d[_0x4cf8('0xfa')]))continue;if((_0x42172a[_0x2ab4ee][_0x4cf8('0x0')]||_0x42172a[_0x2ab4ee][_0x4cf8('0x11c')])&&_0x42172a[_0x2ab4ee-0x1][_0x4cf8('0xdc')])_0x409129=_0x42172a[_0x2ab4ee],_0x1a4a80=_0x42172a[_0x2ab4ee-0x1],_0x22561c=_0x2ab4ee-0x1;else{if(!_0x42172a[_0x2ab4ee]['isRemoved']||!_0x42172a[_0x2ab4ee-0x1][_0x4cf8('0x0')]&&!_0x42172a[_0x2ab4ee-0x1]['isAddSuggestion'])continue;_0x409129=_0x42172a[_0x2ab4ee-0x1],_0x1a4a80=_0x42172a[_0x2ab4ee],_0x22561c=_0x2ab4ee;}const _0x4411f6=_0x409129[_0x4cf8('0xce')]==_0x1a4a80[_0x4cf8('0xce')],_0x32367d=Math[_0x4cf8('0x79')](_0x409129[_0x4cf8('0xce')])<Math[_0x4cf8('0x79')](_0x1a4a80[_0x4cf8('0xce')])&&0x0==_0x1a4a80['distance'];(_0x4411f6||_0x32367d)&&(_0xbf4792[_0x4cf8('0x114')](_0x1a4a80['id'],_0x409129['id']),_0x42172a['splice'](_0x22561c,0x1),_0x2ab4ee--,_0x409129[_0x4cf8('0x0')]=!0x1);}for(let _0x2e42a0=0x0;_0x2e42a0<_0x42172a[_0x4cf8('0x33')];_0x2e42a0++)_0xbf4792[_0x4cf8('0xc3')](_0x42172a[_0x2e42a0]['pairId'])&&(_0x42172a[_0x2e42a0]['pairId']=_0xbf4792['get'](_0x42172a[_0x2e42a0]['pairId']));}[_0x4cf8('0x105')](_0x472359){const _0x5de780=new Set(_0x472359[_0x4cf8('0xb1')](_0x3e76fb=>_0x3e76fb['id']));for(let _0x4b5a1e=0x0;_0x4b5a1e<_0x472359['length'];_0x4b5a1e++)_0x5de780[_0x4cf8('0xc3')](_0x472359[_0x4b5a1e][_0x4cf8('0xeb')])||0x0==_0x472359[_0x4b5a1e][_0x4cf8('0x9e')]||(_0x472359[_0x4b5a1e][_0x4cf8('0xe2')]=!0x0);return _0x472359['filter'](_0x2124d4=>!_0x2124d4[_0x4cf8('0xe2')]);}[_0x4cf8('0xfe')](_0x2e8a9d){const _0x1ed9fb=new Set();for(let _0x51a76c=0x0;_0x51a76c<_0x2e8a9d[_0x4cf8('0x33')];_0x51a76c++){if(_0x1ed9fb[_0x4cf8('0xc3')](_0x2e8a9d[_0x51a76c]['id'])&&_0x2e8a9d[_0x51a76c][_0x4cf8('0xdc')]&&(_0x2e8a9d[_0x51a76c][_0x4cf8('0xe2')]=!0x0),_0x2e8a9d[_0x51a76c][_0x4cf8('0xe2')])continue;if(0x0==_0x2e8a9d[_0x51a76c][_0x4cf8('0x9e')])continue;if(_0x4cf8('0x18')!=_0x2e8a9d[_0x51a76c][_0x4cf8('0xdd')])continue;if(null==_0x2e8a9d[_0x51a76c]['pairId'])continue;let _0x2eed0a=_0x51a76c+0x1,_0x4e872b=0x0;for(;_0x2e8a9d[_0x2eed0a]['id']!=_0x2e8a9d[_0x51a76c][_0x4cf8('0xeb')];)_0x4cf8('0x18')==_0x2e8a9d[_0x2eed0a]['type']?_0x4e872b++:'elementEnd'==_0x2e8a9d[_0x2eed0a][_0x4cf8('0xdd')]&&_0x4e872b--,_0x2eed0a++;if(0x0!=_0x4e872b){if(_0x2e8a9d[_0x51a76c][_0x4cf8('0xdc')])_0x2e8a9d[_0x51a76c][_0x4cf8('0xe2')]=!0x0;else for(;_0x2eed0a!=_0x51a76c;)_0x2e8a9d[_0x2eed0a][_0x4cf8('0xdc')]&&0x0!=_0x2e8a9d[_0x2eed0a]['distance']&&(_0x2e8a9d[_0x2eed0a]['isIncorrect']=!0x0,_0x1ed9fb[_0x4cf8('0x5e')](_0x2e8a9d[_0x2eed0a]['pairId'])),_0x2eed0a--;}}return _0x2e8a9d[_0x4cf8('0x64')](_0x2b4d8a=>!_0x2b4d8a['isIncorrect']);}[_0x4cf8('0x5a')](_0x303000){const _0x103995=this[_0x4cf8('0x37')][_0x4cf8('0x8')]['schema'];for(let _0x1d886f=0x0;_0x1d886f<_0x303000[_0x4cf8('0x33')];_0x1d886f++){if(!(_0x303000[_0x1d886f]['isAdded']||_0x303000[_0x1d886f][_0x4cf8('0x11c')]||_0x303000[_0x1d886f][_0x4cf8('0xdc')]||_0x303000[_0x1d886f][_0x4cf8('0x68')]))continue;if(0x0==_0x303000[_0x1d886f][_0x4cf8('0x9e')])continue;const _0x493156=_0x303000[_0x1d886f][_0x4cf8('0xfa')];_0x103995[_0x4cf8('0x7d')](_0x493156)||_0x103995[_0x4cf8('0xd')](_0x493156)||(_0x303000[_0x1d886f]['isAdded']&&delete _0x303000[_0x1d886f]['isAdded'],_0x303000[_0x1d886f][_0x4cf8('0x11c')]&&delete _0x303000[_0x1d886f][_0x4cf8('0x11c')],_0x303000[_0x1d886f][_0x4cf8('0x68')]&&delete _0x303000[_0x1d886f][_0x4cf8('0x68')],_0x303000[_0x1d886f]['isRemoved']&&(_0x303000[_0x1d886f][_0x4cf8('0xe2')]=!0x0));}return _0x303000[_0x4cf8('0x64')](_0x3aca4f=>!_0x3aca4f[_0x4cf8('0xe2')]);}['_makeModelFromTape'](_0x479456,_0x51a22b,_0x5e6de5){const _0x5ef3c7=new _0x3623bf(),_0x38d76d=[],_0x5a5298=new Map(),_0x4ac243=this[_0x4cf8('0x37')][_0x4cf8('0x8')],_0x547579=_0x4ac243['schema'],_0x154345=[_0x5ef3c7],_0x304513={},_0x54fdf0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x39f7c7=null;const _0x34f219=[0x0];for(let _0x2413b7=0x0;_0x2413b7<_0x479456[_0x4cf8('0x33')];_0x2413b7++){let _0xa846dd,_0x11a8e4;if('elementStart'===_0x479456[_0x2413b7][_0x4cf8('0xdd')]){_0xa846dd=_0x4ac243[_0x4cf8('0xd2')](_0x5ef3c7,_0x34f219);const _0x2426b0=new _0x17a58f(_0x479456[_0x2413b7][_0x4cf8('0xfa')][_0x4cf8('0xbe')],_0x479456[_0x2413b7][_0x4cf8('0xfa')][_0x4cf8('0xde')]());_0x154345[0x0][_0x4cf8('0xb5')](_0x2426b0),_0x34f219[_0x4cf8('0xcc')](0x0),_0x154345['unshift'](_0x2426b0),_0x11a8e4=_0x4ac243[_0x4cf8('0xd2')](_0x5ef3c7,_0x34f219),_0x39f7c7=null;}else{if('elementEnd'===_0x479456[_0x2413b7][_0x4cf8('0xdd')])_0x154345[_0x4cf8('0x10f')](),_0xa846dd=_0x4ac243[_0x4cf8('0xd2')](_0x5ef3c7,_0x34f219),_0x34f219[_0x4cf8('0xf2')](),_0x34f219[_0x34f219[_0x4cf8('0x33')]-0x1]++,_0x11a8e4=_0x4ac243[_0x4cf8('0xd2')](_0x5ef3c7,_0x34f219),_0x39f7c7=null;else{if(_0xa846dd=_0x4ac243[_0x4cf8('0xd2')](_0x5ef3c7,_0x34f219),_0x39f7c7&&_0x23da90(_0x39f7c7,_0x479456[_0x2413b7][_0x4cf8('0xfa')]))_0x39f7c7[_0x4cf8('0x91')]+=_0x479456[_0x2413b7][_0x4cf8('0xfa')][_0x4cf8('0x14')];else{const _0x1c96f9=new _0x2414ad(_0x479456[_0x2413b7][_0x4cf8('0xfa')][_0x4cf8('0x14')],_0x479456[_0x2413b7][_0x4cf8('0xfa')][_0x4cf8('0xde')]());_0x154345[0x0][_0x4cf8('0xb5')](_0x1c96f9),_0x39f7c7=_0x1c96f9;}_0x34f219[_0x34f219[_0x4cf8('0x33')]-0x1]+=_0x479456[_0x2413b7][_0x4cf8('0xfa')]['offsetSize'],_0x11a8e4=_0x4ac243[_0x4cf8('0xd2')](_0x5ef3c7,_0x34f219);}}for(const _0x50d9bb of _0x479456[_0x2413b7]['markersStart'])_0x5a5298['set'](_0x50d9bb,{'start':_0xa846dd,'end':null});_0x3e8719('isRemoveSuggestion',_0x2413b7,_0xa846dd,_0x11a8e4),_0x3e8719(_0x4cf8('0x11c'),_0x2413b7,_0xa846dd,_0x11a8e4),_0x3e8719('isRemoved',_0x2413b7,_0xa846dd,_0x11a8e4),_0x3e8719(_0x4cf8('0x0'),_0x2413b7,_0xa846dd,_0x11a8e4);for(const _0x54ed5d of _0x479456[_0x2413b7][_0x4cf8('0xc1')]){_0x5a5298[_0x4cf8('0x100')](_0x54ed5d)['end']=_0x11a8e4;}}for(const [_0x4a1e8e,_0x34c767]of _0x5a5298){const _0x102b60=this[_0x4cf8('0x37')][_0x4cf8('0x8')][_0x4cf8('0x110')](_0x34c767[_0x4cf8('0xe7')],_0x34c767['end']);_0x5ef3c7['markers']['set'](_0x4a1e8e,_0x102b60);}return _0x38d76d['sort']((_0x33ab62,_0xe4b389)=>{const _0x45c502=_0x5ef3c7[_0x4cf8('0x1f')][_0x4cf8('0x100')](_0x4cf8('0x62')+_0x33ab62['id']),_0x6a9135=_0x5ef3c7[_0x4cf8('0x1f')][_0x4cf8('0x100')](_0x4cf8('0x62')+_0xe4b389['id']);return _0x45c502[_0x4cf8('0xe7')][_0x4cf8('0xf7')](_0x6a9135['start'])?-0x1:_0x45c502[_0x4cf8('0xe7')]['isAfter'](_0x6a9135[_0x4cf8('0xe7')])?0x1:_0x45c502[_0x4cf8('0xe')]['isBefore'](_0x6a9135['end'])?-0x1:_0x45c502['end'][_0x4cf8('0x103')](_0x6a9135[_0x4cf8('0xe')])?0x1:_0x4cf8('0x5e')===_0x33ab62[_0x4cf8('0xdd')]?-0x1:0x1;}),{'root':_0x5ef3c7,'changes':_0x38d76d};function _0x3e8719(_0x52e72e,_0x10ba57,_0x1fce01,_0x46d567){const _0x512ec8=!!_0x479456[_0x10ba57][_0x52e72e],_0x5255ce=_0x512ec8?_0x479456[_0x10ba57][_0x52e72e][_0x4cf8('0x2f')]:null,_0x376c84=_0x10ba57===_0x479456[_0x4cf8('0x33')]-0x1,_0x20a7c0=_0x54fdf0[_0x52e72e][0x0],_0x4ce46f=_0x547579[_0x4cf8('0x66')](_0x479456[_0x10ba57]['item']);!_0x304513[_0x52e72e]&&_0x512ec8?_0x304513[_0x52e72e]={'start':_0x1fce01,'tapeItem':_0x479456[_0x10ba57],'userId':_0x5255ce,'type':_0x52e72e}:_0x304513[_0x52e72e]&&!_0x512ec8?(_0x304513[_0x52e72e][_0x4cf8('0xe')]=_0x1fce01,_0x4af959(_0x304513[_0x52e72e]),_0x304513[_0x52e72e]=null):_0x304513[_0x52e72e]&&_0x512ec8&&_0x304513[_0x52e72e][_0x4cf8('0x2f')]!==_0x5255ce&&(_0x304513[_0x52e72e][_0x4cf8('0xe')]=_0x1fce01,_0x20a7c0&&_0x20a7c0[_0x4cf8('0x2f')]===_0x304513[_0x52e72e][_0x4cf8('0x2f')]||_0x4af959(_0x304513[_0x52e72e]),_0x304513[_0x52e72e]={'start':_0x1fce01,'tapeItem':_0x479456[_0x10ba57],'userId':_0x5255ce,'type':_0x52e72e}),_0x304513[_0x52e72e]&&_0x4ce46f&&(_0x4cf8('0x18')!==_0x479456[_0x10ba57]['type']||_0x20a7c0&&_0x20a7c0[_0x4cf8('0x2f')]===_0x5255ce||_0x54fdf0[_0x52e72e][_0x4cf8('0x4b')]({'userId':_0x5255ce,'object':_0x479456[_0x10ba57][_0x4cf8('0xfa')],'change':_0x304513[_0x52e72e]}),_0x4cf8('0x32')===_0x479456[_0x10ba57]['type']&&_0x20a7c0&&_0x20a7c0[_0x4cf8('0x86')]===_0x479456[_0x10ba57][_0x4cf8('0xfa')]&&(_0x54fdf0[_0x52e72e]['shift'](),_0x304513[_0x52e72e]=_0x20a7c0[_0x4cf8('0xe5')])),_0x304513[_0x52e72e]&&_0x376c84&&(_0x304513[_0x52e72e][_0x4cf8('0xe')]=_0x46d567,_0x4af959(_0x304513[_0x52e72e]),_0x304513[_0x52e72e]=null);}function _0x4af959({start:_0x3f9663,end:_0x1b25c9,tapeItem:_0x1d1ed0,userId:_0x499acb,type:_0x3a424e}){const _0x558dac=_0x1d1ed0[_0x4cf8('0xfa')],_0x415554=_0x4ac243[_0x4cf8('0xb')][_0x4cf8('0x7d')](_0x558dac)&&!_0x4ac243[_0x4cf8('0xb')][_0x4cf8('0xd')](_0x558dac),_0x359a42=_0x3f9663['nodeAfter']==_0x1b25c9['parent']&&_0x1b25c9[_0x4cf8('0x8c')];if(_0x415554&&_0x359a42)return;const _0x3d0706=_0x4ac243[_0x4cf8('0x110')](_0x3f9663,_0x1b25c9),_0x3f2fa0=_0x51a22b['get'](_0x499acb),_0xfed072=new _0x156bbb({'author':_0x3f2fa0,'type':_0x4cf8('0x0')==_0x3a424e||'isAddSuggestion'==_0x3a424e?_0x4cf8('0x5e'):'remove','data':{'isSuggestion':_0x4cf8('0x11c')==_0x3a424e||'isRemoveSuggestion'==_0x3a424e},'createdAt':new Date(),'rootName':_0x5e6de5});_0x38d76d['push'](_0xfed072),_0x5ef3c7['markers']['set'](_0x4cf8('0x62')+_0xfed072['id'],_0x3d0706);}function _0x23da90(_0x110d58,_0x1e8b75){const _0x259716=_0x110d58[_0x4cf8('0xde')](),_0x225bdb=_0x1e8b75['getAttributes']();for(const _0x456a5c of _0x259716){if(_0x456a5c[0x1]!==_0x1e8b75['getAttribute'](_0x456a5c[0x0]))return!0x1;_0x225bdb['next']();}return _0x225bdb[_0x4cf8('0x56')]()[_0x4cf8('0xd1')];}}['_setConversion'](){this['editor'][_0x4cf8('0x43')][_0x4cf8('0xcd')](_0x4cf8('0x78'))[_0x4cf8('0xe9')]({'view':'revision'}),this[_0x4cf8('0x37')][_0x4cf8('0x43')][_0x4cf8('0xcd')](_0x4cf8('0x95'))['markerToHighlight']({'model':_0x4cf8('0xd3'),'view':_0xf83747=>{const _0x52aa30=_0xf83747['markerName'][_0x4cf8('0x7b')](':')[0x1],_0x183ce2=this[_0x4cf8('0xf5')](_0x52aa30);if(!_0x183ce2)return null;const _0x4cfc79=_0x4cf8('0x5e')==_0x183ce2[_0x4cf8('0xdd')]?_0x4cf8('0x9'):_0x4cf8('0x1c'),_0x15efc3=[_0x4cf8('0xb6'),_0x4cf8('0x94')+_0x4cfc79];return _0x183ce2[_0x4cf8('0x14')][_0x4cf8('0x10b')]&&_0x15efc3[_0x4cf8('0xcc')](_0x4cf8('0x94')+_0x4cfc79+_0x4cf8('0x102')),this[_0x4cf8('0xc2')]==_0x183ce2&&_0x15efc3[_0x4cf8('0xcc')](_0x4cf8('0x50')),{'classes':_0x15efc3,'attributes':{'data-change-id':_0x52aa30}};}}),this[_0x4cf8('0x37')]['conversion'][_0x4cf8('0xcd')](_0x4cf8('0x78'))[_0x4cf8('0x5e')](_0x2cbd4d=>{_0x2cbd4d['on'](_0x4cf8('0xdf'),(_0x2a5459,_0xcbda55,_0x2731ce)=>{const _0xe54a30=_0xcbda55['viewItem'][_0x4cf8('0xf')](0x0);if(!_0xe54a30||!_0xe54a30['is'](_0x4cf8('0x120'),_0x4cf8('0x2c')))return;if(!_0x2731ce['consumable'][_0x4cf8('0x42')](_0xe54a30,{'attributes':[_0x4cf8('0x51'),_0x4cf8('0xb2')]}))return;const _0xe9f8aa=_0xcbda55[_0x4cf8('0x87')][_0x4cf8('0xe7')][_0x4cf8('0xc8')];_0x2731ce[_0x4cf8('0x97')][_0x4cf8('0xa1')](_0x4cf8('0x51'),_0xe54a30[_0x4cf8('0x38')](_0x4cf8('0x51')),_0xe9f8aa),_0x2731ce['writer']['setAttribute'](_0x4cf8('0xb2'),_0xe54a30[_0x4cf8('0x38')](_0x4cf8('0xb2')),_0xe9f8aa);},{'priority':_0x4cf8('0x8a')});}),this[_0x4cf8('0x37')]['conversion'][_0x4cf8('0xcd')]('upcast')[_0x4cf8('0x5e')](_0x39cb0c=>{_0x39cb0c['on'](_0x4cf8('0x120'),(_0x572f84,_0x259b20,_0x96415d)=>{if(!_0x96415d['consumable'][_0x4cf8('0x42')](_0x259b20[_0x4cf8('0x28')],{'attributes':[_0x4cf8('0x51'),'vid_end']}))return;if(_0x259b20[_0x4cf8('0x87')][_0x4cf8('0x10d')])return;const _0x28ae25=_0x259b20['modelRange'][_0x4cf8('0xe7')][_0x4cf8('0xc8')];_0x28ae25[_0x4cf8('0x93')](_0x4cf8('0x51'))||_0x28ae25[_0x4cf8('0x93')](_0x4cf8('0x119'))||(_0x96415d[_0x4cf8('0x97')][_0x4cf8('0xa1')](_0x4cf8('0x51'),_0x259b20['viewItem'][_0x4cf8('0x38')](_0x4cf8('0x51')),_0x28ae25),_0x96415d['writer']['setAttribute'](_0x4cf8('0xb2'),_0x259b20[_0x4cf8('0x28')]['getAttribute']('vid_end'),_0x28ae25));},{'priority':_0x4cf8('0x8a')});}),this['editor'][_0x4cf8('0x43')]['for']('upcast')[_0x4cf8('0xbb')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x228b00=>_0x228b00[_0x4cf8('0x38')](_0x4cf8('0x119'))}}),this['editor'][_0x4cf8('0x8')]['schema']['on'](_0x4cf8('0xf8'),(_0x4ba478,[,_0x470431])=>{['vid_start',_0x4cf8('0xb2'),_0x4cf8('0x119')][_0x4cf8('0x8e')](_0x470431)&&(_0x4ba478[_0x4cf8('0x3')]=!0x0,_0x4ba478['stop']());},{'priority':'highest'}),this[_0x4cf8('0x37')][_0x4cf8('0x43')][_0x4cf8('0xcd')](_0x4cf8('0x13'))['add'](_0x1202fa=>{_0x1202fa['on'](_0x4cf8('0x6'),(_0x2262d6,_0x179a5a,_0x59faca)=>{if('\x20'!=_0x179a5a[_0x4cf8('0xfa')][_0x4cf8('0x14')]||_0x179a5a[_0x4cf8('0xfa')][_0x4cf8('0x117')][_0x4cf8('0x99')]>0x1)return;if(!_0x59faca[_0x4cf8('0x54')][_0x4cf8('0x42')](_0x179a5a[_0x4cf8('0xfa')],_0x2262d6[_0x4cf8('0xbe')]))return;const _0x11dde8=_0x59faca[_0x4cf8('0x97')],_0x4238fc=_0x59faca['mapper'][_0x4cf8('0xc5')](_0x179a5a[_0x4cf8('0xd7')]);_0x11dde8[_0x4cf8('0x3f')](_0x4238fc,_0x11dde8['createAttributeElement'](_0x4cf8('0x6e')));});}),this['editor'][_0x4cf8('0x43')]['for'](_0x4cf8('0x13'))[_0x4cf8('0xa3')]({'model':_0x4cf8('0xd3')}),this[_0x4cf8('0x37')][_0x4cf8('0x11b')][_0x4cf8('0x104')]['on'](_0x4cf8('0x45'),function(_0x48ccac){const _0x34128c=_0x48ccac[_0x4cf8('0x2d')][_0x4cf8('0x100')](_0x4cf8('0x53'));return(_0x4e1361,_0x4d0445,_0x5834ca)=>{const _0x29f47f=_0x4d0445[_0x4cf8('0xf0')][_0x4cf8('0x7b')](':')[0x1],_0x123626=_0x34128c[_0x4cf8('0xf5')](_0x29f47f);if(!_0x123626)return null;const _0x5d0177=_0x4cf8('0x5e')==_0x123626[_0x4cf8('0xdd')]?_0x4cf8('0x7b'):_0x4cf8('0xa5');if(!_0x5834ca[_0x4cf8('0x54')][_0x4cf8('0xee')](_0x4d0445[_0x4cf8('0xf9')],_0x4e1361[_0x4cf8('0xbe')]))return;const _0x27d933=_0x4d0445[_0x4cf8('0xf9')]['getWalker'](),_0x46f242=_0x4d0445['markerRange'][_0x4cf8('0xe7')],_0x588256=_0x48ccac[_0x4cf8('0x8')][_0x4cf8('0xb')];let _0x1cfcfc=null,_0x269dbe=null,_0x24883c=!0x1,_0x400ed6=!0x1;for(const _0x285389 of _0x27d933){const _0x5ae2c1=_0x285389[_0x4cf8('0xfa')];_0x24883c=_0x24883c||_0x588256[_0x4cf8('0x4')](_0x5ae2c1);const _0x124176=_0x5834ca[_0x4cf8('0x23')]['toViewElement'](_0x5ae2c1);if(_0x124176&&_0x124176[_0x4cf8('0x7')](_0x4cf8('0x109')))return;_0x4cf8('0x32')==_0x285389['type']&&(_0x588256[_0x4cf8('0x7d')](_0x5ae2c1)&&!_0x588256[_0x4cf8('0xd')](_0x5ae2c1)&&(_0x5ae2c1['nextSibling']||_0x46f242['isAtEnd']?_0x1cfcfc&&_0x1cfcfc[_0x4cf8('0x117')]==_0x5ae2c1||(_0x1cfcfc=_0x5ae2c1,_0x50e19e(_0x285389['previousPosition']),_0x400ed6=!0x0):_0x269dbe=_0x269dbe||_0x285389[_0x4cf8('0xb7')]));}function _0x50e19e(_0x1a72ef){const _0x200cdf=_0x5834ca[_0x4cf8('0x97')][_0x4cf8('0x8d')](_0x4cf8('0x6e'),{'class':_0x4cf8('0x94')+_0x5d0177}),_0x31a743=_0x5834ca[_0x4cf8('0x23')]['toViewPosition'](_0x1a72ef);_0x123626[_0x4cf8('0x14')][_0x4cf8('0x10b')]&&_0x5834ca[_0x4cf8('0x97')]['addClass'](_0x4cf8('0x94')+_0x5d0177+_0x4cf8('0x102'),_0x200cdf),_0x34128c[_0x4cf8('0xc2')]==_0x123626&&_0x5834ca[_0x4cf8('0x97')][_0x4cf8('0x124')](_0x4cf8('0x50'),_0x200cdf),_0x5834ca[_0x4cf8('0x97')]['insert'](_0x31a743,_0x200cdf),_0x5834ca[_0x4cf8('0x23')][_0x4cf8('0x8f')](_0x200cdf,_0x4d0445[_0x4cf8('0xf0')]);}_0x24883c||_0x400ed6||!_0x269dbe||_0x50e19e(_0x269dbe);};}(this[_0x4cf8('0x37')]),{'priority':_0x4cf8('0x2a')}),this[_0x4cf8('0x37')][_0x4cf8('0x11b')]['downcastDispatcher']['on'](_0x4cf8('0xf6'),(_0xf6d8d9,_0x69629f,_0x1cc577)=>{const _0x22831d=_0x1cc577[_0x4cf8('0x23')]['markerNameToElements'](_0x69629f[_0x4cf8('0xf0')]);if(_0x22831d)for(const _0x4aafff of _0x22831d)(_0x4aafff[_0x4cf8('0xab')]('ck-suggestion-marker-split')||_0x4aafff['hasClass'](_0x4cf8('0x46')))&&(_0x1cc577[_0x4cf8('0x23')][_0x4cf8('0xbf')](_0x4aafff,_0x69629f[_0x4cf8('0xf0')]),_0x1cc577[_0x4cf8('0x97')][_0x4cf8('0xd6')](_0x4aafff));},{'priority':_0x4cf8('0x2a')}),this[_0x4cf8('0x37')][_0x4cf8('0x11b')][_0x4cf8('0x104')]['on'](_0x4cf8('0x45'),(_0x523fdd,_0x43208b,_0x137073)=>{const _0x43907a=_0x43208b[_0x4cf8('0xf0')]['split'](':')[0x1],_0x1556e5=this[_0x4cf8('0xf5')](_0x43907a);if(!_0x1556e5)return null;const _0x45e93f='add'==_0x1556e5['type']?_0x4cf8('0x7b'):_0x4cf8('0xa5');if(_0x137073[_0x4cf8('0x54')][_0x4cf8('0xee')](_0x43208b[_0x4cf8('0xf9')],_0x523fdd['name']))for(const _0x444f9d of _0x43208b['markerRange'][_0x4cf8('0x31')]()){if(!_0x444f9d['is'](_0x4cf8('0x120'),_0x4cf8('0x5b')))continue;const _0x4b536a=_0x137073[_0x4cf8('0x97')][_0x4cf8('0x8d')](_0x4cf8('0x6e'),{'class':_0x4cf8('0x94')+_0x45e93f}),_0x5b206b=_0x137073[_0x4cf8('0x23')][_0x4cf8('0x65')](this[_0x4cf8('0x37')]['model'][_0x4cf8('0x107')](_0x444f9d));_0x1556e5[_0x4cf8('0x14')][_0x4cf8('0x10b')]&&_0x137073['writer'][_0x4cf8('0x124')](_0x4cf8('0x94')+_0x45e93f+_0x4cf8('0x102'),_0x4b536a),this[_0x4cf8('0xc2')]==_0x1556e5&&_0x137073[_0x4cf8('0x97')]['addClass']('ck-suggestion-marker--active',_0x4b536a),_0x137073['writer'][_0x4cf8('0x5f')](_0x5b206b,_0x4b536a),_0x137073[_0x4cf8('0x23')][_0x4cf8('0x8f')](_0x4b536a,_0x43208b[_0x4cf8('0xf0')]);}},{'priority':_0x4cf8('0x2a')}),this[_0x4cf8('0x37')]['model'][_0x4cf8('0xd9')]['on'](_0x4cf8('0xe5'),()=>{this['editor'][_0x4cf8('0x11b')][_0x4cf8('0x92')][_0x4cf8('0xe5')](_0x191430=>{for(const _0x1fa9c4 of this[_0x4cf8('0x37')][_0x4cf8('0x8')][_0x4cf8('0xd9')][_0x4cf8('0x88')]()){const _0x4c961c=this[_0x4cf8('0x37')][_0x4cf8('0x8')]['document']['getRoot'](_0x1fa9c4),_0x5147c9=this[_0x4cf8('0x37')]['editing'][_0x4cf8('0x92')]['document'][_0x4cf8('0xca')](_0x1fa9c4);if(_0x5147c9){const _0x2a0a7e=_0x4c961c[_0x4cf8('0x38')]('revisionHistoryAttachChange');if(_0x191430[_0x4cf8('0x75')](_0x4cf8('0x2b'),_0x5147c9),_0x191430[_0x4cf8('0xe6')](_0x4cf8('0x81'),_0x5147c9),_0x191430['removeClass'](_0x4cf8('0xaf'),_0x5147c9),_0x191430[_0x4cf8('0xe6')]('ck-revision-history-root--active',_0x5147c9),_0x2a0a7e){const _0xb7fbcc=this[_0x4cf8('0xf5')](_0x2a0a7e);if(!_0xb7fbcc)return null;_0x191430[_0x4cf8('0xa1')](_0x4cf8('0x2b'),_0x2a0a7e,_0x5147c9),_0x191430[_0x4cf8('0x124')]('ck-revision-history-root-'+_0xb7fbcc[_0x4cf8('0xdd')],_0x5147c9),this[_0x4cf8('0xc2')]==_0xb7fbcc&&_0x191430[_0x4cf8('0x124')](_0x4cf8('0x10c'),_0x5147c9);}}}});}),this['editor'][_0x4cf8('0x43')][_0x4cf8('0xcd')](_0x4cf8('0x78'))['dataToMarker']({'view':'comment','model':_0x36bad1=>_0x4cf8('0x1a')+_0x36bad1,'converterPriority':_0x4cf8('0x112')}),this[_0x4cf8('0x37')][_0x4cf8('0x43')]['for'](_0x4cf8('0x78'))[_0x4cf8('0xe9')]({'view':_0x4cf8('0xe0'),'model':_0x37f172=>'revision-suggestion:'+_0x37f172,'converterPriority':_0x4cf8('0x112')}),this[_0x4cf8('0x37')][_0x4cf8('0x43')][_0x4cf8('0xcd')](_0x4cf8('0x13'))[_0x4cf8('0xa3')]({'model':_0x4cf8('0xa2'),'view':_0x1decd9=>({'name':_0x4cf8('0xad')+_0x1decd9,'group':_0x4cf8('0xa2')}),'converterPriority':_0x4cf8('0x112')}),this[_0x4cf8('0x37')][_0x4cf8('0x43')]['for'](_0x4cf8('0x95'))['markerToHighlight']({'model':_0x4cf8('0xa2'),'view':_0x305f3b=>{const _0x5c7ba4=_0x305f3b[_0x4cf8('0xf0')][_0x4cf8('0x7b')](':')[0x1];return _0x4cf8('0x9')!=_0x5c7ba4&&'deletion'!=_0x5c7ba4?null:{'classes':[_0x4cf8('0x1e'),_0x4cf8('0xb3')+_0x5c7ba4]};}}),this['editor'][_0x4cf8('0x11b')][_0x4cf8('0x104')]['on'](_0x4cf8('0xe1'),et(this[_0x4cf8('0x37')],_0x4cf8('0xa5')),{'priority':_0x4cf8('0x2a')}),this[_0x4cf8('0x37')]['editing'][_0x4cf8('0x104')]['on'](_0x4cf8('0xd0'),et(this[_0x4cf8('0x37')],'split'),{'priority':_0x4cf8('0x2a')}),this[_0x4cf8('0x37')]['editing'][_0x4cf8('0x104')]['on']('removeMarker:revision-suggestion',(_0x434eb7,_0x468a50,_0x5a9317)=>{const _0x337452=_0x5a9317[_0x4cf8('0x23')][_0x4cf8('0x4e')](_0x468a50[_0x4cf8('0xf0')]);if(_0x337452)for(const _0x401f34 of _0x337452)_0x401f34['is'](_0x4cf8('0x69'))&&(_0x5a9317[_0x4cf8('0x23')][_0x4cf8('0xbf')](_0x401f34,_0x468a50[_0x4cf8('0xf0')]),_0x5a9317[_0x4cf8('0x97')][_0x4cf8('0xd6')](_0x401f34));},{'priority':_0x4cf8('0x2a')});}['_getChangeFromId'](_0x8fdcc3){return this['_changeIdToChange'][_0x4cf8('0x100')](_0x8fdcc3);}[_0x4cf8('0xf1')](_0x12eabf){return this[_0x4cf8('0x2e')]&&this['_changeView'][_0x4cf8('0x1')](),this[_0x4cf8('0x2e')]=new _0x890e6f(this[_0x4cf8('0x37')]['locale'],_0x12eabf),this[_0x4cf8('0x2e')];}['_initInteractions'](){this[_0x4cf8('0x37')][_0x4cf8('0x8')][_0x4cf8('0xd9')][_0x4cf8('0x90')][_0x4cf8('0x83')](_0x4cf8('0xd3')),this['on']('change:activeView',(_0x4e1567,_0x4da4eb,_0x32a172,_0x1519cb)=>{_0x1519cb&&this['_balloon'][_0x4cf8('0xd6')](_0x1519cb),_0x32a172&&(this['_balloon'][_0x4cf8('0x5e')]({'view':_0x32a172,'stackId':_0x4cf8('0xfc'),'position':{'target':()=>{const _0x2402da=this[_0x4cf8('0x37')][_0x4cf8('0x11b')],_0x511a6d=this[_0x4cf8('0xf5')](_0x32a172[_0x4cf8('0x9a')]);let _0x6dc579;if(_0x511a6d[_0x4cf8('0x14')]['isOnRoot']){const _0x2b3173=_0x2402da[_0x4cf8('0x92')]['getDomRoot'](_0x511a6d[_0x4cf8('0xb8')]);_0x6dc579=Array['from'](_0x2b3173[_0x4cf8('0x29')]());}else{const _0x5615c5=this['editor'][_0x4cf8('0x8')][_0x4cf8('0x1f')][_0x4cf8('0x100')](_0x4cf8('0x62')+_0x32a172[_0x4cf8('0x9a')]);_0x6dc579=Array[_0x4cf8('0x6d')](_0x2402da[_0x4cf8('0x23')][_0x4cf8('0x4e')](_0x5615c5['name']))['map'](_0x4d0aed=>_0x2402da['view'][_0x4cf8('0x113')][_0x4cf8('0x63')](_0x4d0aed))[_0x4cf8('0xb1')](_0x4f76f0=>Array[_0x4cf8('0x6d')](_0x4f76f0[_0x4cf8('0x29')]()))[_0x4cf8('0xd5')]();}if(!this[_0x4cf8('0xcb')])return _0x6dc579[0x0];return _0x6dc579['find'](_0x2a98a2=>_0x2a98a2[_0x4cf8('0xa6')]-0x3<=this[_0x4cf8('0xcb')]['y']&&_0x2a98a2[_0x4cf8('0x10')]+0x3>=this[_0x4cf8('0xcb')]['y']&&_0x2a98a2[_0x4cf8('0x89')]-0x3<=this[_0x4cf8('0xcb')]['x']&&_0x2a98a2['right']+0x3>=this[_0x4cf8('0xcb')]['x'])||_0x6dc579[0x0];}}}),this[_0x4cf8('0x108')][_0x4cf8('0x106')](_0x4cf8('0xfc')));}),this['on'](_0x4cf8('0x96'),(_0x44b946,_0x12a82a,_0x1548e6,_0x102471)=>{this['activeView']=_0x1548e6?this[_0x4cf8('0xf1')](_0x1548e6):null,this['editor'][_0x4cf8('0x8')][_0x4cf8('0xe5')](()=>{const _0x33f82e=this['editor'][_0x4cf8('0x11b')];_0x102471&&(_0x102471['data'][_0x4cf8('0x9f')]?_0x33f82e[_0x4cf8('0x92')][_0x4cf8('0xe5')](_0x14a0a1=>{_0x14a0a1[_0x4cf8('0xe6')](_0x4cf8('0x10c'),_0x33f82e[_0x4cf8('0x92')][_0x4cf8('0xd9')][_0x4cf8('0xca')](_0x102471[_0x4cf8('0xb8')]));}):_0x33f82e[_0x4cf8('0x6a')](_0x4cf8('0x62')+_0x102471['id'])),_0x1548e6&&(_0x1548e6['data'][_0x4cf8('0x9f')]?_0x33f82e['view']['change'](_0x142b99=>{_0x142b99[_0x4cf8('0x124')](_0x4cf8('0x10c'),_0x33f82e[_0x4cf8('0x92')][_0x4cf8('0xd9')]['getRoot'](_0x1548e6[_0x4cf8('0xb8')]));}):_0x33f82e['reconvertMarker']('revision:'+_0x1548e6['id']));});}),this[_0x4cf8('0x11a')](this[_0x4cf8('0x37')]['editing'][_0x4cf8('0x92')][_0x4cf8('0xd9')],_0x4cf8('0x10a'),(_0x242031,_0x290ed0)=>{if(this['activeChange'])return;const _0x17e414=this[_0x4cf8('0xbd')](_0x290ed0['target']),_0xe623e1=this[_0x4cf8('0xa0')][_0x4cf8('0x100')](_0x17e414);_0xe623e1?(this[_0x4cf8('0xcb')]={'x':_0x290ed0[_0x4cf8('0xba')]['x'],'y':_0x290ed0[_0x4cf8('0xba')]['y']},this[_0x4cf8('0x44')]=this[_0x4cf8('0xf1')](_0xe623e1)):(this['_activeViewTarget']=null,this[_0x4cf8('0x44')]=null);}),this['listenTo'](this[_0x4cf8('0x37')][_0x4cf8('0x11b')][_0x4cf8('0x92')]['document'],_0x4cf8('0xc0'),(_0x509264,_0x28af23)=>{const _0x23ae6c=this['_findChangeIdFromDomTarget'](_0x28af23[_0x4cf8('0xbc')]),_0x26fce6=this['_changeIdToChange'][_0x4cf8('0x100')](_0x23ae6c);_0x26fce6?(this[_0x4cf8('0xcb')]={'x':_0x28af23['domEvent']['x'],'y':_0x28af23[_0x4cf8('0xba')]['y']},_0x26fce6===this[_0x4cf8('0xc2')]?this[_0x4cf8('0x108')]['updatePosition']():this['activeChange']=_0x26fce6):(this[_0x4cf8('0xcb')]=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2f148c){do{const _0x1ffe8e=_0x2f148c[_0x4cf8('0x38')](_0x4cf8('0x2b'));if(_0x1ffe8e)return _0x1ffe8e;_0x2f148c=_0x2f148c['parent'];}while(_0x2f148c);return null;}[_0x4cf8('0x6c')](){this[_0x4cf8('0x37')][_0x4cf8('0x8')][_0x4cf8('0xe5')](_0x16e4f8=>{for(const _0x30724f of this[_0x4cf8('0x37')]['model'][_0x4cf8('0x1f')])_0x16e4f8[_0x4cf8('0xb9')](_0x30724f);});}}function et(_0x2e2d06,_0x29b781){return(_0x4c97e2,_0x2a1cc2,_0x2cf118)=>{if(!_0x2cf118['consumable'][_0x4cf8('0xee')](_0x2a1cc2[_0x4cf8('0xf9')],_0x4c97e2[_0x4cf8('0xbe')]))return;const _0x59e852=_0x2a1cc2[_0x4cf8('0xf9')]['getWalker'](),_0x49ac73=_0x2a1cc2[_0x4cf8('0xf9')][_0x4cf8('0xe7')],_0x60238e=_0x2e2d06[_0x4cf8('0x8')][_0x4cf8('0xb')];let _0x52932e=null,_0x32363d=null,_0x447f0f=!0x1,_0x55782b=!0x1;for(const _0x4d09ee of _0x59e852){const _0x83b55f=_0x4d09ee['item'];_0x447f0f=_0x447f0f||_0x60238e[_0x4cf8('0x4')](_0x83b55f);const _0x528e86=_0x2cf118[_0x4cf8('0x23')]['toViewElement'](_0x83b55f);if(_0x528e86&&_0x528e86[_0x4cf8('0x7')]('addHighlight'))return;_0x4cf8('0x32')==_0x4d09ee[_0x4cf8('0xdd')]&&(_0x60238e['isBlock'](_0x83b55f)&&!_0x60238e[_0x4cf8('0xd')](_0x83b55f)&&(_0x83b55f[_0x4cf8('0xe4')]||_0x49ac73[_0x4cf8('0x3a')]?_0x52932e&&_0x52932e[_0x4cf8('0x117')]==_0x83b55f||(_0x52932e=_0x83b55f,_0x1f6ce6(_0x4d09ee['previousPosition']),_0x55782b=!0x0):_0x32363d=_0x32363d||_0x4d09ee['previousPosition']));}function _0x1f6ce6(_0x10a505){const _0x111293=_0x2cf118[_0x4cf8('0x23')][_0x4cf8('0x65')](_0x10a505),_0x38791d=_0x2cf118[_0x4cf8('0x97')][_0x4cf8('0x8d')]('span',{'class':_0x4cf8('0xb3')+_0x29b781});_0x2cf118['writer'][_0x4cf8('0x5f')](_0x111293,_0x38791d),_0x2cf118[_0x4cf8('0x23')]['bindElementToMarker'](_0x38791d,_0x2a1cc2[_0x4cf8('0xf0')]);}_0x447f0f||_0x55782b||!_0x32363d||_0x1f6ce6(_0x32363d);};}export class RestoreRevisionCommand extends _0xa16986{constructor(_0x5ac115){super(_0x5ac115);const _0x33f143=_0x5ac115[_0x4cf8('0x2d')][_0x4cf8('0x100')](d);this['affectsData']=!0x1,this[_0x4cf8('0x11a')](_0x33f143,_0x4cf8('0x70'),()=>this[_0x4cf8('0x4c')]()),this[_0x4cf8('0x11a')](_0x33f143,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x24c516=this[_0x4cf8('0x37')],_0x5f19c1=_0x24c516['plugins'][_0x4cf8('0x100')](d),_0x1eeb47=_0x5f19c1['isReady']?_0x5f19c1[_0x4cf8('0x5')][_0x4cf8('0x84')]:null;_0x24c516[_0x4cf8('0x22')][_0x4cf8('0x100')](_0x4cf8('0xfb'))[_0x4cf8('0x6f')](_0x1eeb47);}[_0x4cf8('0x4c')](){const {isReady:_0x128a98,isEnabled:_0x142f14}=this[_0x4cf8('0x37')][_0x4cf8('0x2d')][_0x4cf8('0x100')](d);this[_0x4cf8('0x76')]=_0x128a98&&_0x142f14;}}export class ShowChangeCommand extends _0xa16986{constructor(_0x5026ff,{direction:_0x59bb6d}){super(_0x5026ff);const _0x148ba7=_0x5026ff[_0x4cf8('0x2d')][_0x4cf8('0x100')](d);this[_0x4cf8('0xa9')]=!0x1,this['_step']=_0x4cf8('0x19')===_0x59bb6d?0x1:-0x1,this[_0x4cf8('0x11a')](_0x148ba7,_0x4cf8('0x70'),()=>this['refresh']()),this[_0x4cf8('0x11a')](_0x148ba7,'change:isEnabled',()=>this[_0x4cf8('0x4c')]()),this['listenTo'](_0x148ba7,_0x4cf8('0x96'),()=>this[_0x4cf8('0x4c')]());}[_0x4cf8('0x4a')](){const _0x4a5ee6=this[_0x4cf8('0x37')],_0x380627=_0x4a5ee6[_0x4cf8('0x2d')]['get'](d),{isNavigationMode:_0x338a66,currentChangeNumber:_0x3ef878}=_0x380627;let _0x23093c;if(_0x380627['activeChange']=_0x338a66?_0x380627[_0x4cf8('0x5')][_0x4cf8('0x34')][_0x4cf8('0x100')](_0x3ef878+this['_step']):_0x380627['diff'][_0x4cf8('0x34')][_0x4cf8('0x40')],_0x380627['activeChange']['data'][_0x4cf8('0x9f')])_0x23093c=_0x4a5ee6[_0x4cf8('0x11b')][_0x4cf8('0x92')]['getDomRoot'](_0x380627[_0x4cf8('0xc2')][_0x4cf8('0xb8')]);else{const _0x3fedd2=_0x4a5ee6['model'][_0x4cf8('0x1f')][_0x4cf8('0x100')](_0x4cf8('0x62')+_0x380627[_0x4cf8('0xc2')]['id']);_0x23093c=_0x37d445(_0x4a5ee6[_0x4cf8('0x11b')],_0x3fedd2);}_0x2854f3({'target':_0x23093c,'viewportOffset':0x28});}[_0x4cf8('0x4c')](){const {isNavigationMode:_0x2e3b30,currentChangeNumber:_0x52c94c,numberOfChanges:_0x3606e4,isReady:_0x1756b6,isEnabled:_0x20cf60}=this[_0x4cf8('0x37')]['plugins'][_0x4cf8('0x100')](d);this[_0x4cf8('0x76')]=!!(_0x20cf60&&_0x1756b6&&_0x3606e4)&&(!_0x2e3b30||(0x1===this[_0x4cf8('0x49')]?_0x52c94c<_0x3606e4-0x1:_0x52c94c>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3486=['ck-revision-history-sidebar__revision__actions','items','stopPropagation','name','Name\x20this\x20revision','set','function','isReady','action','listenTo','Restore\x20this\x20revision','locale','threeVerticalDots','isOpen','panelPosition','isEnabled','map','find','change:isActionsDropdownOpen','isVisible','extendTemplate','buttonView','isActionsDropdownOpen','_action','bindTemplate','listView','execute','source','Compare\x20against\x20selected','first'];(function(_0x5530ce,_0x348621){const _0x17ee75=function(_0x53a012){while(--_0x53a012){_0x5530ce['push'](_0x5530ce['shift']());}};_0x17ee75(++_0x348621);}(_0x3486,0x1ca));const _0x17ee=function(_0x5530ce,_0x348621){_0x5530ce=_0x5530ce-0x0;let _0x17ee75=_0x3486[_0x5530ce];return _0x17ee75;};import{Collection as _0x4e6d15}from'ckeditor5/src/utils.js';import{icons as _0x4d194d}from'ckeditor5/src/core.js';import{ViewModel as _0x43e718,addListToDropdown as _0x38dfee,createDropdown as _0x542bca}from'ckeditor5/src/ui.js';import{getTranslation as _0x1b8a5d}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2efb80,_0x27bf81){const _0xd4ddc5=_0x2efb80[_0x17ee('0x10')],_0x128530=_0x2efb80['locale'],_0x468573=_0x542bca(_0x128530);_0x468573[_0x17ee('0x6')]='sw';const _0x21317e=function(_0x517bfc,_0x1fc998){const _0x344159=function(_0x2155c7,_0x139467){const _0x1a6d8e=_0x2155c7[_0x17ee('0x3')],_0x137e85={'Compare\x20against\x20selected':_0x1b8a5d(_0x1a6d8e,_0x17ee('0x14')),'Name\x20this\x20revision':_0x1b8a5d(_0x1a6d8e,_0x17ee('0x1a')),'Restore\x20this\x20revision':_0x1b8a5d(_0x1a6d8e,_0x17ee('0x2'))};return _0x139467[_0x17ee('0x8')](_0x2b93a6=>{const _0x38af55=_0x137e85[_0x2b93a6[_0x17ee('0x19')]];return _0x38af55&&_0x38af55!==_0x2b93a6[_0x17ee('0x19')]&&(_0x2b93a6[_0x17ee('0x19')]=_0x38af55),_0x2b93a6;});}(_0x517bfc,_0x1fc998),_0x546c59=new _0x4e6d15();for(const _0x1c84e4 of _0x344159){const _0x4bed1b={'type':'button','model':new _0x43e718({'label':_0x1c84e4[_0x17ee('0x19')],'class':_0x1c84e4['class'],'withText':!0x0,'_action':_0x1c84e4['action']})};_0x4bed1b['model']['bind'](_0x17ee('0x7'))['to'](_0x517bfc,_0x17ee('0xe'),_0xd7f99d=>_0x17ee('0x1c')!=typeof _0x1c84e4['isEnabled']||(!_0xd7f99d||_0x1c84e4['isEnabled'](_0x517bfc))),_0x546c59['add'](_0x4bed1b);}return _0x546c59;}(_0x2efb80,_0x27bf81);return _0x2efb80['bind'](_0x17ee('0xe'))['to'](_0x468573,_0x17ee('0x5')),_0x468573[_0x17ee('0xd')][_0x17ee('0x1b')]({'label':_0x1b8a5d(_0x128530,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4d194d[_0x17ee('0x4')]}),_0x468573[_0x17ee('0xc')]({'attributes':{'class':[_0x17ee('0x16'),_0xd4ddc5['if'](_0x17ee('0xe'),'ck-on')]},'on':{'click':_0xd4ddc5['to'](_0x5aa1da=>_0x5aa1da[_0x17ee('0x18')]())}}),_0x468573['on'](_0x17ee('0x12'),_0x44a0b0=>{_0x2efb80[_0x17ee('0x1d')]&&_0x17ee('0x1c')==typeof _0x44a0b0[_0x17ee('0x13')][_0x17ee('0xf')]&&_0x44a0b0[_0x17ee('0x13')][_0x17ee('0xf')](_0x2efb80);}),_0x38dfee(_0x468573,_0x21317e),_0x468573[_0x17ee('0x1')](_0x2efb80,_0x17ee('0xa'),(_0xb877b9,_0x474fe8,_0x267876)=>{if(_0x267876)for(const _0x358ec1 of _0x468573[_0x17ee('0x11')][_0x17ee('0x17')]){const _0x9fed2e=_0x358ec1['children'][_0x17ee('0x15')],_0x27801=_0x27bf81[_0x17ee('0x9')](_0x11fb62=>_0x11fb62[_0x17ee('0x0')]===_0x9fed2e[_0x17ee('0xf')])['isVisible'];_0x358ec1[_0x17ee('0xb')]=void 0x0===_0x27801||_0x27801(_0x2efb80);}}),_0x468573;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x555c=['ck-revision-history-sidebar__revision-author__name','push','setTemplate','0\x200\x2011\x2010','Revision\x20creator','name','ck-revision-history-sidebar__revision-author'];(function(_0x5b7ebb,_0x555c52){const _0x3674e3=function(_0x111224){while(--_0x111224){_0x5b7ebb['push'](_0x5b7ebb['shift']());}};_0x3674e3(++_0x555c52);}(_0x555c,0x1e4));const _0x3674=function(_0x5b7ebb,_0x555c52){_0x5b7ebb=_0x5b7ebb-0x0;let _0x3674e3=_0x555c[_0x5b7ebb];return _0x3674e3;};import{View as _0x11962d,IconView as _0x127fdf}from'ckeditor5/src/ui.js';import{getTranslation as _0x4e52ed}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x3316b7 from'../../../theme/icons/user.svg';export default class ti extends _0x11962d{constructor(_0x6aac6c,_0x46a490,_0x5d6447){super(_0x6aac6c);const _0x5d3d4f=new _0x127fdf();_0x5d3d4f['set']({'content':_0x3316b7,'viewBox':_0x3674('0x2')});const _0x1a1983=['ck',_0x3674('0x5')];_0x5d6447&&_0x1a1983[_0x3674('0x0')]('ck-revision-history-sidebar__revision-author_creator');const _0x3f82d9=[{'tag':'span','attributes':{'class':['ck',_0x3674('0x6')],'title':_0x4e52ed(_0x6aac6c,_0x5d6447?_0x3674('0x3'):'Revision\x20author')},'children':[_0x5d3d4f,_0x46a490[_0x3674('0x4')]]}];this[_0x3674('0x1')]({'tag':'li','attributes':{'class':_0x1a1983},'children':_0x3f82d9});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x45ca=['Revision\x20name','span','ck-revision-history-sidebar__revision-name','set'];(function(_0x2bb37d,_0x45ca44){var _0x1e1873=function(_0x50b6b3){while(--_0x50b6b3){_0x2bb37d['push'](_0x2bb37d['shift']());}};_0x1e1873(++_0x45ca44);}(_0x45ca,0x11b));var _0x1e18=function(_0x2bb37d,_0x45ca44){_0x2bb37d=_0x2bb37d-0x0;var _0x1e1873=_0x45ca[_0x2bb37d];return _0x1e1873;};import{LabeledFieldView as _0x1f5c23}from'ckeditor5/src/ui.js';import{getTranslation as _0x5873f2}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x1f5c23{constructor(_0x35b139,_0x546b27){super(_0x35b139,_0x546b27),this[_0x1e18('0x0')]({'label':_0x5873f2(_0x35b139,_0x1e18('0x1'))}),this['extendTemplate']({'tag':_0x1e18('0x2'),'attributes':{'class':[_0x1e18('0x3')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10de=['fieldView','ck-revision-history-sidebar__revision','filter','unshift','setTemplate','isSelected','bindTemplate','setName','220','listenTo','ck-revision-history-sidebar__revision-wrapper','revisionNameView','ck-reset','placeholder','authors','render','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','uiLanguage','set','unhighlight','select','isActionsDropdownOpen','creator','ck-revision-history-sidebar__revision_highlighted','span','div','isEnabled','deselect','isConfirm','map','ck-disabled','length','extendTemplate','isHighlighted','highlight','value','revisionActionsView','bind','srcElement','name','fire','createdAt','ck-revision-history-sidebar__revision__controls-wrapper','_createdAtFormatted'];(function(_0x386147,_0x10decf){const _0x64b53=function(_0x48b80c){while(--_0x48b80c){_0x386147['push'](_0x386147['shift']());}};_0x64b53(++_0x10decf);}(_0x10de,0x72));const _0x64b5=function(_0x386147,_0x10decf){_0x386147=_0x386147-0x0;let _0x64b53=_0x10de[_0x386147];return _0x64b53;};import{View as _0x420262,createLabeledInputText as _0x2fb72e}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x4dc0e0}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4cae1f from'./revisionnameview.js';import _0x4845b2 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x36283c}from'./utils.js';import{createActionsDropdownView as _0xdf720f}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x4dc0e0(_0x420262){constructor(_0xf3a8e,_0x18d007,_0x2a3fa2){super(_0xf3a8e);const _0x23c7da=this[_0x64b5('0x18')],_0x4169c7=function(_0xb83f24,_0x2e9ffa){const _0x37b28b=Array['from'](_0x2e9ffa[_0x64b5('0x20')])[_0x64b5('0x14')](_0x41739b=>_0x41739b!=_0x2e9ffa[_0x64b5('0x28')]);return _0x2e9ffa['creator']&&_0x37b28b[_0x64b5('0x15')](_0x2e9ffa['creator']),_0x37b28b[_0x64b5('0x3')](_0x4d997b=>new _0x4845b2(_0xb83f24,_0x4d997b,_0x4d997b==_0x2e9ffa[_0x64b5('0x28')]));}(_0xf3a8e,_0x18d007);this['id']=_0x18d007['id'],this['_revision']=_0x18d007,this['bind']('name',_0x64b5('0xf'))['to'](_0x18d007),this[_0x64b5('0xb')](_0x64b5('0x11'))['to'](this,_0x64b5('0xf'),_0x476820=>_0x476820?_0x36283c(_0xf3a8e[_0x64b5('0x23')],_0x476820):void 0x0),this[_0x64b5('0x24')](_0x64b5('0x17'),!0x1),this[_0x64b5('0x24')](_0x64b5('0x7'),!0x1),this['set'](_0x64b5('0x27'),!0x1),this[_0x64b5('0x24')]('isReady',!0x1),this[_0x64b5('0x24')]('isEnabled',!0x1),this[_0x64b5('0x1d')]=new _0x4cae1f(_0xf3a8e,_0x2fb72e),this['revisionNameView'][_0x64b5('0x12')][_0x64b5('0x6')]({'attributes':{'maxlength':_0x64b5('0x1a')}}),this[_0x64b5('0x1d')][_0x64b5('0x12')][_0x64b5('0xb')](_0x64b5('0x9'),_0x64b5('0x1f'))['to'](this,_0x64b5('0xd'),_0x64b5('0x11')),this['revisionNameView'][_0x64b5('0xb')](_0x64b5('0x0'))['to'](this,_0x64b5('0x17'),this,_0x64b5('0x0'),(_0x2f4f80,_0x405cda)=>_0x2f4f80&&_0x405cda),this[_0x64b5('0xa')]=_0x2a3fa2&&_0x2a3fa2[_0x64b5('0x5')]?_0xdf720f(this,_0x2a3fa2):'',this[_0x64b5('0xa')]&&this[_0x64b5('0xa')][_0x64b5('0xb')]('isEnabled')['to'](this),this[_0x64b5('0x16')]({'tag':_0x64b5('0x2b'),'attributes':{'class':['ck',_0x64b5('0x1e'),_0x64b5('0x1c'),_0x23c7da['if'](_0x64b5('0x2'),_0x64b5('0x22'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x64b5('0x1e'),_0x64b5('0x13'),_0x23c7da['if']('isEnabled',_0x64b5('0x4'),_0x41ec5d=>!_0x41ec5d),_0x23c7da['if'](_0x64b5('0x17'),'ck-revision-history-sidebar__revision_selected'),_0x23c7da['if'](_0x64b5('0x7'),_0x64b5('0x29')),_0x23c7da['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x64b5('0x1d')],{'tag':_0x64b5('0x2a'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x23c7da['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck',_0x64b5('0x10')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x4169c7}]},this['revisionActionsView']],'on':{'click':_0x23c7da['to'](_0xb29989=>{_0xb29989[_0x64b5('0xc')]['closest']('.ck-thread__remove-confirm')||this['isReady']&&this[_0x64b5('0x0')]&&this[_0x64b5('0xe')]('select',{'id':this['id']});})}}]});}[_0x64b5('0x21')](){super[_0x64b5('0x21')]();const _0x340790=this[_0x64b5('0x1d')][_0x64b5('0x12')]['element'];this[_0x64b5('0x1b')](_0x340790,'change',()=>{this['fire'](_0x64b5('0x19'),{'id':this['id'],'name':_0x340790[_0x64b5('0x9')]});});}[_0x64b5('0x26')](){this['isSelected']=!0x0;}[_0x64b5('0x1')](){this[_0x64b5('0x17')]=!0x1;}[_0x64b5('0x8')](){this['isHighlighted']=!0x0;}[_0x64b5('0x25')](){this[_0x64b5('0x7')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bfd=['set','_isCollapsed','click','ck-revision-history-sidebar__subrevision-collapser_collapsed','bindTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','ck-hidden','setTemplate','span'];(function(_0x32145c,_0x3bfda3){const _0x2ba973=function(_0x252c9d){while(--_0x252c9d){_0x32145c['push'](_0x32145c['shift']());}};_0x2ba973(++_0x3bfda3);}(_0x3bfd,0x136));const _0x2ba9=function(_0x32145c,_0x3bfda3){_0x32145c=_0x32145c-0x0;let _0x2ba973=_0x3bfd[_0x32145c];return _0x2ba973;};import{View as _0x3cbf60}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x3cbf60{constructor(_0x3de21e){super(_0x3de21e);const _0x358bc5=this[_0x2ba9('0x0')];this[_0x2ba9('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2ba9('0x3')]({'tag':_0x2ba9('0x4'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x358bc5['if']('isVisible',_0x2ba9('0x2'),_0x1119e1=>!_0x1119e1),_0x358bc5['if']('_isCollapsed',_0x2ba9('0x8'))],'role':'button','aria-pressed':_0x358bc5['to'](_0x2ba9('0x6'),_0x47878c=>_0x47878c?'false':'true')},'children':[{'tag':'span','attributes':{'class':['ck',_0x2ba9('0x1')]}}],'on':{'click':_0x358bc5['to'](_0x2ba9('0x7'))}});}['toggle'](){this[_0x2ba9('0x6')]=!this[_0x2ba9('0x6')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3688=['uiLanguage','set','ck-reset','fire','bindTemplate','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__subrevision','_createdAtFormatted','bind','ck-revision-history-sidebar__revision_selected','isSelected','_parentRevisionId','setTemplate','select','div','ck-revision-history-sidebar__revision','createdAt','creator','deselect'];(function(_0x6c60f6,_0x368892){const _0x2ec242=function(_0x6e5613){while(--_0x6e5613){_0x6c60f6['push'](_0x6c60f6['shift']());}};_0x2ec242(++_0x368892);}(_0x3688,0x80));const _0x2ec2=function(_0x6c60f6,_0x368892){_0x6c60f6=_0x6c60f6-0x0;let _0x2ec242=_0x3688[_0x6c60f6];return _0x2ec242;};import{View as _0x3c4349}from'ckeditor5/src/ui.js';import _0x19894a from'./revisionauthorview.js';import{dateToPrettyFormat as _0x130840}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x3c4349{constructor(_0x247baa,_0x5a5b7a,_0x5b3ad8){super(_0x247baa);const _0x313354=this[_0x2ec2('0x10')];this['id']=_0x5a5b7a['id'],this[_0x2ec2('0x1')]('createdAt')['to'](_0x5a5b7a),this[_0x2ec2('0xd')](_0x2ec2('0x3'),!0x1),this[_0x2ec2('0x1')](_0x2ec2('0x0'))['to'](this,_0x2ec2('0x9'),_0x3be677=>_0x3be677?_0x130840(_0x247baa[_0x2ec2('0xc')],_0x3be677):void 0x0),this[_0x2ec2('0x4')]=_0x5b3ad8,this[_0x2ec2('0x5')]({'tag':_0x2ec2('0x7'),'attributes':{'class':['ck',_0x2ec2('0xe'),_0x2ec2('0x8'),_0x2ec2('0x13'),_0x313354['if']('isSelected',_0x2ec2('0x2'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x2ec2('0x12')]},'children':[{'text':_0x313354['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x2ec2('0x11')]},'children':[new _0x19894a(_0x247baa,_0x5a5b7a[_0x2ec2('0xa')],!0x0)]}],'on':{'click':_0x313354['to'](this['select'][_0x2ec2('0x1')](this))}});}[_0x2ec2('0x6')](){this[_0x2ec2('0x3')]=!0x0,this[_0x2ec2('0xf')](_0x2ec2('0x6'),{'parentId':this[_0x2ec2('0x4')]});}[_0x2ec2('0xb')](){this[_0x2ec2('0x3')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2b86=['toLocaleTimeString','numeric','toLocaleDateString','long'];(function(_0x2c9e60,_0x2b86e5){var _0x853710=function(_0x2ff22){while(--_0x2ff22){_0x2c9e60['push'](_0x2c9e60['shift']());}};_0x853710(++_0x2b86e5);}(_0x2b86,0x11f));var _0x8537=function(_0x2c9e60,_0x2b86e5){_0x2c9e60=_0x2c9e60-0x0;var _0x853710=_0x2b86[_0x2c9e60];return _0x853710;};export function dateToPrettyFormat(_0x35b6e3,_0x227ec3){return _0x227ec3[_0x8537('0x3')](_0x35b6e3,{'month':_0x8537('0x0'),'day':'numeric'})+',\x20'+_0x227ec3[_0x8537('0x1')](_0x35b6e3,{'hour':_0x8537('0x2'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbb41=['220','keystrokes','set','locale','revisionNameInputValue','ck-revision-history-save-revision-form','cancelButtonView','shift\x20+\x20tab','ck-responsive-form','extendTemplate','_createButton','type','cancel','input','arrowup','label','arrowleft','_focusCycler','ck-button-cancel','tab','fieldView','revisionNameInputView','value','stopPropagation','listenTo','revisionName','Cancel','_createRevisionNameInput','delegate','_focusables','form','Save','submit','element','saveButtonView','arrowright','forEach','trim','ck-button-save','add'];(function(_0x2b59c0,_0xbb41d8){const _0x21dd4c=function(_0x3278ef){while(--_0x3278ef){_0x2b59c0['push'](_0x2b59c0['shift']());}};_0x21dd4c(++_0xbb41d8);}(_0xbb41,0x11a));const _0x21dd=function(_0x2b59c0,_0xbb41d8){_0x2b59c0=_0x2b59c0-0x0;let _0x21dd4c=_0xbb41[_0x2b59c0];return _0x21dd4c;};import{icons as _0x567f5e}from'ckeditor5/src/core.js';import{ButtonView as _0x342369,FocusCycler as _0x1e26d6,LabeledFieldView as _0x5952f4,View as _0x25592d,ViewCollection as _0x1faeb0,createLabeledInputText as _0x26fa3b,injectCssTransitionDisabler as _0x2ecf9b,submitHandler as _0x4245e7}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1156a8,KeystrokeHandler as _0x55d025}from'ckeditor5/src/utils.js';import{getTranslation as _0x3c1c8c}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x25592d{constructor(_0x6aa8ab){super(_0x6aa8ab),this['focusTracker']=new _0x1156a8(),this[_0x21dd('0x27')]=new _0x55d025(),this[_0x21dd('0x0')](_0x21dd('0x2'),''),this[_0x21dd('0x13')]=this[_0x21dd('0x19')](),this['saveButtonView']=this[_0x21dd('0x8')](_0x3c1c8c(_0x6aa8ab,_0x21dd('0x1d')),_0x567f5e['check'],_0x21dd('0x24')),this['saveButtonView'][_0x21dd('0x9')]=_0x21dd('0x1e'),this[_0x21dd('0x4')]=this[_0x21dd('0x8')](_0x3c1c8c(_0x6aa8ab,_0x21dd('0x18')),_0x567f5e[_0x21dd('0xa')],_0x21dd('0x10'),'cancel'),this[_0x21dd('0x1b')]=new _0x1faeb0(),this[_0x21dd('0xf')]=new _0x1e26d6({'focusables':this[_0x21dd('0x1b')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x21dd('0x27')],'actions':{'focusPrevious':_0x21dd('0x5'),'focusNext':_0x21dd('0x11')}}),this['setTemplate']({'tag':_0x21dd('0x1c'),'attributes':{'class':['ck',_0x21dd('0x3'),_0x21dd('0x6')],'tabindex':'-1'},'children':[this[_0x21dd('0x13')],this[_0x21dd('0x20')],this['cancelButtonView']]}),_0x2ecf9b(this);}['render'](){super['render'](),_0x4245e7({'view':this}),([this['revisionNameInputView'],this[_0x21dd('0x20')],this['cancelButtonView']][_0x21dd('0x22')](_0x369b28=>{this[_0x21dd('0x1b')][_0x21dd('0x25')](_0x369b28),this['focusTracker'][_0x21dd('0x25')](_0x369b28[_0x21dd('0x1f')]);}),this['keystrokes'][_0x21dd('0x16')](this[_0x21dd('0x1f')]));const _0x5353ab=_0x1bfa3f=>_0x1bfa3f[_0x21dd('0x15')]();this['keystrokes'][_0x21dd('0x0')](_0x21dd('0x21'),_0x5353ab),this[_0x21dd('0x27')][_0x21dd('0x0')](_0x21dd('0xe'),_0x5353ab),this[_0x21dd('0x27')][_0x21dd('0x0')](_0x21dd('0xc'),_0x5353ab),this['keystrokes'][_0x21dd('0x0')]('arrowdown',_0x5353ab);}['focus'](){this[_0x21dd('0xf')]['focusFirst']();}get[_0x21dd('0x17')](){return this[_0x21dd('0x13')]['fieldView'][_0x21dd('0x1f')]['value'][_0x21dd('0x23')]();}set[_0x21dd('0x17')](_0x4a4851){this[_0x21dd('0x13')][_0x21dd('0x12')]['element'][_0x21dd('0x14')]=_0x4a4851[_0x21dd('0x23')]();}['reset'](){this[_0x21dd('0x13')][_0x21dd('0x12')]['element'][_0x21dd('0x14')]='';}[_0x21dd('0x19')](){const _0x27413b=new _0x5952f4(this['locale'],_0x26fa3b),_0x54f3ab=_0x27413b[_0x21dd('0x12')];return _0x54f3ab[_0x21dd('0x7')]({'attributes':{'maxlength':_0x21dd('0x26')}}),_0x27413b[_0x21dd('0xd')]=_0x3c1c8c(this[_0x21dd('0x1')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x54f3ab['on'](_0x21dd('0xb'),()=>{this[_0x21dd('0x2')]=_0x54f3ab[_0x21dd('0x1f')][_0x21dd('0x14')][_0x21dd('0x23')]();}),_0x27413b;}[_0x21dd('0x8')](_0x447fbd,_0x5d9010,_0x19cd3c,_0x1d5b94){const _0x2f99c9=new _0x342369(this[_0x21dd('0x1')]);return _0x2f99c9[_0x21dd('0x0')]({'label':_0x447fbd,'icon':_0x5d9010,'tooltip':!0x0}),_0x2f99c9['extendTemplate']({'attributes':{'class':_0x19cd3c}}),_0x1d5b94&&_0x2f99c9[_0x21dd('0x1a')]('execute')['to'](this,_0x1d5b94),_0x2f99c9;}}
|