@ckeditor/ckeditor5-revision-history 47.0.0 → 47.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- 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
|
-
_0x390267(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x52e761){super(),this['id']=_0x52e761['id']||_0x3ca1e2(),this['creator']=_0x52e761['creator']||null,this['authors']=_0x52e761['authors']||[],this['diffData']=_0x52e761['diffData']||null,this['toVersion']=_0x52e761['toVersion']||0x0,this['fromVersion']=_0x52e761['fromVersion']||0x0,this['set']('name',_0x52e761['name']||''),this['set']('createdAt',_0x52e761['createdAt']||new Date()),this['set']('attributes',_0x52e761['attributes']||{});}['setName'](_0x324f66){this['_update']({'name':_0x324f66});}['setAttribute'](_0x28f045,_0x54f735){const _0x18cd70=_0x4f8a27(this['attributes']);_0x3f6799(_0x18cd70,_0x28f045,_0x54f735),this['_update']({'attributes':_0x18cd70});}['removeAttribute'](_0x864fe1){const _0x3e0a86=_0x4f8a27(this['attributes']);_0x4520d8(_0x3e0a86,_0x864fe1),this['_update']({'attributes':_0x3e0a86});}['_update'](_0x594451,_0xa0b202=!0x1){let _0x56a534=!0x1;const _0x29230c={'id':this['id']},_0x36f378=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4a1d8f of _0x36f378){const _0x1b564f=_0x594451[_0x4a1d8f];void 0x0!==_0x1b564f&&_0x1b564f!==this[_0x4a1d8f]&&(this[_0x4a1d8f]=_0x1b564f,_0x29230c[_0x4a1d8f]=_0x1b564f,_0x56a534=!0x0);}_0x56a534&&(_0x29230c['authors']&&(_0x29230c['authorsIds']=_0x29230c['authors']['map'](_0x31bd0d=>_0x31bd0d['id']),delete _0x29230c['authors']),this['fire']('_update',_0x29230c,_0xa0b202));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x7becf3=>_0x7becf3['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x2182b9{['_revisions'];static get['requires'](){return[_0x491e76];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x28a4a2){super(_0x28a4a2),this['_revisions']=new _0x401ff4();}['afterInit'](){!async function(_0x1fb47c){const _0x4f4d92=_0x28af64([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x3e4a02=0xeb829,_0xff0606=0x7374585f,_0x368d46=0x73732caf^_0xff0606,_0x564aba=window[_0x28af64([0x44,0x61,0x74,0x65])][_0x28af64([0x6e,0x6f,0x77])](),_0x1054b7=_0x1fb47c[_0x28af64([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20cd39=new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c8f56=>{_0x1054b7[_0x28af64([0x6f,0x6e,0x63,0x65])](_0x28af64([0x72,0x65,0x61,0x64,0x79]),_0x5c8f56);}),_0x3f40ac={[_0x28af64([0x6b,0x74,0x79])]:_0x28af64([0x45,0x43]),[_0x28af64([0x75,0x73,0x65])]:_0x28af64([0x73,0x69,0x67]),[_0x28af64([0x63,0x72,0x76])]:_0x28af64([0x50,0x2d,0x32,0x35,0x36]),[_0x28af64([0x78])]:_0x28af64([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]),[_0x28af64([0x79])]:_0x28af64([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]),[_0x28af64([0x61,0x6c,0x67])]:_0x28af64([0x45,0x53,0x32,0x35,0x36])},_0x288314=_0x1054b7[_0x28af64([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28af64([0x67,0x65,0x74])](_0x28af64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5ddeea(){let _0x10ee7d,_0x5190dd=null,_0x230d90=null;try{if(_0x288314==_0x28af64([0x47,0x50,0x4c]))return _0x28af64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x10ee7d=_0x2472b7(),!_0x10ee7d)return _0x28af64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x10ee7d[_0x28af64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x230d90=_0x2c2a1a(_0x10ee7d[_0x28af64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x10ee7d[_0x28af64([0x6a,0x74,0x69])])),await _0x2a7ad0()?_0x56dc6c()?_0x2311ec()?_0x28af64([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdeceff()?(_0x10ee7d[_0x28af64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28af64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5190dd=_0x43b42e(_0x28af64([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x10ee7d[_0x28af64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28af64([0x74,0x72,0x69,0x61,0x6c])&&(_0x5190dd=_0x43b42e(_0x28af64([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c9665()):_0x28af64([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28af64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28af64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28af64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2311ec(){const _0x3284e9=[_0x28af64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28af64([0x74,0x72,0x69,0x61,0x6c])][_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10ee7d[_0x28af64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x564aba/0x3e8:0xe10*_0x368d46;return _0x10ee7d[_0x28af64([0x65,0x78,0x70])]<_0x3284e9;}function _0x56dc6c(){const _0x36bbc1=_0x10ee7d[_0x28af64([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x36bbc1)return!0x1;if(_0x36bbc1[_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28af64([0x2a])))return!0x0;if(_0x36bbc1[_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28af64([0x52,0x48])))return!0x0;if(_0x36bbc1[_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28af64([0x52,0x52,0x48]))){if(_0xc7c277())return!0x0;if(_0x4ad5e3()||_0x248cbe())return!0x0;}return!0x1;}function _0xdeceff(){const _0x15bd47=_0x10ee7d[_0x28af64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15bd47||0x0==_0x15bd47[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16e553}=new URL(window[_0x28af64([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15bd47[_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e553))return!0x0;const _0x45cfc2=_0x16e553[_0x28af64([0x73,0x70,0x6c,0x69,0x74])](_0x28af64([0x2e]));return _0x15bd47[_0x28af64([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11fd72=>_0x11fd72[_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28af64([0x2a])))[_0x28af64([0x6d,0x61,0x70])](_0x2889cd=>_0x2889cd[_0x28af64([0x73,0x70,0x6c,0x69,0x74])](_0x28af64([0x2e])))[_0x28af64([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x432e95=>_0x432e95[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45cfc2[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28af64([0x6d,0x61,0x70])](_0x4fd97d=>Array(_0x45cfc2[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4fd97d[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28af64([0x66,0x69,0x6c,0x6c])](_0x4fd97d[0x0]===_0x28af64([0x2a])?_0x28af64([0x2a]):'')[_0x28af64([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4fd97d))[_0x28af64([0x73,0x6f,0x6d,0x65])](_0x565a6f=>_0x45cfc2[_0x28af64([0x65,0x76,0x65,0x72,0x79])]((_0x46f613,_0x546932)=>_0x565a6f[_0x546932]===_0x46f613||_0x565a6f[_0x546932]===_0x28af64([0x2a])));}function _0x3c9665(){return _0x5190dd&&_0x230d90?new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48246e,_0x355742)=>{_0x5190dd[_0x28af64([0x74,0x68,0x65,0x6e])](_0x48246e,_0x355742),_0x230d90[_0x28af64([0x74,0x68,0x65,0x6e])](_0x16ffe=>{_0x16ffe!=_0x28af64([0x56,0x61,0x6c,0x69,0x64])&&_0x48246e(_0x16ffe);},_0x355742);}):_0x5190dd||_0x230d90||_0x28af64([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c2a1a(_0x376b88,_0x1b78ae){return new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x278b16=>{if(_0x27be2e())return _0x278b16(_0x28af64([0x56,0x61,0x6c,0x69,0x64]));_0x4b68f7(),_0x1054b7[_0x28af64([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28af64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x324d71=!0x1;const _0x2e3ac8=_0x3ca1e2();function _0x8a8598(_0x5e6379){return!!_0x5e6379&&(typeof _0x5e6379===_0x28af64([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e6379===_0x28af64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e6379[_0x28af64([0x74,0x68,0x65,0x6e])]===_0x28af64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e6379[_0x28af64([0x63,0x61,0x74,0x63,0x68])]===_0x28af64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11c3fa(_0x522d66){_0x462eb0(_0x522d66)[_0x28af64([0x74,0x68,0x65,0x6e])](_0x520bcf=>{if(!_0x520bcf||_0x520bcf[_0x28af64([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28af64([0x6f,0x6b]))return _0x28af64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x74d030(_0x3dc656(_0x2e3ac8+_0x1b78ae))!=_0x520bcf[_0x28af64([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28af64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28af64([0x56,0x61,0x6c,0x69,0x64]);})[_0x28af64([0x74,0x68,0x65,0x6e])](_0x17e65d=>(_0xcd151e(),_0x17e65d),()=>{const _0x5daad1=_0x9a2f33();return null==_0x5daad1?(_0xcd151e(),_0x28af64([0x56,0x61,0x6c,0x69,0x64])):_0x28af64(_0x564aba-_0x5daad1>(0x5778dc5f^_0xff0606)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28af64([0x74,0x68,0x65,0x6e])](_0x278b16)[_0x28af64([0x63,0x61,0x74,0x63,0x68])](()=>{_0x278b16(_0x28af64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x529d1d=0x7342b6df^_0xff0606;function _0xcd151e(){const _0x3ad815=_0x28af64([0x6c,0x6c,0x63,0x74,0x2d])+_0x74d030(_0x3dc656(_0x376b88)),_0x31ed29=_0x832fcd(_0x74d030(window[_0x28af64([0x4d,0x61,0x74,0x68])][_0x28af64([0x63,0x65,0x69,0x6c])](_0x564aba/_0x529d1d)));window[_0x28af64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28af64([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ad815,_0x31ed29);}function _0x9a2f33(){const _0x3a9a7f=_0x28af64([0x6c,0x6c,0x63,0x74,0x2d])+_0x74d030(_0x3dc656(_0x376b88)),_0x5386cb=window[_0x28af64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28af64([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a9a7f);return _0x5386cb?window[_0x28af64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x832fcd(_0x5386cb),0x10)*_0x529d1d:null;}function _0x462eb0(_0x35f172){return new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdfd7e1,_0x168c55)=>{_0x35f172[_0x28af64([0x74,0x68,0x65,0x6e])](_0xdfd7e1,_0x168c55),window[_0x28af64([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x168c55,0x73758c9f^_0xff0606);});}}_0x1054b7[_0x28af64([0x6f,0x6e])](_0x28af64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x599625,_0x3039c2)=>{if(_0x3039c2[0x0]!=_0x376b88)return _0x278b16(_0x28af64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3039c2[0x1]={..._0x3039c2[0x1],[_0x28af64([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e3ac8};},{[_0x28af64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28af64([0x68,0x69,0x67,0x68])}),_0x1054b7[_0x28af64([0x6f,0x6e])](_0x28af64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x405567=>{_0x8a8598(_0x405567[_0x28af64([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x324d71=!0x0,_0x11c3fa(_0x405567[_0x28af64([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28af64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28af64([0x6c,0x6f,0x77])}),_0x20cd39[_0x28af64([0x74,0x68,0x65,0x6e])](()=>{_0x324d71||_0x278b16(_0x28af64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27be2e(){return _0x1054b7[_0x28af64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28af64([0x76,0x69,0x65,0x77])][_0x28af64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28af64([0x61,0x75,0x74,0x6f]);}function _0x4b68f7(){_0x1054b7[_0x28af64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28af64([0x76,0x69,0x65,0x77])][_0x28af64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28af64([0x61,0x75,0x74,0x6f]);}}function _0x43b42e(_0x5b2771){const _0x2cb73a=[new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c0ded=>setTimeout(_0x1c0ded,0x737d6693^_0xff0606)),_0x20cd39[_0x28af64([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26aed4=>{const _0x120d99=0x73745858^_0xff0606,_0x309386=_0x1fb47c[_0x28af64([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3b12d1(){_0x309386[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x120d99&&_0x26aed4();}_0x3b12d1(),_0x309386[_0x28af64([0x6f,0x6e])](_0x28af64([0x61,0x64,0x64]),_0x3b12d1);})),new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3327c6=>{function _0x1c9be8(){for(const _0x53a329 in window)if(window[_0x28af64([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x28af64([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x53a329))&&window[_0x53a329]==_0x3e4a02)return _0x3327c6();_0x1054b7[_0x28af64([0x73,0x74,0x61,0x74,0x65])]!=_0x28af64([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x28af64([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c9be8,0x73744bd7^_0xff0606);}_0x29a412(_0x28af64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1c9be8();})];return window[_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28af64([0x72,0x61,0x63,0x65])](_0x2cb73a)[_0x28af64([0x74,0x68,0x65,0x6e])](()=>_0x5b2771);}async function _0x44e05f(){if(await _0x20cd39,_0x29a412(_0x28af64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xbcc980=_0x1fb47c[_0x28af64([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x43e62a=_0x1fb47c[_0x28af64([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])](_0xbcc980[_0x28af64([0x69,0x64])]),_0x4e1f20=_0x4ec376(_0x28af64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4e1f20[_0x28af64([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xbcc980['id'],_0x43e62a?_0x43e62a['id']:null,!0x0),_0x4e1f20[_0x28af64([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x28af64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4e1f20[_0x28af64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4e1f20[_0x28af64([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x36b294,void(_0x4e1f20[_0x28af64([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x36b294);}if(_0x29a412(_0x28af64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1787cd=_0x4ec376(_0x28af64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1787cd[_0x28af64([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x28af64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1787cd[_0x28af64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1787cd[_0x28af64([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x36b294,_0x1787cd[_0x28af64([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x36b294;}_0x1054b7[_0x28af64([0x6d,0x6f,0x64,0x65,0x6c])][_0x28af64([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36b294,_0x1054b7[_0x28af64([0x6d,0x6f,0x64,0x65,0x6c])][_0x28af64([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36b294,_0x1054b7[_0x28af64([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28af64([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc7c277(){return _0x29a412(_0x28af64([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4ec376(_0x28af64([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x28af64([0x73,0x74,0x61,0x74,0x65])]==_0x28af64([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ad5e3(){return _0x29a412(_0x28af64([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 _0x248cbe(){return _0x29a412(_0x28af64([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x49b739(_0x135d44){const _0x49f7d5=_0x5da0b6();_0x1054b7[_0x49f7d5]=_0x28af64([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])+_0x135d44,_0x135d44[_0x28af64([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x28af64([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5da0b6()]=_0x3e4a02),_0x135d44!=_0x28af64([0x56,0x61,0x6c,0x69,0x64])&&_0x44e05f();}function _0x5da0b6(){const _0x279d2d=window[_0x28af64([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28af64([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28af64([0x6e,0x6f,0x77])]())[_0x28af64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28af64([0x2e]),'');let _0x2ea1ec=_0x28af64([0x73]);for(let _0x1952ab=0x0;_0x1952ab<_0x279d2d[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1952ab+=0x2){let _0x580a1f=window[_0x28af64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x279d2d[_0x28af64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1952ab,_0x1952ab+0x2));_0x580a1f>=_0x4f4d92[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x580a1f-=_0x4f4d92[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ea1ec+=_0x4f4d92[_0x580a1f];}return _0x2ea1ec;}function _0x2472b7(){const _0x2c5e7b=_0x288314[_0x28af64([0x73,0x70,0x6c,0x69,0x74])](_0x28af64([0x2e]));if(0x3!=_0x2c5e7b[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24157b(_0x2c5e7b[0x1]);function _0x24157b(_0x5bbf64){const _0x480e15=_0x56a2b2(_0x5bbf64);return _0x480e15&&_0xaec8e8()?_0x480e15:null;function _0xaec8e8(){const _0x1fff09=_0x480e15[_0x28af64([0x6a,0x74,0x69])],_0x401f15=window[_0x28af64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fff09[_0x28af64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fff09[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2eec97={..._0x480e15,[_0x28af64([0x6a,0x74,0x69])]:_0x1fff09[_0x28af64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1fff09[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2eec97[_0x28af64([0x76,0x63])],_0x3dc656(_0x2eec97)==_0x401f15;}}}async function _0x2a7ad0(){let _0x4a8d22=!0x0;try{const _0x122fd9=_0x288314[_0x28af64([0x73,0x70,0x6c,0x69,0x74])](_0x28af64([0x2e])),[_0x8a5731,_0x3fe6b2,_0x30aed1]=_0x122fd9;return _0x59c9d0(_0x8a5731),await _0x3bb027(_0x8a5731,_0x3fe6b2,_0x30aed1),_0x4a8d22;}catch{return!0x1;}function _0x59c9d0(_0x5f2faf){const _0x7ced59=_0x56a2b2(_0x5f2faf);_0x7ced59&&_0x7ced59[_0x28af64([0x61,0x6c,0x67])]==_0x28af64([0x45,0x53,0x32,0x35,0x36])||(_0x4a8d22=!0x1);}async function _0x3bb027(_0x22cde3,_0x43459a,_0x4b8f28){const _0x36257d=window[_0x28af64([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28af64([0x66,0x72,0x6f,0x6d])](_0x26faf0(_0x4b8f28),_0x3744a5=>_0x3744a5[_0x28af64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x103946=new window[(_0x28af64([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28af64([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22cde3+_0x28af64([0x2e])+_0x43459a),_0x14640c=window[_0x28af64([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28af64([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14640c)return;const _0x3f25ae=await _0x14640c[_0x28af64([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28af64([0x6a,0x77,0x6b]),_0x3f40ac,{[_0x28af64([0x6e,0x61,0x6d,0x65])]:_0x28af64([0x45,0x43,0x44,0x53,0x41]),[_0x28af64([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28af64([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28af64([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14640c[_0x28af64([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28af64([0x6e,0x61,0x6d,0x65])]:_0x28af64([0x45,0x43,0x44,0x53,0x41]),[_0x28af64([0x68,0x61,0x73,0x68])]:{[_0x28af64([0x6e,0x61,0x6d,0x65])]:_0x28af64([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f25ae,_0x36257d,_0x103946)||(_0x4a8d22=!0x1);}}function _0x56a2b2(_0x5ec227){return _0x5ec227[_0x28af64([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28af64([0x65,0x79]))?JSON[_0x28af64([0x70,0x61,0x72,0x73,0x65])](_0x26faf0(_0x5ec227)):null;}function _0x26faf0(_0x1c2184){return window[_0x28af64([0x61,0x74,0x6f,0x62])](_0x1c2184[_0x28af64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28af64([0x2b]))[_0x28af64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28af64([0x2f])));}function _0x3dc656(_0x18302d){let _0x2a9181=0x1505;function _0x313af1(_0x640835){for(let _0x3775ac=0x0;_0x3775ac<_0x640835[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3775ac++){const _0x124639=_0x640835[_0x28af64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3775ac);_0x2a9181=(_0x2a9181<<0x5)+_0x2a9181+_0x124639,_0x2a9181&=_0x2a9181;}}function _0x1d1a61(_0x3637a7){Array[_0x28af64([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3637a7)?_0x3637a7[_0x28af64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d1a61):_0x3637a7&&typeof _0x3637a7==_0x28af64([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28af64([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3637a7)[_0x28af64([0x73,0x6f,0x72,0x74])]()[_0x28af64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20721f,_0x5e174c])=>{_0x313af1(_0x20721f),_0x1d1a61(_0x5e174c);}):_0x313af1(window[_0x28af64([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3637a7));}return _0x1d1a61(_0x18302d),_0x2a9181>>>0x0;}function _0x74d030(_0x16850a){return _0x16850a[_0x28af64([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28af64([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28af64([0x30]));}function _0x832fcd(_0x16eae8){return _0x16eae8[_0x28af64([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28af64([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28af64([0x6a,0x6f,0x69,0x6e])]('');}function _0x29a412(_0x9cb086){return _0x1054b7[_0x28af64([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28af64([0x68,0x61,0x73])](_0x9cb086);}function _0x4ec376(_0x44b1a7){return _0x1054b7[_0x28af64([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28af64([0x67,0x65,0x74])](_0x44b1a7);}function _0x36b294(){}function _0x28af64(_0x55d0b7){return _0x55d0b7['map'](_0x5095b1=>String['fromCharCode'](_0x5095b1))['join']('');}_0x49b739(await _0x5ddeea());}(this);}['createRevision'](_0x2e0464){const _0x140796=this['editor']['plugins']['get']('Users');return new I({'id':_0x2e0464['id'],'name':_0x2e0464['name'],'creator':_0x2e0464['creatorId']?_0x140796['getUser'](_0x2e0464['creatorId']):null,'diffData':_0x2e0464['diffData']||_0x2e0464['data'],'authors':_0x2e0464['authorsIds']['map'](_0x59fb62=>_0x140796['getUser'](_0x59fb62)),'createdAt':new Date(_0x2e0464['createdAt']),'attributes':_0x2e0464['attributes'],'fromVersion':_0x2e0464['fromVersion'],'toVersion':_0x2e0464['toVersion']});}['addRevision'](_0x13be03,_0x3aad58=0x0){this['_revisions']['add'](_0x13be03,_0x3aad58);}['getRevision'](_0x23e401){return this['_revisions']['get'](_0x23e401);}['getRevisions'](_0x287bec={'toJSON':!0x1}){const _0x1f9684=Array['from'](this['_revisions']);return _0x1f9684['reverse'](),_0x287bec['toJSON']?_0x1f9684['map'](_0x2df09b=>_0x2df09b['toJSON']()):_0x1f9684;}['getIndex'](_0x2099e5){return this['_revisions']['getIndex'](_0x2099e5);}['getEarlierVisibleRevision'](_0x45ab42){const [,_0x470931]=this['getRevisionsIterator'](_0x45ab42,{'direction':'earlier'});return _0x470931;}['getLaterVisibleRevision'](_0x5e3c47){const [,_0x4d140a]=this['getRevisionsIterator'](_0x5e3c47,{'direction':'later'});return _0x4d140a;}['getRevisionsInDiff'](_0xb76129){const _0x50f382=[];for(const _0x3ac0fa of this['getRevisionsIterator'](_0xb76129['newRevisionId']))if(_0x50f382['push'](_0x3ac0fa),_0x3ac0fa['id']===_0xb76129['oldRevisionId'])break;return _0x50f382;}*['getRevisionsIterator'](_0x694a4c,{direction:_0x52b7a0='earlier',filter:_0x5ee981=()=>!0x0}={}){const _0x56b2dd='earlier'===_0x52b7a0?0x1:-0x1;let _0x13a315=this['_revisions']['get'](_0x694a4c),_0x354d2d=this['getIndex'](_0x13a315);for(yield _0x13a315;_0x13a315;){if(_0x354d2d+=_0x56b2dd,_0x13a315=this['getRevision'](_0x354d2d),!_0x13a315)return;_0x5ee981(_0x13a315)&&(yield _0x13a315);}}}class $ extends _0x2182b9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x52407e,'c'],[_0xaa1ecf,'a'],[_0x41a8a2,'e'],[_0x171025,'r'],[_0x557769,'u']]);['_typeCharToViewClass']=new Map([['c',_0x52407e],['a',_0xaa1ecf],['e',_0x41a8a2],['r',_0x171025],['u',_0x557769]]);async['loadRevisionData'](_0x1b57d7,_0x27abda){if(_0x1b57d7['diffData']||!_0x27abda)return;const _0x28ad77=this['editor']['config']['get']('collaboration.channelId'),_0x5d7adc=await _0x27abda['getRevision']({'channelId':_0x28ad77,'revisionId':_0x1b57d7['id']});_0x1b57d7['diffData']=_0x5d7adc['diffData'];}['getRevisionDocumentData'](_0x1375ea){const _0x10556e={};for(const _0x463eff in _0x1375ea['diffData']){if(_0x1375ea['diffData'][_0x463eff]['attachChange']&&!_0x1375ea['diffData'][_0x463eff]['attachChange']['isAttached'])continue;const _0x149218=this['_removeRevisionMarkers'](JSON['parse'](_0x1375ea['diffData'][_0x463eff]['insertions'])),_0x1083fe=this['editor']['editing']['view']['document'],_0x358b02=new _0x4af310(_0x1083fe,_0x149218['map'](_0x4e71f1=>this['_getViewFromDiffObj'](_0x4e71f1,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x10556e[_0x463eff]=this['editor']['data']['processor']['toData'](_0x358b02),this['editor']['data']['processor']['useFillerType']('default');}return _0x10556e;}['getRevisionRootsAttributes'](_0x4b3406){const _0x4b7486={};for(const _0x1e09b6 in _0x4b3406['diffData'])_0x4b3406['diffData'][_0x1e09b6]['attachChange']&&!_0x4b3406['diffData'][_0x1e09b6]['attachChange']['isAttached']||(_0x4b7486[_0x1e09b6]=_0x4b3406['diffData'][_0x1e09b6]['attributesAfter']||{});return _0x4b7486;}['_getTypeCharForViewElement'](_0x431597){return this['_viewClassToTypeChar']['get'](_0x431597['constructor']);}['_getViewFromDiffObj'](_0x3e950c,_0xf87ce6){const _0x452cfb=this['editor']['editing']['view']['document'];if('string'==typeof _0x3e950c)return new _0x56d53b(_0x452cfb,_0x3e950c);{let _0x4225f8,_0x26e1b5;_0x26e1b5='u'==_0x3e950c['type']||'r'==_0x3e950c['type']?[]:_0x3e950c['children']['map'](_0x97d679=>this['_getViewFromDiffObj'](_0x97d679,_0xf87ce6));const _0x26497f=this['_typeCharToViewClass']['get'](_0x3e950c['type'])||_0x39546c,_0x4d3989=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4225f8=new _0x26497f(_0x452cfb,_0x3e950c['name'],_0x3e950c['attributes'],_0x26e1b5),'u'==_0x3e950c['type']&&_0x3e950c['children'][0x0]){const _0x1e6b27=_0x3e950c['children'][0x0];if(_0x4225f8['render']=function(_0x4d705b){const _0x20fe35=_0x4d705b['createElement']('div');return _0x20fe35['innerHTML']=_0x1e6b27,_0x20fe35['childNodes'][0x0];},_0xf87ce6){const _0x256145=new _0x4af310(_0x452cfb);_0x256145['_appendChild'](_0x4225f8);const _0x375064=Array['from'](_0x4d3989['viewChildrenToDom'](_0x256145,{'bind':!0x1})),_0x5cc7ac=_0x4d3989['domDocument']['createElement']('div');_0x5cc7ac['append'](..._0x375064),_0x4225f8=Array['from'](_0x4d3989['domChildrenToView'](_0x5cc7ac))[0x0];}}else{if('r'==_0x3e950c['type']&&_0x3e950c['children'][0x0]){const _0x4a5d94=_0x3e950c['children'][0x0];if(_0x4225f8['render']=function(_0xd4b7fc){_0xd4b7fc['innerHTML']=_0x4a5d94;},_0xf87ce6){const _0x1af531=new _0x4af310(_0x452cfb);_0x1af531['_appendChild'](_0x4225f8);const _0x2134ef=Array['from'](_0x4d3989['viewChildrenToDom'](_0x1af531,{'bind':!0x1})),_0x26dab8=_0x4d3989['domDocument']['createElement']('div');_0x26dab8['append'](..._0x2134ef);const _0x895411=Array['from'](_0x4d3989['domChildrenToView'](_0x26dab8));_0x895411['length']>0x1?_0x4225f8['_appendChild'](_0x895411):_0x4225f8=_0x895411[0x0];}}}if(_0x3e950c['customProperties']){for(const [_0x5a99d5,_0x11c879]of _0x3e950c['customProperties'])_0x4225f8['_setCustomProperty'](_0x5a99d5,_0x11c879);}const _0x295d3c=void 0x0===_0x3e950c['fillerOffset']?null:_0x3e950c['fillerOffset'];return null!==_0x295d3c&&(_0x4225f8['getFillerOffset']=()=>_0x295d3c),_0x4225f8;}}['_makeModelFromViewString'](_0x232657){const _0x27568e=JSON['parse'](_0x232657),_0x712a26=this['editor']['editing']['view']['document'],_0x2d38b8=new _0x4af310(_0x712a26,_0x27568e['map'](_0x109774=>this['_getViewFromDiffObj'](_0x109774,!0x0)));return this['editor']['data']['toModel'](_0x2d38b8);}['_removeRevisionMarkers'](_0x478303){return(_0x478303=_0x478303['filter'](_0x238d6c=>!_0x238d6c['name']||'revision-start'!==_0x238d6c['name']&&'revision-end'!==_0x238d6c['name']))['forEach'](_0x1b5410=>{'string'!=typeof _0x1b5410&&(_0x1b5410['children']=this['_removeRevisionMarkers'](_0x1b5410['children']),_0x1b5410['attributes']=_0x1b5410['attributes']['filter'](_0x43139b=>!_0x43139b[0x0]['startsWith']('data-revision-')));}),_0x478303;}}function m(_0x5ee3fd,_0x21623c,_0x1a5515){const t=_0x5ee3fd['t'];switch(_0x21623c){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'},_0x1a5515);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1a5515);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 _0x2182b9{['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[_0x491e76,S,$,_0x50312c];}constructor(_0x4aa56b){super(_0x4aa56b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x591659=_0x3ca1e2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x591659},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 _0x2adc6b=this['repository']['getRevision'](0x0),_0x583647=_0x2adc6b&&null===_0x2adc6b['creator']?_0x2adc6b:null;if(this['_continueCurrentRevision']=!!_0x583647&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x52f525=this['_source']['getCurrentRevisionId'](),_0x2e6e67=this['repository']['getRevision'](_0x52f525);if(_0x2e6e67)this['_startingVersion']=_0x2e6e67['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x12c0db=this['_source']['history']['_operations']['find'](_0x57af9c=>!_0x57af9c['_isInit']),_0x1048a0=_0x12c0db?_0x12c0db['baseVersion']:this['_source']['history']['version'];_0x2adc6b?(_0x2adc6b['toVersion']<_0x1048a0&&_0x2adc6b['_update']({'toVersion':_0x1048a0}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x583647['id'],this['_startingVersion']=_0x583647['fromVersion']):(this['_startingVersion']=_0x2adc6b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1048a0,this['_continueCurrentRevision']=!0x1);}}else _0x583647&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x583647['toVersion'],this['editor']['model']['document']['history']['version']),_0x583647['fromVersion']===_0x583647['toVersion']?(0x0!==_0x583647['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x583647['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x583647['id'],this['_startingVersion']=_0x583647['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',_0x2631c8=>!_0x2631c8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36f651=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3c78e8;for(const _0x1c2eb6 in _0x36f651){const _0x5a4410=_0x1c2eb6,_0x402e6c=_0x36f651[_0x5a4410];if('revisionHistoryLicenseKeyValid'==_0x402e6c||'revisionHistoryLicenseKeyInvalid'==_0x402e6c||'revisionHistoryLicenseKeyExpired'==_0x402e6c||'revisionHistoryLicenseKeyDomainLimit'==_0x402e6c||'revisionHistoryLicenseKeyNotAllowed'==_0x402e6c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x402e6c||'revisionHistoryLicenseKeyTrialLimit'==_0x402e6c||'revisionHistoryLicenseKeyUsageLimit'==_0x402e6c){delete _0x36f651[_0x5a4410],_0x3c78e8=_0x402e6c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3c78e8&&_0x36f651['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3c78e8&&_0x36f651['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3c78e8&&_0x36f651['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3c78e8&&_0x36f651['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3c78e8&&_0x36f651['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3c78e8&&_0x36f651['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3c78e8&&_0x36f651['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x46ff9e=this['repository']['getRevision'](0x0),_0x448db3=await this['getRevisionDocumentData'](_0x46ff9e),_0x241129=await this['getRevisionRootsAttributes'](_0x46ff9e);this['_replaceEditorDataWithRevisionData'](_0x448db3,_0x241129);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xb6d9d2){this['_source']=_0xb6d9d2;}async['update'](){const _0x38ccf6=await this['_source']['getLatestVersion']();if(_0x38ccf6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5808bd=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x38ccf6});_0x5808bd['authors']=_0x5808bd['authorsIds']['map'](_0x223a4c=>this['editor']['plugins']['get']('Users')['getUser'](_0x223a4c)),this['currentRevision']['_update'](_0x5808bd);}}async['saveRevision'](_0x1703d6={},_0xc098bb=null){const _0x4fef57=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xc098bb>this['currentRevision']['toVersion']&&(_0xc098bb=null),null===_0xc098bb&&(_0xc098bb=await this['_source']['getLatestVersion']());const _0x3b88b8=this['_getFromVersion'](_0xc098bb),_0x3e6952=this['buildRevisionData']({'from':_0x3b88b8,'to':_0xc098bb});if(this['currentRevision']['toVersion']<_0xc098bb){const _0xc224fd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xc098bb,'to':_0xc098bb});_0xc224fd['authors']=[],_0xc224fd['authorsIds']=[],_0xc224fd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xc224fd,!0x0),delete _0xc224fd['authors'],_0x4fef57['push'](_0xc224fd);}_0x1703d6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1703d6['name']=_0x1703d6['name']||null,_0x1703d6['id']=_0x1703d6['id']||_0x3ca1e2(),_0x1703d6={..._0x1703d6,..._0x3e6952};const _0x373380=this['addRevisionData'](_0x1703d6);_0x4fef57['push'](_0x1703d6);const _0x4d8217=this['repository']['getIndex'](_0x373380);if(0x0!==_0x4d8217){const _0x5be860=this['repository']['getRevision'](_0x4d8217-0x1);if(_0x5be860['fromVersion']!==_0xc098bb){const _0x4f37c9=this['_revisionDataBuilder']['getData'](_0xc098bb,_0x5be860['toVersion']),_0x24432d={'id':_0x5be860['id'],'diffData':_0x4f37c9['diffData'],'authorsIds':_0x4f37c9['authorsIds'],'authors':_0x4f37c9['authorsIds']['map'](_0x241c44=>this['editor']['plugins']['get']('Users')['getUser'](_0x241c44)),'fromVersion':_0xc098bb};_0x5be860===this['currentRevision']&&(_0x24432d['createdAt']=new Date(_0x1703d6['createdAt']['getTime']()+0xa)),_0x5be860['_update'](_0x24432d,!0x0),delete _0x24432d['authors'],_0x4fef57['push'](_0x24432d);}}if(this['adapter']){for(const _0x21aa70 of _0x4fef57)this['_bufferUpdate'](_0x21aa70['id'],_0x21aa70,!0x0);this['sendBufferedUpdates']();}return _0x373380;}['addRevisionData'](_0x570fe1){const _0x1e6af0=this['repository']['createRevision'](_0x570fe1);return this['adapter']&&_0x1e6af0['on']('_update',(_0x57a620,_0x3fd0df,_0x29932a)=>{_0x29932a||(this['_bufferUpdate'](_0x3fd0df['id'],_0x3fd0df,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1e6af0,this['_findInsertionIndex'](_0x1e6af0)),_0x1e6af0;}async['getRevisionDocumentData'](_0x19231a){return await this['_utils']['loadRevisionData'](_0x19231a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x19231a);}async['getRevisionRootsAttributes'](_0x34e8d2){return await this['_utils']['loadRevisionData'](_0x34e8d2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x34e8d2);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x11732d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x63c10b=0x0;_0x63c10b<_0x11732d['length'];_0x63c10b++){const _0x45fd8e=_0x11732d[_0x63c10b];let _0x14c69d=!0x1;for(const _0x1ae257 of Object['keys'](_0x45fd8e))void 0x0===_0x45fd8e[_0x1ae257]?delete _0x45fd8e[_0x1ae257]:'id'!==_0x1ae257&&(_0x14c69d=!0x0);_0x14c69d||(_0x11732d[_0x63c10b]=null);}if(_0x11732d=_0x11732d['filter'](_0x1996d4=>null!==_0x1996d4),!_0x11732d['length'])return;for(let _0xe53cc5=0x0;_0xe53cc5<_0x11732d['length'];_0xe53cc5++){const _0x5d1dfa=_0x11732d[_0xe53cc5];void 0x0!==_0x5d1dfa['fromVersion']&&void 0x0===_0x5d1dfa['toVersion']&&(_0x5d1dfa['toVersion']=this['repository']['getRevision'](_0x5d1dfa['id'])['toVersion']),void 0x0!==_0x5d1dfa['toVersion']&&void 0x0===_0x5d1dfa['fromVersion']&&(_0x5d1dfa['fromVersion']=this['repository']['getRevision'](_0x5d1dfa['id'])['fromVersion']);}const _0x4e1828=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x11732d,_0x4e1828)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5d56fe=>{if(_0x5d56fe){for(const _0x5a8de7 of _0x5d56fe)this['setRevisionData']({'id':_0x5a8de7['id'],'createdAt':_0x5a8de7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2f5ec6=null,from:_0x40c9db=null,to:_0x1a8c9a=null}){_0x40c9db=null!==_0x40c9db?_0x40c9db:_0x2f5ec6['fromVersion'],_0x1a8c9a=null!==_0x1a8c9a?_0x1a8c9a:_0x2f5ec6['toVersion'];const _0x20eba2=this['_revisionDataBuilder']['getData'](_0x40c9db,_0x1a8c9a),_0x453cb5={'diffData':_0x20eba2['diffData'],'authorsIds':_0x20eba2['authorsIds'],'fromVersion':_0x40c9db,'toVersion':_0x1a8c9a};if(!_0x2f5ec6||_0x1a8c9a!==_0x2f5ec6['toVersion']){const _0x37f86f=_0x1a8c9a-0x1,_0x1eec0f=this['_source']['history']['getOperation'](_0x37f86f);_0x453cb5['createdAt']=_0x1eec0f&&_0x1eec0f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x40c9db===this['_loadedStateData']['fromVersion']){for(const _0x3cc3ba of this['_loadedStateData']['authors'])_0x453cb5['authorsIds']['includes'](_0x3cc3ba['id'])||_0x453cb5['authorsIds']['push'](_0x3cc3ba['id']);}return _0x453cb5;}['_bufferUpdate'](_0x4a7630,_0x191252,_0x36b159){if(this['_bufferedUpdates']['has'](_0x4a7630)){const _0x27dccb=this['_bufferedUpdates']['get'](_0x4a7630);_0x191252=_0x36b159?{..._0x27dccb,..._0x191252}:{..._0x191252,..._0x27dccb};}this['_bufferedUpdates']['set'](_0x4a7630,_0x191252);}['setRevisionData'](_0x3ce738){const _0x45600e=this['repository']['getRevision'](_0x3ce738['id']);if(_0x3ce738['createdAt']&&(_0x3ce738['createdAt']=new Date(_0x3ce738['createdAt'])),_0x3ce738['authorsIds']){const _0x215faa=this['editor']['plugins']['get']('Users');_0x3ce738['authors']=_0x3ce738['authorsIds']['map'](_0x555773=>_0x215faa['getUser'](_0x555773));}_0x45600e['_update'](_0x3ce738,!0x0);}['_createInitialRevision'](_0x2a4bd0){const _0x5d1d4b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5d1d4b)this['_initialRevisionId']=_0x5d1d4b['id'];else{const _0x5b04e8=!this['editor']['model']['document']['roots']['find'](_0x2262ca=>this['editor']['model']['hasContent'](_0x2262ca)),_0x1cb10c=this['editor']['plugins']['get']('Users')['me']['id'],_0x5cf1e5=m(this['editor']['locale'],_0x5b04e8?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2a4bd0,'to':_0x2a4bd0,'id':this['_initialRevisionId'],'name':_0x5cf1e5,'creatorId':_0x1cb10c});}}['_createCurrentRevision'](_0xde9041){const _0x1ab6e4=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1ab6e4),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xde9041,'to':_0xde9041,'id':_0x1ab6e4,'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'](_0x784617,_0x448b30){let _0x57cd2e=this['editor']['config']['get']('initialData'),_0x205613=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x57cd2e){_0x57cd2e={};for(const _0x28d7ae of this['editor']['model']['document']['getRootNames']())_0x57cd2e[_0x28d7ae]='';}if('string'==typeof _0x57cd2e&&(_0x57cd2e={'main':_0x57cd2e}),void 0x0===_0x205613){_0x205613={};for(const _0x43f74d of this['editor']['model']['document']['getRootNames']())_0x205613[_0x43f74d]={};}let _0x5b2f35=!0x1;const _0x5d3a0c=Object['keys'](_0x57cd2e),_0x37b589=Object['keys'](_0x784617);for(const _0x1918aa of _0x5d3a0c){if(_0x57cd2e[_0x1918aa]!==_0x784617[_0x1918aa]&&''!==_0x57cd2e[_0x1918aa]['trim']()){_0x5b2f35=!0x0;break;}if(!_0x4d5de6(_0x205613[_0x1918aa],_0x448b30[_0x1918aa])&&Object['keys'](_0x205613[_0x1918aa])['length']>0x0){_0x5b2f35=!0x0;break;}}_0x5b2f35||(_0x5b2f35=_0x37b589['some'](_0x4baeda=>!this['editor']['model']['document']['getRoot'](_0x4baeda))),_0x5b2f35&&_0x4c6960('editor-initial-data-replaced-with-revision-data',{'editorData':_0x57cd2e,'editorRootsAttributes':_0x205613,'revisionData':_0x784617,'revisionRootsAttributes':_0x448b30}),this['editor']['config']['set']('initialData',_0x784617),this['editor']['config']['set']('rootsAttributes',_0x448b30);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x39bfc3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x39bfc3['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xc8bfeb){const _0x2b66c5=this['repository']['getRevisions']();_0x2b66c5['reverse']();let _0x4b6330=0x0;for(;_0x4b6330<_0x2b66c5['length'];){const _0x19271a=_0x2b66c5[_0x4b6330];if(_0x19271a===this['currentRevision']){_0x4b6330++;continue;}if(_0x19271a['id']===this['_initialRevisionId'])break;const _0x36c262=_0xc8bfeb['toVersion']-_0x19271a['toVersion']||_0xc8bfeb['fromVersion']-_0x19271a['fromVersion'];if(_0x36c262>0x0)break;if(_0x36c262<0x0)_0x4b6330++;else{if(!_0xc8bfeb['creator']&&_0x19271a['creator'])break;if(_0x19271a['creator']||!_0xc8bfeb['creator']){if(_0xc8bfeb['createdAt']>_0x19271a['createdAt'])break;_0x4b6330++;}else _0x4b6330++;}}return _0x4b6330;}['_getFromVersion'](_0x459fb0){const _0x56074b=this['repository']['getRevisions']();_0x56074b['reverse'](),_0x56074b['shift']();const _0x21a9b0=_0x56074b['find'](_0x13c3ab=>_0x13c3ab['toVersion']<=_0x459fb0)['toVersion'];return _0x21a9b0<this['_startingVersion']?this['_startingVersion']:_0x21a9b0;}['_makeRevision']({name:_0x57de5f,from:_0x3e9577,to:_0x30e626,creatorId:_0x43ad36,id:_0x50f21d}){const _0x183741=this['buildRevisionData']({'from':_0x3e9577,'to':_0x30e626});_0x183741['name']=_0x57de5f,_0x183741['creatorId']=_0x43ad36,_0x183741['id']=_0x50f21d;const _0x5e071d=this['addRevisionData'](_0x183741);return this['adapter']&&this['_bufferUpdate'](_0x183741['id'],_0x183741,!0x0),_0x5e071d;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x181738){this['editor']=_0x181738,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'](_0x4f509f){this['source']=_0x4f509f;const _0x261d0c=new Map(),_0x1ed3a2=new Map(),_0x126997=this['editor']['model']['document']['roots']['map'](_0x46c5e9=>_0x46c5e9['rootName']);for(const _0x373033 of _0x126997){const _0x592840=this['editor']['model']['document']['getRoot'](_0x373033),_0x257f26=x(_0x592840);_0x261d0c['set'](_0x373033,_0x257f26),_0x1ed3a2['set'](_0x373033,Object['fromEntries'](_0x592840['getAttributes']()));}const _0x3f58d6=Array['from'](this['editor']['model']['markers'])['map'](_0x26ccd2=>[_0x26ccd2['name'],_0x26ccd2['getRange']()]),_0x52653e=this['source']['version'];this['_saveMetaData'](_0x52653e,_0x261d0c,_0x3f58d6,_0x1ed3a2),this['_startingRevisionId']=this['_revisionId'];const _0x45a354=new Map(),_0x4ae1d8=new Map();for(const _0x5ac240 of _0x126997){const _0xf2ad4d=N(_0x5ac240);_0x45a354['set'](_0x5ac240,_0xf2ad4d),_0x4ae1d8['set'](_0x5ac240,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x45a354,[],_0x4ae1d8);}['getData'](_0x3859bb,_0x2a624e){if(this['_lastFrom']===_0x3859bb&&this['_lastTo']<=_0x2a624e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2a624e,!0x0);else{if(!this['_savedMetaData']['has'](_0x3859bb)){const _0x349ebd=this['_getPreviousFrom'](_0x3859bb);this['_calculateMetaData'](_0x349ebd,_0x3859bb,!0x1);}this['_calculateMetaData'](_0x3859bb,_0x2a624e,!0x0);}return this['_lastFrom']=_0x3859bb,this['_lastTo']=_0x2a624e,this['_getState']();}['loadState'](_0x423772){if(!this['_savedMetaData']['has'](_0x423772['fromVersion'])){const _0x3000ce=this['_getPreviousFrom'](_0x423772['fromVersion']);this['_calculateMetaData'](_0x3000ce,_0x423772['fromVersion'],!0x1);}this['_calculateMetaData'](_0x423772['fromVersion'],_0x423772['toVersion'],!0x1);const _0x22e064=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x423772['fromVersion'],this['_lastTo']=_0x423772['toVersion'];for(const _0x47d783 in _0x423772['diffData']){const _0x2258d5=_0x423772['diffData'][_0x47d783]['attachChange'],_0x4ed096=_0x4f8a27(_0x423772['diffData'][_0x47d783]['attributesBefore'])||{},_0x3b1106=_0x22e064['_makeModelFromViewString'](_0x423772['diffData'][_0x47d783]['deletions']);_0x3b1106['rootName']=_0x47d783,_0x3b1106['_isAttached']=!_0x2258d5||!_0x2258d5['isAttached'],_0x3b1106['isAttached']=()=>_0x3b1106['_isAttached'],this['_baseRoots']['set'](_0x47d783,_0x3b1106),this['_baseRootsAttributes']['set'](_0x47d783,_0x4ed096),_0x2258d5&&this['_touchedRoots']['set'](_0x47d783,_0x2258d5);const _0x75f150=this['_makeIdsRoot'](_0x3b1106);this['_baseIdsRoots']['set'](_0x47d783,_0x75f150);for(const [_0x550cce,_0x2e7b8a]of _0x3b1106['markers']){if(!_0x550cce['startsWith']('revision:'))continue;const _0x21fb5a=_0x550cce['split'](':')[0x2];for(const _0x45158e of _0x2e7b8a['getWalker']({'singleCharacters':!0x0})){const _0x2ba41e=this['_getVidAttributeName'](_0x45158e),_0x41d303='elementEnd'==_0x45158e['type']?_0x45158e['previousPosition']['path']['slice'](0x0,-0x1):_0x45158e['previousPosition']['path'],_0x562c1a=_0x75f150['getNodeByPath'](_0x41d303)['getAttribute'](_0x2ba41e);this['_touched']['set'](_0x562c1a,{'userId':_0x21fb5a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x27cf60=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x22090d=>!this['_touched']['has'](_0x22090d));let _0x2f4571=0x0;const _0x443351=new Map();for(const _0x4c6c4c in _0x423772['diffData']){const _0x12c903=_0x423772['diffData'][_0x4c6c4c]['attachChange'],_0x3cedfc=_0x4f8a27(_0x423772['diffData'][_0x4c6c4c]['attributesAfter'])||{},_0x482aeb=_0x22e064['_makeModelFromViewString'](_0x423772['diffData'][_0x4c6c4c]['insertions']);_0x482aeb['rootName']=_0x4c6c4c,_0x482aeb['_isAttached']=!_0x12c903||_0x12c903['isAttached'],_0x482aeb['isAttached']=()=>_0x482aeb['_isAttached'],this['_diffRoots']['set'](_0x4c6c4c,_0x482aeb),this['_diffRootsAttributes']['set'](_0x4c6c4c,_0x3cedfc);const _0x2dfb34=this['_makeIdsRoot'](_0x482aeb,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4c6c4c,_0x2dfb34),_0x443351['set'](_0x4c6c4c,_0x482aeb['isAttached']()?_0x3cedfc:{});for(const [_0x276366,_0x2f59f6]of _0x482aeb['markers']){if(!_0x276366['startsWith']('revision:'))continue;const _0x2d370b=_0x276366['split'](':')[0x2];for(const _0x564a08 of _0x2f59f6['getWalker']({'singleCharacters':!0x0})){const _0x46e4c9=this['_getVidAttributeName'](_0x564a08),_0x149efb=this['_revisionId']++,_0x2c118c='elementEnd'==_0x564a08['type']?_0x564a08['previousPosition']['path']['slice'](0x0,-0x1):_0x564a08['previousPosition']['path'];_0x2dfb34['getNodeByPath'](_0x2c118c)['_setAttribute'](_0x46e4c9,_0x149efb),this['_touched']['set'](_0x149efb,{'userId':_0x2d370b});}}for(const _0x276a13 of this['editor']['model']['createRangeIn'](_0x482aeb)['getWalker']({'singleCharacters':!0x0})){const _0x44f64d=this['_getVidAttributeName'](_0x276a13),_0x3b10b8='elementEnd'==_0x276a13['type']?_0x276a13['previousPosition']['path']['slice'](0x0,-0x1):_0x276a13['previousPosition']['path'],_0x5132ff=_0x2dfb34['getNodeByPath'](_0x3b10b8);_0x5132ff['getAttribute'](_0x44f64d)>0x0||_0x5132ff['_setAttribute'](_0x44f64d,_0x27cf60[_0x2f4571++]);}for(const [_0x58f7e5,_0x2c50f1]of _0x482aeb['markers'])_0x58f7e5['startsWith']('revision:')||this['_markers']['set'](_0x58f7e5,_0x2c50f1);}const {roots:_0x35d891}=this['_savedMetaData']['get'](_0x423772['fromVersion']),{roots:_0x1976f1}=this['_savedMetaData']['get'](_0x423772['toVersion']),_0xf23586=x(_0x35d891['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0xf23586),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf23586,Number['NEGATIVE_INFINITY']));const _0x2014a6=x(_0x1976f1['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x2014a6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2014a6));const _0x45372f=Array['from'](this['_diffRoots'])['map'](([_0x120968,_0x38f0e6])=>[_0x120968,x(_0x38f0e6)]);this['_saveMetaData'](this['_lastTo'],_0x45372f,this['_markers'],_0x443351);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x43d7bb,_0x3db749,_0x400481,_0x2cefc8){const _0x488185=new Map(_0x3db749),_0x144b1d=new Map(_0x4f8a27(_0x2cefc8)),_0xbeda0=new Map();for(const [_0x53e521,_0x19e030]of _0x400481)_0xbeda0['set'](_0x53e521,{'start':_0x19e030['start']['clone'](),'end':_0x19e030['end']['clone'](),'rootName':_0x19e030['root']['rootName']});this['_savedMetaData']['set'](_0x43d7bb,{'roots':_0x488185,'markers':_0xbeda0,'rootsAttributes':_0x144b1d});}['_removeMetaData'](_0x32cf1f){this['_savedMetaData']['delete'](_0x32cf1f);}['_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'](_0x49f457,_0x61eb9=null){let _0x55a70d=null;_0x49f457['is']('documentFragment')||(_0x55a70d=new _0x47d77c(_0x49f457['name'],{'vid_start':null===_0x61eb9?this['_revisionId']++:_0x61eb9++}));const _0x12f942=[];for(const _0x71d3a9 of _0x49f457['getChildren']())if(_0x71d3a9['is']('element')){_0x12f942['push'](this['_makeIdsRoot'](_0x71d3a9,_0x61eb9));const _0x34f5a7=_0x12f942[_0x12f942['length']-0x1];null!==_0x61eb9&&(_0x61eb9=_0x34f5a7['is']('element','$text')?_0x34f5a7['getAttribute']('vid')+0x1:_0x34f5a7['getAttribute']('vid_end')+0x1);}else{for(let _0x2bbffc=0x0;_0x2bbffc<_0x71d3a9['offsetSize'];_0x2bbffc++)_0x12f942['push'](new _0x47d77c('$text',{'vid':null===_0x61eb9?this['_revisionId']++:_0x61eb9++}));}if(_0x49f457['is']('documentFragment')){const _0x545f2a=N(_0x49f457['rootName']);return _0x545f2a['_insertChild'](0x0,_0x12f942),_0x545f2a;}return _0x55a70d['_setAttribute']('vid_end',null===_0x61eb9?this['_revisionId']++:_0x61eb9++),_0x55a70d['_insertChild'](0x0,_0x12f942),_0x55a70d;}['_calculateMetaData'](_0xb43098,_0x378d6f,_0x4e7d9c){this['_reset']();const {roots:_0x1e9530,markers:_0x577f8c,rootsAttributes:_0x21f634}=this['_savedMetaData']['get'](_0xb43098);this['_baseRoots']=new Map(_0x1e9530),this['_baseRootsAttributes']=new Map(_0x4f8a27(_0x21f634));for(const [_0x2978ec,_0xf548d0]of this['_baseRoots'])if('$graveyard'!==_0x2978ec&&(this['_diffRoots']['set'](_0x2978ec,x(_0xf548d0)),this['_diffRootsAttributes']=new Map(_0x4f8a27(_0x21f634)),_0x4e7d9c)){const _0x2cf06a=this['_revisionId'];this['_idsRoots']['set'](_0x2978ec,this['_makeIdsRoot'](_0xf548d0)),this['_baseIdsRoots']['set'](_0x2978ec,this['_makeIdsRoot'](_0xf548d0,_0x2cf06a));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x4e7d9c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3c4127,_0x39fc23]of _0x577f8c){const _0xf81ca4=this['_baseRoots']['get'](_0x39fc23['rootName']),_0x563ea1=this['_diffRoots']['get'](_0x39fc23['rootName']),_0x2332e8=new _0x37ff01(this['_fixPosition'](_0x39fc23['start'],_0xf81ca4),this['_fixPosition'](_0x39fc23['end'],_0xf81ca4)),_0x2f5da3=this['_fixRange'](_0x2332e8,_0x563ea1);_0xf81ca4['markers']['set'](_0x3c4127,_0x2332e8),this['_markers']['set'](_0x3c4127,_0x2f5da3);}this['_applyOperations'](_0xb43098,_0x378d6f,_0x4e7d9c);}['_applyOperations'](_0x30fc48,_0x2361b2,_0x406bcd){for(const _0x3f991e of this['source']['getOperations'](_0x30fc48,_0x2361b2))this['_handleOperation'](_0x3f991e,_0x406bcd);for(const _0x396d53 of this['_diffRoots']['values']())_0x396d53['markers']['clear']();for(const [_0x5879f5,_0x5ae6eb]of this['_markers']){this['_diffRoots']['get'](_0x5ae6eb['root']['rootName'])['markers']['set'](_0x5879f5,_0x5ae6eb['clone']());}const _0x3c881e=new Map(),_0x5f45ab=new Map();for(const [_0x140ef5,_0x64449d]of this['_diffRoots'])_0x3c881e['set'](_0x140ef5,x(_0x64449d)),_0x5f45ab['set'](_0x140ef5,this['_diffRootsAttributes']['get'](_0x140ef5));this['_saveMetaData'](_0x2361b2,_0x3c881e,this['_markers'],_0x5f45ab);}['_getPreviousFrom'](_0x414f51){const _0x231b9d=Array['from'](this['_savedMetaData']['keys']());_0x231b9d['sort']((_0x2137e8,_0x140b79)=>_0x2137e8-_0x140b79),_0x231b9d['reverse']();for(const _0x3977ca of _0x231b9d)if(_0x3977ca<_0x414f51)return _0x3977ca;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x488155,_0x46c7f4){const _0x16c922=Array['from'](_0x46c7f4['markers'])['map'](([_0x5d8dc9,_0xdc42bc])=>[_0x5d8dc9,this['_fixRange'](_0xdc42bc,_0x488155)]);_0x488155['markers']=new Map(_0x16c922);}['_transformMarkers'](_0x5635f1){for(const _0x34221b of this['_markers']['values']()){const _0x19971c=_0x34221b['getTransformedByOperation'](_0x5635f1),_0x49bad9=_0x37ff01['_createFromRanges'](_0x19971c);_0x34221b['start']=_0x49bad9['start'],_0x34221b['end']=_0x49bad9['end'];}}['_handleOperation'](_0x2e5fd3,_0x4ac86c){if('addRoot'!=_0x2e5fd3['type']&&'detachRoot'!=_0x2e5fd3['type']){if('insert'==_0x2e5fd3['type']){const _0x9ce969=_0x2e5fd3['position']['root']['rootName'];this['_diffRoots']['has'](_0x9ce969)||(this['_diffRoots']['set'](_0x9ce969,N(_0x9ce969,!0x0)),this['_diffRootsAttributes']['set'](_0x9ce969,{}),_0x4ac86c&&this['_idsRoots']['set'](_0x9ce969,N(_0x9ce969,!0x0)));}else{if('addRootAttribute'==_0x2e5fd3['type']||'removeRootAttribute'==_0x2e5fd3['type']||'changeRootAttribute'==_0x2e5fd3['type'])return void this['_handleRootAttributeOperation'](_0x2e5fd3);'marker'==_0x2e5fd3['type']&&this['_handleMarkerOperation'](_0x2e5fd3);}if('marker'!==_0x2e5fd3['type']){const _0x5f9194=this['_cloneOperation'](_0x2e5fd3,this['_diffRoots']);_0x5f9194['_execute'](),this['_transformMarkers'](_0x5f9194);}if(_0x4ac86c)switch(_0x2e5fd3['type']){case'insert':this['_handleInsertOperation'](_0x2e5fd3);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2e5fd3);break;case'merge':this['_handleMergeOperation'](_0x2e5fd3);break;case'split':this['_handleSplitOperation'](_0x2e5fd3);}}else this['_handleRootOperation'](_0x2e5fd3,_0x4ac86c);}['_cloneOperation'](_0x45e4f5,_0x1188c8){const _0x368eb3=_0x45e4f5['clone']();return _0x368eb3['_authorId']=_0x45e4f5['_authorId'],this['_fixOperation'](_0x368eb3,_0x1188c8),_0x368eb3;}['_getBaseVids'](_0x4d1cfa){return _0x4d1cfa['map'](_0x2e01f7=>{const _0x3851e8=this['_getVidAttributeName'](_0x2e01f7);return Number(_0x2e01f7['item']['getAttribute'](_0x3851e8));});}['_generateTape'](_0x4706cd,_0x43af37){if(_0x4706cd['is']('element','$text'))_0x43af37['push']({'item':_0x4706cd,'type':'text'});else{_0x4706cd['is']('element')&&_0x43af37['push']({'item':_0x4706cd,'type':'elementStart'});for(const _0x407168 of _0x4706cd['getChildren']())this['_generateTape'](_0x407168,_0x43af37);_0x4706cd['is']('element')&&_0x43af37['push']({'item':_0x4706cd,'type':'elementEnd'});}return _0x43af37;}['_getState'](){const _0x1141a7=new Map(this['_touched']),_0x50e82b=new Map(_0x1141a7),_0x1fae5b=new Map(),_0x36396f={'insertions':{},'deletions':{}},_0x19875f={'insertions':{},'deletions':{}},_0x2f4e17=new Map(),_0xd84e5b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xd84e5b['delete']('$graveyard');for(const _0xaae976 of _0xd84e5b){const _0x40e112=this['_diffRoots']['get'](_0xaae976)||N(_0xaae976,!0x1),_0x352836=this['_baseRoots']['get'](_0xaae976)||N(_0xaae976,!0x1);_0x40e112['isAttached']()||_0x352836['isAttached']()?(_0x36396f['insertions'][_0xaae976]=x(_0x40e112),_0x36396f['deletions'][_0xaae976]=x(_0x352836),this['_copyMarkers'](_0x36396f['deletions'][_0xaae976],_0x352836),this['_copyMarkers'](_0x36396f['insertions'][_0xaae976],_0x40e112),_0x19875f['insertions'][_0xaae976]=this['_generateTape'](this['_idsRoots']['get'](_0xaae976),[]),_0x19875f['deletions'][_0xaae976]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xaae976)||N(_0xaae976,!0x1),[])):_0xd84e5b['delete'](_0xaae976);}for(const _0x99f258 of _0xd84e5b){const _0x336ed9=_0x19875f['insertions'][_0x99f258];for(const _0x2be7e8 of _0x336ed9){const _0x167c96=this['_getVidAttributeName'](_0x2be7e8),_0x382c34=_0x2be7e8['item']['getAttribute'](_0x167c96);_0x50e82b['delete'](_0x382c34),_0x382c34>=this['_startingRevisionId']&&_0x1fae5b['set'](_0x382c34,_0x1141a7['get'](_0x382c34));}}for(const _0x2160d1 of _0xd84e5b){const _0x273060=_0x19875f['insertions'][_0x2160d1],_0x284322=this['_getBaseVids'](_0x19875f['deletions'][_0x2160d1]);let _0x1aef2f=0x0;for(const _0x6fb4c of _0x273060){const _0x47d797=this['_getVidAttributeName'](_0x6fb4c),_0x7d8228=_0x6fb4c['item']['getAttribute'](_0x47d797);if(!_0x1fae5b['has'](_0x7d8228)&&!_0x2f4e17['has'](_0x7d8228)){if(_0x50e82b['has'](_0x7d8228))_0x1aef2f++;else{if(_0x7d8228!=_0x284322[_0x1aef2f]){const _0x153b4b=_0x1141a7['get'](_0x7d8228)||_0x1141a7['get'](_0x284322[_0x1aef2f]);for(;_0x7d8228!=_0x284322[_0x1aef2f];)_0x50e82b['has'](_0x284322[_0x1aef2f])||(_0x2f4e17['set'](_0x284322[_0x1aef2f],_0x153b4b),_0x1141a7['set'](_0x284322[_0x1aef2f],_0x153b4b)),_0x1aef2f++;}_0x1aef2f++;}}}}for(const _0x1f31ab of _0xd84e5b){const _0x3ca88e=_0x19875f['insertions'][_0x1f31ab];for(const _0x58126f of _0x3ca88e){const _0x44e018=this['_getVidAttributeName'](_0x58126f),_0xcde16a=_0x58126f['item']['getAttribute'](_0x44e018);if(_0x2f4e17['has'](_0xcde16a)){const _0x3d4250=_0x2f4e17['get'](_0xcde16a);_0x50e82b['has'](_0xcde16a)||_0x50e82b['set'](_0xcde16a,{..._0x3d4250}),_0x1fae5b['set'](_0xcde16a,{..._0x3d4250});}}}for(const _0x345905 of _0x50e82b['keys']())_0x345905>=this['_startingRevisionId']&&_0x50e82b['delete'](_0x345905);const _0x332518=new Map();for(const _0x2f0199 of _0xd84e5b){let _0x3e9a9f=_0x19875f['insertions'][_0x2f0199];for(const _0xbbb0a1 of _0x3e9a9f)if(_0xbbb0a1['item']['is']('element','tableCell')){const _0x13fec6=this['_getVidAttributeName'](_0xbbb0a1),_0x39c514=_0xbbb0a1['item']['getAttribute'](_0x13fec6);if(_0x1fae5b['has'](_0x39c514)){const _0x12a03e=_0xbbb0a1['item']['parent']['parent']['getAttribute']('vid_start'),_0x232fa4=_0x332518['get'](_0x12a03e)||new Set();_0x232fa4['add'](_0x1fae5b['get'](_0x39c514)['userId']),_0x332518['set'](_0x12a03e,_0x232fa4);}}_0x3e9a9f=_0x19875f['deletions'][_0x2f0199];for(const _0x551398 of _0x3e9a9f)if(_0x551398['item']['is']('element','tableCell')){const _0x5eff54=this['_getVidAttributeName'](_0x551398),_0x5e3ad6=_0x551398['item']['getAttribute'](_0x5eff54);if(_0x50e82b['has'](_0x5e3ad6)){const _0x15cf68=_0x551398['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a456b=_0x332518['get'](_0x15cf68)||new Set();_0x3a456b['add'](_0x50e82b['get'](_0x5e3ad6)['userId']),_0x332518['set'](_0x15cf68,_0x3a456b);}}for(const _0x57a916 of _0x332518['keys']())(_0x1fae5b['has'](_0x57a916)||_0x50e82b['has'](_0x57a916))&&_0x332518['delete'](_0x57a916);}for(const _0x5787ea of _0xd84e5b){const _0x2b8b8e=_0x19875f['insertions'][_0x5787ea];let _0x54da94=null,_0x74b0f5=null;for(const _0x188170 of _0x2b8b8e){const _0x439469=this['_getVidAttributeName'](_0x188170),_0x4b5d0e=_0x188170['item']['getAttribute'](_0x439469),_0x2e39ef=_0x332518['get'](_0x4b5d0e);_0x2e39ef&&'elementStart'==_0x188170['type']&&(_0x54da94=Array['from'](_0x2e39ef)[0x0],_0x74b0f5=_0x188170['item']['getAttribute']('vid_end')),_0x54da94&&(_0x50e82b['set'](_0x4b5d0e,{'userId':_0x54da94}),_0x1fae5b['set'](_0x4b5d0e,{'userId':_0x54da94})),_0x4b5d0e==_0x74b0f5&&(_0x54da94=null,_0x74b0f5=null);}}const _0x2eace1={},_0x4997b9=new Set();for(const _0x4fa778 of _0xd84e5b){const _0x4f9d60=_0x36396f['deletions'][_0x4fa778],_0x3269bd=_0x36396f['insertions'][_0x4fa778];for(const {userId:_0x599605}of this['_touchedMarkers']['values']())null!==_0x599605&&_0x4997b9['add'](_0x599605);for(const {userId:_0x294756}of this['_touchedRoots']['values']())null!==_0x294756&&_0x4997b9['add'](_0x294756);this['_markChanges'](_0x3269bd,_0x19875f['insertions'][_0x4fa778],_0x1fae5b,'insertion',_0x4997b9),this['_markChanges'](_0x4f9d60,_0x19875f['deletions'][_0x4fa778],_0x50e82b,'deletion',_0x4997b9),_0x2eace1[_0x4fa778]={'insertions':this['_prepareViewToSave'](_0x3269bd),'deletions':this['_prepareViewToSave'](_0x4f9d60),'attachChange':this['_touchedRoots']['get'](_0x4fa778)||null,'attributesBefore':_0x4f8a27(this['_baseRootsAttributes']['get'](_0x4fa778))||{},'attributesAfter':_0x4f8a27(this['_diffRootsAttributes']['get'](_0x4fa778))};}return{'diffData':_0x2eace1,'authorsIds':Array['from'](_0x4997b9)};}['_processRootBeforeSave'](_0x44854e){for(const [,_0x26cef0]of _0x44854e['markers']){const _0x1bc24b=_0x26cef0['start']['getAncestors']()['filter'](_0x116a1d=>'tableCell'==_0x116a1d['name']);for(const _0xc32d8e of _0x1bc24b)0x1==_0xc32d8e['childCount']&&_0xc32d8e['getChild'](0x0)['is']('element','paragraph')&&_0xc32d8e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x35080b){this['_processRootBeforeSave'](_0x35080b);const _0x4afe58=this['editor']['data']['toView'](_0x35080b,{}),_0x655d72=Array['from'](_0x4afe58['getChildren']())['map'](_0x3435f7=>this['_getViewJson'](_0x3435f7));return JSON['stringify'](_0x655d72);}['_getViewJson'](_0x1cd6e3){if(_0x1cd6e3['is']('$text'))return _0x1cd6e3['data'];{const _0x394d10=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x40a9bf=_0x1cd6e3,_0x2a7b8a=this['editor']['data']['htmlProcessor']['domConverter'],_0x954312={'type':_0x394d10['_getTypeCharForViewElement'](_0x40a9bf),'name':_0x40a9bf['name'],'attributes':Array['from'](_0x40a9bf['getAttributes']()),'children':Array['from'](_0x40a9bf['getChildren']())['map'](_0x22a151=>this['_getViewJson'](_0x22a151))};if(_0x1cd6e3['is']('uiElement')&&'$comment'!=_0x1cd6e3['name']){const _0x14d9d1=_0x1cd6e3['render'](_0x2a7b8a['domDocument'],_0x2a7b8a);_0x954312['children']['push'](_0x14d9d1['outerHTML']);}else{if(_0x1cd6e3['is']('rawElement')){const _0x2c4132=_0x2a7b8a['domDocument']['createElement'](_0x40a9bf['name']);_0x1cd6e3['render'](_0x2c4132,_0x2a7b8a),_0x954312['children']['push'](_0x2c4132['innerHTML']);}}const _0x5ca054=Array['from'](_0x40a9bf['getCustomProperties']());_0x5ca054['length']>0x0&&(_0x954312['customProperties']=_0x5ca054);const _0x39c580=_0x40a9bf['getFillerOffset']();return null!==_0x39c580&&(_0x954312['fillerOffset']=_0x39c580),_0x954312;}}['_markChanges'](_0x4c3415,_0x1a94ab,_0x5bcff3,_0x1ce5c7,_0x37027b){let _0x1e3c7c=null,_0x3c9271=null,_0x271115=0x0;const _0xfd4e7a=this['editor']['model'];for(let _0x52b707=0x0;_0x52b707<_0x1a94ab['length'];_0x52b707++){const _0x39661b=this['_getVidAttributeName'](_0x1a94ab[_0x52b707]),_0x2cdd19=_0x1a94ab[_0x52b707]['item']['getAttribute'](_0x39661b),_0x326c12=_0x5bcff3['get'](_0x2cdd19),_0x1a4cd4=_0x52b707==_0x1a94ab['length']-0x1;(!_0x1e3c7c&&_0x326c12&&(_0x1e3c7c=_0x326c12,_0x3c9271=_0x1a94ab[_0x52b707]),_0x1e3c7c&&(!_0x326c12||_0x326c12['userId']!=_0x1e3c7c['userId']))&&(_0x231b22(_0x326c12,P(_0x3c9271,_0x4c3415,_0xfd4e7a),P(_0x1a94ab[_0x52b707],_0x4c3415,_0xfd4e7a)),_0x1e3c7c=_0x326c12||null,_0x3c9271=_0x326c12?_0x1a94ab[_0x52b707]:null),_0x1e3c7c&&_0x1a4cd4&&_0x231b22(_0x326c12,P(_0x3c9271,_0x4c3415,_0xfd4e7a),V(_0x1a94ab[_0x52b707],_0x4c3415,_0xfd4e7a));}function _0x231b22(_0x267ac6,_0x145810,_0x290108){const _0x129415=_0x1e3c7c['userId'],_0x2d6385='revision:'+_0x1ce5c7+':'+_0x129415+':'+_0x271115++,_0x4a3f8f=_0xfd4e7a['createRange'](_0x145810,_0x290108);_0x4c3415['markers']['set'](_0x2d6385,_0x4a3f8f),null!==_0x129415&&_0x37027b['add'](_0x129415);}}['_getVidAttributeName'](_0x31c6c2){switch(_0x31c6c2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3e9366,_0x149795){_0x3e9366['baseVersion']=null;for(const _0x328fbc in _0x3e9366){const _0x58b58f=_0x3e9366[_0x328fbc];if(_0x58b58f instanceof _0x40c1c3){const _0xe8ce13=_0x149795['get'](_0x58b58f['root']['rootName']);_0x3e9366[_0x328fbc]=this['_fixPosition'](_0x58b58f,_0xe8ce13);}if(_0x58b58f instanceof _0x37ff01){const _0x1e2232=_0x149795['get'](_0x58b58f['root']['rootName']);_0x3e9366[_0x328fbc]=this['_fixRange'](_0x58b58f,_0x1e2232);}'root'===_0x328fbc&&(_0x3e9366['root']=_0x149795['get'](_0x3e9366['root']['rootName']));}}['_fixRange'](_0xc0fb3,_0x806e56){return this['editor']['model']['createRange'](this['_fixPosition'](_0xc0fb3['start'],_0x806e56),this['_fixPosition'](_0xc0fb3['end'],_0x806e56));}['_fixPosition'](_0xb4a03e,_0x1506ba){return this['editor']['model']['createPositionFromPath'](_0x1506ba,_0xb4a03e['path'],_0xb4a03e['stickiness']);}['_handleInsertOperation'](_0x5c715c){const _0x1efbf2=this['_idsRoots']['get'](_0x5c715c['position']['root']['rootName']),_0x12ae08=this['_fixPosition'](_0x5c715c['position'],_0x1efbf2),_0x54e3cb=null===_0x5c715c['_authorId']?null:_0x5c715c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1eda24=_0x12ae08['parent'],_0x4d0bf9=this['_revisionId'],_0xa879f8=[];for(const _0x5228e4 of _0x5c715c['nodes'])if(_0x5228e4['is']('element'))_0xa879f8['push'](this['_makeIdsRoot'](_0x5228e4));else{for(let _0xd32503=0x0;_0xd32503<_0x5228e4['offsetSize'];_0xd32503++)_0xa879f8['push'](new _0x47d77c('$text',{'vid':this['_revisionId']++}));}const _0x5b2d7b=this['_revisionId'];for(let _0x4f66e7=_0x4d0bf9;_0x4f66e7<_0x5b2d7b;_0x4f66e7++)this['_touched']['set'](_0x4f66e7,{'userId':_0x54e3cb});_0x1eda24['_insertChild'](_0x12ae08['offset'],_0xa879f8);}['_handleMoveOperation'](_0x1726a6){(_0x1726a6=this['_cloneOperation'](_0x1726a6,this['_idsRoots']))['_execute']();const _0x56f4dd=null===_0x1726a6['_authorId']?null:_0x1726a6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5efc2d=_0x1726a6['getMovedRangeStart'](),_0x325593=_0x5efc2d['parent'],_0x355745=_0x5efc2d['offset'];!function _0x4b80fa(_0x335f07,_0x43f1ce,_0x13f748,_0x2ad454){for(let _0x41ef01=_0x13f748;_0x41ef01<_0x2ad454;_0x41ef01++){const _0x53f2cc=_0x43f1ce['getChild'](_0x41ef01);_0x53f2cc['is']('element','$text')?_0x335f07['set'](_0x53f2cc['getAttribute']('vid'),{'userId':_0x56f4dd}):(_0x335f07['set'](_0x53f2cc['getAttribute']('vid_start'),{'userId':_0x56f4dd}),_0x4b80fa(_0x335f07,_0x53f2cc,0x0,_0x53f2cc['childCount']),_0x335f07['set'](_0x53f2cc['getAttribute']('vid_end'),{'userId':_0x56f4dd}));}}(this['_touched'],_0x325593,_0x355745,_0x355745+_0x1726a6['howMany']);}['_handleMergeOperation'](_0x1e0bf5){const _0x1ef195=null===(_0x1e0bf5=this['_cloneOperation'](_0x1e0bf5,this['_idsRoots']))['_authorId']?null:_0x1e0bf5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x10f582=_0x1e0bf5['targetPosition']['parent'],_0x462ae4=_0x1e0bf5['sourcePosition']['parent'],_0x1d698c=_0x10f582['getAttribute']('vid_end'),_0x45bccf=_0x462ae4['getAttribute']('vid_start');_0x10f582['_setAttribute']('vid_end',_0x462ae4['getAttribute']('vid_end')),_0x462ae4['_setAttribute']('vid_end',_0x1d698c),this['_touched']['set'](_0x45bccf,{'userId':_0x1ef195}),this['_touched']['set'](_0x1d698c,{'userId':_0x1ef195}),_0x1e0bf5['_execute']();}['_handleSplitOperation'](_0x2579af){const _0x35823b=null===(_0x2579af=this['_cloneOperation'](_0x2579af,this['_idsRoots']))['_authorId']?null:_0x2579af['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3849fb=_0x2579af['graveyardPosition'],_0x5f2e42=_0x2579af['splitPosition']['parent'];_0x2579af['_execute']();const _0xc79b9d=_0x5f2e42['getAttribute']('vid_end'),_0x5c3478=_0x2579af['insertionPosition']['nodeAfter'];if(_0x3849fb){const _0x12aa4f=_0x5c3478['getAttribute']('vid_end'),_0x238061=_0x5f2e42['getAttribute']('vid_end');_0x5f2e42['_setAttribute']('vid_end',_0x12aa4f),_0x5c3478['_setAttribute']('vid_end',_0x238061),this['_touched']['set'](_0x5f2e42['getAttribute']('vid_end'),{'userId':_0x35823b}),this['_touched']['set'](_0x5c3478['getAttribute']('vid_start'),{'userId':_0x35823b});}else{const _0x595346=this['_revisionId']++,_0x338e67=this['_revisionId']++;_0x5f2e42['_setAttribute']('vid_end',_0x595346),_0x5c3478['_setAttribute']('vid_start',_0x338e67),_0x5c3478['_setAttribute']('vid_end',_0xc79b9d),this['_touched']['set'](_0x595346,{'userId':_0x35823b}),this['_touched']['set'](_0x338e67,{'userId':_0x35823b});}}['_handleMarkerOperation'](_0x45fe71){if(!_0x45fe71['affectsData'])return;const _0x5319e2=(_0x45fe71=this['_cloneOperation'](_0x45fe71,this['_diffRoots']))['oldRange']?_0x45fe71['oldRange']['root']:null,_0x4cd85c=_0x45fe71['newRange']?_0x45fe71['newRange']['root']:null;_0x5319e2&&this['_markers']['delete'](_0x45fe71['name']),_0x4cd85c&&this['_markers']['set'](_0x45fe71['name'],_0x45fe71['newRange']['clone']());const _0x461b8c=null===_0x45fe71['_authorId']?null:_0x45fe71['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x50eb09=_0x45fe71['name'];if(!this['_touchedMarkers']['has'](_0x50eb09))return void this['_touchedMarkers']['set'](_0x50eb09,{'range':_0x45fe71['oldRange'],'userId':_0x461b8c});const _0x59b261=this['_touchedMarkers']['get'](_0x50eb09),_0x11861c=_0x59b261['range'],_0x1034ff=_0x45fe71['newRange'];null==_0x11861c&&null==_0x1034ff||_0x11861c&&_0x1034ff&&_0x11861c['isEqual'](_0x1034ff)?this['_touchedMarkers']['delete'](_0x45fe71['name']):_0x59b261['userId']=_0x461b8c;}['_handleRootOperation'](_0x86c96b,_0x54f04e){this['_diffRoots']['has'](_0x86c96b['rootName'])?this['_diffRoots']['get'](_0x86c96b['rootName'])['_isAttached']=_0x86c96b['isAdd']:(this['_diffRoots']['set'](_0x86c96b['rootName'],N(_0x86c96b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x86c96b['rootName'],{}),_0x54f04e&&this['_idsRoots']['set'](_0x86c96b['rootName'],N(_0x86c96b['rootName'],!0x0)));const _0x1dcd3b=null===_0x86c96b['_authorId']?null:_0x86c96b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x421917=this['_touchedRoots']['get'](_0x86c96b['rootName']);_0x421917&&_0x421917['userId']===_0x1dcd3b?this['_touchedRoots']['delete'](_0x86c96b['rootName']):this['_touchedRoots']['set'](_0x86c96b['rootName'],{'userId':_0x1dcd3b,'isAttached':_0x86c96b['isAdd']});}['_handleRootAttributeOperation'](_0x424b0d){const _0x246638=this['_diffRootsAttributes']['get'](_0x424b0d['root']['rootName']);null===_0x424b0d['newValue']?delete _0x246638[_0x424b0d['key']]:_0x246638[_0x424b0d['key']]=_0x424b0d['newValue'];}}function x(_0xf5b30d){const _0xb9d20c=N(_0xf5b30d['rootName'],_0xf5b30d['isAttached']());for(const _0x3cba62 of _0xf5b30d['getChildren']()){const _0x2693aa=_0x3cba62['_clone'](!0x0);_0xb9d20c['_appendChild'](_0x2693aa);}return _0xb9d20c;}function N(_0x31a93a,_0x4ed15b=!0x0){const _0x4f3ac7=new _0x451b26();return _0x4f3ac7['rootName']=_0x31a93a,_0x4f3ac7['_isAttached']=_0x4ed15b,_0x4f3ac7['isAttached']=()=>_0x4f3ac7['_isAttached'],_0x4f3ac7;}function P(_0x5b7e49,_0x2c5727,_0x118b2e){const _0x58c12a='elementEnd'==_0x5b7e49['type']?_0x118b2e['createPositionAt'](_0x5b7e49['item'],'end'):_0x118b2e['createPositionBefore'](_0x5b7e49['item']);return _0x118b2e['createPositionFromPath'](_0x2c5727,_0x58c12a['path'],_0x58c12a['stickiness']);}function V(_0x306604,_0x1e0393,_0x21ebf0){const _0x542263='elementStart'==_0x306604['type']?_0x21ebf0['createPositionAt'](_0x306604['item'],0x0):_0x21ebf0['createPositionAfter'](_0x306604['item']);return _0x21ebf0['createPositionFromPath'](_0x1e0393,_0x542263['path'],_0x542263['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x390267(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x264e9d){super(),this['id']=_0x264e9d['id']||_0x3ca1e2(),this['author']=_0x264e9d['author'],this['type']=_0x264e9d['type'],this['data']=_0x264e9d['data']||{},this['rootName']=_0x264e9d['rootName'],this['set']('createdAt',_0x264e9d['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(_0x9b9280,_0x254040){this['newRevisionId']=_0x9b9280,this['oldRevisionId']=_0x254040,this['changes']=new _0x401ff4();}['_setChanges'](_0x2f3dcc){for(const _0x3bd8a5 of _0x2f3dcc)this['changes']['add'](_0x3bd8a5);}}class u extends _0x2182b9{['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[_0x491e76,_0x5c9009,S,$];}constructor(_0x775e98){super(_0x775e98),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',(_0x2e7db1,_0x12bc9e,_0x15688a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x255781=>{for(const _0x19d4eb of this['editor']['editing']['view']['document']['roots'])_0x15688a?_0x255781['removeClass']('ck-editor__editable__overlay',_0x19d4eb):_0x255781['addClass']('ck-editor__editable__overlay',_0x19d4eb);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x489b37=>null!==_0x489b37),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x27c50d,_0x16ab28,_0x184b38)=>_0x27c50d&&_0x184b38?_0x16ab28['changes']['getIndex'](_0x184b38):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5f2774,_0x175340)=>_0x5f2774?_0x175340['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5c9009);}['init'](){const _0x3a9f27=this['editor'],_0x1dc8a0=new ot(_0x3a9f27,{'direction':'backward'}),_0x12d5fd=new ot(_0x3a9f27,{'direction':'forward'});(_0x3a9f27['commands']['add']('showPreviousChange',_0x1dc8a0),_0x3a9f27['commands']['add']('showNextChange',_0x12d5fd),_0x3a9f27['commands']['add']('restoreRevision',new nt(_0x3a9f27)),this['on']('change:numberOfChanges',()=>{_0x1dc8a0['refresh'](),_0x12d5fd['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3a9f27['enableReadOnlyMode']('revision-viewer'),_0x3a9f27['plugins']['has']('WidgetToolbarRepository'))&&_0x3a9f27['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1ba1d3){return await this['_utils']['loadRevisionData'](_0x1ba1d3,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1ba1d3);}async['getRevisionRootsAttributes'](_0x465bda){return await this['_utils']['loadRevisionData'](_0x465bda,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x465bda);}async['compare'](_0x1c5dc0,_0x2e8532,_0x580b64=!0x1){if(!this['isEnabled'])return;const _0x406940=this['diff'],_0x438ecb=this['repository'],_0x5928dc='string'==typeof _0x1c5dc0?_0x438ecb['getRevision'](_0x1c5dc0):_0x1c5dc0,_0x119d80='string'==typeof _0x2e8532?_0x438ecb['getRevision'](_0x2e8532):_0x2e8532,_0xfda1d1=_0x5928dc['id'],_0x1c4919=_0x119d80?_0x119d80['id']:null;if(!_0x580b64&&this['diff']&&this['diff']['newRevisionId']===_0xfda1d1&&this['diff']['oldRevisionId']===_0x1c4919)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0xfda1d1,_0x1c4919);const _0x51b3a6=this['_getRevisionsRange'](_0x5928dc,_0x119d80,!0x0)['map'](_0x26007f=>this['_utils']['loadRevisionData'](_0x26007f,this['adapter']));return _0x51b3a6['push'](new Promise(_0x1ac016=>{setTimeout(_0x1ac016,0x14);})),Promise['all'](_0x51b3a6)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4711ca=this['_getDiff'](_0xfda1d1,_0x1c4919);for(const _0x1e30f7 of _0x4711ca['changes'])this['_changeIdToChange']['set'](_0x1e30f7['id'],_0x1e30f7);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1d967f=>{for(const _0x5dd2d0 of this['editor']['model']['document']['getRootNames']())_0x1d967f['detachRoot'](_0x5dd2d0);for(const _0x5d09c8 of Object['keys'](_0x4711ca['model'])){const _0x356dba=_0x1d967f['addRoot'](_0x5d09c8);for(const _0x42f678 of Object['keys'](_0x4711ca['attributes'][_0x5d09c8]))_0x1d967f['setAttribute'](_0x42f678,_0x4711ca['attributes'][_0x5d09c8][_0x42f678],_0x356dba);_0x1d967f['insert'](_0x4711ca['model'][_0x5d09c8],_0x356dba,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4711ca['changes'])),this['isReady']=!0x0;})['catch'](_0x80f5b9=>{console['error'](_0x80f5b9),this['_cleanUp'](),_0x406940&&(this['diff']=_0x406940),this['isReady']=!0x0;});}['addRevisionData'](_0x55873d,_0x47ac12){const _0x5da7b6=this['repository']['createRevision'](_0x55873d);return _0x5da7b6['on']('_update',(_0x228544,_0x211cc5,_0x2b16cf)=>_0x47ac12(_0x211cc5,_0x2b16cf,_0x5da7b6)),this['repository']['addRevision'](_0x5da7b6),_0x5da7b6;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3dde53=>{for(const _0x491e04 of this['editor']['model']['document']['getRootNames']())_0x3dde53['detachRoot'](_0x491e04);});}['_sortAndFilterDiffChanges'](_0x1f9a65){const _0x580e5b=[],_0x17381a=new Map();for(const _0x211531 of this['editor']['model']['document']['getRootNames']()){const _0x5b1273=this['editor']['editing']['view']['getDomRoot'](_0x211531);if(!_0x5b1273)continue;const _0x58ad62=_0x5b1273['getClientRects']()['item'](0x0);_0x58ad62&&(_0x580e5b['push'](_0x211531),_0x17381a['set'](_0x211531,_0x58ad62));}return _0x580e5b['sort']((_0x3f061b,_0xb86763)=>{const _0x52a7dd=_0x17381a['get'](_0x3f061b),_0x984bb3=_0x17381a['get'](_0xb86763);return _0x52a7dd['y']-_0x984bb3['y']||_0x52a7dd['x']-_0x984bb3['x'];}),(_0x1f9a65=_0x1f9a65['filter'](_0x444f08=>_0x580e5b['includes'](_0x444f08['rootName'])))['sort']((_0x233747,_0xaa3c6a)=>_0x580e5b['indexOf'](_0x233747['rootName'])-_0x580e5b['indexOf'](_0xaa3c6a['rootName'])),_0x1f9a65;}['_makeTape'](_0x595192){const _0x25d5b1=Array['from'](_0x595192['markers'])['filter'](([_0xf309f8,_0x71fc6a])=>_0xf309f8['startsWith']('revision:')&&!_0x71fc6a['isCollapsed']),_0x3b5fd6=Array['from'](this['editor']['model']['createRangeIn'](_0x595192)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x25d5b1['length'])for(const _0x5a1bc9 of _0x3b5fd6){const [_0x40f60,_0x532b58]=_0x25d5b1[0x0],[,_0x3a1c6c,_0xff658c]=_0x40f60['split'](':');if(_0x532b58['end']['isEqual'](_0x5a1bc9['nextPosition'])&&_0x25d5b1['shift'](),(_0x5a1bc9['previousPosition']['isEqual'](_0x532b58['start'])||_0x5a1bc9['previousPosition']['isAfter'](_0x532b58['start']))&&('insertion'==_0x3a1c6c?_0x5a1bc9['isAdded']={'userId':_0xff658c}:'deletion'==_0x3a1c6c&&(_0x5a1bc9['isRemoved']={'userId':_0xff658c})),0x0==_0x25d5b1['length'])break;}return _0x3b5fd6;}['_refreshStartEndIndex'](_0x51f551){const _0x1d8d47=new Map();for(let _0x802457=0x0;_0x802457<_0x51f551['length'];_0x802457++)'text'===_0x51f551[_0x802457]['type']?(_0x51f551[_0x802457]['item']['startIndex']=_0x802457,_0x51f551[_0x802457]['item']['endIndex']=_0x802457):('elementStart'===_0x51f551[_0x802457]['type']?_0x51f551[_0x802457]['item']['startIndex']=_0x802457:'elementEnd'===_0x51f551[_0x802457]['type']&&(_0x51f551[_0x802457]['item']['endIndex']=_0x802457),_0x1d8d47['set'](_0x51f551[_0x802457]['id'],_0x802457));for(const _0x257bc6 of _0x1d8d47['values']())'elementStart'===_0x51f551[_0x257bc6]['type']?_0x51f551[_0x257bc6]['item']['endIndex']=_0x1d8d47['get'](_0x51f551[_0x257bc6]['pairId']):'elementEnd'===_0x51f551[_0x257bc6]['type']&&(_0x51f551[_0x257bc6]['item']['startIndex']=_0x1d8d47['get'](_0x51f551[_0x257bc6]['pairId']));}['_processTape'](_0x245bc5){for(let _0x339520=0x0;_0x339520<_0x245bc5['length'];_0x339520++){if('elementStart'===_0x245bc5[_0x339520]['type'])_0x245bc5[_0x339520]['item']['startIndex']=_0x339520;else{if('elementEnd'===_0x245bc5[_0x339520]['type']){_0x245bc5[_0x339520]['item']['endIndex']=_0x339520;const _0x13a5db=_0x245bc5[_0x339520]['item']['startIndex'];_0x245bc5[_0x13a5db]['pairId']=_0x245bc5[_0x339520]['id'],_0x245bc5[_0x339520]['pairId']=_0x245bc5[_0x13a5db]['id'];}else _0x245bc5[_0x339520]['item']['startIndex']=_0x339520,_0x245bc5[_0x339520]['item']['endIndex']=_0x339520,_0x245bc5[_0x339520]['pairId']=null;}_0x245bc5[_0x339520]['markersStart']||(_0x245bc5[_0x339520]['markersStart']=[],_0x245bc5[_0x339520]['markersEnd']=[]);}}['_markInsertions'](_0x2ef22b,_0x5d8335){const _0x4e4d74=_0x2ef22b['filter'](_0x3e5a8a=>!_0x3e5a8a['isAdded']);for(let _0x36384d=0x0;_0x36384d<_0x5d8335['length'];_0x36384d++)_0x5d8335[_0x36384d]['isAdded']&&(_0x4e4d74[_0x36384d]['isAdded']=_0x5d8335[_0x36384d]['isAdded']);}['_getDiff'](_0x2f3d66,_0x4c6c67=null){const _0x237a3e=this['repository']['getRevision'](_0x2f3d66),_0x318651=_0x4c6c67?this['repository']['getRevision'](_0x4c6c67):null,_0x215be9=this['_getRevisionsRange'](_0x237a3e,_0x318651),_0x445f66=_0x215be9[_0x215be9['length']-0x1],_0x30cbd8=new Map(),_0x2fe8e6={'model':{},'attributes':{},'changes':[]},_0x2a954a=new Set(),_0xfcf78=new Map();for(let _0x2a89c7=_0x215be9['length']-0x1;_0x2a89c7>=0x0;_0x2a89c7--){const _0x427322=_0x215be9[_0x2a89c7];for(const _0x3f9ee0 of Object['keys'](_0x427322['diffData']))if(_0x427322['diffData'][_0x3f9ee0]['attachChange']){const _0x5ac175=_0x427322['diffData'][_0x3f9ee0]['attachChange'];_0x5ac175['isAttached']?(_0x2a954a['add'](_0x3f9ee0),_0xfcf78['has'](_0x3f9ee0)&&_0xfcf78['get'](_0x3f9ee0)['userId']==_0x5ac175['userId']?_0xfcf78['delete'](_0x3f9ee0):_0xfcf78['set'](_0x3f9ee0,_0x5ac175)):_0xfcf78['has'](_0x3f9ee0)?(_0x2a954a['delete'](_0x3f9ee0),_0xfcf78['delete'](_0x3f9ee0)):(_0x2a954a['add'](_0x3f9ee0),_0xfcf78['set'](_0x3f9ee0,_0x5ac175));}else _0x2a954a['add'](_0x3f9ee0);}for(const _0x3d8bb3 of _0x2a954a){const _0x4e7c3a=_0xfcf78['has'](_0x3d8bb3)&&!_0xfcf78['get'](_0x3d8bb3)['isAttached'];let _0x325d40=_0x4e7c3a?_0x215be9['length']-0x1:0x0;const _0x49a2bd=_0x4e7c3a?-0x1:0x1;for(;_0x215be9[_0x325d40];){const _0x3c3808=_0x215be9[_0x325d40];if(_0x3c3808['diffData'][_0x3d8bb3]){const _0xd8e916=_0x4e7c3a?_0x3c3808['diffData'][_0x3d8bb3]['attributesBefore']:_0x3c3808['diffData'][_0x3d8bb3]['attributesAfter'];_0x2fe8e6['attributes'][_0x3d8bb3]=_0xd8e916?_0x4f8a27(_0xd8e916):{};break;}_0x325d40+=_0x49a2bd;}}for(const _0xb357c9 of _0x215be9){_0xb357c9['model']={};for(const _0x335907 of _0xb357c9['authors'])_0x30cbd8['set'](_0x335907['id'],_0x335907);for(const _0x5c7914 of _0x2a954a){const _0x4ff73f=_0xb357c9['diffData'][_0x5c7914]?_0xb357c9['diffData'][_0x5c7914]['insertions']:'[]',_0x318b3d=_0xb357c9['diffData'][_0x5c7914]?_0xb357c9['diffData'][_0x5c7914]['deletions']:'[]';_0xb357c9['model'][_0x5c7914]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4ff73f),'deletions':this['_utils']['_makeModelFromViewString'](_0x318b3d)};}}for(const _0x2a7d99 of _0x2a954a){let _0x114b6d=null,_0x352b68=0x0;const _0x8d745e=new Map(Array['from'](_0x237a3e['model'][_0x2a7d99]['insertions']['markers'])['filter'](([_0xf47235])=>!_0xf47235['startsWith']('revision:')));let _0x4c5dd7=0x0;for(const _0x4cdbe2 of _0x215be9){const _0x5d6bb7=this['_makeTape'](_0x4cdbe2['model'][_0x2a7d99]['insertions']);_0x4cdbe2==_0x237a3e?(_0x114b6d=_0x5d6bb7,_0x352b68=_0x114b6d['length'],_0x114b6d['forEach'](_0x498f67=>{_0x498f67['id']=_0x4c5dd7++;}),this['_processTape'](_0x114b6d)):this['_markInsertions'](_0x114b6d,_0x5d6bb7);const _0x1947e4=_0x114b6d['filter'](_0xabb061=>!_0xabb061['isAdded'])['map'](_0x379aff=>_0x379aff['id']);let _0x1444cc=0x0;const _0x5f2ae6=this['_makeTape'](_0x4cdbe2['model'][_0x2a7d99]['deletions']);_0x5f2ae6['forEach'](_0x1a06d4=>{_0x1a06d4['isRemoved']?_0x1a06d4['id']=_0x352b68++:_0x1a06d4['id']=_0x1947e4[_0x1444cc++];}),this['_processTape'](_0x5f2ae6),this['_setDistance'](_0x114b6d,'isAdded'),this['_setDistance'](_0x5f2ae6,'isRemoved'),_0x4cdbe2==_0x237a3e&&this['_markMarkers'](_0x114b6d,_0x8d745e),_0x114b6d=this['_joinTapes'](_0x114b6d,_0x5f2ae6),this['_refreshStartEndIndex'](_0x114b6d),this['_setDistance'](_0x114b6d,'isRemoved');}_0x114b6d=_0x114b6d['filter'](_0x324d80=>!(_0x324d80['isAdded']&&_0x324d80['isRemoved']));const _0x1fc437=new Map(_0x445f66['model'][_0x2a7d99]['deletions']['markers']),_0x3950d0=new Set(_0x8d745e['keys']());for(const _0x74deab of _0x1fc437['keys']())_0x3950d0['delete'](_0x74deab);this['_markSuggestions'](_0x114b6d,_0x3950d0),this['_fixObsoleteTags'](_0x114b6d),_0x114b6d=this['_removeMissingPairs'](_0x114b6d),_0x114b6d=this['_markMismatchedRemovedTags'](_0x114b6d),_0x114b6d=this['_removeUnsupportedChanges'](_0x114b6d);const {root:_0x1d3984,changes:_0x1d6f67}=this['_makeModelFromTape'](_0x114b6d,_0x30cbd8,_0x2a7d99);_0x2fe8e6['model'][_0x2a7d99]=_0x1d3984;const _0x4638e9=_0xfcf78['get'](_0x2a7d99);if(_0x4638e9){const _0x3c0f2e=_0x30cbd8['get'](_0x4638e9['userId']),_0x508a0a=new G({'author':_0x3c0f2e,'type':_0x4638e9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2a7d99});_0x1d6f67['unshift'](_0x508a0a),_0x2fe8e6['attributes'][_0x2a7d99]['revisionHistoryAttachChange']=_0x508a0a['id'];}_0x2fe8e6['changes']=_0x2fe8e6['changes']['concat'](_0x1d6f67);}return _0x2fe8e6;}['_markMarkers'](_0x42410e,_0x76187c){for(let _0x193ecd=0x0;_0x193ecd<_0x42410e['length'];_0x193ecd++)for(const [_0x14e8fe,_0x149d30]of _0x76187c)!_0x149d30['isCollapsed']&&_0x149d30['start']['isEqual'](_0x42410e[_0x193ecd]['previousPosition'])&&_0x42410e[_0x193ecd]['markersStart']['push'](_0x14e8fe),_0x149d30['end']['isEqual'](_0x42410e[_0x193ecd]['nextPosition'])&&_0x42410e[_0x193ecd]['markersEnd']['push'](_0x14e8fe);}['_joinTapes'](_0xa52a37,_0x343301){let _0x7357b4=[],_0x581738=0x0,_0xd39ea5=0x0;for(;_0x581738<_0xa52a37['length']||_0xd39ea5<_0x343301['length'];){const _0x5a72db=_0xa52a37[_0x581738]||{},_0x33ad54=_0x343301[_0xd39ea5]||{};if(_0x5a72db['id']==_0x33ad54['id'])_0x581738++,_0xd39ea5++,_0x7357b4['push'](_0x5a72db);else{if(_0x33ad54['isRemoved']&&_0x5a72db['isAdded']){const {commonTape:_0x2491be,iEnd:_0xe3aeda,jEnd:_0x33a16b}=this['_threeWayMerge'](_0xa52a37,_0x581738,_0x343301,_0xd39ea5);_0x7357b4=_0x7357b4['concat'](_0x2491be),_0x581738=_0xe3aeda,_0xd39ea5=_0x33a16b;}else _0x33ad54['isRemoved']?(_0xd39ea5++,_0x7357b4['push'](_0x33ad54)):(_0x581738++,_0x7357b4['push'](_0x5a72db));}}return _0x7357b4;}['_markSuggestions'](_0x182ef3,_0x52e207){const _0x44604f=[];for(let _0x268e4f=0x0;_0x268e4f<_0x182ef3['length'];_0x268e4f++){for(let _0x5bc794=0x0;_0x5bc794<_0x182ef3[_0x268e4f]['markersStart']['length'];_0x5bc794++){const _0x53ca85=_0x182ef3[_0x268e4f]['markersStart'][_0x5bc794];if(!_0x52e207['has'](_0x53ca85))continue;const {group:_0x55eaa8,type:_0x510332,authorId:_0x12032d}=_0x57b156(_0x53ca85);'revision-suggestion'!=_0x55eaa8||'insertion'!=_0x510332&&'deletion'!=_0x510332||(_0x44604f['unshift']({'type':_0x510332,'name':_0x53ca85,'userId':_0x12032d}),_0x182ef3[_0x268e4f]['markersStart']['splice'](_0x5bc794,0x1),_0x5bc794--);}_0xb328eb(_0x182ef3[_0x268e4f]);for(let _0x2dba05=0x0;_0x2dba05<_0x182ef3[_0x268e4f]['markersEnd']['length'];_0x2dba05++){const _0x18e2b0=_0x182ef3[_0x268e4f]['markersEnd'][_0x2dba05];if(!_0x52e207['has'](_0x18e2b0))continue;const {group:_0x27ea21,type:_0x5137d9}=_0x57b156(_0x18e2b0);if('revision-suggestion'!=_0x27ea21||'insertion'!=_0x5137d9&&'deletion'!=_0x5137d9)continue;_0x182ef3[_0x268e4f]['markersEnd']['splice'](_0x2dba05,0x1),_0x2dba05--;const _0x2463e4=_0x44604f['findIndex'](_0x2866da=>_0x2866da['name']==_0x18e2b0);_0x2463e4>-0x1&&_0x44604f['splice'](_0x2463e4,0x1);}}function _0x57b156(_0x47cd55){const _0x465dd2=_0x47cd55['split'](':');return{'group':_0x465dd2[0x0],'type':_0x465dd2[0x1],'subType':_0x465dd2['length']>=0x5?_0x465dd2[0x2]:null,'id':_0x465dd2['length']<0x5?_0x465dd2[0x2]:_0x465dd2[0x3],'authorId':_0x465dd2['length']<0x5?_0x465dd2[0x3]:_0x465dd2[0x4],'markerCount':0x6==_0x465dd2['length']?_0x465dd2[0x5]:null};}function _0xb328eb(_0x1223d2){for(let _0x37c994=0x0;_0x37c994<_0x44604f['length'];_0x37c994++){if(_0x1223d2['isAdded']&&'insertion'==_0x44604f[_0x37c994]['type']&&_0x1223d2['isAdded']['userId']==_0x44604f[_0x37c994]['userId'])return _0x1223d2['isAddSuggestion']=_0x44604f[_0x37c994],void delete _0x1223d2['isAdded'];if(!_0x1223d2['isAdded']&&!_0x1223d2['isRemoved']&&'deletion'==_0x44604f[_0x37c994]['type'])return void(_0x1223d2['isRemoveSuggestion']=_0x44604f[_0x37c994]);}}}['_setDistance'](_0x3c855e,_0x3dc44a){let _0x9d5e48=0x0,_0x2926d0=!0x1;const _0xfe8878=new Map();for(const _0x40101c of _0x3c855e)_0x40101c[_0x3dc44a]?_0x2926d0&&(_0x9d5e48++,_0x2926d0=!0x1):(_0x9d5e48++,_0x2926d0=!0x0),_0xfe8878['set'](_0x40101c['id'],_0x9d5e48);for(let _0x909f0a=0x0;_0x909f0a<_0x3c855e['length'];_0x909f0a++){if('isRemoved'==_0x3dc44a&&_0x3c855e[_0x909f0a]['isAdded']||'isAdded'==_0x3dc44a&&_0x3c855e[_0x909f0a]['isRemoved'])continue;if('text'==_0x3c855e[_0x909f0a]['type']){_0x3c855e[_0x909f0a]['distance']=0x0;continue;}const _0x3a4312=_0xfe8878['get'](_0x3c855e[_0x909f0a]['pairId']),_0x1ff092=_0xfe8878['get'](_0x3c855e[_0x909f0a]['id']);_0x3c855e[_0x909f0a]['distance']=_0x3a4312-_0x1ff092;}}['_getRevisionsRange'](_0x529e00,_0x3092fa,_0x2fd84a=!0x1){const _0x1bf23f=[];let _0x53cebe=this['repository']['getIndex'](_0x529e00),_0x2c7be8=this['repository']['getIndex'](_0x3092fa);for(-0x1==_0x2c7be8&&(_0x2c7be8=this['repository']['_revisions']['length'],_0x2fd84a=!0x1);_0x53cebe<_0x2c7be8;)_0x1bf23f['push'](this['repository']['getRevision'](_0x53cebe)),_0x53cebe++;return _0x2fd84a&&_0x1bf23f['push'](this['repository']['getRevision'](_0x53cebe)),_0x1bf23f;}['_threeWayMerge'](_0x3ae8ef,_0x3c353b,_0x27a8a6,_0x3dd157){const _0x4f5bd1=this['editor']['model']['schema'];let _0x596765=_0x3c353b;for(;_0x3ae8ef[_0x596765]&&_0x3ae8ef[_0x596765]['isAdded'];)_0x596765++;let _0x39ce64=_0x3dd157;for(;_0x27a8a6[_0x39ce64]&&_0x27a8a6[_0x39ce64]['isRemoved'];)_0x39ce64++;_0xc400a(_0x3ae8ef,_0x3c353b,_0x596765),_0xc400a(_0x27a8a6,_0x3dd157,_0x39ce64);const _0x4916a7=_0x27a8a6['slice'](_0x3dd157,_0x39ce64)['concat'](_0x3ae8ef['slice'](_0x3c353b,_0x596765));return _0x4916a7['sort']((_0x4279b9,_0x21d254)=>_0x4279b9['side']!=_0x21d254['side']?_0x4279b9['side']-_0x21d254['side']:_0x4279b9['level']!=_0x21d254['level']?_0x4279b9['level']-_0x21d254['level']:_0x4279b9['distance']!=_0x21d254['distance']?_0x21d254['distance']-_0x4279b9['distance']:!!_0x4279b9['isAdded']!=!!_0x21d254['isAdded']?-0x1==_0x4279b9['side']||0x0==_0x4279b9['side']?_0x4279b9['isAdded']?-0x1:0x1:_0x4279b9['isAdded']?0x1:-0x1:_0x4279b9['index']-_0x21d254['index']),{'commonTape':_0x4916a7,'iEnd':_0x596765,'jEnd':_0x39ce64};function _0xc400a(_0x20f157,_0x173a68,_0x349da3){let _0x277120=-0x1,_0x47aaa4=Number['POSITIVE_INFINITY'],_0x1edcfe=!0x0;for(let _0x37d69e=_0x173a68;_0x37d69e<_0x349da3;_0x37d69e++)if(_0x4f5bd1['isInline'](_0x20f157[_0x37d69e]['item'])||(_0x1edcfe=!0x1),_0x20f157[_0x37d69e]['item']['startIndex']<_0x173a68&&(_0x277120=_0x37d69e),_0x20f157[_0x37d69e]['item']['endIndex']>=_0x349da3){_0x47aaa4=_0x37d69e;break;}_0x1edcfe&&(_0x277120=_0x349da3-0x1);for(let _0x4abac5=_0x173a68;_0x4abac5<_0x349da3;_0x4abac5++)_0x20f157[_0x4abac5]['side']=_0x4abac5<=_0x277120?-0x1:_0x4abac5<_0x47aaa4?0x0:0x1,_0x20f157[_0x4abac5]['index']=_0x4abac5;let _0x1f3777=0x0;for(let _0x427775=_0x173a68;_0x427775<=_0x277120;_0x427775++)0x0==_0x20f157[_0x427775]['distance']?_0x20f157[_0x427775]['level']=_0x1f3777:(_0x1f3777++,_0x20f157[_0x427775]['level']=_0x1f3777,_0x1f3777++);for(let _0x109996=_0x173a68;_0x109996<_0x349da3;_0x109996++)0x0==_0x20f157[_0x109996]['side']&&(_0x20f157[_0x109996]['level']=_0x1f3777);_0x1f3777=0x0;for(let _0x418adc=_0x349da3-0x1;_0x418adc>=_0x47aaa4;_0x418adc--)0x0==_0x20f157[_0x418adc]['distance']?_0x20f157[_0x418adc]['level']=_0x1f3777:(_0x1f3777--,_0x20f157[_0x418adc]['level']=_0x1f3777,_0x1f3777--);}}['_fixObsoleteTags'](_0x4dc1c0){const _0x5f40f3=new Map(),_0x3446d8=this['editor']['model']['schema'];for(let _0x38b5ca=0x1;_0x38b5ca<_0x4dc1c0['length'];_0x38b5ca++){let _0x3b6d68,_0x182056,_0x32169d;const _0x1a5dc6=_0x4dc1c0[_0x38b5ca],_0x2248d6=_0x4dc1c0[_0x38b5ca-0x1];if('text'==_0x1a5dc6['type'])continue;if(_0x1a5dc6['type']!=_0x2248d6['type'])continue;if(!_0x3446d8['isBlock'](_0x2248d6['item'])||_0x3446d8['isLimit'](_0x2248d6['item']))continue;if(!_0x3446d8['isBlock'](_0x1a5dc6['item'])||_0x3446d8['isLimit'](_0x1a5dc6['item']))continue;if((_0x4dc1c0[_0x38b5ca]['isAdded']||_0x4dc1c0[_0x38b5ca]['isAddSuggestion'])&&_0x4dc1c0[_0x38b5ca-0x1]['isRemoved'])_0x3b6d68=_0x4dc1c0[_0x38b5ca],_0x182056=_0x4dc1c0[_0x38b5ca-0x1],_0x32169d=_0x38b5ca-0x1;else{if(!_0x4dc1c0[_0x38b5ca]['isRemoved']||!_0x4dc1c0[_0x38b5ca-0x1]['isAdded']&&!_0x4dc1c0[_0x38b5ca-0x1]['isAddSuggestion'])continue;_0x3b6d68=_0x4dc1c0[_0x38b5ca-0x1],_0x182056=_0x4dc1c0[_0x38b5ca],_0x32169d=_0x38b5ca;}const _0x38997e=_0x3b6d68['level']==_0x182056['level'],_0x300c66=Math['abs'](_0x3b6d68['level'])<Math['abs'](_0x182056['level'])&&0x0==_0x182056['distance'];(_0x38997e||_0x300c66)&&(_0x5f40f3['set'](_0x182056['id'],_0x3b6d68['id']),_0x4dc1c0['splice'](_0x32169d,0x1),_0x38b5ca--,_0x3b6d68['isAdded']=!0x1);}for(let _0x236790=0x0;_0x236790<_0x4dc1c0['length'];_0x236790++)_0x5f40f3['has'](_0x4dc1c0[_0x236790]['pairId'])&&(_0x4dc1c0[_0x236790]['pairId']=_0x5f40f3['get'](_0x4dc1c0[_0x236790]['pairId']));}['_removeMissingPairs'](_0x2c9734){const _0x43c068=new Set(_0x2c9734['map'](_0x5a72e9=>_0x5a72e9['id']));for(let _0x448624=0x0;_0x448624<_0x2c9734['length'];_0x448624++)_0x43c068['has'](_0x2c9734[_0x448624]['pairId'])||0x0==_0x2c9734[_0x448624]['distance']||(_0x2c9734[_0x448624]['isIncorrect']=!0x0);return _0x2c9734['filter'](_0x5191f3=>!_0x5191f3['isIncorrect']);}['_markMismatchedRemovedTags'](_0x22302e){const _0x52ec39=new Set();for(let _0x4bc086=0x0;_0x4bc086<_0x22302e['length'];_0x4bc086++){if(_0x52ec39['has'](_0x22302e[_0x4bc086]['id'])&&_0x22302e[_0x4bc086]['isRemoved']&&(_0x22302e[_0x4bc086]['isIncorrect']=!0x0),_0x22302e[_0x4bc086]['isIncorrect'])continue;if(0x0==_0x22302e[_0x4bc086]['distance'])continue;if('elementStart'!=_0x22302e[_0x4bc086]['type'])continue;if(null==_0x22302e[_0x4bc086]['pairId'])continue;let _0x306a14=_0x4bc086+0x1,_0x25f11e=0x0;for(;_0x22302e[_0x306a14]['id']!=_0x22302e[_0x4bc086]['pairId'];)'elementStart'==_0x22302e[_0x306a14]['type']?_0x25f11e++:'elementEnd'==_0x22302e[_0x306a14]['type']&&_0x25f11e--,_0x306a14++;if(0x0!=_0x25f11e){if(_0x22302e[_0x4bc086]['isRemoved'])_0x22302e[_0x4bc086]['isIncorrect']=!0x0;else{for(;_0x306a14!=_0x4bc086;)_0x22302e[_0x306a14]['isRemoved']&&0x0!=_0x22302e[_0x306a14]['distance']&&(_0x22302e[_0x306a14]['isIncorrect']=!0x0,_0x52ec39['add'](_0x22302e[_0x306a14]['pairId'])),_0x306a14--;}}}return _0x22302e['filter'](_0x53f21d=>!_0x53f21d['isIncorrect']);}['_removeUnsupportedChanges'](_0x845783){const _0xc7dba7=this['editor']['model']['schema'];for(let _0x3a2df6=0x0;_0x3a2df6<_0x845783['length'];_0x3a2df6++){if(!(_0x845783[_0x3a2df6]['isAdded']||_0x845783[_0x3a2df6]['isAddSuggestion']||_0x845783[_0x3a2df6]['isRemoved']||_0x845783[_0x3a2df6]['isRemoveSuggestion']))continue;if(0x0==_0x845783[_0x3a2df6]['distance'])continue;const _0x2576d2=_0x845783[_0x3a2df6]['item'];_0xc7dba7['isBlock'](_0x2576d2)||_0xc7dba7['isLimit'](_0x2576d2)||(_0x845783[_0x3a2df6]['isAdded']&&delete _0x845783[_0x3a2df6]['isAdded'],_0x845783[_0x3a2df6]['isAddSuggestion']&&delete _0x845783[_0x3a2df6]['isAddSuggestion'],_0x845783[_0x3a2df6]['isRemoveSuggestion']&&delete _0x845783[_0x3a2df6]['isRemoveSuggestion'],_0x845783[_0x3a2df6]['isRemoved']&&(_0x845783[_0x3a2df6]['isIncorrect']=!0x0));}return _0x845783['filter'](_0x482504=>!_0x482504['isIncorrect']);}['_makeModelFromTape'](_0x4fe463,_0x5abcbf,_0x388cd2){const _0x56fd73=new _0x451b26(),_0x2e225b=[],_0x4f8e78=new Map(),_0x59c5c9=this['editor']['model'],_0xa8da17=_0x59c5c9['schema'],_0x1932bc=[_0x56fd73],_0x593615={},_0x4beaa5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x105784=null;const _0x5cce6b=[0x0];for(let _0x5a6fe9=0x0;_0x5a6fe9<_0x4fe463['length'];_0x5a6fe9++)if('elementStart'===_0x4fe463[_0x5a6fe9]['type']){_0x4fe463[_0x5a6fe9]['previousPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b);const _0x58a860=new _0x47d77c(_0x4fe463[_0x5a6fe9]['item']['name'],_0x4fe463[_0x5a6fe9]['item']['getAttributes']());_0x1932bc[0x0]['_appendChild'](_0x58a860),_0x5cce6b['push'](0x0),_0x1932bc['unshift'](_0x58a860),_0x4fe463[_0x5a6fe9]['nextPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b);}else'elementEnd'===_0x4fe463[_0x5a6fe9]['type']?(_0x1932bc['shift'](),_0x4fe463[_0x5a6fe9]['previousPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b),_0x5cce6b['pop'](),_0x5cce6b[_0x5cce6b['length']-0x1]++,_0x4fe463[_0x5a6fe9]['nextPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b)):(_0x4fe463[_0x5a6fe9]['previousPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b),_0x105784?_0x105784['_data']+=_0x4fe463[_0x5a6fe9]['item']['data']:_0x105784=new _0x5a04d7(_0x4fe463[_0x5a6fe9]['item']['data'],_0x4fe463[_0x5a6fe9]['item']['getAttributes']()),_0x4fe463[_0x5a6fe9+0x1]&&'text'===_0x4fe463[_0x5a6fe9+0x1]['type']&&_0x2f4277(_0x105784,_0x4fe463[_0x5a6fe9+0x1]['item'])||(_0x1932bc[0x0]['_appendChild'](_0x105784),_0x105784=null),_0x5cce6b[_0x5cce6b['length']-0x1]+=_0x4fe463[_0x5a6fe9]['item']['offsetSize'],_0x4fe463[_0x5a6fe9]['nextPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b));for(let _0x4d1827=0x0;_0x4d1827<_0x4fe463['length'];_0x4d1827++){const _0x4bc170=_0x4fe463[_0x4d1827]['previousPosition'],_0x42aca9=_0x4fe463[_0x4d1827]['nextPosition'];for(const _0x4760db of _0x4fe463[_0x4d1827]['markersStart'])_0x4f8e78['set'](_0x4760db,{'start':_0x4bc170,'end':null});_0x2d7c06('isRemoveSuggestion',_0x4d1827,_0x4bc170,_0x42aca9),_0x2d7c06('isAddSuggestion',_0x4d1827,_0x4bc170,_0x42aca9),_0x2d7c06('isRemoved',_0x4d1827,_0x4bc170,_0x42aca9),_0x2d7c06('isAdded',_0x4d1827,_0x4bc170,_0x42aca9);for(const _0x260ab5 of _0x4fe463[_0x4d1827]['markersEnd']){const _0xff7f16=_0x4f8e78['get'](_0x260ab5);_0xff7f16?_0xff7f16['end']=_0x42aca9:_0x4f8e78['set'](_0x260ab5,{'start':_0x42aca9,'end':_0x42aca9});}}for(const [_0x4b8d0b,_0x9c635b]of _0x4f8e78){const _0x415c60=this['editor']['model']['createRange'](_0x9c635b['start'],_0x9c635b['end']);_0x56fd73['markers']['set'](_0x4b8d0b,_0x415c60);}return _0x2e225b['sort']((_0x36de6a,_0x1a1ec9)=>{const _0x5b18a4=_0x56fd73['markers']['get']('revision:'+_0x36de6a['id']),_0x20f316=_0x56fd73['markers']['get']('revision:'+_0x1a1ec9['id']);return _0x5b18a4['start']['isBefore'](_0x20f316['start'])?-0x1:_0x5b18a4['start']['isAfter'](_0x20f316['start'])?0x1:_0x5b18a4['end']['isBefore'](_0x20f316['end'])?-0x1:_0x5b18a4['end']['isAfter'](_0x20f316['end'])?0x1:'add'===_0x36de6a['type']?-0x1:0x1;}),{'root':_0x56fd73,'changes':_0x2e225b};function _0x2d7c06(_0x22e768,_0x1cb4dd,_0x5989cd,_0x5c6a99){const _0x161ee2=!!_0x4fe463[_0x1cb4dd][_0x22e768],_0x2ac8fd=_0x161ee2?_0x4fe463[_0x1cb4dd][_0x22e768]['userId']:null,_0x57b55a=_0x1cb4dd===_0x4fe463['length']-0x1,_0x2bf146=_0x4beaa5[_0x22e768][0x0],_0x550560=_0xa8da17['isObject'](_0x4fe463[_0x1cb4dd]['item']);!_0x593615[_0x22e768]&&_0x161ee2?_0x593615[_0x22e768]={'start':_0x5989cd,'tapeItem':_0x4fe463[_0x1cb4dd],'userId':_0x2ac8fd,'type':_0x22e768}:_0x593615[_0x22e768]&&!_0x161ee2?(_0x593615[_0x22e768]['end']=_0x5989cd,_0x2686ec(_0x593615[_0x22e768]),_0x593615[_0x22e768]=null):_0x593615[_0x22e768]&&_0x161ee2&&_0x593615[_0x22e768]['userId']!==_0x2ac8fd&&(_0x593615[_0x22e768]['end']=_0x5989cd,_0x2bf146&&_0x2bf146['userId']===_0x593615[_0x22e768]['userId']||_0x2686ec(_0x593615[_0x22e768]),_0x593615[_0x22e768]={'start':_0x5989cd,'tapeItem':_0x4fe463[_0x1cb4dd],'userId':_0x2ac8fd,'type':_0x22e768}),_0x593615[_0x22e768]&&_0x550560&&('elementStart'!==_0x4fe463[_0x1cb4dd]['type']||_0x2bf146&&_0x2bf146['userId']===_0x2ac8fd||_0x4beaa5[_0x22e768]['unshift']({'userId':_0x2ac8fd,'object':_0x4fe463[_0x1cb4dd]['item'],'change':_0x593615[_0x22e768]}),'elementEnd'===_0x4fe463[_0x1cb4dd]['type']&&_0x2bf146&&_0x2bf146['object']===_0x4fe463[_0x1cb4dd]['item']&&(_0x4beaa5[_0x22e768]['shift'](),_0x593615[_0x22e768]=_0x2bf146['change'])),_0x593615[_0x22e768]&&_0x57b55a&&(_0x593615[_0x22e768]['end']=_0x5c6a99,_0x2686ec(_0x593615[_0x22e768]),_0x593615[_0x22e768]=null);}function _0x2686ec({start:_0x604858,end:_0x324dda,tapeItem:_0x280971,userId:_0x33d6b9,type:_0xa4a720}){const _0x59b72c=_0x280971['item'],_0x225827=_0x59c5c9['schema']['isBlock'](_0x59b72c)&&!_0x59c5c9['schema']['isLimit'](_0x59b72c),_0x16922a=_0x604858['nodeAfter']==_0x324dda['parent']&&_0x324dda['isAtStart'];if(_0x225827&&_0x16922a)return;const _0x5e5f05=_0x59c5c9['createRange'](_0x604858,_0x324dda),_0x8a5088=_0x5abcbf['get'](_0x33d6b9),_0x22a22b=new G({'author':_0x8a5088,'type':'isAdded'==_0xa4a720||'isAddSuggestion'==_0xa4a720?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xa4a720||'isRemoveSuggestion'==_0xa4a720},'createdAt':new Date(),'rootName':_0x388cd2});_0x2e225b['push'](_0x22a22b),_0x56fd73['markers']['set']('revision:'+_0x22a22b['id'],_0x5e5f05);}function _0x2f4277(_0x37ccec,_0x36d4be){const _0x190fbe=_0x37ccec['getAttributes'](),_0x1d7476=_0x36d4be['getAttributes']();for(const _0x1f518f of _0x190fbe){if(_0x1f518f[0x1]!==_0x36d4be['getAttribute'](_0x1f518f[0x0]))return!0x1;_0x1d7476['next']();}return _0x1d7476['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x540ba2=>{const _0x30d320=_0x540ba2['markerName']['split'](':')[0x1],_0x54867e=this['_getChangeFromId'](_0x30d320);if(!_0x54867e)return null;const _0x3b43f7='add'==_0x54867e['type']?'insertion':'deletion',_0x29e53f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3b43f7];return _0x54867e['data']['isSuggestion']&&_0x29e53f['push']('ck-suggestion-marker-'+_0x3b43f7+'-new'),this['activeChange']==_0x54867e&&_0x29e53f['push']('ck-suggestion-marker--active'),{'classes':_0x29e53f,'attributes':{'data-change-id':_0x30d320}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1a1ca1=>{_0x1a1ca1['on']('element:pre',(_0x31c869,_0x3a6f72,_0x592163)=>{const _0x4599a4=_0x3a6f72['viewItem']['getChild'](0x0);if(!_0x4599a4||!_0x4599a4['is']('element','code'))return;if(!_0x592163['consumable']['consume'](_0x4599a4,{'attributes':['vid_start','vid_end']}))return;const _0x202629=_0x3a6f72['modelRange']['start']['nodeAfter'];_0x592163['writer']['setAttribute']('vid_start',_0x4599a4['getAttribute']('vid_start'),_0x202629),_0x592163['writer']['setAttribute']('vid_end',_0x4599a4['getAttribute']('vid_end'),_0x202629);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3d2c09=>{_0x3d2c09['on']('element',(_0x52f609,_0x379ed5,_0x13c4e3)=>{if(!_0x13c4e3['consumable']['consume'](_0x379ed5['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x379ed5['modelRange']['isCollapsed'])return;const _0x4f5342=_0x379ed5['modelRange']['start']['nodeAfter'];_0x4f5342['hasAttribute']('vid_start')||_0x4f5342['hasAttribute']('vid')||(_0x13c4e3['writer']['setAttribute']('vid_start',_0x379ed5['viewItem']['getAttribute']('vid_start'),_0x4f5342),_0x13c4e3['writer']['setAttribute']('vid_end',_0x379ed5['viewItem']['getAttribute']('vid_end'),_0x4f5342));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2d4d11=>_0x2d4d11['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x26a521,[,_0xdc9225])=>{['vid_start','vid_end','vid']['includes'](_0xdc9225)&&(_0x26a521['return']=!0x0,_0x26a521['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x511658=>{_0x511658['on']('attribute:vid',(_0x24b674,_0x10672f,_0x36ea95)=>{if('\x20'!=_0x10672f['item']['data']||_0x10672f['item']['parent']['maxOffset']>0x1)return;if(!_0x36ea95['consumable']['consume'](_0x10672f['item'],_0x24b674['name']))return;const _0x1e15e1=_0x36ea95['writer'],_0x3ae543=_0x36ea95['mapper']['toViewRange'](_0x10672f['range']);_0x1e15e1['wrap'](_0x3ae543,_0x1e15e1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2ff948){const _0xa4b674=_0x2ff948['plugins']['get']('RevisionViewer');return(_0x25e4e8,_0x39f4ca,_0xa93173)=>{const _0x4a3083=_0x39f4ca['markerName']['split'](':')[0x1],_0x504f14=_0xa4b674['_getChangeFromId'](_0x4a3083);if(!_0x504f14)return null;const _0x5a6aba='add'==_0x504f14['type']?'split':'merge';if(!_0xa93173['consumable']['test'](_0x39f4ca['markerRange'],_0x25e4e8['name']))return;const _0x50bece=_0x39f4ca['markerRange']['getWalker'](),_0x4baff4=_0x39f4ca['markerRange']['start'],_0x2b8d35=_0x2ff948['model']['schema'];let _0x51a49b=null,_0x4903f6=null,_0x56bdf1=!0x1,_0x5c1c05=!0x1;for(const _0x33b2fa of _0x50bece){const _0x254d31=_0x33b2fa['item'];_0x56bdf1=_0x56bdf1||_0x2b8d35['isContent'](_0x254d31);const _0x1d23bc=_0xa93173['mapper']['toViewElement'](_0x254d31);if(_0x1d23bc&&_0x1d23bc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x33b2fa['type']&&(_0x2b8d35['isBlock'](_0x254d31)&&!_0x2b8d35['isLimit'](_0x254d31)&&(_0x254d31['nextSibling']||_0x4baff4['isAtEnd']?_0x51a49b&&_0x51a49b['parent']==_0x254d31||(_0x51a49b=_0x254d31,_0x540c78(_0x33b2fa['previousPosition']),_0x5c1c05=!0x0):_0x4903f6=_0x4903f6||_0x33b2fa['previousPosition']));}function _0x540c78(_0x2dd6ef){const _0x1eb0d9=_0xa93173['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5a6aba}),_0x42d2e9=_0xa93173['mapper']['toViewPosition'](_0x2dd6ef);_0x504f14['data']['isSuggestion']&&_0xa93173['writer']['addClass']('ck-suggestion-marker-'+_0x5a6aba+'-new',_0x1eb0d9),_0xa4b674['activeChange']==_0x504f14&&_0xa93173['writer']['addClass']('ck-suggestion-marker--active',_0x1eb0d9),_0xa93173['writer']['insert'](_0x42d2e9,_0x1eb0d9),_0xa93173['mapper']['bindElementToMarker'](_0x1eb0d9,_0x39f4ca['markerName']);}_0x56bdf1||_0x5c1c05||!_0x4903f6||_0x540c78(_0x4903f6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xd6a822,_0x1bfbc0,_0x19faea)=>{const _0x5c7418=_0x19faea['mapper']['markerNameToElements'](_0x1bfbc0['markerName']);if(_0x5c7418){for(const _0x1ef723 of _0x5c7418)(_0x1ef723['hasClass']('ck-suggestion-marker-split')||_0x1ef723['hasClass']('ck-suggestion-marker-merge'))&&(_0x19faea['mapper']['unbindElementFromMarkerName'](_0x1ef723,_0x1bfbc0['markerName']),_0x19faea['writer']['remove'](_0x1ef723));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x16c0e1,_0x649e15,_0x1b0432)=>{const _0x47b9de=_0x649e15['markerName']['split'](':')[0x1],_0x1e21a6=this['_getChangeFromId'](_0x47b9de);if(!_0x1e21a6)return null;const _0xb1fd35='add'==_0x1e21a6['type']?'split':'merge';if(_0x1b0432['consumable']['test'](_0x649e15['markerRange'],_0x16c0e1['name']))for(const _0x307af4 of _0x649e15['markerRange']['getItems']()){if(!_0x307af4['is']('element','softBreak'))continue;const _0x5d69dc=_0x1b0432['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb1fd35}),_0x6fd56c=_0x1b0432['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x307af4));_0x1e21a6['data']['isSuggestion']&&_0x1b0432['writer']['addClass']('ck-suggestion-marker-'+_0xb1fd35+'-new',_0x5d69dc),this['activeChange']==_0x1e21a6&&_0x1b0432['writer']['addClass']('ck-suggestion-marker--active',_0x5d69dc),_0x1b0432['writer']['insert'](_0x6fd56c,_0x5d69dc),_0x1b0432['mapper']['bindElementToMarker'](_0x5d69dc,_0x649e15['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x275fe6=>{for(const _0xdd8b4d of this['editor']['model']['document']['getRootNames']()){const _0xae552d=this['editor']['model']['document']['getRoot'](_0xdd8b4d),_0x523362=this['editor']['editing']['view']['document']['getRoot'](_0xdd8b4d);if(_0x523362){const _0x5599f1=_0xae552d['getAttribute']('revisionHistoryAttachChange');if(_0x275fe6['removeAttribute']('data-change-id',_0x523362),_0x275fe6['removeClass']('ck-revision-history-root-add',_0x523362),_0x275fe6['removeClass']('ck-revision-history-root-remove',_0x523362),_0x275fe6['removeClass']('ck-revision-history-root--active',_0x523362),_0x5599f1){const _0x19e03a=this['_getChangeFromId'](_0x5599f1);if(!_0x19e03a)return null;_0x275fe6['setAttribute']('data-change-id',_0x5599f1,_0x523362),_0x275fe6['addClass']('ck-revision-history-root-'+_0x19e03a['type'],_0x523362),this['activeChange']==_0x19e03a&&_0x275fe6['addClass']('ck-revision-history-root--active',_0x523362);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x55e794=>'revision-comment:'+_0x55e794,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3dd025=>'revision-suggestion:'+_0x3dd025,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x543b49=>({'name':'suggestion:'+_0x543b49,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x365087=>{const _0x6ba4c=_0x365087['markerName']['split'](':')[0x1];return'insertion'!=_0x6ba4c&&'deletion'!=_0x6ba4c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x6ba4c]};}}),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',(_0x3d6e63,_0x552de7,_0x3f9f54)=>{const _0x503ef2=_0x3f9f54['mapper']['markerNameToElements'](_0x552de7['markerName']);if(_0x503ef2){for(const _0x35e824 of _0x503ef2)_0x35e824['is']('uiElement')&&(_0x3f9f54['mapper']['unbindElementFromMarkerName'](_0x35e824,_0x552de7['markerName']),_0x3f9f54['writer']['remove'](_0x35e824));}},{'priority':'high'});}['_getChangeFromId'](_0x48fed0){return this['_changeIdToChange']['get'](_0x48fed0);}['_getViewForChange'](_0x45cbe1){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x45cbe1),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x551d11,_0x23e0f8,_0x43074e,_0x4a099c)=>{_0x4a099c&&this['_balloon']['remove'](_0x4a099c),_0x43074e&&(this['_balloon']['add']({'view':_0x43074e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x24ff99=this['editor']['editing'],_0x288b25=this['_getChangeFromId'](_0x43074e['changeId']);let _0x46b825;if(_0x288b25['data']['isOnRoot']){const _0x388704=_0x24ff99['view']['getDomRoot'](_0x288b25['rootName']);_0x46b825=Array['from'](_0x388704['getClientRects']());}else{const _0x29fa79=this['editor']['model']['markers']['get']('revision:'+_0x43074e['changeId']);_0x46b825=Array['from'](_0x24ff99['mapper']['markerNameToElements'](_0x29fa79['name']))['map'](_0xd04d5f=>_0x24ff99['view']['domConverter']['mapViewToDom'](_0xd04d5f))['map'](_0x57d719=>Array['from'](_0x57d719['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x46b825[0x0];return _0x46b825['find'](_0x3aeec7=>_0x3aeec7['top']-0x3<=this['_activeViewTarget']['y']&&_0x3aeec7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3aeec7['left']-0x3<=this['_activeViewTarget']['x']&&_0x3aeec7['right']+0x3>=this['_activeViewTarget']['x'])||_0x46b825[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x32c3d1,_0xc3c1db,_0x5d541b,_0x4194b2)=>{this['activeView']=_0x5d541b?this['_getViewForChange'](_0x5d541b):null,this['editor']['model']['change'](()=>{const _0x43d066=this['editor']['editing'];_0x4194b2&&(_0x4194b2['data']['isOnRoot']?_0x43d066['view']['change'](_0x5e9995=>{_0x5e9995['removeClass']('ck-revision-history-root--active',_0x43d066['view']['document']['getRoot'](_0x4194b2['rootName']));}):_0x43d066['reconvertMarker']('revision:'+_0x4194b2['id'])),_0x5d541b&&(_0x5d541b['data']['isOnRoot']?_0x43d066['view']['change'](_0x20f6e9=>{_0x20f6e9['addClass']('ck-revision-history-root--active',_0x43d066['view']['document']['getRoot'](_0x5d541b['rootName']));}):_0x43d066['reconvertMarker']('revision:'+_0x5d541b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x52fec4,_0x392981)=>{if(this['activeChange'])return;const _0x5e8269=this['_findChangeIdFromDomTarget'](_0x392981['target']),_0x40c047=this['_changeIdToChange']['get'](_0x5e8269);_0x40c047?(this['_activeViewTarget']={'x':_0x392981['domEvent']['x'],'y':_0x392981['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x40c047)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x121a3a,_0x1fb86b)=>{const _0x4213da=this['_findChangeIdFromDomTarget'](_0x1fb86b['target']),_0x2a6ff6=this['_changeIdToChange']['get'](_0x4213da);_0x2a6ff6?(this['_activeViewTarget']={'x':_0x1fb86b['domEvent']['x'],'y':_0x1fb86b['domEvent']['y']},_0x2a6ff6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2a6ff6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xe02940){do{const _0x544e0f=_0xe02940['getAttribute']('data-change-id');if(_0x544e0f)return _0x544e0f;_0xe02940=_0xe02940['parent'];}while(_0xe02940);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x21b5a0=>{for(const _0x22f44e of this['editor']['model']['markers'])_0x21b5a0['removeMarker'](_0x22f44e);});}}function Q(_0x5219ad,_0x5c9f6b){return(_0x304a50,_0x2bb236,_0x585505)=>{if(!_0x585505['consumable']['test'](_0x2bb236['markerRange'],_0x304a50['name']))return;const _0x134d43=_0x2bb236['markerRange']['getWalker'](),_0x1997a2=_0x2bb236['markerRange']['start'],_0x2d59fb=_0x5219ad['model']['schema'];let _0x3179fe=null,_0x27a3ec=null,_0x508714=!0x1,_0x5611d1=!0x1;for(const _0x2c422e of _0x134d43){const _0x320973=_0x2c422e['item'];_0x508714=_0x508714||_0x2d59fb['isContent'](_0x320973);const _0x4d059d=_0x585505['mapper']['toViewElement'](_0x320973);if(_0x4d059d&&_0x4d059d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c422e['type']&&(_0x2d59fb['isBlock'](_0x320973)&&!_0x2d59fb['isLimit'](_0x320973)&&(_0x320973['nextSibling']||_0x1997a2['isAtEnd']?_0x3179fe&&_0x3179fe['parent']==_0x320973||(_0x3179fe=_0x320973,_0x110161(_0x2c422e['previousPosition']),_0x5611d1=!0x0):_0x27a3ec=_0x27a3ec||_0x2c422e['previousPosition']));}function _0x110161(_0x462634){const _0x1ef858=_0x585505['mapper']['toViewPosition'](_0x462634),_0x21efee=_0x585505['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5c9f6b});_0x585505['writer']['insert'](_0x1ef858,_0x21efee),_0x585505['mapper']['bindElementToMarker'](_0x21efee,_0x2bb236['markerName']);}_0x508714||_0x5611d1||!_0x27a3ec||_0x110161(_0x27a3ec);};}class nt extends _0x30eac9{constructor(_0x1d796e){super(_0x1d796e);const _0x2c6609=_0x1d796e['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x2c6609,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2c6609,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x404907=this['editor'],_0x471828=_0x404907['plugins']['get'](u),_0x4eeaca=_0x471828['isReady']?_0x471828['diff']['newRevisionId']:null;_0x404907['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4eeaca);}['refresh'](){const {isReady:_0x24526c,isEnabled:_0x197882,repository:_0xe4176e,diff:_0x2e9f7f}=this['editor']['plugins']['get'](u),_0x485ba6=_0x2e9f7f&&_0xe4176e['getLaterVisibleRevision'](_0x2e9f7f['newRevisionId']);this['isEnabled']=_0x24526c&&_0x197882&&Boolean(_0x485ba6);}}class ot extends _0x30eac9{['_step'];constructor(_0x25d7ff,{direction:_0x3ab18e}){super(_0x25d7ff);const _0x5f501b=_0x25d7ff['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x3ab18e?0x1:-0x1,this['listenTo'](_0x5f501b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5f501b,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5f501b,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3be840=this['editor'],_0x3e2ab0=_0x3be840['plugins']['get'](u),{isNavigationMode:_0x3a2437,currentChangeNumber:_0x11e2ef}=_0x3e2ab0;let _0x2ae478;if(_0x3e2ab0['activeChange']=_0x3a2437?_0x3e2ab0['diff']['changes']['get'](_0x11e2ef+this['_step']):_0x3e2ab0['diff']['changes']['first'],_0x3e2ab0['activeChange']['data']['isOnRoot'])_0x2ae478=_0x3be840['editing']['view']['getDomRoot'](_0x3e2ab0['activeChange']['rootName']);else{const _0x521c96=_0x3be840['model']['markers']['get']('revision:'+_0x3e2ab0['activeChange']['id']);_0x2ae478=_0x50e4f9(_0x3be840['editing'],_0x521c96);}_0x3e6207({'target':_0x2ae478,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1df774,currentChangeNumber:_0xa2dcd4,numberOfChanges:_0x1bada7,isReady:_0x340569,isEnabled:_0x553f1f}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x553f1f&&_0x340569&&_0x1bada7)&&(!_0x1df774||(0x1===this['_step']?_0xa2dcd4<_0x1bada7-0x1:_0xa2dcd4>0x0));}}class pi extends _0x14bc2f{constructor(_0x2f9f98){super(_0x2f9f98);const _0x94b1a7=this['bindTemplate'],_0x52df61=new _0x534191(_0x2f9f98),_0x45cdc3=new _0x534191(_0x2f9f98);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',(_0x3d96e3,_0x41e1cd)=>_0x3d96e3&&_0x41e1cd>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x9564e8,_0x12690b,_0x3f46f1,_0x1a009a)=>{if(!_0x9564e8)return m(_0x2f9f98,'Loading...');if(!_0x3f46f1)return m(_0x2f9f98,'No\x20changes');const _0x2672e1=m(_0x2f9f98,'NUMBER_OF_CHANGES',_0x3f46f1);return _0x1a009a?m(_0x2f9f98,'X_OF_Y_CHANGES',[_0x12690b+0x1,_0x3f46f1]):_0x2672e1;}),_0x52df61['set']({'label':m(_0x2f9f98,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1dcbd4}),_0x45cdc3['set']({'label':m(_0x2f9f98,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5e2179}),_0x52df61['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x45cdc3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x52df61['on']('execute',()=>this['fire']('execute','backward')),_0x45cdc3['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',_0x94b1a7['if']('_isStatusLabelVisible','ck-hidden',_0x26da00=>!_0x26da00)]},'children':[{'text':_0x94b1a7['to']('isNavigationMode',_0x3fb5e7=>_0x3fb5e7?m(_0x2f9f98,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2f9f98,'Total')+':\x20')}]},{'text':_0x94b1a7['to']('_statusText')}]},new _0x29c4ab(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x52df61,_0x45cdc3]}]});}}const ge='ck-editor__editable__loading-overlay';class fi extends _0x2182b9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2d8fd4=this['editor']['editing']['view'];_0x2d8fd4['change'](_0x3dc249=>{for(const _0x3b0898 of _0x2d8fd4['document']['roots'])_0x3dc249['addClass'](ge,_0x3b0898);});}['hide'](){const _0x7971a8=this['editor']['editing']['view'];_0x7971a8['change'](_0x25b861=>{for(const _0x717874 of _0x7971a8['document']['roots'])_0x25b861['removeClass'](ge,_0x717874);});}}class v extends _0x2182b9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,fi];}['init'](){const _0x473d9b=this['editor'],_0x59b35d=_0x473d9b['plugins']['get'](u),_0x2104af=_0x473d9b['plugins']['get'](fi);_0x473d9b['ui']['componentFactory']['add']('exitToEditing',_0x1eddde=>{const _0x3b4128=new _0x534191(_0x1eddde);return _0x3b4128['set']({'label':m(_0x1eddde,'Back\x20to\x20editing'),'icon':_0x5cdc3a,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3b4128,'execute',()=>{_0x473d9b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3b4128;}),_0x473d9b['ui']['componentFactory']['add']('restoreRevision',_0xb2fd24=>{const _0x172b24=new _0x534191(_0xb2fd24);return _0x172b24['set']({'label':m(_0xb2fd24,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x172b24['bind']('isEnabled')['to'](_0x473d9b['commands']['get']('restoreRevision')),this['listenTo'](_0x172b24,'execute',()=>_0x473d9b['execute']('restoreRevision')),_0x172b24;}),_0x473d9b['ui']['componentFactory']['add']('changesNavigation',_0x44ea10=>{const _0x5b2213=new pi(_0x44ea10),_0x12c19c=_0x473d9b['commands']['get']('showPreviousChange'),_0x3aefa8=_0x473d9b['commands']['get']('showNextChange');return _0x5b2213['bind']('isBackwardNavigationEnabled')['to'](_0x12c19c,'isEnabled'),_0x5b2213['bind']('isForwardNavigationEnabled')['to'](_0x3aefa8,'isEnabled'),_0x5b2213['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x59b35d),this['listenTo'](_0x5b2213,'execute',(_0x471800,_0x43d475)=>{_0x473d9b['execute']('forward'===_0x43d475?'showNextChange':'showPreviousChange');}),_0x5b2213;}),_0x2104af['show'](),_0x59b35d['on']('change:isReady',(_0x2bcb57,_0x17c062,_0x1c85cb)=>{_0x1c85cb?_0x2104af['hide']():_0x2104af['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x2a4359,_0xb2af40){super(_0x2a4359,_0xb2af40);const _0x4a50f5=this['bindTemplate'];this['set']({'label':m(_0x2a4359,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2a4359,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4a50f5['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x18b5e5=this['fieldView']['element'];this['_tooltipString']=_0x18b5e5['scrollWidth']>_0x18b5e5['clientWidth']&&_0x18b5e5['value']||'';}}class vi extends _0x14bc2f{constructor(_0x52e0d3,_0x3a5f04,_0x312800){super(_0x52e0d3);const _0x194ad6=new _0x2d523d();_0x194ad6['set']({'content':_0x26004b,'viewBox':'0\x200\x2011\x2010'});const _0x4ba37d=['ck','ck-revision-history-sidebar__revision-author'];_0x312800&&_0x4ba37d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x21b067=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x52e0d3,_0x312800?'Revision\x20creator':'Revision\x20author')},'children':[_0x194ad6,_0x3a5f04['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4ba37d},'children':_0x21b067});}}function mi(_0x486f38,_0x25ddf9){const _0x38197e=_0x486f38['bindTemplate'],_0x567586=_0x486f38['locale'],_0x25010d=_0x25a564(_0x567586);_0x25010d['panelPosition']='sw';const _0x487f7f=function(_0xf03d70,_0x48c462){const _0x38b023=function(_0x3b3b8a,_0x3ac0a8){const _0x457a1c=_0x3b3b8a['locale'],_0x5a1240={'Compare\x20against\x20selected':m(_0x457a1c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x457a1c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x457a1c,'Restore\x20this\x20revision')};return _0x3ac0a8['map'](_0x1b2009=>{const _0x47543f=_0x5a1240[_0x1b2009['name']];return _0x47543f&&_0x47543f!==_0x1b2009['name']&&(_0x1b2009['name']=_0x47543f),_0x1b2009;});}(_0xf03d70,_0x48c462),_0x5a9042=new _0x401ff4();for(const _0x11f457 of _0x38b023){const _0x1388fa={'type':'button','model':new to({'label':_0x11f457['name'],'class':_0x11f457['class'],'withText':!0x0,'role':'menuitem','_action':_0x11f457['action']})};_0x1388fa['model']['bind']('isEnabled')['to'](_0xf03d70,'isActionsDropdownOpen',_0x5d7361=>'function'!=typeof _0x11f457['isEnabled']||(!_0x5d7361||_0x11f457['isEnabled'](_0xf03d70))),_0x5a9042['add'](_0x1388fa);}return _0x5a9042;}(_0x486f38,_0x25ddf9);return _0x486f38['bind']('isActionsDropdownOpen')['to'](_0x25010d,'isOpen'),_0x25010d['buttonView']['set']({'label':m(_0x567586,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x356400}),_0x25010d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x38197e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x38197e['to'](_0x1c9994=>_0x1c9994['stopPropagation']())}}),_0x25010d['on']('execute',_0x1c97a1=>{_0x486f38['isReady']&&'function'==typeof _0x1c97a1['source']['_action']&&_0x1c97a1['source']['_action'](_0x486f38);}),_0x348879(_0x25010d,_0x487f7f,{'role':'menu'}),_0x25010d['listenTo'](_0x486f38,'change:isActionsDropdownOpen',(_0x469b88,_0xdd97b9,_0xf84d53)=>{if(_0xf84d53)for(const _0x56b39a of _0x25010d['listView']['items']){const _0x49eefe=_0x56b39a['children']['first'],_0x28ca2d=_0x25ddf9['find'](_0x5a7aa2=>_0x5a7aa2['action']===_0x49eefe['_action'])['isVisible'];_0x56b39a['isVisible']=void 0x0===_0x28ca2d||_0x28ca2d(_0x486f38);}}),_0x25010d;}class ki extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x28c99b,uid as _0x544ff4,Collection as _0x292637,logWarning as _0x2cfa54,FocusTracker as _0x5edae5,KeystrokeHandler as _0x354688,scrollViewportToShowTarget as _0x5e079d,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x23ee96}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xb2db8,set as _0x12995c,unset as _0x3cfb12,isEqual as _0x5dda21}from'es-toolkit/compat';import{Plugin as _0x437c77,PendingActions as _0x18f35f,Command as _0x5de004,ElementApiMixin as _0x1e9f0a,Editor as _0x3e40f0}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xefcee4,getMarkerDomElement as _0x52f960,ConfirmMixin as _0x138897,sanitizeEditorConfig as _0x254a4b}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x1cd95f,ViewAttributeElement as _0x3dc87d,ViewEmptyElement as _0x5a0fb5,ViewRawElement as _0x1be34a,ViewUIElement as _0x112304,ViewDocumentFragment as _0x22f85d,ViewText as _0x42fd7f,ViewElement as _0x37bbf5,ModelElement as _0x467cfa,ModelRange as _0x49d459,ModelPosition as _0x2c240b,ModelDocumentFragment as _0xbdee0c,ModelText as _0x264685}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3dc43c,IconChevronUp as _0x56df88,IconChevronDown as _0x5c12f5,IconUndo as _0x550877,IconUser as _0x2f748d,IconThreeVerticalDots as _0x59f83a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x3560c6,View as _0x2a78ea,submitHandler as _0x301d30,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x2676c3,ListView as _0x15824c,ListItemView as _0x3054ac,ButtonView as _0x4c4445,MenuBarMenuView as _0x34fd27,MenuBarMenuListView as _0x2ddecd,MenuBarMenuListItemView as _0x456bf8,MenuBarMenuListItemButtonView as _0x590fd1,ContextualBalloon as _0x2cef43,ToolbarSeparatorView as _0x5d1747,IconView as _0x42ea15,addListToDropdown as _0x4e23b7,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x55e167,StickyPanelView as _0x768968,ToolbarView as _0x44ce47,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x43cb4d}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x28c99b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xa88248){super(),this['id']=_0xa88248['id']||_0x544ff4(),this['creator']=_0xa88248['creator']||null,this['authors']=_0xa88248['authors']||[],this['diffData']=_0xa88248['diffData']||null,this['toVersion']=_0xa88248['toVersion']||0x0,this['fromVersion']=_0xa88248['fromVersion']||0x0,this['set']('name',_0xa88248['name']||''),this['set']('createdAt',_0xa88248['createdAt']||new Date()),this['set']('attributes',_0xa88248['attributes']||{});}['setName'](_0x28e64b){this['_update']({'name':_0x28e64b});}['setAttribute'](_0x13e43,_0x1fb33a){const _0x21df6b=_0xb2db8(this['attributes']);_0x12995c(_0x21df6b,_0x13e43,_0x1fb33a),this['_update']({'attributes':_0x21df6b});}['removeAttribute'](_0x504994){const _0x2134ce=_0xb2db8(this['attributes']);_0x3cfb12(_0x2134ce,_0x504994),this['_update']({'attributes':_0x2134ce});}['_update'](_0x1a6c77,_0x491f26=!0x1){let _0x997eb1=!0x1;const _0x96c45b={'id':this['id']},_0x5b4966=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x55bab6 of _0x5b4966){const _0x55ea4c=_0x1a6c77[_0x55bab6];void 0x0!==_0x55ea4c&&_0x55ea4c!==this[_0x55bab6]&&(this[_0x55bab6]=_0x55ea4c,_0x96c45b[_0x55bab6]=_0x55ea4c,_0x997eb1=!0x0);}_0x997eb1&&(_0x96c45b['authors']&&(_0x96c45b['authorsIds']=_0x96c45b['authors']['map'](_0x18a3ce=>_0x18a3ce['id']),delete _0x96c45b['authors']),this['fire']('_update',_0x96c45b,_0x491f26));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x539140=>_0x539140['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x437c77{['_revisions'];static get['requires'](){return[_0xefcee4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3a066f){super(_0x3a066f),this['_revisions']=new _0x292637();}['afterInit'](){!async function(_0xcf1f01){const _0x3a4a8f=_0x5b61ac([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0xfac78=0xeb829,_0x49d6f0=0x7374585f,_0x47156f=0x73732e1f^_0x49d6f0,_0x32b2f0=window[_0x5b61ac([0x44,0x61,0x74,0x65])][_0x5b61ac([0x6e,0x6f,0x77])](),_0x230987=_0xcf1f01[_0x5b61ac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48048e=new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df739=>{_0x230987[_0x5b61ac([0x6f,0x6e,0x63,0x65])](_0x5b61ac([0x72,0x65,0x61,0x64,0x79]),_0x3df739);}),_0x5734e4={[_0x5b61ac([0x6b,0x74,0x79])]:_0x5b61ac([0x45,0x43]),[_0x5b61ac([0x75,0x73,0x65])]:_0x5b61ac([0x73,0x69,0x67]),[_0x5b61ac([0x63,0x72,0x76])]:_0x5b61ac([0x50,0x2d,0x32,0x35,0x36]),[_0x5b61ac([0x78])]:_0x5b61ac([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]),[_0x5b61ac([0x79])]:_0x5b61ac([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]),[_0x5b61ac([0x61,0x6c,0x67])]:_0x5b61ac([0x45,0x53,0x32,0x35,0x36])},_0x217849=_0x230987[_0x5b61ac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b61ac([0x67,0x65,0x74])](_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5af966(){let _0x49ecb0,_0x334eae=null,_0x4ae4a4=null;try{if(_0x217849==_0x5b61ac([0x47,0x50,0x4c]))return _0x5b61ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49ecb0=_0x4248d8(),!_0x49ecb0)return _0x5b61ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49ecb0[_0x5b61ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ae4a4=_0x1e9132(_0x49ecb0[_0x5b61ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49ecb0[_0x5b61ac([0x6a,0x74,0x69])])),await _0x301c9d()?_0x2e7339()?_0x458e63()?_0x5b61ac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53b077()?(_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b61ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x334eae=_0x32adc0(_0x5b61ac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b61ac([0x74,0x72,0x69,0x61,0x6c])&&(_0x334eae=_0x32adc0(_0x5b61ac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ab9b4()):_0x5b61ac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b61ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b61ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5b61ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x458e63(){const _0x35165d=[_0x5b61ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b61ac([0x74,0x72,0x69,0x61,0x6c])][_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32b2f0/0x3e8:0xe10*_0x47156f;return _0x49ecb0[_0x5b61ac([0x65,0x78,0x70])]<_0x35165d;}function _0x2e7339(){const _0x54e42c=_0x49ecb0[_0x5b61ac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x54e42c)return!0x1;if(_0x54e42c[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x2a])))return!0x0;if(_0x54e42c[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x52,0x48])))return!0x0;if(_0x54e42c[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x52,0x52,0x48]))){if(_0x41bc26())return!0x0;if(_0x1ee0bd()||_0x167f98())return!0x0;}return!0x1;}function _0x53b077(){const _0x204807=_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x204807||0x0==_0x204807[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x96e4d8}=new URL(window[_0x5b61ac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x204807[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96e4d8))return!0x0;const _0x10f571=_0x96e4d8[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e]));return _0x204807[_0x5b61ac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x134569=>_0x134569[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x2a])))[_0x5b61ac([0x6d,0x61,0x70])](_0x298b9e=>_0x298b9e[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e])))[_0x5b61ac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e7de4=>_0x2e7de4[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10f571[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b61ac([0x6d,0x61,0x70])](_0x12f0b3=>Array(_0x10f571[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x12f0b3[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b61ac([0x66,0x69,0x6c,0x6c])](_0x12f0b3[0x0]===_0x5b61ac([0x2a])?_0x5b61ac([0x2a]):'')[_0x5b61ac([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x12f0b3))[_0x5b61ac([0x73,0x6f,0x6d,0x65])](_0x1f53d1=>_0x10f571[_0x5b61ac([0x65,0x76,0x65,0x72,0x79])]((_0x5a5a59,_0x59b6fa)=>_0x1f53d1[_0x59b6fa]===_0x5a5a59||_0x1f53d1[_0x59b6fa]===_0x5b61ac([0x2a])));}function _0x1ab9b4(){return _0x334eae&&_0x4ae4a4?new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50b8ad,_0x28a57b)=>{_0x334eae[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x50b8ad,_0x28a57b),_0x4ae4a4[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x3a0cd0=>{_0x3a0cd0!=_0x5b61ac([0x56,0x61,0x6c,0x69,0x64])&&_0x50b8ad(_0x3a0cd0);},_0x28a57b);}):_0x334eae||_0x4ae4a4||_0x5b61ac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e9132(_0x1a041c,_0x2ad16b){return new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c17c1=>{if(_0x2702c8())return _0x4c17c1(_0x5b61ac([0x56,0x61,0x6c,0x69,0x64]));_0x13afba(),_0x230987[_0x5b61ac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b61ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19d003=!0x1;const _0x23444b=_0x544ff4();function _0x44e310(_0x1e4a66){return!!_0x1e4a66&&(typeof _0x1e4a66===_0x5b61ac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e4a66===_0x5b61ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e4a66[_0x5b61ac([0x74,0x68,0x65,0x6e])]===_0x5b61ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e4a66[_0x5b61ac([0x63,0x61,0x74,0x63,0x68])]===_0x5b61ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c51af(_0x2663b2){_0x192b2e(_0x2663b2)[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x230c78=>{if(!_0x230c78||_0x230c78[_0x5b61ac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b61ac([0x6f,0x6b]))return _0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37d05b(_0x260938(_0x23444b+_0x2ad16b))!=_0x230c78[_0x5b61ac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b61ac([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x3791e9=>(_0x5d25bb(),_0x3791e9),()=>{const _0x4daf76=_0x34b422();return null==_0x4daf76?(_0x5d25bb(),_0x5b61ac([0x56,0x61,0x6c,0x69,0x64])):_0x5b61ac(_0x32b2f0-_0x4daf76>(0x5778dc5f^_0x49d6f0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x4c17c1)[_0x5b61ac([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c17c1(_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24769a=0x7342b6df^_0x49d6f0;function _0x5d25bb(){const _0x4ee71=_0x5b61ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x37d05b(_0x260938(_0x1a041c)),_0x3fd6da=_0x1e54e5(_0x37d05b(window[_0x5b61ac([0x4d,0x61,0x74,0x68])][_0x5b61ac([0x63,0x65,0x69,0x6c])](_0x32b2f0/_0x24769a)));window[_0x5b61ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b61ac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ee71,_0x3fd6da);}function _0x34b422(){const _0x43aa1d=_0x5b61ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x37d05b(_0x260938(_0x1a041c)),_0x44d157=window[_0x5b61ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b61ac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43aa1d);return _0x44d157?window[_0x5b61ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e54e5(_0x44d157),0x10)*_0x24769a:null;}function _0x192b2e(_0x5b575c){return new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5275a1,_0x477767)=>{_0x5b575c[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x5275a1,_0x477767),window[_0x5b61ac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x477767,0x73758c9f^_0x49d6f0);});}}_0x230987[_0x5b61ac([0x6f,0x6e])](_0x5b61ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcf4ad5,_0x2f68f7)=>{if(_0x2f68f7[0x0]!=_0x1a041c)return _0x4c17c1(_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f68f7[0x1]={..._0x2f68f7[0x1],[_0x5b61ac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23444b};},{[_0x5b61ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b61ac([0x68,0x69,0x67,0x68])}),_0x230987[_0x5b61ac([0x6f,0x6e])](_0x5b61ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39959f=>{_0x44e310(_0x39959f[_0x5b61ac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19d003=!0x0,_0x3c51af(_0x39959f[_0x5b61ac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b61ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b61ac([0x6c,0x6f,0x77])}),_0x48048e[_0x5b61ac([0x74,0x68,0x65,0x6e])](()=>{_0x19d003||_0x4c17c1(_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2702c8(){return _0x230987[_0x5b61ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b61ac([0x76,0x69,0x65,0x77])][_0x5b61ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b61ac([0x61,0x75,0x74,0x6f]);}function _0x13afba(){_0x230987[_0x5b61ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b61ac([0x76,0x69,0x65,0x77])][_0x5b61ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b61ac([0x61,0x75,0x74,0x6f]);}}function _0x32adc0(_0x54f4d0){const _0x4051c7=[new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4090a7=>setTimeout(_0x4090a7,0x737d6693^_0x49d6f0)),_0x48048e[_0x5b61ac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310c5b=>{const _0x467555=0x73745858^_0x49d6f0,_0x279989=_0xcf1f01[_0x5b61ac([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x38fa60(){_0x279989[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x467555&&_0x310c5b();}_0x38fa60(),_0x279989[_0x5b61ac([0x6f,0x6e])](_0x5b61ac([0x61,0x64,0x64]),_0x38fa60);})),new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b522a=>{function _0x244df7(){for(const _0x4e24b8 in window)if(window[_0x5b61ac([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5b61ac([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4e24b8))&&window[_0x4e24b8]==_0xfac78)return _0x4b522a();_0x230987[_0x5b61ac([0x73,0x74,0x61,0x74,0x65])]!=_0x5b61ac([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5b61ac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x244df7,0x73744bd7^_0x49d6f0);}_0x2c7814(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x244df7();})];return window[_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b61ac([0x72,0x61,0x63,0x65])](_0x4051c7)[_0x5b61ac([0x74,0x68,0x65,0x6e])](()=>_0x54f4d0);}async function _0x3b6cd3(){if(await _0x48048e,_0x2c7814(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2af876=_0xcf1f01[_0x5b61ac([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x32e1a5=_0xcf1f01[_0x5b61ac([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])](_0x2af876[_0x5b61ac([0x69,0x64])]),_0x44d9ac=_0x29bc7c(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x44d9ac[_0x5b61ac([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2af876['id'],_0x32e1a5?_0x32e1a5['id']:null,!0x0),_0x44d9ac[_0x5b61ac([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x44d9ac[_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x44d9ac[_0x5b61ac([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2088e3,void(_0x44d9ac[_0x5b61ac([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2088e3);}if(_0x2c7814(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1bf90b=_0x29bc7c(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1bf90b[_0x5b61ac([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bf90b[_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bf90b[_0x5b61ac([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2088e3,_0x1bf90b[_0x5b61ac([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2088e3;}_0x230987[_0x5b61ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b61ac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2088e3,_0x230987[_0x5b61ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b61ac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2088e3,_0x230987[_0x5b61ac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b61ac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41bc26(){return _0x2c7814(_0x5b61ac([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29bc7c(_0x5b61ac([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5b61ac([0x73,0x74,0x61,0x74,0x65])]==_0x5b61ac([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ee0bd(){return _0x2c7814(_0x5b61ac([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 _0x167f98(){return _0x2c7814(_0x5b61ac([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x16307d(_0x51a133){const _0xeb0963=_0x1a2323();_0x230987[_0xeb0963]=_0x5b61ac([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])+_0x51a133,_0x51a133[_0x5b61ac([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5b61ac([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1a2323()]=_0xfac78),_0x51a133!=_0x5b61ac([0x56,0x61,0x6c,0x69,0x64])&&_0x3b6cd3();}function _0x1a2323(){const _0x2e0ef5=window[_0x5b61ac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b61ac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b61ac([0x6e,0x6f,0x77])]())[_0x5b61ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b61ac([0x2e]),'');let _0x3bc178=_0x5b61ac([0x73]);for(let _0x32004c=0x0;_0x32004c<_0x2e0ef5[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32004c+=0x2){let _0x528025=window[_0x5b61ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e0ef5[_0x5b61ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32004c,_0x32004c+0x2));_0x528025>=_0x3a4a8f[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x528025-=_0x3a4a8f[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3bc178+=_0x3a4a8f[_0x528025];}return _0x3bc178;}function _0x4248d8(){const _0xdecaf9=_0x217849[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e]));if(0x3!=_0xdecaf9[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x736e09(_0xdecaf9[0x1]);function _0x736e09(_0x1b1217){const _0x38ddaf=_0xc3d67e(_0x1b1217);return _0x38ddaf&&_0x28eb15()?_0x38ddaf:null;function _0x28eb15(){const _0x198537=_0x38ddaf[_0x5b61ac([0x6a,0x74,0x69])],_0xa77e5a=window[_0x5b61ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x198537[_0x5b61ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x198537[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b10cb={..._0x38ddaf,[_0x5b61ac([0x6a,0x74,0x69])]:_0x198537[_0x5b61ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x198537[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b10cb[_0x5b61ac([0x76,0x63])],_0x260938(_0x3b10cb)==_0xa77e5a;}}}async function _0x301c9d(){let _0x13c5e4=!0x0;try{const _0x42ccaf=_0x217849[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e])),[_0x1e14ff,_0x5b5163,_0x4444dd]=_0x42ccaf;return _0x3288d1(_0x1e14ff),await _0x243bf5(_0x1e14ff,_0x5b5163,_0x4444dd),_0x13c5e4;}catch{return!0x1;}function _0x3288d1(_0x39a319){const _0x9fb708=_0xc3d67e(_0x39a319);_0x9fb708&&_0x9fb708[_0x5b61ac([0x61,0x6c,0x67])]==_0x5b61ac([0x45,0x53,0x32,0x35,0x36])||(_0x13c5e4=!0x1);}async function _0x243bf5(_0x4fdd15,_0x180492,_0x534839){const _0x139ba1=window[_0x5b61ac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b61ac([0x66,0x72,0x6f,0x6d])](_0x75e524(_0x534839),_0x51816f=>_0x51816f[_0x5b61ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3dc42b=new window[(_0x5b61ac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b61ac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fdd15+_0x5b61ac([0x2e])+_0x180492),_0x13eec7=window[_0x5b61ac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b61ac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13eec7)return;const _0x428b9d=await _0x13eec7[_0x5b61ac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b61ac([0x6a,0x77,0x6b]),_0x5734e4,{[_0x5b61ac([0x6e,0x61,0x6d,0x65])]:_0x5b61ac([0x45,0x43,0x44,0x53,0x41]),[_0x5b61ac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b61ac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b61ac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13eec7[_0x5b61ac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b61ac([0x6e,0x61,0x6d,0x65])]:_0x5b61ac([0x45,0x43,0x44,0x53,0x41]),[_0x5b61ac([0x68,0x61,0x73,0x68])]:{[_0x5b61ac([0x6e,0x61,0x6d,0x65])]:_0x5b61ac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x428b9d,_0x139ba1,_0x3dc42b)||(_0x13c5e4=!0x1);}}function _0xc3d67e(_0x47a197){return _0x47a197[_0x5b61ac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b61ac([0x65,0x79]))?JSON[_0x5b61ac([0x70,0x61,0x72,0x73,0x65])](_0x75e524(_0x47a197)):null;}function _0x75e524(_0x4380ce){return window[_0x5b61ac([0x61,0x74,0x6f,0x62])](_0x4380ce[_0x5b61ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b61ac([0x2b]))[_0x5b61ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b61ac([0x2f])));}function _0x260938(_0x57547c){let _0x47ba1c=0x1505;function _0x19c70d(_0x496332){for(let _0x12ffe1=0x0;_0x12ffe1<_0x496332[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12ffe1++){const _0x1b2d5a=_0x496332[_0x5b61ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12ffe1);_0x47ba1c=(_0x47ba1c<<0x5)+_0x47ba1c+_0x1b2d5a,_0x47ba1c&=_0x47ba1c;}}function _0x901e80(_0x93d7c3){Array[_0x5b61ac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x93d7c3)?_0x93d7c3[_0x5b61ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x901e80):_0x93d7c3&&typeof _0x93d7c3==_0x5b61ac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b61ac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x93d7c3)[_0x5b61ac([0x73,0x6f,0x72,0x74])]()[_0x5b61ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3afc67,_0x28d29f])=>{_0x19c70d(_0x3afc67),_0x901e80(_0x28d29f);}):_0x19c70d(window[_0x5b61ac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x93d7c3));}return _0x901e80(_0x57547c),_0x47ba1c>>>0x0;}function _0x37d05b(_0x1874f1){return _0x1874f1[_0x5b61ac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b61ac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b61ac([0x30]));}function _0x1e54e5(_0x198001){return _0x198001[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b61ac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b61ac([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c7814(_0xb1bd4c){return _0x230987[_0x5b61ac([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b61ac([0x68,0x61,0x73])](_0xb1bd4c);}function _0x29bc7c(_0x42f4c3){return _0x230987[_0x5b61ac([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b61ac([0x67,0x65,0x74])](_0x42f4c3);}function _0x2088e3(){}function _0x5b61ac(_0x580b5f){return _0x580b5f['map'](_0x1b188f=>String['fromCharCode'](_0x1b188f))['join']('');}_0x16307d(await _0x5af966());}(this);}['createRevision'](_0x1d3051){const _0x20dc94=this['editor']['plugins']['get']('Users');return new I({'id':_0x1d3051['id'],'name':_0x1d3051['name'],'creator':_0x1d3051['creatorId']?_0x20dc94['getUser'](_0x1d3051['creatorId']):null,'diffData':_0x1d3051['diffData']||_0x1d3051['data'],'authors':_0x1d3051['authorsIds']['map'](_0x51c9e3=>_0x20dc94['getUser'](_0x51c9e3)),'createdAt':new Date(_0x1d3051['createdAt']),'attributes':_0x1d3051['attributes'],'fromVersion':_0x1d3051['fromVersion'],'toVersion':_0x1d3051['toVersion']});}['addRevision'](_0x5cc33a,_0x175721=0x0){this['_revisions']['add'](_0x5cc33a,_0x175721);}['getRevision'](_0x41aed3){return this['_revisions']['get'](_0x41aed3);}['getRevisions'](_0x21df83={'toJSON':!0x1}){const _0x2c92e8=Array['from'](this['_revisions']);return _0x2c92e8['reverse'](),_0x21df83['toJSON']?_0x2c92e8['map'](_0x2d2057=>_0x2d2057['toJSON']()):_0x2c92e8;}['getIndex'](_0x40a962){return this['_revisions']['getIndex'](_0x40a962);}['getEarlierVisibleRevision'](_0x296932){const [,_0x1ba690]=this['getRevisionsIterator'](_0x296932,{'direction':'earlier'});return _0x1ba690;}['getLaterVisibleRevision'](_0xc0c1f3){const [,_0x2afaf8]=this['getRevisionsIterator'](_0xc0c1f3,{'direction':'later'});return _0x2afaf8;}['getRevisionsInDiff'](_0x5e6ccb){const _0xf6eff9=[];for(const _0x2fa6b0 of this['getRevisionsIterator'](_0x5e6ccb['newRevisionId']))if(_0xf6eff9['push'](_0x2fa6b0),_0x2fa6b0['id']===_0x5e6ccb['oldRevisionId'])break;return _0xf6eff9;}*['getRevisionsIterator'](_0x78bb72,{direction:_0xc0c3ff='earlier',filter:_0x502871=()=>!0x0}={}){const _0x2aab6b='earlier'===_0xc0c3ff?0x1:-0x1;let _0x46b9d7=this['_revisions']['get'](_0x78bb72),_0x425f9c=this['getIndex'](_0x46b9d7);for(yield _0x46b9d7;_0x46b9d7;){if(_0x425f9c+=_0x2aab6b,_0x46b9d7=this['getRevision'](_0x425f9c),!_0x46b9d7)return;_0x502871(_0x46b9d7)&&(yield _0x46b9d7);}}}class $ extends _0x437c77{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1cd95f,'c'],[_0x3dc87d,'a'],[_0x5a0fb5,'e'],[_0x1be34a,'r'],[_0x112304,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1cd95f],['a',_0x3dc87d],['e',_0x5a0fb5],['r',_0x1be34a],['u',_0x112304]]);async['loadRevisionData'](_0xe0a461,_0x55e4c5){if(_0xe0a461['diffData']||!_0x55e4c5)return;const _0x3c7052=this['editor']['config']['get']('collaboration.channelId'),_0x365499=await _0x55e4c5['getRevision']({'channelId':_0x3c7052,'revisionId':_0xe0a461['id']});_0xe0a461['diffData']=_0x365499['diffData'];}['getRevisionDocumentData'](_0x41f780){const _0x219a26={};for(const _0x479481 in _0x41f780['diffData']){if(_0x41f780['diffData'][_0x479481]['attachChange']&&!_0x41f780['diffData'][_0x479481]['attachChange']['isAttached'])continue;const _0x23a54f=this['_removeRevisionMarkers'](JSON['parse'](_0x41f780['diffData'][_0x479481]['insertions'])),_0x11aa52=this['editor']['editing']['view']['document'],_0x3e81f3=new _0x22f85d(_0x11aa52,_0x23a54f['map'](_0x42f01d=>this['_getViewFromDiffObj'](_0x42f01d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x219a26[_0x479481]=this['editor']['data']['processor']['toData'](_0x3e81f3),this['editor']['data']['processor']['useFillerType']('default');}return _0x219a26;}['getRevisionRootsAttributes'](_0x2844f5){const _0x298b8d={};for(const _0x2f7391 in _0x2844f5['diffData'])_0x2844f5['diffData'][_0x2f7391]['attachChange']&&!_0x2844f5['diffData'][_0x2f7391]['attachChange']['isAttached']||(_0x298b8d[_0x2f7391]=_0x2844f5['diffData'][_0x2f7391]['attributesAfter']||{});return _0x298b8d;}['_getTypeCharForViewElement'](_0x2836f9){return this['_viewClassToTypeChar']['get'](_0x2836f9['constructor']);}['_getViewFromDiffObj'](_0x24412d,_0x2310fe){const _0x2eeff2=this['editor']['editing']['view']['document'];if('string'==typeof _0x24412d)return new _0x42fd7f(_0x2eeff2,_0x24412d);{let _0x1702e8,_0x2d91fe;_0x2d91fe='u'==_0x24412d['type']||'r'==_0x24412d['type']?[]:_0x24412d['children']['map'](_0xa32fc6=>this['_getViewFromDiffObj'](_0xa32fc6,_0x2310fe));const _0x7c1036=this['_typeCharToViewClass']['get'](_0x24412d['type'])||_0x37bbf5,_0x2c4de5=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1702e8=new _0x7c1036(_0x2eeff2,_0x24412d['name'],_0x24412d['attributes'],_0x2d91fe),'u'==_0x24412d['type']&&_0x24412d['children'][0x0]){const _0x2e4d3c=_0x24412d['children'][0x0];if(_0x1702e8['render']=function(_0x3c3aa4){const _0x4c4a74=_0x3c3aa4['createElement']('div');return _0x4c4a74['innerHTML']=_0x2e4d3c,_0x4c4a74['childNodes'][0x0];},_0x2310fe){const _0x4c11cc=new _0x22f85d(_0x2eeff2);_0x4c11cc['_appendChild'](_0x1702e8);const _0x555995=Array['from'](_0x2c4de5['viewChildrenToDom'](_0x4c11cc,{'bind':!0x1})),_0x1e0656=_0x2c4de5['domDocument']['createElement']('div');_0x1e0656['append'](..._0x555995),_0x1702e8=Array['from'](_0x2c4de5['domChildrenToView'](_0x1e0656))[0x0];}}else{if('r'==_0x24412d['type']&&_0x24412d['children'][0x0]){const _0x2a9466=_0x24412d['children'][0x0];if(_0x1702e8['render']=function(_0x3fbe9d){_0x3fbe9d['innerHTML']=_0x2a9466;},_0x2310fe){const _0x5bd722=new _0x22f85d(_0x2eeff2);_0x5bd722['_appendChild'](_0x1702e8);const _0x5ec8c0=Array['from'](_0x2c4de5['viewChildrenToDom'](_0x5bd722,{'bind':!0x1})),_0x140f90=_0x2c4de5['domDocument']['createElement']('div');_0x140f90['append'](..._0x5ec8c0);const _0x348168=Array['from'](_0x2c4de5['domChildrenToView'](_0x140f90));_0x348168['length']>0x1?_0x1702e8['_appendChild'](_0x348168):_0x1702e8=_0x348168[0x0];}}}if(_0x24412d['customProperties']){for(const [_0x3996c2,_0x33dd11]of _0x24412d['customProperties'])_0x1702e8['_setCustomProperty'](_0x3996c2,_0x33dd11);}const _0x3dcd4a=void 0x0===_0x24412d['fillerOffset']?null:_0x24412d['fillerOffset'];return null!==_0x3dcd4a&&(_0x1702e8['getFillerOffset']=()=>_0x3dcd4a),_0x1702e8;}}['_makeModelFromViewString'](_0x443297){const _0x1a7da4=JSON['parse'](_0x443297),_0x279f8a=this['editor']['editing']['view']['document'],_0x23b71b=new _0x22f85d(_0x279f8a,_0x1a7da4['map'](_0x1d7e7e=>this['_getViewFromDiffObj'](_0x1d7e7e,!0x0)));return this['editor']['data']['toModel'](_0x23b71b);}['_removeRevisionMarkers'](_0x198c07){return(_0x198c07=_0x198c07['filter'](_0x4bc68a=>!_0x4bc68a['name']||'revision-start'!==_0x4bc68a['name']&&'revision-end'!==_0x4bc68a['name']))['forEach'](_0x230dfd=>{'string'!=typeof _0x230dfd&&(_0x230dfd['children']=this['_removeRevisionMarkers'](_0x230dfd['children']),_0x230dfd['attributes']=_0x230dfd['attributes']['filter'](_0x3673f0=>!_0x3673f0[0x0]['startsWith']('data-revision-')));}),_0x198c07;}}function m(_0x2c7c9c,_0x163ae8,_0x5bd642){const t=_0x2c7c9c['t'];switch(_0x163ae8){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'},_0x5bd642);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5bd642);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 _0x437c77{['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[_0xefcee4,S,$,_0x18f35f];}constructor(_0x138ff2){super(_0x138ff2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5ce6e6=_0x544ff4();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5ce6e6},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 _0x2fe9ca=this['repository']['getRevision'](0x0),_0x4a9b17=_0x2fe9ca&&null===_0x2fe9ca['creator']?_0x2fe9ca:null;if(this['_continueCurrentRevision']=!!_0x4a9b17&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5a6ed4=this['_source']['getCurrentRevisionId'](),_0x56aa8f=this['repository']['getRevision'](_0x5a6ed4);if(_0x56aa8f)this['_startingVersion']=_0x56aa8f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xf01adf=this['_source']['history']['_operations']['find'](_0x22df86=>!_0x22df86['_isInit']),_0x1d43f3=_0xf01adf?_0xf01adf['baseVersion']:this['_source']['history']['version'];_0x2fe9ca?(_0x2fe9ca['toVersion']<_0x1d43f3&&_0x2fe9ca['_update']({'toVersion':_0x1d43f3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4a9b17['id'],this['_startingVersion']=_0x4a9b17['fromVersion']):(this['_startingVersion']=_0x2fe9ca['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1d43f3,this['_continueCurrentRevision']=!0x1);}}else _0x4a9b17&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4a9b17['toVersion'],this['editor']['model']['document']['history']['version']),_0x4a9b17['fromVersion']===_0x4a9b17['toVersion']?(0x0!==_0x4a9b17['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4a9b17['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4a9b17['id'],this['_startingVersion']=_0x4a9b17['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',_0x13c496=>!_0x13c496),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x213305=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5040b1;for(const _0x2c7f65 in _0x213305){const _0x1d93a2=_0x2c7f65,_0x233c84=_0x213305[_0x1d93a2];if('revisionHistoryLicenseKeyValid'==_0x233c84||'revisionHistoryLicenseKeyInvalid'==_0x233c84||'revisionHistoryLicenseKeyExpired'==_0x233c84||'revisionHistoryLicenseKeyDomainLimit'==_0x233c84||'revisionHistoryLicenseKeyNotAllowed'==_0x233c84||'revisionHistoryLicenseKeyEvaluationLimit'==_0x233c84||'revisionHistoryLicenseKeyTrialLimit'==_0x233c84||'revisionHistoryLicenseKeyUsageLimit'==_0x233c84){delete _0x213305[_0x1d93a2],_0x5040b1=_0x233c84,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5040b1&&_0x213305['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5040b1&&_0x213305['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5040b1&&_0x213305['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5040b1&&_0x213305['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5040b1&&_0x213305['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5040b1&&_0x213305['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5040b1&&_0x213305['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x58b8f1=this['repository']['getRevision'](0x0),_0xdce86f=await this['getRevisionDocumentData'](_0x58b8f1),_0x560bef=await this['getRevisionRootsAttributes'](_0x58b8f1);this['_replaceEditorDataWithRevisionData'](_0xdce86f,_0x560bef);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x446deb){this['_source']=_0x446deb;}async['update'](){const _0x2a9da9=await this['_source']['getLatestVersion']();if(_0x2a9da9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2ea115=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2a9da9});_0x2ea115['authors']=_0x2ea115['authorsIds']['map'](_0x44fad9=>this['editor']['plugins']['get']('Users')['getUser'](_0x44fad9)),this['currentRevision']['_update'](_0x2ea115);}}async['saveRevision'](_0x582952={},_0x1a3497=null){const _0x3622df=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1a3497>this['currentRevision']['toVersion']&&(_0x1a3497=null),null===_0x1a3497&&(_0x1a3497=await this['_source']['getLatestVersion']());const _0x25bc1c=this['_getFromVersion'](_0x1a3497),_0x33f234=this['buildRevisionData']({'from':_0x25bc1c,'to':_0x1a3497});if(this['currentRevision']['toVersion']<_0x1a3497){const _0xbaee8b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1a3497,'to':_0x1a3497});_0xbaee8b['authors']=[],_0xbaee8b['authorsIds']=[],_0xbaee8b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xbaee8b,!0x0),delete _0xbaee8b['authors'],_0x3622df['push'](_0xbaee8b);}_0x582952['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x582952['name']=_0x582952['name']||null,_0x582952['id']=_0x582952['id']||_0x544ff4(),_0x582952={..._0x582952,..._0x33f234};const _0x33df49=this['addRevisionData'](_0x582952);_0x3622df['push'](_0x582952);const _0x4b8f16=this['repository']['getIndex'](_0x33df49);if(0x0!==_0x4b8f16){const _0x2d56cd=this['repository']['getRevision'](_0x4b8f16-0x1);if(_0x2d56cd['fromVersion']!==_0x1a3497){const _0x5b62b4=this['_revisionDataBuilder']['getData'](_0x1a3497,_0x2d56cd['toVersion']),_0x119a8a={'id':_0x2d56cd['id'],'diffData':_0x5b62b4['diffData'],'authorsIds':_0x5b62b4['authorsIds'],'authors':_0x5b62b4['authorsIds']['map'](_0x574f23=>this['editor']['plugins']['get']('Users')['getUser'](_0x574f23)),'fromVersion':_0x1a3497};_0x2d56cd===this['currentRevision']&&(_0x119a8a['createdAt']=new Date(_0x582952['createdAt']['getTime']()+0xa)),_0x2d56cd['_update'](_0x119a8a,!0x0),delete _0x119a8a['authors'],_0x3622df['push'](_0x119a8a);}}if(this['adapter']){for(const _0x4897c4 of _0x3622df)this['_bufferUpdate'](_0x4897c4['id'],_0x4897c4,!0x0);this['sendBufferedUpdates']();}return _0x33df49;}['addRevisionData'](_0x5e00ac){const _0x9f37c0=this['repository']['createRevision'](_0x5e00ac);return this['adapter']&&_0x9f37c0['on']('_update',(_0x299ac4,_0x174c90,_0x43c6fe)=>{_0x43c6fe||(this['_bufferUpdate'](_0x174c90['id'],_0x174c90,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x9f37c0,this['_findInsertionIndex'](_0x9f37c0)),_0x9f37c0;}async['getRevisionDocumentData'](_0x31a065){return await this['_utils']['loadRevisionData'](_0x31a065,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x31a065);}async['getRevisionRootsAttributes'](_0xe0b94){return await this['_utils']['loadRevisionData'](_0xe0b94,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xe0b94);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5e189f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x339e08=0x0;_0x339e08<_0x5e189f['length'];_0x339e08++){const _0x1fb1e1=_0x5e189f[_0x339e08];let _0xa18a53=!0x1;for(const _0x2403fd of Object['keys'](_0x1fb1e1))void 0x0===_0x1fb1e1[_0x2403fd]?delete _0x1fb1e1[_0x2403fd]:'id'!==_0x2403fd&&(_0xa18a53=!0x0);_0xa18a53||(_0x5e189f[_0x339e08]=null);}if(_0x5e189f=_0x5e189f['filter'](_0x47082f=>null!==_0x47082f),!_0x5e189f['length'])return;for(let _0x125caf=0x0;_0x125caf<_0x5e189f['length'];_0x125caf++){const _0x3db0dc=_0x5e189f[_0x125caf];void 0x0!==_0x3db0dc['fromVersion']&&void 0x0===_0x3db0dc['toVersion']&&(_0x3db0dc['toVersion']=this['repository']['getRevision'](_0x3db0dc['id'])['toVersion']),void 0x0!==_0x3db0dc['toVersion']&&void 0x0===_0x3db0dc['fromVersion']&&(_0x3db0dc['fromVersion']=this['repository']['getRevision'](_0x3db0dc['id'])['fromVersion']);}const _0x517182=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5e189f,_0x517182)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2b7a78=>{if(_0x2b7a78){for(const _0x22b228 of _0x2b7a78)this['setRevisionData']({'id':_0x22b228['id'],'createdAt':_0x22b228['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x40ca56=null,from:_0x297848=null,to:_0x157ad5=null}){_0x297848=null!==_0x297848?_0x297848:_0x40ca56['fromVersion'],_0x157ad5=null!==_0x157ad5?_0x157ad5:_0x40ca56['toVersion'];const _0x3906ef=this['_revisionDataBuilder']['getData'](_0x297848,_0x157ad5),_0xa49523={'diffData':_0x3906ef['diffData'],'authorsIds':_0x3906ef['authorsIds'],'fromVersion':_0x297848,'toVersion':_0x157ad5};if(!_0x40ca56||_0x157ad5!==_0x40ca56['toVersion']){const _0x344306=_0x157ad5-0x1,_0x2658b7=this['_source']['history']['getOperation'](_0x344306);_0xa49523['createdAt']=_0x2658b7&&_0x2658b7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x297848===this['_loadedStateData']['fromVersion']){for(const _0x4cf7ba of this['_loadedStateData']['authors'])_0xa49523['authorsIds']['includes'](_0x4cf7ba['id'])||_0xa49523['authorsIds']['push'](_0x4cf7ba['id']);}return _0xa49523;}['_bufferUpdate'](_0x49262f,_0x164523,_0x31141a){if(this['_bufferedUpdates']['has'](_0x49262f)){const _0x40b962=this['_bufferedUpdates']['get'](_0x49262f);_0x164523=_0x31141a?{..._0x40b962,..._0x164523}:{..._0x164523,..._0x40b962};}this['_bufferedUpdates']['set'](_0x49262f,_0x164523);}['setRevisionData'](_0x460148){const _0x4f47c3=this['repository']['getRevision'](_0x460148['id']);if(_0x460148['createdAt']&&(_0x460148['createdAt']=new Date(_0x460148['createdAt'])),_0x460148['authorsIds']){const _0x32f3ea=this['editor']['plugins']['get']('Users');_0x460148['authors']=_0x460148['authorsIds']['map'](_0x595be1=>_0x32f3ea['getUser'](_0x595be1));}_0x4f47c3['_update'](_0x460148,!0x0);}['_createInitialRevision'](_0x5504f4){const _0xa087be=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xa087be)this['_initialRevisionId']=_0xa087be['id'];else{const _0x2a53fa=!this['editor']['model']['document']['roots']['find'](_0x368e9c=>this['editor']['model']['hasContent'](_0x368e9c)),_0x10bbb9=this['editor']['plugins']['get']('Users')['me']['id'],_0x1f649e=m(this['editor']['locale'],_0x2a53fa?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5504f4,'to':_0x5504f4,'id':this['_initialRevisionId'],'name':_0x1f649e,'creatorId':_0x10bbb9});}}['_createCurrentRevision'](_0x2c45ee){const _0x1f930f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1f930f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2c45ee,'to':_0x2c45ee,'id':_0x1f930f,'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'](_0x5d7662,_0x5c25a8){let _0x41bb2a=this['editor']['config']['get']('initialData'),_0x291cea=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x41bb2a){_0x41bb2a={};for(const _0x44bf3d of this['editor']['model']['document']['getRootNames']())_0x41bb2a[_0x44bf3d]='';}if('string'==typeof _0x41bb2a&&(_0x41bb2a={'main':_0x41bb2a}),void 0x0===_0x291cea){_0x291cea={};for(const _0x1612e1 of this['editor']['model']['document']['getRootNames']())_0x291cea[_0x1612e1]={};}let _0x21bb97=!0x1;const _0x2e6367=Object['keys'](_0x41bb2a),_0x340b9f=Object['keys'](_0x5d7662);for(const _0x3d7fd9 of _0x2e6367){if(_0x41bb2a[_0x3d7fd9]!==_0x5d7662[_0x3d7fd9]&&''!==_0x41bb2a[_0x3d7fd9]['trim']()){_0x21bb97=!0x0;break;}if(!_0x5dda21(_0x291cea[_0x3d7fd9],_0x5c25a8[_0x3d7fd9])&&Object['keys'](_0x291cea[_0x3d7fd9])['length']>0x0){_0x21bb97=!0x0;break;}}_0x21bb97||(_0x21bb97=_0x340b9f['some'](_0x4fe587=>!this['editor']['model']['document']['getRoot'](_0x4fe587))),_0x21bb97&&_0x2cfa54('editor-initial-data-replaced-with-revision-data',{'editorData':_0x41bb2a,'editorRootsAttributes':_0x291cea,'revisionData':_0x5d7662,'revisionRootsAttributes':_0x5c25a8}),this['editor']['config']['set']('initialData',_0x5d7662),this['editor']['config']['set']('rootsAttributes',_0x5c25a8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5a21bf=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5a21bf['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x96248a){const _0xb25e69=this['repository']['getRevisions']();_0xb25e69['reverse']();let _0x5740b1=0x0;for(;_0x5740b1<_0xb25e69['length'];){const _0xa070e9=_0xb25e69[_0x5740b1];if(_0xa070e9===this['currentRevision']){_0x5740b1++;continue;}if(_0xa070e9['id']===this['_initialRevisionId'])break;const _0x274eb6=_0x96248a['toVersion']-_0xa070e9['toVersion']||_0x96248a['fromVersion']-_0xa070e9['fromVersion'];if(_0x274eb6>0x0)break;if(_0x274eb6<0x0)_0x5740b1++;else{if(!_0x96248a['creator']&&_0xa070e9['creator'])break;if(_0xa070e9['creator']||!_0x96248a['creator']){if(_0x96248a['createdAt']>_0xa070e9['createdAt'])break;_0x5740b1++;}else _0x5740b1++;}}return _0x5740b1;}['_getFromVersion'](_0x18084f){const _0x58aa3f=this['repository']['getRevisions']();_0x58aa3f['reverse'](),_0x58aa3f['shift']();const _0x16ef5b=_0x58aa3f['find'](_0x6b8964=>_0x6b8964['toVersion']<=_0x18084f)['toVersion'];return _0x16ef5b<this['_startingVersion']?this['_startingVersion']:_0x16ef5b;}['_makeRevision']({name:_0x434a8d,from:_0x4246c6,to:_0x42bcb7,creatorId:_0x36ec78,id:_0x133501}){const _0x5e15d3=this['buildRevisionData']({'from':_0x4246c6,'to':_0x42bcb7});_0x5e15d3['name']=_0x434a8d,_0x5e15d3['creatorId']=_0x36ec78,_0x5e15d3['id']=_0x133501;const _0x43370f=this['addRevisionData'](_0x5e15d3);return this['adapter']&&this['_bufferUpdate'](_0x5e15d3['id'],_0x5e15d3,!0x0),_0x43370f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x6af6d){this['editor']=_0x6af6d,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'](_0x4afb47){this['source']=_0x4afb47;const _0x893aa9=new Map(),_0x1ed9b8=new Map(),_0x36bff5=this['editor']['model']['document']['roots']['map'](_0x203dca=>_0x203dca['rootName']);for(const _0x17e94a of _0x36bff5){const _0x369e9b=this['editor']['model']['document']['getRoot'](_0x17e94a),_0x428335=x(_0x369e9b);_0x893aa9['set'](_0x17e94a,_0x428335),_0x1ed9b8['set'](_0x17e94a,Object['fromEntries'](_0x369e9b['getAttributes']()));}const _0x10cd4e=Array['from'](this['editor']['model']['markers'])['map'](_0x18ffed=>[_0x18ffed['name'],_0x18ffed['getRange']()]),_0x3956ee=this['source']['version'];this['_saveMetaData'](_0x3956ee,_0x893aa9,_0x10cd4e,_0x1ed9b8),this['_startingRevisionId']=this['_revisionId'];const _0xd143d0=new Map(),_0x28409f=new Map();for(const _0x3939a4 of _0x36bff5){const _0x25a592=N(_0x3939a4);_0xd143d0['set'](_0x3939a4,_0x25a592),_0x28409f['set'](_0x3939a4,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xd143d0,[],_0x28409f);}['getData'](_0x572351,_0x2f2e6c){if(this['_lastFrom']===_0x572351&&this['_lastTo']<=_0x2f2e6c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2f2e6c,!0x0);else{if(!this['_savedMetaData']['has'](_0x572351)){const _0x44db0e=this['_getPreviousFrom'](_0x572351);this['_calculateMetaData'](_0x44db0e,_0x572351,!0x1);}this['_calculateMetaData'](_0x572351,_0x2f2e6c,!0x0);}return this['_lastFrom']=_0x572351,this['_lastTo']=_0x2f2e6c,this['_getState']();}['loadState'](_0xd8c6af){if(!this['_savedMetaData']['has'](_0xd8c6af['fromVersion'])){const _0x583d0c=this['_getPreviousFrom'](_0xd8c6af['fromVersion']);this['_calculateMetaData'](_0x583d0c,_0xd8c6af['fromVersion'],!0x1);}this['_calculateMetaData'](_0xd8c6af['fromVersion'],_0xd8c6af['toVersion'],!0x1);const _0x539630=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xd8c6af['fromVersion'],this['_lastTo']=_0xd8c6af['toVersion'];for(const _0x2e9a18 in _0xd8c6af['diffData']){const _0x359ed8=_0xd8c6af['diffData'][_0x2e9a18]['attachChange'],_0x4d860e=_0xb2db8(_0xd8c6af['diffData'][_0x2e9a18]['attributesBefore'])||{},_0x5e92f2=_0x539630['_makeModelFromViewString'](_0xd8c6af['diffData'][_0x2e9a18]['deletions']);_0x5e92f2['rootName']=_0x2e9a18,_0x5e92f2['_isAttached']=!_0x359ed8||!_0x359ed8['isAttached'],_0x5e92f2['isAttached']=()=>_0x5e92f2['_isAttached'],this['_baseRoots']['set'](_0x2e9a18,_0x5e92f2),this['_baseRootsAttributes']['set'](_0x2e9a18,_0x4d860e),_0x359ed8&&this['_touchedRoots']['set'](_0x2e9a18,_0x359ed8);const _0x233188=this['_makeIdsRoot'](_0x5e92f2);this['_baseIdsRoots']['set'](_0x2e9a18,_0x233188);for(const [_0x401e3c,_0x94e9b2]of _0x5e92f2['markers']){if(!_0x401e3c['startsWith']('revision:'))continue;const _0x55ae45=_0x401e3c['split'](':')[0x2];for(const _0x20396f of _0x94e9b2['getWalker']({'singleCharacters':!0x0})){const _0x16185d=this['_getVidAttributeName'](_0x20396f),_0x44524c='elementEnd'==_0x20396f['type']?_0x20396f['previousPosition']['path']['slice'](0x0,-0x1):_0x20396f['previousPosition']['path'],_0x8e2a44=_0x233188['getNodeByPath'](_0x44524c)['getAttribute'](_0x16185d);this['_touched']['set'](_0x8e2a44,{'userId':_0x55ae45});}_0x5e92f2['markers']['delete'](_0x401e3c);}}this['_startingRevisionId']=this['_revisionId'];const _0x2b9a10=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4e9578=>!this['_touched']['has'](_0x4e9578));let _0x3dd06b=0x0;const _0x43da76=new Map();for(const _0x3776c4 in _0xd8c6af['diffData']){const _0x3428db=_0xd8c6af['diffData'][_0x3776c4]['attachChange'],_0x2c8702=_0xb2db8(_0xd8c6af['diffData'][_0x3776c4]['attributesAfter'])||{},_0x1075f3=_0x539630['_makeModelFromViewString'](_0xd8c6af['diffData'][_0x3776c4]['insertions']);_0x1075f3['rootName']=_0x3776c4,_0x1075f3['_isAttached']=!_0x3428db||_0x3428db['isAttached'],_0x1075f3['isAttached']=()=>_0x1075f3['_isAttached'],this['_diffRoots']['set'](_0x3776c4,_0x1075f3),this['_diffRootsAttributes']['set'](_0x3776c4,_0x2c8702);const _0x172a25=this['_makeIdsRoot'](_0x1075f3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3776c4,_0x172a25),_0x43da76['set'](_0x3776c4,_0x1075f3['isAttached']()?_0x2c8702:{});for(const [_0x1c2826,_0x577c68]of _0x1075f3['markers']){if(!_0x1c2826['startsWith']('revision:'))continue;const _0x279001=_0x1c2826['split'](':')[0x2];for(const _0x4935e3 of _0x577c68['getWalker']({'singleCharacters':!0x0})){const _0x1663fe=this['_getVidAttributeName'](_0x4935e3),_0x3f7f29=this['_revisionId']++,_0x17ce0f='elementEnd'==_0x4935e3['type']?_0x4935e3['previousPosition']['path']['slice'](0x0,-0x1):_0x4935e3['previousPosition']['path'];_0x172a25['getNodeByPath'](_0x17ce0f)['_setAttribute'](_0x1663fe,_0x3f7f29),this['_touched']['set'](_0x3f7f29,{'userId':_0x279001});}_0x1075f3['markers']['delete'](_0x1c2826);}for(const _0x9ccfd5 of this['editor']['model']['createRangeIn'](_0x1075f3)['getWalker']({'singleCharacters':!0x0})){const _0x557d30=this['_getVidAttributeName'](_0x9ccfd5),_0xd3d65f='elementEnd'==_0x9ccfd5['type']?_0x9ccfd5['previousPosition']['path']['slice'](0x0,-0x1):_0x9ccfd5['previousPosition']['path'],_0x341365=_0x172a25['getNodeByPath'](_0xd3d65f);_0x341365['getAttribute'](_0x557d30)>0x0||_0x341365['_setAttribute'](_0x557d30,_0x2b9a10[_0x3dd06b++]);}for(const [_0x1abb51,_0x481ca5]of _0x1075f3['markers'])_0x1abb51['startsWith']('revision:')||this['_markers']['set'](_0x1abb51,_0x481ca5);}const {roots:_0xeaa4c5}=this['_savedMetaData']['get'](_0xd8c6af['fromVersion']),{roots:_0x5d3f92}=this['_savedMetaData']['get'](_0xd8c6af['toVersion']),_0x2f64ca=x(_0xeaa4c5['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x2f64ca),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2f64ca,Number['NEGATIVE_INFINITY']));const _0x4e9608=x(_0x5d3f92['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x4e9608),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4e9608));const _0x342df7=Array['from'](this['_diffRoots'])['map'](([_0x11c64d,_0x22f555])=>[_0x11c64d,x(_0x22f555)]);this['_saveMetaData'](this['_lastTo'],_0x342df7,this['_markers'],_0x43da76);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5d0f05,_0x3d7199,_0x4ea3d6,_0x344245){const _0x12e205=new Map(_0x3d7199),_0x2c0b97=new Map(_0xb2db8(_0x344245)),_0x4d470f=new Map();for(const [_0x3dfa41,_0x38e46e]of _0x4ea3d6)_0x4d470f['set'](_0x3dfa41,{'start':_0x38e46e['start']['clone'](),'end':_0x38e46e['end']['clone'](),'rootName':_0x38e46e['root']['rootName']});this['_savedMetaData']['set'](_0x5d0f05,{'roots':_0x12e205,'markers':_0x4d470f,'rootsAttributes':_0x2c0b97});}['_removeMetaData'](_0xa8caad){this['_savedMetaData']['delete'](_0xa8caad);}['_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'](_0x2d3081,_0x127f82=null){let _0x1399aa=null;_0x2d3081['is']('documentFragment')||(_0x1399aa=new _0x467cfa(_0x2d3081['name'],{'vid_start':null===_0x127f82?this['_revisionId']++:_0x127f82++}));const _0x2391f5=[];for(const _0x2a2d81 of _0x2d3081['getChildren']())if(_0x2a2d81['is']('element')){_0x2391f5['push'](this['_makeIdsRoot'](_0x2a2d81,_0x127f82));const _0x1115af=_0x2391f5[_0x2391f5['length']-0x1];null!==_0x127f82&&(_0x127f82=_0x1115af['is']('element','$text')?_0x1115af['getAttribute']('vid')+0x1:_0x1115af['getAttribute']('vid_end')+0x1);}else{for(let _0x43e84f=0x0;_0x43e84f<_0x2a2d81['offsetSize'];_0x43e84f++)_0x2391f5['push'](new _0x467cfa('$text',{'vid':null===_0x127f82?this['_revisionId']++:_0x127f82++}));}if(_0x2d3081['is']('documentFragment')){const _0x5ec32a=N(_0x2d3081['rootName']);return _0x5ec32a['_insertChild'](0x0,_0x2391f5),_0x5ec32a;}return _0x1399aa['_setAttribute']('vid_end',null===_0x127f82?this['_revisionId']++:_0x127f82++),_0x1399aa['_insertChild'](0x0,_0x2391f5),_0x1399aa;}['_calculateMetaData'](_0x3d57b8,_0x19dd42,_0x13f87a){this['_reset']();const {roots:_0x4aa8c2,markers:_0x313e48,rootsAttributes:_0x4e97dc}=this['_savedMetaData']['get'](_0x3d57b8);this['_baseRoots']=new Map(_0x4aa8c2),this['_baseRootsAttributes']=new Map(_0xb2db8(_0x4e97dc));for(const [_0x3aa41c,_0x51b038]of this['_baseRoots'])if('$graveyard'!==_0x3aa41c&&(this['_diffRoots']['set'](_0x3aa41c,x(_0x51b038)),this['_diffRootsAttributes']=new Map(_0xb2db8(_0x4e97dc)),_0x13f87a)){const _0x11ac14=this['_revisionId'];this['_idsRoots']['set'](_0x3aa41c,this['_makeIdsRoot'](_0x51b038)),this['_baseIdsRoots']['set'](_0x3aa41c,this['_makeIdsRoot'](_0x51b038,_0x11ac14));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x13f87a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x35fcd9,_0x3f31a5]of _0x313e48){const _0x1ed5d6=this['_baseRoots']['get'](_0x3f31a5['rootName']),_0x4cbfa6=this['_diffRoots']['get'](_0x3f31a5['rootName']),_0x1e7964=new _0x49d459(this['_fixPosition'](_0x3f31a5['start'],_0x1ed5d6),this['_fixPosition'](_0x3f31a5['end'],_0x1ed5d6)),_0x3b4f3d=this['_fixRange'](_0x1e7964,_0x4cbfa6);_0x1ed5d6['markers']['set'](_0x35fcd9,_0x1e7964),this['_markers']['set'](_0x35fcd9,_0x3b4f3d);}this['_applyOperations'](_0x3d57b8,_0x19dd42,_0x13f87a);}['_applyOperations'](_0x4dc448,_0x3c4eca,_0x1856e2){for(const _0x1d9120 of this['source']['getOperations'](_0x4dc448,_0x3c4eca))this['_handleOperation'](_0x1d9120,_0x1856e2);for(const _0x5d3e41 of this['_diffRoots']['values']())_0x5d3e41['markers']['clear']();for(const [_0x4e8862,_0x3fc430]of this['_markers']){this['_diffRoots']['get'](_0x3fc430['root']['rootName'])['markers']['set'](_0x4e8862,_0x3fc430['clone']());}const _0x265474=new Map(),_0x58ee4e=new Map();for(const [_0x1fd9e1,_0x16bb86]of this['_diffRoots'])_0x265474['set'](_0x1fd9e1,x(_0x16bb86)),_0x58ee4e['set'](_0x1fd9e1,this['_diffRootsAttributes']['get'](_0x1fd9e1));this['_saveMetaData'](_0x3c4eca,_0x265474,this['_markers'],_0x58ee4e);}['_getPreviousFrom'](_0x5dac21){const _0x271830=Array['from'](this['_savedMetaData']['keys']());_0x271830['sort']((_0x495a94,_0x56dfe4)=>_0x495a94-_0x56dfe4),_0x271830['reverse']();for(const _0x261324 of _0x271830)if(_0x261324<_0x5dac21)return _0x261324;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x17f5ea,_0x54844e){const _0x275b92=Array['from'](_0x54844e['markers'])['map'](([_0x1604a2,_0x46f3e9])=>[_0x1604a2,this['_fixRange'](_0x46f3e9,_0x17f5ea)]);_0x17f5ea['markers']=new Map(_0x275b92);}['_transformMarkers'](_0x15ac29){for(const _0x36a2bc of this['_markers']['values']()){const _0x24f797=_0x36a2bc['getTransformedByOperation'](_0x15ac29),_0x560558=_0x49d459['_createFromRanges'](_0x24f797);_0x36a2bc['start']=_0x560558['start'],_0x36a2bc['end']=_0x560558['end'];}}['_handleOperation'](_0x47050c,_0x1e1f27){if('addRoot'!=_0x47050c['type']&&'detachRoot'!=_0x47050c['type']){if('insert'==_0x47050c['type']){const _0x1ab114=_0x47050c['position']['root']['rootName'];this['_diffRoots']['has'](_0x1ab114)||(this['_diffRoots']['set'](_0x1ab114,N(_0x1ab114,!0x0)),this['_diffRootsAttributes']['set'](_0x1ab114,{}),_0x1e1f27&&this['_idsRoots']['set'](_0x1ab114,N(_0x1ab114,!0x0)));}else{if('addRootAttribute'==_0x47050c['type']||'removeRootAttribute'==_0x47050c['type']||'changeRootAttribute'==_0x47050c['type'])return void this['_handleRootAttributeOperation'](_0x47050c);'marker'==_0x47050c['type']&&this['_handleMarkerOperation'](_0x47050c);}if('marker'!==_0x47050c['type']){const _0x4067ec=this['_cloneOperation'](_0x47050c,this['_diffRoots']);_0x4067ec['_execute'](),this['_transformMarkers'](_0x4067ec);}if(_0x1e1f27)switch(_0x47050c['type']){case'insert':this['_handleInsertOperation'](_0x47050c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x47050c);break;case'merge':this['_handleMergeOperation'](_0x47050c);break;case'split':this['_handleSplitOperation'](_0x47050c);}}else this['_handleRootOperation'](_0x47050c,_0x1e1f27);}['_cloneOperation'](_0x4eb5b2,_0x5e9dce){const _0xf1ea58=_0x4eb5b2['clone']();return _0xf1ea58['_authorId']=_0x4eb5b2['_authorId'],this['_fixOperation'](_0xf1ea58,_0x5e9dce),_0xf1ea58;}['_getBaseVids'](_0x416dc1){return _0x416dc1['map'](_0x2b856d=>{const _0x2eb7ee=this['_getVidAttributeName'](_0x2b856d);return Number(_0x2b856d['item']['getAttribute'](_0x2eb7ee));});}['_generateTape'](_0x2b0a70,_0x1ed70c){if(_0x2b0a70['is']('element','$text'))_0x1ed70c['push']({'item':_0x2b0a70,'type':'text'});else{_0x2b0a70['is']('element')&&_0x1ed70c['push']({'item':_0x2b0a70,'type':'elementStart'});for(const _0x59edf4 of _0x2b0a70['getChildren']())this['_generateTape'](_0x59edf4,_0x1ed70c);_0x2b0a70['is']('element')&&_0x1ed70c['push']({'item':_0x2b0a70,'type':'elementEnd'});}return _0x1ed70c;}['_getState'](){const _0x5603a8=new Map(this['_touched']),_0x3a3f74=new Map(_0x5603a8),_0x2aba9d=new Map(),_0x282038={'insertions':{},'deletions':{}},_0x2ac367={'insertions':{},'deletions':{}},_0x5142e8=new Map(),_0x31b95a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x31b95a['delete']('$graveyard');for(const _0x59b618 of _0x31b95a){const _0x47340b=this['_diffRoots']['get'](_0x59b618)||N(_0x59b618,!0x1),_0x5134bc=this['_baseRoots']['get'](_0x59b618)||N(_0x59b618,!0x1);_0x47340b['isAttached']()||_0x5134bc['isAttached']()?(_0x282038['insertions'][_0x59b618]=x(_0x47340b),_0x282038['deletions'][_0x59b618]=x(_0x5134bc),this['_copyMarkers'](_0x282038['deletions'][_0x59b618],_0x5134bc),this['_copyMarkers'](_0x282038['insertions'][_0x59b618],_0x47340b),_0x2ac367['insertions'][_0x59b618]=this['_generateTape'](this['_idsRoots']['get'](_0x59b618),[]),_0x2ac367['deletions'][_0x59b618]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x59b618)||N(_0x59b618,!0x1),[])):_0x31b95a['delete'](_0x59b618);}for(const _0x2fefaa of _0x31b95a){const _0x3815e8=_0x2ac367['insertions'][_0x2fefaa];for(const _0x1fb3b6 of _0x3815e8){const _0x21e1d7=this['_getVidAttributeName'](_0x1fb3b6),_0x874cee=_0x1fb3b6['item']['getAttribute'](_0x21e1d7);_0x3a3f74['delete'](_0x874cee),_0x874cee>=this['_startingRevisionId']&&_0x2aba9d['set'](_0x874cee,_0x5603a8['get'](_0x874cee));}}for(const _0x2d066d of _0x31b95a){const _0x142707=_0x2ac367['insertions'][_0x2d066d],_0x5a1307=this['_getBaseVids'](_0x2ac367['deletions'][_0x2d066d]);let _0xdaf644=0x0;for(const _0x3f1aca of _0x142707){const _0x36a06c=this['_getVidAttributeName'](_0x3f1aca),_0x563e56=_0x3f1aca['item']['getAttribute'](_0x36a06c);if(!_0x2aba9d['has'](_0x563e56)&&!_0x5142e8['has'](_0x563e56)){if(_0x3a3f74['has'](_0x563e56))_0xdaf644++;else{if(_0x563e56!=_0x5a1307[_0xdaf644]){const _0x1a3738=_0x5603a8['get'](_0x563e56)||_0x5603a8['get'](_0x5a1307[_0xdaf644]);for(;_0x563e56!=_0x5a1307[_0xdaf644];)_0x3a3f74['has'](_0x5a1307[_0xdaf644])||(_0x5142e8['set'](_0x5a1307[_0xdaf644],_0x1a3738),_0x5603a8['set'](_0x5a1307[_0xdaf644],_0x1a3738)),_0xdaf644++;}_0xdaf644++;}}}}for(const _0x514189 of _0x31b95a){const _0x361552=_0x2ac367['insertions'][_0x514189];for(const _0x5bd466 of _0x361552){const _0x115f6b=this['_getVidAttributeName'](_0x5bd466),_0x8d198e=_0x5bd466['item']['getAttribute'](_0x115f6b);if(_0x5142e8['has'](_0x8d198e)){const _0x2df03e=_0x5142e8['get'](_0x8d198e);_0x3a3f74['has'](_0x8d198e)||_0x3a3f74['set'](_0x8d198e,{..._0x2df03e}),_0x2aba9d['set'](_0x8d198e,{..._0x2df03e});}}}for(const _0x417401 of _0x3a3f74['keys']())_0x417401>=this['_startingRevisionId']&&_0x3a3f74['delete'](_0x417401);const _0x4c9906=new Map();for(const _0x92b46d of _0x31b95a){let _0x2c11a7=_0x2ac367['insertions'][_0x92b46d];for(const _0x2b4a29 of _0x2c11a7)if(_0x2b4a29['item']['is']('element','tableCell')){const _0x4e67ad=this['_getVidAttributeName'](_0x2b4a29),_0x15adc1=_0x2b4a29['item']['getAttribute'](_0x4e67ad);if(_0x2aba9d['has'](_0x15adc1)){const _0x4ac459=_0x2b4a29['item']['parent']['parent']['getAttribute']('vid_start'),_0x5395e0=_0x4c9906['get'](_0x4ac459)||new Set();_0x5395e0['add'](_0x2aba9d['get'](_0x15adc1)['userId']),_0x4c9906['set'](_0x4ac459,_0x5395e0);}}_0x2c11a7=_0x2ac367['deletions'][_0x92b46d];for(const _0x5e2d16 of _0x2c11a7)if(_0x5e2d16['item']['is']('element','tableCell')){const _0x3c99b4=this['_getVidAttributeName'](_0x5e2d16),_0x5a94fd=_0x5e2d16['item']['getAttribute'](_0x3c99b4);if(_0x3a3f74['has'](_0x5a94fd)){const _0x3db419=_0x5e2d16['item']['parent']['parent']['getAttribute']('vid_start'),_0x1cddb5=_0x4c9906['get'](_0x3db419)||new Set();_0x1cddb5['add'](_0x3a3f74['get'](_0x5a94fd)['userId']),_0x4c9906['set'](_0x3db419,_0x1cddb5);}}for(const _0x316091 of _0x4c9906['keys']())(_0x2aba9d['has'](_0x316091)||_0x3a3f74['has'](_0x316091))&&_0x4c9906['delete'](_0x316091);}for(const _0x31a0d8 of _0x31b95a){const _0x6478d=_0x2ac367['insertions'][_0x31a0d8];let _0x357eaf=null,_0x441d6e=null;for(const _0x3741eb of _0x6478d){const _0x2ab52b=this['_getVidAttributeName'](_0x3741eb),_0xf964b6=_0x3741eb['item']['getAttribute'](_0x2ab52b),_0x232ba3=_0x4c9906['get'](_0xf964b6);_0x232ba3&&'elementStart'==_0x3741eb['type']&&(_0x357eaf=Array['from'](_0x232ba3)[0x0],_0x441d6e=_0x3741eb['item']['getAttribute']('vid_end')),_0x357eaf&&(_0x3a3f74['set'](_0xf964b6,{'userId':_0x357eaf}),_0x2aba9d['set'](_0xf964b6,{'userId':_0x357eaf})),_0xf964b6==_0x441d6e&&(_0x357eaf=null,_0x441d6e=null);}}const _0x457005={},_0x3cb76c=new Set();for(const _0x2dc393 of _0x31b95a){const _0x1ff38d=_0x282038['deletions'][_0x2dc393],_0x4af6fd=_0x282038['insertions'][_0x2dc393];for(const {userId:_0x52e0b0}of this['_touchedMarkers']['values']())null!==_0x52e0b0&&_0x3cb76c['add'](_0x52e0b0);for(const {userId:_0x3aa528}of this['_touchedRoots']['values']())null!==_0x3aa528&&_0x3cb76c['add'](_0x3aa528);this['_markChanges'](_0x4af6fd,_0x2ac367['insertions'][_0x2dc393],_0x2aba9d,'insertion',_0x3cb76c),this['_markChanges'](_0x1ff38d,_0x2ac367['deletions'][_0x2dc393],_0x3a3f74,'deletion',_0x3cb76c),_0x457005[_0x2dc393]={'insertions':this['_prepareViewToSave'](_0x4af6fd),'deletions':this['_prepareViewToSave'](_0x1ff38d),'attachChange':this['_touchedRoots']['get'](_0x2dc393)||null,'attributesBefore':_0xb2db8(this['_baseRootsAttributes']['get'](_0x2dc393))||{},'attributesAfter':_0xb2db8(this['_diffRootsAttributes']['get'](_0x2dc393))};}return{'diffData':_0x457005,'authorsIds':Array['from'](_0x3cb76c)};}['_processRootBeforeSave'](_0x1e4eb9){for(const [,_0x28f85]of _0x1e4eb9['markers']){const _0x1338b9=_0x28f85['start']['getAncestors']()['filter'](_0x451c72=>'tableCell'==_0x451c72['name']);for(const _0xcb45a7 of _0x1338b9)0x1==_0xcb45a7['childCount']&&_0xcb45a7['getChild'](0x0)['is']('element','paragraph')&&_0xcb45a7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5f1e1b){this['_processRootBeforeSave'](_0x5f1e1b);const _0x5532b5=this['editor']['data']['toView'](_0x5f1e1b,{}),_0x5753db=Array['from'](_0x5532b5['getChildren']())['map'](_0x59ed68=>this['_getViewJson'](_0x59ed68));return JSON['stringify'](_0x5753db);}['_getViewJson'](_0x1fa7ba){if(_0x1fa7ba['is']('$text'))return _0x1fa7ba['data'];{const _0x112a5a=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x475504=_0x1fa7ba,_0x3d1715=this['editor']['data']['htmlProcessor']['domConverter'],_0x3ff295={'type':_0x112a5a['_getTypeCharForViewElement'](_0x475504),'name':_0x475504['name'],'attributes':Array['from'](_0x475504['getAttributes']()),'children':Array['from'](_0x475504['getChildren']())['map'](_0x5cd0b0=>this['_getViewJson'](_0x5cd0b0))};if(_0x1fa7ba['is']('uiElement')&&'$comment'!=_0x1fa7ba['name']){const _0x458a1a=_0x1fa7ba['render'](_0x3d1715['domDocument'],_0x3d1715);_0x3ff295['children']['push'](_0x458a1a['outerHTML']);}else{if(_0x1fa7ba['is']('rawElement')){const _0x18e752=_0x3d1715['domDocument']['createElement'](_0x475504['name']);_0x1fa7ba['render'](_0x18e752,_0x3d1715),_0x3ff295['children']['push'](_0x18e752['innerHTML']);}}const _0x172d75=Array['from'](_0x475504['getCustomProperties']());_0x172d75['length']>0x0&&(_0x3ff295['customProperties']=_0x172d75);const _0x1f2135=_0x475504['getFillerOffset']();return null!==_0x1f2135&&(_0x3ff295['fillerOffset']=_0x1f2135),_0x3ff295;}}['_markChanges'](_0x596a41,_0x4170d1,_0x5c40b3,_0x3a9c82,_0x165273){let _0x40f476=null,_0x7e5fc4=null,_0x13935c=0x0;const _0x246f7a=this['editor']['model'];for(let _0x4fcf91=0x0;_0x4fcf91<_0x4170d1['length'];_0x4fcf91++){const _0x5839c3=this['_getVidAttributeName'](_0x4170d1[_0x4fcf91]),_0x5370b2=_0x4170d1[_0x4fcf91]['item']['getAttribute'](_0x5839c3),_0x517fc0=_0x5c40b3['get'](_0x5370b2),_0x4c420b=_0x4fcf91==_0x4170d1['length']-0x1;(!_0x40f476&&_0x517fc0&&(_0x40f476=_0x517fc0,_0x7e5fc4=_0x4170d1[_0x4fcf91]),_0x40f476&&(!_0x517fc0||_0x517fc0['userId']!=_0x40f476['userId']))&&(_0x5de8ea(_0x517fc0,P(_0x7e5fc4,_0x596a41,_0x246f7a),P(_0x4170d1[_0x4fcf91],_0x596a41,_0x246f7a)),_0x40f476=_0x517fc0||null,_0x7e5fc4=_0x517fc0?_0x4170d1[_0x4fcf91]:null),_0x40f476&&_0x4c420b&&_0x5de8ea(_0x517fc0,P(_0x7e5fc4,_0x596a41,_0x246f7a),V(_0x4170d1[_0x4fcf91],_0x596a41,_0x246f7a));}function _0x5de8ea(_0x17924d,_0x3931b3,_0xb4b9cb){const _0x34a649=_0x40f476['userId'],_0x1e1433='revision:'+_0x3a9c82+':'+_0x34a649+':'+_0x13935c++,_0x2e584d=_0x246f7a['createRange'](_0x3931b3,_0xb4b9cb);_0x596a41['markers']['set'](_0x1e1433,_0x2e584d),null!==_0x34a649&&_0x165273['add'](_0x34a649);}}['_getVidAttributeName'](_0x3843cd){switch(_0x3843cd['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2a1c1c,_0x81f87e){_0x2a1c1c['baseVersion']=null;for(const _0x535b6f in _0x2a1c1c){const _0x4f3749=_0x2a1c1c[_0x535b6f];if(_0x4f3749 instanceof _0x2c240b){const _0x12cecd=_0x81f87e['get'](_0x4f3749['root']['rootName']);_0x2a1c1c[_0x535b6f]=this['_fixPosition'](_0x4f3749,_0x12cecd);}if(_0x4f3749 instanceof _0x49d459){const _0x4be2c9=_0x81f87e['get'](_0x4f3749['root']['rootName']);_0x2a1c1c[_0x535b6f]=this['_fixRange'](_0x4f3749,_0x4be2c9);}'root'===_0x535b6f&&(_0x2a1c1c['root']=_0x81f87e['get'](_0x2a1c1c['root']['rootName']));}}['_fixRange'](_0x2be69e,_0x1238b3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2be69e['start'],_0x1238b3),this['_fixPosition'](_0x2be69e['end'],_0x1238b3));}['_fixPosition'](_0x5b384f,_0x358590){return this['editor']['model']['createPositionFromPath'](_0x358590,_0x5b384f['path'],_0x5b384f['stickiness']);}['_handleInsertOperation'](_0x2ee3d4){const _0x3a9382=this['_idsRoots']['get'](_0x2ee3d4['position']['root']['rootName']),_0x4f8201=this['_fixPosition'](_0x2ee3d4['position'],_0x3a9382),_0x56561e=null===_0x2ee3d4['_authorId']?null:_0x2ee3d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x459d3c=_0x4f8201['parent'],_0x5762b7=this['_revisionId'],_0x1c3fcc=[];for(const _0x155237 of _0x2ee3d4['nodes'])if(_0x155237['is']('element'))_0x1c3fcc['push'](this['_makeIdsRoot'](_0x155237));else{for(let _0x3a8e7c=0x0;_0x3a8e7c<_0x155237['offsetSize'];_0x3a8e7c++)_0x1c3fcc['push'](new _0x467cfa('$text',{'vid':this['_revisionId']++}));}const _0x42e529=this['_revisionId'];for(let _0x4b9b8a=_0x5762b7;_0x4b9b8a<_0x42e529;_0x4b9b8a++)this['_touched']['set'](_0x4b9b8a,{'userId':_0x56561e});_0x459d3c['_insertChild'](_0x4f8201['offset'],_0x1c3fcc);}['_handleMoveOperation'](_0x3732c4){(_0x3732c4=this['_cloneOperation'](_0x3732c4,this['_idsRoots']))['_execute']();const _0xa5bbf4=null===_0x3732c4['_authorId']?null:_0x3732c4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x111c57=_0x3732c4['getMovedRangeStart'](),_0x3d9bb2=_0x111c57['parent'],_0x464a82=_0x111c57['offset'];!function _0x4bdacb(_0x53e3f3,_0x181fc9,_0x2e3489,_0x4a3af0){for(let _0x36d592=_0x2e3489;_0x36d592<_0x4a3af0;_0x36d592++){const _0x5e78ef=_0x181fc9['getChild'](_0x36d592);_0x5e78ef['is']('element','$text')?_0x53e3f3['set'](_0x5e78ef['getAttribute']('vid'),{'userId':_0xa5bbf4}):(_0x53e3f3['set'](_0x5e78ef['getAttribute']('vid_start'),{'userId':_0xa5bbf4}),_0x4bdacb(_0x53e3f3,_0x5e78ef,0x0,_0x5e78ef['childCount']),_0x53e3f3['set'](_0x5e78ef['getAttribute']('vid_end'),{'userId':_0xa5bbf4}));}}(this['_touched'],_0x3d9bb2,_0x464a82,_0x464a82+_0x3732c4['howMany']);}['_handleMergeOperation'](_0x28da61){const _0x36620d=null===(_0x28da61=this['_cloneOperation'](_0x28da61,this['_idsRoots']))['_authorId']?null:_0x28da61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x421f15=_0x28da61['targetPosition']['parent'],_0x5ed35e=_0x28da61['sourcePosition']['parent'],_0x27173f=_0x421f15['getAttribute']('vid_end'),_0x1cf939=_0x5ed35e['getAttribute']('vid_start');_0x421f15['_setAttribute']('vid_end',_0x5ed35e['getAttribute']('vid_end')),_0x5ed35e['_setAttribute']('vid_end',_0x27173f),this['_touched']['set'](_0x1cf939,{'userId':_0x36620d}),this['_touched']['set'](_0x27173f,{'userId':_0x36620d}),_0x28da61['_execute']();}['_handleSplitOperation'](_0x3e83c9){const _0x304df7=null===(_0x3e83c9=this['_cloneOperation'](_0x3e83c9,this['_idsRoots']))['_authorId']?null:_0x3e83c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11b609=_0x3e83c9['graveyardPosition'],_0x134dbe=_0x3e83c9['splitPosition']['parent'];_0x3e83c9['_execute']();const _0x5d3bce=_0x134dbe['getAttribute']('vid_end'),_0xbf2ff0=_0x3e83c9['insertionPosition']['nodeAfter'];if(_0x11b609){const _0x22463c=_0xbf2ff0['getAttribute']('vid_end'),_0x5141aa=_0x134dbe['getAttribute']('vid_end');_0x134dbe['_setAttribute']('vid_end',_0x22463c),_0xbf2ff0['_setAttribute']('vid_end',_0x5141aa),this['_touched']['set'](_0x134dbe['getAttribute']('vid_end'),{'userId':_0x304df7}),this['_touched']['set'](_0xbf2ff0['getAttribute']('vid_start'),{'userId':_0x304df7});}else{const _0x49ca2a=this['_revisionId']++,_0x281e53=this['_revisionId']++;_0x134dbe['_setAttribute']('vid_end',_0x49ca2a),_0xbf2ff0['_setAttribute']('vid_start',_0x281e53),_0xbf2ff0['_setAttribute']('vid_end',_0x5d3bce),this['_touched']['set'](_0x49ca2a,{'userId':_0x304df7}),this['_touched']['set'](_0x281e53,{'userId':_0x304df7});}}['_handleMarkerOperation'](_0x46c57d){if(!_0x46c57d['affectsData'])return;const _0x55260b=(_0x46c57d=this['_cloneOperation'](_0x46c57d,this['_diffRoots']))['oldRange']?_0x46c57d['oldRange']['root']:null,_0x4a2e30=_0x46c57d['newRange']?_0x46c57d['newRange']['root']:null;_0x55260b&&this['_markers']['delete'](_0x46c57d['name']),_0x4a2e30&&this['_markers']['set'](_0x46c57d['name'],_0x46c57d['newRange']['clone']());const _0x41ea5b=null===_0x46c57d['_authorId']?null:_0x46c57d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xd4055f=_0x46c57d['name'];if(!this['_touchedMarkers']['has'](_0xd4055f))return void this['_touchedMarkers']['set'](_0xd4055f,{'range':_0x46c57d['oldRange'],'userId':_0x41ea5b});const _0x2f19bb=this['_touchedMarkers']['get'](_0xd4055f),_0x520fc1=_0x2f19bb['range'],_0x4408fb=_0x46c57d['newRange'];null==_0x520fc1&&null==_0x4408fb||_0x520fc1&&_0x4408fb&&_0x520fc1['isEqual'](_0x4408fb)?this['_touchedMarkers']['delete'](_0x46c57d['name']):_0x2f19bb['userId']=_0x41ea5b;}['_handleRootOperation'](_0x2d2d00,_0x17928d){this['_diffRoots']['has'](_0x2d2d00['rootName'])?this['_diffRoots']['get'](_0x2d2d00['rootName'])['_isAttached']=_0x2d2d00['isAdd']:(this['_diffRoots']['set'](_0x2d2d00['rootName'],N(_0x2d2d00['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2d2d00['rootName'],{}),_0x17928d&&this['_idsRoots']['set'](_0x2d2d00['rootName'],N(_0x2d2d00['rootName'],!0x0)));const _0xd19021=null===_0x2d2d00['_authorId']?null:_0x2d2d00['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ac2c5=this['_touchedRoots']['get'](_0x2d2d00['rootName']);_0x3ac2c5&&_0x3ac2c5['userId']===_0xd19021?this['_touchedRoots']['delete'](_0x2d2d00['rootName']):this['_touchedRoots']['set'](_0x2d2d00['rootName'],{'userId':_0xd19021,'isAttached':_0x2d2d00['isAdd']});}['_handleRootAttributeOperation'](_0x59a673){const _0x4c0b48=this['_diffRootsAttributes']['get'](_0x59a673['root']['rootName']);null===_0x59a673['newValue']?delete _0x4c0b48[_0x59a673['key']]:_0x4c0b48[_0x59a673['key']]=_0x59a673['newValue'];}}function x(_0x328bb7){const _0x204cf3=N(_0x328bb7['rootName'],_0x328bb7['isAttached']());for(const _0x28a515 of _0x328bb7['getChildren']()){const _0x3d73dd=_0x28a515['_clone'](!0x0);_0x204cf3['_appendChild'](_0x3d73dd);}return _0x204cf3;}function N(_0x39bdee,_0xa090a2=!0x0){const _0x4a89f4=new _0xbdee0c();return _0x4a89f4['rootName']=_0x39bdee,_0x4a89f4['_isAttached']=_0xa090a2,_0x4a89f4['isAttached']=()=>_0x4a89f4['_isAttached'],_0x4a89f4;}function P(_0x2ab7d2,_0xcab69a,_0x585827){const _0x126f4a='elementEnd'==_0x2ab7d2['type']?_0x585827['createPositionAt'](_0x2ab7d2['item'],'end'):_0x585827['createPositionBefore'](_0x2ab7d2['item']);return _0x585827['createPositionFromPath'](_0xcab69a,_0x126f4a['path'],_0x126f4a['stickiness']);}function V(_0x490e15,_0xcab05e,_0x57bc24){const _0x2d69a7='elementStart'==_0x490e15['type']?_0x57bc24['createPositionAt'](_0x490e15['item'],0x0):_0x57bc24['createPositionAfter'](_0x490e15['item']);return _0x57bc24['createPositionFromPath'](_0xcab05e,_0x2d69a7['path'],_0x2d69a7['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3560c6(_0x2a78ea){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x34f944,_0x3d6d93){super(_0x34f944),this['focusTracker']=new _0x5edae5(),this['keystrokes']=new _0x354688(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3d6d93),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'](),_0x301d30({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x13f522=_0x247a89=>_0x247a89['stopPropagation']();this['keystrokes']['set']('arrowright',_0x13f522),this['keystrokes']['set']('arrowleft',_0x13f522),this['keystrokes']['set']('arrowup',_0x13f522),this['keystrokes']['set']('arrowdown',_0x13f522);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x173959){this['revisionNameInputView']['fieldView']['element']['value']=_0x173959['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x12e2d4){const _0x22d1a7=new et(this['locale'],ti),_0xa1bd49=_0x22d1a7['fieldView'];_0xa1bd49['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2f45f6=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x12e2d4&&(_0x2f45f6+='\x20('+m(this['locale'],'optional')+')'),(_0x22d1a7['label']=_0x2f45f6,_0xa1bd49['on']('input',()=>{this['revisionNameInputValue']=_0xa1bd49['element']['value']['trim']();}),_0x22d1a7);}}class l extends _0x437c77{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1e1f54=this['editor'],_0x4c5501=_0x1e1f54['plugins']['get']('RevisionTracker');_0x1e1f54['ui']['componentFactory']['add']('revisionHistory',_0x752226=>{const _0x17466d=_0x2676c3(_0x752226),_0x53b20d=_0x17466d['panelView']['children'],_0x4a796b=new _0x15824c(_0x752226),_0x2b3304=new _0x3054ac(_0x752226),_0x1fe766=new _0x4c4445(_0x752226),_0x52cc8a=new _0x3054ac(_0x752226),_0x2a502=new _0x4c4445(_0x752226);return _0x17466d['bind']('isEnabled')['to'](_0x4c5501,'isReady',_0x4c5501,'isEnabled',_0x1e1f54,'isReadOnly',(_0x3d1636,_0x47953c,_0x12e0d1)=>_0x3d1636&&_0x47953c&&!_0x12e0d1),_0x17466d['buttonView']['set']({'icon':_0x3dc43c,'label':m(_0x752226,'Revision\x20history'),'tooltip':!0x0}),_0x1fe766['set']({'label':m(_0x752226,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1fe766['bind']('isEnabled')['to'](_0x4c5501,'isReady',_0x4c5501,'isEnabled',_0x1e1f54,'isReadOnly',(_0x1db874,_0x513d3f,_0x383c93)=>_0x1db874&&_0x513d3f&&!_0x383c93),_0x1fe766['on']('execute',()=>this['_showDialog']()),_0x2a502['set']({'label':m(_0x752226,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2a502['bind']('isEnabled')['to'](_0x4c5501,'isReady',_0x1e1f54,'isReadOnly',(_0x2c4f17,_0x463213)=>_0x2c4f17&&!_0x463213),_0x2a502['on']('execute',()=>{_0x1e1f54['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x17466d['isOpen']=!0x1,_0x1e1f54['editing']['view']['focus']();}),_0x2b3304['children']['add'](_0x1fe766),_0x52cc8a['children']['add'](_0x2a502),_0x4a796b['role']='menu',_0x4a796b['items']['addMany']([_0x2b3304,_0x52cc8a]),_0x53b20d['add'](_0x4a796b),_0x17466d;}),_0x1e1f54['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x320da7=this['editor'],_0x49d3fd=_0x320da7['locale'],_0x4b716b=new _0x34fd27(_0x49d3fd),_0x1cf9c0=new _0x2ddecd(_0x49d3fd);_0x4b716b['buttonView']['set']({'icon':_0x3dc43c,'label':m(_0x49d3fd,'Revision\x20history')});const _0x2b3c8d=new _0x456bf8(_0x49d3fd,_0x4b716b),_0xec7e2a=new _0x590fd1(_0x49d3fd);_0xec7e2a['set']({'label':m(_0x49d3fd,'Save\x20current\x20revision')}),_0xec7e2a['delegate']('execute')['to'](_0x4b716b),_0xec7e2a['on']('execute',()=>{this['_showDialog']();}),_0x2b3c8d['children']['add'](_0xec7e2a),_0x1cf9c0['items']['add'](_0x2b3c8d);const _0x5f12f3=new _0x456bf8(_0x49d3fd,_0x4b716b),_0x236955=new _0x590fd1(_0x49d3fd);return _0x236955['set']({'label':m(_0x49d3fd,'Open\x20revision\x20history')}),_0x236955['delegate']('execute')['to'](_0x4b716b),_0x236955['on']('execute',()=>{_0x320da7['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5f12f3['children']['add'](_0x236955),_0x1cf9c0['items']['add'](_0x5f12f3),_0x4b716b['panelView']['children']['add'](_0x1cf9c0),_0x4b716b;}['_showDialog'](){const _0x4cd3ce=this['editor'],_0x315e0c=_0x4cd3ce['locale'],_0x4d1e98=_0x4cd3ce['plugins']['get']('Dialog'),_0x18f2f2=_0x4cd3ce['plugins']['get']('RevisionTracker');function _0xe2e24b(_0x4d29a6){_0x4cd3ce['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4d29a6['revisionName']?_0x4d29a6['revisionNameInputView']['errorText']=m(_0x315e0c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4cd3ce['plugins']['get'](h)['saveRevision']({'name':_0x4d29a6['revisionName']}),_0x4d1e98['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xe2e24b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4d1e98['show']({'id':'revisionSave','title':m(_0x315e0c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x4cd3ce['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4d1e98['hide']()},{'label':m(_0x4cd3ce['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x322b8c){_0x322b8c['bind']('isEnabled')['to'](_0x18f2f2,'isReady',_0x18f2f2,'isEnabled',_0x4cd3ce,'isReadOnly',(_0x593749,_0x33ba7e,_0x519a67)=>_0x593749&&_0x33ba7e&&!_0x519a67);},'onExecute':()=>_0xe2e24b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3e593f=this['editor'],_0x4248c8=_0x3e593f['locale'];this['_saveRevisionFormView']=new me(_0x4248c8,_0x3e593f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2a78ea{['changeId'];['_model'];constructor(_0x19f265,_0x47d4af){super(_0x19f265),this['_model']=_0x47d4af,this['changeId']=_0x47d4af['id'];const _0x82a973=this['bindTemplate'],_0x162929=m(_0x19f265,_0x47d4af['data']['isSuggestion']?'Suggested\x20by':'add'==_0x47d4af['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x47d4af['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x82a973['to']('type',_0x71e44b=>'ck-revision-change__'+_0x71e44b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x162929}]},{'text':'\x20'+_0x47d4af['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x28c99b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x435d17){super(),this['id']=_0x435d17['id']||_0x544ff4(),this['author']=_0x435d17['author'],this['type']=_0x435d17['type'],this['data']=_0x435d17['data']||{},this['rootName']=_0x435d17['rootName'],this['set']('createdAt',_0x435d17['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(_0x11462f,_0x21a2d7){this['newRevisionId']=_0x11462f,this['oldRevisionId']=_0x21a2d7,this['changes']=new _0x292637();}['_setChanges'](_0x1e1825){for(const _0x146039 of _0x1e1825)this['changes']['add'](_0x146039);}}class u extends _0x437c77{['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[_0xefcee4,_0x2cef43,S,$];}constructor(_0x1ad5ad){super(_0x1ad5ad),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',(_0x57e819,_0x1b6ba2,_0x55e098)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x129db4=>{for(const _0x157236 of this['editor']['editing']['view']['document']['roots'])_0x55e098?_0x129db4['removeClass']('ck-editor__editable__overlay',_0x157236):_0x129db4['addClass']('ck-editor__editable__overlay',_0x157236);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x504c68=>null!==_0x504c68),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x836109,_0x5414da,_0x4cf085)=>_0x836109&&_0x4cf085?_0x5414da['changes']['getIndex'](_0x4cf085):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x58c8c4,_0x590b24)=>_0x58c8c4?_0x590b24['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2cef43);}['init'](){const _0x5b546b=this['editor'],_0x253451=new rt(_0x5b546b,{'direction':'backward'}),_0x16e0fa=new rt(_0x5b546b,{'direction':'forward'});(_0x5b546b['commands']['add']('showPreviousChange',_0x253451),_0x5b546b['commands']['add']('showNextChange',_0x16e0fa),_0x5b546b['commands']['add']('restoreRevision',new nt(_0x5b546b)),this['on']('change:numberOfChanges',()=>{_0x253451['refresh'](),_0x16e0fa['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5b546b['enableReadOnlyMode']('revision-viewer'),_0x5b546b['plugins']['has']('WidgetToolbarRepository'))&&_0x5b546b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1c815c){return await this['_utils']['loadRevisionData'](_0x1c815c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1c815c);}async['getRevisionRootsAttributes'](_0x97793c){return await this['_utils']['loadRevisionData'](_0x97793c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x97793c);}async['compare'](_0x5a4e92,_0x181d8f,_0x39b6de=!0x1){if(!this['isEnabled'])return;const _0x224551=this['diff'],_0x4531aa=this['repository'],_0x4a2260='string'==typeof _0x5a4e92?_0x4531aa['getRevision'](_0x5a4e92):_0x5a4e92,_0x4b9f93='string'==typeof _0x181d8f?_0x4531aa['getRevision'](_0x181d8f):_0x181d8f,_0x1479f1=_0x4a2260['id'],_0x5d99a8=_0x4b9f93?_0x4b9f93['id']:null;if(!_0x39b6de&&this['diff']&&this['diff']['newRevisionId']===_0x1479f1&&this['diff']['oldRevisionId']===_0x5d99a8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x1479f1,_0x5d99a8);const _0x4afea=this['_getRevisionsRange'](_0x4a2260,_0x4b9f93,!0x0)['map'](_0x180a3b=>this['_utils']['loadRevisionData'](_0x180a3b,this['adapter']));return _0x4afea['push'](new Promise(_0x53afec=>{setTimeout(_0x53afec,0x14);})),Promise['all'](_0x4afea)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1a1a46=this['_getDiff'](_0x1479f1,_0x5d99a8);for(const _0x3b09b3 of _0x1a1a46['changes'])this['_changeIdToChange']['set'](_0x3b09b3['id'],_0x3b09b3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x65d402=>{for(const _0x2cb955 of this['editor']['model']['document']['getRootNames']())_0x65d402['detachRoot'](_0x2cb955);for(const _0x58cea9 of Object['keys'](_0x1a1a46['model'])){const _0xce1475=_0x65d402['addRoot'](_0x58cea9);for(const _0x448827 of Object['keys'](_0x1a1a46['attributes'][_0x58cea9]))_0x65d402['setAttribute'](_0x448827,_0x1a1a46['attributes'][_0x58cea9][_0x448827],_0xce1475);_0x65d402['insert'](_0x1a1a46['model'][_0x58cea9],_0xce1475,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1a1a46['changes'])),this['isReady']=!0x0;})['catch'](_0x2d0743=>{console['error'](_0x2d0743),this['_cleanUp'](),_0x224551&&(this['diff']=_0x224551),this['isReady']=!0x0;});}['addRevisionData'](_0x3b671c,_0x41d47e){const _0x192ff6=this['repository']['createRevision'](_0x3b671c);return _0x192ff6['on']('_update',(_0x388f93,_0x10e44d,_0x2d8e49)=>_0x41d47e(_0x10e44d,_0x2d8e49,_0x192ff6)),this['repository']['addRevision'](_0x192ff6),_0x192ff6;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e7ddd=>{for(const _0x276ef4 of this['editor']['model']['document']['getRootNames']())_0x3e7ddd['detachRoot'](_0x276ef4);});}['_sortAndFilterDiffChanges'](_0x2d44f8){const _0x2ee0b0=[],_0x12d0eb=new Map();for(const _0x5ed638 of this['editor']['model']['document']['getRootNames']()){const _0x12f16d=this['editor']['editing']['view']['getDomRoot'](_0x5ed638);if(!_0x12f16d)continue;const _0x3eb18c=_0x12f16d['getClientRects']()['item'](0x0);_0x3eb18c&&(_0x2ee0b0['push'](_0x5ed638),_0x12d0eb['set'](_0x5ed638,_0x3eb18c));}return _0x2ee0b0['sort']((_0x50cfcd,_0x429035)=>{const _0x43f7e9=_0x12d0eb['get'](_0x50cfcd),_0x497914=_0x12d0eb['get'](_0x429035);return _0x43f7e9['y']-_0x497914['y']||_0x43f7e9['x']-_0x497914['x'];}),(_0x2d44f8=_0x2d44f8['filter'](_0x43c442=>_0x2ee0b0['includes'](_0x43c442['rootName'])))['sort']((_0x4f66ce,_0x14e7ab)=>_0x2ee0b0['indexOf'](_0x4f66ce['rootName'])-_0x2ee0b0['indexOf'](_0x14e7ab['rootName'])),_0x2d44f8;}['_makeTape'](_0x5f3604){const _0x51c2ef=Array['from'](_0x5f3604['markers'])['filter'](([_0x382c6f,_0xfa03a2])=>_0x382c6f['startsWith']('revision:')&&!_0xfa03a2['isCollapsed']),_0x3e9ffa=Array['from'](this['editor']['model']['createRangeIn'](_0x5f3604)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x51c2ef['length'])for(const _0xcf906c of _0x3e9ffa){const [_0x2cdc4a,_0x316cc9]=_0x51c2ef[0x0],[,_0x2f28a8,_0x45ac15]=_0x2cdc4a['split'](':');if(_0x316cc9['end']['isEqual'](_0xcf906c['nextPosition'])&&_0x51c2ef['shift'](),(_0xcf906c['previousPosition']['isEqual'](_0x316cc9['start'])||_0xcf906c['previousPosition']['isAfter'](_0x316cc9['start']))&&('insertion'==_0x2f28a8?_0xcf906c['isAdded']={'userId':_0x45ac15}:'deletion'==_0x2f28a8&&(_0xcf906c['isRemoved']={'userId':_0x45ac15})),0x0==_0x51c2ef['length'])break;}return _0x3e9ffa;}['_refreshStartEndIndex'](_0x30077b){const _0x511f9f=new Map();for(let _0x274ebe=0x0;_0x274ebe<_0x30077b['length'];_0x274ebe++)'text'===_0x30077b[_0x274ebe]['type']?(_0x30077b[_0x274ebe]['item']['startIndex']=_0x274ebe,_0x30077b[_0x274ebe]['item']['endIndex']=_0x274ebe):('elementStart'===_0x30077b[_0x274ebe]['type']?_0x30077b[_0x274ebe]['item']['startIndex']=_0x274ebe:'elementEnd'===_0x30077b[_0x274ebe]['type']&&(_0x30077b[_0x274ebe]['item']['endIndex']=_0x274ebe),_0x511f9f['set'](_0x30077b[_0x274ebe]['id'],_0x274ebe));for(const _0x1dfd49 of _0x511f9f['values']())'elementStart'===_0x30077b[_0x1dfd49]['type']?_0x30077b[_0x1dfd49]['item']['endIndex']=_0x511f9f['get'](_0x30077b[_0x1dfd49]['pairId']):'elementEnd'===_0x30077b[_0x1dfd49]['type']&&(_0x30077b[_0x1dfd49]['item']['startIndex']=_0x511f9f['get'](_0x30077b[_0x1dfd49]['pairId']));}['_processTape'](_0x5aae72){for(let _0x52b495=0x0;_0x52b495<_0x5aae72['length'];_0x52b495++){if('elementStart'===_0x5aae72[_0x52b495]['type'])_0x5aae72[_0x52b495]['item']['startIndex']=_0x52b495;else{if('elementEnd'===_0x5aae72[_0x52b495]['type']){_0x5aae72[_0x52b495]['item']['endIndex']=_0x52b495;const _0x582675=_0x5aae72[_0x52b495]['item']['startIndex'];_0x5aae72[_0x582675]['pairId']=_0x5aae72[_0x52b495]['id'],_0x5aae72[_0x52b495]['pairId']=_0x5aae72[_0x582675]['id'];}else _0x5aae72[_0x52b495]['item']['startIndex']=_0x52b495,_0x5aae72[_0x52b495]['item']['endIndex']=_0x52b495,_0x5aae72[_0x52b495]['pairId']=null;}_0x5aae72[_0x52b495]['markersStart']||(_0x5aae72[_0x52b495]['markersStart']=[],_0x5aae72[_0x52b495]['markersEnd']=[]);}}['_markInsertions'](_0x59d751,_0x27620f){const _0x103aeb=_0x59d751['filter'](_0x4877b5=>!_0x4877b5['isAdded']);for(let _0x276ae0=0x0;_0x276ae0<_0x27620f['length'];_0x276ae0++)_0x27620f[_0x276ae0]['isAdded']&&(_0x103aeb[_0x276ae0]['isAdded']=_0x27620f[_0x276ae0]['isAdded']);}['_getDiff'](_0x400512,_0x14c1f5=null){const _0x2147b3=this['repository']['getRevision'](_0x400512),_0x19d1f3=_0x14c1f5?this['repository']['getRevision'](_0x14c1f5):null,_0x2c1a5a=this['_getRevisionsRange'](_0x2147b3,_0x19d1f3),_0x8965e2=_0x2c1a5a[_0x2c1a5a['length']-0x1],_0x5af15f=new Map(),_0x4fa546={'model':{},'attributes':{},'changes':[]},_0x1f53a7=new Set(),_0x7a7a45=new Map();for(let _0x2c9b47=_0x2c1a5a['length']-0x1;_0x2c9b47>=0x0;_0x2c9b47--){const _0x2e033f=_0x2c1a5a[_0x2c9b47];for(const _0x5ac442 of Object['keys'](_0x2e033f['diffData']))if(_0x2e033f['diffData'][_0x5ac442]['attachChange']){const _0x96842f=_0x2e033f['diffData'][_0x5ac442]['attachChange'];_0x96842f['isAttached']?(_0x1f53a7['add'](_0x5ac442),_0x7a7a45['has'](_0x5ac442)&&_0x7a7a45['get'](_0x5ac442)['userId']==_0x96842f['userId']?_0x7a7a45['delete'](_0x5ac442):_0x7a7a45['set'](_0x5ac442,_0x96842f)):_0x7a7a45['has'](_0x5ac442)?(_0x1f53a7['delete'](_0x5ac442),_0x7a7a45['delete'](_0x5ac442)):(_0x1f53a7['add'](_0x5ac442),_0x7a7a45['set'](_0x5ac442,_0x96842f));}else _0x1f53a7['add'](_0x5ac442);}for(const _0x3698f1 of _0x1f53a7){const _0x40244a=_0x7a7a45['has'](_0x3698f1)&&!_0x7a7a45['get'](_0x3698f1)['isAttached'];let _0x235bcd=_0x40244a?_0x2c1a5a['length']-0x1:0x0;const _0x1bf926=_0x40244a?-0x1:0x1;for(;_0x2c1a5a[_0x235bcd];){const _0x580a61=_0x2c1a5a[_0x235bcd];if(_0x580a61['diffData'][_0x3698f1]){const _0x36e0a4=_0x40244a?_0x580a61['diffData'][_0x3698f1]['attributesBefore']:_0x580a61['diffData'][_0x3698f1]['attributesAfter'];_0x4fa546['attributes'][_0x3698f1]=_0x36e0a4?_0xb2db8(_0x36e0a4):{};break;}_0x235bcd+=_0x1bf926;}}for(const _0x3cdf51 of _0x2c1a5a){_0x3cdf51['model']={};for(const _0x48fcda of _0x3cdf51['authors'])_0x5af15f['set'](_0x48fcda['id'],_0x48fcda);for(const _0x1dc347 of _0x1f53a7){const _0x4ca729=_0x3cdf51['diffData'][_0x1dc347]?_0x3cdf51['diffData'][_0x1dc347]['insertions']:'[]',_0x46af23=_0x3cdf51['diffData'][_0x1dc347]?_0x3cdf51['diffData'][_0x1dc347]['deletions']:'[]';_0x3cdf51['model'][_0x1dc347]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4ca729),'deletions':this['_utils']['_makeModelFromViewString'](_0x46af23)};}}for(const _0x18ee2b of _0x1f53a7){let _0x3d50c6=null,_0x39fd93=0x0;const _0x299d7f=new Map(Array['from'](_0x2147b3['model'][_0x18ee2b]['insertions']['markers'])['filter'](([_0xb0efd2])=>!_0xb0efd2['startsWith']('revision:')));let _0x16b01b=0x0;for(const _0x5169ec of _0x2c1a5a){const _0x3466c9=this['_makeTape'](_0x5169ec['model'][_0x18ee2b]['insertions']);_0x5169ec==_0x2147b3?(_0x3d50c6=_0x3466c9,_0x39fd93=_0x3d50c6['length'],_0x3d50c6['forEach'](_0x55c307=>{_0x55c307['id']=_0x16b01b++;}),this['_processTape'](_0x3d50c6)):this['_markInsertions'](_0x3d50c6,_0x3466c9);const _0x361515=_0x3d50c6['filter'](_0x4c4090=>!_0x4c4090['isAdded'])['map'](_0x54f842=>_0x54f842['id']);let _0x372bda=0x0;const _0x3eb5e0=this['_makeTape'](_0x5169ec['model'][_0x18ee2b]['deletions']);_0x3eb5e0['forEach'](_0x2807e4=>{_0x2807e4['isRemoved']?_0x2807e4['id']=_0x39fd93++:_0x2807e4['id']=_0x361515[_0x372bda++];}),this['_processTape'](_0x3eb5e0),this['_setDistance'](_0x3d50c6,'isAdded'),this['_setDistance'](_0x3eb5e0,'isRemoved'),_0x5169ec==_0x2147b3&&this['_markMarkers'](_0x3d50c6,_0x299d7f),_0x3d50c6=this['_joinTapes'](_0x3d50c6,_0x3eb5e0),this['_refreshStartEndIndex'](_0x3d50c6),this['_setDistance'](_0x3d50c6,'isRemoved');}_0x3d50c6=_0x3d50c6['filter'](_0x1ecfb3=>!(_0x1ecfb3['isAdded']&&_0x1ecfb3['isRemoved']));const _0x5562e7=new Map(_0x8965e2['model'][_0x18ee2b]['deletions']['markers']),_0x1fb962=new Set(_0x299d7f['keys']());for(const _0x860d5d of _0x5562e7['keys']())_0x1fb962['delete'](_0x860d5d);this['_markSuggestions'](_0x3d50c6,_0x1fb962),this['_fixObsoleteTags'](_0x3d50c6),_0x3d50c6=this['_removeMissingPairs'](_0x3d50c6),_0x3d50c6=this['_markMismatchedRemovedTags'](_0x3d50c6),_0x3d50c6=this['_removeUnsupportedChanges'](_0x3d50c6);const {root:_0x3a58a2,changes:_0x5967b5}=this['_makeModelFromTape'](_0x3d50c6,_0x5af15f,_0x18ee2b);_0x4fa546['model'][_0x18ee2b]=_0x3a58a2;const _0x1de2d5=_0x7a7a45['get'](_0x18ee2b);if(_0x1de2d5){const _0x548cad=_0x5af15f['get'](_0x1de2d5['userId']),_0xef6535=new G({'author':_0x548cad,'type':_0x1de2d5['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x18ee2b});_0x5967b5['unshift'](_0xef6535),_0x4fa546['attributes'][_0x18ee2b]['revisionHistoryAttachChange']=_0xef6535['id'];}_0x4fa546['changes']=_0x4fa546['changes']['concat'](_0x5967b5);}return _0x4fa546;}['_markMarkers'](_0x10d503,_0x11041a){for(let _0x505aa4=0x0;_0x505aa4<_0x10d503['length'];_0x505aa4++)for(const [_0xb8fe5,_0x336c7d]of _0x11041a)!_0x336c7d['isCollapsed']&&_0x336c7d['start']['isEqual'](_0x10d503[_0x505aa4]['previousPosition'])&&_0x10d503[_0x505aa4]['markersStart']['push'](_0xb8fe5),_0x336c7d['end']['isEqual'](_0x10d503[_0x505aa4]['nextPosition'])&&_0x10d503[_0x505aa4]['markersEnd']['push'](_0xb8fe5);}['_joinTapes'](_0x205d03,_0xfcc39c){let _0x59ba49=[],_0x16ac16=0x0,_0x806341=0x0;for(;_0x16ac16<_0x205d03['length']||_0x806341<_0xfcc39c['length'];){const _0x2a7a51=_0x205d03[_0x16ac16]||{},_0x5d2fc8=_0xfcc39c[_0x806341]||{};if(_0x2a7a51['id']==_0x5d2fc8['id'])_0x16ac16++,_0x806341++,_0x59ba49['push'](_0x2a7a51);else{if(_0x5d2fc8['isRemoved']&&_0x2a7a51['isAdded']){const {commonTape:_0x3d7444,iEnd:_0x241cd7,jEnd:_0x36ae43}=this['_threeWayMerge'](_0x205d03,_0x16ac16,_0xfcc39c,_0x806341);_0x59ba49=_0x59ba49['concat'](_0x3d7444),_0x16ac16=_0x241cd7,_0x806341=_0x36ae43;}else _0x5d2fc8['isRemoved']?(_0x806341++,_0x59ba49['push'](_0x5d2fc8)):(_0x16ac16++,_0x59ba49['push'](_0x2a7a51));}}return _0x59ba49;}['_markSuggestions'](_0x50577f,_0x268a93){const _0x4e678d=[];for(let _0x1f7aff=0x0;_0x1f7aff<_0x50577f['length'];_0x1f7aff++){for(let _0x467bae=0x0;_0x467bae<_0x50577f[_0x1f7aff]['markersStart']['length'];_0x467bae++){const _0x13bedf=_0x50577f[_0x1f7aff]['markersStart'][_0x467bae];if(!_0x268a93['has'](_0x13bedf))continue;const {group:_0x15f6bc,type:_0x31c41c,authorId:_0x3dbcc0}=_0x4d552c(_0x13bedf);'revision-suggestion'!=_0x15f6bc||'insertion'!=_0x31c41c&&'deletion'!=_0x31c41c||(_0x4e678d['unshift']({'type':_0x31c41c,'name':_0x13bedf,'userId':_0x3dbcc0}),_0x50577f[_0x1f7aff]['markersStart']['splice'](_0x467bae,0x1),_0x467bae--);}_0x1f5876(_0x50577f[_0x1f7aff]);for(let _0x1a0e9b=0x0;_0x1a0e9b<_0x50577f[_0x1f7aff]['markersEnd']['length'];_0x1a0e9b++){const _0x5f44b5=_0x50577f[_0x1f7aff]['markersEnd'][_0x1a0e9b];if(!_0x268a93['has'](_0x5f44b5))continue;const {group:_0x453d43,type:_0x6cd776}=_0x4d552c(_0x5f44b5);if('revision-suggestion'!=_0x453d43||'insertion'!=_0x6cd776&&'deletion'!=_0x6cd776)continue;_0x50577f[_0x1f7aff]['markersEnd']['splice'](_0x1a0e9b,0x1),_0x1a0e9b--;const _0x561177=_0x4e678d['findIndex'](_0x15c11e=>_0x15c11e['name']==_0x5f44b5);_0x561177>-0x1&&_0x4e678d['splice'](_0x561177,0x1);}}function _0x4d552c(_0x32e539){const _0x3d39ea=_0x32e539['split'](':');return{'group':_0x3d39ea[0x0],'type':_0x3d39ea[0x1],'subType':_0x3d39ea['length']>=0x5?_0x3d39ea[0x2]:null,'id':_0x3d39ea['length']<0x5?_0x3d39ea[0x2]:_0x3d39ea[0x3],'authorId':_0x3d39ea['length']<0x5?_0x3d39ea[0x3]:_0x3d39ea[0x4],'markerCount':0x6==_0x3d39ea['length']?_0x3d39ea[0x5]:null};}function _0x1f5876(_0x76f88){for(let _0xeeb342=0x0;_0xeeb342<_0x4e678d['length'];_0xeeb342++){if(_0x76f88['isAdded']&&'insertion'==_0x4e678d[_0xeeb342]['type']&&_0x76f88['isAdded']['userId']==_0x4e678d[_0xeeb342]['userId'])return _0x76f88['isAddSuggestion']=_0x4e678d[_0xeeb342],void delete _0x76f88['isAdded'];if(!_0x76f88['isAdded']&&!_0x76f88['isRemoved']&&'deletion'==_0x4e678d[_0xeeb342]['type'])return void(_0x76f88['isRemoveSuggestion']=_0x4e678d[_0xeeb342]);}}}['_setDistance'](_0x3efe0a,_0xee920b){let _0xe681ba=0x0,_0xe8bbee=!0x1;const _0x31fa23=new Map();for(const _0x2e7600 of _0x3efe0a)_0x2e7600[_0xee920b]?_0xe8bbee&&(_0xe681ba++,_0xe8bbee=!0x1):(_0xe681ba++,_0xe8bbee=!0x0),_0x31fa23['set'](_0x2e7600['id'],_0xe681ba);for(let _0x3f40ae=0x0;_0x3f40ae<_0x3efe0a['length'];_0x3f40ae++){if('isRemoved'==_0xee920b&&_0x3efe0a[_0x3f40ae]['isAdded']||'isAdded'==_0xee920b&&_0x3efe0a[_0x3f40ae]['isRemoved'])continue;if('text'==_0x3efe0a[_0x3f40ae]['type']){_0x3efe0a[_0x3f40ae]['distance']=0x0;continue;}const _0x20f474=_0x31fa23['get'](_0x3efe0a[_0x3f40ae]['pairId']),_0x41b2e1=_0x31fa23['get'](_0x3efe0a[_0x3f40ae]['id']);_0x3efe0a[_0x3f40ae]['distance']=_0x20f474-_0x41b2e1;}}['_getRevisionsRange'](_0x84bc0c,_0x566186,_0x875f20=!0x1){const _0x133226=[];let _0x109488=this['repository']['getIndex'](_0x84bc0c),_0x33293f=this['repository']['getIndex'](_0x566186);for(-0x1==_0x33293f&&(_0x33293f=this['repository']['_revisions']['length'],_0x875f20=!0x1);_0x109488<_0x33293f;)_0x133226['push'](this['repository']['getRevision'](_0x109488)),_0x109488++;return _0x875f20&&_0x133226['push'](this['repository']['getRevision'](_0x109488)),_0x133226;}['_threeWayMerge'](_0x3b9d6b,_0x4debc6,_0x2b9abd,_0x273429){const _0xb3baed=this['editor']['model']['schema'];let _0x4ee79e=_0x4debc6;for(;_0x3b9d6b[_0x4ee79e]&&_0x3b9d6b[_0x4ee79e]['isAdded'];)_0x4ee79e++;let _0x99b55e=_0x273429;for(;_0x2b9abd[_0x99b55e]&&_0x2b9abd[_0x99b55e]['isRemoved'];)_0x99b55e++;_0x20107b(_0x3b9d6b,_0x4debc6,_0x4ee79e),_0x20107b(_0x2b9abd,_0x273429,_0x99b55e);const _0x1cd5c8=_0x2b9abd['slice'](_0x273429,_0x99b55e)['concat'](_0x3b9d6b['slice'](_0x4debc6,_0x4ee79e));return _0x1cd5c8['sort']((_0x42c423,_0x526407)=>_0x42c423['side']!=_0x526407['side']?_0x42c423['side']-_0x526407['side']:_0x42c423['level']!=_0x526407['level']?_0x42c423['level']-_0x526407['level']:_0x42c423['distance']!=_0x526407['distance']?_0x526407['distance']-_0x42c423['distance']:!!_0x42c423['isAdded']!=!!_0x526407['isAdded']?-0x1==_0x42c423['side']||0x0==_0x42c423['side']?_0x42c423['isAdded']?-0x1:0x1:_0x42c423['isAdded']?0x1:-0x1:_0x42c423['index']-_0x526407['index']),{'commonTape':_0x1cd5c8,'iEnd':_0x4ee79e,'jEnd':_0x99b55e};function _0x20107b(_0x2df9c9,_0x6e397,_0x1da958){let _0x2178a7=-0x1,_0x323253=Number['POSITIVE_INFINITY'],_0x598eae=!0x0;for(let _0xcddd54=_0x6e397;_0xcddd54<_0x1da958;_0xcddd54++)if(_0xb3baed['isInline'](_0x2df9c9[_0xcddd54]['item'])||(_0x598eae=!0x1),_0x2df9c9[_0xcddd54]['item']['startIndex']<_0x6e397&&(_0x2178a7=_0xcddd54),_0x2df9c9[_0xcddd54]['item']['endIndex']>=_0x1da958){_0x323253=_0xcddd54;break;}_0x598eae&&(_0x2178a7=_0x1da958-0x1);for(let _0x14fb80=_0x6e397;_0x14fb80<_0x1da958;_0x14fb80++)_0x2df9c9[_0x14fb80]['side']=_0x14fb80<=_0x2178a7?-0x1:_0x14fb80<_0x323253?0x0:0x1,_0x2df9c9[_0x14fb80]['index']=_0x14fb80;let _0x21d0e8=0x0;for(let _0x1acd04=_0x6e397;_0x1acd04<=_0x2178a7;_0x1acd04++)0x0==_0x2df9c9[_0x1acd04]['distance']?_0x2df9c9[_0x1acd04]['level']=_0x21d0e8:(_0x21d0e8++,_0x2df9c9[_0x1acd04]['level']=_0x21d0e8,_0x21d0e8++);for(let _0x23df5b=_0x6e397;_0x23df5b<_0x1da958;_0x23df5b++)0x0==_0x2df9c9[_0x23df5b]['side']&&(_0x2df9c9[_0x23df5b]['level']=_0x21d0e8);_0x21d0e8=0x0;for(let _0x40e926=_0x1da958-0x1;_0x40e926>=_0x323253;_0x40e926--)0x0==_0x2df9c9[_0x40e926]['distance']?_0x2df9c9[_0x40e926]['level']=_0x21d0e8:(_0x21d0e8--,_0x2df9c9[_0x40e926]['level']=_0x21d0e8,_0x21d0e8--);}}['_fixObsoleteTags'](_0x454b71){const _0x366d77=new Map(),_0x23280b=this['editor']['model']['schema'];for(let _0x1a3d02=0x1;_0x1a3d02<_0x454b71['length'];_0x1a3d02++){let _0x384a60,_0x8f7ab8,_0x4520a3;const _0x599e3d=_0x454b71[_0x1a3d02],_0x36e02c=_0x454b71[_0x1a3d02-0x1];if('text'==_0x599e3d['type'])continue;if(_0x599e3d['type']!=_0x36e02c['type'])continue;if(!_0x23280b['isBlock'](_0x36e02c['item'])||_0x23280b['isLimit'](_0x36e02c['item']))continue;if(!_0x23280b['isBlock'](_0x599e3d['item'])||_0x23280b['isLimit'](_0x599e3d['item']))continue;if((_0x454b71[_0x1a3d02]['isAdded']||_0x454b71[_0x1a3d02]['isAddSuggestion'])&&_0x454b71[_0x1a3d02-0x1]['isRemoved'])_0x384a60=_0x454b71[_0x1a3d02],_0x8f7ab8=_0x454b71[_0x1a3d02-0x1],_0x4520a3=_0x1a3d02-0x1;else{if(!_0x454b71[_0x1a3d02]['isRemoved']||!_0x454b71[_0x1a3d02-0x1]['isAdded']&&!_0x454b71[_0x1a3d02-0x1]['isAddSuggestion'])continue;_0x384a60=_0x454b71[_0x1a3d02-0x1],_0x8f7ab8=_0x454b71[_0x1a3d02],_0x4520a3=_0x1a3d02;}const _0x1ccf06=_0x384a60['level']==_0x8f7ab8['level'],_0x15c691=Math['abs'](_0x384a60['level'])<Math['abs'](_0x8f7ab8['level'])&&0x0==_0x8f7ab8['distance'];(_0x1ccf06||_0x15c691)&&(_0x366d77['set'](_0x8f7ab8['id'],_0x384a60['id']),_0x454b71['splice'](_0x4520a3,0x1),_0x1a3d02--,_0x384a60['isAdded']=!0x1);}for(let _0x362c94=0x0;_0x362c94<_0x454b71['length'];_0x362c94++)_0x366d77['has'](_0x454b71[_0x362c94]['pairId'])&&(_0x454b71[_0x362c94]['pairId']=_0x366d77['get'](_0x454b71[_0x362c94]['pairId']));}['_removeMissingPairs'](_0x30e13b){const _0x2e83f5=new Set(_0x30e13b['map'](_0x5bcdd7=>_0x5bcdd7['id']));for(let _0x2be597=0x0;_0x2be597<_0x30e13b['length'];_0x2be597++)_0x2e83f5['has'](_0x30e13b[_0x2be597]['pairId'])||0x0==_0x30e13b[_0x2be597]['distance']||(_0x30e13b[_0x2be597]['isIncorrect']=!0x0);return _0x30e13b['filter'](_0x2695da=>!_0x2695da['isIncorrect']);}['_markMismatchedRemovedTags'](_0xd5ac81){const _0x59833e=new Set();for(let _0xc9d1c3=0x0;_0xc9d1c3<_0xd5ac81['length'];_0xc9d1c3++){if(_0x59833e['has'](_0xd5ac81[_0xc9d1c3]['id'])&&_0xd5ac81[_0xc9d1c3]['isRemoved']&&(_0xd5ac81[_0xc9d1c3]['isIncorrect']=!0x0),_0xd5ac81[_0xc9d1c3]['isIncorrect'])continue;if(0x0==_0xd5ac81[_0xc9d1c3]['distance'])continue;if('elementStart'!=_0xd5ac81[_0xc9d1c3]['type'])continue;if(null==_0xd5ac81[_0xc9d1c3]['pairId'])continue;let _0x40848d=_0xc9d1c3+0x1,_0x646544=0x0;for(;_0xd5ac81[_0x40848d]['id']!=_0xd5ac81[_0xc9d1c3]['pairId'];)'elementStart'==_0xd5ac81[_0x40848d]['type']?_0x646544++:'elementEnd'==_0xd5ac81[_0x40848d]['type']&&_0x646544--,_0x40848d++;if(0x0!=_0x646544){if(_0xd5ac81[_0xc9d1c3]['isRemoved'])_0xd5ac81[_0xc9d1c3]['isIncorrect']=!0x0;else{for(;_0x40848d!=_0xc9d1c3;)_0xd5ac81[_0x40848d]['isRemoved']&&0x0!=_0xd5ac81[_0x40848d]['distance']&&(_0xd5ac81[_0x40848d]['isIncorrect']=!0x0,_0x59833e['add'](_0xd5ac81[_0x40848d]['pairId'])),_0x40848d--;}}}return _0xd5ac81['filter'](_0x2fdae0=>!_0x2fdae0['isIncorrect']);}['_removeUnsupportedChanges'](_0x70dfd2){const _0x567ece=this['editor']['model']['schema'];for(let _0x5e4767=0x0;_0x5e4767<_0x70dfd2['length'];_0x5e4767++){if(!(_0x70dfd2[_0x5e4767]['isAdded']||_0x70dfd2[_0x5e4767]['isAddSuggestion']||_0x70dfd2[_0x5e4767]['isRemoved']||_0x70dfd2[_0x5e4767]['isRemoveSuggestion']))continue;if(0x0==_0x70dfd2[_0x5e4767]['distance'])continue;const _0x1ab118=_0x70dfd2[_0x5e4767]['item'];_0x567ece['isBlock'](_0x1ab118)||_0x567ece['isLimit'](_0x1ab118)||(_0x70dfd2[_0x5e4767]['isAdded']&&delete _0x70dfd2[_0x5e4767]['isAdded'],_0x70dfd2[_0x5e4767]['isAddSuggestion']&&delete _0x70dfd2[_0x5e4767]['isAddSuggestion'],_0x70dfd2[_0x5e4767]['isRemoveSuggestion']&&delete _0x70dfd2[_0x5e4767]['isRemoveSuggestion'],_0x70dfd2[_0x5e4767]['isRemoved']&&(_0x70dfd2[_0x5e4767]['isIncorrect']=!0x0));}return _0x70dfd2['filter'](_0x1a64ad=>!_0x1a64ad['isIncorrect']);}['_makeModelFromTape'](_0x5ea1d6,_0x52d4c9,_0x1e852c){const _0x3fb637=new _0xbdee0c(),_0x2bce41=[],_0x5eb30f=new Map(),_0x3798ab=this['editor']['model'],_0xb873ae=_0x3798ab['schema'],_0x4513c5=[_0x3fb637],_0xfb5684={},_0x22d80e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x49f461=null;const _0x4f4df6=[0x0];for(let _0x475d17=0x0;_0x475d17<_0x5ea1d6['length'];_0x475d17++)if('elementStart'===_0x5ea1d6[_0x475d17]['type']){_0x5ea1d6[_0x475d17]['previousPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6);const _0xd72d06=new _0x467cfa(_0x5ea1d6[_0x475d17]['item']['name'],_0x5ea1d6[_0x475d17]['item']['getAttributes']());_0x4513c5[0x0]['_appendChild'](_0xd72d06),_0x4f4df6['push'](0x0),_0x4513c5['unshift'](_0xd72d06),_0x5ea1d6[_0x475d17]['nextPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6);}else'elementEnd'===_0x5ea1d6[_0x475d17]['type']?(_0x4513c5['shift'](),_0x5ea1d6[_0x475d17]['previousPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6),_0x4f4df6['pop'](),_0x4f4df6[_0x4f4df6['length']-0x1]++,_0x5ea1d6[_0x475d17]['nextPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6)):(_0x5ea1d6[_0x475d17]['previousPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6),_0x49f461?_0x49f461['_data']+=_0x5ea1d6[_0x475d17]['item']['data']:_0x49f461=new _0x264685(_0x5ea1d6[_0x475d17]['item']['data'],_0x5ea1d6[_0x475d17]['item']['getAttributes']()),_0x5ea1d6[_0x475d17+0x1]&&'text'===_0x5ea1d6[_0x475d17+0x1]['type']&&_0x3a4e0a(_0x49f461,_0x5ea1d6[_0x475d17+0x1]['item'])||(_0x4513c5[0x0]['_appendChild'](_0x49f461),_0x49f461=null),_0x4f4df6[_0x4f4df6['length']-0x1]+=_0x5ea1d6[_0x475d17]['item']['offsetSize'],_0x5ea1d6[_0x475d17]['nextPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6));for(let _0x2774a4=0x0;_0x2774a4<_0x5ea1d6['length'];_0x2774a4++){const _0x7c8cf0=_0x5ea1d6[_0x2774a4]['previousPosition'],_0x3e661d=_0x5ea1d6[_0x2774a4]['nextPosition'];for(const _0x46cf23 of _0x5ea1d6[_0x2774a4]['markersStart'])_0x5eb30f['set'](_0x46cf23,{'start':_0x7c8cf0,'end':null});_0x1b78fe('isRemoveSuggestion',_0x2774a4,_0x7c8cf0,_0x3e661d),_0x1b78fe('isAddSuggestion',_0x2774a4,_0x7c8cf0,_0x3e661d),_0x1b78fe('isRemoved',_0x2774a4,_0x7c8cf0,_0x3e661d),_0x1b78fe('isAdded',_0x2774a4,_0x7c8cf0,_0x3e661d);for(const _0x4569b7 of _0x5ea1d6[_0x2774a4]['markersEnd']){const _0x565e0a=_0x5eb30f['get'](_0x4569b7);_0x565e0a?_0x565e0a['end']=_0x3e661d:_0x5eb30f['set'](_0x4569b7,{'start':_0x3e661d,'end':_0x3e661d});}}for(const [_0x28b0db,_0x5f032c]of _0x5eb30f){const _0x1ed12e=this['editor']['model']['createRange'](_0x5f032c['start'],_0x5f032c['end']);_0x3fb637['markers']['set'](_0x28b0db,_0x1ed12e);}return _0x2bce41['sort']((_0x13945b,_0x446128)=>{const _0x184761=_0x3fb637['markers']['get']('revision:'+_0x13945b['id']),_0x3c9f1e=_0x3fb637['markers']['get']('revision:'+_0x446128['id']);return _0x184761['start']['isBefore'](_0x3c9f1e['start'])?-0x1:_0x184761['start']['isAfter'](_0x3c9f1e['start'])?0x1:_0x184761['end']['isBefore'](_0x3c9f1e['end'])?-0x1:_0x184761['end']['isAfter'](_0x3c9f1e['end'])?0x1:'add'===_0x13945b['type']?-0x1:0x1;}),{'root':_0x3fb637,'changes':_0x2bce41};function _0x1b78fe(_0x5599f1,_0x5a3d84,_0x27c519,_0x2df7c5){const _0xe7d89f=!!_0x5ea1d6[_0x5a3d84][_0x5599f1],_0x1d6648=_0xe7d89f?_0x5ea1d6[_0x5a3d84][_0x5599f1]['userId']:null,_0x2edfbb=_0x5a3d84===_0x5ea1d6['length']-0x1,_0xa9154d=_0x22d80e[_0x5599f1][0x0],_0x4299a2=_0xb873ae['isObject'](_0x5ea1d6[_0x5a3d84]['item']);!_0xfb5684[_0x5599f1]&&_0xe7d89f?_0xfb5684[_0x5599f1]={'start':_0x27c519,'tapeItem':_0x5ea1d6[_0x5a3d84],'userId':_0x1d6648,'type':_0x5599f1}:_0xfb5684[_0x5599f1]&&!_0xe7d89f?(_0xfb5684[_0x5599f1]['end']=_0x27c519,_0x3418d5(_0xfb5684[_0x5599f1]),_0xfb5684[_0x5599f1]=null):_0xfb5684[_0x5599f1]&&_0xe7d89f&&_0xfb5684[_0x5599f1]['userId']!==_0x1d6648&&(_0xfb5684[_0x5599f1]['end']=_0x27c519,_0xa9154d&&_0xa9154d['userId']===_0xfb5684[_0x5599f1]['userId']||_0x3418d5(_0xfb5684[_0x5599f1]),_0xfb5684[_0x5599f1]={'start':_0x27c519,'tapeItem':_0x5ea1d6[_0x5a3d84],'userId':_0x1d6648,'type':_0x5599f1}),_0xfb5684[_0x5599f1]&&_0x4299a2&&('elementStart'!==_0x5ea1d6[_0x5a3d84]['type']||_0xa9154d&&_0xa9154d['userId']===_0x1d6648||_0x22d80e[_0x5599f1]['unshift']({'userId':_0x1d6648,'object':_0x5ea1d6[_0x5a3d84]['item'],'change':_0xfb5684[_0x5599f1]}),'elementEnd'===_0x5ea1d6[_0x5a3d84]['type']&&_0xa9154d&&_0xa9154d['object']===_0x5ea1d6[_0x5a3d84]['item']&&(_0x22d80e[_0x5599f1]['shift'](),_0xfb5684[_0x5599f1]=_0xa9154d['change'])),_0xfb5684[_0x5599f1]&&_0x2edfbb&&(_0xfb5684[_0x5599f1]['end']=_0x2df7c5,_0x3418d5(_0xfb5684[_0x5599f1]),_0xfb5684[_0x5599f1]=null);}function _0x3418d5({start:_0x122635,end:_0x26b4d4,tapeItem:_0x1ef2da,userId:_0x65657a,type:_0x72b92e}){const _0x194a97=_0x1ef2da['item'],_0x18e904=_0x3798ab['schema']['isBlock'](_0x194a97)&&!_0x3798ab['schema']['isLimit'](_0x194a97),_0x51ef18=_0x122635['nodeAfter']==_0x26b4d4['parent']&&_0x26b4d4['isAtStart'];if(_0x18e904&&_0x51ef18)return;const _0x572a48=_0x3798ab['createRange'](_0x122635,_0x26b4d4),_0x493b5b=_0x52d4c9['get'](_0x65657a),_0x5bdca4=new G({'author':_0x493b5b,'type':'isAdded'==_0x72b92e||'isAddSuggestion'==_0x72b92e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x72b92e||'isRemoveSuggestion'==_0x72b92e},'createdAt':new Date(),'rootName':_0x1e852c});_0x2bce41['push'](_0x5bdca4),_0x3fb637['markers']['set']('revision:'+_0x5bdca4['id'],_0x572a48);}function _0x3a4e0a(_0xcfd17b,_0x4dcd7b){const _0x4404cd=_0xcfd17b['getAttributes'](),_0x1cdb3b=_0x4dcd7b['getAttributes']();for(const _0x53849f of _0x4404cd){if(_0x53849f[0x1]!==_0x4dcd7b['getAttribute'](_0x53849f[0x0]))return!0x1;_0x1cdb3b['next']();}return _0x1cdb3b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x422e86=>{const _0x1051c7=_0x422e86['markerName']['split'](':')[0x1],_0x22f713=this['_getChangeFromId'](_0x1051c7);if(!_0x22f713)return null;const _0x1097a7='add'==_0x22f713['type']?'insertion':'deletion',_0x199c42=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1097a7];return _0x22f713['data']['isSuggestion']&&_0x199c42['push']('ck-suggestion-marker-'+_0x1097a7+'-new'),this['activeChange']==_0x22f713&&_0x199c42['push']('ck-suggestion-marker--active'),{'classes':_0x199c42,'attributes':{'data-change-id':_0x1051c7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28b910=>{_0x28b910['on']('element:pre',(_0x1ad7b7,_0x541951,_0x58741e)=>{const _0x45cbbb=_0x541951['viewItem']['getChild'](0x0);if(!_0x45cbbb||!_0x45cbbb['is']('element','code'))return;if(!_0x58741e['consumable']['consume'](_0x45cbbb,{'attributes':['vid_start','vid_end']}))return;const _0x41786a=_0x541951['modelRange']['start']['nodeAfter'];_0x58741e['writer']['setAttribute']('vid_start',_0x45cbbb['getAttribute']('vid_start'),_0x41786a),_0x58741e['writer']['setAttribute']('vid_end',_0x45cbbb['getAttribute']('vid_end'),_0x41786a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x566410=>{_0x566410['on']('element',(_0x394f53,_0x5b5a68,_0x5a43ec)=>{if(!_0x5a43ec['consumable']['consume'](_0x5b5a68['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5b5a68['modelRange']['isCollapsed'])return;const _0x1630e8=_0x5b5a68['modelRange']['start']['nodeAfter'];_0x1630e8['hasAttribute']('vid_start')||_0x1630e8['hasAttribute']('vid')||(_0x5a43ec['writer']['setAttribute']('vid_start',_0x5b5a68['viewItem']['getAttribute']('vid_start'),_0x1630e8),_0x5a43ec['writer']['setAttribute']('vid_end',_0x5b5a68['viewItem']['getAttribute']('vid_end'),_0x1630e8));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5878db=>_0x5878db['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x53f272,[,_0x150e81])=>{['vid_start','vid_end','vid']['includes'](_0x150e81)&&(_0x53f272['return']=!0x0,_0x53f272['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x529d46=>{_0x529d46['on']('attribute:vid',(_0x49ae53,_0x400d5a,_0x468410)=>{if('\x20'!=_0x400d5a['item']['data']||_0x400d5a['item']['parent']['maxOffset']>0x1)return;if(!_0x468410['consumable']['consume'](_0x400d5a['item'],_0x49ae53['name']))return;const _0x5c242c=_0x468410['writer'],_0x14450f=_0x468410['mapper']['toViewRange'](_0x400d5a['range']);_0x5c242c['wrap'](_0x14450f,_0x5c242c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5c06bd){const _0xcaabaf=_0x5c06bd['plugins']['get']('RevisionViewer');return(_0x2d4e09,_0xb1fc12,_0x1a90de)=>{const _0x543464=_0xb1fc12['markerName']['split'](':')[0x1],_0x2f03ef=_0xcaabaf['_getChangeFromId'](_0x543464);if(!_0x2f03ef)return null;const _0x3a75be='add'==_0x2f03ef['type']?'split':'merge';if(!_0x1a90de['consumable']['test'](_0xb1fc12['markerRange'],_0x2d4e09['name']))return;const _0x5bf3d0=_0xb1fc12['markerRange']['getWalker'](),_0x2bbb90=_0xb1fc12['markerRange']['start'],_0x2215aa=_0x5c06bd['model']['schema'];let _0x2fb578=null,_0x22e065=null,_0x58831c=!0x1,_0x9570c8=!0x1;for(const _0x58631d of _0x5bf3d0){const _0x1f3aa9=_0x58631d['item'];_0x58831c=_0x58831c||_0x2215aa['isContent'](_0x1f3aa9);const _0x352809=_0x1a90de['mapper']['toViewElement'](_0x1f3aa9);if(_0x352809&&_0x352809['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58631d['type']&&(_0x2215aa['isBlock'](_0x1f3aa9)&&!_0x2215aa['isLimit'](_0x1f3aa9)&&(_0x1f3aa9['nextSibling']||_0x2bbb90['isAtEnd']?_0x2fb578&&_0x2fb578['parent']==_0x1f3aa9||(_0x2fb578=_0x1f3aa9,_0x38ddff(_0x58631d['previousPosition']),_0x9570c8=!0x0):_0x22e065=_0x22e065||_0x58631d['previousPosition']));}function _0x38ddff(_0x6a2b5b){const _0x1bc6f8=_0x1a90de['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a75be}),_0x1037b5=_0x1a90de['mapper']['toViewPosition'](_0x6a2b5b);_0x2f03ef['data']['isSuggestion']&&_0x1a90de['writer']['addClass']('ck-suggestion-marker-'+_0x3a75be+'-new',_0x1bc6f8),_0xcaabaf['activeChange']==_0x2f03ef&&_0x1a90de['writer']['addClass']('ck-suggestion-marker--active',_0x1bc6f8),_0x1a90de['writer']['insert'](_0x1037b5,_0x1bc6f8),_0x1a90de['mapper']['bindElementToMarker'](_0x1bc6f8,_0xb1fc12['markerName']);}_0x58831c||_0x9570c8||!_0x22e065||_0x38ddff(_0x22e065);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x19a9f9,_0x531dcc,_0x3ff1e2)=>{const _0x1b3ffc=_0x3ff1e2['mapper']['markerNameToElements'](_0x531dcc['markerName']);if(_0x1b3ffc){for(const _0x5d5491 of _0x1b3ffc)(_0x5d5491['hasClass']('ck-suggestion-marker-split')||_0x5d5491['hasClass']('ck-suggestion-marker-merge'))&&(_0x3ff1e2['mapper']['unbindElementFromMarkerName'](_0x5d5491,_0x531dcc['markerName']),_0x3ff1e2['writer']['remove'](_0x5d5491));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x36bc99,_0x506642,_0x5aa601)=>{const _0x5b5d13=_0x506642['markerName']['split'](':')[0x1],_0x157b5f=this['_getChangeFromId'](_0x5b5d13);if(!_0x157b5f)return null;const _0x18999b='add'==_0x157b5f['type']?'split':'merge';if(_0x5aa601['consumable']['test'](_0x506642['markerRange'],_0x36bc99['name']))for(const _0x18865b of _0x506642['markerRange']['getItems']()){if(!_0x18865b['is']('element','softBreak'))continue;const _0x4275d0=_0x5aa601['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18999b}),_0x13e13a=_0x5aa601['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x18865b));_0x157b5f['data']['isSuggestion']&&_0x5aa601['writer']['addClass']('ck-suggestion-marker-'+_0x18999b+'-new',_0x4275d0),this['activeChange']==_0x157b5f&&_0x5aa601['writer']['addClass']('ck-suggestion-marker--active',_0x4275d0),_0x5aa601['writer']['insert'](_0x13e13a,_0x4275d0),_0x5aa601['mapper']['bindElementToMarker'](_0x4275d0,_0x506642['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x12b9dc=>{for(const _0x56372f of this['editor']['model']['document']['getRootNames']()){const _0x4e399a=this['editor']['model']['document']['getRoot'](_0x56372f),_0x1473bb=this['editor']['editing']['view']['document']['getRoot'](_0x56372f);if(_0x1473bb){const _0x19f61b=_0x4e399a['getAttribute']('revisionHistoryAttachChange');if(_0x12b9dc['removeAttribute']('data-change-id',_0x1473bb),_0x12b9dc['removeClass']('ck-revision-history-root-add',_0x1473bb),_0x12b9dc['removeClass']('ck-revision-history-root-remove',_0x1473bb),_0x12b9dc['removeClass']('ck-revision-history-root--active',_0x1473bb),_0x19f61b){const _0x3e06fa=this['_getChangeFromId'](_0x19f61b);if(!_0x3e06fa)return null;_0x12b9dc['setAttribute']('data-change-id',_0x19f61b,_0x1473bb),_0x12b9dc['addClass']('ck-revision-history-root-'+_0x3e06fa['type'],_0x1473bb),this['activeChange']==_0x3e06fa&&_0x12b9dc['addClass']('ck-revision-history-root--active',_0x1473bb);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xb9c371=>'revision-comment:'+_0xb9c371,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5e00c9=>'revision-suggestion:'+_0x5e00c9,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3873ca=>({'name':'suggestion:'+_0x3873ca,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x6fb370=>{const _0x1f5a01=_0x6fb370['markerName']['split'](':')[0x1];return'insertion'!=_0x1f5a01&&'deletion'!=_0x1f5a01?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1f5a01]};}}),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',(_0x3a023d,_0x22581e,_0x3109b0)=>{const _0x45ebc0=_0x3109b0['mapper']['markerNameToElements'](_0x22581e['markerName']);if(_0x45ebc0){for(const _0x5d1663 of _0x45ebc0)_0x5d1663['is']('uiElement')&&(_0x3109b0['mapper']['unbindElementFromMarkerName'](_0x5d1663,_0x22581e['markerName']),_0x3109b0['writer']['remove'](_0x5d1663));}},{'priority':'high'});}['_getChangeFromId'](_0x20a8af){return this['_changeIdToChange']['get'](_0x20a8af);}['_getViewForChange'](_0x20ab06){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x20ab06),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x57d2d4,_0x2bab9e,_0x55471a,_0x4e3863)=>{_0x4e3863&&this['_balloon']['remove'](_0x4e3863),_0x55471a&&(this['_balloon']['add']({'view':_0x55471a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x37e4c4=this['editor']['editing'],_0x30b582=this['_getChangeFromId'](_0x55471a['changeId']);let _0x1604bb;if(_0x30b582['data']['isOnRoot']){const _0x419f25=_0x37e4c4['view']['getDomRoot'](_0x30b582['rootName']);_0x1604bb=Array['from'](_0x419f25['getClientRects']());}else{const _0xd457e5=this['editor']['model']['markers']['get']('revision:'+_0x55471a['changeId']);_0x1604bb=Array['from'](_0x37e4c4['mapper']['markerNameToElements'](_0xd457e5['name']))['map'](_0x44a75d=>_0x37e4c4['view']['domConverter']['mapViewToDom'](_0x44a75d))['map'](_0x4c94b9=>Array['from'](_0x4c94b9['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1604bb[0x0];return _0x1604bb['find'](_0x311403=>_0x311403['top']-0x3<=this['_activeViewTarget']['y']&&_0x311403['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x311403['left']-0x3<=this['_activeViewTarget']['x']&&_0x311403['right']+0x3>=this['_activeViewTarget']['x'])||_0x1604bb[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4e557f,_0x34f07a,_0x10c743,_0x1af2a7)=>{this['activeView']=_0x10c743?this['_getViewForChange'](_0x10c743):null,this['editor']['model']['change'](()=>{const _0x21b592=this['editor']['editing'];_0x1af2a7&&(_0x1af2a7['data']['isOnRoot']?_0x21b592['view']['change'](_0x23c4b0=>{_0x23c4b0['removeClass']('ck-revision-history-root--active',_0x21b592['view']['document']['getRoot'](_0x1af2a7['rootName']));}):_0x21b592['reconvertMarker']('revision:'+_0x1af2a7['id'])),_0x10c743&&(_0x10c743['data']['isOnRoot']?_0x21b592['view']['change'](_0xa11b6a=>{_0xa11b6a['addClass']('ck-revision-history-root--active',_0x21b592['view']['document']['getRoot'](_0x10c743['rootName']));}):_0x21b592['reconvertMarker']('revision:'+_0x10c743['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x32accf,_0x5f3fc6)=>{if(this['activeChange'])return;const _0x5ab964=this['_findChangeIdFromDomTarget'](_0x5f3fc6['target']),_0x5f5490=this['_changeIdToChange']['get'](_0x5ab964);_0x5f5490?(this['_activeViewTarget']={'x':_0x5f3fc6['domEvent']['x'],'y':_0x5f3fc6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5f5490)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x110472,_0x20377b)=>{const _0x15ef0b=this['_findChangeIdFromDomTarget'](_0x20377b['target']),_0x61044f=this['_changeIdToChange']['get'](_0x15ef0b);_0x61044f?(this['_activeViewTarget']={'x':_0x20377b['domEvent']['x'],'y':_0x20377b['domEvent']['y']},_0x61044f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x61044f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x27607b){do{const _0x543cae=_0x27607b['getAttribute']('data-change-id');if(_0x543cae)return _0x543cae;_0x27607b=_0x27607b['parent'];}while(_0x27607b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xec5c17=>{for(const _0x367802 of this['editor']['model']['markers'])_0xec5c17['removeMarker'](_0x367802);});}}function Q(_0x2ef051,_0x1c974b){return(_0x502743,_0x5dcf58,_0x28b27b)=>{if(!_0x28b27b['consumable']['test'](_0x5dcf58['markerRange'],_0x502743['name']))return;const _0x12cfab=_0x5dcf58['markerRange']['getWalker'](),_0x3ef369=_0x5dcf58['markerRange']['start'],_0x2e614b=_0x2ef051['model']['schema'];let _0xa4fba8=null,_0x3c47c4=null,_0xed70b=!0x1,_0x3b3c1f=!0x1;for(const _0x3c72e0 of _0x12cfab){const _0x22b4a8=_0x3c72e0['item'];_0xed70b=_0xed70b||_0x2e614b['isContent'](_0x22b4a8);const _0x52d158=_0x28b27b['mapper']['toViewElement'](_0x22b4a8);if(_0x52d158&&_0x52d158['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c72e0['type']&&(_0x2e614b['isBlock'](_0x22b4a8)&&!_0x2e614b['isLimit'](_0x22b4a8)&&(_0x22b4a8['nextSibling']||_0x3ef369['isAtEnd']?_0xa4fba8&&_0xa4fba8['parent']==_0x22b4a8||(_0xa4fba8=_0x22b4a8,_0x39898c(_0x3c72e0['previousPosition']),_0x3b3c1f=!0x0):_0x3c47c4=_0x3c47c4||_0x3c72e0['previousPosition']));}function _0x39898c(_0x152b4c){const _0x3e7970=_0x28b27b['mapper']['toViewPosition'](_0x152b4c),_0x2bb70c=_0x28b27b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1c974b});_0x28b27b['writer']['insert'](_0x3e7970,_0x2bb70c),_0x28b27b['mapper']['bindElementToMarker'](_0x2bb70c,_0x5dcf58['markerName']);}_0xed70b||_0x3b3c1f||!_0x3c47c4||_0x39898c(_0x3c47c4);};}class nt extends _0x5de004{constructor(_0x376bef){super(_0x376bef);const _0x2bb832=_0x376bef['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x2bb832,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2bb832,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x13f39e=this['editor'],_0x10e8b2=_0x13f39e['plugins']['get'](u),_0x4f0054=_0x10e8b2['isReady']?_0x10e8b2['diff']['newRevisionId']:null;_0x13f39e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4f0054);}['refresh'](){const {isReady:_0x30befe,isEnabled:_0x328985,repository:_0x5a4a07,diff:_0x490211}=this['editor']['plugins']['get'](u),_0x186376=_0x490211&&_0x5a4a07['getLaterVisibleRevision'](_0x490211['newRevisionId']);this['isEnabled']=_0x30befe&&_0x328985&&Boolean(_0x186376);}}class rt extends _0x5de004{['_step'];constructor(_0x247fa6,{direction:_0x3f8b0a}){super(_0x247fa6);const _0x473dfe=_0x247fa6['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x3f8b0a?0x1:-0x1,this['listenTo'](_0x473dfe,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x473dfe,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x473dfe,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1ddc52=this['editor'],_0x29ee6d=_0x1ddc52['plugins']['get'](u),{isNavigationMode:_0x23f0ec,currentChangeNumber:_0x2e5e48}=_0x29ee6d;let _0x271b7b;if(_0x29ee6d['activeChange']=_0x23f0ec?_0x29ee6d['diff']['changes']['get'](_0x2e5e48+this['_step']):_0x29ee6d['diff']['changes']['first'],_0x29ee6d['activeChange']['data']['isOnRoot'])_0x271b7b=_0x1ddc52['editing']['view']['getDomRoot'](_0x29ee6d['activeChange']['rootName']);else{const _0x1fd76a=_0x1ddc52['model']['markers']['get']('revision:'+_0x29ee6d['activeChange']['id']);_0x271b7b=_0x52f960(_0x1ddc52['editing'],_0x1fd76a);}_0x5e079d({'target':_0x271b7b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x17d498,currentChangeNumber:_0x369ab,numberOfChanges:_0x2bfd93,isReady:_0x3825fc,isEnabled:_0x2b0bdd}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x2b0bdd&&_0x3825fc&&_0x2bfd93)&&(!_0x17d498||(0x1===this['_step']?_0x369ab<_0x2bfd93-0x1:_0x369ab>0x0));}}class fi extends _0x2a78ea{constructor(_0x4f4af7){super(_0x4f4af7);const _0x2310d1=this['bindTemplate'],_0xc7251c=new _0x4c4445(_0x4f4af7),_0x23ecd6=new _0x4c4445(_0x4f4af7);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',(_0x49cb25,_0xff1673)=>_0x49cb25&&_0xff1673>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x214b3d,_0x4ea9a8,_0x28c56d,_0x26758b)=>{if(!_0x214b3d)return m(_0x4f4af7,'Loading...');if(!_0x28c56d)return m(_0x4f4af7,'No\x20changes');const _0x3f1793=m(_0x4f4af7,'NUMBER_OF_CHANGES',_0x28c56d);return _0x26758b?m(_0x4f4af7,'X_OF_Y_CHANGES',[_0x4ea9a8+0x1,_0x28c56d]):_0x3f1793;}),_0xc7251c['set']({'label':m(_0x4f4af7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x56df88}),_0x23ecd6['set']({'label':m(_0x4f4af7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5c12f5}),_0xc7251c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x23ecd6['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xc7251c['on']('execute',()=>this['fire']('execute','backward')),_0x23ecd6['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',_0x2310d1['if']('_isStatusLabelVisible','ck-hidden',_0x180197=>!_0x180197)]},'children':[{'text':_0x2310d1['to']('isNavigationMode',_0x375dfb=>_0x375dfb?m(_0x4f4af7,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4f4af7,'Total')+':\x20')}]},{'text':_0x2310d1['to']('_statusText')}]},new _0x5d1747(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xc7251c,_0x23ecd6]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x437c77{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x305b08=this['editor']['editing']['view'];_0x305b08['change'](_0x5d1290=>{for(const _0x571db4 of _0x305b08['document']['roots'])_0x5d1290['addClass'](ge,_0x571db4);});}['hide'](){const _0x5d1117=this['editor']['editing']['view'];_0x5d1117['change'](_0x477320=>{for(const _0x469aa5 of _0x5d1117['document']['roots'])_0x477320['removeClass'](ge,_0x469aa5);});}}class v extends _0x437c77{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,bi];}['init'](){const _0x2ab7ad=this['editor'],_0x2f0e38=_0x2ab7ad['plugins']['get'](u),_0x21f1f3=_0x2ab7ad['plugins']['get'](bi);_0x2ab7ad['ui']['componentFactory']['add']('exitToEditing',_0x17c705=>{const _0xeeb543=new _0x4c4445(_0x17c705);return _0xeeb543['set']({'label':m(_0x17c705,'Back\x20to\x20editing'),'icon':_0x550877,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xeeb543,'execute',()=>{_0x2ab7ad['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xeeb543;}),_0x2ab7ad['ui']['componentFactory']['add']('restoreRevision',_0x367537=>{const _0x1667b4=new _0x4c4445(_0x367537);return _0x1667b4['set']({'label':m(_0x367537,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1667b4['bind']('isEnabled')['to'](_0x2ab7ad['commands']['get']('restoreRevision')),this['listenTo'](_0x1667b4,'execute',()=>_0x2ab7ad['execute']('restoreRevision')),_0x1667b4;}),_0x2ab7ad['ui']['componentFactory']['add']('changesNavigation',_0x22c854=>{const _0xd06eff=new fi(_0x22c854),_0x32f27c=_0x2ab7ad['commands']['get']('showPreviousChange'),_0xbcca17=_0x2ab7ad['commands']['get']('showNextChange');return _0xd06eff['bind']('isBackwardNavigationEnabled')['to'](_0x32f27c,'isEnabled'),_0xd06eff['bind']('isForwardNavigationEnabled')['to'](_0xbcca17,'isEnabled'),_0xd06eff['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2f0e38),this['listenTo'](_0xd06eff,'execute',(_0x3fe282,_0x46e134)=>{_0x2ab7ad['execute']('forward'===_0x46e134?'showNextChange':'showPreviousChange');}),_0xd06eff;}),_0x21f1f3['show'](),_0x2f0e38['on']('change:isReady',(_0x26e7b7,_0x4620bc,_0x347019)=>{_0x347019?_0x21f1f3['hide']():_0x21f1f3['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5eb65e,_0x553ea2){super(_0x5eb65e,_0x553ea2);const _0x3596df=this['bindTemplate'];this['set']({'label':m(_0x5eb65e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5eb65e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3596df['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 _0x44ab20=this['fieldView']['element'];this['_tooltipString']=_0x44ab20['scrollWidth']>_0x44ab20['clientWidth']&&_0x44ab20['value']||'';}}class ni extends _0x2a78ea{constructor(_0x4c7214,_0x23ce09,_0x5f25e5){super(_0x4c7214);const _0x30d988=new _0x42ea15();_0x30d988['set']({'content':_0x2f748d,'viewBox':'0\x200\x2011\x2010'});const _0x591145=['ck','ck-revision-history-sidebar__revision-author'];_0x5f25e5&&_0x591145['push']('ck-revision-history-sidebar__revision-author_creator');const _0x224210=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4c7214,_0x5f25e5?'Revision\x20creator':'Revision\x20author')},'children':[_0x30d988,_0x23ce09['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x591145},'children':_0x224210});}}function ai(_0x2b1f16,_0x51e6cd){const _0x184f33=_0x2b1f16['bindTemplate'],_0x168d33=_0x2b1f16['locale'],_0x574ee9=_0x2676c3(_0x168d33);_0x574ee9['panelPosition']='sw';const _0x473fbb=function(_0x1f1c89,_0x431851){const _0x324132=function(_0x3aeac4,_0x897fe1){const _0x4de48e=_0x3aeac4['locale'],_0x403985={'Compare\x20against\x20selected':m(_0x4de48e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4de48e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4de48e,'Restore\x20this\x20revision')};return _0x897fe1['map'](_0x344d8a=>{const _0x2a7dfe=_0x403985[_0x344d8a['name']];return _0x2a7dfe&&_0x2a7dfe!==_0x344d8a['name']&&(_0x344d8a['name']=_0x2a7dfe),_0x344d8a;});}(_0x1f1c89,_0x431851),_0xccff19=new _0x292637();for(const _0xb65d12 of _0x324132){const _0x3a2fc9={'type':'button','model':new to({'label':_0xb65d12['name'],'class':_0xb65d12['class'],'withText':!0x0,'role':'menuitem','_action':_0xb65d12['action']})};_0x3a2fc9['model']['bind']('isEnabled')['to'](_0x1f1c89,'isActionsDropdownOpen',_0x2b8683=>'function'!=typeof _0xb65d12['isEnabled']||(!_0x2b8683||_0xb65d12['isEnabled'](_0x1f1c89))),_0xccff19['add'](_0x3a2fc9);}return _0xccff19;}(_0x2b1f16,_0x51e6cd);return _0x2b1f16['bind']('isActionsDropdownOpen')['to'](_0x574ee9,'isOpen'),_0x574ee9['buttonView']['set']({'label':m(_0x168d33,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x59f83a}),_0x574ee9['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x184f33['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x184f33['to'](_0x516cab=>_0x516cab['stopPropagation']())}}),_0x574ee9['on']('execute',_0x484da7=>{_0x2b1f16['isReady']&&'function'==typeof _0x484da7['source']['_action']&&_0x484da7['source']['_action'](_0x2b1f16);}),_0x4e23b7(_0x574ee9,_0x473fbb,{'role':'menu'}),_0x574ee9['listenTo'](_0x2b1f16,'change:isActionsDropdownOpen',(_0x11f586,_0xe63ed5,_0x30a1e2)=>{if(_0x30a1e2)for(const _0x517a8c of _0x574ee9['listView']['items']){const _0x342d5f=_0x517a8c['children']['first'],_0x2c4329=_0x51e6cd['find'](_0x1e4e77=>_0x1e4e77['action']===_0x342d5f['_action'])['isVisible'];_0x517a8c['isVisible']=void 0x0===_0x2c4329||_0x2c4329(_0x2b1f16);}}),_0x574ee9;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x138897(_0x2a78ea){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2a0b68,_0x434a60,_0xe9339f,_0x5cec7c){super(_0x2a0b68);const _0x5d79c7=this['bindTemplate'],_0x4cadb9=function(_0x3cf6d3,_0x342251){const _0x2f9b04=Array['from'](_0x342251['authors'])['filter'](_0x133997=>_0x133997!=_0x342251['creator']);return _0x342251['creator']&&_0x2f9b04['unshift'](_0x342251['creator']),_0x2f9b04['map'](_0xe7edb0=>new ni(_0x3cf6d3,_0xe7edb0,_0xe7edb0==_0x342251['creator']));}(_0x2a0b68,_0x434a60);this['id']=_0x434a60['id'],this['_revision']=_0x434a60,this['_requireRevisionName']=_0x5cec7c,this['bind']('name','createdAt')['to'](_0x434a60),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x59c2d2=>{return _0x1e0913=_0x2a0b68['uiLanguage'],(_0x40063d=_0x59c2d2)['toLocaleDateString'](_0x1e0913,{'month':'long','day':'numeric'})+',\x20'+_0x40063d['toLocaleTimeString'](_0x1e0913,{'hour':'numeric','minute':'numeric'});var _0x1e0913,_0x40063d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x2a0b68,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1ba89f=>_0x1ba89f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2d812f,_0x4aee30)=>_0x2d812f&&_0x4aee30),this['revisionActionsView']=_0xe9339f&&_0xe9339f['length']?ai(this,_0xe9339f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d79c7['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d79c7['if']('isEnabled','ck-disabled',_0x2d8c2d=>!_0x2d8c2d),_0x5d79c7['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d79c7['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d79c7['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':_0x5d79c7['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':_0x4cadb9}]},this['revisionActionsView']],'on':{'click':_0x5d79c7['to'](_0x5cf21e=>{_0x5cf21e['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x502d29=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x502d29,'change',()=>{this['_requireRevisionName']&&!_0x502d29['value']||this['fire']('setName',{'id':this['id'],'name':_0x502d29['value']}),_0x502d29['value']||(_0x502d29['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ki(_0x5532e6,_0x158aa7){const _0x463f48=_0x43cb4d['fromJSDate'](_0x5532e6)['setLocale'](_0x158aa7),_0x427d9f=_0x43cb4d['local'](),_0x50db42=_0x427d9f['minus']({'days':0x1})['startOf']('day');let _0x209229,_0x24bd65;return _0x463f48['hasSame'](_0x427d9f,'day')?(_0x209229=_0x463f48['startOf']('day')['toJSDate'](),_0x24bd65=_0x463f48['toRelativeCalendar']()):_0x463f48['hasSame'](_0x50db42,'day')?(_0x209229=_0x50db42['toJSDate'](),_0x24bd65=_0x463f48['toRelativeCalendar']()):_0x463f48['hasSame'](_0x427d9f,'week')?(_0x209229=_0x463f48['startOf']('week')['toJSDate'](),_0x24bd65=_0x463f48['weekdayLong']||''):_0x463f48['hasSame'](_0x427d9f,'year')?(_0x209229=_0x463f48['startOf']('month')['toJSDate'](),_0x24bd65=_0x463f48['monthLong']||''):(_0x209229=_0x463f48['startOf']('year')['toJSDate'](),_0x24bd65=String(_0x463f48['year'])),{'startDate':_0x209229,'localizedPeriodName':_0x24bd65};}class ji extends _0x2a78ea{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x448a14,_0xc71a11,_0x1d74f5,_0x3b3062){super(_0x448a14);const _0x61af0c=ki(_0xc71a11,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xc71a11,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1d74f5,this['_requireRevisionName']=_0x3b3062,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':_0x61af0c}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x32ea05){const _0x58856f=new _i(this['locale'],_0x32ea05,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x58856f);}['removeRevision'](_0x4c8c1f){const _0x4db215=this['revisionViews']['find'](_0x468cf8=>_0x468cf8['id']===_0x4c8c1f['id']);this['revisionViews']['remove'](_0x4db215);}}class Ni extends _0x2a78ea{constructor(_0x554259){super(_0x554259);const _0x411ff7=new _0x42ea15();_0x411ff7['content']=_0x3dc43c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x411ff7,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x554259,'Revision\x20history')]}]});}}class Ri extends _0x2a78ea{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x50af7c,_0x5caaf2,_0x46b98d,_0x452787){super(_0x50af7c);const _0xc559d4=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5caaf2,this['_revisionActions']=_0x46b98d,this['_requireRevisionName']=_0x452787,this['on']('select',(_0x177180,_0x1ef203)=>{this['fire']('revisionSelected',_0x1ef203);}),this['on']('setName',(_0x32276b,_0x4c3ecc)=>{this['fire']('revisionSetName',_0x4c3ecc);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Ni(_0x50af7c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xc559d4['if']('isEnabled','ck-disabled',_0x44cc8a=>!_0x44cc8a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x259bb9 of this['_revisions'])this['_addRevision'](_0x259bb9);this['_revisions']['on']('add',(_0x3bb4be,_0x3b30a2)=>{this['_addRevision'](_0x3b30a2);}),this['_revisions']['on']('remove',(_0x946e97,_0xe2a145)=>{this['_removeRevision'](_0xe2a145);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x15853b=>_0x15853b['revisionViews']['map'](_0x421ac7=>_0x421ac7))['flat']();}['selectRevision'](_0x447a2e){for(const _0x14b803 of this['revisionViews'])_0x447a2e&&_0x447a2e['id']===_0x14b803['id']?_0x14b803['select']():_0x14b803['deselect']();}['highlightRevisions'](_0xd1d079){for(const _0x1155aa of this['revisionViews'])_0xd1d079['some'](({id:_0x3a739e})=>_0x3a739e===_0x1155aa['id'])?_0x1155aa['highlight']():_0x1155aa['unhighlight']();}['_addRevision'](_0x3f0f7b){const _0x306c32=ki(_0x3f0f7b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5e6f9a=this['timePeriodViews']['get'](0x0);_0x5e6f9a&&_0x5e6f9a['startDate']['getTime']()===_0x306c32['getTime']()||(_0x5e6f9a=new ji(this['locale'],_0x306c32,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5e6f9a)),_0x5e6f9a['addRevision'](_0x3f0f7b);}['_removeRevision'](_0x384f3a){const _0x48214c=ki(_0x384f3a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x48214c)['removeRevision'](_0x384f3a);}['_getTimePeriodViewByStartDate'](_0x4a3659){return this['timePeriodViews']['find'](_0x43a5f6=>_0x43a5f6['startDate']['getTime']()===_0x4a3659['getTime']());}}class d extends _0x437c77{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x1e99d3(_0x1eb8e8){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x40944e,_0x204280){super(_0x204280),this['sourceElement']=_0x40944e,this['model']['document']['createRoot']();const _0x2fc0b1=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x2fc0b1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xcd95d,_0x48c6d1){const _0x3d57df=new this(_0xcd95d,_0x48c6d1);return await _0x3d57df['initPlugins'](),await _0x3d57df['ui']['init'](_0xcd95d),await _0x3d57df['data']['init'](_0x3d57df['config']['get']('initialData')||''),_0x3d57df['fire']('ready'),_0x3d57df;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class at extends _0x2182b9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe53315){function _0x25c4f4(_0x4d1acd){return _0x4d1acd['map'](_0x44c87e=>String['fromCharCode'](_0x44c87e))['join']('');}super(_0xe53315),this['result']='end',_0xe53315[_0x25c4f4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25c4f4([0x76,0x69,0x65,0x77])][_0x25c4f4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25c4f4([0x61,0x75,0x74,0x6f]),_0xe53315[_0x25c4f4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x25c4f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25c4f4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x25c4f4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x25c4f4([0x6f,0x6b])});}}class ht extends _0x2182b9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x53c757){if(super(_0x53c757),!this['editor']['config']['get']('revisionHistory'))throw new _0x462c45('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2f105c=>this['_showRevisionViewer']({..._0x2f105c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x120dd8=>this['_closeRevisionViewer'](_0x120dd8)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x6772c3=>this['_restoreRevision'](_0x6772c3)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x38adbe){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x38adbe;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x462794){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x462794);}['getRevision'](_0x1e48c8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1e48c8);}['getRevisions'](_0x2726e4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2726e4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x177e6d=this['editor'],_0x33974e=_0x35fa21(_0x177e6d,p),_0x3607d0=_0x177e6d['plugins']['get']('RevisionTracker'),_0x1f3b2c=_0x177e6d['plugins']['get']('Users')['users'];return _0x33974e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x33974e['lazyRoots'],(_0x33974e['plugins']['push'](at,u,v,class extends _0x2182b9{static get['requires'](){return[u,'Users'];}['init'](){const _0x3b5c39=this['editor']['plugins']['get']('Users');for(const _0x30814f of _0x1f3b2c)_0x30814f['isAnonymous']||_0x3b5c39['getUser'](_0x30814f['id'])||_0x3b5c39['addUser'](_0x30814f);const _0xdcd7a8=_0x3607d0['repository']['getRevisions']();let _0x19b6ee=null;const _0x3ad310=this['editor']['plugins']['get']('RevisionViewer');_0x3ad310['adapter']=_0x3607d0['adapter'],_0x3ad310['bind']('isEnabled')['to'](_0x3607d0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x177e6d,'isReadOnly',_0x45cc1a=>!_0x45cc1a);for(const _0x391b11 of _0xdcd7a8){const _0x56abb6=null===_0x391b11['creator'];if(_0x56abb6&&_0x391b11['toVersion']===_0x391b11['fromVersion'])continue;const _0x3e04f9=_0x391b11['toJSON']();_0x3ad310['addRevisionData'](_0x3e04f9,(_0x135c2a,_0x116b44,_0x543d44)=>{if(_0x56abb6){if(_0x19b6ee)_0x19b6ee['_update'](_0x135c2a,_0x116b44);else{if(!_0x116b44){const _0x5e6a4f=_0x543d44['toJSON']();_0x5e6a4f['id']=_0x3ca1e2(),_0x3607d0['saveRevision'](_0x5e6a4f,_0x543d44['toVersion'])['then'](_0xe6bbc=>{_0x19b6ee=_0xe6bbc;});}}}else _0x391b11['_update'](_0x135c2a,_0x116b44);});}}},d),_0x33974e);}['_enhanceShowRevisionViewerCallback'](){const _0x354da1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x166611=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x40b773=this['editor']['plugins']['get']('Autosave');await _0x40b773['save']();}else await _0x166611['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2f5cab=this['editor']['plugins']['get']('Dialog');_0x2f5cab['isOpen']&&_0x2f5cab['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x363496=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x12e402 of _0x363496)_0x12e402['class']=_0x12e402['class']?_0x12e402['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x3917c8=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x3917c8&&_0x3917c8['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0xe31a56=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0xe31a56&&_0xe31a56['setAttribute']('tabindex','-1');}}const _0x49c4e5=this['_getRevisionViewerEditorConfig']();return _0x354da1(_0x49c4e5)['then'](_0x25b7bb=>{return(this['_viewerEditor']=_0x25b7bb,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'),_0x25b7bb);})['catch'](_0x12329b=>(console['error'](_0x12329b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1e2fe2=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 _0x434681=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2f3c1e of _0x434681)_0x2f3c1e['class']='ck-tab-panel_disabled'===_0x2f3c1e['class']?'':_0x2f3c1e['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x97ee74=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x97ee74&&_0x97ee74['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x4e09a6=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x4e09a6&&_0x4e09a6['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1e2fe2(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4c14f9=this['editor']['plugins']['get']('Annotations');_0x4c14f9['refreshVisibility'](),_0x4c14f9['refreshPositioning']();}});});}['_showRevisionViewer'](_0x533233){const _0x24206f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x22b53e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x50d7fd=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x50d7fd,_0x533233)['then'](_0x352dbb=>(_0x22b53e['style']['display']='block',_0x24206f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x352dbb));}['_closeRevisionViewer'](_0x3ced53){const _0x20b8b4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x20b8b4['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3ced53['destroy']();}async['_restoreRevision'](_0x31d454){const _0x5eeaa5=this['editor'],_0x41b15c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2f5599=_0x5eeaa5['plugins']['get']('RevisionTracker'),_0x454b3e=_0x5eeaa5['plugins']['get']('RevisionHistoryUtils'),_0x3c0043=_0x41b15c['repository']['getRevision'](_0x31d454);let _0xc09e84,_0x4f0c6f,_0x2485ae;try{await _0x454b3e['loadRevisionData'](_0x3c0043,this['adapter']),_0xc09e84=_0x454b3e['getRevisionDocumentData'](_0x3c0043),_0x4f0c6f=_0x454b3e['getRevisionRootsAttributes'](_0x3c0043);}catch(_0x9877b0){return void console['error'](_0x9877b0);}_0x5eeaa5['model']['change'](_0x3cefd4=>{for(const _0x33b030 of Array['from'](_0x5eeaa5['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3cefd4['removeMarker'](_0x33b030);}),_0x41b15c['isReady']=!0x1,_0x5eeaa5['model']['enqueueChange'](_0x3bbe47=>{_0x3bbe47['setSelection'](null),_0x3bbe47['removeSelectionAttribute'](_0x5eeaa5['model']['document']['selection']['getAttributeKeys']());const _0x16621f=Object['keys'](_0xc09e84);for(const _0x14b7ae of _0x5eeaa5['model']['document']['roots'])'$graveyard'!=_0x14b7ae['rootName']&&_0x14b7ae['isAttached']()&&!_0x16621f['includes'](_0x14b7ae['rootName'])&&_0x3bbe47['detachRoot'](_0x14b7ae);for(const _0x4c02e7 of _0x16621f){let _0x47d93d=_0x5eeaa5['model']['document']['getRoot'](_0x4c02e7);_0x47d93d&&_0x47d93d['isAttached']()||(_0x47d93d=_0x3bbe47['addRoot'](_0x4c02e7));const _0x15a86c=_0x4f0c6f[_0x4c02e7],_0x4e6a72=Object['keys'](_0x15a86c),_0x2c8ed5=_0xc09e84[_0x4c02e7];for(const _0x1d41ab of _0x47d93d['getAttributeKeys']())_0x4e6a72['includes'](_0x1d41ab)||_0x3bbe47['removeAttribute'](_0x1d41ab,_0x47d93d);for(const _0x5610b5 of _0x4e6a72)_0x3bbe47['setAttribute'](_0x5610b5,_0x4f0c6f[_0x4c02e7][_0x5610b5],_0x47d93d);_0x3bbe47['remove'](_0x3bbe47['createRangeIn'](_0x47d93d)),_0x3bbe47['insert'](_0x5eeaa5['data']['parse'](_0x2c8ed5,_0x47d93d),_0x47d93d,0x0);}});const _0x564a7c=m(_0x5eeaa5['locale'],'Restored');if(_0x3c0043['name'])_0x2485ae=-0x1==_0x3c0043['name']['indexOf'](_0x564a7c)?_0x564a7c+':\x20'+_0x3c0043['name']:_0x3c0043['name'];else _0x2485ae=_0x564a7c+':\x20'+(_0x3c0043['createdAt']['toLocaleDateString'](_0x5eeaa5['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3c0043['createdAt']['toLocaleTimeString'](_0x5eeaa5['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2f5599['saveRevision']({'name':_0x2485ae}),_0x41b15c['isReady']=!0x0,_0x5eeaa5['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,at as RevisionViewerIntegration,fi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,ot 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(_0xb60078){super(_0xb60078),this['_revisionViewer']=_0xb60078['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x13fd46=this['_revisionsRepository']['_revisions'],_0x57d470=this['_createRevisionActions'](),_0x139657=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x13fd46,_0x57d470,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',(_0x348318,_0x1e2761)=>{_0x1e2761['revisionViews']['on']('add',(_0x3c2f78,_0x43a6c5)=>{_0x43a6c5['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)),_0x139657['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4a62d0=this['_revisionsRepository']['getRevision'](0x0);if(_0x4a62d0){const _0x388d86=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4a62d0['id']);this['_revisionViewer']['compare'](_0x4a62d0,_0x388d86);}}['_handleRevisionSelected'](_0x3c4d09,_0x4d9918){const _0x2eb019=this['_revisionsRepository']['getRevision'](_0x4d9918['id']),_0x19d9c8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2eb019['id']);this['_revisionViewer']['compare'](_0x2eb019,_0x19d9c8);}['_handleRevisionSetName'](_0x16e416,_0x3c134f){this['_revisionsRepository']['getRevision'](_0x3c134f['id'])['setName'](_0x3c134f['name']);}['_handleDiffChange'](_0x42c5a0,_0x337b01,_0x582094){const _0x4086ff=this['_revisionsRepository']['getRevisionsInDiff'](_0x582094);_0x4086ff['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4086ff),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4086ff[0x0]));}['_createRevisionActions'](){const _0x5556ec=this['editor'],_0xed3227=d['availableRevisionActions'],_0x5ba298=_0x5556ec['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x5ba298['length'])return _0x5ba298['map'](_0x5a9011=>{const _0x37e176='string'==typeof _0x5a9011?Object['assign']({},_0xed3227[_0x5a9011]):_0x5a9011;return _0x37e176['action']=_0x37e176['action']['bind'](this,_0x5556ec),_0x37e176['isVisible']&&(_0x37e176['isVisible']=_0x37e176['isVisible']['bind'](this,_0x5556ec)),_0x37e176;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xe8fd6c},_0x443516)=>{const _0x3dc998=_0xe8fd6c['get'](u),_0x43a698=_0x3dc998['repository'];let _0x3d092e=_0x3dc998['diff']['newRevisionId'],_0x305dad=_0x443516['id'];_0x43a698['getIndex'](_0x3d092e)>_0x43a698['getIndex'](_0x305dad)&&([_0x3d092e,_0x305dad]=[_0x305dad,_0x3d092e]),_0x3dc998['compare'](_0x3d092e,_0x305dad);},'isVisible':({plugins:_0x451106},_0x19ba0b)=>{const _0x4da8f5=_0x451106['get'](u);return!(_0x4da8f5['repository']['getRevisionsInDiff'](_0x4da8f5['diff'])['length']>0x2)&&!_0x19ba0b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x478ef4,{id:_0x4fee06})=>{_0x478ef4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4fee06);},'isVisible':({plugins:_0x568729},_0x34cd54)=>!!_0x568729['get'](u)['repository']['getLaterVisibleRevision'](_0x34cd54['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xb93727},{id:_0x4d2ca1,revisionNameView:_0x21573b})=>{const _0x5684f7=_0xb93727['get'](u),_0x245613=_0x5684f7['repository']['getEarlierVisibleRevision'](_0x4d2ca1);_0x5684f7['compare'](_0x4d2ca1,_0x245613),_0x21573b['focus'](),_0x21573b['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4d049b,_0x49525e){super(_0x4d049b),this['_view']=_0x49525e,this['_toolbarConfig']=st(_0x4d049b['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x3f6a86){const _0x511a21=this['editor'],_0x1d7746=this['view'],_0x2b32f7=_0x511a21['editing']['view'],_0x3581e8=_0x1d7746['editable'],_0x1d31f0=_0x2b32f7['document']['getRoot']();_0x3581e8['name']=_0x1d31f0['rootName'],_0x1d7746['render']();const _0x465d83=_0x3581e8['element'];this['setEditableElement'](_0x3581e8['name'],_0x465d83),_0x1d7746['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2b32f7['attachDomRoot'](_0x465d83),this['_elementReplacer']['replace'](_0x3f6a86,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1752d2=this['view'],_0x16b25c=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x16b25c['detachDomRoot'](_0x1752d2['editable']['name']),_0x1752d2['destroy']();}['_initToolbar'](){const _0xeafae2=this['view'];_0xeafae2['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xeafae2['stickyPanel']['limiterElement']=_0xeafae2['element'],_0xeafae2['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2a8e0d})=>_0x2a8e0d),_0xeafae2['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xeafae2['toolbar']);}}class ii extends _0x55e167{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4187c3,_0x33ab9d,_0x28d691={}){super(_0x4187c3),this['stickyPanel']=new _0x768968(_0x4187c3),this['toolbar']=new _0x44ce47(_0x4187c3,{'shouldGroupWhenFull':_0x28d691['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x4187c3,_0x33ab9d);}['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
|
+
_0x1e9f0a(_0x3e40f0){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x18d565,_0x28adf3){super(_0x28adf3),this['sourceElement']=_0x18d565,this['model']['document']['createRoot']();const _0x12e27f=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x12e27f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3b1948,_0x1e1b3a){const _0x507606=new this(_0x3b1948,_0x1e1b3a);return await _0x507606['initPlugins'](),await _0x507606['ui']['init'](_0x3b1948),await _0x507606['data']['init'](_0x507606['config']['get']('initialData')||''),_0x507606['fire']('ready'),_0x507606;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x437c77{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d71d4){function _0x4eb7de(_0x1c31db){return _0x1c31db['map'](_0x524c68=>String['fromCharCode'](_0x524c68))['join']('');}super(_0x1d71d4),this['result']='end',_0x1d71d4[_0x4eb7de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eb7de([0x76,0x69,0x65,0x77])][_0x4eb7de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4eb7de([0x61,0x75,0x74,0x6f]),_0x1d71d4[_0x4eb7de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4eb7de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4eb7de([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4eb7de([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4eb7de([0x6f,0x6b])});}}class ct extends _0x437c77{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x49bb37){if(super(_0x49bb37),!this['editor']['config']['get']('revisionHistory'))throw new _0x23ee96('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xc2e3f=>this['_showRevisionViewer']({..._0xc2e3f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x365e8b=>this['_closeRevisionViewer'](_0x365e8b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3bf194=>this['_restoreRevision'](_0x3bf194)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x116ba6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x116ba6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3be854){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3be854);}['getRevision'](_0x33a8db){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x33a8db);}['getRevisions'](_0x462d9b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x462d9b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1e34bb=this['editor'],_0x178558=_0x254a4b(_0x1e34bb,p),_0x4a2de8=_0x1e34bb['plugins']['get']('RevisionTracker'),_0x45e785=_0x1e34bb['plugins']['get']('Users')['users'];return _0x178558['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x178558['lazyRoots'],(_0x178558['plugins']['push'](ht,u,v,class extends _0x437c77{static get['requires'](){return[u,'Users'];}['init'](){const _0x3c0ffa=this['editor']['plugins']['get']('Users');for(const _0x31a2af of _0x45e785)_0x31a2af['isAnonymous']||_0x3c0ffa['getUser'](_0x31a2af['id'])||_0x3c0ffa['addUser'](_0x31a2af);const _0xdbe6dd=_0x4a2de8['repository']['getRevisions']();let _0x57deba=null;const _0x4190df=this['editor']['plugins']['get']('RevisionViewer');_0x4190df['adapter']=_0x4a2de8['adapter'],_0x4190df['bind']('isEnabled')['to'](_0x4a2de8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1e34bb,'isReadOnly',_0x21b153=>!_0x21b153);for(const _0x346ccc of _0xdbe6dd){const _0x308724=null===_0x346ccc['creator'];if(_0x308724&&_0x346ccc['toVersion']===_0x346ccc['fromVersion'])continue;const _0x14ad4b=_0x346ccc['toJSON']();_0x4190df['addRevisionData'](_0x14ad4b,(_0x410891,_0x3840cf,_0x22511c)=>{if(_0x308724){if(_0x57deba)_0x57deba['_update'](_0x410891,_0x3840cf);else{if(!_0x3840cf){const _0x1aa30d=_0x22511c['toJSON']();_0x1aa30d['id']=_0x544ff4(),_0x4a2de8['saveRevision'](_0x1aa30d,_0x22511c['toVersion'])['then'](_0xd18015=>{_0x57deba=_0xd18015;});}}}else _0x346ccc['_update'](_0x410891,_0x3840cf);});}}},d),_0x178558);}['_enhanceShowRevisionViewerCallback'](){const _0x1941fe=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5d120b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x58df77=this['editor']['plugins']['get']('Autosave');await _0x58df77['save']();}else await _0x5d120b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x16a4a2=this['editor']['plugins']['get']('Dialog');_0x16a4a2['isOpen']&&_0x16a4a2['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x495f2d=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x57a765 of _0x495f2d)_0x57a765['class']=_0x57a765['class']?_0x57a765['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x189405=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x189405&&_0x189405['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x66d7d0=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x66d7d0&&_0x66d7d0['setAttribute']('tabindex','-1');}}const _0x304830=this['_getRevisionViewerEditorConfig']();return _0x1941fe(_0x304830)['then'](_0x5f011a=>{return(this['_viewerEditor']=_0x5f011a,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'),_0x5f011a);})['catch'](_0x251f9f=>(console['error'](_0x251f9f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4d9a4f=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 _0x3d6f89=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x55ba6c of _0x3d6f89)_0x55ba6c['class']='ck-tab-panel_disabled'===_0x55ba6c['class']?'':_0x55ba6c['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x88c8da=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x88c8da&&_0x88c8da['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x3bebd4=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x3bebd4&&_0x3bebd4['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4d9a4f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x12d68d=this['editor']['plugins']['get']('Annotations');_0x12d68d['refreshVisibility'](),_0x12d68d['refreshPositioning']();}});});}['_showRevisionViewer'](_0x53880a){const _0x3e7d4b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1c4820=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x12e118=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x12e118,_0x53880a)['then'](_0x184db7=>(_0x1c4820['style']['display']='block',_0x3e7d4b['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x184db7));}['_closeRevisionViewer'](_0x3b5e3e){const _0x5041fb=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5041fb['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3b5e3e['destroy']();}async['_restoreRevision'](_0x3707d4){const _0x2f51bf=this['editor'],_0x3312b5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xcaa060=_0x2f51bf['plugins']['get']('RevisionTracker'),_0x973a5f=_0x2f51bf['plugins']['get']('RevisionHistoryUtils'),_0x3ecc04=_0x3312b5['repository']['getRevision'](_0x3707d4);let _0x2aa4c0,_0x19b3f1,_0x473ebd;try{await _0x973a5f['loadRevisionData'](_0x3ecc04,this['adapter']),_0x2aa4c0=_0x973a5f['getRevisionDocumentData'](_0x3ecc04),_0x19b3f1=_0x973a5f['getRevisionRootsAttributes'](_0x3ecc04);}catch(_0x4b8ffe){return void console['error'](_0x4b8ffe);}_0x2f51bf['model']['change'](_0x422ad7=>{for(const _0x485cb3 of Array['from'](_0x2f51bf['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x422ad7['removeMarker'](_0x485cb3);}),_0x3312b5['isReady']=!0x1,_0x2f51bf['model']['enqueueChange'](_0x258905=>{_0x258905['setSelection'](null),_0x258905['removeSelectionAttribute'](_0x2f51bf['model']['document']['selection']['getAttributeKeys']());const _0x319238=Object['keys'](_0x2aa4c0);for(const _0xa55688 of _0x2f51bf['model']['document']['roots'])'$graveyard'!=_0xa55688['rootName']&&_0xa55688['isAttached']()&&!_0x319238['includes'](_0xa55688['rootName'])&&_0x258905['detachRoot'](_0xa55688);for(const _0x415fa5 of _0x319238){let _0x3acead=_0x2f51bf['model']['document']['getRoot'](_0x415fa5);_0x3acead&&_0x3acead['isAttached']()||(_0x3acead=_0x258905['addRoot'](_0x415fa5));const _0x4326c3=_0x19b3f1[_0x415fa5],_0x296453=Object['keys'](_0x4326c3),_0x61672b=_0x2aa4c0[_0x415fa5];for(const _0x4d412f of _0x3acead['getAttributeKeys']())_0x296453['includes'](_0x4d412f)||_0x258905['removeAttribute'](_0x4d412f,_0x3acead);for(const _0x1c24cd of _0x296453)_0x258905['setAttribute'](_0x1c24cd,_0x19b3f1[_0x415fa5][_0x1c24cd],_0x3acead);_0x258905['remove'](_0x258905['createRangeIn'](_0x3acead)),_0x258905['insert'](_0x2f51bf['data']['parse'](_0x61672b,_0x3acead),_0x3acead,0x0);}});const _0x51be27=m(_0x2f51bf['locale'],'Restored');if(_0x3ecc04['name'])_0x473ebd=-0x1==_0x3ecc04['name']['indexOf'](_0x51be27)?_0x51be27+':\x20'+_0x3ecc04['name']:_0x3ecc04['name'];else _0x473ebd=_0x51be27+':\x20'+(_0x3ecc04['createdAt']['toLocaleDateString'](_0x2f51bf['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3ecc04['createdAt']['toLocaleTimeString'](_0x2f51bf['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xcaa060['saveRevision']({'name':_0x473ebd}),_0x3312b5['isReady']=!0x0,_0x2f51bf['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,bi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|