@ckeditor/ckeditor5-revision-history 29.1.0 → 31.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/lang/translations/da.po +1 -1
- package/lang/translations/es.po +7 -7
- package/lang/translations/id.po +13 -13
- package/lang/translations/nl.po +22 -22
- package/lang/translations/pl.po +27 -27
- package/lang/translations/pt-br.po +24 -24
- package/lang/translations/sr-latn.po +22 -22
- package/lang/translations/sr.po +22 -22
- package/lang/translations/tr.po +19 -19
- package/package.json +11 -11
- package/src/changeitem.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/theme/revision/revisionauthor.css +2 -6
- package/theme/revisionviewer.css +4 -6
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import _0x529b2f from'@ckeditor/ckeditor5-collaboration-core/src/users';import _0x5a4f8f from'@ckeditor/ckeditor5-core/src/plugin';import _0xa93c99 from'@ckeditor/ckeditor5-core/src/pendingactions';import _0xf29f2c from'@ckeditor/ckeditor5-engine/src/model/position';import _0x232e97 from'@ckeditor/ckeditor5-engine/src/model/range';import _0x2f294d from'@ckeditor/ckeditor5-engine/src/model/documentfragment';import{_insert as _0x9d903e,_setAttribute as _0x1a2640}from'@ckeditor/ckeditor5-engine/src/model/operation/utils';import _0x3ff244 from'./revisionsrepository';export default class v extends _0x5a4f8f{static get['pluginName'](){return'RevisionTracker';}static get['requires'](){return[_0x529b2f,_0x3ff244,_0xa93c99];}constructor(..._0x3668a5){super(..._0x3668a5),this['adapter']=null,this['isDirty']=!0x1,this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['_diffRoots']=new Map(),this['_baseRoots']=new Map(),this['_touched']=new Map(),this['_revisionId']=0x0;}get['isLocked'](){const _0x4959bb=this['repository']['getRevision'](0x0);return!_0x4959bb||_0x4959bb['isLocked'];}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x22d731=this['repository']['getRevision'](0x0);this['_startTracking'](),_0x22d731?_0x22d731['isLocked']||_0x22d731['lock']():this['_saveInitialRevision']();});const _0x46fac4=this['editor']['plugins']['get']('PendingActions');this['bind']('isReady')['to'](_0x46fac4,'hasAny',_0x5d9c75=>!_0x5d9c75);}['afterInit'](){if(this['user']=this['editor']['plugins']['get']('Users')['me'],this['adapter']){const _0x186801=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevisions']({'channelId':_0x186801})['then'](_0x4e87ca=>{for(const _0x70dadd of _0x4e87ca){const _0x52e9ee=this['repository']['createRevision'](_0x70dadd);_0x52e9ee['on']('_update',(_0x16bb95,_0x5e953c)=>{this['adapterUpdate'](_0x5e953c);}),this['repository']['addRevision'](_0x52e9ee);}const _0x15e133=this['repository']['getRevision'](0x0);if(_0x15e133&&!_0x15e133['data'])return this['adapter']['getRevision']({'revisionId':_0x15e133['id']})['then'](_0xeed0af=>{_0x15e133['data']=_0xeed0af['data'];});});}}['adapterUpdate'](_0x13e477){const _0x5a8df0=this['editor']['plugins']['get']('PendingActions'),_0x2297e8=_0x5a8df0['add']('Revision\x20not\x20updated.');return this['adapter']['updateRevision'](_0x13e477)['then'](()=>{_0x5a8df0['remove'](_0x2297e8);});}['updateRevision']({name:_0x5e3754=null,isLocked:_0x18479a=!0x1}={}){let _0x54543e;return _0x18479a=!!_0x5e3754||_0x18479a,_0x54543e=this['isLocked']?this['_newRevision']({'name':_0x5e3754,'isLocked':_0x18479a}):this['_updateRevision']({'name':_0x5e3754,'isLocked':_0x18479a}),this['isDirty']=!0x1,_0x54543e;}['_newRevision']({name:_0x4eb6aa=null,isLocked:_0x432d0f=!0x1}={}){const _0x2d0086=this['_getCurrentRevisionData']();_0x2d0086['name']=_0x4eb6aa,_0x2d0086['isLocked']=_0x432d0f;const _0x177551=this['repository']['createRevision'](_0x2d0086);if(_0x432d0f?this['_reset']():_0x177551['on']('_update',(_0x1e5a4b,_0x2a45f6)=>{_0x2a45f6['isLocked']&&this['_reset']();}),this['adapter']){const _0x50410c=this['editor']['config']['get']('collaboration.channelId');let _0x136b1a=null;const _0x1a3263=(_0x23fd9f,_0x34747c)=>{_0x136b1a=_0x136b1a?{..._0x136b1a,..._0x34747c}:_0x34747c;};_0x177551['on']('_update',_0x1a3263);const _0x2bde41=this['editor']['plugins']['get']('PendingActions'),_0x2885e0=_0x2bde41['add']('Revision\x20not\x20saved.');this['adapter']['addRevision']({'channelId':_0x50410c,..._0x177551['toJSON']()})['then'](()=>{_0x2bde41['remove'](_0x2885e0),_0x177551['off'](_0x1a3263),_0x136b1a&&this['adapterUpdate'](_0x136b1a),_0x177551['on']('_update',(_0x363418,_0x25b62d)=>{this['adapterUpdate'](_0x25b62d);});});}return this['repository']['addRevision'](_0x177551),_0x177551;}['_updateRevision']({name:_0x3cc58f=null,isLocked:_0x17d60a=!0x1}={}){const _0x49f1a2=this['repository']['getRevision'](0x0),_0x487264={'name':_0x3cc58f,'isLocked':_0x17d60a};if(this['isDirty']){const _0x46e3b0=this['_getCurrentRevisionData']();_0x487264['data']=_0x46e3b0['data'],_0x487264['createdAt']=_0x46e3b0['createdAt'];}return _0x49f1a2['_update'](_0x487264),_0x49f1a2;}['_startTracking'](){const _0x5bf466=this['editor']['model']['document'],_0x32b793=_0x5bf466['getRootNames']();_0x32b793['push']('$graveyard');for(const _0x990263 of _0x32b793){const _0x43b8ab=_0x5bf466['getRoot'](_0x990263),_0xfcb06=M(_0x43b8ab);this['_diffRoots']['set'](_0x990263,_0xfcb06);for(const _0x1a86de of this['editor']['model']['createRangeIn'](_0xfcb06)['getWalker']({'singleCharacters':!0x0})){const _0x5bd08f=this['_getVidAttributeName'](_0x1a86de),_0x99e9ca=_0x1a86de['item'],_0x3ebf8c=this['_revisionId']++;_0x1a2640(this['editor']['model']['createRangeOn'](_0x99e9ca),_0x5bd08f,_0x3ebf8c);}if('$graveyard'!=_0x990263){const _0x5eb857=M(_0xfcb06);this['_copyMarkers'](_0x5eb857,_0x43b8ab),this['_baseRoots']['set'](_0x990263,_0x5eb857);}}this['_startingRevisionId']=this['_revisionId'],this['editor']['model']['on']('applyOperation',(_0x39d77b,_0x22e04e)=>{const _0x9daaeb=_0x22e04e[0x0];_0x9daaeb['isDocumentOperation']&&(this['isDirty']=!0x0,this['_handleOperation'](_0x9daaeb));},{'priority':'low'}),this['_handleTableStructureChange']();}['_handleTableStructureChange'](){this['_allTablesWithStructureChange']=new Set(),this['editor']['plugins']['has']('TableEditing')&&this['editor']['model']['document']['registerPostFixer'](_0x5c3ab5=>{if('transparent'==_0x5c3ab5['batch']['type'])return!0x1;for(const _0x1636a6 of this['editor']['model']['document']['differ']['getChanges']())if('tableCell'==_0x1636a6['name']||'tableRow'==_0x1636a6['name']){const _0x3c7bb8='tableCell'==_0x1636a6['name']?_0x1636a6['position']['parent']['parent']:_0x1636a6['position']['parent'];_0x5c3ab5['setAttribute']('revisionHistoryTableStructureChange',this['user']['id'],_0x3c7bb8),this['_allTablesWithStructureChange']['add'](_0x3c7bb8);}});}['_copyMarkers'](_0x39697b,_0x282c65){const _0x1f782b=this['editor']['model'];let _0x2633c5;_0x2633c5=_0x282c65['is']('documentFragment')?Array['from'](_0x282c65['markers']):Array['from'](_0x1f782b['markers'])['filter'](_0x8d048a=>_0x8d048a['getStart']()['root']==_0x282c65)['map'](_0x502ce5=>[_0x502ce5['name'],_0x502ce5['getRange']()]),_0x39697b['markers']=new Map(_0x2633c5['map'](([_0x249f70,_0x1701d7])=>[_0x249f70,this['_fixRange'](_0x1701d7,_0x39697b)]));}['_handleOperation'](_0x48d998){const _0x72bd50=_0x48d998['clone']();switch(this['_fixOperation'](_0x72bd50),_0x72bd50['type']){case'insert':this['_handleInsertOperation'](_0x72bd50);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x72bd50);break;case'merge':this['_handleMergeOperation'](_0x72bd50);break;case'split':this['_handleSplitOperation'](_0x72bd50);break;case'addAttribute':case'changeAttribute':case'removeAttribute':case'rename':_0x72bd50['_execute']();}}['_reset'](){this['_unmarkTables'](),this['_touched']['clear'](),this['_baseRoots']['clear']();for(const [_0xb732fc,_0x281535]of this['_diffRoots']){if('$graveyard'==_0xb732fc)continue;const _0x2d11d9=this['editor']['model']['document']['getRoot'](_0xb732fc),_0x5efac1=M(_0x281535);this['_copyMarkers'](_0x5efac1,_0x2d11d9),this['_baseRoots']['set'](_0xb732fc,_0x5efac1);}this['_startingRevisionId']=this['_revisionId'],this['_fixGraveyardVids'](this['_diffRoots']['get']('$graveyard'));}['_unmarkTables'](){this['editor']['model']['enqueueChange']('transparent',_0x3938b2=>{for(const _0x3d3df1 of this['_allTablesWithStructureChange'])_0x3938b2['removeAttribute']('revisionHistoryTableStructureChange',_0x3d3df1);});}['_getBaseVids'](_0x45e98f){return _0x45e98f['map'](_0x17f827=>{const _0x14075a=this['_getVidAttributeName'](_0x17f827);return Number(_0x17f827['item']['getAttribute'](_0x14075a));});}['_generateTape'](_0x55a807,_0x174c04){if(_0x55a807['is']('text'))_0x174c04['push']({'item':_0x55a807,'type':'text'});else{_0x55a807['is']('element')&&_0x174c04['push']({'item':_0x55a807,'type':'elementStart'});for(const _0x5345f2 of _0x55a807['getChildren']())this['_generateTape'](_0x5345f2,_0x174c04);_0x55a807['is']('element')&&_0x174c04['push']({'item':_0x55a807,'type':'elementEnd'});}return _0x174c04;}['_getState'](){const _0x928001=this['editor']['model'],_0x33b453=new Map(this['_touched']),_0x2b3d4d=new Map(_0x33b453),_0x33b437=new Map(),_0x21eadf={'insertions':{},'deletions':{}},_0x2e9e4c={'insertions':{},'deletions':{}},_0x14814f=new Map();for(const _0x107cf5 of _0x928001['document']['getRootNames']()){const _0x23bf42=this['_diffRoots']['get'](_0x107cf5),_0x42018f=this['_baseRoots']['get'](_0x107cf5);_0x21eadf['insertions'][_0x107cf5]=M(_0x23bf42),_0x21eadf['deletions'][_0x107cf5]=M(_0x42018f),this['_copyMarkers'](_0x21eadf['deletions'][_0x107cf5],_0x42018f),_0x2e9e4c['insertions'][_0x107cf5]=this['_generateTape'](_0x21eadf['insertions'][_0x107cf5],[]),_0x2e9e4c['deletions'][_0x107cf5]=this['_generateTape'](_0x21eadf['deletions'][_0x107cf5],[]);}for(const _0x575002 of _0x928001['document']['getRootNames']()){const _0x3e7e5a=_0x2e9e4c['insertions'][_0x575002];let _0x1501fa=null;for(const _0x1b00cf of _0x3e7e5a){const _0x454329=_0x1b00cf['item']['getAttribute']('revisionHistoryTableStructureChange');if(_0x454329&&'elementStart'==_0x1b00cf['type']&&(_0x1501fa=_0x454329),_0x1501fa){const _0x214ff6=this['_getVidAttributeName'](_0x1b00cf),_0x5727ac=_0x1b00cf['item']['getAttribute'](_0x214ff6),_0x48f5a7=this['_revisionId']++;_0x2b3d4d['set'](_0x5727ac,{'userId':_0x1501fa}),_0x33b437['set'](_0x48f5a7,{'userId':_0x1501fa}),_0x1a2640(_0x928001['createRangeOn'](_0x1b00cf['item']),_0x214ff6,_0x48f5a7);}_0x454329&&'elementEnd'==_0x1b00cf['type']&&(_0x1501fa=null);}}for(const _0x5420e3 of _0x928001['document']['getRootNames']()){const _0x299077=_0x2e9e4c['insertions'][_0x5420e3];for(const _0x459073 of _0x299077){const _0x370c85=this['_getVidAttributeName'](_0x459073),_0x1d286f=_0x459073['item']['getAttribute'](_0x370c85);_0x2b3d4d['delete'](_0x1d286f),_0x1d286f>=this['_startingRevisionId']&&!_0x33b437['has'](_0x1d286f)&&_0x33b437['set'](_0x1d286f,_0x33b453['get'](_0x1d286f));}}for(const _0x325d53 of _0x928001['document']['getRootNames']()){const _0x514ae8=_0x2e9e4c['insertions'][_0x325d53],_0x112901=this['_getBaseVids'](_0x2e9e4c['deletions'][_0x325d53]);let _0x1605e1=0x0;for(const _0x10f4bc of _0x514ae8){const _0x3f9fde=this['_getVidAttributeName'](_0x10f4bc),_0x470bfa=_0x10f4bc['item']['getAttribute'](_0x3f9fde);if(!_0x33b437['has'](_0x470bfa)&&!_0x14814f['has'](_0x470bfa)){if(_0x2b3d4d['has'](_0x470bfa))_0x1605e1++;else{if(_0x470bfa!=_0x112901[_0x1605e1]){const _0x3d4311=_0x33b453['get'](_0x470bfa)||_0x33b453['get'](_0x112901[_0x1605e1]);for(;_0x470bfa!=_0x112901[_0x1605e1];)_0x2b3d4d['has'](_0x112901[_0x1605e1])||(_0x14814f['set'](_0x112901[_0x1605e1],_0x3d4311),_0x33b453['set'](_0x112901[_0x1605e1],_0x3d4311)),_0x1605e1++;}_0x1605e1++;}}}}for(const _0x434ac7 of _0x928001['document']['getRootNames']()){const _0x1c5c84=_0x2e9e4c['insertions'][_0x434ac7];for(const _0x356f3b of _0x1c5c84){const _0x3dffc3=this['_getVidAttributeName'](_0x356f3b),_0x115cda=_0x356f3b['item']['getAttribute'](_0x3dffc3);if(_0x14814f['has'](_0x115cda)){const _0x5dbdee=_0x14814f['get'](_0x115cda);_0x2b3d4d['has'](_0x115cda)||_0x2b3d4d['set'](_0x115cda,{..._0x5dbdee});const _0x194d52=this['_revisionId']++;_0x1a2640(_0x928001['createRangeOn'](_0x356f3b['item']),_0x3dffc3,_0x194d52),_0x33b437['set'](_0x194d52,{..._0x5dbdee}),_0x33b453['set'](_0x194d52,{..._0x5dbdee});}}}for(const _0x519a84 of _0x2b3d4d['keys']())_0x519a84>=this['_startingRevisionId']&&_0x2b3d4d['delete'](_0x519a84);const _0x15f5d7={};for(const _0x202a05 of _0x928001['document']['getRootNames']()){const _0x3348ba=_0x21eadf['deletions'][_0x202a05],_0x3ba18c=_0x21eadf['insertions'][_0x202a05],_0x6cf5ba=this['editor']['model']['document']['getRoot'](_0x202a05);this['_copyMarkers'](_0x3ba18c,_0x6cf5ba),this['_markChanges'](_0x3ba18c,_0x2e9e4c['insertions'][_0x202a05],_0x33b437,'insertion'),this['_markChanges'](_0x3348ba,_0x2e9e4c['deletions'][_0x202a05],_0x2b3d4d,'deletion'),this['_removeVids'](_0x3ba18c),this['_removeVids'](_0x3348ba),_0x15f5d7[_0x202a05]={'insertions':this['_prepareViewToSave'](_0x3ba18c),'deletions':this['_prepareViewToSave'](_0x3348ba)};}return{'data':_0x15f5d7,'changes':[]};}['_processRootBeforeSave'](_0x4eeed4){for(const [_0xe3d1fb,_0x5e1ce5]of _0x4eeed4['markers']){if(!_0xe3d1fb['startsWith']('revision:'))continue;const _0x124c3c=_0x5e1ce5['start']['getAncestors']()['filter'](_0x2d67e1=>'tableCell'==_0x2d67e1['name']);for(const _0x504e97 of _0x124c3c)0x1==_0x504e97['childCount']&&_0x504e97['getChild'](0x0)['is']('element','paragraph')&&_0x504e97['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1fd798){this['_processRootBeforeSave'](_0x1fd798);const _0x192145=this['editor']['data']['toView'](_0x1fd798,{}),_0x2a44a7=Array['from'](_0x192145['getChildren']())['map'](_0x13fd61=>this['_getViewObj'](_0x13fd61));return JSON['stringify'](_0x2a44a7);}['_getViewObj'](_0x33f6f7){return _0x33f6f7['is']('text')?_0x33f6f7['data']:{'name':_0x33f6f7['name'],'attributes':Array['from'](_0x33f6f7['getAttributes']()),'children':Array['from'](_0x33f6f7['getChildren']())['map'](_0x390034=>this['_getViewObj'](_0x390034))};}['_removeVids'](_0x54677c){const _0x3199d2=_0x54677c['_removeChildren'](0x0,_0x54677c['childCount']);for(const _0xadb151 of _0x3199d2)_0xadb151['is']('text')?_0xadb151['_removeAttribute']('vid'):(_0xadb151['_removeAttribute']('vid_start'),_0xadb151['_removeAttribute']('vid_end'),this['_removeVids'](_0xadb151));_0x9d903e(this['editor']['model']['createPositionAt'](_0x54677c,0x0),_0x3199d2);}['_markChanges'](_0x11d4d2,_0x2e7c63,_0x14d878,_0x312e1d){let _0x448063=null,_0x15b4bc=null,_0x476b0c=0x0;const _0x607145=this['editor']['model'];for(let _0xa5ef51=0x0;_0xa5ef51<_0x2e7c63['length'];_0xa5ef51++){const _0x11de44=this['_getVidAttributeName'](_0x2e7c63[_0xa5ef51]),_0x255edc=_0x2e7c63[_0xa5ef51]['item']['getAttribute'](_0x11de44),_0x8c19ca=_0x14d878['get'](_0x255edc),_0x1e49f4=_0xa5ef51==_0x2e7c63['length']-0x1;if(!_0x448063&&_0x8c19ca&&(_0x448063=_0x8c19ca,_0x15b4bc=_0x2e7c63[_0xa5ef51]),_0x448063&&(!_0x8c19ca||_0x8c19ca['userId']!=_0x448063['userId']||_0x1e49f4)){const _0x17415f='revision:'+_0x312e1d+':'+_0x448063['userId']+':'+_0x476b0c++,_0x29436b=!_0x8c19ca||_0x8c19ca['userId']!=_0x448063['userId'],_0x56daef=T(_0x15b4bc,_0x607145),_0x42c00c=_0x29436b?T(_0x2e7c63[_0xa5ef51],_0x607145):O(_0x2e7c63[_0xa5ef51],_0x607145),_0x2bac2b=this['editor']['model']['createRange'](_0x56daef,_0x42c00c);_0x11d4d2['markers']['set'](_0x17415f,_0x2bac2b),_0x448063=_0x8c19ca||null,_0x15b4bc=_0x8c19ca?_0x2e7c63[_0xa5ef51]:null;}}}['_getVidAttributeName'](_0x5e7ce8){switch(_0x5e7ce8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixGraveyardVids'](_0xc36c7d){for(const _0x24cc86 of _0xc36c7d['getChildren']())_0x24cc86['is']('text')?_0x24cc86['_setAttribute']('vid',this['_revisionId']++):(_0x24cc86['_setAttribute']('vid_start',this['_revisionId']++),this['_fixGraveyardVids'](_0x24cc86),_0x24cc86['_setAttribute']('vid_end',this['_revisionId']++));}['_fixOperation'](_0x55ee36){_0x55ee36['baseRevision']=null;for(const _0x127ed9 in _0x55ee36){if(_0x55ee36[_0x127ed9]instanceof _0xf29f2c){const _0x2e4bb7=this['_diffRoots']['get'](_0x55ee36[_0x127ed9]['root']['rootName']);_0x55ee36[_0x127ed9]=this['_fixPosition'](_0x55ee36[_0x127ed9],_0x2e4bb7);}if(_0x55ee36[_0x127ed9]instanceof _0x232e97){const _0x28ea2f=this['_diffRoots']['get'](_0x55ee36[_0x127ed9]['root']['rootName']);_0x55ee36[_0x127ed9]=this['_fixRange'](_0x55ee36[_0x127ed9],_0x28ea2f);}}_0x55ee36['root']&&(_0x55ee36['root']=this['_diffRoots']['get'](_0x55ee36['root']['rootName']));}['_fixRange'](_0xe8845d,_0x31c999){return this['editor']['model']['createRange'](this['_fixPosition'](_0xe8845d['start'],_0x31c999),this['_fixPosition'](_0xe8845d['end'],_0x31c999));}['_fixPosition'](_0x3fbbd5,_0x1bf393){return this['editor']['model']['createPositionFromPath'](_0x1bf393,_0x3fbbd5['path'],_0x3fbbd5['stickiness']);}['_handleInsertOperation'](_0x36c99f){_0x36c99f['_execute']();const _0x59d2dc=this['editor']['model']['createRange'](_0x36c99f['position'],_0x36c99f['position']['getShiftedBy'](_0x36c99f['howMany']));for(const _0x378f7a of _0x59d2dc['getWalker']({'singleCharacters':!0x0})){const _0x23a930=this['_getVidAttributeName'](_0x378f7a),_0x552d95=this['_revisionId']++;_0x1a2640(this['editor']['model']['createRangeOn'](_0x378f7a['item']),_0x23a930,_0x552d95),this['_touched']['set'](_0x552d95,{'userId':this['user']['id']});}}['_handleMoveOperation'](_0x5e5ea8){_0x5e5ea8['_execute']();const _0x1a36d2=this['editor']['model'],_0x1ea026=_0x5e5ea8['getMovedRangeStart'](),_0xf18d19=_0x1a36d2['createRange'](_0x1ea026,_0x1ea026['getShiftedBy'](_0x5e5ea8['howMany']));for(const _0x499380 of _0xf18d19['getWalker']({'singleCharacters':!0x0})){const _0x315e31=this['_getVidAttributeName'](_0x499380),_0x424bb9=_0x499380['item']['getAttribute'](_0x315e31);this['_touched']['set'](_0x424bb9,{'userId':this['user']['id']});}}['_handleMergeOperation'](_0x321012){const _0x36d8aa=_0x321012['targetPosition']['parent'],_0x23b627=_0x321012['sourcePosition']['parent'],_0x81e58a=_0x36d8aa['getAttribute']('vid_end'),_0x3e4d8b=_0x23b627['getAttribute']('vid_start');_0x1a2640(this['editor']['model']['createRangeOn'](_0x36d8aa),'vid_end',_0x23b627['getAttribute']('vid_end')),_0x1a2640(this['editor']['model']['createRangeOn'](_0x23b627),'vid_end',_0x81e58a),this['_touched']['set'](_0x3e4d8b,{'userId':this['user']['id']}),this['_touched']['set'](_0x81e58a,{'userId':this['user']['id']}),_0x321012['_execute']();}['_handleSplitOperation'](_0xe701fa){const _0x31d056=_0xe701fa['graveyardPosition'],_0x52e892=_0xe701fa['splitPosition']['parent'];_0xe701fa['_execute']();const _0x52962c=_0x52e892['getAttribute']('vid_end'),_0x5ab6b4=_0xe701fa['insertionPosition']['nodeAfter'];if(_0x31d056){const _0x717ae2=_0x5ab6b4['getAttribute']('vid_end'),_0x262477=_0x52e892['getAttribute']('vid_end');_0x1a2640(this['editor']['model']['createRangeOn'](_0x52e892),'vid_end',_0x717ae2),_0x1a2640(this['editor']['model']['createRangeOn'](_0x5ab6b4),'vid_end',_0x262477),this['_touched']['set'](_0x52e892['getAttribute']('vid_end'),{'userId':this['user']['id']}),this['_touched']['set'](_0x5ab6b4['getAttribute']('vid_start'),{'userId':this['user']['id']});}else{const _0x2c16da=this['_revisionId']++,_0x128bd7=this['_revisionId']++;_0x1a2640(this['editor']['model']['createRangeOn'](_0x52e892),'vid_end',_0x2c16da),_0x1a2640(this['editor']['model']['createRangeOn'](_0x5ab6b4),'vid_start',_0x128bd7),_0x1a2640(this['editor']['model']['createRangeOn'](_0x5ab6b4),'vid_end',_0x52962c),this['_touched']['set'](_0x2c16da,{'userId':this['user']['id']}),this['_touched']['set'](_0x128bd7,{'userId':this['user']['id']});}}['_getCurrentRevisionData'](){const _0x3ca496=this['_getState']();return{'creatorId':this['user']['id'],'data':_0x3ca496['data'],'createdAt':new Date()};}['_saveInitialRevision'](){const t=this['editor']['t'],_0x4ff412={'name':t(!this['editor']['model']['document']['roots']['find'](_0x5500b6=>this['editor']['model']['hasContent'](_0x5500b6))?'Empty\x20document':'Initial\x20revision')};return this['updateRevision'](_0x4ff412);}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}function M(_0x59befe){const _0x446357=new _0x2f294d();for(const _0xc26f03 of _0x59befe['getChildren']()){const _0x2e5b05=_0xc26f03['_clone'](!0x0);_0x446357['_appendChild'](_0x2e5b05);}return _0x446357;}function T(_0x165463,_0x332023){return'elementEnd'==_0x165463['type']?_0x332023['createPositionAt'](_0x165463['item'],'end'):_0x332023['createPositionBefore'](_0x165463['item']);}function O(_0x3b020a,_0x5dffd8){return'elementStart'==_0x3b020a['type']?_0x5dffd8['createPositionAt'](_0x3b020a['item'],0x0):_0x5dffd8['createPositionAfter'](_0x3b020a['item']);}
|
|
23
|
+
import _0x37ad66 from'@ckeditor/ckeditor5-collaboration-core/src/users';import _0x2bf66f from'@ckeditor/ckeditor5-core/src/plugin';import _0x148ee6 from'@ckeditor/ckeditor5-core/src/pendingactions';import _0x4b6c21 from'@ckeditor/ckeditor5-engine/src/model/position';import _0x1ef8e1 from'@ckeditor/ckeditor5-engine/src/model/range';import _0x485c07 from'@ckeditor/ckeditor5-engine/src/model/documentfragment';import{_insert as _0x54212e,_setAttribute as _0x3ce42a}from'@ckeditor/ckeditor5-engine/src/model/operation/utils';import _0xef7f3e from'./revisionsrepository';export default class v extends _0x2bf66f{static get['pluginName'](){return'RevisionTracker';}static get['requires'](){return[_0x37ad66,_0xef7f3e,_0x148ee6];}constructor(..._0x288a13){super(..._0x288a13),this['adapter']=null,this['isDirty']=!0x1,this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['_diffRoots']=new Map(),this['_baseRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_revisionId']=0x0;}get['isLocked'](){const _0x7a3cf6=this['repository']['getRevision'](0x0);return!_0x7a3cf6||_0x7a3cf6['isLocked'];}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x260c9d=this['repository']['getRevision'](0x0);this['_startTracking'](),_0x260c9d?_0x260c9d['isLocked']||_0x260c9d['lock']():this['_saveInitialRevision']();});const _0x393412=this['editor']['plugins']['get']('PendingActions');this['bind']('isReady')['to'](_0x393412,'hasAny',_0xb51294=>!_0xb51294);}['afterInit'](){if(this['adapter']){const _0x142abb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevisions']({'channelId':_0x142abb})['then'](_0x52c875=>{for(const _0x57537e of _0x52c875){const _0x205a04=this['repository']['createRevision'](_0x57537e);_0x205a04['on']('_update',(_0x4cd604,_0x89dd6b)=>{this['adapterUpdate'](_0x89dd6b);}),this['repository']['addRevision'](_0x205a04);}const _0x25c980=this['repository']['getRevision'](0x0);if(_0x25c980&&!_0x25c980['data'])return this['adapter']['getRevision']({'revisionId':_0x25c980['id']})['then'](_0x529f04=>{_0x25c980['data']=_0x529f04['data'];});});}}['adapterUpdate'](_0x2f8ec7){const _0x105185=this['editor']['plugins']['get']('PendingActions'),_0x56ccc4=_0x105185['add']('Revision\x20not\x20updated.');return this['adapter']['updateRevision'](_0x2f8ec7)['then'](()=>{_0x105185['remove'](_0x56ccc4);});}['updateRevision']({name:_0x2c4031=null,isLocked:_0x123210=!0x1}={}){let _0x96c2b3;return _0x123210=!!_0x2c4031||_0x123210,_0x96c2b3=this['isLocked']?this['_newRevision']({'name':_0x2c4031,'isLocked':_0x123210}):this['_updateRevision']({'name':_0x2c4031,'isLocked':_0x123210}),this['isDirty']=!0x1,_0x96c2b3;}['_newRevision']({name:_0x1e682c=null,isLocked:_0x4fa7c1=!0x1}={}){const _0x5713b4=this['_getCurrentRevisionData']();_0x5713b4['name']=_0x1e682c,_0x5713b4['isLocked']=_0x4fa7c1;const _0x5659ef=this['repository']['createRevision'](_0x5713b4);if(_0x4fa7c1?this['_reset']():_0x5659ef['on']('_update',(_0x8c6ece,_0x50e760)=>{_0x50e760['isLocked']&&this['_reset']();}),this['adapter']){const _0x3bbc8d=this['editor']['config']['get']('collaboration.channelId');let _0x5d0ca8=null;const _0x20ca10=(_0x1ed5d9,_0x17999f)=>{_0x5d0ca8=_0x5d0ca8?{..._0x5d0ca8,..._0x17999f}:_0x17999f;};_0x5659ef['on']('_update',_0x20ca10);const _0x519cc0=this['editor']['plugins']['get']('PendingActions'),_0x4278f9=_0x519cc0['add']('Revision\x20not\x20saved.');this['adapter']['addRevision']({'channelId':_0x3bbc8d,..._0x5659ef['toJSON']()})['then'](()=>{_0x519cc0['remove'](_0x4278f9),_0x5659ef['off'](_0x20ca10),_0x5d0ca8&&this['adapterUpdate'](_0x5d0ca8),_0x5659ef['on']('_update',(_0x4a9003,_0xe785d5)=>{this['adapterUpdate'](_0xe785d5);});});}return this['repository']['addRevision'](_0x5659ef),_0x5659ef;}['_updateRevision']({name:_0x25bdde=null,isLocked:_0x428349=!0x1}={}){const _0x698c6e=this['repository']['getRevision'](0x0),_0x4f773e={'name':_0x25bdde,'isLocked':_0x428349};if(this['isDirty']){const _0x979005=this['_getCurrentRevisionData']();_0x4f773e['data']=_0x979005['data'],_0x4f773e['createdAt']=_0x979005['createdAt'],_0x4f773e['authors']=_0x979005['authorsIds']['map'](_0x5a4992=>this['editor']['plugins']['get']('Users')['getUser'](_0x5a4992));}return _0x698c6e['_update'](_0x4f773e),_0x698c6e;}['_startTracking'](){const _0x32caef=this['editor']['model']['document'],_0xe2822a=_0x32caef['getRootNames']();_0xe2822a['push']('$graveyard');for(const _0xeffe36 of _0xe2822a){const _0x357df3=_0x32caef['getRoot'](_0xeffe36),_0x128465=O(_0x357df3);this['_diffRoots']['set'](_0xeffe36,_0x128465);for(const _0x4b43d3 of this['editor']['model']['createRangeIn'](_0x128465)['getWalker']({'singleCharacters':!0x0})){const _0x54ecfc=this['_getVidAttributeName'](_0x4b43d3),_0x254530=_0x4b43d3['item'],_0x1f76da=this['_revisionId']++;_0x3ce42a(this['editor']['model']['createRangeOn'](_0x254530),_0x54ecfc,_0x1f76da);}if('$graveyard'!=_0xeffe36){const _0x3e8ebc=O(_0x128465);this['_copyMarkers'](_0x3e8ebc,_0x357df3),this['_baseRoots']['set'](_0xeffe36,_0x3e8ebc);}}this['_startingRevisionId']=this['_revisionId'],this['editor']['model']['on']('applyOperation',(_0x503216,_0x552e70)=>{const _0x1ab0b5=_0x552e70[0x0];_0x1ab0b5['isDocumentOperation']&&('marker'!=_0x1ab0b5['type']||_0x1ab0b5['affectsData'])&&(this['isDirty']=!0x0,this['_handleOperation'](_0x1ab0b5));},{'priority':'low'});}['_copyMarkers'](_0x57a35e,_0x115b01){const _0x484a11=this['editor']['model'];let _0x3ad1b0;_0x3ad1b0=_0x115b01['is']('documentFragment')?Array['from'](_0x115b01['markers']):Array['from'](_0x484a11['markers'])['filter'](_0x4612c7=>_0x4612c7['getStart']()['root']==_0x115b01)['map'](_0x240939=>[_0x240939['name'],_0x240939['getRange']()]),_0x57a35e['markers']=new Map(_0x3ad1b0['map'](([_0x46c44d,_0x397c85])=>[_0x46c44d,this['_fixRange'](_0x397c85,_0x57a35e)]));}['_handleOperation'](_0x471211){const _0x1f3d92=_0x471211['clone']();switch(_0x1f3d92['_authorId']=_0x471211['_authorId'],this['_fixOperation'](_0x1f3d92),_0x1f3d92['type']){case'insert':this['_handleInsertOperation'](_0x1f3d92);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1f3d92);break;case'merge':this['_handleMergeOperation'](_0x1f3d92);break;case'split':this['_handleSplitOperation'](_0x1f3d92);break;case'addAttribute':case'changeAttribute':case'removeAttribute':case'rename':_0x1f3d92['_execute']();break;case'marker':this['_handleMarkerOperation'](_0x1f3d92);}}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_baseRoots']['clear']();for(const [_0x163a71,_0x4a7b81]of this['_diffRoots']){if('$graveyard'==_0x163a71)continue;const _0x59ed0b=this['editor']['model']['document']['getRoot'](_0x163a71),_0x2f513e=O(_0x4a7b81);this['_copyMarkers'](_0x2f513e,_0x59ed0b),this['_baseRoots']['set'](_0x163a71,_0x2f513e);}this['_startingRevisionId']=this['_revisionId'],this['_fixGraveyardVids'](this['_diffRoots']['get']('$graveyard'));}['_getBaseVids'](_0x502ce3){return _0x502ce3['map'](_0x213d2b=>{const _0x48d08b=this['_getVidAttributeName'](_0x213d2b);return Number(_0x213d2b['item']['getAttribute'](_0x48d08b));});}['_generateTape'](_0x54b087,_0x102251){if(_0x54b087['is']('text'))_0x102251['push']({'item':_0x54b087,'type':'text'});else{_0x54b087['is']('element')&&_0x102251['push']({'item':_0x54b087,'type':'elementStart'});for(const _0x50c22b of _0x54b087['getChildren']())this['_generateTape'](_0x50c22b,_0x102251);_0x54b087['is']('element')&&_0x102251['push']({'item':_0x54b087,'type':'elementEnd'});}return _0x102251;}['_getState'](){const _0xf3561a=this['editor']['model'],_0x7fe5b5=new Map(this['_touched']),_0x35b33a=new Map(_0x7fe5b5),_0x20ec62=new Map(),_0x254623={'insertions':{},'deletions':{}},_0x31e6b0={'insertions':{},'deletions':{}},_0x420c50=new Map();for(const _0x459d3c of _0xf3561a['document']['getRootNames']()){const _0x4ded90=this['_diffRoots']['get'](_0x459d3c),_0x586f4a=this['_baseRoots']['get'](_0x459d3c);_0x254623['insertions'][_0x459d3c]=O(_0x4ded90),_0x254623['deletions'][_0x459d3c]=O(_0x586f4a),this['_copyMarkers'](_0x254623['deletions'][_0x459d3c],_0x586f4a),_0x31e6b0['insertions'][_0x459d3c]=this['_generateTape'](_0x254623['insertions'][_0x459d3c],[]),_0x31e6b0['deletions'][_0x459d3c]=this['_generateTape'](_0x254623['deletions'][_0x459d3c],[]);}for(const _0x1810a7 of _0xf3561a['document']['getRootNames']()){const _0x19a177=_0x31e6b0['insertions'][_0x1810a7];for(const _0x4ae1c6 of _0x19a177){const _0x2e7c95=this['_getVidAttributeName'](_0x4ae1c6),_0x4a443d=_0x4ae1c6['item']['getAttribute'](_0x2e7c95);_0x35b33a['delete'](_0x4a443d),_0x4a443d>=this['_startingRevisionId']&&!_0x20ec62['has'](_0x4a443d)&&_0x20ec62['set'](_0x4a443d,_0x7fe5b5['get'](_0x4a443d));}}for(const _0x516934 of _0xf3561a['document']['getRootNames']()){const _0x42c73c=_0x31e6b0['insertions'][_0x516934],_0x13a8c8=this['_getBaseVids'](_0x31e6b0['deletions'][_0x516934]);let _0x3c0ded=0x0;for(const _0x31aa18 of _0x42c73c){const _0x25ff99=this['_getVidAttributeName'](_0x31aa18),_0x5a2f34=_0x31aa18['item']['getAttribute'](_0x25ff99);if(!_0x20ec62['has'](_0x5a2f34)&&!_0x420c50['has'](_0x5a2f34)){if(_0x35b33a['has'](_0x5a2f34))_0x3c0ded++;else{if(_0x5a2f34!=_0x13a8c8[_0x3c0ded]){const _0x3218a6=_0x7fe5b5['get'](_0x5a2f34)||_0x7fe5b5['get'](_0x13a8c8[_0x3c0ded]);for(;_0x5a2f34!=_0x13a8c8[_0x3c0ded];)_0x35b33a['has'](_0x13a8c8[_0x3c0ded])||(_0x420c50['set'](_0x13a8c8[_0x3c0ded],_0x3218a6),_0x7fe5b5['set'](_0x13a8c8[_0x3c0ded],_0x3218a6)),_0x3c0ded++;}_0x3c0ded++;}}}}for(const _0xa4582f of _0xf3561a['document']['getRootNames']()){const _0x339369=_0x31e6b0['insertions'][_0xa4582f];for(const _0x28313f of _0x339369){const _0x43ea8c=this['_getVidAttributeName'](_0x28313f),_0x2c1a67=_0x28313f['item']['getAttribute'](_0x43ea8c);if(_0x420c50['has'](_0x2c1a67)){const _0x5e4133=_0x420c50['get'](_0x2c1a67);_0x35b33a['has'](_0x2c1a67)||_0x35b33a['set'](_0x2c1a67,{..._0x5e4133});const _0x479f97=this['_revisionId']++;_0x3ce42a(_0xf3561a['createRangeOn'](_0x28313f['item']),_0x43ea8c,_0x479f97),_0x20ec62['set'](_0x479f97,{..._0x5e4133}),_0x7fe5b5['set'](_0x479f97,{..._0x5e4133});}}}for(const _0x3c0bc4 of _0x35b33a['keys']())_0x3c0bc4>=this['_startingRevisionId']&&_0x35b33a['delete'](_0x3c0bc4);const _0x1c057b=new Map();for(const _0x3af0e2 of _0xf3561a['document']['getRootNames']()){let _0x369a5f=_0x31e6b0['insertions'][_0x3af0e2];for(const _0x308424 of _0x369a5f)if(_0x308424['item']['is']('element','tableCell')){const _0x1c7713=this['_getVidAttributeName'](_0x308424),_0xfc3ab1=_0x308424['item']['getAttribute'](_0x1c7713);if(_0x20ec62['has'](_0xfc3ab1)){const _0x5b673d=_0x308424['item']['parent']['parent']['getAttribute']('vid_start'),_0x3f7e1d=_0x1c057b['get'](_0x5b673d)||new Set();_0x3f7e1d['add'](_0x20ec62['get'](_0xfc3ab1)['userId']),_0x1c057b['set'](_0x5b673d,_0x3f7e1d);}}_0x369a5f=_0x31e6b0['deletions'][_0x3af0e2];for(const _0x59edef of _0x369a5f)if(_0x59edef['item']['is']('element','tableCell')){const _0x81bdf4=this['_getVidAttributeName'](_0x59edef),_0xd0cb6e=_0x59edef['item']['getAttribute'](_0x81bdf4);if(_0x35b33a['has'](_0xd0cb6e)){const _0xcade40=_0x59edef['item']['parent']['parent']['getAttribute']('vid_start'),_0x2f20d1=_0x1c057b['get'](_0xcade40)||new Set();_0x2f20d1['add'](_0x35b33a['get'](_0xd0cb6e)['userId']),_0x1c057b['set'](_0xcade40,_0x2f20d1);}}for(const _0x588e3e of _0x1c057b['keys']())(_0x20ec62['has'](_0x588e3e)||_0x35b33a['has'](_0x588e3e))&&_0x1c057b['delete'](_0x588e3e);}for(const _0x111aff of _0xf3561a['document']['getRootNames']()){const _0xb38f72=_0x31e6b0['insertions'][_0x111aff];let _0x409daa=null,_0x2bbd09=null;for(const _0x411c82 of _0xb38f72){const _0x38348c=this['_getVidAttributeName'](_0x411c82),_0x8defa7=_0x411c82['item']['getAttribute'](_0x38348c),_0x24652b=_0x1c057b['get'](_0x8defa7);if(_0x24652b&&'elementStart'==_0x411c82['type']&&(_0x409daa=Array['from'](_0x24652b)[0x0],_0x2bbd09=_0x411c82['item']['getAttribute']('vid_end')),_0x409daa){const _0x1c9e9d=this['_getVidAttributeName'](_0x411c82),_0x5d4be9=_0x411c82['item']['getAttribute'](_0x1c9e9d),_0x264858=this['_revisionId']++;_0x35b33a['set'](_0x5d4be9,{'userId':_0x409daa}),_0x20ec62['set'](_0x264858,{'userId':_0x409daa}),_0x3ce42a(_0xf3561a['createRangeOn'](_0x411c82['item']),_0x1c9e9d,_0x264858);}_0x8defa7==_0x2bbd09&&(_0x409daa=null,_0x2bbd09=null);}}const _0x25f437={},_0x590af5=new Set();for(const _0x40302b of _0xf3561a['document']['getRootNames']()){const _0x2bdc65=_0x254623['deletions'][_0x40302b],_0x7ad2ea=_0x254623['insertions'][_0x40302b],_0x10876c=this['editor']['model']['document']['getRoot'](_0x40302b);this['_copyMarkers'](_0x7ad2ea,_0x10876c);for(const {userId:_0x466377}of this['_touchedMarkers']['values']())_0x590af5['add'](_0x466377);this['_markChanges'](_0x7ad2ea,_0x31e6b0['insertions'][_0x40302b],_0x20ec62,'insertion',_0x590af5),this['_markChanges'](_0x2bdc65,_0x31e6b0['deletions'][_0x40302b],_0x35b33a,'deletion',_0x590af5),this['_removeVids'](_0x7ad2ea),this['_removeVids'](_0x2bdc65),_0x25f437[_0x40302b]={'insertions':this['_prepareViewToSave'](_0x7ad2ea),'deletions':this['_prepareViewToSave'](_0x2bdc65)};}return{'data':_0x25f437,'authorsIds':Array['from'](_0x590af5)};}['_processRootBeforeSave'](_0x499b5e){for(const [_0x594eb2,_0x1396e7]of _0x499b5e['markers']){if(!_0x594eb2['startsWith']('revision:'))continue;const _0xdba2e0=_0x1396e7['start']['getAncestors']()['filter'](_0x5b565d=>'tableCell'==_0x5b565d['name']);for(const _0x3a0755 of _0xdba2e0)0x1==_0x3a0755['childCount']&&_0x3a0755['getChild'](0x0)['is']('element','paragraph')&&_0x3a0755['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5545c5){this['_processRootBeforeSave'](_0x5545c5);const _0x47e2f5=this['editor']['data']['toView'](_0x5545c5,{}),_0x31c531=Array['from'](_0x47e2f5['getChildren']())['map'](_0xa3fe99=>this['_getViewObj'](_0xa3fe99));return JSON['stringify'](_0x31c531);}['_getViewObj'](_0x5b6200){return _0x5b6200['is']('text')?_0x5b6200['data']:{'name':_0x5b6200['name'],'attributes':Array['from'](_0x5b6200['getAttributes']()),'children':Array['from'](_0x5b6200['getChildren']())['map'](_0x2c295f=>this['_getViewObj'](_0x2c295f))};}['_removeVids'](_0xfe2293){const _0x1bfe89=_0xfe2293['_removeChildren'](0x0,_0xfe2293['childCount']);for(const _0x6a303c of _0x1bfe89)_0x6a303c['is']('text')?_0x6a303c['_removeAttribute']('vid'):(_0x6a303c['_removeAttribute']('vid_start'),_0x6a303c['_removeAttribute']('vid_end'),this['_removeVids'](_0x6a303c));_0x54212e(this['editor']['model']['createPositionAt'](_0xfe2293,0x0),_0x1bfe89);}['_markChanges'](_0x1d3d7a,_0x990435,_0x5cd3db,_0x1adf52,_0x59dabd){let _0xb51577=null,_0x48492c=null,_0x57ec53=0x0;const _0x3c5383=this['editor']['model'];for(let _0x4a29a7=0x0;_0x4a29a7<_0x990435['length'];_0x4a29a7++){const _0x35fa86=this['_getVidAttributeName'](_0x990435[_0x4a29a7]),_0x5355f6=_0x990435[_0x4a29a7]['item']['getAttribute'](_0x35fa86),_0x1c1ac5=_0x5cd3db['get'](_0x5355f6),_0x16b0f8=_0x4a29a7==_0x990435['length']-0x1;(!_0xb51577&&_0x1c1ac5&&(_0xb51577=_0x1c1ac5,_0x48492c=_0x990435[_0x4a29a7]),_0xb51577&&(!_0x1c1ac5||_0x1c1ac5['userId']!=_0xb51577['userId']))&&(_0xdf57e1(_0x1c1ac5,C(_0x48492c,_0x3c5383),C(_0x990435[_0x4a29a7],_0x3c5383)),_0xb51577=_0x1c1ac5||null,_0x48492c=_0x1c1ac5?_0x990435[_0x4a29a7]:null),_0xb51577&&_0x16b0f8&&_0xdf57e1(_0x1c1ac5,C(_0x48492c,_0x3c5383),U(_0x990435[_0x4a29a7],_0x3c5383));}function _0xdf57e1(_0x479607,_0x4c87cc,_0x14fcd8){const _0x3c6b77=_0xb51577['userId'],_0x348ac4='revision:'+_0x1adf52+':'+_0x3c6b77+':'+_0x57ec53++,_0x2214e2=_0x3c5383['createRange'](_0x4c87cc,_0x14fcd8);_0x1d3d7a['markers']['set'](_0x348ac4,_0x2214e2),_0x59dabd['add'](_0x3c6b77);}}['_getVidAttributeName'](_0x2f6558){switch(_0x2f6558['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixGraveyardVids'](_0x4fc509){for(const _0x77de1b of _0x4fc509['getChildren']())_0x77de1b['is']('text')?_0x77de1b['_setAttribute']('vid',this['_revisionId']++):(_0x77de1b['_setAttribute']('vid_start',this['_revisionId']++),this['_fixGraveyardVids'](_0x77de1b),_0x77de1b['_setAttribute']('vid_end',this['_revisionId']++));}['_fixOperation'](_0x47a332){_0x47a332['baseRevision']=null;for(const _0x4a9dd0 in _0x47a332){if(_0x47a332[_0x4a9dd0]instanceof _0x4b6c21){const _0x37139a=this['_diffRoots']['get'](_0x47a332[_0x4a9dd0]['root']['rootName']);_0x47a332[_0x4a9dd0]=this['_fixPosition'](_0x47a332[_0x4a9dd0],_0x37139a);}if(_0x47a332[_0x4a9dd0]instanceof _0x1ef8e1){const _0x3ae06c=this['_diffRoots']['get'](_0x47a332[_0x4a9dd0]['root']['rootName']);_0x47a332[_0x4a9dd0]=this['_fixRange'](_0x47a332[_0x4a9dd0],_0x3ae06c);}}_0x47a332['root']&&(_0x47a332['root']=this['_diffRoots']['get'](_0x47a332['root']['rootName']));}['_fixRange'](_0x4f5f47,_0x4d06bb){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4f5f47['start'],_0x4d06bb),this['_fixPosition'](_0x4f5f47['end'],_0x4d06bb));}['_fixPosition'](_0x460998,_0x16bbfb){return this['editor']['model']['createPositionFromPath'](_0x16bbfb,_0x460998['path'],_0x460998['stickiness']);}['_handleInsertOperation'](_0x454cd3){_0x454cd3['_execute']();const _0x4e60b9=this['editor']['plugins']['get']('Users')['getOperationAuthor'](_0x454cd3),_0x56c612=this['editor']['model']['createRange'](_0x454cd3['position'],_0x454cd3['position']['getShiftedBy'](_0x454cd3['howMany']));for(const _0x338b37 of _0x56c612['getWalker']({'singleCharacters':!0x0})){const _0x4f10f6=this['_getVidAttributeName'](_0x338b37),_0x47c801=this['_revisionId']++;_0x3ce42a(this['editor']['model']['createRangeOn'](_0x338b37['item']),_0x4f10f6,_0x47c801),this['_touched']['set'](_0x47c801,{'userId':_0x4e60b9['id']});}}['_handleMoveOperation'](_0x559782){_0x559782['_execute']();const _0x3d56dc=this['editor']['plugins']['get']('Users')['getOperationAuthor'](_0x559782),_0x198930=this['editor']['model'],_0x1245e4=_0x559782['getMovedRangeStart'](),_0x1685b1=_0x198930['createRange'](_0x1245e4,_0x1245e4['getShiftedBy'](_0x559782['howMany']));for(const _0x40cd0e of _0x1685b1['getWalker']({'singleCharacters':!0x0})){const _0x150e35=this['_getVidAttributeName'](_0x40cd0e),_0x9773e4=_0x40cd0e['item']['getAttribute'](_0x150e35);this['_touched']['set'](_0x9773e4,{'userId':_0x3d56dc['id']});}}['_handleMergeOperation'](_0x11c5e7){const _0xd973f3=this['editor']['plugins']['get']('Users')['getOperationAuthor'](_0x11c5e7),_0x647c4f=_0x11c5e7['targetPosition']['parent'],_0x58adf4=_0x11c5e7['sourcePosition']['parent'],_0x55efeb=_0x647c4f['getAttribute']('vid_end'),_0x5166f4=_0x58adf4['getAttribute']('vid_start');_0x3ce42a(this['editor']['model']['createRangeOn'](_0x647c4f),'vid_end',_0x58adf4['getAttribute']('vid_end')),_0x3ce42a(this['editor']['model']['createRangeOn'](_0x58adf4),'vid_end',_0x55efeb),this['_touched']['set'](_0x5166f4,{'userId':_0xd973f3['id']}),this['_touched']['set'](_0x55efeb,{'userId':_0xd973f3['id']}),_0x11c5e7['_execute']();}['_handleSplitOperation'](_0x3da125){const _0x3f8525=this['editor']['plugins']['get']('Users')['getOperationAuthor'](_0x3da125),_0x1447d4=_0x3da125['graveyardPosition'],_0xb2c2ef=_0x3da125['splitPosition']['parent'];_0x3da125['_execute']();const _0x10a81c=_0xb2c2ef['getAttribute']('vid_end'),_0x1fd400=_0x3da125['insertionPosition']['nodeAfter'];if(_0x1447d4){const _0x42b47e=_0x1fd400['getAttribute']('vid_end'),_0x2ceaa2=_0xb2c2ef['getAttribute']('vid_end');_0x3ce42a(this['editor']['model']['createRangeOn'](_0xb2c2ef),'vid_end',_0x42b47e),_0x3ce42a(this['editor']['model']['createRangeOn'](_0x1fd400),'vid_end',_0x2ceaa2),this['_touched']['set'](_0xb2c2ef['getAttribute']('vid_end'),{'userId':_0x3f8525['id']}),this['_touched']['set'](_0x1fd400['getAttribute']('vid_start'),{'userId':_0x3f8525['id']});}else{const _0x259a3d=this['_revisionId']++,_0x5e0548=this['_revisionId']++;_0x3ce42a(this['editor']['model']['createRangeOn'](_0xb2c2ef),'vid_end',_0x259a3d),_0x3ce42a(this['editor']['model']['createRangeOn'](_0x1fd400),'vid_start',_0x5e0548),_0x3ce42a(this['editor']['model']['createRangeOn'](_0x1fd400),'vid_end',_0x10a81c),this['_touched']['set'](_0x259a3d,{'userId':_0x3f8525['id']}),this['_touched']['set'](_0x5e0548,{'userId':_0x3f8525['id']});}}['_handleMarkerOperation'](_0x382ee1){const _0x5123ed=this['editor']['plugins']['get']('Users')['getOperationAuthor'](_0x382ee1),_0x15a830=_0x382ee1['name'];if(!this['_touchedMarkers']['has'](_0x15a830))return void this['_touchedMarkers']['set'](_0x15a830,{'range':_0x382ee1['oldRange'],'userId':_0x5123ed['id']});const _0x34bb39=this['_touchedMarkers']['get'](_0x382ee1['name']),_0x53ac6c=_0x34bb39['range'],_0x4fb70f=_0x382ee1['newRange'];null==_0x53ac6c&&null==_0x4fb70f||_0x53ac6c&&_0x4fb70f&&_0x53ac6c['isEqual'](_0x4fb70f)?this['_touchedMarkers']['delete'](_0x382ee1['name']):_0x34bb39['userId']=_0x5123ed['id'];}['_getCurrentRevisionData'](){const _0x5b969d=this['_getState']();return{'creatorId':this['editor']['plugins']['get']('Users')['me']['id'],'data':_0x5b969d['data'],'authorsIds':_0x5b969d['authorsIds'],'createdAt':new Date()};}['_saveInitialRevision'](){const t=this['editor']['t'],_0x1d5c74={'name':t(!this['editor']['model']['document']['roots']['find'](_0x462f92=>this['editor']['model']['hasContent'](_0x462f92))?'Empty\x20document':'Initial\x20revision')};return this['updateRevision'](_0x1d5c74);}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}function O(_0x13b99){const _0x23eb83=new _0x485c07();for(const _0x4aeb0a of _0x13b99['getChildren']()){const _0x350729=_0x4aeb0a['_clone'](!0x0);_0x23eb83['_appendChild'](_0x350729);}return _0x23eb83;}function C(_0x468fe7,_0x41d979){return'elementEnd'==_0x468fe7['type']?_0x41d979['createPositionAt'](_0x468fe7['item'],'end'):_0x41d979['createPositionBefore'](_0x468fe7['item']);}function U(_0x2bb3cd,_0x59230b){return'elementStart'==_0x2bb3cd['type']?_0x59230b['createPositionAt'](_0x2bb3cd['item'],0x0):_0x59230b['createPositionAfter'](_0x2bb3cd['item']);}
|
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x34dc=['selection','change:isEnabled','high','_getRevisionsRange','updateMarker','markerToHighlight','downcastDispatcher','setAttribute','split','getAttributes','isNavigationMode','ck-suggestion-marker','revision','createPositionAfter','_makeModelFromViewString','schema','numberOfChanges','forward','startIndex','roots','upcast','mapper','viewItem','consume','refresh','isCollapsed','htmlProcessor','dataDowncast','conversion','softBreak','isBlock','push','insert','locale','wrap','vid_start','from','_getDiff','editing','add','_makeModelFromTape','start','isAtStart','getMarkersGroup','change:activeView','shift','getCustomProperty','revision:','attribute:vid','hasClass','getRoot','getAttribute','insertion','writer','stopListening','toViewElement','_processTape','addHighlight','isObject','_getViewForChange','restoreRevision','parent','isAdded','slice','ck-editor__editable__overlay','remove','code','splice','repository','markersStart','_target','createPositionAt','children','_fixObsoleteTags','end','nextPosition','nodeBefore','get','stop','removeMarker:revision','config','createUIElement','isSuggestion','map','removeMarker:suggestion','createRange','elementEnd','revisionHistoryLabel','has','_cleanUp','isInline','abs','addClass','_getChangeFromId','directChange','document','markerNameToElements','change:isReady','return','model','elementToAttribute','isAtEnd','deletions','nodeAfter','level','toViewRange','_balloon','length','offsetSize','readOnlyMode','markers','target','getShiftedBy','backward','type','consumable','_markInsertions','vid','getRevisionData','_setData','createPositionBefore','values','string','markerToData','checkAttribute','diff','merge','bind','userId','isIncorrect','item','view','_findChangeIdFromDomTarget','_setConversion','_getViewObj','destroy','span','clearForceDisabled','_markSuggestions','getChild','isLimit','distance','editor','for','nextSibling','activeChange','then','authorId','removeClass','ck-suggestion-marker-','showNextChange','_changeIdToView','sort','addMarker:suggestion:deletion','change:numberOfChanges','ck-suggestion-marker--active','POSITIVE_INFINITY','mouseover','element','keys','getRootNames','ck-suggestion-preview-marker-','_removeMissingPairs','forEach','markersEnd','activeView','isContent','low','catch','elementStart','deletion','findIndex','markerName','vid_end','loadRevisionData','getWalker','-new','unbindElementFromMarkerName','unshift','toViewPosition','side','getRevision','previousPosition','endIndex','startsWith','uiElement','toModel','delete','isReady','first','isEnabled','RevisionViewer','init','_markMarkers','markerRange','maxOffset','bindElementToMarker','clear','requires','name','test','parse','isEqual','getIndex','_makeTape','hasAttribute','change','createAttributeElement','changes','_cleanMarkers','_markMismatchedRemovedTags','_setDistance','suggestion','resolve','_changeIdToChange','getFirstRange','isRemoved','listenTo','_step','pairId','attributes','data','execute','_threeWayMerge','insertions','adapter','_revisions','change:range','pluginName','set','change:isReadOnly','_initInteractions','marked','createRangeIn','editingDowncast','modelRange','text','commands','_joinTapes','change:activeChange','index','_removeUnsupportedChanges','plugins','filter'];(function(_0x18e022,_0x34dcec){const _0x57c1e2=function(_0x461bcd){while(--_0x461bcd){_0x18e022['push'](_0x18e022['shift']());}};_0x57c1e2(++_0x34dcec);}(_0x34dc,0xcc));const _0x57c1=function(_0x18e022,_0x34dcec){_0x18e022=_0x18e022-0x0;let _0x57c1e2=_0x34dc[_0x18e022];return _0x57c1e2;};import _0x3935e4 from'@ckeditor/ckeditor5-collaboration-core/src/users';import{Plugin as _0x571769,Command as _0x25d308}from'ckeditor5/src/core';import{ObservableMixin as _0x1f80f6,mix as _0x3299ba}from'ckeditor5/src/utils';import _0x75f81d from'@ckeditor/ckeditor5-engine/src/model/documentfragment';import _0x3a7d02 from'@ckeditor/ckeditor5-engine/src/model/element';import _0x121069 from'@ckeditor/ckeditor5-engine/src/model/text';import _0x518d13 from'@ckeditor/ckeditor5-engine/src/view/documentfragment';import _0x2b15fa from'@ckeditor/ckeditor5-engine/src/view/text';import _0x169145 from'@ckeditor/ckeditor5-engine/src/view/element';import{_insert as _0x6152d2}from'@ckeditor/ckeditor5-engine/src/model/operation/utils';import _0x4a6412 from'./ui/revisionviewer/changedetailsview';import _0x3b00f6 from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import{scrollViewportToShowTarget as _0xa6fdfb}from'@ckeditor/ckeditor5-utils/src/dom/scroll';import{ContextualBalloon as _0xdd5c18}from'ckeditor5/src/ui';import _0x1ad819 from'./revisionsrepository';import _0x5022ee from'./changeitem';import _0x2fb8e7 from'./revisiondiff';import'../theme/revisionviewer.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestion.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestionmarker.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/horizontalline.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/image.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/mediaembed.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/pagebreak.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/table.css';export default class m extends _0x571769{static get[_0x57c1('0x18')](){return _0x57c1('0xe7');}static get[_0x57c1('0xee')](){return[_0x3935e4,_0xdd5c18,_0x1ad819];}constructor(..._0x409d05){super(..._0x409d05),this[_0x57c1('0x6c')]=this[_0x57c1('0xb6')][_0x57c1('0x26')][_0x57c1('0x75')]('RevisionsRepository'),this[_0x57c1('0x19')](_0x57c1('0xb9'),null),this[_0x57c1('0x19')](_0x57c1('0xcd'),null),this[_0x57c1('0x19')](_0x57c1('0xa5'),null),this[_0x57c1('0x19')](_0x57c1('0xe4'),!0x1),this[_0x57c1('0x19')](_0x57c1('0xe6'),!0x0),this['on']('change:isEnabled',(_0x21696f,_0x52b71b,_0x184847)=>{this[_0x57c1('0xb9')]=null,this['activeView']=null,this[_0x57c1('0xb6')]['editing']['view']['change'](_0x32cc73=>{for(const _0x58bd43 of this[_0x57c1('0xb6')][_0x57c1('0x4e')][_0x57c1('0xab')][_0x57c1('0x87')][_0x57c1('0x3b')])_0x184847?_0x32cc73[_0x57c1('0xbc')]('ck-editor__editable__overlay',_0x58bd43):_0x32cc73['addClass'](_0x57c1('0x68'),_0x58bd43);});}),this['bind'](_0x57c1('0x32'))['to'](this,_0x57c1('0xb9'),_0x53f6c6=>null!==_0x53f6c6),this[_0x57c1('0xa7')]('currentChangeNumber')['to'](this,_0x57c1('0xe4'),this,'diff',this,_0x57c1('0xb9'),(_0x1fce79,_0x2d889b,_0xa52a8c)=>_0x1fce79&&_0xa52a8c?_0x2d889b[_0x57c1('0x4')][_0x57c1('0xf3')](_0xa52a8c):0x0),this[_0x57c1('0xa7')](_0x57c1('0x38'))['to'](this,_0x57c1('0xe4'),this,_0x57c1('0xa5'),(_0x1f2e24,_0x514d20)=>_0x1f2e24?_0x514d20[_0x57c1('0x4')]['length']:0x0),this[_0x57c1('0xbf')]=new Map(),this[_0x57c1('0xa')]=new Map(),this[_0x57c1('0x15')]=null,this[_0x57c1('0x92')]=this[_0x57c1('0xb6')][_0x57c1('0x26')][_0x57c1('0x75')](_0xdd5c18);}[_0x57c1('0xe8')](){const _0x3adbda=this['editor'];_0x3adbda[_0x57c1('0x11')][_0x57c1('0x42')]['useFillerType'](_0x57c1('0x1c'));const _0x562e43=new q(_0x3adbda,{'direction':_0x57c1('0x99')}),_0x17407f=new q(_0x3adbda,{'direction':_0x57c1('0x39')});_0x3adbda[_0x57c1('0x21')]['add']('showPreviousChange',_0x562e43),_0x3adbda[_0x57c1('0x21')][_0x57c1('0x4f')](_0x57c1('0xbe'),_0x17407f),_0x3adbda[_0x57c1('0x21')]['add'](_0x57c1('0x64'),new L(_0x3adbda)),this['on'](_0x57c1('0xc2'),()=>{_0x562e43[_0x57c1('0x40')](),_0x17407f[_0x57c1('0x40')]();}),this[_0x57c1('0xad')](),this[_0x57c1('0x1b')](),_0x3adbda['isReadOnly']=!0x0;}async[_0x57c1('0x9e')](_0x47aa4b){await this[_0x57c1('0xd6')](_0x47aa4b);const _0x7f32bc={};for(const _0x13d9d2 in _0x47aa4b[_0x57c1('0x11')]){const _0x4c7cfb=JSON[_0x57c1('0xf1')](_0x47aa4b[_0x57c1('0x11')][_0x13d9d2]['insertions']),_0x27d814=this['editor']['editing'][_0x57c1('0xab')]['document'],_0x3a551c=new _0x518d13(_0x27d814,_0x4c7cfb[_0x57c1('0x7b')](_0x22ae8f=>this[_0x57c1('0xae')](_0x22ae8f)));_0x7f32bc[_0x13d9d2]=this[_0x57c1('0xb6')][_0x57c1('0x11')]['processor']['toData'](_0x3a551c);}return _0x7f32bc;}['compare'](_0x5be914,_0x20c756,_0x450a80=!0x1){if(!this['isEnabled'])return;const _0x2a8b21=this[_0x57c1('0x6c')],_0x3b3dda=_0x57c1('0xa2')==typeof _0x5be914?_0x2a8b21[_0x57c1('0xdd')](_0x5be914):_0x5be914,_0x44a631=_0x57c1('0xa2')==typeof _0x20c756?_0x2a8b21[_0x57c1('0xdd')](_0x20c756):_0x20c756,_0x45fb1a=_0x3b3dda['id'],_0x11e558=_0x44a631?_0x44a631['id']:null;if(!_0x450a80&&this[_0x57c1('0xa5')]&&this[_0x57c1('0xa5')]['newRevisionId']===_0x45fb1a&&this['diff']['oldRevisionId']===_0x11e558)return Promise[_0x57c1('0x9')]();this[_0x57c1('0xe4')]=!0x1,this['activeView']=null,this[_0x57c1('0xa5')]=new _0x2fb8e7(_0x45fb1a,_0x11e558);const _0x26e716=this[_0x57c1('0x2b')](_0x3b3dda,_0x44a631,!0x0)[_0x57c1('0x7b')](_0x3244a9=>this[_0x57c1('0xd6')](_0x3244a9));return _0x26e716['push'](new Promise(_0xf6e437=>{setTimeout(_0xf6e437,0x14);})),Promise['all'](_0x26e716)[_0x57c1('0xba')](()=>{if(!this[_0x57c1('0xe6')])return;this[_0x57c1('0x81')]();const _0x35b38a=this['_getDiff'](_0x45fb1a,_0x11e558);this['diff'][_0x57c1('0x9f')](_0x35b38a);for(const _0x4c44cd of this[_0x57c1('0xa5')]['changes'])this[_0x57c1('0xa')][_0x57c1('0x19')](_0x4c44cd['id'],_0x4c44cd);this['editor'][_0x57c1('0x8b')]['enqueueChange']('transparent',_0x57ade5=>{for(const _0x20e45c of Object[_0x57c1('0xc7')](_0x35b38a[_0x57c1('0x8b')])){const _0x40038d=this[_0x57c1('0xb6')][_0x57c1('0x8b')][_0x57c1('0x87')][_0x57c1('0x5a')](_0x20e45c);_0x57ade5[_0x57c1('0x69')](_0x57ade5[_0x57c1('0x1d')](_0x40038d)),_0x57ade5[_0x57c1('0x48')](_0x35b38a[_0x57c1('0x8b')][_0x20e45c],_0x40038d,0x0);}}),this[_0x57c1('0xe4')]=!0x0;})[_0x57c1('0xd0')](_0x2fa8f3=>{console['error'](_0x2fa8f3),this[_0x57c1('0xe4')]=!0x0;});}['destroy'](){this[_0x57c1('0xcd')]=null;for(const _0x4c288d of this[_0x57c1('0xbf')][_0x57c1('0xa1')]())_0x4c288d[_0x57c1('0xaf')]();}['loadRevisionData'](_0x43d445){return!_0x43d445||_0x43d445[_0x57c1('0x11')]?Promise[_0x57c1('0x9')]():this[_0x57c1('0x15')][_0x57c1('0xdd')]({'revisionId':_0x43d445['id']})['then'](_0x296ee6=>{_0x43d445[_0x57c1('0x11')]=_0x296ee6[_0x57c1('0x11')];});}['_cleanUp'](){this[_0x57c1('0xb9')]=null,this[_0x57c1('0x5')]();for(const _0x297e6a of this['_changeIdToView'][_0x57c1('0xa1')]())_0x297e6a[_0x57c1('0xaf')]();this[_0x57c1('0xbf')][_0x57c1('0xed')](),this['_changeIdToChange'][_0x57c1('0xed')]();}['_makeTape'](_0x1eaef2){const _0x4b8a28=Array['from'](_0x1eaef2[_0x57c1('0x96')])['filter'](([_0x45426b,_0x165661])=>_0x45426b['startsWith'](_0x57c1('0x57'))&&!_0x165661[_0x57c1('0x41')]),_0xf2bd88=Array['from'](this[_0x57c1('0xb6')][_0x57c1('0x8b')][_0x57c1('0x1d')](_0x1eaef2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4b8a28[_0x57c1('0x93')])for(const _0x2d8caa of _0xf2bd88){const [_0x554d1d,_0x57ece5]=_0x4b8a28[0x0],[,_0x462f3b,_0x1063dd]=_0x554d1d[_0x57c1('0x30')](':');if(_0x57ece5[_0x57c1('0x72')][_0x57c1('0xf2')](_0x2d8caa[_0x57c1('0x73')])&&_0x4b8a28[_0x57c1('0x55')](),(_0x2d8caa[_0x57c1('0xde')]['isEqual'](_0x57ece5[_0x57c1('0x51')])||_0x2d8caa[_0x57c1('0xde')]['isAfter'](_0x57ece5['start']))&&(_0x57c1('0x5c')==_0x462f3b?_0x2d8caa[_0x57c1('0x66')]={'userId':_0x1063dd}:_0x57c1('0xd2')==_0x462f3b&&(_0x2d8caa[_0x57c1('0xc')]={'userId':_0x1063dd})),0x0==_0x4b8a28[_0x57c1('0x93')])break;}return _0xf2bd88;}[_0x57c1('0x60')](_0xea5c77){for(let _0x4a0f4a=0x0;_0x4a0f4a<_0xea5c77['length'];_0x4a0f4a++)'elementStart'==_0xea5c77[_0x4a0f4a]['type']?_0xea5c77[_0x4a0f4a]['item'][_0x57c1('0x3a')]=_0x4a0f4a:_0x57c1('0x7e')==_0xea5c77[_0x4a0f4a]['type']?_0xea5c77[_0x4a0f4a][_0x57c1('0xaa')][_0x57c1('0xdf')]=_0x4a0f4a:(_0xea5c77[_0x4a0f4a]['item'][_0x57c1('0x3a')]=_0x4a0f4a,_0xea5c77[_0x4a0f4a][_0x57c1('0xaa')][_0x57c1('0xdf')]=_0x4a0f4a,_0xea5c77[_0x4a0f4a][_0x57c1('0xf')]=null),_0xea5c77[_0x4a0f4a][_0x57c1('0x6d')]||(_0xea5c77[_0x4a0f4a][_0x57c1('0x6d')]=[],_0xea5c77[_0x4a0f4a]['markersEnd']=[]);for(let _0x6cc880=0x0;_0x6cc880<_0xea5c77['length'];_0x6cc880++)if(_0x57c1('0xd1')==_0xea5c77[_0x6cc880][_0x57c1('0x9a')]){const _0x2cf132=_0xea5c77[_0x6cc880][_0x57c1('0xaa')]['endIndex'];_0xea5c77[_0x6cc880][_0x57c1('0xf')]=_0xea5c77[_0x2cf132]['id'];}else{if(_0x57c1('0x7e')==_0xea5c77[_0x6cc880][_0x57c1('0x9a')]){const _0x357a8a=_0xea5c77[_0x6cc880][_0x57c1('0xaa')][_0x57c1('0x3a')];_0xea5c77[_0x6cc880][_0x57c1('0xf')]=_0xea5c77[_0x357a8a]['id'];}}}['_markInsertions'](_0x4600ca,_0x51fffb){const _0xfd58fe=_0x4600ca[_0x57c1('0x27')](_0x1fc063=>!_0x1fc063[_0x57c1('0x66')]);for(let _0x7acbbb=0x0;_0x7acbbb<_0x51fffb['length'];_0x7acbbb++)_0x51fffb[_0x7acbbb][_0x57c1('0x66')]&&(_0xfd58fe[_0x7acbbb][_0x57c1('0x66')]=_0x51fffb[_0x7acbbb]['isAdded']);}[_0x57c1('0x36')](_0x431fbd){const _0x1a39ab=JSON[_0x57c1('0xf1')](_0x431fbd),_0x2ca77b=this[_0x57c1('0xb6')][_0x57c1('0x4e')][_0x57c1('0xab')][_0x57c1('0x87')],_0x5ceee3=new _0x518d13(_0x2ca77b,_0x1a39ab['map'](_0x1daca4=>this[_0x57c1('0xae')](_0x1daca4)));return this['editor'][_0x57c1('0x11')][_0x57c1('0xe2')](_0x5ceee3);}['_getViewObj'](_0x438eef){const _0x4f0011=this[_0x57c1('0xb6')][_0x57c1('0x4e')]['view'][_0x57c1('0x87')];if(_0x57c1('0xa2')==typeof _0x438eef)return new _0x2b15fa(_0x4f0011,_0x438eef);{const _0x78646f=_0x438eef[_0x57c1('0x70')][_0x57c1('0x7b')](_0xe7ebb7=>this[_0x57c1('0xae')](_0xe7ebb7));return new _0x169145(_0x4f0011,_0x438eef['name'],_0x438eef[_0x57c1('0x10')],_0x78646f);}}[_0x57c1('0x4d')](_0x494cf5,_0x5433fb=null){const _0x4757da=this[_0x57c1('0x6c')]['getRevision'](_0x494cf5),_0x2a6b01=_0x5433fb?this[_0x57c1('0x6c')]['getRevision'](_0x5433fb):null,_0x1f81ae=this[_0x57c1('0x2b')](_0x4757da,_0x2a6b01),_0x23d73b=_0x1f81ae[_0x1f81ae['length']-0x1];for(const _0x1e9fec of _0x1f81ae){_0x1e9fec[_0x57c1('0x8b')]={};for(const _0x3af43a of this[_0x57c1('0xb6')][_0x57c1('0x8b')][_0x57c1('0x87')][_0x57c1('0xc8')]())_0x1e9fec[_0x57c1('0x11')][_0x3af43a]||(_0x1e9fec[_0x57c1('0x11')][_0x3af43a]={'insertions':'[]','deletions':'[]'}),_0x1e9fec['model'][_0x3af43a]={'insertions':this[_0x57c1('0x36')](_0x1e9fec[_0x57c1('0x11')][_0x3af43a][_0x57c1('0x14')]),'deletions':this[_0x57c1('0x36')](_0x1e9fec['data'][_0x3af43a][_0x57c1('0x8e')])};}const _0x4df988={'model':{},'changes':[]};for(const _0x5c0238 of this[_0x57c1('0xb6')][_0x57c1('0x8b')][_0x57c1('0x87')][_0x57c1('0xc8')]()){let _0x55bcb9=null,_0x1150e9=0x0;const _0x1adaf3=new Map(Array[_0x57c1('0x4c')](_0x4757da[_0x57c1('0x8b')][_0x5c0238][_0x57c1('0x14')]['markers'])[_0x57c1('0x27')](([_0x5124f4])=>!_0x5124f4[_0x57c1('0xe0')](_0x57c1('0x57'))));let _0x445f3f=0x0;for(const _0x38f09e of _0x1f81ae){const _0x209cfc=this['_makeTape'](_0x38f09e[_0x57c1('0x8b')][_0x5c0238][_0x57c1('0x14')]);_0x38f09e==_0x4757da?(_0x55bcb9=_0x209cfc,_0x1150e9=_0x55bcb9[_0x57c1('0x93')],_0x55bcb9['forEach'](_0x105ba5=>{_0x105ba5['id']=_0x445f3f++;}),this[_0x57c1('0x60')](_0x55bcb9)):this[_0x57c1('0x9c')](_0x55bcb9,_0x209cfc);const _0x27975e=_0x55bcb9[_0x57c1('0x27')](_0x59ae0e=>!_0x59ae0e[_0x57c1('0x66')])[_0x57c1('0x7b')](_0x38bdc7=>_0x38bdc7['id']),_0x317b90=this[_0x57c1('0x0')](_0x38f09e[_0x57c1('0x8b')][_0x5c0238][_0x57c1('0x8e')]);_0x317b90[_0x57c1('0xcb')](_0x34d6f3=>{_0x34d6f3['isRemoved']?_0x34d6f3['id']=_0x1150e9++:_0x34d6f3['id']=_0x27975e[_0x57c1('0x55')]();}),this[_0x57c1('0x60')](_0x317b90),this[_0x57c1('0x7')](_0x55bcb9,_0x57c1('0x66')),this[_0x57c1('0x7')](_0x317b90,_0x57c1('0xc')),_0x38f09e==_0x4757da&&this[_0x57c1('0xe9')](_0x55bcb9,_0x1adaf3),_0x55bcb9=this[_0x57c1('0x22')](_0x55bcb9,_0x317b90),this[_0x57c1('0x7')](_0x55bcb9,_0x57c1('0xc'));}_0x55bcb9=_0x55bcb9['filter'](_0x593c2c=>!(_0x593c2c['isAdded']&&_0x593c2c['isRemoved']));const _0x4eb580=new Map(_0x23d73b[_0x57c1('0x8b')][_0x5c0238][_0x57c1('0x8e')][_0x57c1('0x96')]),_0x402654=new Set(_0x1adaf3['keys']());for(const _0x4803f4 of _0x4eb580[_0x57c1('0xc7')]())_0x402654[_0x57c1('0xe3')](_0x4803f4);this['_markSuggestions'](_0x55bcb9,_0x402654),this[_0x57c1('0x71')](_0x55bcb9),_0x55bcb9=this[_0x57c1('0xca')](_0x55bcb9),_0x55bcb9=this[_0x57c1('0x6')](_0x55bcb9),_0x55bcb9=this[_0x57c1('0x25')](_0x55bcb9);const {root:_0x36c7e4,changes:_0xf7bd74}=this[_0x57c1('0x50')](_0x55bcb9);_0x4df988[_0x57c1('0x8b')][_0x5c0238]=_0x36c7e4,_0x4df988[_0x57c1('0x4')]=_0x4df988[_0x57c1('0x4')]['concat'](_0xf7bd74);}return _0x4df988;}[_0x57c1('0xe9')](_0x4b46d9,_0x5668ab){for(let _0x36f9ee=0x0;_0x36f9ee<_0x4b46d9[_0x57c1('0x93')];_0x36f9ee++)for(const [_0x2257ee,_0x2454e0]of _0x5668ab)_0x2454e0[_0x57c1('0x51')]['isEqual'](_0x4b46d9[_0x36f9ee][_0x57c1('0xde')])&&_0x4b46d9[_0x36f9ee][_0x57c1('0x6d')][_0x57c1('0x47')](_0x2257ee),_0x2454e0[_0x57c1('0x72')][_0x57c1('0xf2')](_0x4b46d9[_0x36f9ee][_0x57c1('0x73')])&&_0x4b46d9[_0x36f9ee][_0x57c1('0xcc')]['push'](_0x2257ee);}['_joinTapes'](_0x3a0a57,_0x2c3793){let _0x2a640e=[],_0x49291a=0x0,_0x5c6a99=0x0;for(;_0x49291a<_0x3a0a57[_0x57c1('0x93')]||_0x5c6a99<_0x2c3793[_0x57c1('0x93')];){const _0x14febe=_0x3a0a57[_0x49291a]||{},_0x13694e=_0x2c3793[_0x5c6a99]||{};if(_0x14febe['id']==_0x13694e['id'])_0x49291a++,_0x5c6a99++,_0x2a640e['push'](_0x14febe);else{if(_0x13694e[_0x57c1('0xc')]&&_0x14febe[_0x57c1('0x66')]){const {commonTape:_0x2fdc0c,iEnd:_0x257652,jEnd:_0x44c5a9}=this['_threeWayMerge'](_0x3a0a57,_0x49291a,_0x2c3793,_0x5c6a99);_0x2a640e=_0x2a640e['concat'](_0x2fdc0c),_0x49291a=_0x257652,_0x5c6a99=_0x44c5a9;}else _0x13694e[_0x57c1('0xc')]?(_0x5c6a99++,_0x2a640e[_0x57c1('0x47')](_0x13694e)):(_0x49291a++,_0x2a640e[_0x57c1('0x47')](_0x14febe));}}return _0x2a640e;}[_0x57c1('0xb2')](_0x124611,_0x467ac4){const _0x252ebb=[];for(let _0x3bfcdb=0x0;_0x3bfcdb<_0x124611[_0x57c1('0x93')];_0x3bfcdb++){for(let _0x548740=0x0;_0x548740<_0x124611[_0x3bfcdb][_0x57c1('0x6d')]['length'];_0x548740++){const _0x8a786e=_0x124611[_0x3bfcdb][_0x57c1('0x6d')][_0x548740];if(!_0x467ac4[_0x57c1('0x80')](_0x8a786e))continue;const {group:_0x25f9c6,type:_0x31f3d9,authorId:_0x4c404a}=_0x560010(_0x8a786e);_0x57c1('0x8')!=_0x25f9c6||_0x57c1('0x5c')!=_0x31f3d9&&_0x57c1('0xd2')!=_0x31f3d9||(_0x252ebb[_0x57c1('0xda')]({'type':_0x31f3d9,'name':_0x8a786e,'authorId':_0x4c404a}),_0x124611[_0x3bfcdb][_0x57c1('0x6d')][_0x57c1('0x6b')](_0x548740,0x1));}_0x124611[_0x3bfcdb][_0x57c1('0x7a')]=_0x5611b7(_0x124611[_0x3bfcdb]);for(let _0x189da9=0x0;_0x189da9<_0x124611[_0x3bfcdb]['markersEnd'][_0x57c1('0x93')];_0x189da9++){const _0x1907e6=_0x124611[_0x3bfcdb][_0x57c1('0xcc')][_0x189da9];if(!_0x467ac4[_0x57c1('0x80')](_0x1907e6))continue;const {group:_0x59d704,type:_0x154fea}=_0x560010(_0x1907e6);if(_0x57c1('0x8')!=_0x59d704||_0x57c1('0x5c')!=_0x154fea&&_0x57c1('0xd2')!=_0x154fea)continue;_0x124611[_0x3bfcdb]['markersEnd']['splice'](_0x189da9,0x1);const _0x2ad84f=_0x252ebb[_0x57c1('0xd3')](_0x17492c=>_0x17492c[_0x57c1('0xef')]==_0x1907e6);_0x2ad84f>-0x1&&_0x252ebb['splice'](_0x2ad84f,0x1);}}function _0x560010(_0x12fb38){const _0x4abdc9=_0x12fb38['split'](':');return{'group':_0x4abdc9[0x0],'type':_0x4abdc9[0x1],'subType':_0x4abdc9['length']>=0x5?_0x4abdc9[0x2]:null,'id':_0x4abdc9[_0x57c1('0x93')]<0x5?_0x4abdc9[0x2]:_0x4abdc9[0x3],'authorId':_0x4abdc9['length']<0x5?_0x4abdc9[0x3]:_0x4abdc9[0x4],'markerCount':0x6==_0x4abdc9['length']?_0x4abdc9[0x5]:null};}function _0x5611b7(_0x1e25f4){for(let _0x53d429=0x0;_0x53d429<_0x252ebb[_0x57c1('0x93')];_0x53d429++){if(_0x1e25f4[_0x57c1('0x66')]&&'insertion'==_0x252ebb[_0x53d429][_0x57c1('0x9a')])return _0x252ebb[_0x53d429];if(!_0x1e25f4['isAdded']&&!_0x1e25f4[_0x57c1('0xc')]&&'deletion'==_0x252ebb[_0x53d429][_0x57c1('0x9a')])return _0x252ebb[_0x53d429];}return!0x1;}}['_setDistance'](_0x154239,_0x1f697f){let _0x5497fb=0x0,_0x545303=!0x1;const _0x26438b=new Map();for(const _0x235865 of _0x154239)_0x235865[_0x1f697f]?_0x545303&&(_0x5497fb++,_0x545303=!0x1):(_0x5497fb++,_0x545303=!0x0),_0x26438b[_0x57c1('0x19')](_0x235865['id'],_0x5497fb);for(let _0x107a99=0x0;_0x107a99<_0x154239[_0x57c1('0x93')];_0x107a99++){if('isRemoved'==_0x1f697f&&_0x154239[_0x107a99][_0x57c1('0x66')]||_0x57c1('0x66')==_0x1f697f&&_0x154239[_0x107a99]['isRemoved'])continue;if('text'==_0x154239[_0x107a99]['type']){_0x154239[_0x107a99][_0x57c1('0xb5')]=0x0;continue;}const _0x44aa9e=_0x26438b[_0x57c1('0x75')](_0x154239[_0x107a99][_0x57c1('0xf')]),_0x286d5d=_0x26438b['get'](_0x154239[_0x107a99]['id']);_0x154239[_0x107a99]['distance']=_0x44aa9e-_0x286d5d;}}['_getRevisionsRange'](_0x489d39,_0x5ad4f3,_0x5bac93=!0x1){const _0x327cb3=[];let _0x8fba7c=this['repository'][_0x57c1('0xf3')](_0x489d39),_0x2f2212=this[_0x57c1('0x6c')][_0x57c1('0xf3')](_0x5ad4f3);for(-0x1==_0x2f2212&&(_0x2f2212=this[_0x57c1('0x6c')][_0x57c1('0x16')]['length'],_0x5bac93=!0x1);_0x8fba7c<_0x2f2212;)_0x327cb3[_0x57c1('0x47')](this[_0x57c1('0x6c')][_0x57c1('0xdd')](_0x8fba7c)),_0x8fba7c++;return _0x5bac93&&_0x327cb3[_0x57c1('0x47')](this[_0x57c1('0x6c')]['getRevision'](_0x8fba7c)),_0x327cb3;}[_0x57c1('0x13')](_0x5c22bf,_0x266749,_0xff9d93,_0x141a7f){const _0x19ff6b=this['editor'][_0x57c1('0x8b')]['schema'];let _0x1bfad7=_0x266749;for(;_0x5c22bf[_0x1bfad7]&&_0x5c22bf[_0x1bfad7][_0x57c1('0x66')];)_0x1bfad7++;let _0x411a4a=_0x141a7f;for(;_0xff9d93[_0x411a4a]&&_0xff9d93[_0x411a4a]['isRemoved'];)_0x411a4a++;_0x5ecc33(_0x5c22bf,_0x266749,_0x1bfad7),_0x5ecc33(_0xff9d93,_0x141a7f,_0x411a4a);const _0x34637=_0xff9d93['slice'](_0x141a7f,_0x411a4a)['concat'](_0x5c22bf[_0x57c1('0x67')](_0x266749,_0x1bfad7));return _0x34637[_0x57c1('0xc0')]((_0x104493,_0x30c32a)=>_0x104493[_0x57c1('0xdc')]!=_0x30c32a[_0x57c1('0xdc')]?_0x104493[_0x57c1('0xdc')]-_0x30c32a[_0x57c1('0xdc')]:_0x104493['level']!=_0x30c32a[_0x57c1('0x90')]?_0x104493[_0x57c1('0x90')]-_0x30c32a['level']:_0x104493['distance']!=_0x30c32a[_0x57c1('0xb5')]?_0x30c32a['distance']-_0x104493['distance']:!!_0x104493[_0x57c1('0x66')]!=!!_0x30c32a['isAdded']?-0x1==_0x104493['side']||0x0==_0x104493[_0x57c1('0xdc')]?_0x104493['isAdded']?-0x1:0x1:_0x104493['isAdded']?0x1:-0x1:_0x104493[_0x57c1('0x24')]-_0x30c32a[_0x57c1('0x24')]),{'commonTape':_0x34637,'iEnd':_0x1bfad7,'jEnd':_0x411a4a};function _0x5ecc33(_0x3d4e3c,_0x121ffc,_0x416640){let _0x11415a=-0x1,_0x51c2d4=Number[_0x57c1('0xc4')],_0x1d201e=!0x0;for(let _0x1b3a3f=_0x121ffc;_0x1b3a3f<_0x416640;_0x1b3a3f++)if(_0x19ff6b[_0x57c1('0x82')](_0x3d4e3c[_0x1b3a3f][_0x57c1('0xaa')])||(_0x1d201e=!0x1),_0x3d4e3c[_0x1b3a3f][_0x57c1('0xaa')][_0x57c1('0x3a')]<_0x121ffc&&(_0x11415a=_0x1b3a3f),_0x3d4e3c[_0x1b3a3f][_0x57c1('0xaa')]['endIndex']>=_0x416640){_0x51c2d4=_0x1b3a3f;break;}_0x1d201e&&(_0x11415a=_0x416640-0x1);for(let _0x105a9e=_0x121ffc;_0x105a9e<_0x416640;_0x105a9e++)_0x3d4e3c[_0x105a9e][_0x57c1('0xdc')]=_0x105a9e<=_0x11415a?-0x1:_0x105a9e<_0x51c2d4?0x0:0x1,_0x3d4e3c[_0x105a9e][_0x57c1('0x24')]=_0x105a9e;let _0x496485=0x0;for(let _0x274974=_0x121ffc;_0x274974<=_0x11415a;_0x274974++)0x0==_0x3d4e3c[_0x274974][_0x57c1('0xb5')]?_0x3d4e3c[_0x274974][_0x57c1('0x90')]=_0x496485:(_0x496485++,_0x3d4e3c[_0x274974][_0x57c1('0x90')]=_0x496485,_0x496485++);for(let _0x5cc73f=_0x121ffc;_0x5cc73f<_0x416640;_0x5cc73f++)0x0==_0x3d4e3c[_0x5cc73f][_0x57c1('0xdc')]&&(_0x3d4e3c[_0x5cc73f]['level']=_0x496485);_0x496485=0x0;for(let _0x5640ff=_0x416640-0x1;_0x5640ff>=_0x51c2d4;_0x5640ff--)0x0==_0x3d4e3c[_0x5640ff][_0x57c1('0xb5')]?_0x3d4e3c[_0x5640ff]['level']=_0x496485:(_0x496485--,_0x3d4e3c[_0x5640ff][_0x57c1('0x90')]=_0x496485,_0x496485--);}}[_0x57c1('0x71')](_0x452bd0){const _0x6dafa9=new Map();for(let _0x3f7012=0x1;_0x3f7012<_0x452bd0[_0x57c1('0x93')];_0x3f7012++){let _0x3b406e,_0x175a3a,_0x3c4125;if(_0x57c1('0x20')==_0x452bd0[_0x3f7012][_0x57c1('0x9a')])continue;if(_0x452bd0[_0x3f7012]['type']!=_0x452bd0[_0x3f7012-0x1]['type'])continue;if(_0x452bd0[_0x3f7012][_0x57c1('0x66')]&&_0x452bd0[_0x3f7012-0x1][_0x57c1('0xc')])_0x3b406e=_0x452bd0[_0x3f7012],_0x175a3a=_0x452bd0[_0x3f7012-0x1],_0x3c4125=_0x3f7012-0x1;else{if(!_0x452bd0[_0x3f7012][_0x57c1('0xc')]||!_0x452bd0[_0x3f7012-0x1][_0x57c1('0x66')])continue;_0x3b406e=_0x452bd0[_0x3f7012-0x1],_0x175a3a=_0x452bd0[_0x3f7012],_0x3c4125=_0x3f7012;}const _0x5d4465=_0x3b406e['level']==_0x175a3a[_0x57c1('0x90')],_0x4ff756=Math['abs'](_0x3b406e['level'])<Math[_0x57c1('0x83')](_0x175a3a[_0x57c1('0x90')])&&0x0==_0x175a3a[_0x57c1('0xb5')];(_0x5d4465||_0x4ff756)&&(_0x6dafa9[_0x57c1('0x19')](_0x175a3a['id'],_0x3b406e['id']),_0x452bd0[_0x57c1('0x6b')](_0x3c4125,0x1),_0x3f7012--,_0x3b406e['isAdded']=!0x1);}for(let _0x210888=0x0;_0x210888<_0x452bd0[_0x57c1('0x93')];_0x210888++)_0x6dafa9[_0x57c1('0x80')](_0x452bd0[_0x210888][_0x57c1('0xf')])&&(_0x452bd0[_0x210888][_0x57c1('0xf')]=_0x6dafa9[_0x57c1('0x75')](_0x452bd0[_0x210888][_0x57c1('0xf')]));}[_0x57c1('0xca')](_0x28aa0c){const _0x1ebe89=new Set(_0x28aa0c[_0x57c1('0x7b')](_0x598db6=>_0x598db6['id']));for(let _0xaccc0a=0x0;_0xaccc0a<_0x28aa0c[_0x57c1('0x93')];_0xaccc0a++)_0x1ebe89[_0x57c1('0x80')](_0x28aa0c[_0xaccc0a][_0x57c1('0xf')])||0x0==_0x28aa0c[_0xaccc0a][_0x57c1('0xb5')]||(_0x28aa0c[_0xaccc0a][_0x57c1('0xa9')]=!0x0);return _0x28aa0c['filter'](_0x2317f8=>!_0x2317f8[_0x57c1('0xa9')]);}['_markMismatchedRemovedTags'](_0x430634){const _0x2852d5=new Set();for(let _0x170ad6=0x0;_0x170ad6<_0x430634['length'];_0x170ad6++){if(_0x2852d5[_0x57c1('0x80')](_0x430634[_0x170ad6]['id'])&&_0x430634[_0x170ad6][_0x57c1('0xc')]&&(_0x430634[_0x170ad6][_0x57c1('0xa9')]=!0x0),_0x430634[_0x170ad6][_0x57c1('0xa9')])continue;if(0x0==_0x430634[_0x170ad6][_0x57c1('0xb5')])continue;if(_0x57c1('0xd1')!=_0x430634[_0x170ad6]['type'])continue;if(null==_0x430634[_0x170ad6][_0x57c1('0xf')])continue;let _0x2e4ddb=_0x170ad6+0x1,_0x28ba8d=0x0;for(;_0x430634[_0x2e4ddb]['id']!=_0x430634[_0x170ad6][_0x57c1('0xf')];)_0x57c1('0xd1')==_0x430634[_0x2e4ddb]['type']?_0x28ba8d++:_0x57c1('0x7e')==_0x430634[_0x2e4ddb]['type']&&_0x28ba8d--,_0x2e4ddb++;if(0x0!=_0x28ba8d){if(_0x430634[_0x170ad6]['isRemoved'])_0x430634[_0x170ad6][_0x57c1('0xa9')]=!0x0;else for(;_0x2e4ddb!=_0x170ad6;)_0x430634[_0x2e4ddb][_0x57c1('0xc')]&&0x0!=_0x430634[_0x2e4ddb][_0x57c1('0xb5')]&&(_0x430634[_0x2e4ddb][_0x57c1('0xa9')]=!0x0,_0x2852d5[_0x57c1('0x4f')](_0x430634[_0x2e4ddb][_0x57c1('0xf')])),_0x2e4ddb--;}}return _0x430634[_0x57c1('0x27')](_0x57cd57=>!_0x57cd57[_0x57c1('0xa9')]);}['_removeUnsupportedChanges'](_0x53e440){const _0x16ac43=this[_0x57c1('0xb6')][_0x57c1('0x8b')]['schema'];for(let _0x3fbc89=0x0;_0x3fbc89<_0x53e440[_0x57c1('0x93')];_0x3fbc89++){if(!_0x53e440[_0x3fbc89][_0x57c1('0x66')]&&!_0x53e440[_0x3fbc89]['isRemoved'])continue;if(0x0==_0x53e440[_0x3fbc89]['distance'])continue;const _0x1bdb35=_0x53e440[_0x3fbc89][_0x57c1('0xaa')];_0x16ac43[_0x57c1('0x46')](_0x1bdb35)||_0x16ac43[_0x57c1('0x62')](_0x1bdb35)||(_0x53e440[_0x3fbc89]['isAdded']&&delete _0x53e440[_0x3fbc89][_0x57c1('0x66')],_0x53e440[_0x3fbc89][_0x57c1('0xc')]&&(_0x53e440[_0x3fbc89][_0x57c1('0xa9')]=!0x0));}return _0x53e440[_0x57c1('0x27')](_0x17028f=>!_0x17028f[_0x57c1('0xa9')]);}['_makeModelFromTape'](_0x26c585){const _0x5f3a7d=new _0x75f81d(),_0x363fa5=[],_0x4f1240=new Map(),_0x4ee3b0=this[_0x57c1('0xb6')][_0x57c1('0x8b')],_0x2d4fe9=[_0x5f3a7d];let _0x3a58dc=null,_0x5dbf24=null;for(let _0x6a394a=0x0;_0x6a394a<_0x26c585[_0x57c1('0x93')];_0x6a394a++){let _0x3836f7,_0x2dc22a;if(_0x57c1('0xd1')==_0x26c585[_0x6a394a][_0x57c1('0x9a')]){const _0x4b7c58=new _0x3a7d02(_0x26c585[_0x6a394a]['item'][_0x57c1('0xef')],_0x26c585[_0x6a394a]['item'][_0x57c1('0x31')]());_0x3836f7=_0x4ee3b0['createPositionAt'](_0x2d4fe9[0x0],_0x57c1('0x72')),_0x6152d2(_0x3836f7,_0x4b7c58),_0x2dc22a=_0x4ee3b0['createPositionAt'](_0x4b7c58,0x0),_0x2d4fe9[_0x57c1('0xda')](_0x4b7c58);}else{if(_0x57c1('0x7e')==_0x26c585[_0x6a394a][_0x57c1('0x9a')]){const _0xee0470=_0x2d4fe9['shift']();_0x3836f7=_0x4ee3b0[_0x57c1('0x6f')](_0xee0470,_0x57c1('0x72')),_0x2dc22a=_0x4ee3b0[_0x57c1('0x35')](_0xee0470);}else{const _0x285a06=new _0x121069(_0x26c585[_0x6a394a]['item']['data'],_0x26c585[_0x6a394a]['item'][_0x57c1('0x31')]());_0x3836f7=_0x4ee3b0[_0x57c1('0x6f')](_0x2d4fe9[0x0],'end'),_0x6152d2(_0x3836f7,_0x285a06),_0x2dc22a=_0x3836f7[_0x57c1('0x98')](_0x26c585[_0x6a394a][_0x57c1('0xaa')][_0x57c1('0x94')]);}}for(const _0x4940b5 of _0x26c585[_0x6a394a][_0x57c1('0x6d')])_0x4f1240[_0x57c1('0x19')](_0x4940b5,{'start':_0x3836f7,'end':null});const _0xfd9de0=_0x26c585[_0x6a394a][_0x57c1('0x66')]||_0x26c585[_0x6a394a]['isRemoved']||_0x26c585[_0x6a394a][_0x57c1('0x7a')],_0x41f0fc=_0x6a394a==_0x26c585[_0x57c1('0x93')]-0x1;if(_0x3a58dc&&(_0xac16c2(_0x3a58dc,_0x26c585[_0x6a394a])||_0x41f0fc)){const _0x5a5798=_0x41f0fc?_0x2dc22a:_0x3836f7,_0x159bea=_0x4ee3b0[_0x57c1('0x37')][_0x57c1('0x46')](_0x3a58dc['item'])&&!_0x4ee3b0[_0x57c1('0x37')][_0x57c1('0xb4')](_0x3a58dc['item']),_0x150ef9=_0x4ee3b0[_0x57c1('0x37')][_0x57c1('0x62')](_0x3a58dc[_0x57c1('0xaa')]),_0x4b5d7a=_0x5dbf24[_0x57c1('0x8f')]==_0x5a5798[_0x57c1('0x65')]&&_0x5a5798[_0x57c1('0x52')],_0x38c8d3=_0x5a5798[_0x57c1('0x74')]==_0x5dbf24[_0x57c1('0x65')]&&_0x5dbf24['isAtEnd'];if(!(_0x159bea&&_0x4b5d7a||_0x150ef9&&_0x38c8d3)){const _0x44c988=_0x4ee3b0[_0x57c1('0x7d')](_0x5dbf24,_0x5a5798),_0x1301a0=_0x3a58dc[_0x57c1('0x66')]?_0x57c1('0x4f'):_0x57c1('0x69'),_0x5d841d=_0x3a58dc[_0x57c1('0x7a')]?_0x3a58dc[_0x57c1('0x7a')]['authorId']:_0x3a58dc[_0x57c1('0x66')]?_0x3a58dc[_0x57c1('0x66')][_0x57c1('0xa8')]:_0x3a58dc['isRemoved'][_0x57c1('0xa8')],_0x1e967f=this[_0x57c1('0xb6')][_0x57c1('0x26')][_0x57c1('0x75')]('Users')['getUser'](_0x5d841d),_0x4e75bd=new _0x5022ee({'author':_0x1e967f,'type':_0x1301a0,'data':{'isSuggestion':!!_0x3a58dc[_0x57c1('0x7a')]&&_0x3a58dc[_0x57c1('0x7a')][_0x57c1('0x9a')]},'createdAt':new Date()});_0x363fa5[_0x57c1('0x47')](_0x4e75bd),_0x5f3a7d['markers']['set'](_0x57c1('0x57')+_0x4e75bd['id'],_0x44c988);}_0x3a58dc=null,_0x5dbf24=null;}!_0x3a58dc&&_0xfd9de0&&(_0x3a58dc=_0x26c585[_0x6a394a],_0x5dbf24=_0x3836f7);for(const _0x4d6e47 of _0x26c585[_0x6a394a][_0x57c1('0xcc')]){_0x4f1240[_0x57c1('0x75')](_0x4d6e47)['end']=_0x2dc22a;}}for(const [_0x251019,_0xe2f5fa]of _0x4f1240){const _0x17dad7=this['editor']['model'][_0x57c1('0x7d')](_0xe2f5fa[_0x57c1('0x51')],_0xe2f5fa['end']);_0x5f3a7d[_0x57c1('0x96')][_0x57c1('0x19')](_0x251019,_0x17dad7);}return{'root':_0x5f3a7d,'changes':_0x363fa5};function _0xac16c2(_0x12c48d,_0x3d29a0){return function(_0x2b9958,_0x459404){if(!_0x2b9958['isAdded']&&!_0x459404['isAdded'])return!0x1;if(_0x2b9958[_0x57c1('0x66')]&&_0x459404[_0x57c1('0x66')]&&_0x2b9958[_0x57c1('0x66')][_0x57c1('0xa8')]==_0x459404[_0x57c1('0x66')]['userId'])return!0x1;return!0x0;}(_0x12c48d,_0x3d29a0)||function(_0x54e9f1,_0x8fdf58){if(!_0x54e9f1['isRemoved']&&!_0x8fdf58[_0x57c1('0xc')])return!0x1;if(_0x54e9f1[_0x57c1('0xc')]&&_0x8fdf58[_0x57c1('0xc')]&&_0x54e9f1[_0x57c1('0xc')]['userId']==_0x8fdf58[_0x57c1('0xc')][_0x57c1('0xa8')])return!0x1;return!0x0;}(_0x12c48d,_0x3d29a0)||function(_0x3e3e73,_0x3033f4){if(!_0x3e3e73[_0x57c1('0x7a')]&&!_0x3033f4[_0x57c1('0x7a')])return!0x1;if(_0x3e3e73['isSuggestion']&&!_0x3033f4[_0x57c1('0x7a')]||!_0x3e3e73['isSuggestion']&&_0x3033f4[_0x57c1('0x7a')])return!0x0;if(_0x3e3e73[_0x57c1('0x7a')][_0x57c1('0x9a')]==_0x3033f4['isSuggestion'][_0x57c1('0x9a')]&&_0x3e3e73[_0x57c1('0x7a')][_0x57c1('0xbb')]==_0x3033f4['isSuggestion'][_0x57c1('0xbb')])return!0x1;return!0x0;}(_0x12c48d,_0x3d29a0);}}[_0x57c1('0xad')](){this[_0x57c1('0xb6')][_0x57c1('0x44')][_0x57c1('0xb7')](_0x57c1('0x3c'))['dataToMarker']({'view':_0x57c1('0x34')}),this[_0x57c1('0xb6')][_0x57c1('0x44')][_0x57c1('0xb7')](_0x57c1('0x1e'))[_0x57c1('0x2d')]({'model':_0x57c1('0x34'),'view':_0xc2a9b7=>{const _0xda964a=_0xc2a9b7[_0x57c1('0xd4')][_0x57c1('0x30')](':')[0x1],_0x2177fa=this[_0x57c1('0x85')](_0xda964a);if(!_0x2177fa)return null;const _0x51b6ec='add'==_0x2177fa[_0x57c1('0x9a')]?_0x57c1('0x5c'):'deletion',_0x2653e6=[_0x57c1('0x33'),_0x57c1('0xbd')+_0x51b6ec];return _0x2177fa[_0x57c1('0x11')]['isSuggestion']&&_0x2653e6['push'](_0x57c1('0xbd')+_0x51b6ec+'-new'),this[_0x57c1('0xb9')]==_0x2177fa&&_0x2653e6[_0x57c1('0x47')]('ck-suggestion-marker--active'),{'classes':_0x2653e6,'attributes':{'data-change-id':_0xda964a}};}}),this[_0x57c1('0xb6')]['conversion'][_0x57c1('0xb7')]('upcast')[_0x57c1('0x4f')](_0x4c2d7a=>{_0x4c2d7a['on']('element:pre',(_0xf69765,_0x462f1d,_0x32ff55)=>{const _0x1ce832=_0x462f1d[_0x57c1('0x3e')][_0x57c1('0xb3')](0x0);if(!_0x1ce832||!_0x1ce832['is'](_0x57c1('0xc6'),_0x57c1('0x6a')))return;if(!_0x32ff55[_0x57c1('0x9b')]['consume'](_0x1ce832,{'attributes':[_0x57c1('0x4b'),'vid_end']}))return;const _0x473257=_0x462f1d[_0x57c1('0x1f')][_0x57c1('0x51')][_0x57c1('0x8f')];_0x32ff55[_0x57c1('0x5d')]['setAttribute']('vid_start',_0x1ce832[_0x57c1('0x5b')]('vid_start'),_0x473257),_0x32ff55[_0x57c1('0x5d')]['setAttribute']('vid_end',_0x1ce832['getAttribute'](_0x57c1('0xd5')),_0x473257);},{'priority':'low'});}),this['editor']['conversion'][_0x57c1('0xb7')](_0x57c1('0x3c'))[_0x57c1('0x4f')](_0x512e01=>{_0x512e01['on']('element',(_0x569df3,_0xfd6919,_0x43556a)=>{if(!_0x43556a[_0x57c1('0x9b')]['consume'](_0xfd6919[_0x57c1('0x3e')],{'attributes':[_0x57c1('0x4b'),'vid_end']}))return;if(_0xfd6919[_0x57c1('0x1f')]['isCollapsed'])return;const _0x52b828=_0xfd6919[_0x57c1('0x1f')][_0x57c1('0x51')][_0x57c1('0x8f')];_0x52b828[_0x57c1('0x1')]('vid_start')||_0x52b828[_0x57c1('0x1')](_0x57c1('0x9d'))||(_0x43556a['writer'][_0x57c1('0x2f')]('vid_start',_0xfd6919['viewItem'][_0x57c1('0x5b')]('vid_start'),_0x52b828),_0x43556a['writer'][_0x57c1('0x2f')](_0x57c1('0xd5'),_0xfd6919['viewItem']['getAttribute'](_0x57c1('0xd5')),_0x52b828));},{'priority':_0x57c1('0xcf')});}),this[_0x57c1('0xb6')][_0x57c1('0x44')][_0x57c1('0xb7')](_0x57c1('0x3c'))[_0x57c1('0x8c')]({'view':{'name':_0x57c1('0xb0'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x118660=>_0x118660[_0x57c1('0x5b')](_0x57c1('0x9d'))}}),this[_0x57c1('0xb6')][_0x57c1('0x8b')]['schema']['on'](_0x57c1('0xa4'),(_0x2e680f,[,_0x43cbee])=>{[_0x57c1('0x4b'),_0x57c1('0xd5'),_0x57c1('0x9d')]['includes'](_0x43cbee)&&(_0x2e680f[_0x57c1('0x8a')]=!0x0,_0x2e680f[_0x57c1('0x76')]());},{'priority':'highest'}),this[_0x57c1('0xb6')][_0x57c1('0x44')][_0x57c1('0xb7')](_0x57c1('0x43'))[_0x57c1('0x4f')](_0x3d2505=>{_0x3d2505['on'](_0x57c1('0x58'),(_0x1821b9,_0x48973d,_0x1f3620)=>{if('\x20'!=_0x48973d[_0x57c1('0xaa')][_0x57c1('0x11')]||_0x48973d[_0x57c1('0xaa')][_0x57c1('0x65')][_0x57c1('0xeb')]>0x1)return;if(!_0x1f3620[_0x57c1('0x9b')][_0x57c1('0x3f')](_0x48973d['item'],_0x1821b9[_0x57c1('0xef')]))return;const _0x3094d8=_0x1f3620[_0x57c1('0x5d')],_0x15b9f9=_0x1f3620[_0x57c1('0x3d')][_0x57c1('0x91')](_0x48973d['range']);_0x3094d8[_0x57c1('0x4a')](_0x15b9f9,_0x3094d8[_0x57c1('0x3')](_0x57c1('0xb0')));});}),this[_0x57c1('0xb6')][_0x57c1('0x44')][_0x57c1('0xb7')](_0x57c1('0x43'))[_0x57c1('0xa3')]({'model':'revision'}),this[_0x57c1('0xb6')][_0x57c1('0x4e')][_0x57c1('0x2e')]['on']('addMarker:revision',function(_0x18d80a){const _0x20abdb=_0x18d80a[_0x57c1('0x26')][_0x57c1('0x75')]('RevisionViewer');return(_0x62a698,_0xbd2624,_0x4c5848)=>{const _0x8f83ac=_0xbd2624[_0x57c1('0xd4')][_0x57c1('0x30')](':')[0x1],_0x370b7=_0x20abdb[_0x57c1('0x85')](_0x8f83ac);if(!_0x370b7)return null;const _0x183560=_0x57c1('0x4f')==_0x370b7['type']?_0x57c1('0x30'):_0x57c1('0xa6');if(!_0x4c5848[_0x57c1('0x9b')][_0x57c1('0xf0')](_0xbd2624[_0x57c1('0xea')],_0x62a698[_0x57c1('0xef')]))return;const _0x4d0419=_0xbd2624[_0x57c1('0xea')]['getWalker'](),_0x148244=_0xbd2624[_0x57c1('0xea')][_0x57c1('0x51')],_0x4813d5=_0x18d80a[_0x57c1('0x8b')]['schema'];let _0x36fff2=null,_0x5483ed=null,_0x945f6e=!0x1,_0x52cfde=!0x1;for(const _0x1a7c5f of _0x4d0419){const _0x1a1902=_0x1a7c5f[_0x57c1('0xaa')];_0x945f6e=_0x945f6e||_0x4813d5[_0x57c1('0xce')](_0x1a1902);const _0x29b743=_0x4c5848[_0x57c1('0x3d')]['toViewElement'](_0x1a1902);if(_0x29b743&&_0x29b743[_0x57c1('0x56')](_0x57c1('0x61')))return;_0x57c1('0x7e')==_0x1a7c5f[_0x57c1('0x9a')]&&(_0x4813d5[_0x57c1('0x46')](_0x1a1902)&&!_0x4813d5['isLimit'](_0x1a1902)&&(_0x1a1902[_0x57c1('0xb8')]||_0x148244[_0x57c1('0x8d')]?_0x36fff2&&_0x36fff2[_0x57c1('0x65')]==_0x1a1902||(_0x36fff2=_0x1a1902,_0x6bcc03(_0x1a7c5f[_0x57c1('0xde')]),_0x52cfde=!0x0):_0x5483ed=_0x5483ed||_0x1a7c5f[_0x57c1('0xde')]));}function _0x6bcc03(_0x38642c){const _0x514524=_0x4c5848[_0x57c1('0x5d')]['createUIElement'](_0x57c1('0xb0'),{'class':_0x57c1('0xbd')+_0x183560}),_0x1e98c0=_0x4c5848[_0x57c1('0x3d')][_0x57c1('0xdb')](_0x38642c);_0x370b7['data'][_0x57c1('0x7a')]&&_0x4c5848[_0x57c1('0x5d')][_0x57c1('0x84')](_0x57c1('0xbd')+_0x183560+_0x57c1('0xd8'),_0x514524),_0x20abdb[_0x57c1('0xb9')]==_0x370b7&&_0x4c5848[_0x57c1('0x5d')][_0x57c1('0x84')](_0x57c1('0xc3'),_0x514524),_0x4c5848[_0x57c1('0x5d')][_0x57c1('0x48')](_0x1e98c0,_0x514524),_0x4c5848[_0x57c1('0x3d')][_0x57c1('0xec')](_0x514524,_0xbd2624[_0x57c1('0xd4')]);}_0x945f6e||_0x52cfde||!_0x5483ed||_0x6bcc03(_0x5483ed);};}(this['editor']),{'priority':_0x57c1('0x2a')}),this[_0x57c1('0xb6')][_0x57c1('0x4e')][_0x57c1('0x2e')]['on'](_0x57c1('0x77'),(_0x5b690c,_0x21cce1,_0x125493)=>{const _0x4abe14=_0x125493['mapper'][_0x57c1('0x88')](_0x21cce1[_0x57c1('0xd4')]);if(_0x4abe14)for(const _0x95a486 of _0x4abe14)(_0x95a486[_0x57c1('0x59')]('ck-suggestion-marker-split')||_0x95a486['hasClass']('ck-suggestion-marker-merge'))&&(_0x125493[_0x57c1('0x3d')][_0x57c1('0xd9')](_0x95a486,_0x21cce1[_0x57c1('0xd4')]),_0x125493['writer'][_0x57c1('0x69')](_0x95a486));},{'priority':_0x57c1('0x2a')}),this[_0x57c1('0xb6')]['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xdd97bd,_0x574e69,_0x48d179)=>{const _0x2c3a5e=_0x574e69['markerName'][_0x57c1('0x30')](':')[0x1],_0x58dba5=this[_0x57c1('0x85')](_0x2c3a5e);if(!_0x58dba5)return null;const _0x466a7e=_0x57c1('0x4f')==_0x58dba5[_0x57c1('0x9a')]?_0x57c1('0x30'):_0x57c1('0xa6');if(_0x48d179[_0x57c1('0x9b')][_0x57c1('0xf0')](_0x574e69['markerRange'],_0xdd97bd[_0x57c1('0xef')]))for(const _0x31e5a6 of _0x574e69[_0x57c1('0xea')]['getItems']()){if(!_0x31e5a6['is'](_0x57c1('0xc6'),_0x57c1('0x45')))continue;const _0x486f16=_0x48d179[_0x57c1('0x5d')][_0x57c1('0x79')](_0x57c1('0xb0'),{'class':_0x57c1('0xbd')+_0x466a7e}),_0x2333ce=_0x48d179[_0x57c1('0x3d')][_0x57c1('0xdb')](this[_0x57c1('0xb6')][_0x57c1('0x8b')][_0x57c1('0xa0')](_0x31e5a6));_0x58dba5['data'][_0x57c1('0x7a')]&&_0x48d179[_0x57c1('0x5d')][_0x57c1('0x84')]('ck-suggestion-marker-'+_0x466a7e+_0x57c1('0xd8'),_0x486f16),this['activeChange']==_0x58dba5&&_0x48d179['writer']['addClass'](_0x57c1('0xc3'),_0x486f16),_0x48d179[_0x57c1('0x5d')][_0x57c1('0x48')](_0x2333ce,_0x486f16),_0x48d179[_0x57c1('0x3d')]['bindElementToMarker'](_0x486f16,_0x574e69['markerName']);}},{'priority':'high'}),this[_0x57c1('0xb6')]['conversion'][_0x57c1('0xb7')]('upcast')['dataToMarker']({'view':_0x57c1('0x8')}),this[_0x57c1('0xb6')][_0x57c1('0x44')][_0x57c1('0xb7')](_0x57c1('0x43'))[_0x57c1('0xa3')]({'model':_0x57c1('0x8')}),this[_0x57c1('0xb6')][_0x57c1('0x44')][_0x57c1('0xb7')](_0x57c1('0x1e'))[_0x57c1('0x2d')]({'model':_0x57c1('0x8'),'view':_0x5da443=>{const _0x513c30=_0x5da443[_0x57c1('0xd4')][_0x57c1('0x30')](':')[0x1];return _0x57c1('0x5c')!=_0x513c30&&_0x57c1('0xd2')!=_0x513c30?null:{'classes':['ck-suggestion-preview-marker',_0x57c1('0xc9')+_0x513c30]};}}),this[_0x57c1('0xb6')]['editing']['downcastDispatcher']['on'](_0x57c1('0xc1'),J(this['editor'],'merge'),{'priority':'high'}),this[_0x57c1('0xb6')][_0x57c1('0x4e')][_0x57c1('0x2e')]['on']('addMarker:suggestion:insertion',J(this[_0x57c1('0xb6')],_0x57c1('0x30')),{'priority':_0x57c1('0x2a')}),this[_0x57c1('0xb6')]['editing'][_0x57c1('0x2e')]['on'](_0x57c1('0x7c'),(_0x1d0e5f,_0x4a2105,_0x4f8fde)=>{const _0x405fb3=_0x4f8fde['mapper'][_0x57c1('0x88')](_0x4a2105[_0x57c1('0xd4')]);if(_0x405fb3)for(const _0x413d1f of _0x405fb3)_0x413d1f['is'](_0x57c1('0xe1'))&&(_0x4f8fde[_0x57c1('0x3d')][_0x57c1('0xd9')](_0x413d1f,_0x4a2105[_0x57c1('0xd4')]),_0x4f8fde['writer'][_0x57c1('0x69')](_0x413d1f));},{'priority':'high'});}[_0x57c1('0x85')](_0x16c86f){return this[_0x57c1('0xa')]['get'](_0x16c86f);}[_0x57c1('0x63')](_0x5efa38){if(this[_0x57c1('0xbf')][_0x57c1('0x80')](_0x5efa38['id']))return this['_changeIdToView']['get'](_0x5efa38['id']);const _0x2c3609=new _0x4a6412(this[_0x57c1('0xb6')][_0x57c1('0x49')],_0x5efa38),_0x108144=this[_0x57c1('0xb6')][_0x57c1('0x8b')]['markers'][_0x57c1('0x75')](_0x57c1('0x57')+_0x5efa38['id']);return _0x2c3609[_0x57c1('0x6e')]=()=>_0x3b00f6(this[_0x57c1('0xb6')][_0x57c1('0x4e')],_0x108144),this[_0x57c1('0xbf')][_0x57c1('0x19')](_0x5efa38['id'],_0x2c3609),_0x2c3609;}[_0x57c1('0x1b')](){this['on'](_0x57c1('0x54'),(_0x3555ce,_0x1db5b6,_0x5178d8,_0x1ecba1)=>{_0x1ecba1&&this[_0x57c1('0x92')][_0x57c1('0x69')](_0x1ecba1),_0x5178d8&&(this[_0x57c1('0x92')][_0x57c1('0x4f')]({'view':_0x5178d8,'stackId':_0x57c1('0x7f'),'position':{'target':_0x5178d8[_0x57c1('0x6e')]}}),this[_0x57c1('0x92')]['showStack']('revisionHistoryLabel'));}),this['on'](_0x57c1('0x23'),(_0x44ea8e,_0x75ddbe,_0x48dd26,_0x562d8e)=>{this[_0x57c1('0xcd')]=_0x48dd26?this['_getViewForChange'](_0x48dd26):null,this[_0x57c1('0xb6')][_0x57c1('0x8b')][_0x57c1('0x2')](_0x511c06=>{_0x562d8e&&_0x511c06['updateMarker']('revision:'+_0x562d8e['id']),_0x48dd26&&_0x511c06[_0x57c1('0x2c')](_0x57c1('0x57')+_0x48dd26['id']);});});const _0x22f93a=this['editor'][_0x57c1('0x8b')][_0x57c1('0x87')][_0x57c1('0x28')];_0x22f93a['on'](_0x57c1('0x17'),(_0x4899b1,_0x531786)=>{if(!_0x531786[_0x57c1('0x86')])return;const _0x256503=_0x22f93a[_0x57c1('0xb')]();for(const _0x1add21 of this[_0x57c1('0xb6')][_0x57c1('0x8b')][_0x57c1('0x96')][_0x57c1('0x53')](_0x57c1('0x34'))){if(_0x1add21['getRange']()['containsRange'](_0x256503,!0x0)){const _0xce411=_0x1add21['name'][_0x57c1('0x30')](':')[0x1];return void(this['activeChange']=this[_0x57c1('0x85')](_0xce411));}}this['activeChange']=null;}),this[_0x57c1('0xd')](this[_0x57c1('0xb6')][_0x57c1('0x4e')][_0x57c1('0xab')][_0x57c1('0x87')],_0x57c1('0xc5'),(_0x322838,_0x2b9222)=>{if(this[_0x57c1('0xb9')])return;const _0x51dd29=this[_0x57c1('0xac')](_0x2b9222[_0x57c1('0x97')]),_0x2d5ec9=this[_0x57c1('0xa')]['get'](_0x51dd29);this['activeView']=_0x2d5ec9?this[_0x57c1('0x63')](_0x2d5ec9):null;});}['_findChangeIdFromDomTarget'](_0x5ae54a){do{const _0x4e7c35=_0x5ae54a[_0x57c1('0x5b')]('data-change-id');if(_0x4e7c35)return _0x4e7c35;_0x5ae54a=_0x5ae54a['parent'];}while(_0x5ae54a);return null;}[_0x57c1('0x5')](){this[_0x57c1('0xb6')]['model'][_0x57c1('0x2')](_0x6fb95f=>{for(const _0x3002ff of this[_0x57c1('0xb6')][_0x57c1('0x8b')][_0x57c1('0x96')])_0x6fb95f['removeMarker'](_0x3002ff);});}}function J(_0x10a0cc,_0x29774a){return(_0x13773c,_0x231bc8,_0x5795bd)=>{if(!_0x5795bd[_0x57c1('0x9b')][_0x57c1('0xf0')](_0x231bc8[_0x57c1('0xea')],_0x13773c[_0x57c1('0xef')]))return;const _0x492746=_0x231bc8[_0x57c1('0xea')][_0x57c1('0xd7')](),_0x2734cc=_0x231bc8[_0x57c1('0xea')][_0x57c1('0x51')],_0x158c23=_0x10a0cc['model'][_0x57c1('0x37')];let _0x1e074f=null,_0x25250c=null,_0x23d446=!0x1,_0x480de5=!0x1;for(const _0x4a85bf of _0x492746){const _0x143a0f=_0x4a85bf[_0x57c1('0xaa')];_0x23d446=_0x23d446||_0x158c23[_0x57c1('0xce')](_0x143a0f);const _0x502b0d=_0x5795bd[_0x57c1('0x3d')][_0x57c1('0x5f')](_0x143a0f);if(_0x502b0d&&_0x502b0d[_0x57c1('0x56')](_0x57c1('0x61')))return;_0x57c1('0x7e')==_0x4a85bf[_0x57c1('0x9a')]&&(_0x158c23[_0x57c1('0x46')](_0x143a0f)&&!_0x158c23[_0x57c1('0xb4')](_0x143a0f)&&(_0x143a0f[_0x57c1('0xb8')]||_0x2734cc[_0x57c1('0x8d')]?_0x1e074f&&_0x1e074f[_0x57c1('0x65')]==_0x143a0f||(_0x1e074f=_0x143a0f,_0x395cdd(_0x4a85bf['previousPosition']),_0x480de5=!0x0):_0x25250c=_0x25250c||_0x4a85bf[_0x57c1('0xde')]));}function _0x395cdd(_0x1de917){const _0x587404=_0x5795bd[_0x57c1('0x3d')]['toViewPosition'](_0x1de917),_0x1f2f61=_0x5795bd['writer'][_0x57c1('0x79')]('span',{'class':'ck-suggestion-preview-marker-'+_0x29774a});_0x5795bd['writer'][_0x57c1('0x48')](_0x587404,_0x1f2f61),_0x5795bd['mapper'][_0x57c1('0xec')](_0x1f2f61,_0x231bc8['markerName']);}_0x23d446||_0x480de5||!_0x25250c||_0x395cdd(_0x25250c);};}_0x3299ba(m,_0x1f80f6);class L extends _0x25d308{constructor(_0x5a3052){super(_0x5a3052);const _0x48f908=_0x5a3052[_0x57c1('0x26')][_0x57c1('0x75')](m);this[_0x57c1('0x5e')](_0x5a3052,_0x57c1('0x1a')),this[_0x57c1('0xb1')]('readOnlyMode'),this[_0x57c1('0xd')](_0x48f908,_0x57c1('0x89'),()=>this[_0x57c1('0x40')]()),this[_0x57c1('0xd')](_0x48f908,_0x57c1('0x29'),()=>this[_0x57c1('0x40')]());}[_0x57c1('0x12')](){const _0x27c304=this['editor'],_0x5c373=_0x27c304[_0x57c1('0x26')][_0x57c1('0x75')](m),_0x4432e6=_0x5c373[_0x57c1('0xe4')]?_0x5c373[_0x57c1('0xa5')]['newRevisionId']:null;_0x27c304[_0x57c1('0x78')]['get']('revisionHistory')['restoreRevisionCallback'](_0x4432e6);}[_0x57c1('0x40')](){const {isReady:_0xa3a9d1,isEnabled:_0x37b7af}=this['editor'][_0x57c1('0x26')][_0x57c1('0x75')](m);this[_0x57c1('0xe6')]=_0xa3a9d1&&_0x37b7af;}}class q extends _0x25d308{constructor(_0xfeb25d,{direction:_0x1fa2ea}){super(_0xfeb25d);const _0x6a1bb3=_0xfeb25d[_0x57c1('0x26')][_0x57c1('0x75')](m);this['stopListening'](_0xfeb25d,_0x57c1('0x1a')),this[_0x57c1('0xb1')](_0x57c1('0x95')),this[_0x57c1('0xe')]=_0x57c1('0x39')===_0x1fa2ea?0x1:-0x1,this[_0x57c1('0xd')](_0x6a1bb3,_0x57c1('0x89'),()=>this['refresh']()),this[_0x57c1('0xd')](_0x6a1bb3,_0x57c1('0x29'),()=>this[_0x57c1('0x40')]());}[_0x57c1('0x12')](){const _0x2efe8b=this[_0x57c1('0xb6')],_0x2c82a3=_0x2efe8b['plugins']['get'](m),{isNavigationMode:_0x216d08,currentChangeNumber:_0x106ee3}=_0x2c82a3;_0x2c82a3[_0x57c1('0xb9')]=_0x216d08?_0x2c82a3[_0x57c1('0xa5')][_0x57c1('0x4')]['get'](_0x106ee3+this['_step']):_0x2c82a3[_0x57c1('0xa5')][_0x57c1('0x4')][_0x57c1('0xe5')];const _0x6aaf0f=_0x2efe8b[_0x57c1('0x8b')]['markers'][_0x57c1('0x75')](_0x57c1('0x57')+_0x2c82a3[_0x57c1('0xb9')]['id']),_0x6ff421=_0x3b00f6(_0x2efe8b[_0x57c1('0x4e')],_0x6aaf0f);_0xa6fdfb({'target':_0x6ff421,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xd10493,currentChangeNumber:_0x5b6175,numberOfChanges:_0xb132f9,isReady:_0x16ca94,isEnabled:_0x264b5e}=this[_0x57c1('0xb6')][_0x57c1('0x26')]['get'](m);this[_0x57c1('0xe6')]=!!(_0x264b5e&&_0x16ca94&&_0xb132f9)&&(!_0xd10493||(0x1===this[_0x57c1('0xe')]?_0x5b6175<_0xb132f9-0x1:_0x5b6175>0x0));}}
|
|
23
|
+
const _0x4174=['target','startsWith','getWalker','string','item','highest','getRevisionData','_markMismatchedRemovedTags','isInline','_changeIdToChange','ck-suggestion-marker-merge','diff','ck-suggestion-marker--active','toViewElement','parse','_makeModelFromViewString','authors','compare','keys','clearForceDisabled','change:activeChange','end','previousPosition','_processTape','getRootNames','isBefore','POSITIVE_INFINITY','RevisionViewer','markerToHighlight','ck-suggestion-marker-','ck-editor__editable__overlay','abs','consumable','markers','length','getIndex','index','unshift','-new','useFillerType','downcastDispatcher','from','getAttributes','isRemoved','selection','side','isContent','_getRevisionsRange','_step','markerName','toModel','_getViewForChange','test','type','change:isReady','for','uiElement','bindElementToMarker','refresh','hasAttribute','bind','createPositionBefore','elementEnd','getShiftedBy','isAfter','plugins','_initInteractions','map','repository','clear','first','ck-suggestion-marker','object','level','endIndex','markerToData','set','elementStart','currentChangeNumber','data','revisionHistory','add','name','removeClass','nextPosition','document','concat','pluginName','markerRange','low','_removeMissingPairs','_target','suggestion','addMarker:suggestion:insertion','change:isReadOnly','activeChange','createPositionAfter','mapper','upcast','_changeView','_markSuggestions','restoreRevisionCallback','markersEnd','isNavigationMode','setAttribute','change','isLimit','listenTo','dataToMarker','_setDistance','view','findIndex','changes','resolve','toViewRange','locale','all','nodeAfter','_getViewObj','attribute:vid','isSuggestion','start','modelRange','revision','isAdded','values','_setConversion','newRevisionId','addClass','ck-suggestion-preview-marker','_threeWayMerge','_refreshStartEndIndex','getRevision','split','isBlock','checkAttribute','init','adapter','_cleanUp','catch','getItems','isReady','readOnlyMode','nextSibling','return','createUIElement','_setData','vid','removeMarker:revision','unbindElementFromMarkerName','addHighlight','toViewPosition','change:activeView','forward','_makeTape','isEnabled','remove','hasClass','parent','enqueueChange','_fixObsoleteTags','toData','schema','userId','vid_end','sort','commands','isReadOnly','deletion','_getDiff','high','softBreak','insertion','viewItem','writer','markersStart','getCustomProperty','attributes','destroy','shift','loadRevisionData','isObject','isAtEnd','processor','isCollapsed','roots','activeView','splice','markerNameToElements','numberOfChanges','_removeUnsupportedChanges','then','showStack','change:numberOfChanges','push','createAttributeElement','code','element','editing','has','isAddSuggestion','isAtStart','filter','isIncorrect','isEqual','insertions','htmlProcessor','_revisions','getAttribute','deletions','ck-suggestion-marker-split','change:isEnabled','_getChangeFromId','_joinTapes','showPreviousChange','pairId','_cleanMarkers','elementToAttribute','observeMarkers','_makeModelFromTape','range','addMarker:revision','span','removeMarker','createPositionAt','execute','distance','get','_markInsertions','_markMarkers','_balloon','insert','marked','revision:','consume','model','updateMarker','RevisionsRepository','dataDowncast','_findChangeIdFromDomTarget','showNextChange','startIndex','forEach','vid_start','getChild','createRange','offsetSize','editor','merge','conversion'];(function(_0x5be299,_0x4174e7){const _0x4c1316=function(_0x1a8215){while(--_0x1a8215){_0x5be299['push'](_0x5be299['shift']());}};_0x4c1316(++_0x4174e7);}(_0x4174,0x7c));const _0x4c13=function(_0x5be299,_0x4174e7){_0x5be299=_0x5be299-0x0;let _0x4c1316=_0x4174[_0x5be299];return _0x4c1316;};import _0x158e40 from'@ckeditor/ckeditor5-collaboration-core/src/users';import{Plugin as _0x4f2c22,Command as _0x333c3e}from'ckeditor5/src/core';import{ObservableMixin as _0x2c438c,mix as _0x27575c}from'ckeditor5/src/utils';import _0x6b3fc3 from'@ckeditor/ckeditor5-engine/src/model/documentfragment';import _0x45045b from'@ckeditor/ckeditor5-engine/src/model/element';import _0x32bc1a from'@ckeditor/ckeditor5-engine/src/model/text';import _0x134257 from'@ckeditor/ckeditor5-engine/src/view/documentfragment';import _0x4a3df6 from'@ckeditor/ckeditor5-engine/src/view/text';import _0x20dab0 from'@ckeditor/ckeditor5-engine/src/view/element';import{_insert as _0x23a5c6}from'@ckeditor/ckeditor5-engine/src/model/operation/utils';import _0x4d9b1c from'./ui/revisionviewer/changedetailsview';import _0x4cec3c from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import{scrollViewportToShowTarget as _0x4592af}from'@ckeditor/ckeditor5-utils/src/dom/scroll';import{ContextualBalloon as _0x49151c}from'ckeditor5/src/ui';import _0x2163f9 from'./revisionsrepository';import _0x33925b from'./changeitem';import _0x3f97b1 from'./revisiondiff';import'../theme/revisionviewer.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestion.css';import'@ckeditor/ckeditor5-track-changes/theme/suggestionmarker.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/horizontalline.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/image.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/mediaembed.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/pagebreak.css';import'@ckeditor/ckeditor5-track-changes/theme/integrations/table.css';export default class d extends _0x4f2c22{static get[_0x4c13('0xd5')](){return _0x4c13('0x99');}static get['requires'](){return[_0x158e40,_0x49151c,_0x2163f9];}constructor(..._0x1b9222){super(..._0x1b9222),this['repository']=this[_0x4c13('0x7b')][_0x4c13('0xbf')]['get'](_0x4c13('0x71')),this[_0x4c13('0xca')]('activeChange',null),this[_0x4c13('0xca')](_0x4c13('0x3e'),null),this['set'](_0x4c13('0x89'),null),this['set']('isReady',!0x1),this[_0x4c13('0xca')](_0x4c13('0x1f'),!0x0),this['on'](_0x4c13('0x57'),(_0x45fff3,_0x74e558,_0x5dfab6)=>{this[_0x4c13('0xdd')]=null,this[_0x4c13('0x3e')]=null,this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xec')][_0x4c13('0xe7')](_0x2c4fa4=>{for(const _0x77e58c of this['editor'][_0x4c13('0x4a')][_0x4c13('0xec')]['document'][_0x4c13('0x3d')])_0x5dfab6?_0x2c4fa4[_0x4c13('0xd1')]('ck-editor__editable__overlay',_0x77e58c):_0x2c4fa4[_0x4c13('0x4')](_0x4c13('0x9c'),_0x77e58c);});}),this[_0x4c13('0xba')](_0x4c13('0xe5'))['to'](this,'activeChange',_0x473df6=>null!==_0x473df6),this[_0x4c13('0xba')](_0x4c13('0xcc'))['to'](this,'isReady',this,_0x4c13('0x89'),this,_0x4c13('0xdd'),(_0x6e1719,_0x2aab65,_0x4d9183)=>_0x6e1719&&_0x4d9183?_0x2aab65[_0x4c13('0xee')]['getIndex'](_0x4d9183):0x0),this['bind'](_0x4c13('0x41'))['to'](this,'isReady',this,_0x4c13('0x89'),(_0x5d1791,_0x431346)=>_0x5d1791?_0x431346[_0x4c13('0xee')][_0x4c13('0xa0')]:0x0),this['_changeView']=null,this[_0x4c13('0x87')]=new Map(),this[_0x4c13('0xd')]=null,this[_0x4c13('0x6a')]=this[_0x4c13('0x7b')][_0x4c13('0xbf')][_0x4c13('0x67')](_0x49151c);}[_0x4c13('0xc')](){const _0x1ba41f=this[_0x4c13('0x7b')];_0x1ba41f[_0x4c13('0xcd')][_0x4c13('0x52')][_0x4c13('0xa5')](_0x4c13('0x6c'));const _0x38bce4=new q(_0x1ba41f,{'direction':'backward'}),_0x52d238=new q(_0x1ba41f,{'direction':'forward'});_0x1ba41f['commands'][_0x4c13('0xcf')](_0x4c13('0x5a'),_0x38bce4),_0x1ba41f[_0x4c13('0x2a')]['add'](_0x4c13('0x74'),_0x52d238),_0x1ba41f[_0x4c13('0x2a')][_0x4c13('0xcf')]('restoreRevision',new L(_0x1ba41f)),this['on'](_0x4c13('0x45'),()=>{_0x38bce4[_0x4c13('0xb8')](),_0x52d238[_0x4c13('0xb8')]();}),this[_0x4c13('0x2')](),this[_0x4c13('0xc0')](),_0x1ba41f[_0x4c13('0x2b')]=!0x0;}async[_0x4c13('0x84')](_0x2b419d){await this['loadRevisionData'](_0x2b419d);const _0x4f5e3c={};for(const _0x366d13 in _0x2b419d[_0x4c13('0xcd')]){const _0x43d53c=JSON['parse'](_0x2b419d['data'][_0x366d13][_0x4c13('0x51')]),_0x52fffa=this[_0x4c13('0x7b')]['editing'][_0x4c13('0xec')][_0x4c13('0xd3')],_0x284f37=new _0x134257(_0x52fffa,_0x43d53c[_0x4c13('0xc1')](_0x4c0403=>this[_0x4c13('0xf4')](_0x4c0403)));_0x4f5e3c[_0x366d13]=this[_0x4c13('0x7b')]['data'][_0x4c13('0x3b')][_0x4c13('0x25')](_0x284f37);}return _0x4f5e3c;}[_0x4c13('0x8f')](_0x4d4161,_0x3b4b2b,_0x35745d=!0x1){if(!this[_0x4c13('0x1f')])return;const _0x1d5a4d=this[_0x4c13('0xc2')],_0x87f675=_0x4c13('0x81')==typeof _0x4d4161?_0x1d5a4d['getRevision'](_0x4d4161):_0x4d4161,_0x4c63f8=_0x4c13('0x81')==typeof _0x3b4b2b?_0x1d5a4d['getRevision'](_0x3b4b2b):_0x3b4b2b,_0xe8498b=_0x87f675['id'],_0x2e773a=_0x4c63f8?_0x4c63f8['id']:null;if(!_0x35745d&&this['diff']&&this[_0x4c13('0x89')][_0x4c13('0x3')]===_0xe8498b&&this[_0x4c13('0x89')]['oldRevisionId']===_0x2e773a)return Promise[_0x4c13('0xef')]();this[_0x4c13('0x11')]=!0x1,this['activeView']=null,this[_0x4c13('0x89')]=new _0x3f97b1(_0xe8498b,_0x2e773a);const _0x1d870f=this[_0x4c13('0xad')](_0x87f675,_0x4c63f8,!0x0)[_0x4c13('0xc1')](_0x3fd391=>this[_0x4c13('0x38')](_0x3fd391));return _0x1d870f[_0x4c13('0x46')](new Promise(_0x26acdf=>{setTimeout(_0x26acdf,0x14);})),Promise[_0x4c13('0xf2')](_0x1d870f)['then'](()=>{if(!this[_0x4c13('0x1f')])return;this[_0x4c13('0xe')]();const _0x58877b=this['_getDiff'](_0xe8498b,_0x2e773a);this[_0x4c13('0x89')][_0x4c13('0x16')](_0x58877b);for(const _0x28458a of this['diff'][_0x4c13('0xee')])this[_0x4c13('0x87')][_0x4c13('0xca')](_0x28458a['id'],_0x28458a);this['editor'][_0x4c13('0x6f')][_0x4c13('0x23')]('transparent',_0x25d665=>{for(const _0x50ce92 of Object[_0x4c13('0x90')](_0x58877b[_0x4c13('0x6f')])){const _0xa8f4ef=this['editor'][_0x4c13('0x6f')][_0x4c13('0xd3')]['getRoot'](_0x50ce92);_0x25d665['remove'](_0x25d665['createRangeIn'](_0xa8f4ef)),_0x25d665['insert'](_0x58877b[_0x4c13('0x6f')][_0x50ce92],_0xa8f4ef,0x0);}}),this[_0x4c13('0x11')]=!0x0;})[_0x4c13('0xf')](_0x5cb04e=>{console['error'](_0x5cb04e),this[_0x4c13('0x11')]=!0x0;});}[_0x4c13('0x36')](){this[_0x4c13('0x3e')]=null,this[_0x4c13('0xe1')]&&this[_0x4c13('0xe1')]['destroy']();}[_0x4c13('0x38')](_0x2031bf){return!_0x2031bf||_0x2031bf['data']?Promise[_0x4c13('0xef')]():this[_0x4c13('0xd')][_0x4c13('0x8')]({'revisionId':_0x2031bf['id']})[_0x4c13('0x43')](_0x5107a0=>{_0x2031bf['data']=_0x5107a0[_0x4c13('0xcd')];});}['_cleanUp'](){this[_0x4c13('0xdd')]=null,this[_0x4c13('0x5c')](),this[_0x4c13('0xe1')]&&this['_changeView'][_0x4c13('0x36')](),this['_changeView']=null,this[_0x4c13('0x87')][_0x4c13('0xc3')]();}[_0x4c13('0x1e')](_0x1df1e5){const _0x573107=Array['from'](_0x1df1e5[_0x4c13('0x9f')])[_0x4c13('0x4e')](([_0x378436,_0x256578])=>_0x378436[_0x4c13('0x7f')](_0x4c13('0x6d'))&&!_0x256578[_0x4c13('0x3c')]),_0x348322=Array[_0x4c13('0xa7')](this[_0x4c13('0x7b')][_0x4c13('0x6f')]['createRangeIn'](_0x1df1e5)[_0x4c13('0x80')]({'singleCharacters':!0x0}));if(0x0!=_0x573107[_0x4c13('0xa0')])for(const _0x13df4e of _0x348322){const [_0xd9ef36,_0x1f8830]=_0x573107[0x0],[,_0x397c3d,_0x30c505]=_0xd9ef36['split'](':');if(_0x1f8830[_0x4c13('0x93')][_0x4c13('0x50')](_0x13df4e[_0x4c13('0xd2')])&&_0x573107[_0x4c13('0x37')](),(_0x13df4e['previousPosition'][_0x4c13('0x50')](_0x1f8830[_0x4c13('0xf7')])||_0x13df4e['previousPosition'][_0x4c13('0xbe')](_0x1f8830['start']))&&(_0x4c13('0x30')==_0x397c3d?_0x13df4e[_0x4c13('0x0')]={'userId':_0x30c505}:_0x4c13('0x2c')==_0x397c3d&&(_0x13df4e[_0x4c13('0xa9')]={'userId':_0x30c505})),0x0==_0x573107[_0x4c13('0xa0')])break;}return _0x348322;}[_0x4c13('0x7')](_0x4671bd){const _0x2472ba=new Map();for(let _0x575701=0x0;_0x575701<_0x4671bd[_0x4c13('0xa0')];_0x575701++)'text'===_0x4671bd[_0x575701]['type']?(_0x4671bd[_0x575701][_0x4c13('0x82')]['startIndex']=_0x575701,_0x4671bd[_0x575701][_0x4c13('0x82')][_0x4c13('0xc8')]=_0x575701):(_0x4c13('0xcb')===_0x4671bd[_0x575701][_0x4c13('0xb3')]?_0x4671bd[_0x575701][_0x4c13('0x82')][_0x4c13('0x75')]=_0x575701:'elementEnd'===_0x4671bd[_0x575701]['type']&&(_0x4671bd[_0x575701][_0x4c13('0x82')]['endIndex']=_0x575701),_0x2472ba[_0x4c13('0xca')](_0x4671bd[_0x575701]['id'],_0x575701));for(const _0x5d1f00 of _0x2472ba[_0x4c13('0x1')]())_0x4c13('0xcb')===_0x4671bd[_0x5d1f00][_0x4c13('0xb3')]?_0x4671bd[_0x5d1f00][_0x4c13('0x82')][_0x4c13('0xc8')]=_0x2472ba[_0x4c13('0x67')](_0x4671bd[_0x5d1f00][_0x4c13('0x5b')]):'elementEnd'===_0x4671bd[_0x5d1f00][_0x4c13('0xb3')]&&(_0x4671bd[_0x5d1f00][_0x4c13('0x82')][_0x4c13('0x75')]=_0x2472ba[_0x4c13('0x67')](_0x4671bd[_0x5d1f00][_0x4c13('0x5b')]));}[_0x4c13('0x95')](_0x13e1fb){for(let _0xc67fe9=0x0;_0xc67fe9<_0x13e1fb[_0x4c13('0xa0')];_0xc67fe9++){if('elementStart'===_0x13e1fb[_0xc67fe9][_0x4c13('0xb3')])_0x13e1fb[_0xc67fe9][_0x4c13('0x82')]['startIndex']=_0xc67fe9;else{if(_0x4c13('0xbc')===_0x13e1fb[_0xc67fe9][_0x4c13('0xb3')]){_0x13e1fb[_0xc67fe9][_0x4c13('0x82')][_0x4c13('0xc8')]=_0xc67fe9;const _0x59c7b2=_0x13e1fb[_0xc67fe9]['item']['startIndex'];_0x13e1fb[_0x59c7b2][_0x4c13('0x5b')]=_0x13e1fb[_0xc67fe9]['id'],_0x13e1fb[_0xc67fe9][_0x4c13('0x5b')]=_0x13e1fb[_0x59c7b2]['id'];}else _0x13e1fb[_0xc67fe9][_0x4c13('0x82')][_0x4c13('0x75')]=_0xc67fe9,_0x13e1fb[_0xc67fe9][_0x4c13('0x82')][_0x4c13('0xc8')]=_0xc67fe9,_0x13e1fb[_0xc67fe9][_0x4c13('0x5b')]=null;}_0x13e1fb[_0xc67fe9][_0x4c13('0x33')]||(_0x13e1fb[_0xc67fe9][_0x4c13('0x33')]=[],_0x13e1fb[_0xc67fe9][_0x4c13('0xe4')]=[]);}}[_0x4c13('0x68')](_0x4f5603,_0x22c85e){const _0x3aa805=_0x4f5603[_0x4c13('0x4e')](_0x2f9936=>!_0x2f9936[_0x4c13('0x0')]);for(let _0x4281b2=0x0;_0x4281b2<_0x22c85e[_0x4c13('0xa0')];_0x4281b2++)_0x22c85e[_0x4281b2][_0x4c13('0x0')]&&(_0x3aa805[_0x4281b2][_0x4c13('0x0')]=_0x22c85e[_0x4281b2][_0x4c13('0x0')]);}[_0x4c13('0x8d')](_0x246d1b){const _0x1a494b=JSON[_0x4c13('0x8c')](_0x246d1b),_0x5dca3f=this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xec')][_0x4c13('0xd3')],_0x3ae27b=new _0x134257(_0x5dca3f,_0x1a494b[_0x4c13('0xc1')](_0x3d343f=>this[_0x4c13('0xf4')](_0x3d343f)));return this[_0x4c13('0x7b')][_0x4c13('0xcd')][_0x4c13('0xb0')](_0x3ae27b);}[_0x4c13('0xf4')](_0xe49c98){const _0x26a2c4=this[_0x4c13('0x7b')]['editing'][_0x4c13('0xec')][_0x4c13('0xd3')];if(_0x4c13('0x81')==typeof _0xe49c98)return new _0x4a3df6(_0x26a2c4,_0xe49c98);{const _0x5657d3=_0xe49c98['children'][_0x4c13('0xc1')](_0x33f88a=>this[_0x4c13('0xf4')](_0x33f88a));return new _0x20dab0(_0x26a2c4,_0xe49c98[_0x4c13('0xd0')],_0xe49c98[_0x4c13('0x35')],_0x5657d3);}}[_0x4c13('0x2d')](_0x4cb498,_0x1f9a28=null){const _0x1119ff=this[_0x4c13('0xc2')]['getRevision'](_0x4cb498),_0x4a8461=_0x1f9a28?this[_0x4c13('0xc2')]['getRevision'](_0x1f9a28):null,_0x43d3b7=this[_0x4c13('0xad')](_0x1119ff,_0x4a8461),_0x7f6d9f=_0x43d3b7[_0x43d3b7[_0x4c13('0xa0')]-0x1],_0x30bb33=new Map();for(const _0x5b127a of _0x43d3b7){_0x5b127a[_0x4c13('0x6f')]={};for(const _0x174866 of _0x5b127a[_0x4c13('0x8e')])_0x30bb33['set'](_0x174866['id'],_0x174866);for(const _0x11aea3 of this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0xd3')][_0x4c13('0x96')]())_0x5b127a['data'][_0x11aea3]||(_0x5b127a['data'][_0x11aea3]={'insertions':'[]','deletions':'[]'}),_0x5b127a[_0x4c13('0x6f')][_0x11aea3]={'insertions':this[_0x4c13('0x8d')](_0x5b127a[_0x4c13('0xcd')][_0x11aea3][_0x4c13('0x51')]),'deletions':this['_makeModelFromViewString'](_0x5b127a[_0x4c13('0xcd')][_0x11aea3][_0x4c13('0x55')])};}const _0xb47703={'model':{},'changes':[]};for(const _0x33190e of this[_0x4c13('0x7b')]['model'][_0x4c13('0xd3')][_0x4c13('0x96')]()){let _0x3b12ea=null,_0x5bb023=0x0;const _0xa011a1=new Map(Array[_0x4c13('0xa7')](_0x1119ff[_0x4c13('0x6f')][_0x33190e][_0x4c13('0x51')][_0x4c13('0x9f')])[_0x4c13('0x4e')](([_0x5d18dc])=>!_0x5d18dc[_0x4c13('0x7f')](_0x4c13('0x6d'))));let _0x47ca53=0x0;for(const _0x422510 of _0x43d3b7){const _0x5c20b7=this[_0x4c13('0x1e')](_0x422510[_0x4c13('0x6f')][_0x33190e][_0x4c13('0x51')]);_0x422510==_0x1119ff?(_0x3b12ea=_0x5c20b7,_0x5bb023=_0x3b12ea[_0x4c13('0xa0')],_0x3b12ea[_0x4c13('0x76')](_0x8dd205=>{_0x8dd205['id']=_0x47ca53++;}),this[_0x4c13('0x95')](_0x3b12ea)):this[_0x4c13('0x68')](_0x3b12ea,_0x5c20b7);const _0x49cc39=_0x3b12ea[_0x4c13('0x4e')](_0x81eba0=>!_0x81eba0[_0x4c13('0x0')])[_0x4c13('0xc1')](_0x4fb2b9=>_0x4fb2b9['id']),_0x3efba3=this[_0x4c13('0x1e')](_0x422510[_0x4c13('0x6f')][_0x33190e]['deletions']);_0x3efba3[_0x4c13('0x76')](_0x2a2d6a=>{_0x2a2d6a[_0x4c13('0xa9')]?_0x2a2d6a['id']=_0x5bb023++:_0x2a2d6a['id']=_0x49cc39[_0x4c13('0x37')]();}),this[_0x4c13('0x95')](_0x3efba3),this[_0x4c13('0xeb')](_0x3b12ea,_0x4c13('0x0')),this[_0x4c13('0xeb')](_0x3efba3,_0x4c13('0xa9')),_0x422510==_0x1119ff&&this[_0x4c13('0x69')](_0x3b12ea,_0xa011a1),_0x3b12ea=this['_joinTapes'](_0x3b12ea,_0x3efba3),this['_refreshStartEndIndex'](_0x3b12ea),this[_0x4c13('0xeb')](_0x3b12ea,'isRemoved');}_0x3b12ea=_0x3b12ea[_0x4c13('0x4e')](_0x451cb1=>!(_0x451cb1[_0x4c13('0x0')]&&_0x451cb1['isRemoved']));const _0x27e9c0=new Map(_0x7f6d9f[_0x4c13('0x6f')][_0x33190e][_0x4c13('0x55')]['markers']),_0x1dab93=new Set(_0xa011a1[_0x4c13('0x90')]());for(const _0x1f8f18 of _0x27e9c0[_0x4c13('0x90')]())_0x1dab93['delete'](_0x1f8f18);this[_0x4c13('0xe2')](_0x3b12ea,_0x1dab93),this['_fixObsoleteTags'](_0x3b12ea),_0x3b12ea=this[_0x4c13('0xd8')](_0x3b12ea),_0x3b12ea=this[_0x4c13('0x85')](_0x3b12ea),_0x3b12ea=this[_0x4c13('0x42')](_0x3b12ea);const {root:_0x3ffd15,changes:_0x379c21}=this[_0x4c13('0x5f')](_0x3b12ea,_0x30bb33);_0xb47703[_0x4c13('0x6f')][_0x33190e]=_0x3ffd15,_0xb47703[_0x4c13('0xee')]=_0xb47703[_0x4c13('0xee')]['concat'](_0x379c21);}return _0xb47703;}[_0x4c13('0x69')](_0x41ca1b,_0x5db2b7){for(let _0xcacca3=0x0;_0xcacca3<_0x41ca1b[_0x4c13('0xa0')];_0xcacca3++)for(const [_0x55cd8a,_0x40f6a5]of _0x5db2b7)_0x40f6a5['start'][_0x4c13('0x50')](_0x41ca1b[_0xcacca3][_0x4c13('0x94')])&&_0x41ca1b[_0xcacca3][_0x4c13('0x33')]['push'](_0x55cd8a),_0x40f6a5[_0x4c13('0x93')][_0x4c13('0x50')](_0x41ca1b[_0xcacca3][_0x4c13('0xd2')])&&_0x41ca1b[_0xcacca3]['markersEnd']['push'](_0x55cd8a);}[_0x4c13('0x59')](_0xb541a7,_0x426b7a){let _0x263710=[],_0x224df7=0x0,_0x5c3e8c=0x0;for(;_0x224df7<_0xb541a7['length']||_0x5c3e8c<_0x426b7a[_0x4c13('0xa0')];){const _0x3bf078=_0xb541a7[_0x224df7]||{},_0x174d26=_0x426b7a[_0x5c3e8c]||{};if(_0x3bf078['id']==_0x174d26['id'])_0x224df7++,_0x5c3e8c++,_0x263710[_0x4c13('0x46')](_0x3bf078);else{if(_0x174d26['isRemoved']&&_0x3bf078[_0x4c13('0x0')]){const {commonTape:_0x1c531f,iEnd:_0x1f4bcf,jEnd:_0x39f88f}=this[_0x4c13('0x6')](_0xb541a7,_0x224df7,_0x426b7a,_0x5c3e8c);_0x263710=_0x263710['concat'](_0x1c531f),_0x224df7=_0x1f4bcf,_0x5c3e8c=_0x39f88f;}else _0x174d26[_0x4c13('0xa9')]?(_0x5c3e8c++,_0x263710[_0x4c13('0x46')](_0x174d26)):(_0x224df7++,_0x263710[_0x4c13('0x46')](_0x3bf078));}}return _0x263710;}[_0x4c13('0xe2')](_0x5a41a7,_0x285acf){const _0x2c1efc=[];for(let _0x197337=0x0;_0x197337<_0x5a41a7[_0x4c13('0xa0')];_0x197337++){for(let _0x57460c=0x0;_0x57460c<_0x5a41a7[_0x197337]['markersStart']['length'];_0x57460c++){const _0x46e6a0=_0x5a41a7[_0x197337][_0x4c13('0x33')][_0x57460c];if(!_0x285acf[_0x4c13('0x4b')](_0x46e6a0))continue;const {group:_0x512c8a,type:_0x3bc0ad,authorId:_0x31a5d0}=_0x127052(_0x46e6a0);_0x4c13('0xda')!=_0x512c8a||_0x4c13('0x30')!=_0x3bc0ad&&'deletion'!=_0x3bc0ad||(_0x2c1efc[_0x4c13('0xa3')]({'type':_0x3bc0ad,'name':_0x46e6a0,'userId':_0x31a5d0}),_0x5a41a7[_0x197337][_0x4c13('0x33')][_0x4c13('0x3f')](_0x57460c,0x1));}_0x2ff4f8(_0x5a41a7[_0x197337]);for(let _0x134a94=0x0;_0x134a94<_0x5a41a7[_0x197337][_0x4c13('0xe4')]['length'];_0x134a94++){const _0x5d1337=_0x5a41a7[_0x197337]['markersEnd'][_0x134a94];if(!_0x285acf['has'](_0x5d1337))continue;const {group:_0x56c94f,type:_0x28a6c3}=_0x127052(_0x5d1337);if('suggestion'!=_0x56c94f||_0x4c13('0x30')!=_0x28a6c3&&_0x4c13('0x2c')!=_0x28a6c3)continue;_0x5a41a7[_0x197337]['markersEnd']['splice'](_0x134a94,0x1);const _0x4608e9=_0x2c1efc[_0x4c13('0xed')](_0x2e6939=>_0x2e6939[_0x4c13('0xd0')]==_0x5d1337);_0x4608e9>-0x1&&_0x2c1efc[_0x4c13('0x3f')](_0x4608e9,0x1);}}function _0x127052(_0x398122){const _0x56027f=_0x398122['split'](':');return{'group':_0x56027f[0x0],'type':_0x56027f[0x1],'subType':_0x56027f[_0x4c13('0xa0')]>=0x5?_0x56027f[0x2]:null,'id':_0x56027f[_0x4c13('0xa0')]<0x5?_0x56027f[0x2]:_0x56027f[0x3],'authorId':_0x56027f[_0x4c13('0xa0')]<0x5?_0x56027f[0x3]:_0x56027f[0x4],'markerCount':0x6==_0x56027f['length']?_0x56027f[0x5]:null};}function _0x2ff4f8(_0x2b846f){for(let _0x239ce8=0x0;_0x239ce8<_0x2c1efc['length'];_0x239ce8++){if(_0x2b846f['isAdded']&&_0x4c13('0x30')==_0x2c1efc[_0x239ce8][_0x4c13('0xb3')])return _0x2b846f['isAddSuggestion']=_0x2c1efc[_0x239ce8],void delete _0x2b846f[_0x4c13('0x0')];if(!_0x2b846f['isAdded']&&!_0x2b846f[_0x4c13('0xa9')]&&_0x4c13('0x2c')==_0x2c1efc[_0x239ce8][_0x4c13('0xb3')])return void(_0x2b846f['isRemoveSuggestion']=_0x2c1efc[_0x239ce8]);}}}['_setDistance'](_0x2117f6,_0x75815f){let _0x2fe897=0x0,_0x47b970=!0x1;const _0x5da47e=new Map();for(const _0x23ec28 of _0x2117f6)_0x23ec28[_0x75815f]?_0x47b970&&(_0x2fe897++,_0x47b970=!0x1):(_0x2fe897++,_0x47b970=!0x0),_0x5da47e[_0x4c13('0xca')](_0x23ec28['id'],_0x2fe897);for(let _0x3c35f1=0x0;_0x3c35f1<_0x2117f6[_0x4c13('0xa0')];_0x3c35f1++){if(_0x4c13('0xa9')==_0x75815f&&_0x2117f6[_0x3c35f1]['isAdded']||_0x4c13('0x0')==_0x75815f&&_0x2117f6[_0x3c35f1][_0x4c13('0xa9')])continue;if('text'==_0x2117f6[_0x3c35f1][_0x4c13('0xb3')]){_0x2117f6[_0x3c35f1]['distance']=0x0;continue;}const _0x31821e=_0x5da47e[_0x4c13('0x67')](_0x2117f6[_0x3c35f1][_0x4c13('0x5b')]),_0x5b149b=_0x5da47e[_0x4c13('0x67')](_0x2117f6[_0x3c35f1]['id']);_0x2117f6[_0x3c35f1][_0x4c13('0x66')]=_0x31821e-_0x5b149b;}}[_0x4c13('0xad')](_0x4202df,_0x3b2cde,_0x454021=!0x1){const _0x5a0fca=[];let _0x5b949e=this[_0x4c13('0xc2')][_0x4c13('0xa1')](_0x4202df),_0x3c8df5=this[_0x4c13('0xc2')]['getIndex'](_0x3b2cde);for(-0x1==_0x3c8df5&&(_0x3c8df5=this[_0x4c13('0xc2')][_0x4c13('0x53')][_0x4c13('0xa0')],_0x454021=!0x1);_0x5b949e<_0x3c8df5;)_0x5a0fca[_0x4c13('0x46')](this[_0x4c13('0xc2')]['getRevision'](_0x5b949e)),_0x5b949e++;return _0x454021&&_0x5a0fca[_0x4c13('0x46')](this[_0x4c13('0xc2')]['getRevision'](_0x5b949e)),_0x5a0fca;}[_0x4c13('0x6')](_0x5885d2,_0x463762,_0x50308b,_0x1467d1){const _0x57da16=this['editor'][_0x4c13('0x6f')][_0x4c13('0x26')];let _0x4f2ce2=_0x463762;for(;_0x5885d2[_0x4f2ce2]&&_0x5885d2[_0x4f2ce2][_0x4c13('0x0')];)_0x4f2ce2++;let _0x5a6495=_0x1467d1;for(;_0x50308b[_0x5a6495]&&_0x50308b[_0x5a6495][_0x4c13('0xa9')];)_0x5a6495++;_0x570f26(_0x5885d2,_0x463762,_0x4f2ce2),_0x570f26(_0x50308b,_0x1467d1,_0x5a6495);const _0x291d5e=_0x50308b['slice'](_0x1467d1,_0x5a6495)[_0x4c13('0xd4')](_0x5885d2['slice'](_0x463762,_0x4f2ce2));return _0x291d5e[_0x4c13('0x29')]((_0x5ad3af,_0x16aabd)=>_0x5ad3af[_0x4c13('0xab')]!=_0x16aabd[_0x4c13('0xab')]?_0x5ad3af['side']-_0x16aabd[_0x4c13('0xab')]:_0x5ad3af[_0x4c13('0xc7')]!=_0x16aabd[_0x4c13('0xc7')]?_0x5ad3af[_0x4c13('0xc7')]-_0x16aabd['level']:_0x5ad3af[_0x4c13('0x66')]!=_0x16aabd[_0x4c13('0x66')]?_0x16aabd[_0x4c13('0x66')]-_0x5ad3af[_0x4c13('0x66')]:!!_0x5ad3af[_0x4c13('0x0')]!=!!_0x16aabd[_0x4c13('0x0')]?-0x1==_0x5ad3af[_0x4c13('0xab')]||0x0==_0x5ad3af['side']?_0x5ad3af[_0x4c13('0x0')]?-0x1:0x1:_0x5ad3af[_0x4c13('0x0')]?0x1:-0x1:_0x5ad3af[_0x4c13('0xa2')]-_0x16aabd[_0x4c13('0xa2')]),{'commonTape':_0x291d5e,'iEnd':_0x4f2ce2,'jEnd':_0x5a6495};function _0x570f26(_0x318df5,_0x290a74,_0x1e0ab4){let _0x8d8b04=-0x1,_0x553773=Number[_0x4c13('0x98')],_0x5d306d=!0x0;for(let _0x468317=_0x290a74;_0x468317<_0x1e0ab4;_0x468317++)if(_0x57da16[_0x4c13('0x86')](_0x318df5[_0x468317][_0x4c13('0x82')])||(_0x5d306d=!0x1),_0x318df5[_0x468317]['item'][_0x4c13('0x75')]<_0x290a74&&(_0x8d8b04=_0x468317),_0x318df5[_0x468317][_0x4c13('0x82')][_0x4c13('0xc8')]>=_0x1e0ab4){_0x553773=_0x468317;break;}_0x5d306d&&(_0x8d8b04=_0x1e0ab4-0x1);for(let _0x4d5e38=_0x290a74;_0x4d5e38<_0x1e0ab4;_0x4d5e38++)_0x318df5[_0x4d5e38][_0x4c13('0xab')]=_0x4d5e38<=_0x8d8b04?-0x1:_0x4d5e38<_0x553773?0x0:0x1,_0x318df5[_0x4d5e38][_0x4c13('0xa2')]=_0x4d5e38;let _0x248da4=0x0;for(let _0x857e4a=_0x290a74;_0x857e4a<=_0x8d8b04;_0x857e4a++)0x0==_0x318df5[_0x857e4a][_0x4c13('0x66')]?_0x318df5[_0x857e4a]['level']=_0x248da4:(_0x248da4++,_0x318df5[_0x857e4a]['level']=_0x248da4,_0x248da4++);for(let _0x441122=_0x290a74;_0x441122<_0x1e0ab4;_0x441122++)0x0==_0x318df5[_0x441122][_0x4c13('0xab')]&&(_0x318df5[_0x441122]['level']=_0x248da4);_0x248da4=0x0;for(let _0x5ec8ee=_0x1e0ab4-0x1;_0x5ec8ee>=_0x553773;_0x5ec8ee--)0x0==_0x318df5[_0x5ec8ee]['distance']?_0x318df5[_0x5ec8ee][_0x4c13('0xc7')]=_0x248da4:(_0x248da4--,_0x318df5[_0x5ec8ee][_0x4c13('0xc7')]=_0x248da4,_0x248da4--);}}[_0x4c13('0x24')](_0x3ce922){const _0xa66abf=new Map(),_0x33559e=this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0x26')];for(let _0x2af3d2=0x1;_0x2af3d2<_0x3ce922['length'];_0x2af3d2++){let _0x4581bf,_0x2a7567,_0x1dc620;const _0x56088e=_0x3ce922[_0x2af3d2],_0x1b0b41=_0x3ce922[_0x2af3d2-0x1];if('text'==_0x56088e[_0x4c13('0xb3')])continue;if(_0x56088e[_0x4c13('0xb3')]!=_0x1b0b41[_0x4c13('0xb3')])continue;if(!_0x33559e[_0x4c13('0xa')](_0x1b0b41[_0x4c13('0x82')])||_0x33559e[_0x4c13('0xe8')](_0x1b0b41[_0x4c13('0x82')]))continue;if(!_0x33559e[_0x4c13('0xa')](_0x56088e['item'])||_0x33559e[_0x4c13('0xe8')](_0x56088e[_0x4c13('0x82')]))continue;if(_0x3ce922[_0x2af3d2][_0x4c13('0x0')]&&_0x3ce922[_0x2af3d2-0x1][_0x4c13('0xa9')])_0x4581bf=_0x3ce922[_0x2af3d2],_0x2a7567=_0x3ce922[_0x2af3d2-0x1],_0x1dc620=_0x2af3d2-0x1;else{if(!_0x3ce922[_0x2af3d2][_0x4c13('0xa9')]||!_0x3ce922[_0x2af3d2-0x1][_0x4c13('0x0')])continue;_0x4581bf=_0x3ce922[_0x2af3d2-0x1],_0x2a7567=_0x3ce922[_0x2af3d2],_0x1dc620=_0x2af3d2;}const _0x4a4807=_0x4581bf[_0x4c13('0xc7')]==_0x2a7567[_0x4c13('0xc7')],_0x141e21=Math[_0x4c13('0x9d')](_0x4581bf[_0x4c13('0xc7')])<Math[_0x4c13('0x9d')](_0x2a7567[_0x4c13('0xc7')])&&0x0==_0x2a7567[_0x4c13('0x66')];(_0x4a4807||_0x141e21)&&(_0xa66abf[_0x4c13('0xca')](_0x2a7567['id'],_0x4581bf['id']),_0x3ce922[_0x4c13('0x3f')](_0x1dc620,0x1),_0x2af3d2--,_0x4581bf['isAdded']=!0x1);}for(let _0xd8815b=0x0;_0xd8815b<_0x3ce922[_0x4c13('0xa0')];_0xd8815b++)_0xa66abf[_0x4c13('0x4b')](_0x3ce922[_0xd8815b]['pairId'])&&(_0x3ce922[_0xd8815b]['pairId']=_0xa66abf[_0x4c13('0x67')](_0x3ce922[_0xd8815b][_0x4c13('0x5b')]));}[_0x4c13('0xd8')](_0x1d972f){const _0x3535fc=new Set(_0x1d972f[_0x4c13('0xc1')](_0x313695=>_0x313695['id']));for(let _0x5a3343=0x0;_0x5a3343<_0x1d972f[_0x4c13('0xa0')];_0x5a3343++)_0x3535fc['has'](_0x1d972f[_0x5a3343][_0x4c13('0x5b')])||0x0==_0x1d972f[_0x5a3343][_0x4c13('0x66')]||(_0x1d972f[_0x5a3343][_0x4c13('0x4f')]=!0x0);return _0x1d972f['filter'](_0x1b40ae=>!_0x1b40ae[_0x4c13('0x4f')]);}[_0x4c13('0x85')](_0x18835c){const _0x53306c=new Set();for(let _0x3c20cf=0x0;_0x3c20cf<_0x18835c[_0x4c13('0xa0')];_0x3c20cf++){if(_0x53306c[_0x4c13('0x4b')](_0x18835c[_0x3c20cf]['id'])&&_0x18835c[_0x3c20cf][_0x4c13('0xa9')]&&(_0x18835c[_0x3c20cf][_0x4c13('0x4f')]=!0x0),_0x18835c[_0x3c20cf][_0x4c13('0x4f')])continue;if(0x0==_0x18835c[_0x3c20cf][_0x4c13('0x66')])continue;if(_0x4c13('0xcb')!=_0x18835c[_0x3c20cf][_0x4c13('0xb3')])continue;if(null==_0x18835c[_0x3c20cf]['pairId'])continue;let _0x42b36f=_0x3c20cf+0x1,_0x1e2454=0x0;for(;_0x18835c[_0x42b36f]['id']!=_0x18835c[_0x3c20cf][_0x4c13('0x5b')];)_0x4c13('0xcb')==_0x18835c[_0x42b36f][_0x4c13('0xb3')]?_0x1e2454++:'elementEnd'==_0x18835c[_0x42b36f][_0x4c13('0xb3')]&&_0x1e2454--,_0x42b36f++;if(0x0!=_0x1e2454){if(_0x18835c[_0x3c20cf][_0x4c13('0xa9')])_0x18835c[_0x3c20cf][_0x4c13('0x4f')]=!0x0;else for(;_0x42b36f!=_0x3c20cf;)_0x18835c[_0x42b36f][_0x4c13('0xa9')]&&0x0!=_0x18835c[_0x42b36f][_0x4c13('0x66')]&&(_0x18835c[_0x42b36f][_0x4c13('0x4f')]=!0x0,_0x53306c['add'](_0x18835c[_0x42b36f][_0x4c13('0x5b')])),_0x42b36f--;}}return _0x18835c['filter'](_0x3fb42a=>!_0x3fb42a[_0x4c13('0x4f')]);}['_removeUnsupportedChanges'](_0x3d34d0){const _0x30b1f5=this[_0x4c13('0x7b')]['model'][_0x4c13('0x26')];for(let _0x4b3003=0x0;_0x4b3003<_0x3d34d0[_0x4c13('0xa0')];_0x4b3003++){if(!_0x3d34d0[_0x4b3003][_0x4c13('0x0')]&&!_0x3d34d0[_0x4b3003]['isRemoved'])continue;if(0x0==_0x3d34d0[_0x4b3003][_0x4c13('0x66')])continue;const _0x31b8a0=_0x3d34d0[_0x4b3003]['item'];_0x30b1f5[_0x4c13('0xa')](_0x31b8a0)||_0x30b1f5[_0x4c13('0xe8')](_0x31b8a0)||(_0x3d34d0[_0x4b3003][_0x4c13('0x0')]&&delete _0x3d34d0[_0x4b3003]['isAdded'],_0x3d34d0[_0x4b3003][_0x4c13('0xa9')]&&(_0x3d34d0[_0x4b3003]['isIncorrect']=!0x0));}return _0x3d34d0[_0x4c13('0x4e')](_0x47e5ee=>!_0x47e5ee[_0x4c13('0x4f')]);}['_makeModelFromTape'](_0x25e9fb,_0x40cc22){const _0x5d34bf=new _0x6b3fc3(),_0x1f368b=[],_0x5a9653=new Map(),_0xbc3cd2=this['editor']['model'],_0x4a1aae=_0xbc3cd2[_0x4c13('0x26')],_0x40d5f1=[_0x5d34bf],_0x1a4374={},_0x365b7d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};for(let _0x135a7d=0x0;_0x135a7d<_0x25e9fb['length'];_0x135a7d++){let _0x28abfe,_0x26ad41;if(_0x4c13('0xcb')===_0x25e9fb[_0x135a7d][_0x4c13('0xb3')]){const _0x3c9113=new _0x45045b(_0x25e9fb[_0x135a7d][_0x4c13('0x82')][_0x4c13('0xd0')],_0x25e9fb[_0x135a7d]['item'][_0x4c13('0xa8')]());_0x28abfe=_0xbc3cd2[_0x4c13('0x64')](_0x40d5f1[0x0],_0x4c13('0x93')),_0x23a5c6(_0x28abfe,_0x3c9113),_0x26ad41=_0xbc3cd2[_0x4c13('0x64')](_0x3c9113,0x0),_0x40d5f1[_0x4c13('0xa3')](_0x3c9113);}else{if('elementEnd'===_0x25e9fb[_0x135a7d][_0x4c13('0xb3')]){const _0x2023da=_0x40d5f1[_0x4c13('0x37')]();_0x28abfe=_0xbc3cd2['createPositionAt'](_0x2023da,_0x4c13('0x93')),_0x26ad41=_0xbc3cd2[_0x4c13('0xde')](_0x2023da);}else{const _0x1137e6=new _0x32bc1a(_0x25e9fb[_0x135a7d][_0x4c13('0x82')][_0x4c13('0xcd')],_0x25e9fb[_0x135a7d][_0x4c13('0x82')]['getAttributes']());_0x28abfe=_0xbc3cd2[_0x4c13('0x64')](_0x40d5f1[0x0],_0x4c13('0x93')),_0x23a5c6(_0x28abfe,_0x1137e6),_0x26ad41=_0x28abfe[_0x4c13('0xbd')](_0x25e9fb[_0x135a7d][_0x4c13('0x82')][_0x4c13('0x7a')]);}}for(const _0x2e5eab of _0x25e9fb[_0x135a7d][_0x4c13('0x33')])_0x5a9653[_0x4c13('0xca')](_0x2e5eab,{'start':_0x28abfe,'end':null});_0xd3589('isRemoveSuggestion',_0x135a7d,_0x28abfe,_0x26ad41),_0xd3589(_0x4c13('0x4c'),_0x135a7d,_0x28abfe,_0x26ad41),_0xd3589(_0x4c13('0xa9'),_0x135a7d,_0x28abfe,_0x26ad41),_0xd3589(_0x4c13('0x0'),_0x135a7d,_0x28abfe,_0x26ad41);for(const _0x487980 of _0x25e9fb[_0x135a7d][_0x4c13('0xe4')]){_0x5a9653[_0x4c13('0x67')](_0x487980)[_0x4c13('0x93')]=_0x26ad41;}}for(const [_0x3edd3b,_0x5dff7a]of _0x5a9653){const _0x2586e6=this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0x79')](_0x5dff7a['start'],_0x5dff7a['end']);_0x5d34bf[_0x4c13('0x9f')]['set'](_0x3edd3b,_0x2586e6);}return _0x1f368b[_0x4c13('0x29')]((_0x4750c7,_0x430dd9)=>{const _0x56cea1=_0x5d34bf[_0x4c13('0x9f')][_0x4c13('0x67')]('revision:'+_0x4750c7['id']),_0x466aed=_0x5d34bf[_0x4c13('0x9f')][_0x4c13('0x67')](_0x4c13('0x6d')+_0x430dd9['id']);return _0x56cea1['start'][_0x4c13('0x97')](_0x466aed[_0x4c13('0xf7')])?-0x1:_0x56cea1[_0x4c13('0xf7')][_0x4c13('0xbe')](_0x466aed[_0x4c13('0xf7')])?0x1:_0x56cea1[_0x4c13('0x93')][_0x4c13('0x97')](_0x466aed['end'])?-0x1:_0x56cea1[_0x4c13('0x93')][_0x4c13('0xbe')](_0x466aed[_0x4c13('0x93')])?0x1:'add'===_0x4750c7['type']?-0x1:0x1;}),{'root':_0x5d34bf,'changes':_0x1f368b};function _0xd3589(_0x5aa12a,_0x286c31,_0x5c77fb,_0x42ed54){const _0x5b34ba=!!_0x25e9fb[_0x286c31][_0x5aa12a],_0x4952b=_0x5b34ba?_0x25e9fb[_0x286c31][_0x5aa12a]['userId']:null,_0xeab68b=_0x286c31===_0x25e9fb[_0x4c13('0xa0')]-0x1,_0x1b2ec7=_0x365b7d[_0x5aa12a][0x0],_0x3d8515=_0x4a1aae[_0x4c13('0x39')](_0x25e9fb[_0x286c31][_0x4c13('0x82')]);!_0x1a4374[_0x5aa12a]&&_0x5b34ba?_0x1a4374[_0x5aa12a]={'start':_0x5c77fb,'tapeItem':_0x25e9fb[_0x286c31],'userId':_0x4952b,'type':_0x5aa12a}:_0x1a4374[_0x5aa12a]&&!_0x5b34ba?(_0x1a4374[_0x5aa12a][_0x4c13('0x93')]=_0x5c77fb,_0x4792b3(_0x1a4374[_0x5aa12a]),_0x1a4374[_0x5aa12a]=null):_0x1a4374[_0x5aa12a]&&_0x5b34ba&&_0x1a4374[_0x5aa12a][_0x4c13('0x27')]!==_0x4952b&&(_0x1a4374[_0x5aa12a][_0x4c13('0x93')]=_0x5c77fb,_0x1b2ec7&&_0x1b2ec7['userId']===_0x1a4374[_0x5aa12a][_0x4c13('0x27')]||_0x4792b3(_0x1a4374[_0x5aa12a]),_0x1a4374[_0x5aa12a]={'start':_0x5c77fb,'tapeItem':_0x25e9fb[_0x286c31],'userId':_0x4952b,'type':_0x5aa12a}),_0x1a4374[_0x5aa12a]&&_0x3d8515&&(_0x4c13('0xcb')!==_0x25e9fb[_0x286c31]['type']||_0x1b2ec7&&_0x1b2ec7[_0x4c13('0x27')]===_0x4952b||_0x365b7d[_0x5aa12a]['unshift']({'userId':_0x4952b,'object':_0x25e9fb[_0x286c31]['item'],'change':_0x1a4374[_0x5aa12a]}),_0x4c13('0xbc')===_0x25e9fb[_0x286c31][_0x4c13('0xb3')]&&_0x1b2ec7&&_0x1b2ec7[_0x4c13('0xc6')]===_0x25e9fb[_0x286c31]['item']&&(_0x365b7d[_0x5aa12a][_0x4c13('0x37')](),_0x1a4374[_0x5aa12a]=_0x1b2ec7['change'])),_0x1a4374[_0x5aa12a]&&_0xeab68b&&(_0x1a4374[_0x5aa12a][_0x4c13('0x93')]=_0x42ed54,_0x4792b3(_0x1a4374[_0x5aa12a]),_0x1a4374[_0x5aa12a]=null);}function _0x4792b3({start:_0x5b127c,end:_0x13fe73,tapeItem:_0x281a50,userId:_0x47c57f,type:_0x15d257}){const _0x35a686=_0x281a50['item'],_0x463efc=_0xbc3cd2[_0x4c13('0x26')]['isBlock'](_0x35a686)&&!_0xbc3cd2[_0x4c13('0x26')][_0x4c13('0xe8')](_0x35a686),_0x51fb9f=_0x5b127c[_0x4c13('0xf3')]==_0x13fe73[_0x4c13('0x22')]&&_0x13fe73[_0x4c13('0x4d')];if(_0x463efc&&_0x51fb9f)return;const _0x13ce5f=_0xbc3cd2['createRange'](_0x5b127c,_0x13fe73),_0x111d50=_0x40cc22[_0x4c13('0x67')](_0x47c57f),_0x413e10=new _0x33925b({'author':_0x111d50,'type':_0x4c13('0x0')==_0x15d257||_0x4c13('0x4c')==_0x15d257?'add':_0x4c13('0x20'),'data':{'isSuggestion':'isAddSuggestion'==_0x15d257||'isRemoveSuggestion'==_0x15d257},'createdAt':new Date()});_0x1f368b['push'](_0x413e10),_0x5d34bf[_0x4c13('0x9f')]['set'](_0x4c13('0x6d')+_0x413e10['id'],_0x13ce5f);}}['_setConversion'](){this[_0x4c13('0x7b')][_0x4c13('0x7d')][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xea')]({'view':_0x4c13('0xf9')}),this['editor'][_0x4c13('0x7d')][_0x4c13('0xb5')]('editingDowncast')[_0x4c13('0x9a')]({'model':_0x4c13('0xf9'),'view':_0x32370d=>{const _0x1343bf=_0x32370d[_0x4c13('0xaf')][_0x4c13('0x9')](':')[0x1],_0x17b089=this['_getChangeFromId'](_0x1343bf);if(!_0x17b089)return null;const _0x440e4c=_0x4c13('0xcf')==_0x17b089[_0x4c13('0xb3')]?_0x4c13('0x30'):_0x4c13('0x2c'),_0xe7d029=[_0x4c13('0xc5'),'ck-suggestion-marker-'+_0x440e4c];return _0x17b089['data'][_0x4c13('0xf6')]&&_0xe7d029['push']('ck-suggestion-marker-'+_0x440e4c+_0x4c13('0xa4')),this[_0x4c13('0xdd')]==_0x17b089&&_0xe7d029[_0x4c13('0x46')]('ck-suggestion-marker--active'),{'classes':_0xe7d029,'attributes':{'data-change-id':_0x1343bf}};}}),this[_0x4c13('0x7b')][_0x4c13('0x7d')][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xcf')](_0x58bb44=>{_0x58bb44['on']('element:pre',(_0x148e97,_0x3bed2d,_0x334f15)=>{const _0x3ff3e5=_0x3bed2d[_0x4c13('0x31')][_0x4c13('0x78')](0x0);if(!_0x3ff3e5||!_0x3ff3e5['is'](_0x4c13('0x49'),_0x4c13('0x48')))return;if(!_0x334f15[_0x4c13('0x9e')][_0x4c13('0x6e')](_0x3ff3e5,{'attributes':[_0x4c13('0x77'),_0x4c13('0x28')]}))return;const _0xb4bab0=_0x3bed2d[_0x4c13('0xf8')][_0x4c13('0xf7')][_0x4c13('0xf3')];_0x334f15[_0x4c13('0x32')][_0x4c13('0xe6')]('vid_start',_0x3ff3e5[_0x4c13('0x54')](_0x4c13('0x77')),_0xb4bab0),_0x334f15[_0x4c13('0x32')][_0x4c13('0xe6')]('vid_end',_0x3ff3e5[_0x4c13('0x54')]('vid_end'),_0xb4bab0);},{'priority':_0x4c13('0xd7')});}),this['editor']['conversion'][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xcf')](_0x57660b=>{_0x57660b['on']('element',(_0x18fc44,_0x2baff6,_0x58477f)=>{if(!_0x58477f[_0x4c13('0x9e')]['consume'](_0x2baff6[_0x4c13('0x31')],{'attributes':[_0x4c13('0x77'),'vid_end']}))return;if(_0x2baff6[_0x4c13('0xf8')][_0x4c13('0x3c')])return;const _0x3a5281=_0x2baff6[_0x4c13('0xf8')][_0x4c13('0xf7')][_0x4c13('0xf3')];_0x3a5281[_0x4c13('0xb9')](_0x4c13('0x77'))||_0x3a5281[_0x4c13('0xb9')](_0x4c13('0x17'))||(_0x58477f['writer'][_0x4c13('0xe6')](_0x4c13('0x77'),_0x2baff6[_0x4c13('0x31')]['getAttribute'](_0x4c13('0x77')),_0x3a5281),_0x58477f[_0x4c13('0x32')][_0x4c13('0xe6')](_0x4c13('0x28'),_0x2baff6['viewItem'][_0x4c13('0x54')](_0x4c13('0x28')),_0x3a5281));},{'priority':_0x4c13('0xd7')});}),this['editor'][_0x4c13('0x7d')]['for'](_0x4c13('0xe0'))[_0x4c13('0x5d')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x4c13('0x17'),'value':_0x5c5026=>_0x5c5026[_0x4c13('0x54')](_0x4c13('0x17'))}}),this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0x26')]['on'](_0x4c13('0xb'),(_0x28e08a,[,_0x4d6b70])=>{[_0x4c13('0x77'),_0x4c13('0x28'),_0x4c13('0x17')]['includes'](_0x4d6b70)&&(_0x28e08a[_0x4c13('0x14')]=!0x0,_0x28e08a['stop']());},{'priority':_0x4c13('0x83')}),this['editor'][_0x4c13('0x7d')][_0x4c13('0xb5')](_0x4c13('0x72'))[_0x4c13('0xcf')](_0x2a7dbd=>{_0x2a7dbd['on'](_0x4c13('0xf5'),(_0x32815b,_0x539f04,_0x3e0c6f)=>{if('\x20'!=_0x539f04[_0x4c13('0x82')][_0x4c13('0xcd')]||_0x539f04[_0x4c13('0x82')]['parent']['maxOffset']>0x1)return;if(!_0x3e0c6f[_0x4c13('0x9e')][_0x4c13('0x6e')](_0x539f04[_0x4c13('0x82')],_0x32815b[_0x4c13('0xd0')]))return;const _0x131e18=_0x3e0c6f[_0x4c13('0x32')],_0x200ae3=_0x3e0c6f[_0x4c13('0xdf')][_0x4c13('0xf0')](_0x539f04[_0x4c13('0x60')]);_0x131e18['wrap'](_0x200ae3,_0x131e18[_0x4c13('0x47')](_0x4c13('0x62')));});}),this[_0x4c13('0x7b')][_0x4c13('0x7d')]['for'](_0x4c13('0x72'))[_0x4c13('0xc9')]({'model':_0x4c13('0xf9')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on'](_0x4c13('0x61'),function(_0x3254e6){const _0xc90e73=_0x3254e6['plugins'][_0x4c13('0x67')](_0x4c13('0x99'));return(_0x3a559a,_0x2560b4,_0x22b395)=>{const _0x5eb697=_0x2560b4[_0x4c13('0xaf')][_0x4c13('0x9')](':')[0x1],_0x25d4b8=_0xc90e73[_0x4c13('0x58')](_0x5eb697);if(!_0x25d4b8)return null;const _0x330e00=_0x4c13('0xcf')==_0x25d4b8[_0x4c13('0xb3')]?_0x4c13('0x9'):_0x4c13('0x7c');if(!_0x22b395[_0x4c13('0x9e')][_0x4c13('0xb2')](_0x2560b4[_0x4c13('0xd6')],_0x3a559a['name']))return;const _0x3e96e5=_0x2560b4[_0x4c13('0xd6')][_0x4c13('0x80')](),_0x155764=_0x2560b4[_0x4c13('0xd6')]['start'],_0x2d80d1=_0x3254e6[_0x4c13('0x6f')][_0x4c13('0x26')];let _0xd4dbd1=null,_0x3ca130=null,_0x3599fc=!0x1,_0x5c9ab2=!0x1;for(const _0x3c8670 of _0x3e96e5){const _0x4593ad=_0x3c8670[_0x4c13('0x82')];_0x3599fc=_0x3599fc||_0x2d80d1[_0x4c13('0xac')](_0x4593ad);const _0x33776a=_0x22b395[_0x4c13('0xdf')][_0x4c13('0x8b')](_0x4593ad);if(_0x33776a&&_0x33776a[_0x4c13('0x34')](_0x4c13('0x1a')))return;_0x4c13('0xbc')==_0x3c8670['type']&&(_0x2d80d1['isBlock'](_0x4593ad)&&!_0x2d80d1[_0x4c13('0xe8')](_0x4593ad)&&(_0x4593ad[_0x4c13('0x13')]||_0x155764[_0x4c13('0x3a')]?_0xd4dbd1&&_0xd4dbd1[_0x4c13('0x22')]==_0x4593ad||(_0xd4dbd1=_0x4593ad,_0x4c128a(_0x3c8670['previousPosition']),_0x5c9ab2=!0x0):_0x3ca130=_0x3ca130||_0x3c8670[_0x4c13('0x94')]));}function _0x4c128a(_0x274c78){const _0x5b4d87=_0x22b395[_0x4c13('0x32')][_0x4c13('0x15')](_0x4c13('0x62'),{'class':_0x4c13('0x9b')+_0x330e00}),_0x24d552=_0x22b395[_0x4c13('0xdf')]['toViewPosition'](_0x274c78);_0x25d4b8['data'][_0x4c13('0xf6')]&&_0x22b395[_0x4c13('0x32')][_0x4c13('0x4')]('ck-suggestion-marker-'+_0x330e00+_0x4c13('0xa4'),_0x5b4d87),_0xc90e73[_0x4c13('0xdd')]==_0x25d4b8&&_0x22b395[_0x4c13('0x32')][_0x4c13('0x4')]('ck-suggestion-marker--active',_0x5b4d87),_0x22b395[_0x4c13('0x32')]['insert'](_0x24d552,_0x5b4d87),_0x22b395['mapper'][_0x4c13('0xb7')](_0x5b4d87,_0x2560b4[_0x4c13('0xaf')]);}_0x3599fc||_0x5c9ab2||!_0x3ca130||_0x4c128a(_0x3ca130);};}(this[_0x4c13('0x7b')]),{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on'](_0x4c13('0x18'),(_0x16868f,_0x2b9a67,_0x154df7)=>{const _0x46b06a=_0x154df7[_0x4c13('0xdf')][_0x4c13('0x40')](_0x2b9a67[_0x4c13('0xaf')]);if(_0x46b06a)for(const _0x2f44cd of _0x46b06a)(_0x2f44cd[_0x4c13('0x21')](_0x4c13('0x56'))||_0x2f44cd[_0x4c13('0x21')](_0x4c13('0x88')))&&(_0x154df7[_0x4c13('0xdf')][_0x4c13('0x19')](_0x2f44cd,_0x2b9a67[_0x4c13('0xaf')]),_0x154df7[_0x4c13('0x32')][_0x4c13('0x20')](_0x2f44cd));},{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')]['downcastDispatcher']['on'](_0x4c13('0x61'),(_0x5c4e6c,_0x1c3bad,_0x3eac6d)=>{const _0x946a54=_0x1c3bad['markerName'][_0x4c13('0x9')](':')[0x1],_0x2155ee=this['_getChangeFromId'](_0x946a54);if(!_0x2155ee)return null;const _0x471add=_0x4c13('0xcf')==_0x2155ee[_0x4c13('0xb3')]?_0x4c13('0x9'):_0x4c13('0x7c');if(_0x3eac6d[_0x4c13('0x9e')][_0x4c13('0xb2')](_0x1c3bad[_0x4c13('0xd6')],_0x5c4e6c[_0x4c13('0xd0')]))for(const _0x44bfab of _0x1c3bad[_0x4c13('0xd6')][_0x4c13('0x10')]()){if(!_0x44bfab['is'](_0x4c13('0x49'),_0x4c13('0x2f')))continue;const _0x184e65=_0x3eac6d[_0x4c13('0x32')][_0x4c13('0x15')](_0x4c13('0x62'),{'class':_0x4c13('0x9b')+_0x471add}),_0x233fb8=_0x3eac6d[_0x4c13('0xdf')][_0x4c13('0x1b')](this[_0x4c13('0x7b')][_0x4c13('0x6f')][_0x4c13('0xbb')](_0x44bfab));_0x2155ee[_0x4c13('0xcd')][_0x4c13('0xf6')]&&_0x3eac6d[_0x4c13('0x32')]['addClass'](_0x4c13('0x9b')+_0x471add+'-new',_0x184e65),this[_0x4c13('0xdd')]==_0x2155ee&&_0x3eac6d[_0x4c13('0x32')][_0x4c13('0x4')](_0x4c13('0x8a'),_0x184e65),_0x3eac6d[_0x4c13('0x32')][_0x4c13('0x6b')](_0x233fb8,_0x184e65),_0x3eac6d[_0x4c13('0xdf')][_0x4c13('0xb7')](_0x184e65,_0x1c3bad[_0x4c13('0xaf')]);}},{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')]['conversion'][_0x4c13('0xb5')](_0x4c13('0xe0'))[_0x4c13('0xea')]({'view':_0x4c13('0xda')}),this[_0x4c13('0x7b')][_0x4c13('0x7d')]['for']('dataDowncast')[_0x4c13('0xc9')]({'model':_0x4c13('0xda')}),this[_0x4c13('0x7b')][_0x4c13('0x7d')][_0x4c13('0xb5')]('editingDowncast')[_0x4c13('0x9a')]({'model':_0x4c13('0xda'),'view':_0x481319=>{const _0x5e2409=_0x481319[_0x4c13('0xaf')][_0x4c13('0x9')](':')[0x1];return _0x4c13('0x30')!=_0x5e2409&&'deletion'!=_0x5e2409?null:{'classes':[_0x4c13('0x5'),'ck-suggestion-preview-marker-'+_0x5e2409]};}}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on']('addMarker:suggestion:deletion',J(this['editor'],_0x4c13('0x7c')),{'priority':_0x4c13('0x2e')}),this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xa6')]['on'](_0x4c13('0xdb'),J(this['editor'],_0x4c13('0x9')),{'priority':_0x4c13('0x2e')}),this['editor']['editing'][_0x4c13('0xa6')]['on']('removeMarker:suggestion',(_0x1fe92e,_0x3205ec,_0x16493c)=>{const _0x51dc9b=_0x16493c[_0x4c13('0xdf')][_0x4c13('0x40')](_0x3205ec[_0x4c13('0xaf')]);if(_0x51dc9b)for(const _0x35fbdc of _0x51dc9b)_0x35fbdc['is'](_0x4c13('0xb6'))&&(_0x16493c[_0x4c13('0xdf')][_0x4c13('0x19')](_0x35fbdc,_0x3205ec[_0x4c13('0xaf')]),_0x16493c[_0x4c13('0x32')][_0x4c13('0x20')](_0x35fbdc));},{'priority':'high'});}[_0x4c13('0x58')](_0x5bffb6){return this[_0x4c13('0x87')][_0x4c13('0x67')](_0x5bffb6);}[_0x4c13('0xb1')](_0xa04faa){this[_0x4c13('0xe1')]&&this[_0x4c13('0xe1')]['destroy'](),this[_0x4c13('0xe1')]=new _0x4d9b1c(this['editor'][_0x4c13('0xf1')],_0xa04faa);const _0x55aeb7=this[_0x4c13('0x7b')]['model'][_0x4c13('0x9f')][_0x4c13('0x67')](_0x4c13('0x6d')+_0xa04faa['id']);return this[_0x4c13('0xe1')][_0x4c13('0xd9')]=()=>_0x4cec3c(this[_0x4c13('0x7b')]['editing'],_0x55aeb7),this[_0x4c13('0xe1')];}[_0x4c13('0xc0')](){this[_0x4c13('0x7b')][_0x4c13('0x6f')]['document'][_0x4c13('0xaa')][_0x4c13('0x5e')]('revision'),this['on'](_0x4c13('0x1c'),(_0x34d152,_0x14dab4,_0x289e81,_0x3ce95)=>{_0x3ce95&&this[_0x4c13('0x6a')][_0x4c13('0x20')](_0x3ce95),_0x289e81&&(this['_balloon'][_0x4c13('0xcf')]({'view':_0x289e81,'stackId':'revisionHistoryLabel','position':{'target':_0x289e81[_0x4c13('0xd9')]}}),this[_0x4c13('0x6a')][_0x4c13('0x44')]('revisionHistoryLabel'));}),this['on'](_0x4c13('0x92'),(_0x2ecd19,_0x4e5232,_0x37e7bf,_0x5dd109)=>{this[_0x4c13('0x3e')]=_0x37e7bf?this['_getViewForChange'](_0x37e7bf):null,this[_0x4c13('0x7b')]['model'][_0x4c13('0xe7')](_0x517039=>{_0x5dd109&&_0x517039[_0x4c13('0x70')]('revision:'+_0x5dd109['id']),_0x37e7bf&&_0x517039[_0x4c13('0x70')](_0x4c13('0x6d')+_0x37e7bf['id']);});}),this[_0x4c13('0xe9')](this[_0x4c13('0x7b')][_0x4c13('0x4a')][_0x4c13('0xec')]['document'],'mouseover',(_0x4987bb,_0x5bc0fc)=>{if(this[_0x4c13('0xdd')])return;const _0xd41cc5=this[_0x4c13('0x73')](_0x5bc0fc[_0x4c13('0x7e')]),_0x11ff8e=this[_0x4c13('0x87')][_0x4c13('0x67')](_0xd41cc5);this[_0x4c13('0x3e')]=_0x11ff8e?this['_getViewForChange'](_0x11ff8e):null;}),this[_0x4c13('0xe9')](this[_0x4c13('0x7b')]['editing'][_0x4c13('0xec')][_0x4c13('0xd3')],'mousedown',(_0x4ef0c0,_0xe81e0d)=>{const _0x15ac81=this[_0x4c13('0x73')](_0xe81e0d['target']),_0x3b3b8c=this['_changeIdToChange'][_0x4c13('0x67')](_0x15ac81);this[_0x4c13('0xdd')]=_0x3b3b8c||null;});}[_0x4c13('0x73')](_0x28475a){do{const _0x1e59a3=_0x28475a[_0x4c13('0x54')]('data-change-id');if(_0x1e59a3)return _0x1e59a3;_0x28475a=_0x28475a[_0x4c13('0x22')];}while(_0x28475a);return null;}['_cleanMarkers'](){this[_0x4c13('0x7b')]['model'][_0x4c13('0xe7')](_0x149d62=>{for(const _0x9e2040 of this['editor'][_0x4c13('0x6f')]['markers'])_0x149d62[_0x4c13('0x63')](_0x9e2040);});}}function J(_0x2a98ab,_0x8e6b77){return(_0x5a3456,_0x30b1f1,_0x6c522)=>{if(!_0x6c522['consumable'][_0x4c13('0xb2')](_0x30b1f1['markerRange'],_0x5a3456[_0x4c13('0xd0')]))return;const _0x35734a=_0x30b1f1['markerRange'][_0x4c13('0x80')](),_0x45e749=_0x30b1f1[_0x4c13('0xd6')][_0x4c13('0xf7')],_0x29d262=_0x2a98ab[_0x4c13('0x6f')][_0x4c13('0x26')];let _0x2e32e8=null,_0x51c404=null,_0x35df54=!0x1,_0x286d25=!0x1;for(const _0x3d6fa9 of _0x35734a){const _0x3ad83e=_0x3d6fa9[_0x4c13('0x82')];_0x35df54=_0x35df54||_0x29d262[_0x4c13('0xac')](_0x3ad83e);const _0x43c585=_0x6c522[_0x4c13('0xdf')][_0x4c13('0x8b')](_0x3ad83e);if(_0x43c585&&_0x43c585['getCustomProperty'](_0x4c13('0x1a')))return;_0x4c13('0xbc')==_0x3d6fa9[_0x4c13('0xb3')]&&(_0x29d262['isBlock'](_0x3ad83e)&&!_0x29d262['isLimit'](_0x3ad83e)&&(_0x3ad83e[_0x4c13('0x13')]||_0x45e749[_0x4c13('0x3a')]?_0x2e32e8&&_0x2e32e8[_0x4c13('0x22')]==_0x3ad83e||(_0x2e32e8=_0x3ad83e,_0x1f7bda(_0x3d6fa9['previousPosition']),_0x286d25=!0x0):_0x51c404=_0x51c404||_0x3d6fa9[_0x4c13('0x94')]));}function _0x1f7bda(_0xdd89f1){const _0x1dfea3=_0x6c522[_0x4c13('0xdf')][_0x4c13('0x1b')](_0xdd89f1),_0x1c4aab=_0x6c522[_0x4c13('0x32')][_0x4c13('0x15')](_0x4c13('0x62'),{'class':'ck-suggestion-preview-marker-'+_0x8e6b77});_0x6c522[_0x4c13('0x32')][_0x4c13('0x6b')](_0x1dfea3,_0x1c4aab),_0x6c522[_0x4c13('0xdf')]['bindElementToMarker'](_0x1c4aab,_0x30b1f1['markerName']);}_0x35df54||_0x286d25||!_0x51c404||_0x1f7bda(_0x51c404);};}_0x27575c(d,_0x2c438c);class L extends _0x333c3e{constructor(_0x23fb89){super(_0x23fb89);const _0x2e570c=_0x23fb89[_0x4c13('0xbf')][_0x4c13('0x67')](d);this['stopListening'](_0x23fb89,_0x4c13('0xdc')),this[_0x4c13('0x91')](_0x4c13('0x12')),this[_0x4c13('0xe9')](_0x2e570c,_0x4c13('0xb4'),()=>this[_0x4c13('0xb8')]()),this[_0x4c13('0xe9')](_0x2e570c,_0x4c13('0x57'),()=>this[_0x4c13('0xb8')]());}[_0x4c13('0x65')](){const _0x3074d4=this[_0x4c13('0x7b')],_0x1319ad=_0x3074d4[_0x4c13('0xbf')][_0x4c13('0x67')](d),_0x499211=_0x1319ad[_0x4c13('0x11')]?_0x1319ad[_0x4c13('0x89')][_0x4c13('0x3')]:null;_0x3074d4['config']['get'](_0x4c13('0xce'))[_0x4c13('0xe3')](_0x499211);}[_0x4c13('0xb8')](){const {isReady:_0x3e69ee,isEnabled:_0x4297e4}=this[_0x4c13('0x7b')][_0x4c13('0xbf')][_0x4c13('0x67')](d);this[_0x4c13('0x1f')]=_0x3e69ee&&_0x4297e4;}}class q extends _0x333c3e{constructor(_0x592524,{direction:_0x36a006}){super(_0x592524);const _0x1372a2=_0x592524['plugins'][_0x4c13('0x67')](d);this['stopListening'](_0x592524,'change:isReadOnly'),this[_0x4c13('0x91')](_0x4c13('0x12')),this['_step']=_0x4c13('0x1d')===_0x36a006?0x1:-0x1,this[_0x4c13('0xe9')](_0x1372a2,_0x4c13('0xb4'),()=>this[_0x4c13('0xb8')]()),this[_0x4c13('0xe9')](_0x1372a2,_0x4c13('0x57'),()=>this['refresh']());}[_0x4c13('0x65')](){const _0x4f8f10=this[_0x4c13('0x7b')],_0x391bf4=_0x4f8f10[_0x4c13('0xbf')][_0x4c13('0x67')](d),{isNavigationMode:_0x1a06cb,currentChangeNumber:_0x43f1f5}=_0x391bf4;_0x391bf4[_0x4c13('0xdd')]=_0x1a06cb?_0x391bf4[_0x4c13('0x89')][_0x4c13('0xee')][_0x4c13('0x67')](_0x43f1f5+this['_step']):_0x391bf4[_0x4c13('0x89')][_0x4c13('0xee')][_0x4c13('0xc4')];const _0x3eeca4=_0x4f8f10['model'][_0x4c13('0x9f')]['get'](_0x4c13('0x6d')+_0x391bf4['activeChange']['id']),_0x345a60=_0x4cec3c(_0x4f8f10[_0x4c13('0x4a')],_0x3eeca4);_0x4592af({'target':_0x345a60,'viewportOffset':0x28});}[_0x4c13('0xb8')](){const {isNavigationMode:_0x27d982,currentChangeNumber:_0x5706dc,numberOfChanges:_0x53fceb,isReady:_0x19b65f,isEnabled:_0x35093a}=this[_0x4c13('0x7b')][_0x4c13('0xbf')][_0x4c13('0x67')](d);this['isEnabled']=!!(_0x35093a&&_0x19b65f&&_0x53fceb)&&(!_0x27d982||(0x1===this[_0x4c13('0xae')]?_0x5706dc<_0x53fceb-0x1:_0x5706dc>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x435436}from'ckeditor5/src/utils';import{Model as _0x43ba83,addListToDropdown as _0x72781,createDropdown as _0x4eed4c}from'ckeditor5/src/ui';import _0x7b82eb from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x1357f3,_0x374a21){const _0x33b768=_0x1357f3['bindTemplate'],_0x235b19=_0x1357f3['locale'],t=_0x235b19['t'],_0x34746a=_0x4eed4c(_0x235b19);_0x34746a['panelPosition']='sw';const _0x2a5ccc=function(_0x166f04,_0x4ca4dc){const _0x36f6a3=function(_0x542a57,_0x47b156){const t=_0x542a57['locale']['t'],_0x456730={'Compare\x20against\x20selected':t('Compare\x20against\x20selected'),'Name\x20this\x20revision':t('Name\x20this\x20revision'),'Restore\x20this\x20revision':t('Restore\x20this\x20revision')};return _0x47b156['map'](_0x123626=>{const _0x57107e=_0x456730[_0x123626['name']];return _0x57107e&&_0x57107e!==_0x123626['name']&&(_0x123626['name']=_0x57107e),_0x123626;});}(_0x166f04,_0x4ca4dc),_0x499dc1=new _0x435436();for(const _0x1420dc of _0x36f6a3){const _0x3e15c2={'type':'button','model':new _0x43ba83({'label':_0x1420dc['name'],'class':_0x1420dc['class'],'withText':!0x0,'_action':_0x1420dc['action']})};_0x3e15c2['model']['bind']('isVisible')['to'](_0x166f04,'isActionsDropdownOpen',_0x263db4=>'function'!=typeof _0x1420dc['isVisible']||(!_0x263db4||_0x1420dc['isVisible'](_0x166f04))),_0x3e15c2['model']['bind']('isEnabled')['to'](_0x166f04,'isActionsDropdownOpen',_0x1c9fc9=>'function'!=typeof _0x1420dc['isEnabled']||(!_0x1c9fc9||_0x1420dc['isEnabled'](_0x166f04))),_0x499dc1['add'](_0x3e15c2);}return _0x499dc1;}(_0x1357f3,_0x374a21);return _0x1357f3['bind']('isActionsDropdownOpen')['to'](_0x34746a,'isOpen'),_0x34746a['buttonView']['set']({'label':t('Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x7b82eb}),_0x34746a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x33b768['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x33b768['to'](_0x9b2cf0=>_0x9b2cf0['stopPropagation']())}}),_0x34746a['on']('execute',_0x224c72=>{_0x1357f3['isReady']&&'function'==typeof _0x224c72['source']['_action']&&_0x224c72['source']['_action'](_0x1357f3);}),_0x72781(_0x34746a,_0x2a5ccc),_0x34746a;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
import{View as _0x14b3ee,IconView as _0x43aa9b}from'ckeditor5/src/ui';import _0x541410 from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class Y extends _0x14b3ee{constructor(_0x266590,_0x59cf0f,_0x1db7a8){super(_0x266590);const t=_0x266590['t'],_0x374215=new _0x43aa9b(_0x266590);_0x374215['set']({'content':_0x541410,'viewBox':'0\x200\x2011\x2010'});const _0x397a7b=['ck','ck-revision-history-sidebar__revision-author'];_0x1db7a8&&_0x397a7b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2adeed=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':t(_0x1db7a8?'Revision\x20creator':'Revision\x20author')},'children':[_0x374215,_0x59cf0f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x397a7b},'children':_0x2adeed});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{LabeledFieldView as
|
|
23
|
+
import{LabeledFieldView as _0x5cab93}from'ckeditor5/src/ui';import'../../../theme/revision/revisionname.css';export default class ss extends _0x5cab93{constructor(..._0x5ecfc6){super(..._0x5ecfc6);const t=this['t'];this['set']({'label':t('Revision\x20name')}),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cb7=['ck-revision-history-sidebar__actions_dropdown_open','ck-reset','bind','isEnabled','isActionsDropdownOpen','value','filter','_revision','createdAt','div','set','isSelected','fieldView','_createdAtFormatted','map','listenTo','revisionActionsView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','srcElement','placeholder','select','render','ck-revision-history-sidebar__revision_selected','highlight','fire','isHighlighted','name','unhighlight','ck-disabled','length','from','setName','ck-revision-history-sidebar__revision__date','bindTemplate','closest','ck-revision-history-sidebar__revision_highlighted','authors','span','element','ck-revision-history-sidebar__revision__controls-wrapper','revisionNameView','creator'];(function(_0x4574c0,_0x3cb715){const _0x49a934=function(_0x46d60e){while(--_0x46d60e){_0x4574c0['push'](_0x4574c0['shift']());}};_0x49a934(++_0x3cb715);}(_0x3cb7,0x188));const _0x49a9=function(_0x4574c0,_0x3cb715){_0x4574c0=_0x4574c0-0x0;let _0x49a934=_0x3cb7[_0x4574c0];return _0x49a934;};import _0x3f9e37 from'./revisionnameview';import _0x4521d2 from'./revisionauthorview';import{View as _0x1bf14b,createLabeledInputText as _0x2bcbf3}from'ckeditor5/src/ui';import{dateToPrettyFormat as _0x36e365}from'./utils';import{createActionsDropdownView as _0x4560dc}from'./createrevisionactionsdropdown';import _0x263847 from'@ckeditor/ckeditor5-comments/src/comments/ui/view/confirmmixin';import{mix as _0x2cf63d}from'ckeditor5/src/utils';import'../../../theme/revision/revision.css';export default class ri extends _0x1bf14b{constructor(_0x4de529,_0x18cae7,_0xc4a2b){super(_0x4de529);const _0x505912=this[_0x49a9('0x13')],_0x143cc6=function(_0x37566e,_0x31d4a6){const _0x1ddd14=Array[_0x49a9('0x10')](_0x31d4a6[_0x49a9('0x16')])[_0x49a9('0x22')](_0x4f376a=>_0x4f376a!=_0x31d4a6[_0x49a9('0x1b')]);return _0x31d4a6[_0x49a9('0x1b')]&&_0x1ddd14['unshift'](_0x31d4a6[_0x49a9('0x1b')]),_0x1ddd14[_0x49a9('0x0')](_0x7d25a=>new _0x4521d2(_0x37566e,_0x7d25a,_0x7d25a==_0x31d4a6['creator']));}(_0x4de529,_0x18cae7);this[_0x49a9('0x23')]=_0x18cae7,this['id']=_0x18cae7['id'],this['bind'](_0x49a9('0xc'),_0x49a9('0x24'))['to'](_0x18cae7),this[_0x49a9('0x26')](_0x49a9('0x27'),!0x1),this[_0x49a9('0x26')](_0x49a9('0xb'),!0x1),this[_0x49a9('0x26')](_0x49a9('0x20'),!0x1),this[_0x49a9('0x26')]('isReady',!0x1),this[_0x49a9('0x1e')](_0x49a9('0x29'))['to'](this,_0x49a9('0x24'),_0x236459=>_0x236459?_0x36e365(_0x4de529['uiLanguage'],_0x236459):null),this[_0x49a9('0x26')](_0x49a9('0x1f'),!0x1),this[_0x49a9('0x1a')]=new _0x3f9e37(_0x4de529,_0x2bcbf3),this['revisionNameView'][_0x49a9('0x28')][_0x49a9('0x1e')]('value',_0x49a9('0x5'))['to'](this,_0x49a9('0xc'),_0x49a9('0x29')),this[_0x49a9('0x1a')][_0x49a9('0x1e')](_0x49a9('0x1f'))['to'](this,_0x49a9('0x27'),this,_0x49a9('0x1f'),(_0x49ed4f,_0x278df7)=>_0x49ed4f&&_0x278df7),this[_0x49a9('0x2')]=_0xc4a2b&&_0xc4a2b[_0x49a9('0xf')]?_0x4560dc(this,_0xc4a2b):'',this[_0x49a9('0x2')][_0x49a9('0x1e')](_0x49a9('0x1f'))['to'](this),this['setTemplate']({'tag':_0x49a9('0x25'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x505912['if']('isConfirm',_0x49a9('0x3'))]},'children':[{'tag':_0x49a9('0x25'),'attributes':{'class':['ck',_0x49a9('0x1d'),'ck-revision-history-sidebar__revision',_0x505912['if'](_0x49a9('0x1f'),_0x49a9('0xe'),_0x3c15f3=>!_0x3c15f3),_0x505912['if'](_0x49a9('0x27'),_0x49a9('0x8')),_0x505912['if']('isHighlighted',_0x49a9('0x15')),_0x505912['if'](_0x49a9('0x20'),_0x49a9('0x1c'))]},'children':[this[_0x49a9('0x1a')],{'tag':_0x49a9('0x17'),'attributes':{'class':['ck',_0x49a9('0x12')]},'children':[{'text':_0x505912['to'](_0x49a9('0x29'))}]},{'tag':_0x49a9('0x25'),'attributes':{'class':['ck',_0x49a9('0x19')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x143cc6}]},this['revisionActionsView']],'on':{'click':_0x505912['to'](_0x5836b4=>{_0x5836b4[_0x49a9('0x4')][_0x49a9('0x14')]('.ck-thread__remove-confirm')||this['isReady']&&this[_0x49a9('0x1f')]&&this[_0x49a9('0xa')](_0x49a9('0x6'),{'id':this['id']});})}}]});}[_0x49a9('0x7')](){super[_0x49a9('0x7')]();const _0xd614a6=this[_0x49a9('0x1a')][_0x49a9('0x28')][_0x49a9('0x18')];this[_0x49a9('0x1')](_0xd614a6,'change',()=>{this[_0x49a9('0x23')][_0x49a9('0x11')](_0xd614a6[_0x49a9('0x21')]);});}[_0x49a9('0x6')](){this[_0x49a9('0x27')]=!0x0;}['deselect'](){this[_0x49a9('0x27')]=!0x1;}[_0x49a9('0x9')](){this[_0x49a9('0xb')]=!0x0;}[_0x49a9('0xd')](){this[_0x49a9('0xb')]=!0x1;}}_0x2cf63d(ri,_0x263847);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50fe=['isVisible','bindTemplate','true','ck-revision-history-sidebar__subrevision-collapser__inner','set','setTemplate','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser_collapsed','click','false','span','toggle'];(function(_0x4d171f,_0x50fe4f){const _0x7023b7=function(_0x5a4709){while(--_0x5a4709){_0x4d171f['push'](_0x4d171f['shift']());}};_0x7023b7(++_0x50fe4f);}(_0x50fe,0x1a8));const _0x7023=function(_0x4d171f,_0x50fe4f){_0x4d171f=_0x4d171f-0x0;let _0x7023b7=_0x50fe[_0x4d171f];return _0x7023b7;};import{View as _0xb5e297}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class is extends _0xb5e297{constructor(_0xecc499){super(_0xecc499);const _0x466fc8=this[_0x7023('0x6')];this[_0x7023('0x9')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x7023('0xa')]({'tag':'span','attributes':{'class':['ck',_0x7023('0xc'),_0x466fc8['if'](_0x7023('0x5'),'ck-hidden',_0x3ab25a=>!_0x3ab25a),_0x466fc8['if'](_0x7023('0xb'),_0x7023('0x0'))],'role':'button','aria-pressed':_0x466fc8['to'](_0x7023('0xb'),_0x57c4fe=>_0x57c4fe?_0x7023('0x2'):_0x7023('0x7'))},'children':[{'tag':_0x7023('0x3'),'attributes':{'class':['ck',_0x7023('0x8')]}}],'on':{'click':_0x466fc8['to'](_0x7023('0x1'))}});}[_0x7023('0x4')](){this[_0x7023('0xb')]=!this[_0x7023('0xb')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a5d=['ck-revision-history-sidebar__revision-authors','isSelected','deselect','setTemplate','bindTemplate','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','createdAt','ck-revision-history-sidebar__subrevision','author','uiLanguage','ck-revision-history-sidebar__revision_selected','select','_createdAtFormatted','bind'];(function(_0x3eb848,_0x1a5d47){const _0x33b966=function(_0x309026){while(--_0x309026){_0x3eb848['push'](_0x3eb848['shift']());}};_0x33b966(++_0x1a5d47);}(_0x1a5d,0x16b));const _0x33b9=function(_0x3eb848,_0x1a5d47){_0x3eb848=_0x3eb848-0x0;let _0x33b966=_0x1a5d[_0x3eb848];return _0x33b966;};import{View as _0x28404b}from'ckeditor5/src/ui';import _0x375c3c from'./revisionauthorview';import{dateToPrettyFormat as _0x578f15}from'./utils';import'../../../theme/revision/subrevision.css';export default class tt extends _0x28404b{constructor(_0x54192d,_0x330036,_0x16dded){super(_0x54192d);const _0x460a7f=this[_0x33b9('0x1')];this['id']=_0x330036['id'],this[_0x33b9('0xb')]('createdAt')['to'](_0x330036),this['set'](_0x33b9('0xd'),!0x1),this[_0x33b9('0xb')](_0x33b9('0xa'))['to'](this,_0x33b9('0x4'),_0x40c281=>_0x40c281?_0x578f15(_0x54192d[_0x33b9('0x7')],_0x40c281):null),this['_parentRevisionId']=_0x16dded,this[_0x33b9('0x0')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x33b9('0x2'),_0x33b9('0x5'),_0x460a7f['if'](_0x33b9('0xd'),_0x33b9('0x8'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x33b9('0x3')]},'children':[{'text':_0x460a7f['to'](_0x33b9('0xa'))}]},{'tag':'ul','attributes':{'class':['ck',_0x33b9('0xc')]},'children':[new _0x375c3c(_0x54192d,_0x330036[_0x33b9('0x6')],!0x0)]}],'on':{'click':_0x460a7f['to'](this[_0x33b9('0x9')][_0x33b9('0xb')](this))}});}[_0x33b9('0x9')](){this[_0x33b9('0xd')]=!0x0,this['fire'](_0x33b9('0x9'),{'parentId':this['_parentRevisionId']});}[_0x33b9('0xe')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x40c0=['long','numeric'];(function(_0x4fae56,_0x40c046){var _0x2ceb46=function(_0x8feba9){while(--_0x8feba9){_0x4fae56['push'](_0x4fae56['shift']());}};_0x2ceb46(++_0x40c046);}(_0x40c0,0x1b3));var _0x2ceb=function(_0x4fae56,_0x40c046){_0x4fae56=_0x4fae56-0x0;var _0x2ceb46=_0x40c0[_0x4fae56];return _0x2ceb46;};export function dateToPrettyFormat(_0x9a445d,_0xbfb90c){return _0xbfb90c['toLocaleDateString'](_0x9a445d,{'month':_0x2ceb('0x1'),'day':_0x2ceb('0x0')})+',\x20'+_0xbfb90c['toLocaleTimeString'](_0x9a445d,{'hour':_0x2ceb('0x0'),'minute':'numeric'});}
|