@ckeditor/ckeditor5-revision-history 46.0.0-alpha.3 → 46.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.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 +2 -2
- 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 +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x235c38(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x21ff7b){super(),this['id']=_0x21ff7b['id']||_0x1a737e(),this['creator']=_0x21ff7b['creator']||null,this['authors']=_0x21ff7b['authors']||[],this['diffData']=_0x21ff7b['diffData']||null,this['toVersion']=_0x21ff7b['toVersion']||0x0,this['fromVersion']=_0x21ff7b['fromVersion']||0x0,this['set']('name',_0x21ff7b['name']||''),this['set']('createdAt',_0x21ff7b['createdAt']||new Date()),this['set']('attributes',_0x21ff7b['attributes']||{});}['setName'](_0x29cb35){this['_update']({'name':_0x29cb35});}['setAttribute'](_0xe778ee,_0xff89a1){const _0x157afc=_0x2b75d6(this['attributes']);_0x535535(_0x157afc,_0xe778ee,_0xff89a1),this['_update']({'attributes':_0x157afc});}['removeAttribute'](_0x66099d){const _0x56c204=_0x2b75d6(this['attributes']);_0x5acadb(_0x56c204,_0x66099d),this['_update']({'attributes':_0x56c204});}['_update'](_0x3d46f9,_0x595d97=!0x1){let _0x733e9f=!0x1;const _0x3a293a={'id':this['id']},_0x4e3c2c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x7209f9 of _0x4e3c2c){const _0x102289=_0x3d46f9[_0x7209f9];void 0x0!==_0x102289&&_0x102289!==this[_0x7209f9]&&(this[_0x7209f9]=_0x102289,_0x3a293a[_0x7209f9]=_0x102289,_0x733e9f=!0x0);}_0x733e9f&&(_0x3a293a['authors']&&(_0x3a293a['authorsIds']=_0x3a293a['authors']['map'](_0x58ff4d=>_0x58ff4d['id']),delete _0x3a293a['authors']),this['fire']('_update',_0x3a293a,_0x595d97));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x53e04b=>_0x53e04b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x858dc7{['_revisions'];static get['requires'](){return[_0x267b04];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1c924c){super(_0x1c924c),this['_revisions']=new _0x1d5790();}['afterInit'](){!async function(_0x59eb22){const _0xeae7e1=_0x341d79([0x77,0x59,0x49,0x31,0x4f,0x76,0x30,0x64,0x44,0x63,0x79,0x7a,0x35,0x75,0x78,0x47,0x67,0x72,0x6f,0x38,0x54,0x32,0x6e,0x56,0x69,0x62,0x53,0x6b,0x39,0x61,0x73,0x66,0x46,0x33,0x58,0x74,0x50,0x4e,0x70,0x41,0x4b,0x45,0x4a,0x57,0x55,0x34,0x65,0x48,0x4d,0x52,0x6c,0x4c,0x43,0x68,0x51,0x6d,0x42,0x5a,0x6a,0x36,0x37,0x71]),_0x541196=0xeb829,_0x29f5ef=0x17ac1d91,_0x1ad27c=0x17ab7109^_0x29f5ef,_0x2bc370=window[_0x341d79([0x44,0x61,0x74,0x65])][_0x341d79([0x6e,0x6f,0x77])](),_0x46dad6=_0x59eb22[_0x341d79([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5bc737=new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d9ecf=>{_0x46dad6[_0x341d79([0x6f,0x6e,0x63,0x65])](_0x341d79([0x72,0x65,0x61,0x64,0x79]),_0x1d9ecf);}),_0x5357a7={[_0x341d79([0x6b,0x74,0x79])]:_0x341d79([0x45,0x43]),[_0x341d79([0x75,0x73,0x65])]:_0x341d79([0x73,0x69,0x67]),[_0x341d79([0x63,0x72,0x76])]:_0x341d79([0x50,0x2d,0x32,0x35,0x36]),[_0x341d79([0x78])]:_0x341d79([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x341d79([0x79])]:_0x341d79([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x341d79([0x61,0x6c,0x67])]:_0x341d79([0x45,0x53,0x32,0x35,0x36])},_0x5d41b8=_0x46dad6[_0x341d79([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x341d79([0x67,0x65,0x74])](_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a38e2(){let _0x5a9896,_0x511a64=null,_0x3fd4e5=null;try{if(_0x5d41b8==_0x341d79([0x47,0x50,0x4c]))return _0x341d79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a9896=_0x44f768(),!_0x5a9896)return _0x341d79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a9896[_0x341d79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fd4e5=_0x2ef1f7(_0x5a9896[_0x341d79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a9896[_0x341d79([0x6a,0x74,0x69])])),await _0x3920c5()?_0x4ece00()?_0x3b82a8()?_0x341d79([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x260b97()?(_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x341d79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x511a64=_0x5c5596(_0x341d79([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x341d79([0x74,0x72,0x69,0x61,0x6c])&&(_0x511a64=_0x5c5596(_0x341d79([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52ca06()):_0x341d79([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x341d79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x341d79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x341d79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b82a8(){const _0x1f49bf=[_0x341d79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x341d79([0x74,0x72,0x69,0x61,0x6c])][_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2bc370/0x3e8:0xe10*_0x1ad27c;return _0x5a9896[_0x341d79([0x65,0x78,0x70])]<_0x1f49bf;}function _0x4ece00(){const _0x13d2ce=_0x5a9896[_0x341d79([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13d2ce)return!0x1;if(_0x13d2ce[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x2a])))return!0x0;if(_0x13d2ce[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x52,0x48])))return!0x0;if(_0x13d2ce[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x52,0x52,0x48]))){if(_0x33d63e())return!0x0;if(_0x5acd5c()||_0x3a35eb())return!0x0;}return!0x1;}function _0x260b97(){const _0x135c2a=_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x135c2a||0x0==_0x135c2a[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e327c}=new URL(window[_0x341d79([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x135c2a[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e327c))return!0x0;const _0x3fa9b2=_0x1e327c[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e]));return _0x135c2a[_0x341d79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53fc1b=>_0x53fc1b[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x2a])))[_0x341d79([0x6d,0x61,0x70])](_0x227ffc=>_0x227ffc[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e])))[_0x341d79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30fd69=>_0x30fd69[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3fa9b2[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341d79([0x6d,0x61,0x70])](_0x58cdec=>Array(_0x3fa9b2[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58cdec[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341d79([0x66,0x69,0x6c,0x6c])](_0x58cdec[0x0]===_0x341d79([0x2a])?_0x341d79([0x2a]):'')[_0x341d79([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58cdec))[_0x341d79([0x73,0x6f,0x6d,0x65])](_0xeeac24=>_0x3fa9b2[_0x341d79([0x65,0x76,0x65,0x72,0x79])]((_0x494849,_0x594704)=>_0xeeac24[_0x594704]===_0x494849||_0xeeac24[_0x594704]===_0x341d79([0x2a])));}function _0x52ca06(){return _0x511a64&&_0x3fd4e5?new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x282400,_0x5ba1d9)=>{_0x511a64[_0x341d79([0x74,0x68,0x65,0x6e])](_0x282400,_0x5ba1d9),_0x3fd4e5[_0x341d79([0x74,0x68,0x65,0x6e])](_0x10722b=>{_0x10722b!=_0x341d79([0x56,0x61,0x6c,0x69,0x64])&&_0x282400(_0x10722b);},_0x5ba1d9);}):_0x511a64||_0x3fd4e5||_0x341d79([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ef1f7(_0x50eb84,_0x3749bb){return new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4befbe=>{if(_0x584089())return _0x4befbe(_0x341d79([0x56,0x61,0x6c,0x69,0x64]));_0x36a1ee(),_0x46dad6[_0x341d79([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x341d79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4499a2=!0x1;const _0x402950=_0x1a737e();function _0xd06e12(_0x82d928){return!!_0x82d928&&(typeof _0x82d928===_0x341d79([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x82d928===_0x341d79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x82d928[_0x341d79([0x74,0x68,0x65,0x6e])]===_0x341d79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x82d928[_0x341d79([0x63,0x61,0x74,0x63,0x68])]===_0x341d79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e48e2(_0x18ed7c){_0x73fc8a(_0x18ed7c)[_0x341d79([0x74,0x68,0x65,0x6e])](_0x17db14=>{if(!_0x17db14||_0x17db14[_0x341d79([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x341d79([0x6f,0x6b]))return _0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x244a66(_0x3808a3(_0x402950+_0x3749bb))!=_0x17db14[_0x341d79([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x341d79([0x56,0x61,0x6c,0x69,0x64]);})[_0x341d79([0x74,0x68,0x65,0x6e])](_0xa9ff00=>(_0x48f461(),_0xa9ff00),()=>{const _0x5b833e=_0xed9653();return null==_0x5b833e?(_0x48f461(),_0x341d79([0x56,0x61,0x6c,0x69,0x64])):_0x341d79(_0x2bc370-_0x5b833e>(0x33a09991^_0x29f5ef)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x341d79([0x74,0x68,0x65,0x6e])](_0x4befbe)[_0x341d79([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4befbe(_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39f30e=0x179af311^_0x29f5ef;function _0x48f461(){const _0x2fa6bb=_0x341d79([0x6c,0x6c,0x63,0x74,0x2d])+_0x244a66(_0x3808a3(_0x50eb84)),_0xfa6c9=_0x122909(_0x244a66(window[_0x341d79([0x4d,0x61,0x74,0x68])][_0x341d79([0x63,0x65,0x69,0x6c])](_0x2bc370/_0x39f30e)));window[_0x341d79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341d79([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fa6bb,_0xfa6c9);}function _0xed9653(){const _0x4e7c74=_0x341d79([0x6c,0x6c,0x63,0x74,0x2d])+_0x244a66(_0x3808a3(_0x50eb84)),_0x5ef687=window[_0x341d79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341d79([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e7c74);return _0x5ef687?window[_0x341d79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x122909(_0x5ef687),0x10)*_0x39f30e:null;}function _0x73fc8a(_0x3d9958){return new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aedb2,_0x2efe7d)=>{_0x3d9958[_0x341d79([0x74,0x68,0x65,0x6e])](_0x2aedb2,_0x2efe7d),window[_0x341d79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2efe7d,0x17adc951^_0x29f5ef);});}}_0x46dad6[_0x341d79([0x6f,0x6e])](_0x341d79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20a323,_0x321677)=>{if(_0x321677[0x0]!=_0x50eb84)return _0x4befbe(_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x321677[0x1]={..._0x321677[0x1],[_0x341d79([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x402950};},{[_0x341d79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341d79([0x68,0x69,0x67,0x68])}),_0x46dad6[_0x341d79([0x6f,0x6e])](_0x341d79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13667e=>{_0xd06e12(_0x13667e[_0x341d79([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4499a2=!0x0,_0x4e48e2(_0x13667e[_0x341d79([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x341d79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341d79([0x6c,0x6f,0x77])}),_0x5bc737[_0x341d79([0x74,0x68,0x65,0x6e])](()=>{_0x4499a2||_0x4befbe(_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x584089(){return _0x46dad6[_0x341d79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341d79([0x76,0x69,0x65,0x77])][_0x341d79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x341d79([0x61,0x75,0x74,0x6f]);}function _0x36a1ee(){_0x46dad6[_0x341d79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341d79([0x76,0x69,0x65,0x77])][_0x341d79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x341d79([0x61,0x75,0x74,0x6f]);}}function _0x5c5596(_0x5aa3f5){const _0x3754c4=[new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x322235=>setTimeout(_0x322235,0x17a5235d^_0x29f5ef)),_0x5bc737[_0x341d79([0x74,0x68,0x65,0x6e])](()=>new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2792ed=>{const _0x16c3b1=0x17ac1d96^_0x29f5ef,_0x788e3b=_0x59eb22[_0x341d79([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x13d8fd(){_0x788e3b[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x16c3b1&&_0x2792ed();}_0x13d8fd(),_0x788e3b[_0x341d79([0x6f,0x6e])](_0x341d79([0x61,0x64,0x64]),_0x13d8fd);})),new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58eac9=>{function _0x151549(){for(const _0x969732 in window)if(window[_0x341d79([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x341d79([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x969732))&&window[_0x969732]==_0x541196)return _0x58eac9();_0x46dad6[_0x341d79([0x73,0x74,0x61,0x74,0x65])]!=_0x341d79([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x341d79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x151549,0x17ac0e19^_0x29f5ef);}_0x5b3c99(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x151549();})];return window[_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x341d79([0x72,0x61,0x63,0x65])](_0x3754c4)[_0x341d79([0x74,0x68,0x65,0x6e])](()=>_0x5aa3f5);}async function _0x344b77(){if(await _0x5bc737,_0x5b3c99(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1597c2=_0x59eb22[_0x341d79([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3ba3cf=_0x59eb22[_0x341d79([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x1597c2[_0x341d79([0x69,0x64])]),_0x4432fc=_0x5198b4(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4432fc[_0x341d79([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1597c2['id'],_0x3ba3cf?_0x3ba3cf['id']:null,!0x0),_0x4432fc[_0x341d79([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4432fc[_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4432fc[_0x341d79([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3c694d,void(_0x4432fc[_0x341d79([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3c694d);}if(_0x5b3c99(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x16c8c8=_0x5198b4(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x16c8c8[_0x341d79([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x16c8c8[_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x16c8c8[_0x341d79([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3c694d,_0x16c8c8[_0x341d79([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3c694d;}_0x46dad6[_0x341d79([0x6d,0x6f,0x64,0x65,0x6c])][_0x341d79([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c694d,_0x46dad6[_0x341d79([0x6d,0x6f,0x64,0x65,0x6c])][_0x341d79([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c694d,_0x46dad6[_0x341d79([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x341d79([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33d63e(){return _0x5b3c99(_0x341d79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5198b4(_0x341d79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x341d79([0x73,0x74,0x61,0x74,0x65])]==_0x341d79([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5acd5c(){return _0x5b3c99(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3a35eb(){return _0x5b3c99(_0x341d79([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xfc57d8(_0x32a115){const _0x52599b=_0x4db93b();_0x46dad6[_0x52599b]=_0x341d79([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x32a115,_0x32a115[_0x341d79([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x341d79([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4db93b()]=_0x541196),_0x32a115!=_0x341d79([0x56,0x61,0x6c,0x69,0x64])&&_0x344b77();}function _0x4db93b(){const _0x1d9e2c=window[_0x341d79([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x341d79([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x341d79([0x6e,0x6f,0x77])]())[_0x341d79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x341d79([0x2e]),'');let _0x3162f5=_0x341d79([0x77]);for(let _0x3386cd=0x0;_0x3386cd<_0x1d9e2c[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3386cd+=0x2){let _0x583231=window[_0x341d79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d9e2c[_0x341d79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3386cd,_0x3386cd+0x2));_0x583231>=_0xeae7e1[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x583231-=_0xeae7e1[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3162f5+=_0xeae7e1[_0x583231];}return _0x3162f5;}function _0x44f768(){const _0x466a2d=_0x5d41b8[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e]));if(0x3!=_0x466a2d[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49dc02(_0x466a2d[0x1]);function _0x49dc02(_0x3827bb){const _0x1c8492=_0x4ecacc(_0x3827bb);return _0x1c8492&&_0x33bca5()?_0x1c8492:null;function _0x33bca5(){const _0x171430=_0x1c8492[_0x341d79([0x6a,0x74,0x69])],_0x1ae583=window[_0x341d79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x171430[_0x341d79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x171430[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ab758={..._0x1c8492,[_0x341d79([0x6a,0x74,0x69])]:_0x171430[_0x341d79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x171430[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ab758[_0x341d79([0x76,0x63])],_0x3808a3(_0x2ab758)==_0x1ae583;}}}async function _0x3920c5(){let _0xc818e8=!0x0;try{const _0x49c236=_0x5d41b8[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e])),[_0x891145,_0x139611,_0x191483]=_0x49c236;return _0x345d2d(_0x891145),await _0x5a6ec0(_0x891145,_0x139611,_0x191483),_0xc818e8;}catch{return!0x1;}function _0x345d2d(_0x5e4e0c){const _0x2761c9=_0x4ecacc(_0x5e4e0c);_0x2761c9&&_0x2761c9[_0x341d79([0x61,0x6c,0x67])]==_0x341d79([0x45,0x53,0x32,0x35,0x36])||(_0xc818e8=!0x1);}async function _0x5a6ec0(_0x32b597,_0x5a836d,_0x67561c){const _0x411877=window[_0x341d79([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x341d79([0x66,0x72,0x6f,0x6d])](_0x19d21d(_0x67561c),_0x3e2cdb=>_0x3e2cdb[_0x341d79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4eed8a=new window[(_0x341d79([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x341d79([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32b597+_0x341d79([0x2e])+_0x5a836d),_0x32544d=window[_0x341d79([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x341d79([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32544d)return;const _0x54e373=await _0x32544d[_0x341d79([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x341d79([0x6a,0x77,0x6b]),_0x5357a7,{[_0x341d79([0x6e,0x61,0x6d,0x65])]:_0x341d79([0x45,0x43,0x44,0x53,0x41]),[_0x341d79([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x341d79([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x341d79([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32544d[_0x341d79([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x341d79([0x6e,0x61,0x6d,0x65])]:_0x341d79([0x45,0x43,0x44,0x53,0x41]),[_0x341d79([0x68,0x61,0x73,0x68])]:{[_0x341d79([0x6e,0x61,0x6d,0x65])]:_0x341d79([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54e373,_0x411877,_0x4eed8a)||(_0xc818e8=!0x1);}}function _0x4ecacc(_0x5798c8){return _0x5798c8[_0x341d79([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x341d79([0x65,0x79]))?JSON[_0x341d79([0x70,0x61,0x72,0x73,0x65])](_0x19d21d(_0x5798c8)):null;}function _0x19d21d(_0x59670b){return window[_0x341d79([0x61,0x74,0x6f,0x62])](_0x59670b[_0x341d79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x341d79([0x2b]))[_0x341d79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x341d79([0x2f])));}function _0x3808a3(_0x22bc46){let _0x16796f=0x1505;function _0x429385(_0x32b86c){for(let _0x511848=0x0;_0x511848<_0x32b86c[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x511848++){const _0x25a1e1=_0x32b86c[_0x341d79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x511848);_0x16796f=(_0x16796f<<0x5)+_0x16796f+_0x25a1e1,_0x16796f&=_0x16796f;}}function _0x50a746(_0x197ec2){Array[_0x341d79([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x197ec2)?_0x197ec2[_0x341d79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50a746):_0x197ec2&&typeof _0x197ec2==_0x341d79([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x341d79([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x197ec2)[_0x341d79([0x73,0x6f,0x72,0x74])]()[_0x341d79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x275c40,_0x53808c])=>{_0x429385(_0x275c40),_0x50a746(_0x53808c);}):_0x429385(window[_0x341d79([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x197ec2));}return _0x50a746(_0x22bc46),_0x16796f>>>0x0;}function _0x244a66(_0x51087c){return _0x51087c[_0x341d79([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x341d79([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x341d79([0x30]));}function _0x122909(_0x296dcd){return _0x296dcd[_0x341d79([0x73,0x70,0x6c,0x69,0x74])]('')[_0x341d79([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x341d79([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b3c99(_0x489f0c){return _0x46dad6[_0x341d79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x341d79([0x68,0x61,0x73])](_0x489f0c);}function _0x5198b4(_0x13ab0d){return _0x46dad6[_0x341d79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x341d79([0x67,0x65,0x74])](_0x13ab0d);}function _0x3c694d(){}function _0x341d79(_0x277028){return _0x277028['map'](_0xc9b955=>String['fromCharCode'](_0xc9b955))['join']('');}_0xfc57d8(await _0x4a38e2());}(this);}['createRevision'](_0x1b8659){const _0x1d1b95=this['editor']['plugins']['get']('Users');return new I({'id':_0x1b8659['id'],'name':_0x1b8659['name'],'creator':_0x1b8659['creatorId']?_0x1d1b95['getUser'](_0x1b8659['creatorId']):null,'diffData':_0x1b8659['diffData']||_0x1b8659['data'],'authors':_0x1b8659['authorsIds']['map'](_0x1af0e1=>_0x1d1b95['getUser'](_0x1af0e1)),'createdAt':new Date(_0x1b8659['createdAt']),'attributes':_0x1b8659['attributes'],'fromVersion':_0x1b8659['fromVersion'],'toVersion':_0x1b8659['toVersion']});}['addRevision'](_0x1ab0c5,_0x32bff0=0x0){this['_revisions']['add'](_0x1ab0c5,_0x32bff0);}['getRevision'](_0x32abf5){return this['_revisions']['get'](_0x32abf5);}['getRevisions'](_0x3625d0={'toJSON':!0x1}){const _0x31d2c9=Array['from'](this['_revisions']);return _0x31d2c9['reverse'](),_0x3625d0['toJSON']?_0x31d2c9['map'](_0x5f4c13=>_0x5f4c13['toJSON']()):_0x31d2c9;}['getIndex'](_0x5ca825){return this['_revisions']['getIndex'](_0x5ca825);}['getEarlierVisibleRevision'](_0x11d82a){const [,_0x4aabeb]=this['getRevisionsIterator'](_0x11d82a,{'direction':'earlier'});return _0x4aabeb;}['getLaterVisibleRevision'](_0x106c81){const [,_0x592771]=this['getRevisionsIterator'](_0x106c81,{'direction':'later'});return _0x592771;}['getRevisionsInDiff'](_0x3b2c81){const _0x43b1d4=[];for(const _0x448bc7 of this['getRevisionsIterator'](_0x3b2c81['newRevisionId']))if(_0x43b1d4['push'](_0x448bc7),_0x448bc7['id']===_0x3b2c81['oldRevisionId'])break;return _0x43b1d4;}*['getRevisionsIterator'](_0xbf369e,{direction:_0x4ee8d7='earlier',filter:_0x22a6ea=()=>!0x0}={}){const _0x3e4991='earlier'===_0x4ee8d7?0x1:-0x1;let _0xb53081=this['_revisions']['get'](_0xbf369e),_0x25d33f=this['getIndex'](_0xb53081);for(yield _0xb53081;_0xb53081;){if(_0x25d33f+=_0x3e4991,_0xb53081=this['getRevision'](_0x25d33f),!_0xb53081)return;_0x22a6ea(_0xb53081)&&(yield _0xb53081);}}}class $ extends _0x858dc7{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x414402,'c'],[_0x3473b1,'a'],[_0x13c3fa,'e'],[_0x5f3d85,'r'],[_0x2b5473,'u']]);['_typeCharToViewClass']=new Map([['c',_0x414402],['a',_0x3473b1],['e',_0x13c3fa],['r',_0x5f3d85],['u',_0x2b5473]]);async['loadRevisionData'](_0x186f9f,_0x5da053){if(_0x186f9f['diffData']||!_0x5da053)return;const _0x2f9dfc=this['editor']['config']['get']('collaboration.channelId'),_0x3cb54d=await _0x5da053['getRevision']({'channelId':_0x2f9dfc,'revisionId':_0x186f9f['id']});_0x186f9f['diffData']=_0x3cb54d['diffData'];}['getRevisionDocumentData'](_0x2fa1d9){const _0x1c82a9={};for(const _0x454e2f in _0x2fa1d9['diffData']){if(_0x2fa1d9['diffData'][_0x454e2f]['attachChange']&&!_0x2fa1d9['diffData'][_0x454e2f]['attachChange']['isAttached'])continue;const _0x331ea7=this['_removeRevisionMarkers'](JSON['parse'](_0x2fa1d9['diffData'][_0x454e2f]['insertions'])),_0x14a071=this['editor']['editing']['view']['document'],_0x4229af=new _0x26445f(_0x14a071,_0x331ea7['map'](_0x3a4299=>this['_getViewFromDiffObj'](_0x3a4299,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c82a9[_0x454e2f]=this['editor']['data']['processor']['toData'](_0x4229af),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c82a9;}['getRevisionRootsAttributes'](_0x89d54c){const _0x2de059={};for(const _0x3cfd75 in _0x89d54c['diffData'])_0x89d54c['diffData'][_0x3cfd75]['attachChange']&&!_0x89d54c['diffData'][_0x3cfd75]['attachChange']['isAttached']||(_0x2de059[_0x3cfd75]=_0x89d54c['diffData'][_0x3cfd75]['attributesAfter']||{});return _0x2de059;}['_getTypeCharForViewElement'](_0x61bfb6){return this['_viewClassToTypeChar']['get'](_0x61bfb6['constructor']);}['_getViewFromDiffObj'](_0x2bbcc4,_0x42e88b){const _0x7d4353=this['editor']['editing']['view']['document'];if('string'==typeof _0x2bbcc4)return new _0x140a00(_0x7d4353,_0x2bbcc4);{let _0x45a6a,_0x20c2fd;_0x20c2fd='u'==_0x2bbcc4['type']||'r'==_0x2bbcc4['type']?[]:_0x2bbcc4['children']['map'](_0x4df111=>this['_getViewFromDiffObj'](_0x4df111,_0x42e88b));const _0x4c68c0=this['_typeCharToViewClass']['get'](_0x2bbcc4['type'])||_0x5be4ed,_0xe86d9e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x45a6a=new _0x4c68c0(_0x7d4353,_0x2bbcc4['name'],_0x2bbcc4['attributes'],_0x20c2fd),'u'==_0x2bbcc4['type']&&_0x2bbcc4['children'][0x0]){const _0x3846df=_0x2bbcc4['children'][0x0];if(_0x45a6a['render']=function(_0x287ba0){const _0x2014aa=_0x287ba0['createElement']('div');return _0x2014aa['innerHTML']=_0x3846df,_0x2014aa['childNodes'][0x0];},_0x42e88b){const _0x55dae7=new _0x26445f(_0x7d4353);_0x55dae7['_appendChild'](_0x45a6a);const _0x509047=Array['from'](_0xe86d9e['viewChildrenToDom'](_0x55dae7,{'bind':!0x1})),_0xaddbf7=_0xe86d9e['domDocument']['createElement']('div');_0xaddbf7['append'](..._0x509047),_0x45a6a=Array['from'](_0xe86d9e['domChildrenToView'](_0xaddbf7))[0x0];}}else{if('r'==_0x2bbcc4['type']&&_0x2bbcc4['children'][0x0]){const _0x24e8f1=_0x2bbcc4['children'][0x0];if(_0x45a6a['render']=function(_0xa1af72){_0xa1af72['innerHTML']=_0x24e8f1;},_0x42e88b){const _0x5b0679=new _0x26445f(_0x7d4353);_0x5b0679['_appendChild'](_0x45a6a);const _0x5b11e0=Array['from'](_0xe86d9e['viewChildrenToDom'](_0x5b0679,{'bind':!0x1})),_0x11a742=_0xe86d9e['domDocument']['createElement']('div');_0x11a742['append'](..._0x5b11e0);const _0x658ac7=Array['from'](_0xe86d9e['domChildrenToView'](_0x11a742));_0x658ac7['length']>0x1?_0x45a6a['_appendChild'](_0x658ac7):_0x45a6a=_0x658ac7[0x0];}}}if(_0x2bbcc4['customProperties']){for(const [_0xe7d4d3,_0x2a349e]of _0x2bbcc4['customProperties'])_0x45a6a['_setCustomProperty'](_0xe7d4d3,_0x2a349e);}const _0xaf797d=void 0x0===_0x2bbcc4['fillerOffset']?null:_0x2bbcc4['fillerOffset'];return null!==_0xaf797d&&(_0x45a6a['getFillerOffset']=()=>_0xaf797d),_0x45a6a;}}['_makeModelFromViewString'](_0x477b09){const _0x37bdd9=JSON['parse'](_0x477b09),_0x2fcc91=this['editor']['editing']['view']['document'],_0x3e220b=new _0x26445f(_0x2fcc91,_0x37bdd9['map'](_0x469f19=>this['_getViewFromDiffObj'](_0x469f19,!0x0)));return this['editor']['data']['toModel'](_0x3e220b);}['_removeRevisionMarkers'](_0x2bad7c){return(_0x2bad7c=_0x2bad7c['filter'](_0x358fd4=>!_0x358fd4['name']||'revision-start'!==_0x358fd4['name']&&'revision-end'!==_0x358fd4['name']))['forEach'](_0x2ba0e0=>{'string'!=typeof _0x2ba0e0&&(_0x2ba0e0['children']=this['_removeRevisionMarkers'](_0x2ba0e0['children']),_0x2ba0e0['attributes']=_0x2ba0e0['attributes']['filter'](_0x5b977a=>!_0x5b977a[0x0]['startsWith']('data-revision-')));}),_0x2bad7c;}}function R(_0xda7e40,_0x56744d,_0x457c82){const t=_0xda7e40['t'];switch(_0x56744d){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x457c82);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x457c82);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x858dc7{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x267b04,S,$,_0x3530c7];}constructor(_0x55c47d){super(_0x55c47d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5e3190=_0x1a737e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5e3190},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x32d646=this['repository']['getRevision'](0x0),_0x6ce38a=_0x32d646&&null===_0x32d646['creator']?_0x32d646:null;if(this['_continueCurrentRevision']=!!_0x6ce38a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x29e77a=this['_source']['getCurrentRevisionId'](),_0x7db48d=this['repository']['getRevision'](_0x29e77a);if(_0x7db48d)this['_startingVersion']=_0x7db48d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2db9ea=this['_source']['history']['_operations']['find'](_0x4e7283=>!_0x4e7283['_isInit']),_0x28fc93=_0x2db9ea?_0x2db9ea['baseVersion']:this['_source']['history']['version'];_0x32d646?(_0x32d646['toVersion']<_0x28fc93&&_0x32d646['_update']({'toVersion':_0x28fc93}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x6ce38a['id'],this['_startingVersion']=_0x6ce38a['fromVersion']):(this['_startingVersion']=_0x32d646['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x28fc93,this['_continueCurrentRevision']=!0x1);}}else _0x6ce38a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x6ce38a['toVersion'],this['editor']['model']['document']['history']['version']),_0x6ce38a['fromVersion']===_0x6ce38a['toVersion']?(0x0!==_0x6ce38a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x6ce38a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x6ce38a['id'],this['_startingVersion']=_0x6ce38a['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0xaf7c5=>!_0xaf7c5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd73325=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x235baa;for(const _0x15a48f in _0xd73325){const _0x54bbd1=_0x15a48f,_0x38b4df=_0xd73325[_0x54bbd1];if('revisionHistoryLicenseKeyValid'==_0x38b4df||'revisionHistoryLicenseKeyInvalid'==_0x38b4df||'revisionHistoryLicenseKeyExpired'==_0x38b4df||'revisionHistoryLicenseKeyDomainLimit'==_0x38b4df||'revisionHistoryLicenseKeyNotAllowed'==_0x38b4df||'revisionHistoryLicenseKeyEvaluationLimit'==_0x38b4df||'revisionHistoryLicenseKeyTrialLimit'==_0x38b4df||'revisionHistoryLicenseKeyUsageLimit'==_0x38b4df){delete _0xd73325[_0x54bbd1],_0x235baa=_0x38b4df,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x235baa&&_0xd73325['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x235baa&&_0xd73325['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x235baa&&_0xd73325['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x235baa&&_0xd73325['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x235baa&&_0xd73325['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x235baa&&_0xd73325['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x235baa&&_0xd73325['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3eb2d=this['repository']['getRevision'](0x0),_0x418249=await this['getRevisionDocumentData'](_0x3eb2d),_0x4fc0c1=await this['getRevisionRootsAttributes'](_0x3eb2d);this['_replaceEditorDataWithRevisionData'](_0x418249,_0x4fc0c1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5a4783){this['_source']=_0x5a4783;}async['update'](){const _0x1c905d=await this['_source']['getLatestVersion']();if(_0x1c905d>this['currentRevision']['toVersion']){await this['_loadState']();const _0x53448b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1c905d});_0x53448b['authors']=_0x53448b['authorsIds']['map'](_0x4f8c2b=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f8c2b)),this['currentRevision']['_update'](_0x53448b);}}async['saveRevision'](_0x2144c0={},_0x3b8e58=null){const _0x1fab14=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3b8e58>this['currentRevision']['toVersion']&&(_0x3b8e58=null),null===_0x3b8e58&&(_0x3b8e58=await this['_source']['getLatestVersion']());const _0xdea15c=this['_getFromVersion'](_0x3b8e58),_0x5497dd=this['buildRevisionData']({'from':_0xdea15c,'to':_0x3b8e58});if(this['currentRevision']['toVersion']<_0x3b8e58){const _0x2303ae=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3b8e58,'to':_0x3b8e58});_0x2303ae['authors']=[],_0x2303ae['authorsIds']=[],_0x2303ae['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2303ae,!0x0),delete _0x2303ae['authors'],_0x1fab14['push'](_0x2303ae);}_0x2144c0['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2144c0['name']=_0x2144c0['name']||null,_0x2144c0['id']=_0x2144c0['id']||_0x1a737e(),_0x2144c0={..._0x2144c0,..._0x5497dd};const _0x5b80a8=this['addRevisionData'](_0x2144c0);_0x1fab14['push'](_0x2144c0);const _0x24476=this['repository']['getIndex'](_0x5b80a8);if(0x0!==_0x24476){const _0x4927b0=this['repository']['getRevision'](_0x24476-0x1);if(_0x4927b0['fromVersion']!==_0x3b8e58){const _0x415b3f=this['_revisionDataBuilder']['getData'](_0x3b8e58,_0x4927b0['toVersion']),_0x58fb2b={'id':_0x4927b0['id'],'diffData':_0x415b3f['diffData'],'authorsIds':_0x415b3f['authorsIds'],'authors':_0x415b3f['authorsIds']['map'](_0x7bdf6a=>this['editor']['plugins']['get']('Users')['getUser'](_0x7bdf6a)),'fromVersion':_0x3b8e58};_0x4927b0===this['currentRevision']&&(_0x58fb2b['createdAt']=new Date(_0x2144c0['createdAt']['getTime']()+0xa)),_0x4927b0['_update'](_0x58fb2b,!0x0),delete _0x58fb2b['authors'],_0x1fab14['push'](_0x58fb2b);}}if(this['adapter']){for(const _0x70596d of _0x1fab14)this['_bufferUpdate'](_0x70596d['id'],_0x70596d,!0x0);this['sendBufferedUpdates']();}return _0x5b80a8;}['addRevisionData'](_0x378bb9){const _0x5c278d=this['repository']['createRevision'](_0x378bb9);return this['adapter']&&_0x5c278d['on']('_update',(_0x54d60f,_0x3e6e9b,_0x4ef37f)=>{_0x4ef37f||(this['_bufferUpdate'](_0x3e6e9b['id'],_0x3e6e9b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5c278d,this['_findInsertionIndex'](_0x5c278d)),_0x5c278d;}async['getRevisionDocumentData'](_0x53553c){return await this['_utils']['loadRevisionData'](_0x53553c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x53553c);}async['getRevisionRootsAttributes'](_0x1198e5){return await this['_utils']['loadRevisionData'](_0x1198e5,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1198e5);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x24c166=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2a8c3b=0x0;_0x2a8c3b<_0x24c166['length'];_0x2a8c3b++){const _0x2ba1e4=_0x24c166[_0x2a8c3b];let _0x4eea05=!0x1;for(const _0x312278 of Object['keys'](_0x2ba1e4))void 0x0===_0x2ba1e4[_0x312278]?delete _0x2ba1e4[_0x312278]:'id'!==_0x312278&&(_0x4eea05=!0x0);_0x4eea05||(_0x24c166[_0x2a8c3b]=null);}if(_0x24c166=_0x24c166['filter'](_0x2ace73=>null!==_0x2ace73),!_0x24c166['length'])return;for(let _0xa3f0c6=0x0;_0xa3f0c6<_0x24c166['length'];_0xa3f0c6++){const _0x7eb603=_0x24c166[_0xa3f0c6];void 0x0!==_0x7eb603['fromVersion']&&void 0x0===_0x7eb603['toVersion']&&(_0x7eb603['toVersion']=this['repository']['getRevision'](_0x7eb603['id'])['toVersion']),void 0x0!==_0x7eb603['toVersion']&&void 0x0===_0x7eb603['fromVersion']&&(_0x7eb603['fromVersion']=this['repository']['getRevision'](_0x7eb603['id'])['fromVersion']);}const _0x18c383=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x24c166,_0x18c383)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5d8e31=>{if(_0x5d8e31){for(const _0x56f427 of _0x5d8e31)this['setRevisionData']({'id':_0x56f427['id'],'createdAt':_0x56f427['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x29aafd=null,from:_0x47ead8=null,to:_0x3ffca5=null}){_0x47ead8=null!==_0x47ead8?_0x47ead8:_0x29aafd['fromVersion'],_0x3ffca5=null!==_0x3ffca5?_0x3ffca5:_0x29aafd['toVersion'];const _0x2f7778=this['_revisionDataBuilder']['getData'](_0x47ead8,_0x3ffca5),_0x32b912={'diffData':_0x2f7778['diffData'],'authorsIds':_0x2f7778['authorsIds'],'fromVersion':_0x47ead8,'toVersion':_0x3ffca5};if(!_0x29aafd||_0x3ffca5!==_0x29aafd['toVersion']){const _0x21c25c=_0x3ffca5-0x1,_0x5b916e=this['_source']['history']['getOperation'](_0x21c25c);_0x32b912['createdAt']=_0x5b916e&&_0x5b916e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x47ead8===this['_loadedStateData']['fromVersion']){for(const _0x32c1e1 of this['_loadedStateData']['authors'])_0x32b912['authorsIds']['includes'](_0x32c1e1['id'])||_0x32b912['authorsIds']['push'](_0x32c1e1['id']);}return _0x32b912;}['_bufferUpdate'](_0x3e2286,_0x238a24,_0x27b09b){if(this['_bufferedUpdates']['has'](_0x3e2286)){const _0x5a72f4=this['_bufferedUpdates']['get'](_0x3e2286);_0x238a24=_0x27b09b?{..._0x5a72f4,..._0x238a24}:{..._0x238a24,..._0x5a72f4};}this['_bufferedUpdates']['set'](_0x3e2286,_0x238a24);}['setRevisionData'](_0x1c1e14){const _0x4fe628=this['repository']['getRevision'](_0x1c1e14['id']);if(_0x1c1e14['createdAt']&&(_0x1c1e14['createdAt']=new Date(_0x1c1e14['createdAt'])),_0x1c1e14['authorsIds']){const _0x43d8f9=this['editor']['plugins']['get']('Users');_0x1c1e14['authors']=_0x1c1e14['authorsIds']['map'](_0x3d8c9f=>_0x43d8f9['getUser'](_0x3d8c9f));}_0x4fe628['_update'](_0x1c1e14,!0x0);}['_createInitialRevision'](_0x3d1ee7){const _0x547045=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x547045)this['_initialRevisionId']=_0x547045['id'];else{const _0x5bee62=!this['editor']['model']['document']['roots']['find'](_0x34fed5=>this['editor']['model']['hasContent'](_0x34fed5)),_0x51cd27=this['editor']['plugins']['get']('Users')['me']['id'],_0x40c313=R(this['editor']['locale'],_0x5bee62?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3d1ee7,'to':_0x3d1ee7,'id':this['_initialRevisionId'],'name':_0x40c313,'creatorId':_0x51cd27});}}['_createCurrentRevision'](_0x312984){const _0x5ad1a2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5ad1a2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x312984,'to':_0x312984,'id':_0x5ad1a2,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x473e98,_0x266476){let _0x4928c2=this['editor']['config']['get']('initialData'),_0x32f036=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4928c2){_0x4928c2={};for(const _0x3653b8 of this['editor']['model']['document']['getRootNames']())_0x4928c2[_0x3653b8]='';}if('string'==typeof _0x4928c2&&(_0x4928c2={'main':_0x4928c2}),void 0x0===_0x32f036){_0x32f036={};for(const _0x356425 of this['editor']['model']['document']['getRootNames']())_0x32f036[_0x356425]={};}let _0x59ac4b=!0x1;const _0x524013=Object['keys'](_0x4928c2),_0x3ab86a=Object['keys'](_0x473e98);for(const _0x2b46de of _0x524013){if(_0x4928c2[_0x2b46de]!==_0x473e98[_0x2b46de]&&''!==_0x4928c2[_0x2b46de]['trim']()){_0x59ac4b=!0x0;break;}if(!_0x28128b(_0x32f036[_0x2b46de],_0x266476[_0x2b46de])&&Object['keys'](_0x32f036[_0x2b46de])['length']>0x0){_0x59ac4b=!0x0;break;}}_0x59ac4b||(_0x59ac4b=_0x3ab86a['some'](_0x1e1715=>!this['editor']['model']['document']['getRoot'](_0x1e1715))),_0x59ac4b&&_0x198b8e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4928c2,'editorRootsAttributes':_0x32f036,'revisionData':_0x473e98,'revisionRootsAttributes':_0x266476}),this['editor']['config']['set']('initialData',_0x473e98),this['editor']['config']['set']('rootsAttributes',_0x266476);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x14f113=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x14f113['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x43728f){const _0x13aa02=this['repository']['getRevisions']();_0x13aa02['reverse']();let _0x22200c=0x0;for(;_0x22200c<_0x13aa02['length'];){const _0x26a107=_0x13aa02[_0x22200c];if(_0x26a107===this['currentRevision']){_0x22200c++;continue;}if(_0x26a107['id']===this['_initialRevisionId'])break;const _0x7894bb=_0x43728f['toVersion']-_0x26a107['toVersion']||_0x43728f['fromVersion']-_0x26a107['fromVersion'];if(_0x7894bb>0x0)break;if(_0x7894bb<0x0)_0x22200c++;else{if(!_0x43728f['creator']&&_0x26a107['creator'])break;if(_0x26a107['creator']||!_0x43728f['creator']){if(_0x43728f['createdAt']>_0x26a107['createdAt'])break;_0x22200c++;}else _0x22200c++;}}return _0x22200c;}['_getFromVersion'](_0x5474fa){const _0x56a401=this['repository']['getRevisions']();_0x56a401['reverse'](),_0x56a401['shift']();const _0x62a08f=_0x56a401['find'](_0x354912=>_0x354912['toVersion']<=_0x5474fa)['toVersion'];return _0x62a08f<this['_startingVersion']?this['_startingVersion']:_0x62a08f;}['_makeRevision']({name:_0x3f8b69,from:_0x659b00,to:_0x31d668,creatorId:_0x428768,id:_0x3db11d}){const _0x1da1cf=this['buildRevisionData']({'from':_0x659b00,'to':_0x31d668});_0x1da1cf['name']=_0x3f8b69,_0x1da1cf['creatorId']=_0x428768,_0x1da1cf['id']=_0x3db11d;const _0x89c603=this['addRevisionData'](_0x1da1cf);return this['adapter']&&this['_bufferUpdate'](_0x1da1cf['id'],_0x1da1cf,!0x0),_0x89c603;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x7d0903){this['editor']=_0x7d0903,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x5efb1d){this['source']=_0x5efb1d;const _0x4dea30=new Map(),_0x1d8101=new Map(),_0x2af5de=this['editor']['model']['document']['roots']['map'](_0x2fd2af=>_0x2fd2af['rootName']);for(const _0x3564a0 of _0x2af5de){const _0x2d8b53=this['editor']['model']['document']['getRoot'](_0x3564a0),_0x148f9a=x(_0x2d8b53);_0x4dea30['set'](_0x3564a0,_0x148f9a),_0x1d8101['set'](_0x3564a0,Object['fromEntries'](_0x2d8b53['getAttributes']()));}const _0x873b52=Array['from'](this['editor']['model']['markers'])['map'](_0x583087=>[_0x583087['name'],_0x583087['getRange']()]),_0x97e314=this['source']['version'];this['_saveMetaData'](_0x97e314,_0x4dea30,_0x873b52,_0x1d8101),this['_startingRevisionId']=this['_revisionId'];const _0x3e1485=new Map(),_0x274de0=new Map();for(const _0x12bf8f of _0x2af5de){const _0x4648df=N(_0x12bf8f);_0x3e1485['set'](_0x12bf8f,_0x4648df),_0x274de0['set'](_0x12bf8f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3e1485,[],_0x274de0);}['getData'](_0x2e0e64,_0x9a57){if(this['_lastFrom']===_0x2e0e64&&this['_lastTo']<=_0x9a57)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x9a57,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e0e64)){const _0x3440c1=this['_getPreviousFrom'](_0x2e0e64);this['_calculateMetaData'](_0x3440c1,_0x2e0e64,!0x1);}this['_calculateMetaData'](_0x2e0e64,_0x9a57,!0x0);}return this['_lastFrom']=_0x2e0e64,this['_lastTo']=_0x9a57,this['_getState']();}['loadState'](_0x55f485){const _0x1536f1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x55f485['fromVersion'],this['_lastTo']=_0x55f485['toVersion'];for(const _0x2aad41 in _0x55f485['diffData']){const _0x5deacd=_0x55f485['diffData'][_0x2aad41]['attachChange'],_0x2ecc52=_0x2b75d6(_0x55f485['diffData'][_0x2aad41]['attributesBefore'])||{},_0x610a8e=_0x1536f1['_makeModelFromViewString'](_0x55f485['diffData'][_0x2aad41]['deletions']);_0x610a8e['rootName']=_0x2aad41,_0x610a8e['_isAttached']=!_0x5deacd||!_0x5deacd['isAttached'],_0x610a8e['isAttached']=()=>_0x610a8e['_isAttached'],this['_baseRoots']['set'](_0x2aad41,_0x610a8e),this['_baseRootsAttributes']['set'](_0x2aad41,_0x2ecc52),_0x5deacd&&this['_touchedRoots']['set'](_0x2aad41,_0x5deacd);const _0x3e0c54=this['_makeIdsRoot'](_0x610a8e);this['_baseIdsRoots']['set'](_0x2aad41,_0x3e0c54);for(const [_0x1206d7,_0x1d431a]of _0x610a8e['markers']){if(!_0x1206d7['startsWith']('revision:'))continue;const _0x2f7748=_0x1206d7['split'](':')[0x2];for(const _0x449291 of _0x1d431a['getWalker']({'singleCharacters':!0x0})){const _0x503a98=this['_getVidAttributeName'](_0x449291),_0x166435='elementEnd'==_0x449291['type']?_0x449291['previousPosition']['path']['slice'](0x0,-0x1):_0x449291['previousPosition']['path'],_0x467d87=_0x3e0c54['getNodeByPath'](_0x166435)['getAttribute'](_0x503a98);this['_touched']['set'](_0x467d87,{'userId':_0x2f7748});}}}this['_startingRevisionId']=this['_revisionId'];const _0x21772d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xfce44d=>!this['_touched']['has'](_0xfce44d));let _0x53d1a8=0x0;const _0x4f3263=new Map();for(const _0x2b3c7c in _0x55f485['diffData']){const _0x17f906=_0x55f485['diffData'][_0x2b3c7c]['attachChange'],_0x3fbd21=_0x2b75d6(_0x55f485['diffData'][_0x2b3c7c]['attributesAfter'])||{},_0x563024=_0x1536f1['_makeModelFromViewString'](_0x55f485['diffData'][_0x2b3c7c]['insertions']);_0x563024['rootName']=_0x2b3c7c,_0x563024['_isAttached']=!_0x17f906||_0x17f906['isAttached'],_0x563024['isAttached']=()=>_0x563024['_isAttached'],this['_diffRoots']['set'](_0x2b3c7c,_0x563024),this['_diffRootsAttributes']['set'](_0x2b3c7c,_0x3fbd21);const _0x497e38=this['_makeIdsRoot'](_0x563024,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2b3c7c,_0x497e38),_0x4f3263['set'](_0x2b3c7c,_0x563024['isAttached']()?_0x3fbd21:{});for(const [_0x40b254,_0x21f8cf]of _0x563024['markers']){if(!_0x40b254['startsWith']('revision:'))continue;const _0x1ee4cb=_0x40b254['split'](':')[0x2];for(const _0x5d7f75 of _0x21f8cf['getWalker']({'singleCharacters':!0x0})){const _0x2c4e18=this['_getVidAttributeName'](_0x5d7f75),_0x38eaf2=this['_revisionId']++,_0x303dc7='elementEnd'==_0x5d7f75['type']?_0x5d7f75['previousPosition']['path']['slice'](0x0,-0x1):_0x5d7f75['previousPosition']['path'];_0x497e38['getNodeByPath'](_0x303dc7)['_setAttribute'](_0x2c4e18,_0x38eaf2),this['_touched']['set'](_0x38eaf2,{'userId':_0x1ee4cb});}}for(const _0x5eec24 of this['editor']['model']['createRangeIn'](_0x563024)['getWalker']({'singleCharacters':!0x0})){const _0x2caa10=this['_getVidAttributeName'](_0x5eec24),_0x35e917='elementEnd'==_0x5eec24['type']?_0x5eec24['previousPosition']['path']['slice'](0x0,-0x1):_0x5eec24['previousPosition']['path'],_0x3a2436=_0x497e38['getNodeByPath'](_0x35e917);_0x3a2436['getAttribute'](_0x2caa10)>0x0||_0x3a2436['_setAttribute'](_0x2caa10,_0x21772d[_0x53d1a8++]);}for(const [_0x1910e1,_0x26d422]of _0x563024['markers'])_0x1910e1['startsWith']('revision:')||this['_markers']['set'](_0x1910e1,_0x26d422);}const _0x43f6ac=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x43f6ac),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x43f6ac,0x1));const _0x29eb8d=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x29eb8d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29eb8d,0x1));const _0x1b0f68=Array['from'](this['_diffRoots'])['map'](([_0xe4e6bc,_0x2db8b6])=>[_0xe4e6bc,x(_0x2db8b6)]);this['_saveMetaData'](this['_lastTo'],_0x1b0f68,this['_markers'],_0x4f3263);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xe6c013,_0x127cee,_0x2e6a69,_0x51a322){const _0x4bbf64=new Map(_0x127cee),_0x3a7a07=new Map(_0x2b75d6(_0x51a322)),_0x126ada=new Map();for(const [_0x2da66a,_0x3c628b]of _0x2e6a69)_0x126ada['set'](_0x2da66a,{'start':_0x3c628b['start']['clone'](),'end':_0x3c628b['end']['clone'](),'rootName':_0x3c628b['root']['rootName']});this['_savedMetaData']['set'](_0xe6c013,{'roots':_0x4bbf64,'markers':_0x126ada,'rootsAttributes':_0x3a7a07});}['_removeMetaData'](_0x1ba9c9){this['_savedMetaData']['delete'](_0x1ba9c9);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x1a2737,_0x259353=null){let _0x19b8b6=null;_0x1a2737['is']('documentFragment')||(_0x19b8b6=new _0x3061f3(_0x1a2737['name'],{'vid_start':null===_0x259353?this['_revisionId']++:_0x259353++}));const _0x2005cd=[];for(const _0x50775f of _0x1a2737['getChildren']())if(_0x50775f['is']('element')){_0x2005cd['push'](this['_makeIdsRoot'](_0x50775f,_0x259353));const _0x3b9265=_0x2005cd[_0x2005cd['length']-0x1];null!==_0x259353&&(_0x259353=_0x3b9265['is']('element','$text')?_0x3b9265['getAttribute']('vid')+0x1:_0x3b9265['getAttribute']('vid_end')+0x1);}else{for(let _0x2cb980=0x0;_0x2cb980<_0x50775f['offsetSize'];_0x2cb980++)_0x2005cd['push'](new _0x3061f3('$text',{'vid':null===_0x259353?this['_revisionId']++:_0x259353++}));}if(_0x1a2737['is']('documentFragment')){const _0x58d1bc=N(_0x1a2737['rootName']);return _0x58d1bc['_insertChild'](0x0,_0x2005cd),_0x58d1bc;}return _0x19b8b6['_setAttribute']('vid_end',null===_0x259353?this['_revisionId']++:_0x259353++),_0x19b8b6['_insertChild'](0x0,_0x2005cd),_0x19b8b6;}['_calculateMetaData'](_0xb5cdf8,_0x5c4393,_0x5d9105){this['_reset']();const {roots:_0x530aa4,markers:_0x42289e,rootsAttributes:_0x1adff0}=this['_savedMetaData']['get'](_0xb5cdf8);this['_baseRoots']=new Map(_0x530aa4),this['_baseRootsAttributes']=new Map(_0x2b75d6(_0x1adff0));for(const [_0x4c662e,_0x3ecfd5]of this['_baseRoots'])if('$graveyard'!==_0x4c662e&&(this['_diffRoots']['set'](_0x4c662e,x(_0x3ecfd5)),this['_diffRootsAttributes']=new Map(_0x2b75d6(_0x1adff0)),_0x5d9105)){const _0x511497=this['_revisionId'];this['_idsRoots']['set'](_0x4c662e,this['_makeIdsRoot'](_0x3ecfd5)),this['_baseIdsRoots']['set'](_0x4c662e,this['_makeIdsRoot'](_0x3ecfd5,_0x511497));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x5d9105&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4fb7fc,_0x4b0696]of _0x42289e){const _0x4835a2=this['_baseRoots']['get'](_0x4b0696['rootName']),_0x3b1c91=this['_diffRoots']['get'](_0x4b0696['rootName']),_0x5fb50c=new _0x1c348a(this['_fixPosition'](_0x4b0696['start'],_0x4835a2),this['_fixPosition'](_0x4b0696['end'],_0x4835a2)),_0x4a23a5=this['_fixRange'](_0x5fb50c,_0x3b1c91);_0x4835a2['markers']['set'](_0x4fb7fc,_0x5fb50c),this['_markers']['set'](_0x4fb7fc,_0x4a23a5);}this['_applyOperations'](_0xb5cdf8,_0x5c4393,_0x5d9105);}['_applyOperations'](_0x5cb0eb,_0x1f76e7,_0x50a97f){for(const _0x2414d0 of this['source']['getOperations'](_0x5cb0eb,_0x1f76e7))this['_handleOperation'](_0x2414d0,_0x50a97f);for(const _0x5c2507 of this['_diffRoots']['values']())_0x5c2507['markers']['clear']();for(const [_0x22595b,_0x9207b8]of this['_markers']){this['_diffRoots']['get'](_0x9207b8['root']['rootName'])['markers']['set'](_0x22595b,_0x9207b8['clone']());}const _0x7c49fb=new Map(),_0xe9334c=new Map();for(const [_0x5becab,_0x3084f4]of this['_diffRoots'])_0x7c49fb['set'](_0x5becab,x(_0x3084f4)),_0xe9334c['set'](_0x5becab,this['_diffRootsAttributes']['get'](_0x5becab));this['_saveMetaData'](_0x1f76e7,_0x7c49fb,this['_markers'],_0xe9334c);}['_getPreviousFrom'](_0xfd1511){const _0x32cb06=Array['from'](this['_savedMetaData']['keys']());_0x32cb06['sort']((_0x2cb7be,_0x11e26a)=>_0x2cb7be-_0x11e26a),_0x32cb06['reverse']();for(const _0x5804bb of _0x32cb06)if(_0x5804bb<_0xfd1511)return _0x5804bb;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x30b5b8,_0x4d47dd){const _0x45f8d4=Array['from'](_0x4d47dd['markers'])['map'](([_0x3aaaa1,_0x1881cd])=>[_0x3aaaa1,this['_fixRange'](_0x1881cd,_0x30b5b8)]);_0x30b5b8['markers']=new Map(_0x45f8d4);}['_transformMarkers'](_0x1d4d21){for(const _0x3077dd of this['_markers']['values']()){const _0x2739e9=_0x3077dd['getTransformedByOperation'](_0x1d4d21),_0xd394dd=_0x1c348a['_createFromRanges'](_0x2739e9);_0x3077dd['start']=_0xd394dd['start'],_0x3077dd['end']=_0xd394dd['end'];}}['_handleOperation'](_0x40ec10,_0xa485ff){if('addRoot'!=_0x40ec10['type']&&'detachRoot'!=_0x40ec10['type']){if('insert'==_0x40ec10['type']){const _0x32ad3c=_0x40ec10['position']['root']['rootName'];this['_diffRoots']['has'](_0x32ad3c)||(this['_diffRoots']['set'](_0x32ad3c,N(_0x32ad3c,!0x0)),this['_diffRootsAttributes']['set'](_0x32ad3c,{}),_0xa485ff&&this['_idsRoots']['set'](_0x32ad3c,N(_0x32ad3c,!0x0)));}else{if('addRootAttribute'==_0x40ec10['type']||'removeRootAttribute'==_0x40ec10['type']||'changeRootAttribute'==_0x40ec10['type'])return void this['_handleRootAttributeOperation'](_0x40ec10);'marker'==_0x40ec10['type']&&this['_handleMarkerOperation'](_0x40ec10);}if('marker'!==_0x40ec10['type']){const _0x23e987=this['_cloneOperation'](_0x40ec10,this['_diffRoots']);_0x23e987['_execute'](),this['_transformMarkers'](_0x23e987);}if(_0xa485ff)switch(_0x40ec10['type']){case'insert':this['_handleInsertOperation'](_0x40ec10);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x40ec10);break;case'merge':this['_handleMergeOperation'](_0x40ec10);break;case'split':this['_handleSplitOperation'](_0x40ec10);}}else this['_handleRootOperation'](_0x40ec10,_0xa485ff);}['_cloneOperation'](_0x56df39,_0x2568fb){const _0x3aadfa=_0x56df39['clone']();return _0x3aadfa['_authorId']=_0x56df39['_authorId'],this['_fixOperation'](_0x3aadfa,_0x2568fb),_0x3aadfa;}['_getBaseVids'](_0x5b8517){return _0x5b8517['map'](_0x528b69=>{const _0x5477ba=this['_getVidAttributeName'](_0x528b69);return Number(_0x528b69['item']['getAttribute'](_0x5477ba));});}['_generateTape'](_0x518af7,_0x381ef8){if(_0x518af7['is']('element','$text'))_0x381ef8['push']({'item':_0x518af7,'type':'text'});else{_0x518af7['is']('element')&&_0x381ef8['push']({'item':_0x518af7,'type':'elementStart'});for(const _0x3a6963 of _0x518af7['getChildren']())this['_generateTape'](_0x3a6963,_0x381ef8);_0x518af7['is']('element')&&_0x381ef8['push']({'item':_0x518af7,'type':'elementEnd'});}return _0x381ef8;}['_getState'](){const _0x4a5521=new Map(this['_touched']),_0x46245d=new Map(_0x4a5521),_0x1d8fb5=new Map(),_0x29fb7d={'insertions':{},'deletions':{}},_0x3ff078={'insertions':{},'deletions':{}},_0x462bbb=new Map(),_0x3a7bfe=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3a7bfe['delete']('$graveyard');for(const _0x115823 of _0x3a7bfe){const _0x479bdb=this['_diffRoots']['get'](_0x115823)||N(_0x115823,!0x1),_0x1aab13=this['_baseRoots']['get'](_0x115823)||N(_0x115823,!0x1);_0x479bdb['isAttached']()||_0x1aab13['isAttached']()?(_0x29fb7d['insertions'][_0x115823]=x(_0x479bdb),_0x29fb7d['deletions'][_0x115823]=x(_0x1aab13),this['_copyMarkers'](_0x29fb7d['deletions'][_0x115823],_0x1aab13),this['_copyMarkers'](_0x29fb7d['insertions'][_0x115823],_0x479bdb),_0x3ff078['insertions'][_0x115823]=this['_generateTape'](this['_idsRoots']['get'](_0x115823),[]),_0x3ff078['deletions'][_0x115823]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x115823)||N(_0x115823,!0x1),[])):_0x3a7bfe['delete'](_0x115823);}for(const _0x5c3845 of _0x3a7bfe){const _0xc41bd5=_0x3ff078['insertions'][_0x5c3845];for(const _0x11ff6d of _0xc41bd5){const _0x59de21=this['_getVidAttributeName'](_0x11ff6d),_0x47c1af=_0x11ff6d['item']['getAttribute'](_0x59de21);_0x46245d['delete'](_0x47c1af),_0x47c1af>=this['_startingRevisionId']&&_0x1d8fb5['set'](_0x47c1af,_0x4a5521['get'](_0x47c1af));}}for(const _0x36ea02 of _0x3a7bfe){const _0x2eeb60=_0x3ff078['insertions'][_0x36ea02],_0x3dbb0b=this['_getBaseVids'](_0x3ff078['deletions'][_0x36ea02]);let _0x5ed64b=0x0;for(const _0x19e600 of _0x2eeb60){const _0x359212=this['_getVidAttributeName'](_0x19e600),_0x345ccb=_0x19e600['item']['getAttribute'](_0x359212);if(!_0x1d8fb5['has'](_0x345ccb)&&!_0x462bbb['has'](_0x345ccb)){if(_0x46245d['has'](_0x345ccb))_0x5ed64b++;else{if(_0x345ccb!=_0x3dbb0b[_0x5ed64b]){const _0xd86416=_0x4a5521['get'](_0x345ccb)||_0x4a5521['get'](_0x3dbb0b[_0x5ed64b]);for(;_0x345ccb!=_0x3dbb0b[_0x5ed64b];)_0x46245d['has'](_0x3dbb0b[_0x5ed64b])||(_0x462bbb['set'](_0x3dbb0b[_0x5ed64b],_0xd86416),_0x4a5521['set'](_0x3dbb0b[_0x5ed64b],_0xd86416)),_0x5ed64b++;}_0x5ed64b++;}}}}for(const _0x5df5ee of _0x3a7bfe){const _0x2c3615=_0x3ff078['insertions'][_0x5df5ee];for(const _0x3c6853 of _0x2c3615){const _0x4659f9=this['_getVidAttributeName'](_0x3c6853),_0x5423a8=_0x3c6853['item']['getAttribute'](_0x4659f9);if(_0x462bbb['has'](_0x5423a8)){const _0x594aa1=_0x462bbb['get'](_0x5423a8);_0x46245d['has'](_0x5423a8)||_0x46245d['set'](_0x5423a8,{..._0x594aa1}),_0x1d8fb5['set'](_0x5423a8,{..._0x594aa1});}}}for(const _0x53bd1c of _0x46245d['keys']())_0x53bd1c>=this['_startingRevisionId']&&_0x46245d['delete'](_0x53bd1c);const _0x4724bb=new Map();for(const _0x526029 of _0x3a7bfe){let _0x49f043=_0x3ff078['insertions'][_0x526029];for(const _0x16850e of _0x49f043)if(_0x16850e['item']['is']('element','tableCell')){const _0x16577d=this['_getVidAttributeName'](_0x16850e),_0x12463b=_0x16850e['item']['getAttribute'](_0x16577d);if(_0x1d8fb5['has'](_0x12463b)){const _0x19d92f=_0x16850e['item']['parent']['parent']['getAttribute']('vid_start'),_0xe02567=_0x4724bb['get'](_0x19d92f)||new Set();_0xe02567['add'](_0x1d8fb5['get'](_0x12463b)['userId']),_0x4724bb['set'](_0x19d92f,_0xe02567);}}_0x49f043=_0x3ff078['deletions'][_0x526029];for(const _0xf580db of _0x49f043)if(_0xf580db['item']['is']('element','tableCell')){const _0x319037=this['_getVidAttributeName'](_0xf580db),_0x6107e4=_0xf580db['item']['getAttribute'](_0x319037);if(_0x46245d['has'](_0x6107e4)){const _0x980698=_0xf580db['item']['parent']['parent']['getAttribute']('vid_start'),_0x557a8c=_0x4724bb['get'](_0x980698)||new Set();_0x557a8c['add'](_0x46245d['get'](_0x6107e4)['userId']),_0x4724bb['set'](_0x980698,_0x557a8c);}}for(const _0x5bf2a3 of _0x4724bb['keys']())(_0x1d8fb5['has'](_0x5bf2a3)||_0x46245d['has'](_0x5bf2a3))&&_0x4724bb['delete'](_0x5bf2a3);}for(const _0x510f95 of _0x3a7bfe){const _0x43f3b7=_0x3ff078['insertions'][_0x510f95];let _0x58982b=null,_0x3f6b05=null;for(const _0x15533d of _0x43f3b7){const _0x217c79=this['_getVidAttributeName'](_0x15533d),_0x277cba=_0x15533d['item']['getAttribute'](_0x217c79),_0x336023=_0x4724bb['get'](_0x277cba);_0x336023&&'elementStart'==_0x15533d['type']&&(_0x58982b=Array['from'](_0x336023)[0x0],_0x3f6b05=_0x15533d['item']['getAttribute']('vid_end')),_0x58982b&&(_0x46245d['set'](_0x277cba,{'userId':_0x58982b}),_0x1d8fb5['set'](_0x277cba,{'userId':_0x58982b})),_0x277cba==_0x3f6b05&&(_0x58982b=null,_0x3f6b05=null);}}const _0x3d47c4={},_0x53aec7=new Set();for(const _0x142b67 of _0x3a7bfe){const _0xda93dc=_0x29fb7d['deletions'][_0x142b67],_0x28dbe3=_0x29fb7d['insertions'][_0x142b67];for(const {userId:_0x24aa1f}of this['_touchedMarkers']['values']())null!==_0x24aa1f&&_0x53aec7['add'](_0x24aa1f);for(const {userId:_0x4b9ee1}of this['_touchedRoots']['values']())null!==_0x4b9ee1&&_0x53aec7['add'](_0x4b9ee1);this['_markChanges'](_0x28dbe3,_0x3ff078['insertions'][_0x142b67],_0x1d8fb5,'insertion',_0x53aec7),this['_markChanges'](_0xda93dc,_0x3ff078['deletions'][_0x142b67],_0x46245d,'deletion',_0x53aec7),_0x3d47c4[_0x142b67]={'insertions':this['_prepareViewToSave'](_0x28dbe3),'deletions':this['_prepareViewToSave'](_0xda93dc),'attachChange':this['_touchedRoots']['get'](_0x142b67)||null,'attributesBefore':_0x2b75d6(this['_baseRootsAttributes']['get'](_0x142b67))||{},'attributesAfter':_0x2b75d6(this['_diffRootsAttributes']['get'](_0x142b67))};}return{'diffData':_0x3d47c4,'authorsIds':Array['from'](_0x53aec7)};}['_processRootBeforeSave'](_0x5451e8){for(const [,_0x379cbd]of _0x5451e8['markers']){const _0x1cde60=_0x379cbd['start']['getAncestors']()['filter'](_0x11bc2a=>'tableCell'==_0x11bc2a['name']);for(const _0x86199d of _0x1cde60)0x1==_0x86199d['childCount']&&_0x86199d['getChild'](0x0)['is']('element','paragraph')&&_0x86199d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x42526e){this['_processRootBeforeSave'](_0x42526e);const _0x434b8e=this['editor']['data']['toView'](_0x42526e,{}),_0x3e83d4=Array['from'](_0x434b8e['getChildren']())['map'](_0x53b0f7=>this['_getViewJson'](_0x53b0f7));return JSON['stringify'](_0x3e83d4);}['_getViewJson'](_0x5b64a5){if(_0x5b64a5['is']('$text'))return _0x5b64a5['data'];{const _0x225ae2=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x337431=_0x5b64a5,_0x29115c=this['editor']['data']['htmlProcessor']['domConverter'],_0x3540d8={'type':_0x225ae2['_getTypeCharForViewElement'](_0x337431),'name':_0x337431['name'],'attributes':Array['from'](_0x337431['getAttributes']()),'children':Array['from'](_0x337431['getChildren']())['map'](_0x35364c=>this['_getViewJson'](_0x35364c))};if(_0x5b64a5['is']('uiElement')&&'$comment'!=_0x5b64a5['name']){const _0x221aa6=_0x5b64a5['render'](_0x29115c['domDocument'],_0x29115c);_0x3540d8['children']['push'](_0x221aa6['outerHTML']);}else{if(_0x5b64a5['is']('rawElement')){const _0x2d5c50=_0x29115c['domDocument']['createElement'](_0x337431['name']);_0x5b64a5['render'](_0x2d5c50,_0x29115c),_0x3540d8['children']['push'](_0x2d5c50['innerHTML']);}}const _0x2a32d7=Array['from'](_0x337431['getCustomProperties']());_0x2a32d7['length']>0x0&&(_0x3540d8['customProperties']=_0x2a32d7);const _0x3871d9=_0x337431['getFillerOffset']();return null!==_0x3871d9&&(_0x3540d8['fillerOffset']=_0x3871d9),_0x3540d8;}}['_markChanges'](_0x1c1acd,_0xec07f1,_0x568edf,_0x21a174,_0x2130aa){let _0x1c2689=null,_0x317165=null,_0x315dfa=0x0;const _0x1a9ea1=this['editor']['model'];for(let _0x355020=0x0;_0x355020<_0xec07f1['length'];_0x355020++){const _0x5cd4d6=this['_getVidAttributeName'](_0xec07f1[_0x355020]),_0x206f8=_0xec07f1[_0x355020]['item']['getAttribute'](_0x5cd4d6),_0x11e67a=_0x568edf['get'](_0x206f8),_0x28033a=_0x355020==_0xec07f1['length']-0x1;(!_0x1c2689&&_0x11e67a&&(_0x1c2689=_0x11e67a,_0x317165=_0xec07f1[_0x355020]),_0x1c2689&&(!_0x11e67a||_0x11e67a['userId']!=_0x1c2689['userId']))&&(_0x135e64(_0x11e67a,P(_0x317165,_0x1c1acd,_0x1a9ea1),P(_0xec07f1[_0x355020],_0x1c1acd,_0x1a9ea1)),_0x1c2689=_0x11e67a||null,_0x317165=_0x11e67a?_0xec07f1[_0x355020]:null),_0x1c2689&&_0x28033a&&_0x135e64(_0x11e67a,P(_0x317165,_0x1c1acd,_0x1a9ea1),V(_0xec07f1[_0x355020],_0x1c1acd,_0x1a9ea1));}function _0x135e64(_0x7e1224,_0x47732f,_0x36b4ff){const _0x1cb3b0=_0x1c2689['userId'],_0x3680f0='revision:'+_0x21a174+':'+_0x1cb3b0+':'+_0x315dfa++,_0x372d15=_0x1a9ea1['createRange'](_0x47732f,_0x36b4ff);_0x1c1acd['markers']['set'](_0x3680f0,_0x372d15),null!==_0x1cb3b0&&_0x2130aa['add'](_0x1cb3b0);}}['_getVidAttributeName'](_0x499a4a){switch(_0x499a4a['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4fcad4,_0x3fdaaf){_0x4fcad4['baseVersion']=null;for(const _0x3b3d61 in _0x4fcad4){const _0x41f711=_0x4fcad4[_0x3b3d61];if(_0x41f711 instanceof _0x3da34e){const _0x111ff6=_0x3fdaaf['get'](_0x41f711['root']['rootName']);_0x4fcad4[_0x3b3d61]=this['_fixPosition'](_0x41f711,_0x111ff6);}if(_0x41f711 instanceof _0x1c348a){const _0x1283cb=_0x3fdaaf['get'](_0x41f711['root']['rootName']);_0x4fcad4[_0x3b3d61]=this['_fixRange'](_0x41f711,_0x1283cb);}'root'===_0x3b3d61&&(_0x4fcad4['root']=_0x3fdaaf['get'](_0x4fcad4['root']['rootName']));}}['_fixRange'](_0x53e285,_0xb51089){return this['editor']['model']['createRange'](this['_fixPosition'](_0x53e285['start'],_0xb51089),this['_fixPosition'](_0x53e285['end'],_0xb51089));}['_fixPosition'](_0x1d91ea,_0x56d1b3){return this['editor']['model']['createPositionFromPath'](_0x56d1b3,_0x1d91ea['path'],_0x1d91ea['stickiness']);}['_handleInsertOperation'](_0x5c2315){const _0x959fe8=this['_idsRoots']['get'](_0x5c2315['position']['root']['rootName']),_0xb67b15=this['_fixPosition'](_0x5c2315['position'],_0x959fe8),_0x545173=null===_0x5c2315['_authorId']?null:_0x5c2315['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26a1c4=_0xb67b15['parent'],_0x5c4597=this['_revisionId'],_0x2f800c=[];for(const _0x2cc9d6 of _0x5c2315['nodes'])if(_0x2cc9d6['is']('element'))_0x2f800c['push'](this['_makeIdsRoot'](_0x2cc9d6));else{for(let _0x40e4cc=0x0;_0x40e4cc<_0x2cc9d6['offsetSize'];_0x40e4cc++)_0x2f800c['push'](new _0x3061f3('$text',{'vid':this['_revisionId']++}));}const _0x58d72c=this['_revisionId'];for(let _0x5f5373=_0x5c4597;_0x5f5373<_0x58d72c;_0x5f5373++)this['_touched']['set'](_0x5f5373,{'userId':_0x545173});_0x26a1c4['_insertChild'](_0xb67b15['offset'],_0x2f800c);}['_handleMoveOperation'](_0x39c223){(_0x39c223=this['_cloneOperation'](_0x39c223,this['_idsRoots']))['_execute']();const _0x23dc54=null===_0x39c223['_authorId']?null:_0x39c223['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44fdab=_0x39c223['getMovedRangeStart'](),_0x425fcf=_0x44fdab['parent'],_0x5f1391=_0x44fdab['offset'];!function _0x43110f(_0x23e0ce,_0x5a0e1c,_0x3252b2,_0x179ccb){for(let _0x3f1c8d=_0x3252b2;_0x3f1c8d<_0x179ccb;_0x3f1c8d++){const _0x4abf5e=_0x5a0e1c['getChild'](_0x3f1c8d);_0x4abf5e['is']('element','$text')?_0x23e0ce['set'](_0x4abf5e['getAttribute']('vid'),{'userId':_0x23dc54}):(_0x23e0ce['set'](_0x4abf5e['getAttribute']('vid_start'),{'userId':_0x23dc54}),_0x43110f(_0x23e0ce,_0x4abf5e,0x0,_0x4abf5e['childCount']),_0x23e0ce['set'](_0x4abf5e['getAttribute']('vid_end'),{'userId':_0x23dc54}));}}(this['_touched'],_0x425fcf,_0x5f1391,_0x5f1391+_0x39c223['howMany']);}['_handleMergeOperation'](_0x3070c9){const _0x3ef3e1=null===(_0x3070c9=this['_cloneOperation'](_0x3070c9,this['_idsRoots']))['_authorId']?null:_0x3070c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a3fd8=_0x3070c9['targetPosition']['parent'],_0x160cc6=_0x3070c9['sourcePosition']['parent'],_0x431aaf=_0x2a3fd8['getAttribute']('vid_end'),_0x536f4e=_0x160cc6['getAttribute']('vid_start');_0x2a3fd8['_setAttribute']('vid_end',_0x160cc6['getAttribute']('vid_end')),_0x160cc6['_setAttribute']('vid_end',_0x431aaf),this['_touched']['set'](_0x536f4e,{'userId':_0x3ef3e1}),this['_touched']['set'](_0x431aaf,{'userId':_0x3ef3e1}),_0x3070c9['_execute']();}['_handleSplitOperation'](_0x2c0710){const _0x57b2ae=null===(_0x2c0710=this['_cloneOperation'](_0x2c0710,this['_idsRoots']))['_authorId']?null:_0x2c0710['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2558e4=_0x2c0710['graveyardPosition'],_0x1b2310=_0x2c0710['splitPosition']['parent'];_0x2c0710['_execute']();const _0x1c867b=_0x1b2310['getAttribute']('vid_end'),_0x45da46=_0x2c0710['insertionPosition']['nodeAfter'];if(_0x2558e4){const _0x1d333e=_0x45da46['getAttribute']('vid_end'),_0x1a7e0e=_0x1b2310['getAttribute']('vid_end');_0x1b2310['_setAttribute']('vid_end',_0x1d333e),_0x45da46['_setAttribute']('vid_end',_0x1a7e0e),this['_touched']['set'](_0x1b2310['getAttribute']('vid_end'),{'userId':_0x57b2ae}),this['_touched']['set'](_0x45da46['getAttribute']('vid_start'),{'userId':_0x57b2ae});}else{const _0x15dcfb=this['_revisionId']++,_0x3a1b1c=this['_revisionId']++;_0x1b2310['_setAttribute']('vid_end',_0x15dcfb),_0x45da46['_setAttribute']('vid_start',_0x3a1b1c),_0x45da46['_setAttribute']('vid_end',_0x1c867b),this['_touched']['set'](_0x15dcfb,{'userId':_0x57b2ae}),this['_touched']['set'](_0x3a1b1c,{'userId':_0x57b2ae});}}['_handleMarkerOperation'](_0x3e2cf0){if(!_0x3e2cf0['affectsData'])return;const _0x23fe06=(_0x3e2cf0=this['_cloneOperation'](_0x3e2cf0,this['_diffRoots']))['oldRange']?_0x3e2cf0['oldRange']['root']:null,_0x1b3908=_0x3e2cf0['newRange']?_0x3e2cf0['newRange']['root']:null;_0x23fe06&&this['_markers']['delete'](_0x3e2cf0['name']),_0x1b3908&&this['_markers']['set'](_0x3e2cf0['name'],_0x3e2cf0['newRange']['clone']());const _0x53fcf2=null===_0x3e2cf0['_authorId']?null:_0x3e2cf0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49520e=_0x3e2cf0['name'];if(!this['_touchedMarkers']['has'](_0x49520e))return void this['_touchedMarkers']['set'](_0x49520e,{'range':_0x3e2cf0['oldRange'],'userId':_0x53fcf2});const _0x246449=this['_touchedMarkers']['get'](_0x49520e),_0x30c294=_0x246449['range'],_0x16b775=_0x3e2cf0['newRange'];null==_0x30c294&&null==_0x16b775||_0x30c294&&_0x16b775&&_0x30c294['isEqual'](_0x16b775)?this['_touchedMarkers']['delete'](_0x3e2cf0['name']):_0x246449['userId']=_0x53fcf2;}['_handleRootOperation'](_0x20b88b,_0x4b625d){this['_diffRoots']['has'](_0x20b88b['rootName'])?this['_diffRoots']['get'](_0x20b88b['rootName'])['_isAttached']=_0x20b88b['isAdd']:(this['_diffRoots']['set'](_0x20b88b['rootName'],N(_0x20b88b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x20b88b['rootName'],{}),_0x4b625d&&this['_idsRoots']['set'](_0x20b88b['rootName'],N(_0x20b88b['rootName'],!0x0)));const _0x217c36=null===_0x20b88b['_authorId']?null:_0x20b88b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d6404=this['_touchedRoots']['get'](_0x20b88b['rootName']);_0x2d6404&&_0x2d6404['userId']===_0x217c36?this['_touchedRoots']['delete'](_0x20b88b['rootName']):this['_touchedRoots']['set'](_0x20b88b['rootName'],{'userId':_0x217c36,'isAttached':_0x20b88b['isAdd']});}['_handleRootAttributeOperation'](_0x592631){const _0x250987=this['_diffRootsAttributes']['get'](_0x592631['root']['rootName']);null===_0x592631['newValue']?delete _0x250987[_0x592631['key']]:_0x250987[_0x592631['key']]=_0x592631['newValue'];}}function x(_0x5d8326){const _0x57bc18=N(_0x5d8326['rootName'],_0x5d8326['isAttached']());for(const _0x56e19e of _0x5d8326['getChildren']()){const _0x49b29f=_0x56e19e['_clone'](!0x0);_0x57bc18['_appendChild'](_0x49b29f);}return _0x57bc18;}function N(_0x21ec95,_0x429dcb=!0x0){const _0x48b4f9=new _0x3a58c7();return _0x48b4f9['rootName']=_0x21ec95,_0x48b4f9['_isAttached']=_0x429dcb,_0x48b4f9['isAttached']=()=>_0x48b4f9['_isAttached'],_0x48b4f9;}function P(_0x1cb70e,_0x15347,_0x475c37){const _0x5f4fa1='elementEnd'==_0x1cb70e['type']?_0x475c37['createPositionAt'](_0x1cb70e['item'],'end'):_0x475c37['createPositionBefore'](_0x1cb70e['item']);return _0x475c37['createPositionFromPath'](_0x15347,_0x5f4fa1['path'],_0x5f4fa1['stickiness']);}function V(_0x1321c3,_0x159223,_0x51d15b){const _0x32b62c='elementStart'==_0x1321c3['type']?_0x51d15b['createPositionAt'](_0x1321c3['item'],0x0):_0x51d15b['createPositionAfter'](_0x1321c3['item']);return _0x51d15b['createPositionFromPath'](_0x159223,_0x32b62c['path'],_0x32b62c['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x235c38(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1eb48c){super(),this['id']=_0x1eb48c['id']||_0x1a737e(),this['author']=_0x1eb48c['author'],this['type']=_0x1eb48c['type'],this['data']=_0x1eb48c['data']||{},this['rootName']=_0x1eb48c['rootName'],this['set']('createdAt',_0x1eb48c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4d14e3,_0x40ed3e){this['newRevisionId']=_0x4d14e3,this['oldRevisionId']=_0x40ed3e,this['changes']=new _0x1d5790();}['_setChanges'](_0xf036dc){for(const _0x51ff94 of _0xf036dc)this['changes']['add'](_0x51ff94);}}class l extends _0x858dc7{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x267b04,_0x55b3a5,S,$];}constructor(_0x8c1f2){super(_0x8c1f2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1603c8,_0x162d28,_0x2426b6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xd55567=>{for(const _0x4aac89 of this['editor']['editing']['view']['document']['roots'])_0x2426b6?_0xd55567['removeClass']('ck-editor__editable__overlay',_0x4aac89):_0xd55567['addClass']('ck-editor__editable__overlay',_0x4aac89);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x209c30=>null!==_0x209c30),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x587d4e,_0xedb61,_0x5758f9)=>_0x587d4e&&_0x5758f9?_0xedb61['changes']['getIndex'](_0x5758f9):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1f3a34,_0x133c2d)=>_0x1f3a34?_0x133c2d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x55b3a5);}['init'](){const _0x3bf345=this['editor'],_0x3586d8=new ot(_0x3bf345,{'direction':'backward'}),_0x258f16=new ot(_0x3bf345,{'direction':'forward'});(_0x3bf345['commands']['add']('showPreviousChange',_0x3586d8),_0x3bf345['commands']['add']('showNextChange',_0x258f16),_0x3bf345['commands']['add']('restoreRevision',new nt(_0x3bf345)),this['on']('change:numberOfChanges',()=>{_0x3586d8['refresh'](),_0x258f16['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3bf345['enableReadOnlyMode']('revision-viewer'),_0x3bf345['plugins']['has']('WidgetToolbarRepository'))&&_0x3bf345['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5be6d2){return await this['_utils']['loadRevisionData'](_0x5be6d2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5be6d2);}async['getRevisionRootsAttributes'](_0x5ddc7d){return await this['_utils']['loadRevisionData'](_0x5ddc7d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5ddc7d);}async['compare'](_0x1c272d,_0x4729af,_0x429414=!0x1){if(!this['isEnabled'])return;const _0x35c324=this['diff'],_0x579aad=this['repository'],_0x28e9ef='string'==typeof _0x1c272d?_0x579aad['getRevision'](_0x1c272d):_0x1c272d,_0x55af43='string'==typeof _0x4729af?_0x579aad['getRevision'](_0x4729af):_0x4729af,_0x43d4e7=_0x28e9ef['id'],_0x3bb687=_0x55af43?_0x55af43['id']:null;if(!_0x429414&&this['diff']&&this['diff']['newRevisionId']===_0x43d4e7&&this['diff']['oldRevisionId']===_0x3bb687)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x43d4e7,_0x3bb687);const _0x48ea86=this['_getRevisionsRange'](_0x28e9ef,_0x55af43,!0x0)['map'](_0x2c5c5f=>this['_utils']['loadRevisionData'](_0x2c5c5f,this['adapter']));return _0x48ea86['push'](new Promise(_0x11316b=>{setTimeout(_0x11316b,0x14);})),Promise['all'](_0x48ea86)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x47da56=this['_getDiff'](_0x43d4e7,_0x3bb687);for(const _0x3cd108 of _0x47da56['changes'])this['_changeIdToChange']['set'](_0x3cd108['id'],_0x3cd108);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x29e249=>{for(const _0x49d530 of this['editor']['model']['document']['getRootNames']())_0x29e249['detachRoot'](_0x49d530);for(const _0x2eaec8 of Object['keys'](_0x47da56['model'])){const _0x48b3a7=_0x29e249['addRoot'](_0x2eaec8);for(const _0x2a9330 of Object['keys'](_0x47da56['attributes'][_0x2eaec8]))_0x29e249['setAttribute'](_0x2a9330,_0x47da56['attributes'][_0x2eaec8][_0x2a9330],_0x48b3a7);_0x29e249['insert'](_0x47da56['model'][_0x2eaec8],_0x48b3a7,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x47da56['changes'])),this['isReady']=!0x0;})['catch'](_0x3a92c6=>{console['error'](_0x3a92c6),this['_cleanUp'](),_0x35c324&&(this['diff']=_0x35c324),this['isReady']=!0x0;});}['addRevisionData'](_0x3bf8e1,_0x321cf8){const _0x28d7f7=this['repository']['createRevision'](_0x3bf8e1);return _0x28d7f7['on']('_update',(_0x40ac30,_0x16b463,_0x49c991)=>_0x321cf8(_0x16b463,_0x49c991,_0x28d7f7)),this['repository']['addRevision'](_0x28d7f7),_0x28d7f7;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2a95f2=>{for(const _0x2c943f of this['editor']['model']['document']['getRootNames']())_0x2a95f2['detachRoot'](_0x2c943f);});}['_sortAndFilterDiffChanges'](_0x290a33){const _0x25d78d=[],_0xb255f1=new Map();for(const _0x28f7a7 of this['editor']['model']['document']['getRootNames']()){const _0x12781b=this['editor']['editing']['view']['getDomRoot'](_0x28f7a7);if(!_0x12781b)continue;const _0xc705b6=_0x12781b['getClientRects']()['item'](0x0);_0xc705b6&&(_0x25d78d['push'](_0x28f7a7),_0xb255f1['set'](_0x28f7a7,_0xc705b6));}return _0x25d78d['sort']((_0x4d2c17,_0x2015a3)=>{const _0x105936=_0xb255f1['get'](_0x4d2c17),_0x18e0d7=_0xb255f1['get'](_0x2015a3);return _0x105936['y']-_0x18e0d7['y']||_0x105936['x']-_0x18e0d7['x'];}),(_0x290a33=_0x290a33['filter'](_0x410430=>_0x25d78d['includes'](_0x410430['rootName'])))['sort']((_0x5a3e8e,_0x55c59a)=>_0x25d78d['indexOf'](_0x5a3e8e['rootName'])-_0x25d78d['indexOf'](_0x55c59a['rootName'])),_0x290a33;}['_makeTape'](_0x5d88e8){const _0x39bf33=Array['from'](_0x5d88e8['markers'])['filter'](([_0xd1274b,_0x44e8f1])=>_0xd1274b['startsWith']('revision:')&&!_0x44e8f1['isCollapsed']),_0x66fce=Array['from'](this['editor']['model']['createRangeIn'](_0x5d88e8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x39bf33['length'])for(const _0x295d00 of _0x66fce){const [_0x22ced1,_0x440385]=_0x39bf33[0x0],[,_0x59989a,_0x288df5]=_0x22ced1['split'](':');if(_0x440385['end']['isEqual'](_0x295d00['nextPosition'])&&_0x39bf33['shift'](),(_0x295d00['previousPosition']['isEqual'](_0x440385['start'])||_0x295d00['previousPosition']['isAfter'](_0x440385['start']))&&('insertion'==_0x59989a?_0x295d00['isAdded']={'userId':_0x288df5}:'deletion'==_0x59989a&&(_0x295d00['isRemoved']={'userId':_0x288df5})),0x0==_0x39bf33['length'])break;}return _0x66fce;}['_refreshStartEndIndex'](_0x5c5426){const _0x479fdc=new Map();for(let _0x20736c=0x0;_0x20736c<_0x5c5426['length'];_0x20736c++)'text'===_0x5c5426[_0x20736c]['type']?(_0x5c5426[_0x20736c]['item']['startIndex']=_0x20736c,_0x5c5426[_0x20736c]['item']['endIndex']=_0x20736c):('elementStart'===_0x5c5426[_0x20736c]['type']?_0x5c5426[_0x20736c]['item']['startIndex']=_0x20736c:'elementEnd'===_0x5c5426[_0x20736c]['type']&&(_0x5c5426[_0x20736c]['item']['endIndex']=_0x20736c),_0x479fdc['set'](_0x5c5426[_0x20736c]['id'],_0x20736c));for(const _0x2e9f73 of _0x479fdc['values']())'elementStart'===_0x5c5426[_0x2e9f73]['type']?_0x5c5426[_0x2e9f73]['item']['endIndex']=_0x479fdc['get'](_0x5c5426[_0x2e9f73]['pairId']):'elementEnd'===_0x5c5426[_0x2e9f73]['type']&&(_0x5c5426[_0x2e9f73]['item']['startIndex']=_0x479fdc['get'](_0x5c5426[_0x2e9f73]['pairId']));}['_processTape'](_0x2160a0){for(let _0xa51c4f=0x0;_0xa51c4f<_0x2160a0['length'];_0xa51c4f++){if('elementStart'===_0x2160a0[_0xa51c4f]['type'])_0x2160a0[_0xa51c4f]['item']['startIndex']=_0xa51c4f;else{if('elementEnd'===_0x2160a0[_0xa51c4f]['type']){_0x2160a0[_0xa51c4f]['item']['endIndex']=_0xa51c4f;const _0xe948cc=_0x2160a0[_0xa51c4f]['item']['startIndex'];_0x2160a0[_0xe948cc]['pairId']=_0x2160a0[_0xa51c4f]['id'],_0x2160a0[_0xa51c4f]['pairId']=_0x2160a0[_0xe948cc]['id'];}else _0x2160a0[_0xa51c4f]['item']['startIndex']=_0xa51c4f,_0x2160a0[_0xa51c4f]['item']['endIndex']=_0xa51c4f,_0x2160a0[_0xa51c4f]['pairId']=null;}_0x2160a0[_0xa51c4f]['markersStart']||(_0x2160a0[_0xa51c4f]['markersStart']=[],_0x2160a0[_0xa51c4f]['markersEnd']=[]);}}['_markInsertions'](_0xe184de,_0x31fdce){const _0x3de0fd=_0xe184de['filter'](_0x4f1880=>!_0x4f1880['isAdded']);for(let _0x2ad7ac=0x0;_0x2ad7ac<_0x31fdce['length'];_0x2ad7ac++)_0x31fdce[_0x2ad7ac]['isAdded']&&(_0x3de0fd[_0x2ad7ac]['isAdded']=_0x31fdce[_0x2ad7ac]['isAdded']);}['_getDiff'](_0x27cebd,_0x3b7068=null){const _0x19c3fe=this['repository']['getRevision'](_0x27cebd),_0x1ed555=_0x3b7068?this['repository']['getRevision'](_0x3b7068):null,_0xf9aaa0=this['_getRevisionsRange'](_0x19c3fe,_0x1ed555),_0x18f517=_0xf9aaa0[_0xf9aaa0['length']-0x1],_0x40533c=new Map(),_0x5d7339={'model':{},'attributes':{},'changes':[]},_0x55a3dc=new Set(),_0x12ba6e=new Map();for(let _0x528a43=_0xf9aaa0['length']-0x1;_0x528a43>=0x0;_0x528a43--){const _0x3c266a=_0xf9aaa0[_0x528a43];for(const _0x5c6f60 of Object['keys'](_0x3c266a['diffData']))if(_0x3c266a['diffData'][_0x5c6f60]['attachChange']){const _0x4f3020=_0x3c266a['diffData'][_0x5c6f60]['attachChange'];_0x4f3020['isAttached']?(_0x55a3dc['add'](_0x5c6f60),_0x12ba6e['has'](_0x5c6f60)&&_0x12ba6e['get'](_0x5c6f60)['userId']==_0x4f3020['userId']?_0x12ba6e['delete'](_0x5c6f60):_0x12ba6e['set'](_0x5c6f60,_0x4f3020)):_0x12ba6e['has'](_0x5c6f60)?(_0x55a3dc['delete'](_0x5c6f60),_0x12ba6e['delete'](_0x5c6f60)):(_0x55a3dc['add'](_0x5c6f60),_0x12ba6e['set'](_0x5c6f60,_0x4f3020));}else _0x55a3dc['add'](_0x5c6f60);}for(const _0x1c3319 of _0x55a3dc){const _0x4ab1a8=_0x12ba6e['has'](_0x1c3319)&&!_0x12ba6e['get'](_0x1c3319)['isAttached'];let _0x4e2353=_0x4ab1a8?_0xf9aaa0['length']-0x1:0x0;const _0x1576f2=_0x4ab1a8?-0x1:0x1;for(;_0xf9aaa0[_0x4e2353];){const _0x44a593=_0xf9aaa0[_0x4e2353];if(_0x44a593['diffData'][_0x1c3319]){const _0x567057=_0x4ab1a8?_0x44a593['diffData'][_0x1c3319]['attributesBefore']:_0x44a593['diffData'][_0x1c3319]['attributesAfter'];_0x5d7339['attributes'][_0x1c3319]=_0x567057?_0x2b75d6(_0x567057):{};break;}_0x4e2353+=_0x1576f2;}}for(const _0x23d38b of _0xf9aaa0){_0x23d38b['model']={};for(const _0x2e8b17 of _0x23d38b['authors'])_0x40533c['set'](_0x2e8b17['id'],_0x2e8b17);for(const _0x3dbc81 of _0x55a3dc){const _0x3142ba=_0x23d38b['diffData'][_0x3dbc81]?_0x23d38b['diffData'][_0x3dbc81]['insertions']:'[]',_0x13a0b2=_0x23d38b['diffData'][_0x3dbc81]?_0x23d38b['diffData'][_0x3dbc81]['deletions']:'[]';_0x23d38b['model'][_0x3dbc81]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3142ba),'deletions':this['_utils']['_makeModelFromViewString'](_0x13a0b2)};}}for(const _0x477545 of _0x55a3dc){let _0x3ac2ad=null,_0x275251=0x0;const _0x4ad93b=new Map(Array['from'](_0x19c3fe['model'][_0x477545]['insertions']['markers'])['filter'](([_0x43969d])=>!_0x43969d['startsWith']('revision:')));let _0x1eb0d8=0x0;for(const _0x3aa24b of _0xf9aaa0){const _0x2994f2=this['_makeTape'](_0x3aa24b['model'][_0x477545]['insertions']);_0x3aa24b==_0x19c3fe?(_0x3ac2ad=_0x2994f2,_0x275251=_0x3ac2ad['length'],_0x3ac2ad['forEach'](_0x2c8e56=>{_0x2c8e56['id']=_0x1eb0d8++;}),this['_processTape'](_0x3ac2ad)):this['_markInsertions'](_0x3ac2ad,_0x2994f2);const _0x19041=_0x3ac2ad['filter'](_0x1c9602=>!_0x1c9602['isAdded'])['map'](_0x174c63=>_0x174c63['id']);let _0x221b21=0x0;const _0x5d549c=this['_makeTape'](_0x3aa24b['model'][_0x477545]['deletions']);_0x5d549c['forEach'](_0x3b66f2=>{_0x3b66f2['isRemoved']?_0x3b66f2['id']=_0x275251++:_0x3b66f2['id']=_0x19041[_0x221b21++];}),this['_processTape'](_0x5d549c),this['_setDistance'](_0x3ac2ad,'isAdded'),this['_setDistance'](_0x5d549c,'isRemoved'),_0x3aa24b==_0x19c3fe&&this['_markMarkers'](_0x3ac2ad,_0x4ad93b),_0x3ac2ad=this['_joinTapes'](_0x3ac2ad,_0x5d549c),this['_refreshStartEndIndex'](_0x3ac2ad),this['_setDistance'](_0x3ac2ad,'isRemoved');}_0x3ac2ad=_0x3ac2ad['filter'](_0x2d9f59=>!(_0x2d9f59['isAdded']&&_0x2d9f59['isRemoved']));const _0x1b1d3e=new Map(_0x18f517['model'][_0x477545]['deletions']['markers']),_0x28d626=new Set(_0x4ad93b['keys']());for(const _0x5b90a6 of _0x1b1d3e['keys']())_0x28d626['delete'](_0x5b90a6);this['_markSuggestions'](_0x3ac2ad,_0x28d626),this['_fixObsoleteTags'](_0x3ac2ad),_0x3ac2ad=this['_removeMissingPairs'](_0x3ac2ad),_0x3ac2ad=this['_markMismatchedRemovedTags'](_0x3ac2ad),_0x3ac2ad=this['_removeUnsupportedChanges'](_0x3ac2ad);const {root:_0x5ee7fe,changes:_0x5e65cd}=this['_makeModelFromTape'](_0x3ac2ad,_0x40533c,_0x477545);_0x5d7339['model'][_0x477545]=_0x5ee7fe;const _0x3f929f=_0x12ba6e['get'](_0x477545);if(_0x3f929f){const _0x8ab5c4=_0x40533c['get'](_0x3f929f['userId']),_0x24f5a9=new G({'author':_0x8ab5c4,'type':_0x3f929f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x477545});_0x5e65cd['unshift'](_0x24f5a9),_0x5d7339['attributes'][_0x477545]['revisionHistoryAttachChange']=_0x24f5a9['id'];}_0x5d7339['changes']=_0x5d7339['changes']['concat'](_0x5e65cd);}return _0x5d7339;}['_markMarkers'](_0x537776,_0x2b9a05){for(let _0x599bf8=0x0;_0x599bf8<_0x537776['length'];_0x599bf8++)for(const [_0xaa003a,_0x32b568]of _0x2b9a05)!_0x32b568['isCollapsed']&&_0x32b568['start']['isEqual'](_0x537776[_0x599bf8]['previousPosition'])&&_0x537776[_0x599bf8]['markersStart']['push'](_0xaa003a),_0x32b568['end']['isEqual'](_0x537776[_0x599bf8]['nextPosition'])&&_0x537776[_0x599bf8]['markersEnd']['push'](_0xaa003a);}['_joinTapes'](_0x38e666,_0x2fa61e){let _0x4cbdff=[],_0x37ac86=0x0,_0x16c52f=0x0;for(;_0x37ac86<_0x38e666['length']||_0x16c52f<_0x2fa61e['length'];){const _0x36d78c=_0x38e666[_0x37ac86]||{},_0x5981fb=_0x2fa61e[_0x16c52f]||{};if(_0x36d78c['id']==_0x5981fb['id'])_0x37ac86++,_0x16c52f++,_0x4cbdff['push'](_0x36d78c);else{if(_0x5981fb['isRemoved']&&_0x36d78c['isAdded']){const {commonTape:_0x4c7527,iEnd:_0x185e18,jEnd:_0x3f1526}=this['_threeWayMerge'](_0x38e666,_0x37ac86,_0x2fa61e,_0x16c52f);_0x4cbdff=_0x4cbdff['concat'](_0x4c7527),_0x37ac86=_0x185e18,_0x16c52f=_0x3f1526;}else _0x5981fb['isRemoved']?(_0x16c52f++,_0x4cbdff['push'](_0x5981fb)):(_0x37ac86++,_0x4cbdff['push'](_0x36d78c));}}return _0x4cbdff;}['_markSuggestions'](_0x39b513,_0x5c6615){const _0x1b4ed5=[];for(let _0xc75f28=0x0;_0xc75f28<_0x39b513['length'];_0xc75f28++){for(let _0x5c4762=0x0;_0x5c4762<_0x39b513[_0xc75f28]['markersStart']['length'];_0x5c4762++){const _0x278409=_0x39b513[_0xc75f28]['markersStart'][_0x5c4762];if(!_0x5c6615['has'](_0x278409))continue;const {group:_0x11eea8,type:_0x2706da,authorId:_0x1c35ef}=_0x55df35(_0x278409);'revision-suggestion'!=_0x11eea8||'insertion'!=_0x2706da&&'deletion'!=_0x2706da||(_0x1b4ed5['unshift']({'type':_0x2706da,'name':_0x278409,'userId':_0x1c35ef}),_0x39b513[_0xc75f28]['markersStart']['splice'](_0x5c4762,0x1),_0x5c4762--);}_0x77c0b7(_0x39b513[_0xc75f28]);for(let _0x310c65=0x0;_0x310c65<_0x39b513[_0xc75f28]['markersEnd']['length'];_0x310c65++){const _0x3e72af=_0x39b513[_0xc75f28]['markersEnd'][_0x310c65];if(!_0x5c6615['has'](_0x3e72af))continue;const {group:_0x155cb5,type:_0x13d6cc}=_0x55df35(_0x3e72af);if('revision-suggestion'!=_0x155cb5||'insertion'!=_0x13d6cc&&'deletion'!=_0x13d6cc)continue;_0x39b513[_0xc75f28]['markersEnd']['splice'](_0x310c65,0x1),_0x310c65--;const _0x87f172=_0x1b4ed5['findIndex'](_0x4cbdbb=>_0x4cbdbb['name']==_0x3e72af);_0x87f172>-0x1&&_0x1b4ed5['splice'](_0x87f172,0x1);}}function _0x55df35(_0x460f1e){const _0x59a35d=_0x460f1e['split'](':');return{'group':_0x59a35d[0x0],'type':_0x59a35d[0x1],'subType':_0x59a35d['length']>=0x5?_0x59a35d[0x2]:null,'id':_0x59a35d['length']<0x5?_0x59a35d[0x2]:_0x59a35d[0x3],'authorId':_0x59a35d['length']<0x5?_0x59a35d[0x3]:_0x59a35d[0x4],'markerCount':0x6==_0x59a35d['length']?_0x59a35d[0x5]:null};}function _0x77c0b7(_0x4eb7fe){for(let _0x2c9fc1=0x0;_0x2c9fc1<_0x1b4ed5['length'];_0x2c9fc1++){if(_0x4eb7fe['isAdded']&&'insertion'==_0x1b4ed5[_0x2c9fc1]['type']&&_0x4eb7fe['isAdded']['userId']==_0x1b4ed5[_0x2c9fc1]['userId'])return _0x4eb7fe['isAddSuggestion']=_0x1b4ed5[_0x2c9fc1],void delete _0x4eb7fe['isAdded'];if(!_0x4eb7fe['isAdded']&&!_0x4eb7fe['isRemoved']&&'deletion'==_0x1b4ed5[_0x2c9fc1]['type'])return void(_0x4eb7fe['isRemoveSuggestion']=_0x1b4ed5[_0x2c9fc1]);}}}['_setDistance'](_0x524c28,_0xcbe678){let _0x31f9fb=0x0,_0x3bdd4b=!0x1;const _0x40018a=new Map();for(const _0x4a0af2 of _0x524c28)_0x4a0af2[_0xcbe678]?_0x3bdd4b&&(_0x31f9fb++,_0x3bdd4b=!0x1):(_0x31f9fb++,_0x3bdd4b=!0x0),_0x40018a['set'](_0x4a0af2['id'],_0x31f9fb);for(let _0x29449a=0x0;_0x29449a<_0x524c28['length'];_0x29449a++){if('isRemoved'==_0xcbe678&&_0x524c28[_0x29449a]['isAdded']||'isAdded'==_0xcbe678&&_0x524c28[_0x29449a]['isRemoved'])continue;if('text'==_0x524c28[_0x29449a]['type']){_0x524c28[_0x29449a]['distance']=0x0;continue;}const _0x2945bc=_0x40018a['get'](_0x524c28[_0x29449a]['pairId']),_0xe9628b=_0x40018a['get'](_0x524c28[_0x29449a]['id']);_0x524c28[_0x29449a]['distance']=_0x2945bc-_0xe9628b;}}['_getRevisionsRange'](_0x49888d,_0x8705b,_0xe4de7f=!0x1){const _0x47010a=[];let _0x38c3d7=this['repository']['getIndex'](_0x49888d),_0x3aecd9=this['repository']['getIndex'](_0x8705b);for(-0x1==_0x3aecd9&&(_0x3aecd9=this['repository']['_revisions']['length'],_0xe4de7f=!0x1);_0x38c3d7<_0x3aecd9;)_0x47010a['push'](this['repository']['getRevision'](_0x38c3d7)),_0x38c3d7++;return _0xe4de7f&&_0x47010a['push'](this['repository']['getRevision'](_0x38c3d7)),_0x47010a;}['_threeWayMerge'](_0x4776e4,_0x24e38d,_0x24df9e,_0x55eb98){const _0x42d8f2=this['editor']['model']['schema'];let _0x13ad62=_0x24e38d;for(;_0x4776e4[_0x13ad62]&&_0x4776e4[_0x13ad62]['isAdded'];)_0x13ad62++;let _0x29bfd6=_0x55eb98;for(;_0x24df9e[_0x29bfd6]&&_0x24df9e[_0x29bfd6]['isRemoved'];)_0x29bfd6++;_0x1b528b(_0x4776e4,_0x24e38d,_0x13ad62),_0x1b528b(_0x24df9e,_0x55eb98,_0x29bfd6);const _0x5090ce=_0x24df9e['slice'](_0x55eb98,_0x29bfd6)['concat'](_0x4776e4['slice'](_0x24e38d,_0x13ad62));return _0x5090ce['sort']((_0x288205,_0x5c2551)=>_0x288205['side']!=_0x5c2551['side']?_0x288205['side']-_0x5c2551['side']:_0x288205['level']!=_0x5c2551['level']?_0x288205['level']-_0x5c2551['level']:_0x288205['distance']!=_0x5c2551['distance']?_0x5c2551['distance']-_0x288205['distance']:!!_0x288205['isAdded']!=!!_0x5c2551['isAdded']?-0x1==_0x288205['side']||0x0==_0x288205['side']?_0x288205['isAdded']?-0x1:0x1:_0x288205['isAdded']?0x1:-0x1:_0x288205['index']-_0x5c2551['index']),{'commonTape':_0x5090ce,'iEnd':_0x13ad62,'jEnd':_0x29bfd6};function _0x1b528b(_0x1e7a9c,_0x169b34,_0x17c683){let _0x442aef=-0x1,_0xf6d0a9=Number['POSITIVE_INFINITY'],_0x2400ce=!0x0;for(let _0xcba6bf=_0x169b34;_0xcba6bf<_0x17c683;_0xcba6bf++)if(_0x42d8f2['isInline'](_0x1e7a9c[_0xcba6bf]['item'])||(_0x2400ce=!0x1),_0x1e7a9c[_0xcba6bf]['item']['startIndex']<_0x169b34&&(_0x442aef=_0xcba6bf),_0x1e7a9c[_0xcba6bf]['item']['endIndex']>=_0x17c683){_0xf6d0a9=_0xcba6bf;break;}_0x2400ce&&(_0x442aef=_0x17c683-0x1);for(let _0x33f6c0=_0x169b34;_0x33f6c0<_0x17c683;_0x33f6c0++)_0x1e7a9c[_0x33f6c0]['side']=_0x33f6c0<=_0x442aef?-0x1:_0x33f6c0<_0xf6d0a9?0x0:0x1,_0x1e7a9c[_0x33f6c0]['index']=_0x33f6c0;let _0x2ac190=0x0;for(let _0x440f2f=_0x169b34;_0x440f2f<=_0x442aef;_0x440f2f++)0x0==_0x1e7a9c[_0x440f2f]['distance']?_0x1e7a9c[_0x440f2f]['level']=_0x2ac190:(_0x2ac190++,_0x1e7a9c[_0x440f2f]['level']=_0x2ac190,_0x2ac190++);for(let _0x52123c=_0x169b34;_0x52123c<_0x17c683;_0x52123c++)0x0==_0x1e7a9c[_0x52123c]['side']&&(_0x1e7a9c[_0x52123c]['level']=_0x2ac190);_0x2ac190=0x0;for(let _0x40b297=_0x17c683-0x1;_0x40b297>=_0xf6d0a9;_0x40b297--)0x0==_0x1e7a9c[_0x40b297]['distance']?_0x1e7a9c[_0x40b297]['level']=_0x2ac190:(_0x2ac190--,_0x1e7a9c[_0x40b297]['level']=_0x2ac190,_0x2ac190--);}}['_fixObsoleteTags'](_0x35b594){const _0x91db2f=new Map(),_0x5aa413=this['editor']['model']['schema'];for(let _0x2f2c65=0x1;_0x2f2c65<_0x35b594['length'];_0x2f2c65++){let _0x48453d,_0x369398,_0x30549f;const _0x1dc2ab=_0x35b594[_0x2f2c65],_0x54a386=_0x35b594[_0x2f2c65-0x1];if('text'==_0x1dc2ab['type'])continue;if(_0x1dc2ab['type']!=_0x54a386['type'])continue;if(!_0x5aa413['isBlock'](_0x54a386['item'])||_0x5aa413['isLimit'](_0x54a386['item']))continue;if(!_0x5aa413['isBlock'](_0x1dc2ab['item'])||_0x5aa413['isLimit'](_0x1dc2ab['item']))continue;if((_0x35b594[_0x2f2c65]['isAdded']||_0x35b594[_0x2f2c65]['isAddSuggestion'])&&_0x35b594[_0x2f2c65-0x1]['isRemoved'])_0x48453d=_0x35b594[_0x2f2c65],_0x369398=_0x35b594[_0x2f2c65-0x1],_0x30549f=_0x2f2c65-0x1;else{if(!_0x35b594[_0x2f2c65]['isRemoved']||!_0x35b594[_0x2f2c65-0x1]['isAdded']&&!_0x35b594[_0x2f2c65-0x1]['isAddSuggestion'])continue;_0x48453d=_0x35b594[_0x2f2c65-0x1],_0x369398=_0x35b594[_0x2f2c65],_0x30549f=_0x2f2c65;}const _0x545519=_0x48453d['level']==_0x369398['level'],_0x5dfd86=Math['abs'](_0x48453d['level'])<Math['abs'](_0x369398['level'])&&0x0==_0x369398['distance'];(_0x545519||_0x5dfd86)&&(_0x91db2f['set'](_0x369398['id'],_0x48453d['id']),_0x35b594['splice'](_0x30549f,0x1),_0x2f2c65--,_0x48453d['isAdded']=!0x1);}for(let _0x2bc37a=0x0;_0x2bc37a<_0x35b594['length'];_0x2bc37a++)_0x91db2f['has'](_0x35b594[_0x2bc37a]['pairId'])&&(_0x35b594[_0x2bc37a]['pairId']=_0x91db2f['get'](_0x35b594[_0x2bc37a]['pairId']));}['_removeMissingPairs'](_0x469b3d){const _0xc09700=new Set(_0x469b3d['map'](_0x30873f=>_0x30873f['id']));for(let _0x192c6a=0x0;_0x192c6a<_0x469b3d['length'];_0x192c6a++)_0xc09700['has'](_0x469b3d[_0x192c6a]['pairId'])||0x0==_0x469b3d[_0x192c6a]['distance']||(_0x469b3d[_0x192c6a]['isIncorrect']=!0x0);return _0x469b3d['filter'](_0x20c8ad=>!_0x20c8ad['isIncorrect']);}['_markMismatchedRemovedTags'](_0x546f48){const _0xa6422=new Set();for(let _0x226129=0x0;_0x226129<_0x546f48['length'];_0x226129++){if(_0xa6422['has'](_0x546f48[_0x226129]['id'])&&_0x546f48[_0x226129]['isRemoved']&&(_0x546f48[_0x226129]['isIncorrect']=!0x0),_0x546f48[_0x226129]['isIncorrect'])continue;if(0x0==_0x546f48[_0x226129]['distance'])continue;if('elementStart'!=_0x546f48[_0x226129]['type'])continue;if(null==_0x546f48[_0x226129]['pairId'])continue;let _0x8fab52=_0x226129+0x1,_0x3a11b9=0x0;for(;_0x546f48[_0x8fab52]['id']!=_0x546f48[_0x226129]['pairId'];)'elementStart'==_0x546f48[_0x8fab52]['type']?_0x3a11b9++:'elementEnd'==_0x546f48[_0x8fab52]['type']&&_0x3a11b9--,_0x8fab52++;if(0x0!=_0x3a11b9){if(_0x546f48[_0x226129]['isRemoved'])_0x546f48[_0x226129]['isIncorrect']=!0x0;else{for(;_0x8fab52!=_0x226129;)_0x546f48[_0x8fab52]['isRemoved']&&0x0!=_0x546f48[_0x8fab52]['distance']&&(_0x546f48[_0x8fab52]['isIncorrect']=!0x0,_0xa6422['add'](_0x546f48[_0x8fab52]['pairId'])),_0x8fab52--;}}}return _0x546f48['filter'](_0xcde37a=>!_0xcde37a['isIncorrect']);}['_removeUnsupportedChanges'](_0x23fefa){const _0x402db6=this['editor']['model']['schema'];for(let _0x157d1d=0x0;_0x157d1d<_0x23fefa['length'];_0x157d1d++){if(!(_0x23fefa[_0x157d1d]['isAdded']||_0x23fefa[_0x157d1d]['isAddSuggestion']||_0x23fefa[_0x157d1d]['isRemoved']||_0x23fefa[_0x157d1d]['isRemoveSuggestion']))continue;if(0x0==_0x23fefa[_0x157d1d]['distance'])continue;const _0x922c24=_0x23fefa[_0x157d1d]['item'];_0x402db6['isBlock'](_0x922c24)||_0x402db6['isLimit'](_0x922c24)||(_0x23fefa[_0x157d1d]['isAdded']&&delete _0x23fefa[_0x157d1d]['isAdded'],_0x23fefa[_0x157d1d]['isAddSuggestion']&&delete _0x23fefa[_0x157d1d]['isAddSuggestion'],_0x23fefa[_0x157d1d]['isRemoveSuggestion']&&delete _0x23fefa[_0x157d1d]['isRemoveSuggestion'],_0x23fefa[_0x157d1d]['isRemoved']&&(_0x23fefa[_0x157d1d]['isIncorrect']=!0x0));}return _0x23fefa['filter'](_0x47651e=>!_0x47651e['isIncorrect']);}['_makeModelFromTape'](_0x2bdb2a,_0x6a452e,_0xe58510){const _0x4028d9=new _0x3a58c7(),_0x2ac552=[],_0xd119cd=new Map(),_0x585720=this['editor']['model'],_0x129807=_0x585720['schema'],_0x57da44=[_0x4028d9],_0x491330={},_0x3e6d71={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x21917c=null;const _0x25bcc9=[0x0];for(let _0x3089a6=0x0;_0x3089a6<_0x2bdb2a['length'];_0x3089a6++)if('elementStart'===_0x2bdb2a[_0x3089a6]['type']){_0x2bdb2a[_0x3089a6]['previousPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9);const _0x1bbb8d=new _0x3061f3(_0x2bdb2a[_0x3089a6]['item']['name'],_0x2bdb2a[_0x3089a6]['item']['getAttributes']());_0x57da44[0x0]['_appendChild'](_0x1bbb8d),_0x25bcc9['push'](0x0),_0x57da44['unshift'](_0x1bbb8d),_0x2bdb2a[_0x3089a6]['nextPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9);}else'elementEnd'===_0x2bdb2a[_0x3089a6]['type']?(_0x57da44['shift'](),_0x2bdb2a[_0x3089a6]['previousPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9),_0x25bcc9['pop'](),_0x25bcc9[_0x25bcc9['length']-0x1]++,_0x2bdb2a[_0x3089a6]['nextPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9)):(_0x2bdb2a[_0x3089a6]['previousPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9),_0x21917c?_0x21917c['_data']+=_0x2bdb2a[_0x3089a6]['item']['data']:_0x21917c=new _0x54876f(_0x2bdb2a[_0x3089a6]['item']['data'],_0x2bdb2a[_0x3089a6]['item']['getAttributes']()),_0x2bdb2a[_0x3089a6+0x1]&&'text'===_0x2bdb2a[_0x3089a6+0x1]['type']&&_0x3e673b(_0x21917c,_0x2bdb2a[_0x3089a6+0x1]['item'])||(_0x57da44[0x0]['_appendChild'](_0x21917c),_0x21917c=null),_0x25bcc9[_0x25bcc9['length']-0x1]+=_0x2bdb2a[_0x3089a6]['item']['offsetSize'],_0x2bdb2a[_0x3089a6]['nextPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9));for(let _0x348324=0x0;_0x348324<_0x2bdb2a['length'];_0x348324++){const _0x38c591=_0x2bdb2a[_0x348324]['previousPosition'],_0xe31d98=_0x2bdb2a[_0x348324]['nextPosition'];for(const _0x236a1a of _0x2bdb2a[_0x348324]['markersStart'])_0xd119cd['set'](_0x236a1a,{'start':_0x38c591,'end':null});_0x10dbf3('isRemoveSuggestion',_0x348324,_0x38c591,_0xe31d98),_0x10dbf3('isAddSuggestion',_0x348324,_0x38c591,_0xe31d98),_0x10dbf3('isRemoved',_0x348324,_0x38c591,_0xe31d98),_0x10dbf3('isAdded',_0x348324,_0x38c591,_0xe31d98);for(const _0x461892 of _0x2bdb2a[_0x348324]['markersEnd']){const _0x402705=_0xd119cd['get'](_0x461892);_0x402705?_0x402705['end']=_0xe31d98:_0xd119cd['set'](_0x461892,{'start':_0xe31d98,'end':_0xe31d98});}}for(const [_0x4d8f30,_0x5d94b2]of _0xd119cd){const _0x36ce85=this['editor']['model']['createRange'](_0x5d94b2['start'],_0x5d94b2['end']);_0x4028d9['markers']['set'](_0x4d8f30,_0x36ce85);}return _0x2ac552['sort']((_0x19a4e0,_0x3bfa6f)=>{const _0x3def93=_0x4028d9['markers']['get']('revision:'+_0x19a4e0['id']),_0x26d11d=_0x4028d9['markers']['get']('revision:'+_0x3bfa6f['id']);return _0x3def93['start']['isBefore'](_0x26d11d['start'])?-0x1:_0x3def93['start']['isAfter'](_0x26d11d['start'])?0x1:_0x3def93['end']['isBefore'](_0x26d11d['end'])?-0x1:_0x3def93['end']['isAfter'](_0x26d11d['end'])?0x1:'add'===_0x19a4e0['type']?-0x1:0x1;}),{'root':_0x4028d9,'changes':_0x2ac552};function _0x10dbf3(_0x4f6619,_0x21147c,_0x2ea131,_0x52b1c6){const _0x21b686=!!_0x2bdb2a[_0x21147c][_0x4f6619],_0xb36863=_0x21b686?_0x2bdb2a[_0x21147c][_0x4f6619]['userId']:null,_0x411583=_0x21147c===_0x2bdb2a['length']-0x1,_0x18f901=_0x3e6d71[_0x4f6619][0x0],_0x15ff5a=_0x129807['isObject'](_0x2bdb2a[_0x21147c]['item']);!_0x491330[_0x4f6619]&&_0x21b686?_0x491330[_0x4f6619]={'start':_0x2ea131,'tapeItem':_0x2bdb2a[_0x21147c],'userId':_0xb36863,'type':_0x4f6619}:_0x491330[_0x4f6619]&&!_0x21b686?(_0x491330[_0x4f6619]['end']=_0x2ea131,_0x252f93(_0x491330[_0x4f6619]),_0x491330[_0x4f6619]=null):_0x491330[_0x4f6619]&&_0x21b686&&_0x491330[_0x4f6619]['userId']!==_0xb36863&&(_0x491330[_0x4f6619]['end']=_0x2ea131,_0x18f901&&_0x18f901['userId']===_0x491330[_0x4f6619]['userId']||_0x252f93(_0x491330[_0x4f6619]),_0x491330[_0x4f6619]={'start':_0x2ea131,'tapeItem':_0x2bdb2a[_0x21147c],'userId':_0xb36863,'type':_0x4f6619}),_0x491330[_0x4f6619]&&_0x15ff5a&&('elementStart'!==_0x2bdb2a[_0x21147c]['type']||_0x18f901&&_0x18f901['userId']===_0xb36863||_0x3e6d71[_0x4f6619]['unshift']({'userId':_0xb36863,'object':_0x2bdb2a[_0x21147c]['item'],'change':_0x491330[_0x4f6619]}),'elementEnd'===_0x2bdb2a[_0x21147c]['type']&&_0x18f901&&_0x18f901['object']===_0x2bdb2a[_0x21147c]['item']&&(_0x3e6d71[_0x4f6619]['shift'](),_0x491330[_0x4f6619]=_0x18f901['change'])),_0x491330[_0x4f6619]&&_0x411583&&(_0x491330[_0x4f6619]['end']=_0x52b1c6,_0x252f93(_0x491330[_0x4f6619]),_0x491330[_0x4f6619]=null);}function _0x252f93({start:_0x189f4f,end:_0x3764d2,tapeItem:_0x56e6f9,userId:_0x18e689,type:_0x431c57}){const _0x5632cd=_0x56e6f9['item'],_0x35b3ac=_0x585720['schema']['isBlock'](_0x5632cd)&&!_0x585720['schema']['isLimit'](_0x5632cd),_0x12cf18=_0x189f4f['nodeAfter']==_0x3764d2['parent']&&_0x3764d2['isAtStart'];if(_0x35b3ac&&_0x12cf18)return;const _0x2cf88d=_0x585720['createRange'](_0x189f4f,_0x3764d2),_0x9706e=_0x6a452e['get'](_0x18e689),_0x724dd4=new G({'author':_0x9706e,'type':'isAdded'==_0x431c57||'isAddSuggestion'==_0x431c57?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x431c57||'isRemoveSuggestion'==_0x431c57},'createdAt':new Date(),'rootName':_0xe58510});_0x2ac552['push'](_0x724dd4),_0x4028d9['markers']['set']('revision:'+_0x724dd4['id'],_0x2cf88d);}function _0x3e673b(_0x1fbcae,_0x10a17d){const _0x4f462f=_0x1fbcae['getAttributes'](),_0x4fe22e=_0x10a17d['getAttributes']();for(const _0x547d3f of _0x4f462f){if(_0x547d3f[0x1]!==_0x10a17d['getAttribute'](_0x547d3f[0x0]))return!0x1;_0x4fe22e['next']();}return _0x4fe22e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x26b7c0=>{const _0x1b5d6d=_0x26b7c0['markerName']['split'](':')[0x1],_0x4170cb=this['_getChangeFromId'](_0x1b5d6d);if(!_0x4170cb)return null;const _0x3c5657='add'==_0x4170cb['type']?'insertion':'deletion',_0x4df617=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c5657];return _0x4170cb['data']['isSuggestion']&&_0x4df617['push']('ck-suggestion-marker-'+_0x3c5657+'-new'),this['activeChange']==_0x4170cb&&_0x4df617['push']('ck-suggestion-marker--active'),{'classes':_0x4df617,'attributes':{'data-change-id':_0x1b5d6d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x447ec3=>{_0x447ec3['on']('element:pre',(_0x228f6d,_0x24240c,_0x192b10)=>{const _0x19828a=_0x24240c['viewItem']['getChild'](0x0);if(!_0x19828a||!_0x19828a['is']('element','code'))return;if(!_0x192b10['consumable']['consume'](_0x19828a,{'attributes':['vid_start','vid_end']}))return;const _0x536502=_0x24240c['modelRange']['start']['nodeAfter'];_0x192b10['writer']['setAttribute']('vid_start',_0x19828a['getAttribute']('vid_start'),_0x536502),_0x192b10['writer']['setAttribute']('vid_end',_0x19828a['getAttribute']('vid_end'),_0x536502);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3ff276=>{_0x3ff276['on']('element',(_0x2acf8e,_0x4aca0e,_0x3a1c1b)=>{if(!_0x3a1c1b['consumable']['consume'](_0x4aca0e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4aca0e['modelRange']['isCollapsed'])return;const _0x347779=_0x4aca0e['modelRange']['start']['nodeAfter'];_0x347779['hasAttribute']('vid_start')||_0x347779['hasAttribute']('vid')||(_0x3a1c1b['writer']['setAttribute']('vid_start',_0x4aca0e['viewItem']['getAttribute']('vid_start'),_0x347779),_0x3a1c1b['writer']['setAttribute']('vid_end',_0x4aca0e['viewItem']['getAttribute']('vid_end'),_0x347779));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x39901a=>_0x39901a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1ba4ef,[,_0x281165])=>{['vid_start','vid_end','vid']['includes'](_0x281165)&&(_0x1ba4ef['return']=!0x0,_0x1ba4ef['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1c493a=>{_0x1c493a['on']('attribute:vid',(_0x482aa8,_0x19fcf6,_0x2cc074)=>{if('\x20'!=_0x19fcf6['item']['data']||_0x19fcf6['item']['parent']['maxOffset']>0x1)return;if(!_0x2cc074['consumable']['consume'](_0x19fcf6['item'],_0x482aa8['name']))return;const _0x2bd83a=_0x2cc074['writer'],_0x2c3a56=_0x2cc074['mapper']['toViewRange'](_0x19fcf6['range']);_0x2bd83a['wrap'](_0x2c3a56,_0x2bd83a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4e592d){const _0x381b9e=_0x4e592d['plugins']['get']('RevisionViewer');return(_0x4c9e01,_0x4ee834,_0x1a1678)=>{const _0x2f9869=_0x4ee834['markerName']['split'](':')[0x1],_0x45743e=_0x381b9e['_getChangeFromId'](_0x2f9869);if(!_0x45743e)return null;const _0x14756a='add'==_0x45743e['type']?'split':'merge';if(!_0x1a1678['consumable']['test'](_0x4ee834['markerRange'],_0x4c9e01['name']))return;const _0x1965ad=_0x4ee834['markerRange']['getWalker'](),_0x493347=_0x4ee834['markerRange']['start'],_0x1da131=_0x4e592d['model']['schema'];let _0x373a6f=null,_0x516709=null,_0xb456ef=!0x1,_0x151b7e=!0x1;for(const _0xd943dc of _0x1965ad){const _0x50c7c5=_0xd943dc['item'];_0xb456ef=_0xb456ef||_0x1da131['isContent'](_0x50c7c5);const _0xdaefdd=_0x1a1678['mapper']['toViewElement'](_0x50c7c5);if(_0xdaefdd&&_0xdaefdd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd943dc['type']&&(_0x1da131['isBlock'](_0x50c7c5)&&!_0x1da131['isLimit'](_0x50c7c5)&&(_0x50c7c5['nextSibling']||_0x493347['isAtEnd']?_0x373a6f&&_0x373a6f['parent']==_0x50c7c5||(_0x373a6f=_0x50c7c5,_0x3f6883(_0xd943dc['previousPosition']),_0x151b7e=!0x0):_0x516709=_0x516709||_0xd943dc['previousPosition']));}function _0x3f6883(_0x17d1fa){const _0x5f2866=_0x1a1678['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14756a}),_0x501e89=_0x1a1678['mapper']['toViewPosition'](_0x17d1fa);_0x45743e['data']['isSuggestion']&&_0x1a1678['writer']['addClass']('ck-suggestion-marker-'+_0x14756a+'-new',_0x5f2866),_0x381b9e['activeChange']==_0x45743e&&_0x1a1678['writer']['addClass']('ck-suggestion-marker--active',_0x5f2866),_0x1a1678['writer']['insert'](_0x501e89,_0x5f2866),_0x1a1678['mapper']['bindElementToMarker'](_0x5f2866,_0x4ee834['markerName']);}_0xb456ef||_0x151b7e||!_0x516709||_0x3f6883(_0x516709);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x447b0b,_0x5f1406,_0x1dab7d)=>{const _0x15faa7=_0x1dab7d['mapper']['markerNameToElements'](_0x5f1406['markerName']);if(_0x15faa7){for(const _0x48dab1 of _0x15faa7)(_0x48dab1['hasClass']('ck-suggestion-marker-split')||_0x48dab1['hasClass']('ck-suggestion-marker-merge'))&&(_0x1dab7d['mapper']['unbindElementFromMarkerName'](_0x48dab1,_0x5f1406['markerName']),_0x1dab7d['writer']['remove'](_0x48dab1));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1a16eb,_0x13d0ba,_0x5b3291)=>{const _0x46789a=_0x13d0ba['markerName']['split'](':')[0x1],_0x797306=this['_getChangeFromId'](_0x46789a);if(!_0x797306)return null;const _0x54e0e0='add'==_0x797306['type']?'split':'merge';if(_0x5b3291['consumable']['test'](_0x13d0ba['markerRange'],_0x1a16eb['name']))for(const _0x1fe8cf of _0x13d0ba['markerRange']['getItems']()){if(!_0x1fe8cf['is']('element','softBreak'))continue;const _0x20356b=_0x5b3291['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54e0e0}),_0x5b5551=_0x5b3291['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1fe8cf));_0x797306['data']['isSuggestion']&&_0x5b3291['writer']['addClass']('ck-suggestion-marker-'+_0x54e0e0+'-new',_0x20356b),this['activeChange']==_0x797306&&_0x5b3291['writer']['addClass']('ck-suggestion-marker--active',_0x20356b),_0x5b3291['writer']['insert'](_0x5b5551,_0x20356b),_0x5b3291['mapper']['bindElementToMarker'](_0x20356b,_0x13d0ba['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4c8fc1=>{for(const _0x3e8626 of this['editor']['model']['document']['getRootNames']()){const _0xc1b30=this['editor']['model']['document']['getRoot'](_0x3e8626),_0x51a44a=this['editor']['editing']['view']['document']['getRoot'](_0x3e8626);if(_0x51a44a){const _0x508343=_0xc1b30['getAttribute']('revisionHistoryAttachChange');if(_0x4c8fc1['removeAttribute']('data-change-id',_0x51a44a),_0x4c8fc1['removeClass']('ck-revision-history-root-add',_0x51a44a),_0x4c8fc1['removeClass']('ck-revision-history-root-remove',_0x51a44a),_0x4c8fc1['removeClass']('ck-revision-history-root--active',_0x51a44a),_0x508343){const _0x387a58=this['_getChangeFromId'](_0x508343);if(!_0x387a58)return null;_0x4c8fc1['setAttribute']('data-change-id',_0x508343,_0x51a44a),_0x4c8fc1['addClass']('ck-revision-history-root-'+_0x387a58['type'],_0x51a44a),this['activeChange']==_0x387a58&&_0x4c8fc1['addClass']('ck-revision-history-root--active',_0x51a44a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1004c1=>'revision-comment:'+_0x1004c1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x17153a=>'revision-suggestion:'+_0x17153a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x127be0=>({'name':'suggestion:'+_0x127be0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3b7489=>{const _0x48c88f=_0x3b7489['markerName']['split'](':')[0x1];return'insertion'!=_0x48c88f&&'deletion'!=_0x48c88f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x48c88f]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x519e66,_0x4b8975,_0x56a366)=>{const _0x59207f=_0x56a366['mapper']['markerNameToElements'](_0x4b8975['markerName']);if(_0x59207f){for(const _0x53fca3 of _0x59207f)_0x53fca3['is']('uiElement')&&(_0x56a366['mapper']['unbindElementFromMarkerName'](_0x53fca3,_0x4b8975['markerName']),_0x56a366['writer']['remove'](_0x53fca3));}},{'priority':'high'});}['_getChangeFromId'](_0x421e74){return this['_changeIdToChange']['get'](_0x421e74);}['_getViewForChange'](_0x12a39d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x12a39d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x13ee28,_0x46891a,_0x497792,_0xdcc80e)=>{_0xdcc80e&&this['_balloon']['remove'](_0xdcc80e),_0x497792&&(this['_balloon']['add']({'view':_0x497792,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5de825=this['editor']['editing'],_0x39ceba=this['_getChangeFromId'](_0x497792['changeId']);let _0x24760f;if(_0x39ceba['data']['isOnRoot']){const _0x2b851c=_0x5de825['view']['getDomRoot'](_0x39ceba['rootName']);_0x24760f=Array['from'](_0x2b851c['getClientRects']());}else{const _0x5af7f8=this['editor']['model']['markers']['get']('revision:'+_0x497792['changeId']);_0x24760f=Array['from'](_0x5de825['mapper']['markerNameToElements'](_0x5af7f8['name']))['map'](_0x3ab224=>_0x5de825['view']['domConverter']['mapViewToDom'](_0x3ab224))['map'](_0x124e18=>Array['from'](_0x124e18['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x24760f[0x0];return _0x24760f['find'](_0x30d64f=>_0x30d64f['top']-0x3<=this['_activeViewTarget']['y']&&_0x30d64f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x30d64f['left']-0x3<=this['_activeViewTarget']['x']&&_0x30d64f['right']+0x3>=this['_activeViewTarget']['x'])||_0x24760f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x57f1d1,_0x1566c1,_0x3f8ec0,_0x39a2eb)=>{this['activeView']=_0x3f8ec0?this['_getViewForChange'](_0x3f8ec0):null,this['editor']['model']['change'](()=>{const _0x8abf=this['editor']['editing'];_0x39a2eb&&(_0x39a2eb['data']['isOnRoot']?_0x8abf['view']['change'](_0xbf014d=>{_0xbf014d['removeClass']('ck-revision-history-root--active',_0x8abf['view']['document']['getRoot'](_0x39a2eb['rootName']));}):_0x8abf['reconvertMarker']('revision:'+_0x39a2eb['id'])),_0x3f8ec0&&(_0x3f8ec0['data']['isOnRoot']?_0x8abf['view']['change'](_0x2e83db=>{_0x2e83db['addClass']('ck-revision-history-root--active',_0x8abf['view']['document']['getRoot'](_0x3f8ec0['rootName']));}):_0x8abf['reconvertMarker']('revision:'+_0x3f8ec0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5c2660,_0x195108)=>{if(this['activeChange'])return;const _0x5ae04d=this['_findChangeIdFromDomTarget'](_0x195108['target']),_0x491f06=this['_changeIdToChange']['get'](_0x5ae04d);_0x491f06?(this['_activeViewTarget']={'x':_0x195108['domEvent']['x'],'y':_0x195108['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x491f06)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x539f30,_0x7fde43)=>{const _0x1f4946=this['_findChangeIdFromDomTarget'](_0x7fde43['target']),_0x3dd60f=this['_changeIdToChange']['get'](_0x1f4946);_0x3dd60f?(this['_activeViewTarget']={'x':_0x7fde43['domEvent']['x'],'y':_0x7fde43['domEvent']['y']},_0x3dd60f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3dd60f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2e4096){do{const _0x3512e3=_0x2e4096['getAttribute']('data-change-id');if(_0x3512e3)return _0x3512e3;_0x2e4096=_0x2e4096['parent'];}while(_0x2e4096);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3a592a=>{for(const _0x3a6a9c of this['editor']['model']['markers'])_0x3a592a['removeMarker'](_0x3a6a9c);});}}function Q(_0xac6705,_0x11e51d){return(_0x38dce,_0x37da2e,_0x2c7172)=>{if(!_0x2c7172['consumable']['test'](_0x37da2e['markerRange'],_0x38dce['name']))return;const _0x49c04e=_0x37da2e['markerRange']['getWalker'](),_0x120023=_0x37da2e['markerRange']['start'],_0x23c9d8=_0xac6705['model']['schema'];let _0x379c1b=null,_0x1261bd=null,_0x43c8fd=!0x1,_0x5b5743=!0x1;for(const _0x47e6a6 of _0x49c04e){const _0x227729=_0x47e6a6['item'];_0x43c8fd=_0x43c8fd||_0x23c9d8['isContent'](_0x227729);const _0x1ac3ad=_0x2c7172['mapper']['toViewElement'](_0x227729);if(_0x1ac3ad&&_0x1ac3ad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47e6a6['type']&&(_0x23c9d8['isBlock'](_0x227729)&&!_0x23c9d8['isLimit'](_0x227729)&&(_0x227729['nextSibling']||_0x120023['isAtEnd']?_0x379c1b&&_0x379c1b['parent']==_0x227729||(_0x379c1b=_0x227729,_0x4231c0(_0x47e6a6['previousPosition']),_0x5b5743=!0x0):_0x1261bd=_0x1261bd||_0x47e6a6['previousPosition']));}function _0x4231c0(_0x483310){const _0x2683a5=_0x2c7172['mapper']['toViewPosition'](_0x483310),_0x537637=_0x2c7172['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x11e51d});_0x2c7172['writer']['insert'](_0x2683a5,_0x537637),_0x2c7172['mapper']['bindElementToMarker'](_0x537637,_0x37da2e['markerName']);}_0x43c8fd||_0x5b5743||!_0x1261bd||_0x4231c0(_0x1261bd);};}class nt extends _0x53e976{constructor(_0x42614d){super(_0x42614d);const _0x1fd5d9=_0x42614d['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x1fd5d9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1fd5d9,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x47ff66=this['editor'],_0x3d151d=_0x47ff66['plugins']['get'](l),_0x486e79=_0x3d151d['isReady']?_0x3d151d['diff']['newRevisionId']:null;_0x47ff66['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x486e79);}['refresh'](){const {isReady:_0x3344a3,isEnabled:_0x119cdb,repository:_0x53a63f,diff:_0x45d131}=this['editor']['plugins']['get'](l),_0x30caf7=_0x45d131&&_0x53a63f['getLaterVisibleRevision'](_0x45d131['newRevisionId']);this['isEnabled']=_0x3344a3&&_0x119cdb&&Boolean(_0x30caf7);}}class ot extends _0x53e976{['_step'];constructor(_0x22e7cb,{direction:_0x41a144}){super(_0x22e7cb);const _0x272025=_0x22e7cb['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x41a144?0x1:-0x1,this['listenTo'](_0x272025,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x272025,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x272025,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5ceb01=this['editor'],_0x3bd1fc=_0x5ceb01['plugins']['get'](l),{isNavigationMode:_0x32d3e2,currentChangeNumber:_0xda8453}=_0x3bd1fc;let _0x3c2cd2;if(_0x3bd1fc['activeChange']=_0x32d3e2?_0x3bd1fc['diff']['changes']['get'](_0xda8453+this['_step']):_0x3bd1fc['diff']['changes']['first'],_0x3bd1fc['activeChange']['data']['isOnRoot'])_0x3c2cd2=_0x5ceb01['editing']['view']['getDomRoot'](_0x3bd1fc['activeChange']['rootName']);else{const _0xc168ae=_0x5ceb01['model']['markers']['get']('revision:'+_0x3bd1fc['activeChange']['id']);_0x3c2cd2=_0x5d23d5(_0x5ceb01['editing'],_0xc168ae);}_0x2be881({'target':_0x3c2cd2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x600804,currentChangeNumber:_0x6ee66e,numberOfChanges:_0x20f917,isReady:_0x254629,isEnabled:_0x5daccf}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x5daccf&&_0x254629&&_0x20f917)&&(!_0x600804||(0x1===this['_step']?_0x6ee66e<_0x20f917-0x1:_0x6ee66e>0x0));}}class Ri extends _0x4d7898{constructor(_0x5be6a8){super(_0x5be6a8);const _0x52d54b=this['bindTemplate'],_0x41e7a7=new _0x1b0a61(_0x5be6a8),_0x573251=new _0x1b0a61(_0x5be6a8);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x3253d9,_0x1399c1)=>_0x3253d9&&_0x1399c1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3fcdbd,_0x2001a9,_0x1934de,_0x458567)=>{if(!_0x3fcdbd)return R(_0x5be6a8,'Loading...');if(!_0x1934de)return R(_0x5be6a8,'No\x20changes');const _0x528861=R(_0x5be6a8,'NUMBER_OF_CHANGES',_0x1934de);return _0x458567?R(_0x5be6a8,'X_OF_Y_CHANGES',[_0x2001a9+0x1,_0x1934de]):_0x528861;}),_0x41e7a7['set']({'label':R(_0x5be6a8,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x124557}),_0x573251['set']({'label':R(_0x5be6a8,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2f8724}),_0x41e7a7['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x573251['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x41e7a7['on']('execute',()=>this['fire']('execute','backward')),_0x573251['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x52d54b['if']('_isStatusLabelVisible','ck-hidden',_0xe55c8c=>!_0xe55c8c)]},'children':[{'text':_0x52d54b['to']('isNavigationMode',_0x507445=>_0x507445?R(_0x5be6a8,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x5be6a8,'Total')+':\x20')}]},{'text':_0x52d54b['to']('_statusText')}]},new _0x5bb667(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x41e7a7,_0x573251]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x858dc7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x39da7c=this['editor']['editing']['view'];_0x39da7c['change'](_0x47f4bb=>{for(const _0x281e62 of _0x39da7c['document']['roots'])_0x47f4bb['addClass'](ge,_0x281e62);});}['hide'](){const _0x2e5175=this['editor']['editing']['view'];_0x2e5175['change'](_0x445bdf=>{for(const _0xc5327b of _0x2e5175['document']['roots'])_0x445bdf['removeClass'](ge,_0xc5327b);});}}class u extends _0x858dc7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x4d45c6=this['editor'],_0x392b32=_0x4d45c6['plugins']['get'](l),_0x1f907d=_0x4d45c6['plugins']['get'](ji);_0x4d45c6['ui']['componentFactory']['add']('exitToEditing',_0x370662=>{const _0x1d2979=new _0x1b0a61(_0x370662);return _0x1d2979['set']({'label':R(_0x370662,'Back\x20to\x20editing'),'icon':_0x49b94e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1d2979,'execute',()=>{_0x4d45c6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1d2979;}),_0x4d45c6['ui']['componentFactory']['add']('restoreRevision',_0x1cdfb3=>{const _0x3be4e8=new _0x1b0a61(_0x1cdfb3);return _0x3be4e8['set']({'label':R(_0x1cdfb3,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3be4e8['bind']('isEnabled')['to'](_0x4d45c6['commands']['get']('restoreRevision')),this['listenTo'](_0x3be4e8,'execute',()=>_0x4d45c6['execute']('restoreRevision')),_0x3be4e8;}),_0x4d45c6['ui']['componentFactory']['add']('changesNavigation',_0x5cd1f6=>{const _0x597cf5=new Ri(_0x5cd1f6),_0x3a212b=_0x4d45c6['commands']['get']('showPreviousChange'),_0x17709b=_0x4d45c6['commands']['get']('showNextChange');return _0x597cf5['bind']('isBackwardNavigationEnabled')['to'](_0x3a212b,'isEnabled'),_0x597cf5['bind']('isForwardNavigationEnabled')['to'](_0x17709b,'isEnabled'),_0x597cf5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x392b32),this['listenTo'](_0x597cf5,'execute',(_0x23df18,_0x4e1f4d)=>{_0x4d45c6['execute']('forward'===_0x4e1f4d?'showNextChange':'showPreviousChange');}),_0x597cf5;}),_0x1f907d['show'](),_0x392b32['on']('change:isReady',(_0x17d849,_0x167643,_0x5ee0ba)=>{_0x5ee0ba?_0x1f907d['hide']():_0x1f907d['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x45b328,_0x1633c1){super(_0x45b328,_0x1633c1);const _0xee9bd1=this['bindTemplate'];this['set']({'label':R(_0x45b328,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x45b328,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xee9bd1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x50001a=this['fieldView']['element'];this['_tooltipString']=_0x50001a['scrollWidth']>_0x50001a['clientWidth']&&_0x50001a['value']||'';}}class vi extends _0x4d7898{constructor(_0x13cf95,_0xe63be9,_0x383acd){super(_0x13cf95);const _0x5f23b1=new _0x13fce5();_0x5f23b1['set']({'content':_0x45ead2,'viewBox':'0\x200\x2011\x2010'});const _0x41071b=['ck','ck-revision-history-sidebar__revision-author'];_0x383acd&&_0x41071b['push']('ck-revision-history-sidebar__revision-author_creator');const _0xf93cc3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x13cf95,_0x383acd?'Revision\x20creator':'Revision\x20author')},'children':[_0x5f23b1,_0xe63be9['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x41071b},'children':_0xf93cc3});}}function mi(_0x5d33cf,_0x90a406){const _0x1477b9=_0x5d33cf['bindTemplate'],_0xab86ea=_0x5d33cf['locale'],_0x23eef7=_0x2842e0(_0xab86ea);_0x23eef7['panelPosition']='sw';const _0x100e29=function(_0x233f41,_0x5c7f87){const _0x1137a2=function(_0x33a02c,_0x31e2d6){const _0x4e98bb=_0x33a02c['locale'],_0x3e005b={'Compare\x20against\x20selected':R(_0x4e98bb,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4e98bb,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4e98bb,'Restore\x20this\x20revision')};return _0x31e2d6['map'](_0x3f075e=>{const _0x363bec=_0x3e005b[_0x3f075e['name']];return _0x363bec&&_0x363bec!==_0x3f075e['name']&&(_0x3f075e['name']=_0x363bec),_0x3f075e;});}(_0x233f41,_0x5c7f87),_0x2ea7d9=new _0x1d5790();for(const _0x459f90 of _0x1137a2){const _0x2bd2d6={'type':'button','model':new to({'label':_0x459f90['name'],'class':_0x459f90['class'],'withText':!0x0,'role':'menuitem','_action':_0x459f90['action']})};_0x2bd2d6['model']['bind']('isEnabled')['to'](_0x233f41,'isActionsDropdownOpen',_0x1fc848=>'function'!=typeof _0x459f90['isEnabled']||(!_0x1fc848||_0x459f90['isEnabled'](_0x233f41))),_0x2ea7d9['add'](_0x2bd2d6);}return _0x2ea7d9;}(_0x5d33cf,_0x90a406);return _0x5d33cf['bind']('isActionsDropdownOpen')['to'](_0x23eef7,'isOpen'),_0x23eef7['buttonView']['set']({'label':R(_0xab86ea,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x36531b}),_0x23eef7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1477b9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1477b9['to'](_0x1fd402=>_0x1fd402['stopPropagation']())}}),_0x23eef7['on']('execute',_0x1248d8=>{_0x5d33cf['isReady']&&'function'==typeof _0x1248d8['source']['_action']&&_0x1248d8['source']['_action'](_0x5d33cf);}),_0x2b214d(_0x23eef7,_0x100e29,{'role':'menu'}),_0x23eef7['listenTo'](_0x5d33cf,'change:isActionsDropdownOpen',(_0x59c1a7,_0xd5d800,_0x4866fd)=>{if(_0x4866fd)for(const _0x500585 of _0x23eef7['listView']['items']){const _0x2df8e0=_0x500585['children']['first'],_0x1288a9=_0x90a406['find'](_0x2549ec=>_0x2549ec['action']===_0x2df8e0['_action'])['isVisible'];_0x500585['isVisible']=void 0x0===_0x1288a9||_0x1288a9(_0x5d33cf);}}),_0x23eef7;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x321dc8,uid as _0xb1be14,Collection as _0x33b3a9,logWarning as _0x412eca,FocusTracker as _0x806e14,KeystrokeHandler as _0x3e3e0c,scrollViewportToShowTarget as _0x205784,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x10c066}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5ac5f2,set as _0x46ca65,unset as _0x3625bb,isEqual as _0x36a01b}from'es-toolkit/compat';import{Plugin as _0x261da3,PendingActions as _0x5f1105,Command as _0x316f0a,ElementApiMixin as _0x1a77d3,Editor as _0xf51de1}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x188d72,getMarkerDomElement as _0x25f5d1,ConfirmMixin as _0x3f44dc,sanitizeEditorConfig as _0xc8c43}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x25f4c4,ViewAttributeElement as _0x361753,ViewEmptyElement as _0x5c1668,ViewRawElement as _0x1c8fec,ViewUIElement as _0x132b1d,ViewDocumentFragment as _0x50fa69,ViewText as _0x42208e,ViewElement as _0x14c47e,ModelElement as _0x209ccd,ModelRange as _0x402d0e,ModelPosition as _0x27fe9e,ModelDocumentFragment as _0x2a83e1,ModelText as _0x5bf09c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x411861,IconChevronUp as _0x5c7dca,IconChevronDown as _0x902f86,IconUndo as _0x4fb0ee,IconUser as _0x18a77c,IconThreeVerticalDots as _0xed22bc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x2633a2,View as _0x39ce7d,submitHandler as _0x4566b9,LabeledFieldView as ti,createLabeledInputText as _0x5db9fb,createDropdown as _0x1d6de6,ListView as _0x3951a1,ListItemView as _0x20dd11,ButtonView as _0x1aaef3,MenuBarMenuView as _0x558487,MenuBarMenuListView as _0x5ee3e1,MenuBarMenuListItemView as _0x1e7339,MenuBarMenuListItemButtonView as _0x380dd3,ContextualBalloon as _0x1434e2,ToolbarSeparatorView as _0x50ead5,IconView as _0x1b1efb,addListToDropdown as _0x429895,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x1eac9c,StickyPanelView as _0x3a3d81,ToolbarView as _0x4d660c,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x35ab0c}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x321dc8(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x28c4c3){super(),this['id']=_0x28c4c3['id']||_0xb1be14(),this['creator']=_0x28c4c3['creator']||null,this['authors']=_0x28c4c3['authors']||[],this['diffData']=_0x28c4c3['diffData']||null,this['toVersion']=_0x28c4c3['toVersion']||0x0,this['fromVersion']=_0x28c4c3['fromVersion']||0x0,this['set']('name',_0x28c4c3['name']||''),this['set']('createdAt',_0x28c4c3['createdAt']||new Date()),this['set']('attributes',_0x28c4c3['attributes']||{});}['setName'](_0x54ee18){this['_update']({'name':_0x54ee18});}['setAttribute'](_0x11e34c,_0x1cf509){const _0x21745d=_0x5ac5f2(this['attributes']);_0x46ca65(_0x21745d,_0x11e34c,_0x1cf509),this['_update']({'attributes':_0x21745d});}['removeAttribute'](_0x1ba423){const _0x1f8fb2=_0x5ac5f2(this['attributes']);_0x3625bb(_0x1f8fb2,_0x1ba423),this['_update']({'attributes':_0x1f8fb2});}['_update'](_0x2a43be,_0x264503=!0x1){let _0x3444d0=!0x1;const _0xc4c3f9={'id':this['id']},_0x24ed30=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2b7cbd of _0x24ed30){const _0xe2a1de=_0x2a43be[_0x2b7cbd];void 0x0!==_0xe2a1de&&_0xe2a1de!==this[_0x2b7cbd]&&(this[_0x2b7cbd]=_0xe2a1de,_0xc4c3f9[_0x2b7cbd]=_0xe2a1de,_0x3444d0=!0x0);}_0x3444d0&&(_0xc4c3f9['authors']&&(_0xc4c3f9['authorsIds']=_0xc4c3f9['authors']['map'](_0x45abc7=>_0x45abc7['id']),delete _0xc4c3f9['authors']),this['fire']('_update',_0xc4c3f9,_0x264503));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1e1c53=>_0x1e1c53['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x261da3{['_revisions'];static get['requires'](){return[_0x188d72];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x471d00){super(_0x471d00),this['_revisions']=new _0x33b3a9();}['afterInit'](){!async function(_0x35efe9){const _0x34f141=_0x4d24e9([0x77,0x57,0x33,0x6e,0x37,0x6b,0x39,0x6d,0x6f,0x55,0x52,0x71,0x44,0x48,0x34,0x74,0x68,0x58,0x69,0x31,0x7a,0x70,0x5a,0x4b,0x78,0x4f,0x41,0x35,0x49,0x6c,0x54,0x6a,0x50,0x47,0x56,0x4a,0x79,0x75,0x59,0x51,0x72,0x66,0x4d,0x4c,0x53,0x65,0x67,0x63,0x36,0x30,0x76,0x4e,0x62,0x64,0x38,0x46,0x32,0x73,0x42,0x43,0x45,0x61]),_0x421039=0xeb829,_0x4b5d99=0x5228eece,_0x524290=0x522f827e^_0x4b5d99,_0x3d41b1=window[_0x4d24e9([0x44,0x61,0x74,0x65])][_0x4d24e9([0x6e,0x6f,0x77])](),_0x5de1d2=_0x35efe9[_0x4d24e9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fca90=new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dfa5f=>{_0x5de1d2[_0x4d24e9([0x6f,0x6e,0x63,0x65])](_0x4d24e9([0x72,0x65,0x61,0x64,0x79]),_0x1dfa5f);}),_0x104ab5={[_0x4d24e9([0x6b,0x74,0x79])]:_0x4d24e9([0x45,0x43]),[_0x4d24e9([0x75,0x73,0x65])]:_0x4d24e9([0x73,0x69,0x67]),[_0x4d24e9([0x63,0x72,0x76])]:_0x4d24e9([0x50,0x2d,0x32,0x35,0x36]),[_0x4d24e9([0x78])]:_0x4d24e9([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4d24e9([0x79])]:_0x4d24e9([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4d24e9([0x61,0x6c,0x67])]:_0x4d24e9([0x45,0x53,0x32,0x35,0x36])},_0x3c938b=_0x5de1d2[_0x4d24e9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d24e9([0x67,0x65,0x74])](_0x4d24e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x409bc1(){let _0x1d3c40,_0x406198=null,_0x3f6a7a=null;try{if(_0x3c938b==_0x4d24e9([0x47,0x50,0x4c]))return _0x4d24e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d3c40=_0x13ecfe(),!_0x1d3c40)return _0x4d24e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d3c40[_0x4d24e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f6a7a=_0x125f9e(_0x1d3c40[_0x4d24e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d3c40[_0x4d24e9([0x6a,0x74,0x69])])),await _0xf840da()?_0x23360a()?_0x374935()?_0x4d24e9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ceff4()?(_0x1d3c40[_0x4d24e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d24e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x406198=_0x21a573(_0x4d24e9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d3c40[_0x4d24e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d24e9([0x74,0x72,0x69,0x61,0x6c])&&(_0x406198=_0x21a573(_0x4d24e9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5498ff()):_0x4d24e9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d24e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d24e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4d24e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x374935(){const _0x3af5a5=[_0x4d24e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d24e9([0x74,0x72,0x69,0x61,0x6c])][_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d3c40[_0x4d24e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d41b1/0x3e8:0xe10*_0x524290;return _0x1d3c40[_0x4d24e9([0x65,0x78,0x70])]<_0x3af5a5;}function _0x23360a(){const _0x297f3a=_0x1d3c40[_0x4d24e9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x297f3a)return!0x1;if(_0x297f3a[_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d24e9([0x2a])))return!0x0;if(_0x297f3a[_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d24e9([0x52,0x48])))return!0x0;if(_0x297f3a[_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d24e9([0x52,0x52,0x48]))){if(_0x1bbc98())return!0x0;if(_0xf2333d()||_0x1f1734())return!0x0;}return!0x1;}function _0x2ceff4(){const _0xe380e8=_0x1d3c40[_0x4d24e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe380e8||0x0==_0xe380e8[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25ff24}=new URL(window[_0x4d24e9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe380e8[_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25ff24))return!0x0;const _0x3c97f4=_0x25ff24[_0x4d24e9([0x73,0x70,0x6c,0x69,0x74])](_0x4d24e9([0x2e]));return _0xe380e8[_0x4d24e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2eb17a=>_0x2eb17a[_0x4d24e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d24e9([0x2a])))[_0x4d24e9([0x6d,0x61,0x70])](_0x452af7=>_0x452af7[_0x4d24e9([0x73,0x70,0x6c,0x69,0x74])](_0x4d24e9([0x2e])))[_0x4d24e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x287260=>_0x287260[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c97f4[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d24e9([0x6d,0x61,0x70])](_0x559588=>Array(_0x3c97f4[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x559588[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4d24e9([0x66,0x69,0x6c,0x6c])](_0x559588[0x0]===_0x4d24e9([0x2a])?_0x4d24e9([0x2a]):'')[_0x4d24e9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x559588))[_0x4d24e9([0x73,0x6f,0x6d,0x65])](_0x43e2cd=>_0x3c97f4[_0x4d24e9([0x65,0x76,0x65,0x72,0x79])]((_0x225011,_0x946b5c)=>_0x43e2cd[_0x946b5c]===_0x225011||_0x43e2cd[_0x946b5c]===_0x4d24e9([0x2a])));}function _0x5498ff(){return _0x406198&&_0x3f6a7a?new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3867c4,_0x1223db)=>{_0x406198[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x3867c4,_0x1223db),_0x3f6a7a[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x1090aa=>{_0x1090aa!=_0x4d24e9([0x56,0x61,0x6c,0x69,0x64])&&_0x3867c4(_0x1090aa);},_0x1223db);}):_0x406198||_0x3f6a7a||_0x4d24e9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x125f9e(_0x4648c3,_0x37647d){return new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x237c5b=>{if(_0x44a720())return _0x237c5b(_0x4d24e9([0x56,0x61,0x6c,0x69,0x64]));_0x4b3557(),_0x5de1d2[_0x4d24e9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d24e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a4ca8=!0x1;const _0x3d89ec=_0xb1be14();function _0x1ece52(_0x4e300c){return!!_0x4e300c&&(typeof _0x4e300c===_0x4d24e9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e300c===_0x4d24e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e300c[_0x4d24e9([0x74,0x68,0x65,0x6e])]===_0x4d24e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e300c[_0x4d24e9([0x63,0x61,0x74,0x63,0x68])]===_0x4d24e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a47b1(_0x5c6e90){_0x4284e3(_0x5c6e90)[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x3efe38=>{if(!_0x3efe38||_0x3efe38[_0x4d24e9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d24e9([0x6f,0x6b]))return _0x4d24e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b2076(_0x182a3d(_0x3d89ec+_0x37647d))!=_0x3efe38[_0x4d24e9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d24e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d24e9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x335cba=>(_0x8ad06a(),_0x335cba),()=>{const _0x5ed794=_0x41d170();return null==_0x5ed794?(_0x8ad06a(),_0x4d24e9([0x56,0x61,0x6c,0x69,0x64])):_0x4d24e9(_0x3d41b1-_0x5ed794>(0x76246ace^_0x4b5d99)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x237c5b)[_0x4d24e9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x237c5b(_0x4d24e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d9e6a=0x521e004e^_0x4b5d99;function _0x8ad06a(){const _0x290bb7=_0x4d24e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b2076(_0x182a3d(_0x4648c3)),_0x1b21eb=_0x4513d3(_0x5b2076(window[_0x4d24e9([0x4d,0x61,0x74,0x68])][_0x4d24e9([0x63,0x65,0x69,0x6c])](_0x3d41b1/_0x4d9e6a)));window[_0x4d24e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d24e9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x290bb7,_0x1b21eb);}function _0x41d170(){const _0x48a2dd=_0x4d24e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b2076(_0x182a3d(_0x4648c3)),_0x2feec5=window[_0x4d24e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d24e9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48a2dd);return _0x2feec5?window[_0x4d24e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4513d3(_0x2feec5),0x10)*_0x4d9e6a:null;}function _0x4284e3(_0x1c656c){return new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bf9b8,_0x2e7813)=>{_0x1c656c[_0x4d24e9([0x74,0x68,0x65,0x6e])](_0x5bf9b8,_0x2e7813),window[_0x4d24e9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2e7813,0x52293a0e^_0x4b5d99);});}}_0x5de1d2[_0x4d24e9([0x6f,0x6e])](_0x4d24e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a20c7,_0x3c0cb5)=>{if(_0x3c0cb5[0x0]!=_0x4648c3)return _0x237c5b(_0x4d24e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c0cb5[0x1]={..._0x3c0cb5[0x1],[_0x4d24e9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d89ec};},{[_0x4d24e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d24e9([0x68,0x69,0x67,0x68])}),_0x5de1d2[_0x4d24e9([0x6f,0x6e])](_0x4d24e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1bc1fb=>{_0x1ece52(_0x1bc1fb[_0x4d24e9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a4ca8=!0x0,_0x2a47b1(_0x1bc1fb[_0x4d24e9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d24e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d24e9([0x6c,0x6f,0x77])}),_0x3fca90[_0x4d24e9([0x74,0x68,0x65,0x6e])](()=>{_0x4a4ca8||_0x237c5b(_0x4d24e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44a720(){return _0x5de1d2[_0x4d24e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d24e9([0x76,0x69,0x65,0x77])][_0x4d24e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d24e9([0x61,0x75,0x74,0x6f]);}function _0x4b3557(){_0x5de1d2[_0x4d24e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d24e9([0x76,0x69,0x65,0x77])][_0x4d24e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d24e9([0x61,0x75,0x74,0x6f]);}}function _0x21a573(_0x2b0013){const _0x5881fd=[new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3858f7=>setTimeout(_0x3858f7,0x5221d002^_0x4b5d99)),_0x3fca90[_0x4d24e9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b8c6=>{const _0x1f422b=0x5228eec9^_0x4b5d99,_0x2527da=_0x35efe9[_0x4d24e9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3b5426(){_0x2527da[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1f422b&&_0x11b8c6();}_0x3b5426(),_0x2527da[_0x4d24e9([0x6f,0x6e])](_0x4d24e9([0x61,0x64,0x64]),_0x3b5426);})),new window[(_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54b1f9=>{function _0x1385a2(){for(const _0x5f3369 in window)if(window[_0x4d24e9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4d24e9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5f3369))&&window[_0x5f3369]==_0x421039)return _0x54b1f9();_0x5de1d2[_0x4d24e9([0x73,0x74,0x61,0x74,0x65])]!=_0x4d24e9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4d24e9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1385a2,0x5228fd46^_0x4b5d99);}_0x3b24fb(_0x4d24e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1385a2();})];return window[_0x4d24e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d24e9([0x72,0x61,0x63,0x65])](_0x5881fd)[_0x4d24e9([0x74,0x68,0x65,0x6e])](()=>_0x2b0013);}async function _0x21b060(){if(await _0x3fca90,_0x3b24fb(_0x4d24e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2f7db7=_0x35efe9[_0x4d24e9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x209e47=_0x35efe9[_0x4d24e9([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x2f7db7[_0x4d24e9([0x69,0x64])]),_0x3be427=_0x24a998(_0x4d24e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3be427[_0x4d24e9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2f7db7['id'],_0x209e47?_0x209e47['id']:null,!0x0),_0x3be427[_0x4d24e9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d24e9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3be427[_0x4d24e9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3be427[_0x4d24e9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x15c034,void(_0x3be427[_0x4d24e9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x15c034);}if(_0x3b24fb(_0x4d24e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x390cae=_0x24a998(_0x4d24e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x390cae[_0x4d24e9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d24e9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x390cae[_0x4d24e9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x390cae[_0x4d24e9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x15c034,_0x390cae[_0x4d24e9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x15c034;}_0x5de1d2[_0x4d24e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d24e9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15c034,_0x5de1d2[_0x4d24e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d24e9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15c034,_0x5de1d2[_0x4d24e9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d24e9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1bbc98(){return _0x3b24fb(_0x4d24e9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x24a998(_0x4d24e9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d24e9([0x73,0x74,0x61,0x74,0x65])]==_0x4d24e9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xf2333d(){return _0x3b24fb(_0x4d24e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1f1734(){return _0x3b24fb(_0x4d24e9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x74100f(_0x4f5299){const _0x2f651f=_0x4a935b();_0x5de1d2[_0x2f651f]=_0x4d24e9([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f5299,_0x4f5299[_0x4d24e9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4d24e9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4a935b()]=_0x421039),_0x4f5299!=_0x4d24e9([0x56,0x61,0x6c,0x69,0x64])&&_0x21b060();}function _0x4a935b(){const _0x4a016b=window[_0x4d24e9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d24e9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d24e9([0x6e,0x6f,0x77])]())[_0x4d24e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d24e9([0x2e]),'');let _0x41ba4b=_0x4d24e9([0x77]);for(let _0x3407d9=0x0;_0x3407d9<_0x4a016b[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3407d9+=0x2){let _0x1fd70a=window[_0x4d24e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a016b[_0x4d24e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3407d9,_0x3407d9+0x2));_0x1fd70a>=_0x34f141[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1fd70a-=_0x34f141[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41ba4b+=_0x34f141[_0x1fd70a];}return _0x41ba4b;}function _0x13ecfe(){const _0x558eba=_0x3c938b[_0x4d24e9([0x73,0x70,0x6c,0x69,0x74])](_0x4d24e9([0x2e]));if(0x3!=_0x558eba[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x401f7f(_0x558eba[0x1]);function _0x401f7f(_0xb5879e){const _0x1f53a2=_0xae5fbe(_0xb5879e);return _0x1f53a2&&_0x25e143()?_0x1f53a2:null;function _0x25e143(){const _0x3ef642=_0x1f53a2[_0x4d24e9([0x6a,0x74,0x69])],_0xcf4127=window[_0x4d24e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ef642[_0x4d24e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ef642[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2126f5={..._0x1f53a2,[_0x4d24e9([0x6a,0x74,0x69])]:_0x3ef642[_0x4d24e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ef642[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2126f5[_0x4d24e9([0x76,0x63])],_0x182a3d(_0x2126f5)==_0xcf4127;}}}async function _0xf840da(){let _0x2f2b30=!0x0;try{const _0x26e23d=_0x3c938b[_0x4d24e9([0x73,0x70,0x6c,0x69,0x74])](_0x4d24e9([0x2e])),[_0x2963fd,_0x27503a,_0x4f7bea]=_0x26e23d;return _0x4147b9(_0x2963fd),await _0x15b71d(_0x2963fd,_0x27503a,_0x4f7bea),_0x2f2b30;}catch{return!0x1;}function _0x4147b9(_0x578c4e){const _0x514479=_0xae5fbe(_0x578c4e);_0x514479&&_0x514479[_0x4d24e9([0x61,0x6c,0x67])]==_0x4d24e9([0x45,0x53,0x32,0x35,0x36])||(_0x2f2b30=!0x1);}async function _0x15b71d(_0x5b3c9f,_0x592769,_0x3f8403){const _0x2e41b7=window[_0x4d24e9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d24e9([0x66,0x72,0x6f,0x6d])](_0x48120b(_0x3f8403),_0x39a3b7=>_0x39a3b7[_0x4d24e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c1b60=new window[(_0x4d24e9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d24e9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b3c9f+_0x4d24e9([0x2e])+_0x592769),_0x524847=window[_0x4d24e9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d24e9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x524847)return;const _0x35011e=await _0x524847[_0x4d24e9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d24e9([0x6a,0x77,0x6b]),_0x104ab5,{[_0x4d24e9([0x6e,0x61,0x6d,0x65])]:_0x4d24e9([0x45,0x43,0x44,0x53,0x41]),[_0x4d24e9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d24e9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d24e9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x524847[_0x4d24e9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d24e9([0x6e,0x61,0x6d,0x65])]:_0x4d24e9([0x45,0x43,0x44,0x53,0x41]),[_0x4d24e9([0x68,0x61,0x73,0x68])]:{[_0x4d24e9([0x6e,0x61,0x6d,0x65])]:_0x4d24e9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35011e,_0x2e41b7,_0x4c1b60)||(_0x2f2b30=!0x1);}}function _0xae5fbe(_0x5e9266){return _0x5e9266[_0x4d24e9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d24e9([0x65,0x79]))?JSON[_0x4d24e9([0x70,0x61,0x72,0x73,0x65])](_0x48120b(_0x5e9266)):null;}function _0x48120b(_0x144e97){return window[_0x4d24e9([0x61,0x74,0x6f,0x62])](_0x144e97[_0x4d24e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d24e9([0x2b]))[_0x4d24e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d24e9([0x2f])));}function _0x182a3d(_0x5c2526){let _0x46fb41=0x1505;function _0x27b737(_0x5f0033){for(let _0x1958ea=0x0;_0x1958ea<_0x5f0033[_0x4d24e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1958ea++){const _0x136b04=_0x5f0033[_0x4d24e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1958ea);_0x46fb41=(_0x46fb41<<0x5)+_0x46fb41+_0x136b04,_0x46fb41&=_0x46fb41;}}function _0x15fafa(_0x159c68){Array[_0x4d24e9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x159c68)?_0x159c68[_0x4d24e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15fafa):_0x159c68&&typeof _0x159c68==_0x4d24e9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d24e9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x159c68)[_0x4d24e9([0x73,0x6f,0x72,0x74])]()[_0x4d24e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ff928,_0x28ae9b])=>{_0x27b737(_0x4ff928),_0x15fafa(_0x28ae9b);}):_0x27b737(window[_0x4d24e9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x159c68));}return _0x15fafa(_0x5c2526),_0x46fb41>>>0x0;}function _0x5b2076(_0x378655){return _0x378655[_0x4d24e9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d24e9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d24e9([0x30]));}function _0x4513d3(_0x5c8080){return _0x5c8080[_0x4d24e9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d24e9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d24e9([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b24fb(_0x5683be){return _0x5de1d2[_0x4d24e9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d24e9([0x68,0x61,0x73])](_0x5683be);}function _0x24a998(_0x375d36){return _0x5de1d2[_0x4d24e9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d24e9([0x67,0x65,0x74])](_0x375d36);}function _0x15c034(){}function _0x4d24e9(_0x4e453e){return _0x4e453e['map'](_0x36391c=>String['fromCharCode'](_0x36391c))['join']('');}_0x74100f(await _0x409bc1());}(this);}['createRevision'](_0x391779){const _0x5aca2a=this['editor']['plugins']['get']('Users');return new I({'id':_0x391779['id'],'name':_0x391779['name'],'creator':_0x391779['creatorId']?_0x5aca2a['getUser'](_0x391779['creatorId']):null,'diffData':_0x391779['diffData']||_0x391779['data'],'authors':_0x391779['authorsIds']['map'](_0x30a246=>_0x5aca2a['getUser'](_0x30a246)),'createdAt':new Date(_0x391779['createdAt']),'attributes':_0x391779['attributes'],'fromVersion':_0x391779['fromVersion'],'toVersion':_0x391779['toVersion']});}['addRevision'](_0x35d30b,_0x49b330=0x0){this['_revisions']['add'](_0x35d30b,_0x49b330);}['getRevision'](_0x4fbefb){return this['_revisions']['get'](_0x4fbefb);}['getRevisions'](_0x11f8e3={'toJSON':!0x1}){const _0x326792=Array['from'](this['_revisions']);return _0x326792['reverse'](),_0x11f8e3['toJSON']?_0x326792['map'](_0x339621=>_0x339621['toJSON']()):_0x326792;}['getIndex'](_0x62c637){return this['_revisions']['getIndex'](_0x62c637);}['getEarlierVisibleRevision'](_0xd6147a){const [,_0x55b925]=this['getRevisionsIterator'](_0xd6147a,{'direction':'earlier'});return _0x55b925;}['getLaterVisibleRevision'](_0x23fe54){const [,_0x47136b]=this['getRevisionsIterator'](_0x23fe54,{'direction':'later'});return _0x47136b;}['getRevisionsInDiff'](_0x23fa54){const _0x2a98c6=[];for(const _0x7fdd96 of this['getRevisionsIterator'](_0x23fa54['newRevisionId']))if(_0x2a98c6['push'](_0x7fdd96),_0x7fdd96['id']===_0x23fa54['oldRevisionId'])break;return _0x2a98c6;}*['getRevisionsIterator'](_0x504465,{direction:_0x3afa15='earlier',filter:_0x3f8a07=()=>!0x0}={}){const _0x4865c1='earlier'===_0x3afa15?0x1:-0x1;let _0x3b9a66=this['_revisions']['get'](_0x504465),_0x14cdb4=this['getIndex'](_0x3b9a66);for(yield _0x3b9a66;_0x3b9a66;){if(_0x14cdb4+=_0x4865c1,_0x3b9a66=this['getRevision'](_0x14cdb4),!_0x3b9a66)return;_0x3f8a07(_0x3b9a66)&&(yield _0x3b9a66);}}}class $ extends _0x261da3{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x25f4c4,'c'],[_0x361753,'a'],[_0x5c1668,'e'],[_0x1c8fec,'r'],[_0x132b1d,'u']]);['_typeCharToViewClass']=new Map([['c',_0x25f4c4],['a',_0x361753],['e',_0x5c1668],['r',_0x1c8fec],['u',_0x132b1d]]);async['loadRevisionData'](_0x4ef22c,_0x328be6){if(_0x4ef22c['diffData']||!_0x328be6)return;const _0x4141db=this['editor']['config']['get']('collaboration.channelId'),_0x2ae24b=await _0x328be6['getRevision']({'channelId':_0x4141db,'revisionId':_0x4ef22c['id']});_0x4ef22c['diffData']=_0x2ae24b['diffData'];}['getRevisionDocumentData'](_0x2bd249){const _0x21d1ec={};for(const _0x4b2ca4 in _0x2bd249['diffData']){if(_0x2bd249['diffData'][_0x4b2ca4]['attachChange']&&!_0x2bd249['diffData'][_0x4b2ca4]['attachChange']['isAttached'])continue;const _0x1511dd=this['_removeRevisionMarkers'](JSON['parse'](_0x2bd249['diffData'][_0x4b2ca4]['insertions'])),_0x2ee071=this['editor']['editing']['view']['document'],_0x2eae04=new _0x50fa69(_0x2ee071,_0x1511dd['map'](_0x10eb52=>this['_getViewFromDiffObj'](_0x10eb52,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x21d1ec[_0x4b2ca4]=this['editor']['data']['processor']['toData'](_0x2eae04),this['editor']['data']['processor']['useFillerType']('default');}return _0x21d1ec;}['getRevisionRootsAttributes'](_0x36534c){const _0x930812={};for(const _0x2e3c1a in _0x36534c['diffData'])_0x36534c['diffData'][_0x2e3c1a]['attachChange']&&!_0x36534c['diffData'][_0x2e3c1a]['attachChange']['isAttached']||(_0x930812[_0x2e3c1a]=_0x36534c['diffData'][_0x2e3c1a]['attributesAfter']||{});return _0x930812;}['_getTypeCharForViewElement'](_0x17a751){return this['_viewClassToTypeChar']['get'](_0x17a751['constructor']);}['_getViewFromDiffObj'](_0x37fe61,_0x39ec48){const _0x47b13f=this['editor']['editing']['view']['document'];if('string'==typeof _0x37fe61)return new _0x42208e(_0x47b13f,_0x37fe61);{let _0x2b4d03,_0x41dcaf;_0x41dcaf='u'==_0x37fe61['type']||'r'==_0x37fe61['type']?[]:_0x37fe61['children']['map'](_0x4eba8f=>this['_getViewFromDiffObj'](_0x4eba8f,_0x39ec48));const _0x2456f4=this['_typeCharToViewClass']['get'](_0x37fe61['type'])||_0x14c47e,_0x9a9b34=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2b4d03=new _0x2456f4(_0x47b13f,_0x37fe61['name'],_0x37fe61['attributes'],_0x41dcaf),'u'==_0x37fe61['type']&&_0x37fe61['children'][0x0]){const _0x4aa958=_0x37fe61['children'][0x0];if(_0x2b4d03['render']=function(_0x521d82){const _0x1a67f5=_0x521d82['createElement']('div');return _0x1a67f5['innerHTML']=_0x4aa958,_0x1a67f5['childNodes'][0x0];},_0x39ec48){const _0x39f606=new _0x50fa69(_0x47b13f);_0x39f606['_appendChild'](_0x2b4d03);const _0x10c22e=Array['from'](_0x9a9b34['viewChildrenToDom'](_0x39f606,{'bind':!0x1})),_0x7c151b=_0x9a9b34['domDocument']['createElement']('div');_0x7c151b['append'](..._0x10c22e),_0x2b4d03=Array['from'](_0x9a9b34['domChildrenToView'](_0x7c151b))[0x0];}}else{if('r'==_0x37fe61['type']&&_0x37fe61['children'][0x0]){const _0x1dbd62=_0x37fe61['children'][0x0];if(_0x2b4d03['render']=function(_0x595717){_0x595717['innerHTML']=_0x1dbd62;},_0x39ec48){const _0x99a7ca=new _0x50fa69(_0x47b13f);_0x99a7ca['_appendChild'](_0x2b4d03);const _0x2d94b7=Array['from'](_0x9a9b34['viewChildrenToDom'](_0x99a7ca,{'bind':!0x1})),_0x2ad229=_0x9a9b34['domDocument']['createElement']('div');_0x2ad229['append'](..._0x2d94b7);const _0x24abbd=Array['from'](_0x9a9b34['domChildrenToView'](_0x2ad229));_0x24abbd['length']>0x1?_0x2b4d03['_appendChild'](_0x24abbd):_0x2b4d03=_0x24abbd[0x0];}}}if(_0x37fe61['customProperties']){for(const [_0xd941b,_0x14d657]of _0x37fe61['customProperties'])_0x2b4d03['_setCustomProperty'](_0xd941b,_0x14d657);}const _0x59315d=void 0x0===_0x37fe61['fillerOffset']?null:_0x37fe61['fillerOffset'];return null!==_0x59315d&&(_0x2b4d03['getFillerOffset']=()=>_0x59315d),_0x2b4d03;}}['_makeModelFromViewString'](_0xcedbe9){const _0x213bee=JSON['parse'](_0xcedbe9),_0x27201d=this['editor']['editing']['view']['document'],_0x135ddd=new _0x50fa69(_0x27201d,_0x213bee['map'](_0x19b66d=>this['_getViewFromDiffObj'](_0x19b66d,!0x0)));return this['editor']['data']['toModel'](_0x135ddd);}['_removeRevisionMarkers'](_0x480a5c){return(_0x480a5c=_0x480a5c['filter'](_0x5295c6=>!_0x5295c6['name']||'revision-start'!==_0x5295c6['name']&&'revision-end'!==_0x5295c6['name']))['forEach'](_0x3e95ea=>{'string'!=typeof _0x3e95ea&&(_0x3e95ea['children']=this['_removeRevisionMarkers'](_0x3e95ea['children']),_0x3e95ea['attributes']=_0x3e95ea['attributes']['filter'](_0x6465ed=>!_0x6465ed[0x0]['startsWith']('data-revision-')));}),_0x480a5c;}}function R(_0x25f0a9,_0x50a0d2,_0xe5fe5b){const t=_0x25f0a9['t'];switch(_0x50a0d2){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0xe5fe5b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xe5fe5b);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x261da3{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x188d72,S,$,_0x5f1105];}constructor(_0xcc4679){super(_0xcc4679),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5d8f2b=_0xb1be14();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5d8f2b},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2773ed=this['repository']['getRevision'](0x0),_0x35f9b7=_0x2773ed&&null===_0x2773ed['creator']?_0x2773ed:null;if(this['_continueCurrentRevision']=!!_0x35f9b7&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x18a399=this['_source']['getCurrentRevisionId'](),_0x1ea56c=this['repository']['getRevision'](_0x18a399);if(_0x1ea56c)this['_startingVersion']=_0x1ea56c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x362b75=this['_source']['history']['_operations']['find'](_0x29749a=>!_0x29749a['_isInit']),_0x4d3458=_0x362b75?_0x362b75['baseVersion']:this['_source']['history']['version'];_0x2773ed?(_0x2773ed['toVersion']<_0x4d3458&&_0x2773ed['_update']({'toVersion':_0x4d3458}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x35f9b7['id'],this['_startingVersion']=_0x35f9b7['fromVersion']):(this['_startingVersion']=_0x2773ed['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4d3458,this['_continueCurrentRevision']=!0x1);}}else _0x35f9b7&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x35f9b7['toVersion'],this['editor']['model']['document']['history']['version']),_0x35f9b7['fromVersion']===_0x35f9b7['toVersion']?(0x0!==_0x35f9b7['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x35f9b7['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x35f9b7['id'],this['_startingVersion']=_0x35f9b7['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x2753a9=>!_0x2753a9),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xcbe4ba=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x267d07;for(const _0x45e465 in _0xcbe4ba){const _0x2957d8=_0x45e465,_0xd30136=_0xcbe4ba[_0x2957d8];if('revisionHistoryLicenseKeyValid'==_0xd30136||'revisionHistoryLicenseKeyInvalid'==_0xd30136||'revisionHistoryLicenseKeyExpired'==_0xd30136||'revisionHistoryLicenseKeyDomainLimit'==_0xd30136||'revisionHistoryLicenseKeyNotAllowed'==_0xd30136||'revisionHistoryLicenseKeyEvaluationLimit'==_0xd30136||'revisionHistoryLicenseKeyTrialLimit'==_0xd30136||'revisionHistoryLicenseKeyUsageLimit'==_0xd30136){delete _0xcbe4ba[_0x2957d8],_0x267d07=_0xd30136,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x267d07&&_0xcbe4ba['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x267d07&&_0xcbe4ba['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x267d07&&_0xcbe4ba['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x267d07&&_0xcbe4ba['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x267d07&&_0xcbe4ba['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x267d07&&_0xcbe4ba['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x267d07&&_0xcbe4ba['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3cae14=this['repository']['getRevision'](0x0),_0x2f7449=await this['getRevisionDocumentData'](_0x3cae14),_0x3a6fc2=await this['getRevisionRootsAttributes'](_0x3cae14);this['_replaceEditorDataWithRevisionData'](_0x2f7449,_0x3a6fc2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x433962){this['_source']=_0x433962;}async['update'](){const _0x37acdd=await this['_source']['getLatestVersion']();if(_0x37acdd>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3dfef3=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x37acdd});_0x3dfef3['authors']=_0x3dfef3['authorsIds']['map'](_0x6cae9c=>this['editor']['plugins']['get']('Users')['getUser'](_0x6cae9c)),this['currentRevision']['_update'](_0x3dfef3);}}async['saveRevision'](_0x6f4ff1={},_0x46063f=null){const _0x2371c9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x46063f>this['currentRevision']['toVersion']&&(_0x46063f=null),null===_0x46063f&&(_0x46063f=await this['_source']['getLatestVersion']());const _0x1a5fcc=this['_getFromVersion'](_0x46063f),_0x20ce05=this['buildRevisionData']({'from':_0x1a5fcc,'to':_0x46063f});if(this['currentRevision']['toVersion']<_0x46063f){const _0x1c3e73=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x46063f,'to':_0x46063f});_0x1c3e73['authors']=[],_0x1c3e73['authorsIds']=[],_0x1c3e73['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1c3e73,!0x0),delete _0x1c3e73['authors'],_0x2371c9['push'](_0x1c3e73);}_0x6f4ff1['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x6f4ff1['name']=_0x6f4ff1['name']||null,_0x6f4ff1['id']=_0x6f4ff1['id']||_0xb1be14(),_0x6f4ff1={..._0x6f4ff1,..._0x20ce05};const _0x5145ae=this['addRevisionData'](_0x6f4ff1);_0x2371c9['push'](_0x6f4ff1);const _0x156dfe=this['repository']['getIndex'](_0x5145ae);if(0x0!==_0x156dfe){const _0x22b21d=this['repository']['getRevision'](_0x156dfe-0x1);if(_0x22b21d['fromVersion']!==_0x46063f){const _0x1a278e=this['_revisionDataBuilder']['getData'](_0x46063f,_0x22b21d['toVersion']),_0x3480ad={'id':_0x22b21d['id'],'diffData':_0x1a278e['diffData'],'authorsIds':_0x1a278e['authorsIds'],'authors':_0x1a278e['authorsIds']['map'](_0x1f9c08=>this['editor']['plugins']['get']('Users')['getUser'](_0x1f9c08)),'fromVersion':_0x46063f};_0x22b21d===this['currentRevision']&&(_0x3480ad['createdAt']=new Date(_0x6f4ff1['createdAt']['getTime']()+0xa)),_0x22b21d['_update'](_0x3480ad,!0x0),delete _0x3480ad['authors'],_0x2371c9['push'](_0x3480ad);}}if(this['adapter']){for(const _0x864f57 of _0x2371c9)this['_bufferUpdate'](_0x864f57['id'],_0x864f57,!0x0);this['sendBufferedUpdates']();}return _0x5145ae;}['addRevisionData'](_0x107784){const _0x4ebc53=this['repository']['createRevision'](_0x107784);return this['adapter']&&_0x4ebc53['on']('_update',(_0x48bb4a,_0x591549,_0x29d0c6)=>{_0x29d0c6||(this['_bufferUpdate'](_0x591549['id'],_0x591549,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4ebc53,this['_findInsertionIndex'](_0x4ebc53)),_0x4ebc53;}async['getRevisionDocumentData'](_0x1b54e7){return await this['_utils']['loadRevisionData'](_0x1b54e7,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1b54e7);}async['getRevisionRootsAttributes'](_0x22b67d){return await this['_utils']['loadRevisionData'](_0x22b67d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x22b67d);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4b7a1d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3b6fe2=0x0;_0x3b6fe2<_0x4b7a1d['length'];_0x3b6fe2++){const _0x3b38ab=_0x4b7a1d[_0x3b6fe2];let _0x5e63cb=!0x1;for(const _0x40a0a7 of Object['keys'](_0x3b38ab))void 0x0===_0x3b38ab[_0x40a0a7]?delete _0x3b38ab[_0x40a0a7]:'id'!==_0x40a0a7&&(_0x5e63cb=!0x0);_0x5e63cb||(_0x4b7a1d[_0x3b6fe2]=null);}if(_0x4b7a1d=_0x4b7a1d['filter'](_0x2d7d01=>null!==_0x2d7d01),!_0x4b7a1d['length'])return;for(let _0x2ab450=0x0;_0x2ab450<_0x4b7a1d['length'];_0x2ab450++){const _0x2221bd=_0x4b7a1d[_0x2ab450];void 0x0!==_0x2221bd['fromVersion']&&void 0x0===_0x2221bd['toVersion']&&(_0x2221bd['toVersion']=this['repository']['getRevision'](_0x2221bd['id'])['toVersion']),void 0x0!==_0x2221bd['toVersion']&&void 0x0===_0x2221bd['fromVersion']&&(_0x2221bd['fromVersion']=this['repository']['getRevision'](_0x2221bd['id'])['fromVersion']);}const _0x354305=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4b7a1d,_0x354305)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4344b0=>{if(_0x4344b0){for(const _0x1b7c9b of _0x4344b0)this['setRevisionData']({'id':_0x1b7c9b['id'],'createdAt':_0x1b7c9b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x52d629=null,from:_0x247b20=null,to:_0x3ed70d=null}){_0x247b20=null!==_0x247b20?_0x247b20:_0x52d629['fromVersion'],_0x3ed70d=null!==_0x3ed70d?_0x3ed70d:_0x52d629['toVersion'];const _0x439eaf=this['_revisionDataBuilder']['getData'](_0x247b20,_0x3ed70d),_0xf8df9e={'diffData':_0x439eaf['diffData'],'authorsIds':_0x439eaf['authorsIds'],'fromVersion':_0x247b20,'toVersion':_0x3ed70d};if(!_0x52d629||_0x3ed70d!==_0x52d629['toVersion']){const _0x801b16=_0x3ed70d-0x1,_0x5879fe=this['_source']['history']['getOperation'](_0x801b16);_0xf8df9e['createdAt']=_0x5879fe&&_0x5879fe['createdAt']||new Date();}if(this['_loadedStateData']&&_0x247b20===this['_loadedStateData']['fromVersion']){for(const _0x37614f of this['_loadedStateData']['authors'])_0xf8df9e['authorsIds']['includes'](_0x37614f['id'])||_0xf8df9e['authorsIds']['push'](_0x37614f['id']);}return _0xf8df9e;}['_bufferUpdate'](_0xd984d7,_0x5c43f5,_0x15ada7){if(this['_bufferedUpdates']['has'](_0xd984d7)){const _0x10dbc0=this['_bufferedUpdates']['get'](_0xd984d7);_0x5c43f5=_0x15ada7?{..._0x10dbc0,..._0x5c43f5}:{..._0x5c43f5,..._0x10dbc0};}this['_bufferedUpdates']['set'](_0xd984d7,_0x5c43f5);}['setRevisionData'](_0x39a716){const _0x2f7e4c=this['repository']['getRevision'](_0x39a716['id']);if(_0x39a716['createdAt']&&(_0x39a716['createdAt']=new Date(_0x39a716['createdAt'])),_0x39a716['authorsIds']){const _0x1cd501=this['editor']['plugins']['get']('Users');_0x39a716['authors']=_0x39a716['authorsIds']['map'](_0x295919=>_0x1cd501['getUser'](_0x295919));}_0x2f7e4c['_update'](_0x39a716,!0x0);}['_createInitialRevision'](_0x110d4a){const _0x4c0729=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4c0729)this['_initialRevisionId']=_0x4c0729['id'];else{const _0x376d1a=!this['editor']['model']['document']['roots']['find'](_0x19aba7=>this['editor']['model']['hasContent'](_0x19aba7)),_0x3b6347=this['editor']['plugins']['get']('Users')['me']['id'],_0xd13b37=R(this['editor']['locale'],_0x376d1a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x110d4a,'to':_0x110d4a,'id':this['_initialRevisionId'],'name':_0xd13b37,'creatorId':_0x3b6347});}}['_createCurrentRevision'](_0x5ebb3f){const _0x5c761f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5c761f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5ebb3f,'to':_0x5ebb3f,'id':_0x5c761f,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x415fb2,_0x17feac){let _0x144f8f=this['editor']['config']['get']('initialData'),_0x2ce993=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x144f8f){_0x144f8f={};for(const _0x105a1c of this['editor']['model']['document']['getRootNames']())_0x144f8f[_0x105a1c]='';}if('string'==typeof _0x144f8f&&(_0x144f8f={'main':_0x144f8f}),void 0x0===_0x2ce993){_0x2ce993={};for(const _0x2da4a1 of this['editor']['model']['document']['getRootNames']())_0x2ce993[_0x2da4a1]={};}let _0x3aca42=!0x1;const _0x1c5599=Object['keys'](_0x144f8f),_0xe8d9db=Object['keys'](_0x415fb2);for(const _0x58228a of _0x1c5599){if(_0x144f8f[_0x58228a]!==_0x415fb2[_0x58228a]&&''!==_0x144f8f[_0x58228a]['trim']()){_0x3aca42=!0x0;break;}if(!_0x36a01b(_0x2ce993[_0x58228a],_0x17feac[_0x58228a])&&Object['keys'](_0x2ce993[_0x58228a])['length']>0x0){_0x3aca42=!0x0;break;}}_0x3aca42||(_0x3aca42=_0xe8d9db['some'](_0x52ee6e=>!this['editor']['model']['document']['getRoot'](_0x52ee6e))),_0x3aca42&&_0x412eca('editor-initial-data-replaced-with-revision-data',{'editorData':_0x144f8f,'editorRootsAttributes':_0x2ce993,'revisionData':_0x415fb2,'revisionRootsAttributes':_0x17feac}),this['editor']['config']['set']('initialData',_0x415fb2),this['editor']['config']['set']('rootsAttributes',_0x17feac);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4224fa=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4224fa['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x9d8e1d){const _0xda227d=this['repository']['getRevisions']();_0xda227d['reverse']();let _0xffad5f=0x0;for(;_0xffad5f<_0xda227d['length'];){const _0x4ffd89=_0xda227d[_0xffad5f];if(_0x4ffd89===this['currentRevision']){_0xffad5f++;continue;}if(_0x4ffd89['id']===this['_initialRevisionId'])break;const _0x259b04=_0x9d8e1d['toVersion']-_0x4ffd89['toVersion']||_0x9d8e1d['fromVersion']-_0x4ffd89['fromVersion'];if(_0x259b04>0x0)break;if(_0x259b04<0x0)_0xffad5f++;else{if(!_0x9d8e1d['creator']&&_0x4ffd89['creator'])break;if(_0x4ffd89['creator']||!_0x9d8e1d['creator']){if(_0x9d8e1d['createdAt']>_0x4ffd89['createdAt'])break;_0xffad5f++;}else _0xffad5f++;}}return _0xffad5f;}['_getFromVersion'](_0x5d734e){const _0xc1250e=this['repository']['getRevisions']();_0xc1250e['reverse'](),_0xc1250e['shift']();const _0x53ebc6=_0xc1250e['find'](_0x45e927=>_0x45e927['toVersion']<=_0x5d734e)['toVersion'];return _0x53ebc6<this['_startingVersion']?this['_startingVersion']:_0x53ebc6;}['_makeRevision']({name:_0x8490c1,from:_0x1d3cad,to:_0x133668,creatorId:_0x22794d,id:_0x413afe}){const _0x31849f=this['buildRevisionData']({'from':_0x1d3cad,'to':_0x133668});_0x31849f['name']=_0x8490c1,_0x31849f['creatorId']=_0x22794d,_0x31849f['id']=_0x413afe;const _0xdf0872=this['addRevisionData'](_0x31849f);return this['adapter']&&this['_bufferUpdate'](_0x31849f['id'],_0x31849f,!0x0),_0xdf0872;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2f7f93){this['editor']=_0x2f7f93,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x4e6d6f){this['source']=_0x4e6d6f;const _0x459495=new Map(),_0x183d74=new Map(),_0x22e189=this['editor']['model']['document']['roots']['map'](_0xc87213=>_0xc87213['rootName']);for(const _0x61e2b0 of _0x22e189){const _0x5c77e3=this['editor']['model']['document']['getRoot'](_0x61e2b0),_0x36eaef=x(_0x5c77e3);_0x459495['set'](_0x61e2b0,_0x36eaef),_0x183d74['set'](_0x61e2b0,Object['fromEntries'](_0x5c77e3['getAttributes']()));}const _0x42ac98=Array['from'](this['editor']['model']['markers'])['map'](_0x48c66e=>[_0x48c66e['name'],_0x48c66e['getRange']()]),_0x3ef7f7=this['source']['version'];this['_saveMetaData'](_0x3ef7f7,_0x459495,_0x42ac98,_0x183d74),this['_startingRevisionId']=this['_revisionId'];const _0x5165a6=new Map(),_0x12004d=new Map();for(const _0x3d5c22 of _0x22e189){const _0x30ac37=N(_0x3d5c22);_0x5165a6['set'](_0x3d5c22,_0x30ac37),_0x12004d['set'](_0x3d5c22,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5165a6,[],_0x12004d);}['getData'](_0x3cd1e5,_0x5c1e07){if(this['_lastFrom']===_0x3cd1e5&&this['_lastTo']<=_0x5c1e07)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5c1e07,!0x0);else{if(!this['_savedMetaData']['has'](_0x3cd1e5)){const _0x36389c=this['_getPreviousFrom'](_0x3cd1e5);this['_calculateMetaData'](_0x36389c,_0x3cd1e5,!0x1);}this['_calculateMetaData'](_0x3cd1e5,_0x5c1e07,!0x0);}return this['_lastFrom']=_0x3cd1e5,this['_lastTo']=_0x5c1e07,this['_getState']();}['loadState'](_0x4fe083){const _0x22ab2f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4fe083['fromVersion'],this['_lastTo']=_0x4fe083['toVersion'];for(const _0x51a759 in _0x4fe083['diffData']){const _0x234cd3=_0x4fe083['diffData'][_0x51a759]['attachChange'],_0x5c83fd=_0x5ac5f2(_0x4fe083['diffData'][_0x51a759]['attributesBefore'])||{},_0x59dd09=_0x22ab2f['_makeModelFromViewString'](_0x4fe083['diffData'][_0x51a759]['deletions']);_0x59dd09['rootName']=_0x51a759,_0x59dd09['_isAttached']=!_0x234cd3||!_0x234cd3['isAttached'],_0x59dd09['isAttached']=()=>_0x59dd09['_isAttached'],this['_baseRoots']['set'](_0x51a759,_0x59dd09),this['_baseRootsAttributes']['set'](_0x51a759,_0x5c83fd),_0x234cd3&&this['_touchedRoots']['set'](_0x51a759,_0x234cd3);const _0x6593f8=this['_makeIdsRoot'](_0x59dd09);this['_baseIdsRoots']['set'](_0x51a759,_0x6593f8);for(const [_0x41ea67,_0x59b19c]of _0x59dd09['markers']){if(!_0x41ea67['startsWith']('revision:'))continue;const _0x5aecce=_0x41ea67['split'](':')[0x2];for(const _0x46dd76 of _0x59b19c['getWalker']({'singleCharacters':!0x0})){const _0x2504ab=this['_getVidAttributeName'](_0x46dd76),_0x23362a='elementEnd'==_0x46dd76['type']?_0x46dd76['previousPosition']['path']['slice'](0x0,-0x1):_0x46dd76['previousPosition']['path'],_0xda5052=_0x6593f8['getNodeByPath'](_0x23362a)['getAttribute'](_0x2504ab);this['_touched']['set'](_0xda5052,{'userId':_0x5aecce});}}}this['_startingRevisionId']=this['_revisionId'];const _0x50f99a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5b0df5=>!this['_touched']['has'](_0x5b0df5));let _0x53d485=0x0;const _0x3d97c8=new Map();for(const _0x369af2 in _0x4fe083['diffData']){const _0x535d04=_0x4fe083['diffData'][_0x369af2]['attachChange'],_0x3cb2c0=_0x5ac5f2(_0x4fe083['diffData'][_0x369af2]['attributesAfter'])||{},_0xba1d5a=_0x22ab2f['_makeModelFromViewString'](_0x4fe083['diffData'][_0x369af2]['insertions']);_0xba1d5a['rootName']=_0x369af2,_0xba1d5a['_isAttached']=!_0x535d04||_0x535d04['isAttached'],_0xba1d5a['isAttached']=()=>_0xba1d5a['_isAttached'],this['_diffRoots']['set'](_0x369af2,_0xba1d5a),this['_diffRootsAttributes']['set'](_0x369af2,_0x3cb2c0);const _0x544891=this['_makeIdsRoot'](_0xba1d5a,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x369af2,_0x544891),_0x3d97c8['set'](_0x369af2,_0xba1d5a['isAttached']()?_0x3cb2c0:{});for(const [_0x3a13ad,_0x27e1e8]of _0xba1d5a['markers']){if(!_0x3a13ad['startsWith']('revision:'))continue;const _0x3ff54e=_0x3a13ad['split'](':')[0x2];for(const _0xe6ba83 of _0x27e1e8['getWalker']({'singleCharacters':!0x0})){const _0x26c3f9=this['_getVidAttributeName'](_0xe6ba83),_0x2870b0=this['_revisionId']++,_0x4a742d='elementEnd'==_0xe6ba83['type']?_0xe6ba83['previousPosition']['path']['slice'](0x0,-0x1):_0xe6ba83['previousPosition']['path'];_0x544891['getNodeByPath'](_0x4a742d)['_setAttribute'](_0x26c3f9,_0x2870b0),this['_touched']['set'](_0x2870b0,{'userId':_0x3ff54e});}}for(const _0x4583d7 of this['editor']['model']['createRangeIn'](_0xba1d5a)['getWalker']({'singleCharacters':!0x0})){const _0x40f980=this['_getVidAttributeName'](_0x4583d7),_0x3fb80f='elementEnd'==_0x4583d7['type']?_0x4583d7['previousPosition']['path']['slice'](0x0,-0x1):_0x4583d7['previousPosition']['path'],_0x5dc5e5=_0x544891['getNodeByPath'](_0x3fb80f);_0x5dc5e5['getAttribute'](_0x40f980)>0x0||_0x5dc5e5['_setAttribute'](_0x40f980,_0x50f99a[_0x53d485++]);}for(const [_0x262377,_0x5b7db8]of _0xba1d5a['markers'])_0x262377['startsWith']('revision:')||this['_markers']['set'](_0x262377,_0x5b7db8);}const _0x11931d=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x11931d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x11931d,0x1));const _0x3760f6=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3760f6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3760f6,0x1));const _0xb2a0b3=Array['from'](this['_diffRoots'])['map'](([_0x19d3d2,_0x22f9b2])=>[_0x19d3d2,x(_0x22f9b2)]);this['_saveMetaData'](this['_lastTo'],_0xb2a0b3,this['_markers'],_0x3d97c8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x35ba72,_0x24234b,_0x5e87c3,_0x62c05b){const _0x926d1e=new Map(_0x24234b),_0x3f7fb8=new Map(_0x5ac5f2(_0x62c05b)),_0x4631ea=new Map();for(const [_0x3785b7,_0x25cc43]of _0x5e87c3)_0x4631ea['set'](_0x3785b7,{'start':_0x25cc43['start']['clone'](),'end':_0x25cc43['end']['clone'](),'rootName':_0x25cc43['root']['rootName']});this['_savedMetaData']['set'](_0x35ba72,{'roots':_0x926d1e,'markers':_0x4631ea,'rootsAttributes':_0x3f7fb8});}['_removeMetaData'](_0x3817fd){this['_savedMetaData']['delete'](_0x3817fd);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x54a3fa,_0x396319=null){let _0x5041ca=null;_0x54a3fa['is']('documentFragment')||(_0x5041ca=new _0x209ccd(_0x54a3fa['name'],{'vid_start':null===_0x396319?this['_revisionId']++:_0x396319++}));const _0x536694=[];for(const _0x22b45d of _0x54a3fa['getChildren']())if(_0x22b45d['is']('element')){_0x536694['push'](this['_makeIdsRoot'](_0x22b45d,_0x396319));const _0x18bbd0=_0x536694[_0x536694['length']-0x1];null!==_0x396319&&(_0x396319=_0x18bbd0['is']('element','$text')?_0x18bbd0['getAttribute']('vid')+0x1:_0x18bbd0['getAttribute']('vid_end')+0x1);}else{for(let _0x368f70=0x0;_0x368f70<_0x22b45d['offsetSize'];_0x368f70++)_0x536694['push'](new _0x209ccd('$text',{'vid':null===_0x396319?this['_revisionId']++:_0x396319++}));}if(_0x54a3fa['is']('documentFragment')){const _0x5904e9=N(_0x54a3fa['rootName']);return _0x5904e9['_insertChild'](0x0,_0x536694),_0x5904e9;}return _0x5041ca['_setAttribute']('vid_end',null===_0x396319?this['_revisionId']++:_0x396319++),_0x5041ca['_insertChild'](0x0,_0x536694),_0x5041ca;}['_calculateMetaData'](_0x1a45a2,_0x1be28d,_0x34b259){this['_reset']();const {roots:_0x318418,markers:_0x2fde9e,rootsAttributes:_0x2a8059}=this['_savedMetaData']['get'](_0x1a45a2);this['_baseRoots']=new Map(_0x318418),this['_baseRootsAttributes']=new Map(_0x5ac5f2(_0x2a8059));for(const [_0x32b66c,_0x3c4c4e]of this['_baseRoots'])if('$graveyard'!==_0x32b66c&&(this['_diffRoots']['set'](_0x32b66c,x(_0x3c4c4e)),this['_diffRootsAttributes']=new Map(_0x5ac5f2(_0x2a8059)),_0x34b259)){const _0x2bdf4d=this['_revisionId'];this['_idsRoots']['set'](_0x32b66c,this['_makeIdsRoot'](_0x3c4c4e)),this['_baseIdsRoots']['set'](_0x32b66c,this['_makeIdsRoot'](_0x3c4c4e,_0x2bdf4d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x34b259&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x180344,_0x3a36a8]of _0x2fde9e){const _0x3d9e53=this['_baseRoots']['get'](_0x3a36a8['rootName']),_0x32686f=this['_diffRoots']['get'](_0x3a36a8['rootName']),_0xc22466=new _0x402d0e(this['_fixPosition'](_0x3a36a8['start'],_0x3d9e53),this['_fixPosition'](_0x3a36a8['end'],_0x3d9e53)),_0x11e97a=this['_fixRange'](_0xc22466,_0x32686f);_0x3d9e53['markers']['set'](_0x180344,_0xc22466),this['_markers']['set'](_0x180344,_0x11e97a);}this['_applyOperations'](_0x1a45a2,_0x1be28d,_0x34b259);}['_applyOperations'](_0x4219ef,_0x2e4cb4,_0x232a11){for(const _0x837f48 of this['source']['getOperations'](_0x4219ef,_0x2e4cb4))this['_handleOperation'](_0x837f48,_0x232a11);for(const _0x5bdd52 of this['_diffRoots']['values']())_0x5bdd52['markers']['clear']();for(const [_0x415b88,_0x41aed0]of this['_markers']){this['_diffRoots']['get'](_0x41aed0['root']['rootName'])['markers']['set'](_0x415b88,_0x41aed0['clone']());}const _0x2de1b3=new Map(),_0x4d9582=new Map();for(const [_0x304af9,_0x2470a9]of this['_diffRoots'])_0x2de1b3['set'](_0x304af9,x(_0x2470a9)),_0x4d9582['set'](_0x304af9,this['_diffRootsAttributes']['get'](_0x304af9));this['_saveMetaData'](_0x2e4cb4,_0x2de1b3,this['_markers'],_0x4d9582);}['_getPreviousFrom'](_0x4d3686){const _0x1bc5da=Array['from'](this['_savedMetaData']['keys']());_0x1bc5da['sort']((_0x326ffa,_0xc55670)=>_0x326ffa-_0xc55670),_0x1bc5da['reverse']();for(const _0x9c3975 of _0x1bc5da)if(_0x9c3975<_0x4d3686)return _0x9c3975;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x473f78,_0x3fb210){const _0xdc9d06=Array['from'](_0x3fb210['markers'])['map'](([_0x4437be,_0x116796])=>[_0x4437be,this['_fixRange'](_0x116796,_0x473f78)]);_0x473f78['markers']=new Map(_0xdc9d06);}['_transformMarkers'](_0x1a7603){for(const _0x128f78 of this['_markers']['values']()){const _0x2eae1f=_0x128f78['getTransformedByOperation'](_0x1a7603),_0x2a2845=_0x402d0e['_createFromRanges'](_0x2eae1f);_0x128f78['start']=_0x2a2845['start'],_0x128f78['end']=_0x2a2845['end'];}}['_handleOperation'](_0x430bb,_0x2f6ce4){if('addRoot'!=_0x430bb['type']&&'detachRoot'!=_0x430bb['type']){if('insert'==_0x430bb['type']){const _0x1bcc9e=_0x430bb['position']['root']['rootName'];this['_diffRoots']['has'](_0x1bcc9e)||(this['_diffRoots']['set'](_0x1bcc9e,N(_0x1bcc9e,!0x0)),this['_diffRootsAttributes']['set'](_0x1bcc9e,{}),_0x2f6ce4&&this['_idsRoots']['set'](_0x1bcc9e,N(_0x1bcc9e,!0x0)));}else{if('addRootAttribute'==_0x430bb['type']||'removeRootAttribute'==_0x430bb['type']||'changeRootAttribute'==_0x430bb['type'])return void this['_handleRootAttributeOperation'](_0x430bb);'marker'==_0x430bb['type']&&this['_handleMarkerOperation'](_0x430bb);}if('marker'!==_0x430bb['type']){const _0x2332ef=this['_cloneOperation'](_0x430bb,this['_diffRoots']);_0x2332ef['_execute'](),this['_transformMarkers'](_0x2332ef);}if(_0x2f6ce4)switch(_0x430bb['type']){case'insert':this['_handleInsertOperation'](_0x430bb);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x430bb);break;case'merge':this['_handleMergeOperation'](_0x430bb);break;case'split':this['_handleSplitOperation'](_0x430bb);}}else this['_handleRootOperation'](_0x430bb,_0x2f6ce4);}['_cloneOperation'](_0x730f07,_0x331d8e){const _0x493a0=_0x730f07['clone']();return _0x493a0['_authorId']=_0x730f07['_authorId'],this['_fixOperation'](_0x493a0,_0x331d8e),_0x493a0;}['_getBaseVids'](_0x235062){return _0x235062['map'](_0x13c97e=>{const _0x489c03=this['_getVidAttributeName'](_0x13c97e);return Number(_0x13c97e['item']['getAttribute'](_0x489c03));});}['_generateTape'](_0x231d89,_0x5229cd){if(_0x231d89['is']('element','$text'))_0x5229cd['push']({'item':_0x231d89,'type':'text'});else{_0x231d89['is']('element')&&_0x5229cd['push']({'item':_0x231d89,'type':'elementStart'});for(const _0x188aa4 of _0x231d89['getChildren']())this['_generateTape'](_0x188aa4,_0x5229cd);_0x231d89['is']('element')&&_0x5229cd['push']({'item':_0x231d89,'type':'elementEnd'});}return _0x5229cd;}['_getState'](){const _0x37abc3=new Map(this['_touched']),_0x4dd349=new Map(_0x37abc3),_0x1040a8=new Map(),_0x23c669={'insertions':{},'deletions':{}},_0x288158={'insertions':{},'deletions':{}},_0xb7bbc7=new Map(),_0x537baa=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x537baa['delete']('$graveyard');for(const _0x53e13c of _0x537baa){const _0x377f7d=this['_diffRoots']['get'](_0x53e13c)||N(_0x53e13c,!0x1),_0x13e1a0=this['_baseRoots']['get'](_0x53e13c)||N(_0x53e13c,!0x1);_0x377f7d['isAttached']()||_0x13e1a0['isAttached']()?(_0x23c669['insertions'][_0x53e13c]=x(_0x377f7d),_0x23c669['deletions'][_0x53e13c]=x(_0x13e1a0),this['_copyMarkers'](_0x23c669['deletions'][_0x53e13c],_0x13e1a0),this['_copyMarkers'](_0x23c669['insertions'][_0x53e13c],_0x377f7d),_0x288158['insertions'][_0x53e13c]=this['_generateTape'](this['_idsRoots']['get'](_0x53e13c),[]),_0x288158['deletions'][_0x53e13c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x53e13c)||N(_0x53e13c,!0x1),[])):_0x537baa['delete'](_0x53e13c);}for(const _0x583e26 of _0x537baa){const _0x281147=_0x288158['insertions'][_0x583e26];for(const _0x358781 of _0x281147){const _0x4b75a7=this['_getVidAttributeName'](_0x358781),_0xb15a4a=_0x358781['item']['getAttribute'](_0x4b75a7);_0x4dd349['delete'](_0xb15a4a),_0xb15a4a>=this['_startingRevisionId']&&_0x1040a8['set'](_0xb15a4a,_0x37abc3['get'](_0xb15a4a));}}for(const _0x577cea of _0x537baa){const _0x28d62c=_0x288158['insertions'][_0x577cea],_0x34e4b5=this['_getBaseVids'](_0x288158['deletions'][_0x577cea]);let _0x52c32d=0x0;for(const _0x16986a of _0x28d62c){const _0xf07d63=this['_getVidAttributeName'](_0x16986a),_0x4b429f=_0x16986a['item']['getAttribute'](_0xf07d63);if(!_0x1040a8['has'](_0x4b429f)&&!_0xb7bbc7['has'](_0x4b429f)){if(_0x4dd349['has'](_0x4b429f))_0x52c32d++;else{if(_0x4b429f!=_0x34e4b5[_0x52c32d]){const _0x97ce6c=_0x37abc3['get'](_0x4b429f)||_0x37abc3['get'](_0x34e4b5[_0x52c32d]);for(;_0x4b429f!=_0x34e4b5[_0x52c32d];)_0x4dd349['has'](_0x34e4b5[_0x52c32d])||(_0xb7bbc7['set'](_0x34e4b5[_0x52c32d],_0x97ce6c),_0x37abc3['set'](_0x34e4b5[_0x52c32d],_0x97ce6c)),_0x52c32d++;}_0x52c32d++;}}}}for(const _0x40e0a7 of _0x537baa){const _0x2f2f28=_0x288158['insertions'][_0x40e0a7];for(const _0x75f1b3 of _0x2f2f28){const _0xe347b1=this['_getVidAttributeName'](_0x75f1b3),_0x595e69=_0x75f1b3['item']['getAttribute'](_0xe347b1);if(_0xb7bbc7['has'](_0x595e69)){const _0x563304=_0xb7bbc7['get'](_0x595e69);_0x4dd349['has'](_0x595e69)||_0x4dd349['set'](_0x595e69,{..._0x563304}),_0x1040a8['set'](_0x595e69,{..._0x563304});}}}for(const _0x55e5c7 of _0x4dd349['keys']())_0x55e5c7>=this['_startingRevisionId']&&_0x4dd349['delete'](_0x55e5c7);const _0x28dad4=new Map();for(const _0x5ded35 of _0x537baa){let _0x52cd64=_0x288158['insertions'][_0x5ded35];for(const _0x43f8c3 of _0x52cd64)if(_0x43f8c3['item']['is']('element','tableCell')){const _0x8fffa=this['_getVidAttributeName'](_0x43f8c3),_0x38d13a=_0x43f8c3['item']['getAttribute'](_0x8fffa);if(_0x1040a8['has'](_0x38d13a)){const _0x561641=_0x43f8c3['item']['parent']['parent']['getAttribute']('vid_start'),_0x3c9d97=_0x28dad4['get'](_0x561641)||new Set();_0x3c9d97['add'](_0x1040a8['get'](_0x38d13a)['userId']),_0x28dad4['set'](_0x561641,_0x3c9d97);}}_0x52cd64=_0x288158['deletions'][_0x5ded35];for(const _0x25e8ff of _0x52cd64)if(_0x25e8ff['item']['is']('element','tableCell')){const _0x1fa242=this['_getVidAttributeName'](_0x25e8ff),_0x3fa74f=_0x25e8ff['item']['getAttribute'](_0x1fa242);if(_0x4dd349['has'](_0x3fa74f)){const _0x3b19ef=_0x25e8ff['item']['parent']['parent']['getAttribute']('vid_start'),_0x507717=_0x28dad4['get'](_0x3b19ef)||new Set();_0x507717['add'](_0x4dd349['get'](_0x3fa74f)['userId']),_0x28dad4['set'](_0x3b19ef,_0x507717);}}for(const _0x174e28 of _0x28dad4['keys']())(_0x1040a8['has'](_0x174e28)||_0x4dd349['has'](_0x174e28))&&_0x28dad4['delete'](_0x174e28);}for(const _0x2ac50e of _0x537baa){const _0xc944a=_0x288158['insertions'][_0x2ac50e];let _0xace311=null,_0x467642=null;for(const _0x5e2f5c of _0xc944a){const _0xed5fcf=this['_getVidAttributeName'](_0x5e2f5c),_0x300628=_0x5e2f5c['item']['getAttribute'](_0xed5fcf),_0x16d3c8=_0x28dad4['get'](_0x300628);_0x16d3c8&&'elementStart'==_0x5e2f5c['type']&&(_0xace311=Array['from'](_0x16d3c8)[0x0],_0x467642=_0x5e2f5c['item']['getAttribute']('vid_end')),_0xace311&&(_0x4dd349['set'](_0x300628,{'userId':_0xace311}),_0x1040a8['set'](_0x300628,{'userId':_0xace311})),_0x300628==_0x467642&&(_0xace311=null,_0x467642=null);}}const _0x5b488b={},_0x215269=new Set();for(const _0x18de8f of _0x537baa){const _0x3b25fc=_0x23c669['deletions'][_0x18de8f],_0xe9891c=_0x23c669['insertions'][_0x18de8f];for(const {userId:_0x537fb8}of this['_touchedMarkers']['values']())null!==_0x537fb8&&_0x215269['add'](_0x537fb8);for(const {userId:_0x529a97}of this['_touchedRoots']['values']())null!==_0x529a97&&_0x215269['add'](_0x529a97);this['_markChanges'](_0xe9891c,_0x288158['insertions'][_0x18de8f],_0x1040a8,'insertion',_0x215269),this['_markChanges'](_0x3b25fc,_0x288158['deletions'][_0x18de8f],_0x4dd349,'deletion',_0x215269),_0x5b488b[_0x18de8f]={'insertions':this['_prepareViewToSave'](_0xe9891c),'deletions':this['_prepareViewToSave'](_0x3b25fc),'attachChange':this['_touchedRoots']['get'](_0x18de8f)||null,'attributesBefore':_0x5ac5f2(this['_baseRootsAttributes']['get'](_0x18de8f))||{},'attributesAfter':_0x5ac5f2(this['_diffRootsAttributes']['get'](_0x18de8f))};}return{'diffData':_0x5b488b,'authorsIds':Array['from'](_0x215269)};}['_processRootBeforeSave'](_0xc75f6f){for(const [,_0x4ce712]of _0xc75f6f['markers']){const _0x26eea7=_0x4ce712['start']['getAncestors']()['filter'](_0x107653=>'tableCell'==_0x107653['name']);for(const _0x234d2c of _0x26eea7)0x1==_0x234d2c['childCount']&&_0x234d2c['getChild'](0x0)['is']('element','paragraph')&&_0x234d2c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x223e21){this['_processRootBeforeSave'](_0x223e21);const _0x3a6a00=this['editor']['data']['toView'](_0x223e21,{}),_0x5512ea=Array['from'](_0x3a6a00['getChildren']())['map'](_0x125086=>this['_getViewJson'](_0x125086));return JSON['stringify'](_0x5512ea);}['_getViewJson'](_0x4202dc){if(_0x4202dc['is']('$text'))return _0x4202dc['data'];{const _0x25f462=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x52d6e1=_0x4202dc,_0x4b00a1=this['editor']['data']['htmlProcessor']['domConverter'],_0x583cca={'type':_0x25f462['_getTypeCharForViewElement'](_0x52d6e1),'name':_0x52d6e1['name'],'attributes':Array['from'](_0x52d6e1['getAttributes']()),'children':Array['from'](_0x52d6e1['getChildren']())['map'](_0x1da7c4=>this['_getViewJson'](_0x1da7c4))};if(_0x4202dc['is']('uiElement')&&'$comment'!=_0x4202dc['name']){const _0x358c51=_0x4202dc['render'](_0x4b00a1['domDocument'],_0x4b00a1);_0x583cca['children']['push'](_0x358c51['outerHTML']);}else{if(_0x4202dc['is']('rawElement')){const _0x1dd9c7=_0x4b00a1['domDocument']['createElement'](_0x52d6e1['name']);_0x4202dc['render'](_0x1dd9c7,_0x4b00a1),_0x583cca['children']['push'](_0x1dd9c7['innerHTML']);}}const _0x21b3e7=Array['from'](_0x52d6e1['getCustomProperties']());_0x21b3e7['length']>0x0&&(_0x583cca['customProperties']=_0x21b3e7);const _0x280903=_0x52d6e1['getFillerOffset']();return null!==_0x280903&&(_0x583cca['fillerOffset']=_0x280903),_0x583cca;}}['_markChanges'](_0x18978f,_0x3c74af,_0x67aeff,_0x2fa839,_0x468942){let _0x197de7=null,_0x113869=null,_0x5ec120=0x0;const _0x19d862=this['editor']['model'];for(let _0x135e44=0x0;_0x135e44<_0x3c74af['length'];_0x135e44++){const _0x2f9479=this['_getVidAttributeName'](_0x3c74af[_0x135e44]),_0x26424d=_0x3c74af[_0x135e44]['item']['getAttribute'](_0x2f9479),_0x13058c=_0x67aeff['get'](_0x26424d),_0x16af1c=_0x135e44==_0x3c74af['length']-0x1;(!_0x197de7&&_0x13058c&&(_0x197de7=_0x13058c,_0x113869=_0x3c74af[_0x135e44]),_0x197de7&&(!_0x13058c||_0x13058c['userId']!=_0x197de7['userId']))&&(_0x241e27(_0x13058c,P(_0x113869,_0x18978f,_0x19d862),P(_0x3c74af[_0x135e44],_0x18978f,_0x19d862)),_0x197de7=_0x13058c||null,_0x113869=_0x13058c?_0x3c74af[_0x135e44]:null),_0x197de7&&_0x16af1c&&_0x241e27(_0x13058c,P(_0x113869,_0x18978f,_0x19d862),V(_0x3c74af[_0x135e44],_0x18978f,_0x19d862));}function _0x241e27(_0x14be31,_0x545d49,_0x4948aa){const _0x566242=_0x197de7['userId'],_0x435c28='revision:'+_0x2fa839+':'+_0x566242+':'+_0x5ec120++,_0x4780df=_0x19d862['createRange'](_0x545d49,_0x4948aa);_0x18978f['markers']['set'](_0x435c28,_0x4780df),null!==_0x566242&&_0x468942['add'](_0x566242);}}['_getVidAttributeName'](_0x4beeba){switch(_0x4beeba['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x239bfc,_0x1d9e8e){_0x239bfc['baseVersion']=null;for(const _0x101722 in _0x239bfc){const _0x1c0b38=_0x239bfc[_0x101722];if(_0x1c0b38 instanceof _0x27fe9e){const _0x2990bf=_0x1d9e8e['get'](_0x1c0b38['root']['rootName']);_0x239bfc[_0x101722]=this['_fixPosition'](_0x1c0b38,_0x2990bf);}if(_0x1c0b38 instanceof _0x402d0e){const _0x3f5e4b=_0x1d9e8e['get'](_0x1c0b38['root']['rootName']);_0x239bfc[_0x101722]=this['_fixRange'](_0x1c0b38,_0x3f5e4b);}'root'===_0x101722&&(_0x239bfc['root']=_0x1d9e8e['get'](_0x239bfc['root']['rootName']));}}['_fixRange'](_0x26bc82,_0x1ff9d5){return this['editor']['model']['createRange'](this['_fixPosition'](_0x26bc82['start'],_0x1ff9d5),this['_fixPosition'](_0x26bc82['end'],_0x1ff9d5));}['_fixPosition'](_0x40179e,_0x5080c5){return this['editor']['model']['createPositionFromPath'](_0x5080c5,_0x40179e['path'],_0x40179e['stickiness']);}['_handleInsertOperation'](_0x5a837c){const _0x1cd8ac=this['_idsRoots']['get'](_0x5a837c['position']['root']['rootName']),_0x276803=this['_fixPosition'](_0x5a837c['position'],_0x1cd8ac),_0x12d432=null===_0x5a837c['_authorId']?null:_0x5a837c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29eb58=_0x276803['parent'],_0x3c57df=this['_revisionId'],_0x395787=[];for(const _0x245a74 of _0x5a837c['nodes'])if(_0x245a74['is']('element'))_0x395787['push'](this['_makeIdsRoot'](_0x245a74));else{for(let _0x1213c7=0x0;_0x1213c7<_0x245a74['offsetSize'];_0x1213c7++)_0x395787['push'](new _0x209ccd('$text',{'vid':this['_revisionId']++}));}const _0x10abc5=this['_revisionId'];for(let _0x5dbf64=_0x3c57df;_0x5dbf64<_0x10abc5;_0x5dbf64++)this['_touched']['set'](_0x5dbf64,{'userId':_0x12d432});_0x29eb58['_insertChild'](_0x276803['offset'],_0x395787);}['_handleMoveOperation'](_0x3af1cf){(_0x3af1cf=this['_cloneOperation'](_0x3af1cf,this['_idsRoots']))['_execute']();const _0x56fcad=null===_0x3af1cf['_authorId']?null:_0x3af1cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x374670=_0x3af1cf['getMovedRangeStart'](),_0x183d07=_0x374670['parent'],_0x23abcb=_0x374670['offset'];!function _0x2c059e(_0x505815,_0x42ab85,_0x2d6a7a,_0x4b206e){for(let _0x5395b9=_0x2d6a7a;_0x5395b9<_0x4b206e;_0x5395b9++){const _0xc10f5f=_0x42ab85['getChild'](_0x5395b9);_0xc10f5f['is']('element','$text')?_0x505815['set'](_0xc10f5f['getAttribute']('vid'),{'userId':_0x56fcad}):(_0x505815['set'](_0xc10f5f['getAttribute']('vid_start'),{'userId':_0x56fcad}),_0x2c059e(_0x505815,_0xc10f5f,0x0,_0xc10f5f['childCount']),_0x505815['set'](_0xc10f5f['getAttribute']('vid_end'),{'userId':_0x56fcad}));}}(this['_touched'],_0x183d07,_0x23abcb,_0x23abcb+_0x3af1cf['howMany']);}['_handleMergeOperation'](_0x662467){const _0x5ad361=null===(_0x662467=this['_cloneOperation'](_0x662467,this['_idsRoots']))['_authorId']?null:_0x662467['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36e425=_0x662467['targetPosition']['parent'],_0x580d72=_0x662467['sourcePosition']['parent'],_0x45a354=_0x36e425['getAttribute']('vid_end'),_0x1a21a7=_0x580d72['getAttribute']('vid_start');_0x36e425['_setAttribute']('vid_end',_0x580d72['getAttribute']('vid_end')),_0x580d72['_setAttribute']('vid_end',_0x45a354),this['_touched']['set'](_0x1a21a7,{'userId':_0x5ad361}),this['_touched']['set'](_0x45a354,{'userId':_0x5ad361}),_0x662467['_execute']();}['_handleSplitOperation'](_0x5a4bdc){const _0x432ee0=null===(_0x5a4bdc=this['_cloneOperation'](_0x5a4bdc,this['_idsRoots']))['_authorId']?null:_0x5a4bdc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5646b2=_0x5a4bdc['graveyardPosition'],_0x20fce5=_0x5a4bdc['splitPosition']['parent'];_0x5a4bdc['_execute']();const _0x3e3bfe=_0x20fce5['getAttribute']('vid_end'),_0x55143a=_0x5a4bdc['insertionPosition']['nodeAfter'];if(_0x5646b2){const _0x1255e7=_0x55143a['getAttribute']('vid_end'),_0x590b67=_0x20fce5['getAttribute']('vid_end');_0x20fce5['_setAttribute']('vid_end',_0x1255e7),_0x55143a['_setAttribute']('vid_end',_0x590b67),this['_touched']['set'](_0x20fce5['getAttribute']('vid_end'),{'userId':_0x432ee0}),this['_touched']['set'](_0x55143a['getAttribute']('vid_start'),{'userId':_0x432ee0});}else{const _0x5c8db5=this['_revisionId']++,_0x50f365=this['_revisionId']++;_0x20fce5['_setAttribute']('vid_end',_0x5c8db5),_0x55143a['_setAttribute']('vid_start',_0x50f365),_0x55143a['_setAttribute']('vid_end',_0x3e3bfe),this['_touched']['set'](_0x5c8db5,{'userId':_0x432ee0}),this['_touched']['set'](_0x50f365,{'userId':_0x432ee0});}}['_handleMarkerOperation'](_0xaa257d){if(!_0xaa257d['affectsData'])return;const _0x2383a2=(_0xaa257d=this['_cloneOperation'](_0xaa257d,this['_diffRoots']))['oldRange']?_0xaa257d['oldRange']['root']:null,_0x4d1691=_0xaa257d['newRange']?_0xaa257d['newRange']['root']:null;_0x2383a2&&this['_markers']['delete'](_0xaa257d['name']),_0x4d1691&&this['_markers']['set'](_0xaa257d['name'],_0xaa257d['newRange']['clone']());const _0x429300=null===_0xaa257d['_authorId']?null:_0xaa257d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x381910=_0xaa257d['name'];if(!this['_touchedMarkers']['has'](_0x381910))return void this['_touchedMarkers']['set'](_0x381910,{'range':_0xaa257d['oldRange'],'userId':_0x429300});const _0x38a11b=this['_touchedMarkers']['get'](_0x381910),_0x1d2158=_0x38a11b['range'],_0x425892=_0xaa257d['newRange'];null==_0x1d2158&&null==_0x425892||_0x1d2158&&_0x425892&&_0x1d2158['isEqual'](_0x425892)?this['_touchedMarkers']['delete'](_0xaa257d['name']):_0x38a11b['userId']=_0x429300;}['_handleRootOperation'](_0x2a4bfb,_0x4ab7b2){this['_diffRoots']['has'](_0x2a4bfb['rootName'])?this['_diffRoots']['get'](_0x2a4bfb['rootName'])['_isAttached']=_0x2a4bfb['isAdd']:(this['_diffRoots']['set'](_0x2a4bfb['rootName'],N(_0x2a4bfb['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2a4bfb['rootName'],{}),_0x4ab7b2&&this['_idsRoots']['set'](_0x2a4bfb['rootName'],N(_0x2a4bfb['rootName'],!0x0)));const _0x486e09=null===_0x2a4bfb['_authorId']?null:_0x2a4bfb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e6c91=this['_touchedRoots']['get'](_0x2a4bfb['rootName']);_0x1e6c91&&_0x1e6c91['userId']===_0x486e09?this['_touchedRoots']['delete'](_0x2a4bfb['rootName']):this['_touchedRoots']['set'](_0x2a4bfb['rootName'],{'userId':_0x486e09,'isAttached':_0x2a4bfb['isAdd']});}['_handleRootAttributeOperation'](_0x32c89a){const _0x50d094=this['_diffRootsAttributes']['get'](_0x32c89a['root']['rootName']);null===_0x32c89a['newValue']?delete _0x50d094[_0x32c89a['key']]:_0x50d094[_0x32c89a['key']]=_0x32c89a['newValue'];}}function x(_0x42f4f9){const _0x10d666=N(_0x42f4f9['rootName'],_0x42f4f9['isAttached']());for(const _0x2f44e3 of _0x42f4f9['getChildren']()){const _0x2c0340=_0x2f44e3['_clone'](!0x0);_0x10d666['_appendChild'](_0x2c0340);}return _0x10d666;}function N(_0x5d6d68,_0x3c3378=!0x0){const _0x2bafd2=new _0x2a83e1();return _0x2bafd2['rootName']=_0x5d6d68,_0x2bafd2['_isAttached']=_0x3c3378,_0x2bafd2['isAttached']=()=>_0x2bafd2['_isAttached'],_0x2bafd2;}function P(_0x42e9e8,_0x547b72,_0xd302e7){const _0x1dd2dc='elementEnd'==_0x42e9e8['type']?_0xd302e7['createPositionAt'](_0x42e9e8['item'],'end'):_0xd302e7['createPositionBefore'](_0x42e9e8['item']);return _0xd302e7['createPositionFromPath'](_0x547b72,_0x1dd2dc['path'],_0x1dd2dc['stickiness']);}function V(_0xf86ca5,_0x1917de,_0xce20b2){const _0x5856bb='elementStart'==_0xf86ca5['type']?_0xce20b2['createPositionAt'](_0xf86ca5['item'],0x0):_0xce20b2['createPositionAfter'](_0xf86ca5['item']);return _0xce20b2['createPositionFromPath'](_0x1917de,_0x5856bb['path'],_0x5856bb['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2633a2(_0x39ce7d){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xc527ee,_0x577422){super(_0xc527ee),this['focusTracker']=new _0x806e14(),this['keystrokes']=new _0x3e3e0c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x577422),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x4566b9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x476d8c=_0x2139f1=>_0x2139f1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x476d8c),this['keystrokes']['set']('arrowleft',_0x476d8c),this['keystrokes']['set']('arrowup',_0x476d8c),this['keystrokes']['set']('arrowdown',_0x476d8c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x49d0d9){this['revisionNameInputView']['fieldView']['element']['value']=_0x49d0d9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5a80c4){const _0x4f23d7=new ti(this['locale'],_0x5db9fb),_0x2ec615=_0x4f23d7['fieldView'];_0x2ec615['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2ed39d=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5a80c4&&(_0x2ed39d+='\x20('+R(this['locale'],'optional')+')'),(_0x4f23d7['label']=_0x2ed39d,_0x2ec615['on']('input',()=>{this['revisionNameInputValue']=_0x2ec615['element']['value']['trim']();}),_0x4f23d7);}}class v extends _0x261da3{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1fed50=this['editor'],_0x6f8039=_0x1fed50['plugins']['get']('RevisionTracker');_0x1fed50['ui']['componentFactory']['add']('revisionHistory',_0x52273c=>{const _0x409c88=_0x1d6de6(_0x52273c),_0x4d58ac=_0x409c88['panelView']['children'],_0x2fbf76=new _0x3951a1(_0x52273c),_0x3836d5=new _0x20dd11(_0x52273c),_0x2e324b=new _0x1aaef3(_0x52273c),_0x391ae6=new _0x20dd11(_0x52273c),_0x28f1dd=new _0x1aaef3(_0x52273c);return _0x409c88['bind']('isEnabled')['to'](_0x6f8039,'isReady',_0x6f8039,'isEnabled',_0x1fed50,'isReadOnly',(_0x263263,_0x928e03,_0x170078)=>_0x263263&&_0x928e03&&!_0x170078),_0x409c88['buttonView']['set']({'icon':_0x411861,'label':R(_0x52273c,'Revision\x20history'),'tooltip':!0x0}),_0x2e324b['set']({'label':R(_0x52273c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2e324b['bind']('isEnabled')['to'](_0x6f8039,'isReady',_0x6f8039,'isEnabled',_0x1fed50,'isReadOnly',(_0x2a4470,_0x18629f,_0x2e762f)=>_0x2a4470&&_0x18629f&&!_0x2e762f),_0x2e324b['on']('execute',()=>this['_showDialog']()),_0x28f1dd['set']({'label':R(_0x52273c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x28f1dd['bind']('isEnabled')['to'](_0x6f8039,'isReady',_0x1fed50,'isReadOnly',(_0x228669,_0x526da7)=>_0x228669&&!_0x526da7),_0x28f1dd['on']('execute',()=>{_0x1fed50['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x409c88['isOpen']=!0x1,_0x1fed50['editing']['view']['focus']();}),_0x3836d5['children']['add'](_0x2e324b),_0x391ae6['children']['add'](_0x28f1dd),_0x2fbf76['role']='menu',_0x2fbf76['items']['addMany']([_0x3836d5,_0x391ae6]),_0x4d58ac['add'](_0x2fbf76),_0x409c88;}),_0x1fed50['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x211aaa=this['editor'],_0x41eee0=_0x211aaa['locale'],_0x82ace=new _0x558487(_0x41eee0),_0x12ca14=new _0x5ee3e1(_0x41eee0);_0x82ace['buttonView']['set']({'icon':_0x411861,'label':R(_0x41eee0,'Revision\x20history')});const _0x38d0d1=new _0x1e7339(_0x41eee0,_0x82ace),_0x99d059=new _0x380dd3(_0x41eee0);_0x99d059['set']({'label':R(_0x41eee0,'Save\x20current\x20revision')}),_0x99d059['delegate']('execute')['to'](_0x82ace),_0x99d059['on']('execute',()=>{this['_showDialog']();}),_0x38d0d1['children']['add'](_0x99d059),_0x12ca14['items']['add'](_0x38d0d1);const _0x8ee22d=new _0x1e7339(_0x41eee0,_0x82ace),_0x36edb3=new _0x380dd3(_0x41eee0);return _0x36edb3['set']({'label':R(_0x41eee0,'Open\x20revision\x20history')}),_0x36edb3['delegate']('execute')['to'](_0x82ace),_0x36edb3['on']('execute',()=>{_0x211aaa['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x8ee22d['children']['add'](_0x36edb3),_0x12ca14['items']['add'](_0x8ee22d),_0x82ace['panelView']['children']['add'](_0x12ca14),_0x82ace;}['_showDialog'](){const _0x5d1355=this['editor'],_0x2b45af=_0x5d1355['locale'],_0x481668=_0x5d1355['plugins']['get']('Dialog'),_0x689158=_0x5d1355['plugins']['get']('RevisionTracker');function _0x899a9d(_0x3b7c27){_0x5d1355['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3b7c27['revisionName']?_0x3b7c27['revisionNameInputView']['errorText']=R(_0x2b45af,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5d1355['plugins']['get'](h)['saveRevision']({'name':_0x3b7c27['revisionName']}),_0x481668['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x899a9d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x481668['show']({'id':'revisionSave','title':R(_0x2b45af,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x5d1355['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x481668['hide']()},{'label':R(_0x5d1355['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x38912f){_0x38912f['bind']('isEnabled')['to'](_0x689158,'isReady',_0x689158,'isEnabled',_0x5d1355,'isReadOnly',(_0x1eb77b,_0x5042d8,_0x2b4080)=>_0x1eb77b&&_0x5042d8&&!_0x2b4080);},'onExecute':()=>_0x899a9d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x18c4e0=this['editor'],_0x376e7c=_0x18c4e0['locale'];this['_saveRevisionFormView']=new he(_0x376e7c,_0x18c4e0['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x39ce7d{['changeId'];['_model'];constructor(_0x38e589,_0x474743){super(_0x38e589),this['_model']=_0x474743,this['changeId']=_0x474743['id'];const _0x342167=this['bindTemplate'],_0x5f06c5=R(_0x38e589,_0x474743['data']['isSuggestion']?'Suggested\x20by':'add'==_0x474743['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x474743['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x342167['to']('type',_0x506a68=>'ck-revision-change__'+_0x506a68)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5f06c5}]},{'text':'\x20'+_0x474743['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x321dc8(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5465e9){super(),this['id']=_0x5465e9['id']||_0xb1be14(),this['author']=_0x5465e9['author'],this['type']=_0x5465e9['type'],this['data']=_0x5465e9['data']||{},this['rootName']=_0x5465e9['rootName'],this['set']('createdAt',_0x5465e9['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x480c7f,_0x30bb02){this['newRevisionId']=_0x480c7f,this['oldRevisionId']=_0x30bb02,this['changes']=new _0x33b3a9();}['_setChanges'](_0x17134e){for(const _0x36adbd of _0x17134e)this['changes']['add'](_0x36adbd);}}class l extends _0x261da3{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x188d72,_0x1434e2,S,$];}constructor(_0x3b77b4){super(_0x3b77b4),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x55aaf5,_0x51b896,_0x182f5b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x548e92=>{for(const _0x5d7b98 of this['editor']['editing']['view']['document']['roots'])_0x182f5b?_0x548e92['removeClass']('ck-editor__editable__overlay',_0x5d7b98):_0x548e92['addClass']('ck-editor__editable__overlay',_0x5d7b98);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x9d5e8a=>null!==_0x9d5e8a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2cf837,_0x1bccd1,_0x141340)=>_0x2cf837&&_0x141340?_0x1bccd1['changes']['getIndex'](_0x141340):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4cacb2,_0x12dc5c)=>_0x4cacb2?_0x12dc5c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1434e2);}['init'](){const _0x4e8239=this['editor'],_0x9808d9=new ot(_0x4e8239,{'direction':'backward'}),_0x59c4a0=new ot(_0x4e8239,{'direction':'forward'});(_0x4e8239['commands']['add']('showPreviousChange',_0x9808d9),_0x4e8239['commands']['add']('showNextChange',_0x59c4a0),_0x4e8239['commands']['add']('restoreRevision',new nt(_0x4e8239)),this['on']('change:numberOfChanges',()=>{_0x9808d9['refresh'](),_0x59c4a0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4e8239['enableReadOnlyMode']('revision-viewer'),_0x4e8239['plugins']['has']('WidgetToolbarRepository'))&&_0x4e8239['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2f199b){return await this['_utils']['loadRevisionData'](_0x2f199b,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2f199b);}async['getRevisionRootsAttributes'](_0x49e6c4){return await this['_utils']['loadRevisionData'](_0x49e6c4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x49e6c4);}async['compare'](_0x39e25d,_0x36afe1,_0x464edb=!0x1){if(!this['isEnabled'])return;const _0x2957e1=this['diff'],_0x2878fb=this['repository'],_0x41bf4d='string'==typeof _0x39e25d?_0x2878fb['getRevision'](_0x39e25d):_0x39e25d,_0x57013a='string'==typeof _0x36afe1?_0x2878fb['getRevision'](_0x36afe1):_0x36afe1,_0x223f58=_0x41bf4d['id'],_0x577a34=_0x57013a?_0x57013a['id']:null;if(!_0x464edb&&this['diff']&&this['diff']['newRevisionId']===_0x223f58&&this['diff']['oldRevisionId']===_0x577a34)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x223f58,_0x577a34);const _0x59f89c=this['_getRevisionsRange'](_0x41bf4d,_0x57013a,!0x0)['map'](_0x31287a=>this['_utils']['loadRevisionData'](_0x31287a,this['adapter']));return _0x59f89c['push'](new Promise(_0x2704ab=>{setTimeout(_0x2704ab,0x14);})),Promise['all'](_0x59f89c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1147ae=this['_getDiff'](_0x223f58,_0x577a34);for(const _0x3fe482 of _0x1147ae['changes'])this['_changeIdToChange']['set'](_0x3fe482['id'],_0x3fe482);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xaa9f44=>{for(const _0x13605b of this['editor']['model']['document']['getRootNames']())_0xaa9f44['detachRoot'](_0x13605b);for(const _0x2f96cf of Object['keys'](_0x1147ae['model'])){const _0x2f8666=_0xaa9f44['addRoot'](_0x2f96cf);for(const _0x27c7e0 of Object['keys'](_0x1147ae['attributes'][_0x2f96cf]))_0xaa9f44['setAttribute'](_0x27c7e0,_0x1147ae['attributes'][_0x2f96cf][_0x27c7e0],_0x2f8666);_0xaa9f44['insert'](_0x1147ae['model'][_0x2f96cf],_0x2f8666,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1147ae['changes'])),this['isReady']=!0x0;})['catch'](_0x488c64=>{console['error'](_0x488c64),this['_cleanUp'](),_0x2957e1&&(this['diff']=_0x2957e1),this['isReady']=!0x0;});}['addRevisionData'](_0x37bdf4,_0x3960e6){const _0x2051a3=this['repository']['createRevision'](_0x37bdf4);return _0x2051a3['on']('_update',(_0x20feb8,_0x4f1f2c,_0x5a8700)=>_0x3960e6(_0x4f1f2c,_0x5a8700,_0x2051a3)),this['repository']['addRevision'](_0x2051a3),_0x2051a3;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x17c9bd=>{for(const _0x120ab1 of this['editor']['model']['document']['getRootNames']())_0x17c9bd['detachRoot'](_0x120ab1);});}['_sortAndFilterDiffChanges'](_0x1db573){const _0x4a6cbe=[],_0x1c2c58=new Map();for(const _0x292ead of this['editor']['model']['document']['getRootNames']()){const _0x5b6160=this['editor']['editing']['view']['getDomRoot'](_0x292ead);if(!_0x5b6160)continue;const _0x56ef02=_0x5b6160['getClientRects']()['item'](0x0);_0x56ef02&&(_0x4a6cbe['push'](_0x292ead),_0x1c2c58['set'](_0x292ead,_0x56ef02));}return _0x4a6cbe['sort']((_0x2e5b10,_0x51cafe)=>{const _0x5571a0=_0x1c2c58['get'](_0x2e5b10),_0xc6de50=_0x1c2c58['get'](_0x51cafe);return _0x5571a0['y']-_0xc6de50['y']||_0x5571a0['x']-_0xc6de50['x'];}),(_0x1db573=_0x1db573['filter'](_0x3e95fa=>_0x4a6cbe['includes'](_0x3e95fa['rootName'])))['sort']((_0x2c92ed,_0x5d8e4c)=>_0x4a6cbe['indexOf'](_0x2c92ed['rootName'])-_0x4a6cbe['indexOf'](_0x5d8e4c['rootName'])),_0x1db573;}['_makeTape'](_0x3bdccc){const _0x50d1f7=Array['from'](_0x3bdccc['markers'])['filter'](([_0x2c26c0,_0x186152])=>_0x2c26c0['startsWith']('revision:')&&!_0x186152['isCollapsed']),_0x2a57af=Array['from'](this['editor']['model']['createRangeIn'](_0x3bdccc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x50d1f7['length'])for(const _0xf132e1 of _0x2a57af){const [_0x282943,_0x23174f]=_0x50d1f7[0x0],[,_0xbed616,_0xde8492]=_0x282943['split'](':');if(_0x23174f['end']['isEqual'](_0xf132e1['nextPosition'])&&_0x50d1f7['shift'](),(_0xf132e1['previousPosition']['isEqual'](_0x23174f['start'])||_0xf132e1['previousPosition']['isAfter'](_0x23174f['start']))&&('insertion'==_0xbed616?_0xf132e1['isAdded']={'userId':_0xde8492}:'deletion'==_0xbed616&&(_0xf132e1['isRemoved']={'userId':_0xde8492})),0x0==_0x50d1f7['length'])break;}return _0x2a57af;}['_refreshStartEndIndex'](_0x47bad4){const _0x3fee36=new Map();for(let _0x14ebfc=0x0;_0x14ebfc<_0x47bad4['length'];_0x14ebfc++)'text'===_0x47bad4[_0x14ebfc]['type']?(_0x47bad4[_0x14ebfc]['item']['startIndex']=_0x14ebfc,_0x47bad4[_0x14ebfc]['item']['endIndex']=_0x14ebfc):('elementStart'===_0x47bad4[_0x14ebfc]['type']?_0x47bad4[_0x14ebfc]['item']['startIndex']=_0x14ebfc:'elementEnd'===_0x47bad4[_0x14ebfc]['type']&&(_0x47bad4[_0x14ebfc]['item']['endIndex']=_0x14ebfc),_0x3fee36['set'](_0x47bad4[_0x14ebfc]['id'],_0x14ebfc));for(const _0x1e0227 of _0x3fee36['values']())'elementStart'===_0x47bad4[_0x1e0227]['type']?_0x47bad4[_0x1e0227]['item']['endIndex']=_0x3fee36['get'](_0x47bad4[_0x1e0227]['pairId']):'elementEnd'===_0x47bad4[_0x1e0227]['type']&&(_0x47bad4[_0x1e0227]['item']['startIndex']=_0x3fee36['get'](_0x47bad4[_0x1e0227]['pairId']));}['_processTape'](_0x12523f){for(let _0x37d65c=0x0;_0x37d65c<_0x12523f['length'];_0x37d65c++){if('elementStart'===_0x12523f[_0x37d65c]['type'])_0x12523f[_0x37d65c]['item']['startIndex']=_0x37d65c;else{if('elementEnd'===_0x12523f[_0x37d65c]['type']){_0x12523f[_0x37d65c]['item']['endIndex']=_0x37d65c;const _0x643be=_0x12523f[_0x37d65c]['item']['startIndex'];_0x12523f[_0x643be]['pairId']=_0x12523f[_0x37d65c]['id'],_0x12523f[_0x37d65c]['pairId']=_0x12523f[_0x643be]['id'];}else _0x12523f[_0x37d65c]['item']['startIndex']=_0x37d65c,_0x12523f[_0x37d65c]['item']['endIndex']=_0x37d65c,_0x12523f[_0x37d65c]['pairId']=null;}_0x12523f[_0x37d65c]['markersStart']||(_0x12523f[_0x37d65c]['markersStart']=[],_0x12523f[_0x37d65c]['markersEnd']=[]);}}['_markInsertions'](_0x42ce69,_0x556abb){const _0x4f72c1=_0x42ce69['filter'](_0x17fb05=>!_0x17fb05['isAdded']);for(let _0x236373=0x0;_0x236373<_0x556abb['length'];_0x236373++)_0x556abb[_0x236373]['isAdded']&&(_0x4f72c1[_0x236373]['isAdded']=_0x556abb[_0x236373]['isAdded']);}['_getDiff'](_0x40364d,_0x4a7477=null){const _0x285acc=this['repository']['getRevision'](_0x40364d),_0x5211b4=_0x4a7477?this['repository']['getRevision'](_0x4a7477):null,_0x2ef095=this['_getRevisionsRange'](_0x285acc,_0x5211b4),_0x36ad2d=_0x2ef095[_0x2ef095['length']-0x1],_0x54eca9=new Map(),_0x20d454={'model':{},'attributes':{},'changes':[]},_0x2a8a2e=new Set(),_0x2705e1=new Map();for(let _0x17a772=_0x2ef095['length']-0x1;_0x17a772>=0x0;_0x17a772--){const _0xd4ffd1=_0x2ef095[_0x17a772];for(const _0x20e068 of Object['keys'](_0xd4ffd1['diffData']))if(_0xd4ffd1['diffData'][_0x20e068]['attachChange']){const _0x283f85=_0xd4ffd1['diffData'][_0x20e068]['attachChange'];_0x283f85['isAttached']?(_0x2a8a2e['add'](_0x20e068),_0x2705e1['has'](_0x20e068)&&_0x2705e1['get'](_0x20e068)['userId']==_0x283f85['userId']?_0x2705e1['delete'](_0x20e068):_0x2705e1['set'](_0x20e068,_0x283f85)):_0x2705e1['has'](_0x20e068)?(_0x2a8a2e['delete'](_0x20e068),_0x2705e1['delete'](_0x20e068)):(_0x2a8a2e['add'](_0x20e068),_0x2705e1['set'](_0x20e068,_0x283f85));}else _0x2a8a2e['add'](_0x20e068);}for(const _0x55416d of _0x2a8a2e){const _0x23d937=_0x2705e1['has'](_0x55416d)&&!_0x2705e1['get'](_0x55416d)['isAttached'];let _0x29f95d=_0x23d937?_0x2ef095['length']-0x1:0x0;const _0x8b470f=_0x23d937?-0x1:0x1;for(;_0x2ef095[_0x29f95d];){const _0x3d2087=_0x2ef095[_0x29f95d];if(_0x3d2087['diffData'][_0x55416d]){const _0x20121c=_0x23d937?_0x3d2087['diffData'][_0x55416d]['attributesBefore']:_0x3d2087['diffData'][_0x55416d]['attributesAfter'];_0x20d454['attributes'][_0x55416d]=_0x20121c?_0x5ac5f2(_0x20121c):{};break;}_0x29f95d+=_0x8b470f;}}for(const _0x38d1d6 of _0x2ef095){_0x38d1d6['model']={};for(const _0x4e5708 of _0x38d1d6['authors'])_0x54eca9['set'](_0x4e5708['id'],_0x4e5708);for(const _0x24752b of _0x2a8a2e){const _0x3cdce2=_0x38d1d6['diffData'][_0x24752b]?_0x38d1d6['diffData'][_0x24752b]['insertions']:'[]',_0x5b23ee=_0x38d1d6['diffData'][_0x24752b]?_0x38d1d6['diffData'][_0x24752b]['deletions']:'[]';_0x38d1d6['model'][_0x24752b]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3cdce2),'deletions':this['_utils']['_makeModelFromViewString'](_0x5b23ee)};}}for(const _0x180e2e of _0x2a8a2e){let _0x4c9d44=null,_0x3905f7=0x0;const _0x3d4d7d=new Map(Array['from'](_0x285acc['model'][_0x180e2e]['insertions']['markers'])['filter'](([_0x453770])=>!_0x453770['startsWith']('revision:')));let _0x61a242=0x0;for(const _0x5aecad of _0x2ef095){const _0x428209=this['_makeTape'](_0x5aecad['model'][_0x180e2e]['insertions']);_0x5aecad==_0x285acc?(_0x4c9d44=_0x428209,_0x3905f7=_0x4c9d44['length'],_0x4c9d44['forEach'](_0x4d5543=>{_0x4d5543['id']=_0x61a242++;}),this['_processTape'](_0x4c9d44)):this['_markInsertions'](_0x4c9d44,_0x428209);const _0x12cd5a=_0x4c9d44['filter'](_0x58bd26=>!_0x58bd26['isAdded'])['map'](_0x3f1a91=>_0x3f1a91['id']);let _0x2a6dcb=0x0;const _0x53e8fb=this['_makeTape'](_0x5aecad['model'][_0x180e2e]['deletions']);_0x53e8fb['forEach'](_0x4a6bb5=>{_0x4a6bb5['isRemoved']?_0x4a6bb5['id']=_0x3905f7++:_0x4a6bb5['id']=_0x12cd5a[_0x2a6dcb++];}),this['_processTape'](_0x53e8fb),this['_setDistance'](_0x4c9d44,'isAdded'),this['_setDistance'](_0x53e8fb,'isRemoved'),_0x5aecad==_0x285acc&&this['_markMarkers'](_0x4c9d44,_0x3d4d7d),_0x4c9d44=this['_joinTapes'](_0x4c9d44,_0x53e8fb),this['_refreshStartEndIndex'](_0x4c9d44),this['_setDistance'](_0x4c9d44,'isRemoved');}_0x4c9d44=_0x4c9d44['filter'](_0x2f64b1=>!(_0x2f64b1['isAdded']&&_0x2f64b1['isRemoved']));const _0x2fcd75=new Map(_0x36ad2d['model'][_0x180e2e]['deletions']['markers']),_0x1b6c8a=new Set(_0x3d4d7d['keys']());for(const _0x4c949d of _0x2fcd75['keys']())_0x1b6c8a['delete'](_0x4c949d);this['_markSuggestions'](_0x4c9d44,_0x1b6c8a),this['_fixObsoleteTags'](_0x4c9d44),_0x4c9d44=this['_removeMissingPairs'](_0x4c9d44),_0x4c9d44=this['_markMismatchedRemovedTags'](_0x4c9d44),_0x4c9d44=this['_removeUnsupportedChanges'](_0x4c9d44);const {root:_0x44f219,changes:_0x1e19be}=this['_makeModelFromTape'](_0x4c9d44,_0x54eca9,_0x180e2e);_0x20d454['model'][_0x180e2e]=_0x44f219;const _0x33f11f=_0x2705e1['get'](_0x180e2e);if(_0x33f11f){const _0x3d0e2d=_0x54eca9['get'](_0x33f11f['userId']),_0x54f127=new G({'author':_0x3d0e2d,'type':_0x33f11f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x180e2e});_0x1e19be['unshift'](_0x54f127),_0x20d454['attributes'][_0x180e2e]['revisionHistoryAttachChange']=_0x54f127['id'];}_0x20d454['changes']=_0x20d454['changes']['concat'](_0x1e19be);}return _0x20d454;}['_markMarkers'](_0x48213e,_0x1d26d4){for(let _0x105e85=0x0;_0x105e85<_0x48213e['length'];_0x105e85++)for(const [_0x356e26,_0x3a0b48]of _0x1d26d4)!_0x3a0b48['isCollapsed']&&_0x3a0b48['start']['isEqual'](_0x48213e[_0x105e85]['previousPosition'])&&_0x48213e[_0x105e85]['markersStart']['push'](_0x356e26),_0x3a0b48['end']['isEqual'](_0x48213e[_0x105e85]['nextPosition'])&&_0x48213e[_0x105e85]['markersEnd']['push'](_0x356e26);}['_joinTapes'](_0x5c9689,_0xbb1710){let _0x5ce9e8=[],_0x346558=0x0,_0x389ea2=0x0;for(;_0x346558<_0x5c9689['length']||_0x389ea2<_0xbb1710['length'];){const _0x194067=_0x5c9689[_0x346558]||{},_0xddbefd=_0xbb1710[_0x389ea2]||{};if(_0x194067['id']==_0xddbefd['id'])_0x346558++,_0x389ea2++,_0x5ce9e8['push'](_0x194067);else{if(_0xddbefd['isRemoved']&&_0x194067['isAdded']){const {commonTape:_0x9cead0,iEnd:_0x4e06c7,jEnd:_0x5ed122}=this['_threeWayMerge'](_0x5c9689,_0x346558,_0xbb1710,_0x389ea2);_0x5ce9e8=_0x5ce9e8['concat'](_0x9cead0),_0x346558=_0x4e06c7,_0x389ea2=_0x5ed122;}else _0xddbefd['isRemoved']?(_0x389ea2++,_0x5ce9e8['push'](_0xddbefd)):(_0x346558++,_0x5ce9e8['push'](_0x194067));}}return _0x5ce9e8;}['_markSuggestions'](_0x141103,_0x38ed2a){const _0x29adc3=[];for(let _0x47d219=0x0;_0x47d219<_0x141103['length'];_0x47d219++){for(let _0x35e661=0x0;_0x35e661<_0x141103[_0x47d219]['markersStart']['length'];_0x35e661++){const _0x1a89f0=_0x141103[_0x47d219]['markersStart'][_0x35e661];if(!_0x38ed2a['has'](_0x1a89f0))continue;const {group:_0x556230,type:_0x18a837,authorId:_0x95ea42}=_0x58b934(_0x1a89f0);'revision-suggestion'!=_0x556230||'insertion'!=_0x18a837&&'deletion'!=_0x18a837||(_0x29adc3['unshift']({'type':_0x18a837,'name':_0x1a89f0,'userId':_0x95ea42}),_0x141103[_0x47d219]['markersStart']['splice'](_0x35e661,0x1),_0x35e661--);}_0x13bc39(_0x141103[_0x47d219]);for(let _0x10d706=0x0;_0x10d706<_0x141103[_0x47d219]['markersEnd']['length'];_0x10d706++){const _0x5c641c=_0x141103[_0x47d219]['markersEnd'][_0x10d706];if(!_0x38ed2a['has'](_0x5c641c))continue;const {group:_0x1f8e26,type:_0x162eee}=_0x58b934(_0x5c641c);if('revision-suggestion'!=_0x1f8e26||'insertion'!=_0x162eee&&'deletion'!=_0x162eee)continue;_0x141103[_0x47d219]['markersEnd']['splice'](_0x10d706,0x1),_0x10d706--;const _0x232925=_0x29adc3['findIndex'](_0x35212e=>_0x35212e['name']==_0x5c641c);_0x232925>-0x1&&_0x29adc3['splice'](_0x232925,0x1);}}function _0x58b934(_0x26da8e){const _0x3945d6=_0x26da8e['split'](':');return{'group':_0x3945d6[0x0],'type':_0x3945d6[0x1],'subType':_0x3945d6['length']>=0x5?_0x3945d6[0x2]:null,'id':_0x3945d6['length']<0x5?_0x3945d6[0x2]:_0x3945d6[0x3],'authorId':_0x3945d6['length']<0x5?_0x3945d6[0x3]:_0x3945d6[0x4],'markerCount':0x6==_0x3945d6['length']?_0x3945d6[0x5]:null};}function _0x13bc39(_0x130816){for(let _0x279e52=0x0;_0x279e52<_0x29adc3['length'];_0x279e52++){if(_0x130816['isAdded']&&'insertion'==_0x29adc3[_0x279e52]['type']&&_0x130816['isAdded']['userId']==_0x29adc3[_0x279e52]['userId'])return _0x130816['isAddSuggestion']=_0x29adc3[_0x279e52],void delete _0x130816['isAdded'];if(!_0x130816['isAdded']&&!_0x130816['isRemoved']&&'deletion'==_0x29adc3[_0x279e52]['type'])return void(_0x130816['isRemoveSuggestion']=_0x29adc3[_0x279e52]);}}}['_setDistance'](_0x280bf5,_0x1fc0d6){let _0x2cd5cf=0x0,_0x4e0507=!0x1;const _0xc07185=new Map();for(const _0x158b59 of _0x280bf5)_0x158b59[_0x1fc0d6]?_0x4e0507&&(_0x2cd5cf++,_0x4e0507=!0x1):(_0x2cd5cf++,_0x4e0507=!0x0),_0xc07185['set'](_0x158b59['id'],_0x2cd5cf);for(let _0x5a11e2=0x0;_0x5a11e2<_0x280bf5['length'];_0x5a11e2++){if('isRemoved'==_0x1fc0d6&&_0x280bf5[_0x5a11e2]['isAdded']||'isAdded'==_0x1fc0d6&&_0x280bf5[_0x5a11e2]['isRemoved'])continue;if('text'==_0x280bf5[_0x5a11e2]['type']){_0x280bf5[_0x5a11e2]['distance']=0x0;continue;}const _0x5946ae=_0xc07185['get'](_0x280bf5[_0x5a11e2]['pairId']),_0x55680e=_0xc07185['get'](_0x280bf5[_0x5a11e2]['id']);_0x280bf5[_0x5a11e2]['distance']=_0x5946ae-_0x55680e;}}['_getRevisionsRange'](_0x5bc88b,_0x1c7d62,_0x4c2c2f=!0x1){const _0x352ad7=[];let _0x37f69b=this['repository']['getIndex'](_0x5bc88b),_0x2a258b=this['repository']['getIndex'](_0x1c7d62);for(-0x1==_0x2a258b&&(_0x2a258b=this['repository']['_revisions']['length'],_0x4c2c2f=!0x1);_0x37f69b<_0x2a258b;)_0x352ad7['push'](this['repository']['getRevision'](_0x37f69b)),_0x37f69b++;return _0x4c2c2f&&_0x352ad7['push'](this['repository']['getRevision'](_0x37f69b)),_0x352ad7;}['_threeWayMerge'](_0x568a37,_0x2c80ac,_0x4f8118,_0x2e320b){const _0x473cf4=this['editor']['model']['schema'];let _0x1cd18b=_0x2c80ac;for(;_0x568a37[_0x1cd18b]&&_0x568a37[_0x1cd18b]['isAdded'];)_0x1cd18b++;let _0xb712f7=_0x2e320b;for(;_0x4f8118[_0xb712f7]&&_0x4f8118[_0xb712f7]['isRemoved'];)_0xb712f7++;_0x9c55e9(_0x568a37,_0x2c80ac,_0x1cd18b),_0x9c55e9(_0x4f8118,_0x2e320b,_0xb712f7);const _0x53c9f7=_0x4f8118['slice'](_0x2e320b,_0xb712f7)['concat'](_0x568a37['slice'](_0x2c80ac,_0x1cd18b));return _0x53c9f7['sort']((_0x1ae23f,_0x534578)=>_0x1ae23f['side']!=_0x534578['side']?_0x1ae23f['side']-_0x534578['side']:_0x1ae23f['level']!=_0x534578['level']?_0x1ae23f['level']-_0x534578['level']:_0x1ae23f['distance']!=_0x534578['distance']?_0x534578['distance']-_0x1ae23f['distance']:!!_0x1ae23f['isAdded']!=!!_0x534578['isAdded']?-0x1==_0x1ae23f['side']||0x0==_0x1ae23f['side']?_0x1ae23f['isAdded']?-0x1:0x1:_0x1ae23f['isAdded']?0x1:-0x1:_0x1ae23f['index']-_0x534578['index']),{'commonTape':_0x53c9f7,'iEnd':_0x1cd18b,'jEnd':_0xb712f7};function _0x9c55e9(_0x21f571,_0x408dd6,_0xc33924){let _0x547173=-0x1,_0x58616b=Number['POSITIVE_INFINITY'],_0x1f705d=!0x0;for(let _0xfd7f03=_0x408dd6;_0xfd7f03<_0xc33924;_0xfd7f03++)if(_0x473cf4['isInline'](_0x21f571[_0xfd7f03]['item'])||(_0x1f705d=!0x1),_0x21f571[_0xfd7f03]['item']['startIndex']<_0x408dd6&&(_0x547173=_0xfd7f03),_0x21f571[_0xfd7f03]['item']['endIndex']>=_0xc33924){_0x58616b=_0xfd7f03;break;}_0x1f705d&&(_0x547173=_0xc33924-0x1);for(let _0x577d51=_0x408dd6;_0x577d51<_0xc33924;_0x577d51++)_0x21f571[_0x577d51]['side']=_0x577d51<=_0x547173?-0x1:_0x577d51<_0x58616b?0x0:0x1,_0x21f571[_0x577d51]['index']=_0x577d51;let _0x5a3780=0x0;for(let _0x43923b=_0x408dd6;_0x43923b<=_0x547173;_0x43923b++)0x0==_0x21f571[_0x43923b]['distance']?_0x21f571[_0x43923b]['level']=_0x5a3780:(_0x5a3780++,_0x21f571[_0x43923b]['level']=_0x5a3780,_0x5a3780++);for(let _0x2cbe84=_0x408dd6;_0x2cbe84<_0xc33924;_0x2cbe84++)0x0==_0x21f571[_0x2cbe84]['side']&&(_0x21f571[_0x2cbe84]['level']=_0x5a3780);_0x5a3780=0x0;for(let _0x39703c=_0xc33924-0x1;_0x39703c>=_0x58616b;_0x39703c--)0x0==_0x21f571[_0x39703c]['distance']?_0x21f571[_0x39703c]['level']=_0x5a3780:(_0x5a3780--,_0x21f571[_0x39703c]['level']=_0x5a3780,_0x5a3780--);}}['_fixObsoleteTags'](_0x2228b3){const _0x35ff9f=new Map(),_0x3cee94=this['editor']['model']['schema'];for(let _0x1bc0b3=0x1;_0x1bc0b3<_0x2228b3['length'];_0x1bc0b3++){let _0x4700d3,_0x47bb5c,_0x57169f;const _0x2d6509=_0x2228b3[_0x1bc0b3],_0x28f065=_0x2228b3[_0x1bc0b3-0x1];if('text'==_0x2d6509['type'])continue;if(_0x2d6509['type']!=_0x28f065['type'])continue;if(!_0x3cee94['isBlock'](_0x28f065['item'])||_0x3cee94['isLimit'](_0x28f065['item']))continue;if(!_0x3cee94['isBlock'](_0x2d6509['item'])||_0x3cee94['isLimit'](_0x2d6509['item']))continue;if((_0x2228b3[_0x1bc0b3]['isAdded']||_0x2228b3[_0x1bc0b3]['isAddSuggestion'])&&_0x2228b3[_0x1bc0b3-0x1]['isRemoved'])_0x4700d3=_0x2228b3[_0x1bc0b3],_0x47bb5c=_0x2228b3[_0x1bc0b3-0x1],_0x57169f=_0x1bc0b3-0x1;else{if(!_0x2228b3[_0x1bc0b3]['isRemoved']||!_0x2228b3[_0x1bc0b3-0x1]['isAdded']&&!_0x2228b3[_0x1bc0b3-0x1]['isAddSuggestion'])continue;_0x4700d3=_0x2228b3[_0x1bc0b3-0x1],_0x47bb5c=_0x2228b3[_0x1bc0b3],_0x57169f=_0x1bc0b3;}const _0xd8f843=_0x4700d3['level']==_0x47bb5c['level'],_0xb59897=Math['abs'](_0x4700d3['level'])<Math['abs'](_0x47bb5c['level'])&&0x0==_0x47bb5c['distance'];(_0xd8f843||_0xb59897)&&(_0x35ff9f['set'](_0x47bb5c['id'],_0x4700d3['id']),_0x2228b3['splice'](_0x57169f,0x1),_0x1bc0b3--,_0x4700d3['isAdded']=!0x1);}for(let _0x14c1a9=0x0;_0x14c1a9<_0x2228b3['length'];_0x14c1a9++)_0x35ff9f['has'](_0x2228b3[_0x14c1a9]['pairId'])&&(_0x2228b3[_0x14c1a9]['pairId']=_0x35ff9f['get'](_0x2228b3[_0x14c1a9]['pairId']));}['_removeMissingPairs'](_0x1e933a){const _0x4db302=new Set(_0x1e933a['map'](_0x3d01af=>_0x3d01af['id']));for(let _0x3f6c29=0x0;_0x3f6c29<_0x1e933a['length'];_0x3f6c29++)_0x4db302['has'](_0x1e933a[_0x3f6c29]['pairId'])||0x0==_0x1e933a[_0x3f6c29]['distance']||(_0x1e933a[_0x3f6c29]['isIncorrect']=!0x0);return _0x1e933a['filter'](_0x2e9f34=>!_0x2e9f34['isIncorrect']);}['_markMismatchedRemovedTags'](_0x195ea2){const _0xad0610=new Set();for(let _0x51c9c4=0x0;_0x51c9c4<_0x195ea2['length'];_0x51c9c4++){if(_0xad0610['has'](_0x195ea2[_0x51c9c4]['id'])&&_0x195ea2[_0x51c9c4]['isRemoved']&&(_0x195ea2[_0x51c9c4]['isIncorrect']=!0x0),_0x195ea2[_0x51c9c4]['isIncorrect'])continue;if(0x0==_0x195ea2[_0x51c9c4]['distance'])continue;if('elementStart'!=_0x195ea2[_0x51c9c4]['type'])continue;if(null==_0x195ea2[_0x51c9c4]['pairId'])continue;let _0x2f51c3=_0x51c9c4+0x1,_0x2945c6=0x0;for(;_0x195ea2[_0x2f51c3]['id']!=_0x195ea2[_0x51c9c4]['pairId'];)'elementStart'==_0x195ea2[_0x2f51c3]['type']?_0x2945c6++:'elementEnd'==_0x195ea2[_0x2f51c3]['type']&&_0x2945c6--,_0x2f51c3++;if(0x0!=_0x2945c6){if(_0x195ea2[_0x51c9c4]['isRemoved'])_0x195ea2[_0x51c9c4]['isIncorrect']=!0x0;else{for(;_0x2f51c3!=_0x51c9c4;)_0x195ea2[_0x2f51c3]['isRemoved']&&0x0!=_0x195ea2[_0x2f51c3]['distance']&&(_0x195ea2[_0x2f51c3]['isIncorrect']=!0x0,_0xad0610['add'](_0x195ea2[_0x2f51c3]['pairId'])),_0x2f51c3--;}}}return _0x195ea2['filter'](_0x48320f=>!_0x48320f['isIncorrect']);}['_removeUnsupportedChanges'](_0xe50b9e){const _0x40d05c=this['editor']['model']['schema'];for(let _0x29f40f=0x0;_0x29f40f<_0xe50b9e['length'];_0x29f40f++){if(!(_0xe50b9e[_0x29f40f]['isAdded']||_0xe50b9e[_0x29f40f]['isAddSuggestion']||_0xe50b9e[_0x29f40f]['isRemoved']||_0xe50b9e[_0x29f40f]['isRemoveSuggestion']))continue;if(0x0==_0xe50b9e[_0x29f40f]['distance'])continue;const _0x82c71c=_0xe50b9e[_0x29f40f]['item'];_0x40d05c['isBlock'](_0x82c71c)||_0x40d05c['isLimit'](_0x82c71c)||(_0xe50b9e[_0x29f40f]['isAdded']&&delete _0xe50b9e[_0x29f40f]['isAdded'],_0xe50b9e[_0x29f40f]['isAddSuggestion']&&delete _0xe50b9e[_0x29f40f]['isAddSuggestion'],_0xe50b9e[_0x29f40f]['isRemoveSuggestion']&&delete _0xe50b9e[_0x29f40f]['isRemoveSuggestion'],_0xe50b9e[_0x29f40f]['isRemoved']&&(_0xe50b9e[_0x29f40f]['isIncorrect']=!0x0));}return _0xe50b9e['filter'](_0x4474d2=>!_0x4474d2['isIncorrect']);}['_makeModelFromTape'](_0x2ac613,_0x203dd2,_0x9be927){const _0x2b40b4=new _0x2a83e1(),_0x46fa20=[],_0x47ee83=new Map(),_0x20418d=this['editor']['model'],_0x32a3c7=_0x20418d['schema'],_0x50d384=[_0x2b40b4],_0x118b62={},_0x5c6182={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x56f01d=null;const _0x3a3015=[0x0];for(let _0x7d3abe=0x0;_0x7d3abe<_0x2ac613['length'];_0x7d3abe++)if('elementStart'===_0x2ac613[_0x7d3abe]['type']){_0x2ac613[_0x7d3abe]['previousPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015);const _0x2b9c92=new _0x209ccd(_0x2ac613[_0x7d3abe]['item']['name'],_0x2ac613[_0x7d3abe]['item']['getAttributes']());_0x50d384[0x0]['_appendChild'](_0x2b9c92),_0x3a3015['push'](0x0),_0x50d384['unshift'](_0x2b9c92),_0x2ac613[_0x7d3abe]['nextPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015);}else'elementEnd'===_0x2ac613[_0x7d3abe]['type']?(_0x50d384['shift'](),_0x2ac613[_0x7d3abe]['previousPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015),_0x3a3015['pop'](),_0x3a3015[_0x3a3015['length']-0x1]++,_0x2ac613[_0x7d3abe]['nextPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015)):(_0x2ac613[_0x7d3abe]['previousPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015),_0x56f01d?_0x56f01d['_data']+=_0x2ac613[_0x7d3abe]['item']['data']:_0x56f01d=new _0x5bf09c(_0x2ac613[_0x7d3abe]['item']['data'],_0x2ac613[_0x7d3abe]['item']['getAttributes']()),_0x2ac613[_0x7d3abe+0x1]&&'text'===_0x2ac613[_0x7d3abe+0x1]['type']&&_0x1c7207(_0x56f01d,_0x2ac613[_0x7d3abe+0x1]['item'])||(_0x50d384[0x0]['_appendChild'](_0x56f01d),_0x56f01d=null),_0x3a3015[_0x3a3015['length']-0x1]+=_0x2ac613[_0x7d3abe]['item']['offsetSize'],_0x2ac613[_0x7d3abe]['nextPosition']=_0x20418d['createPositionFromPath'](_0x2b40b4,_0x3a3015));for(let _0x5d7d4a=0x0;_0x5d7d4a<_0x2ac613['length'];_0x5d7d4a++){const _0x1ea611=_0x2ac613[_0x5d7d4a]['previousPosition'],_0x51a5a4=_0x2ac613[_0x5d7d4a]['nextPosition'];for(const _0x3a2efa of _0x2ac613[_0x5d7d4a]['markersStart'])_0x47ee83['set'](_0x3a2efa,{'start':_0x1ea611,'end':null});_0x463ddf('isRemoveSuggestion',_0x5d7d4a,_0x1ea611,_0x51a5a4),_0x463ddf('isAddSuggestion',_0x5d7d4a,_0x1ea611,_0x51a5a4),_0x463ddf('isRemoved',_0x5d7d4a,_0x1ea611,_0x51a5a4),_0x463ddf('isAdded',_0x5d7d4a,_0x1ea611,_0x51a5a4);for(const _0x59570a of _0x2ac613[_0x5d7d4a]['markersEnd']){const _0x289a5e=_0x47ee83['get'](_0x59570a);_0x289a5e?_0x289a5e['end']=_0x51a5a4:_0x47ee83['set'](_0x59570a,{'start':_0x51a5a4,'end':_0x51a5a4});}}for(const [_0x345a5b,_0xe610c3]of _0x47ee83){const _0x8908ea=this['editor']['model']['createRange'](_0xe610c3['start'],_0xe610c3['end']);_0x2b40b4['markers']['set'](_0x345a5b,_0x8908ea);}return _0x46fa20['sort']((_0x2de9e6,_0xaef7e6)=>{const _0x4c6225=_0x2b40b4['markers']['get']('revision:'+_0x2de9e6['id']),_0x25d9b4=_0x2b40b4['markers']['get']('revision:'+_0xaef7e6['id']);return _0x4c6225['start']['isBefore'](_0x25d9b4['start'])?-0x1:_0x4c6225['start']['isAfter'](_0x25d9b4['start'])?0x1:_0x4c6225['end']['isBefore'](_0x25d9b4['end'])?-0x1:_0x4c6225['end']['isAfter'](_0x25d9b4['end'])?0x1:'add'===_0x2de9e6['type']?-0x1:0x1;}),{'root':_0x2b40b4,'changes':_0x46fa20};function _0x463ddf(_0x13fa3d,_0x2fe4e0,_0x1f7447,_0x428329){const _0x5d6791=!!_0x2ac613[_0x2fe4e0][_0x13fa3d],_0x12f3e6=_0x5d6791?_0x2ac613[_0x2fe4e0][_0x13fa3d]['userId']:null,_0x5bc396=_0x2fe4e0===_0x2ac613['length']-0x1,_0x31ff93=_0x5c6182[_0x13fa3d][0x0],_0x14782a=_0x32a3c7['isObject'](_0x2ac613[_0x2fe4e0]['item']);!_0x118b62[_0x13fa3d]&&_0x5d6791?_0x118b62[_0x13fa3d]={'start':_0x1f7447,'tapeItem':_0x2ac613[_0x2fe4e0],'userId':_0x12f3e6,'type':_0x13fa3d}:_0x118b62[_0x13fa3d]&&!_0x5d6791?(_0x118b62[_0x13fa3d]['end']=_0x1f7447,_0x1d1180(_0x118b62[_0x13fa3d]),_0x118b62[_0x13fa3d]=null):_0x118b62[_0x13fa3d]&&_0x5d6791&&_0x118b62[_0x13fa3d]['userId']!==_0x12f3e6&&(_0x118b62[_0x13fa3d]['end']=_0x1f7447,_0x31ff93&&_0x31ff93['userId']===_0x118b62[_0x13fa3d]['userId']||_0x1d1180(_0x118b62[_0x13fa3d]),_0x118b62[_0x13fa3d]={'start':_0x1f7447,'tapeItem':_0x2ac613[_0x2fe4e0],'userId':_0x12f3e6,'type':_0x13fa3d}),_0x118b62[_0x13fa3d]&&_0x14782a&&('elementStart'!==_0x2ac613[_0x2fe4e0]['type']||_0x31ff93&&_0x31ff93['userId']===_0x12f3e6||_0x5c6182[_0x13fa3d]['unshift']({'userId':_0x12f3e6,'object':_0x2ac613[_0x2fe4e0]['item'],'change':_0x118b62[_0x13fa3d]}),'elementEnd'===_0x2ac613[_0x2fe4e0]['type']&&_0x31ff93&&_0x31ff93['object']===_0x2ac613[_0x2fe4e0]['item']&&(_0x5c6182[_0x13fa3d]['shift'](),_0x118b62[_0x13fa3d]=_0x31ff93['change'])),_0x118b62[_0x13fa3d]&&_0x5bc396&&(_0x118b62[_0x13fa3d]['end']=_0x428329,_0x1d1180(_0x118b62[_0x13fa3d]),_0x118b62[_0x13fa3d]=null);}function _0x1d1180({start:_0x558f8b,end:_0x360a11,tapeItem:_0x36b241,userId:_0x343e92,type:_0x34ba69}){const _0x56a2ad=_0x36b241['item'],_0x4dbbe6=_0x20418d['schema']['isBlock'](_0x56a2ad)&&!_0x20418d['schema']['isLimit'](_0x56a2ad),_0x15d955=_0x558f8b['nodeAfter']==_0x360a11['parent']&&_0x360a11['isAtStart'];if(_0x4dbbe6&&_0x15d955)return;const _0x115f9d=_0x20418d['createRange'](_0x558f8b,_0x360a11),_0x410036=_0x203dd2['get'](_0x343e92),_0x11e484=new G({'author':_0x410036,'type':'isAdded'==_0x34ba69||'isAddSuggestion'==_0x34ba69?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x34ba69||'isRemoveSuggestion'==_0x34ba69},'createdAt':new Date(),'rootName':_0x9be927});_0x46fa20['push'](_0x11e484),_0x2b40b4['markers']['set']('revision:'+_0x11e484['id'],_0x115f9d);}function _0x1c7207(_0x5eb25a,_0x241088){const _0x6a0d2f=_0x5eb25a['getAttributes'](),_0x2c4867=_0x241088['getAttributes']();for(const _0x4ca37d of _0x6a0d2f){if(_0x4ca37d[0x1]!==_0x241088['getAttribute'](_0x4ca37d[0x0]))return!0x1;_0x2c4867['next']();}return _0x2c4867['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2eb7d2=>{const _0x43e12e=_0x2eb7d2['markerName']['split'](':')[0x1],_0x4fecf6=this['_getChangeFromId'](_0x43e12e);if(!_0x4fecf6)return null;const _0x1e741f='add'==_0x4fecf6['type']?'insertion':'deletion',_0x2ee981=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1e741f];return _0x4fecf6['data']['isSuggestion']&&_0x2ee981['push']('ck-suggestion-marker-'+_0x1e741f+'-new'),this['activeChange']==_0x4fecf6&&_0x2ee981['push']('ck-suggestion-marker--active'),{'classes':_0x2ee981,'attributes':{'data-change-id':_0x43e12e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x42f757=>{_0x42f757['on']('element:pre',(_0x1b218f,_0x215912,_0x15f1d6)=>{const _0x32bd2a=_0x215912['viewItem']['getChild'](0x0);if(!_0x32bd2a||!_0x32bd2a['is']('element','code'))return;if(!_0x15f1d6['consumable']['consume'](_0x32bd2a,{'attributes':['vid_start','vid_end']}))return;const _0x417bf8=_0x215912['modelRange']['start']['nodeAfter'];_0x15f1d6['writer']['setAttribute']('vid_start',_0x32bd2a['getAttribute']('vid_start'),_0x417bf8),_0x15f1d6['writer']['setAttribute']('vid_end',_0x32bd2a['getAttribute']('vid_end'),_0x417bf8);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x9e1f82=>{_0x9e1f82['on']('element',(_0x9bc992,_0x3709fb,_0x5cc0f0)=>{if(!_0x5cc0f0['consumable']['consume'](_0x3709fb['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3709fb['modelRange']['isCollapsed'])return;const _0x4b3c00=_0x3709fb['modelRange']['start']['nodeAfter'];_0x4b3c00['hasAttribute']('vid_start')||_0x4b3c00['hasAttribute']('vid')||(_0x5cc0f0['writer']['setAttribute']('vid_start',_0x3709fb['viewItem']['getAttribute']('vid_start'),_0x4b3c00),_0x5cc0f0['writer']['setAttribute']('vid_end',_0x3709fb['viewItem']['getAttribute']('vid_end'),_0x4b3c00));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb11dde=>_0xb11dde['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x9e0023,[,_0x4b101c])=>{['vid_start','vid_end','vid']['includes'](_0x4b101c)&&(_0x9e0023['return']=!0x0,_0x9e0023['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x46d903=>{_0x46d903['on']('attribute:vid',(_0x5a869f,_0x196d29,_0x58ec07)=>{if('\x20'!=_0x196d29['item']['data']||_0x196d29['item']['parent']['maxOffset']>0x1)return;if(!_0x58ec07['consumable']['consume'](_0x196d29['item'],_0x5a869f['name']))return;const _0x28ba33=_0x58ec07['writer'],_0x149da6=_0x58ec07['mapper']['toViewRange'](_0x196d29['range']);_0x28ba33['wrap'](_0x149da6,_0x28ba33['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x597cad){const _0x4218d0=_0x597cad['plugins']['get']('RevisionViewer');return(_0x439217,_0x1cf43a,_0x3b7e9b)=>{const _0x1ba67e=_0x1cf43a['markerName']['split'](':')[0x1],_0x50e21f=_0x4218d0['_getChangeFromId'](_0x1ba67e);if(!_0x50e21f)return null;const _0x1985b5='add'==_0x50e21f['type']?'split':'merge';if(!_0x3b7e9b['consumable']['test'](_0x1cf43a['markerRange'],_0x439217['name']))return;const _0xf0e400=_0x1cf43a['markerRange']['getWalker'](),_0x4a048a=_0x1cf43a['markerRange']['start'],_0x19943b=_0x597cad['model']['schema'];let _0x3e200e=null,_0x14c279=null,_0x500633=!0x1,_0x1efa93=!0x1;for(const _0x528b61 of _0xf0e400){const _0x562d1e=_0x528b61['item'];_0x500633=_0x500633||_0x19943b['isContent'](_0x562d1e);const _0x1eeed3=_0x3b7e9b['mapper']['toViewElement'](_0x562d1e);if(_0x1eeed3&&_0x1eeed3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x528b61['type']&&(_0x19943b['isBlock'](_0x562d1e)&&!_0x19943b['isLimit'](_0x562d1e)&&(_0x562d1e['nextSibling']||_0x4a048a['isAtEnd']?_0x3e200e&&_0x3e200e['parent']==_0x562d1e||(_0x3e200e=_0x562d1e,_0x790b0e(_0x528b61['previousPosition']),_0x1efa93=!0x0):_0x14c279=_0x14c279||_0x528b61['previousPosition']));}function _0x790b0e(_0x1cc3c2){const _0x5d35ad=_0x3b7e9b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1985b5}),_0x172a11=_0x3b7e9b['mapper']['toViewPosition'](_0x1cc3c2);_0x50e21f['data']['isSuggestion']&&_0x3b7e9b['writer']['addClass']('ck-suggestion-marker-'+_0x1985b5+'-new',_0x5d35ad),_0x4218d0['activeChange']==_0x50e21f&&_0x3b7e9b['writer']['addClass']('ck-suggestion-marker--active',_0x5d35ad),_0x3b7e9b['writer']['insert'](_0x172a11,_0x5d35ad),_0x3b7e9b['mapper']['bindElementToMarker'](_0x5d35ad,_0x1cf43a['markerName']);}_0x500633||_0x1efa93||!_0x14c279||_0x790b0e(_0x14c279);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1b9001,_0x15f7d5,_0x524f65)=>{const _0x2c75dc=_0x524f65['mapper']['markerNameToElements'](_0x15f7d5['markerName']);if(_0x2c75dc){for(const _0x380fd1 of _0x2c75dc)(_0x380fd1['hasClass']('ck-suggestion-marker-split')||_0x380fd1['hasClass']('ck-suggestion-marker-merge'))&&(_0x524f65['mapper']['unbindElementFromMarkerName'](_0x380fd1,_0x15f7d5['markerName']),_0x524f65['writer']['remove'](_0x380fd1));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xa2483f,_0x52c6c9,_0x51ed08)=>{const _0xd11766=_0x52c6c9['markerName']['split'](':')[0x1],_0x2dbbba=this['_getChangeFromId'](_0xd11766);if(!_0x2dbbba)return null;const _0x31446d='add'==_0x2dbbba['type']?'split':'merge';if(_0x51ed08['consumable']['test'](_0x52c6c9['markerRange'],_0xa2483f['name']))for(const _0x24c065 of _0x52c6c9['markerRange']['getItems']()){if(!_0x24c065['is']('element','softBreak'))continue;const _0x1cd3f5=_0x51ed08['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31446d}),_0x19cedd=_0x51ed08['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x24c065));_0x2dbbba['data']['isSuggestion']&&_0x51ed08['writer']['addClass']('ck-suggestion-marker-'+_0x31446d+'-new',_0x1cd3f5),this['activeChange']==_0x2dbbba&&_0x51ed08['writer']['addClass']('ck-suggestion-marker--active',_0x1cd3f5),_0x51ed08['writer']['insert'](_0x19cedd,_0x1cd3f5),_0x51ed08['mapper']['bindElementToMarker'](_0x1cd3f5,_0x52c6c9['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x576450=>{for(const _0x48c67f of this['editor']['model']['document']['getRootNames']()){const _0x5c9f1d=this['editor']['model']['document']['getRoot'](_0x48c67f),_0x3e0cf7=this['editor']['editing']['view']['document']['getRoot'](_0x48c67f);if(_0x3e0cf7){const _0x31d6c6=_0x5c9f1d['getAttribute']('revisionHistoryAttachChange');if(_0x576450['removeAttribute']('data-change-id',_0x3e0cf7),_0x576450['removeClass']('ck-revision-history-root-add',_0x3e0cf7),_0x576450['removeClass']('ck-revision-history-root-remove',_0x3e0cf7),_0x576450['removeClass']('ck-revision-history-root--active',_0x3e0cf7),_0x31d6c6){const _0x2c1b4d=this['_getChangeFromId'](_0x31d6c6);if(!_0x2c1b4d)return null;_0x576450['setAttribute']('data-change-id',_0x31d6c6,_0x3e0cf7),_0x576450['addClass']('ck-revision-history-root-'+_0x2c1b4d['type'],_0x3e0cf7),this['activeChange']==_0x2c1b4d&&_0x576450['addClass']('ck-revision-history-root--active',_0x3e0cf7);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x593181=>'revision-comment:'+_0x593181,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x84d999=>'revision-suggestion:'+_0x84d999,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x53514b=>({'name':'suggestion:'+_0x53514b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x14156c=>{const _0x4926aa=_0x14156c['markerName']['split'](':')[0x1];return'insertion'!=_0x4926aa&&'deletion'!=_0x4926aa?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4926aa]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2f29e7,_0x148340,_0x188d07)=>{const _0x353e18=_0x188d07['mapper']['markerNameToElements'](_0x148340['markerName']);if(_0x353e18){for(const _0x37e1e9 of _0x353e18)_0x37e1e9['is']('uiElement')&&(_0x188d07['mapper']['unbindElementFromMarkerName'](_0x37e1e9,_0x148340['markerName']),_0x188d07['writer']['remove'](_0x37e1e9));}},{'priority':'high'});}['_getChangeFromId'](_0x56057){return this['_changeIdToChange']['get'](_0x56057);}['_getViewForChange'](_0x706c14){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x706c14),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3dc670,_0x5328c0,_0x31d958,_0x1d283a)=>{_0x1d283a&&this['_balloon']['remove'](_0x1d283a),_0x31d958&&(this['_balloon']['add']({'view':_0x31d958,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x118519=this['editor']['editing'],_0x23895d=this['_getChangeFromId'](_0x31d958['changeId']);let _0x527b49;if(_0x23895d['data']['isOnRoot']){const _0x85e9a4=_0x118519['view']['getDomRoot'](_0x23895d['rootName']);_0x527b49=Array['from'](_0x85e9a4['getClientRects']());}else{const _0x5aaa1e=this['editor']['model']['markers']['get']('revision:'+_0x31d958['changeId']);_0x527b49=Array['from'](_0x118519['mapper']['markerNameToElements'](_0x5aaa1e['name']))['map'](_0x548ef0=>_0x118519['view']['domConverter']['mapViewToDom'](_0x548ef0))['map'](_0x1dfe1c=>Array['from'](_0x1dfe1c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x527b49[0x0];return _0x527b49['find'](_0x4777f5=>_0x4777f5['top']-0x3<=this['_activeViewTarget']['y']&&_0x4777f5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4777f5['left']-0x3<=this['_activeViewTarget']['x']&&_0x4777f5['right']+0x3>=this['_activeViewTarget']['x'])||_0x527b49[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4f6ff1,_0x482b89,_0x3adec8,_0x555f6e)=>{this['activeView']=_0x3adec8?this['_getViewForChange'](_0x3adec8):null,this['editor']['model']['change'](()=>{const _0x3b79a2=this['editor']['editing'];_0x555f6e&&(_0x555f6e['data']['isOnRoot']?_0x3b79a2['view']['change'](_0xe47ced=>{_0xe47ced['removeClass']('ck-revision-history-root--active',_0x3b79a2['view']['document']['getRoot'](_0x555f6e['rootName']));}):_0x3b79a2['reconvertMarker']('revision:'+_0x555f6e['id'])),_0x3adec8&&(_0x3adec8['data']['isOnRoot']?_0x3b79a2['view']['change'](_0xa9cdc=>{_0xa9cdc['addClass']('ck-revision-history-root--active',_0x3b79a2['view']['document']['getRoot'](_0x3adec8['rootName']));}):_0x3b79a2['reconvertMarker']('revision:'+_0x3adec8['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x577982,_0x47ff13)=>{if(this['activeChange'])return;const _0x3cea05=this['_findChangeIdFromDomTarget'](_0x47ff13['target']),_0x5dab5d=this['_changeIdToChange']['get'](_0x3cea05);_0x5dab5d?(this['_activeViewTarget']={'x':_0x47ff13['domEvent']['x'],'y':_0x47ff13['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5dab5d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x37ccd6,_0x13307d)=>{const _0x3939b2=this['_findChangeIdFromDomTarget'](_0x13307d['target']),_0x540498=this['_changeIdToChange']['get'](_0x3939b2);_0x540498?(this['_activeViewTarget']={'x':_0x13307d['domEvent']['x'],'y':_0x13307d['domEvent']['y']},_0x540498===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x540498):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5a674e){do{const _0x4aa6ea=_0x5a674e['getAttribute']('data-change-id');if(_0x4aa6ea)return _0x4aa6ea;_0x5a674e=_0x5a674e['parent'];}while(_0x5a674e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4ff3eb=>{for(const _0x305077 of this['editor']['model']['markers'])_0x4ff3eb['removeMarker'](_0x305077);});}}function Q(_0x2fe23c,_0x2f21d1){return(_0x5cf3d2,_0x66ce03,_0x133e1b)=>{if(!_0x133e1b['consumable']['test'](_0x66ce03['markerRange'],_0x5cf3d2['name']))return;const _0x12c585=_0x66ce03['markerRange']['getWalker'](),_0x36c535=_0x66ce03['markerRange']['start'],_0x166793=_0x2fe23c['model']['schema'];let _0x2d9435=null,_0x4c25da=null,_0x1e9204=!0x1,_0x39be6e=!0x1;for(const _0x2d4340 of _0x12c585){const _0x3a61b3=_0x2d4340['item'];_0x1e9204=_0x1e9204||_0x166793['isContent'](_0x3a61b3);const _0x181d34=_0x133e1b['mapper']['toViewElement'](_0x3a61b3);if(_0x181d34&&_0x181d34['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d4340['type']&&(_0x166793['isBlock'](_0x3a61b3)&&!_0x166793['isLimit'](_0x3a61b3)&&(_0x3a61b3['nextSibling']||_0x36c535['isAtEnd']?_0x2d9435&&_0x2d9435['parent']==_0x3a61b3||(_0x2d9435=_0x3a61b3,_0x59f988(_0x2d4340['previousPosition']),_0x39be6e=!0x0):_0x4c25da=_0x4c25da||_0x2d4340['previousPosition']));}function _0x59f988(_0x8b6f4f){const _0x1192f5=_0x133e1b['mapper']['toViewPosition'](_0x8b6f4f),_0x4def08=_0x133e1b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2f21d1});_0x133e1b['writer']['insert'](_0x1192f5,_0x4def08),_0x133e1b['mapper']['bindElementToMarker'](_0x4def08,_0x66ce03['markerName']);}_0x1e9204||_0x39be6e||!_0x4c25da||_0x59f988(_0x4c25da);};}class nt extends _0x316f0a{constructor(_0x925f94){super(_0x925f94);const _0x58e1c3=_0x925f94['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x58e1c3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x58e1c3,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x483873=this['editor'],_0xad965a=_0x483873['plugins']['get'](l),_0x54913b=_0xad965a['isReady']?_0xad965a['diff']['newRevisionId']:null;_0x483873['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x54913b);}['refresh'](){const {isReady:_0x5095a4,isEnabled:_0x33c788,repository:_0x5205fe,diff:_0x4b16c5}=this['editor']['plugins']['get'](l),_0x224d5d=_0x4b16c5&&_0x5205fe['getLaterVisibleRevision'](_0x4b16c5['newRevisionId']);this['isEnabled']=_0x5095a4&&_0x33c788&&Boolean(_0x224d5d);}}class ot extends _0x316f0a{['_step'];constructor(_0x3e07d1,{direction:_0x3c1d90}){super(_0x3e07d1);const _0x25cec0=_0x3e07d1['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x3c1d90?0x1:-0x1,this['listenTo'](_0x25cec0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x25cec0,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x25cec0,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x21268d=this['editor'],_0x4e6e77=_0x21268d['plugins']['get'](l),{isNavigationMode:_0x2b0bfa,currentChangeNumber:_0x164336}=_0x4e6e77;let _0x1c5bd2;if(_0x4e6e77['activeChange']=_0x2b0bfa?_0x4e6e77['diff']['changes']['get'](_0x164336+this['_step']):_0x4e6e77['diff']['changes']['first'],_0x4e6e77['activeChange']['data']['isOnRoot'])_0x1c5bd2=_0x21268d['editing']['view']['getDomRoot'](_0x4e6e77['activeChange']['rootName']);else{const _0x474117=_0x21268d['model']['markers']['get']('revision:'+_0x4e6e77['activeChange']['id']);_0x1c5bd2=_0x25f5d1(_0x21268d['editing'],_0x474117);}_0x205784({'target':_0x1c5bd2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x11ee75,currentChangeNumber:_0x10cd6,numberOfChanges:_0x358c03,isReady:_0x53d9f2,isEnabled:_0x46946d}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x46946d&&_0x53d9f2&&_0x358c03)&&(!_0x11ee75||(0x1===this['_step']?_0x10cd6<_0x358c03-0x1:_0x10cd6>0x0));}}class Ri extends _0x39ce7d{constructor(_0x2032d3){super(_0x2032d3);const _0x7cf3d4=this['bindTemplate'],_0x5546bb=new _0x1aaef3(_0x2032d3),_0x479ab6=new _0x1aaef3(_0x2032d3);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x11be19,_0x10320f)=>_0x11be19&&_0x10320f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4a4d4a,_0x4157d0,_0x2e78dc,_0x16cfdd)=>{if(!_0x4a4d4a)return R(_0x2032d3,'Loading...');if(!_0x2e78dc)return R(_0x2032d3,'No\x20changes');const _0x2b4c3a=R(_0x2032d3,'NUMBER_OF_CHANGES',_0x2e78dc);return _0x16cfdd?R(_0x2032d3,'X_OF_Y_CHANGES',[_0x4157d0+0x1,_0x2e78dc]):_0x2b4c3a;}),_0x5546bb['set']({'label':R(_0x2032d3,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5c7dca}),_0x479ab6['set']({'label':R(_0x2032d3,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x902f86}),_0x5546bb['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x479ab6['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5546bb['on']('execute',()=>this['fire']('execute','backward')),_0x479ab6['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x7cf3d4['if']('_isStatusLabelVisible','ck-hidden',_0x203600=>!_0x203600)]},'children':[{'text':_0x7cf3d4['to']('isNavigationMode',_0x397a32=>_0x397a32?R(_0x2032d3,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2032d3,'Total')+':\x20')}]},{'text':_0x7cf3d4['to']('_statusText')}]},new _0x50ead5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5546bb,_0x479ab6]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x261da3{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x491f61=this['editor']['editing']['view'];_0x491f61['change'](_0x480329=>{for(const _0x3fe1de of _0x491f61['document']['roots'])_0x480329['addClass'](ge,_0x3fe1de);});}['hide'](){const _0x2df96b=this['editor']['editing']['view'];_0x2df96b['change'](_0x4b7c93=>{for(const _0x19601e of _0x2df96b['document']['roots'])_0x4b7c93['removeClass'](ge,_0x19601e);});}}class u extends _0x261da3{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0xbf11c9=this['editor'],_0x58b4d3=_0xbf11c9['plugins']['get'](l),_0x34753b=_0xbf11c9['plugins']['get'](ji);_0xbf11c9['ui']['componentFactory']['add']('exitToEditing',_0x2ab4b5=>{const _0x5b1613=new _0x1aaef3(_0x2ab4b5);return _0x5b1613['set']({'label':R(_0x2ab4b5,'Back\x20to\x20editing'),'icon':_0x4fb0ee,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5b1613,'execute',()=>{_0xbf11c9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5b1613;}),_0xbf11c9['ui']['componentFactory']['add']('restoreRevision',_0x2220fc=>{const _0x44866c=new _0x1aaef3(_0x2220fc);return _0x44866c['set']({'label':R(_0x2220fc,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x44866c['bind']('isEnabled')['to'](_0xbf11c9['commands']['get']('restoreRevision')),this['listenTo'](_0x44866c,'execute',()=>_0xbf11c9['execute']('restoreRevision')),_0x44866c;}),_0xbf11c9['ui']['componentFactory']['add']('changesNavigation',_0x57f234=>{const _0x2dbaf9=new Ri(_0x57f234),_0x1a48c7=_0xbf11c9['commands']['get']('showPreviousChange'),_0x7aef7c=_0xbf11c9['commands']['get']('showNextChange');return _0x2dbaf9['bind']('isBackwardNavigationEnabled')['to'](_0x1a48c7,'isEnabled'),_0x2dbaf9['bind']('isForwardNavigationEnabled')['to'](_0x7aef7c,'isEnabled'),_0x2dbaf9['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x58b4d3),this['listenTo'](_0x2dbaf9,'execute',(_0x2b0d5a,_0x343467)=>{_0xbf11c9['execute']('forward'===_0x343467?'showNextChange':'showPreviousChange');}),_0x2dbaf9;}),_0x34753b['show'](),_0x58b4d3['on']('change:isReady',(_0x5083b2,_0x316876,_0x3a03e8)=>{_0x3a03e8?_0x34753b['hide']():_0x34753b['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x2a1079,_0x457401){super(_0x2a1079,_0x457401);const _0x50c0b9=this['bindTemplate'];this['set']({'label':R(_0x2a1079,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2a1079,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x50c0b9['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4cf4d0=this['fieldView']['element'];this['_tooltipString']=_0x4cf4d0['scrollWidth']>_0x4cf4d0['clientWidth']&&_0x4cf4d0['value']||'';}}class vi extends _0x39ce7d{constructor(_0x2c7ac6,_0x45be84,_0x23f169){super(_0x2c7ac6);const _0x33e045=new _0x1b1efb();_0x33e045['set']({'content':_0x18a77c,'viewBox':'0\x200\x2011\x2010'});const _0x28469b=['ck','ck-revision-history-sidebar__revision-author'];_0x23f169&&_0x28469b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x36aa2a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2c7ac6,_0x23f169?'Revision\x20creator':'Revision\x20author')},'children':[_0x33e045,_0x45be84['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x28469b},'children':_0x36aa2a});}}function mi(_0x450ed9,_0xa62d29){const _0x130e7c=_0x450ed9['bindTemplate'],_0x3b9b04=_0x450ed9['locale'],_0x35fc09=_0x1d6de6(_0x3b9b04);_0x35fc09['panelPosition']='sw';const _0x5ed7e4=function(_0x52414b,_0x360d6a){const _0x5991d6=function(_0x22c98f,_0x26d41a){const _0x5a4575=_0x22c98f['locale'],_0x397f69={'Compare\x20against\x20selected':R(_0x5a4575,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x5a4575,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x5a4575,'Restore\x20this\x20revision')};return _0x26d41a['map'](_0x3925a7=>{const _0x11129d=_0x397f69[_0x3925a7['name']];return _0x11129d&&_0x11129d!==_0x3925a7['name']&&(_0x3925a7['name']=_0x11129d),_0x3925a7;});}(_0x52414b,_0x360d6a),_0x53e161=new _0x33b3a9();for(const _0x3e511d of _0x5991d6){const _0x52d1e0={'type':'button','model':new to({'label':_0x3e511d['name'],'class':_0x3e511d['class'],'withText':!0x0,'role':'menuitem','_action':_0x3e511d['action']})};_0x52d1e0['model']['bind']('isEnabled')['to'](_0x52414b,'isActionsDropdownOpen',_0x689269=>'function'!=typeof _0x3e511d['isEnabled']||(!_0x689269||_0x3e511d['isEnabled'](_0x52414b))),_0x53e161['add'](_0x52d1e0);}return _0x53e161;}(_0x450ed9,_0xa62d29);return _0x450ed9['bind']('isActionsDropdownOpen')['to'](_0x35fc09,'isOpen'),_0x35fc09['buttonView']['set']({'label':R(_0x3b9b04,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xed22bc}),_0x35fc09['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x130e7c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x130e7c['to'](_0x29670b=>_0x29670b['stopPropagation']())}}),_0x35fc09['on']('execute',_0x1ba1ec=>{_0x450ed9['isReady']&&'function'==typeof _0x1ba1ec['source']['_action']&&_0x1ba1ec['source']['_action'](_0x450ed9);}),_0x429895(_0x35fc09,_0x5ed7e4,{'role':'menu'}),_0x35fc09['listenTo'](_0x450ed9,'change:isActionsDropdownOpen',(_0x5296c0,_0x32b9f6,_0x156bcc)=>{if(_0x156bcc)for(const _0x3a28d of _0x35fc09['listView']['items']){const _0x3df440=_0x3a28d['children']['first'],_0x2a9325=_0xa62d29['find'](_0x9cc42a=>_0x9cc42a['action']===_0x3df440['_action'])['isVisible'];_0x3a28d['isVisible']=void 0x0===_0x2a9325||_0x2a9325(_0x450ed9);}}),_0x35fc09;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x3f44dc(_0x39ce7d){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x9478ed,_0x14de19,_0x2edf4e,_0x44066f){super(_0x9478ed);const _0x146d2d=this['bindTemplate'],_0xf7028d=function(_0xb32e8,_0x46a539){const _0x4c3491=Array['from'](_0x46a539['authors'])['filter'](_0x4dd5a5=>_0x4dd5a5!=_0x46a539['creator']);return _0x46a539['creator']&&_0x4c3491['unshift'](_0x46a539['creator']),_0x4c3491['map'](_0x5c5e2d=>new vi(_0xb32e8,_0x5c5e2d,_0x5c5e2d==_0x46a539['creator']));}(_0x9478ed,_0x14de19);this['id']=_0x14de19['id'],this['_revision']=_0x14de19,this['_requireRevisionName']=_0x44066f,this['bind']('name','createdAt')['to'](_0x14de19),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4cf84f=>{return _0x5a3f47=_0x9478ed['uiLanguage'],(_0x48e1ce=_0x4cf84f)['toLocaleDateString'](_0x5a3f47,{'month':'long','day':'numeric'})+',\x20'+_0x48e1ce['toLocaleTimeString'](_0x5a3f47,{'hour':'numeric','minute':'numeric'});var _0x5a3f47,_0x48e1ce;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x9478ed,_0x5db9fb),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x57c3f2=>_0x57c3f2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xd4bd75,_0x1ca4ac)=>_0xd4bd75&&_0x1ca4ac),this['revisionActionsView']=_0x2edf4e&&_0x2edf4e['length']?mi(this,_0x2edf4e):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x146d2d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x146d2d['if']('isEnabled','ck-disabled',_0x5fed83=>!_0x5fed83),_0x146d2d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x146d2d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x146d2d['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x146d2d['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0xf7028d}]},this['revisionActionsView']],'on':{'click':_0x146d2d['to'](_0x4a044b=>{_0x4a044b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1ced0c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1ced0c,'change',()=>{this['_requireRevisionName']&&!_0x1ced0c['value']||this['fire']('setName',{'id':this['id'],'name':_0x1ced0c['value']}),_0x1ced0c['value']||(_0x1ced0c['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0xb70a78,_0x38a819){const _0x5d77ab=_0x35ab0c['fromJSDate'](_0xb70a78)['setLocale'](_0x38a819),_0x399621=_0x35ab0c['local'](),_0x178b2a=_0x399621['minus']({'days':0x1})['startOf']('day');let _0x5ecb29,_0x4e94e1;return _0x5d77ab['hasSame'](_0x399621,'day')?(_0x5ecb29=_0x5d77ab['startOf']('day')['toJSDate'](),_0x4e94e1=_0x5d77ab['toRelativeCalendar']()):_0x5d77ab['hasSame'](_0x178b2a,'day')?(_0x5ecb29=_0x178b2a['toJSDate'](),_0x4e94e1=_0x5d77ab['toRelativeCalendar']()):_0x5d77ab['hasSame'](_0x399621,'week')?(_0x5ecb29=_0x5d77ab['startOf']('week')['toJSDate'](),_0x4e94e1=_0x5d77ab['weekdayLong']||''):_0x5d77ab['hasSame'](_0x399621,'year')?(_0x5ecb29=_0x5d77ab['startOf']('month')['toJSDate'](),_0x4e94e1=_0x5d77ab['monthLong']||''):(_0x5ecb29=_0x5d77ab['startOf']('year')['toJSDate'](),_0x4e94e1=String(_0x5d77ab['year'])),{'startDate':_0x5ecb29,'localizedPeriodName':_0x4e94e1};}class fi extends _0x39ce7d{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xd5bab,_0x2b43f8,_0x57a615,_0x4e4e8f){super(_0xd5bab);const _0x29070e=bi(_0x2b43f8,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2b43f8,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x57a615,this['_requireRevisionName']=_0x4e4e8f,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x29070e}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5e7d77){const _0x3c0812=new pi(this['locale'],_0x5e7d77,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3c0812);}['removeRevision'](_0xd1342f){const _0x5aafc0=this['revisionViews']['find'](_0x3a5cd9=>_0x3a5cd9['id']===_0xd1342f['id']);this['revisionViews']['remove'](_0x5aafc0);}}class ki extends _0x39ce7d{constructor(_0x498ce9){super(_0x498ce9);const _0x45f1b8=new _0x1b1efb();_0x45f1b8['content']=_0x411861,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x45f1b8,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x498ce9,'Revision\x20history')]}]});}}class ui extends _0x39ce7d{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x26cac6,_0x221753,_0x4ba84b,_0x273069){super(_0x26cac6);const _0xf4bba7=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x221753,this['_revisionActions']=_0x4ba84b,this['_requireRevisionName']=_0x273069,this['on']('select',(_0x5315af,_0x50b9ac)=>{this['fire']('revisionSelected',_0x50b9ac);}),this['on']('setName',(_0x10c366,_0x525ad8)=>{this['fire']('revisionSetName',_0x525ad8);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x26cac6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xf4bba7['if']('isEnabled','ck-disabled',_0x27450f=>!_0x27450f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3c73e7 of this['_revisions'])this['_addRevision'](_0x3c73e7);this['_revisions']['on']('add',(_0x33bb61,_0x5a538c)=>{this['_addRevision'](_0x5a538c);}),this['_revisions']['on']('remove',(_0x1d3f35,_0x5cdc5f)=>{this['_removeRevision'](_0x5cdc5f);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xb3b9d=>_0xb3b9d['revisionViews']['map'](_0xac1dc9=>_0xac1dc9))['flat']();}['selectRevision'](_0x40f5d4){for(const _0x31b85 of this['revisionViews'])_0x40f5d4&&_0x40f5d4['id']===_0x31b85['id']?_0x31b85['select']():_0x31b85['deselect']();}['highlightRevisions'](_0x30cebc){for(const _0x304eb0 of this['revisionViews'])_0x30cebc['some'](({id:_0x377915})=>_0x377915===_0x304eb0['id'])?_0x304eb0['highlight']():_0x304eb0['unhighlight']();}['_addRevision'](_0x1abbc2){const _0x502850=bi(_0x1abbc2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5c5abf=this['timePeriodViews']['get'](0x0);_0x5c5abf&&_0x5c5abf['startDate']['getTime']()===_0x502850['getTime']()||(_0x5c5abf=new fi(this['locale'],_0x502850,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5c5abf)),_0x5c5abf['addRevision'](_0x1abbc2);}['_removeRevision'](_0x2854c3){const _0x5e93c8=bi(_0x2854c3['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5e93c8)['removeRevision'](_0x2854c3);}['_getTimePeriodViewByStartDate'](_0x47d081){return this['timePeriodViews']['find'](_0x5c3548=>_0x5c3548['startDate']['getTime']()===_0x47d081['getTime']());}}class f extends _0x261da3{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x3d53cc(_0x130cd1){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x49e000,_0x20f0ea){super(_0x20f0ea),this['sourceElement']=_0x49e000,this['model']['document']['createRoot']();const _0x4f1dd5=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4f1dd5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5555ef,_0x302182){const _0x1d6887=new this(_0x5555ef,_0x302182);return await _0x1d6887['initPlugins'](),await _0x1d6887['ui']['init'](_0x5555ef),await _0x1d6887['data']['init'](_0x1d6887['config']['get']('initialData')||''),_0x1d6887['fire']('ready'),_0x1d6887;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x858dc7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12cbd0){function _0x26663c(_0x41bbd5){return _0x41bbd5['map'](_0x3ff85c=>String['fromCharCode'](_0x3ff85c))['join']('');}super(_0x12cbd0),this['result']='end',_0x12cbd0[_0x26663c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26663c([0x76,0x69,0x65,0x77])][_0x26663c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26663c([0x61,0x75,0x74,0x6f]),_0x12cbd0[_0x26663c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x26663c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26663c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x26663c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x26663c([0x6f,0x6b])});}}class ht extends _0x858dc7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x452965){if(super(_0x452965),!this['editor']['config']['get']('revisionHistory'))throw new _0x5ea239('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4b66bf=>this['_showRevisionViewer']({..._0x4b66bf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3391cb=>this['_closeRevisionViewer'](_0x3391cb)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x142228=>this['_restoreRevision'](_0x142228)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x21ed07){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x21ed07;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3137cb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3137cb);}['getRevision'](_0x227823){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x227823);}['getRevisions'](_0x5e2fd1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5e2fd1||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5c60a8=this['editor'],_0x350d7d=_0x74082c(_0x5c60a8,d),_0x230518=_0x5c60a8['plugins']['get']('RevisionTracker'),_0x3bd461=_0x5c60a8['plugins']['get']('Users')['users'];return _0x350d7d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x350d7d['lazyRoots'],(_0x350d7d['plugins']['push'](at,l,u,class extends _0x858dc7{static get['requires'](){return[l,'Users'];}['init'](){const _0x448dd=this['editor']['plugins']['get']('Users');for(const _0x4aca47 of _0x3bd461)_0x4aca47['isAnonymous']||_0x448dd['getUser'](_0x4aca47['id'])||_0x448dd['addUser'](_0x4aca47);const _0x52ce10=_0x230518['repository']['getRevisions']();let _0x5c8c9a=null;const _0x144c5c=this['editor']['plugins']['get']('RevisionViewer');_0x144c5c['adapter']=_0x230518['adapter'],_0x144c5c['bind']('isEnabled')['to'](_0x230518),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5c60a8,'isReadOnly',_0x116b78=>!_0x116b78);for(const _0x561975 of _0x52ce10){const _0x4b6415=null===_0x561975['creator'];if(_0x4b6415&&_0x561975['toVersion']===_0x561975['fromVersion'])continue;const _0x203b93=_0x561975['toJSON']();_0x144c5c['addRevisionData'](_0x203b93,(_0x53d3ed,_0x572368,_0x3bb22b)=>{if(_0x4b6415){if(_0x5c8c9a)_0x5c8c9a['_update'](_0x53d3ed,_0x572368);else{if(!_0x572368){const _0x4503ac=_0x3bb22b['toJSON']();_0x4503ac['id']=_0x1a737e(),_0x230518['saveRevision'](_0x4503ac,_0x3bb22b['toVersion'])['then'](_0x38a870=>{_0x5c8c9a=_0x38a870;});}}}else _0x561975['_update'](_0x53d3ed,_0x572368);});}}},f),_0x350d7d);}['_enhanceShowRevisionViewerCallback'](){const _0x3fa965=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x16448a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x44a740=this['editor']['plugins']['get']('Autosave');await _0x44a740['save']();}else await _0x16448a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3766a2=this['editor']['plugins']['get']('Dialog');_0x3766a2['isOpen']&&_0x3766a2['hide']();}const _0x5d4c04=this['_getRevisionViewerEditorConfig']();return _0x3fa965(_0x5d4c04)['then'](_0x4a41f3=>{return(this['_viewerEditor']=_0x4a41f3,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4a41f3);})['catch'](_0x416899=>(console['error'](_0x416899),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x57a95d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x57a95d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4f762=this['editor']['plugins']['get']('Annotations');_0x4f762['refreshVisibility'](),_0x4f762['refreshPositioning']();}})));}['_showRevisionViewer'](_0x74784b){const _0x40c22f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4a734e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x38ec65=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x38ec65,_0x74784b)['then'](_0x4e34c7=>(_0x4a734e['style']['display']='block',_0x40c22f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4e34c7));}['_closeRevisionViewer'](_0x547d20){const _0x27090f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x27090f['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x547d20['destroy']();}async['_restoreRevision'](_0x58b5d2){const _0x1cec46=this['editor'],_0x380de2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x292a6d=_0x1cec46['plugins']['get']('RevisionTracker'),_0x3ced14=_0x1cec46['plugins']['get']('RevisionHistoryUtils'),_0x30d5a6=_0x380de2['repository']['getRevision'](_0x58b5d2);let _0x251f30,_0x49d59f,_0x49fa19;try{await _0x3ced14['loadRevisionData'](_0x30d5a6,this['adapter']),_0x251f30=_0x3ced14['getRevisionDocumentData'](_0x30d5a6),_0x49d59f=_0x3ced14['getRevisionRootsAttributes'](_0x30d5a6);}catch(_0xb85e5e){return void console['error'](_0xb85e5e);}_0x1cec46['model']['change'](_0x268684=>{for(const _0x2a45f7 of Array['from'](_0x1cec46['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x268684['removeMarker'](_0x2a45f7);}),_0x380de2['isReady']=!0x1,_0x1cec46['model']['enqueueChange'](_0x369d03=>{_0x369d03['setSelection'](null),_0x369d03['removeSelectionAttribute'](_0x1cec46['model']['document']['selection']['getAttributeKeys']());const _0x2acc1e=Object['keys'](_0x251f30);for(const _0x347d0d of _0x1cec46['model']['document']['roots'])'$graveyard'!=_0x347d0d['rootName']&&_0x347d0d['isAttached']()&&!_0x2acc1e['includes'](_0x347d0d['rootName'])&&_0x369d03['detachRoot'](_0x347d0d);for(const _0x21c069 of _0x2acc1e){let _0x122650=_0x1cec46['model']['document']['getRoot'](_0x21c069);_0x122650&&_0x122650['isAttached']()||(_0x122650=_0x369d03['addRoot'](_0x21c069));const _0x40213f=_0x49d59f[_0x21c069],_0x22b895=Object['keys'](_0x40213f),_0x162c01=_0x251f30[_0x21c069];for(const _0x5760d9 of _0x122650['getAttributeKeys']())_0x22b895['includes'](_0x5760d9)||_0x369d03['removeAttribute'](_0x5760d9,_0x122650);for(const _0x1c3a80 of _0x22b895)_0x369d03['setAttribute'](_0x1c3a80,_0x49d59f[_0x21c069][_0x1c3a80],_0x122650);_0x369d03['remove'](_0x369d03['createRangeIn'](_0x122650)),_0x369d03['insert'](_0x1cec46['data']['parse'](_0x162c01,_0x122650),_0x122650,0x0);}});const _0x1bbc7e=R(_0x1cec46['locale'],'Restored');if(_0x30d5a6['name'])_0x49fa19=-0x1==_0x30d5a6['name']['indexOf'](_0x1bbc7e)?_0x1bbc7e+':\x20'+_0x30d5a6['name']:_0x30d5a6['name'];else _0x49fa19=_0x1bbc7e+':\x20'+(_0x30d5a6['createdAt']['toLocaleDateString'](_0x1cec46['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x30d5a6['createdAt']['toLocaleTimeString'](_0x1cec46['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x292a6d['saveRevision']({'name':_0x49fa19}),_0x380de2['isReady']=!0x0,_0x1cec46['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x3ecfa8){super(_0x3ecfa8),this['_revisionViewer']=_0x3ecfa8['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x23bbaa=this['_revisionsRepository']['_revisions'],_0x2c8b58=this['_createRevisionActions'](),_0x3f37a4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x23bbaa,_0x2c8b58,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x46bc5c,_0x94fc5)=>{_0x94fc5['revisionViews']['on']('add',(_0x1716da,_0x225f72)=>{_0x225f72['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x3f37a4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xb7ce2d=this['_revisionsRepository']['getRevision'](0x0);if(_0xb7ce2d){const _0x473c27=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xb7ce2d['id']);this['_revisionViewer']['compare'](_0xb7ce2d,_0x473c27);}}['_handleRevisionSelected'](_0x59692d,_0x5330b4){const _0x182f9f=this['_revisionsRepository']['getRevision'](_0x5330b4['id']),_0x15263a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x182f9f['id']);this['_revisionViewer']['compare'](_0x182f9f,_0x15263a);}['_handleRevisionSetName'](_0x3b3ca5,_0x2a5c36){this['_revisionsRepository']['getRevision'](_0x2a5c36['id'])['setName'](_0x2a5c36['name']);}['_handleDiffChange'](_0x183923,_0x4b8692,_0x4f2c24){const _0x41bd0d=this['_revisionsRepository']['getRevisionsInDiff'](_0x4f2c24);_0x41bd0d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x41bd0d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x41bd0d[0x0]));}['_createRevisionActions'](){const _0x1be4c5=this['editor'],_0x16dd80=f['availableRevisionActions'],_0x2b72d5=_0x1be4c5['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x2b72d5['length'])return _0x2b72d5['map'](_0x5f3a62=>{const _0x46b013='string'==typeof _0x5f3a62?Object['assign']({},_0x16dd80[_0x5f3a62]):_0x5f3a62;return _0x46b013['action']=_0x46b013['action']['bind'](this,_0x1be4c5),_0x46b013['isVisible']&&(_0x46b013['isVisible']=_0x46b013['isVisible']['bind'](this,_0x1be4c5)),_0x46b013;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4aeef1},_0x5a1a08)=>{const _0x27bcca=_0x4aeef1['get'](l),_0x91aedc=_0x27bcca['repository'];let _0x18165b=_0x27bcca['diff']['newRevisionId'],_0x533e48=_0x5a1a08['id'];_0x91aedc['getIndex'](_0x18165b)>_0x91aedc['getIndex'](_0x533e48)&&([_0x18165b,_0x533e48]=[_0x533e48,_0x18165b]),_0x27bcca['compare'](_0x18165b,_0x533e48);},'isVisible':({plugins:_0x4571bc},_0x546bd5)=>{const _0x28a2ff=_0x4571bc['get'](l);return!(_0x28a2ff['repository']['getRevisionsInDiff'](_0x28a2ff['diff'])['length']>0x2)&&!_0x546bd5['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2b9fa2,{id:_0x197c91})=>{_0x2b9fa2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x197c91);},'isVisible':({plugins:_0x2c36a7},_0x5aed1a)=>!!_0x2c36a7['get'](l)['repository']['getLaterVisibleRevision'](_0x5aed1a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x18ddf5},{id:_0x42f662,revisionNameView:_0x515dcc})=>{const _0x10cc2a=_0x18ddf5['get'](l),_0x4dbc6f=_0x10cc2a['repository']['getEarlierVisibleRevision'](_0x42f662);_0x10cc2a['compare'](_0x42f662,_0x4dbc6f),_0x515dcc['focus'](),_0x515dcc['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x38294d,_0xf84121){super(_0x38294d),this['_view']=_0xf84121,this['_toolbarConfig']=st(_0x38294d['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x3da370){const _0x39be2d=this['editor'],_0xfe318f=this['view'],_0x2615bd=_0x39be2d['editing']['view'],_0x1276f3=_0xfe318f['editable'],_0x6d240e=_0x2615bd['document']['getRoot']();_0x1276f3['name']=_0x6d240e['rootName'],_0xfe318f['render']();const _0x524f05=_0x1276f3['element'];this['setEditableElement'](_0x1276f3['name'],_0x524f05),_0xfe318f['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2615bd['attachDomRoot'](_0x524f05),this['_elementReplacer']['replace'](_0x3da370,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x554d69=this['view'],_0x206b62=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x206b62['detachDomRoot'](_0x554d69['editable']['name']),_0x554d69['destroy']();}['_initToolbar'](){const _0x32cda3=this['view'];_0x32cda3['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x32cda3['stickyPanel']['limiterElement']=_0x32cda3['element'],_0x32cda3['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xdc27e0})=>_0xdc27e0),_0x32cda3['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x32cda3['toolbar']);}}class ii extends _0x1eac9c{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x50693f,_0x31ed5a,_0x3ec75f={}){super(_0x50693f),this['stickyPanel']=new _0x3a3d81(_0x50693f),this['toolbar']=new _0x4d660c(_0x50693f,{'shouldGroupWhenFull':_0x3ec75f['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x50693f,_0x31ed5a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x1a77d3(_0xf51de1){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3e10cf,_0x508e89){super(_0x508e89),this['sourceElement']=_0x3e10cf,this['model']['document']['createRoot']();const _0x1f3d40=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1f3d40);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4d3683,_0x2afd27){const _0x348e1b=new this(_0x4d3683,_0x2afd27);return await _0x348e1b['initPlugins'](),await _0x348e1b['ui']['init'](_0x4d3683),await _0x348e1b['data']['init'](_0x348e1b['config']['get']('initialData')||''),_0x348e1b['fire']('ready'),_0x348e1b;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x261da3{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x322ee8){function _0x17c851(_0x347076){return _0x347076['map'](_0x41a44f=>String['fromCharCode'](_0x41a44f))['join']('');}super(_0x322ee8),this['result']='end',_0x322ee8[_0x17c851([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17c851([0x76,0x69,0x65,0x77])][_0x17c851([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17c851([0x61,0x75,0x74,0x6f]),_0x322ee8[_0x17c851([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17c851([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17c851([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17c851([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17c851([0x6f,0x6b])});}}class ht extends _0x261da3{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x261a70){if(super(_0x261a70),!this['editor']['config']['get']('revisionHistory'))throw new _0x10c066('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x8c4c1=>this['_showRevisionViewer']({..._0x8c4c1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xc9f5ed=>this['_closeRevisionViewer'](_0xc9f5ed)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5aa116=>this['_restoreRevision'](_0x5aa116)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x39cbba){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x39cbba;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x31a67f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x31a67f);}['getRevision'](_0xa10c0f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xa10c0f);}['getRevisions'](_0x55b79e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x55b79e||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xf18f80=this['editor'],_0x301627=_0xc8c43(_0xf18f80,d),_0x535ebc=_0xf18f80['plugins']['get']('RevisionTracker'),_0x337eac=_0xf18f80['plugins']['get']('Users')['users'];return _0x301627['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x301627['lazyRoots'],(_0x301627['plugins']['push'](at,l,u,class extends _0x261da3{static get['requires'](){return[l,'Users'];}['init'](){const _0x4bd984=this['editor']['plugins']['get']('Users');for(const _0x42b364 of _0x337eac)_0x42b364['isAnonymous']||_0x4bd984['getUser'](_0x42b364['id'])||_0x4bd984['addUser'](_0x42b364);const _0x195b43=_0x535ebc['repository']['getRevisions']();let _0x3fdb09=null;const _0x1a0086=this['editor']['plugins']['get']('RevisionViewer');_0x1a0086['adapter']=_0x535ebc['adapter'],_0x1a0086['bind']('isEnabled')['to'](_0x535ebc),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xf18f80,'isReadOnly',_0x104f64=>!_0x104f64);for(const _0x131d75 of _0x195b43){const _0x509d78=null===_0x131d75['creator'];if(_0x509d78&&_0x131d75['toVersion']===_0x131d75['fromVersion'])continue;const _0x1efa70=_0x131d75['toJSON']();_0x1a0086['addRevisionData'](_0x1efa70,(_0x1125c8,_0x583ec4,_0x364a1c)=>{if(_0x509d78){if(_0x3fdb09)_0x3fdb09['_update'](_0x1125c8,_0x583ec4);else{if(!_0x583ec4){const _0x5af3f9=_0x364a1c['toJSON']();_0x5af3f9['id']=_0xb1be14(),_0x535ebc['saveRevision'](_0x5af3f9,_0x364a1c['toVersion'])['then'](_0x238095=>{_0x3fdb09=_0x238095;});}}}else _0x131d75['_update'](_0x1125c8,_0x583ec4);});}}},f),_0x301627);}['_enhanceShowRevisionViewerCallback'](){const _0x377b06=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x143721=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x274803=this['editor']['plugins']['get']('Autosave');await _0x274803['save']();}else await _0x143721['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x53fa0c=this['editor']['plugins']['get']('Dialog');_0x53fa0c['isOpen']&&_0x53fa0c['hide']();}const _0x5a3562=this['_getRevisionViewerEditorConfig']();return _0x377b06(_0x5a3562)['then'](_0x5ece65=>{return(this['_viewerEditor']=_0x5ece65,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x5ece65);})['catch'](_0x38183c=>(console['error'](_0x38183c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x189cc7=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x189cc7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2579dd=this['editor']['plugins']['get']('Annotations');_0x2579dd['refreshVisibility'](),_0x2579dd['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5691ff){const _0x350c37=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xc39662=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5b75ba=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x5b75ba,_0x5691ff)['then'](_0x5b869f=>(_0xc39662['style']['display']='block',_0x350c37['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5b869f));}['_closeRevisionViewer'](_0x4ee53f){const _0x22f12d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x22f12d['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4ee53f['destroy']();}async['_restoreRevision'](_0x5350d){const _0x587f95=this['editor'],_0x2dd34e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x129c0d=_0x587f95['plugins']['get']('RevisionTracker'),_0x4ba614=_0x587f95['plugins']['get']('RevisionHistoryUtils'),_0x3d2d60=_0x2dd34e['repository']['getRevision'](_0x5350d);let _0x2e6d8c,_0x1a0801,_0x3917e7;try{await _0x4ba614['loadRevisionData'](_0x3d2d60,this['adapter']),_0x2e6d8c=_0x4ba614['getRevisionDocumentData'](_0x3d2d60),_0x1a0801=_0x4ba614['getRevisionRootsAttributes'](_0x3d2d60);}catch(_0x535796){return void console['error'](_0x535796);}_0x587f95['model']['change'](_0x3ed029=>{for(const _0x30f679 of Array['from'](_0x587f95['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3ed029['removeMarker'](_0x30f679);}),_0x2dd34e['isReady']=!0x1,_0x587f95['model']['enqueueChange'](_0x38b020=>{_0x38b020['setSelection'](null),_0x38b020['removeSelectionAttribute'](_0x587f95['model']['document']['selection']['getAttributeKeys']());const _0x2a9743=Object['keys'](_0x2e6d8c);for(const _0x11d73f of _0x587f95['model']['document']['roots'])'$graveyard'!=_0x11d73f['rootName']&&_0x11d73f['isAttached']()&&!_0x2a9743['includes'](_0x11d73f['rootName'])&&_0x38b020['detachRoot'](_0x11d73f);for(const _0x5f3e99 of _0x2a9743){let _0x517ff0=_0x587f95['model']['document']['getRoot'](_0x5f3e99);_0x517ff0&&_0x517ff0['isAttached']()||(_0x517ff0=_0x38b020['addRoot'](_0x5f3e99));const _0x1615a6=_0x1a0801[_0x5f3e99],_0x853976=Object['keys'](_0x1615a6),_0xc63601=_0x2e6d8c[_0x5f3e99];for(const _0x20ca16 of _0x517ff0['getAttributeKeys']())_0x853976['includes'](_0x20ca16)||_0x38b020['removeAttribute'](_0x20ca16,_0x517ff0);for(const _0x45d8fe of _0x853976)_0x38b020['setAttribute'](_0x45d8fe,_0x1a0801[_0x5f3e99][_0x45d8fe],_0x517ff0);_0x38b020['remove'](_0x38b020['createRangeIn'](_0x517ff0)),_0x38b020['insert'](_0x587f95['data']['parse'](_0xc63601,_0x517ff0),_0x517ff0,0x0);}});const _0x19e4d1=R(_0x587f95['locale'],'Restored');if(_0x3d2d60['name'])_0x3917e7=-0x1==_0x3d2d60['name']['indexOf'](_0x19e4d1)?_0x19e4d1+':\x20'+_0x3d2d60['name']:_0x3d2d60['name'];else _0x3917e7=_0x19e4d1+':\x20'+(_0x3d2d60['createdAt']['toLocaleDateString'](_0x587f95['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3d2d60['createdAt']['toLocaleTimeString'](_0x587f95['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x129c0d['saveRevision']({'name':_0x3917e7}),_0x2dd34e['isReady']=!0x0,_0x587f95['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|