@ckeditor/ckeditor5-revision-history 47.4.0 → 47.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/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 _0x31b636,uid as _0x3b18bf,Collection as _0x2be9e4,logWarning as _0x553d19,FocusTracker as _0x5166bf,KeystrokeHandler as _0xc25723,scrollViewportToShowTarget as _0x22e24a,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x4ae15c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1318b9,set as _0x28d3f7,unset as _0x203e73,isEqual as _0x42361d}from'es-toolkit/compat';import{Plugin as _0x460205,PendingActions as _0x21b7d5,Command as _0x49200a,ElementApiMixin as _0x5ca314,Editor as _0xcc8484}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x437785,getMarkerDomElement as _0x12cf46,ConfirmMixin as _0x26b2fd,sanitizeEditorConfig as _0x1d3f9f}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x6b6d84,ViewAttributeElement as _0xf33d81,ViewEmptyElement as _0x4579d9,ViewRawElement as _0x507579,ViewUIElement as _0xf2c865,ViewDocumentFragment as _0x4f781a,ViewText as _0x1af8c0,ViewElement as _0x43d538,ModelElement as _0x10eef6,ModelRange as _0x2e34c5,ModelPosition as _0x178c47,ModelDocumentFragment as _0x1af8e3,ModelText as _0xb02ee8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x20669c,IconChevronUp as _0x5ea3b4,IconChevronDown as _0x5205e2,IconUndo as _0x4e6330,IconUser as _0x438e33,IconThreeVerticalDots as _0x3dac6a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0xc2cfc7,View as _0x2046bb,submitHandler as _0x5e784e,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x25c92f,ListView as _0xb16cae,ListItemView as _0x10cdef,ButtonView as _0x2f12ca,MenuBarMenuView as _0x18c5dc,MenuBarMenuListView as _0x37ec2,MenuBarMenuListItemView as _0x3f38dc,MenuBarMenuListItemButtonView as _0x69a376,ContextualBalloon as _0x5f030d,ToolbarSeparatorView as _0x9c8625,IconView as _0x2d02b5,addListToDropdown as _0x1bbcfb,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x727467,StickyPanelView as _0x3877f9,ToolbarView as _0x10d76a,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4fb9a7}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x31b636(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1b783e){super(),this['id']=_0x1b783e['id']||_0x3b18bf(),this['creator']=_0x1b783e['creator']||null,this['authors']=_0x1b783e['authors']||[],this['diffData']=_0x1b783e['diffData']||null,this['toVersion']=_0x1b783e['toVersion']||0x0,this['fromVersion']=_0x1b783e['fromVersion']||0x0,this['set']('name',_0x1b783e['name']||''),this['set']('createdAt',_0x1b783e['createdAt']||new Date()),this['set']('attributes',_0x1b783e['attributes']||{});}['setName'](_0x487221){this['_update']({'name':_0x487221});}['setAttribute'](_0x107bf1,_0x3b74b9){const _0x2f4362=_0x1318b9(this['attributes']);_0x28d3f7(_0x2f4362,_0x107bf1,_0x3b74b9),this['_update']({'attributes':_0x2f4362});}['removeAttribute'](_0xda0044){const _0x175703=_0x1318b9(this['attributes']);_0x203e73(_0x175703,_0xda0044),this['_update']({'attributes':_0x175703});}['_update'](_0xa2c747,_0x202656=!0x1){let _0x404588=!0x1;const _0xb926bf={'id':this['id']},_0x199b8b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5acd63 of _0x199b8b){const _0x59ca4=_0xa2c747[_0x5acd63];void 0x0!==_0x59ca4&&_0x59ca4!==this[_0x5acd63]&&(this[_0x5acd63]=_0x59ca4,_0xb926bf[_0x5acd63]=_0x59ca4,_0x404588=!0x0);}_0x404588&&(_0xb926bf['authors']&&(_0xb926bf['authorsIds']=_0xb926bf['authors']['map'](_0x132344=>_0x132344['id']),delete _0xb926bf['authors']),this['fire']('_update',_0xb926bf,_0x202656));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1483f0=>_0x1483f0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x460205{['_revisions'];static get['requires'](){return[_0x437785];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4fb9b3){super(_0x4fb9b3),this['_revisions']=new _0x2be9e4();}['afterInit'](){!async function(_0xdc24ae){const _0x240031=_0x23e773([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]),_0x525855=0xeb829,_0x24feea=0x359e09b0,_0x1c1f24=0x35998970^_0x24feea,_0x7d97f8=window[_0x23e773([0x44,0x61,0x74,0x65])][_0x23e773([0x6e,0x6f,0x77])](),_0x5a95a5=_0xdc24ae[_0x23e773([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f39f2=new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x463c71=>{_0x5a95a5[_0x23e773([0x6f,0x6e,0x63,0x65])](_0x23e773([0x72,0x65,0x61,0x64,0x79]),_0x463c71);}),_0x1be04e={[_0x23e773([0x6b,0x74,0x79])]:_0x23e773([0x45,0x43]),[_0x23e773([0x75,0x73,0x65])]:_0x23e773([0x73,0x69,0x67]),[_0x23e773([0x63,0x72,0x76])]:_0x23e773([0x50,0x2d,0x32,0x35,0x36]),[_0x23e773([0x78])]:_0x23e773([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]),[_0x23e773([0x79])]:_0x23e773([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]),[_0x23e773([0x61,0x6c,0x67])]:_0x23e773([0x45,0x53,0x32,0x35,0x36])},_0x36e515=_0x5a95a5[_0x23e773([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23e773([0x67,0x65,0x74])](_0x23e773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f011d(){let _0x14c480,_0x5c4b0e=null,_0x5c7e03=null;try{if(_0x36e515==_0x23e773([0x47,0x50,0x4c]))return _0x23e773([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14c480=_0x3b91c4(),!_0x14c480)return _0x23e773([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14c480[_0x23e773([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c7e03=_0x366791(_0x14c480[_0x23e773([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14c480[_0x23e773([0x6a,0x74,0x69])])),await _0x27dad5()?_0x17bf2d()?_0x5f44f0()?_0x23e773([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44e70e()?(_0x14c480[_0x23e773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23e773([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c4b0e=_0x55f36f(_0x23e773([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b5969()):_0x23e773([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23e773([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23e773([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23e773([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f44f0(){const _0x5c6248=[_0x23e773([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23e773([0x74,0x72,0x69,0x61,0x6c])][_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14c480[_0x23e773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7d97f8/0x3e8:0xe10*_0x1c1f24;return _0x14c480[_0x23e773([0x65,0x78,0x70])]<_0x5c6248;}function _0x17bf2d(){const _0x585004=_0x14c480[_0x23e773([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x585004)return!0x1;if(_0x585004[_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e773([0x2a])))return!0x0;if(_0x585004[_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e773([0x52,0x48])))return!0x0;if(_0x585004[_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e773([0x52,0x52,0x48]))){if(_0x549cf8())return!0x0;if(_0x3e912f()||_0x1e29d5())return!0x0;}return!0x1;}function _0x44e70e(){const _0x3c2d1f=_0x14c480[_0x23e773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c2d1f||0x0==_0x3c2d1f[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x360de1}=new URL(window[_0x23e773([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c2d1f[_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x360de1))return!0x0;const _0x239b4d=_0x360de1[_0x23e773([0x73,0x70,0x6c,0x69,0x74])](_0x23e773([0x2e]));return _0x3c2d1f[_0x23e773([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13014c=>_0x13014c[_0x23e773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23e773([0x2a])))[_0x23e773([0x6d,0x61,0x70])](_0x9e697d=>_0x9e697d[_0x23e773([0x73,0x70,0x6c,0x69,0x74])](_0x23e773([0x2e])))[_0x23e773([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16af00=>_0x16af00[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x239b4d[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23e773([0x6d,0x61,0x70])](_0x5d0cc9=>Array(_0x239b4d[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d0cc9[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23e773([0x66,0x69,0x6c,0x6c])](_0x5d0cc9[0x0]===_0x23e773([0x2a])?_0x23e773([0x2a]):'')[_0x23e773([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d0cc9))[_0x23e773([0x73,0x6f,0x6d,0x65])](_0x15d00c=>_0x239b4d[_0x23e773([0x65,0x76,0x65,0x72,0x79])]((_0x38dd2b,_0x51344a)=>_0x15d00c[_0x51344a]===_0x38dd2b||_0x15d00c[_0x51344a]===_0x23e773([0x2a])));}function _0x1b5969(){return _0x5c4b0e&&_0x5c7e03?new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d9a4f,_0x32c52b)=>{_0x5c4b0e[_0x23e773([0x74,0x68,0x65,0x6e])](_0x4d9a4f,_0x32c52b),_0x5c7e03[_0x23e773([0x74,0x68,0x65,0x6e])](_0x3c307e=>{_0x3c307e!=_0x23e773([0x56,0x61,0x6c,0x69,0x64])&&_0x4d9a4f(_0x3c307e);},_0x32c52b);}):_0x5c4b0e||_0x5c7e03||_0x23e773([0x56,0x61,0x6c,0x69,0x64]);}}function _0x366791(_0x227480,_0x1d3651){return new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x341ca2=>{if(_0x5c0785())return _0x341ca2(_0x23e773([0x56,0x61,0x6c,0x69,0x64]));_0x28e6d1(),_0x5a95a5[_0x23e773([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23e773([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48afd6=!0x1;const _0x362e30=_0x3b18bf();function _0x5cf80e(_0x4c00ef){return!!_0x4c00ef&&(typeof _0x4c00ef===_0x23e773([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4c00ef===_0x23e773([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4c00ef[_0x23e773([0x74,0x68,0x65,0x6e])]===_0x23e773([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4c00ef[_0x23e773([0x63,0x61,0x74,0x63,0x68])]===_0x23e773([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5748b4(_0x218f2a){_0x26201(_0x218f2a)[_0x23e773([0x74,0x68,0x65,0x6e])](_0x3d3001=>{if(!_0x3d3001||_0x3d3001[_0x23e773([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23e773([0x6f,0x6b]))return _0x23e773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20f047(_0x5c8d5f(_0x362e30+_0x1d3651))!=_0x3d3001[_0x23e773([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23e773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23e773([0x56,0x61,0x6c,0x69,0x64]);})[_0x23e773([0x74,0x68,0x65,0x6e])](_0x184c04=>(_0x7e0ee(),_0x184c04),()=>{const _0x4887d1=_0x53ef41();return null==_0x4887d1?(_0x7e0ee(),_0x23e773([0x56,0x61,0x6c,0x69,0x64])):_0x23e773(_0x7d97f8-_0x4887d1>(0x11928db0^_0x24feea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23e773([0x74,0x68,0x65,0x6e])](_0x341ca2)[_0x23e773([0x63,0x61,0x74,0x63,0x68])](()=>{_0x341ca2(_0x23e773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5847e0=0x35a8e730^_0x24feea;function _0x7e0ee(){const _0x274dc2=_0x23e773([0x6c,0x6c,0x63,0x74,0x2d])+_0x20f047(_0x5c8d5f(_0x227480)),_0xd9be3b=_0x4cd042(_0x20f047(window[_0x23e773([0x4d,0x61,0x74,0x68])][_0x23e773([0x63,0x65,0x69,0x6c])](_0x7d97f8/_0x5847e0)));window[_0x23e773([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23e773([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x274dc2,_0xd9be3b);}function _0x53ef41(){const _0x986ef0=_0x23e773([0x6c,0x6c,0x63,0x74,0x2d])+_0x20f047(_0x5c8d5f(_0x227480)),_0x510728=window[_0x23e773([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23e773([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x986ef0);return _0x510728?window[_0x23e773([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd042(_0x510728),0x10)*_0x5847e0:null;}function _0x26201(_0x17ea30){return new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45bab6,_0x23638e)=>{_0x17ea30[_0x23e773([0x74,0x68,0x65,0x6e])](_0x45bab6,_0x23638e),window[_0x23e773([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23638e,0x359fdd70^_0x24feea);});}}_0x5a95a5[_0x23e773([0x6f,0x6e])](_0x23e773([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ae3a5,_0x498c9e)=>{if(_0x498c9e[0x0]!=_0x227480)return _0x341ca2(_0x23e773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x498c9e[0x1]={..._0x498c9e[0x1],[_0x23e773([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x362e30};},{[_0x23e773([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23e773([0x68,0x69,0x67,0x68])}),_0x5a95a5[_0x23e773([0x6f,0x6e])](_0x23e773([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2675d6=>{_0x5cf80e(_0x2675d6[_0x23e773([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48afd6=!0x0,_0x5748b4(_0x2675d6[_0x23e773([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23e773([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23e773([0x6c,0x6f,0x77])}),_0x1f39f2[_0x23e773([0x74,0x68,0x65,0x6e])](()=>{_0x48afd6||_0x341ca2(_0x23e773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c0785(){return _0x5a95a5[_0x23e773([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23e773([0x76,0x69,0x65,0x77])][_0x23e773([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23e773([0x61,0x75,0x74,0x6f]);}function _0x28e6d1(){_0x5a95a5[_0x23e773([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23e773([0x76,0x69,0x65,0x77])][_0x23e773([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23e773([0x61,0x75,0x74,0x6f]);}}function _0x55f36f(_0x5f0bff){const _0x4e28f6=[new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4133c4=>setTimeout(_0x4133c4,0x3597377c^_0x24feea)),_0x1f39f2[_0x23e773([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d0904=>{const _0x3fd884=0x359e09b7^_0x24feea,_0x47d651=_0xdc24ae[_0x23e773([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4f0a68(){_0x47d651[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3fd884&&_0x3d0904();}_0x4f0a68(),_0x47d651[_0x23e773([0x6f,0x6e])](_0x23e773([0x61,0x64,0x64]),_0x4f0a68);})),new window[(_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b55ec=>{function _0x4aef1f(){for(const _0x14b32e in window)if(window[_0x23e773([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x23e773([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x14b32e))&&window[_0x14b32e]==_0x525855)return _0x3b55ec();_0x5a95a5[_0x23e773([0x73,0x74,0x61,0x74,0x65])]!=_0x23e773([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x23e773([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4aef1f,0x359e1a38^_0x24feea);}_0x56b422(_0x23e773([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4aef1f();})];return window[_0x23e773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23e773([0x72,0x61,0x63,0x65])](_0x4e28f6)[_0x23e773([0x74,0x68,0x65,0x6e])](()=>_0x5f0bff);}async function _0x74881a(){if(await _0x1f39f2,_0x56b422(_0x23e773([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2bd398=_0xdc24ae[_0x23e773([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5257f1=_0xdc24ae[_0x23e773([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])](_0x2bd398[_0x23e773([0x69,0x64])]),_0x3be453=_0x14b1f7(_0x23e773([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3be453[_0x23e773([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2bd398['id'],_0x5257f1?_0x5257f1['id']:null,!0x0),_0x3be453[_0x23e773([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23e773([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3be453[_0x23e773([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3be453[_0x23e773([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x7c3fd1,void(_0x3be453[_0x23e773([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x7c3fd1);}if(_0x56b422(_0x23e773([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2b9bdc=_0x14b1f7(_0x23e773([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2b9bdc[_0x23e773([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23e773([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2b9bdc[_0x23e773([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2b9bdc[_0x23e773([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x7c3fd1,_0x2b9bdc[_0x23e773([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x7c3fd1;}_0x5a95a5[_0x23e773([0x6d,0x6f,0x64,0x65,0x6c])][_0x23e773([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7c3fd1,_0x5a95a5[_0x23e773([0x6d,0x6f,0x64,0x65,0x6c])][_0x23e773([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7c3fd1,_0x5a95a5[_0x23e773([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23e773([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x549cf8(){return _0x56b422(_0x23e773([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x14b1f7(_0x23e773([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x23e773([0x73,0x74,0x61,0x74,0x65])]==_0x23e773([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3e912f(){return _0x56b422(_0x23e773([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 _0x1e29d5(){return _0x56b422(_0x23e773([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3711bc(_0x4d7e50){const _0x32c25f=_0x2d0aa0();_0x5a95a5[_0x32c25f]=_0x23e773([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])+_0x4d7e50,_0x4d7e50[_0x23e773([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x23e773([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2d0aa0()]=_0x525855),_0x4d7e50!=_0x23e773([0x56,0x61,0x6c,0x69,0x64])&&_0x74881a();}function _0x2d0aa0(){const _0x59cfb4=window[_0x23e773([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23e773([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23e773([0x6e,0x6f,0x77])]())[_0x23e773([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23e773([0x2e]),'');let _0x2c48b1=_0x23e773([0x76]);for(let _0x3e2471=0x0;_0x3e2471<_0x59cfb4[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e2471+=0x2){let _0x279876=window[_0x23e773([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59cfb4[_0x23e773([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e2471,_0x3e2471+0x2));_0x279876>=_0x240031[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x279876-=_0x240031[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c48b1+=_0x240031[_0x279876];}return _0x2c48b1;}function _0x3b91c4(){const _0x31eacc=_0x36e515[_0x23e773([0x73,0x70,0x6c,0x69,0x74])](_0x23e773([0x2e]));if(0x3!=_0x31eacc[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a0fe2(_0x31eacc[0x1]);function _0x1a0fe2(_0x2687db){const _0x1aa5d6=_0x3c7397(_0x2687db);return _0x1aa5d6&&_0x1d40e5()?_0x1aa5d6:null;function _0x1d40e5(){const _0x3dd09a=_0x1aa5d6[_0x23e773([0x6a,0x74,0x69])],_0x21b9d2=window[_0x23e773([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dd09a[_0x23e773([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3dd09a[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x13f6e7={..._0x1aa5d6,[_0x23e773([0x6a,0x74,0x69])]:_0x3dd09a[_0x23e773([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3dd09a[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x13f6e7[_0x23e773([0x76,0x63])],_0x5c8d5f(_0x13f6e7)==_0x21b9d2;}}}async function _0x27dad5(){let _0x4a96c5=!0x0;try{const _0x4aa38e=_0x36e515[_0x23e773([0x73,0x70,0x6c,0x69,0x74])](_0x23e773([0x2e])),[_0x2db977,_0x518a41,_0x37d149]=_0x4aa38e;return _0x4319aa(_0x2db977),await _0x31bcb3(_0x2db977,_0x518a41,_0x37d149),_0x4a96c5;}catch{return!0x1;}function _0x4319aa(_0x3947a0){const _0x48e543=_0x3c7397(_0x3947a0);_0x48e543&&_0x48e543[_0x23e773([0x61,0x6c,0x67])]==_0x23e773([0x45,0x53,0x32,0x35,0x36])||(_0x4a96c5=!0x1);}async function _0x31bcb3(_0x5c8d91,_0x5488f8,_0x13c8e1){const _0x568e38=window[_0x23e773([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23e773([0x66,0x72,0x6f,0x6d])](_0x8550b5(_0x13c8e1),_0x1d7cbf=>_0x1d7cbf[_0x23e773([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1eb771=new window[(_0x23e773([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23e773([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c8d91+_0x23e773([0x2e])+_0x5488f8),_0x2b078c=window[_0x23e773([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23e773([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b078c)return;const _0x10283e=await _0x2b078c[_0x23e773([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23e773([0x6a,0x77,0x6b]),_0x1be04e,{[_0x23e773([0x6e,0x61,0x6d,0x65])]:_0x23e773([0x45,0x43,0x44,0x53,0x41]),[_0x23e773([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23e773([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23e773([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b078c[_0x23e773([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23e773([0x6e,0x61,0x6d,0x65])]:_0x23e773([0x45,0x43,0x44,0x53,0x41]),[_0x23e773([0x68,0x61,0x73,0x68])]:{[_0x23e773([0x6e,0x61,0x6d,0x65])]:_0x23e773([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10283e,_0x568e38,_0x1eb771)||(_0x4a96c5=!0x1);}}function _0x3c7397(_0x5f13c7){return _0x5f13c7[_0x23e773([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23e773([0x65,0x79]))?JSON[_0x23e773([0x70,0x61,0x72,0x73,0x65])](_0x8550b5(_0x5f13c7)):null;}function _0x8550b5(_0x5abcbd){return window[_0x23e773([0x61,0x74,0x6f,0x62])](_0x5abcbd[_0x23e773([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23e773([0x2b]))[_0x23e773([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23e773([0x2f])));}function _0x5c8d5f(_0x5d1c3f){let _0x53cc03=0x1505;function _0x218f4f(_0x5d5806){for(let _0x4910d1=0x0;_0x4910d1<_0x5d5806[_0x23e773([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4910d1++){const _0x2b9460=_0x5d5806[_0x23e773([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4910d1);_0x53cc03=(_0x53cc03<<0x5)+_0x53cc03+_0x2b9460,_0x53cc03&=_0x53cc03;}}function _0x5ef068(_0x22264e){Array[_0x23e773([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22264e)?_0x22264e[_0x23e773([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ef068):_0x22264e&&typeof _0x22264e==_0x23e773([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23e773([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22264e)[_0x23e773([0x73,0x6f,0x72,0x74])]()[_0x23e773([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23976a,_0x49be41])=>{_0x218f4f(_0x23976a),_0x5ef068(_0x49be41);}):_0x218f4f(window[_0x23e773([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22264e));}return _0x5ef068(_0x5d1c3f),_0x53cc03>>>0x0;}function _0x20f047(_0xa4b804){return _0xa4b804[_0x23e773([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23e773([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23e773([0x30]));}function _0x4cd042(_0x239d5e){return _0x239d5e[_0x23e773([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23e773([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23e773([0x6a,0x6f,0x69,0x6e])]('');}function _0x56b422(_0x125b58){return _0x5a95a5[_0x23e773([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23e773([0x68,0x61,0x73])](_0x125b58);}function _0x14b1f7(_0x1f00be){return _0x5a95a5[_0x23e773([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23e773([0x67,0x65,0x74])](_0x1f00be);}function _0x7c3fd1(){}function _0x23e773(_0x330c5d){return _0x330c5d['map'](_0xecd08e=>String['fromCharCode'](_0xecd08e))['join']('');}_0x3711bc(await _0x3f011d());}(this);}['createRevision'](_0x1883b6){const _0x4810ca=this['editor']['plugins']['get']('Users');return new I({'id':_0x1883b6['id'],'name':_0x1883b6['name'],'creator':_0x1883b6['creatorId']?_0x4810ca['getUser'](_0x1883b6['creatorId']):null,'diffData':_0x1883b6['diffData']||_0x1883b6['data'],'authors':_0x1883b6['authorsIds']['map'](_0x2c103d=>_0x4810ca['getUser'](_0x2c103d)),'createdAt':new Date(_0x1883b6['createdAt']),'attributes':_0x1883b6['attributes'],'fromVersion':_0x1883b6['fromVersion'],'toVersion':_0x1883b6['toVersion']});}['addRevision'](_0x78009b,_0x447ebe=0x0){this['_revisions']['add'](_0x78009b,_0x447ebe);}['getRevision'](_0x4ced9e){return this['_revisions']['get'](_0x4ced9e);}['getRevisions'](_0xbfcaa7={'toJSON':!0x1}){const _0x135aa6=Array['from'](this['_revisions']);return _0x135aa6['reverse'](),_0xbfcaa7['toJSON']?_0x135aa6['map'](_0x163582=>_0x163582['toJSON']()):_0x135aa6;}['getIndex'](_0xd65815){return this['_revisions']['getIndex'](_0xd65815);}['getEarlierVisibleRevision'](_0x464670){const [,_0x46d4ba]=this['getRevisionsIterator'](_0x464670,{'direction':'earlier'});return _0x46d4ba;}['getLaterVisibleRevision'](_0x1d62bc){const [,_0x18df8e]=this['getRevisionsIterator'](_0x1d62bc,{'direction':'later'});return _0x18df8e;}['getRevisionsInDiff'](_0x508ff3){const _0x43eabb=[];for(const _0x5ccfb8 of this['getRevisionsIterator'](_0x508ff3['newRevisionId']))if(_0x43eabb['push'](_0x5ccfb8),_0x5ccfb8['id']===_0x508ff3['oldRevisionId'])break;return _0x43eabb;}*['getRevisionsIterator'](_0x11ebe5,{direction:_0x2a4b25='earlier',filter:_0x249239=()=>!0x0}={}){const _0x2d6003='earlier'===_0x2a4b25?0x1:-0x1;let _0x24aba5=this['_revisions']['get'](_0x11ebe5),_0x5926cb=this['getIndex'](_0x24aba5);for(yield _0x24aba5;_0x24aba5;){if(_0x5926cb+=_0x2d6003,_0x24aba5=this['getRevision'](_0x5926cb),!_0x24aba5)return;_0x249239(_0x24aba5)&&(yield _0x24aba5);}}}class $ extends _0x460205{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x6b6d84,'c'],[_0xf33d81,'a'],[_0x4579d9,'e'],[_0x507579,'r'],[_0xf2c865,'u']]);['_typeCharToViewClass']=new Map([['c',_0x6b6d84],['a',_0xf33d81],['e',_0x4579d9],['r',_0x507579],['u',_0xf2c865]]);async['loadRevisionData'](_0x11a81b,_0x7cedbc){if(_0x11a81b['diffData']||!_0x7cedbc)return;const _0x11f3e4=this['editor']['config']['get']('collaboration.channelId'),_0x40b531=await _0x7cedbc['getRevision']({'channelId':_0x11f3e4,'revisionId':_0x11a81b['id']});_0x11a81b['diffData']=_0x40b531['diffData'];}['getRevisionDocumentData'](_0x406493){const _0x96eb59={};for(const _0x361c58 in _0x406493['diffData']){if(_0x406493['diffData'][_0x361c58]['attachChange']&&!_0x406493['diffData'][_0x361c58]['attachChange']['isAttached'])continue;const _0x3e75eb=this['_removeRevisionMarkers'](JSON['parse'](_0x406493['diffData'][_0x361c58]['insertions'])),_0x1d5589=this['editor']['editing']['view']['document'],_0x4b5e5b=new _0x4f781a(_0x1d5589,_0x3e75eb['map'](_0x25bd8c=>this['_getViewFromDiffObj'](_0x25bd8c,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x96eb59[_0x361c58]=this['editor']['data']['processor']['toData'](_0x4b5e5b),this['editor']['data']['processor']['useFillerType']('default');}return _0x96eb59;}['getRevisionRootsAttributes'](_0x3ffe4f){const _0x818eef={};for(const _0x265687 in _0x3ffe4f['diffData'])_0x3ffe4f['diffData'][_0x265687]['attachChange']&&!_0x3ffe4f['diffData'][_0x265687]['attachChange']['isAttached']||(_0x818eef[_0x265687]=_0x3ffe4f['diffData'][_0x265687]['attributesAfter']||{});return _0x818eef;}['_getTypeCharForViewElement'](_0x2d7c77){return this['_viewClassToTypeChar']['get'](_0x2d7c77['constructor']);}['_getViewFromDiffObj'](_0x254bda,_0x27896b){const _0x1861fb=this['editor']['editing']['view']['document'];if('string'==typeof _0x254bda)return new _0x1af8c0(_0x1861fb,_0x254bda);{let _0x55bfaf,_0x334f5c;_0x334f5c='u'==_0x254bda['type']||'r'==_0x254bda['type']?[]:_0x254bda['children']['map'](_0xb5ad43=>this['_getViewFromDiffObj'](_0xb5ad43,_0x27896b));const _0x4d1119=this['_typeCharToViewClass']['get'](_0x254bda['type'])||_0x43d538,_0x5d83f8=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x55bfaf=new _0x4d1119(_0x1861fb,_0x254bda['name'],_0x254bda['attributes'],_0x334f5c),'u'==_0x254bda['type']&&_0x254bda['children'][0x0]){const _0x2204c2=_0x254bda['children'][0x0];if(_0x55bfaf['render']=function(_0x9cecc0){const _0x1639e1=_0x9cecc0['createElement']('div');return _0x1639e1['innerHTML']=_0x2204c2,_0x1639e1['childNodes'][0x0];},_0x27896b){const _0x275752=new _0x4f781a(_0x1861fb);_0x275752['_appendChild'](_0x55bfaf);const _0x5d17cb=Array['from'](_0x5d83f8['viewChildrenToDom'](_0x275752,{'bind':!0x1})),_0x1fe2f3=_0x5d83f8['domDocument']['createElement']('div');_0x1fe2f3['append'](..._0x5d17cb),_0x55bfaf=Array['from'](_0x5d83f8['domChildrenToView'](_0x1fe2f3))[0x0];}}else{if('r'==_0x254bda['type']&&_0x254bda['children'][0x0]){const _0x452fae=_0x254bda['children'][0x0];if(_0x55bfaf['render']=function(_0x4c1445){_0x4c1445['innerHTML']=_0x452fae;},_0x27896b){const _0x5853f1=new _0x4f781a(_0x1861fb);_0x5853f1['_appendChild'](_0x55bfaf);const _0x1a119e=Array['from'](_0x5d83f8['viewChildrenToDom'](_0x5853f1,{'bind':!0x1})),_0x3bc167=_0x5d83f8['domDocument']['createElement']('div');_0x3bc167['append'](..._0x1a119e);const _0x1eec46=Array['from'](_0x5d83f8['domChildrenToView'](_0x3bc167));_0x1eec46['length']>0x1?_0x55bfaf['_appendChild'](_0x1eec46):_0x55bfaf=_0x1eec46[0x0];}}}if(_0x254bda['customProperties']){for(const [_0x2c6413,_0x4c5a96]of _0x254bda['customProperties'])_0x55bfaf['_setCustomProperty'](_0x2c6413,_0x4c5a96);}const _0x2a92ca=void 0x0===_0x254bda['fillerOffset']?null:_0x254bda['fillerOffset'];return null!==_0x2a92ca&&(_0x55bfaf['getFillerOffset']=()=>_0x2a92ca),_0x55bfaf;}}['_makeModelFromViewString'](_0x2eb6f7){const _0x1355a5=JSON['parse'](_0x2eb6f7),_0x555ecc=this['editor']['editing']['view']['document'],_0x536496=new _0x4f781a(_0x555ecc,_0x1355a5['map'](_0x2686f4=>this['_getViewFromDiffObj'](_0x2686f4,!0x0)));return this['editor']['data']['toModel'](_0x536496);}['_removeRevisionMarkers'](_0x16ea4c){return(_0x16ea4c=_0x16ea4c['filter'](_0x196f83=>!_0x196f83['name']||'revision-start'!==_0x196f83['name']&&'revision-end'!==_0x196f83['name']))['forEach'](_0x48d9bb=>{'string'!=typeof _0x48d9bb&&(_0x48d9bb['children']=this['_removeRevisionMarkers'](_0x48d9bb['children']),_0x48d9bb['attributes']=_0x48d9bb['attributes']['filter'](_0x1f1521=>!_0x1f1521[0x0]['startsWith']('data-revision-')));}),_0x16ea4c;}}function m(_0xa5cd28,_0x5df411,_0x344245){const t=_0xa5cd28['t'];switch(_0x5df411){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'},_0x344245);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x344245);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 _0x460205{['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[_0x437785,S,$,_0x21b7d5];}constructor(_0x16b647){super(_0x16b647),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 _0x7cc931=_0x3b18bf();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x7cc931},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 _0x2dc962=this['repository']['getRevision'](0x0),_0x44816d=_0x2dc962&&null===_0x2dc962['creator']?_0x2dc962:null;if(this['_continueCurrentRevision']=!!_0x44816d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3e2c0f=this['_source']['getCurrentRevisionId'](),_0xf2cd53=this['repository']['getRevision'](_0x3e2c0f);if(_0xf2cd53)this['_startingVersion']=_0xf2cd53['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x17cd7e=this['_source']['history']['_operations']['find'](_0x23aaec=>!_0x23aaec['_isInit']),_0xa713e2=_0x17cd7e?_0x17cd7e['baseVersion']:this['_source']['history']['version'];_0x2dc962?(_0x2dc962['toVersion']<_0xa713e2&&_0x2dc962['_update']({'toVersion':_0xa713e2}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x44816d['id'],this['_startingVersion']=_0x44816d['fromVersion']):(this['_startingVersion']=_0x2dc962['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xa713e2,this['_continueCurrentRevision']=!0x1);}}else _0x44816d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x44816d['toVersion'],this['editor']['model']['document']['history']['version']),_0x44816d['fromVersion']===_0x44816d['toVersion']?(0x0!==_0x44816d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x44816d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x44816d['id'],this['_startingVersion']=_0x44816d['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',_0x204308=>!_0x204308),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d800e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b27fc;for(const _0x37615b in _0x2d800e){const _0x17b054=_0x37615b,_0x26d0f3=_0x2d800e[_0x17b054];if('revisionHistoryLicenseKeyValid'==_0x26d0f3||'revisionHistoryLicenseKeyInvalid'==_0x26d0f3||'revisionHistoryLicenseKeyExpired'==_0x26d0f3||'revisionHistoryLicenseKeyDomainLimit'==_0x26d0f3||'revisionHistoryLicenseKeyNotAllowed'==_0x26d0f3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x26d0f3||'revisionHistoryLicenseKeyUsageLimit'==_0x26d0f3){delete _0x2d800e[_0x17b054],_0x4b27fc=_0x26d0f3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4b27fc&&_0x2d800e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4b27fc&&_0x2d800e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4b27fc&&_0x2d800e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4b27fc&&_0x2d800e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4b27fc&&_0x2d800e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4b27fc&&_0x2d800e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x393eeb=this['repository']['getRevision'](0x0),_0x3d1bef=await this['getRevisionDocumentData'](_0x393eeb),_0x535ea1=await this['getRevisionRootsAttributes'](_0x393eeb);this['_replaceEditorDataWithRevisionData'](_0x3d1bef,_0x535ea1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4ad34b){this['_source']=_0x4ad34b;}async['update'](){const _0x3d596c=await this['_source']['getLatestVersion']();if(_0x3d596c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x27efd1=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3d596c});_0x27efd1['authors']=_0x27efd1['authorsIds']['map'](_0x5df685=>this['editor']['plugins']['get']('Users')['getUser'](_0x5df685)),this['currentRevision']['_update'](_0x27efd1);}}async['saveRevision'](_0x46333c={},_0x2374c5=null){const _0x34fb70=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2374c5>this['currentRevision']['toVersion']&&(_0x2374c5=null),null===_0x2374c5&&(_0x2374c5=await this['_source']['getLatestVersion']());const _0x39e63f=this['_getFromVersion'](_0x2374c5),_0x38c35b=this['buildRevisionData']({'from':_0x39e63f,'to':_0x2374c5});if(this['currentRevision']['toVersion']<_0x2374c5){const _0x289e65=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2374c5,'to':_0x2374c5});_0x289e65['authors']=[],_0x289e65['authorsIds']=[],_0x289e65['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x289e65,!0x0),delete _0x289e65['authors'],_0x34fb70['push'](_0x289e65);}_0x46333c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x46333c['name']=_0x46333c['name']||null,_0x46333c['id']=_0x46333c['id']||_0x3b18bf(),_0x46333c={..._0x46333c,..._0x38c35b};const _0x2680c8=this['addRevisionData'](_0x46333c);_0x34fb70['push'](_0x46333c);const _0x12a38a=this['repository']['getIndex'](_0x2680c8);if(0x0!==_0x12a38a){const _0x278e38=this['repository']['getRevision'](_0x12a38a-0x1);if(_0x278e38['fromVersion']!==_0x2374c5){const _0x11fa56=this['_revisionDataBuilder']['getData'](_0x2374c5,_0x278e38['toVersion']),_0x505cdb={'id':_0x278e38['id'],'diffData':_0x11fa56['diffData'],'authorsIds':_0x11fa56['authorsIds'],'authors':_0x11fa56['authorsIds']['map'](_0x3b47e1=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b47e1)),'fromVersion':_0x2374c5};_0x278e38===this['currentRevision']&&(_0x505cdb['createdAt']=new Date(_0x46333c['createdAt']['getTime']()+0xa)),_0x278e38['_update'](_0x505cdb,!0x0),delete _0x505cdb['authors'],_0x34fb70['push'](_0x505cdb);}}if(this['adapter']){for(const _0x2c2237 of _0x34fb70)this['_bufferUpdate'](_0x2c2237['id'],_0x2c2237,!0x0);this['sendBufferedUpdates']();}return _0x2680c8;}['addRevisionData'](_0x1327f5){const _0xfea93e=this['repository']['createRevision'](_0x1327f5);return this['adapter']&&_0xfea93e['on']('_update',(_0x1dba7f,_0x2c9ed2,_0x5c4cf4)=>{_0x5c4cf4||(this['_bufferUpdate'](_0x2c9ed2['id'],_0x2c9ed2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xfea93e,this['_findInsertionIndex'](_0xfea93e)),_0xfea93e;}async['getRevisionDocumentData'](_0x3b5c8a){return await this['_utils']['loadRevisionData'](_0x3b5c8a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3b5c8a);}async['getRevisionRootsAttributes'](_0x3a67b4){return await this['_utils']['loadRevisionData'](_0x3a67b4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3a67b4);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x487a67=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x192702=0x0;_0x192702<_0x487a67['length'];_0x192702++){const _0x3d437a=_0x487a67[_0x192702];let _0x14bb01=!0x1;for(const _0x443f8d of Object['keys'](_0x3d437a))void 0x0===_0x3d437a[_0x443f8d]?delete _0x3d437a[_0x443f8d]:'id'!==_0x443f8d&&(_0x14bb01=!0x0);_0x14bb01||(_0x487a67[_0x192702]=null);}if(_0x487a67=_0x487a67['filter'](_0x31ec90=>null!==_0x31ec90),!_0x487a67['length'])return;for(let _0x15ce68=0x0;_0x15ce68<_0x487a67['length'];_0x15ce68++){const _0xddd78c=_0x487a67[_0x15ce68];void 0x0!==_0xddd78c['fromVersion']&&void 0x0===_0xddd78c['toVersion']&&(_0xddd78c['toVersion']=this['repository']['getRevision'](_0xddd78c['id'])['toVersion']),void 0x0!==_0xddd78c['toVersion']&&void 0x0===_0xddd78c['fromVersion']&&(_0xddd78c['fromVersion']=this['repository']['getRevision'](_0xddd78c['id'])['fromVersion']);}const _0x10d906=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x487a67,_0x10d906)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5d22f3=>{if(_0x5d22f3){for(const _0x1e5f89 of _0x5d22f3)this['setRevisionData']({'id':_0x1e5f89['id'],'createdAt':_0x1e5f89['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x215aeb=null,from:_0x25c405=null,to:_0x1f2d97=null}){_0x25c405=null!==_0x25c405?_0x25c405:_0x215aeb['fromVersion'],_0x1f2d97=null!==_0x1f2d97?_0x1f2d97:_0x215aeb['toVersion'];const _0x438004=this['_revisionDataBuilder']['getData'](_0x25c405,_0x1f2d97),_0x4321b0={'diffData':_0x438004['diffData'],'authorsIds':_0x438004['authorsIds'],'fromVersion':_0x25c405,'toVersion':_0x1f2d97};if(!_0x215aeb||_0x1f2d97!==_0x215aeb['toVersion']){const _0x1454a9=_0x1f2d97-0x1,_0x3c8bfb=this['_source']['history']['getOperation'](_0x1454a9);_0x4321b0['createdAt']=_0x3c8bfb&&_0x3c8bfb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x25c405===this['_loadedStateData']['fromVersion']){for(const _0x1066ac of this['_loadedStateData']['authors'])_0x4321b0['authorsIds']['includes'](_0x1066ac['id'])||_0x4321b0['authorsIds']['push'](_0x1066ac['id']);}return _0x4321b0;}['_bufferUpdate'](_0x41a520,_0x37faf2,_0x279fad){if(this['_bufferedUpdates']['has'](_0x41a520)){const _0x598deb=this['_bufferedUpdates']['get'](_0x41a520);_0x37faf2=_0x279fad?{..._0x598deb,..._0x37faf2}:{..._0x37faf2,..._0x598deb};}this['_bufferedUpdates']['set'](_0x41a520,_0x37faf2);}['setRevisionData'](_0x346731){const _0x505f49=this['repository']['getRevision'](_0x346731['id']);if(_0x346731['createdAt']&&(_0x346731['createdAt']=new Date(_0x346731['createdAt'])),_0x346731['authorsIds']){const _0x33b3e8=this['editor']['plugins']['get']('Users');_0x346731['authors']=_0x346731['authorsIds']['map'](_0x40c485=>_0x33b3e8['getUser'](_0x40c485));}_0x505f49['_update'](_0x346731,!0x0);}['_createInitialRevision'](_0x342a0b){const _0x138820=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x138820)this['_initialRevisionId']=_0x138820['id'];else{const _0x54bc56=!this['editor']['model']['document']['roots']['find'](_0x1c9759=>this['editor']['model']['hasContent'](_0x1c9759)),_0x42c49f=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c9d1b=m(this['editor']['locale'],_0x54bc56?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x342a0b,'to':_0x342a0b,'id':this['_initialRevisionId'],'name':_0x5c9d1b,'creatorId':_0x42c49f});}}['_createCurrentRevision'](_0x2311da){const _0x253216=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x253216),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2311da,'to':_0x2311da,'id':_0x253216,'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'](_0x25b9a4,_0x2c3124){let _0x27fb9d=this['editor']['config']['get']('initialData'),_0x3066a3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x27fb9d){_0x27fb9d={};for(const _0x11620e of this['editor']['model']['document']['getRootNames']())_0x27fb9d[_0x11620e]='';}if('string'==typeof _0x27fb9d&&(_0x27fb9d={'main':_0x27fb9d}),void 0x0===_0x3066a3){_0x3066a3={};for(const _0x8a0cf4 of this['editor']['model']['document']['getRootNames']())_0x3066a3[_0x8a0cf4]={};}let _0x3c9bf8=!0x1;const _0x3c3ab2=Object['keys'](_0x27fb9d),_0x4cfd6f=Object['keys'](_0x25b9a4);for(const _0x318a6a of _0x3c3ab2){if(_0x27fb9d[_0x318a6a]!==_0x25b9a4[_0x318a6a]&&''!==_0x27fb9d[_0x318a6a]['trim']()){_0x3c9bf8=!0x0;break;}if(!_0x42361d(_0x3066a3[_0x318a6a],_0x2c3124[_0x318a6a])&&Object['keys'](_0x3066a3[_0x318a6a])['length']>0x0){_0x3c9bf8=!0x0;break;}}_0x3c9bf8||(_0x3c9bf8=_0x4cfd6f['some'](_0x3148dd=>!this['editor']['model']['document']['getRoot'](_0x3148dd))),_0x3c9bf8&&_0x553d19('editor-initial-data-replaced-with-revision-data',{'editorData':_0x27fb9d,'editorRootsAttributes':_0x3066a3,'revisionData':_0x25b9a4,'revisionRootsAttributes':_0x2c3124}),this['editor']['config']['set']('initialData',_0x25b9a4),this['editor']['config']['set']('rootsAttributes',_0x2c3124);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2c5f27=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2c5f27['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3d36ca){const _0x1688c4=this['repository']['getRevisions']();_0x1688c4['reverse']();let _0x1b31a3=0x0;for(;_0x1b31a3<_0x1688c4['length'];){const _0x150a6c=_0x1688c4[_0x1b31a3];if(_0x150a6c===this['currentRevision']){_0x1b31a3++;continue;}if(_0x150a6c['id']===this['_initialRevisionId'])break;const _0xd3c90c=_0x3d36ca['toVersion']-_0x150a6c['toVersion']||_0x3d36ca['fromVersion']-_0x150a6c['fromVersion'];if(_0xd3c90c>0x0)break;if(_0xd3c90c<0x0)_0x1b31a3++;else{if(!_0x3d36ca['creator']&&_0x150a6c['creator'])break;if(_0x150a6c['creator']||!_0x3d36ca['creator']){if(_0x3d36ca['createdAt']>_0x150a6c['createdAt'])break;_0x1b31a3++;}else _0x1b31a3++;}}return _0x1b31a3;}['_getFromVersion'](_0xb11bee){const _0x58f8e9=this['repository']['getRevisions']();_0x58f8e9['reverse'](),_0x58f8e9['shift']();const _0x333c63=_0x58f8e9['find'](_0x2dd389=>_0x2dd389['toVersion']<=_0xb11bee)['toVersion'];return _0x333c63<this['_startingVersion']?this['_startingVersion']:_0x333c63;}['_makeRevision']({name:_0x11ea8f,from:_0x128e85,to:_0x11609b,creatorId:_0x20edae,id:_0x2a9501}){const _0x338497=this['buildRevisionData']({'from':_0x128e85,'to':_0x11609b});_0x338497['name']=_0x11ea8f,_0x338497['creatorId']=_0x20edae,_0x338497['id']=_0x2a9501;const _0x2562d5=this['addRevisionData'](_0x338497);return this['adapter']&&this['_bufferUpdate'](_0x338497['id'],_0x338497,!0x0),_0x2562d5;}['_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(_0x18d30f){this['editor']=_0x18d30f,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'](_0x250728){this['source']=_0x250728;const _0x2a5e19=new Map(),_0x1cea54=new Map(),_0x3d0860=this['editor']['model']['document']['roots']['map'](_0x5dffa1=>_0x5dffa1['rootName']);for(const _0x2ce614 of _0x3d0860){const _0x3c5c27=this['editor']['model']['document']['getRoot'](_0x2ce614),_0x3e6475=K(_0x3c5c27);_0x2a5e19['set'](_0x2ce614,_0x3e6475),_0x1cea54['set'](_0x2ce614,Object['fromEntries'](_0x3c5c27['getAttributes']()));}const _0x4889bf=Array['from'](this['editor']['model']['markers'])['map'](_0x4a6d49=>[_0x4a6d49['name'],_0x4a6d49['getRange']()]),_0x213f05=this['source']['version'];this['_saveMetaData'](_0x213f05,_0x2a5e19,_0x4889bf,_0x1cea54),this['_startingRevisionId']=this['_revisionId'];const _0x493aa1=new Map(),_0x4125c6=new Map();for(const _0xd485a8 of _0x3d0860){const _0x4a1802=N(_0xd485a8);_0x493aa1['set'](_0xd485a8,_0x4a1802),_0x4125c6['set'](_0xd485a8,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x493aa1,[],_0x4125c6);}['getData'](_0x2a3cce,_0x1dd343){if(this['_lastFrom']===_0x2a3cce&&this['_lastTo']<=_0x1dd343)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1dd343,!0x0);else{if(!this['_savedMetaData']['has'](_0x2a3cce)){const _0x5173e3=this['_getPreviousFrom'](_0x2a3cce);this['_calculateMetaData'](_0x5173e3,_0x2a3cce,!0x1);}this['_calculateMetaData'](_0x2a3cce,_0x1dd343,!0x0);}return this['_lastFrom']=_0x2a3cce,this['_lastTo']=_0x1dd343,this['_getState']();}['loadState'](_0x2cabb8){if(!this['_savedMetaData']['has'](_0x2cabb8['fromVersion'])){const _0x4208dc=this['_getPreviousFrom'](_0x2cabb8['fromVersion']);this['_calculateMetaData'](_0x4208dc,_0x2cabb8['fromVersion'],!0x1);}this['_calculateMetaData'](_0x2cabb8['fromVersion'],_0x2cabb8['toVersion'],!0x1);const _0x49083f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2cabb8['fromVersion'],this['_lastTo']=_0x2cabb8['toVersion'];for(const _0x3af8c5 in _0x2cabb8['diffData']){const _0x566194=_0x2cabb8['diffData'][_0x3af8c5]['attachChange'],_0x5b1735=_0x1318b9(_0x2cabb8['diffData'][_0x3af8c5]['attributesBefore'])||{},_0x4389a2=_0x49083f['_makeModelFromViewString'](_0x2cabb8['diffData'][_0x3af8c5]['deletions']);_0x4389a2['rootName']=_0x3af8c5,_0x4389a2['_isAttached']=!_0x566194||!_0x566194['isAttached'],_0x4389a2['isAttached']=()=>_0x4389a2['_isAttached'],this['_baseRoots']['set'](_0x3af8c5,_0x4389a2),this['_baseRootsAttributes']['set'](_0x3af8c5,_0x5b1735),_0x566194&&this['_touchedRoots']['set'](_0x3af8c5,_0x566194);const _0x13d8dd=this['_makeIdsRoot'](_0x4389a2);this['_baseIdsRoots']['set'](_0x3af8c5,_0x13d8dd);for(const [_0x362fae,_0x45fc90]of _0x4389a2['markers']){if(!_0x362fae['startsWith']('revision:'))continue;const _0x194af4=_0x362fae['split'](':')[0x2];for(const _0x39a163 of _0x45fc90['getWalker']({'singleCharacters':!0x0})){const _0x58be54=this['_getVidAttributeName'](_0x39a163),_0x36f989='elementEnd'==_0x39a163['type']?_0x39a163['previousPosition']['path']['slice'](0x0,-0x1):_0x39a163['previousPosition']['path'],_0x4fcdbf=_0x13d8dd['getNodeByPath'](_0x36f989)['getAttribute'](_0x58be54);this['_touched']['set'](_0x4fcdbf,{'userId':_0x194af4});}_0x4389a2['markers']['delete'](_0x362fae);}}this['_startingRevisionId']=this['_revisionId'];const _0x5b6800=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x18454a=>!this['_touched']['has'](_0x18454a));let _0x20fa24=0x0;const _0x40e819=new Map();for(const _0x4a7d90 in _0x2cabb8['diffData']){const _0x488d58=_0x2cabb8['diffData'][_0x4a7d90]['attachChange'],_0x1ce901=_0x1318b9(_0x2cabb8['diffData'][_0x4a7d90]['attributesAfter'])||{},_0x211247=_0x49083f['_makeModelFromViewString'](_0x2cabb8['diffData'][_0x4a7d90]['insertions']);_0x211247['rootName']=_0x4a7d90,_0x211247['_isAttached']=!_0x488d58||_0x488d58['isAttached'],_0x211247['isAttached']=()=>_0x211247['_isAttached'],this['_diffRoots']['set'](_0x4a7d90,_0x211247),this['_diffRootsAttributes']['set'](_0x4a7d90,_0x1ce901);const _0x28ec51=this['_makeIdsRoot'](_0x211247,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4a7d90,_0x28ec51),_0x40e819['set'](_0x4a7d90,_0x211247['isAttached']()?_0x1ce901:{});for(const [_0x2fee8a,_0x3a19d0]of _0x211247['markers']){if(!_0x2fee8a['startsWith']('revision:'))continue;const _0x55f95a=_0x2fee8a['split'](':')[0x2];for(const _0xb41b7b of _0x3a19d0['getWalker']({'singleCharacters':!0x0})){const _0x3cfcb0=this['_getVidAttributeName'](_0xb41b7b),_0x541f27=this['_revisionId']++,_0x504d4='elementEnd'==_0xb41b7b['type']?_0xb41b7b['previousPosition']['path']['slice'](0x0,-0x1):_0xb41b7b['previousPosition']['path'];_0x28ec51['getNodeByPath'](_0x504d4)['_setAttribute'](_0x3cfcb0,_0x541f27),this['_touched']['set'](_0x541f27,{'userId':_0x55f95a});}_0x211247['markers']['delete'](_0x2fee8a);}for(const _0x397fbd of this['editor']['model']['createRangeIn'](_0x211247)['getWalker']({'singleCharacters':!0x0})){const _0xd0a3d6=this['_getVidAttributeName'](_0x397fbd),_0x56e10d='elementEnd'==_0x397fbd['type']?_0x397fbd['previousPosition']['path']['slice'](0x0,-0x1):_0x397fbd['previousPosition']['path'],_0x325620=_0x28ec51['getNodeByPath'](_0x56e10d);_0x325620['getAttribute'](_0xd0a3d6)>0x0||_0x325620['_setAttribute'](_0xd0a3d6,_0x5b6800[_0x20fa24++]);}for(const [_0x84c18e,_0x3814a4]of _0x211247['markers'])_0x84c18e['startsWith']('revision:')||this['_markers']['set'](_0x84c18e,_0x3814a4);}const {roots:_0x53458d}=this['_savedMetaData']['get'](_0x2cabb8['fromVersion']),{roots:_0x4c3d57}=this['_savedMetaData']['get'](_0x2cabb8['toVersion']),_0x103b43=K(_0x53458d['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x103b43),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x103b43,Number['NEGATIVE_INFINITY']));const _0x507914=K(_0x4c3d57['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x507914),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x507914));const _0x7849a3=Array['from'](this['_diffRoots'])['map'](([_0x2a5158,_0x282b59])=>[_0x2a5158,K(_0x282b59)]);this['_saveMetaData'](this['_lastTo'],_0x7849a3,this['_markers'],_0x40e819);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x28cb5d,_0x22f8bf,_0x3aa360,_0x43a5c1){const _0xc76129=new Map(_0x22f8bf),_0x377a85=new Map(_0x1318b9(_0x43a5c1)),_0x15e1aa=new Map();for(const [_0x5674d8,_0x551d1b]of _0x3aa360)_0x15e1aa['set'](_0x5674d8,{'start':_0x551d1b['start']['clone'](),'end':_0x551d1b['end']['clone'](),'rootName':_0x551d1b['root']['rootName']});this['_savedMetaData']['set'](_0x28cb5d,{'roots':_0xc76129,'markers':_0x15e1aa,'rootsAttributes':_0x377a85});}['_removeMetaData'](_0x10e36e){this['_savedMetaData']['delete'](_0x10e36e);}['_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'](_0x53e68c,_0x263837=null){let _0x26136d=null;_0x53e68c['is']('documentFragment')||(_0x26136d=new _0x10eef6(_0x53e68c['name'],{'vid_start':null===_0x263837?this['_revisionId']++:_0x263837++}));const _0x348e15=[];for(const _0x231b6c of _0x53e68c['getChildren']())if(_0x231b6c['is']('element')){_0x348e15['push'](this['_makeIdsRoot'](_0x231b6c,_0x263837));const _0x30d3fa=_0x348e15[_0x348e15['length']-0x1];null!==_0x263837&&(_0x263837=_0x30d3fa['is']('element','$text')?_0x30d3fa['getAttribute']('vid')+0x1:_0x30d3fa['getAttribute']('vid_end')+0x1);}else{for(let _0x29fab2=0x0;_0x29fab2<_0x231b6c['offsetSize'];_0x29fab2++)_0x348e15['push'](new _0x10eef6('$text',{'vid':null===_0x263837?this['_revisionId']++:_0x263837++}));}if(_0x53e68c['is']('documentFragment')){const _0x7f9818=N(_0x53e68c['rootName']);return _0x7f9818['_insertChild'](0x0,_0x348e15),_0x7f9818;}return _0x26136d['_setAttribute']('vid_end',null===_0x263837?this['_revisionId']++:_0x263837++),_0x26136d['_insertChild'](0x0,_0x348e15),_0x26136d;}['_calculateMetaData'](_0x33e648,_0x3add46,_0x615961){this['_reset']();const {roots:_0x19c649,markers:_0x41955d,rootsAttributes:_0x18e77c}=this['_savedMetaData']['get'](_0x33e648);this['_baseRoots']=new Map(_0x19c649),this['_baseRootsAttributes']=new Map(_0x1318b9(_0x18e77c));for(const [_0x342b76,_0x5a84ad]of this['_baseRoots'])if('$graveyard'!==_0x342b76&&(this['_diffRoots']['set'](_0x342b76,K(_0x5a84ad)),this['_diffRootsAttributes']=new Map(_0x1318b9(_0x18e77c)),_0x615961)){const _0xbf3390=this['_revisionId'];this['_idsRoots']['set'](_0x342b76,this['_makeIdsRoot'](_0x5a84ad)),this['_baseIdsRoots']['set'](_0x342b76,this['_makeIdsRoot'](_0x5a84ad,_0xbf3390));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',K(this['_baseRoots']['get']('$graveyard'))),_0x615961&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3d8875,_0x134869]of _0x41955d){const _0x909390=this['_baseRoots']['get'](_0x134869['rootName']),_0x220d80=this['_diffRoots']['get'](_0x134869['rootName']),_0x38730f=new _0x2e34c5(this['_fixPosition'](_0x134869['start'],_0x909390),this['_fixPosition'](_0x134869['end'],_0x909390)),_0x388cb3=this['_fixRange'](_0x38730f,_0x220d80);_0x909390['markers']['set'](_0x3d8875,_0x38730f),this['_markers']['set'](_0x3d8875,_0x388cb3);}this['_applyOperations'](_0x33e648,_0x3add46,_0x615961);}['_applyOperations'](_0x4be29f,_0x293357,_0x219b8c){for(const _0xb4c80e of this['source']['getOperations'](_0x4be29f,_0x293357))this['_handleOperation'](_0xb4c80e,_0x219b8c);for(const _0x39caa6 of this['_diffRoots']['values']())_0x39caa6['markers']['clear']();for(const [_0x2d3c0c,_0x476c1f]of this['_markers']){this['_diffRoots']['get'](_0x476c1f['root']['rootName'])['markers']['set'](_0x2d3c0c,_0x476c1f['clone']());}const _0x3d8266=new Map(),_0x4d1be0=new Map();for(const [_0xc60fd2,_0x51d7cd]of this['_diffRoots'])_0x3d8266['set'](_0xc60fd2,K(_0x51d7cd)),_0x4d1be0['set'](_0xc60fd2,this['_diffRootsAttributes']['get'](_0xc60fd2));this['_saveMetaData'](_0x293357,_0x3d8266,this['_markers'],_0x4d1be0);}['_getPreviousFrom'](_0x16bb23){const _0x15f7df=Array['from'](this['_savedMetaData']['keys']());_0x15f7df['sort']((_0x2321a7,_0x5dc267)=>_0x2321a7-_0x5dc267),_0x15f7df['reverse']();for(const _0x21f7b7 of _0x15f7df)if(_0x21f7b7<_0x16bb23)return _0x21f7b7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x12261b,_0x1306ea){const _0x3f338a=Array['from'](_0x1306ea['markers'])['map'](([_0x11dabe,_0x42935e])=>[_0x11dabe,this['_fixRange'](_0x42935e,_0x12261b)]);_0x12261b['markers']=new Map(_0x3f338a);}['_transformMarkers'](_0x10713e){for(const _0x6774e7 of this['_markers']['values']()){const _0x17d1c4=_0x6774e7['getTransformedByOperation'](_0x10713e),_0x1fcb19=_0x2e34c5['_createFromRanges'](_0x17d1c4);_0x6774e7['start']=_0x1fcb19['start'],_0x6774e7['end']=_0x1fcb19['end'];}}['_handleOperation'](_0x2add9b,_0x7e9db4){if('addRoot'!=_0x2add9b['type']&&'detachRoot'!=_0x2add9b['type']){if('insert'==_0x2add9b['type']){const _0x138483=_0x2add9b['position']['root']['rootName'];this['_diffRoots']['has'](_0x138483)||(this['_diffRoots']['set'](_0x138483,N(_0x138483,!0x0)),this['_diffRootsAttributes']['set'](_0x138483,{}),_0x7e9db4&&this['_idsRoots']['set'](_0x138483,N(_0x138483,!0x0)));}else{if('addRootAttribute'==_0x2add9b['type']||'removeRootAttribute'==_0x2add9b['type']||'changeRootAttribute'==_0x2add9b['type'])return void this['_handleRootAttributeOperation'](_0x2add9b);'marker'==_0x2add9b['type']&&this['_handleMarkerOperation'](_0x2add9b);}if('marker'!==_0x2add9b['type']){const _0x37b685=this['_cloneOperation'](_0x2add9b,this['_diffRoots']);_0x37b685['_execute'](),this['_transformMarkers'](_0x37b685);}if(_0x7e9db4)switch(_0x2add9b['type']){case'insert':this['_handleInsertOperation'](_0x2add9b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2add9b);break;case'merge':this['_handleMergeOperation'](_0x2add9b);break;case'split':this['_handleSplitOperation'](_0x2add9b);}}else this['_handleRootOperation'](_0x2add9b,_0x7e9db4);}['_cloneOperation'](_0x108cbf,_0x3ebb8b){const _0x58bbad=_0x108cbf['clone']();return _0x58bbad['_authorId']=_0x108cbf['_authorId'],this['_fixOperation'](_0x58bbad,_0x3ebb8b),_0x58bbad;}['_getBaseVids'](_0x31ea21){return _0x31ea21['map'](_0x3f406d=>{const _0x36156d=this['_getVidAttributeName'](_0x3f406d);return Number(_0x3f406d['item']['getAttribute'](_0x36156d));});}['_generateTape'](_0x91420,_0x29d914){if(_0x91420['is']('element','$text'))_0x29d914['push']({'item':_0x91420,'type':'text'});else{_0x91420['is']('element')&&_0x29d914['push']({'item':_0x91420,'type':'elementStart'});for(const _0xf1201d of _0x91420['getChildren']())this['_generateTape'](_0xf1201d,_0x29d914);_0x91420['is']('element')&&_0x29d914['push']({'item':_0x91420,'type':'elementEnd'});}return _0x29d914;}['_getState'](){const _0x11295c=new Map(this['_touched']),_0x50f2ba=new Map(_0x11295c),_0x987eb3=new Map(),_0x22dbb5={'insertions':{},'deletions':{}},_0x36e4f5={'insertions':{},'deletions':{}},_0x36ed89=new Map(),_0x2ee88e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2ee88e['delete']('$graveyard');for(const _0x34bbcd of _0x2ee88e){const _0x141c9f=this['_diffRoots']['get'](_0x34bbcd)||N(_0x34bbcd,!0x1),_0x130a5c=this['_baseRoots']['get'](_0x34bbcd)||N(_0x34bbcd,!0x1);_0x141c9f['isAttached']()||_0x130a5c['isAttached']()?(_0x22dbb5['insertions'][_0x34bbcd]=K(_0x141c9f),_0x22dbb5['deletions'][_0x34bbcd]=K(_0x130a5c),this['_copyMarkers'](_0x22dbb5['deletions'][_0x34bbcd],_0x130a5c),this['_copyMarkers'](_0x22dbb5['insertions'][_0x34bbcd],_0x141c9f),_0x36e4f5['insertions'][_0x34bbcd]=this['_generateTape'](this['_idsRoots']['get'](_0x34bbcd),[]),_0x36e4f5['deletions'][_0x34bbcd]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x34bbcd)||N(_0x34bbcd,!0x1),[])):_0x2ee88e['delete'](_0x34bbcd);}for(const _0x3ea6ee of _0x2ee88e){const _0x4dfeba=_0x36e4f5['insertions'][_0x3ea6ee];for(const _0x840e14 of _0x4dfeba){const _0x3e5ee5=this['_getVidAttributeName'](_0x840e14),_0xf24477=_0x840e14['item']['getAttribute'](_0x3e5ee5);_0x50f2ba['delete'](_0xf24477),_0xf24477>=this['_startingRevisionId']&&_0x987eb3['set'](_0xf24477,_0x11295c['get'](_0xf24477));}}for(const _0x173ecc of _0x2ee88e){const _0x1286ff=_0x36e4f5['insertions'][_0x173ecc],_0x4c8304=this['_getBaseVids'](_0x36e4f5['deletions'][_0x173ecc]);let _0x12b25c=0x0;for(const _0x119515 of _0x1286ff){const _0x11b68c=this['_getVidAttributeName'](_0x119515),_0x525ee2=_0x119515['item']['getAttribute'](_0x11b68c);if(!_0x987eb3['has'](_0x525ee2)&&!_0x36ed89['has'](_0x525ee2)){if(_0x50f2ba['has'](_0x525ee2))_0x12b25c++;else{if(_0x525ee2!=_0x4c8304[_0x12b25c]){const _0x2b2b55=_0x11295c['get'](_0x525ee2)||_0x11295c['get'](_0x4c8304[_0x12b25c]);for(;_0x525ee2!=_0x4c8304[_0x12b25c];)_0x50f2ba['has'](_0x4c8304[_0x12b25c])||(_0x36ed89['set'](_0x4c8304[_0x12b25c],_0x2b2b55),_0x11295c['set'](_0x4c8304[_0x12b25c],_0x2b2b55)),_0x12b25c++;}_0x12b25c++;}}}}for(const _0x58349f of _0x2ee88e){const _0x42f587=_0x36e4f5['insertions'][_0x58349f];for(const _0xb4879 of _0x42f587){const _0xab0962=this['_getVidAttributeName'](_0xb4879),_0x1763f6=_0xb4879['item']['getAttribute'](_0xab0962);if(_0x36ed89['has'](_0x1763f6)){const _0x188595=_0x36ed89['get'](_0x1763f6);_0x50f2ba['has'](_0x1763f6)||_0x50f2ba['set'](_0x1763f6,{..._0x188595}),_0x987eb3['set'](_0x1763f6,{..._0x188595});}}}for(const _0x46379d of _0x50f2ba['keys']())_0x46379d>=this['_startingRevisionId']&&_0x50f2ba['delete'](_0x46379d);const _0x49bd23=new Map();for(const _0x45b305 of _0x2ee88e){let _0xd2b4d9=_0x36e4f5['insertions'][_0x45b305];for(const _0x57e01b of _0xd2b4d9)if(_0x57e01b['item']['is']('element','tableCell')){const _0x139e3c=this['_getVidAttributeName'](_0x57e01b),_0x11c841=_0x57e01b['item']['getAttribute'](_0x139e3c);if(_0x987eb3['has'](_0x11c841)){const _0x2b0931=_0x57e01b['item']['parent']['parent']['getAttribute']('vid_start'),_0x58fdc6=_0x49bd23['get'](_0x2b0931)||new Set();_0x58fdc6['add'](_0x987eb3['get'](_0x11c841)['userId']),_0x49bd23['set'](_0x2b0931,_0x58fdc6);}}_0xd2b4d9=_0x36e4f5['deletions'][_0x45b305];for(const _0x309a43 of _0xd2b4d9)if(_0x309a43['item']['is']('element','tableCell')){const _0x407e46=this['_getVidAttributeName'](_0x309a43),_0x28ceb7=_0x309a43['item']['getAttribute'](_0x407e46);if(_0x50f2ba['has'](_0x28ceb7)){const _0x236ab2=_0x309a43['item']['parent']['parent']['getAttribute']('vid_start'),_0x1035de=_0x49bd23['get'](_0x236ab2)||new Set();_0x1035de['add'](_0x50f2ba['get'](_0x28ceb7)['userId']),_0x49bd23['set'](_0x236ab2,_0x1035de);}}for(const _0x1d1722 of _0x49bd23['keys']())(_0x987eb3['has'](_0x1d1722)||_0x50f2ba['has'](_0x1d1722))&&_0x49bd23['delete'](_0x1d1722);}for(const _0xf96651 of _0x2ee88e){const _0x125c39=_0x36e4f5['insertions'][_0xf96651];let _0xfa6c81=null,_0x3b916c=null;for(const _0x5b8684 of _0x125c39){const _0x488e15=this['_getVidAttributeName'](_0x5b8684),_0x37ed00=_0x5b8684['item']['getAttribute'](_0x488e15),_0x37138e=_0x49bd23['get'](_0x37ed00);_0x37138e&&'elementStart'==_0x5b8684['type']&&(_0xfa6c81=Array['from'](_0x37138e)[0x0],_0x3b916c=_0x5b8684['item']['getAttribute']('vid_end')),_0xfa6c81&&(_0x50f2ba['set'](_0x37ed00,{'userId':_0xfa6c81}),_0x987eb3['set'](_0x37ed00,{'userId':_0xfa6c81})),_0x37ed00==_0x3b916c&&(_0xfa6c81=null,_0x3b916c=null);}}const _0x4284a1={},_0x3a49a8=new Set();for(const _0x3b74ea of _0x2ee88e){const _0xe8547=_0x22dbb5['deletions'][_0x3b74ea],_0x44e932=_0x22dbb5['insertions'][_0x3b74ea];for(const {userId:_0x449cd7}of this['_touchedMarkers']['values']())null!==_0x449cd7&&_0x3a49a8['add'](_0x449cd7);for(const {userId:_0x30af5d}of this['_touchedRoots']['values']())null!==_0x30af5d&&_0x3a49a8['add'](_0x30af5d);this['_markChanges'](_0x44e932,_0x36e4f5['insertions'][_0x3b74ea],_0x987eb3,'insertion',_0x3a49a8),this['_markChanges'](_0xe8547,_0x36e4f5['deletions'][_0x3b74ea],_0x50f2ba,'deletion',_0x3a49a8),_0x4284a1[_0x3b74ea]={'insertions':this['_prepareViewToSave'](_0x44e932),'deletions':this['_prepareViewToSave'](_0xe8547),'attachChange':this['_touchedRoots']['get'](_0x3b74ea)||null,'attributesBefore':_0x1318b9(this['_baseRootsAttributes']['get'](_0x3b74ea))||{},'attributesAfter':_0x1318b9(this['_diffRootsAttributes']['get'](_0x3b74ea))};}return{'diffData':_0x4284a1,'authorsIds':Array['from'](_0x3a49a8)};}['_processRootBeforeSave'](_0x59a9e0){for(const [,_0x49e354]of _0x59a9e0['markers']){const _0x3959fe=_0x49e354['start']['getAncestors']()['filter'](_0x20acde=>'tableCell'==_0x20acde['name']);for(const _0x58c130 of _0x3959fe)0x1==_0x58c130['childCount']&&_0x58c130['getChild'](0x0)['is']('element','paragraph')&&_0x58c130['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x959348){this['_processRootBeforeSave'](_0x959348);const _0xa0be60=this['editor']['data']['toView'](_0x959348,{}),_0x2aae25=Array['from'](_0xa0be60['getChildren']())['map'](_0x47cc0a=>this['_getViewJson'](_0x47cc0a));return JSON['stringify'](_0x2aae25);}['_getViewJson'](_0x2e9dfe){if(_0x2e9dfe['is']('$text'))return _0x2e9dfe['data'];{const _0x73d1b6=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5d0139=_0x2e9dfe,_0x56a398=this['editor']['data']['htmlProcessor']['domConverter'],_0x1bfec3={'type':_0x73d1b6['_getTypeCharForViewElement'](_0x5d0139),'name':_0x5d0139['name'],'attributes':Array['from'](_0x5d0139['getAttributes']()),'children':Array['from'](_0x5d0139['getChildren']())['map'](_0x1f62c0=>this['_getViewJson'](_0x1f62c0))};if(_0x2e9dfe['is']('uiElement')&&'$comment'!=_0x2e9dfe['name']){const _0x52f60b=_0x2e9dfe['render'](_0x56a398['domDocument'],_0x56a398);_0x1bfec3['children']['push'](_0x52f60b['outerHTML']);}else{if(_0x2e9dfe['is']('rawElement')){const _0x23a329=_0x56a398['domDocument']['createElement'](_0x5d0139['name']);_0x2e9dfe['render'](_0x23a329,_0x56a398),_0x1bfec3['children']['push'](_0x23a329['innerHTML']);}}const _0x3bba24=Array['from'](_0x5d0139['getCustomProperties']());_0x3bba24['length']>0x0&&(_0x1bfec3['customProperties']=_0x3bba24);const _0x218a4f=_0x5d0139['getFillerOffset']();return null!==_0x218a4f&&(_0x1bfec3['fillerOffset']=_0x218a4f),_0x1bfec3;}}['_markChanges'](_0x2e7bd7,_0x4c0184,_0x3ad7ff,_0x5b0df0,_0x5290ac){let _0x3e64d0=null,_0x260f77=null,_0x26c0c9=0x0;const _0x4638e6=this['editor']['model'];for(let _0x471e85=0x0;_0x471e85<_0x4c0184['length'];_0x471e85++){const _0x4535f8=this['_getVidAttributeName'](_0x4c0184[_0x471e85]),_0x51524c=_0x4c0184[_0x471e85]['item']['getAttribute'](_0x4535f8),_0x30f54e=_0x3ad7ff['get'](_0x51524c),_0x58b629=_0x471e85==_0x4c0184['length']-0x1;(!_0x3e64d0&&_0x30f54e&&(_0x3e64d0=_0x30f54e,_0x260f77=_0x4c0184[_0x471e85]),_0x3e64d0&&(!_0x30f54e||_0x30f54e['userId']!=_0x3e64d0['userId']))&&(_0x263dde(_0x30f54e,P(_0x260f77,_0x2e7bd7,_0x4638e6),P(_0x4c0184[_0x471e85],_0x2e7bd7,_0x4638e6)),_0x3e64d0=_0x30f54e||null,_0x260f77=_0x30f54e?_0x4c0184[_0x471e85]:null),_0x3e64d0&&_0x58b629&&_0x263dde(_0x30f54e,P(_0x260f77,_0x2e7bd7,_0x4638e6),V(_0x4c0184[_0x471e85],_0x2e7bd7,_0x4638e6));}function _0x263dde(_0x4dadd1,_0x459fa9,_0x33c8c1){const _0x12b416=_0x3e64d0['userId'],_0x2dde4a='revision:'+_0x5b0df0+':'+_0x12b416+':'+_0x26c0c9++,_0x84cba8=_0x4638e6['createRange'](_0x459fa9,_0x33c8c1);_0x2e7bd7['markers']['set'](_0x2dde4a,_0x84cba8),null!==_0x12b416&&_0x5290ac['add'](_0x12b416);}}['_getVidAttributeName'](_0x59b452){switch(_0x59b452['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xa8f5f7,_0x31a661){_0xa8f5f7['baseVersion']=null;for(const _0x41b65a in _0xa8f5f7){const _0x3d37ff=_0xa8f5f7[_0x41b65a];if(_0x3d37ff instanceof _0x178c47){const _0x5e6ef3=_0x31a661['get'](_0x3d37ff['root']['rootName']);_0xa8f5f7[_0x41b65a]=this['_fixPosition'](_0x3d37ff,_0x5e6ef3);}if(_0x3d37ff instanceof _0x2e34c5){const _0x126779=_0x31a661['get'](_0x3d37ff['root']['rootName']);_0xa8f5f7[_0x41b65a]=this['_fixRange'](_0x3d37ff,_0x126779);}'root'===_0x41b65a&&(_0xa8f5f7['root']=_0x31a661['get'](_0xa8f5f7['root']['rootName']));}}['_fixRange'](_0x281aa1,_0x26cfb5){return this['editor']['model']['createRange'](this['_fixPosition'](_0x281aa1['start'],_0x26cfb5),this['_fixPosition'](_0x281aa1['end'],_0x26cfb5));}['_fixPosition'](_0x52c1bb,_0xa747f3){return this['editor']['model']['createPositionFromPath'](_0xa747f3,_0x52c1bb['path'],_0x52c1bb['stickiness']);}['_handleInsertOperation'](_0x5dc080){const _0x3c69a8=this['_idsRoots']['get'](_0x5dc080['position']['root']['rootName']),_0x29726a=this['_fixPosition'](_0x5dc080['position'],_0x3c69a8),_0xf8761e=null===_0x5dc080['_authorId']?null:_0x5dc080['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ea5af=_0x29726a['parent'],_0x101d6f=this['_revisionId'],_0x57f4d1=[];for(const _0x22ad2b of _0x5dc080['nodes'])if(_0x22ad2b['is']('element'))_0x57f4d1['push'](this['_makeIdsRoot'](_0x22ad2b));else{for(let _0x513707=0x0;_0x513707<_0x22ad2b['offsetSize'];_0x513707++)_0x57f4d1['push'](new _0x10eef6('$text',{'vid':this['_revisionId']++}));}const _0x1f2633=this['_revisionId'];for(let _0x558f02=_0x101d6f;_0x558f02<_0x1f2633;_0x558f02++)this['_touched']['set'](_0x558f02,{'userId':_0xf8761e});_0x2ea5af['_insertChild'](_0x29726a['offset'],_0x57f4d1);}['_handleMoveOperation'](_0x52506f){(_0x52506f=this['_cloneOperation'](_0x52506f,this['_idsRoots']))['_execute']();const _0x3db134=null===_0x52506f['_authorId']?null:_0x52506f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c81ec=_0x52506f['getMovedRangeStart'](),_0x4142a7=_0x3c81ec['parent'],_0x2e4c19=_0x3c81ec['offset'];!function _0x151961(_0x460968,_0xcb7119,_0x1084d9,_0x4cc027){for(let _0x1bc6b9=_0x1084d9;_0x1bc6b9<_0x4cc027;_0x1bc6b9++){const _0x1e8270=_0xcb7119['getChild'](_0x1bc6b9);_0x1e8270['is']('element','$text')?_0x460968['set'](_0x1e8270['getAttribute']('vid'),{'userId':_0x3db134}):(_0x460968['set'](_0x1e8270['getAttribute']('vid_start'),{'userId':_0x3db134}),_0x151961(_0x460968,_0x1e8270,0x0,_0x1e8270['childCount']),_0x460968['set'](_0x1e8270['getAttribute']('vid_end'),{'userId':_0x3db134}));}}(this['_touched'],_0x4142a7,_0x2e4c19,_0x2e4c19+_0x52506f['howMany']);}['_handleMergeOperation'](_0x540ce9){const _0x17296e=null===(_0x540ce9=this['_cloneOperation'](_0x540ce9,this['_idsRoots']))['_authorId']?null:_0x540ce9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4adb1d=_0x540ce9['targetPosition']['parent'],_0x1db89d=_0x540ce9['sourcePosition']['parent'],_0xa39369=_0x4adb1d['getAttribute']('vid_end'),_0x3d0d6d=_0x1db89d['getAttribute']('vid_start');_0x4adb1d['_setAttribute']('vid_end',_0x1db89d['getAttribute']('vid_end')),_0x1db89d['_setAttribute']('vid_end',_0xa39369),this['_touched']['set'](_0x3d0d6d,{'userId':_0x17296e}),this['_touched']['set'](_0xa39369,{'userId':_0x17296e}),_0x540ce9['_execute']();}['_handleSplitOperation'](_0x40903a){const _0xcda1d9=null===(_0x40903a=this['_cloneOperation'](_0x40903a,this['_idsRoots']))['_authorId']?null:_0x40903a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x324007=_0x40903a['graveyardPosition'],_0x5b8bd7=_0x40903a['splitPosition']['parent'];_0x40903a['_execute']();const _0x36452c=_0x5b8bd7['getAttribute']('vid_end'),_0x1ada83=_0x40903a['insertionPosition']['nodeAfter'];if(_0x324007){const _0x324c3d=_0x1ada83['getAttribute']('vid_end'),_0x53f722=_0x5b8bd7['getAttribute']('vid_end');_0x5b8bd7['_setAttribute']('vid_end',_0x324c3d),_0x1ada83['_setAttribute']('vid_end',_0x53f722),this['_touched']['set'](_0x5b8bd7['getAttribute']('vid_end'),{'userId':_0xcda1d9}),this['_touched']['set'](_0x1ada83['getAttribute']('vid_start'),{'userId':_0xcda1d9});}else{const _0x3f00a7=this['_revisionId']++,_0x368f40=this['_revisionId']++;_0x5b8bd7['_setAttribute']('vid_end',_0x3f00a7),_0x1ada83['_setAttribute']('vid_start',_0x368f40),_0x1ada83['_setAttribute']('vid_end',_0x36452c),this['_touched']['set'](_0x3f00a7,{'userId':_0xcda1d9}),this['_touched']['set'](_0x368f40,{'userId':_0xcda1d9});}}['_handleMarkerOperation'](_0x3d3dcb){if(!_0x3d3dcb['affectsData'])return;const _0x598609=(_0x3d3dcb=this['_cloneOperation'](_0x3d3dcb,this['_diffRoots']))['oldRange']?_0x3d3dcb['oldRange']['root']:null,_0x126259=_0x3d3dcb['newRange']?_0x3d3dcb['newRange']['root']:null;_0x598609&&this['_markers']['delete'](_0x3d3dcb['name']),_0x126259&&this['_markers']['set'](_0x3d3dcb['name'],_0x3d3dcb['newRange']['clone']());const _0x2d188f=null===_0x3d3dcb['_authorId']?null:_0x3d3dcb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5d1bad=_0x3d3dcb['name'];if(!this['_touchedMarkers']['has'](_0x5d1bad))return void this['_touchedMarkers']['set'](_0x5d1bad,{'range':_0x3d3dcb['oldRange'],'userId':_0x2d188f});const _0x377944=this['_touchedMarkers']['get'](_0x5d1bad),_0x40e6f0=_0x377944['range'],_0x4e72d7=_0x3d3dcb['newRange'];null==_0x40e6f0&&null==_0x4e72d7||_0x40e6f0&&_0x4e72d7&&_0x40e6f0['isEqual'](_0x4e72d7)?this['_touchedMarkers']['delete'](_0x3d3dcb['name']):_0x377944['userId']=_0x2d188f;}['_handleRootOperation'](_0x21515b,_0x2fbffe){this['_diffRoots']['has'](_0x21515b['rootName'])?this['_diffRoots']['get'](_0x21515b['rootName'])['_isAttached']=_0x21515b['isAdd']:(this['_diffRoots']['set'](_0x21515b['rootName'],N(_0x21515b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x21515b['rootName'],{}),_0x2fbffe&&this['_idsRoots']['set'](_0x21515b['rootName'],N(_0x21515b['rootName'],!0x0)));const _0x4fae48=null===_0x21515b['_authorId']?null:_0x21515b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48a6b3=this['_touchedRoots']['get'](_0x21515b['rootName']);_0x48a6b3&&_0x48a6b3['userId']===_0x4fae48?this['_touchedRoots']['delete'](_0x21515b['rootName']):this['_touchedRoots']['set'](_0x21515b['rootName'],{'userId':_0x4fae48,'isAttached':_0x21515b['isAdd']});}['_handleRootAttributeOperation'](_0x3614ba){const _0x11cf6f=this['_diffRootsAttributes']['get'](_0x3614ba['root']['rootName']);null===_0x3614ba['newValue']?delete _0x11cf6f[_0x3614ba['key']]:_0x11cf6f[_0x3614ba['key']]=_0x3614ba['newValue'];}}function K(_0x74f6e7){const _0x413d98=N(_0x74f6e7['rootName'],_0x74f6e7['isAttached']());for(const _0x2e7b33 of _0x74f6e7['getChildren']()){const _0x374312=_0x2e7b33['_clone'](!0x0);_0x413d98['_appendChild'](_0x374312);}return _0x413d98;}function N(_0x4280f5,_0x4fcd5f=!0x0){const _0x22f810=new _0x1af8e3();return _0x22f810['rootName']=_0x4280f5,_0x22f810['_isAttached']=_0x4fcd5f,_0x22f810['isAttached']=()=>_0x22f810['_isAttached'],_0x22f810;}function P(_0x2de89b,_0x1189b1,_0x31a5af){const _0x3ba5ac='elementEnd'==_0x2de89b['type']?_0x31a5af['createPositionAt'](_0x2de89b['item'],'end'):_0x31a5af['createPositionBefore'](_0x2de89b['item']);return _0x31a5af['createPositionFromPath'](_0x1189b1,_0x3ba5ac['path'],_0x3ba5ac['stickiness']);}function V(_0x35612e,_0x27c7d4,_0x468e63){const _0x5d0b02='elementStart'==_0x35612e['type']?_0x468e63['createPositionAt'](_0x35612e['item'],0x0):_0x468e63['createPositionAfter'](_0x35612e['item']);return _0x468e63['createPositionFromPath'](_0x27c7d4,_0x5d0b02['path'],_0x5d0b02['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xc2cfc7(_0x2046bb){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x143b9f,_0x325cd8){super(_0x143b9f),this['focusTracker']=new _0x5166bf(),this['keystrokes']=new _0xc25723(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x325cd8),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'](),_0x5e784e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x40d964=_0x294b1a=>_0x294b1a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x40d964),this['keystrokes']['set']('arrowleft',_0x40d964),this['keystrokes']['set']('arrowup',_0x40d964),this['keystrokes']['set']('arrowdown',_0x40d964);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xd32b50){this['revisionNameInputView']['fieldView']['element']['value']=_0xd32b50['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2db5cf){const _0x212949=new et(this['locale'],ti),_0x3fa764=_0x212949['fieldView'];_0x3fa764['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x7e7104=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2db5cf&&(_0x7e7104+='\x20('+m(this['locale'],'optional')+')'),(_0x212949['label']=_0x7e7104,_0x3fa764['on']('input',()=>{this['revisionNameInputValue']=_0x3fa764['element']['value']['trim']();}),_0x212949);}}class l extends _0x460205{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1eabe0=this['editor'],_0x3ad443=_0x1eabe0['plugins']['get']('RevisionTracker');_0x1eabe0['ui']['componentFactory']['add']('revisionHistory',_0x15d911=>{const _0x379f96=_0x25c92f(_0x15d911),_0x9b4623=_0x379f96['panelView']['children'],_0x58bb58=new _0xb16cae(_0x15d911),_0x2d4cc1=new _0x10cdef(_0x15d911),_0x5bdcb3=this['_createSaveRevisionButton'](_0x2f12ca),_0x2ef181=new _0x10cdef(_0x15d911),_0xc9fdff=this['_createOpenRevisionButton'](_0x2f12ca);return _0x379f96['bind']('isEnabled')['to'](_0x3ad443,'isReady',_0x3ad443,'isEnabled',_0x1eabe0,'isReadOnly',(_0x648438,_0xbb5eb3,_0x38077d)=>_0x648438&&_0xbb5eb3&&!_0x38077d),_0x379f96['buttonView']['set']({'icon':_0x20669c,'label':m(_0x15d911,'Revision\x20history'),'tooltip':!0x0}),_0x5bdcb3['set']({'withText':!0x0,'role':'menuitem'}),_0xc9fdff['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0xc9fdff,'execute',()=>{_0x379f96['isOpen']=!0x1,_0x1eabe0['editing']['view']['focus']();},{'priority':'low'}),_0x2d4cc1['children']['add'](_0x5bdcb3),_0x2ef181['children']['add'](_0xc9fdff),_0x58bb58['role']='menu',_0x58bb58['items']['addMany']([_0x2d4cc1,_0x2ef181]),_0x9b4623['add'](_0x58bb58),_0x379f96;}),_0x1eabe0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x412b32=this['editor'],_0x2a86d6=_0x412b32['locale'],_0x1d6fa5=_0x412b32['plugins']['get']('RevisionTracker'),_0x5803ec=new _0x18c5dc(_0x2a86d6),_0x5db851=new _0x37ec2(_0x2a86d6);_0x5803ec['bind']('isEnabled')['to'](_0x1d6fa5,'isReady',_0x1d6fa5,'isEnabled',_0x412b32,'isReadOnly',(_0x3d63f9,_0x462f88,_0x33b9f6)=>_0x3d63f9&&_0x462f88&&!_0x33b9f6),_0x5803ec['buttonView']['set']({'icon':_0x20669c,'label':m(_0x2a86d6,'Revision\x20history')});const _0x42ead5=new _0x3f38dc(_0x2a86d6,_0x5803ec),_0x1f2a50=this['_createSaveRevisionButton'](_0x69a376);_0x1f2a50['delegate']('execute')['to'](_0x5803ec),_0x42ead5['children']['add'](_0x1f2a50),_0x5db851['items']['add'](_0x42ead5);const _0x23ca5c=new _0x3f38dc(_0x2a86d6,_0x5803ec),_0x24de29=this['_createOpenRevisionButton'](_0x69a376);return _0x24de29['delegate']('execute')['to'](_0x5803ec),_0x23ca5c['children']['add'](_0x24de29),_0x5db851['items']['add'](_0x23ca5c),_0x5803ec['panelView']['children']['add'](_0x5db851),_0x5803ec;}['_createSaveRevisionButton'](_0x501e83){const _0x2c2e59=this['editor'],_0x5b3f5c=_0x2c2e59['plugins']['get']('RevisionTracker'),_0x272538=new _0x501e83(_0x2c2e59['locale']);return _0x272538['set']({'label':m(_0x2c2e59['locale'],'Save\x20current\x20revision')}),_0x272538['bind']('isEnabled')['to'](_0x5b3f5c,'isReady',_0x5b3f5c,'isEnabled',_0x2c2e59,'isReadOnly',(_0x3ee10d,_0x4e8301,_0x32365f)=>_0x3ee10d&&_0x4e8301&&!_0x32365f),this['listenTo'](_0x272538,'execute',()=>{this['_showDialog']();}),_0x272538;}['_createOpenRevisionButton'](_0x2367f3){const _0x1559a2=this['editor'],_0x27411f=_0x1559a2['plugins']['get']('RevisionTracker'),_0x5c1fa0=new _0x2367f3(_0x1559a2['locale']);return _0x5c1fa0['set']({'label':m(_0x1559a2['locale'],'Open\x20revision\x20history')}),_0x5c1fa0['bind']('isEnabled')['to'](_0x27411f,'isReady',_0x1559a2,'isReadOnly',(_0x42fa24,_0x14931f)=>_0x42fa24&&!_0x14931f),this['listenTo'](_0x5c1fa0,'execute',()=>{_0x1559a2['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5c1fa0;}['_showDialog'](){const _0x5444fc=this['editor'],_0x5e3cc3=_0x5444fc['locale'],_0x4e24be=_0x5444fc['plugins']['get']('Dialog'),_0x3c0d09=_0x5444fc['plugins']['get']('RevisionTracker');function _0x186cb1(_0x5e1de7){_0x5444fc['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5e1de7['revisionName']?_0x5e1de7['revisionNameInputView']['errorText']=m(_0x5e3cc3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5444fc['plugins']['get'](h)['saveRevision']({'name':_0x5e1de7['revisionName']}),_0x4e24be['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x186cb1(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4e24be['show']({'id':'revisionSave','title':m(_0x5e3cc3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x5444fc['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4e24be['hide']()},{'label':m(_0x5444fc['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x26e8e7){_0x26e8e7['bind']('isEnabled')['to'](_0x3c0d09,'isReady',_0x3c0d09,'isEnabled',_0x5444fc,'isReadOnly',(_0x2aa6ac,_0x5cd4ae,_0x449764)=>_0x2aa6ac&&_0x5cd4ae&&!_0x449764);},'onExecute':()=>_0x186cb1(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x127bb3=this['editor'],_0x36f6cf=_0x127bb3['locale'];this['_saveRevisionFormView']=new he(_0x36f6cf,_0x127bb3['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2046bb{['changeId'];['_model'];constructor(_0x9b46ef,_0x106b2b){super(_0x9b46ef),this['_model']=_0x106b2b,this['changeId']=_0x106b2b['id'];const _0x24a2c8=this['bindTemplate'],_0x3e7474=m(_0x9b46ef,_0x106b2b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x106b2b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x106b2b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x24a2c8['to']('type',_0x2e6192=>'ck-revision-change__'+_0x2e6192)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3e7474}]},{'text':'\x20'+_0x106b2b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x31b636(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2f1d93){super(),this['id']=_0x2f1d93['id']||_0x3b18bf(),this['author']=_0x2f1d93['author'],this['type']=_0x2f1d93['type'],this['data']=_0x2f1d93['data']||{},this['rootName']=_0x2f1d93['rootName'],this['set']('createdAt',_0x2f1d93['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(_0x1629ca,_0x17c855){this['newRevisionId']=_0x1629ca,this['oldRevisionId']=_0x17c855,this['changes']=new _0x2be9e4();}['_setChanges'](_0x42a00a){for(const _0x1d0fd5 of _0x42a00a)this['changes']['add'](_0x1d0fd5);}}class u extends _0x460205{['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[_0x437785,_0x5f030d,S,$];}constructor(_0x3ecb63){super(_0x3ecb63),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',(_0xd66ef1,_0x352e04,_0x15e581)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2c4358=>{for(const _0x3f1faf of this['editor']['editing']['view']['document']['roots'])_0x15e581?_0x2c4358['removeClass']('ck-editor__editable__overlay',_0x3f1faf):_0x2c4358['addClass']('ck-editor__editable__overlay',_0x3f1faf);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x464541=>null!==_0x464541),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3f57b9,_0x2e7918,_0x59f7a8)=>_0x3f57b9&&_0x59f7a8?_0x2e7918['changes']['getIndex'](_0x59f7a8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x30b944,_0x19c85e)=>_0x30b944?_0x19c85e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5f030d);}['init'](){const _0x29357b=this['editor'],_0xf324d8=new rt(_0x29357b,{'direction':'backward'}),_0x5508fa=new rt(_0x29357b,{'direction':'forward'});(_0x29357b['commands']['add']('showPreviousChange',_0xf324d8),_0x29357b['commands']['add']('showNextChange',_0x5508fa),_0x29357b['commands']['add']('restoreRevision',new nt(_0x29357b)),this['on']('change:numberOfChanges',()=>{_0xf324d8['refresh'](),_0x5508fa['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x29357b['enableReadOnlyMode']('revision-viewer'),_0x29357b['plugins']['has']('WidgetToolbarRepository'))&&_0x29357b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x117086){return await this['_utils']['loadRevisionData'](_0x117086,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x117086);}async['getRevisionRootsAttributes'](_0x4045e4){return await this['_utils']['loadRevisionData'](_0x4045e4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4045e4);}async['compare'](_0xb27163,_0x24a77a,_0x482828=!0x1){if(!this['isEnabled'])return;const _0x3534e3=this['diff'],_0x380632=this['repository'],_0x2c3e77='string'==typeof _0xb27163?_0x380632['getRevision'](_0xb27163):_0xb27163,_0x272155='string'==typeof _0x24a77a?_0x380632['getRevision'](_0x24a77a):_0x24a77a,_0x33f4d1=_0x2c3e77['id'],_0x3bfa57=_0x272155?_0x272155['id']:null;if(!_0x482828&&this['diff']&&this['diff']['newRevisionId']===_0x33f4d1&&this['diff']['oldRevisionId']===_0x3bfa57)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x33f4d1,_0x3bfa57);const _0x5d96ad=this['_getRevisionsRange'](_0x2c3e77,_0x272155,!0x0)['map'](_0x1158be=>this['_utils']['loadRevisionData'](_0x1158be,this['adapter']));return _0x5d96ad['push'](new Promise(_0x3e8b74=>{setTimeout(_0x3e8b74,0x14);})),Promise['all'](_0x5d96ad)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5f0904=this['_getDiff'](_0x33f4d1,_0x3bfa57);for(const _0x35891b of _0x5f0904['changes'])this['_changeIdToChange']['set'](_0x35891b['id'],_0x35891b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x35134b=>{for(const _0xe8435f of this['editor']['model']['document']['getRootNames']())_0x35134b['detachRoot'](_0xe8435f);for(const _0x31e9b2 of Object['keys'](_0x5f0904['model'])){const _0x2c0337=_0x35134b['addRoot'](_0x31e9b2);for(const _0x4e3a65 of Object['keys'](_0x5f0904['attributes'][_0x31e9b2]))_0x35134b['setAttribute'](_0x4e3a65,_0x5f0904['attributes'][_0x31e9b2][_0x4e3a65],_0x2c0337);_0x35134b['insert'](_0x5f0904['model'][_0x31e9b2],_0x2c0337,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5f0904['changes'])),this['isReady']=!0x0;})['catch'](_0x339832=>{console['error'](_0x339832),this['_cleanUp'](),_0x3534e3&&(this['diff']=_0x3534e3),this['isReady']=!0x0;});}['addRevisionData'](_0x1f1183,_0x491f01){const _0x429dd0=this['repository']['createRevision'](_0x1f1183);return _0x429dd0['on']('_update',(_0x5111a1,_0x46ae2b,_0x431ee7)=>_0x491f01(_0x46ae2b,_0x431ee7,_0x429dd0)),this['repository']['addRevision'](_0x429dd0),_0x429dd0;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x52a471=>{for(const _0x5af8dd of this['editor']['model']['document']['getRootNames']())_0x52a471['detachRoot'](_0x5af8dd);});}['_sortAndFilterDiffChanges'](_0x5ee0b6){const _0x53df67=[],_0x2cdc2d=new Map();for(const _0x8727cb of this['editor']['model']['document']['getRootNames']()){const _0x3861fb=this['editor']['editing']['view']['getDomRoot'](_0x8727cb);if(!_0x3861fb)continue;const _0x444526=_0x3861fb['getClientRects']()['item'](0x0);_0x444526&&(_0x53df67['push'](_0x8727cb),_0x2cdc2d['set'](_0x8727cb,_0x444526));}return _0x53df67['sort']((_0x500cb4,_0x33dda7)=>{const _0x174972=_0x2cdc2d['get'](_0x500cb4),_0x429d8a=_0x2cdc2d['get'](_0x33dda7);return _0x174972['y']-_0x429d8a['y']||_0x174972['x']-_0x429d8a['x'];}),(_0x5ee0b6=_0x5ee0b6['filter'](_0x34a876=>_0x53df67['includes'](_0x34a876['rootName'])))['sort']((_0x266a22,_0x4f190f)=>_0x53df67['indexOf'](_0x266a22['rootName'])-_0x53df67['indexOf'](_0x4f190f['rootName'])),_0x5ee0b6;}['_makeTape'](_0x349c05){const _0x3871b3=Array['from'](_0x349c05['markers'])['filter'](([_0x48e1d2,_0x5ee9de])=>_0x48e1d2['startsWith']('revision:')&&!_0x5ee9de['isCollapsed']),_0x520500=Array['from'](this['editor']['model']['createRangeIn'](_0x349c05)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3871b3['length'])for(const _0x54d513 of _0x520500){const [_0xbe9ec6,_0x3b1db0]=_0x3871b3[0x0],[,_0x2eb811,_0x425cd1]=_0xbe9ec6['split'](':');if(_0x3b1db0['end']['isEqual'](_0x54d513['nextPosition'])&&_0x3871b3['shift'](),(_0x54d513['previousPosition']['isEqual'](_0x3b1db0['start'])||_0x54d513['previousPosition']['isAfter'](_0x3b1db0['start']))&&('insertion'==_0x2eb811?_0x54d513['isAdded']={'userId':_0x425cd1}:'deletion'==_0x2eb811&&(_0x54d513['isRemoved']={'userId':_0x425cd1})),0x0==_0x3871b3['length'])break;}return _0x520500;}['_refreshStartEndIndex'](_0x39572d){const _0x45c0d2=new Map();for(let _0x15b1f1=0x0;_0x15b1f1<_0x39572d['length'];_0x15b1f1++)'text'===_0x39572d[_0x15b1f1]['type']?(_0x39572d[_0x15b1f1]['item']['startIndex']=_0x15b1f1,_0x39572d[_0x15b1f1]['item']['endIndex']=_0x15b1f1):('elementStart'===_0x39572d[_0x15b1f1]['type']?_0x39572d[_0x15b1f1]['item']['startIndex']=_0x15b1f1:'elementEnd'===_0x39572d[_0x15b1f1]['type']&&(_0x39572d[_0x15b1f1]['item']['endIndex']=_0x15b1f1),_0x45c0d2['set'](_0x39572d[_0x15b1f1]['id'],_0x15b1f1));for(const _0x463bb5 of _0x45c0d2['values']())'elementStart'===_0x39572d[_0x463bb5]['type']?_0x39572d[_0x463bb5]['item']['endIndex']=_0x45c0d2['get'](_0x39572d[_0x463bb5]['pairId']):'elementEnd'===_0x39572d[_0x463bb5]['type']&&(_0x39572d[_0x463bb5]['item']['startIndex']=_0x45c0d2['get'](_0x39572d[_0x463bb5]['pairId']));}['_processTape'](_0x58975b){for(let _0xcda1cd=0x0;_0xcda1cd<_0x58975b['length'];_0xcda1cd++){if('elementStart'===_0x58975b[_0xcda1cd]['type'])_0x58975b[_0xcda1cd]['item']['startIndex']=_0xcda1cd;else{if('elementEnd'===_0x58975b[_0xcda1cd]['type']){_0x58975b[_0xcda1cd]['item']['endIndex']=_0xcda1cd;const _0x39ffae=_0x58975b[_0xcda1cd]['item']['startIndex'];_0x58975b[_0x39ffae]['pairId']=_0x58975b[_0xcda1cd]['id'],_0x58975b[_0xcda1cd]['pairId']=_0x58975b[_0x39ffae]['id'];}else _0x58975b[_0xcda1cd]['item']['startIndex']=_0xcda1cd,_0x58975b[_0xcda1cd]['item']['endIndex']=_0xcda1cd,_0x58975b[_0xcda1cd]['pairId']=null;}_0x58975b[_0xcda1cd]['markersStart']||(_0x58975b[_0xcda1cd]['markersStart']=[],_0x58975b[_0xcda1cd]['markersEnd']=[]);}}['_markInsertions'](_0x1bbcb8,_0x25fc77){const _0x927d51=_0x1bbcb8['filter'](_0x30f962=>!_0x30f962['isAdded']);for(let _0x1a8b10=0x0;_0x1a8b10<_0x25fc77['length'];_0x1a8b10++)_0x25fc77[_0x1a8b10]['isAdded']&&(_0x927d51[_0x1a8b10]['isAdded']=_0x25fc77[_0x1a8b10]['isAdded']);}['_getDiff'](_0x2f4a7f,_0x3a4bea=null){const _0x5c206e=this['repository']['getRevision'](_0x2f4a7f),_0x2d36ec=_0x3a4bea?this['repository']['getRevision'](_0x3a4bea):null,_0x33f64d=this['_getRevisionsRange'](_0x5c206e,_0x2d36ec),_0x3482e0=_0x33f64d[_0x33f64d['length']-0x1],_0x228236=new Map(),_0x23a371={'model':{},'attributes':{},'changes':[]},_0x17c459=new Set(),_0x316ad0=new Map();for(let _0x10e6fd=_0x33f64d['length']-0x1;_0x10e6fd>=0x0;_0x10e6fd--){const _0x462d0c=_0x33f64d[_0x10e6fd];for(const _0x44b178 of Object['keys'](_0x462d0c['diffData']))if(_0x462d0c['diffData'][_0x44b178]['attachChange']){const _0x3e5d3e=_0x462d0c['diffData'][_0x44b178]['attachChange'];_0x3e5d3e['isAttached']?(_0x17c459['add'](_0x44b178),_0x316ad0['has'](_0x44b178)&&_0x316ad0['get'](_0x44b178)['userId']==_0x3e5d3e['userId']?_0x316ad0['delete'](_0x44b178):_0x316ad0['set'](_0x44b178,_0x3e5d3e)):_0x316ad0['has'](_0x44b178)?(_0x17c459['delete'](_0x44b178),_0x316ad0['delete'](_0x44b178)):(_0x17c459['add'](_0x44b178),_0x316ad0['set'](_0x44b178,_0x3e5d3e));}else _0x17c459['add'](_0x44b178);}for(const _0x1eec13 of _0x17c459){const _0x3a3669=_0x316ad0['has'](_0x1eec13)&&!_0x316ad0['get'](_0x1eec13)['isAttached'];let _0x3064b8=_0x3a3669?_0x33f64d['length']-0x1:0x0;const _0x34992e=_0x3a3669?-0x1:0x1;for(;_0x33f64d[_0x3064b8];){const _0x44244b=_0x33f64d[_0x3064b8];if(_0x44244b['diffData'][_0x1eec13]){const _0x30adda=_0x3a3669?_0x44244b['diffData'][_0x1eec13]['attributesBefore']:_0x44244b['diffData'][_0x1eec13]['attributesAfter'];_0x23a371['attributes'][_0x1eec13]=_0x30adda?_0x1318b9(_0x30adda):{};break;}_0x3064b8+=_0x34992e;}}for(const _0x4ccc2b of _0x33f64d){_0x4ccc2b['model']={};for(const _0x509e97 of _0x4ccc2b['authors'])_0x228236['set'](_0x509e97['id'],_0x509e97);for(const _0x57c0b7 of _0x17c459){const _0xd817fa=_0x4ccc2b['diffData'][_0x57c0b7]?_0x4ccc2b['diffData'][_0x57c0b7]['insertions']:'[]',_0x2ae166=_0x4ccc2b['diffData'][_0x57c0b7]?_0x4ccc2b['diffData'][_0x57c0b7]['deletions']:'[]';_0x4ccc2b['model'][_0x57c0b7]={'insertions':this['_utils']['_makeModelFromViewString'](_0xd817fa),'deletions':this['_utils']['_makeModelFromViewString'](_0x2ae166)};}}for(const _0x3a26fb of _0x17c459){let _0x373ccb=null,_0x356bf8=0x0;const _0x3c33c6=new Map(Array['from'](_0x5c206e['model'][_0x3a26fb]['insertions']['markers'])['filter'](([_0xf27a30])=>!_0xf27a30['startsWith']('revision:')));let _0x2c90d9=0x0;for(const _0x5a37fe of _0x33f64d){const _0x1bd323=this['_makeTape'](_0x5a37fe['model'][_0x3a26fb]['insertions']);_0x5a37fe==_0x5c206e?(_0x373ccb=_0x1bd323,_0x356bf8=_0x373ccb['length'],_0x373ccb['forEach'](_0x2497f1=>{_0x2497f1['id']=_0x2c90d9++;}),this['_processTape'](_0x373ccb)):this['_markInsertions'](_0x373ccb,_0x1bd323);const _0x494fc1=_0x373ccb['filter'](_0x3f56bd=>!_0x3f56bd['isAdded'])['map'](_0x17f420=>_0x17f420['id']);let _0x5df528=0x0;const _0x119331=this['_makeTape'](_0x5a37fe['model'][_0x3a26fb]['deletions']);_0x119331['forEach'](_0x127f32=>{_0x127f32['isRemoved']?_0x127f32['id']=_0x356bf8++:_0x127f32['id']=_0x494fc1[_0x5df528++];}),this['_processTape'](_0x119331),this['_setDistance'](_0x373ccb,'isAdded'),this['_setDistance'](_0x119331,'isRemoved'),_0x5a37fe==_0x5c206e&&this['_markMarkers'](_0x373ccb,_0x3c33c6),_0x373ccb=this['_joinTapes'](_0x373ccb,_0x119331),this['_refreshStartEndIndex'](_0x373ccb),this['_setDistance'](_0x373ccb,'isRemoved');}_0x373ccb=_0x373ccb['filter'](_0x13c60a=>!(_0x13c60a['isAdded']&&_0x13c60a['isRemoved']));const _0x22126e=new Map(_0x3482e0['model'][_0x3a26fb]['deletions']['markers']),_0x4220e0=new Set(_0x3c33c6['keys']());for(const _0x3929c2 of _0x22126e['keys']())_0x4220e0['delete'](_0x3929c2);this['_markSuggestions'](_0x373ccb,_0x4220e0),this['_fixObsoleteTags'](_0x373ccb),_0x373ccb=this['_removeMissingPairs'](_0x373ccb),_0x373ccb=this['_markMismatchedRemovedTags'](_0x373ccb),_0x373ccb=this['_removeUnsupportedChanges'](_0x373ccb);const {root:_0x959694,changes:_0x58ccc0}=this['_makeModelFromTape'](_0x373ccb,_0x228236,_0x3a26fb);_0x23a371['model'][_0x3a26fb]=_0x959694;const _0x56c012=_0x316ad0['get'](_0x3a26fb);if(_0x56c012){const _0x4ae47d=_0x228236['get'](_0x56c012['userId']),_0x3b55cf=new G({'author':_0x4ae47d,'type':_0x56c012['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3a26fb});_0x58ccc0['unshift'](_0x3b55cf),_0x23a371['attributes'][_0x3a26fb]['revisionHistoryAttachChange']=_0x3b55cf['id'];}_0x23a371['changes']=_0x23a371['changes']['concat'](_0x58ccc0);}return _0x23a371;}['_markMarkers'](_0x11619c,_0x484689){for(let _0x21e3fc=0x0;_0x21e3fc<_0x11619c['length'];_0x21e3fc++)for(const [_0x488797,_0x463313]of _0x484689)!_0x463313['isCollapsed']&&_0x463313['start']['isEqual'](_0x11619c[_0x21e3fc]['previousPosition'])&&_0x11619c[_0x21e3fc]['markersStart']['push'](_0x488797),_0x463313['end']['isEqual'](_0x11619c[_0x21e3fc]['nextPosition'])&&_0x11619c[_0x21e3fc]['markersEnd']['push'](_0x488797);}['_joinTapes'](_0x5e0818,_0x5ad06d){let _0x379d76=[],_0x319b02=0x0,_0x5c8738=0x0;for(;_0x319b02<_0x5e0818['length']||_0x5c8738<_0x5ad06d['length'];){const _0x9613d3=_0x5e0818[_0x319b02]||{},_0x4a32f7=_0x5ad06d[_0x5c8738]||{};if(_0x9613d3['id']==_0x4a32f7['id'])_0x319b02++,_0x5c8738++,_0x379d76['push'](_0x9613d3);else{if(_0x4a32f7['isRemoved']&&_0x9613d3['isAdded']){const {commonTape:_0x518a78,iEnd:_0x258fe2,jEnd:_0x1ebec4}=this['_threeWayMerge'](_0x5e0818,_0x319b02,_0x5ad06d,_0x5c8738);_0x379d76=_0x379d76['concat'](_0x518a78),_0x319b02=_0x258fe2,_0x5c8738=_0x1ebec4;}else _0x4a32f7['isRemoved']?(_0x5c8738++,_0x379d76['push'](_0x4a32f7)):(_0x319b02++,_0x379d76['push'](_0x9613d3));}}return _0x379d76;}['_markSuggestions'](_0x1001fb,_0xd5f54f){const _0x3d5f39=[];for(let _0x5e1558=0x0;_0x5e1558<_0x1001fb['length'];_0x5e1558++){for(let _0x29d551=0x0;_0x29d551<_0x1001fb[_0x5e1558]['markersStart']['length'];_0x29d551++){const _0x3bcd8a=_0x1001fb[_0x5e1558]['markersStart'][_0x29d551];if(!_0xd5f54f['has'](_0x3bcd8a))continue;const {group:_0x806f36,type:_0x460b6e,authorId:_0x2ef17d}=_0x38c1da(_0x3bcd8a);'revision-suggestion'!=_0x806f36||'insertion'!=_0x460b6e&&'deletion'!=_0x460b6e||(_0x3d5f39['unshift']({'type':_0x460b6e,'name':_0x3bcd8a,'userId':_0x2ef17d}),_0x1001fb[_0x5e1558]['markersStart']['splice'](_0x29d551,0x1),_0x29d551--);}_0x29f289(_0x1001fb[_0x5e1558]);for(let _0x19d74d=0x0;_0x19d74d<_0x1001fb[_0x5e1558]['markersEnd']['length'];_0x19d74d++){const _0x36e835=_0x1001fb[_0x5e1558]['markersEnd'][_0x19d74d];if(!_0xd5f54f['has'](_0x36e835))continue;const {group:_0x212370,type:_0x2b3ed0}=_0x38c1da(_0x36e835);if('revision-suggestion'!=_0x212370||'insertion'!=_0x2b3ed0&&'deletion'!=_0x2b3ed0)continue;_0x1001fb[_0x5e1558]['markersEnd']['splice'](_0x19d74d,0x1),_0x19d74d--;const _0x59959a=_0x3d5f39['findIndex'](_0x274bed=>_0x274bed['name']==_0x36e835);_0x59959a>-0x1&&_0x3d5f39['splice'](_0x59959a,0x1);}}function _0x38c1da(_0x2fa29d){const _0x5a3077=_0x2fa29d['split'](':');return{'group':_0x5a3077[0x0],'type':_0x5a3077[0x1],'subType':_0x5a3077['length']>=0x5?_0x5a3077[0x2]:null,'id':_0x5a3077['length']<0x5?_0x5a3077[0x2]:_0x5a3077[0x3],'authorId':_0x5a3077['length']<0x5?_0x5a3077[0x3]:_0x5a3077[0x4],'markerCount':0x6==_0x5a3077['length']?_0x5a3077[0x5]:null};}function _0x29f289(_0x361cca){for(let _0x2219fe=0x0;_0x2219fe<_0x3d5f39['length'];_0x2219fe++){if(_0x361cca['isAdded']&&'insertion'==_0x3d5f39[_0x2219fe]['type']&&_0x361cca['isAdded']['userId']==_0x3d5f39[_0x2219fe]['userId'])return _0x361cca['isAddSuggestion']=_0x3d5f39[_0x2219fe],void delete _0x361cca['isAdded'];if(!_0x361cca['isAdded']&&!_0x361cca['isRemoved']&&'deletion'==_0x3d5f39[_0x2219fe]['type'])return void(_0x361cca['isRemoveSuggestion']=_0x3d5f39[_0x2219fe]);}}}['_setDistance'](_0x4ef6fd,_0x1f768d){let _0x30892c=0x0,_0x57a664=!0x1;const _0x7f5add=new Map();for(const _0x332028 of _0x4ef6fd)_0x332028[_0x1f768d]?_0x57a664&&(_0x30892c++,_0x57a664=!0x1):(_0x30892c++,_0x57a664=!0x0),_0x7f5add['set'](_0x332028['id'],_0x30892c);for(let _0x62b0f3=0x0;_0x62b0f3<_0x4ef6fd['length'];_0x62b0f3++){if('isRemoved'==_0x1f768d&&_0x4ef6fd[_0x62b0f3]['isAdded']||'isAdded'==_0x1f768d&&_0x4ef6fd[_0x62b0f3]['isRemoved'])continue;if('text'==_0x4ef6fd[_0x62b0f3]['type']){_0x4ef6fd[_0x62b0f3]['distance']=0x0;continue;}const _0x1a21a0=_0x7f5add['get'](_0x4ef6fd[_0x62b0f3]['pairId']),_0xa92ecd=_0x7f5add['get'](_0x4ef6fd[_0x62b0f3]['id']);_0x4ef6fd[_0x62b0f3]['distance']=_0x1a21a0-_0xa92ecd;}}['_getRevisionsRange'](_0x3fca95,_0x591e18,_0x1bb6a0=!0x1){const _0xff1629=[];let _0x162b97=this['repository']['getIndex'](_0x3fca95),_0x1b2c86=this['repository']['getIndex'](_0x591e18);for(-0x1==_0x1b2c86&&(_0x1b2c86=this['repository']['_revisions']['length'],_0x1bb6a0=!0x1);_0x162b97<_0x1b2c86;)_0xff1629['push'](this['repository']['getRevision'](_0x162b97)),_0x162b97++;return _0x1bb6a0&&_0xff1629['push'](this['repository']['getRevision'](_0x162b97)),_0xff1629;}['_threeWayMerge'](_0x38820f,_0x535b9d,_0x55f5ff,_0x34a706){const _0x59ff65=this['editor']['model']['schema'];let _0x5b3a20=_0x535b9d;for(;_0x38820f[_0x5b3a20]&&_0x38820f[_0x5b3a20]['isAdded'];)_0x5b3a20++;let _0x390e3b=_0x34a706;for(;_0x55f5ff[_0x390e3b]&&_0x55f5ff[_0x390e3b]['isRemoved'];)_0x390e3b++;_0x515c7f(_0x38820f,_0x535b9d,_0x5b3a20),_0x515c7f(_0x55f5ff,_0x34a706,_0x390e3b);const _0x127c79=_0x55f5ff['slice'](_0x34a706,_0x390e3b)['concat'](_0x38820f['slice'](_0x535b9d,_0x5b3a20));return _0x127c79['sort']((_0x429353,_0x251a9e)=>_0x429353['side']!=_0x251a9e['side']?_0x429353['side']-_0x251a9e['side']:_0x429353['level']!=_0x251a9e['level']?_0x429353['level']-_0x251a9e['level']:_0x429353['distance']!=_0x251a9e['distance']?_0x251a9e['distance']-_0x429353['distance']:!!_0x429353['isAdded']!=!!_0x251a9e['isAdded']?-0x1==_0x429353['side']||0x0==_0x429353['side']?_0x429353['isAdded']?-0x1:0x1:_0x429353['isAdded']?0x1:-0x1:_0x429353['index']-_0x251a9e['index']),{'commonTape':_0x127c79,'iEnd':_0x5b3a20,'jEnd':_0x390e3b};function _0x515c7f(_0x15cea3,_0x58e7cf,_0x28fab2){let _0x281a2c=-0x1,_0x58196a=Number['POSITIVE_INFINITY'],_0x5347d2=!0x0;for(let _0x52c7c8=_0x58e7cf;_0x52c7c8<_0x28fab2;_0x52c7c8++)if(_0x59ff65['isInline'](_0x15cea3[_0x52c7c8]['item'])||(_0x5347d2=!0x1),_0x15cea3[_0x52c7c8]['item']['startIndex']<_0x58e7cf&&(_0x281a2c=_0x52c7c8),_0x15cea3[_0x52c7c8]['item']['endIndex']>=_0x28fab2){_0x58196a=_0x52c7c8;break;}_0x5347d2&&(_0x281a2c=_0x28fab2-0x1);for(let _0x491b12=_0x58e7cf;_0x491b12<_0x28fab2;_0x491b12++)_0x15cea3[_0x491b12]['side']=_0x491b12<=_0x281a2c?-0x1:_0x491b12<_0x58196a?0x0:0x1,_0x15cea3[_0x491b12]['index']=_0x491b12;let _0x1401bf=0x0;for(let _0xdbcd28=_0x58e7cf;_0xdbcd28<=_0x281a2c;_0xdbcd28++)0x0==_0x15cea3[_0xdbcd28]['distance']?_0x15cea3[_0xdbcd28]['level']=_0x1401bf:(_0x1401bf++,_0x15cea3[_0xdbcd28]['level']=_0x1401bf,_0x1401bf++);for(let _0x519e52=_0x58e7cf;_0x519e52<_0x28fab2;_0x519e52++)0x0==_0x15cea3[_0x519e52]['side']&&(_0x15cea3[_0x519e52]['level']=_0x1401bf);_0x1401bf=0x0;for(let _0x5b95fe=_0x28fab2-0x1;_0x5b95fe>=_0x58196a;_0x5b95fe--)0x0==_0x15cea3[_0x5b95fe]['distance']?_0x15cea3[_0x5b95fe]['level']=_0x1401bf:(_0x1401bf--,_0x15cea3[_0x5b95fe]['level']=_0x1401bf,_0x1401bf--);}}['_fixObsoleteTags'](_0x38a601){const _0x55dec9=new Map(),_0x4f15ca=this['editor']['model']['schema'];for(let _0x570416=0x1;_0x570416<_0x38a601['length'];_0x570416++){let _0x18a9b4,_0x59e535,_0x258071;const _0x334948=_0x38a601[_0x570416],_0x5d586d=_0x38a601[_0x570416-0x1];if('text'==_0x334948['type'])continue;if(_0x334948['type']!=_0x5d586d['type'])continue;if(!_0x4f15ca['isBlock'](_0x5d586d['item'])||_0x4f15ca['isLimit'](_0x5d586d['item']))continue;if(!_0x4f15ca['isBlock'](_0x334948['item'])||_0x4f15ca['isLimit'](_0x334948['item']))continue;if((_0x38a601[_0x570416]['isAdded']||_0x38a601[_0x570416]['isAddSuggestion'])&&_0x38a601[_0x570416-0x1]['isRemoved'])_0x18a9b4=_0x38a601[_0x570416],_0x59e535=_0x38a601[_0x570416-0x1],_0x258071=_0x570416-0x1;else{if(!_0x38a601[_0x570416]['isRemoved']||!_0x38a601[_0x570416-0x1]['isAdded']&&!_0x38a601[_0x570416-0x1]['isAddSuggestion'])continue;_0x18a9b4=_0x38a601[_0x570416-0x1],_0x59e535=_0x38a601[_0x570416],_0x258071=_0x570416;}const _0x54f293=_0x18a9b4['level']==_0x59e535['level'],_0x379e1e=Math['abs'](_0x18a9b4['level'])<Math['abs'](_0x59e535['level'])&&0x0==_0x59e535['distance'];(_0x54f293||_0x379e1e)&&(_0x55dec9['set'](_0x59e535['id'],_0x18a9b4['id']),_0x38a601['splice'](_0x258071,0x1),_0x570416--,_0x18a9b4['isAdded']=!0x1);}for(let _0x4dcd8f=0x0;_0x4dcd8f<_0x38a601['length'];_0x4dcd8f++)_0x55dec9['has'](_0x38a601[_0x4dcd8f]['pairId'])&&(_0x38a601[_0x4dcd8f]['pairId']=_0x55dec9['get'](_0x38a601[_0x4dcd8f]['pairId']));}['_removeMissingPairs'](_0x44aca1){const _0x2e64a8=new Set(_0x44aca1['map'](_0x57fbac=>_0x57fbac['id']));for(let _0x227b1c=0x0;_0x227b1c<_0x44aca1['length'];_0x227b1c++)_0x2e64a8['has'](_0x44aca1[_0x227b1c]['pairId'])||0x0==_0x44aca1[_0x227b1c]['distance']||(_0x44aca1[_0x227b1c]['isIncorrect']=!0x0);return _0x44aca1['filter'](_0x211428=>!_0x211428['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1755ca){const _0x1c2697=new Set();for(let _0x36e46c=0x0;_0x36e46c<_0x1755ca['length'];_0x36e46c++){if(_0x1c2697['has'](_0x1755ca[_0x36e46c]['id'])&&_0x1755ca[_0x36e46c]['isRemoved']&&(_0x1755ca[_0x36e46c]['isIncorrect']=!0x0),_0x1755ca[_0x36e46c]['isIncorrect'])continue;if(0x0==_0x1755ca[_0x36e46c]['distance'])continue;if('elementStart'!=_0x1755ca[_0x36e46c]['type'])continue;if(null==_0x1755ca[_0x36e46c]['pairId'])continue;let _0x33e598=_0x36e46c+0x1,_0x5d54f6=0x0;for(;_0x1755ca[_0x33e598]['id']!=_0x1755ca[_0x36e46c]['pairId'];)'elementStart'==_0x1755ca[_0x33e598]['type']?_0x5d54f6++:'elementEnd'==_0x1755ca[_0x33e598]['type']&&_0x5d54f6--,_0x33e598++;if(0x0!=_0x5d54f6){if(_0x1755ca[_0x36e46c]['isRemoved'])_0x1755ca[_0x36e46c]['isIncorrect']=!0x0;else{for(;_0x33e598!=_0x36e46c;)_0x1755ca[_0x33e598]['isRemoved']&&0x0!=_0x1755ca[_0x33e598]['distance']&&(_0x1755ca[_0x33e598]['isIncorrect']=!0x0,_0x1c2697['add'](_0x1755ca[_0x33e598]['pairId'])),_0x33e598--;}}}return _0x1755ca['filter'](_0x1c8498=>!_0x1c8498['isIncorrect']);}['_removeUnsupportedChanges'](_0x263a4f){const _0x34185e=this['editor']['model']['schema'];for(let _0xff4654=0x0;_0xff4654<_0x263a4f['length'];_0xff4654++){if(!(_0x263a4f[_0xff4654]['isAdded']||_0x263a4f[_0xff4654]['isAddSuggestion']||_0x263a4f[_0xff4654]['isRemoved']||_0x263a4f[_0xff4654]['isRemoveSuggestion']))continue;if(0x0==_0x263a4f[_0xff4654]['distance'])continue;const _0x12fd66=_0x263a4f[_0xff4654]['item'];_0x34185e['isBlock'](_0x12fd66)||_0x34185e['isLimit'](_0x12fd66)||(_0x263a4f[_0xff4654]['isAdded']&&delete _0x263a4f[_0xff4654]['isAdded'],_0x263a4f[_0xff4654]['isAddSuggestion']&&delete _0x263a4f[_0xff4654]['isAddSuggestion'],_0x263a4f[_0xff4654]['isRemoveSuggestion']&&delete _0x263a4f[_0xff4654]['isRemoveSuggestion'],_0x263a4f[_0xff4654]['isRemoved']&&(_0x263a4f[_0xff4654]['isIncorrect']=!0x0));}return _0x263a4f['filter'](_0x2cda21=>!_0x2cda21['isIncorrect']);}['_makeModelFromTape'](_0x35150b,_0xd6a67a,_0x140e3b){const _0x5bd26b=new _0x1af8e3(),_0x520694=[],_0x4020bc=new Map(),_0x557ee7=this['editor']['model'],_0x3f15d2=_0x557ee7['schema'],_0x4d1384=[_0x5bd26b],_0x322b22={},_0x36bacc={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1c05ba=null;const _0x3cb4c2=[0x0];for(let _0x281d0e=0x0;_0x281d0e<_0x35150b['length'];_0x281d0e++)if('elementStart'===_0x35150b[_0x281d0e]['type']){_0x35150b[_0x281d0e]['previousPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2);const _0x5b223a=new _0x10eef6(_0x35150b[_0x281d0e]['item']['name'],_0x35150b[_0x281d0e]['item']['getAttributes']());_0x4d1384[0x0]['_appendChild'](_0x5b223a),_0x3cb4c2['push'](0x0),_0x4d1384['unshift'](_0x5b223a),_0x35150b[_0x281d0e]['nextPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2);}else'elementEnd'===_0x35150b[_0x281d0e]['type']?(_0x4d1384['shift'](),_0x35150b[_0x281d0e]['previousPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2),_0x3cb4c2['pop'](),_0x3cb4c2[_0x3cb4c2['length']-0x1]++,_0x35150b[_0x281d0e]['nextPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2)):(_0x35150b[_0x281d0e]['previousPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2),_0x1c05ba?_0x1c05ba['_data']+=_0x35150b[_0x281d0e]['item']['data']:_0x1c05ba=new _0xb02ee8(_0x35150b[_0x281d0e]['item']['data'],_0x35150b[_0x281d0e]['item']['getAttributes']()),_0x35150b[_0x281d0e+0x1]&&'text'===_0x35150b[_0x281d0e+0x1]['type']&&_0x499013(_0x1c05ba,_0x35150b[_0x281d0e+0x1]['item'])||(_0x4d1384[0x0]['_appendChild'](_0x1c05ba),_0x1c05ba=null),_0x3cb4c2[_0x3cb4c2['length']-0x1]+=_0x35150b[_0x281d0e]['item']['offsetSize'],_0x35150b[_0x281d0e]['nextPosition']=_0x557ee7['createPositionFromPath'](_0x5bd26b,_0x3cb4c2));for(let _0x2f233c=0x0;_0x2f233c<_0x35150b['length'];_0x2f233c++){const _0x399419=_0x35150b[_0x2f233c]['previousPosition'],_0x457a2a=_0x35150b[_0x2f233c]['nextPosition'];for(const _0x12e892 of _0x35150b[_0x2f233c]['markersStart'])_0x4020bc['set'](_0x12e892,{'start':_0x399419,'end':null});_0x30aff8('isRemoveSuggestion',_0x2f233c,_0x399419,_0x457a2a),_0x30aff8('isAddSuggestion',_0x2f233c,_0x399419,_0x457a2a),_0x30aff8('isRemoved',_0x2f233c,_0x399419,_0x457a2a),_0x30aff8('isAdded',_0x2f233c,_0x399419,_0x457a2a);for(const _0x2d27ca of _0x35150b[_0x2f233c]['markersEnd']){const _0x4e155f=_0x4020bc['get'](_0x2d27ca);_0x4e155f?_0x4e155f['end']=_0x457a2a:_0x4020bc['set'](_0x2d27ca,{'start':_0x457a2a,'end':_0x457a2a});}}for(const [_0x2ca141,_0x5746e8]of _0x4020bc){const _0x8a5632=this['editor']['model']['createRange'](_0x5746e8['start'],_0x5746e8['end']);_0x5bd26b['markers']['set'](_0x2ca141,_0x8a5632);}return _0x520694['sort']((_0x838cef,_0x451b82)=>{const _0xbdd040=_0x5bd26b['markers']['get']('revision:'+_0x838cef['id']),_0x186a56=_0x5bd26b['markers']['get']('revision:'+_0x451b82['id']);return _0xbdd040['start']['isBefore'](_0x186a56['start'])?-0x1:_0xbdd040['start']['isAfter'](_0x186a56['start'])?0x1:_0xbdd040['end']['isBefore'](_0x186a56['end'])?-0x1:_0xbdd040['end']['isAfter'](_0x186a56['end'])?0x1:'add'===_0x838cef['type']?-0x1:0x1;}),{'root':_0x5bd26b,'changes':_0x520694};function _0x30aff8(_0x30db4e,_0x48017a,_0x557748,_0x1c150e){const _0x57eef0=!!_0x35150b[_0x48017a][_0x30db4e],_0x90f1f1=_0x57eef0?_0x35150b[_0x48017a][_0x30db4e]['userId']:null,_0x18068b=_0x48017a===_0x35150b['length']-0x1,_0x24838f=_0x36bacc[_0x30db4e][0x0],_0x5c6dbf=_0x3f15d2['isObject'](_0x35150b[_0x48017a]['item']);!_0x322b22[_0x30db4e]&&_0x57eef0?_0x322b22[_0x30db4e]={'start':_0x557748,'tapeItem':_0x35150b[_0x48017a],'userId':_0x90f1f1,'type':_0x30db4e}:_0x322b22[_0x30db4e]&&!_0x57eef0?(_0x322b22[_0x30db4e]['end']=_0x557748,_0x79e31e(_0x322b22[_0x30db4e]),_0x322b22[_0x30db4e]=null):_0x322b22[_0x30db4e]&&_0x57eef0&&_0x322b22[_0x30db4e]['userId']!==_0x90f1f1&&(_0x322b22[_0x30db4e]['end']=_0x557748,_0x24838f&&_0x24838f['userId']===_0x322b22[_0x30db4e]['userId']||_0x79e31e(_0x322b22[_0x30db4e]),_0x322b22[_0x30db4e]={'start':_0x557748,'tapeItem':_0x35150b[_0x48017a],'userId':_0x90f1f1,'type':_0x30db4e}),_0x322b22[_0x30db4e]&&_0x5c6dbf&&('elementStart'!==_0x35150b[_0x48017a]['type']||_0x24838f&&_0x24838f['userId']===_0x90f1f1||_0x36bacc[_0x30db4e]['unshift']({'userId':_0x90f1f1,'object':_0x35150b[_0x48017a]['item'],'change':_0x322b22[_0x30db4e]}),'elementEnd'===_0x35150b[_0x48017a]['type']&&_0x24838f&&_0x24838f['object']===_0x35150b[_0x48017a]['item']&&(_0x36bacc[_0x30db4e]['shift'](),_0x322b22[_0x30db4e]=_0x24838f['change'])),_0x322b22[_0x30db4e]&&_0x18068b&&(_0x322b22[_0x30db4e]['end']=_0x1c150e,_0x79e31e(_0x322b22[_0x30db4e]),_0x322b22[_0x30db4e]=null);}function _0x79e31e({start:_0x6635ca,end:_0x2ef0a0,tapeItem:_0x149d3a,userId:_0x4ecfd0,type:_0x5e2e6c}){const _0x5c35fb=_0x149d3a['item'],_0x15fc26=_0x557ee7['schema']['isBlock'](_0x5c35fb)&&!_0x557ee7['schema']['isLimit'](_0x5c35fb),_0x43232e=_0x6635ca['nodeAfter']==_0x2ef0a0['parent']&&_0x2ef0a0['isAtStart'];if(_0x15fc26&&_0x43232e)return;const _0x5030a4=_0x557ee7['createRange'](_0x6635ca,_0x2ef0a0),_0x4ad3fc=_0xd6a67a['get'](_0x4ecfd0),_0x2932da=new G({'author':_0x4ad3fc,'type':'isAdded'==_0x5e2e6c||'isAddSuggestion'==_0x5e2e6c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5e2e6c||'isRemoveSuggestion'==_0x5e2e6c},'createdAt':new Date(),'rootName':_0x140e3b});_0x520694['push'](_0x2932da),_0x5bd26b['markers']['set']('revision:'+_0x2932da['id'],_0x5030a4);}function _0x499013(_0x146414,_0x35d130){const _0x423ce8=_0x146414['getAttributes'](),_0x4fee65=_0x35d130['getAttributes']();for(const _0x48bacb of _0x423ce8){if(_0x48bacb[0x1]!==_0x35d130['getAttribute'](_0x48bacb[0x0]))return!0x1;_0x4fee65['next']();}return _0x4fee65['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x188676=>{const _0x2c97fe=_0x188676['markerName']['split'](':')[0x1],_0x4fa4ee=this['_getChangeFromId'](_0x2c97fe);if(!_0x4fa4ee)return null;const _0xa8d523='add'==_0x4fa4ee['type']?'insertion':'deletion',_0x447c8d=['ck-suggestion-marker','ck-suggestion-marker-'+_0xa8d523];return _0x4fa4ee['data']['isSuggestion']&&_0x447c8d['push']('ck-suggestion-marker-'+_0xa8d523+'-new'),this['activeChange']==_0x4fa4ee&&_0x447c8d['push']('ck-suggestion-marker--active'),{'classes':_0x447c8d,'attributes':{'data-change-id':_0x2c97fe}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x319794=>{_0x319794['on']('element:pre',(_0x2f0089,_0x2479fe,_0x39d471)=>{const _0x2eb7c0=_0x2479fe['viewItem']['getChild'](0x0);if(!_0x2eb7c0||!_0x2eb7c0['is']('element','code'))return;if(!_0x39d471['consumable']['consume'](_0x2eb7c0,{'attributes':['vid_start','vid_end']}))return;const _0x1c0031=_0x2479fe['modelRange']['start']['nodeAfter'];_0x39d471['writer']['setAttribute']('vid_start',_0x2eb7c0['getAttribute']('vid_start'),_0x1c0031),_0x39d471['writer']['setAttribute']('vid_end',_0x2eb7c0['getAttribute']('vid_end'),_0x1c0031);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1202c1=>{_0x1202c1['on']('element',(_0x2240a8,_0xed2906,_0x3d8070)=>{if(!_0x3d8070['consumable']['consume'](_0xed2906['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xed2906['modelRange']['isCollapsed'])return;const _0x4faef8=_0xed2906['modelRange']['start']['nodeAfter'];_0x4faef8['hasAttribute']('vid_start')||_0x4faef8['hasAttribute']('vid')||(_0x3d8070['writer']['setAttribute']('vid_start',_0xed2906['viewItem']['getAttribute']('vid_start'),_0x4faef8),_0x3d8070['writer']['setAttribute']('vid_end',_0xed2906['viewItem']['getAttribute']('vid_end'),_0x4faef8));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2ec05c=>_0x2ec05c['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3898ad,[,_0x4b93e4])=>{['vid_start','vid_end','vid']['includes'](_0x4b93e4)&&(_0x3898ad['return']=!0x0,_0x3898ad['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x162c72=>{_0x162c72['on']('attribute:vid',(_0x3ae369,_0x3631ea,_0x289b0d)=>{if('\x20'!=_0x3631ea['item']['data']||_0x3631ea['item']['parent']['maxOffset']>0x1)return;if(!_0x289b0d['consumable']['consume'](_0x3631ea['item'],_0x3ae369['name']))return;const _0x65409c=_0x289b0d['writer'],_0x50f688=_0x289b0d['mapper']['toViewRange'](_0x3631ea['range']);_0x65409c['wrap'](_0x50f688,_0x65409c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1e2db3){const _0x165514=_0x1e2db3['plugins']['get']('RevisionViewer');return(_0x357fe5,_0x10fe4e,_0x233a6a)=>{const _0x491df8=_0x10fe4e['markerName']['split'](':')[0x1],_0x45a739=_0x165514['_getChangeFromId'](_0x491df8);if(!_0x45a739)return null;const _0x25d82e='add'==_0x45a739['type']?'split':'merge';if(!_0x233a6a['consumable']['test'](_0x10fe4e['markerRange'],_0x357fe5['name']))return;const _0x236e52=_0x10fe4e['markerRange']['getWalker'](),_0x4ace1f=_0x10fe4e['markerRange']['start'],_0x3f4a57=_0x1e2db3['model']['schema'];let _0x3d914e=null,_0x371e05=null,_0x45755b=!0x1,_0x34fdd9=!0x1;for(const _0x2f2220 of _0x236e52){const _0x190662=_0x2f2220['item'];_0x45755b=_0x45755b||_0x3f4a57['isContent'](_0x190662);const _0x10078b=_0x233a6a['mapper']['toViewElement'](_0x190662);if(_0x10078b&&_0x10078b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2f2220['type']&&(_0x3f4a57['isBlock'](_0x190662)&&!_0x3f4a57['isLimit'](_0x190662)&&(_0x190662['nextSibling']||_0x4ace1f['isAtEnd']?_0x3d914e&&_0x3d914e['parent']==_0x190662||(_0x3d914e=_0x190662,_0x320a4e(_0x2f2220['previousPosition']),_0x34fdd9=!0x0):_0x371e05=_0x371e05||_0x2f2220['previousPosition']));}function _0x320a4e(_0x44bc94){const _0x2501ef=_0x233a6a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25d82e}),_0x385afe=_0x233a6a['mapper']['toViewPosition'](_0x44bc94);_0x45a739['data']['isSuggestion']&&_0x233a6a['writer']['addClass']('ck-suggestion-marker-'+_0x25d82e+'-new',_0x2501ef),_0x165514['activeChange']==_0x45a739&&_0x233a6a['writer']['addClass']('ck-suggestion-marker--active',_0x2501ef),_0x233a6a['writer']['insert'](_0x385afe,_0x2501ef),_0x233a6a['mapper']['bindElementToMarker'](_0x2501ef,_0x10fe4e['markerName']);}_0x45755b||_0x34fdd9||!_0x371e05||_0x320a4e(_0x371e05);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x128957,_0x3e2780,_0x6f6d4c)=>{const _0x26ceed=_0x6f6d4c['mapper']['markerNameToElements'](_0x3e2780['markerName']);if(_0x26ceed){for(const _0xad2067 of _0x26ceed)(_0xad2067['hasClass']('ck-suggestion-marker-split')||_0xad2067['hasClass']('ck-suggestion-marker-merge'))&&(_0x6f6d4c['mapper']['unbindElementFromMarkerName'](_0xad2067,_0x3e2780['markerName']),_0x6f6d4c['writer']['remove'](_0xad2067));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x47eaeb,_0x44db70,_0x50be6d)=>{const _0x1d2a26=_0x44db70['markerName']['split'](':')[0x1],_0x6a0a71=this['_getChangeFromId'](_0x1d2a26);if(!_0x6a0a71)return null;const _0x292c95='add'==_0x6a0a71['type']?'split':'merge';if(_0x50be6d['consumable']['test'](_0x44db70['markerRange'],_0x47eaeb['name']))for(const _0xb5a2fc of _0x44db70['markerRange']['getItems']()){if(!_0xb5a2fc['is']('element','softBreak'))continue;const _0x381bc9=_0x50be6d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x292c95}),_0x21e895=_0x50be6d['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xb5a2fc));_0x6a0a71['data']['isSuggestion']&&_0x50be6d['writer']['addClass']('ck-suggestion-marker-'+_0x292c95+'-new',_0x381bc9),this['activeChange']==_0x6a0a71&&_0x50be6d['writer']['addClass']('ck-suggestion-marker--active',_0x381bc9),_0x50be6d['writer']['insert'](_0x21e895,_0x381bc9),_0x50be6d['mapper']['bindElementToMarker'](_0x381bc9,_0x44db70['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x529d5b=>{for(const _0x3fc598 of this['editor']['model']['document']['getRootNames']()){const _0xe56f10=this['editor']['model']['document']['getRoot'](_0x3fc598),_0x40f434=this['editor']['editing']['view']['document']['getRoot'](_0x3fc598);if(_0x40f434){const _0x531f25=_0xe56f10['getAttribute']('revisionHistoryAttachChange');if(_0x529d5b['removeAttribute']('data-change-id',_0x40f434),_0x529d5b['removeClass']('ck-revision-history-root-add',_0x40f434),_0x529d5b['removeClass']('ck-revision-history-root-remove',_0x40f434),_0x529d5b['removeClass']('ck-revision-history-root--active',_0x40f434),_0x531f25){const _0x1db0b5=this['_getChangeFromId'](_0x531f25);if(!_0x1db0b5)return null;_0x529d5b['setAttribute']('data-change-id',_0x531f25,_0x40f434),_0x529d5b['addClass']('ck-revision-history-root-'+_0x1db0b5['type'],_0x40f434),this['activeChange']==_0x1db0b5&&_0x529d5b['addClass']('ck-revision-history-root--active',_0x40f434);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1e9f0b=>'revision-comment:'+_0x1e9f0b,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3f99a5=>'revision-suggestion:'+_0x3f99a5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1abc67=>({'name':'suggestion:'+_0x1abc67,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x574945=>{const _0x13ff24=_0x574945['markerName']['split'](':')[0x1];return'insertion'!=_0x13ff24&&'deletion'!=_0x13ff24?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x13ff24]};}}),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',(_0x22f52e,_0x32a0f9,_0x5e0b28)=>{const _0x1dcdc0=_0x5e0b28['mapper']['markerNameToElements'](_0x32a0f9['markerName']);if(_0x1dcdc0){for(const _0x5b5318 of _0x1dcdc0)_0x5b5318['is']('uiElement')&&(_0x5e0b28['mapper']['unbindElementFromMarkerName'](_0x5b5318,_0x32a0f9['markerName']),_0x5e0b28['writer']['remove'](_0x5b5318));}},{'priority':'high'});}['_getChangeFromId'](_0x355051){return this['_changeIdToChange']['get'](_0x355051);}['_getViewForChange'](_0x490602){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x490602),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4a09c6,_0x2d64ff,_0x46d843,_0x21284a)=>{_0x21284a&&this['_balloon']['remove'](_0x21284a),_0x46d843&&(this['_balloon']['add']({'view':_0x46d843,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2b3051=this['editor']['editing'],_0x58f0ea=this['_getChangeFromId'](_0x46d843['changeId']);let _0x2346ed;if(_0x58f0ea['data']['isOnRoot']){const _0x490da0=_0x2b3051['view']['getDomRoot'](_0x58f0ea['rootName']);_0x2346ed=Array['from'](_0x490da0['getClientRects']());}else{const _0x11bcbf=this['editor']['model']['markers']['get']('revision:'+_0x46d843['changeId']);_0x2346ed=Array['from'](_0x2b3051['mapper']['markerNameToElements'](_0x11bcbf['name']))['map'](_0x4c7248=>_0x2b3051['view']['domConverter']['mapViewToDom'](_0x4c7248))['map'](_0x1973e7=>Array['from'](_0x1973e7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2346ed[0x0];return _0x2346ed['find'](_0x41c736=>_0x41c736['top']-0x3<=this['_activeViewTarget']['y']&&_0x41c736['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x41c736['left']-0x3<=this['_activeViewTarget']['x']&&_0x41c736['right']+0x3>=this['_activeViewTarget']['x'])||_0x2346ed[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5cd09c,_0x44dc74,_0x4bd4ec,_0x4e00fa)=>{this['activeView']=_0x4bd4ec?this['_getViewForChange'](_0x4bd4ec):null,this['editor']['model']['change'](()=>{const _0x833f6a=this['editor']['editing'];_0x4e00fa&&(_0x4e00fa['data']['isOnRoot']?_0x833f6a['view']['change'](_0x30609b=>{_0x30609b['removeClass']('ck-revision-history-root--active',_0x833f6a['view']['document']['getRoot'](_0x4e00fa['rootName']));}):_0x833f6a['reconvertMarker']('revision:'+_0x4e00fa['id'])),_0x4bd4ec&&(_0x4bd4ec['data']['isOnRoot']?_0x833f6a['view']['change'](_0x988696=>{_0x988696['addClass']('ck-revision-history-root--active',_0x833f6a['view']['document']['getRoot'](_0x4bd4ec['rootName']));}):_0x833f6a['reconvertMarker']('revision:'+_0x4bd4ec['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2159eb,_0x1ce4c2)=>{if(this['activeChange'])return;const _0x29dc30=this['_findChangeIdFromDomTarget'](_0x1ce4c2['target']),_0x112303=this['_changeIdToChange']['get'](_0x29dc30);_0x112303?(this['_activeViewTarget']={'x':_0x1ce4c2['domEvent']['x'],'y':_0x1ce4c2['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x112303)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1ed479,_0x25f8a7)=>{const _0xbe8415=this['_findChangeIdFromDomTarget'](_0x25f8a7['target']),_0x355a4f=this['_changeIdToChange']['get'](_0xbe8415);_0x355a4f?(this['_activeViewTarget']={'x':_0x25f8a7['domEvent']['x'],'y':_0x25f8a7['domEvent']['y']},_0x355a4f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x355a4f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2f9c43){do{const _0x4faebc=_0x2f9c43['getAttribute']('data-change-id');if(_0x4faebc)return _0x4faebc;_0x2f9c43=_0x2f9c43['parent'];}while(_0x2f9c43);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5a18e5=>{for(const _0x289a61 of this['editor']['model']['markers'])_0x5a18e5['removeMarker'](_0x289a61);});}}function Q(_0x503bd6,_0x530493){return(_0x3ff6a5,_0x3f08bc,_0x554a09)=>{if(!_0x554a09['consumable']['test'](_0x3f08bc['markerRange'],_0x3ff6a5['name']))return;const _0x169104=_0x3f08bc['markerRange']['getWalker'](),_0x427a97=_0x3f08bc['markerRange']['start'],_0x48d787=_0x503bd6['model']['schema'];let _0x25fa9a=null,_0x2d1977=null,_0x3c1521=!0x1,_0x24ea92=!0x1;for(const _0xe06976 of _0x169104){const _0xeaf540=_0xe06976['item'];_0x3c1521=_0x3c1521||_0x48d787['isContent'](_0xeaf540);const _0x3c7174=_0x554a09['mapper']['toViewElement'](_0xeaf540);if(_0x3c7174&&_0x3c7174['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xe06976['type']&&(_0x48d787['isBlock'](_0xeaf540)&&!_0x48d787['isLimit'](_0xeaf540)&&(_0xeaf540['nextSibling']||_0x427a97['isAtEnd']?_0x25fa9a&&_0x25fa9a['parent']==_0xeaf540||(_0x25fa9a=_0xeaf540,_0x816c3b(_0xe06976['previousPosition']),_0x24ea92=!0x0):_0x2d1977=_0x2d1977||_0xe06976['previousPosition']));}function _0x816c3b(_0x1949fa){const _0x53b440=_0x554a09['mapper']['toViewPosition'](_0x1949fa),_0x5ced55=_0x554a09['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x530493});_0x554a09['writer']['insert'](_0x53b440,_0x5ced55),_0x554a09['mapper']['bindElementToMarker'](_0x5ced55,_0x3f08bc['markerName']);}_0x3c1521||_0x24ea92||!_0x2d1977||_0x816c3b(_0x2d1977);};}class nt extends _0x49200a{constructor(_0x5e372d){super(_0x5e372d);const _0x1fb5fc=_0x5e372d['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x1fb5fc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1fb5fc,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1af36d=this['editor'],_0x3c7a26=_0x1af36d['plugins']['get'](u),_0x5722ec=_0x3c7a26['isReady']?_0x3c7a26['diff']['newRevisionId']:null;_0x1af36d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5722ec);}['refresh'](){const {isReady:_0x1159b0,isEnabled:_0x1e6211,repository:_0x15257f,diff:_0x3eddd9}=this['editor']['plugins']['get'](u),_0x42bd21=_0x3eddd9&&_0x15257f['getLaterVisibleRevision'](_0x3eddd9['newRevisionId']);this['isEnabled']=_0x1159b0&&_0x1e6211&&Boolean(_0x42bd21);}}class rt extends _0x49200a{['_step'];constructor(_0x28e45d,{direction:_0x1d40e2}){super(_0x28e45d);const _0x58e4b5=_0x28e45d['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x1d40e2?0x1:-0x1,this['listenTo'](_0x58e4b5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x58e4b5,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x58e4b5,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x55eb1a=this['editor'],_0x1cb1d6=_0x55eb1a['plugins']['get'](u),{isNavigationMode:_0x28c97e,currentChangeNumber:_0x1986cf}=_0x1cb1d6;let _0x224525;if(_0x1cb1d6['activeChange']=_0x28c97e?_0x1cb1d6['diff']['changes']['get'](_0x1986cf+this['_step']):_0x1cb1d6['diff']['changes']['first'],_0x1cb1d6['activeChange']['data']['isOnRoot'])_0x224525=_0x55eb1a['editing']['view']['getDomRoot'](_0x1cb1d6['activeChange']['rootName']);else{const _0x5ade4e=_0x55eb1a['model']['markers']['get']('revision:'+_0x1cb1d6['activeChange']['id']);_0x224525=_0x12cf46(_0x55eb1a['editing'],_0x5ade4e);}_0x22e24a({'target':_0x224525,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xa2f6b2,currentChangeNumber:_0xecbfa1,numberOfChanges:_0x2caeff,isReady:_0x48bb7c,isEnabled:_0x17309d}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x17309d&&_0x48bb7c&&_0x2caeff)&&(!_0xa2f6b2||(0x1===this['_step']?_0xecbfa1<_0x2caeff-0x1:_0xecbfa1>0x0));}}class pi extends _0x2046bb{constructor(_0x28d850){super(_0x28d850);const _0x21ee33=this['bindTemplate'],_0x1c1631=new _0x2f12ca(_0x28d850),_0x3c0479=new _0x2f12ca(_0x28d850);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',(_0x3e5eeb,_0x64a9b7)=>_0x3e5eeb&&_0x64a9b7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xeb6f81,_0x41734a,_0x2c7775,_0x2fc292)=>{if(!_0xeb6f81)return m(_0x28d850,'Loading...');if(!_0x2c7775)return m(_0x28d850,'No\x20changes');const _0x4569b7=m(_0x28d850,'NUMBER_OF_CHANGES',_0x2c7775);return _0x2fc292?m(_0x28d850,'X_OF_Y_CHANGES',[_0x41734a+0x1,_0x2c7775]):_0x4569b7;}),_0x1c1631['set']({'label':m(_0x28d850,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5ea3b4}),_0x3c0479['set']({'label':m(_0x28d850,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5205e2}),_0x1c1631['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3c0479['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1c1631['on']('execute',()=>this['fire']('execute','backward')),_0x3c0479['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',_0x21ee33['if']('_isStatusLabelVisible','ck-hidden',_0x3e530a=>!_0x3e530a)]},'children':[{'text':_0x21ee33['to']('isNavigationMode',_0x53f0e0=>_0x53f0e0?m(_0x28d850,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x28d850,'Total')+':\x20')}]},{'text':_0x21ee33['to']('_statusText')}]},new _0x9c8625(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1c1631,_0x3c0479]}]});}}const oe='ck-editor__editable__loading-overlay';class fi extends _0x460205{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1fecd7=this['editor']['editing']['view'];_0x1fecd7['change'](_0x4b3949=>{for(const _0x373783 of _0x1fecd7['document']['roots'])_0x4b3949['addClass'](oe,_0x373783);});}['hide'](){const _0x435b9e=this['editor']['editing']['view'];_0x435b9e['change'](_0x21da68=>{for(const _0x56848a of _0x435b9e['document']['roots'])_0x21da68['removeClass'](oe,_0x56848a);});}}class v extends _0x460205{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,fi];}['init'](){const _0xb9bc0d=this['editor'],_0x1975ea=_0xb9bc0d['plugins']['get'](u),_0xb7a5f1=_0xb9bc0d['plugins']['get'](fi);_0xb9bc0d['ui']['componentFactory']['add']('exitToEditing',_0x2abda3=>{const _0x490433=new _0x2f12ca(_0x2abda3);return _0x490433['set']({'label':m(_0x2abda3,'Back\x20to\x20editing'),'icon':_0x4e6330,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x490433,'execute',()=>{_0xb9bc0d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x490433;}),_0xb9bc0d['ui']['componentFactory']['add']('restoreRevision',_0x32d3b1=>{const _0x50ec05=new _0x2f12ca(_0x32d3b1);return _0x50ec05['set']({'label':m(_0x32d3b1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x50ec05['bind']('isEnabled')['to'](_0xb9bc0d['commands']['get']('restoreRevision')),this['listenTo'](_0x50ec05,'execute',()=>_0xb9bc0d['execute']('restoreRevision')),_0x50ec05;}),_0xb9bc0d['ui']['componentFactory']['add']('changesNavigation',_0x1b952f=>{const _0x52a005=new pi(_0x1b952f),_0x5195b3=_0xb9bc0d['commands']['get']('showPreviousChange'),_0x2ef108=_0xb9bc0d['commands']['get']('showNextChange');return _0x52a005['bind']('isBackwardNavigationEnabled')['to'](_0x5195b3,'isEnabled'),_0x52a005['bind']('isForwardNavigationEnabled')['to'](_0x2ef108,'isEnabled'),_0x52a005['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1975ea),this['listenTo'](_0x52a005,'execute',(_0x4c391f,_0x48bbe4)=>{_0xb9bc0d['execute']('forward'===_0x48bbe4?'showNextChange':'showPreviousChange');}),_0x52a005;}),_0xb7a5f1['show'](),_0x1975ea['on']('change:isReady',(_0x464ca5,_0x2a733e,_0x1f8964)=>{_0x1f8964?_0xb7a5f1['hide']():_0xb7a5f1['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x512f16,_0x4e37ca){super(_0x512f16,_0x4e37ca);const _0x713e6d=this['bindTemplate'];this['set']({'label':m(_0x512f16,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x512f16,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x713e6d['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 _0x5f4821=this['fieldView']['element'];this['_tooltipString']=_0x5f4821['scrollWidth']>_0x5f4821['clientWidth']&&_0x5f4821['value']||'';}}class ni extends _0x2046bb{constructor(_0x207242,_0x1b02b5,_0x3428cf){super(_0x207242);const _0x116383=new _0x2d02b5();_0x116383['set']({'content':_0x438e33,'viewBox':'0\x200\x2011\x2010'});const _0x495037=['ck','ck-revision-history-sidebar__revision-author'];_0x3428cf&&_0x495037['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4a1e1f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x207242,_0x3428cf?'Revision\x20creator':'Revision\x20author')},'children':[_0x116383,_0x1b02b5['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x495037},'children':_0x4a1e1f});}}function ai(_0x428aa2,_0x93563d){const _0x4eb8e2=_0x428aa2['bindTemplate'],_0x5c587b=_0x428aa2['locale'],_0x240f05=_0x25c92f(_0x5c587b);_0x240f05['panelPosition']='sw';const _0x5701d6=function(_0x2da1d7,_0x5bb03b){const _0x18cdd1=function(_0x535f70,_0x2abb6d){const _0x7b115d=_0x535f70['locale'],_0xaef49f={'Compare\x20against\x20selected':m(_0x7b115d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x7b115d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x7b115d,'Restore\x20this\x20revision')};return _0x2abb6d['map'](_0x59ac37=>{const _0x271ca8=_0xaef49f[_0x59ac37['name']];return _0x271ca8&&_0x271ca8!==_0x59ac37['name']&&(_0x59ac37['name']=_0x271ca8),_0x59ac37;});}(_0x2da1d7,_0x5bb03b),_0x2c4d72=new _0x2be9e4();for(const _0xb5ff4f of _0x18cdd1){const _0x31eaf9={'type':'button','model':new to({'label':_0xb5ff4f['name'],'class':_0xb5ff4f['class'],'withText':!0x0,'role':'menuitem','_action':_0xb5ff4f['action']})};_0x31eaf9['model']['bind']('isEnabled')['to'](_0x2da1d7,'isActionsDropdownOpen',_0x13bfbe=>'function'!=typeof _0xb5ff4f['isEnabled']||(!_0x13bfbe||_0xb5ff4f['isEnabled'](_0x2da1d7))),_0x2c4d72['add'](_0x31eaf9);}return _0x2c4d72;}(_0x428aa2,_0x93563d);return _0x428aa2['bind']('isActionsDropdownOpen')['to'](_0x240f05,'isOpen'),_0x240f05['buttonView']['set']({'label':m(_0x5c587b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3dac6a}),_0x240f05['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4eb8e2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4eb8e2['to'](_0x4965d4=>_0x4965d4['stopPropagation']())}}),_0x240f05['on']('execute',_0x52b7b9=>{_0x428aa2['isReady']&&'function'==typeof _0x52b7b9['source']['_action']&&_0x52b7b9['source']['_action'](_0x428aa2);}),_0x1bbcfb(_0x240f05,_0x5701d6,{'role':'menu'}),_0x240f05['listenTo'](_0x428aa2,'change:isActionsDropdownOpen',(_0x3736be,_0x11c34a,_0x1f4c84)=>{if(_0x1f4c84)for(const _0x315167 of _0x240f05['listView']['items']){const _0xac4bb=_0x315167['children']['first'],_0x4472ae=_0x93563d['find'](_0x382340=>_0x382340['action']===_0xac4bb['_action'])['isVisible'];_0x315167['isVisible']=void 0x0===_0x4472ae||_0x4472ae(_0x428aa2);}}),_0x240f05;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x26b2fd(_0x2046bb){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x58aefa,_0xa0d42,_0x23b891,_0x1a7599){super(_0x58aefa);const _0x410f60=this['bindTemplate'],_0xea8613=function(_0x366fda,_0x4efb0f){const _0x546f54=Array['from'](_0x4efb0f['authors'])['filter'](_0x7206d7=>_0x7206d7!=_0x4efb0f['creator']);return _0x4efb0f['creator']&&_0x546f54['unshift'](_0x4efb0f['creator']),_0x546f54['map'](_0x2764ef=>new ni(_0x366fda,_0x2764ef,_0x2764ef==_0x4efb0f['creator']));}(_0x58aefa,_0xa0d42);this['id']=_0xa0d42['id'],this['_revision']=_0xa0d42,this['_requireRevisionName']=_0x1a7599,this['bind']('name','createdAt')['to'](_0xa0d42),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x42279b=>{return _0x1c0da6=_0x58aefa['uiLanguage'],(_0x47a8dc=_0x42279b)['toLocaleDateString'](_0x1c0da6,{'month':'long','day':'numeric'})+',\x20'+_0x47a8dc['toLocaleTimeString'](_0x1c0da6,{'hour':'numeric','minute':'numeric'});var _0x1c0da6,_0x47a8dc;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x58aefa,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2677e0=>_0x2677e0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x456c30,_0x2d0b2a)=>_0x456c30&&_0x2d0b2a),this['revisionActionsView']=_0x23b891&&_0x23b891['length']?ai(this,_0x23b891):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x410f60['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x410f60['if']('isEnabled','ck-disabled',_0x1d0c2b=>!_0x1d0c2b),_0x410f60['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x410f60['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x410f60['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':_0x410f60['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':_0xea8613}]},this['revisionActionsView']],'on':{'click':_0x410f60['to'](_0x29f777=>{_0x29f777['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x218352=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x218352,'change',()=>{this['_requireRevisionName']&&!_0x218352['value']||this['fire']('setName',{'id':this['id'],'name':_0x218352['value']}),_0x218352['value']||(_0x218352['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x44337b,_0x268f8e){const _0xe881ef=_0x4fb9a7['fromJSDate'](_0x44337b)['setLocale'](_0x268f8e),_0x367476=_0x4fb9a7['local'](),_0x4687c5=_0x367476['minus']({'days':0x1})['startOf']('day');let _0x163c2d,_0x110f55;return _0xe881ef['hasSame'](_0x367476,'day')?(_0x163c2d=_0xe881ef['startOf']('day')['toJSDate'](),_0x110f55=_0xe881ef['toRelativeCalendar']()):_0xe881ef['hasSame'](_0x4687c5,'day')?(_0x163c2d=_0x4687c5['toJSDate'](),_0x110f55=_0xe881ef['toRelativeCalendar']()):_0xe881ef['hasSame'](_0x367476,'week')?(_0x163c2d=_0xe881ef['startOf']('week')['toJSDate'](),_0x110f55=_0xe881ef['weekdayLong']||''):_0xe881ef['hasSame'](_0x367476,'year')?(_0x163c2d=_0xe881ef['startOf']('month')['toJSDate'](),_0x110f55=_0xe881ef['monthLong']||''):(_0x163c2d=_0xe881ef['startOf']('year')['toJSDate'](),_0x110f55=String(_0xe881ef['year'])),{'startDate':_0x163c2d,'localizedPeriodName':_0x110f55};}class li extends _0x2046bb{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3bbc9d,_0x1269a2,_0x5edcdf,_0x1d74ed){super(_0x3bbc9d);const _0x56ce4b=mi(_0x1269a2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1269a2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5edcdf,this['_requireRevisionName']=_0x1d74ed,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':_0x56ce4b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x604e93){const _0xe17e0b=new vi(this['locale'],_0x604e93,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xe17e0b);}['removeRevision'](_0x486d8d){const _0x416403=this['revisionViews']['find'](_0x1be780=>_0x1be780['id']===_0x486d8d['id']);this['revisionViews']['remove'](_0x416403);}}class bi extends _0x2046bb{constructor(_0x5759b9){super(_0x5759b9);const _0x204464=new _0x2d02b5();_0x204464['content']=_0x20669c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x204464,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5759b9,'Revision\x20history')]}]});}}class di extends _0x2046bb{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x20776b,_0x4a5d2d,_0x24a5ba,_0x47ae35){super(_0x20776b);const _0x5375fc=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4a5d2d,this['_revisionActions']=_0x24a5ba,this['_requireRevisionName']=_0x47ae35,this['on']('select',(_0x4c9599,_0x3f14b5)=>{this['fire']('revisionSelected',_0x3f14b5);}),this['on']('setName',(_0x1e99e4,_0x264147)=>{this['fire']('revisionSetName',_0x264147);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new bi(_0x20776b),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5375fc['if']('isEnabled','ck-disabled',_0x1723b1=>!_0x1723b1)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4a7342 of this['_revisions'])this['_addRevision'](_0x4a7342);this['_revisions']['on']('add',(_0x305cf1,_0x34bc69)=>{this['_addRevision'](_0x34bc69);}),this['_revisions']['on']('remove',(_0x5765b1,_0x38190d)=>{this['_removeRevision'](_0x38190d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x56e329=>_0x56e329['revisionViews']['map'](_0x508d20=>_0x508d20))['flat']();}['selectRevision'](_0x117e92){for(const _0xdc9c25 of this['revisionViews'])_0x117e92&&_0x117e92['id']===_0xdc9c25['id']?_0xdc9c25['select']():_0xdc9c25['deselect']();}['highlightRevisions'](_0x5416a1){for(const _0x2c477e of this['revisionViews'])_0x5416a1['some'](({id:_0x5857c0})=>_0x5857c0===_0x2c477e['id'])?_0x2c477e['highlight']():_0x2c477e['unhighlight']();}['_addRevision'](_0x458d5f){const _0x40ac6e=mi(_0x458d5f['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3f1a95=this['timePeriodViews']['get'](0x0);_0x3f1a95&&_0x3f1a95['startDate']['getTime']()===_0x40ac6e['getTime']()||(_0x3f1a95=new li(this['locale'],_0x40ac6e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3f1a95)),_0x3f1a95['addRevision'](_0x458d5f);}['_removeRevision'](_0x306027){const _0x50b8a6=mi(_0x306027['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x50b8a6)['removeRevision'](_0x306027);}['_getTimePeriodViewByStartDate'](_0x25f0d5){return this['timePeriodViews']['find'](_0x22010f=>_0x22010f['startDate']['getTime']()===_0x25f0d5['getTime']());}}class d extends _0x460205{['_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(_0x2c64c2){super(_0x2c64c2),this['_revisionViewer']=_0x2c64c2['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3e4666=this['_revisionsRepository']['_revisions'],_0x323d17=this['_createRevisionActions'](),_0x2cbe73=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x3e4666,_0x323d17,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',(_0x605225,_0x54921b)=>{_0x54921b['revisionViews']['on']('add',(_0x9a7409,_0x3c5c43)=>{_0x3c5c43['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)),_0x2cbe73['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x541545=this['_revisionsRepository']['getRevision'](0x0);if(_0x541545){const _0x37978a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x541545['id']);this['_revisionViewer']['compare'](_0x541545,_0x37978a);}}['_handleRevisionSelected'](_0xf7ec34,_0x3d00b4){const _0x221130=this['_revisionsRepository']['getRevision'](_0x3d00b4['id']),_0x59eb81=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x221130['id']);this['_revisionViewer']['compare'](_0x221130,_0x59eb81);}['_handleRevisionSetName'](_0x2f14ba,_0x1c9c95){this['_revisionsRepository']['getRevision'](_0x1c9c95['id'])['setName'](_0x1c9c95['name']);}['_handleDiffChange'](_0xa581ae,_0x31724b,_0x12ef0a){const _0x330226=this['_revisionsRepository']['getRevisionsInDiff'](_0x12ef0a);_0x330226['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x330226),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x330226[0x0]));}['_createRevisionActions'](){const _0x55eb4d=this['editor'],_0x1b702b=d['availableRevisionActions'],_0x3b47f6=_0x55eb4d['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x3b47f6['length'])return _0x3b47f6['map'](_0x3717af=>{const _0x4efad7='string'==typeof _0x3717af?Object['assign']({},_0x1b702b[_0x3717af]):_0x3717af;return _0x4efad7['action']=_0x4efad7['action']['bind'](this,_0x55eb4d),_0x4efad7['isVisible']&&(_0x4efad7['isVisible']=_0x4efad7['isVisible']['bind'](this,_0x55eb4d)),_0x4efad7;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x571224},_0x5f39a5)=>{const _0x2bd86f=_0x571224['get'](u),_0x17e437=_0x2bd86f['repository'];let _0x332972=_0x2bd86f['diff']['newRevisionId'],_0x111118=_0x5f39a5['id'];_0x17e437['getIndex'](_0x332972)>_0x17e437['getIndex'](_0x111118)&&([_0x332972,_0x111118]=[_0x111118,_0x332972]),_0x2bd86f['compare'](_0x332972,_0x111118);},'isVisible':({plugins:_0x5c55ee},_0x1ccdd6)=>{const _0xef9ce5=_0x5c55ee['get'](u);return!(_0xef9ce5['repository']['getRevisionsInDiff'](_0xef9ce5['diff'])['length']>0x2)&&!_0x1ccdd6['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x34e0c3,{id:_0x537982})=>{_0x34e0c3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x537982);},'isVisible':({plugins:_0x2b70a0},_0x13e0ce)=>!!_0x2b70a0['get'](u)['repository']['getLaterVisibleRevision'](_0x13e0ce['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xd889c0},{id:_0x2aee85,revisionNameView:_0x10187c})=>{const _0x3556a9=_0xd889c0['get'](u),_0x313a7b=_0x3556a9['repository']['getEarlierVisibleRevision'](_0x2aee85);_0x3556a9['compare'](_0x2aee85,_0x313a7b),_0x10187c['focus'](),_0x10187c['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4d2a09,_0x4affdd){super(_0x4d2a09),this['_view']=_0x4affdd,this['_toolbarConfig']=st(_0x4d2a09['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x3b0256){const _0x27deda=this['editor'],_0x406813=this['view'],_0x5410de=_0x27deda['editing']['view'],_0x2cf966=_0x406813['editable'],_0x326318=_0x5410de['document']['getRoot']();_0x2cf966['name']=_0x326318['rootName'],_0x406813['render']();const _0x12b377=_0x2cf966['element'];this['setEditableElement'](_0x2cf966['name'],_0x12b377),_0x406813['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5410de['attachDomRoot'](_0x12b377),this['_elementReplacer']['replace'](_0x3b0256,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x509696=this['view'],_0x39d7f0=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x39d7f0['detachDomRoot'](_0x509696['editable']['name']),_0x509696['destroy']();}['_initToolbar'](){const _0x36555c=this['view'];_0x36555c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x36555c['stickyPanel']['limiterElement']=_0x36555c['element'],_0x36555c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x263538})=>_0x263538),_0x36555c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x36555c['toolbar']);}}class ii extends _0x727467{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x37381e,_0x4bd510,_0x4b25e8={}){super(_0x37381e),this['stickyPanel']=new _0x3877f9(_0x37381e),this['toolbar']=new _0x10d76a(_0x37381e,{'shouldGroupWhenFull':_0x4b25e8['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x37381e,_0x4bd510);}['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
|
+
_0x5ca314(_0xcc8484){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x47c5f6,_0x363ac2){super(_0x363ac2),this['sourceElement']=_0x47c5f6,this['model']['document']['createRoot']();const _0x40ac67=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x40ac67);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1fe070,_0x593dc1){const _0x11d934=new this(_0x1fe070,_0x593dc1);return await _0x11d934['initPlugins'](),await _0x11d934['ui']['init'](_0x1fe070),await _0x11d934['data']['init'](_0x11d934['config']['get']('initialData')||''),_0x11d934['fire']('ready'),_0x11d934;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x460205{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14761c){function _0x31e3bd(_0x4f5ff4){return _0x4f5ff4['map'](_0x5cbd97=>String['fromCharCode'](_0x5cbd97))['join']('');}super(_0x14761c),this['result']='end',_0x14761c[_0x31e3bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31e3bd([0x76,0x69,0x65,0x77])][_0x31e3bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31e3bd([0x61,0x75,0x74,0x6f]),_0x14761c[_0x31e3bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x31e3bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31e3bd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x31e3bd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x31e3bd([0x6f,0x6b])});}}class ct extends _0x460205{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x2d8c0f){if(super(_0x2d8c0f),!this['editor']['config']['get']('revisionHistory'))throw new _0x4ae15c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x362354=>this['_showRevisionViewer']({..._0x362354,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xbe1367=>this['_closeRevisionViewer'](_0xbe1367)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3b6ad3=>this['_restoreRevision'](_0x3b6ad3)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x225668){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x225668;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xed1b68){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xed1b68);}['getRevision'](_0x1bf850){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1bf850);}['getRevisions'](_0x5a3ce9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5a3ce9||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3e17db=this['editor'],_0x297281=_0x1d3f9f(_0x3e17db,p),_0x33ff44=_0x3e17db['plugins']['get']('RevisionTracker'),_0x35b92b=_0x3e17db['plugins']['get']('Users')['users'];return _0x297281['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x297281['lazyRoots'],(_0x297281['plugins']['push'](ht,u,v,class extends _0x460205{static get['requires'](){return[u,'Users'];}['init'](){const _0x2a6099=this['editor']['plugins']['get']('Users');for(const _0x3fc393 of _0x35b92b)_0x3fc393['isAnonymous']||_0x2a6099['getUser'](_0x3fc393['id'])||_0x2a6099['addUser'](_0x3fc393);const _0x2ee8ed=_0x33ff44['repository']['getRevisions']();let _0x3cbc22=null;const _0x1cc5b3=this['editor']['plugins']['get']('RevisionViewer');_0x1cc5b3['adapter']=_0x33ff44['adapter'],_0x1cc5b3['bind']('isEnabled')['to'](_0x33ff44),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3e17db,'isReadOnly',_0x38040a=>!_0x38040a);for(const _0x2bd242 of _0x2ee8ed){const _0x5edfee=null===_0x2bd242['creator'];if(_0x5edfee&&_0x2bd242['toVersion']===_0x2bd242['fromVersion'])continue;const _0x6114e1=_0x2bd242['toJSON']();_0x1cc5b3['addRevisionData'](_0x6114e1,(_0x278650,_0x43b946,_0x4746da)=>{if(_0x5edfee){if(_0x3cbc22)_0x3cbc22['_update'](_0x278650,_0x43b946);else{if(!_0x43b946){const _0x2e4aef=_0x4746da['toJSON']();_0x2e4aef['id']=_0x3b18bf(),_0x33ff44['saveRevision'](_0x2e4aef,_0x4746da['toVersion'])['then'](_0x3d8d53=>{_0x3cbc22=_0x3d8d53;});}}}else _0x2bd242['_update'](_0x278650,_0x43b946);});}}},d),_0x297281);}['_enhanceShowRevisionViewerCallback'](){const _0x3e6660=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4f982e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4fe795=this['editor']['plugins']['get']('Autosave');await _0x4fe795['save']();}else await _0x4f982e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x51ebda=this['editor']['plugins']['get']('Dialog');_0x51ebda['isOpen']&&_0x51ebda['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x21c312=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x3f5b22 of _0x21c312)_0x3f5b22['class']=_0x3f5b22['class']?_0x3f5b22['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x1d7a91=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1d7a91&&_0x1d7a91['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x1ee74b=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x1ee74b&&_0x1ee74b['setAttribute']('tabindex','-1');}}const _0x224108=this['_getRevisionViewerEditorConfig']();return _0x3e6660(_0x224108)['then'](_0x46f67f=>{return(this['_viewerEditor']=_0x46f67f,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'),_0x46f67f);})['catch'](_0x2e00c4=>(console['error'](_0x2e00c4),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xfc1e4f=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 _0x4f4721=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x494a97 of _0x4f4721)_0x494a97['class']='ck-tab-panel_disabled'===_0x494a97['class']?'':_0x494a97['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0xdc582f=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0xdc582f&&_0xdc582f['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x37e500=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x37e500&&_0x37e500['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xfc1e4f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x245868=this['editor']['plugins']['get']('Annotations');_0x245868['refreshVisibility'](),_0x245868['refreshPositioning']();}});});}['_showRevisionViewer'](_0x1cc720){const _0x295385=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x23e7fc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x505e89=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x505e89,_0x1cc720)['then'](_0x1d67a7=>(_0x23e7fc['style']['display']='block',_0x295385['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1d67a7));}['_closeRevisionViewer'](_0x17efec){const _0x33e944=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x33e944['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x17efec['destroy']();}async['_restoreRevision'](_0x47b24c){const _0x3cc57b=this['editor'],_0x195d89=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2303fd=_0x3cc57b['plugins']['get']('RevisionTracker'),_0x13042c=_0x3cc57b['plugins']['get']('RevisionHistoryUtils'),_0x49bec9=_0x195d89['repository']['getRevision'](_0x47b24c);let _0x2b90e7,_0x2b11ea,_0x2e46b4;try{await _0x13042c['loadRevisionData'](_0x49bec9,this['adapter']),_0x2b90e7=_0x13042c['getRevisionDocumentData'](_0x49bec9),_0x2b11ea=_0x13042c['getRevisionRootsAttributes'](_0x49bec9);}catch(_0x4dd19d){return void console['error'](_0x4dd19d);}_0x3cc57b['model']['change'](_0x5cfae9=>{for(const _0x1de3ec of Array['from'](_0x3cc57b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5cfae9['removeMarker'](_0x1de3ec);}),_0x195d89['isReady']=!0x1,_0x3cc57b['model']['enqueueChange'](_0x58d7ab=>{_0x58d7ab['setSelection'](null),_0x58d7ab['removeSelectionAttribute'](_0x3cc57b['model']['document']['selection']['getAttributeKeys']());const _0xfcc4ea=Object['keys'](_0x2b90e7);for(const _0x275653 of _0x3cc57b['model']['document']['roots'])'$graveyard'!=_0x275653['rootName']&&_0x275653['isAttached']()&&!_0xfcc4ea['includes'](_0x275653['rootName'])&&_0x58d7ab['detachRoot'](_0x275653);for(const _0x48a696 of _0xfcc4ea){let _0x34cfc5=_0x3cc57b['model']['document']['getRoot'](_0x48a696);_0x34cfc5&&_0x34cfc5['isAttached']()||(_0x34cfc5=_0x58d7ab['addRoot'](_0x48a696));const _0xf5b533=_0x2b11ea[_0x48a696],_0x386e77=Object['keys'](_0xf5b533),_0x21f2b1=_0x2b90e7[_0x48a696];for(const _0x44bb4c of _0x34cfc5['getAttributeKeys']())_0x386e77['includes'](_0x44bb4c)||_0x58d7ab['removeAttribute'](_0x44bb4c,_0x34cfc5);for(const _0x3a084b of _0x386e77)_0x58d7ab['setAttribute'](_0x3a084b,_0x2b11ea[_0x48a696][_0x3a084b],_0x34cfc5);_0x58d7ab['remove'](_0x58d7ab['createRangeIn'](_0x34cfc5)),_0x58d7ab['insert'](_0x3cc57b['data']['parse'](_0x21f2b1,_0x34cfc5),_0x34cfc5,0x0);}});const _0x10c9b3=m(_0x3cc57b['locale'],'Restored');if(_0x49bec9['name'])_0x2e46b4=-0x1==_0x49bec9['name']['indexOf'](_0x10c9b3)?_0x10c9b3+':\x20'+_0x49bec9['name']:_0x49bec9['name'];else _0x2e46b4=_0x10c9b3+':\x20'+(_0x49bec9['createdAt']['toLocaleDateString'](_0x3cc57b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x49bec9['createdAt']['toLocaleTimeString'](_0x3cc57b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2303fd['saveRevision']({'name':_0x2e46b4}),_0x195d89['isReady']=!0x0,_0x3cc57b['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,fi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|