@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230816.0 → 0.0.0-nightly-20230817.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x50ee=['reconvertMarker','sort','endIndex','dataToMarker','hasClass','right','values','_markMarkers','vid','forceDisabled','attributesBefore','add','_threeWayMerge','_removeRevisionMarkers','_refreshStartEndIndex','requires','modelRange','execute','filter','markerToData','mapper','editing','_getDiff','domEvent','revision:','revisionHistoryLabel','enableReadOnlyMode','_removeMissingPairs','restoreRevision','code','_appendChild','addRevision','isBlock','changes','repository','delete','rootName','showNextChange','roots','activeView','isAttached','ck-revision-history-root-add','_findChangeIdFromDomTarget','_getRevisionsRange','_setChanges','_changeIdToChange','change','createAttributeElement','flat','conversion','config','ck-editor__editable__overlay','authors','clear','revision-end','addMarker:revision-suggestion:insertion','_data','markers','toViewPosition','_getViewForChange','set','element','backward','getWalker','changeId','getAttributes','suggestion','isIncorrect','createRange','remove','loadRevisionData','_update','markerNameToElements','ck-suggestion-marker','deletions','_setConversion','revision-comment:','start','level','toViewElement','span','top','bindElementToMarker','change:isReady','showPreviousChange','_markSuggestions','createPositionBefore','_processTape','bottom','addClass','commands','attributes','isRemoved','document','unshift','findIndex','getRevision','isSuggestion','ck-suggestion-marker-merge','length','getIndex','getCustomProperty','viewItem','_setDistance','revision-suggestion','getRevisionData','schema','dataDowncast','isNavigationMode','startsWith','index','_activeViewTarget','addMarker:revision-suggestion:deletion','RevisionsRepository','RevisionViewer','suggestion:','numberOfChanges','includes','_joinTapes','has','from','pluginName','left','domConverter','writer','previousPosition','insertion','processor','_makeModelFromTape','revisionHistory','elementEnd','isCollapsed','isReady','addRevisionData','diff','markerToHighlight','children','next','revision-suggestion:','revision-viewer','isInline','unbindElementFromMarkerName','test','return','markerRange','nextSibling','listenTo','merge','isAdded','isEqual','markersStart','mapViewToDom','enqueueChange','ck-suggestion-preview-marker-','createPositionFromPath','isAfter','downcastDispatcher','attributesAfter','map','addMarker:revision','type','done','_getViewObj','push','_revisions','ck-revision-history-root--active','revisionHistoryAttachChange','mouseover','newRevisionId','collaboration.channelId','deletion','model','getClientRects','high','revision','isAtStart','-new','end','abs','_cleanMarkers','indexOf','getChild','getRootNames','ck-suggestion-preview-marker','element:pre','concat','find','for','useFillerType','editor','uiElement','slice','removeClass','isEnabled','_getChangeFromId','parent','detachRoot','nextPosition','isObject','_makeTape','_changeView','_initInteractions','pairId','isAtEnd','_markMismatchedRemovedTags','splice','getRoot','split','getRevisionRootsAttributes','_markInsertions','restoreRevisionCallback','affectsData','observeMarkers','markerName','side','refresh','isLimit','keys','bind','diffData','toModel','marked','editingDowncast','shift','nodeAfter','userId','ck-suggestion-marker-split','getAttribute','resolve','isRemoveSuggestion','distance','error','checkAttribute','isOnRoot','plugins','WidgetToolbarRepository','data','change:activeChange','createRangeIn','string','item','elementStart','_cleanUp','createRevision','startIndex','ck-suggestion-marker--active','_sortAndFilterDiffChanges','markersEnd','toViewRange','then','insert','_makeModelFromViewString','insertions','attachChange','view','setAttribute','mousedown','currentChangeNumber','createUIElement','addHighlight','consumable','consume','activeChange','parse','data-change-id','vid_end','_fixObsoleteTags','_balloon','removeMarker','_removeUnsupportedChanges','_step','object','highest','text','removeMarker:revision','data-revision-','updatePosition','vid_start','getDomRoot','isAddSuggestion','upcast','change:isEnabled','name','ck-suggestion-marker-','isContent','offsetSize','get'];(function(_0x1c504e,_0x50ee55){const _0x401fdc=function(_0x114045){while(--_0x114045){_0x1c504e['push'](_0x1c504e['shift']());}};_0x401fdc(++_0x50ee55);}(_0x50ee,0x6b));const _0x401f=function(_0x1c504e,_0x50ee55){_0x1c504e=_0x1c504e-0x0;let _0x401fdc=_0x50ee[_0x1c504e];return _0x401fdc;};import{Plugin as _0x2f78c1,Command as _0x4d8cb9}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4c597a}from'ckeditor5/src/utils';import{ContextualBalloon as _0x40545e}from'ckeditor5/src/ui';import{DocumentFragment as _0x4d57ae,Element as _0x596da7,Text as _0x36f440,ViewDocumentFragment as _0x3a7bca,ViewText as _0x1eda4c,ViewElement as _0x58e33a,ViewContainerElement as _0x33f19d,ViewAttributeElement as _0x563441,ViewEmptyElement as _0x56fe8d,ViewRawElement as _0x350424,ViewUIElement as _0x10e25e}from'ckeditor5/src/engine';import{Users as _0x1bbfc4,getMarkerDomElement as _0x2b38af}from'ckeditor5-collaboration/src/collaboration-core';import _0x315e58 from'./ui/revisionviewer/changedetailsview';import _0x2087c3 from'./revisionsrepository';import _0x59d887 from'./changeitem';import{default as _0x4e99eb}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x428693}from'lodash-es';const tt={'c':_0x33f19d,'a':_0x563441,'e':_0x56fe8d,'r':_0x350424,'u':_0x10e25e};export default class d extends _0x2f78c1{static get[_0x401f('0xe')](){return _0x401f('0x7');}static get[_0x401f('0xc3')](){return[_0x1bbfc4,_0x40545e,_0x2087c3];}constructor(_0x270f4b){super(_0x270f4b),this[_0x401f('0xd6')]=this[_0x401f('0x52')]['plugins'][_0x401f('0xb3')](_0x401f('0x6')),this[_0x401f('0xf0')](_0x401f('0x9b'),null),this[_0x401f('0xf0')]('activeView',null),this[_0x401f('0x4')]=null,this[_0x401f('0xf0')]('diff',null),this[_0x401f('0xf0')](_0x401f('0x19'),!0x1),this[_0x401f('0xf0')](_0x401f('0x56'),!0x0),this['on'](_0x401f('0xae'),(_0x259766,_0x364ace,_0xd72257)=>{this['activeChange']=null,this[_0x401f('0xdb')]=null,this['editor']['editing'][_0x401f('0x93')]['change'](_0x273c09=>{for(const _0x306a4d of this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0x111')][_0x401f('0xda')])_0xd72257?_0x273c09[_0x401f('0x55')](_0x401f('0xe7'),_0x306a4d):_0x273c09['addClass']('ck-editor__editable__overlay',_0x306a4d);});}),this['bind'](_0x401f('0x1'))['to'](this,'activeChange',_0x41569b=>null!==_0x41569b),this[_0x401f('0x6f')](_0x401f('0x96'))['to'](this,_0x401f('0x19'),this,_0x401f('0x1b'),this,_0x401f('0x9b'),(_0x12fb21,_0x2fff02,_0x57e462)=>_0x12fb21&&_0x57e462?_0x2fff02[_0x401f('0xd5')][_0x401f('0x118')](_0x57e462):0x0),this[_0x401f('0x6f')](_0x401f('0x9'))['to'](this,_0x401f('0x19'),this,_0x401f('0x1b'),(_0x36c7fd,_0x232898)=>_0x36c7fd?_0x232898['changes'][_0x401f('0x117')]:0x0),this[_0x401f('0x5d')]=null,this[_0x401f('0xe1')]=new Map(),this['adapter']=null,this['_balloon']=this[_0x401f('0x52')][_0x401f('0x7f')]['get'](_0x40545e);}['init'](){const _0x654bd5=this[_0x401f('0x52')],_0x10a1e0=new ShowChangeCommand(_0x654bd5,{'direction':_0x401f('0xf2')}),_0x546de5=new ShowChangeCommand(_0x654bd5,{'direction':'forward'});(_0x654bd5[_0x401f('0x10e')][_0x401f('0xbf')](_0x401f('0x108'),_0x10a1e0),_0x654bd5[_0x401f('0x10e')][_0x401f('0xbf')](_0x401f('0xd9'),_0x546de5),_0x654bd5[_0x401f('0x10e')][_0x401f('0xbf')](_0x401f('0xd0'),new RestoreRevisionCommand(_0x654bd5)),this['on']('change:numberOfChanges',()=>{_0x10a1e0[_0x401f('0x6c')](),_0x546de5[_0x401f('0x6c')]();}),this[_0x401f('0xff')](),this[_0x401f('0x5e')](),_0x654bd5[_0x401f('0xce')](_0x401f('0x20')),_0x654bd5[_0x401f('0x7f')][_0x401f('0xc')](_0x401f('0x80')))&&_0x654bd5['plugins'][_0x401f('0xb3')]('WidgetToolbarRepository')[_0x401f('0xbd')]('revision-viewer');}async[_0x401f('0x11d')](_0x2816ef){await this[_0x401f('0xfa')](_0x2816ef);const _0x303f79={};for(const _0x1294cd in _0x2816ef[_0x401f('0x70')]){if(_0x2816ef[_0x401f('0x70')][_0x1294cd][_0x401f('0x92')]&&!_0x2816ef['diffData'][_0x1294cd][_0x401f('0x92')][_0x401f('0xdc')])continue;const _0x4a4740=this[_0x401f('0xc1')](JSON[_0x401f('0x9c')](_0x2816ef[_0x401f('0x70')][_0x1294cd][_0x401f('0x91')])),_0x454173=this['editor'][_0x401f('0xc9')][_0x401f('0x93')]['document'],_0x50cd69=new _0x3a7bca(_0x454173,_0x4a4740['map'](_0x3f3701=>this['_getViewObj'](_0x3f3701)));this[_0x401f('0x52')]['data'][_0x401f('0x14')][_0x401f('0x51')](_0x401f('0x72')),_0x303f79[_0x1294cd]=this[_0x401f('0x52')][_0x401f('0x81')][_0x401f('0x14')]['toData'](_0x50cd69),this[_0x401f('0x52')][_0x401f('0x81')][_0x401f('0x14')]['useFillerType']('default');}return _0x303f79;}async[_0x401f('0x65')](_0x1f6f00){await this[_0x401f('0xfa')](_0x1f6f00);const _0x42fe54={};for(const _0x5de03e in _0x1f6f00['diffData'])_0x1f6f00['diffData'][_0x5de03e][_0x401f('0x92')]&&!_0x1f6f00[_0x401f('0x70')][_0x5de03e]['attachChange'][_0x401f('0xdc')]||(_0x42fe54[_0x5de03e]=_0x1f6f00[_0x401f('0x70')][_0x5de03e][_0x401f('0x32')]||{});return _0x42fe54;}[_0x401f('0xc1')](_0x177180){return(_0x177180=_0x177180[_0x401f('0xc6')](_0x123771=>!_0x123771[_0x401f('0xaf')]||'revision-start'!==_0x123771['name']&&_0x401f('0xea')!==_0x123771[_0x401f('0xaf')]))['forEach'](_0x196231=>{'string'!=typeof _0x196231&&(_0x196231[_0x401f('0x1d')]=this[_0x401f('0xc1')](_0x196231['children']),_0x196231[_0x401f('0x10f')]=_0x196231[_0x401f('0x10f')]['filter'](_0x20fa5e=>!_0x20fa5e[0x0][_0x401f('0x2')](_0x401f('0xa8'))));}),_0x177180;}async['compare'](_0x5b1439,_0x430f54,_0x318e99=!0x1){if(!this['isEnabled'])return;const _0x27cc3d=this[_0x401f('0x1b')],_0x2e1d64=this[_0x401f('0xd6')],_0x4994b2=_0x401f('0x84')==typeof _0x5b1439?_0x2e1d64[_0x401f('0x114')](_0x5b1439):_0x5b1439,_0x5d24e2='string'==typeof _0x430f54?_0x2e1d64[_0x401f('0x114')](_0x430f54):_0x430f54,_0x1a0b81=_0x4994b2['id'],_0x1ffbb=_0x5d24e2?_0x5d24e2['id']:null;if(!_0x318e99&&this['diff']&&this[_0x401f('0x1b')][_0x401f('0x3d')]===_0x1a0b81&&this[_0x401f('0x1b')]['oldRevisionId']===_0x1ffbb)return Promise['resolve']();this[_0x401f('0x19')]=!0x1,this[_0x401f('0xdb')]=null,this[_0x401f('0x9b')]=null,this[_0x401f('0x1b')]=new _0x4e99eb(_0x1a0b81,_0x1ffbb);const _0x5e979b=this[_0x401f('0xdf')](_0x4994b2,_0x5d24e2,!0x0)['map'](_0xf7f4f0=>this['loadRevisionData'](_0xf7f4f0));return _0x5e979b[_0x401f('0x38')](new Promise(_0x2214a8=>{setTimeout(_0x2214a8,0x14);})),Promise['all'](_0x5e979b)[_0x401f('0x8e')](()=>{if(!this[_0x401f('0x56')])return;this[_0x401f('0x87')]();const _0x3e00fb=this['_getDiff'](_0x1a0b81,_0x1ffbb);for(const _0x88700c of _0x3e00fb[_0x401f('0xd5')])this['_changeIdToChange'][_0x401f('0xf0')](_0x88700c['id'],_0x88700c);this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x2d')]({'isUndoable':!0x1},_0x5b71d1=>{for(const _0x90c33 of this[_0x401f('0x52')][_0x401f('0x40')]['document'][_0x401f('0x4b')]())_0x5b71d1[_0x401f('0x59')](_0x90c33);for(const _0x67ddc8 of Object[_0x401f('0x6e')](_0x3e00fb['model'])){const _0x31a4bc=_0x5b71d1['addRoot'](_0x67ddc8);for(const _0x4ff144 of Object['keys'](_0x3e00fb[_0x401f('0x10f')][_0x67ddc8]))_0x5b71d1['setAttribute'](_0x4ff144,_0x3e00fb[_0x401f('0x10f')][_0x67ddc8][_0x4ff144],_0x31a4bc);_0x5b71d1[_0x401f('0x8f')](_0x3e00fb['model'][_0x67ddc8],_0x31a4bc,0x0);}}),this[_0x401f('0x1b')][_0x401f('0xe0')](this[_0x401f('0x8b')](_0x3e00fb[_0x401f('0xd5')])),this[_0x401f('0x19')]=!0x0;})['catch'](_0x5b2c37=>{console[_0x401f('0x7c')](_0x5b2c37),this['_cleanUp'](),_0x27cc3d&&(this[_0x401f('0x1b')]=_0x27cc3d),this['isReady']=!0x0;});}[_0x401f('0x1a')](_0x3be2c5,_0x15ab5f){const _0x8911f=this['repository'][_0x401f('0x88')](_0x3be2c5);return _0x8911f['on']('_update',(_0x1bc7e4,_0x2761d7,_0x2448ef)=>_0x15ab5f(_0x2761d7,_0x2448ef,_0x8911f)),this['repository'][_0x401f('0xd3')](_0x8911f),_0x8911f;}[_0x401f('0xfa')](_0x43f8cb){if(!_0x43f8cb||_0x43f8cb[_0x401f('0x70')])return Promise[_0x401f('0x79')]();{const _0x5596e5=this[_0x401f('0x52')][_0x401f('0xe6')][_0x401f('0xb3')](_0x401f('0x3e'));return this['adapter'][_0x401f('0x114')]({'channelId':_0x5596e5,'revisionId':_0x43f8cb['id']})[_0x401f('0x8e')](_0x32c89f=>{_0x43f8cb[_0x401f('0xfb')]({'diffData':_0x32c89f[_0x401f('0x70')]},!0x0);});}}['_cleanUp'](){this[_0x401f('0x9b')]=null,this[_0x401f('0x48')](),this[_0x401f('0x5d')]&&this['_changeView']['destroy'](),this[_0x401f('0x5d')]=null,this[_0x401f('0xe1')][_0x401f('0xe9')](),this[_0x401f('0x52')]['model'][_0x401f('0x2d')]({'isUndoable':!0x1},_0x117900=>{for(const _0x497b5d of this[_0x401f('0x52')]['model'][_0x401f('0x111')]['getRootNames']())_0x117900[_0x401f('0x59')](_0x497b5d);});}['_sortAndFilterDiffChanges'](_0x614c1c){const _0x235a31=[],_0x463336=new Map();for(const _0x1349a9 of this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x111')][_0x401f('0x4b')]()){const _0x2f05b7=this[_0x401f('0x52')][_0x401f('0xc9')]['view'][_0x401f('0xab')](_0x1349a9);if(!_0x2f05b7)continue;const _0x555fd1=_0x2f05b7[_0x401f('0x41')]()[_0x401f('0x85')](0x0);_0x555fd1&&(_0x235a31[_0x401f('0x38')](_0x1349a9),_0x463336[_0x401f('0xf0')](_0x1349a9,_0x555fd1));}return _0x235a31[_0x401f('0xb5')]((_0x257fc8,_0x4c251c)=>{const _0xd86a3a=_0x463336[_0x401f('0xb3')](_0x257fc8),_0x4a2861=_0x463336[_0x401f('0xb3')](_0x4c251c);return _0xd86a3a['y']-_0x4a2861['y']||_0xd86a3a['x']-_0x4a2861['x'];}),(_0x614c1c=_0x614c1c[_0x401f('0xc6')](_0x3cec70=>_0x235a31[_0x401f('0xa')](_0x3cec70[_0x401f('0xd8')])))[_0x401f('0xb5')]((_0xddeaf7,_0x189593)=>_0x235a31['indexOf'](_0xddeaf7['rootName'])-_0x235a31[_0x401f('0x49')](_0x189593[_0x401f('0xd8')])),_0x614c1c;}[_0x401f('0x5c')](_0x2d5f62){const _0xf1b232=Array[_0x401f('0xd')](_0x2d5f62[_0x401f('0xed')])['filter'](([_0xdff279,_0x259a6f])=>_0xdff279[_0x401f('0x2')](_0x401f('0xcc'))&&!_0x259a6f[_0x401f('0x18')]),_0x94ba0f=Array[_0x401f('0xd')](this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x83')](_0x2d5f62)[_0x401f('0xf3')]({'singleCharacters':!0x0}));if(0x0!=_0xf1b232[_0x401f('0x117')])for(const _0x1cc545 of _0x94ba0f){const [_0xbb16cc,_0x3e0804]=_0xf1b232[0x0],[,_0x48159a,_0x556c4b]=_0xbb16cc[_0x401f('0x64')](':');if(_0x3e0804['end']['isEqual'](_0x1cc545['nextPosition'])&&_0xf1b232[_0x401f('0x74')](),(_0x1cc545[_0x401f('0x12')][_0x401f('0x2a')](_0x3e0804['start'])||_0x1cc545[_0x401f('0x12')][_0x401f('0x30')](_0x3e0804[_0x401f('0x101')]))&&(_0x401f('0x13')==_0x48159a?_0x1cc545[_0x401f('0x29')]={'userId':_0x556c4b}:'deletion'==_0x48159a&&(_0x1cc545['isRemoved']={'userId':_0x556c4b})),0x0==_0xf1b232[_0x401f('0x117')])break;}return _0x94ba0f;}[_0x401f('0xc2')](_0x2c42db){const _0x360774=new Map();for(let _0x5979c0=0x0;_0x5979c0<_0x2c42db[_0x401f('0x117')];_0x5979c0++)'text'===_0x2c42db[_0x5979c0]['type']?(_0x2c42db[_0x5979c0][_0x401f('0x85')][_0x401f('0x89')]=_0x5979c0,_0x2c42db[_0x5979c0][_0x401f('0x85')]['endIndex']=_0x5979c0):(_0x401f('0x86')===_0x2c42db[_0x5979c0][_0x401f('0x35')]?_0x2c42db[_0x5979c0]['item'][_0x401f('0x89')]=_0x5979c0:_0x401f('0x17')===_0x2c42db[_0x5979c0][_0x401f('0x35')]&&(_0x2c42db[_0x5979c0][_0x401f('0x85')][_0x401f('0xb6')]=_0x5979c0),_0x360774[_0x401f('0xf0')](_0x2c42db[_0x5979c0]['id'],_0x5979c0));for(const _0xfe0da4 of _0x360774[_0x401f('0xba')]())_0x401f('0x86')===_0x2c42db[_0xfe0da4][_0x401f('0x35')]?_0x2c42db[_0xfe0da4]['item'][_0x401f('0xb6')]=_0x360774[_0x401f('0xb3')](_0x2c42db[_0xfe0da4][_0x401f('0x5f')]):_0x401f('0x17')===_0x2c42db[_0xfe0da4]['type']&&(_0x2c42db[_0xfe0da4][_0x401f('0x85')][_0x401f('0x89')]=_0x360774[_0x401f('0xb3')](_0x2c42db[_0xfe0da4][_0x401f('0x5f')]));}[_0x401f('0x10b')](_0x8f91a6){for(let _0x3c2f4b=0x0;_0x3c2f4b<_0x8f91a6[_0x401f('0x117')];_0x3c2f4b++){if(_0x401f('0x86')===_0x8f91a6[_0x3c2f4b]['type'])_0x8f91a6[_0x3c2f4b][_0x401f('0x85')][_0x401f('0x89')]=_0x3c2f4b;else{if(_0x401f('0x17')===_0x8f91a6[_0x3c2f4b]['type']){_0x8f91a6[_0x3c2f4b][_0x401f('0x85')][_0x401f('0xb6')]=_0x3c2f4b;const _0x50fbb1=_0x8f91a6[_0x3c2f4b][_0x401f('0x85')][_0x401f('0x89')];_0x8f91a6[_0x50fbb1][_0x401f('0x5f')]=_0x8f91a6[_0x3c2f4b]['id'],_0x8f91a6[_0x3c2f4b][_0x401f('0x5f')]=_0x8f91a6[_0x50fbb1]['id'];}else _0x8f91a6[_0x3c2f4b]['item'][_0x401f('0x89')]=_0x3c2f4b,_0x8f91a6[_0x3c2f4b]['item'][_0x401f('0xb6')]=_0x3c2f4b,_0x8f91a6[_0x3c2f4b]['pairId']=null;}_0x8f91a6[_0x3c2f4b]['markersStart']||(_0x8f91a6[_0x3c2f4b][_0x401f('0x2b')]=[],_0x8f91a6[_0x3c2f4b][_0x401f('0x8c')]=[]);}}[_0x401f('0x66')](_0x5b0093,_0xfc4b33){const _0x2ac775=_0x5b0093[_0x401f('0xc6')](_0x241425=>!_0x241425[_0x401f('0x29')]);for(let _0xe44451=0x0;_0xe44451<_0xfc4b33['length'];_0xe44451++)_0xfc4b33[_0xe44451][_0x401f('0x29')]&&(_0x2ac775[_0xe44451][_0x401f('0x29')]=_0xfc4b33[_0xe44451][_0x401f('0x29')]);}[_0x401f('0x90')](_0x77b713){const _0x5d08be=JSON[_0x401f('0x9c')](_0x77b713),_0x3a7247=this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')]['document'],_0x5185e0=new _0x3a7bca(_0x3a7247,_0x5d08be[_0x401f('0x33')](_0x1412f6=>this[_0x401f('0x37')](_0x1412f6)));return this[_0x401f('0x52')]['data'][_0x401f('0x71')](_0x5185e0);}[_0x401f('0x37')](_0x4f289c){const _0x2c4966=this[_0x401f('0x52')]['editing'][_0x401f('0x93')][_0x401f('0x111')];if(_0x401f('0x84')==typeof _0x4f289c)return new _0x1eda4c(_0x2c4966,_0x4f289c);{const _0x5ed778=_0x4f289c['children'][_0x401f('0x33')](_0x93b079=>this[_0x401f('0x37')](_0x93b079));return new(tt[_0x4f289c[(_0x401f('0x35'))]]||_0x58e33a)(_0x2c4966,_0x4f289c['name'],_0x4f289c['attributes'],_0x5ed778);}}[_0x401f('0xca')](_0x210683,_0x221495=null){const _0x11f19d=this[_0x401f('0xd6')][_0x401f('0x114')](_0x210683),_0x2219c8=_0x221495?this[_0x401f('0xd6')][_0x401f('0x114')](_0x221495):null,_0x267d12=this[_0x401f('0xdf')](_0x11f19d,_0x2219c8),_0x5cb9a0=_0x267d12[_0x267d12['length']-0x1],_0x247c3b=new Map(),_0x55e69d={'model':{},'attributes':{},'changes':[]},_0x13e732=new Set(),_0xfe9dae=new Map();for(let _0x3da583=_0x267d12[_0x401f('0x117')]-0x1;_0x3da583>=0x0;_0x3da583--){const _0x497078=_0x267d12[_0x3da583];for(const _0x24f917 of Object[_0x401f('0x6e')](_0x497078[_0x401f('0x70')]))if(_0x497078[_0x401f('0x70')][_0x24f917][_0x401f('0x92')]){const _0x54ab33=_0x497078[_0x401f('0x70')][_0x24f917][_0x401f('0x92')];_0x54ab33[_0x401f('0xdc')]?(_0x13e732[_0x401f('0xbf')](_0x24f917),_0xfe9dae[_0x401f('0xc')](_0x24f917)&&_0xfe9dae[_0x401f('0xb3')](_0x24f917)['userId']==_0x54ab33['userId']?_0xfe9dae[_0x401f('0xd7')](_0x24f917):_0xfe9dae[_0x401f('0xf0')](_0x24f917,_0x54ab33)):_0xfe9dae[_0x401f('0xc')](_0x24f917)?(_0x13e732['delete'](_0x24f917),_0xfe9dae[_0x401f('0xd7')](_0x24f917)):(_0x13e732['add'](_0x24f917),_0xfe9dae[_0x401f('0xf0')](_0x24f917,_0x54ab33));}else _0x13e732[_0x401f('0xbf')](_0x24f917);}for(const _0x19c9bf of _0x13e732){const _0x4f88cc=_0xfe9dae['has'](_0x19c9bf)&&!_0xfe9dae[_0x401f('0xb3')](_0x19c9bf)[_0x401f('0xdc')];let _0x273a7c=_0x4f88cc?_0x267d12[_0x401f('0x117')]-0x1:0x0;const _0x57cf88=_0x4f88cc?-0x1:0x1;for(;_0x267d12[_0x273a7c];){const _0x4d752f=_0x267d12[_0x273a7c];if(_0x4d752f[_0x401f('0x70')][_0x19c9bf]){const _0x5d3a26=_0x4f88cc?_0x4d752f[_0x401f('0x70')][_0x19c9bf][_0x401f('0xbe')]:_0x4d752f[_0x401f('0x70')][_0x19c9bf][_0x401f('0x32')];_0x55e69d[_0x401f('0x10f')][_0x19c9bf]=_0x5d3a26?_0x428693(_0x5d3a26):{};break;}_0x273a7c+=_0x57cf88;}}for(const _0x1f4ac1 of _0x267d12){_0x1f4ac1[_0x401f('0x40')]={};for(const _0x224ae4 of _0x1f4ac1[_0x401f('0xe8')])_0x247c3b['set'](_0x224ae4['id'],_0x224ae4);for(const _0x28b41e of _0x13e732){const _0x4f7df6=_0x1f4ac1['diffData'][_0x28b41e]?_0x1f4ac1[_0x401f('0x70')][_0x28b41e][_0x401f('0x91')]:'[]',_0x116104=_0x1f4ac1[_0x401f('0x70')][_0x28b41e]?_0x1f4ac1[_0x401f('0x70')][_0x28b41e][_0x401f('0xfe')]:'[]';_0x1f4ac1[_0x401f('0x40')][_0x28b41e]={'insertions':this['_makeModelFromViewString'](_0x4f7df6),'deletions':this['_makeModelFromViewString'](_0x116104)};}}for(const _0x4feeb0 of _0x13e732){let _0x25dd86=null,_0x1b25d2=0x0;const _0x576491=new Map(Array[_0x401f('0xd')](_0x11f19d[_0x401f('0x40')][_0x4feeb0][_0x401f('0x91')][_0x401f('0xed')])[_0x401f('0xc6')](([_0x429f81])=>!_0x429f81['startsWith']('revision:')));let _0x4c5c82=0x0;for(const _0x23ff09 of _0x267d12){const _0x5740e2=this[_0x401f('0x5c')](_0x23ff09[_0x401f('0x40')][_0x4feeb0][_0x401f('0x91')]);_0x23ff09==_0x11f19d?(_0x25dd86=_0x5740e2,_0x1b25d2=_0x25dd86[_0x401f('0x117')],_0x25dd86['forEach'](_0x55e5ca=>{_0x55e5ca['id']=_0x4c5c82++;}),this[_0x401f('0x10b')](_0x25dd86)):this[_0x401f('0x66')](_0x25dd86,_0x5740e2);const _0xfa09bb=_0x25dd86['filter'](_0x4e34c5=>!_0x4e34c5[_0x401f('0x29')])['map'](_0x5b0758=>_0x5b0758['id']);let _0x38183e=0x0;const _0x5459bf=this['_makeTape'](_0x23ff09['model'][_0x4feeb0][_0x401f('0xfe')]);_0x5459bf['forEach'](_0x434bad=>{_0x434bad['isRemoved']?_0x434bad['id']=_0x1b25d2++:_0x434bad['id']=_0xfa09bb[_0x38183e++];}),this[_0x401f('0x10b')](_0x5459bf),this['_setDistance'](_0x25dd86,'isAdded'),this['_setDistance'](_0x5459bf,_0x401f('0x110')),_0x23ff09==_0x11f19d&&this[_0x401f('0xbb')](_0x25dd86,_0x576491),_0x25dd86=this[_0x401f('0xb')](_0x25dd86,_0x5459bf),this[_0x401f('0xc2')](_0x25dd86),this[_0x401f('0x11b')](_0x25dd86,_0x401f('0x110'));}_0x25dd86=_0x25dd86[_0x401f('0xc6')](_0x309969=>!(_0x309969[_0x401f('0x29')]&&_0x309969[_0x401f('0x110')]));const _0x276b8a=new Map(_0x5cb9a0[_0x401f('0x40')][_0x4feeb0][_0x401f('0xfe')][_0x401f('0xed')]),_0x316a76=new Set(_0x576491[_0x401f('0x6e')]());for(const _0x10194f of _0x276b8a[_0x401f('0x6e')]())_0x316a76['delete'](_0x10194f);this[_0x401f('0x109')](_0x25dd86,_0x316a76),this[_0x401f('0x9f')](_0x25dd86),_0x25dd86=this[_0x401f('0xcf')](_0x25dd86),_0x25dd86=this[_0x401f('0x61')](_0x25dd86),_0x25dd86=this['_removeUnsupportedChanges'](_0x25dd86);const {root:_0x1ddb26,changes:_0x2a885d}=this['_makeModelFromTape'](_0x25dd86,_0x247c3b,_0x4feeb0);_0x55e69d[_0x401f('0x40')][_0x4feeb0]=_0x1ddb26;const _0x1ad4cf=_0xfe9dae[_0x401f('0xb3')](_0x4feeb0);if(_0x1ad4cf){const _0x42ac99=_0x247c3b[_0x401f('0xb3')](_0x1ad4cf['userId']),_0x423e9e=new _0x59d887({'author':_0x42ac99,'type':_0x1ad4cf[_0x401f('0xdc')]?_0x401f('0xbf'):_0x401f('0xf9'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4feeb0});_0x2a885d[_0x401f('0x112')](_0x423e9e),_0x55e69d[_0x401f('0x10f')][_0x4feeb0][_0x401f('0x3b')]=_0x423e9e['id'];}_0x55e69d[_0x401f('0xd5')]=_0x55e69d['changes'][_0x401f('0x4e')](_0x2a885d);}return _0x55e69d;}[_0x401f('0xbb')](_0x537a5e,_0x2605e9){for(let _0xe8ce24=0x0;_0xe8ce24<_0x537a5e[_0x401f('0x117')];_0xe8ce24++)for(const [_0x540d6c,_0x270a37]of _0x2605e9)_0x270a37[_0x401f('0x101')][_0x401f('0x2a')](_0x537a5e[_0xe8ce24][_0x401f('0x12')])&&_0x537a5e[_0xe8ce24]['markersStart'][_0x401f('0x38')](_0x540d6c),_0x270a37['end'][_0x401f('0x2a')](_0x537a5e[_0xe8ce24][_0x401f('0x5a')])&&_0x537a5e[_0xe8ce24][_0x401f('0x8c')][_0x401f('0x38')](_0x540d6c);}[_0x401f('0xb')](_0x1247ec,_0x1c1537){let _0x3c2a8a=[],_0x5cd45c=0x0,_0x1dcb66=0x0;for(;_0x5cd45c<_0x1247ec[_0x401f('0x117')]||_0x1dcb66<_0x1c1537['length'];){const _0x29ac51=_0x1247ec[_0x5cd45c]||{},_0x96913c=_0x1c1537[_0x1dcb66]||{};if(_0x29ac51['id']==_0x96913c['id'])_0x5cd45c++,_0x1dcb66++,_0x3c2a8a[_0x401f('0x38')](_0x29ac51);else{if(_0x96913c['isRemoved']&&_0x29ac51[_0x401f('0x29')]){const {commonTape:_0x14178c,iEnd:_0x1457be,jEnd:_0x29256a}=this[_0x401f('0xc0')](_0x1247ec,_0x5cd45c,_0x1c1537,_0x1dcb66);_0x3c2a8a=_0x3c2a8a[_0x401f('0x4e')](_0x14178c),_0x5cd45c=_0x1457be,_0x1dcb66=_0x29256a;}else _0x96913c['isRemoved']?(_0x1dcb66++,_0x3c2a8a['push'](_0x96913c)):(_0x5cd45c++,_0x3c2a8a[_0x401f('0x38')](_0x29ac51));}}return _0x3c2a8a;}[_0x401f('0x109')](_0x53cdb6,_0x234c1f){const _0x47cdf8=[];for(let _0x111905=0x0;_0x111905<_0x53cdb6['length'];_0x111905++){for(let _0x12925f=0x0;_0x12925f<_0x53cdb6[_0x111905][_0x401f('0x2b')][_0x401f('0x117')];_0x12925f++){const _0x705a80=_0x53cdb6[_0x111905][_0x401f('0x2b')][_0x12925f];if(!_0x234c1f[_0x401f('0xc')](_0x705a80))continue;const {group:_0x1caa11,type:_0x2c337f,authorId:_0x40e16c}=_0x51a15a(_0x705a80);'revision-suggestion'!=_0x1caa11||'insertion'!=_0x2c337f&&_0x401f('0x3f')!=_0x2c337f||(_0x47cdf8[_0x401f('0x112')]({'type':_0x2c337f,'name':_0x705a80,'userId':_0x40e16c}),_0x53cdb6[_0x111905][_0x401f('0x2b')][_0x401f('0x62')](_0x12925f,0x1),_0x12925f--);}_0x33a1f1(_0x53cdb6[_0x111905]);for(let _0x10693d=0x0;_0x10693d<_0x53cdb6[_0x111905][_0x401f('0x8c')][_0x401f('0x117')];_0x10693d++){const _0x48d9f9=_0x53cdb6[_0x111905][_0x401f('0x8c')][_0x10693d];if(!_0x234c1f[_0x401f('0xc')](_0x48d9f9))continue;const {group:_0xe52f63,type:_0x454901}=_0x51a15a(_0x48d9f9);if(_0x401f('0x11c')!=_0xe52f63||_0x401f('0x13')!=_0x454901&&_0x401f('0x3f')!=_0x454901)continue;_0x53cdb6[_0x111905][_0x401f('0x8c')]['splice'](_0x10693d,0x1),_0x10693d--;const _0xcfc8b=_0x47cdf8[_0x401f('0x113')](_0x3ea4fe=>_0x3ea4fe[_0x401f('0xaf')]==_0x48d9f9);_0xcfc8b>-0x1&&_0x47cdf8[_0x401f('0x62')](_0xcfc8b,0x1);}}function _0x51a15a(_0x52786a){const _0xe0cef4=_0x52786a[_0x401f('0x64')](':');return{'group':_0xe0cef4[0x0],'type':_0xe0cef4[0x1],'subType':_0xe0cef4[_0x401f('0x117')]>=0x5?_0xe0cef4[0x2]:null,'id':_0xe0cef4['length']<0x5?_0xe0cef4[0x2]:_0xe0cef4[0x3],'authorId':_0xe0cef4['length']<0x5?_0xe0cef4[0x3]:_0xe0cef4[0x4],'markerCount':0x6==_0xe0cef4[_0x401f('0x117')]?_0xe0cef4[0x5]:null};}function _0x33a1f1(_0x3b945b){for(let _0x4eb5c6=0x0;_0x4eb5c6<_0x47cdf8[_0x401f('0x117')];_0x4eb5c6++){if(_0x3b945b[_0x401f('0x29')]&&_0x401f('0x13')==_0x47cdf8[_0x4eb5c6][_0x401f('0x35')])return _0x3b945b[_0x401f('0xac')]=_0x47cdf8[_0x4eb5c6],void delete _0x3b945b[_0x401f('0x29')];if(!_0x3b945b[_0x401f('0x29')]&&!_0x3b945b['isRemoved']&&'deletion'==_0x47cdf8[_0x4eb5c6][_0x401f('0x35')])return void(_0x3b945b[_0x401f('0x7a')]=_0x47cdf8[_0x4eb5c6]);}}}['_setDistance'](_0x1ec75f,_0x4b8075){let _0x49f9d9=0x0,_0x2209a9=!0x1;const _0x5636fe=new Map();for(const _0x5f26f5 of _0x1ec75f)_0x5f26f5[_0x4b8075]?_0x2209a9&&(_0x49f9d9++,_0x2209a9=!0x1):(_0x49f9d9++,_0x2209a9=!0x0),_0x5636fe[_0x401f('0xf0')](_0x5f26f5['id'],_0x49f9d9);for(let _0xe504a0=0x0;_0xe504a0<_0x1ec75f['length'];_0xe504a0++){if(_0x401f('0x110')==_0x4b8075&&_0x1ec75f[_0xe504a0][_0x401f('0x29')]||_0x401f('0x29')==_0x4b8075&&_0x1ec75f[_0xe504a0][_0x401f('0x110')])continue;if(_0x401f('0xa6')==_0x1ec75f[_0xe504a0][_0x401f('0x35')]){_0x1ec75f[_0xe504a0][_0x401f('0x7b')]=0x0;continue;}const _0x3014c0=_0x5636fe[_0x401f('0xb3')](_0x1ec75f[_0xe504a0]['pairId']),_0x295edd=_0x5636fe[_0x401f('0xb3')](_0x1ec75f[_0xe504a0]['id']);_0x1ec75f[_0xe504a0][_0x401f('0x7b')]=_0x3014c0-_0x295edd;}}[_0x401f('0xdf')](_0x5f54b8,_0xfca3b3,_0x7c9005=!0x1){const _0x53627c=[];let _0x1f0d84=this['repository']['getIndex'](_0x5f54b8),_0x359731=this[_0x401f('0xd6')][_0x401f('0x118')](_0xfca3b3);for(-0x1==_0x359731&&(_0x359731=this['repository'][_0x401f('0x39')][_0x401f('0x117')],_0x7c9005=!0x1);_0x1f0d84<_0x359731;)_0x53627c['push'](this['repository'][_0x401f('0x114')](_0x1f0d84)),_0x1f0d84++;return _0x7c9005&&_0x53627c[_0x401f('0x38')](this[_0x401f('0xd6')]['getRevision'](_0x1f0d84)),_0x53627c;}['_threeWayMerge'](_0x123e23,_0x4c9dd8,_0x22f2de,_0x5e6eeb){const _0x13981c=this[_0x401f('0x52')][_0x401f('0x40')]['schema'];let _0x7f6dbb=_0x4c9dd8;for(;_0x123e23[_0x7f6dbb]&&_0x123e23[_0x7f6dbb][_0x401f('0x29')];)_0x7f6dbb++;let _0x49e858=_0x5e6eeb;for(;_0x22f2de[_0x49e858]&&_0x22f2de[_0x49e858][_0x401f('0x110')];)_0x49e858++;_0x1d535d(_0x123e23,_0x4c9dd8,_0x7f6dbb),_0x1d535d(_0x22f2de,_0x5e6eeb,_0x49e858);const _0xd99a36=_0x22f2de[_0x401f('0x54')](_0x5e6eeb,_0x49e858)[_0x401f('0x4e')](_0x123e23[_0x401f('0x54')](_0x4c9dd8,_0x7f6dbb));return _0xd99a36[_0x401f('0xb5')]((_0x1a2e25,_0x28b7c1)=>_0x1a2e25[_0x401f('0x6b')]!=_0x28b7c1['side']?_0x1a2e25['side']-_0x28b7c1[_0x401f('0x6b')]:_0x1a2e25[_0x401f('0x102')]!=_0x28b7c1['level']?_0x1a2e25[_0x401f('0x102')]-_0x28b7c1[_0x401f('0x102')]:_0x1a2e25[_0x401f('0x7b')]!=_0x28b7c1[_0x401f('0x7b')]?_0x28b7c1['distance']-_0x1a2e25[_0x401f('0x7b')]:!!_0x1a2e25[_0x401f('0x29')]!=!!_0x28b7c1[_0x401f('0x29')]?-0x1==_0x1a2e25[_0x401f('0x6b')]||0x0==_0x1a2e25[_0x401f('0x6b')]?_0x1a2e25[_0x401f('0x29')]?-0x1:0x1:_0x1a2e25['isAdded']?0x1:-0x1:_0x1a2e25[_0x401f('0x3')]-_0x28b7c1[_0x401f('0x3')]),{'commonTape':_0xd99a36,'iEnd':_0x7f6dbb,'jEnd':_0x49e858};function _0x1d535d(_0x465a81,_0x11f231,_0x71c2b0){let _0x4a6efe=-0x1,_0x328884=Number['POSITIVE_INFINITY'],_0x145ef1=!0x0;for(let _0x5990f6=_0x11f231;_0x5990f6<_0x71c2b0;_0x5990f6++)if(_0x13981c[_0x401f('0x21')](_0x465a81[_0x5990f6][_0x401f('0x85')])||(_0x145ef1=!0x1),_0x465a81[_0x5990f6][_0x401f('0x85')]['startIndex']<_0x11f231&&(_0x4a6efe=_0x5990f6),_0x465a81[_0x5990f6][_0x401f('0x85')][_0x401f('0xb6')]>=_0x71c2b0){_0x328884=_0x5990f6;break;}_0x145ef1&&(_0x4a6efe=_0x71c2b0-0x1);for(let _0x1819e3=_0x11f231;_0x1819e3<_0x71c2b0;_0x1819e3++)_0x465a81[_0x1819e3][_0x401f('0x6b')]=_0x1819e3<=_0x4a6efe?-0x1:_0x1819e3<_0x328884?0x0:0x1,_0x465a81[_0x1819e3][_0x401f('0x3')]=_0x1819e3;let _0x42dda4=0x0;for(let _0x441d64=_0x11f231;_0x441d64<=_0x4a6efe;_0x441d64++)0x0==_0x465a81[_0x441d64][_0x401f('0x7b')]?_0x465a81[_0x441d64]['level']=_0x42dda4:(_0x42dda4++,_0x465a81[_0x441d64][_0x401f('0x102')]=_0x42dda4,_0x42dda4++);for(let _0x20bbce=_0x11f231;_0x20bbce<_0x71c2b0;_0x20bbce++)0x0==_0x465a81[_0x20bbce][_0x401f('0x6b')]&&(_0x465a81[_0x20bbce][_0x401f('0x102')]=_0x42dda4);_0x42dda4=0x0;for(let _0x4a642a=_0x71c2b0-0x1;_0x4a642a>=_0x328884;_0x4a642a--)0x0==_0x465a81[_0x4a642a]['distance']?_0x465a81[_0x4a642a]['level']=_0x42dda4:(_0x42dda4--,_0x465a81[_0x4a642a][_0x401f('0x102')]=_0x42dda4,_0x42dda4--);}}[_0x401f('0x9f')](_0x51ef10){const _0x57e2dc=new Map(),_0x518de4=this[_0x401f('0x52')][_0x401f('0x40')]['schema'];for(let _0x39ff60=0x1;_0x39ff60<_0x51ef10[_0x401f('0x117')];_0x39ff60++){let _0x5b1a3f,_0x65a3,_0x2663f0;const _0x465713=_0x51ef10[_0x39ff60],_0x4f6f32=_0x51ef10[_0x39ff60-0x1];if('text'==_0x465713[_0x401f('0x35')])continue;if(_0x465713[_0x401f('0x35')]!=_0x4f6f32[_0x401f('0x35')])continue;if(!_0x518de4[_0x401f('0xd4')](_0x4f6f32['item'])||_0x518de4['isLimit'](_0x4f6f32[_0x401f('0x85')]))continue;if(!_0x518de4[_0x401f('0xd4')](_0x465713[_0x401f('0x85')])||_0x518de4[_0x401f('0x6d')](_0x465713[_0x401f('0x85')]))continue;if((_0x51ef10[_0x39ff60][_0x401f('0x29')]||_0x51ef10[_0x39ff60][_0x401f('0xac')])&&_0x51ef10[_0x39ff60-0x1][_0x401f('0x110')])_0x5b1a3f=_0x51ef10[_0x39ff60],_0x65a3=_0x51ef10[_0x39ff60-0x1],_0x2663f0=_0x39ff60-0x1;else{if(!_0x51ef10[_0x39ff60][_0x401f('0x110')]||!_0x51ef10[_0x39ff60-0x1][_0x401f('0x29')]&&!_0x51ef10[_0x39ff60-0x1][_0x401f('0xac')])continue;_0x5b1a3f=_0x51ef10[_0x39ff60-0x1],_0x65a3=_0x51ef10[_0x39ff60],_0x2663f0=_0x39ff60;}const _0x39162f=_0x5b1a3f[_0x401f('0x102')]==_0x65a3[_0x401f('0x102')],_0x53cf08=Math[_0x401f('0x47')](_0x5b1a3f[_0x401f('0x102')])<Math[_0x401f('0x47')](_0x65a3['level'])&&0x0==_0x65a3['distance'];(_0x39162f||_0x53cf08)&&(_0x57e2dc[_0x401f('0xf0')](_0x65a3['id'],_0x5b1a3f['id']),_0x51ef10['splice'](_0x2663f0,0x1),_0x39ff60--,_0x5b1a3f[_0x401f('0x29')]=!0x1);}for(let _0x4f4398=0x0;_0x4f4398<_0x51ef10[_0x401f('0x117')];_0x4f4398++)_0x57e2dc[_0x401f('0xc')](_0x51ef10[_0x4f4398][_0x401f('0x5f')])&&(_0x51ef10[_0x4f4398][_0x401f('0x5f')]=_0x57e2dc[_0x401f('0xb3')](_0x51ef10[_0x4f4398][_0x401f('0x5f')]));}[_0x401f('0xcf')](_0x38c34c){const _0x50e0f3=new Set(_0x38c34c[_0x401f('0x33')](_0x23b696=>_0x23b696['id']));for(let _0x39d84a=0x0;_0x39d84a<_0x38c34c[_0x401f('0x117')];_0x39d84a++)_0x50e0f3['has'](_0x38c34c[_0x39d84a]['pairId'])||0x0==_0x38c34c[_0x39d84a][_0x401f('0x7b')]||(_0x38c34c[_0x39d84a][_0x401f('0xf7')]=!0x0);return _0x38c34c['filter'](_0x13f040=>!_0x13f040['isIncorrect']);}[_0x401f('0x61')](_0xc84770){const _0x37a2c0=new Set();for(let _0x796233=0x0;_0x796233<_0xc84770[_0x401f('0x117')];_0x796233++){if(_0x37a2c0['has'](_0xc84770[_0x796233]['id'])&&_0xc84770[_0x796233][_0x401f('0x110')]&&(_0xc84770[_0x796233][_0x401f('0xf7')]=!0x0),_0xc84770[_0x796233]['isIncorrect'])continue;if(0x0==_0xc84770[_0x796233][_0x401f('0x7b')])continue;if(_0x401f('0x86')!=_0xc84770[_0x796233]['type'])continue;if(null==_0xc84770[_0x796233][_0x401f('0x5f')])continue;let _0x18e840=_0x796233+0x1,_0x3c3516=0x0;for(;_0xc84770[_0x18e840]['id']!=_0xc84770[_0x796233]['pairId'];)'elementStart'==_0xc84770[_0x18e840][_0x401f('0x35')]?_0x3c3516++:_0x401f('0x17')==_0xc84770[_0x18e840][_0x401f('0x35')]&&_0x3c3516--,_0x18e840++;if(0x0!=_0x3c3516){if(_0xc84770[_0x796233][_0x401f('0x110')])_0xc84770[_0x796233][_0x401f('0xf7')]=!0x0;else for(;_0x18e840!=_0x796233;)_0xc84770[_0x18e840][_0x401f('0x110')]&&0x0!=_0xc84770[_0x18e840][_0x401f('0x7b')]&&(_0xc84770[_0x18e840][_0x401f('0xf7')]=!0x0,_0x37a2c0[_0x401f('0xbf')](_0xc84770[_0x18e840]['pairId'])),_0x18e840--;}}return _0xc84770[_0x401f('0xc6')](_0x28db53=>!_0x28db53['isIncorrect']);}[_0x401f('0xa2')](_0xc14519){const _0x5bb7e8=this[_0x401f('0x52')]['model'][_0x401f('0x11e')];for(let _0x5078a0=0x0;_0x5078a0<_0xc14519[_0x401f('0x117')];_0x5078a0++){if(!(_0xc14519[_0x5078a0][_0x401f('0x29')]||_0xc14519[_0x5078a0][_0x401f('0xac')]||_0xc14519[_0x5078a0][_0x401f('0x110')]||_0xc14519[_0x5078a0]['isRemoveSuggestion']))continue;if(0x0==_0xc14519[_0x5078a0][_0x401f('0x7b')])continue;const _0x4518bd=_0xc14519[_0x5078a0][_0x401f('0x85')];_0x5bb7e8['isBlock'](_0x4518bd)||_0x5bb7e8[_0x401f('0x6d')](_0x4518bd)||(_0xc14519[_0x5078a0][_0x401f('0x29')]&&delete _0xc14519[_0x5078a0][_0x401f('0x29')],_0xc14519[_0x5078a0]['isAddSuggestion']&&delete _0xc14519[_0x5078a0][_0x401f('0xac')],_0xc14519[_0x5078a0][_0x401f('0x7a')]&&delete _0xc14519[_0x5078a0][_0x401f('0x7a')],_0xc14519[_0x5078a0][_0x401f('0x110')]&&(_0xc14519[_0x5078a0][_0x401f('0xf7')]=!0x0));}return _0xc14519[_0x401f('0xc6')](_0x2d7b15=>!_0x2d7b15['isIncorrect']);}[_0x401f('0x15')](_0x397685,_0x2c317c,_0x404824){const _0x1163ed=new _0x4d57ae(),_0x5283cb=[],_0x4eab23=new Map(),_0x5d6b7f=this['editor'][_0x401f('0x40')],_0x139625=_0x5d6b7f[_0x401f('0x11e')],_0x35715b=[_0x1163ed],_0x122ff1={},_0x216221={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1870ed=null;const _0x4e04e6=[0x0];for(let _0x1f6640=0x0;_0x1f6640<_0x397685[_0x401f('0x117')];_0x1f6640++){let _0x1969c8,_0x2f40d7;if(_0x401f('0x86')===_0x397685[_0x1f6640][_0x401f('0x35')]){_0x1969c8=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6);const _0x333f2d=new _0x596da7(_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0xaf')],_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0xf5')]());_0x35715b[0x0][_0x401f('0xd2')](_0x333f2d),_0x4e04e6[_0x401f('0x38')](0x0),_0x35715b[_0x401f('0x112')](_0x333f2d),_0x2f40d7=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6),_0x1870ed=null;}else{if('elementEnd'===_0x397685[_0x1f6640]['type'])_0x35715b[_0x401f('0x74')](),_0x1969c8=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6),_0x4e04e6['pop'](),_0x4e04e6[_0x4e04e6[_0x401f('0x117')]-0x1]++,_0x2f40d7=_0x5d6b7f['createPositionFromPath'](_0x1163ed,_0x4e04e6),_0x1870ed=null;else{if(_0x1969c8=_0x5d6b7f[_0x401f('0x2f')](_0x1163ed,_0x4e04e6),_0x1870ed&&_0xdd9690(_0x1870ed,_0x397685[_0x1f6640][_0x401f('0x85')]))_0x1870ed[_0x401f('0xec')]+=_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0x81')];else{const _0x3f7f83=new _0x36f440(_0x397685[_0x1f6640]['item'][_0x401f('0x81')],_0x397685[_0x1f6640][_0x401f('0x85')]['getAttributes']());_0x35715b[0x0][_0x401f('0xd2')](_0x3f7f83),_0x1870ed=_0x3f7f83;}_0x4e04e6[_0x4e04e6[_0x401f('0x117')]-0x1]+=_0x397685[_0x1f6640][_0x401f('0x85')][_0x401f('0xb2')],_0x2f40d7=_0x5d6b7f['createPositionFromPath'](_0x1163ed,_0x4e04e6);}}for(const _0x419328 of _0x397685[_0x1f6640][_0x401f('0x2b')])_0x4eab23['set'](_0x419328,{'start':_0x1969c8,'end':null});_0x28d996(_0x401f('0x7a'),_0x1f6640,_0x1969c8,_0x2f40d7),_0x28d996(_0x401f('0xac'),_0x1f6640,_0x1969c8,_0x2f40d7),_0x28d996(_0x401f('0x110'),_0x1f6640,_0x1969c8,_0x2f40d7),_0x28d996(_0x401f('0x29'),_0x1f6640,_0x1969c8,_0x2f40d7);for(const _0x26796e of _0x397685[_0x1f6640][_0x401f('0x8c')]){_0x4eab23[_0x401f('0xb3')](_0x26796e)['end']=_0x2f40d7;}}for(const [_0x3ec828,_0x305ce3]of _0x4eab23){const _0x2a80b4=this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0xf8')](_0x305ce3[_0x401f('0x101')],_0x305ce3[_0x401f('0x46')]);_0x1163ed['markers'][_0x401f('0xf0')](_0x3ec828,_0x2a80b4);}return _0x5283cb[_0x401f('0xb5')]((_0x422f5f,_0x38a072)=>{const _0x30a78b=_0x1163ed[_0x401f('0xed')][_0x401f('0xb3')](_0x401f('0xcc')+_0x422f5f['id']),_0x40efe3=_0x1163ed[_0x401f('0xed')][_0x401f('0xb3')]('revision:'+_0x38a072['id']);return _0x30a78b[_0x401f('0x101')]['isBefore'](_0x40efe3[_0x401f('0x101')])?-0x1:_0x30a78b[_0x401f('0x101')][_0x401f('0x30')](_0x40efe3[_0x401f('0x101')])?0x1:_0x30a78b[_0x401f('0x46')]['isBefore'](_0x40efe3[_0x401f('0x46')])?-0x1:_0x30a78b[_0x401f('0x46')][_0x401f('0x30')](_0x40efe3[_0x401f('0x46')])?0x1:'add'===_0x422f5f[_0x401f('0x35')]?-0x1:0x1;}),{'root':_0x1163ed,'changes':_0x5283cb};function _0x28d996(_0x570bce,_0x4cec31,_0x360a07,_0x1bb451){const _0x2be068=!!_0x397685[_0x4cec31][_0x570bce],_0x35c5b1=_0x2be068?_0x397685[_0x4cec31][_0x570bce][_0x401f('0x76')]:null,_0x23fbbd=_0x4cec31===_0x397685[_0x401f('0x117')]-0x1,_0x3e6a54=_0x216221[_0x570bce][0x0],_0x3936b6=_0x139625[_0x401f('0x5b')](_0x397685[_0x4cec31][_0x401f('0x85')]);!_0x122ff1[_0x570bce]&&_0x2be068?_0x122ff1[_0x570bce]={'start':_0x360a07,'tapeItem':_0x397685[_0x4cec31],'userId':_0x35c5b1,'type':_0x570bce}:_0x122ff1[_0x570bce]&&!_0x2be068?(_0x122ff1[_0x570bce]['end']=_0x360a07,_0xbeaeab(_0x122ff1[_0x570bce]),_0x122ff1[_0x570bce]=null):_0x122ff1[_0x570bce]&&_0x2be068&&_0x122ff1[_0x570bce][_0x401f('0x76')]!==_0x35c5b1&&(_0x122ff1[_0x570bce]['end']=_0x360a07,_0x3e6a54&&_0x3e6a54[_0x401f('0x76')]===_0x122ff1[_0x570bce][_0x401f('0x76')]||_0xbeaeab(_0x122ff1[_0x570bce]),_0x122ff1[_0x570bce]={'start':_0x360a07,'tapeItem':_0x397685[_0x4cec31],'userId':_0x35c5b1,'type':_0x570bce}),_0x122ff1[_0x570bce]&&_0x3936b6&&(_0x401f('0x86')!==_0x397685[_0x4cec31][_0x401f('0x35')]||_0x3e6a54&&_0x3e6a54[_0x401f('0x76')]===_0x35c5b1||_0x216221[_0x570bce][_0x401f('0x112')]({'userId':_0x35c5b1,'object':_0x397685[_0x4cec31][_0x401f('0x85')],'change':_0x122ff1[_0x570bce]}),'elementEnd'===_0x397685[_0x4cec31]['type']&&_0x3e6a54&&_0x3e6a54[_0x401f('0xa4')]===_0x397685[_0x4cec31][_0x401f('0x85')]&&(_0x216221[_0x570bce]['shift'](),_0x122ff1[_0x570bce]=_0x3e6a54['change'])),_0x122ff1[_0x570bce]&&_0x23fbbd&&(_0x122ff1[_0x570bce][_0x401f('0x46')]=_0x1bb451,_0xbeaeab(_0x122ff1[_0x570bce]),_0x122ff1[_0x570bce]=null);}function _0xbeaeab({start:_0x967eea,end:_0x518272,tapeItem:_0x389677,userId:_0x235c6e,type:_0x338e09}){const _0x206f20=_0x389677[_0x401f('0x85')],_0x19b229=_0x5d6b7f[_0x401f('0x11e')][_0x401f('0xd4')](_0x206f20)&&!_0x5d6b7f[_0x401f('0x11e')][_0x401f('0x6d')](_0x206f20),_0x11f167=_0x967eea[_0x401f('0x75')]==_0x518272[_0x401f('0x58')]&&_0x518272[_0x401f('0x44')];if(_0x19b229&&_0x11f167)return;const _0x3460a8=_0x5d6b7f[_0x401f('0xf8')](_0x967eea,_0x518272),_0x506da4=_0x2c317c[_0x401f('0xb3')](_0x235c6e),_0x5f185a=new _0x59d887({'author':_0x506da4,'type':_0x401f('0x29')==_0x338e09||_0x401f('0xac')==_0x338e09?_0x401f('0xbf'):'remove','data':{'isSuggestion':_0x401f('0xac')==_0x338e09||_0x401f('0x7a')==_0x338e09},'createdAt':new Date(),'rootName':_0x404824});_0x5283cb['push'](_0x5f185a),_0x1163ed['markers'][_0x401f('0xf0')](_0x401f('0xcc')+_0x5f185a['id'],_0x3460a8);}function _0xdd9690(_0x5a0093,_0x258d89){const _0x19bc30=_0x5a0093[_0x401f('0xf5')](),_0x26db8a=_0x258d89['getAttributes']();for(const _0x449ab6 of _0x19bc30){if(_0x449ab6[0x1]!==_0x258d89[_0x401f('0x78')](_0x449ab6[0x0]))return!0x1;_0x26db8a[_0x401f('0x1e')]();}return _0x26db8a['next']()[_0x401f('0x36')];}}[_0x401f('0xff')](){this['editor'][_0x401f('0xe5')][_0x401f('0x50')](_0x401f('0xad'))[_0x401f('0xb7')]({'view':_0x401f('0x43')}),this[_0x401f('0x52')]['conversion'][_0x401f('0x50')](_0x401f('0x73'))[_0x401f('0x1c')]({'model':_0x401f('0x43'),'view':_0x347199=>{const _0x563bad=_0x347199[_0x401f('0x6a')][_0x401f('0x64')](':')[0x1],_0x461623=this['_getChangeFromId'](_0x563bad);if(!_0x461623)return null;const _0x25fe5c=_0x401f('0xbf')==_0x461623['type']?_0x401f('0x13'):_0x401f('0x3f'),_0x46634e=[_0x401f('0xfd'),_0x401f('0xb0')+_0x25fe5c];return _0x461623[_0x401f('0x81')][_0x401f('0x115')]&&_0x46634e['push']('ck-suggestion-marker-'+_0x25fe5c+_0x401f('0x45')),this[_0x401f('0x9b')]==_0x461623&&_0x46634e[_0x401f('0x38')]('ck-suggestion-marker--active'),{'classes':_0x46634e,'attributes':{'data-change-id':_0x563bad}};}}),this[_0x401f('0x52')][_0x401f('0xe5')]['for'](_0x401f('0xad'))[_0x401f('0xbf')](_0x132292=>{_0x132292['on'](_0x401f('0x4d'),(_0xf5a1bc,_0x483df4,_0x167400)=>{const _0x518c8e=_0x483df4[_0x401f('0x11a')][_0x401f('0x4a')](0x0);if(!_0x518c8e||!_0x518c8e['is'](_0x401f('0xf1'),_0x401f('0xd1')))return;if(!_0x167400[_0x401f('0x99')][_0x401f('0x9a')](_0x518c8e,{'attributes':[_0x401f('0xaa'),_0x401f('0x9e')]}))return;const _0x592013=_0x483df4[_0x401f('0xc4')]['start']['nodeAfter'];_0x167400[_0x401f('0x11')][_0x401f('0x94')]('vid_start',_0x518c8e[_0x401f('0x78')](_0x401f('0xaa')),_0x592013),_0x167400['writer'][_0x401f('0x94')]('vid_end',_0x518c8e[_0x401f('0x78')](_0x401f('0x9e')),_0x592013);},{'priority':'low'});}),this['editor'][_0x401f('0xe5')]['for'](_0x401f('0xad'))[_0x401f('0xbf')](_0x42866f=>{_0x42866f['on']('element',(_0x74ee9a,_0x5c2c63,_0x36d5f4)=>{if(!_0x36d5f4[_0x401f('0x99')][_0x401f('0x9a')](_0x5c2c63[_0x401f('0x11a')],{'attributes':[_0x401f('0xaa'),'vid_end']}))return;if(_0x5c2c63['modelRange'][_0x401f('0x18')])return;const _0x37859f=_0x5c2c63['modelRange'][_0x401f('0x101')][_0x401f('0x75')];_0x37859f['hasAttribute'](_0x401f('0xaa'))||_0x37859f['hasAttribute'](_0x401f('0xbc'))||(_0x36d5f4[_0x401f('0x11')][_0x401f('0x94')](_0x401f('0xaa'),_0x5c2c63[_0x401f('0x11a')][_0x401f('0x78')](_0x401f('0xaa')),_0x37859f),_0x36d5f4['writer'][_0x401f('0x94')](_0x401f('0x9e'),_0x5c2c63[_0x401f('0x11a')][_0x401f('0x78')](_0x401f('0x9e')),_0x37859f));},{'priority':'low'});}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')]('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x55c5b1=>_0x55c5b1[_0x401f('0x78')](_0x401f('0xbc'))}}),this[_0x401f('0x52')]['model'][_0x401f('0x11e')]['on'](_0x401f('0x7d'),(_0x861a3b,[,_0x4226fe])=>{['vid_start',_0x401f('0x9e'),_0x401f('0xbc')][_0x401f('0xa')](_0x4226fe)&&(_0x861a3b[_0x401f('0x24')]=!0x0,_0x861a3b['stop']());},{'priority':_0x401f('0xa5')}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')](_0x401f('0x0'))[_0x401f('0xbf')](_0x3c5ef1=>{_0x3c5ef1['on']('attribute:vid',(_0x2c78ff,_0x59833c,_0xdd6e1e)=>{if('\x20'!=_0x59833c[_0x401f('0x85')][_0x401f('0x81')]||_0x59833c[_0x401f('0x85')]['parent']['maxOffset']>0x1)return;if(!_0xdd6e1e[_0x401f('0x99')]['consume'](_0x59833c[_0x401f('0x85')],_0x2c78ff[_0x401f('0xaf')]))return;const _0x36790d=_0xdd6e1e['writer'],_0x4b7b76=_0xdd6e1e[_0x401f('0xc8')][_0x401f('0x8d')](_0x59833c['range']);_0x36790d['wrap'](_0x4b7b76,_0x36790d[_0x401f('0xe3')]('span'));});}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')]('dataDowncast')[_0x401f('0xc7')]({'model':_0x401f('0x43')}),this[_0x401f('0x52')]['editing'][_0x401f('0x31')]['on'](_0x401f('0x34'),function(_0xa626f){const _0x4e4da8=_0xa626f[_0x401f('0x7f')]['get'](_0x401f('0x7'));return(_0x105e5d,_0x536686,_0x184a35)=>{const _0x364cd9=_0x536686[_0x401f('0x6a')]['split'](':')[0x1],_0x304ddc=_0x4e4da8[_0x401f('0x57')](_0x364cd9);if(!_0x304ddc)return null;const _0x2d087b='add'==_0x304ddc[_0x401f('0x35')]?_0x401f('0x64'):'merge';if(!_0x184a35[_0x401f('0x99')][_0x401f('0x23')](_0x536686[_0x401f('0x25')],_0x105e5d['name']))return;const _0x21629a=_0x536686[_0x401f('0x25')][_0x401f('0xf3')](),_0x5b803d=_0x536686[_0x401f('0x25')]['start'],_0xb4b944=_0xa626f[_0x401f('0x40')][_0x401f('0x11e')];let _0x631a4a=null,_0x5ab460=null,_0x2d5175=!0x1,_0x31a5b3=!0x1;for(const _0x19c6da of _0x21629a){const _0x2c99e1=_0x19c6da[_0x401f('0x85')];_0x2d5175=_0x2d5175||_0xb4b944[_0x401f('0xb1')](_0x2c99e1);const _0x1c537b=_0x184a35[_0x401f('0xc8')][_0x401f('0x103')](_0x2c99e1);if(_0x1c537b&&_0x1c537b['getCustomProperty'](_0x401f('0x98')))return;_0x401f('0x17')==_0x19c6da[_0x401f('0x35')]&&(_0xb4b944[_0x401f('0xd4')](_0x2c99e1)&&!_0xb4b944[_0x401f('0x6d')](_0x2c99e1)&&(_0x2c99e1[_0x401f('0x26')]||_0x5b803d[_0x401f('0x60')]?_0x631a4a&&_0x631a4a[_0x401f('0x58')]==_0x2c99e1||(_0x631a4a=_0x2c99e1,_0x12c9ba(_0x19c6da['previousPosition']),_0x31a5b3=!0x0):_0x5ab460=_0x5ab460||_0x19c6da[_0x401f('0x12')]));}function _0x12c9ba(_0x2d7c93){const _0x1d1dd9=_0x184a35['writer'][_0x401f('0x97')](_0x401f('0x104'),{'class':'ck-suggestion-marker-'+_0x2d087b}),_0x5330e5=_0x184a35['mapper'][_0x401f('0xee')](_0x2d7c93);_0x304ddc['data'][_0x401f('0x115')]&&_0x184a35[_0x401f('0x11')][_0x401f('0x10d')](_0x401f('0xb0')+_0x2d087b+'-new',_0x1d1dd9),_0x4e4da8[_0x401f('0x9b')]==_0x304ddc&&_0x184a35[_0x401f('0x11')][_0x401f('0x10d')](_0x401f('0x8a'),_0x1d1dd9),_0x184a35['writer'][_0x401f('0x8f')](_0x5330e5,_0x1d1dd9),_0x184a35[_0x401f('0xc8')][_0x401f('0x106')](_0x1d1dd9,_0x536686[_0x401f('0x6a')]);}_0x2d5175||_0x31a5b3||!_0x5ab460||_0x12c9ba(_0x5ab460);};}(this[_0x401f('0x52')]),{'priority':'high'}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0xa7'),(_0x4dac48,_0xb62cdb,_0x2e9cf9)=>{const _0x73e767=_0x2e9cf9[_0x401f('0xc8')][_0x401f('0xfc')](_0xb62cdb['markerName']);if(_0x73e767)for(const _0x5d0f89 of _0x73e767)(_0x5d0f89[_0x401f('0xb8')](_0x401f('0x77'))||_0x5d0f89[_0x401f('0xb8')](_0x401f('0x116')))&&(_0x2e9cf9[_0x401f('0xc8')]['unbindElementFromMarkerName'](_0x5d0f89,_0xb62cdb[_0x401f('0x6a')]),_0x2e9cf9['writer'][_0x401f('0xf9')](_0x5d0f89));},{'priority':_0x401f('0x42')}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0x34'),(_0x2712f0,_0x42af78,_0x1b678f)=>{const _0x4c56ef=_0x42af78[_0x401f('0x6a')]['split'](':')[0x1],_0x4f3c40=this[_0x401f('0x57')](_0x4c56ef);if(!_0x4f3c40)return null;const _0x5ec920='add'==_0x4f3c40[_0x401f('0x35')]?_0x401f('0x64'):_0x401f('0x28');if(_0x1b678f[_0x401f('0x99')][_0x401f('0x23')](_0x42af78[_0x401f('0x25')],_0x2712f0[_0x401f('0xaf')]))for(const _0x3af900 of _0x42af78['markerRange']['getItems']()){if(!_0x3af900['is'](_0x401f('0xf1'),'softBreak'))continue;const _0x103e95=_0x1b678f[_0x401f('0x11')][_0x401f('0x97')]('span',{'class':_0x401f('0xb0')+_0x5ec920}),_0x29c6c6=_0x1b678f['mapper'][_0x401f('0xee')](this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x10a')](_0x3af900));_0x4f3c40[_0x401f('0x81')][_0x401f('0x115')]&&_0x1b678f[_0x401f('0x11')][_0x401f('0x10d')]('ck-suggestion-marker-'+_0x5ec920+'-new',_0x103e95),this['activeChange']==_0x4f3c40&&_0x1b678f[_0x401f('0x11')]['addClass'](_0x401f('0x8a'),_0x103e95),_0x1b678f[_0x401f('0x11')][_0x401f('0x8f')](_0x29c6c6,_0x103e95),_0x1b678f['mapper'][_0x401f('0x106')](_0x103e95,_0x42af78[_0x401f('0x6a')]);}},{'priority':_0x401f('0x42')}),this[_0x401f('0x52')][_0x401f('0x40')]['document']['on']('change',()=>{this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')]['change'](_0x2e5be2=>{for(const _0x19dfdf of this[_0x401f('0x52')]['model'][_0x401f('0x111')][_0x401f('0x4b')]()){const _0xfe83c8=this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0x111')]['getRoot'](_0x19dfdf),_0x5ac629=this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0x111')]['getRoot'](_0x19dfdf);if(_0x5ac629){const _0x2c7ce5=_0xfe83c8[_0x401f('0x78')]('revisionHistoryAttachChange');if(_0x2e5be2['removeAttribute'](_0x401f('0x9d'),_0x5ac629),_0x2e5be2[_0x401f('0x55')](_0x401f('0xdd'),_0x5ac629),_0x2e5be2[_0x401f('0x55')]('ck-revision-history-root-remove',_0x5ac629),_0x2e5be2[_0x401f('0x55')](_0x401f('0x3a'),_0x5ac629),_0x2c7ce5){const _0x9f055b=this[_0x401f('0x57')](_0x2c7ce5);if(!_0x9f055b)return null;_0x2e5be2[_0x401f('0x94')]('data-change-id',_0x2c7ce5,_0x5ac629),_0x2e5be2[_0x401f('0x10d')]('ck-revision-history-root-'+_0x9f055b[_0x401f('0x35')],_0x5ac629),this['activeChange']==_0x9f055b&&_0x2e5be2['addClass'](_0x401f('0x3a'),_0x5ac629);}}}});}),this[_0x401f('0x52')]['conversion']['for'](_0x401f('0xad'))[_0x401f('0xb7')]({'view':'comment','model':_0x272c54=>_0x401f('0x100')+_0x272c54,'converterPriority':_0x401f('0xa5')}),this[_0x401f('0x52')][_0x401f('0xe5')][_0x401f('0x50')]('upcast')[_0x401f('0xb7')]({'view':_0x401f('0xf6'),'model':_0x23db11=>_0x401f('0x1f')+_0x23db11,'converterPriority':'highest'}),this['editor'][_0x401f('0xe5')][_0x401f('0x50')]('dataDowncast')[_0x401f('0xc7')]({'model':_0x401f('0x11c'),'view':_0x4daa8=>({'name':_0x401f('0x8')+_0x4daa8,'group':_0x401f('0x11c')}),'converterPriority':_0x401f('0xa5')}),this[_0x401f('0x52')]['conversion']['for'](_0x401f('0x73'))[_0x401f('0x1c')]({'model':'revision-suggestion','view':_0x485267=>{const _0x19a7cb=_0x485267[_0x401f('0x6a')]['split'](':')[0x1];return _0x401f('0x13')!=_0x19a7cb&&_0x401f('0x3f')!=_0x19a7cb?null:{'classes':[_0x401f('0x4c'),'ck-suggestion-preview-marker-'+_0x19a7cb]};}}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0x5'),et(this[_0x401f('0x52')],_0x401f('0x28')),{'priority':_0x401f('0x42')}),this['editor'][_0x401f('0xc9')][_0x401f('0x31')]['on'](_0x401f('0xeb'),et(this['editor'],'split'),{'priority':_0x401f('0x42')}),this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x31')]['on']('removeMarker:revision-suggestion',(_0x2b8737,_0x31daa4,_0x4ca2d8)=>{const _0xdcad59=_0x4ca2d8['mapper'][_0x401f('0xfc')](_0x31daa4['markerName']);if(_0xdcad59)for(const _0x13c382 of _0xdcad59)_0x13c382['is'](_0x401f('0x53'))&&(_0x4ca2d8[_0x401f('0xc8')][_0x401f('0x22')](_0x13c382,_0x31daa4['markerName']),_0x4ca2d8[_0x401f('0x11')][_0x401f('0xf9')](_0x13c382));},{'priority':'high'});}[_0x401f('0x57')](_0x3ab4d5){return this[_0x401f('0xe1')][_0x401f('0xb3')](_0x3ab4d5);}[_0x401f('0xef')](_0x512166){return this[_0x401f('0x5d')]&&this['_changeView']['destroy'](),this[_0x401f('0x5d')]=new _0x315e58(this[_0x401f('0x52')]['locale'],_0x512166),this[_0x401f('0x5d')];}[_0x401f('0x5e')](){this[_0x401f('0x52')][_0x401f('0x40')]['document']['selection'][_0x401f('0x69')]('revision'),this['on']('change:activeView',(_0x34f9fd,_0x43dee1,_0x16ca85,_0x49ef3d)=>{_0x49ef3d&&this['_balloon'][_0x401f('0xf9')](_0x49ef3d),_0x16ca85&&(this[_0x401f('0xa0')][_0x401f('0xbf')]({'view':_0x16ca85,'stackId':_0x401f('0xcd'),'position':{'target':()=>{const _0x519e47=this['editor'][_0x401f('0xc9')],_0x38cb97=this[_0x401f('0x57')](_0x16ca85[_0x401f('0xf4')]);let _0x39b903;if(_0x38cb97['data'][_0x401f('0x7e')]){const _0x30e0d0=_0x519e47[_0x401f('0x93')]['getDomRoot'](_0x38cb97[_0x401f('0xd8')]);_0x39b903=Array[_0x401f('0xd')](_0x30e0d0[_0x401f('0x41')]());}else{const _0x3b435e=this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0xed')][_0x401f('0xb3')](_0x401f('0xcc')+_0x16ca85[_0x401f('0xf4')]);_0x39b903=Array[_0x401f('0xd')](_0x519e47[_0x401f('0xc8')][_0x401f('0xfc')](_0x3b435e[_0x401f('0xaf')]))[_0x401f('0x33')](_0x49a5ee=>_0x519e47[_0x401f('0x93')][_0x401f('0x10')][_0x401f('0x2c')](_0x49a5ee))[_0x401f('0x33')](_0x18d2ec=>Array[_0x401f('0xd')](_0x18d2ec['getClientRects']()))[_0x401f('0xe4')]();}if(!this[_0x401f('0x4')])return _0x39b903[0x0];return _0x39b903[_0x401f('0x4f')](_0x4348d0=>_0x4348d0[_0x401f('0x105')]-0x3<=this[_0x401f('0x4')]['y']&&_0x4348d0[_0x401f('0x10c')]+0x3>=this[_0x401f('0x4')]['y']&&_0x4348d0[_0x401f('0xf')]-0x3<=this[_0x401f('0x4')]['x']&&_0x4348d0[_0x401f('0xb9')]+0x3>=this[_0x401f('0x4')]['x'])||_0x39b903[0x0];}}}),this[_0x401f('0xa0')]['showStack'](_0x401f('0xcd')));}),this['on'](_0x401f('0x82'),(_0x20f641,_0x5caa20,_0x14d248,_0x231463)=>{this[_0x401f('0xdb')]=_0x14d248?this['_getViewForChange'](_0x14d248):null,this[_0x401f('0x52')]['model'][_0x401f('0xe2')](()=>{const _0x2892d7=this['editor'][_0x401f('0xc9')];_0x231463&&(_0x231463[_0x401f('0x81')][_0x401f('0x7e')]?_0x2892d7['view'][_0x401f('0xe2')](_0x3b1a86=>{_0x3b1a86['removeClass'](_0x401f('0x3a'),_0x2892d7[_0x401f('0x93')][_0x401f('0x111')][_0x401f('0x63')](_0x231463[_0x401f('0xd8')]));}):_0x2892d7['reconvertMarker'](_0x401f('0xcc')+_0x231463['id'])),_0x14d248&&(_0x14d248[_0x401f('0x81')]['isOnRoot']?_0x2892d7[_0x401f('0x93')][_0x401f('0xe2')](_0x1afced=>{_0x1afced['addClass'](_0x401f('0x3a'),_0x2892d7[_0x401f('0x93')]['document']['getRoot'](_0x14d248['rootName']));}):_0x2892d7[_0x401f('0xb4')](_0x401f('0xcc')+_0x14d248['id']));});}),this['listenTo'](this[_0x401f('0x52')][_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0x111')],_0x401f('0x3c'),(_0x507c91,_0x29b8e8)=>{if(this[_0x401f('0x9b')])return;const _0x20ead2=this[_0x401f('0xde')](_0x29b8e8['target']),_0xb930fa=this[_0x401f('0xe1')][_0x401f('0xb3')](_0x20ead2);_0xb930fa?(this[_0x401f('0x4')]={'x':_0x29b8e8[_0x401f('0xcb')]['x'],'y':_0x29b8e8[_0x401f('0xcb')]['y']},this['activeView']=this[_0x401f('0xef')](_0xb930fa)):(this[_0x401f('0x4')]=null,this[_0x401f('0xdb')]=null);}),this['listenTo'](this['editor'][_0x401f('0xc9')][_0x401f('0x93')]['document'],_0x401f('0x95'),(_0x5f3314,_0x3e0f30)=>{const _0x2c4553=this[_0x401f('0xde')](_0x3e0f30['target']),_0x4c5f83=this['_changeIdToChange'][_0x401f('0xb3')](_0x2c4553);_0x4c5f83?(this[_0x401f('0x4')]={'x':_0x3e0f30[_0x401f('0xcb')]['x'],'y':_0x3e0f30[_0x401f('0xcb')]['y']},_0x4c5f83===this['activeChange']?this[_0x401f('0xa0')][_0x401f('0xa9')]():this[_0x401f('0x9b')]=_0x4c5f83):(this[_0x401f('0x4')]=null,this[_0x401f('0x9b')]=null);});}['_findChangeIdFromDomTarget'](_0x3939cd){do{const _0x1e41bb=_0x3939cd[_0x401f('0x78')]('data-change-id');if(_0x1e41bb)return _0x1e41bb;_0x3939cd=_0x3939cd[_0x401f('0x58')];}while(_0x3939cd);return null;}[_0x401f('0x48')](){this[_0x401f('0x52')][_0x401f('0x40')][_0x401f('0xe2')](_0x17e4d7=>{for(const _0x281939 of this['editor'][_0x401f('0x40')][_0x401f('0xed')])_0x17e4d7[_0x401f('0xa1')](_0x281939);});}}function et(_0x3738a4,_0x543792){return(_0x5efafe,_0x55df51,_0x5476b7)=>{if(!_0x5476b7['consumable'][_0x401f('0x23')](_0x55df51[_0x401f('0x25')],_0x5efafe[_0x401f('0xaf')]))return;const _0x1c0cc9=_0x55df51[_0x401f('0x25')]['getWalker'](),_0x36f410=_0x55df51[_0x401f('0x25')][_0x401f('0x101')],_0x200e91=_0x3738a4[_0x401f('0x40')][_0x401f('0x11e')];let _0x166390=null,_0x3ae569=null,_0x47c5fb=!0x1,_0x12bf8f=!0x1;for(const _0x3a4fa5 of _0x1c0cc9){const _0x523514=_0x3a4fa5[_0x401f('0x85')];_0x47c5fb=_0x47c5fb||_0x200e91[_0x401f('0xb1')](_0x523514);const _0x28c7f6=_0x5476b7['mapper'][_0x401f('0x103')](_0x523514);if(_0x28c7f6&&_0x28c7f6[_0x401f('0x119')](_0x401f('0x98')))return;_0x401f('0x17')==_0x3a4fa5['type']&&(_0x200e91['isBlock'](_0x523514)&&!_0x200e91[_0x401f('0x6d')](_0x523514)&&(_0x523514[_0x401f('0x26')]||_0x36f410['isAtEnd']?_0x166390&&_0x166390[_0x401f('0x58')]==_0x523514||(_0x166390=_0x523514,_0x1a8576(_0x3a4fa5[_0x401f('0x12')]),_0x12bf8f=!0x0):_0x3ae569=_0x3ae569||_0x3a4fa5[_0x401f('0x12')]));}function _0x1a8576(_0x263c20){const _0x2ff18f=_0x5476b7[_0x401f('0xc8')][_0x401f('0xee')](_0x263c20),_0x5c0f6d=_0x5476b7[_0x401f('0x11')][_0x401f('0x97')](_0x401f('0x104'),{'class':_0x401f('0x2e')+_0x543792});_0x5476b7[_0x401f('0x11')][_0x401f('0x8f')](_0x2ff18f,_0x5c0f6d),_0x5476b7[_0x401f('0xc8')][_0x401f('0x106')](_0x5c0f6d,_0x55df51['markerName']);}_0x47c5fb||_0x12bf8f||!_0x3ae569||_0x1a8576(_0x3ae569);};}export class RestoreRevisionCommand extends _0x4d8cb9{constructor(_0x5db051){super(_0x5db051);const _0x367d62=_0x5db051[_0x401f('0x7f')]['get'](d);this[_0x401f('0x68')]=!0x1,this['listenTo'](_0x367d62,_0x401f('0x107'),()=>this[_0x401f('0x6c')]()),this[_0x401f('0x27')](_0x367d62,_0x401f('0xae'),()=>this[_0x401f('0x6c')]());}['execute'](){const _0x2d3e8b=this[_0x401f('0x52')],_0x12e0df=_0x2d3e8b['plugins'][_0x401f('0xb3')](d),_0xc944f8=_0x12e0df[_0x401f('0x19')]?_0x12e0df['diff'][_0x401f('0x3d')]:null;_0x2d3e8b[_0x401f('0xe6')][_0x401f('0xb3')](_0x401f('0x16'))[_0x401f('0x67')](_0xc944f8);}[_0x401f('0x6c')](){const {isReady:_0x147790,isEnabled:_0x3df6df}=this[_0x401f('0x52')][_0x401f('0x7f')]['get'](d);this[_0x401f('0x56')]=_0x147790&&_0x3df6df;}}export class ShowChangeCommand extends _0x4d8cb9{constructor(_0x22fb26,{direction:_0x52a172}){super(_0x22fb26);const _0x21577b=_0x22fb26[_0x401f('0x7f')][_0x401f('0xb3')](d);this['affectsData']=!0x1,this[_0x401f('0xa3')]='forward'===_0x52a172?0x1:-0x1,this[_0x401f('0x27')](_0x21577b,'change:isReady',()=>this[_0x401f('0x6c')]()),this['listenTo'](_0x21577b,_0x401f('0xae'),()=>this['refresh']()),this[_0x401f('0x27')](_0x21577b,_0x401f('0x82'),()=>this[_0x401f('0x6c')]());}[_0x401f('0xc5')](){const _0x258ae4=this[_0x401f('0x52')],_0x15bdd2=_0x258ae4[_0x401f('0x7f')][_0x401f('0xb3')](d),{isNavigationMode:_0xd3b821,currentChangeNumber:_0x1346b2}=_0x15bdd2;let _0x57574b;if(_0x15bdd2[_0x401f('0x9b')]=_0xd3b821?_0x15bdd2[_0x401f('0x1b')]['changes']['get'](_0x1346b2+this[_0x401f('0xa3')]):_0x15bdd2[_0x401f('0x1b')][_0x401f('0xd5')]['first'],_0x15bdd2[_0x401f('0x9b')][_0x401f('0x81')][_0x401f('0x7e')])_0x57574b=_0x258ae4[_0x401f('0xc9')][_0x401f('0x93')][_0x401f('0xab')](_0x15bdd2['activeChange'][_0x401f('0xd8')]);else{const _0xfce9ac=_0x258ae4['model'][_0x401f('0xed')][_0x401f('0xb3')](_0x401f('0xcc')+_0x15bdd2[_0x401f('0x9b')]['id']);_0x57574b=_0x2b38af(_0x258ae4[_0x401f('0xc9')],_0xfce9ac);}_0x4c597a({'target':_0x57574b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x461fe6,currentChangeNumber:_0x2075c2,numberOfChanges:_0x3e4a05,isReady:_0x5e01bd,isEnabled:_0x1f8123}=this[_0x401f('0x52')]['plugins'][_0x401f('0xb3')](d);this[_0x401f('0x56')]=!!(_0x1f8123&&_0x5e01bd&&_0x3e4a05)&&(!_0x461fe6||(0x1===this[_0x401f('0xa3')]?_0x2075c2<_0x3e4a05-0x1:_0x2075c2>0x0));}}
|
|
23
|
+
const _0x6956=['affectsData','_markInsertions','createUIElement','vid_end','isAtStart','schema','_makeModelFromViewString','getDomRoot','_getViewForChange','ck-editor__editable__overlay','high','wrap','maxOffset','getItems','bottom','markerName','elementEnd','previousPosition','span','_initInteractions','revision','comment','_joinTapes','change:activeView','changeId','uiElement','startsWith','editor','code','_getChangeFromId','parse','get','document','remove','diff','addMarker:revision','pop','changes','_removeUnsupportedChanges','children','revision-start','concat','addRevision','endIndex','addMarker:revision-suggestion:insertion','_setDistance','view','change:isEnabled','_activeViewTarget','dataToMarker','hasClass','ck-suggestion-marker-merge','has','removeClass','processor','object','isContent','enableReadOnlyMode','markersEnd','getCustomProperty','hasAttribute','deletion','flat','newRevisionId','removeAttribute','end','add','unshift','attributes','enqueueChange','_revisions','_findChangeIdFromDomTarget','attributesAfter','revisionHistoryAttachChange','insertion','distance','viewItem','stop','pairId','includes','vid_start','level','selection','string','_removeMissingPairs','ck-revision-history-root--active','checkAttribute','requires','toData','left','isObject','change:activeChange','backward','find','destroy','diffData','shift','_getDiff','activeView','merge','ck-suggestion-marker--active','_getRevisionsRange','push','mapper','authors','isSuggestion','_appendChild','getChild','isAttached','model','markerNameToElements','suggestion:','createPositionBefore','detachRoot','side','POSITIVE_INFINITY','_cleanMarkers','isRemoveSuggestion','observeMarkers','upcast','addClass','conversion','editing','insert','addHighlight','compare','bindElementToMarker','getAttributes','ck-suggestion-marker-','deletions','_markMarkers','insertions','consume','ck-suggestion-marker-split','done','_processTape','element','target','_fixObsoleteTags','mouseover','createRangeIn','set','nextPosition','element:pre','_changeIdToChange','execute','getIndex','then','refresh','plugins','resolve','isEnabled','unbindElementFromMarkerName','_step','isLimit','removeMarker','_changeView','addRoot','keys','ck-revision-history-root-add','consumable','createRange','vid','reconvertMarker','sort','map','attachChange','change:numberOfChanges','_markSuggestions','_data','getRootNames','_markMismatchedRemovedTags','_refreshStartEndIndex','revision-viewer','test','revision-suggestion:','collaboration.channelId','isRemoved','data','_sortAndFilterDiffChanges','findIndex','range','forward','dataDowncast','getRoot','useFillerType','abs','filter','_makeModelFromTape','isReady','ck-suggestion-preview-marker-','nodeAfter','pluginName','isEqual','index','revisionHistoryLabel','isAdded','activeChange','addRevisionData','markersStart','revision-suggestion','for','restoreRevisionCallback','ck-suggestion-preview-marker','getRevisionData','revision:','revision-end','getAttribute','oldRevisionId','nextSibling','rootName','editingDowncast','toViewElement','markers','splice','isAfter','change:isReady','next','item','RevisionsRepository','userId','loadRevisionData','change','forEach','isNavigationMode','getClientRects','values','highest','length','isAtEnd','createPositionFromPath','getWalker','writer','removeMarker:revision','config','locale','addMarker:revision-suggestion:deletion','modelRange','RevisionViewer','data-change-id','toViewPosition','_removeRevisionMarkers','isOnRoot','getRevision','repository','createRevision','_update','init','toModel','isBlock','type','_balloon','restoreRevision','removeMarker:revision-suggestion','return','domEvent','showPreviousChange','downcastDispatcher','elementStart','isIncorrect','delete','parent','isAddSuggestion','adapter','mousedown','bind','name','indexOf','split','from','listenTo','_makeTape','isBefore','commands','_threeWayMerge','_cleanUp','markerToHighlight','_getViewObj','setAttribute','markerRange','top','first','text','start','startIndex','low','-new'];(function(_0x4d09a3,_0x69563c){const _0x267beb=function(_0x45d053){while(--_0x45d053){_0x4d09a3['push'](_0x4d09a3['shift']());}};_0x267beb(++_0x69563c);}(_0x6956,0x1a7));const _0x267b=function(_0x4d09a3,_0x69563c){_0x4d09a3=_0x4d09a3-0x0;let _0x267beb=_0x6956[_0x4d09a3];return _0x267beb;};import{Plugin as _0xa80a6b,Command as _0x5a80bc}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1652f7}from'ckeditor5/src/utils';import{ContextualBalloon as _0x4a6b9e}from'ckeditor5/src/ui';import{DocumentFragment as _0x1c11b1,Element as _0xed8376,Text as _0x3ac18b,ViewDocumentFragment as _0x117499,ViewText as _0x2aa88c,ViewElement as _0x20aae1,ViewContainerElement as _0x357f66,ViewAttributeElement as _0x5226dc,ViewEmptyElement as _0x3a1424,ViewRawElement as _0x4ff4e5,ViewUIElement as _0x5473a4}from'ckeditor5/src/engine';import{Users as _0xd46ddf,getMarkerDomElement as _0x2a84bb}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ad18f from'./ui/revisionviewer/changedetailsview';import _0x492079 from'./revisionsrepository';import _0x49afc5 from'./changeitem';import{default as _0x2b52d7}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x110515}from'lodash-es';const tt={'c':_0x357f66,'a':_0x5226dc,'e':_0x3a1424,'r':_0x4ff4e5,'u':_0x5473a4};export default class d extends _0xa80a6b{static get[_0x267b('0x38')](){return _0x267b('0x66');}static get[_0x267b('0xee')](){return[_0xd46ddf,_0x4a6b9e,_0x492079];}constructor(_0xc3aa5f){super(_0xc3aa5f),this[_0x267b('0x6c')]=this[_0x267b('0xb2')][_0x267b('0xd')][_0x267b('0xb6')](_0x267b('0x53')),this[_0x267b('0x5')](_0x267b('0x3d'),null),this['set'](_0x267b('0xf9'),null),this['_activeViewTarget']=null,this[_0x267b('0x5')]('diff',null),this['set']('isReady',!0x1),this[_0x267b('0x5')](_0x267b('0xf'),!0x0),this['on'](_0x267b('0xc6'),(_0x2fde82,_0x57968b,_0x315cb0)=>{this[_0x267b('0x3d')]=null,this[_0x267b('0xf9')]=null,this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')]['change'](_0x2de9fb=>{for(const _0x295686 of this['editor'][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0xb7')]['roots'])_0x315cb0?_0x2de9fb['removeClass'](_0x267b('0xa0'),_0x295686):_0x2de9fb[_0x267b('0x10f')](_0x267b('0xa0'),_0x295686);});}),this[_0x267b('0x81')](_0x267b('0x58'))['to'](this,_0x267b('0x3d'),_0xbb8e77=>null!==_0xbb8e77),this[_0x267b('0x81')]('currentChangeNumber')['to'](this,_0x267b('0x35'),this,_0x267b('0xb9'),this,'activeChange',(_0x4813b6,_0x5ad9b0,_0x1d8352)=>_0x4813b6&&_0x1d8352?_0x5ad9b0[_0x267b('0xbc')][_0x267b('0xa')](_0x1d8352):0x0),this['bind']('numberOfChanges')['to'](this,_0x267b('0x35'),this,'diff',(_0x49aec2,_0x5d1880)=>_0x49aec2?_0x5d1880[_0x267b('0xbc')][_0x267b('0x5c')]:0x0),this[_0x267b('0x14')]=null,this[_0x267b('0x8')]=new Map(),this['adapter']=null,this[_0x267b('0x73')]=this[_0x267b('0xb2')][_0x267b('0xd')][_0x267b('0xb6')](_0x4a6b9e);}[_0x267b('0x6f')](){const _0x176b86=this['editor'],_0x4c1b4d=new ShowChangeCommand(_0x176b86,{'direction':_0x267b('0xf3')}),_0x33e6df=new ShowChangeCommand(_0x176b86,{'direction':'forward'});(_0x176b86[_0x267b('0x89')][_0x267b('0xd9')](_0x267b('0x78'),_0x4c1b4d),_0x176b86['commands'][_0x267b('0xd9')]('showNextChange',_0x33e6df),_0x176b86['commands']['add'](_0x267b('0x74'),new RestoreRevisionCommand(_0x176b86)),this['on'](_0x267b('0x1f'),()=>{_0x4c1b4d[_0x267b('0xc')](),_0x33e6df['refresh']();}),this['_setConversion'](),this[_0x267b('0xaa')](),_0x176b86[_0x267b('0xd0')](_0x267b('0x25')),_0x176b86[_0x267b('0xd')][_0x267b('0xcb')]('WidgetToolbarRepository'))&&_0x176b86[_0x267b('0xd')]['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async[_0x267b('0x44')](_0x448dc5){await this[_0x267b('0x55')](_0x448dc5);const _0x724b34={};for(const _0x580998 in _0x448dc5['diffData']){if(_0x448dc5[_0x267b('0xf6')][_0x580998][_0x267b('0x1e')]&&!_0x448dc5[_0x267b('0xf6')][_0x580998]['attachChange']['isAttached'])continue;const _0x207f76=this[_0x267b('0x69')](JSON['parse'](_0x448dc5[_0x267b('0xf6')][_0x580998][_0x267b('0x11a')])),_0x159fb2=this[_0x267b('0xb2')]['editing'][_0x267b('0xc5')]['document'],_0x3b800e=new _0x117499(_0x159fb2,_0x207f76[_0x267b('0x1d')](_0x3a9b10=>this[_0x267b('0x8d')](_0x3a9b10)));this[_0x267b('0xb2')][_0x267b('0x2a')][_0x267b('0xcd')][_0x267b('0x31')]('marked'),_0x724b34[_0x580998]=this[_0x267b('0xb2')][_0x267b('0x2a')]['processor'][_0x267b('0xef')](_0x3b800e),this[_0x267b('0xb2')][_0x267b('0x2a')][_0x267b('0xcd')][_0x267b('0x31')]('default');}return _0x724b34;}async['getRevisionRootsAttributes'](_0x14df77){await this[_0x267b('0x55')](_0x14df77);const _0x318019={};for(const _0x53e52c in _0x14df77[_0x267b('0xf6')])_0x14df77[_0x267b('0xf6')][_0x53e52c][_0x267b('0x1e')]&&!_0x14df77[_0x267b('0xf6')][_0x53e52c][_0x267b('0x1e')][_0x267b('0x103')]||(_0x318019[_0x53e52c]=_0x14df77[_0x267b('0xf6')][_0x53e52c][_0x267b('0xdf')]||{});return _0x318019;}[_0x267b('0x69')](_0xaa524){return(_0xaa524=_0xaa524[_0x267b('0x33')](_0x5aadc5=>!_0x5aadc5['name']||_0x267b('0xbf')!==_0x5aadc5['name']&&_0x267b('0x46')!==_0x5aadc5[_0x267b('0x82')]))[_0x267b('0x57')](_0x41289b=>{_0x267b('0xea')!=typeof _0x41289b&&(_0x41289b[_0x267b('0xbe')]=this[_0x267b('0x69')](_0x41289b[_0x267b('0xbe')]),_0x41289b[_0x267b('0xdb')]=_0x41289b[_0x267b('0xdb')]['filter'](_0x4f2556=>!_0x4f2556[0x0][_0x267b('0xb1')]('data-revision-')));}),_0xaa524;}async[_0x267b('0x114')](_0x3a45d5,_0x4482de,_0x29d1e8=!0x1){if(!this[_0x267b('0xf')])return;const _0x1a067f=this[_0x267b('0xb9')],_0x52b911=this[_0x267b('0x6c')],_0x140f90=_0x267b('0xea')==typeof _0x3a45d5?_0x52b911[_0x267b('0x6b')](_0x3a45d5):_0x3a45d5,_0x142edd='string'==typeof _0x4482de?_0x52b911[_0x267b('0x6b')](_0x4482de):_0x4482de,_0x225720=_0x140f90['id'],_0x4c75aa=_0x142edd?_0x142edd['id']:null;if(!_0x29d1e8&&this[_0x267b('0xb9')]&&this[_0x267b('0xb9')][_0x267b('0xd6')]===_0x225720&&this[_0x267b('0xb9')][_0x267b('0x48')]===_0x4c75aa)return Promise['resolve']();this[_0x267b('0x35')]=!0x1,this[_0x267b('0xf9')]=null,this['activeChange']=null,this[_0x267b('0xb9')]=new _0x2b52d7(_0x225720,_0x4c75aa);const _0x32d2c4=this[_0x267b('0xfc')](_0x140f90,_0x142edd,!0x0)[_0x267b('0x1d')](_0x21f80e=>this[_0x267b('0x55')](_0x21f80e));return _0x32d2c4[_0x267b('0xfd')](new Promise(_0x187b0a=>{setTimeout(_0x187b0a,0x14);})),Promise['all'](_0x32d2c4)['then'](()=>{if(!this[_0x267b('0xf')])return;this['_cleanUp']();const _0x2bf6a2=this[_0x267b('0xf8')](_0x225720,_0x4c75aa);for(const _0x37a401 of _0x2bf6a2[_0x267b('0xbc')])this[_0x267b('0x8')][_0x267b('0x5')](_0x37a401['id'],_0x37a401);this[_0x267b('0xb2')][_0x267b('0x104')]['enqueueChange']({'isUndoable':!0x1},_0x2808c3=>{for(const _0x3c1f3b of this[_0x267b('0xb2')]['model'][_0x267b('0xb7')][_0x267b('0x22')]())_0x2808c3[_0x267b('0x108')](_0x3c1f3b);for(const _0x18de9c of Object['keys'](_0x2bf6a2[_0x267b('0x104')])){const _0x4fedd4=_0x2808c3[_0x267b('0x15')](_0x18de9c);for(const _0x278608 of Object[_0x267b('0x16')](_0x2bf6a2[_0x267b('0xdb')][_0x18de9c]))_0x2808c3[_0x267b('0x8e')](_0x278608,_0x2bf6a2[_0x267b('0xdb')][_0x18de9c][_0x278608],_0x4fedd4);_0x2808c3[_0x267b('0x112')](_0x2bf6a2[_0x267b('0x104')][_0x18de9c],_0x4fedd4,0x0);}}),this['diff']['_setChanges'](this[_0x267b('0x2b')](_0x2bf6a2['changes'])),this['isReady']=!0x0;})['catch'](_0x183a9b=>{console['error'](_0x183a9b),this[_0x267b('0x8b')](),_0x1a067f&&(this[_0x267b('0xb9')]=_0x1a067f),this[_0x267b('0x35')]=!0x0;});}[_0x267b('0x3e')](_0x4ca470,_0x47908c){const _0x5c8112=this[_0x267b('0x6c')][_0x267b('0x6d')](_0x4ca470);return _0x5c8112['on'](_0x267b('0x6e'),(_0xa18127,_0x4f3148,_0x2fd244)=>_0x47908c(_0x4f3148,_0x2fd244,_0x5c8112)),this[_0x267b('0x6c')][_0x267b('0xc1')](_0x5c8112),_0x5c8112;}[_0x267b('0x55')](_0x9a9aef){if(!_0x9a9aef||_0x9a9aef[_0x267b('0xf6')])return Promise[_0x267b('0xe')]();{const _0x2ef9a7=this['editor'][_0x267b('0x62')][_0x267b('0xb6')](_0x267b('0x28'));return this[_0x267b('0x7f')]['getRevision']({'channelId':_0x2ef9a7,'revisionId':_0x9a9aef['id']})[_0x267b('0xb')](_0x3af723=>{_0x9a9aef['_update']({'diffData':_0x3af723[_0x267b('0xf6')]},!0x0);});}}[_0x267b('0x8b')](){this[_0x267b('0x3d')]=null,this[_0x267b('0x10b')](),this['_changeView']&&this[_0x267b('0x14')]['destroy'](),this['_changeView']=null,this[_0x267b('0x8')]['clear'](),this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0xdc')]({'isUndoable':!0x1},_0x46aa7d=>{for(const _0x1f5daf of this[_0x267b('0xb2')][_0x267b('0x104')]['document'][_0x267b('0x22')]())_0x46aa7d[_0x267b('0x108')](_0x1f5daf);});}[_0x267b('0x2b')](_0x10ac35){const _0x3172bb=[],_0x119fa4=new Map();for(const _0x1e10af of this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0xb7')][_0x267b('0x22')]()){const _0x273530=this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0x9e')](_0x1e10af);if(!_0x273530)continue;const _0x55f91a=_0x273530[_0x267b('0x59')]()[_0x267b('0x52')](0x0);_0x55f91a&&(_0x3172bb[_0x267b('0xfd')](_0x1e10af),_0x119fa4[_0x267b('0x5')](_0x1e10af,_0x55f91a));}return _0x3172bb['sort']((_0x2c65f4,_0x361731)=>{const _0x5bc8c4=_0x119fa4[_0x267b('0xb6')](_0x2c65f4),_0x106b93=_0x119fa4[_0x267b('0xb6')](_0x361731);return _0x5bc8c4['y']-_0x106b93['y']||_0x5bc8c4['x']-_0x106b93['x'];}),(_0x10ac35=_0x10ac35[_0x267b('0x33')](_0xf229c8=>_0x3172bb[_0x267b('0xe6')](_0xf229c8[_0x267b('0x4a')])))[_0x267b('0x1c')]((_0x5b53db,_0x396793)=>_0x3172bb['indexOf'](_0x5b53db['rootName'])-_0x3172bb[_0x267b('0x83')](_0x396793[_0x267b('0x4a')])),_0x10ac35;}[_0x267b('0x87')](_0x34aedd){const _0x2afb06=Array[_0x267b('0x85')](_0x34aedd[_0x267b('0x4d')])[_0x267b('0x33')](([_0x12b153,_0x181b17])=>_0x12b153[_0x267b('0xb1')](_0x267b('0x45'))&&!_0x181b17['isCollapsed']),_0x33d500=Array[_0x267b('0x85')](this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x4')](_0x34aedd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2afb06[_0x267b('0x5c')])for(const _0x54f05e of _0x33d500){const [_0x30ac34,_0x4df397]=_0x2afb06[0x0],[,_0x1c8169,_0x5ddbdb]=_0x30ac34[_0x267b('0x84')](':');if(_0x4df397[_0x267b('0xd8')][_0x267b('0x39')](_0x54f05e[_0x267b('0x6')])&&_0x2afb06[_0x267b('0xf7')](),(_0x54f05e[_0x267b('0xa8')][_0x267b('0x39')](_0x4df397['start'])||_0x54f05e[_0x267b('0xa8')][_0x267b('0x4f')](_0x4df397[_0x267b('0x93')]))&&(_0x267b('0xe1')==_0x1c8169?_0x54f05e['isAdded']={'userId':_0x5ddbdb}:'deletion'==_0x1c8169&&(_0x54f05e[_0x267b('0x29')]={'userId':_0x5ddbdb})),0x0==_0x2afb06[_0x267b('0x5c')])break;}return _0x33d500;}[_0x267b('0x24')](_0x39b20c){const _0x1c281e=new Map();for(let _0x38a0ba=0x0;_0x38a0ba<_0x39b20c[_0x267b('0x5c')];_0x38a0ba++)_0x267b('0x92')===_0x39b20c[_0x38a0ba][_0x267b('0x72')]?(_0x39b20c[_0x38a0ba][_0x267b('0x52')][_0x267b('0x94')]=_0x38a0ba,_0x39b20c[_0x38a0ba][_0x267b('0x52')]['endIndex']=_0x38a0ba):(_0x267b('0x7a')===_0x39b20c[_0x38a0ba][_0x267b('0x72')]?_0x39b20c[_0x38a0ba][_0x267b('0x52')][_0x267b('0x94')]=_0x38a0ba:'elementEnd'===_0x39b20c[_0x38a0ba][_0x267b('0x72')]&&(_0x39b20c[_0x38a0ba][_0x267b('0x52')][_0x267b('0xc2')]=_0x38a0ba),_0x1c281e[_0x267b('0x5')](_0x39b20c[_0x38a0ba]['id'],_0x38a0ba));for(const _0x227742 of _0x1c281e[_0x267b('0x5a')]())_0x267b('0x7a')===_0x39b20c[_0x227742]['type']?_0x39b20c[_0x227742][_0x267b('0x52')][_0x267b('0xc2')]=_0x1c281e[_0x267b('0xb6')](_0x39b20c[_0x227742][_0x267b('0xe5')]):_0x267b('0xa7')===_0x39b20c[_0x227742][_0x267b('0x72')]&&(_0x39b20c[_0x227742][_0x267b('0x52')][_0x267b('0x94')]=_0x1c281e['get'](_0x39b20c[_0x227742][_0x267b('0xe5')]));}[_0x267b('0x11e')](_0x1ef287){for(let _0x5c8105=0x0;_0x5c8105<_0x1ef287[_0x267b('0x5c')];_0x5c8105++){if(_0x267b('0x7a')===_0x1ef287[_0x5c8105][_0x267b('0x72')])_0x1ef287[_0x5c8105]['item'][_0x267b('0x94')]=_0x5c8105;else{if(_0x267b('0xa7')===_0x1ef287[_0x5c8105][_0x267b('0x72')]){_0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0xc2')]=_0x5c8105;const _0x152470=_0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0x94')];_0x1ef287[_0x152470][_0x267b('0xe5')]=_0x1ef287[_0x5c8105]['id'],_0x1ef287[_0x5c8105]['pairId']=_0x1ef287[_0x152470]['id'];}else _0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0x94')]=_0x5c8105,_0x1ef287[_0x5c8105][_0x267b('0x52')][_0x267b('0xc2')]=_0x5c8105,_0x1ef287[_0x5c8105][_0x267b('0xe5')]=null;}_0x1ef287[_0x5c8105][_0x267b('0x3f')]||(_0x1ef287[_0x5c8105][_0x267b('0x3f')]=[],_0x1ef287[_0x5c8105][_0x267b('0xd1')]=[]);}}[_0x267b('0x98')](_0x495011,_0x44e9dc){const _0x1b8b78=_0x495011[_0x267b('0x33')](_0x52d4c2=>!_0x52d4c2[_0x267b('0x3c')]);for(let _0x18d8a4=0x0;_0x18d8a4<_0x44e9dc[_0x267b('0x5c')];_0x18d8a4++)_0x44e9dc[_0x18d8a4][_0x267b('0x3c')]&&(_0x1b8b78[_0x18d8a4][_0x267b('0x3c')]=_0x44e9dc[_0x18d8a4][_0x267b('0x3c')]);}[_0x267b('0x9d')](_0x3b60cd){const _0x198a43=JSON[_0x267b('0xb5')](_0x3b60cd),_0x4f556b=this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0xb7')],_0x14819f=new _0x117499(_0x4f556b,_0x198a43[_0x267b('0x1d')](_0x42f01a=>this['_getViewObj'](_0x42f01a)));return this[_0x267b('0xb2')][_0x267b('0x2a')][_0x267b('0x70')](_0x14819f);}[_0x267b('0x8d')](_0x5c7ff5){const _0x4b56f4=this[_0x267b('0xb2')][_0x267b('0x111')]['view'][_0x267b('0xb7')];if(_0x267b('0xea')==typeof _0x5c7ff5)return new _0x2aa88c(_0x4b56f4,_0x5c7ff5);{const _0x1125fa=_0x5c7ff5[_0x267b('0xbe')][_0x267b('0x1d')](_0x1fb9d2=>this[_0x267b('0x8d')](_0x1fb9d2));return new(tt[_0x5c7ff5[(_0x267b('0x72'))]]||_0x20aae1)(_0x4b56f4,_0x5c7ff5['name'],_0x5c7ff5[_0x267b('0xdb')],_0x1125fa);}}['_getDiff'](_0x43b347,_0x318141=null){const _0x1bdb35=this[_0x267b('0x6c')][_0x267b('0x6b')](_0x43b347),_0x2be058=_0x318141?this[_0x267b('0x6c')][_0x267b('0x6b')](_0x318141):null,_0x464baf=this['_getRevisionsRange'](_0x1bdb35,_0x2be058),_0x2c58a6=_0x464baf[_0x464baf['length']-0x1],_0x5dad88=new Map(),_0x248536={'model':{},'attributes':{},'changes':[]},_0x5e99c7=new Set(),_0x37f150=new Map();for(let _0x2d51be=_0x464baf['length']-0x1;_0x2d51be>=0x0;_0x2d51be--){const _0x13a257=_0x464baf[_0x2d51be];for(const _0x1a3734 of Object['keys'](_0x13a257['diffData']))if(_0x13a257[_0x267b('0xf6')][_0x1a3734][_0x267b('0x1e')]){const _0x1fcff2=_0x13a257[_0x267b('0xf6')][_0x1a3734][_0x267b('0x1e')];_0x1fcff2[_0x267b('0x103')]?(_0x5e99c7[_0x267b('0xd9')](_0x1a3734),_0x37f150[_0x267b('0xcb')](_0x1a3734)&&_0x37f150[_0x267b('0xb6')](_0x1a3734)[_0x267b('0x54')]==_0x1fcff2['userId']?_0x37f150[_0x267b('0x7c')](_0x1a3734):_0x37f150[_0x267b('0x5')](_0x1a3734,_0x1fcff2)):_0x37f150[_0x267b('0xcb')](_0x1a3734)?(_0x5e99c7[_0x267b('0x7c')](_0x1a3734),_0x37f150[_0x267b('0x7c')](_0x1a3734)):(_0x5e99c7[_0x267b('0xd9')](_0x1a3734),_0x37f150[_0x267b('0x5')](_0x1a3734,_0x1fcff2));}else _0x5e99c7[_0x267b('0xd9')](_0x1a3734);}for(const _0x3905bc of _0x5e99c7){const _0x3992c3=_0x37f150[_0x267b('0xcb')](_0x3905bc)&&!_0x37f150[_0x267b('0xb6')](_0x3905bc)[_0x267b('0x103')];let _0x18bd69=_0x3992c3?_0x464baf[_0x267b('0x5c')]-0x1:0x0;const _0x213908=_0x3992c3?-0x1:0x1;for(;_0x464baf[_0x18bd69];){const _0x32c4dc=_0x464baf[_0x18bd69];if(_0x32c4dc[_0x267b('0xf6')][_0x3905bc]){const _0x2c1f8c=_0x3992c3?_0x32c4dc[_0x267b('0xf6')][_0x3905bc]['attributesBefore']:_0x32c4dc[_0x267b('0xf6')][_0x3905bc]['attributesAfter'];_0x248536[_0x267b('0xdb')][_0x3905bc]=_0x2c1f8c?_0x110515(_0x2c1f8c):{};break;}_0x18bd69+=_0x213908;}}for(const _0x5a26c7 of _0x464baf){_0x5a26c7[_0x267b('0x104')]={};for(const _0x3e6d18 of _0x5a26c7[_0x267b('0xff')])_0x5dad88['set'](_0x3e6d18['id'],_0x3e6d18);for(const _0x468792 of _0x5e99c7){const _0x4595d4=_0x5a26c7[_0x267b('0xf6')][_0x468792]?_0x5a26c7[_0x267b('0xf6')][_0x468792]['insertions']:'[]',_0x14906f=_0x5a26c7[_0x267b('0xf6')][_0x468792]?_0x5a26c7[_0x267b('0xf6')][_0x468792][_0x267b('0x118')]:'[]';_0x5a26c7[_0x267b('0x104')][_0x468792]={'insertions':this['_makeModelFromViewString'](_0x4595d4),'deletions':this['_makeModelFromViewString'](_0x14906f)};}}for(const _0x1ade2b of _0x5e99c7){let _0x428b2e=null,_0x4bf4e9=0x0;const _0x33f59f=new Map(Array[_0x267b('0x85')](_0x1bdb35[_0x267b('0x104')][_0x1ade2b][_0x267b('0x11a')]['markers'])['filter'](([_0x55b8d1])=>!_0x55b8d1[_0x267b('0xb1')]('revision:')));let _0x1ec373=0x0;for(const _0x11d3dc of _0x464baf){const _0xc17588=this[_0x267b('0x87')](_0x11d3dc[_0x267b('0x104')][_0x1ade2b][_0x267b('0x11a')]);_0x11d3dc==_0x1bdb35?(_0x428b2e=_0xc17588,_0x4bf4e9=_0x428b2e[_0x267b('0x5c')],_0x428b2e[_0x267b('0x57')](_0x504646=>{_0x504646['id']=_0x1ec373++;}),this['_processTape'](_0x428b2e)):this['_markInsertions'](_0x428b2e,_0xc17588);const _0x442db3=_0x428b2e[_0x267b('0x33')](_0x9bcbe4=>!_0x9bcbe4[_0x267b('0x3c')])[_0x267b('0x1d')](_0x593ed8=>_0x593ed8['id']);let _0x4d9eb4=0x0;const _0x37c8aa=this[_0x267b('0x87')](_0x11d3dc['model'][_0x1ade2b][_0x267b('0x118')]);_0x37c8aa[_0x267b('0x57')](_0x113d71=>{_0x113d71[_0x267b('0x29')]?_0x113d71['id']=_0x4bf4e9++:_0x113d71['id']=_0x442db3[_0x4d9eb4++];}),this['_processTape'](_0x37c8aa),this[_0x267b('0xc4')](_0x428b2e,'isAdded'),this[_0x267b('0xc4')](_0x37c8aa,'isRemoved'),_0x11d3dc==_0x1bdb35&&this[_0x267b('0x119')](_0x428b2e,_0x33f59f),_0x428b2e=this[_0x267b('0xad')](_0x428b2e,_0x37c8aa),this[_0x267b('0x24')](_0x428b2e),this['_setDistance'](_0x428b2e,_0x267b('0x29'));}_0x428b2e=_0x428b2e[_0x267b('0x33')](_0x5d69a7=>!(_0x5d69a7[_0x267b('0x3c')]&&_0x5d69a7[_0x267b('0x29')]));const _0x487cc2=new Map(_0x2c58a6[_0x267b('0x104')][_0x1ade2b][_0x267b('0x118')]['markers']),_0x3f4893=new Set(_0x33f59f['keys']());for(const _0x45d6c7 of _0x487cc2['keys']())_0x3f4893[_0x267b('0x7c')](_0x45d6c7);this[_0x267b('0x20')](_0x428b2e,_0x3f4893),this[_0x267b('0x2')](_0x428b2e),_0x428b2e=this[_0x267b('0xeb')](_0x428b2e),_0x428b2e=this[_0x267b('0x23')](_0x428b2e),_0x428b2e=this[_0x267b('0xbd')](_0x428b2e);const {root:_0x10f98a,changes:_0x2340ec}=this[_0x267b('0x34')](_0x428b2e,_0x5dad88,_0x1ade2b);_0x248536[_0x267b('0x104')][_0x1ade2b]=_0x10f98a;const _0x837dbd=_0x37f150[_0x267b('0xb6')](_0x1ade2b);if(_0x837dbd){const _0x51ada7=_0x5dad88[_0x267b('0xb6')](_0x837dbd[_0x267b('0x54')]),_0x17316e=new _0x49afc5({'author':_0x51ada7,'type':_0x837dbd['isAttached']?_0x267b('0xd9'):_0x267b('0xb8'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1ade2b});_0x2340ec['unshift'](_0x17316e),_0x248536[_0x267b('0xdb')][_0x1ade2b][_0x267b('0xe0')]=_0x17316e['id'];}_0x248536[_0x267b('0xbc')]=_0x248536['changes'][_0x267b('0xc0')](_0x2340ec);}return _0x248536;}[_0x267b('0x119')](_0x10a48d,_0x265dc2){for(let _0x9808f=0x0;_0x9808f<_0x10a48d[_0x267b('0x5c')];_0x9808f++)for(const [_0x42783c,_0x58f537]of _0x265dc2)_0x58f537[_0x267b('0x93')][_0x267b('0x39')](_0x10a48d[_0x9808f][_0x267b('0xa8')])&&_0x10a48d[_0x9808f][_0x267b('0x3f')][_0x267b('0xfd')](_0x42783c),_0x58f537[_0x267b('0xd8')][_0x267b('0x39')](_0x10a48d[_0x9808f][_0x267b('0x6')])&&_0x10a48d[_0x9808f]['markersEnd'][_0x267b('0xfd')](_0x42783c);}[_0x267b('0xad')](_0x148778,_0x135ff3){let _0xf03df7=[],_0x271130=0x0,_0x46feb5=0x0;for(;_0x271130<_0x148778['length']||_0x46feb5<_0x135ff3[_0x267b('0x5c')];){const _0x2efc35=_0x148778[_0x271130]||{},_0x116bbe=_0x135ff3[_0x46feb5]||{};if(_0x2efc35['id']==_0x116bbe['id'])_0x271130++,_0x46feb5++,_0xf03df7[_0x267b('0xfd')](_0x2efc35);else{if(_0x116bbe[_0x267b('0x29')]&&_0x2efc35['isAdded']){const {commonTape:_0x42ba52,iEnd:_0x30a623,jEnd:_0x18b1a5}=this['_threeWayMerge'](_0x148778,_0x271130,_0x135ff3,_0x46feb5);_0xf03df7=_0xf03df7['concat'](_0x42ba52),_0x271130=_0x30a623,_0x46feb5=_0x18b1a5;}else _0x116bbe['isRemoved']?(_0x46feb5++,_0xf03df7[_0x267b('0xfd')](_0x116bbe)):(_0x271130++,_0xf03df7[_0x267b('0xfd')](_0x2efc35));}}return _0xf03df7;}['_markSuggestions'](_0x846d4f,_0xbdd470){const _0x376932=[];for(let _0x30a611=0x0;_0x30a611<_0x846d4f[_0x267b('0x5c')];_0x30a611++){for(let _0x77b9d1=0x0;_0x77b9d1<_0x846d4f[_0x30a611][_0x267b('0x3f')][_0x267b('0x5c')];_0x77b9d1++){const _0x5e602d=_0x846d4f[_0x30a611][_0x267b('0x3f')][_0x77b9d1];if(!_0xbdd470[_0x267b('0xcb')](_0x5e602d))continue;const {group:_0x1ac207,type:_0x22b82e,authorId:_0x1ae529}=_0x4341d4(_0x5e602d);'revision-suggestion'!=_0x1ac207||_0x267b('0xe1')!=_0x22b82e&&_0x267b('0xd4')!=_0x22b82e||(_0x376932[_0x267b('0xda')]({'type':_0x22b82e,'name':_0x5e602d,'userId':_0x1ae529}),_0x846d4f[_0x30a611][_0x267b('0x3f')][_0x267b('0x4e')](_0x77b9d1,0x1),_0x77b9d1--);}_0x2d2840(_0x846d4f[_0x30a611]);for(let _0x1e4972=0x0;_0x1e4972<_0x846d4f[_0x30a611][_0x267b('0xd1')][_0x267b('0x5c')];_0x1e4972++){const _0x425c01=_0x846d4f[_0x30a611][_0x267b('0xd1')][_0x1e4972];if(!_0xbdd470[_0x267b('0xcb')](_0x425c01))continue;const {group:_0x210a48,type:_0x3c5eee}=_0x4341d4(_0x425c01);if(_0x267b('0x40')!=_0x210a48||'insertion'!=_0x3c5eee&&_0x267b('0xd4')!=_0x3c5eee)continue;_0x846d4f[_0x30a611]['markersEnd']['splice'](_0x1e4972,0x1),_0x1e4972--;const _0x22c5c9=_0x376932[_0x267b('0x2c')](_0x2aefe5=>_0x2aefe5[_0x267b('0x82')]==_0x425c01);_0x22c5c9>-0x1&&_0x376932[_0x267b('0x4e')](_0x22c5c9,0x1);}}function _0x4341d4(_0x3e5132){const _0x1ab7ff=_0x3e5132[_0x267b('0x84')](':');return{'group':_0x1ab7ff[0x0],'type':_0x1ab7ff[0x1],'subType':_0x1ab7ff[_0x267b('0x5c')]>=0x5?_0x1ab7ff[0x2]:null,'id':_0x1ab7ff['length']<0x5?_0x1ab7ff[0x2]:_0x1ab7ff[0x3],'authorId':_0x1ab7ff[_0x267b('0x5c')]<0x5?_0x1ab7ff[0x3]:_0x1ab7ff[0x4],'markerCount':0x6==_0x1ab7ff[_0x267b('0x5c')]?_0x1ab7ff[0x5]:null};}function _0x2d2840(_0x456537){for(let _0xd93781=0x0;_0xd93781<_0x376932[_0x267b('0x5c')];_0xd93781++){if(_0x456537[_0x267b('0x3c')]&&_0x267b('0xe1')==_0x376932[_0xd93781][_0x267b('0x72')])return _0x456537[_0x267b('0x7e')]=_0x376932[_0xd93781],void delete _0x456537[_0x267b('0x3c')];if(!_0x456537['isAdded']&&!_0x456537['isRemoved']&&'deletion'==_0x376932[_0xd93781][_0x267b('0x72')])return void(_0x456537[_0x267b('0x10c')]=_0x376932[_0xd93781]);}}}['_setDistance'](_0x25f694,_0x4159b3){let _0xf914d1=0x0,_0x1eb19a=!0x1;const _0x3c06c9=new Map();for(const _0x2a6353 of _0x25f694)_0x2a6353[_0x4159b3]?_0x1eb19a&&(_0xf914d1++,_0x1eb19a=!0x1):(_0xf914d1++,_0x1eb19a=!0x0),_0x3c06c9[_0x267b('0x5')](_0x2a6353['id'],_0xf914d1);for(let _0x261d42=0x0;_0x261d42<_0x25f694['length'];_0x261d42++){if(_0x267b('0x29')==_0x4159b3&&_0x25f694[_0x261d42][_0x267b('0x3c')]||_0x267b('0x3c')==_0x4159b3&&_0x25f694[_0x261d42][_0x267b('0x29')])continue;if('text'==_0x25f694[_0x261d42][_0x267b('0x72')]){_0x25f694[_0x261d42][_0x267b('0xe2')]=0x0;continue;}const _0x2ad405=_0x3c06c9[_0x267b('0xb6')](_0x25f694[_0x261d42]['pairId']),_0x165e03=_0x3c06c9[_0x267b('0xb6')](_0x25f694[_0x261d42]['id']);_0x25f694[_0x261d42]['distance']=_0x2ad405-_0x165e03;}}['_getRevisionsRange'](_0xc7c711,_0x3a8562,_0x2728d0=!0x1){const _0x3ce8b8=[];let _0x142b5f=this[_0x267b('0x6c')]['getIndex'](_0xc7c711),_0x2ec5f1=this[_0x267b('0x6c')][_0x267b('0xa')](_0x3a8562);for(-0x1==_0x2ec5f1&&(_0x2ec5f1=this[_0x267b('0x6c')][_0x267b('0xdd')][_0x267b('0x5c')],_0x2728d0=!0x1);_0x142b5f<_0x2ec5f1;)_0x3ce8b8[_0x267b('0xfd')](this['repository'][_0x267b('0x6b')](_0x142b5f)),_0x142b5f++;return _0x2728d0&&_0x3ce8b8[_0x267b('0xfd')](this['repository'][_0x267b('0x6b')](_0x142b5f)),_0x3ce8b8;}[_0x267b('0x8a')](_0x3e2caf,_0x1bbc1a,_0xf507c1,_0x193caa){const _0x5a0c47=this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x9c')];let _0x2821e6=_0x1bbc1a;for(;_0x3e2caf[_0x2821e6]&&_0x3e2caf[_0x2821e6][_0x267b('0x3c')];)_0x2821e6++;let _0x110690=_0x193caa;for(;_0xf507c1[_0x110690]&&_0xf507c1[_0x110690][_0x267b('0x29')];)_0x110690++;_0x399166(_0x3e2caf,_0x1bbc1a,_0x2821e6),_0x399166(_0xf507c1,_0x193caa,_0x110690);const _0x299003=_0xf507c1['slice'](_0x193caa,_0x110690)['concat'](_0x3e2caf['slice'](_0x1bbc1a,_0x2821e6));return _0x299003[_0x267b('0x1c')]((_0x293bd2,_0x128311)=>_0x293bd2['side']!=_0x128311[_0x267b('0x109')]?_0x293bd2[_0x267b('0x109')]-_0x128311['side']:_0x293bd2[_0x267b('0xe8')]!=_0x128311[_0x267b('0xe8')]?_0x293bd2[_0x267b('0xe8')]-_0x128311[_0x267b('0xe8')]:_0x293bd2[_0x267b('0xe2')]!=_0x128311['distance']?_0x128311['distance']-_0x293bd2[_0x267b('0xe2')]:!!_0x293bd2[_0x267b('0x3c')]!=!!_0x128311[_0x267b('0x3c')]?-0x1==_0x293bd2['side']||0x0==_0x293bd2['side']?_0x293bd2[_0x267b('0x3c')]?-0x1:0x1:_0x293bd2[_0x267b('0x3c')]?0x1:-0x1:_0x293bd2['index']-_0x128311[_0x267b('0x3a')]),{'commonTape':_0x299003,'iEnd':_0x2821e6,'jEnd':_0x110690};function _0x399166(_0x57bfdb,_0x53a38b,_0x4d66a8){let _0x4a1c67=-0x1,_0x2593fd=Number[_0x267b('0x10a')],_0x59d826=!0x0;for(let _0x36cb3d=_0x53a38b;_0x36cb3d<_0x4d66a8;_0x36cb3d++)if(_0x5a0c47['isInline'](_0x57bfdb[_0x36cb3d][_0x267b('0x52')])||(_0x59d826=!0x1),_0x57bfdb[_0x36cb3d]['item'][_0x267b('0x94')]<_0x53a38b&&(_0x4a1c67=_0x36cb3d),_0x57bfdb[_0x36cb3d][_0x267b('0x52')][_0x267b('0xc2')]>=_0x4d66a8){_0x2593fd=_0x36cb3d;break;}_0x59d826&&(_0x4a1c67=_0x4d66a8-0x1);for(let _0x25ed1f=_0x53a38b;_0x25ed1f<_0x4d66a8;_0x25ed1f++)_0x57bfdb[_0x25ed1f][_0x267b('0x109')]=_0x25ed1f<=_0x4a1c67?-0x1:_0x25ed1f<_0x2593fd?0x0:0x1,_0x57bfdb[_0x25ed1f][_0x267b('0x3a')]=_0x25ed1f;let _0x1ed429=0x0;for(let _0x3dbd25=_0x53a38b;_0x3dbd25<=_0x4a1c67;_0x3dbd25++)0x0==_0x57bfdb[_0x3dbd25][_0x267b('0xe2')]?_0x57bfdb[_0x3dbd25][_0x267b('0xe8')]=_0x1ed429:(_0x1ed429++,_0x57bfdb[_0x3dbd25][_0x267b('0xe8')]=_0x1ed429,_0x1ed429++);for(let _0x3e4ea9=_0x53a38b;_0x3e4ea9<_0x4d66a8;_0x3e4ea9++)0x0==_0x57bfdb[_0x3e4ea9][_0x267b('0x109')]&&(_0x57bfdb[_0x3e4ea9][_0x267b('0xe8')]=_0x1ed429);_0x1ed429=0x0;for(let _0x363c75=_0x4d66a8-0x1;_0x363c75>=_0x2593fd;_0x363c75--)0x0==_0x57bfdb[_0x363c75][_0x267b('0xe2')]?_0x57bfdb[_0x363c75][_0x267b('0xe8')]=_0x1ed429:(_0x1ed429--,_0x57bfdb[_0x363c75][_0x267b('0xe8')]=_0x1ed429,_0x1ed429--);}}[_0x267b('0x2')](_0x5e7606){const _0x5b9697=new Map(),_0x2ee3e9=this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x9c')];for(let _0x5a620b=0x1;_0x5a620b<_0x5e7606[_0x267b('0x5c')];_0x5a620b++){let _0x1c6d93,_0x36a8bf,_0x5efcae;const _0x5efc33=_0x5e7606[_0x5a620b],_0x32c1b8=_0x5e7606[_0x5a620b-0x1];if('text'==_0x5efc33[_0x267b('0x72')])continue;if(_0x5efc33[_0x267b('0x72')]!=_0x32c1b8[_0x267b('0x72')])continue;if(!_0x2ee3e9[_0x267b('0x71')](_0x32c1b8[_0x267b('0x52')])||_0x2ee3e9[_0x267b('0x12')](_0x32c1b8[_0x267b('0x52')]))continue;if(!_0x2ee3e9['isBlock'](_0x5efc33['item'])||_0x2ee3e9[_0x267b('0x12')](_0x5efc33['item']))continue;if((_0x5e7606[_0x5a620b][_0x267b('0x3c')]||_0x5e7606[_0x5a620b]['isAddSuggestion'])&&_0x5e7606[_0x5a620b-0x1]['isRemoved'])_0x1c6d93=_0x5e7606[_0x5a620b],_0x36a8bf=_0x5e7606[_0x5a620b-0x1],_0x5efcae=_0x5a620b-0x1;else{if(!_0x5e7606[_0x5a620b][_0x267b('0x29')]||!_0x5e7606[_0x5a620b-0x1][_0x267b('0x3c')]&&!_0x5e7606[_0x5a620b-0x1]['isAddSuggestion'])continue;_0x1c6d93=_0x5e7606[_0x5a620b-0x1],_0x36a8bf=_0x5e7606[_0x5a620b],_0x5efcae=_0x5a620b;}const _0xf58d91=_0x1c6d93[_0x267b('0xe8')]==_0x36a8bf['level'],_0x3c924a=Math['abs'](_0x1c6d93['level'])<Math[_0x267b('0x32')](_0x36a8bf[_0x267b('0xe8')])&&0x0==_0x36a8bf[_0x267b('0xe2')];(_0xf58d91||_0x3c924a)&&(_0x5b9697[_0x267b('0x5')](_0x36a8bf['id'],_0x1c6d93['id']),_0x5e7606[_0x267b('0x4e')](_0x5efcae,0x1),_0x5a620b--,_0x1c6d93[_0x267b('0x3c')]=!0x1);}for(let _0xc03e06=0x0;_0xc03e06<_0x5e7606[_0x267b('0x5c')];_0xc03e06++)_0x5b9697['has'](_0x5e7606[_0xc03e06]['pairId'])&&(_0x5e7606[_0xc03e06][_0x267b('0xe5')]=_0x5b9697[_0x267b('0xb6')](_0x5e7606[_0xc03e06][_0x267b('0xe5')]));}[_0x267b('0xeb')](_0x136850){const _0x5c8989=new Set(_0x136850[_0x267b('0x1d')](_0x402849=>_0x402849['id']));for(let _0x4955cb=0x0;_0x4955cb<_0x136850[_0x267b('0x5c')];_0x4955cb++)_0x5c8989[_0x267b('0xcb')](_0x136850[_0x4955cb][_0x267b('0xe5')])||0x0==_0x136850[_0x4955cb][_0x267b('0xe2')]||(_0x136850[_0x4955cb][_0x267b('0x7b')]=!0x0);return _0x136850[_0x267b('0x33')](_0x285420=>!_0x285420[_0x267b('0x7b')]);}[_0x267b('0x23')](_0x57657d){const _0x506ffb=new Set();for(let _0x1e9baf=0x0;_0x1e9baf<_0x57657d[_0x267b('0x5c')];_0x1e9baf++){if(_0x506ffb['has'](_0x57657d[_0x1e9baf]['id'])&&_0x57657d[_0x1e9baf][_0x267b('0x29')]&&(_0x57657d[_0x1e9baf][_0x267b('0x7b')]=!0x0),_0x57657d[_0x1e9baf]['isIncorrect'])continue;if(0x0==_0x57657d[_0x1e9baf]['distance'])continue;if('elementStart'!=_0x57657d[_0x1e9baf][_0x267b('0x72')])continue;if(null==_0x57657d[_0x1e9baf][_0x267b('0xe5')])continue;let _0x56ff67=_0x1e9baf+0x1,_0x280415=0x0;for(;_0x57657d[_0x56ff67]['id']!=_0x57657d[_0x1e9baf][_0x267b('0xe5')];)_0x267b('0x7a')==_0x57657d[_0x56ff67][_0x267b('0x72')]?_0x280415++:_0x267b('0xa7')==_0x57657d[_0x56ff67][_0x267b('0x72')]&&_0x280415--,_0x56ff67++;if(0x0!=_0x280415){if(_0x57657d[_0x1e9baf][_0x267b('0x29')])_0x57657d[_0x1e9baf][_0x267b('0x7b')]=!0x0;else for(;_0x56ff67!=_0x1e9baf;)_0x57657d[_0x56ff67][_0x267b('0x29')]&&0x0!=_0x57657d[_0x56ff67][_0x267b('0xe2')]&&(_0x57657d[_0x56ff67]['isIncorrect']=!0x0,_0x506ffb[_0x267b('0xd9')](_0x57657d[_0x56ff67]['pairId'])),_0x56ff67--;}}return _0x57657d[_0x267b('0x33')](_0x2f7e18=>!_0x2f7e18[_0x267b('0x7b')]);}[_0x267b('0xbd')](_0x57e7f4){const _0x58c91c=this[_0x267b('0xb2')][_0x267b('0x104')]['schema'];for(let _0x1d53fb=0x0;_0x1d53fb<_0x57e7f4[_0x267b('0x5c')];_0x1d53fb++){if(!(_0x57e7f4[_0x1d53fb][_0x267b('0x3c')]||_0x57e7f4[_0x1d53fb][_0x267b('0x7e')]||_0x57e7f4[_0x1d53fb][_0x267b('0x29')]||_0x57e7f4[_0x1d53fb][_0x267b('0x10c')]))continue;if(0x0==_0x57e7f4[_0x1d53fb][_0x267b('0xe2')])continue;const _0x15a7c9=_0x57e7f4[_0x1d53fb][_0x267b('0x52')];_0x58c91c[_0x267b('0x71')](_0x15a7c9)||_0x58c91c[_0x267b('0x12')](_0x15a7c9)||(_0x57e7f4[_0x1d53fb][_0x267b('0x3c')]&&delete _0x57e7f4[_0x1d53fb][_0x267b('0x3c')],_0x57e7f4[_0x1d53fb][_0x267b('0x7e')]&&delete _0x57e7f4[_0x1d53fb][_0x267b('0x7e')],_0x57e7f4[_0x1d53fb][_0x267b('0x10c')]&&delete _0x57e7f4[_0x1d53fb]['isRemoveSuggestion'],_0x57e7f4[_0x1d53fb][_0x267b('0x29')]&&(_0x57e7f4[_0x1d53fb][_0x267b('0x7b')]=!0x0));}return _0x57e7f4[_0x267b('0x33')](_0x71ab06=>!_0x71ab06['isIncorrect']);}['_makeModelFromTape'](_0x245035,_0x1e66fd,_0x2f5be9){const _0x50f834=new _0x1c11b1(),_0x332618=[],_0x27bf99=new Map(),_0x177ff5=this[_0x267b('0xb2')][_0x267b('0x104')],_0x5e4a77=_0x177ff5[_0x267b('0x9c')],_0x2b5740=[_0x50f834],_0x212c6f={},_0x2263f3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x288fe3=null;const _0xe9267a=[0x0];for(let _0xe8f702=0x0;_0xe8f702<_0x245035[_0x267b('0x5c')];_0xe8f702++){let _0x749f9a,_0x3a9dc2;if(_0x267b('0x7a')===_0x245035[_0xe8f702][_0x267b('0x72')]){_0x749f9a=_0x177ff5['createPositionFromPath'](_0x50f834,_0xe9267a);const _0x52be82=new _0xed8376(_0x245035[_0xe8f702]['item']['name'],_0x245035[_0xe8f702][_0x267b('0x52')]['getAttributes']());_0x2b5740[0x0][_0x267b('0x101')](_0x52be82),_0xe9267a[_0x267b('0xfd')](0x0),_0x2b5740['unshift'](_0x52be82),_0x3a9dc2=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0x288fe3=null;}else{if(_0x267b('0xa7')===_0x245035[_0xe8f702][_0x267b('0x72')])_0x2b5740[_0x267b('0xf7')](),_0x749f9a=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0xe9267a[_0x267b('0xbb')](),_0xe9267a[_0xe9267a[_0x267b('0x5c')]-0x1]++,_0x3a9dc2=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0x288fe3=null;else{if(_0x749f9a=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a),_0x288fe3&&_0x275c2f(_0x288fe3,_0x245035[_0xe8f702][_0x267b('0x52')]))_0x288fe3[_0x267b('0x21')]+=_0x245035[_0xe8f702]['item'][_0x267b('0x2a')];else{const _0x442be7=new _0x3ac18b(_0x245035[_0xe8f702]['item'][_0x267b('0x2a')],_0x245035[_0xe8f702]['item'][_0x267b('0x116')]());_0x2b5740[0x0]['_appendChild'](_0x442be7),_0x288fe3=_0x442be7;}_0xe9267a[_0xe9267a[_0x267b('0x5c')]-0x1]+=_0x245035[_0xe8f702][_0x267b('0x52')]['offsetSize'],_0x3a9dc2=_0x177ff5[_0x267b('0x5e')](_0x50f834,_0xe9267a);}}for(const _0x15c3a2 of _0x245035[_0xe8f702][_0x267b('0x3f')])_0x27bf99[_0x267b('0x5')](_0x15c3a2,{'start':_0x749f9a,'end':null});_0x4de93f(_0x267b('0x10c'),_0xe8f702,_0x749f9a,_0x3a9dc2),_0x4de93f(_0x267b('0x7e'),_0xe8f702,_0x749f9a,_0x3a9dc2),_0x4de93f(_0x267b('0x29'),_0xe8f702,_0x749f9a,_0x3a9dc2),_0x4de93f('isAdded',_0xe8f702,_0x749f9a,_0x3a9dc2);for(const _0x40f6e7 of _0x245035[_0xe8f702]['markersEnd']){_0x27bf99[_0x267b('0xb6')](_0x40f6e7)[_0x267b('0xd8')]=_0x3a9dc2;}}for(const [_0x34bd87,_0x327f0b]of _0x27bf99){const _0x38eba8=this['editor'][_0x267b('0x104')]['createRange'](_0x327f0b['start'],_0x327f0b[_0x267b('0xd8')]);_0x50f834[_0x267b('0x4d')]['set'](_0x34bd87,_0x38eba8);}return _0x332618['sort']((_0x4525ed,_0x6bdc0c)=>{const _0x1abb31=_0x50f834[_0x267b('0x4d')][_0x267b('0xb6')](_0x267b('0x45')+_0x4525ed['id']),_0x22a762=_0x50f834[_0x267b('0x4d')][_0x267b('0xb6')](_0x267b('0x45')+_0x6bdc0c['id']);return _0x1abb31[_0x267b('0x93')][_0x267b('0x88')](_0x22a762['start'])?-0x1:_0x1abb31[_0x267b('0x93')][_0x267b('0x4f')](_0x22a762[_0x267b('0x93')])?0x1:_0x1abb31['end'][_0x267b('0x88')](_0x22a762[_0x267b('0xd8')])?-0x1:_0x1abb31[_0x267b('0xd8')][_0x267b('0x4f')](_0x22a762[_0x267b('0xd8')])?0x1:_0x267b('0xd9')===_0x4525ed[_0x267b('0x72')]?-0x1:0x1;}),{'root':_0x50f834,'changes':_0x332618};function _0x4de93f(_0x297250,_0x51b97f,_0x3aa446,_0x5f4a70){const _0x38350c=!!_0x245035[_0x51b97f][_0x297250],_0x23ccdd=_0x38350c?_0x245035[_0x51b97f][_0x297250][_0x267b('0x54')]:null,_0x4f471b=_0x51b97f===_0x245035[_0x267b('0x5c')]-0x1,_0xa52273=_0x2263f3[_0x297250][0x0],_0x2d236a=_0x5e4a77[_0x267b('0xf1')](_0x245035[_0x51b97f][_0x267b('0x52')]);!_0x212c6f[_0x297250]&&_0x38350c?_0x212c6f[_0x297250]={'start':_0x3aa446,'tapeItem':_0x245035[_0x51b97f],'userId':_0x23ccdd,'type':_0x297250}:_0x212c6f[_0x297250]&&!_0x38350c?(_0x212c6f[_0x297250]['end']=_0x3aa446,_0x4bf337(_0x212c6f[_0x297250]),_0x212c6f[_0x297250]=null):_0x212c6f[_0x297250]&&_0x38350c&&_0x212c6f[_0x297250][_0x267b('0x54')]!==_0x23ccdd&&(_0x212c6f[_0x297250][_0x267b('0xd8')]=_0x3aa446,_0xa52273&&_0xa52273[_0x267b('0x54')]===_0x212c6f[_0x297250]['userId']||_0x4bf337(_0x212c6f[_0x297250]),_0x212c6f[_0x297250]={'start':_0x3aa446,'tapeItem':_0x245035[_0x51b97f],'userId':_0x23ccdd,'type':_0x297250}),_0x212c6f[_0x297250]&&_0x2d236a&&(_0x267b('0x7a')!==_0x245035[_0x51b97f][_0x267b('0x72')]||_0xa52273&&_0xa52273[_0x267b('0x54')]===_0x23ccdd||_0x2263f3[_0x297250]['unshift']({'userId':_0x23ccdd,'object':_0x245035[_0x51b97f][_0x267b('0x52')],'change':_0x212c6f[_0x297250]}),_0x267b('0xa7')===_0x245035[_0x51b97f]['type']&&_0xa52273&&_0xa52273[_0x267b('0xce')]===_0x245035[_0x51b97f][_0x267b('0x52')]&&(_0x2263f3[_0x297250][_0x267b('0xf7')](),_0x212c6f[_0x297250]=_0xa52273[_0x267b('0x56')])),_0x212c6f[_0x297250]&&_0x4f471b&&(_0x212c6f[_0x297250]['end']=_0x5f4a70,_0x4bf337(_0x212c6f[_0x297250]),_0x212c6f[_0x297250]=null);}function _0x4bf337({start:_0x23c5fd,end:_0x5a5f98,tapeItem:_0x50058e,userId:_0x2d13e7,type:_0x394444}){const _0x5ab171=_0x50058e[_0x267b('0x52')],_0x1a5f33=_0x177ff5['schema'][_0x267b('0x71')](_0x5ab171)&&!_0x177ff5['schema'][_0x267b('0x12')](_0x5ab171),_0x51b850=_0x23c5fd[_0x267b('0x37')]==_0x5a5f98[_0x267b('0x7d')]&&_0x5a5f98[_0x267b('0x9b')];if(_0x1a5f33&&_0x51b850)return;const _0x28ade5=_0x177ff5[_0x267b('0x19')](_0x23c5fd,_0x5a5f98),_0x4cd8ca=_0x1e66fd['get'](_0x2d13e7),_0x5a827f=new _0x49afc5({'author':_0x4cd8ca,'type':_0x267b('0x3c')==_0x394444||_0x267b('0x7e')==_0x394444?_0x267b('0xd9'):'remove','data':{'isSuggestion':'isAddSuggestion'==_0x394444||_0x267b('0x10c')==_0x394444},'createdAt':new Date(),'rootName':_0x2f5be9});_0x332618[_0x267b('0xfd')](_0x5a827f),_0x50f834[_0x267b('0x4d')][_0x267b('0x5')]('revision:'+_0x5a827f['id'],_0x28ade5);}function _0x275c2f(_0x155220,_0x100963){const _0x485860=_0x155220[_0x267b('0x116')](),_0x470362=_0x100963[_0x267b('0x116')]();for(const _0x53ba1e of _0x485860){if(_0x53ba1e[0x1]!==_0x100963[_0x267b('0x47')](_0x53ba1e[0x0]))return!0x1;_0x470362[_0x267b('0x51')]();}return _0x470362[_0x267b('0x51')]()[_0x267b('0x11d')];}}['_setConversion'](){this[_0x267b('0xb2')][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xc8')]({'view':'revision'}),this[_0x267b('0xb2')]['conversion'][_0x267b('0x41')](_0x267b('0x4b'))[_0x267b('0x8c')]({'model':_0x267b('0xab'),'view':_0x45e890=>{const _0x50cfaf=_0x45e890[_0x267b('0xa6')]['split'](':')[0x1],_0x546de4=this[_0x267b('0xb4')](_0x50cfaf);if(!_0x546de4)return null;const _0x37bd07=_0x267b('0xd9')==_0x546de4[_0x267b('0x72')]?_0x267b('0xe1'):'deletion',_0x45a799=['ck-suggestion-marker','ck-suggestion-marker-'+_0x37bd07];return _0x546de4['data'][_0x267b('0x100')]&&_0x45a799[_0x267b('0xfd')](_0x267b('0x117')+_0x37bd07+_0x267b('0x96')),this[_0x267b('0x3d')]==_0x546de4&&_0x45a799['push'](_0x267b('0xfb')),{'classes':_0x45a799,'attributes':{'data-change-id':_0x50cfaf}};}}),this[_0x267b('0xb2')][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xd9')](_0x43d5c9=>{_0x43d5c9['on'](_0x267b('0x7'),(_0x51b061,_0x79ff52,_0xdae4d)=>{const _0x2a7e0d=_0x79ff52[_0x267b('0xe3')][_0x267b('0x102')](0x0);if(!_0x2a7e0d||!_0x2a7e0d['is'](_0x267b('0x0'),_0x267b('0xb3')))return;if(!_0xdae4d[_0x267b('0x18')][_0x267b('0x11b')](_0x2a7e0d,{'attributes':[_0x267b('0xe7'),_0x267b('0x9a')]}))return;const _0x49a7b0=_0x79ff52[_0x267b('0x65')]['start'][_0x267b('0x37')];_0xdae4d[_0x267b('0x60')][_0x267b('0x8e')](_0x267b('0xe7'),_0x2a7e0d[_0x267b('0x47')](_0x267b('0xe7')),_0x49a7b0),_0xdae4d[_0x267b('0x60')][_0x267b('0x8e')](_0x267b('0x9a'),_0x2a7e0d[_0x267b('0x47')](_0x267b('0x9a')),_0x49a7b0);},{'priority':_0x267b('0x95')});}),this['editor']['conversion'][_0x267b('0x41')](_0x267b('0x10e'))['add'](_0x17b3d2=>{_0x17b3d2['on'](_0x267b('0x0'),(_0x240139,_0x2ee3f0,_0x3881eb)=>{if(!_0x3881eb['consumable'][_0x267b('0x11b')](_0x2ee3f0[_0x267b('0xe3')],{'attributes':[_0x267b('0xe7'),_0x267b('0x9a')]}))return;if(_0x2ee3f0[_0x267b('0x65')]['isCollapsed'])return;const _0x1f4fb7=_0x2ee3f0['modelRange'][_0x267b('0x93')]['nodeAfter'];_0x1f4fb7[_0x267b('0xd3')]('vid_start')||_0x1f4fb7['hasAttribute'](_0x267b('0x1a'))||(_0x3881eb[_0x267b('0x60')]['setAttribute'](_0x267b('0xe7'),_0x2ee3f0[_0x267b('0xe3')][_0x267b('0x47')](_0x267b('0xe7')),_0x1f4fb7),_0x3881eb[_0x267b('0x60')][_0x267b('0x8e')](_0x267b('0x9a'),_0x2ee3f0[_0x267b('0xe3')][_0x267b('0x47')](_0x267b('0x9a')),_0x1f4fb7));},{'priority':_0x267b('0x95')});}),this[_0x267b('0xb2')][_0x267b('0x110')]['for'](_0x267b('0x10e'))['elementToAttribute']({'view':{'name':_0x267b('0xa9'),'attributes':{'vid':!0x0}},'model':{'key':_0x267b('0x1a'),'value':_0x3bc778=>_0x3bc778[_0x267b('0x47')](_0x267b('0x1a'))}}),this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x9c')]['on'](_0x267b('0xed'),(_0x60574,[,_0x5df2c7])=>{[_0x267b('0xe7'),_0x267b('0x9a'),'vid'][_0x267b('0xe6')](_0x5df2c7)&&(_0x60574[_0x267b('0x76')]=!0x0,_0x60574[_0x267b('0xe4')]());},{'priority':_0x267b('0x5b')}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x2f'))['add'](_0x281805=>{_0x281805['on']('attribute:vid',(_0x41e14f,_0x47be8c,_0x579beb)=>{if('\x20'!=_0x47be8c[_0x267b('0x52')]['data']||_0x47be8c[_0x267b('0x52')]['parent'][_0x267b('0xa3')]>0x1)return;if(!_0x579beb[_0x267b('0x18')][_0x267b('0x11b')](_0x47be8c['item'],_0x41e14f[_0x267b('0x82')]))return;const _0x11d5b1=_0x579beb[_0x267b('0x60')],_0xe51477=_0x579beb[_0x267b('0xfe')]['toViewRange'](_0x47be8c[_0x267b('0x2d')]);_0x11d5b1[_0x267b('0xa2')](_0xe51477,_0x11d5b1['createAttributeElement'](_0x267b('0xa9')));});}),this[_0x267b('0xb2')]['conversion']['for']('dataDowncast')['markerToData']({'model':_0x267b('0xab')}),this[_0x267b('0xb2')][_0x267b('0x111')]['downcastDispatcher']['on'](_0x267b('0xba'),function(_0x2ea05e){const _0x30fc33=_0x2ea05e[_0x267b('0xd')][_0x267b('0xb6')](_0x267b('0x66'));return(_0x45d11a,_0x3339b1,_0x2c6c01)=>{const _0x29c27b=_0x3339b1[_0x267b('0xa6')][_0x267b('0x84')](':')[0x1],_0x260f45=_0x30fc33[_0x267b('0xb4')](_0x29c27b);if(!_0x260f45)return null;const _0x4a7222='add'==_0x260f45['type']?_0x267b('0x84'):_0x267b('0xfa');if(!_0x2c6c01[_0x267b('0x18')][_0x267b('0x26')](_0x3339b1[_0x267b('0x8f')],_0x45d11a[_0x267b('0x82')]))return;const _0x3a20f4=_0x3339b1[_0x267b('0x8f')][_0x267b('0x5f')](),_0x54462f=_0x3339b1[_0x267b('0x8f')][_0x267b('0x93')],_0x395636=_0x2ea05e[_0x267b('0x104')][_0x267b('0x9c')];let _0x16ece4=null,_0x1dea6b=null,_0x5d7f25=!0x1,_0x2a06ae=!0x1;for(const _0x2597d4 of _0x3a20f4){const _0x396896=_0x2597d4['item'];_0x5d7f25=_0x5d7f25||_0x395636[_0x267b('0xcf')](_0x396896);const _0x19b010=_0x2c6c01[_0x267b('0xfe')][_0x267b('0x4c')](_0x396896);if(_0x19b010&&_0x19b010[_0x267b('0xd2')](_0x267b('0x113')))return;_0x267b('0xa7')==_0x2597d4['type']&&(_0x395636[_0x267b('0x71')](_0x396896)&&!_0x395636[_0x267b('0x12')](_0x396896)&&(_0x396896[_0x267b('0x49')]||_0x54462f['isAtEnd']?_0x16ece4&&_0x16ece4['parent']==_0x396896||(_0x16ece4=_0x396896,_0xb15eef(_0x2597d4[_0x267b('0xa8')]),_0x2a06ae=!0x0):_0x1dea6b=_0x1dea6b||_0x2597d4['previousPosition']));}function _0xb15eef(_0x2ba39b){const _0x4083f2=_0x2c6c01['writer'][_0x267b('0x99')](_0x267b('0xa9'),{'class':_0x267b('0x117')+_0x4a7222}),_0x656ddc=_0x2c6c01[_0x267b('0xfe')]['toViewPosition'](_0x2ba39b);_0x260f45['data'][_0x267b('0x100')]&&_0x2c6c01[_0x267b('0x60')][_0x267b('0x10f')](_0x267b('0x117')+_0x4a7222+_0x267b('0x96'),_0x4083f2),_0x30fc33[_0x267b('0x3d')]==_0x260f45&&_0x2c6c01[_0x267b('0x60')][_0x267b('0x10f')](_0x267b('0xfb'),_0x4083f2),_0x2c6c01[_0x267b('0x60')][_0x267b('0x112')](_0x656ddc,_0x4083f2),_0x2c6c01[_0x267b('0xfe')][_0x267b('0x115')](_0x4083f2,_0x3339b1[_0x267b('0xa6')]);}_0x5d7f25||_0x2a06ae||!_0x1dea6b||_0xb15eef(_0x1dea6b);};}(this[_0x267b('0xb2')]),{'priority':_0x267b('0xa1')}),this[_0x267b('0xb2')]['editing'][_0x267b('0x79')]['on'](_0x267b('0x61'),(_0x194272,_0x139d7c,_0x3802a3)=>{const _0x581f7f=_0x3802a3[_0x267b('0xfe')][_0x267b('0x105')](_0x139d7c['markerName']);if(_0x581f7f)for(const _0x3442cf of _0x581f7f)(_0x3442cf[_0x267b('0xc9')](_0x267b('0x11c'))||_0x3442cf['hasClass'](_0x267b('0xca')))&&(_0x3802a3[_0x267b('0xfe')][_0x267b('0x10')](_0x3442cf,_0x139d7c[_0x267b('0xa6')]),_0x3802a3[_0x267b('0x60')]['remove'](_0x3442cf));},{'priority':_0x267b('0xa1')}),this[_0x267b('0xb2')]['editing'][_0x267b('0x79')]['on']('addMarker:revision',(_0x30de42,_0xadeb88,_0x20789f)=>{const _0x5dd084=_0xadeb88[_0x267b('0xa6')][_0x267b('0x84')](':')[0x1],_0xdd0d3a=this[_0x267b('0xb4')](_0x5dd084);if(!_0xdd0d3a)return null;const _0x13ab42='add'==_0xdd0d3a[_0x267b('0x72')]?_0x267b('0x84'):_0x267b('0xfa');if(_0x20789f['consumable'][_0x267b('0x26')](_0xadeb88['markerRange'],_0x30de42[_0x267b('0x82')]))for(const _0x4eeddb of _0xadeb88[_0x267b('0x8f')][_0x267b('0xa4')]()){if(!_0x4eeddb['is'](_0x267b('0x0'),'softBreak'))continue;const _0x5a29f2=_0x20789f[_0x267b('0x60')]['createUIElement'](_0x267b('0xa9'),{'class':_0x267b('0x117')+_0x13ab42}),_0x41afb9=_0x20789f[_0x267b('0xfe')][_0x267b('0x68')](this['editor'][_0x267b('0x104')][_0x267b('0x107')](_0x4eeddb));_0xdd0d3a['data'][_0x267b('0x100')]&&_0x20789f[_0x267b('0x60')][_0x267b('0x10f')](_0x267b('0x117')+_0x13ab42+_0x267b('0x96'),_0x5a29f2),this['activeChange']==_0xdd0d3a&&_0x20789f[_0x267b('0x60')]['addClass'](_0x267b('0xfb'),_0x5a29f2),_0x20789f[_0x267b('0x60')][_0x267b('0x112')](_0x41afb9,_0x5a29f2),_0x20789f['mapper']['bindElementToMarker'](_0x5a29f2,_0xadeb88[_0x267b('0xa6')]);}},{'priority':_0x267b('0xa1')}),this[_0x267b('0xb2')]['model'][_0x267b('0xb7')]['on'](_0x267b('0x56'),()=>{this[_0x267b('0xb2')][_0x267b('0x111')]['view'][_0x267b('0x56')](_0x106f81=>{for(const _0x1570a7 of this[_0x267b('0xb2')]['model']['document'][_0x267b('0x22')]()){const _0x588a5d=this['editor'][_0x267b('0x104')][_0x267b('0xb7')][_0x267b('0x30')](_0x1570a7),_0x507f91=this[_0x267b('0xb2')][_0x267b('0x111')]['view']['document'][_0x267b('0x30')](_0x1570a7);if(_0x507f91){const _0x243bc7=_0x588a5d[_0x267b('0x47')](_0x267b('0xe0'));if(_0x106f81[_0x267b('0xd7')](_0x267b('0x67'),_0x507f91),_0x106f81[_0x267b('0xcc')](_0x267b('0x17'),_0x507f91),_0x106f81['removeClass']('ck-revision-history-root-remove',_0x507f91),_0x106f81[_0x267b('0xcc')](_0x267b('0xec'),_0x507f91),_0x243bc7){const _0xeec455=this[_0x267b('0xb4')](_0x243bc7);if(!_0xeec455)return null;_0x106f81[_0x267b('0x8e')]('data-change-id',_0x243bc7,_0x507f91),_0x106f81['addClass']('ck-revision-history-root-'+_0xeec455[_0x267b('0x72')],_0x507f91),this[_0x267b('0x3d')]==_0xeec455&&_0x106f81[_0x267b('0x10f')]('ck-revision-history-root--active',_0x507f91);}}}});}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xc8')]({'view':_0x267b('0xac'),'model':_0x21f206=>'revision-comment:'+_0x21f206,'converterPriority':_0x267b('0x5b')}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x10e'))[_0x267b('0xc8')]({'view':'suggestion','model':_0x14dfca=>_0x267b('0x27')+_0x14dfca,'converterPriority':_0x267b('0x5b')}),this[_0x267b('0xb2')][_0x267b('0x110')]['for'](_0x267b('0x2f'))['markerToData']({'model':_0x267b('0x40'),'view':_0x3edb85=>({'name':_0x267b('0x106')+_0x3edb85,'group':_0x267b('0x40')}),'converterPriority':'highest'}),this['editor'][_0x267b('0x110')][_0x267b('0x41')](_0x267b('0x4b'))[_0x267b('0x8c')]({'model':_0x267b('0x40'),'view':_0x4cd5bd=>{const _0x5a2e26=_0x4cd5bd[_0x267b('0xa6')][_0x267b('0x84')](':')[0x1];return'insertion'!=_0x5a2e26&&_0x267b('0xd4')!=_0x5a2e26?null:{'classes':[_0x267b('0x43'),_0x267b('0x36')+_0x5a2e26]};}}),this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0x79')]['on'](_0x267b('0x64'),et(this[_0x267b('0xb2')],_0x267b('0xfa')),{'priority':'high'}),this['editor'][_0x267b('0x111')][_0x267b('0x79')]['on'](_0x267b('0xc3'),et(this['editor'],_0x267b('0x84')),{'priority':'high'}),this['editor'][_0x267b('0x111')][_0x267b('0x79')]['on'](_0x267b('0x75'),(_0x4647bd,_0x59b814,_0x43451a)=>{const _0x1ca094=_0x43451a[_0x267b('0xfe')][_0x267b('0x105')](_0x59b814[_0x267b('0xa6')]);if(_0x1ca094)for(const _0x22a6cd of _0x1ca094)_0x22a6cd['is'](_0x267b('0xb0'))&&(_0x43451a[_0x267b('0xfe')][_0x267b('0x10')](_0x22a6cd,_0x59b814['markerName']),_0x43451a[_0x267b('0x60')][_0x267b('0xb8')](_0x22a6cd));},{'priority':_0x267b('0xa1')});}['_getChangeFromId'](_0x377d8e){return this[_0x267b('0x8')][_0x267b('0xb6')](_0x377d8e);}['_getViewForChange'](_0x2b783f){return this[_0x267b('0x14')]&&this[_0x267b('0x14')][_0x267b('0xf5')](),this[_0x267b('0x14')]=new _0x3ad18f(this['editor'][_0x267b('0x63')],_0x2b783f),this['_changeView'];}['_initInteractions'](){this['editor'][_0x267b('0x104')]['document'][_0x267b('0xe9')][_0x267b('0x10d')](_0x267b('0xab')),this['on'](_0x267b('0xae'),(_0xf7ca78,_0xc6eee7,_0x45dbf4,_0x3167c1)=>{_0x3167c1&&this[_0x267b('0x73')]['remove'](_0x3167c1),_0x45dbf4&&(this[_0x267b('0x73')][_0x267b('0xd9')]({'view':_0x45dbf4,'stackId':_0x267b('0x3b'),'position':{'target':()=>{const _0x300f09=this[_0x267b('0xb2')]['editing'],_0x4b1c5e=this[_0x267b('0xb4')](_0x45dbf4['changeId']);let _0x404e53;if(_0x4b1c5e[_0x267b('0x2a')][_0x267b('0x6a')]){const _0x1cb255=_0x300f09['view']['getDomRoot'](_0x4b1c5e['rootName']);_0x404e53=Array[_0x267b('0x85')](_0x1cb255['getClientRects']());}else{const _0x4005ec=this[_0x267b('0xb2')][_0x267b('0x104')]['markers'][_0x267b('0xb6')](_0x267b('0x45')+_0x45dbf4[_0x267b('0xaf')]);_0x404e53=Array[_0x267b('0x85')](_0x300f09[_0x267b('0xfe')][_0x267b('0x105')](_0x4005ec['name']))[_0x267b('0x1d')](_0x4776b8=>_0x300f09[_0x267b('0xc5')]['domConverter']['mapViewToDom'](_0x4776b8))[_0x267b('0x1d')](_0x5f4422=>Array[_0x267b('0x85')](_0x5f4422[_0x267b('0x59')]()))[_0x267b('0xd5')]();}if(!this[_0x267b('0xc7')])return _0x404e53[0x0];return _0x404e53[_0x267b('0xf4')](_0x244534=>_0x244534[_0x267b('0x90')]-0x3<=this[_0x267b('0xc7')]['y']&&_0x244534[_0x267b('0xa5')]+0x3>=this[_0x267b('0xc7')]['y']&&_0x244534[_0x267b('0xf0')]-0x3<=this[_0x267b('0xc7')]['x']&&_0x244534['right']+0x3>=this[_0x267b('0xc7')]['x'])||_0x404e53[0x0];}}}),this[_0x267b('0x73')]['showStack'](_0x267b('0x3b')));}),this['on'](_0x267b('0xf2'),(_0x47b71b,_0xd17505,_0x2e355b,_0x4e459b)=>{this[_0x267b('0xf9')]=_0x2e355b?this[_0x267b('0x9f')](_0x2e355b):null,this['editor']['model'][_0x267b('0x56')](()=>{const _0xe2f12f=this[_0x267b('0xb2')]['editing'];_0x4e459b&&(_0x4e459b[_0x267b('0x2a')][_0x267b('0x6a')]?_0xe2f12f['view'][_0x267b('0x56')](_0x1233da=>{_0x1233da[_0x267b('0xcc')](_0x267b('0xec'),_0xe2f12f['view'][_0x267b('0xb7')][_0x267b('0x30')](_0x4e459b[_0x267b('0x4a')]));}):_0xe2f12f[_0x267b('0x1b')](_0x267b('0x45')+_0x4e459b['id'])),_0x2e355b&&(_0x2e355b[_0x267b('0x2a')][_0x267b('0x6a')]?_0xe2f12f[_0x267b('0xc5')][_0x267b('0x56')](_0x40de83=>{_0x40de83[_0x267b('0x10f')]('ck-revision-history-root--active',_0xe2f12f[_0x267b('0xc5')]['document']['getRoot'](_0x2e355b[_0x267b('0x4a')]));}):_0xe2f12f['reconvertMarker'](_0x267b('0x45')+_0x2e355b['id']));});}),this['listenTo'](this['editor'][_0x267b('0x111')]['view']['document'],_0x267b('0x3'),(_0x56728b,_0x51ded2)=>{if(this['activeChange'])return;const _0x3b4b1c=this['_findChangeIdFromDomTarget'](_0x51ded2[_0x267b('0x1')]),_0x591ffa=this['_changeIdToChange']['get'](_0x3b4b1c);_0x591ffa?(this[_0x267b('0xc7')]={'x':_0x51ded2[_0x267b('0x77')]['x'],'y':_0x51ded2[_0x267b('0x77')]['y']},this[_0x267b('0xf9')]=this[_0x267b('0x9f')](_0x591ffa)):(this[_0x267b('0xc7')]=null,this[_0x267b('0xf9')]=null);}),this['listenTo'](this[_0x267b('0xb2')][_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0xb7')],_0x267b('0x80'),(_0x3cd88d,_0x1cc1c1)=>{const _0x1008af=this[_0x267b('0xde')](_0x1cc1c1[_0x267b('0x1')]),_0x22456c=this[_0x267b('0x8')][_0x267b('0xb6')](_0x1008af);_0x22456c?(this[_0x267b('0xc7')]={'x':_0x1cc1c1[_0x267b('0x77')]['x'],'y':_0x1cc1c1[_0x267b('0x77')]['y']},_0x22456c===this[_0x267b('0x3d')]?this['_balloon']['updatePosition']():this[_0x267b('0x3d')]=_0x22456c):(this[_0x267b('0xc7')]=null,this[_0x267b('0x3d')]=null);});}['_findChangeIdFromDomTarget'](_0x2b1d78){do{const _0x774f25=_0x2b1d78[_0x267b('0x47')](_0x267b('0x67'));if(_0x774f25)return _0x774f25;_0x2b1d78=_0x2b1d78['parent'];}while(_0x2b1d78);return null;}[_0x267b('0x10b')](){this[_0x267b('0xb2')]['model'][_0x267b('0x56')](_0x4ad19d=>{for(const _0x562498 of this[_0x267b('0xb2')][_0x267b('0x104')][_0x267b('0x4d')])_0x4ad19d[_0x267b('0x13')](_0x562498);});}}function et(_0x5489c7,_0x90f26f){return(_0x422fb6,_0x35d417,_0x4629d1)=>{if(!_0x4629d1[_0x267b('0x18')][_0x267b('0x26')](_0x35d417[_0x267b('0x8f')],_0x422fb6[_0x267b('0x82')]))return;const _0x1569ed=_0x35d417[_0x267b('0x8f')][_0x267b('0x5f')](),_0x5597f8=_0x35d417[_0x267b('0x8f')][_0x267b('0x93')],_0x5e6615=_0x5489c7['model'][_0x267b('0x9c')];let _0x403a8b=null,_0x916a92=null,_0x40819a=!0x1,_0xfa9cfc=!0x1;for(const _0x1aed80 of _0x1569ed){const _0x4c88b2=_0x1aed80[_0x267b('0x52')];_0x40819a=_0x40819a||_0x5e6615['isContent'](_0x4c88b2);const _0xa688c4=_0x4629d1[_0x267b('0xfe')][_0x267b('0x4c')](_0x4c88b2);if(_0xa688c4&&_0xa688c4[_0x267b('0xd2')](_0x267b('0x113')))return;_0x267b('0xa7')==_0x1aed80[_0x267b('0x72')]&&(_0x5e6615[_0x267b('0x71')](_0x4c88b2)&&!_0x5e6615[_0x267b('0x12')](_0x4c88b2)&&(_0x4c88b2[_0x267b('0x49')]||_0x5597f8[_0x267b('0x5d')]?_0x403a8b&&_0x403a8b[_0x267b('0x7d')]==_0x4c88b2||(_0x403a8b=_0x4c88b2,_0x300bf3(_0x1aed80[_0x267b('0xa8')]),_0xfa9cfc=!0x0):_0x916a92=_0x916a92||_0x1aed80[_0x267b('0xa8')]));}function _0x300bf3(_0x1c11e7){const _0x2779d7=_0x4629d1[_0x267b('0xfe')][_0x267b('0x68')](_0x1c11e7),_0x19b20b=_0x4629d1[_0x267b('0x60')][_0x267b('0x99')](_0x267b('0xa9'),{'class':_0x267b('0x36')+_0x90f26f});_0x4629d1[_0x267b('0x60')][_0x267b('0x112')](_0x2779d7,_0x19b20b),_0x4629d1[_0x267b('0xfe')][_0x267b('0x115')](_0x19b20b,_0x35d417[_0x267b('0xa6')]);}_0x40819a||_0xfa9cfc||!_0x916a92||_0x300bf3(_0x916a92);};}export class RestoreRevisionCommand extends _0x5a80bc{constructor(_0x5c7468){super(_0x5c7468);const _0x4177e9=_0x5c7468[_0x267b('0xd')]['get'](d);this[_0x267b('0x97')]=!0x1,this['listenTo'](_0x4177e9,_0x267b('0x50'),()=>this[_0x267b('0xc')]()),this[_0x267b('0x86')](_0x4177e9,_0x267b('0xc6'),()=>this[_0x267b('0xc')]());}[_0x267b('0x9')](){const _0x151bf1=this[_0x267b('0xb2')],_0x4a8168=_0x151bf1[_0x267b('0xd')][_0x267b('0xb6')](d),_0x4245be=_0x4a8168[_0x267b('0x35')]?_0x4a8168[_0x267b('0xb9')][_0x267b('0xd6')]:null;_0x151bf1[_0x267b('0x62')]['get']('revisionHistory')[_0x267b('0x42')](_0x4245be);}[_0x267b('0xc')](){const {isReady:_0x5df68b,isEnabled:_0x2ba72b}=this[_0x267b('0xb2')][_0x267b('0xd')][_0x267b('0xb6')](d);this['isEnabled']=_0x5df68b&&_0x2ba72b;}}export class ShowChangeCommand extends _0x5a80bc{constructor(_0x2d88f1,{direction:_0x22bef2}){super(_0x2d88f1);const _0x21a58f=_0x2d88f1[_0x267b('0xd')][_0x267b('0xb6')](d);this[_0x267b('0x97')]=!0x1,this['_step']=_0x267b('0x2e')===_0x22bef2?0x1:-0x1,this[_0x267b('0x86')](_0x21a58f,'change:isReady',()=>this[_0x267b('0xc')]()),this[_0x267b('0x86')](_0x21a58f,_0x267b('0xc6'),()=>this[_0x267b('0xc')]()),this[_0x267b('0x86')](_0x21a58f,_0x267b('0xf2'),()=>this[_0x267b('0xc')]());}['execute'](){const _0x3f361f=this[_0x267b('0xb2')],_0x12ad3f=_0x3f361f[_0x267b('0xd')]['get'](d),{isNavigationMode:_0x4c39d3,currentChangeNumber:_0x3d4df2}=_0x12ad3f;let _0x28957c;if(_0x12ad3f[_0x267b('0x3d')]=_0x4c39d3?_0x12ad3f[_0x267b('0xb9')][_0x267b('0xbc')][_0x267b('0xb6')](_0x3d4df2+this[_0x267b('0x11')]):_0x12ad3f[_0x267b('0xb9')][_0x267b('0xbc')][_0x267b('0x91')],_0x12ad3f['activeChange'][_0x267b('0x2a')][_0x267b('0x6a')])_0x28957c=_0x3f361f[_0x267b('0x111')][_0x267b('0xc5')][_0x267b('0x9e')](_0x12ad3f['activeChange'][_0x267b('0x4a')]);else{const _0x63f61b=_0x3f361f['model']['markers'][_0x267b('0xb6')](_0x267b('0x45')+_0x12ad3f['activeChange']['id']);_0x28957c=_0x2a84bb(_0x3f361f[_0x267b('0x111')],_0x63f61b);}_0x1652f7({'target':_0x28957c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3a27bb,currentChangeNumber:_0x8fd889,numberOfChanges:_0x557a7f,isReady:_0x4e298b,isEnabled:_0x3ed035}=this[_0x267b('0xb2')][_0x267b('0xd')]['get'](d);this[_0x267b('0xf')]=!!(_0x3ed035&&_0x4e298b&&_0x557a7f)&&(!_0x3a27bb||(0x1===this[_0x267b('0x11')]?_0x8fd889<_0x557a7f-0x1:_0x8fd889>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1faf=['ck-revision-history-sidebar__revision__actions','isReady','items','action','bind','Restore\x20this\x20revision','isActionsDropdownOpen','execute','class','Name\x20this\x20revision','locale','Compare\x20against\x20selected','name','function','Show\x20more\x20items','find','isVisible','model','bindTemplate','isEnabled','add','listenTo','set','first','buttonView','ck-on','panelPosition','source','_action'];(function(_0x388986,_0x1faf45){const _0x45eea7=function(_0x374d84){while(--_0x374d84){_0x388986['push'](_0x388986['shift']());}};_0x45eea7(++_0x1faf45);}(_0x1faf,0x151));const _0x45ee=function(_0x388986,_0x1faf45){_0x388986=_0x388986-0x0;let _0x45eea7=_0x1faf[_0x388986];return _0x45eea7;};import{Collection as _0x35db77}from'ckeditor5/src/utils';import{icons as _0x4718ba}from'ckeditor5/src/core';import{Model as _0x5a3670,addListToDropdown as _0xefa23c,createDropdown as _0x2614a6}from'ckeditor5/src/ui';import{getTranslation as _0x283360}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x48b8da,_0x358733){const _0x55838b=_0x48b8da[_0x45ee('0x0')],_0x17da44=_0x48b8da[_0x45ee('0x15')],_0x179b3f=_0x2614a6(_0x17da44);_0x179b3f[_0x45ee('0x8')]='sw';const _0x3cf8cc=function(_0x37300f,_0x252f86){const _0x4624ea=function(_0x1599a6,_0x844257){const _0x143fb5=_0x1599a6['locale'],_0x48a088={'Compare\x20against\x20selected':_0x283360(_0x143fb5,_0x45ee('0x16')),'Name\x20this\x20revision':_0x283360(_0x143fb5,_0x45ee('0x14')),'Restore\x20this\x20revision':_0x283360(_0x143fb5,_0x45ee('0x10'))};return _0x844257['map'](_0x59b7c1=>{const _0x2a1a0f=_0x48a088[_0x59b7c1[_0x45ee('0x17')]];return _0x2a1a0f&&_0x2a1a0f!==_0x59b7c1[_0x45ee('0x17')]&&(_0x59b7c1['name']=_0x2a1a0f),_0x59b7c1;});}(_0x37300f,_0x252f86),_0x2992f3=new _0x35db77();for(const _0x35c112 of _0x4624ea){const _0x2ebabc={'type':'button','model':new _0x5a3670({'label':_0x35c112['name'],'class':_0x35c112[_0x45ee('0x13')],'withText':!0x0,'_action':_0x35c112[_0x45ee('0xe')]})};_0x2ebabc[_0x45ee('0x1c')]['bind'](_0x45ee('0x1'))['to'](_0x37300f,_0x45ee('0x11'),_0x51ecbd=>_0x45ee('0x18')!=typeof _0x35c112[_0x45ee('0x1')]||(!_0x51ecbd||_0x35c112[_0x45ee('0x1')](_0x37300f))),_0x2992f3[_0x45ee('0x2')](_0x2ebabc);}return _0x2992f3;}(_0x48b8da,_0x358733);return _0x48b8da[_0x45ee('0xf')](_0x45ee('0x11'))['to'](_0x179b3f,'isOpen'),_0x179b3f[_0x45ee('0x6')][_0x45ee('0x4')]({'label':_0x283360(_0x17da44,_0x45ee('0x19')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4718ba['threeVerticalDots']}),_0x179b3f['extendTemplate']({'attributes':{'class':[_0x45ee('0xb'),_0x55838b['if']('isActionsDropdownOpen',_0x45ee('0x7'))]},'on':{'click':_0x55838b['to'](_0x1e70d4=>_0x1e70d4['stopPropagation']())}}),_0x179b3f['on'](_0x45ee('0x12'),_0x1f2da5=>{_0x48b8da[_0x45ee('0xc')]&&_0x45ee('0x18')==typeof _0x1f2da5[_0x45ee('0x9')][_0x45ee('0xa')]&&_0x1f2da5[_0x45ee('0x9')][_0x45ee('0xa')](_0x48b8da);}),_0xefa23c(_0x179b3f,_0x3cf8cc),_0x179b3f[_0x45ee('0x3')](_0x48b8da,'change:isActionsDropdownOpen',(_0x50aaf4,_0x29494d,_0x43093a)=>{if(_0x43093a)for(const _0x4a81bf of _0x179b3f['listView'][_0x45ee('0xd')]){const _0x402333=_0x4a81bf['children'][_0x45ee('0x5')],_0x2fff3f=_0x358733[_0x45ee('0x1a')](_0x13e575=>_0x13e575[_0x45ee('0xe')]===_0x402333[_0x45ee('0xa')])[_0x45ee('0x1b')];_0x4a81bf['isVisible']=void 0x0===_0x2fff3f||_0x2fff3f(_0x48b8da);}}),_0x179b3f;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b79=['name','push','ck-revision-history-sidebar__revision-author__name','setTemplate','0\x200\x2011\x2010','Revision\x20author','ck-revision-history-sidebar__revision-author'];(function(_0x1f67de,_0x1b79b8){const _0x296fd7=function(_0x421bc5){while(--_0x421bc5){_0x1f67de['push'](_0x1f67de['shift']());}};_0x296fd7(++_0x1b79b8);}(_0x1b79,0xe8));const _0x296f=function(_0x1f67de,_0x1b79b8){_0x1f67de=_0x1f67de-0x0;let _0x296fd7=_0x1b79[_0x1f67de];return _0x296fd7;};import{View as _0x3e8e05,IconView as _0x1436f5}from'ckeditor5/src/ui';import{getTranslation as _0x131144}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4d3506 from'../../../theme/icons/user.svg';export default class ti extends _0x3e8e05{constructor(_0x4f06cd,_0x296321,_0x1f6188){super(_0x4f06cd);const _0x19983b=new _0x1436f5();_0x19983b['set']({'content':_0x4d3506,'viewBox':_0x296f('0x3')});const _0x212541=['ck',_0x296f('0x5')];_0x1f6188&&_0x212541[_0x296f('0x0')]('ck-revision-history-sidebar__revision-author_creator');const _0x199df5=[{'tag':'span','attributes':{'class':['ck',_0x296f('0x1')],'title':_0x131144(_0x4f06cd,_0x1f6188?'Revision\x20creator':_0x296f('0x4'))},'children':[_0x19983b,_0x296321[_0x296f('0x6')]]}];this[_0x296f('0x2')]({'tag':'li','attributes':{'class':_0x212541},'children':_0x199df5});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x31d6=['extendTemplate','Revision\x20name','set','ck-revision-history-sidebar__revision-name'];(function(_0x3599a0,_0x31d653){var _0x4a1cac=function(_0x5508fe){while(--_0x5508fe){_0x3599a0['push'](_0x3599a0['shift']());}};_0x4a1cac(++_0x31d653);}(_0x31d6,0x145));var _0x4a1c=function(_0x3599a0,_0x31d653){_0x3599a0=_0x3599a0-0x0;var _0x4a1cac=_0x31d6[_0x3599a0];return _0x4a1cac;};import{LabeledFieldView as _0x10156b}from'ckeditor5/src/ui';import{getTranslation as _0x362fc6}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x10156b{constructor(_0xfb0f34,_0x4c1f45){super(_0xfb0f34,_0x4c1f45),this[_0x4a1c('0x1')]({'label':_0x362fc6(_0xfb0f34,_0x4a1c('0x0'))}),this[_0x4a1c('0x3')]({'tag':'span','attributes':{'class':[_0x4a1c('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22b5=['value','_createdAtFormatted','isHighlighted','revisionActionsView','change','ck-revision-history-sidebar__revision-authors','fire','ck-revision-history-sidebar__revision_highlighted','bind','isConfirm','filter','unhighlight','extendTemplate','ck-revision-history-sidebar__revision_selected','unshift','highlight','isSelected','revisionNameView','isEnabled','uiLanguage','name','createdAt','closest','ck-revision-history-sidebar__revision__date','ck-disabled','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision','.ck-thread__remove-confirm','placeholder','creator','render','set','isActionsDropdownOpen','span','fieldView','from','ck-revision-history-sidebar__revision-wrapper','select','setName','isReady','ck-reset','_revision','element','220','map'];(function(_0x19a1bd,_0x22b5fb){const _0x14ae78=function(_0x59473b){while(--_0x59473b){_0x19a1bd['push'](_0x19a1bd['shift']());}};_0x14ae78(++_0x22b5fb);}(_0x22b5,0xcf));const _0x14ae=function(_0x19a1bd,_0x22b5fb){_0x19a1bd=_0x19a1bd-0x0;let _0x14ae78=_0x22b5[_0x19a1bd];return _0x14ae78;};import{View as _0xf6f239,createLabeledInputText as _0x41ffde}from'ckeditor5/src/ui';import{ConfirmMixin as _0x138d24}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f6027 from'./revisionnameview';import _0x68b8c6 from'./revisionauthorview';import{dateToPrettyFormat as _0x2b440b}from'./utils';import{createActionsDropdownView as _0x40fa19}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x138d24(_0xf6f239){constructor(_0x2f06d,_0x30ccb8,_0x56e36a){super(_0x2f06d);const _0x5b6bc7=this['bindTemplate'],_0x2f69a9=function(_0x1862c4,_0x551c97){const _0x118230=Array[_0x14ae('0x8')](_0x551c97['authors'])[_0x14ae('0x1c')](_0x323ed2=>_0x323ed2!=_0x551c97[_0x14ae('0x2')]);return _0x551c97[_0x14ae('0x2')]&&_0x118230[_0x14ae('0x20')](_0x551c97[_0x14ae('0x2')]),_0x118230[_0x14ae('0x11')](_0x3b41f1=>new _0x68b8c6(_0x1862c4,_0x3b41f1,_0x3b41f1==_0x551c97[_0x14ae('0x2')]));}(_0x2f06d,_0x30ccb8);this['id']=_0x30ccb8['id'],this[_0x14ae('0xe')]=_0x30ccb8,this['bind'](_0x14ae('0x26'),_0x14ae('0x27'))['to'](_0x30ccb8),this[_0x14ae('0x1a')](_0x14ae('0x13'))['to'](this,'createdAt',_0x58e5fa=>_0x58e5fa?_0x2b440b(_0x2f06d[_0x14ae('0x25')],_0x58e5fa):void 0x0),this[_0x14ae('0x4')](_0x14ae('0x22'),!0x1),this[_0x14ae('0x4')](_0x14ae('0x14'),!0x1),this['set'](_0x14ae('0x5'),!0x1),this[_0x14ae('0x4')](_0x14ae('0xc'),!0x1),this[_0x14ae('0x4')]('isEnabled',!0x1),this[_0x14ae('0x23')]=new _0x2f6027(_0x2f06d,_0x41ffde),this['revisionNameView']['fieldView'][_0x14ae('0x1e')]({'attributes':{'maxlength':_0x14ae('0x10')}}),this[_0x14ae('0x23')][_0x14ae('0x7')][_0x14ae('0x1a')](_0x14ae('0x12'),_0x14ae('0x1'))['to'](this,'name',_0x14ae('0x13')),this[_0x14ae('0x23')][_0x14ae('0x1a')]('isEnabled')['to'](this,'isSelected',this,_0x14ae('0x24'),(_0x895ca0,_0xac1f6c)=>_0x895ca0&&_0xac1f6c),this['revisionActionsView']=_0x56e36a&&_0x56e36a['length']?_0x40fa19(this,_0x56e36a):'',this['revisionActionsView']&&this[_0x14ae('0x15')][_0x14ae('0x1a')](_0x14ae('0x24'))['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x14ae('0xd'),_0x14ae('0x9'),_0x5b6bc7['if'](_0x14ae('0x1b'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x14ae('0xd'),_0x14ae('0x2c'),_0x5b6bc7['if'](_0x14ae('0x24'),_0x14ae('0x2a'),_0x2a8da1=>!_0x2a8da1),_0x5b6bc7['if'](_0x14ae('0x22'),_0x14ae('0x1f')),_0x5b6bc7['if'](_0x14ae('0x14'),_0x14ae('0x19')),_0x5b6bc7['if']('isActionsDropdownOpen',_0x14ae('0x2b'))]},'children':[this[_0x14ae('0x23')],{'tag':_0x14ae('0x6'),'attributes':{'class':['ck',_0x14ae('0x29')]},'children':[{'text':_0x5b6bc7['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x14ae('0x17')]},'children':_0x2f69a9}]},this[_0x14ae('0x15')]],'on':{'click':_0x5b6bc7['to'](_0x7706f3=>{_0x7706f3['srcElement'][_0x14ae('0x28')](_0x14ae('0x0'))||this[_0x14ae('0xc')]&&this['isEnabled']&&this[_0x14ae('0x18')](_0x14ae('0xa'),{'id':this['id']});})}}]});}[_0x14ae('0x3')](){super[_0x14ae('0x3')]();const _0xa57481=this[_0x14ae('0x23')]['fieldView'][_0x14ae('0xf')];this['listenTo'](_0xa57481,_0x14ae('0x16'),()=>{this['fire'](_0x14ae('0xb'),{'id':this['id'],'name':_0xa57481[_0x14ae('0x12')]});});}['select'](){this[_0x14ae('0x22')]=!0x0;}['deselect'](){this['isSelected']=!0x1;}[_0x14ae('0x21')](){this[_0x14ae('0x14')]=!0x0;}[_0x14ae('0x1d')](){this[_0x14ae('0x14')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c06=['true','toggle','isVisible','ck-revision-history-sidebar__subrevision-collapser','click','ck-revision-history-sidebar__subrevision-collapser__inner','span','button','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','_isCollapsed','false','set','ck-hidden'];(function(_0x50a93e,_0x1c06ba){const _0x4af8c2=function(_0x347ef3){while(--_0x347ef3){_0x50a93e['push'](_0x50a93e['shift']());}};_0x4af8c2(++_0x1c06ba);}(_0x1c06,0x1b7));const _0x4af8=function(_0x50a93e,_0x1c06ba){_0x50a93e=_0x50a93e-0x0;let _0x4af8c2=_0x1c06[_0x50a93e];return _0x4af8c2;};import{View as _0x3294fc}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x3294fc{constructor(_0x28e6bb){super(_0x28e6bb);const _0x487a70=this['bindTemplate'];this[_0x4af8('0x7')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x4af8('0x4')]({'tag':_0x4af8('0x1'),'attributes':{'class':['ck',_0x4af8('0xc'),_0x487a70['if'](_0x4af8('0xb'),_0x4af8('0x8'),_0x435930=>!_0x435930),_0x487a70['if']('_isCollapsed',_0x4af8('0x3'))],'role':_0x4af8('0x2'),'aria-pressed':_0x487a70['to'](_0x4af8('0x5'),_0x457aa3=>_0x457aa3?_0x4af8('0x6'):_0x4af8('0x9'))},'children':[{'tag':_0x4af8('0x1'),'attributes':{'class':['ck',_0x4af8('0x0')]}}],'on':{'click':_0x487a70['to'](_0x4af8('0xd'))}});}[_0x4af8('0xa')](){this[_0x4af8('0x5')]=!this[_0x4af8('0x5')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bff=['isSelected','ck-revision-history-sidebar__revision','bind','setTemplate','ck-revision-history-sidebar__revision-authors','ck-reset','select','_parentRevisionId','span','createdAt','deselect','fire','div','_createdAtFormatted','set','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision_selected','creator'];(function(_0x5235a6,_0x1bfff4){const _0xd7b350=function(_0x30a871){while(--_0x30a871){_0x5235a6['push'](_0x5235a6['shift']());}};_0xd7b350(++_0x1bfff4);}(_0x1bff,0x1bd));const _0xd7b3=function(_0x5235a6,_0x1bfff4){_0x5235a6=_0x5235a6-0x0;let _0xd7b350=_0x1bff[_0x5235a6];return _0xd7b350;};import{View as _0x52ec24}from'ckeditor5/src/ui';import _0x4f0853 from'./revisionauthorview';import{dateToPrettyFormat as _0x30dadf}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x52ec24{constructor(_0x5d2718,_0x3a4572,_0x2e7e0f){super(_0x5d2718);const _0x5d0d8b=this['bindTemplate'];this['id']=_0x3a4572['id'],this['bind'](_0xd7b3('0x1'))['to'](_0x3a4572),this[_0xd7b3('0x6')](_0xd7b3('0xb'),!0x1),this[_0xd7b3('0xd')](_0xd7b3('0x5'))['to'](this,_0xd7b3('0x1'),_0x3136e0=>_0x3136e0?_0x30dadf(_0x5d2718['uiLanguage'],_0x3136e0):void 0x0),this[_0xd7b3('0x12')]=_0x2e7e0f,this[_0xd7b3('0xe')]({'tag':_0xd7b3('0x4'),'attributes':{'class':['ck',_0xd7b3('0x10'),_0xd7b3('0xc'),_0xd7b3('0x7'),_0x5d0d8b['if'](_0xd7b3('0xb'),_0xd7b3('0x9'))]},'children':[{'tag':_0xd7b3('0x0'),'attributes':{'class':['ck',_0xd7b3('0x8')]},'children':[{'text':_0x5d0d8b['to'](_0xd7b3('0x5'))}]},{'tag':'ul','attributes':{'class':['ck',_0xd7b3('0xf')]},'children':[new _0x4f0853(_0x5d2718,_0x3a4572[_0xd7b3('0xa')],!0x0)]}],'on':{'click':_0x5d0d8b['to'](this[_0xd7b3('0x11')][_0xd7b3('0xd')](this))}});}[_0xd7b3('0x11')](){this[_0xd7b3('0xb')]=!0x0,this[_0xd7b3('0x3')]('select',{'parentId':this[_0xd7b3('0x12')]});}[_0xd7b3('0x2')](){this[_0xd7b3('0xb')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4814=['numeric','toLocaleTimeString'];(function(_0x550119,_0x4814fd){var _0x2e748a=function(_0x541080){while(--_0x541080){_0x550119['push'](_0x550119['shift']());}};_0x2e748a(++_0x4814fd);}(_0x4814,0x1c9));var _0x2e74=function(_0x550119,_0x4814fd){_0x550119=_0x550119-0x0;var _0x2e748a=_0x4814[_0x550119];return _0x2e748a;};export function dateToPrettyFormat(_0x592ddf,_0x709765){return _0x709765['toLocaleDateString'](_0x592ddf,{'month':'long','day':'numeric'})+',\x20'+_0x709765[_0x2e74('0x0')](_0x592ddf,{'hour':_0x2e74('0x1'),'minute':_0x2e74('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1117=['stopPropagation','keystrokes','set','arrowright','_createRevisionNameInput','check','revisionName','execute','_focusCycler','Name\x20of\x20the\x20revision\x20(optional)','submit','render','form','forEach','extendTemplate','focus','ck-button-cancel','Save','element','saveButtonView','focusTracker','arrowdown','shift\x20+\x20tab','label','delegate','cancelButtonView','tab','_focusables','trim','fieldView','focusFirst','cancel','type','add','ck-revision-history-save-revision-form','revisionNameInputValue','reset','arrowup','listenTo','locale','value','_createButton','arrowleft','220','ck-button-save','revisionNameInputView'];(function(_0x59207c,_0x11174a){const _0x32a79=function(_0x578a3c){while(--_0x578a3c){_0x59207c['push'](_0x59207c['shift']());}};_0x32a79(++_0x11174a);}(_0x1117,0x1da));const _0x32a7=function(_0x59207c,_0x11174a){_0x59207c=_0x59207c-0x0;let _0x32a79=_0x1117[_0x59207c];return _0x32a79;};import{icons as _0x1aad37}from'ckeditor5/src/core';import{ButtonView as _0x12feab,FocusCycler as _0x3b2202,LabeledFieldView as _0x42a9dd,View as _0x5ddc28,ViewCollection as _0x39ff66,createLabeledInputText as _0x5eb796,injectCssTransitionDisabler as _0x1772dd,submitHandler as _0x851340}from'ckeditor5/src/ui';import{FocusTracker as _0x236085,KeystrokeHandler as _0xb50ddc}from'ckeditor5/src/utils';import{getTranslation as _0x2f230c}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x5ddc28{constructor(_0x46e45f){super(_0x46e45f),this[_0x32a7('0x6')]=new _0x236085(),this[_0x32a7('0x21')]=new _0xb50ddc(),this[_0x32a7('0x22')]('revisionNameInputValue',''),this[_0x32a7('0x1f')]=this[_0x32a7('0x24')](),this[_0x32a7('0x5')]=this[_0x32a7('0x1b')](_0x2f230c(_0x46e45f,_0x32a7('0x3')),_0x1aad37[_0x32a7('0x25')],_0x32a7('0x1e')),this[_0x32a7('0x5')][_0x32a7('0x12')]=_0x32a7('0x2a'),this[_0x32a7('0xb')]=this[_0x32a7('0x1b')](_0x2f230c(_0x46e45f,'Cancel'),_0x1aad37[_0x32a7('0x11')],_0x32a7('0x2'),_0x32a7('0x11')),this['_focusables']=new _0x39ff66(),this[_0x32a7('0x28')]=new _0x3b2202({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x32a7('0x21')],'actions':{'focusPrevious':_0x32a7('0x8'),'focusNext':_0x32a7('0xc')}}),this['setTemplate']({'tag':_0x32a7('0x2c'),'attributes':{'class':['ck',_0x32a7('0x14'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x32a7('0x1f')],this[_0x32a7('0x5')],this[_0x32a7('0xb')]]}),_0x1772dd(this);}['render'](){super[_0x32a7('0x2b')](),_0x851340({'view':this}),([this[_0x32a7('0x1f')],this[_0x32a7('0x5')],this[_0x32a7('0xb')]][_0x32a7('0x2d')](_0x3f2034=>{this[_0x32a7('0xd')][_0x32a7('0x13')](_0x3f2034),this[_0x32a7('0x6')][_0x32a7('0x13')](_0x3f2034[_0x32a7('0x4')]);}),this[_0x32a7('0x21')][_0x32a7('0x18')](this[_0x32a7('0x4')]));const _0x1971dc=_0xc0c644=>_0xc0c644[_0x32a7('0x20')]();this[_0x32a7('0x21')][_0x32a7('0x22')](_0x32a7('0x23'),_0x1971dc),this['keystrokes']['set'](_0x32a7('0x1c'),_0x1971dc),this[_0x32a7('0x21')][_0x32a7('0x22')](_0x32a7('0x17'),_0x1971dc),this['keystrokes']['set'](_0x32a7('0x7'),_0x1971dc);}[_0x32a7('0x1')](){this[_0x32a7('0x28')][_0x32a7('0x10')]();}get[_0x32a7('0x26')](){return this[_0x32a7('0x1f')][_0x32a7('0xf')]['element'][_0x32a7('0x1a')][_0x32a7('0xe')]();}set[_0x32a7('0x26')](_0x9b18ef){this[_0x32a7('0x1f')]['fieldView'][_0x32a7('0x4')][_0x32a7('0x1a')]=_0x9b18ef[_0x32a7('0xe')]();}[_0x32a7('0x16')](){this[_0x32a7('0x1f')]['fieldView'][_0x32a7('0x4')][_0x32a7('0x1a')]='';}[_0x32a7('0x24')](){const _0x406e3d=new _0x42a9dd(this['locale'],_0x5eb796),_0x4beb1c=_0x406e3d[_0x32a7('0xf')];return _0x4beb1c[_0x32a7('0x0')]({'attributes':{'maxlength':_0x32a7('0x1d')}}),_0x406e3d[_0x32a7('0x9')]=_0x2f230c(this[_0x32a7('0x19')],_0x32a7('0x29')),_0x4beb1c['on']('input',()=>{this[_0x32a7('0x15')]=_0x4beb1c[_0x32a7('0x4')][_0x32a7('0x1a')][_0x32a7('0xe')]();}),_0x406e3d;}['_createButton'](_0x91fb56,_0x446392,_0x10831c,_0x49e5dd){const _0x30f630=new _0x12feab(this[_0x32a7('0x19')]);return _0x30f630[_0x32a7('0x22')]({'label':_0x91fb56,'icon':_0x446392,'tooltip':!0x0}),_0x30f630[_0x32a7('0x0')]({'attributes':{'class':_0x10831c}}),_0x49e5dd&&_0x30f630[_0x32a7('0xa')](_0x32a7('0x27'))['to'](this,_0x49e5dd),_0x30f630;}}
|