@ckeditor/ckeditor5-revision-history 47.4.0 → 47.5.0-alpha.1
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 +13 -13
- 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
|
-
_0x9ab2a1(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x57831d){super(),this['id']=_0x57831d['id']||_0x422cf0(),this['creator']=_0x57831d['creator']||null,this['authors']=_0x57831d['authors']||[],this['diffData']=_0x57831d['diffData']||null,this['toVersion']=_0x57831d['toVersion']||0x0,this['fromVersion']=_0x57831d['fromVersion']||0x0,this['set']('name',_0x57831d['name']||''),this['set']('createdAt',_0x57831d['createdAt']||new Date()),this['set']('attributes',_0x57831d['attributes']||{});}['setName'](_0x1efe7a){this['_update']({'name':_0x1efe7a});}['setAttribute'](_0x2e10de,_0x318afd){const _0x3fb0c8=_0x40b863(this['attributes']);_0x4f85f2(_0x3fb0c8,_0x2e10de,_0x318afd),this['_update']({'attributes':_0x3fb0c8});}['removeAttribute'](_0x1620f6){const _0x500c4b=_0x40b863(this['attributes']);_0xaab4b(_0x500c4b,_0x1620f6),this['_update']({'attributes':_0x500c4b});}['_update'](_0x180010,_0x16bced=!0x1){let _0x328c7f=!0x1;const _0x1fbcff={'id':this['id']},_0x1ab762=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5b8631 of _0x1ab762){const _0x50b068=_0x180010[_0x5b8631];void 0x0!==_0x50b068&&_0x50b068!==this[_0x5b8631]&&(this[_0x5b8631]=_0x50b068,_0x1fbcff[_0x5b8631]=_0x50b068,_0x328c7f=!0x0);}_0x328c7f&&(_0x1fbcff['authors']&&(_0x1fbcff['authorsIds']=_0x1fbcff['authors']['map'](_0x347e5e=>_0x347e5e['id']),delete _0x1fbcff['authors']),this['fire']('_update',_0x1fbcff,_0x16bced));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x493e97=>_0x493e97['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xf4a8c2{['_revisions'];static get['requires'](){return[_0x1de907];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x172247){super(_0x172247),this['_revisions']=new _0x4772da();}['afterInit'](){!async function(_0x23e335){const _0x55be49=_0x275ab0([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x49d2de=0xeb829,_0x469fe8=0x359e09b0,_0x5f234a=0x35997778^_0x469fe8,_0x4fd7ce=window[_0x275ab0([0x44,0x61,0x74,0x65])][_0x275ab0([0x6e,0x6f,0x77])](),_0x3cd8d1=_0x23e335[_0x275ab0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45fa74=new window[(_0x275ab0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20a39c=>{_0x3cd8d1[_0x275ab0([0x6f,0x6e,0x63,0x65])](_0x275ab0([0x72,0x65,0x61,0x64,0x79]),_0x20a39c);}),_0x31ed75={[_0x275ab0([0x6b,0x74,0x79])]:_0x275ab0([0x45,0x43]),[_0x275ab0([0x75,0x73,0x65])]:_0x275ab0([0x73,0x69,0x67]),[_0x275ab0([0x63,0x72,0x76])]:_0x275ab0([0x50,0x2d,0x32,0x35,0x36]),[_0x275ab0([0x78])]:_0x275ab0([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]),[_0x275ab0([0x79])]:_0x275ab0([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]),[_0x275ab0([0x61,0x6c,0x67])]:_0x275ab0([0x45,0x53,0x32,0x35,0x36])},_0x10b2c9=_0x3cd8d1[_0x275ab0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x275ab0([0x67,0x65,0x74])](_0x275ab0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c4edd(){let _0x31df1d,_0x4f0c7c=null,_0x6341e3=null;try{if(_0x10b2c9==_0x275ab0([0x47,0x50,0x4c]))return _0x275ab0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31df1d=_0x1b1a24(),!_0x31df1d)return _0x275ab0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31df1d[_0x275ab0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6341e3=_0x2f8254(_0x31df1d[_0x275ab0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31df1d[_0x275ab0([0x6a,0x74,0x69])])),await _0x16cdc2()?_0x17c504()?_0xa1617a()?_0x275ab0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a2588()?(_0x31df1d[_0x275ab0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x275ab0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f0c7c=_0x3a5266(_0x275ab0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e83e0()):_0x275ab0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x275ab0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x275ab0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x275ab0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xa1617a(){const _0x13c60d=[_0x275ab0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x275ab0([0x74,0x72,0x69,0x61,0x6c])][_0x275ab0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31df1d[_0x275ab0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4fd7ce/0x3e8:0xe10*_0x5f234a;return _0x31df1d[_0x275ab0([0x65,0x78,0x70])]<_0x13c60d;}function _0x17c504(){const _0x80f33a=_0x31df1d[_0x275ab0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x80f33a)return!0x1;if(_0x80f33a[_0x275ab0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275ab0([0x2a])))return!0x0;if(_0x80f33a[_0x275ab0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275ab0([0x52,0x48])))return!0x0;if(_0x80f33a[_0x275ab0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275ab0([0x52,0x52,0x48]))){if(_0xfdb14a())return!0x0;if(_0x1cf1cf()||_0x63cf6e())return!0x0;}return!0x1;}function _0x4a2588(){const _0x20745d=_0x31df1d[_0x275ab0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20745d||0x0==_0x20745d[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21a3c2}=new URL(window[_0x275ab0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20745d[_0x275ab0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21a3c2))return!0x0;const _0x4170a4=_0x21a3c2[_0x275ab0([0x73,0x70,0x6c,0x69,0x74])](_0x275ab0([0x2e]));return _0x20745d[_0x275ab0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4330e8=>_0x4330e8[_0x275ab0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275ab0([0x2a])))[_0x275ab0([0x6d,0x61,0x70])](_0x377292=>_0x377292[_0x275ab0([0x73,0x70,0x6c,0x69,0x74])](_0x275ab0([0x2e])))[_0x275ab0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ad173=>_0x4ad173[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4170a4[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x275ab0([0x6d,0x61,0x70])](_0x23fc81=>Array(_0x4170a4[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23fc81[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x275ab0([0x66,0x69,0x6c,0x6c])](_0x23fc81[0x0]===_0x275ab0([0x2a])?_0x275ab0([0x2a]):'')[_0x275ab0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23fc81))[_0x275ab0([0x73,0x6f,0x6d,0x65])](_0x538f27=>_0x4170a4[_0x275ab0([0x65,0x76,0x65,0x72,0x79])]((_0x48eb39,_0x132898)=>_0x538f27[_0x132898]===_0x48eb39||_0x538f27[_0x132898]===_0x275ab0([0x2a])));}function _0x1e83e0(){return _0x4f0c7c&&_0x6341e3?new window[(_0x275ab0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x500cd4,_0x210c02)=>{_0x4f0c7c[_0x275ab0([0x74,0x68,0x65,0x6e])](_0x500cd4,_0x210c02),_0x6341e3[_0x275ab0([0x74,0x68,0x65,0x6e])](_0x198d16=>{_0x198d16!=_0x275ab0([0x56,0x61,0x6c,0x69,0x64])&&_0x500cd4(_0x198d16);},_0x210c02);}):_0x4f0c7c||_0x6341e3||_0x275ab0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f8254(_0x427204,_0x11d666){return new window[(_0x275ab0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3994cc=>{if(_0x4b0674())return _0x3994cc(_0x275ab0([0x56,0x61,0x6c,0x69,0x64]));_0x217266(),_0x3cd8d1[_0x275ab0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x275ab0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b25b9=!0x1;const _0x541b84=_0x422cf0();function _0x4d8b04(_0x1d9b50){return!!_0x1d9b50&&(typeof _0x1d9b50===_0x275ab0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d9b50===_0x275ab0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d9b50[_0x275ab0([0x74,0x68,0x65,0x6e])]===_0x275ab0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d9b50[_0x275ab0([0x63,0x61,0x74,0x63,0x68])]===_0x275ab0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7f4374(_0x507d55){_0x2edd20(_0x507d55)[_0x275ab0([0x74,0x68,0x65,0x6e])](_0x31dc0e=>{if(!_0x31dc0e||_0x31dc0e[_0x275ab0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x275ab0([0x6f,0x6b]))return _0x275ab0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b9514(_0x367308(_0x541b84+_0x11d666))!=_0x31dc0e[_0x275ab0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x275ab0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x275ab0([0x56,0x61,0x6c,0x69,0x64]);})[_0x275ab0([0x74,0x68,0x65,0x6e])](_0x4d25e6=>(_0x184887(),_0x4d25e6),()=>{const _0x1c0430=_0x137906();return null==_0x1c0430?(_0x184887(),_0x275ab0([0x56,0x61,0x6c,0x69,0x64])):_0x275ab0(_0x4fd7ce-_0x1c0430>(0x11928db0^_0x469fe8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x275ab0([0x74,0x68,0x65,0x6e])](_0x3994cc)[_0x275ab0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3994cc(_0x275ab0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ed56c=0x35a8e730^_0x469fe8;function _0x184887(){const _0x185017=_0x275ab0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b9514(_0x367308(_0x427204)),_0x3d14de=_0x39930c(_0x2b9514(window[_0x275ab0([0x4d,0x61,0x74,0x68])][_0x275ab0([0x63,0x65,0x69,0x6c])](_0x4fd7ce/_0x1ed56c)));window[_0x275ab0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x275ab0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x185017,_0x3d14de);}function _0x137906(){const _0x4e3df5=_0x275ab0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b9514(_0x367308(_0x427204)),_0x508ad6=window[_0x275ab0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x275ab0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e3df5);return _0x508ad6?window[_0x275ab0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39930c(_0x508ad6),0x10)*_0x1ed56c:null;}function _0x2edd20(_0x4c2521){return new window[(_0x275ab0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fdf46,_0x5092b9)=>{_0x4c2521[_0x275ab0([0x74,0x68,0x65,0x6e])](_0x3fdf46,_0x5092b9),window[_0x275ab0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5092b9,0x359fdd70^_0x469fe8);});}}_0x3cd8d1[_0x275ab0([0x6f,0x6e])](_0x275ab0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x133cb2,_0x387b43)=>{if(_0x387b43[0x0]!=_0x427204)return _0x3994cc(_0x275ab0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x387b43[0x1]={..._0x387b43[0x1],[_0x275ab0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x541b84};},{[_0x275ab0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x275ab0([0x68,0x69,0x67,0x68])}),_0x3cd8d1[_0x275ab0([0x6f,0x6e])](_0x275ab0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x206200=>{_0x4d8b04(_0x206200[_0x275ab0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b25b9=!0x0,_0x7f4374(_0x206200[_0x275ab0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x275ab0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x275ab0([0x6c,0x6f,0x77])}),_0x45fa74[_0x275ab0([0x74,0x68,0x65,0x6e])](()=>{_0x5b25b9||_0x3994cc(_0x275ab0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b0674(){return _0x3cd8d1[_0x275ab0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x275ab0([0x76,0x69,0x65,0x77])][_0x275ab0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x275ab0([0x61,0x75,0x74,0x6f]);}function _0x217266(){_0x3cd8d1[_0x275ab0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x275ab0([0x76,0x69,0x65,0x77])][_0x275ab0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x275ab0([0x61,0x75,0x74,0x6f]);}}function _0x3a5266(_0x9aa679){const _0x4170e5=[new window[(_0x275ab0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c1053=>setTimeout(_0x2c1053,0x3597377c^_0x469fe8)),_0x45fa74[_0x275ab0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x275ab0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x152702=>{const _0x3ff2d9=0x359e09b7^_0x469fe8,_0x353582=_0x23e335[_0x275ab0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x27b3a5(){_0x353582[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3ff2d9&&_0x152702();}_0x27b3a5(),_0x353582[_0x275ab0([0x6f,0x6e])](_0x275ab0([0x61,0x64,0x64]),_0x27b3a5);})),new window[(_0x275ab0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f36fc=>{function _0x59c851(){for(const _0x17ea0f in window)if(window[_0x275ab0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x275ab0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x17ea0f))&&window[_0x17ea0f]==_0x49d2de)return _0x4f36fc();_0x3cd8d1[_0x275ab0([0x73,0x74,0x61,0x74,0x65])]!=_0x275ab0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x275ab0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59c851,0x359e1a38^_0x469fe8);}_0x5df118(_0x275ab0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x59c851();})];return window[_0x275ab0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x275ab0([0x72,0x61,0x63,0x65])](_0x4170e5)[_0x275ab0([0x74,0x68,0x65,0x6e])](()=>_0x9aa679);}async function _0x3f4ea3(){if(await _0x45fa74,_0x5df118(_0x275ab0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3d294f=_0x23e335[_0x275ab0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xc79858=_0x23e335[_0x275ab0([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])](_0x3d294f[_0x275ab0([0x69,0x64])]),_0x28a05b=_0x504049(_0x275ab0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x28a05b[_0x275ab0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3d294f['id'],_0xc79858?_0xc79858['id']:null,!0x0),_0x28a05b[_0x275ab0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x275ab0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x28a05b[_0x275ab0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x28a05b[_0x275ab0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x8161c1,void(_0x28a05b[_0x275ab0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x8161c1);}if(_0x5df118(_0x275ab0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x26b278=_0x504049(_0x275ab0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x26b278[_0x275ab0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x275ab0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x26b278[_0x275ab0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x26b278[_0x275ab0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x8161c1,_0x26b278[_0x275ab0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x8161c1;}_0x3cd8d1[_0x275ab0([0x6d,0x6f,0x64,0x65,0x6c])][_0x275ab0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8161c1,_0x3cd8d1[_0x275ab0([0x6d,0x6f,0x64,0x65,0x6c])][_0x275ab0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8161c1,_0x3cd8d1[_0x275ab0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x275ab0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xfdb14a(){return _0x5df118(_0x275ab0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x504049(_0x275ab0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x275ab0([0x73,0x74,0x61,0x74,0x65])]==_0x275ab0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1cf1cf(){return _0x5df118(_0x275ab0([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 _0x63cf6e(){return _0x5df118(_0x275ab0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x333961(_0x38b8a2){const _0x338792=_0x2d4f15();_0x3cd8d1[_0x338792]=_0x275ab0([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])+_0x38b8a2,_0x38b8a2[_0x275ab0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x275ab0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2d4f15()]=_0x49d2de),_0x38b8a2!=_0x275ab0([0x56,0x61,0x6c,0x69,0x64])&&_0x3f4ea3();}function _0x2d4f15(){const _0x1c2f07=window[_0x275ab0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x275ab0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x275ab0([0x6e,0x6f,0x77])]())[_0x275ab0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x275ab0([0x2e]),'');let _0x1de6d5=_0x275ab0([0x76]);for(let _0x469ed0=0x0;_0x469ed0<_0x1c2f07[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x469ed0+=0x2){let _0x496172=window[_0x275ab0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c2f07[_0x275ab0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x469ed0,_0x469ed0+0x2));_0x496172>=_0x55be49[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x496172-=_0x55be49[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1de6d5+=_0x55be49[_0x496172];}return _0x1de6d5;}function _0x1b1a24(){const _0x386396=_0x10b2c9[_0x275ab0([0x73,0x70,0x6c,0x69,0x74])](_0x275ab0([0x2e]));if(0x3!=_0x386396[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x262edf(_0x386396[0x1]);function _0x262edf(_0x421428){const _0x9ba062=_0x4eede2(_0x421428);return _0x9ba062&&_0x2fd161()?_0x9ba062:null;function _0x2fd161(){const _0x4789f6=_0x9ba062[_0x275ab0([0x6a,0x74,0x69])],_0x3c724f=window[_0x275ab0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4789f6[_0x275ab0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4789f6[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11169c={..._0x9ba062,[_0x275ab0([0x6a,0x74,0x69])]:_0x4789f6[_0x275ab0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4789f6[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11169c[_0x275ab0([0x76,0x63])],_0x367308(_0x11169c)==_0x3c724f;}}}async function _0x16cdc2(){let _0x21a70a=!0x0;try{const _0x2c1809=_0x10b2c9[_0x275ab0([0x73,0x70,0x6c,0x69,0x74])](_0x275ab0([0x2e])),[_0x430ba4,_0x388104,_0x387f77]=_0x2c1809;return _0x47faf3(_0x430ba4),await _0x4b0d9a(_0x430ba4,_0x388104,_0x387f77),_0x21a70a;}catch{return!0x1;}function _0x47faf3(_0x9f968d){const _0x5a9d3e=_0x4eede2(_0x9f968d);_0x5a9d3e&&_0x5a9d3e[_0x275ab0([0x61,0x6c,0x67])]==_0x275ab0([0x45,0x53,0x32,0x35,0x36])||(_0x21a70a=!0x1);}async function _0x4b0d9a(_0x455850,_0x2ba33d,_0x6eb49f){const _0x15c406=window[_0x275ab0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x275ab0([0x66,0x72,0x6f,0x6d])](_0x4d883b(_0x6eb49f),_0x4d6d50=>_0x4d6d50[_0x275ab0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2dd476=new window[(_0x275ab0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x275ab0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x455850+_0x275ab0([0x2e])+_0x2ba33d),_0x18b6d1=window[_0x275ab0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x275ab0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18b6d1)return;const _0xd2e3ed=await _0x18b6d1[_0x275ab0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x275ab0([0x6a,0x77,0x6b]),_0x31ed75,{[_0x275ab0([0x6e,0x61,0x6d,0x65])]:_0x275ab0([0x45,0x43,0x44,0x53,0x41]),[_0x275ab0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x275ab0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x275ab0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18b6d1[_0x275ab0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x275ab0([0x6e,0x61,0x6d,0x65])]:_0x275ab0([0x45,0x43,0x44,0x53,0x41]),[_0x275ab0([0x68,0x61,0x73,0x68])]:{[_0x275ab0([0x6e,0x61,0x6d,0x65])]:_0x275ab0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd2e3ed,_0x15c406,_0x2dd476)||(_0x21a70a=!0x1);}}function _0x4eede2(_0xf01dc1){return _0xf01dc1[_0x275ab0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x275ab0([0x65,0x79]))?JSON[_0x275ab0([0x70,0x61,0x72,0x73,0x65])](_0x4d883b(_0xf01dc1)):null;}function _0x4d883b(_0xe78f9d){return window[_0x275ab0([0x61,0x74,0x6f,0x62])](_0xe78f9d[_0x275ab0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x275ab0([0x2b]))[_0x275ab0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x275ab0([0x2f])));}function _0x367308(_0x4801ec){let _0x4f9dfc=0x1505;function _0x5c3861(_0x51a0ea){for(let _0x523c48=0x0;_0x523c48<_0x51a0ea[_0x275ab0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x523c48++){const _0x5b46f7=_0x51a0ea[_0x275ab0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x523c48);_0x4f9dfc=(_0x4f9dfc<<0x5)+_0x4f9dfc+_0x5b46f7,_0x4f9dfc&=_0x4f9dfc;}}function _0x663ced(_0x102117){Array[_0x275ab0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x102117)?_0x102117[_0x275ab0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x663ced):_0x102117&&typeof _0x102117==_0x275ab0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x275ab0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x102117)[_0x275ab0([0x73,0x6f,0x72,0x74])]()[_0x275ab0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d7ebe,_0x18199f])=>{_0x5c3861(_0x5d7ebe),_0x663ced(_0x18199f);}):_0x5c3861(window[_0x275ab0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x102117));}return _0x663ced(_0x4801ec),_0x4f9dfc>>>0x0;}function _0x2b9514(_0x318509){return _0x318509[_0x275ab0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x275ab0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x275ab0([0x30]));}function _0x39930c(_0x2a3a74){return _0x2a3a74[_0x275ab0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x275ab0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x275ab0([0x6a,0x6f,0x69,0x6e])]('');}function _0x5df118(_0x44863b){return _0x3cd8d1[_0x275ab0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x275ab0([0x68,0x61,0x73])](_0x44863b);}function _0x504049(_0x4c59dc){return _0x3cd8d1[_0x275ab0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x275ab0([0x67,0x65,0x74])](_0x4c59dc);}function _0x8161c1(){}function _0x275ab0(_0x55b60f){return _0x55b60f['map'](_0x43844d=>String['fromCharCode'](_0x43844d))['join']('');}_0x333961(await _0x2c4edd());}(this);}['createRevision'](_0x4f08fb){const _0x3d03ec=this['editor']['plugins']['get']('Users');return new I({'id':_0x4f08fb['id'],'name':_0x4f08fb['name'],'creator':_0x4f08fb['creatorId']?_0x3d03ec['getUser'](_0x4f08fb['creatorId']):null,'diffData':_0x4f08fb['diffData']||_0x4f08fb['data'],'authors':_0x4f08fb['authorsIds']['map'](_0x322c08=>_0x3d03ec['getUser'](_0x322c08)),'createdAt':new Date(_0x4f08fb['createdAt']),'attributes':_0x4f08fb['attributes'],'fromVersion':_0x4f08fb['fromVersion'],'toVersion':_0x4f08fb['toVersion']});}['addRevision'](_0x2ea695,_0xfc1f26=0x0){this['_revisions']['add'](_0x2ea695,_0xfc1f26);}['getRevision'](_0xb4a4fb){return this['_revisions']['get'](_0xb4a4fb);}['getRevisions'](_0x4b8a23={'toJSON':!0x1}){const _0x5143b2=Array['from'](this['_revisions']);return _0x5143b2['reverse'](),_0x4b8a23['toJSON']?_0x5143b2['map'](_0x3b13c2=>_0x3b13c2['toJSON']()):_0x5143b2;}['getIndex'](_0x25b4d7){return this['_revisions']['getIndex'](_0x25b4d7);}['getEarlierVisibleRevision'](_0x5328e5){const [,_0xfcb6]=this['getRevisionsIterator'](_0x5328e5,{'direction':'earlier'});return _0xfcb6;}['getLaterVisibleRevision'](_0x1085ae){const [,_0xb99702]=this['getRevisionsIterator'](_0x1085ae,{'direction':'later'});return _0xb99702;}['getRevisionsInDiff'](_0x8720b1){const _0x2835c2=[];for(const _0x473a88 of this['getRevisionsIterator'](_0x8720b1['newRevisionId']))if(_0x2835c2['push'](_0x473a88),_0x473a88['id']===_0x8720b1['oldRevisionId'])break;return _0x2835c2;}*['getRevisionsIterator'](_0x2b56f4,{direction:_0x487d9c='earlier',filter:_0x1133a7=()=>!0x0}={}){const _0x188c57='earlier'===_0x487d9c?0x1:-0x1;let _0x23c14e=this['_revisions']['get'](_0x2b56f4),_0x31e616=this['getIndex'](_0x23c14e);for(yield _0x23c14e;_0x23c14e;){if(_0x31e616+=_0x188c57,_0x23c14e=this['getRevision'](_0x31e616),!_0x23c14e)return;_0x1133a7(_0x23c14e)&&(yield _0x23c14e);}}}class $ extends _0xf4a8c2{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x139772,'c'],[_0x231550,'a'],[_0x1a362d,'e'],[_0x5988b9,'r'],[_0x55743e,'u']]);['_typeCharToViewClass']=new Map([['c',_0x139772],['a',_0x231550],['e',_0x1a362d],['r',_0x5988b9],['u',_0x55743e]]);async['loadRevisionData'](_0x2edc8f,_0x470232){if(_0x2edc8f['diffData']||!_0x470232)return;const _0x46b543=this['editor']['config']['get']('collaboration.channelId'),_0x592b8e=await _0x470232['getRevision']({'channelId':_0x46b543,'revisionId':_0x2edc8f['id']});_0x2edc8f['diffData']=_0x592b8e['diffData'];}['getRevisionDocumentData'](_0x59f808){const _0xca0667={};for(const _0x16f9bf in _0x59f808['diffData']){if(_0x59f808['diffData'][_0x16f9bf]['attachChange']&&!_0x59f808['diffData'][_0x16f9bf]['attachChange']['isAttached'])continue;const _0x89588c=this['_removeRevisionMarkers'](JSON['parse'](_0x59f808['diffData'][_0x16f9bf]['insertions'])),_0x38a71f=this['editor']['editing']['view']['document'],_0x35cac1=new _0x113415(_0x38a71f,_0x89588c['map'](_0x3a23eb=>this['_getViewFromDiffObj'](_0x3a23eb,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xca0667[_0x16f9bf]=this['editor']['data']['processor']['toData'](_0x35cac1),this['editor']['data']['processor']['useFillerType']('default');}return _0xca0667;}['getRevisionRootsAttributes'](_0x222fd4){const _0x4f2317={};for(const _0x4f8c9d in _0x222fd4['diffData'])_0x222fd4['diffData'][_0x4f8c9d]['attachChange']&&!_0x222fd4['diffData'][_0x4f8c9d]['attachChange']['isAttached']||(_0x4f2317[_0x4f8c9d]=_0x222fd4['diffData'][_0x4f8c9d]['attributesAfter']||{});return _0x4f2317;}['_getTypeCharForViewElement'](_0x4b2dfe){return this['_viewClassToTypeChar']['get'](_0x4b2dfe['constructor']);}['_getViewFromDiffObj'](_0x6b70cb,_0x313431){const _0x1eeb80=this['editor']['editing']['view']['document'];if('string'==typeof _0x6b70cb)return new _0x3c6b0a(_0x1eeb80,_0x6b70cb);{let _0x15c432,_0x5e445c;_0x5e445c='u'==_0x6b70cb['type']||'r'==_0x6b70cb['type']?[]:_0x6b70cb['children']['map'](_0x578003=>this['_getViewFromDiffObj'](_0x578003,_0x313431));const _0x41b4c6=this['_typeCharToViewClass']['get'](_0x6b70cb['type'])||_0xe8ba8f,_0x4c4f9b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x15c432=new _0x41b4c6(_0x1eeb80,_0x6b70cb['name'],_0x6b70cb['attributes'],_0x5e445c),'u'==_0x6b70cb['type']&&_0x6b70cb['children'][0x0]){const _0x5a051d=_0x6b70cb['children'][0x0];if(_0x15c432['render']=function(_0x44d51c){const _0x506f86=_0x44d51c['createElement']('div');return _0x506f86['innerHTML']=_0x5a051d,_0x506f86['childNodes'][0x0];},_0x313431){const _0x7bf7b7=new _0x113415(_0x1eeb80);_0x7bf7b7['_appendChild'](_0x15c432);const _0x4bd8a4=Array['from'](_0x4c4f9b['viewChildrenToDom'](_0x7bf7b7,{'bind':!0x1})),_0x2f4fd4=_0x4c4f9b['domDocument']['createElement']('div');_0x2f4fd4['append'](..._0x4bd8a4),_0x15c432=Array['from'](_0x4c4f9b['domChildrenToView'](_0x2f4fd4))[0x0];}}else{if('r'==_0x6b70cb['type']&&_0x6b70cb['children'][0x0]){const _0x26a6d3=_0x6b70cb['children'][0x0];if(_0x15c432['render']=function(_0x291193){_0x291193['innerHTML']=_0x26a6d3;},_0x313431){const _0x1dd02e=new _0x113415(_0x1eeb80);_0x1dd02e['_appendChild'](_0x15c432);const _0x542cba=Array['from'](_0x4c4f9b['viewChildrenToDom'](_0x1dd02e,{'bind':!0x1})),_0x58b442=_0x4c4f9b['domDocument']['createElement']('div');_0x58b442['append'](..._0x542cba);const _0x59f899=Array['from'](_0x4c4f9b['domChildrenToView'](_0x58b442));_0x59f899['length']>0x1?_0x15c432['_appendChild'](_0x59f899):_0x15c432=_0x59f899[0x0];}}}if(_0x6b70cb['customProperties']){for(const [_0x2b0fc5,_0x11d158]of _0x6b70cb['customProperties'])_0x15c432['_setCustomProperty'](_0x2b0fc5,_0x11d158);}const _0x2809cc=void 0x0===_0x6b70cb['fillerOffset']?null:_0x6b70cb['fillerOffset'];return null!==_0x2809cc&&(_0x15c432['getFillerOffset']=()=>_0x2809cc),_0x15c432;}}['_makeModelFromViewString'](_0x41a791){const _0x243cf9=JSON['parse'](_0x41a791),_0x49c265=this['editor']['editing']['view']['document'],_0xac26c5=new _0x113415(_0x49c265,_0x243cf9['map'](_0x18899e=>this['_getViewFromDiffObj'](_0x18899e,!0x0)));return this['editor']['data']['toModel'](_0xac26c5);}['_removeRevisionMarkers'](_0x66f19b){return(_0x66f19b=_0x66f19b['filter'](_0x1a6ec4=>!_0x1a6ec4['name']||'revision-start'!==_0x1a6ec4['name']&&'revision-end'!==_0x1a6ec4['name']))['forEach'](_0x4daba8=>{'string'!=typeof _0x4daba8&&(_0x4daba8['children']=this['_removeRevisionMarkers'](_0x4daba8['children']),_0x4daba8['attributes']=_0x4daba8['attributes']['filter'](_0x3cf8c6=>!_0x3cf8c6[0x0]['startsWith']('data-revision-')));}),_0x66f19b;}}function m(_0x56e051,_0x48fed8,_0x54aaaf){const t=_0x56e051['t'];switch(_0x48fed8){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'},_0x54aaaf);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x54aaaf);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 _0xf4a8c2{['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[_0x1de907,S,$,_0xf5aefe];}constructor(_0x2a98fa){super(_0x2a98fa),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x812c68=_0x422cf0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x812c68},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 _0x254383=this['repository']['getRevision'](0x0),_0x387a82=_0x254383&&null===_0x254383['creator']?_0x254383:null;if(this['_continueCurrentRevision']=!!_0x387a82&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x54e511=this['_source']['getCurrentRevisionId'](),_0x41e92b=this['repository']['getRevision'](_0x54e511);if(_0x41e92b)this['_startingVersion']=_0x41e92b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5ea80f=this['_source']['history']['_operations']['find'](_0x3e3b7c=>!_0x3e3b7c['_isInit']),_0x5db349=_0x5ea80f?_0x5ea80f['baseVersion']:this['_source']['history']['version'];_0x254383?(_0x254383['toVersion']<_0x5db349&&_0x254383['_update']({'toVersion':_0x5db349}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x387a82['id'],this['_startingVersion']=_0x387a82['fromVersion']):(this['_startingVersion']=_0x254383['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5db349,this['_continueCurrentRevision']=!0x1);}}else _0x387a82&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x387a82['toVersion'],this['editor']['model']['document']['history']['version']),_0x387a82['fromVersion']===_0x387a82['toVersion']?(0x0!==_0x387a82['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x387a82['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x387a82['id'],this['_startingVersion']=_0x387a82['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',_0x441d39=>!_0x441d39),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2a5a56=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dd21c;for(const _0x27a624 in _0x2a5a56){const _0x38e89b=_0x27a624,_0x1c4bd2=_0x2a5a56[_0x38e89b];if('revisionHistoryLicenseKeyValid'==_0x1c4bd2||'revisionHistoryLicenseKeyInvalid'==_0x1c4bd2||'revisionHistoryLicenseKeyExpired'==_0x1c4bd2||'revisionHistoryLicenseKeyDomainLimit'==_0x1c4bd2||'revisionHistoryLicenseKeyNotAllowed'==_0x1c4bd2||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1c4bd2||'revisionHistoryLicenseKeyUsageLimit'==_0x1c4bd2){delete _0x2a5a56[_0x38e89b],_0x2dd21c=_0x1c4bd2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2dd21c&&_0x2a5a56['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2dd21c&&_0x2a5a56['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2dd21c&&_0x2a5a56['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2dd21c&&_0x2a5a56['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2dd21c&&_0x2a5a56['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2dd21c&&_0x2a5a56['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x274b10=this['repository']['getRevision'](0x0),_0x56a986=await this['getRevisionDocumentData'](_0x274b10),_0x53966e=await this['getRevisionRootsAttributes'](_0x274b10);this['_replaceEditorDataWithRevisionData'](_0x56a986,_0x53966e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2cb1ea){this['_source']=_0x2cb1ea;}async['update'](){const _0x162b36=await this['_source']['getLatestVersion']();if(_0x162b36>this['currentRevision']['toVersion']){await this['_loadState']();const _0x490c18=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x162b36});_0x490c18['authors']=_0x490c18['authorsIds']['map'](_0x3e1027=>this['editor']['plugins']['get']('Users')['getUser'](_0x3e1027)),this['currentRevision']['_update'](_0x490c18);}}async['saveRevision'](_0x2266e7={},_0x4637bb=null){const _0x52f4c1=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4637bb>this['currentRevision']['toVersion']&&(_0x4637bb=null),null===_0x4637bb&&(_0x4637bb=await this['_source']['getLatestVersion']());const _0x48d565=this['_getFromVersion'](_0x4637bb),_0x1112af=this['buildRevisionData']({'from':_0x48d565,'to':_0x4637bb});if(this['currentRevision']['toVersion']<_0x4637bb){const _0x1a277b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4637bb,'to':_0x4637bb});_0x1a277b['authors']=[],_0x1a277b['authorsIds']=[],_0x1a277b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1a277b,!0x0),delete _0x1a277b['authors'],_0x52f4c1['push'](_0x1a277b);}_0x2266e7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2266e7['name']=_0x2266e7['name']||null,_0x2266e7['id']=_0x2266e7['id']||_0x422cf0(),_0x2266e7={..._0x2266e7,..._0x1112af};const _0x2a461c=this['addRevisionData'](_0x2266e7);_0x52f4c1['push'](_0x2266e7);const _0x21d9c8=this['repository']['getIndex'](_0x2a461c);if(0x0!==_0x21d9c8){const _0x1e3363=this['repository']['getRevision'](_0x21d9c8-0x1);if(_0x1e3363['fromVersion']!==_0x4637bb){const _0x4020d8=this['_revisionDataBuilder']['getData'](_0x4637bb,_0x1e3363['toVersion']),_0x5468a5={'id':_0x1e3363['id'],'diffData':_0x4020d8['diffData'],'authorsIds':_0x4020d8['authorsIds'],'authors':_0x4020d8['authorsIds']['map'](_0x2cc8dd=>this['editor']['plugins']['get']('Users')['getUser'](_0x2cc8dd)),'fromVersion':_0x4637bb};_0x1e3363===this['currentRevision']&&(_0x5468a5['createdAt']=new Date(_0x2266e7['createdAt']['getTime']()+0xa)),_0x1e3363['_update'](_0x5468a5,!0x0),delete _0x5468a5['authors'],_0x52f4c1['push'](_0x5468a5);}}if(this['adapter']){for(const _0x216b88 of _0x52f4c1)this['_bufferUpdate'](_0x216b88['id'],_0x216b88,!0x0);this['sendBufferedUpdates']();}return _0x2a461c;}['addRevisionData'](_0x160e09){const _0x91db43=this['repository']['createRevision'](_0x160e09);return this['adapter']&&_0x91db43['on']('_update',(_0x49822f,_0xb06853,_0x38295c)=>{_0x38295c||(this['_bufferUpdate'](_0xb06853['id'],_0xb06853,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x91db43,this['_findInsertionIndex'](_0x91db43)),_0x91db43;}async['getRevisionDocumentData'](_0x1d090){return await this['_utils']['loadRevisionData'](_0x1d090,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1d090);}async['getRevisionRootsAttributes'](_0x585ca4){return await this['_utils']['loadRevisionData'](_0x585ca4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x585ca4);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x44dc24=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4fca51=0x0;_0x4fca51<_0x44dc24['length'];_0x4fca51++){const _0x5134ee=_0x44dc24[_0x4fca51];let _0x31ad8=!0x1;for(const _0x418558 of Object['keys'](_0x5134ee))void 0x0===_0x5134ee[_0x418558]?delete _0x5134ee[_0x418558]:'id'!==_0x418558&&(_0x31ad8=!0x0);_0x31ad8||(_0x44dc24[_0x4fca51]=null);}if(_0x44dc24=_0x44dc24['filter'](_0x50bf66=>null!==_0x50bf66),!_0x44dc24['length'])return;for(let _0x5ce264=0x0;_0x5ce264<_0x44dc24['length'];_0x5ce264++){const _0x22eac3=_0x44dc24[_0x5ce264];void 0x0!==_0x22eac3['fromVersion']&&void 0x0===_0x22eac3['toVersion']&&(_0x22eac3['toVersion']=this['repository']['getRevision'](_0x22eac3['id'])['toVersion']),void 0x0!==_0x22eac3['toVersion']&&void 0x0===_0x22eac3['fromVersion']&&(_0x22eac3['fromVersion']=this['repository']['getRevision'](_0x22eac3['id'])['fromVersion']);}const _0xc92092=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x44dc24,_0xc92092)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1aed03=>{if(_0x1aed03){for(const _0x42d1d7 of _0x1aed03)this['setRevisionData']({'id':_0x42d1d7['id'],'createdAt':_0x42d1d7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xc5805c=null,from:_0x27498c=null,to:_0x592f96=null}){_0x27498c=null!==_0x27498c?_0x27498c:_0xc5805c['fromVersion'],_0x592f96=null!==_0x592f96?_0x592f96:_0xc5805c['toVersion'];const _0x6a6347=this['_revisionDataBuilder']['getData'](_0x27498c,_0x592f96),_0x14834a={'diffData':_0x6a6347['diffData'],'authorsIds':_0x6a6347['authorsIds'],'fromVersion':_0x27498c,'toVersion':_0x592f96};if(!_0xc5805c||_0x592f96!==_0xc5805c['toVersion']){const _0x14dfa2=_0x592f96-0x1,_0x375a8b=this['_source']['history']['getOperation'](_0x14dfa2);_0x14834a['createdAt']=_0x375a8b&&_0x375a8b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x27498c===this['_loadedStateData']['fromVersion']){for(const _0x56ee81 of this['_loadedStateData']['authors'])_0x14834a['authorsIds']['includes'](_0x56ee81['id'])||_0x14834a['authorsIds']['push'](_0x56ee81['id']);}return _0x14834a;}['_bufferUpdate'](_0x3f413d,_0x48c206,_0xf77a07){if(this['_bufferedUpdates']['has'](_0x3f413d)){const _0xc83b3d=this['_bufferedUpdates']['get'](_0x3f413d);_0x48c206=_0xf77a07?{..._0xc83b3d,..._0x48c206}:{..._0x48c206,..._0xc83b3d};}this['_bufferedUpdates']['set'](_0x3f413d,_0x48c206);}['setRevisionData'](_0x4653fa){const _0x35edb2=this['repository']['getRevision'](_0x4653fa['id']);if(_0x4653fa['createdAt']&&(_0x4653fa['createdAt']=new Date(_0x4653fa['createdAt'])),_0x4653fa['authorsIds']){const _0xa62391=this['editor']['plugins']['get']('Users');_0x4653fa['authors']=_0x4653fa['authorsIds']['map'](_0x3ed95e=>_0xa62391['getUser'](_0x3ed95e));}_0x35edb2['_update'](_0x4653fa,!0x0);}['_createInitialRevision'](_0x23e30c){const _0x19556d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x19556d)this['_initialRevisionId']=_0x19556d['id'];else{const _0x43eec3=!this['editor']['model']['document']['roots']['find'](_0x368f59=>this['editor']['model']['hasContent'](_0x368f59)),_0x57042e=this['editor']['plugins']['get']('Users')['me']['id'],_0x5e76ff=m(this['editor']['locale'],_0x43eec3?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x23e30c,'to':_0x23e30c,'id':this['_initialRevisionId'],'name':_0x5e76ff,'creatorId':_0x57042e});}}['_createCurrentRevision'](_0x27a0f6){const _0x532b92=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x532b92),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x27a0f6,'to':_0x27a0f6,'id':_0x532b92,'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'](_0x5e9ae4,_0x59a102){let _0x2af575=this['editor']['config']['get']('initialData'),_0x4a4ced=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2af575){_0x2af575={};for(const _0x2fb7bd of this['editor']['model']['document']['getRootNames']())_0x2af575[_0x2fb7bd]='';}if('string'==typeof _0x2af575&&(_0x2af575={'main':_0x2af575}),void 0x0===_0x4a4ced){_0x4a4ced={};for(const _0x187567 of this['editor']['model']['document']['getRootNames']())_0x4a4ced[_0x187567]={};}let _0x19d110=!0x1;const _0x1956c5=Object['keys'](_0x2af575),_0x480cf8=Object['keys'](_0x5e9ae4);for(const _0x405339 of _0x1956c5){if(_0x2af575[_0x405339]!==_0x5e9ae4[_0x405339]&&''!==_0x2af575[_0x405339]['trim']()){_0x19d110=!0x0;break;}if(!_0x5efc66(_0x4a4ced[_0x405339],_0x59a102[_0x405339])&&Object['keys'](_0x4a4ced[_0x405339])['length']>0x0){_0x19d110=!0x0;break;}}_0x19d110||(_0x19d110=_0x480cf8['some'](_0x2e16be=>!this['editor']['model']['document']['getRoot'](_0x2e16be))),_0x19d110&&_0x5948a1('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2af575,'editorRootsAttributes':_0x4a4ced,'revisionData':_0x5e9ae4,'revisionRootsAttributes':_0x59a102}),this['editor']['config']['set']('initialData',_0x5e9ae4),this['editor']['config']['set']('rootsAttributes',_0x59a102);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x25ebe4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x25ebe4['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x445585){const _0x472ae6=this['repository']['getRevisions']();_0x472ae6['reverse']();let _0x2053b5=0x0;for(;_0x2053b5<_0x472ae6['length'];){const _0x4994c4=_0x472ae6[_0x2053b5];if(_0x4994c4===this['currentRevision']){_0x2053b5++;continue;}if(_0x4994c4['id']===this['_initialRevisionId'])break;const _0xcef51e=_0x445585['toVersion']-_0x4994c4['toVersion']||_0x445585['fromVersion']-_0x4994c4['fromVersion'];if(_0xcef51e>0x0)break;if(_0xcef51e<0x0)_0x2053b5++;else{if(!_0x445585['creator']&&_0x4994c4['creator'])break;if(_0x4994c4['creator']||!_0x445585['creator']){if(_0x445585['createdAt']>_0x4994c4['createdAt'])break;_0x2053b5++;}else _0x2053b5++;}}return _0x2053b5;}['_getFromVersion'](_0x11bb56){const _0x49ff6f=this['repository']['getRevisions']();_0x49ff6f['reverse'](),_0x49ff6f['shift']();const _0x44b71f=_0x49ff6f['find'](_0x4183b2=>_0x4183b2['toVersion']<=_0x11bb56)['toVersion'];return _0x44b71f<this['_startingVersion']?this['_startingVersion']:_0x44b71f;}['_makeRevision']({name:_0x16bfc9,from:_0x162cb7,to:_0x1a74c4,creatorId:_0x40a3b4,id:_0x7c414a}){const _0x877662=this['buildRevisionData']({'from':_0x162cb7,'to':_0x1a74c4});_0x877662['name']=_0x16bfc9,_0x877662['creatorId']=_0x40a3b4,_0x877662['id']=_0x7c414a;const _0x35b488=this['addRevisionData'](_0x877662);return this['adapter']&&this['_bufferUpdate'](_0x877662['id'],_0x877662,!0x0),_0x35b488;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3f6865){this['editor']=_0x3f6865,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'](_0x42863a){this['source']=_0x42863a;const _0x9a22b=new Map(),_0x55afe8=new Map(),_0x5cdac8=this['editor']['model']['document']['roots']['map'](_0x337a18=>_0x337a18['rootName']);for(const _0x13a858 of _0x5cdac8){const _0x4a4610=this['editor']['model']['document']['getRoot'](_0x13a858),_0x24a9fd=K(_0x4a4610);_0x9a22b['set'](_0x13a858,_0x24a9fd),_0x55afe8['set'](_0x13a858,Object['fromEntries'](_0x4a4610['getAttributes']()));}const _0x1c18ed=Array['from'](this['editor']['model']['markers'])['map'](_0x32a13a=>[_0x32a13a['name'],_0x32a13a['getRange']()]),_0x1a30e5=this['source']['version'];this['_saveMetaData'](_0x1a30e5,_0x9a22b,_0x1c18ed,_0x55afe8),this['_startingRevisionId']=this['_revisionId'];const _0x1afaa3=new Map(),_0x5dd6b1=new Map();for(const _0xc5b284 of _0x5cdac8){const _0x59d124=N(_0xc5b284);_0x1afaa3['set'](_0xc5b284,_0x59d124),_0x5dd6b1['set'](_0xc5b284,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1afaa3,[],_0x5dd6b1);}['getData'](_0x3736e1,_0x31ccd0){if(this['_lastFrom']===_0x3736e1&&this['_lastTo']<=_0x31ccd0)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x31ccd0,!0x0);else{if(!this['_savedMetaData']['has'](_0x3736e1)){const _0x573de1=this['_getPreviousFrom'](_0x3736e1);this['_calculateMetaData'](_0x573de1,_0x3736e1,!0x1);}this['_calculateMetaData'](_0x3736e1,_0x31ccd0,!0x0);}return this['_lastFrom']=_0x3736e1,this['_lastTo']=_0x31ccd0,this['_getState']();}['loadState'](_0x5f514f){if(!this['_savedMetaData']['has'](_0x5f514f['fromVersion'])){const _0x20bdb8=this['_getPreviousFrom'](_0x5f514f['fromVersion']);this['_calculateMetaData'](_0x20bdb8,_0x5f514f['fromVersion'],!0x1);}this['_calculateMetaData'](_0x5f514f['fromVersion'],_0x5f514f['toVersion'],!0x1);const _0xf11e51=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5f514f['fromVersion'],this['_lastTo']=_0x5f514f['toVersion'];for(const _0x2ca6b0 in _0x5f514f['diffData']){const _0x33261e=_0x5f514f['diffData'][_0x2ca6b0]['attachChange'],_0x11b442=_0x40b863(_0x5f514f['diffData'][_0x2ca6b0]['attributesBefore'])||{},_0x1b5c55=_0xf11e51['_makeModelFromViewString'](_0x5f514f['diffData'][_0x2ca6b0]['deletions']);_0x1b5c55['rootName']=_0x2ca6b0,_0x1b5c55['_isAttached']=!_0x33261e||!_0x33261e['isAttached'],_0x1b5c55['isAttached']=()=>_0x1b5c55['_isAttached'],this['_baseRoots']['set'](_0x2ca6b0,_0x1b5c55),this['_baseRootsAttributes']['set'](_0x2ca6b0,_0x11b442),_0x33261e&&this['_touchedRoots']['set'](_0x2ca6b0,_0x33261e);const _0x5170c8=this['_makeIdsRoot'](_0x1b5c55);this['_baseIdsRoots']['set'](_0x2ca6b0,_0x5170c8);for(const [_0x34c8ce,_0x33b783]of _0x1b5c55['markers']){if(!_0x34c8ce['startsWith']('revision:'))continue;const _0x4cc316=_0x34c8ce['split'](':')[0x2];for(const _0x528914 of _0x33b783['getWalker']({'singleCharacters':!0x0})){const _0xe65c0d=this['_getVidAttributeName'](_0x528914),_0x662b23='elementEnd'==_0x528914['type']?_0x528914['previousPosition']['path']['slice'](0x0,-0x1):_0x528914['previousPosition']['path'],_0x4f2aec=_0x5170c8['getNodeByPath'](_0x662b23)['getAttribute'](_0xe65c0d);this['_touched']['set'](_0x4f2aec,{'userId':_0x4cc316});}_0x1b5c55['markers']['delete'](_0x34c8ce);}}this['_startingRevisionId']=this['_revisionId'];const _0x5604d8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x84cd19=>!this['_touched']['has'](_0x84cd19));let _0x4b373d=0x0;const _0x1577e3=new Map();for(const _0x1c3310 in _0x5f514f['diffData']){const _0x34caba=_0x5f514f['diffData'][_0x1c3310]['attachChange'],_0x302b9f=_0x40b863(_0x5f514f['diffData'][_0x1c3310]['attributesAfter'])||{},_0x50a4ef=_0xf11e51['_makeModelFromViewString'](_0x5f514f['diffData'][_0x1c3310]['insertions']);_0x50a4ef['rootName']=_0x1c3310,_0x50a4ef['_isAttached']=!_0x34caba||_0x34caba['isAttached'],_0x50a4ef['isAttached']=()=>_0x50a4ef['_isAttached'],this['_diffRoots']['set'](_0x1c3310,_0x50a4ef),this['_diffRootsAttributes']['set'](_0x1c3310,_0x302b9f);const _0x254bf2=this['_makeIdsRoot'](_0x50a4ef,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1c3310,_0x254bf2),_0x1577e3['set'](_0x1c3310,_0x50a4ef['isAttached']()?_0x302b9f:{});for(const [_0x25c35d,_0x53e627]of _0x50a4ef['markers']){if(!_0x25c35d['startsWith']('revision:'))continue;const _0x3a2ec7=_0x25c35d['split'](':')[0x2];for(const _0xf4a1b9 of _0x53e627['getWalker']({'singleCharacters':!0x0})){const _0x32e4f7=this['_getVidAttributeName'](_0xf4a1b9),_0x395d4b=this['_revisionId']++,_0x1265d8='elementEnd'==_0xf4a1b9['type']?_0xf4a1b9['previousPosition']['path']['slice'](0x0,-0x1):_0xf4a1b9['previousPosition']['path'];_0x254bf2['getNodeByPath'](_0x1265d8)['_setAttribute'](_0x32e4f7,_0x395d4b),this['_touched']['set'](_0x395d4b,{'userId':_0x3a2ec7});}_0x50a4ef['markers']['delete'](_0x25c35d);}for(const _0x4737d6 of this['editor']['model']['createRangeIn'](_0x50a4ef)['getWalker']({'singleCharacters':!0x0})){const _0x1cfed4=this['_getVidAttributeName'](_0x4737d6),_0x168482='elementEnd'==_0x4737d6['type']?_0x4737d6['previousPosition']['path']['slice'](0x0,-0x1):_0x4737d6['previousPosition']['path'],_0x589c76=_0x254bf2['getNodeByPath'](_0x168482);_0x589c76['getAttribute'](_0x1cfed4)>0x0||_0x589c76['_setAttribute'](_0x1cfed4,_0x5604d8[_0x4b373d++]);}for(const [_0x23f03c,_0x275cde]of _0x50a4ef['markers'])_0x23f03c['startsWith']('revision:')||this['_markers']['set'](_0x23f03c,_0x275cde);}const {roots:_0x3317f2}=this['_savedMetaData']['get'](_0x5f514f['fromVersion']),{roots:_0x3b0272}=this['_savedMetaData']['get'](_0x5f514f['toVersion']),_0xba3a83=K(_0x3317f2['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0xba3a83),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xba3a83,Number['NEGATIVE_INFINITY']));const _0x3d7717=K(_0x3b0272['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x3d7717),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3d7717));const _0x5f8aa4=Array['from'](this['_diffRoots'])['map'](([_0x584596,_0x5701df])=>[_0x584596,K(_0x5701df)]);this['_saveMetaData'](this['_lastTo'],_0x5f8aa4,this['_markers'],_0x1577e3);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x280e5f,_0x302bb9,_0x49fce2,_0x5a1ef9){const _0x2457e0=new Map(_0x302bb9),_0x463062=new Map(_0x40b863(_0x5a1ef9)),_0x479c6b=new Map();for(const [_0x394978,_0x53bf4f]of _0x49fce2)_0x479c6b['set'](_0x394978,{'start':_0x53bf4f['start']['clone'](),'end':_0x53bf4f['end']['clone'](),'rootName':_0x53bf4f['root']['rootName']});this['_savedMetaData']['set'](_0x280e5f,{'roots':_0x2457e0,'markers':_0x479c6b,'rootsAttributes':_0x463062});}['_removeMetaData'](_0x48aed6){this['_savedMetaData']['delete'](_0x48aed6);}['_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'](_0x385f68,_0x190cd6=null){let _0x570a49=null;_0x385f68['is']('documentFragment')||(_0x570a49=new _0x5978e5(_0x385f68['name'],{'vid_start':null===_0x190cd6?this['_revisionId']++:_0x190cd6++}));const _0x1e6a47=[];for(const _0x323275 of _0x385f68['getChildren']())if(_0x323275['is']('element')){_0x1e6a47['push'](this['_makeIdsRoot'](_0x323275,_0x190cd6));const _0x286088=_0x1e6a47[_0x1e6a47['length']-0x1];null!==_0x190cd6&&(_0x190cd6=_0x286088['is']('element','$text')?_0x286088['getAttribute']('vid')+0x1:_0x286088['getAttribute']('vid_end')+0x1);}else{for(let _0x412e86=0x0;_0x412e86<_0x323275['offsetSize'];_0x412e86++)_0x1e6a47['push'](new _0x5978e5('$text',{'vid':null===_0x190cd6?this['_revisionId']++:_0x190cd6++}));}if(_0x385f68['is']('documentFragment')){const _0x3e292f=N(_0x385f68['rootName']);return _0x3e292f['_insertChild'](0x0,_0x1e6a47),_0x3e292f;}return _0x570a49['_setAttribute']('vid_end',null===_0x190cd6?this['_revisionId']++:_0x190cd6++),_0x570a49['_insertChild'](0x0,_0x1e6a47),_0x570a49;}['_calculateMetaData'](_0x42995b,_0x408be6,_0x5a9e2f){this['_reset']();const {roots:_0x497563,markers:_0x3cd4b0,rootsAttributes:_0x26a63f}=this['_savedMetaData']['get'](_0x42995b);this['_baseRoots']=new Map(_0x497563),this['_baseRootsAttributes']=new Map(_0x40b863(_0x26a63f));for(const [_0x31fbff,_0x324033]of this['_baseRoots'])if('$graveyard'!==_0x31fbff&&(this['_diffRoots']['set'](_0x31fbff,K(_0x324033)),this['_diffRootsAttributes']=new Map(_0x40b863(_0x26a63f)),_0x5a9e2f)){const _0x1fb33a=this['_revisionId'];this['_idsRoots']['set'](_0x31fbff,this['_makeIdsRoot'](_0x324033)),this['_baseIdsRoots']['set'](_0x31fbff,this['_makeIdsRoot'](_0x324033,_0x1fb33a));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',K(this['_baseRoots']['get']('$graveyard'))),_0x5a9e2f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x17363b,_0x1dc55f]of _0x3cd4b0){const _0x1a162b=this['_baseRoots']['get'](_0x1dc55f['rootName']),_0x13a5f1=this['_diffRoots']['get'](_0x1dc55f['rootName']),_0x1d2bc4=new _0x1a05b7(this['_fixPosition'](_0x1dc55f['start'],_0x1a162b),this['_fixPosition'](_0x1dc55f['end'],_0x1a162b)),_0x5aa6d2=this['_fixRange'](_0x1d2bc4,_0x13a5f1);_0x1a162b['markers']['set'](_0x17363b,_0x1d2bc4),this['_markers']['set'](_0x17363b,_0x5aa6d2);}this['_applyOperations'](_0x42995b,_0x408be6,_0x5a9e2f);}['_applyOperations'](_0x14a5d5,_0x134025,_0x1707c8){for(const _0x5113e8 of this['source']['getOperations'](_0x14a5d5,_0x134025))this['_handleOperation'](_0x5113e8,_0x1707c8);for(const _0x4a2b7d of this['_diffRoots']['values']())_0x4a2b7d['markers']['clear']();for(const [_0x18b4d2,_0xd5dd08]of this['_markers']){this['_diffRoots']['get'](_0xd5dd08['root']['rootName'])['markers']['set'](_0x18b4d2,_0xd5dd08['clone']());}const _0x533397=new Map(),_0x10954c=new Map();for(const [_0x2f7f72,_0x15e2d7]of this['_diffRoots'])_0x533397['set'](_0x2f7f72,K(_0x15e2d7)),_0x10954c['set'](_0x2f7f72,this['_diffRootsAttributes']['get'](_0x2f7f72));this['_saveMetaData'](_0x134025,_0x533397,this['_markers'],_0x10954c);}['_getPreviousFrom'](_0xbd67a1){const _0x22b3ba=Array['from'](this['_savedMetaData']['keys']());_0x22b3ba['sort']((_0x42b8d8,_0x30ffb3)=>_0x42b8d8-_0x30ffb3),_0x22b3ba['reverse']();for(const _0x303410 of _0x22b3ba)if(_0x303410<_0xbd67a1)return _0x303410;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xf2927,_0x2b00de){const _0x204954=Array['from'](_0x2b00de['markers'])['map'](([_0x27ab4b,_0x5c3254])=>[_0x27ab4b,this['_fixRange'](_0x5c3254,_0xf2927)]);_0xf2927['markers']=new Map(_0x204954);}['_transformMarkers'](_0x5a8995){for(const _0xdc6959 of this['_markers']['values']()){const _0x69dee6=_0xdc6959['getTransformedByOperation'](_0x5a8995),_0xe23d61=_0x1a05b7['_createFromRanges'](_0x69dee6);_0xdc6959['start']=_0xe23d61['start'],_0xdc6959['end']=_0xe23d61['end'];}}['_handleOperation'](_0x2d45e7,_0x7ff9f5){if('addRoot'!=_0x2d45e7['type']&&'detachRoot'!=_0x2d45e7['type']){if('insert'==_0x2d45e7['type']){const _0x5549a5=_0x2d45e7['position']['root']['rootName'];this['_diffRoots']['has'](_0x5549a5)||(this['_diffRoots']['set'](_0x5549a5,N(_0x5549a5,!0x0)),this['_diffRootsAttributes']['set'](_0x5549a5,{}),_0x7ff9f5&&this['_idsRoots']['set'](_0x5549a5,N(_0x5549a5,!0x0)));}else{if('addRootAttribute'==_0x2d45e7['type']||'removeRootAttribute'==_0x2d45e7['type']||'changeRootAttribute'==_0x2d45e7['type'])return void this['_handleRootAttributeOperation'](_0x2d45e7);'marker'==_0x2d45e7['type']&&this['_handleMarkerOperation'](_0x2d45e7);}if('marker'!==_0x2d45e7['type']){const _0x2d1e99=this['_cloneOperation'](_0x2d45e7,this['_diffRoots']);_0x2d1e99['_execute'](),this['_transformMarkers'](_0x2d1e99);}if(_0x7ff9f5)switch(_0x2d45e7['type']){case'insert':this['_handleInsertOperation'](_0x2d45e7);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2d45e7);break;case'merge':this['_handleMergeOperation'](_0x2d45e7);break;case'split':this['_handleSplitOperation'](_0x2d45e7);}}else this['_handleRootOperation'](_0x2d45e7,_0x7ff9f5);}['_cloneOperation'](_0x5e48b2,_0x50f965){const _0x7008a=_0x5e48b2['clone']();return _0x7008a['_authorId']=_0x5e48b2['_authorId'],this['_fixOperation'](_0x7008a,_0x50f965),_0x7008a;}['_getBaseVids'](_0x4814f0){return _0x4814f0['map'](_0x55a926=>{const _0x129fe1=this['_getVidAttributeName'](_0x55a926);return Number(_0x55a926['item']['getAttribute'](_0x129fe1));});}['_generateTape'](_0x398403,_0x1b686b){if(_0x398403['is']('element','$text'))_0x1b686b['push']({'item':_0x398403,'type':'text'});else{_0x398403['is']('element')&&_0x1b686b['push']({'item':_0x398403,'type':'elementStart'});for(const _0xac9d13 of _0x398403['getChildren']())this['_generateTape'](_0xac9d13,_0x1b686b);_0x398403['is']('element')&&_0x1b686b['push']({'item':_0x398403,'type':'elementEnd'});}return _0x1b686b;}['_getState'](){const _0x2d3611=new Map(this['_touched']),_0x538d68=new Map(_0x2d3611),_0x7daa7e=new Map(),_0x5e3dd1={'insertions':{},'deletions':{}},_0x377507={'insertions':{},'deletions':{}},_0x48f144=new Map(),_0x5b24e8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5b24e8['delete']('$graveyard');for(const _0x56b7ba of _0x5b24e8){const _0x4b8045=this['_diffRoots']['get'](_0x56b7ba)||N(_0x56b7ba,!0x1),_0x560d04=this['_baseRoots']['get'](_0x56b7ba)||N(_0x56b7ba,!0x1);_0x4b8045['isAttached']()||_0x560d04['isAttached']()?(_0x5e3dd1['insertions'][_0x56b7ba]=K(_0x4b8045),_0x5e3dd1['deletions'][_0x56b7ba]=K(_0x560d04),this['_copyMarkers'](_0x5e3dd1['deletions'][_0x56b7ba],_0x560d04),this['_copyMarkers'](_0x5e3dd1['insertions'][_0x56b7ba],_0x4b8045),_0x377507['insertions'][_0x56b7ba]=this['_generateTape'](this['_idsRoots']['get'](_0x56b7ba),[]),_0x377507['deletions'][_0x56b7ba]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x56b7ba)||N(_0x56b7ba,!0x1),[])):_0x5b24e8['delete'](_0x56b7ba);}for(const _0x586277 of _0x5b24e8){const _0x406146=_0x377507['insertions'][_0x586277];for(const _0x68a80c of _0x406146){const _0x50e9b5=this['_getVidAttributeName'](_0x68a80c),_0x23483b=_0x68a80c['item']['getAttribute'](_0x50e9b5);_0x538d68['delete'](_0x23483b),_0x23483b>=this['_startingRevisionId']&&_0x7daa7e['set'](_0x23483b,_0x2d3611['get'](_0x23483b));}}for(const _0x4ef87d of _0x5b24e8){const _0x3d9c82=_0x377507['insertions'][_0x4ef87d],_0x2b7d91=this['_getBaseVids'](_0x377507['deletions'][_0x4ef87d]);let _0x368cb1=0x0;for(const _0x2ee0a5 of _0x3d9c82){const _0xd351f3=this['_getVidAttributeName'](_0x2ee0a5),_0x15e90f=_0x2ee0a5['item']['getAttribute'](_0xd351f3);if(!_0x7daa7e['has'](_0x15e90f)&&!_0x48f144['has'](_0x15e90f)){if(_0x538d68['has'](_0x15e90f))_0x368cb1++;else{if(_0x15e90f!=_0x2b7d91[_0x368cb1]){const _0x519b0e=_0x2d3611['get'](_0x15e90f)||_0x2d3611['get'](_0x2b7d91[_0x368cb1]);for(;_0x15e90f!=_0x2b7d91[_0x368cb1];)_0x538d68['has'](_0x2b7d91[_0x368cb1])||(_0x48f144['set'](_0x2b7d91[_0x368cb1],_0x519b0e),_0x2d3611['set'](_0x2b7d91[_0x368cb1],_0x519b0e)),_0x368cb1++;}_0x368cb1++;}}}}for(const _0x40c6a5 of _0x5b24e8){const _0x2d971a=_0x377507['insertions'][_0x40c6a5];for(const _0x33ff32 of _0x2d971a){const _0x23b07a=this['_getVidAttributeName'](_0x33ff32),_0x538e3e=_0x33ff32['item']['getAttribute'](_0x23b07a);if(_0x48f144['has'](_0x538e3e)){const _0x46ed33=_0x48f144['get'](_0x538e3e);_0x538d68['has'](_0x538e3e)||_0x538d68['set'](_0x538e3e,{..._0x46ed33}),_0x7daa7e['set'](_0x538e3e,{..._0x46ed33});}}}for(const _0x30209 of _0x538d68['keys']())_0x30209>=this['_startingRevisionId']&&_0x538d68['delete'](_0x30209);const _0x5326c7=new Map();for(const _0x2c6ede of _0x5b24e8){let _0x18e594=_0x377507['insertions'][_0x2c6ede];for(const _0x53d04c of _0x18e594)if(_0x53d04c['item']['is']('element','tableCell')){const _0x4fd9fb=this['_getVidAttributeName'](_0x53d04c),_0x568817=_0x53d04c['item']['getAttribute'](_0x4fd9fb);if(_0x7daa7e['has'](_0x568817)){const _0x3e5617=_0x53d04c['item']['parent']['parent']['getAttribute']('vid_start'),_0x3e7877=_0x5326c7['get'](_0x3e5617)||new Set();_0x3e7877['add'](_0x7daa7e['get'](_0x568817)['userId']),_0x5326c7['set'](_0x3e5617,_0x3e7877);}}_0x18e594=_0x377507['deletions'][_0x2c6ede];for(const _0x10dd7c of _0x18e594)if(_0x10dd7c['item']['is']('element','tableCell')){const _0x5dd42e=this['_getVidAttributeName'](_0x10dd7c),_0x563f91=_0x10dd7c['item']['getAttribute'](_0x5dd42e);if(_0x538d68['has'](_0x563f91)){const _0x1be310=_0x10dd7c['item']['parent']['parent']['getAttribute']('vid_start'),_0x562fcd=_0x5326c7['get'](_0x1be310)||new Set();_0x562fcd['add'](_0x538d68['get'](_0x563f91)['userId']),_0x5326c7['set'](_0x1be310,_0x562fcd);}}for(const _0x21ce9b of _0x5326c7['keys']())(_0x7daa7e['has'](_0x21ce9b)||_0x538d68['has'](_0x21ce9b))&&_0x5326c7['delete'](_0x21ce9b);}for(const _0x217d04 of _0x5b24e8){const _0x4af44e=_0x377507['insertions'][_0x217d04];let _0x4fd451=null,_0x51fc25=null;for(const _0x4c938a of _0x4af44e){const _0x4685e8=this['_getVidAttributeName'](_0x4c938a),_0x3558de=_0x4c938a['item']['getAttribute'](_0x4685e8),_0x1da4b0=_0x5326c7['get'](_0x3558de);_0x1da4b0&&'elementStart'==_0x4c938a['type']&&(_0x4fd451=Array['from'](_0x1da4b0)[0x0],_0x51fc25=_0x4c938a['item']['getAttribute']('vid_end')),_0x4fd451&&(_0x538d68['set'](_0x3558de,{'userId':_0x4fd451}),_0x7daa7e['set'](_0x3558de,{'userId':_0x4fd451})),_0x3558de==_0x51fc25&&(_0x4fd451=null,_0x51fc25=null);}}const _0x4db6c5={},_0x41be79=new Set();for(const _0x2829ec of _0x5b24e8){const _0x34d220=_0x5e3dd1['deletions'][_0x2829ec],_0x496f98=_0x5e3dd1['insertions'][_0x2829ec];for(const {userId:_0x981473}of this['_touchedMarkers']['values']())null!==_0x981473&&_0x41be79['add'](_0x981473);for(const {userId:_0x50f128}of this['_touchedRoots']['values']())null!==_0x50f128&&_0x41be79['add'](_0x50f128);this['_markChanges'](_0x496f98,_0x377507['insertions'][_0x2829ec],_0x7daa7e,'insertion',_0x41be79),this['_markChanges'](_0x34d220,_0x377507['deletions'][_0x2829ec],_0x538d68,'deletion',_0x41be79),_0x4db6c5[_0x2829ec]={'insertions':this['_prepareViewToSave'](_0x496f98),'deletions':this['_prepareViewToSave'](_0x34d220),'attachChange':this['_touchedRoots']['get'](_0x2829ec)||null,'attributesBefore':_0x40b863(this['_baseRootsAttributes']['get'](_0x2829ec))||{},'attributesAfter':_0x40b863(this['_diffRootsAttributes']['get'](_0x2829ec))};}return{'diffData':_0x4db6c5,'authorsIds':Array['from'](_0x41be79)};}['_processRootBeforeSave'](_0x1ef845){for(const [,_0x23cf6b]of _0x1ef845['markers']){const _0x58f879=_0x23cf6b['start']['getAncestors']()['filter'](_0x539a09=>'tableCell'==_0x539a09['name']);for(const _0x5208bb of _0x58f879)0x1==_0x5208bb['childCount']&&_0x5208bb['getChild'](0x0)['is']('element','paragraph')&&_0x5208bb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1050c6){this['_processRootBeforeSave'](_0x1050c6);const _0x5a13a1=this['editor']['data']['toView'](_0x1050c6,{}),_0x2c185c=Array['from'](_0x5a13a1['getChildren']())['map'](_0x4af5c0=>this['_getViewJson'](_0x4af5c0));return JSON['stringify'](_0x2c185c);}['_getViewJson'](_0x48bbe5){if(_0x48bbe5['is']('$text'))return _0x48bbe5['data'];{const _0x4f35af=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3609e1=_0x48bbe5,_0x2c568e=this['editor']['data']['htmlProcessor']['domConverter'],_0x532533={'type':_0x4f35af['_getTypeCharForViewElement'](_0x3609e1),'name':_0x3609e1['name'],'attributes':Array['from'](_0x3609e1['getAttributes']()),'children':Array['from'](_0x3609e1['getChildren']())['map'](_0x34802f=>this['_getViewJson'](_0x34802f))};if(_0x48bbe5['is']('uiElement')&&'$comment'!=_0x48bbe5['name']){const _0x20730c=_0x48bbe5['render'](_0x2c568e['domDocument'],_0x2c568e);_0x532533['children']['push'](_0x20730c['outerHTML']);}else{if(_0x48bbe5['is']('rawElement')){const _0x30ff8f=_0x2c568e['domDocument']['createElement'](_0x3609e1['name']);_0x48bbe5['render'](_0x30ff8f,_0x2c568e),_0x532533['children']['push'](_0x30ff8f['innerHTML']);}}const _0x47989d=Array['from'](_0x3609e1['getCustomProperties']());_0x47989d['length']>0x0&&(_0x532533['customProperties']=_0x47989d);const _0x575ec2=_0x3609e1['getFillerOffset']();return null!==_0x575ec2&&(_0x532533['fillerOffset']=_0x575ec2),_0x532533;}}['_markChanges'](_0x495adf,_0x47f799,_0xe1ea40,_0x1a8869,_0x849399){let _0xbcb332=null,_0x3210a2=null,_0x36807e=0x0;const _0x2e0e1e=this['editor']['model'];for(let _0x1444db=0x0;_0x1444db<_0x47f799['length'];_0x1444db++){const _0x4ae7a4=this['_getVidAttributeName'](_0x47f799[_0x1444db]),_0x3b715e=_0x47f799[_0x1444db]['item']['getAttribute'](_0x4ae7a4),_0x535d72=_0xe1ea40['get'](_0x3b715e),_0x2d2e9a=_0x1444db==_0x47f799['length']-0x1;(!_0xbcb332&&_0x535d72&&(_0xbcb332=_0x535d72,_0x3210a2=_0x47f799[_0x1444db]),_0xbcb332&&(!_0x535d72||_0x535d72['userId']!=_0xbcb332['userId']))&&(_0x195709(_0x535d72,P(_0x3210a2,_0x495adf,_0x2e0e1e),P(_0x47f799[_0x1444db],_0x495adf,_0x2e0e1e)),_0xbcb332=_0x535d72||null,_0x3210a2=_0x535d72?_0x47f799[_0x1444db]:null),_0xbcb332&&_0x2d2e9a&&_0x195709(_0x535d72,P(_0x3210a2,_0x495adf,_0x2e0e1e),V(_0x47f799[_0x1444db],_0x495adf,_0x2e0e1e));}function _0x195709(_0x290538,_0x43c574,_0x27469c){const _0x5bf4e7=_0xbcb332['userId'],_0x400c51='revision:'+_0x1a8869+':'+_0x5bf4e7+':'+_0x36807e++,_0x31e784=_0x2e0e1e['createRange'](_0x43c574,_0x27469c);_0x495adf['markers']['set'](_0x400c51,_0x31e784),null!==_0x5bf4e7&&_0x849399['add'](_0x5bf4e7);}}['_getVidAttributeName'](_0x35af1c){switch(_0x35af1c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x30dc91,_0x26fc44){_0x30dc91['baseVersion']=null;for(const _0x53d276 in _0x30dc91){const _0x3de5d7=_0x30dc91[_0x53d276];if(_0x3de5d7 instanceof _0x3644ea){const _0x26ca82=_0x26fc44['get'](_0x3de5d7['root']['rootName']);_0x30dc91[_0x53d276]=this['_fixPosition'](_0x3de5d7,_0x26ca82);}if(_0x3de5d7 instanceof _0x1a05b7){const _0x553bfc=_0x26fc44['get'](_0x3de5d7['root']['rootName']);_0x30dc91[_0x53d276]=this['_fixRange'](_0x3de5d7,_0x553bfc);}'root'===_0x53d276&&(_0x30dc91['root']=_0x26fc44['get'](_0x30dc91['root']['rootName']));}}['_fixRange'](_0x4efb63,_0x2a6866){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4efb63['start'],_0x2a6866),this['_fixPosition'](_0x4efb63['end'],_0x2a6866));}['_fixPosition'](_0x1411bd,_0x432a74){return this['editor']['model']['createPositionFromPath'](_0x432a74,_0x1411bd['path'],_0x1411bd['stickiness']);}['_handleInsertOperation'](_0x119838){const _0x590012=this['_idsRoots']['get'](_0x119838['position']['root']['rootName']),_0x9c73ac=this['_fixPosition'](_0x119838['position'],_0x590012),_0x245724=null===_0x119838['_authorId']?null:_0x119838['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xbd927f=_0x9c73ac['parent'],_0x14ce41=this['_revisionId'],_0x36db87=[];for(const _0x10e92f of _0x119838['nodes'])if(_0x10e92f['is']('element'))_0x36db87['push'](this['_makeIdsRoot'](_0x10e92f));else{for(let _0x337606=0x0;_0x337606<_0x10e92f['offsetSize'];_0x337606++)_0x36db87['push'](new _0x5978e5('$text',{'vid':this['_revisionId']++}));}const _0x3e57af=this['_revisionId'];for(let _0x2f8288=_0x14ce41;_0x2f8288<_0x3e57af;_0x2f8288++)this['_touched']['set'](_0x2f8288,{'userId':_0x245724});_0xbd927f['_insertChild'](_0x9c73ac['offset'],_0x36db87);}['_handleMoveOperation'](_0x253452){(_0x253452=this['_cloneOperation'](_0x253452,this['_idsRoots']))['_execute']();const _0x3897a6=null===_0x253452['_authorId']?null:_0x253452['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d2b73=_0x253452['getMovedRangeStart'](),_0x535313=_0x1d2b73['parent'],_0x660c38=_0x1d2b73['offset'];!function _0xc8e236(_0x21409b,_0x3ddda3,_0x35933a,_0x5d8818){for(let _0x523040=_0x35933a;_0x523040<_0x5d8818;_0x523040++){const _0x42440d=_0x3ddda3['getChild'](_0x523040);_0x42440d['is']('element','$text')?_0x21409b['set'](_0x42440d['getAttribute']('vid'),{'userId':_0x3897a6}):(_0x21409b['set'](_0x42440d['getAttribute']('vid_start'),{'userId':_0x3897a6}),_0xc8e236(_0x21409b,_0x42440d,0x0,_0x42440d['childCount']),_0x21409b['set'](_0x42440d['getAttribute']('vid_end'),{'userId':_0x3897a6}));}}(this['_touched'],_0x535313,_0x660c38,_0x660c38+_0x253452['howMany']);}['_handleMergeOperation'](_0xc6ed87){const _0x9ce7b8=null===(_0xc6ed87=this['_cloneOperation'](_0xc6ed87,this['_idsRoots']))['_authorId']?null:_0xc6ed87['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3afe74=_0xc6ed87['targetPosition']['parent'],_0x4e3a10=_0xc6ed87['sourcePosition']['parent'],_0x20a652=_0x3afe74['getAttribute']('vid_end'),_0x4c87d2=_0x4e3a10['getAttribute']('vid_start');_0x3afe74['_setAttribute']('vid_end',_0x4e3a10['getAttribute']('vid_end')),_0x4e3a10['_setAttribute']('vid_end',_0x20a652),this['_touched']['set'](_0x4c87d2,{'userId':_0x9ce7b8}),this['_touched']['set'](_0x20a652,{'userId':_0x9ce7b8}),_0xc6ed87['_execute']();}['_handleSplitOperation'](_0x3fc937){const _0x26d1e6=null===(_0x3fc937=this['_cloneOperation'](_0x3fc937,this['_idsRoots']))['_authorId']?null:_0x3fc937['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47821c=_0x3fc937['graveyardPosition'],_0x5dc1e1=_0x3fc937['splitPosition']['parent'];_0x3fc937['_execute']();const _0x6c6057=_0x5dc1e1['getAttribute']('vid_end'),_0x4cb987=_0x3fc937['insertionPosition']['nodeAfter'];if(_0x47821c){const _0x9107b=_0x4cb987['getAttribute']('vid_end'),_0x102dda=_0x5dc1e1['getAttribute']('vid_end');_0x5dc1e1['_setAttribute']('vid_end',_0x9107b),_0x4cb987['_setAttribute']('vid_end',_0x102dda),this['_touched']['set'](_0x5dc1e1['getAttribute']('vid_end'),{'userId':_0x26d1e6}),this['_touched']['set'](_0x4cb987['getAttribute']('vid_start'),{'userId':_0x26d1e6});}else{const _0x457068=this['_revisionId']++,_0x23139a=this['_revisionId']++;_0x5dc1e1['_setAttribute']('vid_end',_0x457068),_0x4cb987['_setAttribute']('vid_start',_0x23139a),_0x4cb987['_setAttribute']('vid_end',_0x6c6057),this['_touched']['set'](_0x457068,{'userId':_0x26d1e6}),this['_touched']['set'](_0x23139a,{'userId':_0x26d1e6});}}['_handleMarkerOperation'](_0x46f7be){if(!_0x46f7be['affectsData'])return;const _0xaf9b77=(_0x46f7be=this['_cloneOperation'](_0x46f7be,this['_diffRoots']))['oldRange']?_0x46f7be['oldRange']['root']:null,_0x9413a0=_0x46f7be['newRange']?_0x46f7be['newRange']['root']:null;_0xaf9b77&&this['_markers']['delete'](_0x46f7be['name']),_0x9413a0&&this['_markers']['set'](_0x46f7be['name'],_0x46f7be['newRange']['clone']());const _0x6013ef=null===_0x46f7be['_authorId']?null:_0x46f7be['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e01ae=_0x46f7be['name'];if(!this['_touchedMarkers']['has'](_0x1e01ae))return void this['_touchedMarkers']['set'](_0x1e01ae,{'range':_0x46f7be['oldRange'],'userId':_0x6013ef});const _0x36f534=this['_touchedMarkers']['get'](_0x1e01ae),_0x16a66f=_0x36f534['range'],_0x14ac15=_0x46f7be['newRange'];null==_0x16a66f&&null==_0x14ac15||_0x16a66f&&_0x14ac15&&_0x16a66f['isEqual'](_0x14ac15)?this['_touchedMarkers']['delete'](_0x46f7be['name']):_0x36f534['userId']=_0x6013ef;}['_handleRootOperation'](_0x25da65,_0x3de237){this['_diffRoots']['has'](_0x25da65['rootName'])?this['_diffRoots']['get'](_0x25da65['rootName'])['_isAttached']=_0x25da65['isAdd']:(this['_diffRoots']['set'](_0x25da65['rootName'],N(_0x25da65['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x25da65['rootName'],{}),_0x3de237&&this['_idsRoots']['set'](_0x25da65['rootName'],N(_0x25da65['rootName'],!0x0)));const _0x2ac8a0=null===_0x25da65['_authorId']?null:_0x25da65['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b36e2=this['_touchedRoots']['get'](_0x25da65['rootName']);_0x5b36e2&&_0x5b36e2['userId']===_0x2ac8a0?this['_touchedRoots']['delete'](_0x25da65['rootName']):this['_touchedRoots']['set'](_0x25da65['rootName'],{'userId':_0x2ac8a0,'isAttached':_0x25da65['isAdd']});}['_handleRootAttributeOperation'](_0x55d338){const _0x2e33bd=this['_diffRootsAttributes']['get'](_0x55d338['root']['rootName']);null===_0x55d338['newValue']?delete _0x2e33bd[_0x55d338['key']]:_0x2e33bd[_0x55d338['key']]=_0x55d338['newValue'];}}function K(_0x5594e1){const _0x14579d=N(_0x5594e1['rootName'],_0x5594e1['isAttached']());for(const _0xc3461d of _0x5594e1['getChildren']()){const _0x4305d9=_0xc3461d['_clone'](!0x0);_0x14579d['_appendChild'](_0x4305d9);}return _0x14579d;}function N(_0x4a156d,_0x864d49=!0x0){const _0x50f047=new _0x3269cc();return _0x50f047['rootName']=_0x4a156d,_0x50f047['_isAttached']=_0x864d49,_0x50f047['isAttached']=()=>_0x50f047['_isAttached'],_0x50f047;}function P(_0x4974bc,_0x75b698,_0xbf3f95){const _0x5e9549='elementEnd'==_0x4974bc['type']?_0xbf3f95['createPositionAt'](_0x4974bc['item'],'end'):_0xbf3f95['createPositionBefore'](_0x4974bc['item']);return _0xbf3f95['createPositionFromPath'](_0x75b698,_0x5e9549['path'],_0x5e9549['stickiness']);}function V(_0x30a33c,_0x49d7f0,_0x405aa9){const _0x87c621='elementStart'==_0x30a33c['type']?_0x405aa9['createPositionAt'](_0x30a33c['item'],0x0):_0x405aa9['createPositionAfter'](_0x30a33c['item']);return _0x405aa9['createPositionFromPath'](_0x49d7f0,_0x87c621['path'],_0x87c621['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x9ab2a1(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3ed306){super(),this['id']=_0x3ed306['id']||_0x422cf0(),this['author']=_0x3ed306['author'],this['type']=_0x3ed306['type'],this['data']=_0x3ed306['data']||{},this['rootName']=_0x3ed306['rootName'],this['set']('createdAt',_0x3ed306['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(_0x1c15a8,_0x3c1475){this['newRevisionId']=_0x1c15a8,this['oldRevisionId']=_0x3c1475,this['changes']=new _0x4772da();}['_setChanges'](_0xc614c0){for(const _0x8fcde3 of _0xc614c0)this['changes']['add'](_0x8fcde3);}}class u extends _0xf4a8c2{['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[_0x1de907,_0x867a1d,S,$];}constructor(_0x331eff){super(_0x331eff),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',(_0x388cd9,_0x2f0b29,_0x52b926)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x64c7df=>{for(const _0x3d4d16 of this['editor']['editing']['view']['document']['roots'])_0x52b926?_0x64c7df['removeClass']('ck-editor__editable__overlay',_0x3d4d16):_0x64c7df['addClass']('ck-editor__editable__overlay',_0x3d4d16);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x26fd2c=>null!==_0x26fd2c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5ac271,_0x72d423,_0x184ca7)=>_0x5ac271&&_0x184ca7?_0x72d423['changes']['getIndex'](_0x184ca7):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x861dc7,_0x1eef4b)=>_0x861dc7?_0x1eef4b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x867a1d);}['init'](){const _0x4a2657=this['editor'],_0x38e266=new rt(_0x4a2657,{'direction':'backward'}),_0x7feb1d=new rt(_0x4a2657,{'direction':'forward'});(_0x4a2657['commands']['add']('showPreviousChange',_0x38e266),_0x4a2657['commands']['add']('showNextChange',_0x7feb1d),_0x4a2657['commands']['add']('restoreRevision',new nt(_0x4a2657)),this['on']('change:numberOfChanges',()=>{_0x38e266['refresh'](),_0x7feb1d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4a2657['enableReadOnlyMode']('revision-viewer'),_0x4a2657['plugins']['has']('WidgetToolbarRepository'))&&_0x4a2657['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5e95a2){return await this['_utils']['loadRevisionData'](_0x5e95a2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5e95a2);}async['getRevisionRootsAttributes'](_0xf63cca){return await this['_utils']['loadRevisionData'](_0xf63cca,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xf63cca);}async['compare'](_0x3d2317,_0x471d24,_0x37a94a=!0x1){if(!this['isEnabled'])return;const _0x34c213=this['diff'],_0x5022b8=this['repository'],_0x1fe289='string'==typeof _0x3d2317?_0x5022b8['getRevision'](_0x3d2317):_0x3d2317,_0x5b6917='string'==typeof _0x471d24?_0x5022b8['getRevision'](_0x471d24):_0x471d24,_0x587ad2=_0x1fe289['id'],_0x16c85b=_0x5b6917?_0x5b6917['id']:null;if(!_0x37a94a&&this['diff']&&this['diff']['newRevisionId']===_0x587ad2&&this['diff']['oldRevisionId']===_0x16c85b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x587ad2,_0x16c85b);const _0x363e8a=this['_getRevisionsRange'](_0x1fe289,_0x5b6917,!0x0)['map'](_0x2f88cf=>this['_utils']['loadRevisionData'](_0x2f88cf,this['adapter']));return _0x363e8a['push'](new Promise(_0x5ab77d=>{setTimeout(_0x5ab77d,0x14);})),Promise['all'](_0x363e8a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x22f16a=this['_getDiff'](_0x587ad2,_0x16c85b);for(const _0x4ad12f of _0x22f16a['changes'])this['_changeIdToChange']['set'](_0x4ad12f['id'],_0x4ad12f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x29cf7e=>{for(const _0x3a1d15 of this['editor']['model']['document']['getRootNames']())_0x29cf7e['detachRoot'](_0x3a1d15);for(const _0x8f048f of Object['keys'](_0x22f16a['model'])){const _0x5398d=_0x29cf7e['addRoot'](_0x8f048f);for(const _0x6892d7 of Object['keys'](_0x22f16a['attributes'][_0x8f048f]))_0x29cf7e['setAttribute'](_0x6892d7,_0x22f16a['attributes'][_0x8f048f][_0x6892d7],_0x5398d);_0x29cf7e['insert'](_0x22f16a['model'][_0x8f048f],_0x5398d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x22f16a['changes'])),this['isReady']=!0x0;})['catch'](_0x33a32b=>{console['error'](_0x33a32b),this['_cleanUp'](),_0x34c213&&(this['diff']=_0x34c213),this['isReady']=!0x0;});}['addRevisionData'](_0x34d0ab,_0x9fa743){const _0x345432=this['repository']['createRevision'](_0x34d0ab);return _0x345432['on']('_update',(_0x4612a5,_0x238f45,_0x3f297c)=>_0x9fa743(_0x238f45,_0x3f297c,_0x345432)),this['repository']['addRevision'](_0x345432),_0x345432;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x572f11=>{for(const _0x2acfb9 of this['editor']['model']['document']['getRootNames']())_0x572f11['detachRoot'](_0x2acfb9);});}['_sortAndFilterDiffChanges'](_0x31f515){const _0x11c384=[],_0x2fab10=new Map();for(const _0x21c5d9 of this['editor']['model']['document']['getRootNames']()){const _0x409e60=this['editor']['editing']['view']['getDomRoot'](_0x21c5d9);if(!_0x409e60)continue;const _0x424835=_0x409e60['getClientRects']()['item'](0x0);_0x424835&&(_0x11c384['push'](_0x21c5d9),_0x2fab10['set'](_0x21c5d9,_0x424835));}return _0x11c384['sort']((_0x43fae7,_0x48b7e3)=>{const _0x2ba9ea=_0x2fab10['get'](_0x43fae7),_0x50b7e5=_0x2fab10['get'](_0x48b7e3);return _0x2ba9ea['y']-_0x50b7e5['y']||_0x2ba9ea['x']-_0x50b7e5['x'];}),(_0x31f515=_0x31f515['filter'](_0x1179e4=>_0x11c384['includes'](_0x1179e4['rootName'])))['sort']((_0x1875b7,_0x6de901)=>_0x11c384['indexOf'](_0x1875b7['rootName'])-_0x11c384['indexOf'](_0x6de901['rootName'])),_0x31f515;}['_makeTape'](_0xc445a0){const _0x42b722=Array['from'](_0xc445a0['markers'])['filter'](([_0x3ee8d0,_0x3e09bd])=>_0x3ee8d0['startsWith']('revision:')&&!_0x3e09bd['isCollapsed']),_0x2ea007=Array['from'](this['editor']['model']['createRangeIn'](_0xc445a0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x42b722['length'])for(const _0x117094 of _0x2ea007){const [_0x2e6b6,_0x8f4923]=_0x42b722[0x0],[,_0x35c86a,_0x63ef8b]=_0x2e6b6['split'](':');if(_0x8f4923['end']['isEqual'](_0x117094['nextPosition'])&&_0x42b722['shift'](),(_0x117094['previousPosition']['isEqual'](_0x8f4923['start'])||_0x117094['previousPosition']['isAfter'](_0x8f4923['start']))&&('insertion'==_0x35c86a?_0x117094['isAdded']={'userId':_0x63ef8b}:'deletion'==_0x35c86a&&(_0x117094['isRemoved']={'userId':_0x63ef8b})),0x0==_0x42b722['length'])break;}return _0x2ea007;}['_refreshStartEndIndex'](_0x5bd9cf){const _0x5e3259=new Map();for(let _0x516713=0x0;_0x516713<_0x5bd9cf['length'];_0x516713++)'text'===_0x5bd9cf[_0x516713]['type']?(_0x5bd9cf[_0x516713]['item']['startIndex']=_0x516713,_0x5bd9cf[_0x516713]['item']['endIndex']=_0x516713):('elementStart'===_0x5bd9cf[_0x516713]['type']?_0x5bd9cf[_0x516713]['item']['startIndex']=_0x516713:'elementEnd'===_0x5bd9cf[_0x516713]['type']&&(_0x5bd9cf[_0x516713]['item']['endIndex']=_0x516713),_0x5e3259['set'](_0x5bd9cf[_0x516713]['id'],_0x516713));for(const _0x12b19b of _0x5e3259['values']())'elementStart'===_0x5bd9cf[_0x12b19b]['type']?_0x5bd9cf[_0x12b19b]['item']['endIndex']=_0x5e3259['get'](_0x5bd9cf[_0x12b19b]['pairId']):'elementEnd'===_0x5bd9cf[_0x12b19b]['type']&&(_0x5bd9cf[_0x12b19b]['item']['startIndex']=_0x5e3259['get'](_0x5bd9cf[_0x12b19b]['pairId']));}['_processTape'](_0x1c2c4b){for(let _0x34292f=0x0;_0x34292f<_0x1c2c4b['length'];_0x34292f++){if('elementStart'===_0x1c2c4b[_0x34292f]['type'])_0x1c2c4b[_0x34292f]['item']['startIndex']=_0x34292f;else{if('elementEnd'===_0x1c2c4b[_0x34292f]['type']){_0x1c2c4b[_0x34292f]['item']['endIndex']=_0x34292f;const _0x5366b4=_0x1c2c4b[_0x34292f]['item']['startIndex'];_0x1c2c4b[_0x5366b4]['pairId']=_0x1c2c4b[_0x34292f]['id'],_0x1c2c4b[_0x34292f]['pairId']=_0x1c2c4b[_0x5366b4]['id'];}else _0x1c2c4b[_0x34292f]['item']['startIndex']=_0x34292f,_0x1c2c4b[_0x34292f]['item']['endIndex']=_0x34292f,_0x1c2c4b[_0x34292f]['pairId']=null;}_0x1c2c4b[_0x34292f]['markersStart']||(_0x1c2c4b[_0x34292f]['markersStart']=[],_0x1c2c4b[_0x34292f]['markersEnd']=[]);}}['_markInsertions'](_0x38f387,_0x2b9a60){const _0x29714f=_0x38f387['filter'](_0x2e503c=>!_0x2e503c['isAdded']);for(let _0x4074eb=0x0;_0x4074eb<_0x2b9a60['length'];_0x4074eb++)_0x2b9a60[_0x4074eb]['isAdded']&&(_0x29714f[_0x4074eb]['isAdded']=_0x2b9a60[_0x4074eb]['isAdded']);}['_getDiff'](_0x4a6d6f,_0x550ec4=null){const _0x5de328=this['repository']['getRevision'](_0x4a6d6f),_0x5cf73c=_0x550ec4?this['repository']['getRevision'](_0x550ec4):null,_0x4dac85=this['_getRevisionsRange'](_0x5de328,_0x5cf73c),_0x5a99ea=_0x4dac85[_0x4dac85['length']-0x1],_0x201386=new Map(),_0x3e92fe={'model':{},'attributes':{},'changes':[]},_0x627a99=new Set(),_0x13a080=new Map();for(let _0x52358a=_0x4dac85['length']-0x1;_0x52358a>=0x0;_0x52358a--){const _0x67e3c5=_0x4dac85[_0x52358a];for(const _0x16b18c of Object['keys'](_0x67e3c5['diffData']))if(_0x67e3c5['diffData'][_0x16b18c]['attachChange']){const _0x34b4f4=_0x67e3c5['diffData'][_0x16b18c]['attachChange'];_0x34b4f4['isAttached']?(_0x627a99['add'](_0x16b18c),_0x13a080['has'](_0x16b18c)&&_0x13a080['get'](_0x16b18c)['userId']==_0x34b4f4['userId']?_0x13a080['delete'](_0x16b18c):_0x13a080['set'](_0x16b18c,_0x34b4f4)):_0x13a080['has'](_0x16b18c)?(_0x627a99['delete'](_0x16b18c),_0x13a080['delete'](_0x16b18c)):(_0x627a99['add'](_0x16b18c),_0x13a080['set'](_0x16b18c,_0x34b4f4));}else _0x627a99['add'](_0x16b18c);}for(const _0x3b5441 of _0x627a99){const _0x5450e0=_0x13a080['has'](_0x3b5441)&&!_0x13a080['get'](_0x3b5441)['isAttached'];let _0x2f17c1=_0x5450e0?_0x4dac85['length']-0x1:0x0;const _0x4c6c5f=_0x5450e0?-0x1:0x1;for(;_0x4dac85[_0x2f17c1];){const _0x19e624=_0x4dac85[_0x2f17c1];if(_0x19e624['diffData'][_0x3b5441]){const _0x50ee5f=_0x5450e0?_0x19e624['diffData'][_0x3b5441]['attributesBefore']:_0x19e624['diffData'][_0x3b5441]['attributesAfter'];_0x3e92fe['attributes'][_0x3b5441]=_0x50ee5f?_0x40b863(_0x50ee5f):{};break;}_0x2f17c1+=_0x4c6c5f;}}for(const _0x57def9 of _0x4dac85){_0x57def9['model']={};for(const _0x4e5d39 of _0x57def9['authors'])_0x201386['set'](_0x4e5d39['id'],_0x4e5d39);for(const _0x524866 of _0x627a99){const _0x3c44d0=_0x57def9['diffData'][_0x524866]?_0x57def9['diffData'][_0x524866]['insertions']:'[]',_0x5318ca=_0x57def9['diffData'][_0x524866]?_0x57def9['diffData'][_0x524866]['deletions']:'[]';_0x57def9['model'][_0x524866]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3c44d0),'deletions':this['_utils']['_makeModelFromViewString'](_0x5318ca)};}}for(const _0xeae38b of _0x627a99){let _0x194eef=null,_0x26ff99=0x0;const _0x4fc4ce=new Map(Array['from'](_0x5de328['model'][_0xeae38b]['insertions']['markers'])['filter'](([_0x3f6503])=>!_0x3f6503['startsWith']('revision:')));let _0x1f0cf7=0x0;for(const _0x281bab of _0x4dac85){const _0xae5497=this['_makeTape'](_0x281bab['model'][_0xeae38b]['insertions']);_0x281bab==_0x5de328?(_0x194eef=_0xae5497,_0x26ff99=_0x194eef['length'],_0x194eef['forEach'](_0x30484b=>{_0x30484b['id']=_0x1f0cf7++;}),this['_processTape'](_0x194eef)):this['_markInsertions'](_0x194eef,_0xae5497);const _0x29afc2=_0x194eef['filter'](_0x24753f=>!_0x24753f['isAdded'])['map'](_0x55096e=>_0x55096e['id']);let _0x5c9be8=0x0;const _0x1eecc5=this['_makeTape'](_0x281bab['model'][_0xeae38b]['deletions']);_0x1eecc5['forEach'](_0x3667c9=>{_0x3667c9['isRemoved']?_0x3667c9['id']=_0x26ff99++:_0x3667c9['id']=_0x29afc2[_0x5c9be8++];}),this['_processTape'](_0x1eecc5),this['_setDistance'](_0x194eef,'isAdded'),this['_setDistance'](_0x1eecc5,'isRemoved'),_0x281bab==_0x5de328&&this['_markMarkers'](_0x194eef,_0x4fc4ce),_0x194eef=this['_joinTapes'](_0x194eef,_0x1eecc5),this['_refreshStartEndIndex'](_0x194eef),this['_setDistance'](_0x194eef,'isRemoved');}_0x194eef=_0x194eef['filter'](_0x62230c=>!(_0x62230c['isAdded']&&_0x62230c['isRemoved']));const _0x4ee8ea=new Map(_0x5a99ea['model'][_0xeae38b]['deletions']['markers']),_0x34f787=new Set(_0x4fc4ce['keys']());for(const _0x4712e6 of _0x4ee8ea['keys']())_0x34f787['delete'](_0x4712e6);this['_markSuggestions'](_0x194eef,_0x34f787),this['_fixObsoleteTags'](_0x194eef),_0x194eef=this['_removeMissingPairs'](_0x194eef),_0x194eef=this['_markMismatchedRemovedTags'](_0x194eef),_0x194eef=this['_removeUnsupportedChanges'](_0x194eef);const {root:_0x24d5a7,changes:_0x59e63e}=this['_makeModelFromTape'](_0x194eef,_0x201386,_0xeae38b);_0x3e92fe['model'][_0xeae38b]=_0x24d5a7;const _0x6f8731=_0x13a080['get'](_0xeae38b);if(_0x6f8731){const _0x325fcf=_0x201386['get'](_0x6f8731['userId']),_0x1bec4e=new G({'author':_0x325fcf,'type':_0x6f8731['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xeae38b});_0x59e63e['unshift'](_0x1bec4e),_0x3e92fe['attributes'][_0xeae38b]['revisionHistoryAttachChange']=_0x1bec4e['id'];}_0x3e92fe['changes']=_0x3e92fe['changes']['concat'](_0x59e63e);}return _0x3e92fe;}['_markMarkers'](_0x227c9d,_0x4cca66){for(let _0xae05d3=0x0;_0xae05d3<_0x227c9d['length'];_0xae05d3++)for(const [_0x44b9f3,_0x2ce1b7]of _0x4cca66)!_0x2ce1b7['isCollapsed']&&_0x2ce1b7['start']['isEqual'](_0x227c9d[_0xae05d3]['previousPosition'])&&_0x227c9d[_0xae05d3]['markersStart']['push'](_0x44b9f3),_0x2ce1b7['end']['isEqual'](_0x227c9d[_0xae05d3]['nextPosition'])&&_0x227c9d[_0xae05d3]['markersEnd']['push'](_0x44b9f3);}['_joinTapes'](_0xf72de1,_0x132882){let _0x343d97=[],_0x44c279=0x0,_0x140379=0x0;for(;_0x44c279<_0xf72de1['length']||_0x140379<_0x132882['length'];){const _0x469c3a=_0xf72de1[_0x44c279]||{},_0xc5ff76=_0x132882[_0x140379]||{};if(_0x469c3a['id']==_0xc5ff76['id'])_0x44c279++,_0x140379++,_0x343d97['push'](_0x469c3a);else{if(_0xc5ff76['isRemoved']&&_0x469c3a['isAdded']){const {commonTape:_0x15d53e,iEnd:_0x3ad441,jEnd:_0x186f1}=this['_threeWayMerge'](_0xf72de1,_0x44c279,_0x132882,_0x140379);_0x343d97=_0x343d97['concat'](_0x15d53e),_0x44c279=_0x3ad441,_0x140379=_0x186f1;}else _0xc5ff76['isRemoved']?(_0x140379++,_0x343d97['push'](_0xc5ff76)):(_0x44c279++,_0x343d97['push'](_0x469c3a));}}return _0x343d97;}['_markSuggestions'](_0x2fdd73,_0x4db469){const _0x2b561d=[];for(let _0x4fee8a=0x0;_0x4fee8a<_0x2fdd73['length'];_0x4fee8a++){for(let _0x365034=0x0;_0x365034<_0x2fdd73[_0x4fee8a]['markersStart']['length'];_0x365034++){const _0x56a61e=_0x2fdd73[_0x4fee8a]['markersStart'][_0x365034];if(!_0x4db469['has'](_0x56a61e))continue;const {group:_0x5e2d2a,type:_0x3edb29,authorId:_0x5dca77}=_0x48fa5b(_0x56a61e);'revision-suggestion'!=_0x5e2d2a||'insertion'!=_0x3edb29&&'deletion'!=_0x3edb29||(_0x2b561d['unshift']({'type':_0x3edb29,'name':_0x56a61e,'userId':_0x5dca77}),_0x2fdd73[_0x4fee8a]['markersStart']['splice'](_0x365034,0x1),_0x365034--);}_0x3e35bc(_0x2fdd73[_0x4fee8a]);for(let _0x5de289=0x0;_0x5de289<_0x2fdd73[_0x4fee8a]['markersEnd']['length'];_0x5de289++){const _0x3af2b3=_0x2fdd73[_0x4fee8a]['markersEnd'][_0x5de289];if(!_0x4db469['has'](_0x3af2b3))continue;const {group:_0x16e0d2,type:_0x35c003}=_0x48fa5b(_0x3af2b3);if('revision-suggestion'!=_0x16e0d2||'insertion'!=_0x35c003&&'deletion'!=_0x35c003)continue;_0x2fdd73[_0x4fee8a]['markersEnd']['splice'](_0x5de289,0x1),_0x5de289--;const _0xdec05=_0x2b561d['findIndex'](_0xfd712b=>_0xfd712b['name']==_0x3af2b3);_0xdec05>-0x1&&_0x2b561d['splice'](_0xdec05,0x1);}}function _0x48fa5b(_0x5808b5){const _0x99c327=_0x5808b5['split'](':');return{'group':_0x99c327[0x0],'type':_0x99c327[0x1],'subType':_0x99c327['length']>=0x5?_0x99c327[0x2]:null,'id':_0x99c327['length']<0x5?_0x99c327[0x2]:_0x99c327[0x3],'authorId':_0x99c327['length']<0x5?_0x99c327[0x3]:_0x99c327[0x4],'markerCount':0x6==_0x99c327['length']?_0x99c327[0x5]:null};}function _0x3e35bc(_0x387f73){for(let _0x3d8d2a=0x0;_0x3d8d2a<_0x2b561d['length'];_0x3d8d2a++){if(_0x387f73['isAdded']&&'insertion'==_0x2b561d[_0x3d8d2a]['type']&&_0x387f73['isAdded']['userId']==_0x2b561d[_0x3d8d2a]['userId'])return _0x387f73['isAddSuggestion']=_0x2b561d[_0x3d8d2a],void delete _0x387f73['isAdded'];if(!_0x387f73['isAdded']&&!_0x387f73['isRemoved']&&'deletion'==_0x2b561d[_0x3d8d2a]['type'])return void(_0x387f73['isRemoveSuggestion']=_0x2b561d[_0x3d8d2a]);}}}['_setDistance'](_0x507f2a,_0xd4d0ec){let _0x19271c=0x0,_0x43ceee=!0x1;const _0x1cb092=new Map();for(const _0x1765da of _0x507f2a)_0x1765da[_0xd4d0ec]?_0x43ceee&&(_0x19271c++,_0x43ceee=!0x1):(_0x19271c++,_0x43ceee=!0x0),_0x1cb092['set'](_0x1765da['id'],_0x19271c);for(let _0x7f34e5=0x0;_0x7f34e5<_0x507f2a['length'];_0x7f34e5++){if('isRemoved'==_0xd4d0ec&&_0x507f2a[_0x7f34e5]['isAdded']||'isAdded'==_0xd4d0ec&&_0x507f2a[_0x7f34e5]['isRemoved'])continue;if('text'==_0x507f2a[_0x7f34e5]['type']){_0x507f2a[_0x7f34e5]['distance']=0x0;continue;}const _0x2d761a=_0x1cb092['get'](_0x507f2a[_0x7f34e5]['pairId']),_0x5337f7=_0x1cb092['get'](_0x507f2a[_0x7f34e5]['id']);_0x507f2a[_0x7f34e5]['distance']=_0x2d761a-_0x5337f7;}}['_getRevisionsRange'](_0x5994d8,_0x4653f8,_0x3fde9c=!0x1){const _0x4e8423=[];let _0x2465f6=this['repository']['getIndex'](_0x5994d8),_0x4ed638=this['repository']['getIndex'](_0x4653f8);for(-0x1==_0x4ed638&&(_0x4ed638=this['repository']['_revisions']['length'],_0x3fde9c=!0x1);_0x2465f6<_0x4ed638;)_0x4e8423['push'](this['repository']['getRevision'](_0x2465f6)),_0x2465f6++;return _0x3fde9c&&_0x4e8423['push'](this['repository']['getRevision'](_0x2465f6)),_0x4e8423;}['_threeWayMerge'](_0x4a1517,_0x3976af,_0x544a88,_0xc59edb){const _0x9f104b=this['editor']['model']['schema'];let _0x125c7e=_0x3976af;for(;_0x4a1517[_0x125c7e]&&_0x4a1517[_0x125c7e]['isAdded'];)_0x125c7e++;let _0x224229=_0xc59edb;for(;_0x544a88[_0x224229]&&_0x544a88[_0x224229]['isRemoved'];)_0x224229++;_0x2108d9(_0x4a1517,_0x3976af,_0x125c7e),_0x2108d9(_0x544a88,_0xc59edb,_0x224229);const _0x1656f8=_0x544a88['slice'](_0xc59edb,_0x224229)['concat'](_0x4a1517['slice'](_0x3976af,_0x125c7e));return _0x1656f8['sort']((_0x3592be,_0x33bb94)=>_0x3592be['side']!=_0x33bb94['side']?_0x3592be['side']-_0x33bb94['side']:_0x3592be['level']!=_0x33bb94['level']?_0x3592be['level']-_0x33bb94['level']:_0x3592be['distance']!=_0x33bb94['distance']?_0x33bb94['distance']-_0x3592be['distance']:!!_0x3592be['isAdded']!=!!_0x33bb94['isAdded']?-0x1==_0x3592be['side']||0x0==_0x3592be['side']?_0x3592be['isAdded']?-0x1:0x1:_0x3592be['isAdded']?0x1:-0x1:_0x3592be['index']-_0x33bb94['index']),{'commonTape':_0x1656f8,'iEnd':_0x125c7e,'jEnd':_0x224229};function _0x2108d9(_0x18ec84,_0x5ef4b5,_0x3aa616){let _0x42486e=-0x1,_0x20f2fd=Number['POSITIVE_INFINITY'],_0x1ef631=!0x0;for(let _0x406248=_0x5ef4b5;_0x406248<_0x3aa616;_0x406248++)if(_0x9f104b['isInline'](_0x18ec84[_0x406248]['item'])||(_0x1ef631=!0x1),_0x18ec84[_0x406248]['item']['startIndex']<_0x5ef4b5&&(_0x42486e=_0x406248),_0x18ec84[_0x406248]['item']['endIndex']>=_0x3aa616){_0x20f2fd=_0x406248;break;}_0x1ef631&&(_0x42486e=_0x3aa616-0x1);for(let _0x253f95=_0x5ef4b5;_0x253f95<_0x3aa616;_0x253f95++)_0x18ec84[_0x253f95]['side']=_0x253f95<=_0x42486e?-0x1:_0x253f95<_0x20f2fd?0x0:0x1,_0x18ec84[_0x253f95]['index']=_0x253f95;let _0x3deba8=0x0;for(let _0x4b471a=_0x5ef4b5;_0x4b471a<=_0x42486e;_0x4b471a++)0x0==_0x18ec84[_0x4b471a]['distance']?_0x18ec84[_0x4b471a]['level']=_0x3deba8:(_0x3deba8++,_0x18ec84[_0x4b471a]['level']=_0x3deba8,_0x3deba8++);for(let _0x389e39=_0x5ef4b5;_0x389e39<_0x3aa616;_0x389e39++)0x0==_0x18ec84[_0x389e39]['side']&&(_0x18ec84[_0x389e39]['level']=_0x3deba8);_0x3deba8=0x0;for(let _0x5e05ca=_0x3aa616-0x1;_0x5e05ca>=_0x20f2fd;_0x5e05ca--)0x0==_0x18ec84[_0x5e05ca]['distance']?_0x18ec84[_0x5e05ca]['level']=_0x3deba8:(_0x3deba8--,_0x18ec84[_0x5e05ca]['level']=_0x3deba8,_0x3deba8--);}}['_fixObsoleteTags'](_0x3d7817){const _0x169106=new Map(),_0x146c96=this['editor']['model']['schema'];for(let _0xefdce3=0x1;_0xefdce3<_0x3d7817['length'];_0xefdce3++){let _0x4af6c3,_0x1ceb38,_0x24f68d;const _0x4a43e4=_0x3d7817[_0xefdce3],_0x47086d=_0x3d7817[_0xefdce3-0x1];if('text'==_0x4a43e4['type'])continue;if(_0x4a43e4['type']!=_0x47086d['type'])continue;if(!_0x146c96['isBlock'](_0x47086d['item'])||_0x146c96['isLimit'](_0x47086d['item']))continue;if(!_0x146c96['isBlock'](_0x4a43e4['item'])||_0x146c96['isLimit'](_0x4a43e4['item']))continue;if((_0x3d7817[_0xefdce3]['isAdded']||_0x3d7817[_0xefdce3]['isAddSuggestion'])&&_0x3d7817[_0xefdce3-0x1]['isRemoved'])_0x4af6c3=_0x3d7817[_0xefdce3],_0x1ceb38=_0x3d7817[_0xefdce3-0x1],_0x24f68d=_0xefdce3-0x1;else{if(!_0x3d7817[_0xefdce3]['isRemoved']||!_0x3d7817[_0xefdce3-0x1]['isAdded']&&!_0x3d7817[_0xefdce3-0x1]['isAddSuggestion'])continue;_0x4af6c3=_0x3d7817[_0xefdce3-0x1],_0x1ceb38=_0x3d7817[_0xefdce3],_0x24f68d=_0xefdce3;}const _0x30bff9=_0x4af6c3['level']==_0x1ceb38['level'],_0x29de04=Math['abs'](_0x4af6c3['level'])<Math['abs'](_0x1ceb38['level'])&&0x0==_0x1ceb38['distance'];(_0x30bff9||_0x29de04)&&(_0x169106['set'](_0x1ceb38['id'],_0x4af6c3['id']),_0x3d7817['splice'](_0x24f68d,0x1),_0xefdce3--,_0x4af6c3['isAdded']=!0x1);}for(let _0x5c9e7e=0x0;_0x5c9e7e<_0x3d7817['length'];_0x5c9e7e++)_0x169106['has'](_0x3d7817[_0x5c9e7e]['pairId'])&&(_0x3d7817[_0x5c9e7e]['pairId']=_0x169106['get'](_0x3d7817[_0x5c9e7e]['pairId']));}['_removeMissingPairs'](_0x3a08f2){const _0x156c5e=new Set(_0x3a08f2['map'](_0xd4d83f=>_0xd4d83f['id']));for(let _0x2e0456=0x0;_0x2e0456<_0x3a08f2['length'];_0x2e0456++)_0x156c5e['has'](_0x3a08f2[_0x2e0456]['pairId'])||0x0==_0x3a08f2[_0x2e0456]['distance']||(_0x3a08f2[_0x2e0456]['isIncorrect']=!0x0);return _0x3a08f2['filter'](_0x3e28d9=>!_0x3e28d9['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5d6bc7){const _0x170644=new Set();for(let _0x3bf36c=0x0;_0x3bf36c<_0x5d6bc7['length'];_0x3bf36c++){if(_0x170644['has'](_0x5d6bc7[_0x3bf36c]['id'])&&_0x5d6bc7[_0x3bf36c]['isRemoved']&&(_0x5d6bc7[_0x3bf36c]['isIncorrect']=!0x0),_0x5d6bc7[_0x3bf36c]['isIncorrect'])continue;if(0x0==_0x5d6bc7[_0x3bf36c]['distance'])continue;if('elementStart'!=_0x5d6bc7[_0x3bf36c]['type'])continue;if(null==_0x5d6bc7[_0x3bf36c]['pairId'])continue;let _0x4d348e=_0x3bf36c+0x1,_0x39c17e=0x0;for(;_0x5d6bc7[_0x4d348e]['id']!=_0x5d6bc7[_0x3bf36c]['pairId'];)'elementStart'==_0x5d6bc7[_0x4d348e]['type']?_0x39c17e++:'elementEnd'==_0x5d6bc7[_0x4d348e]['type']&&_0x39c17e--,_0x4d348e++;if(0x0!=_0x39c17e){if(_0x5d6bc7[_0x3bf36c]['isRemoved'])_0x5d6bc7[_0x3bf36c]['isIncorrect']=!0x0;else{for(;_0x4d348e!=_0x3bf36c;)_0x5d6bc7[_0x4d348e]['isRemoved']&&0x0!=_0x5d6bc7[_0x4d348e]['distance']&&(_0x5d6bc7[_0x4d348e]['isIncorrect']=!0x0,_0x170644['add'](_0x5d6bc7[_0x4d348e]['pairId'])),_0x4d348e--;}}}return _0x5d6bc7['filter'](_0x384b55=>!_0x384b55['isIncorrect']);}['_removeUnsupportedChanges'](_0x450e9a){const _0x181df3=this['editor']['model']['schema'];for(let _0x4bbb05=0x0;_0x4bbb05<_0x450e9a['length'];_0x4bbb05++){if(!(_0x450e9a[_0x4bbb05]['isAdded']||_0x450e9a[_0x4bbb05]['isAddSuggestion']||_0x450e9a[_0x4bbb05]['isRemoved']||_0x450e9a[_0x4bbb05]['isRemoveSuggestion']))continue;if(0x0==_0x450e9a[_0x4bbb05]['distance'])continue;const _0xb4d3e=_0x450e9a[_0x4bbb05]['item'];_0x181df3['isBlock'](_0xb4d3e)||_0x181df3['isLimit'](_0xb4d3e)||(_0x450e9a[_0x4bbb05]['isAdded']&&delete _0x450e9a[_0x4bbb05]['isAdded'],_0x450e9a[_0x4bbb05]['isAddSuggestion']&&delete _0x450e9a[_0x4bbb05]['isAddSuggestion'],_0x450e9a[_0x4bbb05]['isRemoveSuggestion']&&delete _0x450e9a[_0x4bbb05]['isRemoveSuggestion'],_0x450e9a[_0x4bbb05]['isRemoved']&&(_0x450e9a[_0x4bbb05]['isIncorrect']=!0x0));}return _0x450e9a['filter'](_0x1fc4e2=>!_0x1fc4e2['isIncorrect']);}['_makeModelFromTape'](_0xd16e98,_0x311eb2,_0x2f0810){const _0x3a0900=new _0x3269cc(),_0x4031d1=[],_0x43b8d4=new Map(),_0x5bc072=this['editor']['model'],_0x36c2fa=_0x5bc072['schema'],_0x522b16=[_0x3a0900],_0x366e92={},_0x1d9868={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x11dd38=null;const _0x40643c=[0x0];for(let _0x174421=0x0;_0x174421<_0xd16e98['length'];_0x174421++)if('elementStart'===_0xd16e98[_0x174421]['type']){_0xd16e98[_0x174421]['previousPosition']=_0x5bc072['createPositionFromPath'](_0x3a0900,_0x40643c);const _0x13f0c0=new _0x5978e5(_0xd16e98[_0x174421]['item']['name'],_0xd16e98[_0x174421]['item']['getAttributes']());_0x522b16[0x0]['_appendChild'](_0x13f0c0),_0x40643c['push'](0x0),_0x522b16['unshift'](_0x13f0c0),_0xd16e98[_0x174421]['nextPosition']=_0x5bc072['createPositionFromPath'](_0x3a0900,_0x40643c);}else'elementEnd'===_0xd16e98[_0x174421]['type']?(_0x522b16['shift'](),_0xd16e98[_0x174421]['previousPosition']=_0x5bc072['createPositionFromPath'](_0x3a0900,_0x40643c),_0x40643c['pop'](),_0x40643c[_0x40643c['length']-0x1]++,_0xd16e98[_0x174421]['nextPosition']=_0x5bc072['createPositionFromPath'](_0x3a0900,_0x40643c)):(_0xd16e98[_0x174421]['previousPosition']=_0x5bc072['createPositionFromPath'](_0x3a0900,_0x40643c),_0x11dd38?_0x11dd38['_data']+=_0xd16e98[_0x174421]['item']['data']:_0x11dd38=new _0x44cd4c(_0xd16e98[_0x174421]['item']['data'],_0xd16e98[_0x174421]['item']['getAttributes']()),_0xd16e98[_0x174421+0x1]&&'text'===_0xd16e98[_0x174421+0x1]['type']&&_0x594e92(_0x11dd38,_0xd16e98[_0x174421+0x1]['item'])||(_0x522b16[0x0]['_appendChild'](_0x11dd38),_0x11dd38=null),_0x40643c[_0x40643c['length']-0x1]+=_0xd16e98[_0x174421]['item']['offsetSize'],_0xd16e98[_0x174421]['nextPosition']=_0x5bc072['createPositionFromPath'](_0x3a0900,_0x40643c));for(let _0x3215d2=0x0;_0x3215d2<_0xd16e98['length'];_0x3215d2++){const _0x1ba332=_0xd16e98[_0x3215d2]['previousPosition'],_0x409ab8=_0xd16e98[_0x3215d2]['nextPosition'];for(const _0x3460bc of _0xd16e98[_0x3215d2]['markersStart'])_0x43b8d4['set'](_0x3460bc,{'start':_0x1ba332,'end':null});_0x52c28b('isRemoveSuggestion',_0x3215d2,_0x1ba332,_0x409ab8),_0x52c28b('isAddSuggestion',_0x3215d2,_0x1ba332,_0x409ab8),_0x52c28b('isRemoved',_0x3215d2,_0x1ba332,_0x409ab8),_0x52c28b('isAdded',_0x3215d2,_0x1ba332,_0x409ab8);for(const _0x30910f of _0xd16e98[_0x3215d2]['markersEnd']){const _0x5b860a=_0x43b8d4['get'](_0x30910f);_0x5b860a?_0x5b860a['end']=_0x409ab8:_0x43b8d4['set'](_0x30910f,{'start':_0x409ab8,'end':_0x409ab8});}}for(const [_0x46a1ad,_0x152186]of _0x43b8d4){const _0x67d47c=this['editor']['model']['createRange'](_0x152186['start'],_0x152186['end']);_0x3a0900['markers']['set'](_0x46a1ad,_0x67d47c);}return _0x4031d1['sort']((_0x59d361,_0x481944)=>{const _0x4f6e53=_0x3a0900['markers']['get']('revision:'+_0x59d361['id']),_0xbab63f=_0x3a0900['markers']['get']('revision:'+_0x481944['id']);return _0x4f6e53['start']['isBefore'](_0xbab63f['start'])?-0x1:_0x4f6e53['start']['isAfter'](_0xbab63f['start'])?0x1:_0x4f6e53['end']['isBefore'](_0xbab63f['end'])?-0x1:_0x4f6e53['end']['isAfter'](_0xbab63f['end'])?0x1:'add'===_0x59d361['type']?-0x1:0x1;}),{'root':_0x3a0900,'changes':_0x4031d1};function _0x52c28b(_0x15941b,_0xec24c4,_0x1d5672,_0x754128){const _0x463fd8=!!_0xd16e98[_0xec24c4][_0x15941b],_0x4f436c=_0x463fd8?_0xd16e98[_0xec24c4][_0x15941b]['userId']:null,_0x38153c=_0xec24c4===_0xd16e98['length']-0x1,_0x59d80a=_0x1d9868[_0x15941b][0x0],_0x424f45=_0x36c2fa['isObject'](_0xd16e98[_0xec24c4]['item']);!_0x366e92[_0x15941b]&&_0x463fd8?_0x366e92[_0x15941b]={'start':_0x1d5672,'tapeItem':_0xd16e98[_0xec24c4],'userId':_0x4f436c,'type':_0x15941b}:_0x366e92[_0x15941b]&&!_0x463fd8?(_0x366e92[_0x15941b]['end']=_0x1d5672,_0x5e3b39(_0x366e92[_0x15941b]),_0x366e92[_0x15941b]=null):_0x366e92[_0x15941b]&&_0x463fd8&&_0x366e92[_0x15941b]['userId']!==_0x4f436c&&(_0x366e92[_0x15941b]['end']=_0x1d5672,_0x59d80a&&_0x59d80a['userId']===_0x366e92[_0x15941b]['userId']||_0x5e3b39(_0x366e92[_0x15941b]),_0x366e92[_0x15941b]={'start':_0x1d5672,'tapeItem':_0xd16e98[_0xec24c4],'userId':_0x4f436c,'type':_0x15941b}),_0x366e92[_0x15941b]&&_0x424f45&&('elementStart'!==_0xd16e98[_0xec24c4]['type']||_0x59d80a&&_0x59d80a['userId']===_0x4f436c||_0x1d9868[_0x15941b]['unshift']({'userId':_0x4f436c,'object':_0xd16e98[_0xec24c4]['item'],'change':_0x366e92[_0x15941b]}),'elementEnd'===_0xd16e98[_0xec24c4]['type']&&_0x59d80a&&_0x59d80a['object']===_0xd16e98[_0xec24c4]['item']&&(_0x1d9868[_0x15941b]['shift'](),_0x366e92[_0x15941b]=_0x59d80a['change'])),_0x366e92[_0x15941b]&&_0x38153c&&(_0x366e92[_0x15941b]['end']=_0x754128,_0x5e3b39(_0x366e92[_0x15941b]),_0x366e92[_0x15941b]=null);}function _0x5e3b39({start:_0x378245,end:_0x33fb9e,tapeItem:_0x167027,userId:_0x17d22f,type:_0x4fd835}){const _0x59654e=_0x167027['item'],_0x2d2f93=_0x5bc072['schema']['isBlock'](_0x59654e)&&!_0x5bc072['schema']['isLimit'](_0x59654e),_0x5897d7=_0x378245['nodeAfter']==_0x33fb9e['parent']&&_0x33fb9e['isAtStart'];if(_0x2d2f93&&_0x5897d7)return;const _0x40ab4e=_0x5bc072['createRange'](_0x378245,_0x33fb9e),_0x1aaf75=_0x311eb2['get'](_0x17d22f),_0x403a57=new G({'author':_0x1aaf75,'type':'isAdded'==_0x4fd835||'isAddSuggestion'==_0x4fd835?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4fd835||'isRemoveSuggestion'==_0x4fd835},'createdAt':new Date(),'rootName':_0x2f0810});_0x4031d1['push'](_0x403a57),_0x3a0900['markers']['set']('revision:'+_0x403a57['id'],_0x40ab4e);}function _0x594e92(_0x2945ab,_0x20f720){const _0x55720a=_0x2945ab['getAttributes'](),_0x4c1330=_0x20f720['getAttributes']();for(const _0x15314a of _0x55720a){if(_0x15314a[0x1]!==_0x20f720['getAttribute'](_0x15314a[0x0]))return!0x1;_0x4c1330['next']();}return _0x4c1330['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x386eeb=>{const _0x2bbd89=_0x386eeb['markerName']['split'](':')[0x1],_0x974a77=this['_getChangeFromId'](_0x2bbd89);if(!_0x974a77)return null;const _0x1656b4='add'==_0x974a77['type']?'insertion':'deletion',_0x76881b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1656b4];return _0x974a77['data']['isSuggestion']&&_0x76881b['push']('ck-suggestion-marker-'+_0x1656b4+'-new'),this['activeChange']==_0x974a77&&_0x76881b['push']('ck-suggestion-marker--active'),{'classes':_0x76881b,'attributes':{'data-change-id':_0x2bbd89}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5a33e2=>{_0x5a33e2['on']('element:pre',(_0x570965,_0x5b2b25,_0x311705)=>{const _0x327e3a=_0x5b2b25['viewItem']['getChild'](0x0);if(!_0x327e3a||!_0x327e3a['is']('element','code'))return;if(!_0x311705['consumable']['consume'](_0x327e3a,{'attributes':['vid_start','vid_end']}))return;const _0x4454c6=_0x5b2b25['modelRange']['start']['nodeAfter'];_0x311705['writer']['setAttribute']('vid_start',_0x327e3a['getAttribute']('vid_start'),_0x4454c6),_0x311705['writer']['setAttribute']('vid_end',_0x327e3a['getAttribute']('vid_end'),_0x4454c6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1ae3e1=>{_0x1ae3e1['on']('element',(_0x157b27,_0x4a7418,_0x4ddcd3)=>{if(!_0x4ddcd3['consumable']['consume'](_0x4a7418['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4a7418['modelRange']['isCollapsed'])return;const _0x2d9092=_0x4a7418['modelRange']['start']['nodeAfter'];_0x2d9092['hasAttribute']('vid_start')||_0x2d9092['hasAttribute']('vid')||(_0x4ddcd3['writer']['setAttribute']('vid_start',_0x4a7418['viewItem']['getAttribute']('vid_start'),_0x2d9092),_0x4ddcd3['writer']['setAttribute']('vid_end',_0x4a7418['viewItem']['getAttribute']('vid_end'),_0x2d9092));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4020ce=>_0x4020ce['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x56719d,[,_0x5f097d])=>{['vid_start','vid_end','vid']['includes'](_0x5f097d)&&(_0x56719d['return']=!0x0,_0x56719d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x8765ab=>{_0x8765ab['on']('attribute:vid',(_0x5e3059,_0xb41360,_0x34e158)=>{if('\x20'!=_0xb41360['item']['data']||_0xb41360['item']['parent']['maxOffset']>0x1)return;if(!_0x34e158['consumable']['consume'](_0xb41360['item'],_0x5e3059['name']))return;const _0x4be4c5=_0x34e158['writer'],_0x51ac5a=_0x34e158['mapper']['toViewRange'](_0xb41360['range']);_0x4be4c5['wrap'](_0x51ac5a,_0x4be4c5['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x54f4b2){const _0x3d87c1=_0x54f4b2['plugins']['get']('RevisionViewer');return(_0x335416,_0x280030,_0x364799)=>{const _0x5152be=_0x280030['markerName']['split'](':')[0x1],_0x3cb2f8=_0x3d87c1['_getChangeFromId'](_0x5152be);if(!_0x3cb2f8)return null;const _0x5bc3e9='add'==_0x3cb2f8['type']?'split':'merge';if(!_0x364799['consumable']['test'](_0x280030['markerRange'],_0x335416['name']))return;const _0x24751b=_0x280030['markerRange']['getWalker'](),_0x5df7ac=_0x280030['markerRange']['start'],_0x3c89bf=_0x54f4b2['model']['schema'];let _0xb41559=null,_0x2132a0=null,_0x2179e2=!0x1,_0x8cdbac=!0x1;for(const _0x241dd5 of _0x24751b){const _0x439814=_0x241dd5['item'];_0x2179e2=_0x2179e2||_0x3c89bf['isContent'](_0x439814);const _0x29d2c0=_0x364799['mapper']['toViewElement'](_0x439814);if(_0x29d2c0&&_0x29d2c0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x241dd5['type']&&(_0x3c89bf['isBlock'](_0x439814)&&!_0x3c89bf['isLimit'](_0x439814)&&(_0x439814['nextSibling']||_0x5df7ac['isAtEnd']?_0xb41559&&_0xb41559['parent']==_0x439814||(_0xb41559=_0x439814,_0x5f542e(_0x241dd5['previousPosition']),_0x8cdbac=!0x0):_0x2132a0=_0x2132a0||_0x241dd5['previousPosition']));}function _0x5f542e(_0x71d7dc){const _0x9f4525=_0x364799['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5bc3e9}),_0x3da299=_0x364799['mapper']['toViewPosition'](_0x71d7dc);_0x3cb2f8['data']['isSuggestion']&&_0x364799['writer']['addClass']('ck-suggestion-marker-'+_0x5bc3e9+'-new',_0x9f4525),_0x3d87c1['activeChange']==_0x3cb2f8&&_0x364799['writer']['addClass']('ck-suggestion-marker--active',_0x9f4525),_0x364799['writer']['insert'](_0x3da299,_0x9f4525),_0x364799['mapper']['bindElementToMarker'](_0x9f4525,_0x280030['markerName']);}_0x2179e2||_0x8cdbac||!_0x2132a0||_0x5f542e(_0x2132a0);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xb6a278,_0x2a8747,_0xb7971b)=>{const _0xd82850=_0xb7971b['mapper']['markerNameToElements'](_0x2a8747['markerName']);if(_0xd82850){for(const _0x225dcf of _0xd82850)(_0x225dcf['hasClass']('ck-suggestion-marker-split')||_0x225dcf['hasClass']('ck-suggestion-marker-merge'))&&(_0xb7971b['mapper']['unbindElementFromMarkerName'](_0x225dcf,_0x2a8747['markerName']),_0xb7971b['writer']['remove'](_0x225dcf));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3ae08f,_0x2605e0,_0x36c3c1)=>{const _0x17a992=_0x2605e0['markerName']['split'](':')[0x1],_0x408f58=this['_getChangeFromId'](_0x17a992);if(!_0x408f58)return null;const _0x3f9017='add'==_0x408f58['type']?'split':'merge';if(_0x36c3c1['consumable']['test'](_0x2605e0['markerRange'],_0x3ae08f['name']))for(const _0x46f30f of _0x2605e0['markerRange']['getItems']()){if(!_0x46f30f['is']('element','softBreak'))continue;const _0xc41b45=_0x36c3c1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3f9017}),_0x10d62e=_0x36c3c1['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x46f30f));_0x408f58['data']['isSuggestion']&&_0x36c3c1['writer']['addClass']('ck-suggestion-marker-'+_0x3f9017+'-new',_0xc41b45),this['activeChange']==_0x408f58&&_0x36c3c1['writer']['addClass']('ck-suggestion-marker--active',_0xc41b45),_0x36c3c1['writer']['insert'](_0x10d62e,_0xc41b45),_0x36c3c1['mapper']['bindElementToMarker'](_0xc41b45,_0x2605e0['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2fe09f=>{for(const _0x5f30d8 of this['editor']['model']['document']['getRootNames']()){const _0x52bfeb=this['editor']['model']['document']['getRoot'](_0x5f30d8),_0x34be9d=this['editor']['editing']['view']['document']['getRoot'](_0x5f30d8);if(_0x34be9d){const _0x47121d=_0x52bfeb['getAttribute']('revisionHistoryAttachChange');if(_0x2fe09f['removeAttribute']('data-change-id',_0x34be9d),_0x2fe09f['removeClass']('ck-revision-history-root-add',_0x34be9d),_0x2fe09f['removeClass']('ck-revision-history-root-remove',_0x34be9d),_0x2fe09f['removeClass']('ck-revision-history-root--active',_0x34be9d),_0x47121d){const _0x114a95=this['_getChangeFromId'](_0x47121d);if(!_0x114a95)return null;_0x2fe09f['setAttribute']('data-change-id',_0x47121d,_0x34be9d),_0x2fe09f['addClass']('ck-revision-history-root-'+_0x114a95['type'],_0x34be9d),this['activeChange']==_0x114a95&&_0x2fe09f['addClass']('ck-revision-history-root--active',_0x34be9d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x474be2=>'revision-comment:'+_0x474be2,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5662cc=>'revision-suggestion:'+_0x5662cc,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x687ba7=>({'name':'suggestion:'+_0x687ba7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2cbcb9=>{const _0x4a08b6=_0x2cbcb9['markerName']['split'](':')[0x1];return'insertion'!=_0x4a08b6&&'deletion'!=_0x4a08b6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4a08b6]};}}),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',(_0x4a548a,_0x3a3693,_0x33a9fd)=>{const _0x2294a3=_0x33a9fd['mapper']['markerNameToElements'](_0x3a3693['markerName']);if(_0x2294a3){for(const _0xb42775 of _0x2294a3)_0xb42775['is']('uiElement')&&(_0x33a9fd['mapper']['unbindElementFromMarkerName'](_0xb42775,_0x3a3693['markerName']),_0x33a9fd['writer']['remove'](_0xb42775));}},{'priority':'high'});}['_getChangeFromId'](_0x125e72){return this['_changeIdToChange']['get'](_0x125e72);}['_getViewForChange'](_0x33f6dc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x33f6dc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5b2e13,_0x995d5c,_0x52d2ee,_0x45cd26)=>{_0x45cd26&&this['_balloon']['remove'](_0x45cd26),_0x52d2ee&&(this['_balloon']['add']({'view':_0x52d2ee,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3f2eab=this['editor']['editing'],_0x38c3c8=this['_getChangeFromId'](_0x52d2ee['changeId']);let _0x43329d;if(_0x38c3c8['data']['isOnRoot']){const _0x5216e1=_0x3f2eab['view']['getDomRoot'](_0x38c3c8['rootName']);_0x43329d=Array['from'](_0x5216e1['getClientRects']());}else{const _0x2b433d=this['editor']['model']['markers']['get']('revision:'+_0x52d2ee['changeId']);_0x43329d=Array['from'](_0x3f2eab['mapper']['markerNameToElements'](_0x2b433d['name']))['map'](_0x2d6cc9=>_0x3f2eab['view']['domConverter']['mapViewToDom'](_0x2d6cc9))['map'](_0x1ed1e5=>Array['from'](_0x1ed1e5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x43329d[0x0];return _0x43329d['find'](_0x33e716=>_0x33e716['top']-0x3<=this['_activeViewTarget']['y']&&_0x33e716['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x33e716['left']-0x3<=this['_activeViewTarget']['x']&&_0x33e716['right']+0x3>=this['_activeViewTarget']['x'])||_0x43329d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x58b1e2,_0x53c76c,_0x1ef3e7,_0x39bb26)=>{this['activeView']=_0x1ef3e7?this['_getViewForChange'](_0x1ef3e7):null,this['editor']['model']['change'](()=>{const _0x1c23f7=this['editor']['editing'];_0x39bb26&&(_0x39bb26['data']['isOnRoot']?_0x1c23f7['view']['change'](_0x2a29fc=>{_0x2a29fc['removeClass']('ck-revision-history-root--active',_0x1c23f7['view']['document']['getRoot'](_0x39bb26['rootName']));}):_0x1c23f7['reconvertMarker']('revision:'+_0x39bb26['id'])),_0x1ef3e7&&(_0x1ef3e7['data']['isOnRoot']?_0x1c23f7['view']['change'](_0x60e129=>{_0x60e129['addClass']('ck-revision-history-root--active',_0x1c23f7['view']['document']['getRoot'](_0x1ef3e7['rootName']));}):_0x1c23f7['reconvertMarker']('revision:'+_0x1ef3e7['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x13ed6b,_0x444a2c)=>{if(this['activeChange'])return;const _0x18c8b0=this['_findChangeIdFromDomTarget'](_0x444a2c['target']),_0x25b95c=this['_changeIdToChange']['get'](_0x18c8b0);_0x25b95c?(this['_activeViewTarget']={'x':_0x444a2c['domEvent']['x'],'y':_0x444a2c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x25b95c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x235249,_0x4dcc56)=>{const _0x3870b5=this['_findChangeIdFromDomTarget'](_0x4dcc56['target']),_0x41c7d7=this['_changeIdToChange']['get'](_0x3870b5);_0x41c7d7?(this['_activeViewTarget']={'x':_0x4dcc56['domEvent']['x'],'y':_0x4dcc56['domEvent']['y']},_0x41c7d7===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x41c7d7):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4a9738){do{const _0x184ac0=_0x4a9738['getAttribute']('data-change-id');if(_0x184ac0)return _0x184ac0;_0x4a9738=_0x4a9738['parent'];}while(_0x4a9738);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x146bb9=>{for(const _0x3e50c6 of this['editor']['model']['markers'])_0x146bb9['removeMarker'](_0x3e50c6);});}}function Q(_0x2e5f05,_0x40fd35){return(_0x17bedc,_0x7d332e,_0x25fa11)=>{if(!_0x25fa11['consumable']['test'](_0x7d332e['markerRange'],_0x17bedc['name']))return;const _0x279e75=_0x7d332e['markerRange']['getWalker'](),_0x548a9d=_0x7d332e['markerRange']['start'],_0x19dd8f=_0x2e5f05['model']['schema'];let _0x3989ad=null,_0x3bbcdb=null,_0x293dd0=!0x1,_0x597acc=!0x1;for(const _0x5ac609 of _0x279e75){const _0x2f1efd=_0x5ac609['item'];_0x293dd0=_0x293dd0||_0x19dd8f['isContent'](_0x2f1efd);const _0xb567ad=_0x25fa11['mapper']['toViewElement'](_0x2f1efd);if(_0xb567ad&&_0xb567ad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5ac609['type']&&(_0x19dd8f['isBlock'](_0x2f1efd)&&!_0x19dd8f['isLimit'](_0x2f1efd)&&(_0x2f1efd['nextSibling']||_0x548a9d['isAtEnd']?_0x3989ad&&_0x3989ad['parent']==_0x2f1efd||(_0x3989ad=_0x2f1efd,_0x34a842(_0x5ac609['previousPosition']),_0x597acc=!0x0):_0x3bbcdb=_0x3bbcdb||_0x5ac609['previousPosition']));}function _0x34a842(_0x11f561){const _0x5946c9=_0x25fa11['mapper']['toViewPosition'](_0x11f561),_0x4fca7c=_0x25fa11['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x40fd35});_0x25fa11['writer']['insert'](_0x5946c9,_0x4fca7c),_0x25fa11['mapper']['bindElementToMarker'](_0x4fca7c,_0x7d332e['markerName']);}_0x293dd0||_0x597acc||!_0x3bbcdb||_0x34a842(_0x3bbcdb);};}class nt extends _0x3d72a2{constructor(_0x5a41ab){super(_0x5a41ab);const _0xa433a3=_0x5a41ab['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0xa433a3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xa433a3,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x29e43e=this['editor'],_0x1b7521=_0x29e43e['plugins']['get'](u),_0x57269b=_0x1b7521['isReady']?_0x1b7521['diff']['newRevisionId']:null;_0x29e43e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x57269b);}['refresh'](){const {isReady:_0x563b0b,isEnabled:_0x269b52,repository:_0x55dbd6,diff:_0x5f482e}=this['editor']['plugins']['get'](u),_0x5c81cc=_0x5f482e&&_0x55dbd6['getLaterVisibleRevision'](_0x5f482e['newRevisionId']);this['isEnabled']=_0x563b0b&&_0x269b52&&Boolean(_0x5c81cc);}}class rt extends _0x3d72a2{['_step'];constructor(_0x5c1f6e,{direction:_0x38bdf0}){super(_0x5c1f6e);const _0x332649=_0x5c1f6e['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x38bdf0?0x1:-0x1,this['listenTo'](_0x332649,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x332649,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x332649,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x46376f=this['editor'],_0x6ff4d7=_0x46376f['plugins']['get'](u),{isNavigationMode:_0x529225,currentChangeNumber:_0x5297da}=_0x6ff4d7;let _0x34206e;if(_0x6ff4d7['activeChange']=_0x529225?_0x6ff4d7['diff']['changes']['get'](_0x5297da+this['_step']):_0x6ff4d7['diff']['changes']['first'],_0x6ff4d7['activeChange']['data']['isOnRoot'])_0x34206e=_0x46376f['editing']['view']['getDomRoot'](_0x6ff4d7['activeChange']['rootName']);else{const _0x5dd2c1=_0x46376f['model']['markers']['get']('revision:'+_0x6ff4d7['activeChange']['id']);_0x34206e=_0x51a435(_0x46376f['editing'],_0x5dd2c1);}_0x3e961f({'target':_0x34206e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x55b4f4,currentChangeNumber:_0x5116de,numberOfChanges:_0x4d589f,isReady:_0x4697fa,isEnabled:_0xf610f6}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0xf610f6&&_0x4697fa&&_0x4d589f)&&(!_0x55b4f4||(0x1===this['_step']?_0x5116de<_0x4d589f-0x1:_0x5116de>0x0));}}class Ri extends _0x1252c{constructor(_0x32c140){super(_0x32c140);const _0x4b77d8=this['bindTemplate'],_0x56f9c2=new _0x3e3281(_0x32c140),_0x429c89=new _0x3e3281(_0x32c140);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',(_0x3d9044,_0x3e3d84)=>_0x3d9044&&_0x3e3d84>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5c2ed8,_0x2f129,_0x5d4445,_0x404019)=>{if(!_0x5c2ed8)return m(_0x32c140,'Loading...');if(!_0x5d4445)return m(_0x32c140,'No\x20changes');const _0xa6b075=m(_0x32c140,'NUMBER_OF_CHANGES',_0x5d4445);return _0x404019?m(_0x32c140,'X_OF_Y_CHANGES',[_0x2f129+0x1,_0x5d4445]):_0xa6b075;}),_0x56f9c2['set']({'label':m(_0x32c140,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x417944}),_0x429c89['set']({'label':m(_0x32c140,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1a66a1}),_0x56f9c2['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x429c89['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x56f9c2['on']('execute',()=>this['fire']('execute','backward')),_0x429c89['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',_0x4b77d8['if']('_isStatusLabelVisible','ck-hidden',_0xb4d530=>!_0xb4d530)]},'children':[{'text':_0x4b77d8['to']('isNavigationMode',_0x54ab2c=>_0x54ab2c?m(_0x32c140,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x32c140,'Total')+':\x20')}]},{'text':_0x4b77d8['to']('_statusText')}]},new _0x3401cb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x56f9c2,_0x429c89]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0xf4a8c2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2ea374=this['editor']['editing']['view'];_0x2ea374['change'](_0x3f7903=>{for(const _0x49789e of _0x2ea374['document']['roots'])_0x3f7903['addClass'](ge,_0x49789e);});}['hide'](){const _0x399ab8=this['editor']['editing']['view'];_0x399ab8['change'](_0x32e0c1=>{for(const _0x5c9576 of _0x399ab8['document']['roots'])_0x32e0c1['removeClass'](ge,_0x5c9576);});}}class v extends _0xf4a8c2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x217ffd=this['editor'],_0x2756b3=_0x217ffd['plugins']['get'](u),_0x41cdc4=_0x217ffd['plugins']['get'](ji);_0x217ffd['ui']['componentFactory']['add']('exitToEditing',_0x2a79c8=>{const _0x274f37=new _0x3e3281(_0x2a79c8);return _0x274f37['set']({'label':m(_0x2a79c8,'Back\x20to\x20editing'),'icon':_0x33482a,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x274f37,'execute',()=>{_0x217ffd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x274f37;}),_0x217ffd['ui']['componentFactory']['add']('restoreRevision',_0x247f64=>{const _0x243196=new _0x3e3281(_0x247f64);return _0x243196['set']({'label':m(_0x247f64,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x243196['bind']('isEnabled')['to'](_0x217ffd['commands']['get']('restoreRevision')),this['listenTo'](_0x243196,'execute',()=>_0x217ffd['execute']('restoreRevision')),_0x243196;}),_0x217ffd['ui']['componentFactory']['add']('changesNavigation',_0x2e3200=>{const _0x2e98f8=new Ri(_0x2e3200),_0x665ef=_0x217ffd['commands']['get']('showPreviousChange'),_0x54121b=_0x217ffd['commands']['get']('showNextChange');return _0x2e98f8['bind']('isBackwardNavigationEnabled')['to'](_0x665ef,'isEnabled'),_0x2e98f8['bind']('isForwardNavigationEnabled')['to'](_0x54121b,'isEnabled'),_0x2e98f8['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2756b3),this['listenTo'](_0x2e98f8,'execute',(_0x3e530f,_0x38db91)=>{_0x217ffd['execute']('forward'===_0x38db91?'showNextChange':'showPreviousChange');}),_0x2e98f8;}),_0x41cdc4['show'](),_0x2756b3['on']('change:isReady',(_0xe73706,_0x223f8a,_0x2902f8)=>{_0x2902f8?_0x41cdc4['hide']():_0x41cdc4['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x25d1d6,_0x573959){super(_0x25d1d6,_0x573959);const _0x2654b1=this['bindTemplate'];this['set']({'label':m(_0x25d1d6,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x25d1d6,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2654b1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2bcc4e=this['fieldView']['element'];this['_tooltipString']=_0x2bcc4e['scrollWidth']>_0x2bcc4e['clientWidth']&&_0x2bcc4e['value']||'';}}class ni extends _0x1252c{constructor(_0x244ad6,_0x7710b0,_0x3260e2){super(_0x244ad6);const _0x443273=new _0x5381bd();_0x443273['set']({'content':_0x4185e8,'viewBox':'0\x200\x2011\x2010'});const _0xfc9d8e=['ck','ck-revision-history-sidebar__revision-author'];_0x3260e2&&_0xfc9d8e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x54f378=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x244ad6,_0x3260e2?'Revision\x20creator':'Revision\x20author')},'children':[_0x443273,_0x7710b0['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xfc9d8e},'children':_0x54f378});}}function ai(_0x13601e,_0x1879f0){const _0x131e1c=_0x13601e['bindTemplate'],_0x25a619=_0x13601e['locale'],_0x428f78=_0x537cf1(_0x25a619);_0x428f78['panelPosition']='sw';const _0x94eb80=function(_0x4c7b9a,_0x5c037e){const _0x30a653=function(_0x309e53,_0x70ca65){const _0x1c22ad=_0x309e53['locale'],_0x5c33ae={'Compare\x20against\x20selected':m(_0x1c22ad,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1c22ad,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1c22ad,'Restore\x20this\x20revision')};return _0x70ca65['map'](_0x40c738=>{const _0x494ed0=_0x5c33ae[_0x40c738['name']];return _0x494ed0&&_0x494ed0!==_0x40c738['name']&&(_0x40c738['name']=_0x494ed0),_0x40c738;});}(_0x4c7b9a,_0x5c037e),_0x4e0952=new _0x4772da();for(const _0x2b09d9 of _0x30a653){const _0x44c3fa={'type':'button','model':new to({'label':_0x2b09d9['name'],'class':_0x2b09d9['class'],'withText':!0x0,'role':'menuitem','_action':_0x2b09d9['action']})};_0x44c3fa['model']['bind']('isEnabled')['to'](_0x4c7b9a,'isActionsDropdownOpen',_0x3dc523=>'function'!=typeof _0x2b09d9['isEnabled']||(!_0x3dc523||_0x2b09d9['isEnabled'](_0x4c7b9a))),_0x4e0952['add'](_0x44c3fa);}return _0x4e0952;}(_0x13601e,_0x1879f0);return _0x13601e['bind']('isActionsDropdownOpen')['to'](_0x428f78,'isOpen'),_0x428f78['buttonView']['set']({'label':m(_0x25a619,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x53ced5}),_0x428f78['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x131e1c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x131e1c['to'](_0x13bc5d=>_0x13bc5d['stopPropagation']())}}),_0x428f78['on']('execute',_0x2d0f8b=>{_0x13601e['isReady']&&'function'==typeof _0x2d0f8b['source']['_action']&&_0x2d0f8b['source']['_action'](_0x13601e);}),_0x13fdf3(_0x428f78,_0x94eb80,{'role':'menu'}),_0x428f78['listenTo'](_0x13601e,'change:isActionsDropdownOpen',(_0xb8a733,_0x26d2b1,_0x321b12)=>{if(_0x321b12)for(const _0xeef687 of _0x428f78['listView']['items']){const _0x15659a=_0xeef687['children']['first'],_0x305374=_0x1879f0['find'](_0xf1103a=>_0xf1103a['action']===_0x15659a['_action'])['isVisible'];_0xeef687['isVisible']=void 0x0===_0x305374||_0x305374(_0x13601e);}}),_0x428f78;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x55f3c4,uid as _0x32fb3d,Collection as _0xb9f14f,logWarning as _0x2bfbdf,FocusTracker as _0x45cd95,KeystrokeHandler as _0x4840ec,scrollViewportToShowTarget as _0x31208c,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x2d4ef5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2f730e,set as _0x3fbd3b,unset as _0x1cb60f,isEqual as _0x578ff5}from'es-toolkit/compat';import{Plugin as _0x694cb,PendingActions as _0xaad136,Command as _0x55cc81,ElementApiMixin as _0x241a35,Editor as _0xeea441}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x15e944,getMarkerDomElement as _0x45bde4,ConfirmMixin as _0x4bd5c9,sanitizeEditorConfig as _0x2802f6}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x46d1d9,ViewAttributeElement as _0x178a7e,ViewEmptyElement as _0x592690,ViewRawElement as _0xeb8ea4,ViewUIElement as _0x482129,ViewDocumentFragment as _0x86300e,ViewText as _0x36ba02,ViewElement as _0x5b2198,ModelElement as _0x3dce0a,ModelRange as _0x560abb,ModelPosition as _0x5c2d08,ModelDocumentFragment as _0x22dcf7,ModelText as _0x3ce810}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1e8d69,IconChevronUp as _0x11f797,IconChevronDown as _0x48dfa2,IconUndo as _0x3c6c73,IconUser as _0x28a2e1,IconThreeVerticalDots as _0x749d18}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x29923f,View as _0x2f41d6,submitHandler as _0x21b648,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x3712c9,ListView as _0x5ea3f3,ListItemView as _0x364167,ButtonView as _0x22b97e,MenuBarMenuView as _0x4866c8,MenuBarMenuListView as _0x53d609,MenuBarMenuListItemView as _0x27f4f3,MenuBarMenuListItemButtonView as _0x291a30,ContextualBalloon as _0x421015,ToolbarSeparatorView as _0x1f6c28,IconView as _0x5d5bfc,addListToDropdown as _0x3bfd43,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0xb22772,StickyPanelView as _0x36fc62,ToolbarView as _0x4c68be,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x506ceb}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x55f3c4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x50cca0){super(),this['id']=_0x50cca0['id']||_0x32fb3d(),this['creator']=_0x50cca0['creator']||null,this['authors']=_0x50cca0['authors']||[],this['diffData']=_0x50cca0['diffData']||null,this['toVersion']=_0x50cca0['toVersion']||0x0,this['fromVersion']=_0x50cca0['fromVersion']||0x0,this['set']('name',_0x50cca0['name']||''),this['set']('createdAt',_0x50cca0['createdAt']||new Date()),this['set']('attributes',_0x50cca0['attributes']||{});}['setName'](_0x583834){this['_update']({'name':_0x583834});}['setAttribute'](_0x4538d5,_0x39362f){const _0x147b02=_0x2f730e(this['attributes']);_0x3fbd3b(_0x147b02,_0x4538d5,_0x39362f),this['_update']({'attributes':_0x147b02});}['removeAttribute'](_0x1ed976){const _0x355ec7=_0x2f730e(this['attributes']);_0x1cb60f(_0x355ec7,_0x1ed976),this['_update']({'attributes':_0x355ec7});}['_update'](_0x529a16,_0x1e8581=!0x1){let _0x4de588=!0x1;const _0x23d684={'id':this['id']},_0x413dc3=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x41345a of _0x413dc3){const _0x55c104=_0x529a16[_0x41345a];void 0x0!==_0x55c104&&_0x55c104!==this[_0x41345a]&&(this[_0x41345a]=_0x55c104,_0x23d684[_0x41345a]=_0x55c104,_0x4de588=!0x0);}_0x4de588&&(_0x23d684['authors']&&(_0x23d684['authorsIds']=_0x23d684['authors']['map'](_0xd8d24a=>_0xd8d24a['id']),delete _0x23d684['authors']),this['fire']('_update',_0x23d684,_0x1e8581));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3cf7b7=>_0x3cf7b7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x694cb{['_revisions'];static get['requires'](){return[_0x15e944];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x18281b){super(_0x18281b),this['_revisions']=new _0xb9f14f();}['afterInit'](){!async function(_0x54c1b5){const _0x42fec2=_0x333753([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x1a1291=0xeb829,_0x487e7a=0x359e09b0,_0x5ddeab=0x35998968^_0x487e7a,_0x1fbb23=window[_0x333753([0x44,0x61,0x74,0x65])][_0x333753([0x6e,0x6f,0x77])](),_0x82fa2=_0x54c1b5[_0x333753([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x286005=new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11535d=>{_0x82fa2[_0x333753([0x6f,0x6e,0x63,0x65])](_0x333753([0x72,0x65,0x61,0x64,0x79]),_0x11535d);}),_0xe22915={[_0x333753([0x6b,0x74,0x79])]:_0x333753([0x45,0x43]),[_0x333753([0x75,0x73,0x65])]:_0x333753([0x73,0x69,0x67]),[_0x333753([0x63,0x72,0x76])]:_0x333753([0x50,0x2d,0x32,0x35,0x36]),[_0x333753([0x78])]:_0x333753([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]),[_0x333753([0x79])]:_0x333753([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]),[_0x333753([0x61,0x6c,0x67])]:_0x333753([0x45,0x53,0x32,0x35,0x36])},_0x2ffddb=_0x82fa2[_0x333753([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x333753([0x67,0x65,0x74])](_0x333753([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d6240(){let _0x566a46,_0x1d1c98=null,_0x4eb18b=null;try{if(_0x2ffddb==_0x333753([0x47,0x50,0x4c]))return _0x333753([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x566a46=_0x237c82(),!_0x566a46)return _0x333753([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x566a46[_0x333753([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4eb18b=_0x563a5(_0x566a46[_0x333753([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x566a46[_0x333753([0x6a,0x74,0x69])])),await _0x4db036()?_0xebc0ce()?_0x6166bb()?_0x333753([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x71799c()?(_0x566a46[_0x333753([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x333753([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d1c98=_0x3ee140(_0x333753([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x586975()):_0x333753([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x333753([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x333753([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x333753([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6166bb(){const _0x3c43ad=[_0x333753([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x333753([0x74,0x72,0x69,0x61,0x6c])][_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x566a46[_0x333753([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fbb23/0x3e8:0xe10*_0x5ddeab;return _0x566a46[_0x333753([0x65,0x78,0x70])]<_0x3c43ad;}function _0xebc0ce(){const _0x33adf1=_0x566a46[_0x333753([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x33adf1)return!0x1;if(_0x33adf1[_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333753([0x2a])))return!0x0;if(_0x33adf1[_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333753([0x52,0x48])))return!0x0;if(_0x33adf1[_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333753([0x52,0x52,0x48]))){if(_0x6a096e())return!0x0;if(_0x225283()||_0x518e57())return!0x0;}return!0x1;}function _0x71799c(){const _0x1e8b06=_0x566a46[_0x333753([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e8b06||0x0==_0x1e8b06[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18d116}=new URL(window[_0x333753([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1e8b06[_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18d116))return!0x0;const _0x4656f1=_0x18d116[_0x333753([0x73,0x70,0x6c,0x69,0x74])](_0x333753([0x2e]));return _0x1e8b06[_0x333753([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45365d=>_0x45365d[_0x333753([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333753([0x2a])))[_0x333753([0x6d,0x61,0x70])](_0x5834c4=>_0x5834c4[_0x333753([0x73,0x70,0x6c,0x69,0x74])](_0x333753([0x2e])))[_0x333753([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x154ecb=>_0x154ecb[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4656f1[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x333753([0x6d,0x61,0x70])](_0x6b1f14=>Array(_0x4656f1[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x6b1f14[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x333753([0x66,0x69,0x6c,0x6c])](_0x6b1f14[0x0]===_0x333753([0x2a])?_0x333753([0x2a]):'')[_0x333753([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x6b1f14))[_0x333753([0x73,0x6f,0x6d,0x65])](_0x5261a1=>_0x4656f1[_0x333753([0x65,0x76,0x65,0x72,0x79])]((_0x479cc5,_0x59b1ec)=>_0x5261a1[_0x59b1ec]===_0x479cc5||_0x5261a1[_0x59b1ec]===_0x333753([0x2a])));}function _0x586975(){return _0x1d1c98&&_0x4eb18b?new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26b963,_0x2b8e40)=>{_0x1d1c98[_0x333753([0x74,0x68,0x65,0x6e])](_0x26b963,_0x2b8e40),_0x4eb18b[_0x333753([0x74,0x68,0x65,0x6e])](_0x5b4ba2=>{_0x5b4ba2!=_0x333753([0x56,0x61,0x6c,0x69,0x64])&&_0x26b963(_0x5b4ba2);},_0x2b8e40);}):_0x1d1c98||_0x4eb18b||_0x333753([0x56,0x61,0x6c,0x69,0x64]);}}function _0x563a5(_0x34ff4b,_0x7c7ce0){return new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d672c=>{if(_0x2d410d())return _0x1d672c(_0x333753([0x56,0x61,0x6c,0x69,0x64]));_0x2a89ab(),_0x82fa2[_0x333753([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x333753([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d580b=!0x1;const _0xc28fbe=_0x32fb3d();function _0x4fbdcb(_0x2ec29e){return!!_0x2ec29e&&(typeof _0x2ec29e===_0x333753([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ec29e===_0x333753([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ec29e[_0x333753([0x74,0x68,0x65,0x6e])]===_0x333753([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ec29e[_0x333753([0x63,0x61,0x74,0x63,0x68])]===_0x333753([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x136d73(_0x35f75a){_0x4b3e28(_0x35f75a)[_0x333753([0x74,0x68,0x65,0x6e])](_0x26d0a8=>{if(!_0x26d0a8||_0x26d0a8[_0x333753([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x333753([0x6f,0x6b]))return _0x333753([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cedcb(_0x411fcc(_0xc28fbe+_0x7c7ce0))!=_0x26d0a8[_0x333753([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x333753([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x333753([0x56,0x61,0x6c,0x69,0x64]);})[_0x333753([0x74,0x68,0x65,0x6e])](_0x43855b=>(_0x1e57d0(),_0x43855b),()=>{const _0x5d9e89=_0x39da7c();return null==_0x5d9e89?(_0x1e57d0(),_0x333753([0x56,0x61,0x6c,0x69,0x64])):_0x333753(_0x1fbb23-_0x5d9e89>(0x11928db0^_0x487e7a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x333753([0x74,0x68,0x65,0x6e])](_0x1d672c)[_0x333753([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d672c(_0x333753([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x549e20=0x35a8e730^_0x487e7a;function _0x1e57d0(){const _0x420ba1=_0x333753([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cedcb(_0x411fcc(_0x34ff4b)),_0x28b159=_0x5cd44d(_0x5cedcb(window[_0x333753([0x4d,0x61,0x74,0x68])][_0x333753([0x63,0x65,0x69,0x6c])](_0x1fbb23/_0x549e20)));window[_0x333753([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x333753([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x420ba1,_0x28b159);}function _0x39da7c(){const _0x21da77=_0x333753([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cedcb(_0x411fcc(_0x34ff4b)),_0x74c88c=window[_0x333753([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x333753([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21da77);return _0x74c88c?window[_0x333753([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cd44d(_0x74c88c),0x10)*_0x549e20:null;}function _0x4b3e28(_0x2603f3){return new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3190dd,_0x3b02c8)=>{_0x2603f3[_0x333753([0x74,0x68,0x65,0x6e])](_0x3190dd,_0x3b02c8),window[_0x333753([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b02c8,0x359fdd70^_0x487e7a);});}}_0x82fa2[_0x333753([0x6f,0x6e])](_0x333753([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6e2dff,_0x2e0b13)=>{if(_0x2e0b13[0x0]!=_0x34ff4b)return _0x1d672c(_0x333753([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e0b13[0x1]={..._0x2e0b13[0x1],[_0x333753([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc28fbe};},{[_0x333753([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x333753([0x68,0x69,0x67,0x68])}),_0x82fa2[_0x333753([0x6f,0x6e])](_0x333753([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53a065=>{_0x4fbdcb(_0x53a065[_0x333753([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d580b=!0x0,_0x136d73(_0x53a065[_0x333753([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x333753([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x333753([0x6c,0x6f,0x77])}),_0x286005[_0x333753([0x74,0x68,0x65,0x6e])](()=>{_0x4d580b||_0x1d672c(_0x333753([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d410d(){return _0x82fa2[_0x333753([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x333753([0x76,0x69,0x65,0x77])][_0x333753([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x333753([0x61,0x75,0x74,0x6f]);}function _0x2a89ab(){_0x82fa2[_0x333753([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x333753([0x76,0x69,0x65,0x77])][_0x333753([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x333753([0x61,0x75,0x74,0x6f]);}}function _0x3ee140(_0x237dfe){const _0x24f694=[new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x164696=>setTimeout(_0x164696,0x3597377c^_0x487e7a)),_0x286005[_0x333753([0x74,0x68,0x65,0x6e])](()=>new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e68f3=>{const _0x209663=0x359e09b7^_0x487e7a,_0x457088=_0x54c1b5[_0x333753([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x556f43(){_0x457088[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x209663&&_0x3e68f3();}_0x556f43(),_0x457088[_0x333753([0x6f,0x6e])](_0x333753([0x61,0x64,0x64]),_0x556f43);})),new window[(_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a27f8=>{function _0x26d823(){for(const _0x66e1ea in window)if(window[_0x333753([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x333753([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x66e1ea))&&window[_0x66e1ea]==_0x1a1291)return _0x5a27f8();_0x82fa2[_0x333753([0x73,0x74,0x61,0x74,0x65])]!=_0x333753([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x333753([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26d823,0x359e1a38^_0x487e7a);}_0x1b6c09(_0x333753([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x26d823();})];return window[_0x333753([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x333753([0x72,0x61,0x63,0x65])](_0x24f694)[_0x333753([0x74,0x68,0x65,0x6e])](()=>_0x237dfe);}async function _0x29ffe5(){if(await _0x286005,_0x1b6c09(_0x333753([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x41d8f1=_0x54c1b5[_0x333753([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x87bc2c=_0x54c1b5[_0x333753([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])](_0x41d8f1[_0x333753([0x69,0x64])]),_0x5650a6=_0x34928f(_0x333753([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5650a6[_0x333753([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x41d8f1['id'],_0x87bc2c?_0x87bc2c['id']:null,!0x0),_0x5650a6[_0x333753([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x333753([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5650a6[_0x333753([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5650a6[_0x333753([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x357a9f,void(_0x5650a6[_0x333753([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x357a9f);}if(_0x1b6c09(_0x333753([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xfec454=_0x34928f(_0x333753([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xfec454[_0x333753([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x333753([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xfec454[_0x333753([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xfec454[_0x333753([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x357a9f,_0xfec454[_0x333753([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x357a9f;}_0x82fa2[_0x333753([0x6d,0x6f,0x64,0x65,0x6c])][_0x333753([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x357a9f,_0x82fa2[_0x333753([0x6d,0x6f,0x64,0x65,0x6c])][_0x333753([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x357a9f,_0x82fa2[_0x333753([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x333753([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x6a096e(){return _0x1b6c09(_0x333753([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x34928f(_0x333753([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x333753([0x73,0x74,0x61,0x74,0x65])]==_0x333753([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x225283(){return _0x1b6c09(_0x333753([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 _0x518e57(){return _0x1b6c09(_0x333753([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3f51a3(_0x2bf463){const _0x6a41ce=_0x4a8136();_0x82fa2[_0x6a41ce]=_0x333753([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])+_0x2bf463,_0x2bf463[_0x333753([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x333753([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4a8136()]=_0x1a1291),_0x2bf463!=_0x333753([0x56,0x61,0x6c,0x69,0x64])&&_0x29ffe5();}function _0x4a8136(){const _0x1207ee=window[_0x333753([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x333753([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x333753([0x6e,0x6f,0x77])]())[_0x333753([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x333753([0x2e]),'');let _0x457c4e=_0x333753([0x76]);for(let _0x5347bb=0x0;_0x5347bb<_0x1207ee[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5347bb+=0x2){let _0x4b2151=window[_0x333753([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1207ee[_0x333753([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5347bb,_0x5347bb+0x2));_0x4b2151>=_0x42fec2[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b2151-=_0x42fec2[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x457c4e+=_0x42fec2[_0x4b2151];}return _0x457c4e;}function _0x237c82(){const _0x4e514d=_0x2ffddb[_0x333753([0x73,0x70,0x6c,0x69,0x74])](_0x333753([0x2e]));if(0x3!=_0x4e514d[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x380845(_0x4e514d[0x1]);function _0x380845(_0x4556e4){const _0x5547d3=_0x53b6e6(_0x4556e4);return _0x5547d3&&_0x5682bd()?_0x5547d3:null;function _0x5682bd(){const _0x14f0f6=_0x5547d3[_0x333753([0x6a,0x74,0x69])],_0x2d7d7c=window[_0x333753([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14f0f6[_0x333753([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14f0f6[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38a9c1={..._0x5547d3,[_0x333753([0x6a,0x74,0x69])]:_0x14f0f6[_0x333753([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14f0f6[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38a9c1[_0x333753([0x76,0x63])],_0x411fcc(_0x38a9c1)==_0x2d7d7c;}}}async function _0x4db036(){let _0x1b91e4=!0x0;try{const _0x134874=_0x2ffddb[_0x333753([0x73,0x70,0x6c,0x69,0x74])](_0x333753([0x2e])),[_0x5d5fa5,_0x4fad06,_0x1d554b]=_0x134874;return _0x2b2ccd(_0x5d5fa5),await _0x5e2ded(_0x5d5fa5,_0x4fad06,_0x1d554b),_0x1b91e4;}catch{return!0x1;}function _0x2b2ccd(_0x1c1795){const _0xe625f0=_0x53b6e6(_0x1c1795);_0xe625f0&&_0xe625f0[_0x333753([0x61,0x6c,0x67])]==_0x333753([0x45,0x53,0x32,0x35,0x36])||(_0x1b91e4=!0x1);}async function _0x5e2ded(_0x5ec310,_0x2dfcb2,_0x31e9d0){const _0x2e9260=window[_0x333753([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x333753([0x66,0x72,0x6f,0x6d])](_0xce4646(_0x31e9d0),_0x5a0bd5=>_0x5a0bd5[_0x333753([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x430c5b=new window[(_0x333753([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x333753([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ec310+_0x333753([0x2e])+_0x2dfcb2),_0x17ca7b=window[_0x333753([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x333753([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17ca7b)return;const _0x34b46d=await _0x17ca7b[_0x333753([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x333753([0x6a,0x77,0x6b]),_0xe22915,{[_0x333753([0x6e,0x61,0x6d,0x65])]:_0x333753([0x45,0x43,0x44,0x53,0x41]),[_0x333753([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x333753([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x333753([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17ca7b[_0x333753([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x333753([0x6e,0x61,0x6d,0x65])]:_0x333753([0x45,0x43,0x44,0x53,0x41]),[_0x333753([0x68,0x61,0x73,0x68])]:{[_0x333753([0x6e,0x61,0x6d,0x65])]:_0x333753([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34b46d,_0x2e9260,_0x430c5b)||(_0x1b91e4=!0x1);}}function _0x53b6e6(_0x5025bc){return _0x5025bc[_0x333753([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x333753([0x65,0x79]))?JSON[_0x333753([0x70,0x61,0x72,0x73,0x65])](_0xce4646(_0x5025bc)):null;}function _0xce4646(_0xd203d0){return window[_0x333753([0x61,0x74,0x6f,0x62])](_0xd203d0[_0x333753([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x333753([0x2b]))[_0x333753([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x333753([0x2f])));}function _0x411fcc(_0x45f3a2){let _0x328a77=0x1505;function _0x25328a(_0xec3f62){for(let _0x55b1c8=0x0;_0x55b1c8<_0xec3f62[_0x333753([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55b1c8++){const _0xa53851=_0xec3f62[_0x333753([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55b1c8);_0x328a77=(_0x328a77<<0x5)+_0x328a77+_0xa53851,_0x328a77&=_0x328a77;}}function _0x3ad6b1(_0x2a1401){Array[_0x333753([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a1401)?_0x2a1401[_0x333753([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3ad6b1):_0x2a1401&&typeof _0x2a1401==_0x333753([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x333753([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a1401)[_0x333753([0x73,0x6f,0x72,0x74])]()[_0x333753([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e7eff,_0x330727])=>{_0x25328a(_0x3e7eff),_0x3ad6b1(_0x330727);}):_0x25328a(window[_0x333753([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a1401));}return _0x3ad6b1(_0x45f3a2),_0x328a77>>>0x0;}function _0x5cedcb(_0x38460b){return _0x38460b[_0x333753([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x333753([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x333753([0x30]));}function _0x5cd44d(_0x2f6b59){return _0x2f6b59[_0x333753([0x73,0x70,0x6c,0x69,0x74])]('')[_0x333753([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x333753([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b6c09(_0x9d8a54){return _0x82fa2[_0x333753([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x333753([0x68,0x61,0x73])](_0x9d8a54);}function _0x34928f(_0x308a20){return _0x82fa2[_0x333753([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x333753([0x67,0x65,0x74])](_0x308a20);}function _0x357a9f(){}function _0x333753(_0x35457d){return _0x35457d['map'](_0x1520b1=>String['fromCharCode'](_0x1520b1))['join']('');}_0x3f51a3(await _0x5d6240());}(this);}['createRevision'](_0x4ad99d){const _0x4a57c0=this['editor']['plugins']['get']('Users');return new I({'id':_0x4ad99d['id'],'name':_0x4ad99d['name'],'creator':_0x4ad99d['creatorId']?_0x4a57c0['getUser'](_0x4ad99d['creatorId']):null,'diffData':_0x4ad99d['diffData']||_0x4ad99d['data'],'authors':_0x4ad99d['authorsIds']['map'](_0xd7190=>_0x4a57c0['getUser'](_0xd7190)),'createdAt':new Date(_0x4ad99d['createdAt']),'attributes':_0x4ad99d['attributes'],'fromVersion':_0x4ad99d['fromVersion'],'toVersion':_0x4ad99d['toVersion']});}['addRevision'](_0x56a61f,_0xd73c4f=0x0){this['_revisions']['add'](_0x56a61f,_0xd73c4f);}['getRevision'](_0x4c7321){return this['_revisions']['get'](_0x4c7321);}['getRevisions'](_0x315339={'toJSON':!0x1}){const _0x28af4a=Array['from'](this['_revisions']);return _0x28af4a['reverse'](),_0x315339['toJSON']?_0x28af4a['map'](_0x8bf0de=>_0x8bf0de['toJSON']()):_0x28af4a;}['getIndex'](_0x3a2485){return this['_revisions']['getIndex'](_0x3a2485);}['getEarlierVisibleRevision'](_0x3ab2ed){const [,_0x1fba4b]=this['getRevisionsIterator'](_0x3ab2ed,{'direction':'earlier'});return _0x1fba4b;}['getLaterVisibleRevision'](_0x307f60){const [,_0x247560]=this['getRevisionsIterator'](_0x307f60,{'direction':'later'});return _0x247560;}['getRevisionsInDiff'](_0x2291ea){const _0x1c2069=[];for(const _0x3ed16e of this['getRevisionsIterator'](_0x2291ea['newRevisionId']))if(_0x1c2069['push'](_0x3ed16e),_0x3ed16e['id']===_0x2291ea['oldRevisionId'])break;return _0x1c2069;}*['getRevisionsIterator'](_0x15c2e5,{direction:_0xa6f2d3='earlier',filter:_0x4fbde4=()=>!0x0}={}){const _0x48c65a='earlier'===_0xa6f2d3?0x1:-0x1;let _0x27dde8=this['_revisions']['get'](_0x15c2e5),_0x3203af=this['getIndex'](_0x27dde8);for(yield _0x27dde8;_0x27dde8;){if(_0x3203af+=_0x48c65a,_0x27dde8=this['getRevision'](_0x3203af),!_0x27dde8)return;_0x4fbde4(_0x27dde8)&&(yield _0x27dde8);}}}class $ extends _0x694cb{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x46d1d9,'c'],[_0x178a7e,'a'],[_0x592690,'e'],[_0xeb8ea4,'r'],[_0x482129,'u']]);['_typeCharToViewClass']=new Map([['c',_0x46d1d9],['a',_0x178a7e],['e',_0x592690],['r',_0xeb8ea4],['u',_0x482129]]);async['loadRevisionData'](_0x2249a7,_0x509daa){if(_0x2249a7['diffData']||!_0x509daa)return;const _0x27c269=this['editor']['config']['get']('collaboration.channelId'),_0x2ec6d3=await _0x509daa['getRevision']({'channelId':_0x27c269,'revisionId':_0x2249a7['id']});_0x2249a7['diffData']=_0x2ec6d3['diffData'];}['getRevisionDocumentData'](_0x2b5bab){const _0x5b21e0={};for(const _0x2ee896 in _0x2b5bab['diffData']){if(_0x2b5bab['diffData'][_0x2ee896]['attachChange']&&!_0x2b5bab['diffData'][_0x2ee896]['attachChange']['isAttached'])continue;const _0x17aec8=this['_removeRevisionMarkers'](JSON['parse'](_0x2b5bab['diffData'][_0x2ee896]['insertions'])),_0x4b200e=this['editor']['editing']['view']['document'],_0x32d55d=new _0x86300e(_0x4b200e,_0x17aec8['map'](_0x389bf0=>this['_getViewFromDiffObj'](_0x389bf0,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5b21e0[_0x2ee896]=this['editor']['data']['processor']['toData'](_0x32d55d),this['editor']['data']['processor']['useFillerType']('default');}return _0x5b21e0;}['getRevisionRootsAttributes'](_0x3bd78b){const _0x384ac8={};for(const _0x389b58 in _0x3bd78b['diffData'])_0x3bd78b['diffData'][_0x389b58]['attachChange']&&!_0x3bd78b['diffData'][_0x389b58]['attachChange']['isAttached']||(_0x384ac8[_0x389b58]=_0x3bd78b['diffData'][_0x389b58]['attributesAfter']||{});return _0x384ac8;}['_getTypeCharForViewElement'](_0x49cd28){return this['_viewClassToTypeChar']['get'](_0x49cd28['constructor']);}['_getViewFromDiffObj'](_0x261944,_0x4c1895){const _0x138662=this['editor']['editing']['view']['document'];if('string'==typeof _0x261944)return new _0x36ba02(_0x138662,_0x261944);{let _0x424117,_0x4ef0bb;_0x4ef0bb='u'==_0x261944['type']||'r'==_0x261944['type']?[]:_0x261944['children']['map'](_0x1d38bd=>this['_getViewFromDiffObj'](_0x1d38bd,_0x4c1895));const _0x2faf00=this['_typeCharToViewClass']['get'](_0x261944['type'])||_0x5b2198,_0x1629cf=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x424117=new _0x2faf00(_0x138662,_0x261944['name'],_0x261944['attributes'],_0x4ef0bb),'u'==_0x261944['type']&&_0x261944['children'][0x0]){const _0x182b6c=_0x261944['children'][0x0];if(_0x424117['render']=function(_0x3c9557){const _0x33e38d=_0x3c9557['createElement']('div');return _0x33e38d['innerHTML']=_0x182b6c,_0x33e38d['childNodes'][0x0];},_0x4c1895){const _0x24d7ef=new _0x86300e(_0x138662);_0x24d7ef['_appendChild'](_0x424117);const _0x685cd8=Array['from'](_0x1629cf['viewChildrenToDom'](_0x24d7ef,{'bind':!0x1})),_0xb9afcf=_0x1629cf['domDocument']['createElement']('div');_0xb9afcf['append'](..._0x685cd8),_0x424117=Array['from'](_0x1629cf['domChildrenToView'](_0xb9afcf))[0x0];}}else{if('r'==_0x261944['type']&&_0x261944['children'][0x0]){const _0x1d93c6=_0x261944['children'][0x0];if(_0x424117['render']=function(_0x234307){_0x234307['innerHTML']=_0x1d93c6;},_0x4c1895){const _0x226a58=new _0x86300e(_0x138662);_0x226a58['_appendChild'](_0x424117);const _0x43c1f6=Array['from'](_0x1629cf['viewChildrenToDom'](_0x226a58,{'bind':!0x1})),_0x45568d=_0x1629cf['domDocument']['createElement']('div');_0x45568d['append'](..._0x43c1f6);const _0x161e77=Array['from'](_0x1629cf['domChildrenToView'](_0x45568d));_0x161e77['length']>0x1?_0x424117['_appendChild'](_0x161e77):_0x424117=_0x161e77[0x0];}}}if(_0x261944['customProperties']){for(const [_0x3f2c38,_0x1188ec]of _0x261944['customProperties'])_0x424117['_setCustomProperty'](_0x3f2c38,_0x1188ec);}const _0x5e47e1=void 0x0===_0x261944['fillerOffset']?null:_0x261944['fillerOffset'];return null!==_0x5e47e1&&(_0x424117['getFillerOffset']=()=>_0x5e47e1),_0x424117;}}['_makeModelFromViewString'](_0x10b28f){const _0x32978b=JSON['parse'](_0x10b28f),_0x19c0de=this['editor']['editing']['view']['document'],_0x2cf6ba=new _0x86300e(_0x19c0de,_0x32978b['map'](_0x5c46d1=>this['_getViewFromDiffObj'](_0x5c46d1,!0x0)));return this['editor']['data']['toModel'](_0x2cf6ba);}['_removeRevisionMarkers'](_0x26ea5c){return(_0x26ea5c=_0x26ea5c['filter'](_0x73e131=>!_0x73e131['name']||'revision-start'!==_0x73e131['name']&&'revision-end'!==_0x73e131['name']))['forEach'](_0x31e31f=>{'string'!=typeof _0x31e31f&&(_0x31e31f['children']=this['_removeRevisionMarkers'](_0x31e31f['children']),_0x31e31f['attributes']=_0x31e31f['attributes']['filter'](_0x546fc6=>!_0x546fc6[0x0]['startsWith']('data-revision-')));}),_0x26ea5c;}}function m(_0xf5f409,_0x4a5244,_0x3c944f){const t=_0xf5f409['t'];switch(_0x4a5244){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'},_0x3c944f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3c944f);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 _0x694cb{['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[_0x15e944,S,$,_0xaad136];}constructor(_0x121c8b){super(_0x121c8b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x43d2fd=_0x32fb3d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x43d2fd},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 _0x16f375=this['repository']['getRevision'](0x0),_0x891092=_0x16f375&&null===_0x16f375['creator']?_0x16f375:null;if(this['_continueCurrentRevision']=!!_0x891092&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x51beb0=this['_source']['getCurrentRevisionId'](),_0x455d6c=this['repository']['getRevision'](_0x51beb0);if(_0x455d6c)this['_startingVersion']=_0x455d6c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x48d9ea=this['_source']['history']['_operations']['find'](_0x442441=>!_0x442441['_isInit']),_0x3a9cfe=_0x48d9ea?_0x48d9ea['baseVersion']:this['_source']['history']['version'];_0x16f375?(_0x16f375['toVersion']<_0x3a9cfe&&_0x16f375['_update']({'toVersion':_0x3a9cfe}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x891092['id'],this['_startingVersion']=_0x891092['fromVersion']):(this['_startingVersion']=_0x16f375['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3a9cfe,this['_continueCurrentRevision']=!0x1);}}else _0x891092&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x891092['toVersion'],this['editor']['model']['document']['history']['version']),_0x891092['fromVersion']===_0x891092['toVersion']?(0x0!==_0x891092['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x891092['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x891092['id'],this['_startingVersion']=_0x891092['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',_0x2751f2=>!_0x2751f2),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe807fa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x161da2;for(const _0x4b94b8 in _0xe807fa){const _0x53b6d1=_0x4b94b8,_0x363ee3=_0xe807fa[_0x53b6d1];if('revisionHistoryLicenseKeyValid'==_0x363ee3||'revisionHistoryLicenseKeyInvalid'==_0x363ee3||'revisionHistoryLicenseKeyExpired'==_0x363ee3||'revisionHistoryLicenseKeyDomainLimit'==_0x363ee3||'revisionHistoryLicenseKeyNotAllowed'==_0x363ee3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x363ee3||'revisionHistoryLicenseKeyUsageLimit'==_0x363ee3){delete _0xe807fa[_0x53b6d1],_0x161da2=_0x363ee3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x161da2&&_0xe807fa['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x161da2&&_0xe807fa['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x161da2&&_0xe807fa['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x161da2&&_0xe807fa['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x161da2&&_0xe807fa['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x161da2&&_0xe807fa['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x11aac9=this['repository']['getRevision'](0x0),_0x5d26df=await this['getRevisionDocumentData'](_0x11aac9),_0x377154=await this['getRevisionRootsAttributes'](_0x11aac9);this['_replaceEditorDataWithRevisionData'](_0x5d26df,_0x377154);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xc6604e){this['_source']=_0xc6604e;}async['update'](){const _0x20b5e1=await this['_source']['getLatestVersion']();if(_0x20b5e1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3728e0=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x20b5e1});_0x3728e0['authors']=_0x3728e0['authorsIds']['map'](_0x17e8c0=>this['editor']['plugins']['get']('Users')['getUser'](_0x17e8c0)),this['currentRevision']['_update'](_0x3728e0);}}async['saveRevision'](_0x12ca9f={},_0x3c553e=null){const _0x38a2f5=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3c553e>this['currentRevision']['toVersion']&&(_0x3c553e=null),null===_0x3c553e&&(_0x3c553e=await this['_source']['getLatestVersion']());const _0x4e866a=this['_getFromVersion'](_0x3c553e),_0xc9e76=this['buildRevisionData']({'from':_0x4e866a,'to':_0x3c553e});if(this['currentRevision']['toVersion']<_0x3c553e){const _0x9c2f44=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3c553e,'to':_0x3c553e});_0x9c2f44['authors']=[],_0x9c2f44['authorsIds']=[],_0x9c2f44['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x9c2f44,!0x0),delete _0x9c2f44['authors'],_0x38a2f5['push'](_0x9c2f44);}_0x12ca9f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x12ca9f['name']=_0x12ca9f['name']||null,_0x12ca9f['id']=_0x12ca9f['id']||_0x32fb3d(),_0x12ca9f={..._0x12ca9f,..._0xc9e76};const _0x1e44cd=this['addRevisionData'](_0x12ca9f);_0x38a2f5['push'](_0x12ca9f);const _0x2c484a=this['repository']['getIndex'](_0x1e44cd);if(0x0!==_0x2c484a){const _0x2370c7=this['repository']['getRevision'](_0x2c484a-0x1);if(_0x2370c7['fromVersion']!==_0x3c553e){const _0x41db51=this['_revisionDataBuilder']['getData'](_0x3c553e,_0x2370c7['toVersion']),_0x205995={'id':_0x2370c7['id'],'diffData':_0x41db51['diffData'],'authorsIds':_0x41db51['authorsIds'],'authors':_0x41db51['authorsIds']['map'](_0x2ac01f=>this['editor']['plugins']['get']('Users')['getUser'](_0x2ac01f)),'fromVersion':_0x3c553e};_0x2370c7===this['currentRevision']&&(_0x205995['createdAt']=new Date(_0x12ca9f['createdAt']['getTime']()+0xa)),_0x2370c7['_update'](_0x205995,!0x0),delete _0x205995['authors'],_0x38a2f5['push'](_0x205995);}}if(this['adapter']){for(const _0x4895c0 of _0x38a2f5)this['_bufferUpdate'](_0x4895c0['id'],_0x4895c0,!0x0);this['sendBufferedUpdates']();}return _0x1e44cd;}['addRevisionData'](_0x4c8bc5){const _0x49401f=this['repository']['createRevision'](_0x4c8bc5);return this['adapter']&&_0x49401f['on']('_update',(_0x9bb8d0,_0xf2f481,_0x3249a0)=>{_0x3249a0||(this['_bufferUpdate'](_0xf2f481['id'],_0xf2f481,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x49401f,this['_findInsertionIndex'](_0x49401f)),_0x49401f;}async['getRevisionDocumentData'](_0x5b375a){return await this['_utils']['loadRevisionData'](_0x5b375a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5b375a);}async['getRevisionRootsAttributes'](_0x4d79fe){return await this['_utils']['loadRevisionData'](_0x4d79fe,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4d79fe);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x268cae=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x8d26f2=0x0;_0x8d26f2<_0x268cae['length'];_0x8d26f2++){const _0x5acb23=_0x268cae[_0x8d26f2];let _0x1d5ed7=!0x1;for(const _0x495819 of Object['keys'](_0x5acb23))void 0x0===_0x5acb23[_0x495819]?delete _0x5acb23[_0x495819]:'id'!==_0x495819&&(_0x1d5ed7=!0x0);_0x1d5ed7||(_0x268cae[_0x8d26f2]=null);}if(_0x268cae=_0x268cae['filter'](_0x203b20=>null!==_0x203b20),!_0x268cae['length'])return;for(let _0x2d84de=0x0;_0x2d84de<_0x268cae['length'];_0x2d84de++){const _0x5f3526=_0x268cae[_0x2d84de];void 0x0!==_0x5f3526['fromVersion']&&void 0x0===_0x5f3526['toVersion']&&(_0x5f3526['toVersion']=this['repository']['getRevision'](_0x5f3526['id'])['toVersion']),void 0x0!==_0x5f3526['toVersion']&&void 0x0===_0x5f3526['fromVersion']&&(_0x5f3526['fromVersion']=this['repository']['getRevision'](_0x5f3526['id'])['fromVersion']);}const _0x200d6e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x268cae,_0x200d6e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x38e52b=>{if(_0x38e52b){for(const _0x5b1ad2 of _0x38e52b)this['setRevisionData']({'id':_0x5b1ad2['id'],'createdAt':_0x5b1ad2['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x52a951=null,from:_0x177d9b=null,to:_0x59f89e=null}){_0x177d9b=null!==_0x177d9b?_0x177d9b:_0x52a951['fromVersion'],_0x59f89e=null!==_0x59f89e?_0x59f89e:_0x52a951['toVersion'];const _0x4b83f2=this['_revisionDataBuilder']['getData'](_0x177d9b,_0x59f89e),_0x47e7ac={'diffData':_0x4b83f2['diffData'],'authorsIds':_0x4b83f2['authorsIds'],'fromVersion':_0x177d9b,'toVersion':_0x59f89e};if(!_0x52a951||_0x59f89e!==_0x52a951['toVersion']){const _0x10bb08=_0x59f89e-0x1,_0x5738dc=this['_source']['history']['getOperation'](_0x10bb08);_0x47e7ac['createdAt']=_0x5738dc&&_0x5738dc['createdAt']||new Date();}if(this['_loadedStateData']&&_0x177d9b===this['_loadedStateData']['fromVersion']){for(const _0xc68695 of this['_loadedStateData']['authors'])_0x47e7ac['authorsIds']['includes'](_0xc68695['id'])||_0x47e7ac['authorsIds']['push'](_0xc68695['id']);}return _0x47e7ac;}['_bufferUpdate'](_0x143f37,_0x18d61c,_0x5f0445){if(this['_bufferedUpdates']['has'](_0x143f37)){const _0x572c18=this['_bufferedUpdates']['get'](_0x143f37);_0x18d61c=_0x5f0445?{..._0x572c18,..._0x18d61c}:{..._0x18d61c,..._0x572c18};}this['_bufferedUpdates']['set'](_0x143f37,_0x18d61c);}['setRevisionData'](_0x289d9f){const _0xa31630=this['repository']['getRevision'](_0x289d9f['id']);if(_0x289d9f['createdAt']&&(_0x289d9f['createdAt']=new Date(_0x289d9f['createdAt'])),_0x289d9f['authorsIds']){const _0x18f435=this['editor']['plugins']['get']('Users');_0x289d9f['authors']=_0x289d9f['authorsIds']['map'](_0x151e13=>_0x18f435['getUser'](_0x151e13));}_0xa31630['_update'](_0x289d9f,!0x0);}['_createInitialRevision'](_0x54037c){const _0x709e34=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x709e34)this['_initialRevisionId']=_0x709e34['id'];else{const _0x18d6f0=!this['editor']['model']['document']['roots']['find'](_0x5ea82b=>this['editor']['model']['hasContent'](_0x5ea82b)),_0x3db629=this['editor']['plugins']['get']('Users')['me']['id'],_0x481f2d=m(this['editor']['locale'],_0x18d6f0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x54037c,'to':_0x54037c,'id':this['_initialRevisionId'],'name':_0x481f2d,'creatorId':_0x3db629});}}['_createCurrentRevision'](_0x7493c2){const _0x185d44=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x185d44),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x7493c2,'to':_0x7493c2,'id':_0x185d44,'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'](_0x247366,_0x1140d0){let _0x18e0cb=this['editor']['config']['get']('initialData'),_0x39eb54=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x18e0cb){_0x18e0cb={};for(const _0x2db327 of this['editor']['model']['document']['getRootNames']())_0x18e0cb[_0x2db327]='';}if('string'==typeof _0x18e0cb&&(_0x18e0cb={'main':_0x18e0cb}),void 0x0===_0x39eb54){_0x39eb54={};for(const _0x2cb30f of this['editor']['model']['document']['getRootNames']())_0x39eb54[_0x2cb30f]={};}let _0x3af0ff=!0x1;const _0x4468bd=Object['keys'](_0x18e0cb),_0x501743=Object['keys'](_0x247366);for(const _0x34eb38 of _0x4468bd){if(_0x18e0cb[_0x34eb38]!==_0x247366[_0x34eb38]&&''!==_0x18e0cb[_0x34eb38]['trim']()){_0x3af0ff=!0x0;break;}if(!_0x578ff5(_0x39eb54[_0x34eb38],_0x1140d0[_0x34eb38])&&Object['keys'](_0x39eb54[_0x34eb38])['length']>0x0){_0x3af0ff=!0x0;break;}}_0x3af0ff||(_0x3af0ff=_0x501743['some'](_0x1303ab=>!this['editor']['model']['document']['getRoot'](_0x1303ab))),_0x3af0ff&&_0x2bfbdf('editor-initial-data-replaced-with-revision-data',{'editorData':_0x18e0cb,'editorRootsAttributes':_0x39eb54,'revisionData':_0x247366,'revisionRootsAttributes':_0x1140d0}),this['editor']['config']['set']('initialData',_0x247366),this['editor']['config']['set']('rootsAttributes',_0x1140d0);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4ed54c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4ed54c['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4425a1){const _0x5c2eaa=this['repository']['getRevisions']();_0x5c2eaa['reverse']();let _0x567561=0x0;for(;_0x567561<_0x5c2eaa['length'];){const _0x357503=_0x5c2eaa[_0x567561];if(_0x357503===this['currentRevision']){_0x567561++;continue;}if(_0x357503['id']===this['_initialRevisionId'])break;const _0x1ae672=_0x4425a1['toVersion']-_0x357503['toVersion']||_0x4425a1['fromVersion']-_0x357503['fromVersion'];if(_0x1ae672>0x0)break;if(_0x1ae672<0x0)_0x567561++;else{if(!_0x4425a1['creator']&&_0x357503['creator'])break;if(_0x357503['creator']||!_0x4425a1['creator']){if(_0x4425a1['createdAt']>_0x357503['createdAt'])break;_0x567561++;}else _0x567561++;}}return _0x567561;}['_getFromVersion'](_0x15dadc){const _0x5f5687=this['repository']['getRevisions']();_0x5f5687['reverse'](),_0x5f5687['shift']();const _0x2c7dc0=_0x5f5687['find'](_0x2e602b=>_0x2e602b['toVersion']<=_0x15dadc)['toVersion'];return _0x2c7dc0<this['_startingVersion']?this['_startingVersion']:_0x2c7dc0;}['_makeRevision']({name:_0x38c64d,from:_0x2a8f7d,to:_0x56302f,creatorId:_0x4416c1,id:_0x28c64e}){const _0x29cee5=this['buildRevisionData']({'from':_0x2a8f7d,'to':_0x56302f});_0x29cee5['name']=_0x38c64d,_0x29cee5['creatorId']=_0x4416c1,_0x29cee5['id']=_0x28c64e;const _0x2249c1=this['addRevisionData'](_0x29cee5);return this['adapter']&&this['_bufferUpdate'](_0x29cee5['id'],_0x29cee5,!0x0),_0x2249c1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5c7d88){this['editor']=_0x5c7d88,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'](_0x444830){this['source']=_0x444830;const _0x3a4763=new Map(),_0x1c600b=new Map(),_0x200ba6=this['editor']['model']['document']['roots']['map'](_0x5c78e9=>_0x5c78e9['rootName']);for(const _0x303393 of _0x200ba6){const _0x371ffe=this['editor']['model']['document']['getRoot'](_0x303393),_0x54f4db=K(_0x371ffe);_0x3a4763['set'](_0x303393,_0x54f4db),_0x1c600b['set'](_0x303393,Object['fromEntries'](_0x371ffe['getAttributes']()));}const _0x1d8dfb=Array['from'](this['editor']['model']['markers'])['map'](_0x1b815d=>[_0x1b815d['name'],_0x1b815d['getRange']()]),_0x23b4f7=this['source']['version'];this['_saveMetaData'](_0x23b4f7,_0x3a4763,_0x1d8dfb,_0x1c600b),this['_startingRevisionId']=this['_revisionId'];const _0x5aaef0=new Map(),_0x496a2c=new Map();for(const _0x470b69 of _0x200ba6){const _0x4d33f9=N(_0x470b69);_0x5aaef0['set'](_0x470b69,_0x4d33f9),_0x496a2c['set'](_0x470b69,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5aaef0,[],_0x496a2c);}['getData'](_0x335094,_0x47ce15){if(this['_lastFrom']===_0x335094&&this['_lastTo']<=_0x47ce15)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x47ce15,!0x0);else{if(!this['_savedMetaData']['has'](_0x335094)){const _0x2c3675=this['_getPreviousFrom'](_0x335094);this['_calculateMetaData'](_0x2c3675,_0x335094,!0x1);}this['_calculateMetaData'](_0x335094,_0x47ce15,!0x0);}return this['_lastFrom']=_0x335094,this['_lastTo']=_0x47ce15,this['_getState']();}['loadState'](_0x376def){if(!this['_savedMetaData']['has'](_0x376def['fromVersion'])){const _0x458a8d=this['_getPreviousFrom'](_0x376def['fromVersion']);this['_calculateMetaData'](_0x458a8d,_0x376def['fromVersion'],!0x1);}this['_calculateMetaData'](_0x376def['fromVersion'],_0x376def['toVersion'],!0x1);const _0x261252=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x376def['fromVersion'],this['_lastTo']=_0x376def['toVersion'];for(const _0x4c2f14 in _0x376def['diffData']){const _0x233a93=_0x376def['diffData'][_0x4c2f14]['attachChange'],_0x813c9b=_0x2f730e(_0x376def['diffData'][_0x4c2f14]['attributesBefore'])||{},_0x2861b7=_0x261252['_makeModelFromViewString'](_0x376def['diffData'][_0x4c2f14]['deletions']);_0x2861b7['rootName']=_0x4c2f14,_0x2861b7['_isAttached']=!_0x233a93||!_0x233a93['isAttached'],_0x2861b7['isAttached']=()=>_0x2861b7['_isAttached'],this['_baseRoots']['set'](_0x4c2f14,_0x2861b7),this['_baseRootsAttributes']['set'](_0x4c2f14,_0x813c9b),_0x233a93&&this['_touchedRoots']['set'](_0x4c2f14,_0x233a93);const _0x5185fd=this['_makeIdsRoot'](_0x2861b7);this['_baseIdsRoots']['set'](_0x4c2f14,_0x5185fd);for(const [_0x1c6b17,_0x6f913b]of _0x2861b7['markers']){if(!_0x1c6b17['startsWith']('revision:'))continue;const _0x146758=_0x1c6b17['split'](':')[0x2];for(const _0x5c0bb3 of _0x6f913b['getWalker']({'singleCharacters':!0x0})){const _0xc47385=this['_getVidAttributeName'](_0x5c0bb3),_0x5680ae='elementEnd'==_0x5c0bb3['type']?_0x5c0bb3['previousPosition']['path']['slice'](0x0,-0x1):_0x5c0bb3['previousPosition']['path'],_0x5d4dd7=_0x5185fd['getNodeByPath'](_0x5680ae)['getAttribute'](_0xc47385);this['_touched']['set'](_0x5d4dd7,{'userId':_0x146758});}_0x2861b7['markers']['delete'](_0x1c6b17);}}this['_startingRevisionId']=this['_revisionId'];const _0xcde7e4=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x304aec=>!this['_touched']['has'](_0x304aec));let _0x5c9766=0x0;const _0x387e67=new Map();for(const _0x59abaa in _0x376def['diffData']){const _0x393efd=_0x376def['diffData'][_0x59abaa]['attachChange'],_0x464ae1=_0x2f730e(_0x376def['diffData'][_0x59abaa]['attributesAfter'])||{},_0x139011=_0x261252['_makeModelFromViewString'](_0x376def['diffData'][_0x59abaa]['insertions']);_0x139011['rootName']=_0x59abaa,_0x139011['_isAttached']=!_0x393efd||_0x393efd['isAttached'],_0x139011['isAttached']=()=>_0x139011['_isAttached'],this['_diffRoots']['set'](_0x59abaa,_0x139011),this['_diffRootsAttributes']['set'](_0x59abaa,_0x464ae1);const _0x4e15cc=this['_makeIdsRoot'](_0x139011,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x59abaa,_0x4e15cc),_0x387e67['set'](_0x59abaa,_0x139011['isAttached']()?_0x464ae1:{});for(const [_0x1e21d5,_0xb24862]of _0x139011['markers']){if(!_0x1e21d5['startsWith']('revision:'))continue;const _0x3d8b99=_0x1e21d5['split'](':')[0x2];for(const _0x5dfb96 of _0xb24862['getWalker']({'singleCharacters':!0x0})){const _0x3bd95a=this['_getVidAttributeName'](_0x5dfb96),_0x24b9ec=this['_revisionId']++,_0x332891='elementEnd'==_0x5dfb96['type']?_0x5dfb96['previousPosition']['path']['slice'](0x0,-0x1):_0x5dfb96['previousPosition']['path'];_0x4e15cc['getNodeByPath'](_0x332891)['_setAttribute'](_0x3bd95a,_0x24b9ec),this['_touched']['set'](_0x24b9ec,{'userId':_0x3d8b99});}_0x139011['markers']['delete'](_0x1e21d5);}for(const _0x2c82c5 of this['editor']['model']['createRangeIn'](_0x139011)['getWalker']({'singleCharacters':!0x0})){const _0x34c42f=this['_getVidAttributeName'](_0x2c82c5),_0x27ce43='elementEnd'==_0x2c82c5['type']?_0x2c82c5['previousPosition']['path']['slice'](0x0,-0x1):_0x2c82c5['previousPosition']['path'],_0x273b02=_0x4e15cc['getNodeByPath'](_0x27ce43);_0x273b02['getAttribute'](_0x34c42f)>0x0||_0x273b02['_setAttribute'](_0x34c42f,_0xcde7e4[_0x5c9766++]);}for(const [_0x2bfeff,_0x2850a9]of _0x139011['markers'])_0x2bfeff['startsWith']('revision:')||this['_markers']['set'](_0x2bfeff,_0x2850a9);}const {roots:_0x949b01}=this['_savedMetaData']['get'](_0x376def['fromVersion']),{roots:_0x39fbd9}=this['_savedMetaData']['get'](_0x376def['toVersion']),_0x46df9b=K(_0x949b01['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x46df9b),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x46df9b,Number['NEGATIVE_INFINITY']));const _0x59fdda=K(_0x39fbd9['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x59fdda),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x59fdda));const _0x2579d9=Array['from'](this['_diffRoots'])['map'](([_0x27c4be,_0xe2e82c])=>[_0x27c4be,K(_0xe2e82c)]);this['_saveMetaData'](this['_lastTo'],_0x2579d9,this['_markers'],_0x387e67);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1fed8a,_0x2621be,_0x46d9c6,_0x102e3f){const _0x50bf80=new Map(_0x2621be),_0x25a4b3=new Map(_0x2f730e(_0x102e3f)),_0xe74aa=new Map();for(const [_0x34d83e,_0x33ffcc]of _0x46d9c6)_0xe74aa['set'](_0x34d83e,{'start':_0x33ffcc['start']['clone'](),'end':_0x33ffcc['end']['clone'](),'rootName':_0x33ffcc['root']['rootName']});this['_savedMetaData']['set'](_0x1fed8a,{'roots':_0x50bf80,'markers':_0xe74aa,'rootsAttributes':_0x25a4b3});}['_removeMetaData'](_0x47c865){this['_savedMetaData']['delete'](_0x47c865);}['_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'](_0x40685c,_0x1e4337=null){let _0x9ae34c=null;_0x40685c['is']('documentFragment')||(_0x9ae34c=new _0x3dce0a(_0x40685c['name'],{'vid_start':null===_0x1e4337?this['_revisionId']++:_0x1e4337++}));const _0x4609f5=[];for(const _0x2db2b3 of _0x40685c['getChildren']())if(_0x2db2b3['is']('element')){_0x4609f5['push'](this['_makeIdsRoot'](_0x2db2b3,_0x1e4337));const _0x3562c6=_0x4609f5[_0x4609f5['length']-0x1];null!==_0x1e4337&&(_0x1e4337=_0x3562c6['is']('element','$text')?_0x3562c6['getAttribute']('vid')+0x1:_0x3562c6['getAttribute']('vid_end')+0x1);}else{for(let _0x5e1ac0=0x0;_0x5e1ac0<_0x2db2b3['offsetSize'];_0x5e1ac0++)_0x4609f5['push'](new _0x3dce0a('$text',{'vid':null===_0x1e4337?this['_revisionId']++:_0x1e4337++}));}if(_0x40685c['is']('documentFragment')){const _0xe983e3=N(_0x40685c['rootName']);return _0xe983e3['_insertChild'](0x0,_0x4609f5),_0xe983e3;}return _0x9ae34c['_setAttribute']('vid_end',null===_0x1e4337?this['_revisionId']++:_0x1e4337++),_0x9ae34c['_insertChild'](0x0,_0x4609f5),_0x9ae34c;}['_calculateMetaData'](_0x32b06f,_0x3e3453,_0x376778){this['_reset']();const {roots:_0x3cd99c,markers:_0x1ffd9d,rootsAttributes:_0x2b8985}=this['_savedMetaData']['get'](_0x32b06f);this['_baseRoots']=new Map(_0x3cd99c),this['_baseRootsAttributes']=new Map(_0x2f730e(_0x2b8985));for(const [_0x440099,_0x4b7090]of this['_baseRoots'])if('$graveyard'!==_0x440099&&(this['_diffRoots']['set'](_0x440099,K(_0x4b7090)),this['_diffRootsAttributes']=new Map(_0x2f730e(_0x2b8985)),_0x376778)){const _0x5b7462=this['_revisionId'];this['_idsRoots']['set'](_0x440099,this['_makeIdsRoot'](_0x4b7090)),this['_baseIdsRoots']['set'](_0x440099,this['_makeIdsRoot'](_0x4b7090,_0x5b7462));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',K(this['_baseRoots']['get']('$graveyard'))),_0x376778&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x22c563,_0xcf7d3e]of _0x1ffd9d){const _0xdb0731=this['_baseRoots']['get'](_0xcf7d3e['rootName']),_0x50b478=this['_diffRoots']['get'](_0xcf7d3e['rootName']),_0x1b7356=new _0x560abb(this['_fixPosition'](_0xcf7d3e['start'],_0xdb0731),this['_fixPosition'](_0xcf7d3e['end'],_0xdb0731)),_0x4d6583=this['_fixRange'](_0x1b7356,_0x50b478);_0xdb0731['markers']['set'](_0x22c563,_0x1b7356),this['_markers']['set'](_0x22c563,_0x4d6583);}this['_applyOperations'](_0x32b06f,_0x3e3453,_0x376778);}['_applyOperations'](_0x461a77,_0x148502,_0x5bfec4){for(const _0x485ff5 of this['source']['getOperations'](_0x461a77,_0x148502))this['_handleOperation'](_0x485ff5,_0x5bfec4);for(const _0x377e4c of this['_diffRoots']['values']())_0x377e4c['markers']['clear']();for(const [_0xadc256,_0x581059]of this['_markers']){this['_diffRoots']['get'](_0x581059['root']['rootName'])['markers']['set'](_0xadc256,_0x581059['clone']());}const _0x515a5f=new Map(),_0x5f1e07=new Map();for(const [_0x2d8942,_0x5525f8]of this['_diffRoots'])_0x515a5f['set'](_0x2d8942,K(_0x5525f8)),_0x5f1e07['set'](_0x2d8942,this['_diffRootsAttributes']['get'](_0x2d8942));this['_saveMetaData'](_0x148502,_0x515a5f,this['_markers'],_0x5f1e07);}['_getPreviousFrom'](_0x1c2cef){const _0x72d9fd=Array['from'](this['_savedMetaData']['keys']());_0x72d9fd['sort']((_0x1fcf3b,_0x2d09d3)=>_0x1fcf3b-_0x2d09d3),_0x72d9fd['reverse']();for(const _0x1cbdab of _0x72d9fd)if(_0x1cbdab<_0x1c2cef)return _0x1cbdab;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5a15a7,_0x3d247d){const _0x137c6b=Array['from'](_0x3d247d['markers'])['map'](([_0xc2215e,_0x332373])=>[_0xc2215e,this['_fixRange'](_0x332373,_0x5a15a7)]);_0x5a15a7['markers']=new Map(_0x137c6b);}['_transformMarkers'](_0x105b6f){for(const _0x19b014 of this['_markers']['values']()){const _0x29a805=_0x19b014['getTransformedByOperation'](_0x105b6f),_0x49e6f2=_0x560abb['_createFromRanges'](_0x29a805);_0x19b014['start']=_0x49e6f2['start'],_0x19b014['end']=_0x49e6f2['end'];}}['_handleOperation'](_0x4c6d56,_0x20c140){if('addRoot'!=_0x4c6d56['type']&&'detachRoot'!=_0x4c6d56['type']){if('insert'==_0x4c6d56['type']){const _0x4e861f=_0x4c6d56['position']['root']['rootName'];this['_diffRoots']['has'](_0x4e861f)||(this['_diffRoots']['set'](_0x4e861f,N(_0x4e861f,!0x0)),this['_diffRootsAttributes']['set'](_0x4e861f,{}),_0x20c140&&this['_idsRoots']['set'](_0x4e861f,N(_0x4e861f,!0x0)));}else{if('addRootAttribute'==_0x4c6d56['type']||'removeRootAttribute'==_0x4c6d56['type']||'changeRootAttribute'==_0x4c6d56['type'])return void this['_handleRootAttributeOperation'](_0x4c6d56);'marker'==_0x4c6d56['type']&&this['_handleMarkerOperation'](_0x4c6d56);}if('marker'!==_0x4c6d56['type']){const _0x33c57b=this['_cloneOperation'](_0x4c6d56,this['_diffRoots']);_0x33c57b['_execute'](),this['_transformMarkers'](_0x33c57b);}if(_0x20c140)switch(_0x4c6d56['type']){case'insert':this['_handleInsertOperation'](_0x4c6d56);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4c6d56);break;case'merge':this['_handleMergeOperation'](_0x4c6d56);break;case'split':this['_handleSplitOperation'](_0x4c6d56);}}else this['_handleRootOperation'](_0x4c6d56,_0x20c140);}['_cloneOperation'](_0x4c8efa,_0x1ed5b9){const _0x474d0c=_0x4c8efa['clone']();return _0x474d0c['_authorId']=_0x4c8efa['_authorId'],this['_fixOperation'](_0x474d0c,_0x1ed5b9),_0x474d0c;}['_getBaseVids'](_0x56ac55){return _0x56ac55['map'](_0x3af0b9=>{const _0x435e9a=this['_getVidAttributeName'](_0x3af0b9);return Number(_0x3af0b9['item']['getAttribute'](_0x435e9a));});}['_generateTape'](_0x57613d,_0x55ab14){if(_0x57613d['is']('element','$text'))_0x55ab14['push']({'item':_0x57613d,'type':'text'});else{_0x57613d['is']('element')&&_0x55ab14['push']({'item':_0x57613d,'type':'elementStart'});for(const _0xa1d7c7 of _0x57613d['getChildren']())this['_generateTape'](_0xa1d7c7,_0x55ab14);_0x57613d['is']('element')&&_0x55ab14['push']({'item':_0x57613d,'type':'elementEnd'});}return _0x55ab14;}['_getState'](){const _0x1a6382=new Map(this['_touched']),_0x269611=new Map(_0x1a6382),_0x2eff5b=new Map(),_0xd2e1fd={'insertions':{},'deletions':{}},_0x1de0fc={'insertions':{},'deletions':{}},_0x5aac6f=new Map(),_0x3a6a4b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3a6a4b['delete']('$graveyard');for(const _0x853b8f of _0x3a6a4b){const _0x4145a9=this['_diffRoots']['get'](_0x853b8f)||N(_0x853b8f,!0x1),_0x53a194=this['_baseRoots']['get'](_0x853b8f)||N(_0x853b8f,!0x1);_0x4145a9['isAttached']()||_0x53a194['isAttached']()?(_0xd2e1fd['insertions'][_0x853b8f]=K(_0x4145a9),_0xd2e1fd['deletions'][_0x853b8f]=K(_0x53a194),this['_copyMarkers'](_0xd2e1fd['deletions'][_0x853b8f],_0x53a194),this['_copyMarkers'](_0xd2e1fd['insertions'][_0x853b8f],_0x4145a9),_0x1de0fc['insertions'][_0x853b8f]=this['_generateTape'](this['_idsRoots']['get'](_0x853b8f),[]),_0x1de0fc['deletions'][_0x853b8f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x853b8f)||N(_0x853b8f,!0x1),[])):_0x3a6a4b['delete'](_0x853b8f);}for(const _0xa9cf2c of _0x3a6a4b){const _0x562d92=_0x1de0fc['insertions'][_0xa9cf2c];for(const _0x40c1a1 of _0x562d92){const _0x3fd686=this['_getVidAttributeName'](_0x40c1a1),_0xf9cead=_0x40c1a1['item']['getAttribute'](_0x3fd686);_0x269611['delete'](_0xf9cead),_0xf9cead>=this['_startingRevisionId']&&_0x2eff5b['set'](_0xf9cead,_0x1a6382['get'](_0xf9cead));}}for(const _0x2de024 of _0x3a6a4b){const _0x217803=_0x1de0fc['insertions'][_0x2de024],_0x3eacdf=this['_getBaseVids'](_0x1de0fc['deletions'][_0x2de024]);let _0x4d7715=0x0;for(const _0x1dc11b of _0x217803){const _0x158f26=this['_getVidAttributeName'](_0x1dc11b),_0x5b0e43=_0x1dc11b['item']['getAttribute'](_0x158f26);if(!_0x2eff5b['has'](_0x5b0e43)&&!_0x5aac6f['has'](_0x5b0e43)){if(_0x269611['has'](_0x5b0e43))_0x4d7715++;else{if(_0x5b0e43!=_0x3eacdf[_0x4d7715]){const _0x359731=_0x1a6382['get'](_0x5b0e43)||_0x1a6382['get'](_0x3eacdf[_0x4d7715]);for(;_0x5b0e43!=_0x3eacdf[_0x4d7715];)_0x269611['has'](_0x3eacdf[_0x4d7715])||(_0x5aac6f['set'](_0x3eacdf[_0x4d7715],_0x359731),_0x1a6382['set'](_0x3eacdf[_0x4d7715],_0x359731)),_0x4d7715++;}_0x4d7715++;}}}}for(const _0x3c9281 of _0x3a6a4b){const _0xd815a2=_0x1de0fc['insertions'][_0x3c9281];for(const _0x26076d of _0xd815a2){const _0x561325=this['_getVidAttributeName'](_0x26076d),_0x480914=_0x26076d['item']['getAttribute'](_0x561325);if(_0x5aac6f['has'](_0x480914)){const _0x3fd9cc=_0x5aac6f['get'](_0x480914);_0x269611['has'](_0x480914)||_0x269611['set'](_0x480914,{..._0x3fd9cc}),_0x2eff5b['set'](_0x480914,{..._0x3fd9cc});}}}for(const _0x56fc25 of _0x269611['keys']())_0x56fc25>=this['_startingRevisionId']&&_0x269611['delete'](_0x56fc25);const _0x4f9cca=new Map();for(const _0x2d0f2d of _0x3a6a4b){let _0x553d92=_0x1de0fc['insertions'][_0x2d0f2d];for(const _0x3df3d5 of _0x553d92)if(_0x3df3d5['item']['is']('element','tableCell')){const _0x29dfee=this['_getVidAttributeName'](_0x3df3d5),_0x5a9530=_0x3df3d5['item']['getAttribute'](_0x29dfee);if(_0x2eff5b['has'](_0x5a9530)){const _0x42b118=_0x3df3d5['item']['parent']['parent']['getAttribute']('vid_start'),_0x34dbf5=_0x4f9cca['get'](_0x42b118)||new Set();_0x34dbf5['add'](_0x2eff5b['get'](_0x5a9530)['userId']),_0x4f9cca['set'](_0x42b118,_0x34dbf5);}}_0x553d92=_0x1de0fc['deletions'][_0x2d0f2d];for(const _0x639150 of _0x553d92)if(_0x639150['item']['is']('element','tableCell')){const _0x189bfc=this['_getVidAttributeName'](_0x639150),_0x1485c8=_0x639150['item']['getAttribute'](_0x189bfc);if(_0x269611['has'](_0x1485c8)){const _0x5868e8=_0x639150['item']['parent']['parent']['getAttribute']('vid_start'),_0x276302=_0x4f9cca['get'](_0x5868e8)||new Set();_0x276302['add'](_0x269611['get'](_0x1485c8)['userId']),_0x4f9cca['set'](_0x5868e8,_0x276302);}}for(const _0x24d40d of _0x4f9cca['keys']())(_0x2eff5b['has'](_0x24d40d)||_0x269611['has'](_0x24d40d))&&_0x4f9cca['delete'](_0x24d40d);}for(const _0x2fe760 of _0x3a6a4b){const _0x230009=_0x1de0fc['insertions'][_0x2fe760];let _0x1d7a3e=null,_0x149978=null;for(const _0x4b6d1a of _0x230009){const _0x1999b9=this['_getVidAttributeName'](_0x4b6d1a),_0x2b360f=_0x4b6d1a['item']['getAttribute'](_0x1999b9),_0x26e70=_0x4f9cca['get'](_0x2b360f);_0x26e70&&'elementStart'==_0x4b6d1a['type']&&(_0x1d7a3e=Array['from'](_0x26e70)[0x0],_0x149978=_0x4b6d1a['item']['getAttribute']('vid_end')),_0x1d7a3e&&(_0x269611['set'](_0x2b360f,{'userId':_0x1d7a3e}),_0x2eff5b['set'](_0x2b360f,{'userId':_0x1d7a3e})),_0x2b360f==_0x149978&&(_0x1d7a3e=null,_0x149978=null);}}const _0x12eb5e={},_0x3bf903=new Set();for(const _0x25fa9c of _0x3a6a4b){const _0x2ec22e=_0xd2e1fd['deletions'][_0x25fa9c],_0x5ed116=_0xd2e1fd['insertions'][_0x25fa9c];for(const {userId:_0x8660a6}of this['_touchedMarkers']['values']())null!==_0x8660a6&&_0x3bf903['add'](_0x8660a6);for(const {userId:_0x33e651}of this['_touchedRoots']['values']())null!==_0x33e651&&_0x3bf903['add'](_0x33e651);this['_markChanges'](_0x5ed116,_0x1de0fc['insertions'][_0x25fa9c],_0x2eff5b,'insertion',_0x3bf903),this['_markChanges'](_0x2ec22e,_0x1de0fc['deletions'][_0x25fa9c],_0x269611,'deletion',_0x3bf903),_0x12eb5e[_0x25fa9c]={'insertions':this['_prepareViewToSave'](_0x5ed116),'deletions':this['_prepareViewToSave'](_0x2ec22e),'attachChange':this['_touchedRoots']['get'](_0x25fa9c)||null,'attributesBefore':_0x2f730e(this['_baseRootsAttributes']['get'](_0x25fa9c))||{},'attributesAfter':_0x2f730e(this['_diffRootsAttributes']['get'](_0x25fa9c))};}return{'diffData':_0x12eb5e,'authorsIds':Array['from'](_0x3bf903)};}['_processRootBeforeSave'](_0x5326e5){for(const [,_0x14f6eb]of _0x5326e5['markers']){const _0x24f557=_0x14f6eb['start']['getAncestors']()['filter'](_0x2d51ab=>'tableCell'==_0x2d51ab['name']);for(const _0x456033 of _0x24f557)0x1==_0x456033['childCount']&&_0x456033['getChild'](0x0)['is']('element','paragraph')&&_0x456033['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x57a5c0){this['_processRootBeforeSave'](_0x57a5c0);const _0x42a0a1=this['editor']['data']['toView'](_0x57a5c0,{}),_0x2f9b25=Array['from'](_0x42a0a1['getChildren']())['map'](_0x21d77f=>this['_getViewJson'](_0x21d77f));return JSON['stringify'](_0x2f9b25);}['_getViewJson'](_0x2c6deb){if(_0x2c6deb['is']('$text'))return _0x2c6deb['data'];{const _0x55c007=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1f37ad=_0x2c6deb,_0x569327=this['editor']['data']['htmlProcessor']['domConverter'],_0x533d81={'type':_0x55c007['_getTypeCharForViewElement'](_0x1f37ad),'name':_0x1f37ad['name'],'attributes':Array['from'](_0x1f37ad['getAttributes']()),'children':Array['from'](_0x1f37ad['getChildren']())['map'](_0x16855d=>this['_getViewJson'](_0x16855d))};if(_0x2c6deb['is']('uiElement')&&'$comment'!=_0x2c6deb['name']){const _0x3805ab=_0x2c6deb['render'](_0x569327['domDocument'],_0x569327);_0x533d81['children']['push'](_0x3805ab['outerHTML']);}else{if(_0x2c6deb['is']('rawElement')){const _0x2800e8=_0x569327['domDocument']['createElement'](_0x1f37ad['name']);_0x2c6deb['render'](_0x2800e8,_0x569327),_0x533d81['children']['push'](_0x2800e8['innerHTML']);}}const _0x146d0b=Array['from'](_0x1f37ad['getCustomProperties']());_0x146d0b['length']>0x0&&(_0x533d81['customProperties']=_0x146d0b);const _0x3131cb=_0x1f37ad['getFillerOffset']();return null!==_0x3131cb&&(_0x533d81['fillerOffset']=_0x3131cb),_0x533d81;}}['_markChanges'](_0x33ccd7,_0x8e47dd,_0xb0163e,_0x2af57d,_0x3003ba){let _0xe4ef67=null,_0x49f591=null,_0x18dc69=0x0;const _0x4911c5=this['editor']['model'];for(let _0x4248ea=0x0;_0x4248ea<_0x8e47dd['length'];_0x4248ea++){const _0x1505c6=this['_getVidAttributeName'](_0x8e47dd[_0x4248ea]),_0x2ad190=_0x8e47dd[_0x4248ea]['item']['getAttribute'](_0x1505c6),_0xb3cabf=_0xb0163e['get'](_0x2ad190),_0x17f2ce=_0x4248ea==_0x8e47dd['length']-0x1;(!_0xe4ef67&&_0xb3cabf&&(_0xe4ef67=_0xb3cabf,_0x49f591=_0x8e47dd[_0x4248ea]),_0xe4ef67&&(!_0xb3cabf||_0xb3cabf['userId']!=_0xe4ef67['userId']))&&(_0x13c445(_0xb3cabf,P(_0x49f591,_0x33ccd7,_0x4911c5),P(_0x8e47dd[_0x4248ea],_0x33ccd7,_0x4911c5)),_0xe4ef67=_0xb3cabf||null,_0x49f591=_0xb3cabf?_0x8e47dd[_0x4248ea]:null),_0xe4ef67&&_0x17f2ce&&_0x13c445(_0xb3cabf,P(_0x49f591,_0x33ccd7,_0x4911c5),V(_0x8e47dd[_0x4248ea],_0x33ccd7,_0x4911c5));}function _0x13c445(_0x2fdd0f,_0x2a85b9,_0x55920f){const _0x432054=_0xe4ef67['userId'],_0x26ece3='revision:'+_0x2af57d+':'+_0x432054+':'+_0x18dc69++,_0x109455=_0x4911c5['createRange'](_0x2a85b9,_0x55920f);_0x33ccd7['markers']['set'](_0x26ece3,_0x109455),null!==_0x432054&&_0x3003ba['add'](_0x432054);}}['_getVidAttributeName'](_0x5d3732){switch(_0x5d3732['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x166eae,_0x1431fe){_0x166eae['baseVersion']=null;for(const _0x3a0448 in _0x166eae){const _0x261ac4=_0x166eae[_0x3a0448];if(_0x261ac4 instanceof _0x5c2d08){const _0x53aafe=_0x1431fe['get'](_0x261ac4['root']['rootName']);_0x166eae[_0x3a0448]=this['_fixPosition'](_0x261ac4,_0x53aafe);}if(_0x261ac4 instanceof _0x560abb){const _0x91be23=_0x1431fe['get'](_0x261ac4['root']['rootName']);_0x166eae[_0x3a0448]=this['_fixRange'](_0x261ac4,_0x91be23);}'root'===_0x3a0448&&(_0x166eae['root']=_0x1431fe['get'](_0x166eae['root']['rootName']));}}['_fixRange'](_0x33b701,_0x59b913){return this['editor']['model']['createRange'](this['_fixPosition'](_0x33b701['start'],_0x59b913),this['_fixPosition'](_0x33b701['end'],_0x59b913));}['_fixPosition'](_0x534075,_0x9f3deb){return this['editor']['model']['createPositionFromPath'](_0x9f3deb,_0x534075['path'],_0x534075['stickiness']);}['_handleInsertOperation'](_0x3c272e){const _0x5b1613=this['_idsRoots']['get'](_0x3c272e['position']['root']['rootName']),_0x16ef66=this['_fixPosition'](_0x3c272e['position'],_0x5b1613),_0x3067db=null===_0x3c272e['_authorId']?null:_0x3c272e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28a586=_0x16ef66['parent'],_0x149ae5=this['_revisionId'],_0x4cd20d=[];for(const _0x1b4726 of _0x3c272e['nodes'])if(_0x1b4726['is']('element'))_0x4cd20d['push'](this['_makeIdsRoot'](_0x1b4726));else{for(let _0x483d37=0x0;_0x483d37<_0x1b4726['offsetSize'];_0x483d37++)_0x4cd20d['push'](new _0x3dce0a('$text',{'vid':this['_revisionId']++}));}const _0x5d4bf9=this['_revisionId'];for(let _0x3e0def=_0x149ae5;_0x3e0def<_0x5d4bf9;_0x3e0def++)this['_touched']['set'](_0x3e0def,{'userId':_0x3067db});_0x28a586['_insertChild'](_0x16ef66['offset'],_0x4cd20d);}['_handleMoveOperation'](_0x39653c){(_0x39653c=this['_cloneOperation'](_0x39653c,this['_idsRoots']))['_execute']();const _0x1679b8=null===_0x39653c['_authorId']?null:_0x39653c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46891f=_0x39653c['getMovedRangeStart'](),_0x272b81=_0x46891f['parent'],_0x5a7e30=_0x46891f['offset'];!function _0x16ff26(_0x1779bf,_0x462140,_0x28e198,_0x4f8590){for(let _0x308a7d=_0x28e198;_0x308a7d<_0x4f8590;_0x308a7d++){const _0x2added=_0x462140['getChild'](_0x308a7d);_0x2added['is']('element','$text')?_0x1779bf['set'](_0x2added['getAttribute']('vid'),{'userId':_0x1679b8}):(_0x1779bf['set'](_0x2added['getAttribute']('vid_start'),{'userId':_0x1679b8}),_0x16ff26(_0x1779bf,_0x2added,0x0,_0x2added['childCount']),_0x1779bf['set'](_0x2added['getAttribute']('vid_end'),{'userId':_0x1679b8}));}}(this['_touched'],_0x272b81,_0x5a7e30,_0x5a7e30+_0x39653c['howMany']);}['_handleMergeOperation'](_0x1cdd61){const _0x6b669d=null===(_0x1cdd61=this['_cloneOperation'](_0x1cdd61,this['_idsRoots']))['_authorId']?null:_0x1cdd61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ca04f=_0x1cdd61['targetPosition']['parent'],_0x5d271c=_0x1cdd61['sourcePosition']['parent'],_0x46f04f=_0x5ca04f['getAttribute']('vid_end'),_0x1db321=_0x5d271c['getAttribute']('vid_start');_0x5ca04f['_setAttribute']('vid_end',_0x5d271c['getAttribute']('vid_end')),_0x5d271c['_setAttribute']('vid_end',_0x46f04f),this['_touched']['set'](_0x1db321,{'userId':_0x6b669d}),this['_touched']['set'](_0x46f04f,{'userId':_0x6b669d}),_0x1cdd61['_execute']();}['_handleSplitOperation'](_0x4f3694){const _0x25bc6b=null===(_0x4f3694=this['_cloneOperation'](_0x4f3694,this['_idsRoots']))['_authorId']?null:_0x4f3694['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x185215=_0x4f3694['graveyardPosition'],_0x547c67=_0x4f3694['splitPosition']['parent'];_0x4f3694['_execute']();const _0x13dc76=_0x547c67['getAttribute']('vid_end'),_0x2062a8=_0x4f3694['insertionPosition']['nodeAfter'];if(_0x185215){const _0x592b06=_0x2062a8['getAttribute']('vid_end'),_0x538ed3=_0x547c67['getAttribute']('vid_end');_0x547c67['_setAttribute']('vid_end',_0x592b06),_0x2062a8['_setAttribute']('vid_end',_0x538ed3),this['_touched']['set'](_0x547c67['getAttribute']('vid_end'),{'userId':_0x25bc6b}),this['_touched']['set'](_0x2062a8['getAttribute']('vid_start'),{'userId':_0x25bc6b});}else{const _0xe2ee3a=this['_revisionId']++,_0x435d93=this['_revisionId']++;_0x547c67['_setAttribute']('vid_end',_0xe2ee3a),_0x2062a8['_setAttribute']('vid_start',_0x435d93),_0x2062a8['_setAttribute']('vid_end',_0x13dc76),this['_touched']['set'](_0xe2ee3a,{'userId':_0x25bc6b}),this['_touched']['set'](_0x435d93,{'userId':_0x25bc6b});}}['_handleMarkerOperation'](_0x232edc){if(!_0x232edc['affectsData'])return;const _0xea4572=(_0x232edc=this['_cloneOperation'](_0x232edc,this['_diffRoots']))['oldRange']?_0x232edc['oldRange']['root']:null,_0x55bb1f=_0x232edc['newRange']?_0x232edc['newRange']['root']:null;_0xea4572&&this['_markers']['delete'](_0x232edc['name']),_0x55bb1f&&this['_markers']['set'](_0x232edc['name'],_0x232edc['newRange']['clone']());const _0x5bf210=null===_0x232edc['_authorId']?null:_0x232edc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x482de7=_0x232edc['name'];if(!this['_touchedMarkers']['has'](_0x482de7))return void this['_touchedMarkers']['set'](_0x482de7,{'range':_0x232edc['oldRange'],'userId':_0x5bf210});const _0x4a7376=this['_touchedMarkers']['get'](_0x482de7),_0x241608=_0x4a7376['range'],_0x566661=_0x232edc['newRange'];null==_0x241608&&null==_0x566661||_0x241608&&_0x566661&&_0x241608['isEqual'](_0x566661)?this['_touchedMarkers']['delete'](_0x232edc['name']):_0x4a7376['userId']=_0x5bf210;}['_handleRootOperation'](_0x4bda87,_0x5bea2f){this['_diffRoots']['has'](_0x4bda87['rootName'])?this['_diffRoots']['get'](_0x4bda87['rootName'])['_isAttached']=_0x4bda87['isAdd']:(this['_diffRoots']['set'](_0x4bda87['rootName'],N(_0x4bda87['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4bda87['rootName'],{}),_0x5bea2f&&this['_idsRoots']['set'](_0x4bda87['rootName'],N(_0x4bda87['rootName'],!0x0)));const _0x51abe1=null===_0x4bda87['_authorId']?null:_0x4bda87['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e4b33=this['_touchedRoots']['get'](_0x4bda87['rootName']);_0x1e4b33&&_0x1e4b33['userId']===_0x51abe1?this['_touchedRoots']['delete'](_0x4bda87['rootName']):this['_touchedRoots']['set'](_0x4bda87['rootName'],{'userId':_0x51abe1,'isAttached':_0x4bda87['isAdd']});}['_handleRootAttributeOperation'](_0x14a687){const _0x574c47=this['_diffRootsAttributes']['get'](_0x14a687['root']['rootName']);null===_0x14a687['newValue']?delete _0x574c47[_0x14a687['key']]:_0x574c47[_0x14a687['key']]=_0x14a687['newValue'];}}function K(_0x300a28){const _0x4d31f0=N(_0x300a28['rootName'],_0x300a28['isAttached']());for(const _0x302b7b of _0x300a28['getChildren']()){const _0x2e57e7=_0x302b7b['_clone'](!0x0);_0x4d31f0['_appendChild'](_0x2e57e7);}return _0x4d31f0;}function N(_0x188927,_0x357680=!0x0){const _0x4b3e7c=new _0x22dcf7();return _0x4b3e7c['rootName']=_0x188927,_0x4b3e7c['_isAttached']=_0x357680,_0x4b3e7c['isAttached']=()=>_0x4b3e7c['_isAttached'],_0x4b3e7c;}function P(_0x27a1a2,_0x420ccb,_0x18a8af){const _0x2f206a='elementEnd'==_0x27a1a2['type']?_0x18a8af['createPositionAt'](_0x27a1a2['item'],'end'):_0x18a8af['createPositionBefore'](_0x27a1a2['item']);return _0x18a8af['createPositionFromPath'](_0x420ccb,_0x2f206a['path'],_0x2f206a['stickiness']);}function V(_0x255ff0,_0x9b41d9,_0x629fba){const _0x378457='elementStart'==_0x255ff0['type']?_0x629fba['createPositionAt'](_0x255ff0['item'],0x0):_0x629fba['createPositionAfter'](_0x255ff0['item']);return _0x629fba['createPositionFromPath'](_0x9b41d9,_0x378457['path'],_0x378457['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x29923f(_0x2f41d6){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4aa599,_0x2778ab){super(_0x4aa599),this['focusTracker']=new _0x45cd95(),this['keystrokes']=new _0x4840ec(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2778ab),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'](),_0x21b648({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x50ae9d=_0x277a81=>_0x277a81['stopPropagation']();this['keystrokes']['set']('arrowright',_0x50ae9d),this['keystrokes']['set']('arrowleft',_0x50ae9d),this['keystrokes']['set']('arrowup',_0x50ae9d),this['keystrokes']['set']('arrowdown',_0x50ae9d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x252942){this['revisionNameInputView']['fieldView']['element']['value']=_0x252942['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4b4912){const _0x4d2924=new et(this['locale'],ti),_0x5ca37c=_0x4d2924['fieldView'];_0x5ca37c['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xfdea18=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4b4912&&(_0xfdea18+='\x20('+m(this['locale'],'optional')+')'),(_0x4d2924['label']=_0xfdea18,_0x5ca37c['on']('input',()=>{this['revisionNameInputValue']=_0x5ca37c['element']['value']['trim']();}),_0x4d2924);}}class l extends _0x694cb{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1d15f4=this['editor'],_0xa04daa=_0x1d15f4['plugins']['get']('RevisionTracker');_0x1d15f4['ui']['componentFactory']['add']('revisionHistory',_0x446cd2=>{const _0xb91541=_0x3712c9(_0x446cd2),_0x1fcf9b=_0xb91541['panelView']['children'],_0x4615d8=new _0x5ea3f3(_0x446cd2),_0x30eafc=new _0x364167(_0x446cd2),_0x336553=this['_createSaveRevisionButton'](_0x22b97e),_0x140bdb=new _0x364167(_0x446cd2),_0x1bec02=this['_createOpenRevisionButton'](_0x22b97e);return _0xb91541['bind']('isEnabled')['to'](_0xa04daa,'isReady',_0xa04daa,'isEnabled',_0x1d15f4,'isReadOnly',(_0x228602,_0x57ca52,_0x2434a6)=>_0x228602&&_0x57ca52&&!_0x2434a6),_0xb91541['buttonView']['set']({'icon':_0x1e8d69,'label':m(_0x446cd2,'Revision\x20history'),'tooltip':!0x0}),_0x336553['set']({'withText':!0x0,'role':'menuitem'}),_0x1bec02['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x1bec02,'execute',()=>{_0xb91541['isOpen']=!0x1,_0x1d15f4['editing']['view']['focus']();},{'priority':'low'}),_0x30eafc['children']['add'](_0x336553),_0x140bdb['children']['add'](_0x1bec02),_0x4615d8['role']='menu',_0x4615d8['items']['addMany']([_0x30eafc,_0x140bdb]),_0x1fcf9b['add'](_0x4615d8),_0xb91541;}),_0x1d15f4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x49e96b=this['editor'],_0x5def30=_0x49e96b['locale'],_0x33c2b2=_0x49e96b['plugins']['get']('RevisionTracker'),_0x20d672=new _0x4866c8(_0x5def30),_0x34106b=new _0x53d609(_0x5def30);_0x20d672['bind']('isEnabled')['to'](_0x33c2b2,'isReady',_0x33c2b2,'isEnabled',_0x49e96b,'isReadOnly',(_0x3179e1,_0x32fd1c,_0x2d792f)=>_0x3179e1&&_0x32fd1c&&!_0x2d792f),_0x20d672['buttonView']['set']({'icon':_0x1e8d69,'label':m(_0x5def30,'Revision\x20history')});const _0x5be2c1=new _0x27f4f3(_0x5def30,_0x20d672),_0x14d4d4=this['_createSaveRevisionButton'](_0x291a30);_0x14d4d4['delegate']('execute')['to'](_0x20d672),_0x5be2c1['children']['add'](_0x14d4d4),_0x34106b['items']['add'](_0x5be2c1);const _0x598bd5=new _0x27f4f3(_0x5def30,_0x20d672),_0x26134e=this['_createOpenRevisionButton'](_0x291a30);return _0x26134e['delegate']('execute')['to'](_0x20d672),_0x598bd5['children']['add'](_0x26134e),_0x34106b['items']['add'](_0x598bd5),_0x20d672['panelView']['children']['add'](_0x34106b),_0x20d672;}['_createSaveRevisionButton'](_0x3a6952){const _0x775e50=this['editor'],_0x55df2e=_0x775e50['plugins']['get']('RevisionTracker'),_0x39f578=new _0x3a6952(_0x775e50['locale']);return _0x39f578['set']({'label':m(_0x775e50['locale'],'Save\x20current\x20revision')}),_0x39f578['bind']('isEnabled')['to'](_0x55df2e,'isReady',_0x55df2e,'isEnabled',_0x775e50,'isReadOnly',(_0x3ba4c4,_0x44f734,_0x5ee9dd)=>_0x3ba4c4&&_0x44f734&&!_0x5ee9dd),this['listenTo'](_0x39f578,'execute',()=>{this['_showDialog']();}),_0x39f578;}['_createOpenRevisionButton'](_0x4dc42b){const _0x3ccecd=this['editor'],_0x1991ed=_0x3ccecd['plugins']['get']('RevisionTracker'),_0x675b19=new _0x4dc42b(_0x3ccecd['locale']);return _0x675b19['set']({'label':m(_0x3ccecd['locale'],'Open\x20revision\x20history')}),_0x675b19['bind']('isEnabled')['to'](_0x1991ed,'isReady',_0x3ccecd,'isReadOnly',(_0x123c0c,_0x466b09)=>_0x123c0c&&!_0x466b09),this['listenTo'](_0x675b19,'execute',()=>{_0x3ccecd['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x675b19;}['_showDialog'](){const _0x26a968=this['editor'],_0x345e59=_0x26a968['locale'],_0x14ee7d=_0x26a968['plugins']['get']('Dialog'),_0x59c386=_0x26a968['plugins']['get']('RevisionTracker');function _0x8f786b(_0x25b875){_0x26a968['config']['get']('revisionHistory.requireRevisionName')&&''===_0x25b875['revisionName']?_0x25b875['revisionNameInputView']['errorText']=m(_0x345e59,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x26a968['plugins']['get'](h)['saveRevision']({'name':_0x25b875['revisionName']}),_0x14ee7d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x8f786b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x14ee7d['show']({'id':'revisionSave','title':m(_0x345e59,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x26a968['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x14ee7d['hide']()},{'label':m(_0x26a968['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4d01af){_0x4d01af['bind']('isEnabled')['to'](_0x59c386,'isReady',_0x59c386,'isEnabled',_0x26a968,'isReadOnly',(_0x477749,_0x223585,_0x306ebd)=>_0x477749&&_0x223585&&!_0x306ebd);},'onExecute':()=>_0x8f786b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x269f21=this['editor'],_0x2e5f4c=_0x269f21['locale'];this['_saveRevisionFormView']=new he(_0x2e5f4c,_0x269f21['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2f41d6{['changeId'];['_model'];constructor(_0x4d0781,_0x5f4496){super(_0x4d0781),this['_model']=_0x5f4496,this['changeId']=_0x5f4496['id'];const _0xc6c2c6=this['bindTemplate'],_0x374c1f=m(_0x4d0781,_0x5f4496['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5f4496['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5f4496['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xc6c2c6['to']('type',_0x42b4cb=>'ck-revision-change__'+_0x42b4cb)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x374c1f}]},{'text':'\x20'+_0x5f4496['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x55f3c4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x403513){super(),this['id']=_0x403513['id']||_0x32fb3d(),this['author']=_0x403513['author'],this['type']=_0x403513['type'],this['data']=_0x403513['data']||{},this['rootName']=_0x403513['rootName'],this['set']('createdAt',_0x403513['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(_0x2633ba,_0x485c33){this['newRevisionId']=_0x2633ba,this['oldRevisionId']=_0x485c33,this['changes']=new _0xb9f14f();}['_setChanges'](_0x4836c0){for(const _0x2865a7 of _0x4836c0)this['changes']['add'](_0x2865a7);}}class u extends _0x694cb{['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[_0x15e944,_0x421015,S,$];}constructor(_0x530b50){super(_0x530b50),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',(_0x4ea737,_0x54a45d,_0x50bf5c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3cb2ea=>{for(const _0x5dfd83 of this['editor']['editing']['view']['document']['roots'])_0x50bf5c?_0x3cb2ea['removeClass']('ck-editor__editable__overlay',_0x5dfd83):_0x3cb2ea['addClass']('ck-editor__editable__overlay',_0x5dfd83);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x212800=>null!==_0x212800),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2464d1,_0x5c468c,_0x2b20b2)=>_0x2464d1&&_0x2b20b2?_0x5c468c['changes']['getIndex'](_0x2b20b2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1b7552,_0x43c227)=>_0x1b7552?_0x43c227['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x421015);}['init'](){const _0x5da537=this['editor'],_0x2ab9b4=new rt(_0x5da537,{'direction':'backward'}),_0x4ea481=new rt(_0x5da537,{'direction':'forward'});(_0x5da537['commands']['add']('showPreviousChange',_0x2ab9b4),_0x5da537['commands']['add']('showNextChange',_0x4ea481),_0x5da537['commands']['add']('restoreRevision',new nt(_0x5da537)),this['on']('change:numberOfChanges',()=>{_0x2ab9b4['refresh'](),_0x4ea481['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5da537['enableReadOnlyMode']('revision-viewer'),_0x5da537['plugins']['has']('WidgetToolbarRepository'))&&_0x5da537['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5429b0){return await this['_utils']['loadRevisionData'](_0x5429b0,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5429b0);}async['getRevisionRootsAttributes'](_0x20401d){return await this['_utils']['loadRevisionData'](_0x20401d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x20401d);}async['compare'](_0x50b105,_0x3b3fb5,_0x2a5d6e=!0x1){if(!this['isEnabled'])return;const _0x594b87=this['diff'],_0x1a91a7=this['repository'],_0x24b448='string'==typeof _0x50b105?_0x1a91a7['getRevision'](_0x50b105):_0x50b105,_0x301620='string'==typeof _0x3b3fb5?_0x1a91a7['getRevision'](_0x3b3fb5):_0x3b3fb5,_0x210c28=_0x24b448['id'],_0x282f0f=_0x301620?_0x301620['id']:null;if(!_0x2a5d6e&&this['diff']&&this['diff']['newRevisionId']===_0x210c28&&this['diff']['oldRevisionId']===_0x282f0f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x210c28,_0x282f0f);const _0x3aba6e=this['_getRevisionsRange'](_0x24b448,_0x301620,!0x0)['map'](_0x1ea0f9=>this['_utils']['loadRevisionData'](_0x1ea0f9,this['adapter']));return _0x3aba6e['push'](new Promise(_0x3a41ad=>{setTimeout(_0x3a41ad,0x14);})),Promise['all'](_0x3aba6e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xde8cc4=this['_getDiff'](_0x210c28,_0x282f0f);for(const _0x3b8a22 of _0xde8cc4['changes'])this['_changeIdToChange']['set'](_0x3b8a22['id'],_0x3b8a22);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x42d305=>{for(const _0x3fc754 of this['editor']['model']['document']['getRootNames']())_0x42d305['detachRoot'](_0x3fc754);for(const _0x11ec42 of Object['keys'](_0xde8cc4['model'])){const _0x263e30=_0x42d305['addRoot'](_0x11ec42);for(const _0x2bc262 of Object['keys'](_0xde8cc4['attributes'][_0x11ec42]))_0x42d305['setAttribute'](_0x2bc262,_0xde8cc4['attributes'][_0x11ec42][_0x2bc262],_0x263e30);_0x42d305['insert'](_0xde8cc4['model'][_0x11ec42],_0x263e30,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xde8cc4['changes'])),this['isReady']=!0x0;})['catch'](_0x313c17=>{console['error'](_0x313c17),this['_cleanUp'](),_0x594b87&&(this['diff']=_0x594b87),this['isReady']=!0x0;});}['addRevisionData'](_0x1fb8db,_0x5008f1){const _0x43b98f=this['repository']['createRevision'](_0x1fb8db);return _0x43b98f['on']('_update',(_0x332d6b,_0x219fed,_0x302c6d)=>_0x5008f1(_0x219fed,_0x302c6d,_0x43b98f)),this['repository']['addRevision'](_0x43b98f),_0x43b98f;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3aa238=>{for(const _0x539b76 of this['editor']['model']['document']['getRootNames']())_0x3aa238['detachRoot'](_0x539b76);});}['_sortAndFilterDiffChanges'](_0x28540d){const _0x314c96=[],_0x265da2=new Map();for(const _0x47eadf of this['editor']['model']['document']['getRootNames']()){const _0x2f06ea=this['editor']['editing']['view']['getDomRoot'](_0x47eadf);if(!_0x2f06ea)continue;const _0x33ca91=_0x2f06ea['getClientRects']()['item'](0x0);_0x33ca91&&(_0x314c96['push'](_0x47eadf),_0x265da2['set'](_0x47eadf,_0x33ca91));}return _0x314c96['sort']((_0x50d67f,_0x334b39)=>{const _0x125ce5=_0x265da2['get'](_0x50d67f),_0x3db3b5=_0x265da2['get'](_0x334b39);return _0x125ce5['y']-_0x3db3b5['y']||_0x125ce5['x']-_0x3db3b5['x'];}),(_0x28540d=_0x28540d['filter'](_0x2eace6=>_0x314c96['includes'](_0x2eace6['rootName'])))['sort']((_0x318b4e,_0x1c8c54)=>_0x314c96['indexOf'](_0x318b4e['rootName'])-_0x314c96['indexOf'](_0x1c8c54['rootName'])),_0x28540d;}['_makeTape'](_0x155fd0){const _0x18737c=Array['from'](_0x155fd0['markers'])['filter'](([_0x5d68ba,_0x537bd5])=>_0x5d68ba['startsWith']('revision:')&&!_0x537bd5['isCollapsed']),_0x33187f=Array['from'](this['editor']['model']['createRangeIn'](_0x155fd0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x18737c['length'])for(const _0x5452d6 of _0x33187f){const [_0x5e2a56,_0x5d1d74]=_0x18737c[0x0],[,_0x568a82,_0x1626b4]=_0x5e2a56['split'](':');if(_0x5d1d74['end']['isEqual'](_0x5452d6['nextPosition'])&&_0x18737c['shift'](),(_0x5452d6['previousPosition']['isEqual'](_0x5d1d74['start'])||_0x5452d6['previousPosition']['isAfter'](_0x5d1d74['start']))&&('insertion'==_0x568a82?_0x5452d6['isAdded']={'userId':_0x1626b4}:'deletion'==_0x568a82&&(_0x5452d6['isRemoved']={'userId':_0x1626b4})),0x0==_0x18737c['length'])break;}return _0x33187f;}['_refreshStartEndIndex'](_0x38713c){const _0x1b6739=new Map();for(let _0x4817b7=0x0;_0x4817b7<_0x38713c['length'];_0x4817b7++)'text'===_0x38713c[_0x4817b7]['type']?(_0x38713c[_0x4817b7]['item']['startIndex']=_0x4817b7,_0x38713c[_0x4817b7]['item']['endIndex']=_0x4817b7):('elementStart'===_0x38713c[_0x4817b7]['type']?_0x38713c[_0x4817b7]['item']['startIndex']=_0x4817b7:'elementEnd'===_0x38713c[_0x4817b7]['type']&&(_0x38713c[_0x4817b7]['item']['endIndex']=_0x4817b7),_0x1b6739['set'](_0x38713c[_0x4817b7]['id'],_0x4817b7));for(const _0x73c9dc of _0x1b6739['values']())'elementStart'===_0x38713c[_0x73c9dc]['type']?_0x38713c[_0x73c9dc]['item']['endIndex']=_0x1b6739['get'](_0x38713c[_0x73c9dc]['pairId']):'elementEnd'===_0x38713c[_0x73c9dc]['type']&&(_0x38713c[_0x73c9dc]['item']['startIndex']=_0x1b6739['get'](_0x38713c[_0x73c9dc]['pairId']));}['_processTape'](_0x121be9){for(let _0x20e3ac=0x0;_0x20e3ac<_0x121be9['length'];_0x20e3ac++){if('elementStart'===_0x121be9[_0x20e3ac]['type'])_0x121be9[_0x20e3ac]['item']['startIndex']=_0x20e3ac;else{if('elementEnd'===_0x121be9[_0x20e3ac]['type']){_0x121be9[_0x20e3ac]['item']['endIndex']=_0x20e3ac;const _0x396c64=_0x121be9[_0x20e3ac]['item']['startIndex'];_0x121be9[_0x396c64]['pairId']=_0x121be9[_0x20e3ac]['id'],_0x121be9[_0x20e3ac]['pairId']=_0x121be9[_0x396c64]['id'];}else _0x121be9[_0x20e3ac]['item']['startIndex']=_0x20e3ac,_0x121be9[_0x20e3ac]['item']['endIndex']=_0x20e3ac,_0x121be9[_0x20e3ac]['pairId']=null;}_0x121be9[_0x20e3ac]['markersStart']||(_0x121be9[_0x20e3ac]['markersStart']=[],_0x121be9[_0x20e3ac]['markersEnd']=[]);}}['_markInsertions'](_0x23eefe,_0x4c3b1a){const _0x25617b=_0x23eefe['filter'](_0x4baef2=>!_0x4baef2['isAdded']);for(let _0x2380bf=0x0;_0x2380bf<_0x4c3b1a['length'];_0x2380bf++)_0x4c3b1a[_0x2380bf]['isAdded']&&(_0x25617b[_0x2380bf]['isAdded']=_0x4c3b1a[_0x2380bf]['isAdded']);}['_getDiff'](_0x57a829,_0x154156=null){const _0x20108a=this['repository']['getRevision'](_0x57a829),_0x17313b=_0x154156?this['repository']['getRevision'](_0x154156):null,_0xeca8be=this['_getRevisionsRange'](_0x20108a,_0x17313b),_0x2d2e79=_0xeca8be[_0xeca8be['length']-0x1],_0x511d10=new Map(),_0xa0ea09={'model':{},'attributes':{},'changes':[]},_0x21fd89=new Set(),_0x1fe41d=new Map();for(let _0x4b2580=_0xeca8be['length']-0x1;_0x4b2580>=0x0;_0x4b2580--){const _0x29f17c=_0xeca8be[_0x4b2580];for(const _0x144722 of Object['keys'](_0x29f17c['diffData']))if(_0x29f17c['diffData'][_0x144722]['attachChange']){const _0x1a3f8c=_0x29f17c['diffData'][_0x144722]['attachChange'];_0x1a3f8c['isAttached']?(_0x21fd89['add'](_0x144722),_0x1fe41d['has'](_0x144722)&&_0x1fe41d['get'](_0x144722)['userId']==_0x1a3f8c['userId']?_0x1fe41d['delete'](_0x144722):_0x1fe41d['set'](_0x144722,_0x1a3f8c)):_0x1fe41d['has'](_0x144722)?(_0x21fd89['delete'](_0x144722),_0x1fe41d['delete'](_0x144722)):(_0x21fd89['add'](_0x144722),_0x1fe41d['set'](_0x144722,_0x1a3f8c));}else _0x21fd89['add'](_0x144722);}for(const _0x443b0a of _0x21fd89){const _0x325ab6=_0x1fe41d['has'](_0x443b0a)&&!_0x1fe41d['get'](_0x443b0a)['isAttached'];let _0x1a5c05=_0x325ab6?_0xeca8be['length']-0x1:0x0;const _0xfe55dc=_0x325ab6?-0x1:0x1;for(;_0xeca8be[_0x1a5c05];){const _0x1bbe1c=_0xeca8be[_0x1a5c05];if(_0x1bbe1c['diffData'][_0x443b0a]){const _0x469ad9=_0x325ab6?_0x1bbe1c['diffData'][_0x443b0a]['attributesBefore']:_0x1bbe1c['diffData'][_0x443b0a]['attributesAfter'];_0xa0ea09['attributes'][_0x443b0a]=_0x469ad9?_0x2f730e(_0x469ad9):{};break;}_0x1a5c05+=_0xfe55dc;}}for(const _0x4d0338 of _0xeca8be){_0x4d0338['model']={};for(const _0x263ac0 of _0x4d0338['authors'])_0x511d10['set'](_0x263ac0['id'],_0x263ac0);for(const _0x4dfbc7 of _0x21fd89){const _0x259248=_0x4d0338['diffData'][_0x4dfbc7]?_0x4d0338['diffData'][_0x4dfbc7]['insertions']:'[]',_0x480143=_0x4d0338['diffData'][_0x4dfbc7]?_0x4d0338['diffData'][_0x4dfbc7]['deletions']:'[]';_0x4d0338['model'][_0x4dfbc7]={'insertions':this['_utils']['_makeModelFromViewString'](_0x259248),'deletions':this['_utils']['_makeModelFromViewString'](_0x480143)};}}for(const _0x5c5937 of _0x21fd89){let _0x57911e=null,_0xf624ce=0x0;const _0x1964ba=new Map(Array['from'](_0x20108a['model'][_0x5c5937]['insertions']['markers'])['filter'](([_0x1c4d1c])=>!_0x1c4d1c['startsWith']('revision:')));let _0x3b66e2=0x0;for(const _0xa73e07 of _0xeca8be){const _0x52d027=this['_makeTape'](_0xa73e07['model'][_0x5c5937]['insertions']);_0xa73e07==_0x20108a?(_0x57911e=_0x52d027,_0xf624ce=_0x57911e['length'],_0x57911e['forEach'](_0x17e1a8=>{_0x17e1a8['id']=_0x3b66e2++;}),this['_processTape'](_0x57911e)):this['_markInsertions'](_0x57911e,_0x52d027);const _0x1edd7c=_0x57911e['filter'](_0x506544=>!_0x506544['isAdded'])['map'](_0x1b589f=>_0x1b589f['id']);let _0xd55c98=0x0;const _0x402f2c=this['_makeTape'](_0xa73e07['model'][_0x5c5937]['deletions']);_0x402f2c['forEach'](_0x7ad3e3=>{_0x7ad3e3['isRemoved']?_0x7ad3e3['id']=_0xf624ce++:_0x7ad3e3['id']=_0x1edd7c[_0xd55c98++];}),this['_processTape'](_0x402f2c),this['_setDistance'](_0x57911e,'isAdded'),this['_setDistance'](_0x402f2c,'isRemoved'),_0xa73e07==_0x20108a&&this['_markMarkers'](_0x57911e,_0x1964ba),_0x57911e=this['_joinTapes'](_0x57911e,_0x402f2c),this['_refreshStartEndIndex'](_0x57911e),this['_setDistance'](_0x57911e,'isRemoved');}_0x57911e=_0x57911e['filter'](_0x44cda8=>!(_0x44cda8['isAdded']&&_0x44cda8['isRemoved']));const _0x585df6=new Map(_0x2d2e79['model'][_0x5c5937]['deletions']['markers']),_0x1bff84=new Set(_0x1964ba['keys']());for(const _0x43ad89 of _0x585df6['keys']())_0x1bff84['delete'](_0x43ad89);this['_markSuggestions'](_0x57911e,_0x1bff84),this['_fixObsoleteTags'](_0x57911e),_0x57911e=this['_removeMissingPairs'](_0x57911e),_0x57911e=this['_markMismatchedRemovedTags'](_0x57911e),_0x57911e=this['_removeUnsupportedChanges'](_0x57911e);const {root:_0x56dd2a,changes:_0x556449}=this['_makeModelFromTape'](_0x57911e,_0x511d10,_0x5c5937);_0xa0ea09['model'][_0x5c5937]=_0x56dd2a;const _0x414f0d=_0x1fe41d['get'](_0x5c5937);if(_0x414f0d){const _0x1db8d2=_0x511d10['get'](_0x414f0d['userId']),_0x3f2401=new G({'author':_0x1db8d2,'type':_0x414f0d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5c5937});_0x556449['unshift'](_0x3f2401),_0xa0ea09['attributes'][_0x5c5937]['revisionHistoryAttachChange']=_0x3f2401['id'];}_0xa0ea09['changes']=_0xa0ea09['changes']['concat'](_0x556449);}return _0xa0ea09;}['_markMarkers'](_0x2fc624,_0x591b8a){for(let _0x5f527f=0x0;_0x5f527f<_0x2fc624['length'];_0x5f527f++)for(const [_0x5da770,_0x1e36ad]of _0x591b8a)!_0x1e36ad['isCollapsed']&&_0x1e36ad['start']['isEqual'](_0x2fc624[_0x5f527f]['previousPosition'])&&_0x2fc624[_0x5f527f]['markersStart']['push'](_0x5da770),_0x1e36ad['end']['isEqual'](_0x2fc624[_0x5f527f]['nextPosition'])&&_0x2fc624[_0x5f527f]['markersEnd']['push'](_0x5da770);}['_joinTapes'](_0x5b90ff,_0x339715){let _0x9863c=[],_0x1e405b=0x0,_0x506491=0x0;for(;_0x1e405b<_0x5b90ff['length']||_0x506491<_0x339715['length'];){const _0x339fb4=_0x5b90ff[_0x1e405b]||{},_0x5b8da1=_0x339715[_0x506491]||{};if(_0x339fb4['id']==_0x5b8da1['id'])_0x1e405b++,_0x506491++,_0x9863c['push'](_0x339fb4);else{if(_0x5b8da1['isRemoved']&&_0x339fb4['isAdded']){const {commonTape:_0x353dd7,iEnd:_0x2edfea,jEnd:_0x2212fd}=this['_threeWayMerge'](_0x5b90ff,_0x1e405b,_0x339715,_0x506491);_0x9863c=_0x9863c['concat'](_0x353dd7),_0x1e405b=_0x2edfea,_0x506491=_0x2212fd;}else _0x5b8da1['isRemoved']?(_0x506491++,_0x9863c['push'](_0x5b8da1)):(_0x1e405b++,_0x9863c['push'](_0x339fb4));}}return _0x9863c;}['_markSuggestions'](_0xd4036d,_0x3f0d6f){const _0x25acb1=[];for(let _0x1da3e3=0x0;_0x1da3e3<_0xd4036d['length'];_0x1da3e3++){for(let _0x330ff3=0x0;_0x330ff3<_0xd4036d[_0x1da3e3]['markersStart']['length'];_0x330ff3++){const _0x405d0b=_0xd4036d[_0x1da3e3]['markersStart'][_0x330ff3];if(!_0x3f0d6f['has'](_0x405d0b))continue;const {group:_0xb7dca0,type:_0xca944,authorId:_0x13dfb8}=_0x3f6759(_0x405d0b);'revision-suggestion'!=_0xb7dca0||'insertion'!=_0xca944&&'deletion'!=_0xca944||(_0x25acb1['unshift']({'type':_0xca944,'name':_0x405d0b,'userId':_0x13dfb8}),_0xd4036d[_0x1da3e3]['markersStart']['splice'](_0x330ff3,0x1),_0x330ff3--);}_0x180b64(_0xd4036d[_0x1da3e3]);for(let _0x155600=0x0;_0x155600<_0xd4036d[_0x1da3e3]['markersEnd']['length'];_0x155600++){const _0x4e6dd6=_0xd4036d[_0x1da3e3]['markersEnd'][_0x155600];if(!_0x3f0d6f['has'](_0x4e6dd6))continue;const {group:_0x3a1099,type:_0x4a6d28}=_0x3f6759(_0x4e6dd6);if('revision-suggestion'!=_0x3a1099||'insertion'!=_0x4a6d28&&'deletion'!=_0x4a6d28)continue;_0xd4036d[_0x1da3e3]['markersEnd']['splice'](_0x155600,0x1),_0x155600--;const _0x42f6ec=_0x25acb1['findIndex'](_0x4bb422=>_0x4bb422['name']==_0x4e6dd6);_0x42f6ec>-0x1&&_0x25acb1['splice'](_0x42f6ec,0x1);}}function _0x3f6759(_0x2d6d2e){const _0xb55f9b=_0x2d6d2e['split'](':');return{'group':_0xb55f9b[0x0],'type':_0xb55f9b[0x1],'subType':_0xb55f9b['length']>=0x5?_0xb55f9b[0x2]:null,'id':_0xb55f9b['length']<0x5?_0xb55f9b[0x2]:_0xb55f9b[0x3],'authorId':_0xb55f9b['length']<0x5?_0xb55f9b[0x3]:_0xb55f9b[0x4],'markerCount':0x6==_0xb55f9b['length']?_0xb55f9b[0x5]:null};}function _0x180b64(_0x56c9b8){for(let _0x16583d=0x0;_0x16583d<_0x25acb1['length'];_0x16583d++){if(_0x56c9b8['isAdded']&&'insertion'==_0x25acb1[_0x16583d]['type']&&_0x56c9b8['isAdded']['userId']==_0x25acb1[_0x16583d]['userId'])return _0x56c9b8['isAddSuggestion']=_0x25acb1[_0x16583d],void delete _0x56c9b8['isAdded'];if(!_0x56c9b8['isAdded']&&!_0x56c9b8['isRemoved']&&'deletion'==_0x25acb1[_0x16583d]['type'])return void(_0x56c9b8['isRemoveSuggestion']=_0x25acb1[_0x16583d]);}}}['_setDistance'](_0x27f2b4,_0x4a1be0){let _0x1b1661=0x0,_0x1d9b54=!0x1;const _0x49e9df=new Map();for(const _0x15cd5c of _0x27f2b4)_0x15cd5c[_0x4a1be0]?_0x1d9b54&&(_0x1b1661++,_0x1d9b54=!0x1):(_0x1b1661++,_0x1d9b54=!0x0),_0x49e9df['set'](_0x15cd5c['id'],_0x1b1661);for(let _0x4e42c0=0x0;_0x4e42c0<_0x27f2b4['length'];_0x4e42c0++){if('isRemoved'==_0x4a1be0&&_0x27f2b4[_0x4e42c0]['isAdded']||'isAdded'==_0x4a1be0&&_0x27f2b4[_0x4e42c0]['isRemoved'])continue;if('text'==_0x27f2b4[_0x4e42c0]['type']){_0x27f2b4[_0x4e42c0]['distance']=0x0;continue;}const _0x376e2b=_0x49e9df['get'](_0x27f2b4[_0x4e42c0]['pairId']),_0x4d6bdd=_0x49e9df['get'](_0x27f2b4[_0x4e42c0]['id']);_0x27f2b4[_0x4e42c0]['distance']=_0x376e2b-_0x4d6bdd;}}['_getRevisionsRange'](_0x17a9b5,_0x271d2c,_0x965785=!0x1){const _0x228316=[];let _0x2eed8c=this['repository']['getIndex'](_0x17a9b5),_0x475fad=this['repository']['getIndex'](_0x271d2c);for(-0x1==_0x475fad&&(_0x475fad=this['repository']['_revisions']['length'],_0x965785=!0x1);_0x2eed8c<_0x475fad;)_0x228316['push'](this['repository']['getRevision'](_0x2eed8c)),_0x2eed8c++;return _0x965785&&_0x228316['push'](this['repository']['getRevision'](_0x2eed8c)),_0x228316;}['_threeWayMerge'](_0x4022bb,_0x534287,_0x1fc5c5,_0x13eb5f){const _0x5d50bb=this['editor']['model']['schema'];let _0x438116=_0x534287;for(;_0x4022bb[_0x438116]&&_0x4022bb[_0x438116]['isAdded'];)_0x438116++;let _0x2edac4=_0x13eb5f;for(;_0x1fc5c5[_0x2edac4]&&_0x1fc5c5[_0x2edac4]['isRemoved'];)_0x2edac4++;_0x23d380(_0x4022bb,_0x534287,_0x438116),_0x23d380(_0x1fc5c5,_0x13eb5f,_0x2edac4);const _0x92a7a9=_0x1fc5c5['slice'](_0x13eb5f,_0x2edac4)['concat'](_0x4022bb['slice'](_0x534287,_0x438116));return _0x92a7a9['sort']((_0x2d2976,_0x1d6e43)=>_0x2d2976['side']!=_0x1d6e43['side']?_0x2d2976['side']-_0x1d6e43['side']:_0x2d2976['level']!=_0x1d6e43['level']?_0x2d2976['level']-_0x1d6e43['level']:_0x2d2976['distance']!=_0x1d6e43['distance']?_0x1d6e43['distance']-_0x2d2976['distance']:!!_0x2d2976['isAdded']!=!!_0x1d6e43['isAdded']?-0x1==_0x2d2976['side']||0x0==_0x2d2976['side']?_0x2d2976['isAdded']?-0x1:0x1:_0x2d2976['isAdded']?0x1:-0x1:_0x2d2976['index']-_0x1d6e43['index']),{'commonTape':_0x92a7a9,'iEnd':_0x438116,'jEnd':_0x2edac4};function _0x23d380(_0x291513,_0x113ce6,_0x1fdeef){let _0x1ef6e4=-0x1,_0x254d02=Number['POSITIVE_INFINITY'],_0x31f42c=!0x0;for(let _0x55b257=_0x113ce6;_0x55b257<_0x1fdeef;_0x55b257++)if(_0x5d50bb['isInline'](_0x291513[_0x55b257]['item'])||(_0x31f42c=!0x1),_0x291513[_0x55b257]['item']['startIndex']<_0x113ce6&&(_0x1ef6e4=_0x55b257),_0x291513[_0x55b257]['item']['endIndex']>=_0x1fdeef){_0x254d02=_0x55b257;break;}_0x31f42c&&(_0x1ef6e4=_0x1fdeef-0x1);for(let _0x448cb8=_0x113ce6;_0x448cb8<_0x1fdeef;_0x448cb8++)_0x291513[_0x448cb8]['side']=_0x448cb8<=_0x1ef6e4?-0x1:_0x448cb8<_0x254d02?0x0:0x1,_0x291513[_0x448cb8]['index']=_0x448cb8;let _0x1091ae=0x0;for(let _0xe307bc=_0x113ce6;_0xe307bc<=_0x1ef6e4;_0xe307bc++)0x0==_0x291513[_0xe307bc]['distance']?_0x291513[_0xe307bc]['level']=_0x1091ae:(_0x1091ae++,_0x291513[_0xe307bc]['level']=_0x1091ae,_0x1091ae++);for(let _0x161d2a=_0x113ce6;_0x161d2a<_0x1fdeef;_0x161d2a++)0x0==_0x291513[_0x161d2a]['side']&&(_0x291513[_0x161d2a]['level']=_0x1091ae);_0x1091ae=0x0;for(let _0x19bd7d=_0x1fdeef-0x1;_0x19bd7d>=_0x254d02;_0x19bd7d--)0x0==_0x291513[_0x19bd7d]['distance']?_0x291513[_0x19bd7d]['level']=_0x1091ae:(_0x1091ae--,_0x291513[_0x19bd7d]['level']=_0x1091ae,_0x1091ae--);}}['_fixObsoleteTags'](_0x2b6c87){const _0x1b622d=new Map(),_0x4a23e7=this['editor']['model']['schema'];for(let _0x1affe6=0x1;_0x1affe6<_0x2b6c87['length'];_0x1affe6++){let _0x3bc04b,_0x1155ac,_0x2972c8;const _0xd054de=_0x2b6c87[_0x1affe6],_0x224ecf=_0x2b6c87[_0x1affe6-0x1];if('text'==_0xd054de['type'])continue;if(_0xd054de['type']!=_0x224ecf['type'])continue;if(!_0x4a23e7['isBlock'](_0x224ecf['item'])||_0x4a23e7['isLimit'](_0x224ecf['item']))continue;if(!_0x4a23e7['isBlock'](_0xd054de['item'])||_0x4a23e7['isLimit'](_0xd054de['item']))continue;if((_0x2b6c87[_0x1affe6]['isAdded']||_0x2b6c87[_0x1affe6]['isAddSuggestion'])&&_0x2b6c87[_0x1affe6-0x1]['isRemoved'])_0x3bc04b=_0x2b6c87[_0x1affe6],_0x1155ac=_0x2b6c87[_0x1affe6-0x1],_0x2972c8=_0x1affe6-0x1;else{if(!_0x2b6c87[_0x1affe6]['isRemoved']||!_0x2b6c87[_0x1affe6-0x1]['isAdded']&&!_0x2b6c87[_0x1affe6-0x1]['isAddSuggestion'])continue;_0x3bc04b=_0x2b6c87[_0x1affe6-0x1],_0x1155ac=_0x2b6c87[_0x1affe6],_0x2972c8=_0x1affe6;}const _0x442cf5=_0x3bc04b['level']==_0x1155ac['level'],_0x2a8deb=Math['abs'](_0x3bc04b['level'])<Math['abs'](_0x1155ac['level'])&&0x0==_0x1155ac['distance'];(_0x442cf5||_0x2a8deb)&&(_0x1b622d['set'](_0x1155ac['id'],_0x3bc04b['id']),_0x2b6c87['splice'](_0x2972c8,0x1),_0x1affe6--,_0x3bc04b['isAdded']=!0x1);}for(let _0x19a42f=0x0;_0x19a42f<_0x2b6c87['length'];_0x19a42f++)_0x1b622d['has'](_0x2b6c87[_0x19a42f]['pairId'])&&(_0x2b6c87[_0x19a42f]['pairId']=_0x1b622d['get'](_0x2b6c87[_0x19a42f]['pairId']));}['_removeMissingPairs'](_0x3e7714){const _0x193a13=new Set(_0x3e7714['map'](_0x5e3d79=>_0x5e3d79['id']));for(let _0xcaf84f=0x0;_0xcaf84f<_0x3e7714['length'];_0xcaf84f++)_0x193a13['has'](_0x3e7714[_0xcaf84f]['pairId'])||0x0==_0x3e7714[_0xcaf84f]['distance']||(_0x3e7714[_0xcaf84f]['isIncorrect']=!0x0);return _0x3e7714['filter'](_0x2a5b29=>!_0x2a5b29['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4b8e7c){const _0x10785f=new Set();for(let _0x3633b8=0x0;_0x3633b8<_0x4b8e7c['length'];_0x3633b8++){if(_0x10785f['has'](_0x4b8e7c[_0x3633b8]['id'])&&_0x4b8e7c[_0x3633b8]['isRemoved']&&(_0x4b8e7c[_0x3633b8]['isIncorrect']=!0x0),_0x4b8e7c[_0x3633b8]['isIncorrect'])continue;if(0x0==_0x4b8e7c[_0x3633b8]['distance'])continue;if('elementStart'!=_0x4b8e7c[_0x3633b8]['type'])continue;if(null==_0x4b8e7c[_0x3633b8]['pairId'])continue;let _0x11ebe2=_0x3633b8+0x1,_0x2c3ea2=0x0;for(;_0x4b8e7c[_0x11ebe2]['id']!=_0x4b8e7c[_0x3633b8]['pairId'];)'elementStart'==_0x4b8e7c[_0x11ebe2]['type']?_0x2c3ea2++:'elementEnd'==_0x4b8e7c[_0x11ebe2]['type']&&_0x2c3ea2--,_0x11ebe2++;if(0x0!=_0x2c3ea2){if(_0x4b8e7c[_0x3633b8]['isRemoved'])_0x4b8e7c[_0x3633b8]['isIncorrect']=!0x0;else{for(;_0x11ebe2!=_0x3633b8;)_0x4b8e7c[_0x11ebe2]['isRemoved']&&0x0!=_0x4b8e7c[_0x11ebe2]['distance']&&(_0x4b8e7c[_0x11ebe2]['isIncorrect']=!0x0,_0x10785f['add'](_0x4b8e7c[_0x11ebe2]['pairId'])),_0x11ebe2--;}}}return _0x4b8e7c['filter'](_0x24956f=>!_0x24956f['isIncorrect']);}['_removeUnsupportedChanges'](_0x29a697){const _0x1042c7=this['editor']['model']['schema'];for(let _0x3e4f2e=0x0;_0x3e4f2e<_0x29a697['length'];_0x3e4f2e++){if(!(_0x29a697[_0x3e4f2e]['isAdded']||_0x29a697[_0x3e4f2e]['isAddSuggestion']||_0x29a697[_0x3e4f2e]['isRemoved']||_0x29a697[_0x3e4f2e]['isRemoveSuggestion']))continue;if(0x0==_0x29a697[_0x3e4f2e]['distance'])continue;const _0x3778a2=_0x29a697[_0x3e4f2e]['item'];_0x1042c7['isBlock'](_0x3778a2)||_0x1042c7['isLimit'](_0x3778a2)||(_0x29a697[_0x3e4f2e]['isAdded']&&delete _0x29a697[_0x3e4f2e]['isAdded'],_0x29a697[_0x3e4f2e]['isAddSuggestion']&&delete _0x29a697[_0x3e4f2e]['isAddSuggestion'],_0x29a697[_0x3e4f2e]['isRemoveSuggestion']&&delete _0x29a697[_0x3e4f2e]['isRemoveSuggestion'],_0x29a697[_0x3e4f2e]['isRemoved']&&(_0x29a697[_0x3e4f2e]['isIncorrect']=!0x0));}return _0x29a697['filter'](_0x1bb926=>!_0x1bb926['isIncorrect']);}['_makeModelFromTape'](_0x40e734,_0x2bca98,_0x4d4626){const _0x58c3f3=new _0x22dcf7(),_0x57940f=[],_0x519264=new Map(),_0x306928=this['editor']['model'],_0x5705fb=_0x306928['schema'],_0x530dd8=[_0x58c3f3],_0x24c189={},_0x59c203={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x31d4c5=null;const _0x31126d=[0x0];for(let _0x4b3e51=0x0;_0x4b3e51<_0x40e734['length'];_0x4b3e51++)if('elementStart'===_0x40e734[_0x4b3e51]['type']){_0x40e734[_0x4b3e51]['previousPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d);const _0x3b8ede=new _0x3dce0a(_0x40e734[_0x4b3e51]['item']['name'],_0x40e734[_0x4b3e51]['item']['getAttributes']());_0x530dd8[0x0]['_appendChild'](_0x3b8ede),_0x31126d['push'](0x0),_0x530dd8['unshift'](_0x3b8ede),_0x40e734[_0x4b3e51]['nextPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d);}else'elementEnd'===_0x40e734[_0x4b3e51]['type']?(_0x530dd8['shift'](),_0x40e734[_0x4b3e51]['previousPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d),_0x31126d['pop'](),_0x31126d[_0x31126d['length']-0x1]++,_0x40e734[_0x4b3e51]['nextPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d)):(_0x40e734[_0x4b3e51]['previousPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d),_0x31d4c5?_0x31d4c5['_data']+=_0x40e734[_0x4b3e51]['item']['data']:_0x31d4c5=new _0x3ce810(_0x40e734[_0x4b3e51]['item']['data'],_0x40e734[_0x4b3e51]['item']['getAttributes']()),_0x40e734[_0x4b3e51+0x1]&&'text'===_0x40e734[_0x4b3e51+0x1]['type']&&_0x154616(_0x31d4c5,_0x40e734[_0x4b3e51+0x1]['item'])||(_0x530dd8[0x0]['_appendChild'](_0x31d4c5),_0x31d4c5=null),_0x31126d[_0x31126d['length']-0x1]+=_0x40e734[_0x4b3e51]['item']['offsetSize'],_0x40e734[_0x4b3e51]['nextPosition']=_0x306928['createPositionFromPath'](_0x58c3f3,_0x31126d));for(let _0x56e187=0x0;_0x56e187<_0x40e734['length'];_0x56e187++){const _0x47a77b=_0x40e734[_0x56e187]['previousPosition'],_0x475230=_0x40e734[_0x56e187]['nextPosition'];for(const _0x9269af of _0x40e734[_0x56e187]['markersStart'])_0x519264['set'](_0x9269af,{'start':_0x47a77b,'end':null});_0x4d8b52('isRemoveSuggestion',_0x56e187,_0x47a77b,_0x475230),_0x4d8b52('isAddSuggestion',_0x56e187,_0x47a77b,_0x475230),_0x4d8b52('isRemoved',_0x56e187,_0x47a77b,_0x475230),_0x4d8b52('isAdded',_0x56e187,_0x47a77b,_0x475230);for(const _0x12044d of _0x40e734[_0x56e187]['markersEnd']){const _0x4ffa44=_0x519264['get'](_0x12044d);_0x4ffa44?_0x4ffa44['end']=_0x475230:_0x519264['set'](_0x12044d,{'start':_0x475230,'end':_0x475230});}}for(const [_0x56ce45,_0x5d5c65]of _0x519264){const _0x225f0a=this['editor']['model']['createRange'](_0x5d5c65['start'],_0x5d5c65['end']);_0x58c3f3['markers']['set'](_0x56ce45,_0x225f0a);}return _0x57940f['sort']((_0x4c0075,_0x37db7d)=>{const _0x1a4929=_0x58c3f3['markers']['get']('revision:'+_0x4c0075['id']),_0x2e0b0f=_0x58c3f3['markers']['get']('revision:'+_0x37db7d['id']);return _0x1a4929['start']['isBefore'](_0x2e0b0f['start'])?-0x1:_0x1a4929['start']['isAfter'](_0x2e0b0f['start'])?0x1:_0x1a4929['end']['isBefore'](_0x2e0b0f['end'])?-0x1:_0x1a4929['end']['isAfter'](_0x2e0b0f['end'])?0x1:'add'===_0x4c0075['type']?-0x1:0x1;}),{'root':_0x58c3f3,'changes':_0x57940f};function _0x4d8b52(_0x4f005f,_0xbc399,_0x325e44,_0x8c98a){const _0x3d4c9c=!!_0x40e734[_0xbc399][_0x4f005f],_0x1b6498=_0x3d4c9c?_0x40e734[_0xbc399][_0x4f005f]['userId']:null,_0x538d73=_0xbc399===_0x40e734['length']-0x1,_0x56570f=_0x59c203[_0x4f005f][0x0],_0x5ded8c=_0x5705fb['isObject'](_0x40e734[_0xbc399]['item']);!_0x24c189[_0x4f005f]&&_0x3d4c9c?_0x24c189[_0x4f005f]={'start':_0x325e44,'tapeItem':_0x40e734[_0xbc399],'userId':_0x1b6498,'type':_0x4f005f}:_0x24c189[_0x4f005f]&&!_0x3d4c9c?(_0x24c189[_0x4f005f]['end']=_0x325e44,_0x57bbc5(_0x24c189[_0x4f005f]),_0x24c189[_0x4f005f]=null):_0x24c189[_0x4f005f]&&_0x3d4c9c&&_0x24c189[_0x4f005f]['userId']!==_0x1b6498&&(_0x24c189[_0x4f005f]['end']=_0x325e44,_0x56570f&&_0x56570f['userId']===_0x24c189[_0x4f005f]['userId']||_0x57bbc5(_0x24c189[_0x4f005f]),_0x24c189[_0x4f005f]={'start':_0x325e44,'tapeItem':_0x40e734[_0xbc399],'userId':_0x1b6498,'type':_0x4f005f}),_0x24c189[_0x4f005f]&&_0x5ded8c&&('elementStart'!==_0x40e734[_0xbc399]['type']||_0x56570f&&_0x56570f['userId']===_0x1b6498||_0x59c203[_0x4f005f]['unshift']({'userId':_0x1b6498,'object':_0x40e734[_0xbc399]['item'],'change':_0x24c189[_0x4f005f]}),'elementEnd'===_0x40e734[_0xbc399]['type']&&_0x56570f&&_0x56570f['object']===_0x40e734[_0xbc399]['item']&&(_0x59c203[_0x4f005f]['shift'](),_0x24c189[_0x4f005f]=_0x56570f['change'])),_0x24c189[_0x4f005f]&&_0x538d73&&(_0x24c189[_0x4f005f]['end']=_0x8c98a,_0x57bbc5(_0x24c189[_0x4f005f]),_0x24c189[_0x4f005f]=null);}function _0x57bbc5({start:_0x5bcce2,end:_0x292db0,tapeItem:_0x7703fb,userId:_0x5244b1,type:_0x202869}){const _0x4a48e5=_0x7703fb['item'],_0x217da0=_0x306928['schema']['isBlock'](_0x4a48e5)&&!_0x306928['schema']['isLimit'](_0x4a48e5),_0xb7b80=_0x5bcce2['nodeAfter']==_0x292db0['parent']&&_0x292db0['isAtStart'];if(_0x217da0&&_0xb7b80)return;const _0x21de94=_0x306928['createRange'](_0x5bcce2,_0x292db0),_0x5be102=_0x2bca98['get'](_0x5244b1),_0x1c9fc3=new G({'author':_0x5be102,'type':'isAdded'==_0x202869||'isAddSuggestion'==_0x202869?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x202869||'isRemoveSuggestion'==_0x202869},'createdAt':new Date(),'rootName':_0x4d4626});_0x57940f['push'](_0x1c9fc3),_0x58c3f3['markers']['set']('revision:'+_0x1c9fc3['id'],_0x21de94);}function _0x154616(_0x162328,_0x47c056){const _0x3fa1c7=_0x162328['getAttributes'](),_0x4054b1=_0x47c056['getAttributes']();for(const _0x2fa9b5 of _0x3fa1c7){if(_0x2fa9b5[0x1]!==_0x47c056['getAttribute'](_0x2fa9b5[0x0]))return!0x1;_0x4054b1['next']();}return _0x4054b1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xb6dbd6=>{const _0x3fee9b=_0xb6dbd6['markerName']['split'](':')[0x1],_0x173ba8=this['_getChangeFromId'](_0x3fee9b);if(!_0x173ba8)return null;const _0x53c233='add'==_0x173ba8['type']?'insertion':'deletion',_0xb3a999=['ck-suggestion-marker','ck-suggestion-marker-'+_0x53c233];return _0x173ba8['data']['isSuggestion']&&_0xb3a999['push']('ck-suggestion-marker-'+_0x53c233+'-new'),this['activeChange']==_0x173ba8&&_0xb3a999['push']('ck-suggestion-marker--active'),{'classes':_0xb3a999,'attributes':{'data-change-id':_0x3fee9b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4aa358=>{_0x4aa358['on']('element:pre',(_0x117da0,_0x565203,_0x50b293)=>{const _0xa5bd5=_0x565203['viewItem']['getChild'](0x0);if(!_0xa5bd5||!_0xa5bd5['is']('element','code'))return;if(!_0x50b293['consumable']['consume'](_0xa5bd5,{'attributes':['vid_start','vid_end']}))return;const _0x36ba9c=_0x565203['modelRange']['start']['nodeAfter'];_0x50b293['writer']['setAttribute']('vid_start',_0xa5bd5['getAttribute']('vid_start'),_0x36ba9c),_0x50b293['writer']['setAttribute']('vid_end',_0xa5bd5['getAttribute']('vid_end'),_0x36ba9c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4469da=>{_0x4469da['on']('element',(_0x487a46,_0x14b23c,_0x37ed8f)=>{if(!_0x37ed8f['consumable']['consume'](_0x14b23c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x14b23c['modelRange']['isCollapsed'])return;const _0x3de4b1=_0x14b23c['modelRange']['start']['nodeAfter'];_0x3de4b1['hasAttribute']('vid_start')||_0x3de4b1['hasAttribute']('vid')||(_0x37ed8f['writer']['setAttribute']('vid_start',_0x14b23c['viewItem']['getAttribute']('vid_start'),_0x3de4b1),_0x37ed8f['writer']['setAttribute']('vid_end',_0x14b23c['viewItem']['getAttribute']('vid_end'),_0x3de4b1));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x489370=>_0x489370['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x40c915,[,_0x32e033])=>{['vid_start','vid_end','vid']['includes'](_0x32e033)&&(_0x40c915['return']=!0x0,_0x40c915['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4ffbc6=>{_0x4ffbc6['on']('attribute:vid',(_0x18605b,_0x4039a3,_0x401dba)=>{if('\x20'!=_0x4039a3['item']['data']||_0x4039a3['item']['parent']['maxOffset']>0x1)return;if(!_0x401dba['consumable']['consume'](_0x4039a3['item'],_0x18605b['name']))return;const _0x327049=_0x401dba['writer'],_0x14ac8b=_0x401dba['mapper']['toViewRange'](_0x4039a3['range']);_0x327049['wrap'](_0x14ac8b,_0x327049['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x29cb37){const _0x296090=_0x29cb37['plugins']['get']('RevisionViewer');return(_0x425785,_0x4a0e28,_0x151411)=>{const _0xc64047=_0x4a0e28['markerName']['split'](':')[0x1],_0x5d2f1d=_0x296090['_getChangeFromId'](_0xc64047);if(!_0x5d2f1d)return null;const _0x59d153='add'==_0x5d2f1d['type']?'split':'merge';if(!_0x151411['consumable']['test'](_0x4a0e28['markerRange'],_0x425785['name']))return;const _0x55af45=_0x4a0e28['markerRange']['getWalker'](),_0x2120d6=_0x4a0e28['markerRange']['start'],_0x5b8e95=_0x29cb37['model']['schema'];let _0x2ea063=null,_0xfe3767=null,_0x564bbf=!0x1,_0x67db53=!0x1;for(const _0x370655 of _0x55af45){const _0x5a7260=_0x370655['item'];_0x564bbf=_0x564bbf||_0x5b8e95['isContent'](_0x5a7260);const _0x162060=_0x151411['mapper']['toViewElement'](_0x5a7260);if(_0x162060&&_0x162060['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x370655['type']&&(_0x5b8e95['isBlock'](_0x5a7260)&&!_0x5b8e95['isLimit'](_0x5a7260)&&(_0x5a7260['nextSibling']||_0x2120d6['isAtEnd']?_0x2ea063&&_0x2ea063['parent']==_0x5a7260||(_0x2ea063=_0x5a7260,_0xdf60ec(_0x370655['previousPosition']),_0x67db53=!0x0):_0xfe3767=_0xfe3767||_0x370655['previousPosition']));}function _0xdf60ec(_0x5090ad){const _0x5bcac7=_0x151411['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x59d153}),_0x12be4f=_0x151411['mapper']['toViewPosition'](_0x5090ad);_0x5d2f1d['data']['isSuggestion']&&_0x151411['writer']['addClass']('ck-suggestion-marker-'+_0x59d153+'-new',_0x5bcac7),_0x296090['activeChange']==_0x5d2f1d&&_0x151411['writer']['addClass']('ck-suggestion-marker--active',_0x5bcac7),_0x151411['writer']['insert'](_0x12be4f,_0x5bcac7),_0x151411['mapper']['bindElementToMarker'](_0x5bcac7,_0x4a0e28['markerName']);}_0x564bbf||_0x67db53||!_0xfe3767||_0xdf60ec(_0xfe3767);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x277638,_0x16e7b5,_0x364e70)=>{const _0x5238bf=_0x364e70['mapper']['markerNameToElements'](_0x16e7b5['markerName']);if(_0x5238bf){for(const _0x1c614c of _0x5238bf)(_0x1c614c['hasClass']('ck-suggestion-marker-split')||_0x1c614c['hasClass']('ck-suggestion-marker-merge'))&&(_0x364e70['mapper']['unbindElementFromMarkerName'](_0x1c614c,_0x16e7b5['markerName']),_0x364e70['writer']['remove'](_0x1c614c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x195e59,_0x117e84,_0x2a9503)=>{const _0x348c99=_0x117e84['markerName']['split'](':')[0x1],_0x54920b=this['_getChangeFromId'](_0x348c99);if(!_0x54920b)return null;const _0x47064c='add'==_0x54920b['type']?'split':'merge';if(_0x2a9503['consumable']['test'](_0x117e84['markerRange'],_0x195e59['name']))for(const _0xfd9f24 of _0x117e84['markerRange']['getItems']()){if(!_0xfd9f24['is']('element','softBreak'))continue;const _0x8b51c1=_0x2a9503['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x47064c}),_0x3a14a6=_0x2a9503['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xfd9f24));_0x54920b['data']['isSuggestion']&&_0x2a9503['writer']['addClass']('ck-suggestion-marker-'+_0x47064c+'-new',_0x8b51c1),this['activeChange']==_0x54920b&&_0x2a9503['writer']['addClass']('ck-suggestion-marker--active',_0x8b51c1),_0x2a9503['writer']['insert'](_0x3a14a6,_0x8b51c1),_0x2a9503['mapper']['bindElementToMarker'](_0x8b51c1,_0x117e84['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2e2fd7=>{for(const _0x2d8b30 of this['editor']['model']['document']['getRootNames']()){const _0x313a0a=this['editor']['model']['document']['getRoot'](_0x2d8b30),_0x29798e=this['editor']['editing']['view']['document']['getRoot'](_0x2d8b30);if(_0x29798e){const _0x1140a0=_0x313a0a['getAttribute']('revisionHistoryAttachChange');if(_0x2e2fd7['removeAttribute']('data-change-id',_0x29798e),_0x2e2fd7['removeClass']('ck-revision-history-root-add',_0x29798e),_0x2e2fd7['removeClass']('ck-revision-history-root-remove',_0x29798e),_0x2e2fd7['removeClass']('ck-revision-history-root--active',_0x29798e),_0x1140a0){const _0x12ac1b=this['_getChangeFromId'](_0x1140a0);if(!_0x12ac1b)return null;_0x2e2fd7['setAttribute']('data-change-id',_0x1140a0,_0x29798e),_0x2e2fd7['addClass']('ck-revision-history-root-'+_0x12ac1b['type'],_0x29798e),this['activeChange']==_0x12ac1b&&_0x2e2fd7['addClass']('ck-revision-history-root--active',_0x29798e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5a9602=>'revision-comment:'+_0x5a9602,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2f0014=>'revision-suggestion:'+_0x2f0014,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2ed3d8=>({'name':'suggestion:'+_0x2ed3d8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4e52e1=>{const _0x1bc65f=_0x4e52e1['markerName']['split'](':')[0x1];return'insertion'!=_0x1bc65f&&'deletion'!=_0x1bc65f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1bc65f]};}}),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',(_0x34046e,_0x778fac,_0x25bfdb)=>{const _0x31863=_0x25bfdb['mapper']['markerNameToElements'](_0x778fac['markerName']);if(_0x31863){for(const _0x49e9fa of _0x31863)_0x49e9fa['is']('uiElement')&&(_0x25bfdb['mapper']['unbindElementFromMarkerName'](_0x49e9fa,_0x778fac['markerName']),_0x25bfdb['writer']['remove'](_0x49e9fa));}},{'priority':'high'});}['_getChangeFromId'](_0x102a33){return this['_changeIdToChange']['get'](_0x102a33);}['_getViewForChange'](_0x48a417){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x48a417),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x30abb7,_0x43a8ad,_0x2e59b7,_0x2cff24)=>{_0x2cff24&&this['_balloon']['remove'](_0x2cff24),_0x2e59b7&&(this['_balloon']['add']({'view':_0x2e59b7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1de775=this['editor']['editing'],_0x3bae8d=this['_getChangeFromId'](_0x2e59b7['changeId']);let _0x331e2e;if(_0x3bae8d['data']['isOnRoot']){const _0x42ca68=_0x1de775['view']['getDomRoot'](_0x3bae8d['rootName']);_0x331e2e=Array['from'](_0x42ca68['getClientRects']());}else{const _0x275ed7=this['editor']['model']['markers']['get']('revision:'+_0x2e59b7['changeId']);_0x331e2e=Array['from'](_0x1de775['mapper']['markerNameToElements'](_0x275ed7['name']))['map'](_0x431c7b=>_0x1de775['view']['domConverter']['mapViewToDom'](_0x431c7b))['map'](_0xadffdc=>Array['from'](_0xadffdc['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x331e2e[0x0];return _0x331e2e['find'](_0x1302db=>_0x1302db['top']-0x3<=this['_activeViewTarget']['y']&&_0x1302db['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1302db['left']-0x3<=this['_activeViewTarget']['x']&&_0x1302db['right']+0x3>=this['_activeViewTarget']['x'])||_0x331e2e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x110b8c,_0x51714d,_0x46f926,_0x2c1de6)=>{this['activeView']=_0x46f926?this['_getViewForChange'](_0x46f926):null,this['editor']['model']['change'](()=>{const _0x5f5c17=this['editor']['editing'];_0x2c1de6&&(_0x2c1de6['data']['isOnRoot']?_0x5f5c17['view']['change'](_0x442b3c=>{_0x442b3c['removeClass']('ck-revision-history-root--active',_0x5f5c17['view']['document']['getRoot'](_0x2c1de6['rootName']));}):_0x5f5c17['reconvertMarker']('revision:'+_0x2c1de6['id'])),_0x46f926&&(_0x46f926['data']['isOnRoot']?_0x5f5c17['view']['change'](_0x525cb2=>{_0x525cb2['addClass']('ck-revision-history-root--active',_0x5f5c17['view']['document']['getRoot'](_0x46f926['rootName']));}):_0x5f5c17['reconvertMarker']('revision:'+_0x46f926['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x391432,_0x29b4c4)=>{if(this['activeChange'])return;const _0x2f7ffd=this['_findChangeIdFromDomTarget'](_0x29b4c4['target']),_0x7ae257=this['_changeIdToChange']['get'](_0x2f7ffd);_0x7ae257?(this['_activeViewTarget']={'x':_0x29b4c4['domEvent']['x'],'y':_0x29b4c4['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x7ae257)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x106897,_0x2164e8)=>{const _0x1f018b=this['_findChangeIdFromDomTarget'](_0x2164e8['target']),_0x3c0292=this['_changeIdToChange']['get'](_0x1f018b);_0x3c0292?(this['_activeViewTarget']={'x':_0x2164e8['domEvent']['x'],'y':_0x2164e8['domEvent']['y']},_0x3c0292===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3c0292):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x361593){do{const _0x5d515c=_0x361593['getAttribute']('data-change-id');if(_0x5d515c)return _0x5d515c;_0x361593=_0x361593['parent'];}while(_0x361593);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2aa805=>{for(const _0x15bd6d of this['editor']['model']['markers'])_0x2aa805['removeMarker'](_0x15bd6d);});}}function Q(_0x2f21cd,_0x2b0a75){return(_0xc08676,_0x14bd65,_0x568c68)=>{if(!_0x568c68['consumable']['test'](_0x14bd65['markerRange'],_0xc08676['name']))return;const _0x2e2bab=_0x14bd65['markerRange']['getWalker'](),_0x2330fa=_0x14bd65['markerRange']['start'],_0xa2bfa7=_0x2f21cd['model']['schema'];let _0x223344=null,_0x235d39=null,_0x32d00d=!0x1,_0x582bbb=!0x1;for(const _0x509a92 of _0x2e2bab){const _0x3c56a7=_0x509a92['item'];_0x32d00d=_0x32d00d||_0xa2bfa7['isContent'](_0x3c56a7);const _0xceafc9=_0x568c68['mapper']['toViewElement'](_0x3c56a7);if(_0xceafc9&&_0xceafc9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x509a92['type']&&(_0xa2bfa7['isBlock'](_0x3c56a7)&&!_0xa2bfa7['isLimit'](_0x3c56a7)&&(_0x3c56a7['nextSibling']||_0x2330fa['isAtEnd']?_0x223344&&_0x223344['parent']==_0x3c56a7||(_0x223344=_0x3c56a7,_0x1ca7fa(_0x509a92['previousPosition']),_0x582bbb=!0x0):_0x235d39=_0x235d39||_0x509a92['previousPosition']));}function _0x1ca7fa(_0x1af655){const _0x1fb574=_0x568c68['mapper']['toViewPosition'](_0x1af655),_0x15fe22=_0x568c68['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2b0a75});_0x568c68['writer']['insert'](_0x1fb574,_0x15fe22),_0x568c68['mapper']['bindElementToMarker'](_0x15fe22,_0x14bd65['markerName']);}_0x32d00d||_0x582bbb||!_0x235d39||_0x1ca7fa(_0x235d39);};}class nt extends _0x55cc81{constructor(_0x34e19e){super(_0x34e19e);const _0x125328=_0x34e19e['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x125328,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x125328,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x17874e=this['editor'],_0x4779f3=_0x17874e['plugins']['get'](u),_0x564d31=_0x4779f3['isReady']?_0x4779f3['diff']['newRevisionId']:null;_0x17874e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x564d31);}['refresh'](){const {isReady:_0x4d7b64,isEnabled:_0x52f94a,repository:_0xf3fc71,diff:_0x18cab1}=this['editor']['plugins']['get'](u),_0x35dd87=_0x18cab1&&_0xf3fc71['getLaterVisibleRevision'](_0x18cab1['newRevisionId']);this['isEnabled']=_0x4d7b64&&_0x52f94a&&Boolean(_0x35dd87);}}class rt extends _0x55cc81{['_step'];constructor(_0x3cda4d,{direction:_0x4c5e43}){super(_0x3cda4d);const _0x1b9457=_0x3cda4d['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x4c5e43?0x1:-0x1,this['listenTo'](_0x1b9457,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1b9457,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1b9457,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x18bbd3=this['editor'],_0x24be6a=_0x18bbd3['plugins']['get'](u),{isNavigationMode:_0x163b9a,currentChangeNumber:_0x26d7c6}=_0x24be6a;let _0x195631;if(_0x24be6a['activeChange']=_0x163b9a?_0x24be6a['diff']['changes']['get'](_0x26d7c6+this['_step']):_0x24be6a['diff']['changes']['first'],_0x24be6a['activeChange']['data']['isOnRoot'])_0x195631=_0x18bbd3['editing']['view']['getDomRoot'](_0x24be6a['activeChange']['rootName']);else{const _0x450dee=_0x18bbd3['model']['markers']['get']('revision:'+_0x24be6a['activeChange']['id']);_0x195631=_0x45bde4(_0x18bbd3['editing'],_0x450dee);}_0x31208c({'target':_0x195631,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xa08a01,currentChangeNumber:_0x4307cf,numberOfChanges:_0x59bfef,isReady:_0x33da74,isEnabled:_0xbdf2fc}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0xbdf2fc&&_0x33da74&&_0x59bfef)&&(!_0xa08a01||(0x1===this['_step']?_0x4307cf<_0x59bfef-0x1:_0x4307cf>0x0));}}class Ri extends _0x2f41d6{constructor(_0x4b3ee9){super(_0x4b3ee9);const _0x5eaf07=this['bindTemplate'],_0x4349ea=new _0x22b97e(_0x4b3ee9),_0x106c01=new _0x22b97e(_0x4b3ee9);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',(_0x5081dd,_0x4020be)=>_0x5081dd&&_0x4020be>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4f879b,_0x298f71,_0x4de288,_0x153eed)=>{if(!_0x4f879b)return m(_0x4b3ee9,'Loading...');if(!_0x4de288)return m(_0x4b3ee9,'No\x20changes');const _0x5d6a0a=m(_0x4b3ee9,'NUMBER_OF_CHANGES',_0x4de288);return _0x153eed?m(_0x4b3ee9,'X_OF_Y_CHANGES',[_0x298f71+0x1,_0x4de288]):_0x5d6a0a;}),_0x4349ea['set']({'label':m(_0x4b3ee9,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x11f797}),_0x106c01['set']({'label':m(_0x4b3ee9,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x48dfa2}),_0x4349ea['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x106c01['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4349ea['on']('execute',()=>this['fire']('execute','backward')),_0x106c01['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',_0x5eaf07['if']('_isStatusLabelVisible','ck-hidden',_0x33b239=>!_0x33b239)]},'children':[{'text':_0x5eaf07['to']('isNavigationMode',_0x29f95a=>_0x29f95a?m(_0x4b3ee9,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4b3ee9,'Total')+':\x20')}]},{'text':_0x5eaf07['to']('_statusText')}]},new _0x1f6c28(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4349ea,_0x106c01]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x694cb{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x47f3e6=this['editor']['editing']['view'];_0x47f3e6['change'](_0x19dace=>{for(const _0x37e690 of _0x47f3e6['document']['roots'])_0x19dace['addClass'](ge,_0x37e690);});}['hide'](){const _0x17ae54=this['editor']['editing']['view'];_0x17ae54['change'](_0x2cb4c3=>{for(const _0x46a906 of _0x17ae54['document']['roots'])_0x2cb4c3['removeClass'](ge,_0x46a906);});}}class v extends _0x694cb{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x533ba8=this['editor'],_0x33ac30=_0x533ba8['plugins']['get'](u),_0x38f09b=_0x533ba8['plugins']['get'](ji);_0x533ba8['ui']['componentFactory']['add']('exitToEditing',_0x706ba1=>{const _0x39c37a=new _0x22b97e(_0x706ba1);return _0x39c37a['set']({'label':m(_0x706ba1,'Back\x20to\x20editing'),'icon':_0x3c6c73,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x39c37a,'execute',()=>{_0x533ba8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x39c37a;}),_0x533ba8['ui']['componentFactory']['add']('restoreRevision',_0x1a98fc=>{const _0x13b7cb=new _0x22b97e(_0x1a98fc);return _0x13b7cb['set']({'label':m(_0x1a98fc,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x13b7cb['bind']('isEnabled')['to'](_0x533ba8['commands']['get']('restoreRevision')),this['listenTo'](_0x13b7cb,'execute',()=>_0x533ba8['execute']('restoreRevision')),_0x13b7cb;}),_0x533ba8['ui']['componentFactory']['add']('changesNavigation',_0x37992f=>{const _0x9020ee=new Ri(_0x37992f),_0xf4c58b=_0x533ba8['commands']['get']('showPreviousChange'),_0x599c15=_0x533ba8['commands']['get']('showNextChange');return _0x9020ee['bind']('isBackwardNavigationEnabled')['to'](_0xf4c58b,'isEnabled'),_0x9020ee['bind']('isForwardNavigationEnabled')['to'](_0x599c15,'isEnabled'),_0x9020ee['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x33ac30),this['listenTo'](_0x9020ee,'execute',(_0x5b1b7d,_0x442ca7)=>{_0x533ba8['execute']('forward'===_0x442ca7?'showNextChange':'showPreviousChange');}),_0x9020ee;}),_0x38f09b['show'](),_0x33ac30['on']('change:isReady',(_0x54009c,_0x517e1b,_0x3d381a)=>{_0x3d381a?_0x38f09b['hide']():_0x38f09b['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4918a5,_0x39abdd){super(_0x4918a5,_0x39abdd);const _0x430961=this['bindTemplate'];this['set']({'label':m(_0x4918a5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4918a5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x430961['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5b9615=this['fieldView']['element'];this['_tooltipString']=_0x5b9615['scrollWidth']>_0x5b9615['clientWidth']&&_0x5b9615['value']||'';}}class ni extends _0x2f41d6{constructor(_0x4ed494,_0x398621,_0x574ed9){super(_0x4ed494);const _0x5352fb=new _0x5d5bfc();_0x5352fb['set']({'content':_0x28a2e1,'viewBox':'0\x200\x2011\x2010'});const _0x4a533a=['ck','ck-revision-history-sidebar__revision-author'];_0x574ed9&&_0x4a533a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x559156=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4ed494,_0x574ed9?'Revision\x20creator':'Revision\x20author')},'children':[_0x5352fb,_0x398621['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4a533a},'children':_0x559156});}}function ai(_0x294987,_0x6746cb){const _0x4124d2=_0x294987['bindTemplate'],_0x539e33=_0x294987['locale'],_0x1bfc9d=_0x3712c9(_0x539e33);_0x1bfc9d['panelPosition']='sw';const _0x53f097=function(_0x1596e6,_0xc33e25){const _0x1cd0fe=function(_0xb330a9,_0x1f8702){const _0x4b8f76=_0xb330a9['locale'],_0x1b0484={'Compare\x20against\x20selected':m(_0x4b8f76,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4b8f76,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4b8f76,'Restore\x20this\x20revision')};return _0x1f8702['map'](_0x5af411=>{const _0x2fb881=_0x1b0484[_0x5af411['name']];return _0x2fb881&&_0x2fb881!==_0x5af411['name']&&(_0x5af411['name']=_0x2fb881),_0x5af411;});}(_0x1596e6,_0xc33e25),_0x4b6037=new _0xb9f14f();for(const _0x16d5ce of _0x1cd0fe){const _0x2643dc={'type':'button','model':new to({'label':_0x16d5ce['name'],'class':_0x16d5ce['class'],'withText':!0x0,'role':'menuitem','_action':_0x16d5ce['action']})};_0x2643dc['model']['bind']('isEnabled')['to'](_0x1596e6,'isActionsDropdownOpen',_0xb1db4e=>'function'!=typeof _0x16d5ce['isEnabled']||(!_0xb1db4e||_0x16d5ce['isEnabled'](_0x1596e6))),_0x4b6037['add'](_0x2643dc);}return _0x4b6037;}(_0x294987,_0x6746cb);return _0x294987['bind']('isActionsDropdownOpen')['to'](_0x1bfc9d,'isOpen'),_0x1bfc9d['buttonView']['set']({'label':m(_0x539e33,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x749d18}),_0x1bfc9d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4124d2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4124d2['to'](_0x46c4c8=>_0x46c4c8['stopPropagation']())}}),_0x1bfc9d['on']('execute',_0x59d300=>{_0x294987['isReady']&&'function'==typeof _0x59d300['source']['_action']&&_0x59d300['source']['_action'](_0x294987);}),_0x3bfd43(_0x1bfc9d,_0x53f097,{'role':'menu'}),_0x1bfc9d['listenTo'](_0x294987,'change:isActionsDropdownOpen',(_0x308d2e,_0x236717,_0x569c83)=>{if(_0x569c83)for(const _0x22f23c of _0x1bfc9d['listView']['items']){const _0x15c1bc=_0x22f23c['children']['first'],_0x19dfa7=_0x6746cb['find'](_0x52f66d=>_0x52f66d['action']===_0x15c1bc['_action'])['isVisible'];_0x22f23c['isVisible']=void 0x0===_0x19dfa7||_0x19dfa7(_0x294987);}}),_0x1bfc9d;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x4bd5c9(_0x2f41d6){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x15a2b1,_0x3d5db8,_0xfb7ae6,_0x3b1d49){super(_0x15a2b1);const _0xea3d46=this['bindTemplate'],_0x52b1d2=function(_0x432759,_0x102809){const _0x2e6315=Array['from'](_0x102809['authors'])['filter'](_0x318fc6=>_0x318fc6!=_0x102809['creator']);return _0x102809['creator']&&_0x2e6315['unshift'](_0x102809['creator']),_0x2e6315['map'](_0x40e1a4=>new ni(_0x432759,_0x40e1a4,_0x40e1a4==_0x102809['creator']));}(_0x15a2b1,_0x3d5db8);this['id']=_0x3d5db8['id'],this['_revision']=_0x3d5db8,this['_requireRevisionName']=_0x3b1d49,this['bind']('name','createdAt')['to'](_0x3d5db8),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5e3b98=>{return _0x437c4f=_0x15a2b1['uiLanguage'],(_0x26be48=_0x5e3b98)['toLocaleDateString'](_0x437c4f,{'month':'long','day':'numeric'})+',\x20'+_0x26be48['toLocaleTimeString'](_0x437c4f,{'hour':'numeric','minute':'numeric'});var _0x437c4f,_0x26be48;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x15a2b1,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x49e8f1=>_0x49e8f1||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x59bff1,_0x3249ed)=>_0x59bff1&&_0x3249ed),this['revisionActionsView']=_0xfb7ae6&&_0xfb7ae6['length']?ai(this,_0xfb7ae6):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xea3d46['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xea3d46['if']('isEnabled','ck-disabled',_0x4fca36=>!_0x4fca36),_0xea3d46['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xea3d46['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xea3d46['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':_0xea3d46['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':_0x52b1d2}]},this['revisionActionsView']],'on':{'click':_0xea3d46['to'](_0x1c30c0=>{_0x1c30c0['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3ffdc1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3ffdc1,'change',()=>{this['_requireRevisionName']&&!_0x3ffdc1['value']||this['fire']('setName',{'id':this['id'],'name':_0x3ffdc1['value']}),_0x3ffdc1['value']||(_0x3ffdc1['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x12d668,_0x48d37c){const _0x5c80f8=_0x506ceb['fromJSDate'](_0x12d668)['setLocale'](_0x48d37c),_0x18eb5d=_0x506ceb['local'](),_0x2fe9e7=_0x18eb5d['minus']({'days':0x1})['startOf']('day');let _0x7c6c54,_0x3c476b;return _0x5c80f8['hasSame'](_0x18eb5d,'day')?(_0x7c6c54=_0x5c80f8['startOf']('day')['toJSDate'](),_0x3c476b=_0x5c80f8['toRelativeCalendar']()):_0x5c80f8['hasSame'](_0x2fe9e7,'day')?(_0x7c6c54=_0x2fe9e7['toJSDate'](),_0x3c476b=_0x5c80f8['toRelativeCalendar']()):_0x5c80f8['hasSame'](_0x18eb5d,'week')?(_0x7c6c54=_0x5c80f8['startOf']('week')['toJSDate'](),_0x3c476b=_0x5c80f8['weekdayLong']||''):_0x5c80f8['hasSame'](_0x18eb5d,'year')?(_0x7c6c54=_0x5c80f8['startOf']('month')['toJSDate'](),_0x3c476b=_0x5c80f8['monthLong']||''):(_0x7c6c54=_0x5c80f8['startOf']('year')['toJSDate'](),_0x3c476b=String(_0x5c80f8['year'])),{'startDate':_0x7c6c54,'localizedPeriodName':_0x3c476b};}class bi extends _0x2f41d6{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x488b06,_0x3e6d49,_0x4ee806,_0x3e8aef){super(_0x488b06);const _0x405cbf=li(_0x3e6d49,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3e6d49,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4ee806,this['_requireRevisionName']=_0x3e8aef,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':_0x405cbf}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3001b5){const _0x415127=new _i(this['locale'],_0x3001b5,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x415127);}['removeRevision'](_0x2e902b){const _0x33eaa6=this['revisionViews']['find'](_0x4b942c=>_0x4b942c['id']===_0x2e902b['id']);this['revisionViews']['remove'](_0x33eaa6);}}class fi extends _0x2f41d6{constructor(_0x196533){super(_0x196533);const _0x3e5276=new _0x5d5bfc();_0x3e5276['content']=_0x1e8d69,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3e5276,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x196533,'Revision\x20history')]}]});}}class di extends _0x2f41d6{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x599d9a,_0x22b7ac,_0x4d6a85,_0x34cbd7){super(_0x599d9a);const _0x5af4ff=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x22b7ac,this['_revisionActions']=_0x4d6a85,this['_requireRevisionName']=_0x34cbd7,this['on']('select',(_0x2d3124,_0x34d978)=>{this['fire']('revisionSelected',_0x34d978);}),this['on']('setName',(_0x10e428,_0x1b2512)=>{this['fire']('revisionSetName',_0x1b2512);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x599d9a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5af4ff['if']('isEnabled','ck-disabled',_0x4c541a=>!_0x4c541a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x49955b of this['_revisions'])this['_addRevision'](_0x49955b);this['_revisions']['on']('add',(_0x13dcb0,_0x31f436)=>{this['_addRevision'](_0x31f436);}),this['_revisions']['on']('remove',(_0x2e5fa9,_0x5ab5aa)=>{this['_removeRevision'](_0x5ab5aa);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1d32fe=>_0x1d32fe['revisionViews']['map'](_0x1c6952=>_0x1c6952))['flat']();}['selectRevision'](_0x4ed978){for(const _0x21d41c of this['revisionViews'])_0x4ed978&&_0x4ed978['id']===_0x21d41c['id']?_0x21d41c['select']():_0x21d41c['deselect']();}['highlightRevisions'](_0x388856){for(const _0x106b31 of this['revisionViews'])_0x388856['some'](({id:_0x892366})=>_0x892366===_0x106b31['id'])?_0x106b31['highlight']():_0x106b31['unhighlight']();}['_addRevision'](_0x2522dd){const _0xa5cfdc=li(_0x2522dd['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x19afc4=this['timePeriodViews']['get'](0x0);_0x19afc4&&_0x19afc4['startDate']['getTime']()===_0xa5cfdc['getTime']()||(_0x19afc4=new bi(this['locale'],_0xa5cfdc,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x19afc4)),_0x19afc4['addRevision'](_0x2522dd);}['_removeRevision'](_0x1639e4){const _0xf66064=li(_0x1639e4['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xf66064)['removeRevision'](_0x1639e4);}['_getTimePeriodViewByStartDate'](_0x31425d){return this['timePeriodViews']['find'](_0x43b150=>_0x43b150['startDate']['getTime']()===_0x31425d['getTime']());}}class d extends _0x694cb{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(
|
|
30
|
-
_0x15b0bc(_0x10091e){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x367e13,_0x6f5ad6){super(_0x6f5ad6),this['sourceElement']=_0x367e13,this['model']['document']['createRoot']();const _0x4fb05f=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4fb05f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x32f6de,_0x447374){const _0x2b281a=new this(_0x32f6de,_0x447374);return await _0x2b281a['initPlugins'](),await _0x2b281a['ui']['init'](_0x32f6de),await _0x2b281a['data']['init'](_0x2b281a['config']['get']('initialData')||''),_0x2b281a['fire']('ready'),_0x2b281a;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0xf4a8c2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9d4141){function _0x214e68(_0x10285c){return _0x10285c['map'](_0x438247=>String['fromCharCode'](_0x438247))['join']('');}super(_0x9d4141),this['result']='end',_0x9d4141[_0x214e68([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x214e68([0x76,0x69,0x65,0x77])][_0x214e68([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x214e68([0x61,0x75,0x74,0x6f]),_0x9d4141[_0x214e68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x214e68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x214e68([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x214e68([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x214e68([0x6f,0x6b])});}}class ct extends _0xf4a8c2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x1b17d1){if(super(_0x1b17d1),!this['editor']['config']['get']('revisionHistory'))throw new _0x3aa039('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x32fc2c=>this['_showRevisionViewer']({..._0x32fc2c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xc38181=>this['_closeRevisionViewer'](_0xc38181)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xaa4ec2=>this['_restoreRevision'](_0xaa4ec2)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x555f79){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x555f79;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x65125a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x65125a);}['getRevision'](_0x340bae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x340bae);}['getRevisions'](_0x19d6a0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x19d6a0||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x332ef1=this['editor'],_0x37db2a=_0x3f540c(_0x332ef1,p),_0x2a615a=_0x332ef1['plugins']['get']('RevisionTracker'),_0x2308d8=_0x332ef1['plugins']['get']('Users')['users'];return _0x37db2a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x37db2a['lazyRoots'],(_0x37db2a['plugins']['push'](ht,u,v,class extends _0xf4a8c2{static get['requires'](){return[u,'Users'];}['init'](){const _0x20ef4f=this['editor']['plugins']['get']('Users');for(const _0x575bfb of _0x2308d8)_0x575bfb['isAnonymous']||_0x20ef4f['getUser'](_0x575bfb['id'])||_0x20ef4f['addUser'](_0x575bfb);const _0x294841=_0x2a615a['repository']['getRevisions']();let _0x21cb72=null;const _0x62a1e6=this['editor']['plugins']['get']('RevisionViewer');_0x62a1e6['adapter']=_0x2a615a['adapter'],_0x62a1e6['bind']('isEnabled')['to'](_0x2a615a),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x332ef1,'isReadOnly',_0x5c998b=>!_0x5c998b);for(const _0x4a6cbc of _0x294841){const _0x266f81=null===_0x4a6cbc['creator'];if(_0x266f81&&_0x4a6cbc['toVersion']===_0x4a6cbc['fromVersion'])continue;const _0x2a6c9b=_0x4a6cbc['toJSON']();_0x62a1e6['addRevisionData'](_0x2a6c9b,(_0x47df9f,_0x1649a9,_0x469f59)=>{if(_0x266f81){if(_0x21cb72)_0x21cb72['_update'](_0x47df9f,_0x1649a9);else{if(!_0x1649a9){const _0x3d5277=_0x469f59['toJSON']();_0x3d5277['id']=_0x422cf0(),_0x2a615a['saveRevision'](_0x3d5277,_0x469f59['toVersion'])['then'](_0x3517e4=>{_0x21cb72=_0x3517e4;});}}}else _0x4a6cbc['_update'](_0x47df9f,_0x1649a9);});}}},d),_0x37db2a);}['_enhanceShowRevisionViewerCallback'](){const _0x1de7bf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2c3859=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x112193=this['editor']['plugins']['get']('Autosave');await _0x112193['save']();}else await _0x2c3859['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x42fc54=this['editor']['plugins']['get']('Dialog');_0x42fc54['isOpen']&&_0x42fc54['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x14dba0=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x175fd0 of _0x14dba0)_0x175fd0['class']=_0x175fd0['class']?_0x175fd0['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x4b4964=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x4b4964&&_0x4b4964['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x5ec9b2=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x5ec9b2&&_0x5ec9b2['setAttribute']('tabindex','-1');}}const _0x5eb53a=this['_getRevisionViewerEditorConfig']();return _0x1de7bf(_0x5eb53a)['then'](_0xdbc3a7=>{return(this['_viewerEditor']=_0xdbc3a7,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'),_0xdbc3a7);})['catch'](_0x11d62c=>(console['error'](_0x11d62c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x59374a=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x54c471=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x4db149 of _0x54c471)_0x4db149['class']='ck-tab-panel_disabled'===_0x4db149['class']?'':_0x4db149['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x4a65f4=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x4a65f4&&_0x4a65f4['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x126efc=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x126efc&&_0x126efc['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x59374a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x6c1c96=this['editor']['plugins']['get']('Annotations');_0x6c1c96['refreshVisibility'](),_0x6c1c96['refreshPositioning']();}});});}['_showRevisionViewer'](_0x4148c3){const _0x4e0847=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1a9851=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x32e335=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x32e335,_0x4148c3)['then'](_0x461377=>(_0x1a9851['style']['display']='block',_0x4e0847['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x461377));}['_closeRevisionViewer'](_0x17a32f){const _0x4e721a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4e721a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x17a32f['destroy']();}async['_restoreRevision'](_0x54f3){const _0x314fe9=this['editor'],_0x82f992=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x40257b=_0x314fe9['plugins']['get']('RevisionTracker'),_0x4ed76c=_0x314fe9['plugins']['get']('RevisionHistoryUtils'),_0x260a6f=_0x82f992['repository']['getRevision'](_0x54f3);let _0x3858f0,_0x5201a5,_0xa2614c;try{await _0x4ed76c['loadRevisionData'](_0x260a6f,this['adapter']),_0x3858f0=_0x4ed76c['getRevisionDocumentData'](_0x260a6f),_0x5201a5=_0x4ed76c['getRevisionRootsAttributes'](_0x260a6f);}catch(_0x36b50c){return void console['error'](_0x36b50c);}_0x314fe9['model']['change'](_0x40d2de=>{for(const _0x5a448b of Array['from'](_0x314fe9['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x40d2de['removeMarker'](_0x5a448b);}),_0x82f992['isReady']=!0x1,_0x314fe9['model']['enqueueChange'](_0x242be9=>{_0x242be9['setSelection'](null),_0x242be9['removeSelectionAttribute'](_0x314fe9['model']['document']['selection']['getAttributeKeys']());const _0x313b69=Object['keys'](_0x3858f0);for(const _0xc5e73b of _0x314fe9['model']['document']['roots'])'$graveyard'!=_0xc5e73b['rootName']&&_0xc5e73b['isAttached']()&&!_0x313b69['includes'](_0xc5e73b['rootName'])&&_0x242be9['detachRoot'](_0xc5e73b);for(const _0xef000c of _0x313b69){let _0x3d370b=_0x314fe9['model']['document']['getRoot'](_0xef000c);_0x3d370b&&_0x3d370b['isAttached']()||(_0x3d370b=_0x242be9['addRoot'](_0xef000c));const _0x55bdcd=_0x5201a5[_0xef000c],_0x3fd45f=Object['keys'](_0x55bdcd),_0x43e89c=_0x3858f0[_0xef000c];for(const _0x1d9d01 of _0x3d370b['getAttributeKeys']())_0x3fd45f['includes'](_0x1d9d01)||_0x242be9['removeAttribute'](_0x1d9d01,_0x3d370b);for(const _0x36f3c9 of _0x3fd45f)_0x242be9['setAttribute'](_0x36f3c9,_0x5201a5[_0xef000c][_0x36f3c9],_0x3d370b);_0x242be9['remove'](_0x242be9['createRangeIn'](_0x3d370b)),_0x242be9['insert'](_0x314fe9['data']['parse'](_0x43e89c,_0x3d370b),_0x3d370b,0x0);}});const _0x6d0581=m(_0x314fe9['locale'],'Restored');if(_0x260a6f['name'])_0xa2614c=-0x1==_0x260a6f['name']['indexOf'](_0x6d0581)?_0x6d0581+':\x20'+_0x260a6f['name']:_0x260a6f['name'];else _0xa2614c=_0x6d0581+':\x20'+(_0x260a6f['createdAt']['toLocaleDateString'](_0x314fe9['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x260a6f['createdAt']['toLocaleTimeString'](_0x314fe9['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x40257b['saveRevision']({'name':_0xa2614c}),_0x82f992['isReady']=!0x0,_0x314fe9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x520bd1){super(_0x520bd1),this['_revisionViewer']=_0x520bd1['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x34d787=this['_revisionsRepository']['_revisions'],_0x14d04b=this['_createRevisionActions'](),_0xbdf54d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x34d787,_0x14d04b,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',(_0x240600,_0x4e17f2)=>{_0x4e17f2['revisionViews']['on']('add',(_0x1c689d,_0x2eac95)=>{_0x2eac95['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)),_0xbdf54d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x51b81f=this['_revisionsRepository']['getRevision'](0x0);if(_0x51b81f){const _0x69e1dc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x51b81f['id']);this['_revisionViewer']['compare'](_0x51b81f,_0x69e1dc);}}['_handleRevisionSelected'](_0xfd7ad5,_0x371479){const _0x552846=this['_revisionsRepository']['getRevision'](_0x371479['id']),_0x410478=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x552846['id']);this['_revisionViewer']['compare'](_0x552846,_0x410478);}['_handleRevisionSetName'](_0x3c9885,_0x5ce367){this['_revisionsRepository']['getRevision'](_0x5ce367['id'])['setName'](_0x5ce367['name']);}['_handleDiffChange'](_0x43f250,_0x15c3bf,_0x12c210){const _0x2d6afd=this['_revisionsRepository']['getRevisionsInDiff'](_0x12c210);_0x2d6afd['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2d6afd),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2d6afd[0x0]));}['_createRevisionActions'](){const _0x3a41c3=this['editor'],_0x37e17f=d['availableRevisionActions'],_0x45b9f6=_0x3a41c3['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x45b9f6['length'])return _0x45b9f6['map'](_0x1b7989=>{const _0x1c4d6a='string'==typeof _0x1b7989?Object['assign']({},_0x37e17f[_0x1b7989]):_0x1b7989;return _0x1c4d6a['action']=_0x1c4d6a['action']['bind'](this,_0x3a41c3),_0x1c4d6a['isVisible']&&(_0x1c4d6a['isVisible']=_0x1c4d6a['isVisible']['bind'](this,_0x3a41c3)),_0x1c4d6a;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5ac488},_0x3642f6)=>{const _0x855dad=_0x5ac488['get'](u),_0x5568ac=_0x855dad['repository'];let _0x443d13=_0x855dad['diff']['newRevisionId'],_0x17c515=_0x3642f6['id'];_0x5568ac['getIndex'](_0x443d13)>_0x5568ac['getIndex'](_0x17c515)&&([_0x443d13,_0x17c515]=[_0x17c515,_0x443d13]),_0x855dad['compare'](_0x443d13,_0x17c515);},'isVisible':({plugins:_0x1a9ace},_0x4ce08a)=>{const _0x44fd15=_0x1a9ace['get'](u);return!(_0x44fd15['repository']['getRevisionsInDiff'](_0x44fd15['diff'])['length']>0x2)&&!_0x4ce08a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x35598f,{id:_0x16d604})=>{_0x35598f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x16d604);},'isVisible':({plugins:_0x28834c},_0x1ac5bb)=>!!_0x28834c['get'](u)['repository']['getLaterVisibleRevision'](_0x1ac5bb['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x45d680},{id:_0x31b57c,revisionNameView:_0xbe939d})=>{const _0x1fa845=_0x45d680['get'](u),_0x3d8f45=_0x1fa845['repository']['getEarlierVisibleRevision'](_0x31b57c);_0x1fa845['compare'](_0x31b57c,_0x3d8f45),_0xbe939d['focus'](),_0xbe939d['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x47ecae,_0x52a740){super(_0x47ecae),this['_view']=_0x52a740,this['_toolbarConfig']=st(_0x47ecae['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x557fc8){const _0x7e7654=this['editor'],_0x1c2f2a=this['view'],_0x38e9ab=_0x7e7654['editing']['view'],_0x5a2292=_0x1c2f2a['editable'],_0xe2cd9a=_0x38e9ab['document']['getRoot']();_0x5a2292['name']=_0xe2cd9a['rootName'],_0x1c2f2a['render']();const _0x1aaf9f=_0x5a2292['element'];this['setEditableElement'](_0x5a2292['name'],_0x1aaf9f),_0x1c2f2a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x38e9ab['attachDomRoot'](_0x1aaf9f),this['_elementReplacer']['replace'](_0x557fc8,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x276ec5=this['view'],_0x2ba717=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2ba717['detachDomRoot'](_0x276ec5['editable']['name']),_0x276ec5['destroy']();}['_initToolbar'](){const _0x2318b0=this['view'];_0x2318b0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2318b0['stickyPanel']['limiterElement']=_0x2318b0['element'],_0x2318b0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x275000})=>_0x275000),_0x2318b0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2318b0['toolbar']);}}class ii extends _0xb22772{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x40e8b7,_0xbb83c6,_0x3b0e04={}){super(_0x40e8b7),this['stickyPanel']=new _0x36fc62(_0x40e8b7),this['toolbar']=new _0x4c68be(_0x40e8b7,{'shouldGroupWhenFull':_0x3b0e04['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x40e8b7,_0xbb83c6);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x241a35(_0xeea441){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x308c6a,_0x447dd5){super(_0x447dd5),this['sourceElement']=_0x308c6a,this['model']['document']['createRoot']();const _0x364f5d=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x364f5d);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xede94b,_0x248442){const _0x363c11=new this(_0xede94b,_0x248442);return await _0x363c11['initPlugins'](),await _0x363c11['ui']['init'](_0xede94b),await _0x363c11['data']['init'](_0x363c11['config']['get']('initialData')||''),_0x363c11['fire']('ready'),_0x363c11;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x694cb{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x221df9){function _0x1e2261(_0x48fc96){return _0x48fc96['map'](_0x50ba0b=>String['fromCharCode'](_0x50ba0b))['join']('');}super(_0x221df9),this['result']='end',_0x221df9[_0x1e2261([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e2261([0x76,0x69,0x65,0x77])][_0x1e2261([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e2261([0x61,0x75,0x74,0x6f]),_0x221df9[_0x1e2261([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1e2261([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e2261([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1e2261([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1e2261([0x6f,0x6b])});}}class ct extends _0x694cb{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x1751a0){if(super(_0x1751a0),!this['editor']['config']['get']('revisionHistory'))throw new _0x2d4ef5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x183bdb=>this['_showRevisionViewer']({..._0x183bdb,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5c91ce=>this['_closeRevisionViewer'](_0x5c91ce)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x44f1e2=>this['_restoreRevision'](_0x44f1e2)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5cfcc9){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5cfcc9;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x51dad6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x51dad6);}['getRevision'](_0x164665){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x164665);}['getRevisions'](_0x5efd66){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5efd66||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x236cf3=this['editor'],_0xd0ebef=_0x2802f6(_0x236cf3,p),_0x47c9a0=_0x236cf3['plugins']['get']('RevisionTracker'),_0x4369c4=_0x236cf3['plugins']['get']('Users')['users'];return _0xd0ebef['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xd0ebef['lazyRoots'],(_0xd0ebef['plugins']['push'](ht,u,v,class extends _0x694cb{static get['requires'](){return[u,'Users'];}['init'](){const _0x4b9262=this['editor']['plugins']['get']('Users');for(const _0x433aed of _0x4369c4)_0x433aed['isAnonymous']||_0x4b9262['getUser'](_0x433aed['id'])||_0x4b9262['addUser'](_0x433aed);const _0x24a0e5=_0x47c9a0['repository']['getRevisions']();let _0x41ec9b=null;const _0x49304a=this['editor']['plugins']['get']('RevisionViewer');_0x49304a['adapter']=_0x47c9a0['adapter'],_0x49304a['bind']('isEnabled')['to'](_0x47c9a0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x236cf3,'isReadOnly',_0x24e9bd=>!_0x24e9bd);for(const _0x3a068a of _0x24a0e5){const _0x5ce422=null===_0x3a068a['creator'];if(_0x5ce422&&_0x3a068a['toVersion']===_0x3a068a['fromVersion'])continue;const _0x1c2b45=_0x3a068a['toJSON']();_0x49304a['addRevisionData'](_0x1c2b45,(_0x259ec6,_0x22c63e,_0x36cdef)=>{if(_0x5ce422){if(_0x41ec9b)_0x41ec9b['_update'](_0x259ec6,_0x22c63e);else{if(!_0x22c63e){const _0x5ea2b8=_0x36cdef['toJSON']();_0x5ea2b8['id']=_0x32fb3d(),_0x47c9a0['saveRevision'](_0x5ea2b8,_0x36cdef['toVersion'])['then'](_0x5c32be=>{_0x41ec9b=_0x5c32be;});}}}else _0x3a068a['_update'](_0x259ec6,_0x22c63e);});}}},d),_0xd0ebef);}['_enhanceShowRevisionViewerCallback'](){const _0x4ee7cf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x304691=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4aa5a2=this['editor']['plugins']['get']('Autosave');await _0x4aa5a2['save']();}else await _0x304691['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x361c90=this['editor']['plugins']['get']('Dialog');_0x361c90['isOpen']&&_0x361c90['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x414b9b=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x12c835 of _0x414b9b)_0x12c835['class']=_0x12c835['class']?_0x12c835['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x41903a=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x41903a&&_0x41903a['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x2d333c=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x2d333c&&_0x2d333c['setAttribute']('tabindex','-1');}}const _0x1c8af2=this['_getRevisionViewerEditorConfig']();return _0x4ee7cf(_0x1c8af2)['then'](_0x5e306c=>{return(this['_viewerEditor']=_0x5e306c,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'),_0x5e306c);})['catch'](_0x5cc4b1=>(console['error'](_0x5cc4b1),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xaae919=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x355f00=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x12fe89 of _0x355f00)_0x12fe89['class']='ck-tab-panel_disabled'===_0x12fe89['class']?'':_0x12fe89['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x43b414=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x43b414&&_0x43b414['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x53ec5a=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x53ec5a&&_0x53ec5a['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xaae919(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2103f0=this['editor']['plugins']['get']('Annotations');_0x2103f0['refreshVisibility'](),_0x2103f0['refreshPositioning']();}});});}['_showRevisionViewer'](_0x2f5899){const _0x584fb2=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5e8c55=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1fdde9=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x1fdde9,_0x2f5899)['then'](_0x18404f=>(_0x5e8c55['style']['display']='block',_0x584fb2['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x18404f));}['_closeRevisionViewer'](_0x4a5829){const _0x427b68=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x427b68['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4a5829['destroy']();}async['_restoreRevision'](_0x4a21a4){const _0x3506df=this['editor'],_0x97ccaf=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2c90f4=_0x3506df['plugins']['get']('RevisionTracker'),_0x14f350=_0x3506df['plugins']['get']('RevisionHistoryUtils'),_0x4967d2=_0x97ccaf['repository']['getRevision'](_0x4a21a4);let _0x5552af,_0x2b31ff,_0x433980;try{await _0x14f350['loadRevisionData'](_0x4967d2,this['adapter']),_0x5552af=_0x14f350['getRevisionDocumentData'](_0x4967d2),_0x2b31ff=_0x14f350['getRevisionRootsAttributes'](_0x4967d2);}catch(_0x5b8cdd){return void console['error'](_0x5b8cdd);}_0x3506df['model']['change'](_0x307f46=>{for(const _0x5d23a9 of Array['from'](_0x3506df['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x307f46['removeMarker'](_0x5d23a9);}),_0x97ccaf['isReady']=!0x1,_0x3506df['model']['enqueueChange'](_0x5f3a7b=>{_0x5f3a7b['setSelection'](null),_0x5f3a7b['removeSelectionAttribute'](_0x3506df['model']['document']['selection']['getAttributeKeys']());const _0x54f9b7=Object['keys'](_0x5552af);for(const _0x470611 of _0x3506df['model']['document']['roots'])'$graveyard'!=_0x470611['rootName']&&_0x470611['isAttached']()&&!_0x54f9b7['includes'](_0x470611['rootName'])&&_0x5f3a7b['detachRoot'](_0x470611);for(const _0x30c27b of _0x54f9b7){let _0x2f2a81=_0x3506df['model']['document']['getRoot'](_0x30c27b);_0x2f2a81&&_0x2f2a81['isAttached']()||(_0x2f2a81=_0x5f3a7b['addRoot'](_0x30c27b));const _0x1a3783=_0x2b31ff[_0x30c27b],_0x2bb7fb=Object['keys'](_0x1a3783),_0x3d70dc=_0x5552af[_0x30c27b];for(const _0x368b49 of _0x2f2a81['getAttributeKeys']())_0x2bb7fb['includes'](_0x368b49)||_0x5f3a7b['removeAttribute'](_0x368b49,_0x2f2a81);for(const _0x432a4b of _0x2bb7fb)_0x5f3a7b['setAttribute'](_0x432a4b,_0x2b31ff[_0x30c27b][_0x432a4b],_0x2f2a81);_0x5f3a7b['remove'](_0x5f3a7b['createRangeIn'](_0x2f2a81)),_0x5f3a7b['insert'](_0x3506df['data']['parse'](_0x3d70dc,_0x2f2a81),_0x2f2a81,0x0);}});const _0x3f8791=m(_0x3506df['locale'],'Restored');if(_0x4967d2['name'])_0x433980=-0x1==_0x4967d2['name']['indexOf'](_0x3f8791)?_0x3f8791+':\x20'+_0x4967d2['name']:_0x4967d2['name'];else _0x433980=_0x3f8791+':\x20'+(_0x4967d2['createdAt']['toLocaleDateString'](_0x3506df['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4967d2['createdAt']['toLocaleTimeString'](_0x3506df['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2c90f4['saveRevision']({'name':_0x433980}),_0x97ccaf['isReady']=!0x0,_0x3506df['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|