@ckeditor/ckeditor5-revision-history 40.1.0 → 41.0.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/LICENSE.md +1 -1
- package/README.md +11 -11
- package/build/revision-history.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +6 -6
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/changeitem.d.ts +4 -4
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.d.ts +4 -4
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.d.ts +4 -4
- package/src/editor/revisionviewereditorui.js +2 -2
- package/src/editor/revisionviewereditoruiview.d.ts +5 -5
- package/src/editor/revisionviewereditoruiview.js +2 -2
- package/src/index.d.ts +12 -12
- package/src/index.js +2 -2
- package/src/revision.d.ts +4 -4
- package/src/revision.js +2 -2
- package/src/revisiondiff.d.ts +4 -4
- package/src/revisiondiff.js +2 -2
- package/src/revisionhistory.d.ts +7 -7
- package/src/revisionhistory.js +2 -2
- package/src/revisionhistoryadapter.d.ts +2 -2
- package/src/revisionhistoryadapter.js +1 -1
- package/src/revisionhistoryconfig.d.ts +1 -1
- package/src/revisionhistoryconfig.js +1 -1
- package/src/revisionsrepository.d.ts +4 -4
- package/src/revisionsrepository.js +2 -2
- package/src/revisiontracker.d.ts +6 -6
- package/src/revisiontracker.js +2 -2
- package/src/revisionviewer.d.ts +1 -1
- package/src/revisionviewer.js +2 -2
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +3 -3
- package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
- package/src/ui/revision/revisionauthorview.d.ts +1 -1
- package/src/ui/revision/revisionauthorview.js +2 -2
- package/src/ui/revision/revisionnameview.d.ts +1 -1
- package/src/ui/revision/revisionnameview.js +2 -2
- package/src/ui/revision/revisionview.d.ts +7 -7
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.d.ts +3 -3
- package/src/ui/revision/subrevisioncollapserview.js +2 -2
- package/src/ui/revision/subrevisionview.d.ts +4 -4
- package/src/ui/revision/subrevisionview.js +2 -2
- package/src/ui/revision/utils.d.ts +1 -1
- package/src/ui/revision/utils.js +2 -2
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +3 -3
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +3 -3
- package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -4
- package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +6 -6
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +7 -7
- package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
- package/src/ui/revisionssidebar/utils.d.ts +1 -1
- package/src/ui/revisionssidebar/utils.js +2 -2
- package/src/ui/revisionviewer/changedetailsview.d.ts +4 -4
- package/src/ui/revisionviewer/changedetailsview.js +2 -2
- package/src/ui/revisionviewer/changesnavigationview.d.ts +3 -3
- package/src/ui/revisionviewer/changesnavigationview.js +2 -2
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +2 -2
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
- package/src/ui/revisionviewer/revisionviewerui.d.ts +4 -4
- package/src/ui/revisionviewer/revisionviewerui.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/theme/changesnavigation.css +1 -1
- package/theme/revision/revision.css +1 -1
- package/theme/revision/revisionactions.css +1 -1
- package/theme/revision/revisionauthor.css +1 -1
- package/theme/revision/revisionname.css +1 -1
- package/theme/revision/subrevision.css +1 -1
- package/theme/revision/subrevisioncollapser.css +1 -1
- package/theme/revisionhistorysaverevisionform.css +1 -1
- package/theme/revisionssidebar/revisionssidebar.css +1 -1
- package/theme/revisionssidebar/revisionssidebarheader.css +1 -1
- package/theme/revisionssidebar/revisionssidebartimeperiod.css +1 -1
- package/theme/revisionviewer.css +1 -1
- package/theme/revisionviewerloadingoverlay.css +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3f06=['distance','changes','slice','remove','createAttributeElement','plugins','for','getDomRoot','_changeIdToChange','revision-suggestion','data','deletion','currentChangeNumber','isOnRoot','execute','low','markerNameToElements','ck-suggestion-preview-marker-','mapper','getIndex','getRootNames','numberOfChanges','getRevisionData','split','get','shift','activeChange','getWalker','end','attribute:vid','markerName','detachRoot','isIncorrect','suggestion','level','children','wrap','consume','isRemoveSuggestion','adapter','attachChange','markersStart','requires','change:numberOfChanges','resolve','viewItem','revision-end','markerRange','addClass','_update','attributesAfter','markerToHighlight','addHighlight','range','addRevision','top','createPositionBefore','ck-suggestion-preview-marker','selection','elementToAttribute','revision-start','_getRevisionsRange','getAttributes','pluginName','insertion','getClientRects','marked','config','from','isAfter','data-revision-','revisionHistory','isInline','data-change-id','concat','isLimit','modelRange','code','mapViewToDom','ck-suggestion-marker','_findChangeIdFromDomTarget','showNextChange','isAttached','view','parse','add','model','roots','push','parent','_threeWayMerge','length','side','element','refresh','splice','nodeAfter','newRevisionId','highest','insert','_cleanUp','_makeModelFromViewString','hasAttribute','createRevision','vid_start','left','stop','authors','indexOf','getCustomProperty','change','_getViewObj','name','unshift','_getViewForChange','markers','isCollapsed','removeMarker:revision-suggestion','values','bindElementToMarker','isObject','error','createUIElement','_makeModelFromTape','_removeUnsupportedChanges','setAttribute','commands','showPreviousChange','element:pre','isRemoved','then','map','activeView','_sortAndFilterDiffChanges','change:isEnabled','span','start','loadRevisionData','_changeView','getAttribute','ck-editor__editable__overlay','elementStart','delete','editing','toViewRange','_fixObsoleteTags','addMarker:revision-suggestion:insertion','_data','domEvent','ck-revision-history-root-','_revisions','forward','merge','attributes','bind','reconvertMarker','RevisionViewer','item','revision:','nextPosition','domConverter','has','isAtEnd','_step','consumable','revision','listenTo','WidgetToolbarRepository','_initInteractions','removeClass','_removeRevisionMarkers','vid','clear','test','_markInsertions','destroy','sort','isAddSuggestion','first','type','forEach','addMarker:revision-suggestion:deletion','change:activeView','includes','markerToData','_joinTapes','_makeTape','isSuggestion','set','_markMismatchedRemovedTags','toViewPosition','dataDowncast','pop','unbindElementFromMarkerName','pairId','mousedown','oldRevisionId','writer','conversion','-new','comment','suggestion:','isEnabled','ck-suggestion-marker--active','markersEnd','elementEnd','revisionHistoryLabel','editingDowncast','upcast','catch','diffData','_appendChild','downcastDispatcher','isEqual','_markSuggestions','ck-suggestion-marker-','showStack','uiElement','startIndex','removeMarker','startsWith','removeMarker:revision','changeId','previousPosition','ck-revision-history-root-remove','revisionHistoryAttachChange','_processTape','hasClass','revision-viewer','vid_end','ck-revision-history-root--active','target','rootName','_refreshStartEndIndex','endIndex','enableReadOnlyMode','_cleanMarkers','toData','_markMarkers','return','isReady','next','object','createRangeIn','_activeViewTarget','userId','editor','getRevision','default','text','schema','backward','change:activeChange','createPositionFromPath','isBlock','updatePosition','_setConversion','high','toViewElement','POSITIVE_INFINITY','_setDistance','isBefore','isContent','offsetSize','_getDiff','processor','insertions','bottom','enqueueChange','deletions','getRoot','all','index','attributesBefore','filter','_setChanges','addMarker:revision','collaboration.channelId','keys','abs','mouseover','_getChangeFromId','document','string','RevisionsRepository','repository','getRevisionRootsAttributes','isAdded','ck-revision-history-root-add','_removeMissingPairs','find','toModel','diff','_balloon'];(function(_0x4b0999,_0x3f0637){const _0x487ce7=function(_0x5ba9aa){while(--_0x5ba9aa){_0x4b0999['push'](_0x4b0999['shift']());}};_0x487ce7(++_0x3f0637);}(_0x3f06,0x19f));const _0x487c=function(_0x4b0999,_0x3f0637){_0x4b0999=_0x4b0999-0x0;let _0x487ce7=_0x3f06[_0x4b0999];return _0x487ce7;};import{Plugin as _0x4e2db7,Command as _0x2ba876}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x557e04}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5903d1}from'ckeditor5/src/ui';import{DocumentFragment as _0x1caf66,Element as _0x280eb3,Text as _0x73433e,ViewDocumentFragment as _0x5cc5f9,ViewText as _0x898bac,ViewElement as _0x1e8ef9,ViewContainerElement as _0x53cb5e,ViewAttributeElement as _0x257396,ViewEmptyElement as _0x202932,ViewRawElement as _0x32df19,ViewUIElement as _0x556dd8}from'ckeditor5/src/engine';import{Users as _0x5abab8,getMarkerDomElement as _0xd4e7f8}from'ckeditor5-collaboration/src/collaboration-core';import _0x3299af from'./ui/revisionviewer/changedetailsview';import _0x12bc0a from'./revisionsrepository';import _0x18b350 from'./changeitem';import{default as _0x14a8fc}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x497159}from'lodash-es';const tt={'c':_0x53cb5e,'a':_0x257396,'e':_0x202932,'r':_0x32df19,'u':_0x556dd8};export default class d extends _0x4e2db7{static get[_0x487c('0xec')](){return'RevisionViewer';}static get[_0x487c('0xd7')](){return[_0x5abab8,_0x5903d1,_0x12bc0a];}constructor(_0x37e942){super(_0x37e942),this[_0x487c('0xa4')]=this['editor']['plugins'][_0x487c('0xc5')](_0x487c('0xa3')),this['set'](_0x487c('0xc7'),null),this[_0x487c('0x43')]('activeView',null),this[_0x487c('0x7b')]=null,this[_0x487c('0x43')](_0x487c('0xab'),null),this[_0x487c('0x43')]('isReady',!0x1),this[_0x487c('0x43')]('isEnabled',!0x0),this['on'](_0x487c('0xd'),(_0x20cc60,_0xb983fc,_0x1472d5)=>{this['activeChange']=null,this['activeView']=null,this[_0x487c('0x7d')][_0x487c('0x16')][_0x487c('0x100')]['change'](_0x3c3ff8=>{for(const _0x537cd9 of this[_0x487c('0x7d')][_0x487c('0x16')][_0x487c('0x100')]['document'][_0x487c('0x104')])_0x1472d5?_0x3c3ff8['removeClass'](_0x487c('0x13'),_0x537cd9):_0x3c3ff8['addClass']('ck-editor__editable__overlay',_0x537cd9);});}),this['bind']('isNavigationMode')['to'](this,_0x487c('0xc7'),_0x46a0b7=>null!==_0x46a0b7),this[_0x487c('0x21')](_0x487c('0xb9'))['to'](this,'isReady',this,'diff',this,_0x487c('0xc7'),(_0x27b1e1,_0xb8165f,_0x3b8600)=>_0x27b1e1&&_0x3b8600?_0xb8165f[_0x487c('0xae')][_0x487c('0xc0')](_0x3b8600):0x0),this[_0x487c('0x21')](_0x487c('0xc2'))['to'](this,_0x487c('0x77'),this,_0x487c('0xab'),(_0x18a38d,_0x482ff5)=>_0x18a38d?_0x482ff5[_0x487c('0xae')][_0x487c('0x108')]:0x0),this[_0x487c('0x11')]=null,this[_0x487c('0xb5')]=new Map(),this[_0x487c('0xd4')]=null,this['_balloon']=this[_0x487c('0x7d')]['plugins']['get'](_0x5903d1);}['init'](){const _0x42a889=this[_0x487c('0x7d')],_0x52a8f4=new ShowChangeCommand(_0x42a889,{'direction':_0x487c('0x82')}),_0x419e44=new ShowChangeCommand(_0x42a889,{'direction':_0x487c('0x1e')});(_0x42a889[_0x487c('0x5')]['add'](_0x487c('0x6'),_0x52a8f4),_0x42a889[_0x487c('0x5')]['add'](_0x487c('0xfe'),_0x419e44),_0x42a889['commands'][_0x487c('0x102')]('restoreRevision',new RestoreRevisionCommand(_0x42a889)),this['on'](_0x487c('0xd8'),()=>{_0x52a8f4[_0x487c('0x10b')](),_0x419e44[_0x487c('0x10b')]();}),this[_0x487c('0x87')](),this[_0x487c('0x2f')](),_0x42a889[_0x487c('0x72')](_0x487c('0x6b')),_0x42a889['plugins'][_0x487c('0x28')](_0x487c('0x2e')))&&_0x42a889['plugins'][_0x487c('0xc5')]('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async[_0x487c('0xc3')](_0x3e2a76){await this['loadRevisionData'](_0x3e2a76);const _0xa36432={};for(const _0x7758bf in _0x3e2a76[_0x487c('0x59')]){if(_0x3e2a76[_0x487c('0x59')][_0x7758bf][_0x487c('0xd5')]&&!_0x3e2a76[_0x487c('0x59')][_0x7758bf][_0x487c('0xd5')][_0x487c('0xff')])continue;const _0x162528=this['_removeRevisionMarkers'](JSON[_0x487c('0x101')](_0x3e2a76['diffData'][_0x7758bf]['insertions'])),_0x444a59=this['editor']['editing'][_0x487c('0x100')][_0x487c('0xa1')],_0x13fea4=new _0x5cc5f9(_0x444a59,_0x162528[_0x487c('0xa')](_0x66f4bf=>this['_getViewObj'](_0x66f4bf)));this[_0x487c('0x7d')][_0x487c('0xb7')][_0x487c('0x90')]['useFillerType'](_0x487c('0xef')),_0xa36432[_0x7758bf]=this[_0x487c('0x7d')]['data'][_0x487c('0x90')][_0x487c('0x74')](_0x13fea4),this['editor'][_0x487c('0xb7')][_0x487c('0x90')]['useFillerType'](_0x487c('0x7f'));}return _0xa36432;}async[_0x487c('0xa5')](_0x29bfdf){await this[_0x487c('0x10')](_0x29bfdf);const _0xdb48e0={};for(const _0x3a0a4c in _0x29bfdf['diffData'])_0x29bfdf[_0x487c('0x59')][_0x3a0a4c]['attachChange']&&!_0x29bfdf[_0x487c('0x59')][_0x3a0a4c][_0x487c('0xd5')][_0x487c('0xff')]||(_0xdb48e0[_0x3a0a4c]=_0x29bfdf[_0x487c('0x59')][_0x3a0a4c][_0x487c('0xdf')]||{});return _0xdb48e0;}[_0x487c('0x31')](_0x32939f){return(_0x32939f=_0x32939f[_0x487c('0x99')](_0x466a23=>!_0x466a23[_0x487c('0x11d')]||_0x487c('0xe9')!==_0x466a23[_0x487c('0x11d')]&&_0x487c('0xdb')!==_0x466a23['name']))[_0x487c('0x3b')](_0x3809bf=>{_0x487c('0xa2')!=typeof _0x3809bf&&(_0x3809bf['children']=this['_removeRevisionMarkers'](_0x3809bf[_0x487c('0xd0')]),_0x3809bf[_0x487c('0x20')]=_0x3809bf[_0x487c('0x20')][_0x487c('0x99')](_0x4af786=>!_0x4af786[0x0][_0x487c('0x63')](_0x487c('0xf3'))));}),_0x32939f;}async['compare'](_0xb78117,_0x190de8,_0x2c6193=!0x1){if(!this[_0x487c('0x51')])return;const _0x127cfd=this[_0x487c('0xab')],_0x356516=this[_0x487c('0xa4')],_0x3205f0=_0x487c('0xa2')==typeof _0xb78117?_0x356516[_0x487c('0x7e')](_0xb78117):_0xb78117,_0xb75745='string'==typeof _0x190de8?_0x356516[_0x487c('0x7e')](_0x190de8):_0x190de8,_0x10fddd=_0x3205f0['id'],_0x29dcee=_0xb75745?_0xb75745['id']:null;if(!_0x2c6193&&this[_0x487c('0xab')]&&this[_0x487c('0xab')][_0x487c('0x10e')]===_0x10fddd&&this[_0x487c('0xab')][_0x487c('0x4b')]===_0x29dcee)return Promise[_0x487c('0xd9')]();this[_0x487c('0x77')]=!0x1,this[_0x487c('0xb')]=null,this[_0x487c('0xc7')]=null,this['diff']=new _0x14a8fc(_0x10fddd,_0x29dcee);const _0x144306=this[_0x487c('0xea')](_0x3205f0,_0xb75745,!0x0)[_0x487c('0xa')](_0x366050=>this['loadRevisionData'](_0x366050));return _0x144306['push'](new Promise(_0x5e79bb=>{setTimeout(_0x5e79bb,0x14);})),Promise[_0x487c('0x96')](_0x144306)[_0x487c('0x9')](()=>{if(!this[_0x487c('0x51')])return;this[_0x487c('0x111')]();const _0x6d5e8c=this[_0x487c('0x8f')](_0x10fddd,_0x29dcee);for(const _0x2da709 of _0x6d5e8c[_0x487c('0xae')])this[_0x487c('0xb5')][_0x487c('0x43')](_0x2da709['id'],_0x2da709);this['editor'][_0x487c('0x103')][_0x487c('0x93')]({'isUndoable':!0x1},_0x15cc5c=>{for(const _0x3aaddb of this['editor'][_0x487c('0x103')][_0x487c('0xa1')][_0x487c('0xc1')]())_0x15cc5c[_0x487c('0xcc')](_0x3aaddb);for(const _0x373433 of Object['keys'](_0x6d5e8c[_0x487c('0x103')])){const _0x39a434=_0x15cc5c['addRoot'](_0x373433);for(const _0x2c41c1 of Object['keys'](_0x6d5e8c[_0x487c('0x20')][_0x373433]))_0x15cc5c[_0x487c('0x4')](_0x2c41c1,_0x6d5e8c['attributes'][_0x373433][_0x2c41c1],_0x39a434);_0x15cc5c[_0x487c('0x110')](_0x6d5e8c[_0x487c('0x103')][_0x373433],_0x39a434,0x0);}}),this[_0x487c('0xab')][_0x487c('0x9a')](this['_sortAndFilterDiffChanges'](_0x6d5e8c['changes'])),this[_0x487c('0x77')]=!0x0;})[_0x487c('0x58')](_0x4b7706=>{console[_0x487c('0x0')](_0x4b7706),this[_0x487c('0x111')](),_0x127cfd&&(this[_0x487c('0xab')]=_0x127cfd),this['isReady']=!0x0;});}['addRevisionData'](_0xb856a2,_0x90f464){const _0x10cfba=this[_0x487c('0xa4')][_0x487c('0x114')](_0xb856a2);return _0x10cfba['on'](_0x487c('0xde'),(_0x40f9ba,_0x23ad23,_0x240c5e)=>_0x90f464(_0x23ad23,_0x240c5e,_0x10cfba)),this[_0x487c('0xa4')][_0x487c('0xe3')](_0x10cfba),_0x10cfba;}[_0x487c('0x10')](_0xc4e781){if(!_0xc4e781||_0xc4e781[_0x487c('0x59')])return Promise['resolve']();{const _0x3e41f4=this[_0x487c('0x7d')][_0x487c('0xf0')]['get'](_0x487c('0x9c'));return this[_0x487c('0xd4')][_0x487c('0x7e')]({'channelId':_0x3e41f4,'revisionId':_0xc4e781['id']})[_0x487c('0x9')](_0x9eff39=>{_0xc4e781[_0x487c('0xde')]({'diffData':_0x9eff39[_0x487c('0x59')]},!0x0);});}}[_0x487c('0x111')](){this[_0x487c('0xc7')]=null,this[_0x487c('0x73')](),this[_0x487c('0x11')]&&this[_0x487c('0x11')][_0x487c('0x36')](),this[_0x487c('0x11')]=null,this[_0x487c('0xb5')][_0x487c('0x33')](),this['editor'][_0x487c('0x103')]['enqueueChange']({'isUndoable':!0x1},_0x12c61d=>{for(const _0x5b9546 of this['editor']['model']['document'][_0x487c('0xc1')]())_0x12c61d['detachRoot'](_0x5b9546);});}[_0x487c('0xc')](_0x3bed00){const _0x3c2a4e=[],_0x42b089=new Map();for(const _0x5d7f4f of this[_0x487c('0x7d')]['model'][_0x487c('0xa1')][_0x487c('0xc1')]()){const _0x39bb72=this[_0x487c('0x7d')][_0x487c('0x16')][_0x487c('0x100')][_0x487c('0xb4')](_0x5d7f4f);if(!_0x39bb72)continue;const _0x2ff21d=_0x39bb72[_0x487c('0xee')]()[_0x487c('0x24')](0x0);_0x2ff21d&&(_0x3c2a4e[_0x487c('0x105')](_0x5d7f4f),_0x42b089[_0x487c('0x43')](_0x5d7f4f,_0x2ff21d));}return _0x3c2a4e[_0x487c('0x37')]((_0x47f7c6,_0xd6afb4)=>{const _0x129722=_0x42b089[_0x487c('0xc5')](_0x47f7c6),_0x459117=_0x42b089[_0x487c('0xc5')](_0xd6afb4);return _0x129722['y']-_0x459117['y']||_0x129722['x']-_0x459117['x'];}),(_0x3bed00=_0x3bed00[_0x487c('0x99')](_0x19cd94=>_0x3c2a4e[_0x487c('0x3e')](_0x19cd94[_0x487c('0x6f')])))[_0x487c('0x37')]((_0xfecc3f,_0x57a2c1)=>_0x3c2a4e['indexOf'](_0xfecc3f['rootName'])-_0x3c2a4e[_0x487c('0x119')](_0x57a2c1[_0x487c('0x6f')])),_0x3bed00;}['_makeTape'](_0x15f20c){const _0x25681a=Array[_0x487c('0xf1')](_0x15f20c[_0x487c('0x120')])['filter'](([_0x589a51,_0x112772])=>_0x589a51[_0x487c('0x63')](_0x487c('0x25'))&&!_0x112772[_0x487c('0x121')]),_0x5de738=Array[_0x487c('0xf1')](this[_0x487c('0x7d')]['model'][_0x487c('0x7a')](_0x15f20c)[_0x487c('0xc8')]({'singleCharacters':!0x0}));if(0x0!=_0x25681a[_0x487c('0x108')])for(const _0x540028 of _0x5de738){const [_0x3588fc,_0x10f688]=_0x25681a[0x0],[,_0x11d3e7,_0x5349d4]=_0x3588fc[_0x487c('0xc4')](':');if(_0x10f688[_0x487c('0xc9')]['isEqual'](_0x540028[_0x487c('0x26')])&&_0x25681a[_0x487c('0xc6')](),(_0x540028[_0x487c('0x66')][_0x487c('0x5c')](_0x10f688[_0x487c('0xf')])||_0x540028[_0x487c('0x66')][_0x487c('0xf2')](_0x10f688[_0x487c('0xf')]))&&('insertion'==_0x11d3e7?_0x540028[_0x487c('0xa6')]={'userId':_0x5349d4}:'deletion'==_0x11d3e7&&(_0x540028[_0x487c('0x8')]={'userId':_0x5349d4})),0x0==_0x25681a[_0x487c('0x108')])break;}return _0x5de738;}[_0x487c('0x70')](_0x5048ba){const _0x585ab8=new Map();for(let _0x294451=0x0;_0x294451<_0x5048ba[_0x487c('0x108')];_0x294451++)_0x487c('0x80')===_0x5048ba[_0x294451][_0x487c('0x3a')]?(_0x5048ba[_0x294451][_0x487c('0x24')]['startIndex']=_0x294451,_0x5048ba[_0x294451]['item'][_0x487c('0x71')]=_0x294451):('elementStart'===_0x5048ba[_0x294451][_0x487c('0x3a')]?_0x5048ba[_0x294451][_0x487c('0x24')]['startIndex']=_0x294451:'elementEnd'===_0x5048ba[_0x294451][_0x487c('0x3a')]&&(_0x5048ba[_0x294451][_0x487c('0x24')][_0x487c('0x71')]=_0x294451),_0x585ab8['set'](_0x5048ba[_0x294451]['id'],_0x294451));for(const _0x1e9a6d of _0x585ab8[_0x487c('0x123')]())_0x487c('0x14')===_0x5048ba[_0x1e9a6d]['type']?_0x5048ba[_0x1e9a6d]['item'][_0x487c('0x71')]=_0x585ab8[_0x487c('0xc5')](_0x5048ba[_0x1e9a6d][_0x487c('0x49')]):'elementEnd'===_0x5048ba[_0x1e9a6d][_0x487c('0x3a')]&&(_0x5048ba[_0x1e9a6d][_0x487c('0x24')]['startIndex']=_0x585ab8['get'](_0x5048ba[_0x1e9a6d]['pairId']));}[_0x487c('0x69')](_0x5764b3){for(let _0x88344a=0x0;_0x88344a<_0x5764b3[_0x487c('0x108')];_0x88344a++){if(_0x487c('0x14')===_0x5764b3[_0x88344a][_0x487c('0x3a')])_0x5764b3[_0x88344a][_0x487c('0x24')]['startIndex']=_0x88344a;else{if('elementEnd'===_0x5764b3[_0x88344a][_0x487c('0x3a')]){_0x5764b3[_0x88344a][_0x487c('0x24')][_0x487c('0x71')]=_0x88344a;const _0x1575bc=_0x5764b3[_0x88344a]['item'][_0x487c('0x61')];_0x5764b3[_0x1575bc][_0x487c('0x49')]=_0x5764b3[_0x88344a]['id'],_0x5764b3[_0x88344a]['pairId']=_0x5764b3[_0x1575bc]['id'];}else _0x5764b3[_0x88344a][_0x487c('0x24')][_0x487c('0x61')]=_0x88344a,_0x5764b3[_0x88344a]['item'][_0x487c('0x71')]=_0x88344a,_0x5764b3[_0x88344a]['pairId']=null;}_0x5764b3[_0x88344a][_0x487c('0xd6')]||(_0x5764b3[_0x88344a][_0x487c('0xd6')]=[],_0x5764b3[_0x88344a][_0x487c('0x53')]=[]);}}[_0x487c('0x35')](_0x3b5617,_0x28f09b){const _0x61d81a=_0x3b5617[_0x487c('0x99')](_0x389662=>!_0x389662[_0x487c('0xa6')]);for(let _0x5f0d78=0x0;_0x5f0d78<_0x28f09b[_0x487c('0x108')];_0x5f0d78++)_0x28f09b[_0x5f0d78][_0x487c('0xa6')]&&(_0x61d81a[_0x5f0d78]['isAdded']=_0x28f09b[_0x5f0d78][_0x487c('0xa6')]);}['_makeModelFromViewString'](_0x9ad30c){const _0x25f196=JSON[_0x487c('0x101')](_0x9ad30c),_0x47fdbb=this[_0x487c('0x7d')][_0x487c('0x16')][_0x487c('0x100')][_0x487c('0xa1')],_0x3fbaa9=new _0x5cc5f9(_0x47fdbb,_0x25f196['map'](_0x2fa82c=>this[_0x487c('0x11c')](_0x2fa82c)));return this[_0x487c('0x7d')][_0x487c('0xb7')][_0x487c('0xaa')](_0x3fbaa9);}[_0x487c('0x11c')](_0x50f09e){const _0x493dc5=this[_0x487c('0x7d')][_0x487c('0x16')][_0x487c('0x100')]['document'];if(_0x487c('0xa2')==typeof _0x50f09e)return new _0x898bac(_0x493dc5,_0x50f09e);{const _0x131e8f=_0x50f09e['children']['map'](_0x9f12d6=>this[_0x487c('0x11c')](_0x9f12d6));return new(tt[_0x50f09e[(_0x487c('0x3a'))]]||_0x1e8ef9)(_0x493dc5,_0x50f09e[_0x487c('0x11d')],_0x50f09e[_0x487c('0x20')],_0x131e8f);}}[_0x487c('0x8f')](_0x1f9f38,_0x522077=null){const _0x14531a=this[_0x487c('0xa4')][_0x487c('0x7e')](_0x1f9f38),_0x563595=_0x522077?this['repository'][_0x487c('0x7e')](_0x522077):null,_0x3de133=this[_0x487c('0xea')](_0x14531a,_0x563595),_0x4edb3f=_0x3de133[_0x3de133[_0x487c('0x108')]-0x1],_0x7c8b5=new Map(),_0x49fe87={'model':{},'attributes':{},'changes':[]},_0x9c5991=new Set(),_0x1bfb5b=new Map();for(let _0x1b0eaa=_0x3de133[_0x487c('0x108')]-0x1;_0x1b0eaa>=0x0;_0x1b0eaa--){const _0x2256e2=_0x3de133[_0x1b0eaa];for(const _0x3cbe3a of Object[_0x487c('0x9d')](_0x2256e2[_0x487c('0x59')]))if(_0x2256e2[_0x487c('0x59')][_0x3cbe3a][_0x487c('0xd5')]){const _0x483308=_0x2256e2['diffData'][_0x3cbe3a]['attachChange'];_0x483308[_0x487c('0xff')]?(_0x9c5991[_0x487c('0x102')](_0x3cbe3a),_0x1bfb5b[_0x487c('0x28')](_0x3cbe3a)&&_0x1bfb5b[_0x487c('0xc5')](_0x3cbe3a)[_0x487c('0x7c')]==_0x483308[_0x487c('0x7c')]?_0x1bfb5b['delete'](_0x3cbe3a):_0x1bfb5b['set'](_0x3cbe3a,_0x483308)):_0x1bfb5b['has'](_0x3cbe3a)?(_0x9c5991[_0x487c('0x15')](_0x3cbe3a),_0x1bfb5b['delete'](_0x3cbe3a)):(_0x9c5991[_0x487c('0x102')](_0x3cbe3a),_0x1bfb5b[_0x487c('0x43')](_0x3cbe3a,_0x483308));}else _0x9c5991[_0x487c('0x102')](_0x3cbe3a);}for(const _0x225ad2 of _0x9c5991){const _0x332b8a=_0x1bfb5b[_0x487c('0x28')](_0x225ad2)&&!_0x1bfb5b[_0x487c('0xc5')](_0x225ad2)[_0x487c('0xff')];let _0xdfd4ad=_0x332b8a?_0x3de133[_0x487c('0x108')]-0x1:0x0;const _0x3e1ee7=_0x332b8a?-0x1:0x1;for(;_0x3de133[_0xdfd4ad];){const _0xcf87f3=_0x3de133[_0xdfd4ad];if(_0xcf87f3[_0x487c('0x59')][_0x225ad2]){const _0x1a7b93=_0x332b8a?_0xcf87f3['diffData'][_0x225ad2][_0x487c('0x98')]:_0xcf87f3[_0x487c('0x59')][_0x225ad2]['attributesAfter'];_0x49fe87['attributes'][_0x225ad2]=_0x1a7b93?_0x497159(_0x1a7b93):{};break;}_0xdfd4ad+=_0x3e1ee7;}}for(const _0x35926f of _0x3de133){_0x35926f[_0x487c('0x103')]={};for(const _0x3e5039 of _0x35926f[_0x487c('0x118')])_0x7c8b5[_0x487c('0x43')](_0x3e5039['id'],_0x3e5039);for(const _0xe766fd of _0x9c5991){const _0x21294b=_0x35926f[_0x487c('0x59')][_0xe766fd]?_0x35926f[_0x487c('0x59')][_0xe766fd]['insertions']:'[]',_0x27531f=_0x35926f[_0x487c('0x59')][_0xe766fd]?_0x35926f[_0x487c('0x59')][_0xe766fd]['deletions']:'[]';_0x35926f[_0x487c('0x103')][_0xe766fd]={'insertions':this[_0x487c('0x112')](_0x21294b),'deletions':this['_makeModelFromViewString'](_0x27531f)};}}for(const _0x4b5d5f of _0x9c5991){let _0x2f71a3=null,_0x1c9938=0x0;const _0x49e60a=new Map(Array[_0x487c('0xf1')](_0x14531a[_0x487c('0x103')][_0x4b5d5f][_0x487c('0x91')][_0x487c('0x120')])[_0x487c('0x99')](([_0x27db20])=>!_0x27db20[_0x487c('0x63')]('revision:')));let _0x416d2a=0x0;for(const _0x3dfd01 of _0x3de133){const _0x8b4a28=this[_0x487c('0x41')](_0x3dfd01[_0x487c('0x103')][_0x4b5d5f][_0x487c('0x91')]);_0x3dfd01==_0x14531a?(_0x2f71a3=_0x8b4a28,_0x1c9938=_0x2f71a3[_0x487c('0x108')],_0x2f71a3[_0x487c('0x3b')](_0x19902b=>{_0x19902b['id']=_0x416d2a++;}),this[_0x487c('0x69')](_0x2f71a3)):this['_markInsertions'](_0x2f71a3,_0x8b4a28);const _0x1a7018=_0x2f71a3['filter'](_0x4c8ff8=>!_0x4c8ff8[_0x487c('0xa6')])[_0x487c('0xa')](_0x401366=>_0x401366['id']);let _0x4a3abe=0x0;const _0xe1df37=this[_0x487c('0x41')](_0x3dfd01[_0x487c('0x103')][_0x4b5d5f][_0x487c('0x94')]);_0xe1df37[_0x487c('0x3b')](_0x2e3aa9=>{_0x2e3aa9['isRemoved']?_0x2e3aa9['id']=_0x1c9938++:_0x2e3aa9['id']=_0x1a7018[_0x4a3abe++];}),this[_0x487c('0x69')](_0xe1df37),this[_0x487c('0x8b')](_0x2f71a3,_0x487c('0xa6')),this['_setDistance'](_0xe1df37,_0x487c('0x8')),_0x3dfd01==_0x14531a&&this['_markMarkers'](_0x2f71a3,_0x49e60a),_0x2f71a3=this[_0x487c('0x40')](_0x2f71a3,_0xe1df37),this[_0x487c('0x70')](_0x2f71a3),this[_0x487c('0x8b')](_0x2f71a3,_0x487c('0x8'));}_0x2f71a3=_0x2f71a3[_0x487c('0x99')](_0x52d682=>!(_0x52d682[_0x487c('0xa6')]&&_0x52d682['isRemoved']));const _0x58c0cd=new Map(_0x4edb3f[_0x487c('0x103')][_0x4b5d5f][_0x487c('0x94')][_0x487c('0x120')]),_0x28f95c=new Set(_0x49e60a[_0x487c('0x9d')]());for(const _0x131303 of _0x58c0cd['keys']())_0x28f95c[_0x487c('0x15')](_0x131303);this[_0x487c('0x5d')](_0x2f71a3,_0x28f95c),this[_0x487c('0x18')](_0x2f71a3),_0x2f71a3=this[_0x487c('0xa8')](_0x2f71a3),_0x2f71a3=this[_0x487c('0x44')](_0x2f71a3),_0x2f71a3=this[_0x487c('0x3')](_0x2f71a3);const {root:_0xbb7362,changes:_0x334c27}=this[_0x487c('0x2')](_0x2f71a3,_0x7c8b5,_0x4b5d5f);_0x49fe87[_0x487c('0x103')][_0x4b5d5f]=_0xbb7362;const _0x5bb9d9=_0x1bfb5b[_0x487c('0xc5')](_0x4b5d5f);if(_0x5bb9d9){const _0x4b0c68=_0x7c8b5[_0x487c('0xc5')](_0x5bb9d9[_0x487c('0x7c')]),_0x3f4a0b=new _0x18b350({'author':_0x4b0c68,'type':_0x5bb9d9[_0x487c('0xff')]?_0x487c('0x102'):_0x487c('0xb0'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4b5d5f});_0x334c27[_0x487c('0x11e')](_0x3f4a0b),_0x49fe87[_0x487c('0x20')][_0x4b5d5f]['revisionHistoryAttachChange']=_0x3f4a0b['id'];}_0x49fe87[_0x487c('0xae')]=_0x49fe87[_0x487c('0xae')]['concat'](_0x334c27);}return _0x49fe87;}[_0x487c('0x75')](_0x476c27,_0xac77b3){for(let _0x1ca7a8=0x0;_0x1ca7a8<_0x476c27['length'];_0x1ca7a8++)for(const [_0x43d9b2,_0xb76b30]of _0xac77b3)_0xb76b30['start'][_0x487c('0x5c')](_0x476c27[_0x1ca7a8][_0x487c('0x66')])&&_0x476c27[_0x1ca7a8]['markersStart'][_0x487c('0x105')](_0x43d9b2),_0xb76b30[_0x487c('0xc9')][_0x487c('0x5c')](_0x476c27[_0x1ca7a8]['nextPosition'])&&_0x476c27[_0x1ca7a8][_0x487c('0x53')][_0x487c('0x105')](_0x43d9b2);}[_0x487c('0x40')](_0x27add3,_0x14c526){let _0x24fd06=[],_0x466759=0x0,_0x11b727=0x0;for(;_0x466759<_0x27add3[_0x487c('0x108')]||_0x11b727<_0x14c526[_0x487c('0x108')];){const _0x2abba1=_0x27add3[_0x466759]||{},_0x5f3994=_0x14c526[_0x11b727]||{};if(_0x2abba1['id']==_0x5f3994['id'])_0x466759++,_0x11b727++,_0x24fd06[_0x487c('0x105')](_0x2abba1);else{if(_0x5f3994['isRemoved']&&_0x2abba1[_0x487c('0xa6')]){const {commonTape:_0x11b7b2,iEnd:_0x745685,jEnd:_0xeb89e1}=this[_0x487c('0x107')](_0x27add3,_0x466759,_0x14c526,_0x11b727);_0x24fd06=_0x24fd06[_0x487c('0xf7')](_0x11b7b2),_0x466759=_0x745685,_0x11b727=_0xeb89e1;}else _0x5f3994['isRemoved']?(_0x11b727++,_0x24fd06[_0x487c('0x105')](_0x5f3994)):(_0x466759++,_0x24fd06[_0x487c('0x105')](_0x2abba1));}}return _0x24fd06;}['_markSuggestions'](_0x419b2c,_0x56c906){const _0x1ff180=[];for(let _0x13fd67=0x0;_0x13fd67<_0x419b2c[_0x487c('0x108')];_0x13fd67++){for(let _0x24e234=0x0;_0x24e234<_0x419b2c[_0x13fd67][_0x487c('0xd6')][_0x487c('0x108')];_0x24e234++){const _0x52dff5=_0x419b2c[_0x13fd67]['markersStart'][_0x24e234];if(!_0x56c906[_0x487c('0x28')](_0x52dff5))continue;const {group:_0x3674f5,type:_0x40903f,authorId:_0x5e724e}=_0xa37df8(_0x52dff5);_0x487c('0xb6')!=_0x3674f5||_0x487c('0xed')!=_0x40903f&&'deletion'!=_0x40903f||(_0x1ff180[_0x487c('0x11e')]({'type':_0x40903f,'name':_0x52dff5,'userId':_0x5e724e}),_0x419b2c[_0x13fd67][_0x487c('0xd6')][_0x487c('0x10c')](_0x24e234,0x1),_0x24e234--);}_0x2f1956(_0x419b2c[_0x13fd67]);for(let _0x33aeff=0x0;_0x33aeff<_0x419b2c[_0x13fd67][_0x487c('0x53')][_0x487c('0x108')];_0x33aeff++){const _0x3ac497=_0x419b2c[_0x13fd67]['markersEnd'][_0x33aeff];if(!_0x56c906['has'](_0x3ac497))continue;const {group:_0x520353,type:_0x46977a}=_0xa37df8(_0x3ac497);if(_0x487c('0xb6')!=_0x520353||_0x487c('0xed')!=_0x46977a&&'deletion'!=_0x46977a)continue;_0x419b2c[_0x13fd67][_0x487c('0x53')][_0x487c('0x10c')](_0x33aeff,0x1),_0x33aeff--;const _0x56567b=_0x1ff180['findIndex'](_0x433ca2=>_0x433ca2['name']==_0x3ac497);_0x56567b>-0x1&&_0x1ff180[_0x487c('0x10c')](_0x56567b,0x1);}}function _0xa37df8(_0x1f8c6f){const _0x383fdb=_0x1f8c6f[_0x487c('0xc4')](':');return{'group':_0x383fdb[0x0],'type':_0x383fdb[0x1],'subType':_0x383fdb['length']>=0x5?_0x383fdb[0x2]:null,'id':_0x383fdb[_0x487c('0x108')]<0x5?_0x383fdb[0x2]:_0x383fdb[0x3],'authorId':_0x383fdb['length']<0x5?_0x383fdb[0x3]:_0x383fdb[0x4],'markerCount':0x6==_0x383fdb[_0x487c('0x108')]?_0x383fdb[0x5]:null};}function _0x2f1956(_0x247bd4){for(let _0x1d339d=0x0;_0x1d339d<_0x1ff180[_0x487c('0x108')];_0x1d339d++){if(_0x247bd4[_0x487c('0xa6')]&&_0x487c('0xed')==_0x1ff180[_0x1d339d][_0x487c('0x3a')])return _0x247bd4['isAddSuggestion']=_0x1ff180[_0x1d339d],void delete _0x247bd4[_0x487c('0xa6')];if(!_0x247bd4[_0x487c('0xa6')]&&!_0x247bd4[_0x487c('0x8')]&&'deletion'==_0x1ff180[_0x1d339d][_0x487c('0x3a')])return void(_0x247bd4[_0x487c('0xd3')]=_0x1ff180[_0x1d339d]);}}}[_0x487c('0x8b')](_0x36b245,_0x4dd926){let _0xd1c059=0x0,_0x170669=!0x1;const _0x179f7e=new Map();for(const _0x56b6e6 of _0x36b245)_0x56b6e6[_0x4dd926]?_0x170669&&(_0xd1c059++,_0x170669=!0x1):(_0xd1c059++,_0x170669=!0x0),_0x179f7e[_0x487c('0x43')](_0x56b6e6['id'],_0xd1c059);for(let _0x34158c=0x0;_0x34158c<_0x36b245[_0x487c('0x108')];_0x34158c++){if('isRemoved'==_0x4dd926&&_0x36b245[_0x34158c][_0x487c('0xa6')]||'isAdded'==_0x4dd926&&_0x36b245[_0x34158c][_0x487c('0x8')])continue;if(_0x487c('0x80')==_0x36b245[_0x34158c][_0x487c('0x3a')]){_0x36b245[_0x34158c][_0x487c('0xad')]=0x0;continue;}const _0x12f122=_0x179f7e[_0x487c('0xc5')](_0x36b245[_0x34158c][_0x487c('0x49')]),_0x33b8d8=_0x179f7e[_0x487c('0xc5')](_0x36b245[_0x34158c]['id']);_0x36b245[_0x34158c][_0x487c('0xad')]=_0x12f122-_0x33b8d8;}}[_0x487c('0xea')](_0x1afd87,_0x649183,_0x17d529=!0x1){const _0x57defd=[];let _0x569005=this[_0x487c('0xa4')]['getIndex'](_0x1afd87),_0x5d9122=this[_0x487c('0xa4')][_0x487c('0xc0')](_0x649183);for(-0x1==_0x5d9122&&(_0x5d9122=this[_0x487c('0xa4')][_0x487c('0x1d')][_0x487c('0x108')],_0x17d529=!0x1);_0x569005<_0x5d9122;)_0x57defd[_0x487c('0x105')](this[_0x487c('0xa4')][_0x487c('0x7e')](_0x569005)),_0x569005++;return _0x17d529&&_0x57defd['push'](this['repository'][_0x487c('0x7e')](_0x569005)),_0x57defd;}['_threeWayMerge'](_0x52e263,_0x90b44,_0x264496,_0x47e576){const _0x2d07ab=this[_0x487c('0x7d')][_0x487c('0x103')][_0x487c('0x81')];let _0x565d90=_0x90b44;for(;_0x52e263[_0x565d90]&&_0x52e263[_0x565d90][_0x487c('0xa6')];)_0x565d90++;let _0x331d82=_0x47e576;for(;_0x264496[_0x331d82]&&_0x264496[_0x331d82][_0x487c('0x8')];)_0x331d82++;_0x240e7c(_0x52e263,_0x90b44,_0x565d90),_0x240e7c(_0x264496,_0x47e576,_0x331d82);const _0x4edad8=_0x264496[_0x487c('0xaf')](_0x47e576,_0x331d82)['concat'](_0x52e263[_0x487c('0xaf')](_0x90b44,_0x565d90));return _0x4edad8[_0x487c('0x37')]((_0x2fce5e,_0x5a020f)=>_0x2fce5e[_0x487c('0x109')]!=_0x5a020f[_0x487c('0x109')]?_0x2fce5e['side']-_0x5a020f[_0x487c('0x109')]:_0x2fce5e[_0x487c('0xcf')]!=_0x5a020f['level']?_0x2fce5e[_0x487c('0xcf')]-_0x5a020f['level']:_0x2fce5e[_0x487c('0xad')]!=_0x5a020f[_0x487c('0xad')]?_0x5a020f[_0x487c('0xad')]-_0x2fce5e['distance']:!!_0x2fce5e[_0x487c('0xa6')]!=!!_0x5a020f[_0x487c('0xa6')]?-0x1==_0x2fce5e['side']||0x0==_0x2fce5e[_0x487c('0x109')]?_0x2fce5e[_0x487c('0xa6')]?-0x1:0x1:_0x2fce5e['isAdded']?0x1:-0x1:_0x2fce5e[_0x487c('0x97')]-_0x5a020f['index']),{'commonTape':_0x4edad8,'iEnd':_0x565d90,'jEnd':_0x331d82};function _0x240e7c(_0x398563,_0x30fe59,_0x1789f9){let _0x4832cc=-0x1,_0x3feda1=Number[_0x487c('0x8a')],_0x171e9c=!0x0;for(let _0x4318e5=_0x30fe59;_0x4318e5<_0x1789f9;_0x4318e5++)if(_0x2d07ab[_0x487c('0xf5')](_0x398563[_0x4318e5]['item'])||(_0x171e9c=!0x1),_0x398563[_0x4318e5]['item']['startIndex']<_0x30fe59&&(_0x4832cc=_0x4318e5),_0x398563[_0x4318e5][_0x487c('0x24')][_0x487c('0x71')]>=_0x1789f9){_0x3feda1=_0x4318e5;break;}_0x171e9c&&(_0x4832cc=_0x1789f9-0x1);for(let _0x59aac6=_0x30fe59;_0x59aac6<_0x1789f9;_0x59aac6++)_0x398563[_0x59aac6][_0x487c('0x109')]=_0x59aac6<=_0x4832cc?-0x1:_0x59aac6<_0x3feda1?0x0:0x1,_0x398563[_0x59aac6][_0x487c('0x97')]=_0x59aac6;let _0x78fc6b=0x0;for(let _0x4460d4=_0x30fe59;_0x4460d4<=_0x4832cc;_0x4460d4++)0x0==_0x398563[_0x4460d4][_0x487c('0xad')]?_0x398563[_0x4460d4][_0x487c('0xcf')]=_0x78fc6b:(_0x78fc6b++,_0x398563[_0x4460d4][_0x487c('0xcf')]=_0x78fc6b,_0x78fc6b++);for(let _0x334015=_0x30fe59;_0x334015<_0x1789f9;_0x334015++)0x0==_0x398563[_0x334015][_0x487c('0x109')]&&(_0x398563[_0x334015][_0x487c('0xcf')]=_0x78fc6b);_0x78fc6b=0x0;for(let _0x517576=_0x1789f9-0x1;_0x517576>=_0x3feda1;_0x517576--)0x0==_0x398563[_0x517576][_0x487c('0xad')]?_0x398563[_0x517576][_0x487c('0xcf')]=_0x78fc6b:(_0x78fc6b--,_0x398563[_0x517576][_0x487c('0xcf')]=_0x78fc6b,_0x78fc6b--);}}['_fixObsoleteTags'](_0x55a77a){const _0x43d5bd=new Map(),_0x3859f0=this[_0x487c('0x7d')][_0x487c('0x103')][_0x487c('0x81')];for(let _0xf4db3d=0x1;_0xf4db3d<_0x55a77a[_0x487c('0x108')];_0xf4db3d++){let _0x1aa79d,_0x1128bc,_0x20c9af;const _0x4e1c6d=_0x55a77a[_0xf4db3d],_0x28a373=_0x55a77a[_0xf4db3d-0x1];if(_0x487c('0x80')==_0x4e1c6d[_0x487c('0x3a')])continue;if(_0x4e1c6d[_0x487c('0x3a')]!=_0x28a373[_0x487c('0x3a')])continue;if(!_0x3859f0[_0x487c('0x85')](_0x28a373[_0x487c('0x24')])||_0x3859f0[_0x487c('0xf8')](_0x28a373[_0x487c('0x24')]))continue;if(!_0x3859f0[_0x487c('0x85')](_0x4e1c6d[_0x487c('0x24')])||_0x3859f0[_0x487c('0xf8')](_0x4e1c6d[_0x487c('0x24')]))continue;if((_0x55a77a[_0xf4db3d]['isAdded']||_0x55a77a[_0xf4db3d]['isAddSuggestion'])&&_0x55a77a[_0xf4db3d-0x1][_0x487c('0x8')])_0x1aa79d=_0x55a77a[_0xf4db3d],_0x1128bc=_0x55a77a[_0xf4db3d-0x1],_0x20c9af=_0xf4db3d-0x1;else{if(!_0x55a77a[_0xf4db3d]['isRemoved']||!_0x55a77a[_0xf4db3d-0x1][_0x487c('0xa6')]&&!_0x55a77a[_0xf4db3d-0x1][_0x487c('0x38')])continue;_0x1aa79d=_0x55a77a[_0xf4db3d-0x1],_0x1128bc=_0x55a77a[_0xf4db3d],_0x20c9af=_0xf4db3d;}const _0x9be71c=_0x1aa79d[_0x487c('0xcf')]==_0x1128bc['level'],_0x2a8e38=Math[_0x487c('0x9e')](_0x1aa79d[_0x487c('0xcf')])<Math[_0x487c('0x9e')](_0x1128bc[_0x487c('0xcf')])&&0x0==_0x1128bc[_0x487c('0xad')];(_0x9be71c||_0x2a8e38)&&(_0x43d5bd[_0x487c('0x43')](_0x1128bc['id'],_0x1aa79d['id']),_0x55a77a[_0x487c('0x10c')](_0x20c9af,0x1),_0xf4db3d--,_0x1aa79d[_0x487c('0xa6')]=!0x1);}for(let _0xb94585=0x0;_0xb94585<_0x55a77a[_0x487c('0x108')];_0xb94585++)_0x43d5bd[_0x487c('0x28')](_0x55a77a[_0xb94585][_0x487c('0x49')])&&(_0x55a77a[_0xb94585][_0x487c('0x49')]=_0x43d5bd[_0x487c('0xc5')](_0x55a77a[_0xb94585][_0x487c('0x49')]));}[_0x487c('0xa8')](_0x125a33){const _0x1919bd=new Set(_0x125a33[_0x487c('0xa')](_0x1daa95=>_0x1daa95['id']));for(let _0x206089=0x0;_0x206089<_0x125a33['length'];_0x206089++)_0x1919bd[_0x487c('0x28')](_0x125a33[_0x206089][_0x487c('0x49')])||0x0==_0x125a33[_0x206089][_0x487c('0xad')]||(_0x125a33[_0x206089]['isIncorrect']=!0x0);return _0x125a33[_0x487c('0x99')](_0x41721e=>!_0x41721e[_0x487c('0xcd')]);}[_0x487c('0x44')](_0x318c18){const _0xc10a77=new Set();for(let _0x477da4=0x0;_0x477da4<_0x318c18['length'];_0x477da4++){if(_0xc10a77[_0x487c('0x28')](_0x318c18[_0x477da4]['id'])&&_0x318c18[_0x477da4][_0x487c('0x8')]&&(_0x318c18[_0x477da4][_0x487c('0xcd')]=!0x0),_0x318c18[_0x477da4][_0x487c('0xcd')])continue;if(0x0==_0x318c18[_0x477da4][_0x487c('0xad')])continue;if(_0x487c('0x14')!=_0x318c18[_0x477da4][_0x487c('0x3a')])continue;if(null==_0x318c18[_0x477da4][_0x487c('0x49')])continue;let _0x4dd21e=_0x477da4+0x1,_0x30214c=0x0;for(;_0x318c18[_0x4dd21e]['id']!=_0x318c18[_0x477da4]['pairId'];)'elementStart'==_0x318c18[_0x4dd21e][_0x487c('0x3a')]?_0x30214c++:_0x487c('0x54')==_0x318c18[_0x4dd21e]['type']&&_0x30214c--,_0x4dd21e++;if(0x0!=_0x30214c){if(_0x318c18[_0x477da4][_0x487c('0x8')])_0x318c18[_0x477da4][_0x487c('0xcd')]=!0x0;else for(;_0x4dd21e!=_0x477da4;)_0x318c18[_0x4dd21e]['isRemoved']&&0x0!=_0x318c18[_0x4dd21e][_0x487c('0xad')]&&(_0x318c18[_0x4dd21e][_0x487c('0xcd')]=!0x0,_0xc10a77[_0x487c('0x102')](_0x318c18[_0x4dd21e][_0x487c('0x49')])),_0x4dd21e--;}}return _0x318c18[_0x487c('0x99')](_0x80a2a8=>!_0x80a2a8['isIncorrect']);}[_0x487c('0x3')](_0x1a4741){const _0x569ddd=this['editor'][_0x487c('0x103')][_0x487c('0x81')];for(let _0x17367a=0x0;_0x17367a<_0x1a4741[_0x487c('0x108')];_0x17367a++){if(!(_0x1a4741[_0x17367a]['isAdded']||_0x1a4741[_0x17367a][_0x487c('0x38')]||_0x1a4741[_0x17367a]['isRemoved']||_0x1a4741[_0x17367a]['isRemoveSuggestion']))continue;if(0x0==_0x1a4741[_0x17367a][_0x487c('0xad')])continue;const _0x115f3d=_0x1a4741[_0x17367a][_0x487c('0x24')];_0x569ddd['isBlock'](_0x115f3d)||_0x569ddd[_0x487c('0xf8')](_0x115f3d)||(_0x1a4741[_0x17367a][_0x487c('0xa6')]&&delete _0x1a4741[_0x17367a][_0x487c('0xa6')],_0x1a4741[_0x17367a][_0x487c('0x38')]&&delete _0x1a4741[_0x17367a][_0x487c('0x38')],_0x1a4741[_0x17367a]['isRemoveSuggestion']&&delete _0x1a4741[_0x17367a][_0x487c('0xd3')],_0x1a4741[_0x17367a][_0x487c('0x8')]&&(_0x1a4741[_0x17367a][_0x487c('0xcd')]=!0x0));}return _0x1a4741['filter'](_0x164f46=>!_0x164f46[_0x487c('0xcd')]);}[_0x487c('0x2')](_0x4ec645,_0x5e6b30,_0x3c252c){const _0x21954e=new _0x1caf66(),_0xb026d=[],_0xb6d4c8=new Map(),_0x5e7328=this['editor'][_0x487c('0x103')],_0x2fab65=_0x5e7328['schema'],_0x480a94=[_0x21954e],_0x1f9a98={},_0x185134={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5e6118=null;const _0x2aadce=[0x0];for(let _0x436d05=0x0;_0x436d05<_0x4ec645['length'];_0x436d05++){let _0x25a907,_0x1d56ad;if(_0x487c('0x14')===_0x4ec645[_0x436d05][_0x487c('0x3a')]){_0x25a907=_0x5e7328[_0x487c('0x84')](_0x21954e,_0x2aadce);const _0x5e0eba=new _0x280eb3(_0x4ec645[_0x436d05]['item']['name'],_0x4ec645[_0x436d05][_0x487c('0x24')][_0x487c('0xeb')]());_0x480a94[0x0][_0x487c('0x5a')](_0x5e0eba),_0x2aadce[_0x487c('0x105')](0x0),_0x480a94[_0x487c('0x11e')](_0x5e0eba),_0x1d56ad=_0x5e7328[_0x487c('0x84')](_0x21954e,_0x2aadce),_0x5e6118=null;}else{if('elementEnd'===_0x4ec645[_0x436d05][_0x487c('0x3a')])_0x480a94[_0x487c('0xc6')](),_0x25a907=_0x5e7328[_0x487c('0x84')](_0x21954e,_0x2aadce),_0x2aadce[_0x487c('0x47')](),_0x2aadce[_0x2aadce['length']-0x1]++,_0x1d56ad=_0x5e7328[_0x487c('0x84')](_0x21954e,_0x2aadce),_0x5e6118=null;else{if(_0x25a907=_0x5e7328['createPositionFromPath'](_0x21954e,_0x2aadce),_0x5e6118&&_0x53f093(_0x5e6118,_0x4ec645[_0x436d05][_0x487c('0x24')]))_0x5e6118[_0x487c('0x1a')]+=_0x4ec645[_0x436d05][_0x487c('0x24')][_0x487c('0xb7')];else{const _0x104168=new _0x73433e(_0x4ec645[_0x436d05][_0x487c('0x24')][_0x487c('0xb7')],_0x4ec645[_0x436d05][_0x487c('0x24')][_0x487c('0xeb')]());_0x480a94[0x0][_0x487c('0x5a')](_0x104168),_0x5e6118=_0x104168;}_0x2aadce[_0x2aadce[_0x487c('0x108')]-0x1]+=_0x4ec645[_0x436d05]['item'][_0x487c('0x8e')],_0x1d56ad=_0x5e7328[_0x487c('0x84')](_0x21954e,_0x2aadce);}}for(const _0x3ae986 of _0x4ec645[_0x436d05][_0x487c('0xd6')])_0xb6d4c8['set'](_0x3ae986,{'start':_0x25a907,'end':null});_0x3eb3d2(_0x487c('0xd3'),_0x436d05,_0x25a907,_0x1d56ad),_0x3eb3d2(_0x487c('0x38'),_0x436d05,_0x25a907,_0x1d56ad),_0x3eb3d2(_0x487c('0x8'),_0x436d05,_0x25a907,_0x1d56ad),_0x3eb3d2(_0x487c('0xa6'),_0x436d05,_0x25a907,_0x1d56ad);for(const _0x24c579 of _0x4ec645[_0x436d05][_0x487c('0x53')]){_0xb6d4c8[_0x487c('0xc5')](_0x24c579)[_0x487c('0xc9')]=_0x1d56ad;}}for(const [_0x4d918c,_0x4bf104]of _0xb6d4c8){const _0x17d2a9=this[_0x487c('0x7d')][_0x487c('0x103')]['createRange'](_0x4bf104[_0x487c('0xf')],_0x4bf104[_0x487c('0xc9')]);_0x21954e['markers'][_0x487c('0x43')](_0x4d918c,_0x17d2a9);}return _0xb026d[_0x487c('0x37')]((_0x408629,_0x253d30)=>{const _0x566d3b=_0x21954e[_0x487c('0x120')]['get'](_0x487c('0x25')+_0x408629['id']),_0x59eefa=_0x21954e[_0x487c('0x120')][_0x487c('0xc5')](_0x487c('0x25')+_0x253d30['id']);return _0x566d3b[_0x487c('0xf')][_0x487c('0x8c')](_0x59eefa[_0x487c('0xf')])?-0x1:_0x566d3b[_0x487c('0xf')]['isAfter'](_0x59eefa[_0x487c('0xf')])?0x1:_0x566d3b['end']['isBefore'](_0x59eefa[_0x487c('0xc9')])?-0x1:_0x566d3b['end']['isAfter'](_0x59eefa[_0x487c('0xc9')])?0x1:_0x487c('0x102')===_0x408629[_0x487c('0x3a')]?-0x1:0x1;}),{'root':_0x21954e,'changes':_0xb026d};function _0x3eb3d2(_0x828e6b,_0x1537cb,_0x53a255,_0x40ab55){const _0x1e8206=!!_0x4ec645[_0x1537cb][_0x828e6b],_0x2ed26e=_0x1e8206?_0x4ec645[_0x1537cb][_0x828e6b]['userId']:null,_0x1875b7=_0x1537cb===_0x4ec645['length']-0x1,_0x6548c2=_0x185134[_0x828e6b][0x0],_0x114dbb=_0x2fab65[_0x487c('0x125')](_0x4ec645[_0x1537cb][_0x487c('0x24')]);!_0x1f9a98[_0x828e6b]&&_0x1e8206?_0x1f9a98[_0x828e6b]={'start':_0x53a255,'tapeItem':_0x4ec645[_0x1537cb],'userId':_0x2ed26e,'type':_0x828e6b}:_0x1f9a98[_0x828e6b]&&!_0x1e8206?(_0x1f9a98[_0x828e6b]['end']=_0x53a255,_0x30cb8c(_0x1f9a98[_0x828e6b]),_0x1f9a98[_0x828e6b]=null):_0x1f9a98[_0x828e6b]&&_0x1e8206&&_0x1f9a98[_0x828e6b][_0x487c('0x7c')]!==_0x2ed26e&&(_0x1f9a98[_0x828e6b]['end']=_0x53a255,_0x6548c2&&_0x6548c2[_0x487c('0x7c')]===_0x1f9a98[_0x828e6b][_0x487c('0x7c')]||_0x30cb8c(_0x1f9a98[_0x828e6b]),_0x1f9a98[_0x828e6b]={'start':_0x53a255,'tapeItem':_0x4ec645[_0x1537cb],'userId':_0x2ed26e,'type':_0x828e6b}),_0x1f9a98[_0x828e6b]&&_0x114dbb&&(_0x487c('0x14')!==_0x4ec645[_0x1537cb][_0x487c('0x3a')]||_0x6548c2&&_0x6548c2[_0x487c('0x7c')]===_0x2ed26e||_0x185134[_0x828e6b]['unshift']({'userId':_0x2ed26e,'object':_0x4ec645[_0x1537cb][_0x487c('0x24')],'change':_0x1f9a98[_0x828e6b]}),_0x487c('0x54')===_0x4ec645[_0x1537cb][_0x487c('0x3a')]&&_0x6548c2&&_0x6548c2[_0x487c('0x79')]===_0x4ec645[_0x1537cb][_0x487c('0x24')]&&(_0x185134[_0x828e6b]['shift'](),_0x1f9a98[_0x828e6b]=_0x6548c2[_0x487c('0x11b')])),_0x1f9a98[_0x828e6b]&&_0x1875b7&&(_0x1f9a98[_0x828e6b]['end']=_0x40ab55,_0x30cb8c(_0x1f9a98[_0x828e6b]),_0x1f9a98[_0x828e6b]=null);}function _0x30cb8c({start:_0x47b4c3,end:_0x580b49,tapeItem:_0x187c1a,userId:_0x324960,type:_0x5197e8}){const _0x1a8875=_0x187c1a[_0x487c('0x24')],_0x1bda07=_0x5e7328[_0x487c('0x81')][_0x487c('0x85')](_0x1a8875)&&!_0x5e7328[_0x487c('0x81')][_0x487c('0xf8')](_0x1a8875),_0x8e8ab2=_0x47b4c3[_0x487c('0x10d')]==_0x580b49[_0x487c('0x106')]&&_0x580b49['isAtStart'];if(_0x1bda07&&_0x8e8ab2)return;const _0x1be987=_0x5e7328['createRange'](_0x47b4c3,_0x580b49),_0x1ffe6d=_0x5e6b30[_0x487c('0xc5')](_0x324960),_0x263b2e=new _0x18b350({'author':_0x1ffe6d,'type':_0x487c('0xa6')==_0x5197e8||_0x487c('0x38')==_0x5197e8?_0x487c('0x102'):_0x487c('0xb0'),'data':{'isSuggestion':_0x487c('0x38')==_0x5197e8||'isRemoveSuggestion'==_0x5197e8},'createdAt':new Date(),'rootName':_0x3c252c});_0xb026d[_0x487c('0x105')](_0x263b2e),_0x21954e[_0x487c('0x120')]['set'](_0x487c('0x25')+_0x263b2e['id'],_0x1be987);}function _0x53f093(_0x1b3c7c,_0x3ddf96){const _0x264740=_0x1b3c7c[_0x487c('0xeb')](),_0x4e18b2=_0x3ddf96[_0x487c('0xeb')]();for(const _0x19b737 of _0x264740){if(_0x19b737[0x1]!==_0x3ddf96[_0x487c('0x12')](_0x19b737[0x0]))return!0x1;_0x4e18b2[_0x487c('0x78')]();}return _0x4e18b2[_0x487c('0x78')]()['done'];}}[_0x487c('0x87')](){this[_0x487c('0x7d')][_0x487c('0x4d')][_0x487c('0xb3')](_0x487c('0x57'))['dataToMarker']({'view':_0x487c('0x2c')}),this[_0x487c('0x7d')][_0x487c('0x4d')]['for'](_0x487c('0x56'))[_0x487c('0xe0')]({'model':_0x487c('0x2c'),'view':_0x4b5cdc=>{const _0xa628da=_0x4b5cdc['markerName'][_0x487c('0xc4')](':')[0x1],_0x566e79=this[_0x487c('0xa0')](_0xa628da);if(!_0x566e79)return null;const _0x15e5fe=_0x487c('0x102')==_0x566e79[_0x487c('0x3a')]?_0x487c('0xed'):_0x487c('0xb8'),_0x20697f=[_0x487c('0xfc'),_0x487c('0x5e')+_0x15e5fe];return _0x566e79[_0x487c('0xb7')]['isSuggestion']&&_0x20697f['push']('ck-suggestion-marker-'+_0x15e5fe+_0x487c('0x4e')),this[_0x487c('0xc7')]==_0x566e79&&_0x20697f['push'](_0x487c('0x52')),{'classes':_0x20697f,'attributes':{'data-change-id':_0xa628da}};}}),this['editor'][_0x487c('0x4d')][_0x487c('0xb3')](_0x487c('0x57'))['add'](_0x106897=>{_0x106897['on'](_0x487c('0x7'),(_0x3c5d71,_0x24c44e,_0x276fbc)=>{const _0x20fdd9=_0x24c44e[_0x487c('0xda')]['getChild'](0x0);if(!_0x20fdd9||!_0x20fdd9['is'](_0x487c('0x10a'),_0x487c('0xfa')))return;if(!_0x276fbc[_0x487c('0x2b')][_0x487c('0xd2')](_0x20fdd9,{'attributes':[_0x487c('0x115'),_0x487c('0x6c')]}))return;const _0x2abdf9=_0x24c44e[_0x487c('0xf9')][_0x487c('0xf')]['nodeAfter'];_0x276fbc[_0x487c('0x4c')][_0x487c('0x4')](_0x487c('0x115'),_0x20fdd9['getAttribute'](_0x487c('0x115')),_0x2abdf9),_0x276fbc['writer'][_0x487c('0x4')](_0x487c('0x6c'),_0x20fdd9[_0x487c('0x12')](_0x487c('0x6c')),_0x2abdf9);},{'priority':_0x487c('0xbc')});}),this[_0x487c('0x7d')]['conversion']['for'](_0x487c('0x57'))[_0x487c('0x102')](_0xf38e12=>{_0xf38e12['on'](_0x487c('0x10a'),(_0x12c9e3,_0x17aa6c,_0x24fb50)=>{if(!_0x24fb50[_0x487c('0x2b')][_0x487c('0xd2')](_0x17aa6c[_0x487c('0xda')],{'attributes':[_0x487c('0x115'),'vid_end']}))return;if(_0x17aa6c['modelRange'][_0x487c('0x121')])return;const _0x39212b=_0x17aa6c[_0x487c('0xf9')]['start'][_0x487c('0x10d')];_0x39212b[_0x487c('0x113')](_0x487c('0x115'))||_0x39212b[_0x487c('0x113')](_0x487c('0x32'))||(_0x24fb50[_0x487c('0x4c')][_0x487c('0x4')](_0x487c('0x115'),_0x17aa6c[_0x487c('0xda')][_0x487c('0x12')]('vid_start'),_0x39212b),_0x24fb50[_0x487c('0x4c')][_0x487c('0x4')](_0x487c('0x6c'),_0x17aa6c[_0x487c('0xda')][_0x487c('0x12')]('vid_end'),_0x39212b));},{'priority':_0x487c('0xbc')});}),this['editor'][_0x487c('0x4d')][_0x487c('0xb3')]('upcast')[_0x487c('0xe8')]({'view':{'name':_0x487c('0xe'),'attributes':{'vid':!0x0}},'model':{'key':_0x487c('0x32'),'value':_0x1a93ce=>_0x1a93ce[_0x487c('0x12')]('vid')}}),this[_0x487c('0x7d')][_0x487c('0x103')][_0x487c('0x81')]['on']('checkAttribute',(_0x49529b,[,_0x47ac2a])=>{[_0x487c('0x115'),'vid_end',_0x487c('0x32')][_0x487c('0x3e')](_0x47ac2a)&&(_0x49529b[_0x487c('0x76')]=!0x0,_0x49529b[_0x487c('0x117')]());},{'priority':'highest'}),this[_0x487c('0x7d')][_0x487c('0x4d')]['for'](_0x487c('0x46'))[_0x487c('0x102')](_0x438d8b=>{_0x438d8b['on'](_0x487c('0xca'),(_0x1fdb44,_0x38dae9,_0x23d9d3)=>{if('\x20'!=_0x38dae9[_0x487c('0x24')]['data']||_0x38dae9[_0x487c('0x24')][_0x487c('0x106')]['maxOffset']>0x1)return;if(!_0x23d9d3[_0x487c('0x2b')]['consume'](_0x38dae9[_0x487c('0x24')],_0x1fdb44[_0x487c('0x11d')]))return;const _0x4bdec5=_0x23d9d3[_0x487c('0x4c')],_0x173a97=_0x23d9d3[_0x487c('0xbf')][_0x487c('0x17')](_0x38dae9[_0x487c('0xe2')]);_0x4bdec5[_0x487c('0xd1')](_0x173a97,_0x4bdec5[_0x487c('0xb1')](_0x487c('0xe')));});}),this['editor'][_0x487c('0x4d')][_0x487c('0xb3')]('dataDowncast')[_0x487c('0x3f')]({'model':_0x487c('0x2c')}),this[_0x487c('0x7d')][_0x487c('0x16')]['downcastDispatcher']['on'](_0x487c('0x9b'),function(_0x459a51){const _0x179de9=_0x459a51['plugins'][_0x487c('0xc5')](_0x487c('0x23'));return(_0x451c4e,_0x4faf73,_0xc52689)=>{const _0x467b3b=_0x4faf73[_0x487c('0xcb')]['split'](':')[0x1],_0xd73461=_0x179de9[_0x487c('0xa0')](_0x467b3b);if(!_0xd73461)return null;const _0x409f18=_0x487c('0x102')==_0xd73461[_0x487c('0x3a')]?'split':_0x487c('0x1f');if(!_0xc52689[_0x487c('0x2b')][_0x487c('0x34')](_0x4faf73['markerRange'],_0x451c4e['name']))return;const _0x51167a=_0x4faf73[_0x487c('0xdc')][_0x487c('0xc8')](),_0x46f517=_0x4faf73[_0x487c('0xdc')][_0x487c('0xf')],_0x37d28c=_0x459a51[_0x487c('0x103')][_0x487c('0x81')];let _0x50d7a4=null,_0x3ec475=null,_0x66b0f6=!0x1,_0x16cd47=!0x1;for(const _0xec4116 of _0x51167a){const _0x56c5a5=_0xec4116['item'];_0x66b0f6=_0x66b0f6||_0x37d28c[_0x487c('0x8d')](_0x56c5a5);const _0x42ca2e=_0xc52689[_0x487c('0xbf')][_0x487c('0x89')](_0x56c5a5);if(_0x42ca2e&&_0x42ca2e[_0x487c('0x11a')](_0x487c('0xe1')))return;_0x487c('0x54')==_0xec4116[_0x487c('0x3a')]&&(_0x37d28c[_0x487c('0x85')](_0x56c5a5)&&!_0x37d28c['isLimit'](_0x56c5a5)&&(_0x56c5a5['nextSibling']||_0x46f517[_0x487c('0x29')]?_0x50d7a4&&_0x50d7a4[_0x487c('0x106')]==_0x56c5a5||(_0x50d7a4=_0x56c5a5,_0x5a69d4(_0xec4116[_0x487c('0x66')]),_0x16cd47=!0x0):_0x3ec475=_0x3ec475||_0xec4116[_0x487c('0x66')]));}function _0x5a69d4(_0x6af1c5){const _0x4f2fa1=_0xc52689[_0x487c('0x4c')][_0x487c('0x1')](_0x487c('0xe'),{'class':'ck-suggestion-marker-'+_0x409f18}),_0x411b91=_0xc52689[_0x487c('0xbf')][_0x487c('0x45')](_0x6af1c5);_0xd73461[_0x487c('0xb7')][_0x487c('0x42')]&&_0xc52689[_0x487c('0x4c')][_0x487c('0xdd')](_0x487c('0x5e')+_0x409f18+'-new',_0x4f2fa1),_0x179de9[_0x487c('0xc7')]==_0xd73461&&_0xc52689['writer'][_0x487c('0xdd')](_0x487c('0x52'),_0x4f2fa1),_0xc52689['writer'][_0x487c('0x110')](_0x411b91,_0x4f2fa1),_0xc52689[_0x487c('0xbf')][_0x487c('0x124')](_0x4f2fa1,_0x4faf73[_0x487c('0xcb')]);}_0x66b0f6||_0x16cd47||!_0x3ec475||_0x5a69d4(_0x3ec475);};}(this[_0x487c('0x7d')]),{'priority':'high'}),this[_0x487c('0x7d')][_0x487c('0x16')][_0x487c('0x5b')]['on'](_0x487c('0x64'),(_0x52a1db,_0x5b9619,_0x17d13e)=>{const _0x52e1e5=_0x17d13e[_0x487c('0xbf')]['markerNameToElements'](_0x5b9619[_0x487c('0xcb')]);if(_0x52e1e5)for(const _0x535a82 of _0x52e1e5)(_0x535a82[_0x487c('0x6a')]('ck-suggestion-marker-split')||_0x535a82['hasClass']('ck-suggestion-marker-merge'))&&(_0x17d13e['mapper'][_0x487c('0x48')](_0x535a82,_0x5b9619[_0x487c('0xcb')]),_0x17d13e[_0x487c('0x4c')][_0x487c('0xb0')](_0x535a82));},{'priority':_0x487c('0x88')}),this[_0x487c('0x7d')][_0x487c('0x16')]['downcastDispatcher']['on'](_0x487c('0x9b'),(_0x2ae5c9,_0x51ee3a,_0x224e0d)=>{const _0x46139c=_0x51ee3a[_0x487c('0xcb')][_0x487c('0xc4')](':')[0x1],_0x23fa7b=this[_0x487c('0xa0')](_0x46139c);if(!_0x23fa7b)return null;const _0x351abc='add'==_0x23fa7b[_0x487c('0x3a')]?_0x487c('0xc4'):_0x487c('0x1f');if(_0x224e0d['consumable'][_0x487c('0x34')](_0x51ee3a['markerRange'],_0x2ae5c9[_0x487c('0x11d')]))for(const _0xa8ff98 of _0x51ee3a[_0x487c('0xdc')]['getItems']()){if(!_0xa8ff98['is'](_0x487c('0x10a'),'softBreak'))continue;const _0x36dc3d=_0x224e0d[_0x487c('0x4c')][_0x487c('0x1')](_0x487c('0xe'),{'class':'ck-suggestion-marker-'+_0x351abc}),_0x38bdae=_0x224e0d[_0x487c('0xbf')][_0x487c('0x45')](this[_0x487c('0x7d')][_0x487c('0x103')][_0x487c('0xe5')](_0xa8ff98));_0x23fa7b[_0x487c('0xb7')]['isSuggestion']&&_0x224e0d[_0x487c('0x4c')][_0x487c('0xdd')](_0x487c('0x5e')+_0x351abc+_0x487c('0x4e'),_0x36dc3d),this[_0x487c('0xc7')]==_0x23fa7b&&_0x224e0d[_0x487c('0x4c')]['addClass'](_0x487c('0x52'),_0x36dc3d),_0x224e0d[_0x487c('0x4c')][_0x487c('0x110')](_0x38bdae,_0x36dc3d),_0x224e0d[_0x487c('0xbf')][_0x487c('0x124')](_0x36dc3d,_0x51ee3a[_0x487c('0xcb')]);}},{'priority':_0x487c('0x88')}),this[_0x487c('0x7d')][_0x487c('0x103')][_0x487c('0xa1')]['on'](_0x487c('0x11b'),()=>{this[_0x487c('0x7d')]['editing']['view']['change'](_0x159b66=>{for(const _0x3179f7 of this['editor'][_0x487c('0x103')][_0x487c('0xa1')]['getRootNames']()){const _0x40a78e=this['editor'][_0x487c('0x103')]['document']['getRoot'](_0x3179f7),_0x1395d4=this['editor'][_0x487c('0x16')][_0x487c('0x100')][_0x487c('0xa1')][_0x487c('0x95')](_0x3179f7);if(_0x1395d4){const _0x568c67=_0x40a78e[_0x487c('0x12')](_0x487c('0x68'));if(_0x159b66['removeAttribute'](_0x487c('0xf6'),_0x1395d4),_0x159b66[_0x487c('0x30')](_0x487c('0xa7'),_0x1395d4),_0x159b66[_0x487c('0x30')](_0x487c('0x67'),_0x1395d4),_0x159b66[_0x487c('0x30')]('ck-revision-history-root--active',_0x1395d4),_0x568c67){const _0x32826b=this[_0x487c('0xa0')](_0x568c67);if(!_0x32826b)return null;_0x159b66['setAttribute'](_0x487c('0xf6'),_0x568c67,_0x1395d4),_0x159b66[_0x487c('0xdd')](_0x487c('0x1c')+_0x32826b['type'],_0x1395d4),this['activeChange']==_0x32826b&&_0x159b66['addClass'](_0x487c('0x6d'),_0x1395d4);}}}});}),this[_0x487c('0x7d')][_0x487c('0x4d')]['for'](_0x487c('0x57'))['dataToMarker']({'view':_0x487c('0x4f'),'model':_0x3306ac=>'revision-comment:'+_0x3306ac,'converterPriority':_0x487c('0x10f')}),this[_0x487c('0x7d')]['conversion'][_0x487c('0xb3')](_0x487c('0x57'))['dataToMarker']({'view':_0x487c('0xce'),'model':_0x29f0ab=>'revision-suggestion:'+_0x29f0ab,'converterPriority':_0x487c('0x10f')}),this[_0x487c('0x7d')][_0x487c('0x4d')][_0x487c('0xb3')](_0x487c('0x46'))[_0x487c('0x3f')]({'model':'revision-suggestion','view':_0x163232=>({'name':_0x487c('0x50')+_0x163232,'group':_0x487c('0xb6')}),'converterPriority':_0x487c('0x10f')}),this[_0x487c('0x7d')]['conversion'][_0x487c('0xb3')]('editingDowncast')['markerToHighlight']({'model':_0x487c('0xb6'),'view':_0xa1e45e=>{const _0x38ff46=_0xa1e45e['markerName']['split'](':')[0x1];return _0x487c('0xed')!=_0x38ff46&&_0x487c('0xb8')!=_0x38ff46?null:{'classes':[_0x487c('0xe6'),'ck-suggestion-preview-marker-'+_0x38ff46]};}}),this[_0x487c('0x7d')][_0x487c('0x16')][_0x487c('0x5b')]['on'](_0x487c('0x3c'),et(this[_0x487c('0x7d')],_0x487c('0x1f')),{'priority':'high'}),this[_0x487c('0x7d')][_0x487c('0x16')][_0x487c('0x5b')]['on'](_0x487c('0x19'),et(this[_0x487c('0x7d')],_0x487c('0xc4')),{'priority':'high'}),this[_0x487c('0x7d')][_0x487c('0x16')]['downcastDispatcher']['on'](_0x487c('0x122'),(_0x38ff83,_0x335ee3,_0x17cc3c)=>{const _0x21230f=_0x17cc3c['mapper'][_0x487c('0xbd')](_0x335ee3[_0x487c('0xcb')]);if(_0x21230f)for(const _0x18eec8 of _0x21230f)_0x18eec8['is'](_0x487c('0x60'))&&(_0x17cc3c[_0x487c('0xbf')]['unbindElementFromMarkerName'](_0x18eec8,_0x335ee3[_0x487c('0xcb')]),_0x17cc3c['writer'][_0x487c('0xb0')](_0x18eec8));},{'priority':'high'});}['_getChangeFromId'](_0x2bb475){return this[_0x487c('0xb5')][_0x487c('0xc5')](_0x2bb475);}[_0x487c('0x11f')](_0x35724f){return this[_0x487c('0x11')]&&this['_changeView'][_0x487c('0x36')](),this[_0x487c('0x11')]=new _0x3299af(this[_0x487c('0x7d')]['locale'],_0x35724f),this[_0x487c('0x11')];}[_0x487c('0x2f')](){this[_0x487c('0x7d')][_0x487c('0x103')][_0x487c('0xa1')][_0x487c('0xe7')]['observeMarkers'](_0x487c('0x2c')),this['on'](_0x487c('0x3d'),(_0x3ba042,_0x2bb98f,_0x50eb50,_0x2a7e8f)=>{_0x2a7e8f&&this[_0x487c('0xac')][_0x487c('0xb0')](_0x2a7e8f),_0x50eb50&&(this['_balloon']['add']({'view':_0x50eb50,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xaa352c=this[_0x487c('0x7d')][_0x487c('0x16')],_0x3af33b=this[_0x487c('0xa0')](_0x50eb50[_0x487c('0x65')]);let _0x2ec660;if(_0x3af33b[_0x487c('0xb7')][_0x487c('0xba')]){const _0x243e35=_0xaa352c[_0x487c('0x100')]['getDomRoot'](_0x3af33b[_0x487c('0x6f')]);_0x2ec660=Array[_0x487c('0xf1')](_0x243e35['getClientRects']());}else{const _0x51765a=this[_0x487c('0x7d')]['model'][_0x487c('0x120')][_0x487c('0xc5')]('revision:'+_0x50eb50[_0x487c('0x65')]);_0x2ec660=Array[_0x487c('0xf1')](_0xaa352c[_0x487c('0xbf')]['markerNameToElements'](_0x51765a[_0x487c('0x11d')]))[_0x487c('0xa')](_0x53951f=>_0xaa352c[_0x487c('0x100')][_0x487c('0x27')][_0x487c('0xfb')](_0x53951f))['map'](_0x493953=>Array[_0x487c('0xf1')](_0x493953[_0x487c('0xee')]()))['flat']();}if(!this['_activeViewTarget'])return _0x2ec660[0x0];return _0x2ec660[_0x487c('0xa9')](_0xfaa144=>_0xfaa144[_0x487c('0xe4')]-0x3<=this[_0x487c('0x7b')]['y']&&_0xfaa144[_0x487c('0x92')]+0x3>=this[_0x487c('0x7b')]['y']&&_0xfaa144[_0x487c('0x116')]-0x3<=this[_0x487c('0x7b')]['x']&&_0xfaa144['right']+0x3>=this[_0x487c('0x7b')]['x'])||_0x2ec660[0x0];}}}),this[_0x487c('0xac')][_0x487c('0x5f')](_0x487c('0x55')));}),this['on']('change:activeChange',(_0x26b8fa,_0x514267,_0x6fa6c3,_0x2f94bf)=>{this[_0x487c('0xb')]=_0x6fa6c3?this[_0x487c('0x11f')](_0x6fa6c3):null,this[_0x487c('0x7d')][_0x487c('0x103')][_0x487c('0x11b')](()=>{const _0x544d64=this[_0x487c('0x7d')]['editing'];_0x2f94bf&&(_0x2f94bf[_0x487c('0xb7')][_0x487c('0xba')]?_0x544d64[_0x487c('0x100')]['change'](_0x1e7601=>{_0x1e7601[_0x487c('0x30')]('ck-revision-history-root--active',_0x544d64['view'][_0x487c('0xa1')][_0x487c('0x95')](_0x2f94bf[_0x487c('0x6f')]));}):_0x544d64[_0x487c('0x22')]('revision:'+_0x2f94bf['id'])),_0x6fa6c3&&(_0x6fa6c3['data'][_0x487c('0xba')]?_0x544d64['view'][_0x487c('0x11b')](_0x26d197=>{_0x26d197[_0x487c('0xdd')](_0x487c('0x6d'),_0x544d64[_0x487c('0x100')][_0x487c('0xa1')][_0x487c('0x95')](_0x6fa6c3[_0x487c('0x6f')]));}):_0x544d64['reconvertMarker'](_0x487c('0x25')+_0x6fa6c3['id']));});}),this[_0x487c('0x2d')](this[_0x487c('0x7d')][_0x487c('0x16')][_0x487c('0x100')][_0x487c('0xa1')],_0x487c('0x9f'),(_0xe48a38,_0x3a2b46)=>{if(this[_0x487c('0xc7')])return;const _0x372e96=this[_0x487c('0xfd')](_0x3a2b46[_0x487c('0x6e')]),_0x2c1d12=this[_0x487c('0xb5')][_0x487c('0xc5')](_0x372e96);_0x2c1d12?(this[_0x487c('0x7b')]={'x':_0x3a2b46[_0x487c('0x1b')]['x'],'y':_0x3a2b46[_0x487c('0x1b')]['y']},this[_0x487c('0xb')]=this[_0x487c('0x11f')](_0x2c1d12)):(this[_0x487c('0x7b')]=null,this[_0x487c('0xb')]=null);}),this['listenTo'](this[_0x487c('0x7d')][_0x487c('0x16')][_0x487c('0x100')][_0x487c('0xa1')],_0x487c('0x4a'),(_0xf666dc,_0x30aeb2)=>{const _0x416d84=this[_0x487c('0xfd')](_0x30aeb2['target']),_0x37ff63=this['_changeIdToChange'][_0x487c('0xc5')](_0x416d84);_0x37ff63?(this[_0x487c('0x7b')]={'x':_0x30aeb2[_0x487c('0x1b')]['x'],'y':_0x30aeb2[_0x487c('0x1b')]['y']},_0x37ff63===this[_0x487c('0xc7')]?this[_0x487c('0xac')][_0x487c('0x86')]():this[_0x487c('0xc7')]=_0x37ff63):(this['_activeViewTarget']=null,this['activeChange']=null);});}[_0x487c('0xfd')](_0x41a9a4){do{const _0x56e8d5=_0x41a9a4['getAttribute'](_0x487c('0xf6'));if(_0x56e8d5)return _0x56e8d5;_0x41a9a4=_0x41a9a4[_0x487c('0x106')];}while(_0x41a9a4);return null;}[_0x487c('0x73')](){this[_0x487c('0x7d')][_0x487c('0x103')]['change'](_0x523fae=>{for(const _0x21ac1d of this[_0x487c('0x7d')]['model'][_0x487c('0x120')])_0x523fae[_0x487c('0x62')](_0x21ac1d);});}}function et(_0x104c6b,_0x196f51){return(_0x43c208,_0x240fc3,_0x3affd6)=>{if(!_0x3affd6[_0x487c('0x2b')]['test'](_0x240fc3[_0x487c('0xdc')],_0x43c208[_0x487c('0x11d')]))return;const _0x32e67c=_0x240fc3[_0x487c('0xdc')][_0x487c('0xc8')](),_0x4d819f=_0x240fc3[_0x487c('0xdc')][_0x487c('0xf')],_0x982d0e=_0x104c6b[_0x487c('0x103')][_0x487c('0x81')];let _0x1d67e9=null,_0x585cb1=null,_0x16be76=!0x1,_0x187268=!0x1;for(const _0x5b041e of _0x32e67c){const _0x36f326=_0x5b041e[_0x487c('0x24')];_0x16be76=_0x16be76||_0x982d0e['isContent'](_0x36f326);const _0x25b575=_0x3affd6['mapper'][_0x487c('0x89')](_0x36f326);if(_0x25b575&&_0x25b575[_0x487c('0x11a')]('addHighlight'))return;'elementEnd'==_0x5b041e['type']&&(_0x982d0e['isBlock'](_0x36f326)&&!_0x982d0e[_0x487c('0xf8')](_0x36f326)&&(_0x36f326['nextSibling']||_0x4d819f[_0x487c('0x29')]?_0x1d67e9&&_0x1d67e9[_0x487c('0x106')]==_0x36f326||(_0x1d67e9=_0x36f326,_0xa26253(_0x5b041e[_0x487c('0x66')]),_0x187268=!0x0):_0x585cb1=_0x585cb1||_0x5b041e[_0x487c('0x66')]));}function _0xa26253(_0xa7a1){const _0x395da8=_0x3affd6[_0x487c('0xbf')][_0x487c('0x45')](_0xa7a1),_0x22b82c=_0x3affd6[_0x487c('0x4c')][_0x487c('0x1')](_0x487c('0xe'),{'class':_0x487c('0xbe')+_0x196f51});_0x3affd6[_0x487c('0x4c')]['insert'](_0x395da8,_0x22b82c),_0x3affd6[_0x487c('0xbf')][_0x487c('0x124')](_0x22b82c,_0x240fc3[_0x487c('0xcb')]);}_0x16be76||_0x187268||!_0x585cb1||_0xa26253(_0x585cb1);};}export class RestoreRevisionCommand extends _0x2ba876{constructor(_0x35b90b){super(_0x35b90b);const _0x33abbb=_0x35b90b[_0x487c('0xb2')][_0x487c('0xc5')](d);this['affectsData']=!0x1,this['listenTo'](_0x33abbb,'change:isReady',()=>this[_0x487c('0x10b')]()),this['listenTo'](_0x33abbb,_0x487c('0xd'),()=>this['refresh']());}[_0x487c('0xbb')](){const _0x40b8cb=this[_0x487c('0x7d')],_0x49efe3=_0x40b8cb[_0x487c('0xb2')]['get'](d),_0x17b550=_0x49efe3[_0x487c('0x77')]?_0x49efe3[_0x487c('0xab')][_0x487c('0x10e')]:null;_0x40b8cb[_0x487c('0xf0')][_0x487c('0xc5')](_0x487c('0xf4'))['restoreRevisionCallback'](_0x17b550);}[_0x487c('0x10b')](){const {isReady:_0xf43489,isEnabled:_0x253d08}=this[_0x487c('0x7d')]['plugins'][_0x487c('0xc5')](d);this[_0x487c('0x51')]=_0xf43489&&_0x253d08;}}export class ShowChangeCommand extends _0x2ba876{constructor(_0x263b94,{direction:_0x2fd5b1}){super(_0x263b94);const _0x402719=_0x263b94[_0x487c('0xb2')][_0x487c('0xc5')](d);this['affectsData']=!0x1,this['_step']=_0x487c('0x1e')===_0x2fd5b1?0x1:-0x1,this[_0x487c('0x2d')](_0x402719,'change:isReady',()=>this['refresh']()),this[_0x487c('0x2d')](_0x402719,_0x487c('0xd'),()=>this[_0x487c('0x10b')]()),this[_0x487c('0x2d')](_0x402719,_0x487c('0x83'),()=>this[_0x487c('0x10b')]());}[_0x487c('0xbb')](){const _0x25743a=this[_0x487c('0x7d')],_0x465844=_0x25743a['plugins'][_0x487c('0xc5')](d),{isNavigationMode:_0x36fab4,currentChangeNumber:_0xa5d04b}=_0x465844;let _0x5fabdb;if(_0x465844[_0x487c('0xc7')]=_0x36fab4?_0x465844['diff'][_0x487c('0xae')][_0x487c('0xc5')](_0xa5d04b+this[_0x487c('0x2a')]):_0x465844[_0x487c('0xab')][_0x487c('0xae')][_0x487c('0x39')],_0x465844[_0x487c('0xc7')][_0x487c('0xb7')]['isOnRoot'])_0x5fabdb=_0x25743a[_0x487c('0x16')][_0x487c('0x100')][_0x487c('0xb4')](_0x465844[_0x487c('0xc7')][_0x487c('0x6f')]);else{const _0x4bd85a=_0x25743a[_0x487c('0x103')]['markers'][_0x487c('0xc5')](_0x487c('0x25')+_0x465844['activeChange']['id']);_0x5fabdb=_0xd4e7f8(_0x25743a[_0x487c('0x16')],_0x4bd85a);}_0x557e04({'target':_0x5fabdb,'viewportOffset':0x28});}[_0x487c('0x10b')](){const {isNavigationMode:_0x181be8,currentChangeNumber:_0x24a8d7,numberOfChanges:_0xd50e5d,isReady:_0x2fd05,isEnabled:_0x525ddb}=this['editor'][_0x487c('0xb2')][_0x487c('0xc5')](d);this[_0x487c('0x51')]=!!(_0x525ddb&&_0x2fd05&&_0xd50e5d)&&(!_0x181be8||(0x1===this['_step']?_0x24a8d7<_0xd50e5d-0x1:_0x24a8d7>0x0));}}
|
|
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));}}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { ViewModel } from 'ckeditor5/src/ui.js';
|
|
6
6
|
import '../../../theme/revision/revisionactions.css';
|
|
7
7
|
export interface RevisionDropdownOptions {
|
|
8
8
|
type: 'button';
|
|
9
|
-
model:
|
|
9
|
+
model: ViewModel;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x275d=['function','set','threeVerticalDots','children','source','add','action','bindTemplate','isVisible','Show\x20more\x20items','button','Name\x20this\x20revision','_action','listenTo','class','isActionsDropdownOpen','ck-on','find','ck-revision-history-sidebar__revision__actions','bind','first','execute','listView','name','locale','isOpen','Compare\x20against\x20selected','model','map','items'];(function(_0x277a23,_0x275d22){const _0x14ea77=function(_0x8f68fc){while(--_0x8f68fc){_0x277a23['push'](_0x277a23['shift']());}};_0x14ea77(++_0x275d22);}(_0x275d,0x109));const _0x14ea=function(_0x277a23,_0x275d22){_0x277a23=_0x277a23-0x0;let _0x14ea77=_0x275d[_0x277a23];return _0x14ea77;};import{Collection as _0x3357b0}from'ckeditor5/src/utils.js';import{icons as _0x26dec5}from'ckeditor5/src/core.js';import{ViewModel as _0x5d195c,addListToDropdown as _0x24b8c3,createDropdown as _0x5677ce}from'ckeditor5/src/ui.js';import{getTranslation as _0x22b9cc}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x4abba2,_0x2bbc25){const _0x58e099=_0x4abba2[_0x14ea('0xc')],_0x547427=_0x4abba2['locale'],_0x291454=_0x5677ce(_0x547427);_0x291454['panelPosition']='sw';const _0x1fd415=function(_0x53e69b,_0x11bce2){const _0x3cf05e=function(_0x1cf712,_0x424893){const _0x5c7d1f=_0x1cf712[_0x14ea('0x1d')],_0x3ef6bd={'Compare\x20against\x20selected':_0x22b9cc(_0x5c7d1f,_0x14ea('0x1')),'Name\x20this\x20revision':_0x22b9cc(_0x5c7d1f,_0x14ea('0x10')),'Restore\x20this\x20revision':_0x22b9cc(_0x5c7d1f,'Restore\x20this\x20revision')};return _0x424893[_0x14ea('0x3')](_0x139a7f=>{const _0x582ce6=_0x3ef6bd[_0x139a7f[_0x14ea('0x1c')]];return _0x582ce6&&_0x582ce6!==_0x139a7f['name']&&(_0x139a7f['name']=_0x582ce6),_0x139a7f;});}(_0x53e69b,_0x11bce2),_0x1ea31f=new _0x3357b0();for(const _0x4b9b59 of _0x3cf05e){const _0x15517d={'type':_0x14ea('0xf'),'model':new _0x5d195c({'label':_0x4b9b59[_0x14ea('0x1c')],'class':_0x4b9b59[_0x14ea('0x13')],'withText':!0x0,'_action':_0x4b9b59[_0x14ea('0xb')]})};_0x15517d[_0x14ea('0x2')][_0x14ea('0x18')]('isEnabled')['to'](_0x53e69b,'isActionsDropdownOpen',_0x4bac95=>_0x14ea('0x5')!=typeof _0x4b9b59['isEnabled']||(!_0x4bac95||_0x4b9b59['isEnabled'](_0x53e69b))),_0x1ea31f[_0x14ea('0xa')](_0x15517d);}return _0x1ea31f;}(_0x4abba2,_0x2bbc25);return _0x4abba2[_0x14ea('0x18')]('isActionsDropdownOpen')['to'](_0x291454,_0x14ea('0x0')),_0x291454['buttonView'][_0x14ea('0x6')]({'label':_0x22b9cc(_0x547427,_0x14ea('0xe')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x26dec5[_0x14ea('0x7')]}),_0x291454['extendTemplate']({'attributes':{'class':[_0x14ea('0x17'),_0x58e099['if'](_0x14ea('0x14'),_0x14ea('0x15'))]},'on':{'click':_0x58e099['to'](_0x46ebf3=>_0x46ebf3['stopPropagation']())}}),_0x291454['on'](_0x14ea('0x1a'),_0x45fe17=>{_0x4abba2['isReady']&&_0x14ea('0x5')==typeof _0x45fe17[_0x14ea('0x9')]['_action']&&_0x45fe17[_0x14ea('0x9')][_0x14ea('0x11')](_0x4abba2);}),_0x24b8c3(_0x291454,_0x1fd415),_0x291454[_0x14ea('0x12')](_0x4abba2,'change:isActionsDropdownOpen',(_0x49ae35,_0x14d7cf,_0x5d2e4f)=>{if(_0x5d2e4f)for(const _0xb72777 of _0x291454[_0x14ea('0x1b')][_0x14ea('0x4')]){const _0x24cded=_0xb72777[_0x14ea('0x8')][_0x14ea('0x19')],_0x1d8c54=_0x2bbc25[_0x14ea('0x16')](_0x4a1dac=>_0x4a1dac['action']===_0x24cded[_0x14ea('0x11')])[_0x14ea('0xd')];_0xb72777[_0x14ea('0xd')]=void 0x0===_0x1d8c54||_0x1d8c54(_0x4abba2);}}),_0x291454;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
import '../../../theme/revision/revisionauthor.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x131c=['Revision\x20author','ck-revision-history-sidebar__revision-author','name','ck-revision-history-sidebar__revision-author__name','push','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author_creator','Revision\x20creator'];(function(_0x55f6af,_0x131c00){const _0xd84f32=function(_0x5d3a5b){while(--_0x5d3a5b){_0x55f6af['push'](_0x55f6af['shift']());}};_0xd84f32(++_0x131c00);}(_0x131c,0x1cd));const _0xd84f=function(_0x55f6af,_0x131c00){_0x55f6af=_0x55f6af-0x0;let _0xd84f32=_0x131c[_0x55f6af];return _0xd84f32;};import{View as _0x14a4b3,IconView as _0x9b77ad}from'ckeditor5/src/ui.js';import{getTranslation as _0x1e7e9f}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x4087ff from'../../../theme/icons/user.svg';export default class ti extends _0x14a4b3{constructor(_0x445c0f,_0x44eb7b,_0x2725b1){super(_0x445c0f);const _0x4e5edc=new _0x9b77ad();_0x4e5edc['set']({'content':_0x4087ff,'viewBox':_0xd84f('0x0')});const _0x21825c=['ck',_0xd84f('0x4')];_0x2725b1&&_0x21825c[_0xd84f('0x7')](_0xd84f('0x1'));const _0x110114=[{'tag':'span','attributes':{'class':['ck',_0xd84f('0x6')],'title':_0x1e7e9f(_0x445c0f,_0x2725b1?_0xd84f('0x2'):_0xd84f('0x3'))},'children':[_0x4e5edc,_0x44eb7b[_0xd84f('0x5')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x21825c},'children':_0x110114});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
import '../../../theme/revision/revisionname.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1bd2=['Revision\x20name','ck-revision-history-sidebar__revision-name','extendTemplate','span','set'];(function(_0x45cb8f,_0x1bd2aa){var _0x2981ee=function(_0x5b9664){while(--_0x5b9664){_0x45cb8f['push'](_0x45cb8f['shift']());}};_0x2981ee(++_0x1bd2aa);}(_0x1bd2,0x189));var _0x2981=function(_0x45cb8f,_0x1bd2aa){_0x45cb8f=_0x45cb8f-0x0;var _0x2981ee=_0x1bd2[_0x45cb8f];return _0x2981ee;};import{LabeledFieldView as _0x34ba1e}from'ckeditor5/src/ui.js';import{getTranslation as _0x2762e8}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x34ba1e{constructor(_0x282d69,_0x143985){super(_0x282d69,_0x143985),this[_0x2981('0x1')]({'label':_0x2762e8(_0x282d69,_0x2981('0x2'))}),this[_0x2981('0x4')]({'tag':_0x2981('0x0'),'attributes':{'class':[_0x2981('0x3')]}});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module revision-history/ui/revision/revisionview
|
|
7
7
|
*/
|
|
8
|
-
import type { BaseEvent, Locale } from 'ckeditor5/src/utils';
|
|
9
|
-
import { View, type DropdownView } from 'ckeditor5/src/ui';
|
|
10
|
-
import RevisionNameView from './revisionnameview';
|
|
8
|
+
import type { BaseEvent, Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View, type DropdownView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import RevisionNameView from './revisionnameview.js';
|
|
11
11
|
import '../../../theme/revision/revision.css';
|
|
12
|
-
import type Revision from '../../revision';
|
|
13
|
-
import type { RevisionAction } from '../revisionssidebar/revisionssidebar';
|
|
14
|
-
declare const RevisionView_base: import("ckeditor5/src/utils").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
|
|
12
|
+
import type Revision from '../../revision.js';
|
|
13
|
+
import type { RevisionAction } from '../revisionssidebar/revisionssidebar.js';
|
|
14
|
+
declare const RevisionView_base: import("ckeditor5/src/utils.js").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
|
|
15
15
|
/**
|
|
16
16
|
* TODO
|
|
17
17
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2069=['bind','authors','revisionActionsView','setTemplate','ck-revision-history-sidebar__actions_dropdown_open','unhighlight','element','setName','closest','name','isReady','bindTemplate','isHighlighted','from','createdAt','select','_revision','creator','ck-revision-history-sidebar__revision_highlighted','ck-disabled','isSelected','ck-revision-history-sidebar__revision-authors','uiLanguage','revisionNameView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','map','div','fieldView','value','render','ck-reset','fire','isActionsDropdownOpen','isConfirm','span','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-wrapper','placeholder','srcElement','change','set','extendTemplate','deselect','isEnabled','_createdAtFormatted'];(function(_0x348e0c,_0x20696f){const _0x52dfeb=function(_0x41bdbd){while(--_0x41bdbd){_0x348e0c['push'](_0x348e0c['shift']());}};_0x52dfeb(++_0x20696f);}(_0x2069,0x140));const _0x52df=function(_0x348e0c,_0x20696f){_0x348e0c=_0x348e0c-0x0;let _0x52dfeb=_0x2069[_0x348e0c];return _0x52dfeb;};import{View as _0x291208,createLabeledInputText as _0x245f62}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x47b09c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2685f4 from'./revisionnameview.js';import _0x5f3b5f from'./revisionauthorview.js';import{dateToPrettyFormat as _0x59cc15}from'./utils.js';import{createActionsDropdownView as _0x5560b4}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x47b09c(_0x291208){constructor(_0x5dc460,_0x37bf79,_0x390a62){super(_0x5dc460);const _0x28c14b=this[_0x52df('0x6')],_0x412855=function(_0x456d8c,_0x123da1){const _0x58c2bb=Array[_0x52df('0x8')](_0x123da1[_0x52df('0x29')])['filter'](_0x5a41f6=>_0x5a41f6!=_0x123da1[_0x52df('0xc')]);return _0x123da1['creator']&&_0x58c2bb['unshift'](_0x123da1[_0x52df('0xc')]),_0x58c2bb[_0x52df('0x14')](_0x58e7ef=>new _0x5f3b5f(_0x456d8c,_0x58e7ef,_0x58e7ef==_0x123da1[_0x52df('0xc')]));}(_0x5dc460,_0x37bf79);this['id']=_0x37bf79['id'],this[_0x52df('0xb')]=_0x37bf79,this['bind'](_0x52df('0x4'),_0x52df('0x9'))['to'](_0x37bf79),this[_0x52df('0x28')]('_createdAtFormatted')['to'](this,_0x52df('0x9'),_0x26d3ea=>_0x26d3ea?_0x59cc15(_0x5dc460[_0x52df('0x11')],_0x26d3ea):void 0x0),this[_0x52df('0x23')](_0x52df('0xf'),!0x1),this['set'](_0x52df('0x7'),!0x1),this[_0x52df('0x23')](_0x52df('0x1b'),!0x1),this[_0x52df('0x23')](_0x52df('0x5'),!0x1),this[_0x52df('0x23')](_0x52df('0x26'),!0x1),this['revisionNameView']=new _0x2685f4(_0x5dc460,_0x245f62),this[_0x52df('0x12')][_0x52df('0x16')][_0x52df('0x24')]({'attributes':{'maxlength':'220'}}),this[_0x52df('0x12')]['fieldView'][_0x52df('0x28')]('value',_0x52df('0x20'))['to'](this,_0x52df('0x4'),_0x52df('0x27')),this[_0x52df('0x12')][_0x52df('0x28')](_0x52df('0x26'))['to'](this,_0x52df('0xf'),this,'isEnabled',(_0x57446e,_0x2e66fb)=>_0x57446e&&_0x2e66fb),this[_0x52df('0x2a')]=_0x390a62&&_0x390a62['length']?_0x5560b4(this,_0x390a62):'',this[_0x52df('0x2a')]&&this[_0x52df('0x2a')][_0x52df('0x28')](_0x52df('0x26'))['to'](this),this[_0x52df('0x2b')]({'tag':_0x52df('0x15'),'attributes':{'class':['ck',_0x52df('0x19'),_0x52df('0x1f'),_0x28c14b['if'](_0x52df('0x1c'),_0x52df('0x13'))]},'children':[{'tag':_0x52df('0x15'),'attributes':{'class':['ck',_0x52df('0x19'),'ck-revision-history-sidebar__revision',_0x28c14b['if']('isEnabled',_0x52df('0xe'),_0x122ee5=>!_0x122ee5),_0x28c14b['if']('isSelected',_0x52df('0x1e')),_0x28c14b['if']('isHighlighted',_0x52df('0xd')),_0x28c14b['if'](_0x52df('0x1b'),_0x52df('0x2c'))]},'children':[this['revisionNameView'],{'tag':_0x52df('0x1d'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x28c14b['to'](_0x52df('0x27'))}]},{'tag':_0x52df('0x15'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x52df('0x10')]},'children':_0x412855}]},this[_0x52df('0x2a')]],'on':{'click':_0x28c14b['to'](_0x407e46=>{_0x407e46[_0x52df('0x21')][_0x52df('0x3')]('.ck-thread__remove-confirm')||this['isReady']&&this[_0x52df('0x26')]&&this[_0x52df('0x1a')]('select',{'id':this['id']});})}}]});}[_0x52df('0x18')](){super[_0x52df('0x18')]();const _0x5d9f7e=this[_0x52df('0x12')][_0x52df('0x16')][_0x52df('0x1')];this['listenTo'](_0x5d9f7e,_0x52df('0x22'),()=>{this[_0x52df('0x1a')](_0x52df('0x2'),{'id':this['id'],'name':_0x5d9f7e[_0x52df('0x17')]});});}[_0x52df('0xa')](){this[_0x52df('0xf')]=!0x0;}[_0x52df('0x25')](){this[_0x52df('0xf')]=!0x1;}['highlight'](){this[_0x52df('0x7')]=!0x0;}[_0x52df('0x0')](){this[_0x52df('0x7')]=!0x1;}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module revision-history/ui/revision/subrevisioncollapserview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import '../../../theme/revision/subrevisioncollapser.css';
|
|
11
11
|
export default class SubrevisionCollapserView extends View {
|
|
12
12
|
/**
|