@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250622.0 → 0.0.0-nightly-20250624.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x341f63(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4d6c71){super(),this['id']=_0x4d6c71['id']||_0x32c609(),this['creator']=_0x4d6c71['creator']||null,this['authors']=_0x4d6c71['authors']||[],this['diffData']=_0x4d6c71['diffData']||null,this['toVersion']=_0x4d6c71['toVersion']||0x0,this['fromVersion']=_0x4d6c71['fromVersion']||0x0,this['set']('name',_0x4d6c71['name']||''),this['set']('createdAt',_0x4d6c71['createdAt']||new Date()),this['set']('attributes',_0x4d6c71['attributes']||{});}['setName'](_0xd9b7e3){this['_update']({'name':_0xd9b7e3});}['setAttribute'](_0x200903,_0x2a1538){const _0x3adc11=_0x17cd32(this['attributes']);_0x53e39b(_0x3adc11,_0x200903,_0x2a1538),this['_update']({'attributes':_0x3adc11});}['removeAttribute'](_0x1cd571){const _0x2abc99=_0x17cd32(this['attributes']);_0x5f480e(_0x2abc99,_0x1cd571),this['_update']({'attributes':_0x2abc99});}['_update'](_0x4d5875,_0x43e0c3=!0x1){let _0xf79deb=!0x1;const _0x3f9b0c={'id':this['id']},_0x2d1236=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x46deea of _0x2d1236){const _0x4f2a3b=_0x4d5875[_0x46deea];void 0x0!==_0x4f2a3b&&_0x4f2a3b!==this[_0x46deea]&&(this[_0x46deea]=_0x4f2a3b,_0x3f9b0c[_0x46deea]=_0x4f2a3b,_0xf79deb=!0x0);}_0xf79deb&&(_0x3f9b0c['authors']&&(_0x3f9b0c['authorsIds']=_0x3f9b0c['authors']['map'](_0x1e12c8=>_0x1e12c8['id']),delete _0x3f9b0c['authors']),this['fire']('_update',_0x3f9b0c,_0x43e0c3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3218b5=>_0x3218b5['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x312da3{['_revisions'];static get['requires'](){return[_0x1529b6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x23fa87){super(_0x23fa87),this['_revisions']=new _0xd590b5();}['afterInit'](){!async function(_0x28dffc){const _0x31866b=_0x180490([0x49,0x73,0x65,0x45,0x67,0x6c,0x34,0x43,0x51,0x50,0x71,0x4f,0x6a,0x33,0x32,0x68,0x61,0x64,0x37,0x66,0x41,0x58,0x74,0x56,0x79,0x62,0x31,0x35,0x6e,0x39,0x54,0x52,0x6d,0x6f,0x30,0x36,0x75,0x5a,0x53,0x77,0x4e,0x76,0x72,0x55,0x4d,0x4a,0x78,0x38,0x46,0x44,0x4b,0x42,0x47,0x59,0x6b,0x63,0x69,0x7a,0x4c,0x48,0x57,0x70]),_0x2e6376=0xeb829,_0x4e3c3f=0x50e33925,_0x109225=0x50e4525d^_0x4e3c3f,_0x25c493=window[_0x180490([0x44,0x61,0x74,0x65])][_0x180490([0x6e,0x6f,0x77])](),_0x58e12c=_0x28dffc[_0x180490([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c1f60=new window[(_0x180490([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xff5b33=>{_0x58e12c[_0x180490([0x6f,0x6e,0x63,0x65])](_0x180490([0x72,0x65,0x61,0x64,0x79]),_0xff5b33);}),_0x366d44={[_0x180490([0x6b,0x74,0x79])]:_0x180490([0x45,0x43]),[_0x180490([0x75,0x73,0x65])]:_0x180490([0x73,0x69,0x67]),[_0x180490([0x63,0x72,0x76])]:_0x180490([0x50,0x2d,0x32,0x35,0x36]),[_0x180490([0x78])]:_0x180490([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]),[_0x180490([0x79])]:_0x180490([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]),[_0x180490([0x61,0x6c,0x67])]:_0x180490([0x45,0x53,0x32,0x35,0x36])},_0x2b1676=_0x58e12c[_0x180490([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x180490([0x67,0x65,0x74])](_0x180490([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c18ae(){let _0x534afa,_0x24ae3d=null,_0x42c3d3=null;try{if(_0x2b1676==_0x180490([0x47,0x50,0x4c]))return _0x180490([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x534afa=_0x3afeff(),!_0x534afa)return _0x180490([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x534afa[_0x180490([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42c3d3=_0x292a94(_0x534afa[_0x180490([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x534afa[_0x180490([0x6a,0x74,0x69])])),await _0x50fdca()?_0x5888b8()?_0x571e99()?_0x180490([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14e46e()?(_0x534afa[_0x180490([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x180490([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24ae3d=_0x2feb26(_0x180490([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x534afa[_0x180490([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x180490([0x74,0x72,0x69,0x61,0x6c])&&(_0x24ae3d=_0x2feb26(_0x180490([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x380f66()):_0x180490([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x180490([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x180490([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x180490([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x571e99(){const _0x42959a=[_0x180490([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x180490([0x74,0x72,0x69,0x61,0x6c])][_0x180490([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x534afa[_0x180490([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25c493/0x3e8:0xe10*_0x109225;return _0x534afa[_0x180490([0x65,0x78,0x70])]<_0x42959a;}function _0x5888b8(){const _0x416b0d=_0x534afa[_0x180490([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x416b0d)return!0x1;if(_0x416b0d[_0x180490([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x180490([0x2a])))return!0x0;if(_0x416b0d[_0x180490([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x180490([0x52,0x48])))return!0x0;if(_0x416b0d[_0x180490([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x180490([0x52,0x52,0x48]))){if(_0x190f92())return!0x0;if(_0x143d19()||_0xb5c594())return!0x0;}return!0x1;}function _0x14e46e(){const _0x573ddc=_0x534afa[_0x180490([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x573ddc||0x0==_0x573ddc[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x554477}=new URL(window[_0x180490([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x573ddc[_0x180490([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554477))return!0x0;const _0x494c78=_0x554477[_0x180490([0x73,0x70,0x6c,0x69,0x74])](_0x180490([0x2e]));return _0x573ddc[_0x180490([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41777f=>_0x41777f[_0x180490([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x180490([0x2a])))[_0x180490([0x6d,0x61,0x70])](_0x4ecbf7=>_0x4ecbf7[_0x180490([0x73,0x70,0x6c,0x69,0x74])](_0x180490([0x2e])))[_0x180490([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e5f0c=>_0x4e5f0c[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x494c78[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x180490([0x6d,0x61,0x70])](_0x1eaa8b=>Array(_0x494c78[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1eaa8b[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x180490([0x66,0x69,0x6c,0x6c])](_0x1eaa8b[0x0]===_0x180490([0x2a])?_0x180490([0x2a]):'')[_0x180490([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1eaa8b))[_0x180490([0x73,0x6f,0x6d,0x65])](_0x46d9a0=>_0x494c78[_0x180490([0x65,0x76,0x65,0x72,0x79])]((_0x20727f,_0xa944bd)=>_0x46d9a0[_0xa944bd]===_0x20727f||_0x46d9a0[_0xa944bd]===_0x180490([0x2a])));}function _0x380f66(){return _0x24ae3d&&_0x42c3d3?new window[(_0x180490([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x149ee1,_0x55dc4)=>{_0x24ae3d[_0x180490([0x74,0x68,0x65,0x6e])](_0x149ee1,_0x55dc4),_0x42c3d3[_0x180490([0x74,0x68,0x65,0x6e])](_0x3f9663=>{_0x3f9663!=_0x180490([0x56,0x61,0x6c,0x69,0x64])&&_0x149ee1(_0x3f9663);},_0x55dc4);}):_0x24ae3d||_0x42c3d3||_0x180490([0x56,0x61,0x6c,0x69,0x64]);}}function _0x292a94(_0x4595f0,_0x30fa95){return new window[(_0x180490([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52a162=>{if(_0x187341())return _0x52a162(_0x180490([0x56,0x61,0x6c,0x69,0x64]));_0x410a2f(),_0x58e12c[_0x180490([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x180490([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b0a52=!0x1;const _0xf238bf=_0x32c609();function _0x4763c9(_0x867680){return!!_0x867680&&(typeof _0x867680===_0x180490([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x867680===_0x180490([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x867680[_0x180490([0x74,0x68,0x65,0x6e])]===_0x180490([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x867680[_0x180490([0x63,0x61,0x74,0x63,0x68])]===_0x180490([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2576d5(_0x2fcb0d){_0x1bbc85(_0x2fcb0d)[_0x180490([0x74,0x68,0x65,0x6e])](_0xcd9328=>{if(!_0xcd9328||_0xcd9328[_0x180490([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x180490([0x6f,0x6b]))return _0x180490([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x16fe79(_0x107547(_0xf238bf+_0x30fa95))!=_0xcd9328[_0x180490([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x180490([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x180490([0x56,0x61,0x6c,0x69,0x64]);})[_0x180490([0x74,0x68,0x65,0x6e])](_0x15192a=>(_0x4f58ca(),_0x15192a),()=>{const _0x90364=_0x18f738();return null==_0x90364?(_0x4f58ca(),_0x180490([0x56,0x61,0x6c,0x69,0x64])):_0x180490(_0x25c493-_0x90364>(0x74efbd25^_0x4e3c3f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x180490([0x74,0x68,0x65,0x6e])](_0x52a162)[_0x180490([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52a162(_0x180490([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x171bcf=0x50d5d7a5^_0x4e3c3f;function _0x4f58ca(){const _0x47619f=_0x180490([0x6c,0x6c,0x63,0x74,0x2d])+_0x16fe79(_0x107547(_0x4595f0)),_0x571800=_0x45e244(_0x16fe79(window[_0x180490([0x4d,0x61,0x74,0x68])][_0x180490([0x63,0x65,0x69,0x6c])](_0x25c493/_0x171bcf)));window[_0x180490([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x180490([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47619f,_0x571800);}function _0x18f738(){const _0x18f5e9=_0x180490([0x6c,0x6c,0x63,0x74,0x2d])+_0x16fe79(_0x107547(_0x4595f0)),_0x6946a2=window[_0x180490([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x180490([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18f5e9);return _0x6946a2?window[_0x180490([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45e244(_0x6946a2),0x10)*_0x171bcf:null;}function _0x1bbc85(_0x114967){return new window[(_0x180490([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c046e,_0x10e4b0)=>{_0x114967[_0x180490([0x74,0x68,0x65,0x6e])](_0x1c046e,_0x10e4b0),window[_0x180490([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10e4b0,0x50e2ede5^_0x4e3c3f);});}}_0x58e12c[_0x180490([0x6f,0x6e])](_0x180490([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c533a,_0x5df32e)=>{if(_0x5df32e[0x0]!=_0x4595f0)return _0x52a162(_0x180490([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5df32e[0x1]={..._0x5df32e[0x1],[_0x180490([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf238bf};},{[_0x180490([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x180490([0x68,0x69,0x67,0x68])}),_0x58e12c[_0x180490([0x6f,0x6e])](_0x180490([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57f583=>{_0x4763c9(_0x57f583[_0x180490([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b0a52=!0x0,_0x2576d5(_0x57f583[_0x180490([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x180490([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x180490([0x6c,0x6f,0x77])}),_0x2c1f60[_0x180490([0x74,0x68,0x65,0x6e])](()=>{_0x5b0a52||_0x52a162(_0x180490([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x187341(){return _0x58e12c[_0x180490([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x180490([0x76,0x69,0x65,0x77])][_0x180490([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x180490([0x61,0x75,0x74,0x6f]);}function _0x410a2f(){_0x58e12c[_0x180490([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x180490([0x76,0x69,0x65,0x77])][_0x180490([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x180490([0x61,0x75,0x74,0x6f]);}}function _0x2feb26(_0x505e07){const _0x1d4083=[new window[(_0x180490([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x578c83=>setTimeout(_0x578c83,0x50ea07e9^_0x4e3c3f)),_0x2c1f60[_0x180490([0x74,0x68,0x65,0x6e])](()=>new window[(_0x180490([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x304e2b=>{const _0x407ff5=0x50e33922^_0x4e3c3f,_0x286017=_0x28dffc[_0x180490([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x30ed77(){_0x286017[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x407ff5&&_0x304e2b();}_0x30ed77(),_0x286017[_0x180490([0x6f,0x6e])](_0x180490([0x61,0x64,0x64]),_0x30ed77);})),new window[(_0x180490([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e0271=>{function _0x36d1ad(){for(const _0x11224a in window)if(window[_0x180490([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x180490([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x11224a))&&window[_0x11224a]==_0x2e6376)return _0x4e0271();_0x58e12c[_0x180490([0x73,0x74,0x61,0x74,0x65])]!=_0x180490([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x180490([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36d1ad,0x50e32aad^_0x4e3c3f);}_0x2b060e(_0x180490([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x36d1ad();})];return window[_0x180490([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x180490([0x72,0x61,0x63,0x65])](_0x1d4083)[_0x180490([0x74,0x68,0x65,0x6e])](()=>_0x505e07);}async function _0x169ef1(){if(await _0x2c1f60,_0x2b060e(_0x180490([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x29d883=_0x28dffc[_0x180490([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1475bf=_0x28dffc[_0x180490([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])](_0x29d883[_0x180490([0x69,0x64])]),_0x20231e=_0x442155(_0x180490([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x20231e[_0x180490([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x29d883['id'],_0x1475bf?_0x1475bf['id']:null,!0x0),_0x20231e[_0x180490([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x180490([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x20231e[_0x180490([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x20231e[_0x180490([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x54a23b,void(_0x20231e[_0x180490([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x54a23b);}if(_0x2b060e(_0x180490([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x14e6d3=_0x442155(_0x180490([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x14e6d3[_0x180490([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x180490([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x14e6d3[_0x180490([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x14e6d3[_0x180490([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x54a23b,_0x14e6d3[_0x180490([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x54a23b;}_0x58e12c[_0x180490([0x6d,0x6f,0x64,0x65,0x6c])][_0x180490([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54a23b,_0x58e12c[_0x180490([0x6d,0x6f,0x64,0x65,0x6c])][_0x180490([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54a23b,_0x58e12c[_0x180490([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x180490([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x190f92(){return _0x2b060e(_0x180490([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x442155(_0x180490([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x180490([0x73,0x74,0x61,0x74,0x65])]==_0x180490([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x143d19(){return _0x2b060e(_0x180490([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 _0xb5c594(){return _0x2b060e(_0x180490([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x393e2b(_0x5b84d7){const _0x5f200d=_0x58e88e();_0x58e12c[_0x5f200d]=_0x180490([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])+_0x5b84d7,_0x5b84d7[_0x180490([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x180490([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x58e88e()]=_0x2e6376),_0x5b84d7!=_0x180490([0x56,0x61,0x6c,0x69,0x64])&&_0x169ef1();}function _0x58e88e(){const _0x2cea51=window[_0x180490([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x180490([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x180490([0x6e,0x6f,0x77])]())[_0x180490([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x180490([0x2e]),'');let _0x205fc3=_0x180490([0x49]);for(let _0x4a8a70=0x0;_0x4a8a70<_0x2cea51[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a8a70+=0x2){let _0x1a654f=window[_0x180490([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cea51[_0x180490([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a8a70,_0x4a8a70+0x2));_0x1a654f>=_0x31866b[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a654f-=_0x31866b[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x205fc3+=_0x31866b[_0x1a654f];}return _0x205fc3;}function _0x3afeff(){const _0x2aa6ff=_0x2b1676[_0x180490([0x73,0x70,0x6c,0x69,0x74])](_0x180490([0x2e]));if(0x3!=_0x2aa6ff[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27e138(_0x2aa6ff[0x1]);function _0x27e138(_0x16d863){const _0x16d0cf=_0x2e215b(_0x16d863);return _0x16d0cf&&_0x824adb()?_0x16d0cf:null;function _0x824adb(){const _0x9dea69=_0x16d0cf[_0x180490([0x6a,0x74,0x69])],_0x80ae56=window[_0x180490([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9dea69[_0x180490([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9dea69[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x582569={..._0x16d0cf,[_0x180490([0x6a,0x74,0x69])]:_0x9dea69[_0x180490([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9dea69[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x582569[_0x180490([0x76,0x63])],_0x107547(_0x582569)==_0x80ae56;}}}async function _0x50fdca(){let _0x2baf6e=!0x0;try{const _0x309b9b=_0x2b1676[_0x180490([0x73,0x70,0x6c,0x69,0x74])](_0x180490([0x2e])),[_0x5eb2e2,_0x2e2ec1,_0x1272be]=_0x309b9b;return _0x5621c2(_0x5eb2e2),await _0x3a9b45(_0x5eb2e2,_0x2e2ec1,_0x1272be),_0x2baf6e;}catch{return!0x1;}function _0x5621c2(_0x1d86b7){const _0x1f0ffd=_0x2e215b(_0x1d86b7);_0x1f0ffd&&_0x1f0ffd[_0x180490([0x61,0x6c,0x67])]==_0x180490([0x45,0x53,0x32,0x35,0x36])||(_0x2baf6e=!0x1);}async function _0x3a9b45(_0x5dc5e1,_0x328df0,_0xd604db){const _0x4e9cec=window[_0x180490([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x180490([0x66,0x72,0x6f,0x6d])](_0x204841(_0xd604db),_0xe2e9d2=>_0xe2e9d2[_0x180490([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a4f85=new window[(_0x180490([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x180490([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5dc5e1+_0x180490([0x2e])+_0x328df0),_0x32ccd0=window[_0x180490([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x180490([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32ccd0)return;const _0x522099=await _0x32ccd0[_0x180490([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x180490([0x6a,0x77,0x6b]),_0x366d44,{[_0x180490([0x6e,0x61,0x6d,0x65])]:_0x180490([0x45,0x43,0x44,0x53,0x41]),[_0x180490([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x180490([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x180490([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32ccd0[_0x180490([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x180490([0x6e,0x61,0x6d,0x65])]:_0x180490([0x45,0x43,0x44,0x53,0x41]),[_0x180490([0x68,0x61,0x73,0x68])]:{[_0x180490([0x6e,0x61,0x6d,0x65])]:_0x180490([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x522099,_0x4e9cec,_0x4a4f85)||(_0x2baf6e=!0x1);}}function _0x2e215b(_0x1b5e08){return _0x1b5e08[_0x180490([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x180490([0x65,0x79]))?JSON[_0x180490([0x70,0x61,0x72,0x73,0x65])](_0x204841(_0x1b5e08)):null;}function _0x204841(_0x2b7e2f){return window[_0x180490([0x61,0x74,0x6f,0x62])](_0x2b7e2f[_0x180490([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x180490([0x2b]))[_0x180490([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x180490([0x2f])));}function _0x107547(_0x428804){let _0x325652=0x1505;function _0x2590ab(_0x53896f){for(let _0x2c4ac5=0x0;_0x2c4ac5<_0x53896f[_0x180490([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c4ac5++){const _0x288719=_0x53896f[_0x180490([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c4ac5);_0x325652=(_0x325652<<0x5)+_0x325652+_0x288719,_0x325652&=_0x325652;}}function _0x4314ca(_0x9ffa77){Array[_0x180490([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9ffa77)?_0x9ffa77[_0x180490([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4314ca):_0x9ffa77&&typeof _0x9ffa77==_0x180490([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x180490([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9ffa77)[_0x180490([0x73,0x6f,0x72,0x74])]()[_0x180490([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xed80f3,_0x3ef2f9])=>{_0x2590ab(_0xed80f3),_0x4314ca(_0x3ef2f9);}):_0x2590ab(window[_0x180490([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9ffa77));}return _0x4314ca(_0x428804),_0x325652>>>0x0;}function _0x16fe79(_0x2f6fda){return _0x2f6fda[_0x180490([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x180490([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x180490([0x30]));}function _0x45e244(_0x33012e){return _0x33012e[_0x180490([0x73,0x70,0x6c,0x69,0x74])]('')[_0x180490([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x180490([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b060e(_0x7389b9){return _0x58e12c[_0x180490([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x180490([0x68,0x61,0x73])](_0x7389b9);}function _0x442155(_0x6dfd62){return _0x58e12c[_0x180490([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x180490([0x67,0x65,0x74])](_0x6dfd62);}function _0x54a23b(){}function _0x180490(_0x24c4c6){return _0x24c4c6['map'](_0x3dac8b=>String['fromCharCode'](_0x3dac8b))['join']('');}_0x393e2b(await _0x1c18ae());}(this);}['createRevision'](_0x56d855){const _0x17e3c6=this['editor']['plugins']['get']('Users');return new I({'id':_0x56d855['id'],'name':_0x56d855['name'],'creator':_0x56d855['creatorId']?_0x17e3c6['getUser'](_0x56d855['creatorId']):null,'diffData':_0x56d855['diffData']||_0x56d855['data'],'authors':_0x56d855['authorsIds']['map'](_0x45931d=>_0x17e3c6['getUser'](_0x45931d)),'createdAt':new Date(_0x56d855['createdAt']),'attributes':_0x56d855['attributes'],'fromVersion':_0x56d855['fromVersion'],'toVersion':_0x56d855['toVersion']});}['addRevision'](_0x4fcde3,_0x5b4597=0x0){this['_revisions']['add'](_0x4fcde3,_0x5b4597);}['getRevision'](_0x556a84){return this['_revisions']['get'](_0x556a84);}['getRevisions'](_0x415a4e={'toJSON':!0x1}){const _0x37375a=Array['from'](this['_revisions']);return _0x37375a['reverse'](),_0x415a4e['toJSON']?_0x37375a['map'](_0x3f98e7=>_0x3f98e7['toJSON']()):_0x37375a;}['getIndex'](_0x565cb7){return this['_revisions']['getIndex'](_0x565cb7);}['getEarlierVisibleRevision'](_0x1c5822){const [,_0x23ecb6]=this['getRevisionsIterator'](_0x1c5822,{'direction':'earlier'});return _0x23ecb6;}['getLaterVisibleRevision'](_0x34fcbb){const [,_0x183765]=this['getRevisionsIterator'](_0x34fcbb,{'direction':'later'});return _0x183765;}['getRevisionsInDiff'](_0x4c3fcc){const _0x2fc9da=[];for(const _0x2504d2 of this['getRevisionsIterator'](_0x4c3fcc['newRevisionId']))if(_0x2fc9da['push'](_0x2504d2),_0x2504d2['id']===_0x4c3fcc['oldRevisionId'])break;return _0x2fc9da;}*['getRevisionsIterator'](_0x2c15b3,{direction:_0x59e8d0='earlier',filter:_0x649c16=()=>!0x0}={}){const _0x2dc292='earlier'===_0x59e8d0?0x1:-0x1;let _0x4bf634=this['_revisions']['get'](_0x2c15b3),_0x113685=this['getIndex'](_0x4bf634);for(yield _0x4bf634;_0x4bf634;){if(_0x113685+=_0x2dc292,_0x4bf634=this['getRevision'](_0x113685),!_0x4bf634)return;_0x649c16(_0x4bf634)&&(yield _0x4bf634);}}}class $ extends _0x312da3{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1f2c8b,'c'],[_0x2582e1,'a'],[_0x5b2fed,'e'],[_0xa2f4b6,'r'],[_0x7b46a5,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1f2c8b],['a',_0x2582e1],['e',_0x5b2fed],['r',_0xa2f4b6],['u',_0x7b46a5]]);async['loadRevisionData'](_0x56ab60,_0x1aa6c4){if(_0x56ab60['diffData']||!_0x1aa6c4)return;const _0x5934de=this['editor']['config']['get']('collaboration.channelId'),_0x5e7c2b=await _0x1aa6c4['getRevision']({'channelId':_0x5934de,'revisionId':_0x56ab60['id']});_0x56ab60['diffData']=_0x5e7c2b['diffData'];}['getRevisionDocumentData'](_0x5d50d0){const _0x9b8e87={};for(const _0x5cd1ee in _0x5d50d0['diffData']){if(_0x5d50d0['diffData'][_0x5cd1ee]['attachChange']&&!_0x5d50d0['diffData'][_0x5cd1ee]['attachChange']['isAttached'])continue;const _0x21238a=this['_removeRevisionMarkers'](JSON['parse'](_0x5d50d0['diffData'][_0x5cd1ee]['insertions'])),_0x2f258e=this['editor']['editing']['view']['document'],_0x2f0f42=new _0x217e4e(_0x2f258e,_0x21238a['map'](_0x892b8e=>this['_getViewFromDiffObj'](_0x892b8e,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x9b8e87[_0x5cd1ee]=this['editor']['data']['processor']['toData'](_0x2f0f42),this['editor']['data']['processor']['useFillerType']('default');}return _0x9b8e87;}['getRevisionRootsAttributes'](_0x39ab58){const _0x3627ef={};for(const _0x2a70c4 in _0x39ab58['diffData'])_0x39ab58['diffData'][_0x2a70c4]['attachChange']&&!_0x39ab58['diffData'][_0x2a70c4]['attachChange']['isAttached']||(_0x3627ef[_0x2a70c4]=_0x39ab58['diffData'][_0x2a70c4]['attributesAfter']||{});return _0x3627ef;}['_getTypeCharForViewElement'](_0x260c76){return this['_viewClassToTypeChar']['get'](_0x260c76['constructor']);}['_getViewFromDiffObj'](_0x1c2fa9,_0x33ac4d){const _0x3fd121=this['editor']['editing']['view']['document'];if('string'==typeof _0x1c2fa9)return new _0x4afbf1(_0x3fd121,_0x1c2fa9);{let _0xc4dc7f,_0x3bcb23;_0x3bcb23='u'==_0x1c2fa9['type']||'r'==_0x1c2fa9['type']?[]:_0x1c2fa9['children']['map'](_0x5b9f96=>this['_getViewFromDiffObj'](_0x5b9f96,_0x33ac4d));const _0x433955=this['_typeCharToViewClass']['get'](_0x1c2fa9['type'])||_0x4bea4f,_0x420e5b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0xc4dc7f=new _0x433955(_0x3fd121,_0x1c2fa9['name'],_0x1c2fa9['attributes'],_0x3bcb23),'u'==_0x1c2fa9['type']&&_0x1c2fa9['children'][0x0]){const _0x5df296=_0x1c2fa9['children'][0x0];if(_0xc4dc7f['render']=function(_0x1db7fd){const _0xe21b1a=_0x1db7fd['createElement']('div');return _0xe21b1a['innerHTML']=_0x5df296,_0xe21b1a['childNodes'][0x0];},_0x33ac4d){const _0x1bfeea=new _0x217e4e(_0x3fd121);_0x1bfeea['_appendChild'](_0xc4dc7f);const _0x49d70c=Array['from'](_0x420e5b['viewChildrenToDom'](_0x1bfeea,{'bind':!0x1})),_0x549ce0=_0x420e5b['domDocument']['createElement']('div');_0x549ce0['append'](..._0x49d70c),_0xc4dc7f=Array['from'](_0x420e5b['domChildrenToView'](_0x549ce0))[0x0];}}else{if('r'==_0x1c2fa9['type']&&_0x1c2fa9['children'][0x0]){const _0x1fa63a=_0x1c2fa9['children'][0x0];if(_0xc4dc7f['render']=function(_0x4d1060){_0x4d1060['innerHTML']=_0x1fa63a;},_0x33ac4d){const _0x17bd59=new _0x217e4e(_0x3fd121);_0x17bd59['_appendChild'](_0xc4dc7f);const _0x3f7f5a=Array['from'](_0x420e5b['viewChildrenToDom'](_0x17bd59,{'bind':!0x1})),_0x1b569e=_0x420e5b['domDocument']['createElement']('div');_0x1b569e['append'](..._0x3f7f5a);const _0x12f2be=Array['from'](_0x420e5b['domChildrenToView'](_0x1b569e));_0x12f2be['length']>0x1?_0xc4dc7f['_appendChild'](_0x12f2be):_0xc4dc7f=_0x12f2be[0x0];}}}if(_0x1c2fa9['customProperties']){for(const [_0x31d92d,_0x3214eb]of _0x1c2fa9['customProperties'])_0xc4dc7f['_setCustomProperty'](_0x31d92d,_0x3214eb);}const _0x15f91b=void 0x0===_0x1c2fa9['fillerOffset']?null:_0x1c2fa9['fillerOffset'];return null!==_0x15f91b&&(_0xc4dc7f['getFillerOffset']=()=>_0x15f91b),_0xc4dc7f;}}['_makeModelFromViewString'](_0x493c2d){const _0x33a1be=JSON['parse'](_0x493c2d),_0x3bba3e=this['editor']['editing']['view']['document'],_0xc1566e=new _0x217e4e(_0x3bba3e,_0x33a1be['map'](_0x4b8531=>this['_getViewFromDiffObj'](_0x4b8531,!0x0)));return this['editor']['data']['toModel'](_0xc1566e);}['_removeRevisionMarkers'](_0x3b9bc8){return(_0x3b9bc8=_0x3b9bc8['filter'](_0x4797c4=>!_0x4797c4['name']||'revision-start'!==_0x4797c4['name']&&'revision-end'!==_0x4797c4['name']))['forEach'](_0x34da30=>{'string'!=typeof _0x34da30&&(_0x34da30['children']=this['_removeRevisionMarkers'](_0x34da30['children']),_0x34da30['attributes']=_0x34da30['attributes']['filter'](_0x26af32=>!_0x26af32[0x0]['startsWith']('data-revision-')));}),_0x3b9bc8;}}function R(_0x4c26e9,_0x3a7152,_0x5818a0){const t=_0x4c26e9['t'];switch(_0x3a7152){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'},_0x5818a0);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5818a0);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 _0x312da3{['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[_0x1529b6,S,$,_0x3356c4];}constructor(_0x1e82c4){super(_0x1e82c4),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 _0x1cc389=_0x32c609();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1cc389},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 _0xacc907=this['repository']['getRevision'](0x0),_0x563c30=_0xacc907&&null===_0xacc907['creator']?_0xacc907:null;if(this['_continueCurrentRevision']=!!_0x563c30&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x13a420=this['_source']['getCurrentRevisionId'](),_0x516081=this['repository']['getRevision'](_0x13a420);if(_0x516081)this['_startingVersion']=_0x516081['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x474545=this['_source']['history']['_operations']['find'](_0x2e4c6f=>!_0x2e4c6f['_isInit']),_0x1e5f74=_0x474545?_0x474545['baseVersion']:this['_source']['history']['version'];_0xacc907?(_0xacc907['toVersion']<_0x1e5f74&&_0xacc907['_update']({'toVersion':_0x1e5f74}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x563c30['id'],this['_startingVersion']=_0x563c30['fromVersion']):(this['_startingVersion']=_0xacc907['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1e5f74,this['_continueCurrentRevision']=!0x1);}}else _0x563c30&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x563c30['toVersion'],this['editor']['model']['document']['history']['version']),_0x563c30['fromVersion']===_0x563c30['toVersion']?(0x0!==_0x563c30['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x563c30['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x563c30['id'],this['_startingVersion']=_0x563c30['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',_0x7809b7=>!_0x7809b7),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x47c6ad=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x389204;for(const _0x384471 in _0x47c6ad){const _0x28eec4=_0x384471,_0x34cc71=_0x47c6ad[_0x28eec4];if('revisionHistoryLicenseKeyValid'==_0x34cc71||'revisionHistoryLicenseKeyInvalid'==_0x34cc71||'revisionHistoryLicenseKeyExpired'==_0x34cc71||'revisionHistoryLicenseKeyDomainLimit'==_0x34cc71||'revisionHistoryLicenseKeyNotAllowed'==_0x34cc71||'revisionHistoryLicenseKeyEvaluationLimit'==_0x34cc71||'revisionHistoryLicenseKeyTrialLimit'==_0x34cc71||'revisionHistoryLicenseKeyUsageLimit'==_0x34cc71){delete _0x47c6ad[_0x28eec4],_0x389204=_0x34cc71,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x389204&&_0x47c6ad['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x389204&&_0x47c6ad['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x389204&&_0x47c6ad['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x389204&&_0x47c6ad['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x389204&&_0x47c6ad['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x389204&&_0x47c6ad['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x389204&&_0x47c6ad['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3074af=this['repository']['getRevision'](0x0),_0x587467=await this['getRevisionDocumentData'](_0x3074af),_0x3f19cb=await this['getRevisionRootsAttributes'](_0x3074af);this['_replaceEditorDataWithRevisionData'](_0x587467,_0x3f19cb);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1636c8){this['_source']=_0x1636c8;}async['update'](){const _0x34faa5=await this['_source']['getLatestVersion']();if(_0x34faa5>this['currentRevision']['toVersion']){await this['_loadState']();const _0x58b074=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x34faa5});_0x58b074['authors']=_0x58b074['authorsIds']['map'](_0x48076e=>this['editor']['plugins']['get']('Users')['getUser'](_0x48076e)),this['currentRevision']['_update'](_0x58b074);}}async['saveRevision'](_0x119570={},_0xe96e79=null){const _0x32706c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xe96e79>this['currentRevision']['toVersion']&&(_0xe96e79=null),null===_0xe96e79&&(_0xe96e79=await this['_source']['getLatestVersion']());const _0x1baf27=this['_getFromVersion'](_0xe96e79),_0x15e091=this['buildRevisionData']({'from':_0x1baf27,'to':_0xe96e79});if(this['currentRevision']['toVersion']<_0xe96e79){const _0x2d2368=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xe96e79,'to':_0xe96e79});_0x2d2368['authors']=[],_0x2d2368['authorsIds']=[],_0x2d2368['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2d2368,!0x0),delete _0x2d2368['authors'],_0x32706c['push'](_0x2d2368);}_0x119570['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x119570['name']=_0x119570['name']||null,_0x119570['id']=_0x119570['id']||_0x32c609(),_0x119570={..._0x119570,..._0x15e091};const _0x58f7b3=this['addRevisionData'](_0x119570);_0x32706c['push'](_0x119570);const _0x2f9dc3=this['repository']['getIndex'](_0x58f7b3);if(0x0!==_0x2f9dc3){const _0xaf0509=this['repository']['getRevision'](_0x2f9dc3-0x1);if(_0xaf0509['fromVersion']!==_0xe96e79){const _0x550f38=this['_revisionDataBuilder']['getData'](_0xe96e79,_0xaf0509['toVersion']),_0x1b5add={'id':_0xaf0509['id'],'diffData':_0x550f38['diffData'],'authorsIds':_0x550f38['authorsIds'],'authors':_0x550f38['authorsIds']['map'](_0x9b35d2=>this['editor']['plugins']['get']('Users')['getUser'](_0x9b35d2)),'fromVersion':_0xe96e79};_0xaf0509===this['currentRevision']&&(_0x1b5add['createdAt']=new Date(_0x119570['createdAt']['getTime']()+0xa)),_0xaf0509['_update'](_0x1b5add,!0x0),delete _0x1b5add['authors'],_0x32706c['push'](_0x1b5add);}}if(this['adapter']){for(const _0x43cd73 of _0x32706c)this['_bufferUpdate'](_0x43cd73['id'],_0x43cd73,!0x0);this['sendBufferedUpdates']();}return _0x58f7b3;}['addRevisionData'](_0x147c84){const _0x428f09=this['repository']['createRevision'](_0x147c84);return this['adapter']&&_0x428f09['on']('_update',(_0x209db3,_0x58dec0,_0x1acd6e)=>{_0x1acd6e||(this['_bufferUpdate'](_0x58dec0['id'],_0x58dec0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x428f09,this['_findInsertionIndex'](_0x428f09)),_0x428f09;}async['getRevisionDocumentData'](_0x26c5b5){return await this['_utils']['loadRevisionData'](_0x26c5b5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x26c5b5);}async['getRevisionRootsAttributes'](_0x753b3){return await this['_utils']['loadRevisionData'](_0x753b3,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x753b3);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x22cc09=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x201eeb=0x0;_0x201eeb<_0x22cc09['length'];_0x201eeb++){const _0x1bac60=_0x22cc09[_0x201eeb];let _0x1ad8dd=!0x1;for(const _0x2c83d3 of Object['keys'](_0x1bac60))void 0x0===_0x1bac60[_0x2c83d3]?delete _0x1bac60[_0x2c83d3]:'id'!==_0x2c83d3&&(_0x1ad8dd=!0x0);_0x1ad8dd||(_0x22cc09[_0x201eeb]=null);}if(_0x22cc09=_0x22cc09['filter'](_0x285931=>null!==_0x285931),!_0x22cc09['length'])return;for(let _0x1a7b9b=0x0;_0x1a7b9b<_0x22cc09['length'];_0x1a7b9b++){const _0xb66725=_0x22cc09[_0x1a7b9b];void 0x0!==_0xb66725['fromVersion']&&void 0x0===_0xb66725['toVersion']&&(_0xb66725['toVersion']=this['repository']['getRevision'](_0xb66725['id'])['toVersion']),void 0x0!==_0xb66725['toVersion']&&void 0x0===_0xb66725['fromVersion']&&(_0xb66725['fromVersion']=this['repository']['getRevision'](_0xb66725['id'])['fromVersion']);}const _0x139d23=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x22cc09,_0x139d23)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x144478=>{if(_0x144478){for(const _0x5030cd of _0x144478)this['setRevisionData']({'id':_0x5030cd['id'],'createdAt':_0x5030cd['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0xe38bb2=null,from:_0x5c4e24=null,to:_0x587870=null}){_0x5c4e24=null!==_0x5c4e24?_0x5c4e24:_0xe38bb2['fromVersion'],_0x587870=null!==_0x587870?_0x587870:_0xe38bb2['toVersion'];const _0x498a13=this['_revisionDataBuilder']['getData'](_0x5c4e24,_0x587870),_0x18b25b={'diffData':_0x498a13['diffData'],'authorsIds':_0x498a13['authorsIds'],'fromVersion':_0x5c4e24,'toVersion':_0x587870};if(!_0xe38bb2||_0x587870!==_0xe38bb2['toVersion']){const _0x2d6374=_0x587870-0x1,_0x2aabc6=this['_source']['history']['getOperation'](_0x2d6374);_0x18b25b['createdAt']=_0x2aabc6&&_0x2aabc6['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5c4e24===this['_loadedStateData']['fromVersion']){for(const _0x8b440a of this['_loadedStateData']['authors'])_0x18b25b['authorsIds']['includes'](_0x8b440a['id'])||_0x18b25b['authorsIds']['push'](_0x8b440a['id']);}return _0x18b25b;}['_bufferUpdate'](_0x2b4381,_0x3eedbc,_0x24965d){if(this['_bufferedUpdates']['has'](_0x2b4381)){const _0x37de0e=this['_bufferedUpdates']['get'](_0x2b4381);_0x3eedbc=_0x24965d?{..._0x37de0e,..._0x3eedbc}:{..._0x3eedbc,..._0x37de0e};}this['_bufferedUpdates']['set'](_0x2b4381,_0x3eedbc);}['setRevisionData'](_0xa386d2){const _0xd88612=this['repository']['getRevision'](_0xa386d2['id']);if(_0xa386d2['createdAt']&&(_0xa386d2['createdAt']=new Date(_0xa386d2['createdAt'])),_0xa386d2['authorsIds']){const _0x363641=this['editor']['plugins']['get']('Users');_0xa386d2['authors']=_0xa386d2['authorsIds']['map'](_0x11f003=>_0x363641['getUser'](_0x11f003));}_0xd88612['_update'](_0xa386d2,!0x0);}['_createInitialRevision'](_0x26c940){const _0x1cb428=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1cb428)this['_initialRevisionId']=_0x1cb428['id'];else{const _0x244d22=!this['editor']['model']['document']['roots']['find'](_0x4ecdf4=>this['editor']['model']['hasContent'](_0x4ecdf4)),_0x23f107=this['editor']['plugins']['get']('Users')['me']['id'],_0x1fbea5=R(this['editor']['locale'],_0x244d22?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x26c940,'to':_0x26c940,'id':this['_initialRevisionId'],'name':_0x1fbea5,'creatorId':_0x23f107});}}['_createCurrentRevision'](_0x1d3d6e){const _0x542766=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x542766),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1d3d6e,'to':_0x1d3d6e,'id':_0x542766,'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'](_0xbd73e7,_0x422f8e){let _0x34fed5=this['editor']['config']['get']('initialData'),_0x17f6f9=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x34fed5){_0x34fed5={};for(const _0x15a55f of this['editor']['model']['document']['getRootNames']())_0x34fed5[_0x15a55f]='';}if('string'==typeof _0x34fed5&&(_0x34fed5={'main':_0x34fed5}),void 0x0===_0x17f6f9){_0x17f6f9={};for(const _0x5e6b08 of this['editor']['model']['document']['getRootNames']())_0x17f6f9[_0x5e6b08]={};}let _0x38a1d0=!0x1;const _0x1841c7=Object['keys'](_0x34fed5),_0x5cd3a3=Object['keys'](_0xbd73e7);for(const _0x2d0c4b of _0x1841c7){if(_0x34fed5[_0x2d0c4b]!==_0xbd73e7[_0x2d0c4b]&&''!==_0x34fed5[_0x2d0c4b]['trim']()){_0x38a1d0=!0x0;break;}if(!_0x41d3fe(_0x17f6f9[_0x2d0c4b],_0x422f8e[_0x2d0c4b])&&Object['keys'](_0x17f6f9[_0x2d0c4b])['length']>0x0){_0x38a1d0=!0x0;break;}}_0x38a1d0||(_0x38a1d0=_0x5cd3a3['some'](_0x49f8bd=>!this['editor']['model']['document']['getRoot'](_0x49f8bd))),_0x38a1d0&&_0x574512('editor-initial-data-replaced-with-revision-data',{'editorData':_0x34fed5,'editorRootsAttributes':_0x17f6f9,'revisionData':_0xbd73e7,'revisionRootsAttributes':_0x422f8e}),this['editor']['config']['set']('initialData',_0xbd73e7),this['editor']['config']['set']('rootsAttributes',_0x422f8e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2e0db6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2e0db6['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x43b864){const _0x2e94d6=this['repository']['getRevisions']();_0x2e94d6['reverse']();let _0x17a366=0x0;for(;_0x17a366<_0x2e94d6['length'];){const _0x3275e0=_0x2e94d6[_0x17a366];if(_0x3275e0===this['currentRevision']){_0x17a366++;continue;}if(_0x3275e0['id']===this['_initialRevisionId'])break;const _0x115f23=_0x43b864['toVersion']-_0x3275e0['toVersion']||_0x43b864['fromVersion']-_0x3275e0['fromVersion'];if(_0x115f23>0x0)break;if(_0x115f23<0x0)_0x17a366++;else{if(!_0x43b864['creator']&&_0x3275e0['creator'])break;if(_0x3275e0['creator']||!_0x43b864['creator']){if(_0x43b864['createdAt']>_0x3275e0['createdAt'])break;_0x17a366++;}else _0x17a366++;}}return _0x17a366;}['_getFromVersion'](_0x34086c){const _0x76a7e=this['repository']['getRevisions']();_0x76a7e['reverse'](),_0x76a7e['shift']();const _0x56559c=_0x76a7e['find'](_0x235385=>_0x235385['toVersion']<=_0x34086c)['toVersion'];return _0x56559c<this['_startingVersion']?this['_startingVersion']:_0x56559c;}['_makeRevision']({name:_0x9d7390,from:_0x7e64f8,to:_0x411ed1,creatorId:_0x166cec,id:_0x19f85a}){const _0x4408ed=this['buildRevisionData']({'from':_0x7e64f8,'to':_0x411ed1});_0x4408ed['name']=_0x9d7390,_0x4408ed['creatorId']=_0x166cec,_0x4408ed['id']=_0x19f85a;const _0x2148e7=this['addRevisionData'](_0x4408ed);return this['adapter']&&this['_bufferUpdate'](_0x4408ed['id'],_0x4408ed,!0x0),_0x2148e7;}['_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(_0x209b6b){this['editor']=_0x209b6b,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'](_0x1d75cf){this['source']=_0x1d75cf;const _0x1a2329=new Map(),_0x1966c0=new Map(),_0x570443=this['editor']['model']['document']['roots']['map'](_0x21ffbf=>_0x21ffbf['rootName']);for(const _0x376c38 of _0x570443){const _0x1b5fac=this['editor']['model']['document']['getRoot'](_0x376c38),_0x298f13=x(_0x1b5fac);_0x1a2329['set'](_0x376c38,_0x298f13),_0x1966c0['set'](_0x376c38,Object['fromEntries'](_0x1b5fac['getAttributes']()));}const _0x53cff9=Array['from'](this['editor']['model']['markers'])['map'](_0x55b281=>[_0x55b281['name'],_0x55b281['getRange']()]),_0x3e0ad5=this['source']['version'];this['_saveMetaData'](_0x3e0ad5,_0x1a2329,_0x53cff9,_0x1966c0),this['_startingRevisionId']=this['_revisionId'];const _0x50e8a6=new Map(),_0xbe0d0e=new Map();for(const _0x4c7860 of _0x570443){const _0x43840e=N(_0x4c7860);_0x50e8a6['set'](_0x4c7860,_0x43840e),_0xbe0d0e['set'](_0x4c7860,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x50e8a6,[],_0xbe0d0e);}['getData'](_0xc48c1f,_0x4e4ab9){if(this['_lastFrom']===_0xc48c1f&&this['_lastTo']<=_0x4e4ab9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4e4ab9,!0x0);else{if(!this['_savedMetaData']['has'](_0xc48c1f)){const _0x5693a8=this['_getPreviousFrom'](_0xc48c1f);this['_calculateMetaData'](_0x5693a8,_0xc48c1f,!0x1);}this['_calculateMetaData'](_0xc48c1f,_0x4e4ab9,!0x0);}return this['_lastFrom']=_0xc48c1f,this['_lastTo']=_0x4e4ab9,this['_getState']();}['loadState'](_0x452c44){const _0x4f6986=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x452c44['fromVersion'],this['_lastTo']=_0x452c44['toVersion'];for(const _0x6b025a in _0x452c44['diffData']){const _0x52776c=_0x452c44['diffData'][_0x6b025a]['attachChange'],_0x42b624=_0x17cd32(_0x452c44['diffData'][_0x6b025a]['attributesBefore'])||{},_0xc758a5=_0x4f6986['_makeModelFromViewString'](_0x452c44['diffData'][_0x6b025a]['deletions']);_0xc758a5['rootName']=_0x6b025a,_0xc758a5['_isAttached']=!_0x52776c||!_0x52776c['isAttached'],_0xc758a5['isAttached']=()=>_0xc758a5['_isAttached'],this['_baseRoots']['set'](_0x6b025a,_0xc758a5),this['_baseRootsAttributes']['set'](_0x6b025a,_0x42b624),_0x52776c&&this['_touchedRoots']['set'](_0x6b025a,_0x52776c);const _0x2e11cc=this['_makeIdsRoot'](_0xc758a5);this['_baseIdsRoots']['set'](_0x6b025a,_0x2e11cc);for(const [_0x4c397e,_0xcbe71]of _0xc758a5['markers']){if(!_0x4c397e['startsWith']('revision:'))continue;const _0x1fbbb6=_0x4c397e['split'](':')[0x2];for(const _0x3b80b0 of _0xcbe71['getWalker']({'singleCharacters':!0x0})){const _0x425aee=this['_getVidAttributeName'](_0x3b80b0),_0x217813='elementEnd'==_0x3b80b0['type']?_0x3b80b0['previousPosition']['path']['slice'](0x0,-0x1):_0x3b80b0['previousPosition']['path'],_0x12d39b=_0x2e11cc['getNodeByPath'](_0x217813)['getAttribute'](_0x425aee);this['_touched']['set'](_0x12d39b,{'userId':_0x1fbbb6});}}}this['_startingRevisionId']=this['_revisionId'];const _0x15c36e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x270de2=>!this['_touched']['has'](_0x270de2));let _0x3449d7=0x0;const _0x30611e=new Map();for(const _0x40927f in _0x452c44['diffData']){const _0x16af35=_0x452c44['diffData'][_0x40927f]['attachChange'],_0x5b3b4a=_0x17cd32(_0x452c44['diffData'][_0x40927f]['attributesAfter'])||{},_0x3cd9c7=_0x4f6986['_makeModelFromViewString'](_0x452c44['diffData'][_0x40927f]['insertions']);_0x3cd9c7['rootName']=_0x40927f,_0x3cd9c7['_isAttached']=!_0x16af35||_0x16af35['isAttached'],_0x3cd9c7['isAttached']=()=>_0x3cd9c7['_isAttached'],this['_diffRoots']['set'](_0x40927f,_0x3cd9c7),this['_diffRootsAttributes']['set'](_0x40927f,_0x5b3b4a);const _0x3da0d5=this['_makeIdsRoot'](_0x3cd9c7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x40927f,_0x3da0d5),_0x30611e['set'](_0x40927f,_0x3cd9c7['isAttached']()?_0x5b3b4a:{});for(const [_0x53b5b3,_0x537fdf]of _0x3cd9c7['markers']){if(!_0x53b5b3['startsWith']('revision:'))continue;const _0x4fc777=_0x53b5b3['split'](':')[0x2];for(const _0x5db2f8 of _0x537fdf['getWalker']({'singleCharacters':!0x0})){const _0x44e2a7=this['_getVidAttributeName'](_0x5db2f8),_0x4ceff5=this['_revisionId']++,_0x2b9479='elementEnd'==_0x5db2f8['type']?_0x5db2f8['previousPosition']['path']['slice'](0x0,-0x1):_0x5db2f8['previousPosition']['path'];_0x3da0d5['getNodeByPath'](_0x2b9479)['_setAttribute'](_0x44e2a7,_0x4ceff5),this['_touched']['set'](_0x4ceff5,{'userId':_0x4fc777});}}for(const _0x34bf21 of this['editor']['model']['createRangeIn'](_0x3cd9c7)['getWalker']({'singleCharacters':!0x0})){const _0x86bb9=this['_getVidAttributeName'](_0x34bf21),_0x2ebf06='elementEnd'==_0x34bf21['type']?_0x34bf21['previousPosition']['path']['slice'](0x0,-0x1):_0x34bf21['previousPosition']['path'],_0x56296c=_0x3da0d5['getNodeByPath'](_0x2ebf06);_0x56296c['getAttribute'](_0x86bb9)>0x0||_0x56296c['_setAttribute'](_0x86bb9,_0x15c36e[_0x3449d7++]);}for(const [_0x299a2f,_0x5c25a6]of _0x3cd9c7['markers'])_0x299a2f['startsWith']('revision:')||this['_markers']['set'](_0x299a2f,_0x5c25a6);}const _0x9038ce=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x9038ce),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x9038ce,0x1));const _0x41253d=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x41253d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x41253d,0x1));const _0x17bd22=Array['from'](this['_diffRoots'])['map'](([_0x23fdfe,_0x311b28])=>[_0x23fdfe,x(_0x311b28)]);this['_saveMetaData'](this['_lastTo'],_0x17bd22,this['_markers'],_0x30611e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3f8d90,_0x4a57a7,_0x228496,_0x540d17){const _0x444d10=new Map(_0x4a57a7),_0x5b78b7=new Map(_0x17cd32(_0x540d17)),_0x3f360b=new Map();for(const [_0x4d505f,_0x17e75f]of _0x228496)_0x3f360b['set'](_0x4d505f,{'start':_0x17e75f['start']['clone'](),'end':_0x17e75f['end']['clone'](),'rootName':_0x17e75f['root']['rootName']});this['_savedMetaData']['set'](_0x3f8d90,{'roots':_0x444d10,'markers':_0x3f360b,'rootsAttributes':_0x5b78b7});}['_removeMetaData'](_0xcdb6ef){this['_savedMetaData']['delete'](_0xcdb6ef);}['_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'](_0x36173f,_0x5aa74c=null){let _0x2887ed=null;_0x36173f['is']('documentFragment')||(_0x2887ed=new _0x424a2d(_0x36173f['name'],{'vid_start':null===_0x5aa74c?this['_revisionId']++:_0x5aa74c++}));const _0x5e414b=[];for(const _0xf31379 of _0x36173f['getChildren']())if(_0xf31379['is']('element')){_0x5e414b['push'](this['_makeIdsRoot'](_0xf31379,_0x5aa74c));const _0x3c3253=_0x5e414b[_0x5e414b['length']-0x1];null!==_0x5aa74c&&(_0x5aa74c=_0x3c3253['is']('element','$text')?_0x3c3253['getAttribute']('vid')+0x1:_0x3c3253['getAttribute']('vid_end')+0x1);}else{for(let _0x1de410=0x0;_0x1de410<_0xf31379['offsetSize'];_0x1de410++)_0x5e414b['push'](new _0x424a2d('$text',{'vid':null===_0x5aa74c?this['_revisionId']++:_0x5aa74c++}));}if(_0x36173f['is']('documentFragment')){const _0x340850=N(_0x36173f['rootName']);return _0x340850['_insertChild'](0x0,_0x5e414b),_0x340850;}return _0x2887ed['_setAttribute']('vid_end',null===_0x5aa74c?this['_revisionId']++:_0x5aa74c++),_0x2887ed['_insertChild'](0x0,_0x5e414b),_0x2887ed;}['_calculateMetaData'](_0x165f94,_0x452bb4,_0x3b2ff7){this['_reset']();const {roots:_0x19404f,markers:_0x34a4d7,rootsAttributes:_0x47a8b0}=this['_savedMetaData']['get'](_0x165f94);this['_baseRoots']=new Map(_0x19404f),this['_baseRootsAttributes']=new Map(_0x17cd32(_0x47a8b0));for(const [_0x4fe425,_0x1272b9]of this['_baseRoots'])if('$graveyard'!==_0x4fe425&&(this['_diffRoots']['set'](_0x4fe425,x(_0x1272b9)),this['_diffRootsAttributes']=new Map(_0x17cd32(_0x47a8b0)),_0x3b2ff7)){const _0xfc0536=this['_revisionId'];this['_idsRoots']['set'](_0x4fe425,this['_makeIdsRoot'](_0x1272b9)),this['_baseIdsRoots']['set'](_0x4fe425,this['_makeIdsRoot'](_0x1272b9,_0xfc0536));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x3b2ff7&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x23982b,_0x542595]of _0x34a4d7){const _0x5e986a=this['_baseRoots']['get'](_0x542595['rootName']),_0x54b406=this['_diffRoots']['get'](_0x542595['rootName']),_0x2d097a=new _0x79a589(this['_fixPosition'](_0x542595['start'],_0x5e986a),this['_fixPosition'](_0x542595['end'],_0x5e986a)),_0x1a8c31=this['_fixRange'](_0x2d097a,_0x54b406);_0x5e986a['markers']['set'](_0x23982b,_0x2d097a),this['_markers']['set'](_0x23982b,_0x1a8c31);}this['_applyOperations'](_0x165f94,_0x452bb4,_0x3b2ff7);}['_applyOperations'](_0x24d5a6,_0x101497,_0x23b8af){for(const _0x362305 of this['source']['getOperations'](_0x24d5a6,_0x101497))this['_handleOperation'](_0x362305,_0x23b8af);for(const _0x10e1b9 of this['_diffRoots']['values']())_0x10e1b9['markers']['clear']();for(const [_0x126ba4,_0x145299]of this['_markers']){this['_diffRoots']['get'](_0x145299['root']['rootName'])['markers']['set'](_0x126ba4,_0x145299['clone']());}const _0x244b91=new Map(),_0x5de1c7=new Map();for(const [_0x205c70,_0x22c231]of this['_diffRoots'])_0x244b91['set'](_0x205c70,x(_0x22c231)),_0x5de1c7['set'](_0x205c70,this['_diffRootsAttributes']['get'](_0x205c70));this['_saveMetaData'](_0x101497,_0x244b91,this['_markers'],_0x5de1c7);}['_getPreviousFrom'](_0x54f16a){const _0x3b2f11=Array['from'](this['_savedMetaData']['keys']());_0x3b2f11['sort']((_0x1e3086,_0x425604)=>_0x1e3086-_0x425604),_0x3b2f11['reverse']();for(const _0x184676 of _0x3b2f11)if(_0x184676<_0x54f16a)return _0x184676;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x7d85c1,_0x322da8){const _0x2a1a3b=Array['from'](_0x322da8['markers'])['map'](([_0x26dfc6,_0x117feb])=>[_0x26dfc6,this['_fixRange'](_0x117feb,_0x7d85c1)]);_0x7d85c1['markers']=new Map(_0x2a1a3b);}['_transformMarkers'](_0xd302f5){for(const _0x28e1a3 of this['_markers']['values']()){const _0x490f64=_0x28e1a3['getTransformedByOperation'](_0xd302f5),_0x250a08=_0x79a589['_createFromRanges'](_0x490f64);_0x28e1a3['start']=_0x250a08['start'],_0x28e1a3['end']=_0x250a08['end'];}}['_handleOperation'](_0x189e98,_0x5cfb55){if('addRoot'!=_0x189e98['type']&&'detachRoot'!=_0x189e98['type']){if('insert'==_0x189e98['type']){const _0x32f0d1=_0x189e98['position']['root']['rootName'];this['_diffRoots']['has'](_0x32f0d1)||(this['_diffRoots']['set'](_0x32f0d1,N(_0x32f0d1,!0x0)),this['_diffRootsAttributes']['set'](_0x32f0d1,{}),_0x5cfb55&&this['_idsRoots']['set'](_0x32f0d1,N(_0x32f0d1,!0x0)));}else{if('addRootAttribute'==_0x189e98['type']||'removeRootAttribute'==_0x189e98['type']||'changeRootAttribute'==_0x189e98['type'])return void this['_handleRootAttributeOperation'](_0x189e98);'marker'==_0x189e98['type']&&this['_handleMarkerOperation'](_0x189e98);}if('marker'!==_0x189e98['type']){const _0x8ac778=this['_cloneOperation'](_0x189e98,this['_diffRoots']);_0x8ac778['_execute'](),this['_transformMarkers'](_0x8ac778);}if(_0x5cfb55)switch(_0x189e98['type']){case'insert':this['_handleInsertOperation'](_0x189e98);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x189e98);break;case'merge':this['_handleMergeOperation'](_0x189e98);break;case'split':this['_handleSplitOperation'](_0x189e98);}}else this['_handleRootOperation'](_0x189e98,_0x5cfb55);}['_cloneOperation'](_0x3ac78a,_0x47acd6){const _0x26af22=_0x3ac78a['clone']();return _0x26af22['_authorId']=_0x3ac78a['_authorId'],this['_fixOperation'](_0x26af22,_0x47acd6),_0x26af22;}['_getBaseVids'](_0x2596ab){return _0x2596ab['map'](_0x5e9352=>{const _0x4fbab0=this['_getVidAttributeName'](_0x5e9352);return Number(_0x5e9352['item']['getAttribute'](_0x4fbab0));});}['_generateTape'](_0x16583b,_0x273d45){if(_0x16583b['is']('element','$text'))_0x273d45['push']({'item':_0x16583b,'type':'text'});else{_0x16583b['is']('element')&&_0x273d45['push']({'item':_0x16583b,'type':'elementStart'});for(const _0x398ada of _0x16583b['getChildren']())this['_generateTape'](_0x398ada,_0x273d45);_0x16583b['is']('element')&&_0x273d45['push']({'item':_0x16583b,'type':'elementEnd'});}return _0x273d45;}['_getState'](){const _0x135178=new Map(this['_touched']),_0xdca0f0=new Map(_0x135178),_0x5dd382=new Map(),_0x486c93={'insertions':{},'deletions':{}},_0x3edf34={'insertions':{},'deletions':{}},_0x332847=new Map(),_0x365a12=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x365a12['delete']('$graveyard');for(const _0x2742e8 of _0x365a12){const _0x569646=this['_diffRoots']['get'](_0x2742e8)||N(_0x2742e8,!0x1),_0x7606f9=this['_baseRoots']['get'](_0x2742e8)||N(_0x2742e8,!0x1);_0x569646['isAttached']()||_0x7606f9['isAttached']()?(_0x486c93['insertions'][_0x2742e8]=x(_0x569646),_0x486c93['deletions'][_0x2742e8]=x(_0x7606f9),this['_copyMarkers'](_0x486c93['deletions'][_0x2742e8],_0x7606f9),this['_copyMarkers'](_0x486c93['insertions'][_0x2742e8],_0x569646),_0x3edf34['insertions'][_0x2742e8]=this['_generateTape'](this['_idsRoots']['get'](_0x2742e8),[]),_0x3edf34['deletions'][_0x2742e8]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2742e8)||N(_0x2742e8,!0x1),[])):_0x365a12['delete'](_0x2742e8);}for(const _0x19605e of _0x365a12){const _0x507491=_0x3edf34['insertions'][_0x19605e];for(const _0xb12e57 of _0x507491){const _0xb910f1=this['_getVidAttributeName'](_0xb12e57),_0x37e100=_0xb12e57['item']['getAttribute'](_0xb910f1);_0xdca0f0['delete'](_0x37e100),_0x37e100>=this['_startingRevisionId']&&_0x5dd382['set'](_0x37e100,_0x135178['get'](_0x37e100));}}for(const _0x1fb8a1 of _0x365a12){const _0x9b17a4=_0x3edf34['insertions'][_0x1fb8a1],_0x52bea1=this['_getBaseVids'](_0x3edf34['deletions'][_0x1fb8a1]);let _0x3421d6=0x0;for(const _0x82e232 of _0x9b17a4){const _0xa06a90=this['_getVidAttributeName'](_0x82e232),_0x1ff851=_0x82e232['item']['getAttribute'](_0xa06a90);if(!_0x5dd382['has'](_0x1ff851)&&!_0x332847['has'](_0x1ff851)){if(_0xdca0f0['has'](_0x1ff851))_0x3421d6++;else{if(_0x1ff851!=_0x52bea1[_0x3421d6]){const _0xe97d9e=_0x135178['get'](_0x1ff851)||_0x135178['get'](_0x52bea1[_0x3421d6]);for(;_0x1ff851!=_0x52bea1[_0x3421d6];)_0xdca0f0['has'](_0x52bea1[_0x3421d6])||(_0x332847['set'](_0x52bea1[_0x3421d6],_0xe97d9e),_0x135178['set'](_0x52bea1[_0x3421d6],_0xe97d9e)),_0x3421d6++;}_0x3421d6++;}}}}for(const _0xc37d5c of _0x365a12){const _0xc67244=_0x3edf34['insertions'][_0xc37d5c];for(const _0x394c52 of _0xc67244){const _0x489bd7=this['_getVidAttributeName'](_0x394c52),_0x1d7f35=_0x394c52['item']['getAttribute'](_0x489bd7);if(_0x332847['has'](_0x1d7f35)){const _0x40a74c=_0x332847['get'](_0x1d7f35);_0xdca0f0['has'](_0x1d7f35)||_0xdca0f0['set'](_0x1d7f35,{..._0x40a74c}),_0x5dd382['set'](_0x1d7f35,{..._0x40a74c});}}}for(const _0x1848b7 of _0xdca0f0['keys']())_0x1848b7>=this['_startingRevisionId']&&_0xdca0f0['delete'](_0x1848b7);const _0x2010bb=new Map();for(const _0x5728c7 of _0x365a12){let _0x2c0097=_0x3edf34['insertions'][_0x5728c7];for(const _0x14ea1e of _0x2c0097)if(_0x14ea1e['item']['is']('element','tableCell')){const _0x77c760=this['_getVidAttributeName'](_0x14ea1e),_0x29a0a9=_0x14ea1e['item']['getAttribute'](_0x77c760);if(_0x5dd382['has'](_0x29a0a9)){const _0x3068b2=_0x14ea1e['item']['parent']['parent']['getAttribute']('vid_start'),_0x5a5ee3=_0x2010bb['get'](_0x3068b2)||new Set();_0x5a5ee3['add'](_0x5dd382['get'](_0x29a0a9)['userId']),_0x2010bb['set'](_0x3068b2,_0x5a5ee3);}}_0x2c0097=_0x3edf34['deletions'][_0x5728c7];for(const _0x3a3976 of _0x2c0097)if(_0x3a3976['item']['is']('element','tableCell')){const _0x2c824c=this['_getVidAttributeName'](_0x3a3976),_0x35294e=_0x3a3976['item']['getAttribute'](_0x2c824c);if(_0xdca0f0['has'](_0x35294e)){const _0x5ad786=_0x3a3976['item']['parent']['parent']['getAttribute']('vid_start'),_0x5b9a9e=_0x2010bb['get'](_0x5ad786)||new Set();_0x5b9a9e['add'](_0xdca0f0['get'](_0x35294e)['userId']),_0x2010bb['set'](_0x5ad786,_0x5b9a9e);}}for(const _0x57b97d of _0x2010bb['keys']())(_0x5dd382['has'](_0x57b97d)||_0xdca0f0['has'](_0x57b97d))&&_0x2010bb['delete'](_0x57b97d);}for(const _0x1729ef of _0x365a12){const _0xb273db=_0x3edf34['insertions'][_0x1729ef];let _0x362757=null,_0x337e4e=null;for(const _0x37437c of _0xb273db){const _0x496e77=this['_getVidAttributeName'](_0x37437c),_0x9a045c=_0x37437c['item']['getAttribute'](_0x496e77),_0x1f4de8=_0x2010bb['get'](_0x9a045c);_0x1f4de8&&'elementStart'==_0x37437c['type']&&(_0x362757=Array['from'](_0x1f4de8)[0x0],_0x337e4e=_0x37437c['item']['getAttribute']('vid_end')),_0x362757&&(_0xdca0f0['set'](_0x9a045c,{'userId':_0x362757}),_0x5dd382['set'](_0x9a045c,{'userId':_0x362757})),_0x9a045c==_0x337e4e&&(_0x362757=null,_0x337e4e=null);}}const _0x29dd02={},_0x3ff88c=new Set();for(const _0x29f30e of _0x365a12){const _0x4a8eb5=_0x486c93['deletions'][_0x29f30e],_0x34d9d3=_0x486c93['insertions'][_0x29f30e];for(const {userId:_0x853fac}of this['_touchedMarkers']['values']())null!==_0x853fac&&_0x3ff88c['add'](_0x853fac);for(const {userId:_0x4736a1}of this['_touchedRoots']['values']())null!==_0x4736a1&&_0x3ff88c['add'](_0x4736a1);this['_markChanges'](_0x34d9d3,_0x3edf34['insertions'][_0x29f30e],_0x5dd382,'insertion',_0x3ff88c),this['_markChanges'](_0x4a8eb5,_0x3edf34['deletions'][_0x29f30e],_0xdca0f0,'deletion',_0x3ff88c),_0x29dd02[_0x29f30e]={'insertions':this['_prepareViewToSave'](_0x34d9d3),'deletions':this['_prepareViewToSave'](_0x4a8eb5),'attachChange':this['_touchedRoots']['get'](_0x29f30e)||null,'attributesBefore':_0x17cd32(this['_baseRootsAttributes']['get'](_0x29f30e))||{},'attributesAfter':_0x17cd32(this['_diffRootsAttributes']['get'](_0x29f30e))};}return{'diffData':_0x29dd02,'authorsIds':Array['from'](_0x3ff88c)};}['_processRootBeforeSave'](_0x34a708){for(const [,_0x33ef09]of _0x34a708['markers']){const _0x181f37=_0x33ef09['start']['getAncestors']()['filter'](_0x579f3f=>'tableCell'==_0x579f3f['name']);for(const _0x3493ef of _0x181f37)0x1==_0x3493ef['childCount']&&_0x3493ef['getChild'](0x0)['is']('element','paragraph')&&_0x3493ef['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x52a0d9){this['_processRootBeforeSave'](_0x52a0d9);const _0x3ab36c=this['editor']['data']['toView'](_0x52a0d9,{}),_0x2eb9e6=Array['from'](_0x3ab36c['getChildren']())['map'](_0x1eba7e=>this['_getViewJson'](_0x1eba7e));return JSON['stringify'](_0x2eb9e6);}['_getViewJson'](_0x2ab7c9){if(_0x2ab7c9['is']('$text'))return _0x2ab7c9['data'];{const _0x283ee0=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5fd606=_0x2ab7c9,_0x24689e=this['editor']['data']['htmlProcessor']['domConverter'],_0x2506e7={'type':_0x283ee0['_getTypeCharForViewElement'](_0x5fd606),'name':_0x5fd606['name'],'attributes':Array['from'](_0x5fd606['getAttributes']()),'children':Array['from'](_0x5fd606['getChildren']())['map'](_0x35c021=>this['_getViewJson'](_0x35c021))};if(_0x2ab7c9['is']('uiElement')&&'$comment'!=_0x2ab7c9['name']){const _0x189107=_0x2ab7c9['render'](_0x24689e['domDocument'],_0x24689e);_0x2506e7['children']['push'](_0x189107['outerHTML']);}else{if(_0x2ab7c9['is']('rawElement')){const _0xf637ad=_0x24689e['domDocument']['createElement'](_0x5fd606['name']);_0x2ab7c9['render'](_0xf637ad,_0x24689e),_0x2506e7['children']['push'](_0xf637ad['innerHTML']);}}const _0x293e3b=Array['from'](_0x5fd606['getCustomProperties']());_0x293e3b['length']>0x0&&(_0x2506e7['customProperties']=_0x293e3b);const _0x2af959=_0x5fd606['getFillerOffset']();return null!==_0x2af959&&(_0x2506e7['fillerOffset']=_0x2af959),_0x2506e7;}}['_markChanges'](_0x354318,_0x90e9a1,_0x3fd8e7,_0x198341,_0x572872){let _0x3ed2cb=null,_0x44b0f5=null,_0x5b2a40=0x0;const _0x53e00d=this['editor']['model'];for(let _0x2b7860=0x0;_0x2b7860<_0x90e9a1['length'];_0x2b7860++){const _0x5bc823=this['_getVidAttributeName'](_0x90e9a1[_0x2b7860]),_0x52cc8e=_0x90e9a1[_0x2b7860]['item']['getAttribute'](_0x5bc823),_0x2d3f40=_0x3fd8e7['get'](_0x52cc8e),_0x589621=_0x2b7860==_0x90e9a1['length']-0x1;(!_0x3ed2cb&&_0x2d3f40&&(_0x3ed2cb=_0x2d3f40,_0x44b0f5=_0x90e9a1[_0x2b7860]),_0x3ed2cb&&(!_0x2d3f40||_0x2d3f40['userId']!=_0x3ed2cb['userId']))&&(_0x368e83(_0x2d3f40,P(_0x44b0f5,_0x354318,_0x53e00d),P(_0x90e9a1[_0x2b7860],_0x354318,_0x53e00d)),_0x3ed2cb=_0x2d3f40||null,_0x44b0f5=_0x2d3f40?_0x90e9a1[_0x2b7860]:null),_0x3ed2cb&&_0x589621&&_0x368e83(_0x2d3f40,P(_0x44b0f5,_0x354318,_0x53e00d),V(_0x90e9a1[_0x2b7860],_0x354318,_0x53e00d));}function _0x368e83(_0x1ef425,_0x3fa518,_0x3a0c69){const _0xeb6721=_0x3ed2cb['userId'],_0x5d985a='revision:'+_0x198341+':'+_0xeb6721+':'+_0x5b2a40++,_0x31e069=_0x53e00d['createRange'](_0x3fa518,_0x3a0c69);_0x354318['markers']['set'](_0x5d985a,_0x31e069),null!==_0xeb6721&&_0x572872['add'](_0xeb6721);}}['_getVidAttributeName'](_0x599bac){switch(_0x599bac['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5546f0,_0x28f586){_0x5546f0['baseVersion']=null;for(const _0x38e1cc in _0x5546f0){const _0x46779a=_0x5546f0[_0x38e1cc];if(_0x46779a instanceof _0x3a22d5){const _0x3ca7fe=_0x28f586['get'](_0x46779a['root']['rootName']);_0x5546f0[_0x38e1cc]=this['_fixPosition'](_0x46779a,_0x3ca7fe);}if(_0x46779a instanceof _0x79a589){const _0x586400=_0x28f586['get'](_0x46779a['root']['rootName']);_0x5546f0[_0x38e1cc]=this['_fixRange'](_0x46779a,_0x586400);}'root'===_0x38e1cc&&(_0x5546f0['root']=_0x28f586['get'](_0x5546f0['root']['rootName']));}}['_fixRange'](_0x1f6757,_0x3f4431){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1f6757['start'],_0x3f4431),this['_fixPosition'](_0x1f6757['end'],_0x3f4431));}['_fixPosition'](_0x189de1,_0x257851){return this['editor']['model']['createPositionFromPath'](_0x257851,_0x189de1['path'],_0x189de1['stickiness']);}['_handleInsertOperation'](_0x16f7ca){const _0x4217ad=this['_idsRoots']['get'](_0x16f7ca['position']['root']['rootName']),_0xbf1e12=this['_fixPosition'](_0x16f7ca['position'],_0x4217ad),_0x3f7d6a=null===_0x16f7ca['_authorId']?null:_0x16f7ca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x19454a=_0xbf1e12['parent'],_0xa2b348=this['_revisionId'],_0x106d2a=[];for(const _0x18bdb9 of _0x16f7ca['nodes'])if(_0x18bdb9['is']('element'))_0x106d2a['push'](this['_makeIdsRoot'](_0x18bdb9));else{for(let _0x2cdbb7=0x0;_0x2cdbb7<_0x18bdb9['offsetSize'];_0x2cdbb7++)_0x106d2a['push'](new _0x424a2d('$text',{'vid':this['_revisionId']++}));}const _0x1eab89=this['_revisionId'];for(let _0x1d596b=_0xa2b348;_0x1d596b<_0x1eab89;_0x1d596b++)this['_touched']['set'](_0x1d596b,{'userId':_0x3f7d6a});_0x19454a['_insertChild'](_0xbf1e12['offset'],_0x106d2a);}['_handleMoveOperation'](_0x598797){(_0x598797=this['_cloneOperation'](_0x598797,this['_idsRoots']))['_execute']();const _0x390dbc=null===_0x598797['_authorId']?null:_0x598797['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a47d9=_0x598797['getMovedRangeStart'](),_0x591596=_0x1a47d9['parent'],_0x29e721=_0x1a47d9['offset'];!function _0x594aeb(_0x2dce17,_0x4333c1,_0x2d1c3f,_0x42f367){for(let _0x224259=_0x2d1c3f;_0x224259<_0x42f367;_0x224259++){const _0x1429de=_0x4333c1['getChild'](_0x224259);_0x1429de['is']('element','$text')?_0x2dce17['set'](_0x1429de['getAttribute']('vid'),{'userId':_0x390dbc}):(_0x2dce17['set'](_0x1429de['getAttribute']('vid_start'),{'userId':_0x390dbc}),_0x594aeb(_0x2dce17,_0x1429de,0x0,_0x1429de['childCount']),_0x2dce17['set'](_0x1429de['getAttribute']('vid_end'),{'userId':_0x390dbc}));}}(this['_touched'],_0x591596,_0x29e721,_0x29e721+_0x598797['howMany']);}['_handleMergeOperation'](_0x1833cb){const _0x20b686=null===(_0x1833cb=this['_cloneOperation'](_0x1833cb,this['_idsRoots']))['_authorId']?null:_0x1833cb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2feff2=_0x1833cb['targetPosition']['parent'],_0x4a302f=_0x1833cb['sourcePosition']['parent'],_0x63120f=_0x2feff2['getAttribute']('vid_end'),_0x3e792e=_0x4a302f['getAttribute']('vid_start');_0x2feff2['_setAttribute']('vid_end',_0x4a302f['getAttribute']('vid_end')),_0x4a302f['_setAttribute']('vid_end',_0x63120f),this['_touched']['set'](_0x3e792e,{'userId':_0x20b686}),this['_touched']['set'](_0x63120f,{'userId':_0x20b686}),_0x1833cb['_execute']();}['_handleSplitOperation'](_0x3e5059){const _0x2ba4e5=null===(_0x3e5059=this['_cloneOperation'](_0x3e5059,this['_idsRoots']))['_authorId']?null:_0x3e5059['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5823b7=_0x3e5059['graveyardPosition'],_0x3fe839=_0x3e5059['splitPosition']['parent'];_0x3e5059['_execute']();const _0x46562b=_0x3fe839['getAttribute']('vid_end'),_0x185aca=_0x3e5059['insertionPosition']['nodeAfter'];if(_0x5823b7){const _0x15ca07=_0x185aca['getAttribute']('vid_end'),_0x1a27f1=_0x3fe839['getAttribute']('vid_end');_0x3fe839['_setAttribute']('vid_end',_0x15ca07),_0x185aca['_setAttribute']('vid_end',_0x1a27f1),this['_touched']['set'](_0x3fe839['getAttribute']('vid_end'),{'userId':_0x2ba4e5}),this['_touched']['set'](_0x185aca['getAttribute']('vid_start'),{'userId':_0x2ba4e5});}else{const _0x4cd2e6=this['_revisionId']++,_0x860570=this['_revisionId']++;_0x3fe839['_setAttribute']('vid_end',_0x4cd2e6),_0x185aca['_setAttribute']('vid_start',_0x860570),_0x185aca['_setAttribute']('vid_end',_0x46562b),this['_touched']['set'](_0x4cd2e6,{'userId':_0x2ba4e5}),this['_touched']['set'](_0x860570,{'userId':_0x2ba4e5});}}['_handleMarkerOperation'](_0x28e2a0){if(!_0x28e2a0['affectsData'])return;const _0x2731ce=(_0x28e2a0=this['_cloneOperation'](_0x28e2a0,this['_diffRoots']))['oldRange']?_0x28e2a0['oldRange']['root']:null,_0x3439f9=_0x28e2a0['newRange']?_0x28e2a0['newRange']['root']:null;_0x2731ce&&this['_markers']['delete'](_0x28e2a0['name']),_0x3439f9&&this['_markers']['set'](_0x28e2a0['name'],_0x28e2a0['newRange']['clone']());const _0x21acdf=null===_0x28e2a0['_authorId']?null:_0x28e2a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x163b18=_0x28e2a0['name'];if(!this['_touchedMarkers']['has'](_0x163b18))return void this['_touchedMarkers']['set'](_0x163b18,{'range':_0x28e2a0['oldRange'],'userId':_0x21acdf});const _0x1920b1=this['_touchedMarkers']['get'](_0x163b18),_0x3898b7=_0x1920b1['range'],_0x2fc90f=_0x28e2a0['newRange'];null==_0x3898b7&&null==_0x2fc90f||_0x3898b7&&_0x2fc90f&&_0x3898b7['isEqual'](_0x2fc90f)?this['_touchedMarkers']['delete'](_0x28e2a0['name']):_0x1920b1['userId']=_0x21acdf;}['_handleRootOperation'](_0x2b51fb,_0x1d6c8b){this['_diffRoots']['has'](_0x2b51fb['rootName'])?this['_diffRoots']['get'](_0x2b51fb['rootName'])['_isAttached']=_0x2b51fb['isAdd']:(this['_diffRoots']['set'](_0x2b51fb['rootName'],N(_0x2b51fb['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2b51fb['rootName'],{}),_0x1d6c8b&&this['_idsRoots']['set'](_0x2b51fb['rootName'],N(_0x2b51fb['rootName'],!0x0)));const _0x576da3=null===_0x2b51fb['_authorId']?null:_0x2b51fb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4f62bb=this['_touchedRoots']['get'](_0x2b51fb['rootName']);_0x4f62bb&&_0x4f62bb['userId']===_0x576da3?this['_touchedRoots']['delete'](_0x2b51fb['rootName']):this['_touchedRoots']['set'](_0x2b51fb['rootName'],{'userId':_0x576da3,'isAttached':_0x2b51fb['isAdd']});}['_handleRootAttributeOperation'](_0x11cd3f){const _0x569bf9=this['_diffRootsAttributes']['get'](_0x11cd3f['root']['rootName']);null===_0x11cd3f['newValue']?delete _0x569bf9[_0x11cd3f['key']]:_0x569bf9[_0x11cd3f['key']]=_0x11cd3f['newValue'];}}function x(_0x3748b6){const _0x1e5d87=N(_0x3748b6['rootName'],_0x3748b6['isAttached']());for(const _0x52f23e of _0x3748b6['getChildren']()){const _0x1aa320=_0x52f23e['_clone'](!0x0);_0x1e5d87['_appendChild'](_0x1aa320);}return _0x1e5d87;}function N(_0x19455a,_0x225ece=!0x0){const _0x54866b=new _0x48290c();return _0x54866b['rootName']=_0x19455a,_0x54866b['_isAttached']=_0x225ece,_0x54866b['isAttached']=()=>_0x54866b['_isAttached'],_0x54866b;}function P(_0x17866b,_0x2522d9,_0x2c129d){const _0x159d11='elementEnd'==_0x17866b['type']?_0x2c129d['createPositionAt'](_0x17866b['item'],'end'):_0x2c129d['createPositionBefore'](_0x17866b['item']);return _0x2c129d['createPositionFromPath'](_0x2522d9,_0x159d11['path'],_0x159d11['stickiness']);}function V(_0x1c2cf4,_0x31006e,_0x47ae18){const _0x31767b='elementStart'==_0x1c2cf4['type']?_0x47ae18['createPositionAt'](_0x1c2cf4['item'],0x0):_0x47ae18['createPositionAfter'](_0x1c2cf4['item']);return _0x47ae18['createPositionFromPath'](_0x31006e,_0x31767b['path'],_0x31767b['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x341f63(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3be99){super(),this['id']=_0x3be99['id']||_0x32c609(),this['author']=_0x3be99['author'],this['type']=_0x3be99['type'],this['data']=_0x3be99['data']||{},this['rootName']=_0x3be99['rootName'],this['set']('createdAt',_0x3be99['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(_0xadc7cd,_0x3a4607){this['newRevisionId']=_0xadc7cd,this['oldRevisionId']=_0x3a4607,this['changes']=new _0xd590b5();}['_setChanges'](_0x4135c4){for(const _0x5cc595 of _0x4135c4)this['changes']['add'](_0x5cc595);}}class l extends _0x312da3{['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[_0x1529b6,_0x3ce5bd,S,$];}constructor(_0x2ce1ce){super(_0x2ce1ce),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',(_0x2ce934,_0x54a82f,_0xc70f09)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3d6eaa=>{for(const _0x2464e2 of this['editor']['editing']['view']['document']['roots'])_0xc70f09?_0x3d6eaa['removeClass']('ck-editor__editable__overlay',_0x2464e2):_0x3d6eaa['addClass']('ck-editor__editable__overlay',_0x2464e2);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4515c0=>null!==_0x4515c0),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2cd6d2,_0x1d5624,_0x7b03c2)=>_0x2cd6d2&&_0x7b03c2?_0x1d5624['changes']['getIndex'](_0x7b03c2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x42b6ef,_0x15f2bd)=>_0x42b6ef?_0x15f2bd['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3ce5bd);}['init'](){const _0x1a47a9=this['editor'],_0x26cb61=new ot(_0x1a47a9,{'direction':'backward'}),_0x408b32=new ot(_0x1a47a9,{'direction':'forward'});(_0x1a47a9['commands']['add']('showPreviousChange',_0x26cb61),_0x1a47a9['commands']['add']('showNextChange',_0x408b32),_0x1a47a9['commands']['add']('restoreRevision',new nt(_0x1a47a9)),this['on']('change:numberOfChanges',()=>{_0x26cb61['refresh'](),_0x408b32['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1a47a9['enableReadOnlyMode']('revision-viewer'),_0x1a47a9['plugins']['has']('WidgetToolbarRepository'))&&_0x1a47a9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xad6f7f){return await this['_utils']['loadRevisionData'](_0xad6f7f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xad6f7f);}async['getRevisionRootsAttributes'](_0x461884){return await this['_utils']['loadRevisionData'](_0x461884,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x461884);}async['compare'](_0x32eac3,_0x30e3e8,_0x5288f0=!0x1){if(!this['isEnabled'])return;const _0x49d24f=this['diff'],_0x818e27=this['repository'],_0xf3b171='string'==typeof _0x32eac3?_0x818e27['getRevision'](_0x32eac3):_0x32eac3,_0x26dc26='string'==typeof _0x30e3e8?_0x818e27['getRevision'](_0x30e3e8):_0x30e3e8,_0x29ac5e=_0xf3b171['id'],_0x172c61=_0x26dc26?_0x26dc26['id']:null;if(!_0x5288f0&&this['diff']&&this['diff']['newRevisionId']===_0x29ac5e&&this['diff']['oldRevisionId']===_0x172c61)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x29ac5e,_0x172c61);const _0x512799=this['_getRevisionsRange'](_0xf3b171,_0x26dc26,!0x0)['map'](_0x3721a3=>this['_utils']['loadRevisionData'](_0x3721a3,this['adapter']));return _0x512799['push'](new Promise(_0x288ba3=>{setTimeout(_0x288ba3,0x14);})),Promise['all'](_0x512799)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1a03c8=this['_getDiff'](_0x29ac5e,_0x172c61);for(const _0x198d75 of _0x1a03c8['changes'])this['_changeIdToChange']['set'](_0x198d75['id'],_0x198d75);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x20e8ce=>{for(const _0x3c97db of this['editor']['model']['document']['getRootNames']())_0x20e8ce['detachRoot'](_0x3c97db);for(const _0x33efee of Object['keys'](_0x1a03c8['model'])){const _0x5b183e=_0x20e8ce['addRoot'](_0x33efee);for(const _0x26dff7 of Object['keys'](_0x1a03c8['attributes'][_0x33efee]))_0x20e8ce['setAttribute'](_0x26dff7,_0x1a03c8['attributes'][_0x33efee][_0x26dff7],_0x5b183e);_0x20e8ce['insert'](_0x1a03c8['model'][_0x33efee],_0x5b183e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1a03c8['changes'])),this['isReady']=!0x0;})['catch'](_0x515964=>{console['error'](_0x515964),this['_cleanUp'](),_0x49d24f&&(this['diff']=_0x49d24f),this['isReady']=!0x0;});}['addRevisionData'](_0xc45a5e,_0x4b936b){const _0x135eaa=this['repository']['createRevision'](_0xc45a5e);return _0x135eaa['on']('_update',(_0x28d021,_0x50a898,_0xa9b9f8)=>_0x4b936b(_0x50a898,_0xa9b9f8,_0x135eaa)),this['repository']['addRevision'](_0x135eaa),_0x135eaa;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3c668a=>{for(const _0x41b036 of this['editor']['model']['document']['getRootNames']())_0x3c668a['detachRoot'](_0x41b036);});}['_sortAndFilterDiffChanges'](_0xc54674){const _0x27ae20=[],_0x3ab33d=new Map();for(const _0x4293d6 of this['editor']['model']['document']['getRootNames']()){const _0x1b583e=this['editor']['editing']['view']['getDomRoot'](_0x4293d6);if(!_0x1b583e)continue;const _0x50a06b=_0x1b583e['getClientRects']()['item'](0x0);_0x50a06b&&(_0x27ae20['push'](_0x4293d6),_0x3ab33d['set'](_0x4293d6,_0x50a06b));}return _0x27ae20['sort']((_0x2c02f2,_0x1ecc6b)=>{const _0x478899=_0x3ab33d['get'](_0x2c02f2),_0x30c700=_0x3ab33d['get'](_0x1ecc6b);return _0x478899['y']-_0x30c700['y']||_0x478899['x']-_0x30c700['x'];}),(_0xc54674=_0xc54674['filter'](_0x585e0c=>_0x27ae20['includes'](_0x585e0c['rootName'])))['sort']((_0x740b84,_0x4d1951)=>_0x27ae20['indexOf'](_0x740b84['rootName'])-_0x27ae20['indexOf'](_0x4d1951['rootName'])),_0xc54674;}['_makeTape'](_0x48c740){const _0xa5343d=Array['from'](_0x48c740['markers'])['filter'](([_0x5a1efa,_0x3f0aa3])=>_0x5a1efa['startsWith']('revision:')&&!_0x3f0aa3['isCollapsed']),_0x76b0f9=Array['from'](this['editor']['model']['createRangeIn'](_0x48c740)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xa5343d['length'])for(const _0x57544c of _0x76b0f9){const [_0x515296,_0x34179b]=_0xa5343d[0x0],[,_0x313dff,_0x3644d8]=_0x515296['split'](':');if(_0x34179b['end']['isEqual'](_0x57544c['nextPosition'])&&_0xa5343d['shift'](),(_0x57544c['previousPosition']['isEqual'](_0x34179b['start'])||_0x57544c['previousPosition']['isAfter'](_0x34179b['start']))&&('insertion'==_0x313dff?_0x57544c['isAdded']={'userId':_0x3644d8}:'deletion'==_0x313dff&&(_0x57544c['isRemoved']={'userId':_0x3644d8})),0x0==_0xa5343d['length'])break;}return _0x76b0f9;}['_refreshStartEndIndex'](_0x36c47f){const _0x551bee=new Map();for(let _0x374c34=0x0;_0x374c34<_0x36c47f['length'];_0x374c34++)'text'===_0x36c47f[_0x374c34]['type']?(_0x36c47f[_0x374c34]['item']['startIndex']=_0x374c34,_0x36c47f[_0x374c34]['item']['endIndex']=_0x374c34):('elementStart'===_0x36c47f[_0x374c34]['type']?_0x36c47f[_0x374c34]['item']['startIndex']=_0x374c34:'elementEnd'===_0x36c47f[_0x374c34]['type']&&(_0x36c47f[_0x374c34]['item']['endIndex']=_0x374c34),_0x551bee['set'](_0x36c47f[_0x374c34]['id'],_0x374c34));for(const _0x534ad7 of _0x551bee['values']())'elementStart'===_0x36c47f[_0x534ad7]['type']?_0x36c47f[_0x534ad7]['item']['endIndex']=_0x551bee['get'](_0x36c47f[_0x534ad7]['pairId']):'elementEnd'===_0x36c47f[_0x534ad7]['type']&&(_0x36c47f[_0x534ad7]['item']['startIndex']=_0x551bee['get'](_0x36c47f[_0x534ad7]['pairId']));}['_processTape'](_0x422285){for(let _0x3d1a98=0x0;_0x3d1a98<_0x422285['length'];_0x3d1a98++){if('elementStart'===_0x422285[_0x3d1a98]['type'])_0x422285[_0x3d1a98]['item']['startIndex']=_0x3d1a98;else{if('elementEnd'===_0x422285[_0x3d1a98]['type']){_0x422285[_0x3d1a98]['item']['endIndex']=_0x3d1a98;const _0x4ddf44=_0x422285[_0x3d1a98]['item']['startIndex'];_0x422285[_0x4ddf44]['pairId']=_0x422285[_0x3d1a98]['id'],_0x422285[_0x3d1a98]['pairId']=_0x422285[_0x4ddf44]['id'];}else _0x422285[_0x3d1a98]['item']['startIndex']=_0x3d1a98,_0x422285[_0x3d1a98]['item']['endIndex']=_0x3d1a98,_0x422285[_0x3d1a98]['pairId']=null;}_0x422285[_0x3d1a98]['markersStart']||(_0x422285[_0x3d1a98]['markersStart']=[],_0x422285[_0x3d1a98]['markersEnd']=[]);}}['_markInsertions'](_0x3a516d,_0x326e5b){const _0x3708e1=_0x3a516d['filter'](_0x3e7fbc=>!_0x3e7fbc['isAdded']);for(let _0x18039d=0x0;_0x18039d<_0x326e5b['length'];_0x18039d++)_0x326e5b[_0x18039d]['isAdded']&&(_0x3708e1[_0x18039d]['isAdded']=_0x326e5b[_0x18039d]['isAdded']);}['_getDiff'](_0x8ba167,_0x9f7460=null){const _0xa44c8=this['repository']['getRevision'](_0x8ba167),_0x52a362=_0x9f7460?this['repository']['getRevision'](_0x9f7460):null,_0x4159d4=this['_getRevisionsRange'](_0xa44c8,_0x52a362),_0x3c6ad6=_0x4159d4[_0x4159d4['length']-0x1],_0x3fbdfa=new Map(),_0x2e569f={'model':{},'attributes':{},'changes':[]},_0x4c44b1=new Set(),_0x46ab39=new Map();for(let _0x389b79=_0x4159d4['length']-0x1;_0x389b79>=0x0;_0x389b79--){const _0x5ceff0=_0x4159d4[_0x389b79];for(const _0x1d4089 of Object['keys'](_0x5ceff0['diffData']))if(_0x5ceff0['diffData'][_0x1d4089]['attachChange']){const _0x3461a1=_0x5ceff0['diffData'][_0x1d4089]['attachChange'];_0x3461a1['isAttached']?(_0x4c44b1['add'](_0x1d4089),_0x46ab39['has'](_0x1d4089)&&_0x46ab39['get'](_0x1d4089)['userId']==_0x3461a1['userId']?_0x46ab39['delete'](_0x1d4089):_0x46ab39['set'](_0x1d4089,_0x3461a1)):_0x46ab39['has'](_0x1d4089)?(_0x4c44b1['delete'](_0x1d4089),_0x46ab39['delete'](_0x1d4089)):(_0x4c44b1['add'](_0x1d4089),_0x46ab39['set'](_0x1d4089,_0x3461a1));}else _0x4c44b1['add'](_0x1d4089);}for(const _0x1912da of _0x4c44b1){const _0x3b1e1e=_0x46ab39['has'](_0x1912da)&&!_0x46ab39['get'](_0x1912da)['isAttached'];let _0x6c95c=_0x3b1e1e?_0x4159d4['length']-0x1:0x0;const _0x152673=_0x3b1e1e?-0x1:0x1;for(;_0x4159d4[_0x6c95c];){const _0x58ae9=_0x4159d4[_0x6c95c];if(_0x58ae9['diffData'][_0x1912da]){const _0x30ea13=_0x3b1e1e?_0x58ae9['diffData'][_0x1912da]['attributesBefore']:_0x58ae9['diffData'][_0x1912da]['attributesAfter'];_0x2e569f['attributes'][_0x1912da]=_0x30ea13?_0x17cd32(_0x30ea13):{};break;}_0x6c95c+=_0x152673;}}for(const _0xed0088 of _0x4159d4){_0xed0088['model']={};for(const _0x11de1a of _0xed0088['authors'])_0x3fbdfa['set'](_0x11de1a['id'],_0x11de1a);for(const _0x422fed of _0x4c44b1){const _0x5486db=_0xed0088['diffData'][_0x422fed]?_0xed0088['diffData'][_0x422fed]['insertions']:'[]',_0x3f8d91=_0xed0088['diffData'][_0x422fed]?_0xed0088['diffData'][_0x422fed]['deletions']:'[]';_0xed0088['model'][_0x422fed]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5486db),'deletions':this['_utils']['_makeModelFromViewString'](_0x3f8d91)};}}for(const _0xfb2263 of _0x4c44b1){let _0x1d6993=null,_0x170c12=0x0;const _0x5353b8=new Map(Array['from'](_0xa44c8['model'][_0xfb2263]['insertions']['markers'])['filter'](([_0x141445])=>!_0x141445['startsWith']('revision:')));let _0x215829=0x0;for(const _0x3745b8 of _0x4159d4){const _0xdb98ab=this['_makeTape'](_0x3745b8['model'][_0xfb2263]['insertions']);_0x3745b8==_0xa44c8?(_0x1d6993=_0xdb98ab,_0x170c12=_0x1d6993['length'],_0x1d6993['forEach'](_0x43ba09=>{_0x43ba09['id']=_0x215829++;}),this['_processTape'](_0x1d6993)):this['_markInsertions'](_0x1d6993,_0xdb98ab);const _0xd16c86=_0x1d6993['filter'](_0x284da9=>!_0x284da9['isAdded'])['map'](_0x8299a6=>_0x8299a6['id']);let _0x25eee7=0x0;const _0x1a88f9=this['_makeTape'](_0x3745b8['model'][_0xfb2263]['deletions']);_0x1a88f9['forEach'](_0x42f327=>{_0x42f327['isRemoved']?_0x42f327['id']=_0x170c12++:_0x42f327['id']=_0xd16c86[_0x25eee7++];}),this['_processTape'](_0x1a88f9),this['_setDistance'](_0x1d6993,'isAdded'),this['_setDistance'](_0x1a88f9,'isRemoved'),_0x3745b8==_0xa44c8&&this['_markMarkers'](_0x1d6993,_0x5353b8),_0x1d6993=this['_joinTapes'](_0x1d6993,_0x1a88f9),this['_refreshStartEndIndex'](_0x1d6993),this['_setDistance'](_0x1d6993,'isRemoved');}_0x1d6993=_0x1d6993['filter'](_0x47af7d=>!(_0x47af7d['isAdded']&&_0x47af7d['isRemoved']));const _0x20fa35=new Map(_0x3c6ad6['model'][_0xfb2263]['deletions']['markers']),_0x15e83b=new Set(_0x5353b8['keys']());for(const _0x2ecfeb of _0x20fa35['keys']())_0x15e83b['delete'](_0x2ecfeb);this['_markSuggestions'](_0x1d6993,_0x15e83b),this['_fixObsoleteTags'](_0x1d6993),_0x1d6993=this['_removeMissingPairs'](_0x1d6993),_0x1d6993=this['_markMismatchedRemovedTags'](_0x1d6993),_0x1d6993=this['_removeUnsupportedChanges'](_0x1d6993);const {root:_0x361c22,changes:_0x2c0057}=this['_makeModelFromTape'](_0x1d6993,_0x3fbdfa,_0xfb2263);_0x2e569f['model'][_0xfb2263]=_0x361c22;const _0x1b2104=_0x46ab39['get'](_0xfb2263);if(_0x1b2104){const _0x3e2b4f=_0x3fbdfa['get'](_0x1b2104['userId']),_0x4c46d3=new G({'author':_0x3e2b4f,'type':_0x1b2104['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xfb2263});_0x2c0057['unshift'](_0x4c46d3),_0x2e569f['attributes'][_0xfb2263]['revisionHistoryAttachChange']=_0x4c46d3['id'];}_0x2e569f['changes']=_0x2e569f['changes']['concat'](_0x2c0057);}return _0x2e569f;}['_markMarkers'](_0x2e4ecf,_0x33bfb2){for(let _0x59ba17=0x0;_0x59ba17<_0x2e4ecf['length'];_0x59ba17++)for(const [_0x246197,_0x362dac]of _0x33bfb2)!_0x362dac['isCollapsed']&&_0x362dac['start']['isEqual'](_0x2e4ecf[_0x59ba17]['previousPosition'])&&_0x2e4ecf[_0x59ba17]['markersStart']['push'](_0x246197),_0x362dac['end']['isEqual'](_0x2e4ecf[_0x59ba17]['nextPosition'])&&_0x2e4ecf[_0x59ba17]['markersEnd']['push'](_0x246197);}['_joinTapes'](_0x5a312a,_0x1b2358){let _0x41c71c=[],_0x49911c=0x0,_0x4d5788=0x0;for(;_0x49911c<_0x5a312a['length']||_0x4d5788<_0x1b2358['length'];){const _0x2c3317=_0x5a312a[_0x49911c]||{},_0x2e4011=_0x1b2358[_0x4d5788]||{};if(_0x2c3317['id']==_0x2e4011['id'])_0x49911c++,_0x4d5788++,_0x41c71c['push'](_0x2c3317);else{if(_0x2e4011['isRemoved']&&_0x2c3317['isAdded']){const {commonTape:_0x34abbd,iEnd:_0x25ffdb,jEnd:_0x329e03}=this['_threeWayMerge'](_0x5a312a,_0x49911c,_0x1b2358,_0x4d5788);_0x41c71c=_0x41c71c['concat'](_0x34abbd),_0x49911c=_0x25ffdb,_0x4d5788=_0x329e03;}else _0x2e4011['isRemoved']?(_0x4d5788++,_0x41c71c['push'](_0x2e4011)):(_0x49911c++,_0x41c71c['push'](_0x2c3317));}}return _0x41c71c;}['_markSuggestions'](_0x1a8bf3,_0x2524bb){const _0x2d0708=[];for(let _0x5ea389=0x0;_0x5ea389<_0x1a8bf3['length'];_0x5ea389++){for(let _0x20eb22=0x0;_0x20eb22<_0x1a8bf3[_0x5ea389]['markersStart']['length'];_0x20eb22++){const _0x3b92eb=_0x1a8bf3[_0x5ea389]['markersStart'][_0x20eb22];if(!_0x2524bb['has'](_0x3b92eb))continue;const {group:_0x6e2dc6,type:_0x449dfb,authorId:_0x5e45bf}=_0x40358b(_0x3b92eb);'revision-suggestion'!=_0x6e2dc6||'insertion'!=_0x449dfb&&'deletion'!=_0x449dfb||(_0x2d0708['unshift']({'type':_0x449dfb,'name':_0x3b92eb,'userId':_0x5e45bf}),_0x1a8bf3[_0x5ea389]['markersStart']['splice'](_0x20eb22,0x1),_0x20eb22--);}_0x6d402e(_0x1a8bf3[_0x5ea389]);for(let _0x5cfca7=0x0;_0x5cfca7<_0x1a8bf3[_0x5ea389]['markersEnd']['length'];_0x5cfca7++){const _0x1a5551=_0x1a8bf3[_0x5ea389]['markersEnd'][_0x5cfca7];if(!_0x2524bb['has'](_0x1a5551))continue;const {group:_0x1a7702,type:_0x165827}=_0x40358b(_0x1a5551);if('revision-suggestion'!=_0x1a7702||'insertion'!=_0x165827&&'deletion'!=_0x165827)continue;_0x1a8bf3[_0x5ea389]['markersEnd']['splice'](_0x5cfca7,0x1),_0x5cfca7--;const _0x17860e=_0x2d0708['findIndex'](_0xddb1b9=>_0xddb1b9['name']==_0x1a5551);_0x17860e>-0x1&&_0x2d0708['splice'](_0x17860e,0x1);}}function _0x40358b(_0x4c51d1){const _0x1a65c2=_0x4c51d1['split'](':');return{'group':_0x1a65c2[0x0],'type':_0x1a65c2[0x1],'subType':_0x1a65c2['length']>=0x5?_0x1a65c2[0x2]:null,'id':_0x1a65c2['length']<0x5?_0x1a65c2[0x2]:_0x1a65c2[0x3],'authorId':_0x1a65c2['length']<0x5?_0x1a65c2[0x3]:_0x1a65c2[0x4],'markerCount':0x6==_0x1a65c2['length']?_0x1a65c2[0x5]:null};}function _0x6d402e(_0x20ebb5){for(let _0x3ee4f4=0x0;_0x3ee4f4<_0x2d0708['length'];_0x3ee4f4++){if(_0x20ebb5['isAdded']&&'insertion'==_0x2d0708[_0x3ee4f4]['type']&&_0x20ebb5['isAdded']['userId']==_0x2d0708[_0x3ee4f4]['userId'])return _0x20ebb5['isAddSuggestion']=_0x2d0708[_0x3ee4f4],void delete _0x20ebb5['isAdded'];if(!_0x20ebb5['isAdded']&&!_0x20ebb5['isRemoved']&&'deletion'==_0x2d0708[_0x3ee4f4]['type'])return void(_0x20ebb5['isRemoveSuggestion']=_0x2d0708[_0x3ee4f4]);}}}['_setDistance'](_0x320371,_0x104e62){let _0x41e711=0x0,_0x5d07e1=!0x1;const _0x25fe96=new Map();for(const _0x92655c of _0x320371)_0x92655c[_0x104e62]?_0x5d07e1&&(_0x41e711++,_0x5d07e1=!0x1):(_0x41e711++,_0x5d07e1=!0x0),_0x25fe96['set'](_0x92655c['id'],_0x41e711);for(let _0x107dbd=0x0;_0x107dbd<_0x320371['length'];_0x107dbd++){if('isRemoved'==_0x104e62&&_0x320371[_0x107dbd]['isAdded']||'isAdded'==_0x104e62&&_0x320371[_0x107dbd]['isRemoved'])continue;if('text'==_0x320371[_0x107dbd]['type']){_0x320371[_0x107dbd]['distance']=0x0;continue;}const _0x57d318=_0x25fe96['get'](_0x320371[_0x107dbd]['pairId']),_0x15b2cc=_0x25fe96['get'](_0x320371[_0x107dbd]['id']);_0x320371[_0x107dbd]['distance']=_0x57d318-_0x15b2cc;}}['_getRevisionsRange'](_0x120d06,_0x28a9e4,_0x2e0ea5=!0x1){const _0x4a314d=[];let _0x39836e=this['repository']['getIndex'](_0x120d06),_0x3010a7=this['repository']['getIndex'](_0x28a9e4);for(-0x1==_0x3010a7&&(_0x3010a7=this['repository']['_revisions']['length'],_0x2e0ea5=!0x1);_0x39836e<_0x3010a7;)_0x4a314d['push'](this['repository']['getRevision'](_0x39836e)),_0x39836e++;return _0x2e0ea5&&_0x4a314d['push'](this['repository']['getRevision'](_0x39836e)),_0x4a314d;}['_threeWayMerge'](_0x5361df,_0x2517fc,_0x190864,_0x339b12){const _0x1a7fa6=this['editor']['model']['schema'];let _0x4e13e7=_0x2517fc;for(;_0x5361df[_0x4e13e7]&&_0x5361df[_0x4e13e7]['isAdded'];)_0x4e13e7++;let _0xcab94d=_0x339b12;for(;_0x190864[_0xcab94d]&&_0x190864[_0xcab94d]['isRemoved'];)_0xcab94d++;_0x2c6d27(_0x5361df,_0x2517fc,_0x4e13e7),_0x2c6d27(_0x190864,_0x339b12,_0xcab94d);const _0x173f6a=_0x190864['slice'](_0x339b12,_0xcab94d)['concat'](_0x5361df['slice'](_0x2517fc,_0x4e13e7));return _0x173f6a['sort']((_0xa37a9a,_0x32cdff)=>_0xa37a9a['side']!=_0x32cdff['side']?_0xa37a9a['side']-_0x32cdff['side']:_0xa37a9a['level']!=_0x32cdff['level']?_0xa37a9a['level']-_0x32cdff['level']:_0xa37a9a['distance']!=_0x32cdff['distance']?_0x32cdff['distance']-_0xa37a9a['distance']:!!_0xa37a9a['isAdded']!=!!_0x32cdff['isAdded']?-0x1==_0xa37a9a['side']||0x0==_0xa37a9a['side']?_0xa37a9a['isAdded']?-0x1:0x1:_0xa37a9a['isAdded']?0x1:-0x1:_0xa37a9a['index']-_0x32cdff['index']),{'commonTape':_0x173f6a,'iEnd':_0x4e13e7,'jEnd':_0xcab94d};function _0x2c6d27(_0xc4ef68,_0x34d303,_0x18c183){let _0x1bdc7c=-0x1,_0x7b89c5=Number['POSITIVE_INFINITY'],_0x122094=!0x0;for(let _0x454c1b=_0x34d303;_0x454c1b<_0x18c183;_0x454c1b++)if(_0x1a7fa6['isInline'](_0xc4ef68[_0x454c1b]['item'])||(_0x122094=!0x1),_0xc4ef68[_0x454c1b]['item']['startIndex']<_0x34d303&&(_0x1bdc7c=_0x454c1b),_0xc4ef68[_0x454c1b]['item']['endIndex']>=_0x18c183){_0x7b89c5=_0x454c1b;break;}_0x122094&&(_0x1bdc7c=_0x18c183-0x1);for(let _0x390b2c=_0x34d303;_0x390b2c<_0x18c183;_0x390b2c++)_0xc4ef68[_0x390b2c]['side']=_0x390b2c<=_0x1bdc7c?-0x1:_0x390b2c<_0x7b89c5?0x0:0x1,_0xc4ef68[_0x390b2c]['index']=_0x390b2c;let _0x239f46=0x0;for(let _0x2e8dc1=_0x34d303;_0x2e8dc1<=_0x1bdc7c;_0x2e8dc1++)0x0==_0xc4ef68[_0x2e8dc1]['distance']?_0xc4ef68[_0x2e8dc1]['level']=_0x239f46:(_0x239f46++,_0xc4ef68[_0x2e8dc1]['level']=_0x239f46,_0x239f46++);for(let _0x37342d=_0x34d303;_0x37342d<_0x18c183;_0x37342d++)0x0==_0xc4ef68[_0x37342d]['side']&&(_0xc4ef68[_0x37342d]['level']=_0x239f46);_0x239f46=0x0;for(let _0xf5cb87=_0x18c183-0x1;_0xf5cb87>=_0x7b89c5;_0xf5cb87--)0x0==_0xc4ef68[_0xf5cb87]['distance']?_0xc4ef68[_0xf5cb87]['level']=_0x239f46:(_0x239f46--,_0xc4ef68[_0xf5cb87]['level']=_0x239f46,_0x239f46--);}}['_fixObsoleteTags'](_0x150f79){const _0x1970ed=new Map(),_0x18ffc3=this['editor']['model']['schema'];for(let _0x4d5349=0x1;_0x4d5349<_0x150f79['length'];_0x4d5349++){let _0x2c2606,_0x38a31a,_0x3e88e2;const _0x239e03=_0x150f79[_0x4d5349],_0x3e8eb1=_0x150f79[_0x4d5349-0x1];if('text'==_0x239e03['type'])continue;if(_0x239e03['type']!=_0x3e8eb1['type'])continue;if(!_0x18ffc3['isBlock'](_0x3e8eb1['item'])||_0x18ffc3['isLimit'](_0x3e8eb1['item']))continue;if(!_0x18ffc3['isBlock'](_0x239e03['item'])||_0x18ffc3['isLimit'](_0x239e03['item']))continue;if((_0x150f79[_0x4d5349]['isAdded']||_0x150f79[_0x4d5349]['isAddSuggestion'])&&_0x150f79[_0x4d5349-0x1]['isRemoved'])_0x2c2606=_0x150f79[_0x4d5349],_0x38a31a=_0x150f79[_0x4d5349-0x1],_0x3e88e2=_0x4d5349-0x1;else{if(!_0x150f79[_0x4d5349]['isRemoved']||!_0x150f79[_0x4d5349-0x1]['isAdded']&&!_0x150f79[_0x4d5349-0x1]['isAddSuggestion'])continue;_0x2c2606=_0x150f79[_0x4d5349-0x1],_0x38a31a=_0x150f79[_0x4d5349],_0x3e88e2=_0x4d5349;}const _0x3f1ec3=_0x2c2606['level']==_0x38a31a['level'],_0x169e0b=Math['abs'](_0x2c2606['level'])<Math['abs'](_0x38a31a['level'])&&0x0==_0x38a31a['distance'];(_0x3f1ec3||_0x169e0b)&&(_0x1970ed['set'](_0x38a31a['id'],_0x2c2606['id']),_0x150f79['splice'](_0x3e88e2,0x1),_0x4d5349--,_0x2c2606['isAdded']=!0x1);}for(let _0x3c7a95=0x0;_0x3c7a95<_0x150f79['length'];_0x3c7a95++)_0x1970ed['has'](_0x150f79[_0x3c7a95]['pairId'])&&(_0x150f79[_0x3c7a95]['pairId']=_0x1970ed['get'](_0x150f79[_0x3c7a95]['pairId']));}['_removeMissingPairs'](_0x18dfec){const _0x4f6b5f=new Set(_0x18dfec['map'](_0x414e0a=>_0x414e0a['id']));for(let _0x4d8e57=0x0;_0x4d8e57<_0x18dfec['length'];_0x4d8e57++)_0x4f6b5f['has'](_0x18dfec[_0x4d8e57]['pairId'])||0x0==_0x18dfec[_0x4d8e57]['distance']||(_0x18dfec[_0x4d8e57]['isIncorrect']=!0x0);return _0x18dfec['filter'](_0x9e9e59=>!_0x9e9e59['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3b923e){const _0x4e1ff8=new Set();for(let _0x2814d2=0x0;_0x2814d2<_0x3b923e['length'];_0x2814d2++){if(_0x4e1ff8['has'](_0x3b923e[_0x2814d2]['id'])&&_0x3b923e[_0x2814d2]['isRemoved']&&(_0x3b923e[_0x2814d2]['isIncorrect']=!0x0),_0x3b923e[_0x2814d2]['isIncorrect'])continue;if(0x0==_0x3b923e[_0x2814d2]['distance'])continue;if('elementStart'!=_0x3b923e[_0x2814d2]['type'])continue;if(null==_0x3b923e[_0x2814d2]['pairId'])continue;let _0x3b5fe1=_0x2814d2+0x1,_0x5b3b64=0x0;for(;_0x3b923e[_0x3b5fe1]['id']!=_0x3b923e[_0x2814d2]['pairId'];)'elementStart'==_0x3b923e[_0x3b5fe1]['type']?_0x5b3b64++:'elementEnd'==_0x3b923e[_0x3b5fe1]['type']&&_0x5b3b64--,_0x3b5fe1++;if(0x0!=_0x5b3b64){if(_0x3b923e[_0x2814d2]['isRemoved'])_0x3b923e[_0x2814d2]['isIncorrect']=!0x0;else{for(;_0x3b5fe1!=_0x2814d2;)_0x3b923e[_0x3b5fe1]['isRemoved']&&0x0!=_0x3b923e[_0x3b5fe1]['distance']&&(_0x3b923e[_0x3b5fe1]['isIncorrect']=!0x0,_0x4e1ff8['add'](_0x3b923e[_0x3b5fe1]['pairId'])),_0x3b5fe1--;}}}return _0x3b923e['filter'](_0x40a2ec=>!_0x40a2ec['isIncorrect']);}['_removeUnsupportedChanges'](_0x72c66f){const _0x21637d=this['editor']['model']['schema'];for(let _0x426fce=0x0;_0x426fce<_0x72c66f['length'];_0x426fce++){if(!(_0x72c66f[_0x426fce]['isAdded']||_0x72c66f[_0x426fce]['isAddSuggestion']||_0x72c66f[_0x426fce]['isRemoved']||_0x72c66f[_0x426fce]['isRemoveSuggestion']))continue;if(0x0==_0x72c66f[_0x426fce]['distance'])continue;const _0x50cbaf=_0x72c66f[_0x426fce]['item'];_0x21637d['isBlock'](_0x50cbaf)||_0x21637d['isLimit'](_0x50cbaf)||(_0x72c66f[_0x426fce]['isAdded']&&delete _0x72c66f[_0x426fce]['isAdded'],_0x72c66f[_0x426fce]['isAddSuggestion']&&delete _0x72c66f[_0x426fce]['isAddSuggestion'],_0x72c66f[_0x426fce]['isRemoveSuggestion']&&delete _0x72c66f[_0x426fce]['isRemoveSuggestion'],_0x72c66f[_0x426fce]['isRemoved']&&(_0x72c66f[_0x426fce]['isIncorrect']=!0x0));}return _0x72c66f['filter'](_0x5f0a53=>!_0x5f0a53['isIncorrect']);}['_makeModelFromTape'](_0x199730,_0x552fa8,_0x4109b9){const _0x1d839b=new _0x48290c(),_0x48645e=[],_0x69b387=new Map(),_0x33a01a=this['editor']['model'],_0x1b2695=_0x33a01a['schema'],_0x44d227=[_0x1d839b],_0x481d04={},_0x28d159={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x207906=null;const _0x4609bc=[0x0];for(let _0x371ea7=0x0;_0x371ea7<_0x199730['length'];_0x371ea7++)if('elementStart'===_0x199730[_0x371ea7]['type']){_0x199730[_0x371ea7]['previousPosition']=_0x33a01a['createPositionFromPath'](_0x1d839b,_0x4609bc);const _0x2bc9c7=new _0x424a2d(_0x199730[_0x371ea7]['item']['name'],_0x199730[_0x371ea7]['item']['getAttributes']());_0x44d227[0x0]['_appendChild'](_0x2bc9c7),_0x4609bc['push'](0x0),_0x44d227['unshift'](_0x2bc9c7),_0x199730[_0x371ea7]['nextPosition']=_0x33a01a['createPositionFromPath'](_0x1d839b,_0x4609bc);}else'elementEnd'===_0x199730[_0x371ea7]['type']?(_0x44d227['shift'](),_0x199730[_0x371ea7]['previousPosition']=_0x33a01a['createPositionFromPath'](_0x1d839b,_0x4609bc),_0x4609bc['pop'](),_0x4609bc[_0x4609bc['length']-0x1]++,_0x199730[_0x371ea7]['nextPosition']=_0x33a01a['createPositionFromPath'](_0x1d839b,_0x4609bc)):(_0x199730[_0x371ea7]['previousPosition']=_0x33a01a['createPositionFromPath'](_0x1d839b,_0x4609bc),_0x207906?_0x207906['_data']+=_0x199730[_0x371ea7]['item']['data']:_0x207906=new _0x31865a(_0x199730[_0x371ea7]['item']['data'],_0x199730[_0x371ea7]['item']['getAttributes']()),_0x199730[_0x371ea7+0x1]&&'text'===_0x199730[_0x371ea7+0x1]['type']&&_0x108e7f(_0x207906,_0x199730[_0x371ea7+0x1]['item'])||(_0x44d227[0x0]['_appendChild'](_0x207906),_0x207906=null),_0x4609bc[_0x4609bc['length']-0x1]+=_0x199730[_0x371ea7]['item']['offsetSize'],_0x199730[_0x371ea7]['nextPosition']=_0x33a01a['createPositionFromPath'](_0x1d839b,_0x4609bc));for(let _0x2c8f19=0x0;_0x2c8f19<_0x199730['length'];_0x2c8f19++){const _0x53fbb6=_0x199730[_0x2c8f19]['previousPosition'],_0x310f6c=_0x199730[_0x2c8f19]['nextPosition'];for(const _0x5e686d of _0x199730[_0x2c8f19]['markersStart'])_0x69b387['set'](_0x5e686d,{'start':_0x53fbb6,'end':null});_0x3c8da5('isRemoveSuggestion',_0x2c8f19,_0x53fbb6,_0x310f6c),_0x3c8da5('isAddSuggestion',_0x2c8f19,_0x53fbb6,_0x310f6c),_0x3c8da5('isRemoved',_0x2c8f19,_0x53fbb6,_0x310f6c),_0x3c8da5('isAdded',_0x2c8f19,_0x53fbb6,_0x310f6c);for(const _0x5f545c of _0x199730[_0x2c8f19]['markersEnd']){const _0x46f50c=_0x69b387['get'](_0x5f545c);_0x46f50c?_0x46f50c['end']=_0x310f6c:_0x69b387['set'](_0x5f545c,{'start':_0x310f6c,'end':_0x310f6c});}}for(const [_0x5a3eaf,_0xb77ca4]of _0x69b387){const _0x224ba2=this['editor']['model']['createRange'](_0xb77ca4['start'],_0xb77ca4['end']);_0x1d839b['markers']['set'](_0x5a3eaf,_0x224ba2);}return _0x48645e['sort']((_0x3f6c98,_0x68f4c)=>{const _0x3a2ca2=_0x1d839b['markers']['get']('revision:'+_0x3f6c98['id']),_0x5347f1=_0x1d839b['markers']['get']('revision:'+_0x68f4c['id']);return _0x3a2ca2['start']['isBefore'](_0x5347f1['start'])?-0x1:_0x3a2ca2['start']['isAfter'](_0x5347f1['start'])?0x1:_0x3a2ca2['end']['isBefore'](_0x5347f1['end'])?-0x1:_0x3a2ca2['end']['isAfter'](_0x5347f1['end'])?0x1:'add'===_0x3f6c98['type']?-0x1:0x1;}),{'root':_0x1d839b,'changes':_0x48645e};function _0x3c8da5(_0x4ed6d7,_0xb9f260,_0x2402ce,_0x33f4f6){const _0xd12822=!!_0x199730[_0xb9f260][_0x4ed6d7],_0x59c431=_0xd12822?_0x199730[_0xb9f260][_0x4ed6d7]['userId']:null,_0x8e803f=_0xb9f260===_0x199730['length']-0x1,_0x1ed882=_0x28d159[_0x4ed6d7][0x0],_0x226834=_0x1b2695['isObject'](_0x199730[_0xb9f260]['item']);!_0x481d04[_0x4ed6d7]&&_0xd12822?_0x481d04[_0x4ed6d7]={'start':_0x2402ce,'tapeItem':_0x199730[_0xb9f260],'userId':_0x59c431,'type':_0x4ed6d7}:_0x481d04[_0x4ed6d7]&&!_0xd12822?(_0x481d04[_0x4ed6d7]['end']=_0x2402ce,_0x1d41b7(_0x481d04[_0x4ed6d7]),_0x481d04[_0x4ed6d7]=null):_0x481d04[_0x4ed6d7]&&_0xd12822&&_0x481d04[_0x4ed6d7]['userId']!==_0x59c431&&(_0x481d04[_0x4ed6d7]['end']=_0x2402ce,_0x1ed882&&_0x1ed882['userId']===_0x481d04[_0x4ed6d7]['userId']||_0x1d41b7(_0x481d04[_0x4ed6d7]),_0x481d04[_0x4ed6d7]={'start':_0x2402ce,'tapeItem':_0x199730[_0xb9f260],'userId':_0x59c431,'type':_0x4ed6d7}),_0x481d04[_0x4ed6d7]&&_0x226834&&('elementStart'!==_0x199730[_0xb9f260]['type']||_0x1ed882&&_0x1ed882['userId']===_0x59c431||_0x28d159[_0x4ed6d7]['unshift']({'userId':_0x59c431,'object':_0x199730[_0xb9f260]['item'],'change':_0x481d04[_0x4ed6d7]}),'elementEnd'===_0x199730[_0xb9f260]['type']&&_0x1ed882&&_0x1ed882['object']===_0x199730[_0xb9f260]['item']&&(_0x28d159[_0x4ed6d7]['shift'](),_0x481d04[_0x4ed6d7]=_0x1ed882['change'])),_0x481d04[_0x4ed6d7]&&_0x8e803f&&(_0x481d04[_0x4ed6d7]['end']=_0x33f4f6,_0x1d41b7(_0x481d04[_0x4ed6d7]),_0x481d04[_0x4ed6d7]=null);}function _0x1d41b7({start:_0x9f28b7,end:_0x56d224,tapeItem:_0x8b5101,userId:_0x505923,type:_0x4c7f76}){const _0x3bb5c9=_0x8b5101['item'],_0x20470c=_0x33a01a['schema']['isBlock'](_0x3bb5c9)&&!_0x33a01a['schema']['isLimit'](_0x3bb5c9),_0x28cb6b=_0x9f28b7['nodeAfter']==_0x56d224['parent']&&_0x56d224['isAtStart'];if(_0x20470c&&_0x28cb6b)return;const _0x3c00d0=_0x33a01a['createRange'](_0x9f28b7,_0x56d224),_0x133484=_0x552fa8['get'](_0x505923),_0x74b4e=new G({'author':_0x133484,'type':'isAdded'==_0x4c7f76||'isAddSuggestion'==_0x4c7f76?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4c7f76||'isRemoveSuggestion'==_0x4c7f76},'createdAt':new Date(),'rootName':_0x4109b9});_0x48645e['push'](_0x74b4e),_0x1d839b['markers']['set']('revision:'+_0x74b4e['id'],_0x3c00d0);}function _0x108e7f(_0x3afaa7,_0x403869){const _0x48e47e=_0x3afaa7['getAttributes'](),_0x233d33=_0x403869['getAttributes']();for(const _0x5f5b4b of _0x48e47e){if(_0x5f5b4b[0x1]!==_0x403869['getAttribute'](_0x5f5b4b[0x0]))return!0x1;_0x233d33['next']();}return _0x233d33['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x33f02b=>{const _0x501c37=_0x33f02b['markerName']['split'](':')[0x1],_0x1f1db4=this['_getChangeFromId'](_0x501c37);if(!_0x1f1db4)return null;const _0x2c0ff2='add'==_0x1f1db4['type']?'insertion':'deletion',_0x4f09d3=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2c0ff2];return _0x1f1db4['data']['isSuggestion']&&_0x4f09d3['push']('ck-suggestion-marker-'+_0x2c0ff2+'-new'),this['activeChange']==_0x1f1db4&&_0x4f09d3['push']('ck-suggestion-marker--active'),{'classes':_0x4f09d3,'attributes':{'data-change-id':_0x501c37}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x11896c=>{_0x11896c['on']('element:pre',(_0x516b12,_0x471bb8,_0x54072f)=>{const _0x29895f=_0x471bb8['viewItem']['getChild'](0x0);if(!_0x29895f||!_0x29895f['is']('element','code'))return;if(!_0x54072f['consumable']['consume'](_0x29895f,{'attributes':['vid_start','vid_end']}))return;const _0x9215ab=_0x471bb8['modelRange']['start']['nodeAfter'];_0x54072f['writer']['setAttribute']('vid_start',_0x29895f['getAttribute']('vid_start'),_0x9215ab),_0x54072f['writer']['setAttribute']('vid_end',_0x29895f['getAttribute']('vid_end'),_0x9215ab);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3fa03b=>{_0x3fa03b['on']('element',(_0x425d7d,_0xb3f907,_0x2ec8af)=>{if(!_0x2ec8af['consumable']['consume'](_0xb3f907['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xb3f907['modelRange']['isCollapsed'])return;const _0x213151=_0xb3f907['modelRange']['start']['nodeAfter'];_0x213151['hasAttribute']('vid_start')||_0x213151['hasAttribute']('vid')||(_0x2ec8af['writer']['setAttribute']('vid_start',_0xb3f907['viewItem']['getAttribute']('vid_start'),_0x213151),_0x2ec8af['writer']['setAttribute']('vid_end',_0xb3f907['viewItem']['getAttribute']('vid_end'),_0x213151));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x177172=>_0x177172['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4f90e8,[,_0x76980a])=>{['vid_start','vid_end','vid']['includes'](_0x76980a)&&(_0x4f90e8['return']=!0x0,_0x4f90e8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x173708=>{_0x173708['on']('attribute:vid',(_0xaf071a,_0x1d021c,_0x4c625e)=>{if('\x20'!=_0x1d021c['item']['data']||_0x1d021c['item']['parent']['maxOffset']>0x1)return;if(!_0x4c625e['consumable']['consume'](_0x1d021c['item'],_0xaf071a['name']))return;const _0x1ea4bb=_0x4c625e['writer'],_0x405160=_0x4c625e['mapper']['toViewRange'](_0x1d021c['range']);_0x1ea4bb['wrap'](_0x405160,_0x1ea4bb['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x6481c8){const _0x355794=_0x6481c8['plugins']['get']('RevisionViewer');return(_0x4de4ed,_0x3c3d0e,_0xc3079b)=>{const _0x3f06d8=_0x3c3d0e['markerName']['split'](':')[0x1],_0x393231=_0x355794['_getChangeFromId'](_0x3f06d8);if(!_0x393231)return null;const _0x3714ee='add'==_0x393231['type']?'split':'merge';if(!_0xc3079b['consumable']['test'](_0x3c3d0e['markerRange'],_0x4de4ed['name']))return;const _0x3c34f0=_0x3c3d0e['markerRange']['getWalker'](),_0x41a6a3=_0x3c3d0e['markerRange']['start'],_0x2dd232=_0x6481c8['model']['schema'];let _0x4dac48=null,_0x5e8d55=null,_0xf180fb=!0x1,_0x52c846=!0x1;for(const _0x2d9629 of _0x3c34f0){const _0x3ff04b=_0x2d9629['item'];_0xf180fb=_0xf180fb||_0x2dd232['isContent'](_0x3ff04b);const _0x2020c7=_0xc3079b['mapper']['toViewElement'](_0x3ff04b);if(_0x2020c7&&_0x2020c7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d9629['type']&&(_0x2dd232['isBlock'](_0x3ff04b)&&!_0x2dd232['isLimit'](_0x3ff04b)&&(_0x3ff04b['nextSibling']||_0x41a6a3['isAtEnd']?_0x4dac48&&_0x4dac48['parent']==_0x3ff04b||(_0x4dac48=_0x3ff04b,_0x389a51(_0x2d9629['previousPosition']),_0x52c846=!0x0):_0x5e8d55=_0x5e8d55||_0x2d9629['previousPosition']));}function _0x389a51(_0x3ea304){const _0x1afb7e=_0xc3079b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3714ee}),_0x4bcc3f=_0xc3079b['mapper']['toViewPosition'](_0x3ea304);_0x393231['data']['isSuggestion']&&_0xc3079b['writer']['addClass']('ck-suggestion-marker-'+_0x3714ee+'-new',_0x1afb7e),_0x355794['activeChange']==_0x393231&&_0xc3079b['writer']['addClass']('ck-suggestion-marker--active',_0x1afb7e),_0xc3079b['writer']['insert'](_0x4bcc3f,_0x1afb7e),_0xc3079b['mapper']['bindElementToMarker'](_0x1afb7e,_0x3c3d0e['markerName']);}_0xf180fb||_0x52c846||!_0x5e8d55||_0x389a51(_0x5e8d55);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1f9494,_0xd0580e,_0x2beff5)=>{const _0x26897d=_0x2beff5['mapper']['markerNameToElements'](_0xd0580e['markerName']);if(_0x26897d){for(const _0x256fd0 of _0x26897d)(_0x256fd0['hasClass']('ck-suggestion-marker-split')||_0x256fd0['hasClass']('ck-suggestion-marker-merge'))&&(_0x2beff5['mapper']['unbindElementFromMarkerName'](_0x256fd0,_0xd0580e['markerName']),_0x2beff5['writer']['remove'](_0x256fd0));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x576d9a,_0x57c940,_0x49860e)=>{const _0x4bada2=_0x57c940['markerName']['split'](':')[0x1],_0x316b51=this['_getChangeFromId'](_0x4bada2);if(!_0x316b51)return null;const _0x379027='add'==_0x316b51['type']?'split':'merge';if(_0x49860e['consumable']['test'](_0x57c940['markerRange'],_0x576d9a['name']))for(const _0x49ab8a of _0x57c940['markerRange']['getItems']()){if(!_0x49ab8a['is']('element','softBreak'))continue;const _0x1b0aa9=_0x49860e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x379027}),_0x19cf24=_0x49860e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x49ab8a));_0x316b51['data']['isSuggestion']&&_0x49860e['writer']['addClass']('ck-suggestion-marker-'+_0x379027+'-new',_0x1b0aa9),this['activeChange']==_0x316b51&&_0x49860e['writer']['addClass']('ck-suggestion-marker--active',_0x1b0aa9),_0x49860e['writer']['insert'](_0x19cf24,_0x1b0aa9),_0x49860e['mapper']['bindElementToMarker'](_0x1b0aa9,_0x57c940['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5aaf37=>{for(const _0x192d8a of this['editor']['model']['document']['getRootNames']()){const _0x102ee5=this['editor']['model']['document']['getRoot'](_0x192d8a),_0x10d6a5=this['editor']['editing']['view']['document']['getRoot'](_0x192d8a);if(_0x10d6a5){const _0xe487e6=_0x102ee5['getAttribute']('revisionHistoryAttachChange');if(_0x5aaf37['removeAttribute']('data-change-id',_0x10d6a5),_0x5aaf37['removeClass']('ck-revision-history-root-add',_0x10d6a5),_0x5aaf37['removeClass']('ck-revision-history-root-remove',_0x10d6a5),_0x5aaf37['removeClass']('ck-revision-history-root--active',_0x10d6a5),_0xe487e6){const _0x531ca0=this['_getChangeFromId'](_0xe487e6);if(!_0x531ca0)return null;_0x5aaf37['setAttribute']('data-change-id',_0xe487e6,_0x10d6a5),_0x5aaf37['addClass']('ck-revision-history-root-'+_0x531ca0['type'],_0x10d6a5),this['activeChange']==_0x531ca0&&_0x5aaf37['addClass']('ck-revision-history-root--active',_0x10d6a5);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xa3cd0=>'revision-comment:'+_0xa3cd0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1366e1=>'revision-suggestion:'+_0x1366e1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x15db2a=>({'name':'suggestion:'+_0x15db2a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5e73af=>{const _0x502cb6=_0x5e73af['markerName']['split'](':')[0x1];return'insertion'!=_0x502cb6&&'deletion'!=_0x502cb6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x502cb6]};}}),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',(_0x3496c1,_0x5346f6,_0x4b240b)=>{const _0x4df2cb=_0x4b240b['mapper']['markerNameToElements'](_0x5346f6['markerName']);if(_0x4df2cb){for(const _0x1d05b4 of _0x4df2cb)_0x1d05b4['is']('uiElement')&&(_0x4b240b['mapper']['unbindElementFromMarkerName'](_0x1d05b4,_0x5346f6['markerName']),_0x4b240b['writer']['remove'](_0x1d05b4));}},{'priority':'high'});}['_getChangeFromId'](_0x4f88b0){return this['_changeIdToChange']['get'](_0x4f88b0);}['_getViewForChange'](_0x4c55e6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x4c55e6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x6df183,_0x2209e7,_0x8956de,_0xea0d2)=>{_0xea0d2&&this['_balloon']['remove'](_0xea0d2),_0x8956de&&(this['_balloon']['add']({'view':_0x8956de,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x383be1=this['editor']['editing'],_0x59e721=this['_getChangeFromId'](_0x8956de['changeId']);let _0xd940d0;if(_0x59e721['data']['isOnRoot']){const _0x3c62cc=_0x383be1['view']['getDomRoot'](_0x59e721['rootName']);_0xd940d0=Array['from'](_0x3c62cc['getClientRects']());}else{const _0x57834b=this['editor']['model']['markers']['get']('revision:'+_0x8956de['changeId']);_0xd940d0=Array['from'](_0x383be1['mapper']['markerNameToElements'](_0x57834b['name']))['map'](_0x2b1102=>_0x383be1['view']['domConverter']['mapViewToDom'](_0x2b1102))['map'](_0x2ff318=>Array['from'](_0x2ff318['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xd940d0[0x0];return _0xd940d0['find'](_0x496b2a=>_0x496b2a['top']-0x3<=this['_activeViewTarget']['y']&&_0x496b2a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x496b2a['left']-0x3<=this['_activeViewTarget']['x']&&_0x496b2a['right']+0x3>=this['_activeViewTarget']['x'])||_0xd940d0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x44c38e,_0x585a61,_0x11ca5d,_0x50cbf8)=>{this['activeView']=_0x11ca5d?this['_getViewForChange'](_0x11ca5d):null,this['editor']['model']['change'](()=>{const _0x1cfc53=this['editor']['editing'];_0x50cbf8&&(_0x50cbf8['data']['isOnRoot']?_0x1cfc53['view']['change'](_0x4b4558=>{_0x4b4558['removeClass']('ck-revision-history-root--active',_0x1cfc53['view']['document']['getRoot'](_0x50cbf8['rootName']));}):_0x1cfc53['reconvertMarker']('revision:'+_0x50cbf8['id'])),_0x11ca5d&&(_0x11ca5d['data']['isOnRoot']?_0x1cfc53['view']['change'](_0x25d75d=>{_0x25d75d['addClass']('ck-revision-history-root--active',_0x1cfc53['view']['document']['getRoot'](_0x11ca5d['rootName']));}):_0x1cfc53['reconvertMarker']('revision:'+_0x11ca5d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x401d10,_0x41c38f)=>{if(this['activeChange'])return;const _0x30bd7e=this['_findChangeIdFromDomTarget'](_0x41c38f['target']),_0x33a642=this['_changeIdToChange']['get'](_0x30bd7e);_0x33a642?(this['_activeViewTarget']={'x':_0x41c38f['domEvent']['x'],'y':_0x41c38f['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x33a642)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x549a72,_0x33166a)=>{const _0x61f7c3=this['_findChangeIdFromDomTarget'](_0x33166a['target']),_0x27b653=this['_changeIdToChange']['get'](_0x61f7c3);_0x27b653?(this['_activeViewTarget']={'x':_0x33166a['domEvent']['x'],'y':_0x33166a['domEvent']['y']},_0x27b653===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x27b653):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5ad4e8){do{const _0x377ab7=_0x5ad4e8['getAttribute']('data-change-id');if(_0x377ab7)return _0x377ab7;_0x5ad4e8=_0x5ad4e8['parent'];}while(_0x5ad4e8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1746aa=>{for(const _0x5ef05f of this['editor']['model']['markers'])_0x1746aa['removeMarker'](_0x5ef05f);});}}function Q(_0x313228,_0x3694ff){return(_0x3092db,_0x40705a,_0x248f48)=>{if(!_0x248f48['consumable']['test'](_0x40705a['markerRange'],_0x3092db['name']))return;const _0x2624a5=_0x40705a['markerRange']['getWalker'](),_0x2cf23d=_0x40705a['markerRange']['start'],_0x5424f8=_0x313228['model']['schema'];let _0x36a3b3=null,_0x35c45d=null,_0x49298d=!0x1,_0x46c30d=!0x1;for(const _0x38c743 of _0x2624a5){const _0x37faf8=_0x38c743['item'];_0x49298d=_0x49298d||_0x5424f8['isContent'](_0x37faf8);const _0x492523=_0x248f48['mapper']['toViewElement'](_0x37faf8);if(_0x492523&&_0x492523['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x38c743['type']&&(_0x5424f8['isBlock'](_0x37faf8)&&!_0x5424f8['isLimit'](_0x37faf8)&&(_0x37faf8['nextSibling']||_0x2cf23d['isAtEnd']?_0x36a3b3&&_0x36a3b3['parent']==_0x37faf8||(_0x36a3b3=_0x37faf8,_0x4afec5(_0x38c743['previousPosition']),_0x46c30d=!0x0):_0x35c45d=_0x35c45d||_0x38c743['previousPosition']));}function _0x4afec5(_0x22ede8){const _0x3bc2da=_0x248f48['mapper']['toViewPosition'](_0x22ede8),_0x268bae=_0x248f48['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3694ff});_0x248f48['writer']['insert'](_0x3bc2da,_0x268bae),_0x248f48['mapper']['bindElementToMarker'](_0x268bae,_0x40705a['markerName']);}_0x49298d||_0x46c30d||!_0x35c45d||_0x4afec5(_0x35c45d);};}class nt extends _0x53c82f{constructor(_0x47f444){super(_0x47f444);const _0x29add7=_0x47f444['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x29add7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x29add7,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5d1d7d=this['editor'],_0x1285b2=_0x5d1d7d['plugins']['get'](l),_0x1ca037=_0x1285b2['isReady']?_0x1285b2['diff']['newRevisionId']:null;_0x5d1d7d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1ca037);}['refresh'](){const {isReady:_0x5c1115,isEnabled:_0x68880d,repository:_0x454c81,diff:_0x66987e}=this['editor']['plugins']['get'](l),_0x11e3f2=_0x66987e&&_0x454c81['getLaterVisibleRevision'](_0x66987e['newRevisionId']);this['isEnabled']=_0x5c1115&&_0x68880d&&Boolean(_0x11e3f2);}}class ot extends _0x53c82f{['_step'];constructor(_0x53a66a,{direction:_0x5bda50}){super(_0x53a66a);const _0x4b269a=_0x53a66a['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x5bda50?0x1:-0x1,this['listenTo'](_0x4b269a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4b269a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4b269a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1f8087=this['editor'],_0x4b1730=_0x1f8087['plugins']['get'](l),{isNavigationMode:_0x556fe9,currentChangeNumber:_0x1ba24c}=_0x4b1730;let _0x520fb4;if(_0x4b1730['activeChange']=_0x556fe9?_0x4b1730['diff']['changes']['get'](_0x1ba24c+this['_step']):_0x4b1730['diff']['changes']['first'],_0x4b1730['activeChange']['data']['isOnRoot'])_0x520fb4=_0x1f8087['editing']['view']['getDomRoot'](_0x4b1730['activeChange']['rootName']);else{const _0x4dd785=_0x1f8087['model']['markers']['get']('revision:'+_0x4b1730['activeChange']['id']);_0x520fb4=_0x5294b7(_0x1f8087['editing'],_0x4dd785);}_0x530233({'target':_0x520fb4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x48aaf5,currentChangeNumber:_0x445ff2,numberOfChanges:_0x15bd1a,isReady:_0x14a1a2,isEnabled:_0x26c9d7}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x26c9d7&&_0x14a1a2&&_0x15bd1a)&&(!_0x48aaf5||(0x1===this['_step']?_0x445ff2<_0x15bd1a-0x1:_0x445ff2>0x0));}}class Ri extends _0x396dad{constructor(_0x4824b6){super(_0x4824b6);const _0x216636=this['bindTemplate'],_0x587c69=new _0x28de94(_0x4824b6),_0x56df27=new _0x28de94(_0x4824b6);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',(_0x240aa0,_0x187d11)=>_0x240aa0&&_0x187d11>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x21c828,_0x41c877,_0x5dbe54,_0x18be21)=>{if(!_0x21c828)return R(_0x4824b6,'Loading...');if(!_0x5dbe54)return R(_0x4824b6,'No\x20changes');const _0x1524e7=R(_0x4824b6,'NUMBER_OF_CHANGES',_0x5dbe54);return _0x18be21?R(_0x4824b6,'X_OF_Y_CHANGES',[_0x41c877+0x1,_0x5dbe54]):_0x1524e7;}),_0x587c69['set']({'label':R(_0x4824b6,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3fede5}),_0x56df27['set']({'label':R(_0x4824b6,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x7b07ca}),_0x587c69['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x56df27['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x587c69['on']('execute',()=>this['fire']('execute','backward')),_0x56df27['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',_0x216636['if']('_isStatusLabelVisible','ck-hidden',_0xeb72c6=>!_0xeb72c6)]},'children':[{'text':_0x216636['to']('isNavigationMode',_0xd284cf=>_0xd284cf?R(_0x4824b6,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4824b6,'Total')+':\x20')}]},{'text':_0x216636['to']('_statusText')}]},new _0x39bcda(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x587c69,_0x56df27]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x312da3{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x36b720=this['editor']['editing']['view'];_0x36b720['change'](_0x4d3894=>{for(const _0x269838 of _0x36b720['document']['roots'])_0x4d3894['addClass'](ge,_0x269838);});}['hide'](){const _0xbcbcf1=this['editor']['editing']['view'];_0xbcbcf1['change'](_0x418b5a=>{for(const _0x410fef of _0xbcbcf1['document']['roots'])_0x418b5a['removeClass'](ge,_0x410fef);});}}class u extends _0x312da3{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x323877=this['editor'],_0x4d7e0a=_0x323877['plugins']['get'](l),_0x47dbbd=_0x323877['plugins']['get'](ji);_0x323877['ui']['componentFactory']['add']('exitToEditing',_0x5713cb=>{const _0x47130f=new _0x28de94(_0x5713cb);return _0x47130f['set']({'label':R(_0x5713cb,'Back\x20to\x20editing'),'icon':_0x5ee831,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x47130f,'execute',()=>{_0x323877['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x47130f;}),_0x323877['ui']['componentFactory']['add']('restoreRevision',_0x5c70ad=>{const _0x5eebcd=new _0x28de94(_0x5c70ad);return _0x5eebcd['set']({'label':R(_0x5c70ad,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5eebcd['bind']('isEnabled')['to'](_0x323877['commands']['get']('restoreRevision')),this['listenTo'](_0x5eebcd,'execute',()=>_0x323877['execute']('restoreRevision')),_0x5eebcd;}),_0x323877['ui']['componentFactory']['add']('changesNavigation',_0x567d6c=>{const _0x3d98b9=new Ri(_0x567d6c),_0x4a7dab=_0x323877['commands']['get']('showPreviousChange'),_0x2095ab=_0x323877['commands']['get']('showNextChange');return _0x3d98b9['bind']('isBackwardNavigationEnabled')['to'](_0x4a7dab,'isEnabled'),_0x3d98b9['bind']('isForwardNavigationEnabled')['to'](_0x2095ab,'isEnabled'),_0x3d98b9['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4d7e0a),this['listenTo'](_0x3d98b9,'execute',(_0x499458,_0x2016fd)=>{_0x323877['execute']('forward'===_0x2016fd?'showNextChange':'showPreviousChange');}),_0x3d98b9;}),_0x47dbbd['show'](),_0x4d7e0a['on']('change:isReady',(_0x28fb3b,_0x506ce8,_0xa77087)=>{_0xa77087?_0x47dbbd['hide']():_0x47dbbd['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x50ccf4,_0x5b2639){super(_0x50ccf4,_0x5b2639);const _0x4db32e=this['bindTemplate'];this['set']({'label':R(_0x50ccf4,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x50ccf4,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4db32e['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 _0x1feef5=this['fieldView']['element'];this['_tooltipString']=_0x1feef5['scrollWidth']>_0x1feef5['clientWidth']&&_0x1feef5['value']||'';}}class vi extends _0x396dad{constructor(_0x1e6fb3,_0x5875ca,_0x195493){super(_0x1e6fb3);const _0x12469d=new _0x1ee405();_0x12469d['set']({'content':_0x30f9c0,'viewBox':'0\x200\x2011\x2010'});const _0x5a041f=['ck','ck-revision-history-sidebar__revision-author'];_0x195493&&_0x5a041f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x26f990=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1e6fb3,_0x195493?'Revision\x20creator':'Revision\x20author')},'children':[_0x12469d,_0x5875ca['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5a041f},'children':_0x26f990});}}function mi(_0x59a68e,_0x88604a){const _0x8f6152=_0x59a68e['bindTemplate'],_0x3ba2e7=_0x59a68e['locale'],_0x5b972d=_0x450022(_0x3ba2e7);_0x5b972d['panelPosition']='sw';const _0x1d4ed6=function(_0x45076a,_0x3325e2){const _0x3d8e9c=function(_0x5a27c1,_0x5ad9d8){const _0x2b816d=_0x5a27c1['locale'],_0x1489f4={'Compare\x20against\x20selected':R(_0x2b816d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2b816d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2b816d,'Restore\x20this\x20revision')};return _0x5ad9d8['map'](_0x15589f=>{const _0x5843cd=_0x1489f4[_0x15589f['name']];return _0x5843cd&&_0x5843cd!==_0x15589f['name']&&(_0x15589f['name']=_0x5843cd),_0x15589f;});}(_0x45076a,_0x3325e2),_0x3c7030=new _0xd590b5();for(const _0x2b2139 of _0x3d8e9c){const _0x148790={'type':'button','model':new to({'label':_0x2b2139['name'],'class':_0x2b2139['class'],'withText':!0x0,'role':'menuitem','_action':_0x2b2139['action']})};_0x148790['model']['bind']('isEnabled')['to'](_0x45076a,'isActionsDropdownOpen',_0x39d0f4=>'function'!=typeof _0x2b2139['isEnabled']||(!_0x39d0f4||_0x2b2139['isEnabled'](_0x45076a))),_0x3c7030['add'](_0x148790);}return _0x3c7030;}(_0x59a68e,_0x88604a);return _0x59a68e['bind']('isActionsDropdownOpen')['to'](_0x5b972d,'isOpen'),_0x5b972d['buttonView']['set']({'label':R(_0x3ba2e7,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x891e29}),_0x5b972d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x8f6152['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x8f6152['to'](_0x2afc96=>_0x2afc96['stopPropagation']())}}),_0x5b972d['on']('execute',_0xc2dd64=>{_0x59a68e['isReady']&&'function'==typeof _0xc2dd64['source']['_action']&&_0xc2dd64['source']['_action'](_0x59a68e);}),_0x4c92fd(_0x5b972d,_0x1d4ed6,{'role':'menu'}),_0x5b972d['listenTo'](_0x59a68e,'change:isActionsDropdownOpen',(_0x272ac9,_0x37ab6d,_0x18a738)=>{if(_0x18a738)for(const _0x4f16da of _0x5b972d['listView']['items']){const _0x5a2790=_0x4f16da['children']['first'],_0x4f8010=_0x88604a['find'](_0x265a99=>_0x265a99['action']===_0x5a2790['_action'])['isVisible'];_0x4f16da['isVisible']=void 0x0===_0x4f8010||_0x4f8010(_0x59a68e);}}),_0x5b972d;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x4c5d54,uid as _0x18a60f,Collection as _0x2b1c0c,logWarning as _0x546b4e,FocusTracker as _0x2f2ee7,KeystrokeHandler as _0x6d88f,scrollViewportToShowTarget as _0x1c9483,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x19cb35}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x19f1e9,set as _0x1b721b,unset as _0x1ae7a3,isEqual as _0x92fbdc}from'es-toolkit/compat';import{Plugin as _0xc26635,PendingActions as _0x58390d,Command as _0x4edbe1,ElementApiMixin as _0x356389,Editor as _0x546407}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x23eb55,getMarkerDomElement as _0x1f81c3,ConfirmMixin as _0x1af9e4,sanitizeEditorConfig as _0x471891}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x31fce4,ViewAttributeElement as _0x5ca8c7,ViewEmptyElement as _0x3c609f,ViewRawElement as _0x1e848a,ViewUIElement as _0x4ca963,ViewDocumentFragment as _0x16aebc,ViewText as _0x7cd05e,ViewElement as _0x2b171a,ModelElement as _0x189583,ModelRange as _0x2c3e1b,ModelPosition as _0x5cde57,ModelDocumentFragment as _0x445f1a,ModelText as _0x38581d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4e5777,IconChevronUp as _0x21831f,IconChevronDown as _0x381f8f,IconUndo as _0x2be619,IconUser as _0x1e08a7,IconThreeVerticalDots as _0x21f807}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x5bdf2e,View as _0x24ffe8,submitHandler as _0x19e77c,LabeledFieldView as ti,createLabeledInputText as _0x10e56f,createDropdown as _0x3c9c24,ListView as _0x59e5cf,ListItemView as _0x1ada46,ButtonView as _0x3e4962,MenuBarMenuView as _0x2590a3,MenuBarMenuListView as _0x27807b,MenuBarMenuListItemView as _0x3e1264,MenuBarMenuListItemButtonView as _0x23085b,ContextualBalloon as _0x431931,ToolbarSeparatorView as _0x22a32b,IconView as _0x4d3542,addListToDropdown as _0x1180eb,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x6e1a7a,StickyPanelView as _0x2cde62,ToolbarView as _0x2c4059,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x21814b}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4c5d54(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x225ccb){super(),this['id']=_0x225ccb['id']||_0x18a60f(),this['creator']=_0x225ccb['creator']||null,this['authors']=_0x225ccb['authors']||[],this['diffData']=_0x225ccb['diffData']||null,this['toVersion']=_0x225ccb['toVersion']||0x0,this['fromVersion']=_0x225ccb['fromVersion']||0x0,this['set']('name',_0x225ccb['name']||''),this['set']('createdAt',_0x225ccb['createdAt']||new Date()),this['set']('attributes',_0x225ccb['attributes']||{});}['setName'](_0x1aaa39){this['_update']({'name':_0x1aaa39});}['setAttribute'](_0x170168,_0x2e1ae6){const _0x15fe6d=_0x19f1e9(this['attributes']);_0x1b721b(_0x15fe6d,_0x170168,_0x2e1ae6),this['_update']({'attributes':_0x15fe6d});}['removeAttribute'](_0x3c3051){const _0x5eb939=_0x19f1e9(this['attributes']);_0x1ae7a3(_0x5eb939,_0x3c3051),this['_update']({'attributes':_0x5eb939});}['_update'](_0x43403d,_0x2ca7db=!0x1){let _0x5b58e8=!0x1;const _0x47be6b={'id':this['id']},_0x5ab89e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4eb08c of _0x5ab89e){const _0x139db0=_0x43403d[_0x4eb08c];void 0x0!==_0x139db0&&_0x139db0!==this[_0x4eb08c]&&(this[_0x4eb08c]=_0x139db0,_0x47be6b[_0x4eb08c]=_0x139db0,_0x5b58e8=!0x0);}_0x5b58e8&&(_0x47be6b['authors']&&(_0x47be6b['authorsIds']=_0x47be6b['authors']['map'](_0x4c429b=>_0x4c429b['id']),delete _0x47be6b['authors']),this['fire']('_update',_0x47be6b,_0x2ca7db));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x438691=>_0x438691['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xc26635{['_revisions'];static get['requires'](){return[_0x23eb55];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x40da2e){super(_0x40da2e),this['_revisions']=new _0x2b1c0c();}['afterInit'](){!async function(_0x28383f){const _0x46e51b=_0x2a6bb4([0x75,0x58,0x76,0x43,0x36,0x6d,0x31,0x47,0x54,0x55,0x6b,0x77,0x4d,0x65,0x4b,0x73,0x34,0x49,0x66,0x69,0x37,0x7a,0x70,0x45,0x32,0x68,0x39,0x59,0x6a,0x78,0x6e,0x5a,0x35,0x44,0x52,0x56,0x67,0x48,0x62,0x33,0x6f,0x53,0x6c,0x57,0x4a,0x50,0x4e,0x4f,0x4c,0x61,0x30,0x74,0x41,0x42,0x46,0x64,0x71,0x63,0x38,0x79,0x51,0x72]),_0x16f17a=0xeb829,_0x40567d=0x65e2936f,_0x322c67=0x65e5f8c7^_0x40567d,_0x200e32=window[_0x2a6bb4([0x44,0x61,0x74,0x65])][_0x2a6bb4([0x6e,0x6f,0x77])](),_0x8c131d=_0x28383f[_0x2a6bb4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x49208b=new window[(_0x2a6bb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bc177=>{_0x8c131d[_0x2a6bb4([0x6f,0x6e,0x63,0x65])](_0x2a6bb4([0x72,0x65,0x61,0x64,0x79]),_0x5bc177);}),_0x21bb4b={[_0x2a6bb4([0x6b,0x74,0x79])]:_0x2a6bb4([0x45,0x43]),[_0x2a6bb4([0x75,0x73,0x65])]:_0x2a6bb4([0x73,0x69,0x67]),[_0x2a6bb4([0x63,0x72,0x76])]:_0x2a6bb4([0x50,0x2d,0x32,0x35,0x36]),[_0x2a6bb4([0x78])]:_0x2a6bb4([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]),[_0x2a6bb4([0x79])]:_0x2a6bb4([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]),[_0x2a6bb4([0x61,0x6c,0x67])]:_0x2a6bb4([0x45,0x53,0x32,0x35,0x36])},_0x360e5a=_0x8c131d[_0x2a6bb4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2a6bb4([0x67,0x65,0x74])](_0x2a6bb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2453f4(){let _0x333c83,_0x4f4b60=null,_0x2b621f=null;try{if(_0x360e5a==_0x2a6bb4([0x47,0x50,0x4c]))return _0x2a6bb4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x333c83=_0x4f0522(),!_0x333c83)return _0x2a6bb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x333c83[_0x2a6bb4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b621f=_0x1f176f(_0x333c83[_0x2a6bb4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x333c83[_0x2a6bb4([0x6a,0x74,0x69])])),await _0x1b56b3()?_0x1615e9()?_0xd16325()?_0x2a6bb4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15ce4f()?(_0x333c83[_0x2a6bb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a6bb4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f4b60=_0x4de049(_0x2a6bb4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x333c83[_0x2a6bb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a6bb4([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f4b60=_0x4de049(_0x2a6bb4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xdbf8a1()):_0x2a6bb4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2a6bb4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2a6bb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2a6bb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd16325(){const _0x18df54=[_0x2a6bb4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2a6bb4([0x74,0x72,0x69,0x61,0x6c])][_0x2a6bb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333c83[_0x2a6bb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x200e32/0x3e8:0xe10*_0x322c67;return _0x333c83[_0x2a6bb4([0x65,0x78,0x70])]<_0x18df54;}function _0x1615e9(){const _0xd8c136=_0x333c83[_0x2a6bb4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd8c136)return!0x1;if(_0xd8c136[_0x2a6bb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a6bb4([0x2a])))return!0x0;if(_0xd8c136[_0x2a6bb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a6bb4([0x52,0x48])))return!0x0;if(_0xd8c136[_0x2a6bb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a6bb4([0x52,0x52,0x48]))){if(_0x4ffa8a())return!0x0;if(_0x15816b()||_0x625b49())return!0x0;}return!0x1;}function _0x15ce4f(){const _0xc1fe4c=_0x333c83[_0x2a6bb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc1fe4c||0x0==_0xc1fe4c[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4dbfa1}=new URL(window[_0x2a6bb4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc1fe4c[_0x2a6bb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dbfa1))return!0x0;const _0x18bbb3=_0x4dbfa1[_0x2a6bb4([0x73,0x70,0x6c,0x69,0x74])](_0x2a6bb4([0x2e]));return _0xc1fe4c[_0x2a6bb4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16a3fe=>_0x16a3fe[_0x2a6bb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a6bb4([0x2a])))[_0x2a6bb4([0x6d,0x61,0x70])](_0x3a5580=>_0x3a5580[_0x2a6bb4([0x73,0x70,0x6c,0x69,0x74])](_0x2a6bb4([0x2e])))[_0x2a6bb4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f5f2a=>_0x4f5f2a[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x18bbb3[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a6bb4([0x6d,0x61,0x70])](_0x5dc1e4=>Array(_0x18bbb3[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5dc1e4[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a6bb4([0x66,0x69,0x6c,0x6c])](_0x5dc1e4[0x0]===_0x2a6bb4([0x2a])?_0x2a6bb4([0x2a]):'')[_0x2a6bb4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5dc1e4))[_0x2a6bb4([0x73,0x6f,0x6d,0x65])](_0x8346a0=>_0x18bbb3[_0x2a6bb4([0x65,0x76,0x65,0x72,0x79])]((_0x13eab5,_0x2700b9)=>_0x8346a0[_0x2700b9]===_0x13eab5||_0x8346a0[_0x2700b9]===_0x2a6bb4([0x2a])));}function _0xdbf8a1(){return _0x4f4b60&&_0x2b621f?new window[(_0x2a6bb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11b602,_0x1e602a)=>{_0x4f4b60[_0x2a6bb4([0x74,0x68,0x65,0x6e])](_0x11b602,_0x1e602a),_0x2b621f[_0x2a6bb4([0x74,0x68,0x65,0x6e])](_0x24f8d9=>{_0x24f8d9!=_0x2a6bb4([0x56,0x61,0x6c,0x69,0x64])&&_0x11b602(_0x24f8d9);},_0x1e602a);}):_0x4f4b60||_0x2b621f||_0x2a6bb4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f176f(_0x23fe49,_0x524639){return new window[(_0x2a6bb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f400=>{if(_0x428b52())return _0x20f400(_0x2a6bb4([0x56,0x61,0x6c,0x69,0x64]));_0x539965(),_0x8c131d[_0x2a6bb4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2a6bb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44b2dd=!0x1;const _0x21e230=_0x18a60f();function _0xec309c(_0x261a22){return!!_0x261a22&&(typeof _0x261a22===_0x2a6bb4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x261a22===_0x2a6bb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x261a22[_0x2a6bb4([0x74,0x68,0x65,0x6e])]===_0x2a6bb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x261a22[_0x2a6bb4([0x63,0x61,0x74,0x63,0x68])]===_0x2a6bb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43e30f(_0x27d02f){_0x418bf5(_0x27d02f)[_0x2a6bb4([0x74,0x68,0x65,0x6e])](_0x321dbd=>{if(!_0x321dbd||_0x321dbd[_0x2a6bb4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2a6bb4([0x6f,0x6b]))return _0x2a6bb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3fcfa1(_0x20e1f3(_0x21e230+_0x524639))!=_0x321dbd[_0x2a6bb4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2a6bb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2a6bb4([0x56,0x61,0x6c,0x69,0x64]);})[_0x2a6bb4([0x74,0x68,0x65,0x6e])](_0x4a5e3b=>(_0x4edda3(),_0x4a5e3b),()=>{const _0x4d4448=_0x5954a9();return null==_0x4d4448?(_0x4edda3(),_0x2a6bb4([0x56,0x61,0x6c,0x69,0x64])):_0x2a6bb4(_0x200e32-_0x4d4448>(0x41ee176f^_0x40567d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2a6bb4([0x74,0x68,0x65,0x6e])](_0x20f400)[_0x2a6bb4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20f400(_0x2a6bb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ebade=0x65d47def^_0x40567d;function _0x4edda3(){const _0x16b694=_0x2a6bb4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fcfa1(_0x20e1f3(_0x23fe49)),_0x2b1e23=_0x280a70(_0x3fcfa1(window[_0x2a6bb4([0x4d,0x61,0x74,0x68])][_0x2a6bb4([0x63,0x65,0x69,0x6c])](_0x200e32/_0x5ebade)));window[_0x2a6bb4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a6bb4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16b694,_0x2b1e23);}function _0x5954a9(){const _0x4b4a55=_0x2a6bb4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fcfa1(_0x20e1f3(_0x23fe49)),_0xbab394=window[_0x2a6bb4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a6bb4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b4a55);return _0xbab394?window[_0x2a6bb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x280a70(_0xbab394),0x10)*_0x5ebade:null;}function _0x418bf5(_0x35d6b2){return new window[(_0x2a6bb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ba1a0,_0x146cf6)=>{_0x35d6b2[_0x2a6bb4([0x74,0x68,0x65,0x6e])](_0x1ba1a0,_0x146cf6),window[_0x2a6bb4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x146cf6,0x65e347af^_0x40567d);});}}_0x8c131d[_0x2a6bb4([0x6f,0x6e])](_0x2a6bb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x25a6f3,_0x21a5c7)=>{if(_0x21a5c7[0x0]!=_0x23fe49)return _0x20f400(_0x2a6bb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x21a5c7[0x1]={..._0x21a5c7[0x1],[_0x2a6bb4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21e230};},{[_0x2a6bb4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a6bb4([0x68,0x69,0x67,0x68])}),_0x8c131d[_0x2a6bb4([0x6f,0x6e])](_0x2a6bb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55528c=>{_0xec309c(_0x55528c[_0x2a6bb4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44b2dd=!0x0,_0x43e30f(_0x55528c[_0x2a6bb4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2a6bb4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a6bb4([0x6c,0x6f,0x77])}),_0x49208b[_0x2a6bb4([0x74,0x68,0x65,0x6e])](()=>{_0x44b2dd||_0x20f400(_0x2a6bb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x428b52(){return _0x8c131d[_0x2a6bb4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a6bb4([0x76,0x69,0x65,0x77])][_0x2a6bb4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2a6bb4([0x61,0x75,0x74,0x6f]);}function _0x539965(){_0x8c131d[_0x2a6bb4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a6bb4([0x76,0x69,0x65,0x77])][_0x2a6bb4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a6bb4([0x61,0x75,0x74,0x6f]);}}function _0x4de049(_0x2df78d){const _0x10a5c9=[new window[(_0x2a6bb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24b13c=>setTimeout(_0x24b13c,0x65ebada3^_0x40567d)),_0x49208b[_0x2a6bb4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2a6bb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5684f3=>{const _0x275dc1=0x65e29368^_0x40567d,_0x41aa6a=_0x28383f[_0x2a6bb4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x253aa9(){_0x41aa6a[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x275dc1&&_0x5684f3();}_0x253aa9(),_0x41aa6a[_0x2a6bb4([0x6f,0x6e])](_0x2a6bb4([0x61,0x64,0x64]),_0x253aa9);})),new window[(_0x2a6bb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fbe94=>{function _0x3f4f7c(){for(const _0x28743d in window)if(window[_0x2a6bb4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2a6bb4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x28743d))&&window[_0x28743d]==_0x16f17a)return _0x2fbe94();_0x8c131d[_0x2a6bb4([0x73,0x74,0x61,0x74,0x65])]!=_0x2a6bb4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2a6bb4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f4f7c,0x65e280e7^_0x40567d);}_0x3a7a50(_0x2a6bb4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3f4f7c();})];return window[_0x2a6bb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a6bb4([0x72,0x61,0x63,0x65])](_0x10a5c9)[_0x2a6bb4([0x74,0x68,0x65,0x6e])](()=>_0x2df78d);}async function _0x379e8d(){if(await _0x49208b,_0x3a7a50(_0x2a6bb4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2b3af0=_0x28383f[_0x2a6bb4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3b4f7c=_0x28383f[_0x2a6bb4([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])](_0x2b3af0[_0x2a6bb4([0x69,0x64])]),_0x53d2e3=_0x275ec7(_0x2a6bb4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x53d2e3[_0x2a6bb4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2b3af0['id'],_0x3b4f7c?_0x3b4f7c['id']:null,!0x0),_0x53d2e3[_0x2a6bb4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2a6bb4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x53d2e3[_0x2a6bb4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x53d2e3[_0x2a6bb4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2a8b8d,void(_0x53d2e3[_0x2a6bb4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2a8b8d);}if(_0x3a7a50(_0x2a6bb4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x438081=_0x275ec7(_0x2a6bb4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x438081[_0x2a6bb4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2a6bb4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x438081[_0x2a6bb4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x438081[_0x2a6bb4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2a8b8d,_0x438081[_0x2a6bb4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2a8b8d;}_0x8c131d[_0x2a6bb4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a6bb4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a8b8d,_0x8c131d[_0x2a6bb4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a6bb4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a8b8d,_0x8c131d[_0x2a6bb4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2a6bb4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ffa8a(){return _0x3a7a50(_0x2a6bb4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x275ec7(_0x2a6bb4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2a6bb4([0x73,0x74,0x61,0x74,0x65])]==_0x2a6bb4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x15816b(){return _0x3a7a50(_0x2a6bb4([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 _0x625b49(){return _0x3a7a50(_0x2a6bb4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9926a9(_0x5b4542){const _0x369034=_0x29adf7();_0x8c131d[_0x369034]=_0x2a6bb4([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])+_0x5b4542,_0x5b4542[_0x2a6bb4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2a6bb4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x29adf7()]=_0x16f17a),_0x5b4542!=_0x2a6bb4([0x56,0x61,0x6c,0x69,0x64])&&_0x379e8d();}function _0x29adf7(){const _0x5c0b1a=window[_0x2a6bb4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2a6bb4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2a6bb4([0x6e,0x6f,0x77])]())[_0x2a6bb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2a6bb4([0x2e]),'');let _0x572f79=_0x2a6bb4([0x75]);for(let _0x14dd8e=0x0;_0x14dd8e<_0x5c0b1a[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14dd8e+=0x2){let _0x2e6f82=window[_0x2a6bb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c0b1a[_0x2a6bb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14dd8e,_0x14dd8e+0x2));_0x2e6f82>=_0x46e51b[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2e6f82-=_0x46e51b[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x572f79+=_0x46e51b[_0x2e6f82];}return _0x572f79;}function _0x4f0522(){const _0x20a375=_0x360e5a[_0x2a6bb4([0x73,0x70,0x6c,0x69,0x74])](_0x2a6bb4([0x2e]));if(0x3!=_0x20a375[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26e041(_0x20a375[0x1]);function _0x26e041(_0x4db6cb){const _0x1a7c62=_0xa58cd7(_0x4db6cb);return _0x1a7c62&&_0x48909e()?_0x1a7c62:null;function _0x48909e(){const _0x172857=_0x1a7c62[_0x2a6bb4([0x6a,0x74,0x69])],_0x7a089b=window[_0x2a6bb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x172857[_0x2a6bb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x172857[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5674d3={..._0x1a7c62,[_0x2a6bb4([0x6a,0x74,0x69])]:_0x172857[_0x2a6bb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x172857[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5674d3[_0x2a6bb4([0x76,0x63])],_0x20e1f3(_0x5674d3)==_0x7a089b;}}}async function _0x1b56b3(){let _0x3f6dee=!0x0;try{const _0x567425=_0x360e5a[_0x2a6bb4([0x73,0x70,0x6c,0x69,0x74])](_0x2a6bb4([0x2e])),[_0xd5c6b9,_0x21e52d,_0xa3ae14]=_0x567425;return _0x383cf6(_0xd5c6b9),await _0x389014(_0xd5c6b9,_0x21e52d,_0xa3ae14),_0x3f6dee;}catch{return!0x1;}function _0x383cf6(_0x1b230a){const _0x5c6bca=_0xa58cd7(_0x1b230a);_0x5c6bca&&_0x5c6bca[_0x2a6bb4([0x61,0x6c,0x67])]==_0x2a6bb4([0x45,0x53,0x32,0x35,0x36])||(_0x3f6dee=!0x1);}async function _0x389014(_0x5af1a6,_0x44dae6,_0x14472f){const _0x4a0ac5=window[_0x2a6bb4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2a6bb4([0x66,0x72,0x6f,0x6d])](_0x319c5e(_0x14472f),_0x31507c=>_0x31507c[_0x2a6bb4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x199153=new window[(_0x2a6bb4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2a6bb4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5af1a6+_0x2a6bb4([0x2e])+_0x44dae6),_0x1b3fb5=window[_0x2a6bb4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2a6bb4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b3fb5)return;const _0x43fd7f=await _0x1b3fb5[_0x2a6bb4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2a6bb4([0x6a,0x77,0x6b]),_0x21bb4b,{[_0x2a6bb4([0x6e,0x61,0x6d,0x65])]:_0x2a6bb4([0x45,0x43,0x44,0x53,0x41]),[_0x2a6bb4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2a6bb4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2a6bb4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b3fb5[_0x2a6bb4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2a6bb4([0x6e,0x61,0x6d,0x65])]:_0x2a6bb4([0x45,0x43,0x44,0x53,0x41]),[_0x2a6bb4([0x68,0x61,0x73,0x68])]:{[_0x2a6bb4([0x6e,0x61,0x6d,0x65])]:_0x2a6bb4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x43fd7f,_0x4a0ac5,_0x199153)||(_0x3f6dee=!0x1);}}function _0xa58cd7(_0x2976f2){return _0x2976f2[_0x2a6bb4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2a6bb4([0x65,0x79]))?JSON[_0x2a6bb4([0x70,0x61,0x72,0x73,0x65])](_0x319c5e(_0x2976f2)):null;}function _0x319c5e(_0x292b76){return window[_0x2a6bb4([0x61,0x74,0x6f,0x62])](_0x292b76[_0x2a6bb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2a6bb4([0x2b]))[_0x2a6bb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2a6bb4([0x2f])));}function _0x20e1f3(_0x367b2d){let _0x846abe=0x1505;function _0x36fe26(_0xa1e3eb){for(let _0x57c0d1=0x0;_0x57c0d1<_0xa1e3eb[_0x2a6bb4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57c0d1++){const _0x1a0524=_0xa1e3eb[_0x2a6bb4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57c0d1);_0x846abe=(_0x846abe<<0x5)+_0x846abe+_0x1a0524,_0x846abe&=_0x846abe;}}function _0x5eb070(_0x28520e){Array[_0x2a6bb4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28520e)?_0x28520e[_0x2a6bb4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5eb070):_0x28520e&&typeof _0x28520e==_0x2a6bb4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2a6bb4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28520e)[_0x2a6bb4([0x73,0x6f,0x72,0x74])]()[_0x2a6bb4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x297d68,_0x3a7624])=>{_0x36fe26(_0x297d68),_0x5eb070(_0x3a7624);}):_0x36fe26(window[_0x2a6bb4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28520e));}return _0x5eb070(_0x367b2d),_0x846abe>>>0x0;}function _0x3fcfa1(_0x2c5508){return _0x2c5508[_0x2a6bb4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2a6bb4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2a6bb4([0x30]));}function _0x280a70(_0x2e2b11){return _0x2e2b11[_0x2a6bb4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2a6bb4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2a6bb4([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a7a50(_0x524d36){return _0x8c131d[_0x2a6bb4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2a6bb4([0x68,0x61,0x73])](_0x524d36);}function _0x275ec7(_0x19b189){return _0x8c131d[_0x2a6bb4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2a6bb4([0x67,0x65,0x74])](_0x19b189);}function _0x2a8b8d(){}function _0x2a6bb4(_0x33dcf7){return _0x33dcf7['map'](_0x523e37=>String['fromCharCode'](_0x523e37))['join']('');}_0x9926a9(await _0x2453f4());}(this);}['createRevision'](_0x44ea7a){const _0x38f804=this['editor']['plugins']['get']('Users');return new I({'id':_0x44ea7a['id'],'name':_0x44ea7a['name'],'creator':_0x44ea7a['creatorId']?_0x38f804['getUser'](_0x44ea7a['creatorId']):null,'diffData':_0x44ea7a['diffData']||_0x44ea7a['data'],'authors':_0x44ea7a['authorsIds']['map'](_0x3b6682=>_0x38f804['getUser'](_0x3b6682)),'createdAt':new Date(_0x44ea7a['createdAt']),'attributes':_0x44ea7a['attributes'],'fromVersion':_0x44ea7a['fromVersion'],'toVersion':_0x44ea7a['toVersion']});}['addRevision'](_0x3745e0,_0x197356=0x0){this['_revisions']['add'](_0x3745e0,_0x197356);}['getRevision'](_0x4ed226){return this['_revisions']['get'](_0x4ed226);}['getRevisions'](_0x4eea95={'toJSON':!0x1}){const _0xa65558=Array['from'](this['_revisions']);return _0xa65558['reverse'](),_0x4eea95['toJSON']?_0xa65558['map'](_0x19f807=>_0x19f807['toJSON']()):_0xa65558;}['getIndex'](_0x4fb311){return this['_revisions']['getIndex'](_0x4fb311);}['getEarlierVisibleRevision'](_0x5a94e5){const [,_0x1be8fa]=this['getRevisionsIterator'](_0x5a94e5,{'direction':'earlier'});return _0x1be8fa;}['getLaterVisibleRevision'](_0x4aa3b8){const [,_0xc448b7]=this['getRevisionsIterator'](_0x4aa3b8,{'direction':'later'});return _0xc448b7;}['getRevisionsInDiff'](_0x173eeb){const _0x5f040c=[];for(const _0x4b90ff of this['getRevisionsIterator'](_0x173eeb['newRevisionId']))if(_0x5f040c['push'](_0x4b90ff),_0x4b90ff['id']===_0x173eeb['oldRevisionId'])break;return _0x5f040c;}*['getRevisionsIterator'](_0x549136,{direction:_0x4cad64='earlier',filter:_0x3a2ae6=()=>!0x0}={}){const _0x2518de='earlier'===_0x4cad64?0x1:-0x1;let _0x1997b5=this['_revisions']['get'](_0x549136),_0x52d9f5=this['getIndex'](_0x1997b5);for(yield _0x1997b5;_0x1997b5;){if(_0x52d9f5+=_0x2518de,_0x1997b5=this['getRevision'](_0x52d9f5),!_0x1997b5)return;_0x3a2ae6(_0x1997b5)&&(yield _0x1997b5);}}}class $ extends _0xc26635{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x31fce4,'c'],[_0x5ca8c7,'a'],[_0x3c609f,'e'],[_0x1e848a,'r'],[_0x4ca963,'u']]);['_typeCharToViewClass']=new Map([['c',_0x31fce4],['a',_0x5ca8c7],['e',_0x3c609f],['r',_0x1e848a],['u',_0x4ca963]]);async['loadRevisionData'](_0x4caf4f,_0xeabe6){if(_0x4caf4f['diffData']||!_0xeabe6)return;const _0x23a0bc=this['editor']['config']['get']('collaboration.channelId'),_0xb87219=await _0xeabe6['getRevision']({'channelId':_0x23a0bc,'revisionId':_0x4caf4f['id']});_0x4caf4f['diffData']=_0xb87219['diffData'];}['getRevisionDocumentData'](_0x3ebbbe){const _0x4dd9f8={};for(const _0x2c959a in _0x3ebbbe['diffData']){if(_0x3ebbbe['diffData'][_0x2c959a]['attachChange']&&!_0x3ebbbe['diffData'][_0x2c959a]['attachChange']['isAttached'])continue;const _0x1005c1=this['_removeRevisionMarkers'](JSON['parse'](_0x3ebbbe['diffData'][_0x2c959a]['insertions'])),_0x5456b7=this['editor']['editing']['view']['document'],_0xefdb07=new _0x16aebc(_0x5456b7,_0x1005c1['map'](_0x57bda4=>this['_getViewFromDiffObj'](_0x57bda4,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4dd9f8[_0x2c959a]=this['editor']['data']['processor']['toData'](_0xefdb07),this['editor']['data']['processor']['useFillerType']('default');}return _0x4dd9f8;}['getRevisionRootsAttributes'](_0x1867cc){const _0x3df95f={};for(const _0x37bbd4 in _0x1867cc['diffData'])_0x1867cc['diffData'][_0x37bbd4]['attachChange']&&!_0x1867cc['diffData'][_0x37bbd4]['attachChange']['isAttached']||(_0x3df95f[_0x37bbd4]=_0x1867cc['diffData'][_0x37bbd4]['attributesAfter']||{});return _0x3df95f;}['_getTypeCharForViewElement'](_0x1e7b9f){return this['_viewClassToTypeChar']['get'](_0x1e7b9f['constructor']);}['_getViewFromDiffObj'](_0x4cfa42,_0x479510){const _0x35066f=this['editor']['editing']['view']['document'];if('string'==typeof _0x4cfa42)return new _0x7cd05e(_0x35066f,_0x4cfa42);{let _0x4545fc,_0x5218eb;_0x5218eb='u'==_0x4cfa42['type']||'r'==_0x4cfa42['type']?[]:_0x4cfa42['children']['map'](_0x51b4f5=>this['_getViewFromDiffObj'](_0x51b4f5,_0x479510));const _0x5135f5=this['_typeCharToViewClass']['get'](_0x4cfa42['type'])||_0x2b171a,_0x4d5397=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4545fc=new _0x5135f5(_0x35066f,_0x4cfa42['name'],_0x4cfa42['attributes'],_0x5218eb),'u'==_0x4cfa42['type']&&_0x4cfa42['children'][0x0]){const _0x2a6718=_0x4cfa42['children'][0x0];if(_0x4545fc['render']=function(_0x37954e){const _0x34ac86=_0x37954e['createElement']('div');return _0x34ac86['innerHTML']=_0x2a6718,_0x34ac86['childNodes'][0x0];},_0x479510){const _0x474908=new _0x16aebc(_0x35066f);_0x474908['_appendChild'](_0x4545fc);const _0x38da54=Array['from'](_0x4d5397['viewChildrenToDom'](_0x474908,{'bind':!0x1})),_0x4b145e=_0x4d5397['domDocument']['createElement']('div');_0x4b145e['append'](..._0x38da54),_0x4545fc=Array['from'](_0x4d5397['domChildrenToView'](_0x4b145e))[0x0];}}else{if('r'==_0x4cfa42['type']&&_0x4cfa42['children'][0x0]){const _0x1d8ef2=_0x4cfa42['children'][0x0];if(_0x4545fc['render']=function(_0xb8187d){_0xb8187d['innerHTML']=_0x1d8ef2;},_0x479510){const _0x222b40=new _0x16aebc(_0x35066f);_0x222b40['_appendChild'](_0x4545fc);const _0x483b29=Array['from'](_0x4d5397['viewChildrenToDom'](_0x222b40,{'bind':!0x1})),_0x55f36e=_0x4d5397['domDocument']['createElement']('div');_0x55f36e['append'](..._0x483b29);const _0x2b9b78=Array['from'](_0x4d5397['domChildrenToView'](_0x55f36e));_0x2b9b78['length']>0x1?_0x4545fc['_appendChild'](_0x2b9b78):_0x4545fc=_0x2b9b78[0x0];}}}if(_0x4cfa42['customProperties']){for(const [_0x353a1b,_0x10e475]of _0x4cfa42['customProperties'])_0x4545fc['_setCustomProperty'](_0x353a1b,_0x10e475);}const _0x25251d=void 0x0===_0x4cfa42['fillerOffset']?null:_0x4cfa42['fillerOffset'];return null!==_0x25251d&&(_0x4545fc['getFillerOffset']=()=>_0x25251d),_0x4545fc;}}['_makeModelFromViewString'](_0x59bfc4){const _0x2756a0=JSON['parse'](_0x59bfc4),_0x528267=this['editor']['editing']['view']['document'],_0x4bca42=new _0x16aebc(_0x528267,_0x2756a0['map'](_0x25a286=>this['_getViewFromDiffObj'](_0x25a286,!0x0)));return this['editor']['data']['toModel'](_0x4bca42);}['_removeRevisionMarkers'](_0x15b2fa){return(_0x15b2fa=_0x15b2fa['filter'](_0x4fa789=>!_0x4fa789['name']||'revision-start'!==_0x4fa789['name']&&'revision-end'!==_0x4fa789['name']))['forEach'](_0x58578f=>{'string'!=typeof _0x58578f&&(_0x58578f['children']=this['_removeRevisionMarkers'](_0x58578f['children']),_0x58578f['attributes']=_0x58578f['attributes']['filter'](_0x48e496=>!_0x48e496[0x0]['startsWith']('data-revision-')));}),_0x15b2fa;}}function R(_0xb22662,_0xadbcd9,_0x3c2491){const t=_0xb22662['t'];switch(_0xadbcd9){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'},_0x3c2491);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3c2491);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 _0xc26635{['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[_0x23eb55,S,$,_0x58390d];}constructor(_0x1c79ec){super(_0x1c79ec),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 _0x1fe3b9=_0x18a60f();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1fe3b9},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 _0x377b89=this['repository']['getRevision'](0x0),_0x3babbd=_0x377b89&&null===_0x377b89['creator']?_0x377b89:null;if(this['_continueCurrentRevision']=!!_0x3babbd&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x38a55=this['_source']['getCurrentRevisionId'](),_0x5aa20a=this['repository']['getRevision'](_0x38a55);if(_0x5aa20a)this['_startingVersion']=_0x5aa20a['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4f3a3b=this['_source']['history']['_operations']['find'](_0x339c41=>!_0x339c41['_isInit']),_0x323aa9=_0x4f3a3b?_0x4f3a3b['baseVersion']:this['_source']['history']['version'];_0x377b89?(_0x377b89['toVersion']<_0x323aa9&&_0x377b89['_update']({'toVersion':_0x323aa9}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3babbd['id'],this['_startingVersion']=_0x3babbd['fromVersion']):(this['_startingVersion']=_0x377b89['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x323aa9,this['_continueCurrentRevision']=!0x1);}}else _0x3babbd&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3babbd['toVersion'],this['editor']['model']['document']['history']['version']),_0x3babbd['fromVersion']===_0x3babbd['toVersion']?(0x0!==_0x3babbd['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3babbd['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3babbd['id'],this['_startingVersion']=_0x3babbd['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',_0x447022=>!_0x447022),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xaec26c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b62cd;for(const _0xc9a299 in _0xaec26c){const _0x145554=_0xc9a299,_0xeee1c8=_0xaec26c[_0x145554];if('revisionHistoryLicenseKeyValid'==_0xeee1c8||'revisionHistoryLicenseKeyInvalid'==_0xeee1c8||'revisionHistoryLicenseKeyExpired'==_0xeee1c8||'revisionHistoryLicenseKeyDomainLimit'==_0xeee1c8||'revisionHistoryLicenseKeyNotAllowed'==_0xeee1c8||'revisionHistoryLicenseKeyEvaluationLimit'==_0xeee1c8||'revisionHistoryLicenseKeyTrialLimit'==_0xeee1c8||'revisionHistoryLicenseKeyUsageLimit'==_0xeee1c8){delete _0xaec26c[_0x145554],_0x2b62cd=_0xeee1c8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2b62cd&&_0xaec26c['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2b62cd&&_0xaec26c['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2b62cd&&_0xaec26c['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2b62cd&&_0xaec26c['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2b62cd&&_0xaec26c['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2b62cd&&_0xaec26c['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2b62cd&&_0xaec26c['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3f90f4=this['repository']['getRevision'](0x0),_0x59cfc1=await this['getRevisionDocumentData'](_0x3f90f4),_0x5370c6=await this['getRevisionRootsAttributes'](_0x3f90f4);this['_replaceEditorDataWithRevisionData'](_0x59cfc1,_0x5370c6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4660db){this['_source']=_0x4660db;}async['update'](){const _0x31b782=await this['_source']['getLatestVersion']();if(_0x31b782>this['currentRevision']['toVersion']){await this['_loadState']();const _0x463664=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x31b782});_0x463664['authors']=_0x463664['authorsIds']['map'](_0x2fd268=>this['editor']['plugins']['get']('Users')['getUser'](_0x2fd268)),this['currentRevision']['_update'](_0x463664);}}async['saveRevision'](_0x5c2446={},_0x479dfb=null){const _0x1328e7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x479dfb>this['currentRevision']['toVersion']&&(_0x479dfb=null),null===_0x479dfb&&(_0x479dfb=await this['_source']['getLatestVersion']());const _0x3095bd=this['_getFromVersion'](_0x479dfb),_0x596687=this['buildRevisionData']({'from':_0x3095bd,'to':_0x479dfb});if(this['currentRevision']['toVersion']<_0x479dfb){const _0x4c8c0d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x479dfb,'to':_0x479dfb});_0x4c8c0d['authors']=[],_0x4c8c0d['authorsIds']=[],_0x4c8c0d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4c8c0d,!0x0),delete _0x4c8c0d['authors'],_0x1328e7['push'](_0x4c8c0d);}_0x5c2446['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c2446['name']=_0x5c2446['name']||null,_0x5c2446['id']=_0x5c2446['id']||_0x18a60f(),_0x5c2446={..._0x5c2446,..._0x596687};const _0x377f07=this['addRevisionData'](_0x5c2446);_0x1328e7['push'](_0x5c2446);const _0x58b8c8=this['repository']['getIndex'](_0x377f07);if(0x0!==_0x58b8c8){const _0x181938=this['repository']['getRevision'](_0x58b8c8-0x1);if(_0x181938['fromVersion']!==_0x479dfb){const _0x3546e3=this['_revisionDataBuilder']['getData'](_0x479dfb,_0x181938['toVersion']),_0x1b20ac={'id':_0x181938['id'],'diffData':_0x3546e3['diffData'],'authorsIds':_0x3546e3['authorsIds'],'authors':_0x3546e3['authorsIds']['map'](_0x3ac03d=>this['editor']['plugins']['get']('Users')['getUser'](_0x3ac03d)),'fromVersion':_0x479dfb};_0x181938===this['currentRevision']&&(_0x1b20ac['createdAt']=new Date(_0x5c2446['createdAt']['getTime']()+0xa)),_0x181938['_update'](_0x1b20ac,!0x0),delete _0x1b20ac['authors'],_0x1328e7['push'](_0x1b20ac);}}if(this['adapter']){for(const _0x273edc of _0x1328e7)this['_bufferUpdate'](_0x273edc['id'],_0x273edc,!0x0);this['sendBufferedUpdates']();}return _0x377f07;}['addRevisionData'](_0x25f029){const _0x580288=this['repository']['createRevision'](_0x25f029);return this['adapter']&&_0x580288['on']('_update',(_0x4a8889,_0x4f2e58,_0x245fbe)=>{_0x245fbe||(this['_bufferUpdate'](_0x4f2e58['id'],_0x4f2e58,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x580288,this['_findInsertionIndex'](_0x580288)),_0x580288;}async['getRevisionDocumentData'](_0x3ebce4){return await this['_utils']['loadRevisionData'](_0x3ebce4,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3ebce4);}async['getRevisionRootsAttributes'](_0x37cd19){return await this['_utils']['loadRevisionData'](_0x37cd19,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x37cd19);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x47aa9d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x461129=0x0;_0x461129<_0x47aa9d['length'];_0x461129++){const _0x5e3521=_0x47aa9d[_0x461129];let _0x31e662=!0x1;for(const _0x22f6d1 of Object['keys'](_0x5e3521))void 0x0===_0x5e3521[_0x22f6d1]?delete _0x5e3521[_0x22f6d1]:'id'!==_0x22f6d1&&(_0x31e662=!0x0);_0x31e662||(_0x47aa9d[_0x461129]=null);}if(_0x47aa9d=_0x47aa9d['filter'](_0x26fe6e=>null!==_0x26fe6e),!_0x47aa9d['length'])return;for(let _0xe225a4=0x0;_0xe225a4<_0x47aa9d['length'];_0xe225a4++){const _0xbec1ca=_0x47aa9d[_0xe225a4];void 0x0!==_0xbec1ca['fromVersion']&&void 0x0===_0xbec1ca['toVersion']&&(_0xbec1ca['toVersion']=this['repository']['getRevision'](_0xbec1ca['id'])['toVersion']),void 0x0!==_0xbec1ca['toVersion']&&void 0x0===_0xbec1ca['fromVersion']&&(_0xbec1ca['fromVersion']=this['repository']['getRevision'](_0xbec1ca['id'])['fromVersion']);}const _0x40ff6f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x47aa9d,_0x40ff6f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1652e7=>{if(_0x1652e7){for(const _0x3a0661 of _0x1652e7)this['setRevisionData']({'id':_0x3a0661['id'],'createdAt':_0x3a0661['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x9f9913=null,from:_0x5b96bb=null,to:_0x5712c8=null}){_0x5b96bb=null!==_0x5b96bb?_0x5b96bb:_0x9f9913['fromVersion'],_0x5712c8=null!==_0x5712c8?_0x5712c8:_0x9f9913['toVersion'];const _0x45db4b=this['_revisionDataBuilder']['getData'](_0x5b96bb,_0x5712c8),_0x1b23ad={'diffData':_0x45db4b['diffData'],'authorsIds':_0x45db4b['authorsIds'],'fromVersion':_0x5b96bb,'toVersion':_0x5712c8};if(!_0x9f9913||_0x5712c8!==_0x9f9913['toVersion']){const _0x5e6760=_0x5712c8-0x1,_0x151703=this['_source']['history']['getOperation'](_0x5e6760);_0x1b23ad['createdAt']=_0x151703&&_0x151703['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5b96bb===this['_loadedStateData']['fromVersion']){for(const _0x5c0c0e of this['_loadedStateData']['authors'])_0x1b23ad['authorsIds']['includes'](_0x5c0c0e['id'])||_0x1b23ad['authorsIds']['push'](_0x5c0c0e['id']);}return _0x1b23ad;}['_bufferUpdate'](_0x4bc7fa,_0x19e23e,_0x143574){if(this['_bufferedUpdates']['has'](_0x4bc7fa)){const _0x2dec5f=this['_bufferedUpdates']['get'](_0x4bc7fa);_0x19e23e=_0x143574?{..._0x2dec5f,..._0x19e23e}:{..._0x19e23e,..._0x2dec5f};}this['_bufferedUpdates']['set'](_0x4bc7fa,_0x19e23e);}['setRevisionData'](_0x52d594){const _0x432a11=this['repository']['getRevision'](_0x52d594['id']);if(_0x52d594['createdAt']&&(_0x52d594['createdAt']=new Date(_0x52d594['createdAt'])),_0x52d594['authorsIds']){const _0x32060b=this['editor']['plugins']['get']('Users');_0x52d594['authors']=_0x52d594['authorsIds']['map'](_0x56cc58=>_0x32060b['getUser'](_0x56cc58));}_0x432a11['_update'](_0x52d594,!0x0);}['_createInitialRevision'](_0x229fbe){const _0x1141f1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1141f1)this['_initialRevisionId']=_0x1141f1['id'];else{const _0x3d2751=!this['editor']['model']['document']['roots']['find'](_0x448483=>this['editor']['model']['hasContent'](_0x448483)),_0xc8186f=this['editor']['plugins']['get']('Users')['me']['id'],_0xc8b7e7=R(this['editor']['locale'],_0x3d2751?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x229fbe,'to':_0x229fbe,'id':this['_initialRevisionId'],'name':_0xc8b7e7,'creatorId':_0xc8186f});}}['_createCurrentRevision'](_0x1a60e0){const _0x496487=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x496487),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1a60e0,'to':_0x1a60e0,'id':_0x496487,'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'](_0x25c7d3,_0x44458e){let _0x16dc7f=this['editor']['config']['get']('initialData'),_0x2ea7ff=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x16dc7f){_0x16dc7f={};for(const _0x304c0a of this['editor']['model']['document']['getRootNames']())_0x16dc7f[_0x304c0a]='';}if('string'==typeof _0x16dc7f&&(_0x16dc7f={'main':_0x16dc7f}),void 0x0===_0x2ea7ff){_0x2ea7ff={};for(const _0x559e98 of this['editor']['model']['document']['getRootNames']())_0x2ea7ff[_0x559e98]={};}let _0x2a546a=!0x1;const _0x2d3ca9=Object['keys'](_0x16dc7f),_0x5d9d1d=Object['keys'](_0x25c7d3);for(const _0x4f2ff5 of _0x2d3ca9){if(_0x16dc7f[_0x4f2ff5]!==_0x25c7d3[_0x4f2ff5]&&''!==_0x16dc7f[_0x4f2ff5]['trim']()){_0x2a546a=!0x0;break;}if(!_0x92fbdc(_0x2ea7ff[_0x4f2ff5],_0x44458e[_0x4f2ff5])&&Object['keys'](_0x2ea7ff[_0x4f2ff5])['length']>0x0){_0x2a546a=!0x0;break;}}_0x2a546a||(_0x2a546a=_0x5d9d1d['some'](_0x4039ca=>!this['editor']['model']['document']['getRoot'](_0x4039ca))),_0x2a546a&&_0x546b4e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x16dc7f,'editorRootsAttributes':_0x2ea7ff,'revisionData':_0x25c7d3,'revisionRootsAttributes':_0x44458e}),this['editor']['config']['set']('initialData',_0x25c7d3),this['editor']['config']['set']('rootsAttributes',_0x44458e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2c63f9=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2c63f9['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5c162b){const _0xbda38c=this['repository']['getRevisions']();_0xbda38c['reverse']();let _0x264dab=0x0;for(;_0x264dab<_0xbda38c['length'];){const _0x5ab6c2=_0xbda38c[_0x264dab];if(_0x5ab6c2===this['currentRevision']){_0x264dab++;continue;}if(_0x5ab6c2['id']===this['_initialRevisionId'])break;const _0x3a4814=_0x5c162b['toVersion']-_0x5ab6c2['toVersion']||_0x5c162b['fromVersion']-_0x5ab6c2['fromVersion'];if(_0x3a4814>0x0)break;if(_0x3a4814<0x0)_0x264dab++;else{if(!_0x5c162b['creator']&&_0x5ab6c2['creator'])break;if(_0x5ab6c2['creator']||!_0x5c162b['creator']){if(_0x5c162b['createdAt']>_0x5ab6c2['createdAt'])break;_0x264dab++;}else _0x264dab++;}}return _0x264dab;}['_getFromVersion'](_0x43d387){const _0x242e8f=this['repository']['getRevisions']();_0x242e8f['reverse'](),_0x242e8f['shift']();const _0xdbffe3=_0x242e8f['find'](_0x371fb4=>_0x371fb4['toVersion']<=_0x43d387)['toVersion'];return _0xdbffe3<this['_startingVersion']?this['_startingVersion']:_0xdbffe3;}['_makeRevision']({name:_0xeb5699,from:_0x5c5179,to:_0x59893d,creatorId:_0x10651e,id:_0x5c7e30}){const _0x5c19a2=this['buildRevisionData']({'from':_0x5c5179,'to':_0x59893d});_0x5c19a2['name']=_0xeb5699,_0x5c19a2['creatorId']=_0x10651e,_0x5c19a2['id']=_0x5c7e30;const _0x3c383c=this['addRevisionData'](_0x5c19a2);return this['adapter']&&this['_bufferUpdate'](_0x5c19a2['id'],_0x5c19a2,!0x0),_0x3c383c;}['_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(_0x552379){this['editor']=_0x552379,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'](_0x4a6a30){this['source']=_0x4a6a30;const _0x49d332=new Map(),_0x4b8983=new Map(),_0x226cd5=this['editor']['model']['document']['roots']['map'](_0x3009b2=>_0x3009b2['rootName']);for(const _0x3cbfdc of _0x226cd5){const _0x20260d=this['editor']['model']['document']['getRoot'](_0x3cbfdc),_0x5343a5=x(_0x20260d);_0x49d332['set'](_0x3cbfdc,_0x5343a5),_0x4b8983['set'](_0x3cbfdc,Object['fromEntries'](_0x20260d['getAttributes']()));}const _0x135d31=Array['from'](this['editor']['model']['markers'])['map'](_0x418552=>[_0x418552['name'],_0x418552['getRange']()]),_0x48d8e2=this['source']['version'];this['_saveMetaData'](_0x48d8e2,_0x49d332,_0x135d31,_0x4b8983),this['_startingRevisionId']=this['_revisionId'];const _0x12d87b=new Map(),_0xc27281=new Map();for(const _0x24166a of _0x226cd5){const _0x485fec=N(_0x24166a);_0x12d87b['set'](_0x24166a,_0x485fec),_0xc27281['set'](_0x24166a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x12d87b,[],_0xc27281);}['getData'](_0x4b6f4b,_0x41b790){if(this['_lastFrom']===_0x4b6f4b&&this['_lastTo']<=_0x41b790)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x41b790,!0x0);else{if(!this['_savedMetaData']['has'](_0x4b6f4b)){const _0x332729=this['_getPreviousFrom'](_0x4b6f4b);this['_calculateMetaData'](_0x332729,_0x4b6f4b,!0x1);}this['_calculateMetaData'](_0x4b6f4b,_0x41b790,!0x0);}return this['_lastFrom']=_0x4b6f4b,this['_lastTo']=_0x41b790,this['_getState']();}['loadState'](_0x29c5fd){const _0x6ad07f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x29c5fd['fromVersion'],this['_lastTo']=_0x29c5fd['toVersion'];for(const _0x155636 in _0x29c5fd['diffData']){const _0x1d9795=_0x29c5fd['diffData'][_0x155636]['attachChange'],_0x25243c=_0x19f1e9(_0x29c5fd['diffData'][_0x155636]['attributesBefore'])||{},_0xd80a75=_0x6ad07f['_makeModelFromViewString'](_0x29c5fd['diffData'][_0x155636]['deletions']);_0xd80a75['rootName']=_0x155636,_0xd80a75['_isAttached']=!_0x1d9795||!_0x1d9795['isAttached'],_0xd80a75['isAttached']=()=>_0xd80a75['_isAttached'],this['_baseRoots']['set'](_0x155636,_0xd80a75),this['_baseRootsAttributes']['set'](_0x155636,_0x25243c),_0x1d9795&&this['_touchedRoots']['set'](_0x155636,_0x1d9795);const _0x2645a6=this['_makeIdsRoot'](_0xd80a75);this['_baseIdsRoots']['set'](_0x155636,_0x2645a6);for(const [_0x45ea56,_0x1f2df4]of _0xd80a75['markers']){if(!_0x45ea56['startsWith']('revision:'))continue;const _0x166474=_0x45ea56['split'](':')[0x2];for(const _0x14af2a of _0x1f2df4['getWalker']({'singleCharacters':!0x0})){const _0x8d978c=this['_getVidAttributeName'](_0x14af2a),_0x5f08cc='elementEnd'==_0x14af2a['type']?_0x14af2a['previousPosition']['path']['slice'](0x0,-0x1):_0x14af2a['previousPosition']['path'],_0x24a223=_0x2645a6['getNodeByPath'](_0x5f08cc)['getAttribute'](_0x8d978c);this['_touched']['set'](_0x24a223,{'userId':_0x166474});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3dec5c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x154b1b=>!this['_touched']['has'](_0x154b1b));let _0x2b4867=0x0;const _0x33fe9f=new Map();for(const _0x2b1a6b in _0x29c5fd['diffData']){const _0x5d3a28=_0x29c5fd['diffData'][_0x2b1a6b]['attachChange'],_0x2cec87=_0x19f1e9(_0x29c5fd['diffData'][_0x2b1a6b]['attributesAfter'])||{},_0x1dce44=_0x6ad07f['_makeModelFromViewString'](_0x29c5fd['diffData'][_0x2b1a6b]['insertions']);_0x1dce44['rootName']=_0x2b1a6b,_0x1dce44['_isAttached']=!_0x5d3a28||_0x5d3a28['isAttached'],_0x1dce44['isAttached']=()=>_0x1dce44['_isAttached'],this['_diffRoots']['set'](_0x2b1a6b,_0x1dce44),this['_diffRootsAttributes']['set'](_0x2b1a6b,_0x2cec87);const _0x1d5e27=this['_makeIdsRoot'](_0x1dce44,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2b1a6b,_0x1d5e27),_0x33fe9f['set'](_0x2b1a6b,_0x1dce44['isAttached']()?_0x2cec87:{});for(const [_0x50deb0,_0x40e43b]of _0x1dce44['markers']){if(!_0x50deb0['startsWith']('revision:'))continue;const _0x5c819f=_0x50deb0['split'](':')[0x2];for(const _0x598064 of _0x40e43b['getWalker']({'singleCharacters':!0x0})){const _0x5450ef=this['_getVidAttributeName'](_0x598064),_0x1aa339=this['_revisionId']++,_0x5b828a='elementEnd'==_0x598064['type']?_0x598064['previousPosition']['path']['slice'](0x0,-0x1):_0x598064['previousPosition']['path'];_0x1d5e27['getNodeByPath'](_0x5b828a)['_setAttribute'](_0x5450ef,_0x1aa339),this['_touched']['set'](_0x1aa339,{'userId':_0x5c819f});}}for(const _0x1b7968 of this['editor']['model']['createRangeIn'](_0x1dce44)['getWalker']({'singleCharacters':!0x0})){const _0x21b29a=this['_getVidAttributeName'](_0x1b7968),_0x2778a5='elementEnd'==_0x1b7968['type']?_0x1b7968['previousPosition']['path']['slice'](0x0,-0x1):_0x1b7968['previousPosition']['path'],_0x5bc1f0=_0x1d5e27['getNodeByPath'](_0x2778a5);_0x5bc1f0['getAttribute'](_0x21b29a)>0x0||_0x5bc1f0['_setAttribute'](_0x21b29a,_0x3dec5c[_0x2b4867++]);}for(const [_0x58b800,_0x232eff]of _0x1dce44['markers'])_0x58b800['startsWith']('revision:')||this['_markers']['set'](_0x58b800,_0x232eff);}const _0x3d5ed9=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3d5ed9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3d5ed9,0x1));const _0xd4fbf=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0xd4fbf),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xd4fbf,0x1));const _0xc791ba=Array['from'](this['_diffRoots'])['map'](([_0xfcda3e,_0x5555cf])=>[_0xfcda3e,x(_0x5555cf)]);this['_saveMetaData'](this['_lastTo'],_0xc791ba,this['_markers'],_0x33fe9f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x29fb83,_0x16e828,_0x395153,_0x5f53c4){const _0x329f50=new Map(_0x16e828),_0x4b18c4=new Map(_0x19f1e9(_0x5f53c4)),_0x1564a6=new Map();for(const [_0x632901,_0x2c3481]of _0x395153)_0x1564a6['set'](_0x632901,{'start':_0x2c3481['start']['clone'](),'end':_0x2c3481['end']['clone'](),'rootName':_0x2c3481['root']['rootName']});this['_savedMetaData']['set'](_0x29fb83,{'roots':_0x329f50,'markers':_0x1564a6,'rootsAttributes':_0x4b18c4});}['_removeMetaData'](_0x1a5e7f){this['_savedMetaData']['delete'](_0x1a5e7f);}['_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'](_0x97cc16,_0x227d5d=null){let _0x460599=null;_0x97cc16['is']('documentFragment')||(_0x460599=new _0x189583(_0x97cc16['name'],{'vid_start':null===_0x227d5d?this['_revisionId']++:_0x227d5d++}));const _0x390fda=[];for(const _0x4eda02 of _0x97cc16['getChildren']())if(_0x4eda02['is']('element')){_0x390fda['push'](this['_makeIdsRoot'](_0x4eda02,_0x227d5d));const _0x504a64=_0x390fda[_0x390fda['length']-0x1];null!==_0x227d5d&&(_0x227d5d=_0x504a64['is']('element','$text')?_0x504a64['getAttribute']('vid')+0x1:_0x504a64['getAttribute']('vid_end')+0x1);}else{for(let _0x46e486=0x0;_0x46e486<_0x4eda02['offsetSize'];_0x46e486++)_0x390fda['push'](new _0x189583('$text',{'vid':null===_0x227d5d?this['_revisionId']++:_0x227d5d++}));}if(_0x97cc16['is']('documentFragment')){const _0x159295=N(_0x97cc16['rootName']);return _0x159295['_insertChild'](0x0,_0x390fda),_0x159295;}return _0x460599['_setAttribute']('vid_end',null===_0x227d5d?this['_revisionId']++:_0x227d5d++),_0x460599['_insertChild'](0x0,_0x390fda),_0x460599;}['_calculateMetaData'](_0x6f8c00,_0x45b087,_0x238d8f){this['_reset']();const {roots:_0x1ef376,markers:_0x7f35ff,rootsAttributes:_0x4d9a7b}=this['_savedMetaData']['get'](_0x6f8c00);this['_baseRoots']=new Map(_0x1ef376),this['_baseRootsAttributes']=new Map(_0x19f1e9(_0x4d9a7b));for(const [_0x366390,_0x34f26a]of this['_baseRoots'])if('$graveyard'!==_0x366390&&(this['_diffRoots']['set'](_0x366390,x(_0x34f26a)),this['_diffRootsAttributes']=new Map(_0x19f1e9(_0x4d9a7b)),_0x238d8f)){const _0x5708c8=this['_revisionId'];this['_idsRoots']['set'](_0x366390,this['_makeIdsRoot'](_0x34f26a)),this['_baseIdsRoots']['set'](_0x366390,this['_makeIdsRoot'](_0x34f26a,_0x5708c8));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x238d8f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2977bc,_0x5c5378]of _0x7f35ff){const _0x3deeba=this['_baseRoots']['get'](_0x5c5378['rootName']),_0x1bbc9b=this['_diffRoots']['get'](_0x5c5378['rootName']),_0x53c805=new _0x2c3e1b(this['_fixPosition'](_0x5c5378['start'],_0x3deeba),this['_fixPosition'](_0x5c5378['end'],_0x3deeba)),_0x402742=this['_fixRange'](_0x53c805,_0x1bbc9b);_0x3deeba['markers']['set'](_0x2977bc,_0x53c805),this['_markers']['set'](_0x2977bc,_0x402742);}this['_applyOperations'](_0x6f8c00,_0x45b087,_0x238d8f);}['_applyOperations'](_0xf3939d,_0x1a8f5b,_0x3f3756){for(const _0x282f9d of this['source']['getOperations'](_0xf3939d,_0x1a8f5b))this['_handleOperation'](_0x282f9d,_0x3f3756);for(const _0x511447 of this['_diffRoots']['values']())_0x511447['markers']['clear']();for(const [_0x2138b2,_0x47210a]of this['_markers']){this['_diffRoots']['get'](_0x47210a['root']['rootName'])['markers']['set'](_0x2138b2,_0x47210a['clone']());}const _0x26a985=new Map(),_0xb0a756=new Map();for(const [_0x2aa3b5,_0x1a4945]of this['_diffRoots'])_0x26a985['set'](_0x2aa3b5,x(_0x1a4945)),_0xb0a756['set'](_0x2aa3b5,this['_diffRootsAttributes']['get'](_0x2aa3b5));this['_saveMetaData'](_0x1a8f5b,_0x26a985,this['_markers'],_0xb0a756);}['_getPreviousFrom'](_0x4e67be){const _0xc40fde=Array['from'](this['_savedMetaData']['keys']());_0xc40fde['sort']((_0x37c588,_0x2230b0)=>_0x37c588-_0x2230b0),_0xc40fde['reverse']();for(const _0x416bd2 of _0xc40fde)if(_0x416bd2<_0x4e67be)return _0x416bd2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x425f2f,_0x4f8ce7){const _0x36a928=Array['from'](_0x4f8ce7['markers'])['map'](([_0x43ed45,_0x2657bb])=>[_0x43ed45,this['_fixRange'](_0x2657bb,_0x425f2f)]);_0x425f2f['markers']=new Map(_0x36a928);}['_transformMarkers'](_0x13e908){for(const _0x218728 of this['_markers']['values']()){const _0xaac5c4=_0x218728['getTransformedByOperation'](_0x13e908),_0xeb4a94=_0x2c3e1b['_createFromRanges'](_0xaac5c4);_0x218728['start']=_0xeb4a94['start'],_0x218728['end']=_0xeb4a94['end'];}}['_handleOperation'](_0x58d19f,_0x5b8a21){if('addRoot'!=_0x58d19f['type']&&'detachRoot'!=_0x58d19f['type']){if('insert'==_0x58d19f['type']){const _0x5ea253=_0x58d19f['position']['root']['rootName'];this['_diffRoots']['has'](_0x5ea253)||(this['_diffRoots']['set'](_0x5ea253,N(_0x5ea253,!0x0)),this['_diffRootsAttributes']['set'](_0x5ea253,{}),_0x5b8a21&&this['_idsRoots']['set'](_0x5ea253,N(_0x5ea253,!0x0)));}else{if('addRootAttribute'==_0x58d19f['type']||'removeRootAttribute'==_0x58d19f['type']||'changeRootAttribute'==_0x58d19f['type'])return void this['_handleRootAttributeOperation'](_0x58d19f);'marker'==_0x58d19f['type']&&this['_handleMarkerOperation'](_0x58d19f);}if('marker'!==_0x58d19f['type']){const _0x19874a=this['_cloneOperation'](_0x58d19f,this['_diffRoots']);_0x19874a['_execute'](),this['_transformMarkers'](_0x19874a);}if(_0x5b8a21)switch(_0x58d19f['type']){case'insert':this['_handleInsertOperation'](_0x58d19f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x58d19f);break;case'merge':this['_handleMergeOperation'](_0x58d19f);break;case'split':this['_handleSplitOperation'](_0x58d19f);}}else this['_handleRootOperation'](_0x58d19f,_0x5b8a21);}['_cloneOperation'](_0x2cde04,_0x44475b){const _0x525f04=_0x2cde04['clone']();return _0x525f04['_authorId']=_0x2cde04['_authorId'],this['_fixOperation'](_0x525f04,_0x44475b),_0x525f04;}['_getBaseVids'](_0x3f103e){return _0x3f103e['map'](_0xa51a06=>{const _0x42d7df=this['_getVidAttributeName'](_0xa51a06);return Number(_0xa51a06['item']['getAttribute'](_0x42d7df));});}['_generateTape'](_0x454740,_0x2b5fb5){if(_0x454740['is']('element','$text'))_0x2b5fb5['push']({'item':_0x454740,'type':'text'});else{_0x454740['is']('element')&&_0x2b5fb5['push']({'item':_0x454740,'type':'elementStart'});for(const _0x5f3b6d of _0x454740['getChildren']())this['_generateTape'](_0x5f3b6d,_0x2b5fb5);_0x454740['is']('element')&&_0x2b5fb5['push']({'item':_0x454740,'type':'elementEnd'});}return _0x2b5fb5;}['_getState'](){const _0x5b181e=new Map(this['_touched']),_0x2bb338=new Map(_0x5b181e),_0x4136e9=new Map(),_0xb3ed9={'insertions':{},'deletions':{}},_0x4cb421={'insertions':{},'deletions':{}},_0x52bf60=new Map(),_0x3c9a99=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3c9a99['delete']('$graveyard');for(const _0x56e9f0 of _0x3c9a99){const _0x4780a2=this['_diffRoots']['get'](_0x56e9f0)||N(_0x56e9f0,!0x1),_0x11acca=this['_baseRoots']['get'](_0x56e9f0)||N(_0x56e9f0,!0x1);_0x4780a2['isAttached']()||_0x11acca['isAttached']()?(_0xb3ed9['insertions'][_0x56e9f0]=x(_0x4780a2),_0xb3ed9['deletions'][_0x56e9f0]=x(_0x11acca),this['_copyMarkers'](_0xb3ed9['deletions'][_0x56e9f0],_0x11acca),this['_copyMarkers'](_0xb3ed9['insertions'][_0x56e9f0],_0x4780a2),_0x4cb421['insertions'][_0x56e9f0]=this['_generateTape'](this['_idsRoots']['get'](_0x56e9f0),[]),_0x4cb421['deletions'][_0x56e9f0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x56e9f0)||N(_0x56e9f0,!0x1),[])):_0x3c9a99['delete'](_0x56e9f0);}for(const _0x36f827 of _0x3c9a99){const _0x42b30c=_0x4cb421['insertions'][_0x36f827];for(const _0x415d2a of _0x42b30c){const _0x5216ed=this['_getVidAttributeName'](_0x415d2a),_0x5c4803=_0x415d2a['item']['getAttribute'](_0x5216ed);_0x2bb338['delete'](_0x5c4803),_0x5c4803>=this['_startingRevisionId']&&_0x4136e9['set'](_0x5c4803,_0x5b181e['get'](_0x5c4803));}}for(const _0x5cf037 of _0x3c9a99){const _0x4deb10=_0x4cb421['insertions'][_0x5cf037],_0x3f8215=this['_getBaseVids'](_0x4cb421['deletions'][_0x5cf037]);let _0x1a7525=0x0;for(const _0x594601 of _0x4deb10){const _0x4d9a60=this['_getVidAttributeName'](_0x594601),_0x490ae9=_0x594601['item']['getAttribute'](_0x4d9a60);if(!_0x4136e9['has'](_0x490ae9)&&!_0x52bf60['has'](_0x490ae9)){if(_0x2bb338['has'](_0x490ae9))_0x1a7525++;else{if(_0x490ae9!=_0x3f8215[_0x1a7525]){const _0x173419=_0x5b181e['get'](_0x490ae9)||_0x5b181e['get'](_0x3f8215[_0x1a7525]);for(;_0x490ae9!=_0x3f8215[_0x1a7525];)_0x2bb338['has'](_0x3f8215[_0x1a7525])||(_0x52bf60['set'](_0x3f8215[_0x1a7525],_0x173419),_0x5b181e['set'](_0x3f8215[_0x1a7525],_0x173419)),_0x1a7525++;}_0x1a7525++;}}}}for(const _0x20f772 of _0x3c9a99){const _0x46adc9=_0x4cb421['insertions'][_0x20f772];for(const _0x54c224 of _0x46adc9){const _0x85d88d=this['_getVidAttributeName'](_0x54c224),_0xc6e85e=_0x54c224['item']['getAttribute'](_0x85d88d);if(_0x52bf60['has'](_0xc6e85e)){const _0xf56722=_0x52bf60['get'](_0xc6e85e);_0x2bb338['has'](_0xc6e85e)||_0x2bb338['set'](_0xc6e85e,{..._0xf56722}),_0x4136e9['set'](_0xc6e85e,{..._0xf56722});}}}for(const _0x3d9922 of _0x2bb338['keys']())_0x3d9922>=this['_startingRevisionId']&&_0x2bb338['delete'](_0x3d9922);const _0x44a593=new Map();for(const _0x41d3f4 of _0x3c9a99){let _0x20af47=_0x4cb421['insertions'][_0x41d3f4];for(const _0x41c9c9 of _0x20af47)if(_0x41c9c9['item']['is']('element','tableCell')){const _0x5d2a67=this['_getVidAttributeName'](_0x41c9c9),_0x5e4b8b=_0x41c9c9['item']['getAttribute'](_0x5d2a67);if(_0x4136e9['has'](_0x5e4b8b)){const _0x47fe9a=_0x41c9c9['item']['parent']['parent']['getAttribute']('vid_start'),_0x137543=_0x44a593['get'](_0x47fe9a)||new Set();_0x137543['add'](_0x4136e9['get'](_0x5e4b8b)['userId']),_0x44a593['set'](_0x47fe9a,_0x137543);}}_0x20af47=_0x4cb421['deletions'][_0x41d3f4];for(const _0x27e0bd of _0x20af47)if(_0x27e0bd['item']['is']('element','tableCell')){const _0x3b775d=this['_getVidAttributeName'](_0x27e0bd),_0x8f5a28=_0x27e0bd['item']['getAttribute'](_0x3b775d);if(_0x2bb338['has'](_0x8f5a28)){const _0x2f34d2=_0x27e0bd['item']['parent']['parent']['getAttribute']('vid_start'),_0x1a1daa=_0x44a593['get'](_0x2f34d2)||new Set();_0x1a1daa['add'](_0x2bb338['get'](_0x8f5a28)['userId']),_0x44a593['set'](_0x2f34d2,_0x1a1daa);}}for(const _0x387c8f of _0x44a593['keys']())(_0x4136e9['has'](_0x387c8f)||_0x2bb338['has'](_0x387c8f))&&_0x44a593['delete'](_0x387c8f);}for(const _0x2d5d17 of _0x3c9a99){const _0x384474=_0x4cb421['insertions'][_0x2d5d17];let _0x271df1=null,_0x2e0eba=null;for(const _0x3d1177 of _0x384474){const _0x302dd8=this['_getVidAttributeName'](_0x3d1177),_0x4b549d=_0x3d1177['item']['getAttribute'](_0x302dd8),_0x180abd=_0x44a593['get'](_0x4b549d);_0x180abd&&'elementStart'==_0x3d1177['type']&&(_0x271df1=Array['from'](_0x180abd)[0x0],_0x2e0eba=_0x3d1177['item']['getAttribute']('vid_end')),_0x271df1&&(_0x2bb338['set'](_0x4b549d,{'userId':_0x271df1}),_0x4136e9['set'](_0x4b549d,{'userId':_0x271df1})),_0x4b549d==_0x2e0eba&&(_0x271df1=null,_0x2e0eba=null);}}const _0x54f34e={},_0x194040=new Set();for(const _0x1573f8 of _0x3c9a99){const _0x4af7af=_0xb3ed9['deletions'][_0x1573f8],_0x1cc19f=_0xb3ed9['insertions'][_0x1573f8];for(const {userId:_0x1bbbb1}of this['_touchedMarkers']['values']())null!==_0x1bbbb1&&_0x194040['add'](_0x1bbbb1);for(const {userId:_0x4d1a64}of this['_touchedRoots']['values']())null!==_0x4d1a64&&_0x194040['add'](_0x4d1a64);this['_markChanges'](_0x1cc19f,_0x4cb421['insertions'][_0x1573f8],_0x4136e9,'insertion',_0x194040),this['_markChanges'](_0x4af7af,_0x4cb421['deletions'][_0x1573f8],_0x2bb338,'deletion',_0x194040),_0x54f34e[_0x1573f8]={'insertions':this['_prepareViewToSave'](_0x1cc19f),'deletions':this['_prepareViewToSave'](_0x4af7af),'attachChange':this['_touchedRoots']['get'](_0x1573f8)||null,'attributesBefore':_0x19f1e9(this['_baseRootsAttributes']['get'](_0x1573f8))||{},'attributesAfter':_0x19f1e9(this['_diffRootsAttributes']['get'](_0x1573f8))};}return{'diffData':_0x54f34e,'authorsIds':Array['from'](_0x194040)};}['_processRootBeforeSave'](_0x58d7ee){for(const [,_0x5eabe7]of _0x58d7ee['markers']){const _0x2c6eab=_0x5eabe7['start']['getAncestors']()['filter'](_0x39b0a9=>'tableCell'==_0x39b0a9['name']);for(const _0x3c454a of _0x2c6eab)0x1==_0x3c454a['childCount']&&_0x3c454a['getChild'](0x0)['is']('element','paragraph')&&_0x3c454a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3df124){this['_processRootBeforeSave'](_0x3df124);const _0x2ee0a1=this['editor']['data']['toView'](_0x3df124,{}),_0x5f1b5b=Array['from'](_0x2ee0a1['getChildren']())['map'](_0x2eb7c2=>this['_getViewJson'](_0x2eb7c2));return JSON['stringify'](_0x5f1b5b);}['_getViewJson'](_0xf6280c){if(_0xf6280c['is']('$text'))return _0xf6280c['data'];{const _0x209579=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x389e48=_0xf6280c,_0x433840=this['editor']['data']['htmlProcessor']['domConverter'],_0x3687a8={'type':_0x209579['_getTypeCharForViewElement'](_0x389e48),'name':_0x389e48['name'],'attributes':Array['from'](_0x389e48['getAttributes']()),'children':Array['from'](_0x389e48['getChildren']())['map'](_0x17e99b=>this['_getViewJson'](_0x17e99b))};if(_0xf6280c['is']('uiElement')&&'$comment'!=_0xf6280c['name']){const _0x3669eb=_0xf6280c['render'](_0x433840['domDocument'],_0x433840);_0x3687a8['children']['push'](_0x3669eb['outerHTML']);}else{if(_0xf6280c['is']('rawElement')){const _0xbcf19a=_0x433840['domDocument']['createElement'](_0x389e48['name']);_0xf6280c['render'](_0xbcf19a,_0x433840),_0x3687a8['children']['push'](_0xbcf19a['innerHTML']);}}const _0x285a61=Array['from'](_0x389e48['getCustomProperties']());_0x285a61['length']>0x0&&(_0x3687a8['customProperties']=_0x285a61);const _0x21ccf3=_0x389e48['getFillerOffset']();return null!==_0x21ccf3&&(_0x3687a8['fillerOffset']=_0x21ccf3),_0x3687a8;}}['_markChanges'](_0x542edf,_0x3cd85a,_0xce6713,_0x454eef,_0xb7ee32){let _0x44f80c=null,_0x897042=null,_0x3cb866=0x0;const _0x39811d=this['editor']['model'];for(let _0x40bf0f=0x0;_0x40bf0f<_0x3cd85a['length'];_0x40bf0f++){const _0xe4600d=this['_getVidAttributeName'](_0x3cd85a[_0x40bf0f]),_0x1a306d=_0x3cd85a[_0x40bf0f]['item']['getAttribute'](_0xe4600d),_0x3d2489=_0xce6713['get'](_0x1a306d),_0x1a64b4=_0x40bf0f==_0x3cd85a['length']-0x1;(!_0x44f80c&&_0x3d2489&&(_0x44f80c=_0x3d2489,_0x897042=_0x3cd85a[_0x40bf0f]),_0x44f80c&&(!_0x3d2489||_0x3d2489['userId']!=_0x44f80c['userId']))&&(_0x1f75a4(_0x3d2489,P(_0x897042,_0x542edf,_0x39811d),P(_0x3cd85a[_0x40bf0f],_0x542edf,_0x39811d)),_0x44f80c=_0x3d2489||null,_0x897042=_0x3d2489?_0x3cd85a[_0x40bf0f]:null),_0x44f80c&&_0x1a64b4&&_0x1f75a4(_0x3d2489,P(_0x897042,_0x542edf,_0x39811d),V(_0x3cd85a[_0x40bf0f],_0x542edf,_0x39811d));}function _0x1f75a4(_0x5d7a78,_0x244974,_0x42858d){const _0x564ba6=_0x44f80c['userId'],_0x349060='revision:'+_0x454eef+':'+_0x564ba6+':'+_0x3cb866++,_0x495d88=_0x39811d['createRange'](_0x244974,_0x42858d);_0x542edf['markers']['set'](_0x349060,_0x495d88),null!==_0x564ba6&&_0xb7ee32['add'](_0x564ba6);}}['_getVidAttributeName'](_0x818881){switch(_0x818881['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x48a160,_0x2b3aec){_0x48a160['baseVersion']=null;for(const _0x5ebd23 in _0x48a160){const _0x596098=_0x48a160[_0x5ebd23];if(_0x596098 instanceof _0x5cde57){const _0x43f25d=_0x2b3aec['get'](_0x596098['root']['rootName']);_0x48a160[_0x5ebd23]=this['_fixPosition'](_0x596098,_0x43f25d);}if(_0x596098 instanceof _0x2c3e1b){const _0x4fc01a=_0x2b3aec['get'](_0x596098['root']['rootName']);_0x48a160[_0x5ebd23]=this['_fixRange'](_0x596098,_0x4fc01a);}'root'===_0x5ebd23&&(_0x48a160['root']=_0x2b3aec['get'](_0x48a160['root']['rootName']));}}['_fixRange'](_0x519dde,_0x2da2aa){return this['editor']['model']['createRange'](this['_fixPosition'](_0x519dde['start'],_0x2da2aa),this['_fixPosition'](_0x519dde['end'],_0x2da2aa));}['_fixPosition'](_0x219eaf,_0x297935){return this['editor']['model']['createPositionFromPath'](_0x297935,_0x219eaf['path'],_0x219eaf['stickiness']);}['_handleInsertOperation'](_0x2dcbb3){const _0x4ca048=this['_idsRoots']['get'](_0x2dcbb3['position']['root']['rootName']),_0x2ecf3e=this['_fixPosition'](_0x2dcbb3['position'],_0x4ca048),_0x3af300=null===_0x2dcbb3['_authorId']?null:_0x2dcbb3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d34e5=_0x2ecf3e['parent'],_0x243985=this['_revisionId'],_0x2cb0cf=[];for(const _0x32031 of _0x2dcbb3['nodes'])if(_0x32031['is']('element'))_0x2cb0cf['push'](this['_makeIdsRoot'](_0x32031));else{for(let _0x4f45d9=0x0;_0x4f45d9<_0x32031['offsetSize'];_0x4f45d9++)_0x2cb0cf['push'](new _0x189583('$text',{'vid':this['_revisionId']++}));}const _0x331771=this['_revisionId'];for(let _0x29cf2c=_0x243985;_0x29cf2c<_0x331771;_0x29cf2c++)this['_touched']['set'](_0x29cf2c,{'userId':_0x3af300});_0x1d34e5['_insertChild'](_0x2ecf3e['offset'],_0x2cb0cf);}['_handleMoveOperation'](_0x2aca3f){(_0x2aca3f=this['_cloneOperation'](_0x2aca3f,this['_idsRoots']))['_execute']();const _0x5ab9ed=null===_0x2aca3f['_authorId']?null:_0x2aca3f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a1d60=_0x2aca3f['getMovedRangeStart'](),_0x1da595=_0x3a1d60['parent'],_0x406acc=_0x3a1d60['offset'];!function _0x227e4a(_0x3bd5cf,_0x9e41c4,_0x18e8c4,_0x69a654){for(let _0x41c6d8=_0x18e8c4;_0x41c6d8<_0x69a654;_0x41c6d8++){const _0x4001aa=_0x9e41c4['getChild'](_0x41c6d8);_0x4001aa['is']('element','$text')?_0x3bd5cf['set'](_0x4001aa['getAttribute']('vid'),{'userId':_0x5ab9ed}):(_0x3bd5cf['set'](_0x4001aa['getAttribute']('vid_start'),{'userId':_0x5ab9ed}),_0x227e4a(_0x3bd5cf,_0x4001aa,0x0,_0x4001aa['childCount']),_0x3bd5cf['set'](_0x4001aa['getAttribute']('vid_end'),{'userId':_0x5ab9ed}));}}(this['_touched'],_0x1da595,_0x406acc,_0x406acc+_0x2aca3f['howMany']);}['_handleMergeOperation'](_0x43c1ac){const _0xd4bdbf=null===(_0x43c1ac=this['_cloneOperation'](_0x43c1ac,this['_idsRoots']))['_authorId']?null:_0x43c1ac['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39f17a=_0x43c1ac['targetPosition']['parent'],_0x591a36=_0x43c1ac['sourcePosition']['parent'],_0x2ab5d3=_0x39f17a['getAttribute']('vid_end'),_0x92a1d1=_0x591a36['getAttribute']('vid_start');_0x39f17a['_setAttribute']('vid_end',_0x591a36['getAttribute']('vid_end')),_0x591a36['_setAttribute']('vid_end',_0x2ab5d3),this['_touched']['set'](_0x92a1d1,{'userId':_0xd4bdbf}),this['_touched']['set'](_0x2ab5d3,{'userId':_0xd4bdbf}),_0x43c1ac['_execute']();}['_handleSplitOperation'](_0x18eb51){const _0x540cfb=null===(_0x18eb51=this['_cloneOperation'](_0x18eb51,this['_idsRoots']))['_authorId']?null:_0x18eb51['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1db5d3=_0x18eb51['graveyardPosition'],_0xe3fe06=_0x18eb51['splitPosition']['parent'];_0x18eb51['_execute']();const _0x189451=_0xe3fe06['getAttribute']('vid_end'),_0x27e978=_0x18eb51['insertionPosition']['nodeAfter'];if(_0x1db5d3){const _0x4c2c23=_0x27e978['getAttribute']('vid_end'),_0x36a2ed=_0xe3fe06['getAttribute']('vid_end');_0xe3fe06['_setAttribute']('vid_end',_0x4c2c23),_0x27e978['_setAttribute']('vid_end',_0x36a2ed),this['_touched']['set'](_0xe3fe06['getAttribute']('vid_end'),{'userId':_0x540cfb}),this['_touched']['set'](_0x27e978['getAttribute']('vid_start'),{'userId':_0x540cfb});}else{const _0xcecc95=this['_revisionId']++,_0x2ac59e=this['_revisionId']++;_0xe3fe06['_setAttribute']('vid_end',_0xcecc95),_0x27e978['_setAttribute']('vid_start',_0x2ac59e),_0x27e978['_setAttribute']('vid_end',_0x189451),this['_touched']['set'](_0xcecc95,{'userId':_0x540cfb}),this['_touched']['set'](_0x2ac59e,{'userId':_0x540cfb});}}['_handleMarkerOperation'](_0x22a91d){if(!_0x22a91d['affectsData'])return;const _0x52cb8c=(_0x22a91d=this['_cloneOperation'](_0x22a91d,this['_diffRoots']))['oldRange']?_0x22a91d['oldRange']['root']:null,_0x358618=_0x22a91d['newRange']?_0x22a91d['newRange']['root']:null;_0x52cb8c&&this['_markers']['delete'](_0x22a91d['name']),_0x358618&&this['_markers']['set'](_0x22a91d['name'],_0x22a91d['newRange']['clone']());const _0x20992b=null===_0x22a91d['_authorId']?null:_0x22a91d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb3b68=_0x22a91d['name'];if(!this['_touchedMarkers']['has'](_0xb3b68))return void this['_touchedMarkers']['set'](_0xb3b68,{'range':_0x22a91d['oldRange'],'userId':_0x20992b});const _0x2ae8e0=this['_touchedMarkers']['get'](_0xb3b68),_0x5b632d=_0x2ae8e0['range'],_0x17acef=_0x22a91d['newRange'];null==_0x5b632d&&null==_0x17acef||_0x5b632d&&_0x17acef&&_0x5b632d['isEqual'](_0x17acef)?this['_touchedMarkers']['delete'](_0x22a91d['name']):_0x2ae8e0['userId']=_0x20992b;}['_handleRootOperation'](_0x4927e3,_0x238057){this['_diffRoots']['has'](_0x4927e3['rootName'])?this['_diffRoots']['get'](_0x4927e3['rootName'])['_isAttached']=_0x4927e3['isAdd']:(this['_diffRoots']['set'](_0x4927e3['rootName'],N(_0x4927e3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4927e3['rootName'],{}),_0x238057&&this['_idsRoots']['set'](_0x4927e3['rootName'],N(_0x4927e3['rootName'],!0x0)));const _0x4ce213=null===_0x4927e3['_authorId']?null:_0x4927e3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e5bb4=this['_touchedRoots']['get'](_0x4927e3['rootName']);_0x2e5bb4&&_0x2e5bb4['userId']===_0x4ce213?this['_touchedRoots']['delete'](_0x4927e3['rootName']):this['_touchedRoots']['set'](_0x4927e3['rootName'],{'userId':_0x4ce213,'isAttached':_0x4927e3['isAdd']});}['_handleRootAttributeOperation'](_0x538003){const _0x2bf245=this['_diffRootsAttributes']['get'](_0x538003['root']['rootName']);null===_0x538003['newValue']?delete _0x2bf245[_0x538003['key']]:_0x2bf245[_0x538003['key']]=_0x538003['newValue'];}}function x(_0x24f5ac){const _0x2c0c68=N(_0x24f5ac['rootName'],_0x24f5ac['isAttached']());for(const _0x18b538 of _0x24f5ac['getChildren']()){const _0x271ac5=_0x18b538['_clone'](!0x0);_0x2c0c68['_appendChild'](_0x271ac5);}return _0x2c0c68;}function N(_0x3ffe4e,_0x4ca408=!0x0){const _0x1050df=new _0x445f1a();return _0x1050df['rootName']=_0x3ffe4e,_0x1050df['_isAttached']=_0x4ca408,_0x1050df['isAttached']=()=>_0x1050df['_isAttached'],_0x1050df;}function P(_0x84bb99,_0x38c0d9,_0x1c3727){const _0x17f1b1='elementEnd'==_0x84bb99['type']?_0x1c3727['createPositionAt'](_0x84bb99['item'],'end'):_0x1c3727['createPositionBefore'](_0x84bb99['item']);return _0x1c3727['createPositionFromPath'](_0x38c0d9,_0x17f1b1['path'],_0x17f1b1['stickiness']);}function V(_0x350989,_0x1396c1,_0x532203){const _0x4561ba='elementStart'==_0x350989['type']?_0x532203['createPositionAt'](_0x350989['item'],0x0):_0x532203['createPositionAfter'](_0x350989['item']);return _0x532203['createPositionFromPath'](_0x1396c1,_0x4561ba['path'],_0x4561ba['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5bdf2e(_0x24ffe8){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x21ae2d,_0x43f4eb){super(_0x21ae2d),this['focusTracker']=new _0x2f2ee7(),this['keystrokes']=new _0x6d88f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x43f4eb),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'](),_0x19e77c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2b4e3a=_0x22a284=>_0x22a284['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2b4e3a),this['keystrokes']['set']('arrowleft',_0x2b4e3a),this['keystrokes']['set']('arrowup',_0x2b4e3a),this['keystrokes']['set']('arrowdown',_0x2b4e3a);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xd4d11c){this['revisionNameInputView']['fieldView']['element']['value']=_0xd4d11c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xdf4b25){const _0x58cefa=new ti(this['locale'],_0x10e56f),_0x42dc5f=_0x58cefa['fieldView'];_0x42dc5f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1bcca7=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0xdf4b25&&(_0x1bcca7+='\x20('+R(this['locale'],'optional')+')'),(_0x58cefa['label']=_0x1bcca7,_0x42dc5f['on']('input',()=>{this['revisionNameInputValue']=_0x42dc5f['element']['value']['trim']();}),_0x58cefa);}}class v extends _0xc26635{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1a0a45=this['editor'],_0x507707=_0x1a0a45['plugins']['get']('RevisionTracker');_0x1a0a45['ui']['componentFactory']['add']('revisionHistory',_0x206248=>{const _0x5d814c=_0x3c9c24(_0x206248),_0x219f53=_0x5d814c['panelView']['children'],_0x248068=new _0x59e5cf(_0x206248),_0x57b7d9=new _0x1ada46(_0x206248),_0xb1cf51=new _0x3e4962(_0x206248),_0x22c6e4=new _0x1ada46(_0x206248),_0x174758=new _0x3e4962(_0x206248);return _0x5d814c['bind']('isEnabled')['to'](_0x507707,'isReady',_0x507707,'isEnabled',_0x1a0a45,'isReadOnly',(_0x5674cd,_0x5ce052,_0x147a40)=>_0x5674cd&&_0x5ce052&&!_0x147a40),_0x5d814c['buttonView']['set']({'icon':_0x4e5777,'label':R(_0x206248,'Revision\x20history'),'tooltip':!0x0}),_0xb1cf51['set']({'label':R(_0x206248,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xb1cf51['bind']('isEnabled')['to'](_0x507707,'isReady',_0x507707,'isEnabled',_0x1a0a45,'isReadOnly',(_0x388466,_0x499871,_0x42e758)=>_0x388466&&_0x499871&&!_0x42e758),_0xb1cf51['on']('execute',()=>this['_showDialog']()),_0x174758['set']({'label':R(_0x206248,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x174758['bind']('isEnabled')['to'](_0x507707,'isReady',_0x1a0a45,'isReadOnly',(_0x13e37e,_0x173c2d)=>_0x13e37e&&!_0x173c2d),_0x174758['on']('execute',()=>{_0x1a0a45['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5d814c['isOpen']=!0x1,_0x1a0a45['editing']['view']['focus']();}),_0x57b7d9['children']['add'](_0xb1cf51),_0x22c6e4['children']['add'](_0x174758),_0x248068['role']='menu',_0x248068['items']['addMany']([_0x57b7d9,_0x22c6e4]),_0x219f53['add'](_0x248068),_0x5d814c;}),_0x1a0a45['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x435974=this['editor'],_0x1a6c96=_0x435974['locale'],_0x29476d=new _0x2590a3(_0x1a6c96),_0x2d96e9=new _0x27807b(_0x1a6c96);_0x29476d['buttonView']['set']({'icon':_0x4e5777,'label':R(_0x1a6c96,'Revision\x20history')});const _0x537838=new _0x3e1264(_0x1a6c96,_0x29476d),_0x2bdff9=new _0x23085b(_0x1a6c96);_0x2bdff9['set']({'label':R(_0x1a6c96,'Save\x20current\x20revision')}),_0x2bdff9['delegate']('execute')['to'](_0x29476d),_0x2bdff9['on']('execute',()=>{this['_showDialog']();}),_0x537838['children']['add'](_0x2bdff9),_0x2d96e9['items']['add'](_0x537838);const _0x15ef23=new _0x3e1264(_0x1a6c96,_0x29476d),_0x52cc47=new _0x23085b(_0x1a6c96);return _0x52cc47['set']({'label':R(_0x1a6c96,'Open\x20revision\x20history')}),_0x52cc47['delegate']('execute')['to'](_0x29476d),_0x52cc47['on']('execute',()=>{_0x435974['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x15ef23['children']['add'](_0x52cc47),_0x2d96e9['items']['add'](_0x15ef23),_0x29476d['panelView']['children']['add'](_0x2d96e9),_0x29476d;}['_showDialog'](){const _0x297180=this['editor'],_0x181bdb=_0x297180['locale'],_0x49b480=_0x297180['plugins']['get']('Dialog'),_0x4ae454=_0x297180['plugins']['get']('RevisionTracker');function _0x5903ef(_0x40a652){_0x297180['config']['get']('revisionHistory.requireRevisionName')&&''===_0x40a652['revisionName']?_0x40a652['revisionNameInputView']['errorText']=R(_0x181bdb,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x297180['plugins']['get'](h)['saveRevision']({'name':_0x40a652['revisionName']}),_0x49b480['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5903ef(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x49b480['show']({'id':'revisionSave','title':R(_0x181bdb,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x297180['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x49b480['hide']()},{'label':R(_0x297180['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5cb579){_0x5cb579['bind']('isEnabled')['to'](_0x4ae454,'isReady',_0x4ae454,'isEnabled',_0x297180,'isReadOnly',(_0x225a33,_0x2395aa,_0x1b95c6)=>_0x225a33&&_0x2395aa&&!_0x1b95c6);},'onExecute':()=>_0x5903ef(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1dbc8f=this['editor'],_0x32c455=_0x1dbc8f['locale'];this['_saveRevisionFormView']=new he(_0x32c455,_0x1dbc8f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x24ffe8{['changeId'];['_model'];constructor(_0x240a00,_0x56ab73){super(_0x240a00),this['_model']=_0x56ab73,this['changeId']=_0x56ab73['id'];const _0x5610fc=this['bindTemplate'],_0xa3a6f6=R(_0x240a00,_0x56ab73['data']['isSuggestion']?'Suggested\x20by':'add'==_0x56ab73['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x56ab73['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5610fc['to']('type',_0x3bc542=>'ck-revision-change__'+_0x3bc542)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xa3a6f6}]},{'text':'\x20'+_0x56ab73['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4c5d54(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x18d0bd){super(),this['id']=_0x18d0bd['id']||_0x18a60f(),this['author']=_0x18d0bd['author'],this['type']=_0x18d0bd['type'],this['data']=_0x18d0bd['data']||{},this['rootName']=_0x18d0bd['rootName'],this['set']('createdAt',_0x18d0bd['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(_0xdedbc9,_0x15b302){this['newRevisionId']=_0xdedbc9,this['oldRevisionId']=_0x15b302,this['changes']=new _0x2b1c0c();}['_setChanges'](_0x1219a2){for(const _0x3cb2ab of _0x1219a2)this['changes']['add'](_0x3cb2ab);}}class l extends _0xc26635{['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[_0x23eb55,_0x431931,S,$];}constructor(_0x1c5c97){super(_0x1c5c97),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',(_0x577006,_0x3ec1d2,_0x24465d)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3dac34=>{for(const _0xb8b322 of this['editor']['editing']['view']['document']['roots'])_0x24465d?_0x3dac34['removeClass']('ck-editor__editable__overlay',_0xb8b322):_0x3dac34['addClass']('ck-editor__editable__overlay',_0xb8b322);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x122bea=>null!==_0x122bea),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1989f5,_0x278ca9,_0x40d4d9)=>_0x1989f5&&_0x40d4d9?_0x278ca9['changes']['getIndex'](_0x40d4d9):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1e881b,_0x4a2d54)=>_0x1e881b?_0x4a2d54['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x431931);}['init'](){const _0x350fe9=this['editor'],_0x2be198=new ot(_0x350fe9,{'direction':'backward'}),_0x39bea9=new ot(_0x350fe9,{'direction':'forward'});(_0x350fe9['commands']['add']('showPreviousChange',_0x2be198),_0x350fe9['commands']['add']('showNextChange',_0x39bea9),_0x350fe9['commands']['add']('restoreRevision',new nt(_0x350fe9)),this['on']('change:numberOfChanges',()=>{_0x2be198['refresh'](),_0x39bea9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x350fe9['enableReadOnlyMode']('revision-viewer'),_0x350fe9['plugins']['has']('WidgetToolbarRepository'))&&_0x350fe9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2a0566){return await this['_utils']['loadRevisionData'](_0x2a0566,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2a0566);}async['getRevisionRootsAttributes'](_0x32b436){return await this['_utils']['loadRevisionData'](_0x32b436,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x32b436);}async['compare'](_0x1f19c2,_0x3bd2d,_0x1aae57=!0x1){if(!this['isEnabled'])return;const _0x1b5170=this['diff'],_0x15e838=this['repository'],_0x20800b='string'==typeof _0x1f19c2?_0x15e838['getRevision'](_0x1f19c2):_0x1f19c2,_0x2f4574='string'==typeof _0x3bd2d?_0x15e838['getRevision'](_0x3bd2d):_0x3bd2d,_0x55fbc3=_0x20800b['id'],_0x1a739c=_0x2f4574?_0x2f4574['id']:null;if(!_0x1aae57&&this['diff']&&this['diff']['newRevisionId']===_0x55fbc3&&this['diff']['oldRevisionId']===_0x1a739c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x55fbc3,_0x1a739c);const _0x5e4f2d=this['_getRevisionsRange'](_0x20800b,_0x2f4574,!0x0)['map'](_0x5ce257=>this['_utils']['loadRevisionData'](_0x5ce257,this['adapter']));return _0x5e4f2d['push'](new Promise(_0x34154d=>{setTimeout(_0x34154d,0x14);})),Promise['all'](_0x5e4f2d)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2d7157=this['_getDiff'](_0x55fbc3,_0x1a739c);for(const _0x115fa9 of _0x2d7157['changes'])this['_changeIdToChange']['set'](_0x115fa9['id'],_0x115fa9);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2499e4=>{for(const _0x306b53 of this['editor']['model']['document']['getRootNames']())_0x2499e4['detachRoot'](_0x306b53);for(const _0x9bd455 of Object['keys'](_0x2d7157['model'])){const _0x626927=_0x2499e4['addRoot'](_0x9bd455);for(const _0x389c22 of Object['keys'](_0x2d7157['attributes'][_0x9bd455]))_0x2499e4['setAttribute'](_0x389c22,_0x2d7157['attributes'][_0x9bd455][_0x389c22],_0x626927);_0x2499e4['insert'](_0x2d7157['model'][_0x9bd455],_0x626927,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2d7157['changes'])),this['isReady']=!0x0;})['catch'](_0xaa96e6=>{console['error'](_0xaa96e6),this['_cleanUp'](),_0x1b5170&&(this['diff']=_0x1b5170),this['isReady']=!0x0;});}['addRevisionData'](_0x513d31,_0x299c74){const _0x46a13e=this['repository']['createRevision'](_0x513d31);return _0x46a13e['on']('_update',(_0x6d805e,_0x494fec,_0x1b3ef9)=>_0x299c74(_0x494fec,_0x1b3ef9,_0x46a13e)),this['repository']['addRevision'](_0x46a13e),_0x46a13e;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x340098=>{for(const _0x1da2dd of this['editor']['model']['document']['getRootNames']())_0x340098['detachRoot'](_0x1da2dd);});}['_sortAndFilterDiffChanges'](_0x41d937){const _0x1a32eb=[],_0x3e3854=new Map();for(const _0x1a0d7a of this['editor']['model']['document']['getRootNames']()){const _0x1a95b7=this['editor']['editing']['view']['getDomRoot'](_0x1a0d7a);if(!_0x1a95b7)continue;const _0x1054d9=_0x1a95b7['getClientRects']()['item'](0x0);_0x1054d9&&(_0x1a32eb['push'](_0x1a0d7a),_0x3e3854['set'](_0x1a0d7a,_0x1054d9));}return _0x1a32eb['sort']((_0x1109aa,_0x4588b5)=>{const _0x37d79f=_0x3e3854['get'](_0x1109aa),_0x5c3e9f=_0x3e3854['get'](_0x4588b5);return _0x37d79f['y']-_0x5c3e9f['y']||_0x37d79f['x']-_0x5c3e9f['x'];}),(_0x41d937=_0x41d937['filter'](_0x1eb56b=>_0x1a32eb['includes'](_0x1eb56b['rootName'])))['sort']((_0x22ede0,_0x4fec72)=>_0x1a32eb['indexOf'](_0x22ede0['rootName'])-_0x1a32eb['indexOf'](_0x4fec72['rootName'])),_0x41d937;}['_makeTape'](_0x5e8115){const _0x4bc37a=Array['from'](_0x5e8115['markers'])['filter'](([_0x28df72,_0x5f5599])=>_0x28df72['startsWith']('revision:')&&!_0x5f5599['isCollapsed']),_0x3d3058=Array['from'](this['editor']['model']['createRangeIn'](_0x5e8115)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4bc37a['length'])for(const _0x3d6bb4 of _0x3d3058){const [_0x5a02c3,_0x14ed81]=_0x4bc37a[0x0],[,_0xad688e,_0x215245]=_0x5a02c3['split'](':');if(_0x14ed81['end']['isEqual'](_0x3d6bb4['nextPosition'])&&_0x4bc37a['shift'](),(_0x3d6bb4['previousPosition']['isEqual'](_0x14ed81['start'])||_0x3d6bb4['previousPosition']['isAfter'](_0x14ed81['start']))&&('insertion'==_0xad688e?_0x3d6bb4['isAdded']={'userId':_0x215245}:'deletion'==_0xad688e&&(_0x3d6bb4['isRemoved']={'userId':_0x215245})),0x0==_0x4bc37a['length'])break;}return _0x3d3058;}['_refreshStartEndIndex'](_0x4e8934){const _0x3b109b=new Map();for(let _0x10b0f8=0x0;_0x10b0f8<_0x4e8934['length'];_0x10b0f8++)'text'===_0x4e8934[_0x10b0f8]['type']?(_0x4e8934[_0x10b0f8]['item']['startIndex']=_0x10b0f8,_0x4e8934[_0x10b0f8]['item']['endIndex']=_0x10b0f8):('elementStart'===_0x4e8934[_0x10b0f8]['type']?_0x4e8934[_0x10b0f8]['item']['startIndex']=_0x10b0f8:'elementEnd'===_0x4e8934[_0x10b0f8]['type']&&(_0x4e8934[_0x10b0f8]['item']['endIndex']=_0x10b0f8),_0x3b109b['set'](_0x4e8934[_0x10b0f8]['id'],_0x10b0f8));for(const _0x5f4355 of _0x3b109b['values']())'elementStart'===_0x4e8934[_0x5f4355]['type']?_0x4e8934[_0x5f4355]['item']['endIndex']=_0x3b109b['get'](_0x4e8934[_0x5f4355]['pairId']):'elementEnd'===_0x4e8934[_0x5f4355]['type']&&(_0x4e8934[_0x5f4355]['item']['startIndex']=_0x3b109b['get'](_0x4e8934[_0x5f4355]['pairId']));}['_processTape'](_0x46fb1d){for(let _0x1cd761=0x0;_0x1cd761<_0x46fb1d['length'];_0x1cd761++){if('elementStart'===_0x46fb1d[_0x1cd761]['type'])_0x46fb1d[_0x1cd761]['item']['startIndex']=_0x1cd761;else{if('elementEnd'===_0x46fb1d[_0x1cd761]['type']){_0x46fb1d[_0x1cd761]['item']['endIndex']=_0x1cd761;const _0x2242ee=_0x46fb1d[_0x1cd761]['item']['startIndex'];_0x46fb1d[_0x2242ee]['pairId']=_0x46fb1d[_0x1cd761]['id'],_0x46fb1d[_0x1cd761]['pairId']=_0x46fb1d[_0x2242ee]['id'];}else _0x46fb1d[_0x1cd761]['item']['startIndex']=_0x1cd761,_0x46fb1d[_0x1cd761]['item']['endIndex']=_0x1cd761,_0x46fb1d[_0x1cd761]['pairId']=null;}_0x46fb1d[_0x1cd761]['markersStart']||(_0x46fb1d[_0x1cd761]['markersStart']=[],_0x46fb1d[_0x1cd761]['markersEnd']=[]);}}['_markInsertions'](_0x1a41a1,_0x43764f){const _0x504087=_0x1a41a1['filter'](_0x11e69f=>!_0x11e69f['isAdded']);for(let _0x319ef7=0x0;_0x319ef7<_0x43764f['length'];_0x319ef7++)_0x43764f[_0x319ef7]['isAdded']&&(_0x504087[_0x319ef7]['isAdded']=_0x43764f[_0x319ef7]['isAdded']);}['_getDiff'](_0x4b370e,_0x4ce70=null){const _0x4bd0b6=this['repository']['getRevision'](_0x4b370e),_0x1a6f6c=_0x4ce70?this['repository']['getRevision'](_0x4ce70):null,_0xb7c743=this['_getRevisionsRange'](_0x4bd0b6,_0x1a6f6c),_0x246362=_0xb7c743[_0xb7c743['length']-0x1],_0xdbc5af=new Map(),_0xbcf300={'model':{},'attributes':{},'changes':[]},_0x19d0ee=new Set(),_0x96cabb=new Map();for(let _0x32d1e8=_0xb7c743['length']-0x1;_0x32d1e8>=0x0;_0x32d1e8--){const _0x2107a5=_0xb7c743[_0x32d1e8];for(const _0x1a807e of Object['keys'](_0x2107a5['diffData']))if(_0x2107a5['diffData'][_0x1a807e]['attachChange']){const _0x4391be=_0x2107a5['diffData'][_0x1a807e]['attachChange'];_0x4391be['isAttached']?(_0x19d0ee['add'](_0x1a807e),_0x96cabb['has'](_0x1a807e)&&_0x96cabb['get'](_0x1a807e)['userId']==_0x4391be['userId']?_0x96cabb['delete'](_0x1a807e):_0x96cabb['set'](_0x1a807e,_0x4391be)):_0x96cabb['has'](_0x1a807e)?(_0x19d0ee['delete'](_0x1a807e),_0x96cabb['delete'](_0x1a807e)):(_0x19d0ee['add'](_0x1a807e),_0x96cabb['set'](_0x1a807e,_0x4391be));}else _0x19d0ee['add'](_0x1a807e);}for(const _0x485ce9 of _0x19d0ee){const _0x134e77=_0x96cabb['has'](_0x485ce9)&&!_0x96cabb['get'](_0x485ce9)['isAttached'];let _0x25563b=_0x134e77?_0xb7c743['length']-0x1:0x0;const _0x283846=_0x134e77?-0x1:0x1;for(;_0xb7c743[_0x25563b];){const _0x2b7a89=_0xb7c743[_0x25563b];if(_0x2b7a89['diffData'][_0x485ce9]){const _0x3c1d87=_0x134e77?_0x2b7a89['diffData'][_0x485ce9]['attributesBefore']:_0x2b7a89['diffData'][_0x485ce9]['attributesAfter'];_0xbcf300['attributes'][_0x485ce9]=_0x3c1d87?_0x19f1e9(_0x3c1d87):{};break;}_0x25563b+=_0x283846;}}for(const _0xb5a619 of _0xb7c743){_0xb5a619['model']={};for(const _0x69e849 of _0xb5a619['authors'])_0xdbc5af['set'](_0x69e849['id'],_0x69e849);for(const _0x74b54d of _0x19d0ee){const _0x916d49=_0xb5a619['diffData'][_0x74b54d]?_0xb5a619['diffData'][_0x74b54d]['insertions']:'[]',_0x1ae188=_0xb5a619['diffData'][_0x74b54d]?_0xb5a619['diffData'][_0x74b54d]['deletions']:'[]';_0xb5a619['model'][_0x74b54d]={'insertions':this['_utils']['_makeModelFromViewString'](_0x916d49),'deletions':this['_utils']['_makeModelFromViewString'](_0x1ae188)};}}for(const _0x3fcecf of _0x19d0ee){let _0x5a846a=null,_0x533560=0x0;const _0x19e747=new Map(Array['from'](_0x4bd0b6['model'][_0x3fcecf]['insertions']['markers'])['filter'](([_0x5f10b4])=>!_0x5f10b4['startsWith']('revision:')));let _0x21f572=0x0;for(const _0x31daab of _0xb7c743){const _0x2805c3=this['_makeTape'](_0x31daab['model'][_0x3fcecf]['insertions']);_0x31daab==_0x4bd0b6?(_0x5a846a=_0x2805c3,_0x533560=_0x5a846a['length'],_0x5a846a['forEach'](_0x46344e=>{_0x46344e['id']=_0x21f572++;}),this['_processTape'](_0x5a846a)):this['_markInsertions'](_0x5a846a,_0x2805c3);const _0x2f01b9=_0x5a846a['filter'](_0x5cf1aa=>!_0x5cf1aa['isAdded'])['map'](_0x40bfc1=>_0x40bfc1['id']);let _0x1afc3f=0x0;const _0x308c81=this['_makeTape'](_0x31daab['model'][_0x3fcecf]['deletions']);_0x308c81['forEach'](_0x315a6d=>{_0x315a6d['isRemoved']?_0x315a6d['id']=_0x533560++:_0x315a6d['id']=_0x2f01b9[_0x1afc3f++];}),this['_processTape'](_0x308c81),this['_setDistance'](_0x5a846a,'isAdded'),this['_setDistance'](_0x308c81,'isRemoved'),_0x31daab==_0x4bd0b6&&this['_markMarkers'](_0x5a846a,_0x19e747),_0x5a846a=this['_joinTapes'](_0x5a846a,_0x308c81),this['_refreshStartEndIndex'](_0x5a846a),this['_setDistance'](_0x5a846a,'isRemoved');}_0x5a846a=_0x5a846a['filter'](_0x20b803=>!(_0x20b803['isAdded']&&_0x20b803['isRemoved']));const _0x48bd09=new Map(_0x246362['model'][_0x3fcecf]['deletions']['markers']),_0x14d328=new Set(_0x19e747['keys']());for(const _0x260681 of _0x48bd09['keys']())_0x14d328['delete'](_0x260681);this['_markSuggestions'](_0x5a846a,_0x14d328),this['_fixObsoleteTags'](_0x5a846a),_0x5a846a=this['_removeMissingPairs'](_0x5a846a),_0x5a846a=this['_markMismatchedRemovedTags'](_0x5a846a),_0x5a846a=this['_removeUnsupportedChanges'](_0x5a846a);const {root:_0x4cfa38,changes:_0x553df8}=this['_makeModelFromTape'](_0x5a846a,_0xdbc5af,_0x3fcecf);_0xbcf300['model'][_0x3fcecf]=_0x4cfa38;const _0x577925=_0x96cabb['get'](_0x3fcecf);if(_0x577925){const _0x5e1fda=_0xdbc5af['get'](_0x577925['userId']),_0x4fc32c=new G({'author':_0x5e1fda,'type':_0x577925['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3fcecf});_0x553df8['unshift'](_0x4fc32c),_0xbcf300['attributes'][_0x3fcecf]['revisionHistoryAttachChange']=_0x4fc32c['id'];}_0xbcf300['changes']=_0xbcf300['changes']['concat'](_0x553df8);}return _0xbcf300;}['_markMarkers'](_0x1d83ef,_0xc4e921){for(let _0x30089f=0x0;_0x30089f<_0x1d83ef['length'];_0x30089f++)for(const [_0x2cbbe7,_0x24fb3f]of _0xc4e921)!_0x24fb3f['isCollapsed']&&_0x24fb3f['start']['isEqual'](_0x1d83ef[_0x30089f]['previousPosition'])&&_0x1d83ef[_0x30089f]['markersStart']['push'](_0x2cbbe7),_0x24fb3f['end']['isEqual'](_0x1d83ef[_0x30089f]['nextPosition'])&&_0x1d83ef[_0x30089f]['markersEnd']['push'](_0x2cbbe7);}['_joinTapes'](_0x38f4a4,_0x5a4d06){let _0x328f20=[],_0x2a2e7f=0x0,_0x505e9e=0x0;for(;_0x2a2e7f<_0x38f4a4['length']||_0x505e9e<_0x5a4d06['length'];){const _0x3b3514=_0x38f4a4[_0x2a2e7f]||{},_0x180041=_0x5a4d06[_0x505e9e]||{};if(_0x3b3514['id']==_0x180041['id'])_0x2a2e7f++,_0x505e9e++,_0x328f20['push'](_0x3b3514);else{if(_0x180041['isRemoved']&&_0x3b3514['isAdded']){const {commonTape:_0x5568e4,iEnd:_0x12f48d,jEnd:_0x4d9904}=this['_threeWayMerge'](_0x38f4a4,_0x2a2e7f,_0x5a4d06,_0x505e9e);_0x328f20=_0x328f20['concat'](_0x5568e4),_0x2a2e7f=_0x12f48d,_0x505e9e=_0x4d9904;}else _0x180041['isRemoved']?(_0x505e9e++,_0x328f20['push'](_0x180041)):(_0x2a2e7f++,_0x328f20['push'](_0x3b3514));}}return _0x328f20;}['_markSuggestions'](_0x16e1d1,_0x33e62c){const _0x1dd2ff=[];for(let _0x4dc4d9=0x0;_0x4dc4d9<_0x16e1d1['length'];_0x4dc4d9++){for(let _0x5228a1=0x0;_0x5228a1<_0x16e1d1[_0x4dc4d9]['markersStart']['length'];_0x5228a1++){const _0xce24f6=_0x16e1d1[_0x4dc4d9]['markersStart'][_0x5228a1];if(!_0x33e62c['has'](_0xce24f6))continue;const {group:_0x5db45d,type:_0x1d74d4,authorId:_0x77e683}=_0x5c5d7b(_0xce24f6);'revision-suggestion'!=_0x5db45d||'insertion'!=_0x1d74d4&&'deletion'!=_0x1d74d4||(_0x1dd2ff['unshift']({'type':_0x1d74d4,'name':_0xce24f6,'userId':_0x77e683}),_0x16e1d1[_0x4dc4d9]['markersStart']['splice'](_0x5228a1,0x1),_0x5228a1--);}_0x1182f8(_0x16e1d1[_0x4dc4d9]);for(let _0x5913de=0x0;_0x5913de<_0x16e1d1[_0x4dc4d9]['markersEnd']['length'];_0x5913de++){const _0x22caec=_0x16e1d1[_0x4dc4d9]['markersEnd'][_0x5913de];if(!_0x33e62c['has'](_0x22caec))continue;const {group:_0x372765,type:_0xc7da61}=_0x5c5d7b(_0x22caec);if('revision-suggestion'!=_0x372765||'insertion'!=_0xc7da61&&'deletion'!=_0xc7da61)continue;_0x16e1d1[_0x4dc4d9]['markersEnd']['splice'](_0x5913de,0x1),_0x5913de--;const _0x46661d=_0x1dd2ff['findIndex'](_0x4fd88e=>_0x4fd88e['name']==_0x22caec);_0x46661d>-0x1&&_0x1dd2ff['splice'](_0x46661d,0x1);}}function _0x5c5d7b(_0x175691){const _0x1a4b10=_0x175691['split'](':');return{'group':_0x1a4b10[0x0],'type':_0x1a4b10[0x1],'subType':_0x1a4b10['length']>=0x5?_0x1a4b10[0x2]:null,'id':_0x1a4b10['length']<0x5?_0x1a4b10[0x2]:_0x1a4b10[0x3],'authorId':_0x1a4b10['length']<0x5?_0x1a4b10[0x3]:_0x1a4b10[0x4],'markerCount':0x6==_0x1a4b10['length']?_0x1a4b10[0x5]:null};}function _0x1182f8(_0x4edabb){for(let _0x3aac5d=0x0;_0x3aac5d<_0x1dd2ff['length'];_0x3aac5d++){if(_0x4edabb['isAdded']&&'insertion'==_0x1dd2ff[_0x3aac5d]['type']&&_0x4edabb['isAdded']['userId']==_0x1dd2ff[_0x3aac5d]['userId'])return _0x4edabb['isAddSuggestion']=_0x1dd2ff[_0x3aac5d],void delete _0x4edabb['isAdded'];if(!_0x4edabb['isAdded']&&!_0x4edabb['isRemoved']&&'deletion'==_0x1dd2ff[_0x3aac5d]['type'])return void(_0x4edabb['isRemoveSuggestion']=_0x1dd2ff[_0x3aac5d]);}}}['_setDistance'](_0x3f0080,_0x47969f){let _0x32fb01=0x0,_0x5c6e5c=!0x1;const _0x5c2f6c=new Map();for(const _0xe197b8 of _0x3f0080)_0xe197b8[_0x47969f]?_0x5c6e5c&&(_0x32fb01++,_0x5c6e5c=!0x1):(_0x32fb01++,_0x5c6e5c=!0x0),_0x5c2f6c['set'](_0xe197b8['id'],_0x32fb01);for(let _0x50e83b=0x0;_0x50e83b<_0x3f0080['length'];_0x50e83b++){if('isRemoved'==_0x47969f&&_0x3f0080[_0x50e83b]['isAdded']||'isAdded'==_0x47969f&&_0x3f0080[_0x50e83b]['isRemoved'])continue;if('text'==_0x3f0080[_0x50e83b]['type']){_0x3f0080[_0x50e83b]['distance']=0x0;continue;}const _0x4b3853=_0x5c2f6c['get'](_0x3f0080[_0x50e83b]['pairId']),_0x5236ad=_0x5c2f6c['get'](_0x3f0080[_0x50e83b]['id']);_0x3f0080[_0x50e83b]['distance']=_0x4b3853-_0x5236ad;}}['_getRevisionsRange'](_0x575e8f,_0x469512,_0x3f1254=!0x1){const _0x367889=[];let _0x449b2b=this['repository']['getIndex'](_0x575e8f),_0x3da715=this['repository']['getIndex'](_0x469512);for(-0x1==_0x3da715&&(_0x3da715=this['repository']['_revisions']['length'],_0x3f1254=!0x1);_0x449b2b<_0x3da715;)_0x367889['push'](this['repository']['getRevision'](_0x449b2b)),_0x449b2b++;return _0x3f1254&&_0x367889['push'](this['repository']['getRevision'](_0x449b2b)),_0x367889;}['_threeWayMerge'](_0x1c8927,_0x5b2eea,_0x75aac2,_0x4e4795){const _0x757e19=this['editor']['model']['schema'];let _0x4bcfb8=_0x5b2eea;for(;_0x1c8927[_0x4bcfb8]&&_0x1c8927[_0x4bcfb8]['isAdded'];)_0x4bcfb8++;let _0x1014d2=_0x4e4795;for(;_0x75aac2[_0x1014d2]&&_0x75aac2[_0x1014d2]['isRemoved'];)_0x1014d2++;_0x5e479a(_0x1c8927,_0x5b2eea,_0x4bcfb8),_0x5e479a(_0x75aac2,_0x4e4795,_0x1014d2);const _0x2bad4d=_0x75aac2['slice'](_0x4e4795,_0x1014d2)['concat'](_0x1c8927['slice'](_0x5b2eea,_0x4bcfb8));return _0x2bad4d['sort']((_0x996d33,_0xe03792)=>_0x996d33['side']!=_0xe03792['side']?_0x996d33['side']-_0xe03792['side']:_0x996d33['level']!=_0xe03792['level']?_0x996d33['level']-_0xe03792['level']:_0x996d33['distance']!=_0xe03792['distance']?_0xe03792['distance']-_0x996d33['distance']:!!_0x996d33['isAdded']!=!!_0xe03792['isAdded']?-0x1==_0x996d33['side']||0x0==_0x996d33['side']?_0x996d33['isAdded']?-0x1:0x1:_0x996d33['isAdded']?0x1:-0x1:_0x996d33['index']-_0xe03792['index']),{'commonTape':_0x2bad4d,'iEnd':_0x4bcfb8,'jEnd':_0x1014d2};function _0x5e479a(_0x34a5fb,_0x23ab95,_0x6def9d){let _0x5f0931=-0x1,_0xbf6188=Number['POSITIVE_INFINITY'],_0x1fcd75=!0x0;for(let _0x347d84=_0x23ab95;_0x347d84<_0x6def9d;_0x347d84++)if(_0x757e19['isInline'](_0x34a5fb[_0x347d84]['item'])||(_0x1fcd75=!0x1),_0x34a5fb[_0x347d84]['item']['startIndex']<_0x23ab95&&(_0x5f0931=_0x347d84),_0x34a5fb[_0x347d84]['item']['endIndex']>=_0x6def9d){_0xbf6188=_0x347d84;break;}_0x1fcd75&&(_0x5f0931=_0x6def9d-0x1);for(let _0x3bd327=_0x23ab95;_0x3bd327<_0x6def9d;_0x3bd327++)_0x34a5fb[_0x3bd327]['side']=_0x3bd327<=_0x5f0931?-0x1:_0x3bd327<_0xbf6188?0x0:0x1,_0x34a5fb[_0x3bd327]['index']=_0x3bd327;let _0x55f1c4=0x0;for(let _0x43cae9=_0x23ab95;_0x43cae9<=_0x5f0931;_0x43cae9++)0x0==_0x34a5fb[_0x43cae9]['distance']?_0x34a5fb[_0x43cae9]['level']=_0x55f1c4:(_0x55f1c4++,_0x34a5fb[_0x43cae9]['level']=_0x55f1c4,_0x55f1c4++);for(let _0xd8d153=_0x23ab95;_0xd8d153<_0x6def9d;_0xd8d153++)0x0==_0x34a5fb[_0xd8d153]['side']&&(_0x34a5fb[_0xd8d153]['level']=_0x55f1c4);_0x55f1c4=0x0;for(let _0x4862b3=_0x6def9d-0x1;_0x4862b3>=_0xbf6188;_0x4862b3--)0x0==_0x34a5fb[_0x4862b3]['distance']?_0x34a5fb[_0x4862b3]['level']=_0x55f1c4:(_0x55f1c4--,_0x34a5fb[_0x4862b3]['level']=_0x55f1c4,_0x55f1c4--);}}['_fixObsoleteTags'](_0x5de4fc){const _0x3a0619=new Map(),_0x16fc28=this['editor']['model']['schema'];for(let _0x527b25=0x1;_0x527b25<_0x5de4fc['length'];_0x527b25++){let _0xc4bf96,_0x54ef2d,_0x3b9548;const _0x46fc21=_0x5de4fc[_0x527b25],_0x46dabe=_0x5de4fc[_0x527b25-0x1];if('text'==_0x46fc21['type'])continue;if(_0x46fc21['type']!=_0x46dabe['type'])continue;if(!_0x16fc28['isBlock'](_0x46dabe['item'])||_0x16fc28['isLimit'](_0x46dabe['item']))continue;if(!_0x16fc28['isBlock'](_0x46fc21['item'])||_0x16fc28['isLimit'](_0x46fc21['item']))continue;if((_0x5de4fc[_0x527b25]['isAdded']||_0x5de4fc[_0x527b25]['isAddSuggestion'])&&_0x5de4fc[_0x527b25-0x1]['isRemoved'])_0xc4bf96=_0x5de4fc[_0x527b25],_0x54ef2d=_0x5de4fc[_0x527b25-0x1],_0x3b9548=_0x527b25-0x1;else{if(!_0x5de4fc[_0x527b25]['isRemoved']||!_0x5de4fc[_0x527b25-0x1]['isAdded']&&!_0x5de4fc[_0x527b25-0x1]['isAddSuggestion'])continue;_0xc4bf96=_0x5de4fc[_0x527b25-0x1],_0x54ef2d=_0x5de4fc[_0x527b25],_0x3b9548=_0x527b25;}const _0x24b248=_0xc4bf96['level']==_0x54ef2d['level'],_0x3429af=Math['abs'](_0xc4bf96['level'])<Math['abs'](_0x54ef2d['level'])&&0x0==_0x54ef2d['distance'];(_0x24b248||_0x3429af)&&(_0x3a0619['set'](_0x54ef2d['id'],_0xc4bf96['id']),_0x5de4fc['splice'](_0x3b9548,0x1),_0x527b25--,_0xc4bf96['isAdded']=!0x1);}for(let _0x1a9a0a=0x0;_0x1a9a0a<_0x5de4fc['length'];_0x1a9a0a++)_0x3a0619['has'](_0x5de4fc[_0x1a9a0a]['pairId'])&&(_0x5de4fc[_0x1a9a0a]['pairId']=_0x3a0619['get'](_0x5de4fc[_0x1a9a0a]['pairId']));}['_removeMissingPairs'](_0x34da85){const _0x187393=new Set(_0x34da85['map'](_0x388985=>_0x388985['id']));for(let _0x41edc0=0x0;_0x41edc0<_0x34da85['length'];_0x41edc0++)_0x187393['has'](_0x34da85[_0x41edc0]['pairId'])||0x0==_0x34da85[_0x41edc0]['distance']||(_0x34da85[_0x41edc0]['isIncorrect']=!0x0);return _0x34da85['filter'](_0x425b6f=>!_0x425b6f['isIncorrect']);}['_markMismatchedRemovedTags'](_0x245c4a){const _0x475320=new Set();for(let _0x2258b0=0x0;_0x2258b0<_0x245c4a['length'];_0x2258b0++){if(_0x475320['has'](_0x245c4a[_0x2258b0]['id'])&&_0x245c4a[_0x2258b0]['isRemoved']&&(_0x245c4a[_0x2258b0]['isIncorrect']=!0x0),_0x245c4a[_0x2258b0]['isIncorrect'])continue;if(0x0==_0x245c4a[_0x2258b0]['distance'])continue;if('elementStart'!=_0x245c4a[_0x2258b0]['type'])continue;if(null==_0x245c4a[_0x2258b0]['pairId'])continue;let _0x2942ab=_0x2258b0+0x1,_0x3ed02b=0x0;for(;_0x245c4a[_0x2942ab]['id']!=_0x245c4a[_0x2258b0]['pairId'];)'elementStart'==_0x245c4a[_0x2942ab]['type']?_0x3ed02b++:'elementEnd'==_0x245c4a[_0x2942ab]['type']&&_0x3ed02b--,_0x2942ab++;if(0x0!=_0x3ed02b){if(_0x245c4a[_0x2258b0]['isRemoved'])_0x245c4a[_0x2258b0]['isIncorrect']=!0x0;else{for(;_0x2942ab!=_0x2258b0;)_0x245c4a[_0x2942ab]['isRemoved']&&0x0!=_0x245c4a[_0x2942ab]['distance']&&(_0x245c4a[_0x2942ab]['isIncorrect']=!0x0,_0x475320['add'](_0x245c4a[_0x2942ab]['pairId'])),_0x2942ab--;}}}return _0x245c4a['filter'](_0x31b262=>!_0x31b262['isIncorrect']);}['_removeUnsupportedChanges'](_0x52efe5){const _0x4f70cd=this['editor']['model']['schema'];for(let _0xcb6efb=0x0;_0xcb6efb<_0x52efe5['length'];_0xcb6efb++){if(!(_0x52efe5[_0xcb6efb]['isAdded']||_0x52efe5[_0xcb6efb]['isAddSuggestion']||_0x52efe5[_0xcb6efb]['isRemoved']||_0x52efe5[_0xcb6efb]['isRemoveSuggestion']))continue;if(0x0==_0x52efe5[_0xcb6efb]['distance'])continue;const _0x5d027f=_0x52efe5[_0xcb6efb]['item'];_0x4f70cd['isBlock'](_0x5d027f)||_0x4f70cd['isLimit'](_0x5d027f)||(_0x52efe5[_0xcb6efb]['isAdded']&&delete _0x52efe5[_0xcb6efb]['isAdded'],_0x52efe5[_0xcb6efb]['isAddSuggestion']&&delete _0x52efe5[_0xcb6efb]['isAddSuggestion'],_0x52efe5[_0xcb6efb]['isRemoveSuggestion']&&delete _0x52efe5[_0xcb6efb]['isRemoveSuggestion'],_0x52efe5[_0xcb6efb]['isRemoved']&&(_0x52efe5[_0xcb6efb]['isIncorrect']=!0x0));}return _0x52efe5['filter'](_0x38f5d6=>!_0x38f5d6['isIncorrect']);}['_makeModelFromTape'](_0x157a82,_0x415ec5,_0x45e208){const _0x2f02d3=new _0x445f1a(),_0x31bbfa=[],_0x245811=new Map(),_0x2e06a5=this['editor']['model'],_0x57939b=_0x2e06a5['schema'],_0xe51711=[_0x2f02d3],_0x2e4ade={},_0x158795={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x533a78=null;const _0x525091=[0x0];for(let _0x1c0342=0x0;_0x1c0342<_0x157a82['length'];_0x1c0342++)if('elementStart'===_0x157a82[_0x1c0342]['type']){_0x157a82[_0x1c0342]['previousPosition']=_0x2e06a5['createPositionFromPath'](_0x2f02d3,_0x525091);const _0x1ef7d0=new _0x189583(_0x157a82[_0x1c0342]['item']['name'],_0x157a82[_0x1c0342]['item']['getAttributes']());_0xe51711[0x0]['_appendChild'](_0x1ef7d0),_0x525091['push'](0x0),_0xe51711['unshift'](_0x1ef7d0),_0x157a82[_0x1c0342]['nextPosition']=_0x2e06a5['createPositionFromPath'](_0x2f02d3,_0x525091);}else'elementEnd'===_0x157a82[_0x1c0342]['type']?(_0xe51711['shift'](),_0x157a82[_0x1c0342]['previousPosition']=_0x2e06a5['createPositionFromPath'](_0x2f02d3,_0x525091),_0x525091['pop'](),_0x525091[_0x525091['length']-0x1]++,_0x157a82[_0x1c0342]['nextPosition']=_0x2e06a5['createPositionFromPath'](_0x2f02d3,_0x525091)):(_0x157a82[_0x1c0342]['previousPosition']=_0x2e06a5['createPositionFromPath'](_0x2f02d3,_0x525091),_0x533a78?_0x533a78['_data']+=_0x157a82[_0x1c0342]['item']['data']:_0x533a78=new _0x38581d(_0x157a82[_0x1c0342]['item']['data'],_0x157a82[_0x1c0342]['item']['getAttributes']()),_0x157a82[_0x1c0342+0x1]&&'text'===_0x157a82[_0x1c0342+0x1]['type']&&_0xed6448(_0x533a78,_0x157a82[_0x1c0342+0x1]['item'])||(_0xe51711[0x0]['_appendChild'](_0x533a78),_0x533a78=null),_0x525091[_0x525091['length']-0x1]+=_0x157a82[_0x1c0342]['item']['offsetSize'],_0x157a82[_0x1c0342]['nextPosition']=_0x2e06a5['createPositionFromPath'](_0x2f02d3,_0x525091));for(let _0x4d1f98=0x0;_0x4d1f98<_0x157a82['length'];_0x4d1f98++){const _0x267874=_0x157a82[_0x4d1f98]['previousPosition'],_0x3029f1=_0x157a82[_0x4d1f98]['nextPosition'];for(const _0x58c4d4 of _0x157a82[_0x4d1f98]['markersStart'])_0x245811['set'](_0x58c4d4,{'start':_0x267874,'end':null});_0x1b10b4('isRemoveSuggestion',_0x4d1f98,_0x267874,_0x3029f1),_0x1b10b4('isAddSuggestion',_0x4d1f98,_0x267874,_0x3029f1),_0x1b10b4('isRemoved',_0x4d1f98,_0x267874,_0x3029f1),_0x1b10b4('isAdded',_0x4d1f98,_0x267874,_0x3029f1);for(const _0x3bbf6f of _0x157a82[_0x4d1f98]['markersEnd']){const _0x3f7d37=_0x245811['get'](_0x3bbf6f);_0x3f7d37?_0x3f7d37['end']=_0x3029f1:_0x245811['set'](_0x3bbf6f,{'start':_0x3029f1,'end':_0x3029f1});}}for(const [_0xd54a4a,_0xad2564]of _0x245811){const _0x58f2ba=this['editor']['model']['createRange'](_0xad2564['start'],_0xad2564['end']);_0x2f02d3['markers']['set'](_0xd54a4a,_0x58f2ba);}return _0x31bbfa['sort']((_0x45bc3f,_0x3830fa)=>{const _0x9ae7a2=_0x2f02d3['markers']['get']('revision:'+_0x45bc3f['id']),_0x288f23=_0x2f02d3['markers']['get']('revision:'+_0x3830fa['id']);return _0x9ae7a2['start']['isBefore'](_0x288f23['start'])?-0x1:_0x9ae7a2['start']['isAfter'](_0x288f23['start'])?0x1:_0x9ae7a2['end']['isBefore'](_0x288f23['end'])?-0x1:_0x9ae7a2['end']['isAfter'](_0x288f23['end'])?0x1:'add'===_0x45bc3f['type']?-0x1:0x1;}),{'root':_0x2f02d3,'changes':_0x31bbfa};function _0x1b10b4(_0x5c2d83,_0x3d268c,_0xe50513,_0x320457){const _0x521701=!!_0x157a82[_0x3d268c][_0x5c2d83],_0x4b03cf=_0x521701?_0x157a82[_0x3d268c][_0x5c2d83]['userId']:null,_0x5b8acd=_0x3d268c===_0x157a82['length']-0x1,_0x41ee53=_0x158795[_0x5c2d83][0x0],_0x115254=_0x57939b['isObject'](_0x157a82[_0x3d268c]['item']);!_0x2e4ade[_0x5c2d83]&&_0x521701?_0x2e4ade[_0x5c2d83]={'start':_0xe50513,'tapeItem':_0x157a82[_0x3d268c],'userId':_0x4b03cf,'type':_0x5c2d83}:_0x2e4ade[_0x5c2d83]&&!_0x521701?(_0x2e4ade[_0x5c2d83]['end']=_0xe50513,_0x321f24(_0x2e4ade[_0x5c2d83]),_0x2e4ade[_0x5c2d83]=null):_0x2e4ade[_0x5c2d83]&&_0x521701&&_0x2e4ade[_0x5c2d83]['userId']!==_0x4b03cf&&(_0x2e4ade[_0x5c2d83]['end']=_0xe50513,_0x41ee53&&_0x41ee53['userId']===_0x2e4ade[_0x5c2d83]['userId']||_0x321f24(_0x2e4ade[_0x5c2d83]),_0x2e4ade[_0x5c2d83]={'start':_0xe50513,'tapeItem':_0x157a82[_0x3d268c],'userId':_0x4b03cf,'type':_0x5c2d83}),_0x2e4ade[_0x5c2d83]&&_0x115254&&('elementStart'!==_0x157a82[_0x3d268c]['type']||_0x41ee53&&_0x41ee53['userId']===_0x4b03cf||_0x158795[_0x5c2d83]['unshift']({'userId':_0x4b03cf,'object':_0x157a82[_0x3d268c]['item'],'change':_0x2e4ade[_0x5c2d83]}),'elementEnd'===_0x157a82[_0x3d268c]['type']&&_0x41ee53&&_0x41ee53['object']===_0x157a82[_0x3d268c]['item']&&(_0x158795[_0x5c2d83]['shift'](),_0x2e4ade[_0x5c2d83]=_0x41ee53['change'])),_0x2e4ade[_0x5c2d83]&&_0x5b8acd&&(_0x2e4ade[_0x5c2d83]['end']=_0x320457,_0x321f24(_0x2e4ade[_0x5c2d83]),_0x2e4ade[_0x5c2d83]=null);}function _0x321f24({start:_0x20c816,end:_0x3d478b,tapeItem:_0x281a04,userId:_0x390a97,type:_0x6fdd19}){const _0x1bd908=_0x281a04['item'],_0x518dcd=_0x2e06a5['schema']['isBlock'](_0x1bd908)&&!_0x2e06a5['schema']['isLimit'](_0x1bd908),_0x4b8c2a=_0x20c816['nodeAfter']==_0x3d478b['parent']&&_0x3d478b['isAtStart'];if(_0x518dcd&&_0x4b8c2a)return;const _0x2efe4d=_0x2e06a5['createRange'](_0x20c816,_0x3d478b),_0x383319=_0x415ec5['get'](_0x390a97),_0x398531=new G({'author':_0x383319,'type':'isAdded'==_0x6fdd19||'isAddSuggestion'==_0x6fdd19?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x6fdd19||'isRemoveSuggestion'==_0x6fdd19},'createdAt':new Date(),'rootName':_0x45e208});_0x31bbfa['push'](_0x398531),_0x2f02d3['markers']['set']('revision:'+_0x398531['id'],_0x2efe4d);}function _0xed6448(_0x2cea00,_0x2bd236){const _0x52ef8b=_0x2cea00['getAttributes'](),_0x1cefdd=_0x2bd236['getAttributes']();for(const _0x22d382 of _0x52ef8b){if(_0x22d382[0x1]!==_0x2bd236['getAttribute'](_0x22d382[0x0]))return!0x1;_0x1cefdd['next']();}return _0x1cefdd['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x49288f=>{const _0x53c6a7=_0x49288f['markerName']['split'](':')[0x1],_0x2ae0d1=this['_getChangeFromId'](_0x53c6a7);if(!_0x2ae0d1)return null;const _0x45b7d5='add'==_0x2ae0d1['type']?'insertion':'deletion',_0x4cfc0a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x45b7d5];return _0x2ae0d1['data']['isSuggestion']&&_0x4cfc0a['push']('ck-suggestion-marker-'+_0x45b7d5+'-new'),this['activeChange']==_0x2ae0d1&&_0x4cfc0a['push']('ck-suggestion-marker--active'),{'classes':_0x4cfc0a,'attributes':{'data-change-id':_0x53c6a7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x220c81=>{_0x220c81['on']('element:pre',(_0x39fbc8,_0x1e2429,_0x4e2e73)=>{const _0x34912e=_0x1e2429['viewItem']['getChild'](0x0);if(!_0x34912e||!_0x34912e['is']('element','code'))return;if(!_0x4e2e73['consumable']['consume'](_0x34912e,{'attributes':['vid_start','vid_end']}))return;const _0x3a8c01=_0x1e2429['modelRange']['start']['nodeAfter'];_0x4e2e73['writer']['setAttribute']('vid_start',_0x34912e['getAttribute']('vid_start'),_0x3a8c01),_0x4e2e73['writer']['setAttribute']('vid_end',_0x34912e['getAttribute']('vid_end'),_0x3a8c01);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2e8152=>{_0x2e8152['on']('element',(_0x5c6e24,_0x42e57e,_0x15de8b)=>{if(!_0x15de8b['consumable']['consume'](_0x42e57e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x42e57e['modelRange']['isCollapsed'])return;const _0x31c6d2=_0x42e57e['modelRange']['start']['nodeAfter'];_0x31c6d2['hasAttribute']('vid_start')||_0x31c6d2['hasAttribute']('vid')||(_0x15de8b['writer']['setAttribute']('vid_start',_0x42e57e['viewItem']['getAttribute']('vid_start'),_0x31c6d2),_0x15de8b['writer']['setAttribute']('vid_end',_0x42e57e['viewItem']['getAttribute']('vid_end'),_0x31c6d2));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2cb0fb=>_0x2cb0fb['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5be482,[,_0x573be4])=>{['vid_start','vid_end','vid']['includes'](_0x573be4)&&(_0x5be482['return']=!0x0,_0x5be482['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x30f1c0=>{_0x30f1c0['on']('attribute:vid',(_0x1b8937,_0x538042,_0x387c14)=>{if('\x20'!=_0x538042['item']['data']||_0x538042['item']['parent']['maxOffset']>0x1)return;if(!_0x387c14['consumable']['consume'](_0x538042['item'],_0x1b8937['name']))return;const _0x12f98e=_0x387c14['writer'],_0x33b20b=_0x387c14['mapper']['toViewRange'](_0x538042['range']);_0x12f98e['wrap'](_0x33b20b,_0x12f98e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1b3580){const _0x5cd155=_0x1b3580['plugins']['get']('RevisionViewer');return(_0x146234,_0x8d032e,_0x37e930)=>{const _0x1e2187=_0x8d032e['markerName']['split'](':')[0x1],_0x5047fd=_0x5cd155['_getChangeFromId'](_0x1e2187);if(!_0x5047fd)return null;const _0xbe538f='add'==_0x5047fd['type']?'split':'merge';if(!_0x37e930['consumable']['test'](_0x8d032e['markerRange'],_0x146234['name']))return;const _0x13abfc=_0x8d032e['markerRange']['getWalker'](),_0x4f5f12=_0x8d032e['markerRange']['start'],_0xd28523=_0x1b3580['model']['schema'];let _0x4aaacc=null,_0xf24df8=null,_0x4ae6e0=!0x1,_0x5dbf2a=!0x1;for(const _0x5983b5 of _0x13abfc){const _0x4cbaf2=_0x5983b5['item'];_0x4ae6e0=_0x4ae6e0||_0xd28523['isContent'](_0x4cbaf2);const _0xd8c391=_0x37e930['mapper']['toViewElement'](_0x4cbaf2);if(_0xd8c391&&_0xd8c391['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5983b5['type']&&(_0xd28523['isBlock'](_0x4cbaf2)&&!_0xd28523['isLimit'](_0x4cbaf2)&&(_0x4cbaf2['nextSibling']||_0x4f5f12['isAtEnd']?_0x4aaacc&&_0x4aaacc['parent']==_0x4cbaf2||(_0x4aaacc=_0x4cbaf2,_0x54e5b8(_0x5983b5['previousPosition']),_0x5dbf2a=!0x0):_0xf24df8=_0xf24df8||_0x5983b5['previousPosition']));}function _0x54e5b8(_0x3e8472){const _0x18f34f=_0x37e930['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xbe538f}),_0xe4250c=_0x37e930['mapper']['toViewPosition'](_0x3e8472);_0x5047fd['data']['isSuggestion']&&_0x37e930['writer']['addClass']('ck-suggestion-marker-'+_0xbe538f+'-new',_0x18f34f),_0x5cd155['activeChange']==_0x5047fd&&_0x37e930['writer']['addClass']('ck-suggestion-marker--active',_0x18f34f),_0x37e930['writer']['insert'](_0xe4250c,_0x18f34f),_0x37e930['mapper']['bindElementToMarker'](_0x18f34f,_0x8d032e['markerName']);}_0x4ae6e0||_0x5dbf2a||!_0xf24df8||_0x54e5b8(_0xf24df8);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x381fd3,_0x129acc,_0x12996b)=>{const _0x1271f6=_0x12996b['mapper']['markerNameToElements'](_0x129acc['markerName']);if(_0x1271f6){for(const _0x57ab06 of _0x1271f6)(_0x57ab06['hasClass']('ck-suggestion-marker-split')||_0x57ab06['hasClass']('ck-suggestion-marker-merge'))&&(_0x12996b['mapper']['unbindElementFromMarkerName'](_0x57ab06,_0x129acc['markerName']),_0x12996b['writer']['remove'](_0x57ab06));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x408ead,_0x29a8d2,_0x27dec5)=>{const _0x3cff47=_0x29a8d2['markerName']['split'](':')[0x1],_0x23d1df=this['_getChangeFromId'](_0x3cff47);if(!_0x23d1df)return null;const _0x3e8ee1='add'==_0x23d1df['type']?'split':'merge';if(_0x27dec5['consumable']['test'](_0x29a8d2['markerRange'],_0x408ead['name']))for(const _0xbccf72 of _0x29a8d2['markerRange']['getItems']()){if(!_0xbccf72['is']('element','softBreak'))continue;const _0x10521f=_0x27dec5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e8ee1}),_0x287144=_0x27dec5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xbccf72));_0x23d1df['data']['isSuggestion']&&_0x27dec5['writer']['addClass']('ck-suggestion-marker-'+_0x3e8ee1+'-new',_0x10521f),this['activeChange']==_0x23d1df&&_0x27dec5['writer']['addClass']('ck-suggestion-marker--active',_0x10521f),_0x27dec5['writer']['insert'](_0x287144,_0x10521f),_0x27dec5['mapper']['bindElementToMarker'](_0x10521f,_0x29a8d2['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x560366=>{for(const _0x1fca85 of this['editor']['model']['document']['getRootNames']()){const _0x30c7bb=this['editor']['model']['document']['getRoot'](_0x1fca85),_0x518d03=this['editor']['editing']['view']['document']['getRoot'](_0x1fca85);if(_0x518d03){const _0x55d27c=_0x30c7bb['getAttribute']('revisionHistoryAttachChange');if(_0x560366['removeAttribute']('data-change-id',_0x518d03),_0x560366['removeClass']('ck-revision-history-root-add',_0x518d03),_0x560366['removeClass']('ck-revision-history-root-remove',_0x518d03),_0x560366['removeClass']('ck-revision-history-root--active',_0x518d03),_0x55d27c){const _0xa545a0=this['_getChangeFromId'](_0x55d27c);if(!_0xa545a0)return null;_0x560366['setAttribute']('data-change-id',_0x55d27c,_0x518d03),_0x560366['addClass']('ck-revision-history-root-'+_0xa545a0['type'],_0x518d03),this['activeChange']==_0xa545a0&&_0x560366['addClass']('ck-revision-history-root--active',_0x518d03);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4727e1=>'revision-comment:'+_0x4727e1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x176b40=>'revision-suggestion:'+_0x176b40,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4a7cce=>({'name':'suggestion:'+_0x4a7cce,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x26441b=>{const _0x5f41a1=_0x26441b['markerName']['split'](':')[0x1];return'insertion'!=_0x5f41a1&&'deletion'!=_0x5f41a1?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5f41a1]};}}),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',(_0x1a006f,_0x369774,_0x2ccfbd)=>{const _0x53dceb=_0x2ccfbd['mapper']['markerNameToElements'](_0x369774['markerName']);if(_0x53dceb){for(const _0x5615cb of _0x53dceb)_0x5615cb['is']('uiElement')&&(_0x2ccfbd['mapper']['unbindElementFromMarkerName'](_0x5615cb,_0x369774['markerName']),_0x2ccfbd['writer']['remove'](_0x5615cb));}},{'priority':'high'});}['_getChangeFromId'](_0x37f4bf){return this['_changeIdToChange']['get'](_0x37f4bf);}['_getViewForChange'](_0x1dc541){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x1dc541),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xed1002,_0x18c6c7,_0xa1c6c2,_0x206827)=>{_0x206827&&this['_balloon']['remove'](_0x206827),_0xa1c6c2&&(this['_balloon']['add']({'view':_0xa1c6c2,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3c41a3=this['editor']['editing'],_0x53246b=this['_getChangeFromId'](_0xa1c6c2['changeId']);let _0x4c0235;if(_0x53246b['data']['isOnRoot']){const _0x396641=_0x3c41a3['view']['getDomRoot'](_0x53246b['rootName']);_0x4c0235=Array['from'](_0x396641['getClientRects']());}else{const _0x14c065=this['editor']['model']['markers']['get']('revision:'+_0xa1c6c2['changeId']);_0x4c0235=Array['from'](_0x3c41a3['mapper']['markerNameToElements'](_0x14c065['name']))['map'](_0x337cd6=>_0x3c41a3['view']['domConverter']['mapViewToDom'](_0x337cd6))['map'](_0x368518=>Array['from'](_0x368518['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4c0235[0x0];return _0x4c0235['find'](_0x1e7e27=>_0x1e7e27['top']-0x3<=this['_activeViewTarget']['y']&&_0x1e7e27['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1e7e27['left']-0x3<=this['_activeViewTarget']['x']&&_0x1e7e27['right']+0x3>=this['_activeViewTarget']['x'])||_0x4c0235[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2de515,_0x89ad25,_0x580ffd,_0x47e135)=>{this['activeView']=_0x580ffd?this['_getViewForChange'](_0x580ffd):null,this['editor']['model']['change'](()=>{const _0x4eace7=this['editor']['editing'];_0x47e135&&(_0x47e135['data']['isOnRoot']?_0x4eace7['view']['change'](_0x3cde81=>{_0x3cde81['removeClass']('ck-revision-history-root--active',_0x4eace7['view']['document']['getRoot'](_0x47e135['rootName']));}):_0x4eace7['reconvertMarker']('revision:'+_0x47e135['id'])),_0x580ffd&&(_0x580ffd['data']['isOnRoot']?_0x4eace7['view']['change'](_0x279b2b=>{_0x279b2b['addClass']('ck-revision-history-root--active',_0x4eace7['view']['document']['getRoot'](_0x580ffd['rootName']));}):_0x4eace7['reconvertMarker']('revision:'+_0x580ffd['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1d2238,_0x420792)=>{if(this['activeChange'])return;const _0x1a1dde=this['_findChangeIdFromDomTarget'](_0x420792['target']),_0x59cd50=this['_changeIdToChange']['get'](_0x1a1dde);_0x59cd50?(this['_activeViewTarget']={'x':_0x420792['domEvent']['x'],'y':_0x420792['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x59cd50)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5d478f,_0x3ec22d)=>{const _0x9e3789=this['_findChangeIdFromDomTarget'](_0x3ec22d['target']),_0x3e83d4=this['_changeIdToChange']['get'](_0x9e3789);_0x3e83d4?(this['_activeViewTarget']={'x':_0x3ec22d['domEvent']['x'],'y':_0x3ec22d['domEvent']['y']},_0x3e83d4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3e83d4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x50685f){do{const _0x5d08f6=_0x50685f['getAttribute']('data-change-id');if(_0x5d08f6)return _0x5d08f6;_0x50685f=_0x50685f['parent'];}while(_0x50685f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2001f9=>{for(const _0x5be9a2 of this['editor']['model']['markers'])_0x2001f9['removeMarker'](_0x5be9a2);});}}function Q(_0x48463c,_0x4f52fb){return(_0x10c3b2,_0x3ccc56,_0x2969d9)=>{if(!_0x2969d9['consumable']['test'](_0x3ccc56['markerRange'],_0x10c3b2['name']))return;const _0x10b2d4=_0x3ccc56['markerRange']['getWalker'](),_0x55ccfc=_0x3ccc56['markerRange']['start'],_0x5f782e=_0x48463c['model']['schema'];let _0x5d22ab=null,_0x4a0258=null,_0x16d3ff=!0x1,_0x1e2d5a=!0x1;for(const _0x551c56 of _0x10b2d4){const _0x2b0411=_0x551c56['item'];_0x16d3ff=_0x16d3ff||_0x5f782e['isContent'](_0x2b0411);const _0x42ac3e=_0x2969d9['mapper']['toViewElement'](_0x2b0411);if(_0x42ac3e&&_0x42ac3e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x551c56['type']&&(_0x5f782e['isBlock'](_0x2b0411)&&!_0x5f782e['isLimit'](_0x2b0411)&&(_0x2b0411['nextSibling']||_0x55ccfc['isAtEnd']?_0x5d22ab&&_0x5d22ab['parent']==_0x2b0411||(_0x5d22ab=_0x2b0411,_0x4599c3(_0x551c56['previousPosition']),_0x1e2d5a=!0x0):_0x4a0258=_0x4a0258||_0x551c56['previousPosition']));}function _0x4599c3(_0x392144){const _0x511738=_0x2969d9['mapper']['toViewPosition'](_0x392144),_0x215e30=_0x2969d9['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4f52fb});_0x2969d9['writer']['insert'](_0x511738,_0x215e30),_0x2969d9['mapper']['bindElementToMarker'](_0x215e30,_0x3ccc56['markerName']);}_0x16d3ff||_0x1e2d5a||!_0x4a0258||_0x4599c3(_0x4a0258);};}class nt extends _0x4edbe1{constructor(_0x4dbe83){super(_0x4dbe83);const _0x11b665=_0x4dbe83['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x11b665,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x11b665,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x26e88f=this['editor'],_0x19c9ce=_0x26e88f['plugins']['get'](l),_0xcaf492=_0x19c9ce['isReady']?_0x19c9ce['diff']['newRevisionId']:null;_0x26e88f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xcaf492);}['refresh'](){const {isReady:_0x4f69e2,isEnabled:_0x5caddf,repository:_0x399157,diff:_0x28f0c0}=this['editor']['plugins']['get'](l),_0x1ddac2=_0x28f0c0&&_0x399157['getLaterVisibleRevision'](_0x28f0c0['newRevisionId']);this['isEnabled']=_0x4f69e2&&_0x5caddf&&Boolean(_0x1ddac2);}}class ot extends _0x4edbe1{['_step'];constructor(_0x450ef7,{direction:_0xc7837}){super(_0x450ef7);const _0x3c5a57=_0x450ef7['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0xc7837?0x1:-0x1,this['listenTo'](_0x3c5a57,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3c5a57,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3c5a57,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4769ff=this['editor'],_0x3cbbbe=_0x4769ff['plugins']['get'](l),{isNavigationMode:_0x225213,currentChangeNumber:_0x20aa40}=_0x3cbbbe;let _0x3480d5;if(_0x3cbbbe['activeChange']=_0x225213?_0x3cbbbe['diff']['changes']['get'](_0x20aa40+this['_step']):_0x3cbbbe['diff']['changes']['first'],_0x3cbbbe['activeChange']['data']['isOnRoot'])_0x3480d5=_0x4769ff['editing']['view']['getDomRoot'](_0x3cbbbe['activeChange']['rootName']);else{const _0x2e8ebd=_0x4769ff['model']['markers']['get']('revision:'+_0x3cbbbe['activeChange']['id']);_0x3480d5=_0x1f81c3(_0x4769ff['editing'],_0x2e8ebd);}_0x1c9483({'target':_0x3480d5,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3f01ca,currentChangeNumber:_0x3b6c75,numberOfChanges:_0x1fc81c,isReady:_0x24870e,isEnabled:_0x17a5d3}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x17a5d3&&_0x24870e&&_0x1fc81c)&&(!_0x3f01ca||(0x1===this['_step']?_0x3b6c75<_0x1fc81c-0x1:_0x3b6c75>0x0));}}class Ri extends _0x24ffe8{constructor(_0x83fdaa){super(_0x83fdaa);const _0x346ebe=this['bindTemplate'],_0x56c89a=new _0x3e4962(_0x83fdaa),_0x299367=new _0x3e4962(_0x83fdaa);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',(_0x1d0125,_0x552b1d)=>_0x1d0125&&_0x552b1d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x54f70e,_0x48f832,_0x332c9c,_0x2bb131)=>{if(!_0x54f70e)return R(_0x83fdaa,'Loading...');if(!_0x332c9c)return R(_0x83fdaa,'No\x20changes');const _0x2e3cfd=R(_0x83fdaa,'NUMBER_OF_CHANGES',_0x332c9c);return _0x2bb131?R(_0x83fdaa,'X_OF_Y_CHANGES',[_0x48f832+0x1,_0x332c9c]):_0x2e3cfd;}),_0x56c89a['set']({'label':R(_0x83fdaa,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x21831f}),_0x299367['set']({'label':R(_0x83fdaa,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x381f8f}),_0x56c89a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x299367['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x56c89a['on']('execute',()=>this['fire']('execute','backward')),_0x299367['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',_0x346ebe['if']('_isStatusLabelVisible','ck-hidden',_0xdb6a5e=>!_0xdb6a5e)]},'children':[{'text':_0x346ebe['to']('isNavigationMode',_0x282c9c=>_0x282c9c?R(_0x83fdaa,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x83fdaa,'Total')+':\x20')}]},{'text':_0x346ebe['to']('_statusText')}]},new _0x22a32b(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x56c89a,_0x299367]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0xc26635{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3bb376=this['editor']['editing']['view'];_0x3bb376['change'](_0x5d4aaf=>{for(const _0x3c9ff1 of _0x3bb376['document']['roots'])_0x5d4aaf['addClass'](ge,_0x3c9ff1);});}['hide'](){const _0x343388=this['editor']['editing']['view'];_0x343388['change'](_0x4e9dbf=>{for(const _0x9bff74 of _0x343388['document']['roots'])_0x4e9dbf['removeClass'](ge,_0x9bff74);});}}class u extends _0xc26635{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x4bd7a2=this['editor'],_0x32e87d=_0x4bd7a2['plugins']['get'](l),_0x3a6165=_0x4bd7a2['plugins']['get'](ji);_0x4bd7a2['ui']['componentFactory']['add']('exitToEditing',_0x3eba60=>{const _0x53bf81=new _0x3e4962(_0x3eba60);return _0x53bf81['set']({'label':R(_0x3eba60,'Back\x20to\x20editing'),'icon':_0x2be619,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x53bf81,'execute',()=>{_0x4bd7a2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x53bf81;}),_0x4bd7a2['ui']['componentFactory']['add']('restoreRevision',_0x47d592=>{const _0x16e88d=new _0x3e4962(_0x47d592);return _0x16e88d['set']({'label':R(_0x47d592,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x16e88d['bind']('isEnabled')['to'](_0x4bd7a2['commands']['get']('restoreRevision')),this['listenTo'](_0x16e88d,'execute',()=>_0x4bd7a2['execute']('restoreRevision')),_0x16e88d;}),_0x4bd7a2['ui']['componentFactory']['add']('changesNavigation',_0x29f20d=>{const _0x2544ad=new Ri(_0x29f20d),_0x1183fb=_0x4bd7a2['commands']['get']('showPreviousChange'),_0x2633bf=_0x4bd7a2['commands']['get']('showNextChange');return _0x2544ad['bind']('isBackwardNavigationEnabled')['to'](_0x1183fb,'isEnabled'),_0x2544ad['bind']('isForwardNavigationEnabled')['to'](_0x2633bf,'isEnabled'),_0x2544ad['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x32e87d),this['listenTo'](_0x2544ad,'execute',(_0x42cb2d,_0x30f62e)=>{_0x4bd7a2['execute']('forward'===_0x30f62e?'showNextChange':'showPreviousChange');}),_0x2544ad;}),_0x3a6165['show'](),_0x32e87d['on']('change:isReady',(_0x24c438,_0x431ab9,_0x3526dc)=>{_0x3526dc?_0x3a6165['hide']():_0x3a6165['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x3e82a7,_0xf4d5d9){super(_0x3e82a7,_0xf4d5d9);const _0x122c59=this['bindTemplate'];this['set']({'label':R(_0x3e82a7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x3e82a7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x122c59['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 _0x4f9da0=this['fieldView']['element'];this['_tooltipString']=_0x4f9da0['scrollWidth']>_0x4f9da0['clientWidth']&&_0x4f9da0['value']||'';}}class vi extends _0x24ffe8{constructor(_0x480fe4,_0x1d93b8,_0x4d7eab){super(_0x480fe4);const _0x2c18ad=new _0x4d3542();_0x2c18ad['set']({'content':_0x1e08a7,'viewBox':'0\x200\x2011\x2010'});const _0x3b8527=['ck','ck-revision-history-sidebar__revision-author'];_0x4d7eab&&_0x3b8527['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4ce2a4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x480fe4,_0x4d7eab?'Revision\x20creator':'Revision\x20author')},'children':[_0x2c18ad,_0x1d93b8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3b8527},'children':_0x4ce2a4});}}function mi(_0x1d26a9,_0x66177d){const _0x41d08b=_0x1d26a9['bindTemplate'],_0x59ba3b=_0x1d26a9['locale'],_0x3fb649=_0x3c9c24(_0x59ba3b);_0x3fb649['panelPosition']='sw';const _0x5a8679=function(_0x12af6d,_0x4f28b3){const _0x71c65f=function(_0x2a9e9f,_0x236f1e){const _0x562d93=_0x2a9e9f['locale'],_0x175f92={'Compare\x20against\x20selected':R(_0x562d93,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x562d93,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x562d93,'Restore\x20this\x20revision')};return _0x236f1e['map'](_0x3594c2=>{const _0x1641fa=_0x175f92[_0x3594c2['name']];return _0x1641fa&&_0x1641fa!==_0x3594c2['name']&&(_0x3594c2['name']=_0x1641fa),_0x3594c2;});}(_0x12af6d,_0x4f28b3),_0x55b40c=new _0x2b1c0c();for(const _0x25fe0a of _0x71c65f){const _0x6c7b22={'type':'button','model':new to({'label':_0x25fe0a['name'],'class':_0x25fe0a['class'],'withText':!0x0,'role':'menuitem','_action':_0x25fe0a['action']})};_0x6c7b22['model']['bind']('isEnabled')['to'](_0x12af6d,'isActionsDropdownOpen',_0xb94c98=>'function'!=typeof _0x25fe0a['isEnabled']||(!_0xb94c98||_0x25fe0a['isEnabled'](_0x12af6d))),_0x55b40c['add'](_0x6c7b22);}return _0x55b40c;}(_0x1d26a9,_0x66177d);return _0x1d26a9['bind']('isActionsDropdownOpen')['to'](_0x3fb649,'isOpen'),_0x3fb649['buttonView']['set']({'label':R(_0x59ba3b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x21f807}),_0x3fb649['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x41d08b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x41d08b['to'](_0x36c346=>_0x36c346['stopPropagation']())}}),_0x3fb649['on']('execute',_0x462668=>{_0x1d26a9['isReady']&&'function'==typeof _0x462668['source']['_action']&&_0x462668['source']['_action'](_0x1d26a9);}),_0x1180eb(_0x3fb649,_0x5a8679,{'role':'menu'}),_0x3fb649['listenTo'](_0x1d26a9,'change:isActionsDropdownOpen',(_0x4017cf,_0xa74b3d,_0x39a11b)=>{if(_0x39a11b)for(const _0x5f0cff of _0x3fb649['listView']['items']){const _0x1a79e6=_0x5f0cff['children']['first'],_0x3847cc=_0x66177d['find'](_0x37e65f=>_0x37e65f['action']===_0x1a79e6['_action'])['isVisible'];_0x5f0cff['isVisible']=void 0x0===_0x3847cc||_0x3847cc(_0x1d26a9);}}),_0x3fb649;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x1af9e4(_0x24ffe8){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3fc198,_0x323beb,_0x49a727,_0x4887cd){super(_0x3fc198);const _0x2db2f4=this['bindTemplate'],_0x3b4574=function(_0x2e86b0,_0x325920){const _0x310204=Array['from'](_0x325920['authors'])['filter'](_0x57ae0c=>_0x57ae0c!=_0x325920['creator']);return _0x325920['creator']&&_0x310204['unshift'](_0x325920['creator']),_0x310204['map'](_0x58121d=>new vi(_0x2e86b0,_0x58121d,_0x58121d==_0x325920['creator']));}(_0x3fc198,_0x323beb);this['id']=_0x323beb['id'],this['_revision']=_0x323beb,this['_requireRevisionName']=_0x4887cd,this['bind']('name','createdAt')['to'](_0x323beb),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3a2842=>{return _0x2f10e9=_0x3fc198['uiLanguage'],(_0x209b1a=_0x3a2842)['toLocaleDateString'](_0x2f10e9,{'month':'long','day':'numeric'})+',\x20'+_0x209b1a['toLocaleTimeString'](_0x2f10e9,{'hour':'numeric','minute':'numeric'});var _0x2f10e9,_0x209b1a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x3fc198,_0x10e56f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x535fdc=>_0x535fdc||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x7204b5,_0x283c3f)=>_0x7204b5&&_0x283c3f),this['revisionActionsView']=_0x49a727&&_0x49a727['length']?mi(this,_0x49a727):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2db2f4['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2db2f4['if']('isEnabled','ck-disabled',_0x18b173=>!_0x18b173),_0x2db2f4['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2db2f4['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2db2f4['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':_0x2db2f4['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':_0x3b4574}]},this['revisionActionsView']],'on':{'click':_0x2db2f4['to'](_0x23e42e=>{_0x23e42e['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5250de=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5250de,'change',()=>{this['_requireRevisionName']&&!_0x5250de['value']||this['fire']('setName',{'id':this['id'],'name':_0x5250de['value']}),_0x5250de['value']||(_0x5250de['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x480e0d,_0x3c6d12){const _0x1a49bd=_0x21814b['fromJSDate'](_0x480e0d)['setLocale'](_0x3c6d12),_0xdd9bf6=_0x21814b['local'](),_0x2df7e9=_0xdd9bf6['minus']({'days':0x1})['startOf']('day');let _0x5d2c03,_0x4ef7f4;return _0x1a49bd['hasSame'](_0xdd9bf6,'day')?(_0x5d2c03=_0x1a49bd['startOf']('day')['toJSDate'](),_0x4ef7f4=_0x1a49bd['toRelativeCalendar']()):_0x1a49bd['hasSame'](_0x2df7e9,'day')?(_0x5d2c03=_0x2df7e9['toJSDate'](),_0x4ef7f4=_0x1a49bd['toRelativeCalendar']()):_0x1a49bd['hasSame'](_0xdd9bf6,'week')?(_0x5d2c03=_0x1a49bd['startOf']('week')['toJSDate'](),_0x4ef7f4=_0x1a49bd['weekdayLong']||''):_0x1a49bd['hasSame'](_0xdd9bf6,'year')?(_0x5d2c03=_0x1a49bd['startOf']('month')['toJSDate'](),_0x4ef7f4=_0x1a49bd['monthLong']||''):(_0x5d2c03=_0x1a49bd['startOf']('year')['toJSDate'](),_0x4ef7f4=String(_0x1a49bd['year'])),{'startDate':_0x5d2c03,'localizedPeriodName':_0x4ef7f4};}class fi extends _0x24ffe8{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58721d,_0x5ee001,_0x4245f3,_0x1fd31a){super(_0x58721d);const _0x3b162b=bi(_0x5ee001,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5ee001,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4245f3,this['_requireRevisionName']=_0x1fd31a,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':_0x3b162b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5b42b8){const _0x1b1a0a=new pi(this['locale'],_0x5b42b8,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1b1a0a);}['removeRevision'](_0x536e29){const _0x56041b=this['revisionViews']['find'](_0x4651d2=>_0x4651d2['id']===_0x536e29['id']);this['revisionViews']['remove'](_0x56041b);}}class ki extends _0x24ffe8{constructor(_0x24e468){super(_0x24e468);const _0x41dddf=new _0x4d3542();_0x41dddf['content']=_0x4e5777,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x41dddf,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x24e468,'Revision\x20history')]}]});}}class ui extends _0x24ffe8{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x305c9e,_0x2f6ab5,_0x373b27,_0x2bb7bf){super(_0x305c9e);const _0x588469=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2f6ab5,this['_revisionActions']=_0x373b27,this['_requireRevisionName']=_0x2bb7bf,this['on']('select',(_0x3e2538,_0x213d8e)=>{this['fire']('revisionSelected',_0x213d8e);}),this['on']('setName',(_0x2c8a4b,_0x7ede23)=>{this['fire']('revisionSetName',_0x7ede23);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x305c9e),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x588469['if']('isEnabled','ck-disabled',_0x486583=>!_0x486583)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x17264f of this['_revisions'])this['_addRevision'](_0x17264f);this['_revisions']['on']('add',(_0x4616f5,_0x3b31b1)=>{this['_addRevision'](_0x3b31b1);}),this['_revisions']['on']('remove',(_0x456a45,_0x25dd19)=>{this['_removeRevision'](_0x25dd19);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x29ffa9=>_0x29ffa9['revisionViews']['map'](_0x1ac975=>_0x1ac975))['flat']();}['selectRevision'](_0x9395e2){for(const _0x2e31aa of this['revisionViews'])_0x9395e2&&_0x9395e2['id']===_0x2e31aa['id']?_0x2e31aa['select']():_0x2e31aa['deselect']();}['highlightRevisions'](_0xdb0178){for(const _0x267300 of this['revisionViews'])_0xdb0178['some'](({id:_0x3c514d})=>_0x3c514d===_0x267300['id'])?_0x267300['highlight']():_0x267300['unhighlight']();}['_addRevision'](_0xdcdb0){const _0x273f53=bi(_0xdcdb0['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3bed9f=this['timePeriodViews']['get'](0x0);_0x3bed9f&&_0x3bed9f['startDate']['getTime']()===_0x273f53['getTime']()||(_0x3bed9f=new fi(this['locale'],_0x273f53,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3bed9f)),_0x3bed9f['addRevision'](_0xdcdb0);}['_removeRevision'](_0x75888f){const _0x5b43f1=bi(_0x75888f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5b43f1)['removeRevision'](_0x75888f);}['_getTimePeriodViewByStartDate'](_0x821630){return this['timePeriodViews']['find'](_0x470cb4=>_0x470cb4['startDate']['getTime']()===_0x821630['getTime']());}}class f extends _0xc26635{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x4593c1(_0x47e3a7){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3f4c2b,_0x5d4f34){super(_0x5d4f34),this['sourceElement']=_0x3f4c2b,this['model']['document']['createRoot']();const _0x5d872e=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x5d872e);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x475f65,_0x3a6a7b){const _0x435bdd=new this(_0x475f65,_0x3a6a7b);return await _0x435bdd['initPlugins'](),await _0x435bdd['ui']['init'](_0x475f65),await _0x435bdd['data']['init'](_0x435bdd['config']['get']('initialData')||''),_0x435bdd['fire']('ready'),_0x435bdd;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x312da3{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x597250){function _0x38c2d8(_0x2a1232){return _0x2a1232['map'](_0x48c986=>String['fromCharCode'](_0x48c986))['join']('');}super(_0x597250),this['result']='end',_0x597250[_0x38c2d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38c2d8([0x76,0x69,0x65,0x77])][_0x38c2d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38c2d8([0x61,0x75,0x74,0x6f]),_0x597250[_0x38c2d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x38c2d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38c2d8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x38c2d8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x38c2d8([0x6f,0x6b])});}}class ht extends _0x312da3{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x1462d3){if(super(_0x1462d3),!this['editor']['config']['get']('revisionHistory'))throw new _0x3bffab('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5ed86d=>this['_showRevisionViewer']({..._0x5ed86d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2fc18b=>this['_closeRevisionViewer'](_0x2fc18b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x10a738=>this['_restoreRevision'](_0x10a738)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xfa8cb7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xfa8cb7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x367a6f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x367a6f);}['getRevision'](_0x499403){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x499403);}['getRevisions'](_0x27223b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x27223b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2a7d4e=this['editor'],_0x366925=_0x40f650(_0x2a7d4e,d),_0x551017=_0x2a7d4e['plugins']['get']('RevisionTracker'),_0x4f5e45=_0x2a7d4e['plugins']['get']('Users')['users'];return _0x366925['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x366925['lazyRoots'],(_0x366925['plugins']['push'](at,l,u,class extends _0x312da3{static get['requires'](){return[l,'Users'];}['init'](){const _0x5bb254=this['editor']['plugins']['get']('Users');for(const _0x38072b of _0x4f5e45)_0x38072b['isAnonymous']||_0x5bb254['getUser'](_0x38072b['id'])||_0x5bb254['addUser'](_0x38072b);const _0x40eec2=_0x551017['repository']['getRevisions']();let _0x5cf8a9=null;const _0x2a64c1=this['editor']['plugins']['get']('RevisionViewer');_0x2a64c1['adapter']=_0x551017['adapter'],_0x2a64c1['bind']('isEnabled')['to'](_0x551017),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2a7d4e,'isReadOnly',_0x59a6a3=>!_0x59a6a3);for(const _0x59147c of _0x40eec2){const _0xd654a0=null===_0x59147c['creator'];if(_0xd654a0&&_0x59147c['toVersion']===_0x59147c['fromVersion'])continue;const _0x2266db=_0x59147c['toJSON']();_0x2a64c1['addRevisionData'](_0x2266db,(_0x5574f7,_0x11b803,_0x9108c5)=>{if(_0xd654a0){if(_0x5cf8a9)_0x5cf8a9['_update'](_0x5574f7,_0x11b803);else{if(!_0x11b803){const _0x45641d=_0x9108c5['toJSON']();_0x45641d['id']=_0x32c609(),_0x551017['saveRevision'](_0x45641d,_0x9108c5['toVersion'])['then'](_0x4e205c=>{_0x5cf8a9=_0x4e205c;});}}}else _0x59147c['_update'](_0x5574f7,_0x11b803);});}}},f),_0x366925);}['_enhanceShowRevisionViewerCallback'](){const _0x2fd2e8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x255aad=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x514c95=this['editor']['plugins']['get']('Autosave');await _0x514c95['save']();}else await _0x255aad['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x202b3d=this['editor']['plugins']['get']('Dialog');_0x202b3d['isOpen']&&_0x202b3d['hide']();}const _0x52a816=this['_getRevisionViewerEditorConfig']();return _0x2fd2e8(_0x52a816)['then'](_0x2b8e47=>{return(this['_viewerEditor']=_0x2b8e47,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'),_0x2b8e47);})['catch'](_0x184b32=>(console['error'](_0x184b32),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1fb41a=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1fb41a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x376b7e=this['editor']['plugins']['get']('Annotations');_0x376b7e['refreshVisibility'](),_0x376b7e['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3d20a2){const _0x40b450=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1a86c7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2fea20=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x2fea20,_0x3d20a2)['then'](_0x49810c=>(_0x1a86c7['style']['display']='block',_0x40b450['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x49810c));}['_closeRevisionViewer'](_0x46acfa){const _0x343552=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x343552['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x46acfa['destroy']();}async['_restoreRevision'](_0x1c995a){const _0x548739=this['editor'],_0x2817cf=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1c7374=_0x548739['plugins']['get']('RevisionTracker'),_0x3ac60d=_0x548739['plugins']['get']('RevisionHistoryUtils'),_0x53332e=_0x2817cf['repository']['getRevision'](_0x1c995a);let _0x5aae01,_0x2b3e57,_0x4d8a25;try{await _0x3ac60d['loadRevisionData'](_0x53332e,this['adapter']),_0x5aae01=_0x3ac60d['getRevisionDocumentData'](_0x53332e),_0x2b3e57=_0x3ac60d['getRevisionRootsAttributes'](_0x53332e);}catch(_0x368b9f){return void console['error'](_0x368b9f);}_0x548739['model']['change'](_0x1535e0=>{for(const _0x1f7ed5 of Array['from'](_0x548739['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1535e0['removeMarker'](_0x1f7ed5);}),_0x2817cf['isReady']=!0x1,_0x548739['model']['enqueueChange'](_0x5979b8=>{_0x5979b8['setSelection'](null),_0x5979b8['removeSelectionAttribute'](_0x548739['model']['document']['selection']['getAttributeKeys']());const _0x2057d6=Object['keys'](_0x5aae01);for(const _0x2eb27c of _0x548739['model']['document']['roots'])'$graveyard'!=_0x2eb27c['rootName']&&_0x2eb27c['isAttached']()&&!_0x2057d6['includes'](_0x2eb27c['rootName'])&&_0x5979b8['detachRoot'](_0x2eb27c);for(const _0x1ab028 of _0x2057d6){let _0x113e97=_0x548739['model']['document']['getRoot'](_0x1ab028);_0x113e97&&_0x113e97['isAttached']()||(_0x113e97=_0x5979b8['addRoot'](_0x1ab028));const _0x2c1c94=_0x2b3e57[_0x1ab028],_0x958c4f=Object['keys'](_0x2c1c94),_0x3b76e6=_0x5aae01[_0x1ab028];for(const _0x4babd5 of _0x113e97['getAttributeKeys']())_0x958c4f['includes'](_0x4babd5)||_0x5979b8['removeAttribute'](_0x4babd5,_0x113e97);for(const _0x547469 of _0x958c4f)_0x5979b8['setAttribute'](_0x547469,_0x2b3e57[_0x1ab028][_0x547469],_0x113e97);_0x5979b8['remove'](_0x5979b8['createRangeIn'](_0x113e97)),_0x5979b8['insert'](_0x548739['data']['parse'](_0x3b76e6,_0x113e97),_0x113e97,0x0);}});const _0x41005c=R(_0x548739['locale'],'Restored');if(_0x53332e['name'])_0x4d8a25=-0x1==_0x53332e['name']['indexOf'](_0x41005c)?_0x41005c+':\x20'+_0x53332e['name']:_0x53332e['name'];else _0x4d8a25=_0x41005c+':\x20'+(_0x53332e['createdAt']['toLocaleDateString'](_0x548739['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x53332e['createdAt']['toLocaleTimeString'](_0x548739['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1c7374['saveRevision']({'name':_0x4d8a25}),_0x2817cf['isReady']=!0x0,_0x548739['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x5a5199){super(_0x5a5199),this['_revisionViewer']=_0x5a5199['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x26556c=this['_revisionsRepository']['_revisions'],_0x33b2a5=this['_createRevisionActions'](),_0x10791f=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x26556c,_0x33b2a5,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',(_0x48513a,_0x3c1a60)=>{_0x3c1a60['revisionViews']['on']('add',(_0x2650c4,_0x213dd8)=>{_0x213dd8['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)),_0x10791f['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x55bfb3=this['_revisionsRepository']['getRevision'](0x0);if(_0x55bfb3){const _0x57aa60=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x55bfb3['id']);this['_revisionViewer']['compare'](_0x55bfb3,_0x57aa60);}}['_handleRevisionSelected'](_0x559a59,_0x428257){const _0x2e76fc=this['_revisionsRepository']['getRevision'](_0x428257['id']),_0x5ef6f5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2e76fc['id']);this['_revisionViewer']['compare'](_0x2e76fc,_0x5ef6f5);}['_handleRevisionSetName'](_0x126383,_0x103056){this['_revisionsRepository']['getRevision'](_0x103056['id'])['setName'](_0x103056['name']);}['_handleDiffChange'](_0x576a78,_0x2c1043,_0x1c0a33){const _0x3acd88=this['_revisionsRepository']['getRevisionsInDiff'](_0x1c0a33);_0x3acd88['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3acd88),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3acd88[0x0]));}['_createRevisionActions'](){const _0x299d5f=this['editor'],_0x2f95f1=f['availableRevisionActions'],_0x3ec360=_0x299d5f['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x3ec360['length'])return _0x3ec360['map'](_0x46b7a4=>{const _0x2e127a='string'==typeof _0x46b7a4?Object['assign']({},_0x2f95f1[_0x46b7a4]):_0x46b7a4;return _0x2e127a['action']=_0x2e127a['action']['bind'](this,_0x299d5f),_0x2e127a['isVisible']&&(_0x2e127a['isVisible']=_0x2e127a['isVisible']['bind'](this,_0x299d5f)),_0x2e127a;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x222b9a},_0x567474)=>{const _0x5595d6=_0x222b9a['get'](l),_0x36d13d=_0x5595d6['repository'];let _0x4ab90e=_0x5595d6['diff']['newRevisionId'],_0x4edd9e=_0x567474['id'];_0x36d13d['getIndex'](_0x4ab90e)>_0x36d13d['getIndex'](_0x4edd9e)&&([_0x4ab90e,_0x4edd9e]=[_0x4edd9e,_0x4ab90e]),_0x5595d6['compare'](_0x4ab90e,_0x4edd9e);},'isVisible':({plugins:_0x33741},_0x19eca8)=>{const _0x25516f=_0x33741['get'](l);return!(_0x25516f['repository']['getRevisionsInDiff'](_0x25516f['diff'])['length']>0x2)&&!_0x19eca8['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1429a8,{id:_0x1a7efc})=>{_0x1429a8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1a7efc);},'isVisible':({plugins:_0x7fc713},_0x9e65a8)=>!!_0x7fc713['get'](l)['repository']['getLaterVisibleRevision'](_0x9e65a8['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x20ba9e},{id:_0x38a3c9,revisionNameView:_0x248570})=>{const _0xf08fd0=_0x20ba9e['get'](l),_0x11799e=_0xf08fd0['repository']['getEarlierVisibleRevision'](_0x38a3c9);_0xf08fd0['compare'](_0x38a3c9,_0x11799e),_0x248570['focus'](),_0x248570['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x44dae2,_0x30c2dc){super(_0x44dae2),this['_view']=_0x30c2dc,this['_toolbarConfig']=st(_0x44dae2['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0xa13702){const _0x2be4cd=this['editor'],_0x421c2d=this['view'],_0x52f0fb=_0x2be4cd['editing']['view'],_0xce3c8=_0x421c2d['editable'],_0x446927=_0x52f0fb['document']['getRoot']();_0xce3c8['name']=_0x446927['rootName'],_0x421c2d['render']();const _0x56b762=_0xce3c8['element'];this['setEditableElement'](_0xce3c8['name'],_0x56b762),_0x421c2d['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x52f0fb['attachDomRoot'](_0x56b762),this['_elementReplacer']['replace'](_0xa13702,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x285bc4=this['view'],_0x12c014=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x12c014['detachDomRoot'](_0x285bc4['editable']['name']),_0x285bc4['destroy']();}['_initToolbar'](){const _0x8aa734=this['view'];_0x8aa734['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x8aa734['stickyPanel']['limiterElement']=_0x8aa734['element'],_0x8aa734['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x456224})=>_0x456224),_0x8aa734['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x8aa734['toolbar']);}}class ii extends _0x6e1a7a{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x13a01a,_0x4ceba3,_0x38774c={}){super(_0x13a01a),this['stickyPanel']=new _0x2cde62(_0x13a01a),this['toolbar']=new _0x2c4059(_0x13a01a,{'shouldGroupWhenFull':_0x38774c['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x13a01a,_0x4ceba3);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x356389(_0x546407){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3c216f,_0x543360){super(_0x543360),this['sourceElement']=_0x3c216f,this['model']['document']['createRoot']();const _0x253bff=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x253bff);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x437e9e,_0x6105cc){const _0x11ee0c=new this(_0x437e9e,_0x6105cc);return await _0x11ee0c['initPlugins'](),await _0x11ee0c['ui']['init'](_0x437e9e),await _0x11ee0c['data']['init'](_0x11ee0c['config']['get']('initialData')||''),_0x11ee0c['fire']('ready'),_0x11ee0c;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0xc26635{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23ea25){function _0x432f7a(_0x5c488a){return _0x5c488a['map'](_0x106d66=>String['fromCharCode'](_0x106d66))['join']('');}super(_0x23ea25),this['result']='end',_0x23ea25[_0x432f7a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x432f7a([0x76,0x69,0x65,0x77])][_0x432f7a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x432f7a([0x61,0x75,0x74,0x6f]),_0x23ea25[_0x432f7a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x432f7a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x432f7a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x432f7a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x432f7a([0x6f,0x6b])});}}class ht extends _0xc26635{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x314484){if(super(_0x314484),!this['editor']['config']['get']('revisionHistory'))throw new _0x19cb35('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1f7346=>this['_showRevisionViewer']({..._0x1f7346,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2b816b=>this['_closeRevisionViewer'](_0x2b816b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2cbd48=>this['_restoreRevision'](_0x2cbd48)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3c3395){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3c3395;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x100b7a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x100b7a);}['getRevision'](_0x5f23e7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5f23e7);}['getRevisions'](_0x323795){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x323795||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x54b3de=this['editor'],_0x12e6d2=_0x471891(_0x54b3de,d),_0x462378=_0x54b3de['plugins']['get']('RevisionTracker'),_0x58dd74=_0x54b3de['plugins']['get']('Users')['users'];return _0x12e6d2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x12e6d2['lazyRoots'],(_0x12e6d2['plugins']['push'](at,l,u,class extends _0xc26635{static get['requires'](){return[l,'Users'];}['init'](){const _0x1e2a11=this['editor']['plugins']['get']('Users');for(const _0x727d24 of _0x58dd74)_0x727d24['isAnonymous']||_0x1e2a11['getUser'](_0x727d24['id'])||_0x1e2a11['addUser'](_0x727d24);const _0x5f316b=_0x462378['repository']['getRevisions']();let _0x489e6d=null;const _0xb8c69f=this['editor']['plugins']['get']('RevisionViewer');_0xb8c69f['adapter']=_0x462378['adapter'],_0xb8c69f['bind']('isEnabled')['to'](_0x462378),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x54b3de,'isReadOnly',_0x4dddf0=>!_0x4dddf0);for(const _0x1cd3e5 of _0x5f316b){const _0x3d85a2=null===_0x1cd3e5['creator'];if(_0x3d85a2&&_0x1cd3e5['toVersion']===_0x1cd3e5['fromVersion'])continue;const _0x1efbeb=_0x1cd3e5['toJSON']();_0xb8c69f['addRevisionData'](_0x1efbeb,(_0x55b72a,_0x567f19,_0xcd2f0c)=>{if(_0x3d85a2){if(_0x489e6d)_0x489e6d['_update'](_0x55b72a,_0x567f19);else{if(!_0x567f19){const _0x4b43d2=_0xcd2f0c['toJSON']();_0x4b43d2['id']=_0x18a60f(),_0x462378['saveRevision'](_0x4b43d2,_0xcd2f0c['toVersion'])['then'](_0x544ccf=>{_0x489e6d=_0x544ccf;});}}}else _0x1cd3e5['_update'](_0x55b72a,_0x567f19);});}}},f),_0x12e6d2);}['_enhanceShowRevisionViewerCallback'](){const _0x5bbd4d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x333f2e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5bf977=this['editor']['plugins']['get']('Autosave');await _0x5bf977['save']();}else await _0x333f2e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2831e6=this['editor']['plugins']['get']('Dialog');_0x2831e6['isOpen']&&_0x2831e6['hide']();}const _0x67af6c=this['_getRevisionViewerEditorConfig']();return _0x5bbd4d(_0x67af6c)['then'](_0x47f9f8=>{return(this['_viewerEditor']=_0x47f9f8,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'),_0x47f9f8);})['catch'](_0x183c2e=>(console['error'](_0x183c2e),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1ef64c=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1ef64c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5af307=this['editor']['plugins']['get']('Annotations');_0x5af307['refreshVisibility'](),_0x5af307['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1481cc){const _0x4dd1c5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x38f029=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x16b212=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x16b212,_0x1481cc)['then'](_0xb4a814=>(_0x38f029['style']['display']='block',_0x4dd1c5['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xb4a814));}['_closeRevisionViewer'](_0x3de6a8){const _0x106436=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x106436['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3de6a8['destroy']();}async['_restoreRevision'](_0xa49efd){const _0x55bf81=this['editor'],_0x112b63=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x565e02=_0x55bf81['plugins']['get']('RevisionTracker'),_0x523a68=_0x55bf81['plugins']['get']('RevisionHistoryUtils'),_0x4e2f07=_0x112b63['repository']['getRevision'](_0xa49efd);let _0x468bd6,_0x143886,_0xf22b07;try{await _0x523a68['loadRevisionData'](_0x4e2f07,this['adapter']),_0x468bd6=_0x523a68['getRevisionDocumentData'](_0x4e2f07),_0x143886=_0x523a68['getRevisionRootsAttributes'](_0x4e2f07);}catch(_0x4ea79c){return void console['error'](_0x4ea79c);}_0x55bf81['model']['change'](_0x396ffd=>{for(const _0x442f0a of Array['from'](_0x55bf81['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x396ffd['removeMarker'](_0x442f0a);}),_0x112b63['isReady']=!0x1,_0x55bf81['model']['enqueueChange'](_0x33e8c3=>{_0x33e8c3['setSelection'](null),_0x33e8c3['removeSelectionAttribute'](_0x55bf81['model']['document']['selection']['getAttributeKeys']());const _0x509c34=Object['keys'](_0x468bd6);for(const _0x520d49 of _0x55bf81['model']['document']['roots'])'$graveyard'!=_0x520d49['rootName']&&_0x520d49['isAttached']()&&!_0x509c34['includes'](_0x520d49['rootName'])&&_0x33e8c3['detachRoot'](_0x520d49);for(const _0x2bce7f of _0x509c34){let _0x2c4a7e=_0x55bf81['model']['document']['getRoot'](_0x2bce7f);_0x2c4a7e&&_0x2c4a7e['isAttached']()||(_0x2c4a7e=_0x33e8c3['addRoot'](_0x2bce7f));const _0x300acd=_0x143886[_0x2bce7f],_0x35c689=Object['keys'](_0x300acd),_0x4bc1d5=_0x468bd6[_0x2bce7f];for(const _0x3da64d of _0x2c4a7e['getAttributeKeys']())_0x35c689['includes'](_0x3da64d)||_0x33e8c3['removeAttribute'](_0x3da64d,_0x2c4a7e);for(const _0x5000c5 of _0x35c689)_0x33e8c3['setAttribute'](_0x5000c5,_0x143886[_0x2bce7f][_0x5000c5],_0x2c4a7e);_0x33e8c3['remove'](_0x33e8c3['createRangeIn'](_0x2c4a7e)),_0x33e8c3['insert'](_0x55bf81['data']['parse'](_0x4bc1d5,_0x2c4a7e),_0x2c4a7e,0x0);}});const _0x142992=R(_0x55bf81['locale'],'Restored');if(_0x4e2f07['name'])_0xf22b07=-0x1==_0x4e2f07['name']['indexOf'](_0x142992)?_0x142992+':\x20'+_0x4e2f07['name']:_0x4e2f07['name'];else _0xf22b07=_0x142992+':\x20'+(_0x4e2f07['createdAt']['toLocaleDateString'](_0x55bf81['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4e2f07['createdAt']['toLocaleTimeString'](_0x55bf81['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x565e02['saveRevision']({'name':_0xf22b07}),_0x112b63['isReady']=!0x0,_0x55bf81['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|